From 0d90d44307a380d26940856d5ad70a2d867bc48f Mon Sep 17 00:00:00 2001 From: Joost Farla Date: Fri, 8 Nov 2024 11:17:38 +0100 Subject: [PATCH] Fix OAS 3.0 refs in example spec (refs #144) --- docs/assets/index-Bx8VxVwJ.js | 266 ------------------ docs/assets/index-CIqtTABe.js | 265 +++++++++++++++++ ...{index-BBnlv6Rj.css => index-Cxnr1_Mp.css} | 2 +- docs/index.html | 4 +- src/specs/ogc-api/example.json | 46 +-- 5 files changed, 291 insertions(+), 292 deletions(-) delete mode 100644 docs/assets/index-Bx8VxVwJ.js create mode 100644 docs/assets/index-CIqtTABe.js rename docs/assets/{index-BBnlv6Rj.css => index-Cxnr1_Mp.css} (55%) diff --git a/docs/assets/index-Bx8VxVwJ.js b/docs/assets/index-Bx8VxVwJ.js deleted file mode 100644 index c89a159..0000000 --- a/docs/assets/index-Bx8VxVwJ.js +++ /dev/null @@ -1,266 +0,0 @@ -var Cce=Object.defineProperty;var vq=t=>{throw TypeError(t)};var Tce=(t,e,n)=>e in t?Cce(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var Pq=(t,e,n)=>Tce(t,typeof e!="symbol"?e+"":e,n),bq=(t,e,n)=>e.has(t)||vq("Cannot "+n);var Tu=(t,e,n)=>(bq(t,e,"read from private field"),n?n.call(t):e.get(t)),D0=(t,e,n)=>e.has(t)?vq("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),ek=(t,e,n,i)=>(bq(t,e,"write to private field"),i?i.call(t,n):e.set(t,n),n);function k8(t,e){for(var n=0;ni[a]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))i(a);new MutationObserver(a=>{for(const o of a)if(o.type==="childList")for(const r of o.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&i(r)}).observe(document,{childList:!0,subtree:!0});function n(a){const o={};return a.integrity&&(o.integrity=a.integrity),a.referrerPolicy&&(o.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?o.credentials="include":a.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function i(a){if(a.ep)return;a.ep=!0;const o=n(a);fetch(a.href,o)}})();var Cr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function jS(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Yl(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function i(){return this instanceof i?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(i){var a=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(n,i,a.get?a:{enumerable:!0,get:function(){return t[i]}})}),n}var O8={exports:{}},MS={},E8={exports:{}},Zt={};/** - * @license React - * react.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var rb=Symbol.for("react.element"),jce=Symbol.for("react.portal"),Mce=Symbol.for("react.fragment"),Rce=Symbol.for("react.strict_mode"),Nce=Symbol.for("react.profiler"),Lce=Symbol.for("react.provider"),Fce=Symbol.for("react.context"),qce=Symbol.for("react.forward_ref"),zce=Symbol.for("react.suspense"),Uce=Symbol.for("react.memo"),Bce=Symbol.for("react.lazy"),wq=Symbol.iterator;function Vce(t){return t===null||typeof t!="object"?null:(t=wq&&t[wq]||t["@@iterator"],typeof t=="function"?t:null)}var I8={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C8=Object.assign,T8={};function _g(t,e,n){this.props=t,this.context=e,this.refs=T8,this.updater=n||I8}_g.prototype.isReactComponent={};_g.prototype.setState=function(t,e){if(typeof t!="object"&&typeof t!="function"&&t!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")};_g.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function j8(){}j8.prototype=_g.prototype;function PT(t,e,n){this.props=t,this.context=e,this.refs=T8,this.updater=n||I8}var bT=PT.prototype=new j8;bT.constructor=PT;C8(bT,_g.prototype);bT.isPureReactComponent=!0;var $q=Array.isArray,M8=Object.prototype.hasOwnProperty,wT={current:null},R8={key:!0,ref:!0,__self:!0,__source:!0};function N8(t,e,n){var i,a={},o=null,r=null;if(e!=null)for(i in e.ref!==void 0&&(r=e.ref),e.key!==void 0&&(o=""+e.key),e)M8.call(e,i)&&!R8.hasOwnProperty(i)&&(a[i]=e[i]);var s=arguments.length-2;if(s===1)a.children=n;else if(1>>1,z=X[R];if(0>>1;Ra(W,U))lea(ve,W)?(X[R]=ve,X[le]=U,R=le):(X[R]=W,X[T]=U,R=T);else if(lea(ve,U))X[R]=ve,X[le]=U,R=le;else break e}}return ie}function a(X,ie){var U=X.sortIndex-ie.sortIndex;return U!==0?U:X.id-ie.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;t.unstable_now=function(){return o.now()}}else{var r=Date,s=r.now();t.unstable_now=function(){return r.now()-s}}var c=[],l=[],u=1,f=null,h=3,d=!1,m=!1,g=!1,b=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,P=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function A(X){for(var ie=n(l);ie!==null;){if(ie.callback===null)i(l);else if(ie.startTime<=X)i(l),ie.sortIndex=ie.expirationTime,e(c,ie);else break;ie=n(l)}}function _(X){if(g=!1,A(X),!m)if(n(c)!==null)m=!0,C(x);else{var ie=n(l);ie!==null&&H(_,ie.startTime-X)}}function x(X,ie){m=!1,g&&(g=!1,v(I),I=-1),d=!0;var U=h;try{for(A(ie),f=n(c);f!==null&&(!(f.expirationTime>ie)||X&&!q());){var R=f.callback;if(typeof R=="function"){f.callback=null,h=f.priorityLevel;var z=R(f.expirationTime<=ie);ie=t.unstable_now(),typeof z=="function"?f.callback=z:f===n(c)&&i(c),A(ie)}else i(c);f=n(c)}if(f!==null)var V=!0;else{var T=n(l);T!==null&&H(_,T.startTime-ie),V=!1}return V}finally{f=null,h=U,d=!1}}var N=!1,j=null,I=-1,E=5,L=-1;function q(){return!(t.unstable_now()-LX||125R?(X.sortIndex=U,e(l,X),n(c)===null&&X===n(l)&&(g?(v(I),I=-1):g=!0,H(_,U-R))):(X.sortIndex=z,e(c,X),m||d||(m=!0,C(x))),X},t.unstable_shouldYield=q,t.unstable_wrapCallback=function(X){var ie=h;return function(){var U=h;h=ie;try{return X.apply(this,arguments)}finally{h=U}}}})(B8);U8.exports=B8;var rue=U8.exports;/** - * @license React - * react-dom.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var nue=We,ws=rue;function Ke(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),AI=Object.prototype.hasOwnProperty,iue=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Sq={},_q={};function aue(t){return AI.call(_q,t)?!0:AI.call(Sq,t)?!1:iue.test(t)?_q[t]=!0:(Sq[t]=!0,!1)}function sue(t,e,n,i){if(n!==null&&n.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return i?!1:n!==null?!n.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function oue(t,e,n,i){if(e===null||typeof e>"u"||sue(t,e,n,i))return!0;if(i)return!1;if(n!==null)switch(n.type){case 3:return!e;case 4:return e===!1;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function Ea(t,e,n,i,a,o,r){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=i,this.attributeNamespace=a,this.mustUseProperty=n,this.propertyName=t,this.type=e,this.sanitizeURL=o,this.removeEmptyString=r}var ji={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){ji[t]=new Ea(t,0,!1,t,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=t[0];ji[e]=new Ea(e,1,!1,t[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(t){ji[t]=new Ea(t,2,!1,t.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){ji[t]=new Ea(t,2,!1,t,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(t){ji[t]=new Ea(t,3,!1,t.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(t){ji[t]=new Ea(t,3,!0,t,null,!1,!1)});["capture","download"].forEach(function(t){ji[t]=new Ea(t,4,!1,t,null,!1,!1)});["cols","rows","size","span"].forEach(function(t){ji[t]=new Ea(t,6,!1,t,null,!1,!1)});["rowSpan","start"].forEach(function(t){ji[t]=new Ea(t,5,!1,t.toLowerCase(),null,!1,!1)});var AT=/[\-:]([a-z])/g;function ST(t){return t[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(t){var e=t.replace(AT,ST);ji[e]=new Ea(e,1,!1,t,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var e=t.replace(AT,ST);ji[e]=new Ea(e,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(t){var e=t.replace(AT,ST);ji[e]=new Ea(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(t){ji[t]=new Ea(t,1,!1,t.toLowerCase(),null,!1,!1)});ji.xlinkHref=new Ea("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(t){ji[t]=new Ea(t,1,!1,t.toLowerCase(),null,!0,!0)});function _T(t,e,n,i){var a=ji.hasOwnProperty(e)?ji[e]:null;(a!==null?a.type!==0:i||!(2s||a[r]!==o[s]){var c=` -`+a[r].replace(" at new "," at ");return t.displayName&&c.includes("")&&(c=c.replace("",t.displayName)),c}while(1<=r&&0<=s);break}}}finally{nk=!1,Error.prepareStackTrace=n}return(t=t?t.displayName||t.name:"")?fv(t):""}function lue(t){switch(t.tag){case 5:return fv(t.type);case 16:return fv("Lazy");case 13:return fv("Suspense");case 19:return fv("SuspenseList");case 0:case 2:case 15:return t=ik(t.type,!1),t;case 11:return t=ik(t.type.render,!1),t;case 1:return t=ik(t.type,!0),t;default:return""}}function DI(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case _d:return"Fragment";case Sd:return"Portal";case SI:return"Profiler";case xT:return"StrictMode";case _I:return"Suspense";case xI:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case H8:return(t.displayName||"Context")+".Consumer";case W8:return(t._context.displayName||"Context")+".Provider";case DT:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case kT:return e=t.displayName||null,e!==null?e:DI(t.type)||"Memo";case Ku:e=t._payload,t=t._init;try{return DI(t(e))}catch{}}return null}function cue(t){var e=t.type;switch(t.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=e.render,t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return DI(e);case 8:return e===xT?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e}return null}function kf(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function K8(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function uue(t){var e=K8(t)?"checked":"value",n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),i=""+t[e];if(!t.hasOwnProperty(e)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var a=n.get,o=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return a.call(this)},set:function(r){i=""+r,o.call(this,r)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return i},setValue:function(r){i=""+r},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function I1(t){t._valueTracker||(t._valueTracker=uue(t))}function Y8(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),i="";return t&&(i=K8(t)?t.checked?"true":"false":t.value),t=i,t!==n?(e.setValue(t),!0):!1}function tA(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function kI(t,e){var n=e.checked;return yn({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??t._wrapperState.initialChecked})}function Dq(t,e){var n=e.defaultValue==null?"":e.defaultValue,i=e.checked!=null?e.checked:e.defaultChecked;n=kf(e.value!=null?e.value:n),t._wrapperState={initialChecked:i,initialValue:n,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function J8(t,e){e=e.checked,e!=null&&_T(t,"checked",e,!1)}function OI(t,e){J8(t,e);var n=kf(e.value),i=e.type;if(n!=null)i==="number"?(n===0&&t.value===""||t.value!=n)&&(t.value=""+n):t.value!==""+n&&(t.value=""+n);else if(i==="submit"||i==="reset"){t.removeAttribute("value");return}e.hasOwnProperty("value")?EI(t,e.type,n):e.hasOwnProperty("defaultValue")&&EI(t,e.type,kf(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(t.defaultChecked=!!e.defaultChecked)}function kq(t,e,n){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var i=e.type;if(!(i!=="submit"&&i!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+t._wrapperState.initialValue,n||e===t.value||(t.value=e),t.defaultValue=e}n=t.name,n!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,n!==""&&(t.name=n)}function EI(t,e,n){(e!=="number"||tA(t.ownerDocument)!==t)&&(n==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+n&&(t.defaultValue=""+n))}var pv=Array.isArray;function Wd(t,e,n,i){if(t=t.options,e){e={};for(var a=0;a"+e.valueOf().toString()+"",e=C1.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}});function lP(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var Cv={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},fue=["Webkit","ms","Moz","O"];Object.keys(Cv).forEach(function(t){fue.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),Cv[e]=Cv[t]})});function eW(t,e,n){return e==null||typeof e=="boolean"||e===""?"":n||typeof e!="number"||e===0||Cv.hasOwnProperty(t)&&Cv[t]?(""+e).trim():e+"px"}function tW(t,e){t=t.style;for(var n in e)if(e.hasOwnProperty(n)){var i=n.indexOf("--")===0,a=eW(n,e[n],i);n==="float"&&(n="cssFloat"),i?t.setProperty(n,a):t[n]=a}}var pue=yn({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function TI(t,e){if(e){if(pue[t]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(Ke(137,t));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(Ke(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(Ke(61))}if(e.style!=null&&typeof e.style!="object")throw Error(Ke(62))}}function jI(t,e){if(t.indexOf("-")===-1)return typeof e.is=="string";switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var MI=null;function OT(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var RI=null,Hd=null,Gd=null;function Iq(t){if(t=ab(t)){if(typeof RI!="function")throw Error(Ke(280));var e=t.stateNode;e&&(e=qS(e),RI(t.stateNode,t.type,e))}}function rW(t){Hd?Gd?Gd.push(t):Gd=[t]:Hd=t}function nW(){if(Hd){var t=Hd,e=Gd;if(Gd=Hd=null,Iq(t),e)for(t=0;t>>=0,t===0?32:31-(Aue(t)/Sue|0)|0}var T1=64,j1=4194304;function hv(t){switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return t&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function aA(t,e){var n=t.pendingLanes;if(n===0)return 0;var i=0,a=t.suspendedLanes,o=t.pingedLanes,r=n&268435455;if(r!==0){var s=r&~a;s!==0?i=hv(s):(o&=r,o!==0&&(i=hv(o)))}else r=n&~a,r!==0?i=hv(r):o!==0&&(i=hv(o));if(i===0)return 0;if(e!==0&&e!==i&&!(e&a)&&(a=i&-i,o=e&-e,a>=o||a===16&&(o&4194240)!==0))return e;if(i&4&&(i|=n&16),e=t.entangledLanes,e!==0)for(t=t.entanglements,e&=i;0n;n++)e.push(t);return e}function nb(t,e,n){t.pendingLanes|=e,e!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,e=31-Zo(e),t[e]=n}function kue(t,e){var n=t.pendingLanes&~e;t.pendingLanes=e,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=e,t.mutableReadLanes&=e,t.entangledLanes&=e,e=t.entanglements;var i=t.eventTimes;for(t=t.expirationTimes;0=jv),qq=" ",zq=!1;function AW(t,e){switch(t){case"keyup":return rfe.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function SW(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var xd=!1;function ife(t,e){switch(t){case"compositionend":return SW(e);case"keypress":return e.which!==32?null:(zq=!0,qq);case"textInput":return t=e.data,t===qq&&zq?null:t;default:return null}}function afe(t,e){if(xd)return t==="compositionend"||!NT&&AW(t,e)?(t=wW(),s$=jT=sf=null,xd=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1=e)return{node:n,offset:e-t};t=i}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Wq(n)}}function kW(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?kW(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function OW(){for(var t=window,e=tA();e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=tA(t.document)}return e}function LT(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}function dfe(t){var e=OW(),n=t.focusedElem,i=t.selectionRange;if(e!==n&&n&&n.ownerDocument&&kW(n.ownerDocument.documentElement,n)){if(i!==null&<(n)){if(e=i.start,t=i.end,t===void 0&&(t=e),"selectionStart"in n)n.selectionStart=e,n.selectionEnd=Math.min(t,n.value.length);else if(t=(e=n.ownerDocument||document)&&e.defaultView||window,t.getSelection){t=t.getSelection();var a=n.textContent.length,o=Math.min(i.start,a);i=i.end===void 0?o:Math.min(i.end,a),!t.extend&&o>i&&(a=i,i=o,o=a),a=Hq(n,o);var r=Hq(n,i);a&&r&&(t.rangeCount!==1||t.anchorNode!==a.node||t.anchorOffset!==a.offset||t.focusNode!==r.node||t.focusOffset!==r.offset)&&(e=e.createRange(),e.setStart(a.node,a.offset),t.removeAllRanges(),o>i?(t.addRange(e),t.extend(r.node,r.offset)):(e.setEnd(r.node,r.offset),t.addRange(e)))}}for(e=[],t=n;t=t.parentNode;)t.nodeType===1&&e.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Dd=null,UI=null,Rv=null,BI=!1;function Gq(t,e,n){var i=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;BI||Dd==null||Dd!==tA(i)||(i=Dd,"selectionStart"in i&<(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),Rv&&dP(Rv,i)||(Rv=i,i=lA(UI,"onSelect"),0Ed||(t.current=YI[Ed],YI[Ed]=null,Ed--)}function Vr(t,e){Ed++,YI[Ed]=t.current,t.current=e}var Of={},Zi=Lf(Of),Ka=Lf(!1),Qp=Of;function eg(t,e){var n=t.type.contextTypes;if(!n)return Of;var i=t.stateNode;if(i&&i.__reactInternalMemoizedUnmaskedChildContext===e)return i.__reactInternalMemoizedMaskedChildContext;var a={},o;for(o in n)a[o]=e[o];return i&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=a),a}function Ya(t){return t=t.childContextTypes,t!=null}function uA(){tn(Ka),tn(Zi)}function e4(t,e,n){if(Zi.current!==Of)throw Error(Ke(168));Vr(Zi,e),Vr(Ka,n)}function LW(t,e,n){var i=t.stateNode;if(e=e.childContextTypes,typeof i.getChildContext!="function")return n;i=i.getChildContext();for(var a in i)if(!(a in e))throw Error(Ke(108,cue(t)||"Unknown",a));return yn({},n,i)}function fA(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||Of,Qp=Zi.current,Vr(Zi,t),Vr(Ka,Ka.current),!0}function t4(t,e,n){var i=t.stateNode;if(!i)throw Error(Ke(169));n?(t=LW(t,e,Qp),i.__reactInternalMemoizedMergedChildContext=t,tn(Ka),tn(Zi),Vr(Zi,t)):tn(Ka),Vr(Ka,n)}var Pc=null,zS=!1,vk=!1;function FW(t){Pc===null?Pc=[t]:Pc.push(t)}function xfe(t){zS=!0,FW(t)}function Ff(){if(!vk&&Pc!==null){vk=!0;var t=0,e=xr;try{var n=Pc;for(xr=1;t>=r,a-=r,kc=1<<32-Zo(e)+a|n<I?(E=j,j=null):E=j.sibling;var L=h(v,j,A[I],_);if(L===null){j===null&&(j=E);break}t&&j&&L.alternate===null&&e(v,j),P=o(L,P,I),N===null?x=L:N.sibling=L,N=L,j=E}if(I===A.length)return n(v,j),ln&&lp(v,I),x;if(j===null){for(;II?(E=j,j=null):E=j.sibling;var q=h(v,j,L.value,_);if(q===null){j===null&&(j=E);break}t&&j&&q.alternate===null&&e(v,j),P=o(q,P,I),N===null?x=q:N.sibling=q,N=q,j=E}if(L.done)return n(v,j),ln&&lp(v,I),x;if(j===null){for(;!L.done;I++,L=A.next())L=f(v,L.value,_),L!==null&&(P=o(L,P,I),N===null?x=L:N.sibling=L,N=L);return ln&&lp(v,I),x}for(j=i(v,j);!L.done;I++,L=A.next())L=d(j,v,I,L.value,_),L!==null&&(t&&L.alternate!==null&&j.delete(L.key===null?I:L.key),P=o(L,P,I),N===null?x=L:N.sibling=L,N=L);return t&&j.forEach(function(F){return e(v,F)}),ln&&lp(v,I),x}function b(v,P,A,_){if(typeof A=="object"&&A!==null&&A.type===_d&&A.key===null&&(A=A.props.children),typeof A=="object"&&A!==null){switch(A.$$typeof){case E1:e:{for(var x=A.key,N=P;N!==null;){if(N.key===x){if(x=A.type,x===_d){if(N.tag===7){n(v,N.sibling),P=a(N,A.props.children),P.return=v,v=P;break e}}else if(N.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===Ku&&i4(x)===N.type){n(v,N.sibling),P=a(N,A.props),P.ref=T0(v,N,A),P.return=v,v=P;break e}n(v,N);break}else e(v,N);N=N.sibling}A.type===_d?(P=zp(A.props.children,v.mode,_,A.key),P.return=v,v=P):(_=d$(A.type,A.key,A.props,null,v.mode,_),_.ref=T0(v,P,A),_.return=v,v=_)}return r(v);case Sd:e:{for(N=A.key;P!==null;){if(P.key===N)if(P.tag===4&&P.stateNode.containerInfo===A.containerInfo&&P.stateNode.implementation===A.implementation){n(v,P.sibling),P=a(P,A.children||[]),P.return=v,v=P;break e}else{n(v,P);break}else e(v,P);P=P.sibling}P=xk(A,v.mode,_),P.return=v,v=P}return r(v);case Ku:return N=A._init,b(v,P,N(A._payload),_)}if(pv(A))return m(v,P,A,_);if(k0(A))return g(v,P,A,_);z1(v,A)}return typeof A=="string"&&A!==""||typeof A=="number"?(A=""+A,P!==null&&P.tag===6?(n(v,P.sibling),P=a(P,A),P.return=v,v=P):(n(v,P),P=_k(A,v.mode,_),P.return=v,v=P),r(v)):n(v,P)}return b}var rg=BW(!0),VW=BW(!1),dA=Lf(null),mA=null,Td=null,UT=null;function BT(){UT=Td=mA=null}function VT(t){var e=dA.current;tn(dA),t._currentValue=e}function ZI(t,e,n){for(;t!==null;){var i=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,i!==null&&(i.childLanes|=e)):i!==null&&(i.childLanes&e)!==e&&(i.childLanes|=e),t===n)break;t=t.return}}function Yd(t,e){mA=t,UT=Td=null,t=t.dependencies,t!==null&&t.firstContext!==null&&(t.lanes&e&&(Wa=!0),t.firstContext=null)}function Po(t){var e=t._currentValue;if(UT!==t)if(t={context:t,memoizedValue:e,next:null},Td===null){if(mA===null)throw Error(Ke(308));Td=t,mA.dependencies={lanes:0,firstContext:t}}else Td=Td.next=t;return e}var wp=null;function WT(t){wp===null?wp=[t]:wp.push(t)}function WW(t,e,n,i){var a=e.interleaved;return a===null?(n.next=n,WT(e)):(n.next=a.next,a.next=n),e.interleaved=n,ou(t,i)}function ou(t,e){t.lanes|=e;var n=t.alternate;for(n!==null&&(n.lanes|=e),n=t,t=t.return;t!==null;)t.childLanes|=e,n=t.alternate,n!==null&&(n.childLanes|=e),n=t,t=t.return;return n.tag===3?n.stateNode:null}var Yu=!1;function HT(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function HW(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,effects:t.effects})}function Ec(t,e){return{eventTime:t,lane:e,tag:0,payload:null,callback:null,next:null}}function Pf(t,e,n){var i=t.updateQueue;if(i===null)return null;if(i=i.shared,ur&2){var a=i.pending;return a===null?e.next=e:(e.next=a.next,a.next=e),i.pending=e,ou(t,n)}return a=i.interleaved,a===null?(e.next=e,WT(i)):(e.next=a.next,a.next=e),i.interleaved=e,ou(t,n)}function l$(t,e,n){if(e=e.updateQueue,e!==null&&(e=e.shared,(n&4194240)!==0)){var i=e.lanes;i&=t.pendingLanes,n|=i,e.lanes=n,IT(t,n)}}function a4(t,e){var n=t.updateQueue,i=t.alternate;if(i!==null&&(i=i.updateQueue,n===i)){var a=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var r={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?a=o=r:o=o.next=r,n=n.next}while(n!==null);o===null?a=o=e:o=o.next=e}else a=o=e;n={baseState:i.baseState,firstBaseUpdate:a,lastBaseUpdate:o,shared:i.shared,effects:i.effects},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}function yA(t,e,n,i){var a=t.updateQueue;Yu=!1;var o=a.firstBaseUpdate,r=a.lastBaseUpdate,s=a.shared.pending;if(s!==null){a.shared.pending=null;var c=s,l=c.next;c.next=null,r===null?o=l:r.next=l,r=c;var u=t.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==r&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(o!==null){var f=a.baseState;r=0,u=l=c=null,s=o;do{var h=s.lane,d=s.eventTime;if((i&h)===h){u!==null&&(u=u.next={eventTime:d,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var m=t,g=s;switch(h=e,d=n,g.tag){case 1:if(m=g.payload,typeof m=="function"){f=m.call(d,f,h);break e}f=m;break e;case 3:m.flags=m.flags&-65537|128;case 0:if(m=g.payload,h=typeof m=="function"?m.call(d,f,h):m,h==null)break e;f=yn({},f,h);break e;case 2:Yu=!0}}s.callback!==null&&s.lane!==0&&(t.flags|=64,h=a.effects,h===null?a.effects=[s]:h.push(s))}else d={eventTime:d,lane:h,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=d,c=f):u=u.next=d,r|=h;if(s=s.next,s===null){if(s=a.shared.pending,s===null)break;h=s,s=h.next,h.next=null,a.lastBaseUpdate=h,a.shared.pending=null}}while(!0);if(u===null&&(c=f),a.baseState=c,a.firstBaseUpdate=l,a.lastBaseUpdate=u,e=a.shared.interleaved,e!==null){a=e;do r|=a.lane,a=a.next;while(a!==e)}else o===null&&(a.shared.lanes=0);eh|=r,t.lanes=r,t.memoizedState=f}}function s4(t,e,n){if(t=e.effects,e.effects=null,t!==null)for(e=0;en?n:4,t(!0);var i=bk.transition;bk.transition={};try{t(!1),e()}finally{xr=n,bk.transition=i}}function cH(){return bo().memoizedState}function Efe(t,e,n){var i=wf(t);if(n={lane:i,action:n,hasEagerState:!1,eagerState:null,next:null},uH(t))fH(e,n);else if(n=WW(t,e,n,i),n!==null){var a=Pa();Xo(n,t,i,a),pH(n,e,i)}}function Ife(t,e,n){var i=wf(t),a={lane:i,action:n,hasEagerState:!1,eagerState:null,next:null};if(uH(t))fH(e,a);else{var o=t.alternate;if(t.lanes===0&&(o===null||o.lanes===0)&&(o=e.lastRenderedReducer,o!==null))try{var r=e.lastRenderedState,s=o(r,n);if(a.hasEagerState=!0,a.eagerState=s,tl(s,r)){var c=e.interleaved;c===null?(a.next=a,WT(e)):(a.next=c.next,c.next=a),e.interleaved=a;return}}catch{}finally{}n=WW(t,e,a,i),n!==null&&(a=Pa(),Xo(n,t,i,a),pH(n,e,i))}}function uH(t){var e=t.alternate;return t===mn||e!==null&&e===mn}function fH(t,e){Nv=vA=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function pH(t,e,n){if(n&4194240){var i=e.lanes;i&=t.pendingLanes,n|=i,e.lanes=n,IT(t,n)}}var PA={readContext:Po,useCallback:zi,useContext:zi,useEffect:zi,useImperativeHandle:zi,useInsertionEffect:zi,useLayoutEffect:zi,useMemo:zi,useReducer:zi,useRef:zi,useState:zi,useDebugValue:zi,useDeferredValue:zi,useTransition:zi,useMutableSource:zi,useSyncExternalStore:zi,useId:zi,unstable_isNewReconciler:!1},Cfe={readContext:Po,useCallback:function(t,e){return Sl().memoizedState=[t,e===void 0?null:e],t},useContext:Po,useEffect:l4,useImperativeHandle:function(t,e,n){return n=n!=null?n.concat([t]):null,u$(4194308,4,iH.bind(null,e,t),n)},useLayoutEffect:function(t,e){return u$(4194308,4,t,e)},useInsertionEffect:function(t,e){return u$(4,2,t,e)},useMemo:function(t,e){var n=Sl();return e=e===void 0?null:e,t=t(),n.memoizedState=[t,e],t},useReducer:function(t,e,n){var i=Sl();return e=n!==void 0?n(e):e,i.memoizedState=i.baseState=e,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:e},i.queue=t,t=t.dispatch=Efe.bind(null,mn,t),[i.memoizedState,t]},useRef:function(t){var e=Sl();return t={current:t},e.memoizedState=t},useState:o4,useDebugValue:ej,useDeferredValue:function(t){return Sl().memoizedState=t},useTransition:function(){var t=o4(!1),e=t[0];return t=Ofe.bind(null,t[1]),Sl().memoizedState=t,[e,t]},useMutableSource:function(){},useSyncExternalStore:function(t,e,n){var i=mn,a=Sl();if(ln){if(n===void 0)throw Error(Ke(407));n=n()}else{if(n=e(),vi===null)throw Error(Ke(349));Xp&30||JW(i,e,n)}a.memoizedState=n;var o={value:n,getSnapshot:e};return a.queue=o,l4(ZW.bind(null,i,o,t),[t]),i.flags|=2048,$P(9,QW.bind(null,i,o,n,e),void 0,null),n},useId:function(){var t=Sl(),e=vi.identifierPrefix;if(ln){var n=Oc,i=kc;n=(i&~(1<<32-Zo(i)-1)).toString(32)+n,e=":"+e+"R"+n,n=bP++,0<\/script>",t=t.removeChild(t.firstChild)):typeof i.is=="string"?t=r.createElement(n,{is:i.is}):(t=r.createElement(n),n==="select"&&(r=t,i.multiple?r.multiple=!0:i.size&&(r.size=i.size))):t=r.createElementNS(t,n),t[xl]=e,t[gP]=i,$H(t,e,!1,!1),e.stateNode=t;e:{switch(r=jI(n,i),n){case"dialog":Jr("cancel",t),Jr("close",t),a=i;break;case"iframe":case"object":case"embed":Jr("load",t),a=i;break;case"video":case"audio":for(a=0;aag&&(e.flags|=128,i=!0,j0(o,!1),e.lanes=4194304)}else{if(!i)if(t=gA(r),t!==null){if(e.flags|=128,i=!0,n=t.updateQueue,n!==null&&(e.updateQueue=n,e.flags|=4),j0(o,!0),o.tail===null&&o.tailMode==="hidden"&&!r.alternate&&!ln)return Ui(e),null}else 2*Cn()-o.renderingStartTime>ag&&n!==1073741824&&(e.flags|=128,i=!0,j0(o,!1),e.lanes=4194304);o.isBackwards?(r.sibling=e.child,e.child=r):(n=o.last,n!==null?n.sibling=r:e.child=r,o.last=r)}return o.tail!==null?(e=o.tail,o.rendering=e,o.tail=e.sibling,o.renderingStartTime=Cn(),e.sibling=null,n=dn.current,Vr(dn,i?n&1|2:n&1),e):(Ui(e),null);case 22:case 23:return sj(),i=e.memoizedState!==null,t!==null&&t.memoizedState!==null!==i&&(e.flags|=8192),i&&e.mode&1?us&1073741824&&(Ui(e),e.subtreeFlags&6&&(e.flags|=8192)):Ui(e),null;case 24:return null;case 25:return null}throw Error(Ke(156,e.tag))}function qfe(t,e){switch(qT(e),e.tag){case 1:return Ya(e.type)&&uA(),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return ng(),tn(Ka),tn(Zi),YT(),t=e.flags,t&65536&&!(t&128)?(e.flags=t&-65537|128,e):null;case 5:return KT(e),null;case 13:if(tn(dn),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(Ke(340));tg()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return tn(dn),null;case 4:return ng(),null;case 10:return VT(e.type._context),null;case 22:case 23:return sj(),null;case 24:return null;default:return null}}var B1=!1,Gi=!1,zfe=typeof WeakSet=="function"?WeakSet:Set,pt=null;function jd(t,e){var n=t.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(i){_n(t,e,i)}else n.current=null}function o2(t,e,n){try{n()}catch(i){_n(t,e,i)}}var P4=!1;function Ufe(t,e){if(VI=sA,t=OW(),LT(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else e:{n=(n=t.ownerDocument)&&n.defaultView||window;var i=n.getSelection&&n.getSelection();if(i&&i.rangeCount!==0){n=i.anchorNode;var a=i.anchorOffset,o=i.focusNode;i=i.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var r=0,s=-1,c=-1,l=0,u=0,f=t,h=null;t:for(;;){for(var d;f!==n||a!==0&&f.nodeType!==3||(s=r+a),f!==o||i!==0&&f.nodeType!==3||(c=r+i),f.nodeType===3&&(r+=f.nodeValue.length),(d=f.firstChild)!==null;)h=f,f=d;for(;;){if(f===t)break t;if(h===n&&++l===a&&(s=r),h===o&&++u===i&&(c=r),(d=f.nextSibling)!==null)break;f=h,h=f.parentNode}f=d}n=s===-1||c===-1?null:{start:s,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(WI={focusedElem:t,selectionRange:n},sA=!1,pt=e;pt!==null;)if(e=pt,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,pt=t;else for(;pt!==null;){e=pt;try{var m=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var g=m.memoizedProps,b=m.memoizedState,v=e.stateNode,P=v.getSnapshotBeforeUpdate(e.elementType===e.type?g:Fo(e.type,g),b);v.__reactInternalSnapshotBeforeUpdate=P}break;case 3:var A=e.stateNode.containerInfo;A.nodeType===1?A.textContent="":A.nodeType===9&&A.documentElement&&A.removeChild(A.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Ke(163))}}catch(_){_n(e,e.return,_)}if(t=e.sibling,t!==null){t.return=e.return,pt=t;break}pt=e.return}return m=P4,P4=!1,m}function Lv(t,e,n){var i=e.updateQueue;if(i=i!==null?i.lastEffect:null,i!==null){var a=i=i.next;do{if((a.tag&t)===t){var o=a.destroy;a.destroy=void 0,o!==void 0&&o2(e,n,o)}a=a.next}while(a!==i)}}function VS(t,e){if(e=e.updateQueue,e=e!==null?e.lastEffect:null,e!==null){var n=e=e.next;do{if((n.tag&t)===t){var i=n.create;n.destroy=i()}n=n.next}while(n!==e)}}function l2(t){var e=t.ref;if(e!==null){var n=t.stateNode;switch(t.tag){case 5:t=n;break;default:t=n}typeof e=="function"?e(t):e.current=t}}function _H(t){var e=t.alternate;e!==null&&(t.alternate=null,_H(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&(delete e[xl],delete e[gP],delete e[KI],delete e[Sfe],delete e[_fe])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function xH(t){return t.tag===5||t.tag===3||t.tag===4}function b4(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||xH(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function c2(t,e,n){var i=t.tag;if(i===5||i===6)t=t.stateNode,e?n.nodeType===8?n.parentNode.insertBefore(t,e):n.insertBefore(t,e):(n.nodeType===8?(e=n.parentNode,e.insertBefore(t,n)):(e=n,e.appendChild(t)),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=cA));else if(i!==4&&(t=t.child,t!==null))for(c2(t,e,n),t=t.sibling;t!==null;)c2(t,e,n),t=t.sibling}function u2(t,e,n){var i=t.tag;if(i===5||i===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(i!==4&&(t=t.child,t!==null))for(u2(t,e,n),t=t.sibling;t!==null;)u2(t,e,n),t=t.sibling}var _i=null,qo=!1;function ju(t,e,n){for(n=n.child;n!==null;)DH(t,e,n),n=n.sibling}function DH(t,e,n){if(ql&&typeof ql.onCommitFiberUnmount=="function")try{ql.onCommitFiberUnmount(RS,n)}catch{}switch(n.tag){case 5:Gi||jd(n,e);case 6:var i=_i,a=qo;_i=null,ju(t,e,n),_i=i,qo=a,_i!==null&&(qo?(t=_i,n=n.stateNode,t.nodeType===8?t.parentNode.removeChild(n):t.removeChild(n)):_i.removeChild(n.stateNode));break;case 18:_i!==null&&(qo?(t=_i,n=n.stateNode,t.nodeType===8?gk(t.parentNode,n):t.nodeType===1&&gk(t,n),pP(t)):gk(_i,n.stateNode));break;case 4:i=_i,a=qo,_i=n.stateNode.containerInfo,qo=!0,ju(t,e,n),_i=i,qo=a;break;case 0:case 11:case 14:case 15:if(!Gi&&(i=n.updateQueue,i!==null&&(i=i.lastEffect,i!==null))){a=i=i.next;do{var o=a,r=o.destroy;o=o.tag,r!==void 0&&(o&2||o&4)&&o2(n,e,r),a=a.next}while(a!==i)}ju(t,e,n);break;case 1:if(!Gi&&(jd(n,e),i=n.stateNode,typeof i.componentWillUnmount=="function"))try{i.props=n.memoizedProps,i.state=n.memoizedState,i.componentWillUnmount()}catch(s){_n(n,e,s)}ju(t,e,n);break;case 21:ju(t,e,n);break;case 22:n.mode&1?(Gi=(i=Gi)||n.memoizedState!==null,ju(t,e,n),Gi=i):ju(t,e,n);break;default:ju(t,e,n)}}function w4(t){var e=t.updateQueue;if(e!==null){t.updateQueue=null;var n=t.stateNode;n===null&&(n=t.stateNode=new zfe),e.forEach(function(i){var a=Qfe.bind(null,t,i);n.has(i)||(n.add(i),i.then(a,a))})}}function Io(t,e){var n=e.deletions;if(n!==null)for(var i=0;ia&&(a=r),i&=~o}if(i=a,i=Cn()-i,i=(120>i?120:480>i?480:1080>i?1080:1920>i?1920:3e3>i?3e3:4320>i?4320:1960*Vfe(i/1960))-i,10t?16:t,of===null)var i=!1;else{if(t=of,of=null,$A=0,ur&6)throw Error(Ke(331));var a=ur;for(ur|=4,pt=t.current;pt!==null;){var o=pt,r=o.child;if(pt.flags&16){var s=o.deletions;if(s!==null){for(var c=0;cCn()-ij?qp(t,0):nj|=n),Ja(t,e)}function MH(t,e){e===0&&(t.mode&1?(e=j1,j1<<=1,!(j1&130023424)&&(j1=4194304)):e=1);var n=Pa();t=ou(t,e),t!==null&&(nb(t,e,n),Ja(t,n))}function Jfe(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),MH(t,n)}function Qfe(t,e){var n=0;switch(t.tag){case 13:var i=t.stateNode,a=t.memoizedState;a!==null&&(n=a.retryLane);break;case 19:i=t.stateNode;break;default:throw Error(Ke(314))}i!==null&&i.delete(e),MH(t,n)}var RH;RH=function(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps||Ka.current)Wa=!0;else{if(!(t.lanes&n)&&!(e.flags&128))return Wa=!1,Lfe(t,e,n);Wa=!!(t.flags&131072)}else Wa=!1,ln&&e.flags&1048576&&qW(e,hA,e.index);switch(e.lanes=0,e.tag){case 2:var i=e.type;f$(t,e),t=e.pendingProps;var a=eg(e,Zi.current);Yd(e,n),a=QT(null,e,i,t,a,n);var o=ZT();return e.flags|=1,typeof a=="object"&&a!==null&&typeof a.render=="function"&&a.$$typeof===void 0?(e.tag=1,e.memoizedState=null,e.updateQueue=null,Ya(i)?(o=!0,fA(e)):o=!1,e.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,HT(e),a.updater=BS,e.stateNode=a,a._reactInternals=e,e2(e,i,t,n),e=n2(null,e,i,!0,o,n)):(e.tag=0,ln&&o&&FT(e),ca(null,e,a,n),e=e.child),e;case 16:i=e.elementType;e:{switch(f$(t,e),t=e.pendingProps,a=i._init,i=a(i._payload),e.type=i,a=e.tag=Xfe(i),t=Fo(i,t),a){case 0:e=r2(null,e,i,t,n);break e;case 1:e=y4(null,e,i,t,n);break e;case 11:e=d4(null,e,i,t,n);break e;case 14:e=m4(null,e,i,Fo(i.type,t),n);break e}throw Error(Ke(306,i,""))}return e;case 0:return i=e.type,a=e.pendingProps,a=e.elementType===i?a:Fo(i,a),r2(t,e,i,a,n);case 1:return i=e.type,a=e.pendingProps,a=e.elementType===i?a:Fo(i,a),y4(t,e,i,a,n);case 3:e:{if(PH(e),t===null)throw Error(Ke(387));i=e.pendingProps,o=e.memoizedState,a=o.element,HW(t,e),yA(e,i,null,n);var r=e.memoizedState;if(i=r.element,o.isDehydrated)if(o={element:i,isDehydrated:!1,cache:r.cache,pendingSuspenseBoundaries:r.pendingSuspenseBoundaries,transitions:r.transitions},e.updateQueue.baseState=o,e.memoizedState=o,e.flags&256){a=ig(Error(Ke(423)),e),e=g4(t,e,i,n,a);break e}else if(i!==a){a=ig(Error(Ke(424)),e),e=g4(t,e,i,n,a);break e}else for(ds=vf(e.stateNode.containerInfo.firstChild),ms=e,ln=!0,Wo=null,n=VW(e,null,i,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(tg(),i===a){e=lu(t,e,n);break e}ca(t,e,i,n)}e=e.child}return e;case 5:return GW(e),t===null&&QI(e),i=e.type,a=e.pendingProps,o=t!==null?t.memoizedProps:null,r=a.children,HI(i,a)?r=null:o!==null&&HI(i,o)&&(e.flags|=32),vH(t,e),ca(t,e,r,n),e.child;case 6:return t===null&&QI(e),null;case 13:return bH(t,e,n);case 4:return GT(e,e.stateNode.containerInfo),i=e.pendingProps,t===null?e.child=rg(e,null,i,n):ca(t,e,i,n),e.child;case 11:return i=e.type,a=e.pendingProps,a=e.elementType===i?a:Fo(i,a),d4(t,e,i,a,n);case 7:return ca(t,e,e.pendingProps,n),e.child;case 8:return ca(t,e,e.pendingProps.children,n),e.child;case 12:return ca(t,e,e.pendingProps.children,n),e.child;case 10:e:{if(i=e.type._context,a=e.pendingProps,o=e.memoizedProps,r=a.value,Vr(dA,i._currentValue),i._currentValue=r,o!==null)if(tl(o.value,r)){if(o.children===a.children&&!Ka.current){e=lu(t,e,n);break e}}else for(o=e.child,o!==null&&(o.return=e);o!==null;){var s=o.dependencies;if(s!==null){r=o.child;for(var c=s.firstContext;c!==null;){if(c.context===i){if(o.tag===1){c=Ec(-1,n&-n),c.tag=2;var l=o.updateQueue;if(l!==null){l=l.shared;var u=l.pending;u===null?c.next=c:(c.next=u.next,u.next=c),l.pending=c}}o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),ZI(o.return,n,e),s.lanes|=n;break}c=c.next}}else if(o.tag===10)r=o.type===e.type?null:o.child;else if(o.tag===18){if(r=o.return,r===null)throw Error(Ke(341));r.lanes|=n,s=r.alternate,s!==null&&(s.lanes|=n),ZI(r,n,e),r=o.sibling}else r=o.child;if(r!==null)r.return=o;else for(r=o;r!==null;){if(r===e){r=null;break}if(o=r.sibling,o!==null){o.return=r.return,r=o;break}r=r.return}o=r}ca(t,e,a.children,n),e=e.child}return e;case 9:return a=e.type,i=e.pendingProps.children,Yd(e,n),a=Po(a),i=i(a),e.flags|=1,ca(t,e,i,n),e.child;case 14:return i=e.type,a=Fo(i,e.pendingProps),a=Fo(i.type,a),m4(t,e,i,a,n);case 15:return yH(t,e,e.type,e.pendingProps,n);case 17:return i=e.type,a=e.pendingProps,a=e.elementType===i?a:Fo(i,a),f$(t,e),e.tag=1,Ya(i)?(t=!0,fA(e)):t=!1,Yd(e,n),hH(e,i,a),e2(e,i,a,n),n2(null,e,i,!0,t,n);case 19:return wH(t,e,n);case 22:return gH(t,e,n)}throw Error(Ke(156,e.tag))};function NH(t,e){return uW(t,e)}function Zfe(t,e,n,i){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function eo(t,e,n,i){return new Zfe(t,e,n,i)}function lj(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Xfe(t){if(typeof t=="function")return lj(t)?1:0;if(t!=null){if(t=t.$$typeof,t===DT)return 11;if(t===kT)return 14}return 2}function $f(t,e){var n=t.alternate;return n===null?(n=eo(t.tag,e,t.key,t.mode),n.elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=t.flags&14680064,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n}function d$(t,e,n,i,a,o){var r=2;if(i=t,typeof t=="function")lj(t)&&(r=1);else if(typeof t=="string")r=5;else e:switch(t){case _d:return zp(n.children,a,o,e);case xT:r=8,a|=8;break;case SI:return t=eo(12,n,e,a|2),t.elementType=SI,t.lanes=o,t;case _I:return t=eo(13,n,e,a),t.elementType=_I,t.lanes=o,t;case xI:return t=eo(19,n,e,a),t.elementType=xI,t.lanes=o,t;case G8:return HS(n,a,o,e);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case W8:r=10;break e;case H8:r=9;break e;case DT:r=11;break e;case kT:r=14;break e;case Ku:r=16,i=null;break e}throw Error(Ke(130,t==null?t:typeof t,""))}return e=eo(r,n,e,a),e.elementType=t,e.type=i,e.lanes=o,e}function zp(t,e,n,i){return t=eo(7,t,i,e),t.lanes=n,t}function HS(t,e,n,i){return t=eo(22,t,i,e),t.elementType=G8,t.lanes=n,t.stateNode={isHidden:!1},t}function _k(t,e,n){return t=eo(6,t,null,e),t.lanes=n,t}function xk(t,e,n){return e=eo(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function epe(t,e,n,i,a){this.tag=e,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=sk(0),this.expirationTimes=sk(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=sk(0),this.identifierPrefix=i,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function cj(t,e,n,i,a,o,r,s,c){return t=new epe(t,e,n,s,c),e===1?(e=1,o===!0&&(e|=8)):e=0,o=eo(3,null,null,e),t.current=o,o.stateNode=t,o.memoizedState={element:i,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},HT(o),t}function tpe(t,e,n){var i=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(zH)}catch(t){console.error(t)}}zH(),z8.exports=As;var hj=z8.exports;const spe=jS(hj),ope=k8({__proto__:null,default:spe},[hj]);var O4=hj;$I.createRoot=O4.createRoot,$I.hydrateRoot=O4.hydrateRoot;/** - * @remix-run/router v1.19.2 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function hn(){return hn=Object.assign?Object.assign.bind():function(t){for(var e=1;e"u")throw new Error(e)}function rh(t,e){if(!t){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function cpe(){return Math.random().toString(36).substr(2,8)}function I4(t,e){return{usr:t.state,key:t.key,idx:e}}function SP(t,e,n,i){return n===void 0&&(n=null),hn({pathname:typeof t=="string"?t:t.pathname,search:"",hash:""},typeof e=="string"?mu(e):e,{state:n,key:e&&e.key||i||cpe()})}function nh(t){let{pathname:e="/",search:n="",hash:i=""}=t;return n&&n!=="?"&&(e+=n.charAt(0)==="?"?n:"?"+n),i&&i!=="#"&&(e+=i.charAt(0)==="#"?i:"#"+i),e}function mu(t){let e={};if(t){let n=t.indexOf("#");n>=0&&(e.hash=t.substr(n),t=t.substr(0,n));let i=t.indexOf("?");i>=0&&(e.search=t.substr(i),t=t.substr(0,i)),t&&(e.pathname=t)}return e}function upe(t,e,n,i){i===void 0&&(i={});let{window:a=document.defaultView,v5Compat:o=!1}=i,r=a.history,s=Hn.Pop,c=null,l=u();l==null&&(l=0,r.replaceState(hn({},r.state,{idx:l}),""));function u(){return(r.state||{idx:null}).idx}function f(){s=Hn.Pop;let b=u(),v=b==null?null:b-l;l=b,c&&c({action:s,location:g.location,delta:v})}function h(b,v){s=Hn.Push;let P=SP(g.location,b,v);n&&n(P,b),l=u()+1;let A=I4(P,l),_=g.createHref(P);try{r.pushState(A,"",_)}catch(x){if(x instanceof DOMException&&x.name==="DataCloneError")throw x;a.location.assign(_)}o&&c&&c({action:s,location:g.location,delta:1})}function d(b,v){s=Hn.Replace;let P=SP(g.location,b,v);n&&n(P,b),l=u();let A=I4(P,l),_=g.createHref(P);r.replaceState(A,"",_),o&&c&&c({action:s,location:g.location,delta:0})}function m(b){let v=a.location.origin!=="null"?a.location.origin:a.location.href,P=typeof b=="string"?b:nh(b);return P=P.replace(/ $/,"%20"),Kt(v,"No window.location.(origin|href) available to create URL for href: "+P),new URL(P,v)}let g={get action(){return s},get location(){return t(a,r)},listen(b){if(c)throw new Error("A history only accepts one active listener");return a.addEventListener(E4,f),c=b,()=>{a.removeEventListener(E4,f),c=null}},createHref(b){return e(a,b)},createURL:m,encodeLocation(b){let v=m(b);return{pathname:v.pathname,search:v.search,hash:v.hash}},push:h,replace:d,go(b){return r.go(b)}};return g}var Er;(function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"})(Er||(Er={}));const fpe=new Set(["lazy","caseSensitive","path","id","index","children"]);function ppe(t){return t.index===!0}function _P(t,e,n,i){return n===void 0&&(n=[]),i===void 0&&(i={}),t.map((a,o)=>{let r=[...n,String(o)],s=typeof a.id=="string"?a.id:r.join("-");if(Kt(a.index!==!0||!a.children,"Cannot specify children on an index route"),Kt(!i[s],'Found a route id collision on id "'+s+`". Route id's must be globally unique within Data Router usages`),ppe(a)){let c=hn({},a,e(a),{id:s});return i[s]=c,c}else{let c=hn({},a,e(a),{id:s,children:void 0});return i[s]=c,a.children&&(c.children=_P(a.children,e,r,i)),c}})}function hp(t,e,n){return n===void 0&&(n="/"),m$(t,e,n,!1)}function m$(t,e,n,i){let a=typeof e=="string"?mu(e):e,o=kg(a.pathname||"/",n);if(o==null)return null;let r=UH(t);dpe(r);let s=null;for(let c=0;s==null&&c{let c={relativePath:s===void 0?o.path||"":s,caseSensitive:o.caseSensitive===!0,childrenIndex:r,route:o};c.relativePath.startsWith("/")&&(Kt(c.relativePath.startsWith(i),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+i+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),c.relativePath=c.relativePath.slice(i.length));let l=Ic([i,c.relativePath]),u=n.concat(c);o.children&&o.children.length>0&&(Kt(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+l+'".')),UH(o.children,e,u,l)),!(o.path==null&&!o.index)&&e.push({path:l,score:wpe(l,o.index),routesMeta:u})};return t.forEach((o,r)=>{var s;if(o.path===""||!((s=o.path)!=null&&s.includes("?")))a(o,r);else for(let c of BH(o.path))a(o,r,c)}),e}function BH(t){let e=t.split("/");if(e.length===0)return[];let[n,...i]=e,a=n.endsWith("?"),o=n.replace(/\?$/,"");if(i.length===0)return a?[o,""]:[o];let r=BH(i.join("/")),s=[];return s.push(...r.map(c=>c===""?o:[o,c].join("/"))),a&&s.push(...r),s.map(c=>t.startsWith("/")&&c===""?"/":c)}function dpe(t){t.sort((e,n)=>e.score!==n.score?n.score-e.score:$pe(e.routesMeta.map(i=>i.childrenIndex),n.routesMeta.map(i=>i.childrenIndex)))}const mpe=/^:[\w-]+$/,ype=3,gpe=2,vpe=1,Ppe=10,bpe=-2,C4=t=>t==="*";function wpe(t,e){let n=t.split("/"),i=n.length;return n.some(C4)&&(i+=bpe),e&&(i+=gpe),n.filter(a=>!C4(a)).reduce((a,o)=>a+(mpe.test(o)?ype:o===""?vpe:Ppe),i)}function $pe(t,e){return t.length===e.length&&t.slice(0,-1).every((i,a)=>i===e[a])?t[t.length-1]-e[e.length-1]:0}function Ape(t,e,n){n===void 0&&(n=!1);let{routesMeta:i}=t,a={},o="/",r=[];for(let s=0;s{let{paramName:h,isOptional:d}=u;if(h==="*"){let g=s[f]||"";r=o.slice(0,o.length-g.length).replace(/(.)\/+$/,"$1")}const m=s[f];return d&&!m?l[h]=void 0:l[h]=(m||"").replace(/%2F/g,"/"),l},{}),pathname:o,pathnameBase:r,pattern:t}}function Spe(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!0),rh(t==="*"||!t.endsWith("*")||t.endsWith("/*"),'Route path "'+t+'" will be treated as if it were '+('"'+t.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+t.replace(/\*$/,"/*")+'".'));let i=[],a="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(r,s,c)=>(i.push({paramName:s,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)"));return t.endsWith("*")?(i.push({paramName:"*"}),a+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":t!==""&&t!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,e?void 0:"i"),i]}function _pe(t){try{return t.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(e){return rh(!1,'The URL path "'+t+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+e+").")),t}}function kg(t,e){if(e==="/")return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let n=e.endsWith("/")?e.length-1:e.length,i=t.charAt(n);return i&&i!=="/"?null:t.slice(n)||"/"}function xpe(t,e){e===void 0&&(e="/");let{pathname:n,search:i="",hash:a=""}=typeof t=="string"?mu(t):t;return{pathname:n?n.startsWith("/")?n:Dpe(n,e):e,search:Ope(i),hash:Epe(a)}}function Dpe(t,e){let n=e.replace(/\/+$/,"").split("/");return t.split("/").forEach(a=>{a===".."?n.length>1&&n.pop():a!=="."&&n.push(a)}),n.length>1?n.join("/"):"/"}function Dk(t,e,n,i){return"Cannot include a '"+t+"' character in a manually specified "+("`to."+e+"` field ["+JSON.stringify(i)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function VH(t){return t.filter((e,n)=>n===0||e.route.path&&e.route.path.length>0)}function QS(t,e){let n=VH(t);return e?n.map((i,a)=>a===n.length-1?i.pathname:i.pathnameBase):n.map(i=>i.pathnameBase)}function ZS(t,e,n,i){i===void 0&&(i=!1);let a;typeof t=="string"?a=mu(t):(a=hn({},t),Kt(!a.pathname||!a.pathname.includes("?"),Dk("?","pathname","search",a)),Kt(!a.pathname||!a.pathname.includes("#"),Dk("#","pathname","hash",a)),Kt(!a.search||!a.search.includes("#"),Dk("#","search","hash",a)));let o=t===""||a.pathname==="",r=o?"/":a.pathname,s;if(r==null)s=n;else{let f=e.length-1;if(!i&&r.startsWith("..")){let h=r.split("/");for(;h[0]==="..";)h.shift(),f-=1;a.pathname=h.join("/")}s=f>=0?e[f]:"/"}let c=xpe(a,s),l=r&&r!=="/"&&r.endsWith("/"),u=(o||r===".")&&n.endsWith("/");return!c.pathname.endsWith("/")&&(l||u)&&(c.pathname+="/"),c}const Ic=t=>t.join("/").replace(/\/\/+/g,"/"),kpe=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),Ope=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,Epe=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t;class _A{constructor(e,n,i,a){a===void 0&&(a=!1),this.status=e,this.statusText=n||"",this.internal=a,i instanceof Error?(this.data=i.toString(),this.error=i):this.data=i}}function XS(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}const WH=["post","put","patch","delete"],Ipe=new Set(WH),Cpe=["get",...WH],Tpe=new Set(Cpe),jpe=new Set([301,302,303,307,308]),Mpe=new Set([307,308]),kk={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Rpe={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},R0={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},dj=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Npe=t=>({hasErrorBoundary:!!t.hasErrorBoundary}),HH="remix-router-transitions";function Lpe(t){const e=t.window?t.window:typeof window<"u"?window:void 0,n=typeof e<"u"&&typeof e.document<"u"&&typeof e.document.createElement<"u",i=!n;Kt(t.routes.length>0,"You must provide a non-empty routes array to createRouter");let a;if(t.mapRouteProperties)a=t.mapRouteProperties;else if(t.detectErrorBoundary){let se=t.detectErrorBoundary;a=ge=>({hasErrorBoundary:se(ge)})}else a=Npe;let o={},r=_P(t.routes,a,void 0,o),s,c=t.basename||"/",l=t.unstable_dataStrategy||Vpe,u=t.unstable_patchRoutesOnNavigation,f=hn({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},t.future),h=null,d=new Set,m=1e3,g=new Set,b=null,v=null,P=null,A=t.hydrationData!=null,_=hp(r,t.history.location,c),x=null;if(_==null&&!u){let se=la(404,{pathname:t.history.location.pathname}),{matches:ge,route:ke}=U4(r);_=ge,x={[ke.id]:se}}_&&!t.hydrationData&&re(_,r,t.history.location.pathname).active&&(_=null);let N;if(_)if(_.some(se=>se.route.lazy))N=!1;else if(!_.some(se=>se.route.loader))N=!0;else if(f.v7_partialHydration){let se=t.hydrationData?t.hydrationData.loaderData:null,ge=t.hydrationData?t.hydrationData.errors:null,ke=Te=>Te.route.loader?typeof Te.route.loader=="function"&&Te.route.loader.hydrate===!0?!1:se&&se[Te.route.id]!==void 0||ge&&ge[Te.route.id]!==void 0:!0;if(ge){let Te=_.findIndex(Ze=>ge[Ze.route.id]!==void 0);N=_.slice(0,Te+1).every(ke)}else N=_.every(ke)}else N=t.hydrationData!=null;else if(N=!1,_=[],f.v7_partialHydration){let se=re(null,r,t.history.location.pathname);se.active&&se.matches&&(_=se.matches)}let j,I={historyAction:t.history.action,location:t.history.location,matches:_,initialized:N,navigation:kk,restoreScrollPosition:t.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:t.hydrationData&&t.hydrationData.loaderData||{},actionData:t.hydrationData&&t.hydrationData.actionData||null,errors:t.hydrationData&&t.hydrationData.errors||x,fetchers:new Map,blockers:new Map},E=Hn.Pop,L=!1,q,F=!1,S=new Map,D=null,M=!1,C=!1,H=[],X=new Set,ie=new Map,U=0,R=-1,z=new Map,V=new Set,T=new Map,W=new Map,le=new Set,ve=new Map,ae=new Map,_e=new Map,he;function Ee(){if(h=t.history.listen(se=>{let{action:ge,location:ke,delta:Te}=se;if(he){he(),he=void 0;return}rh(ae.size===0||Te!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let Ze=Fe({currentLocation:I.location,nextLocation:ke,historyAction:ge});if(Ze&&Te!=null){let vt=new Promise(xt=>{he=xt});t.history.go(Te*-1),be(Ze,{state:"blocked",location:ke,proceed(){be(Ze,{state:"proceeding",proceed:void 0,reset:void 0,location:ke}),vt.then(()=>t.history.go(Te))},reset(){let xt=new Map(I.blockers);xt.set(Ze,R0),Ae({blockers:xt})}});return}return Ce(ge,ke)}),n){ahe(e,S);let se=()=>she(e,S);e.addEventListener("pagehide",se),D=()=>e.removeEventListener("pagehide",se)}return I.initialized||Ce(Hn.Pop,I.location,{initialHydration:!0}),j}function Ge(){h&&h(),D&&D(),d.clear(),q&&q.abort(),I.fetchers.forEach((se,ge)=>G(ge)),I.blockers.forEach((se,ge)=>De(ge))}function Me(se){return d.add(se),()=>d.delete(se)}function Ae(se,ge){ge===void 0&&(ge={}),I=hn({},I,se);let ke=[],Te=[];f.v7_fetcherPersist&&I.fetchers.forEach((Ze,vt)=>{Ze.state==="idle"&&(le.has(vt)?Te.push(vt):ke.push(vt))}),[...d].forEach(Ze=>Ze(I,{deletedFetchers:Te,unstable_viewTransitionOpts:ge.viewTransitionOpts,unstable_flushSync:ge.flushSync===!0})),f.v7_fetcherPersist&&(ke.forEach(Ze=>I.fetchers.delete(Ze)),Te.forEach(Ze=>G(Ze)))}function at(se,ge,ke){var Te,Ze;let{flushSync:vt}=ke===void 0?{}:ke,xt=I.actionData!=null&&I.navigation.formMethod!=null&&zo(I.navigation.formMethod)&&I.navigation.state==="loading"&&((Te=se.state)==null?void 0:Te._isRedirect)!==!0,Qe;ge.actionData?Object.keys(ge.actionData).length>0?Qe=ge.actionData:Qe=null:xt?Qe=I.actionData:Qe=null;let Le=ge.loaderData?q4(I.loaderData,ge.loaderData,ge.matches||[],ge.errors):I.loaderData,ht=I.blockers;ht.size>0&&(ht=new Map(ht),ht.forEach((lr,Pr)=>ht.set(Pr,R0)));let ft=L===!0||I.navigation.formMethod!=null&&zo(I.navigation.formMethod)&&((Ze=se.state)==null?void 0:Ze._isRedirect)!==!0;s&&(r=s,s=void 0),M||E===Hn.Pop||(E===Hn.Push?t.history.push(se,se.state):E===Hn.Replace&&t.history.replace(se,se.state));let ir;if(E===Hn.Pop){let lr=S.get(I.location.pathname);lr&&lr.has(se.pathname)?ir={currentLocation:I.location,nextLocation:se}:S.has(se.pathname)&&(ir={currentLocation:se,nextLocation:I.location})}else if(F){let lr=S.get(I.location.pathname);lr?lr.add(se.pathname):(lr=new Set([se.pathname]),S.set(I.location.pathname,lr)),ir={currentLocation:I.location,nextLocation:se}}Ae(hn({},ge,{actionData:Qe,loaderData:Le,historyAction:E,location:se,initialized:!0,navigation:kk,revalidation:"idle",restoreScrollPosition:Os(se,ge.matches||I.matches),preventScrollReset:ft,blockers:ht}),{viewTransitionOpts:ir,flushSync:vt===!0}),E=Hn.Pop,L=!1,F=!1,M=!1,C=!1,H=[]}async function gt(se,ge){if(typeof se=="number"){t.history.go(se);return}let ke=m2(I.location,I.matches,c,f.v7_prependBasename,se,f.v7_relativeSplatPath,ge==null?void 0:ge.fromRouteId,ge==null?void 0:ge.relative),{path:Te,submission:Ze,error:vt}=j4(f.v7_normalizeFormMethod,!1,ke,ge),xt=I.location,Qe=SP(I.location,Te,ge&&ge.state);Qe=hn({},Qe,t.history.encodeLocation(Qe));let Le=ge&&ge.replace!=null?ge.replace:void 0,ht=Hn.Push;Le===!0?ht=Hn.Replace:Le===!1||Ze!=null&&zo(Ze.formMethod)&&Ze.formAction===I.location.pathname+I.location.search&&(ht=Hn.Replace);let ft=ge&&"preventScrollReset"in ge?ge.preventScrollReset===!0:void 0,ir=(ge&&ge.unstable_flushSync)===!0,lr=Fe({currentLocation:xt,nextLocation:Qe,historyAction:ht});if(lr){be(lr,{state:"blocked",location:Qe,proceed(){be(lr,{state:"proceeding",proceed:void 0,reset:void 0,location:Qe}),gt(se,ge)},reset(){let Pr=new Map(I.blockers);Pr.set(lr,R0),Ae({blockers:Pr})}});return}return await Ce(ht,Qe,{submission:Ze,pendingError:vt,preventScrollReset:ft,replace:ge&&ge.replace,enableViewTransition:ge&&ge.unstable_viewTransition,flushSync:ir})}function Ne(){if(K(),Ae({revalidation:"loading"}),I.navigation.state!=="submitting"){if(I.navigation.state==="idle"){Ce(I.historyAction,I.location,{startUninterruptedRevalidation:!0});return}Ce(E||I.historyAction,I.navigation.location,{overrideNavigation:I.navigation,enableViewTransition:F===!0})}}async function Ce(se,ge,ke){q&&q.abort(),q=null,E=se,M=(ke&&ke.startUninterruptedRevalidation)===!0,wi(I.location,I.matches),L=(ke&&ke.preventScrollReset)===!0,F=(ke&&ke.enableViewTransition)===!0;let Te=s||r,Ze=ke&&ke.overrideNavigation,vt=hp(Te,ge,c),xt=(ke&&ke.flushSync)===!0,Qe=re(vt,Te,ge.pathname);if(Qe.active&&Qe.matches&&(vt=Qe.matches),!vt){let{error:zt,notFoundMatches:gn,route:jr}=Ye(ge.pathname);at(ge,{matches:gn,loaderData:{},errors:{[jr.id]:zt}},{flushSync:xt});return}if(I.initialized&&!C&&Jpe(I.location,ge)&&!(ke&&ke.submission&&zo(ke.submission.formMethod))){at(ge,{matches:vt},{flushSync:xt});return}q=new AbortController;let Le=Zh(t.history,ge,q.signal,ke&&ke.submission),ht;if(ke&&ke.pendingError)ht=[Rd(vt).route.id,{type:Er.error,error:ke.pendingError}];else if(ke&&ke.submission&&zo(ke.submission.formMethod)){let zt=await $t(Le,ge,ke.submission,vt,Qe.active,{replace:ke.replace,flushSync:xt});if(zt.shortCircuited)return;if(zt.pendingActionResult){let[gn,jr]=zt.pendingActionResult;if(ps(jr)&&XS(jr.error)&&jr.error.status===404){q=null,at(ge,{matches:zt.matches,loaderData:{},errors:{[gn]:jr.error}});return}}vt=zt.matches||vt,ht=zt.pendingActionResult,Ze=Ok(ge,ke.submission),xt=!1,Qe.active=!1,Le=Zh(t.history,Le.url,Le.signal)}let{shortCircuited:ft,matches:ir,loaderData:lr,errors:Pr}=await xe(Le,ge,vt,Qe.active,Ze,ke&&ke.submission,ke&&ke.fetcherSubmission,ke&&ke.replace,ke&&ke.initialHydration===!0,xt,ht);ft||(q=null,at(ge,hn({matches:ir||vt},z4(ht),{loaderData:lr,errors:Pr})))}async function $t(se,ge,ke,Te,Ze,vt){vt===void 0&&(vt={}),K();let xt=nhe(ge,ke);if(Ae({navigation:xt},{flushSync:vt.flushSync===!0}),Ze){let ht=await Ct(Te,ge.pathname,se.signal);if(ht.type==="aborted")return{shortCircuited:!0};if(ht.type==="error"){let{boundaryId:ft,error:ir}=mt(ge.pathname,ht);return{matches:ht.partialMatches,pendingActionResult:[ft,{type:Er.error,error:ir}]}}else if(ht.matches)Te=ht.matches;else{let{notFoundMatches:ft,error:ir,route:lr}=Ye(ge.pathname);return{matches:ft,pendingActionResult:[lr.id,{type:Er.error,error:ir}]}}}let Qe,Le=mv(Te,ge);if(!Le.route.action&&!Le.route.lazy)Qe={type:Er.error,error:la(405,{method:se.method,pathname:ge.pathname,routeId:Le.route.id})};else if(Qe=(await J("action",I,se,[Le],Te,null))[Le.route.id],se.signal.aborted)return{shortCircuited:!0};if(Ap(Qe)){let ht;return vt&&vt.replace!=null?ht=vt.replace:ht=N4(Qe.response.headers.get("Location"),new URL(se.url),c)===I.location.pathname+I.location.search,await er(se,Qe,!0,{submission:ke,replace:ht}),{shortCircuited:!0}}if(lf(Qe))throw la(400,{type:"defer-action"});if(ps(Qe)){let ht=Rd(Te,Le.route.id);return(vt&&vt.replace)!==!0&&(E=Hn.Push),{matches:Te,pendingActionResult:[ht.route.id,Qe]}}return{matches:Te,pendingActionResult:[Le.route.id,Qe]}}async function xe(se,ge,ke,Te,Ze,vt,xt,Qe,Le,ht,ft){let ir=Ze||Ok(ge,vt),lr=vt||xt||V4(ir),Pr=!M&&(!f.v7_partialHydration||!Le);if(Te){if(Pr){let kr=ct(ft);Ae(hn({navigation:ir},kr!==void 0?{actionData:kr}:{}),{flushSync:ht})}let It=await Ct(ke,ge.pathname,se.signal);if(It.type==="aborted")return{shortCircuited:!0};if(It.type==="error"){let{boundaryId:kr,error:Gr}=mt(ge.pathname,It);return{matches:It.partialMatches,loaderData:{},errors:{[kr]:Gr}}}else if(It.matches)ke=It.matches;else{let{error:kr,notFoundMatches:Gr,route:Ht}=Ye(ge.pathname);return{matches:Gr,loaderData:{},errors:{[Ht.id]:kr}}}}let zt=s||r,[gn,jr]=M4(t.history,I,ke,lr,ge,f.v7_partialHydration&&Le===!0,f.v7_skipActionErrorRevalidation,C,H,X,le,T,V,zt,c,ft);if(ut(It=>!(ke&&ke.some(kr=>kr.route.id===It))||gn&&gn.some(kr=>kr.route.id===It)),R=++U,gn.length===0&&jr.length===0){let It=ce();return at(ge,hn({matches:ke,loaderData:{},errors:ft&&ps(ft[1])?{[ft[0]]:ft[1].error}:null},z4(ft),It?{fetchers:new Map(I.fetchers)}:{}),{flushSync:ht}),{shortCircuited:!0}}if(Pr){let It={};if(!Te){It.navigation=ir;let kr=ct(ft);kr!==void 0&&(It.actionData=kr)}jr.length>0&&(It.fetchers=nn(jr)),Ae(It,{flushSync:ht})}jr.forEach(It=>{ie.has(It.key)&&ee(It.key),It.controller&&ie.set(It.key,It.controller)});let ec=()=>jr.forEach(It=>ee(It.key));q&&q.signal.addEventListener("abort",ec);let{loaderResults:Ta,fetcherResults:fl}=await w(I,ke,gn,jr,se);if(se.signal.aborted)return{shortCircuited:!0};q&&q.signal.removeEventListener("abort",ec),jr.forEach(It=>ie.delete(It.key));let ts=H1(Ta);if(ts)return await er(se,ts.result,!0,{replace:Qe}),{shortCircuited:!0};if(ts=H1(fl),ts)return V.add(ts.key),await er(se,ts.result,!0,{replace:Qe}),{shortCircuited:!0};let{loaderData:tc,errors:ra}=F4(I,ke,gn,Ta,ft,jr,fl,ve);ve.forEach((It,kr)=>{It.subscribe(Gr=>{(Gr||It.done)&&ve.delete(kr)})}),f.v7_partialHydration&&Le&&I.errors&&Object.entries(I.errors).filter(It=>{let[kr]=It;return!gn.some(Gr=>Gr.route.id===kr)}).forEach(It=>{let[kr,Gr]=It;ra=Object.assign(ra||{},{[kr]:Gr})});let rc=ce(),nc=oe(R),pl=rc||nc||jr.length>0;return hn({matches:ke,loaderData:tc,errors:ra},pl?{fetchers:new Map(I.fetchers)}:{})}function ct(se){if(se&&!ps(se[1]))return{[se[0]]:se[1].data};if(I.actionData)return Object.keys(I.actionData).length===0?null:I.actionData}function nn(se){return se.forEach(ge=>{let ke=I.fetchers.get(ge.key),Te=N0(void 0,ke?ke.data:void 0);I.fetchers.set(ge.key,Te)}),new Map(I.fetchers)}function qr(se,ge,ke,Te){if(i)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");ie.has(se)&&ee(se);let Ze=(Te&&Te.unstable_flushSync)===!0,vt=s||r,xt=m2(I.location,I.matches,c,f.v7_prependBasename,ke,f.v7_relativeSplatPath,ge,Te==null?void 0:Te.relative),Qe=hp(vt,xt,c),Le=re(Qe,vt,xt);if(Le.active&&Le.matches&&(Qe=Le.matches),!Qe){fe(se,ge,la(404,{pathname:xt}),{flushSync:Ze});return}let{path:ht,submission:ft,error:ir}=j4(f.v7_normalizeFormMethod,!0,xt,Te);if(ir){fe(se,ge,ir,{flushSync:Ze});return}let lr=mv(Qe,ht);if(L=(Te&&Te.preventScrollReset)===!0,ft&&zo(ft.formMethod)){an(se,ge,ht,lr,Qe,Le.active,Ze,ft);return}T.set(se,{routeId:ge,path:ht}),Xt(se,ge,ht,lr,Qe,Le.active,Ze,ft)}async function an(se,ge,ke,Te,Ze,vt,xt,Qe){K(),T.delete(se);function Le(Ht){if(!Ht.route.action&&!Ht.route.lazy){let vn=la(405,{method:Qe.formMethod,pathname:ke,routeId:ge});return fe(se,ge,vn,{flushSync:xt}),!0}return!1}if(!vt&&Le(Te))return;let ht=I.fetchers.get(se);Z(se,ihe(Qe,ht),{flushSync:xt});let ft=new AbortController,ir=Zh(t.history,ke,ft.signal,Qe);if(vt){let Ht=await Ct(Ze,ke,ir.signal);if(Ht.type==="aborted")return;if(Ht.type==="error"){let{error:vn}=mt(ke,Ht);fe(se,ge,vn,{flushSync:xt});return}else if(Ht.matches){if(Ze=Ht.matches,Te=mv(Ze,ke),Le(Te))return}else{fe(se,ge,la(404,{pathname:ke}),{flushSync:xt});return}}ie.set(se,ft);let lr=U,zt=(await J("action",I,ir,[Te],Ze,se))[Te.route.id];if(ir.signal.aborted){ie.get(se)===ft&&ie.delete(se);return}if(f.v7_fetcherPersist&&le.has(se)){if(Ap(zt)||ps(zt)){Z(se,Hu(void 0));return}}else{if(Ap(zt))if(ie.delete(se),R>lr){Z(se,Hu(void 0));return}else return V.add(se),Z(se,N0(Qe)),er(ir,zt,!1,{fetcherSubmission:Qe});if(ps(zt)){fe(se,ge,zt.error);return}}if(lf(zt))throw la(400,{type:"defer-action"});let gn=I.navigation.location||I.location,jr=Zh(t.history,gn,ft.signal),ec=s||r,Ta=I.navigation.state!=="idle"?hp(ec,I.navigation.location,c):I.matches;Kt(Ta,"Didn't find any matches after fetcher action");let fl=++U;z.set(se,fl);let ts=N0(Qe,zt.data);I.fetchers.set(se,ts);let[tc,ra]=M4(t.history,I,Ta,Qe,gn,!1,f.v7_skipActionErrorRevalidation,C,H,X,le,T,V,ec,c,[Te.route.id,zt]);ra.filter(Ht=>Ht.key!==se).forEach(Ht=>{let vn=Ht.key,Nh=I.fetchers.get(vn),ic=N0(void 0,Nh?Nh.data:void 0);I.fetchers.set(vn,ic),ie.has(vn)&&ee(vn),Ht.controller&&ie.set(vn,Ht.controller)}),Ae({fetchers:new Map(I.fetchers)});let rc=()=>ra.forEach(Ht=>ee(Ht.key));ft.signal.addEventListener("abort",rc);let{loaderResults:nc,fetcherResults:pl}=await w(I,Ta,tc,ra,jr);if(ft.signal.aborted)return;ft.signal.removeEventListener("abort",rc),z.delete(se),ie.delete(se),ra.forEach(Ht=>ie.delete(Ht.key));let It=H1(nc);if(It)return er(jr,It.result,!1);if(It=H1(pl),It)return V.add(It.key),er(jr,It.result,!1);let{loaderData:kr,errors:Gr}=F4(I,Ta,tc,nc,void 0,ra,pl,ve);if(I.fetchers.has(se)){let Ht=Hu(zt.data);I.fetchers.set(se,Ht)}oe(fl),I.navigation.state==="loading"&&fl>R?(Kt(E,"Expected pending action"),q&&q.abort(),at(I.navigation.location,{matches:Ta,loaderData:kr,errors:Gr,fetchers:new Map(I.fetchers)})):(Ae({errors:Gr,loaderData:q4(I.loaderData,kr,Ta,Gr),fetchers:new Map(I.fetchers)}),C=!1)}async function Xt(se,ge,ke,Te,Ze,vt,xt,Qe){let Le=I.fetchers.get(se);Z(se,N0(Qe,Le?Le.data:void 0),{flushSync:xt});let ht=new AbortController,ft=Zh(t.history,ke,ht.signal);if(vt){let zt=await Ct(Ze,ke,ft.signal);if(zt.type==="aborted")return;if(zt.type==="error"){let{error:gn}=mt(ke,zt);fe(se,ge,gn,{flushSync:xt});return}else if(zt.matches)Ze=zt.matches,Te=mv(Ze,ke);else{fe(se,ge,la(404,{pathname:ke}),{flushSync:xt});return}}ie.set(se,ht);let ir=U,Pr=(await J("loader",I,ft,[Te],Ze,se))[Te.route.id];if(lf(Pr)&&(Pr=await mj(Pr,ft.signal,!0)||Pr),ie.get(se)===ht&&ie.delete(se),!ft.signal.aborted){if(le.has(se)){Z(se,Hu(void 0));return}if(Ap(Pr))if(R>ir){Z(se,Hu(void 0));return}else{V.add(se),await er(ft,Pr,!1);return}if(ps(Pr)){fe(se,ge,Pr.error);return}Kt(!lf(Pr),"Unhandled fetcher deferred data"),Z(se,Hu(Pr.data))}}async function er(se,ge,ke,Te){let{submission:Ze,fetcherSubmission:vt,replace:xt}=Te===void 0?{}:Te;ge.response.headers.has("X-Remix-Revalidate")&&(C=!0);let Qe=ge.response.headers.get("Location");Kt(Qe,"Expected a Location header on the redirect Response"),Qe=N4(Qe,new URL(se.url),c);let Le=SP(I.location,Qe,{_isRedirect:!0});if(n){let zt=!1;if(ge.response.headers.has("X-Remix-Reload-Document"))zt=!0;else if(dj.test(Qe)){const gn=t.history.createURL(Qe);zt=gn.origin!==e.location.origin||kg(gn.pathname,c)==null}if(zt){xt?e.location.replace(Qe):e.location.assign(Qe);return}}q=null;let ht=xt===!0||ge.response.headers.has("X-Remix-Replace")?Hn.Replace:Hn.Push,{formMethod:ft,formAction:ir,formEncType:lr}=I.navigation;!Ze&&!vt&&ft&&ir&&lr&&(Ze=V4(I.navigation));let Pr=Ze||vt;if(Mpe.has(ge.response.status)&&Pr&&zo(Pr.formMethod))await Ce(ht,Le,{submission:hn({},Pr,{formAction:Qe}),preventScrollReset:L,enableViewTransition:ke?F:void 0});else{let zt=Ok(Le,Ze);await Ce(ht,Le,{overrideNavigation:zt,fetcherSubmission:vt,preventScrollReset:L,enableViewTransition:ke?F:void 0})}}async function J(se,ge,ke,Te,Ze,vt){let xt,Qe={};try{xt=await Wpe(l,se,ge,ke,Te,Ze,vt,o,a)}catch(Le){return Te.forEach(ht=>{Qe[ht.route.id]={type:Er.error,error:Le}}),Qe}for(let[Le,ht]of Object.entries(xt))if(Zpe(ht)){let ft=ht.result;Qe[Le]={type:Er.redirect,response:Kpe(ft,ke,Le,Ze,c,f.v7_relativeSplatPath)}}else Qe[Le]=await Gpe(ht);return Qe}async function w(se,ge,ke,Te,Ze){let vt=se.matches,xt=J("loader",se,Ze,ke,ge,null),Qe=Promise.all(Te.map(async ft=>{if(ft.matches&&ft.match&&ft.controller){let lr=(await J("loader",se,Zh(t.history,ft.path,ft.controller.signal),[ft.match],ft.matches,ft.key))[ft.match.route.id];return{[ft.key]:lr}}else return Promise.resolve({[ft.key]:{type:Er.error,error:la(404,{pathname:ft.path})}})})),Le=await xt,ht=(await Qe).reduce((ft,ir)=>Object.assign(ft,ir),{});return await Promise.all([the(ge,Le,Ze.signal,vt,se.loaderData),rhe(ge,ht,Te)]),{loaderResults:Le,fetcherResults:ht}}function K(){C=!0,H.push(...ut()),T.forEach((se,ge)=>{ie.has(ge)&&(X.add(ge),ee(ge))})}function Z(se,ge,ke){ke===void 0&&(ke={}),I.fetchers.set(se,ge),Ae({fetchers:new Map(I.fetchers)},{flushSync:(ke&&ke.flushSync)===!0})}function fe(se,ge,ke,Te){Te===void 0&&(Te={});let Ze=Rd(I.matches,ge);G(se),Ae({errors:{[Ze.route.id]:ke},fetchers:new Map(I.fetchers)},{flushSync:(Te&&Te.flushSync)===!0})}function de(se){return f.v7_fetcherPersist&&(W.set(se,(W.get(se)||0)+1),le.has(se)&&le.delete(se)),I.fetchers.get(se)||Rpe}function G(se){let ge=I.fetchers.get(se);ie.has(se)&&!(ge&&ge.state==="loading"&&z.has(se))&&ee(se),T.delete(se),z.delete(se),V.delete(se),le.delete(se),X.delete(se),I.fetchers.delete(se)}function k(se){if(f.v7_fetcherPersist){let ge=(W.get(se)||0)-1;ge<=0?(W.delete(se),le.add(se)):W.set(se,ge)}else G(se);Ae({fetchers:new Map(I.fetchers)})}function ee(se){let ge=ie.get(se);Kt(ge,"Expected fetch controller: "+se),ge.abort(),ie.delete(se)}function te(se){for(let ge of se){let ke=de(ge),Te=Hu(ke.data);I.fetchers.set(ge,Te)}}function ce(){let se=[],ge=!1;for(let ke of V){let Te=I.fetchers.get(ke);Kt(Te,"Expected fetcher: "+ke),Te.state==="loading"&&(V.delete(ke),se.push(ke),ge=!0)}return te(se),ge}function oe(se){let ge=[];for(let[ke,Te]of z)if(Te0}function Pe(se,ge){let ke=I.blockers.get(se)||R0;return ae.get(se)!==ge&&ae.set(se,ge),ke}function De(se){I.blockers.delete(se),ae.delete(se)}function be(se,ge){let ke=I.blockers.get(se)||R0;Kt(ke.state==="unblocked"&&ge.state==="blocked"||ke.state==="blocked"&&ge.state==="blocked"||ke.state==="blocked"&&ge.state==="proceeding"||ke.state==="blocked"&&ge.state==="unblocked"||ke.state==="proceeding"&&ge.state==="unblocked","Invalid blocker state transition: "+ke.state+" -> "+ge.state);let Te=new Map(I.blockers);Te.set(se,ge),Ae({blockers:Te})}function Fe(se){let{currentLocation:ge,nextLocation:ke,historyAction:Te}=se;if(ae.size===0)return;ae.size>1&&rh(!1,"A router only supports one blocker at a time");let Ze=Array.from(ae.entries()),[vt,xt]=Ze[Ze.length-1],Qe=I.blockers.get(vt);if(!(Qe&&Qe.state==="proceeding")&&xt({currentLocation:ge,nextLocation:ke,historyAction:Te}))return vt}function Ye(se){let ge=la(404,{pathname:se}),ke=s||r,{matches:Te,route:Ze}=U4(ke);return ut(),{notFoundMatches:Te,route:Ze,error:ge}}function mt(se,ge){return{boundaryId:Rd(ge.partialMatches).route.id,error:la(400,{type:"route-discovery",pathname:se,message:ge.error!=null&&"message"in ge.error?ge.error:String(ge.error)})}}function ut(se){let ge=[];return ve.forEach((ke,Te)=>{(!se||se(Te))&&(ke.cancel(),ge.push(Te),ve.delete(Te))}),ge}function Jt(se,ge,ke){if(b=se,P=ge,v=ke||null,!A&&I.navigation===kk){A=!0;let Te=Os(I.location,I.matches);Te!=null&&Ae({restoreScrollPosition:Te})}return()=>{b=null,P=null,v=null}}function un(se,ge){return v&&v(se,ge.map(Te=>hpe(Te,I.loaderData)))||se.key}function wi(se,ge){if(b&&P){let ke=un(se,ge);b[ke]=P()}}function Os(se,ge){if(b){let ke=un(se,ge),Te=b[ke];if(typeof Te=="number")return Te}return null}function re(se,ge,ke){if(u){if(g.has(ke))return{active:!1,matches:se};if(se){if(Object.keys(se[0].params).length>0)return{active:!0,matches:m$(ge,ke,c,!0)}}else return{active:!0,matches:m$(ge,ke,c,!0)||[]}}return{active:!1,matches:null}}async function Ct(se,ge,ke){let Te=se;for(;;){let Ze=s==null,vt=s||r;try{await Upe(u,ge,Te,vt,o,a,_e,ke)}catch(Le){return{type:"error",error:Le,partialMatches:Te}}finally{Ze&&(r=[...r])}if(ke.aborted)return{type:"aborted"};let xt=hp(vt,ge,c);if(xt)return es(ge,g),{type:"success",matches:xt};let Qe=m$(vt,ge,c,!0);if(!Qe||Te.length===Qe.length&&Te.every((Le,ht)=>Le.route.id===Qe[ht].route.id))return es(ge,g),{type:"success",matches:null};Te=Qe}}function es(se,ge){if(ge.size>=m){let ke=ge.values().next().value;ge.delete(ke)}ge.add(se)}function Wn(se){o={},s=_P(se,a,void 0,o)}function ul(se,ge){let ke=s==null;KH(se,ge,s||r,o,a),ke&&(r=[...r],Ae({}))}return j={get basename(){return c},get future(){return f},get state(){return I},get routes(){return r},get window(){return e},initialize:Ee,subscribe:Me,enableScrollRestoration:Jt,navigate:gt,fetch:qr,revalidate:Ne,createHref:se=>t.history.createHref(se),encodeLocation:se=>t.history.encodeLocation(se),getFetcher:de,deleteFetcher:k,dispose:Ge,getBlocker:Pe,deleteBlocker:De,patchRoutes:ul,_internalFetchControllers:ie,_internalActiveDeferreds:ve,_internalSetRoutes:Wn},j}function Fpe(t){return t!=null&&("formData"in t&&t.formData!=null||"body"in t&&t.body!==void 0)}function m2(t,e,n,i,a,o,r,s){let c,l;if(r){c=[];for(let f of e)if(c.push(f),f.route.id===r){l=f;break}}else c=e,l=e[e.length-1];let u=ZS(a||".",QS(c,o),kg(t.pathname,n)||t.pathname,s==="path");return a==null&&(u.search=t.search,u.hash=t.hash),(a==null||a===""||a===".")&&l&&l.route.index&&!yj(u.search)&&(u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index"),i&&n!=="/"&&(u.pathname=u.pathname==="/"?n:Ic([n,u.pathname])),nh(u)}function j4(t,e,n,i){if(!i||!Fpe(i))return{path:n};if(i.formMethod&&!ehe(i.formMethod))return{path:n,error:la(405,{method:i.formMethod})};let a=()=>({path:n,error:la(400,{type:"invalid-body"})}),o=i.formMethod||"get",r=t?o.toUpperCase():o.toLowerCase(),s=YH(n);if(i.body!==void 0){if(i.formEncType==="text/plain"){if(!zo(r))return a();let h=typeof i.body=="string"?i.body:i.body instanceof FormData||i.body instanceof URLSearchParams?Array.from(i.body.entries()).reduce((d,m)=>{let[g,b]=m;return""+d+g+"="+b+` -`},""):String(i.body);return{path:n,submission:{formMethod:r,formAction:s,formEncType:i.formEncType,formData:void 0,json:void 0,text:h}}}else if(i.formEncType==="application/json"){if(!zo(r))return a();try{let h=typeof i.body=="string"?JSON.parse(i.body):i.body;return{path:n,submission:{formMethod:r,formAction:s,formEncType:i.formEncType,formData:void 0,json:h,text:void 0}}}catch{return a()}}}Kt(typeof FormData=="function","FormData is not available in this environment");let c,l;if(i.formData)c=y2(i.formData),l=i.formData;else if(i.body instanceof FormData)c=y2(i.body),l=i.body;else if(i.body instanceof URLSearchParams)c=i.body,l=L4(c);else if(i.body==null)c=new URLSearchParams,l=new FormData;else try{c=new URLSearchParams(i.body),l=L4(c)}catch{return a()}let u={formMethod:r,formAction:s,formEncType:i&&i.formEncType||"application/x-www-form-urlencoded",formData:l,json:void 0,text:void 0};if(zo(u.formMethod))return{path:n,submission:u};let f=mu(n);return e&&f.search&&yj(f.search)&&c.append("index",""),f.search="?"+c,{path:nh(f),submission:u}}function qpe(t,e){let n=t;if(e){let i=t.findIndex(a=>a.route.id===e);i>=0&&(n=t.slice(0,i))}return n}function M4(t,e,n,i,a,o,r,s,c,l,u,f,h,d,m,g){let b=g?ps(g[1])?g[1].error:g[1].data:void 0,v=t.createURL(e.location),P=t.createURL(a),A=g&&ps(g[1])?g[0]:void 0,_=A?qpe(n,A):n,x=g?g[1].statusCode:void 0,N=r&&x&&x>=400,j=_.filter((E,L)=>{let{route:q}=E;if(q.lazy)return!0;if(q.loader==null)return!1;if(o)return typeof q.loader!="function"||q.loader.hydrate?!0:e.loaderData[q.id]===void 0&&(!e.errors||e.errors[q.id]===void 0);if(zpe(e.loaderData,e.matches[L],E)||c.some(D=>D===E.route.id))return!0;let F=e.matches[L],S=E;return R4(E,hn({currentUrl:v,currentParams:F.params,nextUrl:P,nextParams:S.params},i,{actionResult:b,actionStatus:x,defaultShouldRevalidate:N?!1:s||v.pathname+v.search===P.pathname+P.search||v.search!==P.search||GH(F,S)}))}),I=[];return f.forEach((E,L)=>{if(o||!n.some(M=>M.route.id===E.routeId)||u.has(L))return;let q=hp(d,E.path,m);if(!q){I.push({key:L,routeId:E.routeId,path:E.path,matches:null,match:null,controller:null});return}let F=e.fetchers.get(L),S=mv(q,E.path),D=!1;h.has(L)?D=!1:l.has(L)?(l.delete(L),D=!0):F&&F.state!=="idle"&&F.data===void 0?D=s:D=R4(S,hn({currentUrl:v,currentParams:e.matches[e.matches.length-1].params,nextUrl:P,nextParams:n[n.length-1].params},i,{actionResult:b,actionStatus:x,defaultShouldRevalidate:N?!1:s})),D&&I.push({key:L,routeId:E.routeId,path:E.path,matches:q,match:S,controller:new AbortController})}),[j,I]}function zpe(t,e,n){let i=!e||n.route.id!==e.route.id,a=t[n.route.id]===void 0;return i||a}function GH(t,e){let n=t.route.path;return t.pathname!==e.pathname||n!=null&&n.endsWith("*")&&t.params["*"]!==e.params["*"]}function R4(t,e){if(t.route.shouldRevalidate){let n=t.route.shouldRevalidate(e);if(typeof n=="boolean")return n}return e.defaultShouldRevalidate}async function Upe(t,e,n,i,a,o,r,s){let c=[e,...n.map(l=>l.route.id)].join("-");try{let l=r.get(c);l||(l=t({path:e,matches:n,patch:(u,f)=>{s.aborted||KH(u,f,i,a,o)}}),r.set(c,l)),l&&Qpe(l)&&await l}finally{r.delete(c)}}function KH(t,e,n,i,a){if(t){var o;let r=i[t];Kt(r,"No route found to patch children into: routeId = "+t);let s=_P(e,a,[t,"patch",String(((o=r.children)==null?void 0:o.length)||"0")],i);r.children?r.children.push(...s):r.children=s}else{let r=_P(e,a,["patch",String(n.length||"0")],i);n.push(...r)}}async function Bpe(t,e,n){if(!t.lazy)return;let i=await t.lazy();if(!t.lazy)return;let a=n[t.id];Kt(a,"No route found in manifest");let o={};for(let r in i){let c=a[r]!==void 0&&r!=="hasErrorBoundary";rh(!c,'Route "'+a.id+'" has a static property "'+r+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+r+'" will be ignored.')),!c&&!fpe.has(r)&&(o[r]=i[r])}Object.assign(a,o),Object.assign(a,hn({},e(a),{lazy:void 0}))}async function Vpe(t){let{matches:e}=t,n=e.filter(a=>a.shouldLoad);return(await Promise.all(n.map(a=>a.resolve()))).reduce((a,o,r)=>Object.assign(a,{[n[r].route.id]:o}),{})}async function Wpe(t,e,n,i,a,o,r,s,c,l){let u=o.map(d=>d.route.lazy?Bpe(d.route,c,s):void 0),f=o.map((d,m)=>{let g=u[m],b=a.some(P=>P.route.id===d.route.id);return hn({},d,{shouldLoad:b,resolve:async P=>(P&&i.method==="GET"&&(d.route.lazy||d.route.loader)&&(b=!0),b?Hpe(e,i,d,g,P,l):Promise.resolve({type:Er.data,result:void 0}))})}),h=await t({matches:f,request:i,params:o[0].params,fetcherKey:r,context:l});try{await Promise.all(u)}catch{}return h}async function Hpe(t,e,n,i,a,o){let r,s,c=l=>{let u,f=new Promise((m,g)=>u=g);s=()=>u(),e.signal.addEventListener("abort",s);let h=m=>typeof l!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+t+'" [routeId: '+n.route.id+"]"))):l({request:e,params:n.params,context:o},...m!==void 0?[m]:[]),d=(async()=>{try{return{type:"data",result:await(a?a(g=>h(g)):h())}}catch(m){return{type:"error",result:m}}})();return Promise.race([d,f])};try{let l=n.route[t];if(i)if(l){let u,[f]=await Promise.all([c(l).catch(h=>{u=h}),i]);if(u!==void 0)throw u;r=f}else if(await i,l=n.route[t],l)r=await c(l);else if(t==="action"){let u=new URL(e.url),f=u.pathname+u.search;throw la(405,{method:e.method,pathname:f,routeId:n.route.id})}else return{type:Er.data,result:void 0};else if(l)r=await c(l);else{let u=new URL(e.url),f=u.pathname+u.search;throw la(404,{pathname:f})}Kt(r.result!==void 0,"You defined "+(t==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+t+"` ")+"function. Please return a value or `null`.")}catch(l){return{type:Er.error,result:l}}finally{s&&e.signal.removeEventListener("abort",s)}return r}async function Gpe(t){let{result:e,type:n}=t;if(JH(e)){let l;try{let u=e.headers.get("Content-Type");u&&/\bapplication\/json\b/.test(u)?e.body==null?l=null:l=await e.json():l=await e.text()}catch(u){return{type:Er.error,error:u}}return n===Er.error?{type:Er.error,error:new _A(e.status,e.statusText,l),statusCode:e.status,headers:e.headers}:{type:Er.data,data:l,statusCode:e.status,headers:e.headers}}if(n===Er.error){if(B4(e)){var i;if(e.data instanceof Error){var a;return{type:Er.error,error:e.data,statusCode:(a=e.init)==null?void 0:a.status}}e=new _A(((i=e.init)==null?void 0:i.status)||500,void 0,e.data)}return{type:Er.error,error:e,statusCode:XS(e)?e.status:void 0}}if(Xpe(e)){var o,r;return{type:Er.deferred,deferredData:e,statusCode:(o=e.init)==null?void 0:o.status,headers:((r=e.init)==null?void 0:r.headers)&&new Headers(e.init.headers)}}if(B4(e)){var s,c;return{type:Er.data,data:e.data,statusCode:(s=e.init)==null?void 0:s.status,headers:(c=e.init)!=null&&c.headers?new Headers(e.init.headers):void 0}}return{type:Er.data,data:e}}function Kpe(t,e,n,i,a,o){let r=t.headers.get("Location");if(Kt(r,"Redirects returned/thrown from loaders/actions must have a Location header"),!dj.test(r)){let s=i.slice(0,i.findIndex(c=>c.route.id===n)+1);r=m2(new URL(e.url),s,a,!0,r,o),t.headers.set("Location",r)}return t}function N4(t,e,n){if(dj.test(t)){let i=t,a=i.startsWith("//")?new URL(e.protocol+i):new URL(i),o=kg(a.pathname,n)!=null;if(a.origin===e.origin&&o)return a.pathname+a.search+a.hash}return t}function Zh(t,e,n,i){let a=t.createURL(YH(e)).toString(),o={signal:n};if(i&&zo(i.formMethod)){let{formMethod:r,formEncType:s}=i;o.method=r.toUpperCase(),s==="application/json"?(o.headers=new Headers({"Content-Type":s}),o.body=JSON.stringify(i.json)):s==="text/plain"?o.body=i.text:s==="application/x-www-form-urlencoded"&&i.formData?o.body=y2(i.formData):o.body=i.formData}return new Request(a,o)}function y2(t){let e=new URLSearchParams;for(let[n,i]of t.entries())e.append(n,typeof i=="string"?i:i.name);return e}function L4(t){let e=new FormData;for(let[n,i]of t.entries())e.append(n,i);return e}function Ype(t,e,n,i,a){let o={},r=null,s,c=!1,l={},u=n&&ps(n[1])?n[1].error:void 0;return t.forEach(f=>{if(!(f.route.id in e))return;let h=f.route.id,d=e[h];if(Kt(!Ap(d),"Cannot handle redirect results in processLoaderData"),ps(d)){let m=d.error;u!==void 0&&(m=u,u=void 0),r=r||{};{let g=Rd(t,h);r[g.route.id]==null&&(r[g.route.id]=m)}o[h]=void 0,c||(c=!0,s=XS(d.error)?d.error.status:500),d.headers&&(l[h]=d.headers)}else lf(d)?(i.set(h,d.deferredData),o[h]=d.deferredData.data,d.statusCode!=null&&d.statusCode!==200&&!c&&(s=d.statusCode),d.headers&&(l[h]=d.headers)):(o[h]=d.data,d.statusCode&&d.statusCode!==200&&!c&&(s=d.statusCode),d.headers&&(l[h]=d.headers))}),u!==void 0&&n&&(r={[n[0]]:u},o[n[0]]=void 0),{loaderData:o,errors:r,statusCode:s||200,loaderHeaders:l}}function F4(t,e,n,i,a,o,r,s){let{loaderData:c,errors:l}=Ype(e,i,a,s);return o.forEach(u=>{let{key:f,match:h,controller:d}=u,m=r[f];if(Kt(m,"Did not find corresponding fetcher result"),!(d&&d.signal.aborted))if(ps(m)){let g=Rd(t.matches,h==null?void 0:h.route.id);l&&l[g.route.id]||(l=hn({},l,{[g.route.id]:m.error})),t.fetchers.delete(f)}else if(Ap(m))Kt(!1,"Unhandled fetcher revalidation redirect");else if(lf(m))Kt(!1,"Unhandled fetcher deferred data");else{let g=Hu(m.data);t.fetchers.set(f,g)}}),{loaderData:c,errors:l}}function q4(t,e,n,i){let a=hn({},e);for(let o of n){let r=o.route.id;if(e.hasOwnProperty(r)?e[r]!==void 0&&(a[r]=e[r]):t[r]!==void 0&&o.route.loader&&(a[r]=t[r]),i&&i.hasOwnProperty(r))break}return a}function z4(t){return t?ps(t[1])?{actionData:{}}:{actionData:{[t[0]]:t[1].data}}:{}}function Rd(t,e){return(e?t.slice(0,t.findIndex(i=>i.route.id===e)+1):[...t]).reverse().find(i=>i.route.hasErrorBoundary===!0)||t[0]}function U4(t){let e=t.length===1?t[0]:t.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:e}],route:e}}function la(t,e){let{pathname:n,routeId:i,method:a,type:o,message:r}=e===void 0?{}:e,s="Unknown Server Error",c="Unknown @remix-run/router error";return t===400?(s="Bad Request",o==="route-discovery"?c='Unable to match URL "'+n+'" - the `unstable_patchRoutesOnNavigation()` '+(`function threw the following error: -`+r):a&&n&&i?c="You made a "+a+' request to "'+n+'" but '+('did not provide a `loader` for route "'+i+'", ')+"so there is no way to handle the request.":o==="defer-action"?c="defer() is not supported in actions":o==="invalid-body"&&(c="Unable to encode submission body")):t===403?(s="Forbidden",c='Route "'+i+'" does not match URL "'+n+'"'):t===404?(s="Not Found",c='No route matches URL "'+n+'"'):t===405&&(s="Method Not Allowed",a&&n&&i?c="You made a "+a.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+i+'", ')+"so there is no way to handle the request.":a&&(c='Invalid request method "'+a.toUpperCase()+'"')),new _A(t||500,s,new Error(c),!0)}function H1(t){let e=Object.entries(t);for(let n=e.length-1;n>=0;n--){let[i,a]=e[n];if(Ap(a))return{key:i,result:a}}}function YH(t){let e=typeof t=="string"?mu(t):t;return nh(hn({},e,{hash:""}))}function Jpe(t,e){return t.pathname!==e.pathname||t.search!==e.search?!1:t.hash===""?e.hash!=="":t.hash===e.hash?!0:e.hash!==""}function Qpe(t){return typeof t=="object"&&t!=null&&"then"in t}function Zpe(t){return JH(t.result)&&jpe.has(t.result.status)}function lf(t){return t.type===Er.deferred}function ps(t){return t.type===Er.error}function Ap(t){return(t&&t.type)===Er.redirect}function B4(t){return typeof t=="object"&&t!=null&&"type"in t&&"data"in t&&"init"in t&&t.type==="DataWithResponseInit"}function Xpe(t){let e=t;return e&&typeof e=="object"&&typeof e.data=="object"&&typeof e.subscribe=="function"&&typeof e.cancel=="function"&&typeof e.resolveData=="function"}function JH(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.headers=="object"&&typeof t.body<"u"}function ehe(t){return Tpe.has(t.toLowerCase())}function zo(t){return Ipe.has(t.toLowerCase())}async function the(t,e,n,i,a){let o=Object.entries(e);for(let r=0;r(h==null?void 0:h.route.id)===s);if(!l)continue;let u=i.find(h=>h.route.id===l.route.id),f=u!=null&&!GH(u,l)&&(a&&a[l.route.id])!==void 0;lf(c)&&f&&await mj(c,n,!1).then(h=>{h&&(e[s]=h)})}}async function rhe(t,e,n){for(let i=0;i(l==null?void 0:l.route.id)===o)&&lf(s)&&(Kt(r,"Expected an AbortController for revalidating fetcher deferred result"),await mj(s,r.signal,!0).then(l=>{l&&(e[a]=l)}))}}async function mj(t,e,n){if(n===void 0&&(n=!1),!await t.deferredData.resolveData(e)){if(n)try{return{type:Er.data,data:t.deferredData.unwrappedData}}catch(a){return{type:Er.error,error:a}}return{type:Er.data,data:t.deferredData.data}}}function yj(t){return new URLSearchParams(t).getAll("index").some(e=>e==="")}function mv(t,e){let n=typeof e=="string"?mu(e).search:e.search;if(t[t.length-1].route.index&&yj(n||""))return t[t.length-1];let i=VH(t);return i[i.length-1]}function V4(t){let{formMethod:e,formAction:n,formEncType:i,text:a,formData:o,json:r}=t;if(!(!e||!n||!i)){if(a!=null)return{formMethod:e,formAction:n,formEncType:i,formData:void 0,json:void 0,text:a};if(o!=null)return{formMethod:e,formAction:n,formEncType:i,formData:o,json:void 0,text:void 0};if(r!==void 0)return{formMethod:e,formAction:n,formEncType:i,formData:void 0,json:r,text:void 0}}}function Ok(t,e){return e?{state:"loading",location:t,formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text}:{state:"loading",location:t,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function nhe(t,e){return{state:"submitting",location:t,formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text}}function N0(t,e){return t?{state:"loading",formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text,data:e}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function ihe(t,e){return{state:"submitting",formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text,data:e?e.data:void 0}}function Hu(t){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function ahe(t,e){try{let n=t.sessionStorage.getItem(HH);if(n){let i=JSON.parse(n);for(let[a,o]of Object.entries(i||{}))o&&Array.isArray(o)&&e.set(a,new Set(o||[]))}}catch{}}function she(t,e){if(e.size>0){let n={};for(let[i,a]of e)n[i]=[...a];try{t.sessionStorage.setItem(HH,JSON.stringify(n))}catch(i){rh(!1,"Failed to save applied view transitions in sessionStorage ("+i+").")}}}/** - * React Router v6.26.2 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function xA(){return xA=Object.assign?Object.assign.bind():function(t){for(var e=1;e{s.current=!0}),We.useCallback(function(l,u){if(u===void 0&&(u={}),!s.current)return;if(typeof l=="number"){i.go(l);return}let f=ZS(l,JSON.parse(r),o,u.relative==="path");t==null&&e!=="/"&&(f.pathname=f.pathname==="/"?e:Ic([e,f.pathname])),(u.replace?i.replace:i.push)(f,u.state,u)},[e,i,r,o,t])}function e7(t,e){let{relative:n}=e===void 0?{}:e,{future:i}=We.useContext(qf),{matches:a}=We.useContext(zf),{pathname:o}=Eg(),r=JSON.stringify(QS(a,i.v7_relativeSplatPath));return We.useMemo(()=>ZS(t,JSON.parse(r),o,n==="path"),[t,r,o,n])}function che(t,e,n,i){Og()||Kt(!1);let{navigator:a}=We.useContext(qf),{matches:o}=We.useContext(zf),r=o[o.length-1],s=r?r.params:{};r&&r.pathname;let c=r?r.pathnameBase:"/";r&&r.route;let l=Eg(),u;u=l;let f=u.pathname||"/",h=f;if(c!=="/"){let g=c.replace(/^\//,"").split("/");h="/"+f.replace(/^\//,"").split("/").slice(g.length).join("/")}let d=hp(t,{pathname:h});return dhe(d&&d.map(g=>Object.assign({},g,{params:Object.assign({},s,g.params),pathname:Ic([c,a.encodeLocation?a.encodeLocation(g.pathname).pathname:g.pathname]),pathnameBase:g.pathnameBase==="/"?c:Ic([c,a.encodeLocation?a.encodeLocation(g.pathnameBase).pathname:g.pathnameBase])})),o,n,i)}function uhe(){let t=vhe(),e=XS(t)?t.status+" "+t.statusText:t instanceof Error?t.message:JSON.stringify(t),n=t instanceof Error?t.stack:null,a={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return We.createElement(We.Fragment,null,We.createElement("h2",null,"Unexpected Application Error!"),We.createElement("h3",{style:{fontStyle:"italic"}},e),n?We.createElement("pre",{style:a},n):null,null)}const fhe=We.createElement(uhe,null);class phe extends We.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,n){return n.location!==e.location||n.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:n.error,location:n.location,revalidation:e.revalidation||n.revalidation}}componentDidCatch(e,n){console.error("React Router caught the following error during render",e,n)}render(){return this.state.error!==void 0?We.createElement(zf.Provider,{value:this.props.routeContext},We.createElement(ZH.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function hhe(t){let{routeContext:e,match:n,children:i}=t,a=We.useContext(e_);return a&&a.static&&a.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=n.route.id),We.createElement(zf.Provider,{value:e},i)}function dhe(t,e,n,i){var a;if(e===void 0&&(e=[]),n===void 0&&(n=null),i===void 0&&(i=null),t==null){var o;if(!n)return null;if(n.errors)t=n.matches;else if((o=i)!=null&&o.v7_partialHydration&&e.length===0&&!n.initialized&&n.matches.length>0)t=n.matches;else return null}let r=t,s=(a=n)==null?void 0:a.errors;if(s!=null){let u=r.findIndex(f=>f.route.id&&(s==null?void 0:s[f.route.id])!==void 0);u>=0||Kt(!1),r=r.slice(0,Math.min(r.length,u+1))}let c=!1,l=-1;if(n&&i&&i.v7_partialHydration)for(let u=0;u=0?r=r.slice(0,l+1):r=[r[0]];break}}}return r.reduceRight((u,f,h)=>{let d,m=!1,g=null,b=null;n&&(d=s&&f.route.id?s[f.route.id]:void 0,g=f.route.errorElement||fhe,c&&(l<0&&h===0?(m=!0,b=null):l===h&&(m=!0,b=f.route.hydrateFallbackElement||null)));let v=e.concat(r.slice(0,h+1)),P=()=>{let A;return d?A=g:m?A=b:f.route.Component?A=We.createElement(f.route.Component,null):f.route.element?A=f.route.element:A=u,We.createElement(hhe,{match:f,routeContext:{outlet:u,matches:v,isDataRoute:n!=null},children:A})};return n&&(f.route.ErrorBoundary||f.route.errorElement||h===0)?We.createElement(phe,{location:n.location,revalidation:n.revalidation,component:g,error:d,children:P(),routeContext:{outlet:null,matches:v,isDataRoute:!0}}):P()},null)}var t7=function(t){return t.UseBlocker="useBlocker",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t}(t7||{}),DA=function(t){return t.UseBlocker="useBlocker",t.UseLoaderData="useLoaderData",t.UseActionData="useActionData",t.UseRouteError="useRouteError",t.UseNavigation="useNavigation",t.UseRouteLoaderData="useRouteLoaderData",t.UseMatches="useMatches",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t.UseRouteId="useRouteId",t}(DA||{});function mhe(t){let e=We.useContext(e_);return e||Kt(!1),e}function yhe(t){let e=We.useContext(QH);return e||Kt(!1),e}function ghe(t){let e=We.useContext(zf);return e||Kt(!1),e}function r7(t){let e=ghe(),n=e.matches[e.matches.length-1];return n.route.id||Kt(!1),n.route.id}function vhe(){var t;let e=We.useContext(ZH),n=yhe(DA.UseRouteError),i=r7(DA.UseRouteError);return e!==void 0?e:(t=n.errors)==null?void 0:t[i]}function Phe(){let{router:t}=mhe(t7.UseNavigateStable),e=r7(DA.UseNavigateStable),n=We.useRef(!1);return XH(()=>{n.current=!0}),We.useCallback(function(a,o){o===void 0&&(o={}),n.current&&(typeof a=="number"?t.navigate(a):t.navigate(a,xA({fromRouteId:e},o)))},[t,e])}function bhe(t){let{to:e,replace:n,state:i,relative:a}=t;Og()||Kt(!1);let{future:o,static:r}=We.useContext(qf),{matches:s}=We.useContext(zf),{pathname:c}=Eg(),l=vj(),u=ZS(e,QS(s,o.v7_relativeSplatPath),c,a==="path"),f=JSON.stringify(u);return We.useEffect(()=>l(JSON.parse(f),{replace:n,state:i,relative:a}),[l,f,a,n,i]),null}function whe(t){let{basename:e="/",children:n=null,location:i,navigationType:a=Hn.Pop,navigator:o,static:r=!1,future:s}=t;Og()&&Kt(!1);let c=e.replace(/^\/*/,"/"),l=We.useMemo(()=>({basename:c,navigator:o,static:r,future:xA({v7_relativeSplatPath:!1},s)}),[c,s,o,r]);typeof i=="string"&&(i=mu(i));let{pathname:u="/",search:f="",hash:h="",state:d=null,key:m="default"}=i,g=We.useMemo(()=>{let b=kg(u,c);return b==null?null:{location:{pathname:b,search:f,hash:h,state:d,key:m},navigationType:a}},[c,u,f,h,d,m,a]);return g==null?null:We.createElement(qf.Provider,{value:l},We.createElement(gj.Provider,{children:n,value:g}))}new Promise(()=>{});function $he(t){let e={hasErrorBoundary:t.ErrorBoundary!=null||t.errorElement!=null};return t.Component&&Object.assign(e,{element:We.createElement(t.Component),Component:void 0}),t.HydrateFallback&&Object.assign(e,{hydrateFallbackElement:We.createElement(t.HydrateFallback),HydrateFallback:void 0}),t.ErrorBoundary&&Object.assign(e,{errorElement:We.createElement(t.ErrorBoundary),ErrorBoundary:void 0}),e}/** - * React Router DOM v6.26.2 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function xP(){return xP=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)&&(n[a]=t[a]);return n}function She(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function _he(t,e){return t.button===0&&(!e||e==="_self")&&!She(t)}const xhe=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],Dhe="6";try{window.__reactRouterVersion=Dhe}catch{}function khe(t,e){return Lpe({basename:void 0,future:xP({},void 0,{v7_prependBasename:!0}),history:lpe({window:void 0}),hydrationData:Ohe(),routes:t,mapRouteProperties:$he,unstable_dataStrategy:void 0,unstable_patchRoutesOnNavigation:void 0,window:void 0}).initialize()}function Ohe(){var t;let e=(t=window)==null?void 0:t.__staticRouterHydrationData;return e&&e.errors&&(e=xP({},e,{errors:Ehe(e.errors)})),e}function Ehe(t){if(!t)return null;let e=Object.entries(t),n={};for(let[i,a]of e)if(a&&a.__type==="RouteErrorResponse")n[i]=new _A(a.status,a.statusText,a.data,a.internal===!0);else if(a&&a.__type==="Error"){if(a.__subType){let o=window[a.__subType];if(typeof o=="function")try{let r=new o(a.message);r.stack="",n[i]=r}catch{}}if(n[i]==null){let o=new Error(a.message);o.stack="",n[i]=o}}else n[i]=a;return n}const Ihe=We.createContext({isTransitioning:!1}),Che=We.createContext(new Map),The="startTransition",W4=Yce[The],jhe="flushSync",H4=ope[jhe];function Mhe(t){W4?W4(t):t()}function L0(t){H4?H4(t):t()}class Rhe{constructor(){this.status="pending",this.promise=new Promise((e,n)=>{this.resolve=i=>{this.status==="pending"&&(this.status="resolved",e(i))},this.reject=i=>{this.status==="pending"&&(this.status="rejected",n(i))}})}}function Nhe(t){let{fallbackElement:e,router:n,future:i}=t,[a,o]=We.useState(n.state),[r,s]=We.useState(),[c,l]=We.useState({isTransitioning:!1}),[u,f]=We.useState(),[h,d]=We.useState(),[m,g]=We.useState(),b=We.useRef(new Map),{v7_startTransition:v}=i||{},P=We.useCallback(I=>{v?Mhe(I):I()},[v]),A=We.useCallback((I,E)=>{let{deletedFetchers:L,unstable_flushSync:q,unstable_viewTransitionOpts:F}=E;L.forEach(D=>b.current.delete(D)),I.fetchers.forEach((D,M)=>{D.data!==void 0&&b.current.set(M,D.data)});let S=n.window==null||n.window.document==null||typeof n.window.document.startViewTransition!="function";if(!F||S){q?L0(()=>o(I)):P(()=>o(I));return}if(q){L0(()=>{h&&(u&&u.resolve(),h.skipTransition()),l({isTransitioning:!0,flushSync:!0,currentLocation:F.currentLocation,nextLocation:F.nextLocation})});let D=n.window.document.startViewTransition(()=>{L0(()=>o(I))});D.finished.finally(()=>{L0(()=>{f(void 0),d(void 0),s(void 0),l({isTransitioning:!1})})}),L0(()=>d(D));return}h?(u&&u.resolve(),h.skipTransition(),g({state:I,currentLocation:F.currentLocation,nextLocation:F.nextLocation})):(s(I),l({isTransitioning:!0,flushSync:!1,currentLocation:F.currentLocation,nextLocation:F.nextLocation}))},[n.window,h,u,b,P]);We.useLayoutEffect(()=>n.subscribe(A),[n,A]),We.useEffect(()=>{c.isTransitioning&&!c.flushSync&&f(new Rhe)},[c]),We.useEffect(()=>{if(u&&r&&n.window){let I=r,E=u.promise,L=n.window.document.startViewTransition(async()=>{P(()=>o(I)),await E});L.finished.finally(()=>{f(void 0),d(void 0),s(void 0),l({isTransitioning:!1})}),d(L)}},[P,r,u,n.window]),We.useEffect(()=>{u&&r&&a.location.key===r.location.key&&u.resolve()},[u,h,a.location,r]),We.useEffect(()=>{!c.isTransitioning&&m&&(s(m.state),l({isTransitioning:!0,flushSync:!1,currentLocation:m.currentLocation,nextLocation:m.nextLocation}),g(void 0))},[c.isTransitioning,m]),We.useEffect(()=>{},[]);let _=We.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:I=>n.navigate(I),push:(I,E,L)=>n.navigate(I,{state:E,preventScrollReset:L==null?void 0:L.preventScrollReset}),replace:(I,E,L)=>n.navigate(I,{replace:!0,state:E,preventScrollReset:L==null?void 0:L.preventScrollReset})}),[n]),x=n.basename||"/",N=We.useMemo(()=>({router:n,navigator:_,static:!1,basename:x}),[n,_,x]),j=We.useMemo(()=>({v7_relativeSplatPath:n.future.v7_relativeSplatPath}),[n.future.v7_relativeSplatPath]);return We.createElement(We.Fragment,null,We.createElement(e_.Provider,{value:N},We.createElement(QH.Provider,{value:a},We.createElement(Che.Provider,{value:b.current},We.createElement(Ihe.Provider,{value:c},We.createElement(whe,{basename:x,location:a.location,navigationType:a.historyAction,navigator:_,future:j},a.initialized||n.future.v7_partialHydration?We.createElement(Lhe,{routes:n.routes,future:n.future,state:a}):e))))),null)}const Lhe=We.memo(Fhe);function Fhe(t){let{routes:e,future:n,state:i}=t;return che(e,void 0,i,n)}const qhe=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",zhe=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Uhe=We.forwardRef(function(e,n){let{onClick:i,relative:a,reloadDocument:o,replace:r,state:s,target:c,to:l,preventScrollReset:u,unstable_viewTransition:f}=e,h=Ahe(e,xhe),{basename:d}=We.useContext(qf),m,g=!1;if(typeof l=="string"&&zhe.test(l)&&(m=l,qhe))try{let A=new URL(window.location.href),_=l.startsWith("//")?new URL(A.protocol+l):new URL(l),x=kg(_.pathname,d);_.origin===A.origin&&x!=null?l=x+_.search+_.hash:g=!0}catch{}let b=ohe(l,{relative:a}),v=Bhe(l,{replace:r,state:s,target:c,preventScrollReset:u,relative:a,unstable_viewTransition:f});function P(A){i&&i(A),A.defaultPrevented||v(A)}return We.createElement("a",xP({},h,{href:m||b,onClick:g||o?i:P,ref:n,target:c}))});var G4;(function(t){t.UseScrollRestoration="useScrollRestoration",t.UseSubmit="useSubmit",t.UseSubmitFetcher="useSubmitFetcher",t.UseFetcher="useFetcher",t.useViewTransitionState="useViewTransitionState"})(G4||(G4={}));var K4;(function(t){t.UseFetcher="useFetcher",t.UseFetchers="useFetchers",t.UseScrollRestoration="useScrollRestoration"})(K4||(K4={}));function Bhe(t,e){let{target:n,replace:i,state:a,preventScrollReset:o,relative:r,unstable_viewTransition:s}=e===void 0?{}:e,c=vj(),l=Eg(),u=e7(t,{relative:r});return We.useCallback(f=>{if(_he(f,n)){f.preventDefault();let h=i!==void 0?i:nh(l)===nh(u);c(t,{replace:h,state:a,preventScrollReset:o,relative:r,unstable_viewTransition:s})}},[l,c,u,i,a,n,t,o,r,s])}const n7=1024;let Vhe=0,Ek=class{constructor(e,n){this.from=e,this.to=n}};class Yt{constructor(e={}){this.id=Vhe++,this.perNode=!!e.perNode,this.deserialize=e.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")})}add(e){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return typeof e!="function"&&(e=wo.match(e)),n=>{let i=e(n);return i===void 0?null:[this,i]}}}Yt.closedBy=new Yt({deserialize:t=>t.split(" ")});Yt.openedBy=new Yt({deserialize:t=>t.split(" ")});Yt.group=new Yt({deserialize:t=>t.split(" ")});Yt.isolate=new Yt({deserialize:t=>{if(t&&t!="rtl"&&t!="ltr"&&t!="auto")throw new RangeError("Invalid value for isolate: "+t);return t||"auto"}});Yt.contextHash=new Yt({perNode:!0});Yt.lookAhead=new Yt({perNode:!0});Yt.mounted=new Yt({perNode:!0});class kA{constructor(e,n,i){this.tree=e,this.overlay=n,this.parser=i}static get(e){return e&&e.props&&e.props[Yt.mounted.id]}}const Whe=Object.create(null);let wo=class i7{constructor(e,n,i,a=0){this.name=e,this.props=n,this.id=i,this.flags=a}static define(e){let n=e.props&&e.props.length?Object.create(null):Whe,i=(e.top?1:0)|(e.skipped?2:0)|(e.error?4:0)|(e.name==null?8:0),a=new i7(e.name||"",n,e.id,i);if(e.props){for(let o of e.props)if(Array.isArray(o)||(o=o(a)),o){if(o[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");n[o[0].id]=o[1]}}return a}prop(e){return this.props[e.id]}get isTop(){return(this.flags&1)>0}get isSkipped(){return(this.flags&2)>0}get isError(){return(this.flags&4)>0}get isAnonymous(){return(this.flags&8)>0}is(e){if(typeof e=="string"){if(this.name==e)return!0;let n=this.prop(Yt.group);return n?n.indexOf(e)>-1:!1}return this.id==e}static match(e){let n=Object.create(null);for(let i in e)for(let a of i.split(" "))n[a]=e[i];return i=>{for(let a=i.prop(Yt.group),o=-1;o<(a?a.length:0);o++){let r=n[o<0?i.name:a[o]];if(r)return r}}}};wo.none=new wo("",Object.create(null),0,8);class Pj{constructor(e){this.types=e;for(let n=0;n0;for(let c=this.cursor(r|gi.IncludeAnonymous);;){let l=!1;if(c.from<=o&&c.to>=a&&(!s&&c.type.isAnonymous||n(c)!==!1)){if(c.firstChild())continue;l=!0}for(;l&&i&&(s||!c.type.isAnonymous)&&i(c),!c.nextSibling();){if(!c.parent())return;l=!0}}}prop(e){return e.perNode?this.props?this.props[e.id]:void 0:this.type.prop(e)}get propValues(){let e=[];if(this.props)for(let n in this.props)e.push([+n,this.props[n]]);return e}balance(e={}){return this.children.length<=8?this:$j(wo.none,this.children,this.positions,0,this.children.length,0,this.length,(n,i,a)=>new Xn(this.type,n,i,a,this.propValues),e.makeTree||((n,i,a)=>new Xn(wo.none,n,i,a)))}static build(e){return Yhe(e)}}Xn.empty=new Xn(wo.none,[],[],0);class bj{constructor(e,n){this.buffer=e,this.index=n}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new bj(this.buffer,this.index)}}class Ef{constructor(e,n,i){this.buffer=e,this.length=n,this.set=i}get type(){return wo.none}toString(){let e=[];for(let n=0;n0));c=r[c+3]);return s}slice(e,n,i){let a=this.buffer,o=new Uint16Array(n-e),r=0;for(let s=e,c=0;s=e&&ne;case 1:return n<=e&&i>e;case 2:return i>e;case 4:return!0}}function DP(t,e,n,i){for(var a;t.from==t.to||(n<1?t.from>=e:t.from>e)||(n>-1?t.to<=e:t.to0?s.length:-1;e!=l;e+=n){let u=s[e],f=c[e]+r.from;if(a7(a,i,f,f+u.length)){if(u instanceof Ef){if(o&gi.ExcludeBuffers)continue;let h=u.findChild(0,u.buffer.length,n,i-f,a);if(h>-1)return new cf(new Hhe(r,u,e,f),null,h)}else if(o&gi.IncludeAnonymous||!u.type.isAnonymous||wj(u)){let h;if(!(o&gi.IgnoreMounts)&&(h=kA.get(u))&&!h.overlay)return new so(h.tree,f,e,r);let d=new so(u,f,e,r);return o&gi.IncludeAnonymous||!d.type.isAnonymous?d:d.nextChild(n<0?u.children.length-1:0,n,i,a)}}}if(o&gi.IncludeAnonymous||!r.type.isAnonymous||(r.index>=0?e=r.index+n:e=n<0?-1:r._parent._tree.children.length,r=r._parent,!r))return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(e){return this.nextChild(0,1,e,2)}childBefore(e){return this.nextChild(this._tree.children.length-1,-1,e,-2)}enter(e,n,i=0){let a;if(!(i&gi.IgnoreOverlays)&&(a=kA.get(this._tree))&&a.overlay){let o=e-this.from;for(let{from:r,to:s}of a.overlay)if((n>0?r<=o:r=o:s>o))return new so(a.tree,a.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,e,n,i)}nextSignificantParent(){let e=this;for(;e.type.isAnonymous&&e._parent;)e=e._parent;return e}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}}function J4(t,e,n,i){let a=t.cursor(),o=[];if(!a.firstChild())return o;if(n!=null){for(let r=!1;!r;)if(r=a.type.is(n),!a.nextSibling())return o}for(;;){if(i!=null&&a.type.is(i))return o;if(a.type.is(e)&&o.push(a.node),!a.nextSibling())return i==null?o:[]}}function g2(t,e,n=e.length-1){for(let i=t.parent;n>=0;i=i.parent){if(!i)return!1;if(!i.type.isAnonymous){if(e[n]&&e[n]!=i.name)return!1;n--}}return!0}class Hhe{constructor(e,n,i,a){this.parent=e,this.buffer=n,this.index=i,this.start=a}}class cf extends s7{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(e,n,i){super(),this.context=e,this._parent=n,this.index=i,this.type=e.buffer.set.types[e.buffer.buffer[i]]}child(e,n,i){let{buffer:a}=this.context,o=a.findChild(this.index+4,a.buffer[this.index+3],e,n-this.context.start,i);return o<0?null:new cf(this.context,this,o)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(e){return this.child(1,e,2)}childBefore(e){return this.child(-1,e,-2)}enter(e,n,i=0){if(i&gi.ExcludeBuffers)return null;let{buffer:a}=this.context,o=a.findChild(this.index+4,a.buffer[this.index+3],n>0?1:-1,e-this.context.start,n);return o<0?null:new cf(this.context,this,o)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(e){return this._parent?null:this.context.parent.nextChild(this.context.index+e,e,0,4)}get nextSibling(){let{buffer:e}=this.context,n=e.buffer[this.index+3];return n<(this._parent?e.buffer[this._parent.index+3]:e.buffer.length)?new cf(this.context,this._parent,n):this.externalSibling(1)}get prevSibling(){let{buffer:e}=this.context,n=this._parent?this._parent.index+4:0;return this.index==n?this.externalSibling(-1):new cf(this.context,this._parent,e.findChild(n,this.index,-1,0,4))}get tree(){return null}toTree(){let e=[],n=[],{buffer:i}=this.context,a=this.index+4,o=i.buffer[this.index+3];if(o>a){let r=i.buffer[this.index+1];e.push(i.slice(a,o,r)),n.push(0)}return new Xn(this.type,e,n,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function o7(t){if(!t.length)return null;let e=0,n=t[0];for(let o=1;on.from||r.to=e){let s=new so(r.tree,r.overlay[0].from+o.from,-1,o);(a||(a=[i])).push(DP(s,e,n,!1))}}return a?o7(a):i}class v2{get name(){return this.type.name}constructor(e,n=0){if(this.mode=n,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,e instanceof so)this.yieldNode(e);else{this._tree=e.context.parent,this.buffer=e.context;for(let i=e._parent;i;i=i._parent)this.stack.unshift(i.index);this.bufferNode=e,this.yieldBuf(e.index)}}yieldNode(e){return e?(this._tree=e,this.type=e.type,this.from=e.from,this.to=e.to,!0):!1}yieldBuf(e,n){this.index=e;let{start:i,buffer:a}=this.buffer;return this.type=n||a.set.types[a.buffer[e]],this.from=i+a.buffer[e+1],this.to=i+a.buffer[e+2],!0}yield(e){return e?e instanceof so?(this.buffer=null,this.yieldNode(e)):(this.buffer=e.context,this.yieldBuf(e.index,e.type)):!1}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(e,n,i){if(!this.buffer)return this.yield(this._tree.nextChild(e<0?this._tree._tree.children.length-1:0,e,n,i,this.mode));let{buffer:a}=this.buffer,o=a.findChild(this.index+4,a.buffer[this.index+3],e,n-this.buffer.start,i);return o<0?!1:(this.stack.push(this.index),this.yieldBuf(o))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(e){return this.enterChild(1,e,2)}childBefore(e){return this.enterChild(-1,e,-2)}enter(e,n,i=this.mode){return this.buffer?i&gi.ExcludeBuffers?!1:this.enterChild(1,e,n):this.yield(this._tree.enter(e,n,i))}parent(){if(!this.buffer)return this.yieldNode(this.mode&gi.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let e=this.mode&gi.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(e)}sibling(e){if(!this.buffer)return this._tree._parent?this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+e,e,0,4,this.mode)):!1;let{buffer:n}=this.buffer,i=this.stack.length-1;if(e<0){let a=i<0?0:this.stack[i]+4;if(this.index!=a)return this.yieldBuf(n.findChild(a,this.index,-1,0,4))}else{let a=n.buffer[this.index+3];if(a<(i<0?n.buffer.length:n.buffer[this.stack[i]+3]))return this.yieldBuf(a)}return i<0?this.yield(this.buffer.parent.nextChild(this.buffer.index+e,e,0,4,this.mode)):!1}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(e){let n,i,{buffer:a}=this;if(a){if(e>0){if(this.index-1)for(let o=n+e,r=e<0?-1:i._tree.children.length;o!=r;o+=e){let s=i._tree.children[o];if(this.mode&gi.IncludeAnonymous||s instanceof Ef||!s.type.isAnonymous||wj(s))return!1}return!0}move(e,n){if(n&&this.enterChild(e,0,4))return!0;for(;;){if(this.sibling(e))return!0;if(this.atLastNode(e)||!this.parent())return!1}}next(e=!0){return this.move(1,e)}prev(e=!0){return this.move(-1,e)}moveTo(e,n=0){for(;(this.from==this.to||(n<1?this.from>=e:this.from>e)||(n>-1?this.to<=e:this.to=0;){for(let r=e;r;r=r._parent)if(r.index==a){if(a==this.index)return r;n=r,i=o+1;break e}a=this.stack[--o]}for(let a=i;a=0;o--){if(o<0)return g2(this.node,e,a);let r=i[n.buffer[this.stack[o]]];if(!r.isAnonymous){if(e[a]&&e[a]!=r.name)return!1;a--}}return!0}}function wj(t){return t.children.some(e=>e instanceof Ef||!e.type.isAnonymous||wj(e))}function Yhe(t){var e;let{buffer:n,nodeSet:i,maxBufferLength:a=n7,reused:o=[],minRepeatType:r=i.types.length}=t,s=Array.isArray(n)?new bj(n,n.length):n,c=i.types,l=0,u=0;function f(x,N,j,I,E,L){let{id:q,start:F,end:S,size:D}=s,M=u;for(;D<0;)if(s.next(),D==-1){let U=o[q];j.push(U),I.push(F-x);return}else if(D==-3){l=q;return}else if(D==-4){u=q;return}else throw new RangeError(`Unrecognized record size: ${D}`);let C=c[q],H,X,ie=F-x;if(S-F<=a&&(X=b(s.pos-N,E))){let U=new Uint16Array(X.size-X.skip),R=s.pos-X.size,z=U.length;for(;s.pos>R;)z=v(X.start,U,z);H=new Ef(U,S-X.start,i),ie=X.start-x}else{let U=s.pos-D;s.next();let R=[],z=[],V=q>=r?q:-1,T=0,W=S;for(;s.pos>U;)V>=0&&s.id==V&&s.size>=0?(s.end<=W-a&&(m(R,z,F,T,s.end,W,V,M),T=R.length,W=s.end),s.next()):L>2500?h(F,U,R,z):f(F,U,R,z,V,L+1);if(V>=0&&T>0&&T-1&&T>0){let le=d(C);H=$j(C,R,z,0,R.length,0,S-F,le,le)}else H=g(C,R,z,S-F,M-S)}j.push(H),I.push(ie)}function h(x,N,j,I){let E=[],L=0,q=-1;for(;s.pos>N;){let{id:F,start:S,end:D,size:M}=s;if(M>4)s.next();else{if(q>-1&&S=0;D-=3)F[M++]=E[D],F[M++]=E[D+1]-S,F[M++]=E[D+2]-S,F[M++]=M;j.push(new Ef(F,E[2]-S,i)),I.push(S-x)}}function d(x){return(N,j,I)=>{let E=0,L=N.length-1,q,F;if(L>=0&&(q=N[L])instanceof Xn){if(!L&&q.type==x&&q.length==I)return q;(F=q.prop(Yt.lookAhead))&&(E=j[L]+q.length+F)}return g(x,N,j,I,E)}}function m(x,N,j,I,E,L,q,F){let S=[],D=[];for(;x.length>I;)S.push(x.pop()),D.push(N.pop()+j-E);x.push(g(i.types[q],S,D,L-E,F-L)),N.push(E-j)}function g(x,N,j,I,E=0,L){if(l){let q=[Yt.contextHash,l];L=L?[q].concat(L):[q]}if(E>25){let q=[Yt.lookAhead,E];L=L?[q].concat(L):[q]}return new Xn(x,N,j,I,L)}function b(x,N){let j=s.fork(),I=0,E=0,L=0,q=j.end-a,F={size:0,start:0,skip:0};e:for(let S=j.pos-x;j.pos>S;){let D=j.size;if(j.id==N&&D>=0){F.size=I,F.start=E,F.skip=L,L+=4,I+=4,j.next();continue}let M=j.pos-D;if(D<0||M=r?4:0,H=j.start;for(j.next();j.pos>M;){if(j.size<0)if(j.size==-3)C+=4;else break e;else j.id>=r&&(C+=4);j.next()}E=H,I+=D,L+=C}return(N<0||I==x)&&(F.size=I,F.start=E,F.skip=L),F.size>4?F:void 0}function v(x,N,j){let{id:I,start:E,end:L,size:q}=s;if(s.next(),q>=0&&I4){let S=s.pos-(q-4);for(;s.pos>S;)j=v(x,N,j)}N[--j]=F,N[--j]=L-x,N[--j]=E-x,N[--j]=I}else q==-3?l=I:q==-4&&(u=I);return j}let P=[],A=[];for(;s.pos>0;)f(t.start||0,t.bufferStart||0,P,A,-1,0);let _=(e=t.length)!==null&&e!==void 0?e:P.length?A[0]+P[0].length:0;return new Xn(c[t.topID],P.reverse(),A.reverse(),_)}const Q4=new WeakMap;function y$(t,e){if(!t.isAnonymous||e instanceof Ef||e.type!=t)return 1;let n=Q4.get(e);if(n==null){n=1;for(let i of e.children){if(i.type!=t||!(i instanceof Xn)){n=1;break}n+=y$(t,i)}Q4.set(e,n)}return n}function $j(t,e,n,i,a,o,r,s,c){let l=0;for(let m=i;m=u)break;N+=j}if(A==_+1){if(N>u){let j=m[_];d(j.children,j.positions,0,j.children.length,g[_]+P);continue}f.push(m[_])}else{let j=g[A-1]+m[A-1].length-x;f.push($j(t,m,g,_,A,x,j,null,c))}h.push(x+P-o)}}return d(e,n,i,a,0),(s||c)(f,h,r)}class Up{constructor(e,n,i,a,o=!1,r=!1){this.from=e,this.to=n,this.tree=i,this.offset=a,this.open=(o?1:0)|(r?2:0)}get openStart(){return(this.open&1)>0}get openEnd(){return(this.open&2)>0}static addTree(e,n=[],i=!1){let a=[new Up(0,e.length,e,0,!1,i)];for(let o of n)o.to>e.length&&a.push(o);return a}static applyChanges(e,n,i=128){if(!n.length)return e;let a=[],o=1,r=e.length?e[0]:null;for(let s=0,c=0,l=0;;s++){let u=s=i)for(;r&&r.from=h.from||f<=h.to||l){let d=Math.max(h.from,c)-l,m=Math.min(h.to,f)-l;h=d>=m?null:new Up(d,m,h.tree,h.offset+l,s>0,!!u)}if(h&&a.push(h),r.to>f)break;r=onew Ek(a.from,a.to)):[new Ek(0,0)]:[new Ek(0,e.length)],this.createParse(e,n||[],i)}parse(e,n,i){let a=this.startParse(e,n,i);for(;;){let o=a.advance();if(o)return o}}}class Jhe{constructor(e){this.string=e}get length(){return this.string.length}chunk(e){return this.string.slice(e)}get lineChunks(){return!1}read(e,n){return this.string.slice(e,n)}}new Yt({perNode:!0});var Z4={};let Qhe=class P2{constructor(e,n,i,a,o,r,s,c,l,u=0,f){this.p=e,this.stack=n,this.state=i,this.reducePos=a,this.pos=o,this.score=r,this.buffer=s,this.bufferBase=c,this.curContext=l,this.lookAhead=u,this.parent=f}toString(){return`[${this.stack.filter((e,n)=>n%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(e,n,i=0){let a=e.parser.context;return new P2(e,[],n,i,i,0,[],0,a?new X4(a,a.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(e,n){this.stack.push(this.state,n,this.bufferBase+this.buffer.length),this.state=e}reduce(e){var n;let i=e>>19,a=e&65535,{parser:o}=this.p,r=this.reducePos=2e3&&!(!((n=this.p.parser.nodeSet.types[a])===null||n===void 0)&&n.isAnonymous)&&(l==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=u):this.p.lastBigReductionSizec;)this.stack.pop();this.reduceContext(a,l)}storeNode(e,n,i,a=4,o=!1){if(e==0&&(!this.stack.length||this.stack[this.stack.length-1]0&&r.buffer[s-4]==0&&r.buffer[s-1]>-1){if(n==i)return;if(r.buffer[s-2]>=n){r.buffer[s-2]=i;return}}}if(!o||this.pos==i)this.buffer.push(e,n,i,a);else{let r=this.buffer.length;if(r>0&&this.buffer[r-4]!=0){let s=!1;for(let c=r;c>0&&this.buffer[c-2]>i;c-=4)if(this.buffer[c-1]>=0){s=!0;break}if(s)for(;r>0&&this.buffer[r-2]>i;)this.buffer[r]=this.buffer[r-4],this.buffer[r+1]=this.buffer[r-3],this.buffer[r+2]=this.buffer[r-2],this.buffer[r+3]=this.buffer[r-1],r-=4,a>4&&(a-=4)}this.buffer[r]=e,this.buffer[r+1]=n,this.buffer[r+2]=i,this.buffer[r+3]=a}}shift(e,n,i,a){if(e&131072)this.pushState(e&65535,this.pos);else if(e&262144)this.pos=a,this.shiftContext(n,i),n<=this.p.parser.maxNode&&this.buffer.push(n,i,a,4);else{let o=e,{parser:r}=this.p;(a>this.pos||n<=r.maxNode)&&(this.pos=a,r.stateFlag(o,1)||(this.reducePos=a)),this.pushState(o,i),this.shiftContext(n,i),n<=r.maxNode&&this.buffer.push(n,i,a,4)}}apply(e,n,i,a){e&65536?this.reduce(e):this.shift(e,n,i,a)}useNode(e,n){let i=this.p.reused.length-1;(i<0||this.p.reused[i]!=e)&&(this.p.reused.push(e),i++);let a=this.pos;this.reducePos=this.pos=a+e.length,this.pushState(n,a),this.buffer.push(i,a,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,e,this,this.p.stream.reset(this.pos-e.length)))}split(){let e=this,n=e.buffer.length;for(;n>0&&e.buffer[n-2]>e.reducePos;)n-=4;let i=e.buffer.slice(n),a=e.bufferBase+n;for(;e&&a==e.bufferBase;)e=e.parent;return new P2(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,i,a,this.curContext,this.lookAhead,e)}recoverByDelete(e,n){let i=e<=this.p.parser.maxNode;i&&this.storeNode(e,this.pos,n,4),this.storeNode(0,this.pos,n,i?8:4),this.pos=this.reducePos=n,this.score-=190}canShift(e){for(let n=new Zhe(this);;){let i=this.p.parser.stateSlot(n.state,4)||this.p.parser.hasAction(n.state,e);if(i==0)return!1;if(!(i&65536))return!0;n.reduce(i)}}recoverByInsert(e){if(this.stack.length>=300)return[];let n=this.p.parser.nextStates(this.state);if(n.length>8||this.stack.length>=120){let a=[];for(let o=0,r;oc&1&&s==r)||a.push(n[o],r)}n=a}let i=[];for(let a=0;a>19,a=n&65535,o=this.stack.length-i*3;if(o<0||e.getGoto(this.stack[o],a,!1)<0){let r=this.findForcedReduction();if(r==null)return!1;n=r}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(n),!0}findForcedReduction(){let{parser:e}=this.p,n=[],i=(a,o)=>{if(!n.includes(a))return n.push(a),e.allActions(a,r=>{if(!(r&393216))if(r&65536){let s=(r>>19)-o;if(s>1){let c=r&65535,l=this.stack.length-s*3;if(l>=0&&e.getGoto(this.stack[l],c,!1)>=0)return s<<19|65536|c}}else{let s=i(r,o+1);if(s!=null)return s}})};return i(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(this.stack.length!=3)return!1;let{parser:e}=this.p;return e.data[e.stateSlot(this.state,1)]==65535&&!e.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(e){if(this.state!=e.state||this.stack.length!=e.stack.length)return!1;for(let n=0;nthis.lookAhead&&(this.emitLookAhead(),this.lookAhead=e)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}};class X4{constructor(e,n){this.tracker=e,this.context=n,this.hash=e.strict?e.hash(n):0}}class Zhe{constructor(e){this.start=e,this.state=e.state,this.stack=e.stack,this.base=this.stack.length}reduce(e){let n=e&65535,i=e>>19;i==0?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=(i-1)*3;let a=this.start.p.parser.getGoto(this.stack[this.base-3],n,!0);this.state=a}}class OA{constructor(e,n,i){this.stack=e,this.pos=n,this.index=i,this.buffer=e.buffer,this.index==0&&this.maybeNext()}static create(e,n=e.bufferBase+e.buffer.length){return new OA(e,n,n-e.bufferBase)}maybeNext(){let e=this.stack.parent;e!=null&&(this.index=this.stack.bufferBase-e.bufferBase,this.stack=e,this.buffer=e.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,this.index==0&&this.maybeNext()}fork(){return new OA(this.stack,this.pos,this.index)}}function K1(t,e=Uint16Array){if(typeof t!="string")return t;let n=null;for(let i=0,a=0;i=92&&r--,r>=34&&r--;let c=r-32;if(c>=46&&(c-=46,s=!0),o+=c,s)break;o*=46}n?n[a++]=o:n=new e(o)}return n}class g${constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const e3=new g$;class Xhe{constructor(e,n){this.input=e,this.ranges=n,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=e3,this.rangeIndex=0,this.pos=this.chunkPos=n[0].from,this.range=n[0],this.end=n[n.length-1].to,this.readNext()}resolveOffset(e,n){let i=this.range,a=this.rangeIndex,o=this.pos+e;for(;oi.to:o>=i.to;){if(a==this.ranges.length-1)return null;let r=this.ranges[++a];o+=r.from-i.to,i=r}return o}clipPos(e){if(e>=this.range.from&&ee)return Math.max(e,n.from);return this.end}peek(e){let n=this.chunkOff+e,i,a;if(n>=0&&n=this.chunk2Pos&&is.to&&(this.chunk2=this.chunk2.slice(0,s.to-i)),a=this.chunk2.charCodeAt(0)}}return i>=this.token.lookAhead&&(this.token.lookAhead=i+1),a}acceptToken(e,n=0){let i=n?this.resolveOffset(n,-1):this.pos;if(i==null||i=this.chunk2Pos&&this.posthis.range.to?e.slice(0,this.range.to-this.pos):e,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(e=1){for(this.chunkOff+=e;this.pos+e>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();e-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=e,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(e,n){if(n?(this.token=n,n.start=e,n.lookAhead=e+1,n.value=n.extended=-1):this.token=e3,this.pos!=e){if(this.pos=e,e==this.end)return this.setDone(),this;for(;e=this.range.to;)this.range=this.ranges[++this.rangeIndex];e>=this.chunkPos&&e=this.chunkPos&&n<=this.chunkPos+this.chunk.length)return this.chunk.slice(e-this.chunkPos,n-this.chunkPos);if(e>=this.chunk2Pos&&n<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(e-this.chunk2Pos,n-this.chunk2Pos);if(e>=this.range.from&&n<=this.range.to)return this.input.read(e,n);let i="";for(let a of this.ranges){if(a.from>=n)break;a.to>e&&(i+=this.input.read(Math.max(a.from,e),Math.min(a.to,n)))}return i}}class Qd{constructor(e,n){this.data=e,this.id=n}token(e,n){let{parser:i}=n.p;ede(this.data,e,n,this.id,i.data,i.tokenPrecTable)}}Qd.prototype.contextual=Qd.prototype.fallback=Qd.prototype.extend=!1;Qd.prototype.fallback=Qd.prototype.extend=!1;function ede(t,e,n,i,a,o){let r=0,s=1<0){let m=t[d];if(c.allows(m)&&(e.token.value==-1||e.token.value==m||tde(m,e.token.value,a,o))){e.acceptToken(m);break}}let u=e.next,f=0,h=t[r+2];if(e.next<0&&h>f&&t[l+h*3-3]==65535){r=t[l+h*3-1];continue e}for(;f>1,m=l+d+(d<<1),g=t[m],b=t[m+1]||65536;if(u=b)f=d+1;else{r=t[m+2],e.advance();continue e}}break}}function t3(t,e,n){for(let i=e,a;(a=t[i])!=65535;i++)if(a==n)return i-e;return-1}function tde(t,e,n,i){let a=t3(n,i,e);return a<0||t3(n,i,t)e)&&!i.type.isError)return n<0?Math.max(0,Math.min(i.to-1,e-25)):Math.min(t.length,Math.max(i.from+1,e+25));if(n<0?i.prevSibling():i.nextSibling())break;if(!i.parent())return n<0?0:t.length}}class rde{constructor(e,n){this.fragments=e,this.nodeSet=n,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let e=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(e){for(this.safeFrom=e.openStart?r3(e.tree,e.from+e.offset,1)-e.offset:e.from,this.safeTo=e.openEnd?r3(e.tree,e.to+e.offset,-1)-e.offset:e.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(e.tree),this.start.push(-e.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(e){if(ee)return this.nextStart=r,null;if(o instanceof Xn){if(r==e){if(r=Math.max(this.safeFrom,e)&&(this.trees.push(o),this.start.push(r),this.index.push(0))}else this.index[n]++,this.nextStart=r+o.length}}}class nde{constructor(e,n){this.stream=n,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=e.tokenizers.map(i=>new g$)}getActions(e){let n=0,i=null,{parser:a}=e.p,{tokenizers:o}=a,r=a.stateSlot(e.state,3),s=e.curContext?e.curContext.hash:0,c=0;for(let l=0;lf.end+25&&(c=Math.max(f.lookAhead,c)),f.value!=0)){let h=n;if(f.extended>-1&&(n=this.addActions(e,f.extended,f.end,n)),n=this.addActions(e,f.value,f.end,n),!u.extend&&(i=f,n>h))break}}for(;this.actions.length>n;)this.actions.pop();return c&&e.setLookAhead(c),!i&&e.pos==this.stream.end&&(i=new g$,i.value=e.p.parser.eofTerm,i.start=i.end=e.pos,n=this.addActions(e,i.value,i.end,n)),this.mainToken=i,this.actions}getMainToken(e){if(this.mainToken)return this.mainToken;let n=new g$,{pos:i,p:a}=e;return n.start=i,n.end=Math.min(i+1,a.stream.end),n.value=i==a.stream.end?a.parser.eofTerm:0,n}updateCachedToken(e,n,i){let a=this.stream.clipPos(i.pos);if(n.token(this.stream.reset(a,e),i),e.value>-1){let{parser:o}=i.p;for(let r=0;r=0&&i.p.parser.dialect.allows(s>>1)){s&1?e.extended=s>>1:e.value=s>>1;break}}}else e.value=0,e.end=this.stream.clipPos(a+1)}putAction(e,n,i,a){for(let o=0;oe.bufferLength*4?new rde(i,e.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let e=this.stacks,n=this.minStackPos,i=this.stacks=[],a,o;if(this.bigReductionCount>300&&e.length==1){let[r]=e;for(;r.forceReduce()&&r.stack.length&&r.stack[r.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let r=0;rn)i.push(s);else{if(this.advanceStack(s,i,e))continue;{a||(a=[],o=[]),a.push(s);let c=this.tokens.getMainToken(s);o.push(c.value,c.end)}}break}}if(!i.length){let r=a&&sde(a);if(r)return ls&&console.log("Finish with "+this.stackID(r)),this.stackToTree(r);if(this.parser.strict)throw ls&&a&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+n);this.recovering||(this.recovering=5)}if(this.recovering&&a){let r=this.stoppedAt!=null&&a[0].pos>this.stoppedAt?a[0]:this.runRecovery(a,o,i);if(r)return ls&&console.log("Force-finish "+this.stackID(r)),this.stackToTree(r.forceAll())}if(this.recovering){let r=this.recovering==1?1:this.recovering*3;if(i.length>r)for(i.sort((s,c)=>c.score-s.score);i.length>r;)i.pop();i.some(s=>s.reducePos>n)&&this.recovering--}else if(i.length>1){e:for(let r=0;r500&&l.buffer.length>500)if((s.score-l.score||s.buffer.length-l.buffer.length)>0)i.splice(c--,1);else{i.splice(r--,1);continue e}}}i.length>12&&i.splice(12,i.length-12)}this.minStackPos=i[0].pos;for(let r=1;r ":"";if(this.stoppedAt!=null&&a>this.stoppedAt)return e.forceReduce()?e:null;if(this.fragments){let l=e.curContext&&e.curContext.tracker.strict,u=l?e.curContext.hash:0;for(let f=this.fragments.nodeAt(a);f;){let h=this.parser.nodeSet.types[f.type.id]==f.type?o.getGoto(e.state,f.type.id):-1;if(h>-1&&f.length&&(!l||(f.prop(Yt.contextHash)||0)==u))return e.useNode(f,h),ls&&console.log(r+this.stackID(e)+` (via reuse of ${o.getName(f.type.id)})`),!0;if(!(f instanceof Xn)||f.children.length==0||f.positions[0]>0)break;let d=f.children[0];if(d instanceof Xn&&f.positions[0]==0)f=d;else break}}let s=o.stateSlot(e.state,4);if(s>0)return e.reduce(s),ls&&console.log(r+this.stackID(e)+` (via always-reduce ${o.getName(s&65535)})`),!0;if(e.stack.length>=8400)for(;e.stack.length>6e3&&e.forceReduce(););let c=this.tokens.getActions(e);for(let l=0;la?n.push(m):i.push(m)}return!1}advanceFully(e,n){let i=e.pos;for(;;){if(!this.advanceStack(e,null,null))return!1;if(e.pos>i)return n3(e,n),!0}}runRecovery(e,n,i){let a=null,o=!1;for(let r=0;r ":"";if(s.deadEnd&&(o||(o=!0,s.restart(),ls&&console.log(u+this.stackID(s)+" (restarted)"),this.advanceFully(s,i))))continue;let f=s.split(),h=u;for(let d=0;f.forceReduce()&&d<10&&(ls&&console.log(h+this.stackID(f)+" (via force-reduce)"),!this.advanceFully(f,i));d++)ls&&(h=this.stackID(f)+" -> ");for(let d of s.recoverByInsert(c))ls&&console.log(u+this.stackID(d)+" (via recover-insert)"),this.advanceFully(d,i);this.stream.end>s.pos?(l==s.pos&&(l++,c=0),s.recoverByDelete(c,l),ls&&console.log(u+this.stackID(s)+` (via recover-delete ${this.parser.getName(c)})`),n3(s,i)):(!a||a.scoree.topRules[s][1]),a=[];for(let s=0;s=0)o(u,c,s[l++]);else{let f=s[l+-u];for(let h=-u;h>0;h--)o(s[l++],c,f);l++}}}this.nodeSet=new Pj(n.map((s,c)=>wo.define({name:c>=this.minRepeatTerm?void 0:s,id:c,props:a[c],top:i.indexOf(c)>-1,error:c==0,skipped:e.skippedNodes&&e.skippedNodes.indexOf(c)>-1}))),e.propSources&&(this.nodeSet=this.nodeSet.extend(...e.propSources)),this.strict=!1,this.bufferLength=n7;let r=K1(e.tokenData);this.context=e.context,this.specializerSpecs=e.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let s=0;stypeof s=="number"?new Qd(r,s):s),this.topRules=e.topRules,this.dialects=e.dialects||{},this.dynamicPrecedences=e.dynamicPrecedences||null,this.tokenPrecTable=e.tokenPrec,this.termNames=e.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(e,n,i){let a=new ide(this,e,n,i);for(let o of this.wrappers)a=o(a,e,n,i);return a}getGoto(e,n,i=!1){let a=this.goto;if(n>=a[0])return-1;for(let o=a[n+1];;){let r=a[o++],s=r&1,c=a[o++];if(s&&i)return c;for(let l=o+(r>>1);o0}validAction(e,n){return!!this.allActions(e,i=>i==n?!0:null)}allActions(e,n){let i=this.stateSlot(e,4),a=i?n(i):void 0;for(let o=this.stateSlot(e,1);a==null;o+=3){if(this.data[o]==65535)if(this.data[o+1]==1)o=bc(this.data,o+2);else break;a=n(bc(this.data,o+1))}return a}nextStates(e){let n=[];for(let i=this.stateSlot(e,1);;i+=3){if(this.data[i]==65535)if(this.data[i+1]==1)i=bc(this.data,i+2);else break;if(!(this.data[i+2]&1)){let a=this.data[i+1];n.some((o,r)=>r&1&&o==a)||n.push(this.data[i],a)}}return n}configure(e){let n=Object.assign(Object.create(EA.prototype),this);if(e.props&&(n.nodeSet=this.nodeSet.extend(...e.props)),e.top){let i=this.topRules[e.top];if(!i)throw new RangeError(`Invalid top rule name ${e.top}`);n.top=i}return e.tokenizers&&(n.tokenizers=this.tokenizers.map(i=>{let a=e.tokenizers.find(o=>o.from==i);return a?a.to:i})),e.specializers&&(n.specializers=this.specializers.slice(),n.specializerSpecs=this.specializerSpecs.map((i,a)=>{let o=e.specializers.find(s=>s.from==i.external);if(!o)return i;let r=Object.assign(Object.assign({},i),{external:o.to});return n.specializers[a]=i3(r),r})),e.contextTracker&&(n.context=e.contextTracker),e.dialect&&(n.dialect=this.parseDialect(e.dialect)),e.strict!=null&&(n.strict=e.strict),e.wrap&&(n.wrappers=n.wrappers.concat(e.wrap)),e.bufferLength!=null&&(n.bufferLength=e.bufferLength),n}hasWrappers(){return this.wrappers.length>0}getName(e){return this.termNames?this.termNames[e]:String(e<=this.maxNode&&this.nodeSet.types[e].name||e)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(e){let n=this.dynamicPrecedences;return n==null?0:n[e]||0}parseDialect(e){let n=Object.keys(this.dialects),i=n.map(()=>!1);if(e)for(let o of e.split(" ")){let r=n.indexOf(o);r>=0&&(i[r]=!0)}let a=null;for(let o=0;oi)&&n.p.parser.stateFlag(n.state,2)&&(!e||e.scoret.external(n,i)<<1|e}return t.get}let ode=0;class Ks{constructor(e,n,i,a){this.name=e,this.set=n,this.base=i,this.modified=a,this.id=ode++}toString(){let{name:e}=this;for(let n of this.modified)n.name&&(e=`${n.name}(${e})`);return e}static define(e,n){let i=typeof e=="string"?e:"?";if(e instanceof Ks&&(n=e),n!=null&&n.base)throw new Error("Can not derive from a modified tag");let a=new Ks(i,[],null,[]);if(a.set.push(a),n)for(let o of n.set)a.set.push(o);return a}static defineModifier(e){let n=new IA(e);return i=>i.modified.indexOf(n)>-1?i:IA.get(i.base||i,i.modified.concat(n).sort((a,o)=>a.id-o.id))}}let lde=0;class IA{constructor(e){this.name=e,this.instances=[],this.id=lde++}static get(e,n){if(!n.length)return e;let i=n[0].instances.find(s=>s.base==e&&cde(n,s.modified));if(i)return i;let a=[],o=new Ks(e.name,a,e,n);for(let s of n)s.instances.push(o);let r=ude(n);for(let s of e.set)if(!s.modified.length)for(let c of r)a.push(IA.get(s,c));return o}}function cde(t,e){return t.length==e.length&&t.every((n,i)=>n==e[i])}function ude(t){let e=[[]];for(let n=0;ni.length-n.length)}function c7(t){let e=Object.create(null);for(let n in t){let i=t[n];Array.isArray(i)||(i=[i]);for(let a of n.split(" "))if(a){let o=[],r=2,s=a;for(let f=0;;){if(s=="..."&&f>0&&f+3==a.length){r=1;break}let h=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(s);if(!h)throw new RangeError("Invalid path: "+a);if(o.push(h[0]=="*"?"":h[0][0]=='"'?JSON.parse(h[0]):h[0]),f+=h[0].length,f==a.length)break;let d=a[f++];if(f==a.length&&d=="!"){r=0;break}if(d!="/")throw new RangeError("Invalid path: "+a);s=a.slice(f)}let c=o.length-1,l=o[c];if(!l)throw new RangeError("Invalid path: "+a);let u=new CA(i,r,c>0?o.slice(0,c):null);e[l]=u.sort(e[l])}}return u7.add(e)}const u7=new Yt;let CA=class{constructor(e,n,i,a){this.tags=e,this.mode=n,this.context=i,this.next=a}get opaque(){return this.mode==0}get inherit(){return this.mode==1}sort(e){return!e||e.depth{let r=a;for(let s of o)for(let c of s.set){let l=n[c.id];if(l){r=r?r+" "+l:l;break}}return r},scope:i}}function fde(t,e){let n=null;for(let i of t){let a=i.style(e);a&&(n=n?n+" "+a:a)}return n}function pde(t,e,n,i=0,a=t.length){let o=new hde(i,Array.isArray(e)?e:[e],n);o.highlightRange(t.cursor(),i,a,"",o.highlighters),o.flush(a)}class hde{constructor(e,n,i){this.at=e,this.highlighters=n,this.span=i,this.class=""}startSpan(e,n){n!=this.class&&(this.flush(e),e>this.at&&(this.at=e),this.class=n)}flush(e){e>this.at&&this.class&&this.span(this.at,e,this.class)}highlightRange(e,n,i,a,o){let{type:r,from:s,to:c}=e;if(s>=i||c<=n)return;r.isTop&&(o=this.highlighters.filter(d=>!d.scope||d.scope(r)));let l=a,u=dde(e)||CA.empty,f=fde(o,u.tags);if(f&&(l&&(l+=" "),l+=f,u.mode==1&&(a+=(a?" ":"")+f)),this.startSpan(Math.max(n,s),l),u.opaque)return;let h=e.tree&&e.tree.prop(Yt.mounted);if(h&&h.overlay){let d=e.node.enter(h.overlay[0].from+s,1),m=this.highlighters.filter(b=>!b.scope||b.scope(h.tree.type)),g=e.firstChild();for(let b=0,v=s;;b++){let P=b=A||!e.nextSibling())););if(!P||A>i)break;v=P.to+s,v>n&&(this.highlightRange(d.cursor(),Math.max(n,P.from+s),Math.min(i,v),"",m),this.startSpan(Math.min(i,v),l))}g&&e.parent()}else if(e.firstChild()){h&&(a="");do if(!(e.to<=n)){if(e.from>=i)break;this.highlightRange(e,n,i,a,o),this.startSpan(Math.min(i,e.to),l)}while(e.nextSibling());e.parent()}}}function dde(t){let e=t.type.prop(u7);for(;e&&e.context&&!t.matchContext(e.context);)e=e.next;return e||null}const Xe=Ks.define,Y1=Xe(),Ju=Xe(),a3=Xe(Ju),s3=Xe(Ju),Qu=Xe(),J1=Xe(Qu),Ck=Xe(Qu),$l=Xe(),np=Xe($l),gl=Xe(),vl=Xe(),b2=Xe(),F0=Xe(b2),Q1=Xe(),je={comment:Y1,lineComment:Xe(Y1),blockComment:Xe(Y1),docComment:Xe(Y1),name:Ju,variableName:Xe(Ju),typeName:a3,tagName:Xe(a3),propertyName:s3,attributeName:Xe(s3),className:Xe(Ju),labelName:Xe(Ju),namespace:Xe(Ju),macroName:Xe(Ju),literal:Qu,string:J1,docString:Xe(J1),character:Xe(J1),attributeValue:Xe(J1),number:Ck,integer:Xe(Ck),float:Xe(Ck),bool:Xe(Qu),regexp:Xe(Qu),escape:Xe(Qu),color:Xe(Qu),url:Xe(Qu),keyword:gl,self:Xe(gl),null:Xe(gl),atom:Xe(gl),unit:Xe(gl),modifier:Xe(gl),operatorKeyword:Xe(gl),controlKeyword:Xe(gl),definitionKeyword:Xe(gl),moduleKeyword:Xe(gl),operator:vl,derefOperator:Xe(vl),arithmeticOperator:Xe(vl),logicOperator:Xe(vl),bitwiseOperator:Xe(vl),compareOperator:Xe(vl),updateOperator:Xe(vl),definitionOperator:Xe(vl),typeOperator:Xe(vl),controlOperator:Xe(vl),punctuation:b2,separator:Xe(b2),bracket:F0,angleBracket:Xe(F0),squareBracket:Xe(F0),paren:Xe(F0),brace:Xe(F0),content:$l,heading:np,heading1:Xe(np),heading2:Xe(np),heading3:Xe(np),heading4:Xe(np),heading5:Xe(np),heading6:Xe(np),contentSeparator:Xe($l),list:Xe($l),quote:Xe($l),emphasis:Xe($l),strong:Xe($l),link:Xe($l),monospace:Xe($l),strikethrough:Xe($l),inserted:Xe(),deleted:Xe(),changed:Xe(),invalid:Xe(),meta:Q1,documentMeta:Xe(Q1),annotation:Xe(Q1),processingInstruction:Xe(Q1),definition:Ks.defineModifier("definition"),constant:Ks.defineModifier("constant"),function:Ks.defineModifier("function"),standard:Ks.defineModifier("standard"),local:Ks.defineModifier("local"),special:Ks.defineModifier("special")};for(let t in je){let e=je[t];e instanceof Ks&&(e.name=t)}f7([{tag:je.link,class:"tok-link"},{tag:je.heading,class:"tok-heading"},{tag:je.emphasis,class:"tok-emphasis"},{tag:je.strong,class:"tok-strong"},{tag:je.keyword,class:"tok-keyword"},{tag:je.atom,class:"tok-atom"},{tag:je.bool,class:"tok-bool"},{tag:je.url,class:"tok-url"},{tag:je.labelName,class:"tok-labelName"},{tag:je.inserted,class:"tok-inserted"},{tag:je.deleted,class:"tok-deleted"},{tag:je.literal,class:"tok-literal"},{tag:je.string,class:"tok-string"},{tag:je.number,class:"tok-number"},{tag:[je.regexp,je.escape,je.special(je.string)],class:"tok-string2"},{tag:je.variableName,class:"tok-variableName"},{tag:je.local(je.variableName),class:"tok-variableName tok-local"},{tag:je.definition(je.variableName),class:"tok-variableName tok-definition"},{tag:je.special(je.variableName),class:"tok-variableName2"},{tag:je.definition(je.propertyName),class:"tok-propertyName tok-definition"},{tag:je.typeName,class:"tok-typeName"},{tag:je.namespace,class:"tok-namespace"},{tag:je.className,class:"tok-className"},{tag:je.macroName,class:"tok-macroName"},{tag:je.propertyName,class:"tok-propertyName"},{tag:je.operator,class:"tok-operator"},{tag:je.comment,class:"tok-comment"},{tag:je.meta,class:"tok-meta"},{tag:je.invalid,class:"tok-invalid"},{tag:je.punctuation,class:"tok-punctuation"}]);const mde=c7({String:je.string,Number:je.number,"True False":je.bool,PropertyName:je.propertyName,Null:je.null,",":je.separator,"[ ]":je.squareBracket,"{ }":je.brace}),yde=EA.deserialize({version:14,states:"$bOVQPOOOOQO'#Cb'#CbOnQPO'#CeOvQPO'#CjOOQO'#Cp'#CpQOQPOOOOQO'#Cg'#CgO}QPO'#CfO!SQPO'#CrOOQO,59P,59PO![QPO,59PO!aQPO'#CuOOQO,59U,59UO!iQPO,59UOVQPO,59QOqQPO'#CkO!nQPO,59^OOQO1G.k1G.kOVQPO'#ClO!vQPO,59aOOQO1G.p1G.pOOQO1G.l1G.lOOQO,59V,59VOOQO-E6i-E6iOOQO,59W,59WOOQO-E6j-E6j",stateData:"#O~OcOS~OQSORSOSSOTSOWQO]ROePO~OVXOeUO~O[[O~PVOg^O~Oh_OVfX~OVaO~OhbO[iX~O[dO~Oh_OVfa~OhbO[ia~O",goto:"!kjPPPPPPkPPkqwPPk{!RPPP!XP!ePP!hXSOR^bQWQRf_TVQ_Q`WRg`QcZRicQTOQZRQe^RhbRYQR]R",nodeNames:"⚠ JsonText True False Null Number String } { Object Property PropertyName ] [ Array",maxTerm:25,nodeProps:[["isolate",-2,6,11,""],["openedBy",7,"{",12,"["],["closedBy",8,"}",13,"]"]],propSources:[mde],skippedNodes:[0],repeatNodeCount:2,tokenData:"(|~RaXY!WYZ!W]^!Wpq!Wrs!]|}$u}!O$z!Q!R%T!R![&c![!]&t!}#O&y#P#Q'O#Y#Z'T#b#c'r#h#i(Z#o#p(r#q#r(w~!]Oc~~!`Wpq!]qr!]rs!xs#O!]#O#P!}#P;'S!];'S;=`$o<%lO!]~!}Oe~~#QXrs!]!P!Q!]#O#P!]#U#V!]#Y#Z!]#b#c!]#f#g!]#h#i!]#i#j#m~#pR!Q![#y!c!i#y#T#Z#y~#|R!Q![$V!c!i$V#T#Z$V~$YR!Q![$c!c!i$c#T#Z$c~$fR!Q![!]!c!i!]#T#Z!]~$rP;=`<%l!]~$zOh~~$}Q!Q!R%T!R![&c~%YRT~!O!P%c!g!h%w#X#Y%w~%fP!Q![%i~%nRT~!Q![%i!g!h%w#X#Y%w~%zR{|&T}!O&T!Q![&Z~&WP!Q![&Z~&`PT~!Q![&Z~&hST~!O!P%c!Q![&c!g!h%w#X#Y%w~&yOg~~'OO]~~'TO[~~'WP#T#U'Z~'^P#`#a'a~'dP#g#h'g~'jP#X#Y'm~'rOR~~'uP#i#j'x~'{P#`#a(O~(RP#`#a(U~(ZOS~~(^P#f#g(a~(dP#i#j(g~(jP#X#Y(m~(rOQ~~(wOW~~(|OV~",tokenizers:[0],topRules:{JsonText:[0,1]},tokenPrec:0});class fr{lineAt(e){if(e<0||e>this.length)throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,n,i){[e,n]=sg(this,e,n);let a=[];return this.decompose(0,e,a,2),i.length&&i.decompose(0,i.length,a,3),this.decompose(n,this.length,a,1),Dl.from(a,this.length-(n-e)+i.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,n=this.length){[e,n]=sg(this,e,n);let i=[];return this.decompose(e,n,i,0),Dl.from(i,n-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let n=this.scanIdentical(e,1),i=this.length-this.scanIdentical(e,-1),a=new zv(this),o=new zv(e);for(let r=n,s=n;;){if(a.next(r),o.next(r),r=0,a.lineBreak!=o.lineBreak||a.done!=o.done||a.value!=o.value)return!1;if(s+=a.value.length,a.done||s>=i)return!0}}iter(e=1){return new zv(this,e)}iterRange(e,n=this.length){return new p7(this,e,n)}iterLines(e,n){let i;if(e==null)i=this.iter();else{n==null&&(n=this.lines+1);let a=this.line(e).from;i=this.iterRange(a,Math.max(a,n==this.lines+1?this.length:n<=1?0:this.line(n-1).to))}return new h7(i)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}constructor(){}static of(e){if(e.length==0)throw new RangeError("A document must have at least one line");return e.length==1&&!e[0]?fr.empty:e.length<=32?new In(e):Dl.from(In.split(e,[]))}}class In extends fr{constructor(e,n=gde(e)){super(),this.text=e,this.length=n}get lines(){return this.text.length}get children(){return null}lineInner(e,n,i,a){for(let o=0;;o++){let r=this.text[o],s=a+r.length;if((n?i:s)>=e)return new vde(a,s,i,r);a=s+1,i++}}decompose(e,n,i,a){let o=e<=0&&n>=this.length?this:new In(o3(this.text,e,n),Math.min(n,this.length)-Math.max(0,e));if(a&1){let r=i.pop(),s=v$(o.text,r.text.slice(),0,o.length);if(s.length<=32)i.push(new In(s,r.length+o.length));else{let c=s.length>>1;i.push(new In(s.slice(0,c)),new In(s.slice(c)))}}else i.push(o)}replace(e,n,i){if(!(i instanceof In))return super.replace(e,n,i);[e,n]=sg(this,e,n);let a=v$(this.text,v$(i.text,o3(this.text,0,e)),n),o=this.length+i.length-(n-e);return a.length<=32?new In(a,o):Dl.from(In.split(a,[]),o)}sliceString(e,n=this.length,i=` -`){[e,n]=sg(this,e,n);let a="";for(let o=0,r=0;o<=n&&re&&r&&(a+=i),eo&&(a+=s.slice(Math.max(0,e-o),n-o)),o=c+1}return a}flatten(e){for(let n of this.text)e.push(n)}scanIdentical(){return 0}static split(e,n){let i=[],a=-1;for(let o of e)i.push(o),a+=o.length+1,i.length==32&&(n.push(new In(i,a)),i=[],a=-1);return a>-1&&n.push(new In(i,a)),n}}class Dl extends fr{constructor(e,n){super(),this.children=e,this.length=n,this.lines=0;for(let i of e)this.lines+=i.lines}lineInner(e,n,i,a){for(let o=0;;o++){let r=this.children[o],s=a+r.length,c=i+r.lines-1;if((n?c:s)>=e)return r.lineInner(e,n,i,a);a=s+1,i=c+1}}decompose(e,n,i,a){for(let o=0,r=0;r<=n&&o=r){let l=a&((r<=e?1:0)|(c>=n?2:0));r>=e&&c<=n&&!l?i.push(s):s.decompose(e-r,n-r,i,l)}r=c+1}}replace(e,n,i){if([e,n]=sg(this,e,n),i.lines=o&&n<=s){let c=r.replace(e-o,n-o,i),l=this.lines-r.lines+c.lines;if(c.lines>4&&c.lines>l>>6){let u=this.children.slice();return u[a]=c,new Dl(u,this.length-(n-e)+i.length)}return super.replace(o,s,c)}o=s+1}return super.replace(e,n,i)}sliceString(e,n=this.length,i=` -`){[e,n]=sg(this,e,n);let a="";for(let o=0,r=0;oe&&o&&(a+=i),er&&(a+=s.sliceString(e-r,n-r,i)),r=c+1}return a}flatten(e){for(let n of this.children)n.flatten(e)}scanIdentical(e,n){if(!(e instanceof Dl))return 0;let i=0,[a,o,r,s]=n>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;a+=n,o+=n){if(a==r||o==s)return i;let c=this.children[a],l=e.children[o];if(c!=l)return i+c.scanIdentical(l,n);i+=c.length+1}}static from(e,n=e.reduce((i,a)=>i+a.length+1,-1)){let i=0;for(let d of e)i+=d.lines;if(i<32){let d=[];for(let m of e)m.flatten(d);return new In(d,n)}let a=Math.max(32,i>>5),o=a<<1,r=a>>1,s=[],c=0,l=-1,u=[];function f(d){let m;if(d.lines>o&&d instanceof Dl)for(let g of d.children)f(g);else d.lines>r&&(c>r||!c)?(h(),s.push(d)):d instanceof In&&c&&(m=u[u.length-1])instanceof In&&d.lines+m.lines<=32?(c+=d.lines,l+=d.length+1,u[u.length-1]=new In(m.text.concat(d.text),m.length+1+d.length)):(c+d.lines>a&&h(),c+=d.lines,l+=d.length+1,u.push(d))}function h(){c!=0&&(s.push(u.length==1?u[0]:Dl.from(u,l)),l=-1,c=u.length=0)}for(let d of e)f(d);return h(),s.length==1?s[0]:new Dl(s,n)}}fr.empty=new In([""],0);function gde(t){let e=-1;for(let n of t)e+=n.length+1;return e}function v$(t,e,n=0,i=1e9){for(let a=0,o=0,r=!0;o=n&&(c>i&&(s=s.slice(0,i-a)),a0?1:(e instanceof In?e.text.length:e.children.length)<<1]}nextInner(e,n){for(this.done=this.lineBreak=!1;;){let i=this.nodes.length-1,a=this.nodes[i],o=this.offsets[i],r=o>>1,s=a instanceof In?a.text.length:a.children.length;if(r==(n>0?s:0)){if(i==0)return this.done=!0,this.value="",this;n>0&&this.offsets[i-1]++,this.nodes.pop(),this.offsets.pop()}else if((o&1)==(n>0?0:1)){if(this.offsets[i]+=n,e==0)return this.lineBreak=!0,this.value=` -`,this;e--}else if(a instanceof In){let c=a.text[r+(n<0?-1:0)];if(this.offsets[i]+=n,c.length>Math.max(0,e))return this.value=e==0?c:n>0?c.slice(e):c.slice(0,c.length-e),this;e-=c.length}else{let c=a.children[r+(n<0?-1:0)];e>c.length?(e-=c.length,this.offsets[i]+=n):(n<0&&this.offsets[i]--,this.nodes.push(c),this.offsets.push(n>0?1:(c instanceof In?c.text.length:c.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}}class p7{constructor(e,n,i){this.value="",this.done=!1,this.cursor=new zv(e,n>i?-1:1),this.pos=n>i?e.length:0,this.from=Math.min(n,i),this.to=Math.max(n,i)}nextInner(e,n){if(n<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,n<0?this.pos-this.to:this.from-this.pos);let i=n<0?this.pos-this.from:this.to-this.pos;e>i&&(e=i),i-=e;let{value:a}=this.cursor.next(e);return this.pos+=(a.length+e)*n,this.value=a.length<=i?a:n<0?a.slice(a.length-i):a.slice(0,i),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&this.value!=""}}class h7{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(e=0){let{done:n,lineBreak:i,value:a}=this.inner.next(e);return n&&this.afterBreak?(this.value="",this.afterBreak=!1):n?(this.done=!0,this.value=""):i?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=a,this.afterBreak=!1),this}get lineBreak(){return!1}}typeof Symbol<"u"&&(fr.prototype[Symbol.iterator]=function(){return this.iter()},zv.prototype[Symbol.iterator]=p7.prototype[Symbol.iterator]=h7.prototype[Symbol.iterator]=function(){return this});class vde{constructor(e,n,i,a){this.from=e,this.to=n,this.number=i,this.text=a}get length(){return this.to-this.from}}function sg(t,e,n){return e=Math.max(0,Math.min(t.length,e)),[e,Math.max(e,Math.min(t.length,n))]}let Zd="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(t=>t?parseInt(t,36):1);for(let t=1;tt)return Zd[e-1]<=t;return!1}function l3(t){return t>=127462&&t<=127487}const c3=8205;function Ci(t,e,n=!0,i=!0){return(n?d7:bde)(t,e,i)}function d7(t,e,n){if(e==t.length)return e;e&&m7(t.charCodeAt(e))&&y7(t.charCodeAt(e-1))&&e--;let i=ki(t,e);for(e+=Zs(i);e=0&&l3(ki(t,r));)o++,r-=2;if(o%2==0)break;e+=2}else break}return e}function bde(t,e,n){for(;e>0;){let i=d7(t,e-2,n);if(i=56320&&t<57344}function y7(t){return t>=55296&&t<56320}function ki(t,e){let n=t.charCodeAt(e);if(!y7(n)||e+1==t.length)return n;let i=t.charCodeAt(e+1);return m7(i)?(n-55296<<10)+(i-56320)+65536:n}function Aj(t){return t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode((t>>10)+55296,(t&1023)+56320))}function Zs(t){return t<65536?1:2}const w2=/\r\n?|\n/;var ma=function(t){return t[t.Simple=0]="Simple",t[t.TrackDel=1]="TrackDel",t[t.TrackBefore=2]="TrackBefore",t[t.TrackAfter=3]="TrackAfter",t}(ma||(ma={}));class Ul{constructor(e){this.sections=e}get length(){let e=0;for(let n=0;ne)return o+(e-a);o+=s}else{if(i!=ma.Simple&&l>=e&&(i==ma.TrackDel&&ae||i==ma.TrackBefore&&ae))return null;if(l>e||l==e&&n<0&&!s)return e==a||n<0?o:o+c;o+=c}a=l}if(e>a)throw new RangeError(`Position ${e} is out of range for changeset of length ${a}`);return o}touchesRange(e,n=e){for(let i=0,a=0;i=0&&a<=n&&s>=e)return an?"cover":!0;a=s}return!1}toString(){let e="";for(let n=0;n=0?":"+a:"")}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some(n=>typeof n!="number"))throw new RangeError("Invalid JSON representation of ChangeDesc");return new Ul(e)}static create(e){return new Ul(e)}}class ii extends Ul{constructor(e,n){super(e),this.inserted=n}apply(e){if(this.length!=e.length)throw new RangeError("Applying change set to a document with the wrong length");return $2(this,(n,i,a,o,r)=>e=e.replace(a,a+(i-n),r),!1),e}mapDesc(e,n=!1){return A2(this,e,n,!0)}invert(e){let n=this.sections.slice(),i=[];for(let a=0,o=0;a=0){n[a]=s,n[a+1]=r;let c=a>>1;for(;i.length0&&uf(i,n,o.text),o.forward(u),s+=u}let l=e[r++];for(;s>1].toJSON()))}return e}static of(e,n,i){let a=[],o=[],r=0,s=null;function c(u=!1){if(!u&&!a.length)return;rh||f<0||h>n)throw new RangeError(`Invalid change range ${f} to ${h} (in doc of length ${n})`);let m=d?typeof d=="string"?fr.of(d.split(i||w2)):d:fr.empty,g=m.length;if(f==h&&g==0)return;fr&&Hi(a,f-r,-1),Hi(a,h-f,g),uf(o,a,m),r=h}}return l(e),c(!s),s}static empty(e){return new ii(e?[e,-1]:[],[])}static fromJSON(e){if(!Array.isArray(e))throw new RangeError("Invalid JSON representation of ChangeSet");let n=[],i=[];for(let a=0;as&&typeof r!="string"))throw new RangeError("Invalid JSON representation of ChangeSet");if(o.length==1)n.push(o[0],0);else{for(;i.length=0&&n<=0&&n==t[a+1]?t[a]+=e:e==0&&t[a]==0?t[a+1]+=n:i?(t[a]+=e,t[a+1]+=n):t.push(e,n)}function uf(t,e,n){if(n.length==0)return;let i=e.length-2>>1;if(i>1])),!(n||r==t.sections.length||t.sections[r+1]<0);)s=t.sections[r++],c=t.sections[r++];e(a,l,o,u,f),a=l,o=u}}}function A2(t,e,n,i=!1){let a=[],o=i?[]:null,r=new kP(t),s=new kP(e);for(let c=-1;;)if(r.ins==-1&&s.ins==-1){let l=Math.min(r.len,s.len);Hi(a,l,-1),r.forward(l),s.forward(l)}else if(s.ins>=0&&(r.ins<0||c==r.i||r.off==0&&(s.len=0&&c=0){let l=0,u=r.len;for(;u;)if(s.ins==-1){let f=Math.min(u,s.len);l+=f,u-=f,s.forward(f)}else if(s.ins==0&&s.lenc||r.ins>=0&&r.len>c)&&(s||i.length>l),o.forward2(c),r.forward(c)}}}}class kP{constructor(e){this.set=e,this.i=0,this.next()}next(){let{sections:e}=this.set;this.i>1;return n>=e.length?fr.empty:e[n]}textBit(e){let{inserted:n}=this.set,i=this.i-2>>1;return i>=n.length&&!e?fr.empty:n[i].slice(this.off,e==null?void 0:this.off+e)}forward(e){e==this.len?this.next():(this.len-=e,this.off+=e)}forward2(e){this.ins==-1?this.forward(e):e==this.ins?this.next():(this.ins-=e,this.off+=e)}}class Sp{constructor(e,n,i){this.from=e,this.to=n,this.flags=i}get anchor(){return this.flags&32?this.to:this.from}get head(){return this.flags&32?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return this.flags&8?-1:this.flags&16?1:0}get bidiLevel(){let e=this.flags&7;return e==7?null:e}get goalColumn(){let e=this.flags>>6;return e==16777215?void 0:e}map(e,n=-1){let i,a;return this.empty?i=a=e.mapPos(this.from,n):(i=e.mapPos(this.from,1),a=e.mapPos(this.to,-1)),i==this.from&&a==this.to?this:new Sp(i,a,this.flags)}extend(e,n=e){if(e<=this.anchor&&n>=this.anchor)return Ve.range(e,n);let i=Math.abs(e-this.anchor)>Math.abs(n-this.anchor)?e:n;return Ve.range(this.anchor,i)}eq(e,n=!1){return this.anchor==e.anchor&&this.head==e.head&&(!n||!this.empty||this.assoc==e.assoc)}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(e){if(!e||typeof e.anchor!="number"||typeof e.head!="number")throw new RangeError("Invalid JSON representation for SelectionRange");return Ve.range(e.anchor,e.head)}static create(e,n,i){return new Sp(e,n,i)}}class Ve{constructor(e,n){this.ranges=e,this.mainIndex=n}map(e,n=-1){return e.empty?this:Ve.create(this.ranges.map(i=>i.map(e,n)),this.mainIndex)}eq(e,n=!1){if(this.ranges.length!=e.ranges.length||this.mainIndex!=e.mainIndex)return!1;for(let i=0;ie.toJSON()),main:this.mainIndex}}static fromJSON(e){if(!e||!Array.isArray(e.ranges)||typeof e.main!="number"||e.main>=e.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new Ve(e.ranges.map(n=>Sp.fromJSON(n)),e.main)}static single(e,n=e){return new Ve([Ve.range(e,n)],0)}static create(e,n=0){if(e.length==0)throw new RangeError("A selection needs at least one range");for(let i=0,a=0;ae?8:0)|o)}static normalized(e,n=0){let i=e[n];e.sort((a,o)=>a.from-o.from),n=e.indexOf(i);for(let a=1;ao.head?Ve.range(c,s):Ve.range(s,c))}}return new Ve(e,n)}}function v7(t,e){for(let n of t.ranges)if(n.to>e)throw new RangeError("Selection points outside of document")}let Sj=0;class st{constructor(e,n,i,a,o){this.combine=e,this.compareInput=n,this.compare=i,this.isStatic=a,this.id=Sj++,this.default=e([]),this.extensions=typeof o=="function"?o(this):o}get reader(){return this}static define(e={}){return new st(e.combine||(n=>n),e.compareInput||((n,i)=>n===i),e.compare||(e.combine?(n,i)=>n===i:_j),!!e.static,e.enables)}of(e){return new P$([],this,0,e)}compute(e,n){if(this.isStatic)throw new Error("Can't compute a static facet");return new P$(e,this,1,n)}computeN(e,n){if(this.isStatic)throw new Error("Can't compute a static facet");return new P$(e,this,2,n)}from(e,n){return n||(n=i=>i),this.compute([e],i=>n(i.field(e)))}}function _j(t,e){return t==e||t.length==e.length&&t.every((n,i)=>n===e[i])}class P${constructor(e,n,i,a){this.dependencies=e,this.facet=n,this.type=i,this.value=a,this.id=Sj++}dynamicSlot(e){var n;let i=this.value,a=this.facet.compareInput,o=this.id,r=e[o]>>1,s=this.type==2,c=!1,l=!1,u=[];for(let f of this.dependencies)f=="doc"?c=!0:f=="selection"?l=!0:((n=e[f.id])!==null&&n!==void 0?n:1)&1||u.push(e[f.id]);return{create(f){return f.values[r]=i(f),1},update(f,h){if(c&&h.docChanged||l&&(h.docChanged||h.selection)||S2(f,u)){let d=i(f);if(s?!u3(d,f.values[r],a):!a(d,f.values[r]))return f.values[r]=d,1}return 0},reconfigure:(f,h)=>{let d,m=h.config.address[o];if(m!=null){let g=jA(h,m);if(this.dependencies.every(b=>b instanceof st?h.facet(b)===f.facet(b):b instanceof ci?h.field(b,!1)==f.field(b,!1):!0)||(s?u3(d=i(f),g,a):a(d=i(f),g)))return f.values[r]=g,0}else d=i(f);return f.values[r]=d,1}}}}function u3(t,e,n){if(t.length!=e.length)return!1;for(let i=0;it[c.id]),a=n.map(c=>c.type),o=i.filter(c=>!(c&1)),r=t[e.id]>>1;function s(c){let l=[];for(let u=0;ui===a),e);return e.provide&&(n.provides=e.provide(n)),n}create(e){let n=e.facet(f3).find(i=>i.field==this);return((n==null?void 0:n.create)||this.createF)(e)}slot(e){let n=e[this.id]>>1;return{create:i=>(i.values[n]=this.create(i),1),update:(i,a)=>{let o=i.values[n],r=this.updateF(o,a);return this.compareF(o,r)?0:(i.values[n]=r,1)},reconfigure:(i,a)=>a.config.address[this.id]!=null?(i.values[n]=a.field(this),0):(i.values[n]=this.create(i),1)}}init(e){return[this,f3.of({field:this,create:e})]}get extension(){return this}}const dp={lowest:4,low:3,default:2,high:1,highest:0};function q0(t){return e=>new P7(e,t)}const $h={highest:q0(dp.highest),high:q0(dp.high),default:q0(dp.default),low:q0(dp.low),lowest:q0(dp.lowest)};class P7{constructor(e,n){this.inner=e,this.prec=n}}class t_{of(e){return new _2(this,e)}reconfigure(e){return t_.reconfigure.of({compartment:this,extension:e})}get(e){return e.config.compartments.get(this)}}class _2{constructor(e,n){this.compartment=e,this.inner=n}}class TA{constructor(e,n,i,a,o,r){for(this.base=e,this.compartments=n,this.dynamicSlots=i,this.address=a,this.staticValues=o,this.facets=r,this.statusTemplate=[];this.statusTemplate.length>1]}static resolve(e,n,i){let a=[],o=Object.create(null),r=new Map;for(let h of $de(e,n,r))h instanceof ci?a.push(h):(o[h.facet.id]||(o[h.facet.id]=[])).push(h);let s=Object.create(null),c=[],l=[];for(let h of a)s[h.id]=l.length<<1,l.push(d=>h.slot(d));let u=i==null?void 0:i.config.facets;for(let h in o){let d=o[h],m=d[0].facet,g=u&&u[h]||[];if(d.every(b=>b.type==0))if(s[m.id]=c.length<<1|1,_j(g,d))c.push(i.facet(m));else{let b=m.combine(d.map(v=>v.value));c.push(i&&m.compare(b,i.facet(m))?i.facet(m):b)}else{for(let b of d)b.type==0?(s[b.id]=c.length<<1|1,c.push(b.value)):(s[b.id]=l.length<<1,l.push(v=>b.dynamicSlot(v)));s[m.id]=l.length<<1,l.push(b=>wde(b,m,d))}}let f=l.map(h=>h(s));return new TA(e,r,f,s,c,o)}}function $de(t,e,n){let i=[[],[],[],[],[]],a=new Map;function o(r,s){let c=a.get(r);if(c!=null){if(c<=s)return;let l=i[c].indexOf(r);l>-1&&i[c].splice(l,1),r instanceof _2&&n.delete(r.compartment)}if(a.set(r,s),Array.isArray(r))for(let l of r)o(l,s);else if(r instanceof _2){if(n.has(r.compartment))throw new RangeError("Duplicate use of compartment in extensions");let l=e.get(r.compartment)||r.inner;n.set(r.compartment,l),o(l,s)}else if(r instanceof P7)o(r.inner,r.prec);else if(r instanceof ci)i[s].push(r),r.provides&&o(r.provides,s);else if(r instanceof P$)i[s].push(r),r.facet.extensions&&o(r.facet.extensions,dp.default);else{let l=r.extension;if(!l)throw new Error(`Unrecognized extension value in extension set (${r}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);o(l,s)}}return o(t,dp.default),i.reduce((r,s)=>r.concat(s))}function Uv(t,e){if(e&1)return 2;let n=e>>1,i=t.status[n];if(i==4)throw new Error("Cyclic dependency between fields and/or facets");if(i&2)return i;t.status[n]=4;let a=t.computeSlot(t,t.config.dynamicSlots[n]);return t.status[n]=2|a}function jA(t,e){return e&1?t.config.staticValues[e>>1]:t.values[e>>1]}const b7=st.define(),x2=st.define({combine:t=>t.some(e=>e),static:!0}),w7=st.define({combine:t=>t.length?t[0]:void 0,static:!0}),$7=st.define(),A7=st.define(),S7=st.define(),_7=st.define({combine:t=>t.length?t[0]:!1});class Jl{constructor(e,n){this.type=e,this.value=n}static define(){return new Ade}}class Ade{of(e){return new Jl(this,e)}}class Sde{constructor(e){this.map=e}of(e){return new Nt(this,e)}}class Nt{constructor(e,n){this.type=e,this.value=n}map(e){let n=this.type.map(this.value,e);return n===void 0?void 0:n==this.value?this:new Nt(this.type,n)}is(e){return this.type==e}static define(e={}){return new Sde(e.map||(n=>n))}static mapEffects(e,n){if(!e.length)return e;let i=[];for(let a of e){let o=a.map(n);o&&i.push(o)}return i}}Nt.reconfigure=Nt.define();Nt.appendConfig=Nt.define();class oi{constructor(e,n,i,a,o,r){this.startState=e,this.changes=n,this.selection=i,this.effects=a,this.annotations=o,this.scrollIntoView=r,this._doc=null,this._state=null,i&&v7(i,n.newLength),o.some(s=>s.type==oi.time)||(this.annotations=o.concat(oi.time.of(Date.now())))}static create(e,n,i,a,o,r){return new oi(e,n,i,a,o,r)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(e){for(let n of this.annotations)if(n.type==e)return n.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(e){let n=this.annotation(oi.userEvent);return!!(n&&(n==e||n.length>e.length&&n.slice(0,e.length)==e&&n[e.length]=="."))}}oi.time=Jl.define();oi.userEvent=Jl.define();oi.addToHistory=Jl.define();oi.remote=Jl.define();function _de(t,e){let n=[];for(let i=0,a=0;;){let o,r;if(i=t[i]))o=t[i++],r=t[i++];else if(a=0;a--){let o=i[a](t);o instanceof oi?t=o:Array.isArray(o)&&o.length==1&&o[0]instanceof oi?t=o[0]:t=D7(e,Xd(o),!1)}return t}function Dde(t){let e=t.startState,n=e.facet(S7),i=t;for(let a=n.length-1;a>=0;a--){let o=n[a](t);o&&Object.keys(o).length&&(i=x7(i,D2(e,o,t.changes.newLength),!0))}return i==t?t:oi.create(e,t.changes,t.selection,i.effects,i.annotations,i.scrollIntoView)}const kde=[];function Xd(t){return t==null?kde:Array.isArray(t)?t:[t]}var cn=function(t){return t[t.Word=0]="Word",t[t.Space=1]="Space",t[t.Other=2]="Other",t}(cn||(cn={}));const Ode=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let k2;try{k2=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}function Ede(t){if(k2)return k2.test(t);for(let e=0;e"€"&&(n.toUpperCase()!=n.toLowerCase()||Ode.test(n)))return!0}return!1}function Ide(t){return e=>{if(!/\S/.test(e))return cn.Space;if(Ede(e))return cn.Word;for(let n=0;n-1)return cn.Word;return cn.Other}}class or{constructor(e,n,i,a,o,r){this.config=e,this.doc=n,this.selection=i,this.values=a,this.status=e.statusTemplate.slice(),this.computeSlot=o,r&&(r._state=this);for(let s=0;sa.set(l,c)),n=null),a.set(s.value.compartment,s.value.extension)):s.is(Nt.reconfigure)?(n=null,i=s.value):s.is(Nt.appendConfig)&&(n=null,i=Xd(i).concat(s.value));let o;n?o=e.startState.values.slice():(n=TA.resolve(i,a,this),o=new or(n,this.doc,this.selection,n.dynamicSlots.map(()=>null),(c,l)=>l.reconfigure(c,this),null).values);let r=e.startState.facet(x2)?e.newSelection:e.newSelection.asSingle();new or(n,e.newDoc,r,o,(s,c)=>c.update(s,e),e)}replaceSelection(e){return typeof e=="string"&&(e=this.toText(e)),this.changeByRange(n=>({changes:{from:n.from,to:n.to,insert:e},range:Ve.cursor(n.from+e.length)}))}changeByRange(e){let n=this.selection,i=e(n.ranges[0]),a=this.changes(i.changes),o=[i.range],r=Xd(i.effects);for(let s=1;sr.spec.fromJSON(s,c)))}}return or.create({doc:e.doc,selection:Ve.fromJSON(e.selection),extensions:n.extensions?a.concat([n.extensions]):a})}static create(e={}){let n=TA.resolve(e.extensions||[],new Map),i=e.doc instanceof fr?e.doc:fr.of((e.doc||"").split(n.staticFacet(or.lineSeparator)||w2)),a=e.selection?e.selection instanceof Ve?e.selection:Ve.single(e.selection.anchor,e.selection.head):Ve.single(0);return v7(a,i.length),n.staticFacet(x2)||(a=a.asSingle()),new or(n,i,a,n.dynamicSlots.map(()=>null),(o,r)=>r.create(o),null)}get tabSize(){return this.facet(or.tabSize)}get lineBreak(){return this.facet(or.lineSeparator)||` -`}get readOnly(){return this.facet(_7)}phrase(e,...n){for(let i of this.facet(or.phrases))if(Object.prototype.hasOwnProperty.call(i,e)){e=i[e];break}return n.length&&(e=e.replace(/\$(\$|\d*)/g,(i,a)=>{if(a=="$")return"$";let o=+(a||1);return!o||o>n.length?i:n[o-1]})),e}languageDataAt(e,n,i=-1){let a=[];for(let o of this.facet(b7))for(let r of o(this,n,i))Object.prototype.hasOwnProperty.call(r,e)&&a.push(r[e]);return a}charCategorizer(e){return Ide(this.languageDataAt("wordChars",e).join(""))}wordAt(e){let{text:n,from:i,length:a}=this.doc.lineAt(e),o=this.charCategorizer(e),r=e-i,s=e-i;for(;r>0;){let c=Ci(n,r,!1);if(o(n.slice(c,r))!=cn.Word)break;r=c}for(;st.length?t[0]:4});or.lineSeparator=w7;or.readOnly=_7;or.phrases=st.define({compare(t,e){let n=Object.keys(t),i=Object.keys(e);return n.length==i.length&&n.every(a=>t[a]==e[a])}});or.languageData=b7;or.changeFilter=$7;or.transactionFilter=A7;or.transactionExtender=S7;t_.reconfigure=Nt.define();function sl(t,e,n={}){let i={};for(let a of t)for(let o of Object.keys(a)){let r=a[o],s=i[o];if(s===void 0)i[o]=r;else if(!(s===r||r===void 0))if(Object.hasOwnProperty.call(n,o))i[o]=n[o](s,r);else throw new Error("Config merge conflict for field "+o)}for(let a in e)i[a]===void 0&&(i[a]=e[a]);return i}class ih{eq(e){return this==e}range(e,n=e){return OP.create(e,n,this)}}ih.prototype.startSide=ih.prototype.endSide=0;ih.prototype.point=!1;ih.prototype.mapMode=ma.TrackDel;class OP{constructor(e,n,i){this.from=e,this.to=n,this.value=i}static create(e,n,i){return new OP(e,n,i)}}function O2(t,e){return t.from-e.from||t.value.startSide-e.value.startSide}class xj{constructor(e,n,i,a){this.from=e,this.to=n,this.value=i,this.maxPoint=a}get length(){return this.to[this.to.length-1]}findIndex(e,n,i,a=0){let o=i?this.to:this.from;for(let r=a,s=o.length;;){if(r==s)return r;let c=r+s>>1,l=o[c]-e||(i?this.value[c].endSide:this.value[c].startSide)-n;if(c==r)return l>=0?r:s;l>=0?s=c:r=c+1}}between(e,n,i,a){for(let o=this.findIndex(n,-1e9,!0),r=this.findIndex(i,1e9,!1,o);od||h==d&&l.startSide>0&&l.endSide<=0)continue;(d-h||l.endSide-l.startSide)<0||(r<0&&(r=h),l.point&&(s=Math.max(s,d-h)),i.push(l),a.push(h-r),o.push(d-r))}return{mapped:i.length?new xj(a,o,i,s):null,pos:r}}}class nr{constructor(e,n,i,a){this.chunkPos=e,this.chunk=n,this.nextLayer=i,this.maxPoint=a}static create(e,n,i,a){return new nr(e,n,i,a)}get length(){let e=this.chunk.length-1;return e<0?0:Math.max(this.chunkEnd(e),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let e=this.nextLayer.size;for(let n of this.chunk)e+=n.value.length;return e}chunkEnd(e){return this.chunkPos[e]+this.chunk[e].length}update(e){let{add:n=[],sort:i=!1,filterFrom:a=0,filterTo:o=this.length}=e,r=e.filter;if(n.length==0&&!r)return this;if(i&&(n=n.slice().sort(O2)),this.isEmpty)return n.length?nr.of(n):this;let s=new k7(this,null,-1).goto(0),c=0,l=[],u=new If;for(;s.value||c=0){let f=n[c++];u.addInner(f.from,f.to,f.value)||l.push(f)}else s.rangeIndex==1&&s.chunkIndexthis.chunkEnd(s.chunkIndex)||os.to||o=o&&e<=o+r.length&&r.between(o,e-o,n-o,i)===!1)return}this.nextLayer.between(e,n,i)}}iter(e=0){return EP.from([this]).goto(e)}get isEmpty(){return this.nextLayer==this}static iter(e,n=0){return EP.from(e).goto(n)}static compare(e,n,i,a,o=-1){let r=e.filter(f=>f.maxPoint>0||!f.isEmpty&&f.maxPoint>=o),s=n.filter(f=>f.maxPoint>0||!f.isEmpty&&f.maxPoint>=o),c=p3(r,s,i),l=new z0(r,c,o),u=new z0(s,c,o);i.iterGaps((f,h,d)=>h3(l,f,u,h,d,a)),i.empty&&i.length==0&&h3(l,0,u,0,0,a)}static eq(e,n,i=0,a){a==null&&(a=999999999);let o=e.filter(u=>!u.isEmpty&&n.indexOf(u)<0),r=n.filter(u=>!u.isEmpty&&e.indexOf(u)<0);if(o.length!=r.length)return!1;if(!o.length)return!0;let s=p3(o,r),c=new z0(o,s,0).goto(i),l=new z0(r,s,0).goto(i);for(;;){if(c.to!=l.to||!E2(c.active,l.active)||c.point&&(!l.point||!c.point.eq(l.point)))return!1;if(c.to>a)return!0;c.next(),l.next()}}static spans(e,n,i,a,o=-1){let r=new z0(e,null,o).goto(n),s=n,c=r.openStart;for(;;){let l=Math.min(r.to,i);if(r.point){let u=r.activeForPoint(r.to),f=r.pointFroms&&(a.span(s,l,r.active,c),c=r.openEnd(l));if(r.to>i)return c+(r.point&&r.to>i?1:0);s=r.to,r.next()}}static of(e,n=!1){let i=new If;for(let a of e instanceof OP?[e]:n?Cde(e):e)i.add(a.from,a.to,a.value);return i.finish()}static join(e){if(!e.length)return nr.empty;let n=e[e.length-1];for(let i=e.length-2;i>=0;i--)for(let a=e[i];a!=nr.empty;a=a.nextLayer)n=new nr(a.chunkPos,a.chunk,n,Math.max(a.maxPoint,n.maxPoint));return n}}nr.empty=new nr([],[],null,-1);function Cde(t){if(t.length>1)for(let e=t[0],n=1;n0)return t.slice().sort(O2);e=i}return t}nr.empty.nextLayer=nr.empty;class If{finishChunk(e){this.chunks.push(new xj(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,e&&(this.from=[],this.to=[],this.value=[])}constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}add(e,n,i){this.addInner(e,n,i)||(this.nextLayer||(this.nextLayer=new If)).add(e,n,i)}addInner(e,n,i){let a=e-this.lastTo||i.startSide-this.last.endSide;if(a<=0&&(e-this.lastFrom||i.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return a<0?!1:(this.from.length==250&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=e),this.from.push(e-this.chunkStart),this.to.push(n-this.chunkStart),this.last=i,this.lastFrom=e,this.lastTo=n,this.value.push(i),i.point&&(this.maxPoint=Math.max(this.maxPoint,n-e)),!0)}addChunk(e,n){if((e-this.lastTo||n.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,n.maxPoint),this.chunks.push(n),this.chunkPos.push(e);let i=n.value.length-1;return this.last=n.value[i],this.lastFrom=n.from[i]+e,this.lastTo=n.to[i]+e,!0}finish(){return this.finishInner(nr.empty)}finishInner(e){if(this.from.length&&this.finishChunk(!1),this.chunks.length==0)return e;let n=nr.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(e):e,this.setMaxPoint);return this.from=null,n}}function p3(t,e,n){let i=new Map;for(let o of t)for(let r=0;r=this.minPoint)break}}setRangeIndex(e){if(e==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex=i&&a.push(new k7(r,n,i,o));return a.length==1?a[0]:new EP(a)}get startSide(){return this.value?this.value.startSide:0}goto(e,n=-1e9){for(let i of this.heap)i.goto(e,n);for(let i=this.heap.length>>1;i>=0;i--)Tk(this.heap,i);return this.next(),this}forward(e,n){for(let i of this.heap)i.forward(e,n);for(let i=this.heap.length>>1;i>=0;i--)Tk(this.heap,i);(this.to-e||this.value.endSide-n)<0&&this.next()}next(){if(this.heap.length==0)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let e=this.heap[0];this.from=e.from,this.to=e.to,this.value=e.value,this.rank=e.rank,e.value&&e.next(),Tk(this.heap,0)}}}function Tk(t,e){for(let n=t[e];;){let i=(e<<1)+1;if(i>=t.length)break;let a=t[i];if(i+1=0&&(a=t[i+1],i++),n.compare(a)<0)break;t[i]=n,t[e]=a,e=i}}class z0{constructor(e,n,i){this.minPoint=i,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=EP.from(e,n,i)}goto(e,n=-1e9){return this.cursor.goto(e,n),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=e,this.endSide=n,this.openStart=-1,this.next(),this}forward(e,n){for(;this.minActive>-1&&(this.activeTo[this.minActive]-e||this.active[this.minActive].endSide-n)<0;)this.removeActive(this.minActive);this.cursor.forward(e,n)}removeActive(e){Z1(this.active,e),Z1(this.activeTo,e),Z1(this.activeRank,e),this.minActive=d3(this.active,this.activeTo)}addActive(e){let n=0,{value:i,to:a,rank:o}=this.cursor;for(;n0;)n++;X1(this.active,n,i),X1(this.activeTo,n,a),X1(this.activeRank,n,o),e&&X1(e,n,this.cursor.from),this.minActive=d3(this.active,this.activeTo)}next(){let e=this.to,n=this.point;this.point=null;let i=this.openStart<0?[]:null;for(;;){let a=this.minActive;if(a>-1&&(this.activeTo[a]-this.cursor.from||this.active[a].endSide-this.cursor.startSide)<0){if(this.activeTo[a]>e){this.to=this.activeTo[a],this.endSide=this.active[a].endSide;break}this.removeActive(a),i&&Z1(i,a)}else if(this.cursor.value)if(this.cursor.from>e){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}else{let o=this.cursor.value;if(!o.point)this.addActive(i),this.cursor.next();else if(n&&this.cursor.to==this.to&&this.cursor.from=0&&i[a]=0&&!(this.activeRank[i]e||this.activeTo[i]==e&&this.active[i].endSide>=this.point.endSide)&&n.push(this.active[i]);return n.reverse()}openEnd(e){let n=0;for(let i=this.activeTo.length-1;i>=0&&this.activeTo[i]>e;i--)n++;return n}}function h3(t,e,n,i,a,o){t.goto(e),n.goto(i);let r=i+a,s=i,c=i-e;for(;;){let l=t.to+c-n.to||t.endSide-n.endSide,u=l<0?t.to+c:n.to,f=Math.min(u,r);if(t.point||n.point?t.point&&n.point&&(t.point==n.point||t.point.eq(n.point))&&E2(t.activeForPoint(t.to),n.activeForPoint(n.to))||o.comparePoint(s,f,t.point,n.point):f>s&&!E2(t.active,n.active)&&o.compareRange(s,f,t.active,n.active),u>r)break;s=u,l<=0&&t.next(),l>=0&&n.next()}}function E2(t,e){if(t.length!=e.length)return!1;for(let n=0;n=e;i--)t[i+1]=t[i];t[e]=n}function d3(t,e){let n=-1,i=1e9;for(let a=0;a=e)return a;if(a==t.length)break;o+=t.charCodeAt(a)==9?n-o%n:1,a=Ci(t,a)}return i===!0?-1:t.length}const C2="ͼ",m3=typeof Symbol>"u"?"__"+C2:Symbol.for(C2),T2=typeof Symbol>"u"?"__styleSet"+Math.floor(Math.random()*1e8):Symbol("styleSet"),y3=typeof globalThis<"u"?globalThis:typeof window<"u"?window:{};class Cf{constructor(e,n){this.rules=[];let{finish:i}=n||{};function a(r){return/^@/.test(r)?[r]:r.split(/,\s*/)}function o(r,s,c,l){let u=[],f=/^@(\w+)\b/.exec(r[0]),h=f&&f[1]=="keyframes";if(f&&s==null)return c.push(r[0]+";");for(let d in s){let m=s[d];if(/&/.test(d))o(d.split(/,\s*/).map(g=>r.map(b=>g.replace(/&/,b))).reduce((g,b)=>g.concat(b)),m,c);else if(m&&typeof m=="object"){if(!f)throw new RangeError("The value of a property ("+d+") should be a primitive value.");o(a(d),m,u,h)}else m!=null&&u.push(d.replace(/_.*/,"").replace(/[A-Z]/g,g=>"-"+g.toLowerCase())+": "+m+";")}(u.length||h)&&c.push((i&&!f&&!l?r.map(i):r).join(", ")+" {"+u.join(" ")+"}")}for(let r in e)o(a(r),e[r],this.rules)}getRules(){return this.rules.join(` -`)}static newName(){let e=y3[m3]||1;return y3[m3]=e+1,C2+e.toString(36)}static mount(e,n,i){let a=e[T2],o=i&&i.nonce;a?o&&a.setNonce(o):a=new Tde(e,o),a.mount(Array.isArray(n)?n:[n],e)}}let g3=new Map;class Tde{constructor(e,n){let i=e.ownerDocument||e,a=i.defaultView;if(!e.head&&e.adoptedStyleSheets&&a.CSSStyleSheet){let o=g3.get(i);if(o)return e[T2]=o;this.sheet=new a.CSSStyleSheet,g3.set(i,this)}else this.styleTag=i.createElement("style"),n&&this.styleTag.setAttribute("nonce",n);this.modules=[],e[T2]=this}mount(e,n){let i=this.sheet,a=0,o=0;for(let r=0;r-1&&(this.modules.splice(c,1),o--,c=-1),c==-1){if(this.modules.splice(o++,0,s),i)for(let l=0;l",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},jde=typeof navigator<"u"&&/Mac/.test(navigator.platform),Mde=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var Oi=0;Oi<10;Oi++)Tf[48+Oi]=Tf[96+Oi]=String(Oi);for(var Oi=1;Oi<=24;Oi++)Tf[Oi+111]="F"+Oi;for(var Oi=65;Oi<=90;Oi++)Tf[Oi]=String.fromCharCode(Oi+32),IP[Oi]=String.fromCharCode(Oi);for(var jk in Tf)IP.hasOwnProperty(jk)||(IP[jk]=Tf[jk]);function Rde(t){var e=jde&&t.metaKey&&t.shiftKey&&!t.ctrlKey&&!t.altKey||Mde&&t.shiftKey&&t.key&&t.key.length==1||t.key=="Unidentified",n=!e&&t.key||(t.shiftKey?IP:Tf)[t.keyCode]||t.key||"Unidentified";return n=="Esc"&&(n="Escape"),n=="Del"&&(n="Delete"),n=="Left"&&(n="ArrowLeft"),n=="Up"&&(n="ArrowUp"),n=="Right"&&(n="ArrowRight"),n=="Down"&&(n="ArrowDown"),n}function CP(t){let e;return t.nodeType==11?e=t.getSelection?t:t.ownerDocument:e=t,e.getSelection()}function j2(t,e){return e?t==e||t.contains(e.nodeType!=1?e.parentNode:e):!1}function b$(t,e){if(!e.anchorNode)return!1;try{return j2(t,e.anchorNode)}catch{return!1}}function og(t){return t.nodeType==3?sh(t,0,t.nodeValue.length).getClientRects():t.nodeType==1?t.getClientRects():[]}function Bv(t,e,n,i){return n?v3(t,e,n,i,-1)||v3(t,e,n,i,1):!1}function ah(t){for(var e=0;;e++)if(t=t.previousSibling,!t)return e}function MA(t){return t.nodeType==1&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(t.nodeName)}function v3(t,e,n,i,a){for(;;){if(t==n&&e==i)return!0;if(e==(a<0?0:Wl(t))){if(t.nodeName=="DIV")return!1;let o=t.parentNode;if(!o||o.nodeType!=1)return!1;e=ah(t)+(a<0?0:1),t=o}else if(t.nodeType==1){if(t=t.childNodes[e+(a<0?-1:0)],t.nodeType==1&&t.contentEditable=="false")return!1;e=a<0?Wl(t):0}else return!1}}function Wl(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function ob(t,e){let n=e?t.left:t.right;return{left:n,right:n,top:t.top,bottom:t.bottom}}function Nde(t){let e=t.visualViewport;return e?{left:0,right:e.width,top:0,bottom:e.height}:{left:0,right:t.innerWidth,top:0,bottom:t.innerHeight}}function O7(t,e){let n=e.width/t.offsetWidth,i=e.height/t.offsetHeight;return(n>.995&&n<1.005||!isFinite(n)||Math.abs(e.width-t.offsetWidth)<1)&&(n=1),(i>.995&&i<1.005||!isFinite(i)||Math.abs(e.height-t.offsetHeight)<1)&&(i=1),{scaleX:n,scaleY:i}}function Lde(t,e,n,i,a,o,r,s){let c=t.ownerDocument,l=c.defaultView||window;for(let u=t,f=!1;u&&!f;)if(u.nodeType==1){let h,d=u==c.body,m=1,g=1;if(d)h=Nde(l);else{if(/^(fixed|sticky)$/.test(getComputedStyle(u).position)&&(f=!0),u.scrollHeight<=u.clientHeight&&u.scrollWidth<=u.clientWidth){u=u.assignedSlot||u.parentNode;continue}let P=u.getBoundingClientRect();({scaleX:m,scaleY:g}=O7(u,P)),h={left:P.left,right:P.left+u.clientWidth*m,top:P.top,bottom:P.top+u.clientHeight*g}}let b=0,v=0;if(a=="nearest")e.top0&&e.bottom>h.bottom+v&&(v=e.bottom-h.bottom+v+r)):e.bottom>h.bottom&&(v=e.bottom-h.bottom+r,n<0&&e.top-v0&&e.right>h.right+b&&(b=e.right-h.right+b+o)):e.right>h.right&&(b=e.right-h.right+o,n<0&&e.lefta.clientHeight&&(i=a),!n&&a.scrollWidth>a.clientWidth&&(n=a),a=a.assignedSlot||a.parentNode;else if(a.nodeType==11)a=a.host;else break;return{x:n,y:i}}class qde{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(e){return this.anchorNode==e.anchorNode&&this.anchorOffset==e.anchorOffset&&this.focusNode==e.focusNode&&this.focusOffset==e.focusOffset}setRange(e){let{anchorNode:n,focusNode:i}=e;this.set(n,Math.min(e.anchorOffset,n?Wl(n):0),i,Math.min(e.focusOffset,i?Wl(i):0))}set(e,n,i,a){this.anchorNode=e,this.anchorOffset=n,this.focusNode=i,this.focusOffset=a}}let Xh=null;function E7(t){if(t.setActive)return t.setActive();if(Xh)return t.focus(Xh);let e=[];for(let n=t;n&&(e.push(n,n.scrollTop,n.scrollLeft),n!=n.ownerDocument);n=n.parentNode);if(t.focus(Xh==null?{get preventScroll(){return Xh={preventScroll:!0},!0}}:void 0),!Xh){Xh=!1;for(let n=0;nMath.max(1,t.scrollHeight-t.clientHeight-4)}function T7(t,e){for(let n=t,i=e;;){if(n.nodeType==3&&i>0)return{node:n,offset:i};if(n.nodeType==1&&i>0){if(n.contentEditable=="false")return null;n=n.childNodes[i-1],i=Wl(n)}else if(n.parentNode&&!MA(n))i=ah(n),n=n.parentNode;else return null}}function j7(t,e){for(let n=t,i=e;;){if(n.nodeType==3&&in)return f.domBoundsAround(e,n,l);if(h>=e&&a==-1&&(a=c,o=l),l>n&&f.dom.parentNode==this.dom){r=c,s=u;break}u=h,l=h+f.breakAfter}return{from:o,to:s<0?i+this.length:s,startDOM:(a?this.children[a-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:r=0?this.children[r].dom:null}}markDirty(e=!1){this.flags|=2,this.markParentsDirty(e)}markParentsDirty(e){for(let n=this.parent;n;n=n.parent){if(e&&(n.flags|=2),n.flags&1)return;n.flags|=1,e=!1}}setParent(e){this.parent!=e&&(this.parent=e,this.flags&7&&this.markParentsDirty(!0))}setDOM(e){this.dom!=e&&(this.dom&&(this.dom.cmView=null),this.dom=e,e.cmView=this)}get rootView(){for(let e=this;;){let n=e.parent;if(!n)return e;e=n}}replaceChildren(e,n,i=Dj){this.markDirty();for(let a=e;athis.pos||e==this.pos&&(n>0||this.i==0||this.children[this.i-1].breakAfter))return this.off=e-this.pos,this;let i=this.children[--this.i];this.pos-=i.length+i.breakAfter}}}function R7(t,e,n,i,a,o,r,s,c){let{children:l}=t,u=l.length?l[e]:null,f=o.length?o[o.length-1]:null,h=f?f.breakAfter:r;if(!(e==i&&u&&!r&&!h&&o.length<2&&u.merge(n,a,o.length?f:null,n==0,s,c))){if(i0&&(!r&&o.length&&u.merge(n,u.length,o[0],!1,s,0)?u.breakAfter=o.shift().breakAfter:(n2);var lt={mac:A3||/Mac/.test(Ba.platform),windows:/Win/.test(Ba.platform),linux:/Linux|X11/.test(Ba.platform),ie:r_,ie_version:L7?M2.documentMode||6:N2?+N2[1]:R2?+R2[1]:0,gecko:w3,gecko_version:w3?+(/Firefox\/(\d+)/.exec(Ba.userAgent)||[0,0])[1]:0,chrome:!!Mk,chrome_version:Mk?+Mk[1]:0,ios:A3,android:/Android\b/.test(Ba.userAgent),webkit:$3,safari:F7,webkit_version:$3?+(/\bAppleWebKit\/(\d+)/.exec(Ba.userAgent)||[0,0])[1]:0,tabSize:M2.documentElement.style.tabSize!=null?"tab-size":"-moz-tab-size"};const Bde=256;class rl extends Fr{constructor(e){super(),this.text=e}get length(){return this.text.length}createDOM(e){this.setDOM(e||document.createTextNode(this.text))}sync(e,n){this.dom||this.createDOM(),this.dom.nodeValue!=this.text&&(n&&n.node==this.dom&&(n.written=!0),this.dom.nodeValue=this.text)}reuseDOM(e){e.nodeType==3&&this.createDOM(e)}merge(e,n,i){return this.flags&8||i&&(!(i instanceof rl)||this.length-(n-e)+i.length>Bde||i.flags&8)?!1:(this.text=this.text.slice(0,e)+(i?i.text:"")+this.text.slice(n),this.markDirty(),!0)}split(e){let n=new rl(this.text.slice(e));return this.text=this.text.slice(0,e),this.markDirty(),n.flags|=this.flags&8,n}localPosFromDOM(e,n){return e==this.dom?n:n?this.text.length:0}domAtPos(e){return new Ki(this.dom,e)}domBoundsAround(e,n,i){return{from:i,to:i+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}coordsAt(e,n){return Vde(this.dom,e,n)}}class cu extends Fr{constructor(e,n=[],i=0){super(),this.mark=e,this.children=n,this.length=i;for(let a of n)a.setParent(this)}setAttrs(e){if(I7(e),this.mark.class&&(e.className=this.mark.class),this.mark.attrs)for(let n in this.mark.attrs)e.setAttribute(n,this.mark.attrs[n]);return e}canReuseDOM(e){return super.canReuseDOM(e)&&!((this.flags|e.flags)&8)}reuseDOM(e){e.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(e),this.flags|=6)}sync(e,n){this.dom?this.flags&4&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),super.sync(e,n)}merge(e,n,i,a,o,r){return i&&(!(i instanceof cu&&i.mark.eq(this.mark))||e&&o<=0||ne&&n.push(i=e&&(a=o),i=c,o++}let r=this.length-e;return this.length=e,a>-1&&(this.children.length=a,this.markDirty()),new cu(this.mark,n,r)}domAtPos(e){return q7(this,e)}coordsAt(e,n){return U7(this,e,n)}}function Vde(t,e,n){let i=t.nodeValue.length;e>i&&(e=i);let a=e,o=e,r=0;e==0&&n<0||e==i&&n>=0?lt.chrome||lt.gecko||(e?(a--,r=1):o=0)?0:s.length-1];return lt.safari&&!r&&c.width==0&&(c=Array.prototype.find.call(s,l=>l.width)||c),r?ob(c,r<0):c||null}class ff extends Fr{static create(e,n,i){return new ff(e,n,i)}constructor(e,n,i){super(),this.widget=e,this.length=n,this.side=i,this.prevWidget=null}split(e){let n=ff.create(this.widget,this.length-e,this.side);return this.length-=e,n}sync(e){(!this.dom||!this.widget.updateDOM(this.dom,e))&&(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(e)),this.widget.editable||(this.dom.contentEditable="false"))}getSide(){return this.side}merge(e,n,i,a,o,r){return i&&(!(i instanceof ff)||!this.widget.compare(i.widget)||e>0&&o<=0||n0)?Ki.before(this.dom):Ki.after(this.dom,e==this.length)}domBoundsAround(){return null}coordsAt(e,n){let i=this.widget.coordsAt(this.dom,e,n);if(i)return i;let a=this.dom.getClientRects(),o=null;if(!a.length)return null;let r=this.side?this.side<0:e>0;for(let s=r?a.length-1:0;o=a[s],!(e>0?s==0:s==a.length-1||o.top0?Ki.before(this.dom):Ki.after(this.dom)}localPosFromDOM(){return 0}domBoundsAround(){return null}coordsAt(e){return this.dom.getBoundingClientRect()}get overrideDOMText(){return fr.empty}get isHidden(){return!0}}rl.prototype.children=ff.prototype.children=lg.prototype.children=Dj;function q7(t,e){let n=t.dom,{children:i}=t,a=0;for(let o=0;ao&&e0;o--){let r=i[o-1];if(r.dom.parentNode==n)return r.domAtPos(r.length)}for(let o=a;o0&&e instanceof cu&&a.length&&(i=a[a.length-1])instanceof cu&&i.mark.eq(e.mark)?z7(i,e.children[0],n-1):(a.push(e),e.setParent(t)),t.length+=e.length}function U7(t,e,n){let i=null,a=-1,o=null,r=-1;function s(l,u){for(let f=0,h=0;f=u&&(d.children.length?s(d,u-h):(!o||o.isHidden&&n>0)&&(m>u||h==m&&d.getSide()>0)?(o=d,r=u-h):(h-1?1:0)!=a.length-(n&&a.indexOf(n)>-1?1:0))return!1;for(let o of i)if(o!=n&&(a.indexOf(o)==-1||t[o]!==e[o]))return!1;return!0}function F2(t,e,n){let i=!1;if(e)for(let a in e)n&&a in n||(i=!0,a=="style"?t.style.cssText="":t.removeAttribute(a));if(n)for(let a in n)e&&e[a]==n[a]||(i=!0,a=="style"?t.style.cssText=n[a]:t.setAttribute(a,n[a]));return i}function Hde(t){let e=Object.create(null);for(let n=0;n0?3e8:-4e8:n>0?1e8:-1e8,new jf(e,n,n,i,e.widget||null,!1)}static replace(e){let n=!!e.block,i,a;if(e.isBlockGap)i=-5e8,a=4e8;else{let{start:o,end:r}=B7(e,n);i=(o?n?-3e8:-1:5e8)-1,a=(r?n?2e8:1:-6e8)+1}return new jf(e,i,a,n,e.widget||null,!0)}static line(e){return new cb(e)}static set(e,n=!1){return nr.of(e,n)}hasHeight(){return this.widget?this.widget.estimatedHeight>-1:!1}}St.none=nr.empty;class lb extends St{constructor(e){let{start:n,end:i}=B7(e);super(n?-1:5e8,i?1:-6e8,null,e),this.tagName=e.tagName||"span",this.class=e.class||"",this.attrs=e.attributes||null}eq(e){var n,i;return this==e||e instanceof lb&&this.tagName==e.tagName&&(this.class||((n=this.attrs)===null||n===void 0?void 0:n.class))==(e.class||((i=e.attrs)===null||i===void 0?void 0:i.class))&&RA(this.attrs,e.attrs,"class")}range(e,n=e){if(e>=n)throw new RangeError("Mark decorations may not be empty");return super.range(e,n)}}lb.prototype.point=!1;class cb extends St{constructor(e){super(-2e8,-2e8,null,e)}eq(e){return e instanceof cb&&this.spec.class==e.spec.class&&RA(this.spec.attributes,e.spec.attributes)}range(e,n=e){if(n!=e)throw new RangeError("Line decoration ranges must be zero-length");return super.range(e,n)}}cb.prototype.mapMode=ma.TrackBefore;cb.prototype.point=!0;class jf extends St{constructor(e,n,i,a,o,r){super(n,i,o,e),this.block=a,this.isReplace=r,this.mapMode=a?n<=0?ma.TrackBefore:ma.TrackAfter:ma.TrackDel}get type(){return this.startSide!=this.endSide?ba.WidgetRange:this.startSide<=0?ba.WidgetBefore:ba.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(e){return e instanceof jf&&Gde(this.widget,e.widget)&&this.block==e.block&&this.startSide==e.startSide&&this.endSide==e.endSide}range(e,n=e){if(this.isReplace&&(e>n||e==n&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&n!=e)throw new RangeError("Widget decorations can only have zero-length ranges");return super.range(e,n)}}jf.prototype.point=!0;function B7(t,e=!1){let{inclusiveStart:n,inclusiveEnd:i}=t;return n==null&&(n=t.inclusive),i==null&&(i=t.inclusive),{start:n??e,end:i??e}}function Gde(t,e){return t==e||!!(t&&e&&t.compare(e))}function q2(t,e,n,i=0){let a=n.length-1;a>=0&&n[a]+i>=t?n[a]=Math.max(n[a],e):n.push(t,e)}class Jn extends Fr{constructor(){super(...arguments),this.children=[],this.length=0,this.prevAttrs=void 0,this.attrs=null,this.breakAfter=0}merge(e,n,i,a,o,r){if(i){if(!(i instanceof Jn))return!1;this.dom||i.transferDOM(this)}return a&&this.setDeco(i?i.attrs:null),N7(this,e,n,i?i.children.slice():[],o,r),!0}split(e){let n=new Jn;if(n.breakAfter=this.breakAfter,this.length==0)return n;let{i,off:a}=this.childPos(e);a&&(n.append(this.children[i].split(a),0),this.children[i].merge(a,this.children[i].length,null,!1,0,0),i++);for(let o=i;o0&&this.children[i-1].length==0;)this.children[--i].destroy();return this.children.length=i,this.markDirty(),this.length=e,n}transferDOM(e){this.dom&&(this.markDirty(),e.setDOM(this.dom),e.prevAttrs=this.prevAttrs===void 0?this.attrs:this.prevAttrs,this.prevAttrs=void 0,this.dom=null)}setDeco(e){RA(this.attrs,e)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=e)}append(e,n){z7(this,e,n)}addLineDeco(e){let n=e.spec.attributes,i=e.spec.class;n&&(this.attrs=L2(n,this.attrs||{})),i&&(this.attrs=L2({class:i},this.attrs||{}))}domAtPos(e){return q7(this,e)}reuseDOM(e){e.nodeName=="DIV"&&(this.setDOM(e),this.flags|=6)}sync(e,n){var i;this.dom?this.flags&4&&(I7(this.dom),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0):(this.setDOM(document.createElement("div")),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0),this.prevAttrs!==void 0&&(F2(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add("cm-line"),this.prevAttrs=void 0),super.sync(e,n);let a=this.dom.lastChild;for(;a&&Fr.get(a)instanceof cu;)a=a.lastChild;if(!a||!this.length||a.nodeName!="BR"&&((i=Fr.get(a))===null||i===void 0?void 0:i.isEditable)==!1&&(!lt.ios||!this.children.some(o=>o instanceof rl))){let o=document.createElement("BR");o.cmIgnore=!0,this.dom.appendChild(o)}}measureTextSize(){if(this.children.length==0||this.length>20)return null;let e=0,n;for(let i of this.children){if(!(i instanceof rl)||/[^ -~]/.test(i.text))return null;let a=og(i.dom);if(a.length!=1)return null;e+=a[0].width,n=a[0].height}return e?{lineHeight:this.dom.getBoundingClientRect().height,charWidth:e/this.length,textHeight:n}:null}coordsAt(e,n){let i=U7(this,e,n);if(!this.children.length&&i&&this.parent){let{heightOracle:a}=this.parent.view.viewState,o=i.bottom-i.top;if(Math.abs(o-a.lineHeight)<2&&a.textHeight=n){if(o instanceof Jn)return o;if(r>n)break}a=r+o.breakAfter}return null}}class Cc extends Fr{constructor(e,n,i){super(),this.widget=e,this.length=n,this.deco=i,this.breakAfter=0,this.prevWidget=null}merge(e,n,i,a,o,r){return i&&(!(i instanceof Cc)||!this.widget.compare(i.widget)||e>0&&o<=0||n0}}class z2 extends yu{constructor(e){super(),this.height=e}toDOM(){let e=document.createElement("div");return e.className="cm-gap",this.updateDOM(e),e}eq(e){return e.height==this.height}updateDOM(e){return e.style.height=this.height+"px",!0}get editable(){return!0}get estimatedHeight(){return this.height}ignoreEvent(){return!1}}class Vv{constructor(e,n,i,a){this.doc=e,this.pos=n,this.end=i,this.disallowBlockEffectsFor=a,this.content=[],this.curLine=null,this.breakAtStart=0,this.pendingBuffer=0,this.bufferMarks=[],this.atCursorPos=!0,this.openStart=-1,this.openEnd=-1,this.text="",this.textOff=0,this.cursor=e.iter(),this.skip=n}posCovered(){if(this.content.length==0)return!this.breakAtStart&&this.doc.lineAt(this.pos).from!=this.pos;let e=this.content[this.content.length-1];return!(e.breakAfter||e instanceof Cc&&e.deco.endSide<0)}getLine(){return this.curLine||(this.content.push(this.curLine=new Jn),this.atCursorPos=!0),this.curLine}flushBuffer(e=this.bufferMarks){this.pendingBuffer&&(this.curLine.append(ew(new lg(-1),e),e.length),this.pendingBuffer=0)}addBlockWidget(e){this.flushBuffer(),this.curLine=null,this.content.push(e)}finish(e){this.pendingBuffer&&e<=this.bufferMarks.length?this.flushBuffer():this.pendingBuffer=0,!this.posCovered()&&!(e&&this.content.length&&this.content[this.content.length-1]instanceof Cc)&&this.getLine()}buildText(e,n,i){for(;e>0;){if(this.textOff==this.text.length){let{value:o,lineBreak:r,done:s}=this.cursor.next(this.skip);if(this.skip=0,s)throw new Error("Ran out of text content when drawing inline views");if(r){this.posCovered()||this.getLine(),this.content.length?this.content[this.content.length-1].breakAfter=1:this.breakAtStart=1,this.flushBuffer(),this.curLine=null,this.atCursorPos=!0,e--;continue}else this.text=o,this.textOff=0}let a=Math.min(this.text.length-this.textOff,e,512);this.flushBuffer(n.slice(n.length-i)),this.getLine().append(ew(new rl(this.text.slice(this.textOff,this.textOff+a)),n),i),this.atCursorPos=!0,this.textOff+=a,e-=a,i=0}}span(e,n,i,a){this.buildText(n-e,i,a),this.pos=n,this.openStart<0&&(this.openStart=a)}point(e,n,i,a,o,r){if(this.disallowBlockEffectsFor[r]&&i instanceof jf){if(i.block)throw new RangeError("Block decorations may not be specified via plugins");if(n>this.doc.lineAt(this.pos).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}let s=n-e;if(i instanceof jf)if(i.block)i.startSide>0&&!this.posCovered()&&this.getLine(),this.addBlockWidget(new Cc(i.widget||cg.block,s,i));else{let c=ff.create(i.widget||cg.inline,s,s?0:i.startSide),l=this.atCursorPos&&!c.isEditable&&o<=a.length&&(e0),u=!c.isEditable&&(ea.length||i.startSide<=0),f=this.getLine();this.pendingBuffer==2&&!l&&!c.isEditable&&(this.pendingBuffer=0),this.flushBuffer(a),l&&(f.append(ew(new lg(1),a),o),o=a.length+Math.max(0,o-a.length)),f.append(ew(c,a),o),this.atCursorPos=u,this.pendingBuffer=u?ea.length?1:2:0,this.pendingBuffer&&(this.bufferMarks=a.slice())}else this.doc.lineAt(this.pos).from==this.pos&&this.getLine().addLineDeco(i);s&&(this.textOff+s<=this.text.length?this.textOff+=s:(this.skip+=s-(this.text.length-this.textOff),this.text="",this.textOff=0),this.pos=n),this.openStart<0&&(this.openStart=o)}static build(e,n,i,a,o){let r=new Vv(e,n,i,o);return r.openEnd=nr.spans(a,n,i,r),r.openStart<0&&(r.openStart=r.openEnd),r.finish(r.openEnd),r}}function ew(t,e){for(let n of e)t=new cu(n,[t],t.length);return t}class cg extends yu{constructor(e){super(),this.tag=e}eq(e){return e.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(e){return e.nodeName.toLowerCase()==this.tag}get isHidden(){return!0}}cg.inline=new cg("span");cg.block=new cg("div");var rn=function(t){return t[t.LTR=0]="LTR",t[t.RTL=1]="RTL",t}(rn||(rn={}));const oh=rn.LTR,kj=rn.RTL;function V7(t){let e=[];for(let n=0;n=n){if(s.level==i)return r;(o<0||(a!=0?a<0?s.fromn:e[o].level>s.level))&&(o=r)}}if(o<0)throw new RangeError("Index out of range");return o}}function H7(t,e){if(t.length!=e.length)return!1;for(let n=0;n=0;g-=3)if(Pl[g+1]==-d){let b=Pl[g+2],v=b&2?a:b&4?b&1?o:a:0;v&&(Lr[f]=Lr[Pl[g]]=v),s=g;break}}else{if(Pl.length==189)break;Pl[s++]=f,Pl[s++]=h,Pl[s++]=c}else if((m=Lr[f])==2||m==1){let g=m==a;c=g?0:1;for(let b=s-3;b>=0;b-=3){let v=Pl[b+2];if(v&2)break;if(g)Pl[b+2]|=2;else{if(v&4)break;Pl[b+2]|=4}}}}}function Xde(t,e,n,i){for(let a=0,o=i;a<=n.length;a++){let r=a?n[a-1].to:t,s=ac;)m==b&&(m=n[--g].from,b=g?n[g-1].to:t),Lr[--m]=d;c=u}else o=l,c++}}}function B2(t,e,n,i,a,o,r){let s=i%2?2:1;if(i%2==a%2)for(let c=e,l=0;cc&&r.push(new pf(c,g.from,d));let b=g.direction==oh!=!(d%2);V2(t,b?i+1:i,a,g.inner,g.from,g.to,r),c=g.to}m=g.to}else{if(m==n||(u?Lr[m]!=s:Lr[m]==s))break;m++}h?B2(t,c,m,i+1,a,h,r):ce;){let u=!0,f=!1;if(!l||c>o[l-1].to){let g=Lr[c-1];g!=s&&(u=!1,f=g==16)}let h=!u&&s==1?[]:null,d=u?i:i+1,m=c;e:for(;;)if(l&&m==o[l-1].to){if(f)break e;let g=o[--l];if(!u)for(let b=g.from,v=l;;){if(b==e)break e;if(v&&o[v-1].to==b)b=o[--v].from;else{if(Lr[b-1]==s)break e;break}}if(h)h.push(g);else{g.toLr.length;)Lr[Lr.length]=256;let i=[],a=e==oh?0:1;return V2(t,a,a,n,0,t.length,i),i}function G7(t){return[new pf(0,t,0)]}let K7="";function tme(t,e,n,i,a){var o;let r=i.head-t.from,s=pf.find(e,r,(o=i.bidiLevel)!==null&&o!==void 0?o:-1,i.assoc),c=e[s],l=c.side(a,n);if(r==l){let h=s+=a?1:-1;if(h<0||h>=e.length)return null;c=e[s=h],r=c.side(!a,n),l=c.side(a,n)}let u=Ci(t.text,r,c.forward(a,n));(uc.to)&&(u=l),K7=t.text.slice(Math.min(r,u),Math.max(r,u));let f=s==(a?e.length-1:0)?null:e[s+(a?1:-1)];return f&&u==l&&f.level+(a?0:1)t.some(e=>e)}),rG=st.define({combine:t=>t.some(e=>e)}),nG=st.define();class tm{constructor(e,n="nearest",i="nearest",a=5,o=5,r=!1){this.range=e,this.y=n,this.x=i,this.yMargin=a,this.xMargin=o,this.isSnapshot=r}map(e){return e.empty?this:new tm(this.range.map(e),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}clip(e){return this.range.to<=e.doc.length?this:new tm(Ve.cursor(e.doc.length),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}}const tw=Nt.define({map:(t,e)=>t.map(e)}),iG=Nt.define();function ga(t,e,n){let i=t.facet(Z7);i.length?i[0](e):window.onerror?window.onerror(String(e),n,void 0,void 0,e):n?console.error(n+":",e):console.error(e)}const tf=st.define({combine:t=>t.length?t[0]:!0});let nme=0;const yv=st.define();class xn{constructor(e,n,i,a,o){this.id=e,this.create=n,this.domEventHandlers=i,this.domEventObservers=a,this.extension=o(this)}static define(e,n){const{eventHandlers:i,eventObservers:a,provide:o,decorations:r}=n||{};return new xn(nme++,e,i,a,s=>{let c=[yv.of(s)];return r&&c.push(TP.of(l=>{let u=l.plugin(s);return u?r(u):St.none})),o&&c.push(o(s)),c})}static fromClass(e,n){return xn.define(i=>new e(i),n)}}class Rk{constructor(e){this.spec=e,this.mustUpdate=null,this.value=null}update(e){if(this.value){if(this.mustUpdate){let n=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(n)}catch(i){if(ga(n.state,i,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch{}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.create(e)}catch(n){ga(e.state,n,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(e){var n;if(!((n=this.value)===null||n===void 0)&&n.destroy)try{this.value.destroy()}catch(i){ga(e.state,i,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}}const aG=st.define(),Ij=st.define(),TP=st.define(),sG=st.define(),Cj=st.define(),oG=st.define();function _3(t,e){let n=t.state.facet(oG);if(!n.length)return n;let i=n.map(o=>o instanceof Function?o(t):o),a=[];return nr.spans(i,e.from,e.to,{point(){},span(o,r,s,c){let l=o-e.from,u=r-e.from,f=a;for(let h=s.length-1;h>=0;h--,c--){let d=s[h].spec.bidiIsolate,m;if(d==null&&(d=rme(e.text,l,u)),c>0&&f.length&&(m=f[f.length-1]).to==l&&m.direction==d)m.to=u,f=m.inner;else{let g={from:l,to:u,direction:d,inner:[]};f.push(g),f=g.inner}}}}),a}const lG=st.define();function cG(t){let e=0,n=0,i=0,a=0;for(let o of t.state.facet(lG)){let r=o(t);r&&(r.left!=null&&(e=Math.max(e,r.left)),r.right!=null&&(n=Math.max(n,r.right)),r.top!=null&&(i=Math.max(i,r.top)),r.bottom!=null&&(a=Math.max(a,r.bottom)))}return{left:e,right:n,top:i,bottom:a}}const gv=st.define();class oo{constructor(e,n,i,a){this.fromA=e,this.toA=n,this.fromB=i,this.toB=a}join(e){return new oo(Math.min(this.fromA,e.fromA),Math.max(this.toA,e.toA),Math.min(this.fromB,e.fromB),Math.max(this.toB,e.toB))}addToSet(e){let n=e.length,i=this;for(;n>0;n--){let a=e[n-1];if(!(a.fromA>i.toA)){if(a.toAu)break;o+=2}if(!c)return i;new oo(c.fromA,c.toA,c.fromB,c.toB).addToSet(i),r=c.toA,s=c.toB}}}class NA{constructor(e,n,i){this.view=e,this.state=n,this.transactions=i,this.flags=0,this.startState=e.state,this.changes=ii.empty(this.startState.doc.length);for(let o of i)this.changes=this.changes.compose(o.changes);let a=[];this.changes.iterChangedRanges((o,r,s,c)=>a.push(new oo(o,r,s,c))),this.changedRanges=a}static create(e,n,i){return new NA(e,n,i)}get viewportChanged(){return(this.flags&4)>0}get heightChanged(){return(this.flags&2)>0}get geometryChanged(){return this.docChanged||(this.flags&10)>0}get focusChanged(){return(this.flags&1)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some(e=>e.selection)}get empty(){return this.flags==0&&this.transactions.length==0}}class x3 extends Fr{get length(){return this.view.state.doc.length}constructor(e){super(),this.view=e,this.decorations=[],this.dynamicDecorationMap=[!1],this.domChanged=null,this.hasComposition=null,this.markedForComposition=new Set,this.editContextFormatting=St.none,this.lastCompositionAfterCursor=!1,this.minWidth=0,this.minWidthFrom=0,this.minWidthTo=0,this.impreciseAnchor=null,this.impreciseHead=null,this.forceSelection=!1,this.lastUpdate=Date.now(),this.setDOM(e.contentDOM),this.children=[new Jn],this.children[0].setParent(this),this.updateDeco(),this.updateInner([new oo(0,0,0,e.state.doc.length)],0,null)}update(e){var n;let i=e.changedRanges;this.minWidth>0&&i.length&&(i.every(({fromA:l,toA:u})=>uthis.minWidthTo)?(this.minWidthFrom=e.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=e.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0),this.updateEditContextFormatting(e);let a=-1;this.view.inputState.composing>=0&&!this.view.observer.editContext&&(!((n=this.domChanged)===null||n===void 0)&&n.newSel?a=this.domChanged.newSel.head:!ume(e.changes,this.hasComposition)&&!e.selectionSet&&(a=e.state.selection.main.head));let o=a>-1?ame(this.view,e.changes,a):null;if(this.domChanged=null,this.hasComposition){this.markedForComposition.clear();let{from:l,to:u}=this.hasComposition;i=new oo(l,u,e.changes.mapPos(l,-1),e.changes.mapPos(u,1)).addToSet(i.slice())}this.hasComposition=o?{from:o.range.fromB,to:o.range.toB}:null,(lt.ie||lt.chrome)&&!o&&e&&e.state.doc.lines!=e.startState.doc.lines&&(this.forceSelection=!0);let r=this.decorations,s=this.updateDeco(),c=lme(r,s,e.changes);return i=oo.extendWithRanges(i,c),!(this.flags&7)&&i.length==0?!1:(this.updateInner(i,e.startState.doc.length,o),e.transactions.length&&(this.lastUpdate=Date.now()),!0)}updateInner(e,n,i){this.view.viewState.mustMeasureContent=!0,this.updateChildren(e,n,i);let{observer:a}=this.view;a.ignore(()=>{this.dom.style.height=this.view.viewState.contentHeight/this.view.scaleY+"px",this.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let r=lt.chrome||lt.ios?{node:a.selectionRange.focusNode,written:!1}:void 0;this.sync(this.view,r),this.flags&=-8,r&&(r.written||a.selectionRange.focusNode!=r.node)&&(this.forceSelection=!0),this.dom.style.height=""}),this.markedForComposition.forEach(r=>r.flags&=-9);let o=[];if(this.view.viewport.from||this.view.viewport.to=0?a[r]:null;if(!s)break;let{fromA:c,toA:l,fromB:u,toB:f}=s,h,d,m,g;if(i&&i.range.fromBu){let _=Vv.build(this.view.state.doc,u,i.range.fromB,this.decorations,this.dynamicDecorationMap),x=Vv.build(this.view.state.doc,i.range.toB,f,this.decorations,this.dynamicDecorationMap);d=_.breakAtStart,m=_.openStart,g=x.openEnd;let N=this.compositionView(i);x.breakAtStart?N.breakAfter=1:x.content.length&&N.merge(N.length,N.length,x.content[0],!1,x.openStart,0)&&(N.breakAfter=x.content[0].breakAfter,x.content.shift()),_.content.length&&N.merge(0,0,_.content[_.content.length-1],!0,0,_.openEnd)&&_.content.pop(),h=_.content.concat(N).concat(x.content)}else({content:h,breakAtStart:d,openStart:m,openEnd:g}=Vv.build(this.view.state.doc,u,f,this.decorations,this.dynamicDecorationMap));let{i:b,off:v}=o.findPos(l,1),{i:P,off:A}=o.findPos(c,-1);R7(this,P,A,b,v,h,d,m,g)}i&&this.fixCompositionDOM(i)}updateEditContextFormatting(e){this.editContextFormatting=this.editContextFormatting.map(e.changes);for(let n of e.transactions)for(let i of n.effects)i.is(iG)&&(this.editContextFormatting=i.value)}compositionView(e){let n=new rl(e.text.nodeValue);n.flags|=8;for(let{deco:a}of e.marks)n=new cu(a,[n],n.length);let i=new Jn;return i.append(n,0),i}fixCompositionDOM(e){let n=(o,r)=>{r.flags|=8|(r.children.some(c=>c.flags&7)?1:0),this.markedForComposition.add(r);let s=Fr.get(o);s&&s!=r&&(s.dom=null),r.setDOM(o)},i=this.childPos(e.range.fromB,1),a=this.children[i.i];n(e.line,a);for(let o=e.marks.length-1;o>=-1;o--)i=a.childPos(i.off,1),a=a.children[i.i],n(o>=0?e.marks[o].node:e.text,a)}updateSelection(e=!1,n=!1){(e||!this.view.observer.selectionRange.focusNode)&&this.view.observer.readSelectionRange();let i=this.view.root.activeElement,a=i==this.dom,o=!a&&b$(this.dom,this.view.observer.selectionRange)&&!(i&&this.dom.contains(i));if(!(a||n||o))return;let r=this.forceSelection;this.forceSelection=!1;let s=this.view.state.selection.main,c=this.moveToLine(this.domAtPos(s.anchor)),l=s.empty?c:this.moveToLine(this.domAtPos(s.head));if(lt.gecko&&s.empty&&!this.hasComposition&&ime(c)){let f=document.createTextNode("");this.view.observer.ignore(()=>c.node.insertBefore(f,c.node.childNodes[c.offset]||null)),c=l=new Ki(f,0),r=!0}let u=this.view.observer.selectionRange;(r||!u.focusNode||(!Bv(c.node,c.offset,u.anchorNode,u.anchorOffset)||!Bv(l.node,l.offset,u.focusNode,u.focusOffset))&&!this.suppressWidgetCursorChange(u,s))&&(this.view.observer.ignore(()=>{lt.android&<.chrome&&this.dom.contains(u.focusNode)&&cme(u.focusNode,this.dom)&&(this.dom.blur(),this.dom.focus({preventScroll:!0}));let f=CP(this.view.root);if(f)if(s.empty){if(lt.gecko){let h=sme(c.node,c.offset);if(h&&h!=3){let d=(h==1?T7:j7)(c.node,c.offset);d&&(c=new Ki(d.node,d.offset))}}f.collapse(c.node,c.offset),s.bidiLevel!=null&&f.caretBidiLevel!==void 0&&(f.caretBidiLevel=s.bidiLevel)}else if(f.extend){f.collapse(c.node,c.offset);try{f.extend(l.node,l.offset)}catch{}}else{let h=document.createRange();s.anchor>s.head&&([c,l]=[l,c]),h.setEnd(l.node,l.offset),h.setStart(c.node,c.offset),f.removeAllRanges(),f.addRange(h)}o&&this.view.root.activeElement==this.dom&&(this.dom.blur(),i&&i.focus())}),this.view.observer.setSelectionRange(c,l)),this.impreciseAnchor=c.precise?null:new Ki(u.anchorNode,u.anchorOffset),this.impreciseHead=l.precise?null:new Ki(u.focusNode,u.focusOffset)}suppressWidgetCursorChange(e,n){return this.hasComposition&&n.empty&&Bv(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)&&this.posFromDOM(e.focusNode,e.focusOffset)==n.head}enforceCursorAssoc(){if(this.hasComposition)return;let{view:e}=this,n=e.state.selection.main,i=CP(e.root),{anchorNode:a,anchorOffset:o}=e.observer.selectionRange;if(!i||!n.empty||!n.assoc||!i.modify)return;let r=Jn.find(this,n.head);if(!r)return;let s=r.posAtStart;if(n.head==s||n.head==s+r.length)return;let c=this.coordsAt(n.head,-1),l=this.coordsAt(n.head,1);if(!c||!l||c.bottom>l.top)return;let u=this.domAtPos(n.head+n.assoc);i.collapse(u.node,u.offset),i.modify("move",n.assoc<0?"forward":"backward","lineboundary"),e.observer.readSelectionRange();let f=e.observer.selectionRange;e.docView.posFromDOM(f.anchorNode,f.anchorOffset)!=n.from&&i.collapse(a,o)}moveToLine(e){let n=this.dom,i;if(e.node!=n)return e;for(let a=e.offset;!i&&a=0;a--){let o=Fr.get(n.childNodes[a]);o instanceof Jn&&(i=o.domAtPos(o.length))}return i?new Ki(i.node,i.offset,!0):e}nearest(e){for(let n=e;n;){let i=Fr.get(n);if(i&&i.rootView==this)return i;n=n.parentNode}return null}posFromDOM(e,n){let i=this.nearest(e);if(!i)throw new RangeError("Trying to find position for a DOM position outside of the document");return i.localPosFromDOM(e,n)+i.posAtStart}domAtPos(e){let{i:n,off:i}=this.childCursor().findPos(e,-1);for(;n=0;r--){let s=this.children[r],c=o-s.breakAfter,l=c-s.length;if(ce||s.covers(1))&&(!i||s instanceof Jn&&!(i instanceof Jn&&n>=0)))i=s,a=l;else if(i&&l==e&&c==e&&s instanceof Cc&&Math.abs(n)<2){if(s.deco.startSide<0)break;r&&(i=null)}o=l}return i?i.coordsAt(e-a,n):null}coordsForChar(e){let{i:n,off:i}=this.childPos(e,1),a=this.children[n];if(!(a instanceof Jn))return null;for(;a.children.length;){let{i:s,off:c}=a.childPos(i,1);for(;;s++){if(s==a.children.length)return null;if((a=a.children[s]).length)break}i=c}if(!(a instanceof rl))return null;let o=Ci(a.text,i);if(o==i)return null;let r=sh(a.dom,i,o).getClientRects();for(let s=0;sMath.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,s=-1,c=this.view.textDirection==rn.LTR;for(let l=0,u=0;ua)break;if(l>=i){let d=f.dom.getBoundingClientRect();if(n.push(d.height),r){let m=f.dom.lastChild,g=m?og(m):[];if(g.length){let b=g[g.length-1],v=c?b.right-d.left:d.right-b.left;v>s&&(s=v,this.minWidth=o,this.minWidthFrom=l,this.minWidthTo=h)}}}l=h+f.breakAfter}return n}textDirectionAt(e){let{i:n}=this.childPos(e,1);return getComputedStyle(this.children[n].dom).direction=="rtl"?rn.RTL:rn.LTR}measureTextSize(){for(let o of this.children)if(o instanceof Jn){let r=o.measureTextSize();if(r)return r}let e=document.createElement("div"),n,i,a;return e.className="cm-line",e.style.width="99999px",e.style.position="absolute",e.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore(()=>{this.dom.appendChild(e);let o=og(e.firstChild)[0];n=e.getBoundingClientRect().height,i=o?o.width/27:7,a=o?o.height:n,e.remove()}),{lineHeight:n,charWidth:i,textHeight:a}}childCursor(e=this.length){let n=this.children.length;return n&&(e-=this.children[--n].length),new M7(this.children,e,n)}computeBlockGapDeco(){let e=[],n=this.view.viewState;for(let i=0,a=0;;a++){let o=a==n.viewports.length?null:n.viewports[a],r=o?o.from-1:this.length;if(r>i){let s=(n.lineBlockAt(r).bottom-n.lineBlockAt(i).top)/this.view.scaleY;e.push(St.replace({widget:new z2(s),block:!0,inclusive:!0,isBlockGap:!0}).range(i,r))}if(!o)break;i=o.to+1}return St.set(e)}updateDeco(){let e=1,n=this.view.state.facet(TP).map(o=>(this.dynamicDecorationMap[e++]=typeof o=="function")?o(this.view):o),i=!1,a=this.view.state.facet(sG).map((o,r)=>{let s=typeof o=="function";return s&&(i=!0),s?o(this.view):o});for(a.length&&(this.dynamicDecorationMap[e++]=i,n.push(nr.join(a))),this.decorations=[this.editContextFormatting,...n,this.computeBlockGapDeco(),this.view.viewState.lineGapDeco];en.anchor?-1:1),a;if(!i)return;!n.empty&&(a=this.coordsAt(n.anchor,n.anchor>n.head?-1:1))&&(i={left:Math.min(i.left,a.left),top:Math.min(i.top,a.top),right:Math.max(i.right,a.right),bottom:Math.max(i.bottom,a.bottom)});let o=cG(this.view),r={left:i.left-o.left,top:i.top-o.top,right:i.right+o.right,bottom:i.bottom+o.bottom},{offsetWidth:s,offsetHeight:c}=this.view.scrollDOM;Lde(this.view.scrollDOM,r,n.head{ie.from&&(n=!0)}),n}function fme(t,e,n=1){let i=t.charCategorizer(e),a=t.doc.lineAt(e),o=e-a.from;if(a.length==0)return Ve.cursor(e);o==0?n=1:o==a.length&&(n=-1);let r=o,s=o;n<0?r=Ci(a.text,o,!1):s=Ci(a.text,o);let c=i(a.text.slice(r,s));for(;r>0;){let l=Ci(a.text,r,!1);if(i(a.text.slice(l,r))!=c)break;r=l}for(;st?e.left-t:Math.max(0,t-e.right)}function hme(t,e){return e.top>t?e.top-t:Math.max(0,t-e.bottom)}function Nk(t,e){return t.tope.top+1}function D3(t,e){return et.bottom?{top:t.top,left:t.left,right:t.right,bottom:e}:t}function H2(t,e,n){let i,a,o,r,s=!1,c,l,u,f;for(let m=t.firstChild;m;m=m.nextSibling){let g=og(m);for(let b=0;bA||r==A&&o>P){i=m,a=v,o=P,r=A;let _=A?n0?b0)}P==0?n>v.bottom&&(!u||u.bottomv.top)&&(l=m,f=v):u&&Nk(u,v)?u=k3(u,v.bottom):f&&Nk(f,v)&&(f=D3(f,v.top))}}if(u&&u.bottom>=n?(i=c,a=u):f&&f.top<=n&&(i=l,a=f),!i)return{node:t,offset:0};let h=Math.max(a.left,Math.min(a.right,e));if(i.nodeType==3)return O3(i,h,n);if(s&&i.contentEditable!="false")return H2(i,h,n);let d=Array.prototype.indexOf.call(t.childNodes,i)+(e>=(a.left+a.right)/2?1:0);return{node:t,offset:d}}function O3(t,e,n){let i=t.nodeValue.length,a=-1,o=1e9,r=0;for(let s=0;sn?u.top-n:n-u.bottom)-1;if(u.left-1<=e&&u.right+1>=e&&f=(u.left+u.right)/2,d=h;if((lt.chrome||lt.gecko)&&sh(t,s).getBoundingClientRect().left==u.right&&(d=!h),f<=0)return{node:t,offset:s+(d?1:0)};a=s+(d?1:0),o=f}}}return{node:t,offset:a>-1?a:r>0?t.nodeValue.length:0}}function fG(t,e,n,i=-1){var a,o;let r=t.contentDOM.getBoundingClientRect(),s=r.top+t.viewState.paddingTop,c,{docHeight:l}=t.viewState,{x:u,y:f}=e,h=f-s;if(h<0)return 0;if(h>l)return t.state.doc.length;for(let _=t.viewState.heightOracle.textHeight/2,x=!1;c=t.elementAtHeight(h),c.type!=ba.Text;)for(;h=i>0?c.bottom+_:c.top-_,!(h>=0&&h<=l);){if(x)return n?null:0;x=!0,i=-i}f=s+h;let d=c.from;if(dt.viewport.to)return t.viewport.to==t.state.doc.length?t.state.doc.length:n?null:E3(t,r,c,u,f);let m=t.dom.ownerDocument,g=t.root.elementFromPoint?t.root:m,b=g.elementFromPoint(u,f);b&&!t.contentDOM.contains(b)&&(b=null),b||(u=Math.max(r.left+1,Math.min(r.right-1,u)),b=g.elementFromPoint(u,f),b&&!t.contentDOM.contains(b)&&(b=null));let v,P=-1;if(b&&((a=t.docView.nearest(b))===null||a===void 0?void 0:a.isEditable)!=!1){if(m.caretPositionFromPoint){let _=m.caretPositionFromPoint(u,f);_&&({offsetNode:v,offset:P}=_)}else if(m.caretRangeFromPoint){let _=m.caretRangeFromPoint(u,f);_&&({startContainer:v,startOffset:P}=_,(!t.contentDOM.contains(v)||lt.safari&&dme(v,P,u)||lt.chrome&&mme(v,P,u))&&(v=void 0))}v&&(P=Math.min(Wl(v),P))}if(!v||!t.docView.dom.contains(v)){let _=Jn.find(t.docView,d);if(!_)return h>c.top+c.height/2?c.to:c.from;({node:v,offset:P}=H2(_.dom,u,f))}let A=t.docView.nearest(v);if(!A)return null;if(A.isWidget&&((o=A.dom)===null||o===void 0?void 0:o.nodeType)==1){let _=A.dom.getBoundingClientRect();return e.y<_.top||e.y<=_.bottom&&e.x<=(_.left+_.right)/2?A.posAtStart:A.posAtEnd}else return A.localPosFromDOM(v,P)+A.posAtStart}function E3(t,e,n,i,a){let o=Math.round((i-e.left)*t.defaultCharacterWidth);if(t.lineWrapping&&n.height>t.defaultLineHeight*1.5){let s=t.viewState.heightOracle.textHeight,c=Math.floor((a-n.top-(t.defaultLineHeight-s)*.5)/s);o+=c*t.viewState.heightOracle.lineLength}let r=t.state.sliceDoc(n.from,n.to);return n.from+I2(r,o,t.state.tabSize)}function dme(t,e,n){let i;if(t.nodeType!=3||e!=(i=t.nodeValue.length))return!1;for(let a=t.nextSibling;a;a=a.nextSibling)if(a.nodeType!=1||a.nodeName!="BR")return!1;return sh(t,i-1,i).getBoundingClientRect().left>n}function mme(t,e,n){if(e!=0)return!1;for(let a=t;;){let o=a.parentNode;if(!o||o.nodeType!=1||o.firstChild!=a)return!1;if(o.classList.contains("cm-line"))break;a=o}let i=t.nodeType==1?t.getBoundingClientRect():sh(t,0,Math.max(t.nodeValue.length,1)).getBoundingClientRect();return n-i.left>5}function G2(t,e){let n=t.lineBlockAt(e);if(Array.isArray(n.type)){for(let i of n.type)if(i.to>e||i.to==e&&(i.to==n.to||i.type==ba.Text))return i}return n}function yme(t,e,n,i){let a=G2(t,e.head),o=!i||a.type!=ba.Text||!(t.lineWrapping||a.widgetLineBreaks)?null:t.coordsAtPos(e.assoc<0&&e.head>a.from?e.head-1:e.head);if(o){let r=t.dom.getBoundingClientRect(),s=t.textDirectionAt(a.from),c=t.posAtCoords({x:n==(s==rn.LTR)?r.right-1:r.left+1,y:(o.top+o.bottom)/2});if(c!=null)return Ve.cursor(c,n?-1:1)}return Ve.cursor(n?a.to:a.from,n?-1:1)}function I3(t,e,n,i){let a=t.state.doc.lineAt(e.head),o=t.bidiSpans(a),r=t.textDirectionAt(a.from);for(let s=e,c=null;;){let l=tme(a,o,r,s,n),u=K7;if(!l){if(a.number==(n?t.state.doc.lines:1))return s;u=` -`,a=t.state.doc.line(a.number+(n?1:-1)),o=t.bidiSpans(a),l=t.visualLineSide(a,!n)}if(c){if(!c(u))return s}else{if(!i)return l;c=i(u)}s=l}}function gme(t,e,n){let i=t.state.charCategorizer(e),a=i(n);return o=>{let r=i(o);return a==cn.Space&&(a=r),a==r}}function vme(t,e,n,i){let a=e.head,o=n?1:-1;if(a==(n?t.state.doc.length:0))return Ve.cursor(a,e.assoc);let r=e.goalColumn,s,c=t.contentDOM.getBoundingClientRect(),l=t.coordsAtPos(a,e.assoc||-1),u=t.documentTop;if(l)r==null&&(r=l.left-c.left),s=o<0?l.top:l.bottom;else{let d=t.viewState.lineBlockAt(a);r==null&&(r=Math.min(c.right-c.left,t.defaultCharacterWidth*(a-d.from))),s=(o<0?d.top:d.bottom)+u}let f=c.left+r,h=i??t.viewState.heightOracle.textHeight>>1;for(let d=0;;d+=10){let m=s+(h+d)*o,g=fG(t,{x:f,y:m},!1,o);if(mc.bottom||(o<0?ga)){let b=t.docView.coordsForChar(g),v=!b||m{if(e>o&&ea(t)),n.from,e.head>n.from?-1:1);return i==n.from?n:Ve.cursor(i,io)&&this.lineBreak(),a=r}return this.findPointBefore(i,n),this}readTextNode(e){let n=e.nodeValue;for(let i of this.points)i.node==e&&(i.pos=this.text.length+Math.min(i.offset,n.length));for(let i=0,a=this.lineSeparator?null:/\r\n?|\n/g;;){let o=-1,r=1,s;if(this.lineSeparator?(o=n.indexOf(this.lineSeparator,i),r=this.lineSeparator.length):(s=a.exec(n))&&(o=s.index,r=s[0].length),this.append(n.slice(i,o<0?n.length:o)),o<0)break;if(this.lineBreak(),r>1)for(let c of this.points)c.node==e&&c.pos>this.text.length&&(c.pos-=r-1);i=o+r}}readNode(e){if(e.cmIgnore)return;let n=Fr.get(e),i=n&&n.overrideDOMText;if(i!=null){this.findPointInside(e,i.length);for(let a=i.iter();!a.next().done;)a.lineBreak?this.lineBreak():this.append(a.value)}else e.nodeType==3?this.readTextNode(e):e.nodeName=="BR"?e.nextSibling&&this.lineBreak():e.nodeType==1&&this.readRange(e.firstChild,null)}findPointBefore(e,n){for(let i of this.points)i.node==e&&e.childNodes[i.offset]==n&&(i.pos=this.text.length)}findPointInside(e,n){for(let i of this.points)(e.nodeType==3?i.node==e:e.contains(i.node))&&(i.pos=this.text.length+(bme(e,i.node,i.offset)?n:0))}}function bme(t,e,n){for(;;){if(!e||n-1;let{impreciseHead:o,impreciseAnchor:r}=e.docView;if(e.state.readOnly&&n>-1)this.newSel=null;else if(n>-1&&(this.bounds=e.docView.domBoundsAround(n,i,0))){let s=o||r?[]:Sme(e),c=new Pme(s,e.state);c.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=c.text,this.newSel=_me(s,this.bounds.from)}else{let s=e.observer.selectionRange,c=o&&o.node==s.focusNode&&o.offset==s.focusOffset||!j2(e.contentDOM,s.focusNode)?e.state.selection.main.head:e.docView.posFromDOM(s.focusNode,s.focusOffset),l=r&&r.node==s.anchorNode&&r.offset==s.anchorOffset||!j2(e.contentDOM,s.anchorNode)?e.state.selection.main.anchor:e.docView.posFromDOM(s.anchorNode,s.anchorOffset),u=e.viewport;if((lt.ios||lt.chrome)&&e.state.selection.main.empty&&c!=l&&(u.from>0||u.toDate.now()-100?t.inputState.lastKeyCode:-1;if(e.bounds){let{from:r,to:s}=e.bounds,c=a.from,l=null;(o===8||lt.android&&e.text.length=a.from&&n.to<=a.to&&(n.from!=a.from||n.to!=a.to)&&a.to-a.from-(n.to-n.from)<=4?n={from:a.from,to:a.to,insert:t.state.doc.slice(a.from,n.from).append(n.insert).append(t.state.doc.slice(n.to,a.to))}:(lt.mac||lt.android)&&n&&n.from==n.to&&n.from==a.head-1&&/^\. ?$/.test(n.insert.toString())&&t.contentDOM.getAttribute("autocorrect")=="off"?(i&&n.insert.length==2&&(i=Ve.single(i.main.anchor-1,i.main.head-1)),n={from:a.from,to:a.to,insert:fr.of([" "])}):lt.chrome&&n&&n.from==n.to&&n.from==a.head&&n.insert.toString()==` - `&&t.lineWrapping&&(i&&(i=Ve.single(i.main.anchor-1,i.main.head-1)),n={from:a.from,to:a.to,insert:fr.of([" "])}),n)return Tj(t,n,i,o);if(i&&!i.main.eq(a)){let r=!1,s="select";return t.inputState.lastSelectionTime>Date.now()-50&&(t.inputState.lastSelectionOrigin=="select"&&(r=!0),s=t.inputState.lastSelectionOrigin),t.dispatch({selection:i,scrollIntoView:r,userEvent:s}),!0}else return!1}function Tj(t,e,n,i=-1){if(lt.ios&&t.inputState.flushIOSKey(e))return!0;let a=t.state.selection.main;if(lt.android&&(e.to==a.to&&(e.from==a.from||e.from==a.from-1&&t.state.sliceDoc(e.from,a.from)==" ")&&e.insert.length==1&&e.insert.lines==2&&em(t.contentDOM,"Enter",13)||(e.from==a.from-1&&e.to==a.to&&e.insert.length==0||i==8&&e.insert.lengtha.head)&&em(t.contentDOM,"Backspace",8)||e.from==a.from&&e.to==a.to+1&&e.insert.length==0&&em(t.contentDOM,"Delete",46)))return!0;let o=e.insert.toString();t.inputState.composing>=0&&t.inputState.composing++;let r,s=()=>r||(r=$me(t,e,n));return t.state.facet(X7).some(c=>c(t,e.from,e.to,o,s))||t.dispatch(s()),!0}function $me(t,e,n){let i,a=t.state,o=a.selection.main;if(e.from>=o.from&&e.to<=o.to&&e.to-e.from>=(o.to-o.from)/3&&(!n||n.main.empty&&n.main.from==e.from+e.insert.length)&&t.inputState.composing<0){let s=o.frome.to?a.sliceDoc(e.to,o.to):"";i=a.replaceSelection(t.state.toText(s+e.insert.sliceString(0,void 0,t.state.lineBreak)+c))}else{let s=a.changes(e),c=n&&n.main.to<=s.newLength?n.main:void 0;if(a.selection.ranges.length>1&&t.inputState.composing>=0&&e.to<=o.to&&e.to>=o.to-10){let l=t.state.sliceDoc(e.from,e.to),u,f=n&&uG(t,n.main.head);if(f){let m=e.insert.length-(e.to-e.from);u={from:f.from,to:f.to-m}}else u=t.state.doc.lineAt(o.head);let h=o.to-e.to,d=o.to-o.from;i=a.changeByRange(m=>{if(m.from==o.from&&m.to==o.to)return{changes:s,range:c||m.map(s)};let g=m.to-h,b=g-l.length;if(m.to-m.from!=d||t.state.sliceDoc(b,g)!=l||m.to>=u.from&&m.from<=u.to)return{range:m};let v=a.changes({from:b,to:g,insert:e.insert}),P=m.to-o.to;return{changes:v,range:c?Ve.range(Math.max(0,c.anchor+P),Math.max(0,c.head+P)):m.map(v)}})}else i={changes:s,selection:c&&a.selection.replaceRange(c)}}let r="input.type";return(t.composing||t.inputState.compositionPendingChange&&t.inputState.compositionEndedAt>Date.now()-50)&&(t.inputState.compositionPendingChange=!1,r+=".compose",t.inputState.compositionFirstChange&&(r+=".start",t.inputState.compositionFirstChange=!1)),a.update(i,{userEvent:r,scrollIntoView:!0})}function Ame(t,e,n,i){let a=Math.min(t.length,e.length),o=0;for(;o0&&s>0&&t.charCodeAt(r-1)==e.charCodeAt(s-1);)r--,s--;if(i=="end"){let c=Math.max(0,o-Math.min(r,s));n-=r+c-o}if(r=r?o-n:0;o-=c,s=o+(s-r),r=o}else if(s=s?o-n:0;o-=c,r=o+(r-s),s=o}return{from:o,toA:r,toB:s}}function Sme(t){let e=[];if(t.root.activeElement!=t.contentDOM)return e;let{anchorNode:n,anchorOffset:i,focusNode:a,focusOffset:o}=t.observer.selectionRange;return n&&(e.push(new C3(n,i)),(a!=n||o!=i)&&e.push(new C3(a,o))),e}function _me(t,e){if(t.length==0)return null;let n=t[0].pos,i=t.length==2?t[1].pos:n;return n>-1&&i>-1?Ve.single(n+e,i+e):null}class xme{setSelectionOrigin(e){this.lastSelectionOrigin=e,this.lastSelectionTime=Date.now()}constructor(e){this.view=e,this.lastKeyCode=0,this.lastKeyTime=0,this.lastTouchTime=0,this.lastFocusTime=0,this.lastScrollTop=0,this.lastScrollLeft=0,this.pendingIOSKey=void 0,this.tabFocusMode=-1,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastContextMenu=0,this.scrollHandlers=[],this.handlers=Object.create(null),this.composing=-1,this.compositionFirstChange=null,this.compositionEndedAt=0,this.compositionPendingKey=!1,this.compositionPendingChange=!1,this.mouseSelection=null,this.draggedContent=null,this.handleEvent=this.handleEvent.bind(this),this.notifiedFocused=e.hasFocus,lt.safari&&e.contentDOM.addEventListener("input",()=>null),lt.gecko&&Ume(e.contentDOM.ownerDocument)}handleEvent(e){!jme(this.view,e)||this.ignoreDuringComposition(e)||e.type=="keydown"&&this.keydown(e)||this.runHandlers(e.type,e)}runHandlers(e,n){let i=this.handlers[e];if(i){for(let a of i.observers)a(this.view,n);for(let a of i.handlers){if(n.defaultPrevented)break;if(a(this.view,n)){n.preventDefault();break}}}}ensureHandlers(e){let n=Dme(e),i=this.handlers,a=this.view.contentDOM;for(let o in n)if(o!="scroll"){let r=!n[o].handlers.length,s=i[o];s&&r!=!s.handlers.length&&(a.removeEventListener(o,this.handleEvent),s=null),s||a.addEventListener(o,this.handleEvent,{passive:r})}for(let o in i)o!="scroll"&&!n[o]&&a.removeEventListener(o,this.handleEvent);this.handlers=n}keydown(e){if(this.lastKeyCode=e.keyCode,this.lastKeyTime=Date.now(),e.keyCode==9&&this.tabFocusMode>-1&&(!this.tabFocusMode||Date.now()<=this.tabFocusMode))return!0;if(this.tabFocusMode>0&&e.keyCode!=27&&dG.indexOf(e.keyCode)<0&&(this.tabFocusMode=-1),lt.android&<.chrome&&!e.synthetic&&(e.keyCode==13||e.keyCode==8))return this.view.observer.delayAndroidKey(e.key,e.keyCode),!0;let n;return lt.ios&&!e.synthetic&&!e.altKey&&!e.metaKey&&((n=hG.find(i=>i.keyCode==e.keyCode))&&!e.ctrlKey||kme.indexOf(e.key)>-1&&e.ctrlKey&&!e.shiftKey)?(this.pendingIOSKey=n||e,setTimeout(()=>this.flushIOSKey(),250),!0):(e.keyCode!=229&&this.view.observer.forceFlush(),!1)}flushIOSKey(e){let n=this.pendingIOSKey;return!n||n.key=="Enter"&&e&&e.from0?!0:lt.safari&&!lt.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100?(this.compositionPendingKey=!1,!0):!1:!1}startMouseSelection(e){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=e}update(e){this.view.observer.update(e),this.mouseSelection&&this.mouseSelection.update(e),this.draggedContent&&e.docChanged&&(this.draggedContent=this.draggedContent.map(e.changes)),e.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}}function T3(t,e){return(n,i)=>{try{return e.call(t,i,n)}catch(a){ga(n.state,a)}}}function Dme(t){let e=Object.create(null);function n(i){return e[i]||(e[i]={observers:[],handlers:[]})}for(let i of t){let a=i.spec;if(a&&a.domEventHandlers)for(let o in a.domEventHandlers){let r=a.domEventHandlers[o];r&&n(o).handlers.push(T3(i.value,r))}if(a&&a.domEventObservers)for(let o in a.domEventObservers){let r=a.domEventObservers[o];r&&n(o).observers.push(T3(i.value,r))}}for(let i in nl)n(i).handlers.push(nl[i]);for(let i in $o)n(i).observers.push($o[i]);return e}const hG=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],kme="dthko",dG=[16,17,18,20,91,92,224,225],rw=6;function nw(t){return Math.max(0,t)*.7+8}function Ome(t,e){return Math.max(Math.abs(t.clientX-e.clientX),Math.abs(t.clientY-e.clientY))}class Eme{constructor(e,n,i,a){this.view=e,this.startEvent=n,this.style=i,this.mustSelect=a,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=n,this.scrollParents=Fde(e.contentDOM),this.atoms=e.state.facet(Cj).map(r=>r(e));let o=e.contentDOM.ownerDocument;o.addEventListener("mousemove",this.move=this.move.bind(this)),o.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=n.shiftKey,this.multiple=e.state.facet(or.allowMultipleSelections)&&Ime(e,n),this.dragging=Tme(e,n)&&gG(n)==1?null:!1}start(e){this.dragging===!1&&this.select(e)}move(e){if(e.buttons==0)return this.destroy();if(this.dragging||this.dragging==null&&Ome(this.startEvent,e)<10)return;this.select(this.lastEvent=e);let n=0,i=0,a=0,o=0,r=this.view.win.innerWidth,s=this.view.win.innerHeight;this.scrollParents.x&&({left:a,right:r}=this.scrollParents.x.getBoundingClientRect()),this.scrollParents.y&&({top:o,bottom:s}=this.scrollParents.y.getBoundingClientRect());let c=cG(this.view);e.clientX-c.left<=a+rw?n=-nw(a-e.clientX):e.clientX+c.right>=r-rw&&(n=nw(e.clientX-r)),e.clientY-c.top<=o+rw?i=-nw(o-e.clientY):e.clientY+c.bottom>=s-rw&&(i=nw(e.clientY-s)),this.setScrollSpeed(n,i)}up(e){this.dragging==null&&this.select(this.lastEvent),this.dragging||e.preventDefault(),this.destroy()}destroy(){this.setScrollSpeed(0,0);let e=this.view.contentDOM.ownerDocument;e.removeEventListener("mousemove",this.move),e.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=this.view.inputState.draggedContent=null}setScrollSpeed(e,n){this.scrollSpeed={x:e,y:n},e||n?this.scrolling<0&&(this.scrolling=setInterval(()=>this.scroll(),50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}scroll(){let{x:e,y:n}=this.scrollSpeed;e&&this.scrollParents.x&&(this.scrollParents.x.scrollLeft+=e,e=0),n&&this.scrollParents.y&&(this.scrollParents.y.scrollTop+=n,n=0),(e||n)&&this.view.win.scrollBy(e,n),this.dragging===!1&&this.select(this.lastEvent)}skipAtoms(e){let n=null;for(let i=0;in.isUserEvent("input.type"))?this.destroy():this.style.update(e)&&setTimeout(()=>this.select(this.lastEvent),20)}}function Ime(t,e){let n=t.state.facet(Y7);return n.length?n[0](e):lt.mac?e.metaKey:e.ctrlKey}function Cme(t,e){let n=t.state.facet(J7);return n.length?n[0](e):lt.mac?!e.altKey:!e.ctrlKey}function Tme(t,e){let{main:n}=t.state.selection;if(n.empty)return!1;let i=CP(t.root);if(!i||i.rangeCount==0)return!0;let a=i.getRangeAt(0).getClientRects();for(let o=0;o=e.clientX&&r.top<=e.clientY&&r.bottom>=e.clientY)return!0}return!1}function jme(t,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let n=e.target,i;n!=t.contentDOM;n=n.parentNode)if(!n||n.nodeType==11||(i=Fr.get(n))&&i.ignoreEvent(e))return!1;return!0}const nl=Object.create(null),$o=Object.create(null),mG=lt.ie&<.ie_version<15||lt.ios&<.webkit_version<604;function Mme(t){let e=t.dom.parentNode;if(!e)return;let n=e.appendChild(document.createElement("textarea"));n.style.cssText="position: fixed; left: -10000px; top: 10px",n.focus(),setTimeout(()=>{t.focus(),n.remove(),yG(t,n.value)},50)}function n_(t,e,n){for(let i of t.facet(e))n=i(n,t);return n}function yG(t,e){e=n_(t.state,Oj,e);let{state:n}=t,i,a=1,o=n.toText(e),r=o.lines==n.selection.ranges.length;if(K2!=null&&n.selection.ranges.every(c=>c.empty)&&K2==o.toString()){let c=-1;i=n.changeByRange(l=>{let u=n.doc.lineAt(l.from);if(u.from==c)return{range:l};c=u.from;let f=n.toText((r?o.line(a++).text:e)+n.lineBreak);return{changes:{from:u.from,insert:f},range:Ve.cursor(l.from+f.length)}})}else r?i=n.changeByRange(c=>{let l=o.line(a++);return{changes:{from:c.from,to:c.to,insert:l.text},range:Ve.cursor(c.from+l.length)}}):i=n.replaceSelection(o);t.dispatch(i,{userEvent:"input.paste",scrollIntoView:!0})}$o.scroll=t=>{t.inputState.lastScrollTop=t.scrollDOM.scrollTop,t.inputState.lastScrollLeft=t.scrollDOM.scrollLeft};nl.keydown=(t,e)=>(t.inputState.setSelectionOrigin("select"),e.keyCode==27&&t.inputState.tabFocusMode!=0&&(t.inputState.tabFocusMode=Date.now()+2e3),!1);$o.touchstart=(t,e)=>{t.inputState.lastTouchTime=Date.now(),t.inputState.setSelectionOrigin("select.pointer")};$o.touchmove=t=>{t.inputState.setSelectionOrigin("select.pointer")};nl.mousedown=(t,e)=>{if(t.observer.flush(),t.inputState.lastTouchTime>Date.now()-2e3)return!1;let n=null;for(let i of t.state.facet(Q7))if(n=i(t,e),n)break;if(!n&&e.button==0&&(n=Lme(t,e)),n){let i=!t.hasFocus;t.inputState.startMouseSelection(new Eme(t,e,n,i)),i&&t.observer.ignore(()=>{E7(t.contentDOM);let o=t.root.activeElement;o&&!o.contains(t.contentDOM)&&o.blur()});let a=t.inputState.mouseSelection;if(a)return a.start(e),a.dragging===!1}return!1};function j3(t,e,n,i){if(i==1)return Ve.cursor(e,n);if(i==2)return fme(t.state,e,n);{let a=Jn.find(t.docView,e),o=t.state.doc.lineAt(a?a.posAtEnd:e),r=a?a.posAtStart:o.from,s=a?a.posAtEnd:o.to;return se>=n.top&&e<=n.bottom&&t>=n.left&&t<=n.right;function Rme(t,e,n,i){let a=Jn.find(t.docView,e);if(!a)return 1;let o=e-a.posAtStart;if(o==0)return 1;if(o==a.length)return-1;let r=a.coordsAt(o,-1);if(r&&M3(n,i,r))return-1;let s=a.coordsAt(o,1);return s&&M3(n,i,s)?1:r&&r.bottom>=i?-1:1}function R3(t,e){let n=t.posAtCoords({x:e.clientX,y:e.clientY},!1);return{pos:n,bias:Rme(t,n,e.clientX,e.clientY)}}const Nme=lt.ie&<.ie_version<=11;let N3=null,L3=0,F3=0;function gG(t){if(!Nme)return t.detail;let e=N3,n=F3;return N3=t,F3=Date.now(),L3=!e||n>Date.now()-400&&Math.abs(e.clientX-t.clientX)<2&&Math.abs(e.clientY-t.clientY)<2?(L3+1)%3:1}function Lme(t,e){let n=R3(t,e),i=gG(e),a=t.state.selection;return{update(o){o.docChanged&&(n.pos=o.changes.mapPos(n.pos),a=a.map(o.changes))},get(o,r,s){let c=R3(t,o),l,u=j3(t,c.pos,c.bias,i);if(n.pos!=c.pos&&!r){let f=j3(t,n.pos,n.bias,i),h=Math.min(f.from,u.from),d=Math.max(f.to,u.to);u=h1&&(l=Fme(a,c.pos))?l:s?a.addRange(u):Ve.create([u])}}}function Fme(t,e){for(let n=0;n=e)return Ve.create(t.ranges.slice(0,n).concat(t.ranges.slice(n+1)),t.mainIndex==n?0:t.mainIndex-(t.mainIndex>n?1:0))}return null}nl.dragstart=(t,e)=>{let{selection:{main:n}}=t.state;if(e.target.draggable){let a=t.docView.nearest(e.target);if(a&&a.isWidget){let o=a.posAtStart,r=o+a.length;(o>=n.to||r<=n.from)&&(n=Ve.range(o,r))}}let{inputState:i}=t;return i.mouseSelection&&(i.mouseSelection.dragging=!0),i.draggedContent=n,e.dataTransfer&&(e.dataTransfer.setData("Text",n_(t.state,Ej,t.state.sliceDoc(n.from,n.to))),e.dataTransfer.effectAllowed="copyMove"),!1};nl.dragend=t=>(t.inputState.draggedContent=null,!1);function q3(t,e,n,i){if(n=n_(t.state,Oj,n),!n)return;let a=t.posAtCoords({x:e.clientX,y:e.clientY},!1),{draggedContent:o}=t.inputState,r=i&&o&&Cme(t,e)?{from:o.from,to:o.to}:null,s={from:a,insert:n},c=t.state.changes(r?[r,s]:s);t.focus(),t.dispatch({changes:c,selection:{anchor:c.mapPos(a,-1),head:c.mapPos(a,1)},userEvent:r?"move.drop":"input.drop"}),t.inputState.draggedContent=null}nl.drop=(t,e)=>{if(!e.dataTransfer)return!1;if(t.state.readOnly)return!0;let n=e.dataTransfer.files;if(n&&n.length){let i=Array(n.length),a=0,o=()=>{++a==n.length&&q3(t,e,i.filter(r=>r!=null).join(t.state.lineBreak),!1)};for(let r=0;r{/[\x00-\x08\x0e-\x1f]{2}/.test(s.result)||(i[r]=s.result),o()},s.readAsText(n[r])}return!0}else{let i=e.dataTransfer.getData("Text");if(i)return q3(t,e,i,!0),!0}return!1};nl.paste=(t,e)=>{if(t.state.readOnly)return!0;t.observer.flush();let n=mG?null:e.clipboardData;return n?(yG(t,n.getData("text/plain")||n.getData("text/uri-list")),!0):(Mme(t),!1)};function qme(t,e){let n=t.dom.parentNode;if(!n)return;let i=n.appendChild(document.createElement("textarea"));i.style.cssText="position: fixed; left: -10000px; top: 10px",i.value=e,i.focus(),i.selectionEnd=e.length,i.selectionStart=0,setTimeout(()=>{i.remove(),t.focus()},50)}function zme(t){let e=[],n=[],i=!1;for(let a of t.selection.ranges)a.empty||(e.push(t.sliceDoc(a.from,a.to)),n.push(a));if(!e.length){let a=-1;for(let{from:o}of t.selection.ranges){let r=t.doc.lineAt(o);r.number>a&&(e.push(r.text),n.push({from:r.from,to:Math.min(t.doc.length,r.to+1)})),a=r.number}i=!0}return{text:n_(t,Ej,e.join(t.lineBreak)),ranges:n,linewise:i}}let K2=null;nl.copy=nl.cut=(t,e)=>{let{text:n,ranges:i,linewise:a}=zme(t.state);if(!n&&!a)return!1;K2=a?n:null,e.type=="cut"&&!t.state.readOnly&&t.dispatch({changes:i,scrollIntoView:!0,userEvent:"delete.cut"});let o=mG?null:e.clipboardData;return o?(o.clearData(),o.setData("text/plain",n),!0):(qme(t,n),!1)};const vG=Jl.define();function PG(t,e){let n=[];for(let i of t.facet(eG)){let a=i(t,e);a&&n.push(a)}return n?t.update({effects:n,annotations:vG.of(!0)}):null}function bG(t){setTimeout(()=>{let e=t.hasFocus;if(e!=t.inputState.notifiedFocused){let n=PG(t.state,e);n?t.dispatch(n):t.update([])}},10)}$o.focus=t=>{t.inputState.lastFocusTime=Date.now(),!t.scrollDOM.scrollTop&&(t.inputState.lastScrollTop||t.inputState.lastScrollLeft)&&(t.scrollDOM.scrollTop=t.inputState.lastScrollTop,t.scrollDOM.scrollLeft=t.inputState.lastScrollLeft),bG(t)};$o.blur=t=>{t.observer.clearSelectionRange(),bG(t)};$o.compositionstart=$o.compositionupdate=t=>{t.observer.editContext||(t.inputState.compositionFirstChange==null&&(t.inputState.compositionFirstChange=!0),t.inputState.composing<0&&(t.inputState.composing=0))};$o.compositionend=t=>{t.observer.editContext||(t.inputState.composing=-1,t.inputState.compositionEndedAt=Date.now(),t.inputState.compositionPendingKey=!0,t.inputState.compositionPendingChange=t.observer.pendingRecords().length>0,t.inputState.compositionFirstChange=null,lt.chrome&<.android?t.observer.flushSoon():t.inputState.compositionPendingChange?Promise.resolve().then(()=>t.observer.flush()):setTimeout(()=>{t.inputState.composing<0&&t.docView.hasComposition&&t.update([])},50))};$o.contextmenu=t=>{t.inputState.lastContextMenu=Date.now()};nl.beforeinput=(t,e)=>{var n,i;if(e.inputType=="insertReplacementText"&&t.observer.editContext){let o=(n=e.dataTransfer)===null||n===void 0?void 0:n.getData("text/plain"),r=e.getTargetRanges();if(o&&r.length){let s=r[0],c=t.posAtDOM(s.startContainer,s.startOffset),l=t.posAtDOM(s.endContainer,s.endOffset);return Tj(t,{from:c,to:l,insert:t.state.toText(o)},null),!0}}let a;if(lt.chrome&<.android&&(a=hG.find(o=>o.inputType==e.inputType))&&(t.observer.delayAndroidKey(a.key,a.keyCode),a.key=="Backspace"||a.key=="Delete")){let o=((i=window.visualViewport)===null||i===void 0?void 0:i.height)||0;setTimeout(()=>{var r;(((r=window.visualViewport)===null||r===void 0?void 0:r.height)||0)>o+10&&t.hasFocus&&(t.contentDOM.blur(),t.focus())},100)}return lt.ios&&e.inputType=="deleteContentForward"&&t.observer.flushSoon(),lt.safari&&e.inputType=="insertText"&&t.inputState.composing>=0&&setTimeout(()=>$o.compositionend(t,e),20),!1};const z3=new Set;function Ume(t){z3.has(t)||(z3.add(t),t.addEventListener("copy",()=>{}),t.addEventListener("cut",()=>{}))}const U3=["pre-wrap","normal","pre-line","break-spaces"];let ug=!1;function B3(){ug=!1}class Bme{constructor(e){this.lineWrapping=e,this.doc=fr.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.textHeight=14,this.lineLength=30}heightForGap(e,n){let i=this.doc.lineAt(n).number-this.doc.lineAt(e).number+1;return this.lineWrapping&&(i+=Math.max(0,Math.ceil((n-e-i*this.lineLength*.5)/this.lineLength))),this.lineHeight*i}heightForLine(e){return this.lineWrapping?(1+Math.max(0,Math.ceil((e-this.lineLength)/(this.lineLength-5))))*this.lineHeight:this.lineHeight}setDoc(e){return this.doc=e,this}mustRefreshForWrapping(e){return U3.indexOf(e)>-1!=this.lineWrapping}mustRefreshForHeights(e){let n=!1;for(let i=0;i-1,c=Math.round(n)!=Math.round(this.lineHeight)||this.lineWrapping!=s;if(this.lineWrapping=s,this.lineHeight=n,this.charWidth=i,this.textHeight=a,this.lineLength=o,c){this.heightSamples={};for(let l=0;l0}set outdated(e){this.flags=(e?2:0)|this.flags&-3}setHeight(e){this.height!=e&&(Math.abs(this.height-e)>$$&&(ug=!0),this.height=e)}replace(e,n,i){return wa.of(i)}decomposeLeft(e,n){n.push(this)}decomposeRight(e,n){n.push(this)}applyChanges(e,n,i,a){let o=this,r=i.doc;for(let s=a.length-1;s>=0;s--){let{fromA:c,toA:l,fromB:u,toB:f}=a[s],h=o.lineAt(c,Zr.ByPosNoHeight,i.setDoc(n),0,0),d=h.to>=l?h:o.lineAt(l,Zr.ByPosNoHeight,i,0,0);for(f+=d.to-l,l=d.to;s>0&&h.from<=a[s-1].toA;)c=a[s-1].fromA,u=a[s-1].fromB,s--,co*2){let s=e[n-1];s.break?e.splice(--n,1,s.left,null,s.right):e.splice(--n,1,s.left,s.right),i+=1+s.break,a-=s.size}else if(o>a*2){let s=e[i];s.break?e.splice(i,1,s.left,null,s.right):e.splice(i,1,s.left,s.right),i+=2+s.break,o-=s.size}else break;else if(a=o&&r(this.blockAt(0,i,a,o))}updateHeight(e,n=0,i=!1,a){return a&&a.from<=n&&a.more&&this.setHeight(a.heights[a.index++]),this.outdated=!1,this}toString(){return`block(${this.length})`}}class fs extends wG{constructor(e,n){super(e,n,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0}blockAt(e,n,i,a){return new kl(a,this.length,i,this.height,this.breaks)}replace(e,n,i){let a=i[0];return i.length==1&&(a instanceof fs||a instanceof xi&&a.flags&4)&&Math.abs(this.length-a.length)<10?(a instanceof xi?a=new fs(a.length,this.height):a.height=this.height,this.outdated||(a.outdated=!1),a):wa.of(i)}updateHeight(e,n=0,i=!1,a){return a&&a.from<=n&&a.more?this.setHeight(a.heights[a.index++]):(i||this.outdated)&&this.setHeight(Math.max(this.widgetHeight,e.heightForLine(this.length-this.collapsed))+this.breaks*e.lineHeight),this.outdated=!1,this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}}class xi extends wa{constructor(e){super(e,0)}heightMetrics(e,n){let i=e.doc.lineAt(n).number,a=e.doc.lineAt(n+this.length).number,o=a-i+1,r,s=0;if(e.lineWrapping){let c=Math.min(this.height,e.lineHeight*o);r=c/o,this.length>o+1&&(s=(this.height-c)/(this.length-o-1))}else r=this.height/o;return{firstLine:i,lastLine:a,perLine:r,perChar:s}}blockAt(e,n,i,a){let{firstLine:o,lastLine:r,perLine:s,perChar:c}=this.heightMetrics(n,a);if(n.lineWrapping){let l=a+(e0){let o=i[i.length-1];o instanceof xi?i[i.length-1]=new xi(o.length+a):i.push(null,new xi(a-1))}if(e>0){let o=i[0];o instanceof xi?i[0]=new xi(e+o.length):i.unshift(new xi(e-1),null)}return wa.of(i)}decomposeLeft(e,n){n.push(new xi(e-1),null)}decomposeRight(e,n){n.push(null,new xi(this.length-e-1))}updateHeight(e,n=0,i=!1,a){let o=n+this.length;if(a&&a.from<=n+this.length&&a.more){let r=[],s=Math.max(n,a.from),c=-1;for(a.from>n&&r.push(new xi(a.from-n-1).updateHeight(e,n));s<=o&&a.more;){let u=e.doc.lineAt(s).length;r.length&&r.push(null);let f=a.heights[a.index++];c==-1?c=f:Math.abs(f-c)>=$$&&(c=-2);let h=new fs(u,f);h.outdated=!1,r.push(h),s+=u+1}s<=o&&r.push(null,new xi(o-s).updateHeight(e,s));let l=wa.of(r);return(c<0||Math.abs(l.height-this.height)>=$$||Math.abs(c-this.heightMetrics(e,n).perLine)>=$$)&&(ug=!0),LA(this,l)}else(i||this.outdated)&&(this.setHeight(e.heightForGap(n,n+this.length)),this.outdated=!1);return this}toString(){return`gap(${this.length})`}}class Wme extends wa{constructor(e,n,i){super(e.length+n+i.length,e.height+i.height,n|(e.outdated||i.outdated?2:0)),this.left=e,this.right=i,this.size=e.size+i.size}get break(){return this.flags&1}blockAt(e,n,i,a){let o=i+this.left.height;return es))return l;let u=n==Zr.ByPosNoHeight?Zr.ByPosNoHeight:Zr.ByPos;return c?l.join(this.right.lineAt(s,u,i,r,s)):this.left.lineAt(s,u,i,a,o).join(l)}forEachLine(e,n,i,a,o,r){let s=a+this.left.height,c=o+this.left.length+this.break;if(this.break)e=c&&this.right.forEachLine(e,n,i,s,c,r);else{let l=this.lineAt(c,Zr.ByPos,i,a,o);e=e&&l.from<=n&&r(l),n>l.to&&this.right.forEachLine(l.to+1,n,i,s,c,r)}}replace(e,n,i){let a=this.left.length+this.break;if(nthis.left.length)return this.balanced(this.left,this.right.replace(e-a,n-a,i));let o=[];e>0&&this.decomposeLeft(e,o);let r=o.length;for(let s of i)o.push(s);if(e>0&&V3(o,r-1),n=i&&n.push(null)),e>i&&this.right.decomposeLeft(e-i,n)}decomposeRight(e,n){let i=this.left.length,a=i+this.break;if(e>=a)return this.right.decomposeRight(e-a,n);e2*n.size||n.size>2*e.size?wa.of(this.break?[e,null,n]:[e,n]):(this.left=LA(this.left,e),this.right=LA(this.right,n),this.setHeight(e.height+n.height),this.outdated=e.outdated||n.outdated,this.size=e.size+n.size,this.length=e.length+this.break+n.length,this)}updateHeight(e,n=0,i=!1,a){let{left:o,right:r}=this,s=n+o.length+this.break,c=null;return a&&a.from<=n+o.length&&a.more?c=o=o.updateHeight(e,n,i,a):o.updateHeight(e,n,i),a&&a.from<=s+r.length&&a.more?c=r=r.updateHeight(e,s,i,a):r.updateHeight(e,s,i),c?this.balanced(o,r):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}}function V3(t,e){let n,i;t[e]==null&&(n=t[e-1])instanceof xi&&(i=t[e+1])instanceof xi&&t.splice(e-1,3,new xi(n.length+1+i.length))}const Hme=5;class jj{constructor(e,n){this.pos=e,this.oracle=n,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=e}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(e,n){if(this.lineStart>-1){let i=Math.min(n,this.lineEnd),a=this.nodes[this.nodes.length-1];a instanceof fs?a.length+=i-this.pos:(i>this.pos||!this.isCovered)&&this.nodes.push(new fs(i-this.pos,-1)),this.writtenTo=i,n>i&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=n}point(e,n,i){if(e=Hme)&&this.addLineDeco(a,o,r)}else n>e&&this.span(e,n);this.lineEnd>-1&&this.lineEnd-1)return;let{from:e,to:n}=this.oracle.doc.lineAt(this.pos);this.lineStart=e,this.lineEnd=n,this.writtenToe&&this.nodes.push(new fs(this.pos-e,-1)),this.writtenTo=this.pos}blankContent(e,n){let i=new xi(n-e);return this.oracle.doc.lineAt(e).to==n&&(i.flags|=4),i}ensureLine(){this.enterLine();let e=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(e instanceof fs)return e;let n=new fs(0,-1);return this.nodes.push(n),n}addBlock(e){this.enterLine();let n=e.deco;n&&n.startSide>0&&!this.isCovered&&this.ensureLine(),this.nodes.push(e),this.writtenTo=this.pos=this.pos+e.length,n&&n.endSide>0&&(this.covering=e)}addLineDeco(e,n,i){let a=this.ensureLine();a.length+=i,a.collapsed+=i,a.widgetHeight=Math.max(a.widgetHeight,e),a.breaks+=n,this.writtenTo=this.pos=this.pos+i}finish(e){let n=this.nodes.length==0?null:this.nodes[this.nodes.length-1];this.lineStart>-1&&!(n instanceof fs)&&!this.isCovered?this.nodes.push(new fs(0,-1)):(this.writtenTou.clientHeight||u.scrollWidth>u.clientWidth)&&f.overflow!="visible"){let h=u.getBoundingClientRect();o=Math.max(o,h.left),r=Math.min(r,h.right),s=Math.max(s,h.top),c=Math.min(l==t.parentNode?a.innerHeight:c,h.bottom)}l=f.position=="absolute"||f.position=="fixed"?u.offsetParent:u.parentNode}else if(l.nodeType==11)l=l.host;else break;return{left:o-n.left,right:Math.max(o,r)-n.left,top:s-(n.top+e),bottom:Math.max(s,c)-(n.top+e)}}function Jme(t,e){let n=t.getBoundingClientRect();return{left:0,right:n.right-n.left,top:e,bottom:n.bottom-(n.top+e)}}class Fk{constructor(e,n,i){this.from=e,this.to=n,this.size=i}static same(e,n){if(e.length!=n.length)return!1;for(let i=0;itypeof i!="function"&&i.class=="cm-lineWrapping");this.heightOracle=new Bme(n),this.stateDeco=e.facet(TP).filter(i=>typeof i!="function"),this.heightMap=wa.empty().applyChanges(this.stateDeco,fr.empty,this.heightOracle.setDoc(e.doc),[new oo(0,0,0,e.doc.length)]);for(let i=0;i<2&&(this.viewport=this.getViewport(0,null),!!this.updateForViewport());i++);this.updateViewportLines(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=St.set(this.lineGaps.map(i=>i.draw(this,!1))),this.computeVisibleRanges()}updateForViewport(){let e=[this.viewport],{main:n}=this.state.selection;for(let i=0;i<=1;i++){let a=i?n.head:n.anchor;if(!e.some(({from:o,to:r})=>a>=o&&a<=r)){let{from:o,to:r}=this.lineBlockAt(a);e.push(new iw(o,r))}}return this.viewports=e.sort((i,a)=>i.from-a.from),this.updateScaler()}updateScaler(){let e=this.scaler;return this.scaler=this.heightMap.height<=7e6?H3:new Mj(this.heightOracle,this.heightMap,this.viewports),e.eq(this.scaler)?0:2}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,e=>{this.viewportLines.push(Pv(e,this.scaler))})}update(e,n=null){this.state=e.state;let i=this.stateDeco;this.stateDeco=this.state.facet(TP).filter(u=>typeof u!="function");let a=e.changedRanges,o=oo.extendWithRanges(a,Gme(i,this.stateDeco,e?e.changes:ii.empty(this.state.doc.length))),r=this.heightMap.height,s=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollTop);B3(),this.heightMap=this.heightMap.applyChanges(this.stateDeco,e.startState.doc,this.heightOracle.setDoc(this.state.doc),o),(this.heightMap.height!=r||ug)&&(e.flags|=2),s?(this.scrollAnchorPos=e.changes.mapPos(s.from,-1),this.scrollAnchorHeight=s.top):(this.scrollAnchorPos=-1,this.scrollAnchorHeight=this.heightMap.height);let c=o.length?this.mapViewport(this.viewport,e.changes):this.viewport;(n&&(n.range.headc.to)||!this.viewportIsAppropriate(c))&&(c=this.getViewport(0,n));let l=c.from!=this.viewport.from||c.to!=this.viewport.to;this.viewport=c,e.flags|=this.updateForViewport(),(l||!e.changes.empty||e.flags&2)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,e.changes))),e.flags|=this.computeVisibleRanges(),n&&(this.scrollTarget=n),!this.mustEnforceCursorAssoc&&e.selectionSet&&e.view.lineWrapping&&e.state.selection.main.empty&&e.state.selection.main.assoc&&!e.state.facet(rG)&&(this.mustEnforceCursorAssoc=!0)}measure(e){let n=e.contentDOM,i=window.getComputedStyle(n),a=this.heightOracle,o=i.whiteSpace;this.defaultTextDirection=i.direction=="rtl"?rn.RTL:rn.LTR;let r=this.heightOracle.mustRefreshForWrapping(o),s=n.getBoundingClientRect(),c=r||this.mustMeasureContent||this.contentDOMHeight!=s.height;this.contentDOMHeight=s.height,this.mustMeasureContent=!1;let l=0,u=0;if(s.width&&s.height){let{scaleX:_,scaleY:x}=O7(n,s);(_>.005&&Math.abs(this.scaleX-_)>.005||x>.005&&Math.abs(this.scaleY-x)>.005)&&(this.scaleX=_,this.scaleY=x,l|=8,r=c=!0)}let f=(parseInt(i.paddingTop)||0)*this.scaleY,h=(parseInt(i.paddingBottom)||0)*this.scaleY;(this.paddingTop!=f||this.paddingBottom!=h)&&(this.paddingTop=f,this.paddingBottom=h,l|=10),this.editorWidth!=e.scrollDOM.clientWidth&&(a.lineWrapping&&(c=!0),this.editorWidth=e.scrollDOM.clientWidth,l|=8);let d=e.scrollDOM.scrollTop*this.scaleY;this.scrollTop!=d&&(this.scrollAnchorHeight=-1,this.scrollTop=d),this.scrolledToBottom=C7(e.scrollDOM);let m=(this.printing?Jme:Yme)(n,this.paddingTop),g=m.top-this.pixelViewport.top,b=m.bottom-this.pixelViewport.bottom;this.pixelViewport=m;let v=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(v!=this.inView&&(this.inView=v,v&&(c=!0)),!this.inView&&!this.scrollTarget)return 0;let P=s.width;if((this.contentDOMWidth!=P||this.editorHeight!=e.scrollDOM.clientHeight)&&(this.contentDOMWidth=s.width,this.editorHeight=e.scrollDOM.clientHeight,l|=8),c){let _=e.docView.measureVisibleLineHeights(this.viewport);if(a.mustRefreshForHeights(_)&&(r=!0),r||a.lineWrapping&&Math.abs(P-this.contentDOMWidth)>a.charWidth){let{lineHeight:x,charWidth:N,textHeight:j}=e.docView.measureTextSize();r=x>0&&a.refresh(o,x,N,j,P/N,_),r&&(e.docView.minWidth=0,l|=8)}g>0&&b>0?u=Math.max(g,b):g<0&&b<0&&(u=Math.min(g,b)),B3();for(let x of this.viewports){let N=x.from==this.viewport.from?_:e.docView.measureVisibleLineHeights(x);this.heightMap=(r?wa.empty().applyChanges(this.stateDeco,fr.empty,this.heightOracle,[new oo(0,0,0,e.state.doc.length)]):this.heightMap).updateHeight(a,0,r,new Vme(x.from,N))}ug&&(l|=2)}let A=!this.viewportIsAppropriate(this.viewport,u)||this.scrollTarget&&(this.scrollTarget.range.headthis.viewport.to);return A&&(l&2&&(l|=this.updateScaler()),this.viewport=this.getViewport(u,this.scrollTarget),l|=this.updateForViewport()),(l&2||A)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(r?[]:this.lineGaps,e)),l|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,e.docView.enforceCursorAssoc()),l}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(e,n){let i=.5-Math.max(-.5,Math.min(.5,e/1e3/2)),a=this.heightMap,o=this.heightOracle,{visibleTop:r,visibleBottom:s}=this,c=new iw(a.lineAt(r-i*1e3,Zr.ByHeight,o,0,0).from,a.lineAt(s+(1-i)*1e3,Zr.ByHeight,o,0,0).to);if(n){let{head:l}=n.range;if(lc.to){let u=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),f=a.lineAt(l,Zr.ByPos,o,0,0),h;n.y=="center"?h=(f.top+f.bottom)/2-u/2:n.y=="start"||n.y=="nearest"&&l=s+Math.max(10,Math.min(i,250)))&&a>r-2*1e3&&o>1,r=a<<1;if(this.defaultTextDirection!=rn.LTR&&!i)return[];let s=[],c=(u,f,h,d)=>{if(f-uu&&vv.from>=h.from&&v.to<=h.to&&Math.abs(v.from-u)v.fromP));if(!b){if(fv.from<=f&&v.to>=f)){let v=n.moveToLineBoundary(Ve.cursor(f),!1,!0).head;v>u&&(f=v)}b=new Fk(u,f,this.gapSize(h,u,f,d))}s.push(b)},l=u=>{if(u.lengthu.from&&c(u.from,d,u,f),mn.draw(this,this.heightOracle.lineWrapping))))}computeVisibleRanges(){let e=this.stateDeco;this.lineGaps.length&&(e=e.concat(this.lineGapDeco));let n=[];nr.spans(e,this.viewport.from,this.viewport.to,{span(a,o){n.push({from:a,to:o})},point(){}},20);let i=n.length!=this.visibleRanges.length||this.visibleRanges.some((a,o)=>a.from!=n[o].from||a.to!=n[o].to);return this.visibleRanges=n,i?4:0}lineBlockAt(e){return e>=this.viewport.from&&e<=this.viewport.to&&this.viewportLines.find(n=>n.from<=e&&n.to>=e)||Pv(this.heightMap.lineAt(e,Zr.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(e){return e>=this.viewportLines[0].top&&e<=this.viewportLines[this.viewportLines.length-1].bottom&&this.viewportLines.find(n=>n.top<=e&&n.bottom>=e)||Pv(this.heightMap.lineAt(this.scaler.fromDOM(e),Zr.ByHeight,this.heightOracle,0,0),this.scaler)}scrollAnchorAt(e){let n=this.lineBlockAtHeight(e+8);return n.from>=this.viewport.from||this.viewportLines[0].top-e>200?n:this.viewportLines[0]}elementAtHeight(e){return Pv(this.heightMap.blockAt(this.scaler.fromDOM(e),this.heightOracle,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}}class iw{constructor(e,n){this.from=e,this.to=n}}function Zme(t,e,n){let i=[],a=t,o=0;return nr.spans(n,t,e,{span(){},point(r,s){r>a&&(i.push({from:a,to:r}),o+=r-a),a=s}},20),a=1)return e[e.length-1].to;let i=Math.floor(t*n);for(let a=0;;a++){let{from:o,to:r}=e[a],s=r-o;if(i<=s)return o+i;i-=s}}function sw(t,e){let n=0;for(let{from:i,to:a}of t.ranges){if(e<=a){n+=e-i;break}n+=a-i}return n/t.total}function Xme(t,e){for(let n of t)if(e(n))return n}const H3={toDOM(t){return t},fromDOM(t){return t},scale:1,eq(t){return t==this}};class Mj{constructor(e,n,i){let a=0,o=0,r=0;this.viewports=i.map(({from:s,to:c})=>{let l=n.lineAt(s,Zr.ByPos,e,0,0).top,u=n.lineAt(c,Zr.ByPos,e,0,0).bottom;return a+=u-l,{from:s,to:c,top:l,bottom:u,domTop:0,domBottom:0}}),this.scale=(7e6-a)/(n.height-a);for(let s of this.viewports)s.domTop=r+(s.top-o)*this.scale,r=s.domBottom=s.domTop+(s.bottom-s.top),o=s.bottom}toDOM(e){for(let n=0,i=0,a=0;;n++){let o=nn.from==e.viewports[i].from&&n.to==e.viewports[i].to):!1}}function Pv(t,e){if(e.scale==1)return t;let n=e.toDOM(t.top),i=e.toDOM(t.bottom);return new kl(t.from,t.length,n,i-n,Array.isArray(t._content)?t._content.map(a=>Pv(a,e)):t._content)}const ow=st.define({combine:t=>t.join(" ")}),Y2=st.define({combine:t=>t.indexOf(!0)>-1}),J2=Cf.newName(),$G=Cf.newName(),AG=Cf.newName(),SG={"&light":"."+$G,"&dark":"."+AG};function Q2(t,e,n){return new Cf(e,{finish(i){return/&/.test(i)?i.replace(/&\w*/,a=>{if(a=="&")return t;if(!n||!n[a])throw new RangeError(`Unsupported selector: ${a}`);return n[a]}):t+" "+i}})}const eye=Q2("."+J2,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0,overflowAnchor:"none"},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",minHeight:"100%",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{position:"absolute",left:0,top:0,contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused > .cm-scroller > .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#444"},".cm-dropCursor":{position:"absolute"},"&.cm-focused > .cm-scroller > .cm-cursorLayer .cm-cursor":{display:"block"},".cm-iso":{unicodeBidi:"isolate"},".cm-announced":{position:"fixed",top:"-10000px"},"@media print":{".cm-announced":{display:"none"}},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",insetInlineStart:0,zIndex:200},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",borderRight:"1px solid #ddd"},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0,zIndex:300},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top"},".cm-highlightSpace":{backgroundImage:"radial-gradient(circle at 50% 55%, #aaa 20%, transparent 5%)",backgroundPosition:"center"},".cm-highlightTab":{backgroundImage:`url('data:image/svg+xml,')`,backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},SG),tye={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},qk=lt.ie&<.ie_version<=11;class rye{constructor(e){this.view=e,this.active=!1,this.editContext=null,this.selectionRange=new qde,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.printQuery=null,this.parentCheck=-1,this.dom=e.contentDOM,this.observer=new MutationObserver(n=>{for(let i of n)this.queue.push(i);(lt.ie&<.ie_version<=11||lt.ios&&e.composing)&&n.some(i=>i.type=="childList"&&i.removedNodes.length||i.type=="characterData"&&i.oldValue.length>i.target.nodeValue.length)?this.flushSoon():this.flush()}),window.EditContext&&e.constructor.EDIT_CONTEXT!==!1&&!(lt.chrome&<.chrome_version<126)&&(this.editContext=new iye(e),e.state.facet(tf)&&(e.contentDOM.editContext=this.editContext.editContext)),qk&&(this.onCharData=n=>{this.queue.push({target:n.target,type:"characterData",oldValue:n.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),window.matchMedia&&(this.printQuery=window.matchMedia("print")),typeof ResizeObserver=="function"&&(this.resizeScroll=new ResizeObserver(()=>{var n;((n=this.view.docView)===null||n===void 0?void 0:n.lastUpdate){this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),n.length>0&&n[n.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent("Event")))},{threshold:[0,.001]}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver(n=>{n.length>0&&n[n.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))},{})),this.listenForScroll(),this.readSelectionRange()}onScrollChanged(e){this.view.inputState.runHandlers("scroll",e),this.intersecting&&this.view.measure()}onScroll(e){this.intersecting&&this.flush(!1),this.editContext&&this.view.requestMeasure(this.editContext.measureReq),this.onScrollChanged(e)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout(()=>{this.resizeTimeout=-1,this.view.requestMeasure()},50))}onPrint(e){(e.type=="change"||!e.type)&&!e.matches||(this.view.viewState.printing=!0,this.view.measure(),setTimeout(()=>{this.view.viewState.printing=!1,this.view.requestMeasure()},500))}updateGaps(e){if(this.gapIntersection&&(e.length!=this.gaps.length||this.gaps.some((n,i)=>n!=e[i]))){this.gapIntersection.disconnect();for(let n of e)this.gapIntersection.observe(n);this.gaps=e}}onSelectionChange(e){let n=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:i}=this,a=this.selectionRange;if(i.state.facet(tf)?i.root.activeElement!=this.dom:!b$(this.dom,a))return;let o=a.anchorNode&&i.docView.nearest(a.anchorNode);if(o&&o.ignoreEvent(e)){n||(this.selectionChanged=!1);return}(lt.ie&<.ie_version<=11||lt.android&<.chrome)&&!i.state.selection.main.empty&&a.focusNode&&Bv(a.focusNode,a.focusOffset,a.anchorNode,a.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:e}=this,n=CP(e.root);if(!n)return!1;let i=lt.safari&&e.root.nodeType==11&&e.root.activeElement==this.dom&&nye(this.view,n)||n;if(!i||this.selectionRange.eq(i))return!1;let a=b$(this.dom,i);return a&&!this.selectionChanged&&e.inputState.lastFocusTime>Date.now()-200&&e.inputState.lastTouchTime{let o=this.delayedAndroidKey;o&&(this.clearDelayedAndroidKey(),this.view.inputState.lastKeyCode=o.keyCode,this.view.inputState.lastKeyTime=Date.now(),!this.flush()&&o.force&&em(this.dom,o.key,o.keyCode))};this.flushingAndroidKey=this.view.win.requestAnimationFrame(a)}(!this.delayedAndroidKey||e=="Enter")&&(this.delayedAndroidKey={key:e,keyCode:n,force:this.lastChange{this.delayedFlush=-1,this.flush()}))}forceFlush(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}pendingRecords(){for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}processRecords(){let e=this.pendingRecords();e.length&&(this.queue=[]);let n=-1,i=-1,a=!1;for(let o of e){let r=this.readMutation(o);r&&(r.typeOver&&(a=!0),n==-1?{from:n,to:i}=r:(n=Math.min(r.from,n),i=Math.max(r.to,i)))}return{from:n,to:i,typeOver:a}}readChange(){let{from:e,to:n,typeOver:i}=this.processRecords(),a=this.selectionChanged&&b$(this.dom,this.selectionRange);if(e<0&&!a)return null;e>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1;let o=new wme(this.view,e,n,i);return this.view.docView.domChanged={newSel:o.newSel?o.newSel.main:null},o}flush(e=!0){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;e&&this.readSelectionRange();let n=this.readChange();if(!n)return this.view.requestMeasure(),!1;let i=this.view.state,a=pG(this.view,n);return this.view.state==i&&(n.domChanged||n.newSel&&!n.newSel.main.eq(this.view.state.selection.main))&&this.view.update([]),a}readMutation(e){let n=this.view.docView.nearest(e.target);if(!n||n.ignoreMutation(e))return null;if(n.markDirty(e.type=="attributes"),e.type=="attributes"&&(n.flags|=4),e.type=="childList"){let i=G3(n,e.previousSibling||e.target.previousSibling,-1),a=G3(n,e.nextSibling||e.target.nextSibling,1);return{from:i?n.posAfter(i):n.posAtStart,to:a?n.posBefore(a):n.posAtEnd,typeOver:!1}}else return e.type=="characterData"?{from:n.posAtStart,to:n.posAtEnd,typeOver:e.target.nodeValue==e.oldValue}:null}setWindow(e){e!=this.win&&(this.removeWindowListeners(this.win),this.win=e,this.addWindowListeners(this.win))}addWindowListeners(e){e.addEventListener("resize",this.onResize),this.printQuery?this.printQuery.addEventListener?this.printQuery.addEventListener("change",this.onPrint):this.printQuery.addListener(this.onPrint):e.addEventListener("beforeprint",this.onPrint),e.addEventListener("scroll",this.onScroll),e.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(e){e.removeEventListener("scroll",this.onScroll),e.removeEventListener("resize",this.onResize),this.printQuery?this.printQuery.removeEventListener?this.printQuery.removeEventListener("change",this.onPrint):this.printQuery.removeListener(this.onPrint):e.removeEventListener("beforeprint",this.onPrint),e.document.removeEventListener("selectionchange",this.onSelectionChange)}update(e){this.editContext&&(this.editContext.update(e),e.startState.facet(tf)!=e.state.facet(tf)&&(e.view.contentDOM.editContext=e.state.facet(tf)?this.editContext.editContext:null))}destroy(){var e,n,i;this.stop(),(e=this.intersection)===null||e===void 0||e.disconnect(),(n=this.gapIntersection)===null||n===void 0||n.disconnect(),(i=this.resizeScroll)===null||i===void 0||i.disconnect();for(let a of this.scrollTargets)a.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey),this.editContext&&(this.view.contentDOM.editContext=null,this.editContext.destroy())}}function G3(t,e,n){for(;e;){let i=Fr.get(e);if(i&&i.parent==t)return i;let a=e.parentNode;e=a!=t.dom?a:n>0?e.nextSibling:e.previousSibling}return null}function K3(t,e){let n=e.startContainer,i=e.startOffset,a=e.endContainer,o=e.endOffset,r=t.docView.domAtPos(t.state.selection.main.anchor);return Bv(r.node,r.offset,a,o)&&([n,i,a,o]=[a,o,n,i]),{anchorNode:n,anchorOffset:i,focusNode:a,focusOffset:o}}function nye(t,e){if(e.getComposedRanges){let a=e.getComposedRanges(t.root)[0];if(a)return K3(t,a)}let n=null;function i(a){a.preventDefault(),a.stopImmediatePropagation(),n=a.getTargetRanges()[0]}return t.contentDOM.addEventListener("beforeinput",i,!0),t.dom.ownerDocument.execCommand("indent"),t.contentDOM.removeEventListener("beforeinput",i,!0),n?K3(t,n):null}class iye{constructor(e){this.from=0,this.to=0,this.pendingContextChange=null,this.handlers=Object.create(null),this.resetRange(e.state);let n=this.editContext=new window.EditContext({text:e.state.doc.sliceString(this.from,this.to),selectionStart:this.toContextPos(Math.max(this.from,Math.min(this.to,e.state.selection.main.anchor))),selectionEnd:this.toContextPos(e.state.selection.main.head)});this.handlers.textupdate=i=>{let{anchor:a}=e.state.selection.main,o={from:this.toEditorPos(i.updateRangeStart),to:this.toEditorPos(i.updateRangeEnd),insert:fr.of(i.text.split(` -`))};o.from==this.from&&athis.to&&(o.to=a),!(o.from==o.to&&!o.insert.length)&&(this.pendingContextChange=o,e.state.readOnly||Tj(e,o,Ve.single(this.toEditorPos(i.selectionStart),this.toEditorPos(i.selectionEnd))),this.pendingContextChange&&(this.revertPending(e.state),this.setSelection(e.state)))},this.handlers.characterboundsupdate=i=>{let a=[],o=null;for(let r=this.toEditorPos(i.rangeStart),s=this.toEditorPos(i.rangeEnd);r{let a=[];for(let o of i.getTextFormats()){let r=o.underlineStyle,s=o.underlineThickness;if(r!="None"&&s!="None"){let c=`text-decoration: underline ${r=="Dashed"?"dashed ":r=="Squiggle"?"wavy ":""}${s=="Thin"?1:2}px`;a.push(St.mark({attributes:{style:c}}).range(this.toEditorPos(o.rangeStart),this.toEditorPos(o.rangeEnd)))}}e.dispatch({effects:iG.of(St.set(a))})},this.handlers.compositionstart=()=>{e.inputState.composing<0&&(e.inputState.composing=0,e.inputState.compositionFirstChange=!0)},this.handlers.compositionend=()=>{e.inputState.composing=-1,e.inputState.compositionFirstChange=null};for(let i in this.handlers)n.addEventListener(i,this.handlers[i]);this.measureReq={read:i=>{this.editContext.updateControlBounds(i.contentDOM.getBoundingClientRect());let a=CP(i.root);a&&a.rangeCount&&this.editContext.updateSelectionBounds(a.getRangeAt(0).getBoundingClientRect())}}}applyEdits(e){let n=0,i=!1,a=this.pendingContextChange;return e.changes.iterChanges((o,r,s,c,l)=>{if(i)return;let u=l.length-(r-o);if(a&&r>=a.to)if(a.from==o&&a.to==r&&a.insert.eq(l)){a=this.pendingContextChange=null,n+=u,this.to+=u;return}else a=null,this.revertPending(e.state);if(o+=n,r+=n,r<=this.from)this.from+=u,this.to+=u;else if(othis.to||this.to-this.from+l.length>3e4){i=!0;return}this.editContext.updateText(this.toContextPos(o),this.toContextPos(r),l.toString()),this.to+=u}n+=u}),a&&!i&&this.revertPending(e.state),!i}update(e){let n=this.pendingContextChange;!this.applyEdits(e)||!this.rangeIsValid(e.state)?(this.pendingContextChange=null,this.resetRange(e.state),this.editContext.updateText(0,this.editContext.text.length,e.state.doc.sliceString(this.from,this.to)),this.setSelection(e.state)):(e.docChanged||e.selectionSet||n)&&this.setSelection(e.state),(e.geometryChanged||e.docChanged||e.selectionSet)&&e.view.requestMeasure(this.measureReq)}resetRange(e){let{head:n}=e.selection.main;this.from=Math.max(0,n-1e4),this.to=Math.min(e.doc.length,n+1e4)}revertPending(e){let n=this.pendingContextChange;this.pendingContextChange=null,this.editContext.updateText(this.toContextPos(n.from),this.toContextPos(n.from+n.insert.length),e.doc.sliceString(n.from,n.to))}setSelection(e){let{main:n}=e.selection,i=this.toContextPos(Math.max(this.from,Math.min(this.to,n.anchor))),a=this.toContextPos(n.head);(this.editContext.selectionStart!=i||this.editContext.selectionEnd!=a)&&this.editContext.updateSelection(i,a)}rangeIsValid(e){let{head:n}=e.selection.main;return!(this.from>0&&n-this.from<500||this.to1e4*3)}toEditorPos(e){return e+this.from}toContextPos(e){return e-this.from}destroy(){for(let e in this.handlers)this.editContext.removeEventListener(e,this.handlers[e])}}class nt{get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return this.inputState.composing>0}get compositionStarted(){return this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}constructor(e={}){var n;this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.className="cm-announced",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM),e.parent&&e.parent.appendChild(this.dom);let{dispatch:i}=e;this.dispatchTransactions=e.dispatchTransactions||i&&(a=>a.forEach(o=>i(o,this)))||(a=>this.update(a)),this.dispatch=this.dispatch.bind(this),this._root=e.root||zde(e.parent)||document,this.viewState=new W3(e.state||or.create(e)),e.scrollTo&&e.scrollTo.is(tw)&&(this.viewState.scrollTarget=e.scrollTo.value.clip(this.viewState.state)),this.plugins=this.state.facet(yv).map(a=>new Rk(a));for(let a of this.plugins)a.update(this);this.observer=new rye(this),this.inputState=new xme(this),this.inputState.ensureHandlers(this.plugins),this.docView=new x3(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure(),!((n=document.fonts)===null||n===void 0)&&n.ready&&document.fonts.ready.then(()=>this.requestMeasure())}dispatch(...e){let n=e.length==1&&e[0]instanceof oi?e:e.length==1&&Array.isArray(e[0])?e[0]:[this.state.update(...e)];this.dispatchTransactions(n,this)}update(e){if(this.updateState!=0)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");let n=!1,i=!1,a,o=this.state;for(let h of e){if(h.startState!=o)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");o=h.state}if(this.destroyed){this.viewState.state=o;return}let r=this.hasFocus,s=0,c=null;e.some(h=>h.annotation(vG))?(this.inputState.notifiedFocused=r,s=1):r!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=r,c=PG(o,r),c||(s=1));let l=this.observer.delayedAndroidKey,u=null;if(l?(this.observer.clearDelayedAndroidKey(),u=this.observer.readChange(),(u&&!this.state.doc.eq(o.doc)||!this.state.selection.eq(o.selection))&&(u=null)):this.observer.clear(),o.facet(or.phrases)!=this.state.facet(or.phrases))return this.setState(o);a=NA.create(this,o,e),a.flags|=s;let f=this.viewState.scrollTarget;try{this.updateState=2;for(let h of e){if(f&&(f=f.map(h.changes)),h.scrollIntoView){let{main:d}=h.state.selection;f=new tm(d.empty?d:Ve.cursor(d.head,d.head>d.anchor?-1:1))}for(let d of h.effects)d.is(tw)&&(f=d.value.clip(this.state))}this.viewState.update(a,f),this.bidiCache=FA.update(this.bidiCache,a.changes),a.empty||(this.updatePlugins(a),this.inputState.update(a)),n=this.docView.update(a),this.state.facet(gv)!=this.styleModules&&this.mountStyles(),i=this.updateAttrs(),this.showAnnouncements(e),this.docView.updateSelection(n,e.some(h=>h.isUserEvent("select.pointer")))}finally{this.updateState=0}if(a.startState.facet(ow)!=a.state.facet(ow)&&(this.viewState.mustMeasureContent=!0),(n||i||f||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),n&&this.docViewUpdate(),!a.empty)for(let h of this.state.facet(W2))try{h(a)}catch(d){ga(this.state,d,"update listener")}(c||u)&&Promise.resolve().then(()=>{c&&this.state==c.startState&&this.dispatch(c),u&&!pG(this,u)&&l.force&&em(this.contentDOM,l.key,l.keyCode)})}setState(e){if(this.updateState!=0)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed){this.viewState.state=e;return}this.updateState=2;let n=this.hasFocus;try{for(let i of this.plugins)i.destroy(this);this.viewState=new W3(e),this.plugins=e.facet(yv).map(i=>new Rk(i)),this.pluginMap.clear();for(let i of this.plugins)i.update(this);this.docView.destroy(),this.docView=new x3(this),this.inputState.ensureHandlers(this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}n&&this.focus(),this.requestMeasure()}updatePlugins(e){let n=e.startState.facet(yv),i=e.state.facet(yv);if(n!=i){let a=[];for(let o of i){let r=n.indexOf(o);if(r<0)a.push(new Rk(o));else{let s=this.plugins[r];s.mustUpdate=e,a.push(s)}}for(let o of this.plugins)o.mustUpdate!=e&&o.destroy(this);this.plugins=a,this.pluginMap.clear()}else for(let a of this.plugins)a.mustUpdate=e;for(let a=0;a-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.observer.delayedAndroidKey){this.measureScheduled=-1,this.requestMeasure();return}this.measureScheduled=0,e&&this.observer.forceFlush();let n=null,i=this.scrollDOM,a=i.scrollTop*this.scaleY,{scrollAnchorPos:o,scrollAnchorHeight:r}=this.viewState;Math.abs(a-this.viewState.scrollTop)>1&&(r=-1),this.viewState.scrollAnchorHeight=-1;try{for(let s=0;;s++){if(r<0)if(C7(i))o=-1,r=this.viewState.heightMap.height;else{let d=this.viewState.scrollAnchorAt(a);o=d.from,r=d.top}this.updateState=1;let c=this.viewState.measure(this);if(!c&&!this.measureRequests.length&&this.viewState.scrollTarget==null)break;if(s>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let l=[];c&4||([this.measureRequests,l]=[l,this.measureRequests]);let u=l.map(d=>{try{return d.read(this)}catch(m){return ga(this.state,m),Y3}}),f=NA.create(this,this.state,[]),h=!1;f.flags|=c,n?n.flags|=c:n=f,this.updateState=2,f.empty||(this.updatePlugins(f),this.inputState.update(f),this.updateAttrs(),h=this.docView.update(f),h&&this.docViewUpdate());for(let d=0;d1||m<-1){a=a+m,i.scrollTop=a/this.scaleY,r=-1;continue}}break}}}finally{this.updateState=0,this.measureScheduled=-1}if(n&&!n.empty)for(let s of this.state.facet(W2))s(n)}get themeClasses(){return J2+" "+(this.state.facet(Y2)?AG:$G)+" "+this.state.facet(ow)}updateAttrs(){let e=J3(this,aG,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),n={spellcheck:"false",autocorrect:"off",autocapitalize:"off",translate:"no",contenteditable:this.state.facet(tf)?"true":"false",class:"cm-content",style:`${lt.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(n["aria-readonly"]="true"),J3(this,Ij,n);let i=this.observer.ignore(()=>{let a=F2(this.contentDOM,this.contentAttrs,n),o=F2(this.dom,this.editorAttrs,e);return a||o});return this.editorAttrs=e,this.contentAttrs=n,i}showAnnouncements(e){let n=!0;for(let i of e)for(let a of i.effects)if(a.is(nt.announce)){n&&(this.announceDOM.textContent=""),n=!1;let o=this.announceDOM.appendChild(document.createElement("div"));o.textContent=a.value}}mountStyles(){this.styleModules=this.state.facet(gv);let e=this.state.facet(nt.cspNonce);Cf.mount(this.root,this.styleModules.concat(eye).reverse(),e?{nonce:e}:void 0)}readMeasured(){if(this.updateState==2)throw new Error("Reading the editor layout isn't allowed during an update");this.updateState==0&&this.measureScheduled>-1&&this.measure(!1)}requestMeasure(e){if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame(()=>this.measure())),e){if(this.measureRequests.indexOf(e)>-1)return;if(e.key!=null){for(let n=0;ni.spec==e)||null),n&&n.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}get scaleX(){return this.viewState.scaleX}get scaleY(){return this.viewState.scaleY}elementAtHeight(e){return this.readMeasured(),this.viewState.elementAtHeight(e)}lineBlockAtHeight(e){return this.readMeasured(),this.viewState.lineBlockAtHeight(e)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(e){return this.viewState.lineBlockAt(e)}get contentHeight(){return this.viewState.contentHeight}moveByChar(e,n,i){return Lk(this,e,I3(this,e,n,i))}moveByGroup(e,n){return Lk(this,e,I3(this,e,n,i=>gme(this,e.head,i)))}visualLineSide(e,n){let i=this.bidiSpans(e),a=this.textDirectionAt(e.from),o=i[n?i.length-1:0];return Ve.cursor(o.side(n,a)+e.from,o.forward(!n,a)?1:-1)}moveToLineBoundary(e,n,i=!0){return yme(this,e,n,i)}moveVertically(e,n,i){return Lk(this,e,vme(this,e,n,i))}domAtPos(e){return this.docView.domAtPos(e)}posAtDOM(e,n=0){return this.docView.posFromDOM(e,n)}posAtCoords(e,n=!0){return this.readMeasured(),fG(this,e,n)}coordsAtPos(e,n=1){this.readMeasured();let i=this.docView.coordsAt(e,n);if(!i||i.left==i.right)return i;let a=this.state.doc.lineAt(e),o=this.bidiSpans(a),r=o[pf.find(o,e-a.from,-1,n)];return ob(i,r.dir==rn.LTR==n>0)}coordsForChar(e){return this.readMeasured(),this.docView.coordsForChar(e)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(e){return!this.state.facet(tG)||ethis.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(e))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(e){if(e.length>aye)return G7(e.length);let n=this.textDirectionAt(e.from),i;for(let o of this.bidiCache)if(o.from==e.from&&o.dir==n&&(o.fresh||H7(o.isolates,i=_3(this,e))))return o.order;i||(i=_3(this,e));let a=eme(e.text,n,i);return this.bidiCache.push(new FA(e.from,e.to,n,i,!0,a)),a}get hasFocus(){var e;return(this.dom.ownerDocument.hasFocus()||lt.safari&&((e=this.inputState)===null||e===void 0?void 0:e.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore(()=>{E7(this.contentDOM),this.docView.updateSelection()})}setRoot(e){this._root!=e&&(this._root=e,this.observer.setWindow((e.nodeType==9?e:e.ownerDocument).defaultView||window),this.mountStyles())}destroy(){this.root.activeElement==this.contentDOM&&this.contentDOM.blur();for(let e of this.plugins)e.destroy(this);this.plugins=[],this.inputState.destroy(),this.docView.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(e,n={}){return tw.of(new tm(typeof e=="number"?Ve.cursor(e):e,n.y,n.x,n.yMargin,n.xMargin))}scrollSnapshot(){let{scrollTop:e,scrollLeft:n}=this.scrollDOM,i=this.viewState.scrollAnchorAt(e);return tw.of(new tm(Ve.cursor(i.from),"start","start",i.top-e,n,!0))}setTabFocusMode(e){e==null?this.inputState.tabFocusMode=this.inputState.tabFocusMode<0?0:-1:typeof e=="boolean"?this.inputState.tabFocusMode=e?0:-1:this.inputState.tabFocusMode!=0&&(this.inputState.tabFocusMode=Date.now()+e)}static domEventHandlers(e){return xn.define(()=>({}),{eventHandlers:e})}static domEventObservers(e){return xn.define(()=>({}),{eventObservers:e})}static theme(e,n){let i=Cf.newName(),a=[ow.of(i),gv.of(Q2(`.${i}`,e))];return n&&n.dark&&a.push(Y2.of(!0)),a}static baseTheme(e){return $h.lowest(gv.of(Q2("."+J2,e,SG)))}static findFromDOM(e){var n;let i=e.querySelector(".cm-content"),a=i&&Fr.get(i)||Fr.get(e);return((n=a==null?void 0:a.rootView)===null||n===void 0?void 0:n.view)||null}}nt.styleModule=gv;nt.inputHandler=X7;nt.clipboardInputFilter=Oj;nt.clipboardOutputFilter=Ej;nt.scrollHandler=nG;nt.focusChangeEffect=eG;nt.perLineTextDirection=tG;nt.exceptionSink=Z7;nt.updateListener=W2;nt.editable=tf;nt.mouseSelectionStyle=Q7;nt.dragMovesSelection=J7;nt.clickAddsSelectionRange=Y7;nt.decorations=TP;nt.outerDecorations=sG;nt.atomicRanges=Cj;nt.bidiIsolatedRanges=oG;nt.scrollMargins=lG;nt.darkTheme=Y2;nt.cspNonce=st.define({combine:t=>t.length?t[0]:""});nt.contentAttributes=Ij;nt.editorAttributes=aG;nt.lineWrapping=nt.contentAttributes.of({class:"cm-lineWrapping"});nt.announce=Nt.define();const aye=4096,Y3={};class FA{constructor(e,n,i,a,o,r){this.from=e,this.to=n,this.dir=i,this.isolates=a,this.fresh=o,this.order=r}static update(e,n){if(n.empty&&!e.some(o=>o.fresh))return e;let i=[],a=e.length?e[e.length-1].dir:rn.LTR;for(let o=Math.max(0,e.length-10);o=0;a--){let o=i[a],r=typeof o=="function"?o(t):o;r&&L2(r,n)}return n}const sye=lt.mac?"mac":lt.windows?"win":lt.linux?"linux":"key";function oye(t,e){const n=t.split(/-(?!$)/);let i=n[n.length-1];i=="Space"&&(i=" ");let a,o,r,s;for(let c=0;ci.concat(a),[]))),n}function cye(t,e,n){return xG(_G(t.state),e,t,n)}let rf=null;const uye=4e3;function fye(t,e=sye){let n=Object.create(null),i=Object.create(null),a=(r,s)=>{let c=i[r];if(c==null)i[r]=s;else if(c!=s)throw new Error("Key binding "+r+" is used both as a regular binding and as a multi-stroke prefix")},o=(r,s,c,l,u)=>{var f,h;let d=n[r]||(n[r]=Object.create(null)),m=s.split(/ (?!$)/).map(v=>oye(v,e));for(let v=1;v{let _=rf={view:A,prefix:P,scope:r};return setTimeout(()=>{rf==_&&(rf=null)},uye),!0}]})}let g=m.join(" ");a(g,!1);let b=d[g]||(d[g]={preventDefault:!1,stopPropagation:!1,run:((h=(f=d._any)===null||f===void 0?void 0:f.run)===null||h===void 0?void 0:h.slice())||[]});c&&b.run.push(c),l&&(b.preventDefault=!0),u&&(b.stopPropagation=!0)};for(let r of t){let s=r.scope?r.scope.split(" "):["editor"];if(r.any)for(let l of s){let u=n[l]||(n[l]=Object.create(null));u._any||(u._any={preventDefault:!1,stopPropagation:!1,run:[]});let{any:f}=r;for(let h in u)u[h].run.push(d=>f(d,Z2))}let c=r[e]||r.key;if(c)for(let l of s)o(l,c,r.run,r.preventDefault,r.stopPropagation),r.shift&&o(l,"Shift-"+c,r.shift,r.preventDefault,r.stopPropagation)}return n}let Z2=null;function xG(t,e,n,i){Z2=e;let a=Rde(e),o=ki(a,0),r=Zs(o)==a.length&&a!=" ",s="",c=!1,l=!1,u=!1;rf&&rf.view==n&&rf.scope==i&&(s=rf.prefix+" ",dG.indexOf(e.keyCode)<0&&(l=!0,rf=null));let f=new Set,h=b=>{if(b){for(let v of b.run)if(!f.has(v)&&(f.add(v),v(n)))return b.stopPropagation&&(u=!0),!0;b.preventDefault&&(b.stopPropagation&&(u=!0),l=!0)}return!1},d=t[i],m,g;return d&&(h(d[s+lw(a,e,!r)])?c=!0:r&&(e.altKey||e.metaKey||e.ctrlKey)&&!(lt.windows&&e.ctrlKey&&e.altKey)&&(m=Tf[e.keyCode])&&m!=a?(h(d[s+lw(m,e,!0)])||e.shiftKey&&(g=IP[e.keyCode])!=a&&g!=m&&h(d[s+lw(g,e,!1)]))&&(c=!0):r&&e.shiftKey&&h(d[s+lw(a,e,!0)])&&(c=!0),!c&&h(d._any)&&(c=!0)),l&&(c=!0),c&&u&&e.stopPropagation(),Z2=null,c}class ub{constructor(e,n,i,a,o){this.className=e,this.left=n,this.top=i,this.width=a,this.height=o}draw(){let e=document.createElement("div");return e.className=this.className,this.adjust(e),e}update(e,n){return n.className!=this.className?!1:(this.adjust(e),!0)}adjust(e){e.style.left=this.left+"px",e.style.top=this.top+"px",this.width!=null&&(e.style.width=this.width+"px"),e.style.height=this.height+"px"}eq(e){return this.left==e.left&&this.top==e.top&&this.width==e.width&&this.height==e.height&&this.className==e.className}static forRange(e,n,i){if(i.empty){let a=e.coordsAtPos(i.head,i.assoc||1);if(!a)return[];let o=DG(e);return[new ub(n,a.left-o.left,a.top-o.top,null,a.bottom-a.top)]}else return pye(e,n,i)}}function DG(t){let e=t.scrollDOM.getBoundingClientRect();return{left:(t.textDirection==rn.LTR?e.left:e.right-t.scrollDOM.clientWidth*t.scaleX)-t.scrollDOM.scrollLeft*t.scaleX,top:e.top-t.scrollDOM.scrollTop*t.scaleY}}function Z3(t,e,n,i){let a=t.coordsAtPos(e,n*2);if(!a)return i;let o=t.dom.getBoundingClientRect(),r=(a.top+a.bottom)/2,s=t.posAtCoords({x:o.left+1,y:r}),c=t.posAtCoords({x:o.right-1,y:r});return s==null||c==null?i:{from:Math.max(i.from,Math.min(s,c)),to:Math.min(i.to,Math.max(s,c))}}function pye(t,e,n){if(n.to<=t.viewport.from||n.from>=t.viewport.to)return[];let i=Math.max(n.from,t.viewport.from),a=Math.min(n.to,t.viewport.to),o=t.textDirection==rn.LTR,r=t.contentDOM,s=r.getBoundingClientRect(),c=DG(t),l=r.querySelector(".cm-line"),u=l&&window.getComputedStyle(l),f=s.left+(u?parseInt(u.paddingLeft)+Math.min(0,parseInt(u.textIndent)):0),h=s.right-(u?parseInt(u.paddingRight):0),d=G2(t,i),m=G2(t,a),g=d.type==ba.Text?d:null,b=m.type==ba.Text?m:null;if(g&&(t.lineWrapping||d.widgetLineBreaks)&&(g=Z3(t,i,1,g)),b&&(t.lineWrapping||m.widgetLineBreaks)&&(b=Z3(t,a,-1,b)),g&&b&&g.from==b.from&&g.to==b.to)return P(A(n.from,n.to,g));{let x=g?A(n.from,null,g):_(d,!1),N=b?A(null,n.to,b):_(m,!0),j=[];return(g||d).to<(b||m).from-(g&&b?1:0)||d.widgetLineBreaks>1&&x.bottom+t.defaultLineHeight/2F&&D.from=C)break;U>M&&q(Math.max(ie,M),x==null&&ie<=F,Math.min(U,C),N==null&&U>=S,X.dir)}if(M=H.to+1,M>=C)break}return L.length==0&&q(F,x==null,S,N==null,t.textDirection),{top:I,bottom:E,horizontal:L}}function _(x,N){let j=s.top+(N?x.top:x.bottom);return{top:j,bottom:j,horizontal:[]}}}function hye(t,e){return t.constructor==e.constructor&&t.eq(e)}class dye{constructor(e,n){this.view=e,this.layer=n,this.drawn=[],this.scaleX=1,this.scaleY=1,this.measureReq={read:this.measure.bind(this),write:this.draw.bind(this)},this.dom=e.scrollDOM.appendChild(document.createElement("div")),this.dom.classList.add("cm-layer"),n.above&&this.dom.classList.add("cm-layer-above"),n.class&&this.dom.classList.add(n.class),this.scale(),this.dom.setAttribute("aria-hidden","true"),this.setOrder(e.state),e.requestMeasure(this.measureReq),n.mount&&n.mount(this.dom,e)}update(e){e.startState.facet(A$)!=e.state.facet(A$)&&this.setOrder(e.state),(this.layer.update(e,this.dom)||e.geometryChanged)&&(this.scale(),e.view.requestMeasure(this.measureReq))}docViewUpdate(e){this.layer.updateOnDocViewUpdate!==!1&&e.requestMeasure(this.measureReq)}setOrder(e){let n=0,i=e.facet(A$);for(;n!hye(n,this.drawn[i]))){let n=this.dom.firstChild,i=0;for(let a of e)a.update&&n&&a.constructor&&this.drawn[i].constructor&&a.update(n,this.drawn[i])?(n=n.nextSibling,i++):this.dom.insertBefore(a.draw(),n);for(;n;){let a=n.nextSibling;n.remove(),n=a}this.drawn=e}}destroy(){this.layer.destroy&&this.layer.destroy(this.dom,this.view),this.dom.remove()}}const A$=st.define();function kG(t){return[xn.define(e=>new dye(e,t)),A$.of(t)]}const OG=!lt.ios,jP=st.define({combine(t){return sl(t,{cursorBlinkRate:1200,drawRangeCursor:!0},{cursorBlinkRate:(e,n)=>Math.min(e,n),drawRangeCursor:(e,n)=>e||n})}});function mye(t={}){return[jP.of(t),yye,gye,vye,rG.of(!0)]}function EG(t){return t.startState.facet(jP)!=t.state.facet(jP)}const yye=kG({above:!0,markers(t){let{state:e}=t,n=e.facet(jP),i=[];for(let a of e.selection.ranges){let o=a==e.selection.main;if(a.empty?!o||OG:n.drawRangeCursor){let r=o?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary",s=a.empty?a:Ve.cursor(a.head,a.head>a.anchor?-1:1);for(let c of ub.forRange(t,r,s))i.push(c)}}return i},update(t,e){t.transactions.some(i=>i.selection)&&(e.style.animationName=e.style.animationName=="cm-blink"?"cm-blink2":"cm-blink");let n=EG(t);return n&&X3(t.state,e),t.docChanged||t.selectionSet||n},mount(t,e){X3(e.state,t)},class:"cm-cursorLayer"});function X3(t,e){e.style.animationDuration=t.facet(jP).cursorBlinkRate+"ms"}const gye=kG({above:!1,markers(t){return t.state.selection.ranges.map(e=>e.empty?[]:ub.forRange(t,"cm-selectionBackground",e)).reduce((e,n)=>e.concat(n))},update(t,e){return t.docChanged||t.selectionSet||t.viewportChanged||EG(t)},class:"cm-selectionLayer"}),X2={".cm-line":{"& ::selection, &::selection":{backgroundColor:"transparent !important"}},".cm-content":{"& :focus":{caretColor:"initial !important","&::selection, & ::selection":{backgroundColor:"Highlight !important"}}}};OG&&(X2[".cm-line"].caretColor=X2[".cm-content"].caretColor="transparent !important");const vye=$h.highest(nt.theme(X2)),IG=Nt.define({map(t,e){return t==null?null:e.mapPos(t)}}),bv=ci.define({create(){return null},update(t,e){return t!=null&&(t=e.changes.mapPos(t)),e.effects.reduce((n,i)=>i.is(IG)?i.value:n,t)}}),Pye=xn.fromClass(class{constructor(t){this.view=t,this.cursor=null,this.measureReq={read:this.readPos.bind(this),write:this.drawCursor.bind(this)}}update(t){var e;let n=t.state.field(bv);n==null?this.cursor!=null&&((e=this.cursor)===null||e===void 0||e.remove(),this.cursor=null):(this.cursor||(this.cursor=this.view.scrollDOM.appendChild(document.createElement("div")),this.cursor.className="cm-dropCursor"),(t.startState.field(bv)!=n||t.docChanged||t.geometryChanged)&&this.view.requestMeasure(this.measureReq))}readPos(){let{view:t}=this,e=t.state.field(bv),n=e!=null&&t.coordsAtPos(e);if(!n)return null;let i=t.scrollDOM.getBoundingClientRect();return{left:n.left-i.left+t.scrollDOM.scrollLeft*t.scaleX,top:n.top-i.top+t.scrollDOM.scrollTop*t.scaleY,height:n.bottom-n.top}}drawCursor(t){if(this.cursor){let{scaleX:e,scaleY:n}=this.view;t?(this.cursor.style.left=t.left/e+"px",this.cursor.style.top=t.top/n+"px",this.cursor.style.height=t.height/n+"px"):this.cursor.style.left="-100000px"}}destroy(){this.cursor&&this.cursor.remove()}setDropPos(t){this.view.state.field(bv)!=t&&this.view.dispatch({effects:IG.of(t)})}},{eventObservers:{dragover(t){this.setDropPos(this.view.posAtCoords({x:t.clientX,y:t.clientY}))},dragleave(t){(t.target==this.view.contentDOM||!this.view.contentDOM.contains(t.relatedTarget))&&this.setDropPos(null)},dragend(){this.setDropPos(null)},drop(){this.setDropPos(null)}}});function bye(){return[bv,Pye]}function e9(t,e,n,i,a){e.lastIndex=0;for(let o=t.iterRange(n,i),r=n,s;!o.next().done;r+=o.value.length)if(!o.lineBreak)for(;s=e.exec(o.value);)a(r+s.index,s)}function wye(t,e){let n=t.visibleRanges;if(n.length==1&&n[0].from==t.viewport.from&&n[0].to==t.viewport.to)return n;let i=[];for(let{from:a,to:o}of n)a=Math.max(t.state.doc.lineAt(a).from,a-e),o=Math.min(t.state.doc.lineAt(o).to,o+e),i.length&&i[i.length-1].to>=a?i[i.length-1].to=o:i.push({from:a,to:o});return i}class $ye{constructor(e){const{regexp:n,decoration:i,decorate:a,boundary:o,maxLength:r=1e3}=e;if(!n.global)throw new RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");if(this.regexp=n,a)this.addMatch=(s,c,l,u)=>a(u,l,l+s[0].length,s,c);else if(typeof i=="function")this.addMatch=(s,c,l,u)=>{let f=i(s,c,l);f&&u(l,l+s[0].length,f)};else if(i)this.addMatch=(s,c,l,u)=>u(l,l+s[0].length,i);else throw new RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");this.boundary=o,this.maxLength=r}createDeco(e){let n=new If,i=n.add.bind(n);for(let{from:a,to:o}of wye(e,this.maxLength))e9(e.state.doc,this.regexp,a,o,(r,s)=>this.addMatch(s,e,r,i));return n.finish()}updateDeco(e,n){let i=1e9,a=-1;return e.docChanged&&e.changes.iterChanges((o,r,s,c)=>{c>e.view.viewport.from&&s1e3?this.createDeco(e.view):a>-1?this.updateRange(e.view,n.map(e.changes),i,a):n}updateRange(e,n,i,a){for(let o of e.visibleRanges){let r=Math.max(o.from,i),s=Math.min(o.to,a);if(s>r){let c=e.state.doc.lineAt(r),l=c.toc.from;r--)if(this.boundary.test(c.text[r-1-c.from])){u=r;break}for(;sh.push(v.range(g,b));if(c==l)for(this.regexp.lastIndex=u-c.from;(d=this.regexp.exec(c.text))&&d.indexthis.addMatch(b,e,g,m));n=n.update({filterFrom:u,filterTo:f,filter:(g,b)=>gf,add:h})}}return n}}const eC=/x/.unicode!=null?"gu":"g",Aye=new RegExp(`[\0-\b ---Ÿ­؜​‎‏\u2028\u2029‭‮⁦⁧⁩\uFEFF-]`,eC),Sye={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"};let zk=null;function _ye(){var t;if(zk==null&&typeof document<"u"&&document.body){let e=document.body.style;zk=((t=e.tabSize)!==null&&t!==void 0?t:e.MozTabSize)!=null}return zk||!1}const S$=st.define({combine(t){let e=sl(t,{render:null,specialChars:Aye,addSpecialChars:null});return(e.replaceTabs=!_ye())&&(e.specialChars=new RegExp(" |"+e.specialChars.source,eC)),e.addSpecialChars&&(e.specialChars=new RegExp(e.specialChars.source+"|"+e.addSpecialChars.source,eC)),e}});function xye(t={}){return[S$.of(t),Dye()]}let t9=null;function Dye(){return t9||(t9=xn.fromClass(class{constructor(t){this.view=t,this.decorations=St.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(t.state.facet(S$)),this.decorations=this.decorator.createDeco(t)}makeDecorator(t){return new $ye({regexp:t.specialChars,decoration:(e,n,i)=>{let{doc:a}=n.state,o=ki(e[0],0);if(o==9){let r=a.lineAt(i),s=n.state.tabSize,c=Ig(r.text,s,i-r.from);return St.replace({widget:new Iye((s-c%s)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[o]||(this.decorationCache[o]=St.replace({widget:new Eye(t,o)}))},boundary:t.replaceTabs?void 0:/[^]/})}update(t){let e=t.state.facet(S$);t.startState.facet(S$)!=e?(this.decorator=this.makeDecorator(e),this.decorations=this.decorator.createDeco(t.view)):this.decorations=this.decorator.updateDeco(t,this.decorations)}},{decorations:t=>t.decorations}))}const kye="•";function Oye(t){return t>=32?kye:t==10?"␤":String.fromCharCode(9216+t)}class Eye extends yu{constructor(e,n){super(),this.options=e,this.code=n}eq(e){return e.code==this.code}toDOM(e){let n=Oye(this.code),i=e.state.phrase("Control character")+" "+(Sye[this.code]||"0x"+this.code.toString(16)),a=this.options.render&&this.options.render(this.code,i,n);if(a)return a;let o=document.createElement("span");return o.textContent=n,o.title=i,o.setAttribute("aria-label",i),o.className="cm-specialChar",o}ignoreEvent(){return!1}}class Iye extends yu{constructor(e){super(),this.width=e}eq(e){return e.width==this.width}toDOM(){let e=document.createElement("span");return e.textContent=" ",e.className="cm-tab",e.style.width=this.width+"px",e}ignoreEvent(){return!1}}function Cye(){return jye}const Tye=St.line({class:"cm-activeLine"}),jye=xn.fromClass(class{constructor(t){this.decorations=this.getDeco(t)}update(t){(t.docChanged||t.selectionSet)&&(this.decorations=this.getDeco(t.view))}getDeco(t){let e=-1,n=[];for(let i of t.state.selection.ranges){let a=t.lineBlockAt(i.head);a.from>e&&(n.push(Tye.range(a.from)),e=a.from)}return St.set(n)}},{decorations:t=>t.decorations});class Mye extends yu{constructor(e){super(),this.content=e}toDOM(e){let n=document.createElement("span");return n.className="cm-placeholder",n.style.pointerEvents="none",n.appendChild(typeof this.content=="string"?document.createTextNode(this.content):typeof this.content=="function"?this.content(e):this.content.cloneNode(!0)),typeof this.content=="string"?n.setAttribute("aria-label","placeholder "+this.content):n.setAttribute("aria-hidden","true"),n}coordsAt(e){let n=e.firstChild?og(e.firstChild):[];if(!n.length)return null;let i=window.getComputedStyle(e.parentNode),a=ob(n[0],i.direction!="rtl"),o=parseInt(i.lineHeight);return a.bottom-a.top>o*1.5?{left:a.left,right:a.right,top:a.top,bottom:a.top+o}:a}ignoreEvent(){return!1}}function Rye(t){return xn.fromClass(class{constructor(e){this.view=e,this.placeholder=t?St.set([St.widget({widget:new Mye(t),side:1}).range(0)]):St.none}get decorations(){return this.view.state.doc.length?St.none:this.placeholder}},{decorations:e=>e.decorations})}const tC=2e3;function Nye(t,e,n){let i=Math.min(e.line,n.line),a=Math.max(e.line,n.line),o=[];if(e.off>tC||n.off>tC||e.col<0||n.col<0){let r=Math.min(e.off,n.off),s=Math.max(e.off,n.off);for(let c=i;c<=a;c++){let l=t.doc.line(c);l.length<=s&&o.push(Ve.range(l.from+r,l.to+s))}}else{let r=Math.min(e.col,n.col),s=Math.max(e.col,n.col);for(let c=i;c<=a;c++){let l=t.doc.line(c),u=I2(l.text,r,t.tabSize,!0);if(u<0)o.push(Ve.cursor(l.to));else{let f=I2(l.text,s,t.tabSize);o.push(Ve.range(l.from+u,l.from+f))}}}return o}function Lye(t,e){let n=t.coordsAtPos(t.viewport.from);return n?Math.round(Math.abs((n.left-e)/t.defaultCharacterWidth)):-1}function r9(t,e){let n=t.posAtCoords({x:e.clientX,y:e.clientY},!1),i=t.state.doc.lineAt(n),a=n-i.from,o=a>tC?-1:a==i.length?Lye(t,e.clientX):Ig(i.text,t.state.tabSize,n-i.from);return{line:i.number,col:o,off:a}}function Fye(t,e){let n=r9(t,e),i=t.state.selection;return n?{update(a){if(a.docChanged){let o=a.changes.mapPos(a.startState.doc.line(n.line).from),r=a.state.doc.lineAt(o);n={line:r.number,col:n.col,off:Math.min(n.off,r.length)},i=i.map(a.changes)}},get(a,o,r){let s=r9(t,a);if(!s)return i;let c=Nye(t.state,n,s);return c.length?r?Ve.create(c.concat(i.ranges)):Ve.create(c):i}}:null}function qye(t){let e=n=>n.altKey&&n.button==0;return nt.mouseSelectionStyle.of((n,i)=>e(i)?Fye(n,i):null)}const zye={Alt:[18,t=>!!t.altKey],Control:[17,t=>!!t.ctrlKey],Shift:[16,t=>!!t.shiftKey],Meta:[91,t=>!!t.metaKey]},Uye={style:"cursor: crosshair"};function Bye(t={}){let[e,n]=zye[t.key||"Alt"],i=xn.fromClass(class{constructor(a){this.view=a,this.isDown=!1}set(a){this.isDown!=a&&(this.isDown=a,this.view.update([]))}},{eventObservers:{keydown(a){this.set(a.keyCode==e||n(a))},keyup(a){(a.keyCode==e||!n(a))&&this.set(!1)},mousemove(a){this.set(n(a))}}});return[i,nt.contentAttributes.of(a=>{var o;return!((o=a.plugin(i))===null||o===void 0)&&o.isDown?Uye:null})]}const U0="-10000px";class CG{constructor(e,n,i,a){this.facet=n,this.createTooltipView=i,this.removeTooltipView=a,this.input=e.state.facet(n),this.tooltips=this.input.filter(r=>r);let o=null;this.tooltipViews=this.tooltips.map(r=>o=i(r,o))}update(e,n){var i;let a=e.state.facet(this.facet),o=a.filter(c=>c);if(a===this.input){for(let c of this.tooltipViews)c.update&&c.update(e);return!1}let r=[],s=n?[]:null;for(let c=0;cn[l]=c),n.length=s.length),this.input=a,this.tooltips=o,this.tooltipViews=r,!0}}function Vye(t){let{win:e}=t;return{top:0,left:0,bottom:e.innerHeight,right:e.innerWidth}}const Uk=st.define({combine:t=>{var e,n,i;return{position:lt.ios?"absolute":((e=t.find(a=>a.position))===null||e===void 0?void 0:e.position)||"fixed",parent:((n=t.find(a=>a.parent))===null||n===void 0?void 0:n.parent)||null,tooltipSpace:((i=t.find(a=>a.tooltipSpace))===null||i===void 0?void 0:i.tooltipSpace)||Vye}}}),n9=new WeakMap,Rj=xn.fromClass(class{constructor(t){this.view=t,this.above=[],this.inView=!0,this.madeAbsolute=!1,this.lastTransaction=0,this.measureTimeout=-1;let e=t.state.facet(Uk);this.position=e.position,this.parent=e.parent,this.classes=t.themeClasses,this.createContainer(),this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this},this.resizeObserver=typeof ResizeObserver=="function"?new ResizeObserver(()=>this.measureSoon()):null,this.manager=new CG(t,a_,(n,i)=>this.createTooltip(n,i),n=>{this.resizeObserver&&this.resizeObserver.unobserve(n.dom),n.dom.remove()}),this.above=this.manager.tooltips.map(n=>!!n.above),this.intersectionObserver=typeof IntersectionObserver=="function"?new IntersectionObserver(n=>{Date.now()>this.lastTransaction-50&&n.length>0&&n[n.length-1].intersectionRatio<1&&this.measureSoon()},{threshold:[1]}):null,this.observeIntersection(),t.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}createContainer(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}observeIntersection(){if(this.intersectionObserver){this.intersectionObserver.disconnect();for(let t of this.manager.tooltipViews)this.intersectionObserver.observe(t.dom)}}measureSoon(){this.measureTimeout<0&&(this.measureTimeout=setTimeout(()=>{this.measureTimeout=-1,this.maybeMeasure()},50))}update(t){t.transactions.length&&(this.lastTransaction=Date.now());let e=this.manager.update(t,this.above);e&&this.observeIntersection();let n=e||t.geometryChanged,i=t.state.facet(Uk);if(i.position!=this.position&&!this.madeAbsolute){this.position=i.position;for(let a of this.manager.tooltipViews)a.dom.style.position=this.position;n=!0}if(i.parent!=this.parent){this.parent&&this.container.remove(),this.parent=i.parent,this.createContainer();for(let a of this.manager.tooltipViews)this.container.appendChild(a.dom);n=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);n&&this.maybeMeasure()}createTooltip(t,e){let n=t.create(this.view),i=e?e.dom:null;if(n.dom.classList.add("cm-tooltip"),t.arrow&&!n.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){let a=document.createElement("div");a.className="cm-tooltip-arrow",n.dom.appendChild(a)}return n.dom.style.position=this.position,n.dom.style.top=U0,n.dom.style.left="0px",this.container.insertBefore(n.dom,i),n.mount&&n.mount(this.view),this.resizeObserver&&this.resizeObserver.observe(n.dom),n}destroy(){var t,e,n;this.view.win.removeEventListener("resize",this.measureSoon);for(let i of this.manager.tooltipViews)i.dom.remove(),(t=i.destroy)===null||t===void 0||t.call(i);this.parent&&this.container.remove(),(e=this.resizeObserver)===null||e===void 0||e.disconnect(),(n=this.intersectionObserver)===null||n===void 0||n.disconnect(),clearTimeout(this.measureTimeout)}readMeasure(){let t=this.view.dom.getBoundingClientRect(),e=1,n=1,i=!1;if(this.position=="fixed"&&this.manager.tooltipViews.length){let{dom:a}=this.manager.tooltipViews[0];if(lt.gecko)i=a.offsetParent!=this.container.ownerDocument.body;else if(a.style.top==U0&&a.style.left=="0px"){let o=a.getBoundingClientRect();i=Math.abs(o.top+1e4)>1||Math.abs(o.left)>1}}if(i||this.position=="absolute")if(this.parent){let a=this.parent.getBoundingClientRect();a.width&&a.height&&(e=a.width/this.parent.offsetWidth,n=a.height/this.parent.offsetHeight)}else({scaleX:e,scaleY:n}=this.view.viewState);return{editor:t,parent:this.parent?this.container.getBoundingClientRect():t,pos:this.manager.tooltips.map((a,o)=>{let r=this.manager.tooltipViews[o];return r.getCoords?r.getCoords(a.pos):this.view.coordsAtPos(a.pos)}),size:this.manager.tooltipViews.map(({dom:a})=>a.getBoundingClientRect()),space:this.view.state.facet(Uk).tooltipSpace(this.view),scaleX:e,scaleY:n,makeAbsolute:i}}writeMeasure(t){var e;if(t.makeAbsolute){this.madeAbsolute=!0,this.position="absolute";for(let s of this.manager.tooltipViews)s.dom.style.position="absolute"}let{editor:n,space:i,scaleX:a,scaleY:o}=t,r=[];for(let s=0;s=Math.min(n.bottom,i.bottom)||f.rightMath.min(n.right,i.right)+.1){u.style.top=U0;continue}let d=c.arrow?l.dom.querySelector(".cm-tooltip-arrow"):null,m=d?7:0,g=h.right-h.left,b=(e=n9.get(l))!==null&&e!==void 0?e:h.bottom-h.top,v=l.offset||Hye,P=this.view.textDirection==rn.LTR,A=h.width>i.right-i.left?P?i.left:i.right-h.width:P?Math.max(i.left,Math.min(f.left-(d?14:0)+v.x,i.right-g)):Math.min(Math.max(i.left,f.left-g+(d?14:0)-v.x),i.right-g),_=this.above[s];!c.strictSide&&(_?f.top-(h.bottom-h.top)-v.yi.bottom)&&_==i.bottom-f.bottom>f.top-i.top&&(_=this.above[s]=!_);let x=(_?f.top-i.top:i.bottom-f.bottom)-m;if(xA&&I.topN&&(N=_?I.top-b-2-m:I.bottom+m+2);if(this.position=="absolute"?(u.style.top=(N-t.parent.top)/o+"px",u.style.left=(A-t.parent.left)/a+"px"):(u.style.top=N/o+"px",u.style.left=A/a+"px"),d){let I=f.left+(P?v.x:-v.x)-(A+14-7);d.style.left=I/a+"px"}l.overlap!==!0&&r.push({left:A,top:N,right:j,bottom:N+b}),u.classList.toggle("cm-tooltip-above",_),u.classList.toggle("cm-tooltip-below",!_),l.positioned&&l.positioned(t.space)}}maybeMeasure(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView&&(this.inView=this.view.inView,!this.inView)))for(let t of this.manager.tooltipViews)t.dom.style.top=U0}},{eventObservers:{scroll(){this.maybeMeasure()}}}),Wye=nt.baseTheme({".cm-tooltip":{zIndex:100,boxSizing:"border-box"},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:"7px",width:`${7*2}px`,position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:"7px solid transparent",borderRight:"7px solid transparent"},".cm-tooltip-above &":{bottom:"-7px","&:before":{borderTop:"7px solid #bbb"},"&:after":{borderTop:"7px solid #f5f5f5",bottom:"1px"}},".cm-tooltip-below &":{top:"-7px","&:before":{borderBottom:"7px solid #bbb"},"&:after":{borderBottom:"7px solid #f5f5f5",top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}}),Hye={x:0,y:0},a_=st.define({enables:[Rj,Wye]}),qA=st.define({combine:t=>t.reduce((e,n)=>e.concat(n),[])});class s_{static create(e){return new s_(e)}constructor(e){this.view=e,this.mounted=!1,this.dom=document.createElement("div"),this.dom.classList.add("cm-tooltip-hover"),this.manager=new CG(e,qA,(n,i)=>this.createHostedView(n,i),n=>n.dom.remove())}createHostedView(e,n){let i=e.create(this.view);return i.dom.classList.add("cm-tooltip-section"),this.dom.insertBefore(i.dom,n?n.dom.nextSibling:this.dom.firstChild),this.mounted&&i.mount&&i.mount(this.view),i}mount(e){for(let n of this.manager.tooltipViews)n.mount&&n.mount(e);this.mounted=!0}positioned(e){for(let n of this.manager.tooltipViews)n.positioned&&n.positioned(e)}update(e){this.manager.update(e)}destroy(){var e;for(let n of this.manager.tooltipViews)(e=n.destroy)===null||e===void 0||e.call(n)}passProp(e){let n;for(let i of this.manager.tooltipViews){let a=i[e];if(a!==void 0){if(n===void 0)n=a;else if(n!==a)return}}return n}get offset(){return this.passProp("offset")}get getCoords(){return this.passProp("getCoords")}get overlap(){return this.passProp("overlap")}get resize(){return this.passProp("resize")}}const Gye=a_.compute([qA],t=>{let e=t.facet(qA);return e.length===0?null:{pos:Math.min(...e.map(n=>n.pos)),end:Math.max(...e.map(n=>{var i;return(i=n.end)!==null&&i!==void 0?i:n.pos})),create:s_.create,above:e[0].above,arrow:e.some(n=>n.arrow)}});class Kye{constructor(e,n,i,a,o){this.view=e,this.source=n,this.field=i,this.setHover=a,this.hoverTime=o,this.hoverTimeout=-1,this.restartTimeout=-1,this.pending=null,this.lastMove={x:0,y:0,target:e.dom,time:0},this.checkHover=this.checkHover.bind(this),e.dom.addEventListener("mouseleave",this.mouseleave=this.mouseleave.bind(this)),e.dom.addEventListener("mousemove",this.mousemove=this.mousemove.bind(this))}update(){this.pending&&(this.pending=null,clearTimeout(this.restartTimeout),this.restartTimeout=setTimeout(()=>this.startHover(),20))}get active(){return this.view.state.field(this.field)}checkHover(){if(this.hoverTimeout=-1,this.active.length)return;let e=Date.now()-this.lastMove.time;es.bottom||n.xs.right+e.defaultCharacterWidth)return;let c=e.bidiSpans(e.state.doc.lineAt(a)).find(u=>u.from<=a&&u.to>=a),l=c&&c.dir==rn.RTL?-1:1;o=n.x{this.pending==s&&(this.pending=null,c&&!(Array.isArray(c)&&!c.length)&&e.dispatch({effects:this.setHover.of(Array.isArray(c)?c:[c])}))},c=>ga(e.state,c,"hover tooltip"))}else r&&!(Array.isArray(r)&&!r.length)&&e.dispatch({effects:this.setHover.of(Array.isArray(r)?r:[r])})}get tooltip(){let e=this.view.plugin(Rj),n=e?e.manager.tooltips.findIndex(i=>i.create==s_.create):-1;return n>-1?e.manager.tooltipViews[n]:null}mousemove(e){var n,i;this.lastMove={x:e.clientX,y:e.clientY,target:e.target,time:Date.now()},this.hoverTimeout<0&&(this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime));let{active:a,tooltip:o}=this;if(a.length&&o&&!Yye(o.dom,e)||this.pending){let{pos:r}=a[0]||this.pending,s=(i=(n=a[0])===null||n===void 0?void 0:n.end)!==null&&i!==void 0?i:r;(r==s?this.view.posAtCoords(this.lastMove)!=r:!Jye(this.view,r,s,e.clientX,e.clientY))&&(this.view.dispatch({effects:this.setHover.of([])}),this.pending=null)}}mouseleave(e){clearTimeout(this.hoverTimeout),this.hoverTimeout=-1;let{active:n}=this;if(n.length){let{tooltip:i}=this;i&&i.dom.contains(e.relatedTarget)?this.watchTooltipLeave(i.dom):this.view.dispatch({effects:this.setHover.of([])})}}watchTooltipLeave(e){let n=i=>{e.removeEventListener("mouseleave",n),this.active.length&&!this.view.dom.contains(i.relatedTarget)&&this.view.dispatch({effects:this.setHover.of([])})};e.addEventListener("mouseleave",n)}destroy(){clearTimeout(this.hoverTimeout),this.view.dom.removeEventListener("mouseleave",this.mouseleave),this.view.dom.removeEventListener("mousemove",this.mousemove)}}const cw=4;function Yye(t,e){let{left:n,right:i,top:a,bottom:o}=t.getBoundingClientRect(),r;if(r=t.querySelector(".cm-tooltip-arrow")){let s=r.getBoundingClientRect();a=Math.min(s.top,a),o=Math.max(s.bottom,o)}return e.clientX>=n-cw&&e.clientX<=i+cw&&e.clientY>=a-cw&&e.clientY<=o+cw}function Jye(t,e,n,i,a,o){let r=t.scrollDOM.getBoundingClientRect(),s=t.documentTop+t.documentPadding.top+t.contentHeight;if(r.left>i||r.righta||Math.min(r.bottom,s)=e&&c<=n}function Qye(t,e={}){let n=Nt.define(),i=ci.define({create(){return[]},update(a,o){if(a.length&&(e.hideOnChange&&(o.docChanged||o.selection)?a=[]:e.hideOn&&(a=a.filter(r=>!e.hideOn(o,r))),o.docChanged)){let r=[];for(let s of a){let c=o.changes.mapPos(s.pos,-1,ma.TrackDel);if(c!=null){let l=Object.assign(Object.create(null),s);l.pos=c,l.end!=null&&(l.end=o.changes.mapPos(l.end)),r.push(l)}}a=r}for(let r of o.effects)r.is(n)&&(a=r.value),r.is(Zye)&&(a=[]);return a},provide:a=>qA.from(a)});return{active:i,extension:[i,xn.define(a=>new Kye(a,t,i,n,e.hoverTime||300)),Gye]}}function TG(t,e){let n=t.plugin(Rj);if(!n)return null;let i=n.manager.tooltips.indexOf(e);return i<0?null:n.manager.tooltipViews[i]}const Zye=Nt.define(),i9=st.define({combine(t){let e,n;for(let i of t)e=e||i.topContainer,n=n||i.bottomContainer;return{topContainer:e,bottomContainer:n}}});function MP(t,e){let n=t.plugin(jG),i=n?n.specs.indexOf(e):-1;return i>-1?n.panels[i]:null}const jG=xn.fromClass(class{constructor(t){this.input=t.state.facet(RP),this.specs=this.input.filter(n=>n),this.panels=this.specs.map(n=>n(t));let e=t.state.facet(i9);this.top=new uw(t,!0,e.topContainer),this.bottom=new uw(t,!1,e.bottomContainer),this.top.sync(this.panels.filter(n=>n.top)),this.bottom.sync(this.panels.filter(n=>!n.top));for(let n of this.panels)n.dom.classList.add("cm-panel"),n.mount&&n.mount()}update(t){let e=t.state.facet(i9);this.top.container!=e.topContainer&&(this.top.sync([]),this.top=new uw(t.view,!0,e.topContainer)),this.bottom.container!=e.bottomContainer&&(this.bottom.sync([]),this.bottom=new uw(t.view,!1,e.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();let n=t.state.facet(RP);if(n!=this.input){let i=n.filter(c=>c),a=[],o=[],r=[],s=[];for(let c of i){let l=this.specs.indexOf(c),u;l<0?(u=c(t.view),s.push(u)):(u=this.panels[l],u.update&&u.update(t)),a.push(u),(u.top?o:r).push(u)}this.specs=i,this.panels=a,this.top.sync(o),this.bottom.sync(r);for(let c of s)c.dom.classList.add("cm-panel"),c.mount&&c.mount()}else for(let i of this.panels)i.update&&i.update(t)}destroy(){this.top.sync([]),this.bottom.sync([])}},{provide:t=>nt.scrollMargins.of(e=>{let n=e.plugin(t);return n&&{top:n.top.scrollMargin(),bottom:n.bottom.scrollMargin()}})});class uw{constructor(e,n,i){this.view=e,this.top=n,this.container=i,this.dom=void 0,this.classes="",this.panels=[],this.syncClasses()}sync(e){for(let n of this.panels)n.destroy&&e.indexOf(n)<0&&n.destroy();this.panels=e,this.syncDOM()}syncDOM(){if(this.panels.length==0){this.dom&&(this.dom.remove(),this.dom=void 0);return}if(!this.dom){this.dom=document.createElement("div"),this.dom.className=this.top?"cm-panels cm-panels-top":"cm-panels cm-panels-bottom",this.dom.style[this.top?"top":"bottom"]="0";let n=this.container||this.view.dom;n.insertBefore(this.dom,this.top?n.firstChild:null)}let e=this.dom.firstChild;for(let n of this.panels)if(n.dom.parentNode==this.dom){for(;e!=n.dom;)e=a9(e);e=e.nextSibling}else this.dom.insertBefore(n.dom,e);for(;e;)e=a9(e)}scrollMargin(){return!this.dom||this.container?0:Math.max(0,this.top?this.dom.getBoundingClientRect().bottom-Math.max(0,this.view.scrollDOM.getBoundingClientRect().top):Math.min(innerHeight,this.view.scrollDOM.getBoundingClientRect().bottom)-this.dom.getBoundingClientRect().top)}syncClasses(){if(!(!this.container||this.classes==this.view.themeClasses)){for(let e of this.classes.split(" "))e&&this.container.classList.remove(e);for(let e of(this.classes=this.view.themeClasses).split(" "))e&&this.container.classList.add(e)}}}function a9(t){let e=t.nextSibling;return t.remove(),e}const RP=st.define({enables:jG});class Hl extends ih{compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}eq(e){return!1}destroy(e){}}Hl.prototype.elementClass="";Hl.prototype.toDOM=void 0;Hl.prototype.mapMode=ma.TrackBefore;Hl.prototype.startSide=Hl.prototype.endSide=-1;Hl.prototype.point=!0;const _$=st.define(),Xye=st.define(),ege={class:"",renderEmptyElements:!1,elementStyle:"",markers:()=>nr.empty,lineMarker:()=>null,widgetMarker:()=>null,lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{}},Wv=st.define();function MG(t){return[RG(),Wv.of(Object.assign(Object.assign({},ege),t))]}const s9=st.define({combine:t=>t.some(e=>e)});function RG(t){return[tge]}const tge=xn.fromClass(class{constructor(t){this.view=t,this.prevViewport=t.viewport,this.dom=document.createElement("div"),this.dom.className="cm-gutters",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.gutters=t.state.facet(Wv).map(e=>new l9(t,e));for(let e of this.gutters)this.dom.appendChild(e.dom);this.fixed=!t.state.facet(s9),this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),t.scrollDOM.insertBefore(this.dom,t.contentDOM)}update(t){if(this.updateGutters(t)){let e=this.prevViewport,n=t.view.viewport,i=Math.min(e.to,n.to)-Math.max(e.from,n.from);this.syncGutters(i<(n.to-n.from)*.8)}t.geometryChanged&&(this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px"),this.view.state.facet(s9)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":""),this.prevViewport=t.view.viewport}syncGutters(t){let e=this.dom.nextSibling;t&&this.dom.remove();let n=nr.iter(this.view.state.facet(_$),this.view.viewport.from),i=[],a=this.gutters.map(o=>new rge(o,this.view.viewport,-this.view.documentPadding.top));for(let o of this.view.viewportLineBlocks)if(i.length&&(i=[]),Array.isArray(o.type)){let r=!0;for(let s of o.type)if(s.type==ba.Text&&r){rC(n,i,s.from);for(let c of a)c.line(this.view,s,i);r=!1}else if(s.widget)for(let c of a)c.widget(this.view,s)}else if(o.type==ba.Text){rC(n,i,o.from);for(let r of a)r.line(this.view,o,i)}else if(o.widget)for(let r of a)r.widget(this.view,o);for(let o of a)o.finish();t&&this.view.scrollDOM.insertBefore(this.dom,e)}updateGutters(t){let e=t.startState.facet(Wv),n=t.state.facet(Wv),i=t.docChanged||t.heightChanged||t.viewportChanged||!nr.eq(t.startState.facet(_$),t.state.facet(_$),t.view.viewport.from,t.view.viewport.to);if(e==n)for(let a of this.gutters)a.update(t)&&(i=!0);else{i=!0;let a=[];for(let o of n){let r=e.indexOf(o);r<0?a.push(new l9(this.view,o)):(this.gutters[r].update(t),a.push(this.gutters[r]))}for(let o of this.gutters)o.dom.remove(),a.indexOf(o)<0&&o.destroy();for(let o of a)this.dom.appendChild(o.dom);this.gutters=a}return i}destroy(){for(let t of this.gutters)t.destroy();this.dom.remove()}},{provide:t=>nt.scrollMargins.of(e=>{let n=e.plugin(t);return!n||n.gutters.length==0||!n.fixed?null:e.textDirection==rn.LTR?{left:n.dom.offsetWidth*e.scaleX}:{right:n.dom.offsetWidth*e.scaleX}})});function o9(t){return Array.isArray(t)?t:[t]}function rC(t,e,n){for(;t.value&&t.from<=n;)t.from==n&&e.push(t.value),t.next()}class rge{constructor(e,n,i){this.gutter=e,this.height=i,this.i=0,this.cursor=nr.iter(e.markers,n.from)}addElement(e,n,i){let{gutter:a}=this,o=(n.top-this.height)/e.scaleY,r=n.height/e.scaleY;if(this.i==a.elements.length){let s=new NG(e,r,o,i);a.elements.push(s),a.dom.appendChild(s.dom)}else a.elements[this.i].update(e,r,o,i);this.height=n.bottom,this.i++}line(e,n,i){let a=[];rC(this.cursor,a,n.from),i.length&&(a=a.concat(i));let o=this.gutter.config.lineMarker(e,n,a);o&&a.unshift(o);let r=this.gutter;a.length==0&&!r.config.renderEmptyElements||this.addElement(e,n,a)}widget(e,n){let i=this.gutter.config.widgetMarker(e,n.widget,n),a=i?[i]:null;for(let o of e.state.facet(Xye)){let r=o(e,n.widget,n);r&&(a||(a=[])).push(r)}a&&this.addElement(e,n,a)}finish(){let e=this.gutter;for(;e.elements.length>this.i;){let n=e.elements.pop();e.dom.removeChild(n.dom),n.destroy()}}}class l9{constructor(e,n){this.view=e,this.config=n,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");for(let i in n.domEventHandlers)this.dom.addEventListener(i,a=>{let o=a.target,r;if(o!=this.dom&&this.dom.contains(o)){for(;o.parentNode!=this.dom;)o=o.parentNode;let c=o.getBoundingClientRect();r=(c.top+c.bottom)/2}else r=a.clientY;let s=e.lineBlockAtHeight(r-e.documentTop);n.domEventHandlers[i](e,s,a)&&a.preventDefault()});this.markers=o9(n.markers(e)),n.initialSpacer&&(this.spacer=new NG(e,0,0,[n.initialSpacer(e)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}update(e){let n=this.markers;if(this.markers=o9(this.config.markers(e.view)),this.spacer&&this.config.updateSpacer){let a=this.config.updateSpacer(this.spacer.markers[0],e);a!=this.spacer.markers[0]&&this.spacer.update(e.view,0,0,[a])}let i=e.view.viewport;return!nr.eq(this.markers,n,i.from,i.to)||(this.config.lineMarkerChange?this.config.lineMarkerChange(e):!1)}destroy(){for(let e of this.elements)e.destroy()}}class NG{constructor(e,n,i,a){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(e,n,i,a)}update(e,n,i,a){this.height!=n&&(this.height=n,this.dom.style.height=n+"px"),this.above!=i&&(this.dom.style.marginTop=(this.above=i)?i+"px":""),nge(this.markers,a)||this.setMarkers(e,a)}setMarkers(e,n){let i="cm-gutterElement",a=this.dom.firstChild;for(let o=0,r=0;;){let s=r,c=oo(s,c,l)||r(s,c,l):r}return i}})}});class Bk extends Hl{constructor(e){super(),this.number=e}eq(e){return this.number==e.number}toDOM(){return document.createTextNode(this.number)}}function Vk(t,e){return t.state.facet(Nd).formatNumber(e,t.state)}const sge=Wv.compute([Nd],t=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers(e){return e.state.facet(ige)},lineMarker(e,n,i){return i.some(a=>a.toDOM)?null:new Bk(Vk(e,e.state.doc.lineAt(n.from).number))},widgetMarker:(e,n,i)=>{for(let a of e.state.facet(age)){let o=a(e,n,i);if(o)return o}return null},lineMarkerChange:e=>e.startState.facet(Nd)!=e.state.facet(Nd),initialSpacer(e){return new Bk(Vk(e,c9(e.state.doc.lines)))},updateSpacer(e,n){let i=Vk(n.view,c9(n.view.state.doc.lines));return i==e.number?e:new Bk(i)},domEventHandlers:t.facet(Nd).domEventHandlers}));function oge(t={}){return[Nd.of(t),RG(),sge]}function c9(t){let e=9;for(;e{let e=[],n=-1;for(let i of t.selection.ranges){let a=t.doc.lineAt(i.head).from;a>n&&(n=a,e.push(lge.range(a)))}return nr.of(e)});function uge(){return cge}var Wk;const Ld=new Yt;function fge(t){return st.define({combine:t?e=>e.concat(t):void 0})}const pge=new Yt;class Go{constructor(e,n,i=[],a=""){this.data=e,this.name=a,or.prototype.hasOwnProperty("tree")||Object.defineProperty(or.prototype,"tree",{get(){return Mi(this)}}),this.parser=n,this.extension=[Mf.of(this),or.languageData.of((o,r,s)=>{let c=u9(o,r,s),l=c.type.prop(Ld);if(!l)return[];let u=o.facet(l),f=c.type.prop(pge);if(f){let h=c.resolve(r-c.from,s);for(let d of f)if(d.test(h,o)){let m=o.facet(d.facet);return d.type=="replace"?m:m.concat(u)}}return u})].concat(i)}isActiveAt(e,n,i=-1){return u9(e,n,i).type.prop(Ld)==this.data}findRegions(e){let n=e.facet(Mf);if((n==null?void 0:n.data)==this.data)return[{from:0,to:e.doc.length}];if(!n||!n.allowsNesting)return[];let i=[],a=(o,r)=>{if(o.prop(Ld)==this.data){i.push({from:r,to:r+o.length});return}let s=o.prop(Yt.mounted);if(s){if(s.tree.prop(Ld)==this.data){if(s.overlay)for(let c of s.overlay)i.push({from:c.from+r,to:c.to+r});else i.push({from:r,to:r+o.length});return}else if(s.overlay){let c=i.length;if(a(s.tree,s.overlay[0].from+r),i.length>c)return}}for(let c=0;ci.isTop?n:void 0)]}),e.name)}configure(e,n){return new zA(this.data,this.parser.configure(e),n||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function Mi(t){let e=t.field(Go.state,!1);return e?e.tree:Xn.empty}class hge{constructor(e){this.doc=e,this.cursorPos=0,this.string="",this.cursor=e.iter()}get length(){return this.doc.length}syncTo(e){return this.string=this.cursor.next(e-this.cursorPos).value,this.cursorPos=e+this.string.length,this.cursorPos-this.string.length}chunk(e){return this.syncTo(e),this.string}get lineChunks(){return!0}read(e,n){let i=this.cursorPos-this.string.length;return e=this.cursorPos?this.doc.sliceString(e,n):this.string.slice(e-i,n-i)}}let B0=null;class UA{constructor(e,n,i=[],a,o,r,s,c){this.parser=e,this.state=n,this.fragments=i,this.tree=a,this.treeLen=o,this.viewport=r,this.skipped=s,this.scheduleOn=c,this.parse=null,this.tempSkipped=[]}static create(e,n,i){return new UA(e,n,[],Xn.empty,0,i,[],null)}startParse(){return this.parser.startParse(new hge(this.state.doc),this.fragments)}work(e,n){return n!=null&&n>=this.state.doc.length&&(n=void 0),this.tree!=Xn.empty&&this.isDone(n??this.state.doc.length)?(this.takeTree(),!0):this.withContext(()=>{var i;if(typeof e=="number"){let a=Date.now()+e;e=()=>Date.now()>a}for(this.parse||(this.parse=this.startParse()),n!=null&&(this.parse.stoppedAt==null||this.parse.stoppedAt>n)&&n=this.treeLen&&((this.parse.stoppedAt==null||this.parse.stoppedAt>e)&&this.parse.stopAt(e),this.withContext(()=>{for(;!(n=this.parse.advance()););}),this.treeLen=e,this.tree=n,this.fragments=this.withoutTempSkipped(Up.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(e){let n=B0;B0=this;try{return e()}finally{B0=n}}withoutTempSkipped(e){for(let n;n=this.tempSkipped.pop();)e=f9(e,n.from,n.to);return e}changes(e,n){let{fragments:i,tree:a,treeLen:o,viewport:r,skipped:s}=this;if(this.takeTree(),!e.empty){let c=[];if(e.iterChangedRanges((l,u,f,h)=>c.push({fromA:l,toA:u,fromB:f,toB:h})),i=Up.applyChanges(i,c),a=Xn.empty,o=0,r={from:e.mapPos(r.from,-1),to:e.mapPos(r.to,1)},this.skipped.length){s=[];for(let l of this.skipped){let u=e.mapPos(l.from,1),f=e.mapPos(l.to,-1);ue.from&&(this.fragments=f9(this.fragments,a,o),this.skipped.splice(i--,1))}return this.skipped.length>=n?!1:(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(e,n){this.skipped.push({from:e,to:n})}static getSkippingParser(e){return new class extends l7{createParse(n,i,a){let o=a[0].from,r=a[a.length-1].to;return{parsedPos:o,advance(){let c=B0;if(c){for(let l of a)c.tempSkipped.push(l);e&&(c.scheduleOn=c.scheduleOn?Promise.all([c.scheduleOn,e]):e)}return this.parsedPos=r,new Xn(wo.none,[],[],r-o)},stoppedAt:null,stopAt(){}}}}}isDone(e){e=Math.min(e,this.state.doc.length);let n=this.fragments;return this.treeLen>=e&&n.length&&n[0].from==0&&n[0].to>=e}static get(){return B0}}function f9(t,e,n){return Up.applyChanges(t,[{fromA:e,toA:n,fromB:e,toB:n}])}class fg{constructor(e){this.context=e,this.tree=e.tree}apply(e){if(!e.docChanged&&this.tree==this.context.tree)return this;let n=this.context.changes(e.changes,e.state),i=this.context.treeLen==e.startState.doc.length?void 0:Math.max(e.changes.mapPos(this.context.treeLen),n.viewport.to);return n.work(20,i)||n.takeTree(),new fg(n)}static init(e){let n=Math.min(3e3,e.doc.length),i=UA.create(e.facet(Mf).parser,e,{from:0,to:n});return i.work(20,n)||i.takeTree(),new fg(i)}}Go.state=ci.define({create:fg.init,update(t,e){for(let n of e.effects)if(n.is(Go.setState))return n.value;return e.startState.facet(Mf)!=e.state.facet(Mf)?fg.init(e.state):t.apply(e)}});let LG=t=>{let e=setTimeout(()=>t(),500);return()=>clearTimeout(e)};typeof requestIdleCallback<"u"&&(LG=t=>{let e=-1,n=setTimeout(()=>{e=requestIdleCallback(t,{timeout:400})},100);return()=>e<0?clearTimeout(n):cancelIdleCallback(e)});const Hk=typeof navigator<"u"&&(!((Wk=navigator.scheduling)===null||Wk===void 0)&&Wk.isInputPending)?()=>navigator.scheduling.isInputPending():null,dge=xn.fromClass(class{constructor(e){this.view=e,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(e){let n=this.view.state.field(Go.state).context;(n.updateViewport(e.view.viewport)||this.view.viewport.to>n.treeLen)&&this.scheduleWork(),(e.docChanged||e.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(n)}scheduleWork(){if(this.working)return;let{state:e}=this.view,n=e.field(Go.state);(n.tree!=n.context.tree||!n.context.isDone(e.doc.length))&&(this.working=LG(this.work))}work(e){this.working=null;let n=Date.now();if(this.chunkEnda+1e3,c=o.context.work(()=>Hk&&Hk()||Date.now()>r,a+(s?0:1e5));this.chunkBudget-=Date.now()-n,(c||this.chunkBudget<=0)&&(o.context.takeTree(),this.view.dispatch({effects:Go.setState.of(new fg(o.context))})),this.chunkBudget>0&&!(c&&!s)&&this.scheduleWork(),this.checkAsyncSchedule(o.context)}checkAsyncSchedule(e){e.scheduleOn&&(this.workScheduled++,e.scheduleOn.then(()=>this.scheduleWork()).catch(n=>ga(this.view.state,n)).then(()=>this.workScheduled--),e.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),Mf=st.define({combine(t){return t.length?t[0]:null},enables:t=>[Go.state,dge,nt.contentAttributes.compute([t],e=>{let n=e.facet(t);return n&&n.name?{"data-language":n.name}:{}})]});class mge{constructor(e,n=[]){this.language=e,this.support=n,this.extension=[e,n]}}const yge=st.define(),o_=st.define({combine:t=>{if(!t.length)return" ";let e=t[0];if(!e||/\S/.test(e)||Array.from(e).some(n=>n!=e[0]))throw new Error("Invalid indent unit: "+JSON.stringify(t[0]));return e}});function BA(t){let e=t.facet(o_);return e.charCodeAt(0)==9?t.tabSize*e.length:e.length}function NP(t,e){let n="",i=t.tabSize,a=t.facet(o_)[0];if(a==" "){for(;e>=i;)n+=" ",e-=i;a=" "}for(let o=0;o=e?gge(t,n,e):null}class l_{constructor(e,n={}){this.state=e,this.options=n,this.unit=BA(e)}lineAt(e,n=1){let i=this.state.doc.lineAt(e),{simulateBreak:a,simulateDoubleBreak:o}=this.options;return a!=null&&a>=i.from&&a<=i.to?o&&a==e?{text:"",from:e}:(n<0?a-1&&(o+=r-this.countColumn(i,i.search(/\S|$/))),o}countColumn(e,n=e.length){return Ig(e,this.state.tabSize,n)}lineIndent(e,n=1){let{text:i,from:a}=this.lineAt(e,n),o=this.options.overrideIndentation;if(o){let r=o(a);if(r>-1)return r}return this.countColumn(i,i.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const FG=new Yt;function gge(t,e,n){let i=e.resolveStack(n),a=i.node.enterUnfinishedNodesBefore(n);if(a!=i.node){let o=[];for(let r=a;r!=i.node;r=r.parent)o.push(r);for(let r=o.length-1;r>=0;r--)i={node:o[r],next:i}}return qG(i,t,n)}function qG(t,e,n){for(let i=t;i;i=i.next){let a=Pge(i.node);if(a)return a(Lj.create(e,n,i))}return 0}function vge(t){return t.pos==t.options.simulateBreak&&t.options.simulateDoubleBreak}function Pge(t){let e=t.type.prop(FG);if(e)return e;let n=t.firstChild,i;if(n&&(i=n.type.prop(Yt.closedBy))){let a=t.lastChild,o=a&&i.indexOf(a.name)>-1;return r=>Age(r,!0,1,void 0,o&&!vge(r)?a.from:void 0)}return t.parent==null?bge:null}function bge(){return 0}class Lj extends l_{constructor(e,n,i){super(e.state,e.options),this.base=e,this.pos=n,this.context=i}get node(){return this.context.node}static create(e,n,i){return new Lj(e,n,i)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(e){let n=this.state.doc.lineAt(e.from);for(;;){let i=e.resolve(n.from);for(;i.parent&&i.parent.from==i.from;)i=i.parent;if(wge(i,e))break;n=this.state.doc.lineAt(i.from)}return this.lineIndent(n.from)}continue(){return qG(this.context.next,this.base,this.pos)}}function wge(t,e){for(let n=e;n;n=n.parent)if(t==n)return!0;return!1}function $ge(t){let e=t.node,n=e.childAfter(e.from),i=e.lastChild;if(!n)return null;let a=t.options.simulateBreak,o=t.state.doc.lineAt(n.from),r=a==null||a<=o.from?o.to:Math.min(o.to,a);for(let s=n.to;;){let c=e.childAfter(s);if(!c||c==i)return null;if(!c.type.isSkipped){if(c.from>=r)return null;let l=/^ */.exec(o.text.slice(n.to-o.from))[0].length;return{from:n.from,to:n.to+l}}s=c.to}}function Age(t,e,n,i,a){let o=t.textAfter,r=o.match(/^\s*/)[0].length,s=a==t.pos+r,c=$ge(t);return c?s?t.column(c.from):t.column(c.to):t.baseIndent+(s?0:t.unit*n)}function p9({except:t,units:e=1}={}){return n=>{let i=t&&t.test(n.textAfter);return n.baseIndent+(i?0:e*n.unit)}}const Sge=200;function _ge(){return or.transactionFilter.of(t=>{if(!t.docChanged||!t.isUserEvent("input.type")&&!t.isUserEvent("input.complete"))return t;let e=t.startState.languageDataAt("indentOnInput",t.startState.selection.main.head);if(!e.length)return t;let n=t.newDoc,{head:i}=t.newSelection.main,a=n.lineAt(i);if(i>a.from+Sge)return t;let o=n.sliceString(a.from,i);if(!e.some(l=>l.test(o)))return t;let{state:r}=t,s=-1,c=[];for(let{head:l}of r.selection.ranges){let u=r.doc.lineAt(l);if(u.from==s)continue;s=u.from;let f=Nj(r,u.from);if(f==null)continue;let h=/^\s*/.exec(u.text)[0],d=NP(r,f);h!=d&&c.push({from:u.from,to:u.from+h.length,insert:d})}return c.length?[t,{changes:c,sequential:!0}]:t})}const xge=st.define(),zG=new Yt;function Dge(t){let e=t.firstChild,n=t.lastChild;return e&&e.ton)continue;if(o&&s.from=e&&l.to>n&&(o=l)}}return o}function Oge(t){let e=t.lastChild;return e&&e.to==t.to&&e.type.isError}function VA(t,e,n){for(let i of t.facet(xge)){let a=i(t,e,n);if(a)return a}return kge(t,e,n)}function UG(t,e){let n=e.mapPos(t.from,1),i=e.mapPos(t.to,-1);return n>=i?void 0:{from:n,to:i}}const c_=Nt.define({map:UG}),fb=Nt.define({map:UG});function BG(t){let e=[];for(let{head:n}of t.state.selection.ranges)e.some(i=>i.from<=n&&i.to>=n)||e.push(t.lineBlockAt(n));return e}const lh=ci.define({create(){return St.none},update(t,e){t=t.map(e.changes);for(let n of e.effects)if(n.is(c_)&&!Ege(t,n.value.from,n.value.to)){let{preparePlaceholder:i}=e.state.facet(HG),a=i?St.replace({widget:new Nge(i(e.state,n.value))}):h9;t=t.update({add:[a.range(n.value.from,n.value.to)]})}else n.is(fb)&&(t=t.update({filter:(i,a)=>n.value.from!=i||n.value.to!=a,filterFrom:n.value.from,filterTo:n.value.to}));if(e.selection){let n=!1,{head:i}=e.selection.main;t.between(i,i,(a,o)=>{ai&&(n=!0)}),n&&(t=t.update({filterFrom:i,filterTo:i,filter:(a,o)=>o<=i||a>=i}))}return t},provide:t=>nt.decorations.from(t),toJSON(t,e){let n=[];return t.between(0,e.doc.length,(i,a)=>{n.push(i,a)}),n},fromJSON(t){if(!Array.isArray(t)||t.length%2)throw new RangeError("Invalid JSON for fold state");let e=[];for(let n=0;n{(!a||a.from>o)&&(a={from:o,to:r})}),a}function Ege(t,e,n){let i=!1;return t.between(e,e,(a,o)=>{a==e&&o==n&&(i=!0)}),i}function VG(t,e){return t.field(lh,!1)?e:e.concat(Nt.appendConfig.of(GG()))}const Ige=t=>{for(let e of BG(t)){let n=VA(t.state,e.from,e.to);if(n)return t.dispatch({effects:VG(t.state,[c_.of(n),WG(t,n)])}),!0}return!1},Cge=t=>{if(!t.state.field(lh,!1))return!1;let e=[];for(let n of BG(t)){let i=WA(t.state,n.from,n.to);i&&e.push(fb.of(i),WG(t,i,!1))}return e.length&&t.dispatch({effects:e}),e.length>0};function WG(t,e,n=!0){let i=t.state.doc.lineAt(e.from).number,a=t.state.doc.lineAt(e.to).number;return nt.announce.of(`${t.state.phrase(n?"Folded lines":"Unfolded lines")} ${i} ${t.state.phrase("to")} ${a}.`)}const Tge=t=>{let{state:e}=t,n=[];for(let i=0;i{let e=t.state.field(lh,!1);if(!e||!e.size)return!1;let n=[];return e.between(0,t.state.doc.length,(i,a)=>{n.push(fb.of({from:i,to:a}))}),t.dispatch({effects:n}),!0},Mge=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:Ige},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:Cge},{key:"Ctrl-Alt-[",run:Tge},{key:"Ctrl-Alt-]",run:jge}],Rge={placeholderDOM:null,preparePlaceholder:null,placeholderText:"…"},HG=st.define({combine(t){return sl(t,Rge)}});function GG(t){return[lh,qge]}function KG(t,e){let{state:n}=t,i=n.facet(HG),a=r=>{let s=t.lineBlockAt(t.posAtDOM(r.target)),c=WA(t.state,s.from,s.to);c&&t.dispatch({effects:fb.of(c)}),r.preventDefault()};if(i.placeholderDOM)return i.placeholderDOM(t,a,e);let o=document.createElement("span");return o.textContent=i.placeholderText,o.setAttribute("aria-label",n.phrase("folded code")),o.title=n.phrase("unfold"),o.className="cm-foldPlaceholder",o.onclick=a,o}const h9=St.replace({widget:new class extends yu{toDOM(t){return KG(t,null)}}});class Nge extends yu{constructor(e){super(),this.value=e}eq(e){return this.value==e.value}toDOM(e){return KG(e,this.value)}}const Lge={openText:"⌄",closedText:"›",markerDOM:null,domEventHandlers:{},foldingChanged:()=>!1};class Gk extends Hl{constructor(e,n){super(),this.config=e,this.open=n}eq(e){return this.config==e.config&&this.open==e.open}toDOM(e){if(this.config.markerDOM)return this.config.markerDOM(this.open);let n=document.createElement("span");return n.textContent=this.open?this.config.openText:this.config.closedText,n.title=e.state.phrase(this.open?"Fold line":"Unfold line"),n}}function Fge(t={}){let e=Object.assign(Object.assign({},Lge),t),n=new Gk(e,!0),i=new Gk(e,!1),a=xn.fromClass(class{constructor(r){this.from=r.viewport.from,this.markers=this.buildMarkers(r)}update(r){(r.docChanged||r.viewportChanged||r.startState.facet(Mf)!=r.state.facet(Mf)||r.startState.field(lh,!1)!=r.state.field(lh,!1)||Mi(r.startState)!=Mi(r.state)||e.foldingChanged(r))&&(this.markers=this.buildMarkers(r.view))}buildMarkers(r){let s=new If;for(let c of r.viewportLineBlocks){let l=WA(r.state,c.from,c.to)?i:VA(r.state,c.from,c.to)?n:null;l&&s.add(c.from,c.from,l)}return s.finish()}}),{domEventHandlers:o}=e;return[a,MG({class:"cm-foldGutter",markers(r){var s;return((s=r.plugin(a))===null||s===void 0?void 0:s.markers)||nr.empty},initialSpacer(){return new Gk(e,!1)},domEventHandlers:Object.assign(Object.assign({},o),{click:(r,s,c)=>{if(o.click&&o.click(r,s,c))return!0;let l=WA(r.state,s.from,s.to);if(l)return r.dispatch({effects:fb.of(l)}),!0;let u=VA(r.state,s.from,s.to);return u?(r.dispatch({effects:c_.of(u)}),!0):!1}})}),GG()]}const qge=nt.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}});class pb{constructor(e,n){this.specs=e;let i;function a(s){let c=Cf.newName();return(i||(i=Object.create(null)))["."+c]=s,c}const o=typeof n.all=="string"?n.all:n.all?a(n.all):void 0,r=n.scope;this.scope=r instanceof Go?s=>s.prop(Ld)==r.data:r?s=>s==r:void 0,this.style=f7(e.map(s=>({tag:s.tag,class:s.class||a(Object.assign({},s,{tag:null}))})),{all:o}).style,this.module=i?new Cf(i):null,this.themeType=n.themeType}static define(e,n){return new pb(e,n||{})}}const nC=st.define(),YG=st.define({combine(t){return t.length?[t[0]]:null}});function Kk(t){let e=t.facet(nC);return e.length?e:t.facet(YG)}function JG(t,e){let n=[Uge],i;return t instanceof pb&&(t.module&&n.push(nt.styleModule.of(t.module)),i=t.themeType),e!=null&&e.fallback?n.push(YG.of(t)):i?n.push(nC.computeN([nt.darkTheme],a=>a.facet(nt.darkTheme)==(i=="dark")?[t]:[])):n.push(nC.of(t)),n}class zge{constructor(e){this.markCache=Object.create(null),this.tree=Mi(e.state),this.decorations=this.buildDeco(e,Kk(e.state)),this.decoratedTo=e.viewport.to}update(e){let n=Mi(e.state),i=Kk(e.state),a=i!=Kk(e.startState),{viewport:o}=e.view,r=e.changes.mapPos(this.decoratedTo,1);n.length=o.to?(this.decorations=this.decorations.map(e.changes),this.decoratedTo=r):(n!=this.tree||e.viewportChanged||a)&&(this.tree=n,this.decorations=this.buildDeco(e.view,i),this.decoratedTo=o.to)}buildDeco(e,n){if(!n||!this.tree.length)return St.none;let i=new If;for(let{from:a,to:o}of e.visibleRanges)pde(this.tree,n,(r,s,c)=>{i.add(r,s,this.markCache[c]||(this.markCache[c]=St.mark({class:c})))},a,o);return i.finish()}}const Uge=$h.high(xn.fromClass(zge,{decorations:t=>t.decorations})),Bge=pb.define([{tag:je.meta,color:"#404740"},{tag:je.link,textDecoration:"underline"},{tag:je.heading,textDecoration:"underline",fontWeight:"bold"},{tag:je.emphasis,fontStyle:"italic"},{tag:je.strong,fontWeight:"bold"},{tag:je.strikethrough,textDecoration:"line-through"},{tag:je.keyword,color:"#708"},{tag:[je.atom,je.bool,je.url,je.contentSeparator,je.labelName],color:"#219"},{tag:[je.literal,je.inserted],color:"#164"},{tag:[je.string,je.deleted],color:"#a11"},{tag:[je.regexp,je.escape,je.special(je.string)],color:"#e40"},{tag:je.definition(je.variableName),color:"#00f"},{tag:je.local(je.variableName),color:"#30a"},{tag:[je.typeName,je.namespace],color:"#085"},{tag:je.className,color:"#167"},{tag:[je.special(je.variableName),je.macroName],color:"#256"},{tag:je.definition(je.propertyName),color:"#00c"},{tag:je.comment,color:"#940"},{tag:je.invalid,color:"#f00"}]),Vge=nt.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),QG=1e4,ZG="()[]{}",XG=st.define({combine(t){return sl(t,{afterCursor:!0,brackets:ZG,maxScanDistance:QG,renderMatch:Gge})}}),Wge=St.mark({class:"cm-matchingBracket"}),Hge=St.mark({class:"cm-nonmatchingBracket"});function Gge(t){let e=[],n=t.matched?Wge:Hge;return e.push(n.range(t.start.from,t.start.to)),t.end&&e.push(n.range(t.end.from,t.end.to)),e}const Kge=ci.define({create(){return St.none},update(t,e){if(!e.docChanged&&!e.selection)return t;let n=[],i=e.state.facet(XG);for(let a of e.state.selection.ranges){if(!a.empty)continue;let o=Il(e.state,a.head,-1,i)||a.head>0&&Il(e.state,a.head-1,1,i)||i.afterCursor&&(Il(e.state,a.head,1,i)||a.headnt.decorations.from(t)}),Yge=[Kge,Vge];function Jge(t={}){return[XG.of(t),Yge]}const Qge=new Yt;function iC(t,e,n){let i=t.prop(e<0?Yt.openedBy:Yt.closedBy);if(i)return i;if(t.name.length==1){let a=n.indexOf(t.name);if(a>-1&&a%2==(e<0?1:0))return[n[a+e]]}return null}function aC(t){let e=t.type.prop(Qge);return e?e(t.node):t}function Il(t,e,n,i={}){let a=i.maxScanDistance||QG,o=i.brackets||ZG,r=Mi(t),s=r.resolveInner(e,n);for(let c=s;c;c=c.parent){let l=iC(c.type,n,o);if(l&&c.from0?e>=u.from&&eu.from&&e<=u.to))return Zge(t,e,n,c,u,l,o)}}return Xge(t,e,n,r,s.type,a,o)}function Zge(t,e,n,i,a,o,r){let s=i.parent,c={from:a.from,to:a.to},l=0,u=s==null?void 0:s.cursor();if(u&&(n<0?u.childBefore(i.from):u.childAfter(i.to)))do if(n<0?u.to<=i.from:u.from>=i.to){if(l==0&&o.indexOf(u.type.name)>-1&&u.from0)return null;let l={from:n<0?e-1:e,to:n>0?e+1:e},u=t.doc.iterRange(e,n>0?t.doc.length:0),f=0;for(let h=0;!u.next().done&&h<=o;){let d=u.value;n<0&&(h+=d.length);let m=e+h*n;for(let g=n>0?0:d.length-1,b=n>0?d.length:-1;g!=b;g+=n){let v=r.indexOf(d[g]);if(!(v<0||i.resolveInner(m+g,1).type!=a))if(v%2==0==n>0)f++;else{if(f==1)return{start:l,end:{from:m+g,to:m+g+1},matched:v>>1==c>>1};f--}}n>0&&(h+=d.length)}return u.done?{start:l,matched:!1}:null}const e0e=Object.create(null),d9=[wo.none],m9=[],y9=Object.create(null),t0e=Object.create(null);for(let[t,e]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])t0e[t]=r0e(e0e,e);function Yk(t,e){m9.indexOf(t)>-1||(m9.push(t),console.warn(e))}function r0e(t,e){let n=[];for(let s of e.split(" ")){let c=[];for(let l of s.split(".")){let u=t[l]||je[l];u?typeof u=="function"?c.length?c=c.map(u):Yk(l,`Modifier ${l} used at start of tag`):c.length?Yk(l,`Tag ${l} used as modifier`):c=Array.isArray(u)?u:[u]:Yk(l,`Unknown highlighting tag ${l}`)}for(let l of c)n.push(l)}if(!n.length)return 0;let i=e.replace(/ /g,"_"),a=i+" "+n.map(s=>s.id),o=y9[a];if(o)return o.id;let r=y9[a]=wo.define({id:d9.length,name:i,props:[c7({[i]:n})]});return d9.push(r),r.id}rn.RTL,rn.LTR;const n0e=()=>t=>{try{JSON.parse(t.state.doc.toString())}catch(e){if(!(e instanceof SyntaxError))throw e;const n=i0e(e,t.state.doc);return[{from:n,message:e.message,severity:"error",to:n}]}return[]};function i0e(t,e){let n;return(n=t.message.match(/at position (\d+)/))?Math.min(+n[1],e.length):(n=t.message.match(/at line (\d+) column (\d+)/))?Math.min(e.line(+n[1]).from+ +n[2]-1,e.length):0}const a0e=zA.define({name:"json",parser:yde.configure({props:[FG.add({Object:p9({except:/^\s*\}/}),Array:p9({except:/^\s*\]/})}),zG.add({"Object Array":Dge})]}),languageData:{closeBrackets:{brackets:["[","{",'"']},indentOnInput:/^\s*[\}\]]$/}});function s0e(){return new mge(a0e)}function Br(){var t=arguments[0];typeof t=="string"&&(t=document.createElement(t));var e=1,n=arguments[1];if(n&&typeof n=="object"&&n.nodeType==null&&!Array.isArray(n)){for(var i in n)if(Object.prototype.hasOwnProperty.call(n,i)){var a=n[i];typeof a=="string"?t.setAttribute(i,a):a!=null&&(t[i]=a)}e++}for(;es.from==s.to||s.from==s.to-1&&i.doc.lineAt(s.from).to==s.from?St.widget({widget:new y0e(s),diagnostic:s}).range(s.from):St.mark({attributes:{class:"cm-lintRange cm-lintRange-"+s.severity+(s.markClass?" "+s.markClass:"")},diagnostic:s}).range(s.from,s.to)),!0);return new mp(r,n,pg(r))}}function pg(t,e=null,n=0){let i=null;return t.between(n,1e9,(a,o,{spec:r})=>{if(!(e&&r.diagnostic!=e))return i=new o0e(a,o,r.diagnostic),!1}),i}function tK(t,e){let n=e.pos,i=e.end||n,a=t.state.facet(Cl).hideOn(t,n,i);if(a!=null)return a;let o=t.startState.doc.lineAt(e.pos);return!!(t.effects.some(r=>r.is(hb))||t.changes.touchesRange(o.from,Math.max(o.to,i)))}function rK(t,e){return t.field(Ha,!1)?e:e.concat(Nt.appendConfig.of(cK))}function l0e(t,e){return{effects:rK(t,[hb.of(e)])}}const hb=Nt.define(),Fj=Nt.define(),nK=Nt.define(),Ha=ci.define({create(){return new mp(St.none,null,null)},update(t,e){if(e.docChanged&&t.diagnostics.size){let n=t.diagnostics.map(e.changes),i=null,a=t.panel;if(t.selected){let o=e.changes.mapPos(t.selected.from,1);i=pg(n,t.selected.diagnostic,o)||pg(n,null,o)}!n.size&&a&&e.state.facet(Cl).autoPanel&&(a=null),t=new mp(n,a,i)}for(let n of e.effects)if(n.is(hb)){let i=e.state.facet(Cl).autoPanel?n.value.length?LP.open:null:t.panel;t=mp.init(n.value,i,e.state)}else n.is(Fj)?t=new mp(t.diagnostics,n.value?LP.open:null,t.selected):n.is(nK)&&(t=new mp(t.diagnostics,t.panel,n.value));return t},provide:t=>[RP.from(t,e=>e.panel),nt.decorations.from(t,e=>e.diagnostics)]}),c0e=St.mark({class:"cm-lintRange cm-lintRange-active"});function u0e(t,e,n){let{diagnostics:i}=t.state.field(Ha),a=[],o=2e8,r=0;i.between(e-(n<0?1:0),e+(n>0?1:0),(c,l,{spec:u})=>{e>=c&&e<=l&&(c==l||(e>c||n>0)&&(esK(t,n,!1)))}const f0e=t=>{let e=t.state.field(Ha,!1);(!e||!e.panel)&&t.dispatch({effects:rK(t.state,[Fj.of(!0)])});let n=MP(t,LP.open);return n&&n.dom.querySelector(".cm-panel-lint ul").focus(),!0},g9=t=>{let e=t.state.field(Ha,!1);return!e||!e.panel?!1:(t.dispatch({effects:Fj.of(!1)}),!0)},p0e=t=>{let e=t.state.field(Ha,!1);if(!e)return!1;let n=t.state.selection.main,i=e.diagnostics.iter(n.to+1);return!i.value&&(i=e.diagnostics.iter(0),!i.value||i.from==n.from&&i.to==n.to)?!1:(t.dispatch({selection:{anchor:i.from,head:i.to},scrollIntoView:!0}),!0)},h0e=[{key:"Mod-Shift-m",run:f0e,preventDefault:!0},{key:"F8",run:p0e}],d0e=xn.fromClass(class{constructor(t){this.view=t,this.timeout=-1,this.set=!0;let{delay:e}=t.state.facet(Cl);this.lintTime=Date.now()+e,this.run=this.run.bind(this),this.timeout=setTimeout(this.run,e)}run(){clearTimeout(this.timeout);let t=Date.now();if(tPromise.resolve(i(this.view))),i=>{this.view.state.doc==e.doc&&this.view.dispatch(l0e(this.view.state,i.reduce((a,o)=>a.concat(o))))},i=>{ga(this.view.state,i)})}}update(t){let e=t.state.facet(Cl);(t.docChanged||e!=t.startState.facet(Cl)||e.needsRefresh&&e.needsRefresh(t))&&(this.lintTime=Date.now()+e.delay,this.set||(this.set=!0,this.timeout=setTimeout(this.run,e.delay)))}force(){this.set&&(this.lintTime=Date.now(),this.run())}destroy(){clearTimeout(this.timeout)}});function m0e(t,e,n){let i=[],a=-1;for(let o of t)o.then(r=>{i.push(r),clearTimeout(a),i.length==t.length?e(i):setTimeout(()=>e(i),200)},n)}const Cl=st.define({combine(t){return Object.assign({sources:t.map(e=>e.source).filter(e=>e!=null)},sl(t.map(e=>e.config),{delay:750,markerFilter:null,tooltipFilter:null,needsRefresh:null,hideOn:()=>null},{needsRefresh:(e,n)=>e?n?i=>e(i)||n(i):e:n}))}});function qj(t,e={}){return[Cl.of({source:t,config:e}),d0e,cK]}function aK(t){let e=[];if(t)e:for(let{name:n}of t){for(let i=0;io.toLowerCase()==a.toLowerCase())){e.push(a);continue e}}e.push("")}return e}function sK(t,e,n){var i;let a=n?aK(e.actions):[];return Br("li",{class:"cm-diagnostic cm-diagnostic-"+e.severity},Br("span",{class:"cm-diagnosticText"},e.renderMessage?e.renderMessage(t):e.message),(i=e.actions)===null||i===void 0?void 0:i.map((o,r)=>{let s=!1,c=h=>{if(h.preventDefault(),s)return;s=!0;let d=pg(t.state.field(Ha).diagnostics,e);d&&o.apply(t,d.from,d.to)},{name:l}=o,u=a[r]?l.indexOf(a[r]):-1,f=u<0?l:[l.slice(0,u),Br("u",l.slice(u,u+1)),l.slice(u+1)];return Br("button",{type:"button",class:"cm-diagnosticAction",onclick:c,onmousedown:c,"aria-label":` Action: ${l}${u<0?"":` (access key "${a[r]})"`}.`},f)}),e.source&&Br("div",{class:"cm-diagnosticSource"},e.source))}class y0e extends yu{constructor(e){super(),this.diagnostic=e}eq(e){return e.diagnostic==this.diagnostic}toDOM(){return Br("span",{class:"cm-lintPoint cm-lintPoint-"+this.diagnostic.severity})}}class v9{constructor(e,n){this.diagnostic=n,this.id="item_"+Math.floor(Math.random()*4294967295).toString(16),this.dom=sK(e,n,!0),this.dom.id=this.id,this.dom.setAttribute("role","option")}}class LP{constructor(e){this.view=e,this.items=[];let n=a=>{if(a.keyCode==27)g9(this.view),this.view.focus();else if(a.keyCode==38||a.keyCode==33)this.moveSelection((this.selectedIndex-1+this.items.length)%this.items.length);else if(a.keyCode==40||a.keyCode==34)this.moveSelection((this.selectedIndex+1)%this.items.length);else if(a.keyCode==36)this.moveSelection(0);else if(a.keyCode==35)this.moveSelection(this.items.length-1);else if(a.keyCode==13)this.view.focus();else if(a.keyCode>=65&&a.keyCode<=90&&this.selectedIndex>=0){let{diagnostic:o}=this.items[this.selectedIndex],r=aK(o.actions);for(let s=0;s{for(let o=0;og9(this.view)},"×")),this.update()}get selectedIndex(){let e=this.view.state.field(Ha).selected;if(!e)return-1;for(let n=0;n{let l=-1,u;for(let f=i;fi&&(this.items.splice(i,l-i),a=!0)),n&&u.diagnostic==n.diagnostic?u.dom.hasAttribute("aria-selected")||(u.dom.setAttribute("aria-selected","true"),o=u):u.dom.hasAttribute("aria-selected")&&u.dom.removeAttribute("aria-selected"),i++});i({sel:o.dom.getBoundingClientRect(),panel:this.list.getBoundingClientRect()}),write:({sel:r,panel:s})=>{let c=s.height/this.list.offsetHeight;r.tops.bottom&&(this.list.scrollTop+=(r.bottom-s.bottom)/c)}})):this.selectedIndex<0&&this.list.removeAttribute("aria-activedescendant"),a&&this.sync()}sync(){let e=this.list.firstChild;function n(){let i=e;e=i.nextSibling,i.remove()}for(let i of this.items)if(i.dom.parentNode==this.list){for(;e!=i.dom;)n();e=i.dom.nextSibling}else this.list.insertBefore(i.dom,e);for(;e;)n()}moveSelection(e){if(this.selectedIndex<0)return;let n=this.view.state.field(Ha),i=pg(n.diagnostics,this.items[e].diagnostic);i&&this.view.dispatch({selection:{anchor:i.from,head:i.to},scrollIntoView:!0,effects:nK.of(i)})}static open(e){return new LP(e)}}function x$(t,e='viewBox="0 0 40 40"'){return`url('data:image/svg+xml,${encodeURIComponent(t)}')`}function fw(t){return x$(``,'width="6" height="3"')}const g0e=nt.baseTheme({".cm-diagnostic":{padding:"3px 6px 3px 8px",marginLeft:"-1px",display:"block",whiteSpace:"pre-wrap"},".cm-diagnostic-error":{borderLeft:"5px solid #d11"},".cm-diagnostic-warning":{borderLeft:"5px solid orange"},".cm-diagnostic-info":{borderLeft:"5px solid #999"},".cm-diagnostic-hint":{borderLeft:"5px solid #66d"},".cm-diagnosticAction":{font:"inherit",border:"none",padding:"2px 4px",backgroundColor:"#444",color:"white",borderRadius:"3px",marginLeft:"8px",cursor:"pointer"},".cm-diagnosticSource":{fontSize:"70%",opacity:.7},".cm-lintRange":{backgroundPosition:"left bottom",backgroundRepeat:"repeat-x",paddingBottom:"0.7px"},".cm-lintRange-error":{backgroundImage:fw("#d11")},".cm-lintRange-warning":{backgroundImage:fw("orange")},".cm-lintRange-info":{backgroundImage:fw("#999")},".cm-lintRange-hint":{backgroundImage:fw("#66d")},".cm-lintRange-active":{backgroundColor:"#ffdd9980"},".cm-tooltip-lint":{padding:0,margin:0},".cm-lintPoint":{position:"relative","&:after":{content:'""',position:"absolute",bottom:0,left:"-2px",borderLeft:"3px solid transparent",borderRight:"3px solid transparent",borderBottom:"4px solid #d11"}},".cm-lintPoint-warning":{"&:after":{borderBottomColor:"orange"}},".cm-lintPoint-info":{"&:after":{borderBottomColor:"#999"}},".cm-lintPoint-hint":{"&:after":{borderBottomColor:"#66d"}},".cm-panel.cm-panel-lint":{position:"relative","& ul":{maxHeight:"100px",overflowY:"auto","& [aria-selected]":{backgroundColor:"#ddd","& u":{textDecoration:"underline"}},"&:focus [aria-selected]":{background_fallback:"#bdf",backgroundColor:"Highlight",color_fallback:"white",color:"HighlightText"},"& u":{textDecoration:"none"},padding:0,margin:0},"& [name=close]":{position:"absolute",top:"0",right:"2px",background:"inherit",border:"none",font:"inherit",padding:0,margin:0}}});function P9(t){return t=="error"?4:t=="warning"?3:t=="info"?2:1}class oK extends Hl{constructor(e){super(),this.diagnostics=e,this.severity=e.reduce((n,i)=>P9(n)P0e(e,n,i)),n}}function v0e(t,e){let n=i=>{let a=e.getBoundingClientRect();if(!(i.clientX>a.left-10&&i.clientXa.top-10&&i.clientYe.getBoundingClientRect()}}})}),e.onmouseout=e.onmousemove=null,v0e(t,e)}let{hoverTime:a}=t.state.facet(u_),o=setTimeout(i,a);e.onmouseout=()=>{clearTimeout(o),e.onmouseout=e.onmousemove=null},e.onmousemove=()=>{clearTimeout(o),o=setTimeout(i,a)}}function b0e(t,e){let n=Object.create(null);for(let a of e){let o=t.lineAt(a.from);(n[o.from]||(n[o.from]=[])).push(a)}let i=[];for(let a in n)i.push(new oK(n[a]).range(+a));return nr.of(i,!0)}const w0e=MG({class:"cm-gutter-lint",markers:t=>t.state.field(sC),widgetMarker:(t,e,n)=>{let i=[];return t.state.field(sC).between(n.from,n.to,(a,o,r)=>{i.push(...r.diagnostics)}),i.length?new oK(i):null}}),sC=ci.define({create(){return nr.empty},update(t,e){t=t.map(e.changes);let n=e.state.facet(u_).markerFilter;for(let i of e.effects)if(i.is(hb)){let a=i.value;n&&(a=n(a||[],e.state)),t=b0e(e.state.doc,a.slice(0))}return t}}),zj=Nt.define(),lK=ci.define({create(){return null},update(t,e){return t&&e.docChanged&&(t=tK(e,t)?null:Object.assign(Object.assign({},t),{pos:e.changes.mapPos(t.pos)})),e.effects.reduce((n,i)=>i.is(zj)?i.value:n,t)},provide:t=>a_.from(t)}),$0e=nt.baseTheme({".cm-gutter-lint":{width:"1.4em","& .cm-gutterElement":{padding:".2em"}},".cm-lint-marker":{width:"1em",height:"1em"},".cm-lint-marker-info":{content:x$('')},".cm-lint-marker-warning":{content:x$('')},".cm-lint-marker-error":{content:x$('')}}),cK=[Ha,nt.decorations.compute([Ha],t=>{let{selected:e,panel:n}=t.field(Ha);return!e||!n||e.from==e.to?St.none:St.set([c0e.range(e.from,e.to)])}),Qye(u0e,{hideOn:tK}),g0e],u_=st.define({combine(t){return sl(t,{hoverTime:300,markerFilter:null,tooltipFilter:null})}});function A0e(t={}){return[u_.of(t),sC,w0e,$0e,lK]}function S0e(t,e){let n=t.field(Ha,!1);if(n&&n.diagnostics.size)for(let i=nr.iter([n.diagnostics]);i.value;i.next())e(i.value.spec.diagnostic,i.from,i.to)}function oC(){return oC=Object.assign?Object.assign.bind():function(t){for(var e=1;e{let{state:e}=t,n=e.doc.lineAt(e.selection.main.from),i=Bj(t.state,n.from);return i.line?D0e(t):i.block?O0e(t):!1};function Uj(t,e){return({state:n,dispatch:i})=>{if(n.readOnly)return!1;let a=t(e,n);return a?(i(n.update(a)),!0):!1}}const D0e=Uj(C0e,0),k0e=Uj(uK,0),O0e=Uj((t,e)=>uK(t,e,I0e(e)),0);function Bj(t,e){let n=t.languageDataAt("commentTokens",e);return n.length?n[0]:{}}const V0=50;function E0e(t,{open:e,close:n},i,a){let o=t.sliceDoc(i-V0,i),r=t.sliceDoc(a,a+V0),s=/\s*$/.exec(o)[0].length,c=/^\s*/.exec(r)[0].length,l=o.length-s;if(o.slice(l-e.length,l)==e&&r.slice(c,c+n.length)==n)return{open:{pos:i-s,margin:s&&1},close:{pos:a+c,margin:c&&1}};let u,f;a-i<=2*V0?u=f=t.sliceDoc(i,a):(u=t.sliceDoc(i,i+V0),f=t.sliceDoc(a-V0,a));let h=/^\s*/.exec(u)[0].length,d=/\s*$/.exec(f)[0].length,m=f.length-d-n.length;return u.slice(h,h+e.length)==e&&f.slice(m,m+n.length)==n?{open:{pos:i+h+e.length,margin:/\s/.test(u.charAt(h+e.length))?1:0},close:{pos:a-d-n.length,margin:/\s/.test(f.charAt(m-1))?1:0}}:null}function I0e(t){let e=[];for(let n of t.selection.ranges){let i=t.doc.lineAt(n.from),a=n.to<=i.to?i:t.doc.lineAt(n.to),o=e.length-1;o>=0&&e[o].to>i.from?e[o].to=a.to:e.push({from:i.from+/^\s*/.exec(i.text)[0].length,to:a.to})}return e}function uK(t,e,n=e.selection.ranges){let i=n.map(o=>Bj(e,o.from).block);if(!i.every(o=>o))return null;let a=n.map((o,r)=>E0e(e,i[r],o.from,o.to));if(t!=2&&!a.every(o=>o))return{changes:e.changes(n.map((o,r)=>a[r]?[]:[{from:o.from,insert:i[r].open+" "},{from:o.to,insert:" "+i[r].close}]))};if(t!=1&&a.some(o=>o)){let o=[];for(let r=0,s;ra&&(o==r||r>f.from)){a=f.from;let h=/^\s*/.exec(f.text)[0].length,d=h==f.length,m=f.text.slice(h,h+l.length)==l?h:-1;ho.comment<0&&(!o.empty||o.single))){let o=[];for(let{line:s,token:c,indent:l,empty:u,single:f}of i)(f||!u)&&o.push({from:s.from+l,insert:c+" "});let r=e.changes(o);return{changes:r,selection:e.selection.map(r,1)}}else if(t!=1&&i.some(o=>o.comment>=0)){let o=[];for(let{line:r,comment:s,token:c}of i)if(s>=0){let l=r.from+s,u=l+c.length;r.text[u-r.from]==" "&&u++,o.push({from:l,to:u})}return{changes:o}}return null}const lC=Jl.define(),T0e=Jl.define(),j0e=st.define(),fK=st.define({combine(t){return sl(t,{minDepth:100,newGroupDelay:500,joinToEvent:(e,n)=>n},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(e,n)=>(i,a)=>e(i,a)||n(i,a)})}}),pK=ci.define({create(){return Tl.empty},update(t,e){let n=e.state.facet(fK),i=e.annotation(lC);if(i){let c=Ga.fromTransaction(e,i.selection),l=i.side,u=l==0?t.undone:t.done;return c?u=HA(u,u.length,n.minDepth,c):u=mK(u,e.startState.selection),new Tl(l==0?i.rest:u,l==0?u:i.rest)}let a=e.annotation(T0e);if((a=="full"||a=="before")&&(t=t.isolate()),e.annotation(oi.addToHistory)===!1)return e.changes.empty?t:t.addMapping(e.changes.desc);let o=Ga.fromTransaction(e),r=e.annotation(oi.time),s=e.annotation(oi.userEvent);return o?t=t.addChanges(o,r,s,n,e):e.selection&&(t=t.addSelection(e.startState.selection,r,s,n.newGroupDelay)),(a=="full"||a=="after")&&(t=t.isolate()),t},toJSON(t){return{done:t.done.map(e=>e.toJSON()),undone:t.undone.map(e=>e.toJSON())}},fromJSON(t){return new Tl(t.done.map(Ga.fromJSON),t.undone.map(Ga.fromJSON))}});function M0e(t={}){return[pK,fK.of(t),nt.domEventHandlers({beforeinput(e,n){let i=e.inputType=="historyUndo"?hK:e.inputType=="historyRedo"?cC:null;return i?(e.preventDefault(),i(n)):!1}})]}function f_(t,e){return function({state:n,dispatch:i}){if(!e&&n.readOnly)return!1;let a=n.field(pK,!1);if(!a)return!1;let o=a.pop(t,n,e);return o?(i(o),!0):!1}}const hK=f_(0,!1),cC=f_(1,!1),R0e=f_(0,!0),N0e=f_(1,!0);class Ga{constructor(e,n,i,a,o){this.changes=e,this.effects=n,this.mapped=i,this.startSelection=a,this.selectionsAfter=o}setSelAfter(e){return new Ga(this.changes,this.effects,this.mapped,this.startSelection,e)}toJSON(){var e,n,i;return{changes:(e=this.changes)===null||e===void 0?void 0:e.toJSON(),mapped:(n=this.mapped)===null||n===void 0?void 0:n.toJSON(),startSelection:(i=this.startSelection)===null||i===void 0?void 0:i.toJSON(),selectionsAfter:this.selectionsAfter.map(a=>a.toJSON())}}static fromJSON(e){return new Ga(e.changes&&ii.fromJSON(e.changes),[],e.mapped&&Ul.fromJSON(e.mapped),e.startSelection&&Ve.fromJSON(e.startSelection),e.selectionsAfter.map(Ve.fromJSON))}static fromTransaction(e,n){let i=to;for(let a of e.startState.facet(j0e)){let o=a(e);o.length&&(i=i.concat(o))}return!i.length&&e.changes.empty?null:new Ga(e.changes.invert(e.startState.doc),i,void 0,n||e.startState.selection,to)}static selection(e){return new Ga(void 0,to,void 0,void 0,e)}}function HA(t,e,n,i){let a=e+1>n+20?e-n-1:0,o=t.slice(a,e);return o.push(i),o}function L0e(t,e){let n=[],i=!1;return t.iterChangedRanges((a,o)=>n.push(a,o)),e.iterChangedRanges((a,o,r,s)=>{for(let c=0;c=l&&r<=u&&(i=!0)}}),i}function F0e(t,e){return t.ranges.length==e.ranges.length&&t.ranges.filter((n,i)=>n.empty!=e.ranges[i].empty).length===0}function dK(t,e){return t.length?e.length?t.concat(e):t:e}const to=[],q0e=200;function mK(t,e){if(t.length){let n=t[t.length-1],i=n.selectionsAfter.slice(Math.max(0,n.selectionsAfter.length-q0e));return i.length&&i[i.length-1].eq(e)?t:(i.push(e),HA(t,t.length-1,1e9,n.setSelAfter(i)))}else return[Ga.selection([e])]}function z0e(t){let e=t[t.length-1],n=t.slice();return n[t.length-1]=e.setSelAfter(e.selectionsAfter.slice(0,e.selectionsAfter.length-1)),n}function Jk(t,e){if(!t.length)return t;let n=t.length,i=to;for(;n;){let a=U0e(t[n-1],e,i);if(a.changes&&!a.changes.empty||a.effects.length){let o=t.slice(0,n);return o[n-1]=a,o}else e=a.mapped,n--,i=a.selectionsAfter}return i.length?[Ga.selection(i)]:to}function U0e(t,e,n){let i=dK(t.selectionsAfter.length?t.selectionsAfter.map(s=>s.map(e)):to,n);if(!t.changes)return Ga.selection(i);let a=t.changes.map(e),o=e.mapDesc(t.changes,!0),r=t.mapped?t.mapped.composeDesc(o):o;return new Ga(a,Nt.mapEffects(t.effects,e),r,t.startSelection.map(o),i)}const B0e=/^(input\.type|delete)($|\.)/;class Tl{constructor(e,n,i=0,a=void 0){this.done=e,this.undone=n,this.prevTime=i,this.prevUserEvent=a}isolate(){return this.prevTime?new Tl(this.done,this.undone):this}addChanges(e,n,i,a,o){let r=this.done,s=r[r.length-1];return s&&s.changes&&!s.changes.empty&&e.changes&&(!i||B0e.test(i))&&(!s.selectionsAfter.length&&n-this.prevTime0&&n-this.prevTimen.empty?t.moveByChar(n,e):p_(n,e))}function Xi(t){return t.textDirectionAt(t.state.selection.main.head)==rn.LTR}const gK=t=>yK(t,!Xi(t)),vK=t=>yK(t,Xi(t));function PK(t,e){return ol(t,n=>n.empty?t.moveByGroup(n,e):p_(n,e))}const W0e=t=>PK(t,!Xi(t)),H0e=t=>PK(t,Xi(t));function G0e(t,e,n){if(e.type.prop(n))return!0;let i=e.to-e.from;return i&&(i>2||/[^\s,.;:]/.test(t.sliceDoc(e.from,e.to)))||e.firstChild}function h_(t,e,n){let i=Mi(t).resolveInner(e.head),a=n?Yt.closedBy:Yt.openedBy;for(let c=e.head;;){let l=n?i.childAfter(c):i.childBefore(c);if(!l)break;G0e(t,l,a)?i=l:c=n?l.to:l.from}let o=i.type.prop(a),r,s;return o&&(r=n?Il(t,i.from,1):Il(t,i.to,-1))&&r.matched?s=n?r.end.to:r.end.from:s=n?i.to:i.from,Ve.cursor(s,n?-1:1)}const K0e=t=>ol(t,e=>h_(t.state,e,!Xi(t))),Y0e=t=>ol(t,e=>h_(t.state,e,Xi(t)));function bK(t,e){return ol(t,n=>{if(!n.empty)return p_(n,e);let i=t.moveVertically(n,e);return i.head!=n.head?i:t.moveToLineBoundary(n,e)})}const wK=t=>bK(t,!1),$K=t=>bK(t,!0);function AK(t){let e=t.scrollDOM.clientHeightr.empty?t.moveVertically(r,e,n.height):p_(r,e));if(a.eq(i.selection))return!1;let o;if(n.selfScroll){let r=t.coordsAtPos(i.selection.main.head),s=t.scrollDOM.getBoundingClientRect(),c=s.top+n.marginTop,l=s.bottom-n.marginBottom;r&&r.top>c&&r.bottomSK(t,!1),uC=t=>SK(t,!0);function Uf(t,e,n){let i=t.lineBlockAt(e.head),a=t.moveToLineBoundary(e,n);if(a.head==e.head&&a.head!=(n?i.to:i.from)&&(a=t.moveToLineBoundary(e,n,!1)),!n&&a.head==i.from&&i.length){let o=/^\s*/.exec(t.state.sliceDoc(i.from,Math.min(i.from+100,i.to)))[0].length;o&&e.head!=i.from+o&&(a=Ve.cursor(i.from+o))}return a}const J0e=t=>ol(t,e=>Uf(t,e,!0)),Q0e=t=>ol(t,e=>Uf(t,e,!1)),Z0e=t=>ol(t,e=>Uf(t,e,!Xi(t))),X0e=t=>ol(t,e=>Uf(t,e,Xi(t))),eve=t=>ol(t,e=>Ve.cursor(t.lineBlockAt(e.head).from,1)),tve=t=>ol(t,e=>Ve.cursor(t.lineBlockAt(e.head).to,-1));function rve(t,e,n){let i=!1,a=Cg(t.selection,o=>{let r=Il(t,o.head,-1)||Il(t,o.head,1)||o.head>0&&Il(t,o.head-1,1)||o.headrve(t,e);function So(t,e){let n=Cg(t.state.selection,i=>{let a=e(i);return Ve.range(i.anchor,a.head,a.goalColumn,a.bidiLevel||void 0)});return n.eq(t.state.selection)?!1:(t.dispatch(Ql(t.state,n)),!0)}function _K(t,e){return So(t,n=>t.moveByChar(n,e))}const xK=t=>_K(t,!Xi(t)),DK=t=>_K(t,Xi(t));function kK(t,e){return So(t,n=>t.moveByGroup(n,e))}const ive=t=>kK(t,!Xi(t)),ave=t=>kK(t,Xi(t)),sve=t=>So(t,e=>h_(t.state,e,!Xi(t))),ove=t=>So(t,e=>h_(t.state,e,Xi(t)));function OK(t,e){return So(t,n=>t.moveVertically(n,e))}const EK=t=>OK(t,!1),IK=t=>OK(t,!0);function CK(t,e){return So(t,n=>t.moveVertically(n,e,AK(t).height))}const w9=t=>CK(t,!1),$9=t=>CK(t,!0),lve=t=>So(t,e=>Uf(t,e,!0)),cve=t=>So(t,e=>Uf(t,e,!1)),uve=t=>So(t,e=>Uf(t,e,!Xi(t))),fve=t=>So(t,e=>Uf(t,e,Xi(t))),pve=t=>So(t,e=>Ve.cursor(t.lineBlockAt(e.head).from)),hve=t=>So(t,e=>Ve.cursor(t.lineBlockAt(e.head).to)),A9=({state:t,dispatch:e})=>(e(Ql(t,{anchor:0})),!0),S9=({state:t,dispatch:e})=>(e(Ql(t,{anchor:t.doc.length})),!0),_9=({state:t,dispatch:e})=>(e(Ql(t,{anchor:t.selection.main.anchor,head:0})),!0),x9=({state:t,dispatch:e})=>(e(Ql(t,{anchor:t.selection.main.anchor,head:t.doc.length})),!0),dve=({state:t,dispatch:e})=>(e(t.update({selection:{anchor:0,head:t.doc.length},userEvent:"select"})),!0),mve=({state:t,dispatch:e})=>{let n=d_(t).map(({from:i,to:a})=>Ve.range(i,Math.min(a+1,t.doc.length)));return e(t.update({selection:Ve.create(n),userEvent:"select"})),!0},yve=({state:t,dispatch:e})=>{let n=Cg(t.selection,i=>{let a=Mi(t),o=a.resolveStack(i.from,1);if(i.empty){let r=a.resolveStack(i.from,-1);r.node.from>=o.node.from&&r.node.to<=o.node.to&&(o=r)}for(let r=o;r;r=r.next){let{node:s}=r;if((s.from=i.to||s.to>i.to&&s.from<=i.from)&&r.next)return Ve.range(s.to,s.from)}return i});return n.eq(t.selection)?!1:(e(Ql(t,n)),!0)},gve=({state:t,dispatch:e})=>{let n=t.selection,i=null;return n.ranges.length>1?i=Ve.create([n.main]):n.main.empty||(i=Ve.create([Ve.cursor(n.main.head)])),i?(e(Ql(t,i)),!0):!1};function db(t,e){if(t.state.readOnly)return!1;let n="delete.selection",{state:i}=t,a=i.changeByRange(o=>{let{from:r,to:s}=o;if(r==s){let c=e(o);cr&&(n="delete.forward",c=pw(t,c,!0)),r=Math.min(r,c),s=Math.max(s,c)}else r=pw(t,r,!1),s=pw(t,s,!0);return r==s?{range:o}:{changes:{from:r,to:s},range:Ve.cursor(r,ra(t)))i.between(e,e,(a,o)=>{ae&&(e=n?o:a)});return e}const TK=(t,e,n)=>db(t,i=>{let a=i.from,{state:o}=t,r=o.doc.lineAt(a),s,c;if(n&&!e&&a>r.from&&aTK(t,!1,!0),jK=t=>TK(t,!0,!1),MK=(t,e)=>db(t,n=>{let i=n.head,{state:a}=t,o=a.doc.lineAt(i),r=a.charCategorizer(i);for(let s=null;;){if(i==(e?o.to:o.from)){i==n.head&&o.number!=(e?a.doc.lines:1)&&(i+=e?1:-1);break}let c=Ci(o.text,i-o.from,e)+o.from,l=o.text.slice(Math.min(i,c)-o.from,Math.max(i,c)-o.from),u=r(l);if(s!=null&&u!=s)break;(l!=" "||i!=n.head)&&(s=u),i=c}return i}),RK=t=>MK(t,!1),vve=t=>MK(t,!0),Pve=t=>db(t,e=>{let n=t.lineBlockAt(e.head).to;return e.headdb(t,e=>{let n=t.moveToLineBoundary(e,!1).head;return e.head>n?n:Math.max(0,e.head-1)}),wve=t=>db(t,e=>{let n=t.moveToLineBoundary(e,!0).head;return e.head{if(t.readOnly)return!1;let n=t.changeByRange(i=>({changes:{from:i.from,to:i.to,insert:fr.of(["",""])},range:Ve.cursor(i.from)}));return e(t.update(n,{scrollIntoView:!0,userEvent:"input"})),!0},Ave=({state:t,dispatch:e})=>{if(t.readOnly)return!1;let n=t.changeByRange(i=>{if(!i.empty||i.from==0||i.from==t.doc.length)return{range:i};let a=i.from,o=t.doc.lineAt(a),r=a==o.from?a-1:Ci(o.text,a-o.from,!1)+o.from,s=a==o.to?a+1:Ci(o.text,a-o.from,!0)+o.from;return{changes:{from:r,to:s,insert:t.doc.slice(a,s).append(t.doc.slice(r,a))},range:Ve.cursor(s)}});return n.changes.empty?!1:(e(t.update(n,{scrollIntoView:!0,userEvent:"move.character"})),!0)};function d_(t){let e=[],n=-1;for(let i of t.selection.ranges){let a=t.doc.lineAt(i.from),o=t.doc.lineAt(i.to);if(!i.empty&&i.to==o.from&&(o=t.doc.lineAt(i.to-1)),n>=a.number){let r=e[e.length-1];r.to=o.to,r.ranges.push(i)}else e.push({from:a.from,to:o.to,ranges:[i]});n=o.number+1}return e}function NK(t,e,n){if(t.readOnly)return!1;let i=[],a=[];for(let o of d_(t)){if(n?o.to==t.doc.length:o.from==0)continue;let r=t.doc.lineAt(n?o.to+1:o.from-1),s=r.length+1;if(n){i.push({from:o.to,to:r.to},{from:o.from,insert:r.text+t.lineBreak});for(let c of o.ranges)a.push(Ve.range(Math.min(t.doc.length,c.anchor+s),Math.min(t.doc.length,c.head+s)))}else{i.push({from:r.from,to:o.from},{from:o.to,insert:t.lineBreak+r.text});for(let c of o.ranges)a.push(Ve.range(c.anchor-s,c.head-s))}}return i.length?(e(t.update({changes:i,scrollIntoView:!0,selection:Ve.create(a,t.selection.mainIndex),userEvent:"move.line"})),!0):!1}const Sve=({state:t,dispatch:e})=>NK(t,e,!1),_ve=({state:t,dispatch:e})=>NK(t,e,!0);function LK(t,e,n){if(t.readOnly)return!1;let i=[];for(let a of d_(t))n?i.push({from:a.from,insert:t.doc.slice(a.from,a.to)+t.lineBreak}):i.push({from:a.to,insert:t.lineBreak+t.doc.slice(a.from,a.to)});return e(t.update({changes:i,scrollIntoView:!0,userEvent:"input.copyline"})),!0}const xve=({state:t,dispatch:e})=>LK(t,e,!1),Dve=({state:t,dispatch:e})=>LK(t,e,!0),kve=t=>{if(t.state.readOnly)return!1;let{state:e}=t,n=e.changes(d_(e).map(({from:a,to:o})=>(a>0?a--:o{let o;if(t.lineWrapping){let r=t.lineBlockAt(a.head),s=t.coordsAtPos(a.head,a.assoc||1);s&&(o=r.bottom+t.documentTop-s.bottom+t.defaultLineHeight/2)}return t.moveVertically(a,!0,o)}).map(n);return t.dispatch({changes:n,selection:i,scrollIntoView:!0,userEvent:"delete.line"}),!0};function Ove(t,e){if(/\(\)|\[\]|\{\}/.test(t.sliceDoc(e-1,e+1)))return{from:e,to:e};let n=Mi(t).resolveInner(e),i=n.childBefore(e),a=n.childAfter(e),o;return i&&a&&i.to<=e&&a.from>=e&&(o=i.type.prop(Yt.closedBy))&&o.indexOf(a.name)>-1&&t.doc.lineAt(i.to).from==t.doc.lineAt(a.from).from&&!/\S/.test(t.sliceDoc(i.to,a.from))?{from:i.to,to:a.from}:null}const Eve=FK(!1),Ive=FK(!0);function FK(t){return({state:e,dispatch:n})=>{if(e.readOnly)return!1;let i=e.changeByRange(a=>{let{from:o,to:r}=a,s=e.doc.lineAt(o),c=!t&&o==r&&Ove(e,o);t&&(o=r=(r<=s.to?s:e.doc.lineAt(r)).to);let l=new l_(e,{simulateBreak:o,simulateDoubleBreak:!!c}),u=Nj(l,o);for(u==null&&(u=Ig(/^\s*/.exec(e.doc.lineAt(o).text)[0],e.tabSize));rs.from&&o{let a=[];for(let r=i.from;r<=i.to;){let s=t.doc.lineAt(r);s.number>n&&(i.empty||i.to>s.from)&&(e(s,a,i),n=s.number),r=s.to+1}let o=t.changes(a);return{changes:a,range:Ve.range(o.mapPos(i.anchor,1),o.mapPos(i.head,1))}})}const Cve=({state:t,dispatch:e})=>{if(t.readOnly)return!1;let n=Object.create(null),i=new l_(t,{overrideIndentation:o=>{let r=n[o];return r??-1}}),a=Vj(t,(o,r,s)=>{let c=Nj(i,o.from);if(c==null)return;/\S/.test(o.text)||(c=0);let l=/^\s*/.exec(o.text)[0],u=NP(t,c);(l!=u||s.fromt.readOnly?!1:(e(t.update(Vj(t,(n,i)=>{i.push({from:n.from,insert:t.facet(o_)})}),{userEvent:"input.indent"})),!0),zK=({state:t,dispatch:e})=>t.readOnly?!1:(e(t.update(Vj(t,(n,i)=>{let a=/^\s*/.exec(n.text)[0];if(!a)return;let o=Ig(a,t.tabSize),r=0,s=NP(t,Math.max(0,o-BA(t)));for(;r(t.setTabFocusMode(),!0),jve=[{key:"Ctrl-b",run:gK,shift:xK,preventDefault:!0},{key:"Ctrl-f",run:vK,shift:DK},{key:"Ctrl-p",run:wK,shift:EK},{key:"Ctrl-n",run:$K,shift:IK},{key:"Ctrl-a",run:eve,shift:pve},{key:"Ctrl-e",run:tve,shift:hve},{key:"Ctrl-d",run:jK},{key:"Ctrl-h",run:fC},{key:"Ctrl-k",run:Pve},{key:"Ctrl-Alt-h",run:RK},{key:"Ctrl-o",run:$ve},{key:"Ctrl-t",run:Ave},{key:"Ctrl-v",run:uC}],Mve=[{key:"ArrowLeft",run:gK,shift:xK,preventDefault:!0},{key:"Mod-ArrowLeft",mac:"Alt-ArrowLeft",run:W0e,shift:ive,preventDefault:!0},{mac:"Cmd-ArrowLeft",run:Z0e,shift:uve,preventDefault:!0},{key:"ArrowRight",run:vK,shift:DK,preventDefault:!0},{key:"Mod-ArrowRight",mac:"Alt-ArrowRight",run:H0e,shift:ave,preventDefault:!0},{mac:"Cmd-ArrowRight",run:X0e,shift:fve,preventDefault:!0},{key:"ArrowUp",run:wK,shift:EK,preventDefault:!0},{mac:"Cmd-ArrowUp",run:A9,shift:_9},{mac:"Ctrl-ArrowUp",run:b9,shift:w9},{key:"ArrowDown",run:$K,shift:IK,preventDefault:!0},{mac:"Cmd-ArrowDown",run:S9,shift:x9},{mac:"Ctrl-ArrowDown",run:uC,shift:$9},{key:"PageUp",run:b9,shift:w9},{key:"PageDown",run:uC,shift:$9},{key:"Home",run:Q0e,shift:cve,preventDefault:!0},{key:"Mod-Home",run:A9,shift:_9},{key:"End",run:J0e,shift:lve,preventDefault:!0},{key:"Mod-End",run:S9,shift:x9},{key:"Enter",run:Eve},{key:"Mod-a",run:dve},{key:"Backspace",run:fC,shift:fC},{key:"Delete",run:jK},{key:"Mod-Backspace",mac:"Alt-Backspace",run:RK},{key:"Mod-Delete",mac:"Alt-Delete",run:vve},{mac:"Mod-Backspace",run:bve},{mac:"Mod-Delete",run:wve}].concat(jve.map(t=>({mac:t.key,run:t.run,shift:t.shift}))),Rve=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:K0e,shift:sve},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:Y0e,shift:ove},{key:"Alt-ArrowUp",run:Sve},{key:"Shift-Alt-ArrowUp",run:xve},{key:"Alt-ArrowDown",run:_ve},{key:"Shift-Alt-ArrowDown",run:Dve},{key:"Escape",run:gve},{key:"Mod-Enter",run:Ive},{key:"Alt-l",mac:"Ctrl-l",run:mve},{key:"Mod-i",run:yve,preventDefault:!0},{key:"Mod-[",run:zK},{key:"Mod-]",run:qK},{key:"Mod-Alt-\\",run:Cve},{key:"Shift-Mod-k",run:kve},{key:"Shift-Mod-\\",run:nve},{key:"Mod-/",run:x0e},{key:"Alt-A",run:k0e},{key:"Ctrl-m",mac:"Shift-Alt-m",run:Tve}].concat(Mve),Nve={key:"Tab",run:qK,shift:zK},D9=typeof String.prototype.normalize=="function"?t=>t.normalize("NFKD"):t=>t;class hg{constructor(e,n,i=0,a=e.length,o,r){this.test=r,this.value={from:0,to:0},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=e.iterRange(i,a),this.bufferStart=i,this.normalize=o?s=>o(D9(s)):D9,this.query=this.normalize(n)}peek(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return-1;this.bufferPos=0,this.buffer=this.iter.value}return ki(this.buffer,this.bufferPos)}next(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}nextOverlapping(){for(;;){let e=this.peek();if(e<0)return this.done=!0,this;let n=Aj(e),i=this.bufferStart+this.bufferPos;this.bufferPos+=Zs(e);let a=this.normalize(n);for(let o=0,r=i;;o++){let s=a.charCodeAt(o),c=this.match(s,r,this.bufferPos+this.bufferStart);if(o==a.length-1){if(c)return this.value=c,this;break}r==i&&othis.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}nextLine(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}next(){for(let e=this.matchPos-this.curLineStart;;){this.re.lastIndex=e;let n=this.matchPos<=this.to&&this.re.exec(this.curLine);if(n){let i=this.curLineStart+n.index,a=i+n[0].length;if(this.matchPos=GA(this.text,a+(i==a?1:0)),i==this.curLineStart+this.curLine.length&&this.nextLine(),(ithis.value.to)&&(!this.test||this.test(i,a,n)))return this.value={from:i,to:a,match:n},this;e=this.matchPos-this.curLineStart}else if(this.curLineStart+this.curLine.length=i||a.to<=n){let s=new rm(n,e.sliceString(n,i));return Qk.set(e,s),s}if(a.from==n&&a.to==i)return a;let{text:o,from:r}=a;return r>n&&(o=e.sliceString(n,r)+o,r=n),a.to=this.to?this.to:this.text.lineAt(e).to}next(){for(;;){let e=this.re.lastIndex=this.matchPos-this.flat.from,n=this.re.exec(this.flat.text);if(n&&!n[0]&&n.index==e&&(this.re.lastIndex=e+1,n=this.re.exec(this.flat.text)),n){let i=this.flat.from+n.index,a=i+n[0].length;if((this.flat.to>=this.to||n.index+n[0].length<=this.flat.text.length-10)&&(!this.test||this.test(i,a,n)))return this.value={from:i,to:a,match:n},this.matchPos=GA(this.text,a+(i==a?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=rm.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+this.flat.text.length*2))}}}typeof Symbol<"u"&&(BK.prototype[Symbol.iterator]=VK.prototype[Symbol.iterator]=function(){return this});function Lve(t){try{return new RegExp(t,Wj),!0}catch{return!1}}function GA(t,e){if(e>=t.length)return e;let n=t.lineAt(e),i;for(;e=56320&&i<57344;)e++;return e}function pC(t){let e=String(t.state.doc.lineAt(t.state.selection.main.head).number),n=Br("input",{class:"cm-textfield",name:"line",value:e}),i=Br("form",{class:"cm-gotoLine",onkeydown:o=>{o.keyCode==27?(o.preventDefault(),t.dispatch({effects:KA.of(!1)}),t.focus()):o.keyCode==13&&(o.preventDefault(),a())},onsubmit:o=>{o.preventDefault(),a()}},Br("label",t.state.phrase("Go to line"),": ",n)," ",Br("button",{class:"cm-button",type:"submit"},t.state.phrase("go")));function a(){let o=/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(n.value);if(!o)return;let{state:r}=t,s=r.doc.lineAt(r.selection.main.head),[,c,l,u,f]=o,h=u?+u.slice(1):0,d=l?+l:s.number;if(l&&f){let b=d/100;c&&(b=b*(c=="-"?-1:1)+s.number/r.doc.lines),d=Math.round(r.doc.lines*b)}else l&&c&&(d=d*(c=="-"?-1:1)+s.number);let m=r.doc.line(Math.max(1,Math.min(r.doc.lines,d))),g=Ve.cursor(m.from+Math.max(0,Math.min(h,m.length)));t.dispatch({effects:[KA.of(!1),nt.scrollIntoView(g.from,{y:"center"})],selection:g}),t.focus()}return{dom:i}}const KA=Nt.define(),k9=ci.define({create(){return!0},update(t,e){for(let n of e.effects)n.is(KA)&&(t=n.value);return t},provide:t=>RP.from(t,e=>e?pC:null)}),Fve=t=>{let e=MP(t,pC);if(!e){let n=[KA.of(!0)];t.state.field(k9,!1)==null&&n.push(Nt.appendConfig.of([k9,qve])),t.dispatch({effects:n}),e=MP(t,pC)}return e&&e.dom.querySelector("input").select(),!0},qve=nt.baseTheme({".cm-panel.cm-gotoLine":{padding:"2px 6px 4px","& label":{fontSize:"80%"}}}),zve={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},Uve=st.define({combine(t){return sl(t,zve,{highlightWordAroundCursor:(e,n)=>e||n,minSelectionLength:Math.min,maxMatches:Math.min})}});function Bve(t){return[Kve,Gve]}const Vve=St.mark({class:"cm-selectionMatch"}),Wve=St.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function O9(t,e,n,i){return(n==0||t(e.sliceDoc(n-1,n))!=cn.Word)&&(i==e.doc.length||t(e.sliceDoc(i,i+1))!=cn.Word)}function Hve(t,e,n,i){return t(e.sliceDoc(n,n+1))==cn.Word&&t(e.sliceDoc(i-1,i))==cn.Word}const Gve=xn.fromClass(class{constructor(t){this.decorations=this.getDeco(t)}update(t){(t.selectionSet||t.docChanged||t.viewportChanged)&&(this.decorations=this.getDeco(t.view))}getDeco(t){let e=t.state.facet(Uve),{state:n}=t,i=n.selection;if(i.ranges.length>1)return St.none;let a=i.main,o,r=null;if(a.empty){if(!e.highlightWordAroundCursor)return St.none;let c=n.wordAt(a.head);if(!c)return St.none;r=n.charCategorizer(a.head),o=n.sliceDoc(c.from,c.to)}else{let c=a.to-a.from;if(c200)return St.none;if(e.wholeWords){if(o=n.sliceDoc(a.from,a.to),r=n.charCategorizer(a.head),!(O9(r,n,a.from,a.to)&&Hve(r,n,a.from,a.to)))return St.none}else if(o=n.sliceDoc(a.from,a.to),!o)return St.none}let s=[];for(let c of t.visibleRanges){let l=new hg(n.doc,o,c.from,c.to);for(;!l.next().done;){let{from:u,to:f}=l.value;if((!r||O9(r,n,u,f))&&(a.empty&&u<=a.from&&f>=a.to?s.push(Wve.range(u,f)):(u>=a.to||f<=a.from)&&s.push(Vve.range(u,f)),s.length>e.maxMatches))return St.none}}return St.set(s)}},{decorations:t=>t.decorations}),Kve=nt.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}}),Yve=({state:t,dispatch:e})=>{let{selection:n}=t,i=Ve.create(n.ranges.map(a=>t.wordAt(a.head)||Ve.cursor(a.head)),n.mainIndex);return i.eq(n)?!1:(e(t.update({selection:i})),!0)};function Jve(t,e){let{main:n,ranges:i}=t.selection,a=t.wordAt(n.head),o=a&&a.from==n.from&&a.to==n.to;for(let r=!1,s=new hg(t.doc,e,i[i.length-1].to);;)if(s.next(),s.done){if(r)return null;s=new hg(t.doc,e,0,Math.max(0,i[i.length-1].from-1)),r=!0}else{if(r&&i.some(c=>c.from==s.value.from))continue;if(o){let c=t.wordAt(s.value.from);if(!c||c.from!=s.value.from||c.to!=s.value.to)continue}return s.value}}const Qve=({state:t,dispatch:e})=>{let{ranges:n}=t.selection;if(n.some(o=>o.from===o.to))return Yve({state:t,dispatch:e});let i=t.sliceDoc(n[0].from,n[0].to);if(t.selection.ranges.some(o=>t.sliceDoc(o.from,o.to)!=i))return!1;let a=Jve(t,i);return a?(e(t.update({selection:t.selection.addRange(Ve.range(a.from,a.to),!1),effects:nt.scrollIntoView(a.to)})),!0):!1},Tg=st.define({combine(t){return sl(t,{top:!1,caseSensitive:!1,literal:!1,regexp:!1,wholeWord:!1,createPanel:e=>new cPe(e),scrollToMatch:e=>nt.scrollIntoView(e)})}});class WK{constructor(e){this.search=e.search,this.caseSensitive=!!e.caseSensitive,this.literal=!!e.literal,this.regexp=!!e.regexp,this.replace=e.replace||"",this.valid=!!this.search&&(!this.regexp||Lve(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!e.wholeWord}unquote(e){return this.literal?e:e.replace(/\\([nrt\\])/g,(n,i)=>i=="n"?` -`:i=="r"?"\r":i=="t"?" ":"\\")}eq(e){return this.search==e.search&&this.replace==e.replace&&this.caseSensitive==e.caseSensitive&&this.regexp==e.regexp&&this.wholeWord==e.wholeWord}create(){return this.regexp?new tPe(this):new Xve(this)}getCursor(e,n=0,i){let a=e.doc?e:or.create({doc:e});return i==null&&(i=a.doc.length),this.regexp?dd(this,a,n,i):hd(this,a,n,i)}}class HK{constructor(e){this.spec=e}}function hd(t,e,n,i){return new hg(e.doc,t.unquoted,n,i,t.caseSensitive?void 0:a=>a.toLowerCase(),t.wholeWord?Zve(e.doc,e.charCategorizer(e.selection.main.head)):void 0)}function Zve(t,e){return(n,i,a,o)=>((o>n||o+a.length=n)return null;a.push(i.value)}return a}highlight(e,n,i,a){let o=hd(this.spec,e,Math.max(0,n-this.spec.unquoted.length),Math.min(i+this.spec.unquoted.length,e.doc.length));for(;!o.next().done;)a(o.value.from,o.value.to)}}function dd(t,e,n,i){return new BK(e.doc,t.search,{ignoreCase:!t.caseSensitive,test:t.wholeWord?ePe(e.charCategorizer(e.selection.main.head)):void 0},n,i)}function YA(t,e){return t.slice(Ci(t,e,!1),e)}function JA(t,e){return t.slice(e,Ci(t,e))}function ePe(t){return(e,n,i)=>!i[0].length||(t(YA(i.input,i.index))!=cn.Word||t(JA(i.input,i.index))!=cn.Word)&&(t(JA(i.input,i.index+i[0].length))!=cn.Word||t(YA(i.input,i.index+i[0].length))!=cn.Word)}class tPe extends HK{nextMatch(e,n,i){let a=dd(this.spec,e,i,e.doc.length).next();return a.done&&(a=dd(this.spec,e,0,n).next()),a.done?null:a.value}prevMatchInRange(e,n,i){for(let a=1;;a++){let o=Math.max(n,i-a*1e4),r=dd(this.spec,e,o,i),s=null;for(;!r.next().done;)s=r.value;if(s&&(o==n||s.from>o+10))return s;if(o==n)return null}}prevMatch(e,n,i){return this.prevMatchInRange(e,0,n)||this.prevMatchInRange(e,i,e.doc.length)}getReplacement(e){return this.spec.unquote(this.spec.replace).replace(/\$([$&\d+])/g,(n,i)=>i=="$"?"$":i=="&"?e.match[0]:i!="0"&&+i=n)return null;a.push(i.value)}return a}highlight(e,n,i,a){let o=dd(this.spec,e,Math.max(0,n-250),Math.min(i+250,e.doc.length));for(;!o.next().done;)a(o.value.from,o.value.to)}}const FP=Nt.define(),Hj=Nt.define(),Af=ci.define({create(t){return new Zk(hC(t).create(),null)},update(t,e){for(let n of e.effects)n.is(FP)?t=new Zk(n.value.create(),t.panel):n.is(Hj)&&(t=new Zk(t.query,n.value?Gj:null));return t},provide:t=>RP.from(t,e=>e.panel)});class Zk{constructor(e,n){this.query=e,this.panel=n}}const rPe=St.mark({class:"cm-searchMatch"}),nPe=St.mark({class:"cm-searchMatch cm-searchMatch-selected"}),iPe=xn.fromClass(class{constructor(t){this.view=t,this.decorations=this.highlight(t.state.field(Af))}update(t){let e=t.state.field(Af);(e!=t.startState.field(Af)||t.docChanged||t.selectionSet||t.viewportChanged)&&(this.decorations=this.highlight(e))}highlight({query:t,panel:e}){if(!e||!t.spec.valid)return St.none;let{view:n}=this,i=new If;for(let a=0,o=n.visibleRanges,r=o.length;ao[a+1].from-2*250;)c=o[++a].to;t.highlight(n.state,s,c,(l,u)=>{let f=n.state.selection.ranges.some(h=>h.from==l&&h.to==u);i.add(l,u,f?nPe:rPe)})}return i.finish()}},{decorations:t=>t.decorations});function mb(t){return e=>{let n=e.state.field(Af,!1);return n&&n.query.spec.valid?t(e,n):YK(e)}}const QA=mb((t,{query:e})=>{let{to:n}=t.state.selection.main,i=e.nextMatch(t.state,n,n);if(!i)return!1;let a=Ve.single(i.from,i.to),o=t.state.facet(Tg);return t.dispatch({selection:a,effects:[Kj(t,i),o.scrollToMatch(a.main,t)],userEvent:"select.search"}),KK(t),!0}),ZA=mb((t,{query:e})=>{let{state:n}=t,{from:i}=n.selection.main,a=e.prevMatch(n,i,i);if(!a)return!1;let o=Ve.single(a.from,a.to),r=t.state.facet(Tg);return t.dispatch({selection:o,effects:[Kj(t,a),r.scrollToMatch(o.main,t)],userEvent:"select.search"}),KK(t),!0}),aPe=mb((t,{query:e})=>{let n=e.matchAll(t.state,1e3);return!n||!n.length?!1:(t.dispatch({selection:Ve.create(n.map(i=>Ve.range(i.from,i.to))),userEvent:"select.search.matches"}),!0)}),sPe=({state:t,dispatch:e})=>{let n=t.selection;if(n.ranges.length>1||n.main.empty)return!1;let{from:i,to:a}=n.main,o=[],r=0;for(let s=new hg(t.doc,t.sliceDoc(i,a));!s.next().done;){if(o.length>1e3)return!1;s.value.from==i&&(r=o.length),o.push(Ve.range(s.value.from,s.value.to))}return e(t.update({selection:Ve.create(o,r),userEvent:"select.search.matches"})),!0},E9=mb((t,{query:e})=>{let{state:n}=t,{from:i,to:a}=n.selection.main;if(n.readOnly)return!1;let o=e.nextMatch(n,i,i);if(!o)return!1;let r=[],s,c,l=[];if(o.from==i&&o.to==a&&(c=n.toText(e.getReplacement(o)),r.push({from:o.from,to:o.to,insert:c}),o=e.nextMatch(n,o.from,o.to),l.push(nt.announce.of(n.phrase("replaced match on line $",n.doc.lineAt(i).number)+"."))),o){let u=r.length==0||r[0].from>=o.to?0:o.to-o.from-c.length;s=Ve.single(o.from-u,o.to-u),l.push(Kj(t,o)),l.push(n.facet(Tg).scrollToMatch(s.main,t))}return t.dispatch({changes:r,selection:s,effects:l,userEvent:"input.replace"}),!0}),oPe=mb((t,{query:e})=>{if(t.state.readOnly)return!1;let n=e.matchAll(t.state,1e9).map(a=>{let{from:o,to:r}=a;return{from:o,to:r,insert:e.getReplacement(a)}});if(!n.length)return!1;let i=t.state.phrase("replaced $ matches",n.length)+".";return t.dispatch({changes:n,effects:nt.announce.of(i),userEvent:"input.replace.all"}),!0});function Gj(t){return t.state.facet(Tg).createPanel(t)}function hC(t,e){var n,i,a,o,r;let s=t.selection.main,c=s.empty||s.to>s.from+100?"":t.sliceDoc(s.from,s.to);if(e&&!c)return e;let l=t.facet(Tg);return new WK({search:((n=e==null?void 0:e.literal)!==null&&n!==void 0?n:l.literal)?c:c.replace(/\n/g,"\\n"),caseSensitive:(i=e==null?void 0:e.caseSensitive)!==null&&i!==void 0?i:l.caseSensitive,literal:(a=e==null?void 0:e.literal)!==null&&a!==void 0?a:l.literal,regexp:(o=e==null?void 0:e.regexp)!==null&&o!==void 0?o:l.regexp,wholeWord:(r=e==null?void 0:e.wholeWord)!==null&&r!==void 0?r:l.wholeWord})}function GK(t){let e=MP(t,Gj);return e&&e.dom.querySelector("[main-field]")}function KK(t){let e=GK(t);e&&e==t.root.activeElement&&e.select()}const YK=t=>{let e=t.state.field(Af,!1);if(e&&e.panel){let n=GK(t);if(n&&n!=t.root.activeElement){let i=hC(t.state,e.query.spec);i.valid&&t.dispatch({effects:FP.of(i)}),n.focus(),n.select()}}else t.dispatch({effects:[Hj.of(!0),e?FP.of(hC(t.state,e.query.spec)):Nt.appendConfig.of(fPe)]});return!0},JK=t=>{let e=t.state.field(Af,!1);if(!e||!e.panel)return!1;let n=MP(t,Gj);return n&&n.dom.contains(t.root.activeElement)&&t.focus(),t.dispatch({effects:Hj.of(!1)}),!0},lPe=[{key:"Mod-f",run:YK,scope:"editor search-panel"},{key:"F3",run:QA,shift:ZA,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:QA,shift:ZA,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:JK,scope:"editor search-panel"},{key:"Mod-Shift-l",run:sPe},{key:"Mod-Alt-g",run:Fve},{key:"Mod-d",run:Qve,preventDefault:!0}];class cPe{constructor(e){this.view=e;let n=this.query=e.state.field(Af).query.spec;this.commit=this.commit.bind(this),this.searchField=Br("input",{value:n.search,placeholder:cs(e,"Find"),"aria-label":cs(e,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=Br("input",{value:n.replace,placeholder:cs(e,"Replace"),"aria-label":cs(e,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=Br("input",{type:"checkbox",name:"case",form:"",checked:n.caseSensitive,onchange:this.commit}),this.reField=Br("input",{type:"checkbox",name:"re",form:"",checked:n.regexp,onchange:this.commit}),this.wordField=Br("input",{type:"checkbox",name:"word",form:"",checked:n.wholeWord,onchange:this.commit});function i(a,o,r){return Br("button",{class:"cm-button",name:a,onclick:o,type:"button"},r)}this.dom=Br("div",{onkeydown:a=>this.keydown(a),class:"cm-search"},[this.searchField,i("next",()=>QA(e),[cs(e,"next")]),i("prev",()=>ZA(e),[cs(e,"previous")]),i("select",()=>aPe(e),[cs(e,"all")]),Br("label",null,[this.caseField,cs(e,"match case")]),Br("label",null,[this.reField,cs(e,"regexp")]),Br("label",null,[this.wordField,cs(e,"by word")]),...e.state.readOnly?[]:[Br("br"),this.replaceField,i("replace",()=>E9(e),[cs(e,"replace")]),i("replaceAll",()=>oPe(e),[cs(e,"replace all")])],Br("button",{name:"close",onclick:()=>JK(e),"aria-label":cs(e,"close"),type:"button"},["×"])])}commit(){let e=new WK({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});e.eq(this.query)||(this.query=e,this.view.dispatch({effects:FP.of(e)}))}keydown(e){cye(this.view,e,"search-panel")?e.preventDefault():e.keyCode==13&&e.target==this.searchField?(e.preventDefault(),(e.shiftKey?ZA:QA)(this.view)):e.keyCode==13&&e.target==this.replaceField&&(e.preventDefault(),E9(this.view))}update(e){for(let n of e.transactions)for(let i of n.effects)i.is(FP)&&!i.value.eq(this.query)&&this.setQuery(i.value)}setQuery(e){this.query=e,this.searchField.value=e.search,this.replaceField.value=e.replace,this.caseField.checked=e.caseSensitive,this.reField.checked=e.regexp,this.wordField.checked=e.wholeWord}mount(){this.searchField.select()}get pos(){return 80}get top(){return this.view.state.facet(Tg).top}}function cs(t,e){return t.state.phrase(e)}const hw=30,dw=/[\s\.,:;?!]/;function Kj(t,{from:e,to:n}){let i=t.state.doc.lineAt(e),a=t.state.doc.lineAt(n).to,o=Math.max(i.from,e-hw),r=Math.min(a,n+hw),s=t.state.sliceDoc(o,r);if(o!=i.from){for(let c=0;cs.length-hw;c--)if(!dw.test(s[c-1])&&dw.test(s[c])){s=s.slice(0,c);break}}return nt.announce.of(`${t.state.phrase("current match")}. ${s} ${t.state.phrase("on line")} ${i.number}.`)}const uPe=nt.baseTheme({".cm-panel.cm-search":{padding:"2px 6px 4px",position:"relative","& [name=close]":{position:"absolute",top:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:0,margin:0},"& input, & button, & label":{margin:".2em .6em .2em 0"},"& input[type=checkbox]":{marginRight:".2em"},"& label":{fontSize:"80%",whiteSpace:"pre"}},"&light .cm-searchMatch":{backgroundColor:"#ffff0054"},"&dark .cm-searchMatch":{backgroundColor:"#00ffff8a"},"&light .cm-searchMatch-selected":{backgroundColor:"#ff6a0054"},"&dark .cm-searchMatch-selected":{backgroundColor:"#ff00ff8a"}}),fPe=[Af,$h.low(iPe),uPe];class QK{constructor(e,n,i,a){this.state=e,this.pos=n,this.explicit=i,this.view=a,this.abortListeners=[],this.abortOnDocChange=!1}tokenBefore(e){let n=Mi(this.state).resolveInner(this.pos,-1);for(;n&&e.indexOf(n.name)<0;)n=n.parent;return n?{from:n.from,to:this.pos,text:this.state.sliceDoc(n.from,this.pos),type:n.type}:null}matchBefore(e){let n=this.state.doc.lineAt(this.pos),i=Math.max(n.from,this.pos-250),a=n.text.slice(i-n.from,this.pos-n.from),o=a.search(ZK(e,!1));return o<0?null:{from:i+o,to:this.pos,text:a.slice(o)}}get aborted(){return this.abortListeners==null}addEventListener(e,n,i){e=="abort"&&this.abortListeners&&(this.abortListeners.push(n),i&&i.onDocChange&&(this.abortOnDocChange=!0))}}function I9(t){let e=Object.keys(t).join(""),n=/\w/.test(e);return n&&(e=e.replace(/\w/g,"")),`[${n?"\\w":""}${e.replace(/[^\w\s]/g,"\\$&")}]`}function pPe(t){let e=Object.create(null),n=Object.create(null);for(let{label:a}of t){e[a[0]]=!0;for(let o=1;otypeof a=="string"?{label:a}:a),[n,i]=e.every(a=>/^\w+$/.test(a.label))?[/\w*$/,/\w+$/]:pPe(e);return a=>{let o=a.matchBefore(i);return o||a.explicit?{from:o?o.from:a.pos,options:e,validFor:n}:null}}class C9{constructor(e,n,i,a){this.completion=e,this.source=n,this.match=i,this.score=a}}function Sf(t){return t.selection.main.from}function ZK(t,e){var n;let{source:i}=t,a=e&&i[0]!="^",o=i[i.length-1]!="$";return!a&&!o?t:new RegExp(`${a?"^":""}(?:${i})${o?"$":""}`,(n=t.flags)!==null&&n!==void 0?n:t.ignoreCase?"i":"")}const XK=Jl.define();function dPe(t,e,n,i){let{main:a}=t.selection,o=n-a.from,r=i-a.from;return Object.assign(Object.assign({},t.changeByRange(s=>{if(s!=a&&n!=i&&t.sliceDoc(s.from+o,s.from+r)!=t.sliceDoc(n,i))return{range:s};let c=t.toText(e);return{changes:{from:s.from+o,to:i==a.from?s.to:s.from+r,insert:c},range:Ve.cursor(s.from+o+c.length)}})),{scrollIntoView:!0,userEvent:"input.complete"})}const T9=new WeakMap;function mPe(t){if(!Array.isArray(t))return t;let e=T9.get(t);return e||T9.set(t,e=hPe(t)),e}const XA=Nt.define(),qP=Nt.define();class yPe{constructor(e){this.pattern=e,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[],this.score=0,this.matched=[];for(let n=0;n=48&&x<=57||x>=97&&x<=122?2:x>=65&&x<=90?1:0:(N=Aj(x))!=N.toLowerCase()?1:N!=N.toUpperCase()?2:0;(!P||j==1&&b||_==0&&j!=0)&&(n[f]==x||i[f]==x&&(h=!0)?r[f++]=P:r.length&&(v=!1)),_=j,P+=Zs(x)}return f==c&&r[0]==0&&v?this.result(-100+(h?-200:0),r,e):d==c&&m==0?this.ret(-200-e.length+(g==e.length?0:-100),[0,g]):s>-1?this.ret(-700-e.length,[s,s+this.pattern.length]):d==c?this.ret(-900-e.length,[m,g]):f==c?this.result(-100+(h?-200:0)+-700+(v?0:-1100),r,e):n.length==2?null:this.result((a[0]?-700:0)+-200+-1100,a,e)}result(e,n,i){let a=[],o=0;for(let r of n){let s=r+(this.astral?Zs(ki(i,r)):1);o&&a[o-1]==r?a[o-1]=s:(a[o++]=r,a[o++]=s)}return this.ret(e-i.length,a)}}class gPe{constructor(e){this.pattern=e,this.matched=[],this.score=0,this.folded=e.toLowerCase()}match(e){if(e.length!1,activateOnTypingDelay:100,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,tooltipClass:()=>"",optionClass:()=>"",aboveCursor:!1,icons:!0,addToOptions:[],positionInfo:vPe,filterStrict:!1,compareCompletions:(e,n)=>e.label.localeCompare(n.label),interactionDelay:75,updateSyncTime:100},{defaultKeymap:(e,n)=>e&&n,closeOnBlur:(e,n)=>e&&n,icons:(e,n)=>e&&n,tooltipClass:(e,n)=>i=>j9(e(i),n(i)),optionClass:(e,n)=>i=>j9(e(i),n(i)),addToOptions:(e,n)=>e.concat(n),filterStrict:(e,n)=>e||n})}});function j9(t,e){return t?e?t+" "+e:t:e}function vPe(t,e,n,i,a,o){let r=t.textDirection==rn.RTL,s=r,c=!1,l="top",u,f,h=e.left-a.left,d=a.right-e.right,m=i.right-i.left,g=i.bottom-i.top;if(s&&h=g||P>e.top?u=n.bottom-e.top:(l="bottom",u=e.bottom-n.top)}let b=(e.bottom-e.top)/o.offsetHeight,v=(e.right-e.left)/o.offsetWidth;return{style:`${l}: ${u/b}px; max-width: ${f/v}px`,class:"cm-completionInfo-"+(c?r?"left-narrow":"right-narrow":s?"left":"right")}}function PPe(t){let e=t.addToOptions.slice();return t.icons&&e.push({render(n){let i=document.createElement("div");return i.classList.add("cm-completionIcon"),n.type&&i.classList.add(...n.type.split(/\s+/g).map(a=>"cm-completionIcon-"+a)),i.setAttribute("aria-hidden","true"),i},position:20}),e.push({render(n,i,a,o){let r=document.createElement("span");r.className="cm-completionLabel";let s=n.displayLabel||n.label,c=0;for(let l=0;lc&&r.appendChild(document.createTextNode(s.slice(c,u)));let h=r.appendChild(document.createElement("span"));h.appendChild(document.createTextNode(s.slice(u,f))),h.className="cm-completionMatchedText",c=f}return cn.position-i.position).map(n=>n.render)}function Xk(t,e,n){if(t<=n)return{from:0,to:t};if(e<0&&(e=0),e<=t>>1){let a=Math.floor(e/n);return{from:a*n,to:(a+1)*n}}let i=Math.floor((t-e)/n);return{from:t-(i+1)*n,to:t-i*n}}class bPe{constructor(e,n,i){this.view=e,this.stateField=n,this.applyCompletion=i,this.info=null,this.infoDestroy=null,this.placeInfoReq={read:()=>this.measureInfo(),write:c=>this.placeInfo(c),key:this},this.space=null,this.currentClass="";let a=e.state.field(n),{options:o,selected:r}=a.open,s=e.state.facet(Ii);this.optionContent=PPe(s),this.optionClass=s.optionClass,this.tooltipClass=s.tooltipClass,this.range=Xk(o.length,r,s.maxRenderedOptions),this.dom=document.createElement("div"),this.dom.className="cm-tooltip-autocomplete",this.updateTooltipClass(e.state),this.dom.addEventListener("mousedown",c=>{let{options:l}=e.state.field(n).open;for(let u=c.target,f;u&&u!=this.dom;u=u.parentNode)if(u.nodeName=="LI"&&(f=/-(\d+)$/.exec(u.id))&&+f[1]{let l=e.state.field(this.stateField,!1);l&&l.tooltip&&e.state.facet(Ii).closeOnBlur&&c.relatedTarget!=e.contentDOM&&e.dispatch({effects:qP.of(null)})}),this.showOptions(o,a.id)}mount(){this.updateSel()}showOptions(e,n){this.list&&this.list.remove(),this.list=this.dom.appendChild(this.createListBox(e,n,this.range)),this.list.addEventListener("scroll",()=>{this.info&&this.view.requestMeasure(this.placeInfoReq)})}update(e){var n;let i=e.state.field(this.stateField),a=e.startState.field(this.stateField);if(this.updateTooltipClass(e.state),i!=a){let{options:o,selected:r,disabled:s}=i.open;(!a.open||a.open.options!=o)&&(this.range=Xk(o.length,r,e.state.facet(Ii).maxRenderedOptions),this.showOptions(o,i.id)),this.updateSel(),s!=((n=a.open)===null||n===void 0?void 0:n.disabled)&&this.dom.classList.toggle("cm-tooltip-autocomplete-disabled",!!s)}}updateTooltipClass(e){let n=this.tooltipClass(e);if(n!=this.currentClass){for(let i of this.currentClass.split(" "))i&&this.dom.classList.remove(i);for(let i of n.split(" "))i&&this.dom.classList.add(i);this.currentClass=n}}positioned(e){this.space=e,this.info&&this.view.requestMeasure(this.placeInfoReq)}updateSel(){let e=this.view.state.field(this.stateField),n=e.open;if((n.selected>-1&&n.selected=this.range.to)&&(this.range=Xk(n.options.length,n.selected,this.view.state.facet(Ii).maxRenderedOptions),this.showOptions(n.options,e.id)),this.updateSelectedOption(n.selected)){this.destroyInfo();let{completion:i}=n.options[n.selected],{info:a}=i;if(!a)return;let o=typeof a=="string"?document.createTextNode(a):a(i);if(!o)return;"then"in o?o.then(r=>{r&&this.view.state.field(this.stateField,!1)==e&&this.addInfoPane(r,i)}).catch(r=>ga(this.view.state,r,"completion info")):this.addInfoPane(o,i)}}addInfoPane(e,n){this.destroyInfo();let i=this.info=document.createElement("div");if(i.className="cm-tooltip cm-completionInfo",e.nodeType!=null)i.appendChild(e),this.infoDestroy=null;else{let{dom:a,destroy:o}=e;i.appendChild(a),this.infoDestroy=o||null}this.dom.appendChild(i),this.view.requestMeasure(this.placeInfoReq)}updateSelectedOption(e){let n=null;for(let i=this.list.firstChild,a=this.range.from;i;i=i.nextSibling,a++)i.nodeName!="LI"||!i.id?a--:a==e?i.hasAttribute("aria-selected")||(i.setAttribute("aria-selected","true"),n=i):i.hasAttribute("aria-selected")&&i.removeAttribute("aria-selected");return n&&$Pe(this.list,n),n}measureInfo(){let e=this.dom.querySelector("[aria-selected]");if(!e||!this.info)return null;let n=this.dom.getBoundingClientRect(),i=this.info.getBoundingClientRect(),a=e.getBoundingClientRect(),o=this.space;if(!o){let r=this.dom.ownerDocument.defaultView||window;o={left:0,top:0,right:r.innerWidth,bottom:r.innerHeight}}return a.top>Math.min(o.bottom,n.bottom)-10||a.bottomi.from||i.from==0))if(o=h,typeof l!="string"&&l.header)a.appendChild(l.header(l));else{let d=a.appendChild(document.createElement("completion-section"));d.textContent=h}}const u=a.appendChild(document.createElement("li"));u.id=n+"-"+r,u.setAttribute("role","option");let f=this.optionClass(s);f&&(u.className=f);for(let h of this.optionContent){let d=h(s,this.view.state,this.view,c);d&&u.appendChild(d)}}return i.from&&a.classList.add("cm-completionListIncompleteTop"),i.tonew bPe(n,t,e)}function $Pe(t,e){let n=t.getBoundingClientRect(),i=e.getBoundingClientRect(),a=n.height/t.offsetHeight;i.topn.bottom&&(t.scrollTop+=(i.bottom-n.bottom)/a)}function M9(t){return(t.boost||0)*100+(t.apply?10:0)+(t.info?5:0)+(t.type?1:0)}function APe(t,e){let n=[],i=null,a=l=>{n.push(l);let{section:u}=l.completion;if(u){i||(i=[]);let f=typeof u=="string"?u:u.name;i.some(h=>h.name==f)||i.push(typeof u=="string"?{name:f}:u)}},o=e.facet(Ii);for(let l of t)if(l.hasResult()){let u=l.result.getMatch;if(l.result.filter===!1)for(let f of l.result.options)a(new C9(f,l.source,u?u(f):[],1e9-n.length));else{let f=e.sliceDoc(l.from,l.to),h,d=o.filterStrict?new gPe(f):new yPe(f);for(let m of l.result.options)if(h=d.match(m.label)){let g=m.displayLabel?u?u(m,h.matched):[]:h.matched;a(new C9(m,l.source,g,h.score+(m.boost||0)))}}}if(i){let l=Object.create(null),u=0,f=(h,d)=>{var m,g;return((m=h.rank)!==null&&m!==void 0?m:1e9)-((g=d.rank)!==null&&g!==void 0?g:1e9)||(h.namef.score-u.score||c(u.completion,f.completion))){let u=l.completion;!s||s.label!=u.label||s.detail!=u.detail||s.type!=null&&u.type!=null&&s.type!=u.type||s.apply!=u.apply||s.boost!=u.boost?r.push(l):M9(l.completion)>M9(s)&&(r[r.length-1]=l),s=l.completion}return r}class Fd{constructor(e,n,i,a,o,r){this.options=e,this.attrs=n,this.tooltip=i,this.timestamp=a,this.selected=o,this.disabled=r}setSelected(e,n){return e==this.selected||e>=this.options.length?this:new Fd(this.options,R9(n,e),this.tooltip,this.timestamp,e,this.disabled)}static build(e,n,i,a,o){let r=APe(e,n);if(!r.length)return a&&e.some(c=>c.state==1)?new Fd(a.options,a.attrs,a.tooltip,a.timestamp,a.selected,!0):null;let s=n.facet(Ii).selectOnOpen?0:-1;if(a&&a.selected!=s&&a.selected!=-1){let c=a.options[a.selected].completion;for(let l=0;ll.hasResult()?Math.min(c,l.from):c,1e8),create:OPe,above:o.aboveCursor},a?a.timestamp:Date.now(),s,!1)}map(e){return new Fd(this.options,this.attrs,Object.assign(Object.assign({},this.tooltip),{pos:e.mapPos(this.tooltip.pos)}),this.timestamp,this.selected,this.disabled)}}class eS{constructor(e,n,i){this.active=e,this.id=n,this.open=i}static start(){return new eS(DPe,"cm-ac-"+Math.floor(Math.random()*2e6).toString(36),null)}update(e){let{state:n}=e,i=n.facet(Ii),o=(i.override||n.languageDataAt("autocomplete",Sf(n)).map(mPe)).map(s=>(this.active.find(l=>l.source==s)||new hs(s,this.active.some(l=>l.state!=0)?1:0)).update(e,i));o.length==this.active.length&&o.every((s,c)=>s==this.active[c])&&(o=this.active);let r=this.open;r&&e.docChanged&&(r=r.map(e.changes)),e.selection||o.some(s=>s.hasResult()&&e.changes.touchesRange(s.from,s.to))||!SPe(o,this.active)?r=Fd.build(o,n,this.id,r,i):r&&r.disabled&&!o.some(s=>s.state==1)&&(r=null),!r&&o.every(s=>s.state!=1)&&o.some(s=>s.hasResult())&&(o=o.map(s=>s.hasResult()?new hs(s.source,0):s));for(let s of e.effects)s.is(rY)&&(r=r&&r.setSelected(s.value,this.id));return o==this.active&&r==this.open?this:new eS(o,this.id,r)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:this.active.length?_Pe:xPe}}function SPe(t,e){if(t==e)return!0;for(let n=0,i=0;;){for(;n-1&&(n["aria-activedescendant"]=t+"-"+e),n}const DPe=[];function eY(t,e){if(t.isUserEvent("input.complete")){let i=t.annotation(XK);if(i&&e.activateOnCompletion(i))return 12}let n=t.isUserEvent("input.type");return n&&e.activateOnTyping?5:n?1:t.isUserEvent("delete.backward")?2:t.selection?8:t.docChanged?16:0}class hs{constructor(e,n,i=-1){this.source=e,this.state=n,this.explicitPos=i}hasResult(){return!1}update(e,n){let i=eY(e,n),a=this;(i&8||i&16&&this.touches(e))&&(a=new hs(a.source,0)),i&4&&a.state==0&&(a=new hs(this.source,1)),a=a.updateFor(e,i);for(let o of e.effects)if(o.is(XA))a=new hs(a.source,1,o.value?Sf(e.state):-1);else if(o.is(qP))a=new hs(a.source,0);else if(o.is(tY))for(let r of o.value)r.source==a.source&&(a=r);return a}updateFor(e,n){return this.map(e.changes)}map(e){return e.empty||this.explicitPos<0?this:new hs(this.source,this.state,e.mapPos(this.explicitPos))}touches(e){return e.changes.touchesRange(Sf(e.state))}}class nm extends hs{constructor(e,n,i,a,o){super(e,2,n),this.result=i,this.from=a,this.to=o}hasResult(){return!0}updateFor(e,n){var i;if(!(n&3))return this.map(e.changes);let a=this.result;a.map&&!e.changes.empty&&(a=a.map(a,e.changes));let o=e.changes.mapPos(this.from),r=e.changes.mapPos(this.to,1),s=Sf(e.state);if((this.explicitPos<0?s<=o:sr||!a||n&2&&Sf(e.startState)==this.from)return new hs(this.source,n&4?1:0);let c=this.explicitPos<0?-1:e.changes.mapPos(this.explicitPos);return kPe(a.validFor,e.state,o,r)?new nm(this.source,c,a,o,r):a.update&&(a=a.update(a,o,r,new QK(e.state,s,c>=0)))?new nm(this.source,c,a,a.from,(i=a.to)!==null&&i!==void 0?i:Sf(e.state)):new hs(this.source,1,c)}map(e){return e.empty?this:(this.result.map?this.result.map(this.result,e):this.result)?new nm(this.source,this.explicitPos<0?-1:e.mapPos(this.explicitPos),this.result,e.mapPos(this.from),e.mapPos(this.to,1)):new hs(this.source,0)}touches(e){return e.changes.touchesRange(this.from,this.to)}}function kPe(t,e,n,i){if(!t)return!1;let a=e.sliceDoc(n,i);return typeof t=="function"?t(a,n,i,e):ZK(t,!0).test(a)}const tY=Nt.define({map(t,e){return t.map(n=>n.map(e))}}),rY=Nt.define(),Va=ci.define({create(){return eS.start()},update(t,e){return t.update(e)},provide:t=>[a_.from(t,e=>e.tooltip),nt.contentAttributes.from(t,e=>e.attrs)]});function Yj(t,e){const n=e.completion.apply||e.completion.label;let i=t.state.field(Va).active.find(a=>a.source==e.source);return i instanceof nm?(typeof n=="string"?t.dispatch(Object.assign(Object.assign({},dPe(t.state,n,i.from,i.to)),{annotations:XK.of(e.completion)})):n(t,e.completion,i.from,i.to),!0):!1}const OPe=wPe(Va,Yj);function mw(t,e="option"){return n=>{let i=n.state.field(Va,!1);if(!i||!i.open||i.open.disabled||Date.now()-i.open.timestamp-1?i.open.selected+a*(t?1:-1):t?0:r-1;return s<0?s=e=="page"?0:r-1:s>=r&&(s=e=="page"?r-1:0),n.dispatch({effects:rY.of(s)}),!0}}const EPe=t=>{let e=t.state.field(Va,!1);return t.state.readOnly||!e||!e.open||e.open.selected<0||e.open.disabled||Date.now()-e.open.timestampt.state.field(Va,!1)?(t.dispatch({effects:XA.of(!0)}),!0):!1,IPe=t=>{let e=t.state.field(Va,!1);return!e||!e.active.some(n=>n.state!=0)?!1:(t.dispatch({effects:qP.of(null)}),!0)};class CPe{constructor(e,n){this.active=e,this.context=n,this.time=Date.now(),this.updates=[],this.done=void 0}}const TPe=50,jPe=1e3,MPe=xn.fromClass(class{constructor(t){this.view=t,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.pendingStart=!1,this.composing=0;for(let e of t.state.field(Va).active)e.state==1&&this.startQuery(e)}update(t){let e=t.state.field(Va),n=t.state.facet(Ii);if(!t.selectionSet&&!t.docChanged&&t.startState.field(Va)==e)return;let i=t.transactions.some(o=>{let r=eY(o,n);return r&8||(o.selection||o.docChanged)&&!(r&3)});for(let o=0;oTPe&&Date.now()-r.time>jPe){for(let s of r.context.abortListeners)try{s()}catch(c){ga(this.view.state,c)}r.context.abortListeners=null,this.running.splice(o--,1)}else r.updates.push(...t.transactions)}this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),t.transactions.some(o=>o.effects.some(r=>r.is(XA)))&&(this.pendingStart=!0);let a=this.pendingStart?50:n.activateOnTypingDelay;if(this.debounceUpdate=e.active.some(o=>o.state==1&&!this.running.some(r=>r.active.source==o.source))?setTimeout(()=>this.startUpdate(),a):-1,this.composing!=0)for(let o of t.transactions)o.isUserEvent("input.type")?this.composing=2:this.composing==2&&o.selection&&(this.composing=3)}startUpdate(){this.debounceUpdate=-1,this.pendingStart=!1;let{state:t}=this.view,e=t.field(Va);for(let n of e.active)n.state==1&&!this.running.some(i=>i.active.source==n.source)&&this.startQuery(n)}startQuery(t){let{state:e}=this.view,n=Sf(e),i=new QK(e,n,t.explicitPos==n,this.view),a=new CPe(t,i);this.running.push(a),Promise.resolve(t.source(i)).then(o=>{a.context.aborted||(a.done=o||null,this.scheduleAccept())},o=>{this.view.dispatch({effects:qP.of(null)}),ga(this.view.state,o)})}scheduleAccept(){this.running.every(t=>t.done!==void 0)?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(Ii).updateSyncTime))}accept(){var t;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let e=[],n=this.view.state.facet(Ii);for(let i=0;ir.source==a.active.source);if(o&&o.state==1)if(a.done==null){let r=new hs(a.active.source,0);for(let s of a.updates)r=r.update(s,n);r.state!=1&&e.push(r)}else this.startQuery(o)}e.length&&this.view.dispatch({effects:tY.of(e)})}},{eventHandlers:{blur(t){let e=this.view.state.field(Va,!1);if(e&&e.tooltip&&this.view.state.facet(Ii).closeOnBlur){let n=e.open&&TG(this.view,e.open.tooltip);(!n||!n.dom.contains(t.relatedTarget))&&setTimeout(()=>this.view.dispatch({effects:qP.of(null)}),10)}},compositionstart(){this.composing=1},compositionend(){this.composing==3&&setTimeout(()=>this.view.dispatch({effects:XA.of(!1)}),20),this.composing=0}}}),RPe=typeof navigator=="object"&&/Win/.test(navigator.platform),NPe=$h.highest(nt.domEventHandlers({keydown(t,e){let n=e.state.field(Va,!1);if(!n||!n.open||n.open.disabled||n.open.selected<0||t.key.length>1||t.ctrlKey&&!(RPe&&t.altKey)||t.metaKey)return!1;let i=n.open.options[n.open.selected],a=n.active.find(r=>r.source==i.source),o=i.completion.commitCharacters||a.result.commitCharacters;return o&&o.indexOf(t.key)>-1&&Yj(e,i),!1}})),LPe=nt.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",height:"100%",listStyle:"none",margin:0,padding:0,"& > li, & > completion-section":{padding:"1px 3px",lineHeight:1.2},"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer"},"& > completion-section":{display:"list-item",borderBottom:"1px solid silver",paddingLeft:"0.5em",opacity:.7}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#777"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#444"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"···"',opacity:.5,display:"block",textAlign:"center"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"400px",boxSizing:"border-box",whiteSpace:"pre-line"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},".cm-completionInfo.cm-completionInfo-left-narrow":{right:"30px"},".cm-completionInfo.cm-completionInfo-right-narrow":{left:"30px"},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",display:"inline-block",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6",boxSizing:"content-box"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'ƒ'"}},".cm-completionIcon-class":{"&:after":{content:"'○'"}},".cm-completionIcon-interface":{"&:after":{content:"'◌'"}},".cm-completionIcon-variable":{"&:after":{content:"'𝑥'"}},".cm-completionIcon-constant":{"&:after":{content:"'𝐶'"}},".cm-completionIcon-type":{"&:after":{content:"'𝑡'"}},".cm-completionIcon-enum":{"&:after":{content:"'∪'"}},".cm-completionIcon-property":{"&:after":{content:"'□'"}},".cm-completionIcon-keyword":{"&:after":{content:"'🔑︎'"}},".cm-completionIcon-namespace":{"&:after":{content:"'▢'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}}),zP={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},_p=Nt.define({map(t,e){let n=e.mapPos(t,-1,ma.TrackAfter);return n??void 0}}),Jj=new class extends ih{};Jj.startSide=1;Jj.endSide=-1;const nY=ci.define({create(){return nr.empty},update(t,e){if(t=t.map(e.changes),e.selection){let n=e.state.doc.lineAt(e.selection.main.head);t=t.update({filter:i=>i>=n.from&&i<=n.to})}for(let n of e.effects)n.is(_p)&&(t=t.update({add:[Jj.range(n.value,n.value+1)]}));return t}});function FPe(){return[zPe,nY]}const eO="()[]{}<>";function iY(t){for(let e=0;e{if((qPe?t.composing:t.compositionStarted)||t.state.readOnly)return!1;let a=t.state.selection.main;if(i.length>2||i.length==2&&Zs(ki(i,0))==1||e!=a.from||n!=a.to)return!1;let o=VPe(t.state,i);return o?(t.dispatch(o),!0):!1}),UPe=({state:t,dispatch:e})=>{if(t.readOnly)return!1;let i=aY(t,t.selection.main.head).brackets||zP.brackets,a=null,o=t.changeByRange(r=>{if(r.empty){let s=WPe(t.doc,r.head);for(let c of i)if(c==s&&m_(t.doc,r.head)==iY(ki(c,0)))return{changes:{from:r.head-c.length,to:r.head+c.length},range:Ve.cursor(r.head-c.length)}}return{range:a=r}});return a||e(t.update(o,{scrollIntoView:!0,userEvent:"delete.backward"})),!a},BPe=[{key:"Backspace",run:UPe}];function VPe(t,e){let n=aY(t,t.selection.main.head),i=n.brackets||zP.brackets;for(let a of i){let o=iY(ki(a,0));if(e==a)return o==a?KPe(t,a,i.indexOf(a+a+a)>-1,n):HPe(t,a,o,n.before||zP.before);if(e==o&&sY(t,t.selection.main.from))return GPe(t,a,o)}return null}function sY(t,e){let n=!1;return t.field(nY).between(0,t.doc.length,i=>{i==e&&(n=!0)}),n}function m_(t,e){let n=t.sliceString(e,e+2);return n.slice(0,Zs(ki(n,0)))}function WPe(t,e){let n=t.sliceString(e-2,e);return Zs(ki(n,0))==n.length?n:n.slice(1)}function HPe(t,e,n,i){let a=null,o=t.changeByRange(r=>{if(!r.empty)return{changes:[{insert:e,from:r.from},{insert:n,from:r.to}],effects:_p.of(r.to+e.length),range:Ve.range(r.anchor+e.length,r.head+e.length)};let s=m_(t.doc,r.head);return!s||/\s/.test(s)||i.indexOf(s)>-1?{changes:{insert:e+n,from:r.head},effects:_p.of(r.head+e.length),range:Ve.cursor(r.head+e.length)}:{range:a=r}});return a?null:t.update(o,{scrollIntoView:!0,userEvent:"input.type"})}function GPe(t,e,n){let i=null,a=t.changeByRange(o=>o.empty&&m_(t.doc,o.head)==n?{changes:{from:o.head,to:o.head+n.length,insert:n},range:Ve.cursor(o.head+n.length)}:i={range:o});return i?null:t.update(a,{scrollIntoView:!0,userEvent:"input.type"})}function KPe(t,e,n,i){let a=i.stringPrefixes||zP.stringPrefixes,o=null,r=t.changeByRange(s=>{if(!s.empty)return{changes:[{insert:e,from:s.from},{insert:e,from:s.to}],effects:_p.of(s.to+e.length),range:Ve.range(s.anchor+e.length,s.head+e.length)};let c=s.head,l=m_(t.doc,c),u;if(l==e){if(L9(t,c))return{changes:{insert:e+e,from:c},effects:_p.of(c+e.length),range:Ve.cursor(c+e.length)};if(sY(t,c)){let h=n&&t.sliceDoc(c,c+e.length*3)==e+e+e?e+e+e:e;return{changes:{from:c,to:c+h.length,insert:h},range:Ve.cursor(c+h.length)}}}else{if(n&&t.sliceDoc(c-2*e.length,c)==e+e&&(u=F9(t,c-2*e.length,a))>-1&&L9(t,u))return{changes:{insert:e+e+e+e,from:c},effects:_p.of(c+e.length),range:Ve.cursor(c+e.length)};if(t.charCategorizer(c)(l)!=cn.Word&&F9(t,c,a)>-1&&!YPe(t,c,e,a))return{changes:{insert:e+e,from:c},effects:_p.of(c+e.length),range:Ve.cursor(c+e.length)}}return{range:o=s}});return o?null:t.update(r,{scrollIntoView:!0,userEvent:"input.type"})}function L9(t,e){let n=Mi(t).resolveInner(e+1);return n.parent&&n.from==e}function YPe(t,e,n,i){let a=Mi(t).resolveInner(e,-1),o=i.reduce((r,s)=>Math.max(r,s.length),0);for(let r=0;r<5;r++){let s=t.sliceDoc(a.from,Math.min(a.to,a.from+n.length+o)),c=s.indexOf(n);if(!c||c>-1&&i.indexOf(s.slice(0,c))>-1){let u=a.firstChild;for(;u&&u.from==a.from&&u.to-u.from>n.length+c;){if(t.sliceDoc(u.to-n.length,u.to)==n)return!1;u=u.firstChild}return!0}let l=a.to==e&&a.parent;if(!l)break;a=l}return!1}function F9(t,e,n){let i=t.charCategorizer(e);if(i(t.sliceDoc(e-1,e))!=cn.Word)return e;for(let a of n){let o=e-a.length;if(t.sliceDoc(o,e)==a&&i(t.sliceDoc(o-1,o))!=cn.Word)return o}return-1}function JPe(t={}){return[NPe,Va,Ii.of(t),MPe,QPe,LPe]}const oY=[{key:"Ctrl-Space",run:N9},{mac:"Alt-`",run:N9},{key:"Escape",run:IPe},{key:"ArrowDown",run:mw(!0)},{key:"ArrowUp",run:mw(!1)},{key:"PageDown",run:mw(!0,"page")},{key:"PageUp",run:mw(!1,"page")},{key:"Enter",run:EPe}],QPe=$h.highest(i_.computeN([Ii],t=>t.facet(Ii).defaultKeymap?[oY]:[]));var q9=function(e){e===void 0&&(e={});var{crosshairCursor:n=!1}=e,i=[];e.closeBracketsKeymap!==!1&&(i=i.concat(BPe)),e.defaultKeymap!==!1&&(i=i.concat(Rve)),e.searchKeymap!==!1&&(i=i.concat(lPe)),e.historyKeymap!==!1&&(i=i.concat(V0e)),e.foldKeymap!==!1&&(i=i.concat(Mge)),e.completionKeymap!==!1&&(i=i.concat(oY)),e.lintKeymap!==!1&&(i=i.concat(h0e));var a=[];return e.lineNumbers!==!1&&a.push(oge()),e.highlightActiveLineGutter!==!1&&a.push(uge()),e.highlightSpecialChars!==!1&&a.push(xye()),e.history!==!1&&a.push(M0e()),e.foldGutter!==!1&&a.push(Fge()),e.drawSelection!==!1&&a.push(mye()),e.dropCursor!==!1&&a.push(bye()),e.allowMultipleSelections!==!1&&a.push(or.allowMultipleSelections.of(!0)),e.indentOnInput!==!1&&a.push(_ge()),e.syntaxHighlighting!==!1&&a.push(JG(Bge,{fallback:!0})),e.bracketMatching!==!1&&a.push(Jge()),e.closeBrackets!==!1&&a.push(FPe()),e.autocompletion!==!1&&a.push(JPe()),e.rectangularSelection!==!1&&a.push(qye()),n!==!1&&a.push(Bye()),e.highlightActiveLine!==!1&&a.push(Cye()),e.highlightSelectionMatches!==!1&&a.push(Bve()),e.tabSize&&typeof e.tabSize=="number"&&a.push(o_.of(" ".repeat(e.tabSize))),a.concat([i_.of(i.flat())]).filter(Boolean)};const ZPe="#e5c07b",z9="#e06c75",XPe="#56b6c2",ebe="#ffffff",D$="#abb2bf",dC="#7d8799",tbe="#61afef",rbe="#98c379",U9="#d19a66",nbe="#c678dd",ibe="#21252b",B9="#2c313a",V9="#282c34",tO="#353a42",abe="#3E4451",W9="#528bff",sbe=nt.theme({"&":{color:D$,backgroundColor:V9},".cm-content":{caretColor:W9},".cm-cursor, .cm-dropCursor":{borderLeftColor:W9},"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:abe},".cm-panels":{backgroundColor:ibe,color:D$},".cm-panels.cm-panels-top":{borderBottom:"2px solid black"},".cm-panels.cm-panels-bottom":{borderTop:"2px solid black"},".cm-searchMatch":{backgroundColor:"#72a1ff59",outline:"1px solid #457dff"},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:"#6199ff2f"},".cm-activeLine":{backgroundColor:"#6699ff0b"},".cm-selectionMatch":{backgroundColor:"#aafe661a"},"&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bad0f847"},".cm-gutters":{backgroundColor:V9,color:dC,border:"none"},".cm-activeLineGutter":{backgroundColor:B9},".cm-foldPlaceholder":{backgroundColor:"transparent",border:"none",color:"#ddd"},".cm-tooltip":{border:"none",backgroundColor:tO},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:tO,borderBottomColor:tO},".cm-tooltip-autocomplete":{"& > ul > li[aria-selected]":{backgroundColor:B9,color:D$}}},{dark:!0}),obe=pb.define([{tag:je.keyword,color:nbe},{tag:[je.name,je.deleted,je.character,je.propertyName,je.macroName],color:z9},{tag:[je.function(je.variableName),je.labelName],color:tbe},{tag:[je.color,je.constant(je.name),je.standard(je.name)],color:U9},{tag:[je.definition(je.name),je.separator],color:D$},{tag:[je.typeName,je.className,je.number,je.changed,je.annotation,je.modifier,je.self,je.namespace],color:ZPe},{tag:[je.operator,je.operatorKeyword,je.url,je.escape,je.regexp,je.link,je.special(je.string)],color:XPe},{tag:[je.meta,je.comment],color:dC},{tag:je.strong,fontWeight:"bold"},{tag:je.emphasis,fontStyle:"italic"},{tag:je.strikethrough,textDecoration:"line-through"},{tag:je.link,color:dC,textDecoration:"underline"},{tag:je.heading,fontWeight:"bold",color:z9},{tag:[je.atom,je.bool,je.special(je.variableName)],color:U9},{tag:[je.processingInstruction,je.string,je.inserted],color:rbe},{tag:je.invalid,color:ebe}]),lbe=[sbe,JG(obe)];var cbe=nt.theme({"&":{backgroundColor:"#fff"}},{dark:!1}),ube=function(e){e===void 0&&(e={});var{indentWithTab:n=!0,editable:i=!0,readOnly:a=!1,theme:o="light",placeholder:r="",basicSetup:s=!0}=e,c=[];switch(n&&c.unshift(i_.of([Nve])),s&&(typeof s=="boolean"?c.unshift(q9()):c.unshift(q9(s))),r&&c.unshift(Rye(r)),o){case"light":c.push(cbe);break;case"dark":c.push(lbe);break;case"none":break;default:c.push(o);break}return i===!1&&c.push(nt.editable.of(!1)),a&&c.push(or.readOnly.of(!0)),[...c]},fbe=t=>({line:t.state.doc.lineAt(t.state.selection.main.from),lineCount:t.state.doc.lines,lineBreak:t.state.lineBreak,length:t.state.doc.length,readOnly:t.state.readOnly,tabSize:t.state.tabSize,selection:t.state.selection,selectionAsSingle:t.state.selection.asSingle().main,ranges:t.state.selection.ranges,selectionCode:t.state.sliceDoc(t.state.selection.main.from,t.state.selection.main.to),selections:t.state.selection.ranges.map(e=>t.state.sliceDoc(e.from,e.to)),selectedText:t.state.selection.ranges.some(e=>!e.empty)}),H9=Jl.define(),pbe=[];function hbe(t){var{value:e,selection:n,onChange:i,onStatistics:a,onCreateEditor:o,onUpdate:r,extensions:s=pbe,autoFocus:c,theme:l="light",height:u=null,minHeight:f=null,maxHeight:h=null,width:d=null,minWidth:m=null,maxWidth:g=null,placeholder:b="",editable:v=!0,readOnly:P=!1,indentWithTab:A=!0,basicSetup:_=!0,root:x,initialState:N}=t,[j,I]=We.useState(),[E,L]=We.useState(),[q,F]=We.useState(),S=nt.theme({"&":{height:u,minHeight:f,maxHeight:h,width:d,minWidth:m,maxWidth:g},"& .cm-scroller":{height:"100% !important"}}),D=nt.updateListener.of(H=>{if(H.docChanged&&typeof i=="function"&&!H.transactions.some(U=>U.annotation(H9))){var X=H.state.doc,ie=X.toString();i(ie,H)}a&&a(fbe(H))}),M=ube({theme:l,editable:v,readOnly:P,placeholder:b,indentWithTab:A,basicSetup:_}),C=[D,S,...M];return r&&typeof r=="function"&&C.push(nt.updateListener.of(r)),C=C.concat(s),We.useEffect(()=>{if(j&&!q){var H={doc:e,selection:n,extensions:C},X=N?or.fromJSON(N.json,H,N.fields):or.create(H);if(F(X),!E){var ie=new nt({state:X,parent:j,root:x});L(ie),o&&o(ie,X)}}return()=>{E&&(F(void 0),L(void 0))}},[j,q]),We.useEffect(()=>I(t.container),[t.container]),We.useEffect(()=>()=>{E&&(E.destroy(),L(void 0))},[E]),We.useEffect(()=>{c&&E&&E.focus()},[c,E]),We.useEffect(()=>{E&&E.dispatch({effects:Nt.reconfigure.of(C)})},[l,s,u,f,h,d,m,g,b,v,P,A,_,i,r]),We.useEffect(()=>{if(e!==void 0){var H=E?E.state.doc.toString():"";E&&e!==H&&E.dispatch({changes:{from:0,to:H.length,insert:e||""},annotations:[H9.of(!0)]})}},[e,E]),{state:q,setState:F,view:E,setView:L,container:j,setContainer:I}}var dbe=["className","value","selection","extensions","onChange","onStatistics","onCreateEditor","onUpdate","autoFocus","theme","height","minHeight","maxHeight","width","minWidth","maxWidth","basicSetup","placeholder","indentWithTab","editable","readOnly","root","initialState"],lY=We.forwardRef((t,e)=>{var{className:n,value:i="",selection:a,extensions:o=[],onChange:r,onStatistics:s,onCreateEditor:c,onUpdate:l,autoFocus:u,theme:f="light",height:h,minHeight:d,maxHeight:m,width:g,minWidth:b,maxWidth:v,basicSetup:P,placeholder:A,indentWithTab:_,editable:x,readOnly:N,root:j,initialState:I}=t,E=_0e(t,dbe),L=We.useRef(null),{state:q,view:F,container:S}=hbe({container:L.current,root:j,value:i,autoFocus:u,theme:f,height:h,minHeight:d,maxHeight:m,width:g,minWidth:b,maxWidth:v,basicSetup:P,placeholder:A,indentWithTab:_,editable:x,readOnly:N,selection:a,onChange:r,onStatistics:s,onCreateEditor:c,onUpdate:l,extensions:o,initialState:I});if(We.useImperativeHandle(e,()=>({editor:L.current,state:q,view:F}),[L,S,q,F]),typeof i!="string")throw new Error("value must be typeof string but got "+typeof i);var D=typeof f=="string"?"cm-theme-"+f:"cm-theme";return Lt.jsx("div",oC({ref:L,className:""+D+(n?" "+n:"")},E))});lY.displayName="CodeMirror";function cY(t){var e,n,i="";if(typeof t=="string"||typeof t=="number")i+=t;else if(typeof t=="object")if(Array.isArray(t)){var a=t.length;for(e=0;e-1}var Ibe=Ebe,Cbe=y_;function Tbe(t,e){var n=this.__data__,i=Cbe(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this}var jbe=Tbe,Mbe=gbe,Rbe=_be,Nbe=kbe,Lbe=Ibe,Fbe=jbe;function Mg(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e-1&&t%1==0&&t-1&&t%1==0&&t<=N$e}var rM=L$e,F$e=Ah,q$e=rM,z$e=Xl,U$e="[object Arguments]",B$e="[object Array]",V$e="[object Boolean]",W$e="[object Date]",H$e="[object Error]",G$e="[object Function]",K$e="[object Map]",Y$e="[object Number]",J$e="[object Object]",Q$e="[object RegExp]",Z$e="[object Set]",X$e="[object String]",eAe="[object WeakMap]",tAe="[object ArrayBuffer]",rAe="[object DataView]",nAe="[object Float32Array]",iAe="[object Float64Array]",aAe="[object Int8Array]",sAe="[object Int16Array]",oAe="[object Int32Array]",lAe="[object Uint8Array]",cAe="[object Uint8ClampedArray]",uAe="[object Uint16Array]",fAe="[object Uint32Array]",Qr={};Qr[nAe]=Qr[iAe]=Qr[aAe]=Qr[sAe]=Qr[oAe]=Qr[lAe]=Qr[cAe]=Qr[uAe]=Qr[fAe]=!0;Qr[U$e]=Qr[B$e]=Qr[tAe]=Qr[V$e]=Qr[rAe]=Qr[W$e]=Qr[H$e]=Qr[G$e]=Qr[K$e]=Qr[Y$e]=Qr[J$e]=Qr[Q$e]=Qr[Z$e]=Qr[X$e]=Qr[eAe]=!1;function pAe(t){return z$e(t)&&q$e(t.length)&&!!Qr[F$e(t)]}var hAe=pAe;function dAe(t){return function(e){return t(e)}}var _h=dAe,rS={exports:{}};rS.exports;(function(t,e){var n=uY,i=e&&!e.nodeType&&e,a=i&&!0&&t&&!t.nodeType&&t,o=a&&a.exports===i,r=o&&n.process,s=function(){try{var c=a&&a.require&&a.require("util").types;return c||r&&r.binding&&r.binding("util")}catch{}}();t.exports=s})(rS,rS.exports);var nM=rS.exports,mAe=hAe,yAe=_h,tz=nM,rz=tz&&tz.isTypedArray,gAe=rz?yAe(rz):mAe,iM=gAe,vAe=b$e,PAe=w_,bAe=_s,wAe=$_,$Ae=A_,AAe=iM,SAe=Object.prototype,_Ae=SAe.hasOwnProperty;function xAe(t,e){var n=bAe(t),i=!n&&PAe(t),a=!n&&!i&&wAe(t),o=!n&&!i&&!a&&AAe(t),r=n||i||a||o,s=r?vAe(t.length,String):[],c=s.length;for(var l in t)(e||_Ae.call(t,l))&&!(r&&(l=="length"||a&&(l=="offset"||l=="parent")||o&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||$Ae(l,c)))&&s.push(l);return s}var yY=xAe,DAe=Object.prototype;function kAe(t){var e=t&&t.constructor,n=typeof e=="function"&&e.prototype||DAe;return t===n}var aM=kAe;function OAe(t,e){return function(n){return t(e(n))}}var gY=OAe,EAe=gY,IAe=EAe(Object.keys,Object),CAe=IAe,TAe=aM,jAe=CAe,MAe=Object.prototype,RAe=MAe.hasOwnProperty;function NAe(t){if(!TAe(t))return jAe(t);var e=[];for(var n in Object(t))RAe.call(t,n)&&n!="constructor"&&e.push(n);return e}var LAe=NAe,FAe=Qj,qAe=rM;function zAe(t){return t!=null&&qAe(t.length)&&!FAe(t)}var qg=zAe,UAe=yY,BAe=LAe,VAe=qg;function WAe(t){return VAe(t)?UAe(t):BAe(t)}var gb=WAe,HAe=yb,GAe=gb;function KAe(t,e){return t&&HAe(e,GAe(e),t)}var YAe=KAe;function JAe(t){var e=[];if(t!=null)for(var n in Object(t))e.push(n);return e}var QAe=JAe,ZAe=ll,XAe=aM,eSe=QAe,tSe=Object.prototype,rSe=tSe.hasOwnProperty;function nSe(t){if(!ZAe(t))return eSe(t);var e=XAe(t),n=[];for(var i in t)i=="constructor"&&(e||!rSe.call(t,i))||n.push(i);return n}var iSe=nSe,aSe=yY,sSe=iSe,oSe=qg;function lSe(t){return oSe(t)?aSe(t,!0):sSe(t)}var zg=lSe,cSe=yb,uSe=zg;function fSe(t,e){return t&&cSe(e,uSe(e),t)}var pSe=fSe,nS={exports:{}};nS.exports;(function(t,e){var n=Zl,i=e&&!e.nodeType&&e,a=i&&!0&&t&&!t.nodeType&&t,o=a&&a.exports===i,r=o?n.Buffer:void 0,s=r?r.allocUnsafe:void 0;function c(l,u){if(u)return l.slice();var f=l.length,h=s?s(f):new l.constructor(f);return l.copy(h),h}t.exports=c})(nS,nS.exports);var vY=nS.exports;function hSe(t,e){var n=-1,i=t.length;for(e||(e=Array(i));++ns))return!1;var l=o.get(t),u=o.get(e);if(l&&u)return l==e&&u==t;var f=-1,h=!0,d=n&GDe?new BDe:void 0;for(o.set(t,e),o.set(e,t);++f0&&n(s)?e>1?jY(s,e-1,n,i,a):Nke(a,s):i||(a[a.length]=s)}return a}var hM=jY;function Fke(t,e){for(var n=-1,i=t==null?0:t.length,a=Array(i);++ne||o&&r&&c&&!s&&!l||i&&r&&c||!n&&c||!a)return 1;if(!i&&!o&&!l&&t=s)return c;var l=n[i];return c*(l=="desc"?-1:1)}}return t.index-e.index}var nIe=rIe,sO=xh,iIe=gM,aIe=CEe,sIe=JEe,oIe=ZEe,lIe=_h,cIe=nIe,uIe=Pb,fIe=_s;function pIe(t,e,n){e.length?e=sO(e,function(o){return fIe(o)?function(r){return iIe(r,o.length===1?o[0]:o)}:o}):e=[uIe];var i=-1;e=sO(e,lIe(aIe));var a=sIe(t,function(o,r,s){var c=sO(e,function(l){return l(o)});return{criteria:c,index:++i,value:o}});return oIe(a,function(o,r){return cIe(o,r,n)})}var hIe=pIe;function dIe(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}var zY=dIe,mIe=zY,Rz=Math.max;function yIe(t,e,n){return e=Rz(e===void 0?t.length-1:e,0),function(){for(var i=arguments,a=-1,o=Rz(i.length-e,0),r=Array(o);++a0){if(++e>=SIe)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var kIe=DIe,OIe=AIe,EIe=kIe,IIe=EIe(OIe),CIe=IIe,TIe=Pb,jIe=gIe,MIe=CIe;function RIe(t,e){return MIe(jIe(t,e,TIe),t+"")}var Dh=RIe,NIe=jg,LIe=qg,FIe=A_,qIe=ll;function zIe(t,e,n){if(!qIe(n))return!1;var i=typeof e;return(i=="number"?LIe(n)&&FIe(e,n.length):i=="string"&&e in n)?NIe(n[e],t):!1}var PM=zIe,UIe=hM,BIe=hIe,VIe=Dh,Lz=PM,WIe=VIe(function(t,e){if(t==null)return[];var n=e.length;return n>1&&Lz(t,e[0],e[1])?e=[]:n>2&&Lz(e[0],e[1],e[2])&&(e=[e[0]]),BIe(t,UIe(e,1),[])}),UY=WIe;function HIe(t,e,n,i){for(var a=t.length,o=n+(i?1:-1);i?o--:++o-1}var bM=n2e;function i2e(t,e,n){for(var i=-1,a=t==null?0:t.length;++i=v2e){var l=e?null:y2e(t);if(l)return g2e(l);r=!1,a=m2e,c=new p2e}else c=e?[]:s;e:for(;++i2?e[2]:void 0;for(a&&x2e(e[0],e[1],a)&&(i=1);++n=120&&u.length>=120)?new I2e(r&&u):void 0}u=t[0];var f=-1,h=s[0];e:for(;++fArray.isArray(t)?t:[t],ro=t=>t===void 0,gw=t=>aS(t)||Array.isArray(t)?Object.keys(t):[],qd=(t,e)=>t.hasOwnProperty(e),dg=t=>fCe(_M(t)),Uz=t=>ro(t)||Array.isArray(t)&&t.length===0,dCe=(t,e,n,i)=>e&&qd(e,n)&&t&&qd(t,n)&&i(t[n],e[n]),cO=(t,e)=>ro(t)&&e===0||ro(e)&&t===0||il(t,e),mCe=(t,e)=>ro(t)&&e===!1||ro(e)&&t===!1||il(t,e),Bz=t=>ro(t)||il(t,{})||t===!0,vw=t=>ro(t)||il(t,{}),Vz=t=>ro(t)||aS(t)||t===!0||t===!1;function Wz(t,e){return Uz(t)&&Uz(e)?!0:il(dg(t),dg(e))}function yCe(t,e){return t=zz(t),e=zz(e),il(dg(t),dg(e))}function O$(t,e,n,i){var a=_M(gw(t).concat(gw(e)));return vw(t)&&vw(e)?!0:vw(t)&&gw(e).length||vw(e)&&gw(t).length?!1:a.every(function(o){var r=t[o],s=e[o];return Array.isArray(r)&&Array.isArray(s)?il(dg(t),dg(e)):Array.isArray(r)&&!Array.isArray(s)||Array.isArray(s)&&!Array.isArray(r)?!1:dCe(t,e,o,i)})}function gCe(t,e,n,i){return aS(t)&&aS(e)?i(t,e):Array.isArray(t)&&Array.isArray(e)?O$(t,e,n,i):il(t,e)}function uO(t,e,n,i){var a=qz(t,i),o=qz(e,i),r=hCe(a,o,i);return r.length===Math.max(a.length,o.length)}var vCe={title:il,uniqueItems:mCe,minLength:cO,minItems:cO,minProperties:cO,required:Wz,enum:Wz,type:yCe,items:gCe,anyOf:uO,allOf:uO,oneOf:uO,properties:O$,patternProperties:O$,dependencies:O$},PCe=["properties","patternProperties","dependencies","uniqueItems","minLength","minItems","minProperties","required"],bCe=["additionalProperties","additionalItems","contains","propertyNames","not"];function bC(t,e,n){if(n=pCe(n,{ignore:[]}),Bz(t)&&Bz(e))return!0;if(!Vz(t)||!Vz(e))throw new Error("Either of the values are not a JSON schema.");if(t===e)return!0;if(lO(t)&&lO(e))return t===e;if(t===void 0&&e===!1||e===void 0&&t===!1||ro(t)&&!ro(e)||!ro(t)&&ro(e))return!1;var i=_M(Object.keys(t).concat(Object.keys(e)));if(n.ignore.length&&(i=i.filter(o=>n.ignore.indexOf(o)===-1)),!i.length)return!0;function a(o,r){return bC(o,r,n)}return i.every(function(o){var r=t[o],s=e[o];if(bCe.indexOf(o)!==-1)return bC(r,s,n);var c=vCe[o];if(c||(c=il),il(r,s))return!0;if(PCe.indexOf(o)===-1&&(!qd(t,o)&&qd(e,o)||qd(t,o)&&!qd(e,o)))return r===s;var l=c(r,s,o,a);if(!lO(l))throw new Error("Comparer must return true or false");return l})}var xM=bC;function wCe(t){return Object.prototype.toString.call(t)==="[object Array]"}var DM=Array.isArray||wCe;function $Ce(t){return(typeof t=="number"||Object.prototype.toString.call(t)==="[object Number]")&&t.valueOf()===t.valueOf()}var ACe=$Ce,SCe=ACe;function _Ce(t){return SCe(t)&&t%1===0}var xCe=_Ce,DCe=DM,kCe=xCe;function OCe(t){var e;if(!DCe(t)||(e=t.length,!e))return!1;for(var n=0;ne&&(i=e,e=t,t=i),e=e-t}return n*t}function Kz(t,e){var n=0,i;if(t===0)return e;if(e===0)return t;for(;!(t&1)&&!(e&1);)t>>>=1,e>>>=1,n++;for(;!(t&1);)t>>>=1;for(;e;){for(;!(e&1);)e>>>=1;t>e&&(i=e,e=t,t=i),e=e-t}return t<1){if(i=e[0],n=e[1],!CCe(n))throw new TypeError("gcd()::invalid input argument. Accessor must be a function. Value: `"+n+"`.")}else i=e[0];else throw new TypeError("gcd()::invalid input argument. Must provide an array of integers. Value: `"+e[0]+"`.");if(a=i.length,a<2)return null;if(n){for(o=new Array(a),s=0;s1){if(i=e[0],n=e[1],!RCe(n))throw new TypeError("lcm()::invalid input argument. Accessor must be a function. Value: `"+n+"`.")}else i=e[0];else throw new TypeError("lcm()::invalid input argument. Must provide an array of integers. Value: `"+e[0]+"`.");if(a=i.length,a<2)return null;if(n){for(o=new Array(a),s=0;s1?n[a-1]:void 0,r=a>2?n[2]:void 0;for(o=t.length>3&&typeof o=="function"?(a--,o):void 0,r&&yTe(n[0],n[1],r)&&(o=a<3?void 0:o,a=1),e=Object(e);++i-1;)s!==t&&rU.call(s,c,1),rU.call(t,c,1);return t}var YTe=KTe,JTe=YTe;function QTe(t,e){return t&&t.length&&e&&e.length?JTe(t,e):t}var ZTe=QTe,XTe=Pb;function eje(t){return typeof t=="function"?t:XTe}var tje=eje,rje=hY,nje=qY,ije=tje,aje=_s;function sje(t,e){var n=aje(t)?rje:nje;return n(t,ije(e))}var aJ=sje,oje=__,lje=bM,cje=wM,uje=xh,fje=_h,pje=x_,hje=200;function dje(t,e,n,i){var a=-1,o=lje,r=!0,s=t.length,c=[],l=e.length;if(!s)return c;n&&(e=uje(e,fje(n))),i?(o=cje,r=!1):e.length>=hje&&(o=pje,r=!1,e=new oje(e));e:for(;++aAje($je(t.map(kM))),kje=(t,e)=>t.map(n=>n&&n[e]),oJ=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),kM=t=>sJ(t)||Array.isArray(t)?Object.keys(t):[],Oje=t=>t!==void 0,Eje=t=>sJ(t)||t===!0||t===!1,lJ=t=>!kM(t).length&&t!==!1&&t!==!0,Ije=(t,...e)=>_je.apply(null,[t].concat(wje(e)));var cJ={allUniqueKeys:Dje,deleteUndefinedProps:xje,getValues:kje,has:oJ,isEmptySchema:lJ,isSchema:Eje,keys:kM,notUndefined:Oje,uniqWith:Sje,withoutArr:Ije};const Cje=xM,Tje=aJ,{allUniqueKeys:jje,deleteUndefinedProps:Mje,getValues:Rje,keys:H0,notUndefined:Nje,uniqWith:Lje,withoutArr:nU}=cJ;function Fje(t){Tje(t,function(e,n){e===!1&&delete t[n]})}function iU(t,e){return jje(t).reduce(function(i,a){const o=Rje(t,a),r=Lje(o.filter(Nje),Cje);return i[a]=e(r,a),i},{})}var qje={keywords:["properties","patternProperties","additionalProperties"],resolver(t,e,n,i){i.ignoreAdditionalProperties||(t.forEach(function(o){const r=t.filter(u=>u!==o),s=H0(o.properties),l=H0(o.patternProperties).map(u=>new RegExp(u));r.forEach(function(u){const f=H0(u.properties),h=f.filter(m=>l.some(g=>g.test(m)));nU(f,s,h).forEach(function(m){u.properties[m]=n.properties([u.properties[m],o.additionalProperties],m)})})}),t.forEach(function(o){const r=t.filter(c=>c!==o),s=H0(o.patternProperties);o.additionalProperties===!1&&r.forEach(function(c){const l=H0(c.patternProperties);nU(l,s).forEach(f=>delete c.patternProperties[f])})}));const a={additionalProperties:n.additionalProperties(t.map(o=>o.additionalProperties)),patternProperties:iU(t.map(o=>o.patternProperties),n.patternProperties),properties:iU(t.map(o=>o.properties),n.properties)};return a.additionalProperties===!1&&Fje(a.properties),Mje(a)}};const zje=xM,Uje=aJ,{allUniqueKeys:Bje,deleteUndefinedProps:Vje,has:Wje,isSchema:uJ,notUndefined:fJ,uniqWith:Hje}=cJ;function Gje(t){Uje(t,function(e,n){e===!1&&t.splice(n,1)})}function Kje(t,e){return t.map(function(n){if(n)if(Array.isArray(n.items)){const i=n.items[e];if(uJ(i))return i;if(Wje(n,"additionalItems"))return n.additionalItems}else return n.items})}function Yje(t){return t.map(function(e){if(e)return Array.isArray(e.items)?e.additionalItems:e.items})}function Jje(t,e,n){return Bje(n).reduce(function(a,o){const r=Kje(t,o),s=Hje(r.filter(fJ),zje);return a[o]=e(s,o),a},[])}var Qje={keywords:["items","additionalItems"],resolver(t,e,n){const i=t.map(s=>s.items),a=i.filter(fJ),o={};a.every(uJ)?o.items=n.items(i):o.items=Jje(t,n.items,i);let r;return a.every(Array.isArray)?r=t.map(s=>s.additionalItems):a.some(Array.isArray)&&(r=Yje(t)),r&&(o.additionalItems=n.additionalItems(r)),o.additionalItems===!1&&Array.isArray(o.items)&&Gje(o.items),Vje(o)}};const pJ=IDe,sS=xM,Zje=LCe,Xje=kTe,hJ=nJ,OM=iJ,eMe=FTe,tMe=KY,wC=TY,mg=k_,rMe=ZTe,dJ=UY,EM=$M,im=AM,mJ=qje,yJ=Qje,bw=(t,e)=>t.indexOf(e)!==-1,nMe=t=>mg(t)||t===!0||t===!1,iMe=t=>t===!1,gJ=t=>t===!0,O_=(t,e,n)=>n(t),vJ=t=>dJ(EM(OM(t))),oS=t=>t!==void 0,PJ=t=>EM(OM(t.map(uMe))),Bg=t=>t[0],aMe=t=>vJ(t),bb=t=>Math.max.apply(Math,t),wb=t=>Math.min.apply(Math,t),sMe=t=>t.some(gJ),oMe=t=>im(hJ(t),wC);function lMe(t){return function(e,n){return sS({[t]:e},{[t]:n})}}function bJ(t){let{allOf:e=[],...n}=t;return n=mg(t)?n:t,[n,...e.map(bJ)]}function wJ(t,e){return t.map(n=>n&&n[e])}function cMe(t,e){return t.map(function(n,i){try{return e(n,i)}catch{return}}).filter(oS)}function uMe(t){return mg(t)||Array.isArray(t)?Object.keys(t):[]}function $C(t,e){if(e=e||[],!t.length)return e;const n=t.slice(0).shift(),i=t.slice(1);return e.length?$C(i,hJ(e.map(a=>n.map(o=>[o].concat(a))))):$C(i,n.map(a=>a))}function $J(t,e){let n;try{n=t.map(function(i){return JSON.stringify(i,null,2)}).join(` -`)}catch{n=t.join(", ")}throw new Error('Could not resolve values for path:"'+e.join(".")+`". They are probably incompatible. Values: -`+n)}function fMe(t,e,n,i,a,o){if(t.length){const r=a.complexResolvers[e];if(!r||!r.resolver)throw new Error("No resolver found for "+e);const s=n.map(f=>t.reduce((h,d)=>(f[d]!==void 0&&(h[d]=f[d]),h),{})),c=im(s,sS),l=r.keywords.reduce((f,h)=>({...f,[h]:(d,m=[])=>i(d,null,o.concat(h,m))}),{}),u=r.resolver(c,o.concat(e),l,a);return mg(u)||$J(c,o.concat(e)),u}}function pMe(t){return{required:t}}const hMe=["properties","patternProperties","definitions","dependencies"],dMe=["anyOf","oneOf"],mMe=["additionalProperties","additionalItems","contains","propertyNames","not","items"],yr={type(t){if(t.some(Array.isArray)){const e=t.map(function(i){return Array.isArray(i)?i:[i]}),n=eMe.apply(null,e);if(n.length===1)return n[0];if(n.length>1)return EM(n)}},dependencies(t,e,n){return PJ(t).reduce(function(a,o){const r=wJ(t,o);let s=im(r.filter(oS),wC);const c=s.filter(Array.isArray);if(c.length){if(c.length===s.length)a[o]=vJ(s);else{const l=s.filter(nMe),u=c.map(pMe);a[o]=n(l.concat(u),o)}return a}return s=im(s,sS),a[o]=n(s,o),a},{})},oneOf(t,e,n){const i=$C(pJ(t)),a=cMe(i,n),o=im(a,sS);if(o.length)return o},not(t){return{anyOf:t}},pattern(t){return t.map(e=>"(?="+e+")").join("")},multipleOf(t){let e=t.slice(0),n=1;for(;e.some(i=>!Number.isInteger(i));)e=e.map(i=>i*10),n=n*10;return Zje(e)/n},enum(t){const e=tMe.apply(null,t.concat(wC));if(e.length)return dJ(e)}};yr.$id=Bg;yr.$ref=Bg;yr.$schema=Bg;yr.additionalItems=O_;yr.additionalProperties=O_;yr.anyOf=yr.oneOf;yr.contains=O_;yr.default=Bg;yr.definitions=yr.dependencies;yr.description=Bg;yr.examples=oMe;yr.exclusiveMaximum=wb;yr.exclusiveMinimum=bb;yr.items=yJ;yr.maximum=wb;yr.maxItems=wb;yr.maxLength=wb;yr.maxProperties=wb;yr.minimum=bb;yr.minItems=bb;yr.minLength=bb;yr.minProperties=bb;yr.properties=mJ;yr.propertyNames=O_;yr.required=aMe;yr.title=Bg;yr.uniqueItems=sMe;const yMe={properties:mJ,items:yJ};function IM(t,e,n){e=Xje(e,{ignoreAdditionalProperties:!1,resolvers:yr,complexResolvers:yMe,deep:!0});const i=Object.entries(e.complexResolvers);function a(s,c,l){s=pJ(s.filter(oS)),l=l||[];const u=mg(c)?c:{};if(!s.length)return;if(s.some(iMe))return!1;if(s.every(gJ))return!0;s=s.filter(mg);const f=PJ(s);if(e.deep&&bw(f,"allOf"))return IM({allOf:s},e);const h=i.map(([d,m])=>f.filter(g=>m.keywords.includes(g)));return h.forEach(d=>rMe(f,d)),f.forEach(function(d){const m=wJ(s,d),g=im(m.filter(oS),lMe(d));if(g.length===1&&bw(dMe,d))u[d]=g[0].map(b=>a([b],b));else if(g.length===1&&!bw(hMe,d)&&!bw(mMe,d))u[d]=g[0];else{const b=e.resolvers[d]||e.resolvers.defaultResolver;if(!b)throw new Error("No resolver found for key "+d+". You can provide a resolver for this keyword in the options, or provide a default resolver.");const v=(P,A=[])=>a(P,null,l.concat(d,A));u[d]=b(g,l.concat(d),v,e),u[d]===void 0?$J(g,l.concat(d)):u[d]===void 0&&delete u[d]}}),i.reduce((d,[m,g],b)=>({...d,...fMe(h[b],m,s,a,e,l)}),u)}const o=OM(bJ(t));return a(o)}IM.options={resolvers:yr};var gMe=IM;const aU=jS(gMe),vMe=(t,e)=>t.reduce((n,i)=>{var a;return(n[a=e(i)]||(n[a]=[])).push(i),n},{}),AJ=(t,e)=>t.status!==200?Promise.reject(`Error while fetching URI \`${e}\` (status code \`${t.status}\`).`):t.text(),PMe=(t,e)=>t.status!==200?Promise.reject(`Error while fetching URI \`${e}\` (status code \`${t.status}\`).`):t.json(),jl=(t,e)=>[{message:t,path:e}],ww=(t,e)=>e.length>0?`${t} (schema path: "${e.map(n=>n.replace("/","\\/")).join("/")}")`:t,bMe=t=>vMe(t,e=>e.source??""),Hv=(t,e,n=[])=>{var a;const i=[];return t.allOf||e.allOf?Hv(t.allOf?aU(t.allOf):t,e.allOf?aU(e.allOf):e):(e.type&&t.type!==e.type&&i.push(ww(`Schema type must be "${e.type}".`,n)),e.format&&t.format!==e.format&&i.push(ww(`Schema format must be "${e.format}".`,n)),e.type==="object"&&t.type==="object"&&((a=e.required)==null||a.forEach(o=>{var r;(r=t.required)!=null&&r.includes(o)||i.push(ww(`Property "${o}" must be required.`,n))}),Object.entries(e.properties??{}).forEach(([o,r])=>{var c;const s=(t.properties??{})[o];!s&&((c=e.required)!=null&&c.includes(o))&&i.push(ww(`Required property "${o}" is missing.`,n)),s&&Hv(s,r,[...n,o]).forEach(l=>i.push(l))})),e.type==="array"&&t.type==="array"&&Hv(t.items,e.items,n).forEach(o=>i.push(o)),i)},wMe=[s0e(),qj(n0e()),A0e()],$Me=({spec:t,uri:e})=>{const[n,i]=We.useState("{}"),[a,o]=We.useState(!1),[r,s]=We.useState(),[c,l]=We.useState([]),[u,f]=We.useState({}),h=We.useRef(null);return We.useEffect(()=>{i(t.example),l(t.linters)},[t]),We.useEffect(()=>{e&&(s(void 0),o(!0),f({}),fetch(e).then(d=>AJ(d,e)).then(d=>t.responseMapper?t.responseMapper(d):Promise.resolve({content:d})).then(d=>{o(!1),i(d.content),l(d.linters??t.linters)}).catch(d=>{o(!1),s(d)}))},[e,t]),Lt.jsxs("div",{className:"flex h-full",children:[Lt.jsx("div",{className:"w-[50%] min-w-[400px] overflow-auto",children:Lt.jsx(lY,{ref:h,value:n,extensions:[...wMe,...c.map(d=>d.linter)],onUpdate:d=>{r||(d.transactions.forEach(m=>{m.effects.forEach(g=>{if(g.is(hb)){const b=[];S0e(d.state,v=>b.push(v)),f(bMe(b)),o(!1)}})}),d.docChanged&&(i(d.state.doc.toString()),o(!0)))}})}),Lt.jsxs("div",{className:"flex-1 overflow-auto p-4 bg-sky-100 text-sm",children:[a&&Lt.jsx("p",{children:"Checking..."}),!a&&r&&Lt.jsx("div",{className:"mb-4 p-4 bg-red-500 text-white rounded shadow-lg",children:r}),!a&&!r&&c.map(d=>Lt.jsx("div",{children:u[d.name]?Lt.jsxs(Lt.Fragment,{children:[Lt.jsxs("div",{className:"mb-4 p-4 bg-red-500 text-white rounded shadow-lg",children:["[",d.name,"] Found ",u[d.name].length," linting error(s)."]}),Lt.jsx("ul",{children:u[d.name].map((m,g)=>Lt.jsx("li",{children:Lt.jsxs("div",{className:mbe("mb-4 p-4 rounded shadow-lg",{"bg-red-200":m.severity==="error","bg-yellow-100":m.severity==="warning","bg-white":m.severity==="info"||m.severity==="hint"}),children:[m.message," ",Lt.jsx("span",{className:"text-blue-600 underline",children:Lt.jsx("a",{className:"cursor-pointer",onClick:()=>{var b,v;return(v=(b=h.current)==null?void 0:b.view)==null?void 0:v.dispatch({selection:Ve.single(m.from,m.to),scrollIntoView:!0})},children:"(show)"})})]})},g))})]}):Lt.jsxs("div",{className:"mb-4 p-4 bg-green-600 text-white rounded shadow-lg",children:["[",d.name,"] No violations found."]})},d.name))]})]})},AMe=()=>Lt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 96 96",className:"h-[24px]",children:Lt.jsx("path",{fill:"#fff",d:"M48.854 0C21.839 0 0 22 0 49.217c0 21.756 13.993 40.172 33.405 46.69 2.427.49 3.316-1.059 3.316-2.362 0-1.141-.08-5.052-.08-9.127-13.59 2.934-16.42-5.867-16.42-5.867-2.184-5.704-5.42-7.17-5.42-7.17-4.448-3.015.324-3.015.324-3.015 4.934.326 7.523 5.052 7.523 5.052 4.367 7.496 11.404 5.378 14.235 4.074.404-3.178 1.699-5.378 3.074-6.6-10.839-1.141-22.243-5.378-22.243-24.283 0-5.378 1.94-9.778 5.014-13.2-.485-1.222-2.184-6.275.486-13.038 0 0 4.125-1.304 13.426 5.052a46.97 46.97 0 0 1 12.214-1.63c4.125 0 8.33.571 12.213 1.63 9.302-6.356 13.427-5.052 13.427-5.052 2.67 6.763.97 11.816.485 13.038 3.155 3.422 5.015 7.822 5.015 13.2 0 18.905-11.404 23.06-22.324 24.283 1.78 1.548 3.316 4.481 3.316 9.126 0 6.6-.08 11.897-.08 13.526 0 1.304.89 2.853 3.316 2.364 19.412-6.52 33.405-24.935 33.405-46.691C97.707 22 75.788 0 48.854 0z"})}),SMe="Feature",_Me="DENW19AL0000giv5BL",xMe=["[ogc-json-fg-1-0.2:core]","[ogc-json-fg-1-0.2:types-schemas]","[ogc-json-fg-1-0.2:3d]"],DMe="app:building",kMe="https://example.org/data/v1/collections/buildings/schema",OMe={interval:["2014-04-24T10:50:18Z",".."]},EMe="http://www.opengis.net/def/crs/EPSG/0/5555",IMe={type:"Polyhedron",coordinates:[[[[[479816.67,5705861672e-3,100],[479822.187,5705866783e-3,100],[479829.666,5705858785e-3,100],[479824.155,5705853684e-3,100],[479816.67,5705861672e-3,100]]],[[[479816.67,5705861672e-3,110],[479824.155,5705853684e-3,110],[479829.666,5705858785e-3,120],[479822.187,5705866783e-3,120],[479816.67,5705861672e-3,110]]],[[[479816.67,5705861672e-3,110],[479816.67,5705861672e-3,100],[479824.155,5705853684e-3,100],[479824.155,5705853684e-3,110],[479816.67,5705861672e-3,110]]],[[[479824.155,5705853684e-3,110],[479824.155,5705853684e-3,100],[479829.666,5705858785e-3,100],[479829.666,5705858785e-3,120],[479824.155,5705853684e-3,110]]],[[[479829.666,5705858785e-3,120],[479829.666,5705858785e-3,100],[479822.187,5705866783e-3,100],[479822.187,5705866783e-3,120],[479829.666,5705858785e-3,120]]],[[[479822.187,5705866783e-3,120],[479822.187,5705866783e-3,100],[479816.67,5705861672e-3,100],[479816.67,5705861672e-3,110],[479822.187,5705866783e-3,120]]]]]},CMe={type:"Polygon",coordinates:[[[8.7092045,51.5035285,100],[8.7093128,51.503457,100],[8.7093919,51.503503,100],[8.7092837,51.5035747,100],[8.7092045,51.5035285,100]]]},TMe={lastChange:"2014-04-24T10:50:18Z",built:"2012-03",function:"Agricultural building",height_m:20,owners:[{href:"https://example.org/john-doe",title:"John Doe"},{href:"https://example.org/jane-doe",title:"Jane Doe"}]},jMe={type:SMe,id:_Me,conformsTo:xMe,featureType:DMe,featureSchema:kMe,time:OMe,coordRefSys:EMe,place:IMe,geometry:CMe,properties:TMe};var AC=(t=>(t.FEATURE="Feature",t.FEATURECOLLECTION="FeatureCollection",t))(AC||{}),dr=(t=>(t.POINT="Point",t.MULTIPOINT="MultiPoint",t.LINESTRING="LineString",t.MULTILINESTRING="MultiLineString",t.POLYGON="Polygon",t.MULTIPOLYGON="MultiPolygon",t.POLYHEDRON="Polyhedron",t.MULTIPOLYHEDRON="MultiPolyhedron",t.PRISM="Prism",t.MULTIPRISM="MultiPrism",t.GEOMETRYCOLLECTION="GeometryCollection",t))(dr||{});const Xs={STRING:"String",NUMBER:"Number",TRUE:"True",FALSE:"False",NULL:"Null",OBJECT:"Object",ARRAY:"Array",PROPERTY:"Property",PROPERTY_NAME:"PropertyName",JSON_TEXT:"JsonText"},MMe=[Xs.STRING,Xs.NUMBER,Xs.TRUE,Xs.FALSE,Xs.NULL],RMe=[Xs.OBJECT,Xs.ARRAY],NMe=t=>t.replace(/^"(.*)"$/,"$1").replace(/^'(.*)'$/,"$1"),LMe=(t,e,n=!0)=>{const i=e?t.sliceString(e.from,e.to):"";return n?NMe(i):i},SJ=t=>{const e=[];let n=t.firstChild;for(;n;)n&&e.push(n),n=n==null?void 0:n.nextSibling;return e},FMe=t=>SJ(t).filter(e=>_J(e)),qMe=(t,e)=>FMe(t).findIndex(n=>n.from===e.from&&n.to===e.to),zMe=(t,e)=>SJ(t).find(n=>n.name===e)??null,_J=t=>[...MMe,...RMe].includes(t.name),UMe=(t,e)=>{const n=[];for(let i=e;i!=null&&i.parent;i=i.parent)if(i.parent.name===Xs.PROPERTY){const a=zMe(i.parent,Xs.PROPERTY_NAME);a&&n.unshift(LMe(t,a))}else if(i.parent.name===Xs.ARRAY&&_J(i)){const a=qMe(i.parent,i);n.unshift(`${a}`)}return"/"+n.join("/")},BMe=t=>{const e=Mi(t),n=new Map;return e.cursor().iterate(i=>{var s,c;const a=i.node,o=(s=a.nextSibling)==null?void 0:s.node,r=UMe(t.doc,a);return o&&Xs.PROPERTY_NAME===i.name&&n.set(r,{keyFrom:a.from,keyTo:a.to,valueFrom:o.from,valueTo:o.to}),(a.parent===null||Xs.ARRAY===((c=a.parent)==null?void 0:c.name)&&!["[","]"].includes(a.name))&&n.set(r,{valueFrom:a.from,valueTo:a.to}),!0}),n},VMe="http://www.opengis.net/spec/json-fg-1/0.2/conf/3d",WMe="[ogc-json-fg-1-0.2:3d]",HMe=[dr.POLYHEDRON,dr.MULTIPOLYHEDRON,dr.PRISM,dr.MULTIPRISM],sU=t=>t.conformsTo!==void 0&&(t.conformsTo.includes(VMe)||t.conformsTo.includes(WMe)),oU=t=>t.place&&HMe.includes(t.place.type),xJ=[];xJ.push({name:"/req/3d/metadata",validateFeature:(t,e)=>{if(e&&oU(t)&&!sU(t))return{pointer:"/conformsTo",message:'When having 3D geometries, the "conformsTo" member of the JSON document SHALL include at least the 3D conformance class.'}},validateFeatureCollection:t=>{if(t.features.some(e=>oU(e))&&!sU(t))return{pointer:"/conformsTo",message:'When having 3D geometries, the "conformsTo" member of the JSON document SHALL include at least the 3D conformance class.'}}});const GMe=[dr.POINT,dr.MULTIPOINT,dr.LINESTRING,dr.MULTILINESTRING,dr.POLYGON,dr.MULTIPOLYGON,dr.GEOMETRYCOLLECTION],lU=["http://www.opengis.net/def/crs/OGC/0/CRS84","http://www.opengis.net/def/crs/OGC/0/CRS84h","[OGC:CRS84]","[OGC:CRS84h]"],fp=t=>typeof t[0]=="number"?[t.length]:t.flatMap(e=>fp(e)),wv=(t,e)=>typeof t[0]=="number"?[t[e]]:t.flatMap(n=>wv(n,e)),cU=t=>GMe.includes(t.type),uU=t=>{if(typeof t=="string")return lU.includes(t);if(!Array.isArray(t)&&t.type==="Reference"){const e=t;return e.epoch===void 0&&lU.includes(e.href)}else return!1},Vg=[];Vg.push({name:"/req/core/coordinate-dimension",validateFeature:t=>{if(t.geometry){const e=t.geometry,n=e.type===dr.GEOMETRYCOLLECTION?e.geometries.flatMap(i=>fp(i.coordinates)):fp(e.coordinates);if(n.some(i=>i!==n[0]))return{pointer:"/geometry",message:"All positions in a geometry object SHALL have the same dimension."}}if(t.place){const e=t.place;let n=[];if(e.type===dr.PRISM?n=fp(e.base.coordinates):e.type===dr.MULTIPRISM?n=e.prisms.flatMap(i=>fp(i.base.coordinates)):e.type===dr.GEOMETRYCOLLECTION?n=e.geometries.flatMap(i=>fp(i.coordinates)):n=fp(e.coordinates),n.some(i=>i!==n[0]))return{pointer:"/place",message:"All positions in a geometry object SHALL have the same dimension."}}}});Vg.push({name:"/req/core/geometry-wgs84",validateFeature:t=>{if(t.geometry){const e=t.geometry;if((e.type===dr.GEOMETRYCOLLECTION?e.geometries.flatMap(a=>wv(a.coordinates,0)):wv(e.coordinates,0)).some(a=>a<-180||a>180))return{pointer:"/geometry",message:"The first element of each position SHALL be between -180 and +180 decimal degrees longitude."};if((e.type===dr.GEOMETRYCOLLECTION?e.geometries.flatMap(a=>wv(a.coordinates,1)):wv(e.coordinates,1)).some(a=>a<-90||a>90))return{pointer:"/geometry",message:"The second element of each position SHALL be between -90 and +90 decimal degrees latitude."}}}});Vg.push({name:"/req/core/place",validateFeature:(t,e)=>{if(e&&t.place){const i=t.place.coordRefSys??t.coordRefSys;if(cU(t.place)&&(i===void 0||uU(i)))return{pointer:"/place",message:'If the "place" member in any JSON-FG feature in the JSON document is not null and the geometry type (member "type") is one of "Point", "MultiPoint", "LineString", "MultiLineString", "Polygon", "MultiPolygon" or "GeometryCollection", the CRS SHALL not be OGC:CRS84 or OGC:CRS84h (WGS 84 with axis order longitude/latitude).'}}},validateFeatureCollection:t=>{for(let e=0;e{if(t.place){const e=t.place;if(e.type===dr.GEOMETRYCOLLECTION&&e.geometries.some(n=>n.coordRefSys!==void 0)||e.type===dr.PRISM&&e.base.coordRefSys!==void 0||e.type===dr.MULTIPRISM&&e.prisms.some(n=>n.coordRefSys!==void 0||n.base.coordRefSys!==void 0))return{pointer:"/place",message:'If the "place" member in any JSON-FG feature in the JSON document is not null and the geometry type (member "type") is "GeometryCollection" or any other geometry type that has embedded geometry objects, no embedded geometry object SHALL include a "coordRefSys" member.'}}}});Vg.push({name:"/req/core/fallback",validateFeature:t=>{if(t.place&&t.geometry&&JSON.stringify(t.place)===JSON.stringify(t.geometry))return{pointer:"/place",message:'If both the "place" and the "geometry" member in a JSON-FG feature in the JSON document are not null, the values of both members SHALL not be identical.'}}});const KMe="http://www.opengis.net/spec/json-fg-1/0.2/conf/core",YMe="[ogc-json-fg-1-0.2:core]",fU=t=>t.conformsTo!==void 0&&(t.conformsTo.includes(KMe)||t.conformsTo.includes(YMe)),DJ=[];DJ.push({name:"/req/core/metadata",validateFeature:(t,e)=>{const n=t.conformsTo;if(e&&n===void 0)return{pointer:"/",message:'The JSON document SHALL include a "conformsTo" member.'};if(e&&n!==void 0&&!fU(t))return{pointer:"/conformsTo",message:'The "conformsTo" member of the JSON document SHALL include at least the core conformance class.'};if(!e&&n!==void 0)return{pointer:"/conformsTo",message:'Only the root object of the JSON document SHALL include a "conformsTo" member.'}},validateFeatureCollection:t=>{const e=t.conformsTo;if(e===void 0)return{pointer:"/",message:'The JSON document SHALL include a "conformsTo" member.'};if(e!==void 0&&!fU(t))return{pointer:"/conformsTo",message:'The "conformsTo" member of the JSON document SHALL include at least the core conformance class.'}}});class kh extends Error{}class JMe extends kh{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class QMe extends kh{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class ZMe extends kh{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class zd extends kh{}class kJ extends kh{constructor(e){super(`Invalid unit ${e}`)}}class Wi extends kh{}class Mu extends kh{constructor(){super("Zone is an abstract class")}}const rt="numeric",al="short",ys="long",lS={year:rt,month:rt,day:rt},OJ={year:rt,month:al,day:rt},XMe={year:rt,month:al,day:rt,weekday:al},EJ={year:rt,month:ys,day:rt},IJ={year:rt,month:ys,day:rt,weekday:ys},CJ={hour:rt,minute:rt},TJ={hour:rt,minute:rt,second:rt},jJ={hour:rt,minute:rt,second:rt,timeZoneName:al},MJ={hour:rt,minute:rt,second:rt,timeZoneName:ys},RJ={hour:rt,minute:rt,hourCycle:"h23"},NJ={hour:rt,minute:rt,second:rt,hourCycle:"h23"},LJ={hour:rt,minute:rt,second:rt,hourCycle:"h23",timeZoneName:al},FJ={hour:rt,minute:rt,second:rt,hourCycle:"h23",timeZoneName:ys},qJ={year:rt,month:rt,day:rt,hour:rt,minute:rt},zJ={year:rt,month:rt,day:rt,hour:rt,minute:rt,second:rt},UJ={year:rt,month:al,day:rt,hour:rt,minute:rt},BJ={year:rt,month:al,day:rt,hour:rt,minute:rt,second:rt},eRe={year:rt,month:al,day:rt,weekday:al,hour:rt,minute:rt},VJ={year:rt,month:ys,day:rt,hour:rt,minute:rt,timeZoneName:al},WJ={year:rt,month:ys,day:rt,hour:rt,minute:rt,second:rt,timeZoneName:al},HJ={year:rt,month:ys,day:rt,weekday:ys,hour:rt,minute:rt,timeZoneName:ys},GJ={year:rt,month:ys,day:rt,weekday:ys,hour:rt,minute:rt,second:rt,timeZoneName:ys};class $b{get type(){throw new Mu}get name(){throw new Mu}get ianaName(){return this.name}get isUniversal(){throw new Mu}offsetName(e,n){throw new Mu}formatOffset(e,n){throw new Mu}offset(e){throw new Mu}equals(e){throw new Mu}get isValid(){throw new Mu}}let fO=null;class E_ extends $b{static get instance(){return fO===null&&(fO=new E_),fO}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:n,locale:i}){return rQ(e,n,i)}formatOffset(e,n){return Gv(this.offset(e),n)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return!0}}let E$={};function tRe(t){return E$[t]||(E$[t]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),E$[t]}const rRe={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function nRe(t,e){const n=t.format(e).replace(/\u200E/g,""),i=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n),[,a,o,r,s,c,l,u]=i;return[r,a,o,s,c,l,u]}function iRe(t,e){const n=t.formatToParts(e),i=[];for(let a=0;a=0?m:1e3+m,(h-d)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}}let pU={};function aRe(t,e={}){const n=JSON.stringify([t,e]);let i=pU[n];return i||(i=new Intl.ListFormat(t,e),pU[n]=i),i}let SC={};function _C(t,e={}){const n=JSON.stringify([t,e]);let i=SC[n];return i||(i=new Intl.DateTimeFormat(t,e),SC[n]=i),i}let xC={};function sRe(t,e={}){const n=JSON.stringify([t,e]);let i=xC[n];return i||(i=new Intl.NumberFormat(t,e),xC[n]=i),i}let DC={};function oRe(t,e={}){const{base:n,...i}=e,a=JSON.stringify([t,i]);let o=DC[a];return o||(o=new Intl.RelativeTimeFormat(t,e),DC[a]=o),o}let $v=null;function lRe(){return $v||($v=new Intl.DateTimeFormat().resolvedOptions().locale,$v)}let hU={};function cRe(t){let e=hU[t];if(!e){const n=new Intl.Locale(t);e="getWeekInfo"in n?n.getWeekInfo():n.weekInfo,hU[t]=e}return e}function uRe(t){const e=t.indexOf("-x-");e!==-1&&(t=t.substring(0,e));const n=t.indexOf("-u-");if(n===-1)return[t];{let i,a;try{i=_C(t).resolvedOptions(),a=t}catch{const c=t.substring(0,n);i=_C(c).resolvedOptions(),a=c}const{numberingSystem:o,calendar:r}=i;return[a,o,r]}}function fRe(t,e,n){return(n||e)&&(t.includes("-u-")||(t+="-u"),n&&(t+=`-ca-${n}`),e&&(t+=`-nu-${e}`)),t}function pRe(t){const e=[];for(let n=1;n<=12;n++){const i=At.utc(2009,n,1);e.push(t(i))}return e}function hRe(t){const e=[];for(let n=1;n<=7;n++){const i=At.utc(2016,11,13+n);e.push(t(i))}return e}function Aw(t,e,n,i){const a=t.listingMode();return a==="error"?null:a==="en"?n(e):i(e)}function dRe(t){return t.numberingSystem&&t.numberingSystem!=="latn"?!1:t.numberingSystem==="latn"||!t.locale||t.locale.startsWith("en")||new Intl.DateTimeFormat(t.intl).resolvedOptions().numberingSystem==="latn"}class mRe{constructor(e,n,i){this.padTo=i.padTo||0,this.floor=i.floor||!1;const{padTo:a,floor:o,...r}=i;if(!n||Object.keys(r).length>0){const s={useGrouping:!1,...i};i.padTo>0&&(s.minimumIntegerDigits=i.padTo),this.inf=sRe(e,s)}}format(e){if(this.inf){const n=this.floor?Math.floor(e):e;return this.inf.format(n)}else{const n=this.floor?Math.floor(e):RM(e,3);return Qn(n,this.padTo)}}}class yRe{constructor(e,n,i){this.opts=i,this.originalZone=void 0;let a;if(this.opts.timeZone)this.dt=e;else if(e.zone.type==="fixed"){const r=-1*(e.offset/60),s=r>=0?`Etc/GMT+${r}`:`Etc/GMT${r}`;e.offset!==0&&uu.create(s).valid?(a=s,this.dt=e):(a="UTC",this.dt=e.offset===0?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else e.zone.type==="system"?this.dt=e:e.zone.type==="iana"?(this.dt=e,a=e.zone.name):(a="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);const o={...this.opts};o.timeZone=o.timeZone||a,this.dtf=_C(n,o)}format(){return this.originalZone?this.formatToParts().map(({value:e})=>e).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map(n=>{if(n.type==="timeZoneName"){const i=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...n,value:i}}else return n}):e}resolvedOptions(){return this.dtf.resolvedOptions()}}class gRe{constructor(e,n,i){this.opts={style:"long",...i},!n&&eQ()&&(this.rtf=oRe(e,i))}format(e,n){return this.rtf?this.rtf.format(e,n):qRe(n,e,this.opts.numeric,this.opts.style!=="long")}formatToParts(e,n){return this.rtf?this.rtf.formatToParts(e,n):[]}}const vRe={firstDay:1,minimalDays:4,weekend:[6,7]};class $r{static fromOpts(e){return $r.create(e.locale,e.numberingSystem,e.outputCalendar,e.weekSettings,e.defaultToEN)}static create(e,n,i,a,o=!1){const r=e||pn.defaultLocale,s=r||(o?"en-US":lRe()),c=n||pn.defaultNumberingSystem,l=i||pn.defaultOutputCalendar,u=kC(a)||pn.defaultWeekSettings;return new $r(s,c,l,u,r)}static resetCache(){$v=null,SC={},xC={},DC={}}static fromObject({locale:e,numberingSystem:n,outputCalendar:i,weekSettings:a}={}){return $r.create(e,n,i,a)}constructor(e,n,i,a,o){const[r,s,c]=uRe(e);this.locale=r,this.numberingSystem=n||s||null,this.outputCalendar=i||c||null,this.weekSettings=a,this.intl=fRe(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=o,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=dRe(this)),this.fastNumbersCached}listingMode(){const e=this.isEnglish(),n=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return e&&n?"en":"intl"}clone(e){return!e||Object.getOwnPropertyNames(e).length===0?this:$r.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,kC(e.weekSettings)||this.weekSettings,e.defaultToEN||!1)}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,n=!1){return Aw(this,e,aQ,()=>{const i=n?{month:e,day:"numeric"}:{month:e},a=n?"format":"standalone";return this.monthsCache[a][e]||(this.monthsCache[a][e]=pRe(o=>this.extract(o,i,"month"))),this.monthsCache[a][e]})}weekdays(e,n=!1){return Aw(this,e,lQ,()=>{const i=n?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},a=n?"format":"standalone";return this.weekdaysCache[a][e]||(this.weekdaysCache[a][e]=hRe(o=>this.extract(o,i,"weekday"))),this.weekdaysCache[a][e]})}meridiems(){return Aw(this,void 0,()=>cQ,()=>{if(!this.meridiemCache){const e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[At.utc(2016,11,13,9),At.utc(2016,11,13,19)].map(n=>this.extract(n,e,"dayperiod"))}return this.meridiemCache})}eras(e){return Aw(this,e,uQ,()=>{const n={era:e};return this.eraCache[e]||(this.eraCache[e]=[At.utc(-40,1,1),At.utc(2017,1,1)].map(i=>this.extract(i,n,"era"))),this.eraCache[e]})}extract(e,n,i){const a=this.dtFormatter(e,n),o=a.formatToParts(),r=o.find(s=>s.type.toLowerCase()===i);return r?r.value:null}numberFormatter(e={}){return new mRe(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,n={}){return new yRe(e,this.intl,n)}relFormatter(e={}){return new gRe(this.intl,this.isEnglish(),e)}listFormatter(e={}){return aRe(this.intl,e)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:tQ()?cRe(this.locale):vRe}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}}let pO=null;class va extends $b{static get utcInstance(){return pO===null&&(pO=new va(0)),pO}static instance(e){return e===0?va.utcInstance:new va(e)}static parseSpecifier(e){if(e){const n=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(n)return new va(T_(n[1],n[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${Gv(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${Gv(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,n){return Gv(this.fixed,n)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return e.type==="fixed"&&e.fixed===this.fixed}get isValid(){return!0}}class PRe extends $b{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function nf(t,e){if(jt(t)||t===null)return e;if(t instanceof $b)return t;if(_Re(t)){const n=t.toLowerCase();return n==="default"?e:n==="local"||n==="system"?E_.instance:n==="utc"||n==="gmt"?va.utcInstance:va.parseSpecifier(n)||uu.create(t)}else return _f(t)?va.instance(t):typeof t=="object"&&"offset"in t&&typeof t.offset=="function"?t:new PRe(t)}const CM={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},dU={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},bRe=CM.hanidec.replace(/[\[|\]]/g,"").split("");function wRe(t){let e=parseInt(t,10);if(isNaN(e)){e="";for(let n=0;n=o&&i<=r&&(e+=i-o)}}return parseInt(e,10)}else return e}let md={};function $Re(){md={}}function Co({numberingSystem:t},e=""){const n=t||"latn";return md[n]||(md[n]={}),md[n][e]||(md[n][e]=new RegExp(`${CM[n]}${e}`)),md[n][e]}let mU=()=>Date.now(),yU="system",gU=null,vU=null,PU=null,bU=60,wU,$U=null;class pn{static get now(){return mU}static set now(e){mU=e}static set defaultZone(e){yU=e}static get defaultZone(){return nf(yU,E_.instance)}static get defaultLocale(){return gU}static set defaultLocale(e){gU=e}static get defaultNumberingSystem(){return vU}static set defaultNumberingSystem(e){vU=e}static get defaultOutputCalendar(){return PU}static set defaultOutputCalendar(e){PU=e}static get defaultWeekSettings(){return $U}static set defaultWeekSettings(e){$U=kC(e)}static get twoDigitCutoffYear(){return bU}static set twoDigitCutoffYear(e){bU=e%100}static get throwOnInvalid(){return wU}static set throwOnInvalid(e){wU=e}static resetCaches(){$r.resetCache(),uu.resetCache(),At.resetCache(),$Re()}}class Ko{constructor(e,n){this.reason=e,this.explanation=n}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const KJ=[0,31,59,90,120,151,181,212,243,273,304,334],YJ=[0,31,60,91,121,152,182,213,244,274,305,335];function no(t,e){return new Ko("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${t}, which is invalid`)}function TM(t,e,n){const i=new Date(Date.UTC(t,e-1,n));t<100&&t>=0&&i.setUTCFullYear(i.getUTCFullYear()-1900);const a=i.getUTCDay();return a===0?7:a}function JJ(t,e,n){return n+(Ab(t)?YJ:KJ)[e-1]}function QJ(t,e){const n=Ab(t)?YJ:KJ,i=n.findIndex(o=>oUP(i,e,n)?(l=i+1,c=1):l=i,{weekYear:l,weekNumber:c,weekday:s,...j_(t)}}function AU(t,e=4,n=1){const{weekYear:i,weekNumber:a,weekday:o}=t,r=jM(TM(i,1,e),n),s=am(i);let c=a*7+o-r-7+e,l;c<1?(l=i-1,c+=am(l)):c>s?(l=i+1,c-=am(i)):l=i;const{month:u,day:f}=QJ(l,c);return{year:l,month:u,day:f,...j_(t)}}function hO(t){const{year:e,month:n,day:i}=t,a=JJ(e,n,i);return{year:e,ordinal:a,...j_(t)}}function SU(t){const{year:e,ordinal:n}=t,{month:i,day:a}=QJ(e,n);return{year:e,month:i,day:a,...j_(t)}}function _U(t,e){if(!jt(t.localWeekday)||!jt(t.localWeekNumber)||!jt(t.localWeekYear)){if(!jt(t.weekday)||!jt(t.weekNumber)||!jt(t.weekYear))throw new zd("Cannot mix locale-based week fields with ISO-based week fields");return jt(t.localWeekday)||(t.weekday=t.localWeekday),jt(t.localWeekNumber)||(t.weekNumber=t.localWeekNumber),jt(t.localWeekYear)||(t.weekYear=t.localWeekYear),delete t.localWeekday,delete t.localWeekNumber,delete t.localWeekYear,{minDaysInFirstWeek:e.getMinDaysInFirstWeek(),startOfWeek:e.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function ARe(t,e=4,n=1){const i=I_(t.weekYear),a=io(t.weekNumber,1,UP(t.weekYear,e,n)),o=io(t.weekday,1,7);return i?a?o?!1:no("weekday",t.weekday):no("week",t.weekNumber):no("weekYear",t.weekYear)}function SRe(t){const e=I_(t.year),n=io(t.ordinal,1,am(t.year));return e?n?!1:no("ordinal",t.ordinal):no("year",t.year)}function ZJ(t){const e=I_(t.year),n=io(t.month,1,12),i=io(t.day,1,uS(t.year,t.month));return e?n?i?!1:no("day",t.day):no("month",t.month):no("year",t.year)}function XJ(t){const{hour:e,minute:n,second:i,millisecond:a}=t,o=io(e,0,23)||e===24&&n===0&&i===0&&a===0,r=io(n,0,59),s=io(i,0,59),c=io(a,0,999);return o?r?s?c?!1:no("millisecond",a):no("second",i):no("minute",n):no("hour",e)}function jt(t){return typeof t>"u"}function _f(t){return typeof t=="number"}function I_(t){return typeof t=="number"&&t%1===0}function _Re(t){return typeof t=="string"}function xRe(t){return Object.prototype.toString.call(t)==="[object Date]"}function eQ(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function tQ(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function DRe(t){return Array.isArray(t)?t:[t]}function xU(t,e,n){if(t.length!==0)return t.reduce((i,a)=>{const o=[e(a),a];return i&&n(i[0],o[0])===i[0]?i:o},null)[1]}function kRe(t,e){return e.reduce((n,i)=>(n[i]=t[i],n),{})}function yg(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function kC(t){if(t==null)return null;if(typeof t!="object")throw new Wi("Week settings must be an object");if(!io(t.firstDay,1,7)||!io(t.minimalDays,1,7)||!Array.isArray(t.weekend)||t.weekend.some(e=>!io(e,1,7)))throw new Wi("Invalid week settings");return{firstDay:t.firstDay,minimalDays:t.minimalDays,weekend:Array.from(t.weekend)}}function io(t,e,n){return I_(t)&&t>=e&&t<=n}function ORe(t,e){return t-e*Math.floor(t/e)}function Qn(t,e=2){const n=t<0;let i;return n?i="-"+(""+-t).padStart(e,"0"):i=(""+t).padStart(e,"0"),i}function Zu(t){if(!(jt(t)||t===null||t===""))return parseInt(t,10)}function ip(t){if(!(jt(t)||t===null||t===""))return parseFloat(t)}function MM(t){if(!(jt(t)||t===null||t==="")){const e=parseFloat("0."+t)*1e3;return Math.floor(e)}}function RM(t,e,n=!1){const i=10**e;return(n?Math.trunc:Math.round)(t*i)/i}function Ab(t){return t%4===0&&(t%100!==0||t%400===0)}function am(t){return Ab(t)?366:365}function uS(t,e){const n=ORe(e-1,12)+1,i=t+(e-n)/12;return n===2?Ab(i)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function C_(t){let e=Date.UTC(t.year,t.month-1,t.day,t.hour,t.minute,t.second,t.millisecond);return t.year<100&&t.year>=0&&(e=new Date(e),e.setUTCFullYear(t.year,t.month-1,t.day)),+e}function DU(t,e,n){return-jM(TM(t,1,e),n)+e-1}function UP(t,e=4,n=1){const i=DU(t,e,n),a=DU(t+1,e,n);return(am(t)-i+a)/7}function OC(t){return t>99?t:t>pn.twoDigitCutoffYear?1900+t:2e3+t}function rQ(t,e,n,i=null){const a=new Date(t),o={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};i&&(o.timeZone=i);const r={timeZoneName:e,...o},s=new Intl.DateTimeFormat(n,r).formatToParts(a).find(c=>c.type.toLowerCase()==="timezonename");return s?s.value:null}function T_(t,e){let n=parseInt(t,10);Number.isNaN(n)&&(n=0);const i=parseInt(e,10)||0,a=n<0||Object.is(n,-0)?-i:i;return n*60+a}function nQ(t){const e=Number(t);if(typeof t=="boolean"||t===""||Number.isNaN(e))throw new Wi(`Invalid unit value ${t}`);return e}function fS(t,e){const n={};for(const i in t)if(yg(t,i)){const a=t[i];if(a==null)continue;n[e(i)]=nQ(a)}return n}function Gv(t,e){const n=Math.trunc(Math.abs(t/60)),i=Math.trunc(Math.abs(t%60)),a=t>=0?"+":"-";switch(e){case"short":return`${a}${Qn(n,2)}:${Qn(i,2)}`;case"narrow":return`${a}${n}${i>0?`:${i}`:""}`;case"techie":return`${a}${Qn(n,2)}${Qn(i,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function j_(t){return kRe(t,["hour","minute","second","millisecond"])}const ERe=["January","February","March","April","May","June","July","August","September","October","November","December"],iQ=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],IRe=["J","F","M","A","M","J","J","A","S","O","N","D"];function aQ(t){switch(t){case"narrow":return[...IRe];case"short":return[...iQ];case"long":return[...ERe];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const sQ=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],oQ=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],CRe=["M","T","W","T","F","S","S"];function lQ(t){switch(t){case"narrow":return[...CRe];case"short":return[...oQ];case"long":return[...sQ];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const cQ=["AM","PM"],TRe=["Before Christ","Anno Domini"],jRe=["BC","AD"],MRe=["B","A"];function uQ(t){switch(t){case"narrow":return[...MRe];case"short":return[...jRe];case"long":return[...TRe];default:return null}}function RRe(t){return cQ[t.hour<12?0:1]}function NRe(t,e){return lQ(e)[t.weekday-1]}function LRe(t,e){return aQ(e)[t.month-1]}function FRe(t,e){return uQ(e)[t.year<0?0:1]}function qRe(t,e,n="always",i=!1){const a={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},o=["hours","minutes","seconds"].indexOf(t)===-1;if(n==="auto"&&o){const f=t==="days";switch(e){case 1:return f?"tomorrow":`next ${a[t][0]}`;case-1:return f?"yesterday":`last ${a[t][0]}`;case 0:return f?"today":`this ${a[t][0]}`}}const r=Object.is(e,-0)||e<0,s=Math.abs(e),c=s===1,l=a[t],u=i?c?l[1]:l[2]||l[1]:c?a[t][0]:t;return r?`${s} ${u} ago`:`in ${s} ${u}`}function kU(t,e){let n="";for(const i of t)i.literal?n+=i.val:n+=e(i.val);return n}const zRe={D:lS,DD:OJ,DDD:EJ,DDDD:IJ,t:CJ,tt:TJ,ttt:jJ,tttt:MJ,T:RJ,TT:NJ,TTT:LJ,TTTT:FJ,f:qJ,ff:UJ,fff:VJ,ffff:HJ,F:zJ,FF:BJ,FFF:WJ,FFFF:GJ};class Yi{static create(e,n={}){return new Yi(e,n)}static parseFormat(e){let n=null,i="",a=!1;const o=[];for(let r=0;r0&&o.push({literal:a||/^\s+$/.test(i),val:i}),n=null,i="",a=!a):a||s===n?i+=s:(i.length>0&&o.push({literal:/^\s+$/.test(i),val:i}),i=s,n=s)}return i.length>0&&o.push({literal:a||/^\s+$/.test(i),val:i}),o}static macroTokenToFormatOpts(e){return zRe[e]}constructor(e,n){this.opts=n,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,n){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...n}).format()}dtFormatter(e,n={}){return this.loc.dtFormatter(e,{...this.opts,...n})}formatDateTime(e,n){return this.dtFormatter(e,n).format()}formatDateTimeParts(e,n){return this.dtFormatter(e,n).formatToParts()}formatInterval(e,n){return this.dtFormatter(e.start,n).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,n){return this.dtFormatter(e,n).resolvedOptions()}num(e,n=0){if(this.opts.forceSimple)return Qn(e,n);const i={...this.opts};return n>0&&(i.padTo=n),this.loc.numberFormatter(i).format(e)}formatDateTimeFromString(e,n){const i=this.loc.listingMode()==="en",a=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",o=(d,m)=>this.loc.extract(e,d,m),r=d=>e.isOffsetFixed&&e.offset===0&&d.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,d.format):"",s=()=>i?RRe(e):o({hour:"numeric",hourCycle:"h12"},"dayperiod"),c=(d,m)=>i?LRe(e,d):o(m?{month:d}:{month:d,day:"numeric"},"month"),l=(d,m)=>i?NRe(e,d):o(m?{weekday:d}:{weekday:d,month:"long",day:"numeric"},"weekday"),u=d=>{const m=Yi.macroTokenToFormatOpts(d);return m?this.formatWithSystemDefault(e,m):d},f=d=>i?FRe(e,d):o({era:d},"era"),h=d=>{switch(d){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12===0?12:e.hour%12);case"hh":return this.num(e.hour%12===0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return r({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return r({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return r({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return s();case"d":return a?o({day:"numeric"},"day"):this.num(e.day);case"dd":return a?o({day:"2-digit"},"day"):this.num(e.day,2);case"c":return this.num(e.weekday);case"ccc":return l("short",!0);case"cccc":return l("long",!0);case"ccccc":return l("narrow",!0);case"E":return this.num(e.weekday);case"EEE":return l("short",!1);case"EEEE":return l("long",!1);case"EEEEE":return l("narrow",!1);case"L":return a?o({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return a?o({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return c("short",!0);case"LLLL":return c("long",!0);case"LLLLL":return c("narrow",!0);case"M":return a?o({month:"numeric"},"month"):this.num(e.month);case"MM":return a?o({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return c("short",!1);case"MMMM":return c("long",!1);case"MMMMM":return c("narrow",!1);case"y":return a?o({year:"numeric"},"year"):this.num(e.year);case"yy":return a?o({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return a?o({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return a?o({year:"numeric"},"year"):this.num(e.year,6);case"G":return f("short");case"GG":return f("long");case"GGGGG":return f("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"n":return this.num(e.localWeekNumber);case"nn":return this.num(e.localWeekNumber,2);case"ii":return this.num(e.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(e.localWeekYear,4);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return u(d)}};return kU(Yi.parseFormat(n),h)}formatDurationFromString(e,n){const i=c=>{switch(c[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},a=c=>l=>{const u=i(l);return u?this.num(c.get(u),l.length):l},o=Yi.parseFormat(n),r=o.reduce((c,{literal:l,val:u})=>l?c:c.concat(u),[]),s=e.shiftTo(...r.map(i).filter(c=>c));return kU(o,a(s))}}const fQ=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function Wg(...t){const e=t.reduce((n,i)=>n+i.source,"");return RegExp(`^${e}$`)}function Hg(...t){return e=>t.reduce(([n,i,a],o)=>{const[r,s,c]=o(e,a);return[{...n,...r},s||i,c]},[{},null,1]).slice(0,2)}function Gg(t,...e){if(t==null)return[null,null];for(const[n,i]of e){const a=n.exec(t);if(a)return i(a)}return[null,null]}function pQ(...t){return(e,n)=>{const i={};let a;for(a=0;ad!==void 0&&(m||d&&u)?-d:d;return[{years:h(ip(n)),months:h(ip(i)),weeks:h(ip(a)),days:h(ip(o)),hours:h(ip(r)),minutes:h(ip(s)),seconds:h(ip(c),c==="-0"),milliseconds:h(MM(l),f)}]}const eNe={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function FM(t,e,n,i,a,o,r){const s={year:e.length===2?OC(Zu(e)):Zu(e),month:iQ.indexOf(n)+1,day:Zu(i),hour:Zu(a),minute:Zu(o)};return r&&(s.second=Zu(r)),t&&(s.weekday=t.length>3?sQ.indexOf(t)+1:oQ.indexOf(t)+1),s}const tNe=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function rNe(t){const[,e,n,i,a,o,r,s,c,l,u,f]=t,h=FM(e,a,i,n,o,r,s);let d;return c?d=eNe[c]:l?d=0:d=T_(u,f),[h,new va(d)]}function nNe(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const iNe=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,aNe=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,sNe=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function OU(t){const[,e,n,i,a,o,r,s]=t;return[FM(e,a,i,n,o,r,s),va.utcInstance]}function oNe(t){const[,e,n,i,a,o,r,s]=t;return[FM(e,s,n,i,a,o,r),va.utcInstance]}const lNe=Wg(BRe,LM),cNe=Wg(VRe,LM),uNe=Wg(WRe,LM),fNe=Wg(dQ),yQ=Hg(JRe,Kg,Sb,_b),pNe=Hg(HRe,Kg,Sb,_b),hNe=Hg(GRe,Kg,Sb,_b),dNe=Hg(Kg,Sb,_b);function mNe(t){return Gg(t,[lNe,yQ],[cNe,pNe],[uNe,hNe],[fNe,dNe])}function yNe(t){return Gg(nNe(t),[tNe,rNe])}function gNe(t){return Gg(t,[iNe,OU],[aNe,OU],[sNe,oNe])}function vNe(t){return Gg(t,[ZRe,XRe])}const PNe=Hg(Kg);function bNe(t){return Gg(t,[QRe,PNe])}const wNe=Wg(KRe,YRe),$Ne=Wg(mQ),ANe=Hg(Kg,Sb,_b);function SNe(t){return Gg(t,[wNe,yQ],[$Ne,ANe])}const EU="Invalid Duration",gQ={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},_Ne={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...gQ},Ls=146097/400,ed=146097/4800,xNe={years:{quarters:4,months:12,weeks:Ls/7,days:Ls,hours:Ls*24,minutes:Ls*24*60,seconds:Ls*24*60*60,milliseconds:Ls*24*60*60*1e3},quarters:{months:3,weeks:Ls/28,days:Ls/4,hours:Ls*24/4,minutes:Ls*24*60/4,seconds:Ls*24*60*60/4,milliseconds:Ls*24*60*60*1e3/4},months:{weeks:ed/7,days:ed,hours:ed*24,minutes:ed*24*60,seconds:ed*24*60*60,milliseconds:ed*24*60*60*1e3},...gQ},xp=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],DNe=xp.slice(0).reverse();function Ru(t,e,n=!1){const i={values:n?e.values:{...t.values,...e.values||{}},loc:t.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||t.conversionAccuracy,matrix:e.matrix||t.matrix};return new cr(i)}function vQ(t,e){let n=e.milliseconds??0;for(const i of DNe.slice(1))e[i]&&(n+=e[i]*t[i].milliseconds);return n}function IU(t,e){const n=vQ(t,e)<0?-1:1;xp.reduceRight((i,a)=>{if(jt(e[a]))return i;if(i){const o=e[i]*n,r=t[a][i],s=Math.floor(o/r);e[a]+=s*n,e[i]-=s*r*n}return a},null),xp.reduce((i,a)=>{if(jt(e[a]))return i;if(i){const o=e[i]%1;e[i]-=o,e[a]+=o*t[i][a]}return a},null)}function kNe(t){const e={};for(const[n,i]of Object.entries(t))i!==0&&(e[n]=i);return e}class cr{constructor(e){const n=e.conversionAccuracy==="longterm"||!1;let i=n?xNe:_Ne;e.matrix&&(i=e.matrix),this.values=e.values,this.loc=e.loc||$r.create(),this.conversionAccuracy=n?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=i,this.isLuxonDuration=!0}static fromMillis(e,n){return cr.fromObject({milliseconds:e},n)}static fromObject(e,n={}){if(e==null||typeof e!="object")throw new Wi(`Duration.fromObject: argument expected to be an object, got ${e===null?"null":typeof e}`);return new cr({values:fS(e,cr.normalizeUnit),loc:$r.fromObject(n),conversionAccuracy:n.conversionAccuracy,matrix:n.matrix})}static fromDurationLike(e){if(_f(e))return cr.fromMillis(e);if(cr.isDuration(e))return e;if(typeof e=="object")return cr.fromObject(e);throw new Wi(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,n){const[i]=vNe(e);return i?cr.fromObject(i,n):cr.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,n){const[i]=bNe(e);return i?cr.fromObject(i,n):cr.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,n=null){if(!e)throw new Wi("need to specify a reason the Duration is invalid");const i=e instanceof Ko?e:new Ko(e,n);if(pn.throwOnInvalid)throw new ZMe(i);return new cr({invalid:i})}static normalizeUnit(e){const n={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e&&e.toLowerCase()];if(!n)throw new kJ(e);return n}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,n={}){const i={...n,floor:n.round!==!1&&n.floor!==!1};return this.isValid?Yi.create(this.loc,i).formatDurationFromString(this,e):EU}toHuman(e={}){if(!this.isValid)return EU;const n=xp.map(i=>{const a=this.values[i];return jt(a)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:i.slice(0,-1)}).format(a)}).filter(i=>i);return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(n)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return this.years!==0&&(e+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(e+=this.months+this.quarters*3+"M"),this.weeks!==0&&(e+=this.weeks+"W"),this.days!==0&&(e+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(e+="T"),this.hours!==0&&(e+=this.hours+"H"),this.minutes!==0&&(e+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(e+=RM(this.seconds+this.milliseconds/1e3,3)+"S"),e==="P"&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;const n=this.toMillis();return n<0||n>=864e5?null:(e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e,includeOffset:!1},At.fromMillis(n,{zone:"UTC"}).toISOTime(e))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?vQ(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const n=cr.fromDurationLike(e),i={};for(const a of xp)(yg(n.values,a)||yg(this.values,a))&&(i[a]=n.get(a)+this.get(a));return Ru(this,{values:i},!0)}minus(e){if(!this.isValid)return this;const n=cr.fromDurationLike(e);return this.plus(n.negate())}mapUnits(e){if(!this.isValid)return this;const n={};for(const i of Object.keys(this.values))n[i]=nQ(e(this.values[i],i));return Ru(this,{values:n},!0)}get(e){return this[cr.normalizeUnit(e)]}set(e){if(!this.isValid)return this;const n={...this.values,...fS(e,cr.normalizeUnit)};return Ru(this,{values:n})}reconfigure({locale:e,numberingSystem:n,conversionAccuracy:i,matrix:a}={}){const r={loc:this.loc.clone({locale:e,numberingSystem:n}),matrix:a,conversionAccuracy:i};return Ru(this,r)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();return IU(this.matrix,e),Ru(this,{values:e},!0)}rescale(){if(!this.isValid)return this;const e=kNe(this.normalize().shiftToAll().toObject());return Ru(this,{values:e},!0)}shiftTo(...e){if(!this.isValid)return this;if(e.length===0)return this;e=e.map(r=>cr.normalizeUnit(r));const n={},i={},a=this.toObject();let o;for(const r of xp)if(e.indexOf(r)>=0){o=r;let s=0;for(const l in i)s+=this.matrix[l][r]*i[l],i[l]=0;_f(a[r])&&(s+=a[r]);const c=Math.trunc(s);n[r]=c,i[r]=(s*1e3-c*1e3)/1e3}else _f(a[r])&&(i[r]=a[r]);for(const r in i)i[r]!==0&&(n[o]+=r===o?i[r]:i[r]/this.matrix[o][r]);return IU(this.matrix,n),Ru(this,{values:n},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const e={};for(const n of Object.keys(this.values))e[n]=this.values[n]===0?0:-this.values[n];return Ru(this,{values:e},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid||!this.loc.equals(e.loc))return!1;function n(i,a){return i===void 0||i===0?a===void 0||a===0:i===a}for(const i of xp)if(!n(this.values[i],e.values[i]))return!1;return!0}}const td="Invalid Interval";function ONe(t,e){return!t||!t.isValid?wn.invalid("missing or invalid start"):!e||!e.isValid?wn.invalid("missing or invalid end"):ee:!1}isBefore(e){return this.isValid?this.e<=e:!1}contains(e){return this.isValid?this.s<=e&&this.e>e:!1}set({start:e,end:n}={}){return this.isValid?wn.fromDateTimes(e||this.s,n||this.e):this}splitAt(...e){if(!this.isValid)return[];const n=e.map(G0).filter(r=>this.contains(r)).sort((r,s)=>r.toMillis()-s.toMillis()),i=[];let{s:a}=this,o=0;for(;a+this.e?this.e:r;i.push(wn.fromDateTimes(a,s)),a=s,o+=1}return i}splitBy(e){const n=cr.fromDurationLike(e);if(!this.isValid||!n.isValid||n.as("milliseconds")===0)return[];let{s:i}=this,a=1,o;const r=[];for(;ic*a));o=+s>+this.e?this.e:s,r.push(wn.fromDateTimes(i,o)),i=o,a+=1}return r}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s=e.e:!1}equals(e){return!this.isValid||!e.isValid?!1:this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;const n=this.s>e.s?this.s:e.s,i=this.e=i?null:wn.fromDateTimes(n,i)}union(e){if(!this.isValid)return this;const n=this.se.e?this.e:e.e;return wn.fromDateTimes(n,i)}static merge(e){const[n,i]=e.sort((a,o)=>a.s-o.s).reduce(([a,o],r)=>o?o.overlaps(r)||o.abutsStart(r)?[a,o.union(r)]:[a.concat([o]),r]:[a,r],[[],null]);return i&&n.push(i),n}static xor(e){let n=null,i=0;const a=[],o=e.map(c=>[{time:c.s,type:"s"},{time:c.e,type:"e"}]),r=Array.prototype.concat(...o),s=r.sort((c,l)=>c.time-l.time);for(const c of s)i+=c.type==="s"?1:-1,i===1?n=c.time:(n&&+n!=+c.time&&a.push(wn.fromDateTimes(n,c.time)),n=null);return wn.merge(a)}difference(...e){return wn.xor([this].concat(e)).map(n=>this.intersection(n)).filter(n=>n&&!n.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:td}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(e=lS,n={}){return this.isValid?Yi.create(this.s.loc.clone(n),e).formatInterval(this):td}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:td}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:td}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:td}toFormat(e,{separator:n=" – "}={}){return this.isValid?`${this.s.toFormat(e)}${n}${this.e.toFormat(e)}`:td}toDuration(e,n){return this.isValid?this.e.diff(this.s,e,n):cr.invalid(this.invalidReason)}mapEndpoints(e){return wn.fromDateTimes(e(this.s),e(this.e))}}class Sw{static hasDST(e=pn.defaultZone){const n=At.now().setZone(e).set({month:12});return!e.isUniversal&&n.offset!==n.set({month:6}).offset}static isValidIANAZone(e){return uu.isValidZone(e)}static normalizeZone(e){return nf(e,pn.defaultZone)}static getStartOfWeek({locale:e=null,locObj:n=null}={}){return(n||$r.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:n=null}={}){return(n||$r.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:n=null}={}){return(n||$r.create(e)).getWeekendDays().slice()}static months(e="long",{locale:n=null,numberingSystem:i=null,locObj:a=null,outputCalendar:o="gregory"}={}){return(a||$r.create(n,i,o)).months(e)}static monthsFormat(e="long",{locale:n=null,numberingSystem:i=null,locObj:a=null,outputCalendar:o="gregory"}={}){return(a||$r.create(n,i,o)).months(e,!0)}static weekdays(e="long",{locale:n=null,numberingSystem:i=null,locObj:a=null}={}){return(a||$r.create(n,i,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:n=null,numberingSystem:i=null,locObj:a=null}={}){return(a||$r.create(n,i,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return $r.create(e).meridiems()}static eras(e="short",{locale:n=null}={}){return $r.create(n,null,"gregory").eras(e)}static features(){return{relative:eQ(),localeWeek:tQ()}}}function CU(t,e){const n=a=>a.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),i=n(e)-n(t);return Math.floor(cr.fromMillis(i).as("days"))}function ENe(t,e,n){const i=[["years",(c,l)=>l.year-c.year],["quarters",(c,l)=>l.quarter-c.quarter+(l.year-c.year)*4],["months",(c,l)=>l.month-c.month+(l.year-c.year)*12],["weeks",(c,l)=>{const u=CU(c,l);return(u-u%7)/7}],["days",CU]],a={},o=t;let r,s;for(const[c,l]of i)n.indexOf(c)>=0&&(r=c,a[c]=l(t,e),s=o.plus(a),s>e?(a[c]--,t=o.plus(a),t>e&&(s=t,a[c]--,t=o.plus(a))):t=s);return[t,a,s,r]}function INe(t,e,n,i){let[a,o,r,s]=ENe(t,e,n);const c=e-a,l=n.filter(f=>["hours","minutes","seconds","milliseconds"].indexOf(f)>=0);l.length===0&&(r0?cr.fromMillis(c,i).shiftTo(...l).plus(u):u}const CNe="missing Intl.DateTimeFormat.formatToParts support";function hr(t,e=n=>n){return{regex:t,deser:([n])=>e(wRe(n))}}const TNe=" ",PQ=`[ ${TNe}]`,bQ=new RegExp(PQ,"g");function jNe(t){return t.replace(/\./g,"\\.?").replace(bQ,PQ)}function TU(t){return t.replace(/\./g,"").replace(bQ," ").toLowerCase()}function To(t,e){return t===null?null:{regex:RegExp(t.map(jNe).join("|")),deser:([n])=>t.findIndex(i=>TU(n)===TU(i))+e}}function jU(t,e){return{regex:t,deser:([,n,i])=>T_(n,i),groups:e}}function _w(t){return{regex:t,deser:([e])=>e}}function MNe(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function RNe(t,e){const n=Co(e),i=Co(e,"{2}"),a=Co(e,"{3}"),o=Co(e,"{4}"),r=Co(e,"{6}"),s=Co(e,"{1,2}"),c=Co(e,"{1,3}"),l=Co(e,"{1,6}"),u=Co(e,"{1,9}"),f=Co(e,"{2,4}"),h=Co(e,"{4,6}"),d=b=>({regex:RegExp(MNe(b.val)),deser:([v])=>v,literal:!0}),g=(b=>{if(t.literal)return d(b);switch(b.val){case"G":return To(e.eras("short"),0);case"GG":return To(e.eras("long"),0);case"y":return hr(l);case"yy":return hr(f,OC);case"yyyy":return hr(o);case"yyyyy":return hr(h);case"yyyyyy":return hr(r);case"M":return hr(s);case"MM":return hr(i);case"MMM":return To(e.months("short",!0),1);case"MMMM":return To(e.months("long",!0),1);case"L":return hr(s);case"LL":return hr(i);case"LLL":return To(e.months("short",!1),1);case"LLLL":return To(e.months("long",!1),1);case"d":return hr(s);case"dd":return hr(i);case"o":return hr(c);case"ooo":return hr(a);case"HH":return hr(i);case"H":return hr(s);case"hh":return hr(i);case"h":return hr(s);case"mm":return hr(i);case"m":return hr(s);case"q":return hr(s);case"qq":return hr(i);case"s":return hr(s);case"ss":return hr(i);case"S":return hr(c);case"SSS":return hr(a);case"u":return _w(u);case"uu":return _w(s);case"uuu":return hr(n);case"a":return To(e.meridiems(),0);case"kkkk":return hr(o);case"kk":return hr(f,OC);case"W":return hr(s);case"WW":return hr(i);case"E":case"c":return hr(n);case"EEE":return To(e.weekdays("short",!1),1);case"EEEE":return To(e.weekdays("long",!1),1);case"ccc":return To(e.weekdays("short",!0),1);case"cccc":return To(e.weekdays("long",!0),1);case"Z":case"ZZ":return jU(new RegExp(`([+-]${s.source})(?::(${i.source}))?`),2);case"ZZZ":return jU(new RegExp(`([+-]${s.source})(${i.source})?`),2);case"z":return _w(/[a-z_+-/]{1,256}?/i);case" ":return _w(/[^\S\n\r]/);default:return d(b)}})(t)||{invalidReason:CNe};return g.token=t,g}const NNe={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function LNe(t,e,n){const{type:i,value:a}=t;if(i==="literal"){const c=/^\s+$/.test(a);return{literal:!c,val:c?" ":a}}const o=e[i];let r=i;i==="hour"&&(e.hour12!=null?r=e.hour12?"hour12":"hour24":e.hourCycle!=null?e.hourCycle==="h11"||e.hourCycle==="h12"?r="hour12":r="hour24":r=n.hour12?"hour12":"hour24");let s=NNe[r];if(typeof s=="object"&&(s=s[o]),s)return{literal:!1,val:s}}function FNe(t){return[`^${t.map(n=>n.regex).reduce((n,i)=>`${n}(${i.source})`,"")}$`,t]}function qNe(t,e,n){const i=t.match(e);if(i){const a={};let o=1;for(const r in n)if(yg(n,r)){const s=n[r],c=s.groups?s.groups+1:1;!s.literal&&s.token&&(a[s.token.val[0]]=s.deser(i.slice(o,o+c))),o+=c}return[i,a]}else return[i,{}]}function zNe(t){const e=o=>{switch(o){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let n=null,i;return jt(t.z)||(n=uu.create(t.z)),jt(t.Z)||(n||(n=new va(t.Z)),i=t.Z),jt(t.q)||(t.M=(t.q-1)*3+1),jt(t.h)||(t.h<12&&t.a===1?t.h+=12:t.h===12&&t.a===0&&(t.h=0)),t.G===0&&t.y&&(t.y=-t.y),jt(t.u)||(t.S=MM(t.u)),[Object.keys(t).reduce((o,r)=>{const s=e(r);return s&&(o[s]=t[r]),o},{}),n,i]}let dO=null;function UNe(){return dO||(dO=At.fromMillis(1555555555555)),dO}function BNe(t,e){if(t.literal)return t;const n=Yi.macroTokenToFormatOpts(t.val),i=SQ(n,e);return i==null||i.includes(void 0)?t:i}function wQ(t,e){return Array.prototype.concat(...t.map(n=>BNe(n,e)))}class $Q{constructor(e,n){if(this.locale=e,this.format=n,this.tokens=wQ(Yi.parseFormat(n),e),this.units=this.tokens.map(i=>RNe(i,e)),this.disqualifyingUnit=this.units.find(i=>i.invalidReason),!this.disqualifyingUnit){const[i,a]=FNe(this.units);this.regex=RegExp(i,"i"),this.handlers=a}}explainFromTokens(e){if(this.isValid){const[n,i]=qNe(e,this.regex,this.handlers),[a,o,r]=i?zNe(i):[null,null,void 0];if(yg(i,"a")&&yg(i,"H"))throw new zd("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:this.tokens,regex:this.regex,rawMatches:n,matches:i,result:a,zone:o,specificOffset:r}}else return{input:e,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}}function AQ(t,e,n){return new $Q(t,n).explainFromTokens(e)}function VNe(t,e,n){const{result:i,zone:a,specificOffset:o,invalidReason:r}=AQ(t,e,n);return[i,a,o,r]}function SQ(t,e){if(!t)return null;const i=Yi.create(e,t).dtFormatter(UNe()),a=i.formatToParts(),o=i.resolvedOptions();return a.map(r=>LNe(r,t,o))}const mO="Invalid DateTime",MU=864e13;function Av(t){return new Ko("unsupported zone",`the zone "${t.name}" is not supported`)}function yO(t){return t.weekData===null&&(t.weekData=cS(t.c)),t.weekData}function gO(t){return t.localWeekData===null&&(t.localWeekData=cS(t.c,t.loc.getMinDaysInFirstWeek(),t.loc.getStartOfWeek())),t.localWeekData}function ap(t,e){const n={ts:t.ts,zone:t.zone,c:t.c,o:t.o,loc:t.loc,invalid:t.invalid};return new At({...n,...e,old:n})}function _Q(t,e,n){let i=t-e*60*1e3;const a=n.offset(i);if(e===a)return[i,e];i-=(a-e)*60*1e3;const o=n.offset(i);return a===o?[i,a]:[t-Math.min(a,o)*60*1e3,Math.max(a,o)]}function xw(t,e){t+=e*60*1e3;const n=new Date(t);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function I$(t,e,n){return _Q(C_(t),e,n)}function RU(t,e){const n=t.o,i=t.c.year+Math.trunc(e.years),a=t.c.month+Math.trunc(e.months)+Math.trunc(e.quarters)*3,o={...t.c,year:i,month:a,day:Math.min(t.c.day,uS(i,a))+Math.trunc(e.days)+Math.trunc(e.weeks)*7},r=cr.fromObject({years:e.years-Math.trunc(e.years),quarters:e.quarters-Math.trunc(e.quarters),months:e.months-Math.trunc(e.months),weeks:e.weeks-Math.trunc(e.weeks),days:e.days-Math.trunc(e.days),hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),s=C_(o);let[c,l]=_Q(s,n,t.zone);return r!==0&&(c+=r,l=t.zone.offset(c)),{ts:c,o:l}}function rd(t,e,n,i,a,o){const{setZone:r,zone:s}=n;if(t&&Object.keys(t).length!==0||e){const c=e||s,l=At.fromObject(t,{...n,zone:c,specificOffset:o});return r?l:l.setZone(s)}else return At.invalid(new Ko("unparsable",`the input "${a}" can't be parsed as ${i}`))}function Dw(t,e,n=!0){return t.isValid?Yi.create($r.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(t,e):null}function vO(t,e){const n=t.c.year>9999||t.c.year<0;let i="";return n&&t.c.year>=0&&(i+="+"),i+=Qn(t.c.year,n?6:4),e?(i+="-",i+=Qn(t.c.month),i+="-",i+=Qn(t.c.day)):(i+=Qn(t.c.month),i+=Qn(t.c.day)),i}function NU(t,e,n,i,a,o){let r=Qn(t.c.hour);return e?(r+=":",r+=Qn(t.c.minute),(t.c.millisecond!==0||t.c.second!==0||!n)&&(r+=":")):r+=Qn(t.c.minute),(t.c.millisecond!==0||t.c.second!==0||!n)&&(r+=Qn(t.c.second),(t.c.millisecond!==0||!i)&&(r+=".",r+=Qn(t.c.millisecond,3))),a&&(t.isOffsetFixed&&t.offset===0&&!o?r+="Z":t.o<0?(r+="-",r+=Qn(Math.trunc(-t.o/60)),r+=":",r+=Qn(Math.trunc(-t.o%60))):(r+="+",r+=Qn(Math.trunc(t.o/60)),r+=":",r+=Qn(Math.trunc(t.o%60)))),o&&(r+="["+t.zone.ianaName+"]"),r}const xQ={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},WNe={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},HNe={ordinal:1,hour:0,minute:0,second:0,millisecond:0},DQ=["year","month","day","hour","minute","second","millisecond"],GNe=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],KNe=["year","ordinal","hour","minute","second","millisecond"];function YNe(t){const e={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[t.toLowerCase()];if(!e)throw new kJ(t);return e}function LU(t){switch(t.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return YNe(t)}}function JNe(t){return T$[t]||(C$===void 0&&(C$=pn.now()),T$[t]=t.offset(C$)),T$[t]}function FU(t,e){const n=nf(e.zone,pn.defaultZone);if(!n.isValid)return At.invalid(Av(n));const i=$r.fromObject(e);let a,o;if(jt(t.year))a=pn.now();else{for(const c of DQ)jt(t[c])&&(t[c]=xQ[c]);const r=ZJ(t)||XJ(t);if(r)return At.invalid(r);const s=JNe(n);[a,o]=I$(t,s,n)}return new At({ts:a,zone:n,loc:i,o})}function qU(t,e,n){const i=jt(n.round)?!0:n.round,a=(r,s)=>(r=RM(r,i||n.calendary?0:2,!0),e.loc.clone(n).relFormatter(n).format(r,s)),o=r=>n.calendary?e.hasSame(t,r)?0:e.startOf(r).diff(t.startOf(r),r).get(r):e.diff(t,r).get(r);if(n.unit)return a(o(n.unit),n.unit);for(const r of n.units){const s=o(r);if(Math.abs(s)>=1)return a(s,r)}return a(t>e?-0:0,n.units[n.units.length-1])}function zU(t){let e={},n;return t.length>0&&typeof t[t.length-1]=="object"?(e=t[t.length-1],n=Array.from(t).slice(0,t.length-1)):n=Array.from(t),[e,n]}let C$,T$={};class At{constructor(e){const n=e.zone||pn.defaultZone;let i=e.invalid||(Number.isNaN(e.ts)?new Ko("invalid input"):null)||(n.isValid?null:Av(n));this.ts=jt(e.ts)?pn.now():e.ts;let a=null,o=null;if(!i)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(n))[a,o]=[e.old.c,e.old.o];else{const s=_f(e.o)&&!e.old?e.o:n.offset(this.ts);a=xw(this.ts,s),i=Number.isNaN(a.year)?new Ko("invalid input"):null,a=i?null:a,o=i?null:s}this._zone=n,this.loc=e.loc||$r.create(),this.invalid=i,this.weekData=null,this.localWeekData=null,this.c=a,this.o=o,this.isLuxonDateTime=!0}static now(){return new At({})}static local(){const[e,n]=zU(arguments),[i,a,o,r,s,c,l]=n;return FU({year:i,month:a,day:o,hour:r,minute:s,second:c,millisecond:l},e)}static utc(){const[e,n]=zU(arguments),[i,a,o,r,s,c,l]=n;return e.zone=va.utcInstance,FU({year:i,month:a,day:o,hour:r,minute:s,second:c,millisecond:l},e)}static fromJSDate(e,n={}){const i=xRe(e)?e.valueOf():NaN;if(Number.isNaN(i))return At.invalid("invalid input");const a=nf(n.zone,pn.defaultZone);return a.isValid?new At({ts:i,zone:a,loc:$r.fromObject(n)}):At.invalid(Av(a))}static fromMillis(e,n={}){if(_f(e))return e<-MU||e>MU?At.invalid("Timestamp out of range"):new At({ts:e,zone:nf(n.zone,pn.defaultZone),loc:$r.fromObject(n)});throw new Wi(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,n={}){if(_f(e))return new At({ts:e*1e3,zone:nf(n.zone,pn.defaultZone),loc:$r.fromObject(n)});throw new Wi("fromSeconds requires a numerical input")}static fromObject(e,n={}){e=e||{};const i=nf(n.zone,pn.defaultZone);if(!i.isValid)return At.invalid(Av(i));const a=$r.fromObject(n),o=fS(e,LU),{minDaysInFirstWeek:r,startOfWeek:s}=_U(o,a),c=pn.now(),l=jt(n.specificOffset)?i.offset(c):n.specificOffset,u=!jt(o.ordinal),f=!jt(o.year),h=!jt(o.month)||!jt(o.day),d=f||h,m=o.weekYear||o.weekNumber;if((d||u)&&m)throw new zd("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(h&&u)throw new zd("Can't mix ordinal dates with month/day");const g=m||o.weekday&&!d;let b,v,P=xw(c,l);g?(b=GNe,v=WNe,P=cS(P,r,s)):u?(b=KNe,v=HNe,P=hO(P)):(b=DQ,v=xQ);let A=!1;for(const L of b){const q=o[L];jt(q)?A?o[L]=v[L]:o[L]=P[L]:A=!0}const _=g?ARe(o,r,s):u?SRe(o):ZJ(o),x=_||XJ(o);if(x)return At.invalid(x);const N=g?AU(o,r,s):u?SU(o):o,[j,I]=I$(N,l,i),E=new At({ts:j,zone:i,o:I,loc:a});return o.weekday&&d&&e.weekday!==E.weekday?At.invalid("mismatched weekday",`you can't specify both a weekday of ${o.weekday} and a date of ${E.toISO()}`):E.isValid?E:At.invalid(E.invalid)}static fromISO(e,n={}){const[i,a]=mNe(e);return rd(i,a,n,"ISO 8601",e)}static fromRFC2822(e,n={}){const[i,a]=yNe(e);return rd(i,a,n,"RFC 2822",e)}static fromHTTP(e,n={}){const[i,a]=gNe(e);return rd(i,a,n,"HTTP",n)}static fromFormat(e,n,i={}){if(jt(e)||jt(n))throw new Wi("fromFormat requires an input string and a format");const{locale:a=null,numberingSystem:o=null}=i,r=$r.fromOpts({locale:a,numberingSystem:o,defaultToEN:!0}),[s,c,l,u]=VNe(r,e,n);return u?At.invalid(u):rd(s,c,i,`format ${n}`,e,l)}static fromString(e,n,i={}){return At.fromFormat(e,n,i)}static fromSQL(e,n={}){const[i,a]=SNe(e);return rd(i,a,n,"SQL",e)}static invalid(e,n=null){if(!e)throw new Wi("need to specify a reason the DateTime is invalid");const i=e instanceof Ko?e:new Ko(e,n);if(pn.throwOnInvalid)throw new JMe(i);return new At({invalid:i})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,n={}){const i=SQ(e,$r.fromObject(n));return i?i.map(a=>a?a.val:null).join(""):null}static expandFormat(e,n={}){return wQ(Yi.parseFormat(e),$r.fromObject(n)).map(a=>a.val).join("")}static resetCache(){C$=void 0,T$={}}get(e){return this[e]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?yO(this).weekYear:NaN}get weekNumber(){return this.isValid?yO(this).weekNumber:NaN}get weekday(){return this.isValid?yO(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?gO(this).weekday:NaN}get localWeekNumber(){return this.isValid?gO(this).weekNumber:NaN}get localWeekYear(){return this.isValid?gO(this).weekYear:NaN}get ordinal(){return this.isValid?hO(this.c).ordinal:NaN}get monthShort(){return this.isValid?Sw.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Sw.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Sw.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Sw.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const e=864e5,n=6e4,i=C_(this.c),a=this.zone.offset(i-e),o=this.zone.offset(i+e),r=this.zone.offset(i-a*n),s=this.zone.offset(i-o*n);if(r===s)return[this];const c=i-r*n,l=i-s*n,u=xw(c,r),f=xw(l,s);return u.hour===f.hour&&u.minute===f.minute&&u.second===f.second&&u.millisecond===f.millisecond?[ap(this,{ts:c}),ap(this,{ts:l})]:[this]}get isInLeapYear(){return Ab(this.year)}get daysInMonth(){return uS(this.year,this.month)}get daysInYear(){return this.isValid?am(this.year):NaN}get weeksInWeekYear(){return this.isValid?UP(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?UP(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){const{locale:n,numberingSystem:i,calendar:a}=Yi.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:n,numberingSystem:i,outputCalendar:a}}toUTC(e=0,n={}){return this.setZone(va.instance(e),n)}toLocal(){return this.setZone(pn.defaultZone)}setZone(e,{keepLocalTime:n=!1,keepCalendarTime:i=!1}={}){if(e=nf(e,pn.defaultZone),e.equals(this.zone))return this;if(e.isValid){let a=this.ts;if(n||i){const o=e.offset(this.ts),r=this.toObject();[a]=I$(r,o,e)}return ap(this,{ts:a,zone:e})}else return At.invalid(Av(e))}reconfigure({locale:e,numberingSystem:n,outputCalendar:i}={}){const a=this.loc.clone({locale:e,numberingSystem:n,outputCalendar:i});return ap(this,{loc:a})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const n=fS(e,LU),{minDaysInFirstWeek:i,startOfWeek:a}=_U(n,this.loc),o=!jt(n.weekYear)||!jt(n.weekNumber)||!jt(n.weekday),r=!jt(n.ordinal),s=!jt(n.year),c=!jt(n.month)||!jt(n.day),l=s||c,u=n.weekYear||n.weekNumber;if((l||r)&&u)throw new zd("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(c&&r)throw new zd("Can't mix ordinal dates with month/day");let f;o?f=AU({...cS(this.c,i,a),...n},i,a):jt(n.ordinal)?(f={...this.toObject(),...n},jt(n.day)&&(f.day=Math.min(uS(f.year,f.month),f.day))):f=SU({...hO(this.c),...n});const[h,d]=I$(f,this.o,this.zone);return ap(this,{ts:h,o:d})}plus(e){if(!this.isValid)return this;const n=cr.fromDurationLike(e);return ap(this,RU(this,n))}minus(e){if(!this.isValid)return this;const n=cr.fromDurationLike(e).negate();return ap(this,RU(this,n))}startOf(e,{useLocaleWeeks:n=!1}={}){if(!this.isValid)return this;const i={},a=cr.normalizeUnit(e);switch(a){case"years":i.month=1;case"quarters":case"months":i.day=1;case"weeks":case"days":i.hour=0;case"hours":i.minute=0;case"minutes":i.second=0;case"seconds":i.millisecond=0;break}if(a==="weeks")if(n){const o=this.loc.getStartOfWeek(),{weekday:r}=this;rthis.valueOf(),s=r?this:e,c=r?e:this,l=INe(s,c,o,a);return r?l.negate():l}diffNow(e="milliseconds",n={}){return this.diff(At.now(),e,n)}until(e){return this.isValid?wn.fromDateTimes(this,e):this}hasSame(e,n,i){if(!this.isValid)return!1;const a=e.valueOf(),o=this.setZone(e.zone,{keepLocalTime:!0});return o.startOf(n,i)<=a&&a<=o.endOf(n,i)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;const n=e.base||At.fromObject({},{zone:this.zone}),i=e.padding?thisn.valueOf(),Math.min)}static max(...e){if(!e.every(At.isDateTime))throw new Wi("max requires all arguments be DateTimes");return xU(e,n=>n.valueOf(),Math.max)}static fromFormatExplain(e,n,i={}){const{locale:a=null,numberingSystem:o=null}=i,r=$r.fromOpts({locale:a,numberingSystem:o,defaultToEN:!0});return AQ(r,e,n)}static fromStringExplain(e,n,i={}){return At.fromFormatExplain(e,n,i)}static buildFormatParser(e,n={}){const{locale:i=null,numberingSystem:a=null}=n,o=$r.fromOpts({locale:i,numberingSystem:a,defaultToEN:!0});return new $Q(o,e)}static fromFormatParser(e,n,i={}){if(jt(e)||jt(n))throw new Wi("fromFormatParser requires an input string and a format parser");const{locale:a=null,numberingSystem:o=null}=i,r=$r.fromOpts({locale:a,numberingSystem:o,defaultToEN:!0});if(!r.equals(n.locale))throw new Wi(`fromFormatParser called with a locale of ${r}, but the format parser was created for ${n.locale}`);const{result:s,zone:c,specificOffset:l,invalidReason:u}=n.explainFromTokens(e);return u?At.invalid(u):rd(s,c,i,`format ${n.format}`,e,l)}static get DATE_SHORT(){return lS}static get DATE_MED(){return OJ}static get DATE_MED_WITH_WEEKDAY(){return XMe}static get DATE_FULL(){return EJ}static get DATE_HUGE(){return IJ}static get TIME_SIMPLE(){return CJ}static get TIME_WITH_SECONDS(){return TJ}static get TIME_WITH_SHORT_OFFSET(){return jJ}static get TIME_WITH_LONG_OFFSET(){return MJ}static get TIME_24_SIMPLE(){return RJ}static get TIME_24_WITH_SECONDS(){return NJ}static get TIME_24_WITH_SHORT_OFFSET(){return LJ}static get TIME_24_WITH_LONG_OFFSET(){return FJ}static get DATETIME_SHORT(){return qJ}static get DATETIME_SHORT_WITH_SECONDS(){return zJ}static get DATETIME_MED(){return UJ}static get DATETIME_MED_WITH_SECONDS(){return BJ}static get DATETIME_MED_WITH_WEEKDAY(){return eRe}static get DATETIME_FULL(){return VJ}static get DATETIME_FULL_WITH_SECONDS(){return WJ}static get DATETIME_HUGE(){return HJ}static get DATETIME_HUGE_WITH_SECONDS(){return GJ}}function G0(t){if(At.isDateTime(t))return t;if(t&&t.valueOf&&_f(t.valueOf()))return At.fromJSDate(t);if(t&&typeof t=="object")return At.fromObject(t);throw new Wi(`Unknown datetime argument: ${t}, of type ${typeof t}`)}pn.defaultZone="utc";const QNe=/^\d{4}-\d{2}-\d{2}$/,ZNe=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d+)?Z$/,_l=t=>t==="..",Ud=t=>QNe.test(t),Bd=t=>ZNe.test(t),qM=[];qM.push({name:"/req/core/interval",validateFeature:t=>{var n;const e=(n=t.time)==null?void 0:n.interval;if(e!==void 0&&!_l(e[0])&&!_l(e[1])&&At.fromISO(e[0])>At.fromISO(e[1]))return{pointer:"/time",message:'If the "time" object in any JSON-FG feature in the JSON document includes an "interval" member, the start instant must be earlier than or equal to the end instant.'};if(e!==void 0&&Ud(e[0])&&Bd(e[1]))return{pointer:"/time",message:'If the start is a date, the end SHALL be a date, too, or "..".'};if(e!==void 0&&Bd(e[0])&&Ud(e[1]))return{pointer:"/time",message:'If the start is a timestamp, the end SHALL be a timestamp, too, or "..".'}}});qM.push({name:"/req/core/instant-and-interval",validateFeature:t=>{if(t.time){const{date:e,timestamp:n,interval:i}=t.time;if(e!==void 0&&n!==void 0&&!n.startsWith(e))return{pointer:"/time",message:'If the "time" object in any JSON-FG feature in the JSON document includes both a "date" and a "timestamp" member, the full-date parts SHALL be identical.'};if(n!==void 0&&i!==void 0){const a=At.fromISO(n),o=a.startOf("day");if((Ud(i[0])||Ud(i[1]))&&(!_l(i[0])&&oAt.fromISO(i[1])))return{pointer:"/time",message:'If the "time" object in any JSON-FG feature in the JSON document includes both a "timestamp" and an "interval" member with start/end dates, the interval SHALL contain the date of the timestamp.'};if((Bd(i[0])||Bd(i[1]))&&(!_l(i[0])&&aAt.fromISO(i[1])))return{pointer:"/time",message:'If the "time" object in any JSON-FG feature in the JSON document includes both a "timestamp" and an "interval" member with start/end timestamps, the interval SHALL contain the timestamp.'}}if(e!==void 0&&i!==void 0){const a=At.fromISO(e);if((Ud(i[0])||Ud(i[1]))&&(!_l(i[0])&&aAt.fromISO(i[1])))return{pointer:"/time",message:'If the "time" object in any JSON-FG feature in the JSON document includes both a "date" and an "interval" member with start/end dates, the interval SHALL contain the date.'};if((Bd(i[0])||Bd(i[1]))&&(!_l(i[0])&&aAt.fromISO(i[1]).startOf("day")))return{pointer:"/time",message:'If the "time" object in any JSON-FG feature in the JSON document includes both a "date" and an "interval" member with start/end timestamps, the interval SHALL include timestamps on the date.'}}}}});const XNe="http://www.opengis.net/spec/json-fg-1/0.2/conf/types-schemas",eLe="[ogc-json-fg-1-0.2:types-schemas]",Vd=t=>t.conformsTo!==void 0&&(t.conformsTo.includes(XNe)||t.conformsTo.includes(eLe)),kw=(t,e)=>t.place?e.includes(t.place.type):t.geometry?e.includes(t.geometry.type):!0,M_=[];M_.push({name:"/req/types-schemas/metadata",validateFeature:(t,e)=>{if(e&&t.featureType!==void 0&&!Vd(t))return{pointer:"/conformsTo",message:'When the "featureType" member is present, the "conformsTo" member of the JSON document SHALL include at least the Feature Types and Schemas conformance class.'}},validateFeatureCollection:t=>{if((t.featureType!==void 0||t.features.some(e=>e.featureType!==void 0))&&!Vd(t))return{pointer:"/conformsTo",message:'When the "featureType" member is present, the "conformsTo" member of the JSON document SHALL include at least the Feature Types and Schemas conformance class.'}}});M_.push({name:"/req/types-schemas/feature-type",validateFeature:(t,e)=>{if(e&&Vd(t)&&t.featureType===void 0)return{pointer:"/conformsTo",message:'When the document conforms to the Feature Types and Schemas conformance class, the "featureType" member must be present.'}},validateFeatureCollection:t=>{if(Vd(t)&&t.featureType===void 0&&t.features.every(e=>e.featureType===void 0))return{pointer:"/conformsTo",message:'When the document conforms to the Feature Types and Schemas conformance class, the "featureType" member must be present in either the collection or in every individual feature.'};if(Vd(t)&&t.featureType!==void 0&&t.features.some(e=>e.featureType!==void 0))return{pointer:"/conformsTo",message:'When the document contains a "featureType" member, individual members may not contain a "featureType" member.'};if(Vd(t)&&t.featureType===void 0&&t.features.some(e=>e.featureType!==void 0)&&!t.features.every(e=>e.featureType!==void 0))return{pointer:"/conformsTo",message:'When the document does not contain a "featureType" member, every individual feature must contain a "featureType" member.'}}});M_.push({name:"/req/types-schemas/geometry-dimension",validateFeatureCollection:t=>{if(t.geometryDimension===0&&t.features.some(e=>!kw(e,[dr.POINT,dr.MULTIPOINT])))return{pointer:"/geometryDimension",message:'When the "geometryDimension" member of a feature collection has value 0, member features may only contain (Multi)Point primary geometries.'};if(t.geometryDimension===1&&t.features.some(e=>!kw(e,[dr.LINESTRING,dr.MULTILINESTRING])))return{pointer:"/geometryDimension",message:'When the "geometryDimension" member of a feature collection has value 1, member features may only contain (Multi)LineString primary geometries.'};if(t.geometryDimension===2&&t.features.some(e=>!kw(e,[dr.POLYGON,dr.MULTIPOLYGON])))return{pointer:"/geometryDimension",message:'When the "geometryDimension" member of a feature collection has value 2, member features may only contain (Multi)Polygon primary geometries.'};if(t.geometryDimension===3&&t.features.some(e=>!kw(e,[dr.POLYHEDRON,dr.MULTIPOLYHEDRON,dr.PRISM,dr.MULTIPRISM])))return{pointer:"/geometryDimension",message:'When the "geometryDimension" member of a feature collection has value 3, member features may only contain (Multi)Polygon primary geometries.'}}});const tLe=[...DJ,...qM,...Vg,...xJ,...M_],rLe=(t,e)=>{var i,a,o;const n=[];if(e.type===AC.FEATURE){const r=(i=t.validateFeature)==null?void 0:i.call(void 0,e,!0);r&&n.push(r)}if(e.type===AC.FEATURECOLLECTION){const r=(a=t.validateFeatureCollection)==null?void 0:a.call(void 0,e);r&&n.push(r),(o=e.features)==null||o.forEach((s,c)=>{var u;const l=(u=t.validateFeature)==null?void 0:u.call(void 0,s,!1);l&&n.push({...l,pointer:"/features/"+c+l.pointer})})}return n},UU=qj(t=>{let e;try{e=JSON.parse(t.state.doc.toString())}catch{return[]}const n=BMe(t.state),i=[];return tLe.forEach(a=>{rLe(a,e).forEach(r=>{const s=n.get(r.pointer);i.push({source:kQ,from:s.valueFrom,to:s.valueTo,severity:"error",message:r.message})})}),i}),nLe="http://www.opengis.net/spec/json-fg-1/0.2/conf/core/schema",kQ="http://www.opengis.net/spec/json-fg-1/0.2/conf/core",iLe={name:"JSON-FG",slug:"json-fg",example:JSON.stringify(jMe,void 0,2),linters:[{name:nLe,linter:UU},{name:kQ,linter:UU}]},OQ="application/json",BU="application/geo+json",aLe="application/vnd.oai.openapi+json;version=3.0";var Oh={},Yg={};/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var EC=function(t,e){return EC=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},EC(t,e)};function sLe(t,e){EC(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var IC=function(){return IC=Object.assign||function(e){for(var n,i=1,a=arguments.length;i=0;s--)(r=t[s])&&(o=(a<3?r(o):a>3?r(e,n,o):r(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o}function cLe(t,e){return function(n,i){e(n,i,t)}}function uLe(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}function fLe(t,e,n,i){function a(o){return o instanceof n?o:new n(function(r){r(o)})}return new(n||(n=Promise))(function(o,r){function s(u){try{l(i.next(u))}catch(f){r(f)}}function c(u){try{l(i.throw(u))}catch(f){r(f)}}function l(u){u.done?o(u.value):a(u.value).then(s,c)}l((i=i.apply(t,e||[])).next())})}function pLe(t,e){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},i,a,o,r;return r={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(r[Symbol.iterator]=function(){return this}),r;function s(l){return function(u){return c([l,u])}}function c(l){if(i)throw new TypeError("Generator is already executing.");for(;n;)try{if(i=1,a&&(o=l[0]&2?a.return:l[0]?a.throw||((o=a.return)&&o.call(a),0):a.next)&&!(o=o.call(a,l[1])).done)return o;switch(a=0,o&&(l=[l[0]&2,o.value]),l[0]){case 0:case 1:o=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,a=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function EQ(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,o=[],r;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)o.push(a.value)}catch(s){r={error:s}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return o}function mLe(){for(var t=[],e=0;e1||s(h,d)})})}function s(h,d){try{c(i[h](d))}catch(m){f(o[0][3],m)}}function c(h){h.value instanceof BP?Promise.resolve(h.value.v).then(l,u):f(o[0][2],h)}function l(h){s("next",h)}function u(h){s("throw",h)}function f(h,d){h(d),o.shift(),o.length&&s(o[0][0],o[0][1])}}function vLe(t){var e,n;return e={},i("next"),i("throw",function(a){throw a}),i("return"),e[Symbol.iterator]=function(){return this},e;function i(a,o){e[a]=t[a]?function(r){return(n=!n)?{value:BP(t[a](r)),done:a==="return"}:o?o(r):r}:o}}function PLe(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],n;return e?e.call(t):(t=typeof CC=="function"?CC(t):t[Symbol.iterator](),n={},i("next"),i("throw"),i("return"),n[Symbol.asyncIterator]=function(){return this},n);function i(o){n[o]=t[o]&&function(r){return new Promise(function(s,c){r=t[o](r),a(s,c,r.done,r.value)})}}function a(o,r,s,c){Promise.resolve(c).then(function(l){o({value:l,done:s})},r)}}function bLe(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}function wLe(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var n in t)Object.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function $Le(t){return t&&t.__esModule?t:{default:t}}function ALe(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)}function SLe(t,e,n){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,n),n}const _Le=Object.freeze(Object.defineProperty({__proto__:null,get __assign(){return IC},__asyncDelegator:vLe,__asyncGenerator:gLe,__asyncValues:PLe,__await:BP,__awaiter:fLe,__classPrivateFieldGet:ALe,__classPrivateFieldSet:SLe,__createBinding:hLe,__decorate:lLe,__exportStar:dLe,__extends:sLe,__generator:pLe,__importDefault:$Le,__importStar:wLe,__makeTemplateObject:bLe,__metadata:uLe,__param:cLe,__read:EQ,__rest:oLe,__spread:mLe,__spreadArrays:yLe,__values:CC},Symbol.toStringTag,{value:"Module"})),xLe=Yl(_Le);var TC={exports:{}};(function(t,e){var n=function(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof Cr<"u")return Cr;throw new Error("unable to locate global object")},i=n();t.exports=e=i.fetch,i.fetch&&(e.default=i.fetch.bind(i)),e.Headers=i.Headers,e.Request=i.Request,e.Response=i.Response})(TC,TC.exports);var IQ=TC.exports;Object.defineProperty(Yg,"__esModule",{value:!0});const DLe=xLe,kLe=IQ;class CQ extends Error{constructor(){super(...arguments),this.name="OpenError"}}Yg.OpenError=CQ;class TQ extends Error{constructor(){super(...arguments),this.name="ReadError"}}Yg.NetworkError=TQ;function jQ(t,e={}){return DLe.__awaiter(this,void 0,void 0,function*(){const n=t.href(),i=yield kLe.default(n,e);if(i.ok)return i.text();throw i.status===404?new CQ(`Page not found: ${n}`):new TQ(`${i.status} ${i.statusText}`)})}Yg.resolveHttp=jQ;function OLe(t={}){return e=>jQ(e,t)}Yg.createResolveHttp=OLe;var zM={};const ELe={},ILe=Object.freeze(Object.defineProperty({__proto__:null,default:ELe},Symbol.toStringTag,{value:"Module"})),xb=Yl(ILe);Object.defineProperty(zM,"__esModule",{value:!0});const CLe=xb;function TLe(t){return new Promise((e,n)=>{const i=t.href();CLe.readFile(i,"utf8",(a,o)=>{a?n(a):e(o)})})}zM.resolveFile=TLe;Object.defineProperty(Oh,"__esModule",{value:!0});var R_=Yg;Oh.createResolveHttp=R_.createResolveHttp;var pS=Oh.resolveHttp=R_.resolveHttp;Oh.NetworkError=R_.NetworkError;Oh.OpenError=R_.OpenError;var jLe=zM;Oh.resolveFile=jLe.resolveFile;var UM={},jC=function(t,e){return jC=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},jC(t,e)};function MQ(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");jC(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var hS=function(){return hS=Object.assign||function(e){for(var n,i=1,a=arguments.length;i=0;s--)(r=t[s])&&(o=(a<3?r(o):a>3?r(e,n,o):r(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o}function LQ(t,e){return function(n,i){e(n,i,t)}}function MLe(t,e,n,i,a,o){function r(v){if(v!==void 0&&typeof v!="function")throw new TypeError("Function expected");return v}for(var s=i.kind,c=s==="getter"?"get":s==="setter"?"set":"value",l=!e&&t?i.static?t:t.prototype:null,u=e||(l?Object.getOwnPropertyDescriptor(l,i.name):{}),f,h=!1,d=n.length-1;d>=0;d--){var m={};for(var g in i)m[g]=g==="access"?{}:i[g];for(var g in i.access)m.access[g]=i.access[g];m.addInitializer=function(v){if(h)throw new TypeError("Cannot add initializers after decoration has completed");o.push(r(v||null))};var b=(0,n[d])(s==="accessor"?{get:u.get,set:u.set}:u[c],m);if(s==="accessor"){if(b===void 0)continue;if(b===null||typeof b!="object")throw new TypeError("Object expected");(f=r(b.get))&&(u.get=f),(f=r(b.set))&&(u.set=f),(f=r(b.init))&&a.unshift(f)}else(f=r(b))&&(s==="field"?a.unshift(f):u[c]=f)}l&&Object.defineProperty(l,i.name,u),h=!0}function RLe(t,e,n){for(var i=arguments.length>2,a=0;a0&&o[o.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function BM(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,o=[],r;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)o.push(a.value)}catch(s){r={error:s}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return o}function BQ(){for(var t=[],e=0;e1||c(d,g)})},m&&(a[d]=m(a[d])))}function c(d,m){try{l(i[d](m))}catch(g){h(o[0][3],g)}}function l(d){d.value instanceof gg?Promise.resolve(d.value.v).then(u,f):h(o[0][2],d)}function u(d){c("next",d)}function f(d){c("throw",d)}function h(d,m){d(m),o.shift(),o.length&&c(o[0][0],o[0][1])}}function GQ(t){var e,n;return e={},i("next"),i("throw",function(a){throw a}),i("return"),e[Symbol.iterator]=function(){return this},e;function i(a,o){e[a]=t[a]?function(r){return(n=!n)?{value:gg(t[a](r)),done:!1}:o?o(r):r}:o}}function KQ(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],n;return e?e.call(t):(t=typeof dS=="function"?dS(t):t[Symbol.iterator](),n={},i("next"),i("throw"),i("return"),n[Symbol.asyncIterator]=function(){return this},n);function i(o){n[o]=t[o]&&function(r){return new Promise(function(s,c){r=t[o](r),a(s,c,r.done,r.value)})}}function a(o,r,s,c){Promise.resolve(c).then(function(l){o({value:l,done:s})},r)}}function YQ(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}var FLe=Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e};function JQ(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var n in t)n!=="default"&&Object.prototype.hasOwnProperty.call(t,n)&&N_(e,t,n);return FLe(e,t),e}function QQ(t){return t&&t.__esModule?t:{default:t}}function ZQ(t,e,n,i){if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?i:n==="a"?i.call(t):i?i.value:e.get(t)}function XQ(t,e,n,i,a){if(i==="m")throw new TypeError("Private method is not writable");if(i==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!a:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return i==="a"?a.call(t,n):a?a.value=n:e.set(t,n),n}function eZ(t,e){if(e===null||typeof e!="object"&&typeof e!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof t=="function"?e===t:t.has(e)}function tZ(t,e,n){if(e!=null){if(typeof e!="object"&&typeof e!="function")throw new TypeError("Object expected.");var i,a;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");i=e[Symbol.asyncDispose]}if(i===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");i=e[Symbol.dispose],n&&(a=i)}if(typeof i!="function")throw new TypeError("Object not disposable.");a&&(i=function(){try{a.call(this)}catch(o){return Promise.reject(o)}}),t.stack.push({value:e,dispose:i,async:n})}else n&&t.stack.push({async:!0});return e}var qLe=typeof SuppressedError=="function"?SuppressedError:function(t,e,n){var i=new Error(n);return i.name="SuppressedError",i.error=t,i.suppressed=e,i};function rZ(t){function e(o){t.error=t.hasError?new qLe(o,t.error,"An error was suppressed during disposal."):o,t.hasError=!0}var n,i=0;function a(){for(;n=t.stack.pop();)try{if(!n.async&&i===1)return i=0,t.stack.push(n),Promise.resolve().then(a);if(n.dispose){var o=n.dispose.call(n.value);if(n.async)return i|=2,Promise.resolve(o).then(a,function(r){return e(r),a()})}else i|=1}catch(r){e(r)}if(i===1)return t.hasError?Promise.reject(t.error):Promise.resolve();if(t.hasError)throw t.error}return a()}const zLe={__extends:MQ,__assign:hS,__rest:RQ,__decorate:NQ,__param:LQ,__metadata:FQ,__awaiter:qQ,__generator:zQ,__createBinding:N_,__exportStar:UQ,__values:dS,__read:BM,__spread:BQ,__spreadArrays:VQ,__spreadArray:WQ,__await:gg,__asyncGenerator:HQ,__asyncDelegator:GQ,__asyncValues:KQ,__makeTemplateObject:YQ,__importStar:JQ,__importDefault:QQ,__classPrivateFieldGet:ZQ,__classPrivateFieldSet:XQ,__classPrivateFieldIn:eZ,__addDisposableResource:tZ,__disposeResources:rZ},ULe=Object.freeze(Object.defineProperty({__proto__:null,__addDisposableResource:tZ,get __assign(){return hS},__asyncDelegator:GQ,__asyncGenerator:HQ,__asyncValues:KQ,__await:gg,__awaiter:qQ,__classPrivateFieldGet:ZQ,__classPrivateFieldIn:eZ,__classPrivateFieldSet:XQ,__createBinding:N_,__decorate:NQ,__disposeResources:rZ,__esDecorate:MLe,__exportStar:UQ,__extends:MQ,__generator:zQ,__importDefault:QQ,__importStar:JQ,__makeTemplateObject:YQ,__metadata:FQ,__param:LQ,__propKey:NLe,__read:BM,__rest:RQ,__runInitializers:RLe,__setFunctionName:LLe,__spread:BQ,__spreadArray:WQ,__spreadArrays:VQ,__values:dS,default:zLe},Symbol.toStringTag,{value:"Module"})),vr=Yl(ULe);var K0={},Ow={},VU;function L_(){if(VU)return Ow;VU=1;function t(i,a,o,r){var s={};return function(c){if(!s[c]){var l={},u=[],f=[];for(f.push({node:c,processed:!1});f.length>0;){var h=f[f.length-1],d=h.processed,m=h.node;if(d)f.pop(),u.pop(),l[m]=!1,s[m]=!0,(!a||i[m].length===0)&&o.push(m);else{if(s[m]){f.pop();continue}else if(l[m]){if(r){f.pop();continue}throw u.push(m),new n(u)}l[m]=!0,u.push(m);for(var g=i[m],b=g.length-1;b>=0;b--)f.push({node:g[b],processed:!1});h.processed=!0}}}}}var e=Ow.DepGraph=function(a){this.nodes={},this.outgoingEdges={},this.incomingEdges={},this.circular=a&&!!a.circular};e.prototype={size:function(){return Object.keys(this.nodes).length},addNode:function(i,a){this.hasNode(i)||(arguments.length===2?this.nodes[i]=a:this.nodes[i]=i,this.outgoingEdges[i]=[],this.incomingEdges[i]=[])},removeNode:function(i){this.hasNode(i)&&(delete this.nodes[i],delete this.outgoingEdges[i],delete this.incomingEdges[i],[this.incomingEdges,this.outgoingEdges].forEach(function(a){Object.keys(a).forEach(function(o){var r=a[o].indexOf(i);r>=0&&a[o].splice(r,1)},this)}))},hasNode:function(i){return this.nodes.hasOwnProperty(i)},getNodeData:function(i){if(this.hasNode(i))return this.nodes[i];throw new Error("Node does not exist: "+i)},setNodeData:function(i,a){if(this.hasNode(i))this.nodes[i]=a;else throw new Error("Node does not exist: "+i)},addDependency:function(i,a){if(!this.hasNode(i))throw new Error("Node does not exist: "+i);if(!this.hasNode(a))throw new Error("Node does not exist: "+a);return this.outgoingEdges[i].indexOf(a)===-1&&this.outgoingEdges[i].push(a),this.incomingEdges[a].indexOf(i)===-1&&this.incomingEdges[a].push(i),!0},removeDependency:function(i,a){var o;this.hasNode(i)&&(o=this.outgoingEdges[i].indexOf(a),o>=0&&this.outgoingEdges[i].splice(o,1)),this.hasNode(a)&&(o=this.incomingEdges[a].indexOf(i),o>=0&&this.incomingEdges[a].splice(o,1))},clone:function(){var i=this,a=new e,o=Object.keys(i.nodes);return o.forEach(function(r){a.nodes[r]=i.nodes[r],a.outgoingEdges[r]=i.outgoingEdges[r].slice(0),a.incomingEdges[r]=i.incomingEdges[r].slice(0)}),a},directDependenciesOf:function(i){if(this.hasNode(i))return this.outgoingEdges[i].slice(0);throw new Error("Node does not exist: "+i)},directDependantsOf:function(i){if(this.hasNode(i))return this.incomingEdges[i].slice(0);throw new Error("Node does not exist: "+i)},dependenciesOf:function(i,a){if(this.hasNode(i)){var o=[],r=t(this.outgoingEdges,a,o,this.circular);r(i);var s=o.indexOf(i);return s>=0&&o.splice(s,1),o}else throw new Error("Node does not exist: "+i)},dependantsOf:function(i,a){if(this.hasNode(i)){var o=[],r=t(this.incomingEdges,a,o,this.circular);r(i);var s=o.indexOf(i);return s>=0&&o.splice(s,1),o}else throw new Error("Node does not exist: "+i)},overallOrder:function(i){var a=this,o=[],r=Object.keys(this.nodes);if(r.length===0)return o;if(!this.circular){var s=t(this.outgoingEdges,!1,[],this.circular);r.forEach(function(l){s(l)})}var c=t(this.outgoingEdges,i,o,this.circular);return r.filter(function(l){return a.incomingEdges[l].length===0}).forEach(function(l){c(l)}),this.circular&&r.filter(function(l){return o.indexOf(l)===-1}).forEach(function(l){c(l)}),o},entryNodes:function(){var i=this;return Object.keys(this.nodes).filter(function(a){return i.incomingEdges[a].length===0})}},e.prototype.directDependentsOf=e.prototype.directDependantsOf,e.prototype.dependentsOf=e.prototype.dependantsOf;var n=Ow.DepGraphCycleError=function(i){var a="Dependency Cycle Found: "+i.join(" -> "),o=new Error(a);return o.cyclePath=i,Object.setPrototypeOf(o,Object.getPrototypeOf(this)),Error.captureStackTrace&&Error.captureStackTrace(o,n),o};return n.prototype=Object.create(Error.prototype,{constructor:{value:Error,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf(n,Error),Ow}var Y0={},WU;function VM(){if(WU)return Y0;WU=1,Object.defineProperty(Y0,"__esModule",{value:!0}),Y0.Cache=void 0;class t{constructor(n={}){this._stats={hits:0,misses:0},this._data={},this._stdTTL=n.stdTTL}get stats(){return this._stats}get(n){const i=this._data[n];if(i&&(!this._stdTTL||new Date().getTime()-i.ts - * Copyright OpenJS Foundation and other contributors - * Released under MIT license - * Based on Underscore.js 1.8.3 - * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */mS.exports;(function(t,e){(function(){var n,i="4.17.21",a=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",r="Expected a function",s="Invalid `variable` option passed into `_.template`",c="__lodash_hash_undefined__",l=500,u="__lodash_placeholder__",f=1,h=2,d=4,m=1,g=2,b=1,v=2,P=4,A=8,_=16,x=32,N=64,j=128,I=256,E=512,L=30,q="...",F=800,S=16,D=1,M=2,C=3,H=1/0,X=9007199254740991,ie=17976931348623157e292,U=NaN,R=4294967295,z=R-1,V=R>>>1,T=[["ary",j],["bind",b],["bindKey",v],["curry",A],["curryRight",_],["flip",E],["partial",x],["partialRight",N],["rearg",I]],W="[object Arguments]",le="[object Array]",ve="[object AsyncFunction]",ae="[object Boolean]",_e="[object Date]",he="[object DOMException]",Ee="[object Error]",Ge="[object Function]",Me="[object GeneratorFunction]",Ae="[object Map]",at="[object Number]",gt="[object Null]",Ne="[object Object]",Ce="[object Promise]",$t="[object Proxy]",xe="[object RegExp]",ct="[object Set]",nn="[object String]",qr="[object Symbol]",an="[object Undefined]",Xt="[object WeakMap]",er="[object WeakSet]",J="[object ArrayBuffer]",w="[object DataView]",K="[object Float32Array]",Z="[object Float64Array]",fe="[object Int8Array]",de="[object Int16Array]",G="[object Int32Array]",k="[object Uint8Array]",ee="[object Uint8ClampedArray]",te="[object Uint16Array]",ce="[object Uint32Array]",oe=/\b__p \+= '';/g,Pe=/\b(__p \+=) '' \+/g,De=/(__e\(.*?\)|\b__t\)) \+\n'';/g,be=/&(?:amp|lt|gt|quot|#39);/g,Fe=/[&<>"']/g,Ye=RegExp(be.source),mt=RegExp(Fe.source),ut=/<%-([\s\S]+?)%>/g,Jt=/<%([\s\S]+?)%>/g,un=/<%=([\s\S]+?)%>/g,wi=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Os=/^\w*$/,re=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ct=/[\\^$.*+?()[\]{}|]/g,es=RegExp(Ct.source),Wn=/^\s+/,ul=/\s/,se=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ge=/\{\n\/\* \[wrapped with (.+)\] \*/,ke=/,? & /,Te=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ze=/[()=,{}\[\]\/\s]/,vt=/\\(\\)?/g,xt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Qe=/\w*$/,Le=/^[-+]0x[0-9a-f]+$/i,ht=/^0b[01]+$/i,ft=/^\[object .+?Constructor\]$/,ir=/^0o[0-7]+$/i,lr=/^(?:0|[1-9]\d*)$/,Pr=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,zt=/($^)/,gn=/['\n\r\u2028\u2029\\]/g,jr="\\ud800-\\udfff",ec="\\u0300-\\u036f",Ta="\\ufe20-\\ufe2f",fl="\\u20d0-\\u20ff",ts=ec+Ta+fl,tc="\\u2700-\\u27bf",ra="a-z\\xdf-\\xf6\\xf8-\\xff",rc="\\xac\\xb1\\xd7\\xf7",nc="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",pl="\\u2000-\\u206f",It=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",kr="A-Z\\xc0-\\xd6\\xd8-\\xde",Gr="\\ufe0e\\ufe0f",Ht=rc+nc+pl+It,vn="['’]",Nh="["+jr+"]",ic="["+Ht+"]",xo="["+ts+"]",Gf="\\d+",$u="["+tc+"]",Ub="["+ra+"]",Bb="[^"+jr+Ht+Gf+tc+ra+kr+"]",ne="\\ud83c[\\udffb-\\udfff]",pe="(?:"+xo+"|"+ne+")",we="[^"+jr+"]",ye="(?:\\ud83c[\\udde6-\\uddff]){2}",et="[\\ud800-\\udbff][\\udc00-\\udfff]",yt="["+kr+"]",Li="\\u200d",Au="(?:"+Ub+"|"+Bb+")",Mre="(?:"+yt+"|"+Bb+")",sL="(?:"+vn+"(?:d|ll|m|re|s|t|ve))?",oL="(?:"+vn+"(?:D|LL|M|RE|S|T|VE))?",lL=pe+"?",cL="["+Gr+"]?",Rre="(?:"+Li+"(?:"+[we,ye,et].join("|")+")"+cL+lL+")*",Nre="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Lre="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",uL=cL+lL+Rre,Fre="(?:"+[$u,ye,et].join("|")+")"+uL,qre="(?:"+[we+xo+"?",xo,ye,et,Nh].join("|")+")",zre=RegExp(vn,"g"),Ure=RegExp(xo,"g"),Kx=RegExp(ne+"(?="+ne+")|"+qre+uL,"g"),Bre=RegExp([yt+"?"+Ub+"+"+sL+"(?="+[ic,yt,"$"].join("|")+")",Mre+"+"+oL+"(?="+[ic,yt+Au,"$"].join("|")+")",yt+"?"+Au+"+"+sL,yt+"+"+oL,Lre,Nre,Gf,Fre].join("|"),"g"),Vre=RegExp("["+Li+jr+ts+Gr+"]"),Wre=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Hre=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Gre=-1,Kr={};Kr[K]=Kr[Z]=Kr[fe]=Kr[de]=Kr[G]=Kr[k]=Kr[ee]=Kr[te]=Kr[ce]=!0,Kr[W]=Kr[le]=Kr[J]=Kr[ae]=Kr[w]=Kr[_e]=Kr[Ee]=Kr[Ge]=Kr[Ae]=Kr[at]=Kr[Ne]=Kr[xe]=Kr[ct]=Kr[nn]=Kr[Xt]=!1;var zr={};zr[W]=zr[le]=zr[J]=zr[w]=zr[ae]=zr[_e]=zr[K]=zr[Z]=zr[fe]=zr[de]=zr[G]=zr[Ae]=zr[at]=zr[Ne]=zr[xe]=zr[ct]=zr[nn]=zr[qr]=zr[k]=zr[ee]=zr[te]=zr[ce]=!0,zr[Ee]=zr[Ge]=zr[Xt]=!1;var Kre={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Yre={"&":"&","<":"<",">":">",'"':""","'":"'"},Jre={"&":"&","<":"<",">":">",""":'"',"'":"'"},Qre={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Zre=parseFloat,Xre=parseInt,fL=typeof Cr=="object"&&Cr&&Cr.Object===Object&&Cr,ene=typeof self=="object"&&self&&self.Object===Object&&self,$i=fL||ene||Function("return this")(),Yx=e&&!e.nodeType&&e,Kf=Yx&&!0&&t&&!t.nodeType&&t,pL=Kf&&Kf.exports===Yx,Jx=pL&&fL.process,Es=function(){try{var $e=Kf&&Kf.require&&Kf.require("util").types;return $e||Jx&&Jx.binding&&Jx.binding("util")}catch{}}(),hL=Es&&Es.isArrayBuffer,dL=Es&&Es.isDate,mL=Es&&Es.isMap,yL=Es&&Es.isRegExp,gL=Es&&Es.isSet,vL=Es&&Es.isTypedArray;function rs($e,qe,Oe){switch(Oe.length){case 0:return $e.call(qe);case 1:return $e.call(qe,Oe[0]);case 2:return $e.call(qe,Oe[0],Oe[1]);case 3:return $e.call(qe,Oe[0],Oe[1],Oe[2])}return $e.apply(qe,Oe)}function tne($e,qe,Oe,ot){for(var Mt=-1,pr=$e==null?0:$e.length;++Mt-1}function Qx($e,qe,Oe){for(var ot=-1,Mt=$e==null?0:$e.length;++ot-1;);return Oe}function xL($e,qe){for(var Oe=$e.length;Oe--&&Lh(qe,$e[Oe],0)>-1;);return Oe}function une($e,qe){for(var Oe=$e.length,ot=0;Oe--;)$e[Oe]===qe&&++ot;return ot}var fne=tD(Kre),pne=tD(Yre);function hne($e){return"\\"+Qre[$e]}function dne($e,qe){return $e==null?n:$e[qe]}function Fh($e){return Vre.test($e)}function mne($e){return Wre.test($e)}function yne($e){for(var qe,Oe=[];!(qe=$e.next()).done;)Oe.push(qe.value);return Oe}function aD($e){var qe=-1,Oe=Array($e.size);return $e.forEach(function(ot,Mt){Oe[++qe]=[Mt,ot]}),Oe}function DL($e,qe){return function(Oe){return $e(qe(Oe))}}function xu($e,qe){for(var Oe=-1,ot=$e.length,Mt=0,pr=[];++Oe-1}function nie(p,y){var $=this.__data__,O=o1($,p);return O<0?(++this.size,$.push([p,y])):$[O][1]=y,this}ac.prototype.clear=Xne,ac.prototype.delete=eie,ac.prototype.get=tie,ac.prototype.has=rie,ac.prototype.set=nie;function sc(p){var y=-1,$=p==null?0:p.length;for(this.clear();++y<$;){var O=p[y];this.set(O[0],O[1])}}function iie(){this.size=0,this.__data__={hash:new Jf,map:new(d0||ac),string:new Jf}}function aie(p){var y=P1(this,p).delete(p);return this.size-=y?1:0,y}function sie(p){return P1(this,p).get(p)}function oie(p){return P1(this,p).has(p)}function lie(p,y){var $=P1(this,p),O=$.size;return $.set(p,y),this.size+=$.size==O?0:1,this}sc.prototype.clear=iie,sc.prototype.delete=aie,sc.prototype.get=sie,sc.prototype.has=oie,sc.prototype.set=lie;function Qf(p){var y=-1,$=p==null?0:p.length;for(this.__data__=new sc;++y<$;)this.add(p[y])}function cie(p){return this.__data__.set(p,c),this}function uie(p){return this.__data__.has(p)}Qf.prototype.add=Qf.prototype.push=cie,Qf.prototype.has=uie;function ko(p){var y=this.__data__=new ac(p);this.size=y.size}function fie(){this.__data__=new ac,this.size=0}function pie(p){var y=this.__data__,$=y.delete(p);return this.size=y.size,$}function hie(p){return this.__data__.get(p)}function die(p){return this.__data__.has(p)}function mie(p,y){var $=this.__data__;if($ instanceof ac){var O=$.__data__;if(!d0||O.length=y?p:y)),p}function js(p,y,$,O,B,Q){var ue,me=y&f,Se=y&h,Ue=y&d;if($&&(ue=B?$(p,O,B,Q):$(p)),ue!==n)return ue;if(!fn(p))return p;var Be=Rt(p);if(Be){if(ue=oae(p),!me)return ja(p,ue)}else{var He=qi(p),tt=He==Ge||He==Me;if(Cu(p))return cF(p,me);if(He==Ne||He==W||tt&&!B){if(ue=Se||tt?{}:kF(p),!me)return Se?Jie(p,Pie(ue,p)):Yie(p,FL(ue,p))}else{if(!zr[He])return B?p:{};ue=lae(p,He,me)}}Q||(Q=new ko);var Pt=Q.get(p);if(Pt)return Pt;Q.set(p,ue),nq(p)?p.forEach(function(Ot){ue.add(js(Ot,y,$,Ot,p,Q))}):tq(p)&&p.forEach(function(Ot,Qt){ue.set(Qt,js(Ot,y,$,Qt,p,Q))});var kt=Ue?Se?ID:ED:Se?Ra:fi,Ut=Be?n:kt(p);return Is(Ut||p,function(Ot,Qt){Ut&&(Qt=Ot,Ot=p[Qt]),v0(ue,Qt,js(Ot,y,$,Qt,p,Q))}),ue}function bie(p){var y=fi(p);return function($){return qL($,p,y)}}function qL(p,y,$){var O=$.length;if(p==null)return!O;for(p=Mr(p);O--;){var B=$[O],Q=y[B],ue=p[B];if(ue===n&&!(B in p)||!Q(ue))return!1}return!0}function zL(p,y,$){if(typeof p!="function")throw new Cs(r);return _0(function(){p.apply(n,$)},y)}function P0(p,y,$,O){var B=-1,Q=Vb,ue=!0,me=p.length,Se=[],Ue=y.length;if(!me)return Se;$&&(y=sn(y,ns($))),O?(Q=Qx,ue=!1):y.length>=a&&(Q=p0,ue=!1,y=new Qf(y));e:for(;++BB?0:B+$),O=O===n||O>B?B:Ft(O),O<0&&(O+=B),O=$>O?0:aq(O);$0&&$(me)?y>1?Ai(me,y-1,$,O,B):_u(B,me):O||(B[B.length]=me)}return B}var pD=mF(),VL=mF(!0);function hl(p,y){return p&&pD(p,y,fi)}function hD(p,y){return p&&VL(p,y,fi)}function c1(p,y){return Su(y,function($){return fc(p[$])})}function Xf(p,y){y=Eu(y,p);for(var $=0,O=y.length;p!=null&&$y}function Aie(p,y){return p!=null&&_r.call(p,y)}function Sie(p,y){return p!=null&&y in Mr(p)}function _ie(p,y,$){return p>=Fi(y,$)&&p=120&&Be.length>=120)?new Qf(ue&&Be):n}Be=p[0];var He=-1,tt=me[0];e:for(;++He-1;)me!==p&&e1.call(me,Se,1),e1.call(p,Se,1);return p}function tF(p,y){for(var $=p?y.length:0,O=$-1;$--;){var B=y[$];if($==O||B!==Q){var Q=B;uc(B)?e1.call(p,B,1):AD(p,B)}}return p}function bD(p,y){return p+n1(ML()*(y-p+1))}function Lie(p,y,$,O){for(var B=-1,Q=ti(r1((y-p)/($||1)),0),ue=Oe(Q);Q--;)ue[O?Q:++B]=p,p+=$;return ue}function wD(p,y){var $="";if(!p||y<1||y>X)return $;do y%2&&($+=p),y=n1(y/2),y&&(p+=p);while(y);return $}function Vt(p,y){return LD(IF(p,y,Na),p+"")}function Fie(p){return LL(Jh(p))}function qie(p,y){var $=Jh(p);return b1($,Zf(y,0,$.length))}function $0(p,y,$,O){if(!fn(p))return p;y=Eu(y,p);for(var B=-1,Q=y.length,ue=Q-1,me=p;me!=null&&++BB?0:B+y),$=$>B?B:$,$<0&&($+=B),B=y>$?0:$-y>>>0,y>>>=0;for(var Q=Oe(B);++O>>1,ue=p[Q];ue!==null&&!as(ue)&&($?ue<=y:ue=a){var Ue=y?null:eae(p);if(Ue)return Hb(Ue);ue=!1,B=p0,Se=new Qf}else Se=y?[]:me;e:for(;++O=O?p:Ms(p,y,$)}var lF=Ine||function(p){return $i.clearTimeout(p)};function cF(p,y){if(y)return p.slice();var $=p.length,O=EL?EL($):new p.constructor($);return p.copy(O),O}function DD(p){var y=new p.constructor(p.byteLength);return new Zb(y).set(new Zb(p)),y}function Wie(p,y){var $=y?DD(p.buffer):p.buffer;return new p.constructor($,p.byteOffset,p.byteLength)}function Hie(p){var y=new p.constructor(p.source,Qe.exec(p));return y.lastIndex=p.lastIndex,y}function Gie(p){return g0?Mr(g0.call(p)):{}}function uF(p,y){var $=y?DD(p.buffer):p.buffer;return new p.constructor($,p.byteOffset,p.length)}function fF(p,y){if(p!==y){var $=p!==n,O=p===null,B=p===p,Q=as(p),ue=y!==n,me=y===null,Se=y===y,Ue=as(y);if(!me&&!Ue&&!Q&&p>y||Q&&ue&&Se&&!me&&!Ue||O&&ue&&Se||!$&&Se||!B)return 1;if(!O&&!Q&&!Ue&&p=me)return Se;var Ue=$[O];return Se*(Ue=="desc"?-1:1)}}return p.index-y.index}function pF(p,y,$,O){for(var B=-1,Q=p.length,ue=$.length,me=-1,Se=y.length,Ue=ti(Q-ue,0),Be=Oe(Se+Ue),He=!O;++me1?$[B-1]:n,ue=B>2?$[2]:n;for(Q=p.length>3&&typeof Q=="function"?(B--,Q):n,ue&&ia($[0],$[1],ue)&&(Q=B<3?n:Q,B=1),y=Mr(y);++O-1?B[Q?y[ue]:ue]:n}}function vF(p){return cc(function(y){var $=y.length,O=$,B=Ts.prototype.thru;for(p&&y.reverse();O--;){var Q=y[O];if(typeof Q!="function")throw new Cs(r);if(B&&!ue&&v1(Q)=="wrapper")var ue=new Ts([],!0)}for(O=ue?O:$;++O<$;){Q=y[O];var me=v1(Q),Se=me=="wrapper"?CD(Q):n;Se&&RD(Se[0])&&Se[1]==(j|A|x|I)&&!Se[4].length&&Se[9]==1?ue=ue[v1(Se[0])].apply(ue,Se[3]):ue=Q.length==1&&RD(Q)?ue[me]():ue.thru(Q)}return function(){var Ue=arguments,Be=Ue[0];if(ue&&Ue.length==1&&Rt(Be))return ue.plant(Be).value();for(var He=0,tt=$?y[He].apply(this,Ue):Be;++He<$;)tt=y[He].call(this,tt);return tt}})}function d1(p,y,$,O,B,Q,ue,me,Se,Ue){var Be=y&j,He=y&b,tt=y&v,Pt=y&(A|_),kt=y&E,Ut=tt?n:A0(p);function Ot(){for(var Qt=arguments.length,ar=Oe(Qt),ss=Qt;ss--;)ar[ss]=arguments[ss];if(Pt)var aa=Kh(Ot),os=une(ar,aa);if(O&&(ar=pF(ar,O,B,Pt)),Q&&(ar=hF(ar,Q,ue,Pt)),Qt-=os,Pt&&Qt1&&ar.reverse(),Be&&Seme))return!1;var Ue=Q.get(p),Be=Q.get(y);if(Ue&&Be)return Ue==y&&Be==p;var He=-1,tt=!0,Pt=$&g?new Qf:n;for(Q.set(p,y),Q.set(y,p);++He1?"& ":"")+y[O],y=y.join($>2?", ":" "),p.replace(se,`{ -/* [wrapped with `+y+`] */ -`)}function uae(p){return Rt(p)||rp(p)||!!(TL&&p&&p[TL])}function uc(p,y){var $=typeof p;return y=y??X,!!y&&($=="number"||$!="symbol"&&lr.test(p))&&p>-1&&p%1==0&&p0){if(++y>=F)return arguments[0]}else y=0;return p.apply(n,arguments)}}function b1(p,y){var $=-1,O=p.length,B=O-1;for(y=y===n?O:y;++$1?p[y-1]:n;return $=typeof $=="function"?(p.pop(),$):n,BF(p,$)});function VF(p){var y=Y(p);return y.__chain__=!0,y}function wse(p,y){return y(p),p}function w1(p,y){return y(p)}var $se=cc(function(p){var y=p.length,$=y?p[0]:0,O=this.__wrapped__,B=function(Q){return fD(Q,p)};return y>1||this.__actions__.length||!(O instanceof tr)||!uc($)?this.thru(B):(O=O.slice($,+$+(y?1:0)),O.__actions__.push({func:w1,args:[B],thisArg:n}),new Ts(O,this.__chain__).thru(function(Q){return y&&!Q.length&&Q.push(n),Q}))});function Ase(){return VF(this)}function Sse(){return new Ts(this.value(),this.__chain__)}function _se(){this.__values__===n&&(this.__values__=iq(this.value()));var p=this.__index__>=this.__values__.length,y=p?n:this.__values__[this.__index__++];return{done:p,value:y}}function xse(){return this}function Dse(p){for(var y,$=this;$ instanceof s1;){var O=NF($);O.__index__=0,O.__values__=n,y?B.__wrapped__=O:y=O;var B=O;$=$.__wrapped__}return B.__wrapped__=p,y}function kse(){var p=this.__wrapped__;if(p instanceof tr){var y=p;return this.__actions__.length&&(y=new tr(this)),y=y.reverse(),y.__actions__.push({func:w1,args:[FD],thisArg:n}),new Ts(y,this.__chain__)}return this.thru(FD)}function Ose(){return sF(this.__wrapped__,this.__actions__)}var Ese=h1(function(p,y,$){_r.call(p,$)?++p[$]:oc(p,$,1)});function Ise(p,y,$){var O=Rt(p)?PL:wie;return $&&ia(p,y,$)&&(y=n),O(p,Dt(y,3))}function Cse(p,y){var $=Rt(p)?Su:BL;return $(p,Dt(y,3))}var Tse=gF(LF),jse=gF(FF);function Mse(p,y){return Ai($1(p,y),1)}function Rse(p,y){return Ai($1(p,y),H)}function Nse(p,y,$){return $=$===n?1:Ft($),Ai($1(p,y),$)}function WF(p,y){var $=Rt(p)?Is:ku;return $(p,Dt(y,3))}function HF(p,y){var $=Rt(p)?rne:UL;return $(p,Dt(y,3))}var Lse=h1(function(p,y,$){_r.call(p,$)?p[$].push(y):oc(p,$,[y])});function Fse(p,y,$,O){p=Ma(p)?p:Jh(p),$=$&&!O?Ft($):0;var B=p.length;return $<0&&($=ti(B+$,0)),D1(p)?$<=B&&p.indexOf(y,$)>-1:!!B&&Lh(p,y,$)>-1}var qse=Vt(function(p,y,$){var O=-1,B=typeof y=="function",Q=Ma(p)?Oe(p.length):[];return ku(p,function(ue){Q[++O]=B?rs(y,ue,$):b0(ue,y,$)}),Q}),zse=h1(function(p,y,$){oc(p,$,y)});function $1(p,y){var $=Rt(p)?sn:YL;return $(p,Dt(y,3))}function Use(p,y,$,O){return p==null?[]:(Rt(y)||(y=y==null?[]:[y]),$=O?n:$,Rt($)||($=$==null?[]:[$]),XL(p,y,$))}var Bse=h1(function(p,y,$){p[$?0:1].push(y)},function(){return[[],[]]});function Vse(p,y,$){var O=Rt(p)?Zx:AL,B=arguments.length<3;return O(p,Dt(y,4),$,B,ku)}function Wse(p,y,$){var O=Rt(p)?nne:AL,B=arguments.length<3;return O(p,Dt(y,4),$,B,UL)}function Hse(p,y){var $=Rt(p)?Su:BL;return $(p,_1(Dt(y,3)))}function Gse(p){var y=Rt(p)?LL:Fie;return y(p)}function Kse(p,y,$){($?ia(p,y,$):y===n)?y=1:y=Ft(y);var O=Rt(p)?yie:qie;return O(p,y)}function Yse(p){var y=Rt(p)?gie:Uie;return y(p)}function Jse(p){if(p==null)return 0;if(Ma(p))return D1(p)?qh(p):p.length;var y=qi(p);return y==Ae||y==ct?p.size:gD(p).length}function Qse(p,y,$){var O=Rt(p)?Xx:Bie;return $&&ia(p,y,$)&&(y=n),O(p,Dt(y,3))}var Zse=Vt(function(p,y){if(p==null)return[];var $=y.length;return $>1&&ia(p,y[0],y[1])?y=[]:$>2&&ia(y[0],y[1],y[2])&&(y=[y[0]]),XL(p,Ai(y,1),[])}),A1=Cne||function(){return $i.Date.now()};function Xse(p,y){if(typeof y!="function")throw new Cs(r);return p=Ft(p),function(){if(--p<1)return y.apply(this,arguments)}}function GF(p,y,$){return y=$?n:y,y=p&&y==null?p.length:y,lc(p,j,n,n,n,n,y)}function KF(p,y){var $;if(typeof y!="function")throw new Cs(r);return p=Ft(p),function(){return--p>0&&($=y.apply(this,arguments)),p<=1&&(y=n),$}}var zD=Vt(function(p,y,$){var O=b;if($.length){var B=xu($,Kh(zD));O|=x}return lc(p,O,y,$,B)}),YF=Vt(function(p,y,$){var O=b|v;if($.length){var B=xu($,Kh(YF));O|=x}return lc(y,O,p,$,B)});function JF(p,y,$){y=$?n:y;var O=lc(p,A,n,n,n,n,n,y);return O.placeholder=JF.placeholder,O}function QF(p,y,$){y=$?n:y;var O=lc(p,_,n,n,n,n,n,y);return O.placeholder=QF.placeholder,O}function ZF(p,y,$){var O,B,Q,ue,me,Se,Ue=0,Be=!1,He=!1,tt=!0;if(typeof p!="function")throw new Cs(r);y=Ns(y)||0,fn($)&&(Be=!!$.leading,He="maxWait"in $,Q=He?ti(Ns($.maxWait)||0,y):Q,tt="trailing"in $?!!$.trailing:tt);function Pt(kn){var Eo=O,hc=B;return O=B=n,Ue=kn,ue=p.apply(hc,Eo),ue}function kt(kn){return Ue=kn,me=_0(Qt,y),Be?Pt(kn):ue}function Ut(kn){var Eo=kn-Se,hc=kn-Ue,gq=y-Eo;return He?Fi(gq,Q-hc):gq}function Ot(kn){var Eo=kn-Se,hc=kn-Ue;return Se===n||Eo>=y||Eo<0||He&&hc>=Q}function Qt(){var kn=A1();if(Ot(kn))return ar(kn);me=_0(Qt,Ut(kn))}function ar(kn){return me=n,tt&&O?Pt(kn):(O=B=n,ue)}function ss(){me!==n&&lF(me),Ue=0,O=Se=B=me=n}function aa(){return me===n?ue:ar(A1())}function os(){var kn=A1(),Eo=Ot(kn);if(O=arguments,B=this,Se=kn,Eo){if(me===n)return kt(Se);if(He)return lF(me),me=_0(Qt,y),Pt(Se)}return me===n&&(me=_0(Qt,y)),ue}return os.cancel=ss,os.flush=aa,os}var eoe=Vt(function(p,y){return zL(p,1,y)}),toe=Vt(function(p,y,$){return zL(p,Ns(y)||0,$)});function roe(p){return lc(p,E)}function S1(p,y){if(typeof p!="function"||y!=null&&typeof y!="function")throw new Cs(r);var $=function(){var O=arguments,B=y?y.apply(this,O):O[0],Q=$.cache;if(Q.has(B))return Q.get(B);var ue=p.apply(this,O);return $.cache=Q.set(B,ue)||Q,ue};return $.cache=new(S1.Cache||sc),$}S1.Cache=sc;function _1(p){if(typeof p!="function")throw new Cs(r);return function(){var y=arguments;switch(y.length){case 0:return!p.call(this);case 1:return!p.call(this,y[0]);case 2:return!p.call(this,y[0],y[1]);case 3:return!p.call(this,y[0],y[1],y[2])}return!p.apply(this,y)}}function noe(p){return KF(2,p)}var ioe=Vie(function(p,y){y=y.length==1&&Rt(y[0])?sn(y[0],ns(Dt())):sn(Ai(y,1),ns(Dt()));var $=y.length;return Vt(function(O){for(var B=-1,Q=Fi(O.length,$);++B=y}),rp=HL(function(){return arguments}())?HL:function(p){return Pn(p)&&_r.call(p,"callee")&&!CL.call(p,"callee")},Rt=Oe.isArray,Poe=hL?ns(hL):Die;function Ma(p){return p!=null&&x1(p.length)&&!fc(p)}function Dn(p){return Pn(p)&&Ma(p)}function boe(p){return p===!0||p===!1||Pn(p)&&na(p)==ae}var Cu=jne||XD,woe=dL?ns(dL):kie;function $oe(p){return Pn(p)&&p.nodeType===1&&!x0(p)}function Aoe(p){if(p==null)return!0;if(Ma(p)&&(Rt(p)||typeof p=="string"||typeof p.splice=="function"||Cu(p)||Yh(p)||rp(p)))return!p.length;var y=qi(p);if(y==Ae||y==ct)return!p.size;if(S0(p))return!gD(p).length;for(var $ in p)if(_r.call(p,$))return!1;return!0}function Soe(p,y){return w0(p,y)}function _oe(p,y,$){$=typeof $=="function"?$:n;var O=$?$(p,y):n;return O===n?w0(p,y,n,$):!!O}function BD(p){if(!Pn(p))return!1;var y=na(p);return y==Ee||y==he||typeof p.message=="string"&&typeof p.name=="string"&&!x0(p)}function xoe(p){return typeof p=="number"&&jL(p)}function fc(p){if(!fn(p))return!1;var y=na(p);return y==Ge||y==Me||y==ve||y==$t}function eq(p){return typeof p=="number"&&p==Ft(p)}function x1(p){return typeof p=="number"&&p>-1&&p%1==0&&p<=X}function fn(p){var y=typeof p;return p!=null&&(y=="object"||y=="function")}function Pn(p){return p!=null&&typeof p=="object"}var tq=mL?ns(mL):Eie;function Doe(p,y){return p===y||yD(p,y,TD(y))}function koe(p,y,$){return $=typeof $=="function"?$:n,yD(p,y,TD(y),$)}function Ooe(p){return rq(p)&&p!=+p}function Eoe(p){if(hae(p))throw new Mt(o);return GL(p)}function Ioe(p){return p===null}function Coe(p){return p==null}function rq(p){return typeof p=="number"||Pn(p)&&na(p)==at}function x0(p){if(!Pn(p)||na(p)!=Ne)return!1;var y=Xb(p);if(y===null)return!0;var $=_r.call(y,"constructor")&&y.constructor;return typeof $=="function"&&$ instanceof $&&Yb.call($)==kne}var VD=yL?ns(yL):Iie;function Toe(p){return eq(p)&&p>=-X&&p<=X}var nq=gL?ns(gL):Cie;function D1(p){return typeof p=="string"||!Rt(p)&&Pn(p)&&na(p)==nn}function as(p){return typeof p=="symbol"||Pn(p)&&na(p)==qr}var Yh=vL?ns(vL):Tie;function joe(p){return p===n}function Moe(p){return Pn(p)&&qi(p)==Xt}function Roe(p){return Pn(p)&&na(p)==er}var Noe=g1(vD),Loe=g1(function(p,y){return p<=y});function iq(p){if(!p)return[];if(Ma(p))return D1(p)?Do(p):ja(p);if(h0&&p[h0])return yne(p[h0]());var y=qi(p),$=y==Ae?aD:y==ct?Hb:Jh;return $(p)}function pc(p){if(!p)return p===0?p:0;if(p=Ns(p),p===H||p===-H){var y=p<0?-1:1;return y*ie}return p===p?p:0}function Ft(p){var y=pc(p),$=y%1;return y===y?$?y-$:y:0}function aq(p){return p?Zf(Ft(p),0,R):0}function Ns(p){if(typeof p=="number")return p;if(as(p))return U;if(fn(p)){var y=typeof p.valueOf=="function"?p.valueOf():p;p=fn(y)?y+"":y}if(typeof p!="string")return p===0?p:+p;p=SL(p);var $=ht.test(p);return $||ir.test(p)?Xre(p.slice(2),$?2:8):Le.test(p)?U:+p}function sq(p){return dl(p,Ra(p))}function Foe(p){return p?Zf(Ft(p),-X,X):p===0?p:0}function br(p){return p==null?"":is(p)}var qoe=Hh(function(p,y){if(S0(y)||Ma(y)){dl(y,fi(y),p);return}for(var $ in y)_r.call(y,$)&&v0(p,$,y[$])}),oq=Hh(function(p,y){dl(y,Ra(y),p)}),k1=Hh(function(p,y,$,O){dl(y,Ra(y),p,O)}),zoe=Hh(function(p,y,$,O){dl(y,fi(y),p,O)}),Uoe=cc(fD);function Boe(p,y){var $=Wh(p);return y==null?$:FL($,y)}var Voe=Vt(function(p,y){p=Mr(p);var $=-1,O=y.length,B=O>2?y[2]:n;for(B&&ia(y[0],y[1],B)&&(O=1);++$1),Q}),dl(p,ID(p),$),O&&($=js($,f|h|d,tae));for(var B=y.length;B--;)AD($,y[B]);return $});function lle(p,y){return cq(p,_1(Dt(y)))}var cle=cc(function(p,y){return p==null?{}:Rie(p,y)});function cq(p,y){if(p==null)return{};var $=sn(ID(p),function(O){return[O]});return y=Dt(y),eF(p,$,function(O,B){return y(O,B[0])})}function ule(p,y,$){y=Eu(y,p);var O=-1,B=y.length;for(B||(B=1,p=n);++Oy){var O=p;p=y,y=O}if($||p%1||y%1){var B=ML();return Fi(p+B*(y-p+Zre("1e-"+((B+"").length-1))),y)}return bD(p,y)}var wle=Gh(function(p,y,$){return y=y.toLowerCase(),p+($?pq(y):y)});function pq(p){return GD(br(p).toLowerCase())}function hq(p){return p=br(p),p&&p.replace(Pr,fne).replace(Ure,"")}function $le(p,y,$){p=br(p),y=is(y);var O=p.length;$=$===n?O:Zf(Ft($),0,O);var B=$;return $-=y.length,$>=0&&p.slice($,B)==y}function Ale(p){return p=br(p),p&&mt.test(p)?p.replace(Fe,pne):p}function Sle(p){return p=br(p),p&&es.test(p)?p.replace(Ct,"\\$&"):p}var _le=Gh(function(p,y,$){return p+($?"-":"")+y.toLowerCase()}),xle=Gh(function(p,y,$){return p+($?" ":"")+y.toLowerCase()}),Dle=yF("toLowerCase");function kle(p,y,$){p=br(p),y=Ft(y);var O=y?qh(p):0;if(!y||O>=y)return p;var B=(y-O)/2;return y1(n1(B),$)+p+y1(r1(B),$)}function Ole(p,y,$){p=br(p),y=Ft(y);var O=y?qh(p):0;return y&&O>>0,$?(p=br(p),p&&(typeof y=="string"||y!=null&&!VD(y))&&(y=is(y),!y&&Fh(p))?Iu(Do(p),0,$):p.split(y,$)):[]}var Rle=Gh(function(p,y,$){return p+($?" ":"")+GD(y)});function Nle(p,y,$){return p=br(p),$=$==null?0:Zf(Ft($),0,p.length),y=is(y),p.slice($,$+y.length)==y}function Lle(p,y,$){var O=Y.templateSettings;$&&ia(p,y,$)&&(y=n),p=br(p),y=k1({},y,O,AF);var B=k1({},y.imports,O.imports,AF),Q=fi(B),ue=iD(B,Q),me,Se,Ue=0,Be=y.interpolate||zt,He="__p += '",tt=sD((y.escape||zt).source+"|"+Be.source+"|"+(Be===un?xt:zt).source+"|"+(y.evaluate||zt).source+"|$","g"),Pt="//# sourceURL="+(_r.call(y,"sourceURL")?(y.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Gre+"]")+` -`;p.replace(tt,function(Ot,Qt,ar,ss,aa,os){return ar||(ar=ss),He+=p.slice(Ue,os).replace(gn,hne),Qt&&(me=!0,He+=`' + -__e(`+Qt+`) + -'`),aa&&(Se=!0,He+=`'; -`+aa+`; -__p += '`),ar&&(He+=`' + -((__t = (`+ar+`)) == null ? '' : __t) + -'`),Ue=os+Ot.length,Ot}),He+=`'; -`;var kt=_r.call(y,"variable")&&y.variable;if(!kt)He=`with (obj) { -`+He+` -} -`;else if(Ze.test(kt))throw new Mt(s);He=(Se?He.replace(oe,""):He).replace(Pe,"$1").replace(De,"$1;"),He="function("+(kt||"obj")+`) { -`+(kt?"":`obj || (obj = {}); -`)+"var __t, __p = ''"+(me?", __e = _.escape":"")+(Se?`, __j = Array.prototype.join; -function print() { __p += __j.call(arguments, '') } -`:`; -`)+He+`return __p -}`;var Ut=mq(function(){return pr(Q,Pt+"return "+He).apply(n,ue)});if(Ut.source=He,BD(Ut))throw Ut;return Ut}function Fle(p){return br(p).toLowerCase()}function qle(p){return br(p).toUpperCase()}function zle(p,y,$){if(p=br(p),p&&($||y===n))return SL(p);if(!p||!(y=is(y)))return p;var O=Do(p),B=Do(y),Q=_L(O,B),ue=xL(O,B)+1;return Iu(O,Q,ue).join("")}function Ule(p,y,$){if(p=br(p),p&&($||y===n))return p.slice(0,kL(p)+1);if(!p||!(y=is(y)))return p;var O=Do(p),B=xL(O,Do(y))+1;return Iu(O,0,B).join("")}function Ble(p,y,$){if(p=br(p),p&&($||y===n))return p.replace(Wn,"");if(!p||!(y=is(y)))return p;var O=Do(p),B=_L(O,Do(y));return Iu(O,B).join("")}function Vle(p,y){var $=L,O=q;if(fn(y)){var B="separator"in y?y.separator:B;$="length"in y?Ft(y.length):$,O="omission"in y?is(y.omission):O}p=br(p);var Q=p.length;if(Fh(p)){var ue=Do(p);Q=ue.length}if($>=Q)return p;var me=$-qh(O);if(me<1)return O;var Se=ue?Iu(ue,0,me).join(""):p.slice(0,me);if(B===n)return Se+O;if(ue&&(me+=Se.length-me),VD(B)){if(p.slice(me).search(B)){var Ue,Be=Se;for(B.global||(B=sD(B.source,br(Qe.exec(B))+"g")),B.lastIndex=0;Ue=B.exec(Be);)var He=Ue.index;Se=Se.slice(0,He===n?me:He)}}else if(p.indexOf(is(B),me)!=me){var tt=Se.lastIndexOf(B);tt>-1&&(Se=Se.slice(0,tt))}return Se+O}function Wle(p){return p=br(p),p&&Ye.test(p)?p.replace(be,bne):p}var Hle=Gh(function(p,y,$){return p+($?" ":"")+y.toUpperCase()}),GD=yF("toUpperCase");function dq(p,y,$){return p=br(p),y=$?n:y,y===n?mne(p)?Ane(p):sne(p):p.match(y)||[]}var mq=Vt(function(p,y){try{return rs(p,n,y)}catch($){return BD($)?$:new Mt($)}}),Gle=cc(function(p,y){return Is(y,function($){$=ml($),oc(p,$,zD(p[$],p))}),p});function Kle(p){var y=p==null?0:p.length,$=Dt();return p=y?sn(p,function(O){if(typeof O[1]!="function")throw new Cs(r);return[$(O[0]),O[1]]}):[],Vt(function(O){for(var B=-1;++BX)return[];var $=R,O=Fi(p,R);y=Dt(y),p-=R;for(var B=nD(O,y);++$0||y<0)?new tr($):(p<0?$=$.takeRight(-p):p&&($=$.drop(p)),y!==n&&(y=Ft(y),$=y<0?$.dropRight(-y):$.take(y-p)),$)},tr.prototype.takeRightWhile=function(p){return this.reverse().takeWhile(p).reverse()},tr.prototype.toArray=function(){return this.take(R)},hl(tr.prototype,function(p,y){var $=/^(?:filter|find|map|reject)|While$/.test(y),O=/^(?:head|last)$/.test(y),B=Y[O?"take"+(y=="last"?"Right":""):y],Q=O||/^find/.test(y);B&&(Y.prototype[y]=function(){var ue=this.__wrapped__,me=O?[1]:arguments,Se=ue instanceof tr,Ue=me[0],Be=Se||Rt(ue),He=function(Qt){var ar=B.apply(Y,_u([Qt],me));return O&&tt?ar[0]:ar};Be&&$&&typeof Ue=="function"&&Ue.length!=1&&(Se=Be=!1);var tt=this.__chain__,Pt=!!this.__actions__.length,kt=Q&&!tt,Ut=Se&&!Pt;if(!Q&&Be){ue=Ut?ue:new tr(this);var Ot=p.apply(ue,me);return Ot.__actions__.push({func:w1,args:[He],thisArg:n}),new Ts(Ot,tt)}return kt&&Ut?p.apply(this,me):(Ot=this.thru(He),kt?O?Ot.value()[0]:Ot.value():Ot)})}),Is(["pop","push","shift","sort","splice","unshift"],function(p){var y=Gb[p],$=/^(?:push|sort|unshift)$/.test(p)?"tap":"thru",O=/^(?:pop|shift)$/.test(p);Y.prototype[p]=function(){var B=arguments;if(O&&!this.__chain__){var Q=this.value();return y.apply(Rt(Q)?Q:[],B)}return this[$](function(ue){return y.apply(Rt(ue)?ue:[],B)})}}),hl(tr.prototype,function(p,y){var $=Y[y];if($){var O=$.name+"";_r.call(Vh,O)||(Vh[O]=[]),Vh[O].push({name:y,func:$})}}),Vh[d1(n,v).name]=[{name:"wrapper",func:n}],tr.prototype.clone=Wne,tr.prototype.reverse=Hne,tr.prototype.value=Gne,Y.prototype.at=$se,Y.prototype.chain=Ase,Y.prototype.commit=Sse,Y.prototype.next=_se,Y.prototype.plant=Dse,Y.prototype.reverse=kse,Y.prototype.toJSON=Y.prototype.valueOf=Y.prototype.value=Ose,Y.prototype.first=Y.prototype.head,h0&&(Y.prototype[h0]=xse),Y},zh=Sne();Kf?((Kf.exports=zh)._=zh,Yx._=zh):$i._=zh}).call(Cr)})(mS,mS.exports);var sr=mS.exports;function Ol(t){let e="";return t.absolute&&(t.protocol==="file"?(t.drive&&(e+=t.drive),e+="/"):(e+=t.protocol+"://",t.origin&&(e+=t.origin+"/"))),(e+=t.path.join("/"))===""&&(e="."),e}function VP(t,e,n,i){this.message=t,this.expected=e,this.found=n,this.location=i,this.name="SyntaxError",typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,VP)}(function(t,e){function n(){this.constructor=t}n.prototype=e.prototype,t.prototype=new n})(VP,Error),VP.buildMessage=function(t,e){var n={literal:function(r){return'"'+a(r.text)+'"'},class:function(r){var s,c="";for(s=0;s0){for(s=1,c=1;sEe&&(Ee=_e,Ge=[]),Ge.push(J))}function Ce(){var J;return(J=function(){var w,K,Z,fe,de;return w=_e,(K=$t())!==r&&(Z=xe())!==r&&(fe=nn())!==r&&(de=qr())!==r?(K=l(K,Z,fe,de),w=K):(_e=w,w=r),w===r&&(w=_e,(K=$t())!==r&&(Z=xe())!==r&&(fe=function(){var G;return(G=v)!==r&&(G=C()),G}())!==r?(K=u(K,Z,fe),w=K):(_e=w,w=r)),w}())===r&&(J=function(){var w,K,Z,fe;return w=_e,(K=function(){var de;return t.substr(_e,7).toLowerCase()===_?(de=t.substr(_e,7),_e+=7):(de=r,Ne(x)),de===r&&(t.substr(_e,5).toLowerCase()===N?(de=t.substr(_e,5),_e+=5):(de=r,Ne(j))),de!==r&&(de=I()),de}())!==r&&(Z=ct())!==r&&(fe=qr())!==r?(K=A(K,Z,fe),w=K):(_e=w,w=r),w}())===r&&(J=function(){var w,K,Z;return w=_e,(K=ct())!==r&&(Z=qr())!==r?(K=E(K,Z),w=K):(_e=w,w=r),w}())===r&&(J=function(){var w,K,Z;return w=_e,(K=function(){var fe;return(fe=function(){var de,G,k;return de=_e,t.charCodeAt(_e)===46?(G=R,_e++):(G=r,Ne(z)),G!==r&&(k=Xt())!==r?de=G=[G,k]:(_e=de,de=r),de}())===r&&(fe=v),fe}())!==r&&(Z=qr())!==r?(K=H(Z),w=K):(_e=w,w=r),w}()),J}function $t(){var J,w;return t.substr(_e,7).toLowerCase()===f?(w=t.substr(_e,7),_e+=7):(w=r,Ne(h)),w!==r&&(w=d()),(J=w)===r&&(J=function(){var K;return t.substr(_e,8).toLowerCase()===m?(K=t.substr(_e,8),_e+=8):(K=r,Ne(g)),K!==r&&(K=b()),K}()),J}function xe(){var J,w,K;if(J=_e,w=[],(K=er())!==r)for(;K!==r;)w.push(K),K=er();else w=r;return(J=w!==r?t.substring(J,_e):w)===r&&(J=_e,(w=v)!==r&&(w=P()),J=w),J}function ct(){var J;return(J=function(){var w,K,Z,fe;return w=_e,(K=Xt())===r&&(K=null),K!==r?(L.test(t.charAt(_e))?(Z=t.charAt(_e),_e++):(Z=r,Ne(q)),Z!==r?(t.charCodeAt(_e)===58?(fe=F,_e++):(fe=r,Ne(S)),fe!==r&&Xt()!==r?(K=D(Z),w=K):(_e=w,w=r)):(_e=w,w=r)):(_e=w,w=r),w}())===r&&(J=nn()),J}function nn(){var J;return(J=Xt())!==r&&(J=M()),J}function qr(){var J;return(J=function w(){var K,Z,fe;return K=_e,(Z=an())!==r&&Xt()!==r&&(fe=w())!==r?(Z=ie(Z,fe),K=Z):(_e=K,K=r),K===r&&(K=_e,(Z=an())!==r&&(Z=U(Z)),K=Z),K}())!==r&&(J=X(J)),J}function an(){var J,w,K;if(J=_e,w=[],(K=er())!==r)for(;K!==r;)w.push(K),K=er();else w=r;return(J=w!==r?t.substring(J,_e):w)===r&&(J=v),J}function Xt(){var J;return t.charCodeAt(_e)===47?(J=V,_e++):(J=r,Ne(T)),J===r&&(t.charCodeAt(_e)===92?(J=W,_e++):(J=r,Ne(le))),J}function er(){var J;return ve.test(t.charAt(_e))?(J=t.charAt(_e),_e++):(J=r,Ne(ae)),J}if((n=c())!==r&&_e===t.length)return n;throw n!==r&&_ei!==""&&i!==".");const n=[];for(const i of e)i===".."&&n.length&&n[n.length-1]!==".."?n.pop():i===".."&&t.absolute||n.push(i);return t.path=n,t}function WM(t){let e=t.lastIndexOf(".");t===".."&&(e=-1),t==="."&&(e=-1);let n=t,i="";return e>0&&(n=t.slice(0,e),i=t.slice(e)),{name:n,ext:i}}const VLe=(t,e)=>{const n=fu($s(t)).path.pop();if(!n)return"";const{name:i,ext:a}=WM(n);return e===!0||e===a?i:`${i}${a}`},nZ=t=>{const e=fu($s(t));return e.path.pop(),Ol(fu(e))},iZ=t=>{const e=fu($s(t)).path.pop();if(!e)return"";const{ext:n}=WM(e);return n};function aZ(t){return $s(t).absolute}function WLe(t){const e=$s(t);return e.protocol==="http"||e.protocol==="https"}const HM=(...t)=>{if(t.length===0)return".";const e=t.map($s),n=Object.assign({},e[0]);for(let i=1;i$s(t).drive!==null,JLe=t=>$s(t).path.filter(Boolean).join("/");function QLe(t){const[e,n,i,...a]=t.split("/"),o=a.length?`/${a.join("/")}`:void 0;let r,s;return o&&(r=a.find(c=>c.includes(".")))&&(s=WM(r).ext),{shortcode:e,orgSlug:n,projectSlug:i,uri:o,file:r,ext:s}}function ZLe({shortcode:t,orgSlug:e,projectSlug:n,uri:i=""}){return[t,e,n,i.replace(/^\//,"")].filter(Boolean).join("/")}const XLe=Object.freeze(Object.defineProperty({__proto__:null,basename:VLe,deserializeSrn:QLe,dirname:nZ,extname:iZ,format:Ol,isAbsolute:aZ,isURL:WLe,join:HM,normalize:HU,parse:$s,relative:HLe,resolve:GLe,sep:KLe,serializeSrn:ZLe,startsWithWindowsDrive:YLe,stripRoot:JLe,toFSPath:HU},Symbol.toStringTag,{value:"Module"}));function sZ(t,e){e===void 0&&(e=!1);var n=t.length,i=0,a="",o=0,r=16,s=0,c=0,l=0,u=0,f=0;function h(A,_){for(var x=0,N=0;x=48&&j<=57)N=N*16+j-48;else if(j>=65&&j<=70)N=N*16+j-65+10;else if(j>=97&&j<=102)N=N*16+j-97+10;else break;i++,x++}return x=n){A+=t.substring(_,i),f=2;break}var x=t.charCodeAt(i);if(x===34){A+=t.substring(_,i),i++;break}if(x===92){if(A+=t.substring(_,i),i++,i>=n){f=2;break}var N=t.charCodeAt(i++);switch(N){case 34:A+='"';break;case 92:A+="\\";break;case 47:A+="/";break;case 98:A+="\b";break;case 102:A+="\f";break;case 110:A+=` -`;break;case 114:A+="\r";break;case 116:A+=" ";break;case 117:var j=h(4,!0);j>=0?A+=String.fromCharCode(j):f=4;break;default:f=5}_=i;continue}if(x>=0&&x<=31)if(J0(x)){A+=t.substring(_,i),f=2;break}else f=6;i++}return A}function b(){if(a="",f=0,o=i,c=s,u=l,i>=n)return o=n,r=17;var A=t.charCodeAt(i);if(bO(A)){do i++,a+=String.fromCharCode(A),A=t.charCodeAt(i);while(bO(A));return r=15}if(J0(A))return i++,a+=String.fromCharCode(A),A===13&&t.charCodeAt(i)===10&&(i++,a+=` -`),s++,l=i,r=14;switch(A){case 123:return i++,r=1;case 125:return i++,r=2;case 91:return i++,r=3;case 93:return i++,r=4;case 58:return i++,r=6;case 44:return i++,r=5;case 34:return i++,a=g(),r=10;case 47:var _=i-1;if(t.charCodeAt(i+1)===47){for(i+=2;i=12&&A<=15);return A}return{setPosition:d,getPosition:function(){return i},scan:e?P:b,getToken:function(){return r},getTokenValue:function(){return a},getTokenOffset:function(){return o},getTokenLength:function(){return i-o},getTokenStartLine:function(){return c},getTokenStartCharacter:function(){return o-u},getTokenError:function(){return f}}}function bO(t){return t===32||t===9||t===11||t===12||t===160||t===5760||t>=8192&&t<=8203||t===8239||t===8287||t===12288||t===65279}function J0(t){return t===10||t===13||t===8232||t===8233}function nd(t){return t>=48&&t<=57}var MC;(function(t){t.DEFAULT={allowTrailingComma:!1}})(MC||(MC={}));function oZ(t){if(!t.parent||!t.parent.children)return[];var e=oZ(t.parent);if(t.parent.type==="property"){var n=t.parent.children[0].value;e.push(n)}else if(t.parent.type==="array"){var i=t.parent.children.indexOf(t);i!==-1&&e.push(i)}return e}function eFe(t,e,n){return n===void 0&&(n=!1),e>=t.offset&&e0)for(var F=i.getToken();F!==17;){if(L.indexOf(F)!==-1){v();break}else if(q.indexOf(F)!==-1)break;F=v()}}function A(E){var L=i.getTokenValue();return E?f(L):s(L),v(),!0}function _(){switch(i.getToken()){case 11:var E=0;try{E=JSON.parse(i.getTokenValue()),typeof E!="number"&&(P(2),E=0)}catch{P(2)}f(E);break;case 7:f(null);break;case 8:f(!0);break;case 9:f(!1);break;default:return!1}return v(),!0}function x(){return i.getToken()!==10?(P(3,[],[2,5]),!1):(A(!1),i.getToken()===6?(h(":"),v(),I()||P(4,[],[2,5])):P(5,[],[2,5]),!0)}function N(){r(),v();for(var E=!1;i.getToken()!==2&&i.getToken()!==17;){if(i.getToken()===5){if(E||P(4,[],[]),h(","),v(),i.getToken()===2&&b)break}else E&&P(6,[],[]);x()||P(4,[],[2,5]),E=!0}return c(),i.getToken()!==2?P(7,[2],[]):v(),!0}function j(){l(),v();for(var E=!1;i.getToken()!==4&&i.getToken()!==17;){if(i.getToken()===5){if(E||P(4,[],[]),h(","),v(),i.getToken()===4&&b)break}else E&&P(6,[],[]);I()||P(4,[],[4,5]),E=!0}return u(),i.getToken()!==4?P(8,[4],[]):v(),!0}function I(){switch(i.getToken()){case 3:return j();case 1:return N();case 10:return A(!0);default:return _()}}return v(),i.getToken()===17?n.allowEmptyContent?!0:(P(4,[],[]),!1):I()?(i.getToken()!==17&&P(9,[],[]),!0):(P(4,[],[]),!1)}var rFe=sZ,nFe=lZ,iFe=oZ,aFe=tFe;function sFe(t){switch(t){case 1:return"InvalidSymbol";case 2:return"InvalidNumberFormat";case 3:return"PropertyNameExpected";case 4:return"ValueExpected";case 5:return"ColonExpected";case 6:return"CommaExpected";case 7:return"CloseBraceExpected";case 8:return"CloseBracketExpected";case 9:return"EndOfFileExpected";case 10:return"InvalidCommentToken";case 11:return"UnexpectedEndOfComment";case 12:return"UnexpectedEndOfString";case 13:return"UnexpectedEndOfNumber";case 14:return"InvalidUnicode";case 15:return"InvalidEscapeCharacter";case 16:return"InvalidCharacter"}return""}var oFe={};const lFe=Math.floor(Date.now()/36e5),GM=`__object_order_${lFe}__`,$n=Symbol.for(GM),Kv=String($n),cFe={defineProperty(t,e,n){return!Object.prototype.hasOwnProperty.call(t,e)&&$n in t?t[$n].push(e):"value"in n&&e===$n&&n.value.lastIndexOf($n)===-1&&n.value.push($n),Reflect.defineProperty(t,e,n)},deleteProperty(t,e){const n=Object.prototype.hasOwnProperty.call(t,e),i=Reflect.deleteProperty(t,e);if(i&&n&&$n in t){const a=t[$n].indexOf(e);a!==-1&&t[$n].splice(a,1)}return i},ownKeys(t){return $n in t?t[$n]:Reflect.ownKeys(t)},set(t,e,n){const i=Object.prototype.hasOwnProperty.call(t,e),a=Reflect.set(t,e,n);return a&&!i&&$n in t&&t[$n].push(e),a}};function KM(t,e=Reflect.ownKeys(t)){QM(t);const n=new Proxy(t,cFe);return cZ(n,e),n}function cZ(t,e){return $n in t?(t[$n].length=0,t[$n].push(...e),!0):Reflect.defineProperty(t,$n,{configurable:!0,value:e})}function uZ(t){return t[$n]}function fZ(t){const e=t.slice();for(let n=0;ni!==$n)}),e)for(const i of Object.keys(t)){if(i===Kv)continue;const a=t[i];ch(a)&&(n[i]=Array.isArray(a)?fZ(a):YM(a,!0))}return n}function pZ(t){for(let e=0;e"u"||!ch(process)||!ch(oFe),!1}const dFe=Object.freeze(Object.defineProperty({__proto__:null,ORDER_KEY_ID:GM,default:KM,deserialize:JM,getOrder:uZ,isOrderedObject:uFe,serialize:YM,setOrder:cZ},Symbol.toStringTag,{value:"Module"}));var GU;(function(t){t.None="none",t.Declared="declared",t.InheritedFromService="inheritedFromService"})(GU||(GU={}));var KU;(function(t){t.Unspecified="unspecified",t.Simple="simple",t.Matrix="matrix",t.Label="label",t.Form="form",t.CommaDelimited="commaDelimited",t.SpaceDelimited="spaceDelimited",t.PipeDelimited="pipeDelimited",t.DeepObject="deepObject",t.TabDelimited="tabDelimited"})(KU||(KU={}));var Bp;(function(t){t[t.Error=0]="Error",t[t.Warning=1]="Warning",t[t.Information=2]="Information",t[t.Hint=3]="Hint"})(Bp||(Bp={}));var YU;(function(t){t.Article="article",t.HttpService="http_service",t.HttpServer="http_server",t.HttpOperation="http_operation",t.HttpCallback="http_callback",t.Model="model",t.Generic="generic",t.Unknown="unknown",t.TableOfContents="table_of_contents",t.SpectralRuleset="spectral_ruleset",t.Styleguide="styleguide",t.Image="image",t.StoplightResolutions="stoplight_resolutions",t.StoplightOverride="stoplight_override"})(YU||(YU={}));var JU;(function(t){t.Json="json",t.Markdown="markdown",t.Yaml="yaml",t.Javascript="javascript",t.Apng="apng",t.Avif="avif",t.Bmp="bmp",t.Gif="gif",t.Jpeg="jpeg",t.Png="png",t.Svg="svg",t.Webp="webp"})(JU||(JU={}));var mFe=PFe,mr="";const yFe=/[\x00-\x1f\x22\x5c]/,gFe=/[\x00-\x1f\x22\x5c]/g,RC=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000b","\\f","\\r","\\u000e","\\u000f","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001a","\\u001b","\\u001c","\\u001d","\\u001e","\\u001f","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\"];function vFe(t){return RC[t.charCodeAt(0)]}function Ao(t){if(t.length<5e3&&!yFe.test(t))return t;if(t.length>100)return t.replace(gFe,vFe);for(var e="",n=0,i=0;ii;)t[n]=t[n-1],n--;t[n]=i}return t}function PFe(t,e,n){var i,a="";if(mr="",arguments.length>1){if(typeof n=="number")for(i=0;iuh(t)&&"$ref"in t,hZ=t=>yS(t)&&typeof t.$ref=="string",ZM=t=>t.length>0&&(t==="#"||/^#\S*$/.test(t)),Rf=(t,e,n)=>{const i=t.toString();let a="",o=i,r=0,s=o.indexOf(e);for(;s>-1;)a+=i.substring(r,r+s)+n,o=o.substring(s+e.length,o.length),r+=s+e.length,s=o.indexOf(e);return o.length>0&&(a+=i.substring(i.length-o.length,i.length)),a},dZ=t=>typeof t=="number"?t:Rf(Rf(t,"~","~0"),"/","~1"),AFe=/[^a-zA–Z0–9_.!~*'()\/\-\u{D800}-\u{DFFF}]/gu;function mZ(t){return t.replace(AFe,encodeURIComponent)}const yZ=t=>{const e=dZ(t);return typeof e=="number"?e:mZ(e)},gS=t=>SFe(t),SFe=t=>{if(t&&typeof t!="object")throw new TypeError("Invalid type: path must be an array of segments.");return t.length===0?"#":`#/${t.map(yZ).join("/")}`};function _Fe(t){try{return decodeURIComponent(t)}catch{return t}}const xFe=/%[0-9a-f]+/gi,FC=t=>{let e;try{e=decodeURIComponent(t)}catch{e=t.replace(xFe,_Fe)}return Rf(Rf(e,"~1","/"),"~0","~")},el=t=>DFe(t),DFe=t=>{if(typeof t!="string")throw new TypeError("Invalid type: JSON Pointers are represented as strings.");if(t.length===0||t[0]!=="#")throw new URIError("Invalid JSON Pointer syntax; URI fragment identifiers must begin with a hash.");if(t.length===1)return[];if(t[1]!=="/")throw new URIError("Invalid JSON Pointer syntax.");return(e=>{const n=e.length,i=[];let a=-1;for(;++a{const i={value:t,path:n};e.onEnter&&e.onEnter(i);for(const a of Object.keys(t)){const o=t[a];e.onProperty&&e.onProperty({parent:t,parentPath:n,property:a,propertyValue:o}),typeof o=="object"&&o!==null&&gZ(o,e,n.concat(a))}e.onLeave&&e.onLeave(i)},XM=(t,e)=>{typeof t=="object"&&t!==null&&gZ(t,typeof e=="function"?{onProperty:e}:e,[])};function vZ(t,e,n){XM(t,{onProperty({property:i,propertyValue:a,parent:o}){i==="$ref"&&typeof a=="string"&&a.startsWith(e)&&(o.$ref=`${n}${a.slice(e.length)}`)}})}const PZ=t=>t.length>0&&t[0]!=="#",eR=t=>{if(typeof t!="string"||t.length===0||!PZ(t))return null;const e=t.indexOf("#");return e===-1?t:t.slice(0,e)};function bZ(t,e){return uh(e)&&uh(t)&&("summary"in t||"description"in t)?Object.assign(Object.assign(Object.assign({},e),"description"in t?{description:t.description}:null),"summary"in t?{summary:t.summary}:null):e}function*wZ(t,e,n){yS(t.value)&&(LC(t.value),yield[-1,t.value]);for(const[i,a]of e.entries())$Fe(t.value,a,n),t.value=t.value[a],yS(t.value)&&(LC(t.value),yield[i,t.value])}function $Z(t,e){return AZ(t,e).value}function AZ(t,e){return function n(i,a,o,r){if(eR(a)!==null)throw new ReferenceError("Cannot resolve external references");const s=el(a);let c=[...s];a==="#"&&yS(i)&&(LC(i),s.unshift(...el(i.$ref)));const l={value:i};for(const[u,f]of wZ(l,s,a)){if(o.includes(f))return{source:null,location:r??c,value:o[o.length-1]};o.push(f);const h=n(i,f.$ref,o,c);l.value=h.value,(c=h.location).push(...s.slice(u+1))}return{source:null,location:c,value:o.length>0?bZ(o[o.length-1],l.value):l.value}}(t,e,[])}const kFe="#/__bundled__",OFe="#/__errors__",EFe=({document:t,path:e,bundleRoot:n="#/__bundled__",errorsRoot:i="#/__errors__",cloneDocument:a=!0,keyProvider:o},r)=>{if(e===n||e===i)throw new Error("Roots do not make any sense");const s=a?sr.cloneDeep(t):t;return IFe(s,el(n),el(i),e,o)(e,{[e]:!0},r)},IFe=(t,e,n,i,a)=>{const o=new Set,r=(s,c,l,u={},f={},h={})=>{const d=el(s),m=sr.get(t,d);XM(l||m,{onEnter:({value:b})=>{if(hZ(b)&&ZM(b.$ref)){const v=b.$ref;if(h[v])return;if(v===s&&(u[v]="#"),u[v])return void(b.$ref=u[v]);let P,A,_,x,N;try{let j;P=el(v),a&&(j=a({document:t,path:P})),j||(j=(({document:E,path:L})=>L.length===0?"root":Array.isArray(sr.get(E,L.slice(0,-1)))?`${L[L.length-2]}_${L[L.length-1]}`:String(L[L.length-1]))({document:t,path:P})),_=j;let I=1;for(;o.has(_);)if(_=`${j}_${++I}`,I>20)throw new Error(`Keys ${j}_2 through ${j}_20 already taken.`);o.add(_),A=[...e,_],x=gS(A)}catch(j){h[v]=j instanceof Error?j.message:String(j)}if(!P||!A||!x)return;if(typeof t=="object"&&t!==null&&!(N=sr.get(t,P)))try{N=$Z(Object(t),v)}catch{}N!==void 0&&(u[v]=x,b.$ref=x,sr.has(f,A)||(Array.isArray(N)?sr.set(f,A,new Array(N.length).fill(null)):typeof N=="object"&&sr.setWith(f,A,{},Object),sr.set(f,A,N),v==="#"?function(j,I,E,L){const q=E.map(D=>`[${JSON.stringify(D)}]`).join(""),F=JSON.parse(JSON.stringify(sr.omit(Object(j),q))),S={};sr.set(I,L,F),sr.set(F,E,S),vZ(F,"#",gS(L)),S.$ref="#"}(t,f,el(i),A):c[v]||(c[v]=!0,r(s,c,N,u,f,h),c[v]=!1)))}}});const g=sr.get(f,e);return g&&Object.keys(g).length&&sr.set(m,e,g),(Object.keys(h).length||sr.has(t,n))&&sr.set(m,n,sr.has(t,n)?sr.get(t,n):h),m};return r},tR=t=>Rf(Rf(t,"~1","/"),"~0","~"),CFe=(t,e)=>{const n=new WeakMap;return function i(a,o){let r;if(e&&(a=e(a)),uh(a)||Array.isArray(a)){const s=n.get(a);return s?{$ref:s}:(n.set(a,gS(o)),Array.isArray(a)?r=a.map((c,l)=>i(c,[...o,String(l)])):(r={},Object.keys(a).forEach(c=>{r[c]=i(a[c],[...o,c])})),n.delete(a),r)}return a}(t,[])},TFe=t=>Rf(Rf(t,"~","~0"),"//","/~1"),SZ=t=>{if(typeof t!="string"||t.length===0)return null;const e=t.indexOf("#");return e===-1?null:t.slice(e)},jFe=t=>{const e=rFe(t,!0);if(e.scan(),e.getToken()!==1||(e.scan(),e.getToken()===2))return;if(e.getToken()!==10)throw new SyntaxError("Unexpected character");const n=e.getTokenValue();if(e.scan(),e.getToken()!==6)throw new SyntaxError("Colon expected");switch(e.scan(),e.getToken()){case 10:return[n,e.getTokenValue()];case 11:return[n,Number(e.getTokenValue())];case 8:return[n,!0];case 9:return[n,!1];case 7:return[n,null];case 16:throw new SyntaxError("Unexpected character");case 17:throw new SyntaxError("Unexpected end of file");default:return}},MFe=({lineMap:t,ast:e},n)=>{const i=t[n.line],a=t[n.line+1];if(i===void 0)return;const o=nFe(e,a===void 0?i+n.character:Math.min(a,i+n.character),!0);if(o===void 0)return;const r=iFe(o);return r.length!==0?r:void 0};function RFe(t){return tR(t.split("/").pop()||"")}const NFe=({ast:t},e,n=!1)=>{const i=function(a,o,r){e:for(const s of o){const c=Number.isInteger(Number(s))?Number(s):s;if(typeof c=="string"||typeof c=="number"&&a.type!=="array"){if(a.type!=="object"||!Array.isArray(a.children))return r?a:void 0;for(const l of a.children)if(Array.isArray(l.children)&&l.children[0].value===String(c)&&l.children.length===2){a=l.children[1];continue e}return r?a:void 0}if(a.type!=="array"||c<0||!Array.isArray(a.children)||c>=a.children.length)return r?a:void 0;a=a.children[c]}return a}(t,e,n);if(i!==void 0&&i.range!==void 0)return{range:i.range}},LFe=(t,e={disallowComments:!0})=>{const n=[],{ast:i,data:a,lineMap:o}=_Z(t,n,e);return{data:a,diagnostics:n,ast:i,lineMap:o}};function _Z(t,e=[],n){const i=qFe(t);let a={type:"array",offset:-1,length:-1,children:[],parent:void 0},o=null,r=[];const s=new WeakMap,c=[];function l(b){a.type==="property"&&(a.length=b-a.offset,a=a.parent)}function u(b,v,P){return{start:{line:b,character:v},end:{line:b,character:v+P}}}function f(b){return a.children.push(b),b}function h(b){Array.isArray(r)?r.push(b):o!==null&&(r[o]=b)}function d(b){h(b),c.push(r),r=b,o=null}function m(){r=c.pop()}aFe(t,{onObjectBegin:(b,v,P,A)=>{a=f({type:"object",offset:b,length:-1,parent:a,children:[],range:u(P,A,v)}),n.ignoreDuplicateKeys===!1&&s.set(a,[]),d(function(_){return _?KM({}):{}}(n.preserveKeyOrder===!0))},onObjectProperty:(b,v,P,A,_)=>{if((a=f({type:"property",offset:v,length:-1,parent:a,children:[]})).children.push({type:"string",value:b,offset:v,length:P,parent:a}),n.ignoreDuplicateKeys===!1){const x=s.get(a.parent);x&&(x.length!==0&&x.includes(b)?e.push({range:u(A,_,P),message:"DuplicateKey",severity:Bp.Error,path:xZ(a),code:20}):x.push(b))}n.preserveKeyOrder===!0&&function(x,N){if(!(N in x))return;const j=uZ(x),I=j.indexOf(N);I!==-1&&(j.splice(I,1),j.push(N))}(r,b),o=b},onObjectEnd:(b,v,P,A)=>{n.ignoreDuplicateKeys===!1&&s.delete(a),a.length=b+v-a.offset,a.range&&(a.range.end.line=P,a.range.end.character=A+v),a=a.parent,l(b+v),m()},onArrayBegin:(b,v,P,A)=>{a=f({type:"array",offset:b,length:-1,parent:a,children:[],range:u(P,A,v)}),d([])},onArrayEnd:(b,v,P,A)=>{a.length=b+v-a.offset,a.range&&(a.range.end.line=P,a.range.end.character=A+v),a=a.parent,l(b+v),m()},onLiteralValue:(b,v,P,A,_)=>{f({type:FFe(b),offset:v,length:P,parent:a,value:b,range:u(A,_,P)}),l(v+P),h(b)},onSeparator:(b,v)=>{a.type==="property"&&(b===":"?a.colonOffset=v:b===","&&l(v))},onError:(b,v,P,A,_)=>{e.push({range:u(A,_,P),message:sFe(b),severity:Bp.Error,code:b})}},n);const g=a.children[0];return g&&delete g.parent,{ast:g,data:r[0],lineMap:i}}function FFe(t){switch(typeof t){case"boolean":return"boolean";case"number":return"number";case"string":return"string";default:return"null"}}const qFe=t=>{const e=[0];let n=0;for(;n{if(!t||!Object.hasOwnProperty.call(t,e)||e===n)return t;const i={};for(const[a,o]of Object.entries(t))a===e?i[n]=o:a in i||(i[a]=o);return i};function Ew(t){return uh(t)||Array.isArray(t)}function UFe(t,e,n){if(n.length<=1||e.length<=1)throw Error("Source/target path must not be empty and point at root");if(e.indexOf(n)===0)throw Error("Target path cannot be contained within source");const i=el(e);let a=t;for(const s of i){if(!Ew(a))return;a=a[s]}if(!Ew(a))return;const o=el(n);let r=t;for(const[s,c]of o.entries()){if(!Ew(r)||c in r)return;const l=s===o.length-1?a:{};r[c]=l,r=l}delete t[i[0]],function s(c,l,u){for(const f of Object.keys(c)){const h=c[f];if(f!=="$ref")Ew(h)&&s(h,l,u);else{if(typeof h!="string"||!ZM(h))continue;h.indexOf(l)===0&&(c[f]=h.replace(l,u))}}}(t,e,n)}async function DZ(t,e,n,i,a){let o=function(f,h){const d=eR(h);return d===null?f:aZ(d)?d:HM(nZ(f),d)}(e,n);const r=SZ(n)||"#",s=await t[o],c=el(r);let l=[...c];const u={value:s};for(const[f,h]of wZ(u,c,r)){if(i.includes(h))return{source:e,location:a??l,value:i[i.length-1]};i.push(h);const d=await DZ(t,o,h.$ref,i,l);({source:o,location:l}=d),u.value=d.value,l.push(...c.slice(f+1))}return{source:o,location:l,value:i.length>0?bZ(i[i.length-1],u.value):u.value}}async function BFe(t,e,n){return(await kZ(t,e,n)).value}function kZ(t,e,n){return DZ(t,e,n,[])}const VFe=(t,e)=>{if(typeof t!="string")return t;try{const n=WFe(t);return typeof n=="string"?n:JSON.parse(t,e)}catch{return}},WFe=t=>{const e=Number(t);return Number.isFinite(e)?String(e)===t?e:t:NaN},OZ=(t,e,n)=>{if(typeof t=="string")return t;try{return JSON.stringify(t,e,n)}catch{return wFe(t,e,n)}},HFe=(t,e)=>{if(t instanceof Array){if(e instanceof Array){if(e.length>t.length)return!1;for(const n in e){if(!e.hasOwnProperty(n))continue;const i=parseInt(t[n]),a=parseInt(e[n]);if(isNaN(i)&&isNaN(a)){if(t[n]!==e[n])return!1}else if(i!==a)return!1}}}else{if(typeof t!="string")return!1;if(typeof e=="string")return t.startsWith(e)}return!0},GFe=(t,e,n)=>{const i=OZ(t,e,n);if(i===void 0)throw new Error("The value could not be stringified");return i};function KFe(t){return t.replace(/^(\/|#\/)/,"").split("/").map(tR).map(YFe).join(".")}function YFe(t){return t.includes(".")?`["${t.replace(/"/g,'\\"')}"]`:t}const qC=Symbol.for(GM),JFe={ownKeys:t=>qC in t?t[qC]:Reflect.ownKeys(t)},QFe=t=>new Proxy(t,JFe);function ZFe(t,e){if(typeof t=="string"&&typeof e=="string")return sr.trimStart(t,e);if(!(t&&Array.isArray(t)&&t.length&&e&&Array.isArray(e)&&e.length))return t;let n=0;for(const i in t)if(t.hasOwnProperty(i)){if(t[i]!==e[i])break;n++}return t.slice(n)}const XFe=Object.freeze(Object.defineProperty({__proto__:null,BUNDLE_ROOT:kFe,ERRORS_ROOT:OFe,KEYS:qC,bundleTarget:EFe,decodePointer:FC,decodePointerFragment:tR,decodePointerUriFragment:FC,decycle:CFe,encodePointer:TFe,encodePointerFragment:dZ,encodePointerUriFragment:yZ,encodeUriPointer:mZ,extractPointerFromRef:SZ,extractSourceFromRef:eR,getFirstPrimitiveProperty:jFe,getJsonPathForPosition:MFe,getLastPathSegment:RFe,getLocationForJsonPath:NFe,hasRef:hZ,isExternalRef:PZ,isLocalRef:ZM,isPlainObject:uh,parseTree:_Z,parseWithPointers:LFe,pathToPointer:gS,pointerToPath:el,remapRefs:vZ,renameObjectKey:zFe,reparentBundleTarget:UFe,resolveExternalRef:BFe,resolveExternalRefWithLocation:kZ,resolveInlineRef:$Z,resolveInlineRefWithLocation:AZ,safeParse:VFe,safeStringify:OZ,startsWith:HFe,stringify:GFe,toPropertyPath:KFe,trapAccess:QFe,traverse:XM,trimStart:ZFe},Symbol.toStringTag,{value:"Module"})),Hr=Yl(XFe),Eh=Yl(XLe);var wO={exports:{}},Yr={},QU;function eqe(){if(QU)return Yr;QU=1;function t(J){for(var w=arguments.length,K=Array(w>1?w-1:0),Z=1;Z3?w.t-4:w.t:Array.isArray(J)?1:l(J)?2:u(J)?3:0}function o(J,w){return a(J)===2?J.has(w):Object.prototype.hasOwnProperty.call(J,w)}function r(J,w){return a(J)===2?J.get(w):J[w]}function s(J,w,K){var Z=a(J);Z===2?J.set(w,K):Z===3?J.add(K):J[w]=K}function c(J,w){return J===w?J!==0||1/J==1/w:J!=J&&w!=w}function l(J){return W&&J instanceof Map}function u(J){return le&&J instanceof Set}function f(J){return J.i||J.u}function h(J){if(Array.isArray(J))return Array.prototype.slice.call(J);var w=Ae(J);delete w[he];for(var K=Me(w),Z=0;Z1&&(J.set=J.add=J.clear=J.delete=m),Object.freeze(J),w&&i(J,function(K,Z){return d(Z,!0)},!0)),J}function m(){t(2)}function g(J){return J==null||typeof J!="object"||Object.isFrozen(J)}function b(J){var w=at[J];return w||t(18,J),w}function v(J,w){at[J]||(at[J]=w)}function P(){return V}function A(J,w){w&&(b("Patches"),J.o=[],J.v=[],J.s=w)}function _(J){x(J),J.p.forEach(j),J.p=null}function x(J){J===V&&(V=J.l)}function N(J){return V={p:[],l:V,h:J,_:!0,m:0}}function j(J){var w=J[he];w.t===0||w.t===1?w.j():w.O=!0}function I(J,w){w.m=w.p.length;var K=w.p[0],Z=J!==void 0&&J!==K;return w.h.S||b("ES5").P(w,J,Z),Z?(K[he].g&&(_(w),t(4)),n(J)&&(J=E(w,J),w.l||q(w,J)),w.o&&b("Patches").M(K[he].u,J,w.o,w.v)):J=E(w,K,[]),_(w),w.o&&w.s(w.o,w.v),J!==ae?J:void 0}function E(J,w,K){if(g(w))return w;var Z=w[he];if(!Z)return i(w,function(k,ee){return L(J,Z,w,k,ee,K)},!0),w;if(Z.A!==J)return w;if(!Z.g)return q(J,Z.u,!0),Z.u;if(!Z.R){Z.R=!0,Z.A.m--;var fe=Z.t===4||Z.t===5?Z.i=h(Z.k):Z.i,de=fe,G=!1;Z.t===3&&(de=new Set(fe),fe.clear(),G=!0),i(de,function(k,ee){return L(J,Z,fe,k,ee,K,G)}),q(J,fe,!1),K&&J.o&&b("Patches").F(Z,K,J.o,J.v)}return Z.i}function L(J,w,K,Z,fe,de,G){if(e(fe)){var k=E(J,fe,de&&w&&w.t!==3&&!o(w.N,Z)?de.concat(Z):void 0);if(s(K,Z,k),!e(k))return;J._=!1}else G&&K.add(fe);if(n(fe)&&!g(fe)){if(!J.h.D&&J.m<1)return;E(J,fe),w&&w.A.l||q(J,fe)}}function q(J,w,K){K===void 0&&(K=!1),!J.l&&J.h.D&&J._&&d(w,K)}function F(J,w){var K=J[he];return(K?f(K):J)[w]}function S(J,w){if(w in J)for(var K=Object.getPrototypeOf(J);K;){var Z=Object.getOwnPropertyDescriptor(K,w);if(Z)return Z;K=Object.getPrototypeOf(K)}}function D(J){J.g||(J.g=!0,J.l&&D(J.l))}function M(J){J.i||(J.i=h(J.u))}function C(J,w,K){var Z=l(w)?b("MapSet").K(w,K):u(w)?b("MapSet").$(w,K):J.S?function(fe,de){var G=Array.isArray(fe),k={t:G?1:0,A:de?de.A:P(),g:!1,R:!1,N:{},l:de,u:fe,k:null,i:null,j:null,C:!1},ee=k,te=gt;G&&(ee=[k],te=Ne);var ce=Proxy.revocable(ee,te),oe=ce.revoke,Pe=ce.proxy;return k.k=Pe,k.j=oe,Pe}(w,K):b("ES5").I(w,K);return(K?K.A:P()).p.push(Z),Z}function H(J){return e(J)||t(22,J),function w(K){if(!n(K))return K;var Z,fe=K[he],de=a(K);if(fe){if(!fe.g&&(fe.t<4||!b("ES5").J(fe)))return fe.u;fe.R=!0,Z=X(K,de),fe.R=!1}else Z=X(K,de);return i(Z,function(G,k){fe&&r(fe.u,G)===k||s(Z,G,w(k))}),de===3?new Set(Z):Z}(J)}function X(J,w){switch(w){case 2:return new Map(J);case 3:return Array.from(J)}return h(J)}function ie(){function J(de,G){var k=fe[de];return k?k.enumerable=G:fe[de]=k={configurable:!0,enumerable:G,get:function(){return gt.get(this[he],de)},set:function(ee){gt.set(this[he],de,ee)}},k}function w(de){for(var G=de.length-1;G>=0;G--){var k=de[G][he];if(!k.g)switch(k.t){case 5:Z(k)&&D(k);break;case 4:K(k)&&D(k)}}}function K(de){for(var G=de.u,k=de.k,ee=Me(k),te=ee.length-1;te>=0;te--){var ce=ee[te];if(ce!==he){var oe=G[ce];if(oe===void 0&&!o(G,ce))return!0;var Pe=k[ce],De=Pe&&Pe[he];if(De?De.u!==oe:!c(Pe,oe))return!0}}var be=!!G[he];return ee.length!==Me(G).length+(be?0:1)}function Z(de){var G=de.k;if(G.length!==de.u.length)return!0;var k=Object.getOwnPropertyDescriptor(G,G.length-1);if(k&&!k.get)return!0;for(var ee=0;ee1?mt-1:0),Jt=1;Jt1?ce-1:0),Pe=1;Pe=0;fe--){var de=Z[fe];if(de.path.length===0&&de.op==="replace"){K=de.value;break}}fe>-1&&(Z=Z.slice(fe+1));var G=b("Patches").W;return e(K)?G(K,Z):this.produce(K,function(k){return G(k,Z)})},J}(),$t=new Ce,xe=$t.produce,ct=$t.produceWithPatches.bind($t),nn=$t.setAutoFreeze.bind($t),qr=$t.setUseProxies.bind($t),an=$t.applyPatches.bind($t),Xt=$t.createDraft.bind($t),er=$t.finishDraft.bind($t);return Yr.Immer=Ce,Yr.applyPatches=an,Yr.castDraft=function(J){return J},Yr.castImmutable=function(J){return J},Yr.createDraft=Xt,Yr.current=H,Yr.default=xe,Yr.enableAllPlugins=function(){ie(),R(),U()},Yr.enableES5=ie,Yr.enableMapSet=R,Yr.enablePatches=U,Yr.finishDraft=er,Yr.freeze=d,Yr.immerable=_e,Yr.isDraft=e,Yr.isDraftable=n,Yr.nothing=ae,Yr.original=function(J){return e(J)||t(23,J),J[he].u},Yr.produce=xe,Yr.produceWithPatches=ct,Yr.setAutoFreeze=nn,Yr.setUseProxies=qr,Yr}var ZU;function tqe(){return ZU||(ZU=1,wO.exports=eqe()),wO.exports}var $O,XU;function rqe(){if(XU)return $O;XU=1;var t=tM,e=yM,n=A_,i=ll,a=vb;function o(r,s,c,l){if(!i(r))return r;s=e(s,r);for(var u=-1,f=s.length,h=f-1,d=r;d!=null&&++u= 0x80 (not a basic code point)","invalid-input":"Invalid input"},_=c-l,x=Math.floor,N=String.fromCharCode,j;function I(U){throw new RangeError(A[U])}function E(U,R){for(var z=U.length,V=[];z--;)V[z]=R(U[z]);return V}function L(U,R){var z=U.split("@"),V="";z.length>1&&(V=z[0]+"@",U=z[1]),U=U.replace(P,".");var T=U.split("."),W=E(T,R).join(".");return V+W}function q(U){for(var R=[],z=0,V=U.length,T,W;z=55296&&T<=56319&&z65535&&(R-=65536,z+=N(R>>>10&1023|55296),R=56320|R&1023),z+=N(R),z}).join("")}function S(U){return U-48<10?U-22:U-65<26?U-65:U-97<26?U-97:c}function D(U,R){return U+22+75*(U<26)-((R!=0)<<5)}function M(U,R,z){var V=0;for(U=z?x(U/h):U>>1,U+=x(U/R);U>_*u>>1;V+=c)U=x(U/_);return x(V+(_+1)*U/(U+f))}function C(U){var R=[],z=U.length,V,T=0,W=m,le=d,ve,ae,_e,he,Ee,Ge,Me,Ae,at;for(ve=U.lastIndexOf(g),ve<0&&(ve=0),ae=0;ae=128&&I("not-basic"),R.push(U.charCodeAt(ae));for(_e=ve>0?ve+1:0;_e=z&&I("invalid-input"),Me=S(U.charCodeAt(_e++)),(Me>=c||Me>x((s-T)/Ee))&&I("overflow"),T+=Me*Ee,Ae=Ge<=le?l:Ge>=le+u?u:Ge-le,!(Mex(s/at)&&I("overflow"),Ee*=at;V=R.length+1,le=M(T-he,V,he==0),x(T/V)>s-W&&I("overflow"),W+=x(T/V),T%=V,R.splice(T++,0,W)}return F(R)}function H(U){var R,z,V,T,W,le,ve,ae,_e,he,Ee,Ge=[],Me,Ae,at,gt;for(U=q(U),Me=U.length,R=m,z=0,W=d,le=0;le=R&&Eex((s-z)/Ae)&&I("overflow"),z+=(ve-R)*Ae,R=ve,le=0;les&&I("overflow"),Ee==R){for(ae=z,_e=c;he=_e<=W?l:_e>=W+u?u:_e-W,!(ae1);d++)f.splice(0,1);s[h]=f.join("")}var m=-1,g=0,b=0,v=-1,P=!1;for(h=0;hg&&(m=v,g=b)):s[h]==="0"&&(P=!0,v=h,b=1);b>g&&(m=v,g=b),g>1&&s.splice(m,g,""),c=s.length;var A="";for(s[0]===""&&(A=":"),h=0;h=a.length-1)return!1;var r=a.lastIndexOf(".",o-1);if(r<=0||r>=o-1)return!1;var s=i.list[a.slice(o+1)];return s?s.indexOf(" "+a.slice(r+1,o)+" ")>=0:!1},is:function(a){var o=a.lastIndexOf(".");if(o<=0||o>=a.length-1)return!1;var r=a.lastIndexOf(".",o-1);if(r>=0)return!1;var s=i.list[a.slice(o+1)];return s?s.indexOf(" "+a.slice(0,o)+" ")>=0:!1},get:function(a){var o=a.lastIndexOf(".");if(o<=0||o>=a.length-1)return null;var r=a.lastIndexOf(".",o-1);if(r<=0||r>=o-1)return null;var s=i.list[a.slice(o+1)];return!s||s.indexOf(" "+a.slice(r+1,o)+" ")<0?null:a.slice(r+1)},noConflict:function(){return e.SecondLevelDomains===this&&(e.SecondLevelDomains=n),this}};return i})}(xO)),xO.exports}/*! - * URI.js - Mutating URLs - * - * Version: 1.19.11 - * - * Author: Rodney Rehm - * Web: http://medialize.github.io/URI.js/ - * - * Licensed under - * MIT License http://www.opensource.org/licenses/mit-license - * - */var i5;function EZ(){return i5||(i5=1,function(t){(function(e,n){t.exports?t.exports=n(iqe(),aqe(),sqe()):e.URI=n(e.punycode,e.IPv6,e.SecondLevelDomains,e)})(Cr,function(e,n,i,a){var o=a&&a.URI;function r(S,D){var M=arguments.length>=1,C=arguments.length>=2;if(!(this instanceof r))return M?C?new r(S,D):new r(S):new r;if(S===void 0){if(M)throw new TypeError("undefined is not a valid argument for URI");typeof location<"u"?S=location.href+"":S=""}if(S===null&&M)throw new TypeError("null is not a valid argument for URI");return this.href(S),D!==void 0?this.absoluteTo(D):this}function s(S){return/^[0-9]+$/.test(S)}r.version="1.19.11";var c=r.prototype,l=Object.prototype.hasOwnProperty;function u(S){return S.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}function f(S){return S===void 0?"Undefined":String(Object.prototype.toString.call(S)).slice(8,-1)}function h(S){return f(S)==="Array"}function d(S,D){var M={},C,H;if(f(D)==="RegExp")M=null;else if(h(D))for(C=0,H=D.length;C]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?«»“”‘’]))/ig,r.findUri={start:/\b(?:([a-z][a-z0-9.+-]*:\/\/)|www\.)/gi,end:/[\s\r\n]|$/,trim:/[`!()\[\]{};:'".,<>?«»“”„‘’]+$/,parens:/(\([^\)]*\)|\[[^\]]*\]|\{[^}]*\}|<[^>]*>)/g},r.leading_whitespace_expression=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,r.ascii_tab_whitespace=/[\u0009\u000A\u000D]+/g,r.defaultPorts={http:"80",https:"443",ftp:"21",gopher:"70",ws:"80",wss:"443"},r.hostProtocols=["http","https"],r.invalid_hostname_characters=/[^a-zA-Z0-9\.\-:_]/,r.domAttributes={a:"href",blockquote:"cite",link:"href",base:"href",script:"src",form:"action",img:"src",area:"href",iframe:"src",embed:"src",source:"src",track:"src",input:"src",audio:"src",video:"src"},r.getDomAttribute=function(S){if(!(!S||!S.nodeName)){var D=S.nodeName.toLowerCase();if(!(D==="input"&&S.type!=="image"))return r.domAttributes[D]}};function v(S){return escape(S)}function P(S){return encodeURIComponent(S).replace(/[!'()*]/g,v).replace(/\*/g,"%2A")}r.encode=P,r.decode=decodeURIComponent,r.iso8859=function(){r.encode=escape,r.decode=unescape},r.unicode=function(){r.encode=P,r.decode=decodeURIComponent},r.characters={pathname:{encode:{expression:/%(24|26|2B|2C|3B|3D|3A|40)/ig,map:{"%24":"$","%26":"&","%2B":"+","%2C":",","%3B":";","%3D":"=","%3A":":","%40":"@"}},decode:{expression:/[\/\?#]/g,map:{"/":"%2F","?":"%3F","#":"%23"}}},reserved:{encode:{expression:/%(21|23|24|26|27|28|29|2A|2B|2C|2F|3A|3B|3D|3F|40|5B|5D)/ig,map:{"%3A":":","%2F":"/","%3F":"?","%23":"#","%5B":"[","%5D":"]","%40":"@","%21":"!","%24":"$","%26":"&","%27":"'","%28":"(","%29":")","%2A":"*","%2B":"+","%2C":",","%3B":";","%3D":"="}}},urnpath:{encode:{expression:/%(21|24|27|28|29|2A|2B|2C|3B|3D|40)/ig,map:{"%21":"!","%24":"$","%27":"'","%28":"(","%29":")","%2A":"*","%2B":"+","%2C":",","%3B":";","%3D":"=","%40":"@"}},decode:{expression:/[\/\?#:]/g,map:{"/":"%2F","?":"%3F","#":"%23",":":"%3A"}}}},r.encodeQuery=function(S,D){var M=r.encode(S+"");return D===void 0&&(D=r.escapeQuerySpace),D?M.replace(/%20/g,"+"):M},r.decodeQuery=function(S,D){S+="",D===void 0&&(D=r.escapeQuerySpace);try{return r.decode(D?S.replace(/\+/g,"%20"):S)}catch{return S}};var A={encode:"encode",decode:"decode"},_,x=function(S,D){return function(M){try{return r[D](M+"").replace(r.characters[S][D].expression,function(C){return r.characters[S][D].map[C]})}catch{return M}}};for(_ in A)r[_+"PathSegment"]=x("pathname",A[_]),r[_+"UrnPathSegment"]=x("urnpath",A[_]);var N=function(S,D,M){return function(C){var H;M?H=function(R){return r[D](r[M](R))}:H=r[D];for(var X=(C+"").split(S),ie=0,U=X.length;ie-1&&(D.fragment=S.substring(M+1)||null,S=S.substring(0,M)),M=S.indexOf("?"),M>-1&&(D.query=S.substring(M+1)||null,S=S.substring(0,M)),S=S.replace(/^(https?|ftp|wss?)?:+[/\\]*/i,"$1://"),S=S.replace(/^[/\\]{2,}/i,"//"),S.substring(0,2)==="//"?(D.protocol=null,S=S.substring(2),S=r.parseAuthority(S,D)):(M=S.indexOf(":"),M>-1&&(D.protocol=S.substring(0,M)||null,D.protocol&&!D.protocol.match(r.protocol_expression)?D.protocol=void 0:S.substring(M+1,M+3).replace(/\\/g,"/")==="//"?(S=S.substring(M+3),S=r.parseAuthority(S,D)):(S=S.substring(M+1),D.urn=!0))),D.path=S,D},r.parseHost=function(S,D){S||(S=""),S=S.replace(/\\/g,"/");var M=S.indexOf("/"),C,H;if(M===-1&&(M=S.length),S.charAt(0)==="[")C=S.indexOf("]"),D.hostname=S.substring(1,C)||null,D.port=S.substring(C+2,M)||null,D.port==="/"&&(D.port=null);else{var X=S.indexOf(":"),ie=S.indexOf("/"),U=S.indexOf(":",X+1);U!==-1&&(ie===-1||U-1?H:S.length-1),ie;return X>-1&&(H===-1||X-1?W=W.slice(0,le)+W.slice(le).replace(X,""):W=W.replace(X,""),!(W.length<=R[0].length)&&!(M.ignore&&M.ignore.test(W))){T=z+W.length;var _e=D(W,z,T,S);if(_e===void 0){C.lastIndex=T;continue}_e=String(_e),S=S.slice(0,z)+_e+S.slice(T),C.lastIndex=z+_e.length}}return C.lastIndex=0,S},r.ensureValidHostname=function(S,D){var M=!!S,C=!!D,H=!1;if(C&&(H=m(r.hostProtocols,D)),H&&!M)throw new TypeError("Hostname cannot be empty, if protocol is "+D);if(S&&S.match(r.invalid_hostname_characters)){if(!e)throw new TypeError('Hostname "'+S+'" contains characters other than [A-Z0-9.-:_] and Punycode.js is not available');if(e.toASCII(S).match(r.invalid_hostname_characters))throw new TypeError('Hostname "'+S+'" contains characters other than [A-Z0-9.-:_]')}},r.ensureValidPort=function(S){if(S){var D=Number(S);if(!(s(D)&&D>0&&D<65536))throw new TypeError('Port "'+S+'" is not a valid port')}},r.noConflict=function(S){if(S){var D={URI:this.noConflict()};return a.URITemplate&&typeof a.URITemplate.noConflict=="function"&&(D.URITemplate=a.URITemplate.noConflict()),a.IPv6&&typeof a.IPv6.noConflict=="function"&&(D.IPv6=a.IPv6.noConflict()),a.SecondLevelDomains&&typeof a.SecondLevelDomains.noConflict=="function"&&(D.SecondLevelDomains=a.SecondLevelDomains.noConflict()),D}else a.URI===this&&(a.URI=o);return this},c.build=function(S){return S===!0?this._deferred_build=!0:(S===void 0||this._deferred_build)&&(this._string=r.build(this._parts),this._deferred_build=!1),this},c.clone=function(){return new r(this)},c.valueOf=c.toString=function(){return this.build(!1)._string};function j(S){return function(D,M){return D===void 0?this._parts[S]||"":(this._parts[S]=D||null,this.build(!M),this)}}function I(S,D){return function(M,C){return M===void 0?this._parts[S]||"":(M!==null&&(M=M+"",M.charAt(0)===D&&(M=M.substring(1))),this._parts[S]=M,this.build(!C),this)}}c.protocol=j("protocol"),c.username=j("username"),c.password=j("password"),c.hostname=j("hostname"),c.port=j("port"),c.query=I("query","?"),c.fragment=I("fragment","#"),c.search=function(S,D){var M=this.query(S,D);return typeof M=="string"&&M.length?"?"+M:M},c.hash=function(S,D){var M=this.fragment(S,D);return typeof M=="string"&&M.length?"#"+M:M},c.pathname=function(S,D){if(S===void 0||S===!0){var M=this._parts.path||(this._parts.hostname?"/":"");return S?(this._parts.urn?r.decodeUrnPath:r.decodePath)(M):M}else return this._parts.urn?this._parts.path=S?r.recodeUrnPath(S):"":this._parts.path=S?r.recodePath(S):"/",this.build(!D),this},c.path=c.pathname,c.href=function(S,D){var M;if(S===void 0)return this.toString();this._string="",this._parts=r._parts();var C=S instanceof r,H=typeof S=="object"&&(S.hostname||S.path||S.pathname);if(S.nodeName){var X=r.getDomAttribute(S);S=S[X]||"",H=!1}if(!C&&H&&S.pathname!==void 0&&(S=S.toString()),typeof S=="string"||S instanceof String)this._parts=r.parse(String(S),this._parts);else if(C||H){var ie=C?S._parts:S;for(M in ie)M!=="query"&&l.call(this._parts,M)&&(this._parts[M]=ie[M]);ie.query&&this.query(ie.query,!1)}else throw new TypeError("invalid input");return this.build(!D),this},c.is=function(S){var D=!1,M=!1,C=!1,H=!1,X=!1,ie=!1,U=!1,R=!this._parts.urn;switch(this._parts.hostname&&(R=!1,M=r.ip4_expression.test(this._parts.hostname),C=r.ip6_expression.test(this._parts.hostname),D=M||C,H=!D,X=H&&i&&i.has(this._parts.hostname),ie=H&&r.idn_expression.test(this._parts.hostname),U=H&&r.punycode_expression.test(this._parts.hostname)),S.toLowerCase()){case"relative":return R;case"absolute":return!R;case"domain":case"name":return H;case"sld":return X;case"ip":return D;case"ip4":case"ipv4":case"inet4":return M;case"ip6":case"ipv6":case"inet6":return C;case"idn":return ie;case"url":return!this._parts.urn;case"urn":return!!this._parts.urn;case"punycode":return U}return null};var E=c.protocol,L=c.port,q=c.hostname;c.protocol=function(S,D){if(S&&(S=S.replace(/:(\/\/)?$/,""),!S.match(r.protocol_expression)))throw new TypeError('Protocol "'+S+`" contains characters other than [A-Z0-9.+-] or doesn't start with [A-Z]`);return E.call(this,S,D)},c.scheme=c.protocol,c.port=function(S,D){return this._parts.urn?S===void 0?"":this:(S!==void 0&&(S===0&&(S=null),S&&(S+="",S.charAt(0)===":"&&(S=S.substring(1)),r.ensureValidPort(S))),L.call(this,S,D))},c.hostname=function(S,D){if(this._parts.urn)return S===void 0?"":this;if(S!==void 0){var M={preventInvalidHostname:this._parts.preventInvalidHostname},C=r.parseHost(S,M);if(C!=="/")throw new TypeError('Hostname "'+S+'" contains characters other than [A-Z0-9.-]');S=M.hostname,this._parts.preventInvalidHostname&&r.ensureValidHostname(S,this._parts.protocol)}return q.call(this,S,D)},c.origin=function(S,D){if(this._parts.urn)return S===void 0?"":this;if(S===void 0){var M=this.protocol(),C=this.authority();return C?(M?M+"://":"")+this.authority():""}else{var H=r(S);return this.protocol(H.protocol()).authority(H.authority()).build(!D),this}},c.host=function(S,D){if(this._parts.urn)return S===void 0?"":this;if(S===void 0)return this._parts.hostname?r.buildHost(this._parts):"";var M=r.parseHost(S,this._parts);if(M!=="/")throw new TypeError('Hostname "'+S+'" contains characters other than [A-Z0-9.-]');return this.build(!D),this},c.authority=function(S,D){if(this._parts.urn)return S===void 0?"":this;if(S===void 0)return this._parts.hostname?r.buildAuthority(this._parts):"";var M=r.parseAuthority(S,this._parts);if(M!=="/")throw new TypeError('Hostname "'+S+'" contains characters other than [A-Z0-9.-]');return this.build(!D),this},c.userinfo=function(S,D){if(this._parts.urn)return S===void 0?"":this;if(S===void 0){var M=r.buildUserinfo(this._parts);return M&&M.substring(0,M.length-1)}else return S[S.length-1]!=="@"&&(S+="@"),r.parseUserinfo(S,this._parts),this.build(!D),this},c.resource=function(S,D){var M;return S===void 0?this.path()+this.search()+this.hash():(M=r.parse(S),this._parts.path=M.path,this._parts.query=M.query,this._parts.fragment=M.fragment,this.build(!D),this)},c.subdomain=function(S,D){if(this._parts.urn)return S===void 0?"":this;if(S===void 0){if(!this._parts.hostname||this.is("IP"))return"";var M=this._parts.hostname.length-this.domain().length-1;return this._parts.hostname.substring(0,M)||""}else{var C=this._parts.hostname.length-this.domain().length,H=this._parts.hostname.substring(0,C),X=new RegExp("^"+u(H));if(S&&S.charAt(S.length-1)!=="."&&(S+="."),S.indexOf(":")!==-1)throw new TypeError("Domains cannot contain colons");return S&&r.ensureValidHostname(S,this._parts.protocol),this._parts.hostname=this._parts.hostname.replace(X,S),this.build(!D),this}},c.domain=function(S,D){if(this._parts.urn)return S===void 0?"":this;if(typeof S=="boolean"&&(D=S,S=void 0),S===void 0){if(!this._parts.hostname||this.is("IP"))return"";var M=this._parts.hostname.match(/\./g);if(M&&M.length<2)return this._parts.hostname;var C=this._parts.hostname.length-this.tld(D).length-1;return C=this._parts.hostname.lastIndexOf(".",C-1)+1,this._parts.hostname.substring(C)||""}else{if(!S)throw new TypeError("cannot set domain empty");if(S.indexOf(":")!==-1)throw new TypeError("Domains cannot contain colons");if(r.ensureValidHostname(S,this._parts.protocol),!this._parts.hostname||this.is("IP"))this._parts.hostname=S;else{var H=new RegExp(u(this.domain())+"$");this._parts.hostname=this._parts.hostname.replace(H,S)}return this.build(!D),this}},c.tld=function(S,D){if(this._parts.urn)return S===void 0?"":this;if(typeof S=="boolean"&&(D=S,S=void 0),S===void 0){if(!this._parts.hostname||this.is("IP"))return"";var M=this._parts.hostname.lastIndexOf("."),C=this._parts.hostname.substring(M+1);return D!==!0&&i&&i.list[C.toLowerCase()]&&i.get(this._parts.hostname)||C}else{var H;if(S)if(S.match(/[^a-zA-Z0-9-]/))if(i&&i.is(S))H=new RegExp(u(this.tld())+"$"),this._parts.hostname=this._parts.hostname.replace(H,S);else throw new TypeError('TLD "'+S+'" contains characters other than [A-Z0-9]');else{if(!this._parts.hostname||this.is("IP"))throw new ReferenceError("cannot set TLD on non-domain host");H=new RegExp(u(this.tld())+"$"),this._parts.hostname=this._parts.hostname.replace(H,S)}else throw new TypeError("cannot set TLD empty");return this.build(!D),this}},c.directory=function(S,D){if(this._parts.urn)return S===void 0?"":this;if(S===void 0||S===!0){if(!this._parts.path&&!this._parts.hostname)return"";if(this._parts.path==="/")return"/";var M=this._parts.path.length-this.filename().length-1,C=this._parts.path.substring(0,M)||(this._parts.hostname?"/":"");return S?r.decodePath(C):C}else{var H=this._parts.path.length-this.filename().length,X=this._parts.path.substring(0,H),ie=new RegExp("^"+u(X));return this.is("relative")||(S||(S="/"),S.charAt(0)!=="/"&&(S="/"+S)),S&&S.charAt(S.length-1)!=="/"&&(S+="/"),S=r.recodePath(S),this._parts.path=this._parts.path.replace(ie,S),this.build(!D),this}},c.filename=function(S,D){if(this._parts.urn)return S===void 0?"":this;if(typeof S!="string"){if(!this._parts.path||this._parts.path==="/")return"";var M=this._parts.path.lastIndexOf("/"),C=this._parts.path.substring(M+1);return S?r.decodePathSegment(C):C}else{var H=!1;S.charAt(0)==="/"&&(S=S.substring(1)),S.match(/\.?\//)&&(H=!0);var X=new RegExp(u(this.filename())+"$");return S=r.recodePath(S),this._parts.path=this._parts.path.replace(X,S),H?this.normalizePath(D):this.build(!D),this}},c.suffix=function(S,D){if(this._parts.urn)return S===void 0?"":this;if(S===void 0||S===!0){if(!this._parts.path||this._parts.path==="/")return"";var M=this.filename(),C=M.lastIndexOf("."),H,X;return C===-1?"":(H=M.substring(C+1),X=/^[a-z0-9%]+$/i.test(H)?H:"",S?r.decodePathSegment(X):X)}else{S.charAt(0)==="."&&(S=S.substring(1));var ie=this.suffix(),U;if(ie)S?U=new RegExp(u(ie)+"$"):U=new RegExp(u("."+ie)+"$");else{if(!S)return this;this._parts.path+="."+r.recodePath(S)}return U&&(S=r.recodePath(S),this._parts.path=this._parts.path.replace(U,S)),this.build(!D),this}},c.segment=function(S,D,M){var C=this._parts.urn?":":"/",H=this.path(),X=H.substring(0,1)==="/",ie=H.split(C);if(S!==void 0&&typeof S!="number"&&(M=D,D=S,S=void 0),S!==void 0&&typeof S!="number")throw new Error('Bad segment "'+S+'", must be 0-based integer');if(X&&ie.shift(),S<0&&(S=Math.max(ie.length+S,0)),D===void 0)return S===void 0?ie:ie[S];if(S===null||ie[S]===void 0)if(h(D)){ie=[];for(var U=0,R=D.length;U{const c=o.toString();let l="",u=c,f=0,h=u.indexOf(r);for(;h>-1;)l+=c.substring(f,f+h)+s,u=u.substring(h+r.length,u.length),f+=h+r.length,h=u.indexOf(r);return u.length>0&&(l+=c.substring(c.length-u.length,c.length)),l},e=o=>t(t(o,"~","~0"),"/","~1"),n=(o,r)=>`${o}/${e(r)}`;dc.addToJSONPointer=n;const i=o=>"length"in o&&o.length===0?"":o.fragment()!==""?`#${o.fragment()}`:o.href()===""?"#":"";dc.uriToJSONPointer=i;const a=o=>(!("length"in o)||o.length>0)&&o.path()==="";return dc.uriIsJSONPointer=a,dc}var o5;function lqe(){if(o5)return Z0;o5=1,Object.defineProperty(Z0,"__esModule",{value:!0}),Z0.ResolveCrawler=void 0;const t=Hr,e=L_(),n=vM(),i=IZ();class a{constructor(r,s,c){this._resolved=c,this.resolvers=[],this.pointerGraph=new e.DepGraph({circular:!0}),this.pointerStemGraph=new e.DepGraph({circular:!0}),this.computeGraph=(l,u=[],f="#",h=[])=>{f||(f="#");let d=this._runner.computeRef({val:l,jsonPointer:f,pointerStack:h});if(d!==void 0)this._resolveRef({ref:d,val:l,parentPath:u,pointerStack:h,parentPointer:f,cacheKey:f,resolvingPointer:this.jsonPointer});else if(typeof l=="object")for(const m in l){if(!l.hasOwnProperty(m))continue;const g=l[m],b=i.addToJSONPointer(f,m);d=this._runner.computeRef({key:m,val:g,jsonPointer:b,pointerStack:h}),u.push(m),d!==void 0?this._resolveRef({ref:d,val:g,parentPath:u,parentPointer:b,pointerStack:h,cacheKey:i.uriToJSONPointer(d),resolvingPointer:this.jsonPointer}):typeof g=="object"&&this.computeGraph(g,u,b,h),u.pop()}},this._resolveRef=l=>{const{pointerStack:u,parentPath:f,parentPointer:h,ref:d}=l;if(i.uriIsJSONPointer(d)){if(this._runner.dereferenceInline){const m=i.uriToJSONPointer(d);let g;try{g=(0,t.pointerToPath)(m)}catch{this._resolved.errors.push({code:"PARSE_POINTER",message:`'${d}' JSON pointer is invalid`,uri:this._runner.baseUri,uriStack:this._runner.uriStack,pointerStack:[],path:[]});return}let b=g.length>0;for(const _ in g)if(f[_]!==g[_]){b=!1;break}if(b)return;this.pointerStemGraph.hasNode(m)||this.pointerStemGraph.addNode(m);let v="#",P="";for(let _=0;_"u"&&(b=f.call(this,m),h.set(g,b)),b}function i(f,h,d){var m=Array.prototype.slice.call(arguments,3),g=d(m),b=h.get(g);return typeof b>"u"&&(b=f.apply(this,m),h.set(g,b)),b}function a(f,h,d,m,g){return d.bind(h,f,m,g)}function o(f,h){var d=f.length===1?n:i;return a(f,this,d,h.cache.create(),h.serializer)}function r(f,h){var d=i;return a(f,this,d,h.cache.create(),h.serializer)}function s(f,h){var d=n;return a(f,this,d,h.cache.create(),h.serializer)}function c(){return JSON.stringify(arguments)}function l(){this.cache=Object.create(null)}l.prototype.has=function(f){return f in this.cache},l.prototype.get=function(f){return this.cache[f]},l.prototype.set=function(f,h){this.cache[f]=h};var u={create:function(){return new l}};return Iw.exports=t,Iw.exports.strategies={variadic:r,monadic:s},Iw.exports}var c5;function CZ(){return c5||(c5=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.ResolveRunner=t.defaultGetRef=void 0;const e=vr,n=Hr,i=Eh,a=L_(),o=tqe(),r=vM(),s=nqe(),c=EZ(),l=oqe(),u=VM(),f=lqe(),h=IZ(),d=cqe();let m=0;const g=(v,P)=>{if(P&&typeof P=="object"&&typeof P.$ref=="string")return P.$ref};t.defaultGetRef=g;class b{constructor(P,A=new a.DepGraph({circular:!0}),_={}){this.ctx={},this.computeRef=j=>{const I=this.getRef(j.key,j.val);if(I===void 0)return;let E=new l.ExtendedURI(I);if(I[0]!=="#")if(this.isFile(E)){let q=E.toString();E.is("absolute")||(this.baseUri.toString()?q=(0,i.join)((0,i.dirname)(this.baseUri.toString()),(0,i.stripRoot)(q)):q=""),q&&(E=new c((0,i.toFSPath)(q)).fragment(E.fragment()))}else(E.scheme().includes("http")||E.scheme()===""&&this.baseUri.scheme().includes("http"))&&this.baseUri.authority()!==""&&E.authority()===""&&(E=E.absoluteTo(this.baseUri));return String(E).length>0&&this.isFile(this.baseUri)&&this.isFile(E)&&this.baseUri.path()===E.path()&&(E=new l.ExtendedURI(`#${E.fragment()}`)),this.transformRef?this.transformRef(Object.assign(Object.assign({},j),{ref:E,uri:this.baseUri}),this.ctx):E},this.atMaxUriDepth=()=>this.uriStack.length>=100,this.lookupUri=j=>e.__awaiter(this,void 0,void 0,function*(){const{ref:I}=j;let E=I.scheme();!this.resolvers[E]&&this.isFile(I)&&(E="file");const L=this.resolvers[E];if(!L)throw new Error(`No resolver defined for scheme '${I.scheme()||"file"}' in ref ${I.toString()}`);let q=yield L.resolve(I,this.ctx);if(this.parseResolveResult)try{q=(yield this.parseResolveResult({uriResult:q,result:q,targetAuthority:I,parentAuthority:this.baseUri,parentPath:j.parentPath,fragment:j.fragment})).result}catch(F){throw new Error(`Could not parse remote reference response for '${I.toString()}' - ${String(F)}`)}return new b(q,this.graph,{depth:this.depth+1,baseUri:I.toString(),root:I,uriStack:this.uriStack,uriCache:this.uriCache,resolvers:this.resolvers,transformRef:this.transformRef,parseResolveResult:this.parseResolveResult,transformDereferenceResult:this.transformDereferenceResult,dereferenceRemote:this.dereferenceRemote,dereferenceInline:this.dereferenceInline,ctx:this.ctx})}),this.lookupAndResolveUri=j=>e.__awaiter(this,void 0,void 0,function*(){const{val:I,ref:E,resolvingPointer:L,parentPointer:q,pointerStack:F}=j,S=j.parentPath?j.parentPath.slice():[],D=this.computeUriCacheKey(E),M={uri:E,pointerStack:F,targetPath:L===q?[]:S};if(this.uriStack.includes(D))return M.resolved={result:I,graph:this.graph,refMap:{},errors:[],runner:this},M;{let C;const H=this.baseUri.toString(),X=H&&this.depth!==0?H:null;try{if(this.atMaxUriDepth())throw new Error(`Max uri depth (${this.uriStack.length}) reached. Halting, this is probably a circular loop.`);C=yield this.lookupUri({ref:E.clone().fragment(""),fragment:E.fragment(),cacheKey:D,parentPath:S}),X&&(C.uriStack=C.uriStack.concat(X))}catch(ie){M.error={code:"RESOLVE_URI",message:String(ie),uri:E,uriStack:X?this.uriStack.concat(X):this.uriStack,pointerStack:F,path:S}}if(C&&(M.resolved=yield C.resolve({jsonPointer:h.uriToJSONPointer(E),parentPath:S}),M.resolved.errors.length)){for(const ie of M.resolved.errors)if(ie.code==="POINTER_MISSING"&&ie.path.join("/")===E.fragment().slice(1)){const U=E.fragment?(0,n.trimStart)(ie.path,(0,n.trimStart)(E.fragment(),"/").split("/")):ie.path;U&&U.length?s(M.resolved.result,U,I):M.resolved.result&&(M.resolved.result=I)}}}return M}),this.id=m+=1,this.depth=_.depth||0,this._source=P,this.resolvers=_.resolvers||{};const x=_.baseUri||"";let N=new c(x||"");this.isFile(N)&&(N=new c((0,i.toFSPath)(x))),this.baseUri=N,this.uriStack=_.uriStack||[],this.uriCache=_.uriCache||new u.Cache,this.root=_.root&&_.root.toString()||this.baseUri.toString()||"root",this.graph=A,this.graph.hasNode(this.root)||this.graph.addNode(this.root,{refMap:{},data:this._source}),this.baseUri&&this.depth===0&&this.uriCache.set(this.computeUriCacheKey(this.baseUri),this),this.getRef=_.getRef||t.defaultGetRef,this.transformRef=_.transformRef,this.depth?this.dereferenceInline=!0:this.dereferenceInline=typeof _.dereferenceInline<"u"?_.dereferenceInline:!0,this.dereferenceRemote=typeof _.dereferenceRemote<"u"?_.dereferenceRemote:!0,this.parseResolveResult=_.parseResolveResult,this.transformDereferenceResult=_.transformDereferenceResult,this.ctx=_.ctx,this.lookupUri=d(this.lookupUri,{serializer:this._cacheKeySerializer,cache:{create:()=>this.uriCache}})}get source(){return this._source}resolve(P){return e.__awaiter(this,void 0,void 0,function*(){const A={result:this.source,graph:this.graph,refMap:{},errors:[],runner:this};let _;const x=P&&P.jsonPointer&&P.jsonPointer.trim();if(x&&x!=="#"&&x!=="#/"){try{_=(0,n.pointerToPath)(x)}catch{return A.errors.push({code:"PARSE_POINTER",message:`'${x}' JSON pointer is invalid`,uri:this.baseUri,uriStack:this.uriStack,pointerStack:[],path:[]}),A}A.result=r(A.result,_)}if(A.result===void 0)return A.errors.push({code:"POINTER_MISSING",message:`'${x}' does not exist @ '${this.baseUri.toString()}'`,uri:this.baseUri,uriStack:this.uriStack,pointerStack:[],path:_||[]}),A;const N=new f.ResolveCrawler(this,x,A);N.computeGraph(A.result,_,x||"");let j=[];if(N.resolvers.length&&(j=yield Promise.all(N.resolvers)),j.length)for(const I of j){let E=I.targetPath;E.length||(E=_||[]),A.refMap[String(this.baseUri.clone().fragment((0,n.pathToPointer)(E)))]=String(I.uri),this._setGraphNodeEdge(String(this.root),(0,n.pathToPointer)(E),String(I.uri)),I.error&&A.errors.push(I.error),I.resolved&&(I.resolved.errors&&(A.errors=A.errors.concat(I.resolved.errors)),I.resolved.result!==void 0&&(this._source=(0,o.default)(this._source,L=>{if(I.resolved)if(E.length)s(L,E,I.resolved.result),this._setGraphNodeData(String(I.uri),I.resolved.result);else return I.resolved.result})))}if(typeof this._source=="object"?(this.dereferenceInline&&(this._source=(0,o.default)(this._source,I=>{let E=[];try{E=N.pointerGraph.overallOrder();for(const L of E){const q=N.pointerGraph.dependantsOf(L);if(!q.length)continue;const F=(0,n.pointerToPath)(L),S=F.length===0?(0,o.original)(I):r(I,F);for(const D of q){let M;const C=(0,n.pointerToPath)(D),H=N.pointerStemGraph.dependenciesOf(L);for(const X of H)if((0,n.startsWith)(C,(0,n.pointerToPath)(X))){M=!0;break}M||(A.refMap[(0,n.pathToPointer)(C)]=(0,n.pathToPointer)(F),this._setGraphNodeEdge(this.root,(0,n.pathToPointer)(C),(0,n.pathToPointer)(F)),S!==void 0?(s(I,C,S),this._setGraphNodeData((0,n.pathToPointer)(F),S)):A.errors.push({code:"POINTER_MISSING",message:`'${L}' does not exist`,path:C,uri:this.baseUri,uriStack:this.uriStack,pointerStack:[]}))}}}catch{}})),_?A.result=r(this._source,_):A.result=this._source):A.result=this._source,this.transformDereferenceResult){const I=new c(x||"");try{const{result:E,error:L}=yield this.transformDereferenceResult({source:this.source,result:A.result,targetAuthority:I,parentAuthority:this.baseUri,parentPath:P?P.parentPath||[]:[],fragment:I.fragment()});if(A.result=E,L)throw new Error(`Could not transform dereferenced result for '${I.toString()}' - ${String(L)}`)}catch(E){A.errors.push({code:"TRANSFORM_DEREFERENCED",message:`Error: Could not transform dereferenced result for '${this.baseUri.toString()}${I.fragment()!==""?`#${I.fragment()}`:""}' - ${String(E)}`,uri:I,uriStack:this.uriStack,pointerStack:[],path:_})}}return this._setGraphNodeData(this.root,this._source),A})}_cacheKeySerializer(P){return P&&typeof P=="object"&&P.cacheKey?P.cacheKey:JSON.stringify(arguments)}computeUriCacheKey(P){return P.clone().fragment("").toString()}isFile(P){const A=P.scheme();if(A==="file")return!0;if(A){if(!this.resolvers[A])return!0}else{if(P.toString().charAt(0)==="/")return!0;if(this.baseUri){const _=this.baseUri.scheme();return!_||_==="file"||!this.resolvers[_]}}return!1}_setGraphNodeData(P,A){if(!this.graph.hasNode(P))return;const _=this.graph.getNodeData(P)||{};_.data=A,this.graph.setNodeData(P,_)}_setGraphNodeEdge(P,A,_){if(!this.graph.hasNode(P))return;const x=this.graph.getNodeData(P)||{};x.refMap=x.refMap||{},x.refMap[A]=_,this.graph.setNodeData(P,x)}}t.ResolveRunner=b}(PO)),PO}var u5;function uqe(){if(u5)return K0;u5=1,Object.defineProperty(K0,"__esModule",{value:!0}),K0.Resolver=void 0;const t=L_(),e=VM(),n=CZ();class i{constructor(o={}){this.ctx={},this.uriCache=o.uriCache||new e.Cache,this.resolvers=o.resolvers||{},this.getRef=o.getRef,this.transformRef=o.transformRef,this.dereferenceInline=typeof o.dereferenceInline<"u"?o.dereferenceInline:!0,this.dereferenceRemote=typeof o.dereferenceRemote<"u"?o.dereferenceRemote:!0,this.parseResolveResult=o.parseResolveResult,this.transformDereferenceResult=o.transformDereferenceResult,this.ctx=o.ctx}resolve(o,r={}){const s=new t.DepGraph({circular:!0});return new n.ResolveRunner(o,s,Object.assign(Object.assign({uriCache:this.uriCache,resolvers:this.resolvers,getRef:this.getRef,transformRef:this.transformRef,dereferenceInline:this.dereferenceInline,dereferenceRemote:this.dereferenceRemote,parseResolveResult:this.parseResolveResult,transformDereferenceResult:this.transformDereferenceResult},r),{ctx:Object.assign({},this.ctx||{},r.ctx||{})})).resolve(r)}}return K0.Resolver=i,K0}(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.defaultGetRef=t.Cache=void 0,vr.__exportStar(uqe(),t);var n=VM();Object.defineProperty(t,"Cache",{enumerable:!0,get:function(){return n.Cache}});var i=CZ();Object.defineProperty(t,"defaultGetRef",{enumerable:!0,get:function(){return i.defaultGetRef}})})(UM);var DO={},q_={},Db={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.HttpParamStyles=void 0,function(e){e.Simple="simple",e.Matrix="matrix",e.Label="label",e.Form="form",e.CommaDelimited="commaDelimited",e.SpaceDelimited="spaceDelimited",e.PipeDelimited="pipeDelimited",e.DeepObject="deepObject"}(t.HttpParamStyles||(t.HttpParamStyles={})),t.DiagnosticSeverity=void 0,function(e){e[e.Error=0]="Error",e[e.Warning=1]="Warning",e[e.Information=2]="Information",e[e.Hint=3]="Hint"}(t.DiagnosticSeverity||(t.DiagnosticSeverity={})),t.NodeType=void 0,function(e){e.Article="article",e.HttpService="http_service",e.HttpServer="http_server",e.HttpOperation="http_operation",e.Model="model",e.Generic="generic",e.Unknown="unknown",e.TableOfContents="table_of_contents",e.SpectralRuleset="spectral_ruleset",e.Styleguide="styleguide",e.Image="image"}(t.NodeType||(t.NodeType={})),t.NodeFormat=void 0,function(e){e.Json="json",e.Markdown="markdown",e.Yaml="yaml",e.Apng="apng",e.Avif="avif",e.Bmp="bmp",e.Gif="gif",e.Jpeg="jpeg",e.Png="png",e.Svg="svg",e.Webp="webp"}(t.NodeFormat||(t.NodeFormat={}))})(Db);Object.defineProperty(q_,"__esModule",{value:!0});q_.DEFAULT_PARSER_OPTIONS=void 0;const f5=Db;q_.DEFAULT_PARSER_OPTIONS=Object.freeze({incompatibleValues:f5.DiagnosticSeverity.Error,duplicateKeys:f5.DiagnosticSeverity.Error});var kO={},fh={},TZ={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.Json=t.parseJson=void 0;const e=Hr,n=i=>(0,e.parseWithPointers)(i,{ignoreDuplicateKeys:!1,preserveKeyOrder:!0});t.parseJson=n,t.Json={parse:t.parseJson,getLocationForJsonPath:e.getLocationForJsonPath,trapAccess:e.trapAccess}})(TZ);var jZ={},MZ={},Cw={},X0={},OO={},jo={},EO={},p5;function z_(){return p5||(p5=1,function(t){Object.defineProperty(t,"__esModule",{value:!0});var e;(function(c){c[c.SCALAR=0]="SCALAR",c[c.MAPPING=1]="MAPPING",c[c.MAP=2]="MAP",c[c.SEQ=3]="SEQ",c[c.ANCHOR_REF=4]="ANCHOR_REF",c[c.INCLUDE_REF=5]="INCLUDE_REF"})(e=t.Kind||(t.Kind={}));function n(c,l){var u=l?l.endPosition:c.endPosition+1,f={key:c,value:l,startPosition:c.startPosition,endPosition:u,kind:e.MAPPING,parent:null,errors:[]};return f}t.newMapping=n;function i(c,l,u,f){return{errors:[],referencesAnchor:c,value:f,startPosition:l,endPosition:u,kind:e.ANCHOR_REF,parent:null}}t.newAnchorRef=i;function a(c=""){const l={errors:[],startPosition:-1,endPosition:-1,value:""+c,kind:e.SCALAR,parent:null,doubleQuoted:!1,rawValue:""+c};return typeof c!="string"&&(l.valueObject=c),l}t.newScalar=a;function o(){return{errors:[],startPosition:-1,endPosition:-1,items:[],kind:e.SEQ,parent:null}}t.newItems=o;function r(){return o()}t.newSeq=r;function s(c){return{errors:[],startPosition:-1,endPosition:-1,mappings:c||[],kind:e.MAP,parent:null}}t.newMap=s}(EO)),EO}var mc={},h5;function Jg(){if(h5)return mc;h5=1,Object.defineProperty(mc,"__esModule",{value:!0});function t(r){return typeof r>"u"||r===null}mc.isNothing=t;function e(r){return typeof r=="object"&&r!==null}mc.isObject=e;function n(r){return Array.isArray(r)?r:t(r)?[]:[r]}mc.toArray=n;function i(r,s){var c,l,u,f;if(s)for(f=Object.keys(s),c=0,l=f.length;c0&&`\0\r -…\u2028\u2029`.indexOf(this.buffer.charAt(r-1))===-1;)if(r-=1,this.position-r>a/2-1){o=" ... ",r+=5;break}for(s="",c=this.position;ca/2-1){s=" ... ",c-=5;break}return l=this.buffer.slice(r,c),t.repeat(" ",i)+o+l+s+` -`+t.repeat(" ",i+this.position-r+o.length)+"^"}toString(i=!0){var a,o="";return this.name&&(o+='in "'+this.name+'" '),o+="at line "+(this.line+1)+", column "+(this.column+1),i||(a=this.getSnippet(),a&&(o+=`: -`+a)),o}}return CO=e,CO}var Tw={},jw={},y5;function ea(){if(y5)return jw;y5=1,Object.defineProperty(jw,"__esModule",{value:!0});const t=kb();var e=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],n=["scalar","sequence","mapping"];function i(o){var r={};return o!==null&&Object.keys(o).forEach(function(s){o[s].forEach(function(c){r[String(c)]=s})}),r}class a{constructor(r,s){if(s=s||{},Object.keys(s).forEach(function(c){if(e.indexOf(c)===-1)throw new t('Unknown option "'+c+'" is met in definition of "'+r+'" YAML type.')}),this.tag=r,this.kind=s.kind||null,this.resolve=s.resolve||function(){return!0},this.construct=s.construct||function(c){return c},this.instanceOf=s.instanceOf||null,this.predicate=s.predicate||null,this.represent=s.represent||null,this.defaultStyle=s.defaultStyle||null,this.styleAliases=i(s.styleAliases||null),n.indexOf(this.kind)===-1)throw new t('Unknown kind "'+this.kind+'" is specified for "'+r+'" YAML type.')}}return jw.Type=a,jw}var g5;function Ob(){if(g5)return Tw;g5=1,Object.defineProperty(Tw,"__esModule",{value:!0});const t=Jg(),e=kb(),n=ea();function i(r,s,c){var l=[];return r.include.forEach(function(u){c=i(u,s,c)}),r[s].forEach(function(u){c.forEach(function(f,h){f.tag===u.tag&&l.push(h)}),c.push(u)}),c.filter(function(u,f){return l.indexOf(f)===-1})}function a(){var r={},s,c;function l(u){r[u.tag]=u}for(s=0,c=arguments.length;s64)){if(c<0)return!1;u+=6}return u%8===0}function a(s){var c,l,u=s.replace(/[\r\n=]/g,""),f=u.length,h=n,d=0,m=[];for(c=0;c>16&255),m.push(d>>8&255),m.push(d&255)),d=d<<6|h.indexOf(u.charAt(c));return l=f%4*6,l===0?(m.push(d>>16&255),m.push(d>>8&255),m.push(d&255)):l===18?(m.push(d>>10&255),m.push(d>>2&255)):l===12&&m.push(d>>4&255),t?new t(m):m}function o(s){var c="",l=0,u,f,h=s.length,d=n;for(u=0;u>18&63],c+=d[l>>12&63],c+=d[l>>6&63],c+=d[l&63]),l=(l<<8)+s[u];return f=h%3,f===0?(c+=d[l>>18&63],c+=d[l>>12&63],c+=d[l>>6&63],c+=d[l&63]):f===2?(c+=d[l>>10&63],c+=d[l>>4&63],c+=d[l<<2&63],c+=d[64]):f===1&&(c+=d[l>>2&63],c+=d[l<<4&63],c+=d[64],c+=d[64]),c}function r(s){return t&&t.isBuffer(s)}return WO=new e.Type("tag:yaml.org,2002:binary",{kind:"scalar",resolve:i,construct:a,predicate:r,represent:o}),WO}var HO,I5;function _qe(){if(I5)return HO;I5=1;const t=ea();var e=Object.prototype.hasOwnProperty,n=Object.prototype.toString;function i(o){if(o===null)return!0;var r=[],s,c,l,u,f,h=o;for(s=0,c=h.length;s"u"}return JO=new t.Type("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:e,construct:n,predicate:a,represent:i}),JO}var QO,R5;function Oqe(){if(R5)return QO;R5=1;const t=ea();function e(o){if(o===null||o.length===0)return!1;var r=o,s=/\/([gim]*)$/.exec(o),c="";if(r[0]==="/"){if(s&&(c=s[1]),c.length>3||r[r.length-c.length-1]!=="/")return!1;r=r.slice(1,r.length-c.length-1)}try{var l=new RegExp(r,c);return!0}catch{return!1}}function n(o){var r=o,s=/\/([gim]*)$/.exec(o),c="";return r[0]==="/"&&(s&&(c=s[1]),r=r.slice(1,r.length-c.length-1)),new RegExp(r,c)}function i(o){var r="/"+o.source+"/";return o.global&&(r+="g"),o.multiline&&(r+="m"),o.ignoreCase&&(r+="i"),r}function a(o){return Object.prototype.toString.call(o)==="[object RegExp]"}return QO=new t.Type("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:e,construct:n,predicate:a,represent:i}),QO}var ZO,N5;function RZ(){if(N5)return ZO;N5=1;const t=Ob();var e=new t.Schema({include:[rR()],explicit:[kqe(),Oqe()]});return t.Schema.DEFAULT=e,ZO=e,ZO}var L5;function Eqe(){if(L5)return jo;L5=1,Object.defineProperty(jo,"__esModule",{value:!0});const t=z_(),e=Jg(),n=kb(),i=fqe(),a=rR(),o=RZ();var r=Object.prototype.hasOwnProperty,s=1,c=2,l=3,u=4,f=1,h=2,d=3,m=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,g=/[\x85\u2028\u2029]/,b=/[,\[\]\{\}]/,v=/^(?:!|!!|![a-z\-]+!)$/i,P=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function A(w){return w===10||w===13}function _(w){return w===9||w===32}function x(w){return w===9||w===32||w===10||w===13}function N(w){return w===44||w===91||w===93||w===123||w===125}function j(w){var K;return 48<=w&&w<=57?w-48:(K=w|32,97<=K&&K<=102?K-97+10:-1)}function I(w){return w===120?2:w===117?4:w===85?8:0}function E(w){return 48<=w&&w<=57?w-48:-1}function L(w){return w===48?"\0":w===97?"\x07":w===98?"\b":w===116||w===9?" ":w===110?` -`:w===118?"\v":w===102?"\f":w===114?"\r":w===101?"\x1B":w===32?" ":w===34?'"':w===47?"/":w===92?"\\":w===78?"…":w===95?" ":w===76?"\u2028":w===80?"\u2029":""}function q(w){return w<=65535?String.fromCharCode(w):String.fromCharCode((w-65536>>10)+55296,(w-65536&1023)+56320)}for(var F=new Array(256),S=new Array(256),D=new Array(256),M=new Array(256),C=0;C<256;C++)M[C]=S[C]=L(C),F[C]=S[C]?1:0,D[C]=1,F[C]||(M[C]="\\"+String.fromCharCode(C));class H{constructor(K,Z){this.errorMap={},this.errors=[],this.lines=[],this.input=K,this.filename=Z.filename||null,this.schema=Z.schema||o,this.onWarning=Z.onWarning||null,this.legacy=Z.legacy||!1,this.allowAnyEscape=Z.allowAnyEscape||!1,this.ignoreDuplicateKeys=Z.ignoreDuplicateKeys||!1,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=K.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}}function X(w,K,Z=!1){return new n(K,new i(w.filename,w.input,w.position,w.line,w.position-w.lineStart),Z)}function ie(w,K,Z,fe=!1,de=!1){var G=le(w,K);if(G){var k=Z+K;if(!w.errorMap[k]){var ee=new i(w.filename,w.input,K,G.line,K-G.start);de&&(ee.toLineEnd=!0);var te=new n(Z,ee,fe);w.errors.push(te)}}}function U(w,K){var Z=X(w,K),fe=Z.message+Z.mark.position;if(!w.errorMap[fe]){w.errors.push(Z),w.errorMap[fe]=1;for(var de=w.position;;){if(w.position>=w.input.length-1)return;var G=w.input.charAt(w.position);if(G==` -`){w.position--,w.position==de&&(w.position+=1);return}if(G=="\r"){w.position--,w.position==de&&(w.position+=1);return}w.position++}}}function R(w,K){var Z=X(w,K);w.onWarning&&w.onWarning.call(null,Z)}var z={YAML:function(K,Z,fe){var de,G,k;K.version!==null&&U(K,"duplication of %YAML directive"),fe.length!==1&&U(K,"YAML directive accepts exactly one argument"),de=/^([0-9]+)\.([0-9]+)$/.exec(fe[0]),de===null&&U(K,"ill-formed argument of the YAML directive"),G=parseInt(de[1],10),k=parseInt(de[2],10),G!==1&&U(K,"found incompatible YAML document (version 1.2 is required)"),K.version=fe[0],K.checkLineBreaks=k<2,k!==2&&U(K,"found incompatible YAML document (version 1.2 is required)")},TAG:function(K,Z,fe){var de,G;fe.length!==2&&U(K,"TAG directive accepts exactly two arguments"),de=fe[0],G=fe[1],v.test(de)||U(K,"ill-formed tag handle (first argument) of the TAG directive"),r.call(K.tagMap,de)&&U(K,'there is a previously declared suffix for "'+de+'" tag handle'),P.test(G)||U(K,"ill-formed tag prefix (second argument) of the TAG directive"),K.tagMap[de]=G}};function V(w,K,Z,fe){var de,G,k,ee,te=w.result;if(te.startPosition==-1&&(te.startPosition=K),K<=Z){if(ee=w.input.slice(K,Z),fe)for(de=0,G=ee.length;de{k.key&&k.key.value===(G.key&&G.key.value)&&(ie(w,G.key.startPosition,"duplicate key"),ie(w,k.key.startPosition,"duplicate key"))}),K.mappings.push(G),K.endPosition=de?de.endPosition:fe.endPosition+1,K}}function W(w){var K;K=w.input.charCodeAt(w.position),K===10?w.position++:K===13?(w.position++,w.input.charCodeAt(w.position)===10&&w.position++):U(w,"a line break is expected"),w.line+=1,w.lineStart=w.position,w.lines.push({start:w.lineStart,line:w.line})}function le(w,K){for(var Z,fe=0;feK);fe++)Z=w.lines[fe];return Z||{start:0,line:0}}function ve(w){var K=0,Z=w.position;do K=w.input.charCodeAt(++w.position);while(K!==0&&!A(K));w.comments.push({startPosition:Z,endPosition:w.position,value:w.input.slice(Z+1,w.position)})}function ae(w,K,Z){for(var fe=0,de=w.input.charCodeAt(w.position);de!==0;){for(;_(de);)de===9&&w.errors.push(X(w,"Using tabs can lead to unpredictable results",!0)),de=w.input.charCodeAt(++w.position);if(K&&de===35&&(ve(w),de=w.input.charCodeAt(w.position)),A(de))for(W(w),de=w.input.charCodeAt(w.position),fe++,w.lineIndent=0;de===32;)w.lineIndent++,de=w.input.charCodeAt(++w.position);else break}return Z!==-1&&fe!==0&&w.lineIndent1&&(K.value+=e.repeat(` -`,Z-1))}function Ee(w,K,Z){var fe,de,G,k,ee,te,ce,oe,Pe=w.kind,De=w.result,be,Fe=t.newScalar();if(Fe.plainScalar=!0,w.result=Fe,be=w.input.charCodeAt(w.position),x(be)||N(be)||be===35||be===38||be===42||be===33||be===124||be===62||be===39||be===34||be===37||be===64||be===96||(be===63||be===45)&&(de=w.input.charCodeAt(w.position+1),x(de)||Z&&N(de)))return!1;for(w.kind="scalar",G=k=w.position,ee=!1;be!==0;){if(be===58){if(de=w.input.charCodeAt(w.position+1),x(de)||Z&&N(de))break}else if(be===35){if(fe=w.input.charCodeAt(w.position-1),x(fe))break}else{if(w.position===w.lineStart&&_e(w)||Z&&N(be))break;if(A(be))if(te=w.line,ce=w.lineStart,oe=w.lineIndent,ae(w,!1,-1),w.lineIndent>=K){ee=!0,be=w.input.charCodeAt(w.position);continue}else{w.position=k,w.line=te,w.lineStart=ce,w.lineIndent=oe;break}}if(ee&&(V(w,G,k,!1),he(w,Fe,w.line-te),G=k=w.position,ee=!1),_(be)||(k=w.position+1),be=w.input.charCodeAt(++w.position),w.position>=w.input.length)return!1}return V(w,G,k,!1),w.result.startPosition!=-1?(Fe.rawValue=w.input.substring(Fe.startPosition,Fe.endPosition),!0):(w.kind=Pe,w.result=De,!1)}function Ge(w,K){var Z,fe,de;if(Z=w.input.charCodeAt(w.position),Z!==39)return!1;var G=t.newScalar();for(G.singleQuoted=!0,w.kind="scalar",w.result=G,G.startPosition=w.position,w.position++,fe=de=w.position;(Z=w.input.charCodeAt(w.position))!==0;)if(Z===39)if(V(w,fe,w.position,!0),Z=w.input.charCodeAt(++w.position),G.endPosition=w.position,Z===39)fe=de=w.position,w.position++;else return!0;else A(Z)?(V(w,fe,de,!0),he(w,G,ae(w,!1,K)),fe=de=w.position):w.position===w.lineStart&&_e(w)?U(w,"unexpected end of the document within a single quoted scalar"):(w.position++,de=w.position,G.endPosition=w.position);U(w,"unexpected end of the stream within a single quoted scalar")}function Me(w,K){var Z,fe,de,G,k,ee;if(ee=w.input.charCodeAt(w.position),ee!==34)return!1;w.kind="scalar";var te=t.newScalar();for(te.doubleQuoted=!0,w.result=te,te.startPosition=w.position,w.position++,Z=fe=w.position;(ee=w.input.charCodeAt(w.position))!==0;){if(ee===34)return V(w,Z,w.position,!0),w.position++,te.endPosition=w.position,te.rawValue=w.input.substring(te.startPosition,te.endPosition),!0;if(ee===92){if(V(w,Z,w.position,!0),ee=w.input.charCodeAt(++w.position),A(ee))ae(w,!1,K);else if(ee<256&&(w.allowAnyEscape?D[ee]:F[ee]))te.value+=w.allowAnyEscape?M[ee]:S[ee],w.position++;else if((k=I(ee))>0){for(de=k,G=0;de>0;de--)ee=w.input.charCodeAt(++w.position),(k=j(ee))>=0?G=(G<<4)+k:U(w,"expected hexadecimal character");te.value+=q(G),w.position++}else U(w,"unknown escape sequence");Z=fe=w.position}else A(ee)?(V(w,Z,fe,!0),he(w,te,ae(w,!1,K)),Z=fe=w.position):w.position===w.lineStart&&_e(w)?U(w,"unexpected end of the document within a double quoted scalar"):(w.position++,fe=w.position)}U(w,"unexpected end of the stream within a double quoted scalar")}function Ae(w,K){var Z=!0,fe,de=w.tag,G,k=w.anchor,ee,te,ce,oe,Pe,De,be,Fe,Ye;if(Ye=w.input.charCodeAt(w.position),Ye===91)te=93,Pe=!1,G=t.newItems(),G.startPosition=w.position;else if(Ye===123)te=125,Pe=!0,G=t.newMap(),G.startPosition=w.position;else return!1;for(w.anchor!==null&&(G.anchorId=w.anchor,w.anchorMap[w.anchor]=G),Ye=w.input.charCodeAt(++w.position);Ye!==0;){if(ae(w,!0,K),Ye=w.input.charCodeAt(w.position),Ye===te)return w.position++,w.tag=de,w.anchor=k,w.kind=Pe?"mapping":"sequence",w.result=G,G.endPosition=w.position,!0;if(!Z){var mt=w.position;U(w,"missed comma between flow collection entries"),w.position=mt+1}if(be=De=Fe=null,ce=oe=!1,Ye===63&&(ee=w.input.charCodeAt(w.position+1),x(ee)&&(ce=oe=!0,w.position++,ae(w,!0,K))),fe=w.line,ct(w,K,s,!1,!0),be=w.tag,De=w.result,ae(w,!0,K),Ye=w.input.charCodeAt(w.position),(oe||w.line===fe)&&Ye===58&&(ce=!0,Ye=w.input.charCodeAt(++w.position),ae(w,!0,K),ct(w,K,s,!1,!0),Fe=w.result),Pe)T(w,G,be,De,Fe);else if(ce){var ut=T(w,null,be,De,Fe);ut.parent=G,G.items.push(ut)}else De&&(De.parent=G),G.items.push(De);G.endPosition=w.position+1,ae(w,!0,K),Ye=w.input.charCodeAt(w.position),Ye===44?(Z=!0,Ye=w.input.charCodeAt(++w.position)):Z=!1}U(w,"unexpected end of the stream within a flow collection")}function at(w,K){var Z,fe,de=f,G=!1,k=K,ee=0,te=!1,ce,oe;if(oe=w.input.charCodeAt(w.position),oe===124)fe=!1;else if(oe===62)fe=!0;else return!1;var Pe=t.newScalar();for(w.kind="scalar",w.result=Pe,Pe.startPosition=w.position;oe!==0;)if(oe=w.input.charCodeAt(++w.position),oe===43||oe===45)f===de?de=oe===43?d:h:U(w,"repeat of a chomping mode identifier");else if((ce=E(oe))>=0)ce===0?U(w,"bad explicit indentation width of a block scalar; it cannot be less than one"):G?U(w,"repeat of an indentation width identifier"):(k=K+ce-1,G=!0);else break;if(_(oe)){do oe=w.input.charCodeAt(++w.position);while(_(oe));oe===35&&(ve(w),oe=w.input.charCodeAt(w.position))}for(;oe!==0;){for(W(w),w.lineIndent=0,oe=w.input.charCodeAt(w.position);(!G||w.lineIndentk&&(k=w.lineIndent),A(oe)){ee++;continue}if(w.lineIndentK)&&te!==0)U(w,"bad indentation of a sequence entry");else if(w.lineIndent0;)if(Fe=w.input.charCodeAt(--w.position),A(Fe)){w.position++;break}}else return w.tag=k,w.anchor=ee,!0;else break;if((w.line===G||w.lineIndent>K)&&(ct(w,K,u,!0,de)&&(De?oe=w.result:Pe=w.result),De||(T(w,te,ce,oe,Pe),ce=oe=Pe=null),ae(w,!0,-1),Fe=w.input.charCodeAt(w.position)),w.lineIndent>K&&Fe!==0)U(w,"bad indentation of a mapping entry");else if(w.lineIndentK?te=1:w.lineIndent===K?te=0:w.lineIndentK?te=1:w.lineIndent===K?te=0:w.lineIndent tag; it should be "'+be.kind+'", not "'+w.kind+'"'),be.resolve(w.result)?(w.result=be.construct(w.result),w.anchor!==null&&(w.result.anchorId=w.anchor,w.anchorMap[w.anchor]=w.result)):U(w,"cannot resolve a node with !<"+w.tag+"> explicit tag")):ie(w,mt,"unknown tag <"+w.tag+">",!1,!0);return w.tag!==null||w.anchor!==null||oe}function nn(w){var K=w.position,Z,fe,de,G=!1,k;for(w.version=null,w.checkLineBreaks=w.legacy,w.tagMap={},w.anchorMap={},w.comments=[];(k=w.input.charCodeAt(w.position))!==0&&(ae(w,!0,-1),k=w.input.charCodeAt(w.position),!(w.lineIndent>0||k!==37));){for(G=!0,k=w.input.charCodeAt(++w.position),Z=w.position;k!==0&&!x(k);)k=w.input.charCodeAt(++w.position);for(fe=w.input.slice(Z,w.position),de=[],fe.length<1&&U(w,"directive name must not be less than one character in length");k!==0;){for(;_(k);)k=w.input.charCodeAt(++w.position);if(k===35){ve(w),k=w.input.charCodeAt(w.position);break}if(A(k))break;for(Z=w.position;k!==0&&!x(k);)k=w.input.charCodeAt(++w.position);de.push(w.input.slice(Z,w.position))}k!==0&&W(w),r.call(z,fe)?z[fe](w,fe,de):(R(w,'unknown document directive "'+fe+'"'),w.position++)}if(ae(w,!0,-1),w.lineIndent===0&&w.input.charCodeAt(w.position)===45&&w.input.charCodeAt(w.position+1)===45&&w.input.charCodeAt(w.position+2)===45?(w.position+=3,ae(w,!0,-1)):G&&U(w,"directives end mark is expected"),ct(w,w.lineIndent-1,u,!1,!0),ae(w,!0,-1),w.checkLineBreaks&&g.test(w.input.slice(K,w.position))&&R(w,"non-ASCII line breaks are interpreted as content"),w.result.comments=w.comments,w.documents.push(w.result),w.position===w.lineStart&&_e(w)){w.input.charCodeAt(w.position)===46&&(w.position+=3,ae(w,!0,-1));return}if(w.position0&&(k[ee-1].endPosition=Z);for(let te of k)te.errors=fe.errors,te.startPosition>te.endPosition&&(te.startPosition=te.endPosition);return k}function an(w,K,Z={}){var fe=qr(w,Z),de,G;for(de=0,G=fe.length;de0?k.charCodeAt(Pe-1):null,Jt=Jt&&W(De,be)}else{for(Pe=0;Pece&&k[ut+1]!==" ",ut=Pe);else if(!V(De))return Ge;be=Pe>0?k.charCodeAt(Pe-1):null,Jt=Jt&&W(De,be)}Ye=Ye||mt&&Pe-ut-1>ce&&k[ut+1]!==" "}return!Fe&&!Ye?Jt&&!oe(k)?ae:_e:te>9&&ve(k)?Ge:Ye?Ee:he}function Ae(k,ee,te,ce,oe){var Pe=function(){if(ee.length===0)return"''";if(!k.noCompatMode&&M.indexOf(ee)!==-1)return"'"+ee+"'";var De=k.indent*Math.max(1,te),be=k.lineWidth===-1?-1:Math.max(Math.min(k.lineWidth,40),k.lineWidth-De),Fe=ce||k.flowLevel>-1&&te>=k.flowLevel;function Ye(mt){return R(k,mt)}switch(Me(ee,Fe,k.indent,be,Ye)){case ae:return ee;case _e:return"'"+ee.replace(/'/g,"''")+"'";case he:return"|"+at(ee,k.indent)+gt(ie(ee,De));case Ee:return">"+at(ee,k.indent)+gt(ie(Ne(ee,be),De));case Ge:return'"'+$t(ee)+'"';default:throw new e("impossible error: invalid scalar style")}}();if(!ce){let be=new G(k,oe).write(te,"before-eol");be!==""&&(Pe+=" "+be)}k.dump=Pe}function at(k,ee){var te=ve(k)?String(ee):"",ce=k[k.length-1]===` -`,oe=ce&&(k[k.length-2]===` -`||k===` -`),Pe=oe?"+":ce?"":"-";return te+Pe+` -`}function gt(k){return k[k.length-1]===` -`?k.slice(0,-1):k}function Ne(k,ee){for(var te=/(\n+)([^\n]*)/g,ce=function(){var Ye=k.indexOf(` -`);return Ye=Ye!==-1?Ye:k.length,te.lastIndex=Ye,Ce(k.slice(0,Ye),ee)}(),oe=k[0]===` -`||k[0]===" ",Pe,De;De=te.exec(k);){var be=De[1],Fe=De[2];Pe=Fe[0]===" ",ce+=be+(!oe&&!Pe&&Fe!==""?` -`:"")+Ce(Fe,ee),oe=Pe}return ce}function Ce(k,ee){if(k===""||k[0]===" ")return k;for(var te=/ [^ ]/g,ce,oe=0,Pe,De=0,be=0,Fe="";ce=te.exec(k);)be=ce.index,be-oe>ee&&(Pe=De>oe?De:be,Fe+=` -`+k.slice(oe,Pe),oe=Pe+1),De=be;return Fe+=` -`,k.length-oe>ee&&De>oe?Fe+=k.slice(oe,De)+` -`+k.slice(De+1):Fe+=k.slice(oe),Fe.slice(1)}function $t(k){for(var ee="",te,ce,oe,Pe=0;Pe=55296&&te<=56319&&(ce=k.charCodeAt(Pe+1),ce>=56320&&ce<=57343)){ee+=H((te-55296)*1024+ce-56320+65536),Pe++;continue}oe=D[te],ee+=!oe&&V(te)?k[Pe]:oe||H(te)}return ee}function xe(k,ee,te,ce){var oe="",Pe=k.tag,De,be;for(De=0,be=te.length;De1024&&(ut+="? "),ut+=k.dump+(k.condenseFlow?'"':"")+":"+(k.condenseFlow?"":" "),Xt(k,ee,mt,!1,!1,!1,ce)&&(ut+=k.dump,oe+=ut));k.tag=Pe,k.dump="{"+oe+"}"}function qr(k,ee,te,ce,oe){var Pe="",De=k.tag,be=Object.keys(te),Fe,Ye,mt,ut,Jt,un;if(k.sortKeys===!0)be.sort();else if(typeof k.sortKeys=="function")be.sort(k.sortKeys);else if(k.sortKeys)throw new e("sortKeys must be a boolean or a function");var wi=new G(k,oe);for(Pe+=wi.write(ee,"before-eol"),Pe+=wi.write(ee,"leading"),Fe=0,Ye=be.length;Fe1024,Jt&&(k.dump&&s===k.dump.charCodeAt(0)?un+="?":un+="? "),un+=k.dump,Jt&&(un+=U(k,ee)),Xt(k,ee+1,ut,!0,Jt,!1,`${oe}/${de(mt)}`)&&(k.dump&&s===k.dump.charCodeAt(0)?un+=":":un+=": ",un+=k.dump,Pe+=un,Pe+=wi.writeAt(ee,mt,"after")));k.tag=De,k.dump=Pe||"{}",k.dump+=wi.write(ee,"trailing")}function an(k,ee,te){var ce,oe,Pe,De,be,Fe;for(oe=te?k.explicitTypes:k.implicitTypes,Pe=0,De=oe.length;Pe tag resolver accepts not "'+Fe+'" style');k.dump=ce}return!0}return!1}function Xt(k,ee,te,ce,oe,Pe,De){k.tag=null,k.dump=te,an(k,te,!1)||an(k,te,!0);var be=a.call(k.dump);ce&&(ce=k.flowLevel<0||k.flowLevel>ee),(k.tag!==null&&k.tag!=="?"||k.indent!==2&&ee>0)&&(oe=!1);var Fe=be==="[object Object]"||be==="[object Array]",Ye,mt;if(Fe&&(Ye=k.duplicates.indexOf(te),mt=Ye!==-1),(k.tag!==null&&k.tag!=="?"||mt||k.indent!==2&&ee>0)&&(oe=!1),mt&&k.usedDuplicates[Ye])k.dump="*ref_"+Ye;else{if(Fe&&mt&&!k.usedDuplicates[Ye]&&(k.usedDuplicates[Ye]=!0),be==="[object Object]")ce&&Object.keys(k.dump).length!==0?(qr(k,ee,k.dump,oe,De),mt&&(k.dump="&ref_"+Ye+k.dump)):(nn(k,ee,k.dump,De),mt&&(k.dump="&ref_"+Ye+" "+k.dump));else if(be==="[object Array]"){var ut=k.noArrayIndent&&ee>0?ee-1:ee;ce&&k.dump.length!==0?(ct(k,ut,k.dump,oe,De),mt&&(k.dump="&ref_"+Ye+k.dump)):(xe(k,ut,k.dump,De),mt&&(k.dump="&ref_"+Ye+" "+k.dump))}else if(be==="[object String]")k.tag!=="?"&&Ae(k,k.dump,ee,Pe,De);else{if(k.skipInvalid)return!1;throw new e("unacceptable kind of an object to dump "+be)}k.tag!==null&&k.tag!=="?"&&(k.dump="!<"+k.tag+"> "+k.dump)}return!0}function er(k,ee){var te=[],ce=[],oe,Pe;for(J(k,te,ce),oe=0,Pe=ce.length;oe=0)return!0;if(["false","False","FALSE"].lastIndexOf(c)>=0)return!1;throw`Invalid boolean "${c}"`}t.parseYamlBoolean=e;function n(c){return c.lastIndexOf("0o",0)===0?parseInt(c.substring(2),8):parseInt(c)}function i(c){const l=n(c);if(Number.isNaN(l))throw`Invalid integer "${c}"`;return l}t.parseYamlInteger=i;function a(c){const l=i(c);return l>Number.MAX_SAFE_INTEGER&&c.lastIndexOf("0o",0)===-1?BigInt(c):l}t.parseYamlBigInteger=a;function o(c){if([".nan",".NaN",".NAN"].lastIndexOf(c)>=0)return NaN;const u=/^([-+])?(?:\.inf|\.Inf|\.INF)$/.exec(c);if(u)return u[1]==="-"?-1/0:1/0;const f=parseFloat(c);if(!isNaN(f))return f;throw`Invalid float "${c}"`}t.parseYamlFloat=o;var r;(function(c){c[c.null=0]="null",c[c.bool=1]="bool",c[c.int=2]="int",c[c.float=3]="float",c[c.string=4]="string"})(r=t.ScalarType||(t.ScalarType={}));function s(c){if(c===void 0)return r.null;if(c.doubleQuoted||!c.plainScalar||c.singleQuoted)return r.string;const l=c.value;if(["null","Null","NULL","~",""].indexOf(l)>=0||l==null)return r.null;if(["true","True","TRUE","false","False","FALSE"].indexOf(l)>=0)return r.bool;const u=/^[-+]?[0-9]+$/,f=/^0o[0-7]+$/,h=/^0x[0-9a-fA-F]+$/;if(u.test(l)||f.test(l)||h.test(l))return r.int;const d=/^[-+]?(\.[0-9]+|[0-9]+(\.[0-9]*)?)([eE][-+]?[0-9]+)?$/,m=/^[-+]?(\.inf|\.Inf|\.INF)$/;return d.test(l)||m.test(l)||[".nan",".NaN",".NAN"].indexOf(l)>=0?r.float:r.string}t.determineScalarType=s}(XO)),XO}var z5;function nR(){return z5||(z5=1,function(t){function e(a){for(var o in a)t.hasOwnProperty(o)||(t[o]=a[o])}Object.defineProperty(t,"__esModule",{value:!0});var n=Eqe();t.load=n.load,t.loadAll=n.loadAll,t.safeLoad=n.safeLoad,t.safeLoadAll=n.safeLoadAll;var i=Iqe();t.dump=i.dump,t.safeDump=i.safeDump,t.YAMLException=kb(),e(z_()),e(Cqe())}(OO)),OO}var U5;function Qg(){if(U5)return X0;U5=1,Object.defineProperty(X0,"__esModule",{value:!0});const t=nR();return X0.Kind=t.Kind,X0.ScalarType=t.ScalarType,X0}var Mw={},B5;function Eb(){return B5||(B5=1,Object.defineProperty(Mw,"__esModule",{value:!0}),Mw.isObject=t=>t!==null&&typeof t=="object"),Mw}var V5;function iR(){if(V5)return Cw;V5=1,Object.defineProperty(Cw,"__esModule",{value:!0});const t=Qg(),e=Eb();function n(i){const a=[];let o=i;for(;i;){switch(i.kind){case t.Kind.SCALAR:a.unshift(i.value);break;case t.Kind.MAPPING:o!==i.key&&(a.length>0&&e.isObject(i.value)&&i.value.value===a[0]?a[0]=i.key.value:a.unshift(i.key.value));break;case t.Kind.SEQ:if(o){const r=i.items.indexOf(o);o.kind===t.Kind.SCALAR?a[0]=r:r!==-1&&a.unshift(r)}break}o=i,i=i.parent}return a}return Cw.buildJsonPath=n,Cw}var eE={},W5;function NZ(){return W5||(W5=1,function(t){Object.defineProperty(t,"__esModule",{value:!0});const e=Qg(),n=Eb();t.dereferenceAnchor=(a,o)=>{if(!n.isObject(a))return a;if(a.kind===e.Kind.ANCHOR_REF&&a.referencesAnchor===o)return null;switch(a.kind){case e.Kind.MAP:return Object.assign({},a,{mappings:a.mappings.map(r=>t.dereferenceAnchor(r,o))});case e.Kind.SEQ:return Object.assign({},a,{items:a.items.map(r=>t.dereferenceAnchor(r,o))});case e.Kind.MAPPING:return Object.assign({},a,{value:t.dereferenceAnchor(a.value,o)});case e.Kind.SCALAR:return a;case e.Kind.ANCHOR_REF:return n.isObject(a.value)&&i(a)?null:a;default:return a}};const i=a=>{const{referencesAnchor:o}=a;let r=a;for(;r=r.parent;)if("anchorId"in r&&r.anchorId===o)return!0;return!1}}(eE)),eE}var Rw={},H5;function Tqe(){if(H5)return Rw;H5=1,Object.defineProperty(Rw,"__esModule",{value:!0});const t=iR(),e=Qg(),n=Eb();Rw.getJsonPathForPosition=({ast:r,lineMap:s},{line:c,character:l})=>{if(c>=s.length||l>=s[c])return;const u=c===0?0:s[c-1]+1,f=o(r,Math.min(s[c]-1,u+l),c,s);if(!n.isObject(f))return;const h=t.buildJsonPath(f);if(h.length!==0)return h};function*i(r){switch(r.kind){case e.Kind.MAP:if(r.mappings.length!==0)for(const s of r.mappings)n.isObject(s)&&(yield s);break;case e.Kind.MAPPING:n.isObject(r.key)&&(yield r.key),n.isObject(r.value)&&(yield r.value);break;case e.Kind.SEQ:if(r.items.length!==0)for(const s of r.items)n.isObject(s)&&(yield s);break;case e.Kind.SCALAR:yield r;break}}function a(r,s,c){const l=c[s-1]+1,u=c[s];switch(r.kind){case e.Kind.MAPPING:return r.key;case e.Kind.MAP:if(r.mappings.length!==0){for(const f of r.mappings)if(f.startPosition>l&&f.startPosition<=u)return a(f,s,c)}break;case e.Kind.SEQ:if(r.items.length!==0){for(const f of r.items)if(f!==null&&f.startPosition>l&&f.startPosition<=u)return a(f,s,c)}break}return r}function o(r,s,c,l){for(const u of i(r))if(u.startPosition<=s&&s<=u.endPosition)return u.kind===e.Kind.SCALAR?u:o(u,s,c,l);if(l[c-1]===l[c]-1)return r;if(r.startPosition{if(e===0||n.length===0||e"u"&&(a=n.length);const o=Math.floor((a-i)/2)+i;if(e>=n[o]&&!n[o+1])return o+1;const r=n[Math.min(o+1,n.length)];return e===n[o]-1?o:e>=n[o]&&e<=r?e===r?o+2:o+1:e>n[o]?t.lineForPosition(e,n,o+1,a):t.lineForPosition(e,n,i,o-1)}}(tE)),tE}var K5;function jqe(){if(K5)return Nw;K5=1,Object.defineProperty(Nw,"__esModule",{value:!0});const t=aR(),e=Qg(),n=Eb();Nw.getLocationForJsonPath=({ast:l,lineMap:u,metadata:f},h,d=!1)=>{const m=o(l,h,{closest:d,mergeKeys:f!==void 0&&f.mergeKeys===!0});if(m!==void 0)return c(u,{start:i(m,u.length>0?u[0]:0),end:a(m)})};function i(l,u){if(l.parent&&l.parent.kind===e.Kind.MAPPING){if(l.parent.value===null)return l.parent.endPosition;if(l.kind!==e.Kind.SCALAR)return l.parent.key.endPosition+1}return l.parent===null&&u-l.startPosition===0?0:l.startPosition}function a(l){switch(l.kind){case e.Kind.SEQ:const{items:u}=l;if(u.length!==0){const f=u[u.length-1];if(f!==null)return a(f)}break;case e.Kind.MAPPING:if(l.value!==null)return a(l.value);break;case e.Kind.MAP:if(l.value!==null&&l.mappings.length!==0)return a(l.mappings[l.mappings.length-1]);break;case e.Kind.SCALAR:if(l.parent!==null&&l.parent.kind===e.Kind.MAPPING&&l.parent.value===null)return l.parent.endPosition;break}return l.endPosition}function o(l,u,{closest:f,mergeKeys:h}){e:for(const d of u){if(!n.isObject(l))return f?l:void 0;switch(l.kind){case e.Kind.MAP:const m=r(l.mappings,h);for(let g=m.length-1;g>=0;g--){const b=m[g];if(b.key.value===d){b.value===null?l=b.key:l=b.value;continue e}}return f?l:void 0;case e.Kind.SEQ:for(let g=0;g(n.isObject(h)&&(h.key.value==="<<"?f.push(...s(h.value)):f.push(h)),f),[]):l}function s(l){if(!n.isObject(l))return[];switch(l.kind){case e.Kind.SEQ:return l.items.reduceRight((u,f)=>(u.push(...s(f)),u),[]);case e.Kind.MAP:return l.mappings;case e.Kind.ANCHOR_REF:return s(l.value);default:return[]}}const c=(l,{start:u=0,end:f=0})=>{const h=t.lineForPosition(u,l),d=t.lineForPosition(f,l);return{range:{start:{line:h,character:u-(h===0?0:l[h-1])},end:{line:d,character:f-(d===0?0:l[d-1])}}}};return Nw}var Lw={},Fw={};const LZ=Yl(dFe);var rE={},Y5;function Mqe(){return Y5||(Y5=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.HttpOperationSecurityDeclarationTypes=void 0,function(e){e.None="none",e.Declared="declared",e.InheritedFromService="inheritedFromService"}(t.HttpOperationSecurityDeclarationTypes||(t.HttpOperationSecurityDeclarationTypes={})),t.HttpParamStyles=void 0,function(e){e.Unspecified="unspecified",e.Simple="simple",e.Matrix="matrix",e.Label="label",e.Form="form",e.CommaDelimited="commaDelimited",e.SpaceDelimited="spaceDelimited",e.PipeDelimited="pipeDelimited",e.DeepObject="deepObject",e.TabDelimited="tabDelimited"}(t.HttpParamStyles||(t.HttpParamStyles={})),t.DiagnosticSeverity=void 0,function(e){e[e.Error=0]="Error",e[e.Warning=1]="Warning",e[e.Information=2]="Information",e[e.Hint=3]="Hint"}(t.DiagnosticSeverity||(t.DiagnosticSeverity={})),t.NodeType=void 0,function(e){e.Article="article",e.HttpService="http_service",e.HttpServer="http_server",e.HttpOperation="http_operation",e.HttpCallback="http_callback",e.HttpWebhook="http_webhook",e.Model="model",e.Generic="generic",e.Unknown="unknown",e.TableOfContents="table_of_contents",e.SpectralRuleset="spectral_ruleset",e.Styleguide="styleguide",e.Image="image",e.StoplightResolutions="stoplight_resolutions",e.StoplightOverride="stoplight_override"}(t.NodeType||(t.NodeType={})),t.NodeFormat=void 0,function(e){e.Json="json",e.Markdown="markdown",e.Yaml="yaml",e.Javascript="javascript",e.Apng="apng",e.Avif="avif",e.Bmp="bmp",e.Gif="gif",e.Jpeg="jpeg",e.Png="png",e.Svg="svg",e.Webp="webp"}(t.NodeFormat||(t.NodeFormat={}))}(rE)),rE}var J5;function FZ(){if(J5)return Fw;J5=1,Object.defineProperty(Fw,"__esModule",{value:!0});const t=LZ,e=Mqe(),n=nR(),i=iR(),a=NZ(),o=aR(),r=Qg(),s=Eb();Fw.parseWithPointers=(q,F)=>{const S=d(q),D=n.load(q,Object.assign({},F,{ignoreDuplicateKeys:!0})),M={ast:D,lineMap:S,data:void 0,diagnostics:[],metadata:F,comments:{}};if(!D)return M;const C=L(F),H=new E(M.comments,E.mapComments(C.attachComments&&D.comments?D.comments:[],S),D,S,"#"),X={lineMap:S,diagnostics:M.diagnostics};return M.data=f(X,D,H,C),D.errors&&M.diagnostics.push(...g(D.errors,S)),M.diagnostics.length>0&&M.diagnostics.sort((ie,U)=>ie.range.start.line-U.range.start.line),Array.isArray(M.ast.errors)&&(M.ast.errors.length=0),M};const c=/~/g,l=/\//g;function u(q){return q.replace(c,"~0").replace(l,"~1")}const f=(q,F,S,D)=>{if(F)switch(F.kind){case r.Kind.MAP:{const M=S.enter(F),{lineMap:C,diagnostics:H}=q,{preserveKeyOrder:X,ignoreDuplicateKeys:ie,json:U,mergeKeys:R}=D,z=v(X),V=[],T=R,W=!U,le=!ie;for(const ve of F.mappings){if(!x(ve,C,H,W))continue;const ae=String(h(ve.key)),_e=M.enter(ve,u(ae));if((W||le)&&(!T||ae!=="<<"))if(V.includes(ae)){if(W)throw new Error("Duplicate YAML mapping key encountered");le&&H.push(j(ve.key,C,"duplicate key"))}else V.push(ae);if(T&&ae==="<<"){const he=b(f(q,ve.value,_e,D),X);Object.assign(z,he)}else z[ae]=f(q,ve.value,_e,D),X&&_(z,ae);_e.attachComments()}return M.attachComments(),z}case r.Kind.SEQ:{const M=S.enter(F),C=F.items.map((H,X)=>{if(H!==null){const ie=M.enter(H,X),U=f(q,H,ie,D);return ie.attachComments(),U}else return null});return M.attachComments(),C}case r.Kind.SCALAR:{const M=h(F);return!D.bigInt&&typeof M=="bigint"?Number(M):M}case r.Kind.ANCHOR_REF:return s.isObject(F.value)&&(F.value=a.dereferenceAnchor(F.value,F.referencesAnchor)),f(q,F.value,S,D);default:return null}return F};function h(q){switch(n.determineScalarType(q)){case r.ScalarType.null:return null;case r.ScalarType.string:return String(q.value);case r.ScalarType.bool:return n.parseYamlBoolean(q.value);case r.ScalarType.int:return n.parseYamlBigInteger(q.value);case r.ScalarType.float:return n.parseYamlFloat(q.value)}}const d=q=>{const F=[];let S=0;for(;S{const S=[];let D=-1,M=0;for(const C of q){const H={code:C.name,message:C.reason,severity:C.isWarning?e.DiagnosticSeverity.Warning:e.DiagnosticSeverity.Error,range:{start:{line:C.mark.line,character:C.mark.column},end:{line:C.mark.line,character:C.mark.toLineEnd?m(F,C.mark.line):C.mark.column}}};C.reason==="missed comma between flow collection entries"?D=D===-1?M:D:D!==-1&&(S[D].range.end=H.range.end,S[D].message="invalid mixed usage of block and flow styles",S.length=D+1,M=S.length,D=-1),S.push(H),M++}return S},b=(q,F)=>Array.isArray(q)?q.reduceRight(F?(D,M)=>{const C=Object.keys(M);Object.assign(D,M);for(let H=C.length-1;H>=0;H--)A(D,C[H]);return D}:(D,M)=>Object.assign(D,M),v(F)):typeof q!="object"||q===null?null:Object(q);function v(q){return q?t.default({}):{}}function P(q,F){if(!(F in q))return;const S=t.getOrder(q),D=S.indexOf(F);D!==-1&&S.splice(D,1)}function A(q,F){P(q,F),t.getOrder(q).unshift(F)}function _(q,F){P(q,F),t.getOrder(q).push(F)}function x(q,F,S,D){if(q.key.kind!==r.Kind.SCALAR)return D||S.push(N(q.key,F,"mapping key must be a string scalar",D)),!1;if(!D){const M=typeof h(q.key);M!=="string"&&S.push(N(q.key,F,`mapping key must be a string scalar rather than ${q.key.valueObject===null?"null":M}`,D))}return!0}function N(q,F,S,D){const M=j(q,F,S);return M.code="YAMLIncompatibleValue",M.severity=D?e.DiagnosticSeverity.Hint:e.DiagnosticSeverity.Warning,M}function j(q,F,S){return{code:"YAMLException",message:S,severity:e.DiagnosticSeverity.Error,path:i.buildJsonPath(q),range:I(F,q.startPosition,q.endPosition)}}function I(q,F,S){const D=o.lineForPosition(F,q),M=o.lineForPosition(S,q);return{start:{line:D,character:D===0?F:F-q[D-1]},end:{line:M,character:M===0?S:S-q[M-1]}}}class E{constructor(F,S,D,M,C){if(this.attachedComments=F,this.node=D,this.lineMap=M,this.pointer=C,S.length===0)this.comments=[];else{const H=this.getStartPosition(D),X=this.getEndPosition(D),ie=o.lineForPosition(H,this.lineMap),U=o.lineForPosition(X,this.lineMap),R=[];for(let z=S.length-1;z>=0;z--){const V=S[z];V.range.start.line>=ie&&V.range.end.line<=U&&(R.push(V),S.splice(z,1))}this.comments=R}}getStartPosition(F){return F.parent===null?0:F.kind===r.Kind.MAPPING?F.key.startPosition:F.startPosition}getEndPosition(F){switch(F.kind){case r.Kind.MAPPING:return F.value===null?F.endPosition:this.getEndPosition(F.value);case r.Kind.MAP:return F.mappings.length===0?F.endPosition:F.mappings[F.mappings.length-1].endPosition;case r.Kind.SEQ:{if(F.items.length===0)return F.endPosition;const S=F.items[F.items.length-1];return S===null?F.endPosition:S.endPosition}default:return F.endPosition}}static mapComments(F,S){return F.map(D=>({value:D.value,range:I(S,D.startPosition,D.endPosition),startPosition:D.startPosition,endPosition:D.endPosition}))}enter(F,S){return new E(this.attachedComments,this.comments,F,this.lineMap,S===void 0?this.pointer:`${this.pointer}/${S}`)}static isLeading(F,S){switch(F.kind){case r.Kind.MAP:return F.mappings.length===0||F.mappings[0].startPosition>S;case r.Kind.SEQ:{if(F.items.length===0)return!0;const D=F.items[0];return D===null||D.startPosition>S}case r.Kind.MAPPING:return F.value===null||F.value.startPosition>S;default:return!1}}static isTrailing(F,S){switch(F.kind){case r.Kind.MAP:return F.mappings.length>0&&S>F.mappings[F.mappings.length-1].endPosition;case r.Kind.SEQ:if(F.items.length===0)return!1;const D=F.items[F.items.length-1];return D!==null&&S>D.endPosition;case r.Kind.MAPPING:return F.value!==null&&S>F.value.endPosition;default:return!1}}static findBetween(F,S,D){switch(F.kind){case r.Kind.MAP:{let M;for(const C of F.mappings)if(S>C.startPosition)M=C.key.value;else if(M!==void 0&&C.startPosition>D)return[M,C.key.value];return null}case r.Kind.SEQ:{let M;for(let C=0;CH.startPosition)M=String(C);else if(M!==void 0&&H.startPosition>D)return[M,String(C)]}}return null}default:return null}}isBeforeEOL(F){return this.node.kind===r.Kind.SCALAR||this.node.kind===r.Kind.MAPPING&&F.range.end.line===o.lineForPosition(this.node.key.endPosition,this.lineMap)}attachComments(){if(this.comments.length===0)return;const F=this.attachedComments[this.pointer]=this.attachedComments[this.pointer]||[];for(const S of this.comments)if(this.isBeforeEOL(S))F.push({value:S.value,placement:"before-eol"});else if(E.isLeading(this.node,S.startPosition))F.push({value:S.value,placement:"leading"});else if(E.isTrailing(this.node,S.endPosition))F.push({value:S.value,placement:"trailing"});else{const D=E.findBetween(this.node,S.startPosition,S.endPosition);D!==null?F.push({value:S.value,placement:"between",between:D}):F.push({value:S.value,placement:"trailing"})}}}function L(q){return q===void 0?{attachComments:!1,preserveKeyOrder:!1,bigInt:!1,mergeKeys:!1,json:!0,ignoreDuplicateKeys:!1}:Object.assign({},q,{attachComments:q.attachComments===!0,preserveKeyOrder:q.preserveKeyOrder===!0,bigInt:q.bigInt===!0,mergeKeys:q.mergeKeys===!0,json:q.json!==!1,ignoreDuplicateKeys:q.ignoreDuplicateKeys!==!1})}return Fw}var Q5;function Rqe(){if(Q5)return Lw;Q5=1,Object.defineProperty(Lw,"__esModule",{value:!0});const t=FZ();return Lw.parse=e=>t.parseWithPointers(e).data,Lw}var qw={},Z5;function Nqe(){if(Z5)return qw;Z5=1,Object.defineProperty(qw,"__esModule",{value:!0});const t=nR();return qw.safeStringify=(e,n)=>typeof e=="string"?e:t.safeDump(e,n),qw}var nE={},X5;function Lqe(){return X5||(X5=1,function(t){Object.defineProperty(t,"__esModule",{value:!0});const e=LZ;t.KEYS=Symbol.for(e.ORDER_KEY_ID);const n={ownKeys(i){return t.KEYS in i?i[t.KEYS]:Reflect.ownKeys(i)}};t.trapAccess=i=>new Proxy(i,n)}(nE)),nE}(function(t){Object.defineProperty(t,"__esModule",{value:!0});const e=vr;e.__exportStar(iR(),t),e.__exportStar(NZ(),t),e.__exportStar(Tqe(),t),e.__exportStar(jqe(),t),e.__exportStar(aR(),t);var n=Rqe();t.parse=n.parse;var i=FZ();t.parseWithPointers=i.parseWithPointers,e.__exportStar(Nqe(),t),e.__exportStar(Qg(),t),e.__exportStar(Lqe(),t)})(MZ);(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.Yaml=t.parseYaml=void 0;const e=MZ;function n(a,o){return(0,e.getLocationForJsonPath)(a,o)}const i=a=>(0,e.parseWithPointers)(a,{ignoreDuplicateKeys:!1,mergeKeys:!0,preserveKeyOrder:!0,attachComments:!1});t.parseYaml=i,t.Yaml={parse:t.parseYaml,getLocationForJsonPath:n,trapAccess:e.trapAccess}})(jZ);var qZ={};Object.defineProperty(qZ,"__esModule",{value:!0});(function(t){Object.defineProperty(t,"__esModule",{value:!0});const e=vr;(0,e.__exportStar)(TZ,t),(0,e.__exportStar)(jZ,t),(0,e.__exportStar)(qZ,t)})(fh);var sR={},Za={},zZ={},U_={};Object.defineProperty(U_,"__esModule",{value:!0});U_.decodeSegmentFragment=void 0;const Fqe=Hr;function qqe(t){return typeof t!="string"?String(t):(0,Fqe.decodePointerFragment)(t)}U_.decodeSegmentFragment=qqe;var Ib={};Object.defineProperty(Ib,"__esModule",{value:!0});Ib.printError=void 0;const zqe=sr;function Uqe(t){return(0,zqe.isError)(t)?t.message:"unknown error"}Ib.printError=Uqe;var UZ={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.printPath=t.PrintStyle=void 0;const e=Hr;var n;(function(l){l.Dot="dot",l.Pointer="pointer",l.EscapedPointer="escapedPointer"})(n=t.PrintStyle||(t.PrintStyle={}));const i=l=>typeof l=="number"||!Number.isNaN(Number(l)),a=l=>/\s/.test(l),o=l=>typeof l=="number"?l:(0,e.decodePointerFragment)(l),r=l=>typeof l=="number"?`[${l}]`:l.length===0?"['']":a(l)?`['${l}']`:i(l)?`[${l}]`:null,s=l=>l.reduce((u,f,h)=>{var d;return`${u}${(d=r(f))!==null&&d!==void 0?d:`${h===0?"":"."}${f}`}`},""),c=(l,u)=>{switch(u){case n.Dot:return(0,e.decodePointerFragment)(s(l));case n.Pointer:return l.length===0?"#":`#/${(0,e.decodePointerFragment)(l.join("/"))}`;case n.EscapedPointer:return(0,e.pathToPointer)(l.map(o));default:return String(l)}};t.printPath=c})(UZ);var B_={};Object.defineProperty(B_,"__esModule",{value:!0});B_.printValue=void 0;const Bqe=sr,Vqe=Hr;function Wqe(t){return t===void 0?"undefined":(0,Bqe.isObject)(t)?Array.isArray(t)?"Array[]":t instanceof RegExp?String(t.source):!(0,Vqe.isPlainObject)(t)&&"constructor"in t&&typeof t.constructor.name=="string"?t.constructor.name:"Object{}":JSON.stringify(t)}B_.printValue=Wqe;var BZ={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.getClosestJsonPath=t.safePointerToPath=t.getEndRef=t.traverseObjUntilRef=t.isAbsoluteRef=t.startsWithProtocol=void 0;const e=Hr,n=Eh,i=sr,a=/^[a-z]+:\/\//i,o=f=>a.test(f);t.startsWithProtocol=o;const r=f=>(0,n.isAbsolute)(f)||(0,t.startsWithProtocol)(f);t.isAbsoluteRef=r;const s=(f,h)=>{let d=f;for(const m of h.slice()){if(!(0,i.isObject)(d))throw new TypeError("Segment is not a part of the object");if(m in d)d=d[m];else{if((0,e.hasRef)(d))return d.$ref;throw new Error("Segment is not a part of the object")}h.shift()}return(0,e.isPlainObject)(d)&&(0,e.hasRef)(d)&&Object.keys(d).length===1?d.$ref:null};t.traverseObjUntilRef=s;const c=(f,h)=>{for(;h in f;)h=f[h];return h};t.getEndRef=c;const l=f=>{const h=(0,e.extractPointerFromRef)(f);return h!==null?(0,e.pointerToPath)(h):[]};t.safePointerToPath=l;const u=(f,h)=>{const d=[];if(!(0,i.isObject)(f))return d;let m=f;for(const g of h){if(!(0,i.isObject)(m)||!(g in m))break;d.push(g),m=m[g]}return d};t.getClosestJsonPath=u})(BZ);(function(t){Object.defineProperty(t,"__esModule",{value:!0});const e=vr;(0,e.__exportStar)(U_,t),(0,e.__exportStar)(Ib,t),(0,e.__exportStar)(UZ,t),(0,e.__exportStar)(B_,t),(0,e.__exportStar)(BZ,t)})(zZ);var oR={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_REQUEST_OPTIONS=void 0;const n=(0,vr.__importDefault)(IQ);t.DEFAULT_REQUEST_OPTIONS={},t.default=async(i,a={})=>(0,n.default)(i,{...a,...t.DEFAULT_REQUEST_OPTIONS})})(oR);var vg={},V_={exports:{}};const{AbortController:VZ,AbortSignal:Hqe}=typeof self<"u"?self:typeof window<"u"?window:void 0;V_.exports=VZ;V_.exports.AbortSignal=Hqe;V_.exports.default=VZ;var Gqe=V_.exports;Object.defineProperty(vg,"__esModule",{value:!0});vg.readParsable=vg.readFile=void 0;const lR=vr,Kqe=Eh,Yqe=(0,lR.__importDefault)(Gqe),Jqe=(0,lR.__importStar)(xb),Qqe=sr,Zqe=(0,lR.__importDefault)(oR),WZ=Ib;async function HZ(t,e){if((0,Kqe.isURL)(t)){let n,i=null;try{const a={};if(a.agent=e.agent,e.timeout!==void 0){const o=new Yqe.default;i=setTimeout(()=>{o.abort()},e.timeout),a.signal=o.signal}if(n=await(0,Zqe.default)(t,a),!n.ok)throw new Error(n.statusText);return await n.text()}catch(a){throw(0,Qqe.isError)(a)&&a.name==="AbortError"?new Error("Timeout"):a}finally{i!==null&&clearTimeout(i)}}else try{return await new Promise((n,i)=>{Jqe.readFile(t,e.encoding,(a,o)=>{a!==null?i(a):n(o)})})}catch(n){throw new Error(`Could not read ${t}: ${(0,WZ.printError)(n)}`)}}vg.readFile=HZ;async function Xqe(t,e){try{return await HZ(t,e)}catch(n){throw new Error(`Could not parse ${t}: ${(0,WZ.printError)(n)}`)}}vg.readParsable=Xqe;(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_REQUEST_OPTIONS=t.fetch=void 0;const e=vr;(0,e.__exportStar)(zZ,t);var n=oR;Object.defineProperty(t,"fetch",{enumerable:!0,get:function(){return(0,e.__importDefault)(n).default}}),Object.defineProperty(t,"DEFAULT_REQUEST_OPTIONS",{enumerable:!0,get:function(){return n.DEFAULT_REQUEST_OPTIONS}}),(0,e.__exportStar)(vg,t)})(Za);var GZ={};Object.defineProperty(GZ,"__esModule",{value:!0});(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.createHttpAndFileResolver=t.ResolverDepGraph=t.Resolver=t.httpAndFileResolver=void 0;const e=vr,n=Oh,i=UM;Object.defineProperty(t,"Resolver",{enumerable:!0,get:function(){return i.Resolver}});const a=Za,o=L_();(0,e.__exportStar)(GZ,t),t.httpAndFileResolver=r(),t.ResolverDepGraph=o.DepGraph;function r(s){const c=(0,n.createResolveHttp)({...a.DEFAULT_REQUEST_OPTIONS,...s});return new i.Resolver({resolvers:{https:{resolve:c},http:{resolve:c},file:{resolve:n.resolveFile}}})}t.createHttpAndFileResolver=r})(sR);var Mo={},iE={},eB;function KZ(){return eB||(eB=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.formatResolverErrors=t.formatParserDiagnostics=t.prettyPrintResolverErrorMessage=t.getDiagnosticErrorMessage=void 0;const e=Db,n=sr,i=Zg(),a=f=>f.toUpperCase(),o=(f,h,d)=>`${h} ${d.toLowerCase()}`;function r(f){const h=c(f.path);let d=f.message.replace(/^[a-z]/,a);return f.code!=="YAMLException"&&(d=d.replace(/([a-z])([A-Z])/g,o)),h!==void 0&&(d=d.replace(/(Duplicate key)/,`$1: ${h}`)),d}t.getDiagnosticErrorMessage=r;const s=f=>f.replace(/^Error\s*:\s*/,"");t.prettyPrintResolverErrorMessage=s;const c=f=>{if(f!==void 0&&f.length>0)return f[f.length-1]};function l(f,h){return f.map(d=>{var m;return{...d,code:"parser",message:r(d),path:(m=d.path)!==null&&m!==void 0?m:[],...h!==null?{source:h}:null}})}t.formatParserDiagnostics=l;const u=(f,h)=>(0,n.uniqBy)(h,"message").map(d=>{var m;const g=[...d.path,"$ref"],b=(m=f.getRangeForJsonPath(g,!0))!==null&&m!==void 0?m:i.Document.DEFAULT_RANGE,v=d.uriStack.length>0?d.uriStack[d.uriStack.length-1]:f.source;return{code:"invalid-ref",path:g,message:(0,t.prettyPrintResolverErrorMessage)(d.message),severity:e.DiagnosticSeverity.Error,range:b,...v!==null?{source:v}:null}});t.formatResolverErrors=u}(iE)),iE}var tB;function Zg(){if(tB)return Mo;tB=1,Object.defineProperty(Mo,"__esModule",{value:!0}),Mo.isParsedResult=Mo.ParsedDocument=Mo.Document=Mo.normalizeSource=void 0;const t=Eh,e=KZ(),n=Za,i=Hr;function a(c){return c===void 0?null:c.length>0&&!(0,n.startsWithProtocol)(c)?(0,t.normalize)(c):c}Mo.normalizeSource=a;class o{constructor(l,u,f){this.input=l,this.parser=u,this.parserResult=u.parse(l),this.source=a(f),this.diagnostics=(0,e.formatParserDiagnostics)(this.parserResult.diagnostics,this.source)}getRangeForJsonPath(l,u){var f;return(f=this.parser.getLocationForJsonPath(this.parserResult,l,u))===null||f===void 0?void 0:f.range}trapAccess(l){return this.parser.trapAccess(l)}static get DEFAULT_RANGE(){return{start:{character:0,line:0},end:{character:0,line:0}}}get data(){return this.parserResult.data}}Mo.Document=o;class r{constructor(l){this.parserResult=l,this.source=a(l.source),this.diagnostics=(0,e.formatParserDiagnostics)(this.parserResult.parsed.diagnostics,this.source)}trapAccess(l){return l}getRangeForJsonPath(l,u){var f;return(f=this.parserResult.getLocationForJsonPath(this.parserResult.parsed,l,u))===null||f===void 0?void 0:f.range}get data(){return this.parserResult.parsed.data}}Mo.ParsedDocument=r;const s=c=>(0,i.isPlainObject)(c)&&(0,i.isPlainObject)(c.parsed)&&typeof c.getLocationForJsonPath=="function";return Mo.isParsedResult=s,Mo}var W_={};Object.defineProperty(W_,"__esModule",{value:!0});W_.DocumentInventory=void 0;const e4e=vr,zw=Hr,rB=Eh,t4e=sr,r4e=Zg(),nB=KZ(),iB=(0,e4e.__importStar)(fh),Nu=Za;class WP{constructor(e,n){this.document=e,this.resolver=n,this.diagnostics=[],this.parseResolveResult=o=>{const r=o.targetAuthority.href().replace(/\/$/,""),s=(0,rB.extname)(r),c=String(o.result),l=s===".json"?iB.Json:iB.Yaml,u=new r4e.Document(c,l,r);return o.result=u.data,u.diagnostics.length>0&&this.diagnostics.push(...(0,nB.formatParserDiagnostics)(u.diagnostics,u.source)),this.referencedDocuments[r]=u,Promise.resolve(o)},this.graph=null,this.errors=null;const i=n.uriCache,a=WP._cachedRemoteDocuments.get(i);a!==void 0?this.referencedDocuments=a:(this.referencedDocuments={},WP._cachedRemoteDocuments.set(i,this.referencedDocuments))}get source(){return this.document.source}get unresolved(){return this.document.data}get formats(){var e;return(e=this.document.formats)!==null&&e!==void 0?e:null}async resolve(){if(!(0,t4e.isObjectLike)(this.document.data)){this.graph=null,this.resolved=this.document.data,this.errors=null;return}const e=await this.resolver.resolve(this.document.data,{...this.document.source!==null?{baseUri:this.document.source}:null,parseResolveResult:this.parseResolveResult});this.graph=e.graph,this.resolved=e.result,this.errors=(0,nB.formatResolverErrors)(this.document,e.errors)}findAssociatedItemForPath(e,n){if(!n){const i=(0,Nu.getClosestJsonPath)(this.unresolved,e);return{document:this.document,path:i,missingPropertyPath:e}}try{const i=(0,Nu.getClosestJsonPath)(this.resolved,e);if((0,Nu.traverseObjUntilRef)(this.unresolved,i)===null)return{document:this.document,path:(0,Nu.getClosestJsonPath)(this.unresolved,e),missingPropertyPath:e};const o=i.length===0?[]:e.slice(e.lastIndexOf(i[i.length-1])+1);let{source:r}=this;if(r===null||this.graph===null)return null;let s=this.graph.getNodeData(r).refMap,c=this.document;const l=["#",...e.map(zw.encodePointerUriFragment).map(String)];let u="";for(const d of l)for(u.length>0&&(u+="/"),u+=d;u in s;){const m=s[u];if((0,zw.isLocalRef)(m))u=m;else{const g=(0,zw.extractSourceFromRef)(m);if(g===null)return{document:c,path:(0,Nu.getClosestJsonPath)(c.data,e),missingPropertyPath:e};r=(0,Nu.isAbsoluteRef)(g)?g:(0,rB.resolve)(r,"..",g);const b=r===this.document.source?this.document:this.referencedDocuments[r];if(b==null)return{document:c,path:(0,Nu.getClosestJsonPath)(c.data,e),missingPropertyPath:e};c=b,s=this.graph.getNodeData(r).refMap,u=m.indexOf("#")>=0?m.slice(m.indexOf("#")):"#"}}const f=(0,Nu.getClosestJsonPath)(c.data,this.convertRefMapKeyToPath(u));return{document:c,path:f,missingPropertyPath:[...f,...o]}}catch{return null}}convertRefMapKeyToPath(e){return e.startsWith("#/")&&(e=e.slice(2)),e.split("/").map(zw.decodePointerFragment)}}W_.DocumentInventory=WP;WP._cachedRemoteDocuments=new WeakMap;var YZ={},H_={},JZ={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.sortResults=t.compareResults=t.comparePosition=t.prepareResults=void 0;const e=u=>{let f=String(u.code);return u.path.length>0?f+=JSON.stringify(u.path):f+=JSON.stringify(u.range),u.source!==void 0&&(f+=u.source),u.message!==void 0&&(f+=u.message),f},n=u=>(0,t.sortResults)(i(u));t.prepareResults=n;const i=u=>{const f=new Set;return u.filter(h=>{const d=e(h);return f.has(d)?!1:(f.add(d),!0)})},a=(u,f)=>u===void 0&&f===void 0?0:u===void 0?-1:f===void 0?1:String(u).localeCompare(String(f),void 0,{numeric:!0}),o=(u,f)=>u===void 0&&f===void 0?0:u===void 0?-1:f===void 0?1:u.localeCompare(f),r=u=>u<0?-1:u>0?1:0,s=(u,f)=>{const h=u.line-f.line;if(h!==0)return r(h);const d=u.character-f.character;return r(d)};t.comparePosition=s;const c=(u,f)=>{const h=o(u.source,f.source);if(h!==0)return r(h);const d=(0,t.comparePosition)(u.range.start,f.range.start);if(d!==0)return d;const m=a(u.code,f.code);if(m!==0)return r(m);const g=u.path.join().localeCompare(f.path.join());return r(g)};t.compareResults=c;const l=u=>[...u].sort(t.compareResults);t.sortResults=l})(JZ);var G_={};class cR extends Error{constructor(e,{cause:n}={}){super(e),this.name=cR.name,n&&(this.cause=n),this.message=e}}const n4e=(t,e)=>{if(!t||!e||!(t instanceof Error)||!(e.prototype instanceof Error)&&e!==Error)return;const n=new Set;let i=t;for(;i&&!n.has(i);){if(n.add(i),i instanceof e)return i;i=K_(i)}},K_=t=>{if(!t)return;const e=t.cause;if(typeof e=="function"){const n=t.cause();return n instanceof Error?n:void 0}else return e instanceof Error?e:void 0},QZ=(t,e)=>{if(!(t instanceof Error))return"";const n=t.stack||"";if(e.has(t))return n+` -causes have become circular...`;const i=K_(t);return i?(e.add(t),n+` -caused by: `+QZ(i,e)):n},i4e=t=>QZ(t,new Set),ZZ=(t,e,n)=>{if(!(t instanceof Error))return"";const i=n?"":t.message||"";if(e.has(t))return i+": ...";const a=K_(t);if(a){e.add(t);const o=typeof t.cause=="function";return i+(o?"":": ")+ZZ(a,e,o)}else return i},a4e=t=>ZZ(t,new Set);var s4e={ErrorWithCause:cR,findCauseByReference:n4e,getErrorCause:K_,stackWithCauses:i4e,messageWithCauses:a4e},XZ={},Y_={};function Ml(t){"@babel/helpers - typeof";return Ml=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ml(t)}function eX(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o4e(t,e){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Yv(t,e,n){return rX()?Yv=Reflect.construct.bind():Yv=function(a,o,r){var s=[null];s.push.apply(s,o);var c=Function.bind.apply(a,s),l=new c;return r&&GP(l,r.prototype),l},Yv.apply(null,arguments)}function c4e(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function zC(t){var e=typeof Map=="function"?new Map:void 0;return zC=function(i){if(i===null||!c4e(i))return i;if(typeof i!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e<"u"){if(e.has(i))return e.get(i);e.set(i,a)}function a(){return Yv(i,arguments,HP(this).constructor)}return a.prototype=Object.create(i.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),GP(a,i)},zC(t)}function u4e(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function f4e(t,e){if(e&&(typeof e=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return u4e(t)}function p4e(t){var e=rX();return function(){var i=HP(t),a;if(e){var o=HP(this).constructor;a=Reflect.construct(i,arguments,o)}else a=i.apply(this,arguments);return f4e(this,a)}}function h4e(t){return d4e(t)||m4e(t)||nX(t)||y4e()}function d4e(t){if(Array.isArray(t))return UC(t)}function m4e(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function nX(t,e){if(t){if(typeof t=="string")return UC(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return UC(t,e)}}function UC(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(c){throw c},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,r=!1,s;return{s:function(){n=n.call(t)},n:function(){var c=n.next();return o=c.done,c},e:function(c){r=!0,s=c},f:function(){try{!o&&n.return!=null&&n.return()}finally{if(r)throw s}}}}var Fa=Object.prototype.hasOwnProperty;function tv(t,e){return t=t.slice(),t.push(e),t}function yd(t,e){return e=e.slice(),e.unshift(t),e}var v4e=function(t){l4e(n,t);var e=p4e(n);function n(i){var a;return eX(this,n),a=e.call(this,'JSONPath should not be called with "new" (it prevents return of (unwrapped) scalar values)'),a.avoidNew=!0,a.value=i,a.name="NewError",a}return tX(n)}(zC(Error));function Ir(t,e,n,i,a){if(!(this instanceof Ir))try{return new Ir(t,e,n,i,a)}catch(c){if(!c.avoidNew)throw c;return c.value}typeof t=="string"&&(a=i,i=n,n=e,e=t,t=null);var o=t&&Ml(t)==="object";if(t=t||{},this.json=t.json||n,this.path=t.path||e,this.resultType=t.resultType||"value",this.flatten=t.flatten||!1,this.wrap=Fa.call(t,"wrap")?t.wrap:!0,this.sandbox=t.sandbox||{},this.preventEval=t.preventEval||!1,this.parent=t.parent||null,this.parentProperty=t.parentProperty||null,this.callback=t.callback||i||null,this.otherTypeCallback=t.otherTypeCallback||a||function(){throw new TypeError("You must supply an otherTypeCallback callback option with the @other() operator.")},t.autostart!==!1){var r={path:o?t.path:e};o?"json"in t&&(r.json=t.json):r.json=n;var s=this.evaluate(r);if(!s||Ml(s)!=="object")throw new v4e(s);return s}}Ir.prototype.evaluate=function(t,e,n,i){var a=this,o=this.parent,r=this.parentProperty,s=this.flatten,c=this.wrap;if(this.currResultType=this.resultType,this.currPreventEval=this.preventEval,this.currSandbox=this.sandbox,n=n||this.callback,this.currOtherTypeCallback=i||this.otherTypeCallback,e=e||this.json,t=t||this.path,t&&Ml(t)==="object"&&!Array.isArray(t)){if(!t.path&&t.path!=="")throw new TypeError('You must supply a "path" property when providing an object argument to JSONPath.evaluate().');if(!Fa.call(t,"json"))throw new TypeError('You must supply a "json" property when providing an object argument to JSONPath.evaluate().');var l=t;e=l.json,s=Fa.call(t,"flatten")?t.flatten:s,this.currResultType=Fa.call(t,"resultType")?t.resultType:this.currResultType,this.currSandbox=Fa.call(t,"sandbox")?t.sandbox:this.currSandbox,c=Fa.call(t,"wrap")?t.wrap:c,this.currPreventEval=Fa.call(t,"preventEval")?t.preventEval:this.currPreventEval,n=Fa.call(t,"callback")?t.callback:n,this.currOtherTypeCallback=Fa.call(t,"otherTypeCallback")?t.otherTypeCallback:this.currOtherTypeCallback,o=Fa.call(t,"parent")?t.parent:o,r=Fa.call(t,"parentProperty")?t.parentProperty:r,t=t.path}if(o=o||null,r=r||null,Array.isArray(t)&&(t=Ir.toPathString(t)),!(!t&&t!==""||!e)){var u=Ir.toPathArray(t);u[0]==="$"&&u.length>1&&u.shift(),this._hasParentSelector=null;var f=this._trace(u,e,["$"],o,r,n).filter(function(h){return h&&!h.isParentSelector});return f.length?!c&&f.length===1&&!f[0].hasArrExpr?this._getPreferredOutput(f[0]):f.reduce(function(h,d){var m=a._getPreferredOutput(d);return s&&Array.isArray(m)?h=h.concat(m):h.push(m),h},[]):c?[]:void 0}};Ir.prototype._getPreferredOutput=function(t){var e=this.currResultType;switch(e){case"all":{var n=Array.isArray(t.path)?t.path:Ir.toPathArray(t.path);return t.pointer=Ir.toPointer(n),t.path=typeof t.path=="string"?t.path:Ir.toPathString(t.path),t}case"value":case"parent":case"parentProperty":return t[e];case"path":return Ir.toPathString(t[e]);case"pointer":return Ir.toPointer(t.path);default:throw new TypeError("Unknown result type")}};Ir.prototype._handleCallback=function(t,e,n){if(e){var i=this._getPreferredOutput(t);t.path=typeof t.path=="string"?t.path:Ir.toPathString(t.path),e(i,n,t)}};Ir.prototype._trace=function(t,e,n,i,a,o,r,s){var c=this,l;if(!t.length)return l={path:n,value:e,parent:i,parentProperty:a,hasArrExpr:r},this._handleCallback(l,o,"value"),l;var u=t[0],f=t.slice(1),h=[];function d(L){Array.isArray(L)?L.forEach(function(q){h.push(q)}):h.push(L)}if((typeof u!="string"||s)&&e&&Fa.call(e,u))d(this._trace(f,e[u],tv(n,u),e,u,o,r));else if(u==="*")this._walk(u,f,e,n,i,a,o,function(L,q,F,S,D,M,C,H){d(c._trace(yd(L,F),S,D,M,C,H,!0,!0))});else if(u==="..")d(this._trace(f,e,n,i,a,o,r)),this._walk(u,f,e,n,i,a,o,function(L,q,F,S,D,M,C,H){Ml(S[L])==="object"&&d(c._trace(yd(q,F),S[L],tv(D,L),S,L,H,!0))});else{if(u==="^")return this._hasParentSelector=!0,{path:n.slice(0,-1),expr:f,isParentSelector:!0};if(u==="~")return l={path:tv(n,u),value:a,parent:i,parentProperty:null},this._handleCallback(l,o,"property"),l;if(u==="$")d(this._trace(f,e,n,null,null,o,r));else if(/^(\x2D?[0-9]*):(\x2D?[0-9]*):?([0-9]*)$/.test(u))d(this._slice(u,f,e,n,i,a,o));else if(u.indexOf("?(")===0){if(this.currPreventEval)throw new Error("Eval [?(expr)] prevented in JSONPath expression.");this._walk(u,f,e,n,i,a,o,function(L,q,F,S,D,M,C,H){c._eval(q.replace(/^\?\(((?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*?)\)$/,"$1"),S[L],L,D,M,C)&&d(c._trace(yd(L,F),S,D,M,C,H,!0))})}else if(u[0]==="("){if(this.currPreventEval)throw new Error("Eval [(expr)] prevented in JSONPath expression.");d(this._trace(yd(this._eval(u,e,n[n.length-1],n.slice(0,-1),i,a),f),e,n,i,a,o,r))}else if(u[0]==="@"){var m=!1,g=u.slice(1,-2);switch(g){case"scalar":(!e||!["object","function"].includes(Ml(e)))&&(m=!0);break;case"boolean":case"string":case"undefined":case"function":Ml(e)===g&&(m=!0);break;case"integer":Number.isFinite(e)&&!(e%1)&&(m=!0);break;case"number":Number.isFinite(e)&&(m=!0);break;case"nonFinite":typeof e=="number"&&!Number.isFinite(e)&&(m=!0);break;case"object":e&&Ml(e)===g&&(m=!0);break;case"array":Array.isArray(e)&&(m=!0);break;case"other":m=this.currOtherTypeCallback(e,n,i,a);break;case"null":e===null&&(m=!0);break;default:throw new TypeError("Unknown value type "+g)}if(m)return l={path:n,value:e,parent:i,parentProperty:a},this._handleCallback(l,o,"value"),l}else if(u[0]==="`"&&e&&Fa.call(e,u.slice(1))){var b=u.slice(1);d(this._trace(f,e[b],tv(n,b),e,b,o,r,!0))}else if(u.includes(",")){var v=u.split(","),P=g4e(v),A;try{for(P.s();!(A=P.n()).done;){var _=A.value;d(this._trace(yd(_,f),e,n,i,a,o,!0))}}catch(L){P.e(L)}finally{P.f()}}else!s&&e&&Fa.call(e,u)&&d(this._trace(f,e[u],tv(n,u),e,u,o,r,!0))}if(this._hasParentSelector)for(var x=0;x-1?i.slice(0,c+1)+" return "+i.slice(c+1):" return "+i;return Yv(Function,a.concat([l])).apply(void 0,h4e(r))}}]),t}();Ir.prototype.vm={Script:b4e};const w4e=Object.freeze(Object.defineProperty({__proto__:null,JSONPath:Ir},Symbol.toStringTag,{value:"Module"})),$4e=Yl(w4e);Object.defineProperty(Y_,"__esModule",{value:!0});Y_.getLintTargets=void 0;const A4e=$4e,Uw=sr,S4e=(t,e)=>{const n=[];if((0,Uw.isObject)(t)&&typeof e=="string")if(e==="@key")for(const i of Object.keys(t))n.push({path:[i],value:i});else e.startsWith("$")?(0,A4e.JSONPath)({path:e,json:t,resultType:"all",callback(i){n.push({path:(0,Uw.toPath)(i.path.slice(1)),value:i.value})}}):n.push({path:(0,Uw.toPath)(e),value:(0,Uw.get)(t,e)});else n.push({path:[],value:t});return n.length===0&&n.push({path:[],value:void 0}),n};Y_.getLintTargets=S4e;var J_={},Q_={},uR={};class _4e{add(e,n,i){if(typeof arguments[0]!="string")for(let a in arguments[0])this.add(a,arguments[0][a],arguments[1]);else(Array.isArray(e)?e:[e]).forEach(function(a){this[a]=this[a]||[],n&&this[a][i?"unshift":"push"](n)},this)}run(e,n){this[e]=this[e]||[],this[e].forEach(function(i){i.call(n&&n.context?n.context:n,n)})}}class x4e{constructor(e){this.jsep=e,this.registered={}}register(...e){e.forEach(n=>{if(typeof n!="object"||!n.name||!n.init)throw new Error("Invalid JSEP plugin format");this.registered[n.name]||(n.init(this.jsep),this.registered[n.name]=n)})}}class Ie{static get version(){return"1.3.9"}static toString(){return"JavaScript Expression Parser (JSEP) v"+Ie.version}static addUnaryOp(e){return Ie.max_unop_len=Math.max(e.length,Ie.max_unop_len),Ie.unary_ops[e]=1,Ie}static addBinaryOp(e,n,i){return Ie.max_binop_len=Math.max(e.length,Ie.max_binop_len),Ie.binary_ops[e]=n,i?Ie.right_associative.add(e):Ie.right_associative.delete(e),Ie}static addIdentifierChar(e){return Ie.additional_identifier_chars.add(e),Ie}static addLiteral(e,n){return Ie.literals[e]=n,Ie}static removeUnaryOp(e){return delete Ie.unary_ops[e],e.length===Ie.max_unop_len&&(Ie.max_unop_len=Ie.getMaxKeyLen(Ie.unary_ops)),Ie}static removeAllUnaryOps(){return Ie.unary_ops={},Ie.max_unop_len=0,Ie}static removeIdentifierChar(e){return Ie.additional_identifier_chars.delete(e),Ie}static removeBinaryOp(e){return delete Ie.binary_ops[e],e.length===Ie.max_binop_len&&(Ie.max_binop_len=Ie.getMaxKeyLen(Ie.binary_ops)),Ie.right_associative.delete(e),Ie}static removeAllBinaryOps(){return Ie.binary_ops={},Ie.max_binop_len=0,Ie}static removeLiteral(e){return delete Ie.literals[e],Ie}static removeAllLiterals(){return Ie.literals={},Ie}get char(){return this.expr.charAt(this.index)}get code(){return this.expr.charCodeAt(this.index)}constructor(e){this.expr=e,this.index=0}static parse(e){return new Ie(e).parse()}static getMaxKeyLen(e){return Math.max(0,...Object.keys(e).map(n=>n.length))}static isDecimalDigit(e){return e>=48&&e<=57}static binaryPrecedence(e){return Ie.binary_ops[e]||0}static isIdentifierStart(e){return e>=65&&e<=90||e>=97&&e<=122||e>=128&&!Ie.binary_ops[String.fromCharCode(e)]||Ie.additional_identifier_chars.has(String.fromCharCode(e))}static isIdentifierPart(e){return Ie.isIdentifierStart(e)||Ie.isDecimalDigit(e)}throwError(e){const n=new Error(e+" at character "+this.index);throw n.index=this.index,n.description=e,n}runHook(e,n){if(Ie.hooks[e]){const i={context:this,node:n};return Ie.hooks.run(e,i),i.node}return n}searchHook(e){if(Ie.hooks[e]){const n={context:this};return Ie.hooks[e].find(function(i){return i.call(n.context,n),n.node}),n.node}}gobbleSpaces(){let e=this.code;for(;e===Ie.SPACE_CODE||e===Ie.TAB_CODE||e===Ie.LF_CODE||e===Ie.CR_CODE;)e=this.expr.charCodeAt(++this.index);this.runHook("gobble-spaces")}parse(){this.runHook("before-all");const e=this.gobbleExpressions(),n=e.length===1?e[0]:{type:Ie.COMPOUND,body:e};return this.runHook("after-all",n)}gobbleExpressions(e){let n=[],i,a;for(;this.index0;){if(Ie.binary_ops.hasOwnProperty(e)&&(!Ie.isIdentifierStart(this.code)||this.index+e.lengtho.right_a&&f.right_a?i>f.prec:i<=f.prec;for(;a.length>2&&u(a[a.length-2]);)s=a.pop(),n=a.pop().value,r=a.pop(),e={type:Ie.BINARY_EXP,operator:n,left:r,right:s},a.push(e);e=this.gobbleToken(),e||this.throwError("Expected expression after "+l),a.push(o,e)}for(c=a.length-1,e=a[c];c>1;)e={type:Ie.BINARY_EXP,operator:a[c-1].value,left:a[c-2],right:e},c-=2;return e}gobbleToken(){let e,n,i,a;if(this.gobbleSpaces(),a=this.searchHook("gobble-token"),a)return this.runHook("after-token",a);if(e=this.code,Ie.isDecimalDigit(e)||e===Ie.PERIOD_CODE)return this.gobbleNumericLiteral();if(e===Ie.SQUOTE_CODE||e===Ie.DQUOTE_CODE)a=this.gobbleStringLiteral();else if(e===Ie.OBRACK_CODE)a=this.gobbleArray();else{for(n=this.expr.substr(this.index,Ie.max_unop_len),i=n.length;i>0;){if(Ie.unary_ops.hasOwnProperty(n)&&(!Ie.isIdentifierStart(this.code)||this.index+n.length=n.length&&this.throwError("Unexpected token "+String.fromCharCode(e));break}else if(o===Ie.COMMA_CODE){if(this.index++,a++,a!==n.length){if(e===Ie.CPAREN_CODE)this.throwError("Unexpected token ,");else if(e===Ie.CBRACK_CODE)for(let r=n.length;r":7,"<=":7,">=":7,"<<":8,">>":8,">>>":8,"+":9,"-":9,"*":10,"/":10,"%":10},right_associative:new Set,additional_identifier_chars:new Set(["$","_"]),literals:{true:!0,false:!1,null:null},this_str:"this"});Ie.max_unop_len=Ie.getMaxKeyLen(Ie.unary_ops);Ie.max_binop_len=Ie.getMaxKeyLen(Ie.binary_ops);const KP=t=>new Ie(t).parse(),k4e=Object.getOwnPropertyNames(class{});Object.getOwnPropertyNames(Ie).filter(t=>!k4e.includes(t)&&KP[t]===void 0).forEach(t=>{KP[t]=Ie[t]});KP.Jsep=Ie;const O4e="ConditionalExpression";var E4e={name:"ternary",init(t){t.hooks.add("after-expression",function(n){if(n.node&&this.code===t.QUMARK_CODE){this.index++;const i=n.node,a=this.gobbleExpression();if(a||this.throwError("Expected expression"),this.gobbleSpaces(),this.code===t.COLON_CODE){this.index++;const o=this.gobbleExpression();if(o||this.throwError("Expected expression"),n.node={type:O4e,test:i,consequent:a,alternate:o},i.operator&&t.binary_ops[i.operator]<=.9){let r=i;for(;r.right.operator&&t.binary_ops[r.right.operator]<=.9;)r=r.right;n.node.test=r.right,r.right=n.node,n.node=i}}else this.throwError("Expected :")}})}};KP.plugins.register(E4e);var iX=KP,fR={};Object.defineProperty(fR,"__esModule",{value:!0});function Ji(t,e){switch(t.type){case"Program":return I4e(t,e);case"ExpressionStatement":return Ji(t.expression,e);case"MemberExpression":return C4e(t,e);case"LogicalExpression":return L4e(t,e);case"ConditionalExpression":return R4e(t,e);case"BinaryExpression":return N4e(t,e);case"UnaryExpression":return M4e(t,e);case"CallExpression":return T4e(t,e);case"NewExpression":return j4e(t,e);case"ArrayExpression":return F4e(t,e);case"ThisExpression":return e;case"Identifier":return q4e(t.name,e);case"Literal":return t.value;default:throw SyntaxError("Unexpected node")}}function I4e(t,e){if(t.body.length!==1)throw SyntaxError("Too complex expression");return Ji(t.body[0],e)}function C4e(t,e){const n=Ji(t.object,e),i=t.property.type==="Identifier"?t.property.name:Ji(t.property,e);return typeof n[i]=="function"?n[i].bind(n):n[i]}function T4e(t,e){return Reflect.apply(Ji(t.callee,e),null,t.arguments.map(n=>Ji(n,e)))}function j4e(t,e){return Reflect.construct(Ji(t.callee,e),t.arguments.map(n=>Ji(n,e)))}function M4e(t,e){if(!t.prefix||t.argument.type==="UnaryExpression")throw SyntaxError("Unexpected operator");return Function("v",`return ${t.operator}v`)(Ji(t.argument,e))}function R4e(t,e){return Function("t, c, a","return t ? c : a")(Ji(t.test,e),Ji(t.consequent,e),Ji(t.alternate,e))}function N4e(t,e){return aX(t,e)}function L4e(t,e){return aX(t,e)}function F4e(t,e){return t.elements.map(n=>Ji(n,e))}function aX(t,e){return Function("lhs, rhs",`return lhs ${t.operator} rhs`)(Ji(t.left,e),Ji(t.right,e))}function q4e(t,e){if(e===void 0||!(t in e))throw ReferenceError(`${t} is not defined`);return Reflect.get(e,t,e)}fR.default=Ji;Object.defineProperty(uR,"__esModule",{value:!0});var z4e=iX,U4e=fR;function B4e(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}var V4e=B4e(z4e);function W4e(t){try{return V4e.default(t)}catch(e){throw SyntaxError(e.message)}}var H4e=(t,e)=>{const n=typeof t=="object"?t:W4e(t);return U4e.default(n,Object.freeze(e))};uR.default=H4e;Object.defineProperty(Q_,"__esModule",{value:!0});Q_.Replacer=void 0;const G4e=vr,K4e=(0,G4e.__importDefault)(uR);class Y4e{constructor(e){this.regex=new RegExp(`#?${"{".repeat(e)}([^} -]+)${"}".repeat(e)}`,"g"),this.functions={}}addFunction(e,n){this.functions[e]=n}print(e,n){return e.replace(this.regex,(i,a,o)=>e[o]==="#"?String((0,K4e.default)(a,{...Object.entries(this.functions).reduce((s,[c,l])=>(s[c]=l.bind(n),s),{}),...n})):a in n?String(n[a]):"")}}Q_.Replacer=Y4e;Object.defineProperty(J_,"__esModule",{value:!0});J_.message=void 0;const J4e=Za,Q4e=Q_,BC=new Q4e.Replacer(2);BC.addFunction("print",function(t){if(typeof t!="string")return"";const{property:e,value:n}=this;switch(t){case"property":return e!==void 0&&e!==""?`"${e}" property `:"The document ";case"value":return(0,J4e.printValue)(n);default:return t in this&&this[t]!==null?String(this[t]):""}});J_.message=BC.print.bind(BC);(function(t){Object.defineProperty(t,"__esModule",{value:!0});const e=vr;(0,e.__exportStar)(Y_,t),(0,e.__exportStar)(J_,t)})(XZ);Object.defineProperty(G_,"__esModule",{value:!0});G_.lintNode=void 0;const id=Za,sX=sr,Z4e=s4e,X4e=Zg(),VC=XZ,e3e=(t,e,n)=>{var i;const a=e.path.length>0&&e.path[0]==="$"?e.path.slice(1):e.path.slice(),o={document:t.documentInventory.document,documentInventory:t.documentInventory,rule:n,path:a};for(const r of n.then){const s=(0,VC.getLintTargets)(e.value,r.field);for(const c of s){c.path.length>0?o.path=[...a,...c.path]:o.path=a;let l;try{l=r.function(c.value,(i=r.functionOptions)!==null&&i!==void 0?i:null,o)}catch(u){throw new Z4e.ErrorWithCause(`Function "${r.function.name}" threw an exception${(0,sX.isError)(u)?`: ${u.message}`:""}`,{cause:u})}if(l!==void 0)if("then"in l){const u={...o};t.promises.push(l.then(f=>f===void 0?void 0:aB(t,u,f)))}else aB(t,o,l)}}};G_.lintNode=e3e;function aB(t,e,n){var i,a,o,r,s;const{rule:c,path:l}=e;for(const u of n){const f=((i=u.path)!==null&&i!==void 0?i:l).map(id.decodeSegmentFragment),h=t.documentInventory.findAssociatedItemForPath(f,c.resolved),d=(a=h==null?void 0:h.path)!==null&&a!==void 0?a:(0,id.getClosestJsonPath)(t.documentInventory.resolved,f),m=h==null?void 0:h.document.source,g=(o=h==null?void 0:h.document)!==null&&o!==void 0?o:t.documentInventory.document,b=(r=g.getRangeForJsonPath(d,!0))!==null&&r!==void 0?r:X4e.Document.DEFAULT_RANGE,v=d.length===0?g.data:(0,sX.get)(g.data,d),P={property:(h==null?void 0:h.missingPropertyPath)!==void 0&&h.missingPropertyPath.length>d.length?(0,id.printPath)(h.missingPropertyPath.slice(d.length-1),id.PrintStyle.Dot):d.length>0?d[d.length-1]:"",error:u.message,path:(0,id.printPath)(d,id.PrintStyle.EscapedPointer),description:c.description,value:v},A=(0,VC.message)(u.message,P);P.error=A;const _=m!=null?c.getSeverityForSource(m,d):c.severity;_!==-1&&t.results.push({code:c.name,message:(c.message===null?(s=c.description)!==null&&s!==void 0?s:A:(0,VC.message)(c.message,P)).trim(),path:d,severity:_,...m!==null?{source:m}:null,range:b})}}var pR={},oX={},xs={};Object.defineProperty(xs,"__esModule",{value:!0});function t3e(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function r3e(t,e){var n=hR(t,e,"get");return lX(t,n)}function n3e(t,e,n){var i=hR(t,e,"set");return cX(t,i,n),n}function hR(t,e,n){if(!e.has(t))throw new TypeError("attempted to "+n+" private field on non-instance");return e.get(t)}function lX(t,e){return e.get?e.get.call(t):e.value}function cX(t,e,n){if(e.set)e.set.call(t,n);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=n}}xs.classApplyDescriptorGet=lX;xs.classApplyDescriptorSet=cX;xs.classExtractFieldDescriptor=hR;xs.classPrivateFieldGet=r3e;xs.classPrivateFieldSet=n3e;xs.defineProperty=t3e;var uX={},_t={};Object.defineProperty(_t,"__esModule",{value:!0});function i3e(t){return{type:"Program",body:t}}function a3e(t,e){return{type:"BlockStatement",body:t,directives:e}}function s3e(t){return{type:"ExpressionStatement",expression:t}}function o3e(t){switch(typeof t){case"number":return pX(t);case"string":return vS(t);case"boolean":return fX(t)}}function vS(t){return{type:"StringLiteral",value:t}}function fX(t){return{type:"BooleanLiteral",value:t}}function pX(t){return{type:"NumericLiteral",value:t}}function l3e(){return{type:"NullLiteral",value:null}}function c3e(t,e=""){return{type:"RegExpLiteral",pattern:t,flags:e}}function hX(t){return{type:"Identifier",name:t}}function u3e(t,e,n){return{type:"LogicalExpression",operator:t,left:e,right:n}}function f3e(t,e,n){return{type:"ConditionalExpression",test:t,consequent:e,alternate:n}}function p3e(t,e,n){return{type:"IfStatement",test:t,consequent:e,alternate:n}}function h3e(t,e,n){return{type:"BinaryExpression",operator:t,left:e,right:n}}function d3e(t,e,n){let i=n;return(n.type==="NumericLiteral"||n.type==="StringLiteral"&&Number.isSafeInteger(Number(n.value)))&&(i=vS(String(n.value))),{type:"BinaryExpression",operator:t,left:i===n?e:dX(hX("String"),[e]),right:i}}function m3e(t,e,n=!0){return{type:"UnaryExpression",operator:t,argument:e,prefix:n}}function y3e(t,e,n=!1,i=null){return{type:"MemberExpression",object:t,property:e,computed:n,optional:i}}function g3e(t,e,n){return{type:"AssignmentExpression",operator:t,left:e,right:n}}function dX(t,e){return{type:"CallExpression",callee:t,arguments:e}}function v3e(t,e,n){return{type:"FunctionDeclaration",id:t,params:e,body:n}}function P3e(t){return{type:"ReturnStatement",argument:t}}function b3e(t){return{type:"SequenceExpression",expressions:t}}function w3e(t,e,n,i){return{type:"ForOfStatement",left:t,right:e,body:n,await:i}}function $3e(t){return{type:"ArrayExpression",elements:t}}function A3e(t){return{type:"ObjectExpression",properties:t}}function S3e(t,e,n,i,a=!1,o=!1,r=!1){return{type:"ObjectMethod",kind:t,key:e,params:n,body:i,computed:a,generator:o,async:r}}function _3e(t,e,n=!1,i=!1,a=null){return{type:"ObjectProperty",key:t,value:e,computed:n,shorthand:i,decorators:a}}function x3e(t,e){return{type:"VariableDeclaration",kind:t,declarations:e}}function D3e(t,e){return{type:"VariableDeclarator",id:t,init:e}}function k3e(t,e){return{type:"NewExpression",callee:t,arguments:e}}function O3e(t,e){return{type:"ImportDeclaration",specifiers:t,source:e}}function E3e(t,e){return{type:"ImportSpecifier",local:t,imported:e}}function I3e(t){return{type:"ExportDefaultDeclaration",declaration:t}}function C3e(t,e,n=!1){return{type:"ArrowFunctionExpression",params:t,body:e,async:n}}function T3e(t,e=null,n=null){return{type:"TryStatement",block:t,handler:e,finalizer:n}}function j3e(t,e=!1){return{type:"TemplateElement",value:t,tail:e}}function M3e(t,e){return{type:"TemplateLiteral",quasis:t,expressions:e}}_t.arrayExpression=$3e;_t.arrowFunctionExpression=C3e;_t.assignmentExpression=g3e;_t.binaryExpression=h3e;_t.blockStatement=a3e;_t.booleanLiteral=fX;_t.callExpression=dX;_t.conditionalExpression=f3e;_t.exportDefaultDeclaration=I3e;_t.expressionStatement=s3e;_t.forOfStatement=w3e;_t.functionDeclaration=v3e;_t.identifier=hX;_t.ifStatement=p3e;_t.importDeclaration=O3e;_t.importSpecifier=E3e;_t.literal=o3e;_t.logicalExpression=u3e;_t.memberExpression=y3e;_t.newExpression=k3e;_t.nullLiteral=l3e;_t.numericLiteral=pX;_t.objectExpression=A3e;_t.objectMethod=S3e;_t.objectProperty=_3e;_t.program=i3e;_t.regExpLiteral=c3e;_t.returnStatement=P3e;_t.safeBinaryExpression=d3e;_t.sequenceExpression=b3e;_t.stringLiteral=vS;_t.templateElement=j3e;_t.templateLiteral=M3e;_t.tryStatement=T3e;_t.unaryExpression=m3e;_t.variableDeclaration=x3e;_t.variableDeclarator=D3e;var mX={},yX={},gu={},Ds={};(function(t){Object.defineProperty(t,"__esModule",{value:!0});var e=_t;const n=e.identifier("scope");var i={_:n,bail:e.memberExpression(n,e.identifier("bail")),callbacks:e.memberExpression(n,e.identifier("callbacks")),depth:e.memberExpression(n,e.identifier("depth")),destroy:e.memberExpression(n,e.identifier("destroy")),emit:e.memberExpression(n,e.identifier("emit")),fork:e.memberExpression(n,e.identifier("fork")),path:e.memberExpression(n,e.identifier("path")),property:e.memberExpression(n,e.identifier("property")),sandbox:e.memberExpression(n,e.identifier("sandbox")),traverse:e.memberExpression(n,e.identifier("traverse")),value:e.memberExpression(n,e.identifier("value"))};t.default=i})(Ds);(function(t){Object.defineProperty(t,"__esModule",{value:!0});var e=_t,n=Ds;function i(a,{parents:o,keyed:r}){return e.expressionStatement(e.callExpression(n.default.emit,[e.stringLiteral(a),e.numericLiteral(o),e.booleanLiteral(r)]))}t.default=i})(gu);var Z_={};(function(t){Object.defineProperty(t,"__esModule",{value:!0});var e=_t,n=Ds,i={at:e.memberExpression(n.default.sandbox,e.identifier("at")),index:e.memberExpression(n.default.sandbox,e.identifier("index")),parent:e.memberExpression(n.default.sandbox,e.identifier("parent")),parentProperty:e.memberExpression(n.default.sandbox,e.identifier("parentProperty")),parentValue:e.memberExpression(n.default.sandbox,e.identifier("parentValue")),path:e.memberExpression(n.default.sandbox,e.identifier("path")),property:e.memberExpression(n.default.sandbox,e.identifier("property")),root:e.memberExpression(n.default.sandbox,e.identifier("root")),value:e.memberExpression(n.default.sandbox,e.identifier("value"))};t.default=i})(Z_);(function(t){Object.defineProperty(t,"__esModule",{value:!0});var e=_t,n=gu,i=Z_;const a=e.identifier("isObject"),o=e.ifStatement(e.unaryExpression("!",e.callExpression(a,[i.default.value])),e.returnStatement()),r=n.default("$..",{keyed:!1,parents:0});var s=(c,l,u)=>c.length!==1||c[0].type!=="AllParentExpression"?!1:(l.addRuntimeDependency(a.name),l.push(e.blockStatement([o,n.default(u.id,u.iterator.modifiers)]),"tree-method"),l.push(e.stringLiteral(u.id),"traverse"),l.push(r,"body"),!0);t.default=s})(yX);var gX={},ks={};Object.defineProperty(ks,"__esModule",{value:!0});function R3e(t){return t.type==="MemberExpression"}function N3e(t){return t.type==="ScriptFilterExpression"}function L3e(t){return t.type==="KeyExpression"||t.type==="ParentExpression"}function F3e(t){return t.type==="WildcardExpression"}function q3e(t){return t.deep}ks.isDeep=q3e;ks.isMemberExpression=R3e;ks.isModifierExpression=L3e;ks.isScriptFilterExpression=N3e;ks.isWildcardExpression=F3e;(function(t){Object.defineProperty(t,"__esModule",{value:!0});var e=_t,n=ks,i=gu,a=Ds,o=(r,s,c)=>r.length!==1||!n.isDeep(r[0])||!n.isMemberExpression(r[0])?!1:(s.push(e.blockStatement([e.ifStatement(e.safeBinaryExpression("!==",a.default.property,e.stringLiteral(r[0].value)),e.returnStatement()),i.default(c.id,c.iterator.modifiers)]),"tree-method"),s.push(e.stringLiteral(c.id),"traverse"),!0);t.default=o})(gX);var vX={};(function(t){Object.defineProperty(t,"__esModule",{value:!0});var e=_t,n=ks,i=gu,a=(o,r,s)=>o.length!==1||!n.isWildcardExpression(o[0])||!n.isDeep(o[0])?!1:(r.push(e.blockStatement([i.default(s.id,s.iterator.modifiers)]),"tree-method"),r.push(e.stringLiteral(s.id),"traverse"),!0);t.default=a})(vX);var PX={},dR={},X_={};(function(t){Object.defineProperty(t,"__esModule",{value:!0});var e=Ds,n=[e.default._];t.default=n})(X_);var Xg={};(function(t){Object.defineProperty(t,"__esModule",{value:!0});var e=_t,n={pos:e.identifier("pos"),shorthands:e.identifier("shorthands"),tree:e.identifier("tree")};t.default=n})(Xg);(function(t){Object.defineProperty(t,"__esModule",{value:!0});var e=_t,n=X_,i=Xg;function a(o){const r=e.stringLiteral(o);return e.expressionStatement(e.callExpression(e.memberExpression(i.default.tree,r,!0),n.default))}t.default=a})(dR);(function(t){Object.defineProperty(t,"__esModule",{value:!0});var e=_t,n=ks,i=gu,a=Z_,o=Ds,r=dR;const s=e.identifier("value"),c=e.identifier("isObject"),l=e.identifier("get"),u=e.ifStatement(e.unaryExpression("!",e.callExpression(c,[s])),e.returnStatement()),f=e.ifStatement(e.binaryExpression("===",o.default._,e.nullLiteral()),e.returnStatement());function h(m){return e.literal(m.value)}var d=(m,g,b)=>{if(!m.every(n.isMemberExpression)||m.some(n.isDeep))return!1;const v=e.variableDeclaration("const",[e.variableDeclarator(s,m.slice(0,-1).reduce((P,A)=>g.format==="ES2018"?(P.arguments[1].elements.push(e.literal(A.value)),P):e.memberExpression(P,e.literal(A.value),!0,!0),g.format==="ES2018"&&m.length>0?e.callExpression(e.identifier("get"),[a.default.root,e.arrayExpression([])]):a.default.root))]);return g.addRuntimeDependency(c.name),g.format==="ES2018"&&g.addRuntimeDependency(l.name),g.pushAll([[e.blockStatement([v,u,e.expressionStatement(e.assignmentExpression("=",o.default._,e.callExpression(o.default.fork,[e.arrayExpression(m.map(h))]))),f,i.default(b.id,b.iterator.modifiers)]),"tree-method"],[r.default(b.id),"body"]]),!0};t.default=d})(PX);var bX={},ex={};const sB=47,z3e=92;var U3e={name:"regex",init(t){t.hooks.add("gobble-token",function(n){if(this.code===sB){const i=++this.index;let a=!1;for(;this.index=97&&c<=122||c>=65&&c<=90||c>=48&&c<=57)r+=this.char;else break}let s;try{s=new RegExp(o,r)}catch(c){this.throwError(c.message)}return n.node={type:t.LITERAL,value:s,raw:this.expr.slice(i-1,this.index)},n.node=this.gobbleTokenProperty(n.node),n.node}this.code===t.OBRACK_CODE?a=!0:a&&this.code===t.CBRACK_CODE&&(a=!1),this.index+=this.code===z3e?2:1}this.throwError("Unclosed Regex")}})}};const B3e=Object.freeze(Object.defineProperty({__proto__:null,default:U3e},Symbol.toStringTag,{value:"Module"})),V3e=Yl(B3e),W3e="ConditionalExpression";var H3e={name:"ternary",init(t){t.hooks.add("after-expression",function(n){if(n.node&&this.code===t.QUMARK_CODE){this.index++;const i=n.node,a=this.gobbleExpression();if(a||this.throwError("Expected expression"),this.gobbleSpaces(),this.code===t.COLON_CODE){this.index++;const o=this.gobbleExpression();if(o||this.throwError("Expected expression"),n.node={type:W3e,test:i,consequent:a,alternate:o},i.operator&&t.binary_ops[i.operator]<=.9){let r=i;for(;r.right.operator&&t.binary_ops[r.right.operator]<=.9;)r=r.right;n.node.test=r.right,r.right=n.node,n.node=i}}else this.throwError("Expected :")}})}};const G3e=Object.freeze(Object.defineProperty({__proto__:null,default:H3e},Symbol.toStringTag,{value:"Module"})),K3e=Yl(G3e);(function(t){Object.defineProperty(t,"__esModule",{value:!0});var e=V3e,n=K3e,i=iX;function a(l){return l&&typeof l=="object"&&"default"in l?l:{default:l}}var o=a(e),r=a(n),s=a(i);s.default.addIdentifierChar("@"),s.default.addUnaryOp("void"),s.default.addBinaryOp("in",12),s.default.addBinaryOp("~=",20),s.default.plugins.register(o.default,r.default);var c=l=>s.default.parse(l);t.default=c})(ex);var vu={};Object.defineProperty(vu,"__esModule",{value:!0});var Y3e=ex,Re=_t,Di=Xg,ri=Z_,En=Ds;function WC(t,{deep:e,value:n}){if(t.feedback.bailed)return Re.safeBinaryExpression("!==",En.default.property,Re.literal(n));if(t.state.inverted)return Re.safeBinaryExpression("!==",t.state.pos===0?En.default.property:Re.memberExpression(En.default.path,Re.binaryExpression("-",En.default.depth,Re.numericLiteral(Math.abs(t.state.pos))),!0),Re.literal(n));if(e){var i;const r=t.nextNode===null||t.nextNode==="KeyExpression";(i=t.feedback).mutatesPos||(i.mutatesPos=!r);const s=Re.sequenceExpression([Re.assignmentExpression("=",Di.default.pos,r?Re.conditionalExpression(Re.safeBinaryExpression("!==",En.default.property,Re.literal(n)),Re.numericLiteral(-1),En.default.depth):Re.callExpression(Re.memberExpression(En.default.path,Re.identifier("indexOf")),[Re.literal(n),t.state.pos===0?Di.default.pos:Re.binaryExpression("+",Di.default.pos,Re.numericLiteral(1))])),Re.binaryExpression("===",Di.default.pos,Re.numericLiteral(-1))]);return r?Re.logicalExpression("||",Re.binaryExpression("<",En.default.depth,t.state.pos===0?Di.default.pos:Re.binaryExpression("+",Di.default.pos,Re.numericLiteral(t.state.pos))),s):s}let a;!t.feedback.fixed&&t.state.absolutePos!==0&&(a=Re.binaryExpression("<",En.default.depth,t.state.pos===0?Di.default.pos:Re.binaryExpression("+",Di.default.pos,Re.numericLiteral(t.state.pos))));const o=Re.safeBinaryExpression("!==",Re.memberExpression(En.default.path,t.state.pos===0?Re.numericLiteral(0):t.feedback.fixed?Re.numericLiteral(t.state.pos):Re.binaryExpression("+",Di.default.pos,Re.numericLiteral(t.state.pos)),!0),Re.literal(n));return a!==void 0?Re.logicalExpression("||",a,o):o}function J3e(t,e){return e.value.slice(1).reduce((n,i)=>Re.logicalExpression("&&",n,WC(t,{type:"MemberExpression",value:i,deep:e.deep})),WC(t,{type:"MemberExpression",value:e.value[0],deep:e.deep}))}const oB=Re.identifier("inBounds");function Q3e(t,e,n){const i=t.state.inverted?Re.binaryExpression("-",En.default.depth,Re.numericLiteral(t.state.pos)):t.state.pos===0?Re.numericLiteral(0):t.feedback.fixed?Re.numericLiteral(t.state.pos):Re.binaryExpression("+",Di.default.pos,Re.numericLiteral(t.state.pos)),a=t.feedback.bailed?En.default.property:Re.memberExpression(En.default.path,i,!0),o=Re.binaryExpression("!==",Re.unaryExpression("typeof",a),Re.stringLiteral("number"));return e.value.some(s=>Number.isFinite(s)&&s<0)?(n.addRuntimeDependency(oB.name),Re.binaryExpression("||",o,Re.unaryExpression("!",Re.callExpression(oB,[t.state.absolutePos===0?Vi(ri.default.value,t.state.absolutePos-2):Vi(ri.default.value,t.state.absolutePos),Re.memberExpression(En.default.path,t.feedback.bailed?Re.binaryExpression("-",Re.memberExpression(En.default.path,Re.identifier("length")),Re.numericLiteral(1)):i,!0),...e.value.map(s=>Re.numericLiteral(s))])))):e.value.reduce((s,c,l)=>{if(l===0&&c===0||l===1&&!Number.isFinite(c)||l===2&&c===1)return s;const u=l===0?"<":l===1?">=":"%",f=Re.binaryExpression(u,a,Re.numericLiteral(Number(c)));return Re.logicalExpression("||",s,u==="%"?Re.logicalExpression("&&",Re.binaryExpression("!==",a,Re.numericLiteral(e.value[0])),Re.binaryExpression("!==",f,Re.numericLiteral(e.value[0]))):f)},o)}function Z3e(t){return t.feedback.bailed?Re.booleanLiteral(!1):t.nextNode===null&&!t.feedback.fixed?Re.sequenceExpression([Re.assignmentExpression("=",Di.default.pos,Re.conditionalExpression(Re.binaryExpression("<",En.default.depth,Re.numericLiteral(t.state.pos)),Re.numericLiteral(-1),En.default.depth)),Re.binaryExpression("===",Di.default.pos,Re.numericLiteral(-1))]):null}function X3e(t,{deep:e,value:n},i){var a;const o=Y3e.default(n);pp(o);const r=Re.unaryExpression("!",Lo(i,o,t.state.fixed&&t.state.pos>0&&t.nextNode!==null?t.state.pos+1:t.state.inverted&&t.state.pos!==0?t.state.pos-1:0));if(t.feedback.bailed||!e||t.state.inverted)return r;(a=t.feedback).mutatesPos||(a.mutatesPos=t.nextNode!==null&&t.nextNode!=="KeyExpression");const s=Re.sequenceExpression([Re.assignmentExpression("=",Di.default.pos,Re.conditionalExpression(r,Re.numericLiteral(-1),En.default.depth)),Re.binaryExpression("===",Di.default.pos,Re.numericLiteral(-1))]);return t.state.pos===0?s:Re.logicalExpression("||",Re.binaryExpression("<",En.default.depth,t.state.pos===0?Di.default.pos:Re.binaryExpression("+",Di.default.pos,Re.numericLiteral(t.state.pos))),s)}function Lo(t,e,n){switch(e.type){case"LogicalExpression":case"BinaryExpression":if(e.operator==="in")e.operator="===",e.left=Re.callExpression(Re.memberExpression(e.right,Re.identifier("includes")),[Lo(t,e.left,n)]),e.right=Re.booleanLiteral(!0);else if(e.operator==="~="){if(e.operator="===",e.right.type!=="Literal")throw SyntaxError("Expected string");e.left=Re.callExpression(Re.memberExpression(Re.regExpLiteral(e.right.value,""),Re.identifier("test")),[Lo(t,e.left,n)]),e.right=Re.booleanLiteral(!0)}else e.left=Lo(t,e.left,n),e.right=Lo(t,e.right,n),pp(e.left),pp(e.right);break;case"UnaryExpression":return e.argument=Lo(t,e.argument,n),pp(e.argument),e;case"MemberExpression":e.object=Lo(t,e.object,n),pp(e.object),e.property=Lo(t,e.property,n),e.computed&&pp(e.property);break;case"CallExpression":if(e.callee.type==="Identifier"&&e.callee.name.startsWith("@"))return lB(t,e.callee.name,n);e.callee=Lo(t,e.callee,n),e.arguments=e.arguments.map(i=>Lo(t,i,n)),e.callee.type==="MemberExpression"&&e.callee.object===ri.default.property&&e.callee.property.name in String.prototype&&(e.callee.object=Re.callExpression(Re.identifier("String"),[e.callee.object])),pp(e.callee);break;case"Identifier":if(e.name.startsWith("@"))return lB(t,e.name,n);if(e.name==="undefined")return Re.unaryExpression("void",Re.numericLiteral(0));if(e.name==="index")return ri.default.index;break}return e}function lB(t,e,n){switch(e){case"@":return Vi(ri.default.value,n);case"@root":return Vi(ri.default.root,n);case"@path":return Vi(ri.default.path,n);case"@property":return Vi(ri.default.property,n);case"@parent":return Vi(ri.default.parentValue,n);case"@parentProperty":return Vi(ri.default.parentProperty,n);case"@string":case"@number":case"@boolean":return Re.binaryExpression("===",Re.unaryExpression("typeof",Vi(ri.default.value,n)),Re.stringLiteral(e.slice(1)));case"@scalar":return Re.logicalExpression("||",Re.binaryExpression("===",Vi(ri.default.value,n),Re.nullLiteral()),Re.binaryExpression("!==",Re.unaryExpression("typeof",Vi(ri.default.value,n)),Re.stringLiteral("object")));case"@array":return Re.callExpression(Re.memberExpression(Re.identifier("Array"),Re.identifier("isArray")),[Vi(ri.default.value,n)]);case"@null":return Re.binaryExpression("===",Vi(ri.default.value,n),Re.nullLiteral());case"@object":return Re.logicalExpression("&&",Re.binaryExpression("!==",Vi(ri.default.value,n),Re.nullLiteral()),Re.binaryExpression("===",Re.unaryExpression("typeof",Vi(ri.default.value,n)),Re.stringLiteral("object")));case"@integer":return Re.callExpression(Re.memberExpression(Re.identifier("Number"),Re.identifier("isInteger")),[Vi(ri.default.value,n)]);default:if(e.startsWith("@@")){const i=e.slice(2);return t.attachCustomShorthand(i),Re.callExpression(Re.memberExpression(Di.default.shorthands,Re.identifier(i)),[En.default._])}throw new SyntaxError(`Unsupported shorthand '${e}'`)}}const e9e=[En.default._.name,"index"];function pp(t){if(t.type==="Identifier"&&!e9e.includes(t.name))throw ReferenceError(`'${t.name}' is not defined`)}function Vi(t,e){return t.type==="MemberExpression"&&e!==0?{...t,object:Re.callExpression(ri.default.at,[Re.numericLiteral(e)])}:t}vu.generateFilterScriptExpression=X3e;vu.generateMemberExpression=WC;vu.generateMultipleMemberExpression=J3e;vu.generateSliceExpression=Q3e;vu.generateWildcardExpression=Z3e;vu.rewriteESTree=Lo;(function(t){Object.defineProperty(t,"__esModule",{value:!0});var e=ex,n=_t,i=vu,a=ks,o=gu,r=Ds;const s=n.ifStatement(n.binaryExpression("!==",r.default.depth,n.numericLiteral(0)),n.returnStatement());var c=(l,u,f)=>{if(l.length!==1||!a.isScriptFilterExpression(l[0]))return!1;const h=n.unaryExpression("!",i.rewriteESTree(u,e.default(l[0].value),0),!0);if(u.pushAll([[n.blockStatement([...a.isDeep(l[0])?[]:[s],n.ifStatement(h,n.returnStatement()),o.default(f.id,f.iterator.modifiers)]),"tree-method"],[n.stringLiteral(f.id),"traverse"]]),!a.isDeep(l[0])){var d;(d=u.traversalZones.create())===null||d===void 0||d.resize().attach()}return!0};t.default=c})(bX);var wX={};(function(t){Object.defineProperty(t,"__esModule",{value:!0});var e=gu;const n=e.default("$",{keyed:!1,parents:0});var i=(a,o)=>a.length>0?!1:(o.push(n,"body"),!0);t.default=i})(wX);var $X={};(function(t){Object.defineProperty(t,"__esModule",{value:!0});var e=_t,n=ks,i=gu,a=Ds;const o=e.ifStatement(e.binaryExpression("!==",a.default.depth,e.numericLiteral(0)),e.returnStatement());var r=(s,c,l)=>{var u;return s.length!==1||!n.isWildcardExpression(s[0])||n.isDeep(s[0])?!1:(c.push(e.blockStatement([o,i.default(l.id,l.iterator.modifiers)]),"tree-method"),c.push(e.stringLiteral(l.id),"traverse"),(u=c.traversalZones.create())===null||u===void 0||u.resize().attach(),!0)};t.default=r})($X);(function(t){Object.defineProperty(t,"__esModule",{value:!0});var e=yX,n=gX,i=vX,a=PX,o=bX,r=wX,s=$X,c=[r.default,o.default,n.default,i.default,s.default,a.default,e.default];t.default=c})(mX);var mR={};(function(t){Object.defineProperty(t,"__esModule",{value:!0});var e=xs,n=ks;let i;function a(s){let c=!1;for(let l=0;l1}else c=!0}}return!1}var o=new WeakMap;i=Symbol.iterator;class r{constructor(c){e.defineProperty(this,"nodes",void 0),o.set(this,{writable:!0,value:void 0}),this.modifiers=r.trim(c),this.nodes=r.compact(c),e.classPrivateFieldSet(this,o,-1),this.feedback=r.analyze(this.nodes,this.modifiers.keyed||this.modifiers.parents>0),this.length=this.nodes.length,this.state={absolutePos:-1,fixed:!0,inverted:!1,pos:-1},this.feedback.fixed&&this.modifiers.parents>this.length&&(this.length=-1)}get nextNode(){return e.classPrivateFieldGet(this,o)+10&&n.isModifierExpression(c[c.length-1]);)switch(c.pop().type){case"KeyExpression":l.keyed=!0,l.parents=0;break;case"ParentExpression":l.parents++;break}return l}static analyze(c){const l={bailed:a(c),fixed:!0,inverseAt:-1};if(l.bailed)return l.fixed=!1,l;let u=-1;for(let f=0;f1&&u!==-1&&u":9,"<=":9,">=":9,in:9,instanceof:9,"<<":10,">>":10,">>>":10,"+":11,"-":11,"*":12,"%":12,"/":12,"**":13},Ys=17;Yo.NEEDS_PARENTHESES=Ys;var xX={ArrayExpression:20,TaggedTemplateExpression:20,ThisExpression:20,Identifier:20,PrivateIdentifier:20,Literal:18,TemplateLiteral:20,Super:20,SequenceExpression:20,MemberExpression:19,ChainExpression:19,CallExpression:19,NewExpression:19,ArrowFunctionExpression:Ys,ClassExpression:Ys,FunctionExpression:Ys,ObjectExpression:Ys,UpdateExpression:16,UnaryExpression:15,AwaitExpression:15,BinaryExpression:14,LogicalExpression:13,ConditionalExpression:4,AssignmentExpression:3,YieldExpression:2,RestElement:1};Yo.EXPRESSIONS_PRECEDENCE=xX;function ad(t,e){var n=t.generator;if(t.write("("),e!=null&&e.length>0){n[e[0].type](e[0],t);for(var i=e.length,a=1;a0){t.write(i);for(var r=1;r0){n.VariableDeclarator(i[0],t);for(var o=1;o0){n.write(a),o&&e.comments!=null&&sa(n,e.comments,r,a);for(var c=s.length,l=0;l0){for(;r0&&n.write(", ");var s=i[r],c=s.type[6];if(c==="D")n.write(s.local.name,s),r++;else if(c==="N")n.write("* as "+s.local.name,s),r++;else break}if(r0){n.write(" with { ");for(var f=0;f0)for(var o=0;;){var r=i[o],s=r.local.name;if(n.write(s,r),s!==r.exported.name&&n.write(" as "+r.exported.name),++o0){n.write(" with { ");for(var c=0;c0){n.write(" with { ");for(var i=0;i "),e.body.type[0]==="O"?(n.write("("),this.ObjectExpression(e.body,n),n.write(")")):this[e.body.type](e.body,n)},ThisExpression:function(e,n){n.write("this",e)},Super:function(e,n){n.write("super",e)},RestElement:fB=function(e,n){n.write("..."),this[e.argument.type](e.argument,n)},SpreadElement:fB,YieldExpression:function(e,n){n.write(e.delegate?"yield*":"yield"),e.argument&&(n.write(" "),this[e.argument.type](e.argument,n))},AwaitExpression:function(e,n){n.write("await ",e),Vw(n,e.argument,e)},TemplateLiteral:function(e,n){var i=e.quasis,a=e.expressions;n.write("`");for(var o=a.length,r=0;r0)for(var i=e.elements,a=i.length,o=0;;){var r=i[o];if(r!=null&&this[r.type](r,n),++o0){n.write(a),o&&e.comments!=null&&sa(n,e.comments,r,a);for(var s=","+a,c=e.properties,l=c.length,u=0;;){var f=c[u];if(o&&f.comments!=null&&sa(n,f.comments,r,a),n.write(r),this[f.type](f,n),++u0)for(var i=e.properties,a=i.length,o=0;this[i[o].type](i[o],n),++o1||o[0]==="U"&&(o[1]==="n"||o[1]==="p")&&a.prefix&&a.operator[0]===i&&(i==="+"||i==="-"))&&n.write(" "),r?(n.write(i.length>1?" (":"("),this[o](a,n),n.write(")")):this[o](a,n)}else this[e.argument.type](e.argument,n),n.write(e.operator)},UpdateExpression:function(e,n){e.prefix?(n.write(e.operator),this[e.argument.type](e.argument,n)):(this[e.argument.type](e.argument,n),n.write(e.operator))},AssignmentExpression:function(e,n){this[e.left.type](e.left,n),n.write(" "+e.operator+" "),this[e.right.type](e.right,n)},AssignmentPattern:function(e,n){this[e.left.type](e.left,n),n.write(" = "),this[e.right.type](e.right,n)},BinaryExpression:pB=function(e,n){var i=e.operator==="in";i&&n.write("("),Vw(n,e.left,e,!1),n.write(" "+e.operator+" "),Vw(n,e.right,e,!0),i&&n.write(")")},LogicalExpression:pB,ConditionalExpression:function(e,n){var i=e.test,a=n.expressionsPrecedence[i.type];a===Ys||a<=n.expressionsPrecedence.ConditionalExpression?(n.write("("),this[i.type](i,n),n.write(")")):this[i.type](i,n),n.write(" ? "),this[e.consequent.type](e.consequent,n),n.write(" : "),this[e.alternate.type](e.alternate,n)},NewExpression:function(e,n){n.write("new ");var i=n.expressionsPrecedence[e.callee.type];i===Ys||i0&&(this.lineEndSize>0&&(f.length===1?n[u-1]===f:n.endsWith(f))?(this.line+=this.lineEndSize,this.column=0):this.column+=u)}},{key:"toString",value:function(){return this.output}}]),t}();function u9e(t,e){var n=new c9e(e);return n.generator[t.type](t,n),n.output}(function(t){Object.defineProperty(t,"__esModule",{value:!0});var e=Yo;function n(r){if(r&&r.__esModule)return r;var s=Object.create(null);return r&&Object.keys(r).forEach(function(c){if(c!=="default"){var l=Object.getOwnPropertyDescriptor(r,c);Object.defineProperty(s,c,l.get?l:{enumerable:!0,get:function(){return r[c]}})}}),s.default=r,Object.freeze(s)}var i=n(e);const a={...i.baseGenerator,BooleanLiteral(r,s){s.write(`${r.value}`,r)},NullLiteral(r,s){s.write("null",r)},NumericLiteral(r,s){s.write(r.value,r)},ObjectMethod(r,s){const{key:c,type:l,...u}=r;return this.ObjectProperty({key:r.key,value:{type:"FunctionExpression",...u}},s)},ObjectProperty(r,s){return this.Property({...r,kind:"init"},s)},RegExpLiteral(r,s){s.write(`/${r.pattern}/${r.flags}`,r)},StringLiteral(r,s){s.write(JSON.stringify(r.value),r)}};function o(r){return i.generate(r,{generator:a})}t.default=o})(_X);var kX={};(function(t){Object.defineProperty(t,"__esModule",{value:!0});var e=_t,n=Ds;function i(a,o){const r=e.identifier("path");return e.forOfStatement(e.variableDeclaration("const",[e.variableDeclarator(r)]),e.arrayExpression(o.map(e.stringLiteral)),e.blockStatement([e.callExpression(a,[e.identifier("input"),r,e.memberExpression(n.default.callbacks,r,!0)])]))}t.default=i})(kX);var OX={},Ih={};(function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(n){return typeof n=="object"&&n!==null}t.default=e})(Ih);var gR={};(function(t){Object.defineProperty(t,"__esModule",{value:!0});var e=Ih,n;function i(o){return e.default(o)&&typeof o[Symbol.iterator]=="function"}var a=(n=globalThis.AggregateError)!==null&&n!==void 0?n:class extends Error{constructor(r,s=""){if(super(s),!Array.isArray(r)&&!i(r))throw new TypeError(`${r} is not an iterable`);this.errors=[...r]}};t.default=a})(gR);var EX={};(function(t){Object.defineProperty(t,"__esModule",{value:!0});var e=_t;function n(i){switch(typeof i){case"boolean":return e.booleanLiteral(i);case"string":return e.stringLiteral(i);case"number":return e.numericLiteral(i);case"object":return i===null?e.nullLiteral():Array.isArray(i)?e.arrayExpression(i.map(n)):e.objectExpression(Object.keys(i).map(a=>e.objectProperty(e.stringLiteral(a),n(i[a]))))}}t.default=n})(EX);(function(t){Object.defineProperty(t,"__esModule",{value:!0});var e=xs,n=Ih,i=_t,a=EX,o=new WeakMap,r=new WeakMap;class s{constructor(){o.set(this,{writable:!0,value:!1}),r.set(this,{writable:!0,value:[]})}get root(){if(e.classPrivateFieldGet(this,o)||e.classPrivateFieldGet(this,r).length===0)return null;const b=i.identifier("zones");return i.variableDeclaration("const",[i.variableDeclarator(b,a.default(m(e.classPrivateFieldGet(this,r))))])}destroy(){e.classPrivateFieldSet(this,o,!0)}attach(b){e.classPrivateFieldGet(this,r).push(b)}create(){return e.classPrivateFieldGet(this,o)?null:new f(this)}}var c=new WeakMap,l=new WeakMap,u=new WeakMap;class f{constructor(b){c.set(this,{writable:!0,value:void 0}),l.set(this,{writable:!0,value:void 0}),u.set(this,{writable:!0,value:void 0}),e.classPrivateFieldSet(this,c,b),this.root={},e.classPrivateFieldSet(this,l,[this.root]),e.classPrivateFieldSet(this,u,new Map)}attach(){e.classPrivateFieldGet(this,c).attach(this.root),e.classPrivateFieldGet(this,u).clear()}expand(b){let v=0;for(const P of e.classPrivateFieldGet(this,l))if(P!==null){if(b==="**"){const A=e.classPrivateFieldGet(this,u).get(P);if(A!==void 0&&"*"in A){delete A["*"],A["**"]=null;continue}P[b]=null}else P[b]={},e.classPrivateFieldGet(this,u).set(P[b],P);e.classPrivateFieldGet(this,l)[v++]=P[b]}return this}expandMultiple(b){const v=e.classPrivateFieldGet(this,l)[0];if(v===null)return this;let P=0;for(const A of b)v[A]=A==="**"?null:{},e.classPrivateFieldGet(this,l).lengthObject.assign(b,g[v]),{})}function d(g,b){if("*"in b){const v=h(g);d(v,h(b)),g["*"]="*"in v?{"*":v["*"]}:v}else for(const v of Object.keys(b))v in g?n.default(b[v])&&d(g[v],b[v]):g[v]=b[v]}function m(g){const b=g[0];for(let v=1;vj.key.value===N)}push(N,j){switch(j){case"tree-method":e.classPrivateFieldGet(this,d).properties.push(i.objectMethod("method",i.stringLiteral(this.ctx.id),r.default,N));break;case"program":e.classPrivateFieldGet(this,b).has(N)||e.classPrivateFieldGet(this,b).add(N);break;case"body":e.classPrivateFieldGet(this,v).has(N)||e.classPrivateFieldGet(this,v).add(N);break;case"traverse":e.classPrivateFieldGet(this,P).add(l.default(N.value));break}}pushAll(N){for(const j of N)this.push(...j)}toString(){var N;const j=this.traversalZones.root;return a.default(i.program([i.importDeclaration([...e.classPrivateFieldGet(this,g)].map(I=>i.importSpecifier(i.identifier(I),i.identifier(I))),i.stringLiteral(`${(N=this.npmProvider)!==null&&N!==void 0?N:""}nimma/legacy/runtime`)),...e.classPrivateFieldGet(this,b),j,e.classPrivateFieldGet(this,d).properties.length===0?null:i.variableDeclaration("const",[i.variableDeclarator(s.default.tree,e.classPrivateFieldGet(this,d))]),e.classPrivateFieldGet(this,m).properties.length===0?null:i.variableDeclaration("const",[i.variableDeclarator(s.default.shorthands,e.classPrivateFieldGet(this,m))]),i.exportDefaultDeclaration(i.functionDeclaration(null,f,i.blockStatement([h,i.tryStatement(i.blockStatement([...e.classPrivateFieldGet(this,v),e.classPrivateFieldGet(this,P).size===0?null:i.expressionStatement(i.callExpression(c.default.traverse,[i.arrowFunctionExpression([],i.blockStatement(Array.from(e.classPrivateFieldGet(this,P)))),j===null?i.nullLiteral():j.declarations[0].id]))].filter(Boolean)),null,i.blockStatement([i.expressionStatement(i.callExpression(c.default.destroy,[]))]))].filter(Boolean))))].filter(Boolean)))}}t.default=_})(SX);(function(t){Object.defineProperty(t,"__esModule",{value:!0});var e=_t,n=mX,i=ks,a=mR,o=AX,r=gu,s=X_,c=Xg,l=Ds,u=SX,f=vu;const h=e.variableDeclaration("let",[e.variableDeclarator(c.default.pos,e.numericLiteral(0))]);function d(m,g){const b=new u.default(g),v=new Map,P=new Map;e:for(const[x,N]of m){const j=new a.default(N);if(j.length===-1)continue;const I=JSON.stringify(j.nodes),E=v.get(I);if(E!==void 0){var A,_;(A=(_=P.get(E))===null||_===void 0?void 0:_.push(x))!==null&&A!==void 0||P.set(E,[x]);let C=b.getMethodByHash(E).body.body;j.feedback.bailed&&(C=C[0].expression.arguments[1].body.body),C.push(r.default(x,j.modifiers));continue}else v.set(I,x);(j.feedback.bailed||N.length>0&&i.isDeep(N[0]))&&b.traversalZones.destroy();const L={id:x,iterator:j};b.ctx=L;for(const M of n.default)if(M(N,b,L))continue e;const q=j.feedback.bailed?[]:[e.ifStatement(e.binaryExpression(j.feedback.fixed?"!==":"<",l.default.depth,e.numericLiteral(j.length-1)),e.returnStatement())].concat(j.feedback.fixed?[]:h),F=j.feedback.bailed?null:b.traversalZones.create(),S=j.feedback.inverseAt;for(const M of j){(i.isDeep(M)||S===j.state.absolutePos)&&(F==null||F.allIn());let C;switch(M.type){case"MemberExpression":C=f.generateMemberExpression(j,M),F==null||F.expand(M.value);break;case"MultipleMemberExpression":C=f.generateMultipleMemberExpression(j,M),F==null||F.expandMultiple(M.value);break;case"SliceExpression":C=f.generateSliceExpression(j,M,b),F==null||F.resize();break;case"ScriptFilterExpression":C=f.generateFilterScriptExpression(j,M,b),F==null||F.resize();break;case"WildcardExpression":if(C=f.generateWildcardExpression(j),F==null||F.resize(),C===null)continue;break}j.feedback.bailed?q.push(e.objectExpression([e.objectProperty(e.identifier("fn"),e.arrowFunctionExpression([l.default._],C)),e.objectProperty(e.identifier("deep"),e.booleanLiteral(M.deep))])):q.push(e.ifStatement(C,e.returnStatement()))}!j.feedback.fixed&&!j.feedback.bailed&&!j.state.inverted&&q.push(e.ifStatement(e.binaryExpression("!==",l.default.depth,j.state.pos===0?c.default.pos:e.binaryExpression("+",c.default.pos,e.numericLiteral(j.state.pos))),e.returnStatement()));const D=j.feedback.bailed?"body":"traverse";j.feedback.bailed?q.splice(0,q.length,e.expressionStatement(e.callExpression(l.default.bail,[e.stringLiteral(x),e.arrowFunctionExpression([l.default._],e.blockStatement([e.expressionStatement(r.default(L.id,j.modifiers).expression)])),e.arrayExpression([...q])]))):q.push(r.default(L.id,j.modifiers)),D==="body"?b.push(e.expressionStatement(e.callExpression(e.memberExpression(c.default.tree,e.stringLiteral(x),!0),s.default)),D):b.push(e.stringLiteral(x),D),o.default(q,j),b.push(e.blockStatement(q),"tree-method"),F==null||F.attach()}return b}t.default=d})(uX);var e0={},IX={};(function(t){Object.defineProperty(t,"__esModule",{value:!0});var e=Ih;function n(i,a){if(a.length===0||!e.default(i))return i;let o=i;for(const r of a.slice(0,a.length-1))if(o=o[r],!e.default(o))return;return o[a[a.length-1]]}t.default=n})(IX);var CX={};(function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(n,i,a,o,r){const s=a<0?Math.max(0,a+n.length):Math.min(n.length,a),c=o<0?Math.max(0,o+n.length):Math.min(n.length,o);return i>=s&&i0&&(i+a)%r===0)}t.default=e})(CX);var TX={},jX={},MX={},vR={};(function(t){Object.defineProperty(t,"__esModule",{value:!0});class e extends Error{constructor(i,a){super(i),a!==void 0&&"cause"in a&&(this.cause=a.cause)}}t.default=e})(vR);(function(t){Object.defineProperty(t,"__esModule",{value:!0});var e=vR;class n extends e.default{}t.default=n})(MX);(function(t){Object.defineProperty(t,"__esModule",{value:!0});var e=MX;function n(o){return typeof o=="string"||typeof o=="number"?JSON.stringify(o):"unknown"}function i(o){return o instanceof Error?`${o.constructor.name}(${n(o.message)})`:n(o)}function a(o,r){const s={};for(const c of Object.keys(o)){const l=o[c];s[c]=(...u)=>{try{l(...u)}catch(f){const h=`${l.name||c} threw: ${i(f)}`;r.push(new e.default(h,{cause:f}))}}}return s}t.default=a})(jX);var PR={};Object.defineProperty(PR,"__esModule",{value:!0});var wr=xs,f9e=Ih;function p9e(t,e){return t+`[${typeof e=="string"?`'${e}'`:e}]`}function h9e(t){return`$${t.reduce(p9e,"")}`}var La=new WeakMap,yc=new WeakMap,Lu=new WeakMap,sE=new WeakMap;class bR{constructor(e,n,i=null){sE.set(this,{get:d9e,set:void 0}),La.set(this,{writable:!0,value:void 0}),yc.set(this,{writable:!0,value:void 0}),Lu.set(this,{writable:!0,value:void 0}),this.root=n,wr.classPrivateFieldSet(this,yc,e),wr.classPrivateFieldSet(this,La,i??[[0,n]]),wr.classPrivateFieldSet(this,Lu,void 0)}get path(){return h9e(wr.classPrivateFieldGet(this,yc))}get depth(){return wr.classPrivateFieldGet(this,yc).length-1}get value(){var e;return wr.classPrivateFieldGet(this,Lu)!==void 0?wr.classPrivateFieldGet(this,Lu):(e=wr.classPrivateFieldGet(this,Lu))!==null&&e!==void 0?e:wr.classPrivateFieldSet(this,Lu,wr.classPrivateFieldGet(this,La)[wr.classPrivateFieldGet(this,La).length-1][1])}get property(){return m9e(wr.classPrivateFieldGet(this,yc),this.depth)}get parentValue(){var e;return(e=wr.classPrivateFieldGet(this,sE))===null||e===void 0?void 0:e[1]}get parentProperty(){var e;return wr.classPrivateFieldGet(this,yc)[(e=wr.classPrivateFieldGet(this,sE))===null||e===void 0?void 0:e[0]]}destroy(){wr.classPrivateFieldGet(this,La).length=0}push(){const e=this.property!==null&&f9e.default(this.value)?this.value[this.property]:null;return wr.classPrivateFieldGet(this,La).push([wr.classPrivateFieldGet(this,yc).length,e]),wr.classPrivateFieldSet(this,Lu,e),this}pop(){const e=Math.max(0,wr.classPrivateFieldGet(this,yc).length+1);for(;wr.classPrivateFieldGet(this,La).length>e;)wr.classPrivateFieldGet(this,La).pop();return wr.classPrivateFieldSet(this,Lu,void 0),this}at(e){if(Math.abs(e)>wr.classPrivateFieldGet(this,La).length)return null;const n=(e<0?wr.classPrivateFieldGet(this,La).length:0)+e,i=wr.classPrivateFieldGet(this,La).slice(0,n+1);return new bR(wr.classPrivateFieldGet(this,yc).slice(0,i[i.length-1][0]),i[i.length-1][1],i)}}function d9e(){if(!(wr.classPrivateFieldGet(this,La).length<3))return wr.classPrivateFieldGet(this,La)[wr.classPrivateFieldGet(this,La).length-3]}function m9e(t,e){return e>=0&&t.length>e?t[e]:null}PR.Sandbox=bR;var Cb={};Object.defineProperty(Cb,"__esModule",{value:!0});var gd=Ih;function mB(t,e,n,i,a){const o=e[t],r=n.enter(t),s=a!==null&&a.length>0&&!a[0].fn(n);(a===null||a.length===1&&s)&&i(n),gd.default(o)&&(a===null?Vp(o,n,i,a):a.length>0&&(s&&Vp(o,n,i,a.slice(1)),a[0].deep&&(n.exit(r),n.enter(t),Vp(o,n,i,a)))),n.exit(r)}function Vp(t,e,n,i){if(Array.isArray(t))for(let a=0;af;)this.path.pop();return this.sandbox=this.sandbox.pop(),this.path.length}fork(u){const f=new c(this.root,this.callbacks,this);for(const h of u)if(f.enter(h),f.value===void 0)return null;return f}traverse(u,f){f!==null?o.zonedTraverse.call(this,u,f):o.traverse.call(this,u)}bail(u,f,h){const d=this.fork(this.path);o.bailedTraverse.call(d,f,h)}emit(u,f,h){var d;const m=this.callbacks[u];if(f===0&&!h)return void m(e.classPrivateFieldGet(this,s));if(f!==0&&f>this.depth+1)return;const g=f===0?e.classPrivateFieldGet(this,s):{path:e.classPrivateFieldGet(this,s).path.slice(0,Math.max(0,e.classPrivateFieldGet(this,s).path.length-f)),value:((d=this.sandbox.at(-f-1))!==null&&d!==void 0?d:this.sandbox.at(0)).value};m(h?{path:g.path,value:g.path.length===0?void 0:g.path[g.path.length-1]}:g)}destroy(){if(this.path.length=0,this.sandbox.destroy(),this.sandbox=null,this.errors.length>0)throw new n.default(this.errors,"Error running Nimma")}}t.default=c})(TX);Object.defineProperty(e0,"__esModule",{value:!0});var P9e=IX,b9e=CX,w9e=Ih,$9e=TX;e0.get=P9e.default;e0.inBounds=b9e.default;e0.isObject=w9e.default;e0.Scope=$9e.default;var LX={};(function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(){try{return Function("a","a?.b")({}),"ES2021"}catch{return"ES2018"}}t.default=e})(LX);var FX={},qX={},zX={};(function(t){Object.defineProperty(t,"__esModule",{value:!0});var e=vR;class n extends e.default{constructor(a,o,r){super(a,r),this.input=o}}t.default=n})(zX);var tx={};Object.defineProperty(tx,"__esModule",{value:!0});function A9e(t,e){function n(){this.constructor=t}n.prototype=e.prototype,t.prototype=new n}function ph(t,e,n,i){var a=Error.call(this,t);return Object.setPrototypeOf&&Object.setPrototypeOf(a,ph.prototype),a.expected=e,a.found=n,a.location=i,a.name="SyntaxError",a}A9e(ph,Error);function oE(t,e,n){return n=n||" ",t.length>e?t:(e-=t.length,n+=n.repeat(e),t+n.slice(0,e))}ph.prototype.format=function(t){var e="Error: "+this.message;if(this.location){var n=null,i;for(i=0;i `+o+` -`+s+` | -`+a.line+" | "+c+` -`+s+" | "+oE("",a.column-1)+oE("",l-a.column,"^")}else e+=` - at `+o}return e};ph.buildMessage=function(t,e){var n={literal:function(l){return'"'+a(l.text)+'"'},class:function(l){var u=l.parts.map(function(f){return Array.isArray(f)?o(f[0])+"-"+o(f[1]):o(f)});return"["+(l.inverted?"^":"")+u+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(l){return l.description}};function i(l){return l.charCodeAt(0).toString(16).toUpperCase()}function a(l){return l.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(u){return"\\x0"+i(u)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(u){return"\\x"+i(u)})}function o(l){return l.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(u){return"\\x0"+i(u)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(u){return"\\x"+i(u)})}function r(l){return n[l.type](l)}function s(l){var u=l.map(r),f,h;if(u.sort(),u.length>0){for(f=1,h=1;f!|&+~%\^*\/;\-[\]]/,ie=Te("$",!1),U=Te("[",!1),R=Te("]",!1),z=Te(",",!1),V=Te("..",!1),T=Te("(",!1),W=Te(")",!1),le=Te("?(",!1),ve=Te(":",!1),ae=Te("@",!1),_e=Ze([["a","z"]],!1,!1),he=Te("()",!1),Ee=Te("~",!1),Ge=Te("^",!1),Me=Te(".",!1),Ae=Ze(["@","["],!1,!1),at=Ze(["$","_","-"],!1,!1),gt=Te('"',!1),Ne=Ze(['"'],!0,!1),Ce=Te("'",!1),$t=Ze(["'"],!0,!1),xe=Te("-",!1),ct=Te("*",!1),nn=Ze([["A","Z"],["a","z"]],!1,!1),qr=Ze([["0","9"]],!1,!1),an=Ze([" "," "],!1,!1),Xt=Ze(['"'],!1,!1),er=Ze(["'"],!1,!1),J=Ze([" ","$","@",".",",","_","=","<",">","!","|","&","+","~","%","^","*","/",";","-","[","]"],!1,!1),w=Te(".length",!1),K=function(ne,pe){return{...pe,deep:ne}},Z=function(ne,pe){return ne.concat(Array.isArray(pe)?pe:pe===null?[]:pe)},fe=function(){return{type:"WildcardExpression"}},de=function(ne){return ne},G=function(ne){return ne},k=function(ne){return{type:"MultipleMemberExpression",value:[...new Set(ne)]}},ee=function(){return/^\$\.{2}[~^]*$/.test(t)},te=function(){return{type:"AllParentExpression"}},ce=function(ne){return{type:"MemberExpression",value:ne}},oe=function(ne){return{type:"ScriptFilterExpression",value:ne}},Pe=function(ne){return{type:"SliceExpression",value:ne.split(":").reduce((pe,we,ye)=>(we!==""&&(pe[ye]=Number(we)),pe),[0,1/0,1])}},De=function(ne){return{type:"ScriptFilterExpression",value:ne}},be=function(ne){return ne.value},Fe=function(){return{type:"KeyExpression"}},Ye=function(){return{type:"ParentExpression"}},mt=function(){return!0},ut=function(){return!1},Jt=function(ne){return ne.length>0&&Number.isSafeInteger(Number(ne))?Number(ne):ne},un=function(){return ke().slice(1,-1)},wi=function(){return Number(ke())},Os=function(ne){return{type:"SliceExpression",value:[-ne,1/0,1]}},re=0,Ct=0,es=[{line:1,column:1}],Wn=0,ul=[],se=0,ge;if("startRule"in e){if(!(e.startRule in a))throw new Error(`Can't start parsing from rule "`+e.startRule+'".');o=a[e.startRule]}function ke(){return t.substring(Ct,re)}function Te(ne,pe){return{type:"literal",text:ne,ignoreCase:pe}}function Ze(ne,pe,we){return{type:"class",parts:ne,inverted:pe,ignoreCase:we}}function vt(){return{type:"end"}}function xt(ne){var pe=es[ne],we;if(pe)return pe;for(we=ne-1;!es[we];)we--;for(pe=es[we],pe={line:pe.line,column:pe.column};weWn&&(Wn=re,ul=[]),ul.push(ne))}function ht(ne,pe,we){return new ph(ph.buildMessage(ne,pe),ne,pe,we)}function ft(){var ne,pe,we,ye,et,yt;if(ne=re,pe=ir(),pe!==n){for(we=[],ye=Pr(),ye===n&&(ye=re,et=rc(),et!==n?(yt=lr(),yt!==n?(Ct=ye,ye=K(et,yt)):(re=ye,ye=n)):(re=ye,ye=n));ye!==n;)we.push(ye),ye=Pr(),ye===n&&(ye=re,et=rc(),et!==n?(yt=lr(),yt!==n?(Ct=ye,ye=K(et,yt)):(re=ye,ye=n)):(re=ye,ye=n));if(ye=[],et=ra(),et!==n)for(;et!==n;)ye.push(et),et=ra();else ye=n;ye===n&&(ye=null),Ct=ne,ne=Z(we,ye)}else re=ne,ne=n;return ne}function ir(){var ne;return t.charCodeAt(re)===36?(ne=r,re++):(ne=n,se===0&&Le(ie)),ne}function lr(){var ne,pe,we,ye,et;if(ne=zt(),ne===n&&(ne=re,pe=kr(),pe===n&&(pe=re,t.charCodeAt(re)===91?(we=s,re++):(we=n,se===0&&Le(U)),we!==n?(ye=kr(),ye!==n?(t.charCodeAt(re)===93?(et=c,re++):(et=n,se===0&&Le(R)),et!==n?(we=[we,ye,et],pe=we):(re=pe,pe=n)):(re=pe,pe=n)):(re=pe,pe=n)),pe!==n&&(Ct=ne,pe=fe()),ne=pe,ne===n&&(ne=re,t.charCodeAt(re)===91?(pe=s,re++):(pe=n,se===0&&Le(U)),pe!==n?(we=gn(),we!==n?(t.charCodeAt(re)===93?(ye=c,re++):(ye=n,se===0&&Le(R)),ye!==n?(Ct=ne,ne=de(we)):(re=ne,ne=n)):(re=ne,ne=n)):(re=ne,ne=n),ne===n&&(ne=re,t.charCodeAt(re)===91?(pe=s,re++):(pe=n,se===0&&Le(U)),pe!==n?(we=jr(),we!==n?(t.charCodeAt(re)===93?(ye=c,re++):(ye=n,se===0&&Le(R)),ye!==n?(Ct=ne,ne=de(we)):(re=ne,ne=n)):(re=ne,ne=n)):(re=ne,ne=n),ne===n&&(ne=re,pe=Ta(),pe===n&&(pe=fl()),pe!==n&&(Ct=ne,pe=de(pe)),ne=pe,ne===n))))){if(ne=re,t.charCodeAt(re)===91?(pe=s,re++):(pe=n,se===0&&Le(U)),pe!==n){for(we=[],ye=re,et=pl(),et!==n?(t.charCodeAt(re)===44?re++:se===0&&Le(z),Ct=ye,ye=G(et)):(re=ye,ye=n);ye!==n;)we.push(ye),ye=re,et=pl(),et!==n?(t.charCodeAt(re)===44?re++:se===0&&Le(z),Ct=ye,ye=G(et)):(re=ye,ye=n);t.charCodeAt(re)===93?(ye=c,re++):(ye=n,se===0&&Le(R)),ye!==n?(Ct=ne,ne=k(we)):(re=ne,ne=n)}else re=ne,ne=n;ne===n&&(ne=re,t.charCodeAt(re)===91?(pe=s,re++):(pe=n,se===0&&Le(U)),pe!==n?(we=ec(),we!==n?(t.charCodeAt(re)===93?(ye=c,re++):(ye=n,se===0&&Le(R)),ye!==n?(Ct=ne,ne=de(we)):(re=ne,ne=n)):(re=ne,ne=n)):(re=ne,ne=n))}return ne}function Pr(){var ne,pe,we;return ne=re,Ct=re,pe=ee(),pe?pe=void 0:pe=n,pe!==n?(t.substr(re,2)===l?(we=l,re+=2):(we=n,se===0&&Le(V)),we!==n?(Ct=ne,ne=te()):(re=ne,ne=n)):(re=ne,ne=n),ne}function zt(){var ne,pe,we,ye,et;return ne=re,pe=nc(),pe===n&&(pe=re,t.charCodeAt(re)===91?(we=s,re++):(we=n,se===0&&Le(U)),we!==n?(ye=pl(),ye!==n?(t.charCodeAt(re)===93?(et=c,re++):(et=n,se===0&&Le(R)),et!==n?(Ct=pe,pe=G(ye)):(re=pe,pe=n)):(re=pe,pe=n)):(re=pe,pe=n)),pe!==n&&(Ct=ne,pe=ce(pe)),ne=pe,ne}function gn(){var ne,pe,we,ye;return ne=re,t.charCodeAt(re)===40?(pe=u,re++):(pe=n,se===0&&Le(T)),pe!==n?(we=Ub(),we!==n?(t.charCodeAt(re)===41?(ye=f,re++):(ye=n,se===0&&Le(W)),ye!==n?(Ct=ne,ne=G(we)):(re=ne,ne=n)):(re=ne,ne=n)):(re=ne,ne=n),ne}function jr(){var ne,pe,we,ye;return ne=re,t.substr(re,2)===h?(pe=h,re+=2):(pe=n,se===0&&Le(le)),pe!==n?(we=Nh(),we!==n?(t.charCodeAt(re)===41?(ye=f,re++):(ye=n,se===0&&Le(W)),ye!==n?(Ct=ne,ne=oe(we)):(re=ne,ne=n)):(re=ne,ne=n)):(re=ne,ne=n),ne}function ec(){var ne,pe,we,ye,et,yt,Li;return ne=re,pe=re,we=re,ye=re,et=It(),et!==n?(t.charCodeAt(re)===58?(yt=d,re++):(yt=n,se===0&&Le(ve)),yt!==n?(Li=It(),Li===n&&(Li=null),et=[et,yt,Li],ye=et):(re=ye,ye=n)):(re=ye,ye=n),ye===n&&(ye=re,t.charCodeAt(re)===58?(et=d,re++):(et=n,se===0&&Le(ve)),et!==n?(yt=It(),yt===n&&(yt=null),et=[et,yt],ye=et):(re=ye,ye=n),ye===n&&(ye=It())),ye!==n?(et=re,t.charCodeAt(re)===58?(yt=d,re++):(yt=n,se===0&&Le(ve)),yt!==n?(Li=It(),Li!==n?(yt=[yt,Li],et=yt):(re=et,et=n)):(re=et,et=n),et===n&&(et=null),ye=[ye,et],we=ye):(re=we,we=n),we!==n?pe=t.substring(pe,re):pe=we,pe!==n&&(Ct=ne,pe=Pe(pe)),ne=pe,ne}function Ta(){var ne,pe,we,ye,et,yt;if(ne=re,pe=re,we=re,t.charCodeAt(re)===64?(ye=m,re++):(ye=n,se===0&&Le(ae)),ye!==n){if(et=[],I.test(t.charAt(re))?(yt=t.charAt(re),re++):(yt=n,se===0&&Le(_e)),yt!==n)for(;yt!==n;)et.push(yt),I.test(t.charAt(re))?(yt=t.charAt(re),re++):(yt=n,se===0&&Le(_e));else et=n;et!==n?(t.substr(re,2)===g?(yt=g,re+=2):(yt=n,se===0&&Le(he)),yt!==n?(ye=[ye,et,yt],we=ye):(re=we,we=n)):(re=we,we=n)}else re=we,we=n;return we!==n?pe=t.substring(pe,re):pe=we,pe!==n&&(Ct=ne,pe=De(pe)),ne=pe,ne}function fl(){var ne,pe,we,ye,et;return ne=re,pe=re,we=re,t.charCodeAt(re)===64?(ye=m,re++):(ye=n,se===0&&Le(ae)),ye!==n?(et=Ta(),et!==n?(Ct=we,we=be(et)):(re=we,we=n)):(re=we,we=n),we!==n?pe=t.substring(pe,re):pe=we,pe!==n&&(Ct=ne,pe=De(pe)),ne=pe,ne}function ts(){var ne,pe;return ne=re,t.charCodeAt(re)===126?(pe=b,re++):(pe=n,se===0&&Le(Ee)),pe!==n&&(Ct=ne,pe=Fe()),ne=pe,ne}function tc(){var ne,pe;return ne=re,t.charCodeAt(re)===94?(pe=v,re++):(pe=n,se===0&&Le(Ge)),pe!==n&&(Ct=ne,pe=Ye()),ne=pe,ne}function ra(){var ne;return ne=ts(),ne===n&&(ne=tc()),ne}function rc(){var ne,pe,we,ye;return ne=re,t.substr(re,2)===l?(pe=l,re+=2):(pe=n,se===0&&Le(V)),pe!==n&&(Ct=ne,pe=mt()),ne=pe,ne===n&&(ne=re,t.charCodeAt(re)===46?(pe=P,re++):(pe=n,se===0&&Le(Me)),pe!==n?(we=re,se++,t.charCodeAt(re)===91?(ye=s,re++):(ye=n,se===0&&Le(U)),se--,ye!==n?(re=we,we=void 0):we=n,we!==n?(Ct=ne,ne=mt()):(re=ne,ne=n)):(re=ne,ne=n),ne===n&&(ne=re,t.charCodeAt(re)===46?(pe=P,re++):(pe=n,se===0&&Le(Me)),pe!==n&&(Ct=ne,pe=ut()),ne=pe,ne===n&&(ne=re,pe=re,se++,E.test(t.charAt(re))?(we=t.charAt(re),re++):(we=n,se===0&&Le(Ae)),se--,we!==n?(re=pe,pe=void 0):pe=n,pe!==n&&(Ct=ne,pe=ut()),ne=pe))),ne}function nc(){var ne,pe,we;if(ne=re,pe=[],L.test(t.charAt(re))?(we=t.charAt(re),re++):(we=n,se===0&&Le(at)),we===n&&(we=Gr(),we===n&&(we=Ht())),we!==n)for(;we!==n;)pe.push(we),L.test(t.charAt(re))?(we=t.charAt(re),re++):(we=n,se===0&&Le(at)),we===n&&(we=Gr(),we===n&&(we=Ht()));else pe=n;return pe!==n?ne=t.substring(ne,re):ne=pe,ne}function pl(){var ne,pe,we,ye,et,yt;if(ne=re,pe=nc(),pe!==n&&(Ct=ne,pe=Jt(pe)),ne=pe,ne===n){if(ne=re,pe=re,t.charCodeAt(re)===34?(we=A,re++):(we=n,se===0&&Le(gt)),we!==n){for(ye=re,et=[],q.test(t.charAt(re))?(yt=t.charAt(re),re++):(yt=n,se===0&&Le(Ne));yt!==n;)et.push(yt),q.test(t.charAt(re))?(yt=t.charAt(re),re++):(yt=n,se===0&&Le(Ne));ye=t.substring(ye,re),t.charCodeAt(re)===34?(et=A,re++):(et=n,se===0&&Le(gt)),et!==n?(we=[we,ye,et],pe=we):(re=pe,pe=n)}else re=pe,pe=n;if(pe===n)if(pe=re,t.charCodeAt(re)===39?(we=_,re++):(we=n,se===0&&Le(Ce)),we!==n){for(ye=re,et=[],F.test(t.charAt(re))?(yt=t.charAt(re),re++):(yt=n,se===0&&Le($t));yt!==n;)et.push(yt),F.test(t.charAt(re))?(yt=t.charAt(re),re++):(yt=n,se===0&&Le($t));ye=t.substring(ye,re),t.charCodeAt(re)===39?(et=_,re++):(et=n,se===0&&Le(Ce)),et!==n?(we=[we,ye,et],pe=we):(re=pe,pe=n)}else re=pe,pe=n;pe!==n&&(Ct=ne,pe=un()),ne=pe}return ne}function It(){var ne,pe,we;if(ne=re,t.charCodeAt(re)===45?re++:se===0&&Le(xe),pe=[],we=Ht(),we!==n)for(;we!==n;)pe.push(we),we=Ht();else pe=n;return pe!==n?(Ct=ne,ne=wi()):(re=ne,ne=n),ne}function kr(){var ne;return t.charCodeAt(re)===42?(ne=N,re++):(ne=n,se===0&&Le(ct)),ne}function Gr(){var ne;return S.test(t.charAt(re))?(ne=t.charAt(re),re++):(ne=n,se===0&&Le(nn)),ne}function Ht(){var ne;return D.test(t.charAt(re))?(ne=t.charAt(re),re++):(ne=n,se===0&&Le(qr)),ne}function vn(){var ne;return M.test(t.charAt(re))?(ne=t.charAt(re),re++):(ne=n,se===0&&Le(an)),ne}function Nh(){var ne,pe,we;if(ne=re,pe=[],we=Gr(),we===n&&(we=Ht(),we===n&&(we=vn(),we===n&&(we=Gf(),we===n&&(we=xo(),we===n&&(we=ic(),we===n&&(we=$u())))))),we!==n)for(;we!==n;)pe.push(we),we=Gr(),we===n&&(we=Ht(),we===n&&(we=vn(),we===n&&(we=Gf(),we===n&&(we=xo(),we===n&&(we=ic(),we===n&&(we=$u()))))));else pe=n;return pe!==n?ne=t.substring(ne,re):ne=pe,ne}function ic(){var ne,pe,we,ye;if(ne=re,t.charCodeAt(re)===91?(pe=s,re++):(pe=n,se===0&&Le(U)),pe!==n){for(we=[],ye=Ht(),ye===n&&(ye=Gr(),ye===n&&(ye=xo(),ye===n&&(ye=$u())));ye!==n;)we.push(ye),ye=Ht(),ye===n&&(ye=Gr(),ye===n&&(ye=xo(),ye===n&&(ye=$u())));t.charCodeAt(re)===93?(ye=c,re++):(ye=n,se===0&&Le(R)),ye!==n?(pe=[pe,we,ye],ne=pe):(re=ne,ne=n)}else re=ne,ne=n;return ne}function xo(){var ne,pe,we,ye;if(ne=re,C.test(t.charAt(re))?(pe=t.charAt(re),re++):(pe=n,se===0&&Le(Xt)),pe!==n){for(we=[],q.test(t.charAt(re))?(ye=t.charAt(re),re++):(ye=n,se===0&&Le(Ne));ye!==n;)we.push(ye),q.test(t.charAt(re))?(ye=t.charAt(re),re++):(ye=n,se===0&&Le(Ne));C.test(t.charAt(re))?(ye=t.charAt(re),re++):(ye=n,se===0&&Le(Xt)),ye!==n?(pe=[pe,we,ye],ne=pe):(re=ne,ne=n)}else re=ne,ne=n;if(ne===n)if(ne=re,H.test(t.charAt(re))?(pe=t.charAt(re),re++):(pe=n,se===0&&Le(er)),pe!==n){for(we=[],F.test(t.charAt(re))?(ye=t.charAt(re),re++):(ye=n,se===0&&Le($t));ye!==n;)we.push(ye),F.test(t.charAt(re))?(ye=t.charAt(re),re++):(ye=n,se===0&&Le($t));H.test(t.charAt(re))?(ye=t.charAt(re),re++):(ye=n,se===0&&Le(er)),ye!==n?(pe=[pe,we,ye],ne=pe):(re=ne,ne=n)}else re=ne,ne=n;return ne}function Gf(){var ne;return X.test(t.charAt(re))?(ne=t.charAt(re),re++):(ne=n,se===0&&Le(J)),ne}function $u(){var ne,pe,we,ye;if(ne=re,t.charCodeAt(re)===40?(pe=u,re++):(pe=n,se===0&&Le(T)),pe!==n){for(we=[],ye=xo(),ye===n&&(ye=Gr(),ye===n&&(ye=Ht(),ye===n&&(ye=ic(),ye===n&&(ye=Gf(),ye===n&&(ye=vn(),ye===n&&(ye=$u()))))));ye!==n;)we.push(ye),ye=xo(),ye===n&&(ye=Gr(),ye===n&&(ye=Ht(),ye===n&&(ye=ic(),ye===n&&(ye=Gf(),ye===n&&(ye=vn(),ye===n&&(ye=$u()))))));t.charCodeAt(re)===41?(ye=f,re++):(ye=n,se===0&&Le(W)),ye!==n?(pe=[pe,we,ye],ne=pe):(re=ne,ne=n)}else re=ne,ne=n;return ne}function Ub(){var ne,pe,we;return ne=re,t.charCodeAt(re)===64?(pe=m,re++):(pe=n,se===0&&Le(ae)),pe!==n?(we=Bb(),we!==n?(Ct=ne,ne=G(we)):(re=ne,ne=n)):(re=ne,ne=n),ne}function Bb(){var ne,pe,we,ye,et,yt,Li,Au;if(ne=re,t.substr(re,7)===j?(pe=j,re+=7):(pe=n,se===0&&Le(w)),pe!==n){for(we=[],ye=vn();ye!==n;)we.push(ye),ye=vn();if(t.charCodeAt(re)===45?(ye=x,re++):(ye=n,se===0&&Le(xe)),ye!==n){for(et=[],yt=vn();yt!==n;)et.push(yt),yt=vn();if(yt=re,Li=[],Au=Ht(),Au!==n)for(;Au!==n;)Li.push(Au),Au=Ht();else Li=n;Li!==n?yt=t.substring(yt,re):yt=Li,yt!==n?(Ct=ne,ne=Os(yt)):(re=ne,ne=n)}else re=ne,ne=n}else re=ne,ne=n;return ne}if(ge=o(),ge!==n&&re===t.length)return ge;throw ge!==n&&re0)throw new i.default(f.map(a),`Error parsing ${f.map(o).join(", ")}`);return{erroredExpressions:f.map(o),mappedExpressions:u}}t.default=r})(FX);(function(t){Object.defineProperty(t,"__esModule",{value:!0});var e=xs,n=uX,i=e0,a=LX,o=FX;const r=/import\s*({[^}]+})\s*from\s*['"][^'"]+['"];?/;var s=new WeakMap,c=new WeakMap;class l{constructor(f,{fallback:h=null,unsafe:d=!0,output:m="auto",npmProvider:g=null,customShorthands:b=null}={}){s.set(this,{writable:!0,value:void 0}),c.set(this,{writable:!0,value:void 0}),e.classPrivateFieldSet(this,s,h),e.classPrivateFieldSet(this,c,null);const{erroredExpressions:v,mappedExpressions:P}=o.default(f,d,h!==null);this.tree=n.default(P,{customShorthands:b,format:m==="auto"?a.default():m,npmProvider:g}),v.length>0&&this.tree.attachFallbackExpressions(h,v),this.sourceCode=String(this.tree)}query(f,h){if(e.classPrivateFieldGet(this,c)!==null){e.classPrivateFieldGet(this,c).call(this,f,h);return}const d="__nimma_globals__",m=this.sourceCode.replace("export default function","return function").replace(r,`const $1 = ${d};`).replace(RegExp(r.source,"g"),"");e.classPrivateFieldSet(this,c,Function(d,...e.classPrivateFieldGet(this,s)===null?[]:Array.from(e.classPrivateFieldGet(this,s).runtimeDeps.keys()),m)(i,...e.classPrivateFieldGet(this,s)===null?[]:Array.from(e.classPrivateFieldGet(this,s).runtimeDeps.values()))),e.classPrivateFieldGet(this,c).call(this,f,h)}}t.default=l})(oX);Object.defineProperty(pR,"__esModule",{value:!0});var _9e=oX;pR.default=_9e.default;var wR={},UX={};function Jo(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Jo=function(e){return typeof e}:Jo=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Jo(t)}function x9e(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function D9e(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&JP(t,e)}function YP(t){return YP=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},YP(t)}function JP(t,e){return JP=Object.setPrototypeOf||function(i,a){return i.__proto__=a,i},JP(t,e)}function BX(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Jv(t,e,n){return BX()?Jv=Reflect.construct:Jv=function(a,o,r){var s=[null];s.push.apply(s,o);var c=Function.bind.apply(a,s),l=new c;return r&&JP(l,r.prototype),l},Jv.apply(null,arguments)}function k9e(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function HC(t){var e=typeof Map=="function"?new Map:void 0;return HC=function(i){if(i===null||!k9e(i))return i;if(typeof i!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e<"u"){if(e.has(i))return e.get(i);e.set(i,a)}function a(){return Jv(i,arguments,YP(this).constructor)}return a.prototype=Object.create(i.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),JP(a,i)},HC(t)}function O9e(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function E9e(t,e){return e&&(typeof e=="object"||typeof e=="function")?e:O9e(t)}function I9e(t){var e=BX();return function(){var i=YP(t),a;if(e){var o=YP(this).constructor;a=Reflect.construct(i,arguments,o)}else a=i.apply(this,arguments);return E9e(this,a)}}function yB(t){return C9e(t)||T9e(t)||VX(t)||j9e()}function C9e(t){if(Array.isArray(t))return GC(t)}function T9e(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function VX(t,e){if(t){if(typeof t=="string")return GC(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return GC(t,e)}}function GC(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(c){throw c},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,r=!1,s;return{s:function(){n=n.call(t)},n:function(){var c=n.next();return o=c.done,c},e:function(c){r=!0,s=c},f:function(){try{!o&&n.return!=null&&n.return()}finally{if(r)throw s}}}}var qa=Object.prototype.hasOwnProperty;function rv(t,e){return t=t.slice(),t.push(e),t}function vd(t,e){return e=e.slice(),e.unshift(t),e}var R9e=function(t){D9e(n,t);var e=I9e(n);function n(i){var a;return x9e(this,n),a=e.call(this,'JSONPath should not be called with "new" (it prevents return of (unwrapped) scalar values)'),a.avoidNew=!0,a.value=i,a.name="NewError",a}return n}(HC(Error));function Xr(t,e,n,i,a){if(!(this instanceof Xr))try{return new Xr(t,e,n,i,a)}catch(c){if(!c.avoidNew)throw c;return c.value}typeof t=="string"&&(a=i,i=n,n=e,e=t,t=null);var o=t&&Jo(t)==="object";if(t=t||{},this.json=t.json||n,this.path=t.path||e,this.resultType=t.resultType||"value",this.flatten=t.flatten||!1,this.wrap=qa.call(t,"wrap")?t.wrap:!0,this.sandbox=t.sandbox||{},this.preventEval=t.preventEval||!1,this.parent=t.parent||null,this.parentProperty=t.parentProperty||null,this.callback=t.callback||i||null,this.otherTypeCallback=t.otherTypeCallback||a||function(){throw new TypeError("You must supply an otherTypeCallback callback option with the @other() operator.")},t.autostart!==!1){var r={path:o?t.path:e};o?"json"in t&&(r.json=t.json):r.json=n;var s=this.evaluate(r);if(!s||Jo(s)!=="object")throw new R9e(s);return s}}Xr.prototype.evaluate=function(t,e,n,i){var a=this,o=this.parent,r=this.parentProperty,s=this.flatten,c=this.wrap;if(this.currResultType=this.resultType,this.currPreventEval=this.preventEval,this.currSandbox=this.sandbox,n=n||this.callback,this.currOtherTypeCallback=i||this.otherTypeCallback,e=e||this.json,t=t||this.path,t&&Jo(t)==="object"&&!Array.isArray(t)){if(!t.path&&t.path!=="")throw new TypeError('You must supply a "path" property when providing an object argument to JSONPath.evaluate().');if(!qa.call(t,"json"))throw new TypeError('You must supply a "json" property when providing an object argument to JSONPath.evaluate().');var l=t;e=l.json,s=qa.call(t,"flatten")?t.flatten:s,this.currResultType=qa.call(t,"resultType")?t.resultType:this.currResultType,this.currSandbox=qa.call(t,"sandbox")?t.sandbox:this.currSandbox,c=qa.call(t,"wrap")?t.wrap:c,this.currPreventEval=qa.call(t,"preventEval")?t.preventEval:this.currPreventEval,n=qa.call(t,"callback")?t.callback:n,this.currOtherTypeCallback=qa.call(t,"otherTypeCallback")?t.otherTypeCallback:this.currOtherTypeCallback,o=qa.call(t,"parent")?t.parent:o,r=qa.call(t,"parentProperty")?t.parentProperty:r,t=t.path}if(o=o||null,r=r||null,Array.isArray(t)&&(t=Xr.toPathString(t)),!(!t&&t!==""||!e)){var u=Xr.toPathArray(t);u[0]==="$"&&u.length>1&&u.shift(),this._hasParentSelector=null;var f=this._trace(u,e,["$"],o,r,n).filter(function(h){return h&&!h.isParentSelector});return f.length?!c&&f.length===1&&!f[0].hasArrExpr?this._getPreferredOutput(f[0]):f.reduce(function(h,d){var m=a._getPreferredOutput(d);return s&&Array.isArray(m)?h=h.concat(m):h.push(m),h},[]):c?[]:void 0}};Xr.prototype._getPreferredOutput=function(t){var e=this.currResultType;switch(e){case"all":{var n=Array.isArray(t.path)?t.path:Xr.toPathArray(t.path);return t.pointer=Xr.toPointer(n),t.path=typeof t.path=="string"?t.path:Xr.toPathString(t.path),t}case"value":case"parent":case"parentProperty":return t[e];case"path":return Xr.toPathString(t[e]);case"pointer":return Xr.toPointer(t.path);default:throw new TypeError("Unknown result type")}};Xr.prototype._handleCallback=function(t,e,n){if(e){var i=this._getPreferredOutput(t);t.path=typeof t.path=="string"?t.path:Xr.toPathString(t.path),e(i,n,t)}};Xr.prototype._trace=function(t,e,n,i,a,o,r,s){var c=this,l;if(!t.length)return l={path:n,value:e,parent:i,parentProperty:a,hasArrExpr:r},this._handleCallback(l,o,"value"),l;var u=t[0],f=t.slice(1),h=[];function d(L){Array.isArray(L)?L.forEach(function(q){h.push(q)}):h.push(L)}if((typeof u!="string"||s)&&e&&qa.call(e,u))d(this._trace(f,e[u],rv(n,u),e,u,o,r));else if(u==="*")this._walk(u,f,e,n,i,a,o,function(L,q,F,S,D,M,C,H){d(c._trace(vd(L,F),S,D,M,C,H,!0,!0))});else if(u==="..")d(this._trace(f,e,n,i,a,o,r)),this._walk(u,f,e,n,i,a,o,function(L,q,F,S,D,M,C,H){Jo(S[L])==="object"&&d(c._trace(vd(q,F),S[L],rv(D,L),S,L,H,!0))});else{if(u==="^")return this._hasParentSelector=!0,{path:n.slice(0,-1),expr:f,isParentSelector:!0};if(u==="~")return l={path:rv(n,u),value:a,parent:i,parentProperty:null},this._handleCallback(l,o,"property"),l;if(u==="$")d(this._trace(f,e,n,null,null,o,r));else if(/^(\x2D?[0-9]*):(\x2D?[0-9]*):?([0-9]*)$/.test(u))d(this._slice(u,f,e,n,i,a,o));else if(u.indexOf("?(")===0){if(this.currPreventEval)throw new Error("Eval [?(expr)] prevented in JSONPath expression.");this._walk(u,f,e,n,i,a,o,function(L,q,F,S,D,M,C,H){c._eval(q.replace(/^\?\(((?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*?)\)$/,"$1"),S[L],L,D,M,C)&&d(c._trace(vd(L,F),S,D,M,C,H,!0))})}else if(u[0]==="("){if(this.currPreventEval)throw new Error("Eval [(expr)] prevented in JSONPath expression.");d(this._trace(vd(this._eval(u,e,n[n.length-1],n.slice(0,-1),i,a),f),e,n,i,a,o,r))}else if(u[0]==="@"){var m=!1,g=u.slice(1,-2);switch(g){case"scalar":(!e||!["object","function"].includes(Jo(e)))&&(m=!0);break;case"boolean":case"string":case"undefined":case"function":Jo(e)===g&&(m=!0);break;case"integer":Number.isFinite(e)&&!(e%1)&&(m=!0);break;case"number":Number.isFinite(e)&&(m=!0);break;case"nonFinite":typeof e=="number"&&!Number.isFinite(e)&&(m=!0);break;case"object":e&&Jo(e)===g&&(m=!0);break;case"array":Array.isArray(e)&&(m=!0);break;case"other":m=this.currOtherTypeCallback(e,n,i,a);break;case"null":e===null&&(m=!0);break;default:throw new TypeError("Unknown value type "+g)}if(m)return l={path:n,value:e,parent:i,parentProperty:a},this._handleCallback(l,o,"value"),l}else if(u[0]==="`"&&e&&qa.call(e,u.slice(1))){var b=u.slice(1);d(this._trace(f,e[b],rv(n,b),e,b,o,r,!0))}else if(u.includes(",")){var v=u.split(","),P=M9e(v),A;try{for(P.s();!(A=P.n()).done;){var _=A.value;d(this._trace(vd(_,f),e,n,i,a,o,!0))}}catch(L){P.e(L)}finally{P.f()}}else!s&&e&&qa.call(e,u)&&d(this._trace(f,e[u],rv(n,u),e,u,o,r,!0))}if(this._hasParentSelector)for(var x=0;x-1?e.slice(0,s+1)+" return "+e.slice(s+1):" return "+e;return Jv(Function,yB(i).concat([c])).apply(void 0,yB(o))}};const L9e=Object.freeze(Object.defineProperty({__proto__:null,JSONPath:Xr},Symbol.toStringTag,{value:"Module"})),F9e=Yl(L9e);var q9e="Expected a function",WX="__lodash_hash_undefined__",HX=1/0,z9e="[object Function]",U9e="[object GeneratorFunction]",B9e="[object Symbol]",V9e=/^\./,W9e=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,H9e=/[\\^$.*+?()[\]{}|]/g,G9e=/\\(\\)?/g,K9e=/^\[object .+?Constructor\]$/,Y9e=typeof Cr=="object"&&Cr&&Cr.Object===Object&&Cr,J9e=typeof self=="object"&&self&&self.Object===Object&&self,$R=Y9e||J9e||Function("return this")();function Q9e(t,e){for(var n=-1,i=t?t.length:0,a=Array(i);++n-1}function dze(t,e){var n=this.__data__,i=rx(n,t);return i<0?n.push([t,e]):n[i][1]=e,this}t0.prototype.clear=uze;t0.prototype.delete=fze;t0.prototype.get=pze;t0.prototype.has=hze;t0.prototype.set=dze;function Ch(t){var e=-1,n=t?t.length:0;for(this.clear();++e\s*)?/,"");return`${f.slice(f.indexOf("("),h).split(/[,\s]+/).splice(0,3).join(", ")} => ${d}`}class o{constructor(f,h){D0(this,r,new Set);D0(this,s,new Map);D0(this,c);D0(this,l,"");Pq(this,"runtimeDeps",new Map);ek(this,c,h);for(const[d,m]of Object.entries(f)){const g=[];for(const{imported:b,local:v,value:P}of m)Tu(this,s).set(v,P),this.runtimeDeps.set(n(v),P),g.push(e.importSpecifier(i(v),e.identifier(b))),Tu(this,r).add(e.importDeclaration(g,e.stringLiteral(d)))}}get extraCode(){return Tu(this,l)||ek(this,l,a(Tu(this,c))),Tu(this,l)}attach(f){for(const m of Tu(this,r))f.push(m,"program");const h=e.identifier("fallback"),d=Array.from(Tu(this,s).keys());return f.push(e.variableDeclaration("const",[e.variableDeclarator(h,e.callExpression(e.memberExpression(e.callExpression(e.identifier("Function"),[e.templateLiteral([e.templateElement({raw:`return ${this.extraCode}`})],[])]),e.identifier("call")),[e.objectExpression(d.map(m=>e.objectProperty(e.stringLiteral(m),i(m))))]))]),"program"),h}}r=new WeakMap,s=new WeakMap,c=new WeakMap,l=new WeakMap,t.default=o})(ZX);(function(t){Object.defineProperty(t,"__esModule",{value:!0});var e=F9e,n=jze,i=ZX;function a(s){return s&&typeof s=="object"&&"default"in s?s:{default:s}}var o=a(n),r=new i.default({"jsonpath-plus":[{imported:"JSONPath",local:"JSONPath",value:e.JSONPath}],"lodash.topath":[{imported:"default",local:"toPath",value:o.default}]},function(s,c,l){this.JSONPath({callback:u=>{l({path:this.toPath(u.path.slice(1)),value:u.value})},json:s,path:c,resultType:"all"})});t.default=r})(UX);Object.defineProperty(wR,"__esModule",{value:!0});var hUe=UX;wR.jsonPathPlus=hUe.default;Object.defineProperty(H_,"__esModule",{value:!0});H_.Runner=void 0;const dUe=vr,mUe=JZ,yUe=G_,gUe=(0,dUe.__importDefault)(pR),vUe=wR,PUe=Hr;class bUe{constructor(e){var n;this.inventory=e,this.results=[...this.inventory.diagnostics,...(n=this.inventory.errors)!==null&&n!==void 0?n:[]]}get document(){return this.inventory.document}addResult(e){this.results.push(e)}async run(e){var n,i,a;const{inventory:o}=this,{rules:r}=e,s=(n=this.document.formats)!==null&&n!==void 0?n:null,c={ruleset:e,documentInventory:o,results:this.results,promises:[]},u=Object.values(r).filter(m=>m.enabled).filter(m=>m.matchesFormat(o.formats)),f={resolved:{},unresolved:{}};for(const m of u)for(const g of m.getGivenForFormats(s)){const b=v=>{(0,yUe.lintNode)(c,v,m)};((i=(a=f[m.resolved?"resolved":"unresolved"])[g])!==null&&i!==void 0?i:a[g]=[]).push(b)}const h=Object.keys(f.resolved),d=Object.keys(f.unresolved);h.length>0&&wB(c.documentInventory.resolved,f.resolved,h),d.length>0&&wB(c.documentInventory.unresolved,f.unresolved,d),c.promises.length>0&&await Promise.all(c.promises)}getResults(){return(0,mUe.prepareResults)(this.results)}}H_.Runner=bUe;function wB(t,e,n){var i;if(!(0,PUe.isPlainObject)(t)&&!Array.isArray(t)){for(const o of(i=e.$)!==null&&i!==void 0?i:[])o({path:[],value:t});return}new gUe.default(n,{fallback:vUe.jsonPathPlus,unsafe:!1,output:"auto",customShorthands:{}}).query(t,Object.entries(e).reduce((o,[r,s])=>(o[r]=c=>{for(const l of s)l(c)},o),{}))}(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.Runner=void 0;var e=H_;Object.defineProperty(t,"Runner",{enumerable:!0,get:function(){return e.Runner}})})(YZ);var nv={},Tb={},wUe=function(t,e){for(var n=[],i=0;i=0&&l>0){if(t===e)return[c,l];for(i=[],o=n.length;u>=0&&!s;)u==c?(i.push(u),c=n.indexOf(t,u+1)):i.length==1?s=[i.pop(),l]:(a=i.pop(),a=0?c:l;i.length&&(s=[o,r])}return s}var SUe=wUe,aee=AUe,_Ue=kUe,see="\0SLASH"+Math.random()+"\0",oee="\0OPEN"+Math.random()+"\0",xR="\0CLOSE"+Math.random()+"\0",lee="\0COMMA"+Math.random()+"\0",cee="\0PERIOD"+Math.random()+"\0";function cE(t){return parseInt(t,10)==t?parseInt(t,10):t.charCodeAt(0)}function xUe(t){return t.split("\\\\").join(see).split("\\{").join(oee).split("\\}").join(xR).split("\\,").join(lee).split("\\.").join(cee)}function DUe(t){return t.split(see).join("\\").split(oee).join("{").split(xR).join("}").split(lee).join(",").split(cee).join(".")}function uee(t){if(!t)return[""];var e=[],n=aee("{","}",t);if(!n)return t.split(",");var i=n.pre,a=n.body,o=n.post,r=i.split(",");r[r.length-1]+="{"+a+"}";var s=uee(o);return o.length&&(r[r.length-1]+=s.shift(),r.push.apply(r,s)),e.push.apply(e,r),e}function kUe(t){return t?(t.substr(0,2)==="{}"&&(t="\\{\\}"+t.substr(2)),Pd(xUe(t),!0).map(DUe)):[]}function OUe(t){return"{"+t+"}"}function EUe(t){return/^-?0\d/.test(t)}function IUe(t,e){return t<=e}function CUe(t,e){return t>=e}function Pd(t,e){var n=[],i=aee("{","}",t);if(!i||/\$$/.test(i.pre))return[t];var a=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(i.body),o=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(i.body),r=a||o,s=i.body.indexOf(",")>=0;if(!r&&!s)return i.post.match(/,.*\}/)?(t=i.pre+"{"+i.body+xR+i.post,Pd(t)):[t];var c;if(r)c=i.body.split(/\.\./);else if(c=uee(i.body),c.length===1&&(c=Pd(c[0],!1).map(OUe),c.length===1)){var u=i.post.length?Pd(i.post,!1):[""];return u.map(function(q){return i.pre+c[0]+q})}var l=i.pre,u=i.post.length?Pd(i.post,!1):[""],f;if(r){var h=cE(c[0]),d=cE(c[1]),m=Math.max(c[0].length,c[1].length),g=c.length==3?Math.abs(cE(c[2])):1,b=IUe,v=d0){var N=new Array(x+1).join("0");A<0?_="-"+N+_.slice(1):_=N+_}}f.push(_)}}else f=SUe(c,function(L){return Pd(L,!1)});for(var j=0;j"u"?this.pattern:t,ix(t),e.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:jUe(t)}var zUe=1024*64,ix=function(t){if(typeof t!="string")throw new TypeError("invalid pattern");if(t.length>zUe)throw new TypeError("pattern is too long")};Ri.prototype.parse=UUe;var Ww={};function UUe(t,e){ix(t);var n=this.options;if(t==="**")if(n.noglobstar)t="*";else return DR;if(t==="")return"";var i="",a=!!n.nocase,o=!1,r=[],s=[],c,l=!1,u=-1,f=-1,h=t.charAt(0)==="."?"":n.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",d=this;function m(){if(c){switch(c){case"*":i+=YC,a=!0;break;case"?":i+=KC,a=!0;break;default:i+="\\"+c;break}d.debug("clearStateChar %j %j",c,i),c=!1}}for(var g=0,b=t.length,v;g-1;I--){var E=s[I],L=i.slice(0,E.reStart),q=i.slice(E.reStart,E.reEnd-8),F=i.slice(E.reEnd-8,E.reEnd),S=i.slice(E.reEnd);F+=S;var D=L.split("(").length-1,M=S;for(g=0;g"u"&&(n=this.partial),this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&n)return!0;var i=this.options;ZP.sep!=="/"&&(e=e.split(ZP.sep).join("/")),e=e.split(fee),this.debug(this.pattern,"split",e);var a=this.set;this.debug(this.pattern,"set",a);var o,r;for(r=e.length-1;r>=0&&(o=e[r],!o);r--);for(r=0;r>> no match, partial?`,t,u,e,f),u===r))}var d;if(typeof c=="string"?(d=l===c,this.debug("string match",c,l,d)):(d=l.match(c),this.debug("pattern match",c,l,d)),!d)return!1}if(a===r&&o===s)return!0;if(a===r)return n;if(o===s)return a===r-1&&t[a]==="";throw new Error("wtf?")};function VUe(t){return t.replace(/\\(.)/g,"$1")}function WUe(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}Object.defineProperty(Tb,"__esModule",{value:!0});Tb.minimatch=void 0;const HUe=vr,GUe=(0,HUe.__importDefault)(TUe),KUe={matchBase:!0};function YUe(t,e){return(0,GUe.default)(t,e,KUe)}Tb.minimatch=YUe;var r0={},dh={};Object.defineProperty(dh,"__esModule",{value:!0});dh.getDiagnosticSeverity=dh.DEFAULT_SEVERITY_LEVEL=void 0;const Dv=Db;dh.DEFAULT_SEVERITY_LEVEL=Dv.DiagnosticSeverity.Warning;const JUe={error:Dv.DiagnosticSeverity.Error,warn:Dv.DiagnosticSeverity.Warning,info:Dv.DiagnosticSeverity.Information,hint:Dv.DiagnosticSeverity.Hint,off:-1};function QUe(t){return Number.isNaN(Number(t))?JUe[t]:Number(t)}dh.getDiagnosticSeverity=QUe;var Th={};Object.defineProperty(Th,"__esModule",{value:!0});Th.Formats=void 0;function ZUe(t){var e;return(e=t.displayName)!==null&&e!==void 0?e:t.name}class XUe extends Set{toJSON(){return Array.from(this).map(ZUe)}}Th.Formats=XUe;var mh={},Tc={};Object.defineProperty(Tc,"__esModule",{value:!0});Tc.isScopedAliasDefinition=Tc.isValidAliasTarget=Tc.isSimpleAliasDefinition=void 0;const e5e=Hr,t5e=sr;function r5e(t){return Array.isArray(t)}Tc.isSimpleAliasDefinition=r5e;function hee(t){const e=t.formats;return!Array.isArray(e)&&!(e instanceof Set)?!1:Array.isArray(t.given)&&t.given.every(t5e.isString)}Tc.isValidAliasTarget=hee;function n5e(t){return(0,e5e.isPlainObject)(t)&&Array.isArray(t.targets)&&t.targets.every(hee)}Tc.isScopedAliasDefinition=n5e;Object.defineProperty(mh,"__esModule",{value:!0});mh.resolveAlias=mh.resolveAliasForFormats=void 0;const _B=Tc,i5e=/^#([A-Za-z0-9_-]+)/;function dee({targets:t},e){if(e===null||e.size===0)return null;for(let n=t.length-1;n>=0;n--){const i=t[n];for(const a of i.formats)if(e.has(a))return i.given}return null}mh.resolveAliasForFormats=dee;function a5e(t,e,n){return mee(t,e,n,new Set)}mh.resolveAlias=a5e;function mee(t,e,n,i){var a;const o=[];if(e.startsWith("#")){const r=(a=i5e.exec(e))===null||a===void 0?void 0:a[1];if(r==null)throw new TypeError("Alias must match /^#([A-Za-z0-9_-]+)/");if(i.has(r)){const l=[...i,r];throw new Error(`Alias "${l[0]}" is circular. Resolution stack: ${l.join(" -> ")}`)}if(i.add(r),t===null||!(r in t))throw new ReferenceError(`Alias "${r}" does not exist`);const s=t[r];let c;(0,_B.isSimpleAliasDefinition)(s)?c=s:(0,_B.isScopedAliasDefinition)(s)?c=dee(s,n):c=null,c!==null&&o.push(...c.flatMap(l=>mee(t,l+e.slice(r.length+1),n,new Set([...i]))))}else o.push(e);return o}var kv,Ov,L$,bd;Object.defineProperty(r0,"__esModule",{value:!0});r0.Rule=void 0;const Fs=vr,s5e=sr,xB=Eh,o5e=Hr,DB=dh,l5e=Tb,c5e=Th,kB=mh;class kR{constructor(e,n,i){var a,o,r,s;this.name=e,this.definition=n,this.owner=i,kv.set(this,void 0),Ov.set(this,void 0),L$.set(this,void 0),bd.set(this,void 0),this.recommended=n.recommended!==!1,(0,Fs.__classPrivateFieldSet)(this,Ov,this.recommended,"f"),this.description=(a=n.description)!==null&&a!==void 0?a:null,this.message=(o=n.message)!==null&&o!==void 0?o:null,this.documentationUrl=(r=n.documentationUrl)!==null&&r!==void 0?r:null,this.severity=n.severity,this.resolved=n.resolved!==!1,this.formats="formats"in n?new c5e.Formats(n.formats):null,this.then=n.then,this.given=n.given,this.extensions=(s=n.extensions)!==null&&s!==void 0?s:null}get enabled(){return(0,Fs.__classPrivateFieldGet)(this,Ov,"f")||this.overrides!==void 0}set enabled(e){(0,Fs.__classPrivateFieldSet)(this,Ov,e,"f")}static isEnabled(e,n){return n==="all"||n==="recommended"&&e.recommended}getSeverityForSource(e,n){if(this.overrides===void 0||this.overrides.definition.size===0)return this.severity;const i=(0,xB.relative)((0,xB.dirname)(this.overrides.rulesetSource),e),a=[];for(const[c,l]of this.overrides.definition.entries())(0,l5e.minimatch)(i,c)&&a.push(l);if(a.length===0)return this.severity;let o=this.severity,r="";const s=(0,o5e.pathToPointer)(n);for(const c of a)for(const[l,u]of c.entries())l.length>=r.length&&(s===l||s.startsWith(`${l}/`))&&(r=l,o=u);return o}get severity(){return(0,Fs.__classPrivateFieldGet)(this,kv,"f")}set severity(e){e===void 0?(0,Fs.__classPrivateFieldSet)(this,kv,DB.DEFAULT_SEVERITY_LEVEL,"f"):(0,Fs.__classPrivateFieldSet)(this,kv,(0,DB.getDiagnosticSeverity)(e),"f")}get then(){return(0,Fs.__classPrivateFieldGet)(this,L$,"f")}set then(e){(0,Fs.__classPrivateFieldSet)(this,L$,Array.isArray(e)?e:[e],"f")}get given(){return(0,Fs.__classPrivateFieldGet)(this,bd,"f")}set given(e){const n=Array.isArray(e)?e:[e];(0,Fs.__classPrivateFieldSet)(this,bd,this.owner.hasComplexAliases?n:n.flatMap(i=>(0,kB.resolveAlias)(this.owner.aliases,i,null)).filter(s5e.isString),"f")}getGivenForFormats(e){return this.owner.hasComplexAliases?(0,Fs.__classPrivateFieldGet)(this,bd,"f").flatMap(n=>(0,kB.resolveAlias)(this.owner.aliases,n,e)):(0,Fs.__classPrivateFieldGet)(this,bd,"f")}matchesFormat(e){if(this.formats===null)return!0;if(e===null)return!1;for(const n of this.formats)if(e.has(n))return!0;return!1}clone(){return new kR(this.name,this.definition,this.owner)}toJSON(){return{name:this.name,recommended:this.recommended,enabled:this.enabled,description:this.description,message:this.message,documentationUrl:this.documentationUrl,severity:this.severity,resolved:this.resolved,formats:this.formats,then:this.then.map(e=>({...e,function:e.function.name})),given:Array.isArray(this.definition.given)?this.definition.given:[this.definition.given],owner:this.owner.id,extensions:this.extensions}}}r0.Rule=kR;kv=new WeakMap,Ov=new WeakMap,L$=new WeakMap,bd=new WeakMap;var ax={},Gl={},jb={};Object.defineProperty(jb,"__esModule",{value:!0});jb.isAggregateError=void 0;const u5e=sr;function f5e(t){return(0,u5e.isError)(t)&&t.constructor.name==="AggregateError"}jb.isAggregateError=f5e;Object.defineProperty(Gl,"__esModule",{value:!0});Gl.convertAjvErrors=Gl.RulesetValidationError=void 0;const p5e=jb;class yee extends Error{constructor(e,n,i){super(n),this.code=e,this.message=n,this.path=i}}Gl.RulesetValidationError=yee;const h5e=/^\/rules\/[^/]+/,OB=/^\/(?:aliases|extends|overrides(?:\/\d+\/extends)?)/;function d5e(t){const e=[...t].sort((i,a)=>{const o=i.instancePath.length-a.instancePath.length;return o===0?i.keyword==="errorMessage"&&a.keyword!=="errorMessage"?-1:0:o}).filter((i,a,o)=>a===0||o[a-1].instancePath!==i.instancePath),n=[];e:for(let i=0;i{var a;if(i.keyword==="x-spectral-runtime")return gee(i.params.errors);const o=i.instancePath.slice(1).split("/");return new yee(vee(o,i.keyword),(a=i.message)!==null&&a!==void 0?a:"unknown error",o)})}Gl.convertAjvErrors=d5e;function gee(t){return(0,p5e.isAggregateError)(t)?t.errors.flatMap(gee):t}function vee(t,e){if(t.length===0)return"generic-validation-error";if(t.length===1&&e!=="errorMessage")return"invalid-ruleset-definition";switch(t[0]){case"rules":return m5e(t);case"parserOptions":return"invalid-parser-options-definition";case"aliases":return g5e(t);case"extends":return"invalid-extend-definition";case"overrides":return y5e(t,e);case"formats":return t.length===1?"invalid-ruleset-definition":"invalid-format";default:return"generic-validation-error"}}function m5e(t){return t.length===3&&t[2]==="severity"?"invalid-severity":t.length===4&&t[2]==="formats"?"invalid-format":t.length===4&&t[2]==="given"?"invalid-given-definition":"invalid-rule-definition"}function y5e(t,e){return t.length>=3?vee(t.slice(2),e):"invalid-override-definition"}function g5e(t){if(t.length===6){if(t[4]==="given")return"invalid-given-definition";if(t[4]==="formats")return"invalid-format"}return"invalid-alias-definition"}var yh={},sx={},JC={exports:{}},xf={},Qa={},Pg={},n0={},Et={},bg={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.regexpCode=t.getEsmExportName=t.getProperty=t.safeStringify=t.stringify=t.strConcat=t.addCodeArg=t.str=t._=t.nil=t._Code=t.Name=t.IDENTIFIER=t._CodeOrName=void 0;class e{}t._CodeOrName=e,t.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class n extends e{constructor(P){if(super(),!t.IDENTIFIER.test(P))throw new Error("CodeGen: name must be a valid identifier");this.str=P}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}t.Name=n;class i extends e{constructor(P){super(),this._items=typeof P=="string"?[P]:P}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const P=this._items[0];return P===""||P==='""'}get str(){var P;return(P=this._str)!==null&&P!==void 0?P:this._str=this._items.reduce((A,_)=>`${A}${_}`,"")}get names(){var P;return(P=this._names)!==null&&P!==void 0?P:this._names=this._items.reduce((A,_)=>(_ instanceof n&&(A[_.str]=(A[_.str]||0)+1),A),{})}}t._Code=i,t.nil=new i("");function a(v,...P){const A=[v[0]];let _=0;for(;_{if(f.scopePath===void 0)throw new Error(`CodeGen: name "${f}" has no value`);return(0,e._)`${l}${f.scopePath}`})}scopeCode(l=this._values,u,f){return this._reduceValues(l,h=>{if(h.value===void 0)throw new Error(`CodeGen: name "${h}" has no value`);return h.value.code},u,f)}_reduceValues(l,u,f={},h){let d=e.nil;for(const m in l){const g=l[m];if(!g)continue;const b=f[m]=f[m]||new Map;g.forEach(v=>{if(b.has(v))return;b.set(v,i.Started);let P=u(v);if(P){const A=this.opts.es5?t.varKinds.var:t.varKinds.const;d=(0,e._)`${d}${A} ${v} = ${P};${this.opts._n}`}else if(P=h==null?void 0:h(v))d=(0,e._)`${d}${P}${this.opts._n}`;else throw new n(v);b.set(v,i.Completed)})}return d}}t.ValueScope=s})(QC);(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.or=t.and=t.not=t.CodeGen=t.operators=t.varKinds=t.ValueScopeName=t.ValueScope=t.Scope=t.Name=t.regexpCode=t.stringify=t.getProperty=t.nil=t.strConcat=t.str=t._=void 0;const e=bg,n=QC;var i=bg;Object.defineProperty(t,"_",{enumerable:!0,get:function(){return i._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return i.str}}),Object.defineProperty(t,"strConcat",{enumerable:!0,get:function(){return i.strConcat}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return i.nil}}),Object.defineProperty(t,"getProperty",{enumerable:!0,get:function(){return i.getProperty}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return i.stringify}}),Object.defineProperty(t,"regexpCode",{enumerable:!0,get:function(){return i.regexpCode}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return i.Name}});var a=QC;Object.defineProperty(t,"Scope",{enumerable:!0,get:function(){return a.Scope}}),Object.defineProperty(t,"ValueScope",{enumerable:!0,get:function(){return a.ValueScope}}),Object.defineProperty(t,"ValueScopeName",{enumerable:!0,get:function(){return a.ValueScopeName}}),Object.defineProperty(t,"varKinds",{enumerable:!0,get:function(){return a.varKinds}}),t.operators={GT:new e._Code(">"),GTE:new e._Code(">="),LT:new e._Code("<"),LTE:new e._Code("<="),EQ:new e._Code("==="),NEQ:new e._Code("!=="),NOT:new e._Code("!"),OR:new e._Code("||"),AND:new e._Code("&&"),ADD:new e._Code("+")};class o{optimizeNodes(){return this}optimizeNames(T,W){return this}}class r extends o{constructor(T,W,le){super(),this.varKind=T,this.name=W,this.rhs=le}render({es5:T,_n:W}){const le=T?n.varKinds.var:this.varKind,ve=this.rhs===void 0?"":` = ${this.rhs}`;return`${le} ${this.name}${ve};`+W}optimizeNames(T,W){if(T[this.name.str])return this.rhs&&(this.rhs=D(this.rhs,T,W)),this}get names(){return this.rhs instanceof e._CodeOrName?this.rhs.names:{}}}class s extends o{constructor(T,W,le){super(),this.lhs=T,this.rhs=W,this.sideEffects=le}render({_n:T}){return`${this.lhs} = ${this.rhs};`+T}optimizeNames(T,W){if(!(this.lhs instanceof e.Name&&!T[this.lhs.str]&&!this.sideEffects))return this.rhs=D(this.rhs,T,W),this}get names(){const T=this.lhs instanceof e.Name?{}:{...this.lhs.names};return S(T,this.rhs)}}class c extends s{constructor(T,W,le,ve){super(T,le,ve),this.op=W}render({_n:T}){return`${this.lhs} ${this.op}= ${this.rhs};`+T}}class l extends o{constructor(T){super(),this.label=T,this.names={}}render({_n:T}){return`${this.label}:`+T}}class u extends o{constructor(T){super(),this.label=T,this.names={}}render({_n:T}){return`break${this.label?` ${this.label}`:""};`+T}}class f extends o{constructor(T){super(),this.error=T}render({_n:T}){return`throw ${this.error};`+T}get names(){return this.error.names}}class h extends o{constructor(T){super(),this.code=T}render({_n:T}){return`${this.code};`+T}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(T,W){return this.code=D(this.code,T,W),this}get names(){return this.code instanceof e._CodeOrName?this.code.names:{}}}class d extends o{constructor(T=[]){super(),this.nodes=T}render(T){return this.nodes.reduce((W,le)=>W+le.render(T),"")}optimizeNodes(){const{nodes:T}=this;let W=T.length;for(;W--;){const le=T[W].optimizeNodes();Array.isArray(le)?T.splice(W,1,...le):le?T[W]=le:T.splice(W,1)}return T.length>0?this:void 0}optimizeNames(T,W){const{nodes:le}=this;let ve=le.length;for(;ve--;){const ae=le[ve];ae.optimizeNames(T,W)||(M(T,ae.names),le.splice(ve,1))}return le.length>0?this:void 0}get names(){return this.nodes.reduce((T,W)=>F(T,W.names),{})}}class m extends d{render(T){return"{"+T._n+super.render(T)+"}"+T._n}}class g extends d{}class b extends m{}b.kind="else";class v extends m{constructor(T,W){super(W),this.condition=T}render(T){let W=`if(${this.condition})`+super.render(T);return this.else&&(W+="else "+this.else.render(T)),W}optimizeNodes(){super.optimizeNodes();const T=this.condition;if(T===!0)return this.nodes;let W=this.else;if(W){const le=W.optimizeNodes();W=this.else=Array.isArray(le)?new b(le):le}if(W)return T===!1?W instanceof v?W:W.nodes:this.nodes.length?this:new v(C(T),W instanceof v?[W]:W.nodes);if(!(T===!1||!this.nodes.length))return this}optimizeNames(T,W){var le;if(this.else=(le=this.else)===null||le===void 0?void 0:le.optimizeNames(T,W),!!(super.optimizeNames(T,W)||this.else))return this.condition=D(this.condition,T,W),this}get names(){const T=super.names;return S(T,this.condition),this.else&&F(T,this.else.names),T}}v.kind="if";class P extends m{}P.kind="for";class A extends P{constructor(T){super(),this.iteration=T}render(T){return`for(${this.iteration})`+super.render(T)}optimizeNames(T,W){if(super.optimizeNames(T,W))return this.iteration=D(this.iteration,T,W),this}get names(){return F(super.names,this.iteration.names)}}class _ extends P{constructor(T,W,le,ve){super(),this.varKind=T,this.name=W,this.from=le,this.to=ve}render(T){const W=T.es5?n.varKinds.var:this.varKind,{name:le,from:ve,to:ae}=this;return`for(${W} ${le}=${ve}; ${le}<${ae}; ${le}++)`+super.render(T)}get names(){const T=S(super.names,this.from);return S(T,this.to)}}class x extends P{constructor(T,W,le,ve){super(),this.loop=T,this.varKind=W,this.name=le,this.iterable=ve}render(T){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(T)}optimizeNames(T,W){if(super.optimizeNames(T,W))return this.iterable=D(this.iterable,T,W),this}get names(){return F(super.names,this.iterable.names)}}class N extends m{constructor(T,W,le){super(),this.name=T,this.args=W,this.async=le}render(T){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(T)}}N.kind="func";class j extends d{render(T){return"return "+super.render(T)}}j.kind="return";class I extends m{render(T){let W="try"+super.render(T);return this.catch&&(W+=this.catch.render(T)),this.finally&&(W+=this.finally.render(T)),W}optimizeNodes(){var T,W;return super.optimizeNodes(),(T=this.catch)===null||T===void 0||T.optimizeNodes(),(W=this.finally)===null||W===void 0||W.optimizeNodes(),this}optimizeNames(T,W){var le,ve;return super.optimizeNames(T,W),(le=this.catch)===null||le===void 0||le.optimizeNames(T,W),(ve=this.finally)===null||ve===void 0||ve.optimizeNames(T,W),this}get names(){const T=super.names;return this.catch&&F(T,this.catch.names),this.finally&&F(T,this.finally.names),T}}class E extends m{constructor(T){super(),this.error=T}render(T){return`catch(${this.error})`+super.render(T)}}E.kind="catch";class L extends m{render(T){return"finally"+super.render(T)}}L.kind="finally";class q{constructor(T,W={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...W,_n:W.lines?` -`:""},this._extScope=T,this._scope=new n.Scope({parent:T}),this._nodes=[new g]}toString(){return this._root.render(this.opts)}name(T){return this._scope.name(T)}scopeName(T){return this._extScope.name(T)}scopeValue(T,W){const le=this._extScope.value(T,W);return(this._values[le.prefix]||(this._values[le.prefix]=new Set)).add(le),le}getScopeValue(T,W){return this._extScope.getValue(T,W)}scopeRefs(T){return this._extScope.scopeRefs(T,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(T,W,le,ve){const ae=this._scope.toName(W);return le!==void 0&&ve&&(this._constants[ae.str]=le),this._leafNode(new r(T,ae,le)),ae}const(T,W,le){return this._def(n.varKinds.const,T,W,le)}let(T,W,le){return this._def(n.varKinds.let,T,W,le)}var(T,W,le){return this._def(n.varKinds.var,T,W,le)}assign(T,W,le){return this._leafNode(new s(T,W,le))}add(T,W){return this._leafNode(new c(T,t.operators.ADD,W))}code(T){return typeof T=="function"?T():T!==e.nil&&this._leafNode(new h(T)),this}object(...T){const W=["{"];for(const[le,ve]of T)W.length>1&&W.push(","),W.push(le),(le!==ve||this.opts.es5)&&(W.push(":"),(0,e.addCodeArg)(W,ve));return W.push("}"),new e._Code(W)}if(T,W,le){if(this._blockNode(new v(T)),W&&le)this.code(W).else().code(le).endIf();else if(W)this.code(W).endIf();else if(le)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(T){return this._elseNode(new v(T))}else(){return this._elseNode(new b)}endIf(){return this._endBlockNode(v,b)}_for(T,W){return this._blockNode(T),W&&this.code(W).endFor(),this}for(T,W){return this._for(new A(T),W)}forRange(T,W,le,ve,ae=this.opts.es5?n.varKinds.var:n.varKinds.let){const _e=this._scope.toName(T);return this._for(new _(ae,_e,W,le),()=>ve(_e))}forOf(T,W,le,ve=n.varKinds.const){const ae=this._scope.toName(T);if(this.opts.es5){const _e=W instanceof e.Name?W:this.var("_arr",W);return this.forRange("_i",0,(0,e._)`${_e}.length`,he=>{this.var(ae,(0,e._)`${_e}[${he}]`),le(ae)})}return this._for(new x("of",ve,ae,W),()=>le(ae))}forIn(T,W,le,ve=this.opts.es5?n.varKinds.var:n.varKinds.const){if(this.opts.ownProperties)return this.forOf(T,(0,e._)`Object.keys(${W})`,le);const ae=this._scope.toName(T);return this._for(new x("in",ve,ae,W),()=>le(ae))}endFor(){return this._endBlockNode(P)}label(T){return this._leafNode(new l(T))}break(T){return this._leafNode(new u(T))}return(T){const W=new j;if(this._blockNode(W),this.code(T),W.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(j)}try(T,W,le){if(!W&&!le)throw new Error('CodeGen: "try" without "catch" and "finally"');const ve=new I;if(this._blockNode(ve),this.code(T),W){const ae=this.name("e");this._currNode=ve.catch=new E(ae),W(ae)}return le&&(this._currNode=ve.finally=new L,this.code(le)),this._endBlockNode(E,L)}throw(T){return this._leafNode(new f(T))}block(T,W){return this._blockStarts.push(this._nodes.length),T&&this.code(T).endBlock(W),this}endBlock(T){const W=this._blockStarts.pop();if(W===void 0)throw new Error("CodeGen: not in self-balancing block");const le=this._nodes.length-W;if(le<0||T!==void 0&&le!==T)throw new Error(`CodeGen: wrong number of nodes: ${le} vs ${T} expected`);return this._nodes.length=W,this}func(T,W=e.nil,le,ve){return this._blockNode(new N(T,W,le)),ve&&this.code(ve).endFunc(),this}endFunc(){return this._endBlockNode(N)}optimize(T=1){for(;T-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(T){return this._currNode.nodes.push(T),this}_blockNode(T){this._currNode.nodes.push(T),this._nodes.push(T)}_endBlockNode(T,W){const le=this._currNode;if(le instanceof T||W&&le instanceof W)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${W?`${T.kind}/${W.kind}`:T.kind}"`)}_elseNode(T){const W=this._currNode;if(!(W instanceof v))throw new Error('CodeGen: "else" without "if"');return this._currNode=W.else=T,this}get _root(){return this._nodes[0]}get _currNode(){const T=this._nodes;return T[T.length-1]}set _currNode(T){const W=this._nodes;W[W.length-1]=T}}t.CodeGen=q;function F(V,T){for(const W in T)V[W]=(V[W]||0)+(T[W]||0);return V}function S(V,T){return T instanceof e._CodeOrName?F(V,T.names):V}function D(V,T,W){if(V instanceof e.Name)return le(V);if(!ve(V))return V;return new e._Code(V._items.reduce((ae,_e)=>(_e instanceof e.Name&&(_e=le(_e)),_e instanceof e._Code?ae.push(..._e._items):ae.push(_e),ae),[]));function le(ae){const _e=W[ae.str];return _e===void 0||T[ae.str]!==1?ae:(delete T[ae.str],_e)}function ve(ae){return ae instanceof e._Code&&ae._items.some(_e=>_e instanceof e.Name&&T[_e.str]===1&&W[_e.str]!==void 0)}}function M(V,T){for(const W in T)V[W]=(V[W]||0)-(T[W]||0)}function C(V){return typeof V=="boolean"||typeof V=="number"||V===null?!V:(0,e._)`!${z(V)}`}t.not=C;const H=R(t.operators.AND);function X(...V){return V.reduce(H)}t.and=X;const ie=R(t.operators.OR);function U(...V){return V.reduce(ie)}t.or=U;function R(V){return(T,W)=>T===e.nil?W:W===e.nil?T:(0,e._)`${z(T)} ${V} ${z(W)}`}function z(V){return V instanceof e.Name?V:(0,e._)`(${V})`}})(Et);var it={};Object.defineProperty(it,"__esModule",{value:!0});it.checkStrictMode=it.getErrorPath=it.Type=it.useFunc=it.setEvaluated=it.evaluatedPropsToName=it.mergeEvaluated=it.eachItem=it.unescapeJsonPointer=it.escapeJsonPointer=it.escapeFragment=it.unescapeFragment=it.schemaRefOrVal=it.schemaHasRulesButRef=it.schemaHasRules=it.checkUnknownRules=it.alwaysValidSchema=it.toHash=void 0;const Nr=Et,v5e=bg;function P5e(t){const e={};for(const n of t)e[n]=!0;return e}it.toHash=P5e;function b5e(t,e){return typeof e=="boolean"?e:Object.keys(e).length===0?!0:(Pee(t,e),!bee(e,t.self.RULES.all))}it.alwaysValidSchema=b5e;function Pee(t,e=t.schema){const{opts:n,self:i}=t;if(!n.strictSchema||typeof e=="boolean")return;const a=i.RULES.keywords;for(const o in e)a[o]||Aee(t,`unknown keyword: "${o}"`)}it.checkUnknownRules=Pee;function bee(t,e){if(typeof t=="boolean")return!t;for(const n in t)if(e[n])return!0;return!1}it.schemaHasRules=bee;function w5e(t,e){if(typeof t=="boolean")return!t;for(const n in t)if(n!=="$ref"&&e.all[n])return!0;return!1}it.schemaHasRulesButRef=w5e;function $5e({topSchemaRef:t,schemaPath:e},n,i,a){if(!a){if(typeof n=="number"||typeof n=="boolean")return n;if(typeof n=="string")return(0,Nr._)`${n}`}return(0,Nr._)`${t}${e}${(0,Nr.getProperty)(i)}`}it.schemaRefOrVal=$5e;function A5e(t){return wee(decodeURIComponent(t))}it.unescapeFragment=A5e;function S5e(t){return encodeURIComponent(OR(t))}it.escapeFragment=S5e;function OR(t){return typeof t=="number"?`${t}`:t.replace(/~/g,"~0").replace(/\//g,"~1")}it.escapeJsonPointer=OR;function wee(t){return t.replace(/~1/g,"/").replace(/~0/g,"~")}it.unescapeJsonPointer=wee;function _5e(t,e){if(Array.isArray(t))for(const n of t)e(n);else e(t)}it.eachItem=_5e;function EB({mergeNames:t,mergeToName:e,mergeValues:n,resultToName:i}){return(a,o,r,s)=>{const c=r===void 0?o:r instanceof Nr.Name?(o instanceof Nr.Name?t(a,o,r):e(a,o,r),r):o instanceof Nr.Name?(e(a,r,o),o):n(o,r);return s===Nr.Name&&!(c instanceof Nr.Name)?i(a,c):c}}it.mergeEvaluated={props:EB({mergeNames:(t,e,n)=>t.if((0,Nr._)`${n} !== true && ${e} !== undefined`,()=>{t.if((0,Nr._)`${e} === true`,()=>t.assign(n,!0),()=>t.assign(n,(0,Nr._)`${n} || {}`).code((0,Nr._)`Object.assign(${n}, ${e})`))}),mergeToName:(t,e,n)=>t.if((0,Nr._)`${n} !== true`,()=>{e===!0?t.assign(n,!0):(t.assign(n,(0,Nr._)`${n} || {}`),ER(t,n,e))}),mergeValues:(t,e)=>t===!0?!0:{...t,...e},resultToName:$ee}),items:EB({mergeNames:(t,e,n)=>t.if((0,Nr._)`${n} !== true && ${e} !== undefined`,()=>t.assign(n,(0,Nr._)`${e} === true ? true : ${n} > ${e} ? ${n} : ${e}`)),mergeToName:(t,e,n)=>t.if((0,Nr._)`${n} !== true`,()=>t.assign(n,e===!0?!0:(0,Nr._)`${n} > ${e} ? ${n} : ${e}`)),mergeValues:(t,e)=>t===!0?!0:Math.max(t,e),resultToName:(t,e)=>t.var("items",e)})};function $ee(t,e){if(e===!0)return t.var("props",!0);const n=t.var("props",(0,Nr._)`{}`);return e!==void 0&&ER(t,n,e),n}it.evaluatedPropsToName=$ee;function ER(t,e,n){Object.keys(n).forEach(i=>t.assign((0,Nr._)`${e}${(0,Nr.getProperty)(i)}`,!0))}it.setEvaluated=ER;const IB={};function x5e(t,e){return t.scopeValue("func",{ref:e,code:IB[e.code]||(IB[e.code]=new v5e._Code(e.code))})}it.useFunc=x5e;var ZC;(function(t){t[t.Num=0]="Num",t[t.Str=1]="Str"})(ZC||(it.Type=ZC={}));function D5e(t,e,n){if(t instanceof Nr.Name){const i=e===ZC.Num;return n?i?(0,Nr._)`"[" + ${t} + "]"`:(0,Nr._)`"['" + ${t} + "']"`:i?(0,Nr._)`"/" + ${t}`:(0,Nr._)`"/" + ${t}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return n?(0,Nr.getProperty)(t).toString():"/"+OR(t)}it.getErrorPath=D5e;function Aee(t,e,n=t.opts.strictSchema){if(n){if(e=`strict mode: ${e}`,n===!0)throw new Error(e);t.self.logger.warn(e)}}it.checkStrictMode=Aee;var Ia={};Object.defineProperty(Ia,"__esModule",{value:!0});const Bi=Et,k5e={data:new Bi.Name("data"),valCxt:new Bi.Name("valCxt"),instancePath:new Bi.Name("instancePath"),parentData:new Bi.Name("parentData"),parentDataProperty:new Bi.Name("parentDataProperty"),rootData:new Bi.Name("rootData"),dynamicAnchors:new Bi.Name("dynamicAnchors"),vErrors:new Bi.Name("vErrors"),errors:new Bi.Name("errors"),this:new Bi.Name("this"),self:new Bi.Name("self"),scope:new Bi.Name("scope"),json:new Bi.Name("json"),jsonPos:new Bi.Name("jsonPos"),jsonLen:new Bi.Name("jsonLen"),jsonPart:new Bi.Name("jsonPart")};Ia.default=k5e;(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.extendErrors=t.resetErrorsCount=t.reportExtraError=t.reportError=t.keyword$DataError=t.keywordError=void 0;const e=Et,n=it,i=Ia;t.keywordError={message:({keyword:b})=>(0,e.str)`must pass "${b}" keyword validation`},t.keyword$DataError={message:({keyword:b,schemaType:v})=>v?(0,e.str)`"${b}" keyword must be ${v} ($data)`:(0,e.str)`"${b}" keyword is invalid ($data)`};function a(b,v=t.keywordError,P,A){const{it:_}=b,{gen:x,compositeRule:N,allErrors:j}=_,I=f(b,v,P);A??(N||j)?c(x,I):l(_,(0,e._)`[${I}]`)}t.reportError=a;function o(b,v=t.keywordError,P){const{it:A}=b,{gen:_,compositeRule:x,allErrors:N}=A,j=f(b,v,P);c(_,j),x||N||l(A,i.default.vErrors)}t.reportExtraError=o;function r(b,v){b.assign(i.default.errors,v),b.if((0,e._)`${i.default.vErrors} !== null`,()=>b.if(v,()=>b.assign((0,e._)`${i.default.vErrors}.length`,v),()=>b.assign(i.default.vErrors,null)))}t.resetErrorsCount=r;function s({gen:b,keyword:v,schemaValue:P,data:A,errsCount:_,it:x}){if(_===void 0)throw new Error("ajv implementation error");const N=b.name("err");b.forRange("i",_,i.default.errors,j=>{b.const(N,(0,e._)`${i.default.vErrors}[${j}]`),b.if((0,e._)`${N}.instancePath === undefined`,()=>b.assign((0,e._)`${N}.instancePath`,(0,e.strConcat)(i.default.instancePath,x.errorPath))),b.assign((0,e._)`${N}.schemaPath`,(0,e.str)`${x.errSchemaPath}/${v}`),x.opts.verbose&&(b.assign((0,e._)`${N}.schema`,P),b.assign((0,e._)`${N}.data`,A))})}t.extendErrors=s;function c(b,v){const P=b.const("err",v);b.if((0,e._)`${i.default.vErrors} === null`,()=>b.assign(i.default.vErrors,(0,e._)`[${P}]`),(0,e._)`${i.default.vErrors}.push(${P})`),b.code((0,e._)`${i.default.errors}++`)}function l(b,v){const{gen:P,validateName:A,schemaEnv:_}=b;_.$async?P.throw((0,e._)`new ${b.ValidationError}(${v})`):(P.assign((0,e._)`${A}.errors`,v),P.return(!1))}const u={keyword:new e.Name("keyword"),schemaPath:new e.Name("schemaPath"),params:new e.Name("params"),propertyName:new e.Name("propertyName"),message:new e.Name("message"),schema:new e.Name("schema"),parentSchema:new e.Name("parentSchema")};function f(b,v,P){const{createErrors:A}=b.it;return A===!1?(0,e._)`{}`:h(b,v,P)}function h(b,v,P={}){const{gen:A,it:_}=b,x=[d(_,P),m(b,P)];return g(b,v,x),A.object(...x)}function d({errorPath:b},{instancePath:v}){const P=v?(0,e.str)`${b}${(0,n.getErrorPath)(v,n.Type.Str)}`:b;return[i.default.instancePath,(0,e.strConcat)(i.default.instancePath,P)]}function m({keyword:b,it:{errSchemaPath:v}},{schemaPath:P,parentSchema:A}){let _=A?v:(0,e.str)`${v}/${b}`;return P&&(_=(0,e.str)`${_}${(0,n.getErrorPath)(P,n.Type.Str)}`),[u.schemaPath,_]}function g(b,{params:v,message:P},A){const{keyword:_,data:x,schemaValue:N,it:j}=b,{opts:I,propertyName:E,topSchemaRef:L,schemaPath:q}=j;A.push([u.keyword,_],[u.params,typeof v=="function"?v(b):v||(0,e._)`{}`]),I.messages&&A.push([u.message,typeof P=="function"?P(b):P]),I.verbose&&A.push([u.schema,N],[u.parentSchema,(0,e._)`${L}${q}`],[i.default.data,x]),E&&A.push([u.propertyName,E])}})(n0);Object.defineProperty(Pg,"__esModule",{value:!0});Pg.boolOrEmptySchema=Pg.topBoolOrEmptySchema=void 0;const O5e=n0,E5e=Et,I5e=Ia,C5e={message:"boolean schema is false"};function T5e(t){const{gen:e,schema:n,validateName:i}=t;n===!1?See(t,!1):typeof n=="object"&&n.$async===!0?e.return(I5e.default.data):(e.assign((0,E5e._)`${i}.errors`,null),e.return(!0))}Pg.topBoolOrEmptySchema=T5e;function j5e(t,e){const{gen:n,schema:i}=t;i===!1?(n.var(e,!1),See(t)):n.var(e,!0)}Pg.boolOrEmptySchema=j5e;function See(t,e){const{gen:n,data:i}=t,a={gen:n,keyword:"false schema",data:i,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:t};(0,O5e.reportError)(a,C5e,void 0,e)}var ai={},gh={};Object.defineProperty(gh,"__esModule",{value:!0});gh.getRules=gh.isJSONType=void 0;const M5e=["string","number","integer","boolean","null","object","array"],R5e=new Set(M5e);function N5e(t){return typeof t=="string"&&R5e.has(t)}gh.isJSONType=N5e;function L5e(){const t={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...t,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},t.number,t.string,t.array,t.object],post:{rules:[]},all:{},keywords:{}}}gh.getRules=L5e;var jc={};Object.defineProperty(jc,"__esModule",{value:!0});jc.shouldUseRule=jc.shouldUseGroup=jc.schemaHasRulesForType=void 0;function F5e({schema:t,self:e},n){const i=e.RULES.types[n];return i&&i!==!0&&_ee(t,i)}jc.schemaHasRulesForType=F5e;function _ee(t,e){return e.rules.some(n=>xee(t,n))}jc.shouldUseGroup=_ee;function xee(t,e){var n;return t[e.keyword]!==void 0||((n=e.definition.implements)===null||n===void 0?void 0:n.some(i=>t[i]!==void 0))}jc.shouldUseRule=xee;Object.defineProperty(ai,"__esModule",{value:!0});ai.reportTypeError=ai.checkDataTypes=ai.checkDataType=ai.coerceAndCheckDataType=ai.getJSONTypes=ai.getSchemaTypes=ai.DataType=void 0;const q5e=gh,z5e=jc,U5e=n0,qt=Et,Dee=it;var om;(function(t){t[t.Correct=0]="Correct",t[t.Wrong=1]="Wrong"})(om||(ai.DataType=om={}));function B5e(t){const e=kee(t.type);if(e.includes("null")){if(t.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!e.length&&t.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');t.nullable===!0&&e.push("null")}return e}ai.getSchemaTypes=B5e;function kee(t){const e=Array.isArray(t)?t:t?[t]:[];if(e.every(q5e.isJSONType))return e;throw new Error("type must be JSONType or JSONType[]: "+e.join(","))}ai.getJSONTypes=kee;function V5e(t,e){const{gen:n,data:i,opts:a}=t,o=W5e(e,a.coerceTypes),r=e.length>0&&!(o.length===0&&e.length===1&&(0,z5e.schemaHasRulesForType)(t,e[0]));if(r){const s=IR(e,i,a.strictNumbers,om.Wrong);n.if(s,()=>{o.length?H5e(t,e,o):CR(t)})}return r}ai.coerceAndCheckDataType=V5e;const Oee=new Set(["string","number","integer","boolean","null"]);function W5e(t,e){return e?t.filter(n=>Oee.has(n)||e==="array"&&n==="array"):[]}function H5e(t,e,n){const{gen:i,data:a,opts:o}=t,r=i.let("dataType",(0,qt._)`typeof ${a}`),s=i.let("coerced",(0,qt._)`undefined`);o.coerceTypes==="array"&&i.if((0,qt._)`${r} == 'object' && Array.isArray(${a}) && ${a}.length == 1`,()=>i.assign(a,(0,qt._)`${a}[0]`).assign(r,(0,qt._)`typeof ${a}`).if(IR(e,a,o.strictNumbers),()=>i.assign(s,a))),i.if((0,qt._)`${s} !== undefined`);for(const l of n)(Oee.has(l)||l==="array"&&o.coerceTypes==="array")&&c(l);i.else(),CR(t),i.endIf(),i.if((0,qt._)`${s} !== undefined`,()=>{i.assign(a,s),G5e(t,s)});function c(l){switch(l){case"string":i.elseIf((0,qt._)`${r} == "number" || ${r} == "boolean"`).assign(s,(0,qt._)`"" + ${a}`).elseIf((0,qt._)`${a} === null`).assign(s,(0,qt._)`""`);return;case"number":i.elseIf((0,qt._)`${r} == "boolean" || ${a} === null - || (${r} == "string" && ${a} && ${a} == +${a})`).assign(s,(0,qt._)`+${a}`);return;case"integer":i.elseIf((0,qt._)`${r} === "boolean" || ${a} === null - || (${r} === "string" && ${a} && ${a} == +${a} && !(${a} % 1))`).assign(s,(0,qt._)`+${a}`);return;case"boolean":i.elseIf((0,qt._)`${a} === "false" || ${a} === 0 || ${a} === null`).assign(s,!1).elseIf((0,qt._)`${a} === "true" || ${a} === 1`).assign(s,!0);return;case"null":i.elseIf((0,qt._)`${a} === "" || ${a} === 0 || ${a} === false`),i.assign(s,null);return;case"array":i.elseIf((0,qt._)`${r} === "string" || ${r} === "number" - || ${r} === "boolean" || ${a} === null`).assign(s,(0,qt._)`[${a}]`)}}}function G5e({gen:t,parentData:e,parentDataProperty:n},i){t.if((0,qt._)`${e} !== undefined`,()=>t.assign((0,qt._)`${e}[${n}]`,i))}function XC(t,e,n,i=om.Correct){const a=i===om.Correct?qt.operators.EQ:qt.operators.NEQ;let o;switch(t){case"null":return(0,qt._)`${e} ${a} null`;case"array":o=(0,qt._)`Array.isArray(${e})`;break;case"object":o=(0,qt._)`${e} && typeof ${e} == "object" && !Array.isArray(${e})`;break;case"integer":o=r((0,qt._)`!(${e} % 1) && !isNaN(${e})`);break;case"number":o=r();break;default:return(0,qt._)`typeof ${e} ${a} ${t}`}return i===om.Correct?o:(0,qt.not)(o);function r(s=qt.nil){return(0,qt.and)((0,qt._)`typeof ${e} == "number"`,s,n?(0,qt._)`isFinite(${e})`:qt.nil)}}ai.checkDataType=XC;function IR(t,e,n,i){if(t.length===1)return XC(t[0],e,n,i);let a;const o=(0,Dee.toHash)(t);if(o.array&&o.object){const r=(0,qt._)`typeof ${e} != "object"`;a=o.null?r:(0,qt._)`!${e} || ${r}`,delete o.null,delete o.array,delete o.object}else a=qt.nil;o.number&&delete o.integer;for(const r in o)a=(0,qt.and)(a,XC(r,e,n,i));return a}ai.checkDataTypes=IR;const K5e={message:({schema:t})=>`must be ${t}`,params:({schema:t,schemaValue:e})=>typeof t=="string"?(0,qt._)`{type: ${t}}`:(0,qt._)`{type: ${e}}`};function CR(t){const e=Y5e(t);(0,U5e.reportError)(e,K5e)}ai.reportTypeError=CR;function Y5e(t){const{gen:e,data:n,schema:i}=t,a=(0,Dee.schemaRefOrVal)(t,i,"type");return{gen:e,keyword:"type",data:n,schema:i.type,schemaCode:a,schemaValue:a,parentSchema:i,params:{},it:t}}var ox={};Object.defineProperty(ox,"__esModule",{value:!0});ox.assignDefaults=void 0;const sd=Et,J5e=it;function Q5e(t,e){const{properties:n,items:i}=t.schema;if(e==="object"&&n)for(const a in n)CB(t,a,n[a].default);else e==="array"&&Array.isArray(i)&&i.forEach((a,o)=>CB(t,o,a.default))}ox.assignDefaults=Q5e;function CB(t,e,n){const{gen:i,compositeRule:a,data:o,opts:r}=t;if(n===void 0)return;const s=(0,sd._)`${o}${(0,sd.getProperty)(e)}`;if(a){(0,J5e.checkStrictMode)(t,`default is ignored for: ${s}`);return}let c=(0,sd._)`${s} === undefined`;r.useDefaults==="empty"&&(c=(0,sd._)`${c} || ${s} === null || ${s} === ""`),i.if(c,(0,sd._)`${s} = ${(0,sd.stringify)(n)}`)}var Rl={},Gt={};Object.defineProperty(Gt,"__esModule",{value:!0});Gt.validateUnion=Gt.validateArray=Gt.usePattern=Gt.callValidateCode=Gt.schemaProperties=Gt.allSchemaProperties=Gt.noPropertyInData=Gt.propertyInData=Gt.isOwnProperty=Gt.hasPropFunc=Gt.reportMissingProp=Gt.checkMissingProp=Gt.checkReportMissingProp=void 0;const en=Et,TR=it,qu=Ia,Z5e=it;function X5e(t,e){const{gen:n,data:i,it:a}=t;n.if(MR(n,i,e,a.opts.ownProperties),()=>{t.setParams({missingProperty:(0,en._)`${e}`},!0),t.error()})}Gt.checkReportMissingProp=X5e;function eBe({gen:t,data:e,it:{opts:n}},i,a){return(0,en.or)(...i.map(o=>(0,en.and)(MR(t,e,o,n.ownProperties),(0,en._)`${a} = ${o}`)))}Gt.checkMissingProp=eBe;function tBe(t,e){t.setParams({missingProperty:e},!0),t.error()}Gt.reportMissingProp=tBe;function Eee(t){return t.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,en._)`Object.prototype.hasOwnProperty`})}Gt.hasPropFunc=Eee;function jR(t,e,n){return(0,en._)`${Eee(t)}.call(${e}, ${n})`}Gt.isOwnProperty=jR;function rBe(t,e,n,i){const a=(0,en._)`${e}${(0,en.getProperty)(n)} !== undefined`;return i?(0,en._)`${a} && ${jR(t,e,n)}`:a}Gt.propertyInData=rBe;function MR(t,e,n,i){const a=(0,en._)`${e}${(0,en.getProperty)(n)} === undefined`;return i?(0,en.or)(a,(0,en.not)(jR(t,e,n))):a}Gt.noPropertyInData=MR;function Iee(t){return t?Object.keys(t).filter(e=>e!=="__proto__"):[]}Gt.allSchemaProperties=Iee;function nBe(t,e){return Iee(e).filter(n=>!(0,TR.alwaysValidSchema)(t,e[n]))}Gt.schemaProperties=nBe;function iBe({schemaCode:t,data:e,it:{gen:n,topSchemaRef:i,schemaPath:a,errorPath:o},it:r},s,c,l){const u=l?(0,en._)`${t}, ${e}, ${i}${a}`:e,f=[[qu.default.instancePath,(0,en.strConcat)(qu.default.instancePath,o)],[qu.default.parentData,r.parentData],[qu.default.parentDataProperty,r.parentDataProperty],[qu.default.rootData,qu.default.rootData]];r.opts.dynamicRef&&f.push([qu.default.dynamicAnchors,qu.default.dynamicAnchors]);const h=(0,en._)`${u}, ${n.object(...f)}`;return c!==en.nil?(0,en._)`${s}.call(${c}, ${h})`:(0,en._)`${s}(${h})`}Gt.callValidateCode=iBe;const aBe=(0,en._)`new RegExp`;function sBe({gen:t,it:{opts:e}},n){const i=e.unicodeRegExp?"u":"",{regExp:a}=e.code,o=a(n,i);return t.scopeValue("pattern",{key:o.toString(),ref:o,code:(0,en._)`${a.code==="new RegExp"?aBe:(0,Z5e.useFunc)(t,a)}(${n}, ${i})`})}Gt.usePattern=sBe;function oBe(t){const{gen:e,data:n,keyword:i,it:a}=t,o=e.name("valid");if(a.allErrors){const s=e.let("valid",!0);return r(()=>e.assign(s,!1)),s}return e.var(o,!0),r(()=>e.break()),o;function r(s){const c=e.const("len",(0,en._)`${n}.length`);e.forRange("i",0,c,l=>{t.subschema({keyword:i,dataProp:l,dataPropType:TR.Type.Num},o),e.if((0,en.not)(o),s)})}}Gt.validateArray=oBe;function lBe(t){const{gen:e,schema:n,keyword:i,it:a}=t;if(!Array.isArray(n))throw new Error("ajv implementation error");if(n.some(c=>(0,TR.alwaysValidSchema)(a,c))&&!a.opts.unevaluated)return;const r=e.let("valid",!1),s=e.name("_valid");e.block(()=>n.forEach((c,l)=>{const u=t.subschema({keyword:i,schemaProp:l,compositeRule:!0},s);e.assign(r,(0,en._)`${r} || ${s}`),t.mergeValidEvaluated(u,s)||e.if((0,en.not)(r))})),t.result(r,()=>t.reset(),()=>t.error(!0))}Gt.validateUnion=lBe;Object.defineProperty(Rl,"__esModule",{value:!0});Rl.validateKeywordUsage=Rl.validSchemaType=Rl.funcKeywordCode=Rl.macroKeywordCode=void 0;const ua=Et,yp=Ia,cBe=Gt,uBe=n0;function fBe(t,e){const{gen:n,keyword:i,schema:a,parentSchema:o,it:r}=t,s=e.macro.call(r.self,a,o,r),c=Cee(n,i,s);r.opts.validateSchema!==!1&&r.self.validateSchema(s,!0);const l=n.name("valid");t.subschema({schema:s,schemaPath:ua.nil,errSchemaPath:`${r.errSchemaPath}/${i}`,topSchemaRef:c,compositeRule:!0},l),t.pass(l,()=>t.error(!0))}Rl.macroKeywordCode=fBe;function pBe(t,e){var n;const{gen:i,keyword:a,schema:o,parentSchema:r,$data:s,it:c}=t;dBe(c,e);const l=!s&&e.compile?e.compile.call(c.self,o,r,c):e.validate,u=Cee(i,a,l),f=i.let("valid");t.block$data(f,h),t.ok((n=e.valid)!==null&&n!==void 0?n:f);function h(){if(e.errors===!1)g(),e.modifying&&TB(t),b(()=>t.error());else{const v=e.async?d():m();e.modifying&&TB(t),b(()=>hBe(t,v))}}function d(){const v=i.let("ruleErrs",null);return i.try(()=>g((0,ua._)`await `),P=>i.assign(f,!1).if((0,ua._)`${P} instanceof ${c.ValidationError}`,()=>i.assign(v,(0,ua._)`${P}.errors`),()=>i.throw(P))),v}function m(){const v=(0,ua._)`${u}.errors`;return i.assign(v,null),g(ua.nil),v}function g(v=e.async?(0,ua._)`await `:ua.nil){const P=c.opts.passContext?yp.default.this:yp.default.self,A=!("compile"in e&&!s||e.schema===!1);i.assign(f,(0,ua._)`${v}${(0,cBe.callValidateCode)(t,u,P,A)}`,e.modifying)}function b(v){var P;i.if((0,ua.not)((P=e.valid)!==null&&P!==void 0?P:f),v)}}Rl.funcKeywordCode=pBe;function TB(t){const{gen:e,data:n,it:i}=t;e.if(i.parentData,()=>e.assign(n,(0,ua._)`${i.parentData}[${i.parentDataProperty}]`))}function hBe(t,e){const{gen:n}=t;n.if((0,ua._)`Array.isArray(${e})`,()=>{n.assign(yp.default.vErrors,(0,ua._)`${yp.default.vErrors} === null ? ${e} : ${yp.default.vErrors}.concat(${e})`).assign(yp.default.errors,(0,ua._)`${yp.default.vErrors}.length`),(0,uBe.extendErrors)(t)},()=>t.error())}function dBe({schemaEnv:t},e){if(e.async&&!t.$async)throw new Error("async keyword in sync schema")}function Cee(t,e,n){if(n===void 0)throw new Error(`keyword "${e}" failed to compile`);return t.scopeValue("keyword",typeof n=="function"?{ref:n}:{ref:n,code:(0,ua.stringify)(n)})}function mBe(t,e,n=!1){return!e.length||e.some(i=>i==="array"?Array.isArray(t):i==="object"?t&&typeof t=="object"&&!Array.isArray(t):typeof t==i||n&&typeof t>"u")}Rl.validSchemaType=mBe;function yBe({schema:t,opts:e,self:n,errSchemaPath:i},a,o){if(Array.isArray(a.keyword)?!a.keyword.includes(o):a.keyword!==o)throw new Error("ajv implementation error");const r=a.dependencies;if(r!=null&&r.some(s=>!Object.prototype.hasOwnProperty.call(t,s)))throw new Error(`parent schema must have dependencies of ${o}: ${r.join(",")}`);if(a.validateSchema&&!a.validateSchema(t[o])){const c=`keyword "${o}" value is invalid at path "${i}": `+n.errorsText(a.validateSchema.errors);if(e.validateSchema==="log")n.logger.error(c);else throw new Error(c)}}Rl.validateKeywordUsage=yBe;var Df={};Object.defineProperty(Df,"__esModule",{value:!0});Df.extendSubschemaMode=Df.extendSubschemaData=Df.getSubschema=void 0;const El=Et,Tee=it;function gBe(t,{keyword:e,schemaProp:n,schema:i,schemaPath:a,errSchemaPath:o,topSchemaRef:r}){if(e!==void 0&&i!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(e!==void 0){const s=t.schema[e];return n===void 0?{schema:s,schemaPath:(0,El._)`${t.schemaPath}${(0,El.getProperty)(e)}`,errSchemaPath:`${t.errSchemaPath}/${e}`}:{schema:s[n],schemaPath:(0,El._)`${t.schemaPath}${(0,El.getProperty)(e)}${(0,El.getProperty)(n)}`,errSchemaPath:`${t.errSchemaPath}/${e}/${(0,Tee.escapeFragment)(n)}`}}if(i!==void 0){if(a===void 0||o===void 0||r===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:i,schemaPath:a,topSchemaRef:r,errSchemaPath:o}}throw new Error('either "keyword" or "schema" must be passed')}Df.getSubschema=gBe;function vBe(t,e,{dataProp:n,dataPropType:i,data:a,dataTypes:o,propertyName:r}){if(a!==void 0&&n!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:s}=e;if(n!==void 0){const{errorPath:l,dataPathArr:u,opts:f}=e,h=s.let("data",(0,El._)`${e.data}${(0,El.getProperty)(n)}`,!0);c(h),t.errorPath=(0,El.str)`${l}${(0,Tee.getErrorPath)(n,i,f.jsPropertySyntax)}`,t.parentDataProperty=(0,El._)`${n}`,t.dataPathArr=[...u,t.parentDataProperty]}if(a!==void 0){const l=a instanceof El.Name?a:s.let("data",a,!0);c(l),r!==void 0&&(t.propertyName=r)}o&&(t.dataTypes=o);function c(l){t.data=l,t.dataLevel=e.dataLevel+1,t.dataTypes=[],e.definedProperties=new Set,t.parentData=e.data,t.dataNames=[...e.dataNames,l]}}Df.extendSubschemaData=vBe;function PBe(t,{jtdDiscriminator:e,jtdMetadata:n,compositeRule:i,createErrors:a,allErrors:o}){i!==void 0&&(t.compositeRule=i),a!==void 0&&(t.createErrors=a),o!==void 0&&(t.allErrors=o),t.jtdDiscriminator=e,t.jtdMetadata=n}Df.extendSubschemaMode=PBe;var Ei={},jee=function t(e,n){if(e===n)return!0;if(e&&n&&typeof e=="object"&&typeof n=="object"){if(e.constructor!==n.constructor)return!1;var i,a,o;if(Array.isArray(e)){if(i=e.length,i!=n.length)return!1;for(a=i;a--!==0;)if(!t(e[a],n[a]))return!1;return!0}if(e.constructor===RegExp)return e.source===n.source&&e.flags===n.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===n.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===n.toString();if(o=Object.keys(e),i=o.length,i!==Object.keys(n).length)return!1;for(a=i;a--!==0;)if(!Object.prototype.hasOwnProperty.call(n,o[a]))return!1;for(a=i;a--!==0;){var r=o[a];if(!t(e[r],n[r]))return!1}return!0}return e!==e&&n!==n},Mee={exports:{}},hf=Mee.exports=function(t,e,n){typeof e=="function"&&(n=e,e={}),n=e.cb||n;var i=typeof n=="function"?n:n.pre||function(){},a=n.post||function(){};F$(e,i,a,t,"",t)};hf.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};hf.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};hf.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};hf.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function F$(t,e,n,i,a,o,r,s,c,l){if(i&&typeof i=="object"&&!Array.isArray(i)){e(i,a,o,r,s,c,l);for(var u in i){var f=i[u];if(Array.isArray(f)){if(u in hf.arrayKeywords)for(var h=0;he+=Ree(i)),e===1/0))return 1/0}return e}function Nee(t,e="",n){n!==!1&&(e=lm(e));const i=t.parse(e);return Lee(t,i)}Ei.getFullPath=Nee;function Lee(t,e){return t.serialize(e).split("#")[0]+"#"}Ei._getFullPath=Lee;const DBe=/#\/?$/;function lm(t){return t?t.replace(DBe,""):""}Ei.normalizeId=lm;function kBe(t,e,n){return n=lm(n),t.resolve(e,n)}Ei.resolveUrl=kBe;const OBe=/^[a-z_][-a-z0-9._]*$/i;function EBe(t,e){if(typeof t=="boolean")return{};const{schemaId:n,uriResolver:i}=this.opts,a=lm(t[n]||e),o={"":a},r=Nee(i,a,!1),s={},c=new Set;return ABe(t,{allKeys:!0},(f,h,d,m)=>{if(m===void 0)return;const g=r+h;let b=o[m];typeof f[n]=="string"&&(b=v.call(this,f[n])),P.call(this,f.$anchor),P.call(this,f.$dynamicAnchor),o[h]=b;function v(A){const _=this.opts.uriResolver.resolve;if(A=lm(b?_(b,A):A),c.has(A))throw u(A);c.add(A);let x=this.refs[A];return typeof x=="string"&&(x=this.refs[x]),typeof x=="object"?l(f,x.schema,A):A!==lm(g)&&(A[0]==="#"?(l(f,s[A],A),s[A]=f):this.refs[A]=g),A}function P(A){if(typeof A=="string"){if(!OBe.test(A))throw new Error(`invalid anchor "${A}"`);v.call(this,`#${A}`)}}}),s;function l(f,h,d){if(h!==void 0&&!$Be(f,h))throw u(d)}function u(f){return new Error(`reference "${f}" resolves to more than one schema`)}}Ei.getSchemaRefs=EBe;Object.defineProperty(Qa,"__esModule",{value:!0});Qa.getData=Qa.KeywordCxt=Qa.validateFunctionCode=void 0;const Fee=Pg,jB=ai,NR=jc,bS=ai,IBe=ox,Qv=Rl,uE=Df,bt=Et,Tt=Ia,CBe=Ei,Mc=it,iv=n0;function TBe(t){if(Uee(t)&&(Bee(t),zee(t))){RBe(t);return}qee(t,()=>(0,Fee.topBoolOrEmptySchema)(t))}Qa.validateFunctionCode=TBe;function qee({gen:t,validateName:e,schema:n,schemaEnv:i,opts:a},o){a.code.es5?t.func(e,(0,bt._)`${Tt.default.data}, ${Tt.default.valCxt}`,i.$async,()=>{t.code((0,bt._)`"use strict"; ${MB(n,a)}`),MBe(t,a),t.code(o)}):t.func(e,(0,bt._)`${Tt.default.data}, ${jBe(a)}`,i.$async,()=>t.code(MB(n,a)).code(o))}function jBe(t){return(0,bt._)`{${Tt.default.instancePath}="", ${Tt.default.parentData}, ${Tt.default.parentDataProperty}, ${Tt.default.rootData}=${Tt.default.data}${t.dynamicRef?(0,bt._)`, ${Tt.default.dynamicAnchors}={}`:bt.nil}}={}`}function MBe(t,e){t.if(Tt.default.valCxt,()=>{t.var(Tt.default.instancePath,(0,bt._)`${Tt.default.valCxt}.${Tt.default.instancePath}`),t.var(Tt.default.parentData,(0,bt._)`${Tt.default.valCxt}.${Tt.default.parentData}`),t.var(Tt.default.parentDataProperty,(0,bt._)`${Tt.default.valCxt}.${Tt.default.parentDataProperty}`),t.var(Tt.default.rootData,(0,bt._)`${Tt.default.valCxt}.${Tt.default.rootData}`),e.dynamicRef&&t.var(Tt.default.dynamicAnchors,(0,bt._)`${Tt.default.valCxt}.${Tt.default.dynamicAnchors}`)},()=>{t.var(Tt.default.instancePath,(0,bt._)`""`),t.var(Tt.default.parentData,(0,bt._)`undefined`),t.var(Tt.default.parentDataProperty,(0,bt._)`undefined`),t.var(Tt.default.rootData,Tt.default.data),e.dynamicRef&&t.var(Tt.default.dynamicAnchors,(0,bt._)`{}`)})}function RBe(t){const{schema:e,opts:n,gen:i}=t;qee(t,()=>{n.$comment&&e.$comment&&Wee(t),zBe(t),i.let(Tt.default.vErrors,null),i.let(Tt.default.errors,0),n.unevaluated&&NBe(t),Vee(t),VBe(t)})}function NBe(t){const{gen:e,validateName:n}=t;t.evaluated=e.const("evaluated",(0,bt._)`${n}.evaluated`),e.if((0,bt._)`${t.evaluated}.dynamicProps`,()=>e.assign((0,bt._)`${t.evaluated}.props`,(0,bt._)`undefined`)),e.if((0,bt._)`${t.evaluated}.dynamicItems`,()=>e.assign((0,bt._)`${t.evaluated}.items`,(0,bt._)`undefined`))}function MB(t,e){const n=typeof t=="object"&&t[e.schemaId];return n&&(e.code.source||e.code.process)?(0,bt._)`/*# sourceURL=${n} */`:bt.nil}function LBe(t,e){if(Uee(t)&&(Bee(t),zee(t))){FBe(t,e);return}(0,Fee.boolOrEmptySchema)(t,e)}function zee({schema:t,self:e}){if(typeof t=="boolean")return!t;for(const n in t)if(e.RULES.all[n])return!0;return!1}function Uee(t){return typeof t.schema!="boolean"}function FBe(t,e){const{schema:n,gen:i,opts:a}=t;a.$comment&&n.$comment&&Wee(t),UBe(t),BBe(t);const o=i.const("_errs",Tt.default.errors);Vee(t,o),i.var(e,(0,bt._)`${o} === ${Tt.default.errors}`)}function Bee(t){(0,Mc.checkUnknownRules)(t),qBe(t)}function Vee(t,e){if(t.opts.jtd)return RB(t,[],!1,e);const n=(0,jB.getSchemaTypes)(t.schema),i=(0,jB.coerceAndCheckDataType)(t,n);RB(t,n,!i,e)}function qBe(t){const{schema:e,errSchemaPath:n,opts:i,self:a}=t;e.$ref&&i.ignoreKeywordsWithRef&&(0,Mc.schemaHasRulesButRef)(e,a.RULES)&&a.logger.warn(`$ref: keywords ignored in schema at path "${n}"`)}function zBe(t){const{schema:e,opts:n}=t;e.default!==void 0&&n.useDefaults&&n.strictSchema&&(0,Mc.checkStrictMode)(t,"default is ignored in the schema root")}function UBe(t){const e=t.schema[t.opts.schemaId];e&&(t.baseId=(0,CBe.resolveUrl)(t.opts.uriResolver,t.baseId,e))}function BBe(t){if(t.schema.$async&&!t.schemaEnv.$async)throw new Error("async schema in sync schema")}function Wee({gen:t,schemaEnv:e,schema:n,errSchemaPath:i,opts:a}){const o=n.$comment;if(a.$comment===!0)t.code((0,bt._)`${Tt.default.self}.logger.log(${o})`);else if(typeof a.$comment=="function"){const r=(0,bt.str)`${i}/$comment`,s=t.scopeValue("root",{ref:e.root});t.code((0,bt._)`${Tt.default.self}.opts.$comment(${o}, ${r}, ${s}.schema)`)}}function VBe(t){const{gen:e,schemaEnv:n,validateName:i,ValidationError:a,opts:o}=t;n.$async?e.if((0,bt._)`${Tt.default.errors} === 0`,()=>e.return(Tt.default.data),()=>e.throw((0,bt._)`new ${a}(${Tt.default.vErrors})`)):(e.assign((0,bt._)`${i}.errors`,Tt.default.vErrors),o.unevaluated&&WBe(t),e.return((0,bt._)`${Tt.default.errors} === 0`))}function WBe({gen:t,evaluated:e,props:n,items:i}){n instanceof bt.Name&&t.assign((0,bt._)`${e}.props`,n),i instanceof bt.Name&&t.assign((0,bt._)`${e}.items`,i)}function RB(t,e,n,i){const{gen:a,schema:o,data:r,allErrors:s,opts:c,self:l}=t,{RULES:u}=l;if(o.$ref&&(c.ignoreKeywordsWithRef||!(0,Mc.schemaHasRulesButRef)(o,u))){a.block(()=>Kee(t,"$ref",u.all.$ref.definition));return}c.jtd||HBe(t,e),a.block(()=>{for(const h of u.rules)f(h);f(u.post)});function f(h){(0,NR.shouldUseGroup)(o,h)&&(h.type?(a.if((0,bS.checkDataType)(h.type,r,c.strictNumbers)),NB(t,h),e.length===1&&e[0]===h.type&&n&&(a.else(),(0,bS.reportTypeError)(t)),a.endIf()):NB(t,h),s||a.if((0,bt._)`${Tt.default.errors} === ${i||0}`))}}function NB(t,e){const{gen:n,schema:i,opts:{useDefaults:a}}=t;a&&(0,IBe.assignDefaults)(t,e.type),n.block(()=>{for(const o of e.rules)(0,NR.shouldUseRule)(i,o)&&Kee(t,o.keyword,o.definition,e.type)})}function HBe(t,e){t.schemaEnv.meta||!t.opts.strictTypes||(GBe(t,e),t.opts.allowUnionTypes||KBe(t,e),YBe(t,t.dataTypes))}function GBe(t,e){if(e.length){if(!t.dataTypes.length){t.dataTypes=e;return}e.forEach(n=>{Hee(t.dataTypes,n)||LR(t,`type "${n}" not allowed by context "${t.dataTypes.join(",")}"`)}),QBe(t,e)}}function KBe(t,e){e.length>1&&!(e.length===2&&e.includes("null"))&&LR(t,"use allowUnionTypes to allow union type keyword")}function YBe(t,e){const n=t.self.RULES.all;for(const i in n){const a=n[i];if(typeof a=="object"&&(0,NR.shouldUseRule)(t.schema,a)){const{type:o}=a.definition;o.length&&!o.some(r=>JBe(e,r))&&LR(t,`missing type "${o.join(",")}" for keyword "${i}"`)}}}function JBe(t,e){return t.includes(e)||e==="number"&&t.includes("integer")}function Hee(t,e){return t.includes(e)||e==="integer"&&t.includes("number")}function QBe(t,e){const n=[];for(const i of t.dataTypes)Hee(e,i)?n.push(i):e.includes("integer")&&i==="number"&&n.push("integer");t.dataTypes=n}function LR(t,e){const n=t.schemaEnv.baseId+t.errSchemaPath;e+=` at "${n}" (strictTypes)`,(0,Mc.checkStrictMode)(t,e,t.opts.strictTypes)}class Gee{constructor(e,n,i){if((0,Qv.validateKeywordUsage)(e,n,i),this.gen=e.gen,this.allErrors=e.allErrors,this.keyword=i,this.data=e.data,this.schema=e.schema[i],this.$data=n.$data&&e.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,Mc.schemaRefOrVal)(e,this.schema,i,this.$data),this.schemaType=n.schemaType,this.parentSchema=e.schema,this.params={},this.it=e,this.def=n,this.$data)this.schemaCode=e.gen.const("vSchema",Yee(this.$data,e));else if(this.schemaCode=this.schemaValue,!(0,Qv.validSchemaType)(this.schema,n.schemaType,n.allowUndefined))throw new Error(`${i} value must be ${JSON.stringify(n.schemaType)}`);("code"in n?n.trackErrors:n.errors!==!1)&&(this.errsCount=e.gen.const("_errs",Tt.default.errors))}result(e,n,i){this.failResult((0,bt.not)(e),n,i)}failResult(e,n,i){this.gen.if(e),i?i():this.error(),n?(this.gen.else(),n(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(e,n){this.failResult((0,bt.not)(e),void 0,n)}fail(e){if(e===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(e),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(e){if(!this.$data)return this.fail(e);const{schemaCode:n}=this;this.fail((0,bt._)`${n} !== undefined && (${(0,bt.or)(this.invalid$data(),e)})`)}error(e,n,i){if(n){this.setParams(n),this._error(e,i),this.setParams({});return}this._error(e,i)}_error(e,n){(e?iv.reportExtraError:iv.reportError)(this,this.def.error,n)}$dataError(){(0,iv.reportError)(this,this.def.$dataError||iv.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,iv.resetErrorsCount)(this.gen,this.errsCount)}ok(e){this.allErrors||this.gen.if(e)}setParams(e,n){n?Object.assign(this.params,e):this.params=e}block$data(e,n,i=bt.nil){this.gen.block(()=>{this.check$data(e,i),n()})}check$data(e=bt.nil,n=bt.nil){if(!this.$data)return;const{gen:i,schemaCode:a,schemaType:o,def:r}=this;i.if((0,bt.or)((0,bt._)`${a} === undefined`,n)),e!==bt.nil&&i.assign(e,!0),(o.length||r.validateSchema)&&(i.elseIf(this.invalid$data()),this.$dataError(),e!==bt.nil&&i.assign(e,!1)),i.else()}invalid$data(){const{gen:e,schemaCode:n,schemaType:i,def:a,it:o}=this;return(0,bt.or)(r(),s());function r(){if(i.length){if(!(n instanceof bt.Name))throw new Error("ajv implementation error");const c=Array.isArray(i)?i:[i];return(0,bt._)`${(0,bS.checkDataTypes)(c,n,o.opts.strictNumbers,bS.DataType.Wrong)}`}return bt.nil}function s(){if(a.validateSchema){const c=e.scopeValue("validate$data",{ref:a.validateSchema});return(0,bt._)`!${c}(${n})`}return bt.nil}}subschema(e,n){const i=(0,uE.getSubschema)(this.it,e);(0,uE.extendSubschemaData)(i,this.it,e),(0,uE.extendSubschemaMode)(i,e);const a={...this.it,...i,items:void 0,props:void 0};return LBe(a,n),a}mergeEvaluated(e,n){const{it:i,gen:a}=this;i.opts.unevaluated&&(i.props!==!0&&e.props!==void 0&&(i.props=Mc.mergeEvaluated.props(a,e.props,i.props,n)),i.items!==!0&&e.items!==void 0&&(i.items=Mc.mergeEvaluated.items(a,e.items,i.items,n)))}mergeValidEvaluated(e,n){const{it:i,gen:a}=this;if(i.opts.unevaluated&&(i.props!==!0||i.items!==!0))return a.if(n,()=>this.mergeEvaluated(e,bt.Name)),!0}}Qa.KeywordCxt=Gee;function Kee(t,e,n,i){const a=new Gee(t,n,e);"code"in n?n.code(a,i):a.$data&&n.validate?(0,Qv.funcKeywordCode)(a,n):"macro"in n?(0,Qv.macroKeywordCode)(a,n):(n.compile||n.validate)&&(0,Qv.funcKeywordCode)(a,n)}const ZBe=/^\/(?:[^~]|~0|~1)*$/,XBe=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function Yee(t,{dataLevel:e,dataNames:n,dataPathArr:i}){let a,o;if(t==="")return Tt.default.rootData;if(t[0]==="/"){if(!ZBe.test(t))throw new Error(`Invalid JSON-pointer: ${t}`);a=t,o=Tt.default.rootData}else{const l=XBe.exec(t);if(!l)throw new Error(`Invalid JSON-pointer: ${t}`);const u=+l[1];if(a=l[2],a==="#"){if(u>=e)throw new Error(c("property/index",u));return i[e-u]}if(u>e)throw new Error(c("data",u));if(o=n[e-u],!a)return o}let r=o;const s=a.split("/");for(const l of s)l&&(o=(0,bt._)`${o}${(0,bt.getProperty)((0,Mc.unescapeJsonPointer)(l))}`,r=(0,bt._)`${r} && ${o}`);return r;function c(l,u){return`Cannot access ${l} ${u} levels up, current level is ${e}`}}Qa.getData=Yee;var jh={};Object.defineProperty(jh,"__esModule",{value:!0});class e6e extends Error{constructor(e){super("validation failed"),this.errors=e,this.ajv=this.validation=!0}}jh.default=e6e;var Pu={};Object.defineProperty(Pu,"__esModule",{value:!0});const fE=Ei;class t6e extends Error{constructor(e,n,i,a){super(a||`can't resolve reference ${i} from id ${n}`),this.missingRef=(0,fE.resolveUrl)(e,n,i),this.missingSchema=(0,fE.normalizeId)((0,fE.getFullPath)(e,this.missingRef))}}Pu.default=t6e;var ya={};Object.defineProperty(ya,"__esModule",{value:!0});ya.resolveSchema=ya.getCompilingSchema=ya.resolveRef=ya.compileSchema=ya.SchemaEnv=void 0;const Ro=Et,r6e=jh,sp=Ia,Ho=Ei,LB=it,n6e=Qa;class lx{constructor(e){var n;this.refs={},this.dynamicAnchors={};let i;typeof e.schema=="object"&&(i=e.schema),this.schema=e.schema,this.schemaId=e.schemaId,this.root=e.root||this,this.baseId=(n=e.baseId)!==null&&n!==void 0?n:(0,Ho.normalizeId)(i==null?void 0:i[e.schemaId||"$id"]),this.schemaPath=e.schemaPath,this.localRefs=e.localRefs,this.meta=e.meta,this.$async=i==null?void 0:i.$async,this.refs={}}}ya.SchemaEnv=lx;function FR(t){const e=Jee.call(this,t);if(e)return e;const n=(0,Ho.getFullPath)(this.opts.uriResolver,t.root.baseId),{es5:i,lines:a}=this.opts.code,{ownProperties:o}=this.opts,r=new Ro.CodeGen(this.scope,{es5:i,lines:a,ownProperties:o});let s;t.$async&&(s=r.scopeValue("Error",{ref:r6e.default,code:(0,Ro._)`require("ajv/dist/runtime/validation_error").default`}));const c=r.scopeName("validate");t.validateName=c;const l={gen:r,allErrors:this.opts.allErrors,data:sp.default.data,parentData:sp.default.parentData,parentDataProperty:sp.default.parentDataProperty,dataNames:[sp.default.data],dataPathArr:[Ro.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:r.scopeValue("schema",this.opts.code.source===!0?{ref:t.schema,code:(0,Ro.stringify)(t.schema)}:{ref:t.schema}),validateName:c,ValidationError:s,schema:t.schema,schemaEnv:t,rootId:n,baseId:t.baseId||n,schemaPath:Ro.nil,errSchemaPath:t.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,Ro._)`""`,opts:this.opts,self:this};let u;try{this._compilations.add(t),(0,n6e.validateFunctionCode)(l),r.optimize(this.opts.code.optimize);const f=r.toString();u=`${r.scopeRefs(sp.default.scope)}return ${f}`,this.opts.code.process&&(u=this.opts.code.process(u,t));const d=new Function(`${sp.default.self}`,`${sp.default.scope}`,u)(this,this.scope.get());if(this.scope.value(c,{ref:d}),d.errors=null,d.schema=t.schema,d.schemaEnv=t,t.$async&&(d.$async=!0),this.opts.code.source===!0&&(d.source={validateName:c,validateCode:f,scopeValues:r._values}),this.opts.unevaluated){const{props:m,items:g}=l;d.evaluated={props:m instanceof Ro.Name?void 0:m,items:g instanceof Ro.Name?void 0:g,dynamicProps:m instanceof Ro.Name,dynamicItems:g instanceof Ro.Name},d.source&&(d.source.evaluated=(0,Ro.stringify)(d.evaluated))}return t.validate=d,t}catch(f){throw delete t.validate,delete t.validateName,u&&this.logger.error("Error compiling schema, function code:",u),f}finally{this._compilations.delete(t)}}ya.compileSchema=FR;function i6e(t,e,n){var i;n=(0,Ho.resolveUrl)(this.opts.uriResolver,e,n);const a=t.refs[n];if(a)return a;let o=o6e.call(this,t,n);if(o===void 0){const r=(i=t.localRefs)===null||i===void 0?void 0:i[n],{schemaId:s}=this.opts;r&&(o=new lx({schema:r,schemaId:s,root:t,baseId:e}))}if(o!==void 0)return t.refs[n]=a6e.call(this,o)}ya.resolveRef=i6e;function a6e(t){return(0,Ho.inlineRef)(t.schema,this.opts.inlineRefs)?t.schema:t.validate?t:FR.call(this,t)}function Jee(t){for(const e of this._compilations)if(s6e(e,t))return e}ya.getCompilingSchema=Jee;function s6e(t,e){return t.schema===e.schema&&t.root===e.root&&t.baseId===e.baseId}function o6e(t,e){let n;for(;typeof(n=this.refs[e])=="string";)e=n;return n||this.schemas[e]||cx.call(this,t,e)}function cx(t,e){const n=this.opts.uriResolver.parse(e),i=(0,Ho._getFullPath)(this.opts.uriResolver,n);let a=(0,Ho.getFullPath)(this.opts.uriResolver,t.baseId,void 0);if(Object.keys(t.schema).length>0&&i===a)return pE.call(this,n,t);const o=(0,Ho.normalizeId)(i),r=this.refs[o]||this.schemas[o];if(typeof r=="string"){const s=cx.call(this,t,r);return typeof(s==null?void 0:s.schema)!="object"?void 0:pE.call(this,n,s)}if(typeof(r==null?void 0:r.schema)=="object"){if(r.validate||FR.call(this,r),o===(0,Ho.normalizeId)(e)){const{schema:s}=r,{schemaId:c}=this.opts,l=s[c];return l&&(a=(0,Ho.resolveUrl)(this.opts.uriResolver,a,l)),new lx({schema:s,schemaId:c,root:t,baseId:a})}return pE.call(this,n,r)}}ya.resolveSchema=cx;const l6e=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function pE(t,{baseId:e,schema:n,root:i}){var a;if(((a=t.fragment)===null||a===void 0?void 0:a[0])!=="/")return;for(const s of t.fragment.slice(1).split("/")){if(typeof n=="boolean")return;const c=n[(0,LB.unescapeFragment)(s)];if(c===void 0)return;n=c;const l=typeof n=="object"&&n[this.opts.schemaId];!l6e.has(s)&&l&&(e=(0,Ho.resolveUrl)(this.opts.uriResolver,e,l))}let o;if(typeof n!="boolean"&&n.$ref&&!(0,LB.schemaHasRulesButRef)(n,this.RULES)){const s=(0,Ho.resolveUrl)(this.opts.uriResolver,e,n.$ref);o=cx.call(this,i,s)}const{schemaId:r}=this.opts;if(o=o||new lx({schema:n,schemaId:r,root:i,baseId:e}),o.schema!==o.root.schema)return o}const c6e="https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",u6e="Meta-schema for $data reference (JSON AnySchema extension proposal)",f6e="object",p6e=["$data"],h6e={$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},d6e=!1,m6e={$id:c6e,description:u6e,type:f6e,required:p6e,properties:h6e,additionalProperties:d6e};var qR={},ux={exports:{}};const y6e={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};var g6e={HEX:y6e};const{HEX:v6e}=g6e;function Qee(t){if(Xee(t,".")<3)return{host:t,isIPV4:!1};const e=t.match(/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/u)||[],[n]=e;return n?{host:b6e(n,"."),isIPV4:!0}:{host:t,isIPV4:!1}}function tT(t,e=!1){let n="",i=!0;for(const a of t){if(v6e[a]===void 0)return;a!=="0"&&i===!0&&(i=!1),i||(n+=a)}return e&&n.length===0&&(n="0"),n}function P6e(t){let e=0;const n={error:!1,address:"",zone:""},i=[],a=[];let o=!1,r=!1,s=!1;function c(){if(a.length){if(o===!1){const l=tT(a);if(l!==void 0)i.push(l);else return n.error=!0,!1}a.length=0}return!0}for(let l=0;l7){n.error=!0;break}l-1>=0&&t[l-1]===":"&&(r=!0);continue}else if(u==="%"){if(!c())break;o=!0}else{a.push(u);continue}}return a.length&&(o?n.zone=a.join(""):s?i.push(a.join("")):i.push(tT(a))),n.address=i.join(""),n}function Zee(t,e={}){if(Xee(t,":")<2)return{host:t,isIPV6:!1};const n=P6e(t);if(n.error)return{host:t,isIPV6:!1};{let i=n.address,a=n.address;return n.zone&&(i+="%"+n.zone,a+="%25"+n.zone),{host:i,escapedHost:a,isIPV6:!0}}}function b6e(t,e){let n="",i=!0;const a=t.length;for(let o=0;o/[^!"$&'()*+,\-.;=_`a-z{}~]/u.test(String.fromCharCode(e)));function H6e(t){let e=0;for(let n=0,i=t.length;n126||W6e[e])return!0;return!1}const G6e=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function pu(t,e){const n=Object.assign({},e),i={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},a=t.indexOf("%")!==-1;let o=!1;n.reference==="suffix"&&(t=(n.scheme?n.scheme+":":"")+"//"+t);const r=t.match(G6e);if(r){if(i.scheme=r[1],i.userinfo=r[3],i.host=r[4],i.port=parseInt(r[5],10),i.path=r[6]||"",i.query=r[7],i.fragment=r[8],isNaN(i.port)&&(i.port=r[5]),i.host){const c=q6e(i.host);if(c.isIPV4===!1){const l=F6e(c.host,{isIPV4:!1});i.host=l.host.toLowerCase(),o=l.isIPV6}else i.host=c.host,o=!0}i.scheme===void 0&&i.userinfo===void 0&&i.host===void 0&&i.port===void 0&&!i.path&&i.query===void 0?i.reference="same-document":i.scheme===void 0?i.reference="relative":i.fragment===void 0?i.reference="absolute":i.reference="uri",n.reference&&n.reference!=="suffix"&&n.reference!==i.reference&&(i.error=i.error||"URI is not a "+n.reference+" reference.");const s=UR[(n.scheme||i.scheme||"").toLowerCase()];if(!n.unicodeSupport&&(!s||!s.unicodeSupport)&&i.host&&(n.domainHost||s&&s.domainHost)&&o===!1&&H6e(i.host))try{i.host=URL.domainToASCII(i.host.toLowerCase())}catch(c){i.error=i.error||"Host's domain name can not be converted to ASCII: "+c}(!s||s&&!s.skipNormalize)&&(a&&i.scheme!==void 0&&(i.scheme=unescape(i.scheme)),a&&i.userinfo!==void 0&&(i.userinfo=unescape(i.userinfo)),a&&i.host!==void 0&&(i.host=unescape(i.host)),i.path!==void 0&&i.path.length&&(i.path=escape(unescape(i.path))),i.fragment!==void 0&&i.fragment.length&&(i.fragment=encodeURI(decodeURIComponent(i.fragment)))),s&&s.parse&&s.parse(i,n)}else i.error=i.error||"URI can not be parsed.";return i}const BR={SCHEMES:UR,normalize:U6e,resolve:B6e,resolveComponents:ite,equal:V6e,serialize:Nl,parse:pu};ux.exports=BR;ux.exports.default=BR;ux.exports.fastUri=BR;var K6e=ux.exports;Object.defineProperty(qR,"__esModule",{value:!0});const ate=K6e;ate.code='require("ajv/dist/runtime/uri").default';qR.default=ate;(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=void 0;var e=Qa;Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return e.KeywordCxt}});var n=Et;Object.defineProperty(t,"_",{enumerable:!0,get:function(){return n._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return n.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return n.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return n.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return n.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return n.CodeGen}});const i=jh,a=Pu,o=gh,r=ya,s=Et,c=Ei,l=ai,u=it,f=m6e,h=qR,d=(U,R)=>new RegExp(U,R);d.code="new RegExp";const m=["removeAdditional","useDefaults","coerceTypes"],g=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),b={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},v={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},P=200;function A(U){var R,z,V,T,W,le,ve,ae,_e,he,Ee,Ge,Me,Ae,at,gt,Ne,Ce,$t,xe,ct,nn,qr,an,Xt;const er=U.strict,J=(R=U.code)===null||R===void 0?void 0:R.optimize,w=J===!0||J===void 0?1:J||0,K=(V=(z=U.code)===null||z===void 0?void 0:z.regExp)!==null&&V!==void 0?V:d,Z=(T=U.uriResolver)!==null&&T!==void 0?T:h.default;return{strictSchema:(le=(W=U.strictSchema)!==null&&W!==void 0?W:er)!==null&&le!==void 0?le:!0,strictNumbers:(ae=(ve=U.strictNumbers)!==null&&ve!==void 0?ve:er)!==null&&ae!==void 0?ae:!0,strictTypes:(he=(_e=U.strictTypes)!==null&&_e!==void 0?_e:er)!==null&&he!==void 0?he:"log",strictTuples:(Ge=(Ee=U.strictTuples)!==null&&Ee!==void 0?Ee:er)!==null&&Ge!==void 0?Ge:"log",strictRequired:(Ae=(Me=U.strictRequired)!==null&&Me!==void 0?Me:er)!==null&&Ae!==void 0?Ae:!1,code:U.code?{...U.code,optimize:w,regExp:K}:{optimize:w,regExp:K},loopRequired:(at=U.loopRequired)!==null&&at!==void 0?at:P,loopEnum:(gt=U.loopEnum)!==null&>!==void 0?gt:P,meta:(Ne=U.meta)!==null&&Ne!==void 0?Ne:!0,messages:(Ce=U.messages)!==null&&Ce!==void 0?Ce:!0,inlineRefs:($t=U.inlineRefs)!==null&&$t!==void 0?$t:!0,schemaId:(xe=U.schemaId)!==null&&xe!==void 0?xe:"$id",addUsedSchema:(ct=U.addUsedSchema)!==null&&ct!==void 0?ct:!0,validateSchema:(nn=U.validateSchema)!==null&&nn!==void 0?nn:!0,validateFormats:(qr=U.validateFormats)!==null&&qr!==void 0?qr:!0,unicodeRegExp:(an=U.unicodeRegExp)!==null&&an!==void 0?an:!0,int32range:(Xt=U.int32range)!==null&&Xt!==void 0?Xt:!0,uriResolver:Z}}class _{constructor(R={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,R=this.opts={...R,...A(R)};const{es5:z,lines:V}=this.opts.code;this.scope=new s.ValueScope({scope:{},prefixes:g,es5:z,lines:V}),this.logger=F(R.logger);const T=R.validateFormats;R.validateFormats=!1,this.RULES=(0,o.getRules)(),x.call(this,b,R,"NOT SUPPORTED"),x.call(this,v,R,"DEPRECATED","warn"),this._metaOpts=L.call(this),R.formats&&I.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),R.keywords&&E.call(this,R.keywords),typeof R.meta=="object"&&this.addMetaSchema(R.meta),j.call(this),R.validateFormats=T}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:R,meta:z,schemaId:V}=this.opts;let T=f;V==="id"&&(T={...f},T.id=T.$id,delete T.$id),z&&R&&this.addMetaSchema(T,T[V],!1)}defaultMeta(){const{meta:R,schemaId:z}=this.opts;return this.opts.defaultMeta=typeof R=="object"?R[z]||R:void 0}validate(R,z){let V;if(typeof R=="string"){if(V=this.getSchema(R),!V)throw new Error(`no schema with key or ref "${R}"`)}else V=this.compile(R);const T=V(z);return"$async"in V||(this.errors=V.errors),T}compile(R,z){const V=this._addSchema(R,z);return V.validate||this._compileSchemaEnv(V)}compileAsync(R,z){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:V}=this.opts;return T.call(this,R,z);async function T(he,Ee){await W.call(this,he.$schema);const Ge=this._addSchema(he,Ee);return Ge.validate||le.call(this,Ge)}async function W(he){he&&!this.getSchema(he)&&await T.call(this,{$ref:he},!0)}async function le(he){try{return this._compileSchemaEnv(he)}catch(Ee){if(!(Ee instanceof a.default))throw Ee;return ve.call(this,Ee),await ae.call(this,Ee.missingSchema),le.call(this,he)}}function ve({missingSchema:he,missingRef:Ee}){if(this.refs[he])throw new Error(`AnySchema ${he} is loaded but ${Ee} cannot be resolved`)}async function ae(he){const Ee=await _e.call(this,he);this.refs[he]||await W.call(this,Ee.$schema),this.refs[he]||this.addSchema(Ee,he,z)}async function _e(he){const Ee=this._loading[he];if(Ee)return Ee;try{return await(this._loading[he]=V(he))}finally{delete this._loading[he]}}}addSchema(R,z,V,T=this.opts.validateSchema){if(Array.isArray(R)){for(const le of R)this.addSchema(le,void 0,V,T);return this}let W;if(typeof R=="object"){const{schemaId:le}=this.opts;if(W=R[le],W!==void 0&&typeof W!="string")throw new Error(`schema ${le} must be string`)}return z=(0,c.normalizeId)(z||W),this._checkUnique(z),this.schemas[z]=this._addSchema(R,V,z,T,!0),this}addMetaSchema(R,z,V=this.opts.validateSchema){return this.addSchema(R,z,!0,V),this}validateSchema(R,z){if(typeof R=="boolean")return!0;let V;if(V=R.$schema,V!==void 0&&typeof V!="string")throw new Error("$schema must be a string");if(V=V||this.opts.defaultMeta||this.defaultMeta(),!V)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const T=this.validate(V,R);if(!T&&z){const W="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(W);else throw new Error(W)}return T}getSchema(R){let z;for(;typeof(z=N.call(this,R))=="string";)R=z;if(z===void 0){const{schemaId:V}=this.opts,T=new r.SchemaEnv({schema:{},schemaId:V});if(z=r.resolveSchema.call(this,T,R),!z)return;this.refs[R]=z}return z.validate||this._compileSchemaEnv(z)}removeSchema(R){if(R instanceof RegExp)return this._removeAllSchemas(this.schemas,R),this._removeAllSchemas(this.refs,R),this;switch(typeof R){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const z=N.call(this,R);return typeof z=="object"&&this._cache.delete(z.schema),delete this.schemas[R],delete this.refs[R],this}case"object":{const z=R;this._cache.delete(z);let V=R[this.opts.schemaId];return V&&(V=(0,c.normalizeId)(V),delete this.schemas[V],delete this.refs[V]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(R){for(const z of R)this.addKeyword(z);return this}addKeyword(R,z){let V;if(typeof R=="string")V=R,typeof z=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),z.keyword=V);else if(typeof R=="object"&&z===void 0){if(z=R,V=z.keyword,Array.isArray(V)&&!V.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(D.call(this,V,z),!z)return(0,u.eachItem)(V,W=>M.call(this,W)),this;H.call(this,z);const T={...z,type:(0,l.getJSONTypes)(z.type),schemaType:(0,l.getJSONTypes)(z.schemaType)};return(0,u.eachItem)(V,T.type.length===0?W=>M.call(this,W,T):W=>T.type.forEach(le=>M.call(this,W,T,le))),this}getKeyword(R){const z=this.RULES.all[R];return typeof z=="object"?z.definition:!!z}removeKeyword(R){const{RULES:z}=this;delete z.keywords[R],delete z.all[R];for(const V of z.rules){const T=V.rules.findIndex(W=>W.keyword===R);T>=0&&V.rules.splice(T,1)}return this}addFormat(R,z){return typeof z=="string"&&(z=new RegExp(z)),this.formats[R]=z,this}errorsText(R=this.errors,{separator:z=", ",dataVar:V="data"}={}){return!R||R.length===0?"No errors":R.map(T=>`${V}${T.instancePath} ${T.message}`).reduce((T,W)=>T+z+W)}$dataMetaSchema(R,z){const V=this.RULES.all;R=JSON.parse(JSON.stringify(R));for(const T of z){const W=T.split("/").slice(1);let le=R;for(const ve of W)le=le[ve];for(const ve in V){const ae=V[ve];if(typeof ae!="object")continue;const{$data:_e}=ae.definition,he=le[ve];_e&&he&&(le[ve]=ie(he))}}return R}_removeAllSchemas(R,z){for(const V in R){const T=R[V];(!z||z.test(V))&&(typeof T=="string"?delete R[V]:T&&!T.meta&&(this._cache.delete(T.schema),delete R[V]))}}_addSchema(R,z,V,T=this.opts.validateSchema,W=this.opts.addUsedSchema){let le;const{schemaId:ve}=this.opts;if(typeof R=="object")le=R[ve];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof R!="boolean")throw new Error("schema must be object or boolean")}let ae=this._cache.get(R);if(ae!==void 0)return ae;V=(0,c.normalizeId)(le||V);const _e=c.getSchemaRefs.call(this,R,V);return ae=new r.SchemaEnv({schema:R,schemaId:ve,meta:z,baseId:V,localRefs:_e}),this._cache.set(ae.schema,ae),W&&!V.startsWith("#")&&(V&&this._checkUnique(V),this.refs[V]=ae),T&&this.validateSchema(R,!0),ae}_checkUnique(R){if(this.schemas[R]||this.refs[R])throw new Error(`schema with key or id "${R}" already exists`)}_compileSchemaEnv(R){if(R.meta?this._compileMetaSchema(R):r.compileSchema.call(this,R),!R.validate)throw new Error("ajv implementation error");return R.validate}_compileMetaSchema(R){const z=this.opts;this.opts=this._metaOpts;try{r.compileSchema.call(this,R)}finally{this.opts=z}}}_.ValidationError=i.default,_.MissingRefError=a.default,t.default=_;function x(U,R,z,V="error"){for(const T in U){const W=T;W in R&&this.logger[V](`${z}: option ${T}. ${U[W]}`)}}function N(U){return U=(0,c.normalizeId)(U),this.schemas[U]||this.refs[U]}function j(){const U=this.opts.schemas;if(U)if(Array.isArray(U))this.addSchema(U);else for(const R in U)this.addSchema(U[R],R)}function I(){for(const U in this.opts.formats){const R=this.opts.formats[U];R&&this.addFormat(U,R)}}function E(U){if(Array.isArray(U)){this.addVocabulary(U);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const R in U){const z=U[R];z.keyword||(z.keyword=R),this.addKeyword(z)}}function L(){const U={...this.opts};for(const R of m)delete U[R];return U}const q={log(){},warn(){},error(){}};function F(U){if(U===!1)return q;if(U===void 0)return console;if(U.log&&U.warn&&U.error)return U;throw new Error("logger must implement log, warn and error methods")}const S=/^[a-z_$][a-z0-9_$:-]*$/i;function D(U,R){const{RULES:z}=this;if((0,u.eachItem)(U,V=>{if(z.keywords[V])throw new Error(`Keyword ${V} is already defined`);if(!S.test(V))throw new Error(`Keyword ${V} has invalid name`)}),!!R&&R.$data&&!("code"in R||"validate"in R))throw new Error('$data keyword must have "code" or "validate" function')}function M(U,R,z){var V;const T=R==null?void 0:R.post;if(z&&T)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:W}=this;let le=T?W.post:W.rules.find(({type:ae})=>ae===z);if(le||(le={type:z,rules:[]},W.rules.push(le)),W.keywords[U]=!0,!R)return;const ve={keyword:U,definition:{...R,type:(0,l.getJSONTypes)(R.type),schemaType:(0,l.getJSONTypes)(R.schemaType)}};R.before?C.call(this,le,ve,R.before):le.rules.push(ve),W.all[U]=ve,(V=R.implements)===null||V===void 0||V.forEach(ae=>this.addKeyword(ae))}function C(U,R,z){const V=U.rules.findIndex(T=>T.keyword===z);V>=0?U.rules.splice(V,0,R):(U.rules.push(R),this.logger.warn(`rule ${z} is not defined`))}function H(U){let{metaSchema:R}=U;R!==void 0&&(U.$data&&this.opts.$data&&(R=ie(R)),U.validateSchema=this.compile(R,!0))}const X={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function ie(U){return{anyOf:[U,X]}}})(xf);var fx={},px={},VR={};Object.defineProperty(VR,"__esModule",{value:!0});const Y6e={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};VR.default=Y6e;var Kl={};Object.defineProperty(Kl,"__esModule",{value:!0});Kl.callRef=Kl.getValidate=void 0;const J6e=Pu,UB=Gt,za=Et,od=Ia,BB=ya,Gw=it,Q6e={keyword:"$ref",schemaType:"string",code(t){const{gen:e,schema:n,it:i}=t,{baseId:a,schemaEnv:o,validateName:r,opts:s,self:c}=i,{root:l}=o;if((n==="#"||n==="#/")&&a===l.baseId)return f();const u=BB.resolveRef.call(c,l,a,n);if(u===void 0)throw new J6e.default(i.opts.uriResolver,a,n);if(u instanceof BB.SchemaEnv)return h(u);return d(u);function f(){if(o===l)return z$(t,r,o,o.$async);const m=e.scopeValue("root",{ref:l});return z$(t,(0,za._)`${m}.validate`,l,l.$async)}function h(m){const g=ste(t,m);z$(t,g,m,m.$async)}function d(m){const g=e.scopeValue("schema",s.code.source===!0?{ref:m,code:(0,za.stringify)(m)}:{ref:m}),b=e.name("valid"),v=t.subschema({schema:m,dataTypes:[],schemaPath:za.nil,topSchemaRef:g,errSchemaPath:n},b);t.mergeEvaluated(v),t.ok(b)}}};function ste(t,e){const{gen:n}=t;return e.validate?n.scopeValue("validate",{ref:e.validate}):(0,za._)`${n.scopeValue("wrapper",{ref:e})}.validate`}Kl.getValidate=ste;function z$(t,e,n,i){const{gen:a,it:o}=t,{allErrors:r,schemaEnv:s,opts:c}=o,l=c.passContext?od.default.this:za.nil;i?u():f();function u(){if(!s.$async)throw new Error("async schema referenced by sync schema");const m=a.let("valid");a.try(()=>{a.code((0,za._)`await ${(0,UB.callValidateCode)(t,e,l)}`),d(e),r||a.assign(m,!0)},g=>{a.if((0,za._)`!(${g} instanceof ${o.ValidationError})`,()=>a.throw(g)),h(g),r||a.assign(m,!1)}),t.ok(m)}function f(){t.result((0,UB.callValidateCode)(t,e,l),()=>d(e),()=>h(e))}function h(m){const g=(0,za._)`${m}.errors`;a.assign(od.default.vErrors,(0,za._)`${od.default.vErrors} === null ? ${g} : ${od.default.vErrors}.concat(${g})`),a.assign(od.default.errors,(0,za._)`${od.default.vErrors}.length`)}function d(m){var g;if(!o.opts.unevaluated)return;const b=(g=n==null?void 0:n.validate)===null||g===void 0?void 0:g.evaluated;if(o.props!==!0)if(b&&!b.dynamicProps)b.props!==void 0&&(o.props=Gw.mergeEvaluated.props(a,b.props,o.props));else{const v=a.var("props",(0,za._)`${m}.evaluated.props`);o.props=Gw.mergeEvaluated.props(a,v,o.props,za.Name)}if(o.items!==!0)if(b&&!b.dynamicItems)b.items!==void 0&&(o.items=Gw.mergeEvaluated.items(a,b.items,o.items));else{const v=a.var("items",(0,za._)`${m}.evaluated.items`);o.items=Gw.mergeEvaluated.items(a,v,o.items,za.Name)}}}Kl.callRef=z$;Kl.default=Q6e;Object.defineProperty(px,"__esModule",{value:!0});const Z6e=VR,X6e=Kl,eVe=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",Z6e.default,X6e.default];px.default=eVe;var hx={},WR={};Object.defineProperty(WR,"__esModule",{value:!0});const wS=Et,zu=wS.operators,$S={maximum:{okStr:"<=",ok:zu.LTE,fail:zu.GT},minimum:{okStr:">=",ok:zu.GTE,fail:zu.LT},exclusiveMaximum:{okStr:"<",ok:zu.LT,fail:zu.GTE},exclusiveMinimum:{okStr:">",ok:zu.GT,fail:zu.LTE}},tVe={message:({keyword:t,schemaCode:e})=>(0,wS.str)`must be ${$S[t].okStr} ${e}`,params:({keyword:t,schemaCode:e})=>(0,wS._)`{comparison: ${$S[t].okStr}, limit: ${e}}`},rVe={keyword:Object.keys($S),type:"number",schemaType:"number",$data:!0,error:tVe,code(t){const{keyword:e,data:n,schemaCode:i}=t;t.fail$data((0,wS._)`${n} ${$S[e].fail} ${i} || isNaN(${n})`)}};WR.default=rVe;var dx={};Object.defineProperty(dx,"__esModule",{value:!0});const Zv=Et,nVe={message:({schemaCode:t})=>(0,Zv.str)`must be multiple of ${t}`,params:({schemaCode:t})=>(0,Zv._)`{multipleOf: ${t}}`},iVe={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:nVe,code(t){const{gen:e,data:n,schemaCode:i,it:a}=t,o=a.opts.multipleOfPrecision,r=e.let("res"),s=o?(0,Zv._)`Math.abs(Math.round(${r}) - ${r}) > 1e-${o}`:(0,Zv._)`${r} !== parseInt(${r})`;t.fail$data((0,Zv._)`(${i} === 0 || (${r} = ${n}/${i}, ${s}))`)}};dx.default=iVe;var mx={},HR={};Object.defineProperty(HR,"__esModule",{value:!0});function ote(t){const e=t.length;let n=0,i=0,a;for(;i=55296&&a<=56319&&i(0,gp._)`{limit: ${t}}`},lVe={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:oVe,code(t){const{keyword:e,data:n,schemaCode:i,it:a}=t,o=e==="maxLength"?gp.operators.GT:gp.operators.LT,r=a.opts.unicode===!1?(0,gp._)`${n}.length`:(0,gp._)`${(0,aVe.useFunc)(t.gen,sVe.default)}(${n})`;t.fail$data((0,gp._)`${r} ${o} ${i}`)}};mx.default=lVe;var yx={};Object.defineProperty(yx,"__esModule",{value:!0});const cVe=Gt,AS=Et,uVe={message:({schemaCode:t})=>(0,AS.str)`must match pattern "${t}"`,params:({schemaCode:t})=>(0,AS._)`{pattern: ${t}}`},fVe={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:uVe,code(t){const{data:e,$data:n,schema:i,schemaCode:a,it:o}=t,r=o.opts.unicodeRegExp?"u":"",s=n?(0,AS._)`(new RegExp(${a}, ${r}))`:(0,cVe.usePattern)(t,i);t.fail$data((0,AS._)`!${s}.test(${e})`)}};yx.default=fVe;var gx={};Object.defineProperty(gx,"__esModule",{value:!0});const Xv=Et,pVe={message({keyword:t,schemaCode:e}){const n=t==="maxProperties"?"more":"fewer";return(0,Xv.str)`must NOT have ${n} than ${e} properties`},params:({schemaCode:t})=>(0,Xv._)`{limit: ${t}}`},hVe={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:pVe,code(t){const{keyword:e,data:n,schemaCode:i}=t,a=e==="maxProperties"?Xv.operators.GT:Xv.operators.LT;t.fail$data((0,Xv._)`Object.keys(${n}).length ${a} ${i}`)}};gx.default=hVe;var vx={};Object.defineProperty(vx,"__esModule",{value:!0});const av=Gt,eP=Et,dVe=it,mVe={message:({params:{missingProperty:t}})=>(0,eP.str)`must have required property '${t}'`,params:({params:{missingProperty:t}})=>(0,eP._)`{missingProperty: ${t}}`},yVe={keyword:"required",type:"object",schemaType:"array",$data:!0,error:mVe,code(t){const{gen:e,schema:n,schemaCode:i,data:a,$data:o,it:r}=t,{opts:s}=r;if(!o&&n.length===0)return;const c=n.length>=s.loopRequired;if(r.allErrors?l():u(),s.strictRequired){const d=t.parentSchema.properties,{definedProperties:m}=t.it;for(const g of n)if((d==null?void 0:d[g])===void 0&&!m.has(g)){const b=r.schemaEnv.baseId+r.errSchemaPath,v=`required property "${g}" is not defined at "${b}" (strictRequired)`;(0,dVe.checkStrictMode)(r,v,r.opts.strictRequired)}}function l(){if(c||o)t.block$data(eP.nil,f);else for(const d of n)(0,av.checkReportMissingProp)(t,d)}function u(){const d=e.let("missing");if(c||o){const m=e.let("valid",!0);t.block$data(m,()=>h(d,m)),t.ok(m)}else e.if((0,av.checkMissingProp)(t,n,d)),(0,av.reportMissingProp)(t,d),e.else()}function f(){e.forOf("prop",i,d=>{t.setParams({missingProperty:d}),e.if((0,av.noPropertyInData)(e,a,d,s.ownProperties),()=>t.error())})}function h(d,m){t.setParams({missingProperty:d}),e.forOf(d,i,()=>{e.assign(m,(0,av.propertyInData)(e,a,d,s.ownProperties)),e.if((0,eP.not)(m),()=>{t.error(),e.break()})},eP.nil)}}};vx.default=yVe;var Px={};Object.defineProperty(Px,"__esModule",{value:!0});const tP=Et,gVe={message({keyword:t,schemaCode:e}){const n=t==="maxItems"?"more":"fewer";return(0,tP.str)`must NOT have ${n} than ${e} items`},params:({schemaCode:t})=>(0,tP._)`{limit: ${t}}`},vVe={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:gVe,code(t){const{keyword:e,data:n,schemaCode:i}=t,a=e==="maxItems"?tP.operators.GT:tP.operators.LT;t.fail$data((0,tP._)`${n}.length ${a} ${i}`)}};Px.default=vVe;var bx={},i0={};Object.defineProperty(i0,"__esModule",{value:!0});const lte=jee;lte.code='require("ajv/dist/runtime/equal").default';i0.default=lte;Object.defineProperty(bx,"__esModule",{value:!0});const hE=ai,Si=Et,PVe=it,bVe=i0,wVe={message:({params:{i:t,j:e}})=>(0,Si.str)`must NOT have duplicate items (items ## ${e} and ${t} are identical)`,params:({params:{i:t,j:e}})=>(0,Si._)`{i: ${t}, j: ${e}}`},$Ve={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:wVe,code(t){const{gen:e,data:n,$data:i,schema:a,parentSchema:o,schemaCode:r,it:s}=t;if(!i&&!a)return;const c=e.let("valid"),l=o.items?(0,hE.getSchemaTypes)(o.items):[];t.block$data(c,u,(0,Si._)`${r} === false`),t.ok(c);function u(){const m=e.let("i",(0,Si._)`${n}.length`),g=e.let("j");t.setParams({i:m,j:g}),e.assign(c,!0),e.if((0,Si._)`${m} > 1`,()=>(f()?h:d)(m,g))}function f(){return l.length>0&&!l.some(m=>m==="object"||m==="array")}function h(m,g){const b=e.name("item"),v=(0,hE.checkDataTypes)(l,b,s.opts.strictNumbers,hE.DataType.Wrong),P=e.const("indices",(0,Si._)`{}`);e.for((0,Si._)`;${m}--;`,()=>{e.let(b,(0,Si._)`${n}[${m}]`),e.if(v,(0,Si._)`continue`),l.length>1&&e.if((0,Si._)`typeof ${b} == "string"`,(0,Si._)`${b} += "_"`),e.if((0,Si._)`typeof ${P}[${b}] == "number"`,()=>{e.assign(g,(0,Si._)`${P}[${b}]`),t.error(),e.assign(c,!1).break()}).code((0,Si._)`${P}[${b}] = ${m}`)})}function d(m,g){const b=(0,PVe.useFunc)(e,bVe.default),v=e.name("outer");e.label(v).for((0,Si._)`;${m}--;`,()=>e.for((0,Si._)`${g} = ${m}; ${g}--;`,()=>e.if((0,Si._)`${b}(${n}[${m}], ${n}[${g}])`,()=>{t.error(),e.assign(c,!1).break(v)})))}}};bx.default=$Ve;var wx={};Object.defineProperty(wx,"__esModule",{value:!0});const rT=Et,AVe=it,SVe=i0,_Ve={message:"must be equal to constant",params:({schemaCode:t})=>(0,rT._)`{allowedValue: ${t}}`},xVe={keyword:"const",$data:!0,error:_Ve,code(t){const{gen:e,data:n,$data:i,schemaCode:a,schema:o}=t;i||o&&typeof o=="object"?t.fail$data((0,rT._)`!${(0,AVe.useFunc)(e,SVe.default)}(${n}, ${a})`):t.fail((0,rT._)`${o} !== ${n}`)}};wx.default=xVe;var $x={};Object.defineProperty($x,"__esModule",{value:!0});const Iv=Et,DVe=it,kVe=i0,OVe={message:"must be equal to one of the allowed values",params:({schemaCode:t})=>(0,Iv._)`{allowedValues: ${t}}`},EVe={keyword:"enum",schemaType:"array",$data:!0,error:OVe,code(t){const{gen:e,data:n,$data:i,schema:a,schemaCode:o,it:r}=t;if(!i&&a.length===0)throw new Error("enum must have non-empty array");const s=a.length>=r.opts.loopEnum;let c;const l=()=>c??(c=(0,DVe.useFunc)(e,kVe.default));let u;if(s||i)u=e.let("valid"),t.block$data(u,f);else{if(!Array.isArray(a))throw new Error("ajv implementation error");const d=e.const("vSchema",o);u=(0,Iv.or)(...a.map((m,g)=>h(d,g)))}t.pass(u);function f(){e.assign(u,!1),e.forOf("v",o,d=>e.if((0,Iv._)`${l()}(${n}, ${d})`,()=>e.assign(u,!0).break()))}function h(d,m){const g=a[m];return typeof g=="object"&&g!==null?(0,Iv._)`${l()}(${n}, ${d}[${m}])`:(0,Iv._)`${n} === ${g}`}}};$x.default=EVe;Object.defineProperty(hx,"__esModule",{value:!0});const IVe=WR,CVe=dx,TVe=mx,jVe=yx,MVe=gx,RVe=vx,NVe=Px,LVe=bx,FVe=wx,qVe=$x,zVe=[IVe.default,CVe.default,TVe.default,jVe.default,MVe.default,RVe.default,NVe.default,LVe.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},FVe.default,qVe.default];hx.default=zVe;var Mb={},a0={};Object.defineProperty(a0,"__esModule",{value:!0});a0.validateAdditionalItems=void 0;const vp=Et,nT=it,UVe={message:({params:{len:t}})=>(0,vp.str)`must NOT have more than ${t} items`,params:({params:{len:t}})=>(0,vp._)`{limit: ${t}}`},BVe={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:UVe,code(t){const{parentSchema:e,it:n}=t,{items:i}=e;if(!Array.isArray(i)){(0,nT.checkStrictMode)(n,'"additionalItems" is ignored when "items" is not an array of schemas');return}cte(t,i)}};function cte(t,e){const{gen:n,schema:i,data:a,keyword:o,it:r}=t;r.items=!0;const s=n.const("len",(0,vp._)`${a}.length`);if(i===!1)t.setParams({len:e.length}),t.pass((0,vp._)`${s} <= ${e.length}`);else if(typeof i=="object"&&!(0,nT.alwaysValidSchema)(r,i)){const l=n.var("valid",(0,vp._)`${s} <= ${e.length}`);n.if((0,vp.not)(l),()=>c(l)),t.ok(l)}function c(l){n.forRange("i",e.length,s,u=>{t.subschema({keyword:o,dataProp:u,dataPropType:nT.Type.Num},l),r.allErrors||n.if((0,vp.not)(l),()=>n.break())})}}a0.validateAdditionalItems=cte;a0.default=BVe;var GR={},s0={};Object.defineProperty(s0,"__esModule",{value:!0});s0.validateTuple=void 0;const VB=Et,U$=it,VVe=Gt,WVe={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(t){const{schema:e,it:n}=t;if(Array.isArray(e))return ute(t,"additionalItems",e);n.items=!0,!(0,U$.alwaysValidSchema)(n,e)&&t.ok((0,VVe.validateArray)(t))}};function ute(t,e,n=t.schema){const{gen:i,parentSchema:a,data:o,keyword:r,it:s}=t;u(a),s.opts.unevaluated&&n.length&&s.items!==!0&&(s.items=U$.mergeEvaluated.items(i,n.length,s.items));const c=i.name("valid"),l=i.const("len",(0,VB._)`${o}.length`);n.forEach((f,h)=>{(0,U$.alwaysValidSchema)(s,f)||(i.if((0,VB._)`${l} > ${h}`,()=>t.subschema({keyword:r,schemaProp:h,dataProp:h},c)),t.ok(c))});function u(f){const{opts:h,errSchemaPath:d}=s,m=n.length,g=m===f.minItems&&(m===f.maxItems||f[e]===!1);if(h.strictTuples&&!g){const b=`"${r}" is ${m}-tuple, but minItems or maxItems/${e} are not specified or different at path "${d}"`;(0,U$.checkStrictMode)(s,b,h.strictTuples)}}}s0.validateTuple=ute;s0.default=WVe;Object.defineProperty(GR,"__esModule",{value:!0});const HVe=s0,GVe={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:t=>(0,HVe.validateTuple)(t,"items")};GR.default=GVe;var KR={};Object.defineProperty(KR,"__esModule",{value:!0});const WB=Et,KVe=it,YVe=Gt,JVe=a0,QVe={message:({params:{len:t}})=>(0,WB.str)`must NOT have more than ${t} items`,params:({params:{len:t}})=>(0,WB._)`{limit: ${t}}`},ZVe={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:QVe,code(t){const{schema:e,parentSchema:n,it:i}=t,{prefixItems:a}=n;i.items=!0,!(0,KVe.alwaysValidSchema)(i,e)&&(a?(0,JVe.validateAdditionalItems)(t,a):t.ok((0,YVe.validateArray)(t)))}};KR.default=ZVe;var YR={};Object.defineProperty(YR,"__esModule",{value:!0});const Ws=Et,Kw=it,XVe={message:({params:{min:t,max:e}})=>e===void 0?(0,Ws.str)`must contain at least ${t} valid item(s)`:(0,Ws.str)`must contain at least ${t} and no more than ${e} valid item(s)`,params:({params:{min:t,max:e}})=>e===void 0?(0,Ws._)`{minContains: ${t}}`:(0,Ws._)`{minContains: ${t}, maxContains: ${e}}`},e8e={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:XVe,code(t){const{gen:e,schema:n,parentSchema:i,data:a,it:o}=t;let r,s;const{minContains:c,maxContains:l}=i;o.opts.next?(r=c===void 0?1:c,s=l):r=1;const u=e.const("len",(0,Ws._)`${a}.length`);if(t.setParams({min:r,max:s}),s===void 0&&r===0){(0,Kw.checkStrictMode)(o,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(s!==void 0&&r>s){(0,Kw.checkStrictMode)(o,'"minContains" > "maxContains" is always invalid'),t.fail();return}if((0,Kw.alwaysValidSchema)(o,n)){let g=(0,Ws._)`${u} >= ${r}`;s!==void 0&&(g=(0,Ws._)`${g} && ${u} <= ${s}`),t.pass(g);return}o.items=!0;const f=e.name("valid");s===void 0&&r===1?d(f,()=>e.if(f,()=>e.break())):r===0?(e.let(f,!0),s!==void 0&&e.if((0,Ws._)`${a}.length > 0`,h)):(e.let(f,!1),h()),t.result(f,()=>t.reset());function h(){const g=e.name("_valid"),b=e.let("count",0);d(g,()=>e.if(g,()=>m(b)))}function d(g,b){e.forRange("i",0,u,v=>{t.subschema({keyword:"contains",dataProp:v,dataPropType:Kw.Type.Num,compositeRule:!0},g),b()})}function m(g){e.code((0,Ws._)`${g}++`),s===void 0?e.if((0,Ws._)`${g} >= ${r}`,()=>e.assign(f,!0).break()):(e.if((0,Ws._)`${g} > ${s}`,()=>e.assign(f,!1).break()),r===1?e.assign(f,!0):e.if((0,Ws._)`${g} >= ${r}`,()=>e.assign(f,!0)))}}};YR.default=e8e;var Ax={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.validateSchemaDeps=t.validatePropertyDeps=t.error=void 0;const e=Et,n=it,i=Gt;t.error={message:({params:{property:c,depsCount:l,deps:u}})=>{const f=l===1?"property":"properties";return(0,e.str)`must have ${f} ${u} when property ${c} is present`},params:({params:{property:c,depsCount:l,deps:u,missingProperty:f}})=>(0,e._)`{property: ${c}, - missingProperty: ${f}, - depsCount: ${l}, - deps: ${u}}`};const a={keyword:"dependencies",type:"object",schemaType:"object",error:t.error,code(c){const[l,u]=o(c);r(c,l),s(c,u)}};function o({schema:c}){const l={},u={};for(const f in c){if(f==="__proto__")continue;const h=Array.isArray(c[f])?l:u;h[f]=c[f]}return[l,u]}function r(c,l=c.schema){const{gen:u,data:f,it:h}=c;if(Object.keys(l).length===0)return;const d=u.let("missing");for(const m in l){const g=l[m];if(g.length===0)continue;const b=(0,i.propertyInData)(u,f,m,h.opts.ownProperties);c.setParams({property:m,depsCount:g.length,deps:g.join(", ")}),h.allErrors?u.if(b,()=>{for(const v of g)(0,i.checkReportMissingProp)(c,v)}):(u.if((0,e._)`${b} && (${(0,i.checkMissingProp)(c,g,d)})`),(0,i.reportMissingProp)(c,d),u.else())}}t.validatePropertyDeps=r;function s(c,l=c.schema){const{gen:u,data:f,keyword:h,it:d}=c,m=u.name("valid");for(const g in l)(0,n.alwaysValidSchema)(d,l[g])||(u.if((0,i.propertyInData)(u,f,g,d.opts.ownProperties),()=>{const b=c.subschema({keyword:h,schemaProp:g},m);c.mergeValidEvaluated(b,m)},()=>u.var(m,!0)),c.ok(m))}t.validateSchemaDeps=s,t.default=a})(Ax);var JR={};Object.defineProperty(JR,"__esModule",{value:!0});const fte=Et,t8e=it,r8e={message:"property name must be valid",params:({params:t})=>(0,fte._)`{propertyName: ${t.propertyName}}`},n8e={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:r8e,code(t){const{gen:e,schema:n,data:i,it:a}=t;if((0,t8e.alwaysValidSchema)(a,n))return;const o=e.name("valid");e.forIn("key",i,r=>{t.setParams({propertyName:r}),t.subschema({keyword:"propertyNames",data:r,dataTypes:["string"],propertyName:r,compositeRule:!0},o),e.if((0,fte.not)(o),()=>{t.error(!0),a.allErrors||e.break()})}),t.ok(o)}};JR.default=n8e;var Sx={};Object.defineProperty(Sx,"__esModule",{value:!0});const Yw=Gt,No=Et,i8e=Ia,Jw=it,a8e={message:"must NOT have additional properties",params:({params:t})=>(0,No._)`{additionalProperty: ${t.additionalProperty}}`},s8e={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:a8e,code(t){const{gen:e,schema:n,parentSchema:i,data:a,errsCount:o,it:r}=t;if(!o)throw new Error("ajv implementation error");const{allErrors:s,opts:c}=r;if(r.props=!0,c.removeAdditional!=="all"&&(0,Jw.alwaysValidSchema)(r,n))return;const l=(0,Yw.allSchemaProperties)(i.properties),u=(0,Yw.allSchemaProperties)(i.patternProperties);f(),t.ok((0,No._)`${o} === ${i8e.default.errors}`);function f(){e.forIn("key",a,b=>{!l.length&&!u.length?m(b):e.if(h(b),()=>m(b))})}function h(b){let v;if(l.length>8){const P=(0,Jw.schemaRefOrVal)(r,i.properties,"properties");v=(0,Yw.isOwnProperty)(e,P,b)}else l.length?v=(0,No.or)(...l.map(P=>(0,No._)`${b} === ${P}`)):v=No.nil;return u.length&&(v=(0,No.or)(v,...u.map(P=>(0,No._)`${(0,Yw.usePattern)(t,P)}.test(${b})`))),(0,No.not)(v)}function d(b){e.code((0,No._)`delete ${a}[${b}]`)}function m(b){if(c.removeAdditional==="all"||c.removeAdditional&&n===!1){d(b);return}if(n===!1){t.setParams({additionalProperty:b}),t.error(),s||e.break();return}if(typeof n=="object"&&!(0,Jw.alwaysValidSchema)(r,n)){const v=e.name("valid");c.removeAdditional==="failing"?(g(b,v,!1),e.if((0,No.not)(v),()=>{t.reset(),d(b)})):(g(b,v),s||e.if((0,No.not)(v),()=>e.break()))}}function g(b,v,P){const A={keyword:"additionalProperties",dataProp:b,dataPropType:Jw.Type.Str};P===!1&&Object.assign(A,{compositeRule:!0,createErrors:!1,allErrors:!1}),t.subschema(A,v)}}};Sx.default=s8e;var QR={};Object.defineProperty(QR,"__esModule",{value:!0});const o8e=Qa,HB=Gt,dE=it,GB=Sx,l8e={keyword:"properties",type:"object",schemaType:"object",code(t){const{gen:e,schema:n,parentSchema:i,data:a,it:o}=t;o.opts.removeAdditional==="all"&&i.additionalProperties===void 0&&GB.default.code(new o8e.KeywordCxt(o,GB.default,"additionalProperties"));const r=(0,HB.allSchemaProperties)(n);for(const f of r)o.definedProperties.add(f);o.opts.unevaluated&&r.length&&o.props!==!0&&(o.props=dE.mergeEvaluated.props(e,(0,dE.toHash)(r),o.props));const s=r.filter(f=>!(0,dE.alwaysValidSchema)(o,n[f]));if(s.length===0)return;const c=e.name("valid");for(const f of s)l(f)?u(f):(e.if((0,HB.propertyInData)(e,a,f,o.opts.ownProperties)),u(f),o.allErrors||e.else().var(c,!0),e.endIf()),t.it.definedProperties.add(f),t.ok(c);function l(f){return o.opts.useDefaults&&!o.compositeRule&&n[f].default!==void 0}function u(f){t.subschema({keyword:"properties",schemaProp:f,dataProp:f},c)}}};QR.default=l8e;var ZR={};Object.defineProperty(ZR,"__esModule",{value:!0});const KB=Gt,Qw=Et,YB=it,JB=it,c8e={keyword:"patternProperties",type:"object",schemaType:"object",code(t){const{gen:e,schema:n,data:i,parentSchema:a,it:o}=t,{opts:r}=o,s=(0,KB.allSchemaProperties)(n),c=s.filter(g=>(0,YB.alwaysValidSchema)(o,n[g]));if(s.length===0||c.length===s.length&&(!o.opts.unevaluated||o.props===!0))return;const l=r.strictSchema&&!r.allowMatchingProperties&&a.properties,u=e.name("valid");o.props!==!0&&!(o.props instanceof Qw.Name)&&(o.props=(0,JB.evaluatedPropsToName)(e,o.props));const{props:f}=o;h();function h(){for(const g of s)l&&d(g),o.allErrors?m(g):(e.var(u,!0),m(g),e.if(u))}function d(g){for(const b in l)new RegExp(g).test(b)&&(0,YB.checkStrictMode)(o,`property ${b} matches pattern ${g} (use allowMatchingProperties)`)}function m(g){e.forIn("key",i,b=>{e.if((0,Qw._)`${(0,KB.usePattern)(t,g)}.test(${b})`,()=>{const v=c.includes(g);v||t.subschema({keyword:"patternProperties",schemaProp:g,dataProp:b,dataPropType:JB.Type.Str},u),o.opts.unevaluated&&f!==!0?e.assign((0,Qw._)`${f}[${b}]`,!0):!v&&!o.allErrors&&e.if((0,Qw.not)(u),()=>e.break())})})}}};ZR.default=c8e;var XR={};Object.defineProperty(XR,"__esModule",{value:!0});const u8e=it,f8e={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(t){const{gen:e,schema:n,it:i}=t;if((0,u8e.alwaysValidSchema)(i,n)){t.fail();return}const a=e.name("valid");t.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},a),t.failResult(a,()=>t.reset(),()=>t.error())},error:{message:"must NOT be valid"}};XR.default=f8e;var eN={};Object.defineProperty(eN,"__esModule",{value:!0});const p8e=Gt,h8e={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:p8e.validateUnion,error:{message:"must match a schema in anyOf"}};eN.default=h8e;var tN={};Object.defineProperty(tN,"__esModule",{value:!0});const B$=Et,d8e=it,m8e={message:"must match exactly one schema in oneOf",params:({params:t})=>(0,B$._)`{passingSchemas: ${t.passing}}`},y8e={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:m8e,code(t){const{gen:e,schema:n,parentSchema:i,it:a}=t;if(!Array.isArray(n))throw new Error("ajv implementation error");if(a.opts.discriminator&&i.discriminator)return;const o=n,r=e.let("valid",!1),s=e.let("passing",null),c=e.name("_valid");t.setParams({passing:s}),e.block(l),t.result(r,()=>t.reset(),()=>t.error(!0));function l(){o.forEach((u,f)=>{let h;(0,d8e.alwaysValidSchema)(a,u)?e.var(c,!0):h=t.subschema({keyword:"oneOf",schemaProp:f,compositeRule:!0},c),f>0&&e.if((0,B$._)`${c} && ${r}`).assign(r,!1).assign(s,(0,B$._)`[${s}, ${f}]`).else(),e.if(c,()=>{e.assign(r,!0),e.assign(s,f),h&&t.mergeEvaluated(h,B$.Name)})})}}};tN.default=y8e;var rN={};Object.defineProperty(rN,"__esModule",{value:!0});const g8e=it,v8e={keyword:"allOf",schemaType:"array",code(t){const{gen:e,schema:n,it:i}=t;if(!Array.isArray(n))throw new Error("ajv implementation error");const a=e.name("valid");n.forEach((o,r)=>{if((0,g8e.alwaysValidSchema)(i,o))return;const s=t.subschema({keyword:"allOf",schemaProp:r},a);t.ok(a),t.mergeEvaluated(s)})}};rN.default=v8e;var nN={};Object.defineProperty(nN,"__esModule",{value:!0});const SS=Et,pte=it,P8e={message:({params:t})=>(0,SS.str)`must match "${t.ifClause}" schema`,params:({params:t})=>(0,SS._)`{failingKeyword: ${t.ifClause}}`},b8e={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:P8e,code(t){const{gen:e,parentSchema:n,it:i}=t;n.then===void 0&&n.else===void 0&&(0,pte.checkStrictMode)(i,'"if" without "then" and "else" is ignored');const a=QB(i,"then"),o=QB(i,"else");if(!a&&!o)return;const r=e.let("valid",!0),s=e.name("_valid");if(c(),t.reset(),a&&o){const u=e.let("ifClause");t.setParams({ifClause:u}),e.if(s,l("then",u),l("else",u))}else a?e.if(s,l("then")):e.if((0,SS.not)(s),l("else"));t.pass(r,()=>t.error(!0));function c(){const u=t.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},s);t.mergeEvaluated(u)}function l(u,f){return()=>{const h=t.subschema({keyword:u},s);e.assign(r,s),t.mergeValidEvaluated(h,r),f?e.assign(f,(0,SS._)`${u}`):t.setParams({ifClause:u})}}}};function QB(t,e){const n=t.schema[e];return n!==void 0&&!(0,pte.alwaysValidSchema)(t,n)}nN.default=b8e;var iN={};Object.defineProperty(iN,"__esModule",{value:!0});const w8e=it,$8e={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:t,parentSchema:e,it:n}){e.if===void 0&&(0,w8e.checkStrictMode)(n,`"${t}" without "if" is ignored`)}};iN.default=$8e;Object.defineProperty(Mb,"__esModule",{value:!0});const A8e=a0,S8e=GR,_8e=s0,x8e=KR,D8e=YR,k8e=Ax,O8e=JR,E8e=Sx,I8e=QR,C8e=ZR,T8e=XR,j8e=eN,M8e=tN,R8e=rN,N8e=nN,L8e=iN;function F8e(t=!1){const e=[T8e.default,j8e.default,M8e.default,R8e.default,N8e.default,L8e.default,O8e.default,E8e.default,k8e.default,I8e.default,C8e.default];return t?e.push(S8e.default,x8e.default):e.push(A8e.default,_8e.default),e.push(D8e.default),e}Mb.default=F8e;var Rb={},aN={};Object.defineProperty(aN,"__esModule",{value:!0});const On=Et,q8e={message:({schemaCode:t})=>(0,On.str)`must match format "${t}"`,params:({schemaCode:t})=>(0,On._)`{format: ${t}}`},z8e={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:q8e,code(t,e){const{gen:n,data:i,$data:a,schema:o,schemaCode:r,it:s}=t,{opts:c,errSchemaPath:l,schemaEnv:u,self:f}=s;if(!c.validateFormats)return;a?h():d();function h(){const m=n.scopeValue("formats",{ref:f.formats,code:c.code.formats}),g=n.const("fDef",(0,On._)`${m}[${r}]`),b=n.let("fType"),v=n.let("format");n.if((0,On._)`typeof ${g} == "object" && !(${g} instanceof RegExp)`,()=>n.assign(b,(0,On._)`${g}.type || "string"`).assign(v,(0,On._)`${g}.validate`),()=>n.assign(b,(0,On._)`"string"`).assign(v,g)),t.fail$data((0,On.or)(P(),A()));function P(){return c.strictSchema===!1?On.nil:(0,On._)`${r} && !${v}`}function A(){const _=u.$async?(0,On._)`(${g}.async ? await ${v}(${i}) : ${v}(${i}))`:(0,On._)`${v}(${i})`,x=(0,On._)`(typeof ${v} == "function" ? ${_} : ${v}.test(${i}))`;return(0,On._)`${v} && ${v} !== true && ${b} === ${e} && !${x}`}}function d(){const m=f.formats[o];if(!m){P();return}if(m===!0)return;const[g,b,v]=A(m);g===e&&t.pass(_());function P(){if(c.strictSchema===!1){f.logger.warn(x());return}throw new Error(x());function x(){return`unknown format "${o}" ignored in schema at path "${l}"`}}function A(x){const N=x instanceof RegExp?(0,On.regexpCode)(x):c.code.formats?(0,On._)`${c.code.formats}${(0,On.getProperty)(o)}`:void 0,j=n.scopeValue("formats",{key:o,ref:x,code:N});return typeof x=="object"&&!(x instanceof RegExp)?[x.type||"string",x.validate,(0,On._)`${j}.validate`]:["string",x,j]}function _(){if(typeof m=="object"&&!(m instanceof RegExp)&&m.async){if(!u.$async)throw new Error("async format in sync schema");return(0,On._)`await ${v}(${i})`}return typeof b=="function"?(0,On._)`${v}(${i})`:(0,On._)`${v}.test(${i})`}}}};aN.default=z8e;Object.defineProperty(Rb,"__esModule",{value:!0});const U8e=aN,B8e=[U8e.default];Rb.default=B8e;var vh={};Object.defineProperty(vh,"__esModule",{value:!0});vh.contentVocabulary=vh.metadataVocabulary=void 0;vh.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];vh.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"];Object.defineProperty(fx,"__esModule",{value:!0});const V8e=px,W8e=hx,H8e=Mb,G8e=Rb,ZB=vh,K8e=[V8e.default,W8e.default,(0,H8e.default)(),G8e.default,ZB.metadataVocabulary,ZB.contentVocabulary];fx.default=K8e;var o0={},_x={};Object.defineProperty(_x,"__esModule",{value:!0});_x.DiscrError=void 0;var XB;(function(t){t.Tag="tag",t.Mapping="mapping"})(XB||(_x.DiscrError=XB={}));Object.defineProperty(o0,"__esModule",{value:!0});const wd=Et,iT=_x,e6=ya,Y8e=Pu,J8e=it,Q8e={message:({params:{discrError:t,tagName:e}})=>t===iT.DiscrError.Tag?`tag "${e}" must be string`:`value of tag "${e}" must be in oneOf`,params:({params:{discrError:t,tag:e,tagName:n}})=>(0,wd._)`{error: ${t}, tag: ${n}, tagValue: ${e}}`},Z8e={keyword:"discriminator",type:"object",schemaType:"object",error:Q8e,code(t){const{gen:e,data:n,schema:i,parentSchema:a,it:o}=t,{oneOf:r}=a;if(!o.opts.discriminator)throw new Error("discriminator: requires discriminator option");const s=i.propertyName;if(typeof s!="string")throw new Error("discriminator: requires propertyName");if(i.mapping)throw new Error("discriminator: mapping is not supported");if(!r)throw new Error("discriminator: requires oneOf keyword");const c=e.let("valid",!1),l=e.const("tag",(0,wd._)`${n}${(0,wd.getProperty)(s)}`);e.if((0,wd._)`typeof ${l} == "string"`,()=>u(),()=>t.error(!1,{discrError:iT.DiscrError.Tag,tag:l,tagName:s})),t.ok(c);function u(){const d=h();e.if(!1);for(const m in d)e.elseIf((0,wd._)`${l} === ${m}`),e.assign(c,f(d[m]));e.else(),t.error(!1,{discrError:iT.DiscrError.Mapping,tag:l,tagName:s}),e.endIf()}function f(d){const m=e.name("valid"),g=t.subschema({keyword:"oneOf",schemaProp:d},m);return t.mergeEvaluated(g,wd.Name),m}function h(){var d;const m={},g=v(a);let b=!0;for(let _=0;_this.addVocabulary(m)),this.opts.discriminator&&this.addKeyword(a.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const m=this.opts.$data?this.$dataMetaSchema(o,r):o;this.addMetaSchema(m,s,!1),this.refs["http://json-schema.org/schema"]=s}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(s)?s:void 0)}}e.Ajv=c,t.exports=e=c,t.exports.Ajv=c,Object.defineProperty(e,"__esModule",{value:!0}),e.default=c;var l=Qa;Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return l.KeywordCxt}});var u=Et;Object.defineProperty(e,"_",{enumerable:!0,get:function(){return u._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return u.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return u.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return u.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return u.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return u.CodeGen}});var f=jh;Object.defineProperty(e,"ValidationError",{enumerable:!0,get:function(){return f.default}});var h=Pu;Object.defineProperty(e,"MissingRefError",{enumerable:!0,get:function(){return h.default}})})(JC,JC.exports);var l0=JC.exports,aT={exports:{}},hte={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.formatNames=t.fastFormats=t.fullFormats=void 0;function e(E,L){return{validate:E,compare:L}}t.fullFormats={date:e(o,r),time:e(c,l),"date-time":e(f,h),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:g,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:I,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:v,int32:{type:"number",validate:_},int64:{type:"number",validate:x},float:{type:"number",validate:N},double:{type:"number",validate:N},password:!0,binary:!0},t.fastFormats={...t.fullFormats,date:e(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,r),time:e(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,l),"date-time":e(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,h),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i},t.formatNames=Object.keys(t.fullFormats);function n(E){return E%4===0&&(E%100!==0||E%400===0)}const i=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,a=[0,31,28,31,30,31,30,31,31,30,31,30,31];function o(E){const L=i.exec(E);if(!L)return!1;const q=+L[1],F=+L[2],S=+L[3];return F>=1&&F<=12&&S>=1&&S<=(F===2&&n(q)?29:a[F])}function r(E,L){if(E&&L)return E>L?1:EL?1:E=P}function x(E){return Number.isInteger(E)}function N(){return!0}const j=/[^\\]\\Z/;function I(E){if(j.test(E))return!1;try{return new RegExp(E),!0}catch{return!1}}})(hte);var dte={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.formatLimitDefinition=void 0;const e=l0,n=Et,i=n.operators,a={formatMaximum:{okStr:"<=",ok:i.LTE,fail:i.GT},formatMinimum:{okStr:">=",ok:i.GTE,fail:i.LT},formatExclusiveMaximum:{okStr:"<",ok:i.LT,fail:i.GTE},formatExclusiveMinimum:{okStr:">",ok:i.GT,fail:i.LTE}},o={message:({keyword:s,schemaCode:c})=>n.str`should be ${a[s].okStr} ${c}`,params:({keyword:s,schemaCode:c})=>n._`{comparison: ${a[s].okStr}, limit: ${c}}`};t.formatLimitDefinition={keyword:Object.keys(a),type:"string",schemaType:"string",$data:!0,error:o,code(s){const{gen:c,data:l,schemaCode:u,keyword:f,it:h}=s,{opts:d,self:m}=h;if(!d.validateFormats)return;const g=new e.KeywordCxt(h,m.RULES.all.format.definition,"format");g.$data?b():v();function b(){const A=c.scopeValue("formats",{ref:m.formats,code:d.code.formats}),_=c.const("fmt",n._`${A}[${g.schemaCode}]`);s.fail$data(n.or(n._`typeof ${_} != "object"`,n._`${_} instanceof RegExp`,n._`typeof ${_}.compare != "function"`,P(_)))}function v(){const A=g.schema,_=m.formats[A];if(!_||_===!0)return;if(typeof _!="object"||_ instanceof RegExp||typeof _.compare!="function")throw new Error(`"${f}": format "${A}" does not define "compare" function`);const x=c.scopeValue("formats",{key:A,ref:_,code:d.code.formats?n._`${d.code.formats}${n.getProperty(A)}`:void 0});s.fail$data(P(x))}function P(A){return n._`${A}.compare(${l}, ${u}) ${a[f].fail} 0`}},dependencies:["format"]};const r=s=>(s.addKeyword(t.formatLimitDefinition),s);t.default=r})(dte);(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});const n=hte,i=dte,a=Et,o=new a.Name("fullFormats"),r=new a.Name("fastFormats"),s=(l,u={keywords:!0})=>{if(Array.isArray(u))return c(l,u,n.fullFormats,o),l;const[f,h]=u.mode==="fast"?[n.fastFormats,r]:[n.fullFormats,o],d=u.formats||n.formatNames;return c(l,d,f,h),u.keywords&&i.default(l),l};s.get=(l,u="full")=>{const h=(u==="fast"?n.fastFormats:n.fullFormats)[l];if(!h)throw new Error(`Unknown format "${l}"`);return h};function c(l,u,f,h){var d,m;(d=(m=l.opts.code).formats)!==null&&d!==void 0||(m.formats=a._`require("ajv-formats/dist/formats").${h}`);for(const g of u)l.addFormat(g,f[g])}t.exports=e=s,Object.defineProperty(e,"__esModule",{value:!0}),e.default=s})(aT,aT.exports);var mte=aT.exports,sT={exports:{}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});const n=l0,i=Et,a=bg,o=Qa,r=n0,s=Ia,c="errorMessage",l=new n.Name("emUsed"),u={required:"missingProperty",dependencies:"property",dependentRequired:"property"},f=/\$\{[^}]+\}/,h=/\$\{([^}]+)\}/g,d=/^""\s*\+\s*|\s*\+\s*""$/g;function m(b){return{keyword:c,schemaType:["string","object"],post:!0,code(v){const{gen:P,data:A,schema:_,schemaValue:x,it:N}=v;if(N.createErrors===!1)return;const j=_,I=i.strConcat(s.default.instancePath,N.errorPath);P.if(n._`${s.default.errors} > 0`,()=>{if(typeof j=="object"){const[V,T]=L(j);T&&q(T),V&&F(V),S(E(j))}const z=typeof j=="string"?j:j._;z&&D(z),b.keepErrors||M()});function E({properties:z,items:V}){const T={};if(z){T.props={};for(const W in z)T.props[W]=[]}if(V){T.items={};for(let W=0;WP.if(C(ae,V),()=>P.code(n._`${V}[${ae}.keyword].push(${ae})`).assign(n._`${ae}.${l}`,!0)));const{singleError:W}=b;if(W){const ae=P.let("message",n._`""`),_e=P.let("paramsErrors",n._`[]`);le(he=>{P.if(ae,()=>P.code(n._`${ae} += ${typeof W=="string"?W:";"}`)),P.code(n._`${ae} += ${ve(he)}`),P.assign(_e,n._`${_e}.concat(${V}[${he}])`)}),r.reportError(v,{message:ae,params:n._`{errors: ${_e}}`})}else le(ae=>r.reportError(v,{message:ve(ae),params:n._`{errors: ${V}[${ae}]}`}));function le(ae){P.forIn("key",V,_e=>P.if(n._`${V}[${_e}].length`,()=>ae(_e)))}function ve(ae){return n._`${ae} in ${T} ? ${T}[${ae}]() : ${x}[${ae}]`}}function F(z){const V=P.const("emErrors",n.stringify(z)),T=[];for(const _e in z)T.push([_e,ie(z[_e],_[_e])]);const W=P.const("templates",P.object(...T)),le=P.scopeValue("obj",{ref:u,code:n.stringify(u)}),ve=P.let("emPropParams"),ae=P.let("emParamsErrors");P.forOf("err",s.default.vErrors,_e=>P.if(C(_e,V),()=>{P.assign(ve,n._`${le}[${_e}.keyword]`),P.assign(ae,n._`${V}[${_e}.keyword][${_e}.params[${ve}]]`),P.if(ae,()=>P.code(n._`${ae}.push(${_e})`).assign(n._`${_e}.${l}`,!0))})),P.forIn("key",V,_e=>P.forIn("keyProp",n._`${V}[${_e}]`,he=>{P.assign(ae,n._`${V}[${_e}][${he}]`),P.if(n._`${ae}.length`,()=>{const Ee=P.const("tmpl",n._`${W}[${_e}] && ${W}[${_e}][${he}]`);r.reportError(v,{message:n._`${Ee} ? ${Ee}() : ${x}[${_e}][${he}]`,params:n._`{errors: ${ae}}`})})}))}function S(z){const{props:V,items:T}=z;if(!V&&!T)return;const W=n._`typeof ${A} == "object"`,le=n._`Array.isArray(${A})`,ve=P.let("emErrors");let ae,_e;const he=P.let("templates");V&&T?(ae=P.let("emChildKwd"),P.if(W),P.if(le,()=>{Ee(T,_.items),P.assign(ae,n.str`items`)},()=>{Ee(V,_.properties),P.assign(ae,n.str`properties`)}),_e=n._`[${ae}]`):T?(P.if(le),Ee(T,_.items),_e=n._`.items`):V&&(P.if(i.and(W,i.not(le))),Ee(V,_.properties),_e=n._`.properties`),P.forOf("err",s.default.vErrors,Ge=>H(Ge,ve,Me=>P.code(n._`${ve}[${Me}].push(${Ge})`).assign(n._`${Ge}.${l}`,!0))),P.forIn("key",ve,Ge=>P.if(n._`${ve}[${Ge}].length`,()=>{r.reportError(v,{message:n._`${Ge} in ${he} ? ${he}[${Ge}]() : ${x}${_e}[${Ge}]`,params:n._`{errors: ${ve}[${Ge}]}`}),P.assign(n._`${s.default.vErrors}[${s.default.errors}-1].instancePath`,n._`${I} + "/" + ${Ge}.replace(/~/g, "~0").replace(/\\//g, "~1")`)})),P.endIf();function Ee(Ge,Me){P.assign(ve,n.stringify(Ge)),P.assign(he,ie(Ge,Me))}}function D(z){const V=P.const("emErrs",n._`[]`);P.forOf("err",s.default.vErrors,T=>P.if(X(T),()=>P.code(n._`${V}.push(${T})`).assign(n._`${T}.${l}`,!0))),P.if(n._`${V}.length`,()=>r.reportError(v,{message:U(z),params:n._`{errors: ${V}}`}))}function M(){const z=P.const("emErrs",n._`[]`);P.forOf("err",s.default.vErrors,V=>P.if(n._`!${V}.${l}`,()=>P.code(n._`${z}.push(${V})`))),P.assign(s.default.vErrors,z).assign(s.default.errors,n._`${z}.length`)}function C(z,V){return i.and(n._`${z}.keyword !== ${c}`,n._`!${z}.${l}`,n._`${z}.instancePath === ${I}`,n._`${z}.keyword in ${V}`,n._`${z}.schemaPath.indexOf(${N.errSchemaPath}) === 0`,n._`/^\\/[^\\/]*$/.test(${z}.schemaPath.slice(${N.errSchemaPath.length}))`)}function H(z,V,T){P.if(i.and(n._`${z}.keyword !== ${c}`,n._`!${z}.${l}`,n._`${z}.instancePath.indexOf(${I}) === 0`),()=>{const W=P.scopeValue("pattern",{ref:/^\/([^/]*)(?:\/|$)/,code:n._`new RegExp("^\\\/([^/]*)(?:\\\/|$)")`}),le=P.const("emMatches",n._`${W}.exec(${z}.instancePath.slice(${I}.length))`),ve=P.const("emChild",n._`${le} && ${le}[1].replace(/~1/g, "/").replace(/~0/g, "~")`);P.if(n._`${ve} !== undefined && ${ve} in ${V}`,()=>T(ve))})}function X(z){return i.and(n._`${z}.keyword !== ${c}`,n._`!${z}.${l}`,i.or(n._`${z}.instancePath === ${I}`,i.and(n._`${z}.instancePath.indexOf(${I}) === 0`,n._`${z}.instancePath[${I}.length] === "/"`)),n._`${z}.schemaPath.indexOf(${N.errSchemaPath}) === 0`,n._`${z}.schemaPath[${N.errSchemaPath}.length] === "/"`)}function ie(z,V){const T=[];for(const W in z){const le=V[W];f.test(le)&&T.push([W,R(le)])}return P.object(...T)}function U(z){return f.test(z)?new a._Code(a.safeStringify(z).replace(h,(V,T)=>`" + JSON.stringify(${o.getData(T,N)}) + "`).replace(d,"")):n.stringify(z)}function R(z){return n._`function(){return ${U(z)}}`}},metaSchema:{anyOf:[{type:"string"},{type:"object",properties:{properties:{$ref:"#/$defs/stringMap"},items:{$ref:"#/$defs/stringList"},required:{$ref:"#/$defs/stringOrMap"},dependencies:{$ref:"#/$defs/stringOrMap"}},additionalProperties:{type:"string"}}],$defs:{stringMap:{type:"object",additionalProperties:{type:"string"}},stringOrMap:{anyOf:[{type:"string"},{$ref:"#/$defs/stringMap"}]},stringList:{type:"array",items:{type:"string"}}}}}}const g=(b,v={})=>{if(!b.opts.allErrors)throw new Error("ajv-errors: Ajv option allErrors must be true");if(b.opts.jsPropertySyntax)throw new Error("ajv-errors: ajv option jsPropertySyntax is not supported");return b.addKeyword(m(v))};e.default=g,t.exports=g,t.exports.default=g})(sT,sT.exports);var sN=sT.exports;const sWe="http://json-schema.org/draft-07/schema#",oWe="@stoplight/spectral-core/meta/rule.schema",lWe={Then:{type:"object",allOf:[{properties:{field:{type:"string"}}},{$ref:"extensions#function"}]},Severity:{$ref:"shared#severity"}},cWe={type:"object",properties:{description:{type:"string"},documentationUrl:{type:"string",format:"url",errorMessage:"must be a valid URL"},recommended:{type:"boolean"},given:{$ref:"shared#given"},resolved:{type:"boolean"},severity:{$ref:"#/$defs/Severity"},message:{type:"string"},tags:{items:{type:"string"},type:"array"},formats:{$ref:"shared#formats"},then:{if:{type:"array"},then:{type:"array",items:{$ref:"#/$defs/Then"}},else:{$ref:"#/$defs/Then"}},type:{enum:["style","validation"],type:"string",errorMessage:'allowed types are "style" and "validation"'},extensions:{type:"object"}},required:["given","then"],additionalProperties:!1,patternProperties:{"^x-":!0},errorMessage:{required:'the rule must have at least "given" and "then" properties'}},uWe={$schema:sWe,$id:oWe,$defs:lWe,if:{type:"object"},then:cWe,else:{oneOf:[{$ref:"shared#/$defs/HumanReadableSeverity"},{type:"boolean"}]}},fWe="http://json-schema.org/draft-07/schema#",pWe="@stoplight/spectral-core/meta/shared",hWe={Formats:{$anchor:"formats",type:"array",items:{$ref:"extensions#format"},errorMessage:"must be an array of formats"},DiagnosticSeverity:{enum:[-1,0,1,2,3]},HumanReadableSeverity:{enum:["error","warn","info","hint","off"]},Severity:{$anchor:"severity",oneOf:[{$ref:"#/$defs/DiagnosticSeverity"},{$ref:"#/$defs/HumanReadableSeverity"}],errorMessage:'the value has to be one of: 0, 1, 2, 3 or "error", "warn", "info", "hint", "off"'},Given:{$anchor:"given",if:{type:"array"},then:{$anchor:"arrayish-given",type:"array",items:{$ref:"path-expression"},minItems:1,errorMessage:{minItems:"must be a non-empty array of expressions"}},else:{$ref:"path-expression"}},PathExpression:{$id:"path-expression",if:{type:"string"},then:{type:"string",if:{pattern:"^#"},then:{"x-spectral-runtime":"alias"},else:{pattern:"^\\$",errorMessage:"must be a valid JSON Path expression or a reference to the existing Alias optionally paired with a JSON Path expression subset"}},else:{not:{},errorMessage:"must be a valid JSON Path expression or a reference to the existing Alias optionally paired with a JSON Path expression subset"}}},dWe={$schema:fWe,$id:pWe,$defs:hWe},mWe="http://json-schema.org/draft-07/schema#",yWe="@stoplight/spectral-core/meta/ruleset.schema",gWe="object",vWe=!1,PWe={documentationUrl:{type:"string",format:"url",errorMessage:"must be a valid URL"},description:{type:"string"},rules:{type:"object",additionalProperties:{$ref:"rule.schema#"}},functions:{$ref:"extensions#functions"},functionsDir:{$ref:"extensions#functionsDir"},formats:{$ref:"shared#formats"},extends:{$ref:"extensions#extends"},parserOptions:{type:"object",properties:{duplicateKeys:{$ref:"shared#severity"},incompatibleValues:{$ref:"shared#severity"}},additionalProperties:!1},overrides:{type:"array",minItems:1,items:{if:{type:"object",properties:{files:{type:"array",minItems:1,items:{type:"string",minLength:1,pattern:"^[^#]+#"},errorMessage:"must be an non-empty array of glob patterns"}},required:["files"]},then:{type:"object",properties:{files:!0,rules:{type:"object",additionalProperties:{$ref:"shared#severity"},errorMessage:{enum:"must be a valid severity level"}}},required:["rules"],additionalProperties:!1,errorMessage:{required:"must contain rules when JSON Pointers are defined",additionalProperties:"must not override any other property than rules when JSON Pointers are defined"}},else:{allOf:[{type:"object",properties:{files:{type:"array",minItems:1,items:{type:"string",pattern:"[^#]",minLength:1},errorMessage:"must be an non-empty array of glob patterns"}},required:["files"],errorMessage:{type:'must be an override, i.e. { "files": ["v2/**/*.json"], "rules": {} }'}},{type:"object",properties:{formats:{$ref:"shared#formats"},extends:{$ref:"#/properties/extends"},rules:{$ref:"#/properties/rules"},parserOptions:{$ref:"#/properties/parserOptions"},aliases:{$ref:"#/properties/aliases"}},anyOf:[{required:["extends"]},{required:["rules"]}]}]}},errorMessage:{minItems:"must not be empty"}},aliases:{type:"object",propertyNames:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$",errorMessage:{pattern:"to avoid confusion the name must match /^[A-Za-z][A-Za-z0-9_-]*$/ regular expression",minLength:"the name of an alias must not be empty"}},additionalProperties:{if:{type:"object"},then:{type:"object",properties:{description:{type:"string"},targets:{type:"array",minItems:1,items:{type:"object",properties:{formats:{$ref:"shared#formats"},given:{$ref:"shared#arrayish-given"}},required:["formats","given"],errorMessage:"a valid target must contain given and non-empty formats"},errorMessage:{minItems:"targets must have at least a single alias definition"}}},required:["targets"],errorMessage:{required:"targets must be present and have at least a single alias definition"}},else:{$ref:"shared#arrayish-given"}}}},bWe={"^x-":!0},wWe=[{required:["extends"]},{required:["rules"]},{required:["overrides"]}],$We={$schema:mWe,$id:yWe,type:gWe,additionalProperties:vWe,properties:PWe,patternProperties:bWe,anyOf:wWe},AWe="http://json-schema.org/draft-07/schema#",SWe="@stoplight/spectral-core/meta/extensions",_We={Extends:{$anchor:"extends",oneOf:[{$id:"ruleset",$ref:"ruleset.schema#",errorMessage:"must be a valid ruleset"},{type:"array",items:{anyOf:[{$ref:"ruleset"},{type:"array",minItems:2,additionalItems:!1,items:[{$ref:"ruleset"},{type:"string",enum:["off","recommended","all"],errorMessage:'allowed types are "off", "recommended" and "all"'}]}]}}],errorMessage:"must be a valid ruleset"},Format:{$anchor:"format","x-spectral-runtime":"format",errorMessage:"must be a valid format"},Function:{$anchor:"function","x-spectral-runtime":"ruleset-function",type:"object",properties:{function:!0},required:["function"]},Functions:{$anchor:"functions",not:{}},FunctionsDir:{$anchor:"functionsDir",not:{}}},xWe={$schema:AWe,$id:SWe,$defs:_We},DWe="http://json-schema.org/draft-07/schema#",kWe="@stoplight/spectral-core/meta/extensions",OWe={Extends:{$anchor:"extends",oneOf:[{type:"string"},{type:"array",items:{oneOf:[{type:"string"},{type:"array",minItems:2,additionalItems:!1,items:[{type:"string"},{enum:["all","recommended","off"],errorMessage:'allowed types are "off", "recommended" and "all"'}]}]}}]},Format:{$anchor:"format",type:"string",errorMessage:"must be a valid format"},Functions:{$anchor:"functions",type:"array",items:{type:"string"}},FunctionsDir:{$anchor:"functionsDir",type:"string"},Function:{$anchor:"function",type:"object",properties:{function:{type:"string"}},required:["function"]}},EWe={$schema:DWe,$id:kWe,$defs:OWe};var xx={},Ph={},IWe="Function.prototype.bind called on incompatible ",CWe=Object.prototype.toString,TWe=Math.max,jWe="[object Function]",t6=function(e,n){for(var i=[],a=0;a=0&&r6.call(e.callee)==="[object Function]"),i},mE,n6;function FWe(){if(n6)return mE;n6=1;var t;if(!Object.keys){var e=Object.prototype.hasOwnProperty,n=Object.prototype.toString,i=yte,a=Object.prototype.propertyIsEnumerable,o=!a.call({toString:null},"toString"),r=a.call(function(){},"prototype"),s=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],c=function(h){var d=h.constructor;return d&&d.prototype===h},l={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},u=function(){if(typeof window>"u")return!1;for(var h in window)try{if(!l["$"+h]&&e.call(window,h)&&window[h]!==null&&typeof window[h]=="object")try{c(window[h])}catch{return!0}}catch{return!0}return!1}(),f=function(h){if(typeof window>"u"||!u)return c(h);try{return c(h)}catch{return!1}};t=function(d){var m=d!==null&&typeof d=="object",g=n.call(d)==="[object Function]",b=i(d),v=m&&n.call(d)==="[object String]",P=[];if(!m&&!g&&!b)throw new TypeError("Object.keys called on a non-object");var A=r&&g;if(v&&d.length>0&&!e.call(d,0))for(var _=0;_0)for(var x=0;x"u"||!di?rr:di(Uint8Array),Hp={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?rr:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?rr:ArrayBuffer,"%ArrayIteratorPrototype%":ld&&di?di([][Symbol.iterator]()):rr,"%AsyncFromSyncIteratorPrototype%":rr,"%AsyncFunction%":$d,"%AsyncGenerator%":$d,"%AsyncGeneratorFunction%":$d,"%AsyncIteratorPrototype%":$d,"%Atomics%":typeof Atomics>"u"?rr:Atomics,"%BigInt%":typeof BigInt>"u"?rr:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?rr:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?rr:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?rr:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":ZWe,"%eval%":eval,"%EvalError%":XWe,"%Float32Array%":typeof Float32Array>"u"?rr:Float32Array,"%Float64Array%":typeof Float64Array>"u"?rr:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?rr:FinalizationRegistry,"%Function%":Pte,"%GeneratorFunction%":$d,"%Int8Array%":typeof Int8Array>"u"?rr:Int8Array,"%Int16Array%":typeof Int16Array>"u"?rr:Int16Array,"%Int32Array%":typeof Int32Array>"u"?rr:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":ld&&di?di(di([][Symbol.iterator]())):rr,"%JSON%":typeof JSON=="object"?JSON:rr,"%Map%":typeof Map>"u"?rr:Map,"%MapIteratorPrototype%":typeof Map>"u"||!ld||!di?rr:di(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?rr:Promise,"%Proxy%":typeof Proxy>"u"?rr:Proxy,"%RangeError%":eHe,"%ReferenceError%":tHe,"%Reflect%":typeof Reflect>"u"?rr:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?rr:Set,"%SetIteratorPrototype%":typeof Set>"u"||!ld||!di?rr:di(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?rr:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":ld&&di?di(""[Symbol.iterator]()):rr,"%Symbol%":ld?Symbol:rr,"%SyntaxError%":wg,"%ThrowTypeError%":nHe,"%TypedArray%":aHe,"%TypeError%":cm,"%Uint8Array%":typeof Uint8Array>"u"?rr:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?rr:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?rr:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?rr:Uint32Array,"%URIError%":rHe,"%WeakMap%":typeof WeakMap>"u"?rr:WeakMap,"%WeakRef%":typeof WeakRef>"u"?rr:WeakRef,"%WeakSet%":typeof WeakSet>"u"?rr:WeakSet};if(di)try{null.error}catch(t){var sHe=di(di(t));Hp["%Error.prototype%"]=sHe}var oHe=function t(e){var n;if(e==="%AsyncFunction%")n=gE("async function () {}");else if(e==="%GeneratorFunction%")n=gE("function* () {}");else if(e==="%AsyncGeneratorFunction%")n=gE("async function* () {}");else if(e==="%AsyncGenerator%"){var i=t("%AsyncGeneratorFunction%");i&&(n=i.prototype)}else if(e==="%AsyncIteratorPrototype%"){var a=t("%AsyncGenerator%");a&&di&&(n=di(a.prototype))}return Hp[e]=n,n},o6={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Nb=Dx,_S=Bf,lHe=Nb.call(Function.call,Array.prototype.concat),cHe=Nb.call(Function.apply,Array.prototype.splice),l6=Nb.call(Function.call,String.prototype.replace),xS=Nb.call(Function.call,String.prototype.slice),uHe=Nb.call(Function.call,RegExp.prototype.exec),fHe=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,pHe=/\\(\\)?/g,hHe=function(e){var n=xS(e,0,1),i=xS(e,-1);if(n==="%"&&i!=="%")throw new wg("invalid intrinsic syntax, expected closing `%`");if(i==="%"&&n!=="%")throw new wg("invalid intrinsic syntax, expected opening `%`");var a=[];return l6(e,fHe,function(o,r,s,c){a[a.length]=s?l6(c,pHe,"$1"):r||o}),a},dHe=function(e,n){var i=e,a;if(_S(o6,i)&&(a=o6[i],i="%"+a[0]+"%"),_S(Hp,i)){var o=Hp[i];if(o===$d&&(o=oHe(i)),typeof o>"u"&&!n)throw new cm("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:a,name:i,value:o}}throw new wg("intrinsic "+e+" does not exist!")},ui=function(e,n){if(typeof e!="string"||e.length===0)throw new cm("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof n!="boolean")throw new cm('"allowMissing" argument must be a boolean');if(uHe(/^%?[^%]*%?$/,e)===null)throw new wg("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var i=hHe(e),a=i.length>0?i[0]:"",o=dHe("%"+a+"%",n),r=o.name,s=o.value,c=!1,l=o.alias;l&&(a=l[0],cHe(i,lHe([0,1],l)));for(var u=1,f=!0;u=i.length){var g=Wp(s,h);f=!!g,f&&"get"in g&&!("originalValue"in g.get)?s=g.get:s=s[h]}else f=_S(s,h),s=s[h];f&&!c&&(Hp[r]=s)}}return s},mHe=ui,W$=mHe("%Object.defineProperty%",!0)||!1;if(W$)try{W$({},"a",{value:1})}catch{W$=!1}var Ox=W$,yHe=ui,H$=yHe("%Object.getOwnPropertyDescriptor%",!0);if(H$)try{H$([],"length")}catch{H$=null}var Ex=H$,c6=Ox,gHe=Mh,cd=Bt,u6=Ex,Ix=function(e,n,i){if(!e||typeof e!="object"&&typeof e!="function")throw new cd("`obj` must be an object or a function`");if(typeof n!="string"&&typeof n!="symbol")throw new cd("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new cd("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new cd("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new cd("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new cd("`loose`, if provided, must be a boolean");var a=arguments.length>3?arguments[3]:null,o=arguments.length>4?arguments[4]:null,r=arguments.length>5?arguments[5]:null,s=arguments.length>6?arguments[6]:!1,c=!!u6&&u6(e,n);if(c6)c6(e,n,{configurable:r===null&&c?c.configurable:!r,enumerable:a===null&&c?c.enumerable:!a,value:i,writable:o===null&&c?c.writable:!o});else if(s||!a&&!o&&!r)e[n]=i;else throw new gHe("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},oT=Ox,bte=function(){return!!oT};bte.hasArrayLengthDefineBug=function(){if(!oT)return null;try{return oT([],"length",{value:1}).length!==1}catch{return!0}};var Lb=bte,vHe=UWe,PHe=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",bHe=Object.prototype.toString,wHe=Array.prototype.concat,f6=Ix,$He=function(t){return typeof t=="function"&&bHe.call(t)==="[object Function]"},wte=Lb(),AHe=function(t,e,n,i){if(e in t){if(i===!0){if(t[e]===n)return}else if(!$He(i)||!i())return}wte?f6(t,e,n,!0):f6(t,e,n)},$te=function(t,e){var n=arguments.length>2?arguments[2]:{},i=vHe(e);PHe&&(i=wHe.call(i,Object.getOwnPropertySymbols(e)));for(var a=0;a2&&!!arguments[2];return(!i||DHe)&&(xHe?p6(e,"name",n,!0,!0):p6(e,"name",n)),e},Rh=function(e){return typeof e=="string"||typeof e=="symbol"},EHe=Bt,sv=Bf,IHe={__proto__:null,"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0},bu=function(e){if(!e||typeof e!="object")return!1;for(var n in e)if(sv(e,n)&&!IHe[n])return!1;var i=sv(e,"[[Value]]")||sv(e,"[[Writable]]"),a=sv(e,"[[Get]]")||sv(e,"[[Set]]");if(i&&a)throw new EHe("Property Descriptors may not be both accessor and data descriptors");return!0},CHe=Bt,h6=Bf,THe=bu,lN=function(e){if(typeof e>"u")return!1;if(!THe(e))throw new CHe("Assertion failed: `Desc` must be a Property Descriptor");return!(!h6(e,"[[Get]]")&&!h6(e,"[[Set]]"))},PE,d6;function jHe(){return d6||(d6=1,PE=function(e){return e===null||typeof e!="function"&&typeof e!="object"}),PE}var Ate=ui,MHe=Ate("%Object.preventExtensions%",!0),RHe=Ate("%Object.isExtensible%",!0),m6=jHe(),NHe=MHe?function(e){return!m6(e)&&RHe(e)}:function(e){return!m6(e)},Ste=function(e){if(e===null)return"Null";if(typeof e>"u")return"Undefined";if(typeof e=="function"||typeof e=="object")return"Object";if(typeof e=="number")return"Number";if(typeof e=="boolean")return"Boolean";if(typeof e=="string")return"String"},LHe=Ste,Xa=function(e){return typeof e=="symbol"?"Symbol":typeof e=="bigint"?"BigInt":LHe(e)},_te=function(e){return!!e},bE,y6;function FHe(){if(y6)return bE;y6=1;var t=Function.prototype.toString,e=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,n,i;if(typeof e=="function"&&typeof Object.defineProperty=="function")try{n=Object.defineProperty({},"length",{get:function(){throw i}}),i={},e(function(){throw 42},null,n)}catch(P){P!==i&&(e=null)}else e=null;var a=/^\s*class\b/,o=function(A){try{var _=t.call(A);return a.test(_)}catch{return!1}},r=function(A){try{return o(A)?!1:(t.call(A),!0)}catch{return!1}},s=Object.prototype.toString,c="[object Object]",l="[object Function]",u="[object GeneratorFunction]",f="[object HTMLAllCollection]",h="[object HTML document.all class]",d="[object HTMLCollection]",m=typeof Symbol=="function"&&!!Symbol.toStringTag,g=!(0 in[,]),b=function(){return!1};if(typeof document=="object"){var v=document.all;s.call(v)===s.call(document.all)&&(b=function(A){if((g||!A)&&(typeof A>"u"||typeof A=="object"))try{var _=s.call(A);return(_===f||_===h||_===d||_===c)&&A("")==null}catch{}return!1})}return bE=e?function(A){if(b(A))return!0;if(!A||typeof A!="function"&&typeof A!="object")return!1;try{e(A,null,n)}catch(_){if(_!==i)return!1}return!o(A)&&r(A)}:function(A){if(b(A))return!0;if(!A||typeof A!="function"&&typeof A!="object")return!1;if(m)return r(A);if(o(A))return!1;var _=s.call(A);return _!==l&&_!==u&&!/^\[object HTML/.test(_)?!1:r(A)},bE}var wE,g6;function cN(){return g6||(g6=1,wE=FHe()),wE}var bl=Bf,Zw=Bt,qHe=Xa,$E=_te,v6=cN(),zHe=function(e){if(qHe(e)!=="Object")throw new Zw("ToPropertyDescriptor requires an object");var n={};if(bl(e,"enumerable")&&(n["[[Enumerable]]"]=$E(e.enumerable)),bl(e,"configurable")&&(n["[[Configurable]]"]=$E(e.configurable)),bl(e,"value")&&(n["[[Value]]"]=e.value),bl(e,"writable")&&(n["[[Writable]]"]=$E(e.writable)),bl(e,"get")){var i=e.get;if(typeof i<"u"&&!v6(i))throw new Zw("getter must be a function");n["[[Get]]"]=i}if(bl(e,"set")){var a=e.set;if(typeof a<"u"&&!v6(a))throw new Zw("setter must be a function");n["[[Set]]"]=a}if((bl(n,"[[Get]]")||bl(n,"[[Set]]"))&&(bl(n,"[[Value]]")||bl(n,"[[Writable]]")))throw new Zw("Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");return n},Tx=Number.isNaN||function(e){return e!==e},P6=Tx,xte=function(e,n){return e===n?e===0?1/e===1/n:!0:P6(e)&&P6(n)},Dte={exports:{}},UHe=ui,b6=Ix,BHe=Lb(),w6=Ex,$6=Bt,VHe=UHe("%Math.floor%"),WHe=function(e,n){if(typeof e!="function")throw new $6("`fn` is not a function");if(typeof n!="number"||n<0||n>4294967295||VHe(n)!==n)throw new $6("`length` must be a positive 32-bit integer");var i=arguments.length>2&&!!arguments[2],a=!0,o=!0;if("length"in e&&w6){var r=w6(e,"length");r&&!r.configurable&&(a=!1),r&&!r.writable&&(o=!1)}return(a||o||!i)&&(BHe?b6(e,"length",n,!0,!0):b6(e,"length",n)),e};(function(t){var e=Dx,n=ui,i=WHe,a=Bt,o=n("%Function.prototype.apply%"),r=n("%Function.prototype.call%"),s=n("%Reflect.apply%",!0)||e.call(r,o),c=Ox,l=n("%Math.max%");t.exports=function(h){if(typeof h!="function")throw new a("a function is required");var d=s(e,r,arguments);return i(d,1+l(0,h.length-(arguments.length-1)),!0)};var u=function(){return s(e,o,arguments)};c?c(t.exports,"apply",{value:u}):t.exports.apply=u})(Dte);var kte=Dte.exports,Ote=ui,Ete=kte,HHe=Ete(Ote("String.prototype.indexOf")),Vf=function(e,n){var i=Ote(e,!!n);return typeof i=="function"&&HHe(e,".prototype.")>-1?Ete(i):i},AE,A6;function Ite(){if(A6)return AE;A6=1;var t=ui,e=t("%Array%"),n=!e.isArray&&Vf("Object.prototype.toString");return AE=e.isArray||function(a){return n(a)==="[object Array]"},AE}var GHe=Lb,S6=Ox,Cte=GHe.hasArrayLengthDefineBug(),KHe=Cte&&Ite(),YHe=Vf,JHe=YHe("Object.prototype.propertyIsEnumerable"),Tte=function(e,n,i,a,o,r){if(!S6){if(!e(r)||!r["[[Configurable]]"]||!r["[[Writable]]"]||o in a&&JHe(a,o)!==!!r["[[Enumerable]]"])return!1;var s=r["[[Value]]"];return a[o]=s,n(a[o],s)}return Cte&&o==="length"&&"[[Value]]"in r&&KHe(a)&&a.length!==r["[[Value]]"]?(a.length=r["[[Value]]"],a.length===r["[[Value]]"]):(S6(a,o,i(r)),!0)},QHe=bu,ZHe=function(e,n){return QHe(n)&&typeof n=="object"&&"[[Enumerable]]"in n&&"[[Configurable]]"in n&&(e.IsAccessorDescriptor(n)||e.IsDataDescriptor(n))},jte=function(e){if(typeof e>"u")return e;var n={};return"[[Value]]"in e&&(n.value=e["[[Value]]"]),"[[Writable]]"in e&&(n.writable=!!e["[[Writable]]"]),"[[Get]]"in e&&(n.get=e["[[Get]]"]),"[[Set]]"in e&&(n.set=e["[[Set]]"]),"[[Enumerable]]"in e&&(n.enumerable=!!e["[[Enumerable]]"]),"[[Configurable]]"in e&&(n.configurable=!!e["[[Configurable]]"]),n},XHe=Bt,e7e=bu,t7e=jte,r7e=function(e){if(typeof e<"u"&&!e7e(e))throw new XHe("Assertion failed: `Desc` must be a Property Descriptor");return t7e(e)},n7e=Bt,_6=Bf,i7e=bu,Mte=function(e){if(typeof e>"u")return!1;if(!i7e(e))throw new n7e("Assertion failed: `Desc` must be a Property Descriptor");return!(!_6(e,"[[Value]]")&&!_6(e,"[[Writable]]"))},a7e=Bt,s7e=lN,o7e=Mte,l7e=bu,c7e=function(e){if(typeof e>"u")return!1;if(!l7e(e))throw new a7e("Assertion failed: `Desc` must be a Property Descriptor");return!s7e(e)&&!o7e(e)},ud=Bt,ov=Tte,u7e=ZHe,x6=bu,lv=r7e,op=lN,Uu=Mte,f7e=c7e,p7e=Rh,wl=xte,h7e=Xa,d7e=function(e,n,i,a,o){var r=h7e(e);if(r!=="Undefined"&&r!=="Object")throw new ud("Assertion failed: O must be undefined or an Object");if(!p7e(n))throw new ud("Assertion failed: P must be a Property Key");if(typeof i!="boolean")throw new ud("Assertion failed: extensible must be a Boolean");if(!x6(a))throw new ud("Assertion failed: Desc must be a Property Descriptor");if(typeof o<"u"&&!x6(o))throw new ud("Assertion failed: current must be a Property Descriptor, or undefined");if(typeof o>"u")return i?r==="Undefined"?!0:op(a)?ov(Uu,wl,lv,e,n,a):ov(Uu,wl,lv,e,n,{"[[Configurable]]":!!a["[[Configurable]]"],"[[Enumerable]]":!!a["[[Enumerable]]"],"[[Value]]":a["[[Value]]"],"[[Writable]]":!!a["[[Writable]]"]}):!1;if(!u7e({IsAccessorDescriptor:op,IsDataDescriptor:Uu},o))throw new ud("`current`, when present, must be a fully populated and valid Property Descriptor");if(!o["[[Configurable]]"]){if("[[Configurable]]"in a&&a["[[Configurable]]"]||"[[Enumerable]]"in a&&!wl(a["[[Enumerable]]"],o["[[Enumerable]]"])||!f7e(a)&&!wl(op(a),op(o)))return!1;if(op(o)){if("[[Get]]"in a&&!wl(a["[[Get]]"],o["[[Get]]"])||"[[Set]]"in a&&!wl(a["[[Set]]"],o["[[Set]]"]))return!1}else if(!o["[[Writable]]"]&&("[[Writable]]"in a&&a["[[Writable]]"]||"[[Value]]"in a&&!wl(a["[[Value]]"],o["[[Value]]"])))return!1}if(r!=="Undefined"){var s,c;return Uu(o)&&op(a)?(s=("[[Configurable]]"in a?a:o)["[[Configurable]]"],c=("[[Enumerable]]"in a?a:o)["[[Enumerable]]"],ov(Uu,wl,lv,e,n,{"[[Configurable]]":!!s,"[[Enumerable]]":!!c,"[[Get]]":("[[Get]]"in a?a:o)["[[Get]]"],"[[Set]]":("[[Set]]"in a?a:o)["[[Set]]"]})):op(o)&&Uu(a)?(s=("[[Configurable]]"in a?a:o)["[[Configurable]]"],c=("[[Enumerable]]"in a?a:o)["[[Enumerable]]"],ov(Uu,wl,lv,e,n,{"[[Configurable]]":!!s,"[[Enumerable]]":!!c,"[[Value]]":("[[Value]]"in a?a:o)["[[Value]]"],"[[Writable]]":!!("[[Writable]]"in a?a:o)["[[Writable]]"]})):ov(Uu,wl,lv,e,n,a)}return!0},D6=Ex,k6=Mh,SE=Bt,m7e=bu,y7e=lN,g7e=NHe,v7e=Rh,P7e=zHe,b7e=xte,w7e=Xa,$7e=d7e,A7e=function(e,n,i){if(w7e(e)!=="Object")throw new SE("Assertion failed: O must be an Object");if(!v7e(n))throw new SE("Assertion failed: P must be a Property Key");if(!m7e(i))throw new SE("Assertion failed: Desc must be a Property Descriptor");if(!D6){if(y7e(i))throw new k6("This environment does not support accessor property descriptors.");var a=!(n in e)&&i["[[Writable]]"]&&i["[[Enumerable]]"]&&i["[[Configurable]]"]&&"[[Value]]"in i,o=n in e&&(!("[[Configurable]]"in i)||i["[[Configurable]]"])&&(!("[[Enumerable]]"in i)||i["[[Enumerable]]"])&&(!("[[Writable]]"in i)||i["[[Writable]]"])&&"[[Value]]"in i;if(a||o)return e[n]=i["[[Value]]"],b7e(e[n],i["[[Value]]"]);throw new k6("This environment does not support defining non-writable, non-enumerable, or non-configurable properties")}var r=D6(e,n),s=r&&P7e(r),c=g7e(e);return $7e(e,n,c,i,s)},O6=Bt,S7e=Rh,_7e=A7e,x7e=Xa,D7e=function(e,n,i){if(x7e(e)!=="Object")throw new O6("Assertion failed: Type(O) is not Object");if(!S7e(n))throw new O6("Assertion failed: IsPropertyKey(P) is not true");var a={"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Value]]":i,"[[Writable]]":!0};return _7e(e,n,a)},_E=Bt,k7e=D7e,O7e=Rh,E7e=Xa,I7e=function(e,n,i){if(E7e(e)!=="Object")throw new _E("Assertion failed: Type(O) is not Object");if(!O7e(n))throw new _E("Assertion failed: IsPropertyKey(P) is not true");var a=k7e(e,n,i);if(!a)throw new _E("unable to create data property")},C7e=Bt,T7e=bu,j7e=jte,M7e=function(e){if(typeof e<"u"&&!T7e(e))throw new C7e("Assertion failed: `Desc` must be a Property Descriptor");return j7e(e)},R7e=Bt,E6=Bf,N7e=bu,L7e=function(e){if(typeof e>"u")return!1;if(!N7e(e))throw new R7e("Assertion failed: `Desc` must be a Property Descriptor");return!(!E6(e,"[[Value]]")&&!E6(e,"[[Writable]]"))},F7e=function(e){return typeof e=="string"||typeof e=="symbol"},I6=Tx,q7e=function(e,n){return e===n?e===0?1/e===1/n:!0:I6(e)&&I6(n)},z7e=Ste,U7e=function(e){return typeof e=="symbol"?"Symbol":typeof e=="bigint"?"BigInt":z7e(e)},C6=Bt,B7e=Tte,V7e=M7e,W7e=L7e,H7e=F7e,G7e=q7e,K7e=U7e,Y7e=function(e,n,i){if(K7e(e)!=="Object")throw new C6("Assertion failed: Type(O) is not Object");if(!H7e(n))throw new C6("Assertion failed: IsPropertyKey(P) is not true");var a={"[[Configurable]]":!0,"[[Enumerable]]":!1,"[[Value]]":i,"[[Writable]]":!0};return B7e(W7e,G7e,V7e,e,n,a)},xE,T6;function Fb(){if(T6)return xE;T6=1;var t=typeof Map=="function"&&Map.prototype,e=Object.getOwnPropertyDescriptor&&t?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,n=t&&e&&typeof e.get=="function"?e.get:null,i=t&&Map.prototype.forEach,a=typeof Set=="function"&&Set.prototype,o=Object.getOwnPropertyDescriptor&&a?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,r=a&&o&&typeof o.get=="function"?o.get:null,s=a&&Set.prototype.forEach,c=typeof WeakMap=="function"&&WeakMap.prototype,l=c?WeakMap.prototype.has:null,u=typeof WeakSet=="function"&&WeakSet.prototype,f=u?WeakSet.prototype.has:null,h=typeof WeakRef=="function"&&WeakRef.prototype,d=h?WeakRef.prototype.deref:null,m=Boolean.prototype.valueOf,g=Object.prototype.toString,b=Function.prototype.toString,v=String.prototype.match,P=String.prototype.slice,A=String.prototype.replace,_=String.prototype.toUpperCase,x=String.prototype.toLowerCase,N=RegExp.prototype.test,j=Array.prototype.concat,I=Array.prototype.join,E=Array.prototype.slice,L=Math.floor,q=typeof BigInt=="function"?BigInt.prototype.valueOf:null,F=Object.getOwnPropertySymbols,S=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,D=typeof Symbol=="function"&&typeof Symbol.iterator=="object",M=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===D||!0)?Symbol.toStringTag:null,C=Object.prototype.propertyIsEnumerable,H=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(G){return G.__proto__}:null);function X(G,k){if(G===1/0||G===-1/0||G!==G||G&&G>-1e3&&G<1e3||N.call(/e/,k))return k;var ee=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof G=="number"){var te=G<0?-L(-G):L(G);if(te!==G){var ce=String(te),oe=P.call(k,ce.length+1);return A.call(ce,ee,"$&_")+"."+A.call(A.call(oe,/([0-9]{3})/g,"$&_"),/_$/,"")}}return A.call(k,ee,"$&_")}var ie=xb,U=ie.custom,R=Ee(U)?U:null;xE=function G(k,ee,te,ce){var oe=ee||{};if(Ae(oe,"quoteStyle")&&oe.quoteStyle!=="single"&&oe.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Ae(oe,"maxStringLength")&&(typeof oe.maxStringLength=="number"?oe.maxStringLength<0&&oe.maxStringLength!==1/0:oe.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var Pe=Ae(oe,"customInspect")?oe.customInspect:!0;if(typeof Pe!="boolean"&&Pe!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Ae(oe,"indent")&&oe.indent!==null&&oe.indent!==" "&&!(parseInt(oe.indent,10)===oe.indent&&oe.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Ae(oe,"numericSeparator")&&typeof oe.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var De=oe.numericSeparator;if(typeof k>"u")return"undefined";if(k===null)return"null";if(typeof k=="boolean")return k?"true":"false";if(typeof k=="string")return an(k,oe);if(typeof k=="number"){if(k===0)return 1/0/k>0?"0":"-0";var be=String(k);return De?X(k,be):be}if(typeof k=="bigint"){var Fe=String(k)+"n";return De?X(k,Fe):Fe}var Ye=typeof oe.depth>"u"?5:oe.depth;if(typeof te>"u"&&(te=0),te>=Ye&&Ye>0&&typeof k=="object")return T(k)?"[Array]":"[Object]";var mt=Z(oe,te);if(typeof ce>"u")ce=[];else if(Ne(ce,k)>=0)return"[Circular]";function ut(Qe,Le,ht){if(Le&&(ce=E.call(ce),ce.push(Le)),ht){var ft={depth:oe.depth};return Ae(oe,"quoteStyle")&&(ft.quoteStyle=oe.quoteStyle),G(Qe,ft,te+1,ce)}return G(Qe,oe,te+1,ce)}if(typeof k=="function"&&!le(k)){var Jt=gt(k),un=de(k,ut);return"[Function"+(Jt?": "+Jt:" (anonymous)")+"]"+(un.length>0?" { "+I.call(un,", ")+" }":"")}if(Ee(k)){var wi=D?A.call(String(k),/^(Symbol\(.*\))_[^)]*$/,"$1"):S.call(k);return typeof k=="object"&&!D?er(wi):wi}if(qr(k)){for(var Os="<"+x.call(String(k.nodeName)),re=k.attributes||[],Ct=0;Ct",Os}if(T(k)){if(k.length===0)return"[]";var es=de(k,ut);return mt&&!K(es)?"["+fe(es,mt)+"]":"[ "+I.call(es,", ")+" ]"}if(ve(k)){var Wn=de(k,ut);return!("cause"in Error.prototype)&&"cause"in k&&!C.call(k,"cause")?"{ ["+String(k)+"] "+I.call(j.call("[cause]: "+ut(k.cause),Wn),", ")+" }":Wn.length===0?"["+String(k)+"]":"{ ["+String(k)+"] "+I.call(Wn,", ")+" }"}if(typeof k=="object"&&Pe){if(R&&typeof k[R]=="function"&&ie)return ie(k,{depth:Ye-te});if(Pe!=="symbol"&&typeof k.inspect=="function")return k.inspect()}if(Ce(k)){var ul=[];return i&&i.call(k,function(Qe,Le){ul.push(ut(Le,k,!0)+" => "+ut(Qe,k))}),w("Map",n.call(k),ul,mt)}if(ct(k)){var se=[];return s&&s.call(k,function(Qe){se.push(ut(Qe,k))}),w("Set",r.call(k),se,mt)}if($t(k))return J("WeakMap");if(nn(k))return J("WeakSet");if(xe(k))return J("WeakRef");if(_e(k))return er(ut(Number(k)));if(Ge(k))return er(ut(q.call(k)));if(he(k))return er(m.call(k));if(ae(k))return er(ut(String(k)));if(typeof window<"u"&&k===window)return"{ [object Window] }";if(typeof globalThis<"u"&&k===globalThis||typeof Cr<"u"&&k===Cr)return"{ [object globalThis] }";if(!W(k)&&!le(k)){var ge=de(k,ut),ke=H?H(k)===Object.prototype:k instanceof Object||k.constructor===Object,Te=k instanceof Object?"":"null prototype",Ze=!ke&&M&&Object(k)===k&&M in k?P.call(at(k),8,-1):Te?"Object":"",vt=ke||typeof k.constructor!="function"?"":k.constructor.name?k.constructor.name+" ":"",xt=vt+(Ze||Te?"["+I.call(j.call([],Ze||[],Te||[]),": ")+"] ":"");return ge.length===0?xt+"{}":mt?xt+"{"+fe(ge,mt)+"}":xt+"{ "+I.call(ge,", ")+" }"}return String(k)};function z(G,k,ee){var te=(ee.quoteStyle||k)==="double"?'"':"'";return te+G+te}function V(G){return A.call(String(G),/"/g,""")}function T(G){return at(G)==="[object Array]"&&(!M||!(typeof G=="object"&&M in G))}function W(G){return at(G)==="[object Date]"&&(!M||!(typeof G=="object"&&M in G))}function le(G){return at(G)==="[object RegExp]"&&(!M||!(typeof G=="object"&&M in G))}function ve(G){return at(G)==="[object Error]"&&(!M||!(typeof G=="object"&&M in G))}function ae(G){return at(G)==="[object String]"&&(!M||!(typeof G=="object"&&M in G))}function _e(G){return at(G)==="[object Number]"&&(!M||!(typeof G=="object"&&M in G))}function he(G){return at(G)==="[object Boolean]"&&(!M||!(typeof G=="object"&&M in G))}function Ee(G){if(D)return G&&typeof G=="object"&&G instanceof Symbol;if(typeof G=="symbol")return!0;if(!G||typeof G!="object"||!S)return!1;try{return S.call(G),!0}catch{}return!1}function Ge(G){if(!G||typeof G!="object"||!q)return!1;try{return q.call(G),!0}catch{}return!1}var Me=Object.prototype.hasOwnProperty||function(G){return G in this};function Ae(G,k){return Me.call(G,k)}function at(G){return g.call(G)}function gt(G){if(G.name)return G.name;var k=v.call(b.call(G),/^function\s*([\w$]+)/);return k?k[1]:null}function Ne(G,k){if(G.indexOf)return G.indexOf(k);for(var ee=0,te=G.length;eek.maxStringLength){var ee=G.length-k.maxStringLength,te="... "+ee+" more character"+(ee>1?"s":"");return an(P.call(G,0,k.maxStringLength),k)+te}var ce=A.call(A.call(G,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Xt);return z(ce,"single",k)}function Xt(G){var k=G.charCodeAt(0),ee={8:"b",9:"t",10:"n",12:"f",13:"r"}[k];return ee?"\\"+ee:"\\x"+(k<16?"0":"")+_.call(k.toString(16))}function er(G){return"Object("+G+")"}function J(G){return G+" { ? }"}function w(G,k,ee,te){var ce=te?fe(ee,te):I.call(ee,", ");return G+" ("+k+") {"+ce+"}"}function K(G){for(var k=0;k=0)return!1;return!0}function Z(G,k){var ee;if(G.indent===" ")ee=" ";else if(typeof G.indent=="number"&&G.indent>0)ee=I.call(Array(G.indent+1)," ");else return null;return{base:ee,prev:I.call(Array(k+1),ee)}}function fe(G,k){if(G.length===0)return"";var ee=` -`+k.prev+k.base;return ee+I.call(G,","+ee)+` -`+k.prev}function de(G,k){var ee=T(G),te=[];if(ee){te.length=G.length;for(var ce=0;ce=55296&&e<=56319}),DE}var kE,M6;function Nte(){return M6||(M6=1,kE=function(e){return typeof e=="number"&&e>=56320&&e<=57343}),kE}var OE,R6;function J7e(){if(R6)return OE;R6=1;var t=ui,e=Bt,n=t("%String.fromCharCode%"),i=Rte(),a=Nte();return OE=function(r,s){if(!i(r)||!a(s))throw new e("Assertion failed: `lead` must be a leading surrogate char code, and `trail` must be a trailing surrogate char code");return n(r)+n(s)},OE}var EE,N6;function Q7e(){if(N6)return EE;N6=1;var t=Bt,e=Vf,n=Rte(),i=Nte(),a=J7e(),o=e("String.prototype.charAt"),r=e("String.prototype.charCodeAt");return EE=function(c,l){if(typeof c!="string")throw new t("Assertion failed: `string` must be a String");var u=c.length;if(l<0||l>=u)throw new t("Assertion failed: `position` must be >= 0, and < the length of `string`");var f=r(c,l),h=o(c,l),d=n(f),m=i(f);if(!d&&!m)return{"[[CodePoint]]":h,"[[CodeUnitCount]]":1,"[[IsUnpairedSurrogate]]":!1};if(m||l+1===u)return{"[[CodePoint]]":h,"[[CodeUnitCount]]":1,"[[IsUnpairedSurrogate]]":!0};var g=r(c,l+1);return i(g)?{"[[CodePoint]]":a(f,g),"[[CodeUnitCount]]":2,"[[IsUnpairedSurrogate]]":!1}:{"[[CodePoint]]":h,"[[CodeUnitCount]]":1,"[[IsUnpairedSurrogate]]":!0}},EE}var IE,L6;function Z7e(){if(L6)return IE;L6=1;var t=Tx;return IE=function(e){return(typeof e=="number"||typeof e=="bigint")&&!t(e)&&e!==1/0&&e!==-1/0},IE}var CE,F6;function X7e(){if(F6)return CE;F6=1;var t=ui,e=t("%Math.abs%"),n=t("%Math.floor%"),i=Tx,a=Z7e();return CE=function(r){if(typeof r!="number"||i(r)||!a(r))return!1;var s=e(r);return n(s)===s},CE}var TE,q6;function eGe(){return q6||(q6=1,TE=Number.MAX_SAFE_INTEGER||9007199254740991),TE}var jE,z6;function tGe(){if(z6)return jE;z6=1;var t=Q7e(),e=X7e(),n=eGe(),i=Bt;return jE=function(o,r,s){if(typeof o!="string")throw new i("Assertion failed: `S` must be a String");if(!e(r)||r<0||r>n)throw new i("Assertion failed: `length` must be an integer >= 0 and <= 2**53");if(typeof s!="boolean")throw new i("Assertion failed: `unicode` must be a Boolean");if(!s)return r+1;var c=o.length;if(r+1>=c)return r+1;var l=t(o,r);return r+l["[[CodeUnitCount]]"]},jE}var ME,U6;function Lte(){if(U6)return ME;U6=1;var t=Bt;return ME=function(n,i){if(typeof i!="boolean")throw new t("Assertion failed: Type(done) is not Boolean");return{value:n,done:i}},ME}var RE,B6;function jx(){if(B6)return RE;B6=1;var t=Bt,e=Fb(),n=Rh,i=Xa;return RE=function(o,r){if(i(o)!=="Object")throw new t("Assertion failed: Type(O) is not Object");if(!n(r))throw new t("Assertion failed: IsPropertyKey(P) is not true, got "+e(r));return o[r]},RE}var NE,V6;function Fte(){if(V6)return NE;V6=1;var t=Bt,e=jx(),n=_te,i=Xa;return NE=function(o){if(i(o)!=="Object")throw new t("Assertion failed: Type(iterResult) is not Object");return n(e(o,"done"))},NE}var LE,W6;function qte(){if(W6)return LE;W6=1;var t=Bt,e=jx(),n=Xa;return LE=function(a){if(n(a)!=="Object")throw new t("Assertion failed: Type(iterResult) is not Object");return e(a,"value")},LE}var FE,H6;function rGe(){if(H6)return FE;H6=1;var t=ui,e=kte,n=Mh,i=t("%Promise.resolve%",!0),a=i&&e(i);return FE=function(r,s){if(!a)throw new n("This environment does not support Promises.");return a(r,s)},FE}var qE,G6;function nGe(){if(G6)return qE;G6=1;var t=ui,e=Mh,n=Bt,i=t("%Promise%",!0),a=Vf,o=Lte(),r=Fte(),s=qte(),c=rGe(),l=Xa,u=a("Promise.prototype.then",!0);return qE=function(h){if(l(h)!=="Object")throw new n("Assertion failed: Type(O) is not Object");if(arguments.length>1)throw new e("although AsyncFromSyncIteratorContinuation should take a second argument, it is not used in this implementation");if(!i)throw new e("This environment does not support Promises.");return new i(function(d){var m=r(h),g=s(h),b=c(i,g),v=function(P){return o(P,m)};d(u(b,v))})},qE}var zE,K6;function uN(){return K6||(K6=1,zE=Ite()),zE}var UE,Y6;function fN(){if(Y6)return UE;Y6=1;var t=ui,e=Vf,n=Bt,i=uN(),a=t("%Reflect.apply%",!0)||e("Function.prototype.apply");return UE=function(r,s){var c=arguments.length>2?arguments[2]:[];if(!i(c))throw new n("Assertion failed: optional `argumentsList`, if provided, must be a List");return a(r,s,c)},UE}var BE,J6;function iGe(){if(J6)return BE;J6=1;var t=Bt,e=Fb(),n=Rh;return BE=function(a,o){if(!n(o))throw new t("Assertion failed: IsPropertyKey(P) is not true, got "+e(o));return a[o]},BE}var VE,Q6;function zte(){if(Q6)return VE;Q6=1;var t=Bt,e=iGe(),n=cN(),i=Rh,a=Fb();return VE=function(r,s){if(!i(s))throw new t("Assertion failed: IsPropertyKey(P) is not true");var c=e(r,s);if(c!=null){if(!n(c))throw new t(a(s)+" is not a function: "+a(c));return c}},VE}var WE,Z6;function Mx(){if(Z6)return WE;Z6=1;var t=Bf;return WE=function(n){return!!n&&typeof n=="object"&&t(n,"[[Iterator]]")&&t(n,"[[NextMethod]]")&&typeof n["[[NextMethod]]"]=="function"&&t(n,"[[Done]]")&&typeof n["[[Done]]"]=="boolean"},WE}var HE,X6;function Ute(){if(X6)return HE;X6=1;var t=Bt,e=fN(),n=Xa,i=Mx();return HE=function(o){if(!i(o))throw new t("Assertion failed: `iteratorRecord` must be an Iterator Record");var r;if(arguments.length<2?r=e(o["[[NextMethod]]"],o["[[Iterator]]"]):r=e(o["[[NextMethod]]"],o["[[Iterator]]"],[arguments[1]]),n(r)!=="Object")throw new t("iterator next must return an object");return r},HE}var GE,eV;function aGe(){return eV||(eV=1,GE=function(e,n){for(var i=0;i0&&r(f,function(m){s.set(h,m,void 0)}),h},JE}var QE,iV;function lGe(){if(iV)return QE;iV=1;var t=ui,e=Mh,n=Bt,i=t("%Promise%",!0),a=nGe(),o=fN(),r=Lte(),s=jx(),c=zte(),l=Ute(),u=oGe(),f=Xa,h=Bte(),d=Mx(),m=t("%AsyncFromSyncIteratorPrototype%",!0)||{next:function(b){if(!i)throw new e("This environment does not support Promises.");var v=this;h.assert(v,"[[SyncIteratorRecord]]");var P=arguments.length;return new i(function(A){var _=h.get(v,"[[SyncIteratorRecord]]"),x;P>0?x=l(_,b):x=l(_),A(a(x))})},return:function(){if(!i)throw new e("This environment does not support Promises.");var g=this;h.assert(g,"[[SyncIteratorRecord]]");var b=arguments.length>0,v=b?arguments[0]:void 0;return new i(function(P,A){var _=h.get(g,"[[SyncIteratorRecord]]")["[[Iterator]]"],x=c(_,"return");if(typeof x>"u"){var N=r(v,!0);o(P,void 0,[N]);return}var j;if(b?j=o(x,_,[v]):j=o(x,_),f(j)!=="Object"){o(A,void 0,[new n("Iterator `return` method returned a non-object value.")]);return}P(a(j))})},throw:function(){if(!i)throw new e("This environment does not support Promises.");var g=this;h.assert(g,"[[SyncIteratorRecord]]");var b=arguments.length>0,v=b?arguments[0]:void 0;return new i(function(P,A){var _=h.get(g,"[[SyncIteratorRecord]]")["[[Iterator]]"],x=c(_,"throw");if(typeof x>"u"){o(A,void 0,[v]);return}var N;if(b?N=o(x,_,[v]):N=o(x,_),f(N)!=="Object"){o(A,void 0,[new n("Iterator `throw` method returned a non-object value.")]);return}P(a(N))})}};return QE=function(b){if(!d(b))throw new n("Assertion failed: `syncIteratorRecord` must be an Iterator Record");var v=u(m);h.set(v,"[[SyncIteratorRecord]]",b);var P=s(v,"next");return{"[[Iterator]]":v,"[[NextMethod]]":P,"[[Done]]":!1}},QE}var ZE,aV;function cGe(){if(aV)return ZE;aV=1;var t=Bt,e=fN(),n=jx(),i=cN(),a=Xa;return ZE=function(r,s){if(!i(s))throw new t("method must be a function");var c=e(s,r);if(a(c)!=="Object")throw new t("iterator must return an object");var l=n(c,"next");return{"[[Iterator]]":c,"[[NextMethod]]":l,"[[Done]]":!1}},ZE}var XE,sV;function uGe(){if(sV)return XE;sV=1;var t=vte;return XE=function(){return t()&&!!Symbol.toStringTag},XE}var eI,oV;function fGe(){if(oV)return eI;oV=1;var t=String.prototype.valueOf,e=function(r){try{return t.call(r),!0}catch{return!1}},n=Object.prototype.toString,i="[object String]",a=uGe()();return eI=function(r){return typeof r=="string"?!0:typeof r!="object"?!1:a?e(r):n.call(r)===i},eI}var tI,lV;function pGe(){if(lV)return tI;lV=1;var t=oN(),e=ui,n=Vf,i=fGe(),a=e("%Symbol.iterator%",!0),o=n("String.prototype.slice"),r=e("%String%");return tI=function(c,l){var u;return t?u=c.GetMethod(l,a):c.IsArray(l)?u=function(){var f=-1,h=this;return{next:function(){return f+=1,{done:f>=h.length,value:h[f]}}}}:i(l)&&(u=function(){var f=0;return{next:function(){var h=c.AdvanceStringIndex(r(l),f,!0),d=o(l,f,h);return f=h,{done:h>l.length,value:d}}}}),u},tI}var hGe=ui,rI=Bt,cV=hGe("%Symbol.asyncIterator%",!0),dGe=Fb(),mGe=oN(),yGe=tGe(),gGe=lGe(),uV=cGe(),fV=zte(),vGe=uN(),PGe=pGe(),bGe=function(e,n){if(n!=="SYNC"&&n!=="ASYNC")throw new rI("Assertion failed: `kind` must be one of 'sync' or 'async', got "+dGe(n));var i;if(n==="ASYNC"&&mGe&&cV&&(i=fV(e,cV)),typeof i>"u"){var a=PGe({AdvanceStringIndex:yGe,GetMethod:fV,IsArray:vGe},e);if(n==="ASYNC"){if(typeof a>"u")throw new rI("iterator method is `undefined`");var o=uV(e,a);return gGe(o)}i=a}if(typeof i>"u")throw new rI("iterator method is `undefined`");return uV(e,i)},nI,pV;function wGe(){if(pV)return nI;pV=1;var t=Bt,e=Fte(),n=Ute(),i=Mx();return nI=function(o){if(!i(o))throw new t("Assertion failed: `iteratorRecord` must be an Iterator Record");var r=n(o),s=e(r);return s===!0?!1:r},nI}var $Ge=Bt,AGe=Vf,SGe=AGe("Array.prototype.push"),_Ge=wGe(),xGe=qte(),DGe=Mx(),kGe=function(e){if(!DGe(e))throw new $Ge("Assertion failed: `iteratorRecord` must be an Iterator Record");for(var n=[],i=!0;i;)if(i=_Ge(e),i){var a=xGe(i);SGe(n,a)}return n},OGe=ui,EGe=OGe("%Object.setPrototypeOf%",!0),IGe=kx(),CGe=EGe||(IGe?function(t,e){return t.__proto__=e,t}:null),TGe=ui,jGe=TGe("%Object.getPrototypeOf%",!0),MGe=kx(),RGe=jGe||(MGe?function(t){return t.__proto__}:null),hV=Bt,dV=RGe,NGe=Xa,LGe=function(e){if(NGe(e)!=="Object")throw new hV("Assertion failed: O must be an Object");if(!dV)throw new hV("This environment does not support fetching prototypes.");return dV(e)},FGe=Bt,qGe=CGe,zGe=LGe,UGe=function(e,n){if(typeof n!="object")throw new FGe("Assertion failed: V must be Object or Null");try{qGe(e,n)}catch{return!1}return zGe(e)===n},BGe=I7e,iI=Y7e,VGe=bGe,WGe=Lb(),HGe=kGe,Vte=UGe,Wte=gte;function qb(t,e){var n=new Wte(e);Vte(n,G$),delete n.constructor;var i=HGe(VGe(t,"SYNC"));return BGe(n,"errors",i),n}WGe&&Object.defineProperty(qb,"prototype",{writable:!1});var G$=qb.prototype;if(!iI(G$,"constructor",qb)||!iI(G$,"message","")||!iI(G$,"name","AggregateError"))throw new Wte("unable to install AggregateError.prototype properties; please report this!");Vte(qb.prototype,Error.prototype);var Hte=qb,GGe=Hte,Gte=function(){return typeof AggregateError=="function"?AggregateError:GGe},K$={exports:{}};typeof self<"u"?K$.exports=self:typeof window<"u"?K$.exports=window:K$.exports=Function("return this")();var Kte=K$.exports,KGe=Kte,Yte=function(){return typeof Cr!="object"||!Cr||Cr.Math!==Math||Cr.Array!==Array?KGe:Cr},YGe=Cx,JGe=Ex,QGe=Yte,ZGe=function(){var e=QGe();if(YGe.supportsDescriptors){var n=JGe(e,"globalThis");(!n||n.configurable&&(n.enumerable||!n.writable||globalThis!==e))&&Object.defineProperty(e,"globalThis",{configurable:!0,enumerable:!1,value:e,writable:!0})}else(typeof globalThis!="object"||globalThis!==e)&&(e.globalThis=e);return e},XGe=Cx,eKe=Kte,Jte=Yte,tKe=ZGe,rKe=Jte(),Qte=function(){return rKe};XGe(Qte,{getPolyfill:Jte,implementation:eKe,shim:tKe});var nKe=Qte,iKe=Cx,mV=nKe(),aKe=Gte,sKe=function(){var e=aKe();return iKe(mV,{AggregateError:e},{AggregateError:function(){return mV.AggregateError!==e}}),e},oKe=Dx,lKe=Cx,cKe=OHe,uKe=Ix,fKe=Hte,Zte=Gte,pKe=sKe,lT=Zte(),pN=cKe(oKe.call(lT),lT.name,!0);uKe(pN,"prototype",lT.prototype,!0,!0,!0,!0);lKe(pN,{getPolyfill:Zte,implementation:fKe,shim:pKe});var hN=pN;Object.defineProperty(Ph,"__esModule",{value:!0});Ph.toParsedPath=Ph.wrapError=void 0;const hKe=vr,dKe=sr,mKe=(0,hKe.__importDefault)(hN),yV=Gl,yKe=jb;function gV(t){return t instanceof yV.RulesetValidationError?(t.path.unshift(...this),t):new yV.RulesetValidationError("generic-validation-error",(0,dKe.isError)(t)?t.message:String(t),[...this])}function gKe(t,e){const n=Xte(e);return(0,yKe.isAggregateError)(t)?new mKe.default(t.errors.map(gV,n)):gV.call(n,t)}Ph.wrapError=gKe;function Xte(t){return t.slice(1).split("/")}Ph.toParsedPath=Xte;Object.defineProperty(xx,"__esModule",{value:!0});xx.validateAlias=void 0;const vV=Hr,vKe=sr,PKe=mh,bKe=Th,PV=Ph,wKe=Gl;function $Ke(t,e){if(!Array.isArray(t))return null;const n=Number(e);if(Number.isNaN(n)||n<0&&n>=t.length)return null;const i=t[n];return(0,vV.isPlainObject)(i)&&(0,vV.isPlainObject)(i.aliases)?i.aliases:null}function AKe(t,e,n){const i=(0,PV.toParsedPath)(n);try{const a=(0,vKe.get)(t,[...i.slice(0,i.indexOf("rules")+2),"formats"]),o=i[0]==="overrides"?{...t.aliases,...$Ke(t.overrides,i[1])}:t.aliases;(0,PKe.resolveAlias)(o??null,e,Array.isArray(a)?new bKe.Formats(a):null)}catch(a){return a instanceof ReferenceError?new wKe.RulesetValidationError("undefined-alias",a.message,i):(0,PV.wrapError)(a,n)}}xx.validateAlias=AKe;var Rx={};Object.defineProperty(Rx,"__esModule",{value:!0});Rx.validateFunction=void 0;const bV=Ph,SKe=Gl;function _Ke(t){if(typeof t!="function")throw ReferenceError("Function is not defined")}function xKe(t,e,n){try{if(_Ke(t),!("validator"in t))return;t.validator.bind(t)(e)}catch(i){return i instanceof ReferenceError?new SKe.RulesetValidationError("undefined-function",i.message,[...(0,bV.toParsedPath)(n),"function"]):(0,bV.wrapError)(i,n)}}Rx.validateFunction=xKe;Object.defineProperty(sx,"__esModule",{value:!0});sx.createValidator=void 0;const wu=vr,Bu=(0,wu.__importStar)(l0),aI=(0,wu.__importDefault)(Ia),DKe=(0,wu.__importDefault)(mte),kKe=(0,wu.__importDefault)(sN),OKe=(0,wu.__importStar)(uWe),EKe=(0,wu.__importStar)(dWe),IKe=(0,wu.__importStar)($We),CKe=(0,wu.__importStar)(xWe),TKe=(0,wu.__importStar)(EWe),jKe=xx,MKe=Rx,wV={js:null,json:null};function RKe(t){const e=wV[t];if(e!==null)return e;const n=new Bu.default({allErrors:!0,strict:!0,strictRequired:!1,keywords:["$anchor"],schemas:[OKe,EKe],passContext:!0});(0,DKe.default)(n),(0,kKe.default)(n),n.addKeyword({keyword:"x-spectral-runtime",schemaType:"string",error:{message(a){var o;return(0,Bu._)`${((o=a.params)===null||o===void 0?void 0:o.message)!==void 0?a.params.message:""}`},params(a){var o;return(0,Bu._)`{ errors: ${((o=a.params)===null||o===void 0?void 0:o.errors)!==void 0&&a.params.errors} || [] }`}},code(a){const{data:o}=a;switch(a.schema){case"format":a.fail((0,Bu._)`typeof ${o} !== "function"`);break;case"ruleset-function":{const r=a.gen.const("spectralFunction",(0,Bu._)`this.validateFunction(${o}.function, ${o}.functionOptions === void 0 ? null : ${o}.functionOptions, ${aI.default.instancePath})`);a.gen.if((0,Bu._)`${r} !== void 0`),a.error(!1,{errors:r}),a.gen.endIf();break}case"alias":{const r=a.gen.const("spectralAlias",(0,Bu._)`this.validateAlias(${aI.default.rootData}, ${o}, ${aI.default.instancePath})`);a.gen.if((0,Bu._)`${r} !== void 0`),a.error(!1,{errors:r}),a.gen.endIf();break}}}}),t==="js"?n.addSchema(CKe):n.addSchema(TKe);const i=new Proxy(n.compile(IKe),{apply(a,o,r){return Reflect.apply(a,{validateAlias:jKe.validateAlias,validateFunction:MKe.validateFunction},r)}});return wV[t]=i,i}sx.createValidator=RKe;Object.defineProperty(yh,"__esModule",{value:!0});yh.assertValidRule=yh.assertValidRuleset=void 0;const NKe=vr,LKe=Hr,FKe=sx,Y$=Gl,qKe=(0,NKe.__importDefault)(hN);function zKe(t,e="js"){var n;if(!(0,LKe.isPlainObject)(t))throw new Y$.RulesetValidationError("invalid-ruleset-definition","Provided ruleset is not an object",[]);if(!("rules"in t)&&!("extends"in t)&&!("overrides"in t))throw new Y$.RulesetValidationError("invalid-ruleset-definition","Ruleset must have rules or extends or overrides defined",[]);const i=(0,FKe.createValidator)(e);if(!i(t))throw new qKe.default((0,Y$.convertAjvErrors)((n=i.errors)!==null&&n!==void 0?n:[]))}yh.assertValidRuleset=zKe;function UKe(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)&&("given"in t||"then"in t)}function BKe(t,e){if(!UKe(t))throw new Y$.RulesetValidationError("invalid-rule-definition","Rule definition expected",["rules",e])}yh.assertValidRule=BKe;(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.assertValidRuleset=t.RulesetValidationError=void 0;var e=Gl;Object.defineProperty(t,"RulesetValidationError",{enumerable:!0,get:function(){return e.RulesetValidationError}});var n=yh;Object.defineProperty(t,"assertValidRuleset",{enumerable:!0,get:function(){return n.assertValidRuleset}})})(ax);var Nx={};Object.defineProperty(Nx,"__esModule",{value:!0});Nx.mergeRule=void 0;const VKe=yh,WKe=r0;function $V(t,e){if(t===void 0)throw new ReferenceError(`Cannot extend non-existing rule: "${e}"`)}function HKe(t,e,n,i){switch(typeof n){case"boolean":$V(t,e),t.enabled=n;break;case"string":case"number":$V(t,e),t.severity=n,n==="off"?t.enabled=!1:t.enabled||(t.enabled=!0);break;case"object":if(t!==void 0)Object.assign(t,n,{enabled:!0,owner:t.owner});else return(0,VKe.assertValidRule)(n,e),new WKe.Rule(e,n,i);break;default:throw new Error("Invalid value")}return t}Nx.mergeRule=HKe;var Lx={};Object.defineProperty(Lx,"__esModule",{value:!0});Lx.mergeRulesets=void 0;function ere(t){return Array.isArray(t)?t[0]:t}function GKe(t){return(Array.isArray(t)?t:[t]).map(ere)}function KKe(t,e,n){const i={...t,...e};if("extends"in i&&"extends"in i){const a=GKe(i.extends);i.extends=[...(Array.isArray(i.extends)?i.extends:[i.extends]).filter(o=>!a.includes(ere(o))),...Array.isArray(i.extends)?i.extends:[i.extends]]}if("aliases"in t&&"aliases"in e&&(i.aliases={...t.aliases,...e.aliases}),!("rules"in t)||!("rules"in e))return i;if(n)i.rules={...t.rules,...e.rules};else{const a=i;"extends"in a?Array.isArray(a.extends)?a.extends=[...a.extends,t]:a.extends=[a.extends,t]:a.extends=t}return i}Lx.mergeRulesets=KKe;var AV;function tre(){if(AV)return nv;AV=1;var t,e,n;Object.defineProperty(nv,"__esModule",{value:!0}),nv.Ruleset=void 0;const i=vr,a=Eh,o=Hr,r=Tb,s=r0,c=ax,l=Nx,u=Tr(),f=Lx,h=Th,d=Tc,m=Symbol("@stoplight/spectral/ruleset/#stack"),g=Symbol("@stoplight/spectral/ruleset/#explicit-severity"),b=/^\.?spectral\.(ya?ml|json|m?js)$/;let v=1;class P{constructor(_,x){var N;this.maybeDefinition=_,t.add(this),this.id=v++,this.formats=new h.Formats,e.set(this,void 0);let j;if((0,o.isPlainObject)(_)&&"extends"in _){const{extends:L,...q}=_;(0,c.assertValidRuleset)({extends:[],...q},"js"),j=_}else(0,c.assertValidRuleset)(_,"js"),j=_;this.definition=j,(0,i.__classPrivateFieldSet)(this,e,{severity:"recommended",...x},"f");let I=!1;this.aliases=j.aliases===void 0?null:Object.fromEntries(Object.entries(j.aliases).map(L=>{const[q,F]=L;if((0,d.isSimpleAliasDefinition)(F))return L;I=!0;const S=F.targets.map(D=>({formats:new h.Formats(D.formats),given:D.given}));return[q,{...F,targets:S}]})),this.hasComplexAliases=I;const E=(N=x==null?void 0:x[m])!==null&&N!==void 0?N:new Map;if(E.set(this.definition,this),this.extends="extends"in j?(Array.isArray(j.extends)?j.extends:[j.extends]).reduce((L,q)=>{let F,S="recommended";const D=Array.isArray(q);return D?[F,S]=q:F=q,E.get(F)!==void 0||L.push(new P(F,{severity:S,[m]:E,[g]:D})),L},[]):null,E.size===1&&j.overrides?this.overrides=j.overrides:this.overrides=null,E.delete(this.definition),Array.isArray(this.definition.formats))for(const L of this.definition.formats)this.formats.add(L);if(Array.isArray(this.extends))for(const{formats:L}of this.extends)for(const q of L)this.formats.add(q);this.rules=(0,i.__classPrivateFieldGet)(this,t,"m",n).call(this)}get source(){var _;return(_=(0,i.__classPrivateFieldGet)(this,e,"f").source)!==null&&_!==void 0?_:null}fromSource(_){if(this.overrides===null)return this;const{source:x}=this;if(_===null)throw new Error("Document must have some source assigned. If you use Spectral programmatically make sure to pass the source to Document");if(x===null)throw new Error("Ruleset must have some source assigned. If you use Spectral programmatically make sure to pass the source to Ruleset");const N=(0,a.relative)((0,a.dirname)(x),_),j={},I=this.overrides.flatMap(({files:S,...D})=>{var M,C;const H=[];for(const X of S){const ie=(M=(0,o.extractSourceFromRef)(X))!==null&&M!==void 0?M:X;if(!(0,r.minimatch)(N,ie))continue;const U=(0,o.extractPointerFromRef)(X);if(ie===X)H.push(X);else{if(!("rules"in D)||U===null)throw new Error("Unknown error. The ruleset is presumably invalid.");for(const[R,z]of Object.entries(D.rules)){if(typeof z=="object"||typeof z=="boolean")throw new Error("Unknown error. The ruleset is presumably invalid.");const{definition:V}=(C=j[R])!==null&&C!==void 0?C:j[R]={rulesetSource:x,definition:new Map},T=(0,u.getDiagnosticSeverity)(z);let W=V.get(ie);W===void 0&&(W=new Map,V.set(ie,W)),W.set(U,T)}}}return H.length===0?[]:D}),{overrides:E,...L}=this.definition;if(I.length===0&&Object.keys(j).length===0)return this;const q=I.length===0?null:I.length>1?I.slice(1).reduce((S,D)=>(0,f.mergeRulesets)(S,D,!0),I[0]):I[0],F=new P(q===null?L:(0,f.mergeRulesets)(L,q,!1),{severity:"recommended",source:x});for(const[S,D]of Object.entries(j))S in F.rules&&(F.rules[S].overrides=D);return F}get parserOptions(){return{...u.DEFAULT_PARSER_OPTIONS,...this.definition.parserOptions}}static isDefaultRulesetFile(_){return b.test(_)}toJSON(){return{id:this.id,extends:this.extends,source:this.source,aliases:this.aliases,formats:this.formats.size===0?null:this.formats,rules:this.rules,overrides:this.overrides,parserOptions:this.parserOptions}}}return nv.Ruleset=P,e=new WeakMap,t=new WeakSet,n=function(){const _={};if(this.extends!==null&&this.extends.length>0){for(const x of this.extends)if(x!==this)for(const N of Object.values(x.rules))_[N.name]=N,(0,i.__classPrivateFieldGet)(this,e,"f")[m]!==void 0&&(0,i.__classPrivateFieldGet)(this,e,"f")[g]===!0&&(N.enabled=s.Rule.isEnabled(N,(0,i.__classPrivateFieldGet)(this,e,"f").severity))}if("rules"in this.definition)for(const[x,N]of Object.entries(this.definition.rules)){const j=(0,l.mergeRule)(_[x],x,N,this);if(_[x]=j,j.owner===this&&(j.enabled=s.Rule.isEnabled(j,(0,i.__classPrivateFieldGet)(this,e,"f").severity)),j.formats!==null)for(const I of j.formats)this.formats.add(I);else j.owner!==this?j.formats=j.owner.definition.formats===void 0?null:new h.Formats(j.owner.definition.formats):this.definition.formats!==void 0&&(j.formats=new h.Formats(this.definition.formats));this.definition.documentationUrl!==void 0&&j.documentationUrl===null&&(j.documentationUrl=`${this.definition.documentationUrl}#${x}`)}return _},nv}var Fx={};Object.defineProperty(Fx,"__esModule",{value:!0});Fx.generateDocumentWideResult=void 0;const YKe=Zg(),JKe=(t,e,n,i)=>{var a;return{range:(a=t.getRangeForJsonPath([],!0))!==null&&a!==void 0?a:YKe.Document.DEFAULT_RANGE,message:e,code:i,severity:n,...t.source!==null?{source:t.source}:null,path:[]}};Fx.generateDocumentWideResult=JKe;var sI={},$g={};Object.defineProperty($g,"__esModule",{value:!0});$g.createRulesetFunction=$g.RulesetFunctionValidationError=void 0;const dN=vr,QKe=(0,dN.__importDefault)(l0),ZKe=(0,dN.__importDefault)(mte),XKe=(0,dN.__importDefault)(sN),gc=Za,cT=ax,SV=sr,eYe=hN,DS=new QKe.default({allErrors:!0,allowUnionTypes:!0,strict:!0,keywords:["x-internal"]});(0,XKe.default)(DS);(0,ZKe.default)(DS);class eb extends cT.RulesetValidationError{constructor(e,n){super("invalid-function-options",eb.printMessage(e,n),eb.getPath(n))}static getPath(e){const n=["functionOptions",...e.instancePath===""?[]:e.instancePath.slice(1).split("/")];switch(e.keyword){case"additionalProperties":{const i=e.params.additionalProperty;n.push(i);break}}return n}static printMessage(e,n){var i;switch(n.keyword){case"type":{const a=(0,gc.printPath)(n.instancePath.slice(1).split("/"),gc.PrintStyle.Dot),o=Array.isArray(n.params.type)?n.params.type.join(", "):String(n.params.type);return`"${e}" function and its "${a}" option accepts only the following types: ${o}`}case"required":{const a=n.params.missingProperty,o=n.instancePath===""?a:(0,gc.printPath)([...n.instancePath.slice(1).split("/"),a],gc.PrintStyle.Dot);return`"${e}" function is missing "${o}" option`}case"additionalProperties":{const a=n.params.additionalProperty,o=n.instancePath===""?a:(0,gc.printPath)([...n.instancePath.slice(1).split("/"),a],gc.PrintStyle.Dot);return`"${e}" function does not support "${o}" option`}case"enum":{const a=(0,gc.printPath)(n.instancePath.slice(1).split("/"),gc.PrintStyle.Dot),o=n.params.allowedValues.map(gc.printValue).join(", ");return`"${e}" function and its "${a}" option accepts only the following values: ${o}`}default:return(i=n.message)!==null&&i!==void 0?i:"unknown error"}}}$g.RulesetFunctionValidationError=eb;const tYe=t=>t===null;function rYe({input:t,errorOnInvalidInput:e=!1,options:n},i){const a=n===null?tYe:DS.compile(n),o=t!==null?DS.compile(t):t,r=function(c,l,...u){var f,h,d;return(o==null?void 0:o(c))===!1?e?[{message:(d=(h=(f=o.errors)===null||f===void 0?void 0:f.find(m=>m.keyword==="errorMessage"))===null||h===void 0?void 0:h.message)!==null&&d!==void 0?d:"invalid input"}]:void 0:(r.validator(l),i(c,l,...u))};Reflect.defineProperty(r,"name",{value:i.name});const s=new WeakSet;return r.validator=function(c){if(!((0,SV.isObject)(c)&&s.has(c))){if(a(c)){(0,SV.isObject)(c)&&s.add(c);return}throw n===null?new cT.RulesetValidationError("invalid-function-options",`"${i.name||""}" function does not accept any options`,["functionOptions"]):"errors"in a&&Array.isArray(a.errors)&&a.errors.length>0?new eYe(a.errors.map(l=>new eb(i.name||"",l))):new cT.RulesetValidationError("invalid-function-options",`"functionOptions" of "${i.name||""}" function must be valid`,["functionOptions"])}},Reflect.defineProperty(r,"schemas",{enumerable:!1,value:{input:t,options:n}}),r}$g.createRulesetFunction=rYe;var _V;function rre(){return _V||(_V=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.Rule=t.Formats=t.Ruleset=t.createRulesetFunction=t.getDiagnosticSeverity=t.RulesetValidationError=t.assertValidRuleset=void 0;var e=ax;Object.defineProperty(t,"assertValidRuleset",{enumerable:!0,get:function(){return e.assertValidRuleset}}),Object.defineProperty(t,"RulesetValidationError",{enumerable:!0,get:function(){return e.RulesetValidationError}});var n=dh;Object.defineProperty(t,"getDiagnosticSeverity",{enumerable:!0,get:function(){return n.getDiagnosticSeverity}});var i=$g;Object.defineProperty(t,"createRulesetFunction",{enumerable:!0,get:function(){return i.createRulesetFunction}});var a=tre();Object.defineProperty(t,"Ruleset",{enumerable:!0,get:function(){return a.Ruleset}});var o=Th;Object.defineProperty(t,"Formats",{enumerable:!0,get:function(){return o.Formats}});var r=r0;Object.defineProperty(t,"Rule",{enumerable:!0,get:function(){return r.Rule}})}(sI)),sI}var nre={},ire={};Object.defineProperty(ire,"__esModule",{value:!0});var are={};Object.defineProperty(are,"__esModule",{value:!0});(function(t){Object.defineProperty(t,"__esModule",{value:!0});const e=vr;(0,e.__exportStar)(ire,t),(0,e.__exportStar)(are,t)})(nre);var xV;function nYe(){return xV||(xV=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.Spectral=void 0;const e=vr,n=Hr,i=Db,a=(0,e.__importStar)(fh),o=sR,r=Zg(),s=W_,c=YZ,l=tre(),u=Fx,f=rre();(0,e.__exportStar)(nre,t);class h{constructor(m){this.opts=m,(m==null?void 0:m.resolver)!==void 0?this._resolver=m.resolver:this._resolver=(0,o.createHttpAndFileResolver)()}parseDocument(m){return m instanceof r.Document?m:(0,r.isParsedResult)(m)?new r.ParsedDocument(m):new r.Document(typeof m=="string"?m:(0,n.stringify)(m,void 0,2),a.Yaml)}async runWithResolved(m,g={}){if(this.ruleset===void 0)throw new Error("No ruleset has been defined. Have you called setRuleset()?");const b=this.parseDocument(m),v=this.ruleset.fromSource(b.source),P=new s.DocumentInventory(b,this._resolver);await P.resolve();const A=new c.Runner(P);if(A.results.push(...this._filterParserErrors(b.diagnostics,v.parserOptions)),b.formats===void 0){const x=[...v.formats].filter(N=>N(P.resolved,b.source));x.length===0&&g.ignoreUnknownFormat!==!0?(b.formats=null,v.formats.size>0&&A.addResult(this._generateUnrecognizedFormatError(b,Array.from(v.formats)))):b.formats=new Set(x)}await A.run(v);const _=A.getResults();return{resolved:P.resolved,results:_}}async run(m,g={}){return(await this.runWithResolved(m,g)).results}setRuleset(m){this.ruleset=m instanceof l.Ruleset?m:new l.Ruleset(m)}_generateUnrecognizedFormatError(m,g){return(0,u.generateDocumentWideResult)(m,`The provided document does not match any of the registered formats [${g.map(b=>{var v;return(v=b.displayName)!==null&&v!==void 0?v:b.name}).join(", ")}]`,i.DiagnosticSeverity.Warning,"unrecognized-format")}_filterParserErrors(m,g){return m.reduce((b,v)=>{if(v.code!=="parser")return b;let P;if(v.message.startsWith("Mapping key must be a string scalar rather than"))P=(0,f.getDiagnosticSeverity)(g.incompatibleValues);else if(v.message.startsWith("Duplicate key"))P=(0,f.getDiagnosticSeverity)(g.duplicateKeys);else return b.push(v),b;return P!==-1&&(b.push(v),v.severity=P),b},[])}}t.Spectral=h}(kO)),kO}var DV;function Tr(){return DV||(DV=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.ParsedDocument=t.Document=void 0;const e=vr;(0,e.__exportStar)(q_,t),(0,e.__exportStar)(nYe(),t);var n=Zg();Object.defineProperty(t,"Document",{enumerable:!0,get:function(){return n.Document}}),Object.defineProperty(t,"ParsedDocument",{enumerable:!0,get:function(){return n.ParsedDocument}}),(0,e.__exportStar)(rre(),t)}(DO)),DO}var kV=Tr();const iYe=t=>{switch(t){case Bp.Warning:return"warning";case Bp.Information:return"info";case Bp.Hint:return"hint";default:return"error"}},J$=(t,e)=>{const n=new kV.Spectral({resolver:new UM.Resolver({resolvers:{http:{resolve:pS},https:{resolve:pS}}})});return n.setRuleset(e),qj(async i=>{const a=i.state.doc,o=new kV.Document(a.toString(),fh.Json);return(await n.run(o)).map(s=>({source:t,from:a.line(s.range.start.line+1).from+s.range.start.character,to:a.line(s.range.end.line+1).from+s.range.end.character,severity:iYe(s.severity),message:`[${s.code}] ${s.message}`}))})},aYe="3.0.2",sYe={title:"A sample API conforming to the draft standard OGC API - Features - Part 1: Core",version:"1.0.0",description:`This is a sample OpenAPI definition that conforms to the conformance -classes "Core", "GeoJSON", "HTML" and "OpenAPI 3.0" of the draft -standard "OGC API - Features - Part 1: Core". - -This example is a generic OGC API Features definition that uses path -parameters to describe all feature collections and all features. -The generic OpenAPI definition does not provide any details on the -collections or the feature content. This information is only available -from accessing the feature collection resources. - -There is [another example](ogcapi-features-1-example2.yaml) -that specifies each collection explicitly.`,contact:{name:"Acme Corporation",email:"info@example.org",url:"http://example.org/"},license:{name:"CC-BY 4.0 license",url:"https://creativecommons.org/licenses/by/4.0/"}},oYe=[{url:"https://data.example.org/",description:"Production server"},{url:"https://dev.example.org/",description:"Development server"}],lYe=[{name:"Capabilities",description:"essential characteristics of this API"},{name:"Data",description:"access to data (features)"}],cYe={"/":{get:{tags:["Capabilities"],summary:"landing page",description:`The landing page provides links to the API definition, the conformance -statements and to the feature collections in this dataset.`,operationId:"getLandingPage",responses:{200:{$ref:"https://raw.githubusercontent.com/opengeospatial/ogcapi-features/master/core/openapi/ogcapi-features-1.yaml#/components/responses/LandingPage"},500:{$ref:"https://raw.githubusercontent.com/opengeospatial/ogcapi-features/master/core/openapi/ogcapi-features-1.yaml#/components/responses/ServerError"}}}},"/conformance":{get:{tags:["Capabilities"],summary:"information about specifications that this API conforms to",description:`A list of all conformance classes specified in a standard that the -server conforms to.`,operationId:"getConformanceDeclaration",responses:{200:{$ref:"https://raw.githubusercontent.com/opengeospatial/ogcapi-features/master/core/openapi/ogcapi-features-1.yaml#/components/responses/ConformanceDeclaration"},500:{$ref:"https://raw.githubusercontent.com/opengeospatial/ogcapi-features/master/core/openapi/ogcapi-features-1.yaml#/components/responses/ServerError"}}}},"/collections":{get:{tags:["Capabilities"],summary:"the feature collections in the dataset",operationId:"getCollections",responses:{200:{$ref:"https://raw.githubusercontent.com/opengeospatial/ogcapi-features/master/core/openapi/ogcapi-features-1.yaml#/components/responses/Collections"},500:{$ref:"https://raw.githubusercontent.com/opengeospatial/ogcapi-features/master/core/openapi/ogcapi-features-1.yaml#/components/responses/ServerError"}}}},"/collections/{collectionId}":{get:{tags:["Capabilities"],summary:"describe the feature collection with id `collectionId`",operationId:"describeCollection",parameters:[{$ref:"https://raw.githubusercontent.com/opengeospatial/ogcapi-features/master/core/openapi/ogcapi-features-1.yaml#/components/parameters/collectionId"}],responses:{200:{$ref:"https://raw.githubusercontent.com/opengeospatial/ogcapi-features/master/core/openapi/ogcapi-features-1.yaml#/components/responses/Collection"},404:{$ref:"https://raw.githubusercontent.com/opengeospatial/ogcapi-features/master/core/openapi/ogcapi-features-1.yaml#/components/responses/NotFound"},500:{$ref:"https://raw.githubusercontent.com/opengeospatial/ogcapi-features/master/core/openapi/ogcapi-features-1.yaml#/components/responses/ServerError"}}}},"/collections/{collectionId}/items":{get:{tags:["Data"],summary:"fetch features",description:`Fetch features of the feature collection with id \`collectionId\`. - -Every feature in a dataset belongs to a collection. A dataset may -consist of multiple feature collections. A feature collection is often a -collection of features of a similar type, based on a common schema. - -Use content negotiation to request HTML or GeoJSON.`,operationId:"getFeatures",parameters:[{$ref:"https://raw.githubusercontent.com/opengeospatial/ogcapi-features/master/core/openapi/ogcapi-features-1.yaml#/components/parameters/collectionId"},{$ref:"https://raw.githubusercontent.com/opengeospatial/ogcapi-features/master/core/openapi/ogcapi-features-1.yaml#/components/parameters/limit"},{$ref:"https://raw.githubusercontent.com/opengeospatial/ogcapi-features/master/core/openapi/ogcapi-features-1.yaml#/components/parameters/bbox"},{$ref:"https://raw.githubusercontent.com/opengeospatial/ogcapi-features/master/core/openapi/ogcapi-features-1.yaml#/components/parameters/datetime"}],responses:{200:{$ref:"https://raw.githubusercontent.com/opengeospatial/ogcapi-features/master/core/openapi/ogcapi-features-1.yaml#/components/responses/Features"},400:{$ref:"https://raw.githubusercontent.com/opengeospatial/ogcapi-features/master/core/openapi/ogcapi-features-1.yaml#/components/responses/InvalidParameter"},404:{$ref:"https://raw.githubusercontent.com/opengeospatial/ogcapi-features/master/core/openapi/ogcapi-features-1.yaml#/components/responses/NotFound"},500:{$ref:"https://raw.githubusercontent.com/opengeospatial/ogcapi-features/master/core/openapi/ogcapi-features-1.yaml#/components/responses/ServerError"}}}},"/collections/{collectionId}/items/{featureId}":{get:{tags:["Data"],summary:"fetch a single feature",description:"Fetch the feature with id `featureId` in the feature collection\nwith id `collectionId`.\n\nUse content negotiation to request HTML or GeoJSON.",operationId:"getFeature",parameters:[{$ref:"https://raw.githubusercontent.com/opengeospatial/ogcapi-features/master/core/openapi/ogcapi-features-1.yaml#/components/parameters/collectionId"},{$ref:"https://raw.githubusercontent.com/opengeospatial/ogcapi-features/master/core/openapi/ogcapi-features-1.yaml#/components/parameters/featureId"}],responses:{200:{$ref:"https://raw.githubusercontent.com/opengeospatial/ogcapi-features/master/core/openapi/ogcapi-features-1.yaml#/components/responses/Feature"},404:{$ref:"https://raw.githubusercontent.com/opengeospatial/ogcapi-features/master/core/openapi/ogcapi-features-1.yaml#/components/responses/NotFound"},500:{$ref:"https://raw.githubusercontent.com/opengeospatial/ogcapi-features/master/core/openapi/ogcapi-features-1.yaml#/components/responses/ServerError"}}}}},uYe={openapi:aYe,info:sYe,servers:oYe,tags:lYe,paths:cYe};var cl={},sre={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.oas3_1=t.oas3_0=t.oas3=t.oas2=void 0;const e=Hr,n=r=>(0,e.isPlainObject)(r)&&"swagger"in r&&parseInt(String(r.swagger))===2;t.oas2=n,t.oas2.displayName="OpenAPI 2.0 (Swagger)";const i=r=>(0,e.isPlainObject)(r)&&"openapi"in r&&Number.parseInt(String(r.openapi))===3;t.oas3=i,t.oas3.displayName="OpenAPI 3.x";const a=r=>i(r)&&/^3\.0(?:\.[0-9]*)?$/.test(String(r.openapi));t.oas3_0=a,t.oas3_0.displayName="OpenAPI 3.0.x";const o=r=>i(r)&&/^3\.1(?:\.[0-9]*)?$/.test(String(r.openapi));t.oas3_1=o,t.oas3_1.displayName="OpenAPI 3.1.x"})(sre);var ore={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.aas2_6=t.aas2_5=t.aas2_4=t.aas2_3=t.aas2_2=t.aas2_1=t.aas2_0=t.asyncapi2=t.asyncApi2=t.aas2=void 0;const e=Hr,n=/^2\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)$/,i=/^2\.0(?:\.[0-9]*)?$/,a=/^2\.1(?:\.[0-9]*)?$/,o=/^2\.2(?:\.[0-9]*)?$/,r=/^2\.3(?:\.[0-9]*)?$/,s=/^2\.4(?:\.[0-9]*)?$/,c=/^2\.5(?:\.[0-9]*)?$/,l=/^2\.6(?:\.[0-9]*)?$/,u=P=>(0,e.isPlainObject)(P)&&"asyncapi"in P&&n.test(String(P.asyncapi));t.aas2=u,t.aas2.displayName="AsyncAPI 2.x",t.asyncApi2=t.aas2,t.asyncapi2=t.aas2;const f=P=>u(P)&&i.test(String(P.asyncapi));t.aas2_0=f,t.aas2_0.displayName="AsyncAPI 2.0.x";const h=P=>u(P)&&a.test(String(P.asyncapi));t.aas2_1=h,t.aas2_1.displayName="AsyncAPI 2.1.x";const d=P=>u(P)&&o.test(String(P.asyncapi));t.aas2_2=d,t.aas2_2.displayName="AsyncAPI 2.2.x";const m=P=>u(P)&&r.test(String(P.asyncapi));t.aas2_3=m,t.aas2_3.displayName="AsyncAPI 2.3.x";const g=P=>u(P)&&s.test(String(P.asyncapi));t.aas2_4=g,t.aas2_4.displayName="AsyncAPI 2.4.x";const b=P=>u(P)&&c.test(String(P.asyncapi));t.aas2_5=b,t.aas2_5.displayName="AsyncAPI 2.5.x";const v=P=>u(P)&&l.test(String(P.asyncapi));t.aas2_6=v,t.aas2_6.displayName="AsyncAPI 2.6.x"})(ore);var lre={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.detectDialect=t.extractDraftVersion=t.jsonSchemaDraft2020_12=t.jsonSchemaDraft2019_09=t.jsonSchemaDraft7=t.jsonSchemaDraft6=t.jsonSchemaDraft4=t.jsonSchemaLoose=t.jsonSchema=void 0;const e=Hr,n=["array","boolean","integer","null","number","object","string"],i=["allOf","oneOf","anyOf","not","if"],a=/^https?:\/\/json-schema.org\/(?:draft-0([467])|draft\/(20(?:19-09|20-12)))\/(?:hyper-)?schema#?$/,o=m=>"type"in m?typeof m.type=="string"?n.includes(m.type):Array.isArray(m.type)&&m.type.every(g=>n.includes(g)):!1,r=m=>Array.isArray(m.enum),s=m=>i.some(g=>g in m&&typeof m[g]=="object"&&m[g]!==null);function c(m){return(0,e.isPlainObject)(m)&&"$schema"in m&&typeof m.$schema=="string"}const l=m=>c(m)&&m.$schema.includes("//json-schema.org/");t.jsonSchema=l,t.jsonSchema.displayName="JSON Schema";const u=m=>(0,e.isPlainObject)(m)&&(l(m)||o(m)||r(m)||s(m));t.jsonSchemaLoose=u,t.jsonSchemaLoose.displayName="JSON Schema (loose)",t.jsonSchemaDraft4=f("draft4","JSON Schema Draft 4"),t.jsonSchemaDraft6=f("draft6","JSON Schema Draft 6"),t.jsonSchemaDraft7=f("draft7","JSON Schema Draft 7"),t.jsonSchemaDraft2019_09=f("draft2019-09","JSON Schema Draft 2019-09"),t.jsonSchemaDraft2020_12=f("draft2020-12","JSON Schema Draft 2020-12");function f(m,g){const b=v=>l(v)&&h(v.$schema)===m;return b.displayName=g,b}function h(m){var g;const b=a.exec(m);return b!==null?`draft${(g=b[1])!==null&&g!==void 0?g:b[2]}`:null}t.extractDraftVersion=h;function d(m){return l(m)?h(m.$schema):null}t.detectDialect=d})(lre);var cre={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.arazzo1_0=void 0;const e=Hr,n=/^1\.0(?:\.[0-9]*)?$/,i=a=>(0,e.isPlainObject)(a)&&"arazzo"in a&&n.test(String(a.arazzo));t.arazzo1_0=i,t.arazzo1_0.displayName="Arazzo 1.0.x"})(cre);(function(t){Object.defineProperty(t,"__esModule",{value:!0});const e=vr;(0,e.__exportStar)(sre,t),(0,e.__exportStar)(ore,t),(0,e.__exportStar)(lre,t),(0,e.__exportStar)(cre,t)})(cl);var oa={},mN={},Ca={},yN={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.CasingType=void 0,function(e){e.flat="flat",e.camel="camel",e.pascal="pascal",e.kebab="kebab",e.cobol="cobol",e.snake="snake",e.macro="macro"}(t.CasingType||(t.CasingType={}))})(yN);Object.defineProperty(Ca,"__esModule",{value:!0});Ca.optionSchemas=void 0;const OV=yN;Ca.optionSchemas={alphabetical:{type:["object","null"],properties:{keyedBy:{type:"string",description:"The key to sort an object by."}},additionalProperties:!1,errorMessage:{type:'"alphabetical" function has invalid options specified. Example valid options: null (no options), { "keyedBy": "my-key" }'}},casing:{required:["type"],type:"object",properties:{type:{type:"string",enum:Object.values(OV.CasingType),errorMessage:`"casing" function and its "type" option accept the following values: ${Object.values(OV.CasingType).join(", ")}`,description:"The casing type to match against."},disallowDigits:{type:"boolean",default:!1,description:"If not true, digits are allowed."},separator:{type:"object",required:["char"],additionalProperties:!1,properties:{char:{type:"string",maxLength:1,errorMessage:'"casing" function and its "separator.char" option accepts only char, i.e. "I" or "/"',description:"The additional char to separate groups of words."},allowLeading:{type:"boolean",description:"Can the group separator char be used at the first char?"}}}},additionalProperties:!1,errorMessage:{type:'"casing" function has invalid options specified. Example valid options: { "type": "camel" }, { "type": "pascal", "disallowDigits": true }'}},defined:null,enumeration:{type:"object",additionalProperties:!1,properties:{values:{type:"array",items:{type:["string","number","null","boolean"]},errorMessage:'"enumeration" and its "values" option support only arrays of primitive values, i.e. ["Berlin", "London", "Paris"]',description:"An array of possible values."}},required:["values"],errorMessage:{type:'"enumeration" function has invalid options specified. Example valid options: { "values": ["Berlin", "London", "Paris"] }, { "values": [2, 3, 5, 8, 13, 21] }'}},falsy:null,length:{type:"object",properties:{min:{type:"number",description:"The minimum length to match."},max:{type:"number",description:"The maximum length to match."}},minProperties:1,additionalProperties:!1,errorMessage:{type:'"length" function has invalid options specified. Example valid options: { "min": 2 }, { "max": 5 }, { "min": 0, "max": 10 }'}},pattern:{type:"object",additionalProperties:!1,properties:{match:{anyOf:[{type:"string"},{type:"object",properties:{exec:{},test:{},flags:{type:"string"}},required:["test","flags"],"x-internal":!0}],errorMessage:'"pattern" function and its "match" option must be string or RegExp instance',description:"If provided, value must match this regex."},notMatch:{anyOf:[{type:"string"},{type:"object",properties:{exec:{},test:{},flags:{type:"string"}},required:["test","flags"],"x-internal":!0}],errorMessage:'"pattern" function and its "notMatch" option must be string or RegExp instance',description:"If provided, value must _not_ match this regex."}},minProperties:1,errorMessage:{type:'"pattern" function has invalid options specified. Example valid options: { "match": "^Stoplight" }, { "notMatch": "Swagger" }, { "match": "Stoplight", "notMatch": "Swagger" }',minProperties:'"pattern" function has invalid options specified. Example valid options: { "match": "^Stoplight" }, { "notMatch": "Swagger" }, { "match": "Stoplight", "notMatch": "Swagger" }'}},truthy:null,undefined:null,schema:{additionalProperties:!1,properties:{schema:{type:"object",description:"Any valid JSON Schema document."},dialect:{enum:["auto","draft4","draft6","draft7","draft2019-09","draft2020-12"],default:"auto",description:"The JSON Schema draft used by function."},allErrors:{type:"boolean",default:!1,description:"Returns all errors when true; otherwise only returns the first error."},prepareResults:{"x-internal":!0}},required:["schema"],type:"object",errorMessage:{type:'"schema" function has invalid options specified. Example valid options: { "schema": { /* any JSON Schema can be defined here */ } , { "schema": { "type": "object" }, "dialect": "auto" }'}},unreferencedReusableObject:{type:"object",properties:{reusableObjectsLocation:{type:"string",format:"json-pointer-uri-fragment",errorMessage:'"unreferencedReusableObject" and its "reusableObjectsLocation" option support only valid JSON Pointer fragments, i.e. "#", "#/foo", "#/paths/~1user"',description:"A local json pointer to the document member holding the reusable objects (eg. #/definitions for an OAS2 document, #/components/schemas for an OAS3 document)."}},additionalProperties:!1,required:["reusableObjectsLocation"],errorMessage:{type:'"unreferencedReusableObject" function has invalid options specified. Example valid options: { "reusableObjectsLocation": "#/components/schemas" }, { "reusableObjectsLocation": "#/$defs" }',required:'"unreferencedReusableObject" function is missing "reusableObjectsLocation" option. Example valid options: { "reusableObjectsLocation": "#/components/schemas" }, { "reusableObjectsLocation": "#/$defs" }'}},xor:{type:"object",properties:{properties:{type:"array",items:{type:"string"},minItems:2,errorMessage:'"xor" and its "properties" option require at least 2-item tuples, i.e. ["id", "name"]',description:"The properties to check."}},additionalProperties:!1,required:["properties"],errorMessage:{type:'"xor" function has invalid options specified. Example valid options: { "properties": ["id", "name"] }, { "properties": ["country", "street"] }'}}};Object.defineProperty(mN,"__esModule",{value:!0});const fYe=sr,pYe=Tr(),EV=Za,hYe=Ca,dYe=(t,e)=>(typeof t=="number"||Number.isNaN(Number(t)))&&(typeof e=="number"||!Number.isNaN(Number(e)))?Math.min(1,Math.max(-1,Number(t)-Number(e))):typeof t!="string"||typeof e!="string"?0:t.localeCompare(e),mYe=(t,e)=>{for(let n=0;n=1)return[n,n+1];return null};function yYe(t){return typeof t=="string"||typeof t=="number"}function gYe(t){return t.every(yYe)}mN.default=(0,pYe.createRulesetFunction)({input:{type:["object","array"]},options:hYe.optionSchemas.alphabetical},function(e,n,{path:i,documentInventory:a}){var o,r;let s;if(Array.isArray(e)?s=e:s=Object.keys((r=(o=a.findAssociatedItemForPath(i,!0))===null||o===void 0?void 0:o.document.trapAccess(e))!==null&&r!==void 0?r:e),s.length<2)return;const c=n==null?void 0:n.keyedBy;if(c!==void 0){const u=[];for(const f of s){if(!(0,fYe.isObject)(f))return[{message:'#{{print("property")}}must be an object'}];u.push(f[c])}s=u}if(!gYe(s))return[{message:'#{{print("property")}}must be one of the allowed types: number, string'}];const l=mYe(s,dYe);if(l!=null)return[{...c===void 0?{path:[...i,Array.isArray(e)?l[0]:s[l[0]]]}:null,message:c!==void 0?"properties must follow the alphabetical order":`${(0,EV.printValue)(s[l[0]])} must be placed after ${(0,EV.printValue)(s[l[1]])}`}]});var ure={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.CasingType=void 0;const e=sr,n=Tr(),i=Ca,a=yN;Object.defineProperty(t,"CasingType",{enumerable:!0,get:function(){return a.CasingType}});const o={[a.CasingType.flat]:"[a-z][a-z{__DIGITS__}]*",[a.CasingType.camel]:"[a-z][a-z{__DIGITS__}]*(?:[A-Z{__DIGITS__}](?:[a-z{__DIGITS__}]+|$))*",[a.CasingType.pascal]:"[A-Z][a-z{__DIGITS__}]*(?:[A-Z{__DIGITS__}](?:[a-z{__DIGITS__}]+|$))*",[a.CasingType.kebab]:"[a-z][a-z{__DIGITS__}]*(?:-[a-z{__DIGITS__}]+)*",[a.CasingType.cobol]:"[A-Z][A-Z{__DIGITS__}]*(?:-[A-Z{__DIGITS__}]+)*",[a.CasingType.snake]:"[a-z][a-z{__DIGITS__}]*(?:_[a-z{__DIGITS__}]+)*",[a.CasingType.macro]:"[A-Z][A-Z{__DIGITS__}]*(?:_[A-Z{__DIGITS__}]+)*"};t.default=(0,n.createRulesetFunction)({input:{type:"string",minLength:1},options:i.optionSchemas.casing},function(l,u){if(!(l.length===1&&u.separator!==void 0&&u.separator.allowLeading===!0&&l===u.separator.char||s(o[u.type],u).test(l)))return[{message:`must be ${u.type} case`}]});const r="0-9",s=(c,l)=>{const u=l.disallowDigits!==!0,f=c.replace(/\{__DIGITS__\}/g,u?r:"");if(l.separator===void 0)return new RegExp(`^${f}$`);const h=`[${(0,e.escapeRegExp)(l.separator.char)}]`,d=l.separator.allowLeading===!0?`${h}?`:"";return new RegExp(`^${d}${f}(?:${h}${f})*$`)}})(ure);var gN={};Object.defineProperty(gN,"__esModule",{value:!0});const vYe=Tr(),PYe=Ca;gN.default=(0,vYe.createRulesetFunction)({input:null,options:PYe.optionSchemas.defined},function(e){if(typeof e>"u")return[{message:'#{{print("property")}}must be defined'}]});var vN={};Object.defineProperty(vN,"__esModule",{value:!0});const bYe=Tr(),wYe=Za,$Ye=Ca;vN.default=(0,bYe.createRulesetFunction)({input:{type:["string","number","null","boolean"]},options:$Ye.optionSchemas.enumeration},function(e,{values:n}){if(!n.includes(e))return[{message:`#{{print("value")}} must be equal to one of the allowed values: ${n.map(wYe.printValue).join(", ")}`}]});var PN={};Object.defineProperty(PN,"__esModule",{value:!0});const AYe=Tr(),SYe=Ca;PN.default=(0,AYe.createRulesetFunction)({input:null,options:SYe.optionSchemas.falsy},function(e){if(e)return[{message:'#{{print("property")}}must be falsy'}]});var bN={};Object.defineProperty(bN,"__esModule",{value:!0});const _Ye=Tr(),IV=Za,xYe=Hr,DYe=Ca;bN.default=(0,_Ye.createRulesetFunction)({input:{type:["array","object","string","number"]},options:DYe.optionSchemas.length},function(e,n){let i;(0,xYe.isPlainObject)(e)?i=Object.keys(e).length:Array.isArray(e)?i=e.length:typeof e=="number"?i=e:i=e.length;let a;return"min"in n&&in.max&&(a??(a=[])).push({message:`#{{print("property")}}must be shorter than ${(0,IV.printValue)(n.max)}`}),a});var wN={};Object.defineProperty(wN,"__esModule",{value:!0});const kYe=Tr(),CV=Za,OYe=Ca,EYe=/^\/(.+)\/([a-z]*)$/,TV=new Map;function jV(t){const e=TV.get(t);if(e!==void 0)return e.lastIndex=0,e;const n=IYe(t);return TV.set(t,n),n}function IYe(t){const e=EYe.exec(t);return e!==null?new RegExp(e[1],e[2]):new RegExp(t)}wN.default=(0,kYe.createRulesetFunction)({input:{type:"string"},options:OYe.optionSchemas.pattern},function(e,n){let i;return"match"in n&&(jV(n.match).test(e)||(i=[{message:`#{{print("value")}} must match the pattern ${(0,CV.printValue)(n.match)}`}])),"notMatch"in n&&jV(n.notMatch).test(e)&&(i??(i=[])).push({message:`#{{print("value")}} must not match the pattern ${(0,CV.printValue)(n.notMatch)}`}),i});var $N={},qx={},CYe=/~/,TYe=/~[01]/g;function jYe(t){switch(t){case"~1":return"/";case"~0":return"~"}throw new Error("Invalid tilde escape: "+t)}function fre(t){return CYe.test(t)?t.replace(TYe,jYe):t}function MYe(t,e,n){for(var i,a,o=1,r=e.length;oo,typeof t[i]>"u"&&(Array.isArray(t)&&i==="-"&&(i=t.length),a&&(e[o]!==""&&e[o]<1/0||e[o]==="-"?t[i]=[]:t[i]={})),!a)break;t=t[i]}var s=t[i];return n===void 0?delete t[i]:t[i]=n,s}function AN(t){if(typeof t=="string"){if(t=t.split("/"),t[0]==="")return t;throw new Error("Invalid JSON pointer.")}else if(Array.isArray(t)){for(const e of t)if(typeof e!="string"&&typeof e!="number")throw new Error("Invalid JSON pointer. Must be of type string or number.");return t}throw new Error("Invalid JSON pointer.")}function pre(t,e){if(typeof t!="object")throw new Error("Invalid input object.");e=AN(e);var n=e.length;if(n===1)return t;for(var i=1;i{if(t===e)return 0;const n=t;t.length>e.length&&(t=e,e=n);let i=t.length,a=e.length;for(;i>0&&t.charCodeAt(~-i)===e.charCodeAt(~-a);)i--,a--;let o=0;for(;os?l>s?s+1:l:l>c?c+1:l;return s};SN.exports=dre;SN.exports.default=dre;var mre=SN.exports,NYe=qx,LYe=mre;function yre(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}var FYe=yre(NYe),qYe=yre(LYe);const zYe=t=>e=>t===e,UYe=t=>e=>!t(e),BYe=t=>Object.values(t),VYe=t=>t!==void 0,gre=t=>e=>e.keyword===t,WYe=gre("anyOf"),vre=gre("enum"),Q$=t=>t&&t.errors||[],Pre=t=>t&&BYe(t.children)||[],HYe=t=>e=>Pre(t).filter(UYe(zYe(e))),RV=t=>e=>e.reduce((n,i)=>n.concat(i),t);function GYe(t){const e=t.lastIndexOf("/");return e!==-1?t.slice(e+1):null}const KYe=/['"]/g,YYe=/NOT/g,JYe=/^[a-z]/;function bre(t){return t.replace(KYe,'"').replace(YYe,"not")}function QYe(t){return t.toUpperCase()}function ZYe(t){return t.replace(JYe,QYe)}class c0{constructor(e={isIdentifierLocation:!1},{data:n,schema:i,propPath:a}){this.options=e,this.data=n,this.schema=i,this.propPath=a}getError(){throw new Error(`Implement the 'getError' method inside ${this.constructor.name}!`)}getPrettyPropertyName(e){const n=this.getPropertyName(e);return n===null?ZYe(typeof this.getPropertyValue(e)):`"${n}" property`}getPropertyName(e){const n=GYe(e);return n!==null?n:this.propPath.length===0?null:this.propPath[this.propPath.length-1]}getPropertyValue(e){return e===""?this.data:FYe.default.get(this.data,e)}}class XYe extends c0{getError(){const{message:e,instancePath:n}=this.options;return{error:`${this.getPrettyPropertyName(n)} ${bre(e)}`,path:n}}}class eJe extends c0{constructor(...e){super(...e)}getError(){const{params:e,instancePath:n}=this.options;return{error:`Property "${e.additionalProperty}" is not expected to be here`,path:n}}}class tJe extends c0{getError(){const{message:e,instancePath:n,params:i}=this.options,a=this.findBestMatch(),o={error:`${this.getPrettyPropertyName(n)} ${e}: ${i.allowedValues.map(r=>typeof r=="string"?`"${r}"`:JSON.stringify(r)).join(", ")}`,path:n};return a!==null&&(o.suggestion=`Did you mean "${a}"?`),o}findBestMatch(){const{instancePath:e,params:{allowedValues:n}}=this.options,i=this.getPropertyValue(e);if(typeof i!="string")return null;const a=n.filter(r=>typeof r=="string").map(r=>({value:r,weight:qYe.default(r,i.toString())})).sort((r,s)=>r.weight>s.weight?1:r.weight{const{instancePath:i}=n,a=i===""?[""]:i.match(aJe);a&&a.reduce((o,r,s)=>(o.children[r]=o.children[r]||{children:{},errors:[]},s===a.length-1&&o.children[r].errors.push(n),o.children[r]),e)}),e}function wre(t,e,n){Q$(t).some(WYe)&&Object.keys(t.children).length>0&&delete t.errors,t.errors&&t.errors.length&&Q$(t).every(vre)&&HYe(e)(t).filter(VYe).some(Q$)&&delete e.children[n],Object.entries(t.children).forEach(([i,a])=>wre(a,t,i))}function $re(t,e){const n=Q$(t);if(n.length&&n.every(vre)){const a=[...new Set(RV([])(n.map(r=>r.params.allowedValues)))],o=n[0];return[new tJe({...o,params:{allowedValues:a}},e)]}else return RV(n.reduce((i,a)=>{switch(a.keyword){case"additionalProperties":return i.concat(new eJe(a,e));case"required":return i.concat(new XYe(a,e));case"type":return i.concat(new nJe(a,e));case"errorMessage":return i.concat(new iJe(a,e));default:return i.concat(new rJe(a,e))}},[]))(Pre(t).map(i=>$re(i,e)))}var oJe=(t,e)=>{const n=sJe(t||[]);return wre(n),$re(n,e)};const lJe=t=>t.getError();var cJe=(t,e,{propertyPath:n,targetValue:i})=>oJe(e,{data:i,schema:t,propPath:n}).map(lJe),uJe=cJe,zx={},uT={exports:{}},Ux={},u0={};Object.defineProperty(u0,"__esModule",{value:!0});u0.dynamicAnchor=void 0;const lI=Et,fJe=Ia,NV=ya,pJe=Kl,hJe={keyword:"$dynamicAnchor",schemaType:"string",code:t=>Are(t,t.schema)};function Are(t,e){const{gen:n,it:i}=t;i.schemaEnv.root.dynamicAnchors[e]=!0;const a=(0,lI._)`${fJe.default.dynamicAnchors}${(0,lI.getProperty)(e)}`,o=i.errSchemaPath==="#"?i.validateName:dJe(t);n.if((0,lI._)`!${a}`,()=>n.assign(a,o))}u0.dynamicAnchor=Are;function dJe(t){const{schemaEnv:e,schema:n,self:i}=t.it,{root:a,baseId:o,localRefs:r,meta:s}=e.root,{schemaId:c}=i.opts,l=new NV.SchemaEnv({schema:n,schemaId:c,root:a,baseId:o,localRefs:r,meta:s});return NV.compileSchema.call(i,l),(0,pJe.getValidate)(t,l)}u0.default=hJe;var f0={};Object.defineProperty(f0,"__esModule",{value:!0});f0.dynamicRef=void 0;const LV=Et,mJe=Ia,FV=Kl,yJe={keyword:"$dynamicRef",schemaType:"string",code:t=>Sre(t,t.schema)};function Sre(t,e){const{gen:n,keyword:i,it:a}=t;if(e[0]!=="#")throw new Error(`"${i}" only supports hash fragment reference`);const o=e.slice(1);if(a.allErrors)r();else{const c=n.let("valid",!1);r(c),t.ok(c)}function r(c){if(a.schemaEnv.root.dynamicAnchors[o]){const l=n.let("_v",(0,LV._)`${mJe.default.dynamicAnchors}${(0,LV.getProperty)(o)}`);n.if(l,s(l,c),s(a.validateName,c))}else s(a.validateName,c)()}function s(c,l){return l?()=>n.block(()=>{(0,FV.callRef)(t,c),n.let(l,!0)}):()=>(0,FV.callRef)(t,c)}}f0.dynamicRef=Sre;f0.default=yJe;var _N={};Object.defineProperty(_N,"__esModule",{value:!0});const gJe=u0,vJe=it,PJe={keyword:"$recursiveAnchor",schemaType:"boolean",code(t){t.schema?(0,gJe.dynamicAnchor)(t,""):(0,vJe.checkStrictMode)(t.it,"$recursiveAnchor: false is ignored")}};_N.default=PJe;var xN={};Object.defineProperty(xN,"__esModule",{value:!0});const bJe=f0,wJe={keyword:"$recursiveRef",schemaType:"string",code:t=>(0,bJe.dynamicRef)(t,t.schema)};xN.default=wJe;Object.defineProperty(Ux,"__esModule",{value:!0});const $Je=u0,AJe=f0,SJe=_N,_Je=xN,xJe=[$Je.default,AJe.default,SJe.default,_Je.default];Ux.default=xJe;var Bx={},DN={};Object.defineProperty(DN,"__esModule",{value:!0});const qV=Ax,DJe={keyword:"dependentRequired",type:"object",schemaType:"object",error:qV.error,code:t=>(0,qV.validatePropertyDeps)(t)};DN.default=DJe;var kN={};Object.defineProperty(kN,"__esModule",{value:!0});const kJe=Ax,OJe={keyword:"dependentSchemas",type:"object",schemaType:"object",code:t=>(0,kJe.validateSchemaDeps)(t)};kN.default=OJe;var ON={};Object.defineProperty(ON,"__esModule",{value:!0});const EJe=it,IJe={keyword:["maxContains","minContains"],type:"array",schemaType:"number",code({keyword:t,parentSchema:e,it:n}){e.contains===void 0&&(0,EJe.checkStrictMode)(n,`"${t}" without "contains" is ignored`)}};ON.default=IJe;Object.defineProperty(Bx,"__esModule",{value:!0});const CJe=DN,TJe=kN,jJe=ON,MJe=[CJe.default,TJe.default,jJe.default];Bx.default=MJe;var Vx={},EN={};Object.defineProperty(EN,"__esModule",{value:!0});const Gu=Et,zV=it,RJe=Ia,NJe={message:"must NOT have unevaluated properties",params:({params:t})=>(0,Gu._)`{unevaluatedProperty: ${t.unevaluatedProperty}}`},LJe={keyword:"unevaluatedProperties",type:"object",schemaType:["boolean","object"],trackErrors:!0,error:NJe,code(t){const{gen:e,schema:n,data:i,errsCount:a,it:o}=t;if(!a)throw new Error("ajv implementation error");const{allErrors:r,props:s}=o;s instanceof Gu.Name?e.if((0,Gu._)`${s} !== true`,()=>e.forIn("key",i,f=>e.if(l(s,f),()=>c(f)))):s!==!0&&e.forIn("key",i,f=>s===void 0?c(f):e.if(u(s,f),()=>c(f))),o.props=!0,t.ok((0,Gu._)`${a} === ${RJe.default.errors}`);function c(f){if(n===!1){t.setParams({unevaluatedProperty:f}),t.error(),r||e.break();return}if(!(0,zV.alwaysValidSchema)(o,n)){const h=e.name("valid");t.subschema({keyword:"unevaluatedProperties",dataProp:f,dataPropType:zV.Type.Str},h),r||e.if((0,Gu.not)(h),()=>e.break())}}function l(f,h){return(0,Gu._)`!${f} || !${f}[${h}]`}function u(f,h){const d=[];for(const m in f)f[m]===!0&&d.push((0,Gu._)`${h} !== ${m}`);return(0,Gu.and)(...d)}}};EN.default=LJe;var IN={};Object.defineProperty(IN,"__esModule",{value:!0});const Pp=Et,UV=it,FJe={message:({params:{len:t}})=>(0,Pp.str)`must NOT have more than ${t} items`,params:({params:{len:t}})=>(0,Pp._)`{limit: ${t}}`},qJe={keyword:"unevaluatedItems",type:"array",schemaType:["boolean","object"],error:FJe,code(t){const{gen:e,schema:n,data:i,it:a}=t,o=a.items||0;if(o===!0)return;const r=e.const("len",(0,Pp._)`${i}.length`);if(n===!1)t.setParams({len:o}),t.fail((0,Pp._)`${r} > ${o}`);else if(typeof n=="object"&&!(0,UV.alwaysValidSchema)(a,n)){const c=e.var("valid",(0,Pp._)`${r} <= ${o}`);e.if((0,Pp.not)(c),()=>s(c,o)),t.ok(c)}a.items=!0;function s(c,l){e.forRange("i",l,r,u=>{t.subschema({keyword:"unevaluatedItems",dataProp:u,dataPropType:UV.Type.Num},c),a.allErrors||e.if((0,Pp.not)(c),()=>e.break())})}}};IN.default=qJe;Object.defineProperty(Vx,"__esModule",{value:!0});const zJe=EN,UJe=IN,BJe=[zJe.default,UJe.default];Vx.default=BJe;var CN={};const VJe="https://json-schema.org/draft/2019-09/schema",WJe="https://json-schema.org/draft/2019-09/schema",HJe={"https://json-schema.org/draft/2019-09/vocab/core":!0,"https://json-schema.org/draft/2019-09/vocab/applicator":!0,"https://json-schema.org/draft/2019-09/vocab/validation":!0,"https://json-schema.org/draft/2019-09/vocab/meta-data":!0,"https://json-schema.org/draft/2019-09/vocab/format":!1,"https://json-schema.org/draft/2019-09/vocab/content":!0},GJe=!0,KJe="Core and Validation specifications meta-schema",YJe=[{$ref:"meta/core"},{$ref:"meta/applicator"},{$ref:"meta/validation"},{$ref:"meta/meta-data"},{$ref:"meta/format"},{$ref:"meta/content"}],JJe=["object","boolean"],QJe={definitions:{$comment:"While no longer an official keyword as it is replaced by $defs, this keyword is retained in the meta-schema to prevent incompatible extensions as it remains in common use.",type:"object",additionalProperties:{$recursiveRef:"#"},default:{}},dependencies:{$comment:'"dependencies" is no longer a keyword, but schema authors should avoid redefining it to facilitate a smooth transition to "dependentSchemas" and "dependentRequired"',type:"object",additionalProperties:{anyOf:[{$recursiveRef:"#"},{$ref:"meta/validation#/$defs/stringArray"}]}}},ZJe={$schema:VJe,$id:WJe,$vocabulary:HJe,$recursiveAnchor:GJe,title:KJe,allOf:YJe,type:JJe,properties:QJe},XJe="https://json-schema.org/draft/2019-09/schema",eQe="https://json-schema.org/draft/2019-09/meta/applicator",tQe={"https://json-schema.org/draft/2019-09/vocab/applicator":!0},rQe=!0,nQe="Applicator vocabulary meta-schema",iQe=["object","boolean"],aQe={additionalItems:{$recursiveRef:"#"},unevaluatedItems:{$recursiveRef:"#"},items:{anyOf:[{$recursiveRef:"#"},{$ref:"#/$defs/schemaArray"}]},contains:{$recursiveRef:"#"},additionalProperties:{$recursiveRef:"#"},unevaluatedProperties:{$recursiveRef:"#"},properties:{type:"object",additionalProperties:{$recursiveRef:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$recursiveRef:"#"},propertyNames:{format:"regex"},default:{}},dependentSchemas:{type:"object",additionalProperties:{$recursiveRef:"#"}},propertyNames:{$recursiveRef:"#"},if:{$recursiveRef:"#"},then:{$recursiveRef:"#"},else:{$recursiveRef:"#"},allOf:{$ref:"#/$defs/schemaArray"},anyOf:{$ref:"#/$defs/schemaArray"},oneOf:{$ref:"#/$defs/schemaArray"},not:{$recursiveRef:"#"}},sQe={schemaArray:{type:"array",minItems:1,items:{$recursiveRef:"#"}}},oQe={$schema:XJe,$id:eQe,$vocabulary:tQe,$recursiveAnchor:rQe,title:nQe,type:iQe,properties:aQe,$defs:sQe},lQe="https://json-schema.org/draft/2019-09/schema",cQe="https://json-schema.org/draft/2019-09/meta/content",uQe={"https://json-schema.org/draft/2019-09/vocab/content":!0},fQe=!0,pQe="Content vocabulary meta-schema",hQe=["object","boolean"],dQe={contentMediaType:{type:"string"},contentEncoding:{type:"string"},contentSchema:{$recursiveRef:"#"}},mQe={$schema:lQe,$id:cQe,$vocabulary:uQe,$recursiveAnchor:fQe,title:pQe,type:hQe,properties:dQe},yQe="https://json-schema.org/draft/2019-09/schema",gQe="https://json-schema.org/draft/2019-09/meta/core",vQe={"https://json-schema.org/draft/2019-09/vocab/core":!0},PQe=!0,bQe="Core vocabulary meta-schema",wQe=["object","boolean"],$Qe={$id:{type:"string",format:"uri-reference",$comment:"Non-empty fragments not allowed.",pattern:"^[^#]*#?$"},$schema:{type:"string",format:"uri"},$anchor:{type:"string",pattern:"^[A-Za-z][-A-Za-z0-9.:_]*$"},$ref:{type:"string",format:"uri-reference"},$recursiveRef:{type:"string",format:"uri-reference"},$recursiveAnchor:{type:"boolean",default:!1},$vocabulary:{type:"object",propertyNames:{type:"string",format:"uri"},additionalProperties:{type:"boolean"}},$comment:{type:"string"},$defs:{type:"object",additionalProperties:{$recursiveRef:"#"},default:{}}},AQe={$schema:yQe,$id:gQe,$vocabulary:vQe,$recursiveAnchor:PQe,title:bQe,type:wQe,properties:$Qe},SQe="https://json-schema.org/draft/2019-09/schema",_Qe="https://json-schema.org/draft/2019-09/meta/format",xQe={"https://json-schema.org/draft/2019-09/vocab/format":!0},DQe=!0,kQe="Format vocabulary meta-schema",OQe=["object","boolean"],EQe={format:{type:"string"}},IQe={$schema:SQe,$id:_Qe,$vocabulary:xQe,$recursiveAnchor:DQe,title:kQe,type:OQe,properties:EQe},CQe="https://json-schema.org/draft/2019-09/schema",TQe="https://json-schema.org/draft/2019-09/meta/meta-data",jQe={"https://json-schema.org/draft/2019-09/vocab/meta-data":!0},MQe=!0,RQe="Meta-data vocabulary meta-schema",NQe=["object","boolean"],LQe={title:{type:"string"},description:{type:"string"},default:!0,deprecated:{type:"boolean",default:!1},readOnly:{type:"boolean",default:!1},writeOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0}},FQe={$schema:CQe,$id:TQe,$vocabulary:jQe,$recursiveAnchor:MQe,title:RQe,type:NQe,properties:LQe},qQe="https://json-schema.org/draft/2019-09/schema",zQe="https://json-schema.org/draft/2019-09/meta/validation",UQe={"https://json-schema.org/draft/2019-09/vocab/validation":!0},BQe=!0,VQe="Validation vocabulary meta-schema",WQe=["object","boolean"],HQe={multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/$defs/nonNegativeInteger"},minLength:{$ref:"#/$defs/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},maxItems:{$ref:"#/$defs/nonNegativeInteger"},minItems:{$ref:"#/$defs/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},maxContains:{$ref:"#/$defs/nonNegativeInteger"},minContains:{$ref:"#/$defs/nonNegativeInteger",default:1},maxProperties:{$ref:"#/$defs/nonNegativeInteger"},minProperties:{$ref:"#/$defs/nonNegativeIntegerDefault0"},required:{$ref:"#/$defs/stringArray"},dependentRequired:{type:"object",additionalProperties:{$ref:"#/$defs/stringArray"}},const:!0,enum:{type:"array",items:!0},type:{anyOf:[{$ref:"#/$defs/simpleTypes"},{type:"array",items:{$ref:"#/$defs/simpleTypes"},minItems:1,uniqueItems:!0}]}},GQe={nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{$ref:"#/$defs/nonNegativeInteger",default:0},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},KQe={$schema:qQe,$id:zQe,$vocabulary:UQe,$recursiveAnchor:BQe,title:VQe,type:WQe,properties:HQe,$defs:GQe};Object.defineProperty(CN,"__esModule",{value:!0});const YQe=ZJe,JQe=oQe,QQe=mQe,ZQe=AQe,XQe=IQe,eZe=FQe,tZe=KQe,rZe=["/properties"];function nZe(t){return[YQe,JQe,QQe,ZQe,e(this,XQe),eZe,e(this,tZe)].forEach(n=>this.addMetaSchema(n,void 0,!1)),this;function e(n,i){return t?n.$dataMetaSchema(i,rZe):i}}CN.default=nZe;(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.MissingRefError=e.ValidationError=e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=e.Ajv2019=void 0;const n=xf,i=fx,a=Ux,o=Bx,r=Vx,s=o0,c=CN,l="https://json-schema.org/draft/2019-09/schema";class u extends n.default{constructor(b={}){super({...b,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),this.addVocabulary(a.default),i.default.forEach(b=>this.addVocabulary(b)),this.addVocabulary(o.default),this.addVocabulary(r.default),this.opts.discriminator&&this.addKeyword(s.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();const{$data:b,meta:v}=this.opts;v&&(c.default.call(this,b),this.refs["http://json-schema.org/schema"]=l)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(l)?l:void 0)}}e.Ajv2019=u,t.exports=e=u,t.exports.Ajv2019=u,Object.defineProperty(e,"__esModule",{value:!0}),e.default=u;var f=Qa;Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return f.KeywordCxt}});var h=Et;Object.defineProperty(e,"_",{enumerable:!0,get:function(){return h._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return h.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return h.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return h.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return h.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return h.CodeGen}});var d=jh;Object.defineProperty(e,"ValidationError",{enumerable:!0,get:function(){return d.default}});var m=Pu;Object.defineProperty(e,"MissingRefError",{enumerable:!0,get:function(){return m.default}})})(uT,uT.exports);var iZe=uT.exports,fT={exports:{}},TN={};Object.defineProperty(TN,"__esModule",{value:!0});const aZe=px,sZe=hx,oZe=Mb,lZe=Ux,cZe=Bx,uZe=Vx,fZe=Rb,BV=vh,pZe=[lZe.default,aZe.default,sZe.default,(0,oZe.default)(!0),fZe.default,BV.metadataVocabulary,BV.contentVocabulary,cZe.default,uZe.default];TN.default=pZe;var jN={};const hZe="https://json-schema.org/draft/2020-12/schema",dZe="https://json-schema.org/draft/2020-12/schema",mZe={"https://json-schema.org/draft/2020-12/vocab/core":!0,"https://json-schema.org/draft/2020-12/vocab/applicator":!0,"https://json-schema.org/draft/2020-12/vocab/unevaluated":!0,"https://json-schema.org/draft/2020-12/vocab/validation":!0,"https://json-schema.org/draft/2020-12/vocab/meta-data":!0,"https://json-schema.org/draft/2020-12/vocab/format-annotation":!0,"https://json-schema.org/draft/2020-12/vocab/content":!0},yZe="meta",gZe="Core and Validation specifications meta-schema",vZe=[{$ref:"meta/core"},{$ref:"meta/applicator"},{$ref:"meta/unevaluated"},{$ref:"meta/validation"},{$ref:"meta/meta-data"},{$ref:"meta/format-annotation"},{$ref:"meta/content"}],PZe=["object","boolean"],bZe="This meta-schema also defines keywords that have appeared in previous drafts in order to prevent incompatible extensions as they remain in common use.",wZe={definitions:{$comment:'"definitions" has been replaced by "$defs".',type:"object",additionalProperties:{$dynamicRef:"#meta"},deprecated:!0,default:{}},dependencies:{$comment:'"dependencies" has been split and replaced by "dependentSchemas" and "dependentRequired" in order to serve their differing semantics.',type:"object",additionalProperties:{anyOf:[{$dynamicRef:"#meta"},{$ref:"meta/validation#/$defs/stringArray"}]},deprecated:!0,default:{}},$recursiveAnchor:{$comment:'"$recursiveAnchor" has been replaced by "$dynamicAnchor".',$ref:"meta/core#/$defs/anchorString",deprecated:!0},$recursiveRef:{$comment:'"$recursiveRef" has been replaced by "$dynamicRef".',$ref:"meta/core#/$defs/uriReferenceString",deprecated:!0}},$Ze={$schema:hZe,$id:dZe,$vocabulary:mZe,$dynamicAnchor:yZe,title:gZe,allOf:vZe,type:PZe,$comment:bZe,properties:wZe},AZe="https://json-schema.org/draft/2020-12/schema",SZe="https://json-schema.org/draft/2020-12/meta/applicator",_Ze={"https://json-schema.org/draft/2020-12/vocab/applicator":!0},xZe="meta",DZe="Applicator vocabulary meta-schema",kZe=["object","boolean"],OZe={prefixItems:{$ref:"#/$defs/schemaArray"},items:{$dynamicRef:"#meta"},contains:{$dynamicRef:"#meta"},additionalProperties:{$dynamicRef:"#meta"},properties:{type:"object",additionalProperties:{$dynamicRef:"#meta"},default:{}},patternProperties:{type:"object",additionalProperties:{$dynamicRef:"#meta"},propertyNames:{format:"regex"},default:{}},dependentSchemas:{type:"object",additionalProperties:{$dynamicRef:"#meta"},default:{}},propertyNames:{$dynamicRef:"#meta"},if:{$dynamicRef:"#meta"},then:{$dynamicRef:"#meta"},else:{$dynamicRef:"#meta"},allOf:{$ref:"#/$defs/schemaArray"},anyOf:{$ref:"#/$defs/schemaArray"},oneOf:{$ref:"#/$defs/schemaArray"},not:{$dynamicRef:"#meta"}},EZe={schemaArray:{type:"array",minItems:1,items:{$dynamicRef:"#meta"}}},IZe={$schema:AZe,$id:SZe,$vocabulary:_Ze,$dynamicAnchor:xZe,title:DZe,type:kZe,properties:OZe,$defs:EZe},CZe="https://json-schema.org/draft/2020-12/schema",TZe="https://json-schema.org/draft/2020-12/meta/unevaluated",jZe={"https://json-schema.org/draft/2020-12/vocab/unevaluated":!0},MZe="meta",RZe="Unevaluated applicator vocabulary meta-schema",NZe=["object","boolean"],LZe={unevaluatedItems:{$dynamicRef:"#meta"},unevaluatedProperties:{$dynamicRef:"#meta"}},FZe={$schema:CZe,$id:TZe,$vocabulary:jZe,$dynamicAnchor:MZe,title:RZe,type:NZe,properties:LZe},qZe="https://json-schema.org/draft/2020-12/schema",zZe="https://json-schema.org/draft/2020-12/meta/content",UZe={"https://json-schema.org/draft/2020-12/vocab/content":!0},BZe="meta",VZe="Content vocabulary meta-schema",WZe=["object","boolean"],HZe={contentEncoding:{type:"string"},contentMediaType:{type:"string"},contentSchema:{$dynamicRef:"#meta"}},GZe={$schema:qZe,$id:zZe,$vocabulary:UZe,$dynamicAnchor:BZe,title:VZe,type:WZe,properties:HZe},KZe="https://json-schema.org/draft/2020-12/schema",YZe="https://json-schema.org/draft/2020-12/meta/core",JZe={"https://json-schema.org/draft/2020-12/vocab/core":!0},QZe="meta",ZZe="Core vocabulary meta-schema",XZe=["object","boolean"],eXe={$id:{$ref:"#/$defs/uriReferenceString",$comment:"Non-empty fragments not allowed.",pattern:"^[^#]*#?$"},$schema:{$ref:"#/$defs/uriString"},$ref:{$ref:"#/$defs/uriReferenceString"},$anchor:{$ref:"#/$defs/anchorString"},$dynamicRef:{$ref:"#/$defs/uriReferenceString"},$dynamicAnchor:{$ref:"#/$defs/anchorString"},$vocabulary:{type:"object",propertyNames:{$ref:"#/$defs/uriString"},additionalProperties:{type:"boolean"}},$comment:{type:"string"},$defs:{type:"object",additionalProperties:{$dynamicRef:"#meta"}}},tXe={anchorString:{type:"string",pattern:"^[A-Za-z_][-A-Za-z0-9._]*$"},uriString:{type:"string",format:"uri"},uriReferenceString:{type:"string",format:"uri-reference"}},rXe={$schema:KZe,$id:YZe,$vocabulary:JZe,$dynamicAnchor:QZe,title:ZZe,type:XZe,properties:eXe,$defs:tXe},nXe="https://json-schema.org/draft/2020-12/schema",iXe="https://json-schema.org/draft/2020-12/meta/format-annotation",aXe={"https://json-schema.org/draft/2020-12/vocab/format-annotation":!0},sXe="meta",oXe="Format vocabulary meta-schema for annotation results",lXe=["object","boolean"],cXe={format:{type:"string"}},uXe={$schema:nXe,$id:iXe,$vocabulary:aXe,$dynamicAnchor:sXe,title:oXe,type:lXe,properties:cXe},fXe="https://json-schema.org/draft/2020-12/schema",pXe="https://json-schema.org/draft/2020-12/meta/meta-data",hXe={"https://json-schema.org/draft/2020-12/vocab/meta-data":!0},dXe="meta",mXe="Meta-data vocabulary meta-schema",yXe=["object","boolean"],gXe={title:{type:"string"},description:{type:"string"},default:!0,deprecated:{type:"boolean",default:!1},readOnly:{type:"boolean",default:!1},writeOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0}},vXe={$schema:fXe,$id:pXe,$vocabulary:hXe,$dynamicAnchor:dXe,title:mXe,type:yXe,properties:gXe},PXe="https://json-schema.org/draft/2020-12/schema",bXe="https://json-schema.org/draft/2020-12/meta/validation",wXe={"https://json-schema.org/draft/2020-12/vocab/validation":!0},$Xe="meta",AXe="Validation vocabulary meta-schema",SXe=["object","boolean"],_Xe={type:{anyOf:[{$ref:"#/$defs/simpleTypes"},{type:"array",items:{$ref:"#/$defs/simpleTypes"},minItems:1,uniqueItems:!0}]},const:!0,enum:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/$defs/nonNegativeInteger"},minLength:{$ref:"#/$defs/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},maxItems:{$ref:"#/$defs/nonNegativeInteger"},minItems:{$ref:"#/$defs/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},maxContains:{$ref:"#/$defs/nonNegativeInteger"},minContains:{$ref:"#/$defs/nonNegativeInteger",default:1},maxProperties:{$ref:"#/$defs/nonNegativeInteger"},minProperties:{$ref:"#/$defs/nonNegativeIntegerDefault0"},required:{$ref:"#/$defs/stringArray"},dependentRequired:{type:"object",additionalProperties:{$ref:"#/$defs/stringArray"}}},xXe={nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{$ref:"#/$defs/nonNegativeInteger",default:0},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},DXe={$schema:PXe,$id:bXe,$vocabulary:wXe,$dynamicAnchor:$Xe,title:AXe,type:SXe,properties:_Xe,$defs:xXe};Object.defineProperty(jN,"__esModule",{value:!0});const kXe=$Ze,OXe=IZe,EXe=FZe,IXe=GZe,CXe=rXe,TXe=uXe,jXe=vXe,MXe=DXe,RXe=["/properties"];function NXe(t){return[kXe,OXe,EXe,IXe,CXe,e(this,TXe),jXe,e(this,MXe)].forEach(n=>this.addMetaSchema(n,void 0,!1)),this;function e(n,i){return t?n.$dataMetaSchema(i,RXe):i}}jN.default=NXe;(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.MissingRefError=e.ValidationError=e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=e.Ajv2020=void 0;const n=xf,i=TN,a=o0,o=jN,r="https://json-schema.org/draft/2020-12/schema";class s extends n.default{constructor(d={}){super({...d,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),i.default.forEach(d=>this.addVocabulary(d)),this.opts.discriminator&&this.addKeyword(a.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();const{$data:d,meta:m}=this.opts;m&&(o.default.call(this,d),this.refs["http://json-schema.org/schema"]=r)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(r)?r:void 0)}}e.Ajv2020=s,t.exports=e=s,t.exports.Ajv2020=s,Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;var c=Qa;Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return c.KeywordCxt}});var l=Et;Object.defineProperty(e,"_",{enumerable:!0,get:function(){return l._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return l.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return l.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return l.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return l.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return l.CodeGen}});var u=jh;Object.defineProperty(e,"ValidationError",{enumerable:!0,get:function(){return u.default}});var f=Pu;Object.defineProperty(e,"MissingRefError",{enumerable:!0,get:function(){return f.default}})})(fT,fT.exports);var LXe=fT.exports,pT={exports:{}},MN={},RN={};Object.defineProperty(RN,"__esModule",{value:!0});const FXe=Kl,qXe=["$schema","id","$defs",{keyword:"$comment"},"definitions",FXe.default];RN.default=qXe;var NN={},LN={};Object.defineProperty(LN,"__esModule",{value:!0});const hT=xf,zXe=Et,Vu=zXe.operators,dT={maximum:{exclusive:"exclusiveMaximum",ops:[{okStr:"<=",ok:Vu.LTE,fail:Vu.GT},{okStr:"<",ok:Vu.LT,fail:Vu.GTE}]},minimum:{exclusive:"exclusiveMinimum",ops:[{okStr:">=",ok:Vu.GTE,fail:Vu.LT},{okStr:">",ok:Vu.GT,fail:Vu.LTE}]}},UXe={message:t=>hT.str`must be ${mT(t).okStr} ${t.schemaCode}`,params:t=>hT._`{comparison: ${mT(t).okStr}, limit: ${t.schemaCode}}`},BXe={keyword:Object.keys(dT),type:"number",schemaType:"number",$data:!0,error:UXe,code(t){const{data:e,schemaCode:n}=t;t.fail$data(hT._`${e} ${mT(t).fail} ${n} || isNaN(${e})`)}};function mT(t){var e;const n=t.keyword,i=!((e=t.parentSchema)===null||e===void 0)&&e[dT[n].exclusive]?1:0;return dT[n].ops[i]}LN.default=BXe;var FN={};Object.defineProperty(FN,"__esModule",{value:!0});const VV={exclusiveMaximum:"maximum",exclusiveMinimum:"minimum"},VXe={keyword:Object.keys(VV),type:"number",schemaType:"boolean",code({keyword:t,parentSchema:e}){const n=VV[t];if(e[n]===void 0)throw new Error(`${t} can only be used with ${n}`)}};FN.default=VXe;Object.defineProperty(NN,"__esModule",{value:!0});const WXe=LN,HXe=FN,GXe=dx,KXe=mx,YXe=yx,JXe=gx,QXe=vx,ZXe=Px,XXe=bx,eet=wx,tet=$x,ret=[WXe.default,HXe.default,GXe.default,KXe.default,YXe.default,JXe.default,QXe.default,ZXe.default,XXe.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},eet.default,tet.default];NN.default=ret;Object.defineProperty(MN,"__esModule",{value:!0});const net=RN,iet=NN,aet=Mb,set=Rb,oet=["title","description","default"],cet=[net.default,iet.default,aet.default(),set.default,oet];MN.default=cet;const uet="http://json-schema.org/draft-04/schema#",fet="http://json-schema.org/draft-04/schema#",pet="Core schema meta-schema",het={schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},positiveInteger:{type:"integer",minimum:0},positiveIntegerDefault0:{allOf:[{$ref:"#/definitions/positiveInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0}},det="object",met={id:{type:"string",format:"uri"},$schema:{type:"string",format:"uri"},title:{type:"string"},description:{type:"string"},default:{},multipleOf:{type:"number",minimum:0,exclusiveMinimum:!0},maximum:{type:"number"},exclusiveMaximum:{type:"boolean",default:!1},minimum:{type:"number"},exclusiveMinimum:{type:"boolean",default:!1},maxLength:{$ref:"#/definitions/positiveInteger"},minLength:{$ref:"#/definitions/positiveIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{anyOf:[{type:"boolean"},{$ref:"#"}],default:{}},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:{}},maxItems:{$ref:"#/definitions/positiveInteger"},minItems:{$ref:"#/definitions/positiveIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},maxProperties:{$ref:"#/definitions/positiveInteger"},minProperties:{$ref:"#/definitions/positiveIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{anyOf:[{type:"boolean"},{$ref:"#"}],default:{}},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},enum:{type:"array",minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},yet={exclusiveMaximum:["maximum"],exclusiveMinimum:["minimum"]},get={id:uet,$schema:fet,description:pet,definitions:het,type:det,properties:met,dependencies:yet,default:{}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=void 0;const n=xf,i=MN,a=o0,o=get,r=["/properties"],s="http://json-schema.org/draft-04/schema";class c extends n.default{constructor(h={}){super({...h,schemaId:"id"})}_addVocabularies(){super._addVocabularies(),i.default.forEach(h=>this.addVocabulary(h)),this.opts.discriminator&&this.addKeyword(a.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const h=this.opts.$data?this.$dataMetaSchema(o,r):o;this.addMetaSchema(h,s,!1),this.refs["http://json-schema.org/schema"]=s}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(s)?s:void 0)}}t.exports=e=c,Object.defineProperty(e,"__esModule",{value:!0}),e.default=c;var l=xf;Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return l.KeywordCxt}});var u=xf;Object.defineProperty(e,"_",{enumerable:!0,get:function(){return u._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return u.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return u.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return u.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return u.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return u.CodeGen}})})(pT,pT.exports);var vet=pT.exports,yT={exports:{}},_re={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.formatNames=t.fastFormats=t.fullFormats=void 0;function e(E,L){return{validate:E,compare:L}}t.fullFormats={date:e(o,r),time:e(c,l),"date-time":e(f,h),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:g,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:I,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:v,int32:{type:"number",validate:_},int64:{type:"number",validate:x},float:{type:"number",validate:N},double:{type:"number",validate:N},password:!0,binary:!0},t.fastFormats={...t.fullFormats,date:e(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,r),time:e(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,l),"date-time":e(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,h),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i},t.formatNames=Object.keys(t.fullFormats);function n(E){return E%4===0&&(E%100!==0||E%400===0)}const i=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,a=[0,31,28,31,30,31,30,31,31,30,31,30,31];function o(E){const L=i.exec(E);if(!L)return!1;const q=+L[1],F=+L[2],S=+L[3];return F>=1&&F<=12&&S>=1&&S<=(F===2&&n(q)?29:a[F])}function r(E,L){if(E&&L)return E>L?1:EL?1:E=P}function x(E){return Number.isInteger(E)}function N(){return!0}const j=/[^\\]\\Z/;function I(E){if(j.test(E))return!1;try{return new RegExp(E),!0}catch{return!1}}})(_re);var xre={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.formatLimitDefinition=void 0;const e=l0,n=Et,i=n.operators,a={formatMaximum:{okStr:"<=",ok:i.LTE,fail:i.GT},formatMinimum:{okStr:">=",ok:i.GTE,fail:i.LT},formatExclusiveMaximum:{okStr:"<",ok:i.LT,fail:i.GTE},formatExclusiveMinimum:{okStr:">",ok:i.GT,fail:i.LTE}},o={message:({keyword:s,schemaCode:c})=>n.str`should be ${a[s].okStr} ${c}`,params:({keyword:s,schemaCode:c})=>n._`{comparison: ${a[s].okStr}, limit: ${c}}`};t.formatLimitDefinition={keyword:Object.keys(a),type:"string",schemaType:"string",$data:!0,error:o,code(s){const{gen:c,data:l,schemaCode:u,keyword:f,it:h}=s,{opts:d,self:m}=h;if(!d.validateFormats)return;const g=new e.KeywordCxt(h,m.RULES.all.format.definition,"format");g.$data?b():v();function b(){const A=c.scopeValue("formats",{ref:m.formats,code:d.code.formats}),_=c.const("fmt",n._`${A}[${g.schemaCode}]`);s.fail$data(n.or(n._`typeof ${_} != "object"`,n._`${_} instanceof RegExp`,n._`typeof ${_}.compare != "function"`,P(_)))}function v(){const A=g.schema,_=m.formats[A];if(!_||_===!0)return;if(typeof _!="object"||_ instanceof RegExp||typeof _.compare!="function")throw new Error(`"${f}": format "${A}" does not define "compare" function`);const x=c.scopeValue("formats",{key:A,ref:_,code:d.code.formats?n._`${d.code.formats}${n.getProperty(A)}`:void 0});s.fail$data(P(x))}function P(A){return n._`${A}.compare(${l}, ${u}) ${a[f].fail} 0`}},dependencies:["format"]};const r=s=>(s.addKeyword(t.formatLimitDefinition),s);t.default=r})(xre);(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});const n=_re,i=xre,a=Et,o=new a.Name("fullFormats"),r=new a.Name("fastFormats"),s=(l,u={keywords:!0})=>{if(Array.isArray(u))return c(l,u,n.fullFormats,o),l;const[f,h]=u.mode==="fast"?[n.fastFormats,r]:[n.fullFormats,o],d=u.formats||n.formatNames;return c(l,d,f,h),u.keywords&&i.default(l),l};s.get=(l,u="full")=>{const h=(u==="fast"?n.fastFormats:n.fullFormats)[l];if(!h)throw new Error(`Unknown format "${l}"`);return h};function c(l,u,f,h){var d,m;(d=(m=l.opts.code).formats)!==null&&d!==void 0||(m.formats=a._`require("ajv-formats/dist/formats").${h}`);for(const g of u)l.addFormat(g,f[g])}t.exports=e=s,Object.defineProperty(e,"__esModule",{value:!0}),e.default=s})(yT,yT.exports);var Pet=yT.exports;const bet="http://json-schema.org/draft-06/schema#",wet="http://json-schema.org/draft-06/schema#",$et="Core schema meta-schema",Aet={schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},_et=["object","boolean"],xet={$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},title:{type:"string"},description:{type:"string"},default:{},examples:{type:"array",items:{}},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:{}},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:{},enum:{type:"array",minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},Det={$schema:bet,$id:wet,title:$et,definitions:Aet,type:_et,properties:xet,default:{}},ket="http://json-schema.org/draft-04/schema#",Oet="http://json-schema.org/draft-07/schema#",Eet="Core schema meta-schema",Iet={schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},positiveInteger:{type:"integer",minimum:0},positiveIntegerDefault0:{allOf:[{$ref:"#/definitions/positiveInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0}},Cet="object",Tet={id:{type:"string",format:"uri"},$schema:{type:"string",format:"uri"},title:{type:"string"},description:{type:"string"},deprecationMessage:{type:"string",description:"Non-standard: deprecation message for a property, if it is deprecated"},default:{},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"boolean",default:!1},minimum:{type:"number"},exclusiveMinimum:{type:"boolean",default:!1},maxLength:{$ref:"#/definitions/positiveInteger"},minLength:{$ref:"#/definitions/positiveIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{anyOf:[{type:"boolean"},{$ref:"#"}],default:{}},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:{}},maxItems:{$ref:"#/definitions/positiveInteger"},minItems:{$ref:"#/definitions/positiveIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},maxProperties:{$ref:"#/definitions/positiveInteger"},minProperties:{$ref:"#/definitions/positiveIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{anyOf:[{type:"boolean"},{$ref:"#"}],default:{}},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},enum:{type:"array",minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},jet={$id:ket,$schema:Oet,description:Eet,definitions:Iet,type:Cet,properties:Tet,default:{}};Object.defineProperty(zx,"__esModule",{value:!0});zx.createAjvInstances=void 0;const Wf=vr,Dre=(0,Wf.__importDefault)(l0),Met=(0,Wf.__importDefault)(iZe),Ret=(0,Wf.__importDefault)(LXe),Net=(0,Wf.__importDefault)(vet),Let=(0,Wf.__importDefault)(Pet),Fet=(0,Wf.__importDefault)(sN),qet=(0,Wf.__importStar)(Det),zet=(0,Wf.__importStar)(jet),Uet={warn(...t){const e=t[0];if(typeof e=="string"){if(e.startsWith("unknown format"))return;console.warn(...t)}},log:console.log,error:console.error};function WV(t,e){const n=new t({allErrors:e,meta:!0,messages:!0,strict:!1,allowUnionTypes:!0,logger:Uet,unicodeRegExp:!1});return(0,Let.default)(n),e&&(0,Fet.default)(n),t===Dre.default&&(n.addSchema(zet),n.addSchema(qet)),n}function Xw(t){let e,n;return{get default(){return e??(e=WV(t,!1)),e},get allErrors(){return n??(n=WV(t,!0)),n}}}function Bet(){const t={auto:Xw(Dre.default),draft4:Xw(Net.default),"draft2019-09":Xw(Met.default),"draft2020-12":Xw(Ret.default)},e=new WeakMap;return function(n,i,a){var o,r,s,c;const u=((o=t[i])!==null&&o!==void 0?o:t.auto)[a?"allErrors":"default"],f=n.$id;if(typeof f=="string")return(r=u.getSchema(f))!==null&&r!==void 0?r:u.compile(n);{const h=(s=e.get(u))!==null&&s!==void 0?s:e.set(u,new WeakMap).get(u);return(c=h.get(n))!==null&&c!==void 0?c:h.set(n,u.compile(n)).get(n)}}}zx.createAjvInstances=Bet;Object.defineProperty($N,"__esModule",{value:!0});const kre=vr,Vet=(0,kre.__importDefault)(uJe),Wet=cl,Het=zx,Get=(0,kre.__importDefault)(Pu),Ket=Tr(),Yet=sr,Jet=Ca,HV=new WeakMap;$N.default=(0,Ket.createRulesetFunction)({input:null,options:Jet.optionSchemas.schema},function(e,n,{path:i,rule:a,documentInventory:o}){var r,s,c;if(e===void 0)return[{path:i,message:'#{{print("property")}}must exist'}];const l=(r=HV.get(o))!==null&&r!==void 0?r:HV.set(o,(0,Het.createAjvInstances)()).get(o),u=[],{allErrors:f=!1,schema:h}=n;try{const d=(s=n.dialect===void 0||n.dialect==="auto"?(0,Wet.detectDialect)(h):n==null?void 0:n.dialect)!==null&&s!==void 0?s:"draft7",m=l(h,d,f);(m==null?void 0:m(e))===!1&&Array.isArray(m.errors)&&((c=n.prepareResults)===null||c===void 0||c.call(n,m.errors),u.push(...(0,Vet.default)(h,m.errors,{propertyPath:i,targetValue:e}).map(({suggestion:g,error:b,path:v})=>({message:g!==void 0?`${b}. ${g}`:b,path:[...i,...v!==""?v.replace(/^\//,"").split("/"):[]]}))))}catch(d){if(!(0,Yet.isError)(d))throw new Error("Unexpected error");(a==null?void 0:a.resolved)&&d instanceof Get.default||u.push({message:d.message,path:i})}return u});var qN={};Object.defineProperty(qN,"__esModule",{value:!0});const Qet=Tr(),Zet=Ca;qN.default=(0,Qet.createRulesetFunction)({input:null,options:Zet.optionSchemas.truthy},function(e){if(!e)return[{message:'#{{print("property")}}must be truthy'}]});var zN={};Object.defineProperty(zN,"__esModule",{value:!0});const Xet=Tr(),ett=Ca;zN.default=(0,Xet.createRulesetFunction)({input:null,options:ett.optionSchemas.undefined},function(e){if(typeof e<"u")return[{message:'#{{print("property")}}must be undefined'}]});var UN={};Object.defineProperty(UN,"__esModule",{value:!0});const ttt=Tr(),rtt=Za,ntt=Hr,itt=Ca;UN.default=(0,ttt.createRulesetFunction)({input:{type:"object"},options:itt.optionSchemas.unreferencedReusableObject},function(e,n,{document:i,documentInventory:a}){var o;const r=a.graph;if(r===null)throw new Error("unreferencedReusableObject requires dependency graph");const s=(o=i.source)!==null&&o!==void 0?o:"",c=Object.keys(e).map(f=>`${s}${n.reusableObjectsLocation}/${f}`),l=new Set(r.overallOrder().map(f=>(0,ntt.decodePointer)(f)));return c.filter(f=>!l.has(f)).map(f=>({message:"Potential orphaned reusable object has been detected",path:(0,rtt.safePointerToPath)(f)}))});var BN={};Object.defineProperty(BN,"__esModule",{value:!0});const att=Tr(),stt=Za,ott=Ca;BN.default=(0,att.createRulesetFunction)({input:{type:"object"},options:ott.optionSchemas.xor},function(e,{properties:n}){const i=[];if(Object.keys(e).filter(o=>n.includes(o)).length!==1){const o=n.map(c=>(0,stt.printValue)(c)),r=o.pop();let s=o.join(", ")+(r!=null?` and ${r}`:"");s+=" must not be both defined or both undefined",i.push({message:s})}return i});(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.xor=t.unreferencedReusableObject=t.undefined=t.truthy=t.schema=t.pattern=t.length=t.falsy=t.enumeration=t.defined=t.casing=t.alphabetical=void 0;const e=vr,n=(0,e.__importDefault)(mN);Object.defineProperty(t,"alphabetical",{enumerable:!0,get:function(){return n.default}});const i=(0,e.__importDefault)(ure);Object.defineProperty(t,"casing",{enumerable:!0,get:function(){return i.default}});const a=(0,e.__importDefault)(gN);Object.defineProperty(t,"defined",{enumerable:!0,get:function(){return a.default}});const o=(0,e.__importDefault)(vN);Object.defineProperty(t,"enumeration",{enumerable:!0,get:function(){return o.default}});const r=(0,e.__importDefault)(PN);Object.defineProperty(t,"falsy",{enumerable:!0,get:function(){return r.default}});const s=(0,e.__importDefault)(bN);Object.defineProperty(t,"length",{enumerable:!0,get:function(){return s.default}});const c=(0,e.__importDefault)(wN);Object.defineProperty(t,"pattern",{enumerable:!0,get:function(){return c.default}});const l=(0,e.__importDefault)($N);Object.defineProperty(t,"schema",{enumerable:!0,get:function(){return l.default}});const u=(0,e.__importDefault)(qN);Object.defineProperty(t,"truthy",{enumerable:!0,get:function(){return u.default}});const f=(0,e.__importDefault)(zN);Object.defineProperty(t,"undefined",{enumerable:!0,get:function(){return f.default}});const h=(0,e.__importDefault)(UN);Object.defineProperty(t,"unreferencedReusableObject",{enumerable:!0,get:function(){return h.default}});const d=(0,e.__importDefault)(BN);Object.defineProperty(t,"xor",{enumerable:!0,get:function(){return d.default}})})(oa);var tb={},VN={},_o={};Object.defineProperty(_o,"__esModule",{value:!0});_o.isObject=void 0;function ltt(t){return t!==null&&typeof t=="object"}_o.isObject=ltt;Object.defineProperty(VN,"__esModule",{value:!0});const ctt=_o,utt=Tr();function ftt(t){return`${String(t.in)}-${String(t.name)}`}VN.default=(0,utt.createRulesetFunction)({input:{type:"array"},options:null},function(e,n,{path:i}){if(!Array.isArray(e)||e.length<2)return;const a=[],o={body:[],formData:[]},r=[],s=[];let c=-1;for(const l of e){if(c++,!(0,ctt.isObject)(l)||"$ref"in l)continue;const u=ftt(l);r.includes(u)?s.push(c):r.push(u),typeof l.in=="string"&&l.in in o&&o[l.in].push(c)}if(s.length>0)for(const l of s)a.push({message:'A parameter in this operation already exposes the same combination of "name" and "in" values.',path:[...i,l]});if(o.body.length>0&&o.formData.length>0&&a.push({message:'Operation must not have both "in:body" and "in:formData" parameters.'}),o.body.length>1)for(let l=1;l{t["x-nullable"]===!0&&(t.nullable=!0,delete t["x-nullable"])};function gtt(t,e){const n=(0,kS.pointerToPath)(e);let i=t;for(const a of n.slice(0,-1)){if(!(0,kS.isPlainObject)(i))return;i=i[a]}return i}var WN={},Ll={},HN={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.formatNames=t.fastFormats=t.fullFormats=void 0;function e(E,L){return{validate:E,compare:L}}t.fullFormats={date:e(o,r),time:e(c,l),"date-time":e(f,h),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:g,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:I,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:v,int32:{type:"number",validate:_},int64:{type:"number",validate:x},float:{type:"number",validate:N},double:{type:"number",validate:N},password:!0,binary:!0},t.fastFormats={...t.fullFormats,date:e(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,r),time:e(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,l),"date-time":e(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,h),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i},t.formatNames=Object.keys(t.fullFormats);function n(E){return E%4===0&&(E%100!==0||E%400===0)}const i=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,a=[0,31,28,31,30,31,30,31,31,30,31,30,31];function o(E){const L=i.exec(E);if(!L)return!1;const q=+L[1],F=+L[2],S=+L[3];return F>=1&&F<=12&&S>=1&&S<=(F===2&&n(q)?29:a[F])}function r(E,L){if(E&&L)return E>L?1:EL?1:E=P}function x(E){return Number.isInteger(E)}function N(){return!0}const j=/[^\\]\\Z/;function I(E){if(j.test(E))return!1;try{return new RegExp(E),!0}catch{return!1}}})(HN);Object.defineProperty(Ll,"__esModule",{value:!0});Ll.arazzo1_0=Ll.oas3_1=Ll.oas3_0=Ll.oas2_0=void 0;Ll.oas2_0=OS;const KV={title:"A JSON Schema for Swagger 2.0 API.",$id:"http://swagger.io/v2/schema.json#",$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",required:["swagger","info","paths"],additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{swagger:{type:"string",enum:["2.0"],description:"The Swagger version of this document."},info:{$ref:"#/definitions/info"},host:{type:"string",pattern:"^[^{}/ :\\\\]+(?::\\d+)?$",description:"The host (name or ip) of the API. Example: 'swagger.io'"},basePath:{type:"string",pattern:"^/",description:"The base path to the API. Example: '/api'."},schemes:{$ref:"#/definitions/schemesList"},consumes:{description:"A list of MIME types accepted by the API.",allOf:[{$ref:"#/definitions/mediaTypeList"}]},produces:{description:"A list of MIME types the API can produce.",allOf:[{$ref:"#/definitions/mediaTypeList"}]},paths:{$ref:"#/definitions/paths"},definitions:{$ref:"#/definitions/definitions"},parameters:{$ref:"#/definitions/parameterDefinitions"},responses:{$ref:"#/definitions/responseDefinitions"},security:{$ref:"#/definitions/security"},securityDefinitions:{$ref:"#/definitions/securityDefinitions"},tags:{type:"array",items:{$ref:"#/definitions/tag"},uniqueItems:!0},externalDocs:{$ref:"#/definitions/externalDocs"}},definitions:{info:{type:"object",description:"General information about the API.",required:["version","title"],additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{title:{type:"string",description:"A unique and precise title of the API."},version:{type:"string",description:"A semantic version number of the API."},description:{type:"string",description:"A longer description of the API. Should be different from the title. GitHub Flavored Markdown is allowed."},termsOfService:{type:"string",description:"The terms of service for the API."},contact:{$ref:"#/definitions/contact"},license:{$ref:"#/definitions/license"}}},contact:{type:"object",description:"Contact information for the owners of the API.",additionalProperties:!1,properties:{name:{type:"string",description:"The identifying name of the contact person/organization."},url:{type:"string",description:"The URL pointing to the contact information.",format:"uri"},email:{type:"string",description:"The email address of the contact person/organization.",format:"email"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},license:{type:"object",required:["name"],additionalProperties:!1,properties:{name:{type:"string",description:"The name of the license type. It's encouraged to use an OSI compatible license."},url:{type:"string",description:"The URL pointing to the license.",format:"uri"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},paths:{type:"object",description:"Relative paths to the individual endpoints. They must be relative to the 'basePath'.",patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"},"^/":{$ref:"#/definitions/pathItem"}},additionalProperties:!1},definitions:{type:"object",additionalProperties:{$ref:"#/definitions/schema"},description:"One or more JSON objects describing the schemas being consumed and produced by the API."},parameterDefinitions:{type:"object",additionalProperties:{$ref:"#/definitions/parameter"},description:"One or more JSON representations for parameters"},responseDefinitions:{type:"object",additionalProperties:{$ref:"#/definitions/response"},description:"One or more JSON representations for responses"},externalDocs:{type:"object",additionalProperties:!1,description:"information about external documentation",required:["url"],properties:{description:{type:"string"},url:{type:"string",format:"uri"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},examples:{type:"object",additionalProperties:!0},mimeType:{type:"string",description:"The MIME type of the HTTP message."},operation:{type:"object",required:["responses"],additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{tags:{type:"array",items:{type:"string"},uniqueItems:!0},summary:{type:"string",description:"A brief summary of the operation."},description:{type:"string",description:"A longer description of the operation, GitHub Flavored Markdown is allowed."},externalDocs:{$ref:"#/definitions/externalDocs"},operationId:{type:"string",description:"A unique identifier of the operation."},produces:{description:"A list of MIME types the API can produce.",allOf:[{$ref:"#/definitions/mediaTypeList"}]},consumes:{description:"A list of MIME types the API can consume.",allOf:[{$ref:"#/definitions/mediaTypeList"}]},parameters:{$ref:"#/definitions/parametersList"},responses:{$ref:"#/definitions/responses"},schemes:{$ref:"#/definitions/schemesList"},deprecated:{type:"boolean",default:!1},security:{$ref:"#/definitions/security"}}},pathItem:{type:"object",additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{$ref:{type:"string"},get:{$ref:"#/definitions/operation"},put:{$ref:"#/definitions/operation"},post:{$ref:"#/definitions/operation"},delete:{$ref:"#/definitions/operation"},options:{$ref:"#/definitions/operation"},head:{$ref:"#/definitions/operation"},patch:{$ref:"#/definitions/operation"},parameters:{$ref:"#/definitions/parametersList"}}},responses:{type:"object",description:"Response objects names can either be any valid HTTP status code or 'default'.",minProperties:1,additionalProperties:!1,patternProperties:{"^([0-9]{3})$|^(default)$":{$ref:"#/definitions/responseValue"},"^x-":{$ref:"#/definitions/vendorExtension"}},not:{type:"object",additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}}},responseValue:{if:{type:"object",required:["$ref"]},then:{$ref:"#/definitions/jsonReference"},else:{$ref:"#/definitions/response"}},response:{type:"object",required:["description"],properties:{description:{type:"string"},schema:{oneOf:[{$ref:"#/definitions/schema"},{$ref:"#/definitions/fileSchema"}]},headers:{$ref:"#/definitions/headers"},examples:{$ref:"#/definitions/examples"}},additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},headers:{type:"object",additionalProperties:{$ref:"#/definitions/header"}},header:{type:"object",additionalProperties:!1,required:["type"],properties:{type:{type:"string",enum:["string","number","integer","boolean","array"]},format:{type:"string"},items:{$ref:"#/definitions/primitivesItems"},collectionFormat:{$ref:"#/definitions/collectionFormat"},default:{$ref:"#/definitions/default"},maximum:{$ref:"#/definitions/maximum"},exclusiveMaximum:{$ref:"#/definitions/exclusiveMaximum"},minimum:{$ref:"#/definitions/minimum"},exclusiveMinimum:{$ref:"#/definitions/exclusiveMinimum"},maxLength:{$ref:"#/definitions/maxLength"},minLength:{$ref:"#/definitions/minLength"},pattern:{$ref:"#/definitions/pattern"},maxItems:{$ref:"#/definitions/maxItems"},minItems:{$ref:"#/definitions/minItems"},uniqueItems:{$ref:"#/definitions/uniqueItems"},enum:{$ref:"#/definitions/enum"},multipleOf:{$ref:"#/definitions/multipleOf"},description:{type:"string"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},vendorExtension:{description:"Any property starting with x- is valid.",additionalProperties:!0,additionalItems:!0},bodyParameter:{type:"object",required:["name","in","schema"],patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{description:{type:"string",description:"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},name:{type:"string",description:"The name of the parameter."},in:{type:"string",description:"Determines the location of the parameter.",enum:["body"]},required:{type:"boolean",description:"Determines whether or not this parameter is required or optional.",default:!1},schema:{$ref:"#/definitions/schema"}},additionalProperties:!1},headerParameterSubSchema:{additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{required:{type:"boolean",description:"Determines whether or not this parameter is required or optional.",default:!1},in:{type:"string",description:"Determines the location of the parameter.",enum:["header"]},description:{type:"string",description:"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},name:{type:"string",description:"The name of the parameter."},type:{type:"string",enum:["string","number","boolean","integer","array"]},format:{type:"string"},items:{$ref:"#/definitions/primitivesItems"},collectionFormat:{$ref:"#/definitions/collectionFormat"},default:{$ref:"#/definitions/default"},maximum:{$ref:"#/definitions/maximum"},exclusiveMaximum:{$ref:"#/definitions/exclusiveMaximum"},minimum:{$ref:"#/definitions/minimum"},exclusiveMinimum:{$ref:"#/definitions/exclusiveMinimum"},maxLength:{$ref:"#/definitions/maxLength"},minLength:{$ref:"#/definitions/minLength"},pattern:{$ref:"#/definitions/pattern"},maxItems:{$ref:"#/definitions/maxItems"},minItems:{$ref:"#/definitions/minItems"},uniqueItems:{$ref:"#/definitions/uniqueItems"},enum:{$ref:"#/definitions/enum"},multipleOf:{$ref:"#/definitions/multipleOf"}}},queryParameterSubSchema:{additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{required:{type:"boolean",description:"Determines whether or not this parameter is required or optional.",default:!1},in:{type:"string",description:"Determines the location of the parameter.",enum:["query"]},description:{type:"string",description:"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},name:{type:"string",description:"The name of the parameter."},allowEmptyValue:{type:"boolean",default:!1,description:"allows sending a parameter by name only or with an empty value."},type:{type:"string",enum:["string","number","boolean","integer","array"]},format:{type:"string"},items:{$ref:"#/definitions/primitivesItems"},collectionFormat:{$ref:"#/definitions/collectionFormatWithMulti"},default:{$ref:"#/definitions/default"},maximum:{$ref:"#/definitions/maximum"},exclusiveMaximum:{$ref:"#/definitions/exclusiveMaximum"},minimum:{$ref:"#/definitions/minimum"},exclusiveMinimum:{$ref:"#/definitions/exclusiveMinimum"},maxLength:{$ref:"#/definitions/maxLength"},minLength:{$ref:"#/definitions/minLength"},pattern:{$ref:"#/definitions/pattern"},maxItems:{$ref:"#/definitions/maxItems"},minItems:{$ref:"#/definitions/minItems"},uniqueItems:{$ref:"#/definitions/uniqueItems"},enum:{$ref:"#/definitions/enum"},multipleOf:{$ref:"#/definitions/multipleOf"}}},formDataParameterSubSchema:{additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{required:{type:"boolean",description:"Determines whether or not this parameter is required or optional.",default:!1},in:{type:"string",description:"Determines the location of the parameter.",enum:["formData"]},description:{type:"string",description:"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},name:{type:"string",description:"The name of the parameter."},allowEmptyValue:{type:"boolean",default:!1,description:"allows sending a parameter by name only or with an empty value."},type:{type:"string",enum:["string","number","boolean","integer","array","file"]},format:{type:"string"},items:{$ref:"#/definitions/primitivesItems"},collectionFormat:{$ref:"#/definitions/collectionFormatWithMulti"},default:{$ref:"#/definitions/default"},maximum:{$ref:"#/definitions/maximum"},exclusiveMaximum:{$ref:"#/definitions/exclusiveMaximum"},minimum:{$ref:"#/definitions/minimum"},exclusiveMinimum:{$ref:"#/definitions/exclusiveMinimum"},maxLength:{$ref:"#/definitions/maxLength"},minLength:{$ref:"#/definitions/minLength"},pattern:{$ref:"#/definitions/pattern"},maxItems:{$ref:"#/definitions/maxItems"},minItems:{$ref:"#/definitions/minItems"},uniqueItems:{$ref:"#/definitions/uniqueItems"},enum:{$ref:"#/definitions/enum"},multipleOf:{$ref:"#/definitions/multipleOf"}}},pathParameterSubSchema:{additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},required:["required"],properties:{required:{type:"boolean",enum:[!0],description:"Determines whether or not this parameter is required or optional."},in:{type:"string",description:"Determines the location of the parameter.",enum:["path"]},description:{type:"string",description:"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},name:{type:"string",description:"The name of the parameter."},type:{type:"string",enum:["string","number","boolean","integer","array"]},format:{type:"string"},items:{$ref:"#/definitions/primitivesItems"},collectionFormat:{$ref:"#/definitions/collectionFormat"},default:{$ref:"#/definitions/default"},maximum:{$ref:"#/definitions/maximum"},exclusiveMaximum:{$ref:"#/definitions/exclusiveMaximum"},minimum:{$ref:"#/definitions/minimum"},exclusiveMinimum:{$ref:"#/definitions/exclusiveMinimum"},maxLength:{$ref:"#/definitions/maxLength"},minLength:{$ref:"#/definitions/minLength"},pattern:{$ref:"#/definitions/pattern"},maxItems:{$ref:"#/definitions/maxItems"},minItems:{$ref:"#/definitions/minItems"},uniqueItems:{$ref:"#/definitions/uniqueItems"},enum:{$ref:"#/definitions/enum"},multipleOf:{$ref:"#/definitions/multipleOf"}}},nonBodyParameter:{type:"object",required:["name","in","type"],oneOf:[{$ref:"#/definitions/headerParameterSubSchema"},{$ref:"#/definitions/formDataParameterSubSchema"},{$ref:"#/definitions/queryParameterSubSchema"},{$ref:"#/definitions/pathParameterSubSchema"}]},parameter:{oneOf:[{$ref:"#/definitions/bodyParameter"},{$ref:"#/definitions/nonBodyParameter"}]},schema:{type:"object",description:"A deterministic version of a JSON Schema object.",patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{$ref:{type:"string"},format:{type:"string"},title:{$ref:"http://json-schema.org/draft-04/schema#/properties/title"},description:{$ref:"http://json-schema.org/draft-04/schema#/properties/description"},default:{$ref:"http://json-schema.org/draft-04/schema#/properties/default"},multipleOf:{$ref:"http://json-schema.org/draft-04/schema#/properties/multipleOf"},maximum:{$ref:"http://json-schema.org/draft-04/schema#/properties/maximum"},exclusiveMaximum:{$ref:"http://json-schema.org/draft-04/schema#/properties/exclusiveMaximum"},minimum:{$ref:"http://json-schema.org/draft-04/schema#/properties/minimum"},exclusiveMinimum:{$ref:"http://json-schema.org/draft-04/schema#/properties/exclusiveMinimum"},maxLength:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},minLength:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},pattern:{$ref:"http://json-schema.org/draft-04/schema#/properties/pattern"},maxItems:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},minItems:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},uniqueItems:{$ref:"http://json-schema.org/draft-04/schema#/properties/uniqueItems"},maxProperties:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},minProperties:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},required:{$ref:"http://json-schema.org/draft-04/schema#/definitions/stringArray"},enum:{$ref:"http://json-schema.org/draft-04/schema#/properties/enum"},additionalProperties:{if:{type:"object"},then:{$ref:"#/definitions/schema"},else:{if:{type:"boolean"},then:!0,else:{not:!0,errorMessage:'"additionalProperties" property must be a valid schema'}},default:{}},type:{$ref:"http://json-schema.org/draft-04/schema#/properties/type"},items:{anyOf:[{$ref:"#/definitions/schema"},{type:"array",minItems:1,items:{$ref:"#/definitions/schema"}}],default:{}},allOf:{type:"array",minItems:1,items:{$ref:"#/definitions/schema"}},oneOf:{type:"array",minItems:1,items:{$ref:"#/definitions/schema"}},anyOf:{type:"array",minItems:1,items:{$ref:"#/definitions/schema"}},properties:{type:"object",additionalProperties:{$ref:"#/definitions/schema"},default:{}},discriminator:{type:"string"},readOnly:{type:"boolean",default:!1},xml:{$ref:"#/definitions/xml"},externalDocs:{$ref:"#/definitions/externalDocs"},example:{}},additionalProperties:!1},fileSchema:{type:"object",description:"A deterministic version of a JSON Schema object.",patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},required:["type"],properties:{format:{type:"string"},title:{$ref:"http://json-schema.org/draft-04/schema#/properties/title"},description:{$ref:"http://json-schema.org/draft-04/schema#/properties/description"},default:{$ref:"http://json-schema.org/draft-04/schema#/properties/default"},required:{$ref:"http://json-schema.org/draft-04/schema#/definitions/stringArray"},type:{enum:["file"]},readOnly:{type:"boolean",default:!1},externalDocs:{$ref:"#/definitions/externalDocs"},example:{}},additionalProperties:!1},primitivesItems:{type:"object",additionalProperties:!1,properties:{type:{enum:["string","number","integer","boolean","array"]},format:{type:"string"},items:{$ref:"#/definitions/primitivesItems"},collectionFormat:{$ref:"#/definitions/collectionFormat"},default:{$ref:"#/definitions/default"},maximum:{$ref:"#/definitions/maximum"},exclusiveMaximum:{$ref:"#/definitions/exclusiveMaximum"},minimum:{$ref:"#/definitions/minimum"},exclusiveMinimum:{$ref:"#/definitions/exclusiveMinimum"},maxLength:{$ref:"#/definitions/maxLength"},minLength:{$ref:"#/definitions/minLength"},pattern:{$ref:"#/definitions/pattern"},maxItems:{$ref:"#/definitions/maxItems"},minItems:{$ref:"#/definitions/minItems"},uniqueItems:{$ref:"#/definitions/uniqueItems"},enum:{$ref:"#/definitions/enum"},multipleOf:{$ref:"#/definitions/multipleOf"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},security:{type:"array",items:{$ref:"#/definitions/securityRequirement"},uniqueItems:!0},securityRequirement:{type:"object",additionalProperties:{type:"array",items:{type:"string"},uniqueItems:!0}},xml:{type:"object",additionalProperties:!1,properties:{name:{type:"string"},namespace:{type:"string"},prefix:{type:"string"},attribute:{type:"boolean",default:!1},wrapped:{type:"boolean",default:!1}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},tag:{type:"object",additionalProperties:!1,required:["name"],properties:{name:{type:"string"},description:{type:"string"},externalDocs:{$ref:"#/definitions/externalDocs"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},securityDefinitions:{type:"object",additionalProperties:{oneOf:[{$ref:"#/definitions/basicAuthenticationSecurity"},{$ref:"#/definitions/apiKeySecurity"},{$ref:"#/definitions/oauth2ImplicitSecurity"},{$ref:"#/definitions/oauth2PasswordSecurity"},{$ref:"#/definitions/oauth2ApplicationSecurity"},{$ref:"#/definitions/oauth2AccessCodeSecurity"}]},errorMessage:{properties:{basic:"Invalid basic authentication security definition",apiKey:"Invalid apiKey authentication security definition",oauth2:"Invalid oauth2 authentication security definition"},_:"Invalid security securityDefinitions"}},basicAuthenticationSecurity:{type:"object",additionalProperties:!1,required:["type"],properties:{type:{enum:["basic"]},description:{type:"string"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},apiKeySecurity:{type:"object",additionalProperties:!1,required:["type","name","in"],properties:{type:{enum:["apiKey"]},name:{type:"string"},in:{enum:["header","query"]},description:{type:"string"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},oauth2ImplicitSecurity:{type:"object",additionalProperties:!1,required:["type","flow","authorizationUrl","scopes"],properties:{type:{enum:["oauth2"]},flow:{enum:["implicit"]},scopes:{$ref:"#/definitions/oauth2Scopes"},authorizationUrl:{type:"string",format:"uri"},description:{type:"string"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},oauth2PasswordSecurity:{type:"object",additionalProperties:!1,required:["type","flow","tokenUrl","scopes"],properties:{type:{enum:["oauth2"]},flow:{enum:["password"]},scopes:{$ref:"#/definitions/oauth2Scopes"},tokenUrl:{type:"string",format:"uri"},description:{type:"string"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},oauth2ApplicationSecurity:{type:"object",additionalProperties:!1,required:["type","flow","tokenUrl","scopes"],properties:{type:{const:"oauth2"},flow:{const:"application"},scopes:{$ref:"#/definitions/oauth2Scopes"},tokenUrl:{type:"string",format:"uri"},description:{type:"string"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},oauth2AccessCodeSecurity:{type:"object",additionalProperties:!1,required:["type","flow","authorizationUrl","tokenUrl","scopes"],properties:{type:{const:"oauth2"},flow:{const:"accessCode"},scopes:{$ref:"#/definitions/oauth2Scopes"},authorizationUrl:{type:"string",format:"uri"},tokenUrl:{type:"string",format:"uri"},description:{type:"string"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},oauth2Scopes:{type:"object",additionalProperties:{type:"string"}},mediaTypeList:{type:"array",items:{$ref:"#/definitions/mimeType"},uniqueItems:!0},parametersList:{type:"array",description:"The parameters needed to send a valid API call.",additionalItems:!1,items:{if:{type:"object",required:["$ref"]},then:{$ref:"#/definitions/jsonReference"},else:{$ref:"#/definitions/parameter"}},uniqueItems:!0},schemesList:{type:"array",description:"The transfer protocol of the API.",items:{enum:["http","https","ws","wss"]},uniqueItems:!0},collectionFormat:{enum:["csv","ssv","tsv","pipes"],default:"csv"},collectionFormatWithMulti:{enum:["csv","ssv","tsv","pipes","multi"],default:"csv"},title:{$ref:"http://json-schema.org/draft-04/schema#/properties/title"},description:{$ref:"http://json-schema.org/draft-04/schema#/properties/description"},default:{$ref:"http://json-schema.org/draft-04/schema#/properties/default"},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{$ref:"http://json-schema.org/draft-04/schema#/properties/maximum"},exclusiveMaximum:{$ref:"http://json-schema.org/draft-04/schema#/properties/exclusiveMaximum"},minimum:{$ref:"http://json-schema.org/draft-04/schema#/properties/minimum"},exclusiveMinimum:{$ref:"http://json-schema.org/draft-04/schema#/properties/exclusiveMinimum"},maxLength:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},minLength:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},pattern:{$ref:"http://json-schema.org/draft-04/schema#/properties/pattern"},maxItems:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},minItems:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},uniqueItems:{$ref:"http://json-schema.org/draft-04/schema#/properties/uniqueItems"},enum:{$ref:"http://json-schema.org/draft-04/schema#/properties/enum"},jsonReference:{type:"object",required:["$ref"],additionalProperties:!1,properties:{$ref:{type:"string"}}}}},ta=Object.prototype.hasOwnProperty,Wr=i0.default,Je=new RegExp("^x-","u"),vtt=new RegExp("^[^{}/ :\\\\]+(?::\\d+)?$","u"),Ag=new RegExp("^/","u"),Ni=HN.fullFormats.uri,GN=/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i;function gr(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){const r=gr.evaluated;return r.dynamicProps&&(r.props=void 0),r.dynamicItems&&(r.items=void 0),gr.errors=null,!0}function um(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=um.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){for(const l in t)if(l!=="name"&&l!=="url"&&l!=="email"&&!Je.test(l)){const u={instancePath:e,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"};r===null?r=[u]:r.push(u),s++}if(t.name!==void 0&&typeof t.name!="string"){const l={instancePath:e+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}if(t.url!==void 0){let l=t.url;if(typeof l=="string"){if(!Ni(l)){const u={instancePath:e+"/url",schemaPath:"#/properties/url/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};r===null?r=[u]:r.push(u),s++}}else{const u={instancePath:e+"/url",schemaPath:"#/properties/url/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[u]:r.push(u),s++}}if(t.email!==void 0){let l=t.email;if(typeof l=="string"){if(!GN.test(l)){const u={instancePath:e+"/email",schemaPath:"#/properties/email/format",keyword:"format",params:{format:"email"},message:'must match format "email"'};r===null?r=[u]:r.push(u),s++}}else{const u={instancePath:e+"/email",schemaPath:"#/properties/email/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[u]:r.push(u),s++}}for(const l in t)Je.test(l)&&gr(t[l],{instancePath:e+"/"+l.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:t,parentDataProperty:l,rootData:a,dynamicAnchors:o})}else{const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[l]:r.push(l),s++}return um.errors=r,s===0}function fm(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=fm.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.name===void 0){const l={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"name"},message:"must have required property 'name'"};r===null?r=[l]:r.push(l),s++}for(const l in t)if(l!=="name"&&l!=="url"&&!Je.test(l)){const u={instancePath:e,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"};r===null?r=[u]:r.push(u),s++}if(t.name!==void 0&&typeof t.name!="string"){const l={instancePath:e+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}if(t.url!==void 0){let l=t.url;if(typeof l=="string"){if(!Ni(l)){const u={instancePath:e+"/url",schemaPath:"#/properties/url/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};r===null?r=[u]:r.push(u),s++}}else{const u={instancePath:e+"/url",schemaPath:"#/properties/url/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[u]:r.push(u),s++}}for(const l in t)Je.test(l)&&gr(t[l],{instancePath:e+"/"+l.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:t,parentDataProperty:l,rootData:a,dynamicAnchors:o})}else{const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[l]:r.push(l),s++}return fm.errors=r,s===0}function pm(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=pm.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.version===void 0){const l={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"version"},message:"must have required property 'version'"};r===null?r=[l]:r.push(l),s++}if(t.title===void 0){const l={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"title"},message:"must have required property 'title'"};r===null?r=[l]:r.push(l),s++}for(const l in t)if(l!=="title"&&l!=="version"&&l!=="description"&&l!=="termsOfService"&&l!=="contact"&&l!=="license"&&!Je.test(l)){const u={instancePath:e,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"};r===null?r=[u]:r.push(u),s++}if(t.title!==void 0&&typeof t.title!="string"){const l={instancePath:e+"/title",schemaPath:"#/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}if(t.version!==void 0&&typeof t.version!="string"){const l={instancePath:e+"/version",schemaPath:"#/properties/version/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}if(t.description!==void 0&&typeof t.description!="string"){const l={instancePath:e+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}if(t.termsOfService!==void 0&&typeof t.termsOfService!="string"){const l={instancePath:e+"/termsOfService",schemaPath:"#/properties/termsOfService/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}t.contact!==void 0&&(um(t.contact,{instancePath:e+"/contact",parentData:t,parentDataProperty:"contact",rootData:a,dynamicAnchors:o})||(r=r===null?um.errors:r.concat(um.errors),s=r.length)),t.license!==void 0&&(fm(t.license,{instancePath:e+"/license",parentData:t,parentDataProperty:"license",rootData:a,dynamicAnchors:o})||(r=r===null?fm.errors:r.concat(fm.errors),s=r.length));for(const l in t)Je.test(l)&&gr(t[l],{instancePath:e+"/"+l.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:t,parentDataProperty:l,rootData:a,dynamicAnchors:o})}else{const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[l]:r.push(l),s++}return pm.errors=r,s===0}gr.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},um.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},fm.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},pm.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};const Ptt={type:"array",description:"The transfer protocol of the API.",items:{enum:["http","https","ws","wss"]},uniqueItems:!0};function Rc(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Rc.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),Array.isArray(t)){const l=t.length;for(let h=0;h1){e:for(;f--;)for(u=f;u--;)if(Wr(t[f],t[u])){const h={instancePath:e,schemaPath:"#/uniqueItems",keyword:"uniqueItems",params:{i:f,j:u},message:"must NOT have duplicate items (items ## "+u+" and "+f+" are identical)"};r===null?r=[h]:r.push(h),s++;break e}}}else{const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"array"},message:"must be array"};r===null?r=[l]:r.push(l),s++}return Rc.errors=r,s===0}function hm(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=hm.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),typeof t!="string"){const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}return hm.errors=r,s===0}function da(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=da.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),Array.isArray(t)){const l=t.length;for(let h=0;h1){e:for(;f--;)for(u=f;u--;)if(Wr(t[f],t[u])){const h={instancePath:e,schemaPath:"#/uniqueItems",keyword:"uniqueItems",params:{i:f,j:u},message:"must NOT have duplicate items (items ## "+u+" and "+f+" are identical)"};r===null?r=[h]:r.push(h),s++;break e}}}else{const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"array"},message:"must be array"};r===null?r=[l]:r.push(l),s++}return da.errors=r,s===0}Rc.evaluated={items:!0,dynamicProps:!1,dynamicItems:!1},hm.evaluated={dynamicProps:!1,dynamicItems:!1},da.evaluated={items:!0,dynamicProps:!1,dynamicItems:!1};const btt={type:"object",additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{$ref:{type:"string"},get:{$ref:"#/definitions/operation"},put:{$ref:"#/definitions/operation"},post:{$ref:"#/definitions/operation"},delete:{$ref:"#/definitions/operation"},options:{$ref:"#/definitions/operation"},head:{$ref:"#/definitions/operation"},patch:{$ref:"#/definitions/operation"},parameters:{$ref:"#/definitions/parametersList"}}},wtt={type:"object",required:["responses"],additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{tags:{type:"array",items:{type:"string"},uniqueItems:!0},summary:{type:"string",description:"A brief summary of the operation."},description:{type:"string",description:"A longer description of the operation, GitHub Flavored Markdown is allowed."},externalDocs:{$ref:"#/definitions/externalDocs"},operationId:{type:"string",description:"A unique identifier of the operation."},produces:{description:"A list of MIME types the API can produce.",allOf:[{$ref:"#/definitions/mediaTypeList"}]},consumes:{description:"A list of MIME types the API can consume.",allOf:[{$ref:"#/definitions/mediaTypeList"}]},parameters:{$ref:"#/definitions/parametersList"},responses:{$ref:"#/definitions/responses"},schemes:{$ref:"#/definitions/schemesList"},deprecated:{type:"boolean",default:!1},security:{$ref:"#/definitions/security"}}};function Pi(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Pi.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.url===void 0){const l={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"url"},message:"must have required property 'url'"};r===null?r=[l]:r.push(l),s++}for(const l in t)if(l!=="description"&&l!=="url"&&!Je.test(l)){const u={instancePath:e,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"};r===null?r=[u]:r.push(u),s++}if(t.description!==void 0&&typeof t.description!="string"){const l={instancePath:e+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}if(t.url!==void 0){let l=t.url;if(typeof l=="string"){if(!Ni(l)){const u={instancePath:e+"/url",schemaPath:"#/properties/url/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};r===null?r=[u]:r.push(u),s++}}else{const u={instancePath:e+"/url",schemaPath:"#/properties/url/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[u]:r.push(u),s++}}for(const l in t)Je.test(l)&&gr(t[l],{instancePath:e+"/"+l.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:t,parentDataProperty:l,rootData:a,dynamicAnchors:o})}else{const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[l]:r.push(l),s++}return Pi.errors=r,s===0}function Nc(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Nc.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.$ref===void 0){const l={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"$ref"},message:"must have required property '$ref'"};r===null?r=[l]:r.push(l),s++}for(const l in t)if(l!=="$ref"){const u={instancePath:e,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"};r===null?r=[u]:r.push(u),s++}if(t.$ref!==void 0&&typeof t.$ref!="string"){const l={instancePath:e+"/$ref",schemaPath:"#/properties/%24ref/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}}else{const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[l]:r.push(l),s++}return Nc.errors=r,s===0}Pi.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},Nc.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};const $tt={type:"object",required:["name","in","schema"],patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{description:{type:"string",description:"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},name:{type:"string",description:"The name of the parameter."},in:{type:"string",description:"Determines the location of the parameter.",enum:["body"]},required:{type:"boolean",description:"Determines whether or not this parameter is required or optional.",default:!1},schema:{$ref:"#/definitions/schema"}},additionalProperties:!1},Att={type:"object",description:"A deterministic version of a JSON Schema object.",patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{$ref:{type:"string"},format:{type:"string"},title:{$ref:"http://json-schema.org/draft-04/schema#/properties/title"},description:{$ref:"http://json-schema.org/draft-04/schema#/properties/description"},default:{$ref:"http://json-schema.org/draft-04/schema#/properties/default"},multipleOf:{$ref:"http://json-schema.org/draft-04/schema#/properties/multipleOf"},maximum:{$ref:"http://json-schema.org/draft-04/schema#/properties/maximum"},exclusiveMaximum:{$ref:"http://json-schema.org/draft-04/schema#/properties/exclusiveMaximum"},minimum:{$ref:"http://json-schema.org/draft-04/schema#/properties/minimum"},exclusiveMinimum:{$ref:"http://json-schema.org/draft-04/schema#/properties/exclusiveMinimum"},maxLength:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},minLength:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},pattern:{$ref:"http://json-schema.org/draft-04/schema#/properties/pattern"},maxItems:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},minItems:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},uniqueItems:{$ref:"http://json-schema.org/draft-04/schema#/properties/uniqueItems"},maxProperties:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},minProperties:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},required:{$ref:"http://json-schema.org/draft-04/schema#/definitions/stringArray"},enum:{$ref:"http://json-schema.org/draft-04/schema#/properties/enum"},additionalProperties:{if:{type:"object"},then:{$ref:"#/definitions/schema"},else:{if:{type:"boolean"},then:!0,else:{not:!0,errorMessage:'"additionalProperties" property must be a valid schema'}},default:{}},type:{$ref:"http://json-schema.org/draft-04/schema#/properties/type"},items:{anyOf:[{$ref:"#/definitions/schema"},{type:"array",minItems:1,items:{$ref:"#/definitions/schema"}}],default:{}},allOf:{type:"array",minItems:1,items:{$ref:"#/definitions/schema"}},oneOf:{type:"array",minItems:1,items:{$ref:"#/definitions/schema"}},anyOf:{type:"array",minItems:1,items:{$ref:"#/definitions/schema"}},properties:{type:"object",additionalProperties:{$ref:"#/definitions/schema"},default:{}},discriminator:{type:"string"},readOnly:{type:"boolean",default:!1},xml:{$ref:"#/definitions/xml"},externalDocs:{$ref:"#/definitions/externalDocs"},example:{}},additionalProperties:!1};function Lc(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Lc.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),typeof t!="string"){const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}return Lc.errors=r,s===0}function Fc(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Fc.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),typeof t!="string"){const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}return Fc.errors=r,s===0}function Hx(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){return Hx.errors=null,!0}function dm(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=dm.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),typeof t=="number"){if(t<=0||isNaN(t)){const l={instancePath:e,schemaPath:"#/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison:">",limit:0},message:"must be > 0"};r===null?r=[l]:r.push(l),s++}}else{const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"number"},message:"must be number"};r===null?r=[l]:r.push(l),s++}return dm.errors=r,s===0}function mm(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=mm.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),typeof t!="number"){const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"number"},message:"must be number"};r===null?r=[l]:r.push(l),s++}return mm.errors=r,s===0}function ym(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=ym.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),typeof t!="boolean"){const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};r===null?r=[l]:r.push(l),s++}return ym.errors=r,s===0}function gm(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=gm.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),typeof t!="number"){const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"number"},message:"must be number"};r===null?r=[l]:r.push(l),s++}return gm.errors=r,s===0}function vm(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=vm.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),typeof t!="boolean"){const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};r===null?r=[l]:r.push(l),s++}return vm.errors=r,s===0}function qs(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=qs.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),typeof t!="number"||t%1||isNaN(t)){const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"integer"},message:"must be integer"};r===null?r=[l]:r.push(l),s++}if(typeof t=="number"&&(t<0||isNaN(t))){const l={instancePath:e,schemaPath:"#/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0"};r===null?r=[l]:r.push(l),s++}return qs.errors=r,s===0}function lo(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=lo.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),typeof t!="number"||t%1||isNaN(t)){const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"integer"},message:"must be integer"};r===null?r=[l]:r.push(l),s++}if(typeof t=="number"&&(t<0||isNaN(t))){const l={instancePath:e,schemaPath:"#/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0"};r===null?r=[l]:r.push(l),s++}return lo.errors=r,s===0}function zs(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=zs.evaluated;return c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),lo(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o})||(r=r===null?lo.errors:r.concat(lo.errors),s=r.length),zs.errors=r,s===0}Lc.evaluated={dynamicProps:!1,dynamicItems:!1},Fc.evaluated={dynamicProps:!1,dynamicItems:!1},Hx.evaluated={dynamicProps:!1,dynamicItems:!1},dm.evaluated={dynamicProps:!1,dynamicItems:!1},mm.evaluated={dynamicProps:!1,dynamicItems:!1},ym.evaluated={dynamicProps:!1,dynamicItems:!1},gm.evaluated={dynamicProps:!1,dynamicItems:!1},vm.evaluated={dynamicProps:!1,dynamicItems:!1},qs.evaluated={dynamicProps:!1,dynamicItems:!1},lo.evaluated={dynamicProps:!1,dynamicItems:!1},zs.evaluated={dynamicProps:!1,dynamicItems:!1};const Gx=HN.fullFormats.regex;function Pm(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Pm.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),typeof t=="string"){if(!Gx(t)){const l={instancePath:e,schemaPath:"#/format",keyword:"format",params:{format:"regex"},message:'must match format "regex"'};r===null?r=[l]:r.push(l),s++}}else{const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}return Pm.errors=r,s===0}function bm(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=bm.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),typeof t!="boolean"){const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};r===null?r=[l]:r.push(l),s++}return bm.errors=r,s===0}function qc(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=qc.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),Array.isArray(t)){if(t.length<1){const h={instancePath:e,schemaPath:"#/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items"};r===null?r=[h]:r.push(h),s++}const l=t.length;for(let h=0;h1){const h={};for(;f--;){let d=t[f];if(typeof d=="string"){if(typeof h[d]=="number"){u=h[d];const m={instancePath:e,schemaPath:"#/uniqueItems",keyword:"uniqueItems",params:{i:f,j:u},message:"must NOT have duplicate items (items ## "+u+" and "+f+" are identical)"};r===null?r=[m]:r.push(m),s++;break}h[d]=f}}}}else{const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"array"},message:"must be array"};r===null?r=[l]:r.push(l),s++}return qc.errors=r,s===0}function wm(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=wm.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),Array.isArray(t)){if(t.length<1){const f={instancePath:e,schemaPath:"#/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items"};r===null?r=[f]:r.push(f),s++}let l,u=t.length;if(u>1){e:for(;u--;)for(l=u;l--;)if(Wr(t[u],t[l])){const f={instancePath:e,schemaPath:"#/uniqueItems",keyword:"uniqueItems",params:{i:u,j:l},message:"must NOT have duplicate items (items ## "+l+" and "+u+" are identical)"};r===null?r=[f]:r.push(f),s++;break e}}}else{const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"array"},message:"must be array"};r===null?r=[l]:r.push(l),s++}return wm.errors=r,s===0}Pm.evaluated={dynamicProps:!1,dynamicItems:!1},bm.evaluated={dynamicProps:!1,dynamicItems:!1},qc.evaluated={items:!0,dynamicProps:!1,dynamicItems:!1},wm.evaluated={dynamicProps:!1,dynamicItems:!1};const Stt={enum:["array","boolean","integer","null","number","object","string"]};function wc(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=wc.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t!=="array"&&t!=="boolean"&&t!=="integer"&&t!=="null"&&t!=="number"&&t!=="object"&&t!=="string"){const l={instancePath:e,schemaPath:"#/enum",keyword:"enum",params:{allowedValues:Stt.enum},message:"must be equal to one of the allowed values"};r===null?r=[l]:r.push(l),s++}return wc.errors=r,s===0}function $m(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=$m.evaluated;c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0);const l=s;let u=!1;const f=s;wc(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o})||(r=r===null?wc.errors:r.concat(wc.errors),s=r.length);var h=f===s;u=u||h;const d=s;if(Array.isArray(t)){if(t.length<1){const P={instancePath:e,schemaPath:"#/anyOf/1/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items"};r===null?r=[P]:r.push(P),s++}const g=t.length;for(let P=0;P1){e:for(;v--;)for(b=v;b--;)if(Wr(t[v],t[b])){const P={instancePath:e,schemaPath:"#/anyOf/1/uniqueItems",keyword:"uniqueItems",params:{i:v,j:b},message:"must NOT have duplicate items (items ## "+b+" and "+v+" are identical)"};r===null?r=[P]:r.push(P),s++;break e}}}else{const g={instancePath:e,schemaPath:"#/anyOf/1/type",keyword:"type",params:{type:"array"},message:"must be array"};r===null?r=[g]:r.push(g),s++}if(h=d===s,u=u||h,h)var m=!0;if(u)s=l,r!==null&&(l?r.length=l:r=null);else{const g={instancePath:e,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};r===null?r=[g]:r.push(g),s++}return $m.errors=r,c.items=m,s===0}function Am(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Am.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){for(const l in t)if(l!=="name"&&l!=="namespace"&&l!=="prefix"&&l!=="attribute"&&l!=="wrapped"&&!Je.test(l)){const u={instancePath:e,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"};r===null?r=[u]:r.push(u),s++}if(t.name!==void 0&&typeof t.name!="string"){const l={instancePath:e+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}if(t.namespace!==void 0&&typeof t.namespace!="string"){const l={instancePath:e+"/namespace",schemaPath:"#/properties/namespace/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}if(t.prefix!==void 0&&typeof t.prefix!="string"){const l={instancePath:e+"/prefix",schemaPath:"#/properties/prefix/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}if(t.attribute!==void 0&&typeof t.attribute!="boolean"){const l={instancePath:e+"/attribute",schemaPath:"#/properties/attribute/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};r===null?r=[l]:r.push(l),s++}if(t.wrapped!==void 0&&typeof t.wrapped!="boolean"){const l={instancePath:e+"/wrapped",schemaPath:"#/properties/wrapped/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};r===null?r=[l]:r.push(l),s++}for(const l in t)Je.test(l)&&gr(t[l],{instancePath:e+"/"+l.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:t,parentDataProperty:l,rootData:a,dynamicAnchors:o})}else{const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[l]:r.push(l),s++}return Am.errors=r,s===0}wc.evaluated={dynamicProps:!1,dynamicItems:!1},$m.evaluated={dynamicProps:!1,dynamicItems:!0},Am.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};const bn={validate:vs};function vs(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=vs.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){for(const d in t)if(!ta.call(Att.properties,d)&&!Je.test(d)){const m={instancePath:e,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:d},message:"must NOT have additional properties"};r===null?r=[m]:r.push(m),s++}if(t.$ref!==void 0&&typeof t.$ref!="string"){const d={instancePath:e+"/$ref",schemaPath:"#/properties/%24ref/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}if(t.format!==void 0&&typeof t.format!="string"){const d={instancePath:e+"/format",schemaPath:"#/properties/format/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}if(t.title!==void 0&&(Lc(t.title,{instancePath:e+"/title",parentData:t,parentDataProperty:"title",rootData:a,dynamicAnchors:o})||(r=r===null?Lc.errors:r.concat(Lc.errors),s=r.length)),t.description!==void 0&&(Fc(t.description,{instancePath:e+"/description",parentData:t,parentDataProperty:"description",rootData:a,dynamicAnchors:o})||(r=r===null?Fc.errors:r.concat(Fc.errors),s=r.length)),t.default!==void 0&&Hx(t.default,{instancePath:e+"/default",parentData:t,parentDataProperty:"default",rootData:a,dynamicAnchors:o}),t.multipleOf!==void 0&&(dm(t.multipleOf,{instancePath:e+"/multipleOf",parentData:t,parentDataProperty:"multipleOf",rootData:a,dynamicAnchors:o})||(r=r===null?dm.errors:r.concat(dm.errors),s=r.length)),t.maximum!==void 0&&(mm(t.maximum,{instancePath:e+"/maximum",parentData:t,parentDataProperty:"maximum",rootData:a,dynamicAnchors:o})||(r=r===null?mm.errors:r.concat(mm.errors),s=r.length)),t.exclusiveMaximum!==void 0&&(ym(t.exclusiveMaximum,{instancePath:e+"/exclusiveMaximum",parentData:t,parentDataProperty:"exclusiveMaximum",rootData:a,dynamicAnchors:o})||(r=r===null?ym.errors:r.concat(ym.errors),s=r.length)),t.minimum!==void 0&&(gm(t.minimum,{instancePath:e+"/minimum",parentData:t,parentDataProperty:"minimum",rootData:a,dynamicAnchors:o})||(r=r===null?gm.errors:r.concat(gm.errors),s=r.length)),t.exclusiveMinimum!==void 0&&(vm(t.exclusiveMinimum,{instancePath:e+"/exclusiveMinimum",parentData:t,parentDataProperty:"exclusiveMinimum",rootData:a,dynamicAnchors:o})||(r=r===null?vm.errors:r.concat(vm.errors),s=r.length)),t.maxLength!==void 0&&(qs(t.maxLength,{instancePath:e+"/maxLength",parentData:t,parentDataProperty:"maxLength",rootData:a,dynamicAnchors:o})||(r=r===null?qs.errors:r.concat(qs.errors),s=r.length)),t.minLength!==void 0&&(zs(t.minLength,{instancePath:e+"/minLength",parentData:t,parentDataProperty:"minLength",rootData:a,dynamicAnchors:o})||(r=r===null?zs.errors:r.concat(zs.errors),s=r.length)),t.pattern!==void 0&&(Pm(t.pattern,{instancePath:e+"/pattern",parentData:t,parentDataProperty:"pattern",rootData:a,dynamicAnchors:o})||(r=r===null?Pm.errors:r.concat(Pm.errors),s=r.length)),t.maxItems!==void 0&&(qs(t.maxItems,{instancePath:e+"/maxItems",parentData:t,parentDataProperty:"maxItems",rootData:a,dynamicAnchors:o})||(r=r===null?qs.errors:r.concat(qs.errors),s=r.length)),t.minItems!==void 0&&(zs(t.minItems,{instancePath:e+"/minItems",parentData:t,parentDataProperty:"minItems",rootData:a,dynamicAnchors:o})||(r=r===null?zs.errors:r.concat(zs.errors),s=r.length)),t.uniqueItems!==void 0&&(bm(t.uniqueItems,{instancePath:e+"/uniqueItems",parentData:t,parentDataProperty:"uniqueItems",rootData:a,dynamicAnchors:o})||(r=r===null?bm.errors:r.concat(bm.errors),s=r.length)),t.maxProperties!==void 0&&(qs(t.maxProperties,{instancePath:e+"/maxProperties",parentData:t,parentDataProperty:"maxProperties",rootData:a,dynamicAnchors:o})||(r=r===null?qs.errors:r.concat(qs.errors),s=r.length)),t.minProperties!==void 0&&(zs(t.minProperties,{instancePath:e+"/minProperties",parentData:t,parentDataProperty:"minProperties",rootData:a,dynamicAnchors:o})||(r=r===null?zs.errors:r.concat(zs.errors),s=r.length)),t.required!==void 0&&(qc(t.required,{instancePath:e+"/required",parentData:t,parentDataProperty:"required",rootData:a,dynamicAnchors:o})||(r=r===null?qc.errors:r.concat(qc.errors),s=r.length)),t.enum!==void 0&&(wm(t.enum,{instancePath:e+"/enum",parentData:t,parentDataProperty:"enum",rootData:a,dynamicAnchors:o})||(r=r===null?wm.errors:r.concat(wm.errors),s=r.length)),t.additionalProperties!==void 0){let d=t.additionalProperties;const m=s;let g=!0;const b=s;if(!d||typeof d!="object"||Array.isArray(d)){const P={};r===null?r=[P]:r.push(P),s++}var l=b===s;let v;if(s=m,r!==null&&(m?r.length=m:r=null),l){const P=s;bn.validate(d,{instancePath:e+"/additionalProperties",parentData:t,parentDataProperty:"additionalProperties",rootData:a,dynamicAnchors:o})||(r=r===null?bn.validate.errors:r.concat(bn.validate.errors),s=r.length),g=l=P===s,v="then"}else{const P=s,A=s;let _=!0;const x=s;if(typeof d!="boolean"){const N={};r===null?r=[N]:r.push(N),s++}var u=x===s;if(s=A,r!==null&&(A?r.length=A:r=null),!u){const N=s,j={instancePath:e+"/additionalProperties",schemaPath:"#/properties/additionalProperties/else/else/not",keyword:"not",params:{},message:"must NOT be valid"};if(r===null?r=[j]:r.push(j),s++,s>0){const I=[];for(const L of r)L.keyword==="errorMessage"||L.emUsed||L.instancePath!==e+"/additionalProperties"&&(L.instancePath.indexOf(e+"/additionalProperties")!==0||L.instancePath[e+21]!=="/")||L.schemaPath.indexOf("#/properties/additionalProperties/else/else")!==0||L.schemaPath[43]!=="/"||(I.push(L),L.emUsed=!0);if(I.length){const L={instancePath:e+"/additionalProperties",schemaPath:"#/properties/additionalProperties/else/else/errorMessage",keyword:"errorMessage",params:{errors:I},message:'"additionalProperties" property must be a valid schema'};r===null?r=[L]:r.push(L),s++}const E=[];for(const L of r)L.emUsed||E.push(L);r=E,s=E.length}_=u=N===s}if(!_){const N={instancePath:e+"/additionalProperties",schemaPath:"#/properties/additionalProperties/else/if",keyword:"if",params:{failingKeyword:"else"},message:'must match "else" schema'};r===null?r=[N]:r.push(N),s++}g=l=P===s,v="else"}if(!g){const P={instancePath:e+"/additionalProperties",schemaPath:"#/properties/additionalProperties/if",keyword:"if",params:{failingKeyword:v},message:'must match "'+v+'" schema'};r===null?r=[P]:r.push(P),s++}}if(t.type!==void 0&&($m(t.type,{instancePath:e+"/type",parentData:t,parentDataProperty:"type",rootData:a,dynamicAnchors:o})||(r=r===null?$m.errors:r.concat($m.errors),s=r.length)),t.items!==void 0){let d=t.items;const m=s;let g=!1;const b=s;if(bn.validate(d,{instancePath:e+"/items",parentData:t,parentDataProperty:"items",rootData:a,dynamicAnchors:o}))var f=bn.validate.evaluated.items;else r=r===null?bn.validate.errors:r.concat(bn.validate.errors),s=r.length;var h=b===s;g=g||h;const v=s;if(Array.isArray(d)){if(d.length<1){const A={instancePath:e+"/items",schemaPath:"#/properties/items/anyOf/1/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items"};r===null?r=[A]:r.push(A),s++}const P=d.length;for(let A=0;A=",limit:0},message:"must be >= 0"};r===null?r=[l]:r.push(l),s++}return Nn.errors=r,s===0}function Ln(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Ln.evaluated;return c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),lo(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o})||(r=r===null?lo.errors:r.concat(lo.errors),s=r.length),Ln.errors=r,s===0}function Fn(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Fn.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),typeof t=="string"){if(!Gx(t)){const l={instancePath:e,schemaPath:"#/format",keyword:"format",params:{format:"regex"},message:'must match format "regex"'};r===null?r=[l]:r.push(l),s++}}else{const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}return Fn.errors=r,s===0}function qn(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=qn.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),typeof t!="number"||t%1||isNaN(t)){const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"integer"},message:"must be integer"};r===null?r=[l]:r.push(l),s++}if(typeof t=="number"&&(t<0||isNaN(t))){const l={instancePath:e,schemaPath:"#/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0"};r===null?r=[l]:r.push(l),s++}return qn.errors=r,s===0}function zn(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=zn.evaluated;return c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),lo(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o})||(r=r===null?lo.errors:r.concat(lo.errors),s=r.length),zn.errors=r,s===0}function Un(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Un.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),typeof t!="boolean"){const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};r===null?r=[l]:r.push(l),s++}return Un.errors=r,s===0}function Bn(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Bn.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),Array.isArray(t)){if(t.length<1){const f={instancePath:e,schemaPath:"#/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items"};r===null?r=[f]:r.push(f),s++}let l,u=t.length;if(u>1){e:for(;u--;)for(l=u;l--;)if(Wr(t[u],t[l])){const f={instancePath:e,schemaPath:"#/uniqueItems",keyword:"uniqueItems",params:{i:u,j:l},message:"must NOT have duplicate items (items ## "+l+" and "+u+" are identical)"};r===null?r=[f]:r.push(f),s++;break e}}}else{const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"array"},message:"must be array"};r===null?r=[l]:r.push(l),s++}return Bn.errors=r,s===0}function Vn(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Vn.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),typeof t=="number"){if(t<=0||isNaN(t)){const l={instancePath:e,schemaPath:"#/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison:">",limit:0},message:"must be > 0"};r===null?r=[l]:r.push(l),s++}}else{const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"number"},message:"must be number"};r===null?r=[l]:r.push(l),s++}return Vn.errors=r,s===0}function li(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=li.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){for(const l in t)if(!ta.call(YV.properties,l)&&!Je.test(l)){const u={instancePath:e,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"};r===null?r=[u]:r.push(u),s++}if(t.type!==void 0){let l=t.type;if(l!=="string"&&l!=="number"&&l!=="integer"&&l!=="boolean"&&l!=="array"){const u={instancePath:e+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:YV.properties.type.enum},message:"must be equal to one of the allowed values"};r===null?r=[u]:r.push(u),s++}}if(t.format!==void 0&&typeof t.format!="string"){const l={instancePath:e+"/format",schemaPath:"#/properties/format/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}t.items!==void 0&&(uI.validate(t.items,{instancePath:e+"/items",parentData:t,parentDataProperty:"items",rootData:a,dynamicAnchors:o})||(r=r===null?uI.validate.errors:r.concat(uI.validate.errors),s=r.length)),t.collectionFormat!==void 0&&($a(t.collectionFormat,{instancePath:e+"/collectionFormat",parentData:t,parentDataProperty:"collectionFormat",rootData:a,dynamicAnchors:o})||(r=r===null?$a.errors:r.concat($a.errors),s=r.length)),t.default!==void 0&&Hf(t.default,{instancePath:e+"/default",parentData:t,parentDataProperty:"default",rootData:a,dynamicAnchors:o}),t.maximum!==void 0&&(Tn(t.maximum,{instancePath:e+"/maximum",parentData:t,parentDataProperty:"maximum",rootData:a,dynamicAnchors:o})||(r=r===null?Tn.errors:r.concat(Tn.errors),s=r.length)),t.exclusiveMaximum!==void 0&&(jn(t.exclusiveMaximum,{instancePath:e+"/exclusiveMaximum",parentData:t,parentDataProperty:"exclusiveMaximum",rootData:a,dynamicAnchors:o})||(r=r===null?jn.errors:r.concat(jn.errors),s=r.length)),t.minimum!==void 0&&(Mn(t.minimum,{instancePath:e+"/minimum",parentData:t,parentDataProperty:"minimum",rootData:a,dynamicAnchors:o})||(r=r===null?Mn.errors:r.concat(Mn.errors),s=r.length)),t.exclusiveMinimum!==void 0&&(Rn(t.exclusiveMinimum,{instancePath:e+"/exclusiveMinimum",parentData:t,parentDataProperty:"exclusiveMinimum",rootData:a,dynamicAnchors:o})||(r=r===null?Rn.errors:r.concat(Rn.errors),s=r.length)),t.maxLength!==void 0&&(Nn(t.maxLength,{instancePath:e+"/maxLength",parentData:t,parentDataProperty:"maxLength",rootData:a,dynamicAnchors:o})||(r=r===null?Nn.errors:r.concat(Nn.errors),s=r.length)),t.minLength!==void 0&&(Ln(t.minLength,{instancePath:e+"/minLength",parentData:t,parentDataProperty:"minLength",rootData:a,dynamicAnchors:o})||(r=r===null?Ln.errors:r.concat(Ln.errors),s=r.length)),t.pattern!==void 0&&(Fn(t.pattern,{instancePath:e+"/pattern",parentData:t,parentDataProperty:"pattern",rootData:a,dynamicAnchors:o})||(r=r===null?Fn.errors:r.concat(Fn.errors),s=r.length)),t.maxItems!==void 0&&(qn(t.maxItems,{instancePath:e+"/maxItems",parentData:t,parentDataProperty:"maxItems",rootData:a,dynamicAnchors:o})||(r=r===null?qn.errors:r.concat(qn.errors),s=r.length)),t.minItems!==void 0&&(zn(t.minItems,{instancePath:e+"/minItems",parentData:t,parentDataProperty:"minItems",rootData:a,dynamicAnchors:o})||(r=r===null?zn.errors:r.concat(zn.errors),s=r.length)),t.uniqueItems!==void 0&&(Un(t.uniqueItems,{instancePath:e+"/uniqueItems",parentData:t,parentDataProperty:"uniqueItems",rootData:a,dynamicAnchors:o})||(r=r===null?Un.errors:r.concat(Un.errors),s=r.length)),t.enum!==void 0&&(Bn(t.enum,{instancePath:e+"/enum",parentData:t,parentDataProperty:"enum",rootData:a,dynamicAnchors:o})||(r=r===null?Bn.errors:r.concat(Bn.errors),s=r.length)),t.multipleOf!==void 0&&(Vn(t.multipleOf,{instancePath:e+"/multipleOf",parentData:t,parentDataProperty:"multipleOf",rootData:a,dynamicAnchors:o})||(r=r===null?Vn.errors:r.concat(Vn.errors),s=r.length));for(const l in t)Je.test(l)&&gr(t[l],{instancePath:e+"/"+l.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:t,parentDataProperty:l,rootData:a,dynamicAnchors:o})}else{const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[l]:r.push(l),s++}return li.errors=r,s===0}function _m(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=_m.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){for(const l in t)if(!ta.call(cI.properties,l)&&!Je.test(l)){const u={instancePath:e,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"};r===null?r=[u]:r.push(u),s++}if(t.required!==void 0&&typeof t.required!="boolean"){const l={instancePath:e+"/required",schemaPath:"#/properties/required/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};r===null?r=[l]:r.push(l),s++}if(t.in!==void 0){let l=t.in;if(typeof l!="string"){const u={instancePath:e+"/in",schemaPath:"#/properties/in/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[u]:r.push(u),s++}if(l!=="header"){const u={instancePath:e+"/in",schemaPath:"#/properties/in/enum",keyword:"enum",params:{allowedValues:cI.properties.in.enum},message:"must be equal to one of the allowed values"};r===null?r=[u]:r.push(u),s++}}if(t.description!==void 0&&typeof t.description!="string"){const l={instancePath:e+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}if(t.name!==void 0&&typeof t.name!="string"){const l={instancePath:e+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}if(t.type!==void 0){let l=t.type;if(typeof l!="string"){const u={instancePath:e+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[u]:r.push(u),s++}if(l!=="string"&&l!=="number"&&l!=="boolean"&&l!=="integer"&&l!=="array"){const u={instancePath:e+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:cI.properties.type.enum},message:"must be equal to one of the allowed values"};r===null?r=[u]:r.push(u),s++}}if(t.format!==void 0&&typeof t.format!="string"){const l={instancePath:e+"/format",schemaPath:"#/properties/format/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}t.items!==void 0&&(li(t.items,{instancePath:e+"/items",parentData:t,parentDataProperty:"items",rootData:a,dynamicAnchors:o})||(r=r===null?li.errors:r.concat(li.errors),s=r.length)),t.collectionFormat!==void 0&&($a(t.collectionFormat,{instancePath:e+"/collectionFormat",parentData:t,parentDataProperty:"collectionFormat",rootData:a,dynamicAnchors:o})||(r=r===null?$a.errors:r.concat($a.errors),s=r.length)),t.default!==void 0&&Hf(t.default,{instancePath:e+"/default",parentData:t,parentDataProperty:"default",rootData:a,dynamicAnchors:o}),t.maximum!==void 0&&(Tn(t.maximum,{instancePath:e+"/maximum",parentData:t,parentDataProperty:"maximum",rootData:a,dynamicAnchors:o})||(r=r===null?Tn.errors:r.concat(Tn.errors),s=r.length)),t.exclusiveMaximum!==void 0&&(jn(t.exclusiveMaximum,{instancePath:e+"/exclusiveMaximum",parentData:t,parentDataProperty:"exclusiveMaximum",rootData:a,dynamicAnchors:o})||(r=r===null?jn.errors:r.concat(jn.errors),s=r.length)),t.minimum!==void 0&&(Mn(t.minimum,{instancePath:e+"/minimum",parentData:t,parentDataProperty:"minimum",rootData:a,dynamicAnchors:o})||(r=r===null?Mn.errors:r.concat(Mn.errors),s=r.length)),t.exclusiveMinimum!==void 0&&(Rn(t.exclusiveMinimum,{instancePath:e+"/exclusiveMinimum",parentData:t,parentDataProperty:"exclusiveMinimum",rootData:a,dynamicAnchors:o})||(r=r===null?Rn.errors:r.concat(Rn.errors),s=r.length)),t.maxLength!==void 0&&(Nn(t.maxLength,{instancePath:e+"/maxLength",parentData:t,parentDataProperty:"maxLength",rootData:a,dynamicAnchors:o})||(r=r===null?Nn.errors:r.concat(Nn.errors),s=r.length)),t.minLength!==void 0&&(Ln(t.minLength,{instancePath:e+"/minLength",parentData:t,parentDataProperty:"minLength",rootData:a,dynamicAnchors:o})||(r=r===null?Ln.errors:r.concat(Ln.errors),s=r.length)),t.pattern!==void 0&&(Fn(t.pattern,{instancePath:e+"/pattern",parentData:t,parentDataProperty:"pattern",rootData:a,dynamicAnchors:o})||(r=r===null?Fn.errors:r.concat(Fn.errors),s=r.length)),t.maxItems!==void 0&&(qn(t.maxItems,{instancePath:e+"/maxItems",parentData:t,parentDataProperty:"maxItems",rootData:a,dynamicAnchors:o})||(r=r===null?qn.errors:r.concat(qn.errors),s=r.length)),t.minItems!==void 0&&(zn(t.minItems,{instancePath:e+"/minItems",parentData:t,parentDataProperty:"minItems",rootData:a,dynamicAnchors:o})||(r=r===null?zn.errors:r.concat(zn.errors),s=r.length)),t.uniqueItems!==void 0&&(Un(t.uniqueItems,{instancePath:e+"/uniqueItems",parentData:t,parentDataProperty:"uniqueItems",rootData:a,dynamicAnchors:o})||(r=r===null?Un.errors:r.concat(Un.errors),s=r.length)),t.enum!==void 0&&(Bn(t.enum,{instancePath:e+"/enum",parentData:t,parentDataProperty:"enum",rootData:a,dynamicAnchors:o})||(r=r===null?Bn.errors:r.concat(Bn.errors),s=r.length)),t.multipleOf!==void 0&&(Vn(t.multipleOf,{instancePath:e+"/multipleOf",parentData:t,parentDataProperty:"multipleOf",rootData:a,dynamicAnchors:o})||(r=r===null?Vn.errors:r.concat(Vn.errors),s=r.length));for(const l in t)Je.test(l)&&gr(t[l],{instancePath:e+"/"+l.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:t,parentDataProperty:l,rootData:a,dynamicAnchors:o})}return _m.errors=r,s===0}$a.evaluated={dynamicProps:!1,dynamicItems:!1},Hf.evaluated={dynamicProps:!1,dynamicItems:!1},Tn.evaluated={dynamicProps:!1,dynamicItems:!1},jn.evaluated={dynamicProps:!1,dynamicItems:!1},Mn.evaluated={dynamicProps:!1,dynamicItems:!1},Rn.evaluated={dynamicProps:!1,dynamicItems:!1},Nn.evaluated={dynamicProps:!1,dynamicItems:!1},Ln.evaluated={dynamicProps:!1,dynamicItems:!1},Fn.evaluated={dynamicProps:!1,dynamicItems:!1},qn.evaluated={dynamicProps:!1,dynamicItems:!1},zn.evaluated={dynamicProps:!1,dynamicItems:!1},Un.evaluated={dynamicProps:!1,dynamicItems:!1},Bn.evaluated={dynamicProps:!1,dynamicItems:!1},Vn.evaluated={dynamicProps:!1,dynamicItems:!1},li.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},_m.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};const fI={additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{required:{type:"boolean",description:"Determines whether or not this parameter is required or optional.",default:!1},in:{type:"string",description:"Determines the location of the parameter.",enum:["formData"]},description:{type:"string",description:"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},name:{type:"string",description:"The name of the parameter."},allowEmptyValue:{type:"boolean",default:!1,description:"allows sending a parameter by name only or with an empty value."},type:{type:"string",enum:["string","number","boolean","integer","array","file"]},format:{type:"string"},items:{$ref:"#/definitions/primitivesItems"},collectionFormat:{$ref:"#/definitions/collectionFormatWithMulti"},default:{$ref:"#/definitions/default"},maximum:{$ref:"#/definitions/maximum"},exclusiveMaximum:{$ref:"#/definitions/exclusiveMaximum"},minimum:{$ref:"#/definitions/minimum"},exclusiveMinimum:{$ref:"#/definitions/exclusiveMinimum"},maxLength:{$ref:"#/definitions/maxLength"},minLength:{$ref:"#/definitions/minLength"},pattern:{$ref:"#/definitions/pattern"},maxItems:{$ref:"#/definitions/maxItems"},minItems:{$ref:"#/definitions/minItems"},uniqueItems:{$ref:"#/definitions/uniqueItems"},enum:{$ref:"#/definitions/enum"},multipleOf:{$ref:"#/definitions/multipleOf"}}},xtt={enum:["csv","ssv","tsv","pipes","multi"],default:"csv"};function zc(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=zc.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t!=="csv"&&t!=="ssv"&&t!=="tsv"&&t!=="pipes"&&t!=="multi"){const l={instancePath:e,schemaPath:"#/enum",keyword:"enum",params:{allowedValues:xtt.enum},message:"must be equal to one of the allowed values"};r===null?r=[l]:r.push(l),s++}return zc.errors=r,s===0}function xm(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=xm.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){for(const l in t)if(!ta.call(fI.properties,l)&&!Je.test(l)){const u={instancePath:e,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"};r===null?r=[u]:r.push(u),s++}if(t.required!==void 0&&typeof t.required!="boolean"){const l={instancePath:e+"/required",schemaPath:"#/properties/required/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};r===null?r=[l]:r.push(l),s++}if(t.in!==void 0){let l=t.in;if(typeof l!="string"){const u={instancePath:e+"/in",schemaPath:"#/properties/in/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[u]:r.push(u),s++}if(l!=="formData"){const u={instancePath:e+"/in",schemaPath:"#/properties/in/enum",keyword:"enum",params:{allowedValues:fI.properties.in.enum},message:"must be equal to one of the allowed values"};r===null?r=[u]:r.push(u),s++}}if(t.description!==void 0&&typeof t.description!="string"){const l={instancePath:e+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}if(t.name!==void 0&&typeof t.name!="string"){const l={instancePath:e+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}if(t.allowEmptyValue!==void 0&&typeof t.allowEmptyValue!="boolean"){const l={instancePath:e+"/allowEmptyValue",schemaPath:"#/properties/allowEmptyValue/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};r===null?r=[l]:r.push(l),s++}if(t.type!==void 0){let l=t.type;if(typeof l!="string"){const u={instancePath:e+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[u]:r.push(u),s++}if(l!=="string"&&l!=="number"&&l!=="boolean"&&l!=="integer"&&l!=="array"&&l!=="file"){const u={instancePath:e+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:fI.properties.type.enum},message:"must be equal to one of the allowed values"};r===null?r=[u]:r.push(u),s++}}if(t.format!==void 0&&typeof t.format!="string"){const l={instancePath:e+"/format",schemaPath:"#/properties/format/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}t.items!==void 0&&(li(t.items,{instancePath:e+"/items",parentData:t,parentDataProperty:"items",rootData:a,dynamicAnchors:o})||(r=r===null?li.errors:r.concat(li.errors),s=r.length)),t.collectionFormat!==void 0&&(zc(t.collectionFormat,{instancePath:e+"/collectionFormat",parentData:t,parentDataProperty:"collectionFormat",rootData:a,dynamicAnchors:o})||(r=r===null?zc.errors:r.concat(zc.errors),s=r.length)),t.default!==void 0&&Hf(t.default,{instancePath:e+"/default",parentData:t,parentDataProperty:"default",rootData:a,dynamicAnchors:o}),t.maximum!==void 0&&(Tn(t.maximum,{instancePath:e+"/maximum",parentData:t,parentDataProperty:"maximum",rootData:a,dynamicAnchors:o})||(r=r===null?Tn.errors:r.concat(Tn.errors),s=r.length)),t.exclusiveMaximum!==void 0&&(jn(t.exclusiveMaximum,{instancePath:e+"/exclusiveMaximum",parentData:t,parentDataProperty:"exclusiveMaximum",rootData:a,dynamicAnchors:o})||(r=r===null?jn.errors:r.concat(jn.errors),s=r.length)),t.minimum!==void 0&&(Mn(t.minimum,{instancePath:e+"/minimum",parentData:t,parentDataProperty:"minimum",rootData:a,dynamicAnchors:o})||(r=r===null?Mn.errors:r.concat(Mn.errors),s=r.length)),t.exclusiveMinimum!==void 0&&(Rn(t.exclusiveMinimum,{instancePath:e+"/exclusiveMinimum",parentData:t,parentDataProperty:"exclusiveMinimum",rootData:a,dynamicAnchors:o})||(r=r===null?Rn.errors:r.concat(Rn.errors),s=r.length)),t.maxLength!==void 0&&(Nn(t.maxLength,{instancePath:e+"/maxLength",parentData:t,parentDataProperty:"maxLength",rootData:a,dynamicAnchors:o})||(r=r===null?Nn.errors:r.concat(Nn.errors),s=r.length)),t.minLength!==void 0&&(Ln(t.minLength,{instancePath:e+"/minLength",parentData:t,parentDataProperty:"minLength",rootData:a,dynamicAnchors:o})||(r=r===null?Ln.errors:r.concat(Ln.errors),s=r.length)),t.pattern!==void 0&&(Fn(t.pattern,{instancePath:e+"/pattern",parentData:t,parentDataProperty:"pattern",rootData:a,dynamicAnchors:o})||(r=r===null?Fn.errors:r.concat(Fn.errors),s=r.length)),t.maxItems!==void 0&&(qn(t.maxItems,{instancePath:e+"/maxItems",parentData:t,parentDataProperty:"maxItems",rootData:a,dynamicAnchors:o})||(r=r===null?qn.errors:r.concat(qn.errors),s=r.length)),t.minItems!==void 0&&(zn(t.minItems,{instancePath:e+"/minItems",parentData:t,parentDataProperty:"minItems",rootData:a,dynamicAnchors:o})||(r=r===null?zn.errors:r.concat(zn.errors),s=r.length)),t.uniqueItems!==void 0&&(Un(t.uniqueItems,{instancePath:e+"/uniqueItems",parentData:t,parentDataProperty:"uniqueItems",rootData:a,dynamicAnchors:o})||(r=r===null?Un.errors:r.concat(Un.errors),s=r.length)),t.enum!==void 0&&(Bn(t.enum,{instancePath:e+"/enum",parentData:t,parentDataProperty:"enum",rootData:a,dynamicAnchors:o})||(r=r===null?Bn.errors:r.concat(Bn.errors),s=r.length)),t.multipleOf!==void 0&&(Vn(t.multipleOf,{instancePath:e+"/multipleOf",parentData:t,parentDataProperty:"multipleOf",rootData:a,dynamicAnchors:o})||(r=r===null?Vn.errors:r.concat(Vn.errors),s=r.length));for(const l in t)Je.test(l)&&gr(t[l],{instancePath:e+"/"+l.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:t,parentDataProperty:l,rootData:a,dynamicAnchors:o})}return xm.errors=r,s===0}zc.evaluated={dynamicProps:!1,dynamicItems:!1},xm.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};const pI={additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{required:{type:"boolean",description:"Determines whether or not this parameter is required or optional.",default:!1},in:{type:"string",description:"Determines the location of the parameter.",enum:["query"]},description:{type:"string",description:"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},name:{type:"string",description:"The name of the parameter."},allowEmptyValue:{type:"boolean",default:!1,description:"allows sending a parameter by name only or with an empty value."},type:{type:"string",enum:["string","number","boolean","integer","array"]},format:{type:"string"},items:{$ref:"#/definitions/primitivesItems"},collectionFormat:{$ref:"#/definitions/collectionFormatWithMulti"},default:{$ref:"#/definitions/default"},maximum:{$ref:"#/definitions/maximum"},exclusiveMaximum:{$ref:"#/definitions/exclusiveMaximum"},minimum:{$ref:"#/definitions/minimum"},exclusiveMinimum:{$ref:"#/definitions/exclusiveMinimum"},maxLength:{$ref:"#/definitions/maxLength"},minLength:{$ref:"#/definitions/minLength"},pattern:{$ref:"#/definitions/pattern"},maxItems:{$ref:"#/definitions/maxItems"},minItems:{$ref:"#/definitions/minItems"},uniqueItems:{$ref:"#/definitions/uniqueItems"},enum:{$ref:"#/definitions/enum"},multipleOf:{$ref:"#/definitions/multipleOf"}}};function Dm(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Dm.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){for(const l in t)if(!ta.call(pI.properties,l)&&!Je.test(l)){const u={instancePath:e,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"};r===null?r=[u]:r.push(u),s++}if(t.required!==void 0&&typeof t.required!="boolean"){const l={instancePath:e+"/required",schemaPath:"#/properties/required/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};r===null?r=[l]:r.push(l),s++}if(t.in!==void 0){let l=t.in;if(typeof l!="string"){const u={instancePath:e+"/in",schemaPath:"#/properties/in/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[u]:r.push(u),s++}if(l!=="query"){const u={instancePath:e+"/in",schemaPath:"#/properties/in/enum",keyword:"enum",params:{allowedValues:pI.properties.in.enum},message:"must be equal to one of the allowed values"};r===null?r=[u]:r.push(u),s++}}if(t.description!==void 0&&typeof t.description!="string"){const l={instancePath:e+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}if(t.name!==void 0&&typeof t.name!="string"){const l={instancePath:e+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}if(t.allowEmptyValue!==void 0&&typeof t.allowEmptyValue!="boolean"){const l={instancePath:e+"/allowEmptyValue",schemaPath:"#/properties/allowEmptyValue/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};r===null?r=[l]:r.push(l),s++}if(t.type!==void 0){let l=t.type;if(typeof l!="string"){const u={instancePath:e+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[u]:r.push(u),s++}if(l!=="string"&&l!=="number"&&l!=="boolean"&&l!=="integer"&&l!=="array"){const u={instancePath:e+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:pI.properties.type.enum},message:"must be equal to one of the allowed values"};r===null?r=[u]:r.push(u),s++}}if(t.format!==void 0&&typeof t.format!="string"){const l={instancePath:e+"/format",schemaPath:"#/properties/format/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}t.items!==void 0&&(li(t.items,{instancePath:e+"/items",parentData:t,parentDataProperty:"items",rootData:a,dynamicAnchors:o})||(r=r===null?li.errors:r.concat(li.errors),s=r.length)),t.collectionFormat!==void 0&&(zc(t.collectionFormat,{instancePath:e+"/collectionFormat",parentData:t,parentDataProperty:"collectionFormat",rootData:a,dynamicAnchors:o})||(r=r===null?zc.errors:r.concat(zc.errors),s=r.length)),t.default!==void 0&&Hf(t.default,{instancePath:e+"/default",parentData:t,parentDataProperty:"default",rootData:a,dynamicAnchors:o}),t.maximum!==void 0&&(Tn(t.maximum,{instancePath:e+"/maximum",parentData:t,parentDataProperty:"maximum",rootData:a,dynamicAnchors:o})||(r=r===null?Tn.errors:r.concat(Tn.errors),s=r.length)),t.exclusiveMaximum!==void 0&&(jn(t.exclusiveMaximum,{instancePath:e+"/exclusiveMaximum",parentData:t,parentDataProperty:"exclusiveMaximum",rootData:a,dynamicAnchors:o})||(r=r===null?jn.errors:r.concat(jn.errors),s=r.length)),t.minimum!==void 0&&(Mn(t.minimum,{instancePath:e+"/minimum",parentData:t,parentDataProperty:"minimum",rootData:a,dynamicAnchors:o})||(r=r===null?Mn.errors:r.concat(Mn.errors),s=r.length)),t.exclusiveMinimum!==void 0&&(Rn(t.exclusiveMinimum,{instancePath:e+"/exclusiveMinimum",parentData:t,parentDataProperty:"exclusiveMinimum",rootData:a,dynamicAnchors:o})||(r=r===null?Rn.errors:r.concat(Rn.errors),s=r.length)),t.maxLength!==void 0&&(Nn(t.maxLength,{instancePath:e+"/maxLength",parentData:t,parentDataProperty:"maxLength",rootData:a,dynamicAnchors:o})||(r=r===null?Nn.errors:r.concat(Nn.errors),s=r.length)),t.minLength!==void 0&&(Ln(t.minLength,{instancePath:e+"/minLength",parentData:t,parentDataProperty:"minLength",rootData:a,dynamicAnchors:o})||(r=r===null?Ln.errors:r.concat(Ln.errors),s=r.length)),t.pattern!==void 0&&(Fn(t.pattern,{instancePath:e+"/pattern",parentData:t,parentDataProperty:"pattern",rootData:a,dynamicAnchors:o})||(r=r===null?Fn.errors:r.concat(Fn.errors),s=r.length)),t.maxItems!==void 0&&(qn(t.maxItems,{instancePath:e+"/maxItems",parentData:t,parentDataProperty:"maxItems",rootData:a,dynamicAnchors:o})||(r=r===null?qn.errors:r.concat(qn.errors),s=r.length)),t.minItems!==void 0&&(zn(t.minItems,{instancePath:e+"/minItems",parentData:t,parentDataProperty:"minItems",rootData:a,dynamicAnchors:o})||(r=r===null?zn.errors:r.concat(zn.errors),s=r.length)),t.uniqueItems!==void 0&&(Un(t.uniqueItems,{instancePath:e+"/uniqueItems",parentData:t,parentDataProperty:"uniqueItems",rootData:a,dynamicAnchors:o})||(r=r===null?Un.errors:r.concat(Un.errors),s=r.length)),t.enum!==void 0&&(Bn(t.enum,{instancePath:e+"/enum",parentData:t,parentDataProperty:"enum",rootData:a,dynamicAnchors:o})||(r=r===null?Bn.errors:r.concat(Bn.errors),s=r.length)),t.multipleOf!==void 0&&(Vn(t.multipleOf,{instancePath:e+"/multipleOf",parentData:t,parentDataProperty:"multipleOf",rootData:a,dynamicAnchors:o})||(r=r===null?Vn.errors:r.concat(Vn.errors),s=r.length));for(const l in t)Je.test(l)&&gr(t[l],{instancePath:e+"/"+l.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:t,parentDataProperty:l,rootData:a,dynamicAnchors:o})}return Dm.errors=r,s===0}Dm.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};const t$={additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},required:["required"],properties:{required:{type:"boolean",enum:[!0],description:"Determines whether or not this parameter is required or optional."},in:{type:"string",description:"Determines the location of the parameter.",enum:["path"]},description:{type:"string",description:"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},name:{type:"string",description:"The name of the parameter."},type:{type:"string",enum:["string","number","boolean","integer","array"]},format:{type:"string"},items:{$ref:"#/definitions/primitivesItems"},collectionFormat:{$ref:"#/definitions/collectionFormat"},default:{$ref:"#/definitions/default"},maximum:{$ref:"#/definitions/maximum"},exclusiveMaximum:{$ref:"#/definitions/exclusiveMaximum"},minimum:{$ref:"#/definitions/minimum"},exclusiveMinimum:{$ref:"#/definitions/exclusiveMinimum"},maxLength:{$ref:"#/definitions/maxLength"},minLength:{$ref:"#/definitions/minLength"},pattern:{$ref:"#/definitions/pattern"},maxItems:{$ref:"#/definitions/maxItems"},minItems:{$ref:"#/definitions/minItems"},uniqueItems:{$ref:"#/definitions/uniqueItems"},enum:{$ref:"#/definitions/enum"},multipleOf:{$ref:"#/definitions/multipleOf"}}};function km(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=km.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.required===void 0){const l={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"required"},message:"must have required property 'required'"};r===null?r=[l]:r.push(l),s++}for(const l in t)if(!ta.call(t$.properties,l)&&!Je.test(l)){const u={instancePath:e,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"};r===null?r=[u]:r.push(u),s++}if(t.required!==void 0){let l=t.required;if(typeof l!="boolean"){const u={instancePath:e+"/required",schemaPath:"#/properties/required/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};r===null?r=[u]:r.push(u),s++}if(l!==!0){const u={instancePath:e+"/required",schemaPath:"#/properties/required/enum",keyword:"enum",params:{allowedValues:t$.properties.required.enum},message:"must be equal to one of the allowed values"};r===null?r=[u]:r.push(u),s++}}if(t.in!==void 0){let l=t.in;if(typeof l!="string"){const u={instancePath:e+"/in",schemaPath:"#/properties/in/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[u]:r.push(u),s++}if(l!=="path"){const u={instancePath:e+"/in",schemaPath:"#/properties/in/enum",keyword:"enum",params:{allowedValues:t$.properties.in.enum},message:"must be equal to one of the allowed values"};r===null?r=[u]:r.push(u),s++}}if(t.description!==void 0&&typeof t.description!="string"){const l={instancePath:e+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}if(t.name!==void 0&&typeof t.name!="string"){const l={instancePath:e+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}if(t.type!==void 0){let l=t.type;if(typeof l!="string"){const u={instancePath:e+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[u]:r.push(u),s++}if(l!=="string"&&l!=="number"&&l!=="boolean"&&l!=="integer"&&l!=="array"){const u={instancePath:e+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:t$.properties.type.enum},message:"must be equal to one of the allowed values"};r===null?r=[u]:r.push(u),s++}}if(t.format!==void 0&&typeof t.format!="string"){const l={instancePath:e+"/format",schemaPath:"#/properties/format/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}t.items!==void 0&&(li(t.items,{instancePath:e+"/items",parentData:t,parentDataProperty:"items",rootData:a,dynamicAnchors:o})||(r=r===null?li.errors:r.concat(li.errors),s=r.length)),t.collectionFormat!==void 0&&($a(t.collectionFormat,{instancePath:e+"/collectionFormat",parentData:t,parentDataProperty:"collectionFormat",rootData:a,dynamicAnchors:o})||(r=r===null?$a.errors:r.concat($a.errors),s=r.length)),t.default!==void 0&&Hf(t.default,{instancePath:e+"/default",parentData:t,parentDataProperty:"default",rootData:a,dynamicAnchors:o}),t.maximum!==void 0&&(Tn(t.maximum,{instancePath:e+"/maximum",parentData:t,parentDataProperty:"maximum",rootData:a,dynamicAnchors:o})||(r=r===null?Tn.errors:r.concat(Tn.errors),s=r.length)),t.exclusiveMaximum!==void 0&&(jn(t.exclusiveMaximum,{instancePath:e+"/exclusiveMaximum",parentData:t,parentDataProperty:"exclusiveMaximum",rootData:a,dynamicAnchors:o})||(r=r===null?jn.errors:r.concat(jn.errors),s=r.length)),t.minimum!==void 0&&(Mn(t.minimum,{instancePath:e+"/minimum",parentData:t,parentDataProperty:"minimum",rootData:a,dynamicAnchors:o})||(r=r===null?Mn.errors:r.concat(Mn.errors),s=r.length)),t.exclusiveMinimum!==void 0&&(Rn(t.exclusiveMinimum,{instancePath:e+"/exclusiveMinimum",parentData:t,parentDataProperty:"exclusiveMinimum",rootData:a,dynamicAnchors:o})||(r=r===null?Rn.errors:r.concat(Rn.errors),s=r.length)),t.maxLength!==void 0&&(Nn(t.maxLength,{instancePath:e+"/maxLength",parentData:t,parentDataProperty:"maxLength",rootData:a,dynamicAnchors:o})||(r=r===null?Nn.errors:r.concat(Nn.errors),s=r.length)),t.minLength!==void 0&&(Ln(t.minLength,{instancePath:e+"/minLength",parentData:t,parentDataProperty:"minLength",rootData:a,dynamicAnchors:o})||(r=r===null?Ln.errors:r.concat(Ln.errors),s=r.length)),t.pattern!==void 0&&(Fn(t.pattern,{instancePath:e+"/pattern",parentData:t,parentDataProperty:"pattern",rootData:a,dynamicAnchors:o})||(r=r===null?Fn.errors:r.concat(Fn.errors),s=r.length)),t.maxItems!==void 0&&(qn(t.maxItems,{instancePath:e+"/maxItems",parentData:t,parentDataProperty:"maxItems",rootData:a,dynamicAnchors:o})||(r=r===null?qn.errors:r.concat(qn.errors),s=r.length)),t.minItems!==void 0&&(zn(t.minItems,{instancePath:e+"/minItems",parentData:t,parentDataProperty:"minItems",rootData:a,dynamicAnchors:o})||(r=r===null?zn.errors:r.concat(zn.errors),s=r.length)),t.uniqueItems!==void 0&&(Un(t.uniqueItems,{instancePath:e+"/uniqueItems",parentData:t,parentDataProperty:"uniqueItems",rootData:a,dynamicAnchors:o})||(r=r===null?Un.errors:r.concat(Un.errors),s=r.length)),t.enum!==void 0&&(Bn(t.enum,{instancePath:e+"/enum",parentData:t,parentDataProperty:"enum",rootData:a,dynamicAnchors:o})||(r=r===null?Bn.errors:r.concat(Bn.errors),s=r.length)),t.multipleOf!==void 0&&(Vn(t.multipleOf,{instancePath:e+"/multipleOf",parentData:t,parentDataProperty:"multipleOf",rootData:a,dynamicAnchors:o})||(r=r===null?Vn.errors:r.concat(Vn.errors),s=r.length));for(const l in t)Je.test(l)&&gr(t[l],{instancePath:e+"/"+l.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:t,parentDataProperty:l,rootData:a,dynamicAnchors:o})}return km.errors=r,s===0}function Dp(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Dp.evaluated;c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0);const l=s;let u=!1,f=null;const h=s;if(_m(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o})||(r=r===null?_m.errors:r.concat(_m.errors),s=r.length),g=h===s){u=!0,f=0;var d=!0}const m=s;if(xm(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o})||(r=r===null?xm.errors:r.concat(xm.errors),s=r.length),(g=m===s)&&u)u=!1,f=[f,1];else{g&&(u=!0,f=1,d!==!0&&(d=!0));const b=s;if(Dm(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o})||(r=r===null?Dm.errors:r.concat(Dm.errors),s=r.length),(g=b===s)&&u)u=!1,f=[f,2];else{g&&(u=!0,f=2,d!==!0&&(d=!0));const v=s;var g;km(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o})||(r=r===null?km.errors:r.concat(km.errors),s=r.length),(g=v===s)&&u?(u=!1,f=[f,3]):g&&(u=!0,f=3,d!==!0&&(d=!0))}}if(u)s=l,r!==null&&(l?r.length=l:r=null);else{const b={instancePath:e,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas:f},message:"must match exactly one schema in oneOf"};r===null?r=[b]:r.push(b),s++}if(t&&typeof t=="object"&&!Array.isArray(t)){if(t.name===void 0){const b={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"name"},message:"must have required property 'name'"};r===null?r=[b]:r.push(b),s++}if(t.in===void 0){const b={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"in"},message:"must have required property 'in'"};r===null?r=[b]:r.push(b),s++}if(t.type===void 0){const b={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};r===null?r=[b]:r.push(b),s++}}else{const b={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[b]:r.push(b),s++}return Dp.errors=r,c.props=d,s===0}function Fl(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Fl.evaluated;c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0);const l=s;let u=!1,f=null;const h=s;if(Sm(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o})||(r=r===null?Sm.errors:r.concat(Sm.errors),s=r.length),h===s){u=!0,f=0;var d=!0}const m=s;if(Dp(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o}))var g=Dp.evaluated.props;else r=r===null?Dp.errors:r.concat(Dp.errors),s=r.length;var b;if((b=m===s)&&u?(u=!1,f=[f,1]):b&&(u=!0,f=1,d!==!0&&g!==void 0&&(g===!0?d=!0:(d=d||{},Object.assign(d,g)))),u)s=l,r!==null&&(l?r.length=l:r=null);else{const v={instancePath:e,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas:f},message:"must match exactly one schema in oneOf"};r===null?r=[v]:r.push(v),s++}return Fl.errors=r,c.props=d,s===0}function Uc(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Uc.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),Array.isArray(t)){const h=t.length;for(let g=0;g1){e:for(;m--;)for(d=m;d--;)if(Wr(t[m],t[d])){const g={instancePath:e,schemaPath:"#/uniqueItems",keyword:"uniqueItems",params:{i:m,j:d},message:"must NOT have duplicate items (items ## "+d+" and "+m+" are identical)"};r===null?r=[g]:r.push(g),s++;break e}}}else{const h={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"array"},message:"must be array"};r===null?r=[h]:r.push(h),s++}return Uc.errors=r,s===0}km.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},Dp.evaluated={dynamicProps:!0,dynamicItems:!1},Fl.evaluated={dynamicProps:!0,dynamicItems:!1},Uc.evaluated={items:!0,dynamicProps:!1,dynamicItems:!1};const JV=new RegExp("^([0-9]{3})$|^(default)$","u"),QV={type:"object",description:"A deterministic version of a JSON Schema object.",patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},required:["type"],properties:{format:{type:"string"},title:{$ref:"http://json-schema.org/draft-04/schema#/properties/title"},description:{$ref:"http://json-schema.org/draft-04/schema#/properties/description"},default:{$ref:"http://json-schema.org/draft-04/schema#/properties/default"},required:{$ref:"http://json-schema.org/draft-04/schema#/definitions/stringArray"},type:{enum:["file"]},readOnly:{type:"boolean",default:!1},externalDocs:{$ref:"#/definitions/externalDocs"},example:{}},additionalProperties:!1};function Om(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Om.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.type===void 0){const l={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};r===null?r=[l]:r.push(l),s++}for(const l in t)if(!ta.call(QV.properties,l)&&!Je.test(l)){const u={instancePath:e,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"};r===null?r=[u]:r.push(u),s++}if(t.format!==void 0&&typeof t.format!="string"){const l={instancePath:e+"/format",schemaPath:"#/properties/format/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}if(t.title!==void 0&&(Lc(t.title,{instancePath:e+"/title",parentData:t,parentDataProperty:"title",rootData:a,dynamicAnchors:o})||(r=r===null?Lc.errors:r.concat(Lc.errors),s=r.length)),t.description!==void 0&&(Fc(t.description,{instancePath:e+"/description",parentData:t,parentDataProperty:"description",rootData:a,dynamicAnchors:o})||(r=r===null?Fc.errors:r.concat(Fc.errors),s=r.length)),t.default!==void 0&&Hx(t.default,{instancePath:e+"/default",parentData:t,parentDataProperty:"default",rootData:a,dynamicAnchors:o}),t.required!==void 0&&(qc(t.required,{instancePath:e+"/required",parentData:t,parentDataProperty:"required",rootData:a,dynamicAnchors:o})||(r=r===null?qc.errors:r.concat(qc.errors),s=r.length)),t.type!==void 0&&t.type!=="file"){const l={instancePath:e+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:QV.properties.type.enum},message:"must be equal to one of the allowed values"};r===null?r=[l]:r.push(l),s++}if(t.readOnly!==void 0&&typeof t.readOnly!="boolean"){const l={instancePath:e+"/readOnly",schemaPath:"#/properties/readOnly/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};r===null?r=[l]:r.push(l),s++}t.externalDocs!==void 0&&(Pi(t.externalDocs,{instancePath:e+"/externalDocs",parentData:t,parentDataProperty:"externalDocs",rootData:a,dynamicAnchors:o})||(r=r===null?Pi.errors:r.concat(Pi.errors),s=r.length));for(const l in t)Je.test(l)&&gr(t[l],{instancePath:e+"/"+l.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:t,parentDataProperty:l,rootData:a,dynamicAnchors:o})}else{const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[l]:r.push(l),s++}return Om.errors=r,s===0}Om.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};const ZV={type:"object",additionalProperties:!1,required:["type"],properties:{type:{type:"string",enum:["string","number","integer","boolean","array"]},format:{type:"string"},items:{$ref:"#/definitions/primitivesItems"},collectionFormat:{$ref:"#/definitions/collectionFormat"},default:{$ref:"#/definitions/default"},maximum:{$ref:"#/definitions/maximum"},exclusiveMaximum:{$ref:"#/definitions/exclusiveMaximum"},minimum:{$ref:"#/definitions/minimum"},exclusiveMinimum:{$ref:"#/definitions/exclusiveMinimum"},maxLength:{$ref:"#/definitions/maxLength"},minLength:{$ref:"#/definitions/minLength"},pattern:{$ref:"#/definitions/pattern"},maxItems:{$ref:"#/definitions/maxItems"},minItems:{$ref:"#/definitions/minItems"},uniqueItems:{$ref:"#/definitions/uniqueItems"},enum:{$ref:"#/definitions/enum"},multipleOf:{$ref:"#/definitions/multipleOf"},description:{type:"string"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}};function Em(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Em.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.type===void 0){const l={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};r===null?r=[l]:r.push(l),s++}for(const l in t)if(!ta.call(ZV.properties,l)&&!Je.test(l)){const u={instancePath:e,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"};r===null?r=[u]:r.push(u),s++}if(t.type!==void 0){let l=t.type;if(typeof l!="string"){const u={instancePath:e+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[u]:r.push(u),s++}if(l!=="string"&&l!=="number"&&l!=="integer"&&l!=="boolean"&&l!=="array"){const u={instancePath:e+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:ZV.properties.type.enum},message:"must be equal to one of the allowed values"};r===null?r=[u]:r.push(u),s++}}if(t.format!==void 0&&typeof t.format!="string"){const l={instancePath:e+"/format",schemaPath:"#/properties/format/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}if(t.items!==void 0&&(li(t.items,{instancePath:e+"/items",parentData:t,parentDataProperty:"items",rootData:a,dynamicAnchors:o})||(r=r===null?li.errors:r.concat(li.errors),s=r.length)),t.collectionFormat!==void 0&&($a(t.collectionFormat,{instancePath:e+"/collectionFormat",parentData:t,parentDataProperty:"collectionFormat",rootData:a,dynamicAnchors:o})||(r=r===null?$a.errors:r.concat($a.errors),s=r.length)),t.default!==void 0&&Hf(t.default,{instancePath:e+"/default",parentData:t,parentDataProperty:"default",rootData:a,dynamicAnchors:o}),t.maximum!==void 0&&(Tn(t.maximum,{instancePath:e+"/maximum",parentData:t,parentDataProperty:"maximum",rootData:a,dynamicAnchors:o})||(r=r===null?Tn.errors:r.concat(Tn.errors),s=r.length)),t.exclusiveMaximum!==void 0&&(jn(t.exclusiveMaximum,{instancePath:e+"/exclusiveMaximum",parentData:t,parentDataProperty:"exclusiveMaximum",rootData:a,dynamicAnchors:o})||(r=r===null?jn.errors:r.concat(jn.errors),s=r.length)),t.minimum!==void 0&&(Mn(t.minimum,{instancePath:e+"/minimum",parentData:t,parentDataProperty:"minimum",rootData:a,dynamicAnchors:o})||(r=r===null?Mn.errors:r.concat(Mn.errors),s=r.length)),t.exclusiveMinimum!==void 0&&(Rn(t.exclusiveMinimum,{instancePath:e+"/exclusiveMinimum",parentData:t,parentDataProperty:"exclusiveMinimum",rootData:a,dynamicAnchors:o})||(r=r===null?Rn.errors:r.concat(Rn.errors),s=r.length)),t.maxLength!==void 0&&(Nn(t.maxLength,{instancePath:e+"/maxLength",parentData:t,parentDataProperty:"maxLength",rootData:a,dynamicAnchors:o})||(r=r===null?Nn.errors:r.concat(Nn.errors),s=r.length)),t.minLength!==void 0&&(Ln(t.minLength,{instancePath:e+"/minLength",parentData:t,parentDataProperty:"minLength",rootData:a,dynamicAnchors:o})||(r=r===null?Ln.errors:r.concat(Ln.errors),s=r.length)),t.pattern!==void 0&&(Fn(t.pattern,{instancePath:e+"/pattern",parentData:t,parentDataProperty:"pattern",rootData:a,dynamicAnchors:o})||(r=r===null?Fn.errors:r.concat(Fn.errors),s=r.length)),t.maxItems!==void 0&&(qn(t.maxItems,{instancePath:e+"/maxItems",parentData:t,parentDataProperty:"maxItems",rootData:a,dynamicAnchors:o})||(r=r===null?qn.errors:r.concat(qn.errors),s=r.length)),t.minItems!==void 0&&(zn(t.minItems,{instancePath:e+"/minItems",parentData:t,parentDataProperty:"minItems",rootData:a,dynamicAnchors:o})||(r=r===null?zn.errors:r.concat(zn.errors),s=r.length)),t.uniqueItems!==void 0&&(Un(t.uniqueItems,{instancePath:e+"/uniqueItems",parentData:t,parentDataProperty:"uniqueItems",rootData:a,dynamicAnchors:o})||(r=r===null?Un.errors:r.concat(Un.errors),s=r.length)),t.enum!==void 0&&(Bn(t.enum,{instancePath:e+"/enum",parentData:t,parentDataProperty:"enum",rootData:a,dynamicAnchors:o})||(r=r===null?Bn.errors:r.concat(Bn.errors),s=r.length)),t.multipleOf!==void 0&&(Vn(t.multipleOf,{instancePath:e+"/multipleOf",parentData:t,parentDataProperty:"multipleOf",rootData:a,dynamicAnchors:o})||(r=r===null?Vn.errors:r.concat(Vn.errors),s=r.length)),t.description!==void 0&&typeof t.description!="string"){const l={instancePath:e+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}for(const l in t)Je.test(l)&&gr(t[l],{instancePath:e+"/"+l.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:t,parentDataProperty:l,rootData:a,dynamicAnchors:o})}else{const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[l]:r.push(l),s++}return Em.errors=r,s===0}function Im(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Im.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t))for(const l in t)Em(t[l],{instancePath:e+"/"+l.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:t,parentDataProperty:l,rootData:a,dynamicAnchors:o})||(r=r===null?Em.errors:r.concat(Em.errors),s=r.length);else{const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[l]:r.push(l),s++}return Im.errors=r,s===0}function Cm(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Cm.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),!(t&&typeof t=="object"&&!Array.isArray(t))){const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[l]:r.push(l),s++}return Cm.errors=r,s===0}function Bc(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Bc.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.description===void 0){const f={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"description"},message:"must have required property 'description'"};r===null?r=[f]:r.push(f),s++}for(const f in t)if(f!=="description"&&f!=="schema"&&f!=="headers"&&f!=="examples"&&!Je.test(f)){const h={instancePath:e,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"};r===null?r=[h]:r.push(h),s++}if(t.description!==void 0&&typeof t.description!="string"){const f={instancePath:e+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[f]:r.push(f),s++}if(t.schema!==void 0){let f=t.schema;const h=s;let d=!1,m=null;const g=s;if(vs(f,{instancePath:e+"/schema",parentData:t,parentDataProperty:"schema",rootData:a,dynamicAnchors:o})||(r=r===null?vs.errors:r.concat(vs.errors),s=r.length),g===s){d=!0,m=0;var l=!0}const b=s;var u;if(Om(f,{instancePath:e+"/schema",parentData:t,parentDataProperty:"schema",rootData:a,dynamicAnchors:o})||(r=r===null?Om.errors:r.concat(Om.errors),s=r.length),(u=b===s)&&d?(d=!1,m=[m,1]):u&&(d=!0,m=1,l!==!0&&(l=!0)),d)s=h,r!==null&&(h?r.length=h:r=null);else{const v={instancePath:e+"/schema",schemaPath:"#/properties/schema/oneOf",keyword:"oneOf",params:{passingSchemas:m},message:"must match exactly one schema in oneOf"};r===null?r=[v]:r.push(v),s++}}t.headers!==void 0&&(Im(t.headers,{instancePath:e+"/headers",parentData:t,parentDataProperty:"headers",rootData:a,dynamicAnchors:o})||(r=r===null?Im.errors:r.concat(Im.errors),s=r.length)),t.examples!==void 0&&(Cm(t.examples,{instancePath:e+"/examples",parentData:t,parentDataProperty:"examples",rootData:a,dynamicAnchors:o})||(r=r===null?Cm.errors:r.concat(Cm.errors),s=r.length));for(const f in t)Je.test(f)&&gr(t[f],{instancePath:e+"/"+f.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:t,parentDataProperty:f,rootData:a,dynamicAnchors:o})}else{const f={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[f]:r.push(f),s++}return Bc.errors=r,s===0}function Tm(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Tm.evaluated;c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0);const l=s;let u=!0;const f=s;if(s===f)if(t&&typeof t=="object"&&!Array.isArray(t)){if(t.$ref===void 0){const g={};r===null?r=[g]:r.push(g),s++}}else{const g={};r===null?r=[g]:r.push(g),s++}var h=f===s;let d;if(s=l,r!==null&&(l?r.length=l:r=null),h){const g=s;if(Nc(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o})||(r=r===null?Nc.errors:r.concat(Nc.errors),s=r.length),u=h=g===s,u)var m=!0;d="then"}else{const g=s;Bc(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o})||(r=r===null?Bc.errors:r.concat(Bc.errors),s=r.length),u=h=g===s,u&&m!==!0&&(m=!0),d="else"}if(!u){const g={instancePath:e,schemaPath:"#/if",keyword:"if",params:{failingKeyword:d},message:'must match "'+d+'" schema'};r===null?r=[g]:r.push(g),s++}return Tm.errors=r,c.props=m,s===0}function jm(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=jm.evaluated;c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0);const l=s,u=s;if(s===u)if(t&&typeof t=="object"&&!Array.isArray(t)){const f=s;for(const h in t)if(!Je.test(h)){const d={};r===null?r=[d]:r.push(d),s++;break}if(f===s){for(const h in t)if(Je.test(h)){const d=s;if(gr(t[h],{instancePath:e+"/"+h.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:t,parentDataProperty:h,rootData:a,dynamicAnchors:o}),d!==s)break}}}else{const f={};r===null?r=[f]:r.push(f),s++}if(u===s){const f={instancePath:e,schemaPath:"#/not",keyword:"not",params:{},message:"must NOT be valid"};r===null?r=[f]:r.push(f),s++}else s=l,r!==null&&(l?r.length=l:r=null);if(t&&typeof t=="object"&&!Array.isArray(t)){if(Object.keys(t).length<1){const f={instancePath:e,schemaPath:"#/minProperties",keyword:"minProperties",params:{limit:1},message:"must NOT have fewer than 1 properties"};r===null?r=[f]:r.push(f),s++}for(const f in t)if(!JV.test(f)&&!Je.test(f)){const h={instancePath:e,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"};r===null?r=[h]:r.push(h),s++}for(const f in t)JV.test(f)&&(Tm(t[f],{instancePath:e+"/"+f.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:t,parentDataProperty:f,rootData:a,dynamicAnchors:o})||(r=r===null?Tm.errors:r.concat(Tm.errors),s=r.length));for(const f in t)Je.test(f)&&gr(t[f],{instancePath:e+"/"+f.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:t,parentDataProperty:f,rootData:a,dynamicAnchors:o})}else{const f={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[f]:r.push(f),s++}return jm.errors=r,s===0}function Mm(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Mm.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t))for(const l in t){let u=t[l];if(Array.isArray(u)){const f=u.length;for(let m=0;m1){const m={};for(;d--;){let g=u[d];if(typeof g=="string"){if(typeof m[g]=="number"){h=m[g];const b={instancePath:e+"/"+l.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/additionalProperties/uniqueItems",keyword:"uniqueItems",params:{i:d,j:h},message:"must NOT have duplicate items (items ## "+h+" and "+d+" are identical)"};r===null?r=[b]:r.push(b),s++;break}m[g]=d}}}}else{const f={instancePath:e+"/"+l.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/additionalProperties/type",keyword:"type",params:{type:"array"},message:"must be array"};r===null?r=[f]:r.push(f),s++}}else{const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[l]:r.push(l),s++}return Mm.errors=r,s===0}function Vc(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Vc.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),Array.isArray(t)){const l=t.length;for(let h=0;h1){e:for(;f--;)for(u=f;u--;)if(Wr(t[f],t[u])){const h={instancePath:e,schemaPath:"#/uniqueItems",keyword:"uniqueItems",params:{i:f,j:u},message:"must NOT have duplicate items (items ## "+u+" and "+f+" are identical)"};r===null?r=[h]:r.push(h),s++;break e}}}else{const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"array"},message:"must be array"};r===null?r=[l]:r.push(l),s++}return Vc.errors=r,s===0}function on(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=on.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.responses===void 0){const l={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"responses"},message:"must have required property 'responses'"};r===null?r=[l]:r.push(l),s++}for(const l in t)if(!ta.call(wtt.properties,l)&&!Je.test(l)){const u={instancePath:e,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"};r===null?r=[u]:r.push(u),s++}if(t.tags!==void 0){let l=t.tags;if(Array.isArray(l)){const u=l.length;for(let d=0;d1){const d={};for(;h--;){let m=l[h];if(typeof m=="string"){if(typeof d[m]=="number"){f=d[m];const g={instancePath:e+"/tags",schemaPath:"#/properties/tags/uniqueItems",keyword:"uniqueItems",params:{i:h,j:f},message:"must NOT have duplicate items (items ## "+f+" and "+h+" are identical)"};r===null?r=[g]:r.push(g),s++;break}d[m]=h}}}}else{const u={instancePath:e+"/tags",schemaPath:"#/properties/tags/type",keyword:"type",params:{type:"array"},message:"must be array"};r===null?r=[u]:r.push(u),s++}}if(t.summary!==void 0&&typeof t.summary!="string"){const l={instancePath:e+"/summary",schemaPath:"#/properties/summary/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}if(t.description!==void 0&&typeof t.description!="string"){const l={instancePath:e+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}if(t.externalDocs!==void 0&&(Pi(t.externalDocs,{instancePath:e+"/externalDocs",parentData:t,parentDataProperty:"externalDocs",rootData:a,dynamicAnchors:o})||(r=r===null?Pi.errors:r.concat(Pi.errors),s=r.length)),t.operationId!==void 0&&typeof t.operationId!="string"){const l={instancePath:e+"/operationId",schemaPath:"#/properties/operationId/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}if(t.produces!==void 0&&(da(t.produces,{instancePath:e+"/produces",parentData:t,parentDataProperty:"produces",rootData:a,dynamicAnchors:o})||(r=r===null?da.errors:r.concat(da.errors),s=r.length)),t.consumes!==void 0&&(da(t.consumes,{instancePath:e+"/consumes",parentData:t,parentDataProperty:"consumes",rootData:a,dynamicAnchors:o})||(r=r===null?da.errors:r.concat(da.errors),s=r.length)),t.parameters!==void 0&&(Uc(t.parameters,{instancePath:e+"/parameters",parentData:t,parentDataProperty:"parameters",rootData:a,dynamicAnchors:o})||(r=r===null?Uc.errors:r.concat(Uc.errors),s=r.length)),t.responses!==void 0&&(jm(t.responses,{instancePath:e+"/responses",parentData:t,parentDataProperty:"responses",rootData:a,dynamicAnchors:o})||(r=r===null?jm.errors:r.concat(jm.errors),s=r.length)),t.schemes!==void 0&&(Rc(t.schemes,{instancePath:e+"/schemes",parentData:t,parentDataProperty:"schemes",rootData:a,dynamicAnchors:o})||(r=r===null?Rc.errors:r.concat(Rc.errors),s=r.length)),t.deprecated!==void 0&&typeof t.deprecated!="boolean"){const l={instancePath:e+"/deprecated",schemaPath:"#/properties/deprecated/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};r===null?r=[l]:r.push(l),s++}t.security!==void 0&&(Vc(t.security,{instancePath:e+"/security",parentData:t,parentDataProperty:"security",rootData:a,dynamicAnchors:o})||(r=r===null?Vc.errors:r.concat(Vc.errors),s=r.length));for(const l in t)Je.test(l)&&gr(t[l],{instancePath:e+"/"+l.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:t,parentDataProperty:l,rootData:a,dynamicAnchors:o})}else{const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[l]:r.push(l),s++}return on.errors=r,s===0}function Rm(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Rm.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){for(const l in t)if(!ta.call(btt.properties,l)&&!Je.test(l)){const u={instancePath:e,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"};r===null?r=[u]:r.push(u),s++}if(t.$ref!==void 0&&typeof t.$ref!="string"){const l={instancePath:e+"/$ref",schemaPath:"#/properties/%24ref/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}t.get!==void 0&&(on(t.get,{instancePath:e+"/get",parentData:t,parentDataProperty:"get",rootData:a,dynamicAnchors:o})||(r=r===null?on.errors:r.concat(on.errors),s=r.length)),t.put!==void 0&&(on(t.put,{instancePath:e+"/put",parentData:t,parentDataProperty:"put",rootData:a,dynamicAnchors:o})||(r=r===null?on.errors:r.concat(on.errors),s=r.length)),t.post!==void 0&&(on(t.post,{instancePath:e+"/post",parentData:t,parentDataProperty:"post",rootData:a,dynamicAnchors:o})||(r=r===null?on.errors:r.concat(on.errors),s=r.length)),t.delete!==void 0&&(on(t.delete,{instancePath:e+"/delete",parentData:t,parentDataProperty:"delete",rootData:a,dynamicAnchors:o})||(r=r===null?on.errors:r.concat(on.errors),s=r.length)),t.options!==void 0&&(on(t.options,{instancePath:e+"/options",parentData:t,parentDataProperty:"options",rootData:a,dynamicAnchors:o})||(r=r===null?on.errors:r.concat(on.errors),s=r.length)),t.head!==void 0&&(on(t.head,{instancePath:e+"/head",parentData:t,parentDataProperty:"head",rootData:a,dynamicAnchors:o})||(r=r===null?on.errors:r.concat(on.errors),s=r.length)),t.patch!==void 0&&(on(t.patch,{instancePath:e+"/patch",parentData:t,parentDataProperty:"patch",rootData:a,dynamicAnchors:o})||(r=r===null?on.errors:r.concat(on.errors),s=r.length)),t.parameters!==void 0&&(Uc(t.parameters,{instancePath:e+"/parameters",parentData:t,parentDataProperty:"parameters",rootData:a,dynamicAnchors:o})||(r=r===null?Uc.errors:r.concat(Uc.errors),s=r.length));for(const l in t)Je.test(l)&&gr(t[l],{instancePath:e+"/"+l.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:t,parentDataProperty:l,rootData:a,dynamicAnchors:o})}else{const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[l]:r.push(l),s++}return Rm.errors=r,s===0}function Nm(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Nm.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){for(const l in t)if(!Je.test(l)&&!Ag.test(l)){const u={instancePath:e,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"};r===null?r=[u]:r.push(u),s++}for(const l in t)Je.test(l)&&gr(t[l],{instancePath:e+"/"+l.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:t,parentDataProperty:l,rootData:a,dynamicAnchors:o});for(const l in t)Ag.test(l)&&(Rm(t[l],{instancePath:e+"/"+l.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:t,parentDataProperty:l,rootData:a,dynamicAnchors:o})||(r=r===null?Rm.errors:r.concat(Rm.errors),s=r.length))}else{const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[l]:r.push(l),s++}return Nm.errors=r,s===0}function Lm(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Lm.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t))for(const l in t)vs(t[l],{instancePath:e+"/"+l.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:t,parentDataProperty:l,rootData:a,dynamicAnchors:o})||(r=r===null?vs.errors:r.concat(vs.errors),s=r.length);else{const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[l]:r.push(l),s++}return Lm.errors=r,s===0}function Fm(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Fm.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t))for(const l in t)Fl(t[l],{instancePath:e+"/"+l.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:t,parentDataProperty:l,rootData:a,dynamicAnchors:o})||(r=r===null?Fl.errors:r.concat(Fl.errors),s=r.length);else{const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[l]:r.push(l),s++}return Fm.errors=r,s===0}function qm(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=qm.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t))for(const l in t)Bc(t[l],{instancePath:e+"/"+l.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:t,parentDataProperty:l,rootData:a,dynamicAnchors:o})||(r=r===null?Bc.errors:r.concat(Bc.errors),s=r.length);else{const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[l]:r.push(l),s++}return qm.errors=r,s===0}Em.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},Im.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},Cm.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},Bc.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},Tm.evaluated={dynamicProps:!0,dynamicItems:!1},jm.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},Mm.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},Vc.evaluated={items:!0,dynamicProps:!1,dynamicItems:!1},on.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},Rm.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},Nm.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},Lm.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},Fm.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},qm.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};const XV={type:"object",additionalProperties:{oneOf:[{$ref:"#/definitions/basicAuthenticationSecurity"},{$ref:"#/definitions/apiKeySecurity"},{$ref:"#/definitions/oauth2ImplicitSecurity"},{$ref:"#/definitions/oauth2PasswordSecurity"},{$ref:"#/definitions/oauth2ApplicationSecurity"},{$ref:"#/definitions/oauth2AccessCodeSecurity"}]},errorMessage:{properties:{basic:"Invalid basic authentication security definition",apiKey:"Invalid apiKey authentication security definition",oauth2:"Invalid oauth2 authentication security definition"},_:"Invalid security securityDefinitions"}},Dtt={type:"object",additionalProperties:!1,required:["type"],properties:{type:{enum:["basic"]},description:{type:"string"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}};function zm(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=zm.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.type===void 0){const l={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};r===null?r=[l]:r.push(l),s++}for(const l in t)if(l!=="type"&&l!=="description"&&!Je.test(l)){const u={instancePath:e,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"};r===null?r=[u]:r.push(u),s++}if(t.type!==void 0&&t.type!=="basic"){const l={instancePath:e+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:Dtt.properties.type.enum},message:"must be equal to one of the allowed values"};r===null?r=[l]:r.push(l),s++}if(t.description!==void 0&&typeof t.description!="string"){const l={instancePath:e+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}for(const l in t)Je.test(l)&&gr(t[l],{instancePath:e+"/"+l.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:t,parentDataProperty:l,rootData:a,dynamicAnchors:o})}else{const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[l]:r.push(l),s++}return zm.errors=r,s===0}zm.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};const e8={type:"object",additionalProperties:!1,required:["type","name","in"],properties:{type:{enum:["apiKey"]},name:{type:"string"},in:{enum:["header","query"]},description:{type:"string"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}};function Um(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Um.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.type===void 0){const l={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};r===null?r=[l]:r.push(l),s++}if(t.name===void 0){const l={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"name"},message:"must have required property 'name'"};r===null?r=[l]:r.push(l),s++}if(t.in===void 0){const l={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"in"},message:"must have required property 'in'"};r===null?r=[l]:r.push(l),s++}for(const l in t)if(l!=="type"&&l!=="name"&&l!=="in"&&l!=="description"&&!Je.test(l)){const u={instancePath:e,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"};r===null?r=[u]:r.push(u),s++}if(t.type!==void 0&&t.type!=="apiKey"){const l={instancePath:e+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:e8.properties.type.enum},message:"must be equal to one of the allowed values"};r===null?r=[l]:r.push(l),s++}if(t.name!==void 0&&typeof t.name!="string"){const l={instancePath:e+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}if(t.in!==void 0){let l=t.in;if(l!=="header"&&l!=="query"){const u={instancePath:e+"/in",schemaPath:"#/properties/in/enum",keyword:"enum",params:{allowedValues:e8.properties.in.enum},message:"must be equal to one of the allowed values"};r===null?r=[u]:r.push(u),s++}}if(t.description!==void 0&&typeof t.description!="string"){const l={instancePath:e+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}for(const l in t)Je.test(l)&&gr(t[l],{instancePath:e+"/"+l.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:t,parentDataProperty:l,rootData:a,dynamicAnchors:o})}else{const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[l]:r.push(l),s++}return Um.errors=r,s===0}Um.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};const t8={type:"object",additionalProperties:!1,required:["type","flow","authorizationUrl","scopes"],properties:{type:{enum:["oauth2"]},flow:{enum:["implicit"]},scopes:{$ref:"#/definitions/oauth2Scopes"},authorizationUrl:{type:"string",format:"uri"},description:{type:"string"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}};function Aa(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Aa.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){for(const l in t)if(typeof t[l]!="string"){const u={instancePath:e+"/"+l.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[u]:r.push(u),s++}}else{const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[l]:r.push(l),s++}return Aa.errors=r,s===0}function Bm(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Bm.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.type===void 0){const l={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};r===null?r=[l]:r.push(l),s++}if(t.flow===void 0){const l={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"flow"},message:"must have required property 'flow'"};r===null?r=[l]:r.push(l),s++}if(t.authorizationUrl===void 0){const l={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"authorizationUrl"},message:"must have required property 'authorizationUrl'"};r===null?r=[l]:r.push(l),s++}if(t.scopes===void 0){const l={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"scopes"},message:"must have required property 'scopes'"};r===null?r=[l]:r.push(l),s++}for(const l in t)if(l!=="type"&&l!=="flow"&&l!=="scopes"&&l!=="authorizationUrl"&&l!=="description"&&!Je.test(l)){const u={instancePath:e,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"};r===null?r=[u]:r.push(u),s++}if(t.type!==void 0&&t.type!=="oauth2"){const l={instancePath:e+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:t8.properties.type.enum},message:"must be equal to one of the allowed values"};r===null?r=[l]:r.push(l),s++}if(t.flow!==void 0&&t.flow!=="implicit"){const l={instancePath:e+"/flow",schemaPath:"#/properties/flow/enum",keyword:"enum",params:{allowedValues:t8.properties.flow.enum},message:"must be equal to one of the allowed values"};r===null?r=[l]:r.push(l),s++}if(t.scopes!==void 0&&(Aa(t.scopes,{instancePath:e+"/scopes",parentData:t,parentDataProperty:"scopes",rootData:a,dynamicAnchors:o})||(r=r===null?Aa.errors:r.concat(Aa.errors),s=r.length)),t.authorizationUrl!==void 0){let l=t.authorizationUrl;if(typeof l=="string"){if(!Ni(l)){const u={instancePath:e+"/authorizationUrl",schemaPath:"#/properties/authorizationUrl/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};r===null?r=[u]:r.push(u),s++}}else{const u={instancePath:e+"/authorizationUrl",schemaPath:"#/properties/authorizationUrl/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[u]:r.push(u),s++}}if(t.description!==void 0&&typeof t.description!="string"){const l={instancePath:e+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}for(const l in t)Je.test(l)&&gr(t[l],{instancePath:e+"/"+l.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:t,parentDataProperty:l,rootData:a,dynamicAnchors:o})}else{const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[l]:r.push(l),s++}return Bm.errors=r,s===0}Aa.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},Bm.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};const r8={type:"object",additionalProperties:!1,required:["type","flow","tokenUrl","scopes"],properties:{type:{enum:["oauth2"]},flow:{enum:["password"]},scopes:{$ref:"#/definitions/oauth2Scopes"},tokenUrl:{type:"string",format:"uri"},description:{type:"string"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}};function Vm(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Vm.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.type===void 0){const l={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};r===null?r=[l]:r.push(l),s++}if(t.flow===void 0){const l={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"flow"},message:"must have required property 'flow'"};r===null?r=[l]:r.push(l),s++}if(t.tokenUrl===void 0){const l={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"tokenUrl"},message:"must have required property 'tokenUrl'"};r===null?r=[l]:r.push(l),s++}if(t.scopes===void 0){const l={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"scopes"},message:"must have required property 'scopes'"};r===null?r=[l]:r.push(l),s++}for(const l in t)if(l!=="type"&&l!=="flow"&&l!=="scopes"&&l!=="tokenUrl"&&l!=="description"&&!Je.test(l)){const u={instancePath:e,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"};r===null?r=[u]:r.push(u),s++}if(t.type!==void 0&&t.type!=="oauth2"){const l={instancePath:e+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:r8.properties.type.enum},message:"must be equal to one of the allowed values"};r===null?r=[l]:r.push(l),s++}if(t.flow!==void 0&&t.flow!=="password"){const l={instancePath:e+"/flow",schemaPath:"#/properties/flow/enum",keyword:"enum",params:{allowedValues:r8.properties.flow.enum},message:"must be equal to one of the allowed values"};r===null?r=[l]:r.push(l),s++}if(t.scopes!==void 0&&(Aa(t.scopes,{instancePath:e+"/scopes",parentData:t,parentDataProperty:"scopes",rootData:a,dynamicAnchors:o})||(r=r===null?Aa.errors:r.concat(Aa.errors),s=r.length)),t.tokenUrl!==void 0){let l=t.tokenUrl;if(typeof l=="string"){if(!Ni(l)){const u={instancePath:e+"/tokenUrl",schemaPath:"#/properties/tokenUrl/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};r===null?r=[u]:r.push(u),s++}}else{const u={instancePath:e+"/tokenUrl",schemaPath:"#/properties/tokenUrl/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[u]:r.push(u),s++}}if(t.description!==void 0&&typeof t.description!="string"){const l={instancePath:e+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}for(const l in t)Je.test(l)&&gr(t[l],{instancePath:e+"/"+l.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:t,parentDataProperty:l,rootData:a,dynamicAnchors:o})}else{const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[l]:r.push(l),s++}return Vm.errors=r,s===0}function Wm(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Wm.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.type===void 0){const l={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};r===null?r=[l]:r.push(l),s++}if(t.flow===void 0){const l={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"flow"},message:"must have required property 'flow'"};r===null?r=[l]:r.push(l),s++}if(t.tokenUrl===void 0){const l={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"tokenUrl"},message:"must have required property 'tokenUrl'"};r===null?r=[l]:r.push(l),s++}if(t.scopes===void 0){const l={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"scopes"},message:"must have required property 'scopes'"};r===null?r=[l]:r.push(l),s++}for(const l in t)if(l!=="type"&&l!=="flow"&&l!=="scopes"&&l!=="tokenUrl"&&l!=="description"&&!Je.test(l)){const u={instancePath:e,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"};r===null?r=[u]:r.push(u),s++}if(t.type!==void 0&&t.type!=="oauth2"){const l={instancePath:e+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue:"oauth2"},message:"must be equal to constant"};r===null?r=[l]:r.push(l),s++}if(t.flow!==void 0&&t.flow!=="application"){const l={instancePath:e+"/flow",schemaPath:"#/properties/flow/const",keyword:"const",params:{allowedValue:"application"},message:"must be equal to constant"};r===null?r=[l]:r.push(l),s++}if(t.scopes!==void 0&&(Aa(t.scopes,{instancePath:e+"/scopes",parentData:t,parentDataProperty:"scopes",rootData:a,dynamicAnchors:o})||(r=r===null?Aa.errors:r.concat(Aa.errors),s=r.length)),t.tokenUrl!==void 0){let l=t.tokenUrl;if(typeof l=="string"){if(!Ni(l)){const u={instancePath:e+"/tokenUrl",schemaPath:"#/properties/tokenUrl/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};r===null?r=[u]:r.push(u),s++}}else{const u={instancePath:e+"/tokenUrl",schemaPath:"#/properties/tokenUrl/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[u]:r.push(u),s++}}if(t.description!==void 0&&typeof t.description!="string"){const l={instancePath:e+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}for(const l in t)Je.test(l)&&gr(t[l],{instancePath:e+"/"+l.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:t,parentDataProperty:l,rootData:a,dynamicAnchors:o})}else{const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[l]:r.push(l),s++}return Wm.errors=r,s===0}function Hm(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Hm.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.type===void 0){const l={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};r===null?r=[l]:r.push(l),s++}if(t.flow===void 0){const l={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"flow"},message:"must have required property 'flow'"};r===null?r=[l]:r.push(l),s++}if(t.authorizationUrl===void 0){const l={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"authorizationUrl"},message:"must have required property 'authorizationUrl'"};r===null?r=[l]:r.push(l),s++}if(t.tokenUrl===void 0){const l={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"tokenUrl"},message:"must have required property 'tokenUrl'"};r===null?r=[l]:r.push(l),s++}if(t.scopes===void 0){const l={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"scopes"},message:"must have required property 'scopes'"};r===null?r=[l]:r.push(l),s++}for(const l in t)if(l!=="type"&&l!=="flow"&&l!=="scopes"&&l!=="authorizationUrl"&&l!=="tokenUrl"&&l!=="description"&&!Je.test(l)){const u={instancePath:e,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"};r===null?r=[u]:r.push(u),s++}if(t.type!==void 0&&t.type!=="oauth2"){const l={instancePath:e+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue:"oauth2"},message:"must be equal to constant"};r===null?r=[l]:r.push(l),s++}if(t.flow!==void 0&&t.flow!=="accessCode"){const l={instancePath:e+"/flow",schemaPath:"#/properties/flow/const",keyword:"const",params:{allowedValue:"accessCode"},message:"must be equal to constant"};r===null?r=[l]:r.push(l),s++}if(t.scopes!==void 0&&(Aa(t.scopes,{instancePath:e+"/scopes",parentData:t,parentDataProperty:"scopes",rootData:a,dynamicAnchors:o})||(r=r===null?Aa.errors:r.concat(Aa.errors),s=r.length)),t.authorizationUrl!==void 0){let l=t.authorizationUrl;if(typeof l=="string"){if(!Ni(l)){const u={instancePath:e+"/authorizationUrl",schemaPath:"#/properties/authorizationUrl/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};r===null?r=[u]:r.push(u),s++}}else{const u={instancePath:e+"/authorizationUrl",schemaPath:"#/properties/authorizationUrl/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[u]:r.push(u),s++}}if(t.tokenUrl!==void 0){let l=t.tokenUrl;if(typeof l=="string"){if(!Ni(l)){const u={instancePath:e+"/tokenUrl",schemaPath:"#/properties/tokenUrl/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};r===null?r=[u]:r.push(u),s++}}else{const u={instancePath:e+"/tokenUrl",schemaPath:"#/properties/tokenUrl/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[u]:r.push(u),s++}}if(t.description!==void 0&&typeof t.description!="string"){const l={instancePath:e+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}for(const l in t)Je.test(l)&&gr(t[l],{instancePath:e+"/"+l.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:t,parentDataProperty:l,rootData:a,dynamicAnchors:o})}else{const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[l]:r.push(l),s++}return Hm.errors=r,s===0}Vm.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},Wm.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},Hm.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};const ktt=new RegExp("^/([^/]*)(?:/|$)");function Gm(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Gm.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t))for(const f in t){let h=t[f];const d=s;let m=!1,g=null;const b=s;if(zm(h,{instancePath:e+"/"+f.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:t,parentDataProperty:f,rootData:a,dynamicAnchors:o})||(r=r===null?zm.errors:r.concat(zm.errors),s=r.length),u=b===s){m=!0,g=0;var l=!0}const v=s;if(Um(h,{instancePath:e+"/"+f.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:t,parentDataProperty:f,rootData:a,dynamicAnchors:o})||(r=r===null?Um.errors:r.concat(Um.errors),s=r.length),(u=v===s)&&m)m=!1,g=[g,1];else{u&&(m=!0,g=1,l!==!0&&(l=!0));const P=s;if(Bm(h,{instancePath:e+"/"+f.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:t,parentDataProperty:f,rootData:a,dynamicAnchors:o})||(r=r===null?Bm.errors:r.concat(Bm.errors),s=r.length),(u=P===s)&&m)m=!1,g=[g,2];else{u&&(m=!0,g=2,l!==!0&&(l=!0));const A=s;if(Vm(h,{instancePath:e+"/"+f.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:t,parentDataProperty:f,rootData:a,dynamicAnchors:o})||(r=r===null?Vm.errors:r.concat(Vm.errors),s=r.length),(u=A===s)&&m)m=!1,g=[g,3];else{u&&(m=!0,g=3,l!==!0&&(l=!0));const _=s;if(Wm(h,{instancePath:e+"/"+f.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:t,parentDataProperty:f,rootData:a,dynamicAnchors:o})||(r=r===null?Wm.errors:r.concat(Wm.errors),s=r.length),(u=_===s)&&m)m=!1,g=[g,4];else{u&&(m=!0,g=4,l!==!0&&(l=!0));const x=s;var u;Hm(h,{instancePath:e+"/"+f.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:t,parentDataProperty:f,rootData:a,dynamicAnchors:o})||(r=r===null?Hm.errors:r.concat(Hm.errors),s=r.length),(u=x===s)&&m?(m=!1,g=[g,5]):u&&(m=!0,g=5,l!==!0&&(l=!0))}}}}if(m)s=d,r!==null&&(d?r.length=d:r=null);else{const P={instancePath:e+"/"+f.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/additionalProperties/oneOf",keyword:"oneOf",params:{passingSchemas:g},message:"must match exactly one schema in oneOf"};r===null?r=[P]:r.push(P),s++}}else{const f={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[f]:r.push(f),s++}if(s>0){const f={_:[]},h={};for(const v of r)v.keyword!=="errorMessage"&&!v.emUsed&&v.instancePath===e&&v.keyword in f&&v.schemaPath.indexOf("#")===0&&/^\/[^\/]*$/.test(v.schemaPath.slice(1))&&(f[v.keyword].push(v),v.emUsed=!0);for(const v in f)if(f[v].length){const P={instancePath:e,schemaPath:"#/errorMessage",keyword:"errorMessage",params:{errors:f[v]},message:v in h?h[v]():XV.errorMessage[v]};r===null?r=[P]:r.push(P),s++}let d,m;if(typeof t=="object"&&!Array.isArray(t)){d={basic:[],apiKey:[],oauth2:[]},m={};for(const v of r)if(v.keyword!=="errorMessage"&&!v.emUsed&&v.instancePath.indexOf(e)===0){const P=ktt.exec(v.instancePath.slice(e.length)),A=P&&P[1].replace(/~1/g,"/").replace(/~0/g,"~");A!==void 0&&A in d&&(d[A].push(v),v.emUsed=!0)}for(const v in d)if(d[v].length){const P={instancePath:e,schemaPath:"#/errorMessage",keyword:"errorMessage",params:{errors:d[v]},message:v in m?m[v]():XV.errorMessage.properties[v]};r===null?r=[P]:r.push(P),s++,r[s-1].instancePath=e+"/"+v.replace(/~/g,"~0").replace(/\//g,"~1")}}const g=[];for(const v of r)v.keyword==="errorMessage"||v.emUsed||v.instancePath!==e&&(v.instancePath.indexOf(e)!==0||v.instancePath[e.length]!=="/")||v.schemaPath.indexOf("#")!==0||v.schemaPath[1]!=="/"||(g.push(v),v.emUsed=!0);if(g.length){const v={instancePath:e,schemaPath:"#/errorMessage",keyword:"errorMessage",params:{errors:g},message:"Invalid security securityDefinitions"};r===null?r=[v]:r.push(v),s++}const b=[];for(const v of r)v.emUsed||b.push(v);r=b,s=b.length}return Gm.errors=r,s===0}function Km(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Km.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.name===void 0){const l={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"name"},message:"must have required property 'name'"};r===null?r=[l]:r.push(l),s++}for(const l in t)if(l!=="name"&&l!=="description"&&l!=="externalDocs"&&!Je.test(l)){const u={instancePath:e,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"};r===null?r=[u]:r.push(u),s++}if(t.name!==void 0&&typeof t.name!="string"){const l={instancePath:e+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}if(t.description!==void 0&&typeof t.description!="string"){const l={instancePath:e+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}t.externalDocs!==void 0&&(Pi(t.externalDocs,{instancePath:e+"/externalDocs",parentData:t,parentDataProperty:"externalDocs",rootData:a,dynamicAnchors:o})||(r=r===null?Pi.errors:r.concat(Pi.errors),s=r.length));for(const l in t)Je.test(l)&&gr(t[l],{instancePath:e+"/"+l.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:t,parentDataProperty:l,rootData:a,dynamicAnchors:o})}else{const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[l]:r.push(l),s++}return Km.errors=r,s===0}function OS(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=OS.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.swagger===void 0){const l={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"swagger"},message:"must have required property 'swagger'"};r===null?r=[l]:r.push(l),s++}if(t.info===void 0){const l={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"info"},message:"must have required property 'info'"};r===null?r=[l]:r.push(l),s++}if(t.paths===void 0){const l={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"paths"},message:"must have required property 'paths'"};r===null?r=[l]:r.push(l),s++}for(const l in t)if(!ta.call(KV.properties,l)&&!Je.test(l)){const u={instancePath:e,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"};r===null?r=[u]:r.push(u),s++}if(t.swagger!==void 0){let l=t.swagger;if(typeof l!="string"){const u={instancePath:e+"/swagger",schemaPath:"#/properties/swagger/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[u]:r.push(u),s++}if(l!=="2.0"){const u={instancePath:e+"/swagger",schemaPath:"#/properties/swagger/enum",keyword:"enum",params:{allowedValues:KV.properties.swagger.enum},message:"must be equal to one of the allowed values"};r===null?r=[u]:r.push(u),s++}}if(t.info!==void 0&&(pm(t.info,{instancePath:e+"/info",parentData:t,parentDataProperty:"info",rootData:a,dynamicAnchors:o})||(r=r===null?pm.errors:r.concat(pm.errors),s=r.length)),t.host!==void 0){let l=t.host;if(typeof l=="string"){if(!vtt.test(l)){const u={instancePath:e+"/host",schemaPath:"#/properties/host/pattern",keyword:"pattern",params:{pattern:"^[^{}/ :\\\\]+(?::\\d+)?$"},message:'must match pattern "^[^{}/ :\\\\]+(?::\\d+)?$"'};r===null?r=[u]:r.push(u),s++}}else{const u={instancePath:e+"/host",schemaPath:"#/properties/host/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[u]:r.push(u),s++}}if(t.basePath!==void 0){let l=t.basePath;if(typeof l=="string"){if(!Ag.test(l)){const u={instancePath:e+"/basePath",schemaPath:"#/properties/basePath/pattern",keyword:"pattern",params:{pattern:"^/"},message:'must match pattern "^/"'};r===null?r=[u]:r.push(u),s++}}else{const u={instancePath:e+"/basePath",schemaPath:"#/properties/basePath/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[u]:r.push(u),s++}}if(t.schemes!==void 0&&(Rc(t.schemes,{instancePath:e+"/schemes",parentData:t,parentDataProperty:"schemes",rootData:a,dynamicAnchors:o})||(r=r===null?Rc.errors:r.concat(Rc.errors),s=r.length)),t.consumes!==void 0&&(da(t.consumes,{instancePath:e+"/consumes",parentData:t,parentDataProperty:"consumes",rootData:a,dynamicAnchors:o})||(r=r===null?da.errors:r.concat(da.errors),s=r.length)),t.produces!==void 0&&(da(t.produces,{instancePath:e+"/produces",parentData:t,parentDataProperty:"produces",rootData:a,dynamicAnchors:o})||(r=r===null?da.errors:r.concat(da.errors),s=r.length)),t.paths!==void 0&&(Nm(t.paths,{instancePath:e+"/paths",parentData:t,parentDataProperty:"paths",rootData:a,dynamicAnchors:o})||(r=r===null?Nm.errors:r.concat(Nm.errors),s=r.length)),t.definitions!==void 0&&(Lm(t.definitions,{instancePath:e+"/definitions",parentData:t,parentDataProperty:"definitions",rootData:a,dynamicAnchors:o})||(r=r===null?Lm.errors:r.concat(Lm.errors),s=r.length)),t.parameters!==void 0&&(Fm(t.parameters,{instancePath:e+"/parameters",parentData:t,parentDataProperty:"parameters",rootData:a,dynamicAnchors:o})||(r=r===null?Fm.errors:r.concat(Fm.errors),s=r.length)),t.responses!==void 0&&(qm(t.responses,{instancePath:e+"/responses",parentData:t,parentDataProperty:"responses",rootData:a,dynamicAnchors:o})||(r=r===null?qm.errors:r.concat(qm.errors),s=r.length)),t.security!==void 0&&(Vc(t.security,{instancePath:e+"/security",parentData:t,parentDataProperty:"security",rootData:a,dynamicAnchors:o})||(r=r===null?Vc.errors:r.concat(Vc.errors),s=r.length)),t.securityDefinitions!==void 0&&(Gm(t.securityDefinitions,{instancePath:e+"/securityDefinitions",parentData:t,parentDataProperty:"securityDefinitions",rootData:a,dynamicAnchors:o})||(r=r===null?Gm.errors:r.concat(Gm.errors),s=r.length)),t.tags!==void 0){let l=t.tags;if(Array.isArray(l)){const u=l.length;for(let d=0;d1){e:for(;h--;)for(f=h;f--;)if(Wr(l[h],l[f])){const d={instancePath:e+"/tags",schemaPath:"#/properties/tags/uniqueItems",keyword:"uniqueItems",params:{i:h,j:f},message:"must NOT have duplicate items (items ## "+f+" and "+h+" are identical)"};r===null?r=[d]:r.push(d),s++;break e}}}else{const u={instancePath:e+"/tags",schemaPath:"#/properties/tags/type",keyword:"type",params:{type:"array"},message:"must be array"};r===null?r=[u]:r.push(u),s++}}t.externalDocs!==void 0&&(Pi(t.externalDocs,{instancePath:e+"/externalDocs",parentData:t,parentDataProperty:"externalDocs",rootData:a,dynamicAnchors:o})||(r=r===null?Pi.errors:r.concat(Pi.errors),s=r.length));for(const l in t)Je.test(l)&&gr(t[l],{instancePath:e+"/"+l.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:t,parentDataProperty:l,rootData:a,dynamicAnchors:o})}else{const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[l]:r.push(l),s++}return OS.errors=r,s===0}Gm.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},Km.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},OS.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};Ll.oas3_0=ES;const Ott=new RegExp("^3\\.0\\.\\d(-.+)?$","u"),Ar=/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;function Ym(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Ym.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){for(const l in t)if(l!=="name"&&l!=="url"&&l!=="email"&&!Je.test(l)){const u={instancePath:e,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"};r===null?r=[u]:r.push(u),s++}if(t.name!==void 0&&typeof t.name!="string"){const l={instancePath:e+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}if(t.url!==void 0){let l=t.url;if(typeof l=="string"){if(!Ar.test(l)){const u={instancePath:e+"/url",schemaPath:"#/properties/url/format",keyword:"format",params:{format:"uri-reference"},message:'must match format "uri-reference"'};r===null?r=[u]:r.push(u),s++}}else{const u={instancePath:e+"/url",schemaPath:"#/properties/url/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[u]:r.push(u),s++}}if(t.email!==void 0){let l=t.email;if(typeof l=="string"){if(!GN.test(l)){const u={instancePath:e+"/email",schemaPath:"#/properties/email/format",keyword:"format",params:{format:"email"},message:'must match format "email"'};r===null?r=[u]:r.push(u),s++}}else{const u={instancePath:e+"/email",schemaPath:"#/properties/email/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[u]:r.push(u),s++}}}else{const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[l]:r.push(l),s++}return Ym.errors=r,s===0}function Jm(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Jm.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.name===void 0){const l={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"name"},message:"must have required property 'name'"};r===null?r=[l]:r.push(l),s++}for(const l in t)if(l!=="name"&&l!=="url"&&!Je.test(l)){const u={instancePath:e,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"};r===null?r=[u]:r.push(u),s++}if(t.name!==void 0&&typeof t.name!="string"){const l={instancePath:e+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}if(t.url!==void 0){let l=t.url;if(typeof l=="string"){if(!Ar.test(l)){const u={instancePath:e+"/url",schemaPath:"#/properties/url/format",keyword:"format",params:{format:"uri-reference"},message:'must match format "uri-reference"'};r===null?r=[u]:r.push(u),s++}}else{const u={instancePath:e+"/url",schemaPath:"#/properties/url/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[u]:r.push(u),s++}}}else{const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[l]:r.push(l),s++}return Jm.errors=r,s===0}function Qm(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Qm.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.title===void 0){const l={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"title"},message:"must have required property 'title'"};r===null?r=[l]:r.push(l),s++}if(t.version===void 0){const l={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"version"},message:"must have required property 'version'"};r===null?r=[l]:r.push(l),s++}for(const l in t)if(l!=="title"&&l!=="description"&&l!=="termsOfService"&&l!=="contact"&&l!=="license"&&l!=="version"&&!Je.test(l)){const u={instancePath:e,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"};r===null?r=[u]:r.push(u),s++}if(t.title!==void 0&&typeof t.title!="string"){const l={instancePath:e+"/title",schemaPath:"#/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}if(t.description!==void 0&&typeof t.description!="string"){const l={instancePath:e+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}if(t.termsOfService!==void 0){let l=t.termsOfService;if(typeof l=="string"){if(!Ar.test(l)){const u={instancePath:e+"/termsOfService",schemaPath:"#/properties/termsOfService/format",keyword:"format",params:{format:"uri-reference"},message:'must match format "uri-reference"'};r===null?r=[u]:r.push(u),s++}}else{const u={instancePath:e+"/termsOfService",schemaPath:"#/properties/termsOfService/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[u]:r.push(u),s++}}if(t.contact!==void 0&&(Ym(t.contact,{instancePath:e+"/contact",parentData:t,parentDataProperty:"contact",rootData:a,dynamicAnchors:o})||(r=r===null?Ym.errors:r.concat(Ym.errors),s=r.length)),t.license!==void 0&&(Jm(t.license,{instancePath:e+"/license",parentData:t,parentDataProperty:"license",rootData:a,dynamicAnchors:o})||(r=r===null?Jm.errors:r.concat(Jm.errors),s=r.length)),t.version!==void 0&&typeof t.version!="string"){const l={instancePath:e+"/version",schemaPath:"#/properties/version/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}}else{const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[l]:r.push(l),s++}return Qm.errors=r,s===0}function Sa(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Sa.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.url===void 0){const l={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"url"},message:"must have required property 'url'"};r===null?r=[l]:r.push(l),s++}for(const l in t)if(l!=="description"&&l!=="url"&&!Je.test(l)){const u={instancePath:e,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"};r===null?r=[u]:r.push(u),s++}if(t.description!==void 0&&typeof t.description!="string"){const l={instancePath:e+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}if(t.url!==void 0){let l=t.url;if(typeof l=="string"){if(!Ar.test(l)){const u={instancePath:e+"/url",schemaPath:"#/properties/url/format",keyword:"format",params:{format:"uri-reference"},message:'must match format "uri-reference"'};r===null?r=[u]:r.push(u),s++}}else{const u={instancePath:e+"/url",schemaPath:"#/properties/url/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[u]:r.push(u),s++}}}else{const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[l]:r.push(l),s++}return Sa.errors=r,s===0}function Zm(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Zm.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.default===void 0){const l={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"default"},message:"must have required property 'default'"};r===null?r=[l]:r.push(l),s++}for(const l in t)if(l!=="enum"&&l!=="default"&&l!=="description"&&!Je.test(l)){const u={instancePath:e,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"};r===null?r=[u]:r.push(u),s++}if(t.enum!==void 0){let l=t.enum;if(Array.isArray(l)){const u=l.length;for(let f=0;f0){const j={not:[]},I={};for(const L of r)L.keyword!=="errorMessage"&&!L.emUsed&&L.instancePath===e&&L.keyword in j&&L.schemaPath.indexOf("#/else/else")===0&&/^\/[^\/]*$/.test(L.schemaPath.slice(11))&&(j[L.keyword].push(L),L.emUsed=!0);for(const L in j)if(j[L].length){const q={instancePath:e,schemaPath:"#/else/else/errorMessage",keyword:"errorMessage",params:{errors:j[L]},message:L in I?I[L]():i8.else.else.errorMessage[L]};r===null?r=[q]:r.push(q),s++}const E=[];for(const L of r)L.emUsed||E.push(L);r=E,s=E.length}P=g=x===s,_="else"}if(!P){const x={instancePath:e,schemaPath:"#/else/if",keyword:"if",params:{failingKeyword:_},message:'must match "'+_+'" schema'};r===null?r=[x]:r.push(x),s++}h=m=b===s}if(!h){const b={instancePath:e,schemaPath:"#/if",keyword:"if",params:{failingKeyword:"else"},message:'must match "else" schema'};r===null?r=[b]:r.push(b),s++}if(s>0){const b={not:[]},v={};for(const A of r)A.keyword!=="errorMessage"&&!A.emUsed&&A.instancePath===e&&A.keyword in b&&A.schemaPath.indexOf("#")===0&&/^\/[^\/]*$/.test(A.schemaPath.slice(1))&&(b[A.keyword].push(A),A.emUsed=!0);for(const A in b)if(b[A].length){const _={instancePath:e,schemaPath:"#/errorMessage",keyword:"errorMessage",params:{errors:b[A]},message:A in v?v[A]():i8.errorMessage[A]};r===null?r=[_]:r.push(_),s++}const P=[];for(const A of r)A.emUsed||P.push(A);r=P,s=P.length}return Hc.errors=r,s===0}Hc.evaluated={dynamicProps:!1,dynamicItems:!1};const r$={description:"Parameter location",type:"object",if:{type:"object",properties:{in:{const:"path"}},required:["in"]},then:{description:"Parameter in path",required:["required"],properties:{style:{enum:["matrix","label","simple"],default:"simple"},required:{const:!0}}},else:{if:{type:"object",properties:{in:{const:"query"}},required:["in"]},then:{description:"Parameter in query",properties:{style:{enum:["form","spaceDelimited","pipeDelimited","deepObject"],default:"form"}}},else:{if:{type:"object",properties:{in:{const:"header"}},required:["in"]},then:{description:"Parameter in header",properties:{style:{const:"simple",default:"simple"}}},else:{if:{type:"object",properties:{in:{const:"cookie"}},required:["in"]},then:{description:"Parameter in cookie",properties:{style:{const:"form",default:"form"}}},else:{type:"object",properties:{in:{enum:["path","query","header","cookie"]}},required:["in"],errorMessage:{required:'Parameter must have a valid "in" property'}}}}}};function ey(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=ey.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),!t||typeof t!="object"||Array.isArray(t)){const x={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[x]:r.push(x),s++}const l=s;let u=!0;const f=s;if(s===f)if(t&&typeof t=="object"&&!Array.isArray(t)){if(t.in===void 0){const x={};r===null?r=[x]:r.push(x),s++}else if(t.in!==void 0&&t.in!=="path"){const x={};r===null?r=[x]:r.push(x),s++}}else{const x={};r===null?r=[x]:r.push(x),s++}var h=f===s;let d;if(s=l,r!==null&&(l?r.length=l:r=null),h){const x=s;if(t&&typeof t=="object"&&!Array.isArray(t)){if(t.required===void 0){const N={instancePath:e,schemaPath:"#/then/required",keyword:"required",params:{missingProperty:"required"},message:"must have required property 'required'"};r===null?r=[N]:r.push(N),s++}if(t.style!==void 0){let N=t.style;if(N!=="matrix"&&N!=="label"&&N!=="simple"){const j={instancePath:e+"/style",schemaPath:"#/then/properties/style/enum",keyword:"enum",params:{allowedValues:r$.then.properties.style.enum},message:"must be equal to one of the allowed values"};r===null?r=[j]:r.push(j),s++}}if(t.required!==void 0&&t.required!==!0){const N={instancePath:e+"/required",schemaPath:"#/then/properties/required/const",keyword:"const",params:{allowedValue:!0},message:"must be equal to constant"};r===null?r=[N]:r.push(N),s++}}if(u=h=x===s,u)var m={style:!0,required:!0,in:!0};d="then"}else{const x=s,N=s;let j=!0;const I=s;if(s===I)if(t&&typeof t=="object"&&!Array.isArray(t)){if(t.in===void 0){const L={};r===null?r=[L]:r.push(L),s++}else if(t.in!==void 0&&t.in!=="query"){const L={};r===null?r=[L]:r.push(L),s++}}else{const L={};r===null?r=[L]:r.push(L),s++}var g=I===s;let E;if(s=N,r!==null&&(N?r.length=N:r=null),g){const L=s;if(t&&typeof t=="object"&&!Array.isArray(t)&&t.style!==void 0){let q=t.style;if(q!=="form"&&q!=="spaceDelimited"&&q!=="pipeDelimited"&&q!=="deepObject"){const F={instancePath:e+"/style",schemaPath:"#/else/then/properties/style/enum",keyword:"enum",params:{allowedValues:r$.else.then.properties.style.enum},message:"must be equal to one of the allowed values"};r===null?r=[F]:r.push(F),s++}}if(j=g=L===s,j)var b={style:!0,in:!0};E="then"}else{const L=s,q=s;let F=!0;const S=s;if(s===S)if(t&&typeof t=="object"&&!Array.isArray(t)){if(t.in===void 0){const M={};r===null?r=[M]:r.push(M),s++}else if(t.in!==void 0&&t.in!=="header"){const M={};r===null?r=[M]:r.push(M),s++}}else{const M={};r===null?r=[M]:r.push(M),s++}var v=S===s;let D;if(s=q,r!==null&&(q?r.length=q:r=null),v){const M=s;if(t&&typeof t=="object"&&!Array.isArray(t)&&t.style!==void 0&&t.style!=="simple"){const C={instancePath:e+"/style",schemaPath:"#/else/else/then/properties/style/const",keyword:"const",params:{allowedValue:"simple"},message:"must be equal to constant"};r===null?r=[C]:r.push(C),s++}if(F=v=M===s,F)var P={style:!0,in:!0};D="then"}else{const M=s,C=s;let H=!0;const X=s;if(s===X)if(t&&typeof t=="object"&&!Array.isArray(t)){if(t.in===void 0){const U={};r===null?r=[U]:r.push(U),s++}else if(t.in!==void 0&&t.in!=="cookie"){const U={};r===null?r=[U]:r.push(U),s++}}else{const U={};r===null?r=[U]:r.push(U),s++}var A=X===s;let ie;if(s=C,r!==null&&(C?r.length=C:r=null),A){const U=s;if(t&&typeof t=="object"&&!Array.isArray(t)&&t.style!==void 0&&t.style!=="form"){const R={instancePath:e+"/style",schemaPath:"#/else/else/else/then/properties/style/const",keyword:"const",params:{allowedValue:"form"},message:"must be equal to constant"};r===null?r=[R]:r.push(R),s++}if(H=A=U===s,H)var _={style:!0,in:!0};ie="then"}else{const U=s;if(t&&typeof t=="object"&&!Array.isArray(t)){if(t.in===void 0){const R={instancePath:e,schemaPath:"#/else/else/else/else/required",keyword:"required",params:{missingProperty:"in"},message:"must have required property 'in'"};r===null?r=[R]:r.push(R),s++}if(t.in!==void 0){let R=t.in;if(R!=="path"&&R!=="query"&&R!=="header"&&R!=="cookie"){const z={instancePath:e+"/in",schemaPath:"#/else/else/else/else/properties/in/enum",keyword:"enum",params:{allowedValues:r$.else.else.else.else.properties.in.enum},message:"must be equal to one of the allowed values"};r===null?r=[z]:r.push(z),s++}}}else{const R={instancePath:e,schemaPath:"#/else/else/else/else/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[R]:r.push(R),s++}if(s>0){const R={required:[]},z={};for(const T of r)T.keyword!=="errorMessage"&&!T.emUsed&&T.instancePath===e&&T.keyword in R&&T.schemaPath.indexOf("#/else/else/else/else")===0&&/^\/[^\/]*$/.test(T.schemaPath.slice(21))&&(R[T.keyword].push(T),T.emUsed=!0);for(const T in R)if(R[T].length){const W={instancePath:e,schemaPath:"#/else/else/else/else/errorMessage",keyword:"errorMessage",params:{errors:R[T]},message:T in z?z[T]():r$.else.else.else.else.errorMessage[T]};r===null?r=[W]:r.push(W),s++}const V=[];for(const T of r)T.emUsed||V.push(T);r=V,s=V.length}H=A=U===s,H&&_!==!0&&((_=_||{}).in=!0),ie="else"}if(!H){const U={instancePath:e,schemaPath:"#/else/else/else/if",keyword:"if",params:{failingKeyword:ie},message:'must match "'+ie+'" schema'};r===null?r=[U]:r.push(U),s++}F=v=M===s,F&&P!==!0&&_!==void 0&&(_===!0?P=!0:(P=P||{},Object.assign(P,_))),D="else"}if(!F){const M={instancePath:e,schemaPath:"#/else/else/if",keyword:"if",params:{failingKeyword:D},message:'must match "'+D+'" schema'};r===null?r=[M]:r.push(M),s++}j=g=L===s,j&&b!==!0&&P!==void 0&&(P===!0?b=!0:(b=b||{},Object.assign(b,P))),E="else"}if(!j){const L={instancePath:e,schemaPath:"#/else/if",keyword:"if",params:{failingKeyword:E},message:'must match "'+E+'" schema'};r===null?r=[L]:r.push(L),s++}u=h=x===s,u&&m!==!0&&b!==void 0&&(b===!0?m=!0:(m=m||{},Object.assign(m,b))),d="else"}if(!u){const x={instancePath:e,schemaPath:"#/if",keyword:"if",params:{failingKeyword:d},message:'must match "'+d+'" schema'};r===null?r=[x]:r.push(x),s++}return ey.errors=r,c.props=m,s===0}ey.evaluated={dynamicProps:!0,dynamicItems:!1};const a8={type:"object",properties:{title:{type:"string"},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"boolean",default:!1},minimum:{type:"number"},exclusiveMinimum:{type:"boolean",default:!1},maxLength:{type:"integer",minimum:0},minLength:{type:"integer",minimum:0,default:0},pattern:{type:"string",format:"regex"},maxItems:{type:"integer",minimum:0},minItems:{type:"integer",minimum:0,default:0},uniqueItems:{type:"boolean",default:!1},maxProperties:{type:"integer",minimum:0},minProperties:{type:"integer",minimum:0,default:0},required:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0},enum:{type:"array",items:{},minItems:1,uniqueItems:!1},type:{enum:["array","boolean","integer","number","object","string"]},not:{if:{type:"object",required:["$ref"]},then:{$ref:"#/definitions/Reference"},else:{$ref:"#/definitions/Schema"}},allOf:{type:"array",items:{if:{type:"object",required:["$ref"]},then:{$ref:"#/definitions/Reference"},else:{$ref:"#/definitions/Schema"}}},oneOf:{type:"array",items:{if:{type:"object",required:["$ref"]},then:{$ref:"#/definitions/Reference"},else:{$ref:"#/definitions/Schema"}}},anyOf:{type:"array",items:{if:{type:"object",required:["$ref"]},then:{$ref:"#/definitions/Reference"},else:{$ref:"#/definitions/Schema"}}},items:{if:{type:"object",required:["$ref"]},then:{$ref:"#/definitions/Reference"},else:{$ref:"#/definitions/Schema"}},properties:{type:"object",additionalProperties:{if:{type:"object",required:["$ref"]},then:{$ref:"#/definitions/Reference"},else:{$ref:"#/definitions/Schema"}}},additionalProperties:{if:{type:"object",required:["$ref"]},then:{$ref:"#/definitions/Reference"},else:{if:{type:"object"},then:{$ref:"#/definitions/Schema"},else:{if:{type:"boolean"},then:!0,else:{not:!0,errorMessage:'"additionalProperties" property must be a valid Schema Object'}}},default:!0},description:{type:"string"},format:{type:"string"},default:{},nullable:{type:"boolean",default:!1},discriminator:{$ref:"#/definitions/Discriminator"},readOnly:{type:"boolean",default:!1},writeOnly:{type:"boolean",default:!1},example:{},externalDocs:{$ref:"#/definitions/ExternalDocumentation"},deprecated:{type:"boolean",default:!1},xml:{$ref:"#/definitions/XML"}},patternProperties:{"^x-":{}},additionalProperties:!1};function ty(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=ty.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.propertyName===void 0){const l={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"propertyName"},message:"must have required property 'propertyName'"};r===null?r=[l]:r.push(l),s++}if(t.propertyName!==void 0&&typeof t.propertyName!="string"){const l={instancePath:e+"/propertyName",schemaPath:"#/properties/propertyName/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}if(t.mapping!==void 0){let l=t.mapping;if(l&&typeof l=="object"&&!Array.isArray(l)){for(const u in l)if(typeof l[u]!="string"){const f={instancePath:e+"/mapping/"+u.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/mapping/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[f]:r.push(f),s++}}else{const u={instancePath:e+"/mapping",schemaPath:"#/properties/mapping/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[u]:r.push(u),s++}}}else{const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[l]:r.push(l),s++}return ty.errors=r,s===0}function ry(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=ry.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){for(const l in t)if(l!=="name"&&l!=="namespace"&&l!=="prefix"&&l!=="attribute"&&l!=="wrapped"&&!Je.test(l)){const u={instancePath:e,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"};r===null?r=[u]:r.push(u),s++}if(t.name!==void 0&&typeof t.name!="string"){const l={instancePath:e+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}if(t.namespace!==void 0){let l=t.namespace;if(typeof l=="string"){if(!Ni(l)){const u={instancePath:e+"/namespace",schemaPath:"#/properties/namespace/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};r===null?r=[u]:r.push(u),s++}}else{const u={instancePath:e+"/namespace",schemaPath:"#/properties/namespace/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[u]:r.push(u),s++}}if(t.prefix!==void 0&&typeof t.prefix!="string"){const l={instancePath:e+"/prefix",schemaPath:"#/properties/prefix/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}if(t.attribute!==void 0&&typeof t.attribute!="boolean"){const l={instancePath:e+"/attribute",schemaPath:"#/properties/attribute/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};r===null?r=[l]:r.push(l),s++}if(t.wrapped!==void 0&&typeof t.wrapped!="boolean"){const l={instancePath:e+"/wrapped",schemaPath:"#/properties/wrapped/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};r===null?r=[l]:r.push(l),s++}}else{const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[l]:r.push(l),s++}return ry.errors=r,s===0}ty.evaluated={props:{propertyName:!0,mapping:!0},dynamicProps:!1,dynamicItems:!1},ry.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};const Or={validate:Qi};function Qi(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Qi.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){for(const C in t)if(!ta.call(a8.properties,C)&&!Je.test(C)){const H={instancePath:e,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:C},message:"must NOT have additional properties"};r===null?r=[H]:r.push(H),s++}if(t.title!==void 0&&typeof t.title!="string"){const C={instancePath:e+"/title",schemaPath:"#/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[C]:r.push(C),s++}if(t.multipleOf!==void 0){let C=t.multipleOf;if(typeof C=="number"){if(C<=0||isNaN(C)){const H={instancePath:e+"/multipleOf",schemaPath:"#/properties/multipleOf/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison:">",limit:0},message:"must be > 0"};r===null?r=[H]:r.push(H),s++}}else{const H={instancePath:e+"/multipleOf",schemaPath:"#/properties/multipleOf/type",keyword:"type",params:{type:"number"},message:"must be number"};r===null?r=[H]:r.push(H),s++}}if(t.maximum!==void 0&&typeof t.maximum!="number"){const C={instancePath:e+"/maximum",schemaPath:"#/properties/maximum/type",keyword:"type",params:{type:"number"},message:"must be number"};r===null?r=[C]:r.push(C),s++}if(t.exclusiveMaximum!==void 0&&typeof t.exclusiveMaximum!="boolean"){const C={instancePath:e+"/exclusiveMaximum",schemaPath:"#/properties/exclusiveMaximum/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};r===null?r=[C]:r.push(C),s++}if(t.minimum!==void 0&&typeof t.minimum!="number"){const C={instancePath:e+"/minimum",schemaPath:"#/properties/minimum/type",keyword:"type",params:{type:"number"},message:"must be number"};r===null?r=[C]:r.push(C),s++}if(t.exclusiveMinimum!==void 0&&typeof t.exclusiveMinimum!="boolean"){const C={instancePath:e+"/exclusiveMinimum",schemaPath:"#/properties/exclusiveMinimum/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};r===null?r=[C]:r.push(C),s++}if(t.maxLength!==void 0){let C=t.maxLength;if(typeof C!="number"||C%1||isNaN(C)){const H={instancePath:e+"/maxLength",schemaPath:"#/properties/maxLength/type",keyword:"type",params:{type:"integer"},message:"must be integer"};r===null?r=[H]:r.push(H),s++}if(typeof C=="number"&&(C<0||isNaN(C))){const H={instancePath:e+"/maxLength",schemaPath:"#/properties/maxLength/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0"};r===null?r=[H]:r.push(H),s++}}if(t.minLength!==void 0){let C=t.minLength;if(typeof C!="number"||C%1||isNaN(C)){const H={instancePath:e+"/minLength",schemaPath:"#/properties/minLength/type",keyword:"type",params:{type:"integer"},message:"must be integer"};r===null?r=[H]:r.push(H),s++}if(typeof C=="number"&&(C<0||isNaN(C))){const H={instancePath:e+"/minLength",schemaPath:"#/properties/minLength/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0"};r===null?r=[H]:r.push(H),s++}}if(t.pattern!==void 0){let C=t.pattern;if(typeof C=="string"){if(!Gx(C)){const H={instancePath:e+"/pattern",schemaPath:"#/properties/pattern/format",keyword:"format",params:{format:"regex"},message:'must match format "regex"'};r===null?r=[H]:r.push(H),s++}}else{const H={instancePath:e+"/pattern",schemaPath:"#/properties/pattern/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[H]:r.push(H),s++}}if(t.maxItems!==void 0){let C=t.maxItems;if(typeof C!="number"||C%1||isNaN(C)){const H={instancePath:e+"/maxItems",schemaPath:"#/properties/maxItems/type",keyword:"type",params:{type:"integer"},message:"must be integer"};r===null?r=[H]:r.push(H),s++}if(typeof C=="number"&&(C<0||isNaN(C))){const H={instancePath:e+"/maxItems",schemaPath:"#/properties/maxItems/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0"};r===null?r=[H]:r.push(H),s++}}if(t.minItems!==void 0){let C=t.minItems;if(typeof C!="number"||C%1||isNaN(C)){const H={instancePath:e+"/minItems",schemaPath:"#/properties/minItems/type",keyword:"type",params:{type:"integer"},message:"must be integer"};r===null?r=[H]:r.push(H),s++}if(typeof C=="number"&&(C<0||isNaN(C))){const H={instancePath:e+"/minItems",schemaPath:"#/properties/minItems/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0"};r===null?r=[H]:r.push(H),s++}}if(t.uniqueItems!==void 0&&typeof t.uniqueItems!="boolean"){const C={instancePath:e+"/uniqueItems",schemaPath:"#/properties/uniqueItems/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};r===null?r=[C]:r.push(C),s++}if(t.maxProperties!==void 0){let C=t.maxProperties;if(typeof C!="number"||C%1||isNaN(C)){const H={instancePath:e+"/maxProperties",schemaPath:"#/properties/maxProperties/type",keyword:"type",params:{type:"integer"},message:"must be integer"};r===null?r=[H]:r.push(H),s++}if(typeof C=="number"&&(C<0||isNaN(C))){const H={instancePath:e+"/maxProperties",schemaPath:"#/properties/maxProperties/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0"};r===null?r=[H]:r.push(H),s++}}if(t.minProperties!==void 0){let C=t.minProperties;if(typeof C!="number"||C%1||isNaN(C)){const H={instancePath:e+"/minProperties",schemaPath:"#/properties/minProperties/type",keyword:"type",params:{type:"integer"},message:"must be integer"};r===null?r=[H]:r.push(H),s++}if(typeof C=="number"&&(C<0||isNaN(C))){const H={instancePath:e+"/minProperties",schemaPath:"#/properties/minProperties/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0"};r===null?r=[H]:r.push(H),s++}}if(t.required!==void 0){let C=t.required;if(Array.isArray(C)){if(C.length<1){const U={instancePath:e+"/required",schemaPath:"#/properties/required/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items"};r===null?r=[U]:r.push(U),s++}const H=C.length;for(let U=0;U1){const U={};for(;ie--;){let R=C[ie];if(typeof R=="string"){if(typeof U[R]=="number"){X=U[R];const z={instancePath:e+"/required",schemaPath:"#/properties/required/uniqueItems",keyword:"uniqueItems",params:{i:ie,j:X},message:"must NOT have duplicate items (items ## "+X+" and "+ie+" are identical)"};r===null?r=[z]:r.push(z),s++;break}U[R]=ie}}}}else{const H={instancePath:e+"/required",schemaPath:"#/properties/required/type",keyword:"type",params:{type:"array"},message:"must be array"};r===null?r=[H]:r.push(H),s++}}if(t.enum!==void 0){let C=t.enum;if(Array.isArray(C)){if(C.length<1){const H={instancePath:e+"/enum",schemaPath:"#/properties/enum/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items"};r===null?r=[H]:r.push(H),s++}}else{const H={instancePath:e+"/enum",schemaPath:"#/properties/enum/type",keyword:"type",params:{type:"array"},message:"must be array"};r===null?r=[H]:r.push(H),s++}}if(t.type!==void 0){let C=t.type;if(C!=="array"&&C!=="boolean"&&C!=="integer"&&C!=="number"&&C!=="object"&&C!=="string"){const H={instancePath:e+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:a8.properties.type.enum},message:"must be equal to one of the allowed values"};r===null?r=[H]:r.push(H),s++}}if(t.not!==void 0){let C=t.not;const H=s;let X=!0;const ie=s;if(s===ie)if(C&&typeof C=="object"&&!Array.isArray(C)){if(C.$ref===void 0){const R={};r===null?r=[R]:r.push(R),s++}}else{const R={};r===null?r=[R]:r.push(R),s++}var l=ie===s;let U;if(s=H,r!==null&&(H?r.length=H:r=null),l){const R=s;if(ze(C,{instancePath:e+"/not",parentData:t,parentDataProperty:"not",rootData:a,dynamicAnchors:o}))var u=ze.evaluated.props;else r=r===null?ze.errors:r.concat(ze.errors),s=r.length;X=l=R===s,U="then"}else{const R=s;if(Or.validate(C,{instancePath:e+"/not",parentData:t,parentDataProperty:"not",rootData:a,dynamicAnchors:o}))var f=Or.validate.evaluated.props;else r=r===null?Or.validate.errors:r.concat(Or.validate.errors),s=r.length;X=l=R===s,X&&u!==!0&&f!==void 0&&(f===!0?u=!0:(u=u||{},Object.assign(u,f))),U="else"}if(!X){const R={instancePath:e+"/not",schemaPath:"#/properties/not/if",keyword:"if",params:{failingKeyword:U},message:'must match "'+U+'" schema'};r===null?r=[R]:r.push(R),s++}}if(t.allOf!==void 0){let C=t.allOf;if(Array.isArray(C)){const H=C.length;for(let X=0;X0){const Ge=[];for(const Ae of r)Ae.keyword==="errorMessage"||Ae.emUsed||Ae.instancePath!==e+"/additionalProperties"&&(Ae.instancePath.indexOf(e+"/additionalProperties")!==0||Ae.instancePath[e+21]!=="/")||Ae.schemaPath.indexOf("#/properties/additionalProperties/else/else/else")!==0||Ae.schemaPath[48]!=="/"||(Ge.push(Ae),Ae.emUsed=!0);if(Ge.length){const Ae={instancePath:e+"/additionalProperties",schemaPath:"#/properties/additionalProperties/else/else/else/errorMessage",keyword:"errorMessage",params:{errors:Ge},message:'"additionalProperties" property must be a valid Schema Object'};r===null?r=[Ae]:r.push(Ae),s++}const Me=[];for(const Ae of r)Ae.emUsed||Me.push(Ae);r=Me,s=Me.length}ae=M=he===s}if(!ae){const he={instancePath:e+"/additionalProperties",schemaPath:"#/properties/additionalProperties/else/else/if",keyword:"if",params:{failingKeyword:"else"},message:'must match "else" schema'};r===null?r=[he]:r.push(he),s++}V=S=le===s,W="else"}if(!V){const le={instancePath:e+"/additionalProperties",schemaPath:"#/properties/additionalProperties/else/if",keyword:"if",params:{failingKeyword:W},message:'must match "'+W+'" schema'};r===null?r=[le]:r.push(le),s++}X=q=R===s,X&&F!==!0&&D!==void 0&&(D===!0?F=!0:(F=F||{},Object.assign(F,D))),U="else"}if(!X){const R={instancePath:e+"/additionalProperties",schemaPath:"#/properties/additionalProperties/if",keyword:"if",params:{failingKeyword:U},message:'must match "'+U+'" schema'};r===null?r=[R]:r.push(R),s++}}if(t.description!==void 0&&typeof t.description!="string"){const C={instancePath:e+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[C]:r.push(C),s++}if(t.format!==void 0&&typeof t.format!="string"){const C={instancePath:e+"/format",schemaPath:"#/properties/format/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[C]:r.push(C),s++}if(t.nullable!==void 0&&typeof t.nullable!="boolean"){const C={instancePath:e+"/nullable",schemaPath:"#/properties/nullable/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};r===null?r=[C]:r.push(C),s++}if(t.discriminator!==void 0&&(ty(t.discriminator,{instancePath:e+"/discriminator",parentData:t,parentDataProperty:"discriminator",rootData:a,dynamicAnchors:o})||(r=r===null?ty.errors:r.concat(ty.errors),s=r.length)),t.readOnly!==void 0&&typeof t.readOnly!="boolean"){const C={instancePath:e+"/readOnly",schemaPath:"#/properties/readOnly/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};r===null?r=[C]:r.push(C),s++}if(t.writeOnly!==void 0&&typeof t.writeOnly!="boolean"){const C={instancePath:e+"/writeOnly",schemaPath:"#/properties/writeOnly/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};r===null?r=[C]:r.push(C),s++}if(t.externalDocs!==void 0&&(Sa(t.externalDocs,{instancePath:e+"/externalDocs",parentData:t,parentDataProperty:"externalDocs",rootData:a,dynamicAnchors:o})||(r=r===null?Sa.errors:r.concat(Sa.errors),s=r.length)),t.deprecated!==void 0&&typeof t.deprecated!="boolean"){const C={instancePath:e+"/deprecated",schemaPath:"#/properties/deprecated/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};r===null?r=[C]:r.push(C),s++}t.xml!==void 0&&(ry(t.xml,{instancePath:e+"/xml",parentData:t,parentDataProperty:"xml",rootData:a,dynamicAnchors:o})||(r=r===null?ry.errors:r.concat(ry.errors),s=r.length))}else{const C={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[C]:r.push(C),s++}return Qi.errors=r,s===0}function xa(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=xa.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){for(const l in t)if(l!=="summary"&&l!=="description"&&l!=="value"&&l!=="externalValue"&&!Je.test(l)){const u={instancePath:e,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"};r===null?r=[u]:r.push(u),s++}if(t.summary!==void 0&&typeof t.summary!="string"){const l={instancePath:e+"/summary",schemaPath:"#/properties/summary/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}if(t.description!==void 0&&typeof t.description!="string"){const l={instancePath:e+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}if(t.externalValue!==void 0){let l=t.externalValue;if(typeof l=="string"){if(!Ar.test(l)){const u={instancePath:e+"/externalValue",schemaPath:"#/properties/externalValue/format",keyword:"format",params:{format:"uri-reference"},message:'must match format "uri-reference"'};r===null?r=[u]:r.push(u),s++}}else{const u={instancePath:e+"/externalValue",schemaPath:"#/properties/externalValue/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[u]:r.push(u),s++}}}else{const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[l]:r.push(l),s++}return xa.errors=r,s===0}Qi.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},xa.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};const Ctt={type:"object",properties:{contentType:{type:"string"},headers:{type:"object",additionalProperties:{$ref:"#/definitions/Header"}},style:{enum:["form","spaceDelimited","pipeDelimited","deepObject"]},explode:{type:"boolean"},allowReserved:{type:"boolean",default:!1}},additionalProperties:!1},Ttt={type:"object",properties:{description:{type:"string"},required:{type:"boolean",default:!1},deprecated:{type:"boolean",default:!1},allowEmptyValue:{type:"boolean",default:!1},style:{const:"simple",default:"simple"},explode:{type:"boolean"},allowReserved:{type:"boolean",default:!1},schema:{if:{type:"object",required:["$ref"]},then:{$ref:"#/definitions/Reference"},else:{$ref:"#/definitions/Schema"}},content:{type:"object",additionalProperties:{$ref:"#/definitions/MediaType"},minProperties:1,maxProperties:1},example:{},examples:{type:"object",additionalProperties:{if:{type:"object",required:["$ref"]},then:{$ref:"#/definitions/Reference"},else:{$ref:"#/definitions/Example"}}}},patternProperties:{"^x-":{}},additionalProperties:!1,allOf:[{$ref:"#/definitions/ExampleXORExamples"},{$ref:"#/definitions/SchemaXORContent"}]},hI={validate:Ps};function uo(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=uo.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),co(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o})||(r=r===null?co.errors:r.concat(co.errors),s=r.length),Hc(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o})||(r=r===null?Hc.errors:r.concat(Hc.errors),s=r.length),t&&typeof t=="object"&&!Array.isArray(t)){for(const d in t)if(!ta.call(Ttt.properties,d)&&!Je.test(d)){const m={instancePath:e,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:d},message:"must NOT have additional properties"};r===null?r=[m]:r.push(m),s++}if(t.description!==void 0&&typeof t.description!="string"){const d={instancePath:e+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}if(t.required!==void 0&&typeof t.required!="boolean"){const d={instancePath:e+"/required",schemaPath:"#/properties/required/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};r===null?r=[d]:r.push(d),s++}if(t.deprecated!==void 0&&typeof t.deprecated!="boolean"){const d={instancePath:e+"/deprecated",schemaPath:"#/properties/deprecated/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};r===null?r=[d]:r.push(d),s++}if(t.allowEmptyValue!==void 0&&typeof t.allowEmptyValue!="boolean"){const d={instancePath:e+"/allowEmptyValue",schemaPath:"#/properties/allowEmptyValue/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};r===null?r=[d]:r.push(d),s++}if(t.style!==void 0&&t.style!=="simple"){const d={instancePath:e+"/style",schemaPath:"#/properties/style/const",keyword:"const",params:{allowedValue:"simple"},message:"must be equal to constant"};r===null?r=[d]:r.push(d),s++}if(t.explode!==void 0&&typeof t.explode!="boolean"){const d={instancePath:e+"/explode",schemaPath:"#/properties/explode/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};r===null?r=[d]:r.push(d),s++}if(t.allowReserved!==void 0&&typeof t.allowReserved!="boolean"){const d={instancePath:e+"/allowReserved",schemaPath:"#/properties/allowReserved/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};r===null?r=[d]:r.push(d),s++}if(t.schema!==void 0){let d=t.schema;const m=s;let g=!0;const b=s;if(s===b)if(d&&typeof d=="object"&&!Array.isArray(d)){if(d.$ref===void 0){const P={};r===null?r=[P]:r.push(P),s++}}else{const P={};r===null?r=[P]:r.push(P),s++}var l=b===s;let v;if(s=m,r!==null&&(m?r.length=m:r=null),l){const P=s;if(ze(d,{instancePath:e+"/schema",parentData:t,parentDataProperty:"schema",rootData:a,dynamicAnchors:o}))var u=ze.evaluated.props;else r=r===null?ze.errors:r.concat(ze.errors),s=r.length;g=l=P===s,v="then"}else{const P=s;Qi(d,{instancePath:e+"/schema",parentData:t,parentDataProperty:"schema",rootData:a,dynamicAnchors:o})||(r=r===null?Qi.errors:r.concat(Qi.errors),s=r.length),g=l=P===s,g&&u!==!0&&(u=!0),v="else"}if(!g){const P={instancePath:e+"/schema",schemaPath:"#/properties/schema/if",keyword:"if",params:{failingKeyword:v},message:'must match "'+v+'" schema'};r===null?r=[P]:r.push(P),s++}}if(t.content!==void 0){let d=t.content;if(d&&typeof d=="object"&&!Array.isArray(d)){if(Object.keys(d).length>1){const m={instancePath:e+"/content",schemaPath:"#/properties/content/maxProperties",keyword:"maxProperties",params:{limit:1},message:"must NOT have more than 1 properties"};r===null?r=[m]:r.push(m),s++}if(Object.keys(d).length<1){const m={instancePath:e+"/content",schemaPath:"#/properties/content/minProperties",keyword:"minProperties",params:{limit:1},message:"must NOT have fewer than 1 properties"};r===null?r=[m]:r.push(m),s++}for(const m in d)hI.validate(d[m],{instancePath:e+"/content/"+m.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:d,parentDataProperty:m,rootData:a,dynamicAnchors:o})||(r=r===null?hI.validate.errors:r.concat(hI.validate.errors),s=r.length)}else{const m={instancePath:e+"/content",schemaPath:"#/properties/content/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[m]:r.push(m),s++}}if(t.examples!==void 0){let d=t.examples;if(d&&typeof d=="object"&&!Array.isArray(d))for(const m in d){let g=d[m];const b=s;let v=!0;const P=s;if(s===P)if(g&&typeof g=="object"&&!Array.isArray(g)){if(g.$ref===void 0){const _={};r===null?r=[_]:r.push(_),s++}}else{const _={};r===null?r=[_]:r.push(_),s++}var f=P===s;let A;if(s=b,r!==null&&(b?r.length=b:r=null),f){const _=s;if(ze(g,{instancePath:e+"/examples/"+m.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:d,parentDataProperty:m,rootData:a,dynamicAnchors:o}))var h=ze.evaluated.props;else r=r===null?ze.errors:r.concat(ze.errors),s=r.length;v=f=_===s,A="then"}else{const _=s;xa(g,{instancePath:e+"/examples/"+m.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:d,parentDataProperty:m,rootData:a,dynamicAnchors:o})||(r=r===null?xa.errors:r.concat(xa.errors),s=r.length),v=f=_===s,v&&h!==!0&&(h=!0),A="else"}if(!v){const _={instancePath:e+"/examples/"+m.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/examples/additionalProperties/if",keyword:"if",params:{failingKeyword:A},message:'must match "'+A+'" schema'};r===null?r=[_]:r.push(_),s++}}else{const m={instancePath:e+"/examples",schemaPath:"#/properties/examples/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[m]:r.push(m),s++}}}else{const d={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[d]:r.push(d),s++}return uo.errors=r,s===0}function ny(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=ny.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){for(const l in t)if(l!=="contentType"&&l!=="headers"&&l!=="style"&&l!=="explode"&&l!=="allowReserved"){const u={instancePath:e,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"};r===null?r=[u]:r.push(u),s++}if(t.contentType!==void 0&&typeof t.contentType!="string"){const l={instancePath:e+"/contentType",schemaPath:"#/properties/contentType/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}if(t.headers!==void 0){let l=t.headers;if(l&&typeof l=="object"&&!Array.isArray(l))for(const u in l)uo(l[u],{instancePath:e+"/headers/"+u.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:l,parentDataProperty:u,rootData:a,dynamicAnchors:o})||(r=r===null?uo.errors:r.concat(uo.errors),s=r.length);else{const u={instancePath:e+"/headers",schemaPath:"#/properties/headers/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[u]:r.push(u),s++}}if(t.style!==void 0){let l=t.style;if(l!=="form"&&l!=="spaceDelimited"&&l!=="pipeDelimited"&&l!=="deepObject"){const u={instancePath:e+"/style",schemaPath:"#/properties/style/enum",keyword:"enum",params:{allowedValues:Ctt.properties.style.enum},message:"must be equal to one of the allowed values"};r===null?r=[u]:r.push(u),s++}}if(t.explode!==void 0&&typeof t.explode!="boolean"){const l={instancePath:e+"/explode",schemaPath:"#/properties/explode/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};r===null?r=[l]:r.push(l),s++}if(t.allowReserved!==void 0&&typeof t.allowReserved!="boolean"){const l={instancePath:e+"/allowReserved",schemaPath:"#/properties/allowReserved/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};r===null?r=[l]:r.push(l),s++}}else{const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[l]:r.push(l),s++}return ny.errors=r,s===0}function Ps(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Ps.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),co(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o})||(r=r===null?co.errors:r.concat(co.errors),s=r.length),t&&typeof t=="object"&&!Array.isArray(t)){for(const d in t)if(d!=="schema"&&d!=="example"&&d!=="examples"&&d!=="encoding"&&!Je.test(d)){const m={instancePath:e,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:d},message:"must NOT have additional properties"};r===null?r=[m]:r.push(m),s++}if(t.schema!==void 0){let d=t.schema;const m=s;let g=!0;const b=s;if(s===b)if(d&&typeof d=="object"&&!Array.isArray(d)){if(d.$ref===void 0){const P={};r===null?r=[P]:r.push(P),s++}}else{const P={};r===null?r=[P]:r.push(P),s++}var l=b===s;let v;if(s=m,r!==null&&(m?r.length=m:r=null),l){const P=s;if(ze(d,{instancePath:e+"/schema",parentData:t,parentDataProperty:"schema",rootData:a,dynamicAnchors:o}))var u=ze.evaluated.props;else r=r===null?ze.errors:r.concat(ze.errors),s=r.length;g=l=P===s,v="then"}else{const P=s;Qi(d,{instancePath:e+"/schema",parentData:t,parentDataProperty:"schema",rootData:a,dynamicAnchors:o})||(r=r===null?Qi.errors:r.concat(Qi.errors),s=r.length),g=l=P===s,g&&u!==!0&&(u=!0),v="else"}if(!g){const P={instancePath:e+"/schema",schemaPath:"#/properties/schema/if",keyword:"if",params:{failingKeyword:v},message:'must match "'+v+'" schema'};r===null?r=[P]:r.push(P),s++}}if(t.examples!==void 0){let d=t.examples;if(d&&typeof d=="object"&&!Array.isArray(d))for(const m in d){let g=d[m];const b=s;let v=!0;const P=s;if(s===P)if(g&&typeof g=="object"&&!Array.isArray(g)){if(g.$ref===void 0){const _={};r===null?r=[_]:r.push(_),s++}}else{const _={};r===null?r=[_]:r.push(_),s++}var f=P===s;let A;if(s=b,r!==null&&(b?r.length=b:r=null),f){const _=s;if(ze(g,{instancePath:e+"/examples/"+m.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:d,parentDataProperty:m,rootData:a,dynamicAnchors:o}))var h=ze.evaluated.props;else r=r===null?ze.errors:r.concat(ze.errors),s=r.length;v=f=_===s,A="then"}else{const _=s;xa(g,{instancePath:e+"/examples/"+m.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:d,parentDataProperty:m,rootData:a,dynamicAnchors:o})||(r=r===null?xa.errors:r.concat(xa.errors),s=r.length),v=f=_===s,v&&h!==!0&&(h=!0),A="else"}if(!v){const _={instancePath:e+"/examples/"+m.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/examples/additionalProperties/if",keyword:"if",params:{failingKeyword:A},message:'must match "'+A+'" schema'};r===null?r=[_]:r.push(_),s++}}else{const m={instancePath:e+"/examples",schemaPath:"#/properties/examples/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[m]:r.push(m),s++}}if(t.encoding!==void 0){let d=t.encoding;if(d&&typeof d=="object"&&!Array.isArray(d))for(const m in d)ny(d[m],{instancePath:e+"/encoding/"+m.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:d,parentDataProperty:m,rootData:a,dynamicAnchors:o})||(r=r===null?ny.errors:r.concat(ny.errors),s=r.length);else{const m={instancePath:e+"/encoding",schemaPath:"#/properties/encoding/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[m]:r.push(m),s++}}}else{const d={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[d]:r.push(d),s++}return Ps.errors=r,s===0}function fo(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=fo.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),co(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o})||(r=r===null?co.errors:r.concat(co.errors),s=r.length),Hc(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o})||(r=r===null?Hc.errors:r.concat(Hc.errors),s=r.length),ey(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o})||(r=r===null?ey.errors:r.concat(ey.errors),s=r.length),t&&typeof t=="object"&&!Array.isArray(t)){if(t.name===void 0){const d={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"name"},message:"must have required property 'name'"};r===null?r=[d]:r.push(d),s++}for(const d in t)if(!ta.call(Itt.properties,d)&&!Je.test(d)){const m={instancePath:e,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:d},message:"must NOT have additional properties"};r===null?r=[m]:r.push(m),s++}if(t.name!==void 0&&typeof t.name!="string"){const d={instancePath:e+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}if(t.in!==void 0&&typeof t.in!="string"){const d={instancePath:e+"/in",schemaPath:"#/properties/in/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}if(t.description!==void 0&&typeof t.description!="string"){const d={instancePath:e+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}if(t.required!==void 0&&typeof t.required!="boolean"){const d={instancePath:e+"/required",schemaPath:"#/properties/required/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};r===null?r=[d]:r.push(d),s++}if(t.deprecated!==void 0&&typeof t.deprecated!="boolean"){const d={instancePath:e+"/deprecated",schemaPath:"#/properties/deprecated/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};r===null?r=[d]:r.push(d),s++}if(t.allowEmptyValue!==void 0&&typeof t.allowEmptyValue!="boolean"){const d={instancePath:e+"/allowEmptyValue",schemaPath:"#/properties/allowEmptyValue/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};r===null?r=[d]:r.push(d),s++}if(t.style!==void 0&&typeof t.style!="string"){const d={instancePath:e+"/style",schemaPath:"#/properties/style/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}if(t.explode!==void 0&&typeof t.explode!="boolean"){const d={instancePath:e+"/explode",schemaPath:"#/properties/explode/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};r===null?r=[d]:r.push(d),s++}if(t.allowReserved!==void 0&&typeof t.allowReserved!="boolean"){const d={instancePath:e+"/allowReserved",schemaPath:"#/properties/allowReserved/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};r===null?r=[d]:r.push(d),s++}if(t.schema!==void 0){let d=t.schema;const m=s;let g=!0;const b=s;if(s===b)if(d&&typeof d=="object"&&!Array.isArray(d)){if(d.$ref===void 0){const P={};r===null?r=[P]:r.push(P),s++}}else{const P={};r===null?r=[P]:r.push(P),s++}var l=b===s;let v;if(s=m,r!==null&&(m?r.length=m:r=null),l){const P=s;if(ze(d,{instancePath:e+"/schema",parentData:t,parentDataProperty:"schema",rootData:a,dynamicAnchors:o}))var u=ze.evaluated.props;else r=r===null?ze.errors:r.concat(ze.errors),s=r.length;g=l=P===s,v="then"}else{const P=s;Qi(d,{instancePath:e+"/schema",parentData:t,parentDataProperty:"schema",rootData:a,dynamicAnchors:o})||(r=r===null?Qi.errors:r.concat(Qi.errors),s=r.length),g=l=P===s,g&&u!==!0&&(u=!0),v="else"}if(!g){const P={instancePath:e+"/schema",schemaPath:"#/properties/schema/if",keyword:"if",params:{failingKeyword:v},message:'must match "'+v+'" schema'};r===null?r=[P]:r.push(P),s++}}if(t.content!==void 0){let d=t.content;if(d&&typeof d=="object"&&!Array.isArray(d)){if(Object.keys(d).length>1){const m={instancePath:e+"/content",schemaPath:"#/properties/content/maxProperties",keyword:"maxProperties",params:{limit:1},message:"must NOT have more than 1 properties"};r===null?r=[m]:r.push(m),s++}if(Object.keys(d).length<1){const m={instancePath:e+"/content",schemaPath:"#/properties/content/minProperties",keyword:"minProperties",params:{limit:1},message:"must NOT have fewer than 1 properties"};r===null?r=[m]:r.push(m),s++}for(const m in d)Ps(d[m],{instancePath:e+"/content/"+m.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:d,parentDataProperty:m,rootData:a,dynamicAnchors:o})||(r=r===null?Ps.errors:r.concat(Ps.errors),s=r.length)}else{const m={instancePath:e+"/content",schemaPath:"#/properties/content/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[m]:r.push(m),s++}}if(t.examples!==void 0){let d=t.examples;if(d&&typeof d=="object"&&!Array.isArray(d))for(const m in d){let g=d[m];const b=s;let v=!0;const P=s;if(s===P)if(g&&typeof g=="object"&&!Array.isArray(g)){if(g.$ref===void 0){const _={};r===null?r=[_]:r.push(_),s++}}else{const _={};r===null?r=[_]:r.push(_),s++}var f=P===s;let A;if(s=b,r!==null&&(b?r.length=b:r=null),f){const _=s;if(ze(g,{instancePath:e+"/examples/"+m.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:d,parentDataProperty:m,rootData:a,dynamicAnchors:o}))var h=ze.evaluated.props;else r=r===null?ze.errors:r.concat(ze.errors),s=r.length;v=f=_===s,A="then"}else{const _=s;xa(g,{instancePath:e+"/examples/"+m.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:d,parentDataProperty:m,rootData:a,dynamicAnchors:o})||(r=r===null?xa.errors:r.concat(xa.errors),s=r.length),v=f=_===s,v&&h!==!0&&(h=!0),A="else"}if(!v){const _={instancePath:e+"/examples/"+m.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/examples/additionalProperties/if",keyword:"if",params:{failingKeyword:A},message:'must match "'+A+'" schema'};r===null?r=[_]:r.push(_),s++}}else{const m={instancePath:e+"/examples",schemaPath:"#/properties/examples/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[m]:r.push(m),s++}}}else{const d={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[d]:r.push(d),s++}return fo.errors=r,s===0}uo.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},ny.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},Ps.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},fo.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};const jtt={type:"object",required:["responses"],properties:{tags:{type:"array",items:{type:"string"}},summary:{type:"string"},description:{type:"string"},externalDocs:{$ref:"#/definitions/ExternalDocumentation"},operationId:{type:"string"},parameters:{type:"array",items:{if:{type:"object",required:["$ref"]},then:{$ref:"#/definitions/Reference"},else:{$ref:"#/definitions/Parameter"}},uniqueItems:!0},requestBody:{if:{type:"object",required:["$ref"]},then:{$ref:"#/definitions/Reference"},else:{$ref:"#/definitions/RequestBody"}},responses:{$ref:"#/definitions/Responses"},callbacks:{type:"object",additionalProperties:{if:{type:"object",required:["$ref"]},then:{$ref:"#/definitions/Reference"},else:{$ref:"#/definitions/Callback"}}},deprecated:{type:"boolean",default:!1},security:{type:"array",items:{$ref:"#/definitions/SecurityRequirement"}},servers:{type:"array",items:{$ref:"#/definitions/Server"}}},patternProperties:{"^x-":{}},additionalProperties:!1};function Gc(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Gc.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.content===void 0){const l={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"content"},message:"must have required property 'content'"};r===null?r=[l]:r.push(l),s++}for(const l in t)if(l!=="description"&&l!=="content"&&l!=="required"&&!Je.test(l)){const u={instancePath:e,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"};r===null?r=[u]:r.push(u),s++}if(t.description!==void 0&&typeof t.description!="string"){const l={instancePath:e+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}if(t.content!==void 0){let l=t.content;if(l&&typeof l=="object"&&!Array.isArray(l))for(const u in l)Ps(l[u],{instancePath:e+"/content/"+u.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:l,parentDataProperty:u,rootData:a,dynamicAnchors:o})||(r=r===null?Ps.errors:r.concat(Ps.errors),s=r.length);else{const u={instancePath:e+"/content",schemaPath:"#/properties/content/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[u]:r.push(u),s++}}if(t.required!==void 0&&typeof t.required!="boolean"){const l={instancePath:e+"/required",schemaPath:"#/properties/required/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};r===null?r=[l]:r.push(l),s++}}else{const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[l]:r.push(l),s++}return Gc.errors=r,s===0}Gc.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};const s8=new RegExp("^[1-5](?:\\d{2}|XX)$","u");function Kc(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Kc.evaluated;c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0);const l=s,u=s;if(t&&typeof t=="object"&&!Array.isArray(t)&&(t.operationId===void 0||t.operationRef===void 0)){const f={};r===null?r=[f]:r.push(f),s++}if(u===s){const f={instancePath:e,schemaPath:"#/not",keyword:"not",params:{},message:"must NOT be valid"};r===null?r=[f]:r.push(f),s++}else s=l,r!==null&&(l?r.length=l:r=null);if(t&&typeof t=="object"&&!Array.isArray(t)){for(const f in t)if(f!=="operationId"&&f!=="operationRef"&&f!=="parameters"&&f!=="requestBody"&&f!=="description"&&f!=="server"&&!Je.test(f)){const h={instancePath:e,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"};r===null?r=[h]:r.push(h),s++}if(t.operationId!==void 0&&typeof t.operationId!="string"){const f={instancePath:e+"/operationId",schemaPath:"#/properties/operationId/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[f]:r.push(f),s++}if(t.operationRef!==void 0){let f=t.operationRef;if(typeof f=="string"){if(!Ar.test(f)){const h={instancePath:e+"/operationRef",schemaPath:"#/properties/operationRef/format",keyword:"format",params:{format:"uri-reference"},message:'must match format "uri-reference"'};r===null?r=[h]:r.push(h),s++}}else{const h={instancePath:e+"/operationRef",schemaPath:"#/properties/operationRef/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[h]:r.push(h),s++}}if(t.parameters!==void 0){let f=t.parameters;if(!(f&&typeof f=="object"&&!Array.isArray(f))){const h={instancePath:e+"/parameters",schemaPath:"#/properties/parameters/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[h]:r.push(h),s++}}if(t.description!==void 0&&typeof t.description!="string"){const f={instancePath:e+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[f]:r.push(f),s++}t.server!==void 0&&(_a(t.server,{instancePath:e+"/server",parentData:t,parentDataProperty:"server",rootData:a,dynamicAnchors:o})||(r=r===null?_a.errors:r.concat(_a.errors),s=r.length))}else{const f={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[f]:r.push(f),s++}return Kc.errors=r,s===0}function Js(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Js.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.description===void 0){const d={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"description"},message:"must have required property 'description'"};r===null?r=[d]:r.push(d),s++}for(const d in t)if(d!=="description"&&d!=="headers"&&d!=="content"&&d!=="links"&&!Je.test(d)){const m={instancePath:e,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:d},message:"must NOT have additional properties"};r===null?r=[m]:r.push(m),s++}if(t.description!==void 0&&typeof t.description!="string"){const d={instancePath:e+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}if(t.headers!==void 0){let d=t.headers;if(d&&typeof d=="object"&&!Array.isArray(d))for(const m in d){let g=d[m];const b=s;let v=!0;const P=s;if(s===P)if(g&&typeof g=="object"&&!Array.isArray(g)){if(g.$ref===void 0){const _={};r===null?r=[_]:r.push(_),s++}}else{const _={};r===null?r=[_]:r.push(_),s++}var l=P===s;let A;if(s=b,r!==null&&(b?r.length=b:r=null),l){const _=s;if(ze(g,{instancePath:e+"/headers/"+m.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:d,parentDataProperty:m,rootData:a,dynamicAnchors:o}))var u=ze.evaluated.props;else r=r===null?ze.errors:r.concat(ze.errors),s=r.length;v=l=_===s,A="then"}else{const _=s;uo(g,{instancePath:e+"/headers/"+m.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:d,parentDataProperty:m,rootData:a,dynamicAnchors:o})||(r=r===null?uo.errors:r.concat(uo.errors),s=r.length),v=l=_===s,v&&u!==!0&&(u=!0),A="else"}if(!v){const _={instancePath:e+"/headers/"+m.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/headers/additionalProperties/if",keyword:"if",params:{failingKeyword:A},message:'must match "'+A+'" schema'};r===null?r=[_]:r.push(_),s++}}else{const m={instancePath:e+"/headers",schemaPath:"#/properties/headers/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[m]:r.push(m),s++}}if(t.content!==void 0){let d=t.content;if(d&&typeof d=="object"&&!Array.isArray(d))for(const m in d)Ps(d[m],{instancePath:e+"/content/"+m.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:d,parentDataProperty:m,rootData:a,dynamicAnchors:o})||(r=r===null?Ps.errors:r.concat(Ps.errors),s=r.length);else{const m={instancePath:e+"/content",schemaPath:"#/properties/content/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[m]:r.push(m),s++}}if(t.links!==void 0){let d=t.links;if(d&&typeof d=="object"&&!Array.isArray(d))for(const m in d){let g=d[m];const b=s;let v=!0;const P=s;if(s===P)if(g&&typeof g=="object"&&!Array.isArray(g)){if(g.$ref===void 0){const _={};r===null?r=[_]:r.push(_),s++}}else{const _={};r===null?r=[_]:r.push(_),s++}var f=P===s;let A;if(s=b,r!==null&&(b?r.length=b:r=null),f){const _=s;if(ze(g,{instancePath:e+"/links/"+m.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:d,parentDataProperty:m,rootData:a,dynamicAnchors:o}))var h=ze.evaluated.props;else r=r===null?ze.errors:r.concat(ze.errors),s=r.length;v=f=_===s,A="then"}else{const _=s;Kc(g,{instancePath:e+"/links/"+m.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:d,parentDataProperty:m,rootData:a,dynamicAnchors:o})||(r=r===null?Kc.errors:r.concat(Kc.errors),s=r.length),v=f=_===s,v&&h!==!0&&(h=!0),A="else"}if(!v){const _={instancePath:e+"/links/"+m.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/links/additionalProperties/if",keyword:"if",params:{failingKeyword:A},message:'must match "'+A+'" schema'};r===null?r=[_]:r.push(_),s++}}else{const m={instancePath:e+"/links",schemaPath:"#/properties/links/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[m]:r.push(m),s++}}}else{const d={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[d]:r.push(d),s++}return Js.errors=r,s===0}function iy(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=iy.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(Object.keys(t).length<1){const d={instancePath:e,schemaPath:"#/minProperties",keyword:"minProperties",params:{limit:1},message:"must NOT have fewer than 1 properties"};r===null?r=[d]:r.push(d),s++}for(const d in t)if(d!=="default"&&!s8.test(d)&&!Je.test(d)){const m={instancePath:e,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:d},message:"must NOT have additional properties"};r===null?r=[m]:r.push(m),s++}if(t.default!==void 0){let d=t.default;const m=s;let g=!0;const b=s;if(s===b)if(d&&typeof d=="object"&&!Array.isArray(d)){if(d.$ref===void 0){const P={};r===null?r=[P]:r.push(P),s++}}else{const P={};r===null?r=[P]:r.push(P),s++}var l=b===s;let v;if(s=m,r!==null&&(m?r.length=m:r=null),l){const P=s;if(ze(d,{instancePath:e+"/default",parentData:t,parentDataProperty:"default",rootData:a,dynamicAnchors:o}))var u=ze.evaluated.props;else r=r===null?ze.errors:r.concat(ze.errors),s=r.length;g=l=P===s,v="then"}else{const P=s;Js(d,{instancePath:e+"/default",parentData:t,parentDataProperty:"default",rootData:a,dynamicAnchors:o})||(r=r===null?Js.errors:r.concat(Js.errors),s=r.length),g=l=P===s,g&&u!==!0&&(u=!0),v="else"}if(!g){const P={instancePath:e+"/default",schemaPath:"#/properties/default/if",keyword:"if",params:{failingKeyword:v},message:'must match "'+v+'" schema'};r===null?r=[P]:r.push(P),s++}}for(const d in t)if(s8.test(d)){let m=t[d];const g=s;let b=!0;const v=s;if(s===v)if(m&&typeof m=="object"&&!Array.isArray(m)){if(m.$ref===void 0){const A={};r===null?r=[A]:r.push(A),s++}}else{const A={};r===null?r=[A]:r.push(A),s++}var f=v===s;let P;if(s=g,r!==null&&(g?r.length=g:r=null),f){const A=s;if(ze(m,{instancePath:e+"/"+d.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:t,parentDataProperty:d,rootData:a,dynamicAnchors:o}))var h=ze.evaluated.props;else r=r===null?ze.errors:r.concat(ze.errors),s=r.length;b=f=A===s,P="then"}else{const A=s;Js(m,{instancePath:e+"/"+d.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:t,parentDataProperty:d,rootData:a,dynamicAnchors:o})||(r=r===null?Js.errors:r.concat(Js.errors),s=r.length),b=f=A===s,b&&h!==!0&&(h=!0),P="else"}if(!b){const A={instancePath:e+"/"+d.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/patternProperties/%5E%5B1-5%5D(%3F%3A%5Cd%7B2%7D%7CXX)%24/if",keyword:"if",params:{failingKeyword:P},message:'must match "'+P+'" schema'};r===null?r=[A]:r.push(A),s++}}}else{const d={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[d]:r.push(d),s++}return iy.errors=r,s===0}Kc.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},Js.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},iy.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};const dI={validate:Gp};function Yc(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Yc.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t))for(const l in t)Je.test(l)||dI.validate(t[l],{instancePath:e+"/"+l.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:t,parentDataProperty:l,rootData:a,dynamicAnchors:o})||(r=r===null?dI.validate.errors:r.concat(dI.validate.errors),s=r.length);else{const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[l]:r.push(l),s++}return Yc.errors=r,s===0}function ay(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=ay.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.responses===void 0){const g={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"responses"},message:"must have required property 'responses'"};r===null?r=[g]:r.push(g),s++}for(const g in t)if(!ta.call(jtt.properties,g)&&!Je.test(g)){const b={instancePath:e,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:g},message:"must NOT have additional properties"};r===null?r=[b]:r.push(b),s++}if(t.tags!==void 0){let g=t.tags;if(Array.isArray(g)){const b=g.length;for(let v=0;v1){e:for(;P--;)for(v=P;v--;)if(Wr(g[P],g[v])){const A={instancePath:e+"/parameters",schemaPath:"#/properties/parameters/uniqueItems",keyword:"uniqueItems",params:{i:P,j:v},message:"must NOT have duplicate items (items ## "+v+" and "+P+" are identical)"};r===null?r=[A]:r.push(A),s++;break e}}}else{const b={instancePath:e+"/parameters",schemaPath:"#/properties/parameters/type",keyword:"type",params:{type:"array"},message:"must be array"};r===null?r=[b]:r.push(b),s++}}if(t.requestBody!==void 0){let g=t.requestBody;const b=s;let v=!0;const P=s;if(s===P)if(g&&typeof g=="object"&&!Array.isArray(g)){if(g.$ref===void 0){const _={};r===null?r=[_]:r.push(_),s++}}else{const _={};r===null?r=[_]:r.push(_),s++}var f=P===s;let A;if(s=b,r!==null&&(b?r.length=b:r=null),f){const _=s;if(ze(g,{instancePath:e+"/requestBody",parentData:t,parentDataProperty:"requestBody",rootData:a,dynamicAnchors:o}))var h=ze.evaluated.props;else r=r===null?ze.errors:r.concat(ze.errors),s=r.length;v=f=_===s,A="then"}else{const _=s;Gc(g,{instancePath:e+"/requestBody",parentData:t,parentDataProperty:"requestBody",rootData:a,dynamicAnchors:o})||(r=r===null?Gc.errors:r.concat(Gc.errors),s=r.length),v=f=_===s,v&&h!==!0&&(h=!0),A="else"}if(!v){const _={instancePath:e+"/requestBody",schemaPath:"#/properties/requestBody/if",keyword:"if",params:{failingKeyword:A},message:'must match "'+A+'" schema'};r===null?r=[_]:r.push(_),s++}}if(t.responses!==void 0&&(iy(t.responses,{instancePath:e+"/responses",parentData:t,parentDataProperty:"responses",rootData:a,dynamicAnchors:o})||(r=r===null?iy.errors:r.concat(iy.errors),s=r.length)),t.callbacks!==void 0){let g=t.callbacks;if(g&&typeof g=="object"&&!Array.isArray(g))for(const b in g){let v=g[b];const P=s;let A=!0;const _=s;if(s===_)if(v&&typeof v=="object"&&!Array.isArray(v)){if(v.$ref===void 0){const N={};r===null?r=[N]:r.push(N),s++}}else{const N={};r===null?r=[N]:r.push(N),s++}var d=_===s;let x;if(s=P,r!==null&&(P?r.length=P:r=null),d){const N=s;if(ze(v,{instancePath:e+"/callbacks/"+b.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:g,parentDataProperty:b,rootData:a,dynamicAnchors:o}))var m=ze.evaluated.props;else r=r===null?ze.errors:r.concat(ze.errors),s=r.length;A=d=N===s,x="then"}else{const N=s;Yc(v,{instancePath:e+"/callbacks/"+b.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:g,parentDataProperty:b,rootData:a,dynamicAnchors:o})||(r=r===null?Yc.errors:r.concat(Yc.errors),s=r.length),A=d=N===s,A&&m!==!0&&(m=!0),x="else"}if(!A){const N={instancePath:e+"/callbacks/"+b.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/callbacks/additionalProperties/if",keyword:"if",params:{failingKeyword:x},message:'must match "'+x+'" schema'};r===null?r=[N]:r.push(N),s++}}else{const b={instancePath:e+"/callbacks",schemaPath:"#/properties/callbacks/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[b]:r.push(b),s++}}if(t.deprecated!==void 0&&typeof t.deprecated!="boolean"){const g={instancePath:e+"/deprecated",schemaPath:"#/properties/deprecated/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};r===null?r=[g]:r.push(g),s++}if(t.security!==void 0){let g=t.security;if(Array.isArray(g)){const b=g.length;for(let v=0;v1){e:for(;m--;)for(d=m;d--;)if(Wr(f[m],f[d])){const g={instancePath:e+"/parameters",schemaPath:"#/properties/parameters/uniqueItems",keyword:"uniqueItems",params:{i:m,j:d},message:"must NOT have duplicate items (items ## "+d+" and "+m+" are identical)"};r===null?r=[g]:r.push(g),s++;break e}}}else{const h={instancePath:e+"/parameters",schemaPath:"#/properties/parameters/type",keyword:"type",params:{type:"array"},message:"must be array"};r===null?r=[h]:r.push(h),s++}}for(const f in t)n8.test(f)&&(ay(t[f],{instancePath:e+"/"+f.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:t,parentDataProperty:f,rootData:a,dynamicAnchors:o})||(r=r===null?ay.errors:r.concat(ay.errors),s=r.length))}else{const f={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[f]:r.push(f),s++}return Gp.errors=r,s===0}function sy(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=sy.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){for(const l in t)if(!Ag.test(l)&&!Je.test(l)){const u={instancePath:e,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"};r===null?r=[u]:r.push(u),s++}for(const l in t)Ag.test(l)&&(Gp(t[l],{instancePath:e+"/"+l.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:t,parentDataProperty:l,rootData:a,dynamicAnchors:o})||(r=r===null?Gp.errors:r.concat(Gp.errors),s=r.length))}else{const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[l]:r.push(l),s++}return sy.errors=r,s===0}Yc.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},ay.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},Gp.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},sy.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};const Mtt={type:"object",properties:{schemas:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{if:{type:"object",required:["$ref"]},then:{$ref:"#/definitions/Reference"},else:{$ref:"#/definitions/Schema"}}}},responses:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{if:{type:"object",required:["$ref"]},then:{$ref:"#/definitions/Reference"},else:{$ref:"#/definitions/Response"}}}},parameters:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{if:{type:"object",required:["$ref"]},then:{$ref:"#/definitions/Reference"},else:{$ref:"#/definitions/Parameter"}}}},examples:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{if:{type:"object",required:["$ref"]},then:{$ref:"#/definitions/Reference"},else:{$ref:"#/definitions/Example"}}}},requestBodies:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{if:{type:"object",required:["$ref"]},then:{$ref:"#/definitions/Reference"},else:{$ref:"#/definitions/RequestBody"}}}},headers:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{if:{type:"object",required:["$ref"]},then:{$ref:"#/definitions/Reference"},else:{$ref:"#/definitions/Header"}}}},securitySchemes:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{if:{type:"object",required:["$ref"]},then:{$ref:"#/definitions/Reference"},else:{$ref:"#/definitions/SecurityScheme"}}}},links:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{if:{type:"object",required:["$ref"]},then:{$ref:"#/definitions/Reference"},else:{$ref:"#/definitions/Link"}}}},callbacks:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{if:{type:"object",required:["$ref"]},then:{$ref:"#/definitions/Reference"},else:{$ref:"#/definitions/Callback"}}}}},patternProperties:{"^x-":{}},additionalProperties:!1},fa=new RegExp("^[a-zA-Z0-9\\.\\-_]+$","u"),o8={if:{type:"object",properties:{type:{const:"apiKey"}},required:["type"]},then:{$ref:"#/definitions/APIKeySecurityScheme"},else:{if:{type:"object",properties:{type:{const:"apiKey"}},required:["type"]},then:{$ref:"#/definitions/HTTPSecurityScheme"},else:{if:{type:"object",properties:{type:{const:"oauth2"}},required:["type"]},then:{$ref:"#/definitions/OAuth2SecurityScheme"},else:{if:{type:"object",properties:{type:{const:"openIdConnect"}},required:["type"]},then:{$ref:"#/definitions/OpenIdConnectSecurityScheme"},else:{type:"object",properties:{type:{enum:["apiKey","http","oauth2","openIdConnect"]}},required:["type"],errorMessage:{required:"Security scheme must have a valid type",type:"Invalid security scheme"}}}}}},Rtt={type:"object",required:["type","name","in"],properties:{type:{const:"apiKey"},name:{type:"string"},in:{enum:["header","query","cookie"]},description:{type:"string"}},patternProperties:{"^x-":{}},additionalProperties:!1};function oy(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=oy.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.type===void 0){const l={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};r===null?r=[l]:r.push(l),s++}if(t.name===void 0){const l={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"name"},message:"must have required property 'name'"};r===null?r=[l]:r.push(l),s++}if(t.in===void 0){const l={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"in"},message:"must have required property 'in'"};r===null?r=[l]:r.push(l),s++}for(const l in t)if(l!=="type"&&l!=="name"&&l!=="in"&&l!=="description"&&!Je.test(l)){const u={instancePath:e,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"};r===null?r=[u]:r.push(u),s++}if(t.type!==void 0&&t.type!=="apiKey"){const l={instancePath:e+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue:"apiKey"},message:"must be equal to constant"};r===null?r=[l]:r.push(l),s++}if(t.name!==void 0&&typeof t.name!="string"){const l={instancePath:e+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}if(t.in!==void 0){let l=t.in;if(l!=="header"&&l!=="query"&&l!=="cookie"){const u={instancePath:e+"/in",schemaPath:"#/properties/in/enum",keyword:"enum",params:{allowedValues:Rtt.properties.in.enum},message:"must be equal to one of the allowed values"};r===null?r=[u]:r.push(u),s++}}if(t.description!==void 0&&typeof t.description!="string"){const l={instancePath:e+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}}else{const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[l]:r.push(l),s++}return oy.errors=r,s===0}function ly(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=ly.evaluated;c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0);const l=s;let u=!1,f=null;const h=s;if(t&&typeof t=="object"&&!Array.isArray(t)&&t.scheme!==void 0&&t.scheme!=="bearer"){const P={instancePath:e+"/scheme",schemaPath:"#/oneOf/0/properties/scheme/const",keyword:"const",params:{allowedValue:"bearer"},message:"must be equal to constant"};r===null?r=[P]:r.push(P),s++}if(h===s){u=!0,f=0;var d={scheme:!0}}const m=s,g=s,b=s;if(t&&typeof t=="object"&&!Array.isArray(t)&&t.bearerFormat===void 0){const P={};r===null?r=[P]:r.push(P),s++}var v;if(b===s){const P={instancePath:e,schemaPath:"#/oneOf/1/not",keyword:"not",params:{},message:"must NOT be valid"};r===null?r=[P]:r.push(P),s++}else s=g,r!==null&&(g?r.length=g:r=null);if(t&&typeof t=="object"&&!Array.isArray(t)&&t.scheme!==void 0){const P=s,A=s;if(t.scheme!=="bearer"){const _={};r===null?r=[_]:r.push(_),s++}if(A===s){const _={instancePath:e+"/scheme",schemaPath:"#/oneOf/1/properties/scheme/not",keyword:"not",params:{},message:"must NOT be valid"};r===null?r=[_]:r.push(_),s++}else s=P,r!==null&&(P?r.length=P:r=null)}if((v=m===s)&&u?(u=!1,f=[f,1]):v&&(u=!0,f=1,d!==!0&&((d=d||{}).scheme=!0)),u)s=l,r!==null&&(l?r.length=l:r=null);else{const P={instancePath:e,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas:f},message:"must match exactly one schema in oneOf"};r===null?r=[P]:r.push(P),s++}if(t&&typeof t=="object"&&!Array.isArray(t)){if(t.scheme===void 0){const P={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"scheme"},message:"must have required property 'scheme'"};r===null?r=[P]:r.push(P),s++}if(t.type===void 0){const P={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};r===null?r=[P]:r.push(P),s++}for(const P in t)if(P!=="scheme"&&P!=="bearerFormat"&&P!=="description"&&P!=="type"&&!Je.test(P)){const A={instancePath:e,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:P},message:"must NOT have additional properties"};r===null?r=[A]:r.push(A),s++}if(t.scheme!==void 0&&typeof t.scheme!="string"){const P={instancePath:e+"/scheme",schemaPath:"#/properties/scheme/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[P]:r.push(P),s++}if(t.bearerFormat!==void 0&&typeof t.bearerFormat!="string"){const P={instancePath:e+"/bearerFormat",schemaPath:"#/properties/bearerFormat/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[P]:r.push(P),s++}if(t.description!==void 0&&typeof t.description!="string"){const P={instancePath:e+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[P]:r.push(P),s++}if(t.type!==void 0){let P=t.type;if(typeof P!="string"){const A={instancePath:e+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[A]:r.push(A),s++}if(P!=="http"){const A={instancePath:e+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue:"http"},message:"must be equal to constant"};r===null?r=[A]:r.push(A),s++}}}else{const P={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[P]:r.push(P),s++}return ly.errors=r,s===0}function cy(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=cy.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.authorizationUrl===void 0){const l={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"authorizationUrl"},message:"must have required property 'authorizationUrl'"};r===null?r=[l]:r.push(l),s++}if(t.scopes===void 0){const l={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"scopes"},message:"must have required property 'scopes'"};r===null?r=[l]:r.push(l),s++}for(const l in t)if(l!=="authorizationUrl"&&l!=="refreshUrl"&&l!=="scopes"&&!Je.test(l)){const u={instancePath:e,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"};r===null?r=[u]:r.push(u),s++}if(t.authorizationUrl!==void 0){let l=t.authorizationUrl;if(typeof l=="string"){if(!Ar.test(l)){const u={instancePath:e+"/authorizationUrl",schemaPath:"#/properties/authorizationUrl/format",keyword:"format",params:{format:"uri-reference"},message:'must match format "uri-reference"'};r===null?r=[u]:r.push(u),s++}}else{const u={instancePath:e+"/authorizationUrl",schemaPath:"#/properties/authorizationUrl/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[u]:r.push(u),s++}}if(t.refreshUrl!==void 0){let l=t.refreshUrl;if(typeof l=="string"){if(!Ar.test(l)){const u={instancePath:e+"/refreshUrl",schemaPath:"#/properties/refreshUrl/format",keyword:"format",params:{format:"uri-reference"},message:'must match format "uri-reference"'};r===null?r=[u]:r.push(u),s++}}else{const u={instancePath:e+"/refreshUrl",schemaPath:"#/properties/refreshUrl/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[u]:r.push(u),s++}}if(t.scopes!==void 0){let l=t.scopes;if(l&&typeof l=="object"&&!Array.isArray(l)){for(const u in l)if(typeof l[u]!="string"){const f={instancePath:e+"/scopes/"+u.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/scopes/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[f]:r.push(f),s++}}else{const u={instancePath:e+"/scopes",schemaPath:"#/properties/scopes/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[u]:r.push(u),s++}}}else{const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[l]:r.push(l),s++}return cy.errors=r,s===0}function uy(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=uy.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.tokenUrl===void 0){const l={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"tokenUrl"},message:"must have required property 'tokenUrl'"};r===null?r=[l]:r.push(l),s++}if(t.scopes===void 0){const l={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"scopes"},message:"must have required property 'scopes'"};r===null?r=[l]:r.push(l),s++}for(const l in t)if(l!=="tokenUrl"&&l!=="refreshUrl"&&l!=="scopes"&&!Je.test(l)){const u={instancePath:e,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"};r===null?r=[u]:r.push(u),s++}if(t.tokenUrl!==void 0){let l=t.tokenUrl;if(typeof l=="string"){if(!Ar.test(l)){const u={instancePath:e+"/tokenUrl",schemaPath:"#/properties/tokenUrl/format",keyword:"format",params:{format:"uri-reference"},message:'must match format "uri-reference"'};r===null?r=[u]:r.push(u),s++}}else{const u={instancePath:e+"/tokenUrl",schemaPath:"#/properties/tokenUrl/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[u]:r.push(u),s++}}if(t.refreshUrl!==void 0){let l=t.refreshUrl;if(typeof l=="string"){if(!Ar.test(l)){const u={instancePath:e+"/refreshUrl",schemaPath:"#/properties/refreshUrl/format",keyword:"format",params:{format:"uri-reference"},message:'must match format "uri-reference"'};r===null?r=[u]:r.push(u),s++}}else{const u={instancePath:e+"/refreshUrl",schemaPath:"#/properties/refreshUrl/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[u]:r.push(u),s++}}if(t.scopes!==void 0){let l=t.scopes;if(l&&typeof l=="object"&&!Array.isArray(l)){for(const u in l)if(typeof l[u]!="string"){const f={instancePath:e+"/scopes/"+u.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/scopes/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[f]:r.push(f),s++}}else{const u={instancePath:e+"/scopes",schemaPath:"#/properties/scopes/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[u]:r.push(u),s++}}}else{const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[l]:r.push(l),s++}return uy.errors=r,s===0}function fy(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=fy.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.tokenUrl===void 0){const l={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"tokenUrl"},message:"must have required property 'tokenUrl'"};r===null?r=[l]:r.push(l),s++}if(t.scopes===void 0){const l={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"scopes"},message:"must have required property 'scopes'"};r===null?r=[l]:r.push(l),s++}for(const l in t)if(l!=="tokenUrl"&&l!=="refreshUrl"&&l!=="scopes"&&!Je.test(l)){const u={instancePath:e,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"};r===null?r=[u]:r.push(u),s++}if(t.tokenUrl!==void 0){let l=t.tokenUrl;if(typeof l=="string"){if(!Ar.test(l)){const u={instancePath:e+"/tokenUrl",schemaPath:"#/properties/tokenUrl/format",keyword:"format",params:{format:"uri-reference"},message:'must match format "uri-reference"'};r===null?r=[u]:r.push(u),s++}}else{const u={instancePath:e+"/tokenUrl",schemaPath:"#/properties/tokenUrl/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[u]:r.push(u),s++}}if(t.refreshUrl!==void 0){let l=t.refreshUrl;if(typeof l=="string"){if(!Ar.test(l)){const u={instancePath:e+"/refreshUrl",schemaPath:"#/properties/refreshUrl/format",keyword:"format",params:{format:"uri-reference"},message:'must match format "uri-reference"'};r===null?r=[u]:r.push(u),s++}}else{const u={instancePath:e+"/refreshUrl",schemaPath:"#/properties/refreshUrl/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[u]:r.push(u),s++}}if(t.scopes!==void 0){let l=t.scopes;if(l&&typeof l=="object"&&!Array.isArray(l)){for(const u in l)if(typeof l[u]!="string"){const f={instancePath:e+"/scopes/"+u.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/scopes/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[f]:r.push(f),s++}}else{const u={instancePath:e+"/scopes",schemaPath:"#/properties/scopes/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[u]:r.push(u),s++}}}else{const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[l]:r.push(l),s++}return fy.errors=r,s===0}function py(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=py.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.authorizationUrl===void 0){const l={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"authorizationUrl"},message:"must have required property 'authorizationUrl'"};r===null?r=[l]:r.push(l),s++}if(t.tokenUrl===void 0){const l={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"tokenUrl"},message:"must have required property 'tokenUrl'"};r===null?r=[l]:r.push(l),s++}if(t.scopes===void 0){const l={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"scopes"},message:"must have required property 'scopes'"};r===null?r=[l]:r.push(l),s++}for(const l in t)if(l!=="authorizationUrl"&&l!=="tokenUrl"&&l!=="refreshUrl"&&l!=="scopes"&&!Je.test(l)){const u={instancePath:e,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"};r===null?r=[u]:r.push(u),s++}if(t.authorizationUrl!==void 0){let l=t.authorizationUrl;if(typeof l=="string"){if(!Ar.test(l)){const u={instancePath:e+"/authorizationUrl",schemaPath:"#/properties/authorizationUrl/format",keyword:"format",params:{format:"uri-reference"},message:'must match format "uri-reference"'};r===null?r=[u]:r.push(u),s++}}else{const u={instancePath:e+"/authorizationUrl",schemaPath:"#/properties/authorizationUrl/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[u]:r.push(u),s++}}if(t.tokenUrl!==void 0){let l=t.tokenUrl;if(typeof l=="string"){if(!Ar.test(l)){const u={instancePath:e+"/tokenUrl",schemaPath:"#/properties/tokenUrl/format",keyword:"format",params:{format:"uri-reference"},message:'must match format "uri-reference"'};r===null?r=[u]:r.push(u),s++}}else{const u={instancePath:e+"/tokenUrl",schemaPath:"#/properties/tokenUrl/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[u]:r.push(u),s++}}if(t.refreshUrl!==void 0){let l=t.refreshUrl;if(typeof l=="string"){if(!Ar.test(l)){const u={instancePath:e+"/refreshUrl",schemaPath:"#/properties/refreshUrl/format",keyword:"format",params:{format:"uri-reference"},message:'must match format "uri-reference"'};r===null?r=[u]:r.push(u),s++}}else{const u={instancePath:e+"/refreshUrl",schemaPath:"#/properties/refreshUrl/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[u]:r.push(u),s++}}if(t.scopes!==void 0){let l=t.scopes;if(l&&typeof l=="object"&&!Array.isArray(l)){for(const u in l)if(typeof l[u]!="string"){const f={instancePath:e+"/scopes/"+u.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/scopes/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[f]:r.push(f),s++}}else{const u={instancePath:e+"/scopes",schemaPath:"#/properties/scopes/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[u]:r.push(u),s++}}}else{const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[l]:r.push(l),s++}return py.errors=r,s===0}function hy(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=hy.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){for(const l in t)if(l!=="implicit"&&l!=="password"&&l!=="clientCredentials"&&l!=="authorizationCode"&&!Je.test(l)){const u={instancePath:e,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"};r===null?r=[u]:r.push(u),s++}t.implicit!==void 0&&(cy(t.implicit,{instancePath:e+"/implicit",parentData:t,parentDataProperty:"implicit",rootData:a,dynamicAnchors:o})||(r=r===null?cy.errors:r.concat(cy.errors),s=r.length)),t.password!==void 0&&(uy(t.password,{instancePath:e+"/password",parentData:t,parentDataProperty:"password",rootData:a,dynamicAnchors:o})||(r=r===null?uy.errors:r.concat(uy.errors),s=r.length)),t.clientCredentials!==void 0&&(fy(t.clientCredentials,{instancePath:e+"/clientCredentials",parentData:t,parentDataProperty:"clientCredentials",rootData:a,dynamicAnchors:o})||(r=r===null?fy.errors:r.concat(fy.errors),s=r.length)),t.authorizationCode!==void 0&&(py(t.authorizationCode,{instancePath:e+"/authorizationCode",parentData:t,parentDataProperty:"authorizationCode",rootData:a,dynamicAnchors:o})||(r=r===null?py.errors:r.concat(py.errors),s=r.length))}else{const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[l]:r.push(l),s++}return hy.errors=r,s===0}function dy(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=dy.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.type===void 0){const l={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};r===null?r=[l]:r.push(l),s++}if(t.flows===void 0){const l={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"flows"},message:"must have required property 'flows'"};r===null?r=[l]:r.push(l),s++}for(const l in t)if(l!=="type"&&l!=="flows"&&l!=="description"&&!Je.test(l)){const u={instancePath:e,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"};r===null?r=[u]:r.push(u),s++}if(t.type!==void 0&&t.type!=="oauth2"){const l={instancePath:e+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue:"oauth2"},message:"must be equal to constant"};r===null?r=[l]:r.push(l),s++}if(t.flows!==void 0&&(hy(t.flows,{instancePath:e+"/flows",parentData:t,parentDataProperty:"flows",rootData:a,dynamicAnchors:o})||(r=r===null?hy.errors:r.concat(hy.errors),s=r.length)),t.description!==void 0&&typeof t.description!="string"){const l={instancePath:e+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}}else{const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[l]:r.push(l),s++}return dy.errors=r,s===0}function my(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=my.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.type===void 0){const l={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};r===null?r=[l]:r.push(l),s++}if(t.openIdConnectUrl===void 0){const l={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"openIdConnectUrl"},message:"must have required property 'openIdConnectUrl'"};r===null?r=[l]:r.push(l),s++}for(const l in t)if(l!=="type"&&l!=="openIdConnectUrl"&&l!=="description"&&!Je.test(l)){const u={instancePath:e,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"};r===null?r=[u]:r.push(u),s++}if(t.type!==void 0&&t.type!=="openIdConnect"){const l={instancePath:e+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue:"openIdConnect"},message:"must be equal to constant"};r===null?r=[l]:r.push(l),s++}if(t.openIdConnectUrl!==void 0){let l=t.openIdConnectUrl;if(typeof l=="string"){if(!Ar.test(l)){const u={instancePath:e+"/openIdConnectUrl",schemaPath:"#/properties/openIdConnectUrl/format",keyword:"format",params:{format:"uri-reference"},message:'must match format "uri-reference"'};r===null?r=[u]:r.push(u),s++}}else{const u={instancePath:e+"/openIdConnectUrl",schemaPath:"#/properties/openIdConnectUrl/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[u]:r.push(u),s++}}if(t.description!==void 0&&typeof t.description!="string"){const l={instancePath:e+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}}else{const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[l]:r.push(l),s++}return my.errors=r,s===0}function kp(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=kp.evaluated;c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0);const l=s;let u=!0;const f=s;if(s===f)if(t&&typeof t=="object"&&!Array.isArray(t)){if(t.type===void 0){const x={};r===null?r=[x]:r.push(x),s++}else if(t.type!==void 0&&t.type!=="apiKey"){const x={};r===null?r=[x]:r.push(x),s++}}else{const x={};r===null?r=[x]:r.push(x),s++}var h=f===s;let d;if(s=l,r!==null&&(l?r.length=l:r=null),h){const x=s;if(oy(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o})||(r=r===null?oy.errors:r.concat(oy.errors),s=r.length),u=h=x===s,u)var m=!0;d="then"}else{const x=s,N=s;let j=!0;const I=s;if(s===I)if(t&&typeof t=="object"&&!Array.isArray(t)){if(t.type===void 0){const L={};r===null?r=[L]:r.push(L),s++}else if(t.type!==void 0&&t.type!=="apiKey"){const L={};r===null?r=[L]:r.push(L),s++}}else{const L={};r===null?r=[L]:r.push(L),s++}var g=I===s;let E;if(s=N,r!==null&&(N?r.length=N:r=null),g){const L=s;if(ly(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o})||(r=r===null?ly.errors:r.concat(ly.errors),s=r.length),j=g=L===s,j)var b=!0;E="then"}else{const L=s,q=s;let F=!0;const S=s;if(s===S)if(t&&typeof t=="object"&&!Array.isArray(t)){if(t.type===void 0){const M={};r===null?r=[M]:r.push(M),s++}else if(t.type!==void 0&&t.type!=="oauth2"){const M={};r===null?r=[M]:r.push(M),s++}}else{const M={};r===null?r=[M]:r.push(M),s++}var v=S===s;let D;if(s=q,r!==null&&(q?r.length=q:r=null),v){const M=s;if(dy(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o})||(r=r===null?dy.errors:r.concat(dy.errors),s=r.length),F=v=M===s,F)var P=!0;D="then"}else{const M=s,C=s;let H=!0;const X=s;if(s===X)if(t&&typeof t=="object"&&!Array.isArray(t)){if(t.type===void 0){const U={};r===null?r=[U]:r.push(U),s++}else if(t.type!==void 0&&t.type!=="openIdConnect"){const U={};r===null?r=[U]:r.push(U),s++}}else{const U={};r===null?r=[U]:r.push(U),s++}var A=X===s;let ie;if(s=C,r!==null&&(C?r.length=C:r=null),A){const U=s;if(my(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o})||(r=r===null?my.errors:r.concat(my.errors),s=r.length),H=A=U===s,H)var _=!0;ie="then"}else{const U=s;if(t&&typeof t=="object"&&!Array.isArray(t)){if(t.type===void 0){const R={instancePath:e,schemaPath:"#/else/else/else/else/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};r===null?r=[R]:r.push(R),s++}if(t.type!==void 0){let R=t.type;if(R!=="apiKey"&&R!=="http"&&R!=="oauth2"&&R!=="openIdConnect"){const z={instancePath:e+"/type",schemaPath:"#/else/else/else/else/properties/type/enum",keyword:"enum",params:{allowedValues:o8.else.else.else.else.properties.type.enum},message:"must be equal to one of the allowed values"};r===null?r=[z]:r.push(z),s++}}}else{const R={instancePath:e,schemaPath:"#/else/else/else/else/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[R]:r.push(R),s++}if(s>0){const R={required:[],type:[]},z={};for(const T of r)T.keyword!=="errorMessage"&&!T.emUsed&&T.instancePath===e&&T.keyword in R&&T.schemaPath.indexOf("#/else/else/else/else")===0&&/^\/[^\/]*$/.test(T.schemaPath.slice(21))&&(R[T.keyword].push(T),T.emUsed=!0);for(const T in R)if(R[T].length){const W={instancePath:e,schemaPath:"#/else/else/else/else/errorMessage",keyword:"errorMessage",params:{errors:R[T]},message:T in z?z[T]():o8.else.else.else.else.errorMessage[T]};r===null?r=[W]:r.push(W),s++}const V=[];for(const T of r)T.emUsed||V.push(T);r=V,s=V.length}H=A=U===s,H&&_!==!0&&((_=_||{}).type=!0),ie="else"}if(!H){const U={instancePath:e,schemaPath:"#/else/else/else/if",keyword:"if",params:{failingKeyword:ie},message:'must match "'+ie+'" schema'};r===null?r=[U]:r.push(U),s++}F=v=M===s,F&&P!==!0&&_!==void 0&&(_===!0?P=!0:(P=P||{},Object.assign(P,_))),D="else"}if(!F){const M={instancePath:e,schemaPath:"#/else/else/if",keyword:"if",params:{failingKeyword:D},message:'must match "'+D+'" schema'};r===null?r=[M]:r.push(M),s++}j=g=L===s,j&&b!==!0&&P!==void 0&&(P===!0?b=!0:(b=b||{},Object.assign(b,P))),E="else"}if(!j){const L={instancePath:e,schemaPath:"#/else/if",keyword:"if",params:{failingKeyword:E},message:'must match "'+E+'" schema'};r===null?r=[L]:r.push(L),s++}u=h=x===s,u&&m!==!0&&b!==void 0&&(b===!0?m=!0:(m=m||{},Object.assign(m,b))),d="else"}if(!u){const x={instancePath:e,schemaPath:"#/if",keyword:"if",params:{failingKeyword:d},message:'must match "'+d+'" schema'};r===null?r=[x]:r.push(x),s++}return kp.errors=r,c.props=m,s===0}function yy(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=yy.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){for(const R in t)if(!ta.call(Mtt.properties,R)&&!Je.test(R)){const z={instancePath:e,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:R},message:"must NOT have additional properties"};r===null?r=[z]:r.push(z),s++}if(t.schemas!==void 0){let R=t.schemas;if(R&&typeof R=="object"&&!Array.isArray(R)){var l={};for(const z in R)if(fa.test(z)){let V=R[z];const T=s;let W=!0;const le=s;if(s===le)if(V&&typeof V=="object"&&!Array.isArray(V)){if(V.$ref===void 0){const ae={};r===null?r=[ae]:r.push(ae),s++}}else{const ae={};r===null?r=[ae]:r.push(ae),s++}var u=le===s;let ve;if(s=T,r!==null&&(T?r.length=T:r=null),u){const ae=s;if(ze(V,{instancePath:e+"/schemas/"+z.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:R,parentDataProperty:z,rootData:a,dynamicAnchors:o}))var f=ze.evaluated.props;else r=r===null?ze.errors:r.concat(ze.errors),s=r.length;W=u=ae===s,ve="then"}else{const ae=s;Qi(V,{instancePath:e+"/schemas/"+z.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:R,parentDataProperty:z,rootData:a,dynamicAnchors:o})||(r=r===null?Qi.errors:r.concat(Qi.errors),s=r.length),W=u=ae===s,W&&f!==!0&&(f=!0),ve="else"}if(!W){const ae={instancePath:e+"/schemas/"+z.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/schemas/patternProperties/%5E%5Ba-zA-Z0-9%5C.%5C-_%5D%2B%24/if",keyword:"if",params:{failingKeyword:ve},message:'must match "'+ve+'" schema'};r===null?r=[ae]:r.push(ae),s++}l[z]=!0}}else{const z={instancePath:e+"/schemas",schemaPath:"#/properties/schemas/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[z]:r.push(z),s++}}if(t.responses!==void 0){let R=t.responses;if(R&&typeof R=="object"&&!Array.isArray(R)){var h={};for(const z in R)if(fa.test(z)){let V=R[z];const T=s;let W=!0;const le=s;if(s===le)if(V&&typeof V=="object"&&!Array.isArray(V)){if(V.$ref===void 0){const ae={};r===null?r=[ae]:r.push(ae),s++}}else{const ae={};r===null?r=[ae]:r.push(ae),s++}var d=le===s;let ve;if(s=T,r!==null&&(T?r.length=T:r=null),d){const ae=s;if(ze(V,{instancePath:e+"/responses/"+z.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:R,parentDataProperty:z,rootData:a,dynamicAnchors:o}))var m=ze.evaluated.props;else r=r===null?ze.errors:r.concat(ze.errors),s=r.length;W=d=ae===s,ve="then"}else{const ae=s;Js(V,{instancePath:e+"/responses/"+z.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:R,parentDataProperty:z,rootData:a,dynamicAnchors:o})||(r=r===null?Js.errors:r.concat(Js.errors),s=r.length),W=d=ae===s,W&&m!==!0&&(m=!0),ve="else"}if(!W){const ae={instancePath:e+"/responses/"+z.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/responses/patternProperties/%5E%5Ba-zA-Z0-9%5C.%5C-_%5D%2B%24/if",keyword:"if",params:{failingKeyword:ve},message:'must match "'+ve+'" schema'};r===null?r=[ae]:r.push(ae),s++}h[z]=!0}}else{const z={instancePath:e+"/responses",schemaPath:"#/properties/responses/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[z]:r.push(z),s++}}if(t.parameters!==void 0){let R=t.parameters;if(R&&typeof R=="object"&&!Array.isArray(R)){var g={};for(const z in R)if(fa.test(z)){let V=R[z];const T=s;let W=!0;const le=s;if(s===le)if(V&&typeof V=="object"&&!Array.isArray(V)){if(V.$ref===void 0){const ae={};r===null?r=[ae]:r.push(ae),s++}}else{const ae={};r===null?r=[ae]:r.push(ae),s++}var b=le===s;let ve;if(s=T,r!==null&&(T?r.length=T:r=null),b){const ae=s;if(ze(V,{instancePath:e+"/parameters/"+z.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:R,parentDataProperty:z,rootData:a,dynamicAnchors:o}))var v=ze.evaluated.props;else r=r===null?ze.errors:r.concat(ze.errors),s=r.length;W=b=ae===s,ve="then"}else{const ae=s;fo(V,{instancePath:e+"/parameters/"+z.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:R,parentDataProperty:z,rootData:a,dynamicAnchors:o})||(r=r===null?fo.errors:r.concat(fo.errors),s=r.length),W=b=ae===s,W&&v!==!0&&(v=!0),ve="else"}if(!W){const ae={instancePath:e+"/parameters/"+z.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/parameters/patternProperties/%5E%5Ba-zA-Z0-9%5C.%5C-_%5D%2B%24/if",keyword:"if",params:{failingKeyword:ve},message:'must match "'+ve+'" schema'};r===null?r=[ae]:r.push(ae),s++}g[z]=!0}}else{const z={instancePath:e+"/parameters",schemaPath:"#/properties/parameters/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[z]:r.push(z),s++}}if(t.examples!==void 0){let R=t.examples;if(R&&typeof R=="object"&&!Array.isArray(R)){var P={};for(const z in R)if(fa.test(z)){let V=R[z];const T=s;let W=!0;const le=s;if(s===le)if(V&&typeof V=="object"&&!Array.isArray(V)){if(V.$ref===void 0){const ae={};r===null?r=[ae]:r.push(ae),s++}}else{const ae={};r===null?r=[ae]:r.push(ae),s++}var A=le===s;let ve;if(s=T,r!==null&&(T?r.length=T:r=null),A){const ae=s;if(ze(V,{instancePath:e+"/examples/"+z.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:R,parentDataProperty:z,rootData:a,dynamicAnchors:o}))var _=ze.evaluated.props;else r=r===null?ze.errors:r.concat(ze.errors),s=r.length;W=A=ae===s,ve="then"}else{const ae=s;xa(V,{instancePath:e+"/examples/"+z.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:R,parentDataProperty:z,rootData:a,dynamicAnchors:o})||(r=r===null?xa.errors:r.concat(xa.errors),s=r.length),W=A=ae===s,W&&_!==!0&&(_=!0),ve="else"}if(!W){const ae={instancePath:e+"/examples/"+z.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/examples/patternProperties/%5E%5Ba-zA-Z0-9%5C.%5C-_%5D%2B%24/if",keyword:"if",params:{failingKeyword:ve},message:'must match "'+ve+'" schema'};r===null?r=[ae]:r.push(ae),s++}P[z]=!0}}else{const z={instancePath:e+"/examples",schemaPath:"#/properties/examples/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[z]:r.push(z),s++}}if(t.requestBodies!==void 0){let R=t.requestBodies;if(R&&typeof R=="object"&&!Array.isArray(R)){var x={};for(const z in R)if(fa.test(z)){let V=R[z];const T=s;let W=!0;const le=s;if(s===le)if(V&&typeof V=="object"&&!Array.isArray(V)){if(V.$ref===void 0){const ae={};r===null?r=[ae]:r.push(ae),s++}}else{const ae={};r===null?r=[ae]:r.push(ae),s++}var N=le===s;let ve;if(s=T,r!==null&&(T?r.length=T:r=null),N){const ae=s;if(ze(V,{instancePath:e+"/requestBodies/"+z.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:R,parentDataProperty:z,rootData:a,dynamicAnchors:o}))var j=ze.evaluated.props;else r=r===null?ze.errors:r.concat(ze.errors),s=r.length;W=N=ae===s,ve="then"}else{const ae=s;Gc(V,{instancePath:e+"/requestBodies/"+z.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:R,parentDataProperty:z,rootData:a,dynamicAnchors:o})||(r=r===null?Gc.errors:r.concat(Gc.errors),s=r.length),W=N=ae===s,W&&j!==!0&&(j=!0),ve="else"}if(!W){const ae={instancePath:e+"/requestBodies/"+z.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/requestBodies/patternProperties/%5E%5Ba-zA-Z0-9%5C.%5C-_%5D%2B%24/if",keyword:"if",params:{failingKeyword:ve},message:'must match "'+ve+'" schema'};r===null?r=[ae]:r.push(ae),s++}x[z]=!0}}else{const z={instancePath:e+"/requestBodies",schemaPath:"#/properties/requestBodies/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[z]:r.push(z),s++}}if(t.headers!==void 0){let R=t.headers;if(R&&typeof R=="object"&&!Array.isArray(R)){var I={};for(const z in R)if(fa.test(z)){let V=R[z];const T=s;let W=!0;const le=s;if(s===le)if(V&&typeof V=="object"&&!Array.isArray(V)){if(V.$ref===void 0){const ae={};r===null?r=[ae]:r.push(ae),s++}}else{const ae={};r===null?r=[ae]:r.push(ae),s++}var E=le===s;let ve;if(s=T,r!==null&&(T?r.length=T:r=null),E){const ae=s;if(ze(V,{instancePath:e+"/headers/"+z.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:R,parentDataProperty:z,rootData:a,dynamicAnchors:o}))var L=ze.evaluated.props;else r=r===null?ze.errors:r.concat(ze.errors),s=r.length;W=E=ae===s,ve="then"}else{const ae=s;uo(V,{instancePath:e+"/headers/"+z.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:R,parentDataProperty:z,rootData:a,dynamicAnchors:o})||(r=r===null?uo.errors:r.concat(uo.errors),s=r.length),W=E=ae===s,W&&L!==!0&&(L=!0),ve="else"}if(!W){const ae={instancePath:e+"/headers/"+z.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/headers/patternProperties/%5E%5Ba-zA-Z0-9%5C.%5C-_%5D%2B%24/if",keyword:"if",params:{failingKeyword:ve},message:'must match "'+ve+'" schema'};r===null?r=[ae]:r.push(ae),s++}I[z]=!0}}else{const z={instancePath:e+"/headers",schemaPath:"#/properties/headers/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[z]:r.push(z),s++}}if(t.securitySchemes!==void 0){let R=t.securitySchemes;if(R&&typeof R=="object"&&!Array.isArray(R)){var q={};for(const z in R)if(fa.test(z)){let V=R[z];const T=s;let W=!0;const le=s;if(s===le)if(V&&typeof V=="object"&&!Array.isArray(V)){if(V.$ref===void 0){const ae={};r===null?r=[ae]:r.push(ae),s++}}else{const ae={};r===null?r=[ae]:r.push(ae),s++}var F=le===s;let ve;if(s=T,r!==null&&(T?r.length=T:r=null),F){const ae=s;if(ze(V,{instancePath:e+"/securitySchemes/"+z.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:R,parentDataProperty:z,rootData:a,dynamicAnchors:o}))var S=ze.evaluated.props;else r=r===null?ze.errors:r.concat(ze.errors),s=r.length;W=F=ae===s,ve="then"}else{const ae=s;if(kp(V,{instancePath:e+"/securitySchemes/"+z.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:R,parentDataProperty:z,rootData:a,dynamicAnchors:o}))var D=kp.evaluated.props;else r=r===null?kp.errors:r.concat(kp.errors),s=r.length;W=F=ae===s,W&&S!==!0&&D!==void 0&&(D===!0?S=!0:(S=S||{},Object.assign(S,D))),ve="else"}if(!W){const ae={instancePath:e+"/securitySchemes/"+z.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/securitySchemes/patternProperties/%5E%5Ba-zA-Z0-9%5C.%5C-_%5D%2B%24/if",keyword:"if",params:{failingKeyword:ve},message:'must match "'+ve+'" schema'};r===null?r=[ae]:r.push(ae),s++}q[z]=!0}}else{const z={instancePath:e+"/securitySchemes",schemaPath:"#/properties/securitySchemes/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[z]:r.push(z),s++}}if(t.links!==void 0){let R=t.links;if(R&&typeof R=="object"&&!Array.isArray(R)){var M={};for(const z in R)if(fa.test(z)){let V=R[z];const T=s;let W=!0;const le=s;if(s===le)if(V&&typeof V=="object"&&!Array.isArray(V)){if(V.$ref===void 0){const ae={};r===null?r=[ae]:r.push(ae),s++}}else{const ae={};r===null?r=[ae]:r.push(ae),s++}var C=le===s;let ve;if(s=T,r!==null&&(T?r.length=T:r=null),C){const ae=s;if(ze(V,{instancePath:e+"/links/"+z.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:R,parentDataProperty:z,rootData:a,dynamicAnchors:o}))var H=ze.evaluated.props;else r=r===null?ze.errors:r.concat(ze.errors),s=r.length;W=C=ae===s,ve="then"}else{const ae=s;Kc(V,{instancePath:e+"/links/"+z.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:R,parentDataProperty:z,rootData:a,dynamicAnchors:o})||(r=r===null?Kc.errors:r.concat(Kc.errors),s=r.length),W=C=ae===s,W&&H!==!0&&(H=!0),ve="else"}if(!W){const ae={instancePath:e+"/links/"+z.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/links/patternProperties/%5E%5Ba-zA-Z0-9%5C.%5C-_%5D%2B%24/if",keyword:"if",params:{failingKeyword:ve},message:'must match "'+ve+'" schema'};r===null?r=[ae]:r.push(ae),s++}M[z]=!0}}else{const z={instancePath:e+"/links",schemaPath:"#/properties/links/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[z]:r.push(z),s++}}if(t.callbacks!==void 0){let R=t.callbacks;if(R&&typeof R=="object"&&!Array.isArray(R)){var X={};for(const z in R)if(fa.test(z)){let V=R[z];const T=s;let W=!0;const le=s;if(s===le)if(V&&typeof V=="object"&&!Array.isArray(V)){if(V.$ref===void 0){const ae={};r===null?r=[ae]:r.push(ae),s++}}else{const ae={};r===null?r=[ae]:r.push(ae),s++}var ie=le===s;let ve;if(s=T,r!==null&&(T?r.length=T:r=null),ie){const ae=s;if(ze(V,{instancePath:e+"/callbacks/"+z.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:R,parentDataProperty:z,rootData:a,dynamicAnchors:o}))var U=ze.evaluated.props;else r=r===null?ze.errors:r.concat(ze.errors),s=r.length;W=ie=ae===s,ve="then"}else{const ae=s;Yc(V,{instancePath:e+"/callbacks/"+z.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:R,parentDataProperty:z,rootData:a,dynamicAnchors:o})||(r=r===null?Yc.errors:r.concat(Yc.errors),s=r.length),W=ie=ae===s,W&&U!==!0&&(U=!0),ve="else"}if(!W){const ae={instancePath:e+"/callbacks/"+z.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/callbacks/patternProperties/%5E%5Ba-zA-Z0-9%5C.%5C-_%5D%2B%24/if",keyword:"if",params:{failingKeyword:ve},message:'must match "'+ve+'" schema'};r===null?r=[ae]:r.push(ae),s++}X[z]=!0}}else{const z={instancePath:e+"/callbacks",schemaPath:"#/properties/callbacks/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[z]:r.push(z),s++}}}else{const R={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[R]:r.push(R),s++}return yy.errors=r,s===0}function ES(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=ES.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.openapi===void 0){const l={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"openapi"},message:"must have required property 'openapi'"};r===null?r=[l]:r.push(l),s++}if(t.info===void 0){const l={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"info"},message:"must have required property 'info'"};r===null?r=[l]:r.push(l),s++}if(t.paths===void 0){const l={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"paths"},message:"must have required property 'paths'"};r===null?r=[l]:r.push(l),s++}for(const l in t)if(l!=="openapi"&&l!=="info"&&l!=="externalDocs"&&l!=="servers"&&l!=="security"&&l!=="tags"&&l!=="paths"&&l!=="components"&&!Je.test(l)){const u={instancePath:e,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"};r===null?r=[u]:r.push(u),s++}if(t.openapi!==void 0){let l=t.openapi;if(typeof l=="string"){if(!Ott.test(l)){const u={instancePath:e+"/openapi",schemaPath:"#/properties/openapi/pattern",keyword:"pattern",params:{pattern:"^3\\.0\\.\\d(-.+)?$"},message:'must match pattern "^3\\.0\\.\\d(-.+)?$"'};r===null?r=[u]:r.push(u),s++}}else{const u={instancePath:e+"/openapi",schemaPath:"#/properties/openapi/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[u]:r.push(u),s++}}if(t.info!==void 0&&(Qm(t.info,{instancePath:e+"/info",parentData:t,parentDataProperty:"info",rootData:a,dynamicAnchors:o})||(r=r===null?Qm.errors:r.concat(Qm.errors),s=r.length)),t.externalDocs!==void 0&&(Sa(t.externalDocs,{instancePath:e+"/externalDocs",parentData:t,parentDataProperty:"externalDocs",rootData:a,dynamicAnchors:o})||(r=r===null?Sa.errors:r.concat(Sa.errors),s=r.length)),t.servers!==void 0){let l=t.servers;if(Array.isArray(l)){const u=l.length;for(let f=0;f1){e:for(;h--;)for(f=h;f--;)if(Wr(l[h],l[f])){const d={instancePath:e+"/tags",schemaPath:"#/properties/tags/uniqueItems",keyword:"uniqueItems",params:{i:h,j:f},message:"must NOT have duplicate items (items ## "+f+" and "+h+" are identical)"};r===null?r=[d]:r.push(d),s++;break e}}}else{const u={instancePath:e+"/tags",schemaPath:"#/properties/tags/type",keyword:"type",params:{type:"array"},message:"must be array"};r===null?r=[u]:r.push(u),s++}}t.paths!==void 0&&(sy(t.paths,{instancePath:e+"/paths",parentData:t,parentDataProperty:"paths",rootData:a,dynamicAnchors:o})||(r=r===null?sy.errors:r.concat(sy.errors),s=r.length)),t.components!==void 0&&(yy(t.components,{instancePath:e+"/components",parentData:t,parentDataProperty:"components",rootData:a,dynamicAnchors:o})||(r=r===null?yy.errors:r.concat(yy.errors),s=r.length))}else{const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[l]:r.push(l),s++}return ES.errors=r,s===0}oy.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},ly.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},cy.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},uy.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},fy.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},py.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},hy.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},dy.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},my.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},kp.evaluated={dynamicProps:!0,dynamicItems:!1},yy.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},ES.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};Ll.oas3_1=IS;const Ntt={$id:"https://spec.openapis.org/oas/3.1/schema/2021-09-28",$schema:"https://json-schema.org/draft/2020-12/schema",description:"The description of OpenAPI v3.1.x documents without schema validation, as defined by https://spec.openapis.org/oas/v3.1.0",type:"object",properties:{openapi:{type:"string",pattern:"^3\\.1\\.\\d+(-.+)?$"},info:{$ref:"#/$defs/info"},jsonSchemaDialect:{type:"string",format:"uri",default:"https://spec.openapis.org/oas/3.1/dialect/base"},servers:{type:"array",items:{$ref:"#/$defs/server"},default:[{url:"/"}]},paths:{$ref:"#/$defs/paths"},webhooks:{type:"object",additionalProperties:{$ref:"#/$defs/path-item-or-reference"}},components:{$ref:"#/$defs/components"},security:{type:"array",items:{$ref:"#/$defs/security-requirement"}},tags:{type:"array",items:{$ref:"#/$defs/tag"}},externalDocs:{$ref:"#/$defs/external-documentation"}},required:["openapi","info"],errorMessage:{anyOf:'The document must have either "paths", "webhooks" or "components"'},anyOf:[{errorMessage:'The document must have either "paths", "webhooks" or "components"',required:["paths"]},{errorMessage:'The document must have either "paths", "webhooks" or "components"',required:["components"]},{errorMessage:'The document must have either "paths", "webhooks" or "components"',required:["webhooks"]}],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1,$defs:{info:{$comment:"https://spec.openapis.org/oas/v3.1.0#info-object",type:"object",properties:{title:{type:"string"},summary:{type:"string"},description:{type:"string"},termsOfService:{type:"string",format:"uri"},contact:{$ref:"#/$defs/contact"},license:{$ref:"#/$defs/license"},version:{type:"string"}},required:["title","version"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},contact:{$comment:"https://spec.openapis.org/oas/v3.1.0#contact-object",type:"object",properties:{name:{type:"string"},url:{type:"string",format:"uri"},email:{type:"string",format:"email"}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},license:{$comment:"https://spec.openapis.org/oas/v3.1.0#license-object",type:"object",properties:{name:{type:"string"},identifier:{type:"string"},url:{type:"string",format:"uri"}},required:["name"],dependentSchemas:{identifier:{not:{required:["url"]}}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},server:{$comment:"https://spec.openapis.org/oas/v3.1.0#server-object",type:"object",properties:{url:{type:"string"},description:{type:"string"},variables:{type:"object",additionalProperties:{$ref:"#/$defs/server-variable"}}},required:["url"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"server-variable":{$comment:"https://spec.openapis.org/oas/v3.1.0#server-variable-object",type:"object",properties:{enum:{type:"array",items:{type:"string"},minItems:1},default:{type:"string"},description:{type:"string"}},required:["default"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},components:{$comment:"https://spec.openapis.org/oas/v3.1.0#components-object",type:"object",properties:{schemas:{type:"object",additionalProperties:{$ref:"https://spec.openapis.org/oas/3.1/dialect/base"}},responses:{type:"object",additionalProperties:{$ref:"#/$defs/response-or-reference"}},parameters:{type:"object",additionalProperties:{$ref:"#/$defs/parameter-or-reference"}},examples:{type:"object",additionalProperties:{$ref:"#/$defs/example-or-reference"}},requestBodies:{type:"object",additionalProperties:{$ref:"#/$defs/request-body-or-reference"}},headers:{type:"object",additionalProperties:{$ref:"#/$defs/header-or-reference"}},securitySchemes:{type:"object",additionalProperties:{$ref:"#/$defs/security-scheme-or-reference"}},links:{type:"object",additionalProperties:{$ref:"#/$defs/link-or-reference"}},callbacks:{type:"object",additionalProperties:{$ref:"#/$defs/callbacks-or-reference"}},pathItems:{type:"object",additionalProperties:{$ref:"#/$defs/path-item-or-reference"}}},patternProperties:{"^(schemas|responses|parameters|examples|requestBodies|headers|securitySchemes|links|callbacks|pathItems)$":{$comment:"Enumerating all of the property names in the regex above is necessary for unevaluatedProperties to work as expected",propertyNames:{pattern:"^[a-zA-Z0-9._-]+$"}}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},paths:{$comment:"https://spec.openapis.org/oas/v3.1.0#paths-object",type:"object",patternProperties:{"^/":{$ref:"#/$defs/path-item"}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"path-item":{$comment:"https://spec.openapis.org/oas/v3.1.0#path-item-object",type:"object",properties:{summary:{type:"string"},description:{type:"string"},servers:{type:"array",items:{$ref:"#/$defs/server"}},parameters:{type:"array",items:{$ref:"#/$defs/parameter-or-reference"}},get:{$ref:"#/$defs/operation"},put:{$ref:"#/$defs/operation"},post:{$ref:"#/$defs/operation"},delete:{$ref:"#/$defs/operation"},options:{$ref:"#/$defs/operation"},head:{$ref:"#/$defs/operation"},patch:{$ref:"#/$defs/operation"},trace:{$ref:"#/$defs/operation"}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"path-item-or-reference":{if:{type:"object",required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/path-item"}},operation:{$comment:"https://spec.openapis.org/oas/v3.1.0#operation-object",type:"object",properties:{tags:{type:"array",items:{type:"string"}},summary:{type:"string"},description:{type:"string"},externalDocs:{$ref:"#/$defs/external-documentation"},operationId:{type:"string"},parameters:{type:"array",items:{$ref:"#/$defs/parameter-or-reference"}},requestBody:{$ref:"#/$defs/request-body-or-reference"},responses:{$ref:"#/$defs/responses"},callbacks:{type:"object",additionalProperties:{$ref:"#/$defs/callbacks-or-reference"}},deprecated:{default:!1,type:"boolean"},security:{type:"array",items:{$ref:"#/$defs/security-requirement"}},servers:{type:"array",items:{$ref:"#/$defs/server"}}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"external-documentation":{$comment:"https://spec.openapis.org/oas/v3.1.0#external-documentation-object",type:"object",properties:{description:{type:"string"},url:{type:"string",format:"uri"}},required:["url"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},parameter:{$comment:"https://spec.openapis.org/oas/v3.1.0#parameter-object",type:"object",properties:{name:{type:"string"},in:{enum:["query","header","path","cookie"]},description:{type:"string"},required:{default:!1,type:"boolean"},deprecated:{default:!1,type:"boolean"},schema:{$ref:"https://spec.openapis.org/oas/3.1/dialect/base"},content:{$ref:"#/$defs/content",minProperties:1,maxProperties:1}},required:["name","in"],oneOf:[{required:["schema"]},{required:["content"]}],if:{properties:{in:{const:"query"}},required:["in"]},then:{properties:{allowEmptyValue:{default:!1,type:"boolean"}}},dependentSchemas:{schema:{properties:{style:{type:"string"},explode:{type:"boolean"}},allOf:[{$ref:"#/$defs/examples"},{$ref:"#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-path"},{$ref:"#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-header"},{$ref:"#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-query"},{$ref:"#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-cookie"},{$ref:"#/$defs/styles-for-form"}],$defs:{"styles-for-path":{if:{properties:{in:{const:"path"}},required:["in"]},then:{properties:{style:{default:"simple",enum:["matrix","label","simple"]},required:{const:!0}},required:["required"]}},"styles-for-header":{if:{properties:{in:{const:"header"}},required:["in"]},then:{properties:{style:{default:"simple",const:"simple"}}}},"styles-for-query":{if:{properties:{in:{const:"query"}},required:["in"]},then:{properties:{style:{default:"form",enum:["form","spaceDelimited","pipeDelimited","deepObject"]},allowReserved:{default:!1,type:"boolean"}}}},"styles-for-cookie":{if:{properties:{in:{const:"cookie"}},required:["in"]},then:{properties:{style:{default:"form",const:"form"}}}}}}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"parameter-or-reference":{if:{type:"object",required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/parameter"}},"request-body":{$comment:"https://spec.openapis.org/oas/v3.1.0#request-body-object",type:"object",properties:{description:{type:"string"},content:{$ref:"#/$defs/content"},required:{default:!1,type:"boolean"}},required:["content"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"request-body-or-reference":{if:{type:"object",required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/request-body"}},content:{$comment:"https://spec.openapis.org/oas/v3.1.0#fixed-fields-10",type:"object",additionalProperties:{$ref:"#/$defs/media-type"},propertyNames:{format:"media-range"}},"media-type":{$comment:"https://spec.openapis.org/oas/v3.1.0#media-type-object",type:"object",properties:{schema:{$ref:"https://spec.openapis.org/oas/3.1/dialect/base"},encoding:{type:"object",additionalProperties:{$ref:"#/$defs/encoding"}}},allOf:[{$ref:"#/$defs/specification-extensions"},{$ref:"#/$defs/examples"}],unevaluatedProperties:!1},encoding:{$comment:"https://spec.openapis.org/oas/v3.1.0#encoding-object",type:"object",properties:{contentType:{type:"string",format:"media-range"},headers:{type:"object",additionalProperties:{$ref:"#/$defs/header-or-reference"}},style:{default:"form",enum:["form","spaceDelimited","pipeDelimited","deepObject"]},explode:{type:"boolean"},allowReserved:{default:!1,type:"boolean"}},allOf:[{$ref:"#/$defs/specification-extensions"},{$ref:"#/$defs/styles-for-form"}],unevaluatedProperties:!1},responses:{$comment:"https://spec.openapis.org/oas/v3.1.0#responses-object",type:"object",properties:{default:{$ref:"#/$defs/response-or-reference"}},patternProperties:{"^[1-5](?:[0-9]{2}|XX)$":{$ref:"#/$defs/response-or-reference"}},minProperties:1,$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1,if:{$comment:"either default, or at least one response code property must exist",patternProperties:{"^[1-5](?:[0-9]{2}|XX)$":!1}},then:{required:["default"]}},response:{$comment:"https://spec.openapis.org/oas/v3.1.0#response-object",type:"object",properties:{description:{type:"string"},headers:{type:"object",additionalProperties:{$ref:"#/$defs/header-or-reference"}},content:{$ref:"#/$defs/content"},links:{type:"object",additionalProperties:{$ref:"#/$defs/link-or-reference"}}},required:["description"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"response-or-reference":{if:{type:"object",required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/response"}},callbacks:{$comment:"https://spec.openapis.org/oas/v3.1.0#callback-object",type:"object",$ref:"#/$defs/specification-extensions",additionalProperties:{$ref:"#/$defs/path-item-or-reference"}},"callbacks-or-reference":{if:{type:"object",required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/callbacks"}},example:{$comment:"https://spec.openapis.org/oas/v3.1.0#example-object",type:"object",properties:{summary:{type:"string"},description:{type:"string"},value:!0,externalValue:{type:"string",format:"uri"}},not:{required:["value","externalValue"]},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"example-or-reference":{if:{type:"object",required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/example"}},link:{$comment:"https://spec.openapis.org/oas/v3.1.0#link-object",type:"object",properties:{operationRef:{type:"string",format:"uri-reference"},operationId:{type:"string"},parameters:{$ref:"#/$defs/map-of-strings"},requestBody:!0,description:{type:"string"},body:{$ref:"#/$defs/server"}},oneOf:[{required:["operationRef"]},{required:["operationId"]}],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"link-or-reference":{if:{type:"object",required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/link"}},header:{$comment:"https://spec.openapis.org/oas/v3.1.0#header-object",type:"object",properties:{description:{type:"string"},required:{default:!1,type:"boolean"},deprecated:{default:!1,type:"boolean"},schema:{$ref:"https://spec.openapis.org/oas/3.1/dialect/base"},content:{$ref:"#/$defs/content",minProperties:1,maxProperties:1}},oneOf:[{required:["schema"]},{required:["content"]}],dependentSchemas:{schema:{properties:{style:{default:"simple",const:"simple"},explode:{default:!1,type:"boolean"}},$ref:"#/$defs/examples"}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"header-or-reference":{if:{type:"object",required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/header"}},tag:{$comment:"https://spec.openapis.org/oas/v3.1.0#tag-object",type:"object",properties:{name:{type:"string"},description:{type:"string"},externalDocs:{$ref:"#/$defs/external-documentation"}},required:["name"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},reference:{$comment:"https://spec.openapis.org/oas/v3.1.0#reference-object",type:"object",properties:{$ref:{type:"string",format:"uri-reference"},summary:{type:"string"},description:{type:"string"}}},schema:{$comment:"https://spec.openapis.org/oas/v3.1.0#schema-object",$ref:"https://spec.openapis.org/oas/3.1/dialect/base"},"security-scheme":{$comment:"https://spec.openapis.org/oas/v3.1.0#security-scheme-object",type:"object",properties:{type:{enum:["apiKey","http","mutualTLS","oauth2","openIdConnect"]},description:{type:"string"}},required:["type"],allOf:[{$ref:"#/$defs/specification-extensions"},{$ref:"#/$defs/security-scheme/$defs/type-apikey"},{$ref:"#/$defs/security-scheme/$defs/type-http"},{$ref:"#/$defs/security-scheme/$defs/type-http-bearer"},{$ref:"#/$defs/security-scheme/$defs/type-oauth2"},{$ref:"#/$defs/security-scheme/$defs/type-oidc"}],unevaluatedProperties:!1,$defs:{"type-apikey":{if:{properties:{type:{const:"apiKey"}},required:["type"]},then:{properties:{name:{type:"string"},in:{enum:["query","header","cookie"]}},required:["name","in"]}},"type-http":{if:{properties:{type:{const:"http"}},required:["type"]},then:{properties:{scheme:{type:"string"}},required:["scheme"]}},"type-http-bearer":{if:{properties:{type:{const:"http"},scheme:{type:"string",pattern:"^[Bb][Ee][Aa][Rr][Ee][Rr]$"}},required:["type","scheme"]},then:{properties:{bearerFormat:{type:"string"}}}},"type-oauth2":{if:{properties:{type:{const:"oauth2"}},required:["type"]},then:{properties:{flows:{$ref:"#/$defs/oauth-flows"}},required:["flows"]}},"type-oidc":{if:{properties:{type:{const:"openIdConnect"}},required:["type"]},then:{properties:{openIdConnectUrl:{type:"string",format:"uri"}},required:["openIdConnectUrl"]}}}},"security-scheme-or-reference":{if:{type:"object",required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/security-scheme"}},"oauth-flows":{type:"object",properties:{implicit:{$ref:"#/$defs/oauth-flows/$defs/implicit"},password:{$ref:"#/$defs/oauth-flows/$defs/password"},clientCredentials:{$ref:"#/$defs/oauth-flows/$defs/client-credentials"},authorizationCode:{$ref:"#/$defs/oauth-flows/$defs/authorization-code"}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1,$defs:{implicit:{type:"object",properties:{authorizationUrl:{type:"string",format:"uri-reference"},refreshUrl:{type:"string",format:"uri-reference"},scopes:{$ref:"#/$defs/map-of-strings"}},required:["authorizationUrl","scopes"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},password:{type:"object",properties:{tokenUrl:{type:"string",format:"uri-reference"},refreshUrl:{type:"string",format:"uri-reference"},scopes:{$ref:"#/$defs/map-of-strings"}},required:["tokenUrl","scopes"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"client-credentials":{type:"object",properties:{tokenUrl:{type:"string",format:"uri-reference"},refreshUrl:{type:"string",format:"uri-reference"},scopes:{$ref:"#/$defs/map-of-strings"}},required:["tokenUrl","scopes"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"authorization-code":{type:"object",properties:{authorizationUrl:{type:"string",format:"uri-reference"},tokenUrl:{type:"string",format:"uri-reference"},refreshUrl:{type:"string",format:"uri-reference"},scopes:{$ref:"#/$defs/map-of-strings"}},required:["authorizationUrl","tokenUrl","scopes"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1}}},"security-requirement":{$comment:"https://spec.openapis.org/oas/v3.1.0#security-requirement-object",type:"object",additionalProperties:{type:"array",items:{type:"string"}}},"specification-extensions":{$comment:"https://spec.openapis.org/oas/v3.1.0#specification-extensions",patternProperties:{"^x-":!0}},examples:{properties:{example:!0,examples:{type:"object",additionalProperties:{$ref:"#/$defs/example-or-reference"}}}},"map-of-strings":{type:"object",additionalProperties:{type:"string"}},"styles-for-form":{if:{properties:{style:{const:"form"}},required:["style"]},then:{properties:{explode:{default:!0}}},else:{properties:{explode:{default:!1}}}}}};function wt(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){const r=wt.evaluated;if(r.dynamicProps&&(r.props=void 0),r.dynamicItems&&(r.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){var s={};for(const c in t)Je.test(c)&&(s[c]=!0)}return wt.errors=null,r.props=s,!0}function gy(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=gy.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),wt(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o}))var l=wt.evaluated.props;if(t&&typeof t=="object"&&!Array.isArray(t)){if(l!==!0&&((l=l||{}).name=!0,l.url=!0,l.email=!0),t.name!==void 0&&typeof t.name!="string"){const u={instancePath:e+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[u]:r.push(u),s++}if(t.url!==void 0){let u=t.url;if(typeof u=="string"){if(!Ni(u)){const f={instancePath:e+"/url",schemaPath:"#/properties/url/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};r===null?r=[f]:r.push(f),s++}}else{const f={instancePath:e+"/url",schemaPath:"#/properties/url/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[f]:r.push(f),s++}}if(t.email!==void 0){let u=t.email;if(typeof u=="string"){if(!GN.test(u)){const f={instancePath:e+"/email",schemaPath:"#/properties/email/format",keyword:"format",params:{format:"email"},message:'must match format "email"'};r===null?r=[f]:r.push(f),s++}}else{const f={instancePath:e+"/email",schemaPath:"#/properties/email/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[f]:r.push(f),s++}}if(l!==!0){for(const u in t)if(!l||!l[u]){const f={instancePath:e,schemaPath:"#/unevaluatedProperties",keyword:"unevaluatedProperties",params:{unevaluatedProperty:u},message:"must NOT have unevaluated properties"};r===null?r=[f]:r.push(f),s++}}}else{const u={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[u]:r.push(u),s++}return gy.errors=r,s===0}function vy(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=vy.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),wt(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o}))var l=wt.evaluated.props;if(t&&typeof t=="object"&&!Array.isArray(t)){if(t.name===void 0){const u={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"name"},message:"must have required property 'name'"};r===null?r=[u]:r.push(u),s++}if(l!==!0&&((l=l||{}).name=!0,l.identifier=!0,l.url=!0),t.name!==void 0&&typeof t.name!="string"){const u={instancePath:e+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[u]:r.push(u),s++}if(t.identifier!==void 0&&typeof t.identifier!="string"){const u={instancePath:e+"/identifier",schemaPath:"#/properties/identifier/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[u]:r.push(u),s++}if(t.url!==void 0){let u=t.url;if(typeof u=="string"){if(!Ni(u)){const f={instancePath:e+"/url",schemaPath:"#/properties/url/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};r===null?r=[f]:r.push(f),s++}}else{const f={instancePath:e+"/url",schemaPath:"#/properties/url/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[f]:r.push(f),s++}}if(t.identifier!==void 0){const u=s,f=s;if(t&&typeof t=="object"&&!Array.isArray(t)&&t.url===void 0){const h={};r===null?r=[h]:r.push(h),s++}if(f===s){const h={instancePath:e,schemaPath:"#/dependentSchemas/identifier/not",keyword:"not",params:{},message:"must NOT be valid"};r===null?r=[h]:r.push(h),s++}else s=u,r!==null&&(u?r.length=u:r=null)}if(l!==!0){for(const u in t)if(!l||!l[u]){const f={instancePath:e,schemaPath:"#/unevaluatedProperties",keyword:"unevaluatedProperties",params:{unevaluatedProperty:u},message:"must NOT have unevaluated properties"};r===null?r=[f]:r.push(f),s++}}}else{const u={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[u]:r.push(u),s++}return vy.errors=r,s===0}function Py(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Py.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),wt(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o}))var l=wt.evaluated.props;if(t&&typeof t=="object"&&!Array.isArray(t)){if(t.title===void 0){const u={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"title"},message:"must have required property 'title'"};r===null?r=[u]:r.push(u),s++}if(t.version===void 0){const u={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"version"},message:"must have required property 'version'"};r===null?r=[u]:r.push(u),s++}if(l!==!0&&((l=l||{}).title=!0,l.summary=!0,l.description=!0,l.termsOfService=!0,l.contact=!0,l.license=!0,l.version=!0),t.title!==void 0&&typeof t.title!="string"){const u={instancePath:e+"/title",schemaPath:"#/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[u]:r.push(u),s++}if(t.summary!==void 0&&typeof t.summary!="string"){const u={instancePath:e+"/summary",schemaPath:"#/properties/summary/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[u]:r.push(u),s++}if(t.description!==void 0&&typeof t.description!="string"){const u={instancePath:e+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[u]:r.push(u),s++}if(t.termsOfService!==void 0){let u=t.termsOfService;if(typeof u=="string"){if(!Ni(u)){const f={instancePath:e+"/termsOfService",schemaPath:"#/properties/termsOfService/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};r===null?r=[f]:r.push(f),s++}}else{const f={instancePath:e+"/termsOfService",schemaPath:"#/properties/termsOfService/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[f]:r.push(f),s++}}if(t.contact!==void 0&&(gy(t.contact,{instancePath:e+"/contact",parentData:t,parentDataProperty:"contact",rootData:a,dynamicAnchors:o})||(r=r===null?gy.errors:r.concat(gy.errors),s=r.length)),t.license!==void 0&&(vy(t.license,{instancePath:e+"/license",parentData:t,parentDataProperty:"license",rootData:a,dynamicAnchors:o})||(r=r===null?vy.errors:r.concat(vy.errors),s=r.length)),t.version!==void 0&&typeof t.version!="string"){const u={instancePath:e+"/version",schemaPath:"#/properties/version/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[u]:r.push(u),s++}if(l!==!0){for(const u in t)if(!l||!l[u]){const f={instancePath:e,schemaPath:"#/unevaluatedProperties",keyword:"unevaluatedProperties",params:{unevaluatedProperty:u},message:"must NOT have unevaluated properties"};r===null?r=[f]:r.push(f),s++}}}else{const u={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[u]:r.push(u),s++}return Py.errors=r,s===0}function by(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=by.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),wt(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o}))var l=wt.evaluated.props;if(t&&typeof t=="object"&&!Array.isArray(t)){if(t.default===void 0){const u={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"default"},message:"must have required property 'default'"};r===null?r=[u]:r.push(u),s++}if(l!==!0&&((l=l||{}).enum=!0,l.default=!0,l.description=!0),t.enum!==void 0){let u=t.enum;if(Array.isArray(u)){if(u.length<1){const h={instancePath:e+"/enum",schemaPath:"#/properties/enum/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items"};r===null?r=[h]:r.push(h),s++}const f=u.length;for(let h=0;hh?u:h))}else r=r===null?pa.errors:r.concat(pa.errors),s=r.length}else{const m={instancePath:e+"/$defs",schemaPath:"#/properties/%24defs/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[m]:r.push(m),s++}}}return pa.errors=r,s===0}pa.evaluated={props:{$id:!0,$schema:!0,$ref:!0,$anchor:!0,$dynamicRef:!0,$dynamicAnchor:!0,$vocabulary:!0,$comment:!0,$defs:!0},dynamicProps:!1,dynamicItems:!1};const ztt={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/applicator",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/applicator":!0},$dynamicAnchor:"meta",title:"Applicator vocabulary meta-schema",type:["object","boolean"],properties:{prefixItems:{$ref:"#/$defs/schemaArray"},items:{$dynamicRef:"#meta"},contains:{$dynamicRef:"#meta"},additionalProperties:{$dynamicRef:"#meta"},properties:{type:"object",additionalProperties:{$dynamicRef:"#meta"},default:{}},patternProperties:{type:"object",additionalProperties:{$dynamicRef:"#meta"},propertyNames:{format:"regex"},default:{}},dependentSchemas:{type:"object",additionalProperties:{$dynamicRef:"#meta"},default:{}},propertyNames:{$dynamicRef:"#meta"},if:{$dynamicRef:"#meta"},then:{$dynamicRef:"#meta"},else:{$dynamicRef:"#meta"},allOf:{$ref:"#/$defs/schemaArray"},anyOf:{$ref:"#/$defs/schemaArray"},oneOf:{$ref:"#/$defs/schemaArray"},not:{$dynamicRef:"#meta"}},$defs:{schemaArray:{type:"array",minItems:1,items:{$dynamicRef:"#meta"}}}};function Yn(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Yn.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),Array.isArray(t)){if(t.length<1){const m={instancePath:e,schemaPath:"#/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items"};r===null?r=[m]:r.push(m),s++}const d=t.length;for(let m=0;mh?u:h))}else r=r===null?Yn.errors:r.concat(Yn.errors),s=r.length}}else{const d={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"array"},message:"must be array"};r===null?r=[d]:r.push(d),s++}return Yn.errors=r,s===0}function dt(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=dt.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),(!t||typeof t!="object"||Array.isArray(t))&&typeof t!="boolean"){const Ne={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:ztt.type},message:"must be object,boolean"};r===null?r=[Ne]:r.push(Ne),s++}if(o.meta||(o.meta=dt),t&&typeof t=="object"&&!Array.isArray(t)){if(t.prefixItems!==void 0&&(Yn(t.prefixItems,{instancePath:e+"/prefixItems",parentData:t,parentDataProperty:"prefixItems",rootData:a,dynamicAnchors:o})||(r=r===null?Yn.errors:r.concat(Yn.errors),s=r.length)),t.items!==void 0){let Ne=t.items,Ce=o.meta;if(Ce)if(Ce(Ne,{instancePath:e+"/items",parentData:t,parentDataProperty:"items",rootData:a,dynamicAnchors:o}))var l=Ce.evaluated.props,u=Ce.evaluated.items;else r=r===null?Ce.errors:r.concat(Ce.errors),s=r.length;else if(dt(Ne,{instancePath:e+"/items",parentData:t,parentDataProperty:"items",rootData:a,dynamicAnchors:o})){var f=dt.evaluated.props;l!==!0&&f!==void 0&&(f===!0?l=!0:(l=l||{},Object.assign(l,f)));var h=dt.evaluated.items;u!==!0&&h!==void 0&&(u=h===!0||(u>h?u:h))}else r=r===null?dt.errors:r.concat(dt.errors),s=r.length}if(t.contains!==void 0){let Ne=t.contains,Ce=o.meta;if(Ce)if(Ce(Ne,{instancePath:e+"/contains",parentData:t,parentDataProperty:"contains",rootData:a,dynamicAnchors:o}))var d=Ce.evaluated.props,m=Ce.evaluated.items;else r=r===null?Ce.errors:r.concat(Ce.errors),s=r.length;else if(dt(Ne,{instancePath:e+"/contains",parentData:t,parentDataProperty:"contains",rootData:a,dynamicAnchors:o})){var g=dt.evaluated.props;d!==!0&&g!==void 0&&(g===!0?d=!0:(d=d||{},Object.assign(d,g)));var b=dt.evaluated.items;m!==!0&&b!==void 0&&(m=b===!0||(m>b?m:b))}else r=r===null?dt.errors:r.concat(dt.errors),s=r.length}if(t.additionalProperties!==void 0){let Ne=t.additionalProperties,Ce=o.meta;if(Ce)if(Ce(Ne,{instancePath:e+"/additionalProperties",parentData:t,parentDataProperty:"additionalProperties",rootData:a,dynamicAnchors:o}))var v=Ce.evaluated.props,P=Ce.evaluated.items;else r=r===null?Ce.errors:r.concat(Ce.errors),s=r.length;else if(dt(Ne,{instancePath:e+"/additionalProperties",parentData:t,parentDataProperty:"additionalProperties",rootData:a,dynamicAnchors:o})){var A=dt.evaluated.props;v!==!0&&A!==void 0&&(A===!0?v=!0:(v=v||{},Object.assign(v,A)));var _=dt.evaluated.items;P!==!0&&_!==void 0&&(P=_===!0||(P>_?P:_))}else r=r===null?dt.errors:r.concat(dt.errors),s=r.length}if(t.properties!==void 0){let Ne=t.properties;if(Ne&&typeof Ne=="object"&&!Array.isArray(Ne))for(const Ce in Ne){let $t=Ne[Ce],xe=o.meta;if(xe)if(xe($t,{instancePath:e+"/properties/"+Ce.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:Ne,parentDataProperty:Ce,rootData:a,dynamicAnchors:o}))var x=xe.evaluated.props,N=xe.evaluated.items;else r=r===null?xe.errors:r.concat(xe.errors),s=r.length;else if(dt($t,{instancePath:e+"/properties/"+Ce.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:Ne,parentDataProperty:Ce,rootData:a,dynamicAnchors:o})){var j=dt.evaluated.props;x!==!0&&j!==void 0&&(j===!0?x=!0:(x=x||{},Object.assign(x,j)));var I=dt.evaluated.items;N!==!0&&I!==void 0&&(N=I===!0||(N>I?N:I))}else r=r===null?dt.errors:r.concat(dt.errors),s=r.length}else{const Ce={instancePath:e+"/properties",schemaPath:"#/properties/properties/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[Ce]:r.push(Ce),s++}}if(t.patternProperties!==void 0){let Ne=t.patternProperties;if(Ne&&typeof Ne=="object"&&!Array.isArray(Ne)){for(const Ce in Ne)if(s!=s){const $t={instancePath:e+"/patternProperties",schemaPath:"#/properties/patternProperties/propertyNames",keyword:"propertyNames",params:{propertyName:Ce},message:"property name must be valid"};r===null?r=[$t]:r.push($t),s++}for(const Ce in Ne){let $t=Ne[Ce],xe=o.meta;if(xe)if(xe($t,{instancePath:e+"/patternProperties/"+Ce.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:Ne,parentDataProperty:Ce,rootData:a,dynamicAnchors:o}))var E=xe.evaluated.props,L=xe.evaluated.items;else r=r===null?xe.errors:r.concat(xe.errors),s=r.length;else if(dt($t,{instancePath:e+"/patternProperties/"+Ce.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:Ne,parentDataProperty:Ce,rootData:a,dynamicAnchors:o})){var q=dt.evaluated.props;E!==!0&&q!==void 0&&(q===!0?E=!0:(E=E||{},Object.assign(E,q)));var F=dt.evaluated.items;L!==!0&&F!==void 0&&(L=F===!0||(L>F?L:F))}else r=r===null?dt.errors:r.concat(dt.errors),s=r.length}}else{const Ce={instancePath:e+"/patternProperties",schemaPath:"#/properties/patternProperties/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[Ce]:r.push(Ce),s++}}if(t.dependentSchemas!==void 0){let Ne=t.dependentSchemas;if(Ne&&typeof Ne=="object"&&!Array.isArray(Ne))for(const Ce in Ne){let $t=Ne[Ce],xe=o.meta;if(xe)if(xe($t,{instancePath:e+"/dependentSchemas/"+Ce.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:Ne,parentDataProperty:Ce,rootData:a,dynamicAnchors:o}))var S=xe.evaluated.props,D=xe.evaluated.items;else r=r===null?xe.errors:r.concat(xe.errors),s=r.length;else if(dt($t,{instancePath:e+"/dependentSchemas/"+Ce.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:Ne,parentDataProperty:Ce,rootData:a,dynamicAnchors:o})){var M=dt.evaluated.props;S!==!0&&M!==void 0&&(M===!0?S=!0:(S=S||{},Object.assign(S,M)));var C=dt.evaluated.items;D!==!0&&C!==void 0&&(D=C===!0||(D>C?D:C))}else r=r===null?dt.errors:r.concat(dt.errors),s=r.length}else{const Ce={instancePath:e+"/dependentSchemas",schemaPath:"#/properties/dependentSchemas/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[Ce]:r.push(Ce),s++}}if(t.propertyNames!==void 0){let Ne=t.propertyNames,Ce=o.meta;if(Ce)if(Ce(Ne,{instancePath:e+"/propertyNames",parentData:t,parentDataProperty:"propertyNames",rootData:a,dynamicAnchors:o}))var H=Ce.evaluated.props,X=Ce.evaluated.items;else r=r===null?Ce.errors:r.concat(Ce.errors),s=r.length;else if(dt(Ne,{instancePath:e+"/propertyNames",parentData:t,parentDataProperty:"propertyNames",rootData:a,dynamicAnchors:o})){var ie=dt.evaluated.props;H!==!0&&ie!==void 0&&(ie===!0?H=!0:(H=H||{},Object.assign(H,ie)));var U=dt.evaluated.items;X!==!0&&U!==void 0&&(X=U===!0||(X>U?X:U))}else r=r===null?dt.errors:r.concat(dt.errors),s=r.length}if(t.if!==void 0){let Ne=t.if,Ce=o.meta;if(Ce)if(Ce(Ne,{instancePath:e+"/if",parentData:t,parentDataProperty:"if",rootData:a,dynamicAnchors:o}))var R=Ce.evaluated.props,z=Ce.evaluated.items;else r=r===null?Ce.errors:r.concat(Ce.errors),s=r.length;else if(dt(Ne,{instancePath:e+"/if",parentData:t,parentDataProperty:"if",rootData:a,dynamicAnchors:o})){var V=dt.evaluated.props;R!==!0&&V!==void 0&&(V===!0?R=!0:(R=R||{},Object.assign(R,V)));var T=dt.evaluated.items;z!==!0&&T!==void 0&&(z=T===!0||(z>T?z:T))}else r=r===null?dt.errors:r.concat(dt.errors),s=r.length}if(t.then!==void 0){let Ne=t.then,Ce=o.meta;if(Ce)if(Ce(Ne,{instancePath:e+"/then",parentData:t,parentDataProperty:"then",rootData:a,dynamicAnchors:o}))var W=Ce.evaluated.props,le=Ce.evaluated.items;else r=r===null?Ce.errors:r.concat(Ce.errors),s=r.length;else if(dt(Ne,{instancePath:e+"/then",parentData:t,parentDataProperty:"then",rootData:a,dynamicAnchors:o})){var ve=dt.evaluated.props;W!==!0&&ve!==void 0&&(ve===!0?W=!0:(W=W||{},Object.assign(W,ve)));var ae=dt.evaluated.items;le!==!0&&ae!==void 0&&(le=ae===!0||(le>ae?le:ae))}else r=r===null?dt.errors:r.concat(dt.errors),s=r.length}if(t.else!==void 0){let Ne=t.else,Ce=o.meta;if(Ce)if(Ce(Ne,{instancePath:e+"/else",parentData:t,parentDataProperty:"else",rootData:a,dynamicAnchors:o}))var _e=Ce.evaluated.props,he=Ce.evaluated.items;else r=r===null?Ce.errors:r.concat(Ce.errors),s=r.length;else if(dt(Ne,{instancePath:e+"/else",parentData:t,parentDataProperty:"else",rootData:a,dynamicAnchors:o})){var Ee=dt.evaluated.props;_e!==!0&&Ee!==void 0&&(Ee===!0?_e=!0:(_e=_e||{},Object.assign(_e,Ee)));var Ge=dt.evaluated.items;he!==!0&&Ge!==void 0&&(he=Ge===!0||(he>Ge?he:Ge))}else r=r===null?dt.errors:r.concat(dt.errors),s=r.length}if(t.allOf!==void 0&&(Yn(t.allOf,{instancePath:e+"/allOf",parentData:t,parentDataProperty:"allOf",rootData:a,dynamicAnchors:o})||(r=r===null?Yn.errors:r.concat(Yn.errors),s=r.length)),t.anyOf!==void 0&&(Yn(t.anyOf,{instancePath:e+"/anyOf",parentData:t,parentDataProperty:"anyOf",rootData:a,dynamicAnchors:o})||(r=r===null?Yn.errors:r.concat(Yn.errors),s=r.length)),t.oneOf!==void 0&&(Yn(t.oneOf,{instancePath:e+"/oneOf",parentData:t,parentDataProperty:"oneOf",rootData:a,dynamicAnchors:o})||(r=r===null?Yn.errors:r.concat(Yn.errors),s=r.length)),t.not!==void 0){let Ne=t.not,Ce=o.meta;if(Ce)if(Ce(Ne,{instancePath:e+"/not",parentData:t,parentDataProperty:"not",rootData:a,dynamicAnchors:o}))var Me=Ce.evaluated.props,Ae=Ce.evaluated.items;else r=r===null?Ce.errors:r.concat(Ce.errors),s=r.length;else if(dt(Ne,{instancePath:e+"/not",parentData:t,parentDataProperty:"not",rootData:a,dynamicAnchors:o})){var at=dt.evaluated.props;Me!==!0&&at!==void 0&&(at===!0?Me=!0:(Me=Me||{},Object.assign(Me,at)));var gt=dt.evaluated.items;Ae!==!0&>!==void 0&&(Ae=gt===!0||(Ae>gt?Ae:gt))}else r=r===null?dt.errors:r.concat(dt.errors),s=r.length}}return dt.errors=r,s===0}Yn.evaluated={items:!0,dynamicProps:!1,dynamicItems:!1},dt.evaluated={props:{prefixItems:!0,items:!0,contains:!0,additionalProperties:!0,properties:!0,patternProperties:!0,dependentSchemas:!0,propertyNames:!0,if:!0,then:!0,else:!0,allOf:!0,anyOf:!0,oneOf:!0,not:!0},dynamicProps:!1,dynamicItems:!1};const Utt={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/unevaluated",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/unevaluated":!0},$dynamicAnchor:"meta",title:"Unevaluated applicator vocabulary meta-schema",type:["object","boolean"],properties:{unevaluatedItems:{$dynamicRef:"#meta"},unevaluatedProperties:{$dynamicRef:"#meta"}}};function Gn(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Gn.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),(!t||typeof t!="object"||Array.isArray(t))&&typeof t!="boolean"){const v={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:Utt.type},message:"must be object,boolean"};r===null?r=[v]:r.push(v),s++}if(o.meta||(o.meta=Gn),t&&typeof t=="object"&&!Array.isArray(t)){if(t.unevaluatedItems!==void 0){let v=t.unevaluatedItems,P=o.meta;if(P)if(P(v,{instancePath:e+"/unevaluatedItems",parentData:t,parentDataProperty:"unevaluatedItems",rootData:a,dynamicAnchors:o}))var l=P.evaluated.props,u=P.evaluated.items;else r=r===null?P.errors:r.concat(P.errors),s=r.length;else if(Gn(v,{instancePath:e+"/unevaluatedItems",parentData:t,parentDataProperty:"unevaluatedItems",rootData:a,dynamicAnchors:o})){var f=Gn.evaluated.props;l!==!0&&f!==void 0&&(f===!0?l=!0:(l=l||{},Object.assign(l,f)));var h=Gn.evaluated.items;u!==!0&&h!==void 0&&(u=h===!0||(u>h?u:h))}else r=r===null?Gn.errors:r.concat(Gn.errors),s=r.length}if(t.unevaluatedProperties!==void 0){let v=t.unevaluatedProperties,P=o.meta;if(P)if(P(v,{instancePath:e+"/unevaluatedProperties",parentData:t,parentDataProperty:"unevaluatedProperties",rootData:a,dynamicAnchors:o}))var d=P.evaluated.props,m=P.evaluated.items;else r=r===null?P.errors:r.concat(P.errors),s=r.length;else if(Gn(v,{instancePath:e+"/unevaluatedProperties",parentData:t,parentDataProperty:"unevaluatedProperties",rootData:a,dynamicAnchors:o})){var g=Gn.evaluated.props;d!==!0&&g!==void 0&&(g===!0?d=!0:(d=d||{},Object.assign(d,g)));var b=Gn.evaluated.items;m!==!0&&b!==void 0&&(m=b===!0||(m>b?m:b))}else r=r===null?Gn.errors:r.concat(Gn.errors),s=r.length}}return Gn.errors=r,s===0}Gn.evaluated={props:{unevaluatedItems:!0,unevaluatedProperties:!0},dynamicProps:!1,dynamicItems:!1};const Btt={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://stoplight.io/json-schema/draft/2020-12/meta/validation",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/validation":!0},$dynamicAnchor:"meta",title:"Validation vocabulary meta-schema",type:["object","boolean"],properties:{type:{if:{type:"string"},then:{$ref:"#/$defs/simpleTypes"},else:{if:{type:"array"},then:{type:"array",items:{$ref:"#/$defs/simpleTypes"},minItems:1,uniqueItems:!0},else:{not:!0,errorMessage:'"type" property must be either a string or an array of strings'}}},const:!0,enum:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/$defs/nonNegativeInteger"},minLength:{$ref:"#/$defs/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},maxItems:{$ref:"#/$defs/nonNegativeInteger"},minItems:{$ref:"#/$defs/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},maxContains:{$ref:"#/$defs/nonNegativeInteger"},minContains:{$ref:"#/$defs/nonNegativeInteger",default:1},maxProperties:{$ref:"#/$defs/nonNegativeInteger"},minProperties:{$ref:"#/$defs/nonNegativeIntegerDefault0"},required:{$ref:"#/$defs/stringArray"},dependentRequired:{type:"object",additionalProperties:{$ref:"#/$defs/stringArray"}}},$defs:{nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{$ref:"#/$defs/nonNegativeInteger",default:0},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}}},Vtt={enum:["array","boolean","integer","null","number","object","string"]};function Sc(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Sc.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t!=="array"&&t!=="boolean"&&t!=="integer"&&t!=="null"&&t!=="number"&&t!=="object"&&t!=="string"){const l={instancePath:e,schemaPath:"#/enum",keyword:"enum",params:{allowedValues:Vtt.enum},message:"must be equal to one of the allowed values"};r===null?r=[l]:r.push(l),s++}return Sc.errors=r,s===0}function pi(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=pi.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),typeof t!="number"||t%1||isNaN(t)){const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"integer"},message:"must be integer"};r===null?r=[l]:r.push(l),s++}if(typeof t=="number"&&(t<0||isNaN(t))){const l={instancePath:e,schemaPath:"#/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0"};r===null?r=[l]:r.push(l),s++}return pi.errors=r,s===0}function Bs(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Bs.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),typeof t!="number"||t%1||isNaN(t)){const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"integer"},message:"must be integer"};r===null?r=[l]:r.push(l),s++}if(typeof t=="number"&&(t<0||isNaN(t))){const l={instancePath:e,schemaPath:"#/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0"};r===null?r=[l]:r.push(l),s++}return Bs.errors=r,s===0}function _c(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=_c.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),Array.isArray(t)){const l=t.length;for(let h=0;h1){const h={};for(;f--;){let d=t[f];if(typeof d=="string"){if(typeof h[d]=="number"){u=h[d];const m={instancePath:e,schemaPath:"#/uniqueItems",keyword:"uniqueItems",params:{i:f,j:u},message:"must NOT have duplicate items (items ## "+u+" and "+f+" are identical)"};r===null?r=[m]:r.push(m),s++;break}h[d]=f}}}}else{const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"array"},message:"must be array"};r===null?r=[l]:r.push(l),s++}return _c.errors=r,s===0}function Kp(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Kp.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),(!t||typeof t!="object"||Array.isArray(t))&&typeof t!="boolean"){const f={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:Btt.type},message:"must be object,boolean"};r===null?r=[f]:r.push(f),s++}if(o.meta||(o.meta=Kp),t&&typeof t=="object"&&!Array.isArray(t)){if(t.type!==void 0){let f=t.type;const h=s;let d=!0;const m=s;if(typeof f!="string"){const b={};r===null?r=[b]:r.push(b),s++}var l=m===s;let g;if(s=h,r!==null&&(h?r.length=h:r=null),l){const b=s;Sc(f,{instancePath:e+"/type",parentData:t,parentDataProperty:"type",rootData:a,dynamicAnchors:o})||(r=r===null?Sc.errors:r.concat(Sc.errors),s=r.length),d=l=b===s,g="then"}else{const b=s,v=s;let P=!0;const A=s;if(!Array.isArray(f)){const x={};r===null?r=[x]:r.push(x),s++}var u=A===s;let _;if(s=v,r!==null&&(v?r.length=v:r=null),u){const x=s;if(Array.isArray(f)){if(f.length<1){const E={instancePath:e+"/type",schemaPath:"#/properties/type/else/then/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items"};r===null?r=[E]:r.push(E),s++}const N=f.length;for(let E=0;E1){e:for(;I--;)for(j=I;j--;)if(Wr(f[I],f[j])){const E={instancePath:e+"/type",schemaPath:"#/properties/type/else/then/uniqueItems",keyword:"uniqueItems",params:{i:I,j},message:"must NOT have duplicate items (items ## "+j+" and "+I+" are identical)"};r===null?r=[E]:r.push(E),s++;break e}}}else{const N={instancePath:e+"/type",schemaPath:"#/properties/type/else/then/type",keyword:"type",params:{type:"array"},message:"must be array"};r===null?r=[N]:r.push(N),s++}P=u=x===s,_="then"}else{const x=s,N={instancePath:e+"/type",schemaPath:"#/properties/type/else/else/not",keyword:"not",params:{},message:"must NOT be valid"};if(r===null?r=[N]:r.push(N),s++,s>0){const j=[];for(const E of r)E.keyword==="errorMessage"||E.emUsed||E.instancePath!==e+"/type"&&(E.instancePath.indexOf(e+"/type")!==0||E.instancePath[e+5]!=="/")||E.schemaPath.indexOf("#/properties/type/else/else")!==0||E.schemaPath[27]!=="/"||(j.push(E),E.emUsed=!0);if(j.length){const E={instancePath:e+"/type",schemaPath:"#/properties/type/else/else/errorMessage",keyword:"errorMessage",params:{errors:j},message:'"type" property must be either a string or an array of strings'};r===null?r=[E]:r.push(E),s++}const I=[];for(const E of r)E.emUsed||I.push(E);r=I,s=I.length}P=u=x===s,_="else"}if(!P){const x={instancePath:e+"/type",schemaPath:"#/properties/type/else/if",keyword:"if",params:{failingKeyword:_},message:'must match "'+_+'" schema'};r===null?r=[x]:r.push(x),s++}d=l=b===s,g="else"}if(!d){const b={instancePath:e+"/type",schemaPath:"#/properties/type/if",keyword:"if",params:{failingKeyword:g},message:'must match "'+g+'" schema'};r===null?r=[b]:r.push(b),s++}}if(t.enum!==void 0&&!Array.isArray(t.enum)){const f={instancePath:e+"/enum",schemaPath:"#/properties/enum/type",keyword:"type",params:{type:"array"},message:"must be array"};r===null?r=[f]:r.push(f),s++}if(t.multipleOf!==void 0){let f=t.multipleOf;if(typeof f=="number"){if(f<=0||isNaN(f)){const h={instancePath:e+"/multipleOf",schemaPath:"#/properties/multipleOf/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison:">",limit:0},message:"must be > 0"};r===null?r=[h]:r.push(h),s++}}else{const h={instancePath:e+"/multipleOf",schemaPath:"#/properties/multipleOf/type",keyword:"type",params:{type:"number"},message:"must be number"};r===null?r=[h]:r.push(h),s++}}if(t.maximum!==void 0&&typeof t.maximum!="number"){const f={instancePath:e+"/maximum",schemaPath:"#/properties/maximum/type",keyword:"type",params:{type:"number"},message:"must be number"};r===null?r=[f]:r.push(f),s++}if(t.exclusiveMaximum!==void 0&&typeof t.exclusiveMaximum!="number"){const f={instancePath:e+"/exclusiveMaximum",schemaPath:"#/properties/exclusiveMaximum/type",keyword:"type",params:{type:"number"},message:"must be number"};r===null?r=[f]:r.push(f),s++}if(t.minimum!==void 0&&typeof t.minimum!="number"){const f={instancePath:e+"/minimum",schemaPath:"#/properties/minimum/type",keyword:"type",params:{type:"number"},message:"must be number"};r===null?r=[f]:r.push(f),s++}if(t.exclusiveMinimum!==void 0&&typeof t.exclusiveMinimum!="number"){const f={instancePath:e+"/exclusiveMinimum",schemaPath:"#/properties/exclusiveMinimum/type",keyword:"type",params:{type:"number"},message:"must be number"};r===null?r=[f]:r.push(f),s++}if(t.maxLength!==void 0&&(pi(t.maxLength,{instancePath:e+"/maxLength",parentData:t,parentDataProperty:"maxLength",rootData:a,dynamicAnchors:o})||(r=r===null?pi.errors:r.concat(pi.errors),s=r.length)),t.minLength!==void 0&&(Bs(t.minLength,{instancePath:e+"/minLength",parentData:t,parentDataProperty:"minLength",rootData:a,dynamicAnchors:o})||(r=r===null?Bs.errors:r.concat(Bs.errors),s=r.length)),t.pattern!==void 0){let f=t.pattern;if(typeof f=="string"){if(!Gx(f)){const h={instancePath:e+"/pattern",schemaPath:"#/properties/pattern/format",keyword:"format",params:{format:"regex"},message:'must match format "regex"'};r===null?r=[h]:r.push(h),s++}}else{const h={instancePath:e+"/pattern",schemaPath:"#/properties/pattern/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[h]:r.push(h),s++}}if(t.maxItems!==void 0&&(pi(t.maxItems,{instancePath:e+"/maxItems",parentData:t,parentDataProperty:"maxItems",rootData:a,dynamicAnchors:o})||(r=r===null?pi.errors:r.concat(pi.errors),s=r.length)),t.minItems!==void 0&&(Bs(t.minItems,{instancePath:e+"/minItems",parentData:t,parentDataProperty:"minItems",rootData:a,dynamicAnchors:o})||(r=r===null?Bs.errors:r.concat(Bs.errors),s=r.length)),t.uniqueItems!==void 0&&typeof t.uniqueItems!="boolean"){const f={instancePath:e+"/uniqueItems",schemaPath:"#/properties/uniqueItems/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};r===null?r=[f]:r.push(f),s++}if(t.maxContains!==void 0&&(pi(t.maxContains,{instancePath:e+"/maxContains",parentData:t,parentDataProperty:"maxContains",rootData:a,dynamicAnchors:o})||(r=r===null?pi.errors:r.concat(pi.errors),s=r.length)),t.minContains!==void 0&&(pi(t.minContains,{instancePath:e+"/minContains",parentData:t,parentDataProperty:"minContains",rootData:a,dynamicAnchors:o})||(r=r===null?pi.errors:r.concat(pi.errors),s=r.length)),t.maxProperties!==void 0&&(pi(t.maxProperties,{instancePath:e+"/maxProperties",parentData:t,parentDataProperty:"maxProperties",rootData:a,dynamicAnchors:o})||(r=r===null?pi.errors:r.concat(pi.errors),s=r.length)),t.minProperties!==void 0&&(Bs(t.minProperties,{instancePath:e+"/minProperties",parentData:t,parentDataProperty:"minProperties",rootData:a,dynamicAnchors:o})||(r=r===null?Bs.errors:r.concat(Bs.errors),s=r.length)),t.required!==void 0&&(_c(t.required,{instancePath:e+"/required",parentData:t,parentDataProperty:"required",rootData:a,dynamicAnchors:o})||(r=r===null?_c.errors:r.concat(_c.errors),s=r.length)),t.dependentRequired!==void 0){let f=t.dependentRequired;if(f&&typeof f=="object"&&!Array.isArray(f))for(const h in f)_c(f[h],{instancePath:e+"/dependentRequired/"+h.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:f,parentDataProperty:h,rootData:a,dynamicAnchors:o})||(r=r===null?_c.errors:r.concat(_c.errors),s=r.length);else{const h={instancePath:e+"/dependentRequired",schemaPath:"#/properties/dependentRequired/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[h]:r.push(h),s++}}}return Kp.errors=r,s===0}Sc.evaluated={dynamicProps:!1,dynamicItems:!1},pi.evaluated={dynamicProps:!1,dynamicItems:!1},Bs.evaluated={dynamicProps:!1,dynamicItems:!1},_c.evaluated={items:!0,dynamicProps:!1,dynamicItems:!1},Kp.evaluated={props:{type:!0,const:!0,enum:!0,multipleOf:!0,maximum:!0,exclusiveMaximum:!0,minimum:!0,exclusiveMinimum:!0,maxLength:!0,minLength:!0,pattern:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxContains:!0,minContains:!0,maxProperties:!0,minProperties:!0,required:!0,dependentRequired:!0},dynamicProps:!1,dynamicItems:!1};const Wtt={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/meta-data",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/meta-data":!0},$dynamicAnchor:"meta",title:"Meta-data vocabulary meta-schema",type:["object","boolean"],properties:{title:{type:"string"},description:{type:"string"},default:!0,deprecated:{type:"boolean",default:!1},readOnly:{type:"boolean",default:!1},writeOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0}}};function Bl(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Bl.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),(!t||typeof t!="object"||Array.isArray(t))&&typeof t!="boolean"){const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:Wtt.type},message:"must be object,boolean"};r===null?r=[l]:r.push(l),s++}if(o.meta||(o.meta=Bl),t&&typeof t=="object"&&!Array.isArray(t)){if(t.title!==void 0&&typeof t.title!="string"){const l={instancePath:e+"/title",schemaPath:"#/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}if(t.description!==void 0&&typeof t.description!="string"){const l={instancePath:e+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}if(t.deprecated!==void 0&&typeof t.deprecated!="boolean"){const l={instancePath:e+"/deprecated",schemaPath:"#/properties/deprecated/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};r===null?r=[l]:r.push(l),s++}if(t.readOnly!==void 0&&typeof t.readOnly!="boolean"){const l={instancePath:e+"/readOnly",schemaPath:"#/properties/readOnly/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};r===null?r=[l]:r.push(l),s++}if(t.writeOnly!==void 0&&typeof t.writeOnly!="boolean"){const l={instancePath:e+"/writeOnly",schemaPath:"#/properties/writeOnly/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};r===null?r=[l]:r.push(l),s++}if(t.examples!==void 0&&!Array.isArray(t.examples)){const l={instancePath:e+"/examples",schemaPath:"#/properties/examples/type",keyword:"type",params:{type:"array"},message:"must be array"};r===null?r=[l]:r.push(l),s++}}return Bl.errors=r,s===0}Bl.evaluated={props:{title:!0,description:!0,default:!0,deprecated:!0,readOnly:!0,writeOnly:!0,examples:!0},dynamicProps:!1,dynamicItems:!1};const Htt={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/format-annotation",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/format-annotation":!0},$dynamicAnchor:"meta",title:"Format vocabulary meta-schema for annotation results",type:["object","boolean"],properties:{format:{type:"string"}}};function Vl(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Vl.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),(!t||typeof t!="object"||Array.isArray(t))&&typeof t!="boolean"){const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:Htt.type},message:"must be object,boolean"};r===null?r=[l]:r.push(l),s++}if(o.meta||(o.meta=Vl),t&&typeof t=="object"&&!Array.isArray(t)&&t.format!==void 0&&typeof t.format!="string"){const l={instancePath:e+"/format",schemaPath:"#/properties/format/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}return Vl.errors=r,s===0}Vl.evaluated={props:{format:!0},dynamicProps:!1,dynamicItems:!1};const Gtt={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/content",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/content":!0},$dynamicAnchor:"meta",title:"Content vocabulary meta-schema",type:["object","boolean"],properties:{contentEncoding:{type:"string"},contentMediaType:{type:"string"},contentSchema:{$dynamicRef:"#meta"}}};function ha(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=ha.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),(!t||typeof t!="object"||Array.isArray(t))&&typeof t!="boolean"){const d={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:Gtt.type},message:"must be object,boolean"};r===null?r=[d]:r.push(d),s++}if(o.meta||(o.meta=ha),t&&typeof t=="object"&&!Array.isArray(t)){if(t.contentEncoding!==void 0&&typeof t.contentEncoding!="string"){const d={instancePath:e+"/contentEncoding",schemaPath:"#/properties/contentEncoding/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}if(t.contentMediaType!==void 0&&typeof t.contentMediaType!="string"){const d={instancePath:e+"/contentMediaType",schemaPath:"#/properties/contentMediaType/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}if(t.contentSchema!==void 0){let d=t.contentSchema,m=o.meta;if(m)if(m(d,{instancePath:e+"/contentSchema",parentData:t,parentDataProperty:"contentSchema",rootData:a,dynamicAnchors:o}))var l=m.evaluated.props,u=m.evaluated.items;else r=r===null?m.errors:r.concat(m.errors),s=r.length;else if(ha(d,{instancePath:e+"/contentSchema",parentData:t,parentDataProperty:"contentSchema",rootData:a,dynamicAnchors:o})){var f=ha.evaluated.props;l!==!0&&f!==void 0&&(f===!0?l=!0:(l=l||{},Object.assign(l,f)));var h=ha.evaluated.items;u!==!0&&h!==void 0&&(u=h===!0||(u>h?u:h))}else r=r===null?ha.errors:r.concat(ha.errors),s=r.length}}return ha.errors=r,s===0}function Uo(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Uo.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t))for(const d in t){let m=t[d],g=o.meta;if(g)if(g(m,{instancePath:e+"/"+d.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:t,parentDataProperty:d,rootData:a,dynamicAnchors:o}))var l=g.evaluated.props,u=g.evaluated.items;else r=r===null?g.errors:r.concat(g.errors),s=r.length;else if(Uo(m,{instancePath:e+"/"+d.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:t,parentDataProperty:d,rootData:a,dynamicAnchors:o})){var f=Uo.evaluated.props;l!==!0&&f!==void 0&&(f===!0?l=!0:(l=l||{},Object.assign(l,f)));var h=Uo.evaluated.items;u!==!0&&h!==void 0&&(u=h===!0||(u>h?u:h))}else r=r===null?Uo.errors:r.concat(Uo.errors),s=r.length}else{const d={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[d]:r.push(d),s++}return Uo.errors=r,s===0}function Jc(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Jc.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),Array.isArray(t)){const l=t.length;for(let h=0;h1){const h={};for(;f--;){let d=t[f];if(typeof d=="string"){if(typeof h[d]=="number"){u=h[d];const m={instancePath:e,schemaPath:"#/uniqueItems",keyword:"uniqueItems",params:{i:f,j:u},message:"must NOT have duplicate items (items ## "+u+" and "+f+" are identical)"};r===null?r=[m]:r.push(m),s++;break}h[d]=f}}}}else{const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"array"},message:"must be array"};r===null?r=[l]:r.push(l),s++}return Jc.errors=r,s===0}function Bo(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Bo.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t))for(const m in t){let g=t[m];const b=s;let v=!1;const P=s;let A=o.meta;if(A)if(A(g,{instancePath:e+"/"+m.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:t,parentDataProperty:m,rootData:a,dynamicAnchors:o}))var l=A.evaluated.props,u=A.evaluated.items;else r=r===null?A.errors:r.concat(A.errors),s=r.length;else if(Bo(g,{instancePath:e+"/"+m.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:t,parentDataProperty:m,rootData:a,dynamicAnchors:o})){var f=Bo.evaluated.props;l!==!0&&f!==void 0&&(f===!0?l=!0:(l=l||{},Object.assign(l,f)));var h=Bo.evaluated.items;u!==!0&&h!==void 0&&(u=h===!0||(u>h?u:h))}else r=r===null?Bo.errors:r.concat(Bo.errors),s=r.length;var d=P===s;v=v||d;const _=s;if(Jc(g,{instancePath:e+"/"+m.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:t,parentDataProperty:m,rootData:a,dynamicAnchors:o})||(r=r===null?Jc.errors:r.concat(Jc.errors),s=r.length),d=_===s,v=v||d,d&&u!==!0&&(u=!0),v)s=b,r!==null&&(b?r.length=b:r=null);else{const x={instancePath:e+"/"+m.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/additionalProperties/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};r===null?r=[x]:r.push(x),s++}}else{const m={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[m]:r.push(m),s++}return Bo.errors=r,s===0}function Qc(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Qc.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),typeof t=="string"){if(!Ore.test(t)){const l={instancePath:e,schemaPath:"#/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z_][-A-Za-z0-9._]*$"},message:'must match pattern "^[A-Za-z_][-A-Za-z0-9._]*$"'};r===null?r=[l]:r.push(l),s++}}else{const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}return Qc.errors=r,s===0}function wy(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=wy.evaluated;return c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),Qc(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o})||(r=r===null?Qc.errors:r.concat(Qc.errors),s=r.length),wy.errors=r,s===0}function Zc(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Zc.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),typeof t!="string"){const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}return Zc.errors=r,s===0}function $y(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=$y.evaluated;return c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),Zc(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o})||(r=r===null?Zc.errors:r.concat(Zc.errors),s=r.length),$y.errors=r,s===0}function df(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=df.evaluated;c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),o.meta||(o.meta=df);const l=s;let u=!0;const f=s;if(!t||typeof t!="object"||Array.isArray(t)){const b={};r===null?r=[b]:r.push(b),s++}var h=f===s;let d;if(s=l,r!==null&&(l?r.length=l:r=null),h){const b=s;if(pa(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o})||(r=r===null?pa.errors:r.concat(pa.errors),s=r.length),dt(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o})||(r=r===null?dt.errors:r.concat(dt.errors),s=r.length),Gn(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o})||(r=r===null?Gn.errors:r.concat(Gn.errors),s=r.length),Kp(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o})||(r=r===null?Kp.errors:r.concat(Kp.errors),s=r.length),Bl(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o})||(r=r===null?Bl.errors:r.concat(Bl.errors),s=r.length),Vl(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o})||(r=r===null?Vl.errors:r.concat(Vl.errors),s=r.length),ha(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o})||(r=r===null?ha.errors:r.concat(ha.errors),s=r.length),t&&typeof t=="object"&&!Array.isArray(t)&&(t.definitions!==void 0&&(Uo(t.definitions,{instancePath:e+"/definitions",parentData:t,parentDataProperty:"definitions",rootData:a,dynamicAnchors:o})||(r=r===null?Uo.errors:r.concat(Uo.errors),s=r.length)),t.dependencies!==void 0&&(Bo(t.dependencies,{instancePath:e+"/dependencies",parentData:t,parentDataProperty:"dependencies",rootData:a,dynamicAnchors:o})||(r=r===null?Bo.errors:r.concat(Bo.errors),s=r.length)),t.$recursiveAnchor!==void 0&&(wy(t.$recursiveAnchor,{instancePath:e+"/$recursiveAnchor",parentData:t,parentDataProperty:"$recursiveAnchor",rootData:a,dynamicAnchors:o})||(r=r===null?wy.errors:r.concat(wy.errors),s=r.length)),t.$recursiveRef!==void 0&&($y(t.$recursiveRef,{instancePath:e+"/$recursiveRef",parentData:t,parentDataProperty:"$recursiveRef",rootData:a,dynamicAnchors:o})||(r=r===null?$y.errors:r.concat($y.errors),s=r.length))),u=h=b===s,u)var m={definitions:!0,dependencies:!0,$recursiveAnchor:!0,$recursiveRef:!0,contentEncoding:!0,contentMediaType:!0,contentSchema:!0,format:!0,title:!0,description:!0,default:!0,deprecated:!0,readOnly:!0,writeOnly:!0,examples:!0,type:!0,const:!0,enum:!0,multipleOf:!0,maximum:!0,exclusiveMaximum:!0,minimum:!0,exclusiveMinimum:!0,maxLength:!0,minLength:!0,pattern:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxContains:!0,minContains:!0,maxProperties:!0,minProperties:!0,required:!0,dependentRequired:!0,unevaluatedItems:!0,unevaluatedProperties:!0,prefixItems:!0,items:!0,contains:!0,additionalProperties:!0,properties:!0,patternProperties:!0,dependentSchemas:!0,propertyNames:!0,if:!0,then:!0,else:!0,allOf:!0,anyOf:!0,oneOf:!0,not:!0,$id:!0,$schema:!0,$ref:!0,$anchor:!0,$dynamicRef:!0,$dynamicAnchor:!0,$vocabulary:!0,$comment:!0,$defs:!0};d="then"}else{const b=s,v=s;let P=!0;const A=s;if(typeof t!="boolean"){const _={};r===null?r=[_]:r.push(_),s++}var g=A===s;if(s=v,r!==null&&(v?r.length=v:r=null),!g){const _=s,x={instancePath:e,schemaPath:"#/else/else/not",keyword:"not",params:{},message:"must NOT be valid"};if(r===null?r=[x]:r.push(x),s++,s>0){const N=[];for(const I of r)I.keyword==="errorMessage"||I.emUsed||I.instancePath!==e&&(I.instancePath.indexOf(e)!==0||I.instancePath[e.length]!=="/")||I.schemaPath.indexOf("#/else/else")!==0||I.schemaPath[11]!=="/"||(N.push(I),I.emUsed=!0);if(N.length){const I={instancePath:e,schemaPath:"#/else/else/errorMessage",keyword:"errorMessage",params:{errors:N},message:'"{{property}}" property must be a valid Schema Object'};r===null?r=[I]:r.push(I),s++}const j=[];for(const I of r)I.emUsed||j.push(I);r=j,s=j.length}P=g=_===s}if(!P){const _={instancePath:e,schemaPath:"#/else/if",keyword:"if",params:{failingKeyword:"else"},message:'must match "else" schema'};r===null?r=[_]:r.push(_),s++}u=h=b===s,d="else"}if(!u){const b={instancePath:e,schemaPath:"#/if",keyword:"if",params:{failingKeyword:d},message:'must match "'+d+'" schema'};r===null?r=[b]:r.push(b),s++}return df.errors=r,c.props=m,s===0}function hu(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){const r=hu.evaluated;if(r.dynamicProps&&(r.props=void 0),r.dynamicItems&&(r.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){var s={};for(const c in t)Je.test(c)&&(s[c]=!0)}return hu.errors=null,r.props=s,!0}function Ay(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Ay.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),hu(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o}))var l=hu.evaluated.props;if(t&&typeof t=="object"&&!Array.isArray(t)){if(t.propertyName===void 0){const u={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"propertyName"},message:"must have required property 'propertyName'"};r===null?r=[u]:r.push(u),s++}if(l!==!0&&((l=l||{}).propertyName=!0,l.mapping=!0),t.propertyName!==void 0&&typeof t.propertyName!="string"){const u={instancePath:e+"/propertyName",schemaPath:"#/properties/propertyName/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[u]:r.push(u),s++}if(t.mapping!==void 0){let u=t.mapping;if(u&&typeof u=="object"&&!Array.isArray(u)){for(const f in u)if(typeof u[f]!="string"){const h={instancePath:e+"/mapping/"+f.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/mapping/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[h]:r.push(h),s++}}else{const f={instancePath:e+"/mapping",schemaPath:"#/properties/mapping/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[f]:r.push(f),s++}}if(l!==!0){for(const u in t)if(!l||!l[u]){const f={instancePath:e,schemaPath:"#/unevaluatedProperties",keyword:"unevaluatedProperties",params:{unevaluatedProperty:u},message:"must NOT have unevaluated properties"};r===null?r=[f]:r.push(f),s++}}}else{const u={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[u]:r.push(u),s++}return Ay.errors=r,s===0}function Sy(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Sy.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),hu(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o}))var l=hu.evaluated.props;if(t&&typeof t=="object"&&!Array.isArray(t)){if(t.url===void 0){const u={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"url"},message:"must have required property 'url'"};r===null?r=[u]:r.push(u),s++}if(l!==!0&&((l=l||{}).url=!0,l.description=!0),t.url!==void 0){let u=t.url;if(typeof u=="string"){if(!Ar.test(u)){const f={instancePath:e+"/url",schemaPath:"#/properties/url/format",keyword:"format",params:{format:"uri-reference"},message:'must match format "uri-reference"'};r===null?r=[f]:r.push(f),s++}}else{const f={instancePath:e+"/url",schemaPath:"#/properties/url/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[f]:r.push(f),s++}}if(t.description!==void 0&&typeof t.description!="string"){const u={instancePath:e+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[u]:r.push(u),s++}if(l!==!0){for(const u in t)if(!l||!l[u]){const f={instancePath:e,schemaPath:"#/unevaluatedProperties",keyword:"unevaluatedProperties",params:{unevaluatedProperty:u},message:"must NOT have unevaluated properties"};r===null?r=[f]:r.push(f),s++}}}else{const u={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[u]:r.push(u),s++}return Sy.errors=r,s===0}function _y(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=_y.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),hu(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o}))var l=hu.evaluated.props;if(t&&typeof t=="object"&&!Array.isArray(t)){if(l!==!0&&((l=l||{}).name=!0,l.namespace=!0,l.prefix=!0,l.attribute=!0,l.wrapped=!0),t.name!==void 0&&typeof t.name!="string"){const u={instancePath:e+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[u]:r.push(u),s++}if(t.namespace!==void 0){let u=t.namespace;if(typeof u=="string"){if(!Ni(u)){const f={instancePath:e+"/namespace",schemaPath:"#/properties/namespace/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};r===null?r=[f]:r.push(f),s++}}else{const f={instancePath:e+"/namespace",schemaPath:"#/properties/namespace/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[f]:r.push(f),s++}}if(t.prefix!==void 0&&typeof t.prefix!="string"){const u={instancePath:e+"/prefix",schemaPath:"#/properties/prefix/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[u]:r.push(u),s++}if(t.attribute!==void 0&&typeof t.attribute!="boolean"){const u={instancePath:e+"/attribute",schemaPath:"#/properties/attribute/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};r===null?r=[u]:r.push(u),s++}if(t.wrapped!==void 0&&typeof t.wrapped!="boolean"){const u={instancePath:e+"/wrapped",schemaPath:"#/properties/wrapped/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};r===null?r=[u]:r.push(u),s++}if(l!==!0){for(const u in t)if(!l||!l[u]){const f={instancePath:e,schemaPath:"#/unevaluatedProperties",keyword:"unevaluatedProperties",params:{unevaluatedProperty:u},message:"must NOT have unevaluated properties"};r===null?r=[f]:r.push(f),s++}}}else{const u={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[u]:r.push(u),s++}return _y.errors=r,s===0}function Op(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Op.evaluated;c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0);const l=s;let u=!0;const f=s;if(!t||typeof t!="object"||Array.isArray(t)){const b={};r===null?r=[b]:r.push(b),s++}var h=f===s;let d;if(s=l,r!==null&&(l?r.length=l:r=null),h){const b=s;if(t&&typeof t=="object"&&!Array.isArray(t))t.discriminator!==void 0&&(Ay(t.discriminator,{instancePath:e+"/discriminator",parentData:t,parentDataProperty:"discriminator",rootData:a,dynamicAnchors:o})||(r=r===null?Ay.errors:r.concat(Ay.errors),s=r.length)),t.externalDocs!==void 0&&(Sy(t.externalDocs,{instancePath:e+"/externalDocs",parentData:t,parentDataProperty:"externalDocs",rootData:a,dynamicAnchors:o})||(r=r===null?Sy.errors:r.concat(Sy.errors),s=r.length)),t.xml!==void 0&&(_y(t.xml,{instancePath:e+"/xml",parentData:t,parentDataProperty:"xml",rootData:a,dynamicAnchors:o})||(r=r===null?_y.errors:r.concat(_y.errors),s=r.length));else{const v={instancePath:e,schemaPath:"#/then/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[v]:r.push(v),s++}if(u=h=b===s,u)var m={example:!0,discriminator:!0,externalDocs:!0,xml:!0};d="then"}else{const b=s,v=s;let P=!0;const A=s;if(typeof t!="boolean"){const _={};r===null?r=[_]:r.push(_),s++}var g=A===s;if(s=v,r!==null&&(v?r.length=v:r=null),!g){const _=s,x={instancePath:e,schemaPath:"#/else/else/not",keyword:"not",params:{},message:"must NOT be valid"};if(r===null?r=[x]:r.push(x),s++,s>0){const N=[];for(const I of r)I.keyword==="errorMessage"||I.emUsed||I.instancePath!==e&&(I.instancePath.indexOf(e)!==0||I.instancePath[e.length]!=="/")||I.schemaPath.indexOf("#/else/else")!==0||I.schemaPath[11]!=="/"||(N.push(I),I.emUsed=!0);if(N.length){const I={instancePath:e,schemaPath:"#/else/else/errorMessage",keyword:"errorMessage",params:{errors:N},message:'"{{property}}" property must be a valid Schema Object'};r===null?r=[I]:r.push(I),s++}const j=[];for(const I of r)I.emUsed||j.push(I);r=j,s=j.length}P=g=_===s}if(!P){const _={instancePath:e,schemaPath:"#/else/if",keyword:"if",params:{failingKeyword:"else"},message:'must match "else" schema'};r===null?r=[_]:r.push(_),s++}u=h=b===s,d="else"}if(!u){const b={instancePath:e,schemaPath:"#/if",keyword:"if",params:{failingKeyword:d},message:'must match "'+d+'" schema'};r===null?r=[b]:r.push(b),s++}return Op.errors=r,c.props=m,s===0}function ka(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=ka.evaluated;c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0);const l=s;let u=!0;const f=s;if(!t||typeof t!="object"||Array.isArray(t)){const v={};r===null?r=[v]:r.push(v),s++}var h=f===s;let d;if(s=l,r!==null&&(l?r.length=l:r=null),h){const v=s;if(df(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o}))var m=df.evaluated.props;else r=r===null?df.errors:r.concat(df.errors),s=r.length;if(Op(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o}))var g=Op.evaluated.props;else r=r===null?Op.errors:r.concat(Op.errors),s=r.length;m!==!0&&g!==void 0&&(g===!0?m=!0:(m=m||{},Object.assign(m,g))),u=h=v===s,d="then"}else{const v=s,P=s;let A=!0;const _=s;if(typeof t!="boolean"){const x={};r===null?r=[x]:r.push(x),s++}var b=_===s;if(s=P,r!==null&&(P?r.length=P:r=null),!b){const x=s,N={instancePath:e,schemaPath:"#/else/else/not",keyword:"not",params:{},message:"must NOT be valid"};if(r===null?r=[N]:r.push(N),s++,s>0){const j=[];for(const E of r)E.keyword==="errorMessage"||E.emUsed||E.instancePath!==e&&(E.instancePath.indexOf(e)!==0||E.instancePath[e.length]!=="/")||E.schemaPath.indexOf("#/else/else")!==0||E.schemaPath[11]!=="/"||(j.push(E),E.emUsed=!0);if(j.length){const E={instancePath:e,schemaPath:"#/else/else/errorMessage",keyword:"errorMessage",params:{errors:j},message:'"{{property}}" property must be a valid Schema Object'};r===null?r=[E]:r.push(E),s++}const I=[];for(const E of r)E.emUsed||I.push(E);r=I,s=I.length}A=b=x===s}if(!A){const x={instancePath:e,schemaPath:"#/else/if",keyword:"if",params:{failingKeyword:"else"},message:'must match "else" schema'};r===null?r=[x]:r.push(x),s++}u=h=v===s,d="else"}if(!u){const v={instancePath:e,schemaPath:"#/if",keyword:"if",params:{failingKeyword:d},message:'must match "'+d+'" schema'};r===null?r=[v]:r.push(v),s++}return ka.errors=r,c.props=m,s===0}function xy(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=xy.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),wt(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o}))var l=wt.evaluated.props;const u=s,f=s;if(t&&typeof t=="object"&&!Array.isArray(t)&&(t.value===void 0||t.externalValue===void 0)){const h={};r===null?r=[h]:r.push(h),s++}if(f===s){const h={instancePath:e,schemaPath:"#/not",keyword:"not",params:{},message:"must NOT be valid"};r===null?r=[h]:r.push(h),s++}else s=u,r!==null&&(u?r.length=u:r=null);if(t&&typeof t=="object"&&!Array.isArray(t)){if(l!==!0&&((l=l||{}).summary=!0,l.description=!0,l.value=!0,l.externalValue=!0),t.summary!==void 0&&typeof t.summary!="string"){const h={instancePath:e+"/summary",schemaPath:"#/properties/summary/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[h]:r.push(h),s++}if(t.description!==void 0&&typeof t.description!="string"){const h={instancePath:e+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[h]:r.push(h),s++}if(t.externalValue!==void 0){let h=t.externalValue;if(typeof h=="string"){if(!Ni(h)){const d={instancePath:e+"/externalValue",schemaPath:"#/properties/externalValue/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};r===null?r=[d]:r.push(d),s++}}else{const d={instancePath:e+"/externalValue",schemaPath:"#/properties/externalValue/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}if(l!==!0){for(const h in t)if(!l||!l[h]){const d={instancePath:e,schemaPath:"#/unevaluatedProperties",keyword:"unevaluatedProperties",params:{unevaluatedProperty:h},message:"must NOT have unevaluated properties"};r===null?r=[d]:r.push(d),s++}}}else{const h={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[h]:r.push(h),s++}return xy.errors=r,s===0}function Xc(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Xc.evaluated;c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0);const l=s;let u=!0;const f=s;if(s===f)if(t&&typeof t=="object"&&!Array.isArray(t)){if(t.$ref===void 0){const g={};r===null?r=[g]:r.push(g),s++}}else{const g={};r===null?r=[g]:r.push(g),s++}var h=f===s;let d;if(s=l,r!==null&&(l?r.length=l:r=null),h){const g=s;if(Sr(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o})||(r=r===null?Sr.errors:r.concat(Sr.errors),s=r.length),u=h=g===s,u)var m={$ref:!0,summary:!0,description:!0};d="then"}else{const g=s;xy(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o})||(r=r===null?xy.errors:r.concat(xy.errors),s=r.length),u=h=g===s,u&&m!==!0&&(m=!0),d="else"}if(!u){const g={instancePath:e,schemaPath:"#/if",keyword:"if",params:{failingKeyword:d},message:'must match "'+d+'" schema'};r===null?r=[g]:r.push(g),s++}return Xc.errors=r,c.props=m,s===0}function po(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=po.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)&&t.examples!==void 0){let l=t.examples;if(l&&typeof l=="object"&&!Array.isArray(l))for(const u in l)Xc(l[u],{instancePath:e+"/examples/"+u.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:l,parentDataProperty:u,rootData:a,dynamicAnchors:o})||(r=r===null?Xc.errors:r.concat(Xc.errors),s=r.length);else{const u={instancePath:e+"/examples",schemaPath:"#/properties/examples/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[u]:r.push(u),s++}}return po.errors=r,s===0}ha.evaluated={props:{contentEncoding:!0,contentMediaType:!0,contentSchema:!0},dynamicProps:!1,dynamicItems:!1},Uo.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},Jc.evaluated={items:!0,dynamicProps:!1,dynamicItems:!1},Bo.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},Qc.evaluated={dynamicProps:!1,dynamicItems:!1},wy.evaluated={dynamicProps:!1,dynamicItems:!1},Zc.evaluated={dynamicProps:!1,dynamicItems:!1},$y.evaluated={dynamicProps:!1,dynamicItems:!1},df.evaluated={dynamicProps:!0,dynamicItems:!1},hu.evaluated={dynamicProps:!0,dynamicItems:!1},Ay.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},Sy.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},_y.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},Op.evaluated={dynamicProps:!0,dynamicItems:!1},ka.evaluated={dynamicProps:!0,dynamicItems:!1},xy.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},Xc.evaluated={dynamicProps:!0,dynamicItems:!1},po.evaluated={props:{example:!0,examples:!0},dynamicProps:!1,dynamicItems:!1};const Ktt={$comment:"https://spec.openapis.org/oas/v3.1.0#encoding-object",type:"object",properties:{contentType:{type:"string",format:"media-range"},headers:{type:"object",additionalProperties:{$ref:"#/$defs/header-or-reference"}},style:{default:"form",enum:["form","spaceDelimited","pipeDelimited","deepObject"]},explode:{type:"boolean"},allowReserved:{default:!1,type:"boolean"}},allOf:[{$ref:"#/$defs/specification-extensions"},{$ref:"#/$defs/styles-for-form"}],unevaluatedProperties:!1};function Qo(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Qo.evaluated;c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0);const l=s;let u=!0;const f=s;if(t&&typeof t=="object"&&!Array.isArray(t)){if(t.style===void 0){const g={};r===null?r=[g]:r.push(g),s++}else if(t.style!==void 0&&t.style!=="form"){const g={};r===null?r=[g]:r.push(g),s++}}var h=f===s;let d;if(s=l,r!==null&&(l?r.length=l:r=null),h){if(u=h=s==s,u)var m={explode:!0,style:!0};d="then"}else u=h=s==s,u&&m!==!0&&((m=m||{}).explode=!0),d="else";if(!u){const g={instancePath:e,schemaPath:"#/if",keyword:"if",params:{failingKeyword:d},message:'must match "'+d+'" schema'};r===null?r=[g]:r.push(g),s++}return Qo.errors=r,c.props=m,s===0}Qo.evaluated={dynamicProps:!0,dynamicItems:!1};const mI={validate:bs};function Dy(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Dy.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),wt(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o}))var l=wt.evaluated.props;const u=s;let f=!1,h=null;const d=s;if(t&&typeof t=="object"&&!Array.isArray(t)&&t.schema===void 0){const b={instancePath:e,schemaPath:"#/oneOf/0/required",keyword:"required",params:{missingProperty:"schema"},message:"must have required property 'schema'"};r===null?r=[b]:r.push(b),s++}d===s&&(f=!0,h=0);const m=s;if(t&&typeof t=="object"&&!Array.isArray(t)&&t.content===void 0){const b={instancePath:e,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty:"content"},message:"must have required property 'content'"};r===null?r=[b]:r.push(b),s++}var g;if((g=m===s)&&f?(f=!1,h=[h,1]):g&&(f=!0,h=1),f)s=u,r!==null&&(u?r.length=u:r=null);else{const b={instancePath:e,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas:h},message:"must match exactly one schema in oneOf"};r===null?r=[b]:r.push(b),s++}if(t&&typeof t=="object"&&!Array.isArray(t)){if(l!==!0&&((l=l||{}).description=!0,l.required=!0,l.deprecated=!0,l.schema=!0,l.content=!0),t.description!==void 0&&typeof t.description!="string"){const b={instancePath:e+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[b]:r.push(b),s++}if(t.required!==void 0&&typeof t.required!="boolean"){const b={instancePath:e+"/required",schemaPath:"#/properties/required/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};r===null?r=[b]:r.push(b),s++}if(t.deprecated!==void 0&&typeof t.deprecated!="boolean"){const b={instancePath:e+"/deprecated",schemaPath:"#/properties/deprecated/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};r===null?r=[b]:r.push(b),s++}if(t.schema!==void 0&&(ka(t.schema,{instancePath:e+"/schema",parentData:t,parentDataProperty:"schema",rootData:a,dynamicAnchors:o})||(r=r===null?ka.errors:r.concat(ka.errors),s=r.length)),t.content!==void 0){let b=t.content;if(mI.validate(b,{instancePath:e+"/content",parentData:t,parentDataProperty:"content",rootData:a,dynamicAnchors:o})||(r=r===null?mI.validate.errors:r.concat(mI.validate.errors),s=r.length),b&&typeof b=="object"&&!Array.isArray(b)){if(Object.keys(b).length>1){const v={instancePath:e+"/content",schemaPath:"#/properties/content/maxProperties",keyword:"maxProperties",params:{limit:1},message:"must NOT have more than 1 properties"};r===null?r=[v]:r.push(v),s++}if(Object.keys(b).length<1){const v={instancePath:e+"/content",schemaPath:"#/properties/content/minProperties",keyword:"minProperties",params:{limit:1},message:"must NOT have fewer than 1 properties"};r===null?r=[v]:r.push(v),s++}}}if(t.schema!==void 0){const b=s;if(po(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o})||(r=r===null?po.errors:r.concat(po.errors),s=r.length),t&&typeof t=="object"&&!Array.isArray(t)){if(t.style!==void 0&&t.style!=="simple"){const v={instancePath:e+"/style",schemaPath:"#/dependentSchemas/schema/properties/style/const",keyword:"const",params:{allowedValue:"simple"},message:"must be equal to constant"};r===null?r=[v]:r.push(v),s++}if(t.explode!==void 0&&typeof t.explode!="boolean"){const v={instancePath:e+"/explode",schemaPath:"#/dependentSchemas/schema/properties/explode/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};r===null?r=[v]:r.push(v),s++}}b===s&&l!==!0&&((l=l||{}).style=!0,l.explode=!0,l.example=!0,l.examples=!0)}if(l!==!0){for(const b in t)if(!l||!l[b]){const v={instancePath:e,schemaPath:"#/unevaluatedProperties",keyword:"unevaluatedProperties",params:{unevaluatedProperty:b},message:"must NOT have unevaluated properties"};r===null?r=[v]:r.push(v),s++}}}else{const b={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[b]:r.push(b),s++}return Dy.errors=r,s===0}function ho(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=ho.evaluated;c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0);const l=s;let u=!0;const f=s;if(s===f)if(t&&typeof t=="object"&&!Array.isArray(t)){if(t.$ref===void 0){const g={};r===null?r=[g]:r.push(g),s++}}else{const g={};r===null?r=[g]:r.push(g),s++}var h=f===s;let d;if(s=l,r!==null&&(l?r.length=l:r=null),h){const g=s;if(Sr(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o})||(r=r===null?Sr.errors:r.concat(Sr.errors),s=r.length),u=h=g===s,u)var m={$ref:!0,summary:!0,description:!0};d="then"}else{const g=s;Dy(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o})||(r=r===null?Dy.errors:r.concat(Dy.errors),s=r.length),u=h=g===s,u&&m!==!0&&(m=!0),d="else"}if(!u){const g={instancePath:e,schemaPath:"#/if",keyword:"if",params:{failingKeyword:d},message:'must match "'+d+'" schema'};r===null?r=[g]:r.push(g),s++}return ho.errors=r,c.props=m,s===0}function ky(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=ky.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),wt(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o}))var l=wt.evaluated.props;if(Qo(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o}))var u=Qo.evaluated.props;else r=r===null?Qo.errors:r.concat(Qo.errors),s=r.length;if(l!==!0&&u!==void 0&&(u===!0?l=!0:(l=l||{},Object.assign(l,u))),t&&typeof t=="object"&&!Array.isArray(t)){if(l!==!0&&((l=l||{}).contentType=!0,l.headers=!0,l.style=!0,l.explode=!0,l.allowReserved=!0),t.contentType!==void 0&&typeof t.contentType!="string"){const f={instancePath:e+"/contentType",schemaPath:"#/properties/contentType/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[f]:r.push(f),s++}if(t.headers!==void 0){let f=t.headers;if(f&&typeof f=="object"&&!Array.isArray(f))for(const h in f)ho(f[h],{instancePath:e+"/headers/"+h.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:f,parentDataProperty:h,rootData:a,dynamicAnchors:o})||(r=r===null?ho.errors:r.concat(ho.errors),s=r.length);else{const h={instancePath:e+"/headers",schemaPath:"#/properties/headers/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[h]:r.push(h),s++}}if(t.style!==void 0){let f=t.style;if(f!=="form"&&f!=="spaceDelimited"&&f!=="pipeDelimited"&&f!=="deepObject"){const h={instancePath:e+"/style",schemaPath:"#/properties/style/enum",keyword:"enum",params:{allowedValues:Ktt.properties.style.enum},message:"must be equal to one of the allowed values"};r===null?r=[h]:r.push(h),s++}}if(t.explode!==void 0&&typeof t.explode!="boolean"){const f={instancePath:e+"/explode",schemaPath:"#/properties/explode/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};r===null?r=[f]:r.push(f),s++}if(t.allowReserved!==void 0&&typeof t.allowReserved!="boolean"){const f={instancePath:e+"/allowReserved",schemaPath:"#/properties/allowReserved/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};r===null?r=[f]:r.push(f),s++}if(l!==!0){for(const f in t)if(!l||!l[f]){const h={instancePath:e,schemaPath:"#/unevaluatedProperties",keyword:"unevaluatedProperties",params:{unevaluatedProperty:f},message:"must NOT have unevaluated properties"};r===null?r=[h]:r.push(h),s++}}}else{const f={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[f]:r.push(f),s++}return ky.errors=r,s===0}function Oy(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Oy.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),wt(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o}))var l=wt.evaluated.props;if(po(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o})||(r=r===null?po.errors:r.concat(po.errors),s=r.length),l!==!0&&((l=l||{}).example=!0,l.examples=!0),t&&typeof t=="object"&&!Array.isArray(t)){if(l!==!0&&((l=l||{}).schema=!0,l.encoding=!0),t.schema!==void 0&&(ka(t.schema,{instancePath:e+"/schema",parentData:t,parentDataProperty:"schema",rootData:a,dynamicAnchors:o})||(r=r===null?ka.errors:r.concat(ka.errors),s=r.length)),t.encoding!==void 0){let u=t.encoding;if(u&&typeof u=="object"&&!Array.isArray(u))for(const f in u)ky(u[f],{instancePath:e+"/encoding/"+f.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:u,parentDataProperty:f,rootData:a,dynamicAnchors:o})||(r=r===null?ky.errors:r.concat(ky.errors),s=r.length);else{const f={instancePath:e+"/encoding",schemaPath:"#/properties/encoding/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[f]:r.push(f),s++}}if(l!==!0){for(const u in t)if(!l||!l[u]){const f={instancePath:e,schemaPath:"#/unevaluatedProperties",keyword:"unevaluatedProperties",params:{unevaluatedProperty:u},message:"must NOT have unevaluated properties"};r===null?r=[f]:r.push(f),s++}}}else{const u={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[u]:r.push(u),s++}return Oy.errors=r,s===0}function bs(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=bs.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){for(const l in t)if(s!=s){const u={instancePath:e,schemaPath:"#/propertyNames",keyword:"propertyNames",params:{propertyName:l},message:"property name must be valid"};r===null?r=[u]:r.push(u),s++}for(const l in t)Oy(t[l],{instancePath:e+"/"+l.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:t,parentDataProperty:l,rootData:a,dynamicAnchors:o})||(r=r===null?Oy.errors:r.concat(Oy.errors),s=r.length)}else{const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[l]:r.push(l),s++}return bs.errors=r,s===0}Dy.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},ho.evaluated={dynamicProps:!0,dynamicItems:!1},ky.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},Oy.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},bs.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};const Ytt={if:{properties:{in:{const:"path"}},required:["in"]},then:{properties:{style:{default:"simple",enum:["matrix","label","simple"]},required:{const:!0}},required:["required"]}};function Ep(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Ep.evaluated;c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0);const l=s;let u=!0;const f=s;if(t&&typeof t=="object"&&!Array.isArray(t)){if(t.in===void 0){const m={};r===null?r=[m]:r.push(m),s++}else if(t.in!==void 0&&t.in!=="path"){const m={};r===null?r=[m]:r.push(m),s++}}var h=f===s;if(s=l,r!==null&&(l?r.length=l:r=null),h){const m=s;if(t&&typeof t=="object"&&!Array.isArray(t)){if(t.required===void 0){const g={instancePath:e,schemaPath:"#/then/required",keyword:"required",params:{missingProperty:"required"},message:"must have required property 'required'"};r===null?r=[g]:r.push(g),s++}if(t.style!==void 0){let g=t.style;if(g!=="matrix"&&g!=="label"&&g!=="simple"){const b={instancePath:e+"/style",schemaPath:"#/then/properties/style/enum",keyword:"enum",params:{allowedValues:Ytt.then.properties.style.enum},message:"must be equal to one of the allowed values"};r===null?r=[b]:r.push(b),s++}}if(t.required!==void 0&&t.required!==!0){const g={instancePath:e+"/required",schemaPath:"#/then/properties/required/const",keyword:"const",params:{allowedValue:!0},message:"must be equal to constant"};r===null?r=[g]:r.push(g),s++}}if(u=h=m===s,u)var d={style:!0,required:!0,in:!0}}if(!u){const m={instancePath:e,schemaPath:"#/if",keyword:"if",params:{failingKeyword:"then"},message:'must match "then" schema'};r===null?r=[m]:r.push(m),s++}return Ep.errors=r,c.props=d,s===0}function Ip(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Ip.evaluated;c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0);const l=s;let u=!0;const f=s;if(t&&typeof t=="object"&&!Array.isArray(t)){if(t.in===void 0){const m={};r===null?r=[m]:r.push(m),s++}else if(t.in!==void 0&&t.in!=="header"){const m={};r===null?r=[m]:r.push(m),s++}}var h=f===s;if(s=l,r!==null&&(l?r.length=l:r=null),h){const m=s;if(t&&typeof t=="object"&&!Array.isArray(t)&&t.style!==void 0&&t.style!=="simple"){const g={instancePath:e+"/style",schemaPath:"#/then/properties/style/const",keyword:"const",params:{allowedValue:"simple"},message:"must be equal to constant"};r===null?r=[g]:r.push(g),s++}if(u=h=m===s,u)var d={style:!0,in:!0}}if(!u){const m={instancePath:e,schemaPath:"#/if",keyword:"if",params:{failingKeyword:"then"},message:'must match "then" schema'};r===null?r=[m]:r.push(m),s++}return Ip.errors=r,c.props=d,s===0}Ep.evaluated={dynamicProps:!0,dynamicItems:!1},Ip.evaluated={dynamicProps:!0,dynamicItems:!1};const Jtt={if:{properties:{in:{const:"query"}},required:["in"]},then:{properties:{style:{default:"form",enum:["form","spaceDelimited","pipeDelimited","deepObject"]},allowReserved:{default:!1,type:"boolean"}}}};function Cp(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Cp.evaluated;c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0);const l=s;let u=!0;const f=s;if(t&&typeof t=="object"&&!Array.isArray(t)){if(t.in===void 0){const m={};r===null?r=[m]:r.push(m),s++}else if(t.in!==void 0&&t.in!=="query"){const m={};r===null?r=[m]:r.push(m),s++}}var h=f===s;if(s=l,r!==null&&(l?r.length=l:r=null),h){const m=s;if(t&&typeof t=="object"&&!Array.isArray(t)){if(t.style!==void 0){let g=t.style;if(g!=="form"&&g!=="spaceDelimited"&&g!=="pipeDelimited"&&g!=="deepObject"){const b={instancePath:e+"/style",schemaPath:"#/then/properties/style/enum",keyword:"enum",params:{allowedValues:Jtt.then.properties.style.enum},message:"must be equal to one of the allowed values"};r===null?r=[b]:r.push(b),s++}}if(t.allowReserved!==void 0&&typeof t.allowReserved!="boolean"){const g={instancePath:e+"/allowReserved",schemaPath:"#/then/properties/allowReserved/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};r===null?r=[g]:r.push(g),s++}}if(u=h=m===s,u)var d={style:!0,allowReserved:!0,in:!0}}if(!u){const m={instancePath:e,schemaPath:"#/if",keyword:"if",params:{failingKeyword:"then"},message:'must match "then" schema'};r===null?r=[m]:r.push(m),s++}return Cp.errors=r,c.props=d,s===0}function Tp(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Tp.evaluated;c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0);const l=s;let u=!0;const f=s;if(t&&typeof t=="object"&&!Array.isArray(t)){if(t.in===void 0){const m={};r===null?r=[m]:r.push(m),s++}else if(t.in!==void 0&&t.in!=="cookie"){const m={};r===null?r=[m]:r.push(m),s++}}var h=f===s;if(s=l,r!==null&&(l?r.length=l:r=null),h){const m=s;if(t&&typeof t=="object"&&!Array.isArray(t)&&t.style!==void 0&&t.style!=="form"){const g={instancePath:e+"/style",schemaPath:"#/then/properties/style/const",keyword:"const",params:{allowedValue:"form"},message:"must be equal to constant"};r===null?r=[g]:r.push(g),s++}if(u=h=m===s,u)var d={style:!0,in:!0}}if(!u){const m={instancePath:e,schemaPath:"#/if",keyword:"if",params:{failingKeyword:"then"},message:'must match "then" schema'};r===null?r=[m]:r.push(m),s++}return Tp.errors=r,c.props=d,s===0}function Ey(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Ey.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),wt(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o}))var l=wt.evaluated.props;const u=s;let f=!1,h=null;const d=s;if(t&&typeof t=="object"&&!Array.isArray(t)&&t.schema===void 0){const E={instancePath:e,schemaPath:"#/oneOf/0/required",keyword:"required",params:{missingProperty:"schema"},message:"must have required property 'schema'"};r===null?r=[E]:r.push(E),s++}d===s&&(f=!0,h=0);const m=s;if(t&&typeof t=="object"&&!Array.isArray(t)&&t.content===void 0){const E={instancePath:e,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty:"content"},message:"must have required property 'content'"};r===null?r=[E]:r.push(E),s++}var g;if((g=m===s)&&f?(f=!1,h=[h,1]):g&&(f=!0,h=1),f)s=u,r!==null&&(u?r.length=u:r=null);else{const E={instancePath:e,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas:h},message:"must match exactly one schema in oneOf"};r===null?r=[E]:r.push(E),s++}const b=s;let v=!0;const P=s;if(t&&typeof t=="object"&&!Array.isArray(t)){if(t.in===void 0){const E={};r===null?r=[E]:r.push(E),s++}else if(t.in!==void 0&&t.in!=="query"){const E={};r===null?r=[E]:r.push(E),s++}}var A=P===s;if(l!==!0&&((l=l||{}).in=!0),s=b,r!==null&&(b?r.length=b:r=null),A){const E=s;if(t&&typeof t=="object"&&!Array.isArray(t)&&t.allowEmptyValue!==void 0&&typeof t.allowEmptyValue!="boolean"){const L={instancePath:e+"/allowEmptyValue",schemaPath:"#/then/properties/allowEmptyValue/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};r===null?r=[L]:r.push(L),s++}v=A=E===s,v&&l!==!0&&((l=l||{}).allowEmptyValue=!0)}if(!v){const E={instancePath:e,schemaPath:"#/if",keyword:"if",params:{failingKeyword:"then"},message:'must match "then" schema'};r===null?r=[E]:r.push(E),s++}if(t&&typeof t=="object"&&!Array.isArray(t)){if(t.name===void 0){const E={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"name"},message:"must have required property 'name'"};r===null?r=[E]:r.push(E),s++}if(t.in===void 0){const E={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"in"},message:"must have required property 'in'"};r===null?r=[E]:r.push(E),s++}if(l!==!0&&((l=l||{}).name=!0,l.in=!0,l.description=!0,l.required=!0,l.deprecated=!0,l.schema=!0,l.content=!0),t.name!==void 0&&typeof t.name!="string"){const E={instancePath:e+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[E]:r.push(E),s++}if(t.in!==void 0){let E=t.in;if(E!=="query"&&E!=="header"&&E!=="path"&&E!=="cookie"){const L={instancePath:e+"/in",schemaPath:"#/properties/in/enum",keyword:"enum",params:{allowedValues:Ltt.properties.in.enum},message:"must be equal to one of the allowed values"};r===null?r=[L]:r.push(L),s++}}if(t.description!==void 0&&typeof t.description!="string"){const E={instancePath:e+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[E]:r.push(E),s++}if(t.required!==void 0&&typeof t.required!="boolean"){const E={instancePath:e+"/required",schemaPath:"#/properties/required/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};r===null?r=[E]:r.push(E),s++}if(t.deprecated!==void 0&&typeof t.deprecated!="boolean"){const E={instancePath:e+"/deprecated",schemaPath:"#/properties/deprecated/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};r===null?r=[E]:r.push(E),s++}if(t.schema!==void 0&&(ka(t.schema,{instancePath:e+"/schema",parentData:t,parentDataProperty:"schema",rootData:a,dynamicAnchors:o})||(r=r===null?ka.errors:r.concat(ka.errors),s=r.length)),t.content!==void 0){let E=t.content;if(bs(E,{instancePath:e+"/content",parentData:t,parentDataProperty:"content",rootData:a,dynamicAnchors:o})||(r=r===null?bs.errors:r.concat(bs.errors),s=r.length),E&&typeof E=="object"&&!Array.isArray(E)){if(Object.keys(E).length>1){const L={instancePath:e+"/content",schemaPath:"#/properties/content/maxProperties",keyword:"maxProperties",params:{limit:1},message:"must NOT have more than 1 properties"};r===null?r=[L]:r.push(L),s++}if(Object.keys(E).length<1){const L={instancePath:e+"/content",schemaPath:"#/properties/content/minProperties",keyword:"minProperties",params:{limit:1},message:"must NOT have fewer than 1 properties"};r===null?r=[L]:r.push(L),s++}}}if(t.schema!==void 0){const E=s;if(po(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o})||(r=r===null?po.errors:r.concat(po.errors),s=r.length),Ep(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o}))var _=Ep.evaluated.props;else r=r===null?Ep.errors:r.concat(Ep.errors),s=r.length;if(_!==!0&&((_=_||{}).example=!0,_.examples=!0),Ip(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o}))var x=Ip.evaluated.props;else r=r===null?Ip.errors:r.concat(Ip.errors),s=r.length;if(_!==!0&&x!==void 0&&(x===!0?_=!0:(_=_||{},Object.assign(_,x))),Cp(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o}))var N=Cp.evaluated.props;else r=r===null?Cp.errors:r.concat(Cp.errors),s=r.length;if(_!==!0&&N!==void 0&&(N===!0?_=!0:(_=_||{},Object.assign(_,N))),Tp(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o}))var j=Tp.evaluated.props;else r=r===null?Tp.errors:r.concat(Tp.errors),s=r.length;if(_!==!0&&j!==void 0&&(j===!0?_=!0:(_=_||{},Object.assign(_,j))),Qo(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o}))var I=Qo.evaluated.props;else r=r===null?Qo.errors:r.concat(Qo.errors),s=r.length;if(_!==!0&&I!==void 0&&(I===!0?_=!0:(_=_||{},Object.assign(_,I))),t&&typeof t=="object"&&!Array.isArray(t)){if(_!==!0&&((_=_||{}).style=!0,_.explode=!0),t.style!==void 0&&typeof t.style!="string"){const L={instancePath:e+"/style",schemaPath:"#/dependentSchemas/schema/properties/style/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[L]:r.push(L),s++}if(t.explode!==void 0&&typeof t.explode!="boolean"){const L={instancePath:e+"/explode",schemaPath:"#/dependentSchemas/schema/properties/explode/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};r===null?r=[L]:r.push(L),s++}}E===s&&l!==!0&&_!==void 0&&(_===!0?l=!0:(l=l||{},Object.assign(l,_)))}if(l!==!0){for(const E in t)if(!l||!l[E]){const L={instancePath:e,schemaPath:"#/unevaluatedProperties",keyword:"unevaluatedProperties",params:{unevaluatedProperty:E},message:"must NOT have unevaluated properties"};r===null?r=[L]:r.push(L),s++}}}else{const E={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[E]:r.push(E),s++}return Ey.errors=r,s===0}function mo(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=mo.evaluated;c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0);const l=s;let u=!0;const f=s;if(s===f)if(t&&typeof t=="object"&&!Array.isArray(t)){if(t.$ref===void 0){const g={};r===null?r=[g]:r.push(g),s++}}else{const g={};r===null?r=[g]:r.push(g),s++}var h=f===s;let d;if(s=l,r!==null&&(l?r.length=l:r=null),h){const g=s;if(Sr(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o})||(r=r===null?Sr.errors:r.concat(Sr.errors),s=r.length),u=h=g===s,u)var m={$ref:!0,summary:!0,description:!0};d="then"}else{const g=s;Ey(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o})||(r=r===null?Ey.errors:r.concat(Ey.errors),s=r.length),u=h=g===s,u&&m!==!0&&(m=!0),d="else"}if(!u){const g={instancePath:e,schemaPath:"#/if",keyword:"if",params:{failingKeyword:d},message:'must match "'+d+'" schema'};r===null?r=[g]:r.push(g),s++}return mo.errors=r,c.props=m,s===0}function yo(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=yo.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),wt(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o}))var l=wt.evaluated.props;if(t&&typeof t=="object"&&!Array.isArray(t)){if(t.url===void 0){const u={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"url"},message:"must have required property 'url'"};r===null?r=[u]:r.push(u),s++}if(l!==!0&&((l=l||{}).description=!0,l.url=!0),t.description!==void 0&&typeof t.description!="string"){const u={instancePath:e+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[u]:r.push(u),s++}if(t.url!==void 0){let u=t.url;if(typeof u=="string"){if(!Ni(u)){const f={instancePath:e+"/url",schemaPath:"#/properties/url/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};r===null?r=[f]:r.push(f),s++}}else{const f={instancePath:e+"/url",schemaPath:"#/properties/url/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[f]:r.push(f),s++}}if(l!==!0){for(const u in t)if(!l||!l[u]){const f={instancePath:e,schemaPath:"#/unevaluatedProperties",keyword:"unevaluatedProperties",params:{unevaluatedProperty:u},message:"must NOT have unevaluated properties"};r===null?r=[f]:r.push(f),s++}}}else{const u={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[u]:r.push(u),s++}return yo.errors=r,s===0}function Iy(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Iy.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),wt(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o}))var l=wt.evaluated.props;if(t&&typeof t=="object"&&!Array.isArray(t)){if(t.content===void 0){const u={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"content"},message:"must have required property 'content'"};r===null?r=[u]:r.push(u),s++}if(l!==!0&&((l=l||{}).description=!0,l.content=!0,l.required=!0),t.description!==void 0&&typeof t.description!="string"){const u={instancePath:e+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[u]:r.push(u),s++}if(t.content!==void 0&&(bs(t.content,{instancePath:e+"/content",parentData:t,parentDataProperty:"content",rootData:a,dynamicAnchors:o})||(r=r===null?bs.errors:r.concat(bs.errors),s=r.length)),t.required!==void 0&&typeof t.required!="boolean"){const u={instancePath:e+"/required",schemaPath:"#/properties/required/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};r===null?r=[u]:r.push(u),s++}if(l!==!0){for(const u in t)if(!l||!l[u]){const f={instancePath:e,schemaPath:"#/unevaluatedProperties",keyword:"unevaluatedProperties",params:{unevaluatedProperty:u},message:"must NOT have unevaluated properties"};r===null?r=[f]:r.push(f),s++}}}else{const u={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[u]:r.push(u),s++}return Iy.errors=r,s===0}function eu(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=eu.evaluated;c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0);const l=s;let u=!0;const f=s;if(s===f)if(t&&typeof t=="object"&&!Array.isArray(t)){if(t.$ref===void 0){const g={};r===null?r=[g]:r.push(g),s++}}else{const g={};r===null?r=[g]:r.push(g),s++}var h=f===s;let d;if(s=l,r!==null&&(l?r.length=l:r=null),h){const g=s;if(Sr(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o})||(r=r===null?Sr.errors:r.concat(Sr.errors),s=r.length),u=h=g===s,u)var m={$ref:!0,summary:!0,description:!0};d="then"}else{const g=s;Iy(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o})||(r=r===null?Iy.errors:r.concat(Iy.errors),s=r.length),u=h=g===s,u&&m!==!0&&(m=!0),d="else"}if(!u){const g={instancePath:e,schemaPath:"#/if",keyword:"if",params:{failingKeyword:d},message:'must match "'+d+'" schema'};r===null?r=[g]:r.push(g),s++}return eu.errors=r,c.props=m,s===0}function bi(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=bi.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){for(const l in t)if(typeof t[l]!="string"){const u={instancePath:e+"/"+l.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[u]:r.push(u),s++}}else{const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[l]:r.push(l),s++}return bi.errors=r,s===0}function Cy(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Cy.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),wt(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o}))var l=wt.evaluated.props;const u=s;let f=!1,h=null;const d=s;if(t&&typeof t=="object"&&!Array.isArray(t)&&t.operationRef===void 0){const b={instancePath:e,schemaPath:"#/oneOf/0/required",keyword:"required",params:{missingProperty:"operationRef"},message:"must have required property 'operationRef'"};r===null?r=[b]:r.push(b),s++}d===s&&(f=!0,h=0);const m=s;if(t&&typeof t=="object"&&!Array.isArray(t)&&t.operationId===void 0){const b={instancePath:e,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty:"operationId"},message:"must have required property 'operationId'"};r===null?r=[b]:r.push(b),s++}var g;if((g=m===s)&&f?(f=!1,h=[h,1]):g&&(f=!0,h=1),f)s=u,r!==null&&(u?r.length=u:r=null);else{const b={instancePath:e,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas:h},message:"must match exactly one schema in oneOf"};r===null?r=[b]:r.push(b),s++}if(t&&typeof t=="object"&&!Array.isArray(t)){if(l!==!0&&((l=l||{}).operationRef=!0,l.operationId=!0,l.parameters=!0,l.requestBody=!0,l.description=!0,l.body=!0),t.operationRef!==void 0){let b=t.operationRef;if(typeof b=="string"){if(!Ar.test(b)){const v={instancePath:e+"/operationRef",schemaPath:"#/properties/operationRef/format",keyword:"format",params:{format:"uri-reference"},message:'must match format "uri-reference"'};r===null?r=[v]:r.push(v),s++}}else{const v={instancePath:e+"/operationRef",schemaPath:"#/properties/operationRef/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[v]:r.push(v),s++}}if(t.operationId!==void 0&&typeof t.operationId!="string"){const b={instancePath:e+"/operationId",schemaPath:"#/properties/operationId/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[b]:r.push(b),s++}if(t.parameters!==void 0&&(bi(t.parameters,{instancePath:e+"/parameters",parentData:t,parentDataProperty:"parameters",rootData:a,dynamicAnchors:o})||(r=r===null?bi.errors:r.concat(bi.errors),s=r.length)),t.description!==void 0&&typeof t.description!="string"){const b={instancePath:e+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[b]:r.push(b),s++}if(t.body!==void 0&&(Da(t.body,{instancePath:e+"/body",parentData:t,parentDataProperty:"body",rootData:a,dynamicAnchors:o})||(r=r===null?Da.errors:r.concat(Da.errors),s=r.length)),l!==!0){for(const b in t)if(!l||!l[b]){const v={instancePath:e,schemaPath:"#/unevaluatedProperties",keyword:"unevaluatedProperties",params:{unevaluatedProperty:b},message:"must NOT have unevaluated properties"};r===null?r=[v]:r.push(v),s++}}}else{const b={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[b]:r.push(b),s++}return Cy.errors=r,s===0}function tu(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=tu.evaluated;c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0);const l=s;let u=!0;const f=s;if(s===f)if(t&&typeof t=="object"&&!Array.isArray(t)){if(t.$ref===void 0){const g={};r===null?r=[g]:r.push(g),s++}}else{const g={};r===null?r=[g]:r.push(g),s++}var h=f===s;let d;if(s=l,r!==null&&(l?r.length=l:r=null),h){const g=s;if(Sr(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o})||(r=r===null?Sr.errors:r.concat(Sr.errors),s=r.length),u=h=g===s,u)var m={$ref:!0,summary:!0,description:!0};d="then"}else{const g=s;Cy(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o})||(r=r===null?Cy.errors:r.concat(Cy.errors),s=r.length),u=h=g===s,u&&m!==!0&&(m=!0),d="else"}if(!u){const g={instancePath:e,schemaPath:"#/if",keyword:"if",params:{failingKeyword:d},message:'must match "'+d+'" schema'};r===null?r=[g]:r.push(g),s++}return tu.errors=r,c.props=m,s===0}function Ty(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Ty.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),wt(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o}))var l=wt.evaluated.props;if(t&&typeof t=="object"&&!Array.isArray(t)){if(t.description===void 0){const u={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"description"},message:"must have required property 'description'"};r===null?r=[u]:r.push(u),s++}if(l!==!0&&((l=l||{}).description=!0,l.headers=!0,l.content=!0,l.links=!0),t.description!==void 0&&typeof t.description!="string"){const u={instancePath:e+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[u]:r.push(u),s++}if(t.headers!==void 0){let u=t.headers;if(u&&typeof u=="object"&&!Array.isArray(u))for(const f in u)ho(u[f],{instancePath:e+"/headers/"+f.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:u,parentDataProperty:f,rootData:a,dynamicAnchors:o})||(r=r===null?ho.errors:r.concat(ho.errors),s=r.length);else{const f={instancePath:e+"/headers",schemaPath:"#/properties/headers/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[f]:r.push(f),s++}}if(t.content!==void 0&&(bs(t.content,{instancePath:e+"/content",parentData:t,parentDataProperty:"content",rootData:a,dynamicAnchors:o})||(r=r===null?bs.errors:r.concat(bs.errors),s=r.length)),t.links!==void 0){let u=t.links;if(u&&typeof u=="object"&&!Array.isArray(u))for(const f in u)tu(u[f],{instancePath:e+"/links/"+f.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:u,parentDataProperty:f,rootData:a,dynamicAnchors:o})||(r=r===null?tu.errors:r.concat(tu.errors),s=r.length);else{const f={instancePath:e+"/links",schemaPath:"#/properties/links/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[f]:r.push(f),s++}}if(l!==!0){for(const u in t)if(!l||!l[u]){const f={instancePath:e,schemaPath:"#/unevaluatedProperties",keyword:"unevaluatedProperties",params:{unevaluatedProperty:u},message:"must NOT have unevaluated properties"};r===null?r=[f]:r.push(f),s++}}}else{const u={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[u]:r.push(u),s++}return Ty.errors=r,s===0}function Qs(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Qs.evaluated;c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0);const l=s;let u=!0;const f=s;if(s===f)if(t&&typeof t=="object"&&!Array.isArray(t)){if(t.$ref===void 0){const g={};r===null?r=[g]:r.push(g),s++}}else{const g={};r===null?r=[g]:r.push(g),s++}var h=f===s;let d;if(s=l,r!==null&&(l?r.length=l:r=null),h){const g=s;if(Sr(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o})||(r=r===null?Sr.errors:r.concat(Sr.errors),s=r.length),u=h=g===s,u)var m={$ref:!0,summary:!0,description:!0};d="then"}else{const g=s;Ty(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o})||(r=r===null?Ty.errors:r.concat(Ty.errors),s=r.length),u=h=g===s,u&&m!==!0&&(m=!0),d="else"}if(!u){const g={instancePath:e,schemaPath:"#/if",keyword:"if",params:{failingKeyword:d},message:'must match "'+d+'" schema'};r===null?r=[g]:r.push(g),s++}return Qs.errors=r,c.props=m,s===0}Cp.evaluated={dynamicProps:!0,dynamicItems:!1},Tp.evaluated={dynamicProps:!0,dynamicItems:!1},Ey.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},mo.evaluated={dynamicProps:!0,dynamicItems:!1},yo.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},Iy.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},eu.evaluated={dynamicProps:!0,dynamicItems:!1},bi.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},Cy.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},tu.evaluated={dynamicProps:!0,dynamicItems:!1},Ty.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},Qs.evaluated={dynamicProps:!0,dynamicItems:!1};const l8=new RegExp("^[1-5](?:[0-9]{2}|XX)$","u");function jy(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=jy.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),wt(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o}))var l=wt.evaluated.props;const u=s;let f=!0;const h=s;if(s===h&&t&&typeof t=="object"&&!Array.isArray(t)){var d={};for(const g in t)if(l8.test(g)){const b={};r===null?r=[b]:r.push(b),s++,d[g]=!0}}var m=h===s;if(l!==!0&&d!==void 0&&(d===!0?l=!0:(l=l||{},Object.assign(l,d))),s=u,r!==null&&(u?r.length=u:r=null),m){const g=s;if(t&&typeof t=="object"&&!Array.isArray(t)&&t.default===void 0){const b={instancePath:e,schemaPath:"#/then/required",keyword:"required",params:{missingProperty:"default"},message:"must have required property 'default'"};r===null?r=[b]:r.push(b),s++}f=m=g===s}if(!f){const g={instancePath:e,schemaPath:"#/if",keyword:"if",params:{failingKeyword:"then"},message:'must match "then" schema'};r===null?r=[g]:r.push(g),s++}if(t&&typeof t=="object"&&!Array.isArray(t)){if(Object.keys(t).length<1){const g={instancePath:e,schemaPath:"#/minProperties",keyword:"minProperties",params:{limit:1},message:"must NOT have fewer than 1 properties"};r===null?r=[g]:r.push(g),s++}l!==!0&&((l=l||{}).default=!0),t.default!==void 0&&(Qs(t.default,{instancePath:e+"/default",parentData:t,parentDataProperty:"default",rootData:a,dynamicAnchors:o})||(r=r===null?Qs.errors:r.concat(Qs.errors),s=r.length));for(const g in t)l8.test(g)&&(Qs(t[g],{instancePath:e+"/"+g.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:t,parentDataProperty:g,rootData:a,dynamicAnchors:o})||(r=r===null?Qs.errors:r.concat(Qs.errors),s=r.length),l[g]=!0);if(l!==!0){for(const g in t)if(!l||!l[g]){const b={instancePath:e,schemaPath:"#/unevaluatedProperties",keyword:"unevaluatedProperties",params:{unevaluatedProperty:g},message:"must NOT have unevaluated properties"};r===null?r=[b]:r.push(b),s++}}}else{const g={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[g]:r.push(g),s++}return jy.errors=r,s===0}jy.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};const cv={validate:Yp};function go(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=go.evaluated;c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0);const l=s;let u=!0;const f=s;if(s===f)if(t&&typeof t=="object"&&!Array.isArray(t)){if(t.$ref===void 0){const v={};r===null?r=[v]:r.push(v),s++}}else{const v={};r===null?r=[v]:r.push(v),s++}var h=f===s;let d;if(s=l,r!==null&&(l?r.length=l:r=null),h){const v=s;if(Sr(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o})||(r=r===null?Sr.errors:r.concat(Sr.errors),s=r.length),u=h=v===s,u)var m={$ref:!0,summary:!0,description:!0};d="then"}else{const v=s;if(cv.validate(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o}))var g=cv.validate.evaluated.props,b=cv.validate.evaluated.items;else r=r===null?cv.validate.errors:r.concat(cv.validate.errors),s=r.length;u=h=v===s,u&&m!==!0&&g!==void 0&&(g===!0?m=!0:(m=m||{},Object.assign(m,g))),d="else"}if(!u){const v={instancePath:e,schemaPath:"#/if",keyword:"if",params:{failingKeyword:d},message:'must match "'+d+'" schema'};r===null?r=[v]:r.push(v),s++}return go.errors=r,c.props=m,c.items=b,s===0}function My(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=My.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),wt(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o}),t&&typeof t=="object"&&!Array.isArray(t))for(const l in t)go(t[l],{instancePath:e+"/"+l.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:t,parentDataProperty:l,rootData:a,dynamicAnchors:o})||(r=r===null?go.errors:r.concat(go.errors),s=r.length);else{const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[l]:r.push(l),s++}return My.errors=r,s===0}function ru(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=ru.evaluated;c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0);const l=s;let u=!0;const f=s;if(s===f)if(t&&typeof t=="object"&&!Array.isArray(t)){if(t.$ref===void 0){const g={};r===null?r=[g]:r.push(g),s++}}else{const g={};r===null?r=[g]:r.push(g),s++}var h=f===s;let d;if(s=l,r!==null&&(l?r.length=l:r=null),h){const g=s;if(Sr(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o})||(r=r===null?Sr.errors:r.concat(Sr.errors),s=r.length),u=h=g===s,u)var m={$ref:!0,summary:!0,description:!0};d="then"}else{const g=s;My(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o})||(r=r===null?My.errors:r.concat(My.errors),s=r.length),u=h=g===s,u&&m!==!0&&(m=!0),d="else"}if(!u){const g={instancePath:e,schemaPath:"#/if",keyword:"if",params:{failingKeyword:d},message:'must match "'+d+'" schema'};r===null?r=[g]:r.push(g),s++}return ru.errors=r,c.props=m,s===0}function nu(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=nu.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t))for(const l in t){let u=t[l];if(Array.isArray(u)){const f=u.length;for(let h=0;h0){const b=[];for(const P of r)P.keyword==="errorMessage"||P.emUsed||P.instancePath!==e&&(P.instancePath.indexOf(e)!==0||P.instancePath[e.length]!=="/")||P.schemaPath.indexOf("#/anyOf/0")!==0||P.schemaPath[9]!=="/"||(b.push(P),P.emUsed=!0);if(b.length){const P={instancePath:e,schemaPath:"#/anyOf/0/errorMessage",keyword:"errorMessage",params:{errors:b},message:'The document must have either "paths", "webhooks" or "components"'};r===null?r=[P]:r.push(P),s++}const v=[];for(const P of r)P.emUsed||v.push(P);r=v,s=v.length}var d=h===s;f=f||d;const m=s;if(t&&typeof t=="object"&&!Array.isArray(t)&&t.components===void 0){const b={instancePath:e,schemaPath:"#/anyOf/1/required",keyword:"required",params:{missingProperty:"components"},message:"must have required property 'components'"};r===null?r=[b]:r.push(b),s++}if(s>0){const b=[];for(const P of r)P.keyword==="errorMessage"||P.emUsed||P.instancePath!==e&&(P.instancePath.indexOf(e)!==0||P.instancePath[e.length]!=="/")||P.schemaPath.indexOf("#/anyOf/1")!==0||P.schemaPath[9]!=="/"||(b.push(P),P.emUsed=!0);if(b.length){const P={instancePath:e,schemaPath:"#/anyOf/1/errorMessage",keyword:"errorMessage",params:{errors:b},message:'The document must have either "paths", "webhooks" or "components"'};r===null?r=[P]:r.push(P),s++}const v=[];for(const P of r)P.emUsed||v.push(P);r=v,s=v.length}d=m===s,f=f||d;const g=s;if(t&&typeof t=="object"&&!Array.isArray(t)&&t.webhooks===void 0){const b={instancePath:e,schemaPath:"#/anyOf/2/required",keyword:"required",params:{missingProperty:"webhooks"},message:"must have required property 'webhooks'"};r===null?r=[b]:r.push(b),s++}if(s>0){const b=[];for(const P of r)P.keyword==="errorMessage"||P.emUsed||P.instancePath!==e&&(P.instancePath.indexOf(e)!==0||P.instancePath[e.length]!=="/")||P.schemaPath.indexOf("#/anyOf/2")!==0||P.schemaPath[9]!=="/"||(b.push(P),P.emUsed=!0);if(b.length){const P={instancePath:e,schemaPath:"#/anyOf/2/errorMessage",keyword:"errorMessage",params:{errors:b},message:'The document must have either "paths", "webhooks" or "components"'};r===null?r=[P]:r.push(P),s++}const v=[];for(const P of r)P.emUsed||v.push(P);r=v,s=v.length}if(d=g===s,f=f||d,f)s=u,r!==null&&(u?r.length=u:r=null);else{const b={instancePath:e,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};r===null?r=[b]:r.push(b),s++}if(t&&typeof t=="object"&&!Array.isArray(t)){if(t.openapi===void 0){const b={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"openapi"},message:"must have required property 'openapi'"};r===null?r=[b]:r.push(b),s++}if(t.info===void 0){const b={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"info"},message:"must have required property 'info'"};r===null?r=[b]:r.push(b),s++}if(l!==!0&&((l=l||{}).openapi=!0,l.info=!0,l.jsonSchemaDialect=!0,l.servers=!0,l.paths=!0,l.webhooks=!0,l.components=!0,l.security=!0,l.tags=!0,l.externalDocs=!0),t.openapi!==void 0){let b=t.openapi;if(typeof b=="string"){if(!rrt.test(b)){const v={instancePath:e+"/openapi",schemaPath:"#/properties/openapi/pattern",keyword:"pattern",params:{pattern:"^3\\.1\\.\\d+(-.+)?$"},message:'must match pattern "^3\\.1\\.\\d+(-.+)?$"'};r===null?r=[v]:r.push(v),s++}}else{const v={instancePath:e+"/openapi",schemaPath:"#/properties/openapi/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[v]:r.push(v),s++}}if(t.info!==void 0&&(Py(t.info,{instancePath:e+"/info",parentData:t,parentDataProperty:"info",rootData:a,dynamicAnchors:o})||(r=r===null?Py.errors:r.concat(Py.errors),s=r.length)),t.jsonSchemaDialect!==void 0){let b=t.jsonSchemaDialect;if(typeof b=="string"){if(!Ni(b)){const v={instancePath:e+"/jsonSchemaDialect",schemaPath:"#/properties/jsonSchemaDialect/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};r===null?r=[v]:r.push(v),s++}}else{const v={instancePath:e+"/jsonSchemaDialect",schemaPath:"#/properties/jsonSchemaDialect/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[v]:r.push(v),s++}}if(t.servers!==void 0){let b=t.servers;if(Array.isArray(b)){const v=b.length;for(let P=0;P0){const b={anyOf:[]},v={};for(const A of r)A.keyword!=="errorMessage"&&!A.emUsed&&A.instancePath===e&&A.keyword in b&&A.schemaPath.indexOf("#")===0&&/^\/[^\/]*$/.test(A.schemaPath.slice(1))&&(b[A.keyword].push(A),A.emUsed=!0);for(const A in b)if(b[A].length){const _={instancePath:e,schemaPath:"#/errorMessage",keyword:"errorMessage",params:{errors:b[A]},message:A in v?v[A]():Ntt.errorMessage[A]};r===null?r=[_]:r.push(_),s++}const P=[];for(const A of r)A.emUsed||P.push(A);r=P,s=P.length}return IS.errors=r,s===0}IS.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};Ll.arazzo1_0=CS;function Dr(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){const r=Dr.evaluated;if(r.dynamicProps&&(r.props=void 0),r.dynamicItems&&(r.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){var s={};for(const c in t)Je.test(c)&&(s[c]=!0)}return Dr.errors=null,r.props=s,!0}function Hy(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Hy.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),Dr(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o}))var l=Dr.evaluated.props;if(t&&typeof t=="object"&&!Array.isArray(t)){if(t.title===void 0){const u={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"title"},message:"must have required property 'title'"};r===null?r=[u]:r.push(u),s++}if(t.version===void 0){const u={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"version"},message:"must have required property 'version'"};r===null?r=[u]:r.push(u),s++}if(l!==!0&&((l=l||{}).title=!0,l.summary=!0,l.description=!0,l.version=!0),t.title!==void 0&&typeof t.title!="string"){const u={instancePath:e+"/title",schemaPath:"#/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[u]:r.push(u),s++}if(t.summary!==void 0&&typeof t.summary!="string"){const u={instancePath:e+"/summary",schemaPath:"#/properties/summary/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[u]:r.push(u),s++}if(t.description!==void 0&&typeof t.description!="string"){const u={instancePath:e+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[u]:r.push(u),s++}if(t.version!==void 0&&typeof t.version!="string"){const u={instancePath:e+"/version",schemaPath:"#/properties/version/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[u]:r.push(u),s++}if(l!==!0){for(const u in t)if(!l||!l[u]){const f={instancePath:e,schemaPath:"#/unevaluatedProperties",keyword:"unevaluatedProperties",params:{unevaluatedProperty:u},message:"must NOT have unevaluated properties"};r===null?r=[f]:r.push(f),s++}}}else{const u={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[u]:r.push(u),s++}return Hy.errors=r,s===0}Dr.evaluated={dynamicProps:!0,dynamicItems:!1},Hy.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};const nrt={$comment:"https://spec.openapis.org/arazzo/v1.0.0#source-description-object",description:`Describes a source description (such as an OpenAPI description) -that will be referenced by one or more workflows described within -an Arazzo description`,type:"object",properties:{name:{description:"A unique name for the source description",type:"string",pattern:"^[A-Za-z0-9_\\-]+$"},url:{description:"A URL to a source description to be used by a workflow",type:"string",format:"uri-reference"},type:{description:"The type of source description",enum:["arazzo","openapi"]}},required:["name","url"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},irt=new RegExp("^[A-Za-z0-9_\\-]+$","u");function Gy(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Gy.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),Dr(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o}))var l=Dr.evaluated.props;if(t&&typeof t=="object"&&!Array.isArray(t)){if(t.name===void 0){const u={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"name"},message:"must have required property 'name'"};r===null?r=[u]:r.push(u),s++}if(t.url===void 0){const u={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"url"},message:"must have required property 'url'"};r===null?r=[u]:r.push(u),s++}if(l!==!0&&((l=l||{}).name=!0,l.url=!0,l.type=!0),t.name!==void 0){let u=t.name;if(typeof u=="string"){if(!irt.test(u)){const f={instancePath:e+"/name",schemaPath:"#/properties/name/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z0-9_\\-]+$"},message:'must match pattern "^[A-Za-z0-9_\\-]+$"'};r===null?r=[f]:r.push(f),s++}}else{const f={instancePath:e+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[f]:r.push(f),s++}}if(t.url!==void 0){let u=t.url;if(typeof u=="string"){if(!Ar.test(u)){const f={instancePath:e+"/url",schemaPath:"#/properties/url/format",keyword:"format",params:{format:"uri-reference"},message:'must match format "uri-reference"'};r===null?r=[f]:r.push(f),s++}}else{const f={instancePath:e+"/url",schemaPath:"#/properties/url/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[f]:r.push(f),s++}}if(t.type!==void 0){let u=t.type;if(u!=="arazzo"&&u!=="openapi"){const f={instancePath:e+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:nrt.properties.type.enum},message:"must be equal to one of the allowed values"};r===null?r=[f]:r.push(f),s++}}if(l!==!0){for(const u in t)if(!l||!l[u]){const f={instancePath:e,schemaPath:"#/unevaluatedProperties",keyword:"unevaluatedProperties",params:{unevaluatedProperty:u},message:"must NOT have unevaluated properties"};r===null?r=[f]:r.push(f),s++}}}else{const u={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[u]:r.push(u),s++}return Gy.errors=r,s===0}function nP(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=nP.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),typeof t!="string"){const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}return o.workflowId||(o.workflowId=nP),nP.errors=r,s===0}Gy.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},nP.evaluated={dynamicProps:!1,dynamicItems:!1};const art={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/schema",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/core":!0,"https://json-schema.org/draft/2020-12/vocab/applicator":!0,"https://json-schema.org/draft/2020-12/vocab/unevaluated":!0,"https://json-schema.org/draft/2020-12/vocab/validation":!0,"https://json-schema.org/draft/2020-12/vocab/meta-data":!0,"https://json-schema.org/draft/2020-12/vocab/format-annotation":!0,"https://json-schema.org/draft/2020-12/vocab/content":!0},$dynamicAnchor:"meta",title:"Core and Validation specifications meta-schema",allOf:[{$ref:"meta/core"},{$ref:"meta/applicator"},{$ref:"meta/unevaluated"},{$ref:"meta/validation"},{$ref:"meta/meta-data"},{$ref:"meta/format-annotation"},{$ref:"meta/content"}],type:["object","boolean"],$comment:"This meta-schema also defines keywords that have appeared in previous drafts in order to prevent incompatible extensions as they remain in common use.",properties:{definitions:{$comment:'"definitions" has been replaced by "$defs".',type:"object",additionalProperties:{$dynamicRef:"#meta"},deprecated:!0,default:{}},dependencies:{$comment:'"dependencies" has been split and replaced by "dependentSchemas" and "dependentRequired" in order to serve their differing semantics.',type:"object",additionalProperties:{anyOf:[{$dynamicRef:"#meta"},{$ref:"meta/validation#/$defs/stringArray"}]},deprecated:!0,default:{}},$recursiveAnchor:{$comment:'"$recursiveAnchor" has been replaced by "$dynamicAnchor".',$ref:"meta/core#/$defs/anchorString",deprecated:!0},$recursiveRef:{$comment:'"$recursiveRef" has been replaced by "$dynamicRef".',$ref:"meta/core#/$defs/uriReferenceString",deprecated:!0}}},srt={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/validation",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/validation":!0},$dynamicAnchor:"meta",title:"Validation vocabulary meta-schema",type:["object","boolean"],properties:{type:{anyOf:[{$ref:"#/$defs/simpleTypes"},{type:"array",items:{$ref:"#/$defs/simpleTypes"},minItems:1,uniqueItems:!0}]},const:!0,enum:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/$defs/nonNegativeInteger"},minLength:{$ref:"#/$defs/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},maxItems:{$ref:"#/$defs/nonNegativeInteger"},minItems:{$ref:"#/$defs/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},maxContains:{$ref:"#/$defs/nonNegativeInteger"},minContains:{$ref:"#/$defs/nonNegativeInteger",default:1},maxProperties:{$ref:"#/$defs/nonNegativeInteger"},minProperties:{$ref:"#/$defs/nonNegativeIntegerDefault0"},required:{$ref:"#/$defs/stringArray"},dependentRequired:{type:"object",additionalProperties:{$ref:"#/$defs/stringArray"}}},$defs:{nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{$ref:"#/$defs/nonNegativeInteger",default:0},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}}},ort={enum:["array","boolean","integer","null","number","object","string"]};function xc(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=xc.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t!=="array"&&t!=="boolean"&&t!=="integer"&&t!=="null"&&t!=="number"&&t!=="object"&&t!=="string"){const l={instancePath:e,schemaPath:"#/enum",keyword:"enum",params:{allowedValues:ort.enum},message:"must be equal to one of the allowed values"};r===null?r=[l]:r.push(l),s++}return xc.errors=r,s===0}function hi(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=hi.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),typeof t!="number"||t%1||isNaN(t)){const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"integer"},message:"must be integer"};r===null?r=[l]:r.push(l),s++}if(typeof t=="number"&&(t<0||isNaN(t))){const l={instancePath:e,schemaPath:"#/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0"};r===null?r=[l]:r.push(l),s++}return hi.errors=r,s===0}function Vs(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Vs.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),typeof t!="number"||t%1||isNaN(t)){const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"integer"},message:"must be integer"};r===null?r=[l]:r.push(l),s++}if(typeof t=="number"&&(t<0||isNaN(t))){const l={instancePath:e,schemaPath:"#/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0"};r===null?r=[l]:r.push(l),s++}return Vs.errors=r,s===0}function Dc(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Dc.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),Array.isArray(t)){const l=t.length;for(let h=0;h1){const h={};for(;f--;){let d=t[f];if(typeof d=="string"){if(typeof h[d]=="number"){u=h[d];const m={instancePath:e,schemaPath:"#/uniqueItems",keyword:"uniqueItems",params:{i:f,j:u},message:"must NOT have duplicate items (items ## "+u+" and "+f+" are identical)"};r===null?r=[m]:r.push(m),s++;break}h[d]=f}}}}else{const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"array"},message:"must be array"};r===null?r=[l]:r.push(l),s++}return Dc.errors=r,s===0}function Jp(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Jp.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),(!t||typeof t!="object"||Array.isArray(t))&&typeof t!="boolean"){const u={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:srt.type},message:"must be object,boolean"};r===null?r=[u]:r.push(u),s++}if(o.meta||(o.meta=Jp),t&&typeof t=="object"&&!Array.isArray(t)){if(t.type!==void 0){let u=t.type;const f=s;let h=!1;const d=s;xc(u,{instancePath:e+"/type",parentData:t,parentDataProperty:"type",rootData:a,dynamicAnchors:o})||(r=r===null?xc.errors:r.concat(xc.errors),s=r.length);var l=d===s;h=h||l;const m=s;if(Array.isArray(u)){if(u.length<1){const P={instancePath:e+"/type",schemaPath:"#/properties/type/anyOf/1/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items"};r===null?r=[P]:r.push(P),s++}const g=u.length;for(let P=0;P1){e:for(;v--;)for(b=v;b--;)if(Wr(u[v],u[b])){const P={instancePath:e+"/type",schemaPath:"#/properties/type/anyOf/1/uniqueItems",keyword:"uniqueItems",params:{i:v,j:b},message:"must NOT have duplicate items (items ## "+b+" and "+v+" are identical)"};r===null?r=[P]:r.push(P),s++;break e}}}else{const g={instancePath:e+"/type",schemaPath:"#/properties/type/anyOf/1/type",keyword:"type",params:{type:"array"},message:"must be array"};r===null?r=[g]:r.push(g),s++}if(l=m===s,h=h||l,h)s=f,r!==null&&(f?r.length=f:r=null);else{const g={instancePath:e+"/type",schemaPath:"#/properties/type/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};r===null?r=[g]:r.push(g),s++}}if(t.enum!==void 0&&!Array.isArray(t.enum)){const u={instancePath:e+"/enum",schemaPath:"#/properties/enum/type",keyword:"type",params:{type:"array"},message:"must be array"};r===null?r=[u]:r.push(u),s++}if(t.multipleOf!==void 0){let u=t.multipleOf;if(typeof u=="number"){if(u<=0||isNaN(u)){const f={instancePath:e+"/multipleOf",schemaPath:"#/properties/multipleOf/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison:">",limit:0},message:"must be > 0"};r===null?r=[f]:r.push(f),s++}}else{const f={instancePath:e+"/multipleOf",schemaPath:"#/properties/multipleOf/type",keyword:"type",params:{type:"number"},message:"must be number"};r===null?r=[f]:r.push(f),s++}}if(t.maximum!==void 0&&typeof t.maximum!="number"){const u={instancePath:e+"/maximum",schemaPath:"#/properties/maximum/type",keyword:"type",params:{type:"number"},message:"must be number"};r===null?r=[u]:r.push(u),s++}if(t.exclusiveMaximum!==void 0&&typeof t.exclusiveMaximum!="number"){const u={instancePath:e+"/exclusiveMaximum",schemaPath:"#/properties/exclusiveMaximum/type",keyword:"type",params:{type:"number"},message:"must be number"};r===null?r=[u]:r.push(u),s++}if(t.minimum!==void 0&&typeof t.minimum!="number"){const u={instancePath:e+"/minimum",schemaPath:"#/properties/minimum/type",keyword:"type",params:{type:"number"},message:"must be number"};r===null?r=[u]:r.push(u),s++}if(t.exclusiveMinimum!==void 0&&typeof t.exclusiveMinimum!="number"){const u={instancePath:e+"/exclusiveMinimum",schemaPath:"#/properties/exclusiveMinimum/type",keyword:"type",params:{type:"number"},message:"must be number"};r===null?r=[u]:r.push(u),s++}if(t.maxLength!==void 0&&(hi(t.maxLength,{instancePath:e+"/maxLength",parentData:t,parentDataProperty:"maxLength",rootData:a,dynamicAnchors:o})||(r=r===null?hi.errors:r.concat(hi.errors),s=r.length)),t.minLength!==void 0&&(Vs(t.minLength,{instancePath:e+"/minLength",parentData:t,parentDataProperty:"minLength",rootData:a,dynamicAnchors:o})||(r=r===null?Vs.errors:r.concat(Vs.errors),s=r.length)),t.pattern!==void 0&&typeof t.pattern!="string"){const u={instancePath:e+"/pattern",schemaPath:"#/properties/pattern/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[u]:r.push(u),s++}if(t.maxItems!==void 0&&(hi(t.maxItems,{instancePath:e+"/maxItems",parentData:t,parentDataProperty:"maxItems",rootData:a,dynamicAnchors:o})||(r=r===null?hi.errors:r.concat(hi.errors),s=r.length)),t.minItems!==void 0&&(Vs(t.minItems,{instancePath:e+"/minItems",parentData:t,parentDataProperty:"minItems",rootData:a,dynamicAnchors:o})||(r=r===null?Vs.errors:r.concat(Vs.errors),s=r.length)),t.uniqueItems!==void 0&&typeof t.uniqueItems!="boolean"){const u={instancePath:e+"/uniqueItems",schemaPath:"#/properties/uniqueItems/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};r===null?r=[u]:r.push(u),s++}if(t.maxContains!==void 0&&(hi(t.maxContains,{instancePath:e+"/maxContains",parentData:t,parentDataProperty:"maxContains",rootData:a,dynamicAnchors:o})||(r=r===null?hi.errors:r.concat(hi.errors),s=r.length)),t.minContains!==void 0&&(hi(t.minContains,{instancePath:e+"/minContains",parentData:t,parentDataProperty:"minContains",rootData:a,dynamicAnchors:o})||(r=r===null?hi.errors:r.concat(hi.errors),s=r.length)),t.maxProperties!==void 0&&(hi(t.maxProperties,{instancePath:e+"/maxProperties",parentData:t,parentDataProperty:"maxProperties",rootData:a,dynamicAnchors:o})||(r=r===null?hi.errors:r.concat(hi.errors),s=r.length)),t.minProperties!==void 0&&(Vs(t.minProperties,{instancePath:e+"/minProperties",parentData:t,parentDataProperty:"minProperties",rootData:a,dynamicAnchors:o})||(r=r===null?Vs.errors:r.concat(Vs.errors),s=r.length)),t.required!==void 0&&(Dc(t.required,{instancePath:e+"/required",parentData:t,parentDataProperty:"required",rootData:a,dynamicAnchors:o})||(r=r===null?Dc.errors:r.concat(Dc.errors),s=r.length)),t.dependentRequired!==void 0){let u=t.dependentRequired;if(u&&typeof u=="object"&&!Array.isArray(u))for(const f in u)Dc(u[f],{instancePath:e+"/dependentRequired/"+f.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:u,parentDataProperty:f,rootData:a,dynamicAnchors:o})||(r=r===null?Dc.errors:r.concat(Dc.errors),s=r.length);else{const f={instancePath:e+"/dependentRequired",schemaPath:"#/properties/dependentRequired/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[f]:r.push(f),s++}}}return Jp.errors=r,s===0}function Kn(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Kn.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),(!t||typeof t!="object"||Array.isArray(t))&&typeof t!="boolean"){const P={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:art.type},message:"must be object,boolean"};r===null?r=[P]:r.push(P),s++}if(o.meta||(o.meta=Kn),pa(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o})||(r=r===null?pa.errors:r.concat(pa.errors),s=r.length),dt(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o})||(r=r===null?dt.errors:r.concat(dt.errors),s=r.length),Gn(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o})||(r=r===null?Gn.errors:r.concat(Gn.errors),s=r.length),Jp(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o})||(r=r===null?Jp.errors:r.concat(Jp.errors),s=r.length),Bl(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o})||(r=r===null?Bl.errors:r.concat(Bl.errors),s=r.length),Vl(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o})||(r=r===null?Vl.errors:r.concat(Vl.errors),s=r.length),ha(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o})||(r=r===null?ha.errors:r.concat(ha.errors),s=r.length),t&&typeof t=="object"&&!Array.isArray(t)){if(t.definitions!==void 0){let P=t.definitions;if(P&&typeof P=="object"&&!Array.isArray(P))for(const A in P){let _=P[A],x=o.meta;if(x)if(x(_,{instancePath:e+"/definitions/"+A.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:P,parentDataProperty:A,rootData:a,dynamicAnchors:o}))var l=x.evaluated.props,u=x.evaluated.items;else r=r===null?x.errors:r.concat(x.errors),s=r.length;else if(Kn(_,{instancePath:e+"/definitions/"+A.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:P,parentDataProperty:A,rootData:a,dynamicAnchors:o})){var f=Kn.evaluated.props;l!==!0&&f!==void 0&&(f===!0?l=!0:(l=l||{},Object.assign(l,f)));var h=Kn.evaluated.items;u!==!0&&h!==void 0&&(u=h===!0||(u>h?u:h))}else r=r===null?Kn.errors:r.concat(Kn.errors),s=r.length}else{const A={instancePath:e+"/definitions",schemaPath:"#/properties/definitions/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[A]:r.push(A),s++}}if(t.dependencies!==void 0){let P=t.dependencies;if(P&&typeof P=="object"&&!Array.isArray(P))for(const A in P){let _=P[A];const x=s;let N=!1;const j=s;let I=o.meta;if(I)if(I(_,{instancePath:e+"/dependencies/"+A.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:P,parentDataProperty:A,rootData:a,dynamicAnchors:o}))var d=I.evaluated.props,m=I.evaluated.items;else r=r===null?I.errors:r.concat(I.errors),s=r.length;else if(Kn(_,{instancePath:e+"/dependencies/"+A.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:P,parentDataProperty:A,rootData:a,dynamicAnchors:o})){var g=Kn.evaluated.props;d!==!0&&g!==void 0&&(g===!0?d=!0:(d=d||{},Object.assign(d,g)));var b=Kn.evaluated.items;m!==!0&&b!==void 0&&(m=b===!0||(m>b?m:b))}else r=r===null?Kn.errors:r.concat(Kn.errors),s=r.length;var v=j===s;N=N||v;const E=s;if(Jc(_,{instancePath:e+"/dependencies/"+A.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:P,parentDataProperty:A,rootData:a,dynamicAnchors:o})||(r=r===null?Jc.errors:r.concat(Jc.errors),s=r.length),v=E===s,N=N||v,v&&m!==!0&&(m=!0),N)s=x,r!==null&&(x?r.length=x:r=null);else{const L={instancePath:e+"/dependencies/"+A.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/dependencies/additionalProperties/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};r===null?r=[L]:r.push(L),s++}}else{const A={instancePath:e+"/dependencies",schemaPath:"#/properties/dependencies/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[A]:r.push(A),s++}}t.$recursiveAnchor!==void 0&&(Qc(t.$recursiveAnchor,{instancePath:e+"/$recursiveAnchor",parentData:t,parentDataProperty:"$recursiveAnchor",rootData:a,dynamicAnchors:o})||(r=r===null?Qc.errors:r.concat(Qc.errors),s=r.length)),t.$recursiveRef!==void 0&&(Zc(t.$recursiveRef,{instancePath:e+"/$recursiveRef",parentData:t,parentDataProperty:"$recursiveRef",rootData:a,dynamicAnchors:o})||(r=r===null?Zc.errors:r.concat(Zc.errors),s=r.length))}return Kn.errors=r,s===0}xc.evaluated={dynamicProps:!1,dynamicItems:!1},hi.evaluated={dynamicProps:!1,dynamicItems:!1},Vs.evaluated={dynamicProps:!1,dynamicItems:!1},Dc.evaluated={items:!0,dynamicProps:!1,dynamicItems:!1},Jp.evaluated={props:{type:!0,const:!0,enum:!0,multipleOf:!0,maximum:!0,exclusiveMaximum:!0,minimum:!0,exclusiveMinimum:!0,maxLength:!0,minLength:!0,pattern:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxContains:!0,minContains:!0,maxProperties:!0,minProperties:!0,required:!0,dependentRequired:!0},dynamicProps:!1,dynamicItems:!1},Kn.evaluated={props:{definitions:!0,dependencies:!0,$recursiveAnchor:!0,$recursiveRef:!0,contentEncoding:!0,contentMediaType:!0,contentSchema:!0,format:!0,title:!0,description:!0,default:!0,deprecated:!0,readOnly:!0,writeOnly:!0,examples:!0,type:!0,const:!0,enum:!0,multipleOf:!0,maximum:!0,exclusiveMaximum:!0,minimum:!0,exclusiveMinimum:!0,maxLength:!0,minLength:!0,pattern:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxContains:!0,minContains:!0,maxProperties:!0,minProperties:!0,required:!0,dependentRequired:!0,unevaluatedItems:!0,unevaluatedProperties:!0,prefixItems:!0,items:!0,contains:!0,additionalProperties:!0,properties:!0,patternProperties:!0,dependentSchemas:!0,propertyNames:!0,if:!0,then:!0,else:!0,allOf:!0,anyOf:!0,oneOf:!0,not:!0,$id:!0,$schema:!0,$ref:!0,$anchor:!0,$dynamicRef:!0,$dynamicAnchor:!0,$vocabulary:!0,$comment:!0,$defs:!0},dynamicProps:!1,dynamicItems:!1};const Wu={$comment:"https://spec.openapis.org/arazzo/v1.0.0#step-object'",description:`Describes a single workflow step which MAY be a call to an -API operation (OpenAPI Operation Object or another Workflow Object)`,type:"object",properties:{stepId:{description:"Unique string to represent the step",$dynamicAnchor:"stepId",type:"string"},description:{description:"A description of the step. CommonMark syntax MAY be used for rich text representation",type:"string"},operationId:{description:"The name of an existing, resolvable operation, as defined with a unique operationId and existing within one of the sourceDescriptions",type:"string"},operationPath:{description:"A reference to a Source combined with a JSON Pointer to reference an operation",type:"string"},workflowId:{description:"The workflowId referencing an existing workflow within the Arazzo description",$dynamicRef:"#workflowId"},parameters:{description:"A list of parameters that MUST be passed to an operation or workflow as referenced by operationId, operationPath, or workflowId",type:"array",uniqueItems:!0,items:!0},requestBody:{$ref:"#/$defs/request-body-object"},successCriteria:{description:"A list of assertions to determine the success of the step",type:"array",uniqueItems:!0,minItems:1,items:{$ref:"#/$defs/criterion-object"}},onSuccess:{description:"An array of success action objects that specify what to do upon step success",type:"array",uniqueItems:!0,items:{oneOf:[{$ref:"#/$defs/success-action-object"},{$ref:"#/$defs/reusable-object"}]}},onFailure:{description:"An array of failure action objects that specify what to do upon step failure",type:"array",uniqueItems:!0,items:{oneOf:[{$ref:"#/$defs/failure-action-object"},{$ref:"#/$defs/reusable-object"}]}},outputs:{description:"A map between a friendly name and a dynamic output value defined using a runtime expression",type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{type:"string"}}}},required:["stepId"],oneOf:[{required:["operationId"]},{required:["operationPath"]},{required:["workflowId"]}],allOf:[{if:{required:["operationId"]},then:{properties:{parameters:{items:{oneOf:[{type:"object",properties:{name:{type:"string"},in:{description:"The named location of the parameter",enum:["path","query","header","cookie","body"]},value:{description:"The value to pass in the parameter",type:["string","boolean","object","array","number","null"]}},required:["name","value","in"]},{type:"object",properties:{reference:{type:"string"},value:{description:"The value to pass in the parameter",type:["string","boolean","object","array","number","null"]}},required:["reference"]}]}}}}},{if:{required:["operationPath"]},then:{properties:{parameters:{items:{oneOf:[{type:"object",properties:{name:{type:"string"},in:{description:"The named location of the parameter",enum:["path","query","header","cookie","body"]},value:{description:"The value to pass in the parameter",type:["string","boolean","object","array","number","null"]}},required:["name","value","in"]},{type:"object",properties:{reference:{type:"string"},value:{description:"The value to pass in the parameter",type:["string","boolean","object","array","number","null"]}},required:["reference"]}]}}}}},{if:{required:["workflowId"]},then:{properties:{parameters:{items:{oneOf:[{type:"object",properties:{name:{type:"string"},value:{description:"The value to pass in the parameter",type:["string","boolean","object","array","number","null"]}},required:["name","value"]},{type:"object",properties:{reference:{type:"string"},value:{description:"The value to pass in the parameter",type:["string","boolean","object","array","number","null"]}},required:["reference"]}]}}}}}],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1};function iP(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=iP.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),typeof t!="string"){const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}return o.stepId||(o.stepId=iP),iP.errors=r,s===0}function Ky(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Ky.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),Dr(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o}))var l=Dr.evaluated.props;if(t&&typeof t=="object"&&!Array.isArray(t)){if(t.target===void 0){const u={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"target"},message:"must have required property 'target'"};r===null?r=[u]:r.push(u),s++}if(t.value===void 0){const u={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"value"},message:"must have required property 'value'"};r===null?r=[u]:r.push(u),s++}if(l!==!0&&((l=l||{}).target=!0,l.value=!0),t.target!==void 0&&typeof t.target!="string"){const u={instancePath:e+"/target",schemaPath:"#/properties/target/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[u]:r.push(u),s++}if(t.value!==void 0&&typeof t.value!="string"){const u={instancePath:e+"/value",schemaPath:"#/properties/value/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[u]:r.push(u),s++}if(l!==!0){for(const u in t)if(!l||!l[u]){const f={instancePath:e,schemaPath:"#/unevaluatedProperties",keyword:"unevaluatedProperties",params:{unevaluatedProperty:u},message:"must NOT have unevaluated properties"};r===null?r=[f]:r.push(f),s++}}}else{const u={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[u]:r.push(u),s++}return Ky.errors=r,s===0}function Yy(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Yy.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),Dr(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o}))var l=Dr.evaluated.props;if(t&&typeof t=="object"&&!Array.isArray(t)){if(l!==!0&&((l=l||{}).contentType=!0,l.payload=!0,l.replacements=!0),t.contentType!==void 0&&typeof t.contentType!="string"){const u={instancePath:e+"/contentType",schemaPath:"#/properties/contentType/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[u]:r.push(u),s++}if(t.replacements!==void 0){let u=t.replacements;if(Array.isArray(u)){const f=u.length;for(let m=0;m1){e:for(;d--;)for(h=d;h--;)if(Wr(u[d],u[h])){const m={instancePath:e+"/replacements",schemaPath:"#/properties/replacements/uniqueItems",keyword:"uniqueItems",params:{i:d,j:h},message:"must NOT have duplicate items (items ## "+h+" and "+d+" are identical)"};r===null?r=[m]:r.push(m),s++;break e}}}else{const f={instancePath:e+"/replacements",schemaPath:"#/properties/replacements/type",keyword:"type",params:{type:"array"},message:"must be array"};r===null?r=[f]:r.push(f),s++}}if(l!==!0){for(const u in t)if(!l||!l[u]){const f={instancePath:e,schemaPath:"#/unevaluatedProperties",keyword:"unevaluatedProperties",params:{unevaluatedProperty:u},message:"must NOT have unevaluated properties"};r===null?r=[f]:r.push(f),s++}}}else{const u={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[u]:r.push(u),s++}return Yy.errors=r,s===0}iP.evaluated={dynamicProps:!1,dynamicItems:!1},Ky.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},Yy.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};const lrt={$comment:"https://spec.openapis.org/arazzo/v1.0.0#criterion-object",description:`An object used to specify the context, conditions, and condition types -that can be used to prove or satisfy assertions specified in Step Object successCriteria, -Success Action Object criteria, and Failure Action Object criteria`,type:"object",properties:{context:{description:"A runtime expression used to set the context for the condition to be applied on",type:"string"},condition:{description:"The condition to apply",type:"string"}},anyOf:[{type:"object",properties:{type:{description:"The type of condition to be applied",enum:["simple","regex","jsonpath","xpath"],default:"simple"}}},{$ref:"#/$defs/criterion-expression-type-object"}],required:["condition"],dependentRequired:{type:["context"]},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},c8={$comment:"https://spec.openapis.org/arazzo/v1.0.0#criterion-expression-type-object",description:"An object used to describe the type and version of an expression used within a Criterion Object",type:"object",properties:{type:{description:"The type of condition to be applied",enum:["jsonpath","xpath"]},version:{description:"A short hand string representing the version of the expression type",type:"string"}},required:["type","version"],allOf:[{if:{required:["type"],properties:{type:{const:"jsonpath"}}},then:{properties:{version:{const:"draft-goessner-dispatch-jsonpath-00"}}}},{if:{required:["type"],properties:{type:{const:"xpath"}}},then:{properties:{version:{enum:["xpath-10","xpath-20","xpath-30"]}}}}],$ref:"#/$defs/specification-extensions"};function Fp(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Fp.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),Dr(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o}))var l=Dr.evaluated.props;const u=s;let f=!0;const h=s;if(t&&typeof t=="object"&&!Array.isArray(t)){if(t.type===void 0){const _={};r===null?r=[_]:r.push(_),s++}else if(t.type!==void 0&&t.type!=="jsonpath"){const _={};r===null?r=[_]:r.push(_),s++}}var d=h===s;if(s=u,r!==null&&(u?r.length=u:r=null),d){const _=s;if(t&&typeof t=="object"&&!Array.isArray(t)&&t.version!==void 0&&t.version!=="draft-goessner-dispatch-jsonpath-00"){const x={instancePath:e+"/version",schemaPath:"#/allOf/0/then/properties/version/const",keyword:"const",params:{allowedValue:"draft-goessner-dispatch-jsonpath-00"},message:"must be equal to constant"};r===null?r=[x]:r.push(x),s++}if(f=d=_===s,f)var m={version:!0,type:!0}}if(!f){const _={instancePath:e,schemaPath:"#/allOf/0/if",keyword:"if",params:{failingKeyword:"then"},message:'must match "then" schema'};r===null?r=[_]:r.push(_),s++}l!==!0&&m!==void 0&&(m===!0?l=!0:(l=l||{},Object.assign(l,m)));const g=s;let b=!0;const v=s;if(t&&typeof t=="object"&&!Array.isArray(t)){if(t.type===void 0){const _={};r===null?r=[_]:r.push(_),s++}else if(t.type!==void 0&&t.type!=="xpath"){const _={};r===null?r=[_]:r.push(_),s++}}var P=v===s;if(s=g,r!==null&&(g?r.length=g:r=null),P){const _=s;if(t&&typeof t=="object"&&!Array.isArray(t)&&t.version!==void 0){let x=t.version;if(x!=="xpath-10"&&x!=="xpath-20"&&x!=="xpath-30"){const N={instancePath:e+"/version",schemaPath:"#/allOf/1/then/properties/version/enum",keyword:"enum",params:{allowedValues:c8.allOf[1].then.properties.version.enum},message:"must be equal to one of the allowed values"};r===null?r=[N]:r.push(N),s++}}if(b=P=_===s,b)var A={version:!0,type:!0}}if(!b){const _={instancePath:e,schemaPath:"#/allOf/1/if",keyword:"if",params:{failingKeyword:"then"},message:'must match "then" schema'};r===null?r=[_]:r.push(_),s++}if(l!==!0&&A!==void 0&&(A===!0?l=!0:(l=l||{},Object.assign(l,A))),t&&typeof t=="object"&&!Array.isArray(t)){if(t.type===void 0){const _={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};r===null?r=[_]:r.push(_),s++}if(t.version===void 0){const _={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"version"},message:"must have required property 'version'"};r===null?r=[_]:r.push(_),s++}if(l!==!0&&((l=l||{}).type=!0,l.version=!0),t.type!==void 0){let _=t.type;if(_!=="jsonpath"&&_!=="xpath"){const x={instancePath:e+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:c8.properties.type.enum},message:"must be equal to one of the allowed values"};r===null?r=[x]:r.push(x),s++}}if(t.version!==void 0&&typeof t.version!="string"){const _={instancePath:e+"/version",schemaPath:"#/properties/version/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[_]:r.push(_),s++}}else{const _={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[_]:r.push(_),s++}return Fp.errors=r,c.props=l,s===0}function vo(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=vo.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),Dr(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o}))var l=Dr.evaluated.props;const u=s;let f=!1;const h=s;if(t&&typeof t=="object"&&!Array.isArray(t)){if(t.type!==void 0){let b=t.type;if(b!=="simple"&&b!=="regex"&&b!=="jsonpath"&&b!=="xpath"){const v={instancePath:e+"/type",schemaPath:"#/anyOf/0/properties/type/enum",keyword:"enum",params:{allowedValues:lrt.anyOf[0].properties.type.enum},message:"must be equal to one of the allowed values"};r===null?r=[v]:r.push(v),s++}}}else{const b={instancePath:e,schemaPath:"#/anyOf/0/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[b]:r.push(b),s++}var d=h===s;f=f||d,d&&l!==!0&&((l=l||{}).type=!0);const m=s;if(Fp(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o}))var g=Fp.evaluated.props;else r=r===null?Fp.errors:r.concat(Fp.errors),s=r.length;if(d=m===s,f=f||d,d&&l!==!0&&g!==void 0&&(g===!0?l=!0:(l=l||{},Object.assign(l,g))),f)s=u,r!==null&&(u?r.length=u:r=null);else{const b={instancePath:e,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};r===null?r=[b]:r.push(b),s++}if(t&&typeof t=="object"&&!Array.isArray(t)){if(t.condition===void 0){const b={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"condition"},message:"must have required property 'condition'"};r===null?r=[b]:r.push(b),s++}if(l!==!0&&((l=l||{}).context=!0,l.condition=!0),t.context!==void 0&&typeof t.context!="string"){const b={instancePath:e+"/context",schemaPath:"#/properties/context/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[b]:r.push(b),s++}if(t.condition!==void 0&&typeof t.condition!="string"){const b={instancePath:e+"/condition",schemaPath:"#/properties/condition/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[b]:r.push(b),s++}if(t.type!==void 0&&t.context===void 0){const b={instancePath:e,schemaPath:"#/dependentRequired",keyword:"dependentRequired",params:{property:"type",missingProperty:"context",depsCount:1,deps:"context"},message:"must have property context when property type is present"};r===null?r=[b]:r.push(b),s++}if(l!==!0){for(const b in t)if(!l||!l[b]){const v={instancePath:e,schemaPath:"#/unevaluatedProperties",keyword:"unevaluatedProperties",params:{unevaluatedProperty:b},message:"must NOT have unevaluated properties"};r===null?r=[v]:r.push(v),s++}}}else{const b={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[b]:r.push(b),s++}return vo.errors=r,s===0}Fp.evaluated={dynamicProps:!0,dynamicItems:!1},vo.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};const yI={$comment:"https://spec.openapis.org/arazzo/v1.0.0#success-action-object",description:"A single success action which describes an action to take upon success of a workflow step",type:"object",properties:{name:{description:"The name of the success action",type:"string"},type:{description:"The type of action to take",enum:["end","goto"]},workflowId:{description:"The workflowId referencing an existing workflow within the Arazzo description to transfer to upon success of the step",$dynamicRef:"#workflowId"},stepId:{description:"The stepId to transfer to upon success of the step",$dynamicRef:"#stepId"},criteria:{description:"A list of assertions to determine if this action SHALL be executed",type:"array",uniqueItems:!0,minItems:1,items:{$ref:"#/$defs/criterion-object"}}},allOf:[{if:{properties:{type:{const:"goto"}}},then:{oneOf:[{required:["workflowId"]},{required:["stepId"]}]}}],dependentSchemas:{workflowId:{properties:{type:{enum:["goto"]}}},stepId:{properties:{type:{enum:["goto"]}}}},required:["name","type"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1};function An(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=An.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),Dr(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o}))var l=Dr.evaluated.props;const u=s;let f=!0;const h=s;if(t&&typeof t=="object"&&!Array.isArray(t)&&t.type!==void 0&&t.type!=="goto"){const j={};r===null?r=[j]:r.push(j),s++}var d=h===s;if(s=u,r!==null&&(u?r.length=u:r=null),d){const j=s,I=s;let E=!1,L=null;const q=s;if(t&&typeof t=="object"&&!Array.isArray(t)&&t.workflowId===void 0){const S={instancePath:e,schemaPath:"#/allOf/0/then/oneOf/0/required",keyword:"required",params:{missingProperty:"workflowId"},message:"must have required property 'workflowId'"};r===null?r=[S]:r.push(S),s++}q===s&&(E=!0,L=0);const F=s;if(t&&typeof t=="object"&&!Array.isArray(t)&&t.stepId===void 0){const S={instancePath:e,schemaPath:"#/allOf/0/then/oneOf/1/required",keyword:"required",params:{missingProperty:"stepId"},message:"must have required property 'stepId'"};r===null?r=[S]:r.push(S),s++}var m;if((m=F===s)&&E?(E=!1,L=[L,1]):m&&(E=!0,L=1),E)s=I,r!==null&&(I?r.length=I:r=null);else{const S={instancePath:e,schemaPath:"#/allOf/0/then/oneOf",keyword:"oneOf",params:{passingSchemas:L},message:"must match exactly one schema in oneOf"};r===null?r=[S]:r.push(S),s++}f=d=j===s}if(!f){const j={instancePath:e,schemaPath:"#/allOf/0/if",keyword:"if",params:{failingKeyword:"then"},message:'must match "then" schema'};r===null?r=[j]:r.push(j),s++}if(l!==!0&&((l=l||{}).type=!0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.name===void 0){const j={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"name"},message:"must have required property 'name'"};r===null?r=[j]:r.push(j),s++}if(t.type===void 0){const j={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};r===null?r=[j]:r.push(j),s++}if(l!==!0&&((l=l||{}).name=!0,l.type=!0,l.workflowId=!0,l.stepId=!0,l.criteria=!0),t.name!==void 0&&typeof t.name!="string"){const j={instancePath:e+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[j]:r.push(j),s++}if(t.type!==void 0){let j=t.type;if(j!=="end"&&j!=="goto"){const I={instancePath:e+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:yI.properties.type.enum},message:"must be equal to one of the allowed values"};r===null?r=[I]:r.push(I),s++}}if(t.workflowId!==void 0){let j=t.workflowId,I=o.workflowId;if(I)if(I(j,{instancePath:e+"/workflowId",parentData:t,parentDataProperty:"workflowId",rootData:a,dynamicAnchors:o}))var g=I.evaluated.props,b=I.evaluated.items;else r=r===null?I.errors:r.concat(I.errors),s=r.length;else if(An(j,{instancePath:e+"/workflowId",parentData:t,parentDataProperty:"workflowId",rootData:a,dynamicAnchors:o})){var v=An.evaluated.props;g!==!0&&v!==void 0&&(v===!0?g=!0:(g=g||{},Object.assign(g,v)));var P=An.evaluated.items;b!==!0&&P!==void 0&&(b=P===!0||(b>P?b:P))}else r=r===null?An.errors:r.concat(An.errors),s=r.length}if(t.stepId!==void 0){let j=t.stepId,I=o.stepId;if(I)if(I(j,{instancePath:e+"/stepId",parentData:t,parentDataProperty:"stepId",rootData:a,dynamicAnchors:o}))var A=I.evaluated.props,_=I.evaluated.items;else r=r===null?I.errors:r.concat(I.errors),s=r.length;else if(An(j,{instancePath:e+"/stepId",parentData:t,parentDataProperty:"stepId",rootData:a,dynamicAnchors:o})){var x=An.evaluated.props;A!==!0&&x!==void 0&&(x===!0?A=!0:(A=A||{},Object.assign(A,x)));var N=An.evaluated.items;_!==!0&&N!==void 0&&(_=N===!0||(_>N?_:N))}else r=r===null?An.errors:r.concat(An.errors),s=r.length}if(t.criteria!==void 0){let j=t.criteria;if(Array.isArray(j)){if(j.length<1){const q={instancePath:e+"/criteria",schemaPath:"#/properties/criteria/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items"};r===null?r=[q]:r.push(q),s++}const I=j.length;for(let q=0;q1){e:for(;L--;)for(E=L;E--;)if(Wr(j[L],j[E])){const q={instancePath:e+"/criteria",schemaPath:"#/properties/criteria/uniqueItems",keyword:"uniqueItems",params:{i:L,j:E},message:"must NOT have duplicate items (items ## "+E+" and "+L+" are identical)"};r===null?r=[q]:r.push(q),s++;break e}}}else{const I={instancePath:e+"/criteria",schemaPath:"#/properties/criteria/type",keyword:"type",params:{type:"array"},message:"must be array"};r===null?r=[I]:r.push(I),s++}}if(t.workflowId!==void 0){const j=s;if(t&&typeof t=="object"&&!Array.isArray(t)&&t.type!==void 0&&t.type!=="goto"){const I={instancePath:e+"/type",schemaPath:"#/dependentSchemas/workflowId/properties/type/enum",keyword:"enum",params:{allowedValues:yI.dependentSchemas.workflowId.properties.type.enum},message:"must be equal to one of the allowed values"};r===null?r=[I]:r.push(I),s++}j===s&&l!==!0&&((l=l||{}).type=!0)}if(t.stepId!==void 0){const j=s;if(t&&typeof t=="object"&&!Array.isArray(t)&&t.type!==void 0&&t.type!=="goto"){const I={instancePath:e+"/type",schemaPath:"#/dependentSchemas/stepId/properties/type/enum",keyword:"enum",params:{allowedValues:yI.dependentSchemas.stepId.properties.type.enum},message:"must be equal to one of the allowed values"};r===null?r=[I]:r.push(I),s++}j===s&&l!==!0&&((l=l||{}).type=!0)}if(l!==!0){for(const j in t)if(!l||!l[j]){const I={instancePath:e,schemaPath:"#/unevaluatedProperties",keyword:"unevaluatedProperties",params:{unevaluatedProperty:j},message:"must NOT have unevaluated properties"};r===null?r=[I]:r.push(I),s++}}}else{const j={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[j]:r.push(j),s++}return An.errors=r,s===0}An.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};const crt={$comment:"https://spec.openapis.org/arazzo/v1.0.0#reusable-object",description:"A simple object to allow referencing of objects contained within the Components Object",type:"object",properties:{reference:{description:"A runtime expression used to reference the desired object",type:"string"},value:{description:"Sets a value of the referenced parameter",type:["string","boolean","object","array","number","null"]}},required:["reference"],unevaluatedProperties:!1};function mi(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=mi.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.reference===void 0){const l={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"reference"},message:"must have required property 'reference'"};r===null?r=[l]:r.push(l),s++}if(t.reference!==void 0&&typeof t.reference!="string"){const l={instancePath:e+"/reference",schemaPath:"#/properties/reference/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}if(t.value!==void 0){let l=t.value;if(typeof l!="object"&&typeof l!="string"&&typeof l!="boolean"&&typeof l!="number"){const u={instancePath:e+"/value",schemaPath:"#/properties/value/type",keyword:"type",params:{type:crt.properties.value.type},message:"must be string,boolean,object,array,number,null"};r===null?r=[u]:r.push(u),s++}}for(const l in t)if(l!=="reference"&&l!=="value"){const u={instancePath:e,schemaPath:"#/unevaluatedProperties",keyword:"unevaluatedProperties",params:{unevaluatedProperty:l},message:"must NOT have unevaluated properties"};r===null?r=[u]:r.push(u),s++}}else{const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[l]:r.push(l),s++}return mi.errors=r,s===0}mi.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};const gI={$comment:"https://spec.openapis.org/arazzo/v1.0.0#failure-action-object",description:"A single failure action which describes an action to take upon failure of a workflow step",type:"object",properties:{name:{description:"The name of the failure action",type:"string"},type:{description:"The type of action to take",enum:["end","goto","retry"]},workflowId:{description:"The workflowId referencing an existing workflow within the Arazzo description to transfer to upon failure of the step",$dynamicRef:"#workflowId"},stepId:{description:"The stepId to transfer to upon failure of the step",$dynamicRef:"#stepId"},retryAfter:{description:"A non-negative decimal indicating the seconds to delay after the step failure before another attempt SHALL be made",type:"number",minimum:0},retryLimit:{description:"A non-negative integer indicating how many attempts to retry the step MAY be attempted before failing the overall step",type:"integer",minimum:0},criteria:{description:"A list of assertions to determine if this action SHALL be executed",type:"array",uniqueItems:!0,items:{$ref:"#/$defs/criterion-object"}}},allOf:[{if:{properties:{type:{enum:["goto"]}}},then:{oneOf:[{required:["workflowId"]},{required:["stepId"]}]}},{if:{properties:{type:{const:"retry"}}},then:{required:["retryAfter"]}}],dependentSchemas:{workflowId:{properties:{type:{enum:["goto","retry"]}}},stepId:{properties:{type:{enum:["goto","retry"]}}}},required:["name","type"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1};function Sn(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Sn.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),Dr(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o}))var l=Dr.evaluated.props;const u=s;let f=!0;const h=s;if(t&&typeof t=="object"&&!Array.isArray(t)&&t.type!==void 0&&t.type!=="goto"){const q={};r===null?r=[q]:r.push(q),s++}var d=h===s;if(s=u,r!==null&&(u?r.length=u:r=null),d){const q=s,F=s;let S=!1,D=null;const M=s;if(t&&typeof t=="object"&&!Array.isArray(t)&&t.workflowId===void 0){const H={instancePath:e,schemaPath:"#/allOf/0/then/oneOf/0/required",keyword:"required",params:{missingProperty:"workflowId"},message:"must have required property 'workflowId'"};r===null?r=[H]:r.push(H),s++}M===s&&(S=!0,D=0);const C=s;if(t&&typeof t=="object"&&!Array.isArray(t)&&t.stepId===void 0){const H={instancePath:e,schemaPath:"#/allOf/0/then/oneOf/1/required",keyword:"required",params:{missingProperty:"stepId"},message:"must have required property 'stepId'"};r===null?r=[H]:r.push(H),s++}var m;if((m=C===s)&&S?(S=!1,D=[D,1]):m&&(S=!0,D=1),S)s=F,r!==null&&(F?r.length=F:r=null);else{const H={instancePath:e,schemaPath:"#/allOf/0/then/oneOf",keyword:"oneOf",params:{passingSchemas:D},message:"must match exactly one schema in oneOf"};r===null?r=[H]:r.push(H),s++}f=d=q===s}if(!f){const q={instancePath:e,schemaPath:"#/allOf/0/if",keyword:"if",params:{failingKeyword:"then"},message:'must match "then" schema'};r===null?r=[q]:r.push(q),s++}l!==!0&&((l=l||{}).type=!0);const g=s;let b=!0;const v=s;if(t&&typeof t=="object"&&!Array.isArray(t)&&t.type!==void 0&&t.type!=="retry"){const q={};r===null?r=[q]:r.push(q),s++}var P=v===s;if(s=g,r!==null&&(g?r.length=g:r=null),P){const q=s;if(t&&typeof t=="object"&&!Array.isArray(t)&&t.retryAfter===void 0){const F={instancePath:e,schemaPath:"#/allOf/1/then/required",keyword:"required",params:{missingProperty:"retryAfter"},message:"must have required property 'retryAfter'"};r===null?r=[F]:r.push(F),s++}b=P=q===s}if(!b){const q={instancePath:e,schemaPath:"#/allOf/1/if",keyword:"if",params:{failingKeyword:"then"},message:'must match "then" schema'};r===null?r=[q]:r.push(q),s++}if(l!==!0&&((l=l||{}).type=!0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.name===void 0){const q={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"name"},message:"must have required property 'name'"};r===null?r=[q]:r.push(q),s++}if(t.type===void 0){const q={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};r===null?r=[q]:r.push(q),s++}if(l!==!0&&((l=l||{}).name=!0,l.type=!0,l.workflowId=!0,l.stepId=!0,l.retryAfter=!0,l.retryLimit=!0,l.criteria=!0),t.name!==void 0&&typeof t.name!="string"){const q={instancePath:e+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[q]:r.push(q),s++}if(t.type!==void 0){let q=t.type;if(q!=="end"&&q!=="goto"&&q!=="retry"){const F={instancePath:e+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:gI.properties.type.enum},message:"must be equal to one of the allowed values"};r===null?r=[F]:r.push(F),s++}}if(t.workflowId!==void 0){let q=t.workflowId,F=o.workflowId;if(F)if(F(q,{instancePath:e+"/workflowId",parentData:t,parentDataProperty:"workflowId",rootData:a,dynamicAnchors:o}))var A=F.evaluated.props,_=F.evaluated.items;else r=r===null?F.errors:r.concat(F.errors),s=r.length;else if(Sn(q,{instancePath:e+"/workflowId",parentData:t,parentDataProperty:"workflowId",rootData:a,dynamicAnchors:o})){var x=Sn.evaluated.props;A!==!0&&x!==void 0&&(x===!0?A=!0:(A=A||{},Object.assign(A,x)));var N=Sn.evaluated.items;_!==!0&&N!==void 0&&(_=N===!0||(_>N?_:N))}else r=r===null?Sn.errors:r.concat(Sn.errors),s=r.length}if(t.stepId!==void 0){let q=t.stepId,F=o.stepId;if(F)if(F(q,{instancePath:e+"/stepId",parentData:t,parentDataProperty:"stepId",rootData:a,dynamicAnchors:o}))var j=F.evaluated.props,I=F.evaluated.items;else r=r===null?F.errors:r.concat(F.errors),s=r.length;else if(Sn(q,{instancePath:e+"/stepId",parentData:t,parentDataProperty:"stepId",rootData:a,dynamicAnchors:o})){var E=Sn.evaluated.props;j!==!0&&E!==void 0&&(E===!0?j=!0:(j=j||{},Object.assign(j,E)));var L=Sn.evaluated.items;I!==!0&&L!==void 0&&(I=L===!0||(I>L?I:L))}else r=r===null?Sn.errors:r.concat(Sn.errors),s=r.length}if(t.retryAfter!==void 0){let q=t.retryAfter;if(typeof q=="number"){if(q<0||isNaN(q)){const F={instancePath:e+"/retryAfter",schemaPath:"#/properties/retryAfter/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0"};r===null?r=[F]:r.push(F),s++}}else{const F={instancePath:e+"/retryAfter",schemaPath:"#/properties/retryAfter/type",keyword:"type",params:{type:"number"},message:"must be number"};r===null?r=[F]:r.push(F),s++}}if(t.retryLimit!==void 0){let q=t.retryLimit;if(typeof q!="number"||q%1||isNaN(q)){const F={instancePath:e+"/retryLimit",schemaPath:"#/properties/retryLimit/type",keyword:"type",params:{type:"integer"},message:"must be integer"};r===null?r=[F]:r.push(F),s++}if(typeof q=="number"&&(q<0||isNaN(q))){const F={instancePath:e+"/retryLimit",schemaPath:"#/properties/retryLimit/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0"};r===null?r=[F]:r.push(F),s++}}if(t.criteria!==void 0){let q=t.criteria;if(Array.isArray(q)){const F=q.length;for(let M=0;M1){e:for(;D--;)for(S=D;S--;)if(Wr(q[D],q[S])){const M={instancePath:e+"/criteria",schemaPath:"#/properties/criteria/uniqueItems",keyword:"uniqueItems",params:{i:D,j:S},message:"must NOT have duplicate items (items ## "+S+" and "+D+" are identical)"};r===null?r=[M]:r.push(M),s++;break e}}}else{const F={instancePath:e+"/criteria",schemaPath:"#/properties/criteria/type",keyword:"type",params:{type:"array"},message:"must be array"};r===null?r=[F]:r.push(F),s++}}if(t.workflowId!==void 0){const q=s;if(t&&typeof t=="object"&&!Array.isArray(t)&&t.type!==void 0){let F=t.type;if(F!=="goto"&&F!=="retry"){const S={instancePath:e+"/type",schemaPath:"#/dependentSchemas/workflowId/properties/type/enum",keyword:"enum",params:{allowedValues:gI.dependentSchemas.workflowId.properties.type.enum},message:"must be equal to one of the allowed values"};r===null?r=[S]:r.push(S),s++}}q===s&&l!==!0&&((l=l||{}).type=!0)}if(t.stepId!==void 0){const q=s;if(t&&typeof t=="object"&&!Array.isArray(t)&&t.type!==void 0){let F=t.type;if(F!=="goto"&&F!=="retry"){const S={instancePath:e+"/type",schemaPath:"#/dependentSchemas/stepId/properties/type/enum",keyword:"enum",params:{allowedValues:gI.dependentSchemas.stepId.properties.type.enum},message:"must be equal to one of the allowed values"};r===null?r=[S]:r.push(S),s++}}q===s&&l!==!0&&((l=l||{}).type=!0)}if(l!==!0){for(const q in t)if(!l||!l[q]){const F={instancePath:e,schemaPath:"#/unevaluatedProperties",keyword:"unevaluatedProperties",params:{unevaluatedProperty:q},message:"must NOT have unevaluated properties"};r===null?r=[F]:r.push(F),s++}}}else{const q={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[q]:r.push(q),s++}return Sn.errors=r,s===0}function Vo(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Vo.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),Dr(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o}))var l=Dr.evaluated.props;const u=s;let f=!1,h=null;const d=s;if(t&&typeof t=="object"&&!Array.isArray(t)&&t.operationId===void 0){const he={instancePath:e,schemaPath:"#/oneOf/0/required",keyword:"required",params:{missingProperty:"operationId"},message:"must have required property 'operationId'"};r===null?r=[he]:r.push(he),s++}(g=d===s)&&(f=!0,h=0);const m=s;if(t&&typeof t=="object"&&!Array.isArray(t)&&t.operationPath===void 0){const he={instancePath:e,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty:"operationPath"},message:"must have required property 'operationPath'"};r===null?r=[he]:r.push(he),s++}if((g=m===s)&&f)f=!1,h=[h,1];else{g&&(f=!0,h=1);const he=s;if(t&&typeof t=="object"&&!Array.isArray(t)&&t.workflowId===void 0){const Ee={instancePath:e,schemaPath:"#/oneOf/2/required",keyword:"required",params:{missingProperty:"workflowId"},message:"must have required property 'workflowId'"};r===null?r=[Ee]:r.push(Ee),s++}var g;(g=he===s)&&f?(f=!1,h=[h,2]):g&&(f=!0,h=2)}if(f)s=u,r!==null&&(u?r.length=u:r=null);else{const he={instancePath:e,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas:h},message:"must match exactly one schema in oneOf"};r===null?r=[he]:r.push(he),s++}const b=s;let v=!0;const P=s;if(t&&typeof t=="object"&&!Array.isArray(t)&&t.operationId===void 0){const he={};r===null?r=[he]:r.push(he),s++}var A=P===s;if(s=b,r!==null&&(b?r.length=b:r=null),A){const he=s;if(t&&typeof t=="object"&&!Array.isArray(t)&&t.parameters!==void 0){let Ee=t.parameters;if(Array.isArray(Ee)){const Ge=Ee.length;for(let Me=0;MeT?z:T))}else r=r===null?Vo.errors:r.concat(Vo.errors),s=r.length}if(t.parameters!==void 0){let he=t.parameters;if(Array.isArray(he)){let Ee,Ge=he.length;if(Ge>1){e:for(;Ge--;)for(Ee=Ge;Ee--;)if(Wr(he[Ge],he[Ee])){const Me={instancePath:e+"/parameters",schemaPath:"#/properties/parameters/uniqueItems",keyword:"uniqueItems",params:{i:Ge,j:Ee},message:"must NOT have duplicate items (items ## "+Ee+" and "+Ge+" are identical)"};r===null?r=[Me]:r.push(Me),s++;break e}}}else{const Ee={instancePath:e+"/parameters",schemaPath:"#/properties/parameters/type",keyword:"type",params:{type:"array"},message:"must be array"};r===null?r=[Ee]:r.push(Ee),s++}}if(t.requestBody!==void 0&&(Yy(t.requestBody,{instancePath:e+"/requestBody",parentData:t,parentDataProperty:"requestBody",rootData:a,dynamicAnchors:o})||(r=r===null?Yy.errors:r.concat(Yy.errors),s=r.length)),t.successCriteria!==void 0){let he=t.successCriteria;if(Array.isArray(he)){if(he.length<1){const Ae={instancePath:e+"/successCriteria",schemaPath:"#/properties/successCriteria/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items"};r===null?r=[Ae]:r.push(Ae),s++}const Ee=he.length;for(let Ae=0;Ae1){e:for(;Me--;)for(Ge=Me;Ge--;)if(Wr(he[Me],he[Ge])){const Ae={instancePath:e+"/successCriteria",schemaPath:"#/properties/successCriteria/uniqueItems",keyword:"uniqueItems",params:{i:Me,j:Ge},message:"must NOT have duplicate items (items ## "+Ge+" and "+Me+" are identical)"};r===null?r=[Ae]:r.push(Ae),s++;break e}}}else{const Ee={instancePath:e+"/successCriteria",schemaPath:"#/properties/successCriteria/type",keyword:"type",params:{type:"array"},message:"must be array"};r===null?r=[Ee]:r.push(Ee),s++}}if(t.onSuccess!==void 0){let he=t.onSuccess;if(Array.isArray(he)){const Ee=he.length;for(let Ae=0;Ae1){e:for(;Me--;)for(Ge=Me;Ge--;)if(Wr(he[Me],he[Ge])){const Ae={instancePath:e+"/onSuccess",schemaPath:"#/properties/onSuccess/uniqueItems",keyword:"uniqueItems",params:{i:Me,j:Ge},message:"must NOT have duplicate items (items ## "+Ge+" and "+Me+" are identical)"};r===null?r=[Ae]:r.push(Ae),s++;break e}}}else{const Ee={instancePath:e+"/onSuccess",schemaPath:"#/properties/onSuccess/type",keyword:"type",params:{type:"array"},message:"must be array"};r===null?r=[Ee]:r.push(Ee),s++}}if(t.onFailure!==void 0){let he=t.onFailure;if(Array.isArray(he)){const Ee=he.length;for(let Ae=0;Ae1){e:for(;Me--;)for(Ge=Me;Ge--;)if(Wr(he[Me],he[Ge])){const Ae={instancePath:e+"/onFailure",schemaPath:"#/properties/onFailure/uniqueItems",keyword:"uniqueItems",params:{i:Me,j:Ge},message:"must NOT have duplicate items (items ## "+Ge+" and "+Me+" are identical)"};r===null?r=[Ae]:r.push(Ae),s++;break e}}}else{const Ee={instancePath:e+"/onFailure",schemaPath:"#/properties/onFailure/type",keyword:"type",params:{type:"array"},message:"must be array"};r===null?r=[Ee]:r.push(Ee),s++}}if(t.outputs!==void 0){let he=t.outputs;if(he&&typeof he=="object"&&!Array.isArray(he)){var _e={};for(const Ee in he)if(fa.test(Ee)){if(typeof he[Ee]!="string"){const Ge={instancePath:e+"/outputs/"+Ee.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/outputs/patternProperties/%5E%5Ba-zA-Z0-9%5C.%5C-_%5D%2B%24/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[Ge]:r.push(Ge),s++}_e[Ee]=!0}}else{const Ee={instancePath:e+"/outputs",schemaPath:"#/properties/outputs/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[Ee]:r.push(Ee),s++}}if(l!==!0){for(const he in t)if(!l||!l[he]){const Ee={instancePath:e,schemaPath:"#/unevaluatedProperties",keyword:"unevaluatedProperties",params:{unevaluatedProperty:he},message:"must NOT have unevaluated properties"};r===null?r=[Ee]:r.push(Ee),s++}}}else{const he={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[he]:r.push(he),s++}return Vo.errors=r,s===0}Sn.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},Vo.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};const u8={$comment:"https://spec.openapis.org/arazzo/v1.0.0#parameter-object",description:"Describes a single step parameter",type:"object",properties:{name:{description:"The name of the parameter",type:"string"},in:{description:"The named location of the parameter",enum:["path","query","header","cookie","body"]},value:{description:"The value to pass in the parameter",type:["string","boolean","object","array","number","null"]}},required:["name","value"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1};function iu(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=iu.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),Dr(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o}))var l=Dr.evaluated.props;if(t&&typeof t=="object"&&!Array.isArray(t)){if(t.name===void 0){const u={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"name"},message:"must have required property 'name'"};r===null?r=[u]:r.push(u),s++}if(t.value===void 0){const u={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"value"},message:"must have required property 'value'"};r===null?r=[u]:r.push(u),s++}if(l!==!0&&((l=l||{}).name=!0,l.in=!0,l.value=!0),t.name!==void 0&&typeof t.name!="string"){const u={instancePath:e+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[u]:r.push(u),s++}if(t.in!==void 0){let u=t.in;if(u!=="path"&&u!=="query"&&u!=="header"&&u!=="cookie"&&u!=="body"){const f={instancePath:e+"/in",schemaPath:"#/properties/in/enum",keyword:"enum",params:{allowedValues:u8.properties.in.enum},message:"must be equal to one of the allowed values"};r===null?r=[f]:r.push(f),s++}}if(t.value!==void 0){let u=t.value;if(typeof u!="object"&&typeof u!="string"&&typeof u!="boolean"&&typeof u!="number"){const f={instancePath:e+"/value",schemaPath:"#/properties/value/type",keyword:"type",params:{type:u8.properties.value.type},message:"must be string,boolean,object,array,number,null"};r===null?r=[f]:r.push(f),s++}}if(l!==!0){for(const u in t)if(!l||!l[u]){const f={instancePath:e,schemaPath:"#/unevaluatedProperties",keyword:"unevaluatedProperties",params:{unevaluatedProperty:u},message:"must NOT have unevaluated properties"};r===null?r=[f]:r.push(f),s++}}}else{const u={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[u]:r.push(u),s++}return iu.errors=r,s===0}function Jy(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Jy.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),Dr(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o}))var l=Dr.evaluated.props;if(t&&typeof t=="object"&&!Array.isArray(t)){if(t.workflowId===void 0){const v={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"workflowId"},message:"must have required property 'workflowId'"};r===null?r=[v]:r.push(v),s++}if(t.steps===void 0){const v={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"steps"},message:"must have required property 'steps'"};r===null?r=[v]:r.push(v),s++}if(l!==!0&&((l=l||{}).workflowId=!0,l.summary=!0,l.description=!0,l.inputs=!0,l.dependsOn=!0,l.steps=!0,l.successActions=!0,l.failureActions=!0,l.outputs=!0,l.parameters=!0),t.workflowId!==void 0){if(typeof t.workflowId!="string"){const v={instancePath:e+"/workflowId",schemaPath:"#/properties/workflowId/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[v]:r.push(v),s++}o.workflowId||(o.workflowId=nP)}if(t.summary!==void 0&&typeof t.summary!="string"){const v={instancePath:e+"/summary",schemaPath:"#/properties/summary/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[v]:r.push(v),s++}if(t.description!==void 0&&typeof t.description!="string"){const v={instancePath:e+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[v]:r.push(v),s++}if(t.inputs!==void 0&&(Kn(t.inputs,{instancePath:e+"/inputs",parentData:t,parentDataProperty:"inputs",rootData:a,dynamicAnchors:o})||(r=r===null?Kn.errors:r.concat(Kn.errors),s=r.length)),t.dependsOn!==void 0){let v=t.dependsOn;if(Array.isArray(v)){const P=v.length;for(let x=0;x1){const x={};for(;_--;){let N=v[_];if(typeof N=="string"){if(typeof x[N]=="number"){A=x[N];const j={instancePath:e+"/dependsOn",schemaPath:"#/properties/dependsOn/uniqueItems",keyword:"uniqueItems",params:{i:_,j:A},message:"must NOT have duplicate items (items ## "+A+" and "+_+" are identical)"};r===null?r=[j]:r.push(j),s++;break}x[N]=_}}}}else{const P={instancePath:e+"/dependsOn",schemaPath:"#/properties/dependsOn/type",keyword:"type",params:{type:"array"},message:"must be array"};r===null?r=[P]:r.push(P),s++}}if(t.steps!==void 0){let v=t.steps;if(Array.isArray(v)){if(v.length<1){const x={instancePath:e+"/steps",schemaPath:"#/properties/steps/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items"};r===null?r=[x]:r.push(x),s++}const P=v.length;for(let x=0;x1){e:for(;_--;)for(A=_;A--;)if(Wr(v[_],v[A])){const x={instancePath:e+"/steps",schemaPath:"#/properties/steps/uniqueItems",keyword:"uniqueItems",params:{i:_,j:A},message:"must NOT have duplicate items (items ## "+A+" and "+_+" are identical)"};r===null?r=[x]:r.push(x),s++;break e}}}else{const P={instancePath:e+"/steps",schemaPath:"#/properties/steps/type",keyword:"type",params:{type:"array"},message:"must be array"};r===null?r=[P]:r.push(P),s++}}if(t.successActions!==void 0){let v=t.successActions;if(Array.isArray(v)){const P=v.length;for(let x=0;x1){e:for(;_--;)for(A=_;A--;)if(Wr(v[_],v[A])){const x={instancePath:e+"/successActions",schemaPath:"#/properties/successActions/uniqueItems",keyword:"uniqueItems",params:{i:_,j:A},message:"must NOT have duplicate items (items ## "+A+" and "+_+" are identical)"};r===null?r=[x]:r.push(x),s++;break e}}}else{const P={instancePath:e+"/successActions",schemaPath:"#/properties/successActions/type",keyword:"type",params:{type:"array"},message:"must be array"};r===null?r=[P]:r.push(P),s++}}if(t.failureActions!==void 0){let v=t.failureActions;if(Array.isArray(v)){const P=v.length;for(let x=0;x1){e:for(;_--;)for(A=_;A--;)if(Wr(v[_],v[A])){const x={instancePath:e+"/failureActions",schemaPath:"#/properties/failureActions/uniqueItems",keyword:"uniqueItems",params:{i:_,j:A},message:"must NOT have duplicate items (items ## "+A+" and "+_+" are identical)"};r===null?r=[x]:r.push(x),s++;break e}}}else{const P={instancePath:e+"/failureActions",schemaPath:"#/properties/failureActions/type",keyword:"type",params:{type:"array"},message:"must be array"};r===null?r=[P]:r.push(P),s++}}if(t.outputs!==void 0){let v=t.outputs;if(v&&typeof v=="object"&&!Array.isArray(v)){var m={};for(const P in v)if(fa.test(P)){if(typeof v[P]!="string"){const A={instancePath:e+"/outputs/"+P.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/outputs/patternProperties/%5E%5Ba-zA-Z0-9%5C.%5C-_%5D%2B%24/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[A]:r.push(A),s++}m[P]=!0}}else{const P={instancePath:e+"/outputs",schemaPath:"#/properties/outputs/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[P]:r.push(P),s++}}if(t.parameters!==void 0){let v=t.parameters;if(Array.isArray(v)){const P=v.length;for(let x=0;x1){e:for(;_--;)for(A=_;A--;)if(Wr(v[_],v[A])){const x={instancePath:e+"/parameters",schemaPath:"#/properties/parameters/uniqueItems",keyword:"uniqueItems",params:{i:_,j:A},message:"must NOT have duplicate items (items ## "+A+" and "+_+" are identical)"};r===null?r=[x]:r.push(x),s++;break e}}}else{const P={instancePath:e+"/parameters",schemaPath:"#/properties/parameters/type",keyword:"type",params:{type:"array"},message:"must be array"};r===null?r=[P]:r.push(P),s++}}if(l!==!0){for(const v in t)if(!l||!l[v]){const P={instancePath:e,schemaPath:"#/unevaluatedProperties",keyword:"unevaluatedProperties",params:{unevaluatedProperty:v},message:"must NOT have unevaluated properties"};r===null?r=[P]:r.push(P),s++}}}else{const v={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[v]:r.push(v),s++}return Jy.errors=r,s===0}function Qy(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Qy.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),Dr(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o}))var l=Dr.evaluated.props;if(t&&typeof t=="object"&&!Array.isArray(t)){if(l!==!0&&((l=l||{}).inputs=!0,l.parameters=!0,l.successActions=!0,l.failureActions=!0),t.inputs!==void 0){let m=t.inputs;if(m&&typeof m=="object"&&!Array.isArray(m)){var u={};for(const g in m)fa.test(g)&&(Kn(m[g],{instancePath:e+"/inputs/"+g.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:m,parentDataProperty:g,rootData:a,dynamicAnchors:o})||(r=r===null?Kn.errors:r.concat(Kn.errors),s=r.length),u[g]=!0)}else{const g={instancePath:e+"/inputs",schemaPath:"#/properties/inputs/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[g]:r.push(g),s++}}if(t.parameters!==void 0){let m=t.parameters;if(m&&typeof m=="object"&&!Array.isArray(m)){var f={};for(const g in m)fa.test(g)&&(iu(m[g],{instancePath:e+"/parameters/"+g.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:m,parentDataProperty:g,rootData:a,dynamicAnchors:o})||(r=r===null?iu.errors:r.concat(iu.errors),s=r.length),f[g]=!0)}else{const g={instancePath:e+"/parameters",schemaPath:"#/properties/parameters/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[g]:r.push(g),s++}}if(t.successActions!==void 0){let m=t.successActions;if(m&&typeof m=="object"&&!Array.isArray(m)){var h={};for(const g in m)fa.test(g)&&(An(m[g],{instancePath:e+"/successActions/"+g.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:m,parentDataProperty:g,rootData:a,dynamicAnchors:o})||(r=r===null?An.errors:r.concat(An.errors),s=r.length),h[g]=!0)}else{const g={instancePath:e+"/successActions",schemaPath:"#/properties/successActions/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[g]:r.push(g),s++}}if(t.failureActions!==void 0){let m=t.failureActions;if(m&&typeof m=="object"&&!Array.isArray(m)){var d={};for(const g in m)fa.test(g)&&(Sn(m[g],{instancePath:e+"/failureActions/"+g.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:m,parentDataProperty:g,rootData:a,dynamicAnchors:o})||(r=r===null?Sn.errors:r.concat(Sn.errors),s=r.length),d[g]=!0)}else{const g={instancePath:e+"/failureActions",schemaPath:"#/properties/failureActions/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[g]:r.push(g),s++}}if(l!==!0){for(const m in t)if(!l||!l[m]){const g={instancePath:e,schemaPath:"#/unevaluatedProperties",keyword:"unevaluatedProperties",params:{unevaluatedProperty:m},message:"must NOT have unevaluated properties"};r===null?r=[g]:r.push(g),s++}}}else{const m={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[m]:r.push(m),s++}return Qy.errors=r,s===0}iu.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},Jy.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},Qy.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};const urt=new RegExp("^1\\.0\\.\\d+(-.+)?$","u");function CS(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=CS.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),Dr(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o}))var l=Dr.evaluated.props;if(t&&typeof t=="object"&&!Array.isArray(t)){if(t.arazzo===void 0){const u={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"arazzo"},message:"must have required property 'arazzo'"};r===null?r=[u]:r.push(u),s++}if(t.info===void 0){const u={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"info"},message:"must have required property 'info'"};r===null?r=[u]:r.push(u),s++}if(t.sourceDescriptions===void 0){const u={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"sourceDescriptions"},message:"must have required property 'sourceDescriptions'"};r===null?r=[u]:r.push(u),s++}if(t.workflows===void 0){const u={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"workflows"},message:"must have required property 'workflows'"};r===null?r=[u]:r.push(u),s++}if(l!==!0&&((l=l||{}).arazzo=!0,l.info=!0,l.sourceDescriptions=!0,l.workflows=!0,l.components=!0),t.arazzo!==void 0){let u=t.arazzo;if(typeof u=="string"){if(!urt.test(u)){const f={instancePath:e+"/arazzo",schemaPath:"#/properties/arazzo/pattern",keyword:"pattern",params:{pattern:"^1\\.0\\.\\d+(-.+)?$"},message:'must match pattern "^1\\.0\\.\\d+(-.+)?$"'};r===null?r=[f]:r.push(f),s++}}else{const f={instancePath:e+"/arazzo",schemaPath:"#/properties/arazzo/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[f]:r.push(f),s++}}if(t.info!==void 0&&(Hy(t.info,{instancePath:e+"/info",parentData:t,parentDataProperty:"info",rootData:a,dynamicAnchors:o})||(r=r===null?Hy.errors:r.concat(Hy.errors),s=r.length)),t.sourceDescriptions!==void 0){let u=t.sourceDescriptions;if(Array.isArray(u)){if(u.length<1){const m={instancePath:e+"/sourceDescriptions",schemaPath:"#/properties/sourceDescriptions/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items"};r===null?r=[m]:r.push(m),s++}const f=u.length;for(let m=0;m1){e:for(;d--;)for(h=d;h--;)if(Wr(u[d],u[h])){const m={instancePath:e+"/sourceDescriptions",schemaPath:"#/properties/sourceDescriptions/uniqueItems",keyword:"uniqueItems",params:{i:d,j:h},message:"must NOT have duplicate items (items ## "+h+" and "+d+" are identical)"};r===null?r=[m]:r.push(m),s++;break e}}}else{const f={instancePath:e+"/sourceDescriptions",schemaPath:"#/properties/sourceDescriptions/type",keyword:"type",params:{type:"array"},message:"must be array"};r===null?r=[f]:r.push(f),s++}}if(t.workflows!==void 0){let u=t.workflows;if(Array.isArray(u)){if(u.length<1){const m={instancePath:e+"/workflows",schemaPath:"#/properties/workflows/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items"};r===null?r=[m]:r.push(m),s++}const f=u.length;for(let m=0;m1){e:for(;d--;)for(h=d;h--;)if(Wr(u[d],u[h])){const m={instancePath:e+"/workflows",schemaPath:"#/properties/workflows/uniqueItems",keyword:"uniqueItems",params:{i:d,j:h},message:"must NOT have duplicate items (items ## "+h+" and "+d+" are identical)"};r===null?r=[m]:r.push(m),s++;break e}}}else{const f={instancePath:e+"/workflows",schemaPath:"#/properties/workflows/type",keyword:"type",params:{type:"array"},message:"must be array"};r===null?r=[f]:r.push(f),s++}}if(t.components!==void 0&&(Qy(t.components,{instancePath:e+"/components",parentData:t,parentDataProperty:"components",rootData:a,dynamicAnchors:o})||(r=r===null?Qy.errors:r.concat(Qy.errors),s=r.length)),l!==!0){for(const u in t)if(!l||!l[u]){const f={instancePath:e,schemaPath:"#/unevaluatedProperties",keyword:"unevaluatedProperties",params:{unevaluatedProperty:u},message:"must NOT have unevaluated properties"};r===null?r=[f]:r.push(f),s++}}}else{const u={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[u]:r.push(u),s++}return CS.errors=r,s===0}CS.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};Object.defineProperty(WN,"__esModule",{value:!0});const Ere=vr,frt=Tr(),f8=cl,p8=Hr,prt=(0,Ere.__importDefault)(mre),hrt=(0,Ere.__importStar)(Ll);WN.default=(0,frt.createRulesetFunction)({input:null,options:null},function(e,n,i){const a=i.document.formats;if(a==null)return;const o=a.has(f8.oas2)?"oas2_0":a.has(f8.oas3_1)?"oas3_1":"oas3_0",r=hrt[o];r(e);const s=r.errors;return s==null?void 0:s.reduce((c,l)=>mrt(c,e,o,l),[])});function drt(t){return t.keyword!=="if"}function mrt(t,e,n,i){if(!drt(i))return t;const a=i.instancePath===""?[]:i.instancePath.slice(1).split("/"),o=a.length===0?null:a[a.length-1];let r;switch(i.keyword){case"additionalProperties":{const s=i.params.additionalProperty;a.push(s),r=`Property "${s}" is not expected to be here`;break}case"enum":{const s=i.params.allowedValues,c=s.map(u=>JSON.stringify(u)).join(", ");let l;if(!(0,p8.isPlainObject)(e))l="";else{const u=(0,p8.resolveInlineRef)(e,`#${i.instancePath}`);if(typeof u!="string")l="";else{const f=yrt(u,s);f!==null?l=`. Did you mean "${f}"?`:l=""}}r=`${h8(o,i.message)}: ${c}${l}`;break}case"errorMessage":r=String(i.message);break;default:r=h8(o,i.message)}return t.push({message:r,path:a}),t}function yrt(t,e){const n=e.filter(a=>typeof a=="string").map(a=>({value:a,weight:(0,prt.default)(t,a)})).sort((a,o)=>a.weight>o.weight?1:a.weight(0,brt.isObject)(i)&&i.in==="formData")&&!wrt.test(n==null?void 0:n.join(",")))return[{message:"Consumes must include urlencoded, multipart, or form-data media type when using formData parameter."}]});var YN={};Object.defineProperty(YN,"__esModule",{value:!0});const $rt=Tr(),Art=cl;YN.default=(0,$rt.createRulesetFunction)({input:{type:"object"},options:null},function(e,n,i){var a;const o=((a=i.document.formats)===null||a===void 0?void 0:a.has(Art.oas3))===!0;for(const r of Object.keys(e))if(o&&(r==="2XX"||r==="3XX")||Number(r)>=200&&Number(r)<400)return;return[{message:"Operation must define at least a single 2xx or 3xx response"}]});var JN={};Object.defineProperty(JN,"__esModule",{value:!0});const Ire=vr,vI=_o,Srt=(0,Ire.__importDefault)(Wx),_rt=Tr(),xrt=cl,aP=(0,Ire.__importDefault)(RR),Drt={2:[{field:"examples",multiple:!0,keyed:!1}],3:[{field:"example",multiple:!1,keyed:!1},{field:"examples",multiple:!0,keyed:!0}]},krt={2:[],3:[["components","requestBodies"],["paths","*","*","requestBody"]]},Ort={2:[["responses"],["paths","*","*","responses"]],3:[["components","responses"],["paths","*","*","responses"]]},Ert={2:["example","x-example","default"],3:["example","default"]};function Irt(t){return t.required===void 0||Array.isArray(t.required)}function Cre(t,e){return e.some(n=>n.every((i,a)=>i==="*"||i===t[a]))}function Crt(t,e){return Cre(t,krt[e])}function Trt(t,e){return Cre(t,Ort[e])}function*jrt(t,e,n,i){for(const{field:a,keyed:o,multiple:r}of t){if(!(a in e))continue;const s=e[a];if(r){if(!(0,vI.isObject)(s))continue;for(const c of Object.keys(s)){const l=s[c];if(i===3&&o&&(!(0,vI.isObject)(l)||"externalValue"in l))continue;const u=[...n,a,c];o&&u.push("value"),yield{value:o&&(0,vI.isObject)(l)?l.value:l,path:u}}return}else return yield{value:s,path:[...n,a]}}}function*Mrt(t,e,n){for(const i of t)i in e&&(yield{value:e[i],path:[...n,i]})}const Rrt=[...Object.keys(aP.default.keywords),...Object.keys(aP.default.arrayKeywords),...Object.keys(aP.default.propsKeywords)];function Nrt(t){(0,aP.default)(t,{allKeys:!0},(e,n,i,a,o)=>{o===void 0||Rrt.includes(o)||("id"in e&&delete e.id,"$id"in e&&delete e.id)})}function Lrt(t,e,n){(e||n)&&(0,aP.default)(t,{},(i,a,o,r,s,c,l)=>{var u,f;(i.readOnly===!0&&e||i.writeOnly===!0&&n)&&s=="properties"&&c&&Irt(c)&&(c.required=(u=c.required)===null||u===void 0?void 0:u.filter(h=>h!==l),((f=c.required)===null||f===void 0?void 0:f.length)===0&&delete c.required)})}JN.default=(0,_rt.createRulesetFunction)({input:{type:"object"},options:{type:"object",properties:{oasVersion:{enum:[2,3]},schemaField:{type:"string"},type:{enum:["media","schema"]}},additionalProperties:!1}},function(e,n,i){const a=i.document.formats,o={schema:n.schemaField==="$"?e:e[n.schemaField]};let r;const s=n.type==="schema"?Mrt(Ert[n.oasVersion],e,i.path):jrt(Drt[n.oasVersion],e,i.path,n.oasVersion);a!=null&&a.has(xrt.oas2)&&"required"in o.schema&&typeof o.schema.required=="boolean"&&(o.schema={...o.schema},delete o.schema.required),o.schema=JSON.parse(JSON.stringify(o.schema)),Nrt(o.schema),Lrt(o.schema,n.type==="media"&&Crt(i.path,n.oasVersion),n.type==="media"&&Trt(i.path,n.oasVersion));for(const c of s){const l=(0,Srt.default)(c.value,o,{...i,path:c.path});Array.isArray(l)&&(r===void 0&&(r=[]),r.push(...l))}return r});var QN={};Object.defineProperty(QN,"__esModule",{value:!0});const Frt=Tr(),af=Hr;QN.default=(0,Frt.createRulesetFunction)({input:{type:"object",additionalProperties:{type:"array",items:{type:"string"}}},options:{type:"object",properties:{oasVersion:{enum:[2,3]}},additionalProperties:!1}},function(e,{oasVersion:n},{document:i,path:a}){const o=Object.keys(e);if(o.length===0||!(0,af.isPlainObject)(i.data))return;const r=n===2?i.data.securityDefinitions:(0,af.isPlainObject)(i.data.components)?i.data.components.securitySchemes:null;let s;for(const c of o){if(!(0,af.isPlainObject)(r)||!(c in r)){const u=a.length==2?"API":"Operation",f=n===2?"securityDefinitions":"components.securitySchemes";s??(s=[]),s.push({message:`${u} "security" values must match a scheme defined in the "${f}" object.`,path:[...a,c]});continue}const l=e[c];for(let u=0;u{const u=Brt(c,r);u===o||Array.isArray(o)&&o.includes(u)||(s??(s=[]),s.push({message:`Enum value ${(0,zrt.printValue)(a[l])} must be "${String(o)}".`,path:[...i.path,"enum",l]}))}),s});var XN={};Object.defineProperty(XN,"__esModule",{value:!0});const Wrt=Tr(),Tre=_o;function Hrt(t,e){if(e.length===0)return null;let n=t;for(let i=0;it.in!==void 0&&t.in==="path"&&t.name!==void 0,y8=(t,e,n,i)=>Krt(t)?(t.required!==!0&&n.push(Sg(Qrt(t.name),e)),t.name in i?(n.push(Sg(Zrt(t.name),e)),!1):!0):!1,Yrt=(t,e,n,i)=>{for(const a of Object.keys(e))if(e[a]&&!n.includes(a)){const o=e[a];i.push(Sg(`Parameter "${a}" must be used in path "${t}".`,o))}},Jrt=(t,e,n,i,a)=>{for(const o of n)o in e||a.push(Sg(`Operation must define parameter "{${o}}" as expected by path "${t}".`,i))};eL.default=(0,Grt.createRulesetFunction)({input:{type:"object"},options:null},function(e){const n=[],i={},a=["get","head","post","put","patch","delete","options","trace"];for(const o of Object.keys(e)){const r=e[o];if(!(0,uv.isObject)(r))continue;const s=o.replace(m8,"%");s in i?n.push(Sg(`Paths "${String(i[s])}" and "${o}" must not be equivalent.`,["paths",o])):i[s]=o;const c=[];let l;for(;l=m8.exec(o);){const f=l[0].replace(/[{}?*;]/g,"");c.includes(f)?n.push(Sg(`Path "${o}" must not use parameter "{${f}}" multiple times.`,["paths",o])):c.push(f)}const u={};if(Array.isArray(r.parameters))for(const[f,h]of r.parameters.entries()){if(!(0,uv.isObject)(h))continue;const d=["paths",o,"parameters",f];y8(h,d,n,u)&&(u[h.name]=d)}if((0,uv.isObject)(e[o]))for(const f of Object.keys(r)){const h=r[f];if(!(0,uv.isObject)(h)||f==="parameters"||!a.includes(f))continue;const d={},{parameters:m}=h,g=["paths",o,f];if(Array.isArray(m))for(const[v,P]of m.entries()){if(!(0,uv.isObject)(P))continue;const A=[...g,"parameters",v];y8(P,A,n,d)&&(d[P.name]=A)}const b={...u,...d};Yrt(o,b,c,n),Jrt(o,b,c,g,n)}}return n});function Sg(t,e){return{message:t,path:e}}const Qrt=t=>`Path parameter "${t}" must have "required" property that is set to "true".`,Zrt=t=>`Path parameter "${t}" must not be defined multiple times.`;var tL={},zb={};Object.defineProperty(zb,"__esModule",{value:!0});zb.getAllOperations=void 0;const PI=Hr,Xrt=["get","head","post","put","patch","delete","options","trace"];function*ent(t){if(!(0,PI.isPlainObject)(t))return;const e={path:"",operation:"",value:null};for(const n of Object.keys(t)){const i=t[n];if((0,PI.isPlainObject)(i)){e.path=n;for(const a of Object.keys(i))!(0,PI.isPlainObject)(i[a])||!Xrt.includes(a)||(e.operation=a,e.value=i[a],yield e)}}}zb.getAllOperations=ent;Object.defineProperty(tL,"__esModule",{value:!0});const tnt=Tr(),rnt=zb,g8=_o;tL.default=(0,tnt.createRulesetFunction)({input:{type:"object"},options:null},function(e){const n=[],i=[];if(Array.isArray(e.tags))for(const o of e.tags)(0,g8.isObject)(o)&&typeof o.name=="string"&&i.push(o.name);const{paths:a}=e;for(const{path:o,operation:r,value:s}of(0,rnt.getAllOperations)(a)){if(!(0,g8.isObject)(s))continue;const{tags:c}=s;if(Array.isArray(c))for(const[l,u]of c.entries())i.includes(u)||n.push({message:"Operation tags must be defined in global tags.",path:["paths",o,r,"tags",l]})}return n});var rL={};Object.defineProperty(rL,"__esModule",{value:!0});const nnt=oa,int=Tr(),ant=_o;rL.default=(0,int.createRulesetFunction)({input:{type:"object",properties:{components:{type:"object"}},required:["components"]},options:null},function(e,n,i){const a=[],o=["schemas","responses","parameters","examples","requestBodies","headers","links","callbacks"];for(const r of o){const s=e.components[r];if(!(0,ant.isObject)(s))continue;const c=(0,nnt.unreferencedReusableObject)(s,{reusableObjectsLocation:`#/components/${r}`},i);c!==void 0&&Array.isArray(c)&&a.push(...c)}return a});var nL={};Object.defineProperty(nL,"__esModule",{value:!0});const snt=Tr(),ont=zb,v8=_o;nL.default=(0,snt.createRulesetFunction)({input:{type:"object"},options:null},function(e){const n=[],i=[];for(const{path:a,operation:o}of(0,ont.getAllOperations)(e)){const r=e[a];if(!(0,v8.isObject)(r))continue;const s=r[o];if(!(0,v8.isObject)(s)||!("operationId"in s))continue;const{operationId:c}=s;i.includes(c)?n.push({message:"operationId must be unique.",path:["paths",a,o,"operationId"]}):i.push(c)}return n});var iL={};Object.defineProperty(iL,"__esModule",{value:!0});const lnt=Tr(),cnt=_o;iL.default=(0,lnt.createRulesetFunction)({input:{type:"object",properties:{discriminator:{type:"string"}},required:["discriminator"]},options:null},function(e,n,{path:i}){const a=e.discriminator,o=[];return(!(0,cnt.isObject)(e.properties)||!Object.keys(e.properties).some(r=>r===a))&&o.push({message:"The discriminator property must be defined in this schema.",path:[...i,"properties"]}),(!Array.isArray(e.required)||!e.required.some(r=>r===a))&&o.push({message:"The discriminator property must be in the required property list.",path:[...i,"required"]}),o});(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.oasDiscriminator=t.oasOpIdUnique=t.oasUnusedComponent=t.oasTagDefined=t.oasPathParam=t.refSiblings=t.typedEnum=t.oasSecurityDefined=t.oasExample=t.oasOpSuccessResponse=t.oasOpFormDataConsumeCheck=t.oasDocumentSchema=t.oasSchema=t.oasOpParams=void 0;const e=vr,n=(0,e.__importDefault)(VN);Object.defineProperty(t,"oasOpParams",{enumerable:!0,get:function(){return n.default}});const i=(0,e.__importDefault)(Wx);Object.defineProperty(t,"oasSchema",{enumerable:!0,get:function(){return i.default}});const a=(0,e.__importDefault)(WN);Object.defineProperty(t,"oasDocumentSchema",{enumerable:!0,get:function(){return a.default}});const o=(0,e.__importDefault)(KN);Object.defineProperty(t,"oasOpFormDataConsumeCheck",{enumerable:!0,get:function(){return o.default}});const r=(0,e.__importDefault)(YN);Object.defineProperty(t,"oasOpSuccessResponse",{enumerable:!0,get:function(){return r.default}});const s=(0,e.__importDefault)(JN);Object.defineProperty(t,"oasExample",{enumerable:!0,get:function(){return s.default}});const c=(0,e.__importDefault)(QN);Object.defineProperty(t,"oasSecurityDefined",{enumerable:!0,get:function(){return c.default}});const l=(0,e.__importDefault)(ZN);Object.defineProperty(t,"typedEnum",{enumerable:!0,get:function(){return l.default}});const u=(0,e.__importDefault)(XN);Object.defineProperty(t,"refSiblings",{enumerable:!0,get:function(){return u.default}});const f=(0,e.__importDefault)(eL);Object.defineProperty(t,"oasPathParam",{enumerable:!0,get:function(){return f.default}});const h=(0,e.__importDefault)(tL);Object.defineProperty(t,"oasTagDefined",{enumerable:!0,get:function(){return h.default}});const d=(0,e.__importDefault)(rL);Object.defineProperty(t,"oasUnusedComponent",{enumerable:!0,get:function(){return d.default}});const m=(0,e.__importDefault)(nL);Object.defineProperty(t,"oasOpIdUnique",{enumerable:!0,get:function(){return m.default}});const g=(0,e.__importDefault)(iL);Object.defineProperty(t,"oasDiscriminator",{enumerable:!0,get:function(){return g.default}})})(tb);function Ad(t){return t!=null&&typeof t=="object"&&t["@@functional/placeholder"]===!0}function Zy(t){return function e(n){return arguments.length===0||Ad(n)?e:t.apply(this,arguments)}}function jre(t){return function e(n,i){switch(arguments.length){case 0:return e;case 1:return Ad(n)?e:Zy(function(a){return t(n,a)});default:return Ad(n)&&Ad(i)?e:Ad(n)?Zy(function(a){return t(a,i)}):Ad(i)?Zy(function(a){return t(n,a)}):t(n,i)}}}function P8(t){for(var e=[],n;!(n=t.next()).done;)e.push(n.value);return e}function b8(t,e,n){for(var i=0,a=n.length;i=0;)n=$8[i],TS(n,e)&&!dnt(a,n)&&(a[a.length]=n),i-=1;return a}),_8=Zy(function(e){return e===null?"Null":e===void 0?"Undefined":Object.prototype.toString.call(e).slice(8,-1)});function x8(t,e,n,i){var a=P8(t),o=P8(e);function r(s,c){return aL(s,c,n.slice(),i.slice())}return!b8(function(s,c){return!b8(r,c,s)},o,a)}function aL(t,e,n,i){if(bI(t,e))return!0;var a=_8(t);if(a!==_8(e))return!1;if(typeof t["fantasy-land/equals"]=="function"||typeof e["fantasy-land/equals"]=="function")return typeof t["fantasy-land/equals"]=="function"&&t["fantasy-land/equals"](e)&&typeof e["fantasy-land/equals"]=="function"&&e["fantasy-land/equals"](t);if(typeof t.equals=="function"||typeof e.equals=="function")return typeof t.equals=="function"&&t.equals(e)&&typeof e.equals=="function"&&e.equals(t);switch(a){case"Arguments":case"Array":case"Object":if(typeof t.constructor=="function"&&unt(t.constructor)==="Promise")return t===e;break;case"Boolean":case"Number":case"String":if(!(typeof t==typeof e&&bI(t.valueOf(),e.valueOf())))return!1;break;case"Date":if(!bI(t.valueOf(),e.valueOf()))return!1;break;case"Error":return t.name===e.name&&t.message===e.message;case"RegExp":if(!(t.source===e.source&&t.global===e.global&&t.ignoreCase===e.ignoreCase&&t.multiline===e.multiline&&t.sticky===e.sticky&&t.unicode===e.unicode))return!1;break}for(var o=n.length-1;o>=0;){if(n[o]===t)return i[o]===e;o-=1}switch(a){case"Map":return t.size!==e.size?!1:x8(t.entries(),e.entries(),n.concat([t]),i.concat([e]));case"Set":return t.size!==e.size?!1:x8(t.values(),e.values(),n.concat([t]),i.concat([e]));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 r=S8(t);if(r.length!==S8(e).length)return!1;var s=n.concat([t]),c=i.concat([e]);for(o=r.length-1;o>=0;){var l=r[o];if(!(TS(l,e)&&aL(e[l],t[l],s,c)))return!1;o-=1}return!0}var mnt=jre(function(e,n){return aL(e,n,[],[])}),gT=jre(function(e,n){for(var i={},a={},o=0,r=e.length;o{var a;const e=t.style??(["query","cookie"].includes(t.in)?"form":"simple"),n=Object.keys(t).filter(o=>/^x-/.test(o));let i=!1;return e==="form"&&["array","object"].includes(((a=t.schema)==null?void 0:a.type)??"")&&(i=t.explode??!0),{...gT(["description","example","examples",...n],t),required:t.required??!1,deprecated:t.deprecated??!1,allowEmptyValue:t.allowEmptyValue??!1,style:e,explode:i,allowReserved:t.allowReserved??!1}},wI=(t,e,n)=>{const i=D8(e.spec);if(!t.parameters)return jl(`Parameter "${i.name}" is missing.`);const a=t.parameters.findIndex(s=>s.name===i.name);if(a===-1)return jl(`Parameter "${i.name}" is missing.`,[...n.path,"parameters"]);const o=D8(t.parameters[a]),r=[...n.path,"parameters",a];if(e.validateSchema)return e.validateSchema(o.schema??{},r);if(i.schema){const s=Hv(o.schema??{},i.schema);if(s.length>0)return jl("Parameter schema is not compatible. "+s.join(" "),[...r,"schema"])}return mnt(gT(["schema"],i),gT(["schema"],o))?[]:jl(`Parameter object is not compatible with: ${JSON.stringify(e.spec)}.`,r)},ynt=new sR.Resolver({resolvers:{http:{resolve:pS},https:{resolve:pS}},parseResolveResult:t=>{const e=t.targetAuthority.href().replace(/\/$/,""),i=(iZ(e)===".json"?fh.Json:fh.Yaml).parse(t.result);return Promise.resolve({result:i.data})}}),fd=async(t,e,n)=>{if(!e.schemaUri)return[];const i=e.mediaType??OQ,a=t.content?t.content[i]:void 0;if(!a)return jl(`Response media type "${i}" is missing.`,[...n.path,"content"]);const o=a.schema;if(!o)return jl(`Response schema for media type "${i}" is missing.`,[...n.path,"content",i]);const r=await fetch(e.schemaUri).then(c=>c.text()).then(c=>fh.Yaml.parse(c).data).then(c=>ynt.resolve(c,{baseUri:e.schemaUri}).then(l=>l.result)),s=Hv(o,r);return s.length>0?jl("Response schema is not compatible. "+s.join(" "),[...n.path,"content",i]):[]},gnt="http://www.opengis.net/spec/ogcapi-common-1/1.0/conf/oas30",Z$="http://www.opengis.net/spec/ogcapi-features-1/1.0/conf/core",X$="http://www.opengis.net/spec/ogcapi-features-1/1.0/conf/oas30",eA="http://www.opengis.net/spec/ogcapi-features-1/1.0/conf/geojson",vnt={documentationUrl:"http://www.opengis.net/spec/ogcapi-common-1/1.0/req/oas30",description:'OGC API - Common - Part 1: Core - Requirements Class "OpenAPI 3.0"',formats:[cl.oas3_0],rules:{"/req/oas30/oas-definition-2":{given:"$",message:"The JSON representation SHALL conform to the OpenAPI Specification, version 3.0. {{error}}.",severity:"error",then:[{function:tb.oasDocumentSchema},{field:"paths",function:tb.oasPathParam}]}}},Pnt={documentationUrl:"http://www.opengis.net/spec/ogcapi-features-1/1.0/conf/core",description:'OGC API - Features - Part 1: Core - Requirements Class "Core"',formats:[cl.oas3_0],rules:{"/req/core/root-op":{given:"$.paths",message:"The server SHALL support the HTTP GET operation at the path `/`.",severity:"error",then:{field:"/.get",function:oa.truthy}},"/req/core/root-success":{given:"$.paths['/'].get.responses",message:"A successful execution of the operation SHALL be reported as a response with a HTTP status code `200`.",severity:"error",then:{field:"200",function:oa.truthy}},"/req/core/conformance-op":{given:"$.paths",message:"The server SHALL support the HTTP GET operation at the path `/conformance`.",severity:"error",then:{field:"/conformance.get",function:oa.truthy}},"/req/core/conformance-success":{given:"$.paths['/conformance'].get.responses",message:"A successful execution of the operation SHALL be reported as a response with a HTTP status code `200`.",severity:"error",then:{field:"200",function:oa.truthy}},"/req/core/fc-md-op":{given:"$.paths",message:"The server SHALL support the HTTP GET operation at the path `/collections`.",severity:"error",then:{field:"/collections.get",function:oa.truthy}},"/req/core/fc-md-success":{given:"$.paths['/collections'].get.responses",message:"A successful execution of the operation SHALL be reported as a response with a HTTP status code `200`.",severity:"error",then:{field:"200",function:oa.truthy}},"/req/core/sfc-md-op":{given:"$.paths[?(@property.match(/^\\/collections\\/[^/]+$/))]",message:"The server SHALL support the HTTP GET operation at the path `/collections/{collectionId}`.",severity:"error",then:{field:"get",function:oa.truthy}},"/req/core/sfc-md-success":{given:"$.paths[?(@property.match(/^\\/collections\\/[^/]+$/))].get.responses",message:"A successful execution of the operation SHALL be reported as a response with a HTTP status code `200`.",severity:"error",then:{field:"200",function:oa.truthy}},"/req/core/fc-op":{given:"$.paths[?(@property.match(/^\\/collections\\/[^/]+\\/items$/))]",message:"For every feature collection identified in the feature collections response (path `/collections`), the server SHALL support the HTTP GET operation at the path `/collections/{collectionId}/items`.",severity:"error",then:{field:"get",function:oa.truthy}},"/req/core/fc-response":{given:"$.paths[?(@property.match(/^\\/collections\\/[^/]+\\/items$/))].get.responses",message:"A successful execution of the operation SHALL be reported as a response with a HTTP status code `200`.",severity:"error",then:{field:"200",function:oa.truthy}},"/req/core/fc-limit-definition":{given:"$.paths[?(@property.match(/^\\/collections\\/[^/]+\\/items$/))].get",message:"The operation SHALL support a parameter `limit`. {{error}}",severity:"error",then:{function:wI,functionOptions:{spec:{name:"limit",in:"query"},validateSchema:(t,e)=>t.type?t.type!=="integer"?jl("Schema type must be integer.",[...e,"schema"]):t.minimum==null||t.maximum===void 0||t.default===void 0?jl('Integer schema must contain explicit values for "minimum", "maximum" and "default".',[...e,"schema"]):[]:jl("Schema is missing.",e)}}},"/req/core/fc-bbox-definition":{given:"$.paths[?(@property.match(/^\\/collections\\/[^/]+\\/items$/))].get",message:"The operation SHALL support a parameter `bbox`. {{error}}",severity:"error",then:{function:wI,functionOptions:{spec:{name:"bbox",in:"query",explode:!1,schema:{type:"array",oneOf:[{minItems:4,maxItems:4},{minItems:6,maxItems:6}],items:{type:"number"}}}}}},"/req/core/fc-time-definition":{given:"$.paths[?(@property.match(/^\\/collections\\/[^/]+\\/items$/))].get",message:"The operation SHALL support a parameter `datetime`. {{error}}",severity:"error",then:{function:wI,functionOptions:{spec:{name:"datetime",in:"query",schema:{type:"string"}}}}},"/req/core/f-op":{given:"$.paths[?(@property.match(/^\\/collections\\/[^/]+\\/items\\/[^/]+$/))]",message:"For every feature in a feature collection (path `/collections/{collectionId}`), the server SHALL support the HTTP GET operation at the path `/collections/{collectionId}/items/{featureId}`.",severity:"error",then:{field:"get",function:oa.truthy}},"/req/core/f-response":{given:"$.paths[?(@property.match(/^\\/collections\\/[^/]+\\/items\\/[^/]+$/))].get.responses",message:"A successful execution of the operation SHALL be reported as a response with a HTTP status code `200`.",severity:"error",then:{field:"200",function:oa.truthy}}}},bnt={documentationUrl:"http://www.opengis.net/spec/ogcapi-features-1/1.0/req/oas30",description:'OGC API - Features - Part 1: Core - Requirements Class "OpenAPI 3.0"',formats:[cl.oas3_0],rules:{"/req/oas30/oas-definition-2":{given:"$",message:"The JSON representation SHALL conform to the OpenAPI Specification, version 3.0. {{error}}.",severity:"error",then:[{function:tb.oasDocumentSchema},{field:"paths",function:tb.oasPathParam}]}}},wnt={documentationUrl:"http://www.opengis.net/spec/ogcapi-features-1/1.0/req/geojson",description:'OGC API - Features - Part 1: Core - Requirements Class "GeoJSON"',formats:[cl.oas3_0],rules:{"/req/core/root-success":{given:"$.paths['/'].get.responses.200",message:"A successful execution of the operation SHALL be reported as a response with a HTTP status code `200`. {{error}}",severity:"error",then:{function:fd,functionOptions:{schemaUri:"https://schemas.opengis.net/ogcapi/features/part1/1.0/openapi/schemas/landingPage.yaml"}}},"/req/core/conformance-success":{given:"$.paths['/conformance'].get.responses.200",message:"A successful execution of the operation SHALL be reported as a response with a HTTP status code `200`. {{error}}",severity:"error",then:{function:fd,functionOptions:{schemaUri:"https://schemas.opengis.net/ogcapi/features/part1/1.0/openapi/schemas/confClasses.yaml"}}},"/req/core/fc-md-success":{given:"$.paths['/collections'].get.responses.200",message:"A successful execution of the operation SHALL be reported as a response with a HTTP status code `200`. {{error}}",severity:"error",then:{function:fd,functionOptions:{schemaUri:"https://schemas.opengis.net/ogcapi/features/part1/1.0/openapi/schemas/collections.yaml"}}},"/req/core/sfc-md-success":{given:"$.paths[?(@property.match(/^\\/collections\\/[^/]+$/))].get.responses.200",message:"A successful execution of the operation SHALL be reported as a response with a HTTP status code `200`. {{error}}",severity:"error",then:{function:fd,functionOptions:{schemaUri:"https://schemas.opengis.net/ogcapi/features/part1/1.0/openapi/schemas/collection.yaml"}}},"/req/core/fc-response":{given:"$.paths[?(@property.match(/^\\/collections\\/[^/]+\\/items$/))].get.responses.200",message:"A successful execution of the operation SHALL be reported as a response with a HTTP status code `200`. {{error}}",severity:"error",then:{function:fd,functionOptions:{schemaUri:"https://schemas.opengis.net/ogcapi/features/part1/1.0/openapi/schemas/featureCollectionGeoJSON.yaml",mediaType:BU}}},"/req/core/f-response":{given:"$.paths[?(@property.match(/^\\/collections\\/[^/]+\\/items\\/[^/]+$/))].get.responses.200",message:"A successful execution of the operation SHALL be reported as a response with a HTTP status code `200`. {{error}}",severity:"error",then:{function:fd,functionOptions:{schemaUri:"https://schemas.opengis.net/ogcapi/features/part1/1.0/openapi/schemas/featureGeoJSON.yaml",mediaType:BU}}}}},sP={[gnt]:vnt,[Z$]:Pnt,[X$]:bnt,[eA]:wnt},$nt=async t=>{let e;try{e=JSON.parse(t)}catch{return Promise.resolve({content:t})}const n=e.links;if(Array.isArray(n)){const i=n.find(o=>o.rel==="service-desc"&&o.type===aLe),a=n.find(o=>o.rel==="conformance");if(i){const o=await fetch(i.href,{headers:{Accept:i.type}}).then(s=>AJ(s,i.href)),r=[];if(a){const c=(await fetch(a.href,{headers:{Accept:OQ}}).then(l=>PMe(l,a.href))).conformsTo;Array.isArray(c)&&c.forEach(l=>{typeof l=="string"&&sP[l]&&r.push({name:l,linter:J$(l,sP[l])})})}return{content:o,linters:r}}}return Promise.resolve({content:t})},pd=t=>t.replace("http://www.opengis.net/spec/",""),Ant={name:"OGC API",slug:"ogc-api",example:JSON.stringify(uYe,void 0,2),linters:[{name:pd(Z$),linter:J$(pd(Z$),sP[Z$])},{name:pd(X$),linter:J$(pd(X$),sP[X$])},{name:pd(eA),linter:J$(pd(eA),sP[eA])}],responseMapper:$nt},vT=[iLe,Ant],Snt=({className:t})=>{const e=vj(),n=Eg();return Lt.jsx("select",{value:n.pathname,onChange:i=>e(i.target.value),className:t,children:vT.map(i=>Lt.jsx("option",{value:`/${i.slug}`,children:i.name},i.slug))})},_nt=({onSubmit:t})=>{const[e,n]=We.useState("");return Lt.jsx("div",{children:Lt.jsxs("form",{onSubmit:()=>t(e),children:[Lt.jsx("label",{className:"mr-2 font-medium",children:"URI:"}),Lt.jsx("input",{type:"text",className:"w-96",value:e,onChange:i=>n(i.target.value)}),Lt.jsx("button",{type:"submit",className:"ml-2",children:"Check"})]})})},xnt=({spec:t})=>{const[e,n]=We.useState("");return Lt.jsxs("div",{className:"flex flex-col h-screen",children:[Lt.jsxs("header",{className:"flex justify-between items-center px-4 py-2 bg-slate-700 text-white",children:[Lt.jsx("div",{children:Lt.jsxs("h1",{className:"text-lg font-medium",children:[Lt.jsx(Uhe,{to:"/",children:"Geonovum OGC Checker"}),": ",t.name]})}),Lt.jsx(_nt,{onSubmit:n}),Lt.jsxs("div",{className:"flex items-center",children:[Lt.jsx(Snt,{className:"mr-4"}),Lt.jsx("a",{href:"https://github.com/Geonovum-labs/json-fg-linter",target:"_blank",children:Lt.jsx(AMe,{})})]})]}),Lt.jsx("div",{className:"flex-1 overflow-hidden",children:Lt.jsx($Me,{spec:t,uri:e!==""?e:void 0})})]})},Dnt=khe([{path:"/",element:Lt.jsx(bhe,{to:`/${vT[0].slug}`})},...vT.map(t=>({path:`/${t.slug}`,element:Lt.jsx(xnt,{spec:t})}))]);$I.createRoot(document.getElementById("root")).render(Lt.jsx(F8.StrictMode,{children:Lt.jsx(Nhe,{router:Dnt})})); diff --git a/docs/assets/index-CIqtTABe.js b/docs/assets/index-CIqtTABe.js new file mode 100644 index 0000000..87c5ff5 --- /dev/null +++ b/docs/assets/index-CIqtTABe.js @@ -0,0 +1,265 @@ +var Nce=Object.defineProperty;var bq=t=>{throw TypeError(t)};var Lce=(t,e,n)=>e in t?Nce(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var wq=(t,e,n)=>Lce(t,typeof e!="symbol"?e+"":e,n),$q=(t,e,n)=>e.has(t)||bq("Cannot "+n);var Cu=(t,e,n)=>($q(t,e,"read from private field"),n?n.call(t):e.get(t)),D0=(t,e,n)=>e.has(t)?bq("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),tk=(t,e,n,i)=>($q(t,e,"write to private field"),i?i.call(t,n):e.set(t,n),n);function T8(t,e){for(var n=0;ni[a]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))i(a);new MutationObserver(a=>{for(const o of a)if(o.type==="childList")for(const r of o.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&i(r)}).observe(document,{childList:!0,subtree:!0});function n(a){const o={};return a.integrity&&(o.integrity=a.integrity),a.referrerPolicy&&(o.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?o.credentials="include":a.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function i(a){if(a.ep)return;a.ep=!0;const o=n(a);fetch(a.href,o)}})();var Cr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function jS(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Yl(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function i(){return this instanceof i?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(i){var a=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(n,i,a.get?a:{enumerable:!0,get:function(){return t[i]}})}),n}var j8={exports:{}},MS={},M8={exports:{}},Xt={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var tb=Symbol.for("react.element"),Fce=Symbol.for("react.portal"),qce=Symbol.for("react.fragment"),zce=Symbol.for("react.strict_mode"),Uce=Symbol.for("react.profiler"),Bce=Symbol.for("react.provider"),Vce=Symbol.for("react.context"),Wce=Symbol.for("react.forward_ref"),Hce=Symbol.for("react.suspense"),Gce=Symbol.for("react.memo"),Kce=Symbol.for("react.lazy"),Aq=Symbol.iterator;function Yce(t){return t===null||typeof t!="object"?null:(t=Aq&&t[Aq]||t["@@iterator"],typeof t=="function"?t:null)}var R8={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},N8=Object.assign,L8={};function _g(t,e,n){this.props=t,this.context=e,this.refs=L8,this.updater=n||R8}_g.prototype.isReactComponent={};_g.prototype.setState=function(t,e){if(typeof t!="object"&&typeof t!="function"&&t!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")};_g.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function F8(){}F8.prototype=_g.prototype;function wT(t,e,n){this.props=t,this.context=e,this.refs=L8,this.updater=n||R8}var $T=wT.prototype=new F8;$T.constructor=wT;N8($T,_g.prototype);$T.isPureReactComponent=!0;var Sq=Array.isArray,q8=Object.prototype.hasOwnProperty,AT={current:null},z8={key:!0,ref:!0,__self:!0,__source:!0};function U8(t,e,n){var i,a={},o=null,r=null;if(e!=null)for(i in e.ref!==void 0&&(r=e.ref),e.key!==void 0&&(o=""+e.key),e)q8.call(e,i)&&!z8.hasOwnProperty(i)&&(a[i]=e[i]);var s=arguments.length-2;if(s===1)a.children=n;else if(1>>1,U=X[M];if(0>>1;Ma(G,z))oea(ve,G)?(X[M]=ve,X[oe]=z,M=oe):(X[M]=G,X[T]=z,M=T);else if(oea(ve,z))X[M]=ve,X[oe]=z,M=oe;else break e}}return ae}function a(X,ae){var z=X.sortIndex-ae.sortIndex;return z!==0?z:X.id-ae.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;t.unstable_now=function(){return o.now()}}else{var r=Date,s=r.now();t.unstable_now=function(){return r.now()-s}}var c=[],l=[],u=1,f=null,h=3,d=!1,m=!1,g=!1,b=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,P=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function A(X){for(var ae=n(l);ae!==null;){if(ae.callback===null)i(l);else if(ae.startTime<=X)i(l),ae.sortIndex=ae.expirationTime,e(c,ae);else break;ae=n(l)}}function _(X){if(g=!1,A(X),!m)if(n(c)!==null)m=!0,C(x);else{var ae=n(l);ae!==null&&H(_,ae.startTime-X)}}function x(X,ae){m=!1,g&&(g=!1,v(F),F=-1),d=!0;var z=h;try{for(A(ae),f=n(c);f!==null&&(!(f.expirationTime>ae)||X&&!V());){var M=f.callback;if(typeof M=="function"){f.callback=null,h=f.priorityLevel;var U=M(f.expirationTime<=ae);ae=t.unstable_now(),typeof U=="function"?f.callback=U:f===n(c)&&i(c),A(ae)}else i(c);f=n(c)}if(f!==null)var W=!0;else{var T=n(l);T!==null&&H(_,T.startTime-ae),W=!1}return W}finally{f=null,h=z,d=!1}}var E=!1,j=null,F=-1,I=5,L=-1;function V(){return!(t.unstable_now()-LX||125M?(X.sortIndex=z,e(l,X),n(c)===null&&X===n(l)&&(g?(v(F),F=-1):g=!0,H(_,z-M))):(X.sortIndex=U,e(c,X),m||d||(m=!0,C(x))),X},t.unstable_shouldYield=V,t.unstable_wrapCallback=function(X){var ae=h;return function(){var z=h;h=ae;try{return X.apply(this,arguments)}finally{h=z}}}})(K8);G8.exports=K8;var oue=G8.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var lue=Be,gs=oue;function Ge(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),SI=Object.prototype.hasOwnProperty,cue=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,xq={},Dq={};function uue(t){return SI.call(Dq,t)?!0:SI.call(xq,t)?!1:cue.test(t)?Dq[t]=!0:(xq[t]=!0,!1)}function fue(t,e,n,i){if(n!==null&&n.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return i?!1:n!==null?!n.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function pue(t,e,n,i){if(e===null||typeof e>"u"||fue(t,e,n,i))return!0;if(i)return!1;if(n!==null)switch(n.type){case 3:return!e;case 4:return e===!1;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function _a(t,e,n,i,a,o,r){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=i,this.attributeNamespace=a,this.mustUseProperty=n,this.propertyName=t,this.type=e,this.sanitizeURL=o,this.removeEmptyString=r}var Oi={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){Oi[t]=new _a(t,0,!1,t,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=t[0];Oi[e]=new _a(e,1,!1,t[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(t){Oi[t]=new _a(t,2,!1,t.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){Oi[t]=new _a(t,2,!1,t,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(t){Oi[t]=new _a(t,3,!1,t.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(t){Oi[t]=new _a(t,3,!0,t,null,!1,!1)});["capture","download"].forEach(function(t){Oi[t]=new _a(t,4,!1,t,null,!1,!1)});["cols","rows","size","span"].forEach(function(t){Oi[t]=new _a(t,6,!1,t,null,!1,!1)});["rowSpan","start"].forEach(function(t){Oi[t]=new _a(t,5,!1,t.toLowerCase(),null,!1,!1)});var _T=/[\-:]([a-z])/g;function xT(t){return t[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(t){var e=t.replace(_T,xT);Oi[e]=new _a(e,1,!1,t,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var e=t.replace(_T,xT);Oi[e]=new _a(e,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(t){var e=t.replace(_T,xT);Oi[e]=new _a(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(t){Oi[t]=new _a(t,1,!1,t.toLowerCase(),null,!1,!1)});Oi.xlinkHref=new _a("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(t){Oi[t]=new _a(t,1,!1,t.toLowerCase(),null,!0,!0)});function DT(t,e,n,i){var a=Oi.hasOwnProperty(e)?Oi[e]:null;(a!==null?a.type!==0:i||!(2s||a[r]!==o[s]){var c=` +`+a[r].replace(" at new "," at ");return t.displayName&&c.includes("")&&(c=c.replace("",t.displayName)),c}while(1<=r&&0<=s);break}}}finally{ik=!1,Error.prepareStackTrace=n}return(t=t?t.displayName||t.name:"")?fv(t):""}function hue(t){switch(t.tag){case 5:return fv(t.type);case 16:return fv("Lazy");case 13:return fv("Suspense");case 19:return fv("SuspenseList");case 0:case 2:case 15:return t=ak(t.type,!1),t;case 11:return t=ak(t.type.render,!1),t;case 1:return t=ak(t.type,!0),t;default:return""}}function kI(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case xd:return"Fragment";case _d:return"Portal";case _I:return"Profiler";case kT:return"StrictMode";case xI:return"Suspense";case DI:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case Q8:return(t.displayName||"Context")+".Consumer";case J8:return(t._context.displayName||"Context")+".Provider";case OT:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case ET:return e=t.displayName||null,e!==null?e:kI(t.type)||"Memo";case Gu:e=t._payload,t=t._init;try{return kI(t(e))}catch{}}return null}function due(t){var e=t.type;switch(t.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=e.render,t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return kI(e);case 8:return e===kT?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e}return null}function Df(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function X8(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function mue(t){var e=X8(t)?"checked":"value",n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),i=""+t[e];if(!t.hasOwnProperty(e)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var a=n.get,o=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return a.call(this)},set:function(r){i=""+r,o.call(this,r)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return i},setValue:function(r){i=""+r},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function E1(t){t._valueTracker||(t._valueTracker=mue(t))}function eW(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),i="";return t&&(i=X8(t)?t.checked?"true":"false":t.value),t=i,t!==n?(e.setValue(t),!0):!1}function eA(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function OI(t,e){var n=e.checked;return dn({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??t._wrapperState.initialChecked})}function Oq(t,e){var n=e.defaultValue==null?"":e.defaultValue,i=e.checked!=null?e.checked:e.defaultChecked;n=Df(e.value!=null?e.value:n),t._wrapperState={initialChecked:i,initialValue:n,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function tW(t,e){e=e.checked,e!=null&&DT(t,"checked",e,!1)}function EI(t,e){tW(t,e);var n=Df(e.value),i=e.type;if(n!=null)i==="number"?(n===0&&t.value===""||t.value!=n)&&(t.value=""+n):t.value!==""+n&&(t.value=""+n);else if(i==="submit"||i==="reset"){t.removeAttribute("value");return}e.hasOwnProperty("value")?II(t,e.type,n):e.hasOwnProperty("defaultValue")&&II(t,e.type,Df(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(t.defaultChecked=!!e.defaultChecked)}function Eq(t,e,n){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var i=e.type;if(!(i!=="submit"&&i!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+t._wrapperState.initialValue,n||e===t.value||(t.value=e),t.defaultValue=e}n=t.name,n!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,n!==""&&(t.name=n)}function II(t,e,n){(e!=="number"||eA(t.ownerDocument)!==t)&&(n==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+n&&(t.defaultValue=""+n))}var pv=Array.isArray;function Wd(t,e,n,i){if(t=t.options,e){e={};for(var a=0;a"+e.valueOf().toString()+"",e=I1.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}});function lP(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var Cv={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},yue=["Webkit","ms","Moz","O"];Object.keys(Cv).forEach(function(t){yue.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),Cv[e]=Cv[t]})});function aW(t,e,n){return e==null||typeof e=="boolean"||e===""?"":n||typeof e!="number"||e===0||Cv.hasOwnProperty(t)&&Cv[t]?(""+e).trim():e+"px"}function sW(t,e){t=t.style;for(var n in e)if(e.hasOwnProperty(n)){var i=n.indexOf("--")===0,a=aW(n,e[n],i);n==="float"&&(n="cssFloat"),i?t.setProperty(n,a):t[n]=a}}var gue=dn({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function jI(t,e){if(e){if(gue[t]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(Ge(137,t));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(Ge(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(Ge(61))}if(e.style!=null&&typeof e.style!="object")throw Error(Ge(62))}}function MI(t,e){if(t.indexOf("-")===-1)return typeof e.is=="string";switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var RI=null;function IT(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var NI=null,Hd=null,Gd=null;function Tq(t){if(t=ib(t)){if(typeof NI!="function")throw Error(Ge(280));var e=t.stateNode;e&&(e=qS(e),NI(t.stateNode,t.type,e))}}function oW(t){Hd?Gd?Gd.push(t):Gd=[t]:Hd=t}function lW(){if(Hd){var t=Hd,e=Gd;if(Gd=Hd=null,Tq(t),e)for(t=0;t>>=0,t===0?32:31-(kue(t)/Oue|0)|0}var C1=64,T1=4194304;function hv(t){switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return t&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function iA(t,e){var n=t.pendingLanes;if(n===0)return 0;var i=0,a=t.suspendedLanes,o=t.pingedLanes,r=n&268435455;if(r!==0){var s=r&~a;s!==0?i=hv(s):(o&=r,o!==0&&(i=hv(o)))}else r=n&~a,r!==0?i=hv(r):o!==0&&(i=hv(o));if(i===0)return 0;if(e!==0&&e!==i&&!(e&a)&&(a=i&-i,o=e&-e,a>=o||a===16&&(o&4194240)!==0))return e;if(i&4&&(i|=n&16),e=t.entangledLanes,e!==0)for(t=t.entanglements,e&=i;0n;n++)e.push(t);return e}function rb(t,e,n){t.pendingLanes|=e,e!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,e=31-Zo(e),t[e]=n}function Tue(t,e){var n=t.pendingLanes&~e;t.pendingLanes=e,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=e,t.mutableReadLanes&=e,t.entangledLanes&=e,e=t.entanglements;var i=t.eventTimes;for(t=t.expirationTimes;0=jv),Uq=" ",Bq=!1;function kW(t,e){switch(t){case"keyup":return ofe.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function OW(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Dd=!1;function cfe(t,e){switch(t){case"compositionend":return OW(e);case"keypress":return e.which!==32?null:(Bq=!0,Uq);case"textInput":return t=e.data,t===Uq&&Bq?null:t;default:return null}}function ufe(t,e){if(Dd)return t==="compositionend"||!FT&&kW(t,e)?(t=xW(),a$=RT=af=null,Dd=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1=e)return{node:n,offset:e-t};t=i}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Gq(n)}}function TW(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?TW(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function jW(){for(var t=window,e=eA();e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=eA(t.document)}return e}function qT(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}function Pfe(t){var e=jW(),n=t.focusedElem,i=t.selectionRange;if(e!==n&&n&&n.ownerDocument&&TW(n.ownerDocument.documentElement,n)){if(i!==null&&qT(n)){if(e=i.start,t=i.end,t===void 0&&(t=e),"selectionStart"in n)n.selectionStart=e,n.selectionEnd=Math.min(t,n.value.length);else if(t=(e=n.ownerDocument||document)&&e.defaultView||window,t.getSelection){t=t.getSelection();var a=n.textContent.length,o=Math.min(i.start,a);i=i.end===void 0?o:Math.min(i.end,a),!t.extend&&o>i&&(a=i,i=o,o=a),a=Kq(n,o);var r=Kq(n,i);a&&r&&(t.rangeCount!==1||t.anchorNode!==a.node||t.anchorOffset!==a.offset||t.focusNode!==r.node||t.focusOffset!==r.offset)&&(e=e.createRange(),e.setStart(a.node,a.offset),t.removeAllRanges(),o>i?(t.addRange(e),t.extend(r.node,r.offset)):(e.setEnd(r.node,r.offset),t.addRange(e)))}}for(e=[],t=n;t=t.parentNode;)t.nodeType===1&&e.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,kd=null,BI=null,Rv=null,VI=!1;function Yq(t,e,n){var i=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;VI||kd==null||kd!==eA(i)||(i=kd,"selectionStart"in i&&qT(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),Rv&&dP(Rv,i)||(Rv=i,i=oA(BI,"onSelect"),0Id||(t.current=JI[Id],JI[Id]=null,Id--)}function Vr(t,e){Id++,JI[Id]=t.current,t.current=e}var kf={},Ki=Nf(kf),Wa=Nf(!1),Zp=kf;function eg(t,e){var n=t.type.contextTypes;if(!n)return kf;var i=t.stateNode;if(i&&i.__reactInternalMemoizedUnmaskedChildContext===e)return i.__reactInternalMemoizedMaskedChildContext;var a={},o;for(o in n)a[o]=e[o];return i&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=a),a}function Ha(t){return t=t.childContextTypes,t!=null}function cA(){tn(Wa),tn(Ki)}function r3(t,e,n){if(Ki.current!==kf)throw Error(Ge(168));Vr(Ki,e),Vr(Wa,n)}function BW(t,e,n){var i=t.stateNode;if(e=e.childContextTypes,typeof i.getChildContext!="function")return n;i=i.getChildContext();for(var a in i)if(!(a in e))throw Error(Ge(108,due(t)||"Unknown",a));return dn({},n,i)}function uA(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||kf,Zp=Ki.current,Vr(Ki,t),Vr(Wa,Wa.current),!0}function n3(t,e,n){var i=t.stateNode;if(!i)throw Error(Ge(169));n?(t=BW(t,e,Zp),i.__reactInternalMemoizedMergedChildContext=t,tn(Wa),tn(Ki),Vr(Ki,t)):tn(Wa),Vr(Wa,n)}var yc=null,zS=!1,Pk=!1;function VW(t){yc===null?yc=[t]:yc.push(t)}function Ife(t){zS=!0,VW(t)}function Lf(){if(!Pk&&yc!==null){Pk=!0;var t=0,e=_r;try{var n=yc;for(_r=1;t>=r,a-=r,_c=1<<32-Zo(e)+a|n<F?(I=j,j=null):I=j.sibling;var L=h(v,j,A[F],_);if(L===null){j===null&&(j=I);break}t&&j&&L.alternate===null&&e(v,j),P=o(L,P,F),E===null?x=L:E.sibling=L,E=L,j=I}if(F===A.length)return n(v,j),ln&&lp(v,F),x;if(j===null){for(;FF?(I=j,j=null):I=j.sibling;var V=h(v,j,L.value,_);if(V===null){j===null&&(j=I);break}t&&j&&V.alternate===null&&e(v,j),P=o(V,P,F),E===null?x=V:E.sibling=V,E=V,j=I}if(L.done)return n(v,j),ln&&lp(v,F),x;if(j===null){for(;!L.done;F++,L=A.next())L=f(v,L.value,_),L!==null&&(P=o(L,P,F),E===null?x=L:E.sibling=L,E=L);return ln&&lp(v,F),x}for(j=i(v,j);!L.done;F++,L=A.next())L=d(j,v,F,L.value,_),L!==null&&(t&&L.alternate!==null&&j.delete(L.key===null?F:L.key),P=o(L,P,F),E===null?x=L:E.sibling=L,E=L);return t&&j.forEach(function(q){return e(v,q)}),ln&&lp(v,F),x}function b(v,P,A,_){if(typeof A=="object"&&A!==null&&A.type===xd&&A.key===null&&(A=A.props.children),typeof A=="object"&&A!==null){switch(A.$$typeof){case O1:e:{for(var x=A.key,E=P;E!==null;){if(E.key===x){if(x=A.type,x===xd){if(E.tag===7){n(v,E.sibling),P=a(E,A.props.children),P.return=v,v=P;break e}}else if(E.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===Gu&&s3(x)===E.type){n(v,E.sibling),P=a(E,A.props),P.ref=T0(v,E,A),P.return=v,v=P;break e}n(v,E);break}else e(v,E);E=E.sibling}A.type===xd?(P=Up(A.props.children,v.mode,_,A.key),P.return=v,v=P):(_=h$(A.type,A.key,A.props,null,v.mode,_),_.ref=T0(v,P,A),_.return=v,v=_)}return r(v);case _d:e:{for(E=A.key;P!==null;){if(P.key===E)if(P.tag===4&&P.stateNode.containerInfo===A.containerInfo&&P.stateNode.implementation===A.implementation){n(v,P.sibling),P=a(P,A.children||[]),P.return=v,v=P;break e}else{n(v,P);break}else e(v,P);P=P.sibling}P=Dk(A,v.mode,_),P.return=v,v=P}return r(v);case Gu:return E=A._init,b(v,P,E(A._payload),_)}if(pv(A))return m(v,P,A,_);if(k0(A))return g(v,P,A,_);q1(v,A)}return typeof A=="string"&&A!==""||typeof A=="number"?(A=""+A,P!==null&&P.tag===6?(n(v,P.sibling),P=a(P,A),P.return=v,v=P):(n(v,P),P=xk(A,v.mode,_),P.return=v,v=P),r(v)):n(v,P)}return b}var rg=KW(!0),YW=KW(!1),hA=Nf(null),dA=null,jd=null,VT=null;function WT(){VT=jd=dA=null}function HT(t){var e=hA.current;tn(hA),t._currentValue=e}function XI(t,e,n){for(;t!==null;){var i=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,i!==null&&(i.childLanes|=e)):i!==null&&(i.childLanes&e)!==e&&(i.childLanes|=e),t===n)break;t=t.return}}function Yd(t,e){dA=t,VT=jd=null,t=t.dependencies,t!==null&&t.firstContext!==null&&(t.lanes&e&&(Ua=!0),t.firstContext=null)}function yo(t){var e=t._currentValue;if(VT!==t)if(t={context:t,memoizedValue:e,next:null},jd===null){if(dA===null)throw Error(Ge(308));jd=t,dA.dependencies={lanes:0,firstContext:t}}else jd=jd.next=t;return e}var $p=null;function GT(t){$p===null?$p=[t]:$p.push(t)}function JW(t,e,n,i){var a=e.interleaved;return a===null?(n.next=n,GT(e)):(n.next=a.next,a.next=n),e.interleaved=n,iu(t,i)}function iu(t,e){t.lanes|=e;var n=t.alternate;for(n!==null&&(n.lanes|=e),n=t,t=t.return;t!==null;)t.childLanes|=e,n=t.alternate,n!==null&&(n.childLanes|=e),n=t,t=t.return;return n.tag===3?n.stateNode:null}var Ku=!1;function KT(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function QW(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,effects:t.effects})}function Dc(t,e){return{eventTime:t,lane:e,tag:0,payload:null,callback:null,next:null}}function vf(t,e,n){var i=t.updateQueue;if(i===null)return null;if(i=i.shared,or&2){var a=i.pending;return a===null?e.next=e:(e.next=a.next,a.next=e),i.pending=e,iu(t,n)}return a=i.interleaved,a===null?(e.next=e,GT(i)):(e.next=a.next,a.next=e),i.interleaved=e,iu(t,n)}function o$(t,e,n){if(e=e.updateQueue,e!==null&&(e=e.shared,(n&4194240)!==0)){var i=e.lanes;i&=t.pendingLanes,n|=i,e.lanes=n,TT(t,n)}}function o3(t,e){var n=t.updateQueue,i=t.alternate;if(i!==null&&(i=i.updateQueue,n===i)){var a=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var r={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?a=o=r:o=o.next=r,n=n.next}while(n!==null);o===null?a=o=e:o=o.next=e}else a=o=e;n={baseState:i.baseState,firstBaseUpdate:a,lastBaseUpdate:o,shared:i.shared,effects:i.effects},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}function mA(t,e,n,i){var a=t.updateQueue;Ku=!1;var o=a.firstBaseUpdate,r=a.lastBaseUpdate,s=a.shared.pending;if(s!==null){a.shared.pending=null;var c=s,l=c.next;c.next=null,r===null?o=l:r.next=l,r=c;var u=t.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==r&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(o!==null){var f=a.baseState;r=0,u=l=c=null,s=o;do{var h=s.lane,d=s.eventTime;if((i&h)===h){u!==null&&(u=u.next={eventTime:d,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var m=t,g=s;switch(h=e,d=n,g.tag){case 1:if(m=g.payload,typeof m=="function"){f=m.call(d,f,h);break e}f=m;break e;case 3:m.flags=m.flags&-65537|128;case 0:if(m=g.payload,h=typeof m=="function"?m.call(d,f,h):m,h==null)break e;f=dn({},f,h);break e;case 2:Ku=!0}}s.callback!==null&&s.lane!==0&&(t.flags|=64,h=a.effects,h===null?a.effects=[s]:h.push(s))}else d={eventTime:d,lane:h,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=d,c=f):u=u.next=d,r|=h;if(s=s.next,s===null){if(s=a.shared.pending,s===null)break;h=s,s=h.next,h.next=null,a.lastBaseUpdate=h,a.shared.pending=null}}while(!0);if(u===null&&(c=f),a.baseState=c,a.firstBaseUpdate=l,a.lastBaseUpdate=u,e=a.shared.interleaved,e!==null){a=e;do r|=a.lane,a=a.next;while(a!==e)}else o===null&&(a.shared.lanes=0);th|=r,t.lanes=r,t.memoizedState=f}}function l3(t,e,n){if(t=e.effects,e.effects=null,t!==null)for(e=0;en?n:4,t(!0);var i=wk.transition;wk.transition={};try{t(!1),e()}finally{_r=n,wk.transition=i}}function dH(){return go().memoizedState}function Mfe(t,e,n){var i=bf(t);if(n={lane:i,action:n,hasEagerState:!1,eagerState:null,next:null},mH(t))yH(e,n);else if(n=JW(t,e,n,i),n!==null){var a=da();Xo(n,t,i,a),gH(n,e,i)}}function Rfe(t,e,n){var i=bf(t),a={lane:i,action:n,hasEagerState:!1,eagerState:null,next:null};if(mH(t))yH(e,a);else{var o=t.alternate;if(t.lanes===0&&(o===null||o.lanes===0)&&(o=e.lastRenderedReducer,o!==null))try{var r=e.lastRenderedState,s=o(r,n);if(a.hasEagerState=!0,a.eagerState=s,tl(s,r)){var c=e.interleaved;c===null?(a.next=a,GT(e)):(a.next=c.next,c.next=a),e.interleaved=a;return}}catch{}finally{}n=JW(t,e,a,i),n!==null&&(a=da(),Xo(n,t,i,a),gH(n,e,i))}}function mH(t){var e=t.alternate;return t===hn||e!==null&&e===hn}function yH(t,e){Nv=gA=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function gH(t,e,n){if(n&4194240){var i=e.lanes;i&=t.pendingLanes,n|=i,e.lanes=n,TT(t,n)}}var vA={readContext:yo,useCallback:Ni,useContext:Ni,useEffect:Ni,useImperativeHandle:Ni,useInsertionEffect:Ni,useLayoutEffect:Ni,useMemo:Ni,useReducer:Ni,useRef:Ni,useState:Ni,useDebugValue:Ni,useDeferredValue:Ni,useTransition:Ni,useMutableSource:Ni,useSyncExternalStore:Ni,useId:Ni,unstable_isNewReconciler:!1},Nfe={readContext:yo,useCallback:function(t,e){return Sl().memoizedState=[t,e===void 0?null:e],t},useContext:yo,useEffect:u3,useImperativeHandle:function(t,e,n){return n=n!=null?n.concat([t]):null,c$(4194308,4,cH.bind(null,e,t),n)},useLayoutEffect:function(t,e){return c$(4194308,4,t,e)},useInsertionEffect:function(t,e){return c$(4,2,t,e)},useMemo:function(t,e){var n=Sl();return e=e===void 0?null:e,t=t(),n.memoizedState=[t,e],t},useReducer:function(t,e,n){var i=Sl();return e=n!==void 0?n(e):e,i.memoizedState=i.baseState=e,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:e},i.queue=t,t=t.dispatch=Mfe.bind(null,hn,t),[i.memoizedState,t]},useRef:function(t){var e=Sl();return t={current:t},e.memoizedState=t},useState:c3,useDebugValue:rj,useDeferredValue:function(t){return Sl().memoizedState=t},useTransition:function(){var t=c3(!1),e=t[0];return t=jfe.bind(null,t[1]),Sl().memoizedState=t,[e,t]},useMutableSource:function(){},useSyncExternalStore:function(t,e,n){var i=hn,a=Sl();if(ln){if(n===void 0)throw Error(Ge(407));n=n()}else{if(n=e(),hi===null)throw Error(Ge(349));eh&30||tH(i,e,n)}a.memoizedState=n;var o={value:n,getSnapshot:e};return a.queue=o,u3(nH.bind(null,i,o,t),[t]),i.flags|=2048,$P(9,rH.bind(null,i,o,n,e),void 0,null),n},useId:function(){var t=Sl(),e=hi.identifierPrefix;if(ln){var n=xc,i=_c;n=(i&~(1<<32-Zo(i)-1)).toString(32)+n,e=":"+e+"R"+n,n=bP++,0<\/script>",t=t.removeChild(t.firstChild)):typeof i.is=="string"?t=r.createElement(n,{is:i.is}):(t=r.createElement(n),n==="select"&&(r=t,i.multiple?r.multiple=!0:i.size&&(r.size=i.size))):t=r.createElementNS(t,n),t[xl]=e,t[gP]=i,DH(t,e,!1,!1),e.stateNode=t;e:{switch(r=MI(n,i),n){case"dialog":Jr("cancel",t),Jr("close",t),a=i;break;case"iframe":case"object":case"embed":Jr("load",t),a=i;break;case"video":case"audio":for(a=0;aag&&(e.flags|=128,i=!0,j0(o,!1),e.lanes=4194304)}else{if(!i)if(t=yA(r),t!==null){if(e.flags|=128,i=!0,n=t.updateQueue,n!==null&&(e.updateQueue=n,e.flags|=4),j0(o,!0),o.tail===null&&o.tailMode==="hidden"&&!r.alternate&&!ln)return Li(e),null}else 2*kn()-o.renderingStartTime>ag&&n!==1073741824&&(e.flags|=128,i=!0,j0(o,!1),e.lanes=4194304);o.isBackwards?(r.sibling=e.child,e.child=r):(n=o.last,n!==null?n.sibling=r:e.child=r,o.last=r)}return o.tail!==null?(e=o.tail,o.rendering=e,o.tail=e.sibling,o.renderingStartTime=kn(),e.sibling=null,n=pn.current,Vr(pn,i?n&1|2:n&1),e):(Li(e),null);case 22:case 23:return lj(),i=e.memoizedState!==null,t!==null&&t.memoizedState!==null!==i&&(e.flags|=8192),i&&e.mode&1?ss&1073741824&&(Li(e),e.subtreeFlags&6&&(e.flags|=8192)):Li(e),null;case 24:return null;case 25:return null}throw Error(Ge(156,e.tag))}function Wfe(t,e){switch(UT(e),e.tag){case 1:return Ha(e.type)&&cA(),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return ng(),tn(Wa),tn(Ki),QT(),t=e.flags,t&65536&&!(t&128)?(e.flags=t&-65537|128,e):null;case 5:return JT(e),null;case 13:if(tn(pn),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(Ge(340));tg()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return tn(pn),null;case 4:return ng(),null;case 10:return HT(e.type._context),null;case 22:case 23:return lj(),null;case 24:return null;default:return null}}var U1=!1,Bi=!1,Hfe=typeof WeakSet=="function"?WeakSet:Set,ft=null;function Md(t,e){var n=t.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(i){wn(t,e,i)}else n.current=null}function l2(t,e,n){try{n()}catch(i){wn(t,e,i)}}var w3=!1;function Gfe(t,e){if(WI=aA,t=jW(),qT(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else e:{n=(n=t.ownerDocument)&&n.defaultView||window;var i=n.getSelection&&n.getSelection();if(i&&i.rangeCount!==0){n=i.anchorNode;var a=i.anchorOffset,o=i.focusNode;i=i.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var r=0,s=-1,c=-1,l=0,u=0,f=t,h=null;t:for(;;){for(var d;f!==n||a!==0&&f.nodeType!==3||(s=r+a),f!==o||i!==0&&f.nodeType!==3||(c=r+i),f.nodeType===3&&(r+=f.nodeValue.length),(d=f.firstChild)!==null;)h=f,f=d;for(;;){if(f===t)break t;if(h===n&&++l===a&&(s=r),h===o&&++u===i&&(c=r),(d=f.nextSibling)!==null)break;f=h,h=f.parentNode}f=d}n=s===-1||c===-1?null:{start:s,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(HI={focusedElem:t,selectionRange:n},aA=!1,ft=e;ft!==null;)if(e=ft,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,ft=t;else for(;ft!==null;){e=ft;try{var m=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var g=m.memoizedProps,b=m.memoizedState,v=e.stateNode,P=v.getSnapshotBeforeUpdate(e.elementType===e.type?g:Fo(e.type,g),b);v.__reactInternalSnapshotBeforeUpdate=P}break;case 3:var A=e.stateNode.containerInfo;A.nodeType===1?A.textContent="":A.nodeType===9&&A.documentElement&&A.removeChild(A.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Ge(163))}}catch(_){wn(e,e.return,_)}if(t=e.sibling,t!==null){t.return=e.return,ft=t;break}ft=e.return}return m=w3,w3=!1,m}function Lv(t,e,n){var i=e.updateQueue;if(i=i!==null?i.lastEffect:null,i!==null){var a=i=i.next;do{if((a.tag&t)===t){var o=a.destroy;a.destroy=void 0,o!==void 0&&l2(e,n,o)}a=a.next}while(a!==i)}}function VS(t,e){if(e=e.updateQueue,e=e!==null?e.lastEffect:null,e!==null){var n=e=e.next;do{if((n.tag&t)===t){var i=n.create;n.destroy=i()}n=n.next}while(n!==e)}}function c2(t){var e=t.ref;if(e!==null){var n=t.stateNode;switch(t.tag){case 5:t=n;break;default:t=n}typeof e=="function"?e(t):e.current=t}}function EH(t){var e=t.alternate;e!==null&&(t.alternate=null,EH(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&(delete e[xl],delete e[gP],delete e[YI],delete e[Ofe],delete e[Efe])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function IH(t){return t.tag===5||t.tag===3||t.tag===4}function $3(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||IH(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function u2(t,e,n){var i=t.tag;if(i===5||i===6)t=t.stateNode,e?n.nodeType===8?n.parentNode.insertBefore(t,e):n.insertBefore(t,e):(n.nodeType===8?(e=n.parentNode,e.insertBefore(t,n)):(e=n,e.appendChild(t)),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=lA));else if(i!==4&&(t=t.child,t!==null))for(u2(t,e,n),t=t.sibling;t!==null;)u2(t,e,n),t=t.sibling}function f2(t,e,n){var i=t.tag;if(i===5||i===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(i!==4&&(t=t.child,t!==null))for(f2(t,e,n),t=t.sibling;t!==null;)f2(t,e,n),t=t.sibling}var bi=null,qo=!1;function Tu(t,e,n){for(n=n.child;n!==null;)CH(t,e,n),n=n.sibling}function CH(t,e,n){if(ql&&typeof ql.onCommitFiberUnmount=="function")try{ql.onCommitFiberUnmount(RS,n)}catch{}switch(n.tag){case 5:Bi||Md(n,e);case 6:var i=bi,a=qo;bi=null,Tu(t,e,n),bi=i,qo=a,bi!==null&&(qo?(t=bi,n=n.stateNode,t.nodeType===8?t.parentNode.removeChild(n):t.removeChild(n)):bi.removeChild(n.stateNode));break;case 18:bi!==null&&(qo?(t=bi,n=n.stateNode,t.nodeType===8?vk(t.parentNode,n):t.nodeType===1&&vk(t,n),pP(t)):vk(bi,n.stateNode));break;case 4:i=bi,a=qo,bi=n.stateNode.containerInfo,qo=!0,Tu(t,e,n),bi=i,qo=a;break;case 0:case 11:case 14:case 15:if(!Bi&&(i=n.updateQueue,i!==null&&(i=i.lastEffect,i!==null))){a=i=i.next;do{var o=a,r=o.destroy;o=o.tag,r!==void 0&&(o&2||o&4)&&l2(n,e,r),a=a.next}while(a!==i)}Tu(t,e,n);break;case 1:if(!Bi&&(Md(n,e),i=n.stateNode,typeof i.componentWillUnmount=="function"))try{i.props=n.memoizedProps,i.state=n.memoizedState,i.componentWillUnmount()}catch(s){wn(n,e,s)}Tu(t,e,n);break;case 21:Tu(t,e,n);break;case 22:n.mode&1?(Bi=(i=Bi)||n.memoizedState!==null,Tu(t,e,n),Bi=i):Tu(t,e,n);break;default:Tu(t,e,n)}}function A3(t){var e=t.updateQueue;if(e!==null){t.updateQueue=null;var n=t.stateNode;n===null&&(n=t.stateNode=new Hfe),e.forEach(function(i){var a=rpe.bind(null,t,i);n.has(i)||(n.add(i),i.then(a,a))})}}function Io(t,e){var n=e.deletions;if(n!==null)for(var i=0;ia&&(a=r),i&=~o}if(i=a,i=kn()-i,i=(120>i?120:480>i?480:1080>i?1080:1920>i?1920:3e3>i?3e3:4320>i?4320:1960*Yfe(i/1960))-i,10t?16:t,sf===null)var i=!1;else{if(t=sf,sf=null,wA=0,or&6)throw Error(Ge(331));var a=or;for(or|=4,ft=t.current;ft!==null;){var o=ft,r=o.child;if(ft.flags&16){var s=o.deletions;if(s!==null){for(var c=0;ckn()-sj?zp(t,0):aj|=n),Ga(t,e)}function qH(t,e){e===0&&(t.mode&1?(e=T1,T1<<=1,!(T1&130023424)&&(T1=4194304)):e=1);var n=da();t=iu(t,e),t!==null&&(rb(t,e,n),Ga(t,n))}function tpe(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),qH(t,n)}function rpe(t,e){var n=0;switch(t.tag){case 13:var i=t.stateNode,a=t.memoizedState;a!==null&&(n=a.retryLane);break;case 19:i=t.stateNode;break;default:throw Error(Ge(314))}i!==null&&i.delete(e),qH(t,n)}var zH;zH=function(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps||Wa.current)Ua=!0;else{if(!(t.lanes&n)&&!(e.flags&128))return Ua=!1,Bfe(t,e,n);Ua=!!(t.flags&131072)}else Ua=!1,ln&&e.flags&1048576&&WW(e,pA,e.index);switch(e.lanes=0,e.tag){case 2:var i=e.type;u$(t,e),t=e.pendingProps;var a=eg(e,Ki.current);Yd(e,n),a=XT(null,e,i,t,a,n);var o=ej();return e.flags|=1,typeof a=="object"&&a!==null&&typeof a.render=="function"&&a.$$typeof===void 0?(e.tag=1,e.memoizedState=null,e.updateQueue=null,Ha(i)?(o=!0,uA(e)):o=!1,e.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,KT(e),a.updater=BS,e.stateNode=a,a._reactInternals=e,t2(e,i,t,n),e=i2(null,e,i,!0,o,n)):(e.tag=0,ln&&o&&zT(e),ia(null,e,a,n),e=e.child),e;case 16:i=e.elementType;e:{switch(u$(t,e),t=e.pendingProps,a=i._init,i=a(i._payload),e.type=i,a=e.tag=ipe(i),t=Fo(i,t),a){case 0:e=n2(null,e,i,t,n);break e;case 1:e=v3(null,e,i,t,n);break e;case 11:e=y3(null,e,i,t,n);break e;case 14:e=g3(null,e,i,Fo(i.type,t),n);break e}throw Error(Ge(306,i,""))}return e;case 0:return i=e.type,a=e.pendingProps,a=e.elementType===i?a:Fo(i,a),n2(t,e,i,a,n);case 1:return i=e.type,a=e.pendingProps,a=e.elementType===i?a:Fo(i,a),v3(t,e,i,a,n);case 3:e:{if(SH(e),t===null)throw Error(Ge(387));i=e.pendingProps,o=e.memoizedState,a=o.element,QW(t,e),mA(e,i,null,n);var r=e.memoizedState;if(i=r.element,o.isDehydrated)if(o={element:i,isDehydrated:!1,cache:r.cache,pendingSuspenseBoundaries:r.pendingSuspenseBoundaries,transitions:r.transitions},e.updateQueue.baseState=o,e.memoizedState=o,e.flags&256){a=ig(Error(Ge(423)),e),e=P3(t,e,i,n,a);break e}else if(i!==a){a=ig(Error(Ge(424)),e),e=P3(t,e,i,n,a);break e}else for(us=gf(e.stateNode.containerInfo.firstChild),fs=e,ln=!0,Wo=null,n=YW(e,null,i,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(tg(),i===a){e=au(t,e,n);break e}ia(t,e,i,n)}e=e.child}return e;case 5:return ZW(e),t===null&&ZI(e),i=e.type,a=e.pendingProps,o=t!==null?t.memoizedProps:null,r=a.children,GI(i,a)?r=null:o!==null&&GI(i,o)&&(e.flags|=32),AH(t,e),ia(t,e,r,n),e.child;case 6:return t===null&&ZI(e),null;case 13:return _H(t,e,n);case 4:return YT(e,e.stateNode.containerInfo),i=e.pendingProps,t===null?e.child=rg(e,null,i,n):ia(t,e,i,n),e.child;case 11:return i=e.type,a=e.pendingProps,a=e.elementType===i?a:Fo(i,a),y3(t,e,i,a,n);case 7:return ia(t,e,e.pendingProps,n),e.child;case 8:return ia(t,e,e.pendingProps.children,n),e.child;case 12:return ia(t,e,e.pendingProps.children,n),e.child;case 10:e:{if(i=e.type._context,a=e.pendingProps,o=e.memoizedProps,r=a.value,Vr(hA,i._currentValue),i._currentValue=r,o!==null)if(tl(o.value,r)){if(o.children===a.children&&!Wa.current){e=au(t,e,n);break e}}else for(o=e.child,o!==null&&(o.return=e);o!==null;){var s=o.dependencies;if(s!==null){r=o.child;for(var c=s.firstContext;c!==null;){if(c.context===i){if(o.tag===1){c=Dc(-1,n&-n),c.tag=2;var l=o.updateQueue;if(l!==null){l=l.shared;var u=l.pending;u===null?c.next=c:(c.next=u.next,u.next=c),l.pending=c}}o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),XI(o.return,n,e),s.lanes|=n;break}c=c.next}}else if(o.tag===10)r=o.type===e.type?null:o.child;else if(o.tag===18){if(r=o.return,r===null)throw Error(Ge(341));r.lanes|=n,s=r.alternate,s!==null&&(s.lanes|=n),XI(r,n,e),r=o.sibling}else r=o.child;if(r!==null)r.return=o;else for(r=o;r!==null;){if(r===e){r=null;break}if(o=r.sibling,o!==null){o.return=r.return,r=o;break}r=r.return}o=r}ia(t,e,a.children,n),e=e.child}return e;case 9:return a=e.type,i=e.pendingProps.children,Yd(e,n),a=yo(a),i=i(a),e.flags|=1,ia(t,e,i,n),e.child;case 14:return i=e.type,a=Fo(i,e.pendingProps),a=Fo(i.type,a),g3(t,e,i,a,n);case 15:return wH(t,e,e.type,e.pendingProps,n);case 17:return i=e.type,a=e.pendingProps,a=e.elementType===i?a:Fo(i,a),u$(t,e),e.tag=1,Ha(i)?(t=!0,uA(e)):t=!1,Yd(e,n),vH(e,i,a),t2(e,i,a,n),i2(null,e,i,!0,t,n);case 19:return xH(t,e,n);case 22:return $H(t,e,n)}throw Error(Ge(156,e.tag))};function UH(t,e){return mW(t,e)}function npe(t,e,n,i){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Qs(t,e,n,i){return new npe(t,e,n,i)}function uj(t){return t=t.prototype,!(!t||!t.isReactComponent)}function ipe(t){if(typeof t=="function")return uj(t)?1:0;if(t!=null){if(t=t.$$typeof,t===OT)return 11;if(t===ET)return 14}return 2}function wf(t,e){var n=t.alternate;return n===null?(n=Qs(t.tag,e,t.key,t.mode),n.elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=t.flags&14680064,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n}function h$(t,e,n,i,a,o){var r=2;if(i=t,typeof t=="function")uj(t)&&(r=1);else if(typeof t=="string")r=5;else e:switch(t){case xd:return Up(n.children,a,o,e);case kT:r=8,a|=8;break;case _I:return t=Qs(12,n,e,a|2),t.elementType=_I,t.lanes=o,t;case xI:return t=Qs(13,n,e,a),t.elementType=xI,t.lanes=o,t;case DI:return t=Qs(19,n,e,a),t.elementType=DI,t.lanes=o,t;case Z8:return HS(n,a,o,e);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case J8:r=10;break e;case Q8:r=9;break e;case OT:r=11;break e;case ET:r=14;break e;case Gu:r=16,i=null;break e}throw Error(Ge(130,t==null?t:typeof t,""))}return e=Qs(r,n,e,a),e.elementType=t,e.type=i,e.lanes=o,e}function Up(t,e,n,i){return t=Qs(7,t,i,e),t.lanes=n,t}function HS(t,e,n,i){return t=Qs(22,t,i,e),t.elementType=Z8,t.lanes=n,t.stateNode={isHidden:!1},t}function xk(t,e,n){return t=Qs(6,t,null,e),t.lanes=n,t}function Dk(t,e,n){return e=Qs(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function ape(t,e,n,i,a){this.tag=e,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ok(0),this.expirationTimes=ok(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ok(0),this.identifierPrefix=i,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function fj(t,e,n,i,a,o,r,s,c){return t=new ape(t,e,n,s,c),e===1?(e=1,o===!0&&(e|=8)):e=0,o=Qs(3,null,null,e),t.current=o,o.stateNode=t,o.memoizedState={element:i,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},KT(o),t}function spe(t,e,n){var i=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(HH)}catch(t){console.error(t)}}HH(),H8.exports=Ps;var mj=H8.exports;const fpe=jS(mj),ppe=T8({__proto__:null,default:fpe},[mj]);var I3=mj;AI.createRoot=I3.createRoot,AI.hydrateRoot=I3.hydrateRoot;/** + * @remix-run/router v1.21.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function on(){return on=Object.assign?Object.assign.bind():function(t){for(var e=1;e"u")throw new Error(e)}function nh(t,e){if(!t){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function dpe(){return Math.random().toString(36).substr(2,8)}function T3(t,e){return{usr:t.state,key:t.key,idx:e}}function SP(t,e,n,i){return n===void 0&&(n=null),on({pathname:typeof t=="string"?t:t.pathname,search:"",hash:""},typeof e=="string"?pu(e):e,{state:n,key:e&&e.key||i||dpe()})}function ih(t){let{pathname:e="/",search:n="",hash:i=""}=t;return n&&n!=="?"&&(e+=n.charAt(0)==="?"?n:"?"+n),i&&i!=="#"&&(e+=i.charAt(0)==="#"?i:"#"+i),e}function pu(t){let e={};if(t){let n=t.indexOf("#");n>=0&&(e.hash=t.substr(n),t=t.substr(0,n));let i=t.indexOf("?");i>=0&&(e.search=t.substr(i),t=t.substr(0,i)),t&&(e.pathname=t)}return e}function mpe(t,e,n,i){i===void 0&&(i={});let{window:a=document.defaultView,v5Compat:o=!1}=i,r=a.history,s=zn.Pop,c=null,l=u();l==null&&(l=0,r.replaceState(on({},r.state,{idx:l}),""));function u(){return(r.state||{idx:null}).idx}function f(){s=zn.Pop;let b=u(),v=b==null?null:b-l;l=b,c&&c({action:s,location:g.location,delta:v})}function h(b,v){s=zn.Push;let P=SP(g.location,b,v);n&&n(P,b),l=u()+1;let A=T3(P,l),_=g.createHref(P);try{r.pushState(A,"",_)}catch(x){if(x instanceof DOMException&&x.name==="DataCloneError")throw x;a.location.assign(_)}o&&c&&c({action:s,location:g.location,delta:1})}function d(b,v){s=zn.Replace;let P=SP(g.location,b,v);n&&n(P,b),l=u();let A=T3(P,l),_=g.createHref(P);r.replaceState(A,"",_),o&&c&&c({action:s,location:g.location,delta:0})}function m(b){let v=a.location.origin!=="null"?a.location.origin:a.location.href,P=typeof b=="string"?b:ih(b);return P=P.replace(/ $/,"%20"),Zt(v,"No window.location.(origin|href) available to create URL for href: "+P),new URL(P,v)}let g={get action(){return s},get location(){return t(a,r)},listen(b){if(c)throw new Error("A history only accepts one active listener");return a.addEventListener(C3,f),c=b,()=>{a.removeEventListener(C3,f),c=null}},createHref(b){return e(a,b)},createURL:m,encodeLocation(b){let v=m(b);return{pathname:v.pathname,search:v.search,hash:v.hash}},push:h,replace:d,go(b){return r.go(b)}};return g}var Er;(function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"})(Er||(Er={}));const ype=new Set(["lazy","caseSensitive","path","id","index","children"]);function gpe(t){return t.index===!0}function SA(t,e,n,i){return n===void 0&&(n=[]),i===void 0&&(i={}),t.map((a,o)=>{let r=[...n,String(o)],s=typeof a.id=="string"?a.id:r.join("-");if(Zt(a.index!==!0||!a.children,"Cannot specify children on an index route"),Zt(!i[s],'Found a route id collision on id "'+s+`". Route id's must be globally unique within Data Router usages`),gpe(a)){let c=on({},a,e(a),{id:s});return i[s]=c,c}else{let c=on({},a,e(a),{id:s,children:void 0});return i[s]=c,a.children&&(c.children=SA(a.children,e,r,i)),c}})}function hp(t,e,n){return n===void 0&&(n="/"),d$(t,e,n,!1)}function d$(t,e,n,i){let a=typeof e=="string"?pu(e):e,o=kg(a.pathname||"/",n);if(o==null)return null;let r=GH(t);Ppe(r);let s=null;for(let c=0;s==null&&c{let c={relativePath:s===void 0?o.path||"":s,caseSensitive:o.caseSensitive===!0,childrenIndex:r,route:o};c.relativePath.startsWith("/")&&(Zt(c.relativePath.startsWith(i),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+i+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),c.relativePath=c.relativePath.slice(i.length));let l=kc([i,c.relativePath]),u=n.concat(c);o.children&&o.children.length>0&&(Zt(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+l+'".')),GH(o.children,e,u,l)),!(o.path==null&&!o.index)&&e.push({path:l,score:xpe(l,o.index),routesMeta:u})};return t.forEach((o,r)=>{var s;if(o.path===""||!((s=o.path)!=null&&s.includes("?")))a(o,r);else for(let c of KH(o.path))a(o,r,c)}),e}function KH(t){let e=t.split("/");if(e.length===0)return[];let[n,...i]=e,a=n.endsWith("?"),o=n.replace(/\?$/,"");if(i.length===0)return a?[o,""]:[o];let r=KH(i.join("/")),s=[];return s.push(...r.map(c=>c===""?o:[o,c].join("/"))),a&&s.push(...r),s.map(c=>t.startsWith("/")&&c===""?"/":c)}function Ppe(t){t.sort((e,n)=>e.score!==n.score?n.score-e.score:Dpe(e.routesMeta.map(i=>i.childrenIndex),n.routesMeta.map(i=>i.childrenIndex)))}const bpe=/^:[\w-]+$/,wpe=3,$pe=2,Ape=1,Spe=10,_pe=-2,j3=t=>t==="*";function xpe(t,e){let n=t.split("/"),i=n.length;return n.some(j3)&&(i+=_pe),e&&(i+=$pe),n.filter(a=>!j3(a)).reduce((a,o)=>a+(bpe.test(o)?wpe:o===""?Ape:Spe),i)}function Dpe(t,e){return t.length===e.length&&t.slice(0,-1).every((i,a)=>i===e[a])?t[t.length-1]-e[e.length-1]:0}function kpe(t,e,n){n===void 0&&(n=!1);let{routesMeta:i}=t,a={},o="/",r=[];for(let s=0;s{let{paramName:h,isOptional:d}=u;if(h==="*"){let g=s[f]||"";r=o.slice(0,o.length-g.length).replace(/(.)\/+$/,"$1")}const m=s[f];return d&&!m?l[h]=void 0:l[h]=(m||"").replace(/%2F/g,"/"),l},{}),pathname:o,pathnameBase:r,pattern:t}}function Ope(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!0),nh(t==="*"||!t.endsWith("*")||t.endsWith("/*"),'Route path "'+t+'" will be treated as if it were '+('"'+t.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+t.replace(/\*$/,"/*")+'".'));let i=[],a="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(r,s,c)=>(i.push({paramName:s,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)"));return t.endsWith("*")?(i.push({paramName:"*"}),a+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":t!==""&&t!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,e?void 0:"i"),i]}function Epe(t){try{return t.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(e){return nh(!1,'The URL path "'+t+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+e+").")),t}}function kg(t,e){if(e==="/")return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let n=e.endsWith("/")?e.length-1:e.length,i=t.charAt(n);return i&&i!=="/"?null:t.slice(n)||"/"}function Ipe(t,e){e===void 0&&(e="/");let{pathname:n,search:i="",hash:a=""}=typeof t=="string"?pu(t):t;return{pathname:n?n.startsWith("/")?n:Cpe(n,e):e,search:jpe(i),hash:Mpe(a)}}function Cpe(t,e){let n=e.replace(/\/+$/,"").split("/");return t.split("/").forEach(a=>{a===".."?n.length>1&&n.pop():a!=="."&&n.push(a)}),n.length>1?n.join("/"):"/"}function kk(t,e,n,i){return"Cannot include a '"+t+"' character in a manually specified "+("`to."+e+"` field ["+JSON.stringify(i)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function YH(t){return t.filter((e,n)=>n===0||e.route.path&&e.route.path.length>0)}function QS(t,e){let n=YH(t);return e?n.map((i,a)=>a===n.length-1?i.pathname:i.pathnameBase):n.map(i=>i.pathnameBase)}function ZS(t,e,n,i){i===void 0&&(i=!1);let a;typeof t=="string"?a=pu(t):(a=on({},t),Zt(!a.pathname||!a.pathname.includes("?"),kk("?","pathname","search",a)),Zt(!a.pathname||!a.pathname.includes("#"),kk("#","pathname","hash",a)),Zt(!a.search||!a.search.includes("#"),kk("#","search","hash",a)));let o=t===""||a.pathname==="",r=o?"/":a.pathname,s;if(r==null)s=n;else{let f=e.length-1;if(!i&&r.startsWith("..")){let h=r.split("/");for(;h[0]==="..";)h.shift(),f-=1;a.pathname=h.join("/")}s=f>=0?e[f]:"/"}let c=Ipe(a,s),l=r&&r!=="/"&&r.endsWith("/"),u=(o||r===".")&&n.endsWith("/");return!c.pathname.endsWith("/")&&(l||u)&&(c.pathname+="/"),c}const kc=t=>t.join("/").replace(/\/\/+/g,"/"),Tpe=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),jpe=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,Mpe=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t;class _A{constructor(e,n,i,a){a===void 0&&(a=!1),this.status=e,this.statusText=n||"",this.internal=a,i instanceof Error?(this.data=i.toString(),this.error=i):this.data=i}}function XS(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}const JH=["post","put","patch","delete"],Rpe=new Set(JH),Npe=["get",...JH],Lpe=new Set(Npe),Fpe=new Set([301,302,303,307,308]),qpe=new Set([307,308]),Ok={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},zpe={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},R0={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},yj=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Upe=t=>({hasErrorBoundary:!!t.hasErrorBoundary}),QH="remix-router-transitions";function Bpe(t){const e=t.window?t.window:typeof window<"u"?window:void 0,n=typeof e<"u"&&typeof e.document<"u"&&typeof e.document.createElement<"u",i=!n;Zt(t.routes.length>0,"You must provide a non-empty routes array to createRouter");let a;if(t.mapRouteProperties)a=t.mapRouteProperties;else if(t.detectErrorBoundary){let N=t.detectErrorBoundary;a=de=>({hasErrorBoundary:N(de)})}else a=Upe;let o={},r=SA(t.routes,a,void 0,o),s,c=t.basename||"/",l=t.dataStrategy||Gpe,u=t.patchRoutesOnNavigation,f=on({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},t.future),h=null,d=new Set,m=null,g=null,b=null,v=t.hydrationData!=null,P=hp(r,t.history.location,c),A=null;if(P==null&&!u){let N=Ma(404,{pathname:t.history.location.pathname}),{matches:de,route:ke}=H3(r);P=de,A={[ke.id]:N}}P&&!t.hydrationData&&zt(P,r,t.history.location.pathname).active&&(P=null);let _;if(P)if(P.some(N=>N.route.lazy))_=!1;else if(!P.some(N=>N.route.loader))_=!0;else if(f.v7_partialHydration){let N=t.hydrationData?t.hydrationData.loaderData:null,de=t.hydrationData?t.hydrationData.errors:null;if(de){let ke=P.findIndex(qe=>de[qe.route.id]!==void 0);_=P.slice(0,ke+1).every(qe=>!g2(qe.route,N,de))}else _=P.every(ke=>!g2(ke.route,N,de))}else _=t.hydrationData!=null;else if(_=!1,P=[],f.v7_partialHydration){let N=zt(null,r,t.history.location.pathname);N.active&&N.matches&&(P=N.matches)}let x,E={historyAction:t.history.action,location:t.history.location,matches:P,initialized:_,navigation:Ok,restoreScrollPosition:t.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:t.hydrationData&&t.hydrationData.loaderData||{},actionData:t.hydrationData&&t.hydrationData.actionData||null,errors:t.hydrationData&&t.hydrationData.errors||A,fetchers:new Map,blockers:new Map},j=zn.Pop,F=!1,I,L=!1,V=new Map,q=null,S=!1,D=!1,R=[],C=new Set,H=new Map,X=0,ae=-1,z=new Map,M=new Set,U=new Map,W=new Map,T=new Set,G=new Map,oe=new Map,ve;function ie(){if(h=t.history.listen(N=>{let{action:de,location:ke,delta:qe}=N;if(ve){ve(),ve=void 0;return}nh(oe.size===0||qe!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let nt=ge({currentLocation:E.location,nextLocation:ke,historyAction:de});if(nt&&qe!=null){let Ie=new Promise(St=>{ve=St});t.history.go(qe*-1),se(nt,{state:"blocked",location:ke,proceed(){se(nt,{state:"proceeding",proceed:void 0,reset:void 0,location:ke}),Ie.then(()=>t.history.go(qe))},reset(){let St=new Map(E.blockers);St.set(nt,R0),De({blockers:St})}});return}return st(de,ke)}),n){ohe(e,V);let N=()=>lhe(e,V);e.addEventListener("pagehide",N),q=()=>e.removeEventListener("pagehide",N)}return E.initialized||st(zn.Pop,E.location,{initialHydration:!0}),x}function Ae(){h&&h(),q&&q(),d.clear(),I&&I.abort(),E.fetchers.forEach((N,de)=>te(de)),E.blockers.forEach((N,de)=>le(de))}function pe(N){return d.add(N),()=>d.delete(N)}function De(N,de){de===void 0&&(de={}),E=on({},E,N);let ke=[],qe=[];f.v7_fetcherPersist&&E.fetchers.forEach((nt,Ie)=>{nt.state==="idle"&&(T.has(Ie)?qe.push(Ie):ke.push(Ie))}),[...d].forEach(nt=>nt(E,{deletedFetchers:qe,viewTransitionOpts:de.viewTransitionOpts,flushSync:de.flushSync===!0})),f.v7_fetcherPersist&&(ke.forEach(nt=>E.fetchers.delete(nt)),qe.forEach(nt=>te(nt)))}function We(N,de,ke){var qe,nt;let{flushSync:Ie}=ke===void 0?{}:ke,St=E.actionData!=null&&E.navigation.formMethod!=null&&zo(E.navigation.formMethod)&&E.navigation.state==="loading"&&((qe=N.state)==null?void 0:qe._isRedirect)!==!0,ot;de.actionData?Object.keys(de.actionData).length>0?ot=de.actionData:ot=null:St?ot=E.actionData:ot=null;let Qe=de.loaderData?V3(E.loaderData,de.loaderData,de.matches||[],de.errors):E.loaderData,Ze=E.blockers;Ze.size>0&&(Ze=new Map(Ze),Ze.forEach((It,Ke)=>Ze.set(Ke,R0)));let vt=F===!0||E.navigation.formMethod!=null&&zo(E.navigation.formMethod)&&((nt=N.state)==null?void 0:nt._isRedirect)!==!0;s&&(r=s,s=void 0),S||j===zn.Pop||(j===zn.Push?t.history.push(N,N.state):j===zn.Replace&&t.history.replace(N,N.state));let jt;if(j===zn.Pop){let It=V.get(E.location.pathname);It&&It.has(N.pathname)?jt={currentLocation:E.location,nextLocation:N}:V.has(N.pathname)&&(jt={currentLocation:N,nextLocation:E.location})}else if(L){let It=V.get(E.location.pathname);It?It.add(N.pathname):(It=new Set([N.pathname]),V.set(E.location.pathname,It)),jt={currentLocation:E.location,nextLocation:N}}De(on({},de,{actionData:ot,loaderData:Qe,historyAction:j,location:N,initialized:!0,navigation:Ok,revalidation:"idle",restoreScrollPosition:ht(N,de.matches||E.matches),preventScrollReset:vt,blockers:Ze}),{viewTransitionOpts:jt,flushSync:Ie===!0}),j=zn.Pop,F=!1,L=!1,S=!1,D=!1,R=[]}async function Ce(N,de){if(typeof N=="number"){t.history.go(N);return}let ke=y2(E.location,E.matches,c,f.v7_prependBasename,N,f.v7_relativeSplatPath,de==null?void 0:de.fromRouteId,de==null?void 0:de.relative),{path:qe,submission:nt,error:Ie}=R3(f.v7_normalizeFormMethod,!1,ke,de),St=E.location,ot=SP(E.location,qe,de&&de.state);ot=on({},ot,t.history.encodeLocation(ot));let Qe=de&&de.replace!=null?de.replace:void 0,Ze=zn.Push;Qe===!0?Ze=zn.Replace:Qe===!1||nt!=null&&zo(nt.formMethod)&&nt.formAction===E.location.pathname+E.location.search&&(Ze=zn.Replace);let vt=de&&"preventScrollReset"in de?de.preventScrollReset===!0:void 0,jt=(de&&de.flushSync)===!0,It=ge({currentLocation:St,nextLocation:ot,historyAction:Ze});if(It){se(It,{state:"blocked",location:ot,proceed(){se(It,{state:"proceeding",proceed:void 0,reset:void 0,location:ot}),Ce(N,de)},reset(){let Ke=new Map(E.blockers);Ke.set(It,R0),De({blockers:Ke})}});return}return await st(Ze,ot,{submission:nt,pendingError:Ie,preventScrollReset:vt,replace:de&&de.replace,enableViewTransition:de&&de.viewTransition,flushSync:jt})}function _e(){if(cr(),De({revalidation:"loading"}),E.navigation.state!=="submitting"){if(E.navigation.state==="idle"){st(E.historyAction,E.location,{startUninterruptedRevalidation:!0});return}st(j||E.historyAction,E.navigation.location,{overrideNavigation:E.navigation,enableViewTransition:L===!0})}}async function st(N,de,ke){I&&I.abort(),I=null,j=N,S=(ke&&ke.startUninterruptedRevalidation)===!0,gt(E.location,E.matches),F=(ke&&ke.preventScrollReset)===!0,L=(ke&&ke.enableViewTransition)===!0;let qe=s||r,nt=ke&&ke.overrideNavigation,Ie=hp(qe,de,c),St=(ke&&ke.flushSync)===!0,ot=zt(Ie,qe,de.pathname);if(ot.active&&ot.matches&&(Ie=ot.matches),!Ie){let{error:ur,notFoundMatches:Vt,route:Fr}=xe(de.pathname);We(de,{matches:Vt,loaderData:{},errors:{[Fr.id]:ur}},{flushSync:St});return}if(E.initialized&&!D&&Xpe(E.location,de)&&!(ke&&ke.submission&&zo(ke.submission.formMethod))){We(de,{matches:Ie},{flushSync:St});return}I=new AbortController;let Qe=Zh(t.history,de,I.signal,ke&&ke.submission),Ze;if(ke&&ke.pendingError)Ze=[dp(Ie).route.id,{type:Er.error,error:ke.pendingError}];else if(ke&&ke.submission&&zo(ke.submission.formMethod)){let ur=await yt(Qe,de,ke.submission,Ie,ot.active,{replace:ke.replace,flushSync:St});if(ur.shortCircuited)return;if(ur.pendingActionResult){let[Vt,Fr]=ur.pendingActionResult;if(ls(Fr)&&XS(Fr.error)&&Fr.error.status===404){I=null,We(de,{matches:ur.matches,loaderData:{},errors:{[Vt]:Fr.error}});return}}Ie=ur.matches||Ie,Ze=ur.pendingActionResult,nt=Ek(de,ke.submission),St=!1,ot.active=!1,Qe=Zh(t.history,Qe.url,Qe.signal)}let{shortCircuited:vt,matches:jt,loaderData:It,errors:Ke}=await Re(Qe,de,Ie,ot.active,nt,ke&&ke.submission,ke&&ke.fetcherSubmission,ke&&ke.replace,ke&&ke.initialHydration===!0,St,Ze);vt||(I=null,We(de,on({matches:jt||Ie},W3(Ze),{loaderData:It,errors:Ke})))}async function yt(N,de,ke,qe,nt,Ie){Ie===void 0&&(Ie={}),cr();let St=ahe(de,ke);if(De({navigation:St},{flushSync:Ie.flushSync===!0}),nt){let Ze=await Gr(qe,de.pathname,N.signal);if(Ze.type==="aborted")return{shortCircuited:!0};if(Ze.type==="error"){let vt=dp(Ze.partialMatches).route.id;return{matches:Ze.partialMatches,pendingActionResult:[vt,{type:Er.error,error:Ze.error}]}}else if(Ze.matches)qe=Ze.matches;else{let{notFoundMatches:vt,error:jt,route:It}=xe(de.pathname);return{matches:vt,pendingActionResult:[It.id,{type:Er.error,error:jt}]}}}let ot,Qe=mv(qe,de);if(!Qe.route.action&&!Qe.route.lazy)ot={type:Er.error,error:Ma(405,{method:N.method,pathname:de.pathname,routeId:Qe.route.id})};else if(ot=(await Dr("action",E,N,[Qe],qe,null))[Qe.route.id],N.signal.aborted)return{shortCircuited:!0};if(Sp(ot)){let Ze;return Ie&&Ie.replace!=null?Ze=Ie.replace:Ze=z3(ot.response.headers.get("Location"),new URL(N.url),c)===E.location.pathname+E.location.search,await lr(N,ot,!0,{submission:ke,replace:Ze}),{shortCircuited:!0}}if(of(ot))throw Ma(400,{type:"defer-action"});if(ls(ot)){let Ze=dp(qe,Qe.route.id);return(Ie&&Ie.replace)!==!0&&(j=zn.Push),{matches:qe,pendingActionResult:[Ze.route.id,ot]}}return{matches:qe,pendingActionResult:[Qe.route.id,ot]}}async function Re(N,de,ke,qe,nt,Ie,St,ot,Qe,Ze,vt){let jt=nt||Ek(de,Ie),It=Ie||St||K3(jt),Ke=!S&&(!f.v7_partialHydration||!Qe);if(qe){if(Ke){let kr=je(vt);De(on({navigation:jt},kr!==void 0?{actionData:kr}:{}),{flushSync:Ze})}let Jt=await Gr(ke,de.pathname,N.signal);if(Jt.type==="aborted")return{shortCircuited:!0};if(Jt.type==="error"){let kr=dp(Jt.partialMatches).route.id;return{matches:Jt.partialMatches,loaderData:{},errors:{[kr]:Jt.error}}}else if(Jt.matches)ke=Jt.matches;else{let{error:kr,notFoundMatches:_o,route:pl}=xe(de.pathname);return{matches:_o,loaderData:{},errors:{[pl.id]:kr}}}}let ur=s||r,[Vt,Fr]=L3(t.history,E,ke,It,de,f.v7_partialHydration&&Qe===!0,f.v7_skipActionErrorRevalidation,D,R,C,T,U,M,ur,c,vt);if(Pe(Jt=>!(ke&&ke.some(kr=>kr.route.id===Jt))||Vt&&Vt.some(kr=>kr.route.id===Jt)),ae=++X,Vt.length===0&&Fr.length===0){let Jt=k();return We(de,on({matches:ke,loaderData:{},errors:vt&&ls(vt[1])?{[vt[0]]:vt[1].error}:null},W3(vt),Jt?{fetchers:new Map(E.fetchers)}:{}),{flushSync:Ze}),{shortCircuited:!0}}if(Ke){let Jt={};if(!qe){Jt.navigation=jt;let kr=je(vt);kr!==void 0&&(Jt.actionData=kr)}Fr.length>0&&(Jt.fetchers=$t(Fr)),De(Jt,{flushSync:Ze})}Fr.forEach(Jt=>{he(Jt.key),Jt.controller&&H.set(Jt.key,Jt.controller)});let So=()=>Fr.forEach(Jt=>he(Jt.key));I&&I.signal.addEventListener("abort",So);let{loaderResults:ul,fetcherResults:Ti}=await Yt(E,ke,Vt,Fr,N);if(N.signal.aborted)return{shortCircuited:!0};I&&I.signal.removeEventListener("abort",So),Fr.forEach(Jt=>H.delete(Jt.key));let ka=W1(ul);if(ka)return await lr(N,ka.result,!0,{replace:ot}),{shortCircuited:!0};if(ka=W1(Ti),ka)return M.add(ka.key),await lr(N,ka.result,!0,{replace:ot}),{shortCircuited:!0};let{loaderData:fl,errors:ec}=B3(E,ke,ul,vt,Fr,Ti,G);G.forEach((Jt,kr)=>{Jt.subscribe(_o=>{(_o||Jt.done)&&G.delete(kr)})}),f.v7_partialHydration&&Qe&&E.errors&&(ec=on({},E.errors,ec));let _s=k(),Pu=re(ae),tc=_s||Pu||Fr.length>0;return on({matches:ke,loaderData:fl,errors:ec},tc?{fetchers:new Map(E.fetchers)}:{})}function je(N){if(N&&!ls(N[1]))return{[N[0]]:N[1].data};if(E.actionData)return Object.keys(E.actionData).length===0?null:E.actionData}function $t(N){return N.forEach(de=>{let ke=E.fetchers.get(de.key),qe=N0(void 0,ke?ke.data:void 0);E.fetchers.set(de.key,qe)}),new Map(E.fetchers)}function Se(N,de,ke,qe){if(i)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");he(N);let nt=(qe&&qe.flushSync)===!0,Ie=s||r,St=y2(E.location,E.matches,c,f.v7_prependBasename,ke,f.v7_relativeSplatPath,de,qe==null?void 0:qe.relative),ot=hp(Ie,St,c),Qe=zt(ot,Ie,St);if(Qe.active&&Qe.matches&&(ot=Qe.matches),!ot){w(N,de,Ma(404,{pathname:St}),{flushSync:nt});return}let{path:Ze,submission:vt,error:jt}=R3(f.v7_normalizeFormMethod,!0,St,qe);if(jt){w(N,de,jt,{flushSync:nt});return}let It=mv(ot,Ze),Ke=(qe&&qe.preventScrollReset)===!0;if(vt&&zo(vt.formMethod)){pt(N,de,Ze,It,ot,Qe.active,nt,Ke,vt);return}U.set(N,{routeId:de,path:Ze}),nn(N,de,Ze,It,ot,Qe.active,nt,Ke,vt)}async function pt(N,de,ke,qe,nt,Ie,St,ot,Qe){cr(),U.delete(N);function Ze(qr){if(!qr.route.action&&!qr.route.lazy){let Oa=Ma(405,{method:Qe.formMethod,pathname:ke,routeId:de});return w(N,de,Oa,{flushSync:St}),!0}return!1}if(!Ie&&Ze(qe))return;let vt=E.fetchers.get(N);J(N,she(Qe,vt),{flushSync:St});let jt=new AbortController,It=Zh(t.history,ke,jt.signal,Qe);if(Ie){let qr=await Gr(nt,ke,It.signal);if(qr.type==="aborted")return;if(qr.type==="error"){w(N,de,qr.error,{flushSync:St});return}else if(qr.matches){if(nt=qr.matches,qe=mv(nt,ke),Ze(qe))return}else{w(N,de,Ma(404,{pathname:ke}),{flushSync:St});return}}H.set(N,jt);let Ke=X,Vt=(await Dr("action",E,It,[qe],nt,N))[qe.route.id];if(It.signal.aborted){H.get(N)===jt&&H.delete(N);return}if(f.v7_fetcherPersist&&T.has(N)){if(Sp(Vt)||ls(Vt)){J(N,Wu(void 0));return}}else{if(Sp(Vt))if(H.delete(N),ae>Ke){J(N,Wu(void 0));return}else return M.add(N),J(N,N0(Qe)),lr(It,Vt,!1,{fetcherSubmission:Qe,preventScrollReset:ot});if(ls(Vt)){w(N,de,Vt.error);return}}if(of(Vt))throw Ma(400,{type:"defer-action"});let Fr=E.navigation.location||E.location,So=Zh(t.history,Fr,jt.signal),ul=s||r,Ti=E.navigation.state!=="idle"?hp(ul,E.navigation.location,c):E.matches;Zt(Ti,"Didn't find any matches after fetcher action");let ka=++X;z.set(N,ka);let fl=N0(Qe,Vt.data);E.fetchers.set(N,fl);let[ec,_s]=L3(t.history,E,Ti,Qe,Fr,!1,f.v7_skipActionErrorRevalidation,D,R,C,T,U,M,ul,c,[qe.route.id,Vt]);_s.filter(qr=>qr.key!==N).forEach(qr=>{let Oa=qr.key,bu=E.fetchers.get(Oa),Qa=N0(void 0,bu?bu.data:void 0);E.fetchers.set(Oa,Qa),he(Oa),qr.controller&&H.set(Oa,qr.controller)}),De({fetchers:new Map(E.fetchers)});let Pu=()=>_s.forEach(qr=>he(qr.key));jt.signal.addEventListener("abort",Pu);let{loaderResults:tc,fetcherResults:Jt}=await Yt(E,Ti,ec,_s,So);if(jt.signal.aborted)return;jt.signal.removeEventListener("abort",Pu),z.delete(N),H.delete(N),_s.forEach(qr=>H.delete(qr.key));let kr=W1(tc);if(kr)return lr(So,kr.result,!1,{preventScrollReset:ot});if(kr=W1(Jt),kr)return M.add(kr.key),lr(So,kr.result,!1,{preventScrollReset:ot});let{loaderData:_o,errors:pl}=B3(E,Ti,tc,void 0,_s,Jt,G);if(E.fetchers.has(N)){let qr=Wu(Vt.data);E.fetchers.set(N,qr)}re(ka),E.navigation.state==="loading"&&ka>ae?(Zt(j,"Expected pending action"),I&&I.abort(),We(E.navigation.location,{matches:Ti,loaderData:_o,errors:pl,fetchers:new Map(E.fetchers)})):(De({errors:pl,loaderData:V3(E.loaderData,_o,Ti,pl),fetchers:new Map(E.fetchers)}),D=!1)}async function nn(N,de,ke,qe,nt,Ie,St,ot,Qe){let Ze=E.fetchers.get(N);J(N,N0(Qe,Ze?Ze.data:void 0),{flushSync:St});let vt=new AbortController,jt=Zh(t.history,ke,vt.signal);if(Ie){let Vt=await Gr(nt,ke,jt.signal);if(Vt.type==="aborted")return;if(Vt.type==="error"){w(N,de,Vt.error,{flushSync:St});return}else if(Vt.matches)nt=Vt.matches,qe=mv(nt,ke);else{w(N,de,Ma(404,{pathname:ke}),{flushSync:St});return}}H.set(N,vt);let It=X,ur=(await Dr("loader",E,jt,[qe],nt,N))[qe.route.id];if(of(ur)&&(ur=await gj(ur,jt.signal,!0)||ur),H.get(N)===vt&&H.delete(N),!jt.signal.aborted){if(T.has(N)){J(N,Wu(void 0));return}if(Sp(ur))if(ae>It){J(N,Wu(void 0));return}else{M.add(N),await lr(jt,ur,!1,{preventScrollReset:ot});return}if(ls(ur)){w(N,de,ur.error);return}Zt(!of(ur),"Unhandled fetcher deferred data"),J(N,Wu(ur.data))}}async function lr(N,de,ke,qe){let{submission:nt,fetcherSubmission:Ie,preventScrollReset:St,replace:ot}=qe===void 0?{}:qe;de.response.headers.has("X-Remix-Revalidate")&&(D=!0);let Qe=de.response.headers.get("Location");Zt(Qe,"Expected a Location header on the redirect Response"),Qe=z3(Qe,new URL(N.url),c);let Ze=SP(E.location,Qe,{_isRedirect:!0});if(n){let Vt=!1;if(de.response.headers.has("X-Remix-Reload-Document"))Vt=!0;else if(yj.test(Qe)){const Fr=t.history.createURL(Qe);Vt=Fr.origin!==e.location.origin||kg(Fr.pathname,c)==null}if(Vt){ot?e.location.replace(Qe):e.location.assign(Qe);return}}I=null;let vt=ot===!0||de.response.headers.has("X-Remix-Replace")?zn.Replace:zn.Push,{formMethod:jt,formAction:It,formEncType:Ke}=E.navigation;!nt&&!Ie&&jt&&It&&Ke&&(nt=K3(E.navigation));let ur=nt||Ie;if(qpe.has(de.response.status)&&ur&&zo(ur.formMethod))await st(vt,Ze,{submission:on({},ur,{formAction:Qe}),preventScrollReset:St||F,enableViewTransition:ke?L:void 0});else{let Vt=Ek(Ze,nt);await st(vt,Ze,{overrideNavigation:Vt,fetcherSubmission:Ie,preventScrollReset:St||F,enableViewTransition:ke?L:void 0})}}async function Dr(N,de,ke,qe,nt,Ie){let St,ot={};try{St=await Kpe(l,N,de,ke,qe,nt,Ie,o,a)}catch(Qe){return qe.forEach(Ze=>{ot[Ze.route.id]={type:Er.error,error:Qe}}),ot}for(let[Qe,Ze]of Object.entries(St))if(ehe(Ze)){let vt=Ze.result;ot[Qe]={type:Er.redirect,response:Qpe(vt,ke,Qe,nt,c,f.v7_relativeSplatPath)}}else ot[Qe]=await Jpe(Ze);return ot}async function Yt(N,de,ke,qe,nt){let Ie=N.matches,St=Dr("loader",N,nt,ke,de,null),ot=Promise.all(qe.map(async vt=>{if(vt.matches&&vt.match&&vt.controller){let It=(await Dr("loader",N,Zh(t.history,vt.path,vt.controller.signal),[vt.match],vt.matches,vt.key))[vt.match.route.id];return{[vt.key]:It}}else return Promise.resolve({[vt.key]:{type:Er.error,error:Ma(404,{pathname:vt.path})}})})),Qe=await St,Ze=(await ot).reduce((vt,jt)=>Object.assign(vt,jt),{});return await Promise.all([nhe(de,Qe,nt.signal,Ie,N.loaderData),ihe(de,Ze,qe)]),{loaderResults:Qe,fetcherResults:Ze}}function cr(){D=!0,R.push(...Pe()),U.forEach((N,de)=>{H.has(de)&&C.add(de),he(de)})}function J(N,de,ke){ke===void 0&&(ke={}),E.fetchers.set(N,de),De({fetchers:new Map(E.fetchers)},{flushSync:(ke&&ke.flushSync)===!0})}function w(N,de,ke,qe){qe===void 0&&(qe={});let nt=dp(E.matches,de);te(N),De({errors:{[nt.route.id]:ke},fetchers:new Map(E.fetchers)},{flushSync:(qe&&qe.flushSync)===!0})}function K(N){return f.v7_fetcherPersist&&(W.set(N,(W.get(N)||0)+1),T.has(N)&&T.delete(N)),E.fetchers.get(N)||zpe}function te(N){let de=E.fetchers.get(N);H.has(N)&&!(de&&de.state==="loading"&&z.has(N))&&he(N),U.delete(N),z.delete(N),M.delete(N),T.delete(N),C.delete(N),E.fetchers.delete(N)}function fe(N){if(f.v7_fetcherPersist){let de=(W.get(N)||0)-1;de<=0?(W.delete(N),T.add(N)):W.set(N,de)}else te(N);De({fetchers:new Map(E.fetchers)})}function he(N){let de=H.get(N);de&&(de.abort(),H.delete(N))}function Y(N){for(let de of N){let ke=K(de),qe=Wu(ke.data);E.fetchers.set(de,qe)}}function k(){let N=[],de=!1;for(let ke of M){let qe=E.fetchers.get(ke);Zt(qe,"Expected fetcher: "+ke),qe.state==="loading"&&(M.delete(ke),N.push(ke),de=!0)}return Y(N),de}function re(N){let de=[];for(let[ke,qe]of z)if(qe0}function ee(N,de){let ke=E.blockers.get(N)||R0;return oe.get(N)!==de&&oe.set(N,de),ke}function le(N){E.blockers.delete(N),oe.delete(N)}function se(N,de){let ke=E.blockers.get(N)||R0;Zt(ke.state==="unblocked"&&de.state==="blocked"||ke.state==="blocked"&&de.state==="blocked"||ke.state==="blocked"&&de.state==="proceeding"||ke.state==="blocked"&&de.state==="unblocked"||ke.state==="proceeding"&&de.state==="unblocked","Invalid blocker state transition: "+ke.state+" -> "+de.state);let qe=new Map(E.blockers);qe.set(N,de),De({blockers:qe})}function ge(N){let{currentLocation:de,nextLocation:ke,historyAction:qe}=N;if(oe.size===0)return;oe.size>1&&nh(!1,"A router only supports one blocker at a time");let nt=Array.from(oe.entries()),[Ie,St]=nt[nt.length-1],ot=E.blockers.get(Ie);if(!(ot&&ot.state==="proceeding")&&St({currentLocation:de,nextLocation:ke,historyAction:qe}))return Ie}function xe(N){let de=Ma(404,{pathname:N}),ke=s||r,{matches:qe,route:nt}=H3(ke);return Pe(),{notFoundMatches:qe,route:nt,error:de}}function Pe(N){let de=[];return G.forEach((ke,qe)=>{(!N||N(qe))&&(ke.cancel(),de.push(qe),G.delete(qe))}),de}function Le(N,de,ke){if(m=N,b=de,g=ke||null,!v&&E.navigation===Ok){v=!0;let qe=ht(E.location,E.matches);qe!=null&&De({restoreScrollPosition:qe})}return()=>{m=null,b=null,g=null}}function Ye(N,de){return g&&g(N,de.map(qe=>vpe(qe,E.loaderData)))||N.key}function gt(N,de){if(m&&b){let ke=Ye(N,de);m[ke]=b()}}function ht(N,de){if(m){let ke=Ye(N,de),qe=m[ke];if(typeof qe=="number")return qe}return null}function zt(N,de,ke){if(u)if(N){if(Object.keys(N[0].params).length>0)return{active:!0,matches:d$(de,ke,c,!0)}}else return{active:!0,matches:d$(de,ke,c,!0)||[]};return{active:!1,matches:null}}async function Gr(N,de,ke){if(!u)return{type:"success",matches:N};let qe=N;for(;;){let nt=s==null,Ie=s||r,St=o;try{await u({path:de,matches:qe,patch:(Ze,vt)=>{ke.aborted||q3(Ze,vt,Ie,St,a)}})}catch(Ze){return{type:"error",error:Ze,partialMatches:qe}}finally{nt&&!ke.aborted&&(r=[...r])}if(ke.aborted)return{type:"aborted"};let ot=hp(Ie,de,c);if(ot)return{type:"success",matches:ot};let Qe=d$(Ie,de,c,!0);if(!Qe||qe.length===Qe.length&&qe.every((Ze,vt)=>Ze.route.id===Qe[vt].route.id))return{type:"success",matches:null};qe=Qe}}function yi(N){o={},s=SA(N,a,void 0,o)}function Ao(N,de){let ke=s==null;q3(N,de,s||r,o,a),ke&&(r=[...r],De({}))}return x={get basename(){return c},get future(){return f},get state(){return E},get routes(){return r},get window(){return e},initialize:ie,subscribe:pe,enableScrollRestoration:Le,navigate:Ce,fetch:Se,revalidate:_e,createHref:N=>t.history.createHref(N),encodeLocation:N=>t.history.encodeLocation(N),getFetcher:K,deleteFetcher:fe,dispose:Ae,getBlocker:ee,deleteBlocker:le,patchRoutes:Ao,_internalFetchControllers:H,_internalActiveDeferreds:G,_internalSetRoutes:yi},x}function Vpe(t){return t!=null&&("formData"in t&&t.formData!=null||"body"in t&&t.body!==void 0)}function y2(t,e,n,i,a,o,r,s){let c,l;if(r){c=[];for(let f of e)if(c.push(f),f.route.id===r){l=f;break}}else c=e,l=e[e.length-1];let u=ZS(a||".",QS(c,o),kg(t.pathname,n)||t.pathname,s==="path");if(a==null&&(u.search=t.search,u.hash=t.hash),(a==null||a===""||a===".")&&l){let f=vj(u.search);if(l.route.index&&!f)u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index";else if(!l.route.index&&f){let h=new URLSearchParams(u.search),d=h.getAll("index");h.delete("index"),d.filter(g=>g).forEach(g=>h.append("index",g));let m=h.toString();u.search=m?"?"+m:""}}return i&&n!=="/"&&(u.pathname=u.pathname==="/"?n:kc([n,u.pathname])),ih(u)}function R3(t,e,n,i){if(!i||!Vpe(i))return{path:n};if(i.formMethod&&!rhe(i.formMethod))return{path:n,error:Ma(405,{method:i.formMethod})};let a=()=>({path:n,error:Ma(400,{type:"invalid-body"})}),o=i.formMethod||"get",r=t?o.toUpperCase():o.toLowerCase(),s=e7(n);if(i.body!==void 0){if(i.formEncType==="text/plain"){if(!zo(r))return a();let h=typeof i.body=="string"?i.body:i.body instanceof FormData||i.body instanceof URLSearchParams?Array.from(i.body.entries()).reduce((d,m)=>{let[g,b]=m;return""+d+g+"="+b+` +`},""):String(i.body);return{path:n,submission:{formMethod:r,formAction:s,formEncType:i.formEncType,formData:void 0,json:void 0,text:h}}}else if(i.formEncType==="application/json"){if(!zo(r))return a();try{let h=typeof i.body=="string"?JSON.parse(i.body):i.body;return{path:n,submission:{formMethod:r,formAction:s,formEncType:i.formEncType,formData:void 0,json:h,text:void 0}}}catch{return a()}}}Zt(typeof FormData=="function","FormData is not available in this environment");let c,l;if(i.formData)c=v2(i.formData),l=i.formData;else if(i.body instanceof FormData)c=v2(i.body),l=i.body;else if(i.body instanceof URLSearchParams)c=i.body,l=U3(c);else if(i.body==null)c=new URLSearchParams,l=new FormData;else try{c=new URLSearchParams(i.body),l=U3(c)}catch{return a()}let u={formMethod:r,formAction:s,formEncType:i&&i.formEncType||"application/x-www-form-urlencoded",formData:l,json:void 0,text:void 0};if(zo(u.formMethod))return{path:n,submission:u};let f=pu(n);return e&&f.search&&vj(f.search)&&c.append("index",""),f.search="?"+c,{path:ih(f),submission:u}}function N3(t,e,n){n===void 0&&(n=!1);let i=t.findIndex(a=>a.route.id===e);return i>=0?t.slice(0,n?i+1:i):t}function L3(t,e,n,i,a,o,r,s,c,l,u,f,h,d,m,g){let b=g?ls(g[1])?g[1].error:g[1].data:void 0,v=t.createURL(e.location),P=t.createURL(a),A=n;o&&e.errors?A=N3(n,Object.keys(e.errors)[0],!0):g&&ls(g[1])&&(A=N3(n,g[0]));let _=g?g[1].statusCode:void 0,x=r&&_&&_>=400,E=A.filter((F,I)=>{let{route:L}=F;if(L.lazy)return!0;if(L.loader==null)return!1;if(o)return g2(L,e.loaderData,e.errors);if(Wpe(e.loaderData,e.matches[I],F)||c.some(S=>S===F.route.id))return!0;let V=e.matches[I],q=F;return F3(F,on({currentUrl:v,currentParams:V.params,nextUrl:P,nextParams:q.params},i,{actionResult:b,actionStatus:_,defaultShouldRevalidate:x?!1:s||v.pathname+v.search===P.pathname+P.search||v.search!==P.search||ZH(V,q)}))}),j=[];return f.forEach((F,I)=>{if(o||!n.some(D=>D.route.id===F.routeId)||u.has(I))return;let L=hp(d,F.path,m);if(!L){j.push({key:I,routeId:F.routeId,path:F.path,matches:null,match:null,controller:null});return}let V=e.fetchers.get(I),q=mv(L,F.path),S=!1;h.has(I)?S=!1:l.has(I)?(l.delete(I),S=!0):V&&V.state!=="idle"&&V.data===void 0?S=s:S=F3(q,on({currentUrl:v,currentParams:e.matches[e.matches.length-1].params,nextUrl:P,nextParams:n[n.length-1].params},i,{actionResult:b,actionStatus:_,defaultShouldRevalidate:x?!1:s})),S&&j.push({key:I,routeId:F.routeId,path:F.path,matches:L,match:q,controller:new AbortController})}),[E,j]}function g2(t,e,n){if(t.lazy)return!0;if(!t.loader)return!1;let i=e!=null&&e[t.id]!==void 0,a=n!=null&&n[t.id]!==void 0;return!i&&a?!1:typeof t.loader=="function"&&t.loader.hydrate===!0?!0:!i&&!a}function Wpe(t,e,n){let i=!e||n.route.id!==e.route.id,a=t[n.route.id]===void 0;return i||a}function ZH(t,e){let n=t.route.path;return t.pathname!==e.pathname||n!=null&&n.endsWith("*")&&t.params["*"]!==e.params["*"]}function F3(t,e){if(t.route.shouldRevalidate){let n=t.route.shouldRevalidate(e);if(typeof n=="boolean")return n}return e.defaultShouldRevalidate}function q3(t,e,n,i,a){var o;let r;if(t){let l=i[t];Zt(l,"No route found to patch children into: routeId = "+t),l.children||(l.children=[]),r=l.children}else r=n;let s=e.filter(l=>!r.some(u=>XH(l,u))),c=SA(s,a,[t||"_","patch",String(((o=r)==null?void 0:o.length)||"0")],i);r.push(...c)}function XH(t,e){return"id"in t&&"id"in e&&t.id===e.id?!0:t.index===e.index&&t.path===e.path&&t.caseSensitive===e.caseSensitive?(!t.children||t.children.length===0)&&(!e.children||e.children.length===0)?!0:t.children.every((n,i)=>{var a;return(a=e.children)==null?void 0:a.some(o=>XH(n,o))}):!1}async function Hpe(t,e,n){if(!t.lazy)return;let i=await t.lazy();if(!t.lazy)return;let a=n[t.id];Zt(a,"No route found in manifest");let o={};for(let r in i){let c=a[r]!==void 0&&r!=="hasErrorBoundary";nh(!c,'Route "'+a.id+'" has a static property "'+r+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+r+'" will be ignored.')),!c&&!ype.has(r)&&(o[r]=i[r])}Object.assign(a,o),Object.assign(a,on({},e(a),{lazy:void 0}))}async function Gpe(t){let{matches:e}=t,n=e.filter(a=>a.shouldLoad);return(await Promise.all(n.map(a=>a.resolve()))).reduce((a,o,r)=>Object.assign(a,{[n[r].route.id]:o}),{})}async function Kpe(t,e,n,i,a,o,r,s,c,l){let u=o.map(d=>d.route.lazy?Hpe(d.route,c,s):void 0),f=o.map((d,m)=>{let g=u[m],b=a.some(P=>P.route.id===d.route.id);return on({},d,{shouldLoad:b,resolve:async P=>(P&&i.method==="GET"&&(d.route.lazy||d.route.loader)&&(b=!0),b?Ype(e,i,d,g,P,l):Promise.resolve({type:Er.data,result:void 0}))})}),h=await t({matches:f,request:i,params:o[0].params,fetcherKey:r,context:l});try{await Promise.all(u)}catch{}return h}async function Ype(t,e,n,i,a,o){let r,s,c=l=>{let u,f=new Promise((m,g)=>u=g);s=()=>u(),e.signal.addEventListener("abort",s);let h=m=>typeof l!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+t+'" [routeId: '+n.route.id+"]"))):l({request:e,params:n.params,context:o},...m!==void 0?[m]:[]),d=(async()=>{try{return{type:"data",result:await(a?a(g=>h(g)):h())}}catch(m){return{type:"error",result:m}}})();return Promise.race([d,f])};try{let l=n.route[t];if(i)if(l){let u,[f]=await Promise.all([c(l).catch(h=>{u=h}),i]);if(u!==void 0)throw u;r=f}else if(await i,l=n.route[t],l)r=await c(l);else if(t==="action"){let u=new URL(e.url),f=u.pathname+u.search;throw Ma(405,{method:e.method,pathname:f,routeId:n.route.id})}else return{type:Er.data,result:void 0};else if(l)r=await c(l);else{let u=new URL(e.url),f=u.pathname+u.search;throw Ma(404,{pathname:f})}Zt(r.result!==void 0,"You defined "+(t==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+t+"` ")+"function. Please return a value or `null`.")}catch(l){return{type:Er.error,result:l}}finally{s&&e.signal.removeEventListener("abort",s)}return r}async function Jpe(t){let{result:e,type:n}=t;if(t7(e)){let l;try{let u=e.headers.get("Content-Type");u&&/\bapplication\/json\b/.test(u)?e.body==null?l=null:l=await e.json():l=await e.text()}catch(u){return{type:Er.error,error:u}}return n===Er.error?{type:Er.error,error:new _A(e.status,e.statusText,l),statusCode:e.status,headers:e.headers}:{type:Er.data,data:l,statusCode:e.status,headers:e.headers}}if(n===Er.error){if(G3(e)){var i;if(e.data instanceof Error){var a;return{type:Er.error,error:e.data,statusCode:(a=e.init)==null?void 0:a.status}}e=new _A(((i=e.init)==null?void 0:i.status)||500,void 0,e.data)}return{type:Er.error,error:e,statusCode:XS(e)?e.status:void 0}}if(the(e)){var o,r;return{type:Er.deferred,deferredData:e,statusCode:(o=e.init)==null?void 0:o.status,headers:((r=e.init)==null?void 0:r.headers)&&new Headers(e.init.headers)}}if(G3(e)){var s,c;return{type:Er.data,data:e.data,statusCode:(s=e.init)==null?void 0:s.status,headers:(c=e.init)!=null&&c.headers?new Headers(e.init.headers):void 0}}return{type:Er.data,data:e}}function Qpe(t,e,n,i,a,o){let r=t.headers.get("Location");if(Zt(r,"Redirects returned/thrown from loaders/actions must have a Location header"),!yj.test(r)){let s=i.slice(0,i.findIndex(c=>c.route.id===n)+1);r=y2(new URL(e.url),s,a,!0,r,o),t.headers.set("Location",r)}return t}function z3(t,e,n){if(yj.test(t)){let i=t,a=i.startsWith("//")?new URL(e.protocol+i):new URL(i),o=kg(a.pathname,n)!=null;if(a.origin===e.origin&&o)return a.pathname+a.search+a.hash}return t}function Zh(t,e,n,i){let a=t.createURL(e7(e)).toString(),o={signal:n};if(i&&zo(i.formMethod)){let{formMethod:r,formEncType:s}=i;o.method=r.toUpperCase(),s==="application/json"?(o.headers=new Headers({"Content-Type":s}),o.body=JSON.stringify(i.json)):s==="text/plain"?o.body=i.text:s==="application/x-www-form-urlencoded"&&i.formData?o.body=v2(i.formData):o.body=i.formData}return new Request(a,o)}function v2(t){let e=new URLSearchParams;for(let[n,i]of t.entries())e.append(n,typeof i=="string"?i:i.name);return e}function U3(t){let e=new FormData;for(let[n,i]of t.entries())e.append(n,i);return e}function Zpe(t,e,n,i,a){let o={},r=null,s,c=!1,l={},u=n&&ls(n[1])?n[1].error:void 0;return t.forEach(f=>{if(!(f.route.id in e))return;let h=f.route.id,d=e[h];if(Zt(!Sp(d),"Cannot handle redirect results in processLoaderData"),ls(d)){let m=d.error;u!==void 0&&(m=u,u=void 0),r=r||{};{let g=dp(t,h);r[g.route.id]==null&&(r[g.route.id]=m)}o[h]=void 0,c||(c=!0,s=XS(d.error)?d.error.status:500),d.headers&&(l[h]=d.headers)}else of(d)?(i.set(h,d.deferredData),o[h]=d.deferredData.data,d.statusCode!=null&&d.statusCode!==200&&!c&&(s=d.statusCode),d.headers&&(l[h]=d.headers)):(o[h]=d.data,d.statusCode&&d.statusCode!==200&&!c&&(s=d.statusCode),d.headers&&(l[h]=d.headers))}),u!==void 0&&n&&(r={[n[0]]:u},o[n[0]]=void 0),{loaderData:o,errors:r,statusCode:s||200,loaderHeaders:l}}function B3(t,e,n,i,a,o,r){let{loaderData:s,errors:c}=Zpe(e,n,i,r);return a.forEach(l=>{let{key:u,match:f,controller:h}=l,d=o[u];if(Zt(d,"Did not find corresponding fetcher result"),!(h&&h.signal.aborted))if(ls(d)){let m=dp(t.matches,f==null?void 0:f.route.id);c&&c[m.route.id]||(c=on({},c,{[m.route.id]:d.error})),t.fetchers.delete(u)}else if(Sp(d))Zt(!1,"Unhandled fetcher revalidation redirect");else if(of(d))Zt(!1,"Unhandled fetcher deferred data");else{let m=Wu(d.data);t.fetchers.set(u,m)}}),{loaderData:s,errors:c}}function V3(t,e,n,i){let a=on({},e);for(let o of n){let r=o.route.id;if(e.hasOwnProperty(r)?e[r]!==void 0&&(a[r]=e[r]):t[r]!==void 0&&o.route.loader&&(a[r]=t[r]),i&&i.hasOwnProperty(r))break}return a}function W3(t){return t?ls(t[1])?{actionData:{}}:{actionData:{[t[0]]:t[1].data}}:{}}function dp(t,e){return(e?t.slice(0,t.findIndex(i=>i.route.id===e)+1):[...t]).reverse().find(i=>i.route.hasErrorBoundary===!0)||t[0]}function H3(t){let e=t.length===1?t[0]:t.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:e}],route:e}}function Ma(t,e){let{pathname:n,routeId:i,method:a,type:o,message:r}=e===void 0?{}:e,s="Unknown Server Error",c="Unknown @remix-run/router error";return t===400?(s="Bad Request",a&&n&&i?c="You made a "+a+' request to "'+n+'" but '+('did not provide a `loader` for route "'+i+'", ')+"so there is no way to handle the request.":o==="defer-action"?c="defer() is not supported in actions":o==="invalid-body"&&(c="Unable to encode submission body")):t===403?(s="Forbidden",c='Route "'+i+'" does not match URL "'+n+'"'):t===404?(s="Not Found",c='No route matches URL "'+n+'"'):t===405&&(s="Method Not Allowed",a&&n&&i?c="You made a "+a.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+i+'", ')+"so there is no way to handle the request.":a&&(c='Invalid request method "'+a.toUpperCase()+'"')),new _A(t||500,s,new Error(c),!0)}function W1(t){let e=Object.entries(t);for(let n=e.length-1;n>=0;n--){let[i,a]=e[n];if(Sp(a))return{key:i,result:a}}}function e7(t){let e=typeof t=="string"?pu(t):t;return ih(on({},e,{hash:""}))}function Xpe(t,e){return t.pathname!==e.pathname||t.search!==e.search?!1:t.hash===""?e.hash!=="":t.hash===e.hash?!0:e.hash!==""}function ehe(t){return t7(t.result)&&Fpe.has(t.result.status)}function of(t){return t.type===Er.deferred}function ls(t){return t.type===Er.error}function Sp(t){return(t&&t.type)===Er.redirect}function G3(t){return typeof t=="object"&&t!=null&&"type"in t&&"data"in t&&"init"in t&&t.type==="DataWithResponseInit"}function the(t){let e=t;return e&&typeof e=="object"&&typeof e.data=="object"&&typeof e.subscribe=="function"&&typeof e.cancel=="function"&&typeof e.resolveData=="function"}function t7(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.headers=="object"&&typeof t.body<"u"}function rhe(t){return Lpe.has(t.toLowerCase())}function zo(t){return Rpe.has(t.toLowerCase())}async function nhe(t,e,n,i,a){let o=Object.entries(e);for(let r=0;r(h==null?void 0:h.route.id)===s);if(!l)continue;let u=i.find(h=>h.route.id===l.route.id),f=u!=null&&!ZH(u,l)&&(a&&a[l.route.id])!==void 0;of(c)&&f&&await gj(c,n,!1).then(h=>{h&&(e[s]=h)})}}async function ihe(t,e,n){for(let i=0;i(l==null?void 0:l.route.id)===o)&&of(s)&&(Zt(r,"Expected an AbortController for revalidating fetcher deferred result"),await gj(s,r.signal,!0).then(l=>{l&&(e[a]=l)}))}}async function gj(t,e,n){if(n===void 0&&(n=!1),!await t.deferredData.resolveData(e)){if(n)try{return{type:Er.data,data:t.deferredData.unwrappedData}}catch(a){return{type:Er.error,error:a}}return{type:Er.data,data:t.deferredData.data}}}function vj(t){return new URLSearchParams(t).getAll("index").some(e=>e==="")}function mv(t,e){let n=typeof e=="string"?pu(e).search:e.search;if(t[t.length-1].route.index&&vj(n||""))return t[t.length-1];let i=YH(t);return i[i.length-1]}function K3(t){let{formMethod:e,formAction:n,formEncType:i,text:a,formData:o,json:r}=t;if(!(!e||!n||!i)){if(a!=null)return{formMethod:e,formAction:n,formEncType:i,formData:void 0,json:void 0,text:a};if(o!=null)return{formMethod:e,formAction:n,formEncType:i,formData:o,json:void 0,text:void 0};if(r!==void 0)return{formMethod:e,formAction:n,formEncType:i,formData:void 0,json:r,text:void 0}}}function Ek(t,e){return e?{state:"loading",location:t,formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text}:{state:"loading",location:t,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function ahe(t,e){return{state:"submitting",location:t,formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text}}function N0(t,e){return t?{state:"loading",formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text,data:e}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function she(t,e){return{state:"submitting",formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text,data:e?e.data:void 0}}function Wu(t){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function ohe(t,e){try{let n=t.sessionStorage.getItem(QH);if(n){let i=JSON.parse(n);for(let[a,o]of Object.entries(i||{}))o&&Array.isArray(o)&&e.set(a,new Set(o||[]))}}catch{}}function lhe(t,e){if(e.size>0){let n={};for(let[i,a]of e)n[i]=[...a];try{t.sessionStorage.setItem(QH,JSON.stringify(n))}catch(i){nh(!1,"Failed to save applied view transitions in sessionStorage ("+i+").")}}}/** + * React Router v6.28.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function xA(){return xA=Object.assign?Object.assign.bind():function(t){for(var e=1;e{s.current=!0}),Be.useCallback(function(l,u){if(u===void 0&&(u={}),!s.current)return;if(typeof l=="number"){i.go(l);return}let f=ZS(l,JSON.parse(r),o,u.relative==="path");t==null&&e!=="/"&&(f.pathname=f.pathname==="/"?e:kc([e,f.pathname])),(u.replace?i.replace:i.push)(f,u.state,u)},[e,i,r,o,t])}function a7(t,e){let{relative:n}=e===void 0?{}:e,{future:i}=Be.useContext(Ff),{matches:a}=Be.useContext(qf),{pathname:o}=Eg(),r=JSON.stringify(QS(a,i.v7_relativeSplatPath));return Be.useMemo(()=>ZS(t,JSON.parse(r),o,n==="path"),[t,r,o,n])}function fhe(t,e,n,i){Og()||Zt(!1);let{navigator:a}=Be.useContext(Ff),{matches:o}=Be.useContext(qf),r=o[o.length-1],s=r?r.params:{};r&&r.pathname;let c=r?r.pathnameBase:"/";r&&r.route;let l=Eg(),u;u=l;let f=u.pathname||"/",h=f;if(c!=="/"){let g=c.replace(/^\//,"").split("/");h="/"+f.replace(/^\//,"").split("/").slice(g.length).join("/")}let d=hp(t,{pathname:h});return yhe(d&&d.map(g=>Object.assign({},g,{params:Object.assign({},s,g.params),pathname:kc([c,a.encodeLocation?a.encodeLocation(g.pathname).pathname:g.pathname]),pathnameBase:g.pathnameBase==="/"?c:kc([c,a.encodeLocation?a.encodeLocation(g.pathnameBase).pathname:g.pathnameBase])})),o,n,i)}function phe(){let t=bhe(),e=XS(t)?t.status+" "+t.statusText:t instanceof Error?t.message:JSON.stringify(t),n=t instanceof Error?t.stack:null,a={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return Be.createElement(Be.Fragment,null,Be.createElement("h2",null,"Unexpected Application Error!"),Be.createElement("h3",{style:{fontStyle:"italic"}},e),n?Be.createElement("pre",{style:a},n):null,null)}const hhe=Be.createElement(phe,null);class dhe extends Be.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,n){return n.location!==e.location||n.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:n.error,location:n.location,revalidation:e.revalidation||n.revalidation}}componentDidCatch(e,n){console.error("React Router caught the following error during render",e,n)}render(){return this.state.error!==void 0?Be.createElement(qf.Provider,{value:this.props.routeContext},Be.createElement(n7.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function mhe(t){let{routeContext:e,match:n,children:i}=t,a=Be.useContext(e_);return a&&a.static&&a.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=n.route.id),Be.createElement(qf.Provider,{value:e},i)}function yhe(t,e,n,i){var a;if(e===void 0&&(e=[]),n===void 0&&(n=null),i===void 0&&(i=null),t==null){var o;if(!n)return null;if(n.errors)t=n.matches;else if((o=i)!=null&&o.v7_partialHydration&&e.length===0&&!n.initialized&&n.matches.length>0)t=n.matches;else return null}let r=t,s=(a=n)==null?void 0:a.errors;if(s!=null){let u=r.findIndex(f=>f.route.id&&(s==null?void 0:s[f.route.id])!==void 0);u>=0||Zt(!1),r=r.slice(0,Math.min(r.length,u+1))}let c=!1,l=-1;if(n&&i&&i.v7_partialHydration)for(let u=0;u=0?r=r.slice(0,l+1):r=[r[0]];break}}}return r.reduceRight((u,f,h)=>{let d,m=!1,g=null,b=null;n&&(d=s&&f.route.id?s[f.route.id]:void 0,g=f.route.errorElement||hhe,c&&(l<0&&h===0?(m=!0,b=null):l===h&&(m=!0,b=f.route.hydrateFallbackElement||null)));let v=e.concat(r.slice(0,h+1)),P=()=>{let A;return d?A=g:m?A=b:f.route.Component?A=Be.createElement(f.route.Component,null):f.route.element?A=f.route.element:A=u,Be.createElement(mhe,{match:f,routeContext:{outlet:u,matches:v,isDataRoute:n!=null},children:A})};return n&&(f.route.ErrorBoundary||f.route.errorElement||h===0)?Be.createElement(dhe,{location:n.location,revalidation:n.revalidation,component:g,error:d,children:P(),routeContext:{outlet:null,matches:v,isDataRoute:!0}}):P()},null)}var s7=function(t){return t.UseBlocker="useBlocker",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t}(s7||{}),DA=function(t){return t.UseBlocker="useBlocker",t.UseLoaderData="useLoaderData",t.UseActionData="useActionData",t.UseRouteError="useRouteError",t.UseNavigation="useNavigation",t.UseRouteLoaderData="useRouteLoaderData",t.UseMatches="useMatches",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t.UseRouteId="useRouteId",t}(DA||{});function ghe(t){let e=Be.useContext(e_);return e||Zt(!1),e}function vhe(t){let e=Be.useContext(r7);return e||Zt(!1),e}function Phe(t){let e=Be.useContext(qf);return e||Zt(!1),e}function o7(t){let e=Phe(),n=e.matches[e.matches.length-1];return n.route.id||Zt(!1),n.route.id}function bhe(){var t;let e=Be.useContext(n7),n=vhe(DA.UseRouteError),i=o7(DA.UseRouteError);return e!==void 0?e:(t=n.errors)==null?void 0:t[i]}function whe(){let{router:t}=ghe(s7.UseNavigateStable),e=o7(DA.UseNavigateStable),n=Be.useRef(!1);return i7(()=>{n.current=!0}),Be.useCallback(function(a,o){o===void 0&&(o={}),n.current&&(typeof a=="number"?t.navigate(a):t.navigate(a,xA({fromRouteId:e},o)))},[t,e])}const Y3={};function $he(t,e){Y3[e]||(Y3[e]=!0,console.warn(e))}const Xh=(t,e,n)=>$he(t,"⚠️ React Router Future Flag Warning: "+e+". "+("You can use the `"+t+"` future flag to opt-in early. ")+("For more information, see "+n+"."));function Ahe(t,e){t!=null&&t.v7_startTransition||Xh("v7_startTransition","React Router will begin wrapping state updates in `React.startTransition` in v7","https://reactrouter.com/v6/upgrading/future#v7_starttransition"),!(t!=null&&t.v7_relativeSplatPath)&&(!e||!e.v7_relativeSplatPath)&&Xh("v7_relativeSplatPath","Relative route resolution within Splat routes is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath"),e&&(e.v7_fetcherPersist||Xh("v7_fetcherPersist","The persistence behavior of fetchers is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_fetcherpersist"),e.v7_normalizeFormMethod||Xh("v7_normalizeFormMethod","Casing of `formMethod` fields is being normalized to uppercase in v7","https://reactrouter.com/v6/upgrading/future#v7_normalizeformmethod"),e.v7_partialHydration||Xh("v7_partialHydration","`RouterProvider` hydration behavior is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_partialhydration"),e.v7_skipActionErrorRevalidation||Xh("v7_skipActionErrorRevalidation","The revalidation behavior after 4xx/5xx `action` responses is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_skipactionerrorrevalidation"))}function She(t){let{to:e,replace:n,state:i,relative:a}=t;Og()||Zt(!1);let{future:o,static:r}=Be.useContext(Ff),{matches:s}=Be.useContext(qf),{pathname:c}=Eg(),l=bj(),u=ZS(e,QS(s,o.v7_relativeSplatPath),c,a==="path"),f=JSON.stringify(u);return Be.useEffect(()=>l(JSON.parse(f),{replace:n,state:i,relative:a}),[l,f,a,n,i]),null}function _he(t){let{basename:e="/",children:n=null,location:i,navigationType:a=zn.Pop,navigator:o,static:r=!1,future:s}=t;Og()&&Zt(!1);let c=e.replace(/^\/*/,"/"),l=Be.useMemo(()=>({basename:c,navigator:o,static:r,future:xA({v7_relativeSplatPath:!1},s)}),[c,s,o,r]);typeof i=="string"&&(i=pu(i));let{pathname:u="/",search:f="",hash:h="",state:d=null,key:m="default"}=i,g=Be.useMemo(()=>{let b=kg(u,c);return b==null?null:{location:{pathname:b,search:f,hash:h,state:d,key:m},navigationType:a}},[c,u,f,h,d,m,a]);return g==null?null:Be.createElement(Ff.Provider,{value:l},Be.createElement(Pj.Provider,{children:n,value:g}))}new Promise(()=>{});function xhe(t){let e={hasErrorBoundary:t.ErrorBoundary!=null||t.errorElement!=null};return t.Component&&Object.assign(e,{element:Be.createElement(t.Component),Component:void 0}),t.HydrateFallback&&Object.assign(e,{hydrateFallbackElement:Be.createElement(t.HydrateFallback),HydrateFallback:void 0}),t.ErrorBoundary&&Object.assign(e,{errorElement:Be.createElement(t.ErrorBoundary),ErrorBoundary:void 0}),e}/** + * React Router DOM v6.28.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function _P(){return _P=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)&&(n[a]=t[a]);return n}function khe(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function Ohe(t,e){return t.button===0&&(!e||e==="_self")&&!khe(t)}const Ehe=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],Ihe="6";try{window.__reactRouterVersion=Ihe}catch{}function Che(t,e){return Bpe({basename:void 0,future:_P({},void 0,{v7_prependBasename:!0}),history:hpe({window:void 0}),hydrationData:The(),routes:t,mapRouteProperties:xhe,dataStrategy:void 0,patchRoutesOnNavigation:void 0,window:void 0}).initialize()}function The(){var t;let e=(t=window)==null?void 0:t.__staticRouterHydrationData;return e&&e.errors&&(e=_P({},e,{errors:jhe(e.errors)})),e}function jhe(t){if(!t)return null;let e=Object.entries(t),n={};for(let[i,a]of e)if(a&&a.__type==="RouteErrorResponse")n[i]=new _A(a.status,a.statusText,a.data,a.internal===!0);else if(a&&a.__type==="Error"){if(a.__subType){let o=window[a.__subType];if(typeof o=="function")try{let r=new o(a.message);r.stack="",n[i]=r}catch{}}if(n[i]==null){let o=new Error(a.message);o.stack="",n[i]=o}}else n[i]=a;return n}const Mhe=Be.createContext({isTransitioning:!1}),Rhe=Be.createContext(new Map),Nhe="startTransition",J3=eue[Nhe],Lhe="flushSync",Q3=ppe[Lhe];function Fhe(t){J3?J3(t):t()}function L0(t){Q3?Q3(t):t()}class qhe{constructor(){this.status="pending",this.promise=new Promise((e,n)=>{this.resolve=i=>{this.status==="pending"&&(this.status="resolved",e(i))},this.reject=i=>{this.status==="pending"&&(this.status="rejected",n(i))}})}}function zhe(t){let{fallbackElement:e,router:n,future:i}=t,[a,o]=Be.useState(n.state),[r,s]=Be.useState(),[c,l]=Be.useState({isTransitioning:!1}),[u,f]=Be.useState(),[h,d]=Be.useState(),[m,g]=Be.useState(),b=Be.useRef(new Map),{v7_startTransition:v}=i||{},P=Be.useCallback(F=>{v?Fhe(F):F()},[v]),A=Be.useCallback((F,I)=>{let{deletedFetchers:L,flushSync:V,viewTransitionOpts:q}=I;L.forEach(D=>b.current.delete(D)),F.fetchers.forEach((D,R)=>{D.data!==void 0&&b.current.set(R,D.data)});let S=n.window==null||n.window.document==null||typeof n.window.document.startViewTransition!="function";if(!q||S){V?L0(()=>o(F)):P(()=>o(F));return}if(V){L0(()=>{h&&(u&&u.resolve(),h.skipTransition()),l({isTransitioning:!0,flushSync:!0,currentLocation:q.currentLocation,nextLocation:q.nextLocation})});let D=n.window.document.startViewTransition(()=>{L0(()=>o(F))});D.finished.finally(()=>{L0(()=>{f(void 0),d(void 0),s(void 0),l({isTransitioning:!1})})}),L0(()=>d(D));return}h?(u&&u.resolve(),h.skipTransition(),g({state:F,currentLocation:q.currentLocation,nextLocation:q.nextLocation})):(s(F),l({isTransitioning:!0,flushSync:!1,currentLocation:q.currentLocation,nextLocation:q.nextLocation}))},[n.window,h,u,b,P]);Be.useLayoutEffect(()=>n.subscribe(A),[n,A]),Be.useEffect(()=>{c.isTransitioning&&!c.flushSync&&f(new qhe)},[c]),Be.useEffect(()=>{if(u&&r&&n.window){let F=r,I=u.promise,L=n.window.document.startViewTransition(async()=>{P(()=>o(F)),await I});L.finished.finally(()=>{f(void 0),d(void 0),s(void 0),l({isTransitioning:!1})}),d(L)}},[P,r,u,n.window]),Be.useEffect(()=>{u&&r&&a.location.key===r.location.key&&u.resolve()},[u,h,a.location,r]),Be.useEffect(()=>{!c.isTransitioning&&m&&(s(m.state),l({isTransitioning:!0,flushSync:!1,currentLocation:m.currentLocation,nextLocation:m.nextLocation}),g(void 0))},[c.isTransitioning,m]),Be.useEffect(()=>{},[]);let _=Be.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:F=>n.navigate(F),push:(F,I,L)=>n.navigate(F,{state:I,preventScrollReset:L==null?void 0:L.preventScrollReset}),replace:(F,I,L)=>n.navigate(F,{replace:!0,state:I,preventScrollReset:L==null?void 0:L.preventScrollReset})}),[n]),x=n.basename||"/",E=Be.useMemo(()=>({router:n,navigator:_,static:!1,basename:x}),[n,_,x]),j=Be.useMemo(()=>({v7_relativeSplatPath:n.future.v7_relativeSplatPath}),[n.future.v7_relativeSplatPath]);return Be.useEffect(()=>Ahe(i,n.future),[i,n.future]),Be.createElement(Be.Fragment,null,Be.createElement(e_.Provider,{value:E},Be.createElement(r7.Provider,{value:a},Be.createElement(Rhe.Provider,{value:b.current},Be.createElement(Mhe.Provider,{value:c},Be.createElement(_he,{basename:x,location:a.location,navigationType:a.historyAction,navigator:_,future:j},a.initialized||n.future.v7_partialHydration?Be.createElement(Uhe,{routes:n.routes,future:n.future,state:a}):e))))),null)}const Uhe=Be.memo(Bhe);function Bhe(t){let{routes:e,future:n,state:i}=t;return fhe(e,void 0,i,n)}const Vhe=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Whe=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Hhe=Be.forwardRef(function(e,n){let{onClick:i,relative:a,reloadDocument:o,replace:r,state:s,target:c,to:l,preventScrollReset:u,viewTransition:f}=e,h=Dhe(e,Ehe),{basename:d}=Be.useContext(Ff),m,g=!1;if(typeof l=="string"&&Whe.test(l)&&(m=l,Vhe))try{let A=new URL(window.location.href),_=l.startsWith("//")?new URL(A.protocol+l):new URL(l),x=kg(_.pathname,d);_.origin===A.origin&&x!=null?l=x+_.search+_.hash:g=!0}catch{}let b=che(l,{relative:a}),v=Ghe(l,{replace:r,state:s,target:c,preventScrollReset:u,relative:a,viewTransition:f});function P(A){i&&i(A),A.defaultPrevented||v(A)}return Be.createElement("a",_P({},h,{href:m||b,onClick:g||o?i:P,ref:n,target:c}))});var Z3;(function(t){t.UseScrollRestoration="useScrollRestoration",t.UseSubmit="useSubmit",t.UseSubmitFetcher="useSubmitFetcher",t.UseFetcher="useFetcher",t.useViewTransitionState="useViewTransitionState"})(Z3||(Z3={}));var X3;(function(t){t.UseFetcher="useFetcher",t.UseFetchers="useFetchers",t.UseScrollRestoration="useScrollRestoration"})(X3||(X3={}));function Ghe(t,e){let{target:n,replace:i,state:a,preventScrollReset:o,relative:r,viewTransition:s}=e===void 0?{}:e,c=bj(),l=Eg(),u=a7(t,{relative:r});return Be.useCallback(f=>{if(Ohe(f,n)){f.preventDefault();let h=i!==void 0?i:ih(l)===ih(u);c(t,{replace:h,state:a,preventScrollReset:o,relative:r,viewTransition:s})}},[l,c,u,i,a,n,t,o,r,s])}const l7=1024;let Khe=0,Ik=class{constructor(e,n){this.from=e,this.to=n}};class Kt{constructor(e={}){this.id=Khe++,this.perNode=!!e.perNode,this.deserialize=e.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")})}add(e){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return typeof e!="function"&&(e=vo.match(e)),n=>{let i=e(n);return i===void 0?null:[this,i]}}}Kt.closedBy=new Kt({deserialize:t=>t.split(" ")});Kt.openedBy=new Kt({deserialize:t=>t.split(" ")});Kt.group=new Kt({deserialize:t=>t.split(" ")});Kt.isolate=new Kt({deserialize:t=>{if(t&&t!="rtl"&&t!="ltr"&&t!="auto")throw new RangeError("Invalid value for isolate: "+t);return t||"auto"}});Kt.contextHash=new Kt({perNode:!0});Kt.lookAhead=new Kt({perNode:!0});Kt.mounted=new Kt({perNode:!0});class kA{constructor(e,n,i){this.tree=e,this.overlay=n,this.parser=i}static get(e){return e&&e.props&&e.props[Kt.mounted.id]}}const Yhe=Object.create(null);let vo=class c7{constructor(e,n,i,a=0){this.name=e,this.props=n,this.id=i,this.flags=a}static define(e){let n=e.props&&e.props.length?Object.create(null):Yhe,i=(e.top?1:0)|(e.skipped?2:0)|(e.error?4:0)|(e.name==null?8:0),a=new c7(e.name||"",n,e.id,i);if(e.props){for(let o of e.props)if(Array.isArray(o)||(o=o(a)),o){if(o[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");n[o[0].id]=o[1]}}return a}prop(e){return this.props[e.id]}get isTop(){return(this.flags&1)>0}get isSkipped(){return(this.flags&2)>0}get isError(){return(this.flags&4)>0}get isAnonymous(){return(this.flags&8)>0}is(e){if(typeof e=="string"){if(this.name==e)return!0;let n=this.prop(Kt.group);return n?n.indexOf(e)>-1:!1}return this.id==e}static match(e){let n=Object.create(null);for(let i in e)for(let a of i.split(" "))n[a]=e[i];return i=>{for(let a=i.prop(Kt.group),o=-1;o<(a?a.length:0);o++){let r=n[o<0?i.name:a[o]];if(r)return r}}}};vo.none=new vo("",Object.create(null),0,8);class wj{constructor(e){this.types=e;for(let n=0;n0;for(let c=this.cursor(r|pi.IncludeAnonymous);;){let l=!1;if(c.from<=o&&c.to>=a&&(!s&&c.type.isAnonymous||n(c)!==!1)){if(c.firstChild())continue;l=!0}for(;l&&i&&(s||!c.type.isAnonymous)&&i(c),!c.nextSibling();){if(!c.parent())return;l=!0}}}prop(e){return e.perNode?this.props?this.props[e.id]:void 0:this.type.prop(e)}get propValues(){let e=[];if(this.props)for(let n in this.props)e.push([+n,this.props[n]]);return e}balance(e={}){return this.children.length<=8?this:Sj(vo.none,this.children,this.positions,0,this.children.length,0,this.length,(n,i,a)=>new Kn(this.type,n,i,a,this.propValues),e.makeTree||((n,i,a)=>new Kn(vo.none,n,i,a)))}static build(e){return Xhe(e)}}Kn.empty=new Kn(vo.none,[],[],0);class $j{constructor(e,n){this.buffer=e,this.index=n}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new $j(this.buffer,this.index)}}class Of{constructor(e,n,i){this.buffer=e,this.length=n,this.set=i}get type(){return vo.none}toString(){let e=[];for(let n=0;n0));c=r[c+3]);return s}slice(e,n,i){let a=this.buffer,o=new Uint16Array(n-e),r=0;for(let s=e,c=0;s=e&&ne;case 1:return n<=e&&i>e;case 2:return i>e;case 4:return!0}}function xP(t,e,n,i){for(var a;t.from==t.to||(n<1?t.from>=e:t.from>e)||(n>-1?t.to<=e:t.to0?s.length:-1;e!=l;e+=n){let u=s[e],f=c[e]+r.from;if(u7(a,i,f,f+u.length)){if(u instanceof Of){if(o&pi.ExcludeBuffers)continue;let h=u.findChild(0,u.buffer.length,n,i-f,a);if(h>-1)return new lf(new Jhe(r,u,e,f),null,h)}else if(o&pi.IncludeAnonymous||!u.type.isAnonymous||Aj(u)){let h;if(!(o&pi.IgnoreMounts)&&(h=kA.get(u))&&!h.overlay)return new no(h.tree,f,e,r);let d=new no(u,f,e,r);return o&pi.IncludeAnonymous||!d.type.isAnonymous?d:d.nextChild(n<0?u.children.length-1:0,n,i,a)}}}if(o&pi.IncludeAnonymous||!r.type.isAnonymous||(r.index>=0?e=r.index+n:e=n<0?-1:r._parent._tree.children.length,r=r._parent,!r))return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(e){return this.nextChild(0,1,e,2)}childBefore(e){return this.nextChild(this._tree.children.length-1,-1,e,-2)}enter(e,n,i=0){let a;if(!(i&pi.IgnoreOverlays)&&(a=kA.get(this._tree))&&a.overlay){let o=e-this.from;for(let{from:r,to:s}of a.overlay)if((n>0?r<=o:r=o:s>o))return new no(a.tree,a.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,e,n,i)}nextSignificantParent(){let e=this;for(;e.type.isAnonymous&&e._parent;)e=e._parent;return e}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}}function t4(t,e,n,i){let a=t.cursor(),o=[];if(!a.firstChild())return o;if(n!=null){for(let r=!1;!r;)if(r=a.type.is(n),!a.nextSibling())return o}for(;;){if(i!=null&&a.type.is(i))return o;if(a.type.is(e)&&o.push(a.node),!a.nextSibling())return i==null?o:[]}}function P2(t,e,n=e.length-1){for(let i=t.parent;n>=0;i=i.parent){if(!i)return!1;if(!i.type.isAnonymous){if(e[n]&&e[n]!=i.name)return!1;n--}}return!0}class Jhe{constructor(e,n,i,a){this.parent=e,this.buffer=n,this.index=i,this.start=a}}class lf extends f7{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(e,n,i){super(),this.context=e,this._parent=n,this.index=i,this.type=e.buffer.set.types[e.buffer.buffer[i]]}child(e,n,i){let{buffer:a}=this.context,o=a.findChild(this.index+4,a.buffer[this.index+3],e,n-this.context.start,i);return o<0?null:new lf(this.context,this,o)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(e){return this.child(1,e,2)}childBefore(e){return this.child(-1,e,-2)}enter(e,n,i=0){if(i&pi.ExcludeBuffers)return null;let{buffer:a}=this.context,o=a.findChild(this.index+4,a.buffer[this.index+3],n>0?1:-1,e-this.context.start,n);return o<0?null:new lf(this.context,this,o)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(e){return this._parent?null:this.context.parent.nextChild(this.context.index+e,e,0,4)}get nextSibling(){let{buffer:e}=this.context,n=e.buffer[this.index+3];return n<(this._parent?e.buffer[this._parent.index+3]:e.buffer.length)?new lf(this.context,this._parent,n):this.externalSibling(1)}get prevSibling(){let{buffer:e}=this.context,n=this._parent?this._parent.index+4:0;return this.index==n?this.externalSibling(-1):new lf(this.context,this._parent,e.findChild(n,this.index,-1,0,4))}get tree(){return null}toTree(){let e=[],n=[],{buffer:i}=this.context,a=this.index+4,o=i.buffer[this.index+3];if(o>a){let r=i.buffer[this.index+1];e.push(i.slice(a,o,r)),n.push(0)}return new Kn(this.type,e,n,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function p7(t){if(!t.length)return null;let e=0,n=t[0];for(let o=1;on.from||r.to=e){let s=new no(r.tree,r.overlay[0].from+o.from,-1,o);(a||(a=[i])).push(xP(s,e,n,!1))}}return a?p7(a):i}class b2{get name(){return this.type.name}constructor(e,n=0){if(this.mode=n,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,e instanceof no)this.yieldNode(e);else{this._tree=e.context.parent,this.buffer=e.context;for(let i=e._parent;i;i=i._parent)this.stack.unshift(i.index);this.bufferNode=e,this.yieldBuf(e.index)}}yieldNode(e){return e?(this._tree=e,this.type=e.type,this.from=e.from,this.to=e.to,!0):!1}yieldBuf(e,n){this.index=e;let{start:i,buffer:a}=this.buffer;return this.type=n||a.set.types[a.buffer[e]],this.from=i+a.buffer[e+1],this.to=i+a.buffer[e+2],!0}yield(e){return e?e instanceof no?(this.buffer=null,this.yieldNode(e)):(this.buffer=e.context,this.yieldBuf(e.index,e.type)):!1}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(e,n,i){if(!this.buffer)return this.yield(this._tree.nextChild(e<0?this._tree._tree.children.length-1:0,e,n,i,this.mode));let{buffer:a}=this.buffer,o=a.findChild(this.index+4,a.buffer[this.index+3],e,n-this.buffer.start,i);return o<0?!1:(this.stack.push(this.index),this.yieldBuf(o))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(e){return this.enterChild(1,e,2)}childBefore(e){return this.enterChild(-1,e,-2)}enter(e,n,i=this.mode){return this.buffer?i&pi.ExcludeBuffers?!1:this.enterChild(1,e,n):this.yield(this._tree.enter(e,n,i))}parent(){if(!this.buffer)return this.yieldNode(this.mode&pi.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let e=this.mode&pi.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(e)}sibling(e){if(!this.buffer)return this._tree._parent?this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+e,e,0,4,this.mode)):!1;let{buffer:n}=this.buffer,i=this.stack.length-1;if(e<0){let a=i<0?0:this.stack[i]+4;if(this.index!=a)return this.yieldBuf(n.findChild(a,this.index,-1,0,4))}else{let a=n.buffer[this.index+3];if(a<(i<0?n.buffer.length:n.buffer[this.stack[i]+3]))return this.yieldBuf(a)}return i<0?this.yield(this.buffer.parent.nextChild(this.buffer.index+e,e,0,4,this.mode)):!1}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(e){let n,i,{buffer:a}=this;if(a){if(e>0){if(this.index-1)for(let o=n+e,r=e<0?-1:i._tree.children.length;o!=r;o+=e){let s=i._tree.children[o];if(this.mode&pi.IncludeAnonymous||s instanceof Of||!s.type.isAnonymous||Aj(s))return!1}return!0}move(e,n){if(n&&this.enterChild(e,0,4))return!0;for(;;){if(this.sibling(e))return!0;if(this.atLastNode(e)||!this.parent())return!1}}next(e=!0){return this.move(1,e)}prev(e=!0){return this.move(-1,e)}moveTo(e,n=0){for(;(this.from==this.to||(n<1?this.from>=e:this.from>e)||(n>-1?this.to<=e:this.to=0;){for(let r=e;r;r=r._parent)if(r.index==a){if(a==this.index)return r;n=r,i=o+1;break e}a=this.stack[--o]}for(let a=i;a=0;o--){if(o<0)return P2(this.node,e,a);let r=i[n.buffer[this.stack[o]]];if(!r.isAnonymous){if(e[a]&&e[a]!=r.name)return!1;a--}}return!0}}function Aj(t){return t.children.some(e=>e instanceof Of||!e.type.isAnonymous||Aj(e))}function Xhe(t){var e;let{buffer:n,nodeSet:i,maxBufferLength:a=l7,reused:o=[],minRepeatType:r=i.types.length}=t,s=Array.isArray(n)?new $j(n,n.length):n,c=i.types,l=0,u=0;function f(x,E,j,F,I,L){let{id:V,start:q,end:S,size:D}=s,R=u;for(;D<0;)if(s.next(),D==-1){let z=o[V];j.push(z),F.push(q-x);return}else if(D==-3){l=V;return}else if(D==-4){u=V;return}else throw new RangeError(`Unrecognized record size: ${D}`);let C=c[V],H,X,ae=q-x;if(S-q<=a&&(X=b(s.pos-E,I))){let z=new Uint16Array(X.size-X.skip),M=s.pos-X.size,U=z.length;for(;s.pos>M;)U=v(X.start,z,U);H=new Of(z,S-X.start,i),ae=X.start-x}else{let z=s.pos-D;s.next();let M=[],U=[],W=V>=r?V:-1,T=0,G=S;for(;s.pos>z;)W>=0&&s.id==W&&s.size>=0?(s.end<=G-a&&(m(M,U,q,T,s.end,G,W,R),T=M.length,G=s.end),s.next()):L>2500?h(q,z,M,U):f(q,z,M,U,W,L+1);if(W>=0&&T>0&&T-1&&T>0){let oe=d(C);H=Sj(C,M,U,0,M.length,0,S-q,oe,oe)}else H=g(C,M,U,S-q,R-S)}j.push(H),F.push(ae)}function h(x,E,j,F){let I=[],L=0,V=-1;for(;s.pos>E;){let{id:q,start:S,end:D,size:R}=s;if(R>4)s.next();else{if(V>-1&&S=0;D-=3)q[R++]=I[D],q[R++]=I[D+1]-S,q[R++]=I[D+2]-S,q[R++]=R;j.push(new Of(q,I[2]-S,i)),F.push(S-x)}}function d(x){return(E,j,F)=>{let I=0,L=E.length-1,V,q;if(L>=0&&(V=E[L])instanceof Kn){if(!L&&V.type==x&&V.length==F)return V;(q=V.prop(Kt.lookAhead))&&(I=j[L]+V.length+q)}return g(x,E,j,F,I)}}function m(x,E,j,F,I,L,V,q){let S=[],D=[];for(;x.length>F;)S.push(x.pop()),D.push(E.pop()+j-I);x.push(g(i.types[V],S,D,L-I,q-L)),E.push(I-j)}function g(x,E,j,F,I=0,L){if(l){let V=[Kt.contextHash,l];L=L?[V].concat(L):[V]}if(I>25){let V=[Kt.lookAhead,I];L=L?[V].concat(L):[V]}return new Kn(x,E,j,F,L)}function b(x,E){let j=s.fork(),F=0,I=0,L=0,V=j.end-a,q={size:0,start:0,skip:0};e:for(let S=j.pos-x;j.pos>S;){let D=j.size;if(j.id==E&&D>=0){q.size=F,q.start=I,q.skip=L,L+=4,F+=4,j.next();continue}let R=j.pos-D;if(D<0||R=r?4:0,H=j.start;for(j.next();j.pos>R;){if(j.size<0)if(j.size==-3)C+=4;else break e;else j.id>=r&&(C+=4);j.next()}I=H,F+=D,L+=C}return(E<0||F==x)&&(q.size=F,q.start=I,q.skip=L),q.size>4?q:void 0}function v(x,E,j){let{id:F,start:I,end:L,size:V}=s;if(s.next(),V>=0&&F4){let S=s.pos-(V-4);for(;s.pos>S;)j=v(x,E,j)}E[--j]=q,E[--j]=L-x,E[--j]=I-x,E[--j]=F}else V==-3?l=F:V==-4&&(u=F);return j}let P=[],A=[];for(;s.pos>0;)f(t.start||0,t.bufferStart||0,P,A,-1,0);let _=(e=t.length)!==null&&e!==void 0?e:P.length?A[0]+P[0].length:0;return new Kn(c[t.topID],P.reverse(),A.reverse(),_)}const r4=new WeakMap;function m$(t,e){if(!t.isAnonymous||e instanceof Of||e.type!=t)return 1;let n=r4.get(e);if(n==null){n=1;for(let i of e.children){if(i.type!=t||!(i instanceof Kn)){n=1;break}n+=m$(t,i)}r4.set(e,n)}return n}function Sj(t,e,n,i,a,o,r,s,c){let l=0;for(let m=i;m=u)break;E+=j}if(A==_+1){if(E>u){let j=m[_];d(j.children,j.positions,0,j.children.length,g[_]+P);continue}f.push(m[_])}else{let j=g[A-1]+m[A-1].length-x;f.push(Sj(t,m,g,_,A,x,j,null,c))}h.push(x+P-o)}}return d(e,n,i,a,0),(s||c)(f,h,r)}class Bp{constructor(e,n,i,a,o=!1,r=!1){this.from=e,this.to=n,this.tree=i,this.offset=a,this.open=(o?1:0)|(r?2:0)}get openStart(){return(this.open&1)>0}get openEnd(){return(this.open&2)>0}static addTree(e,n=[],i=!1){let a=[new Bp(0,e.length,e,0,!1,i)];for(let o of n)o.to>e.length&&a.push(o);return a}static applyChanges(e,n,i=128){if(!n.length)return e;let a=[],o=1,r=e.length?e[0]:null;for(let s=0,c=0,l=0;;s++){let u=s=i)for(;r&&r.from=h.from||f<=h.to||l){let d=Math.max(h.from,c)-l,m=Math.min(h.to,f)-l;h=d>=m?null:new Bp(d,m,h.tree,h.offset+l,s>0,!!u)}if(h&&a.push(h),r.to>f)break;r=onew Ik(a.from,a.to)):[new Ik(0,0)]:[new Ik(0,e.length)],this.createParse(e,n||[],i)}parse(e,n,i){let a=this.startParse(e,n,i);for(;;){let o=a.advance();if(o)return o}}}class ede{constructor(e){this.string=e}get length(){return this.string.length}chunk(e){return this.string.slice(e)}get lineChunks(){return!1}read(e,n){return this.string.slice(e,n)}}new Kt({perNode:!0});var n4={};let tde=class w2{constructor(e,n,i,a,o,r,s,c,l,u=0,f){this.p=e,this.stack=n,this.state=i,this.reducePos=a,this.pos=o,this.score=r,this.buffer=s,this.bufferBase=c,this.curContext=l,this.lookAhead=u,this.parent=f}toString(){return`[${this.stack.filter((e,n)=>n%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(e,n,i=0){let a=e.parser.context;return new w2(e,[],n,i,i,0,[],0,a?new i4(a,a.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(e,n){this.stack.push(this.state,n,this.bufferBase+this.buffer.length),this.state=e}reduce(e){var n;let i=e>>19,a=e&65535,{parser:o}=this.p,r=this.reducePos=2e3&&!(!((n=this.p.parser.nodeSet.types[a])===null||n===void 0)&&n.isAnonymous)&&(l==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=u):this.p.lastBigReductionSizec;)this.stack.pop();this.reduceContext(a,l)}storeNode(e,n,i,a=4,o=!1){if(e==0&&(!this.stack.length||this.stack[this.stack.length-1]0&&r.buffer[s-4]==0&&r.buffer[s-1]>-1){if(n==i)return;if(r.buffer[s-2]>=n){r.buffer[s-2]=i;return}}}if(!o||this.pos==i)this.buffer.push(e,n,i,a);else{let r=this.buffer.length;if(r>0&&this.buffer[r-4]!=0){let s=!1;for(let c=r;c>0&&this.buffer[c-2]>i;c-=4)if(this.buffer[c-1]>=0){s=!0;break}if(s)for(;r>0&&this.buffer[r-2]>i;)this.buffer[r]=this.buffer[r-4],this.buffer[r+1]=this.buffer[r-3],this.buffer[r+2]=this.buffer[r-2],this.buffer[r+3]=this.buffer[r-1],r-=4,a>4&&(a-=4)}this.buffer[r]=e,this.buffer[r+1]=n,this.buffer[r+2]=i,this.buffer[r+3]=a}}shift(e,n,i,a){if(e&131072)this.pushState(e&65535,this.pos);else if(e&262144)this.pos=a,this.shiftContext(n,i),n<=this.p.parser.maxNode&&this.buffer.push(n,i,a,4);else{let o=e,{parser:r}=this.p;(a>this.pos||n<=r.maxNode)&&(this.pos=a,r.stateFlag(o,1)||(this.reducePos=a)),this.pushState(o,i),this.shiftContext(n,i),n<=r.maxNode&&this.buffer.push(n,i,a,4)}}apply(e,n,i,a){e&65536?this.reduce(e):this.shift(e,n,i,a)}useNode(e,n){let i=this.p.reused.length-1;(i<0||this.p.reused[i]!=e)&&(this.p.reused.push(e),i++);let a=this.pos;this.reducePos=this.pos=a+e.length,this.pushState(n,a),this.buffer.push(i,a,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,e,this,this.p.stream.reset(this.pos-e.length)))}split(){let e=this,n=e.buffer.length;for(;n>0&&e.buffer[n-2]>e.reducePos;)n-=4;let i=e.buffer.slice(n),a=e.bufferBase+n;for(;e&&a==e.bufferBase;)e=e.parent;return new w2(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,i,a,this.curContext,this.lookAhead,e)}recoverByDelete(e,n){let i=e<=this.p.parser.maxNode;i&&this.storeNode(e,this.pos,n,4),this.storeNode(0,this.pos,n,i?8:4),this.pos=this.reducePos=n,this.score-=190}canShift(e){for(let n=new rde(this);;){let i=this.p.parser.stateSlot(n.state,4)||this.p.parser.hasAction(n.state,e);if(i==0)return!1;if(!(i&65536))return!0;n.reduce(i)}}recoverByInsert(e){if(this.stack.length>=300)return[];let n=this.p.parser.nextStates(this.state);if(n.length>8||this.stack.length>=120){let a=[];for(let o=0,r;oc&1&&s==r)||a.push(n[o],r)}n=a}let i=[];for(let a=0;a>19,a=n&65535,o=this.stack.length-i*3;if(o<0||e.getGoto(this.stack[o],a,!1)<0){let r=this.findForcedReduction();if(r==null)return!1;n=r}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(n),!0}findForcedReduction(){let{parser:e}=this.p,n=[],i=(a,o)=>{if(!n.includes(a))return n.push(a),e.allActions(a,r=>{if(!(r&393216))if(r&65536){let s=(r>>19)-o;if(s>1){let c=r&65535,l=this.stack.length-s*3;if(l>=0&&e.getGoto(this.stack[l],c,!1)>=0)return s<<19|65536|c}}else{let s=i(r,o+1);if(s!=null)return s}})};return i(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(this.stack.length!=3)return!1;let{parser:e}=this.p;return e.data[e.stateSlot(this.state,1)]==65535&&!e.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(e){if(this.state!=e.state||this.stack.length!=e.stack.length)return!1;for(let n=0;nthis.lookAhead&&(this.emitLookAhead(),this.lookAhead=e)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}};class i4{constructor(e,n){this.tracker=e,this.context=n,this.hash=e.strict?e.hash(n):0}}class rde{constructor(e){this.start=e,this.state=e.state,this.stack=e.stack,this.base=this.stack.length}reduce(e){let n=e&65535,i=e>>19;i==0?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=(i-1)*3;let a=this.start.p.parser.getGoto(this.stack[this.base-3],n,!0);this.state=a}}class OA{constructor(e,n,i){this.stack=e,this.pos=n,this.index=i,this.buffer=e.buffer,this.index==0&&this.maybeNext()}static create(e,n=e.bufferBase+e.buffer.length){return new OA(e,n,n-e.bufferBase)}maybeNext(){let e=this.stack.parent;e!=null&&(this.index=this.stack.bufferBase-e.bufferBase,this.stack=e,this.buffer=e.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,this.index==0&&this.maybeNext()}fork(){return new OA(this.stack,this.pos,this.index)}}function G1(t,e=Uint16Array){if(typeof t!="string")return t;let n=null;for(let i=0,a=0;i=92&&r--,r>=34&&r--;let c=r-32;if(c>=46&&(c-=46,s=!0),o+=c,s)break;o*=46}n?n[a++]=o:n=new e(o)}return n}class y${constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const a4=new y$;class nde{constructor(e,n){this.input=e,this.ranges=n,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=a4,this.rangeIndex=0,this.pos=this.chunkPos=n[0].from,this.range=n[0],this.end=n[n.length-1].to,this.readNext()}resolveOffset(e,n){let i=this.range,a=this.rangeIndex,o=this.pos+e;for(;oi.to:o>=i.to;){if(a==this.ranges.length-1)return null;let r=this.ranges[++a];o+=r.from-i.to,i=r}return o}clipPos(e){if(e>=this.range.from&&ee)return Math.max(e,n.from);return this.end}peek(e){let n=this.chunkOff+e,i,a;if(n>=0&&n=this.chunk2Pos&&is.to&&(this.chunk2=this.chunk2.slice(0,s.to-i)),a=this.chunk2.charCodeAt(0)}}return i>=this.token.lookAhead&&(this.token.lookAhead=i+1),a}acceptToken(e,n=0){let i=n?this.resolveOffset(n,-1):this.pos;if(i==null||i=this.chunk2Pos&&this.posthis.range.to?e.slice(0,this.range.to-this.pos):e,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(e=1){for(this.chunkOff+=e;this.pos+e>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();e-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=e,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(e,n){if(n?(this.token=n,n.start=e,n.lookAhead=e+1,n.value=n.extended=-1):this.token=a4,this.pos!=e){if(this.pos=e,e==this.end)return this.setDone(),this;for(;e=this.range.to;)this.range=this.ranges[++this.rangeIndex];e>=this.chunkPos&&e=this.chunkPos&&n<=this.chunkPos+this.chunk.length)return this.chunk.slice(e-this.chunkPos,n-this.chunkPos);if(e>=this.chunk2Pos&&n<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(e-this.chunk2Pos,n-this.chunk2Pos);if(e>=this.range.from&&n<=this.range.to)return this.input.read(e,n);let i="";for(let a of this.ranges){if(a.from>=n)break;a.to>e&&(i+=this.input.read(Math.max(a.from,e),Math.min(a.to,n)))}return i}}class Qd{constructor(e,n){this.data=e,this.id=n}token(e,n){let{parser:i}=n.p;ide(this.data,e,n,this.id,i.data,i.tokenPrecTable)}}Qd.prototype.contextual=Qd.prototype.fallback=Qd.prototype.extend=!1;Qd.prototype.fallback=Qd.prototype.extend=!1;function ide(t,e,n,i,a,o){let r=0,s=1<0){let m=t[d];if(c.allows(m)&&(e.token.value==-1||e.token.value==m||ade(m,e.token.value,a,o))){e.acceptToken(m);break}}let u=e.next,f=0,h=t[r+2];if(e.next<0&&h>f&&t[l+h*3-3]==65535){r=t[l+h*3-1];continue e}for(;f>1,m=l+d+(d<<1),g=t[m],b=t[m+1]||65536;if(u=b)f=d+1;else{r=t[m+2],e.advance();continue e}}break}}function s4(t,e,n){for(let i=e,a;(a=t[i])!=65535;i++)if(a==n)return i-e;return-1}function ade(t,e,n,i){let a=s4(n,i,e);return a<0||s4(n,i,t)e)&&!i.type.isError)return n<0?Math.max(0,Math.min(i.to-1,e-25)):Math.min(t.length,Math.max(i.from+1,e+25));if(n<0?i.prevSibling():i.nextSibling())break;if(!i.parent())return n<0?0:t.length}}class sde{constructor(e,n){this.fragments=e,this.nodeSet=n,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let e=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(e){for(this.safeFrom=e.openStart?o4(e.tree,e.from+e.offset,1)-e.offset:e.from,this.safeTo=e.openEnd?o4(e.tree,e.to+e.offset,-1)-e.offset:e.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(e.tree),this.start.push(-e.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(e){if(ee)return this.nextStart=r,null;if(o instanceof Kn){if(r==e){if(r=Math.max(this.safeFrom,e)&&(this.trees.push(o),this.start.push(r),this.index.push(0))}else this.index[n]++,this.nextStart=r+o.length}}}class ode{constructor(e,n){this.stream=n,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=e.tokenizers.map(i=>new y$)}getActions(e){let n=0,i=null,{parser:a}=e.p,{tokenizers:o}=a,r=a.stateSlot(e.state,3),s=e.curContext?e.curContext.hash:0,c=0;for(let l=0;lf.end+25&&(c=Math.max(f.lookAhead,c)),f.value!=0)){let h=n;if(f.extended>-1&&(n=this.addActions(e,f.extended,f.end,n)),n=this.addActions(e,f.value,f.end,n),!u.extend&&(i=f,n>h))break}}for(;this.actions.length>n;)this.actions.pop();return c&&e.setLookAhead(c),!i&&e.pos==this.stream.end&&(i=new y$,i.value=e.p.parser.eofTerm,i.start=i.end=e.pos,n=this.addActions(e,i.value,i.end,n)),this.mainToken=i,this.actions}getMainToken(e){if(this.mainToken)return this.mainToken;let n=new y$,{pos:i,p:a}=e;return n.start=i,n.end=Math.min(i+1,a.stream.end),n.value=i==a.stream.end?a.parser.eofTerm:0,n}updateCachedToken(e,n,i){let a=this.stream.clipPos(i.pos);if(n.token(this.stream.reset(a,e),i),e.value>-1){let{parser:o}=i.p;for(let r=0;r=0&&i.p.parser.dialect.allows(s>>1)){s&1?e.extended=s>>1:e.value=s>>1;break}}}else e.value=0,e.end=this.stream.clipPos(a+1)}putAction(e,n,i,a){for(let o=0;oe.bufferLength*4?new sde(i,e.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let e=this.stacks,n=this.minStackPos,i=this.stacks=[],a,o;if(this.bigReductionCount>300&&e.length==1){let[r]=e;for(;r.forceReduce()&&r.stack.length&&r.stack[r.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let r=0;rn)i.push(s);else{if(this.advanceStack(s,i,e))continue;{a||(a=[],o=[]),a.push(s);let c=this.tokens.getMainToken(s);o.push(c.value,c.end)}}break}}if(!i.length){let r=a&&ude(a);if(r)return is&&console.log("Finish with "+this.stackID(r)),this.stackToTree(r);if(this.parser.strict)throw is&&a&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+n);this.recovering||(this.recovering=5)}if(this.recovering&&a){let r=this.stoppedAt!=null&&a[0].pos>this.stoppedAt?a[0]:this.runRecovery(a,o,i);if(r)return is&&console.log("Force-finish "+this.stackID(r)),this.stackToTree(r.forceAll())}if(this.recovering){let r=this.recovering==1?1:this.recovering*3;if(i.length>r)for(i.sort((s,c)=>c.score-s.score);i.length>r;)i.pop();i.some(s=>s.reducePos>n)&&this.recovering--}else if(i.length>1){e:for(let r=0;r500&&l.buffer.length>500)if((s.score-l.score||s.buffer.length-l.buffer.length)>0)i.splice(c--,1);else{i.splice(r--,1);continue e}}}i.length>12&&i.splice(12,i.length-12)}this.minStackPos=i[0].pos;for(let r=1;r ":"";if(this.stoppedAt!=null&&a>this.stoppedAt)return e.forceReduce()?e:null;if(this.fragments){let l=e.curContext&&e.curContext.tracker.strict,u=l?e.curContext.hash:0;for(let f=this.fragments.nodeAt(a);f;){let h=this.parser.nodeSet.types[f.type.id]==f.type?o.getGoto(e.state,f.type.id):-1;if(h>-1&&f.length&&(!l||(f.prop(Kt.contextHash)||0)==u))return e.useNode(f,h),is&&console.log(r+this.stackID(e)+` (via reuse of ${o.getName(f.type.id)})`),!0;if(!(f instanceof Kn)||f.children.length==0||f.positions[0]>0)break;let d=f.children[0];if(d instanceof Kn&&f.positions[0]==0)f=d;else break}}let s=o.stateSlot(e.state,4);if(s>0)return e.reduce(s),is&&console.log(r+this.stackID(e)+` (via always-reduce ${o.getName(s&65535)})`),!0;if(e.stack.length>=8400)for(;e.stack.length>6e3&&e.forceReduce(););let c=this.tokens.getActions(e);for(let l=0;la?n.push(m):i.push(m)}return!1}advanceFully(e,n){let i=e.pos;for(;;){if(!this.advanceStack(e,null,null))return!1;if(e.pos>i)return l4(e,n),!0}}runRecovery(e,n,i){let a=null,o=!1;for(let r=0;r ":"";if(s.deadEnd&&(o||(o=!0,s.restart(),is&&console.log(u+this.stackID(s)+" (restarted)"),this.advanceFully(s,i))))continue;let f=s.split(),h=u;for(let d=0;f.forceReduce()&&d<10&&(is&&console.log(h+this.stackID(f)+" (via force-reduce)"),!this.advanceFully(f,i));d++)is&&(h=this.stackID(f)+" -> ");for(let d of s.recoverByInsert(c))is&&console.log(u+this.stackID(d)+" (via recover-insert)"),this.advanceFully(d,i);this.stream.end>s.pos?(l==s.pos&&(l++,c=0),s.recoverByDelete(c,l),is&&console.log(u+this.stackID(s)+` (via recover-delete ${this.parser.getName(c)})`),l4(s,i)):(!a||a.scoree.topRules[s][1]),a=[];for(let s=0;s=0)o(u,c,s[l++]);else{let f=s[l+-u];for(let h=-u;h>0;h--)o(s[l++],c,f);l++}}}this.nodeSet=new wj(n.map((s,c)=>vo.define({name:c>=this.minRepeatTerm?void 0:s,id:c,props:a[c],top:i.indexOf(c)>-1,error:c==0,skipped:e.skippedNodes&&e.skippedNodes.indexOf(c)>-1}))),e.propSources&&(this.nodeSet=this.nodeSet.extend(...e.propSources)),this.strict=!1,this.bufferLength=l7;let r=G1(e.tokenData);this.context=e.context,this.specializerSpecs=e.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let s=0;stypeof s=="number"?new Qd(r,s):s),this.topRules=e.topRules,this.dialects=e.dialects||{},this.dynamicPrecedences=e.dynamicPrecedences||null,this.tokenPrecTable=e.tokenPrec,this.termNames=e.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(e,n,i){let a=new lde(this,e,n,i);for(let o of this.wrappers)a=o(a,e,n,i);return a}getGoto(e,n,i=!1){let a=this.goto;if(n>=a[0])return-1;for(let o=a[n+1];;){let r=a[o++],s=r&1,c=a[o++];if(s&&i)return c;for(let l=o+(r>>1);o0}validAction(e,n){return!!this.allActions(e,i=>i==n?!0:null)}allActions(e,n){let i=this.stateSlot(e,4),a=i?n(i):void 0;for(let o=this.stateSlot(e,1);a==null;o+=3){if(this.data[o]==65535)if(this.data[o+1]==1)o=gc(this.data,o+2);else break;a=n(gc(this.data,o+1))}return a}nextStates(e){let n=[];for(let i=this.stateSlot(e,1);;i+=3){if(this.data[i]==65535)if(this.data[i+1]==1)i=gc(this.data,i+2);else break;if(!(this.data[i+2]&1)){let a=this.data[i+1];n.some((o,r)=>r&1&&o==a)||n.push(this.data[i],a)}}return n}configure(e){let n=Object.assign(Object.create(EA.prototype),this);if(e.props&&(n.nodeSet=this.nodeSet.extend(...e.props)),e.top){let i=this.topRules[e.top];if(!i)throw new RangeError(`Invalid top rule name ${e.top}`);n.top=i}return e.tokenizers&&(n.tokenizers=this.tokenizers.map(i=>{let a=e.tokenizers.find(o=>o.from==i);return a?a.to:i})),e.specializers&&(n.specializers=this.specializers.slice(),n.specializerSpecs=this.specializerSpecs.map((i,a)=>{let o=e.specializers.find(s=>s.from==i.external);if(!o)return i;let r=Object.assign(Object.assign({},i),{external:o.to});return n.specializers[a]=c4(r),r})),e.contextTracker&&(n.context=e.contextTracker),e.dialect&&(n.dialect=this.parseDialect(e.dialect)),e.strict!=null&&(n.strict=e.strict),e.wrap&&(n.wrappers=n.wrappers.concat(e.wrap)),e.bufferLength!=null&&(n.bufferLength=e.bufferLength),n}hasWrappers(){return this.wrappers.length>0}getName(e){return this.termNames?this.termNames[e]:String(e<=this.maxNode&&this.nodeSet.types[e].name||e)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(e){let n=this.dynamicPrecedences;return n==null?0:n[e]||0}parseDialect(e){let n=Object.keys(this.dialects),i=n.map(()=>!1);if(e)for(let o of e.split(" ")){let r=n.indexOf(o);r>=0&&(i[r]=!0)}let a=null;for(let o=0;oi)&&n.p.parser.stateFlag(n.state,2)&&(!e||e.scoret.external(n,i)<<1|e}return t.get}let fde=0;class Ws{constructor(e,n,i,a){this.name=e,this.set=n,this.base=i,this.modified=a,this.id=fde++}toString(){let{name:e}=this;for(let n of this.modified)n.name&&(e=`${n.name}(${e})`);return e}static define(e,n){let i=typeof e=="string"?e:"?";if(e instanceof Ws&&(n=e),n!=null&&n.base)throw new Error("Can not derive from a modified tag");let a=new Ws(i,[],null,[]);if(a.set.push(a),n)for(let o of n.set)a.set.push(o);return a}static defineModifier(e){let n=new IA(e);return i=>i.modified.indexOf(n)>-1?i:IA.get(i.base||i,i.modified.concat(n).sort((a,o)=>a.id-o.id))}}let pde=0;class IA{constructor(e){this.name=e,this.instances=[],this.id=pde++}static get(e,n){if(!n.length)return e;let i=n[0].instances.find(s=>s.base==e&&hde(n,s.modified));if(i)return i;let a=[],o=new Ws(e.name,a,e,n);for(let s of n)s.instances.push(o);let r=dde(n);for(let s of e.set)if(!s.modified.length)for(let c of r)a.push(IA.get(s,c));return o}}function hde(t,e){return t.length==e.length&&t.every((n,i)=>n==e[i])}function dde(t){let e=[[]];for(let n=0;ni.length-n.length)}function d7(t){let e=Object.create(null);for(let n in t){let i=t[n];Array.isArray(i)||(i=[i]);for(let a of n.split(" "))if(a){let o=[],r=2,s=a;for(let f=0;;){if(s=="..."&&f>0&&f+3==a.length){r=1;break}let h=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(s);if(!h)throw new RangeError("Invalid path: "+a);if(o.push(h[0]=="*"?"":h[0][0]=='"'?JSON.parse(h[0]):h[0]),f+=h[0].length,f==a.length)break;let d=a[f++];if(f==a.length&&d=="!"){r=0;break}if(d!="/")throw new RangeError("Invalid path: "+a);s=a.slice(f)}let c=o.length-1,l=o[c];if(!l)throw new RangeError("Invalid path: "+a);let u=new CA(i,r,c>0?o.slice(0,c):null);e[l]=u.sort(e[l])}}return m7.add(e)}const m7=new Kt;let CA=class{constructor(e,n,i,a){this.tags=e,this.mode=n,this.context=i,this.next=a}get opaque(){return this.mode==0}get inherit(){return this.mode==1}sort(e){return!e||e.depth{let r=a;for(let s of o)for(let c of s.set){let l=n[c.id];if(l){r=r?r+" "+l:l;break}}return r},scope:i}}function mde(t,e){let n=null;for(let i of t){let a=i.style(e);a&&(n=n?n+" "+a:a)}return n}function yde(t,e,n,i=0,a=t.length){let o=new gde(i,Array.isArray(e)?e:[e],n);o.highlightRange(t.cursor(),i,a,"",o.highlighters),o.flush(a)}class gde{constructor(e,n,i){this.at=e,this.highlighters=n,this.span=i,this.class=""}startSpan(e,n){n!=this.class&&(this.flush(e),e>this.at&&(this.at=e),this.class=n)}flush(e){e>this.at&&this.class&&this.span(this.at,e,this.class)}highlightRange(e,n,i,a,o){let{type:r,from:s,to:c}=e;if(s>=i||c<=n)return;r.isTop&&(o=this.highlighters.filter(d=>!d.scope||d.scope(r)));let l=a,u=vde(e)||CA.empty,f=mde(o,u.tags);if(f&&(l&&(l+=" "),l+=f,u.mode==1&&(a+=(a?" ":"")+f)),this.startSpan(Math.max(n,s),l),u.opaque)return;let h=e.tree&&e.tree.prop(Kt.mounted);if(h&&h.overlay){let d=e.node.enter(h.overlay[0].from+s,1),m=this.highlighters.filter(b=>!b.scope||b.scope(h.tree.type)),g=e.firstChild();for(let b=0,v=s;;b++){let P=b=A||!e.nextSibling())););if(!P||A>i)break;v=P.to+s,v>n&&(this.highlightRange(d.cursor(),Math.max(n,P.from+s),Math.min(i,v),"",m),this.startSpan(Math.min(i,v),l))}g&&e.parent()}else if(e.firstChild()){h&&(a="");do if(!(e.to<=n)){if(e.from>=i)break;this.highlightRange(e,n,i,a,o),this.startSpan(Math.min(i,e.to),l)}while(e.nextSibling());e.parent()}}}function vde(t){let e=t.type.prop(m7);for(;e&&e.context&&!t.matchContext(e.context);)e=e.next;return e||null}const Xe=Ws.define,K1=Xe(),Yu=Xe(),u4=Xe(Yu),f4=Xe(Yu),Ju=Xe(),Y1=Xe(Ju),Tk=Xe(Ju),$l=Xe(),np=Xe($l),gl=Xe(),vl=Xe(),$2=Xe(),F0=Xe($2),J1=Xe(),Te={comment:K1,lineComment:Xe(K1),blockComment:Xe(K1),docComment:Xe(K1),name:Yu,variableName:Xe(Yu),typeName:u4,tagName:Xe(u4),propertyName:f4,attributeName:Xe(f4),className:Xe(Yu),labelName:Xe(Yu),namespace:Xe(Yu),macroName:Xe(Yu),literal:Ju,string:Y1,docString:Xe(Y1),character:Xe(Y1),attributeValue:Xe(Y1),number:Tk,integer:Xe(Tk),float:Xe(Tk),bool:Xe(Ju),regexp:Xe(Ju),escape:Xe(Ju),color:Xe(Ju),url:Xe(Ju),keyword:gl,self:Xe(gl),null:Xe(gl),atom:Xe(gl),unit:Xe(gl),modifier:Xe(gl),operatorKeyword:Xe(gl),controlKeyword:Xe(gl),definitionKeyword:Xe(gl),moduleKeyword:Xe(gl),operator:vl,derefOperator:Xe(vl),arithmeticOperator:Xe(vl),logicOperator:Xe(vl),bitwiseOperator:Xe(vl),compareOperator:Xe(vl),updateOperator:Xe(vl),definitionOperator:Xe(vl),typeOperator:Xe(vl),controlOperator:Xe(vl),punctuation:$2,separator:Xe($2),bracket:F0,angleBracket:Xe(F0),squareBracket:Xe(F0),paren:Xe(F0),brace:Xe(F0),content:$l,heading:np,heading1:Xe(np),heading2:Xe(np),heading3:Xe(np),heading4:Xe(np),heading5:Xe(np),heading6:Xe(np),contentSeparator:Xe($l),list:Xe($l),quote:Xe($l),emphasis:Xe($l),strong:Xe($l),link:Xe($l),monospace:Xe($l),strikethrough:Xe($l),inserted:Xe(),deleted:Xe(),changed:Xe(),invalid:Xe(),meta:J1,documentMeta:Xe(J1),annotation:Xe(J1),processingInstruction:Xe(J1),definition:Ws.defineModifier("definition"),constant:Ws.defineModifier("constant"),function:Ws.defineModifier("function"),standard:Ws.defineModifier("standard"),local:Ws.defineModifier("local"),special:Ws.defineModifier("special")};for(let t in Te){let e=Te[t];e instanceof Ws&&(e.name=t)}y7([{tag:Te.link,class:"tok-link"},{tag:Te.heading,class:"tok-heading"},{tag:Te.emphasis,class:"tok-emphasis"},{tag:Te.strong,class:"tok-strong"},{tag:Te.keyword,class:"tok-keyword"},{tag:Te.atom,class:"tok-atom"},{tag:Te.bool,class:"tok-bool"},{tag:Te.url,class:"tok-url"},{tag:Te.labelName,class:"tok-labelName"},{tag:Te.inserted,class:"tok-inserted"},{tag:Te.deleted,class:"tok-deleted"},{tag:Te.literal,class:"tok-literal"},{tag:Te.string,class:"tok-string"},{tag:Te.number,class:"tok-number"},{tag:[Te.regexp,Te.escape,Te.special(Te.string)],class:"tok-string2"},{tag:Te.variableName,class:"tok-variableName"},{tag:Te.local(Te.variableName),class:"tok-variableName tok-local"},{tag:Te.definition(Te.variableName),class:"tok-variableName tok-definition"},{tag:Te.special(Te.variableName),class:"tok-variableName2"},{tag:Te.definition(Te.propertyName),class:"tok-propertyName tok-definition"},{tag:Te.typeName,class:"tok-typeName"},{tag:Te.namespace,class:"tok-namespace"},{tag:Te.className,class:"tok-className"},{tag:Te.macroName,class:"tok-macroName"},{tag:Te.propertyName,class:"tok-propertyName"},{tag:Te.operator,class:"tok-operator"},{tag:Te.comment,class:"tok-comment"},{tag:Te.meta,class:"tok-meta"},{tag:Te.invalid,class:"tok-invalid"},{tag:Te.punctuation,class:"tok-punctuation"}]);const Pde=d7({String:Te.string,Number:Te.number,"True False":Te.bool,PropertyName:Te.propertyName,Null:Te.null,",":Te.separator,"[ ]":Te.squareBracket,"{ }":Te.brace}),bde=EA.deserialize({version:14,states:"$bOVQPOOOOQO'#Cb'#CbOnQPO'#CeOvQPO'#CjOOQO'#Cp'#CpQOQPOOOOQO'#Cg'#CgO}QPO'#CfO!SQPO'#CrOOQO,59P,59PO![QPO,59PO!aQPO'#CuOOQO,59U,59UO!iQPO,59UOVQPO,59QOqQPO'#CkO!nQPO,59^OOQO1G.k1G.kOVQPO'#ClO!vQPO,59aOOQO1G.p1G.pOOQO1G.l1G.lOOQO,59V,59VOOQO-E6i-E6iOOQO,59W,59WOOQO-E6j-E6j",stateData:"#O~OcOS~OQSORSOSSOTSOWQO]ROePO~OVXOeUO~O[[O~PVOg^O~Oh_OVfX~OVaO~OhbO[iX~O[dO~Oh_OVfa~OhbO[ia~O",goto:"!kjPPPPPPkPPkqwPPk{!RPPP!XP!ePP!hXSOR^bQWQRf_TVQ_Q`WRg`QcZRicQTOQZRQe^RhbRYQR]R",nodeNames:"⚠ JsonText True False Null Number String } { Object Property PropertyName ] [ Array",maxTerm:25,nodeProps:[["isolate",-2,6,11,""],["openedBy",7,"{",12,"["],["closedBy",8,"}",13,"]"]],propSources:[Pde],skippedNodes:[0],repeatNodeCount:2,tokenData:"(|~RaXY!WYZ!W]^!Wpq!Wrs!]|}$u}!O$z!Q!R%T!R![&c![!]&t!}#O&y#P#Q'O#Y#Z'T#b#c'r#h#i(Z#o#p(r#q#r(w~!]Oc~~!`Wpq!]qr!]rs!xs#O!]#O#P!}#P;'S!];'S;=`$o<%lO!]~!}Oe~~#QXrs!]!P!Q!]#O#P!]#U#V!]#Y#Z!]#b#c!]#f#g!]#h#i!]#i#j#m~#pR!Q![#y!c!i#y#T#Z#y~#|R!Q![$V!c!i$V#T#Z$V~$YR!Q![$c!c!i$c#T#Z$c~$fR!Q![!]!c!i!]#T#Z!]~$rP;=`<%l!]~$zOh~~$}Q!Q!R%T!R![&c~%YRT~!O!P%c!g!h%w#X#Y%w~%fP!Q![%i~%nRT~!Q![%i!g!h%w#X#Y%w~%zR{|&T}!O&T!Q![&Z~&WP!Q![&Z~&`PT~!Q![&Z~&hST~!O!P%c!Q![&c!g!h%w#X#Y%w~&yOg~~'OO]~~'TO[~~'WP#T#U'Z~'^P#`#a'a~'dP#g#h'g~'jP#X#Y'm~'rOR~~'uP#i#j'x~'{P#`#a(O~(RP#`#a(U~(ZOS~~(^P#f#g(a~(dP#i#j(g~(jP#X#Y(m~(rOQ~~(wOW~~(|OV~",tokenizers:[0],topRules:{JsonText:[0,1]},tokenPrec:0});class fr{lineAt(e){if(e<0||e>this.length)throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,n,i){[e,n]=sg(this,e,n);let a=[];return this.decompose(0,e,a,2),i.length&&i.decompose(0,i.length,a,3),this.decompose(n,this.length,a,1),Dl.from(a,this.length-(n-e)+i.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,n=this.length){[e,n]=sg(this,e,n);let i=[];return this.decompose(e,n,i,0),Dl.from(i,n-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let n=this.scanIdentical(e,1),i=this.length-this.scanIdentical(e,-1),a=new zv(this),o=new zv(e);for(let r=n,s=n;;){if(a.next(r),o.next(r),r=0,a.lineBreak!=o.lineBreak||a.done!=o.done||a.value!=o.value)return!1;if(s+=a.value.length,a.done||s>=i)return!0}}iter(e=1){return new zv(this,e)}iterRange(e,n=this.length){return new g7(this,e,n)}iterLines(e,n){let i;if(e==null)i=this.iter();else{n==null&&(n=this.lines+1);let a=this.line(e).from;i=this.iterRange(a,Math.max(a,n==this.lines+1?this.length:n<=1?0:this.line(n-1).to))}return new v7(i)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}constructor(){}static of(e){if(e.length==0)throw new RangeError("A document must have at least one line");return e.length==1&&!e[0]?fr.empty:e.length<=32?new Dn(e):Dl.from(Dn.split(e,[]))}}class Dn extends fr{constructor(e,n=wde(e)){super(),this.text=e,this.length=n}get lines(){return this.text.length}get children(){return null}lineInner(e,n,i,a){for(let o=0;;o++){let r=this.text[o],s=a+r.length;if((n?i:s)>=e)return new $de(a,s,i,r);a=s+1,i++}}decompose(e,n,i,a){let o=e<=0&&n>=this.length?this:new Dn(p4(this.text,e,n),Math.min(n,this.length)-Math.max(0,e));if(a&1){let r=i.pop(),s=g$(o.text,r.text.slice(),0,o.length);if(s.length<=32)i.push(new Dn(s,r.length+o.length));else{let c=s.length>>1;i.push(new Dn(s.slice(0,c)),new Dn(s.slice(c)))}}else i.push(o)}replace(e,n,i){if(!(i instanceof Dn))return super.replace(e,n,i);[e,n]=sg(this,e,n);let a=g$(this.text,g$(i.text,p4(this.text,0,e)),n),o=this.length+i.length-(n-e);return a.length<=32?new Dn(a,o):Dl.from(Dn.split(a,[]),o)}sliceString(e,n=this.length,i=` +`){[e,n]=sg(this,e,n);let a="";for(let o=0,r=0;o<=n&&re&&r&&(a+=i),eo&&(a+=s.slice(Math.max(0,e-o),n-o)),o=c+1}return a}flatten(e){for(let n of this.text)e.push(n)}scanIdentical(){return 0}static split(e,n){let i=[],a=-1;for(let o of e)i.push(o),a+=o.length+1,i.length==32&&(n.push(new Dn(i,a)),i=[],a=-1);return a>-1&&n.push(new Dn(i,a)),n}}class Dl extends fr{constructor(e,n){super(),this.children=e,this.length=n,this.lines=0;for(let i of e)this.lines+=i.lines}lineInner(e,n,i,a){for(let o=0;;o++){let r=this.children[o],s=a+r.length,c=i+r.lines-1;if((n?c:s)>=e)return r.lineInner(e,n,i,a);a=s+1,i=c+1}}decompose(e,n,i,a){for(let o=0,r=0;r<=n&&o=r){let l=a&((r<=e?1:0)|(c>=n?2:0));r>=e&&c<=n&&!l?i.push(s):s.decompose(e-r,n-r,i,l)}r=c+1}}replace(e,n,i){if([e,n]=sg(this,e,n),i.lines=o&&n<=s){let c=r.replace(e-o,n-o,i),l=this.lines-r.lines+c.lines;if(c.lines>4&&c.lines>l>>6){let u=this.children.slice();return u[a]=c,new Dl(u,this.length-(n-e)+i.length)}return super.replace(o,s,c)}o=s+1}return super.replace(e,n,i)}sliceString(e,n=this.length,i=` +`){[e,n]=sg(this,e,n);let a="";for(let o=0,r=0;oe&&o&&(a+=i),er&&(a+=s.sliceString(e-r,n-r,i)),r=c+1}return a}flatten(e){for(let n of this.children)n.flatten(e)}scanIdentical(e,n){if(!(e instanceof Dl))return 0;let i=0,[a,o,r,s]=n>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;a+=n,o+=n){if(a==r||o==s)return i;let c=this.children[a],l=e.children[o];if(c!=l)return i+c.scanIdentical(l,n);i+=c.length+1}}static from(e,n=e.reduce((i,a)=>i+a.length+1,-1)){let i=0;for(let d of e)i+=d.lines;if(i<32){let d=[];for(let m of e)m.flatten(d);return new Dn(d,n)}let a=Math.max(32,i>>5),o=a<<1,r=a>>1,s=[],c=0,l=-1,u=[];function f(d){let m;if(d.lines>o&&d instanceof Dl)for(let g of d.children)f(g);else d.lines>r&&(c>r||!c)?(h(),s.push(d)):d instanceof Dn&&c&&(m=u[u.length-1])instanceof Dn&&d.lines+m.lines<=32?(c+=d.lines,l+=d.length+1,u[u.length-1]=new Dn(m.text.concat(d.text),m.length+1+d.length)):(c+d.lines>a&&h(),c+=d.lines,l+=d.length+1,u.push(d))}function h(){c!=0&&(s.push(u.length==1?u[0]:Dl.from(u,l)),l=-1,c=u.length=0)}for(let d of e)f(d);return h(),s.length==1?s[0]:new Dl(s,n)}}fr.empty=new Dn([""],0);function wde(t){let e=-1;for(let n of t)e+=n.length+1;return e}function g$(t,e,n=0,i=1e9){for(let a=0,o=0,r=!0;o=n&&(c>i&&(s=s.slice(0,i-a)),a0?1:(e instanceof Dn?e.text.length:e.children.length)<<1]}nextInner(e,n){for(this.done=this.lineBreak=!1;;){let i=this.nodes.length-1,a=this.nodes[i],o=this.offsets[i],r=o>>1,s=a instanceof Dn?a.text.length:a.children.length;if(r==(n>0?s:0)){if(i==0)return this.done=!0,this.value="",this;n>0&&this.offsets[i-1]++,this.nodes.pop(),this.offsets.pop()}else if((o&1)==(n>0?0:1)){if(this.offsets[i]+=n,e==0)return this.lineBreak=!0,this.value=` +`,this;e--}else if(a instanceof Dn){let c=a.text[r+(n<0?-1:0)];if(this.offsets[i]+=n,c.length>Math.max(0,e))return this.value=e==0?c:n>0?c.slice(e):c.slice(0,c.length-e),this;e-=c.length}else{let c=a.children[r+(n<0?-1:0)];e>c.length?(e-=c.length,this.offsets[i]+=n):(n<0&&this.offsets[i]--,this.nodes.push(c),this.offsets.push(n>0?1:(c instanceof Dn?c.text.length:c.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}}class g7{constructor(e,n,i){this.value="",this.done=!1,this.cursor=new zv(e,n>i?-1:1),this.pos=n>i?e.length:0,this.from=Math.min(n,i),this.to=Math.max(n,i)}nextInner(e,n){if(n<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,n<0?this.pos-this.to:this.from-this.pos);let i=n<0?this.pos-this.from:this.to-this.pos;e>i&&(e=i),i-=e;let{value:a}=this.cursor.next(e);return this.pos+=(a.length+e)*n,this.value=a.length<=i?a:n<0?a.slice(a.length-i):a.slice(0,i),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&this.value!=""}}class v7{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(e=0){let{done:n,lineBreak:i,value:a}=this.inner.next(e);return n&&this.afterBreak?(this.value="",this.afterBreak=!1):n?(this.done=!0,this.value=""):i?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=a,this.afterBreak=!1),this}get lineBreak(){return!1}}typeof Symbol<"u"&&(fr.prototype[Symbol.iterator]=function(){return this.iter()},zv.prototype[Symbol.iterator]=g7.prototype[Symbol.iterator]=v7.prototype[Symbol.iterator]=function(){return this});class $de{constructor(e,n,i,a){this.from=e,this.to=n,this.number=i,this.text=a}get length(){return this.to-this.from}}function sg(t,e,n){return e=Math.max(0,Math.min(t.length,e)),[e,Math.max(e,Math.min(t.length,n))]}let Zd="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(t=>t?parseInt(t,36):1);for(let t=1;tt)return Zd[e-1]<=t;return!1}function h4(t){return t>=127462&&t<=127487}const d4=8205;function Di(t,e,n=!0,i=!0){return(n?P7:Sde)(t,e,i)}function P7(t,e,n){if(e==t.length)return e;e&&b7(t.charCodeAt(e))&&w7(t.charCodeAt(e-1))&&e--;let i=Ai(t,e);for(e+=Ys(i);e=0&&h4(Ai(t,r));)o++,r-=2;if(o%2==0)break;e+=2}else break}return e}function Sde(t,e,n){for(;e>0;){let i=P7(t,e-2,n);if(i=56320&&t<57344}function w7(t){return t>=55296&&t<56320}function Ai(t,e){let n=t.charCodeAt(e);if(!w7(n)||e+1==t.length)return n;let i=t.charCodeAt(e+1);return b7(i)?(n-55296<<10)+(i-56320)+65536:n}function _j(t){return t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode((t>>10)+55296,(t&1023)+56320))}function Ys(t){return t<65536?1:2}const A2=/\r\n?|\n/;var ua=function(t){return t[t.Simple=0]="Simple",t[t.TrackDel=1]="TrackDel",t[t.TrackBefore=2]="TrackBefore",t[t.TrackAfter=3]="TrackAfter",t}(ua||(ua={}));class Ul{constructor(e){this.sections=e}get length(){let e=0;for(let n=0;ne)return o+(e-a);o+=s}else{if(i!=ua.Simple&&l>=e&&(i==ua.TrackDel&&ae||i==ua.TrackBefore&&ae))return null;if(l>e||l==e&&n<0&&!s)return e==a||n<0?o:o+c;o+=c}a=l}if(e>a)throw new RangeError(`Position ${e} is out of range for changeset of length ${a}`);return o}touchesRange(e,n=e){for(let i=0,a=0;i=0&&a<=n&&s>=e)return an?"cover":!0;a=s}return!1}toString(){let e="";for(let n=0;n=0?":"+a:"")}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some(n=>typeof n!="number"))throw new RangeError("Invalid JSON representation of ChangeDesc");return new Ul(e)}static create(e){return new Ul(e)}}class Xn extends Ul{constructor(e,n){super(e),this.inserted=n}apply(e){if(this.length!=e.length)throw new RangeError("Applying change set to a document with the wrong length");return S2(this,(n,i,a,o,r)=>e=e.replace(a,a+(i-n),r),!1),e}mapDesc(e,n=!1){return _2(this,e,n,!0)}invert(e){let n=this.sections.slice(),i=[];for(let a=0,o=0;a=0){n[a]=s,n[a+1]=r;let c=a>>1;for(;i.length0&&cf(i,n,o.text),o.forward(u),s+=u}let l=e[r++];for(;s>1].toJSON()))}return e}static of(e,n,i){let a=[],o=[],r=0,s=null;function c(u=!1){if(!u&&!a.length)return;rh||f<0||h>n)throw new RangeError(`Invalid change range ${f} to ${h} (in doc of length ${n})`);let m=d?typeof d=="string"?fr.of(d.split(i||A2)):d:fr.empty,g=m.length;if(f==h&&g==0)return;fr&&Ui(a,f-r,-1),Ui(a,h-f,g),cf(o,a,m),r=h}}return l(e),c(!s),s}static empty(e){return new Xn(e?[e,-1]:[],[])}static fromJSON(e){if(!Array.isArray(e))throw new RangeError("Invalid JSON representation of ChangeSet");let n=[],i=[];for(let a=0;as&&typeof r!="string"))throw new RangeError("Invalid JSON representation of ChangeSet");if(o.length==1)n.push(o[0],0);else{for(;i.length=0&&n<=0&&n==t[a+1]?t[a]+=e:e==0&&t[a]==0?t[a+1]+=n:i?(t[a]+=e,t[a+1]+=n):t.push(e,n)}function cf(t,e,n){if(n.length==0)return;let i=e.length-2>>1;if(i>1])),!(n||r==t.sections.length||t.sections[r+1]<0);)s=t.sections[r++],c=t.sections[r++];e(a,l,o,u,f),a=l,o=u}}}function _2(t,e,n,i=!1){let a=[],o=i?[]:null,r=new DP(t),s=new DP(e);for(let c=-1;;)if(r.ins==-1&&s.ins==-1){let l=Math.min(r.len,s.len);Ui(a,l,-1),r.forward(l),s.forward(l)}else if(s.ins>=0&&(r.ins<0||c==r.i||r.off==0&&(s.len=0&&c=0){let l=0,u=r.len;for(;u;)if(s.ins==-1){let f=Math.min(u,s.len);l+=f,u-=f,s.forward(f)}else if(s.ins==0&&s.lenc||r.ins>=0&&r.len>c)&&(s||i.length>l),o.forward2(c),r.forward(c)}}}}class DP{constructor(e){this.set=e,this.i=0,this.next()}next(){let{sections:e}=this.set;this.i>1;return n>=e.length?fr.empty:e[n]}textBit(e){let{inserted:n}=this.set,i=this.i-2>>1;return i>=n.length&&!e?fr.empty:n[i].slice(this.off,e==null?void 0:this.off+e)}forward(e){e==this.len?this.next():(this.len-=e,this.off+=e)}forward2(e){this.ins==-1?this.forward(e):e==this.ins?this.next():(this.ins-=e,this.off+=e)}}class _p{constructor(e,n,i){this.from=e,this.to=n,this.flags=i}get anchor(){return this.flags&32?this.to:this.from}get head(){return this.flags&32?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return this.flags&8?-1:this.flags&16?1:0}get bidiLevel(){let e=this.flags&7;return e==7?null:e}get goalColumn(){let e=this.flags>>6;return e==16777215?void 0:e}map(e,n=-1){let i,a;return this.empty?i=a=e.mapPos(this.from,n):(i=e.mapPos(this.from,1),a=e.mapPos(this.to,-1)),i==this.from&&a==this.to?this:new _p(i,a,this.flags)}extend(e,n=e){if(e<=this.anchor&&n>=this.anchor)return Ve.range(e,n);let i=Math.abs(e-this.anchor)>Math.abs(n-this.anchor)?e:n;return Ve.range(this.anchor,i)}eq(e,n=!1){return this.anchor==e.anchor&&this.head==e.head&&(!n||!this.empty||this.assoc==e.assoc)}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(e){if(!e||typeof e.anchor!="number"||typeof e.head!="number")throw new RangeError("Invalid JSON representation for SelectionRange");return Ve.range(e.anchor,e.head)}static create(e,n,i){return new _p(e,n,i)}}class Ve{constructor(e,n){this.ranges=e,this.mainIndex=n}map(e,n=-1){return e.empty?this:Ve.create(this.ranges.map(i=>i.map(e,n)),this.mainIndex)}eq(e,n=!1){if(this.ranges.length!=e.ranges.length||this.mainIndex!=e.mainIndex)return!1;for(let i=0;ie.toJSON()),main:this.mainIndex}}static fromJSON(e){if(!e||!Array.isArray(e.ranges)||typeof e.main!="number"||e.main>=e.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new Ve(e.ranges.map(n=>_p.fromJSON(n)),e.main)}static single(e,n=e){return new Ve([Ve.range(e,n)],0)}static create(e,n=0){if(e.length==0)throw new RangeError("A selection needs at least one range");for(let i=0,a=0;ae?8:0)|o)}static normalized(e,n=0){let i=e[n];e.sort((a,o)=>a.from-o.from),n=e.indexOf(i);for(let a=1;ao.head?Ve.range(c,s):Ve.range(s,c))}}return new Ve(e,n)}}function A7(t,e){for(let n of t.ranges)if(n.to>e)throw new RangeError("Selection points outside of document")}let xj=0;class lt{constructor(e,n,i,a,o){this.combine=e,this.compareInput=n,this.compare=i,this.isStatic=a,this.id=xj++,this.default=e([]),this.extensions=typeof o=="function"?o(this):o}get reader(){return this}static define(e={}){return new lt(e.combine||(n=>n),e.compareInput||((n,i)=>n===i),e.compare||(e.combine?(n,i)=>n===i:Dj),!!e.static,e.enables)}of(e){return new v$([],this,0,e)}compute(e,n){if(this.isStatic)throw new Error("Can't compute a static facet");return new v$(e,this,1,n)}computeN(e,n){if(this.isStatic)throw new Error("Can't compute a static facet");return new v$(e,this,2,n)}from(e,n){return n||(n=i=>i),this.compute([e],i=>n(i.field(e)))}}function Dj(t,e){return t==e||t.length==e.length&&t.every((n,i)=>n===e[i])}class v${constructor(e,n,i,a){this.dependencies=e,this.facet=n,this.type=i,this.value=a,this.id=xj++}dynamicSlot(e){var n;let i=this.value,a=this.facet.compareInput,o=this.id,r=e[o]>>1,s=this.type==2,c=!1,l=!1,u=[];for(let f of this.dependencies)f=="doc"?c=!0:f=="selection"?l=!0:((n=e[f.id])!==null&&n!==void 0?n:1)&1||u.push(e[f.id]);return{create(f){return f.values[r]=i(f),1},update(f,h){if(c&&h.docChanged||l&&(h.docChanged||h.selection)||x2(f,u)){let d=i(f);if(s?!m4(d,f.values[r],a):!a(d,f.values[r]))return f.values[r]=d,1}return 0},reconfigure:(f,h)=>{let d,m=h.config.address[o];if(m!=null){let g=jA(h,m);if(this.dependencies.every(b=>b instanceof lt?h.facet(b)===f.facet(b):b instanceof ii?h.field(b,!1)==f.field(b,!1):!0)||(s?m4(d=i(f),g,a):a(d=i(f),g)))return f.values[r]=g,0}else d=i(f);return f.values[r]=d,1}}}}function m4(t,e,n){if(t.length!=e.length)return!1;for(let i=0;it[c.id]),a=n.map(c=>c.type),o=i.filter(c=>!(c&1)),r=t[e.id]>>1;function s(c){let l=[];for(let u=0;ui===a),e);return e.provide&&(n.provides=e.provide(n)),n}create(e){let n=e.facet(y4).find(i=>i.field==this);return((n==null?void 0:n.create)||this.createF)(e)}slot(e){let n=e[this.id]>>1;return{create:i=>(i.values[n]=this.create(i),1),update:(i,a)=>{let o=i.values[n],r=this.updateF(o,a);return this.compareF(o,r)?0:(i.values[n]=r,1)},reconfigure:(i,a)=>a.config.address[this.id]!=null?(i.values[n]=a.field(this),0):(i.values[n]=this.create(i),1)}}init(e){return[this,y4.of({field:this,create:e})]}get extension(){return this}}const mp={lowest:4,low:3,default:2,high:1,highest:0};function q0(t){return e=>new S7(e,t)}const Ah={highest:q0(mp.highest),high:q0(mp.high),default:q0(mp.default),low:q0(mp.low),lowest:q0(mp.lowest)};class S7{constructor(e,n){this.inner=e,this.prec=n}}class t_{of(e){return new D2(this,e)}reconfigure(e){return t_.reconfigure.of({compartment:this,extension:e})}get(e){return e.config.compartments.get(this)}}class D2{constructor(e,n){this.compartment=e,this.inner=n}}class TA{constructor(e,n,i,a,o,r){for(this.base=e,this.compartments=n,this.dynamicSlots=i,this.address=a,this.staticValues=o,this.facets=r,this.statusTemplate=[];this.statusTemplate.length>1]}static resolve(e,n,i){let a=[],o=Object.create(null),r=new Map;for(let h of xde(e,n,r))h instanceof ii?a.push(h):(o[h.facet.id]||(o[h.facet.id]=[])).push(h);let s=Object.create(null),c=[],l=[];for(let h of a)s[h.id]=l.length<<1,l.push(d=>h.slot(d));let u=i==null?void 0:i.config.facets;for(let h in o){let d=o[h],m=d[0].facet,g=u&&u[h]||[];if(d.every(b=>b.type==0))if(s[m.id]=c.length<<1|1,Dj(g,d))c.push(i.facet(m));else{let b=m.combine(d.map(v=>v.value));c.push(i&&m.compare(b,i.facet(m))?i.facet(m):b)}else{for(let b of d)b.type==0?(s[b.id]=c.length<<1|1,c.push(b.value)):(s[b.id]=l.length<<1,l.push(v=>b.dynamicSlot(v)));s[m.id]=l.length<<1,l.push(b=>_de(b,m,d))}}let f=l.map(h=>h(s));return new TA(e,r,f,s,c,o)}}function xde(t,e,n){let i=[[],[],[],[],[]],a=new Map;function o(r,s){let c=a.get(r);if(c!=null){if(c<=s)return;let l=i[c].indexOf(r);l>-1&&i[c].splice(l,1),r instanceof D2&&n.delete(r.compartment)}if(a.set(r,s),Array.isArray(r))for(let l of r)o(l,s);else if(r instanceof D2){if(n.has(r.compartment))throw new RangeError("Duplicate use of compartment in extensions");let l=e.get(r.compartment)||r.inner;n.set(r.compartment,l),o(l,s)}else if(r instanceof S7)o(r.inner,r.prec);else if(r instanceof ii)i[s].push(r),r.provides&&o(r.provides,s);else if(r instanceof v$)i[s].push(r),r.facet.extensions&&o(r.facet.extensions,mp.default);else{let l=r.extension;if(!l)throw new Error(`Unrecognized extension value in extension set (${r}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);o(l,s)}}return o(t,mp.default),i.reduce((r,s)=>r.concat(s))}function Uv(t,e){if(e&1)return 2;let n=e>>1,i=t.status[n];if(i==4)throw new Error("Cyclic dependency between fields and/or facets");if(i&2)return i;t.status[n]=4;let a=t.computeSlot(t,t.config.dynamicSlots[n]);return t.status[n]=2|a}function jA(t,e){return e&1?t.config.staticValues[e>>1]:t.values[e>>1]}const _7=lt.define(),k2=lt.define({combine:t=>t.some(e=>e),static:!0}),x7=lt.define({combine:t=>t.length?t[0]:void 0,static:!0}),D7=lt.define(),k7=lt.define(),O7=lt.define(),E7=lt.define({combine:t=>t.length?t[0]:!1});class Jl{constructor(e,n){this.type=e,this.value=n}static define(){return new Dde}}class Dde{of(e){return new Jl(this,e)}}class kde{constructor(e){this.map=e}of(e){return new Nt(this,e)}}class Nt{constructor(e,n){this.type=e,this.value=n}map(e){let n=this.type.map(this.value,e);return n===void 0?void 0:n==this.value?this:new Nt(this.type,n)}is(e){return this.type==e}static define(e={}){return new kde(e.map||(n=>n))}static mapEffects(e,n){if(!e.length)return e;let i=[];for(let a of e){let o=a.map(n);o&&i.push(o)}return i}}Nt.reconfigure=Nt.define();Nt.appendConfig=Nt.define();class ri{constructor(e,n,i,a,o,r){this.startState=e,this.changes=n,this.selection=i,this.effects=a,this.annotations=o,this.scrollIntoView=r,this._doc=null,this._state=null,i&&A7(i,n.newLength),o.some(s=>s.type==ri.time)||(this.annotations=o.concat(ri.time.of(Date.now())))}static create(e,n,i,a,o,r){return new ri(e,n,i,a,o,r)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(e){for(let n of this.annotations)if(n.type==e)return n.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(e){let n=this.annotation(ri.userEvent);return!!(n&&(n==e||n.length>e.length&&n.slice(0,e.length)==e&&n[e.length]=="."))}}ri.time=Jl.define();ri.userEvent=Jl.define();ri.addToHistory=Jl.define();ri.remote=Jl.define();function Ode(t,e){let n=[];for(let i=0,a=0;;){let o,r;if(i=t[i]))o=t[i++],r=t[i++];else if(a=0;a--){let o=i[a](t);o instanceof ri?t=o:Array.isArray(o)&&o.length==1&&o[0]instanceof ri?t=o[0]:t=C7(e,Xd(o),!1)}return t}function Ide(t){let e=t.startState,n=e.facet(O7),i=t;for(let a=n.length-1;a>=0;a--){let o=n[a](t);o&&Object.keys(o).length&&(i=I7(i,O2(e,o,t.changes.newLength),!0))}return i==t?t:ri.create(e,t.changes,t.selection,i.effects,i.annotations,i.scrollIntoView)}const Cde=[];function Xd(t){return t==null?Cde:Array.isArray(t)?t:[t]}var cn=function(t){return t[t.Word=0]="Word",t[t.Space=1]="Space",t[t.Other=2]="Other",t}(cn||(cn={}));const Tde=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let E2;try{E2=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}function jde(t){if(E2)return E2.test(t);for(let e=0;e"€"&&(n.toUpperCase()!=n.toLowerCase()||Tde.test(n)))return!0}return!1}function Mde(t){return e=>{if(!/\S/.test(e))return cn.Space;if(jde(e))return cn.Word;for(let n=0;n-1)return cn.Word;return cn.Other}}class ar{constructor(e,n,i,a,o,r){this.config=e,this.doc=n,this.selection=i,this.values=a,this.status=e.statusTemplate.slice(),this.computeSlot=o,r&&(r._state=this);for(let s=0;sa.set(l,c)),n=null),a.set(s.value.compartment,s.value.extension)):s.is(Nt.reconfigure)?(n=null,i=s.value):s.is(Nt.appendConfig)&&(n=null,i=Xd(i).concat(s.value));let o;n?o=e.startState.values.slice():(n=TA.resolve(i,a,this),o=new ar(n,this.doc,this.selection,n.dynamicSlots.map(()=>null),(c,l)=>l.reconfigure(c,this),null).values);let r=e.startState.facet(k2)?e.newSelection:e.newSelection.asSingle();new ar(n,e.newDoc,r,o,(s,c)=>c.update(s,e),e)}replaceSelection(e){return typeof e=="string"&&(e=this.toText(e)),this.changeByRange(n=>({changes:{from:n.from,to:n.to,insert:e},range:Ve.cursor(n.from+e.length)}))}changeByRange(e){let n=this.selection,i=e(n.ranges[0]),a=this.changes(i.changes),o=[i.range],r=Xd(i.effects);for(let s=1;sr.spec.fromJSON(s,c)))}}return ar.create({doc:e.doc,selection:Ve.fromJSON(e.selection),extensions:n.extensions?a.concat([n.extensions]):a})}static create(e={}){let n=TA.resolve(e.extensions||[],new Map),i=e.doc instanceof fr?e.doc:fr.of((e.doc||"").split(n.staticFacet(ar.lineSeparator)||A2)),a=e.selection?e.selection instanceof Ve?e.selection:Ve.single(e.selection.anchor,e.selection.head):Ve.single(0);return A7(a,i.length),n.staticFacet(k2)||(a=a.asSingle()),new ar(n,i,a,n.dynamicSlots.map(()=>null),(o,r)=>r.create(o),null)}get tabSize(){return this.facet(ar.tabSize)}get lineBreak(){return this.facet(ar.lineSeparator)||` +`}get readOnly(){return this.facet(E7)}phrase(e,...n){for(let i of this.facet(ar.phrases))if(Object.prototype.hasOwnProperty.call(i,e)){e=i[e];break}return n.length&&(e=e.replace(/\$(\$|\d*)/g,(i,a)=>{if(a=="$")return"$";let o=+(a||1);return!o||o>n.length?i:n[o-1]})),e}languageDataAt(e,n,i=-1){let a=[];for(let o of this.facet(_7))for(let r of o(this,n,i))Object.prototype.hasOwnProperty.call(r,e)&&a.push(r[e]);return a}charCategorizer(e){return Mde(this.languageDataAt("wordChars",e).join(""))}wordAt(e){let{text:n,from:i,length:a}=this.doc.lineAt(e),o=this.charCategorizer(e),r=e-i,s=e-i;for(;r>0;){let c=Di(n,r,!1);if(o(n.slice(c,r))!=cn.Word)break;r=c}for(;st.length?t[0]:4});ar.lineSeparator=x7;ar.readOnly=E7;ar.phrases=lt.define({compare(t,e){let n=Object.keys(t),i=Object.keys(e);return n.length==i.length&&n.every(a=>t[a]==e[a])}});ar.languageData=_7;ar.changeFilter=D7;ar.transactionFilter=k7;ar.transactionExtender=O7;t_.reconfigure=Nt.define();function sl(t,e,n={}){let i={};for(let a of t)for(let o of Object.keys(a)){let r=a[o],s=i[o];if(s===void 0)i[o]=r;else if(!(s===r||r===void 0))if(Object.hasOwnProperty.call(n,o))i[o]=n[o](s,r);else throw new Error("Config merge conflict for field "+o)}for(let a in e)i[a]===void 0&&(i[a]=e[a]);return i}class ah{eq(e){return this==e}range(e,n=e){return kP.create(e,n,this)}}ah.prototype.startSide=ah.prototype.endSide=0;ah.prototype.point=!1;ah.prototype.mapMode=ua.TrackDel;class kP{constructor(e,n,i){this.from=e,this.to=n,this.value=i}static create(e,n,i){return new kP(e,n,i)}}function I2(t,e){return t.from-e.from||t.value.startSide-e.value.startSide}class kj{constructor(e,n,i,a){this.from=e,this.to=n,this.value=i,this.maxPoint=a}get length(){return this.to[this.to.length-1]}findIndex(e,n,i,a=0){let o=i?this.to:this.from;for(let r=a,s=o.length;;){if(r==s)return r;let c=r+s>>1,l=o[c]-e||(i?this.value[c].endSide:this.value[c].startSide)-n;if(c==r)return l>=0?r:s;l>=0?s=c:r=c+1}}between(e,n,i,a){for(let o=this.findIndex(n,-1e9,!0),r=this.findIndex(i,1e9,!1,o);od||h==d&&l.startSide>0&&l.endSide<=0)continue;(d-h||l.endSide-l.startSide)<0||(r<0&&(r=h),l.point&&(s=Math.max(s,d-h)),i.push(l),a.push(h-r),o.push(d-r))}return{mapped:i.length?new kj(a,o,i,s):null,pos:r}}}class rr{constructor(e,n,i,a){this.chunkPos=e,this.chunk=n,this.nextLayer=i,this.maxPoint=a}static create(e,n,i,a){return new rr(e,n,i,a)}get length(){let e=this.chunk.length-1;return e<0?0:Math.max(this.chunkEnd(e),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let e=this.nextLayer.size;for(let n of this.chunk)e+=n.value.length;return e}chunkEnd(e){return this.chunkPos[e]+this.chunk[e].length}update(e){let{add:n=[],sort:i=!1,filterFrom:a=0,filterTo:o=this.length}=e,r=e.filter;if(n.length==0&&!r)return this;if(i&&(n=n.slice().sort(I2)),this.isEmpty)return n.length?rr.of(n):this;let s=new T7(this,null,-1).goto(0),c=0,l=[],u=new Ef;for(;s.value||c=0){let f=n[c++];u.addInner(f.from,f.to,f.value)||l.push(f)}else s.rangeIndex==1&&s.chunkIndexthis.chunkEnd(s.chunkIndex)||os.to||o=o&&e<=o+r.length&&r.between(o,e-o,n-o,i)===!1)return}this.nextLayer.between(e,n,i)}}iter(e=0){return OP.from([this]).goto(e)}get isEmpty(){return this.nextLayer==this}static iter(e,n=0){return OP.from(e).goto(n)}static compare(e,n,i,a,o=-1){let r=e.filter(f=>f.maxPoint>0||!f.isEmpty&&f.maxPoint>=o),s=n.filter(f=>f.maxPoint>0||!f.isEmpty&&f.maxPoint>=o),c=g4(r,s,i),l=new z0(r,c,o),u=new z0(s,c,o);i.iterGaps((f,h,d)=>v4(l,f,u,h,d,a)),i.empty&&i.length==0&&v4(l,0,u,0,0,a)}static eq(e,n,i=0,a){a==null&&(a=999999999);let o=e.filter(u=>!u.isEmpty&&n.indexOf(u)<0),r=n.filter(u=>!u.isEmpty&&e.indexOf(u)<0);if(o.length!=r.length)return!1;if(!o.length)return!0;let s=g4(o,r),c=new z0(o,s,0).goto(i),l=new z0(r,s,0).goto(i);for(;;){if(c.to!=l.to||!C2(c.active,l.active)||c.point&&(!l.point||!c.point.eq(l.point)))return!1;if(c.to>a)return!0;c.next(),l.next()}}static spans(e,n,i,a,o=-1){let r=new z0(e,null,o).goto(n),s=n,c=r.openStart;for(;;){let l=Math.min(r.to,i);if(r.point){let u=r.activeForPoint(r.to),f=r.pointFroms&&(a.span(s,l,r.active,c),c=r.openEnd(l));if(r.to>i)return c+(r.point&&r.to>i?1:0);s=r.to,r.next()}}static of(e,n=!1){let i=new Ef;for(let a of e instanceof kP?[e]:n?Rde(e):e)i.add(a.from,a.to,a.value);return i.finish()}static join(e){if(!e.length)return rr.empty;let n=e[e.length-1];for(let i=e.length-2;i>=0;i--)for(let a=e[i];a!=rr.empty;a=a.nextLayer)n=new rr(a.chunkPos,a.chunk,n,Math.max(a.maxPoint,n.maxPoint));return n}}rr.empty=new rr([],[],null,-1);function Rde(t){if(t.length>1)for(let e=t[0],n=1;n0)return t.slice().sort(I2);e=i}return t}rr.empty.nextLayer=rr.empty;class Ef{finishChunk(e){this.chunks.push(new kj(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,e&&(this.from=[],this.to=[],this.value=[])}constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}add(e,n,i){this.addInner(e,n,i)||(this.nextLayer||(this.nextLayer=new Ef)).add(e,n,i)}addInner(e,n,i){let a=e-this.lastTo||i.startSide-this.last.endSide;if(a<=0&&(e-this.lastFrom||i.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return a<0?!1:(this.from.length==250&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=e),this.from.push(e-this.chunkStart),this.to.push(n-this.chunkStart),this.last=i,this.lastFrom=e,this.lastTo=n,this.value.push(i),i.point&&(this.maxPoint=Math.max(this.maxPoint,n-e)),!0)}addChunk(e,n){if((e-this.lastTo||n.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,n.maxPoint),this.chunks.push(n),this.chunkPos.push(e);let i=n.value.length-1;return this.last=n.value[i],this.lastFrom=n.from[i]+e,this.lastTo=n.to[i]+e,!0}finish(){return this.finishInner(rr.empty)}finishInner(e){if(this.from.length&&this.finishChunk(!1),this.chunks.length==0)return e;let n=rr.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(e):e,this.setMaxPoint);return this.from=null,n}}function g4(t,e,n){let i=new Map;for(let o of t)for(let r=0;r=this.minPoint)break}}setRangeIndex(e){if(e==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex=i&&a.push(new T7(r,n,i,o));return a.length==1?a[0]:new OP(a)}get startSide(){return this.value?this.value.startSide:0}goto(e,n=-1e9){for(let i of this.heap)i.goto(e,n);for(let i=this.heap.length>>1;i>=0;i--)jk(this.heap,i);return this.next(),this}forward(e,n){for(let i of this.heap)i.forward(e,n);for(let i=this.heap.length>>1;i>=0;i--)jk(this.heap,i);(this.to-e||this.value.endSide-n)<0&&this.next()}next(){if(this.heap.length==0)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let e=this.heap[0];this.from=e.from,this.to=e.to,this.value=e.value,this.rank=e.rank,e.value&&e.next(),jk(this.heap,0)}}}function jk(t,e){for(let n=t[e];;){let i=(e<<1)+1;if(i>=t.length)break;let a=t[i];if(i+1=0&&(a=t[i+1],i++),n.compare(a)<0)break;t[i]=n,t[e]=a,e=i}}class z0{constructor(e,n,i){this.minPoint=i,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=OP.from(e,n,i)}goto(e,n=-1e9){return this.cursor.goto(e,n),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=e,this.endSide=n,this.openStart=-1,this.next(),this}forward(e,n){for(;this.minActive>-1&&(this.activeTo[this.minActive]-e||this.active[this.minActive].endSide-n)<0;)this.removeActive(this.minActive);this.cursor.forward(e,n)}removeActive(e){Q1(this.active,e),Q1(this.activeTo,e),Q1(this.activeRank,e),this.minActive=P4(this.active,this.activeTo)}addActive(e){let n=0,{value:i,to:a,rank:o}=this.cursor;for(;n0;)n++;Z1(this.active,n,i),Z1(this.activeTo,n,a),Z1(this.activeRank,n,o),e&&Z1(e,n,this.cursor.from),this.minActive=P4(this.active,this.activeTo)}next(){let e=this.to,n=this.point;this.point=null;let i=this.openStart<0?[]:null;for(;;){let a=this.minActive;if(a>-1&&(this.activeTo[a]-this.cursor.from||this.active[a].endSide-this.cursor.startSide)<0){if(this.activeTo[a]>e){this.to=this.activeTo[a],this.endSide=this.active[a].endSide;break}this.removeActive(a),i&&Q1(i,a)}else if(this.cursor.value)if(this.cursor.from>e){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}else{let o=this.cursor.value;if(!o.point)this.addActive(i),this.cursor.next();else if(n&&this.cursor.to==this.to&&this.cursor.from=0&&i[a]=0&&!(this.activeRank[i]e||this.activeTo[i]==e&&this.active[i].endSide>=this.point.endSide)&&n.push(this.active[i]);return n.reverse()}openEnd(e){let n=0;for(let i=this.activeTo.length-1;i>=0&&this.activeTo[i]>e;i--)n++;return n}}function v4(t,e,n,i,a,o){t.goto(e),n.goto(i);let r=i+a,s=i,c=i-e;for(;;){let l=t.to+c-n.to||t.endSide-n.endSide,u=l<0?t.to+c:n.to,f=Math.min(u,r);if(t.point||n.point?t.point&&n.point&&(t.point==n.point||t.point.eq(n.point))&&C2(t.activeForPoint(t.to),n.activeForPoint(n.to))||o.comparePoint(s,f,t.point,n.point):f>s&&!C2(t.active,n.active)&&o.compareRange(s,f,t.active,n.active),u>r)break;s=u,l<=0&&t.next(),l>=0&&n.next()}}function C2(t,e){if(t.length!=e.length)return!1;for(let n=0;n=e;i--)t[i+1]=t[i];t[e]=n}function P4(t,e){let n=-1,i=1e9;for(let a=0;a=e)return a;if(a==t.length)break;o+=t.charCodeAt(a)==9?n-o%n:1,a=Di(t,a)}return i===!0?-1:t.length}const j2="ͼ",b4=typeof Symbol>"u"?"__"+j2:Symbol.for(j2),M2=typeof Symbol>"u"?"__styleSet"+Math.floor(Math.random()*1e8):Symbol("styleSet"),w4=typeof globalThis<"u"?globalThis:typeof window<"u"?window:{};class If{constructor(e,n){this.rules=[];let{finish:i}=n||{};function a(r){return/^@/.test(r)?[r]:r.split(/,\s*/)}function o(r,s,c,l){let u=[],f=/^@(\w+)\b/.exec(r[0]),h=f&&f[1]=="keyframes";if(f&&s==null)return c.push(r[0]+";");for(let d in s){let m=s[d];if(/&/.test(d))o(d.split(/,\s*/).map(g=>r.map(b=>g.replace(/&/,b))).reduce((g,b)=>g.concat(b)),m,c);else if(m&&typeof m=="object"){if(!f)throw new RangeError("The value of a property ("+d+") should be a primitive value.");o(a(d),m,u,h)}else m!=null&&u.push(d.replace(/_.*/,"").replace(/[A-Z]/g,g=>"-"+g.toLowerCase())+": "+m+";")}(u.length||h)&&c.push((i&&!f&&!l?r.map(i):r).join(", ")+" {"+u.join(" ")+"}")}for(let r in e)o(a(r),e[r],this.rules)}getRules(){return this.rules.join(` +`)}static newName(){let e=w4[b4]||1;return w4[b4]=e+1,j2+e.toString(36)}static mount(e,n,i){let a=e[M2],o=i&&i.nonce;a?o&&a.setNonce(o):a=new Nde(e,o),a.mount(Array.isArray(n)?n:[n],e)}}let $4=new Map;class Nde{constructor(e,n){let i=e.ownerDocument||e,a=i.defaultView;if(!e.head&&e.adoptedStyleSheets&&a.CSSStyleSheet){let o=$4.get(i);if(o)return e[M2]=o;this.sheet=new a.CSSStyleSheet,$4.set(i,this)}else this.styleTag=i.createElement("style"),n&&this.styleTag.setAttribute("nonce",n);this.modules=[],e[M2]=this}mount(e,n){let i=this.sheet,a=0,o=0;for(let r=0;r-1&&(this.modules.splice(c,1),o--,c=-1),c==-1){if(this.modules.splice(o++,0,s),i)for(let l=0;l",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},Lde=typeof navigator<"u"&&/Mac/.test(navigator.platform),Fde=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var Si=0;Si<10;Si++)Cf[48+Si]=Cf[96+Si]=String(Si);for(var Si=1;Si<=24;Si++)Cf[Si+111]="F"+Si;for(var Si=65;Si<=90;Si++)Cf[Si]=String.fromCharCode(Si+32),EP[Si]=String.fromCharCode(Si);for(var Mk in Cf)EP.hasOwnProperty(Mk)||(EP[Mk]=Cf[Mk]);function qde(t){var e=Lde&&t.metaKey&&t.shiftKey&&!t.ctrlKey&&!t.altKey||Fde&&t.shiftKey&&t.key&&t.key.length==1||t.key=="Unidentified",n=!e&&t.key||(t.shiftKey?EP:Cf)[t.keyCode]||t.key||"Unidentified";return n=="Esc"&&(n="Escape"),n=="Del"&&(n="Delete"),n=="Left"&&(n="ArrowLeft"),n=="Up"&&(n="ArrowUp"),n=="Right"&&(n="ArrowRight"),n=="Down"&&(n="ArrowDown"),n}function IP(t){let e;return t.nodeType==11?e=t.getSelection?t:t.ownerDocument:e=t,e.getSelection()}function R2(t,e){return e?t==e||t.contains(e.nodeType!=1?e.parentNode:e):!1}function P$(t,e){if(!e.anchorNode)return!1;try{return R2(t,e.anchorNode)}catch{return!1}}function og(t){return t.nodeType==3?oh(t,0,t.nodeValue.length).getClientRects():t.nodeType==1?t.getClientRects():[]}function Bv(t,e,n,i){return n?A4(t,e,n,i,-1)||A4(t,e,n,i,1):!1}function sh(t){for(var e=0;;e++)if(t=t.previousSibling,!t)return e}function MA(t){return t.nodeType==1&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(t.nodeName)}function A4(t,e,n,i,a){for(;;){if(t==n&&e==i)return!0;if(e==(a<0?0:Wl(t))){if(t.nodeName=="DIV")return!1;let o=t.parentNode;if(!o||o.nodeType!=1)return!1;e=sh(t)+(a<0?0:1),t=o}else if(t.nodeType==1){if(t=t.childNodes[e+(a<0?-1:0)],t.nodeType==1&&t.contentEditable=="false")return!1;e=a<0?Wl(t):0}else return!1}}function Wl(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function sb(t,e){let n=e?t.left:t.right;return{left:n,right:n,top:t.top,bottom:t.bottom}}function zde(t){let e=t.visualViewport;return e?{left:0,right:e.width,top:0,bottom:e.height}:{left:0,right:t.innerWidth,top:0,bottom:t.innerHeight}}function j7(t,e){let n=e.width/t.offsetWidth,i=e.height/t.offsetHeight;return(n>.995&&n<1.005||!isFinite(n)||Math.abs(e.width-t.offsetWidth)<1)&&(n=1),(i>.995&&i<1.005||!isFinite(i)||Math.abs(e.height-t.offsetHeight)<1)&&(i=1),{scaleX:n,scaleY:i}}function Ude(t,e,n,i,a,o,r,s){let c=t.ownerDocument,l=c.defaultView||window;for(let u=t,f=!1;u&&!f;)if(u.nodeType==1){let h,d=u==c.body,m=1,g=1;if(d)h=zde(l);else{if(/^(fixed|sticky)$/.test(getComputedStyle(u).position)&&(f=!0),u.scrollHeight<=u.clientHeight&&u.scrollWidth<=u.clientWidth){u=u.assignedSlot||u.parentNode;continue}let P=u.getBoundingClientRect();({scaleX:m,scaleY:g}=j7(u,P)),h={left:P.left,right:P.left+u.clientWidth*m,top:P.top,bottom:P.top+u.clientHeight*g}}let b=0,v=0;if(a=="nearest")e.top0&&e.bottom>h.bottom+v&&(v=e.bottom-h.bottom+v+r)):e.bottom>h.bottom&&(v=e.bottom-h.bottom+r,n<0&&e.top-v0&&e.right>h.right+b&&(b=e.right-h.right+b+o)):e.right>h.right&&(b=e.right-h.right+o,n<0&&e.lefta.clientHeight&&(i=a),!n&&a.scrollWidth>a.clientWidth&&(n=a),a=a.assignedSlot||a.parentNode;else if(a.nodeType==11)a=a.host;else break;return{x:n,y:i}}class Vde{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(e){return this.anchorNode==e.anchorNode&&this.anchorOffset==e.anchorOffset&&this.focusNode==e.focusNode&&this.focusOffset==e.focusOffset}setRange(e){let{anchorNode:n,focusNode:i}=e;this.set(n,Math.min(e.anchorOffset,n?Wl(n):0),i,Math.min(e.focusOffset,i?Wl(i):0))}set(e,n,i,a){this.anchorNode=e,this.anchorOffset=n,this.focusNode=i,this.focusOffset=a}}let ed=null;function M7(t){if(t.setActive)return t.setActive();if(ed)return t.focus(ed);let e=[];for(let n=t;n&&(e.push(n,n.scrollTop,n.scrollLeft),n!=n.ownerDocument);n=n.parentNode);if(t.focus(ed==null?{get preventScroll(){return ed={preventScroll:!0},!0}}:void 0),!ed){ed=!1;for(let n=0;nMath.max(1,t.scrollHeight-t.clientHeight-4)}function L7(t,e){for(let n=t,i=e;;){if(n.nodeType==3&&i>0)return{node:n,offset:i};if(n.nodeType==1&&i>0){if(n.contentEditable=="false")return null;n=n.childNodes[i-1],i=Wl(n)}else if(n.parentNode&&!MA(n))i=sh(n),n=n.parentNode;else return null}}function F7(t,e){for(let n=t,i=e;;){if(n.nodeType==3&&in)return f.domBoundsAround(e,n,l);if(h>=e&&a==-1&&(a=c,o=l),l>n&&f.dom.parentNode==this.dom){r=c,s=u;break}u=h,l=h+f.breakAfter}return{from:o,to:s<0?i+this.length:s,startDOM:(a?this.children[a-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:r=0?this.children[r].dom:null}}markDirty(e=!1){this.flags|=2,this.markParentsDirty(e)}markParentsDirty(e){for(let n=this.parent;n;n=n.parent){if(e&&(n.flags|=2),n.flags&1)return;n.flags|=1,e=!1}}setParent(e){this.parent!=e&&(this.parent=e,this.flags&7&&this.markParentsDirty(!0))}setDOM(e){this.dom!=e&&(this.dom&&(this.dom.cmView=null),this.dom=e,e.cmView=this)}get rootView(){for(let e=this;;){let n=e.parent;if(!n)return e;e=n}}replaceChildren(e,n,i=Oj){this.markDirty();for(let a=e;athis.pos||e==this.pos&&(n>0||this.i==0||this.children[this.i-1].breakAfter))return this.off=e-this.pos,this;let i=this.children[--this.i];this.pos-=i.length+i.breakAfter}}}function z7(t,e,n,i,a,o,r,s,c){let{children:l}=t,u=l.length?l[e]:null,f=o.length?o[o.length-1]:null,h=f?f.breakAfter:r;if(!(e==i&&u&&!r&&!h&&o.length<2&&u.merge(n,a,o.length?f:null,n==0,s,c))){if(i0&&(!r&&o.length&&u.merge(n,u.length,o[0],!1,s,0)?u.breakAfter=o.shift().breakAfter:(n2);var ut={mac:k4||/Mac/.test(qa.platform),windows:/Win/.test(qa.platform),linux:/Linux|X11/.test(qa.platform),ie:r_,ie_version:B7?N2.documentMode||6:F2?+F2[1]:L2?+L2[1]:0,gecko:x4,gecko_version:x4?+(/Firefox\/(\d+)/.exec(qa.userAgent)||[0,0])[1]:0,chrome:!!Rk,chrome_version:Rk?+Rk[1]:0,ios:k4,android:/Android\b/.test(qa.userAgent),webkit:D4,safari:V7,webkit_version:D4?+(/\bAppleWebKit\/(\d+)/.exec(qa.userAgent)||[0,0])[1]:0,tabSize:N2.documentElement.style.tabSize!=null?"tab-size":"-moz-tab-size"};const Gde=256;class rl extends Lr{constructor(e){super(),this.text=e}get length(){return this.text.length}createDOM(e){this.setDOM(e||document.createTextNode(this.text))}sync(e,n){this.dom||this.createDOM(),this.dom.nodeValue!=this.text&&(n&&n.node==this.dom&&(n.written=!0),this.dom.nodeValue=this.text)}reuseDOM(e){e.nodeType==3&&this.createDOM(e)}merge(e,n,i){return this.flags&8||i&&(!(i instanceof rl)||this.length-(n-e)+i.length>Gde||i.flags&8)?!1:(this.text=this.text.slice(0,e)+(i?i.text:"")+this.text.slice(n),this.markDirty(),!0)}split(e){let n=new rl(this.text.slice(e));return this.text=this.text.slice(0,e),this.markDirty(),n.flags|=this.flags&8,n}localPosFromDOM(e,n){return e==this.dom?n:n?this.text.length:0}domAtPos(e){return new Vi(this.dom,e)}domBoundsAround(e,n,i){return{from:i,to:i+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}coordsAt(e,n){return Kde(this.dom,e,n)}}class su extends Lr{constructor(e,n=[],i=0){super(),this.mark=e,this.children=n,this.length=i;for(let a of n)a.setParent(this)}setAttrs(e){if(R7(e),this.mark.class&&(e.className=this.mark.class),this.mark.attrs)for(let n in this.mark.attrs)e.setAttribute(n,this.mark.attrs[n]);return e}canReuseDOM(e){return super.canReuseDOM(e)&&!((this.flags|e.flags)&8)}reuseDOM(e){e.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(e),this.flags|=6)}sync(e,n){this.dom?this.flags&4&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),super.sync(e,n)}merge(e,n,i,a,o,r){return i&&(!(i instanceof su&&i.mark.eq(this.mark))||e&&o<=0||ne&&n.push(i=e&&(a=o),i=c,o++}let r=this.length-e;return this.length=e,a>-1&&(this.children.length=a,this.markDirty()),new su(this.mark,n,r)}domAtPos(e){return W7(this,e)}coordsAt(e,n){return G7(this,e,n)}}function Kde(t,e,n){let i=t.nodeValue.length;e>i&&(e=i);let a=e,o=e,r=0;e==0&&n<0||e==i&&n>=0?ut.chrome||ut.gecko||(e?(a--,r=1):o=0)?0:s.length-1];return ut.safari&&!r&&c.width==0&&(c=Array.prototype.find.call(s,l=>l.width)||c),r?sb(c,r<0):c||null}class uf extends Lr{static create(e,n,i){return new uf(e,n,i)}constructor(e,n,i){super(),this.widget=e,this.length=n,this.side=i,this.prevWidget=null}split(e){let n=uf.create(this.widget,this.length-e,this.side);return this.length-=e,n}sync(e){(!this.dom||!this.widget.updateDOM(this.dom,e))&&(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(e)),this.widget.editable||(this.dom.contentEditable="false"))}getSide(){return this.side}merge(e,n,i,a,o,r){return i&&(!(i instanceof uf)||!this.widget.compare(i.widget)||e>0&&o<=0||n0)?Vi.before(this.dom):Vi.after(this.dom,e==this.length)}domBoundsAround(){return null}coordsAt(e,n){let i=this.widget.coordsAt(this.dom,e,n);if(i)return i;let a=this.dom.getClientRects(),o=null;if(!a.length)return null;let r=this.side?this.side<0:e>0;for(let s=r?a.length-1:0;o=a[s],!(e>0?s==0:s==a.length-1||o.top0?Vi.before(this.dom):Vi.after(this.dom)}localPosFromDOM(){return 0}domBoundsAround(){return null}coordsAt(e){return this.dom.getBoundingClientRect()}get overrideDOMText(){return fr.empty}get isHidden(){return!0}}rl.prototype.children=uf.prototype.children=lg.prototype.children=Oj;function W7(t,e){let n=t.dom,{children:i}=t,a=0;for(let o=0;ao&&e0;o--){let r=i[o-1];if(r.dom.parentNode==n)return r.domAtPos(r.length)}for(let o=a;o0&&e instanceof su&&a.length&&(i=a[a.length-1])instanceof su&&i.mark.eq(e.mark)?H7(i,e.children[0],n-1):(a.push(e),e.setParent(t)),t.length+=e.length}function G7(t,e,n){let i=null,a=-1,o=null,r=-1;function s(l,u){for(let f=0,h=0;f=u&&(d.children.length?s(d,u-h):(!o||o.isHidden&&n>0)&&(m>u||h==m&&d.getSide()>0)?(o=d,r=u-h):(h-1?1:0)!=a.length-(n&&a.indexOf(n)>-1?1:0))return!1;for(let o of i)if(o!=n&&(a.indexOf(o)==-1||t[o]!==e[o]))return!1;return!0}function z2(t,e,n){let i=!1;if(e)for(let a in e)n&&a in n||(i=!0,a=="style"?t.style.cssText="":t.removeAttribute(a));if(n)for(let a in n)e&&e[a]==n[a]||(i=!0,a=="style"?t.style.cssText=n[a]:t.setAttribute(a,n[a]));return i}function Jde(t){let e=Object.create(null);for(let n=0;n0?3e8:-4e8:n>0?1e8:-1e8,new Tf(e,n,n,i,e.widget||null,!1)}static replace(e){let n=!!e.block,i,a;if(e.isBlockGap)i=-5e8,a=4e8;else{let{start:o,end:r}=K7(e,n);i=(o?n?-3e8:-1:5e8)-1,a=(r?n?2e8:1:-6e8)+1}return new Tf(e,i,a,n,e.widget||null,!0)}static line(e){return new lb(e)}static set(e,n=!1){return rr.of(e,n)}hasHeight(){return this.widget?this.widget.estimatedHeight>-1:!1}}_t.none=rr.empty;class ob extends _t{constructor(e){let{start:n,end:i}=K7(e);super(n?-1:5e8,i?1:-6e8,null,e),this.tagName=e.tagName||"span",this.class=e.class||"",this.attrs=e.attributes||null}eq(e){var n,i;return this==e||e instanceof ob&&this.tagName==e.tagName&&(this.class||((n=this.attrs)===null||n===void 0?void 0:n.class))==(e.class||((i=e.attrs)===null||i===void 0?void 0:i.class))&&RA(this.attrs,e.attrs,"class")}range(e,n=e){if(e>=n)throw new RangeError("Mark decorations may not be empty");return super.range(e,n)}}ob.prototype.point=!1;class lb extends _t{constructor(e){super(-2e8,-2e8,null,e)}eq(e){return e instanceof lb&&this.spec.class==e.spec.class&&RA(this.spec.attributes,e.spec.attributes)}range(e,n=e){if(n!=e)throw new RangeError("Line decoration ranges must be zero-length");return super.range(e,n)}}lb.prototype.mapMode=ua.TrackBefore;lb.prototype.point=!0;class Tf extends _t{constructor(e,n,i,a,o,r){super(n,i,o,e),this.block=a,this.isReplace=r,this.mapMode=a?n<=0?ua.TrackBefore:ua.TrackAfter:ua.TrackDel}get type(){return this.startSide!=this.endSide?ma.WidgetRange:this.startSide<=0?ma.WidgetBefore:ma.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(e){return e instanceof Tf&&Qde(this.widget,e.widget)&&this.block==e.block&&this.startSide==e.startSide&&this.endSide==e.endSide}range(e,n=e){if(this.isReplace&&(e>n||e==n&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&n!=e)throw new RangeError("Widget decorations can only have zero-length ranges");return super.range(e,n)}}Tf.prototype.point=!0;function K7(t,e=!1){let{inclusiveStart:n,inclusiveEnd:i}=t;return n==null&&(n=t.inclusive),i==null&&(i=t.inclusive),{start:n??e,end:i??e}}function Qde(t,e){return t==e||!!(t&&e&&t.compare(e))}function U2(t,e,n,i=0){let a=n.length-1;a>=0&&n[a]+i>=t?n[a]=Math.max(n[a],e):n.push(t,e)}class Wn extends Lr{constructor(){super(...arguments),this.children=[],this.length=0,this.prevAttrs=void 0,this.attrs=null,this.breakAfter=0}merge(e,n,i,a,o,r){if(i){if(!(i instanceof Wn))return!1;this.dom||i.transferDOM(this)}return a&&this.setDeco(i?i.attrs:null),U7(this,e,n,i?i.children.slice():[],o,r),!0}split(e){let n=new Wn;if(n.breakAfter=this.breakAfter,this.length==0)return n;let{i,off:a}=this.childPos(e);a&&(n.append(this.children[i].split(a),0),this.children[i].merge(a,this.children[i].length,null,!1,0,0),i++);for(let o=i;o0&&this.children[i-1].length==0;)this.children[--i].destroy();return this.children.length=i,this.markDirty(),this.length=e,n}transferDOM(e){this.dom&&(this.markDirty(),e.setDOM(this.dom),e.prevAttrs=this.prevAttrs===void 0?this.attrs:this.prevAttrs,this.prevAttrs=void 0,this.dom=null)}setDeco(e){RA(this.attrs,e)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=e)}append(e,n){H7(this,e,n)}addLineDeco(e){let n=e.spec.attributes,i=e.spec.class;n&&(this.attrs=q2(n,this.attrs||{})),i&&(this.attrs=q2({class:i},this.attrs||{}))}domAtPos(e){return W7(this,e)}reuseDOM(e){e.nodeName=="DIV"&&(this.setDOM(e),this.flags|=6)}sync(e,n){var i;this.dom?this.flags&4&&(R7(this.dom),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0):(this.setDOM(document.createElement("div")),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0),this.prevAttrs!==void 0&&(z2(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add("cm-line"),this.prevAttrs=void 0),super.sync(e,n);let a=this.dom.lastChild;for(;a&&Lr.get(a)instanceof su;)a=a.lastChild;if(!a||!this.length||a.nodeName!="BR"&&((i=Lr.get(a))===null||i===void 0?void 0:i.isEditable)==!1&&(!ut.ios||!this.children.some(o=>o instanceof rl))){let o=document.createElement("BR");o.cmIgnore=!0,this.dom.appendChild(o)}}measureTextSize(){if(this.children.length==0||this.length>20)return null;let e=0,n;for(let i of this.children){if(!(i instanceof rl)||/[^ -~]/.test(i.text))return null;let a=og(i.dom);if(a.length!=1)return null;e+=a[0].width,n=a[0].height}return e?{lineHeight:this.dom.getBoundingClientRect().height,charWidth:e/this.length,textHeight:n}:null}coordsAt(e,n){let i=G7(this,e,n);if(!this.children.length&&i&&this.parent){let{heightOracle:a}=this.parent.view.viewState,o=i.bottom-i.top;if(Math.abs(o-a.lineHeight)<2&&a.textHeight=n){if(o instanceof Wn)return o;if(r>n)break}a=r+o.breakAfter}return null}}class Oc extends Lr{constructor(e,n,i){super(),this.widget=e,this.length=n,this.deco=i,this.breakAfter=0,this.prevWidget=null}merge(e,n,i,a,o,r){return i&&(!(i instanceof Oc)||!this.widget.compare(i.widget)||e>0&&o<=0||n0}}class B2 extends hu{constructor(e){super(),this.height=e}toDOM(){let e=document.createElement("div");return e.className="cm-gap",this.updateDOM(e),e}eq(e){return e.height==this.height}updateDOM(e){return e.style.height=this.height+"px",!0}get editable(){return!0}get estimatedHeight(){return this.height}ignoreEvent(){return!1}}class Vv{constructor(e,n,i,a){this.doc=e,this.pos=n,this.end=i,this.disallowBlockEffectsFor=a,this.content=[],this.curLine=null,this.breakAtStart=0,this.pendingBuffer=0,this.bufferMarks=[],this.atCursorPos=!0,this.openStart=-1,this.openEnd=-1,this.text="",this.textOff=0,this.cursor=e.iter(),this.skip=n}posCovered(){if(this.content.length==0)return!this.breakAtStart&&this.doc.lineAt(this.pos).from!=this.pos;let e=this.content[this.content.length-1];return!(e.breakAfter||e instanceof Oc&&e.deco.endSide<0)}getLine(){return this.curLine||(this.content.push(this.curLine=new Wn),this.atCursorPos=!0),this.curLine}flushBuffer(e=this.bufferMarks){this.pendingBuffer&&(this.curLine.append(X1(new lg(-1),e),e.length),this.pendingBuffer=0)}addBlockWidget(e){this.flushBuffer(),this.curLine=null,this.content.push(e)}finish(e){this.pendingBuffer&&e<=this.bufferMarks.length?this.flushBuffer():this.pendingBuffer=0,!this.posCovered()&&!(e&&this.content.length&&this.content[this.content.length-1]instanceof Oc)&&this.getLine()}buildText(e,n,i){for(;e>0;){if(this.textOff==this.text.length){let{value:o,lineBreak:r,done:s}=this.cursor.next(this.skip);if(this.skip=0,s)throw new Error("Ran out of text content when drawing inline views");if(r){this.posCovered()||this.getLine(),this.content.length?this.content[this.content.length-1].breakAfter=1:this.breakAtStart=1,this.flushBuffer(),this.curLine=null,this.atCursorPos=!0,e--;continue}else this.text=o,this.textOff=0}let a=Math.min(this.text.length-this.textOff,e,512);this.flushBuffer(n.slice(n.length-i)),this.getLine().append(X1(new rl(this.text.slice(this.textOff,this.textOff+a)),n),i),this.atCursorPos=!0,this.textOff+=a,e-=a,i=0}}span(e,n,i,a){this.buildText(n-e,i,a),this.pos=n,this.openStart<0&&(this.openStart=a)}point(e,n,i,a,o,r){if(this.disallowBlockEffectsFor[r]&&i instanceof Tf){if(i.block)throw new RangeError("Block decorations may not be specified via plugins");if(n>this.doc.lineAt(this.pos).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}let s=n-e;if(i instanceof Tf)if(i.block)i.startSide>0&&!this.posCovered()&&this.getLine(),this.addBlockWidget(new Oc(i.widget||cg.block,s,i));else{let c=uf.create(i.widget||cg.inline,s,s?0:i.startSide),l=this.atCursorPos&&!c.isEditable&&o<=a.length&&(e0),u=!c.isEditable&&(ea.length||i.startSide<=0),f=this.getLine();this.pendingBuffer==2&&!l&&!c.isEditable&&(this.pendingBuffer=0),this.flushBuffer(a),l&&(f.append(X1(new lg(1),a),o),o=a.length+Math.max(0,o-a.length)),f.append(X1(c,a),o),this.atCursorPos=u,this.pendingBuffer=u?ea.length?1:2:0,this.pendingBuffer&&(this.bufferMarks=a.slice())}else this.doc.lineAt(this.pos).from==this.pos&&this.getLine().addLineDeco(i);s&&(this.textOff+s<=this.text.length?this.textOff+=s:(this.skip+=s-(this.text.length-this.textOff),this.text="",this.textOff=0),this.pos=n),this.openStart<0&&(this.openStart=o)}static build(e,n,i,a,o){let r=new Vv(e,n,i,o);return r.openEnd=rr.spans(a,n,i,r),r.openStart<0&&(r.openStart=r.openEnd),r.finish(r.openEnd),r}}function X1(t,e){for(let n of e)t=new su(n,[t],t.length);return t}class cg extends hu{constructor(e){super(),this.tag=e}eq(e){return e.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(e){return e.nodeName.toLowerCase()==this.tag}get isHidden(){return!0}}cg.inline=new cg("span");cg.block=new cg("div");var rn=function(t){return t[t.LTR=0]="LTR",t[t.RTL=1]="RTL",t}(rn||(rn={}));const lh=rn.LTR,Ej=rn.RTL;function Y7(t){let e=[];for(let n=0;n=n){if(s.level==i)return r;(o<0||(a!=0?a<0?s.fromn:e[o].level>s.level))&&(o=r)}}if(o<0)throw new RangeError("Index out of range");return o}}function Q7(t,e){if(t.length!=e.length)return!1;for(let n=0;n=0;g-=3)if(Pl[g+1]==-d){let b=Pl[g+2],v=b&2?a:b&4?b&1?o:a:0;v&&(Nr[f]=Nr[Pl[g]]=v),s=g;break}}else{if(Pl.length==189)break;Pl[s++]=f,Pl[s++]=h,Pl[s++]=c}else if((m=Nr[f])==2||m==1){let g=m==a;c=g?0:1;for(let b=s-3;b>=0;b-=3){let v=Pl[b+2];if(v&2)break;if(g)Pl[b+2]|=2;else{if(v&4)break;Pl[b+2]|=4}}}}}function nme(t,e,n,i){for(let a=0,o=i;a<=n.length;a++){let r=a?n[a-1].to:t,s=ac;)m==b&&(m=n[--g].from,b=g?n[g-1].to:t),Nr[--m]=d;c=u}else o=l,c++}}}function W2(t,e,n,i,a,o,r){let s=i%2?2:1;if(i%2==a%2)for(let c=e,l=0;cc&&r.push(new ff(c,g.from,d));let b=g.direction==lh!=!(d%2);H2(t,b?i+1:i,a,g.inner,g.from,g.to,r),c=g.to}m=g.to}else{if(m==n||(u?Nr[m]!=s:Nr[m]==s))break;m++}h?W2(t,c,m,i+1,a,h,r):ce;){let u=!0,f=!1;if(!l||c>o[l-1].to){let g=Nr[c-1];g!=s&&(u=!1,f=g==16)}let h=!u&&s==1?[]:null,d=u?i:i+1,m=c;e:for(;;)if(l&&m==o[l-1].to){if(f)break e;let g=o[--l];if(!u)for(let b=g.from,v=l;;){if(b==e)break e;if(v&&o[v-1].to==b)b=o[--v].from;else{if(Nr[b-1]==s)break e;break}}if(h)h.push(g);else{g.toNr.length;)Nr[Nr.length]=256;let i=[],a=e==lh?0:1;return H2(t,a,a,n,0,t.length,i),i}function Z7(t){return[new ff(0,t,0)]}let X7="";function ame(t,e,n,i,a){var o;let r=i.head-t.from,s=ff.find(e,r,(o=i.bidiLevel)!==null&&o!==void 0?o:-1,i.assoc),c=e[s],l=c.side(a,n);if(r==l){let h=s+=a?1:-1;if(h<0||h>=e.length)return null;c=e[s=h],r=c.side(!a,n),l=c.side(a,n)}let u=Di(t.text,r,c.forward(a,n));(uc.to)&&(u=l),X7=t.text.slice(Math.min(r,u),Math.max(r,u));let f=s==(a?e.length-1:0)?null:e[s+(a?1:-1)];return f&&u==l&&f.level+(a?0:1)t.some(e=>e)}),oG=lt.define({combine:t=>t.some(e=>e)}),lG=lt.define();class tm{constructor(e,n="nearest",i="nearest",a=5,o=5,r=!1){this.range=e,this.y=n,this.x=i,this.yMargin=a,this.xMargin=o,this.isSnapshot=r}map(e){return e.empty?this:new tm(this.range.map(e),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}clip(e){return this.range.to<=e.doc.length?this:new tm(Ve.cursor(e.doc.length),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}}const ew=Nt.define({map:(t,e)=>t.map(e)}),cG=Nt.define();function pa(t,e,n){let i=t.facet(nG);i.length?i[0](e):window.onerror?window.onerror(String(e),n,void 0,void 0,e):n?console.error(n+":",e):console.error(e)}const ef=lt.define({combine:t=>t.length?t[0]:!0});let ome=0;const yv=lt.define();class $n{constructor(e,n,i,a,o){this.id=e,this.create=n,this.domEventHandlers=i,this.domEventObservers=a,this.extension=o(this)}static define(e,n){const{eventHandlers:i,eventObservers:a,provide:o,decorations:r}=n||{};return new $n(ome++,e,i,a,s=>{let c=[yv.of(s)];return r&&c.push(CP.of(l=>{let u=l.plugin(s);return u?r(u):_t.none})),o&&c.push(o(s)),c})}static fromClass(e,n){return $n.define(i=>new e(i),n)}}class Nk{constructor(e){this.spec=e,this.mustUpdate=null,this.value=null}update(e){if(this.value){if(this.mustUpdate){let n=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(n)}catch(i){if(pa(n.state,i,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch{}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.create(e)}catch(n){pa(e.state,n,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(e){var n;if(!((n=this.value)===null||n===void 0)&&n.destroy)try{this.value.destroy()}catch(i){pa(e.state,i,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}}const uG=lt.define(),Tj=lt.define(),CP=lt.define(),fG=lt.define(),jj=lt.define(),pG=lt.define();function E4(t,e){let n=t.state.facet(pG);if(!n.length)return n;let i=n.map(o=>o instanceof Function?o(t):o),a=[];return rr.spans(i,e.from,e.to,{point(){},span(o,r,s,c){let l=o-e.from,u=r-e.from,f=a;for(let h=s.length-1;h>=0;h--,c--){let d=s[h].spec.bidiIsolate,m;if(d==null&&(d=sme(e.text,l,u)),c>0&&f.length&&(m=f[f.length-1]).to==l&&m.direction==d)m.to=u,f=m.inner;else{let g={from:l,to:u,direction:d,inner:[]};f.push(g),f=g.inner}}}}),a}const hG=lt.define();function dG(t){let e=0,n=0,i=0,a=0;for(let o of t.state.facet(hG)){let r=o(t);r&&(r.left!=null&&(e=Math.max(e,r.left)),r.right!=null&&(n=Math.max(n,r.right)),r.top!=null&&(i=Math.max(i,r.top)),r.bottom!=null&&(a=Math.max(a,r.bottom)))}return{left:e,right:n,top:i,bottom:a}}const gv=lt.define();class io{constructor(e,n,i,a){this.fromA=e,this.toA=n,this.fromB=i,this.toB=a}join(e){return new io(Math.min(this.fromA,e.fromA),Math.max(this.toA,e.toA),Math.min(this.fromB,e.fromB),Math.max(this.toB,e.toB))}addToSet(e){let n=e.length,i=this;for(;n>0;n--){let a=e[n-1];if(!(a.fromA>i.toA)){if(a.toAu)break;o+=2}if(!c)return i;new io(c.fromA,c.toA,c.fromB,c.toB).addToSet(i),r=c.toA,s=c.toB}}}class NA{constructor(e,n,i){this.view=e,this.state=n,this.transactions=i,this.flags=0,this.startState=e.state,this.changes=Xn.empty(this.startState.doc.length);for(let o of i)this.changes=this.changes.compose(o.changes);let a=[];this.changes.iterChangedRanges((o,r,s,c)=>a.push(new io(o,r,s,c))),this.changedRanges=a}static create(e,n,i){return new NA(e,n,i)}get viewportChanged(){return(this.flags&4)>0}get heightChanged(){return(this.flags&2)>0}get geometryChanged(){return this.docChanged||(this.flags&10)>0}get focusChanged(){return(this.flags&1)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some(e=>e.selection)}get empty(){return this.flags==0&&this.transactions.length==0}}class I4 extends Lr{get length(){return this.view.state.doc.length}constructor(e){super(),this.view=e,this.decorations=[],this.dynamicDecorationMap=[!1],this.domChanged=null,this.hasComposition=null,this.markedForComposition=new Set,this.editContextFormatting=_t.none,this.lastCompositionAfterCursor=!1,this.minWidth=0,this.minWidthFrom=0,this.minWidthTo=0,this.impreciseAnchor=null,this.impreciseHead=null,this.forceSelection=!1,this.lastUpdate=Date.now(),this.setDOM(e.contentDOM),this.children=[new Wn],this.children[0].setParent(this),this.updateDeco(),this.updateInner([new io(0,0,0,e.state.doc.length)],0,null)}update(e){var n;let i=e.changedRanges;this.minWidth>0&&i.length&&(i.every(({fromA:l,toA:u})=>uthis.minWidthTo)?(this.minWidthFrom=e.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=e.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0),this.updateEditContextFormatting(e);let a=-1;this.view.inputState.composing>=0&&!this.view.observer.editContext&&(!((n=this.domChanged)===null||n===void 0)&&n.newSel?a=this.domChanged.newSel.head:!dme(e.changes,this.hasComposition)&&!e.selectionSet&&(a=e.state.selection.main.head));let o=a>-1?cme(this.view,e.changes,a):null;if(this.domChanged=null,this.hasComposition){this.markedForComposition.clear();let{from:l,to:u}=this.hasComposition;i=new io(l,u,e.changes.mapPos(l,-1),e.changes.mapPos(u,1)).addToSet(i.slice())}this.hasComposition=o?{from:o.range.fromB,to:o.range.toB}:null,(ut.ie||ut.chrome)&&!o&&e&&e.state.doc.lines!=e.startState.doc.lines&&(this.forceSelection=!0);let r=this.decorations,s=this.updateDeco(),c=pme(r,s,e.changes);return i=io.extendWithRanges(i,c),!(this.flags&7)&&i.length==0?!1:(this.updateInner(i,e.startState.doc.length,o),e.transactions.length&&(this.lastUpdate=Date.now()),!0)}updateInner(e,n,i){this.view.viewState.mustMeasureContent=!0,this.updateChildren(e,n,i);let{observer:a}=this.view;a.ignore(()=>{this.dom.style.height=this.view.viewState.contentHeight/this.view.scaleY+"px",this.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let r=ut.chrome||ut.ios?{node:a.selectionRange.focusNode,written:!1}:void 0;this.sync(this.view,r),this.flags&=-8,r&&(r.written||a.selectionRange.focusNode!=r.node)&&(this.forceSelection=!0),this.dom.style.height=""}),this.markedForComposition.forEach(r=>r.flags&=-9);let o=[];if(this.view.viewport.from||this.view.viewport.to=0?a[r]:null;if(!s)break;let{fromA:c,toA:l,fromB:u,toB:f}=s,h,d,m,g;if(i&&i.range.fromBu){let _=Vv.build(this.view.state.doc,u,i.range.fromB,this.decorations,this.dynamicDecorationMap),x=Vv.build(this.view.state.doc,i.range.toB,f,this.decorations,this.dynamicDecorationMap);d=_.breakAtStart,m=_.openStart,g=x.openEnd;let E=this.compositionView(i);x.breakAtStart?E.breakAfter=1:x.content.length&&E.merge(E.length,E.length,x.content[0],!1,x.openStart,0)&&(E.breakAfter=x.content[0].breakAfter,x.content.shift()),_.content.length&&E.merge(0,0,_.content[_.content.length-1],!0,0,_.openEnd)&&_.content.pop(),h=_.content.concat(E).concat(x.content)}else({content:h,breakAtStart:d,openStart:m,openEnd:g}=Vv.build(this.view.state.doc,u,f,this.decorations,this.dynamicDecorationMap));let{i:b,off:v}=o.findPos(l,1),{i:P,off:A}=o.findPos(c,-1);z7(this,P,A,b,v,h,d,m,g)}i&&this.fixCompositionDOM(i)}updateEditContextFormatting(e){this.editContextFormatting=this.editContextFormatting.map(e.changes);for(let n of e.transactions)for(let i of n.effects)i.is(cG)&&(this.editContextFormatting=i.value)}compositionView(e){let n=new rl(e.text.nodeValue);n.flags|=8;for(let{deco:a}of e.marks)n=new su(a,[n],n.length);let i=new Wn;return i.append(n,0),i}fixCompositionDOM(e){let n=(o,r)=>{r.flags|=8|(r.children.some(c=>c.flags&7)?1:0),this.markedForComposition.add(r);let s=Lr.get(o);s&&s!=r&&(s.dom=null),r.setDOM(o)},i=this.childPos(e.range.fromB,1),a=this.children[i.i];n(e.line,a);for(let o=e.marks.length-1;o>=-1;o--)i=a.childPos(i.off,1),a=a.children[i.i],n(o>=0?e.marks[o].node:e.text,a)}updateSelection(e=!1,n=!1){(e||!this.view.observer.selectionRange.focusNode)&&this.view.observer.readSelectionRange();let i=this.view.root.activeElement,a=i==this.dom,o=!a&&P$(this.dom,this.view.observer.selectionRange)&&!(i&&this.dom.contains(i));if(!(a||n||o))return;let r=this.forceSelection;this.forceSelection=!1;let s=this.view.state.selection.main,c=this.moveToLine(this.domAtPos(s.anchor)),l=s.empty?c:this.moveToLine(this.domAtPos(s.head));if(ut.gecko&&s.empty&&!this.hasComposition&&lme(c)){let f=document.createTextNode("");this.view.observer.ignore(()=>c.node.insertBefore(f,c.node.childNodes[c.offset]||null)),c=l=new Vi(f,0),r=!0}let u=this.view.observer.selectionRange;(r||!u.focusNode||(!Bv(c.node,c.offset,u.anchorNode,u.anchorOffset)||!Bv(l.node,l.offset,u.focusNode,u.focusOffset))&&!this.suppressWidgetCursorChange(u,s))&&(this.view.observer.ignore(()=>{ut.android&&ut.chrome&&this.dom.contains(u.focusNode)&&hme(u.focusNode,this.dom)&&(this.dom.blur(),this.dom.focus({preventScroll:!0}));let f=IP(this.view.root);if(f)if(s.empty){if(ut.gecko){let h=ume(c.node,c.offset);if(h&&h!=3){let d=(h==1?L7:F7)(c.node,c.offset);d&&(c=new Vi(d.node,d.offset))}}f.collapse(c.node,c.offset),s.bidiLevel!=null&&f.caretBidiLevel!==void 0&&(f.caretBidiLevel=s.bidiLevel)}else if(f.extend){f.collapse(c.node,c.offset);try{f.extend(l.node,l.offset)}catch{}}else{let h=document.createRange();s.anchor>s.head&&([c,l]=[l,c]),h.setEnd(l.node,l.offset),h.setStart(c.node,c.offset),f.removeAllRanges(),f.addRange(h)}o&&this.view.root.activeElement==this.dom&&(this.dom.blur(),i&&i.focus())}),this.view.observer.setSelectionRange(c,l)),this.impreciseAnchor=c.precise?null:new Vi(u.anchorNode,u.anchorOffset),this.impreciseHead=l.precise?null:new Vi(u.focusNode,u.focusOffset)}suppressWidgetCursorChange(e,n){return this.hasComposition&&n.empty&&Bv(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)&&this.posFromDOM(e.focusNode,e.focusOffset)==n.head}enforceCursorAssoc(){if(this.hasComposition)return;let{view:e}=this,n=e.state.selection.main,i=IP(e.root),{anchorNode:a,anchorOffset:o}=e.observer.selectionRange;if(!i||!n.empty||!n.assoc||!i.modify)return;let r=Wn.find(this,n.head);if(!r)return;let s=r.posAtStart;if(n.head==s||n.head==s+r.length)return;let c=this.coordsAt(n.head,-1),l=this.coordsAt(n.head,1);if(!c||!l||c.bottom>l.top)return;let u=this.domAtPos(n.head+n.assoc);i.collapse(u.node,u.offset),i.modify("move",n.assoc<0?"forward":"backward","lineboundary"),e.observer.readSelectionRange();let f=e.observer.selectionRange;e.docView.posFromDOM(f.anchorNode,f.anchorOffset)!=n.from&&i.collapse(a,o)}moveToLine(e){let n=this.dom,i;if(e.node!=n)return e;for(let a=e.offset;!i&&a=0;a--){let o=Lr.get(n.childNodes[a]);o instanceof Wn&&(i=o.domAtPos(o.length))}return i?new Vi(i.node,i.offset,!0):e}nearest(e){for(let n=e;n;){let i=Lr.get(n);if(i&&i.rootView==this)return i;n=n.parentNode}return null}posFromDOM(e,n){let i=this.nearest(e);if(!i)throw new RangeError("Trying to find position for a DOM position outside of the document");return i.localPosFromDOM(e,n)+i.posAtStart}domAtPos(e){let{i:n,off:i}=this.childCursor().findPos(e,-1);for(;n=0;r--){let s=this.children[r],c=o-s.breakAfter,l=c-s.length;if(ce||s.covers(1))&&(!i||s instanceof Wn&&!(i instanceof Wn&&n>=0)))i=s,a=l;else if(i&&l==e&&c==e&&s instanceof Oc&&Math.abs(n)<2){if(s.deco.startSide<0)break;r&&(i=null)}o=l}return i?i.coordsAt(e-a,n):null}coordsForChar(e){let{i:n,off:i}=this.childPos(e,1),a=this.children[n];if(!(a instanceof Wn))return null;for(;a.children.length;){let{i:s,off:c}=a.childPos(i,1);for(;;s++){if(s==a.children.length)return null;if((a=a.children[s]).length)break}i=c}if(!(a instanceof rl))return null;let o=Di(a.text,i);if(o==i)return null;let r=oh(a.dom,i,o).getClientRects();for(let s=0;sMath.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,s=-1,c=this.view.textDirection==rn.LTR;for(let l=0,u=0;ua)break;if(l>=i){let d=f.dom.getBoundingClientRect();if(n.push(d.height),r){let m=f.dom.lastChild,g=m?og(m):[];if(g.length){let b=g[g.length-1],v=c?b.right-d.left:d.right-b.left;v>s&&(s=v,this.minWidth=o,this.minWidthFrom=l,this.minWidthTo=h)}}}l=h+f.breakAfter}return n}textDirectionAt(e){let{i:n}=this.childPos(e,1);return getComputedStyle(this.children[n].dom).direction=="rtl"?rn.RTL:rn.LTR}measureTextSize(){for(let o of this.children)if(o instanceof Wn){let r=o.measureTextSize();if(r)return r}let e=document.createElement("div"),n,i,a;return e.className="cm-line",e.style.width="99999px",e.style.position="absolute",e.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore(()=>{this.dom.appendChild(e);let o=og(e.firstChild)[0];n=e.getBoundingClientRect().height,i=o?o.width/27:7,a=o?o.height:n,e.remove()}),{lineHeight:n,charWidth:i,textHeight:a}}childCursor(e=this.length){let n=this.children.length;return n&&(e-=this.children[--n].length),new q7(this.children,e,n)}computeBlockGapDeco(){let e=[],n=this.view.viewState;for(let i=0,a=0;;a++){let o=a==n.viewports.length?null:n.viewports[a],r=o?o.from-1:this.length;if(r>i){let s=(n.lineBlockAt(r).bottom-n.lineBlockAt(i).top)/this.view.scaleY;e.push(_t.replace({widget:new B2(s),block:!0,inclusive:!0,isBlockGap:!0}).range(i,r))}if(!o)break;i=o.to+1}return _t.set(e)}updateDeco(){let e=1,n=this.view.state.facet(CP).map(o=>(this.dynamicDecorationMap[e++]=typeof o=="function")?o(this.view):o),i=!1,a=this.view.state.facet(fG).map((o,r)=>{let s=typeof o=="function";return s&&(i=!0),s?o(this.view):o});for(a.length&&(this.dynamicDecorationMap[e++]=i,n.push(rr.join(a))),this.decorations=[this.editContextFormatting,...n,this.computeBlockGapDeco(),this.view.viewState.lineGapDeco];en.anchor?-1:1),a;if(!i)return;!n.empty&&(a=this.coordsAt(n.anchor,n.anchor>n.head?-1:1))&&(i={left:Math.min(i.left,a.left),top:Math.min(i.top,a.top),right:Math.max(i.right,a.right),bottom:Math.max(i.bottom,a.bottom)});let o=dG(this.view),r={left:i.left-o.left,top:i.top-o.top,right:i.right+o.right,bottom:i.bottom+o.bottom},{offsetWidth:s,offsetHeight:c}=this.view.scrollDOM;Ude(this.view.scrollDOM,r,n.head{ie.from&&(n=!0)}),n}function mme(t,e,n=1){let i=t.charCategorizer(e),a=t.doc.lineAt(e),o=e-a.from;if(a.length==0)return Ve.cursor(e);o==0?n=1:o==a.length&&(n=-1);let r=o,s=o;n<0?r=Di(a.text,o,!1):s=Di(a.text,o);let c=i(a.text.slice(r,s));for(;r>0;){let l=Di(a.text,r,!1);if(i(a.text.slice(l,r))!=c)break;r=l}for(;st?e.left-t:Math.max(0,t-e.right)}function gme(t,e){return e.top>t?e.top-t:Math.max(0,t-e.bottom)}function Lk(t,e){return t.tope.top+1}function C4(t,e){return et.bottom?{top:t.top,left:t.left,right:t.right,bottom:e}:t}function K2(t,e,n){let i,a,o,r,s=!1,c,l,u,f;for(let m=t.firstChild;m;m=m.nextSibling){let g=og(m);for(let b=0;bA||r==A&&o>P){i=m,a=v,o=P,r=A;let _=A?n0?b0)}P==0?n>v.bottom&&(!u||u.bottomv.top)&&(l=m,f=v):u&&Lk(u,v)?u=T4(u,v.bottom):f&&Lk(f,v)&&(f=C4(f,v.top))}}if(u&&u.bottom>=n?(i=c,a=u):f&&f.top<=n&&(i=l,a=f),!i)return{node:t,offset:0};let h=Math.max(a.left,Math.min(a.right,e));if(i.nodeType==3)return j4(i,h,n);if(s&&i.contentEditable!="false")return K2(i,h,n);let d=Array.prototype.indexOf.call(t.childNodes,i)+(e>=(a.left+a.right)/2?1:0);return{node:t,offset:d}}function j4(t,e,n){let i=t.nodeValue.length,a=-1,o=1e9,r=0;for(let s=0;sn?u.top-n:n-u.bottom)-1;if(u.left-1<=e&&u.right+1>=e&&f=(u.left+u.right)/2,d=h;if((ut.chrome||ut.gecko)&&oh(t,s).getBoundingClientRect().left==u.right&&(d=!h),f<=0)return{node:t,offset:s+(d?1:0)};a=s+(d?1:0),o=f}}}return{node:t,offset:a>-1?a:r>0?t.nodeValue.length:0}}function yG(t,e,n,i=-1){var a,o;let r=t.contentDOM.getBoundingClientRect(),s=r.top+t.viewState.paddingTop,c,{docHeight:l}=t.viewState,{x:u,y:f}=e,h=f-s;if(h<0)return 0;if(h>l)return t.state.doc.length;for(let _=t.viewState.heightOracle.textHeight/2,x=!1;c=t.elementAtHeight(h),c.type!=ma.Text;)for(;h=i>0?c.bottom+_:c.top-_,!(h>=0&&h<=l);){if(x)return n?null:0;x=!0,i=-i}f=s+h;let d=c.from;if(dt.viewport.to)return t.viewport.to==t.state.doc.length?t.state.doc.length:n?null:M4(t,r,c,u,f);let m=t.dom.ownerDocument,g=t.root.elementFromPoint?t.root:m,b=g.elementFromPoint(u,f);b&&!t.contentDOM.contains(b)&&(b=null),b||(u=Math.max(r.left+1,Math.min(r.right-1,u)),b=g.elementFromPoint(u,f),b&&!t.contentDOM.contains(b)&&(b=null));let v,P=-1;if(b&&((a=t.docView.nearest(b))===null||a===void 0?void 0:a.isEditable)!=!1){if(m.caretPositionFromPoint){let _=m.caretPositionFromPoint(u,f);_&&({offsetNode:v,offset:P}=_)}else if(m.caretRangeFromPoint){let _=m.caretRangeFromPoint(u,f);_&&({startContainer:v,startOffset:P}=_,(!t.contentDOM.contains(v)||ut.safari&&vme(v,P,u)||ut.chrome&&Pme(v,P,u))&&(v=void 0))}v&&(P=Math.min(Wl(v),P))}if(!v||!t.docView.dom.contains(v)){let _=Wn.find(t.docView,d);if(!_)return h>c.top+c.height/2?c.to:c.from;({node:v,offset:P}=K2(_.dom,u,f))}let A=t.docView.nearest(v);if(!A)return null;if(A.isWidget&&((o=A.dom)===null||o===void 0?void 0:o.nodeType)==1){let _=A.dom.getBoundingClientRect();return e.y<_.top||e.y<=_.bottom&&e.x<=(_.left+_.right)/2?A.posAtStart:A.posAtEnd}else return A.localPosFromDOM(v,P)+A.posAtStart}function M4(t,e,n,i,a){let o=Math.round((i-e.left)*t.defaultCharacterWidth);if(t.lineWrapping&&n.height>t.defaultLineHeight*1.5){let s=t.viewState.heightOracle.textHeight,c=Math.floor((a-n.top-(t.defaultLineHeight-s)*.5)/s);o+=c*t.viewState.heightOracle.lineLength}let r=t.state.sliceDoc(n.from,n.to);return n.from+T2(r,o,t.state.tabSize)}function vme(t,e,n){let i;if(t.nodeType!=3||e!=(i=t.nodeValue.length))return!1;for(let a=t.nextSibling;a;a=a.nextSibling)if(a.nodeType!=1||a.nodeName!="BR")return!1;return oh(t,i-1,i).getBoundingClientRect().left>n}function Pme(t,e,n){if(e!=0)return!1;for(let a=t;;){let o=a.parentNode;if(!o||o.nodeType!=1||o.firstChild!=a)return!1;if(o.classList.contains("cm-line"))break;a=o}let i=t.nodeType==1?t.getBoundingClientRect():oh(t,0,Math.max(t.nodeValue.length,1)).getBoundingClientRect();return n-i.left>5}function Y2(t,e){let n=t.lineBlockAt(e);if(Array.isArray(n.type)){for(let i of n.type)if(i.to>e||i.to==e&&(i.to==n.to||i.type==ma.Text))return i}return n}function bme(t,e,n,i){let a=Y2(t,e.head),o=!i||a.type!=ma.Text||!(t.lineWrapping||a.widgetLineBreaks)?null:t.coordsAtPos(e.assoc<0&&e.head>a.from?e.head-1:e.head);if(o){let r=t.dom.getBoundingClientRect(),s=t.textDirectionAt(a.from),c=t.posAtCoords({x:n==(s==rn.LTR)?r.right-1:r.left+1,y:(o.top+o.bottom)/2});if(c!=null)return Ve.cursor(c,n?-1:1)}return Ve.cursor(n?a.to:a.from,n?-1:1)}function R4(t,e,n,i){let a=t.state.doc.lineAt(e.head),o=t.bidiSpans(a),r=t.textDirectionAt(a.from);for(let s=e,c=null;;){let l=ame(a,o,r,s,n),u=X7;if(!l){if(a.number==(n?t.state.doc.lines:1))return s;u=` +`,a=t.state.doc.line(a.number+(n?1:-1)),o=t.bidiSpans(a),l=t.visualLineSide(a,!n)}if(c){if(!c(u))return s}else{if(!i)return l;c=i(u)}s=l}}function wme(t,e,n){let i=t.state.charCategorizer(e),a=i(n);return o=>{let r=i(o);return a==cn.Space&&(a=r),a==r}}function $me(t,e,n,i){let a=e.head,o=n?1:-1;if(a==(n?t.state.doc.length:0))return Ve.cursor(a,e.assoc);let r=e.goalColumn,s,c=t.contentDOM.getBoundingClientRect(),l=t.coordsAtPos(a,e.assoc||-1),u=t.documentTop;if(l)r==null&&(r=l.left-c.left),s=o<0?l.top:l.bottom;else{let d=t.viewState.lineBlockAt(a);r==null&&(r=Math.min(c.right-c.left,t.defaultCharacterWidth*(a-d.from))),s=(o<0?d.top:d.bottom)+u}let f=c.left+r,h=i??t.viewState.heightOracle.textHeight>>1;for(let d=0;;d+=10){let m=s+(h+d)*o,g=yG(t,{x:f,y:m},!1,o);if(mc.bottom||(o<0?ga)){let b=t.docView.coordsForChar(g),v=!b||m{if(e>o&&ea(t)),n.from,e.head>n.from?-1:1);return i==n.from?n:Ve.cursor(i,io)&&this.lineBreak(),a=r}return this.findPointBefore(i,n),this}readTextNode(e){let n=e.nodeValue;for(let i of this.points)i.node==e&&(i.pos=this.text.length+Math.min(i.offset,n.length));for(let i=0,a=this.lineSeparator?null:/\r\n?|\n/g;;){let o=-1,r=1,s;if(this.lineSeparator?(o=n.indexOf(this.lineSeparator,i),r=this.lineSeparator.length):(s=a.exec(n))&&(o=s.index,r=s[0].length),this.append(n.slice(i,o<0?n.length:o)),o<0)break;if(this.lineBreak(),r>1)for(let c of this.points)c.node==e&&c.pos>this.text.length&&(c.pos-=r-1);i=o+r}}readNode(e){if(e.cmIgnore)return;let n=Lr.get(e),i=n&&n.overrideDOMText;if(i!=null){this.findPointInside(e,i.length);for(let a=i.iter();!a.next().done;)a.lineBreak?this.lineBreak():this.append(a.value)}else e.nodeType==3?this.readTextNode(e):e.nodeName=="BR"?e.nextSibling&&this.lineBreak():e.nodeType==1&&this.readRange(e.firstChild,null)}findPointBefore(e,n){for(let i of this.points)i.node==e&&e.childNodes[i.offset]==n&&(i.pos=this.text.length)}findPointInside(e,n){for(let i of this.points)(e.nodeType==3?i.node==e:e.contains(i.node))&&(i.pos=this.text.length+(Sme(e,i.node,i.offset)?n:0))}}function Sme(t,e,n){for(;;){if(!e||n-1;let{impreciseHead:o,impreciseAnchor:r}=e.docView;if(e.state.readOnly&&n>-1)this.newSel=null;else if(n>-1&&(this.bounds=e.docView.domBoundsAround(n,i,0))){let s=o||r?[]:kme(e),c=new Ame(s,e.state);c.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=c.text,this.newSel=Ome(s,this.bounds.from)}else{let s=e.observer.selectionRange,c=o&&o.node==s.focusNode&&o.offset==s.focusOffset||!R2(e.contentDOM,s.focusNode)?e.state.selection.main.head:e.docView.posFromDOM(s.focusNode,s.focusOffset),l=r&&r.node==s.anchorNode&&r.offset==s.anchorOffset||!R2(e.contentDOM,s.anchorNode)?e.state.selection.main.anchor:e.docView.posFromDOM(s.anchorNode,s.anchorOffset),u=e.viewport;if((ut.ios||ut.chrome)&&e.state.selection.main.empty&&c!=l&&(u.from>0||u.toDate.now()-100?t.inputState.lastKeyCode:-1;if(e.bounds){let{from:r,to:s}=e.bounds,c=a.from,l=null;(o===8||ut.android&&e.text.length=a.from&&n.to<=a.to&&(n.from!=a.from||n.to!=a.to)&&a.to-a.from-(n.to-n.from)<=4?n={from:a.from,to:a.to,insert:t.state.doc.slice(a.from,n.from).append(n.insert).append(t.state.doc.slice(n.to,a.to))}:(ut.mac||ut.android)&&n&&n.from==n.to&&n.from==a.head-1&&/^\. ?$/.test(n.insert.toString())&&t.contentDOM.getAttribute("autocorrect")=="off"?(i&&n.insert.length==2&&(i=Ve.single(i.main.anchor-1,i.main.head-1)),n={from:a.from,to:a.to,insert:fr.of([" "])}):ut.chrome&&n&&n.from==n.to&&n.from==a.head&&n.insert.toString()==` + `&&t.lineWrapping&&(i&&(i=Ve.single(i.main.anchor-1,i.main.head-1)),n={from:a.from,to:a.to,insert:fr.of([" "])}),n)return Mj(t,n,i,o);if(i&&!i.main.eq(a)){let r=!1,s="select";return t.inputState.lastSelectionTime>Date.now()-50&&(t.inputState.lastSelectionOrigin=="select"&&(r=!0),s=t.inputState.lastSelectionOrigin),t.dispatch({selection:i,scrollIntoView:r,userEvent:s}),!0}else return!1}function Mj(t,e,n,i=-1){if(ut.ios&&t.inputState.flushIOSKey(e))return!0;let a=t.state.selection.main;if(ut.android&&(e.to==a.to&&(e.from==a.from||e.from==a.from-1&&t.state.sliceDoc(e.from,a.from)==" ")&&e.insert.length==1&&e.insert.lines==2&&em(t.contentDOM,"Enter",13)||(e.from==a.from-1&&e.to==a.to&&e.insert.length==0||i==8&&e.insert.lengtha.head)&&em(t.contentDOM,"Backspace",8)||e.from==a.from&&e.to==a.to+1&&e.insert.length==0&&em(t.contentDOM,"Delete",46)))return!0;let o=e.insert.toString();t.inputState.composing>=0&&t.inputState.composing++;let r,s=()=>r||(r=xme(t,e,n));return t.state.facet(iG).some(c=>c(t,e.from,e.to,o,s))||t.dispatch(s()),!0}function xme(t,e,n){let i,a=t.state,o=a.selection.main;if(e.from>=o.from&&e.to<=o.to&&e.to-e.from>=(o.to-o.from)/3&&(!n||n.main.empty&&n.main.from==e.from+e.insert.length)&&t.inputState.composing<0){let s=o.frome.to?a.sliceDoc(e.to,o.to):"";i=a.replaceSelection(t.state.toText(s+e.insert.sliceString(0,void 0,t.state.lineBreak)+c))}else{let s=a.changes(e),c=n&&n.main.to<=s.newLength?n.main:void 0;if(a.selection.ranges.length>1&&t.inputState.composing>=0&&e.to<=o.to&&e.to>=o.to-10){let l=t.state.sliceDoc(e.from,e.to),u,f=n&&mG(t,n.main.head);if(f){let m=e.insert.length-(e.to-e.from);u={from:f.from,to:f.to-m}}else u=t.state.doc.lineAt(o.head);let h=o.to-e.to,d=o.to-o.from;i=a.changeByRange(m=>{if(m.from==o.from&&m.to==o.to)return{changes:s,range:c||m.map(s)};let g=m.to-h,b=g-l.length;if(m.to-m.from!=d||t.state.sliceDoc(b,g)!=l||m.to>=u.from&&m.from<=u.to)return{range:m};let v=a.changes({from:b,to:g,insert:e.insert}),P=m.to-o.to;return{changes:v,range:c?Ve.range(Math.max(0,c.anchor+P),Math.max(0,c.head+P)):m.map(v)}})}else i={changes:s,selection:c&&a.selection.replaceRange(c)}}let r="input.type";return(t.composing||t.inputState.compositionPendingChange&&t.inputState.compositionEndedAt>Date.now()-50)&&(t.inputState.compositionPendingChange=!1,r+=".compose",t.inputState.compositionFirstChange&&(r+=".start",t.inputState.compositionFirstChange=!1)),a.update(i,{userEvent:r,scrollIntoView:!0})}function Dme(t,e,n,i){let a=Math.min(t.length,e.length),o=0;for(;o0&&s>0&&t.charCodeAt(r-1)==e.charCodeAt(s-1);)r--,s--;if(i=="end"){let c=Math.max(0,o-Math.min(r,s));n-=r+c-o}if(r=r?o-n:0;o-=c,s=o+(s-r),r=o}else if(s=s?o-n:0;o-=c,r=o+(r-s),s=o}return{from:o,toA:r,toB:s}}function kme(t){let e=[];if(t.root.activeElement!=t.contentDOM)return e;let{anchorNode:n,anchorOffset:i,focusNode:a,focusOffset:o}=t.observer.selectionRange;return n&&(e.push(new N4(n,i)),(a!=n||o!=i)&&e.push(new N4(a,o))),e}function Ome(t,e){if(t.length==0)return null;let n=t[0].pos,i=t.length==2?t[1].pos:n;return n>-1&&i>-1?Ve.single(n+e,i+e):null}class Eme{setSelectionOrigin(e){this.lastSelectionOrigin=e,this.lastSelectionTime=Date.now()}constructor(e){this.view=e,this.lastKeyCode=0,this.lastKeyTime=0,this.lastTouchTime=0,this.lastFocusTime=0,this.lastScrollTop=0,this.lastScrollLeft=0,this.pendingIOSKey=void 0,this.tabFocusMode=-1,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastContextMenu=0,this.scrollHandlers=[],this.handlers=Object.create(null),this.composing=-1,this.compositionFirstChange=null,this.compositionEndedAt=0,this.compositionPendingKey=!1,this.compositionPendingChange=!1,this.mouseSelection=null,this.draggedContent=null,this.handleEvent=this.handleEvent.bind(this),this.notifiedFocused=e.hasFocus,ut.safari&&e.contentDOM.addEventListener("input",()=>null),ut.gecko&&Hme(e.contentDOM.ownerDocument)}handleEvent(e){!Lme(this.view,e)||this.ignoreDuringComposition(e)||e.type=="keydown"&&this.keydown(e)||this.runHandlers(e.type,e)}runHandlers(e,n){let i=this.handlers[e];if(i){for(let a of i.observers)a(this.view,n);for(let a of i.handlers){if(n.defaultPrevented)break;if(a(this.view,n)){n.preventDefault();break}}}}ensureHandlers(e){let n=Ime(e),i=this.handlers,a=this.view.contentDOM;for(let o in n)if(o!="scroll"){let r=!n[o].handlers.length,s=i[o];s&&r!=!s.handlers.length&&(a.removeEventListener(o,this.handleEvent),s=null),s||a.addEventListener(o,this.handleEvent,{passive:r})}for(let o in i)o!="scroll"&&!n[o]&&a.removeEventListener(o,this.handleEvent);this.handlers=n}keydown(e){if(this.lastKeyCode=e.keyCode,this.lastKeyTime=Date.now(),e.keyCode==9&&this.tabFocusMode>-1&&(!this.tabFocusMode||Date.now()<=this.tabFocusMode))return!0;if(this.tabFocusMode>0&&e.keyCode!=27&&PG.indexOf(e.keyCode)<0&&(this.tabFocusMode=-1),ut.android&&ut.chrome&&!e.synthetic&&(e.keyCode==13||e.keyCode==8))return this.view.observer.delayAndroidKey(e.key,e.keyCode),!0;let n;return ut.ios&&!e.synthetic&&!e.altKey&&!e.metaKey&&((n=vG.find(i=>i.keyCode==e.keyCode))&&!e.ctrlKey||Cme.indexOf(e.key)>-1&&e.ctrlKey&&!e.shiftKey)?(this.pendingIOSKey=n||e,setTimeout(()=>this.flushIOSKey(),250),!0):(e.keyCode!=229&&this.view.observer.forceFlush(),!1)}flushIOSKey(e){let n=this.pendingIOSKey;return!n||n.key=="Enter"&&e&&e.from0?!0:ut.safari&&!ut.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100?(this.compositionPendingKey=!1,!0):!1:!1}startMouseSelection(e){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=e}update(e){this.view.observer.update(e),this.mouseSelection&&this.mouseSelection.update(e),this.draggedContent&&e.docChanged&&(this.draggedContent=this.draggedContent.map(e.changes)),e.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}}function L4(t,e){return(n,i)=>{try{return e.call(t,i,n)}catch(a){pa(n.state,a)}}}function Ime(t){let e=Object.create(null);function n(i){return e[i]||(e[i]={observers:[],handlers:[]})}for(let i of t){let a=i.spec;if(a&&a.domEventHandlers)for(let o in a.domEventHandlers){let r=a.domEventHandlers[o];r&&n(o).handlers.push(L4(i.value,r))}if(a&&a.domEventObservers)for(let o in a.domEventObservers){let r=a.domEventObservers[o];r&&n(o).observers.push(L4(i.value,r))}}for(let i in nl)n(i).handlers.push(nl[i]);for(let i in Po)n(i).observers.push(Po[i]);return e}const vG=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],Cme="dthko",PG=[16,17,18,20,91,92,224,225],tw=6;function rw(t){return Math.max(0,t)*.7+8}function Tme(t,e){return Math.max(Math.abs(t.clientX-e.clientX),Math.abs(t.clientY-e.clientY))}class jme{constructor(e,n,i,a){this.view=e,this.startEvent=n,this.style=i,this.mustSelect=a,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=n,this.scrollParents=Bde(e.contentDOM),this.atoms=e.state.facet(jj).map(r=>r(e));let o=e.contentDOM.ownerDocument;o.addEventListener("mousemove",this.move=this.move.bind(this)),o.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=n.shiftKey,this.multiple=e.state.facet(ar.allowMultipleSelections)&&Mme(e,n),this.dragging=Nme(e,n)&&$G(n)==1?null:!1}start(e){this.dragging===!1&&this.select(e)}move(e){if(e.buttons==0)return this.destroy();if(this.dragging||this.dragging==null&&Tme(this.startEvent,e)<10)return;this.select(this.lastEvent=e);let n=0,i=0,a=0,o=0,r=this.view.win.innerWidth,s=this.view.win.innerHeight;this.scrollParents.x&&({left:a,right:r}=this.scrollParents.x.getBoundingClientRect()),this.scrollParents.y&&({top:o,bottom:s}=this.scrollParents.y.getBoundingClientRect());let c=dG(this.view);e.clientX-c.left<=a+tw?n=-rw(a-e.clientX):e.clientX+c.right>=r-tw&&(n=rw(e.clientX-r)),e.clientY-c.top<=o+tw?i=-rw(o-e.clientY):e.clientY+c.bottom>=s-tw&&(i=rw(e.clientY-s)),this.setScrollSpeed(n,i)}up(e){this.dragging==null&&this.select(this.lastEvent),this.dragging||e.preventDefault(),this.destroy()}destroy(){this.setScrollSpeed(0,0);let e=this.view.contentDOM.ownerDocument;e.removeEventListener("mousemove",this.move),e.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=this.view.inputState.draggedContent=null}setScrollSpeed(e,n){this.scrollSpeed={x:e,y:n},e||n?this.scrolling<0&&(this.scrolling=setInterval(()=>this.scroll(),50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}scroll(){let{x:e,y:n}=this.scrollSpeed;e&&this.scrollParents.x&&(this.scrollParents.x.scrollLeft+=e,e=0),n&&this.scrollParents.y&&(this.scrollParents.y.scrollTop+=n,n=0),(e||n)&&this.view.win.scrollBy(e,n),this.dragging===!1&&this.select(this.lastEvent)}skipAtoms(e){let n=null;for(let i=0;in.isUserEvent("input.type"))?this.destroy():this.style.update(e)&&setTimeout(()=>this.select(this.lastEvent),20)}}function Mme(t,e){let n=t.state.facet(eG);return n.length?n[0](e):ut.mac?e.metaKey:e.ctrlKey}function Rme(t,e){let n=t.state.facet(tG);return n.length?n[0](e):ut.mac?!e.altKey:!e.ctrlKey}function Nme(t,e){let{main:n}=t.state.selection;if(n.empty)return!1;let i=IP(t.root);if(!i||i.rangeCount==0)return!0;let a=i.getRangeAt(0).getClientRects();for(let o=0;o=e.clientX&&r.top<=e.clientY&&r.bottom>=e.clientY)return!0}return!1}function Lme(t,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let n=e.target,i;n!=t.contentDOM;n=n.parentNode)if(!n||n.nodeType==11||(i=Lr.get(n))&&i.ignoreEvent(e))return!1;return!0}const nl=Object.create(null),Po=Object.create(null),bG=ut.ie&&ut.ie_version<15||ut.ios&&ut.webkit_version<604;function Fme(t){let e=t.dom.parentNode;if(!e)return;let n=e.appendChild(document.createElement("textarea"));n.style.cssText="position: fixed; left: -10000px; top: 10px",n.focus(),setTimeout(()=>{t.focus(),n.remove(),wG(t,n.value)},50)}function n_(t,e,n){for(let i of t.facet(e))n=i(n,t);return n}function wG(t,e){e=n_(t.state,Ij,e);let{state:n}=t,i,a=1,o=n.toText(e),r=o.lines==n.selection.ranges.length;if(J2!=null&&n.selection.ranges.every(c=>c.empty)&&J2==o.toString()){let c=-1;i=n.changeByRange(l=>{let u=n.doc.lineAt(l.from);if(u.from==c)return{range:l};c=u.from;let f=n.toText((r?o.line(a++).text:e)+n.lineBreak);return{changes:{from:u.from,insert:f},range:Ve.cursor(l.from+f.length)}})}else r?i=n.changeByRange(c=>{let l=o.line(a++);return{changes:{from:c.from,to:c.to,insert:l.text},range:Ve.cursor(c.from+l.length)}}):i=n.replaceSelection(o);t.dispatch(i,{userEvent:"input.paste",scrollIntoView:!0})}Po.scroll=t=>{t.inputState.lastScrollTop=t.scrollDOM.scrollTop,t.inputState.lastScrollLeft=t.scrollDOM.scrollLeft};nl.keydown=(t,e)=>(t.inputState.setSelectionOrigin("select"),e.keyCode==27&&t.inputState.tabFocusMode!=0&&(t.inputState.tabFocusMode=Date.now()+2e3),!1);Po.touchstart=(t,e)=>{t.inputState.lastTouchTime=Date.now(),t.inputState.setSelectionOrigin("select.pointer")};Po.touchmove=t=>{t.inputState.setSelectionOrigin("select.pointer")};nl.mousedown=(t,e)=>{if(t.observer.flush(),t.inputState.lastTouchTime>Date.now()-2e3)return!1;let n=null;for(let i of t.state.facet(rG))if(n=i(t,e),n)break;if(!n&&e.button==0&&(n=Ume(t,e)),n){let i=!t.hasFocus;t.inputState.startMouseSelection(new jme(t,e,n,i)),i&&t.observer.ignore(()=>{M7(t.contentDOM);let o=t.root.activeElement;o&&!o.contains(t.contentDOM)&&o.blur()});let a=t.inputState.mouseSelection;if(a)return a.start(e),a.dragging===!1}return!1};function F4(t,e,n,i){if(i==1)return Ve.cursor(e,n);if(i==2)return mme(t.state,e,n);{let a=Wn.find(t.docView,e),o=t.state.doc.lineAt(a?a.posAtEnd:e),r=a?a.posAtStart:o.from,s=a?a.posAtEnd:o.to;return se>=n.top&&e<=n.bottom&&t>=n.left&&t<=n.right;function qme(t,e,n,i){let a=Wn.find(t.docView,e);if(!a)return 1;let o=e-a.posAtStart;if(o==0)return 1;if(o==a.length)return-1;let r=a.coordsAt(o,-1);if(r&&q4(n,i,r))return-1;let s=a.coordsAt(o,1);return s&&q4(n,i,s)?1:r&&r.bottom>=i?-1:1}function z4(t,e){let n=t.posAtCoords({x:e.clientX,y:e.clientY},!1);return{pos:n,bias:qme(t,n,e.clientX,e.clientY)}}const zme=ut.ie&&ut.ie_version<=11;let U4=null,B4=0,V4=0;function $G(t){if(!zme)return t.detail;let e=U4,n=V4;return U4=t,V4=Date.now(),B4=!e||n>Date.now()-400&&Math.abs(e.clientX-t.clientX)<2&&Math.abs(e.clientY-t.clientY)<2?(B4+1)%3:1}function Ume(t,e){let n=z4(t,e),i=$G(e),a=t.state.selection;return{update(o){o.docChanged&&(n.pos=o.changes.mapPos(n.pos),a=a.map(o.changes))},get(o,r,s){let c=z4(t,o),l,u=F4(t,c.pos,c.bias,i);if(n.pos!=c.pos&&!r){let f=F4(t,n.pos,n.bias,i),h=Math.min(f.from,u.from),d=Math.max(f.to,u.to);u=h1&&(l=Bme(a,c.pos))?l:s?a.addRange(u):Ve.create([u])}}}function Bme(t,e){for(let n=0;n=e)return Ve.create(t.ranges.slice(0,n).concat(t.ranges.slice(n+1)),t.mainIndex==n?0:t.mainIndex-(t.mainIndex>n?1:0))}return null}nl.dragstart=(t,e)=>{let{selection:{main:n}}=t.state;if(e.target.draggable){let a=t.docView.nearest(e.target);if(a&&a.isWidget){let o=a.posAtStart,r=o+a.length;(o>=n.to||r<=n.from)&&(n=Ve.range(o,r))}}let{inputState:i}=t;return i.mouseSelection&&(i.mouseSelection.dragging=!0),i.draggedContent=n,e.dataTransfer&&(e.dataTransfer.setData("Text",n_(t.state,Cj,t.state.sliceDoc(n.from,n.to))),e.dataTransfer.effectAllowed="copyMove"),!1};nl.dragend=t=>(t.inputState.draggedContent=null,!1);function W4(t,e,n,i){if(n=n_(t.state,Ij,n),!n)return;let a=t.posAtCoords({x:e.clientX,y:e.clientY},!1),{draggedContent:o}=t.inputState,r=i&&o&&Rme(t,e)?{from:o.from,to:o.to}:null,s={from:a,insert:n},c=t.state.changes(r?[r,s]:s);t.focus(),t.dispatch({changes:c,selection:{anchor:c.mapPos(a,-1),head:c.mapPos(a,1)},userEvent:r?"move.drop":"input.drop"}),t.inputState.draggedContent=null}nl.drop=(t,e)=>{if(!e.dataTransfer)return!1;if(t.state.readOnly)return!0;let n=e.dataTransfer.files;if(n&&n.length){let i=Array(n.length),a=0,o=()=>{++a==n.length&&W4(t,e,i.filter(r=>r!=null).join(t.state.lineBreak),!1)};for(let r=0;r{/[\x00-\x08\x0e-\x1f]{2}/.test(s.result)||(i[r]=s.result),o()},s.readAsText(n[r])}return!0}else{let i=e.dataTransfer.getData("Text");if(i)return W4(t,e,i,!0),!0}return!1};nl.paste=(t,e)=>{if(t.state.readOnly)return!0;t.observer.flush();let n=bG?null:e.clipboardData;return n?(wG(t,n.getData("text/plain")||n.getData("text/uri-list")),!0):(Fme(t),!1)};function Vme(t,e){let n=t.dom.parentNode;if(!n)return;let i=n.appendChild(document.createElement("textarea"));i.style.cssText="position: fixed; left: -10000px; top: 10px",i.value=e,i.focus(),i.selectionEnd=e.length,i.selectionStart=0,setTimeout(()=>{i.remove(),t.focus()},50)}function Wme(t){let e=[],n=[],i=!1;for(let a of t.selection.ranges)a.empty||(e.push(t.sliceDoc(a.from,a.to)),n.push(a));if(!e.length){let a=-1;for(let{from:o}of t.selection.ranges){let r=t.doc.lineAt(o);r.number>a&&(e.push(r.text),n.push({from:r.from,to:Math.min(t.doc.length,r.to+1)})),a=r.number}i=!0}return{text:n_(t,Cj,e.join(t.lineBreak)),ranges:n,linewise:i}}let J2=null;nl.copy=nl.cut=(t,e)=>{let{text:n,ranges:i,linewise:a}=Wme(t.state);if(!n&&!a)return!1;J2=a?n:null,e.type=="cut"&&!t.state.readOnly&&t.dispatch({changes:i,scrollIntoView:!0,userEvent:"delete.cut"});let o=bG?null:e.clipboardData;return o?(o.clearData(),o.setData("text/plain",n),!0):(Vme(t,n),!1)};const AG=Jl.define();function SG(t,e){let n=[];for(let i of t.facet(aG)){let a=i(t,e);a&&n.push(a)}return n?t.update({effects:n,annotations:AG.of(!0)}):null}function _G(t){setTimeout(()=>{let e=t.hasFocus;if(e!=t.inputState.notifiedFocused){let n=SG(t.state,e);n?t.dispatch(n):t.update([])}},10)}Po.focus=t=>{t.inputState.lastFocusTime=Date.now(),!t.scrollDOM.scrollTop&&(t.inputState.lastScrollTop||t.inputState.lastScrollLeft)&&(t.scrollDOM.scrollTop=t.inputState.lastScrollTop,t.scrollDOM.scrollLeft=t.inputState.lastScrollLeft),_G(t)};Po.blur=t=>{t.observer.clearSelectionRange(),_G(t)};Po.compositionstart=Po.compositionupdate=t=>{t.observer.editContext||(t.inputState.compositionFirstChange==null&&(t.inputState.compositionFirstChange=!0),t.inputState.composing<0&&(t.inputState.composing=0))};Po.compositionend=t=>{t.observer.editContext||(t.inputState.composing=-1,t.inputState.compositionEndedAt=Date.now(),t.inputState.compositionPendingKey=!0,t.inputState.compositionPendingChange=t.observer.pendingRecords().length>0,t.inputState.compositionFirstChange=null,ut.chrome&&ut.android?t.observer.flushSoon():t.inputState.compositionPendingChange?Promise.resolve().then(()=>t.observer.flush()):setTimeout(()=>{t.inputState.composing<0&&t.docView.hasComposition&&t.update([])},50))};Po.contextmenu=t=>{t.inputState.lastContextMenu=Date.now()};nl.beforeinput=(t,e)=>{var n,i;if(e.inputType=="insertReplacementText"&&t.observer.editContext){let o=(n=e.dataTransfer)===null||n===void 0?void 0:n.getData("text/plain"),r=e.getTargetRanges();if(o&&r.length){let s=r[0],c=t.posAtDOM(s.startContainer,s.startOffset),l=t.posAtDOM(s.endContainer,s.endOffset);return Mj(t,{from:c,to:l,insert:t.state.toText(o)},null),!0}}let a;if(ut.chrome&&ut.android&&(a=vG.find(o=>o.inputType==e.inputType))&&(t.observer.delayAndroidKey(a.key,a.keyCode),a.key=="Backspace"||a.key=="Delete")){let o=((i=window.visualViewport)===null||i===void 0?void 0:i.height)||0;setTimeout(()=>{var r;(((r=window.visualViewport)===null||r===void 0?void 0:r.height)||0)>o+10&&t.hasFocus&&(t.contentDOM.blur(),t.focus())},100)}return ut.ios&&e.inputType=="deleteContentForward"&&t.observer.flushSoon(),ut.safari&&e.inputType=="insertText"&&t.inputState.composing>=0&&setTimeout(()=>Po.compositionend(t,e),20),!1};const H4=new Set;function Hme(t){H4.has(t)||(H4.add(t),t.addEventListener("copy",()=>{}),t.addEventListener("cut",()=>{}))}const G4=["pre-wrap","normal","pre-line","break-spaces"];let ug=!1;function K4(){ug=!1}class Gme{constructor(e){this.lineWrapping=e,this.doc=fr.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.textHeight=14,this.lineLength=30}heightForGap(e,n){let i=this.doc.lineAt(n).number-this.doc.lineAt(e).number+1;return this.lineWrapping&&(i+=Math.max(0,Math.ceil((n-e-i*this.lineLength*.5)/this.lineLength))),this.lineHeight*i}heightForLine(e){return this.lineWrapping?(1+Math.max(0,Math.ceil((e-this.lineLength)/(this.lineLength-5))))*this.lineHeight:this.lineHeight}setDoc(e){return this.doc=e,this}mustRefreshForWrapping(e){return G4.indexOf(e)>-1!=this.lineWrapping}mustRefreshForHeights(e){let n=!1;for(let i=0;i-1,c=Math.round(n)!=Math.round(this.lineHeight)||this.lineWrapping!=s;if(this.lineWrapping=s,this.lineHeight=n,this.charWidth=i,this.textHeight=a,this.lineLength=o,c){this.heightSamples={};for(let l=0;l0}set outdated(e){this.flags=(e?2:0)|this.flags&-3}setHeight(e){this.height!=e&&(Math.abs(this.height-e)>w$&&(ug=!0),this.height=e)}replace(e,n,i){return ya.of(i)}decomposeLeft(e,n){n.push(this)}decomposeRight(e,n){n.push(this)}applyChanges(e,n,i,a){let o=this,r=i.doc;for(let s=a.length-1;s>=0;s--){let{fromA:c,toA:l,fromB:u,toB:f}=a[s],h=o.lineAt(c,Zr.ByPosNoHeight,i.setDoc(n),0,0),d=h.to>=l?h:o.lineAt(l,Zr.ByPosNoHeight,i,0,0);for(f+=d.to-l,l=d.to;s>0&&h.from<=a[s-1].toA;)c=a[s-1].fromA,u=a[s-1].fromB,s--,co*2){let s=e[n-1];s.break?e.splice(--n,1,s.left,null,s.right):e.splice(--n,1,s.left,s.right),i+=1+s.break,a-=s.size}else if(o>a*2){let s=e[i];s.break?e.splice(i,1,s.left,null,s.right):e.splice(i,1,s.left,s.right),i+=2+s.break,o-=s.size}else break;else if(a=o&&r(this.blockAt(0,i,a,o))}updateHeight(e,n=0,i=!1,a){return a&&a.from<=n&&a.more&&this.setHeight(a.heights[a.index++]),this.outdated=!1,this}toString(){return`block(${this.length})`}}class os extends xG{constructor(e,n){super(e,n,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0}blockAt(e,n,i,a){return new kl(a,this.length,i,this.height,this.breaks)}replace(e,n,i){let a=i[0];return i.length==1&&(a instanceof os||a instanceof wi&&a.flags&4)&&Math.abs(this.length-a.length)<10?(a instanceof wi?a=new os(a.length,this.height):a.height=this.height,this.outdated||(a.outdated=!1),a):ya.of(i)}updateHeight(e,n=0,i=!1,a){return a&&a.from<=n&&a.more?this.setHeight(a.heights[a.index++]):(i||this.outdated)&&this.setHeight(Math.max(this.widgetHeight,e.heightForLine(this.length-this.collapsed))+this.breaks*e.lineHeight),this.outdated=!1,this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}}class wi extends ya{constructor(e){super(e,0)}heightMetrics(e,n){let i=e.doc.lineAt(n).number,a=e.doc.lineAt(n+this.length).number,o=a-i+1,r,s=0;if(e.lineWrapping){let c=Math.min(this.height,e.lineHeight*o);r=c/o,this.length>o+1&&(s=(this.height-c)/(this.length-o-1))}else r=this.height/o;return{firstLine:i,lastLine:a,perLine:r,perChar:s}}blockAt(e,n,i,a){let{firstLine:o,lastLine:r,perLine:s,perChar:c}=this.heightMetrics(n,a);if(n.lineWrapping){let l=a+(e0){let o=i[i.length-1];o instanceof wi?i[i.length-1]=new wi(o.length+a):i.push(null,new wi(a-1))}if(e>0){let o=i[0];o instanceof wi?i[0]=new wi(e+o.length):i.unshift(new wi(e-1),null)}return ya.of(i)}decomposeLeft(e,n){n.push(new wi(e-1),null)}decomposeRight(e,n){n.push(null,new wi(this.length-e-1))}updateHeight(e,n=0,i=!1,a){let o=n+this.length;if(a&&a.from<=n+this.length&&a.more){let r=[],s=Math.max(n,a.from),c=-1;for(a.from>n&&r.push(new wi(a.from-n-1).updateHeight(e,n));s<=o&&a.more;){let u=e.doc.lineAt(s).length;r.length&&r.push(null);let f=a.heights[a.index++];c==-1?c=f:Math.abs(f-c)>=w$&&(c=-2);let h=new os(u,f);h.outdated=!1,r.push(h),s+=u+1}s<=o&&r.push(null,new wi(o-s).updateHeight(e,s));let l=ya.of(r);return(c<0||Math.abs(l.height-this.height)>=w$||Math.abs(c-this.heightMetrics(e,n).perLine)>=w$)&&(ug=!0),LA(this,l)}else(i||this.outdated)&&(this.setHeight(e.heightForGap(n,n+this.length)),this.outdated=!1);return this}toString(){return`gap(${this.length})`}}class Yme extends ya{constructor(e,n,i){super(e.length+n+i.length,e.height+i.height,n|(e.outdated||i.outdated?2:0)),this.left=e,this.right=i,this.size=e.size+i.size}get break(){return this.flags&1}blockAt(e,n,i,a){let o=i+this.left.height;return es))return l;let u=n==Zr.ByPosNoHeight?Zr.ByPosNoHeight:Zr.ByPos;return c?l.join(this.right.lineAt(s,u,i,r,s)):this.left.lineAt(s,u,i,a,o).join(l)}forEachLine(e,n,i,a,o,r){let s=a+this.left.height,c=o+this.left.length+this.break;if(this.break)e=c&&this.right.forEachLine(e,n,i,s,c,r);else{let l=this.lineAt(c,Zr.ByPos,i,a,o);e=e&&l.from<=n&&r(l),n>l.to&&this.right.forEachLine(l.to+1,n,i,s,c,r)}}replace(e,n,i){let a=this.left.length+this.break;if(nthis.left.length)return this.balanced(this.left,this.right.replace(e-a,n-a,i));let o=[];e>0&&this.decomposeLeft(e,o);let r=o.length;for(let s of i)o.push(s);if(e>0&&Y4(o,r-1),n=i&&n.push(null)),e>i&&this.right.decomposeLeft(e-i,n)}decomposeRight(e,n){let i=this.left.length,a=i+this.break;if(e>=a)return this.right.decomposeRight(e-a,n);e2*n.size||n.size>2*e.size?ya.of(this.break?[e,null,n]:[e,n]):(this.left=LA(this.left,e),this.right=LA(this.right,n),this.setHeight(e.height+n.height),this.outdated=e.outdated||n.outdated,this.size=e.size+n.size,this.length=e.length+this.break+n.length,this)}updateHeight(e,n=0,i=!1,a){let{left:o,right:r}=this,s=n+o.length+this.break,c=null;return a&&a.from<=n+o.length&&a.more?c=o=o.updateHeight(e,n,i,a):o.updateHeight(e,n,i),a&&a.from<=s+r.length&&a.more?c=r=r.updateHeight(e,s,i,a):r.updateHeight(e,s,i),c?this.balanced(o,r):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}}function Y4(t,e){let n,i;t[e]==null&&(n=t[e-1])instanceof wi&&(i=t[e+1])instanceof wi&&t.splice(e-1,3,new wi(n.length+1+i.length))}const Jme=5;class Rj{constructor(e,n){this.pos=e,this.oracle=n,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=e}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(e,n){if(this.lineStart>-1){let i=Math.min(n,this.lineEnd),a=this.nodes[this.nodes.length-1];a instanceof os?a.length+=i-this.pos:(i>this.pos||!this.isCovered)&&this.nodes.push(new os(i-this.pos,-1)),this.writtenTo=i,n>i&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=n}point(e,n,i){if(e=Jme)&&this.addLineDeco(a,o,r)}else n>e&&this.span(e,n);this.lineEnd>-1&&this.lineEnd-1)return;let{from:e,to:n}=this.oracle.doc.lineAt(this.pos);this.lineStart=e,this.lineEnd=n,this.writtenToe&&this.nodes.push(new os(this.pos-e,-1)),this.writtenTo=this.pos}blankContent(e,n){let i=new wi(n-e);return this.oracle.doc.lineAt(e).to==n&&(i.flags|=4),i}ensureLine(){this.enterLine();let e=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(e instanceof os)return e;let n=new os(0,-1);return this.nodes.push(n),n}addBlock(e){this.enterLine();let n=e.deco;n&&n.startSide>0&&!this.isCovered&&this.ensureLine(),this.nodes.push(e),this.writtenTo=this.pos=this.pos+e.length,n&&n.endSide>0&&(this.covering=e)}addLineDeco(e,n,i){let a=this.ensureLine();a.length+=i,a.collapsed+=i,a.widgetHeight=Math.max(a.widgetHeight,e),a.breaks+=n,this.writtenTo=this.pos=this.pos+i}finish(e){let n=this.nodes.length==0?null:this.nodes[this.nodes.length-1];this.lineStart>-1&&!(n instanceof os)&&!this.isCovered?this.nodes.push(new os(0,-1)):(this.writtenTou.clientHeight||u.scrollWidth>u.clientWidth)&&f.overflow!="visible"){let h=u.getBoundingClientRect();o=Math.max(o,h.left),r=Math.min(r,h.right),s=Math.max(s,h.top),c=Math.min(l==t.parentNode?a.innerHeight:c,h.bottom)}l=f.position=="absolute"||f.position=="fixed"?u.offsetParent:u.parentNode}else if(l.nodeType==11)l=l.host;else break;return{left:o-n.left,right:Math.max(o,r)-n.left,top:s-(n.top+e),bottom:Math.max(s,c)-(n.top+e)}}function eye(t,e){let n=t.getBoundingClientRect();return{left:0,right:n.right-n.left,top:e,bottom:n.bottom-(n.top+e)}}class qk{constructor(e,n,i){this.from=e,this.to=n,this.size=i}static same(e,n){if(e.length!=n.length)return!1;for(let i=0;itypeof i!="function"&&i.class=="cm-lineWrapping");this.heightOracle=new Gme(n),this.stateDeco=e.facet(CP).filter(i=>typeof i!="function"),this.heightMap=ya.empty().applyChanges(this.stateDeco,fr.empty,this.heightOracle.setDoc(e.doc),[new io(0,0,0,e.doc.length)]);for(let i=0;i<2&&(this.viewport=this.getViewport(0,null),!!this.updateForViewport());i++);this.updateViewportLines(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=_t.set(this.lineGaps.map(i=>i.draw(this,!1))),this.computeVisibleRanges()}updateForViewport(){let e=[this.viewport],{main:n}=this.state.selection;for(let i=0;i<=1;i++){let a=i?n.head:n.anchor;if(!e.some(({from:o,to:r})=>a>=o&&a<=r)){let{from:o,to:r}=this.lineBlockAt(a);e.push(new nw(o,r))}}return this.viewports=e.sort((i,a)=>i.from-a.from),this.updateScaler()}updateScaler(){let e=this.scaler;return this.scaler=this.heightMap.height<=7e6?Q4:new Nj(this.heightOracle,this.heightMap,this.viewports),e.eq(this.scaler)?0:2}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,e=>{this.viewportLines.push(Pv(e,this.scaler))})}update(e,n=null){this.state=e.state;let i=this.stateDeco;this.stateDeco=this.state.facet(CP).filter(u=>typeof u!="function");let a=e.changedRanges,o=io.extendWithRanges(a,Qme(i,this.stateDeco,e?e.changes:Xn.empty(this.state.doc.length))),r=this.heightMap.height,s=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollTop);K4(),this.heightMap=this.heightMap.applyChanges(this.stateDeco,e.startState.doc,this.heightOracle.setDoc(this.state.doc),o),(this.heightMap.height!=r||ug)&&(e.flags|=2),s?(this.scrollAnchorPos=e.changes.mapPos(s.from,-1),this.scrollAnchorHeight=s.top):(this.scrollAnchorPos=-1,this.scrollAnchorHeight=this.heightMap.height);let c=o.length?this.mapViewport(this.viewport,e.changes):this.viewport;(n&&(n.range.headc.to)||!this.viewportIsAppropriate(c))&&(c=this.getViewport(0,n));let l=c.from!=this.viewport.from||c.to!=this.viewport.to;this.viewport=c,e.flags|=this.updateForViewport(),(l||!e.changes.empty||e.flags&2)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,e.changes))),e.flags|=this.computeVisibleRanges(),n&&(this.scrollTarget=n),!this.mustEnforceCursorAssoc&&e.selectionSet&&e.view.lineWrapping&&e.state.selection.main.empty&&e.state.selection.main.assoc&&!e.state.facet(oG)&&(this.mustEnforceCursorAssoc=!0)}measure(e){let n=e.contentDOM,i=window.getComputedStyle(n),a=this.heightOracle,o=i.whiteSpace;this.defaultTextDirection=i.direction=="rtl"?rn.RTL:rn.LTR;let r=this.heightOracle.mustRefreshForWrapping(o),s=n.getBoundingClientRect(),c=r||this.mustMeasureContent||this.contentDOMHeight!=s.height;this.contentDOMHeight=s.height,this.mustMeasureContent=!1;let l=0,u=0;if(s.width&&s.height){let{scaleX:_,scaleY:x}=j7(n,s);(_>.005&&Math.abs(this.scaleX-_)>.005||x>.005&&Math.abs(this.scaleY-x)>.005)&&(this.scaleX=_,this.scaleY=x,l|=8,r=c=!0)}let f=(parseInt(i.paddingTop)||0)*this.scaleY,h=(parseInt(i.paddingBottom)||0)*this.scaleY;(this.paddingTop!=f||this.paddingBottom!=h)&&(this.paddingTop=f,this.paddingBottom=h,l|=10),this.editorWidth!=e.scrollDOM.clientWidth&&(a.lineWrapping&&(c=!0),this.editorWidth=e.scrollDOM.clientWidth,l|=8);let d=e.scrollDOM.scrollTop*this.scaleY;this.scrollTop!=d&&(this.scrollAnchorHeight=-1,this.scrollTop=d),this.scrolledToBottom=N7(e.scrollDOM);let m=(this.printing?eye:Xme)(n,this.paddingTop),g=m.top-this.pixelViewport.top,b=m.bottom-this.pixelViewport.bottom;this.pixelViewport=m;let v=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(v!=this.inView&&(this.inView=v,v&&(c=!0)),!this.inView&&!this.scrollTarget)return 0;let P=s.width;if((this.contentDOMWidth!=P||this.editorHeight!=e.scrollDOM.clientHeight)&&(this.contentDOMWidth=s.width,this.editorHeight=e.scrollDOM.clientHeight,l|=8),c){let _=e.docView.measureVisibleLineHeights(this.viewport);if(a.mustRefreshForHeights(_)&&(r=!0),r||a.lineWrapping&&Math.abs(P-this.contentDOMWidth)>a.charWidth){let{lineHeight:x,charWidth:E,textHeight:j}=e.docView.measureTextSize();r=x>0&&a.refresh(o,x,E,j,P/E,_),r&&(e.docView.minWidth=0,l|=8)}g>0&&b>0?u=Math.max(g,b):g<0&&b<0&&(u=Math.min(g,b)),K4();for(let x of this.viewports){let E=x.from==this.viewport.from?_:e.docView.measureVisibleLineHeights(x);this.heightMap=(r?ya.empty().applyChanges(this.stateDeco,fr.empty,this.heightOracle,[new io(0,0,0,e.state.doc.length)]):this.heightMap).updateHeight(a,0,r,new Kme(x.from,E))}ug&&(l|=2)}let A=!this.viewportIsAppropriate(this.viewport,u)||this.scrollTarget&&(this.scrollTarget.range.headthis.viewport.to);return A&&(l&2&&(l|=this.updateScaler()),this.viewport=this.getViewport(u,this.scrollTarget),l|=this.updateForViewport()),(l&2||A)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(r?[]:this.lineGaps,e)),l|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,e.docView.enforceCursorAssoc()),l}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(e,n){let i=.5-Math.max(-.5,Math.min(.5,e/1e3/2)),a=this.heightMap,o=this.heightOracle,{visibleTop:r,visibleBottom:s}=this,c=new nw(a.lineAt(r-i*1e3,Zr.ByHeight,o,0,0).from,a.lineAt(s+(1-i)*1e3,Zr.ByHeight,o,0,0).to);if(n){let{head:l}=n.range;if(lc.to){let u=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),f=a.lineAt(l,Zr.ByPos,o,0,0),h;n.y=="center"?h=(f.top+f.bottom)/2-u/2:n.y=="start"||n.y=="nearest"&&l=s+Math.max(10,Math.min(i,250)))&&a>r-2*1e3&&o>1,r=a<<1;if(this.defaultTextDirection!=rn.LTR&&!i)return[];let s=[],c=(u,f,h,d)=>{if(f-uu&&vv.from>=h.from&&v.to<=h.to&&Math.abs(v.from-u)v.fromP));if(!b){if(fv.from<=f&&v.to>=f)){let v=n.moveToLineBoundary(Ve.cursor(f),!1,!0).head;v>u&&(f=v)}b=new qk(u,f,this.gapSize(h,u,f,d))}s.push(b)},l=u=>{if(u.lengthu.from&&c(u.from,d,u,f),mn.draw(this,this.heightOracle.lineWrapping))))}computeVisibleRanges(){let e=this.stateDeco;this.lineGaps.length&&(e=e.concat(this.lineGapDeco));let n=[];rr.spans(e,this.viewport.from,this.viewport.to,{span(a,o){n.push({from:a,to:o})},point(){}},20);let i=n.length!=this.visibleRanges.length||this.visibleRanges.some((a,o)=>a.from!=n[o].from||a.to!=n[o].to);return this.visibleRanges=n,i?4:0}lineBlockAt(e){return e>=this.viewport.from&&e<=this.viewport.to&&this.viewportLines.find(n=>n.from<=e&&n.to>=e)||Pv(this.heightMap.lineAt(e,Zr.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(e){return e>=this.viewportLines[0].top&&e<=this.viewportLines[this.viewportLines.length-1].bottom&&this.viewportLines.find(n=>n.top<=e&&n.bottom>=e)||Pv(this.heightMap.lineAt(this.scaler.fromDOM(e),Zr.ByHeight,this.heightOracle,0,0),this.scaler)}scrollAnchorAt(e){let n=this.lineBlockAtHeight(e+8);return n.from>=this.viewport.from||this.viewportLines[0].top-e>200?n:this.viewportLines[0]}elementAtHeight(e){return Pv(this.heightMap.blockAt(this.scaler.fromDOM(e),this.heightOracle,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}}class nw{constructor(e,n){this.from=e,this.to=n}}function rye(t,e,n){let i=[],a=t,o=0;return rr.spans(n,t,e,{span(){},point(r,s){r>a&&(i.push({from:a,to:r}),o+=r-a),a=s}},20),a=1)return e[e.length-1].to;let i=Math.floor(t*n);for(let a=0;;a++){let{from:o,to:r}=e[a],s=r-o;if(i<=s)return o+i;i-=s}}function aw(t,e){let n=0;for(let{from:i,to:a}of t.ranges){if(e<=a){n+=e-i;break}n+=a-i}return n/t.total}function nye(t,e){for(let n of t)if(e(n))return n}const Q4={toDOM(t){return t},fromDOM(t){return t},scale:1,eq(t){return t==this}};class Nj{constructor(e,n,i){let a=0,o=0,r=0;this.viewports=i.map(({from:s,to:c})=>{let l=n.lineAt(s,Zr.ByPos,e,0,0).top,u=n.lineAt(c,Zr.ByPos,e,0,0).bottom;return a+=u-l,{from:s,to:c,top:l,bottom:u,domTop:0,domBottom:0}}),this.scale=(7e6-a)/(n.height-a);for(let s of this.viewports)s.domTop=r+(s.top-o)*this.scale,r=s.domBottom=s.domTop+(s.bottom-s.top),o=s.bottom}toDOM(e){for(let n=0,i=0,a=0;;n++){let o=nn.from==e.viewports[i].from&&n.to==e.viewports[i].to):!1}}function Pv(t,e){if(e.scale==1)return t;let n=e.toDOM(t.top),i=e.toDOM(t.bottom);return new kl(t.from,t.length,n,i-n,Array.isArray(t._content)?t._content.map(a=>Pv(a,e)):t._content)}const sw=lt.define({combine:t=>t.join(" ")}),Q2=lt.define({combine:t=>t.indexOf(!0)>-1}),Z2=If.newName(),DG=If.newName(),kG=If.newName(),OG={"&light":"."+DG,"&dark":"."+kG};function X2(t,e,n){return new If(e,{finish(i){return/&/.test(i)?i.replace(/&\w*/,a=>{if(a=="&")return t;if(!n||!n[a])throw new RangeError(`Unsupported selector: ${a}`);return n[a]}):t+" "+i}})}const iye=X2("."+Z2,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0,overflowAnchor:"none"},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",minHeight:"100%",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{position:"absolute",left:0,top:0,contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused > .cm-scroller > .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#444"},".cm-dropCursor":{position:"absolute"},"&.cm-focused > .cm-scroller > .cm-cursorLayer .cm-cursor":{display:"block"},".cm-iso":{unicodeBidi:"isolate"},".cm-announced":{position:"fixed",top:"-10000px"},"@media print":{".cm-announced":{display:"none"}},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",insetInlineStart:0,zIndex:200},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",borderRight:"1px solid #ddd"},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0,zIndex:300},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top"},".cm-highlightSpace":{backgroundImage:"radial-gradient(circle at 50% 55%, #aaa 20%, transparent 5%)",backgroundPosition:"center"},".cm-highlightTab":{backgroundImage:`url('data:image/svg+xml,')`,backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},OG),aye={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},zk=ut.ie&&ut.ie_version<=11;class sye{constructor(e){this.view=e,this.active=!1,this.editContext=null,this.selectionRange=new Vde,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.printQuery=null,this.parentCheck=-1,this.dom=e.contentDOM,this.observer=new MutationObserver(n=>{for(let i of n)this.queue.push(i);(ut.ie&&ut.ie_version<=11||ut.ios&&e.composing)&&n.some(i=>i.type=="childList"&&i.removedNodes.length||i.type=="characterData"&&i.oldValue.length>i.target.nodeValue.length)?this.flushSoon():this.flush()}),window.EditContext&&e.constructor.EDIT_CONTEXT!==!1&&!(ut.chrome&&ut.chrome_version<126)&&(this.editContext=new lye(e),e.state.facet(ef)&&(e.contentDOM.editContext=this.editContext.editContext)),zk&&(this.onCharData=n=>{this.queue.push({target:n.target,type:"characterData",oldValue:n.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),window.matchMedia&&(this.printQuery=window.matchMedia("print")),typeof ResizeObserver=="function"&&(this.resizeScroll=new ResizeObserver(()=>{var n;((n=this.view.docView)===null||n===void 0?void 0:n.lastUpdate){this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),n.length>0&&n[n.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent("Event")))},{threshold:[0,.001]}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver(n=>{n.length>0&&n[n.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))},{})),this.listenForScroll(),this.readSelectionRange()}onScrollChanged(e){this.view.inputState.runHandlers("scroll",e),this.intersecting&&this.view.measure()}onScroll(e){this.intersecting&&this.flush(!1),this.editContext&&this.view.requestMeasure(this.editContext.measureReq),this.onScrollChanged(e)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout(()=>{this.resizeTimeout=-1,this.view.requestMeasure()},50))}onPrint(e){(e.type=="change"||!e.type)&&!e.matches||(this.view.viewState.printing=!0,this.view.measure(),setTimeout(()=>{this.view.viewState.printing=!1,this.view.requestMeasure()},500))}updateGaps(e){if(this.gapIntersection&&(e.length!=this.gaps.length||this.gaps.some((n,i)=>n!=e[i]))){this.gapIntersection.disconnect();for(let n of e)this.gapIntersection.observe(n);this.gaps=e}}onSelectionChange(e){let n=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:i}=this,a=this.selectionRange;if(i.state.facet(ef)?i.root.activeElement!=this.dom:!P$(this.dom,a))return;let o=a.anchorNode&&i.docView.nearest(a.anchorNode);if(o&&o.ignoreEvent(e)){n||(this.selectionChanged=!1);return}(ut.ie&&ut.ie_version<=11||ut.android&&ut.chrome)&&!i.state.selection.main.empty&&a.focusNode&&Bv(a.focusNode,a.focusOffset,a.anchorNode,a.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:e}=this,n=IP(e.root);if(!n)return!1;let i=ut.safari&&e.root.nodeType==11&&e.root.activeElement==this.dom&&oye(this.view,n)||n;if(!i||this.selectionRange.eq(i))return!1;let a=P$(this.dom,i);return a&&!this.selectionChanged&&e.inputState.lastFocusTime>Date.now()-200&&e.inputState.lastTouchTime{let o=this.delayedAndroidKey;o&&(this.clearDelayedAndroidKey(),this.view.inputState.lastKeyCode=o.keyCode,this.view.inputState.lastKeyTime=Date.now(),!this.flush()&&o.force&&em(this.dom,o.key,o.keyCode))};this.flushingAndroidKey=this.view.win.requestAnimationFrame(a)}(!this.delayedAndroidKey||e=="Enter")&&(this.delayedAndroidKey={key:e,keyCode:n,force:this.lastChange{this.delayedFlush=-1,this.flush()}))}forceFlush(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}pendingRecords(){for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}processRecords(){let e=this.pendingRecords();e.length&&(this.queue=[]);let n=-1,i=-1,a=!1;for(let o of e){let r=this.readMutation(o);r&&(r.typeOver&&(a=!0),n==-1?{from:n,to:i}=r:(n=Math.min(r.from,n),i=Math.max(r.to,i)))}return{from:n,to:i,typeOver:a}}readChange(){let{from:e,to:n,typeOver:i}=this.processRecords(),a=this.selectionChanged&&P$(this.dom,this.selectionRange);if(e<0&&!a)return null;e>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1;let o=new _me(this.view,e,n,i);return this.view.docView.domChanged={newSel:o.newSel?o.newSel.main:null},o}flush(e=!0){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;e&&this.readSelectionRange();let n=this.readChange();if(!n)return this.view.requestMeasure(),!1;let i=this.view.state,a=gG(this.view,n);return this.view.state==i&&(n.domChanged||n.newSel&&!n.newSel.main.eq(this.view.state.selection.main))&&this.view.update([]),a}readMutation(e){let n=this.view.docView.nearest(e.target);if(!n||n.ignoreMutation(e))return null;if(n.markDirty(e.type=="attributes"),e.type=="attributes"&&(n.flags|=4),e.type=="childList"){let i=Z4(n,e.previousSibling||e.target.previousSibling,-1),a=Z4(n,e.nextSibling||e.target.nextSibling,1);return{from:i?n.posAfter(i):n.posAtStart,to:a?n.posBefore(a):n.posAtEnd,typeOver:!1}}else return e.type=="characterData"?{from:n.posAtStart,to:n.posAtEnd,typeOver:e.target.nodeValue==e.oldValue}:null}setWindow(e){e!=this.win&&(this.removeWindowListeners(this.win),this.win=e,this.addWindowListeners(this.win))}addWindowListeners(e){e.addEventListener("resize",this.onResize),this.printQuery?this.printQuery.addEventListener?this.printQuery.addEventListener("change",this.onPrint):this.printQuery.addListener(this.onPrint):e.addEventListener("beforeprint",this.onPrint),e.addEventListener("scroll",this.onScroll),e.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(e){e.removeEventListener("scroll",this.onScroll),e.removeEventListener("resize",this.onResize),this.printQuery?this.printQuery.removeEventListener?this.printQuery.removeEventListener("change",this.onPrint):this.printQuery.removeListener(this.onPrint):e.removeEventListener("beforeprint",this.onPrint),e.document.removeEventListener("selectionchange",this.onSelectionChange)}update(e){this.editContext&&(this.editContext.update(e),e.startState.facet(ef)!=e.state.facet(ef)&&(e.view.contentDOM.editContext=e.state.facet(ef)?this.editContext.editContext:null))}destroy(){var e,n,i;this.stop(),(e=this.intersection)===null||e===void 0||e.disconnect(),(n=this.gapIntersection)===null||n===void 0||n.disconnect(),(i=this.resizeScroll)===null||i===void 0||i.disconnect();for(let a of this.scrollTargets)a.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey),this.editContext&&(this.view.contentDOM.editContext=null,this.editContext.destroy())}}function Z4(t,e,n){for(;e;){let i=Lr.get(e);if(i&&i.parent==t)return i;let a=e.parentNode;e=a!=t.dom?a:n>0?e.nextSibling:e.previousSibling}return null}function X4(t,e){let n=e.startContainer,i=e.startOffset,a=e.endContainer,o=e.endOffset,r=t.docView.domAtPos(t.state.selection.main.anchor);return Bv(r.node,r.offset,a,o)&&([n,i,a,o]=[a,o,n,i]),{anchorNode:n,anchorOffset:i,focusNode:a,focusOffset:o}}function oye(t,e){if(e.getComposedRanges){let a=e.getComposedRanges(t.root)[0];if(a)return X4(t,a)}let n=null;function i(a){a.preventDefault(),a.stopImmediatePropagation(),n=a.getTargetRanges()[0]}return t.contentDOM.addEventListener("beforeinput",i,!0),t.dom.ownerDocument.execCommand("indent"),t.contentDOM.removeEventListener("beforeinput",i,!0),n?X4(t,n):null}class lye{constructor(e){this.from=0,this.to=0,this.pendingContextChange=null,this.handlers=Object.create(null),this.resetRange(e.state);let n=this.editContext=new window.EditContext({text:e.state.doc.sliceString(this.from,this.to),selectionStart:this.toContextPos(Math.max(this.from,Math.min(this.to,e.state.selection.main.anchor))),selectionEnd:this.toContextPos(e.state.selection.main.head)});this.handlers.textupdate=i=>{let{anchor:a}=e.state.selection.main,o={from:this.toEditorPos(i.updateRangeStart),to:this.toEditorPos(i.updateRangeEnd),insert:fr.of(i.text.split(` +`))};o.from==this.from&&athis.to&&(o.to=a),!(o.from==o.to&&!o.insert.length)&&(this.pendingContextChange=o,e.state.readOnly||Mj(e,o,Ve.single(this.toEditorPos(i.selectionStart),this.toEditorPos(i.selectionEnd))),this.pendingContextChange&&(this.revertPending(e.state),this.setSelection(e.state)))},this.handlers.characterboundsupdate=i=>{let a=[],o=null;for(let r=this.toEditorPos(i.rangeStart),s=this.toEditorPos(i.rangeEnd);r{let a=[];for(let o of i.getTextFormats()){let r=o.underlineStyle,s=o.underlineThickness;if(r!="None"&&s!="None"){let c=`text-decoration: underline ${r=="Dashed"?"dashed ":r=="Squiggle"?"wavy ":""}${s=="Thin"?1:2}px`;a.push(_t.mark({attributes:{style:c}}).range(this.toEditorPos(o.rangeStart),this.toEditorPos(o.rangeEnd)))}}e.dispatch({effects:cG.of(_t.set(a))})},this.handlers.compositionstart=()=>{e.inputState.composing<0&&(e.inputState.composing=0,e.inputState.compositionFirstChange=!0)},this.handlers.compositionend=()=>{e.inputState.composing=-1,e.inputState.compositionFirstChange=null};for(let i in this.handlers)n.addEventListener(i,this.handlers[i]);this.measureReq={read:i=>{this.editContext.updateControlBounds(i.contentDOM.getBoundingClientRect());let a=IP(i.root);a&&a.rangeCount&&this.editContext.updateSelectionBounds(a.getRangeAt(0).getBoundingClientRect())}}}applyEdits(e){let n=0,i=!1,a=this.pendingContextChange;return e.changes.iterChanges((o,r,s,c,l)=>{if(i)return;let u=l.length-(r-o);if(a&&r>=a.to)if(a.from==o&&a.to==r&&a.insert.eq(l)){a=this.pendingContextChange=null,n+=u,this.to+=u;return}else a=null,this.revertPending(e.state);if(o+=n,r+=n,r<=this.from)this.from+=u,this.to+=u;else if(othis.to||this.to-this.from+l.length>3e4){i=!0;return}this.editContext.updateText(this.toContextPos(o),this.toContextPos(r),l.toString()),this.to+=u}n+=u}),a&&!i&&this.revertPending(e.state),!i}update(e){let n=this.pendingContextChange;!this.applyEdits(e)||!this.rangeIsValid(e.state)?(this.pendingContextChange=null,this.resetRange(e.state),this.editContext.updateText(0,this.editContext.text.length,e.state.doc.sliceString(this.from,this.to)),this.setSelection(e.state)):(e.docChanged||e.selectionSet||n)&&this.setSelection(e.state),(e.geometryChanged||e.docChanged||e.selectionSet)&&e.view.requestMeasure(this.measureReq)}resetRange(e){let{head:n}=e.selection.main;this.from=Math.max(0,n-1e4),this.to=Math.min(e.doc.length,n+1e4)}revertPending(e){let n=this.pendingContextChange;this.pendingContextChange=null,this.editContext.updateText(this.toContextPos(n.from),this.toContextPos(n.from+n.insert.length),e.doc.sliceString(n.from,n.to))}setSelection(e){let{main:n}=e.selection,i=this.toContextPos(Math.max(this.from,Math.min(this.to,n.anchor))),a=this.toContextPos(n.head);(this.editContext.selectionStart!=i||this.editContext.selectionEnd!=a)&&this.editContext.updateSelection(i,a)}rangeIsValid(e){let{head:n}=e.selection.main;return!(this.from>0&&n-this.from<500||this.to1e4*3)}toEditorPos(e){return e+this.from}toContextPos(e){return e-this.from}destroy(){for(let e in this.handlers)this.editContext.removeEventListener(e,this.handlers[e])}}class it{get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return this.inputState.composing>0}get compositionStarted(){return this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}constructor(e={}){var n;this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.className="cm-announced",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM),e.parent&&e.parent.appendChild(this.dom);let{dispatch:i}=e;this.dispatchTransactions=e.dispatchTransactions||i&&(a=>a.forEach(o=>i(o,this)))||(a=>this.update(a)),this.dispatch=this.dispatch.bind(this),this._root=e.root||Wde(e.parent)||document,this.viewState=new J4(e.state||ar.create(e)),e.scrollTo&&e.scrollTo.is(ew)&&(this.viewState.scrollTarget=e.scrollTo.value.clip(this.viewState.state)),this.plugins=this.state.facet(yv).map(a=>new Nk(a));for(let a of this.plugins)a.update(this);this.observer=new sye(this),this.inputState=new Eme(this),this.inputState.ensureHandlers(this.plugins),this.docView=new I4(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure(),!((n=document.fonts)===null||n===void 0)&&n.ready&&document.fonts.ready.then(()=>this.requestMeasure())}dispatch(...e){let n=e.length==1&&e[0]instanceof ri?e:e.length==1&&Array.isArray(e[0])?e[0]:[this.state.update(...e)];this.dispatchTransactions(n,this)}update(e){if(this.updateState!=0)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");let n=!1,i=!1,a,o=this.state;for(let h of e){if(h.startState!=o)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");o=h.state}if(this.destroyed){this.viewState.state=o;return}let r=this.hasFocus,s=0,c=null;e.some(h=>h.annotation(AG))?(this.inputState.notifiedFocused=r,s=1):r!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=r,c=SG(o,r),c||(s=1));let l=this.observer.delayedAndroidKey,u=null;if(l?(this.observer.clearDelayedAndroidKey(),u=this.observer.readChange(),(u&&!this.state.doc.eq(o.doc)||!this.state.selection.eq(o.selection))&&(u=null)):this.observer.clear(),o.facet(ar.phrases)!=this.state.facet(ar.phrases))return this.setState(o);a=NA.create(this,o,e),a.flags|=s;let f=this.viewState.scrollTarget;try{this.updateState=2;for(let h of e){if(f&&(f=f.map(h.changes)),h.scrollIntoView){let{main:d}=h.state.selection;f=new tm(d.empty?d:Ve.cursor(d.head,d.head>d.anchor?-1:1))}for(let d of h.effects)d.is(ew)&&(f=d.value.clip(this.state))}this.viewState.update(a,f),this.bidiCache=FA.update(this.bidiCache,a.changes),a.empty||(this.updatePlugins(a),this.inputState.update(a)),n=this.docView.update(a),this.state.facet(gv)!=this.styleModules&&this.mountStyles(),i=this.updateAttrs(),this.showAnnouncements(e),this.docView.updateSelection(n,e.some(h=>h.isUserEvent("select.pointer")))}finally{this.updateState=0}if(a.startState.facet(sw)!=a.state.facet(sw)&&(this.viewState.mustMeasureContent=!0),(n||i||f||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),n&&this.docViewUpdate(),!a.empty)for(let h of this.state.facet(G2))try{h(a)}catch(d){pa(this.state,d,"update listener")}(c||u)&&Promise.resolve().then(()=>{c&&this.state==c.startState&&this.dispatch(c),u&&!gG(this,u)&&l.force&&em(this.contentDOM,l.key,l.keyCode)})}setState(e){if(this.updateState!=0)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed){this.viewState.state=e;return}this.updateState=2;let n=this.hasFocus;try{for(let i of this.plugins)i.destroy(this);this.viewState=new J4(e),this.plugins=e.facet(yv).map(i=>new Nk(i)),this.pluginMap.clear();for(let i of this.plugins)i.update(this);this.docView.destroy(),this.docView=new I4(this),this.inputState.ensureHandlers(this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}n&&this.focus(),this.requestMeasure()}updatePlugins(e){let n=e.startState.facet(yv),i=e.state.facet(yv);if(n!=i){let a=[];for(let o of i){let r=n.indexOf(o);if(r<0)a.push(new Nk(o));else{let s=this.plugins[r];s.mustUpdate=e,a.push(s)}}for(let o of this.plugins)o.mustUpdate!=e&&o.destroy(this);this.plugins=a,this.pluginMap.clear()}else for(let a of this.plugins)a.mustUpdate=e;for(let a=0;a-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.observer.delayedAndroidKey){this.measureScheduled=-1,this.requestMeasure();return}this.measureScheduled=0,e&&this.observer.forceFlush();let n=null,i=this.scrollDOM,a=i.scrollTop*this.scaleY,{scrollAnchorPos:o,scrollAnchorHeight:r}=this.viewState;Math.abs(a-this.viewState.scrollTop)>1&&(r=-1),this.viewState.scrollAnchorHeight=-1;try{for(let s=0;;s++){if(r<0)if(N7(i))o=-1,r=this.viewState.heightMap.height;else{let d=this.viewState.scrollAnchorAt(a);o=d.from,r=d.top}this.updateState=1;let c=this.viewState.measure(this);if(!c&&!this.measureRequests.length&&this.viewState.scrollTarget==null)break;if(s>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let l=[];c&4||([this.measureRequests,l]=[l,this.measureRequests]);let u=l.map(d=>{try{return d.read(this)}catch(m){return pa(this.state,m),e9}}),f=NA.create(this,this.state,[]),h=!1;f.flags|=c,n?n.flags|=c:n=f,this.updateState=2,f.empty||(this.updatePlugins(f),this.inputState.update(f),this.updateAttrs(),h=this.docView.update(f),h&&this.docViewUpdate());for(let d=0;d1||m<-1){a=a+m,i.scrollTop=a/this.scaleY,r=-1;continue}}break}}}finally{this.updateState=0,this.measureScheduled=-1}if(n&&!n.empty)for(let s of this.state.facet(G2))s(n)}get themeClasses(){return Z2+" "+(this.state.facet(Q2)?kG:DG)+" "+this.state.facet(sw)}updateAttrs(){let e=t9(this,uG,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),n={spellcheck:"false",autocorrect:"off",autocapitalize:"off",translate:"no",contenteditable:this.state.facet(ef)?"true":"false",class:"cm-content",style:`${ut.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(n["aria-readonly"]="true"),t9(this,Tj,n);let i=this.observer.ignore(()=>{let a=z2(this.contentDOM,this.contentAttrs,n),o=z2(this.dom,this.editorAttrs,e);return a||o});return this.editorAttrs=e,this.contentAttrs=n,i}showAnnouncements(e){let n=!0;for(let i of e)for(let a of i.effects)if(a.is(it.announce)){n&&(this.announceDOM.textContent=""),n=!1;let o=this.announceDOM.appendChild(document.createElement("div"));o.textContent=a.value}}mountStyles(){this.styleModules=this.state.facet(gv);let e=this.state.facet(it.cspNonce);If.mount(this.root,this.styleModules.concat(iye).reverse(),e?{nonce:e}:void 0)}readMeasured(){if(this.updateState==2)throw new Error("Reading the editor layout isn't allowed during an update");this.updateState==0&&this.measureScheduled>-1&&this.measure(!1)}requestMeasure(e){if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame(()=>this.measure())),e){if(this.measureRequests.indexOf(e)>-1)return;if(e.key!=null){for(let n=0;ni.spec==e)||null),n&&n.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}get scaleX(){return this.viewState.scaleX}get scaleY(){return this.viewState.scaleY}elementAtHeight(e){return this.readMeasured(),this.viewState.elementAtHeight(e)}lineBlockAtHeight(e){return this.readMeasured(),this.viewState.lineBlockAtHeight(e)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(e){return this.viewState.lineBlockAt(e)}get contentHeight(){return this.viewState.contentHeight}moveByChar(e,n,i){return Fk(this,e,R4(this,e,n,i))}moveByGroup(e,n){return Fk(this,e,R4(this,e,n,i=>wme(this,e.head,i)))}visualLineSide(e,n){let i=this.bidiSpans(e),a=this.textDirectionAt(e.from),o=i[n?i.length-1:0];return Ve.cursor(o.side(n,a)+e.from,o.forward(!n,a)?1:-1)}moveToLineBoundary(e,n,i=!0){return bme(this,e,n,i)}moveVertically(e,n,i){return Fk(this,e,$me(this,e,n,i))}domAtPos(e){return this.docView.domAtPos(e)}posAtDOM(e,n=0){return this.docView.posFromDOM(e,n)}posAtCoords(e,n=!0){return this.readMeasured(),yG(this,e,n)}coordsAtPos(e,n=1){this.readMeasured();let i=this.docView.coordsAt(e,n);if(!i||i.left==i.right)return i;let a=this.state.doc.lineAt(e),o=this.bidiSpans(a),r=o[ff.find(o,e-a.from,-1,n)];return sb(i,r.dir==rn.LTR==n>0)}coordsForChar(e){return this.readMeasured(),this.docView.coordsForChar(e)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(e){return!this.state.facet(sG)||ethis.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(e))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(e){if(e.length>cye)return Z7(e.length);let n=this.textDirectionAt(e.from),i;for(let o of this.bidiCache)if(o.from==e.from&&o.dir==n&&(o.fresh||Q7(o.isolates,i=E4(this,e))))return o.order;i||(i=E4(this,e));let a=ime(e.text,n,i);return this.bidiCache.push(new FA(e.from,e.to,n,i,!0,a)),a}get hasFocus(){var e;return(this.dom.ownerDocument.hasFocus()||ut.safari&&((e=this.inputState)===null||e===void 0?void 0:e.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore(()=>{M7(this.contentDOM),this.docView.updateSelection()})}setRoot(e){this._root!=e&&(this._root=e,this.observer.setWindow((e.nodeType==9?e:e.ownerDocument).defaultView||window),this.mountStyles())}destroy(){this.root.activeElement==this.contentDOM&&this.contentDOM.blur();for(let e of this.plugins)e.destroy(this);this.plugins=[],this.inputState.destroy(),this.docView.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(e,n={}){return ew.of(new tm(typeof e=="number"?Ve.cursor(e):e,n.y,n.x,n.yMargin,n.xMargin))}scrollSnapshot(){let{scrollTop:e,scrollLeft:n}=this.scrollDOM,i=this.viewState.scrollAnchorAt(e);return ew.of(new tm(Ve.cursor(i.from),"start","start",i.top-e,n,!0))}setTabFocusMode(e){e==null?this.inputState.tabFocusMode=this.inputState.tabFocusMode<0?0:-1:typeof e=="boolean"?this.inputState.tabFocusMode=e?0:-1:this.inputState.tabFocusMode!=0&&(this.inputState.tabFocusMode=Date.now()+e)}static domEventHandlers(e){return $n.define(()=>({}),{eventHandlers:e})}static domEventObservers(e){return $n.define(()=>({}),{eventObservers:e})}static theme(e,n){let i=If.newName(),a=[sw.of(i),gv.of(X2(`.${i}`,e))];return n&&n.dark&&a.push(Q2.of(!0)),a}static baseTheme(e){return Ah.lowest(gv.of(X2("."+Z2,e,OG)))}static findFromDOM(e){var n;let i=e.querySelector(".cm-content"),a=i&&Lr.get(i)||Lr.get(e);return((n=a==null?void 0:a.rootView)===null||n===void 0?void 0:n.view)||null}}it.styleModule=gv;it.inputHandler=iG;it.clipboardInputFilter=Ij;it.clipboardOutputFilter=Cj;it.scrollHandler=lG;it.focusChangeEffect=aG;it.perLineTextDirection=sG;it.exceptionSink=nG;it.updateListener=G2;it.editable=ef;it.mouseSelectionStyle=rG;it.dragMovesSelection=tG;it.clickAddsSelectionRange=eG;it.decorations=CP;it.outerDecorations=fG;it.atomicRanges=jj;it.bidiIsolatedRanges=pG;it.scrollMargins=hG;it.darkTheme=Q2;it.cspNonce=lt.define({combine:t=>t.length?t[0]:""});it.contentAttributes=Tj;it.editorAttributes=uG;it.lineWrapping=it.contentAttributes.of({class:"cm-lineWrapping"});it.announce=Nt.define();const cye=4096,e9={};class FA{constructor(e,n,i,a,o,r){this.from=e,this.to=n,this.dir=i,this.isolates=a,this.fresh=o,this.order=r}static update(e,n){if(n.empty&&!e.some(o=>o.fresh))return e;let i=[],a=e.length?e[e.length-1].dir:rn.LTR;for(let o=Math.max(0,e.length-10);o=0;a--){let o=i[a],r=typeof o=="function"?o(t):o;r&&q2(r,n)}return n}const uye=ut.mac?"mac":ut.windows?"win":ut.linux?"linux":"key";function fye(t,e){const n=t.split(/-(?!$)/);let i=n[n.length-1];i=="Space"&&(i=" ");let a,o,r,s;for(let c=0;ci.concat(a),[]))),n}function hye(t,e,n){return IG(EG(t.state),e,t,n)}let tf=null;const dye=4e3;function mye(t,e=uye){let n=Object.create(null),i=Object.create(null),a=(r,s)=>{let c=i[r];if(c==null)i[r]=s;else if(c!=s)throw new Error("Key binding "+r+" is used both as a regular binding and as a multi-stroke prefix")},o=(r,s,c,l,u)=>{var f,h;let d=n[r]||(n[r]=Object.create(null)),m=s.split(/ (?!$)/).map(v=>fye(v,e));for(let v=1;v{let _=tf={view:A,prefix:P,scope:r};return setTimeout(()=>{tf==_&&(tf=null)},dye),!0}]})}let g=m.join(" ");a(g,!1);let b=d[g]||(d[g]={preventDefault:!1,stopPropagation:!1,run:((h=(f=d._any)===null||f===void 0?void 0:f.run)===null||h===void 0?void 0:h.slice())||[]});c&&b.run.push(c),l&&(b.preventDefault=!0),u&&(b.stopPropagation=!0)};for(let r of t){let s=r.scope?r.scope.split(" "):["editor"];if(r.any)for(let l of s){let u=n[l]||(n[l]=Object.create(null));u._any||(u._any={preventDefault:!1,stopPropagation:!1,run:[]});let{any:f}=r;for(let h in u)u[h].run.push(d=>f(d,eC))}let c=r[e]||r.key;if(c)for(let l of s)o(l,c,r.run,r.preventDefault,r.stopPropagation),r.shift&&o(l,"Shift-"+c,r.shift,r.preventDefault,r.stopPropagation)}return n}let eC=null;function IG(t,e,n,i){eC=e;let a=qde(e),o=Ai(a,0),r=Ys(o)==a.length&&a!=" ",s="",c=!1,l=!1,u=!1;tf&&tf.view==n&&tf.scope==i&&(s=tf.prefix+" ",PG.indexOf(e.keyCode)<0&&(l=!0,tf=null));let f=new Set,h=b=>{if(b){for(let v of b.run)if(!f.has(v)&&(f.add(v),v(n)))return b.stopPropagation&&(u=!0),!0;b.preventDefault&&(b.stopPropagation&&(u=!0),l=!0)}return!1},d=t[i],m,g;return d&&(h(d[s+ow(a,e,!r)])?c=!0:r&&(e.altKey||e.metaKey||e.ctrlKey)&&!(ut.windows&&e.ctrlKey&&e.altKey)&&(m=Cf[e.keyCode])&&m!=a?(h(d[s+ow(m,e,!0)])||e.shiftKey&&(g=EP[e.keyCode])!=a&&g!=m&&h(d[s+ow(g,e,!1)]))&&(c=!0):r&&e.shiftKey&&h(d[s+ow(a,e,!0)])&&(c=!0),!c&&h(d._any)&&(c=!0)),l&&(c=!0),c&&u&&e.stopPropagation(),eC=null,c}class cb{constructor(e,n,i,a,o){this.className=e,this.left=n,this.top=i,this.width=a,this.height=o}draw(){let e=document.createElement("div");return e.className=this.className,this.adjust(e),e}update(e,n){return n.className!=this.className?!1:(this.adjust(e),!0)}adjust(e){e.style.left=this.left+"px",e.style.top=this.top+"px",this.width!=null&&(e.style.width=this.width+"px"),e.style.height=this.height+"px"}eq(e){return this.left==e.left&&this.top==e.top&&this.width==e.width&&this.height==e.height&&this.className==e.className}static forRange(e,n,i){if(i.empty){let a=e.coordsAtPos(i.head,i.assoc||1);if(!a)return[];let o=CG(e);return[new cb(n,a.left-o.left,a.top-o.top,null,a.bottom-a.top)]}else return yye(e,n,i)}}function CG(t){let e=t.scrollDOM.getBoundingClientRect();return{left:(t.textDirection==rn.LTR?e.left:e.right-t.scrollDOM.clientWidth*t.scaleX)-t.scrollDOM.scrollLeft*t.scaleX,top:e.top-t.scrollDOM.scrollTop*t.scaleY}}function n9(t,e,n,i){let a=t.coordsAtPos(e,n*2);if(!a)return i;let o=t.dom.getBoundingClientRect(),r=(a.top+a.bottom)/2,s=t.posAtCoords({x:o.left+1,y:r}),c=t.posAtCoords({x:o.right-1,y:r});return s==null||c==null?i:{from:Math.max(i.from,Math.min(s,c)),to:Math.min(i.to,Math.max(s,c))}}function yye(t,e,n){if(n.to<=t.viewport.from||n.from>=t.viewport.to)return[];let i=Math.max(n.from,t.viewport.from),a=Math.min(n.to,t.viewport.to),o=t.textDirection==rn.LTR,r=t.contentDOM,s=r.getBoundingClientRect(),c=CG(t),l=r.querySelector(".cm-line"),u=l&&window.getComputedStyle(l),f=s.left+(u?parseInt(u.paddingLeft)+Math.min(0,parseInt(u.textIndent)):0),h=s.right-(u?parseInt(u.paddingRight):0),d=Y2(t,i),m=Y2(t,a),g=d.type==ma.Text?d:null,b=m.type==ma.Text?m:null;if(g&&(t.lineWrapping||d.widgetLineBreaks)&&(g=n9(t,i,1,g)),b&&(t.lineWrapping||m.widgetLineBreaks)&&(b=n9(t,a,-1,b)),g&&b&&g.from==b.from&&g.to==b.to)return P(A(n.from,n.to,g));{let x=g?A(n.from,null,g):_(d,!1),E=b?A(null,n.to,b):_(m,!0),j=[];return(g||d).to<(b||m).from-(g&&b?1:0)||d.widgetLineBreaks>1&&x.bottom+t.defaultLineHeight/2q&&D.from=C)break;z>R&&V(Math.max(ae,R),x==null&&ae<=q,Math.min(z,C),E==null&&z>=S,X.dir)}if(R=H.to+1,R>=C)break}return L.length==0&&V(q,x==null,S,E==null,t.textDirection),{top:F,bottom:I,horizontal:L}}function _(x,E){let j=s.top+(E?x.top:x.bottom);return{top:j,bottom:j,horizontal:[]}}}function gye(t,e){return t.constructor==e.constructor&&t.eq(e)}class vye{constructor(e,n){this.view=e,this.layer=n,this.drawn=[],this.scaleX=1,this.scaleY=1,this.measureReq={read:this.measure.bind(this),write:this.draw.bind(this)},this.dom=e.scrollDOM.appendChild(document.createElement("div")),this.dom.classList.add("cm-layer"),n.above&&this.dom.classList.add("cm-layer-above"),n.class&&this.dom.classList.add(n.class),this.scale(),this.dom.setAttribute("aria-hidden","true"),this.setOrder(e.state),e.requestMeasure(this.measureReq),n.mount&&n.mount(this.dom,e)}update(e){e.startState.facet($$)!=e.state.facet($$)&&this.setOrder(e.state),(this.layer.update(e,this.dom)||e.geometryChanged)&&(this.scale(),e.view.requestMeasure(this.measureReq))}docViewUpdate(e){this.layer.updateOnDocViewUpdate!==!1&&e.requestMeasure(this.measureReq)}setOrder(e){let n=0,i=e.facet($$);for(;n!gye(n,this.drawn[i]))){let n=this.dom.firstChild,i=0;for(let a of e)a.update&&n&&a.constructor&&this.drawn[i].constructor&&a.update(n,this.drawn[i])?(n=n.nextSibling,i++):this.dom.insertBefore(a.draw(),n);for(;n;){let a=n.nextSibling;n.remove(),n=a}this.drawn=e}}destroy(){this.layer.destroy&&this.layer.destroy(this.dom,this.view),this.dom.remove()}}const $$=lt.define();function TG(t){return[$n.define(e=>new vye(e,t)),$$.of(t)]}const jG=!ut.ios,TP=lt.define({combine(t){return sl(t,{cursorBlinkRate:1200,drawRangeCursor:!0},{cursorBlinkRate:(e,n)=>Math.min(e,n),drawRangeCursor:(e,n)=>e||n})}});function Pye(t={}){return[TP.of(t),bye,wye,$ye,oG.of(!0)]}function MG(t){return t.startState.facet(TP)!=t.state.facet(TP)}const bye=TG({above:!0,markers(t){let{state:e}=t,n=e.facet(TP),i=[];for(let a of e.selection.ranges){let o=a==e.selection.main;if(a.empty?!o||jG:n.drawRangeCursor){let r=o?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary",s=a.empty?a:Ve.cursor(a.head,a.head>a.anchor?-1:1);for(let c of cb.forRange(t,r,s))i.push(c)}}return i},update(t,e){t.transactions.some(i=>i.selection)&&(e.style.animationName=e.style.animationName=="cm-blink"?"cm-blink2":"cm-blink");let n=MG(t);return n&&i9(t.state,e),t.docChanged||t.selectionSet||n},mount(t,e){i9(e.state,t)},class:"cm-cursorLayer"});function i9(t,e){e.style.animationDuration=t.facet(TP).cursorBlinkRate+"ms"}const wye=TG({above:!1,markers(t){return t.state.selection.ranges.map(e=>e.empty?[]:cb.forRange(t,"cm-selectionBackground",e)).reduce((e,n)=>e.concat(n))},update(t,e){return t.docChanged||t.selectionSet||t.viewportChanged||MG(t)},class:"cm-selectionLayer"}),tC={".cm-line":{"& ::selection, &::selection":{backgroundColor:"transparent !important"}},".cm-content":{"& :focus":{caretColor:"initial !important","&::selection, & ::selection":{backgroundColor:"Highlight !important"}}}};jG&&(tC[".cm-line"].caretColor=tC[".cm-content"].caretColor="transparent !important");const $ye=Ah.highest(it.theme(tC)),RG=Nt.define({map(t,e){return t==null?null:e.mapPos(t)}}),bv=ii.define({create(){return null},update(t,e){return t!=null&&(t=e.changes.mapPos(t)),e.effects.reduce((n,i)=>i.is(RG)?i.value:n,t)}}),Aye=$n.fromClass(class{constructor(t){this.view=t,this.cursor=null,this.measureReq={read:this.readPos.bind(this),write:this.drawCursor.bind(this)}}update(t){var e;let n=t.state.field(bv);n==null?this.cursor!=null&&((e=this.cursor)===null||e===void 0||e.remove(),this.cursor=null):(this.cursor||(this.cursor=this.view.scrollDOM.appendChild(document.createElement("div")),this.cursor.className="cm-dropCursor"),(t.startState.field(bv)!=n||t.docChanged||t.geometryChanged)&&this.view.requestMeasure(this.measureReq))}readPos(){let{view:t}=this,e=t.state.field(bv),n=e!=null&&t.coordsAtPos(e);if(!n)return null;let i=t.scrollDOM.getBoundingClientRect();return{left:n.left-i.left+t.scrollDOM.scrollLeft*t.scaleX,top:n.top-i.top+t.scrollDOM.scrollTop*t.scaleY,height:n.bottom-n.top}}drawCursor(t){if(this.cursor){let{scaleX:e,scaleY:n}=this.view;t?(this.cursor.style.left=t.left/e+"px",this.cursor.style.top=t.top/n+"px",this.cursor.style.height=t.height/n+"px"):this.cursor.style.left="-100000px"}}destroy(){this.cursor&&this.cursor.remove()}setDropPos(t){this.view.state.field(bv)!=t&&this.view.dispatch({effects:RG.of(t)})}},{eventObservers:{dragover(t){this.setDropPos(this.view.posAtCoords({x:t.clientX,y:t.clientY}))},dragleave(t){(t.target==this.view.contentDOM||!this.view.contentDOM.contains(t.relatedTarget))&&this.setDropPos(null)},dragend(){this.setDropPos(null)},drop(){this.setDropPos(null)}}});function Sye(){return[bv,Aye]}function a9(t,e,n,i,a){e.lastIndex=0;for(let o=t.iterRange(n,i),r=n,s;!o.next().done;r+=o.value.length)if(!o.lineBreak)for(;s=e.exec(o.value);)a(r+s.index,s)}function _ye(t,e){let n=t.visibleRanges;if(n.length==1&&n[0].from==t.viewport.from&&n[0].to==t.viewport.to)return n;let i=[];for(let{from:a,to:o}of n)a=Math.max(t.state.doc.lineAt(a).from,a-e),o=Math.min(t.state.doc.lineAt(o).to,o+e),i.length&&i[i.length-1].to>=a?i[i.length-1].to=o:i.push({from:a,to:o});return i}class xye{constructor(e){const{regexp:n,decoration:i,decorate:a,boundary:o,maxLength:r=1e3}=e;if(!n.global)throw new RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");if(this.regexp=n,a)this.addMatch=(s,c,l,u)=>a(u,l,l+s[0].length,s,c);else if(typeof i=="function")this.addMatch=(s,c,l,u)=>{let f=i(s,c,l);f&&u(l,l+s[0].length,f)};else if(i)this.addMatch=(s,c,l,u)=>u(l,l+s[0].length,i);else throw new RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");this.boundary=o,this.maxLength=r}createDeco(e){let n=new Ef,i=n.add.bind(n);for(let{from:a,to:o}of _ye(e,this.maxLength))a9(e.state.doc,this.regexp,a,o,(r,s)=>this.addMatch(s,e,r,i));return n.finish()}updateDeco(e,n){let i=1e9,a=-1;return e.docChanged&&e.changes.iterChanges((o,r,s,c)=>{c>e.view.viewport.from&&s1e3?this.createDeco(e.view):a>-1?this.updateRange(e.view,n.map(e.changes),i,a):n}updateRange(e,n,i,a){for(let o of e.visibleRanges){let r=Math.max(o.from,i),s=Math.min(o.to,a);if(s>r){let c=e.state.doc.lineAt(r),l=c.toc.from;r--)if(this.boundary.test(c.text[r-1-c.from])){u=r;break}for(;sh.push(v.range(g,b));if(c==l)for(this.regexp.lastIndex=u-c.from;(d=this.regexp.exec(c.text))&&d.indexthis.addMatch(b,e,g,m));n=n.update({filterFrom:u,filterTo:f,filter:(g,b)=>gf,add:h})}}return n}}const rC=/x/.unicode!=null?"gu":"g",Dye=new RegExp(`[\0-\b +--Ÿ­؜​‎‏\u2028\u2029‭‮⁦⁧⁩\uFEFF-]`,rC),kye={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"};let Uk=null;function Oye(){var t;if(Uk==null&&typeof document<"u"&&document.body){let e=document.body.style;Uk=((t=e.tabSize)!==null&&t!==void 0?t:e.MozTabSize)!=null}return Uk||!1}const A$=lt.define({combine(t){let e=sl(t,{render:null,specialChars:Dye,addSpecialChars:null});return(e.replaceTabs=!Oye())&&(e.specialChars=new RegExp(" |"+e.specialChars.source,rC)),e.addSpecialChars&&(e.specialChars=new RegExp(e.specialChars.source+"|"+e.addSpecialChars.source,rC)),e}});function Eye(t={}){return[A$.of(t),Iye()]}let s9=null;function Iye(){return s9||(s9=$n.fromClass(class{constructor(t){this.view=t,this.decorations=_t.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(t.state.facet(A$)),this.decorations=this.decorator.createDeco(t)}makeDecorator(t){return new xye({regexp:t.specialChars,decoration:(e,n,i)=>{let{doc:a}=n.state,o=Ai(e[0],0);if(o==9){let r=a.lineAt(i),s=n.state.tabSize,c=Ig(r.text,s,i-r.from);return _t.replace({widget:new Mye((s-c%s)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[o]||(this.decorationCache[o]=_t.replace({widget:new jye(t,o)}))},boundary:t.replaceTabs?void 0:/[^]/})}update(t){let e=t.state.facet(A$);t.startState.facet(A$)!=e?(this.decorator=this.makeDecorator(e),this.decorations=this.decorator.createDeco(t.view)):this.decorations=this.decorator.updateDeco(t,this.decorations)}},{decorations:t=>t.decorations}))}const Cye="•";function Tye(t){return t>=32?Cye:t==10?"␤":String.fromCharCode(9216+t)}class jye extends hu{constructor(e,n){super(),this.options=e,this.code=n}eq(e){return e.code==this.code}toDOM(e){let n=Tye(this.code),i=e.state.phrase("Control character")+" "+(kye[this.code]||"0x"+this.code.toString(16)),a=this.options.render&&this.options.render(this.code,i,n);if(a)return a;let o=document.createElement("span");return o.textContent=n,o.title=i,o.setAttribute("aria-label",i),o.className="cm-specialChar",o}ignoreEvent(){return!1}}class Mye extends hu{constructor(e){super(),this.width=e}eq(e){return e.width==this.width}toDOM(){let e=document.createElement("span");return e.textContent=" ",e.className="cm-tab",e.style.width=this.width+"px",e}ignoreEvent(){return!1}}function Rye(){return Lye}const Nye=_t.line({class:"cm-activeLine"}),Lye=$n.fromClass(class{constructor(t){this.decorations=this.getDeco(t)}update(t){(t.docChanged||t.selectionSet)&&(this.decorations=this.getDeco(t.view))}getDeco(t){let e=-1,n=[];for(let i of t.state.selection.ranges){let a=t.lineBlockAt(i.head);a.from>e&&(n.push(Nye.range(a.from)),e=a.from)}return _t.set(n)}},{decorations:t=>t.decorations});class Fye extends hu{constructor(e){super(),this.content=e}toDOM(e){let n=document.createElement("span");return n.className="cm-placeholder",n.style.pointerEvents="none",n.appendChild(typeof this.content=="string"?document.createTextNode(this.content):typeof this.content=="function"?this.content(e):this.content.cloneNode(!0)),typeof this.content=="string"?n.setAttribute("aria-label","placeholder "+this.content):n.setAttribute("aria-hidden","true"),n}coordsAt(e){let n=e.firstChild?og(e.firstChild):[];if(!n.length)return null;let i=window.getComputedStyle(e.parentNode),a=sb(n[0],i.direction!="rtl"),o=parseInt(i.lineHeight);return a.bottom-a.top>o*1.5?{left:a.left,right:a.right,top:a.top,bottom:a.top+o}:a}ignoreEvent(){return!1}}function qye(t){return $n.fromClass(class{constructor(e){this.view=e,this.placeholder=t?_t.set([_t.widget({widget:new Fye(t),side:1}).range(0)]):_t.none}get decorations(){return this.view.state.doc.length?_t.none:this.placeholder}},{decorations:e=>e.decorations})}const nC=2e3;function zye(t,e,n){let i=Math.min(e.line,n.line),a=Math.max(e.line,n.line),o=[];if(e.off>nC||n.off>nC||e.col<0||n.col<0){let r=Math.min(e.off,n.off),s=Math.max(e.off,n.off);for(let c=i;c<=a;c++){let l=t.doc.line(c);l.length<=s&&o.push(Ve.range(l.from+r,l.to+s))}}else{let r=Math.min(e.col,n.col),s=Math.max(e.col,n.col);for(let c=i;c<=a;c++){let l=t.doc.line(c),u=T2(l.text,r,t.tabSize,!0);if(u<0)o.push(Ve.cursor(l.to));else{let f=T2(l.text,s,t.tabSize);o.push(Ve.range(l.from+u,l.from+f))}}}return o}function Uye(t,e){let n=t.coordsAtPos(t.viewport.from);return n?Math.round(Math.abs((n.left-e)/t.defaultCharacterWidth)):-1}function o9(t,e){let n=t.posAtCoords({x:e.clientX,y:e.clientY},!1),i=t.state.doc.lineAt(n),a=n-i.from,o=a>nC?-1:a==i.length?Uye(t,e.clientX):Ig(i.text,t.state.tabSize,n-i.from);return{line:i.number,col:o,off:a}}function Bye(t,e){let n=o9(t,e),i=t.state.selection;return n?{update(a){if(a.docChanged){let o=a.changes.mapPos(a.startState.doc.line(n.line).from),r=a.state.doc.lineAt(o);n={line:r.number,col:n.col,off:Math.min(n.off,r.length)},i=i.map(a.changes)}},get(a,o,r){let s=o9(t,a);if(!s)return i;let c=zye(t.state,n,s);return c.length?r?Ve.create(c.concat(i.ranges)):Ve.create(c):i}}:null}function Vye(t){let e=n=>n.altKey&&n.button==0;return it.mouseSelectionStyle.of((n,i)=>e(i)?Bye(n,i):null)}const Wye={Alt:[18,t=>!!t.altKey],Control:[17,t=>!!t.ctrlKey],Shift:[16,t=>!!t.shiftKey],Meta:[91,t=>!!t.metaKey]},Hye={style:"cursor: crosshair"};function Gye(t={}){let[e,n]=Wye[t.key||"Alt"],i=$n.fromClass(class{constructor(a){this.view=a,this.isDown=!1}set(a){this.isDown!=a&&(this.isDown=a,this.view.update([]))}},{eventObservers:{keydown(a){this.set(a.keyCode==e||n(a))},keyup(a){(a.keyCode==e||!n(a))&&this.set(!1)},mousemove(a){this.set(n(a))}}});return[i,it.contentAttributes.of(a=>{var o;return!((o=a.plugin(i))===null||o===void 0)&&o.isDown?Hye:null})]}const U0="-10000px";class NG{constructor(e,n,i,a){this.facet=n,this.createTooltipView=i,this.removeTooltipView=a,this.input=e.state.facet(n),this.tooltips=this.input.filter(r=>r);let o=null;this.tooltipViews=this.tooltips.map(r=>o=i(r,o))}update(e,n){var i;let a=e.state.facet(this.facet),o=a.filter(c=>c);if(a===this.input){for(let c of this.tooltipViews)c.update&&c.update(e);return!1}let r=[],s=n?[]:null;for(let c=0;cn[l]=c),n.length=s.length),this.input=a,this.tooltips=o,this.tooltipViews=r,!0}}function Kye(t){let{win:e}=t;return{top:0,left:0,bottom:e.innerHeight,right:e.innerWidth}}const Bk=lt.define({combine:t=>{var e,n,i;return{position:ut.ios?"absolute":((e=t.find(a=>a.position))===null||e===void 0?void 0:e.position)||"fixed",parent:((n=t.find(a=>a.parent))===null||n===void 0?void 0:n.parent)||null,tooltipSpace:((i=t.find(a=>a.tooltipSpace))===null||i===void 0?void 0:i.tooltipSpace)||Kye}}}),l9=new WeakMap,Lj=$n.fromClass(class{constructor(t){this.view=t,this.above=[],this.inView=!0,this.madeAbsolute=!1,this.lastTransaction=0,this.measureTimeout=-1;let e=t.state.facet(Bk);this.position=e.position,this.parent=e.parent,this.classes=t.themeClasses,this.createContainer(),this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this},this.resizeObserver=typeof ResizeObserver=="function"?new ResizeObserver(()=>this.measureSoon()):null,this.manager=new NG(t,a_,(n,i)=>this.createTooltip(n,i),n=>{this.resizeObserver&&this.resizeObserver.unobserve(n.dom),n.dom.remove()}),this.above=this.manager.tooltips.map(n=>!!n.above),this.intersectionObserver=typeof IntersectionObserver=="function"?new IntersectionObserver(n=>{Date.now()>this.lastTransaction-50&&n.length>0&&n[n.length-1].intersectionRatio<1&&this.measureSoon()},{threshold:[1]}):null,this.observeIntersection(),t.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}createContainer(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}observeIntersection(){if(this.intersectionObserver){this.intersectionObserver.disconnect();for(let t of this.manager.tooltipViews)this.intersectionObserver.observe(t.dom)}}measureSoon(){this.measureTimeout<0&&(this.measureTimeout=setTimeout(()=>{this.measureTimeout=-1,this.maybeMeasure()},50))}update(t){t.transactions.length&&(this.lastTransaction=Date.now());let e=this.manager.update(t,this.above);e&&this.observeIntersection();let n=e||t.geometryChanged,i=t.state.facet(Bk);if(i.position!=this.position&&!this.madeAbsolute){this.position=i.position;for(let a of this.manager.tooltipViews)a.dom.style.position=this.position;n=!0}if(i.parent!=this.parent){this.parent&&this.container.remove(),this.parent=i.parent,this.createContainer();for(let a of this.manager.tooltipViews)this.container.appendChild(a.dom);n=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);n&&this.maybeMeasure()}createTooltip(t,e){let n=t.create(this.view),i=e?e.dom:null;if(n.dom.classList.add("cm-tooltip"),t.arrow&&!n.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){let a=document.createElement("div");a.className="cm-tooltip-arrow",n.dom.appendChild(a)}return n.dom.style.position=this.position,n.dom.style.top=U0,n.dom.style.left="0px",this.container.insertBefore(n.dom,i),n.mount&&n.mount(this.view),this.resizeObserver&&this.resizeObserver.observe(n.dom),n}destroy(){var t,e,n;this.view.win.removeEventListener("resize",this.measureSoon);for(let i of this.manager.tooltipViews)i.dom.remove(),(t=i.destroy)===null||t===void 0||t.call(i);this.parent&&this.container.remove(),(e=this.resizeObserver)===null||e===void 0||e.disconnect(),(n=this.intersectionObserver)===null||n===void 0||n.disconnect(),clearTimeout(this.measureTimeout)}readMeasure(){let t=this.view.dom.getBoundingClientRect(),e=1,n=1,i=!1;if(this.position=="fixed"&&this.manager.tooltipViews.length){let{dom:a}=this.manager.tooltipViews[0];if(ut.gecko)i=a.offsetParent!=this.container.ownerDocument.body;else if(a.style.top==U0&&a.style.left=="0px"){let o=a.getBoundingClientRect();i=Math.abs(o.top+1e4)>1||Math.abs(o.left)>1}}if(i||this.position=="absolute")if(this.parent){let a=this.parent.getBoundingClientRect();a.width&&a.height&&(e=a.width/this.parent.offsetWidth,n=a.height/this.parent.offsetHeight)}else({scaleX:e,scaleY:n}=this.view.viewState);return{editor:t,parent:this.parent?this.container.getBoundingClientRect():t,pos:this.manager.tooltips.map((a,o)=>{let r=this.manager.tooltipViews[o];return r.getCoords?r.getCoords(a.pos):this.view.coordsAtPos(a.pos)}),size:this.manager.tooltipViews.map(({dom:a})=>a.getBoundingClientRect()),space:this.view.state.facet(Bk).tooltipSpace(this.view),scaleX:e,scaleY:n,makeAbsolute:i}}writeMeasure(t){var e;if(t.makeAbsolute){this.madeAbsolute=!0,this.position="absolute";for(let s of this.manager.tooltipViews)s.dom.style.position="absolute"}let{editor:n,space:i,scaleX:a,scaleY:o}=t,r=[];for(let s=0;s=Math.min(n.bottom,i.bottom)||f.rightMath.min(n.right,i.right)+.1){u.style.top=U0;continue}let d=c.arrow?l.dom.querySelector(".cm-tooltip-arrow"):null,m=d?7:0,g=h.right-h.left,b=(e=l9.get(l))!==null&&e!==void 0?e:h.bottom-h.top,v=l.offset||Jye,P=this.view.textDirection==rn.LTR,A=h.width>i.right-i.left?P?i.left:i.right-h.width:P?Math.max(i.left,Math.min(f.left-(d?14:0)+v.x,i.right-g)):Math.min(Math.max(i.left,f.left-g+(d?14:0)-v.x),i.right-g),_=this.above[s];!c.strictSide&&(_?f.top-(h.bottom-h.top)-v.yi.bottom)&&_==i.bottom-f.bottom>f.top-i.top&&(_=this.above[s]=!_);let x=(_?f.top-i.top:i.bottom-f.bottom)-m;if(xA&&F.topE&&(E=_?F.top-b-2-m:F.bottom+m+2);if(this.position=="absolute"?(u.style.top=(E-t.parent.top)/o+"px",u.style.left=(A-t.parent.left)/a+"px"):(u.style.top=E/o+"px",u.style.left=A/a+"px"),d){let F=f.left+(P?v.x:-v.x)-(A+14-7);d.style.left=F/a+"px"}l.overlap!==!0&&r.push({left:A,top:E,right:j,bottom:E+b}),u.classList.toggle("cm-tooltip-above",_),u.classList.toggle("cm-tooltip-below",!_),l.positioned&&l.positioned(t.space)}}maybeMeasure(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView&&(this.inView=this.view.inView,!this.inView)))for(let t of this.manager.tooltipViews)t.dom.style.top=U0}},{eventObservers:{scroll(){this.maybeMeasure()}}}),Yye=it.baseTheme({".cm-tooltip":{zIndex:100,boxSizing:"border-box"},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:"7px",width:`${7*2}px`,position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:"7px solid transparent",borderRight:"7px solid transparent"},".cm-tooltip-above &":{bottom:"-7px","&:before":{borderTop:"7px solid #bbb"},"&:after":{borderTop:"7px solid #f5f5f5",bottom:"1px"}},".cm-tooltip-below &":{top:"-7px","&:before":{borderBottom:"7px solid #bbb"},"&:after":{borderBottom:"7px solid #f5f5f5",top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}}),Jye={x:0,y:0},a_=lt.define({enables:[Lj,Yye]}),qA=lt.define({combine:t=>t.reduce((e,n)=>e.concat(n),[])});class s_{static create(e){return new s_(e)}constructor(e){this.view=e,this.mounted=!1,this.dom=document.createElement("div"),this.dom.classList.add("cm-tooltip-hover"),this.manager=new NG(e,qA,(n,i)=>this.createHostedView(n,i),n=>n.dom.remove())}createHostedView(e,n){let i=e.create(this.view);return i.dom.classList.add("cm-tooltip-section"),this.dom.insertBefore(i.dom,n?n.dom.nextSibling:this.dom.firstChild),this.mounted&&i.mount&&i.mount(this.view),i}mount(e){for(let n of this.manager.tooltipViews)n.mount&&n.mount(e);this.mounted=!0}positioned(e){for(let n of this.manager.tooltipViews)n.positioned&&n.positioned(e)}update(e){this.manager.update(e)}destroy(){var e;for(let n of this.manager.tooltipViews)(e=n.destroy)===null||e===void 0||e.call(n)}passProp(e){let n;for(let i of this.manager.tooltipViews){let a=i[e];if(a!==void 0){if(n===void 0)n=a;else if(n!==a)return}}return n}get offset(){return this.passProp("offset")}get getCoords(){return this.passProp("getCoords")}get overlap(){return this.passProp("overlap")}get resize(){return this.passProp("resize")}}const Qye=a_.compute([qA],t=>{let e=t.facet(qA);return e.length===0?null:{pos:Math.min(...e.map(n=>n.pos)),end:Math.max(...e.map(n=>{var i;return(i=n.end)!==null&&i!==void 0?i:n.pos})),create:s_.create,above:e[0].above,arrow:e.some(n=>n.arrow)}});class Zye{constructor(e,n,i,a,o){this.view=e,this.source=n,this.field=i,this.setHover=a,this.hoverTime=o,this.hoverTimeout=-1,this.restartTimeout=-1,this.pending=null,this.lastMove={x:0,y:0,target:e.dom,time:0},this.checkHover=this.checkHover.bind(this),e.dom.addEventListener("mouseleave",this.mouseleave=this.mouseleave.bind(this)),e.dom.addEventListener("mousemove",this.mousemove=this.mousemove.bind(this))}update(){this.pending&&(this.pending=null,clearTimeout(this.restartTimeout),this.restartTimeout=setTimeout(()=>this.startHover(),20))}get active(){return this.view.state.field(this.field)}checkHover(){if(this.hoverTimeout=-1,this.active.length)return;let e=Date.now()-this.lastMove.time;es.bottom||n.xs.right+e.defaultCharacterWidth)return;let c=e.bidiSpans(e.state.doc.lineAt(a)).find(u=>u.from<=a&&u.to>=a),l=c&&c.dir==rn.RTL?-1:1;o=n.x{this.pending==s&&(this.pending=null,c&&!(Array.isArray(c)&&!c.length)&&e.dispatch({effects:this.setHover.of(Array.isArray(c)?c:[c])}))},c=>pa(e.state,c,"hover tooltip"))}else r&&!(Array.isArray(r)&&!r.length)&&e.dispatch({effects:this.setHover.of(Array.isArray(r)?r:[r])})}get tooltip(){let e=this.view.plugin(Lj),n=e?e.manager.tooltips.findIndex(i=>i.create==s_.create):-1;return n>-1?e.manager.tooltipViews[n]:null}mousemove(e){var n,i;this.lastMove={x:e.clientX,y:e.clientY,target:e.target,time:Date.now()},this.hoverTimeout<0&&(this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime));let{active:a,tooltip:o}=this;if(a.length&&o&&!Xye(o.dom,e)||this.pending){let{pos:r}=a[0]||this.pending,s=(i=(n=a[0])===null||n===void 0?void 0:n.end)!==null&&i!==void 0?i:r;(r==s?this.view.posAtCoords(this.lastMove)!=r:!ege(this.view,r,s,e.clientX,e.clientY))&&(this.view.dispatch({effects:this.setHover.of([])}),this.pending=null)}}mouseleave(e){clearTimeout(this.hoverTimeout),this.hoverTimeout=-1;let{active:n}=this;if(n.length){let{tooltip:i}=this;i&&i.dom.contains(e.relatedTarget)?this.watchTooltipLeave(i.dom):this.view.dispatch({effects:this.setHover.of([])})}}watchTooltipLeave(e){let n=i=>{e.removeEventListener("mouseleave",n),this.active.length&&!this.view.dom.contains(i.relatedTarget)&&this.view.dispatch({effects:this.setHover.of([])})};e.addEventListener("mouseleave",n)}destroy(){clearTimeout(this.hoverTimeout),this.view.dom.removeEventListener("mouseleave",this.mouseleave),this.view.dom.removeEventListener("mousemove",this.mousemove)}}const lw=4;function Xye(t,e){let{left:n,right:i,top:a,bottom:o}=t.getBoundingClientRect(),r;if(r=t.querySelector(".cm-tooltip-arrow")){let s=r.getBoundingClientRect();a=Math.min(s.top,a),o=Math.max(s.bottom,o)}return e.clientX>=n-lw&&e.clientX<=i+lw&&e.clientY>=a-lw&&e.clientY<=o+lw}function ege(t,e,n,i,a,o){let r=t.scrollDOM.getBoundingClientRect(),s=t.documentTop+t.documentPadding.top+t.contentHeight;if(r.left>i||r.righta||Math.min(r.bottom,s)=e&&c<=n}function tge(t,e={}){let n=Nt.define(),i=ii.define({create(){return[]},update(a,o){if(a.length&&(e.hideOnChange&&(o.docChanged||o.selection)?a=[]:e.hideOn&&(a=a.filter(r=>!e.hideOn(o,r))),o.docChanged)){let r=[];for(let s of a){let c=o.changes.mapPos(s.pos,-1,ua.TrackDel);if(c!=null){let l=Object.assign(Object.create(null),s);l.pos=c,l.end!=null&&(l.end=o.changes.mapPos(l.end)),r.push(l)}}a=r}for(let r of o.effects)r.is(n)&&(a=r.value),r.is(rge)&&(a=[]);return a},provide:a=>qA.from(a)});return{active:i,extension:[i,$n.define(a=>new Zye(a,t,i,n,e.hoverTime||300)),Qye]}}function LG(t,e){let n=t.plugin(Lj);if(!n)return null;let i=n.manager.tooltips.indexOf(e);return i<0?null:n.manager.tooltipViews[i]}const rge=Nt.define(),c9=lt.define({combine(t){let e,n;for(let i of t)e=e||i.topContainer,n=n||i.bottomContainer;return{topContainer:e,bottomContainer:n}}});function jP(t,e){let n=t.plugin(FG),i=n?n.specs.indexOf(e):-1;return i>-1?n.panels[i]:null}const FG=$n.fromClass(class{constructor(t){this.input=t.state.facet(MP),this.specs=this.input.filter(n=>n),this.panels=this.specs.map(n=>n(t));let e=t.state.facet(c9);this.top=new cw(t,!0,e.topContainer),this.bottom=new cw(t,!1,e.bottomContainer),this.top.sync(this.panels.filter(n=>n.top)),this.bottom.sync(this.panels.filter(n=>!n.top));for(let n of this.panels)n.dom.classList.add("cm-panel"),n.mount&&n.mount()}update(t){let e=t.state.facet(c9);this.top.container!=e.topContainer&&(this.top.sync([]),this.top=new cw(t.view,!0,e.topContainer)),this.bottom.container!=e.bottomContainer&&(this.bottom.sync([]),this.bottom=new cw(t.view,!1,e.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();let n=t.state.facet(MP);if(n!=this.input){let i=n.filter(c=>c),a=[],o=[],r=[],s=[];for(let c of i){let l=this.specs.indexOf(c),u;l<0?(u=c(t.view),s.push(u)):(u=this.panels[l],u.update&&u.update(t)),a.push(u),(u.top?o:r).push(u)}this.specs=i,this.panels=a,this.top.sync(o),this.bottom.sync(r);for(let c of s)c.dom.classList.add("cm-panel"),c.mount&&c.mount()}else for(let i of this.panels)i.update&&i.update(t)}destroy(){this.top.sync([]),this.bottom.sync([])}},{provide:t=>it.scrollMargins.of(e=>{let n=e.plugin(t);return n&&{top:n.top.scrollMargin(),bottom:n.bottom.scrollMargin()}})});class cw{constructor(e,n,i){this.view=e,this.top=n,this.container=i,this.dom=void 0,this.classes="",this.panels=[],this.syncClasses()}sync(e){for(let n of this.panels)n.destroy&&e.indexOf(n)<0&&n.destroy();this.panels=e,this.syncDOM()}syncDOM(){if(this.panels.length==0){this.dom&&(this.dom.remove(),this.dom=void 0);return}if(!this.dom){this.dom=document.createElement("div"),this.dom.className=this.top?"cm-panels cm-panels-top":"cm-panels cm-panels-bottom",this.dom.style[this.top?"top":"bottom"]="0";let n=this.container||this.view.dom;n.insertBefore(this.dom,this.top?n.firstChild:null)}let e=this.dom.firstChild;for(let n of this.panels)if(n.dom.parentNode==this.dom){for(;e!=n.dom;)e=u9(e);e=e.nextSibling}else this.dom.insertBefore(n.dom,e);for(;e;)e=u9(e)}scrollMargin(){return!this.dom||this.container?0:Math.max(0,this.top?this.dom.getBoundingClientRect().bottom-Math.max(0,this.view.scrollDOM.getBoundingClientRect().top):Math.min(innerHeight,this.view.scrollDOM.getBoundingClientRect().bottom)-this.dom.getBoundingClientRect().top)}syncClasses(){if(!(!this.container||this.classes==this.view.themeClasses)){for(let e of this.classes.split(" "))e&&this.container.classList.remove(e);for(let e of(this.classes=this.view.themeClasses).split(" "))e&&this.container.classList.add(e)}}}function u9(t){let e=t.nextSibling;return t.remove(),e}const MP=lt.define({enables:FG});class Hl extends ah{compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}eq(e){return!1}destroy(e){}}Hl.prototype.elementClass="";Hl.prototype.toDOM=void 0;Hl.prototype.mapMode=ua.TrackBefore;Hl.prototype.startSide=Hl.prototype.endSide=-1;Hl.prototype.point=!0;const S$=lt.define(),nge=lt.define(),ige={class:"",renderEmptyElements:!1,elementStyle:"",markers:()=>rr.empty,lineMarker:()=>null,widgetMarker:()=>null,lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{}},Wv=lt.define();function qG(t){return[zG(),Wv.of(Object.assign(Object.assign({},ige),t))]}const f9=lt.define({combine:t=>t.some(e=>e)});function zG(t){return[age]}const age=$n.fromClass(class{constructor(t){this.view=t,this.prevViewport=t.viewport,this.dom=document.createElement("div"),this.dom.className="cm-gutters",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.gutters=t.state.facet(Wv).map(e=>new h9(t,e));for(let e of this.gutters)this.dom.appendChild(e.dom);this.fixed=!t.state.facet(f9),this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),t.scrollDOM.insertBefore(this.dom,t.contentDOM)}update(t){if(this.updateGutters(t)){let e=this.prevViewport,n=t.view.viewport,i=Math.min(e.to,n.to)-Math.max(e.from,n.from);this.syncGutters(i<(n.to-n.from)*.8)}t.geometryChanged&&(this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px"),this.view.state.facet(f9)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":""),this.prevViewport=t.view.viewport}syncGutters(t){let e=this.dom.nextSibling;t&&this.dom.remove();let n=rr.iter(this.view.state.facet(S$),this.view.viewport.from),i=[],a=this.gutters.map(o=>new sge(o,this.view.viewport,-this.view.documentPadding.top));for(let o of this.view.viewportLineBlocks)if(i.length&&(i=[]),Array.isArray(o.type)){let r=!0;for(let s of o.type)if(s.type==ma.Text&&r){iC(n,i,s.from);for(let c of a)c.line(this.view,s,i);r=!1}else if(s.widget)for(let c of a)c.widget(this.view,s)}else if(o.type==ma.Text){iC(n,i,o.from);for(let r of a)r.line(this.view,o,i)}else if(o.widget)for(let r of a)r.widget(this.view,o);for(let o of a)o.finish();t&&this.view.scrollDOM.insertBefore(this.dom,e)}updateGutters(t){let e=t.startState.facet(Wv),n=t.state.facet(Wv),i=t.docChanged||t.heightChanged||t.viewportChanged||!rr.eq(t.startState.facet(S$),t.state.facet(S$),t.view.viewport.from,t.view.viewport.to);if(e==n)for(let a of this.gutters)a.update(t)&&(i=!0);else{i=!0;let a=[];for(let o of n){let r=e.indexOf(o);r<0?a.push(new h9(this.view,o)):(this.gutters[r].update(t),a.push(this.gutters[r]))}for(let o of this.gutters)o.dom.remove(),a.indexOf(o)<0&&o.destroy();for(let o of a)this.dom.appendChild(o.dom);this.gutters=a}return i}destroy(){for(let t of this.gutters)t.destroy();this.dom.remove()}},{provide:t=>it.scrollMargins.of(e=>{let n=e.plugin(t);return!n||n.gutters.length==0||!n.fixed?null:e.textDirection==rn.LTR?{left:n.dom.offsetWidth*e.scaleX}:{right:n.dom.offsetWidth*e.scaleX}})});function p9(t){return Array.isArray(t)?t:[t]}function iC(t,e,n){for(;t.value&&t.from<=n;)t.from==n&&e.push(t.value),t.next()}class sge{constructor(e,n,i){this.gutter=e,this.height=i,this.i=0,this.cursor=rr.iter(e.markers,n.from)}addElement(e,n,i){let{gutter:a}=this,o=(n.top-this.height)/e.scaleY,r=n.height/e.scaleY;if(this.i==a.elements.length){let s=new UG(e,r,o,i);a.elements.push(s),a.dom.appendChild(s.dom)}else a.elements[this.i].update(e,r,o,i);this.height=n.bottom,this.i++}line(e,n,i){let a=[];iC(this.cursor,a,n.from),i.length&&(a=a.concat(i));let o=this.gutter.config.lineMarker(e,n,a);o&&a.unshift(o);let r=this.gutter;a.length==0&&!r.config.renderEmptyElements||this.addElement(e,n,a)}widget(e,n){let i=this.gutter.config.widgetMarker(e,n.widget,n),a=i?[i]:null;for(let o of e.state.facet(nge)){let r=o(e,n.widget,n);r&&(a||(a=[])).push(r)}a&&this.addElement(e,n,a)}finish(){let e=this.gutter;for(;e.elements.length>this.i;){let n=e.elements.pop();e.dom.removeChild(n.dom),n.destroy()}}}class h9{constructor(e,n){this.view=e,this.config=n,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");for(let i in n.domEventHandlers)this.dom.addEventListener(i,a=>{let o=a.target,r;if(o!=this.dom&&this.dom.contains(o)){for(;o.parentNode!=this.dom;)o=o.parentNode;let c=o.getBoundingClientRect();r=(c.top+c.bottom)/2}else r=a.clientY;let s=e.lineBlockAtHeight(r-e.documentTop);n.domEventHandlers[i](e,s,a)&&a.preventDefault()});this.markers=p9(n.markers(e)),n.initialSpacer&&(this.spacer=new UG(e,0,0,[n.initialSpacer(e)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}update(e){let n=this.markers;if(this.markers=p9(this.config.markers(e.view)),this.spacer&&this.config.updateSpacer){let a=this.config.updateSpacer(this.spacer.markers[0],e);a!=this.spacer.markers[0]&&this.spacer.update(e.view,0,0,[a])}let i=e.view.viewport;return!rr.eq(this.markers,n,i.from,i.to)||(this.config.lineMarkerChange?this.config.lineMarkerChange(e):!1)}destroy(){for(let e of this.elements)e.destroy()}}class UG{constructor(e,n,i,a){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(e,n,i,a)}update(e,n,i,a){this.height!=n&&(this.height=n,this.dom.style.height=n+"px"),this.above!=i&&(this.dom.style.marginTop=(this.above=i)?i+"px":""),oge(this.markers,a)||this.setMarkers(e,a)}setMarkers(e,n){let i="cm-gutterElement",a=this.dom.firstChild;for(let o=0,r=0;;){let s=r,c=oo(s,c,l)||r(s,c,l):r}return i}})}});class Vk extends Hl{constructor(e){super(),this.number=e}eq(e){return this.number==e.number}toDOM(){return document.createTextNode(this.number)}}function Wk(t,e){return t.state.facet(Nd).formatNumber(e,t.state)}const uge=Wv.compute([Nd],t=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers(e){return e.state.facet(lge)},lineMarker(e,n,i){return i.some(a=>a.toDOM)?null:new Vk(Wk(e,e.state.doc.lineAt(n.from).number))},widgetMarker:(e,n,i)=>{for(let a of e.state.facet(cge)){let o=a(e,n,i);if(o)return o}return null},lineMarkerChange:e=>e.startState.facet(Nd)!=e.state.facet(Nd),initialSpacer(e){return new Vk(Wk(e,d9(e.state.doc.lines)))},updateSpacer(e,n){let i=Wk(n.view,d9(n.view.state.doc.lines));return i==e.number?e:new Vk(i)},domEventHandlers:t.facet(Nd).domEventHandlers}));function fge(t={}){return[Nd.of(t),zG(),uge]}function d9(t){let e=9;for(;e{let e=[],n=-1;for(let i of t.selection.ranges){let a=t.doc.lineAt(i.head).from;a>n&&(n=a,e.push(pge.range(a)))}return rr.of(e)});function dge(){return hge}var Hk;const Ld=new Kt;function mge(t){return lt.define({combine:t?e=>e.concat(t):void 0})}const yge=new Kt;class Go{constructor(e,n,i=[],a=""){this.data=e,this.name=a,ar.prototype.hasOwnProperty("tree")||Object.defineProperty(ar.prototype,"tree",{get(){return Ei(this)}}),this.parser=n,this.extension=[jf.of(this),ar.languageData.of((o,r,s)=>{let c=m9(o,r,s),l=c.type.prop(Ld);if(!l)return[];let u=o.facet(l),f=c.type.prop(yge);if(f){let h=c.resolve(r-c.from,s);for(let d of f)if(d.test(h,o)){let m=o.facet(d.facet);return d.type=="replace"?m:m.concat(u)}}return u})].concat(i)}isActiveAt(e,n,i=-1){return m9(e,n,i).type.prop(Ld)==this.data}findRegions(e){let n=e.facet(jf);if((n==null?void 0:n.data)==this.data)return[{from:0,to:e.doc.length}];if(!n||!n.allowsNesting)return[];let i=[],a=(o,r)=>{if(o.prop(Ld)==this.data){i.push({from:r,to:r+o.length});return}let s=o.prop(Kt.mounted);if(s){if(s.tree.prop(Ld)==this.data){if(s.overlay)for(let c of s.overlay)i.push({from:c.from+r,to:c.to+r});else i.push({from:r,to:r+o.length});return}else if(s.overlay){let c=i.length;if(a(s.tree,s.overlay[0].from+r),i.length>c)return}}for(let c=0;ci.isTop?n:void 0)]}),e.name)}configure(e,n){return new zA(this.data,this.parser.configure(e),n||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function Ei(t){let e=t.field(Go.state,!1);return e?e.tree:Kn.empty}class gge{constructor(e){this.doc=e,this.cursorPos=0,this.string="",this.cursor=e.iter()}get length(){return this.doc.length}syncTo(e){return this.string=this.cursor.next(e-this.cursorPos).value,this.cursorPos=e+this.string.length,this.cursorPos-this.string.length}chunk(e){return this.syncTo(e),this.string}get lineChunks(){return!0}read(e,n){let i=this.cursorPos-this.string.length;return e=this.cursorPos?this.doc.sliceString(e,n):this.string.slice(e-i,n-i)}}let B0=null;class UA{constructor(e,n,i=[],a,o,r,s,c){this.parser=e,this.state=n,this.fragments=i,this.tree=a,this.treeLen=o,this.viewport=r,this.skipped=s,this.scheduleOn=c,this.parse=null,this.tempSkipped=[]}static create(e,n,i){return new UA(e,n,[],Kn.empty,0,i,[],null)}startParse(){return this.parser.startParse(new gge(this.state.doc),this.fragments)}work(e,n){return n!=null&&n>=this.state.doc.length&&(n=void 0),this.tree!=Kn.empty&&this.isDone(n??this.state.doc.length)?(this.takeTree(),!0):this.withContext(()=>{var i;if(typeof e=="number"){let a=Date.now()+e;e=()=>Date.now()>a}for(this.parse||(this.parse=this.startParse()),n!=null&&(this.parse.stoppedAt==null||this.parse.stoppedAt>n)&&n=this.treeLen&&((this.parse.stoppedAt==null||this.parse.stoppedAt>e)&&this.parse.stopAt(e),this.withContext(()=>{for(;!(n=this.parse.advance()););}),this.treeLen=e,this.tree=n,this.fragments=this.withoutTempSkipped(Bp.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(e){let n=B0;B0=this;try{return e()}finally{B0=n}}withoutTempSkipped(e){for(let n;n=this.tempSkipped.pop();)e=y9(e,n.from,n.to);return e}changes(e,n){let{fragments:i,tree:a,treeLen:o,viewport:r,skipped:s}=this;if(this.takeTree(),!e.empty){let c=[];if(e.iterChangedRanges((l,u,f,h)=>c.push({fromA:l,toA:u,fromB:f,toB:h})),i=Bp.applyChanges(i,c),a=Kn.empty,o=0,r={from:e.mapPos(r.from,-1),to:e.mapPos(r.to,1)},this.skipped.length){s=[];for(let l of this.skipped){let u=e.mapPos(l.from,1),f=e.mapPos(l.to,-1);ue.from&&(this.fragments=y9(this.fragments,a,o),this.skipped.splice(i--,1))}return this.skipped.length>=n?!1:(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(e,n){this.skipped.push({from:e,to:n})}static getSkippingParser(e){return new class extends h7{createParse(n,i,a){let o=a[0].from,r=a[a.length-1].to;return{parsedPos:o,advance(){let c=B0;if(c){for(let l of a)c.tempSkipped.push(l);e&&(c.scheduleOn=c.scheduleOn?Promise.all([c.scheduleOn,e]):e)}return this.parsedPos=r,new Kn(vo.none,[],[],r-o)},stoppedAt:null,stopAt(){}}}}}isDone(e){e=Math.min(e,this.state.doc.length);let n=this.fragments;return this.treeLen>=e&&n.length&&n[0].from==0&&n[0].to>=e}static get(){return B0}}function y9(t,e,n){return Bp.applyChanges(t,[{fromA:e,toA:n,fromB:e,toB:n}])}class fg{constructor(e){this.context=e,this.tree=e.tree}apply(e){if(!e.docChanged&&this.tree==this.context.tree)return this;let n=this.context.changes(e.changes,e.state),i=this.context.treeLen==e.startState.doc.length?void 0:Math.max(e.changes.mapPos(this.context.treeLen),n.viewport.to);return n.work(20,i)||n.takeTree(),new fg(n)}static init(e){let n=Math.min(3e3,e.doc.length),i=UA.create(e.facet(jf).parser,e,{from:0,to:n});return i.work(20,n)||i.takeTree(),new fg(i)}}Go.state=ii.define({create:fg.init,update(t,e){for(let n of e.effects)if(n.is(Go.setState))return n.value;return e.startState.facet(jf)!=e.state.facet(jf)?fg.init(e.state):t.apply(e)}});let BG=t=>{let e=setTimeout(()=>t(),500);return()=>clearTimeout(e)};typeof requestIdleCallback<"u"&&(BG=t=>{let e=-1,n=setTimeout(()=>{e=requestIdleCallback(t,{timeout:400})},100);return()=>e<0?clearTimeout(n):cancelIdleCallback(e)});const Gk=typeof navigator<"u"&&(!((Hk=navigator.scheduling)===null||Hk===void 0)&&Hk.isInputPending)?()=>navigator.scheduling.isInputPending():null,vge=$n.fromClass(class{constructor(e){this.view=e,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(e){let n=this.view.state.field(Go.state).context;(n.updateViewport(e.view.viewport)||this.view.viewport.to>n.treeLen)&&this.scheduleWork(),(e.docChanged||e.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(n)}scheduleWork(){if(this.working)return;let{state:e}=this.view,n=e.field(Go.state);(n.tree!=n.context.tree||!n.context.isDone(e.doc.length))&&(this.working=BG(this.work))}work(e){this.working=null;let n=Date.now();if(this.chunkEnda+1e3,c=o.context.work(()=>Gk&&Gk()||Date.now()>r,a+(s?0:1e5));this.chunkBudget-=Date.now()-n,(c||this.chunkBudget<=0)&&(o.context.takeTree(),this.view.dispatch({effects:Go.setState.of(new fg(o.context))})),this.chunkBudget>0&&!(c&&!s)&&this.scheduleWork(),this.checkAsyncSchedule(o.context)}checkAsyncSchedule(e){e.scheduleOn&&(this.workScheduled++,e.scheduleOn.then(()=>this.scheduleWork()).catch(n=>pa(this.view.state,n)).then(()=>this.workScheduled--),e.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),jf=lt.define({combine(t){return t.length?t[0]:null},enables:t=>[Go.state,vge,it.contentAttributes.compute([t],e=>{let n=e.facet(t);return n&&n.name?{"data-language":n.name}:{}})]});class Pge{constructor(e,n=[]){this.language=e,this.support=n,this.extension=[e,n]}}const bge=lt.define(),o_=lt.define({combine:t=>{if(!t.length)return" ";let e=t[0];if(!e||/\S/.test(e)||Array.from(e).some(n=>n!=e[0]))throw new Error("Invalid indent unit: "+JSON.stringify(t[0]));return e}});function BA(t){let e=t.facet(o_);return e.charCodeAt(0)==9?t.tabSize*e.length:e.length}function RP(t,e){let n="",i=t.tabSize,a=t.facet(o_)[0];if(a==" "){for(;e>=i;)n+=" ",e-=i;a=" "}for(let o=0;o=e?wge(t,n,e):null}class l_{constructor(e,n={}){this.state=e,this.options=n,this.unit=BA(e)}lineAt(e,n=1){let i=this.state.doc.lineAt(e),{simulateBreak:a,simulateDoubleBreak:o}=this.options;return a!=null&&a>=i.from&&a<=i.to?o&&a==e?{text:"",from:e}:(n<0?a-1&&(o+=r-this.countColumn(i,i.search(/\S|$/))),o}countColumn(e,n=e.length){return Ig(e,this.state.tabSize,n)}lineIndent(e,n=1){let{text:i,from:a}=this.lineAt(e,n),o=this.options.overrideIndentation;if(o){let r=o(a);if(r>-1)return r}return this.countColumn(i,i.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const VG=new Kt;function wge(t,e,n){let i=e.resolveStack(n),a=i.node.enterUnfinishedNodesBefore(n);if(a!=i.node){let o=[];for(let r=a;r!=i.node;r=r.parent)o.push(r);for(let r=o.length-1;r>=0;r--)i={node:o[r],next:i}}return WG(i,t,n)}function WG(t,e,n){for(let i=t;i;i=i.next){let a=Age(i.node);if(a)return a(qj.create(e,n,i))}return 0}function $ge(t){return t.pos==t.options.simulateBreak&&t.options.simulateDoubleBreak}function Age(t){let e=t.type.prop(VG);if(e)return e;let n=t.firstChild,i;if(n&&(i=n.type.prop(Kt.closedBy))){let a=t.lastChild,o=a&&i.indexOf(a.name)>-1;return r=>Dge(r,!0,1,void 0,o&&!$ge(r)?a.from:void 0)}return t.parent==null?Sge:null}function Sge(){return 0}class qj extends l_{constructor(e,n,i){super(e.state,e.options),this.base=e,this.pos=n,this.context=i}get node(){return this.context.node}static create(e,n,i){return new qj(e,n,i)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(e){let n=this.state.doc.lineAt(e.from);for(;;){let i=e.resolve(n.from);for(;i.parent&&i.parent.from==i.from;)i=i.parent;if(_ge(i,e))break;n=this.state.doc.lineAt(i.from)}return this.lineIndent(n.from)}continue(){return WG(this.context.next,this.base,this.pos)}}function _ge(t,e){for(let n=e;n;n=n.parent)if(t==n)return!0;return!1}function xge(t){let e=t.node,n=e.childAfter(e.from),i=e.lastChild;if(!n)return null;let a=t.options.simulateBreak,o=t.state.doc.lineAt(n.from),r=a==null||a<=o.from?o.to:Math.min(o.to,a);for(let s=n.to;;){let c=e.childAfter(s);if(!c||c==i)return null;if(!c.type.isSkipped){if(c.from>=r)return null;let l=/^ */.exec(o.text.slice(n.to-o.from))[0].length;return{from:n.from,to:n.to+l}}s=c.to}}function Dge(t,e,n,i,a){let o=t.textAfter,r=o.match(/^\s*/)[0].length,s=a==t.pos+r,c=xge(t);return c?s?t.column(c.from):t.column(c.to):t.baseIndent+(s?0:t.unit*n)}function g9({except:t,units:e=1}={}){return n=>{let i=t&&t.test(n.textAfter);return n.baseIndent+(i?0:e*n.unit)}}const kge=200;function Oge(){return ar.transactionFilter.of(t=>{if(!t.docChanged||!t.isUserEvent("input.type")&&!t.isUserEvent("input.complete"))return t;let e=t.startState.languageDataAt("indentOnInput",t.startState.selection.main.head);if(!e.length)return t;let n=t.newDoc,{head:i}=t.newSelection.main,a=n.lineAt(i);if(i>a.from+kge)return t;let o=n.sliceString(a.from,i);if(!e.some(l=>l.test(o)))return t;let{state:r}=t,s=-1,c=[];for(let{head:l}of r.selection.ranges){let u=r.doc.lineAt(l);if(u.from==s)continue;s=u.from;let f=Fj(r,u.from);if(f==null)continue;let h=/^\s*/.exec(u.text)[0],d=RP(r,f);h!=d&&c.push({from:u.from,to:u.from+h.length,insert:d})}return c.length?[t,{changes:c,sequential:!0}]:t})}const Ege=lt.define(),HG=new Kt;function Ige(t){let e=t.firstChild,n=t.lastChild;return e&&e.ton)continue;if(o&&s.from=e&&l.to>n&&(o=l)}}return o}function Tge(t){let e=t.lastChild;return e&&e.to==t.to&&e.type.isError}function VA(t,e,n){for(let i of t.facet(Ege)){let a=i(t,e,n);if(a)return a}return Cge(t,e,n)}function GG(t,e){let n=e.mapPos(t.from,1),i=e.mapPos(t.to,-1);return n>=i?void 0:{from:n,to:i}}const c_=Nt.define({map:GG}),ub=Nt.define({map:GG});function KG(t){let e=[];for(let{head:n}of t.state.selection.ranges)e.some(i=>i.from<=n&&i.to>=n)||e.push(t.lineBlockAt(n));return e}const ch=ii.define({create(){return _t.none},update(t,e){t=t.map(e.changes);for(let n of e.effects)if(n.is(c_)&&!jge(t,n.value.from,n.value.to)){let{preparePlaceholder:i}=e.state.facet(QG),a=i?_t.replace({widget:new zge(i(e.state,n.value))}):v9;t=t.update({add:[a.range(n.value.from,n.value.to)]})}else n.is(ub)&&(t=t.update({filter:(i,a)=>n.value.from!=i||n.value.to!=a,filterFrom:n.value.from,filterTo:n.value.to}));if(e.selection){let n=!1,{head:i}=e.selection.main;t.between(i,i,(a,o)=>{ai&&(n=!0)}),n&&(t=t.update({filterFrom:i,filterTo:i,filter:(a,o)=>o<=i||a>=i}))}return t},provide:t=>it.decorations.from(t),toJSON(t,e){let n=[];return t.between(0,e.doc.length,(i,a)=>{n.push(i,a)}),n},fromJSON(t){if(!Array.isArray(t)||t.length%2)throw new RangeError("Invalid JSON for fold state");let e=[];for(let n=0;n{(!a||a.from>o)&&(a={from:o,to:r})}),a}function jge(t,e,n){let i=!1;return t.between(e,e,(a,o)=>{a==e&&o==n&&(i=!0)}),i}function YG(t,e){return t.field(ch,!1)?e:e.concat(Nt.appendConfig.of(ZG()))}const Mge=t=>{for(let e of KG(t)){let n=VA(t.state,e.from,e.to);if(n)return t.dispatch({effects:YG(t.state,[c_.of(n),JG(t,n)])}),!0}return!1},Rge=t=>{if(!t.state.field(ch,!1))return!1;let e=[];for(let n of KG(t)){let i=WA(t.state,n.from,n.to);i&&e.push(ub.of(i),JG(t,i,!1))}return e.length&&t.dispatch({effects:e}),e.length>0};function JG(t,e,n=!0){let i=t.state.doc.lineAt(e.from).number,a=t.state.doc.lineAt(e.to).number;return it.announce.of(`${t.state.phrase(n?"Folded lines":"Unfolded lines")} ${i} ${t.state.phrase("to")} ${a}.`)}const Nge=t=>{let{state:e}=t,n=[];for(let i=0;i{let e=t.state.field(ch,!1);if(!e||!e.size)return!1;let n=[];return e.between(0,t.state.doc.length,(i,a)=>{n.push(ub.of({from:i,to:a}))}),t.dispatch({effects:n}),!0},Fge=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:Mge},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:Rge},{key:"Ctrl-Alt-[",run:Nge},{key:"Ctrl-Alt-]",run:Lge}],qge={placeholderDOM:null,preparePlaceholder:null,placeholderText:"…"},QG=lt.define({combine(t){return sl(t,qge)}});function ZG(t){return[ch,Vge]}function XG(t,e){let{state:n}=t,i=n.facet(QG),a=r=>{let s=t.lineBlockAt(t.posAtDOM(r.target)),c=WA(t.state,s.from,s.to);c&&t.dispatch({effects:ub.of(c)}),r.preventDefault()};if(i.placeholderDOM)return i.placeholderDOM(t,a,e);let o=document.createElement("span");return o.textContent=i.placeholderText,o.setAttribute("aria-label",n.phrase("folded code")),o.title=n.phrase("unfold"),o.className="cm-foldPlaceholder",o.onclick=a,o}const v9=_t.replace({widget:new class extends hu{toDOM(t){return XG(t,null)}}});class zge extends hu{constructor(e){super(),this.value=e}eq(e){return this.value==e.value}toDOM(e){return XG(e,this.value)}}const Uge={openText:"⌄",closedText:"›",markerDOM:null,domEventHandlers:{},foldingChanged:()=>!1};class Kk extends Hl{constructor(e,n){super(),this.config=e,this.open=n}eq(e){return this.config==e.config&&this.open==e.open}toDOM(e){if(this.config.markerDOM)return this.config.markerDOM(this.open);let n=document.createElement("span");return n.textContent=this.open?this.config.openText:this.config.closedText,n.title=e.state.phrase(this.open?"Fold line":"Unfold line"),n}}function Bge(t={}){let e=Object.assign(Object.assign({},Uge),t),n=new Kk(e,!0),i=new Kk(e,!1),a=$n.fromClass(class{constructor(r){this.from=r.viewport.from,this.markers=this.buildMarkers(r)}update(r){(r.docChanged||r.viewportChanged||r.startState.facet(jf)!=r.state.facet(jf)||r.startState.field(ch,!1)!=r.state.field(ch,!1)||Ei(r.startState)!=Ei(r.state)||e.foldingChanged(r))&&(this.markers=this.buildMarkers(r.view))}buildMarkers(r){let s=new Ef;for(let c of r.viewportLineBlocks){let l=WA(r.state,c.from,c.to)?i:VA(r.state,c.from,c.to)?n:null;l&&s.add(c.from,c.from,l)}return s.finish()}}),{domEventHandlers:o}=e;return[a,qG({class:"cm-foldGutter",markers(r){var s;return((s=r.plugin(a))===null||s===void 0?void 0:s.markers)||rr.empty},initialSpacer(){return new Kk(e,!1)},domEventHandlers:Object.assign(Object.assign({},o),{click:(r,s,c)=>{if(o.click&&o.click(r,s,c))return!0;let l=WA(r.state,s.from,s.to);if(l)return r.dispatch({effects:ub.of(l)}),!0;let u=VA(r.state,s.from,s.to);return u?(r.dispatch({effects:c_.of(u)}),!0):!1}})}),ZG()]}const Vge=it.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}});class fb{constructor(e,n){this.specs=e;let i;function a(s){let c=If.newName();return(i||(i=Object.create(null)))["."+c]=s,c}const o=typeof n.all=="string"?n.all:n.all?a(n.all):void 0,r=n.scope;this.scope=r instanceof Go?s=>s.prop(Ld)==r.data:r?s=>s==r:void 0,this.style=y7(e.map(s=>({tag:s.tag,class:s.class||a(Object.assign({},s,{tag:null}))})),{all:o}).style,this.module=i?new If(i):null,this.themeType=n.themeType}static define(e,n){return new fb(e,n||{})}}const aC=lt.define(),eK=lt.define({combine(t){return t.length?[t[0]]:null}});function Yk(t){let e=t.facet(aC);return e.length?e:t.facet(eK)}function tK(t,e){let n=[Hge],i;return t instanceof fb&&(t.module&&n.push(it.styleModule.of(t.module)),i=t.themeType),e!=null&&e.fallback?n.push(eK.of(t)):i?n.push(aC.computeN([it.darkTheme],a=>a.facet(it.darkTheme)==(i=="dark")?[t]:[])):n.push(aC.of(t)),n}class Wge{constructor(e){this.markCache=Object.create(null),this.tree=Ei(e.state),this.decorations=this.buildDeco(e,Yk(e.state)),this.decoratedTo=e.viewport.to}update(e){let n=Ei(e.state),i=Yk(e.state),a=i!=Yk(e.startState),{viewport:o}=e.view,r=e.changes.mapPos(this.decoratedTo,1);n.length=o.to?(this.decorations=this.decorations.map(e.changes),this.decoratedTo=r):(n!=this.tree||e.viewportChanged||a)&&(this.tree=n,this.decorations=this.buildDeco(e.view,i),this.decoratedTo=o.to)}buildDeco(e,n){if(!n||!this.tree.length)return _t.none;let i=new Ef;for(let{from:a,to:o}of e.visibleRanges)yde(this.tree,n,(r,s,c)=>{i.add(r,s,this.markCache[c]||(this.markCache[c]=_t.mark({class:c})))},a,o);return i.finish()}}const Hge=Ah.high($n.fromClass(Wge,{decorations:t=>t.decorations})),Gge=fb.define([{tag:Te.meta,color:"#404740"},{tag:Te.link,textDecoration:"underline"},{tag:Te.heading,textDecoration:"underline",fontWeight:"bold"},{tag:Te.emphasis,fontStyle:"italic"},{tag:Te.strong,fontWeight:"bold"},{tag:Te.strikethrough,textDecoration:"line-through"},{tag:Te.keyword,color:"#708"},{tag:[Te.atom,Te.bool,Te.url,Te.contentSeparator,Te.labelName],color:"#219"},{tag:[Te.literal,Te.inserted],color:"#164"},{tag:[Te.string,Te.deleted],color:"#a11"},{tag:[Te.regexp,Te.escape,Te.special(Te.string)],color:"#e40"},{tag:Te.definition(Te.variableName),color:"#00f"},{tag:Te.local(Te.variableName),color:"#30a"},{tag:[Te.typeName,Te.namespace],color:"#085"},{tag:Te.className,color:"#167"},{tag:[Te.special(Te.variableName),Te.macroName],color:"#256"},{tag:Te.definition(Te.propertyName),color:"#00c"},{tag:Te.comment,color:"#940"},{tag:Te.invalid,color:"#f00"}]),Kge=it.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),rK=1e4,nK="()[]{}",iK=lt.define({combine(t){return sl(t,{afterCursor:!0,brackets:nK,maxScanDistance:rK,renderMatch:Qge})}}),Yge=_t.mark({class:"cm-matchingBracket"}),Jge=_t.mark({class:"cm-nonmatchingBracket"});function Qge(t){let e=[],n=t.matched?Yge:Jge;return e.push(n.range(t.start.from,t.start.to)),t.end&&e.push(n.range(t.end.from,t.end.to)),e}const Zge=ii.define({create(){return _t.none},update(t,e){if(!e.docChanged&&!e.selection)return t;let n=[],i=e.state.facet(iK);for(let a of e.state.selection.ranges){if(!a.empty)continue;let o=Il(e.state,a.head,-1,i)||a.head>0&&Il(e.state,a.head-1,1,i)||i.afterCursor&&(Il(e.state,a.head,1,i)||a.headit.decorations.from(t)}),Xge=[Zge,Kge];function e0e(t={}){return[iK.of(t),Xge]}const t0e=new Kt;function sC(t,e,n){let i=t.prop(e<0?Kt.openedBy:Kt.closedBy);if(i)return i;if(t.name.length==1){let a=n.indexOf(t.name);if(a>-1&&a%2==(e<0?1:0))return[n[a+e]]}return null}function oC(t){let e=t.type.prop(t0e);return e?e(t.node):t}function Il(t,e,n,i={}){let a=i.maxScanDistance||rK,o=i.brackets||nK,r=Ei(t),s=r.resolveInner(e,n);for(let c=s;c;c=c.parent){let l=sC(c.type,n,o);if(l&&c.from0?e>=u.from&&eu.from&&e<=u.to))return r0e(t,e,n,c,u,l,o)}}return n0e(t,e,n,r,s.type,a,o)}function r0e(t,e,n,i,a,o,r){let s=i.parent,c={from:a.from,to:a.to},l=0,u=s==null?void 0:s.cursor();if(u&&(n<0?u.childBefore(i.from):u.childAfter(i.to)))do if(n<0?u.to<=i.from:u.from>=i.to){if(l==0&&o.indexOf(u.type.name)>-1&&u.from0)return null;let l={from:n<0?e-1:e,to:n>0?e+1:e},u=t.doc.iterRange(e,n>0?t.doc.length:0),f=0;for(let h=0;!u.next().done&&h<=o;){let d=u.value;n<0&&(h+=d.length);let m=e+h*n;for(let g=n>0?0:d.length-1,b=n>0?d.length:-1;g!=b;g+=n){let v=r.indexOf(d[g]);if(!(v<0||i.resolveInner(m+g,1).type!=a))if(v%2==0==n>0)f++;else{if(f==1)return{start:l,end:{from:m+g,to:m+g+1},matched:v>>1==c>>1};f--}}n>0&&(h+=d.length)}return u.done?{start:l,matched:!1}:null}const i0e=Object.create(null),P9=[vo.none],b9=[],w9=Object.create(null),a0e=Object.create(null);for(let[t,e]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])a0e[t]=s0e(i0e,e);function Jk(t,e){b9.indexOf(t)>-1||(b9.push(t),console.warn(e))}function s0e(t,e){let n=[];for(let s of e.split(" ")){let c=[];for(let l of s.split(".")){let u=t[l]||Te[l];u?typeof u=="function"?c.length?c=c.map(u):Jk(l,`Modifier ${l} used at start of tag`):c.length?Jk(l,`Tag ${l} used as modifier`):c=Array.isArray(u)?u:[u]:Jk(l,`Unknown highlighting tag ${l}`)}for(let l of c)n.push(l)}if(!n.length)return 0;let i=e.replace(/ /g,"_"),a=i+" "+n.map(s=>s.id),o=w9[a];if(o)return o.id;let r=w9[a]=vo.define({id:P9.length,name:i,props:[d7({[i]:n})]});return P9.push(r),r.id}rn.RTL,rn.LTR;const o0e=()=>t=>{try{JSON.parse(t.state.doc.toString())}catch(e){if(!(e instanceof SyntaxError))throw e;const n=l0e(e,t.state.doc);return[{from:n,message:e.message,severity:"error",to:n}]}return[]};function l0e(t,e){let n;return(n=t.message.match(/at position (\d+)/))?Math.min(+n[1],e.length):(n=t.message.match(/at line (\d+) column (\d+)/))?Math.min(e.line(+n[1]).from+ +n[2]-1,e.length):0}const c0e=zA.define({name:"json",parser:bde.configure({props:[VG.add({Object:g9({except:/^\s*\}/}),Array:g9({except:/^\s*\]/})}),HG.add({"Object Array":Ige})]}),languageData:{closeBrackets:{brackets:["[","{",'"']},indentOnInput:/^\s*[\}\]]$/}});function u0e(){return new Pge(c0e)}function Br(){var t=arguments[0];typeof t=="string"&&(t=document.createElement(t));var e=1,n=arguments[1];if(n&&typeof n=="object"&&n.nodeType==null&&!Array.isArray(n)){for(var i in n)if(Object.prototype.hasOwnProperty.call(n,i)){var a=n[i];typeof a=="string"?t.setAttribute(i,a):a!=null&&(t[i]=a)}e++}for(;es.from==s.to||s.from==s.to-1&&i.doc.lineAt(s.from).to==s.from?_t.widget({widget:new b0e(s),diagnostic:s}).range(s.from):_t.mark({attributes:{class:"cm-lintRange cm-lintRange-"+s.severity+(s.markClass?" "+s.markClass:"")},diagnostic:s}).range(s.from,s.to)),!0);return new yp(r,n,pg(r))}}function pg(t,e=null,n=0){let i=null;return t.between(n,1e9,(a,o,{spec:r})=>{if(!(e&&r.diagnostic!=e))return i=new f0e(a,o,r.diagnostic),!1}),i}function sK(t,e){let n=e.pos,i=e.end||n,a=t.state.facet(Cl).hideOn(t,n,i);if(a!=null)return a;let o=t.startState.doc.lineAt(e.pos);return!!(t.effects.some(r=>r.is(pb))||t.changes.touchesRange(o.from,Math.max(o.to,i)))}function oK(t,e){return t.field(Ba,!1)?e:e.concat(Nt.appendConfig.of(dK))}function p0e(t,e){return{effects:oK(t,[pb.of(e)])}}const pb=Nt.define(),zj=Nt.define(),lK=Nt.define(),Ba=ii.define({create(){return new yp(_t.none,null,null)},update(t,e){if(e.docChanged&&t.diagnostics.size){let n=t.diagnostics.map(e.changes),i=null,a=t.panel;if(t.selected){let o=e.changes.mapPos(t.selected.from,1);i=pg(n,t.selected.diagnostic,o)||pg(n,null,o)}!n.size&&a&&e.state.facet(Cl).autoPanel&&(a=null),t=new yp(n,a,i)}for(let n of e.effects)if(n.is(pb)){let i=e.state.facet(Cl).autoPanel?n.value.length?NP.open:null:t.panel;t=yp.init(n.value,i,e.state)}else n.is(zj)?t=new yp(t.diagnostics,n.value?NP.open:null,t.selected):n.is(lK)&&(t=new yp(t.diagnostics,t.panel,n.value));return t},provide:t=>[MP.from(t,e=>e.panel),it.decorations.from(t,e=>e.diagnostics)]}),h0e=_t.mark({class:"cm-lintRange cm-lintRange-active"});function d0e(t,e,n){let{diagnostics:i}=t.state.field(Ba),a=[],o=2e8,r=0;i.between(e-(n<0?1:0),e+(n>0?1:0),(c,l,{spec:u})=>{e>=c&&e<=l&&(c==l||(e>c||n>0)&&(efK(t,n,!1)))}const m0e=t=>{let e=t.state.field(Ba,!1);(!e||!e.panel)&&t.dispatch({effects:oK(t.state,[zj.of(!0)])});let n=jP(t,NP.open);return n&&n.dom.querySelector(".cm-panel-lint ul").focus(),!0},$9=t=>{let e=t.state.field(Ba,!1);return!e||!e.panel?!1:(t.dispatch({effects:zj.of(!1)}),!0)},y0e=t=>{let e=t.state.field(Ba,!1);if(!e)return!1;let n=t.state.selection.main,i=e.diagnostics.iter(n.to+1);return!i.value&&(i=e.diagnostics.iter(0),!i.value||i.from==n.from&&i.to==n.to)?!1:(t.dispatch({selection:{anchor:i.from,head:i.to},scrollIntoView:!0}),!0)},g0e=[{key:"Mod-Shift-m",run:m0e,preventDefault:!0},{key:"F8",run:y0e}],v0e=$n.fromClass(class{constructor(t){this.view=t,this.timeout=-1,this.set=!0;let{delay:e}=t.state.facet(Cl);this.lintTime=Date.now()+e,this.run=this.run.bind(this),this.timeout=setTimeout(this.run,e)}run(){clearTimeout(this.timeout);let t=Date.now();if(tPromise.resolve(i(this.view))),i=>{this.view.state.doc==e.doc&&this.view.dispatch(p0e(this.view.state,i.reduce((a,o)=>a.concat(o))))},i=>{pa(this.view.state,i)})}}update(t){let e=t.state.facet(Cl);(t.docChanged||e!=t.startState.facet(Cl)||e.needsRefresh&&e.needsRefresh(t))&&(this.lintTime=Date.now()+e.delay,this.set||(this.set=!0,this.timeout=setTimeout(this.run,e.delay)))}force(){this.set&&(this.lintTime=Date.now(),this.run())}destroy(){clearTimeout(this.timeout)}});function P0e(t,e,n){let i=[],a=-1;for(let o of t)o.then(r=>{i.push(r),clearTimeout(a),i.length==t.length?e(i):setTimeout(()=>e(i),200)},n)}const Cl=lt.define({combine(t){return Object.assign({sources:t.map(e=>e.source).filter(e=>e!=null)},sl(t.map(e=>e.config),{delay:750,markerFilter:null,tooltipFilter:null,needsRefresh:null,hideOn:()=>null},{needsRefresh:(e,n)=>e?n?i=>e(i)||n(i):e:n}))}});function Uj(t,e={}){return[Cl.of({source:t,config:e}),v0e,dK]}function uK(t){let e=[];if(t)e:for(let{name:n}of t){for(let i=0;io.toLowerCase()==a.toLowerCase())){e.push(a);continue e}}e.push("")}return e}function fK(t,e,n){var i;let a=n?uK(e.actions):[];return Br("li",{class:"cm-diagnostic cm-diagnostic-"+e.severity},Br("span",{class:"cm-diagnosticText"},e.renderMessage?e.renderMessage(t):e.message),(i=e.actions)===null||i===void 0?void 0:i.map((o,r)=>{let s=!1,c=h=>{if(h.preventDefault(),s)return;s=!0;let d=pg(t.state.field(Ba).diagnostics,e);d&&o.apply(t,d.from,d.to)},{name:l}=o,u=a[r]?l.indexOf(a[r]):-1,f=u<0?l:[l.slice(0,u),Br("u",l.slice(u,u+1)),l.slice(u+1)];return Br("button",{type:"button",class:"cm-diagnosticAction",onclick:c,onmousedown:c,"aria-label":` Action: ${l}${u<0?"":` (access key "${a[r]})"`}.`},f)}),e.source&&Br("div",{class:"cm-diagnosticSource"},e.source))}class b0e extends hu{constructor(e){super(),this.diagnostic=e}eq(e){return e.diagnostic==this.diagnostic}toDOM(){return Br("span",{class:"cm-lintPoint cm-lintPoint-"+this.diagnostic.severity})}}class A9{constructor(e,n){this.diagnostic=n,this.id="item_"+Math.floor(Math.random()*4294967295).toString(16),this.dom=fK(e,n,!0),this.dom.id=this.id,this.dom.setAttribute("role","option")}}class NP{constructor(e){this.view=e,this.items=[];let n=a=>{if(a.keyCode==27)$9(this.view),this.view.focus();else if(a.keyCode==38||a.keyCode==33)this.moveSelection((this.selectedIndex-1+this.items.length)%this.items.length);else if(a.keyCode==40||a.keyCode==34)this.moveSelection((this.selectedIndex+1)%this.items.length);else if(a.keyCode==36)this.moveSelection(0);else if(a.keyCode==35)this.moveSelection(this.items.length-1);else if(a.keyCode==13)this.view.focus();else if(a.keyCode>=65&&a.keyCode<=90&&this.selectedIndex>=0){let{diagnostic:o}=this.items[this.selectedIndex],r=uK(o.actions);for(let s=0;s{for(let o=0;o$9(this.view)},"×")),this.update()}get selectedIndex(){let e=this.view.state.field(Ba).selected;if(!e)return-1;for(let n=0;n{let l=-1,u;for(let f=i;fi&&(this.items.splice(i,l-i),a=!0)),n&&u.diagnostic==n.diagnostic?u.dom.hasAttribute("aria-selected")||(u.dom.setAttribute("aria-selected","true"),o=u):u.dom.hasAttribute("aria-selected")&&u.dom.removeAttribute("aria-selected"),i++});i({sel:o.dom.getBoundingClientRect(),panel:this.list.getBoundingClientRect()}),write:({sel:r,panel:s})=>{let c=s.height/this.list.offsetHeight;r.tops.bottom&&(this.list.scrollTop+=(r.bottom-s.bottom)/c)}})):this.selectedIndex<0&&this.list.removeAttribute("aria-activedescendant"),a&&this.sync()}sync(){let e=this.list.firstChild;function n(){let i=e;e=i.nextSibling,i.remove()}for(let i of this.items)if(i.dom.parentNode==this.list){for(;e!=i.dom;)n();e=i.dom.nextSibling}else this.list.insertBefore(i.dom,e);for(;e;)n()}moveSelection(e){if(this.selectedIndex<0)return;let n=this.view.state.field(Ba),i=pg(n.diagnostics,this.items[e].diagnostic);i&&this.view.dispatch({selection:{anchor:i.from,head:i.to},scrollIntoView:!0,effects:lK.of(i)})}static open(e){return new NP(e)}}function _$(t,e='viewBox="0 0 40 40"'){return`url('data:image/svg+xml,${encodeURIComponent(t)}')`}function uw(t){return _$(``,'width="6" height="3"')}const w0e=it.baseTheme({".cm-diagnostic":{padding:"3px 6px 3px 8px",marginLeft:"-1px",display:"block",whiteSpace:"pre-wrap"},".cm-diagnostic-error":{borderLeft:"5px solid #d11"},".cm-diagnostic-warning":{borderLeft:"5px solid orange"},".cm-diagnostic-info":{borderLeft:"5px solid #999"},".cm-diagnostic-hint":{borderLeft:"5px solid #66d"},".cm-diagnosticAction":{font:"inherit",border:"none",padding:"2px 4px",backgroundColor:"#444",color:"white",borderRadius:"3px",marginLeft:"8px",cursor:"pointer"},".cm-diagnosticSource":{fontSize:"70%",opacity:.7},".cm-lintRange":{backgroundPosition:"left bottom",backgroundRepeat:"repeat-x",paddingBottom:"0.7px"},".cm-lintRange-error":{backgroundImage:uw("#d11")},".cm-lintRange-warning":{backgroundImage:uw("orange")},".cm-lintRange-info":{backgroundImage:uw("#999")},".cm-lintRange-hint":{backgroundImage:uw("#66d")},".cm-lintRange-active":{backgroundColor:"#ffdd9980"},".cm-tooltip-lint":{padding:0,margin:0},".cm-lintPoint":{position:"relative","&:after":{content:'""',position:"absolute",bottom:0,left:"-2px",borderLeft:"3px solid transparent",borderRight:"3px solid transparent",borderBottom:"4px solid #d11"}},".cm-lintPoint-warning":{"&:after":{borderBottomColor:"orange"}},".cm-lintPoint-info":{"&:after":{borderBottomColor:"#999"}},".cm-lintPoint-hint":{"&:after":{borderBottomColor:"#66d"}},".cm-panel.cm-panel-lint":{position:"relative","& ul":{maxHeight:"100px",overflowY:"auto","& [aria-selected]":{backgroundColor:"#ddd","& u":{textDecoration:"underline"}},"&:focus [aria-selected]":{background_fallback:"#bdf",backgroundColor:"Highlight",color_fallback:"white",color:"HighlightText"},"& u":{textDecoration:"none"},padding:0,margin:0},"& [name=close]":{position:"absolute",top:"0",right:"2px",background:"inherit",border:"none",font:"inherit",padding:0,margin:0}}});function S9(t){return t=="error"?4:t=="warning"?3:t=="info"?2:1}class pK extends Hl{constructor(e){super(),this.diagnostics=e,this.severity=e.reduce((n,i)=>S9(n)A0e(e,n,i)),n}}function $0e(t,e){let n=i=>{let a=e.getBoundingClientRect();if(!(i.clientX>a.left-10&&i.clientXa.top-10&&i.clientYe.getBoundingClientRect()}}})}),e.onmouseout=e.onmousemove=null,$0e(t,e)}let{hoverTime:a}=t.state.facet(u_),o=setTimeout(i,a);e.onmouseout=()=>{clearTimeout(o),e.onmouseout=e.onmousemove=null},e.onmousemove=()=>{clearTimeout(o),o=setTimeout(i,a)}}function S0e(t,e){let n=Object.create(null);for(let a of e){let o=t.lineAt(a.from);(n[o.from]||(n[o.from]=[])).push(a)}let i=[];for(let a in n)i.push(new pK(n[a]).range(+a));return rr.of(i,!0)}const _0e=qG({class:"cm-gutter-lint",markers:t=>t.state.field(lC),widgetMarker:(t,e,n)=>{let i=[];return t.state.field(lC).between(n.from,n.to,(a,o,r)=>{i.push(...r.diagnostics)}),i.length?new pK(i):null}}),lC=ii.define({create(){return rr.empty},update(t,e){t=t.map(e.changes);let n=e.state.facet(u_).markerFilter;for(let i of e.effects)if(i.is(pb)){let a=i.value;n&&(a=n(a||[],e.state)),t=S0e(e.state.doc,a.slice(0))}return t}}),Bj=Nt.define(),hK=ii.define({create(){return null},update(t,e){return t&&e.docChanged&&(t=sK(e,t)?null:Object.assign(Object.assign({},t),{pos:e.changes.mapPos(t.pos)})),e.effects.reduce((n,i)=>i.is(Bj)?i.value:n,t)},provide:t=>a_.from(t)}),x0e=it.baseTheme({".cm-gutter-lint":{width:"1.4em","& .cm-gutterElement":{padding:".2em"}},".cm-lint-marker":{width:"1em",height:"1em"},".cm-lint-marker-info":{content:_$('')},".cm-lint-marker-warning":{content:_$('')},".cm-lint-marker-error":{content:_$('')}}),dK=[Ba,it.decorations.compute([Ba],t=>{let{selected:e,panel:n}=t.field(Ba);return!e||!n||e.from==e.to?_t.none:_t.set([h0e.range(e.from,e.to)])}),tge(d0e,{hideOn:sK}),w0e],u_=lt.define({combine(t){return sl(t,{hoverTime:300,markerFilter:null,tooltipFilter:null})}});function D0e(t={}){return[u_.of(t),lC,_0e,x0e,hK]}function k0e(t,e){let n=t.field(Ba,!1);if(n&&n.diagnostics.size)for(let i=rr.iter([n.diagnostics]);i.value;i.next())e(i.value.spec.diagnostic,i.from,i.to)}function cC(){return cC=Object.assign?Object.assign.bind():function(t){for(var e=1;e{let{state:e}=t,n=e.doc.lineAt(e.selection.main.from),i=Wj(t.state,n.from);return i.line?I0e(t):i.block?T0e(t):!1};function Vj(t,e){return({state:n,dispatch:i})=>{if(n.readOnly)return!1;let a=t(e,n);return a?(i(n.update(a)),!0):!1}}const I0e=Vj(R0e,0),C0e=Vj(mK,0),T0e=Vj((t,e)=>mK(t,e,M0e(e)),0);function Wj(t,e){let n=t.languageDataAt("commentTokens",e);return n.length?n[0]:{}}const V0=50;function j0e(t,{open:e,close:n},i,a){let o=t.sliceDoc(i-V0,i),r=t.sliceDoc(a,a+V0),s=/\s*$/.exec(o)[0].length,c=/^\s*/.exec(r)[0].length,l=o.length-s;if(o.slice(l-e.length,l)==e&&r.slice(c,c+n.length)==n)return{open:{pos:i-s,margin:s&&1},close:{pos:a+c,margin:c&&1}};let u,f;a-i<=2*V0?u=f=t.sliceDoc(i,a):(u=t.sliceDoc(i,i+V0),f=t.sliceDoc(a-V0,a));let h=/^\s*/.exec(u)[0].length,d=/\s*$/.exec(f)[0].length,m=f.length-d-n.length;return u.slice(h,h+e.length)==e&&f.slice(m,m+n.length)==n?{open:{pos:i+h+e.length,margin:/\s/.test(u.charAt(h+e.length))?1:0},close:{pos:a-d-n.length,margin:/\s/.test(f.charAt(m-1))?1:0}}:null}function M0e(t){let e=[];for(let n of t.selection.ranges){let i=t.doc.lineAt(n.from),a=n.to<=i.to?i:t.doc.lineAt(n.to),o=e.length-1;o>=0&&e[o].to>i.from?e[o].to=a.to:e.push({from:i.from+/^\s*/.exec(i.text)[0].length,to:a.to})}return e}function mK(t,e,n=e.selection.ranges){let i=n.map(o=>Wj(e,o.from).block);if(!i.every(o=>o))return null;let a=n.map((o,r)=>j0e(e,i[r],o.from,o.to));if(t!=2&&!a.every(o=>o))return{changes:e.changes(n.map((o,r)=>a[r]?[]:[{from:o.from,insert:i[r].open+" "},{from:o.to,insert:" "+i[r].close}]))};if(t!=1&&a.some(o=>o)){let o=[];for(let r=0,s;ra&&(o==r||r>f.from)){a=f.from;let h=/^\s*/.exec(f.text)[0].length,d=h==f.length,m=f.text.slice(h,h+l.length)==l?h:-1;ho.comment<0&&(!o.empty||o.single))){let o=[];for(let{line:s,token:c,indent:l,empty:u,single:f}of i)(f||!u)&&o.push({from:s.from+l,insert:c+" "});let r=e.changes(o);return{changes:r,selection:e.selection.map(r,1)}}else if(t!=1&&i.some(o=>o.comment>=0)){let o=[];for(let{line:r,comment:s,token:c}of i)if(s>=0){let l=r.from+s,u=l+c.length;r.text[u-r.from]==" "&&u++,o.push({from:l,to:u})}return{changes:o}}return null}const uC=Jl.define(),N0e=Jl.define(),L0e=lt.define(),yK=lt.define({combine(t){return sl(t,{minDepth:100,newGroupDelay:500,joinToEvent:(e,n)=>n},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(e,n)=>(i,a)=>e(i,a)||n(i,a)})}}),gK=ii.define({create(){return Tl.empty},update(t,e){let n=e.state.facet(yK),i=e.annotation(uC);if(i){let c=Va.fromTransaction(e,i.selection),l=i.side,u=l==0?t.undone:t.done;return c?u=HA(u,u.length,n.minDepth,c):u=bK(u,e.startState.selection),new Tl(l==0?i.rest:u,l==0?u:i.rest)}let a=e.annotation(N0e);if((a=="full"||a=="before")&&(t=t.isolate()),e.annotation(ri.addToHistory)===!1)return e.changes.empty?t:t.addMapping(e.changes.desc);let o=Va.fromTransaction(e),r=e.annotation(ri.time),s=e.annotation(ri.userEvent);return o?t=t.addChanges(o,r,s,n,e):e.selection&&(t=t.addSelection(e.startState.selection,r,s,n.newGroupDelay)),(a=="full"||a=="after")&&(t=t.isolate()),t},toJSON(t){return{done:t.done.map(e=>e.toJSON()),undone:t.undone.map(e=>e.toJSON())}},fromJSON(t){return new Tl(t.done.map(Va.fromJSON),t.undone.map(Va.fromJSON))}});function F0e(t={}){return[gK,yK.of(t),it.domEventHandlers({beforeinput(e,n){let i=e.inputType=="historyUndo"?vK:e.inputType=="historyRedo"?fC:null;return i?(e.preventDefault(),i(n)):!1}})]}function f_(t,e){return function({state:n,dispatch:i}){if(!e&&n.readOnly)return!1;let a=n.field(gK,!1);if(!a)return!1;let o=a.pop(t,n,e);return o?(i(o),!0):!1}}const vK=f_(0,!1),fC=f_(1,!1),q0e=f_(0,!0),z0e=f_(1,!0);class Va{constructor(e,n,i,a,o){this.changes=e,this.effects=n,this.mapped=i,this.startSelection=a,this.selectionsAfter=o}setSelAfter(e){return new Va(this.changes,this.effects,this.mapped,this.startSelection,e)}toJSON(){var e,n,i;return{changes:(e=this.changes)===null||e===void 0?void 0:e.toJSON(),mapped:(n=this.mapped)===null||n===void 0?void 0:n.toJSON(),startSelection:(i=this.startSelection)===null||i===void 0?void 0:i.toJSON(),selectionsAfter:this.selectionsAfter.map(a=>a.toJSON())}}static fromJSON(e){return new Va(e.changes&&Xn.fromJSON(e.changes),[],e.mapped&&Ul.fromJSON(e.mapped),e.startSelection&&Ve.fromJSON(e.startSelection),e.selectionsAfter.map(Ve.fromJSON))}static fromTransaction(e,n){let i=Zs;for(let a of e.startState.facet(L0e)){let o=a(e);o.length&&(i=i.concat(o))}return!i.length&&e.changes.empty?null:new Va(e.changes.invert(e.startState.doc),i,void 0,n||e.startState.selection,Zs)}static selection(e){return new Va(void 0,Zs,void 0,void 0,e)}}function HA(t,e,n,i){let a=e+1>n+20?e-n-1:0,o=t.slice(a,e);return o.push(i),o}function U0e(t,e){let n=[],i=!1;return t.iterChangedRanges((a,o)=>n.push(a,o)),e.iterChangedRanges((a,o,r,s)=>{for(let c=0;c=l&&r<=u&&(i=!0)}}),i}function B0e(t,e){return t.ranges.length==e.ranges.length&&t.ranges.filter((n,i)=>n.empty!=e.ranges[i].empty).length===0}function PK(t,e){return t.length?e.length?t.concat(e):t:e}const Zs=[],V0e=200;function bK(t,e){if(t.length){let n=t[t.length-1],i=n.selectionsAfter.slice(Math.max(0,n.selectionsAfter.length-V0e));return i.length&&i[i.length-1].eq(e)?t:(i.push(e),HA(t,t.length-1,1e9,n.setSelAfter(i)))}else return[Va.selection([e])]}function W0e(t){let e=t[t.length-1],n=t.slice();return n[t.length-1]=e.setSelAfter(e.selectionsAfter.slice(0,e.selectionsAfter.length-1)),n}function Qk(t,e){if(!t.length)return t;let n=t.length,i=Zs;for(;n;){let a=H0e(t[n-1],e,i);if(a.changes&&!a.changes.empty||a.effects.length){let o=t.slice(0,n);return o[n-1]=a,o}else e=a.mapped,n--,i=a.selectionsAfter}return i.length?[Va.selection(i)]:Zs}function H0e(t,e,n){let i=PK(t.selectionsAfter.length?t.selectionsAfter.map(s=>s.map(e)):Zs,n);if(!t.changes)return Va.selection(i);let a=t.changes.map(e),o=e.mapDesc(t.changes,!0),r=t.mapped?t.mapped.composeDesc(o):o;return new Va(a,Nt.mapEffects(t.effects,e),r,t.startSelection.map(o),i)}const G0e=/^(input\.type|delete)($|\.)/;class Tl{constructor(e,n,i=0,a=void 0){this.done=e,this.undone=n,this.prevTime=i,this.prevUserEvent=a}isolate(){return this.prevTime?new Tl(this.done,this.undone):this}addChanges(e,n,i,a,o){let r=this.done,s=r[r.length-1];return s&&s.changes&&!s.changes.empty&&e.changes&&(!i||G0e.test(i))&&(!s.selectionsAfter.length&&n-this.prevTime0&&n-this.prevTimen.empty?t.moveByChar(n,e):p_(n,e))}function Yi(t){return t.textDirectionAt(t.state.selection.main.head)==rn.LTR}const $K=t=>wK(t,!Yi(t)),AK=t=>wK(t,Yi(t));function SK(t,e){return ol(t,n=>n.empty?t.moveByGroup(n,e):p_(n,e))}const Y0e=t=>SK(t,!Yi(t)),J0e=t=>SK(t,Yi(t));function Q0e(t,e,n){if(e.type.prop(n))return!0;let i=e.to-e.from;return i&&(i>2||/[^\s,.;:]/.test(t.sliceDoc(e.from,e.to)))||e.firstChild}function h_(t,e,n){let i=Ei(t).resolveInner(e.head),a=n?Kt.closedBy:Kt.openedBy;for(let c=e.head;;){let l=n?i.childAfter(c):i.childBefore(c);if(!l)break;Q0e(t,l,a)?i=l:c=n?l.to:l.from}let o=i.type.prop(a),r,s;return o&&(r=n?Il(t,i.from,1):Il(t,i.to,-1))&&r.matched?s=n?r.end.to:r.end.from:s=n?i.to:i.from,Ve.cursor(s,n?-1:1)}const Z0e=t=>ol(t,e=>h_(t.state,e,!Yi(t))),X0e=t=>ol(t,e=>h_(t.state,e,Yi(t)));function _K(t,e){return ol(t,n=>{if(!n.empty)return p_(n,e);let i=t.moveVertically(n,e);return i.head!=n.head?i:t.moveToLineBoundary(n,e)})}const xK=t=>_K(t,!1),DK=t=>_K(t,!0);function kK(t){let e=t.scrollDOM.clientHeightr.empty?t.moveVertically(r,e,n.height):p_(r,e));if(a.eq(i.selection))return!1;let o;if(n.selfScroll){let r=t.coordsAtPos(i.selection.main.head),s=t.scrollDOM.getBoundingClientRect(),c=s.top+n.marginTop,l=s.bottom-n.marginBottom;r&&r.top>c&&r.bottomOK(t,!1),pC=t=>OK(t,!0);function zf(t,e,n){let i=t.lineBlockAt(e.head),a=t.moveToLineBoundary(e,n);if(a.head==e.head&&a.head!=(n?i.to:i.from)&&(a=t.moveToLineBoundary(e,n,!1)),!n&&a.head==i.from&&i.length){let o=/^\s*/.exec(t.state.sliceDoc(i.from,Math.min(i.from+100,i.to)))[0].length;o&&e.head!=i.from+o&&(a=Ve.cursor(i.from+o))}return a}const eve=t=>ol(t,e=>zf(t,e,!0)),tve=t=>ol(t,e=>zf(t,e,!1)),rve=t=>ol(t,e=>zf(t,e,!Yi(t))),nve=t=>ol(t,e=>zf(t,e,Yi(t))),ive=t=>ol(t,e=>Ve.cursor(t.lineBlockAt(e.head).from,1)),ave=t=>ol(t,e=>Ve.cursor(t.lineBlockAt(e.head).to,-1));function sve(t,e,n){let i=!1,a=Cg(t.selection,o=>{let r=Il(t,o.head,-1)||Il(t,o.head,1)||o.head>0&&Il(t,o.head-1,1)||o.headsve(t,e);function wo(t,e){let n=Cg(t.state.selection,i=>{let a=e(i);return Ve.range(i.anchor,a.head,a.goalColumn,a.bidiLevel||void 0)});return n.eq(t.state.selection)?!1:(t.dispatch(Ql(t.state,n)),!0)}function EK(t,e){return wo(t,n=>t.moveByChar(n,e))}const IK=t=>EK(t,!Yi(t)),CK=t=>EK(t,Yi(t));function TK(t,e){return wo(t,n=>t.moveByGroup(n,e))}const lve=t=>TK(t,!Yi(t)),cve=t=>TK(t,Yi(t)),uve=t=>wo(t,e=>h_(t.state,e,!Yi(t))),fve=t=>wo(t,e=>h_(t.state,e,Yi(t)));function jK(t,e){return wo(t,n=>t.moveVertically(n,e))}const MK=t=>jK(t,!1),RK=t=>jK(t,!0);function NK(t,e){return wo(t,n=>t.moveVertically(n,e,kK(t).height))}const x9=t=>NK(t,!1),D9=t=>NK(t,!0),pve=t=>wo(t,e=>zf(t,e,!0)),hve=t=>wo(t,e=>zf(t,e,!1)),dve=t=>wo(t,e=>zf(t,e,!Yi(t))),mve=t=>wo(t,e=>zf(t,e,Yi(t))),yve=t=>wo(t,e=>Ve.cursor(t.lineBlockAt(e.head).from)),gve=t=>wo(t,e=>Ve.cursor(t.lineBlockAt(e.head).to)),k9=({state:t,dispatch:e})=>(e(Ql(t,{anchor:0})),!0),O9=({state:t,dispatch:e})=>(e(Ql(t,{anchor:t.doc.length})),!0),E9=({state:t,dispatch:e})=>(e(Ql(t,{anchor:t.selection.main.anchor,head:0})),!0),I9=({state:t,dispatch:e})=>(e(Ql(t,{anchor:t.selection.main.anchor,head:t.doc.length})),!0),vve=({state:t,dispatch:e})=>(e(t.update({selection:{anchor:0,head:t.doc.length},userEvent:"select"})),!0),Pve=({state:t,dispatch:e})=>{let n=d_(t).map(({from:i,to:a})=>Ve.range(i,Math.min(a+1,t.doc.length)));return e(t.update({selection:Ve.create(n),userEvent:"select"})),!0},bve=({state:t,dispatch:e})=>{let n=Cg(t.selection,i=>{let a=Ei(t),o=a.resolveStack(i.from,1);if(i.empty){let r=a.resolveStack(i.from,-1);r.node.from>=o.node.from&&r.node.to<=o.node.to&&(o=r)}for(let r=o;r;r=r.next){let{node:s}=r;if((s.from=i.to||s.to>i.to&&s.from<=i.from)&&r.next)return Ve.range(s.to,s.from)}return i});return n.eq(t.selection)?!1:(e(Ql(t,n)),!0)},wve=({state:t,dispatch:e})=>{let n=t.selection,i=null;return n.ranges.length>1?i=Ve.create([n.main]):n.main.empty||(i=Ve.create([Ve.cursor(n.main.head)])),i?(e(Ql(t,i)),!0):!1};function hb(t,e){if(t.state.readOnly)return!1;let n="delete.selection",{state:i}=t,a=i.changeByRange(o=>{let{from:r,to:s}=o;if(r==s){let c=e(o);cr&&(n="delete.forward",c=fw(t,c,!0)),r=Math.min(r,c),s=Math.max(s,c)}else r=fw(t,r,!1),s=fw(t,s,!0);return r==s?{range:o}:{changes:{from:r,to:s},range:Ve.cursor(r,ra(t)))i.between(e,e,(a,o)=>{ae&&(e=n?o:a)});return e}const LK=(t,e,n)=>hb(t,i=>{let a=i.from,{state:o}=t,r=o.doc.lineAt(a),s,c;if(n&&!e&&a>r.from&&aLK(t,!1,!0),FK=t=>LK(t,!0,!1),qK=(t,e)=>hb(t,n=>{let i=n.head,{state:a}=t,o=a.doc.lineAt(i),r=a.charCategorizer(i);for(let s=null;;){if(i==(e?o.to:o.from)){i==n.head&&o.number!=(e?a.doc.lines:1)&&(i+=e?1:-1);break}let c=Di(o.text,i-o.from,e)+o.from,l=o.text.slice(Math.min(i,c)-o.from,Math.max(i,c)-o.from),u=r(l);if(s!=null&&u!=s)break;(l!=" "||i!=n.head)&&(s=u),i=c}return i}),zK=t=>qK(t,!1),$ve=t=>qK(t,!0),Ave=t=>hb(t,e=>{let n=t.lineBlockAt(e.head).to;return e.headhb(t,e=>{let n=t.moveToLineBoundary(e,!1).head;return e.head>n?n:Math.max(0,e.head-1)}),_ve=t=>hb(t,e=>{let n=t.moveToLineBoundary(e,!0).head;return e.head{if(t.readOnly)return!1;let n=t.changeByRange(i=>({changes:{from:i.from,to:i.to,insert:fr.of(["",""])},range:Ve.cursor(i.from)}));return e(t.update(n,{scrollIntoView:!0,userEvent:"input"})),!0},Dve=({state:t,dispatch:e})=>{if(t.readOnly)return!1;let n=t.changeByRange(i=>{if(!i.empty||i.from==0||i.from==t.doc.length)return{range:i};let a=i.from,o=t.doc.lineAt(a),r=a==o.from?a-1:Di(o.text,a-o.from,!1)+o.from,s=a==o.to?a+1:Di(o.text,a-o.from,!0)+o.from;return{changes:{from:r,to:s,insert:t.doc.slice(a,s).append(t.doc.slice(r,a))},range:Ve.cursor(s)}});return n.changes.empty?!1:(e(t.update(n,{scrollIntoView:!0,userEvent:"move.character"})),!0)};function d_(t){let e=[],n=-1;for(let i of t.selection.ranges){let a=t.doc.lineAt(i.from),o=t.doc.lineAt(i.to);if(!i.empty&&i.to==o.from&&(o=t.doc.lineAt(i.to-1)),n>=a.number){let r=e[e.length-1];r.to=o.to,r.ranges.push(i)}else e.push({from:a.from,to:o.to,ranges:[i]});n=o.number+1}return e}function UK(t,e,n){if(t.readOnly)return!1;let i=[],a=[];for(let o of d_(t)){if(n?o.to==t.doc.length:o.from==0)continue;let r=t.doc.lineAt(n?o.to+1:o.from-1),s=r.length+1;if(n){i.push({from:o.to,to:r.to},{from:o.from,insert:r.text+t.lineBreak});for(let c of o.ranges)a.push(Ve.range(Math.min(t.doc.length,c.anchor+s),Math.min(t.doc.length,c.head+s)))}else{i.push({from:r.from,to:o.from},{from:o.to,insert:t.lineBreak+r.text});for(let c of o.ranges)a.push(Ve.range(c.anchor-s,c.head-s))}}return i.length?(e(t.update({changes:i,scrollIntoView:!0,selection:Ve.create(a,t.selection.mainIndex),userEvent:"move.line"})),!0):!1}const kve=({state:t,dispatch:e})=>UK(t,e,!1),Ove=({state:t,dispatch:e})=>UK(t,e,!0);function BK(t,e,n){if(t.readOnly)return!1;let i=[];for(let a of d_(t))n?i.push({from:a.from,insert:t.doc.slice(a.from,a.to)+t.lineBreak}):i.push({from:a.to,insert:t.lineBreak+t.doc.slice(a.from,a.to)});return e(t.update({changes:i,scrollIntoView:!0,userEvent:"input.copyline"})),!0}const Eve=({state:t,dispatch:e})=>BK(t,e,!1),Ive=({state:t,dispatch:e})=>BK(t,e,!0),Cve=t=>{if(t.state.readOnly)return!1;let{state:e}=t,n=e.changes(d_(e).map(({from:a,to:o})=>(a>0?a--:o{let o;if(t.lineWrapping){let r=t.lineBlockAt(a.head),s=t.coordsAtPos(a.head,a.assoc||1);s&&(o=r.bottom+t.documentTop-s.bottom+t.defaultLineHeight/2)}return t.moveVertically(a,!0,o)}).map(n);return t.dispatch({changes:n,selection:i,scrollIntoView:!0,userEvent:"delete.line"}),!0};function Tve(t,e){if(/\(\)|\[\]|\{\}/.test(t.sliceDoc(e-1,e+1)))return{from:e,to:e};let n=Ei(t).resolveInner(e),i=n.childBefore(e),a=n.childAfter(e),o;return i&&a&&i.to<=e&&a.from>=e&&(o=i.type.prop(Kt.closedBy))&&o.indexOf(a.name)>-1&&t.doc.lineAt(i.to).from==t.doc.lineAt(a.from).from&&!/\S/.test(t.sliceDoc(i.to,a.from))?{from:i.to,to:a.from}:null}const jve=VK(!1),Mve=VK(!0);function VK(t){return({state:e,dispatch:n})=>{if(e.readOnly)return!1;let i=e.changeByRange(a=>{let{from:o,to:r}=a,s=e.doc.lineAt(o),c=!t&&o==r&&Tve(e,o);t&&(o=r=(r<=s.to?s:e.doc.lineAt(r)).to);let l=new l_(e,{simulateBreak:o,simulateDoubleBreak:!!c}),u=Fj(l,o);for(u==null&&(u=Ig(/^\s*/.exec(e.doc.lineAt(o).text)[0],e.tabSize));rs.from&&o{let a=[];for(let r=i.from;r<=i.to;){let s=t.doc.lineAt(r);s.number>n&&(i.empty||i.to>s.from)&&(e(s,a,i),n=s.number),r=s.to+1}let o=t.changes(a);return{changes:a,range:Ve.range(o.mapPos(i.anchor,1),o.mapPos(i.head,1))}})}const Rve=({state:t,dispatch:e})=>{if(t.readOnly)return!1;let n=Object.create(null),i=new l_(t,{overrideIndentation:o=>{let r=n[o];return r??-1}}),a=Hj(t,(o,r,s)=>{let c=Fj(i,o.from);if(c==null)return;/\S/.test(o.text)||(c=0);let l=/^\s*/.exec(o.text)[0],u=RP(t,c);(l!=u||s.fromt.readOnly?!1:(e(t.update(Hj(t,(n,i)=>{i.push({from:n.from,insert:t.facet(o_)})}),{userEvent:"input.indent"})),!0),HK=({state:t,dispatch:e})=>t.readOnly?!1:(e(t.update(Hj(t,(n,i)=>{let a=/^\s*/.exec(n.text)[0];if(!a)return;let o=Ig(a,t.tabSize),r=0,s=RP(t,Math.max(0,o-BA(t)));for(;r(t.setTabFocusMode(),!0),Lve=[{key:"Ctrl-b",run:$K,shift:IK,preventDefault:!0},{key:"Ctrl-f",run:AK,shift:CK},{key:"Ctrl-p",run:xK,shift:MK},{key:"Ctrl-n",run:DK,shift:RK},{key:"Ctrl-a",run:ive,shift:yve},{key:"Ctrl-e",run:ave,shift:gve},{key:"Ctrl-d",run:FK},{key:"Ctrl-h",run:hC},{key:"Ctrl-k",run:Ave},{key:"Ctrl-Alt-h",run:zK},{key:"Ctrl-o",run:xve},{key:"Ctrl-t",run:Dve},{key:"Ctrl-v",run:pC}],Fve=[{key:"ArrowLeft",run:$K,shift:IK,preventDefault:!0},{key:"Mod-ArrowLeft",mac:"Alt-ArrowLeft",run:Y0e,shift:lve,preventDefault:!0},{mac:"Cmd-ArrowLeft",run:rve,shift:dve,preventDefault:!0},{key:"ArrowRight",run:AK,shift:CK,preventDefault:!0},{key:"Mod-ArrowRight",mac:"Alt-ArrowRight",run:J0e,shift:cve,preventDefault:!0},{mac:"Cmd-ArrowRight",run:nve,shift:mve,preventDefault:!0},{key:"ArrowUp",run:xK,shift:MK,preventDefault:!0},{mac:"Cmd-ArrowUp",run:k9,shift:E9},{mac:"Ctrl-ArrowUp",run:_9,shift:x9},{key:"ArrowDown",run:DK,shift:RK,preventDefault:!0},{mac:"Cmd-ArrowDown",run:O9,shift:I9},{mac:"Ctrl-ArrowDown",run:pC,shift:D9},{key:"PageUp",run:_9,shift:x9},{key:"PageDown",run:pC,shift:D9},{key:"Home",run:tve,shift:hve,preventDefault:!0},{key:"Mod-Home",run:k9,shift:E9},{key:"End",run:eve,shift:pve,preventDefault:!0},{key:"Mod-End",run:O9,shift:I9},{key:"Enter",run:jve},{key:"Mod-a",run:vve},{key:"Backspace",run:hC,shift:hC},{key:"Delete",run:FK},{key:"Mod-Backspace",mac:"Alt-Backspace",run:zK},{key:"Mod-Delete",mac:"Alt-Delete",run:$ve},{mac:"Mod-Backspace",run:Sve},{mac:"Mod-Delete",run:_ve}].concat(Lve.map(t=>({mac:t.key,run:t.run,shift:t.shift}))),qve=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:Z0e,shift:uve},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:X0e,shift:fve},{key:"Alt-ArrowUp",run:kve},{key:"Shift-Alt-ArrowUp",run:Eve},{key:"Alt-ArrowDown",run:Ove},{key:"Shift-Alt-ArrowDown",run:Ive},{key:"Escape",run:wve},{key:"Mod-Enter",run:Mve},{key:"Alt-l",mac:"Ctrl-l",run:Pve},{key:"Mod-i",run:bve,preventDefault:!0},{key:"Mod-[",run:HK},{key:"Mod-]",run:WK},{key:"Mod-Alt-\\",run:Rve},{key:"Shift-Mod-k",run:Cve},{key:"Shift-Mod-\\",run:ove},{key:"Mod-/",run:E0e},{key:"Alt-A",run:C0e},{key:"Ctrl-m",mac:"Shift-Alt-m",run:Nve}].concat(Fve),zve={key:"Tab",run:WK,shift:HK},C9=typeof String.prototype.normalize=="function"?t=>t.normalize("NFKD"):t=>t;class hg{constructor(e,n,i=0,a=e.length,o,r){this.test=r,this.value={from:0,to:0},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=e.iterRange(i,a),this.bufferStart=i,this.normalize=o?s=>o(C9(s)):C9,this.query=this.normalize(n)}peek(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return-1;this.bufferPos=0,this.buffer=this.iter.value}return Ai(this.buffer,this.bufferPos)}next(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}nextOverlapping(){for(;;){let e=this.peek();if(e<0)return this.done=!0,this;let n=_j(e),i=this.bufferStart+this.bufferPos;this.bufferPos+=Ys(e);let a=this.normalize(n);for(let o=0,r=i;;o++){let s=a.charCodeAt(o),c=this.match(s,r,this.bufferPos+this.bufferStart);if(o==a.length-1){if(c)return this.value=c,this;break}r==i&&othis.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}nextLine(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}next(){for(let e=this.matchPos-this.curLineStart;;){this.re.lastIndex=e;let n=this.matchPos<=this.to&&this.re.exec(this.curLine);if(n){let i=this.curLineStart+n.index,a=i+n[0].length;if(this.matchPos=GA(this.text,a+(i==a?1:0)),i==this.curLineStart+this.curLine.length&&this.nextLine(),(ithis.value.to)&&(!this.test||this.test(i,a,n)))return this.value={from:i,to:a,match:n},this;e=this.matchPos-this.curLineStart}else if(this.curLineStart+this.curLine.length=i||a.to<=n){let s=new rm(n,e.sliceString(n,i));return Zk.set(e,s),s}if(a.from==n&&a.to==i)return a;let{text:o,from:r}=a;return r>n&&(o=e.sliceString(n,r)+o,r=n),a.to=this.to?this.to:this.text.lineAt(e).to}next(){for(;;){let e=this.re.lastIndex=this.matchPos-this.flat.from,n=this.re.exec(this.flat.text);if(n&&!n[0]&&n.index==e&&(this.re.lastIndex=e+1,n=this.re.exec(this.flat.text)),n){let i=this.flat.from+n.index,a=i+n[0].length;if((this.flat.to>=this.to||n.index+n[0].length<=this.flat.text.length-10)&&(!this.test||this.test(i,a,n)))return this.value={from:i,to:a,match:n},this.matchPos=GA(this.text,a+(i==a?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=rm.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+this.flat.text.length*2))}}}typeof Symbol<"u"&&(KK.prototype[Symbol.iterator]=YK.prototype[Symbol.iterator]=function(){return this});function Uve(t){try{return new RegExp(t,Gj),!0}catch{return!1}}function GA(t,e){if(e>=t.length)return e;let n=t.lineAt(e),i;for(;e=56320&&i<57344;)e++;return e}function dC(t){let e=String(t.state.doc.lineAt(t.state.selection.main.head).number),n=Br("input",{class:"cm-textfield",name:"line",value:e}),i=Br("form",{class:"cm-gotoLine",onkeydown:o=>{o.keyCode==27?(o.preventDefault(),t.dispatch({effects:KA.of(!1)}),t.focus()):o.keyCode==13&&(o.preventDefault(),a())},onsubmit:o=>{o.preventDefault(),a()}},Br("label",t.state.phrase("Go to line"),": ",n)," ",Br("button",{class:"cm-button",type:"submit"},t.state.phrase("go")));function a(){let o=/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(n.value);if(!o)return;let{state:r}=t,s=r.doc.lineAt(r.selection.main.head),[,c,l,u,f]=o,h=u?+u.slice(1):0,d=l?+l:s.number;if(l&&f){let b=d/100;c&&(b=b*(c=="-"?-1:1)+s.number/r.doc.lines),d=Math.round(r.doc.lines*b)}else l&&c&&(d=d*(c=="-"?-1:1)+s.number);let m=r.doc.line(Math.max(1,Math.min(r.doc.lines,d))),g=Ve.cursor(m.from+Math.max(0,Math.min(h,m.length)));t.dispatch({effects:[KA.of(!1),it.scrollIntoView(g.from,{y:"center"})],selection:g}),t.focus()}return{dom:i}}const KA=Nt.define(),T9=ii.define({create(){return!0},update(t,e){for(let n of e.effects)n.is(KA)&&(t=n.value);return t},provide:t=>MP.from(t,e=>e?dC:null)}),Bve=t=>{let e=jP(t,dC);if(!e){let n=[KA.of(!0)];t.state.field(T9,!1)==null&&n.push(Nt.appendConfig.of([T9,Vve])),t.dispatch({effects:n}),e=jP(t,dC)}return e&&e.dom.querySelector("input").select(),!0},Vve=it.baseTheme({".cm-panel.cm-gotoLine":{padding:"2px 6px 4px","& label":{fontSize:"80%"}}}),Wve={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},Hve=lt.define({combine(t){return sl(t,Wve,{highlightWordAroundCursor:(e,n)=>e||n,minSelectionLength:Math.min,maxMatches:Math.min})}});function Gve(t){return[Zve,Qve]}const Kve=_t.mark({class:"cm-selectionMatch"}),Yve=_t.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function j9(t,e,n,i){return(n==0||t(e.sliceDoc(n-1,n))!=cn.Word)&&(i==e.doc.length||t(e.sliceDoc(i,i+1))!=cn.Word)}function Jve(t,e,n,i){return t(e.sliceDoc(n,n+1))==cn.Word&&t(e.sliceDoc(i-1,i))==cn.Word}const Qve=$n.fromClass(class{constructor(t){this.decorations=this.getDeco(t)}update(t){(t.selectionSet||t.docChanged||t.viewportChanged)&&(this.decorations=this.getDeco(t.view))}getDeco(t){let e=t.state.facet(Hve),{state:n}=t,i=n.selection;if(i.ranges.length>1)return _t.none;let a=i.main,o,r=null;if(a.empty){if(!e.highlightWordAroundCursor)return _t.none;let c=n.wordAt(a.head);if(!c)return _t.none;r=n.charCategorizer(a.head),o=n.sliceDoc(c.from,c.to)}else{let c=a.to-a.from;if(c200)return _t.none;if(e.wholeWords){if(o=n.sliceDoc(a.from,a.to),r=n.charCategorizer(a.head),!(j9(r,n,a.from,a.to)&&Jve(r,n,a.from,a.to)))return _t.none}else if(o=n.sliceDoc(a.from,a.to),!o)return _t.none}let s=[];for(let c of t.visibleRanges){let l=new hg(n.doc,o,c.from,c.to);for(;!l.next().done;){let{from:u,to:f}=l.value;if((!r||j9(r,n,u,f))&&(a.empty&&u<=a.from&&f>=a.to?s.push(Yve.range(u,f)):(u>=a.to||f<=a.from)&&s.push(Kve.range(u,f)),s.length>e.maxMatches))return _t.none}}return _t.set(s)}},{decorations:t=>t.decorations}),Zve=it.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}}),Xve=({state:t,dispatch:e})=>{let{selection:n}=t,i=Ve.create(n.ranges.map(a=>t.wordAt(a.head)||Ve.cursor(a.head)),n.mainIndex);return i.eq(n)?!1:(e(t.update({selection:i})),!0)};function ePe(t,e){let{main:n,ranges:i}=t.selection,a=t.wordAt(n.head),o=a&&a.from==n.from&&a.to==n.to;for(let r=!1,s=new hg(t.doc,e,i[i.length-1].to);;)if(s.next(),s.done){if(r)return null;s=new hg(t.doc,e,0,Math.max(0,i[i.length-1].from-1)),r=!0}else{if(r&&i.some(c=>c.from==s.value.from))continue;if(o){let c=t.wordAt(s.value.from);if(!c||c.from!=s.value.from||c.to!=s.value.to)continue}return s.value}}const tPe=({state:t,dispatch:e})=>{let{ranges:n}=t.selection;if(n.some(o=>o.from===o.to))return Xve({state:t,dispatch:e});let i=t.sliceDoc(n[0].from,n[0].to);if(t.selection.ranges.some(o=>t.sliceDoc(o.from,o.to)!=i))return!1;let a=ePe(t,i);return a?(e(t.update({selection:t.selection.addRange(Ve.range(a.from,a.to),!1),effects:it.scrollIntoView(a.to)})),!0):!1},Tg=lt.define({combine(t){return sl(t,{top:!1,caseSensitive:!1,literal:!1,regexp:!1,wholeWord:!1,createPanel:e=>new hPe(e),scrollToMatch:e=>it.scrollIntoView(e)})}});class JK{constructor(e){this.search=e.search,this.caseSensitive=!!e.caseSensitive,this.literal=!!e.literal,this.regexp=!!e.regexp,this.replace=e.replace||"",this.valid=!!this.search&&(!this.regexp||Uve(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!e.wholeWord}unquote(e){return this.literal?e:e.replace(/\\([nrt\\])/g,(n,i)=>i=="n"?` +`:i=="r"?"\r":i=="t"?" ":"\\")}eq(e){return this.search==e.search&&this.replace==e.replace&&this.caseSensitive==e.caseSensitive&&this.regexp==e.regexp&&this.wholeWord==e.wholeWord}create(){return this.regexp?new aPe(this):new nPe(this)}getCursor(e,n=0,i){let a=e.doc?e:ar.create({doc:e});return i==null&&(i=a.doc.length),this.regexp?md(this,a,n,i):dd(this,a,n,i)}}class QK{constructor(e){this.spec=e}}function dd(t,e,n,i){return new hg(e.doc,t.unquoted,n,i,t.caseSensitive?void 0:a=>a.toLowerCase(),t.wholeWord?rPe(e.doc,e.charCategorizer(e.selection.main.head)):void 0)}function rPe(t,e){return(n,i,a,o)=>((o>n||o+a.length=n)return null;a.push(i.value)}return a}highlight(e,n,i,a){let o=dd(this.spec,e,Math.max(0,n-this.spec.unquoted.length),Math.min(i+this.spec.unquoted.length,e.doc.length));for(;!o.next().done;)a(o.value.from,o.value.to)}}function md(t,e,n,i){return new KK(e.doc,t.search,{ignoreCase:!t.caseSensitive,test:t.wholeWord?iPe(e.charCategorizer(e.selection.main.head)):void 0},n,i)}function YA(t,e){return t.slice(Di(t,e,!1),e)}function JA(t,e){return t.slice(e,Di(t,e))}function iPe(t){return(e,n,i)=>!i[0].length||(t(YA(i.input,i.index))!=cn.Word||t(JA(i.input,i.index))!=cn.Word)&&(t(JA(i.input,i.index+i[0].length))!=cn.Word||t(YA(i.input,i.index+i[0].length))!=cn.Word)}class aPe extends QK{nextMatch(e,n,i){let a=md(this.spec,e,i,e.doc.length).next();return a.done&&(a=md(this.spec,e,0,n).next()),a.done?null:a.value}prevMatchInRange(e,n,i){for(let a=1;;a++){let o=Math.max(n,i-a*1e4),r=md(this.spec,e,o,i),s=null;for(;!r.next().done;)s=r.value;if(s&&(o==n||s.from>o+10))return s;if(o==n)return null}}prevMatch(e,n,i){return this.prevMatchInRange(e,0,n)||this.prevMatchInRange(e,i,e.doc.length)}getReplacement(e){return this.spec.unquote(this.spec.replace).replace(/\$([$&\d+])/g,(n,i)=>i=="$"?"$":i=="&"?e.match[0]:i!="0"&&+i=n)return null;a.push(i.value)}return a}highlight(e,n,i,a){let o=md(this.spec,e,Math.max(0,n-250),Math.min(i+250,e.doc.length));for(;!o.next().done;)a(o.value.from,o.value.to)}}const LP=Nt.define(),Kj=Nt.define(),$f=ii.define({create(t){return new Xk(mC(t).create(),null)},update(t,e){for(let n of e.effects)n.is(LP)?t=new Xk(n.value.create(),t.panel):n.is(Kj)&&(t=new Xk(t.query,n.value?Yj:null));return t},provide:t=>MP.from(t,e=>e.panel)});class Xk{constructor(e,n){this.query=e,this.panel=n}}const sPe=_t.mark({class:"cm-searchMatch"}),oPe=_t.mark({class:"cm-searchMatch cm-searchMatch-selected"}),lPe=$n.fromClass(class{constructor(t){this.view=t,this.decorations=this.highlight(t.state.field($f))}update(t){let e=t.state.field($f);(e!=t.startState.field($f)||t.docChanged||t.selectionSet||t.viewportChanged)&&(this.decorations=this.highlight(e))}highlight({query:t,panel:e}){if(!e||!t.spec.valid)return _t.none;let{view:n}=this,i=new Ef;for(let a=0,o=n.visibleRanges,r=o.length;ao[a+1].from-2*250;)c=o[++a].to;t.highlight(n.state,s,c,(l,u)=>{let f=n.state.selection.ranges.some(h=>h.from==l&&h.to==u);i.add(l,u,f?oPe:sPe)})}return i.finish()}},{decorations:t=>t.decorations});function db(t){return e=>{let n=e.state.field($f,!1);return n&&n.query.spec.valid?t(e,n):eY(e)}}const QA=db((t,{query:e})=>{let{to:n}=t.state.selection.main,i=e.nextMatch(t.state,n,n);if(!i)return!1;let a=Ve.single(i.from,i.to),o=t.state.facet(Tg);return t.dispatch({selection:a,effects:[Jj(t,i),o.scrollToMatch(a.main,t)],userEvent:"select.search"}),XK(t),!0}),ZA=db((t,{query:e})=>{let{state:n}=t,{from:i}=n.selection.main,a=e.prevMatch(n,i,i);if(!a)return!1;let o=Ve.single(a.from,a.to),r=t.state.facet(Tg);return t.dispatch({selection:o,effects:[Jj(t,a),r.scrollToMatch(o.main,t)],userEvent:"select.search"}),XK(t),!0}),cPe=db((t,{query:e})=>{let n=e.matchAll(t.state,1e3);return!n||!n.length?!1:(t.dispatch({selection:Ve.create(n.map(i=>Ve.range(i.from,i.to))),userEvent:"select.search.matches"}),!0)}),uPe=({state:t,dispatch:e})=>{let n=t.selection;if(n.ranges.length>1||n.main.empty)return!1;let{from:i,to:a}=n.main,o=[],r=0;for(let s=new hg(t.doc,t.sliceDoc(i,a));!s.next().done;){if(o.length>1e3)return!1;s.value.from==i&&(r=o.length),o.push(Ve.range(s.value.from,s.value.to))}return e(t.update({selection:Ve.create(o,r),userEvent:"select.search.matches"})),!0},M9=db((t,{query:e})=>{let{state:n}=t,{from:i,to:a}=n.selection.main;if(n.readOnly)return!1;let o=e.nextMatch(n,i,i);if(!o)return!1;let r=[],s,c,l=[];if(o.from==i&&o.to==a&&(c=n.toText(e.getReplacement(o)),r.push({from:o.from,to:o.to,insert:c}),o=e.nextMatch(n,o.from,o.to),l.push(it.announce.of(n.phrase("replaced match on line $",n.doc.lineAt(i).number)+"."))),o){let u=r.length==0||r[0].from>=o.to?0:o.to-o.from-c.length;s=Ve.single(o.from-u,o.to-u),l.push(Jj(t,o)),l.push(n.facet(Tg).scrollToMatch(s.main,t))}return t.dispatch({changes:r,selection:s,effects:l,userEvent:"input.replace"}),!0}),fPe=db((t,{query:e})=>{if(t.state.readOnly)return!1;let n=e.matchAll(t.state,1e9).map(a=>{let{from:o,to:r}=a;return{from:o,to:r,insert:e.getReplacement(a)}});if(!n.length)return!1;let i=t.state.phrase("replaced $ matches",n.length)+".";return t.dispatch({changes:n,effects:it.announce.of(i),userEvent:"input.replace.all"}),!0});function Yj(t){return t.state.facet(Tg).createPanel(t)}function mC(t,e){var n,i,a,o,r;let s=t.selection.main,c=s.empty||s.to>s.from+100?"":t.sliceDoc(s.from,s.to);if(e&&!c)return e;let l=t.facet(Tg);return new JK({search:((n=e==null?void 0:e.literal)!==null&&n!==void 0?n:l.literal)?c:c.replace(/\n/g,"\\n"),caseSensitive:(i=e==null?void 0:e.caseSensitive)!==null&&i!==void 0?i:l.caseSensitive,literal:(a=e==null?void 0:e.literal)!==null&&a!==void 0?a:l.literal,regexp:(o=e==null?void 0:e.regexp)!==null&&o!==void 0?o:l.regexp,wholeWord:(r=e==null?void 0:e.wholeWord)!==null&&r!==void 0?r:l.wholeWord})}function ZK(t){let e=jP(t,Yj);return e&&e.dom.querySelector("[main-field]")}function XK(t){let e=ZK(t);e&&e==t.root.activeElement&&e.select()}const eY=t=>{let e=t.state.field($f,!1);if(e&&e.panel){let n=ZK(t);if(n&&n!=t.root.activeElement){let i=mC(t.state,e.query.spec);i.valid&&t.dispatch({effects:LP.of(i)}),n.focus(),n.select()}}else t.dispatch({effects:[Kj.of(!0),e?LP.of(mC(t.state,e.query.spec)):Nt.appendConfig.of(mPe)]});return!0},tY=t=>{let e=t.state.field($f,!1);if(!e||!e.panel)return!1;let n=jP(t,Yj);return n&&n.dom.contains(t.root.activeElement)&&t.focus(),t.dispatch({effects:Kj.of(!1)}),!0},pPe=[{key:"Mod-f",run:eY,scope:"editor search-panel"},{key:"F3",run:QA,shift:ZA,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:QA,shift:ZA,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:tY,scope:"editor search-panel"},{key:"Mod-Shift-l",run:uPe},{key:"Mod-Alt-g",run:Bve},{key:"Mod-d",run:tPe,preventDefault:!0}];class hPe{constructor(e){this.view=e;let n=this.query=e.state.field($f).query.spec;this.commit=this.commit.bind(this),this.searchField=Br("input",{value:n.search,placeholder:as(e,"Find"),"aria-label":as(e,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=Br("input",{value:n.replace,placeholder:as(e,"Replace"),"aria-label":as(e,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=Br("input",{type:"checkbox",name:"case",form:"",checked:n.caseSensitive,onchange:this.commit}),this.reField=Br("input",{type:"checkbox",name:"re",form:"",checked:n.regexp,onchange:this.commit}),this.wordField=Br("input",{type:"checkbox",name:"word",form:"",checked:n.wholeWord,onchange:this.commit});function i(a,o,r){return Br("button",{class:"cm-button",name:a,onclick:o,type:"button"},r)}this.dom=Br("div",{onkeydown:a=>this.keydown(a),class:"cm-search"},[this.searchField,i("next",()=>QA(e),[as(e,"next")]),i("prev",()=>ZA(e),[as(e,"previous")]),i("select",()=>cPe(e),[as(e,"all")]),Br("label",null,[this.caseField,as(e,"match case")]),Br("label",null,[this.reField,as(e,"regexp")]),Br("label",null,[this.wordField,as(e,"by word")]),...e.state.readOnly?[]:[Br("br"),this.replaceField,i("replace",()=>M9(e),[as(e,"replace")]),i("replaceAll",()=>fPe(e),[as(e,"replace all")])],Br("button",{name:"close",onclick:()=>tY(e),"aria-label":as(e,"close"),type:"button"},["×"])])}commit(){let e=new JK({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});e.eq(this.query)||(this.query=e,this.view.dispatch({effects:LP.of(e)}))}keydown(e){hye(this.view,e,"search-panel")?e.preventDefault():e.keyCode==13&&e.target==this.searchField?(e.preventDefault(),(e.shiftKey?ZA:QA)(this.view)):e.keyCode==13&&e.target==this.replaceField&&(e.preventDefault(),M9(this.view))}update(e){for(let n of e.transactions)for(let i of n.effects)i.is(LP)&&!i.value.eq(this.query)&&this.setQuery(i.value)}setQuery(e){this.query=e,this.searchField.value=e.search,this.replaceField.value=e.replace,this.caseField.checked=e.caseSensitive,this.reField.checked=e.regexp,this.wordField.checked=e.wholeWord}mount(){this.searchField.select()}get pos(){return 80}get top(){return this.view.state.facet(Tg).top}}function as(t,e){return t.state.phrase(e)}const pw=30,hw=/[\s\.,:;?!]/;function Jj(t,{from:e,to:n}){let i=t.state.doc.lineAt(e),a=t.state.doc.lineAt(n).to,o=Math.max(i.from,e-pw),r=Math.min(a,n+pw),s=t.state.sliceDoc(o,r);if(o!=i.from){for(let c=0;cs.length-pw;c--)if(!hw.test(s[c-1])&&hw.test(s[c])){s=s.slice(0,c);break}}return it.announce.of(`${t.state.phrase("current match")}. ${s} ${t.state.phrase("on line")} ${i.number}.`)}const dPe=it.baseTheme({".cm-panel.cm-search":{padding:"2px 6px 4px",position:"relative","& [name=close]":{position:"absolute",top:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:0,margin:0},"& input, & button, & label":{margin:".2em .6em .2em 0"},"& input[type=checkbox]":{marginRight:".2em"},"& label":{fontSize:"80%",whiteSpace:"pre"}},"&light .cm-searchMatch":{backgroundColor:"#ffff0054"},"&dark .cm-searchMatch":{backgroundColor:"#00ffff8a"},"&light .cm-searchMatch-selected":{backgroundColor:"#ff6a0054"},"&dark .cm-searchMatch-selected":{backgroundColor:"#ff00ff8a"}}),mPe=[$f,Ah.low(lPe),dPe];class rY{constructor(e,n,i,a){this.state=e,this.pos=n,this.explicit=i,this.view=a,this.abortListeners=[],this.abortOnDocChange=!1}tokenBefore(e){let n=Ei(this.state).resolveInner(this.pos,-1);for(;n&&e.indexOf(n.name)<0;)n=n.parent;return n?{from:n.from,to:this.pos,text:this.state.sliceDoc(n.from,this.pos),type:n.type}:null}matchBefore(e){let n=this.state.doc.lineAt(this.pos),i=Math.max(n.from,this.pos-250),a=n.text.slice(i-n.from,this.pos-n.from),o=a.search(nY(e,!1));return o<0?null:{from:i+o,to:this.pos,text:a.slice(o)}}get aborted(){return this.abortListeners==null}addEventListener(e,n,i){e=="abort"&&this.abortListeners&&(this.abortListeners.push(n),i&&i.onDocChange&&(this.abortOnDocChange=!0))}}function R9(t){let e=Object.keys(t).join(""),n=/\w/.test(e);return n&&(e=e.replace(/\w/g,"")),`[${n?"\\w":""}${e.replace(/[^\w\s]/g,"\\$&")}]`}function yPe(t){let e=Object.create(null),n=Object.create(null);for(let{label:a}of t){e[a[0]]=!0;for(let o=1;otypeof a=="string"?{label:a}:a),[n,i]=e.every(a=>/^\w+$/.test(a.label))?[/\w*$/,/\w+$/]:yPe(e);return a=>{let o=a.matchBefore(i);return o||a.explicit?{from:o?o.from:a.pos,options:e,validFor:n}:null}}class N9{constructor(e,n,i,a){this.completion=e,this.source=n,this.match=i,this.score=a}}function Af(t){return t.selection.main.from}function nY(t,e){var n;let{source:i}=t,a=e&&i[0]!="^",o=i[i.length-1]!="$";return!a&&!o?t:new RegExp(`${a?"^":""}(?:${i})${o?"$":""}`,(n=t.flags)!==null&&n!==void 0?n:t.ignoreCase?"i":"")}const iY=Jl.define();function vPe(t,e,n,i){let{main:a}=t.selection,o=n-a.from,r=i-a.from;return Object.assign(Object.assign({},t.changeByRange(s=>{if(s!=a&&n!=i&&t.sliceDoc(s.from+o,s.from+r)!=t.sliceDoc(n,i))return{range:s};let c=t.toText(e);return{changes:{from:s.from+o,to:i==a.from?s.to:s.from+r,insert:c},range:Ve.cursor(s.from+o+c.length)}})),{scrollIntoView:!0,userEvent:"input.complete"})}const L9=new WeakMap;function PPe(t){if(!Array.isArray(t))return t;let e=L9.get(t);return e||L9.set(t,e=gPe(t)),e}const XA=Nt.define(),FP=Nt.define();class bPe{constructor(e){this.pattern=e,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[],this.score=0,this.matched=[];for(let n=0;n=48&&x<=57||x>=97&&x<=122?2:x>=65&&x<=90?1:0:(E=_j(x))!=E.toLowerCase()?1:E!=E.toUpperCase()?2:0;(!P||j==1&&b||_==0&&j!=0)&&(n[f]==x||i[f]==x&&(h=!0)?r[f++]=P:r.length&&(v=!1)),_=j,P+=Ys(x)}return f==c&&r[0]==0&&v?this.result(-100+(h?-200:0),r,e):d==c&&m==0?this.ret(-200-e.length+(g==e.length?0:-100),[0,g]):s>-1?this.ret(-700-e.length,[s,s+this.pattern.length]):d==c?this.ret(-900-e.length,[m,g]):f==c?this.result(-100+(h?-200:0)+-700+(v?0:-1100),r,e):n.length==2?null:this.result((a[0]?-700:0)+-200+-1100,a,e)}result(e,n,i){let a=[],o=0;for(let r of n){let s=r+(this.astral?Ys(Ai(i,r)):1);o&&a[o-1]==r?a[o-1]=s:(a[o++]=r,a[o++]=s)}return this.ret(e-i.length,a)}}class wPe{constructor(e){this.pattern=e,this.matched=[],this.score=0,this.folded=e.toLowerCase()}match(e){if(e.length!1,activateOnTypingDelay:100,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,tooltipClass:()=>"",optionClass:()=>"",aboveCursor:!1,icons:!0,addToOptions:[],positionInfo:$Pe,filterStrict:!1,compareCompletions:(e,n)=>e.label.localeCompare(n.label),interactionDelay:75,updateSyncTime:100},{defaultKeymap:(e,n)=>e&&n,closeOnBlur:(e,n)=>e&&n,icons:(e,n)=>e&&n,tooltipClass:(e,n)=>i=>F9(e(i),n(i)),optionClass:(e,n)=>i=>F9(e(i),n(i)),addToOptions:(e,n)=>e.concat(n),filterStrict:(e,n)=>e||n})}});function F9(t,e){return t?e?t+" "+e:t:e}function $Pe(t,e,n,i,a,o){let r=t.textDirection==rn.RTL,s=r,c=!1,l="top",u,f,h=e.left-a.left,d=a.right-e.right,m=i.right-i.left,g=i.bottom-i.top;if(s&&h=g||P>e.top?u=n.bottom-e.top:(l="bottom",u=e.bottom-n.top)}let b=(e.bottom-e.top)/o.offsetHeight,v=(e.right-e.left)/o.offsetWidth;return{style:`${l}: ${u/b}px; max-width: ${f/v}px`,class:"cm-completionInfo-"+(c?r?"left-narrow":"right-narrow":s?"left":"right")}}function APe(t){let e=t.addToOptions.slice();return t.icons&&e.push({render(n){let i=document.createElement("div");return i.classList.add("cm-completionIcon"),n.type&&i.classList.add(...n.type.split(/\s+/g).map(a=>"cm-completionIcon-"+a)),i.setAttribute("aria-hidden","true"),i},position:20}),e.push({render(n,i,a,o){let r=document.createElement("span");r.className="cm-completionLabel";let s=n.displayLabel||n.label,c=0;for(let l=0;lc&&r.appendChild(document.createTextNode(s.slice(c,u)));let h=r.appendChild(document.createElement("span"));h.appendChild(document.createTextNode(s.slice(u,f))),h.className="cm-completionMatchedText",c=f}return cn.position-i.position).map(n=>n.render)}function eO(t,e,n){if(t<=n)return{from:0,to:t};if(e<0&&(e=0),e<=t>>1){let a=Math.floor(e/n);return{from:a*n,to:(a+1)*n}}let i=Math.floor((t-e)/n);return{from:t-(i+1)*n,to:t-i*n}}class SPe{constructor(e,n,i){this.view=e,this.stateField=n,this.applyCompletion=i,this.info=null,this.infoDestroy=null,this.placeInfoReq={read:()=>this.measureInfo(),write:c=>this.placeInfo(c),key:this},this.space=null,this.currentClass="";let a=e.state.field(n),{options:o,selected:r}=a.open,s=e.state.facet(xi);this.optionContent=APe(s),this.optionClass=s.optionClass,this.tooltipClass=s.tooltipClass,this.range=eO(o.length,r,s.maxRenderedOptions),this.dom=document.createElement("div"),this.dom.className="cm-tooltip-autocomplete",this.updateTooltipClass(e.state),this.dom.addEventListener("mousedown",c=>{let{options:l}=e.state.field(n).open;for(let u=c.target,f;u&&u!=this.dom;u=u.parentNode)if(u.nodeName=="LI"&&(f=/-(\d+)$/.exec(u.id))&&+f[1]{let l=e.state.field(this.stateField,!1);l&&l.tooltip&&e.state.facet(xi).closeOnBlur&&c.relatedTarget!=e.contentDOM&&e.dispatch({effects:FP.of(null)})}),this.showOptions(o,a.id)}mount(){this.updateSel()}showOptions(e,n){this.list&&this.list.remove(),this.list=this.dom.appendChild(this.createListBox(e,n,this.range)),this.list.addEventListener("scroll",()=>{this.info&&this.view.requestMeasure(this.placeInfoReq)})}update(e){var n;let i=e.state.field(this.stateField),a=e.startState.field(this.stateField);if(this.updateTooltipClass(e.state),i!=a){let{options:o,selected:r,disabled:s}=i.open;(!a.open||a.open.options!=o)&&(this.range=eO(o.length,r,e.state.facet(xi).maxRenderedOptions),this.showOptions(o,i.id)),this.updateSel(),s!=((n=a.open)===null||n===void 0?void 0:n.disabled)&&this.dom.classList.toggle("cm-tooltip-autocomplete-disabled",!!s)}}updateTooltipClass(e){let n=this.tooltipClass(e);if(n!=this.currentClass){for(let i of this.currentClass.split(" "))i&&this.dom.classList.remove(i);for(let i of n.split(" "))i&&this.dom.classList.add(i);this.currentClass=n}}positioned(e){this.space=e,this.info&&this.view.requestMeasure(this.placeInfoReq)}updateSel(){let e=this.view.state.field(this.stateField),n=e.open;if((n.selected>-1&&n.selected=this.range.to)&&(this.range=eO(n.options.length,n.selected,this.view.state.facet(xi).maxRenderedOptions),this.showOptions(n.options,e.id)),this.updateSelectedOption(n.selected)){this.destroyInfo();let{completion:i}=n.options[n.selected],{info:a}=i;if(!a)return;let o=typeof a=="string"?document.createTextNode(a):a(i);if(!o)return;"then"in o?o.then(r=>{r&&this.view.state.field(this.stateField,!1)==e&&this.addInfoPane(r,i)}).catch(r=>pa(this.view.state,r,"completion info")):this.addInfoPane(o,i)}}addInfoPane(e,n){this.destroyInfo();let i=this.info=document.createElement("div");if(i.className="cm-tooltip cm-completionInfo",e.nodeType!=null)i.appendChild(e),this.infoDestroy=null;else{let{dom:a,destroy:o}=e;i.appendChild(a),this.infoDestroy=o||null}this.dom.appendChild(i),this.view.requestMeasure(this.placeInfoReq)}updateSelectedOption(e){let n=null;for(let i=this.list.firstChild,a=this.range.from;i;i=i.nextSibling,a++)i.nodeName!="LI"||!i.id?a--:a==e?i.hasAttribute("aria-selected")||(i.setAttribute("aria-selected","true"),n=i):i.hasAttribute("aria-selected")&&i.removeAttribute("aria-selected");return n&&xPe(this.list,n),n}measureInfo(){let e=this.dom.querySelector("[aria-selected]");if(!e||!this.info)return null;let n=this.dom.getBoundingClientRect(),i=this.info.getBoundingClientRect(),a=e.getBoundingClientRect(),o=this.space;if(!o){let r=this.dom.ownerDocument.defaultView||window;o={left:0,top:0,right:r.innerWidth,bottom:r.innerHeight}}return a.top>Math.min(o.bottom,n.bottom)-10||a.bottomi.from||i.from==0))if(o=h,typeof l!="string"&&l.header)a.appendChild(l.header(l));else{let d=a.appendChild(document.createElement("completion-section"));d.textContent=h}}const u=a.appendChild(document.createElement("li"));u.id=n+"-"+r,u.setAttribute("role","option");let f=this.optionClass(s);f&&(u.className=f);for(let h of this.optionContent){let d=h(s,this.view.state,this.view,c);d&&u.appendChild(d)}}return i.from&&a.classList.add("cm-completionListIncompleteTop"),i.tonew SPe(n,t,e)}function xPe(t,e){let n=t.getBoundingClientRect(),i=e.getBoundingClientRect(),a=n.height/t.offsetHeight;i.topn.bottom&&(t.scrollTop+=(i.bottom-n.bottom)/a)}function q9(t){return(t.boost||0)*100+(t.apply?10:0)+(t.info?5:0)+(t.type?1:0)}function DPe(t,e){let n=[],i=null,a=l=>{n.push(l);let{section:u}=l.completion;if(u){i||(i=[]);let f=typeof u=="string"?u:u.name;i.some(h=>h.name==f)||i.push(typeof u=="string"?{name:f}:u)}},o=e.facet(xi);for(let l of t)if(l.hasResult()){let u=l.result.getMatch;if(l.result.filter===!1)for(let f of l.result.options)a(new N9(f,l.source,u?u(f):[],1e9-n.length));else{let f=e.sliceDoc(l.from,l.to),h,d=o.filterStrict?new wPe(f):new bPe(f);for(let m of l.result.options)if(h=d.match(m.label)){let g=m.displayLabel?u?u(m,h.matched):[]:h.matched;a(new N9(m,l.source,g,h.score+(m.boost||0)))}}}if(i){let l=Object.create(null),u=0,f=(h,d)=>{var m,g;return((m=h.rank)!==null&&m!==void 0?m:1e9)-((g=d.rank)!==null&&g!==void 0?g:1e9)||(h.namef.score-u.score||c(u.completion,f.completion))){let u=l.completion;!s||s.label!=u.label||s.detail!=u.detail||s.type!=null&&u.type!=null&&s.type!=u.type||s.apply!=u.apply||s.boost!=u.boost?r.push(l):q9(l.completion)>q9(s)&&(r[r.length-1]=l),s=l.completion}return r}class Fd{constructor(e,n,i,a,o,r){this.options=e,this.attrs=n,this.tooltip=i,this.timestamp=a,this.selected=o,this.disabled=r}setSelected(e,n){return e==this.selected||e>=this.options.length?this:new Fd(this.options,z9(n,e),this.tooltip,this.timestamp,e,this.disabled)}static build(e,n,i,a,o){let r=DPe(e,n);if(!r.length)return a&&e.some(c=>c.state==1)?new Fd(a.options,a.attrs,a.tooltip,a.timestamp,a.selected,!0):null;let s=n.facet(xi).selectOnOpen?0:-1;if(a&&a.selected!=s&&a.selected!=-1){let c=a.options[a.selected].completion;for(let l=0;ll.hasResult()?Math.min(c,l.from):c,1e8),create:TPe,above:o.aboveCursor},a?a.timestamp:Date.now(),s,!1)}map(e){return new Fd(this.options,this.attrs,Object.assign(Object.assign({},this.tooltip),{pos:e.mapPos(this.tooltip.pos)}),this.timestamp,this.selected,this.disabled)}}class eS{constructor(e,n,i){this.active=e,this.id=n,this.open=i}static start(){return new eS(IPe,"cm-ac-"+Math.floor(Math.random()*2e6).toString(36),null)}update(e){let{state:n}=e,i=n.facet(xi),o=(i.override||n.languageDataAt("autocomplete",Af(n)).map(PPe)).map(s=>(this.active.find(l=>l.source==s)||new cs(s,this.active.some(l=>l.state!=0)?1:0)).update(e,i));o.length==this.active.length&&o.every((s,c)=>s==this.active[c])&&(o=this.active);let r=this.open;r&&e.docChanged&&(r=r.map(e.changes)),e.selection||o.some(s=>s.hasResult()&&e.changes.touchesRange(s.from,s.to))||!kPe(o,this.active)?r=Fd.build(o,n,this.id,r,i):r&&r.disabled&&!o.some(s=>s.state==1)&&(r=null),!r&&o.every(s=>s.state!=1)&&o.some(s=>s.hasResult())&&(o=o.map(s=>s.hasResult()?new cs(s.source,0):s));for(let s of e.effects)s.is(oY)&&(r=r&&r.setSelected(s.value,this.id));return o==this.active&&r==this.open?this:new eS(o,this.id,r)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:this.active.length?OPe:EPe}}function kPe(t,e){if(t==e)return!0;for(let n=0,i=0;;){for(;n-1&&(n["aria-activedescendant"]=t+"-"+e),n}const IPe=[];function aY(t,e){if(t.isUserEvent("input.complete")){let i=t.annotation(iY);if(i&&e.activateOnCompletion(i))return 12}let n=t.isUserEvent("input.type");return n&&e.activateOnTyping?5:n?1:t.isUserEvent("delete.backward")?2:t.selection?8:t.docChanged?16:0}class cs{constructor(e,n,i=-1){this.source=e,this.state=n,this.explicitPos=i}hasResult(){return!1}update(e,n){let i=aY(e,n),a=this;(i&8||i&16&&this.touches(e))&&(a=new cs(a.source,0)),i&4&&a.state==0&&(a=new cs(this.source,1)),a=a.updateFor(e,i);for(let o of e.effects)if(o.is(XA))a=new cs(a.source,1,o.value?Af(e.state):-1);else if(o.is(FP))a=new cs(a.source,0);else if(o.is(sY))for(let r of o.value)r.source==a.source&&(a=r);return a}updateFor(e,n){return this.map(e.changes)}map(e){return e.empty||this.explicitPos<0?this:new cs(this.source,this.state,e.mapPos(this.explicitPos))}touches(e){return e.changes.touchesRange(Af(e.state))}}class nm extends cs{constructor(e,n,i,a,o){super(e,2,n),this.result=i,this.from=a,this.to=o}hasResult(){return!0}updateFor(e,n){var i;if(!(n&3))return this.map(e.changes);let a=this.result;a.map&&!e.changes.empty&&(a=a.map(a,e.changes));let o=e.changes.mapPos(this.from),r=e.changes.mapPos(this.to,1),s=Af(e.state);if((this.explicitPos<0?s<=o:sr||!a||n&2&&Af(e.startState)==this.from)return new cs(this.source,n&4?1:0);let c=this.explicitPos<0?-1:e.changes.mapPos(this.explicitPos);return CPe(a.validFor,e.state,o,r)?new nm(this.source,c,a,o,r):a.update&&(a=a.update(a,o,r,new rY(e.state,s,c>=0)))?new nm(this.source,c,a,a.from,(i=a.to)!==null&&i!==void 0?i:Af(e.state)):new cs(this.source,1,c)}map(e){return e.empty?this:(this.result.map?this.result.map(this.result,e):this.result)?new nm(this.source,this.explicitPos<0?-1:e.mapPos(this.explicitPos),this.result,e.mapPos(this.from),e.mapPos(this.to,1)):new cs(this.source,0)}touches(e){return e.changes.touchesRange(this.from,this.to)}}function CPe(t,e,n,i){if(!t)return!1;let a=e.sliceDoc(n,i);return typeof t=="function"?t(a,n,i,e):nY(t,!0).test(a)}const sY=Nt.define({map(t,e){return t.map(n=>n.map(e))}}),oY=Nt.define(),za=ii.define({create(){return eS.start()},update(t,e){return t.update(e)},provide:t=>[a_.from(t,e=>e.tooltip),it.contentAttributes.from(t,e=>e.attrs)]});function Qj(t,e){const n=e.completion.apply||e.completion.label;let i=t.state.field(za).active.find(a=>a.source==e.source);return i instanceof nm?(typeof n=="string"?t.dispatch(Object.assign(Object.assign({},vPe(t.state,n,i.from,i.to)),{annotations:iY.of(e.completion)})):n(t,e.completion,i.from,i.to),!0):!1}const TPe=_Pe(za,Qj);function dw(t,e="option"){return n=>{let i=n.state.field(za,!1);if(!i||!i.open||i.open.disabled||Date.now()-i.open.timestamp-1?i.open.selected+a*(t?1:-1):t?0:r-1;return s<0?s=e=="page"?0:r-1:s>=r&&(s=e=="page"?r-1:0),n.dispatch({effects:oY.of(s)}),!0}}const jPe=t=>{let e=t.state.field(za,!1);return t.state.readOnly||!e||!e.open||e.open.selected<0||e.open.disabled||Date.now()-e.open.timestampt.state.field(za,!1)?(t.dispatch({effects:XA.of(!0)}),!0):!1,MPe=t=>{let e=t.state.field(za,!1);return!e||!e.active.some(n=>n.state!=0)?!1:(t.dispatch({effects:FP.of(null)}),!0)};class RPe{constructor(e,n){this.active=e,this.context=n,this.time=Date.now(),this.updates=[],this.done=void 0}}const NPe=50,LPe=1e3,FPe=$n.fromClass(class{constructor(t){this.view=t,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.pendingStart=!1,this.composing=0;for(let e of t.state.field(za).active)e.state==1&&this.startQuery(e)}update(t){let e=t.state.field(za),n=t.state.facet(xi);if(!t.selectionSet&&!t.docChanged&&t.startState.field(za)==e)return;let i=t.transactions.some(o=>{let r=aY(o,n);return r&8||(o.selection||o.docChanged)&&!(r&3)});for(let o=0;oNPe&&Date.now()-r.time>LPe){for(let s of r.context.abortListeners)try{s()}catch(c){pa(this.view.state,c)}r.context.abortListeners=null,this.running.splice(o--,1)}else r.updates.push(...t.transactions)}this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),t.transactions.some(o=>o.effects.some(r=>r.is(XA)))&&(this.pendingStart=!0);let a=this.pendingStart?50:n.activateOnTypingDelay;if(this.debounceUpdate=e.active.some(o=>o.state==1&&!this.running.some(r=>r.active.source==o.source))?setTimeout(()=>this.startUpdate(),a):-1,this.composing!=0)for(let o of t.transactions)o.isUserEvent("input.type")?this.composing=2:this.composing==2&&o.selection&&(this.composing=3)}startUpdate(){this.debounceUpdate=-1,this.pendingStart=!1;let{state:t}=this.view,e=t.field(za);for(let n of e.active)n.state==1&&!this.running.some(i=>i.active.source==n.source)&&this.startQuery(n)}startQuery(t){let{state:e}=this.view,n=Af(e),i=new rY(e,n,t.explicitPos==n,this.view),a=new RPe(t,i);this.running.push(a),Promise.resolve(t.source(i)).then(o=>{a.context.aborted||(a.done=o||null,this.scheduleAccept())},o=>{this.view.dispatch({effects:FP.of(null)}),pa(this.view.state,o)})}scheduleAccept(){this.running.every(t=>t.done!==void 0)?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(xi).updateSyncTime))}accept(){var t;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let e=[],n=this.view.state.facet(xi);for(let i=0;ir.source==a.active.source);if(o&&o.state==1)if(a.done==null){let r=new cs(a.active.source,0);for(let s of a.updates)r=r.update(s,n);r.state!=1&&e.push(r)}else this.startQuery(o)}e.length&&this.view.dispatch({effects:sY.of(e)})}},{eventHandlers:{blur(t){let e=this.view.state.field(za,!1);if(e&&e.tooltip&&this.view.state.facet(xi).closeOnBlur){let n=e.open&&LG(this.view,e.open.tooltip);(!n||!n.dom.contains(t.relatedTarget))&&setTimeout(()=>this.view.dispatch({effects:FP.of(null)}),10)}},compositionstart(){this.composing=1},compositionend(){this.composing==3&&setTimeout(()=>this.view.dispatch({effects:XA.of(!1)}),20),this.composing=0}}}),qPe=typeof navigator=="object"&&/Win/.test(navigator.platform),zPe=Ah.highest(it.domEventHandlers({keydown(t,e){let n=e.state.field(za,!1);if(!n||!n.open||n.open.disabled||n.open.selected<0||t.key.length>1||t.ctrlKey&&!(qPe&&t.altKey)||t.metaKey)return!1;let i=n.open.options[n.open.selected],a=n.active.find(r=>r.source==i.source),o=i.completion.commitCharacters||a.result.commitCharacters;return o&&o.indexOf(t.key)>-1&&Qj(e,i),!1}})),UPe=it.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",height:"100%",listStyle:"none",margin:0,padding:0,"& > li, & > completion-section":{padding:"1px 3px",lineHeight:1.2},"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer"},"& > completion-section":{display:"list-item",borderBottom:"1px solid silver",paddingLeft:"0.5em",opacity:.7}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#777"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#444"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"···"',opacity:.5,display:"block",textAlign:"center"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"400px",boxSizing:"border-box",whiteSpace:"pre-line"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},".cm-completionInfo.cm-completionInfo-left-narrow":{right:"30px"},".cm-completionInfo.cm-completionInfo-right-narrow":{left:"30px"},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",display:"inline-block",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6",boxSizing:"content-box"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'ƒ'"}},".cm-completionIcon-class":{"&:after":{content:"'○'"}},".cm-completionIcon-interface":{"&:after":{content:"'◌'"}},".cm-completionIcon-variable":{"&:after":{content:"'𝑥'"}},".cm-completionIcon-constant":{"&:after":{content:"'𝐶'"}},".cm-completionIcon-type":{"&:after":{content:"'𝑡'"}},".cm-completionIcon-enum":{"&:after":{content:"'∪'"}},".cm-completionIcon-property":{"&:after":{content:"'□'"}},".cm-completionIcon-keyword":{"&:after":{content:"'🔑︎'"}},".cm-completionIcon-namespace":{"&:after":{content:"'▢'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}}),qP={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},xp=Nt.define({map(t,e){let n=e.mapPos(t,-1,ua.TrackAfter);return n??void 0}}),Zj=new class extends ah{};Zj.startSide=1;Zj.endSide=-1;const lY=ii.define({create(){return rr.empty},update(t,e){if(t=t.map(e.changes),e.selection){let n=e.state.doc.lineAt(e.selection.main.head);t=t.update({filter:i=>i>=n.from&&i<=n.to})}for(let n of e.effects)n.is(xp)&&(t=t.update({add:[Zj.range(n.value,n.value+1)]}));return t}});function BPe(){return[WPe,lY]}const tO="()[]{}<>";function cY(t){for(let e=0;e{if((VPe?t.composing:t.compositionStarted)||t.state.readOnly)return!1;let a=t.state.selection.main;if(i.length>2||i.length==2&&Ys(Ai(i,0))==1||e!=a.from||n!=a.to)return!1;let o=KPe(t.state,i);return o?(t.dispatch(o),!0):!1}),HPe=({state:t,dispatch:e})=>{if(t.readOnly)return!1;let i=uY(t,t.selection.main.head).brackets||qP.brackets,a=null,o=t.changeByRange(r=>{if(r.empty){let s=YPe(t.doc,r.head);for(let c of i)if(c==s&&m_(t.doc,r.head)==cY(Ai(c,0)))return{changes:{from:r.head-c.length,to:r.head+c.length},range:Ve.cursor(r.head-c.length)}}return{range:a=r}});return a||e(t.update(o,{scrollIntoView:!0,userEvent:"delete.backward"})),!a},GPe=[{key:"Backspace",run:HPe}];function KPe(t,e){let n=uY(t,t.selection.main.head),i=n.brackets||qP.brackets;for(let a of i){let o=cY(Ai(a,0));if(e==a)return o==a?ZPe(t,a,i.indexOf(a+a+a)>-1,n):JPe(t,a,o,n.before||qP.before);if(e==o&&fY(t,t.selection.main.from))return QPe(t,a,o)}return null}function fY(t,e){let n=!1;return t.field(lY).between(0,t.doc.length,i=>{i==e&&(n=!0)}),n}function m_(t,e){let n=t.sliceString(e,e+2);return n.slice(0,Ys(Ai(n,0)))}function YPe(t,e){let n=t.sliceString(e-2,e);return Ys(Ai(n,0))==n.length?n:n.slice(1)}function JPe(t,e,n,i){let a=null,o=t.changeByRange(r=>{if(!r.empty)return{changes:[{insert:e,from:r.from},{insert:n,from:r.to}],effects:xp.of(r.to+e.length),range:Ve.range(r.anchor+e.length,r.head+e.length)};let s=m_(t.doc,r.head);return!s||/\s/.test(s)||i.indexOf(s)>-1?{changes:{insert:e+n,from:r.head},effects:xp.of(r.head+e.length),range:Ve.cursor(r.head+e.length)}:{range:a=r}});return a?null:t.update(o,{scrollIntoView:!0,userEvent:"input.type"})}function QPe(t,e,n){let i=null,a=t.changeByRange(o=>o.empty&&m_(t.doc,o.head)==n?{changes:{from:o.head,to:o.head+n.length,insert:n},range:Ve.cursor(o.head+n.length)}:i={range:o});return i?null:t.update(a,{scrollIntoView:!0,userEvent:"input.type"})}function ZPe(t,e,n,i){let a=i.stringPrefixes||qP.stringPrefixes,o=null,r=t.changeByRange(s=>{if(!s.empty)return{changes:[{insert:e,from:s.from},{insert:e,from:s.to}],effects:xp.of(s.to+e.length),range:Ve.range(s.anchor+e.length,s.head+e.length)};let c=s.head,l=m_(t.doc,c),u;if(l==e){if(B9(t,c))return{changes:{insert:e+e,from:c},effects:xp.of(c+e.length),range:Ve.cursor(c+e.length)};if(fY(t,c)){let h=n&&t.sliceDoc(c,c+e.length*3)==e+e+e?e+e+e:e;return{changes:{from:c,to:c+h.length,insert:h},range:Ve.cursor(c+h.length)}}}else{if(n&&t.sliceDoc(c-2*e.length,c)==e+e&&(u=V9(t,c-2*e.length,a))>-1&&B9(t,u))return{changes:{insert:e+e+e+e,from:c},effects:xp.of(c+e.length),range:Ve.cursor(c+e.length)};if(t.charCategorizer(c)(l)!=cn.Word&&V9(t,c,a)>-1&&!XPe(t,c,e,a))return{changes:{insert:e+e,from:c},effects:xp.of(c+e.length),range:Ve.cursor(c+e.length)}}return{range:o=s}});return o?null:t.update(r,{scrollIntoView:!0,userEvent:"input.type"})}function B9(t,e){let n=Ei(t).resolveInner(e+1);return n.parent&&n.from==e}function XPe(t,e,n,i){let a=Ei(t).resolveInner(e,-1),o=i.reduce((r,s)=>Math.max(r,s.length),0);for(let r=0;r<5;r++){let s=t.sliceDoc(a.from,Math.min(a.to,a.from+n.length+o)),c=s.indexOf(n);if(!c||c>-1&&i.indexOf(s.slice(0,c))>-1){let u=a.firstChild;for(;u&&u.from==a.from&&u.to-u.from>n.length+c;){if(t.sliceDoc(u.to-n.length,u.to)==n)return!1;u=u.firstChild}return!0}let l=a.to==e&&a.parent;if(!l)break;a=l}return!1}function V9(t,e,n){let i=t.charCategorizer(e);if(i(t.sliceDoc(e-1,e))!=cn.Word)return e;for(let a of n){let o=e-a.length;if(t.sliceDoc(o,e)==a&&i(t.sliceDoc(o-1,o))!=cn.Word)return o}return-1}function ebe(t={}){return[zPe,za,xi.of(t),FPe,tbe,UPe]}const pY=[{key:"Ctrl-Space",run:U9},{mac:"Alt-`",run:U9},{key:"Escape",run:MPe},{key:"ArrowDown",run:dw(!0)},{key:"ArrowUp",run:dw(!1)},{key:"PageDown",run:dw(!0,"page")},{key:"PageUp",run:dw(!1,"page")},{key:"Enter",run:jPe}],tbe=Ah.highest(i_.computeN([xi],t=>t.facet(xi).defaultKeymap?[pY]:[]));var W9=function(e){e===void 0&&(e={});var{crosshairCursor:n=!1}=e,i=[];e.closeBracketsKeymap!==!1&&(i=i.concat(GPe)),e.defaultKeymap!==!1&&(i=i.concat(qve)),e.searchKeymap!==!1&&(i=i.concat(pPe)),e.historyKeymap!==!1&&(i=i.concat(K0e)),e.foldKeymap!==!1&&(i=i.concat(Fge)),e.completionKeymap!==!1&&(i=i.concat(pY)),e.lintKeymap!==!1&&(i=i.concat(g0e));var a=[];return e.lineNumbers!==!1&&a.push(fge()),e.highlightActiveLineGutter!==!1&&a.push(dge()),e.highlightSpecialChars!==!1&&a.push(Eye()),e.history!==!1&&a.push(F0e()),e.foldGutter!==!1&&a.push(Bge()),e.drawSelection!==!1&&a.push(Pye()),e.dropCursor!==!1&&a.push(Sye()),e.allowMultipleSelections!==!1&&a.push(ar.allowMultipleSelections.of(!0)),e.indentOnInput!==!1&&a.push(Oge()),e.syntaxHighlighting!==!1&&a.push(tK(Gge,{fallback:!0})),e.bracketMatching!==!1&&a.push(e0e()),e.closeBrackets!==!1&&a.push(BPe()),e.autocompletion!==!1&&a.push(ebe()),e.rectangularSelection!==!1&&a.push(Vye()),n!==!1&&a.push(Gye()),e.highlightActiveLine!==!1&&a.push(Rye()),e.highlightSelectionMatches!==!1&&a.push(Gve()),e.tabSize&&typeof e.tabSize=="number"&&a.push(o_.of(" ".repeat(e.tabSize))),a.concat([i_.of(i.flat())]).filter(Boolean)};const rbe="#e5c07b",H9="#e06c75",nbe="#56b6c2",ibe="#ffffff",x$="#abb2bf",yC="#7d8799",abe="#61afef",sbe="#98c379",G9="#d19a66",obe="#c678dd",lbe="#21252b",K9="#2c313a",Y9="#282c34",rO="#353a42",cbe="#3E4451",J9="#528bff",ube=it.theme({"&":{color:x$,backgroundColor:Y9},".cm-content":{caretColor:J9},".cm-cursor, .cm-dropCursor":{borderLeftColor:J9},"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:cbe},".cm-panels":{backgroundColor:lbe,color:x$},".cm-panels.cm-panels-top":{borderBottom:"2px solid black"},".cm-panels.cm-panels-bottom":{borderTop:"2px solid black"},".cm-searchMatch":{backgroundColor:"#72a1ff59",outline:"1px solid #457dff"},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:"#6199ff2f"},".cm-activeLine":{backgroundColor:"#6699ff0b"},".cm-selectionMatch":{backgroundColor:"#aafe661a"},"&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bad0f847"},".cm-gutters":{backgroundColor:Y9,color:yC,border:"none"},".cm-activeLineGutter":{backgroundColor:K9},".cm-foldPlaceholder":{backgroundColor:"transparent",border:"none",color:"#ddd"},".cm-tooltip":{border:"none",backgroundColor:rO},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:rO,borderBottomColor:rO},".cm-tooltip-autocomplete":{"& > ul > li[aria-selected]":{backgroundColor:K9,color:x$}}},{dark:!0}),fbe=fb.define([{tag:Te.keyword,color:obe},{tag:[Te.name,Te.deleted,Te.character,Te.propertyName,Te.macroName],color:H9},{tag:[Te.function(Te.variableName),Te.labelName],color:abe},{tag:[Te.color,Te.constant(Te.name),Te.standard(Te.name)],color:G9},{tag:[Te.definition(Te.name),Te.separator],color:x$},{tag:[Te.typeName,Te.className,Te.number,Te.changed,Te.annotation,Te.modifier,Te.self,Te.namespace],color:rbe},{tag:[Te.operator,Te.operatorKeyword,Te.url,Te.escape,Te.regexp,Te.link,Te.special(Te.string)],color:nbe},{tag:[Te.meta,Te.comment],color:yC},{tag:Te.strong,fontWeight:"bold"},{tag:Te.emphasis,fontStyle:"italic"},{tag:Te.strikethrough,textDecoration:"line-through"},{tag:Te.link,color:yC,textDecoration:"underline"},{tag:Te.heading,fontWeight:"bold",color:H9},{tag:[Te.atom,Te.bool,Te.special(Te.variableName)],color:G9},{tag:[Te.processingInstruction,Te.string,Te.inserted],color:sbe},{tag:Te.invalid,color:ibe}]),pbe=[ube,tK(fbe)];var hbe=it.theme({"&":{backgroundColor:"#fff"}},{dark:!1}),dbe=function(e){e===void 0&&(e={});var{indentWithTab:n=!0,editable:i=!0,readOnly:a=!1,theme:o="light",placeholder:r="",basicSetup:s=!0}=e,c=[];switch(n&&c.unshift(i_.of([zve])),s&&(typeof s=="boolean"?c.unshift(W9()):c.unshift(W9(s))),r&&c.unshift(qye(r)),o){case"light":c.push(hbe);break;case"dark":c.push(pbe);break;case"none":break;default:c.push(o);break}return i===!1&&c.push(it.editable.of(!1)),a&&c.push(ar.readOnly.of(!0)),[...c]},mbe=t=>({line:t.state.doc.lineAt(t.state.selection.main.from),lineCount:t.state.doc.lines,lineBreak:t.state.lineBreak,length:t.state.doc.length,readOnly:t.state.readOnly,tabSize:t.state.tabSize,selection:t.state.selection,selectionAsSingle:t.state.selection.asSingle().main,ranges:t.state.selection.ranges,selectionCode:t.state.sliceDoc(t.state.selection.main.from,t.state.selection.main.to),selections:t.state.selection.ranges.map(e=>t.state.sliceDoc(e.from,e.to)),selectedText:t.state.selection.ranges.some(e=>!e.empty)}),Q9=Jl.define(),ybe=[];function gbe(t){var{value:e,selection:n,onChange:i,onStatistics:a,onCreateEditor:o,onUpdate:r,extensions:s=ybe,autoFocus:c,theme:l="light",height:u=null,minHeight:f=null,maxHeight:h=null,width:d=null,minWidth:m=null,maxWidth:g=null,placeholder:b="",editable:v=!0,readOnly:P=!1,indentWithTab:A=!0,basicSetup:_=!0,root:x,initialState:E}=t,[j,F]=Be.useState(),[I,L]=Be.useState(),[V,q]=Be.useState(),S=it.theme({"&":{height:u,minHeight:f,maxHeight:h,width:d,minWidth:m,maxWidth:g},"& .cm-scroller":{height:"100% !important"}}),D=it.updateListener.of(H=>{if(H.docChanged&&typeof i=="function"&&!H.transactions.some(z=>z.annotation(Q9))){var X=H.state.doc,ae=X.toString();i(ae,H)}a&&a(mbe(H))}),R=dbe({theme:l,editable:v,readOnly:P,placeholder:b,indentWithTab:A,basicSetup:_}),C=[D,S,...R];return r&&typeof r=="function"&&C.push(it.updateListener.of(r)),C=C.concat(s),Be.useEffect(()=>{if(j&&!V){var H={doc:e,selection:n,extensions:C},X=E?ar.fromJSON(E.json,H,E.fields):ar.create(H);if(q(X),!I){var ae=new it({state:X,parent:j,root:x});L(ae),o&&o(ae,X)}}return()=>{I&&(q(void 0),L(void 0))}},[j,V]),Be.useEffect(()=>F(t.container),[t.container]),Be.useEffect(()=>()=>{I&&(I.destroy(),L(void 0))},[I]),Be.useEffect(()=>{c&&I&&I.focus()},[c,I]),Be.useEffect(()=>{I&&I.dispatch({effects:Nt.reconfigure.of(C)})},[l,s,u,f,h,d,m,g,b,v,P,A,_,i,r]),Be.useEffect(()=>{if(e!==void 0){var H=I?I.state.doc.toString():"";I&&e!==H&&I.dispatch({changes:{from:0,to:H.length,insert:e||""},annotations:[Q9.of(!0)]})}},[e,I]),{state:V,setState:q,view:I,setView:L,container:j,setContainer:F}}var vbe=["className","value","selection","extensions","onChange","onStatistics","onCreateEditor","onUpdate","autoFocus","theme","height","minHeight","maxHeight","width","minWidth","maxWidth","basicSetup","placeholder","indentWithTab","editable","readOnly","root","initialState"],hY=Be.forwardRef((t,e)=>{var{className:n,value:i="",selection:a,extensions:o=[],onChange:r,onStatistics:s,onCreateEditor:c,onUpdate:l,autoFocus:u,theme:f="light",height:h,minHeight:d,maxHeight:m,width:g,minWidth:b,maxWidth:v,basicSetup:P,placeholder:A,indentWithTab:_,editable:x,readOnly:E,root:j,initialState:F}=t,I=O0e(t,vbe),L=Be.useRef(null),{state:V,view:q,container:S}=gbe({container:L.current,root:j,value:i,autoFocus:u,theme:f,height:h,minHeight:d,maxHeight:m,width:g,minWidth:b,maxWidth:v,basicSetup:P,placeholder:A,indentWithTab:_,editable:x,readOnly:E,selection:a,onChange:r,onStatistics:s,onCreateEditor:c,onUpdate:l,extensions:o,initialState:F});if(Be.useImperativeHandle(e,()=>({editor:L.current,state:V,view:q}),[L,S,V,q]),typeof i!="string")throw new Error("value must be typeof string but got "+typeof i);var D=typeof f=="string"?"cm-theme-"+f:"cm-theme";return Lt.jsx("div",cC({ref:L,className:""+D+(n?" "+n:"")},I))});hY.displayName="CodeMirror";function dY(t){var e,n,i="";if(typeof t=="string"||typeof t=="number")i+=t;else if(typeof t=="object")if(Array.isArray(t)){var a=t.length;for(e=0;e-1}var Mbe=jbe,Rbe=y_;function Nbe(t,e){var n=this.__data__,i=Rbe(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this}var Lbe=Nbe,Fbe=wbe,qbe=Obe,zbe=Cbe,Ube=Mbe,Bbe=Lbe;function Mg(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e-1&&t%1==0&&t-1&&t%1==0&&t<=z$e}var iM=U$e,B$e=Sh,V$e=iM,W$e=Xl,H$e="[object Arguments]",G$e="[object Array]",K$e="[object Boolean]",Y$e="[object Date]",J$e="[object Error]",Q$e="[object Function]",Z$e="[object Map]",X$e="[object Number]",eAe="[object Object]",tAe="[object RegExp]",rAe="[object Set]",nAe="[object String]",iAe="[object WeakMap]",aAe="[object ArrayBuffer]",sAe="[object DataView]",oAe="[object Float32Array]",lAe="[object Float64Array]",cAe="[object Int8Array]",uAe="[object Int16Array]",fAe="[object Int32Array]",pAe="[object Uint8Array]",hAe="[object Uint8ClampedArray]",dAe="[object Uint16Array]",mAe="[object Uint32Array]",Qr={};Qr[oAe]=Qr[lAe]=Qr[cAe]=Qr[uAe]=Qr[fAe]=Qr[pAe]=Qr[hAe]=Qr[dAe]=Qr[mAe]=!0;Qr[H$e]=Qr[G$e]=Qr[aAe]=Qr[K$e]=Qr[sAe]=Qr[Y$e]=Qr[J$e]=Qr[Q$e]=Qr[Z$e]=Qr[X$e]=Qr[eAe]=Qr[tAe]=Qr[rAe]=Qr[nAe]=Qr[iAe]=!1;function yAe(t){return W$e(t)&&V$e(t.length)&&!!Qr[B$e(t)]}var gAe=yAe;function vAe(t){return function(e){return t(e)}}var xh=vAe,rS={exports:{}};rS.exports;(function(t,e){var n=mY,i=e&&!e.nodeType&&e,a=i&&!0&&t&&!t.nodeType&&t,o=a&&a.exports===i,r=o&&n.process,s=function(){try{var c=a&&a.require&&a.require("util").types;return c||r&&r.binding&&r.binding("util")}catch{}}();t.exports=s})(rS,rS.exports);var aM=rS.exports,PAe=gAe,bAe=xh,sz=aM,oz=sz&&sz.isTypedArray,wAe=oz?bAe(oz):PAe,sM=wAe,$Ae=S$e,AAe=w_,SAe=ws,_Ae=$_,xAe=A_,DAe=sM,kAe=Object.prototype,OAe=kAe.hasOwnProperty;function EAe(t,e){var n=SAe(t),i=!n&&AAe(t),a=!n&&!i&&_Ae(t),o=!n&&!i&&!a&&DAe(t),r=n||i||a||o,s=r?$Ae(t.length,String):[],c=s.length;for(var l in t)(e||OAe.call(t,l))&&!(r&&(l=="length"||a&&(l=="offset"||l=="parent")||o&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||xAe(l,c)))&&s.push(l);return s}var wY=EAe,IAe=Object.prototype;function CAe(t){var e=t&&t.constructor,n=typeof e=="function"&&e.prototype||IAe;return t===n}var oM=CAe;function TAe(t,e){return function(n){return t(e(n))}}var $Y=TAe,jAe=$Y,MAe=jAe(Object.keys,Object),RAe=MAe,NAe=oM,LAe=RAe,FAe=Object.prototype,qAe=FAe.hasOwnProperty;function zAe(t){if(!NAe(t))return LAe(t);var e=[];for(var n in Object(t))qAe.call(t,n)&&n!="constructor"&&e.push(n);return e}var UAe=zAe,BAe=Xj,VAe=iM;function WAe(t){return t!=null&&VAe(t.length)&&!BAe(t)}var qg=WAe,HAe=wY,GAe=UAe,KAe=qg;function YAe(t){return KAe(t)?HAe(t):GAe(t)}var yb=YAe,JAe=mb,QAe=yb;function ZAe(t,e){return t&&JAe(e,QAe(e),t)}var XAe=ZAe;function eSe(t){var e=[];if(t!=null)for(var n in Object(t))e.push(n);return e}var tSe=eSe,rSe=ll,nSe=oM,iSe=tSe,aSe=Object.prototype,sSe=aSe.hasOwnProperty;function oSe(t){if(!rSe(t))return iSe(t);var e=nSe(t),n=[];for(var i in t)i=="constructor"&&(e||!sSe.call(t,i))||n.push(i);return n}var lSe=oSe,cSe=wY,uSe=lSe,fSe=qg;function pSe(t){return fSe(t)?cSe(t,!0):uSe(t)}var zg=pSe,hSe=mb,dSe=zg;function mSe(t,e){return t&&hSe(e,dSe(e),t)}var ySe=mSe,nS={exports:{}};nS.exports;(function(t,e){var n=Zl,i=e&&!e.nodeType&&e,a=i&&!0&&t&&!t.nodeType&&t,o=a&&a.exports===i,r=o?n.Buffer:void 0,s=r?r.allocUnsafe:void 0;function c(l,u){if(u)return l.slice();var f=l.length,h=s?s(f):new l.constructor(f);return l.copy(h),h}t.exports=c})(nS,nS.exports);var AY=nS.exports;function gSe(t,e){var n=-1,i=t.length;for(e||(e=Array(i));++ns))return!1;var l=o.get(t),u=o.get(e);if(l&&u)return l==e&&u==t;var f=-1,h=!0,d=n&QDe?new GDe:void 0;for(o.set(t,e),o.set(e,t);++f0&&n(s)?e>1?FY(s,e-1,n,i,a):zke(a,s):i||(a[a.length]=s)}return a}var mM=FY;function Bke(t,e){for(var n=-1,i=t==null?0:t.length,a=Array(i);++ne||o&&r&&c&&!s&&!l||i&&r&&c||!n&&c||!a)return 1;if(!i&&!o&&!l&&t=s)return c;var l=n[i];return c*(l=="desc"?-1:1)}}return t.index-e.index}var oIe=sIe,oO=Dh,lIe=PM,cIe=REe,uIe=eIe,fIe=rIe,pIe=xh,hIe=oIe,dIe=vb,mIe=ws;function yIe(t,e,n){e.length?e=oO(e,function(o){return mIe(o)?function(r){return lIe(r,o.length===1?o[0]:o)}:o}):e=[dIe];var i=-1;e=oO(e,pIe(cIe));var a=uIe(t,function(o,r,s){var c=oO(e,function(l){return l(o)});return{criteria:c,index:++i,value:o}});return fIe(a,function(o,r){return hIe(o,r,n)})}var gIe=yIe;function vIe(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}var HY=vIe,PIe=HY,zz=Math.max;function bIe(t,e,n){return e=zz(e===void 0?t.length-1:e,0),function(){for(var i=arguments,a=-1,o=zz(i.length-e,0),r=Array(o);++a0){if(++e>=kIe)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var CIe=IIe,TIe=DIe,jIe=CIe,MIe=jIe(TIe),RIe=MIe,NIe=vb,LIe=wIe,FIe=RIe;function qIe(t,e){return FIe(LIe(t,e,NIe),t+"")}var kh=qIe,zIe=jg,UIe=qg,BIe=A_,VIe=ll;function WIe(t,e,n){if(!VIe(n))return!1;var i=typeof e;return(i=="number"?UIe(n)&&BIe(e,n.length):i=="string"&&e in n)?zIe(n[e],t):!1}var wM=WIe,HIe=mM,GIe=gIe,KIe=kh,Bz=wM,YIe=KIe(function(t,e){if(t==null)return[];var n=e.length;return n>1&&Bz(t,e[0],e[1])?e=[]:n>2&&Bz(e[0],e[1],e[2])&&(e=[e[0]]),GIe(t,HIe(e,1),[])}),GY=YIe;function JIe(t,e,n,i){for(var a=t.length,o=n+(i?1:-1);i?o--:++o-1}var $M=o2e;function l2e(t,e,n){for(var i=-1,a=t==null?0:t.length;++i=$2e){var l=e?null:b2e(t);if(l)return w2e(l);r=!1,a=P2e,c=new y2e}else c=e?[]:s;e:for(;++i2?e[2]:void 0;for(a&&E2e(e[0],e[1],a)&&(i=1);++n=120&&u.length>=120)?new M2e(r&&u):void 0}u=t[0];var f=-1,h=s[0];e:for(;++fArray.isArray(t)?t:[t],Xs=t=>t===void 0,yw=t=>aS(t)||Array.isArray(t)?Object.keys(t):[],qd=(t,e)=>t.hasOwnProperty(e),dg=t=>mCe(DM(t)),Gz=t=>Xs(t)||Array.isArray(t)&&t.length===0,vCe=(t,e,n,i)=>e&&qd(e,n)&&t&&qd(t,n)&&i(t[n],e[n]),uO=(t,e)=>Xs(t)&&e===0||Xs(e)&&t===0||il(t,e),PCe=(t,e)=>Xs(t)&&e===!1||Xs(e)&&t===!1||il(t,e),Kz=t=>Xs(t)||il(t,{})||t===!0,gw=t=>Xs(t)||il(t,{}),Yz=t=>Xs(t)||aS(t)||t===!0||t===!1;function Jz(t,e){return Gz(t)&&Gz(e)?!0:il(dg(t),dg(e))}function bCe(t,e){return t=Hz(t),e=Hz(e),il(dg(t),dg(e))}function k$(t,e,n,i){var a=DM(yw(t).concat(yw(e)));return gw(t)&&gw(e)?!0:gw(t)&&yw(e).length||gw(e)&&yw(t).length?!1:a.every(function(o){var r=t[o],s=e[o];return Array.isArray(r)&&Array.isArray(s)?il(dg(t),dg(e)):Array.isArray(r)&&!Array.isArray(s)||Array.isArray(s)&&!Array.isArray(r)?!1:vCe(t,e,o,i)})}function wCe(t,e,n,i){return aS(t)&&aS(e)?i(t,e):Array.isArray(t)&&Array.isArray(e)?k$(t,e,n,i):il(t,e)}function fO(t,e,n,i){var a=Wz(t,i),o=Wz(e,i),r=gCe(a,o,i);return r.length===Math.max(a.length,o.length)}var $Ce={title:il,uniqueItems:PCe,minLength:uO,minItems:uO,minProperties:uO,required:Jz,enum:Jz,type:bCe,items:wCe,anyOf:fO,allOf:fO,oneOf:fO,properties:k$,patternProperties:k$,dependencies:k$},ACe=["properties","patternProperties","dependencies","uniqueItems","minLength","minItems","minProperties","required"],SCe=["additionalProperties","additionalItems","contains","propertyNames","not"];function $C(t,e,n){if(n=yCe(n,{ignore:[]}),Kz(t)&&Kz(e))return!0;if(!Yz(t)||!Yz(e))throw new Error("Either of the values are not a JSON schema.");if(t===e)return!0;if(cO(t)&&cO(e))return t===e;if(t===void 0&&e===!1||e===void 0&&t===!1||Xs(t)&&!Xs(e)||!Xs(t)&&Xs(e))return!1;var i=DM(Object.keys(t).concat(Object.keys(e)));if(n.ignore.length&&(i=i.filter(o=>n.ignore.indexOf(o)===-1)),!i.length)return!0;function a(o,r){return $C(o,r,n)}return i.every(function(o){var r=t[o],s=e[o];if(SCe.indexOf(o)!==-1)return $C(r,s,n);var c=$Ce[o];if(c||(c=il),il(r,s))return!0;if(ACe.indexOf(o)===-1&&(!qd(t,o)&&qd(e,o)||qd(t,o)&&!qd(e,o)))return r===s;var l=c(r,s,o,a);if(!cO(l))throw new Error("Comparer must return true or false");return l})}var kM=$C;function _Ce(t){return Object.prototype.toString.call(t)==="[object Array]"}var OM=Array.isArray||_Ce;function xCe(t){return(typeof t=="number"||Object.prototype.toString.call(t)==="[object Number]")&&t.valueOf()===t.valueOf()}var DCe=xCe,kCe=DCe;function OCe(t){return kCe(t)&&t%1===0}var ECe=OCe,ICe=OM,CCe=ECe;function TCe(t){var e;if(!ICe(t)||(e=t.length,!e))return!1;for(var n=0;ne&&(i=e,e=t,t=i),e=e-t}return n*t}function Xz(t,e){var n=0,i;if(t===0)return e;if(e===0)return t;for(;!(t&1)&&!(e&1);)t>>>=1,e>>>=1,n++;for(;!(t&1);)t>>>=1;for(;e;){for(;!(e&1);)e>>>=1;t>e&&(i=e,e=t,t=i),e=e-t}return t<1){if(i=e[0],n=e[1],!RCe(n))throw new TypeError("gcd()::invalid input argument. Accessor must be a function. Value: `"+n+"`.")}else i=e[0];else throw new TypeError("gcd()::invalid input argument. Must provide an array of integers. Value: `"+e[0]+"`.");if(a=i.length,a<2)return null;if(n){for(o=new Array(a),s=0;s1){if(i=e[0],n=e[1],!qCe(n))throw new TypeError("lcm()::invalid input argument. Accessor must be a function. Value: `"+n+"`.")}else i=e[0];else throw new TypeError("lcm()::invalid input argument. Must provide an array of integers. Value: `"+e[0]+"`.");if(a=i.length,a<2)return null;if(n){for(o=new Array(a),s=0;s1?n[a-1]:void 0,r=a>2?n[2]:void 0;for(o=t.length>3&&typeof o=="function"?(a--,o):void 0,r&&bTe(n[0],n[1],r)&&(o=a<3?void 0:o,a=1),e=Object(e);++i-1;)s!==t&&oU.call(s,c,1),oU.call(t,c,1);return t}var XTe=ZTe,eje=XTe;function tje(t,e){return t&&t.length&&e&&e.length?eje(t,e):t}var rje=tje,nje=vb;function ije(t){return typeof t=="function"?t:nje}var aje=ije,sje=vY,oje=WY,lje=aje,cje=ws;function uje(t,e){var n=cje(t)?sje:oje;return n(t,lje(e))}var uJ=uje,fje=__,pje=$M,hje=AM,dje=Dh,mje=xh,yje=x_,gje=200;function vje(t,e,n,i){var a=-1,o=pje,r=!0,s=t.length,c=[],l=e.length;if(!s)return c;n&&(e=dje(e,mje(n))),i?(o=hje,r=!1):e.length>=gje&&(o=yje,r=!1,e=new fje(e));e:for(;++aDje(xje(t.map(EM))),Cje=(t,e)=>t.map(n=>n&&n[e]),pJ=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),EM=t=>fJ(t)||Array.isArray(t)?Object.keys(t):[],Tje=t=>t!==void 0,jje=t=>fJ(t)||t===!0||t===!1,hJ=t=>!EM(t).length&&t!==!1&&t!==!0,Mje=(t,...e)=>Oje.apply(null,[t].concat(_je(e)));var dJ={allUniqueKeys:Ije,deleteUndefinedProps:Eje,getValues:Cje,has:pJ,isEmptySchema:hJ,isSchema:jje,keys:EM,notUndefined:Tje,uniqWith:kje,withoutArr:Mje};const Rje=kM,Nje=uJ,{allUniqueKeys:Lje,deleteUndefinedProps:Fje,getValues:qje,keys:H0,notUndefined:zje,uniqWith:Uje,withoutArr:lU}=dJ;function Bje(t){Nje(t,function(e,n){e===!1&&delete t[n]})}function cU(t,e){return Lje(t).reduce(function(i,a){const o=qje(t,a),r=Uje(o.filter(zje),Rje);return i[a]=e(r,a),i},{})}var Vje={keywords:["properties","patternProperties","additionalProperties"],resolver(t,e,n,i){i.ignoreAdditionalProperties||(t.forEach(function(o){const r=t.filter(u=>u!==o),s=H0(o.properties),l=H0(o.patternProperties).map(u=>new RegExp(u));r.forEach(function(u){const f=H0(u.properties),h=f.filter(m=>l.some(g=>g.test(m)));lU(f,s,h).forEach(function(m){u.properties[m]=n.properties([u.properties[m],o.additionalProperties],m)})})}),t.forEach(function(o){const r=t.filter(c=>c!==o),s=H0(o.patternProperties);o.additionalProperties===!1&&r.forEach(function(c){const l=H0(c.patternProperties);lU(l,s).forEach(f=>delete c.patternProperties[f])})}));const a={additionalProperties:n.additionalProperties(t.map(o=>o.additionalProperties)),patternProperties:cU(t.map(o=>o.patternProperties),n.patternProperties),properties:cU(t.map(o=>o.properties),n.properties)};return a.additionalProperties===!1&&Bje(a.properties),Fje(a)}};const Wje=kM,Hje=uJ,{allUniqueKeys:Gje,deleteUndefinedProps:Kje,has:Yje,isSchema:mJ,notUndefined:yJ,uniqWith:Jje}=dJ;function Qje(t){Hje(t,function(e,n){e===!1&&t.splice(n,1)})}function Zje(t,e){return t.map(function(n){if(n)if(Array.isArray(n.items)){const i=n.items[e];if(mJ(i))return i;if(Yje(n,"additionalItems"))return n.additionalItems}else return n.items})}function Xje(t){return t.map(function(e){if(e)return Array.isArray(e.items)?e.additionalItems:e.items})}function eMe(t,e,n){return Gje(n).reduce(function(a,o){const r=Zje(t,o),s=Jje(r.filter(yJ),Wje);return a[o]=e(s,o),a},[])}var tMe={keywords:["items","additionalItems"],resolver(t,e,n){const i=t.map(s=>s.items),a=i.filter(yJ),o={};a.every(mJ)?o.items=n.items(i):o.items=eMe(t,n.items,i);let r;return a.every(Array.isArray)?r=t.map(s=>s.additionalItems):a.some(Array.isArray)&&(r=Xje(t)),r&&(o.additionalItems=n.additionalItems(r)),o.additionalItems===!1&&Array.isArray(o.items)&&Qje(o.items),Kje(o)}};const gJ=MDe,sS=kM,rMe=UCe,nMe=CTe,vJ=lJ,IM=cJ,iMe=BTe,aMe=XY,AC=LY,mg=k_,sMe=rje,PJ=GY,CM=SM,im=_M,bJ=Vje,wJ=tMe,Pw=(t,e)=>t.indexOf(e)!==-1,oMe=t=>mg(t)||t===!0||t===!1,lMe=t=>t===!1,$J=t=>t===!0,O_=(t,e,n)=>n(t),AJ=t=>PJ(CM(IM(t))),oS=t=>t!==void 0,SJ=t=>CM(IM(t.map(dMe))),Bg=t=>t[0],cMe=t=>AJ(t),Pb=t=>Math.max.apply(Math,t),bb=t=>Math.min.apply(Math,t),uMe=t=>t.some($J),fMe=t=>im(vJ(t),AC);function pMe(t){return function(e,n){return sS({[t]:e},{[t]:n})}}function _J(t){let{allOf:e=[],...n}=t;return n=mg(t)?n:t,[n,...e.map(_J)]}function xJ(t,e){return t.map(n=>n&&n[e])}function hMe(t,e){return t.map(function(n,i){try{return e(n,i)}catch{return}}).filter(oS)}function dMe(t){return mg(t)||Array.isArray(t)?Object.keys(t):[]}function SC(t,e){if(e=e||[],!t.length)return e;const n=t.slice(0).shift(),i=t.slice(1);return e.length?SC(i,vJ(e.map(a=>n.map(o=>[o].concat(a))))):SC(i,n.map(a=>a))}function DJ(t,e){let n;try{n=t.map(function(i){return JSON.stringify(i,null,2)}).join(` +`)}catch{n=t.join(", ")}throw new Error('Could not resolve values for path:"'+e.join(".")+`". They are probably incompatible. Values: +`+n)}function mMe(t,e,n,i,a,o){if(t.length){const r=a.complexResolvers[e];if(!r||!r.resolver)throw new Error("No resolver found for "+e);const s=n.map(f=>t.reduce((h,d)=>(f[d]!==void 0&&(h[d]=f[d]),h),{})),c=im(s,sS),l=r.keywords.reduce((f,h)=>({...f,[h]:(d,m=[])=>i(d,null,o.concat(h,m))}),{}),u=r.resolver(c,o.concat(e),l,a);return mg(u)||DJ(c,o.concat(e)),u}}function yMe(t){return{required:t}}const gMe=["properties","patternProperties","definitions","dependencies"],vMe=["anyOf","oneOf"],PMe=["additionalProperties","additionalItems","contains","propertyNames","not","items"],yr={type(t){if(t.some(Array.isArray)){const e=t.map(function(i){return Array.isArray(i)?i:[i]}),n=iMe.apply(null,e);if(n.length===1)return n[0];if(n.length>1)return CM(n)}},dependencies(t,e,n){return SJ(t).reduce(function(a,o){const r=xJ(t,o);let s=im(r.filter(oS),AC);const c=s.filter(Array.isArray);if(c.length){if(c.length===s.length)a[o]=AJ(s);else{const l=s.filter(oMe),u=c.map(yMe);a[o]=n(l.concat(u),o)}return a}return s=im(s,sS),a[o]=n(s,o),a},{})},oneOf(t,e,n){const i=SC(gJ(t)),a=hMe(i,n),o=im(a,sS);if(o.length)return o},not(t){return{anyOf:t}},pattern(t){return t.map(e=>"(?="+e+")").join("")},multipleOf(t){let e=t.slice(0),n=1;for(;e.some(i=>!Number.isInteger(i));)e=e.map(i=>i*10),n=n*10;return rMe(e)/n},enum(t){const e=aMe.apply(null,t.concat(AC));if(e.length)return PJ(e)}};yr.$id=Bg;yr.$ref=Bg;yr.$schema=Bg;yr.additionalItems=O_;yr.additionalProperties=O_;yr.anyOf=yr.oneOf;yr.contains=O_;yr.default=Bg;yr.definitions=yr.dependencies;yr.description=Bg;yr.examples=fMe;yr.exclusiveMaximum=bb;yr.exclusiveMinimum=Pb;yr.items=wJ;yr.maximum=bb;yr.maxItems=bb;yr.maxLength=bb;yr.maxProperties=bb;yr.minimum=Pb;yr.minItems=Pb;yr.minLength=Pb;yr.minProperties=Pb;yr.properties=bJ;yr.propertyNames=O_;yr.required=cMe;yr.title=Bg;yr.uniqueItems=uMe;const bMe={properties:bJ,items:wJ};function TM(t,e,n){e=nMe(e,{ignoreAdditionalProperties:!1,resolvers:yr,complexResolvers:bMe,deep:!0});const i=Object.entries(e.complexResolvers);function a(s,c,l){s=gJ(s.filter(oS)),l=l||[];const u=mg(c)?c:{};if(!s.length)return;if(s.some(lMe))return!1;if(s.every($J))return!0;s=s.filter(mg);const f=SJ(s);if(e.deep&&Pw(f,"allOf"))return TM({allOf:s},e);const h=i.map(([d,m])=>f.filter(g=>m.keywords.includes(g)));return h.forEach(d=>sMe(f,d)),f.forEach(function(d){const m=xJ(s,d),g=im(m.filter(oS),pMe(d));if(g.length===1&&Pw(vMe,d))u[d]=g[0].map(b=>a([b],b));else if(g.length===1&&!Pw(gMe,d)&&!Pw(PMe,d))u[d]=g[0];else{const b=e.resolvers[d]||e.resolvers.defaultResolver;if(!b)throw new Error("No resolver found for key "+d+". You can provide a resolver for this keyword in the options, or provide a default resolver.");const v=(P,A=[])=>a(P,null,l.concat(d,A));u[d]=b(g,l.concat(d),v,e),u[d]===void 0?DJ(g,l.concat(d)):u[d]===void 0&&delete u[d]}}),i.reduce((d,[m,g],b)=>({...d,...mMe(h[b],m,s,a,e,l)}),u)}const o=IM(_J(t));return a(o)}TM.options={resolvers:yr};var wMe=TM;const uU=jS(wMe),$Me=(t,e)=>t.reduce((n,i)=>{var a;return(n[a=e(i)]||(n[a]=[])).push(i),n},{}),kJ=(t,e)=>t.status!==200?Promise.reject(`Error while fetching URI \`${e}\` (status code \`${t.status}\`).`):t.text(),AMe=(t,e)=>t.status!==200?Promise.reject(`Error while fetching URI \`${e}\` (status code \`${t.status}\`).`):t.json(),jl=(t,e)=>[{message:t,path:e}],bw=(t,e)=>e.length>0?`${t} (schema path: "${e.map(n=>n.replace("/","\\/")).join("/")}")`:t,SMe=t=>$Me(t,e=>e.source??""),Hv=(t,e,n=[])=>{var a;const i=[];return t.allOf||e.allOf?Hv(t.allOf?uU(t.allOf):t,e.allOf?uU(e.allOf):e):(e.type&&t.type!==e.type&&i.push(bw(`Schema type must be "${e.type}".`,n)),e.format&&t.format!==e.format&&i.push(bw(`Schema format must be "${e.format}".`,n)),e.type==="object"&&t.type==="object"&&((a=e.required)==null||a.forEach(o=>{var r;(r=t.required)!=null&&r.includes(o)||i.push(bw(`Property "${o}" must be required.`,n))}),Object.entries(e.properties??{}).forEach(([o,r])=>{var c;const s=(t.properties??{})[o];!s&&((c=e.required)!=null&&c.includes(o))&&i.push(bw(`Required property "${o}" is missing.`,n)),s&&Hv(s,r,[...n,o]).forEach(l=>i.push(l))})),e.type==="array"&&t.type==="array"&&Hv(t.items,e.items,n).forEach(o=>i.push(o)),i)},_Me=[u0e(),Uj(o0e()),D0e()],xMe=({spec:t,uri:e})=>{const[n,i]=Be.useState("{}"),[a,o]=Be.useState(!1),[r,s]=Be.useState(),[c,l]=Be.useState([]),[u,f]=Be.useState({}),h=Be.useRef(null);return Be.useEffect(()=>{i(t.example),l(t.linters)},[t]),Be.useEffect(()=>{e&&(s(void 0),o(!0),f({}),fetch(e).then(d=>kJ(d,e)).then(d=>t.responseMapper?t.responseMapper(d):Promise.resolve({content:d})).then(d=>{o(!1),i(d.content),l(d.linters??t.linters)}).catch(d=>{o(!1),s(d)}))},[e,t]),Lt.jsxs("div",{className:"flex h-full",children:[Lt.jsx("div",{className:"w-[50%] min-w-[400px] overflow-auto",children:Lt.jsx(hY,{ref:h,value:n,extensions:[..._Me,...c.map(d=>d.linter)],onUpdate:d=>{r||(d.transactions.forEach(m=>{m.effects.forEach(g=>{if(g.is(pb)){const b=[];k0e(d.state,v=>b.push(v)),f(SMe(b)),o(!1)}})}),d.docChanged&&(i(d.state.doc.toString()),o(!0)))}})}),Lt.jsxs("div",{className:"flex-1 overflow-auto p-4 bg-sky-100 text-sm",children:[a&&Lt.jsx("p",{children:"Checking..."}),!a&&r&&Lt.jsx("div",{className:"mb-4 p-4 bg-red-500 text-white rounded shadow-lg",children:r}),!a&&!r&&c.map(d=>Lt.jsx("div",{children:u[d.name]?Lt.jsxs(Lt.Fragment,{children:[Lt.jsxs("div",{className:"mb-4 p-4 bg-red-500 text-white rounded shadow-lg",children:["[",d.name,"] Found ",u[d.name].length," linting error(s)."]}),Lt.jsx("ul",{children:u[d.name].map((m,g)=>Lt.jsx("li",{children:Lt.jsxs("div",{className:Pbe("mb-4 p-4 rounded shadow-lg",{"bg-red-200":m.severity==="error","bg-yellow-100":m.severity==="warning","bg-white":m.severity==="info"||m.severity==="hint"}),children:[m.message," ",Lt.jsx("span",{className:"text-blue-600 underline",children:Lt.jsx("a",{className:"cursor-pointer",onClick:()=>{var b,v;return(v=(b=h.current)==null?void 0:b.view)==null?void 0:v.dispatch({selection:Ve.single(m.from,m.to),scrollIntoView:!0})},children:"(show)"})})]})},g))})]}):Lt.jsxs("div",{className:"mb-4 p-4 bg-green-600 text-white rounded shadow-lg",children:["[",d.name,"] No violations found."]})},d.name))]})]})},DMe=()=>Lt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 96 96",className:"h-[24px]",children:Lt.jsx("path",{fill:"#fff",d:"M48.854 0C21.839 0 0 22 0 49.217c0 21.756 13.993 40.172 33.405 46.69 2.427.49 3.316-1.059 3.316-2.362 0-1.141-.08-5.052-.08-9.127-13.59 2.934-16.42-5.867-16.42-5.867-2.184-5.704-5.42-7.17-5.42-7.17-4.448-3.015.324-3.015.324-3.015 4.934.326 7.523 5.052 7.523 5.052 4.367 7.496 11.404 5.378 14.235 4.074.404-3.178 1.699-5.378 3.074-6.6-10.839-1.141-22.243-5.378-22.243-24.283 0-5.378 1.94-9.778 5.014-13.2-.485-1.222-2.184-6.275.486-13.038 0 0 4.125-1.304 13.426 5.052a46.97 46.97 0 0 1 12.214-1.63c4.125 0 8.33.571 12.213 1.63 9.302-6.356 13.427-5.052 13.427-5.052 2.67 6.763.97 11.816.485 13.038 3.155 3.422 5.015 7.822 5.015 13.2 0 18.905-11.404 23.06-22.324 24.283 1.78 1.548 3.316 4.481 3.316 9.126 0 6.6-.08 11.897-.08 13.526 0 1.304.89 2.853 3.316 2.364 19.412-6.52 33.405-24.935 33.405-46.691C97.707 22 75.788 0 48.854 0z"})}),kMe="Feature",OMe="DENW19AL0000giv5BL",EMe=["[ogc-json-fg-1-0.2:core]","[ogc-json-fg-1-0.2:types-schemas]","[ogc-json-fg-1-0.2:3d]"],IMe="app:building",CMe="https://example.org/data/v1/collections/buildings/schema",TMe={interval:["2014-04-24T10:50:18Z",".."]},jMe="http://www.opengis.net/def/crs/EPSG/0/5555",MMe={type:"Polyhedron",coordinates:[[[[[479816.67,5705861672e-3,100],[479822.187,5705866783e-3,100],[479829.666,5705858785e-3,100],[479824.155,5705853684e-3,100],[479816.67,5705861672e-3,100]]],[[[479816.67,5705861672e-3,110],[479824.155,5705853684e-3,110],[479829.666,5705858785e-3,120],[479822.187,5705866783e-3,120],[479816.67,5705861672e-3,110]]],[[[479816.67,5705861672e-3,110],[479816.67,5705861672e-3,100],[479824.155,5705853684e-3,100],[479824.155,5705853684e-3,110],[479816.67,5705861672e-3,110]]],[[[479824.155,5705853684e-3,110],[479824.155,5705853684e-3,100],[479829.666,5705858785e-3,100],[479829.666,5705858785e-3,120],[479824.155,5705853684e-3,110]]],[[[479829.666,5705858785e-3,120],[479829.666,5705858785e-3,100],[479822.187,5705866783e-3,100],[479822.187,5705866783e-3,120],[479829.666,5705858785e-3,120]]],[[[479822.187,5705866783e-3,120],[479822.187,5705866783e-3,100],[479816.67,5705861672e-3,100],[479816.67,5705861672e-3,110],[479822.187,5705866783e-3,120]]]]]},RMe={type:"Polygon",coordinates:[[[8.7092045,51.5035285,100],[8.7093128,51.503457,100],[8.7093919,51.503503,100],[8.7092837,51.5035747,100],[8.7092045,51.5035285,100]]]},NMe={lastChange:"2014-04-24T10:50:18Z",built:"2012-03",function:"Agricultural building",height_m:20,owners:[{href:"https://example.org/john-doe",title:"John Doe"},{href:"https://example.org/jane-doe",title:"Jane Doe"}]},LMe={type:kMe,id:OMe,conformsTo:EMe,featureType:IMe,featureSchema:CMe,time:TMe,coordRefSys:jMe,place:MMe,geometry:RMe,properties:NMe};var _C=(t=>(t.FEATURE="Feature",t.FEATURECOLLECTION="FeatureCollection",t))(_C||{}),dr=(t=>(t.POINT="Point",t.MULTIPOINT="MultiPoint",t.LINESTRING="LineString",t.MULTILINESTRING="MultiLineString",t.POLYGON="Polygon",t.MULTIPOLYGON="MultiPolygon",t.POLYHEDRON="Polyhedron",t.MULTIPOLYHEDRON="MultiPolyhedron",t.PRISM="Prism",t.MULTIPRISM="MultiPrism",t.GEOMETRYCOLLECTION="GeometryCollection",t))(dr||{});const Js={STRING:"String",NUMBER:"Number",TRUE:"True",FALSE:"False",NULL:"Null",OBJECT:"Object",ARRAY:"Array",PROPERTY:"Property",PROPERTY_NAME:"PropertyName",JSON_TEXT:"JsonText"},FMe=[Js.STRING,Js.NUMBER,Js.TRUE,Js.FALSE,Js.NULL],qMe=[Js.OBJECT,Js.ARRAY],zMe=t=>t.replace(/^"(.*)"$/,"$1").replace(/^'(.*)'$/,"$1"),UMe=(t,e,n=!0)=>{const i=e?t.sliceString(e.from,e.to):"";return n?zMe(i):i},OJ=t=>{const e=[];let n=t.firstChild;for(;n;)n&&e.push(n),n=n==null?void 0:n.nextSibling;return e},BMe=t=>OJ(t).filter(e=>EJ(e)),VMe=(t,e)=>BMe(t).findIndex(n=>n.from===e.from&&n.to===e.to),WMe=(t,e)=>OJ(t).find(n=>n.name===e)??null,EJ=t=>[...FMe,...qMe].includes(t.name),HMe=(t,e)=>{const n=[];for(let i=e;i!=null&&i.parent;i=i.parent)if(i.parent.name===Js.PROPERTY){const a=WMe(i.parent,Js.PROPERTY_NAME);a&&n.unshift(UMe(t,a))}else if(i.parent.name===Js.ARRAY&&EJ(i)){const a=VMe(i.parent,i);n.unshift(`${a}`)}return"/"+n.join("/")},GMe=t=>{const e=Ei(t),n=new Map;return e.cursor().iterate(i=>{var s,c;const a=i.node,o=(s=a.nextSibling)==null?void 0:s.node,r=HMe(t.doc,a);return o&&Js.PROPERTY_NAME===i.name&&n.set(r,{keyFrom:a.from,keyTo:a.to,valueFrom:o.from,valueTo:o.to}),(a.parent===null||Js.ARRAY===((c=a.parent)==null?void 0:c.name)&&!["[","]"].includes(a.name))&&n.set(r,{valueFrom:a.from,valueTo:a.to}),!0}),n},KMe="http://www.opengis.net/spec/json-fg-1/0.2/conf/3d",YMe="[ogc-json-fg-1-0.2:3d]",JMe=[dr.POLYHEDRON,dr.MULTIPOLYHEDRON,dr.PRISM,dr.MULTIPRISM],fU=t=>t.conformsTo!==void 0&&(t.conformsTo.includes(KMe)||t.conformsTo.includes(YMe)),pU=t=>t.place&&JMe.includes(t.place.type),IJ=[];IJ.push({name:"/req/3d/metadata",validateFeature:(t,e)=>{if(e&&pU(t)&&!fU(t))return{pointer:"/conformsTo",message:'When having 3D geometries, the "conformsTo" member of the JSON document SHALL include at least the 3D conformance class.'}},validateFeatureCollection:t=>{if(t.features.some(e=>pU(e))&&!fU(t))return{pointer:"/conformsTo",message:'When having 3D geometries, the "conformsTo" member of the JSON document SHALL include at least the 3D conformance class.'}}});const QMe=[dr.POINT,dr.MULTIPOINT,dr.LINESTRING,dr.MULTILINESTRING,dr.POLYGON,dr.MULTIPOLYGON,dr.GEOMETRYCOLLECTION],hU=["http://www.opengis.net/def/crs/OGC/0/CRS84","http://www.opengis.net/def/crs/OGC/0/CRS84h","[OGC:CRS84]","[OGC:CRS84h]"],fp=t=>typeof t[0]=="number"?[t.length]:t.flatMap(e=>fp(e)),wv=(t,e)=>typeof t[0]=="number"?[t[e]]:t.flatMap(n=>wv(n,e)),dU=t=>QMe.includes(t.type),mU=t=>{if(typeof t=="string")return hU.includes(t);if(!Array.isArray(t)&&t.type==="Reference"){const e=t;return e.epoch===void 0&&hU.includes(e.href)}else return!1},Vg=[];Vg.push({name:"/req/core/coordinate-dimension",validateFeature:t=>{if(t.geometry){const e=t.geometry,n=e.type===dr.GEOMETRYCOLLECTION?e.geometries.flatMap(i=>fp(i.coordinates)):fp(e.coordinates);if(n.some(i=>i!==n[0]))return{pointer:"/geometry",message:"All positions in a geometry object SHALL have the same dimension."}}if(t.place){const e=t.place;let n=[];if(e.type===dr.PRISM?n=fp(e.base.coordinates):e.type===dr.MULTIPRISM?n=e.prisms.flatMap(i=>fp(i.base.coordinates)):e.type===dr.GEOMETRYCOLLECTION?n=e.geometries.flatMap(i=>fp(i.coordinates)):n=fp(e.coordinates),n.some(i=>i!==n[0]))return{pointer:"/place",message:"All positions in a geometry object SHALL have the same dimension."}}}});Vg.push({name:"/req/core/geometry-wgs84",validateFeature:t=>{if(t.geometry){const e=t.geometry;if((e.type===dr.GEOMETRYCOLLECTION?e.geometries.flatMap(a=>wv(a.coordinates,0)):wv(e.coordinates,0)).some(a=>a<-180||a>180))return{pointer:"/geometry",message:"The first element of each position SHALL be between -180 and +180 decimal degrees longitude."};if((e.type===dr.GEOMETRYCOLLECTION?e.geometries.flatMap(a=>wv(a.coordinates,1)):wv(e.coordinates,1)).some(a=>a<-90||a>90))return{pointer:"/geometry",message:"The second element of each position SHALL be between -90 and +90 decimal degrees latitude."}}}});Vg.push({name:"/req/core/place",validateFeature:(t,e)=>{if(e&&t.place){const i=t.place.coordRefSys??t.coordRefSys;if(dU(t.place)&&(i===void 0||mU(i)))return{pointer:"/place",message:'If the "place" member in any JSON-FG feature in the JSON document is not null and the geometry type (member "type") is one of "Point", "MultiPoint", "LineString", "MultiLineString", "Polygon", "MultiPolygon" or "GeometryCollection", the CRS SHALL not be OGC:CRS84 or OGC:CRS84h (WGS 84 with axis order longitude/latitude).'}}},validateFeatureCollection:t=>{for(let e=0;e{if(t.place){const e=t.place;if(e.type===dr.GEOMETRYCOLLECTION&&e.geometries.some(n=>n.coordRefSys!==void 0)||e.type===dr.PRISM&&e.base.coordRefSys!==void 0||e.type===dr.MULTIPRISM&&e.prisms.some(n=>n.coordRefSys!==void 0||n.base.coordRefSys!==void 0))return{pointer:"/place",message:'If the "place" member in any JSON-FG feature in the JSON document is not null and the geometry type (member "type") is "GeometryCollection" or any other geometry type that has embedded geometry objects, no embedded geometry object SHALL include a "coordRefSys" member.'}}}});Vg.push({name:"/req/core/fallback",validateFeature:t=>{if(t.place&&t.geometry&&JSON.stringify(t.place)===JSON.stringify(t.geometry))return{pointer:"/place",message:'If both the "place" and the "geometry" member in a JSON-FG feature in the JSON document are not null, the values of both members SHALL not be identical.'}}});const ZMe="http://www.opengis.net/spec/json-fg-1/0.2/conf/core",XMe="[ogc-json-fg-1-0.2:core]",yU=t=>t.conformsTo!==void 0&&(t.conformsTo.includes(ZMe)||t.conformsTo.includes(XMe)),CJ=[];CJ.push({name:"/req/core/metadata",validateFeature:(t,e)=>{const n=t.conformsTo;if(e&&n===void 0)return{pointer:"/",message:'The JSON document SHALL include a "conformsTo" member.'};if(e&&n!==void 0&&!yU(t))return{pointer:"/conformsTo",message:'The "conformsTo" member of the JSON document SHALL include at least the core conformance class.'};if(!e&&n!==void 0)return{pointer:"/conformsTo",message:'Only the root object of the JSON document SHALL include a "conformsTo" member.'}},validateFeatureCollection:t=>{const e=t.conformsTo;if(e===void 0)return{pointer:"/",message:'The JSON document SHALL include a "conformsTo" member.'};if(e!==void 0&&!yU(t))return{pointer:"/conformsTo",message:'The "conformsTo" member of the JSON document SHALL include at least the core conformance class.'}}});class Oh extends Error{}class eRe extends Oh{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class tRe extends Oh{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class rRe extends Oh{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class zd extends Oh{}class TJ extends Oh{constructor(e){super(`Invalid unit ${e}`)}}class zi extends Oh{}class ju extends Oh{constructor(){super("Zone is an abstract class")}}const rt="numeric",al="short",ps="long",lS={year:rt,month:rt,day:rt},jJ={year:rt,month:al,day:rt},nRe={year:rt,month:al,day:rt,weekday:al},MJ={year:rt,month:ps,day:rt},RJ={year:rt,month:ps,day:rt,weekday:ps},NJ={hour:rt,minute:rt},LJ={hour:rt,minute:rt,second:rt},FJ={hour:rt,minute:rt,second:rt,timeZoneName:al},qJ={hour:rt,minute:rt,second:rt,timeZoneName:ps},zJ={hour:rt,minute:rt,hourCycle:"h23"},UJ={hour:rt,minute:rt,second:rt,hourCycle:"h23"},BJ={hour:rt,minute:rt,second:rt,hourCycle:"h23",timeZoneName:al},VJ={hour:rt,minute:rt,second:rt,hourCycle:"h23",timeZoneName:ps},WJ={year:rt,month:rt,day:rt,hour:rt,minute:rt},HJ={year:rt,month:rt,day:rt,hour:rt,minute:rt,second:rt},GJ={year:rt,month:al,day:rt,hour:rt,minute:rt},KJ={year:rt,month:al,day:rt,hour:rt,minute:rt,second:rt},iRe={year:rt,month:al,day:rt,weekday:al,hour:rt,minute:rt},YJ={year:rt,month:ps,day:rt,hour:rt,minute:rt,timeZoneName:al},JJ={year:rt,month:ps,day:rt,hour:rt,minute:rt,second:rt,timeZoneName:al},QJ={year:rt,month:ps,day:rt,weekday:ps,hour:rt,minute:rt,timeZoneName:ps},ZJ={year:rt,month:ps,day:rt,weekday:ps,hour:rt,minute:rt,second:rt,timeZoneName:ps};class wb{get type(){throw new ju}get name(){throw new ju}get ianaName(){return this.name}get isUniversal(){throw new ju}offsetName(e,n){throw new ju}formatOffset(e,n){throw new ju}offset(e){throw new ju}equals(e){throw new ju}get isValid(){throw new ju}}let pO=null;class E_ extends wb{static get instance(){return pO===null&&(pO=new E_),pO}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:n,locale:i}){return oQ(e,n,i)}formatOffset(e,n){return Gv(this.offset(e),n)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return!0}}let O$={};function aRe(t){return O$[t]||(O$[t]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),O$[t]}const sRe={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function oRe(t,e){const n=t.format(e).replace(/\u200E/g,""),i=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n),[,a,o,r,s,c,l,u]=i;return[r,a,o,s,c,l,u]}function lRe(t,e){const n=t.formatToParts(e),i=[];for(let a=0;a=0?m:1e3+m,(h-d)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}}let gU={};function cRe(t,e={}){const n=JSON.stringify([t,e]);let i=gU[n];return i||(i=new Intl.ListFormat(t,e),gU[n]=i),i}let xC={};function DC(t,e={}){const n=JSON.stringify([t,e]);let i=xC[n];return i||(i=new Intl.DateTimeFormat(t,e),xC[n]=i),i}let kC={};function uRe(t,e={}){const n=JSON.stringify([t,e]);let i=kC[n];return i||(i=new Intl.NumberFormat(t,e),kC[n]=i),i}let OC={};function fRe(t,e={}){const{base:n,...i}=e,a=JSON.stringify([t,i]);let o=OC[a];return o||(o=new Intl.RelativeTimeFormat(t,e),OC[a]=o),o}let $v=null;function pRe(){return $v||($v=new Intl.DateTimeFormat().resolvedOptions().locale,$v)}let vU={};function hRe(t){let e=vU[t];if(!e){const n=new Intl.Locale(t);e="getWeekInfo"in n?n.getWeekInfo():n.weekInfo,vU[t]=e}return e}function dRe(t){const e=t.indexOf("-x-");e!==-1&&(t=t.substring(0,e));const n=t.indexOf("-u-");if(n===-1)return[t];{let i,a;try{i=DC(t).resolvedOptions(),a=t}catch{const c=t.substring(0,n);i=DC(c).resolvedOptions(),a=c}const{numberingSystem:o,calendar:r}=i;return[a,o,r]}}function mRe(t,e,n){return(n||e)&&(t.includes("-u-")||(t+="-u"),n&&(t+=`-ca-${n}`),e&&(t+=`-nu-${e}`)),t}function yRe(t){const e=[];for(let n=1;n<=12;n++){const i=At.utc(2009,n,1);e.push(t(i))}return e}function gRe(t){const e=[];for(let n=1;n<=7;n++){const i=At.utc(2016,11,13+n);e.push(t(i))}return e}function $w(t,e,n,i){const a=t.listingMode();return a==="error"?null:a==="en"?n(e):i(e)}function vRe(t){return t.numberingSystem&&t.numberingSystem!=="latn"?!1:t.numberingSystem==="latn"||!t.locale||t.locale.startsWith("en")||new Intl.DateTimeFormat(t.intl).resolvedOptions().numberingSystem==="latn"}class PRe{constructor(e,n,i){this.padTo=i.padTo||0,this.floor=i.floor||!1;const{padTo:a,floor:o,...r}=i;if(!n||Object.keys(r).length>0){const s={useGrouping:!1,...i};i.padTo>0&&(s.minimumIntegerDigits=i.padTo),this.inf=uRe(e,s)}}format(e){if(this.inf){const n=this.floor?Math.floor(e):e;return this.inf.format(n)}else{const n=this.floor?Math.floor(e):LM(e,3);return Hn(n,this.padTo)}}}class bRe{constructor(e,n,i){this.opts=i,this.originalZone=void 0;let a;if(this.opts.timeZone)this.dt=e;else if(e.zone.type==="fixed"){const r=-1*(e.offset/60),s=r>=0?`Etc/GMT+${r}`:`Etc/GMT${r}`;e.offset!==0&&ou.create(s).valid?(a=s,this.dt=e):(a="UTC",this.dt=e.offset===0?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else e.zone.type==="system"?this.dt=e:e.zone.type==="iana"?(this.dt=e,a=e.zone.name):(a="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);const o={...this.opts};o.timeZone=o.timeZone||a,this.dtf=DC(n,o)}format(){return this.originalZone?this.formatToParts().map(({value:e})=>e).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map(n=>{if(n.type==="timeZoneName"){const i=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...n,value:i}}else return n}):e}resolvedOptions(){return this.dtf.resolvedOptions()}}class wRe{constructor(e,n,i){this.opts={style:"long",...i},!n&&aQ()&&(this.rtf=fRe(e,i))}format(e,n){return this.rtf?this.rtf.format(e,n):VRe(n,e,this.opts.numeric,this.opts.style!=="long")}formatToParts(e,n){return this.rtf?this.rtf.formatToParts(e,n):[]}}const $Re={firstDay:1,minimalDays:4,weekend:[6,7]};class wr{static fromOpts(e){return wr.create(e.locale,e.numberingSystem,e.outputCalendar,e.weekSettings,e.defaultToEN)}static create(e,n,i,a,o=!1){const r=e||fn.defaultLocale,s=r||(o?"en-US":pRe()),c=n||fn.defaultNumberingSystem,l=i||fn.defaultOutputCalendar,u=EC(a)||fn.defaultWeekSettings;return new wr(s,c,l,u,r)}static resetCache(){$v=null,xC={},kC={},OC={}}static fromObject({locale:e,numberingSystem:n,outputCalendar:i,weekSettings:a}={}){return wr.create(e,n,i,a)}constructor(e,n,i,a,o){const[r,s,c]=dRe(e);this.locale=r,this.numberingSystem=n||s||null,this.outputCalendar=i||c||null,this.weekSettings=a,this.intl=mRe(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=o,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=vRe(this)),this.fastNumbersCached}listingMode(){const e=this.isEnglish(),n=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return e&&n?"en":"intl"}clone(e){return!e||Object.getOwnPropertyNames(e).length===0?this:wr.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,EC(e.weekSettings)||this.weekSettings,e.defaultToEN||!1)}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,n=!1){return $w(this,e,uQ,()=>{const i=n?{month:e,day:"numeric"}:{month:e},a=n?"format":"standalone";return this.monthsCache[a][e]||(this.monthsCache[a][e]=yRe(o=>this.extract(o,i,"month"))),this.monthsCache[a][e]})}weekdays(e,n=!1){return $w(this,e,hQ,()=>{const i=n?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},a=n?"format":"standalone";return this.weekdaysCache[a][e]||(this.weekdaysCache[a][e]=gRe(o=>this.extract(o,i,"weekday"))),this.weekdaysCache[a][e]})}meridiems(){return $w(this,void 0,()=>dQ,()=>{if(!this.meridiemCache){const e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[At.utc(2016,11,13,9),At.utc(2016,11,13,19)].map(n=>this.extract(n,e,"dayperiod"))}return this.meridiemCache})}eras(e){return $w(this,e,mQ,()=>{const n={era:e};return this.eraCache[e]||(this.eraCache[e]=[At.utc(-40,1,1),At.utc(2017,1,1)].map(i=>this.extract(i,n,"era"))),this.eraCache[e]})}extract(e,n,i){const a=this.dtFormatter(e,n),o=a.formatToParts(),r=o.find(s=>s.type.toLowerCase()===i);return r?r.value:null}numberFormatter(e={}){return new PRe(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,n={}){return new bRe(e,this.intl,n)}relFormatter(e={}){return new wRe(this.intl,this.isEnglish(),e)}listFormatter(e={}){return cRe(this.intl,e)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:sQ()?hRe(this.locale):$Re}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}}let hO=null;class ha extends wb{static get utcInstance(){return hO===null&&(hO=new ha(0)),hO}static instance(e){return e===0?ha.utcInstance:new ha(e)}static parseSpecifier(e){if(e){const n=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(n)return new ha(T_(n[1],n[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${Gv(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${Gv(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,n){return Gv(this.fixed,n)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return e.type==="fixed"&&e.fixed===this.fixed}get isValid(){return!0}}class ARe extends wb{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function rf(t,e){if(Tt(t)||t===null)return e;if(t instanceof wb)return t;if(ORe(t)){const n=t.toLowerCase();return n==="default"?e:n==="local"||n==="system"?E_.instance:n==="utc"||n==="gmt"?ha.utcInstance:ha.parseSpecifier(n)||ou.create(t)}else return Sf(t)?ha.instance(t):typeof t=="object"&&"offset"in t&&typeof t.offset=="function"?t:new ARe(t)}const jM={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},PU={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},SRe=jM.hanidec.replace(/[\[|\]]/g,"").split("");function _Re(t){let e=parseInt(t,10);if(isNaN(e)){e="";for(let n=0;n=o&&i<=r&&(e+=i-o)}}return parseInt(e,10)}else return e}let yd={};function xRe(){yd={}}function Co({numberingSystem:t},e=""){const n=t||"latn";return yd[n]||(yd[n]={}),yd[n][e]||(yd[n][e]=new RegExp(`${jM[n]}${e}`)),yd[n][e]}let bU=()=>Date.now(),wU="system",$U=null,AU=null,SU=null,_U=60,xU,DU=null;class fn{static get now(){return bU}static set now(e){bU=e}static set defaultZone(e){wU=e}static get defaultZone(){return rf(wU,E_.instance)}static get defaultLocale(){return $U}static set defaultLocale(e){$U=e}static get defaultNumberingSystem(){return AU}static set defaultNumberingSystem(e){AU=e}static get defaultOutputCalendar(){return SU}static set defaultOutputCalendar(e){SU=e}static get defaultWeekSettings(){return DU}static set defaultWeekSettings(e){DU=EC(e)}static get twoDigitCutoffYear(){return _U}static set twoDigitCutoffYear(e){_U=e%100}static get throwOnInvalid(){return xU}static set throwOnInvalid(e){xU=e}static resetCaches(){wr.resetCache(),ou.resetCache(),At.resetCache(),xRe()}}class Ko{constructor(e,n){this.reason=e,this.explanation=n}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const XJ=[0,31,59,90,120,151,181,212,243,273,304,334],eQ=[0,31,60,91,121,152,182,213,244,274,305,335];function eo(t,e){return new Ko("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${t}, which is invalid`)}function MM(t,e,n){const i=new Date(Date.UTC(t,e-1,n));t<100&&t>=0&&i.setUTCFullYear(i.getUTCFullYear()-1900);const a=i.getUTCDay();return a===0?7:a}function tQ(t,e,n){return n+($b(t)?eQ:XJ)[e-1]}function rQ(t,e){const n=$b(t)?eQ:XJ,i=n.findIndex(o=>ozP(i,e,n)?(l=i+1,c=1):l=i,{weekYear:l,weekNumber:c,weekday:s,...j_(t)}}function kU(t,e=4,n=1){const{weekYear:i,weekNumber:a,weekday:o}=t,r=RM(MM(i,1,e),n),s=am(i);let c=a*7+o-r-7+e,l;c<1?(l=i-1,c+=am(l)):c>s?(l=i+1,c-=am(i)):l=i;const{month:u,day:f}=rQ(l,c);return{year:l,month:u,day:f,...j_(t)}}function dO(t){const{year:e,month:n,day:i}=t,a=tQ(e,n,i);return{year:e,ordinal:a,...j_(t)}}function OU(t){const{year:e,ordinal:n}=t,{month:i,day:a}=rQ(e,n);return{year:e,month:i,day:a,...j_(t)}}function EU(t,e){if(!Tt(t.localWeekday)||!Tt(t.localWeekNumber)||!Tt(t.localWeekYear)){if(!Tt(t.weekday)||!Tt(t.weekNumber)||!Tt(t.weekYear))throw new zd("Cannot mix locale-based week fields with ISO-based week fields");return Tt(t.localWeekday)||(t.weekday=t.localWeekday),Tt(t.localWeekNumber)||(t.weekNumber=t.localWeekNumber),Tt(t.localWeekYear)||(t.weekYear=t.localWeekYear),delete t.localWeekday,delete t.localWeekNumber,delete t.localWeekYear,{minDaysInFirstWeek:e.getMinDaysInFirstWeek(),startOfWeek:e.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function DRe(t,e=4,n=1){const i=I_(t.weekYear),a=to(t.weekNumber,1,zP(t.weekYear,e,n)),o=to(t.weekday,1,7);return i?a?o?!1:eo("weekday",t.weekday):eo("week",t.weekNumber):eo("weekYear",t.weekYear)}function kRe(t){const e=I_(t.year),n=to(t.ordinal,1,am(t.year));return e?n?!1:eo("ordinal",t.ordinal):eo("year",t.year)}function nQ(t){const e=I_(t.year),n=to(t.month,1,12),i=to(t.day,1,uS(t.year,t.month));return e?n?i?!1:eo("day",t.day):eo("month",t.month):eo("year",t.year)}function iQ(t){const{hour:e,minute:n,second:i,millisecond:a}=t,o=to(e,0,23)||e===24&&n===0&&i===0&&a===0,r=to(n,0,59),s=to(i,0,59),c=to(a,0,999);return o?r?s?c?!1:eo("millisecond",a):eo("second",i):eo("minute",n):eo("hour",e)}function Tt(t){return typeof t>"u"}function Sf(t){return typeof t=="number"}function I_(t){return typeof t=="number"&&t%1===0}function ORe(t){return typeof t=="string"}function ERe(t){return Object.prototype.toString.call(t)==="[object Date]"}function aQ(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function sQ(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function IRe(t){return Array.isArray(t)?t:[t]}function IU(t,e,n){if(t.length!==0)return t.reduce((i,a)=>{const o=[e(a),a];return i&&n(i[0],o[0])===i[0]?i:o},null)[1]}function CRe(t,e){return e.reduce((n,i)=>(n[i]=t[i],n),{})}function yg(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function EC(t){if(t==null)return null;if(typeof t!="object")throw new zi("Week settings must be an object");if(!to(t.firstDay,1,7)||!to(t.minimalDays,1,7)||!Array.isArray(t.weekend)||t.weekend.some(e=>!to(e,1,7)))throw new zi("Invalid week settings");return{firstDay:t.firstDay,minimalDays:t.minimalDays,weekend:Array.from(t.weekend)}}function to(t,e,n){return I_(t)&&t>=e&&t<=n}function TRe(t,e){return t-e*Math.floor(t/e)}function Hn(t,e=2){const n=t<0;let i;return n?i="-"+(""+-t).padStart(e,"0"):i=(""+t).padStart(e,"0"),i}function Qu(t){if(!(Tt(t)||t===null||t===""))return parseInt(t,10)}function ip(t){if(!(Tt(t)||t===null||t===""))return parseFloat(t)}function NM(t){if(!(Tt(t)||t===null||t==="")){const e=parseFloat("0."+t)*1e3;return Math.floor(e)}}function LM(t,e,n=!1){const i=10**e;return(n?Math.trunc:Math.round)(t*i)/i}function $b(t){return t%4===0&&(t%100!==0||t%400===0)}function am(t){return $b(t)?366:365}function uS(t,e){const n=TRe(e-1,12)+1,i=t+(e-n)/12;return n===2?$b(i)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function C_(t){let e=Date.UTC(t.year,t.month-1,t.day,t.hour,t.minute,t.second,t.millisecond);return t.year<100&&t.year>=0&&(e=new Date(e),e.setUTCFullYear(t.year,t.month-1,t.day)),+e}function CU(t,e,n){return-RM(MM(t,1,e),n)+e-1}function zP(t,e=4,n=1){const i=CU(t,e,n),a=CU(t+1,e,n);return(am(t)-i+a)/7}function IC(t){return t>99?t:t>fn.twoDigitCutoffYear?1900+t:2e3+t}function oQ(t,e,n,i=null){const a=new Date(t),o={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};i&&(o.timeZone=i);const r={timeZoneName:e,...o},s=new Intl.DateTimeFormat(n,r).formatToParts(a).find(c=>c.type.toLowerCase()==="timezonename");return s?s.value:null}function T_(t,e){let n=parseInt(t,10);Number.isNaN(n)&&(n=0);const i=parseInt(e,10)||0,a=n<0||Object.is(n,-0)?-i:i;return n*60+a}function lQ(t){const e=Number(t);if(typeof t=="boolean"||t===""||Number.isNaN(e))throw new zi(`Invalid unit value ${t}`);return e}function fS(t,e){const n={};for(const i in t)if(yg(t,i)){const a=t[i];if(a==null)continue;n[e(i)]=lQ(a)}return n}function Gv(t,e){const n=Math.trunc(Math.abs(t/60)),i=Math.trunc(Math.abs(t%60)),a=t>=0?"+":"-";switch(e){case"short":return`${a}${Hn(n,2)}:${Hn(i,2)}`;case"narrow":return`${a}${n}${i>0?`:${i}`:""}`;case"techie":return`${a}${Hn(n,2)}${Hn(i,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function j_(t){return CRe(t,["hour","minute","second","millisecond"])}const jRe=["January","February","March","April","May","June","July","August","September","October","November","December"],cQ=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],MRe=["J","F","M","A","M","J","J","A","S","O","N","D"];function uQ(t){switch(t){case"narrow":return[...MRe];case"short":return[...cQ];case"long":return[...jRe];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const fQ=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],pQ=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],RRe=["M","T","W","T","F","S","S"];function hQ(t){switch(t){case"narrow":return[...RRe];case"short":return[...pQ];case"long":return[...fQ];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const dQ=["AM","PM"],NRe=["Before Christ","Anno Domini"],LRe=["BC","AD"],FRe=["B","A"];function mQ(t){switch(t){case"narrow":return[...FRe];case"short":return[...LRe];case"long":return[...NRe];default:return null}}function qRe(t){return dQ[t.hour<12?0:1]}function zRe(t,e){return hQ(e)[t.weekday-1]}function URe(t,e){return uQ(e)[t.month-1]}function BRe(t,e){return mQ(e)[t.year<0?0:1]}function VRe(t,e,n="always",i=!1){const a={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},o=["hours","minutes","seconds"].indexOf(t)===-1;if(n==="auto"&&o){const f=t==="days";switch(e){case 1:return f?"tomorrow":`next ${a[t][0]}`;case-1:return f?"yesterday":`last ${a[t][0]}`;case 0:return f?"today":`this ${a[t][0]}`}}const r=Object.is(e,-0)||e<0,s=Math.abs(e),c=s===1,l=a[t],u=i?c?l[1]:l[2]||l[1]:c?a[t][0]:t;return r?`${s} ${u} ago`:`in ${s} ${u}`}function TU(t,e){let n="";for(const i of t)i.literal?n+=i.val:n+=e(i.val);return n}const WRe={D:lS,DD:jJ,DDD:MJ,DDDD:RJ,t:NJ,tt:LJ,ttt:FJ,tttt:qJ,T:zJ,TT:UJ,TTT:BJ,TTTT:VJ,f:WJ,ff:GJ,fff:YJ,ffff:QJ,F:HJ,FF:KJ,FFF:JJ,FFFF:ZJ};class Wi{static create(e,n={}){return new Wi(e,n)}static parseFormat(e){let n=null,i="",a=!1;const o=[];for(let r=0;r0&&o.push({literal:a||/^\s+$/.test(i),val:i}),n=null,i="",a=!a):a||s===n?i+=s:(i.length>0&&o.push({literal:/^\s+$/.test(i),val:i}),i=s,n=s)}return i.length>0&&o.push({literal:a||/^\s+$/.test(i),val:i}),o}static macroTokenToFormatOpts(e){return WRe[e]}constructor(e,n){this.opts=n,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,n){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...n}).format()}dtFormatter(e,n={}){return this.loc.dtFormatter(e,{...this.opts,...n})}formatDateTime(e,n){return this.dtFormatter(e,n).format()}formatDateTimeParts(e,n){return this.dtFormatter(e,n).formatToParts()}formatInterval(e,n){return this.dtFormatter(e.start,n).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,n){return this.dtFormatter(e,n).resolvedOptions()}num(e,n=0){if(this.opts.forceSimple)return Hn(e,n);const i={...this.opts};return n>0&&(i.padTo=n),this.loc.numberFormatter(i).format(e)}formatDateTimeFromString(e,n){const i=this.loc.listingMode()==="en",a=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",o=(d,m)=>this.loc.extract(e,d,m),r=d=>e.isOffsetFixed&&e.offset===0&&d.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,d.format):"",s=()=>i?qRe(e):o({hour:"numeric",hourCycle:"h12"},"dayperiod"),c=(d,m)=>i?URe(e,d):o(m?{month:d}:{month:d,day:"numeric"},"month"),l=(d,m)=>i?zRe(e,d):o(m?{weekday:d}:{weekday:d,month:"long",day:"numeric"},"weekday"),u=d=>{const m=Wi.macroTokenToFormatOpts(d);return m?this.formatWithSystemDefault(e,m):d},f=d=>i?BRe(e,d):o({era:d},"era"),h=d=>{switch(d){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12===0?12:e.hour%12);case"hh":return this.num(e.hour%12===0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return r({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return r({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return r({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return s();case"d":return a?o({day:"numeric"},"day"):this.num(e.day);case"dd":return a?o({day:"2-digit"},"day"):this.num(e.day,2);case"c":return this.num(e.weekday);case"ccc":return l("short",!0);case"cccc":return l("long",!0);case"ccccc":return l("narrow",!0);case"E":return this.num(e.weekday);case"EEE":return l("short",!1);case"EEEE":return l("long",!1);case"EEEEE":return l("narrow",!1);case"L":return a?o({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return a?o({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return c("short",!0);case"LLLL":return c("long",!0);case"LLLLL":return c("narrow",!0);case"M":return a?o({month:"numeric"},"month"):this.num(e.month);case"MM":return a?o({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return c("short",!1);case"MMMM":return c("long",!1);case"MMMMM":return c("narrow",!1);case"y":return a?o({year:"numeric"},"year"):this.num(e.year);case"yy":return a?o({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return a?o({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return a?o({year:"numeric"},"year"):this.num(e.year,6);case"G":return f("short");case"GG":return f("long");case"GGGGG":return f("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"n":return this.num(e.localWeekNumber);case"nn":return this.num(e.localWeekNumber,2);case"ii":return this.num(e.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(e.localWeekYear,4);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return u(d)}};return TU(Wi.parseFormat(n),h)}formatDurationFromString(e,n){const i=c=>{switch(c[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},a=c=>l=>{const u=i(l);return u?this.num(c.get(u),l.length):l},o=Wi.parseFormat(n),r=o.reduce((c,{literal:l,val:u})=>l?c:c.concat(u),[]),s=e.shiftTo(...r.map(i).filter(c=>c));return TU(o,a(s))}}const yQ=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function Wg(...t){const e=t.reduce((n,i)=>n+i.source,"");return RegExp(`^${e}$`)}function Hg(...t){return e=>t.reduce(([n,i,a],o)=>{const[r,s,c]=o(e,a);return[{...n,...r},s||i,c]},[{},null,1]).slice(0,2)}function Gg(t,...e){if(t==null)return[null,null];for(const[n,i]of e){const a=n.exec(t);if(a)return i(a)}return[null,null]}function gQ(...t){return(e,n)=>{const i={};let a;for(a=0;ad!==void 0&&(m||d&&u)?-d:d;return[{years:h(ip(n)),months:h(ip(i)),weeks:h(ip(a)),days:h(ip(o)),hours:h(ip(r)),minutes:h(ip(s)),seconds:h(ip(c),c==="-0"),milliseconds:h(NM(l),f)}]}const iNe={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function zM(t,e,n,i,a,o,r){const s={year:e.length===2?IC(Qu(e)):Qu(e),month:cQ.indexOf(n)+1,day:Qu(i),hour:Qu(a),minute:Qu(o)};return r&&(s.second=Qu(r)),t&&(s.weekday=t.length>3?fQ.indexOf(t)+1:pQ.indexOf(t)+1),s}const aNe=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function sNe(t){const[,e,n,i,a,o,r,s,c,l,u,f]=t,h=zM(e,a,i,n,o,r,s);let d;return c?d=iNe[c]:l?d=0:d=T_(u,f),[h,new ha(d)]}function oNe(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const lNe=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,cNe=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,uNe=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function jU(t){const[,e,n,i,a,o,r,s]=t;return[zM(e,a,i,n,o,r,s),ha.utcInstance]}function fNe(t){const[,e,n,i,a,o,r,s]=t;return[zM(e,s,n,i,a,o,r),ha.utcInstance]}const pNe=Wg(GRe,qM),hNe=Wg(KRe,qM),dNe=Wg(YRe,qM),mNe=Wg(PQ),wQ=Hg(eNe,Kg,Ab,Sb),yNe=Hg(JRe,Kg,Ab,Sb),gNe=Hg(QRe,Kg,Ab,Sb),vNe=Hg(Kg,Ab,Sb);function PNe(t){return Gg(t,[pNe,wQ],[hNe,yNe],[dNe,gNe],[mNe,vNe])}function bNe(t){return Gg(oNe(t),[aNe,sNe])}function wNe(t){return Gg(t,[lNe,jU],[cNe,jU],[uNe,fNe])}function $Ne(t){return Gg(t,[rNe,nNe])}const ANe=Hg(Kg);function SNe(t){return Gg(t,[tNe,ANe])}const _Ne=Wg(ZRe,XRe),xNe=Wg(bQ),DNe=Hg(Kg,Ab,Sb);function kNe(t){return Gg(t,[_Ne,wQ],[xNe,DNe])}const MU="Invalid Duration",$Q={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},ONe={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...$Q},Ms=146097/400,td=146097/4800,ENe={years:{quarters:4,months:12,weeks:Ms/7,days:Ms,hours:Ms*24,minutes:Ms*24*60,seconds:Ms*24*60*60,milliseconds:Ms*24*60*60*1e3},quarters:{months:3,weeks:Ms/28,days:Ms/4,hours:Ms*24/4,minutes:Ms*24*60/4,seconds:Ms*24*60*60/4,milliseconds:Ms*24*60*60*1e3/4},months:{weeks:td/7,days:td,hours:td*24,minutes:td*24*60,seconds:td*24*60*60,milliseconds:td*24*60*60*1e3},...$Q},Dp=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],INe=Dp.slice(0).reverse();function Mu(t,e,n=!1){const i={values:n?e.values:{...t.values,...e.values||{}},loc:t.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||t.conversionAccuracy,matrix:e.matrix||t.matrix};return new sr(i)}function AQ(t,e){let n=e.milliseconds??0;for(const i of INe.slice(1))e[i]&&(n+=e[i]*t[i].milliseconds);return n}function RU(t,e){const n=AQ(t,e)<0?-1:1;Dp.reduceRight((i,a)=>{if(Tt(e[a]))return i;if(i){const o=e[i]*n,r=t[a][i],s=Math.floor(o/r);e[a]+=s*n,e[i]-=s*r*n}return a},null),Dp.reduce((i,a)=>{if(Tt(e[a]))return i;if(i){const o=e[i]%1;e[i]-=o,e[a]+=o*t[i][a]}return a},null)}function CNe(t){const e={};for(const[n,i]of Object.entries(t))i!==0&&(e[n]=i);return e}class sr{constructor(e){const n=e.conversionAccuracy==="longterm"||!1;let i=n?ENe:ONe;e.matrix&&(i=e.matrix),this.values=e.values,this.loc=e.loc||wr.create(),this.conversionAccuracy=n?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=i,this.isLuxonDuration=!0}static fromMillis(e,n){return sr.fromObject({milliseconds:e},n)}static fromObject(e,n={}){if(e==null||typeof e!="object")throw new zi(`Duration.fromObject: argument expected to be an object, got ${e===null?"null":typeof e}`);return new sr({values:fS(e,sr.normalizeUnit),loc:wr.fromObject(n),conversionAccuracy:n.conversionAccuracy,matrix:n.matrix})}static fromDurationLike(e){if(Sf(e))return sr.fromMillis(e);if(sr.isDuration(e))return e;if(typeof e=="object")return sr.fromObject(e);throw new zi(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,n){const[i]=$Ne(e);return i?sr.fromObject(i,n):sr.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,n){const[i]=SNe(e);return i?sr.fromObject(i,n):sr.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,n=null){if(!e)throw new zi("need to specify a reason the Duration is invalid");const i=e instanceof Ko?e:new Ko(e,n);if(fn.throwOnInvalid)throw new rRe(i);return new sr({invalid:i})}static normalizeUnit(e){const n={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e&&e.toLowerCase()];if(!n)throw new TJ(e);return n}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,n={}){const i={...n,floor:n.round!==!1&&n.floor!==!1};return this.isValid?Wi.create(this.loc,i).formatDurationFromString(this,e):MU}toHuman(e={}){if(!this.isValid)return MU;const n=Dp.map(i=>{const a=this.values[i];return Tt(a)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:i.slice(0,-1)}).format(a)}).filter(i=>i);return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(n)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return this.years!==0&&(e+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(e+=this.months+this.quarters*3+"M"),this.weeks!==0&&(e+=this.weeks+"W"),this.days!==0&&(e+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(e+="T"),this.hours!==0&&(e+=this.hours+"H"),this.minutes!==0&&(e+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(e+=LM(this.seconds+this.milliseconds/1e3,3)+"S"),e==="P"&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;const n=this.toMillis();return n<0||n>=864e5?null:(e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e,includeOffset:!1},At.fromMillis(n,{zone:"UTC"}).toISOTime(e))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?AQ(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const n=sr.fromDurationLike(e),i={};for(const a of Dp)(yg(n.values,a)||yg(this.values,a))&&(i[a]=n.get(a)+this.get(a));return Mu(this,{values:i},!0)}minus(e){if(!this.isValid)return this;const n=sr.fromDurationLike(e);return this.plus(n.negate())}mapUnits(e){if(!this.isValid)return this;const n={};for(const i of Object.keys(this.values))n[i]=lQ(e(this.values[i],i));return Mu(this,{values:n},!0)}get(e){return this[sr.normalizeUnit(e)]}set(e){if(!this.isValid)return this;const n={...this.values,...fS(e,sr.normalizeUnit)};return Mu(this,{values:n})}reconfigure({locale:e,numberingSystem:n,conversionAccuracy:i,matrix:a}={}){const r={loc:this.loc.clone({locale:e,numberingSystem:n}),matrix:a,conversionAccuracy:i};return Mu(this,r)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();return RU(this.matrix,e),Mu(this,{values:e},!0)}rescale(){if(!this.isValid)return this;const e=CNe(this.normalize().shiftToAll().toObject());return Mu(this,{values:e},!0)}shiftTo(...e){if(!this.isValid)return this;if(e.length===0)return this;e=e.map(r=>sr.normalizeUnit(r));const n={},i={},a=this.toObject();let o;for(const r of Dp)if(e.indexOf(r)>=0){o=r;let s=0;for(const l in i)s+=this.matrix[l][r]*i[l],i[l]=0;Sf(a[r])&&(s+=a[r]);const c=Math.trunc(s);n[r]=c,i[r]=(s*1e3-c*1e3)/1e3}else Sf(a[r])&&(i[r]=a[r]);for(const r in i)i[r]!==0&&(n[o]+=r===o?i[r]:i[r]/this.matrix[o][r]);return RU(this.matrix,n),Mu(this,{values:n},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const e={};for(const n of Object.keys(this.values))e[n]=this.values[n]===0?0:-this.values[n];return Mu(this,{values:e},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid||!this.loc.equals(e.loc))return!1;function n(i,a){return i===void 0||i===0?a===void 0||a===0:i===a}for(const i of Dp)if(!n(this.values[i],e.values[i]))return!1;return!0}}const rd="Invalid Interval";function TNe(t,e){return!t||!t.isValid?gn.invalid("missing or invalid start"):!e||!e.isValid?gn.invalid("missing or invalid end"):ee:!1}isBefore(e){return this.isValid?this.e<=e:!1}contains(e){return this.isValid?this.s<=e&&this.e>e:!1}set({start:e,end:n}={}){return this.isValid?gn.fromDateTimes(e||this.s,n||this.e):this}splitAt(...e){if(!this.isValid)return[];const n=e.map(G0).filter(r=>this.contains(r)).sort((r,s)=>r.toMillis()-s.toMillis()),i=[];let{s:a}=this,o=0;for(;a+this.e?this.e:r;i.push(gn.fromDateTimes(a,s)),a=s,o+=1}return i}splitBy(e){const n=sr.fromDurationLike(e);if(!this.isValid||!n.isValid||n.as("milliseconds")===0)return[];let{s:i}=this,a=1,o;const r=[];for(;ic*a));o=+s>+this.e?this.e:s,r.push(gn.fromDateTimes(i,o)),i=o,a+=1}return r}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s=e.e:!1}equals(e){return!this.isValid||!e.isValid?!1:this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;const n=this.s>e.s?this.s:e.s,i=this.e=i?null:gn.fromDateTimes(n,i)}union(e){if(!this.isValid)return this;const n=this.se.e?this.e:e.e;return gn.fromDateTimes(n,i)}static merge(e){const[n,i]=e.sort((a,o)=>a.s-o.s).reduce(([a,o],r)=>o?o.overlaps(r)||o.abutsStart(r)?[a,o.union(r)]:[a.concat([o]),r]:[a,r],[[],null]);return i&&n.push(i),n}static xor(e){let n=null,i=0;const a=[],o=e.map(c=>[{time:c.s,type:"s"},{time:c.e,type:"e"}]),r=Array.prototype.concat(...o),s=r.sort((c,l)=>c.time-l.time);for(const c of s)i+=c.type==="s"?1:-1,i===1?n=c.time:(n&&+n!=+c.time&&a.push(gn.fromDateTimes(n,c.time)),n=null);return gn.merge(a)}difference(...e){return gn.xor([this].concat(e)).map(n=>this.intersection(n)).filter(n=>n&&!n.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:rd}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(e=lS,n={}){return this.isValid?Wi.create(this.s.loc.clone(n),e).formatInterval(this):rd}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:rd}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:rd}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:rd}toFormat(e,{separator:n=" – "}={}){return this.isValid?`${this.s.toFormat(e)}${n}${this.e.toFormat(e)}`:rd}toDuration(e,n){return this.isValid?this.e.diff(this.s,e,n):sr.invalid(this.invalidReason)}mapEndpoints(e){return gn.fromDateTimes(e(this.s),e(this.e))}}class Aw{static hasDST(e=fn.defaultZone){const n=At.now().setZone(e).set({month:12});return!e.isUniversal&&n.offset!==n.set({month:6}).offset}static isValidIANAZone(e){return ou.isValidZone(e)}static normalizeZone(e){return rf(e,fn.defaultZone)}static getStartOfWeek({locale:e=null,locObj:n=null}={}){return(n||wr.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:n=null}={}){return(n||wr.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:n=null}={}){return(n||wr.create(e)).getWeekendDays().slice()}static months(e="long",{locale:n=null,numberingSystem:i=null,locObj:a=null,outputCalendar:o="gregory"}={}){return(a||wr.create(n,i,o)).months(e)}static monthsFormat(e="long",{locale:n=null,numberingSystem:i=null,locObj:a=null,outputCalendar:o="gregory"}={}){return(a||wr.create(n,i,o)).months(e,!0)}static weekdays(e="long",{locale:n=null,numberingSystem:i=null,locObj:a=null}={}){return(a||wr.create(n,i,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:n=null,numberingSystem:i=null,locObj:a=null}={}){return(a||wr.create(n,i,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return wr.create(e).meridiems()}static eras(e="short",{locale:n=null}={}){return wr.create(n,null,"gregory").eras(e)}static features(){return{relative:aQ(),localeWeek:sQ()}}}function NU(t,e){const n=a=>a.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),i=n(e)-n(t);return Math.floor(sr.fromMillis(i).as("days"))}function jNe(t,e,n){const i=[["years",(c,l)=>l.year-c.year],["quarters",(c,l)=>l.quarter-c.quarter+(l.year-c.year)*4],["months",(c,l)=>l.month-c.month+(l.year-c.year)*12],["weeks",(c,l)=>{const u=NU(c,l);return(u-u%7)/7}],["days",NU]],a={},o=t;let r,s;for(const[c,l]of i)n.indexOf(c)>=0&&(r=c,a[c]=l(t,e),s=o.plus(a),s>e?(a[c]--,t=o.plus(a),t>e&&(s=t,a[c]--,t=o.plus(a))):t=s);return[t,a,s,r]}function MNe(t,e,n,i){let[a,o,r,s]=jNe(t,e,n);const c=e-a,l=n.filter(f=>["hours","minutes","seconds","milliseconds"].indexOf(f)>=0);l.length===0&&(r0?sr.fromMillis(c,i).shiftTo(...l).plus(u):u}const RNe="missing Intl.DateTimeFormat.formatToParts support";function hr(t,e=n=>n){return{regex:t,deser:([n])=>e(_Re(n))}}const NNe=" ",SQ=`[ ${NNe}]`,_Q=new RegExp(SQ,"g");function LNe(t){return t.replace(/\./g,"\\.?").replace(_Q,SQ)}function LU(t){return t.replace(/\./g,"").replace(_Q," ").toLowerCase()}function To(t,e){return t===null?null:{regex:RegExp(t.map(LNe).join("|")),deser:([n])=>t.findIndex(i=>LU(n)===LU(i))+e}}function FU(t,e){return{regex:t,deser:([,n,i])=>T_(n,i),groups:e}}function Sw(t){return{regex:t,deser:([e])=>e}}function FNe(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function qNe(t,e){const n=Co(e),i=Co(e,"{2}"),a=Co(e,"{3}"),o=Co(e,"{4}"),r=Co(e,"{6}"),s=Co(e,"{1,2}"),c=Co(e,"{1,3}"),l=Co(e,"{1,6}"),u=Co(e,"{1,9}"),f=Co(e,"{2,4}"),h=Co(e,"{4,6}"),d=b=>({regex:RegExp(FNe(b.val)),deser:([v])=>v,literal:!0}),g=(b=>{if(t.literal)return d(b);switch(b.val){case"G":return To(e.eras("short"),0);case"GG":return To(e.eras("long"),0);case"y":return hr(l);case"yy":return hr(f,IC);case"yyyy":return hr(o);case"yyyyy":return hr(h);case"yyyyyy":return hr(r);case"M":return hr(s);case"MM":return hr(i);case"MMM":return To(e.months("short",!0),1);case"MMMM":return To(e.months("long",!0),1);case"L":return hr(s);case"LL":return hr(i);case"LLL":return To(e.months("short",!1),1);case"LLLL":return To(e.months("long",!1),1);case"d":return hr(s);case"dd":return hr(i);case"o":return hr(c);case"ooo":return hr(a);case"HH":return hr(i);case"H":return hr(s);case"hh":return hr(i);case"h":return hr(s);case"mm":return hr(i);case"m":return hr(s);case"q":return hr(s);case"qq":return hr(i);case"s":return hr(s);case"ss":return hr(i);case"S":return hr(c);case"SSS":return hr(a);case"u":return Sw(u);case"uu":return Sw(s);case"uuu":return hr(n);case"a":return To(e.meridiems(),0);case"kkkk":return hr(o);case"kk":return hr(f,IC);case"W":return hr(s);case"WW":return hr(i);case"E":case"c":return hr(n);case"EEE":return To(e.weekdays("short",!1),1);case"EEEE":return To(e.weekdays("long",!1),1);case"ccc":return To(e.weekdays("short",!0),1);case"cccc":return To(e.weekdays("long",!0),1);case"Z":case"ZZ":return FU(new RegExp(`([+-]${s.source})(?::(${i.source}))?`),2);case"ZZZ":return FU(new RegExp(`([+-]${s.source})(${i.source})?`),2);case"z":return Sw(/[a-z_+-/]{1,256}?/i);case" ":return Sw(/[^\S\n\r]/);default:return d(b)}})(t)||{invalidReason:RNe};return g.token=t,g}const zNe={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function UNe(t,e,n){const{type:i,value:a}=t;if(i==="literal"){const c=/^\s+$/.test(a);return{literal:!c,val:c?" ":a}}const o=e[i];let r=i;i==="hour"&&(e.hour12!=null?r=e.hour12?"hour12":"hour24":e.hourCycle!=null?e.hourCycle==="h11"||e.hourCycle==="h12"?r="hour12":r="hour24":r=n.hour12?"hour12":"hour24");let s=zNe[r];if(typeof s=="object"&&(s=s[o]),s)return{literal:!1,val:s}}function BNe(t){return[`^${t.map(n=>n.regex).reduce((n,i)=>`${n}(${i.source})`,"")}$`,t]}function VNe(t,e,n){const i=t.match(e);if(i){const a={};let o=1;for(const r in n)if(yg(n,r)){const s=n[r],c=s.groups?s.groups+1:1;!s.literal&&s.token&&(a[s.token.val[0]]=s.deser(i.slice(o,o+c))),o+=c}return[i,a]}else return[i,{}]}function WNe(t){const e=o=>{switch(o){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let n=null,i;return Tt(t.z)||(n=ou.create(t.z)),Tt(t.Z)||(n||(n=new ha(t.Z)),i=t.Z),Tt(t.q)||(t.M=(t.q-1)*3+1),Tt(t.h)||(t.h<12&&t.a===1?t.h+=12:t.h===12&&t.a===0&&(t.h=0)),t.G===0&&t.y&&(t.y=-t.y),Tt(t.u)||(t.S=NM(t.u)),[Object.keys(t).reduce((o,r)=>{const s=e(r);return s&&(o[s]=t[r]),o},{}),n,i]}let mO=null;function HNe(){return mO||(mO=At.fromMillis(1555555555555)),mO}function GNe(t,e){if(t.literal)return t;const n=Wi.macroTokenToFormatOpts(t.val),i=OQ(n,e);return i==null||i.includes(void 0)?t:i}function xQ(t,e){return Array.prototype.concat(...t.map(n=>GNe(n,e)))}class DQ{constructor(e,n){if(this.locale=e,this.format=n,this.tokens=xQ(Wi.parseFormat(n),e),this.units=this.tokens.map(i=>qNe(i,e)),this.disqualifyingUnit=this.units.find(i=>i.invalidReason),!this.disqualifyingUnit){const[i,a]=BNe(this.units);this.regex=RegExp(i,"i"),this.handlers=a}}explainFromTokens(e){if(this.isValid){const[n,i]=VNe(e,this.regex,this.handlers),[a,o,r]=i?WNe(i):[null,null,void 0];if(yg(i,"a")&&yg(i,"H"))throw new zd("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:this.tokens,regex:this.regex,rawMatches:n,matches:i,result:a,zone:o,specificOffset:r}}else return{input:e,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}}function kQ(t,e,n){return new DQ(t,n).explainFromTokens(e)}function KNe(t,e,n){const{result:i,zone:a,specificOffset:o,invalidReason:r}=kQ(t,e,n);return[i,a,o,r]}function OQ(t,e){if(!t)return null;const i=Wi.create(e,t).dtFormatter(HNe()),a=i.formatToParts(),o=i.resolvedOptions();return a.map(r=>UNe(r,t,o))}const yO="Invalid DateTime",qU=864e13;function Av(t){return new Ko("unsupported zone",`the zone "${t.name}" is not supported`)}function gO(t){return t.weekData===null&&(t.weekData=cS(t.c)),t.weekData}function vO(t){return t.localWeekData===null&&(t.localWeekData=cS(t.c,t.loc.getMinDaysInFirstWeek(),t.loc.getStartOfWeek())),t.localWeekData}function ap(t,e){const n={ts:t.ts,zone:t.zone,c:t.c,o:t.o,loc:t.loc,invalid:t.invalid};return new At({...n,...e,old:n})}function EQ(t,e,n){let i=t-e*60*1e3;const a=n.offset(i);if(e===a)return[i,e];i-=(a-e)*60*1e3;const o=n.offset(i);return a===o?[i,a]:[t-Math.min(a,o)*60*1e3,Math.max(a,o)]}function _w(t,e){t+=e*60*1e3;const n=new Date(t);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function E$(t,e,n){return EQ(C_(t),e,n)}function zU(t,e){const n=t.o,i=t.c.year+Math.trunc(e.years),a=t.c.month+Math.trunc(e.months)+Math.trunc(e.quarters)*3,o={...t.c,year:i,month:a,day:Math.min(t.c.day,uS(i,a))+Math.trunc(e.days)+Math.trunc(e.weeks)*7},r=sr.fromObject({years:e.years-Math.trunc(e.years),quarters:e.quarters-Math.trunc(e.quarters),months:e.months-Math.trunc(e.months),weeks:e.weeks-Math.trunc(e.weeks),days:e.days-Math.trunc(e.days),hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),s=C_(o);let[c,l]=EQ(s,n,t.zone);return r!==0&&(c+=r,l=t.zone.offset(c)),{ts:c,o:l}}function nd(t,e,n,i,a,o){const{setZone:r,zone:s}=n;if(t&&Object.keys(t).length!==0||e){const c=e||s,l=At.fromObject(t,{...n,zone:c,specificOffset:o});return r?l:l.setZone(s)}else return At.invalid(new Ko("unparsable",`the input "${a}" can't be parsed as ${i}`))}function xw(t,e,n=!0){return t.isValid?Wi.create(wr.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(t,e):null}function PO(t,e){const n=t.c.year>9999||t.c.year<0;let i="";return n&&t.c.year>=0&&(i+="+"),i+=Hn(t.c.year,n?6:4),e?(i+="-",i+=Hn(t.c.month),i+="-",i+=Hn(t.c.day)):(i+=Hn(t.c.month),i+=Hn(t.c.day)),i}function UU(t,e,n,i,a,o){let r=Hn(t.c.hour);return e?(r+=":",r+=Hn(t.c.minute),(t.c.millisecond!==0||t.c.second!==0||!n)&&(r+=":")):r+=Hn(t.c.minute),(t.c.millisecond!==0||t.c.second!==0||!n)&&(r+=Hn(t.c.second),(t.c.millisecond!==0||!i)&&(r+=".",r+=Hn(t.c.millisecond,3))),a&&(t.isOffsetFixed&&t.offset===0&&!o?r+="Z":t.o<0?(r+="-",r+=Hn(Math.trunc(-t.o/60)),r+=":",r+=Hn(Math.trunc(-t.o%60))):(r+="+",r+=Hn(Math.trunc(t.o/60)),r+=":",r+=Hn(Math.trunc(t.o%60)))),o&&(r+="["+t.zone.ianaName+"]"),r}const IQ={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},YNe={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},JNe={ordinal:1,hour:0,minute:0,second:0,millisecond:0},CQ=["year","month","day","hour","minute","second","millisecond"],QNe=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],ZNe=["year","ordinal","hour","minute","second","millisecond"];function XNe(t){const e={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[t.toLowerCase()];if(!e)throw new TJ(t);return e}function BU(t){switch(t.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return XNe(t)}}function eLe(t){return C$[t]||(I$===void 0&&(I$=fn.now()),C$[t]=t.offset(I$)),C$[t]}function VU(t,e){const n=rf(e.zone,fn.defaultZone);if(!n.isValid)return At.invalid(Av(n));const i=wr.fromObject(e);let a,o;if(Tt(t.year))a=fn.now();else{for(const c of CQ)Tt(t[c])&&(t[c]=IQ[c]);const r=nQ(t)||iQ(t);if(r)return At.invalid(r);const s=eLe(n);[a,o]=E$(t,s,n)}return new At({ts:a,zone:n,loc:i,o})}function WU(t,e,n){const i=Tt(n.round)?!0:n.round,a=(r,s)=>(r=LM(r,i||n.calendary?0:2,!0),e.loc.clone(n).relFormatter(n).format(r,s)),o=r=>n.calendary?e.hasSame(t,r)?0:e.startOf(r).diff(t.startOf(r),r).get(r):e.diff(t,r).get(r);if(n.unit)return a(o(n.unit),n.unit);for(const r of n.units){const s=o(r);if(Math.abs(s)>=1)return a(s,r)}return a(t>e?-0:0,n.units[n.units.length-1])}function HU(t){let e={},n;return t.length>0&&typeof t[t.length-1]=="object"?(e=t[t.length-1],n=Array.from(t).slice(0,t.length-1)):n=Array.from(t),[e,n]}let I$,C$={};class At{constructor(e){const n=e.zone||fn.defaultZone;let i=e.invalid||(Number.isNaN(e.ts)?new Ko("invalid input"):null)||(n.isValid?null:Av(n));this.ts=Tt(e.ts)?fn.now():e.ts;let a=null,o=null;if(!i)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(n))[a,o]=[e.old.c,e.old.o];else{const s=Sf(e.o)&&!e.old?e.o:n.offset(this.ts);a=_w(this.ts,s),i=Number.isNaN(a.year)?new Ko("invalid input"):null,a=i?null:a,o=i?null:s}this._zone=n,this.loc=e.loc||wr.create(),this.invalid=i,this.weekData=null,this.localWeekData=null,this.c=a,this.o=o,this.isLuxonDateTime=!0}static now(){return new At({})}static local(){const[e,n]=HU(arguments),[i,a,o,r,s,c,l]=n;return VU({year:i,month:a,day:o,hour:r,minute:s,second:c,millisecond:l},e)}static utc(){const[e,n]=HU(arguments),[i,a,o,r,s,c,l]=n;return e.zone=ha.utcInstance,VU({year:i,month:a,day:o,hour:r,minute:s,second:c,millisecond:l},e)}static fromJSDate(e,n={}){const i=ERe(e)?e.valueOf():NaN;if(Number.isNaN(i))return At.invalid("invalid input");const a=rf(n.zone,fn.defaultZone);return a.isValid?new At({ts:i,zone:a,loc:wr.fromObject(n)}):At.invalid(Av(a))}static fromMillis(e,n={}){if(Sf(e))return e<-qU||e>qU?At.invalid("Timestamp out of range"):new At({ts:e,zone:rf(n.zone,fn.defaultZone),loc:wr.fromObject(n)});throw new zi(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,n={}){if(Sf(e))return new At({ts:e*1e3,zone:rf(n.zone,fn.defaultZone),loc:wr.fromObject(n)});throw new zi("fromSeconds requires a numerical input")}static fromObject(e,n={}){e=e||{};const i=rf(n.zone,fn.defaultZone);if(!i.isValid)return At.invalid(Av(i));const a=wr.fromObject(n),o=fS(e,BU),{minDaysInFirstWeek:r,startOfWeek:s}=EU(o,a),c=fn.now(),l=Tt(n.specificOffset)?i.offset(c):n.specificOffset,u=!Tt(o.ordinal),f=!Tt(o.year),h=!Tt(o.month)||!Tt(o.day),d=f||h,m=o.weekYear||o.weekNumber;if((d||u)&&m)throw new zd("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(h&&u)throw new zd("Can't mix ordinal dates with month/day");const g=m||o.weekday&&!d;let b,v,P=_w(c,l);g?(b=QNe,v=YNe,P=cS(P,r,s)):u?(b=ZNe,v=JNe,P=dO(P)):(b=CQ,v=IQ);let A=!1;for(const L of b){const V=o[L];Tt(V)?A?o[L]=v[L]:o[L]=P[L]:A=!0}const _=g?DRe(o,r,s):u?kRe(o):nQ(o),x=_||iQ(o);if(x)return At.invalid(x);const E=g?kU(o,r,s):u?OU(o):o,[j,F]=E$(E,l,i),I=new At({ts:j,zone:i,o:F,loc:a});return o.weekday&&d&&e.weekday!==I.weekday?At.invalid("mismatched weekday",`you can't specify both a weekday of ${o.weekday} and a date of ${I.toISO()}`):I.isValid?I:At.invalid(I.invalid)}static fromISO(e,n={}){const[i,a]=PNe(e);return nd(i,a,n,"ISO 8601",e)}static fromRFC2822(e,n={}){const[i,a]=bNe(e);return nd(i,a,n,"RFC 2822",e)}static fromHTTP(e,n={}){const[i,a]=wNe(e);return nd(i,a,n,"HTTP",n)}static fromFormat(e,n,i={}){if(Tt(e)||Tt(n))throw new zi("fromFormat requires an input string and a format");const{locale:a=null,numberingSystem:o=null}=i,r=wr.fromOpts({locale:a,numberingSystem:o,defaultToEN:!0}),[s,c,l,u]=KNe(r,e,n);return u?At.invalid(u):nd(s,c,i,`format ${n}`,e,l)}static fromString(e,n,i={}){return At.fromFormat(e,n,i)}static fromSQL(e,n={}){const[i,a]=kNe(e);return nd(i,a,n,"SQL",e)}static invalid(e,n=null){if(!e)throw new zi("need to specify a reason the DateTime is invalid");const i=e instanceof Ko?e:new Ko(e,n);if(fn.throwOnInvalid)throw new eRe(i);return new At({invalid:i})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,n={}){const i=OQ(e,wr.fromObject(n));return i?i.map(a=>a?a.val:null).join(""):null}static expandFormat(e,n={}){return xQ(Wi.parseFormat(e),wr.fromObject(n)).map(a=>a.val).join("")}static resetCache(){I$=void 0,C$={}}get(e){return this[e]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?gO(this).weekYear:NaN}get weekNumber(){return this.isValid?gO(this).weekNumber:NaN}get weekday(){return this.isValid?gO(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?vO(this).weekday:NaN}get localWeekNumber(){return this.isValid?vO(this).weekNumber:NaN}get localWeekYear(){return this.isValid?vO(this).weekYear:NaN}get ordinal(){return this.isValid?dO(this.c).ordinal:NaN}get monthShort(){return this.isValid?Aw.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Aw.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Aw.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Aw.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const e=864e5,n=6e4,i=C_(this.c),a=this.zone.offset(i-e),o=this.zone.offset(i+e),r=this.zone.offset(i-a*n),s=this.zone.offset(i-o*n);if(r===s)return[this];const c=i-r*n,l=i-s*n,u=_w(c,r),f=_w(l,s);return u.hour===f.hour&&u.minute===f.minute&&u.second===f.second&&u.millisecond===f.millisecond?[ap(this,{ts:c}),ap(this,{ts:l})]:[this]}get isInLeapYear(){return $b(this.year)}get daysInMonth(){return uS(this.year,this.month)}get daysInYear(){return this.isValid?am(this.year):NaN}get weeksInWeekYear(){return this.isValid?zP(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?zP(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){const{locale:n,numberingSystem:i,calendar:a}=Wi.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:n,numberingSystem:i,outputCalendar:a}}toUTC(e=0,n={}){return this.setZone(ha.instance(e),n)}toLocal(){return this.setZone(fn.defaultZone)}setZone(e,{keepLocalTime:n=!1,keepCalendarTime:i=!1}={}){if(e=rf(e,fn.defaultZone),e.equals(this.zone))return this;if(e.isValid){let a=this.ts;if(n||i){const o=e.offset(this.ts),r=this.toObject();[a]=E$(r,o,e)}return ap(this,{ts:a,zone:e})}else return At.invalid(Av(e))}reconfigure({locale:e,numberingSystem:n,outputCalendar:i}={}){const a=this.loc.clone({locale:e,numberingSystem:n,outputCalendar:i});return ap(this,{loc:a})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const n=fS(e,BU),{minDaysInFirstWeek:i,startOfWeek:a}=EU(n,this.loc),o=!Tt(n.weekYear)||!Tt(n.weekNumber)||!Tt(n.weekday),r=!Tt(n.ordinal),s=!Tt(n.year),c=!Tt(n.month)||!Tt(n.day),l=s||c,u=n.weekYear||n.weekNumber;if((l||r)&&u)throw new zd("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(c&&r)throw new zd("Can't mix ordinal dates with month/day");let f;o?f=kU({...cS(this.c,i,a),...n},i,a):Tt(n.ordinal)?(f={...this.toObject(),...n},Tt(n.day)&&(f.day=Math.min(uS(f.year,f.month),f.day))):f=OU({...dO(this.c),...n});const[h,d]=E$(f,this.o,this.zone);return ap(this,{ts:h,o:d})}plus(e){if(!this.isValid)return this;const n=sr.fromDurationLike(e);return ap(this,zU(this,n))}minus(e){if(!this.isValid)return this;const n=sr.fromDurationLike(e).negate();return ap(this,zU(this,n))}startOf(e,{useLocaleWeeks:n=!1}={}){if(!this.isValid)return this;const i={},a=sr.normalizeUnit(e);switch(a){case"years":i.month=1;case"quarters":case"months":i.day=1;case"weeks":case"days":i.hour=0;case"hours":i.minute=0;case"minutes":i.second=0;case"seconds":i.millisecond=0;break}if(a==="weeks")if(n){const o=this.loc.getStartOfWeek(),{weekday:r}=this;rthis.valueOf(),s=r?this:e,c=r?e:this,l=MNe(s,c,o,a);return r?l.negate():l}diffNow(e="milliseconds",n={}){return this.diff(At.now(),e,n)}until(e){return this.isValid?gn.fromDateTimes(this,e):this}hasSame(e,n,i){if(!this.isValid)return!1;const a=e.valueOf(),o=this.setZone(e.zone,{keepLocalTime:!0});return o.startOf(n,i)<=a&&a<=o.endOf(n,i)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;const n=e.base||At.fromObject({},{zone:this.zone}),i=e.padding?thisn.valueOf(),Math.min)}static max(...e){if(!e.every(At.isDateTime))throw new zi("max requires all arguments be DateTimes");return IU(e,n=>n.valueOf(),Math.max)}static fromFormatExplain(e,n,i={}){const{locale:a=null,numberingSystem:o=null}=i,r=wr.fromOpts({locale:a,numberingSystem:o,defaultToEN:!0});return kQ(r,e,n)}static fromStringExplain(e,n,i={}){return At.fromFormatExplain(e,n,i)}static buildFormatParser(e,n={}){const{locale:i=null,numberingSystem:a=null}=n,o=wr.fromOpts({locale:i,numberingSystem:a,defaultToEN:!0});return new DQ(o,e)}static fromFormatParser(e,n,i={}){if(Tt(e)||Tt(n))throw new zi("fromFormatParser requires an input string and a format parser");const{locale:a=null,numberingSystem:o=null}=i,r=wr.fromOpts({locale:a,numberingSystem:o,defaultToEN:!0});if(!r.equals(n.locale))throw new zi(`fromFormatParser called with a locale of ${r}, but the format parser was created for ${n.locale}`);const{result:s,zone:c,specificOffset:l,invalidReason:u}=n.explainFromTokens(e);return u?At.invalid(u):nd(s,c,i,`format ${n.format}`,e,l)}static get DATE_SHORT(){return lS}static get DATE_MED(){return jJ}static get DATE_MED_WITH_WEEKDAY(){return nRe}static get DATE_FULL(){return MJ}static get DATE_HUGE(){return RJ}static get TIME_SIMPLE(){return NJ}static get TIME_WITH_SECONDS(){return LJ}static get TIME_WITH_SHORT_OFFSET(){return FJ}static get TIME_WITH_LONG_OFFSET(){return qJ}static get TIME_24_SIMPLE(){return zJ}static get TIME_24_WITH_SECONDS(){return UJ}static get TIME_24_WITH_SHORT_OFFSET(){return BJ}static get TIME_24_WITH_LONG_OFFSET(){return VJ}static get DATETIME_SHORT(){return WJ}static get DATETIME_SHORT_WITH_SECONDS(){return HJ}static get DATETIME_MED(){return GJ}static get DATETIME_MED_WITH_SECONDS(){return KJ}static get DATETIME_MED_WITH_WEEKDAY(){return iRe}static get DATETIME_FULL(){return YJ}static get DATETIME_FULL_WITH_SECONDS(){return JJ}static get DATETIME_HUGE(){return QJ}static get DATETIME_HUGE_WITH_SECONDS(){return ZJ}}function G0(t){if(At.isDateTime(t))return t;if(t&&t.valueOf&&Sf(t.valueOf()))return At.fromJSDate(t);if(t&&typeof t=="object")return At.fromObject(t);throw new zi(`Unknown datetime argument: ${t}, of type ${typeof t}`)}fn.defaultZone="utc";const tLe=/^\d{4}-\d{2}-\d{2}$/,rLe=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d+)?Z$/,_l=t=>t==="..",Ud=t=>tLe.test(t),Bd=t=>rLe.test(t),UM=[];UM.push({name:"/req/core/interval",validateFeature:t=>{var n;const e=(n=t.time)==null?void 0:n.interval;if(e!==void 0&&!_l(e[0])&&!_l(e[1])&&At.fromISO(e[0])>At.fromISO(e[1]))return{pointer:"/time",message:'If the "time" object in any JSON-FG feature in the JSON document includes an "interval" member, the start instant must be earlier than or equal to the end instant.'};if(e!==void 0&&Ud(e[0])&&Bd(e[1]))return{pointer:"/time",message:'If the start is a date, the end SHALL be a date, too, or "..".'};if(e!==void 0&&Bd(e[0])&&Ud(e[1]))return{pointer:"/time",message:'If the start is a timestamp, the end SHALL be a timestamp, too, or "..".'}}});UM.push({name:"/req/core/instant-and-interval",validateFeature:t=>{if(t.time){const{date:e,timestamp:n,interval:i}=t.time;if(e!==void 0&&n!==void 0&&!n.startsWith(e))return{pointer:"/time",message:'If the "time" object in any JSON-FG feature in the JSON document includes both a "date" and a "timestamp" member, the full-date parts SHALL be identical.'};if(n!==void 0&&i!==void 0){const a=At.fromISO(n),o=a.startOf("day");if((Ud(i[0])||Ud(i[1]))&&(!_l(i[0])&&oAt.fromISO(i[1])))return{pointer:"/time",message:'If the "time" object in any JSON-FG feature in the JSON document includes both a "timestamp" and an "interval" member with start/end dates, the interval SHALL contain the date of the timestamp.'};if((Bd(i[0])||Bd(i[1]))&&(!_l(i[0])&&aAt.fromISO(i[1])))return{pointer:"/time",message:'If the "time" object in any JSON-FG feature in the JSON document includes both a "timestamp" and an "interval" member with start/end timestamps, the interval SHALL contain the timestamp.'}}if(e!==void 0&&i!==void 0){const a=At.fromISO(e);if((Ud(i[0])||Ud(i[1]))&&(!_l(i[0])&&aAt.fromISO(i[1])))return{pointer:"/time",message:'If the "time" object in any JSON-FG feature in the JSON document includes both a "date" and an "interval" member with start/end dates, the interval SHALL contain the date.'};if((Bd(i[0])||Bd(i[1]))&&(!_l(i[0])&&aAt.fromISO(i[1]).startOf("day")))return{pointer:"/time",message:'If the "time" object in any JSON-FG feature in the JSON document includes both a "date" and an "interval" member with start/end timestamps, the interval SHALL include timestamps on the date.'}}}}});const nLe="http://www.opengis.net/spec/json-fg-1/0.2/conf/types-schemas",iLe="[ogc-json-fg-1-0.2:types-schemas]",Vd=t=>t.conformsTo!==void 0&&(t.conformsTo.includes(nLe)||t.conformsTo.includes(iLe)),Dw=(t,e)=>t.place?e.includes(t.place.type):t.geometry?e.includes(t.geometry.type):!0,M_=[];M_.push({name:"/req/types-schemas/metadata",validateFeature:(t,e)=>{if(e&&t.featureType!==void 0&&!Vd(t))return{pointer:"/conformsTo",message:'When the "featureType" member is present, the "conformsTo" member of the JSON document SHALL include at least the Feature Types and Schemas conformance class.'}},validateFeatureCollection:t=>{if((t.featureType!==void 0||t.features.some(e=>e.featureType!==void 0))&&!Vd(t))return{pointer:"/conformsTo",message:'When the "featureType" member is present, the "conformsTo" member of the JSON document SHALL include at least the Feature Types and Schemas conformance class.'}}});M_.push({name:"/req/types-schemas/feature-type",validateFeature:(t,e)=>{if(e&&Vd(t)&&t.featureType===void 0)return{pointer:"/conformsTo",message:'When the document conforms to the Feature Types and Schemas conformance class, the "featureType" member must be present.'}},validateFeatureCollection:t=>{if(Vd(t)&&t.featureType===void 0&&t.features.every(e=>e.featureType===void 0))return{pointer:"/conformsTo",message:'When the document conforms to the Feature Types and Schemas conformance class, the "featureType" member must be present in either the collection or in every individual feature.'};if(Vd(t)&&t.featureType!==void 0&&t.features.some(e=>e.featureType!==void 0))return{pointer:"/conformsTo",message:'When the document contains a "featureType" member, individual members may not contain a "featureType" member.'};if(Vd(t)&&t.featureType===void 0&&t.features.some(e=>e.featureType!==void 0)&&!t.features.every(e=>e.featureType!==void 0))return{pointer:"/conformsTo",message:'When the document does not contain a "featureType" member, every individual feature must contain a "featureType" member.'}}});M_.push({name:"/req/types-schemas/geometry-dimension",validateFeatureCollection:t=>{if(t.geometryDimension===0&&t.features.some(e=>!Dw(e,[dr.POINT,dr.MULTIPOINT])))return{pointer:"/geometryDimension",message:'When the "geometryDimension" member of a feature collection has value 0, member features may only contain (Multi)Point primary geometries.'};if(t.geometryDimension===1&&t.features.some(e=>!Dw(e,[dr.LINESTRING,dr.MULTILINESTRING])))return{pointer:"/geometryDimension",message:'When the "geometryDimension" member of a feature collection has value 1, member features may only contain (Multi)LineString primary geometries.'};if(t.geometryDimension===2&&t.features.some(e=>!Dw(e,[dr.POLYGON,dr.MULTIPOLYGON])))return{pointer:"/geometryDimension",message:'When the "geometryDimension" member of a feature collection has value 2, member features may only contain (Multi)Polygon primary geometries.'};if(t.geometryDimension===3&&t.features.some(e=>!Dw(e,[dr.POLYHEDRON,dr.MULTIPOLYHEDRON,dr.PRISM,dr.MULTIPRISM])))return{pointer:"/geometryDimension",message:'When the "geometryDimension" member of a feature collection has value 3, member features may only contain (Multi)Polygon primary geometries.'}}});const aLe=[...CJ,...UM,...Vg,...IJ,...M_],sLe=(t,e)=>{var i,a,o;const n=[];if(e.type===_C.FEATURE){const r=(i=t.validateFeature)==null?void 0:i.call(void 0,e,!0);r&&n.push(r)}if(e.type===_C.FEATURECOLLECTION){const r=(a=t.validateFeatureCollection)==null?void 0:a.call(void 0,e);r&&n.push(r),(o=e.features)==null||o.forEach((s,c)=>{var u;const l=(u=t.validateFeature)==null?void 0:u.call(void 0,s,!1);l&&n.push({...l,pointer:"/features/"+c+l.pointer})})}return n},GU=Uj(t=>{let e;try{e=JSON.parse(t.state.doc.toString())}catch{return[]}const n=GMe(t.state),i=[];return aLe.forEach(a=>{sLe(a,e).forEach(r=>{const s=n.get(r.pointer);i.push({source:TQ,from:s.valueFrom,to:s.valueTo,severity:"error",message:r.message})})}),i}),oLe="http://www.opengis.net/spec/json-fg-1/0.2/conf/core/schema",TQ="http://www.opengis.net/spec/json-fg-1/0.2/conf/core",lLe={name:"JSON-FG",slug:"json-fg",example:JSON.stringify(LMe,void 0,2),linters:[{name:oLe,linter:GU},{name:TQ,linter:GU}]},jQ="application/json",KU="application/geo+json",cLe="application/vnd.oai.openapi+json;version=3.0";var Eh={},Yg={};/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */var CC=function(t,e){return CC=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},CC(t,e)};function uLe(t,e){CC(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var TC=function(){return TC=Object.assign||function(e){for(var n,i=1,a=arguments.length;i=0;s--)(r=t[s])&&(o=(a<3?r(o):a>3?r(e,n,o):r(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o}function hLe(t,e){return function(n,i){e(n,i,t)}}function dLe(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}function mLe(t,e,n,i){function a(o){return o instanceof n?o:new n(function(r){r(o)})}return new(n||(n=Promise))(function(o,r){function s(u){try{l(i.next(u))}catch(f){r(f)}}function c(u){try{l(i.throw(u))}catch(f){r(f)}}function l(u){u.done?o(u.value):a(u.value).then(s,c)}l((i=i.apply(t,e||[])).next())})}function yLe(t,e){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},i,a,o,r;return r={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(r[Symbol.iterator]=function(){return this}),r;function s(l){return function(u){return c([l,u])}}function c(l){if(i)throw new TypeError("Generator is already executing.");for(;n;)try{if(i=1,a&&(o=l[0]&2?a.return:l[0]?a.throw||((o=a.return)&&o.call(a),0):a.next)&&!(o=o.call(a,l[1])).done)return o;switch(a=0,o&&(l=[l[0]&2,o.value]),l[0]){case 0:case 1:o=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,a=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function MQ(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,o=[],r;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)o.push(a.value)}catch(s){r={error:s}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return o}function PLe(){for(var t=[],e=0;e1||s(h,d)})})}function s(h,d){try{c(i[h](d))}catch(m){f(o[0][3],m)}}function c(h){h.value instanceof UP?Promise.resolve(h.value.v).then(l,u):f(o[0][2],h)}function l(h){s("next",h)}function u(h){s("throw",h)}function f(h,d){h(d),o.shift(),o.length&&s(o[0][0],o[0][1])}}function $Le(t){var e,n;return e={},i("next"),i("throw",function(a){throw a}),i("return"),e[Symbol.iterator]=function(){return this},e;function i(a,o){e[a]=t[a]?function(r){return(n=!n)?{value:UP(t[a](r)),done:a==="return"}:o?o(r):r}:o}}function ALe(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],n;return e?e.call(t):(t=typeof jC=="function"?jC(t):t[Symbol.iterator](),n={},i("next"),i("throw"),i("return"),n[Symbol.asyncIterator]=function(){return this},n);function i(o){n[o]=t[o]&&function(r){return new Promise(function(s,c){r=t[o](r),a(s,c,r.done,r.value)})}}function a(o,r,s,c){Promise.resolve(c).then(function(l){o({value:l,done:s})},r)}}function SLe(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}function _Le(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var n in t)Object.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function xLe(t){return t&&t.__esModule?t:{default:t}}function DLe(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)}function kLe(t,e,n){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,n),n}const OLe=Object.freeze(Object.defineProperty({__proto__:null,get __assign(){return TC},__asyncDelegator:$Le,__asyncGenerator:wLe,__asyncValues:ALe,__await:UP,__awaiter:mLe,__classPrivateFieldGet:DLe,__classPrivateFieldSet:kLe,__createBinding:gLe,__decorate:pLe,__exportStar:vLe,__extends:uLe,__generator:yLe,__importDefault:xLe,__importStar:_Le,__makeTemplateObject:SLe,__metadata:dLe,__param:hLe,__read:MQ,__rest:fLe,__spread:PLe,__spreadArrays:bLe,__values:jC},Symbol.toStringTag,{value:"Module"})),ELe=Yl(OLe);var MC={exports:{}};(function(t,e){var n=function(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof Cr<"u")return Cr;throw new Error("unable to locate global object")},i=n();t.exports=e=i.fetch,i.fetch&&(e.default=i.fetch.bind(i)),e.Headers=i.Headers,e.Request=i.Request,e.Response=i.Response})(MC,MC.exports);var RQ=MC.exports;Object.defineProperty(Yg,"__esModule",{value:!0});const ILe=ELe,CLe=RQ;class NQ extends Error{constructor(){super(...arguments),this.name="OpenError"}}Yg.OpenError=NQ;class LQ extends Error{constructor(){super(...arguments),this.name="ReadError"}}Yg.NetworkError=LQ;function FQ(t,e={}){return ILe.__awaiter(this,void 0,void 0,function*(){const n=t.href(),i=yield CLe.default(n,e);if(i.ok)return i.text();throw i.status===404?new NQ(`Page not found: ${n}`):new LQ(`${i.status} ${i.statusText}`)})}Yg.resolveHttp=FQ;function TLe(t={}){return e=>FQ(e,t)}Yg.createResolveHttp=TLe;var BM={};const jLe={},MLe=Object.freeze(Object.defineProperty({__proto__:null,default:jLe},Symbol.toStringTag,{value:"Module"})),_b=Yl(MLe);Object.defineProperty(BM,"__esModule",{value:!0});const RLe=_b;function NLe(t){return new Promise((e,n)=>{const i=t.href();RLe.readFile(i,"utf8",(a,o)=>{a?n(a):e(o)})})}BM.resolveFile=NLe;Object.defineProperty(Eh,"__esModule",{value:!0});var R_=Yg;Eh.createResolveHttp=R_.createResolveHttp;var pS=Eh.resolveHttp=R_.resolveHttp;Eh.NetworkError=R_.NetworkError;Eh.OpenError=R_.OpenError;var LLe=BM;Eh.resolveFile=LLe.resolveFile;var VM={},RC=function(t,e){return RC=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},RC(t,e)};function qQ(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");RC(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var hS=function(){return hS=Object.assign||function(e){for(var n,i=1,a=arguments.length;i=0;s--)(r=t[s])&&(o=(a<3?r(o):a>3?r(e,n,o):r(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o}function BQ(t,e){return function(n,i){e(n,i,t)}}function FLe(t,e,n,i,a,o){function r(v){if(v!==void 0&&typeof v!="function")throw new TypeError("Function expected");return v}for(var s=i.kind,c=s==="getter"?"get":s==="setter"?"set":"value",l=!e&&t?i.static?t:t.prototype:null,u=e||(l?Object.getOwnPropertyDescriptor(l,i.name):{}),f,h=!1,d=n.length-1;d>=0;d--){var m={};for(var g in i)m[g]=g==="access"?{}:i[g];for(var g in i.access)m.access[g]=i.access[g];m.addInitializer=function(v){if(h)throw new TypeError("Cannot add initializers after decoration has completed");o.push(r(v||null))};var b=(0,n[d])(s==="accessor"?{get:u.get,set:u.set}:u[c],m);if(s==="accessor"){if(b===void 0)continue;if(b===null||typeof b!="object")throw new TypeError("Object expected");(f=r(b.get))&&(u.get=f),(f=r(b.set))&&(u.set=f),(f=r(b.init))&&a.unshift(f)}else(f=r(b))&&(s==="field"?a.unshift(f):u[c]=f)}l&&Object.defineProperty(l,i.name,u),h=!0}function qLe(t,e,n){for(var i=arguments.length>2,a=0;a0&&o[o.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function WM(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,o=[],r;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)o.push(a.value)}catch(s){r={error:s}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return o}function KQ(){for(var t=[],e=0;e1||c(d,g)})},m&&(a[d]=m(a[d])))}function c(d,m){try{l(i[d](m))}catch(g){h(o[0][3],g)}}function l(d){d.value instanceof gg?Promise.resolve(d.value.v).then(u,f):h(o[0][2],d)}function u(d){c("next",d)}function f(d){c("throw",d)}function h(d,m){d(m),o.shift(),o.length&&c(o[0][0],o[0][1])}}function ZQ(t){var e,n;return e={},i("next"),i("throw",function(a){throw a}),i("return"),e[Symbol.iterator]=function(){return this},e;function i(a,o){e[a]=t[a]?function(r){return(n=!n)?{value:gg(t[a](r)),done:!1}:o?o(r):r}:o}}function XQ(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],n;return e?e.call(t):(t=typeof dS=="function"?dS(t):t[Symbol.iterator](),n={},i("next"),i("throw"),i("return"),n[Symbol.asyncIterator]=function(){return this},n);function i(o){n[o]=t[o]&&function(r){return new Promise(function(s,c){r=t[o](r),a(s,c,r.done,r.value)})}}function a(o,r,s,c){Promise.resolve(c).then(function(l){o({value:l,done:s})},r)}}function eZ(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}var BLe=Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e};function tZ(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var n in t)n!=="default"&&Object.prototype.hasOwnProperty.call(t,n)&&N_(e,t,n);return BLe(e,t),e}function rZ(t){return t&&t.__esModule?t:{default:t}}function nZ(t,e,n,i){if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?i:n==="a"?i.call(t):i?i.value:e.get(t)}function iZ(t,e,n,i,a){if(i==="m")throw new TypeError("Private method is not writable");if(i==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!a:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return i==="a"?a.call(t,n):a?a.value=n:e.set(t,n),n}function aZ(t,e){if(e===null||typeof e!="object"&&typeof e!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof t=="function"?e===t:t.has(e)}function sZ(t,e,n){if(e!=null){if(typeof e!="object"&&typeof e!="function")throw new TypeError("Object expected.");var i,a;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");i=e[Symbol.asyncDispose]}if(i===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");i=e[Symbol.dispose],n&&(a=i)}if(typeof i!="function")throw new TypeError("Object not disposable.");a&&(i=function(){try{a.call(this)}catch(o){return Promise.reject(o)}}),t.stack.push({value:e,dispose:i,async:n})}else n&&t.stack.push({async:!0});return e}var VLe=typeof SuppressedError=="function"?SuppressedError:function(t,e,n){var i=new Error(n);return i.name="SuppressedError",i.error=t,i.suppressed=e,i};function oZ(t){function e(o){t.error=t.hasError?new VLe(o,t.error,"An error was suppressed during disposal."):o,t.hasError=!0}var n,i=0;function a(){for(;n=t.stack.pop();)try{if(!n.async&&i===1)return i=0,t.stack.push(n),Promise.resolve().then(a);if(n.dispose){var o=n.dispose.call(n.value);if(n.async)return i|=2,Promise.resolve(o).then(a,function(r){return e(r),a()})}else i|=1}catch(r){e(r)}if(i===1)return t.hasError?Promise.reject(t.error):Promise.resolve();if(t.hasError)throw t.error}return a()}const WLe={__extends:qQ,__assign:hS,__rest:zQ,__decorate:UQ,__param:BQ,__metadata:VQ,__awaiter:WQ,__generator:HQ,__createBinding:N_,__exportStar:GQ,__values:dS,__read:WM,__spread:KQ,__spreadArrays:YQ,__spreadArray:JQ,__await:gg,__asyncGenerator:QQ,__asyncDelegator:ZQ,__asyncValues:XQ,__makeTemplateObject:eZ,__importStar:tZ,__importDefault:rZ,__classPrivateFieldGet:nZ,__classPrivateFieldSet:iZ,__classPrivateFieldIn:aZ,__addDisposableResource:sZ,__disposeResources:oZ},HLe=Object.freeze(Object.defineProperty({__proto__:null,__addDisposableResource:sZ,get __assign(){return hS},__asyncDelegator:ZQ,__asyncGenerator:QQ,__asyncValues:XQ,__await:gg,__awaiter:WQ,__classPrivateFieldGet:nZ,__classPrivateFieldIn:aZ,__classPrivateFieldSet:iZ,__createBinding:N_,__decorate:UQ,__disposeResources:oZ,__esDecorate:FLe,__exportStar:GQ,__extends:qQ,__generator:HQ,__importDefault:rZ,__importStar:tZ,__makeTemplateObject:eZ,__metadata:VQ,__param:BQ,__propKey:zLe,__read:WM,__rest:zQ,__runInitializers:qLe,__setFunctionName:ULe,__spread:KQ,__spreadArray:JQ,__spreadArrays:YQ,__values:dS,default:WLe},Symbol.toStringTag,{value:"Module"})),vr=Yl(HLe);var K0={},kw={},YU;function L_(){if(YU)return kw;YU=1;function t(i,a,o,r){var s={};return function(c){if(!s[c]){var l={},u=[],f=[];for(f.push({node:c,processed:!1});f.length>0;){var h=f[f.length-1],d=h.processed,m=h.node;if(d)f.pop(),u.pop(),l[m]=!1,s[m]=!0,(!a||i[m].length===0)&&o.push(m);else{if(s[m]){f.pop();continue}else if(l[m]){if(r){f.pop();continue}throw u.push(m),new n(u)}l[m]=!0,u.push(m);for(var g=i[m],b=g.length-1;b>=0;b--)f.push({node:g[b],processed:!1});h.processed=!0}}}}}var e=kw.DepGraph=function(a){this.nodes={},this.outgoingEdges={},this.incomingEdges={},this.circular=a&&!!a.circular};e.prototype={size:function(){return Object.keys(this.nodes).length},addNode:function(i,a){this.hasNode(i)||(arguments.length===2?this.nodes[i]=a:this.nodes[i]=i,this.outgoingEdges[i]=[],this.incomingEdges[i]=[])},removeNode:function(i){this.hasNode(i)&&(delete this.nodes[i],delete this.outgoingEdges[i],delete this.incomingEdges[i],[this.incomingEdges,this.outgoingEdges].forEach(function(a){Object.keys(a).forEach(function(o){var r=a[o].indexOf(i);r>=0&&a[o].splice(r,1)},this)}))},hasNode:function(i){return this.nodes.hasOwnProperty(i)},getNodeData:function(i){if(this.hasNode(i))return this.nodes[i];throw new Error("Node does not exist: "+i)},setNodeData:function(i,a){if(this.hasNode(i))this.nodes[i]=a;else throw new Error("Node does not exist: "+i)},addDependency:function(i,a){if(!this.hasNode(i))throw new Error("Node does not exist: "+i);if(!this.hasNode(a))throw new Error("Node does not exist: "+a);return this.outgoingEdges[i].indexOf(a)===-1&&this.outgoingEdges[i].push(a),this.incomingEdges[a].indexOf(i)===-1&&this.incomingEdges[a].push(i),!0},removeDependency:function(i,a){var o;this.hasNode(i)&&(o=this.outgoingEdges[i].indexOf(a),o>=0&&this.outgoingEdges[i].splice(o,1)),this.hasNode(a)&&(o=this.incomingEdges[a].indexOf(i),o>=0&&this.incomingEdges[a].splice(o,1))},clone:function(){var i=this,a=new e,o=Object.keys(i.nodes);return o.forEach(function(r){a.nodes[r]=i.nodes[r],a.outgoingEdges[r]=i.outgoingEdges[r].slice(0),a.incomingEdges[r]=i.incomingEdges[r].slice(0)}),a},directDependenciesOf:function(i){if(this.hasNode(i))return this.outgoingEdges[i].slice(0);throw new Error("Node does not exist: "+i)},directDependantsOf:function(i){if(this.hasNode(i))return this.incomingEdges[i].slice(0);throw new Error("Node does not exist: "+i)},dependenciesOf:function(i,a){if(this.hasNode(i)){var o=[],r=t(this.outgoingEdges,a,o,this.circular);r(i);var s=o.indexOf(i);return s>=0&&o.splice(s,1),o}else throw new Error("Node does not exist: "+i)},dependantsOf:function(i,a){if(this.hasNode(i)){var o=[],r=t(this.incomingEdges,a,o,this.circular);r(i);var s=o.indexOf(i);return s>=0&&o.splice(s,1),o}else throw new Error("Node does not exist: "+i)},overallOrder:function(i){var a=this,o=[],r=Object.keys(this.nodes);if(r.length===0)return o;if(!this.circular){var s=t(this.outgoingEdges,!1,[],this.circular);r.forEach(function(l){s(l)})}var c=t(this.outgoingEdges,i,o,this.circular);return r.filter(function(l){return a.incomingEdges[l].length===0}).forEach(function(l){c(l)}),this.circular&&r.filter(function(l){return o.indexOf(l)===-1}).forEach(function(l){c(l)}),o},entryNodes:function(){var i=this;return Object.keys(this.nodes).filter(function(a){return i.incomingEdges[a].length===0})}},e.prototype.directDependentsOf=e.prototype.directDependantsOf,e.prototype.dependentsOf=e.prototype.dependantsOf;var n=kw.DepGraphCycleError=function(i){var a="Dependency Cycle Found: "+i.join(" -> "),o=new Error(a);return o.cyclePath=i,Object.setPrototypeOf(o,Object.getPrototypeOf(this)),Error.captureStackTrace&&Error.captureStackTrace(o,n),o};return n.prototype=Object.create(Error.prototype,{constructor:{value:Error,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf(n,Error),kw}var Y0={},JU;function HM(){if(JU)return Y0;JU=1,Object.defineProperty(Y0,"__esModule",{value:!0}),Y0.Cache=void 0;class t{constructor(n={}){this._stats={hits:0,misses:0},this._data={},this._stdTTL=n.stdTTL}get stats(){return this._stats}get(n){const i=this._data[n];if(i&&(!this._stdTTL||new Date().getTime()-i.ts + * Copyright OpenJS Foundation and other contributors + * Released under MIT license + * Based on Underscore.js 1.8.3 + * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors + */mS.exports;(function(t,e){(function(){var n,i="4.17.21",a=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",r="Expected a function",s="Invalid `variable` option passed into `_.template`",c="__lodash_hash_undefined__",l=500,u="__lodash_placeholder__",f=1,h=2,d=4,m=1,g=2,b=1,v=2,P=4,A=8,_=16,x=32,E=64,j=128,F=256,I=512,L=30,V="...",q=800,S=16,D=1,R=2,C=3,H=1/0,X=9007199254740991,ae=17976931348623157e292,z=NaN,M=4294967295,U=M-1,W=M>>>1,T=[["ary",j],["bind",b],["bindKey",v],["curry",A],["curryRight",_],["flip",I],["partial",x],["partialRight",E],["rearg",F]],G="[object Arguments]",oe="[object Array]",ve="[object AsyncFunction]",ie="[object Boolean]",Ae="[object Date]",pe="[object DOMException]",De="[object Error]",We="[object Function]",Ce="[object GeneratorFunction]",_e="[object Map]",st="[object Number]",yt="[object Null]",Re="[object Object]",je="[object Promise]",$t="[object Proxy]",Se="[object RegExp]",pt="[object Set]",nn="[object String]",lr="[object Symbol]",Dr="[object Undefined]",Yt="[object WeakMap]",cr="[object WeakSet]",J="[object ArrayBuffer]",w="[object DataView]",K="[object Float32Array]",te="[object Float64Array]",fe="[object Int8Array]",he="[object Int16Array]",Y="[object Int32Array]",k="[object Uint8Array]",re="[object Uint8ClampedArray]",ee="[object Uint16Array]",le="[object Uint32Array]",se=/\b__p \+= '';/g,ge=/\b(__p \+=) '' \+/g,xe=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Pe=/&(?:amp|lt|gt|quot|#39);/g,Le=/[&<>"']/g,Ye=RegExp(Pe.source),gt=RegExp(Le.source),ht=/<%-([\s\S]+?)%>/g,zt=/<%([\s\S]+?)%>/g,Gr=/<%=([\s\S]+?)%>/g,yi=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ao=/^\w*$/,N=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,de=/[\\^$.*+?()[\]{}|]/g,ke=RegExp(de.source),qe=/^\s+/,nt=/\s/,Ie=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,St=/\{\n\/\* \[wrapped with (.+)\] \*/,ot=/,? & /,Qe=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ze=/[()=,{}\[\]\/\s]/,vt=/\\(\\)?/g,jt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,It=/\w*$/,Ke=/^[-+]0x[0-9a-f]+$/i,ur=/^0b[01]+$/i,Vt=/^\[object .+?Constructor\]$/,Fr=/^0o[0-7]+$/i,So=/^(?:0|[1-9]\d*)$/,ul=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ti=/($^)/,ka=/['\n\r\u2028\u2029\\]/g,fl="\\ud800-\\udfff",ec="\\u0300-\\u036f",_s="\\ufe20-\\ufe2f",Pu="\\u20d0-\\u20ff",tc=ec+_s+Pu,Jt="\\u2700-\\u27bf",kr="a-z\\xdf-\\xf6\\xf8-\\xff",_o="\\xac\\xb1\\xd7\\xf7",pl="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",qr="\\u2000-\\u206f",Oa=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",bu="A-Z\\xc0-\\xd6\\xd8-\\xde",Qa="\\ufe0e\\ufe0f",Zi=_o+pl+qr+Oa,xs="['’]",Kx="["+fl+"]",Hf="["+Zi+"]",xo="["+tc+"]",Gf="\\d+",wu="["+Jt+"]",zb="["+kr+"]",Ub="[^"+fl+Zi+Gf+Jt+kr+bu+"]",ne="\\ud83c[\\udffb-\\udfff]",ue="(?:"+xo+"|"+ne+")",be="[^"+fl+"]",ye="(?:\\ud83c[\\udde6-\\uddff]){2}",et="[\\ud800-\\udbff][\\udc00-\\udfff]",mt="["+bu+"]",ji="\\u200d",$u="(?:"+zb+"|"+Ub+")",qre="(?:"+mt+"|"+Ub+")",lL="(?:"+xs+"(?:d|ll|m|re|s|t|ve))?",cL="(?:"+xs+"(?:D|LL|M|RE|S|T|VE))?",uL=ue+"?",fL="["+Qa+"]?",zre="(?:"+ji+"(?:"+[be,ye,et].join("|")+")"+fL+uL+")*",Ure="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Bre="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",pL=fL+uL+zre,Vre="(?:"+[wu,ye,et].join("|")+")"+pL,Wre="(?:"+[be+xo+"?",xo,ye,et,Kx].join("|")+")",Hre=RegExp(xs,"g"),Gre=RegExp(xo,"g"),Yx=RegExp(ne+"(?="+ne+")|"+Wre+pL,"g"),Kre=RegExp([mt+"?"+zb+"+"+lL+"(?="+[Hf,mt,"$"].join("|")+")",qre+"+"+cL+"(?="+[Hf,mt+$u,"$"].join("|")+")",mt+"?"+$u+"+"+lL,mt+"+"+cL,Bre,Ure,Gf,Vre].join("|"),"g"),Yre=RegExp("["+ji+fl+tc+Qa+"]"),Jre=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Qre=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Zre=-1,Kr={};Kr[K]=Kr[te]=Kr[fe]=Kr[he]=Kr[Y]=Kr[k]=Kr[re]=Kr[ee]=Kr[le]=!0,Kr[G]=Kr[oe]=Kr[J]=Kr[ie]=Kr[w]=Kr[Ae]=Kr[De]=Kr[We]=Kr[_e]=Kr[st]=Kr[Re]=Kr[Se]=Kr[pt]=Kr[nn]=Kr[Yt]=!1;var zr={};zr[G]=zr[oe]=zr[J]=zr[w]=zr[ie]=zr[Ae]=zr[K]=zr[te]=zr[fe]=zr[he]=zr[Y]=zr[_e]=zr[st]=zr[Re]=zr[Se]=zr[pt]=zr[nn]=zr[lr]=zr[k]=zr[re]=zr[ee]=zr[le]=!0,zr[De]=zr[We]=zr[Yt]=!1;var Xre={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},ene={"&":"&","<":"<",">":">",'"':""","'":"'"},tne={"&":"&","<":"<",">":">",""":'"',"'":"'"},rne={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},nne=parseFloat,ine=parseInt,hL=typeof Cr=="object"&&Cr&&Cr.Object===Object&&Cr,ane=typeof self=="object"&&self&&self.Object===Object&&self,gi=hL||ane||Function("return this")(),Jx=e&&!e.nodeType&&e,Kf=Jx&&!0&&t&&!t.nodeType&&t,dL=Kf&&Kf.exports===Jx,Qx=dL&&hL.process,Ds=function(){try{var we=Kf&&Kf.require&&Kf.require("util").types;return we||Qx&&Qx.binding&&Qx.binding("util")}catch{}}(),mL=Ds&&Ds.isArrayBuffer,yL=Ds&&Ds.isDate,gL=Ds&&Ds.isMap,vL=Ds&&Ds.isRegExp,PL=Ds&&Ds.isSet,bL=Ds&&Ds.isTypedArray;function Za(we,Ne,Oe){switch(Oe.length){case 0:return we.call(Ne);case 1:return we.call(Ne,Oe[0]);case 2:return we.call(Ne,Oe[0],Oe[1]);case 3:return we.call(Ne,Oe[0],Oe[1],Oe[2])}return we.apply(Ne,Oe)}function sne(we,Ne,Oe,ct){for(var Mt=-1,pr=we==null?0:we.length;++Mt-1}function Zx(we,Ne,Oe){for(var ct=-1,Mt=we==null?0:we.length;++ct-1;);return Oe}function kL(we,Ne){for(var Oe=we.length;Oe--&&Lh(Ne,we[Oe],0)>-1;);return Oe}function mne(we,Ne){for(var Oe=we.length,ct=0;Oe--;)we[Oe]===Ne&&++ct;return ct}var yne=rD(Xre),gne=rD(ene);function vne(we){return"\\"+rne[we]}function Pne(we,Ne){return we==null?n:we[Ne]}function Fh(we){return Yre.test(we)}function bne(we){return Jre.test(we)}function wne(we){for(var Ne,Oe=[];!(Ne=we.next()).done;)Oe.push(Ne.value);return Oe}function sD(we){var Ne=-1,Oe=Array(we.size);return we.forEach(function(ct,Mt){Oe[++Ne]=[Mt,ct]}),Oe}function OL(we,Ne){return function(Oe){return we(Ne(Oe))}}function _u(we,Ne){for(var Oe=-1,ct=we.length,Mt=0,pr=[];++Oe-1}function lie(p,y){var $=this.__data__,O=s1($,p);return O<0?(++this.size,$.push([p,y])):$[O][1]=y,this}rc.prototype.clear=iie,rc.prototype.delete=aie,rc.prototype.get=sie,rc.prototype.has=oie,rc.prototype.set=lie;function nc(p){var y=-1,$=p==null?0:p.length;for(this.clear();++y<$;){var O=p[y];this.set(O[0],O[1])}}function cie(){this.size=0,this.__data__={hash:new Jf,map:new(d0||rc),string:new Jf}}function uie(p){var y=v1(this,p).delete(p);return this.size-=y?1:0,y}function fie(p){return v1(this,p).get(p)}function pie(p){return v1(this,p).has(p)}function hie(p,y){var $=v1(this,p),O=$.size;return $.set(p,y),this.size+=$.size==O?0:1,this}nc.prototype.clear=cie,nc.prototype.delete=uie,nc.prototype.get=fie,nc.prototype.has=pie,nc.prototype.set=hie;function Qf(p){var y=-1,$=p==null?0:p.length;for(this.__data__=new nc;++y<$;)this.add(p[y])}function die(p){return this.__data__.set(p,c),this}function mie(p){return this.__data__.has(p)}Qf.prototype.add=Qf.prototype.push=die,Qf.prototype.has=mie;function ko(p){var y=this.__data__=new rc(p);this.size=y.size}function yie(){this.__data__=new rc,this.size=0}function gie(p){var y=this.__data__,$=y.delete(p);return this.size=y.size,$}function vie(p){return this.__data__.get(p)}function Pie(p){return this.__data__.has(p)}function bie(p,y){var $=this.__data__;if($ instanceof rc){var O=$.__data__;if(!d0||O.length=y?p:y)),p}function Is(p,y,$,O,B,Z){var ce,me=y&f,$e=y&h,ze=y&d;if($&&(ce=B?$(p,O,B,Z):$(p)),ce!==n)return ce;if(!un(p))return p;var Ue=Rt(p);if(Ue){if(ce=pae(p),!me)return Ea(p,ce)}else{var He=Ri(p),tt=He==We||He==Ce;if(Iu(p))return fF(p,me);if(He==Re||He==G||tt&&!B){if(ce=$e||tt?{}:EF(p),!me)return $e?tae(p,Sie(ce,p)):eae(p,zL(ce,p))}else{if(!zr[He])return B?p:{};ce=hae(p,He,me)}}Z||(Z=new ko);var Pt=Z.get(p);if(Pt)return Pt;Z.set(p,ce),aq(p)?p.forEach(function(Ot){ce.add(Is(Ot,y,$,Ot,p,Z))}):nq(p)&&p.forEach(function(Ot,Qt){ce.set(Qt,Is(Ot,y,$,Qt,p,Z))});var kt=ze?$e?CD:ID:$e?Ca:si,Ut=Ue?n:kt(p);return ks(Ut||p,function(Ot,Qt){Ut&&(Qt=Ot,Ot=p[Qt]),v0(ce,Qt,Is(Ot,y,$,Qt,p,Z))}),ce}function _ie(p){var y=si(p);return function($){return UL($,p,y)}}function UL(p,y,$){var O=$.length;if(p==null)return!O;for(p=jr(p);O--;){var B=$[O],Z=y[B],ce=p[B];if(ce===n&&!(B in p)||!Z(ce))return!1}return!0}function BL(p,y,$){if(typeof p!="function")throw new Os(r);return _0(function(){p.apply(n,$)},y)}function P0(p,y,$,O){var B=-1,Z=Bb,ce=!0,me=p.length,$e=[],ze=y.length;if(!me)return $e;$&&(y=an(y,Xa($))),O?(Z=Zx,ce=!1):y.length>=a&&(Z=p0,ce=!1,y=new Qf(y));e:for(;++BB?0:B+$),O=O===n||O>B?B:Ft(O),O<0&&(O+=B),O=$>O?0:oq(O);$0&&$(me)?y>1?vi(me,y-1,$,O,B):Su(B,me):O||(B[B.length]=me)}return B}var hD=gF(),HL=gF(!0);function hl(p,y){return p&&hD(p,y,si)}function dD(p,y){return p&&HL(p,y,si)}function l1(p,y){return Au(y,function($){return lc(p[$])})}function Xf(p,y){y=Ou(y,p);for(var $=0,O=y.length;p!=null&&$y}function kie(p,y){return p!=null&&Sr.call(p,y)}function Oie(p,y){return p!=null&&y in jr(p)}function Eie(p,y,$){return p>=Mi(y,$)&&p=120&&Ue.length>=120)?new Qf(ce&&Ue):n}Ue=p[0];var He=-1,tt=me[0];e:for(;++He-1;)me!==p&&Xb.call(me,$e,1),Xb.call(p,$e,1);return p}function nF(p,y){for(var $=p?y.length:0,O=$-1;$--;){var B=y[$];if($==O||B!==Z){var Z=B;oc(B)?Xb.call(p,B,1):SD(p,B)}}return p}function wD(p,y){return p+r1(NL()*(y-p+1))}function Bie(p,y,$,O){for(var B=-1,Z=Jn(t1((y-p)/($||1)),0),ce=Oe(Z);Z--;)ce[O?Z:++B]=p,p+=$;return ce}function $D(p,y){var $="";if(!p||y<1||y>X)return $;do y%2&&($+=p),y=r1(y/2),y&&(p+=p);while(y);return $}function Wt(p,y){return FD(TF(p,y,Ta),p+"")}function Vie(p){return qL(Jh(p))}function Wie(p,y){var $=Jh(p);return P1($,Zf(y,0,$.length))}function $0(p,y,$,O){if(!un(p))return p;y=Ou(y,p);for(var B=-1,Z=y.length,ce=Z-1,me=p;me!=null&&++BB?0:B+y),$=$>B?B:$,$<0&&($+=B),B=y>$?0:$-y>>>0,y>>>=0;for(var Z=Oe(B);++O>>1,ce=p[Z];ce!==null&&!ts(ce)&&($?ce<=y:ce=a){var ze=y?null:aae(p);if(ze)return Wb(ze);ce=!1,B=p0,$e=new Qf}else $e=y?[]:me;e:for(;++O=O?p:Cs(p,y,$)}var uF=Rne||function(p){return gi.clearTimeout(p)};function fF(p,y){if(y)return p.slice();var $=p.length,O=CL?CL($):new p.constructor($);return p.copy(O),O}function kD(p){var y=new p.constructor(p.byteLength);return new Qb(y).set(new Qb(p)),y}function Jie(p,y){var $=y?kD(p.buffer):p.buffer;return new p.constructor($,p.byteOffset,p.byteLength)}function Qie(p){var y=new p.constructor(p.source,It.exec(p));return y.lastIndex=p.lastIndex,y}function Zie(p){return g0?jr(g0.call(p)):{}}function pF(p,y){var $=y?kD(p.buffer):p.buffer;return new p.constructor($,p.byteOffset,p.length)}function hF(p,y){if(p!==y){var $=p!==n,O=p===null,B=p===p,Z=ts(p),ce=y!==n,me=y===null,$e=y===y,ze=ts(y);if(!me&&!ze&&!Z&&p>y||Z&&ce&&$e&&!me&&!ze||O&&ce&&$e||!$&&$e||!B)return 1;if(!O&&!Z&&!ze&&p=me)return $e;var ze=$[O];return $e*(ze=="desc"?-1:1)}}return p.index-y.index}function dF(p,y,$,O){for(var B=-1,Z=p.length,ce=$.length,me=-1,$e=y.length,ze=Jn(Z-ce,0),Ue=Oe($e+ze),He=!O;++me<$e;)Ue[me]=y[me];for(;++B1?$[B-1]:n,ce=B>2?$[2]:n;for(Z=p.length>3&&typeof Z=="function"?(B--,Z):n,ce&&ea($[0],$[1],ce)&&(Z=B<3?n:Z,B=1),y=jr(y);++O-1?B[Z?y[ce]:ce]:n}}function bF(p){return sc(function(y){var $=y.length,O=$,B=Es.prototype.thru;for(p&&y.reverse();O--;){var Z=y[O];if(typeof Z!="function")throw new Os(r);if(B&&!ce&&g1(Z)=="wrapper")var ce=new Es([],!0)}for(O=ce?O:$;++O<$;){Z=y[O];var me=g1(Z),$e=me=="wrapper"?TD(Z):n;$e&&ND($e[0])&&$e[1]==(j|A|x|F)&&!$e[4].length&&$e[9]==1?ce=ce[g1($e[0])].apply(ce,$e[3]):ce=Z.length==1&&ND(Z)?ce[me]():ce.thru(Z)}return function(){var ze=arguments,Ue=ze[0];if(ce&&ze.length==1&&Rt(Ue))return ce.plant(Ue).value();for(var He=0,tt=$?y[He].apply(this,ze):Ue;++He<$;)tt=y[He].call(this,tt);return tt}})}function h1(p,y,$,O,B,Z,ce,me,$e,ze){var Ue=y&j,He=y&b,tt=y&v,Pt=y&(A|_),kt=y&I,Ut=tt?n:A0(p);function Ot(){for(var Qt=arguments.length,nr=Oe(Qt),rs=Qt;rs--;)nr[rs]=arguments[rs];if(Pt)var ta=Kh(Ot),ns=mne(nr,ta);if(O&&(nr=dF(nr,O,B,Pt)),Z&&(nr=mF(nr,Z,ce,Pt)),Qt-=ns,Pt&&Qt1&&nr.reverse(),Ue&&$eme))return!1;var ze=Z.get(p),Ue=Z.get(y);if(ze&&Ue)return ze==y&&Ue==p;var He=-1,tt=!0,Pt=$&g?new Qf:n;for(Z.set(p,y),Z.set(y,p);++He1?"& ":"")+y[O],y=y.join($>2?", ":" "),p.replace(Ie,`{ +/* [wrapped with `+y+`] */ +`)}function mae(p){return Rt(p)||rp(p)||!!(ML&&p&&p[ML])}function oc(p,y){var $=typeof p;return y=y??X,!!y&&($=="number"||$!="symbol"&&So.test(p))&&p>-1&&p%1==0&&p0){if(++y>=q)return arguments[0]}else y=0;return p.apply(n,arguments)}}function P1(p,y){var $=-1,O=p.length,B=O-1;for(y=y===n?O:y;++$1?p[y-1]:n;return $=typeof $=="function"?(p.pop(),$):n,WF(p,$)});function HF(p){var y=Q(p);return y.__chain__=!0,y}function xse(p,y){return y(p),p}function b1(p,y){return y(p)}var Dse=sc(function(p){var y=p.length,$=y?p[0]:0,O=this.__wrapped__,B=function(Z){return pD(Z,p)};return y>1||this.__actions__.length||!(O instanceof er)||!oc($)?this.thru(B):(O=O.slice($,+$+(y?1:0)),O.__actions__.push({func:b1,args:[B],thisArg:n}),new Es(O,this.__chain__).thru(function(Z){return y&&!Z.length&&Z.push(n),Z}))});function kse(){return HF(this)}function Ose(){return new Es(this.value(),this.__chain__)}function Ese(){this.__values__===n&&(this.__values__=sq(this.value()));var p=this.__index__>=this.__values__.length,y=p?n:this.__values__[this.__index__++];return{done:p,value:y}}function Ise(){return this}function Cse(p){for(var y,$=this;$ instanceof a1;){var O=FF($);O.__index__=0,O.__values__=n,y?B.__wrapped__=O:y=O;var B=O;$=$.__wrapped__}return B.__wrapped__=p,y}function Tse(){var p=this.__wrapped__;if(p instanceof er){var y=p;return this.__actions__.length&&(y=new er(this)),y=y.reverse(),y.__actions__.push({func:b1,args:[qD],thisArg:n}),new Es(y,this.__chain__)}return this.thru(qD)}function jse(){return lF(this.__wrapped__,this.__actions__)}var Mse=p1(function(p,y,$){Sr.call(p,$)?++p[$]:ic(p,$,1)});function Rse(p,y,$){var O=Rt(p)?wL:xie;return $&&ea(p,y,$)&&(y=n),O(p,Dt(y,3))}function Nse(p,y){var $=Rt(p)?Au:WL;return $(p,Dt(y,3))}var Lse=PF(qF),Fse=PF(zF);function qse(p,y){return vi(w1(p,y),1)}function zse(p,y){return vi(w1(p,y),H)}function Use(p,y,$){return $=$===n?1:Ft($),vi(w1(p,y),$)}function GF(p,y){var $=Rt(p)?ks:Du;return $(p,Dt(y,3))}function KF(p,y){var $=Rt(p)?one:VL;return $(p,Dt(y,3))}var Bse=p1(function(p,y,$){Sr.call(p,$)?p[$].push(y):ic(p,$,[y])});function Vse(p,y,$,O){p=Ia(p)?p:Jh(p),$=$&&!O?Ft($):0;var B=p.length;return $<0&&($=Jn(B+$,0)),x1(p)?$<=B&&p.indexOf(y,$)>-1:!!B&&Lh(p,y,$)>-1}var Wse=Wt(function(p,y,$){var O=-1,B=typeof y=="function",Z=Ia(p)?Oe(p.length):[];return Du(p,function(ce){Z[++O]=B?Za(y,ce,$):b0(ce,y,$)}),Z}),Hse=p1(function(p,y,$){ic(p,$,y)});function w1(p,y){var $=Rt(p)?an:QL;return $(p,Dt(y,3))}function Gse(p,y,$,O){return p==null?[]:(Rt(y)||(y=y==null?[]:[y]),$=O?n:$,Rt($)||($=$==null?[]:[$]),tF(p,y,$))}var Kse=p1(function(p,y,$){p[$?0:1].push(y)},function(){return[[],[]]});function Yse(p,y,$){var O=Rt(p)?Xx:_L,B=arguments.length<3;return O(p,Dt(y,4),$,B,Du)}function Jse(p,y,$){var O=Rt(p)?lne:_L,B=arguments.length<3;return O(p,Dt(y,4),$,B,VL)}function Qse(p,y){var $=Rt(p)?Au:WL;return $(p,S1(Dt(y,3)))}function Zse(p){var y=Rt(p)?qL:Vie;return y(p)}function Xse(p,y,$){($?ea(p,y,$):y===n)?y=1:y=Ft(y);var O=Rt(p)?wie:Wie;return O(p,y)}function eoe(p){var y=Rt(p)?$ie:Gie;return y(p)}function toe(p){if(p==null)return 0;if(Ia(p))return x1(p)?qh(p):p.length;var y=Ri(p);return y==_e||y==pt?p.size:vD(p).length}function roe(p,y,$){var O=Rt(p)?eD:Kie;return $&&ea(p,y,$)&&(y=n),O(p,Dt(y,3))}var noe=Wt(function(p,y){if(p==null)return[];var $=y.length;return $>1&&ea(p,y[0],y[1])?y=[]:$>2&&ea(y[0],y[1],y[2])&&(y=[y[0]]),tF(p,vi(y,1),[])}),$1=Nne||function(){return gi.Date.now()};function ioe(p,y){if(typeof y!="function")throw new Os(r);return p=Ft(p),function(){if(--p<1)return y.apply(this,arguments)}}function YF(p,y,$){return y=$?n:y,y=p&&y==null?p.length:y,ac(p,j,n,n,n,n,y)}function JF(p,y){var $;if(typeof y!="function")throw new Os(r);return p=Ft(p),function(){return--p>0&&($=y.apply(this,arguments)),p<=1&&(y=n),$}}var UD=Wt(function(p,y,$){var O=b;if($.length){var B=_u($,Kh(UD));O|=x}return ac(p,O,y,$,B)}),QF=Wt(function(p,y,$){var O=b|v;if($.length){var B=_u($,Kh(QF));O|=x}return ac(y,O,p,$,B)});function ZF(p,y,$){y=$?n:y;var O=ac(p,A,n,n,n,n,n,y);return O.placeholder=ZF.placeholder,O}function XF(p,y,$){y=$?n:y;var O=ac(p,_,n,n,n,n,n,y);return O.placeholder=XF.placeholder,O}function eq(p,y,$){var O,B,Z,ce,me,$e,ze=0,Ue=!1,He=!1,tt=!0;if(typeof p!="function")throw new Os(r);y=js(y)||0,un($)&&(Ue=!!$.leading,He="maxWait"in $,Z=He?Jn(js($.maxWait)||0,y):Z,tt="trailing"in $?!!$.trailing:tt);function Pt(Sn){var Eo=O,uc=B;return O=B=n,ze=Sn,ce=p.apply(uc,Eo),ce}function kt(Sn){return ze=Sn,me=_0(Qt,y),Ue?Pt(Sn):ce}function Ut(Sn){var Eo=Sn-$e,uc=Sn-ze,Pq=y-Eo;return He?Mi(Pq,Z-uc):Pq}function Ot(Sn){var Eo=Sn-$e,uc=Sn-ze;return $e===n||Eo>=y||Eo<0||He&&uc>=Z}function Qt(){var Sn=$1();if(Ot(Sn))return nr(Sn);me=_0(Qt,Ut(Sn))}function nr(Sn){return me=n,tt&&O?Pt(Sn):(O=B=n,ce)}function rs(){me!==n&&uF(me),ze=0,O=$e=B=me=n}function ta(){return me===n?ce:nr($1())}function ns(){var Sn=$1(),Eo=Ot(Sn);if(O=arguments,B=this,$e=Sn,Eo){if(me===n)return kt($e);if(He)return uF(me),me=_0(Qt,y),Pt($e)}return me===n&&(me=_0(Qt,y)),ce}return ns.cancel=rs,ns.flush=ta,ns}var aoe=Wt(function(p,y){return BL(p,1,y)}),soe=Wt(function(p,y,$){return BL(p,js(y)||0,$)});function ooe(p){return ac(p,I)}function A1(p,y){if(typeof p!="function"||y!=null&&typeof y!="function")throw new Os(r);var $=function(){var O=arguments,B=y?y.apply(this,O):O[0],Z=$.cache;if(Z.has(B))return Z.get(B);var ce=p.apply(this,O);return $.cache=Z.set(B,ce)||Z,ce};return $.cache=new(A1.Cache||nc),$}A1.Cache=nc;function S1(p){if(typeof p!="function")throw new Os(r);return function(){var y=arguments;switch(y.length){case 0:return!p.call(this);case 1:return!p.call(this,y[0]);case 2:return!p.call(this,y[0],y[1]);case 3:return!p.call(this,y[0],y[1],y[2])}return!p.apply(this,y)}}function loe(p){return JF(2,p)}var coe=Yie(function(p,y){y=y.length==1&&Rt(y[0])?an(y[0],Xa(Dt())):an(vi(y,1),Xa(Dt()));var $=y.length;return Wt(function(O){for(var B=-1,Z=Mi(O.length,$);++B=y}),rp=KL(function(){return arguments}())?KL:function(p){return mn(p)&&Sr.call(p,"callee")&&!jL.call(p,"callee")},Rt=Oe.isArray,Soe=mL?Xa(mL):Cie;function Ia(p){return p!=null&&_1(p.length)&&!lc(p)}function An(p){return mn(p)&&Ia(p)}function _oe(p){return p===!0||p===!1||mn(p)&&Xi(p)==ie}var Iu=Fne||ek,xoe=yL?Xa(yL):Tie;function Doe(p){return mn(p)&&p.nodeType===1&&!x0(p)}function koe(p){if(p==null)return!0;if(Ia(p)&&(Rt(p)||typeof p=="string"||typeof p.splice=="function"||Iu(p)||Yh(p)||rp(p)))return!p.length;var y=Ri(p);if(y==_e||y==pt)return!p.size;if(S0(p))return!vD(p).length;for(var $ in p)if(Sr.call(p,$))return!1;return!0}function Ooe(p,y){return w0(p,y)}function Eoe(p,y,$){$=typeof $=="function"?$:n;var O=$?$(p,y):n;return O===n?w0(p,y,n,$):!!O}function VD(p){if(!mn(p))return!1;var y=Xi(p);return y==De||y==pe||typeof p.message=="string"&&typeof p.name=="string"&&!x0(p)}function Ioe(p){return typeof p=="number"&&RL(p)}function lc(p){if(!un(p))return!1;var y=Xi(p);return y==We||y==Ce||y==ve||y==$t}function rq(p){return typeof p=="number"&&p==Ft(p)}function _1(p){return typeof p=="number"&&p>-1&&p%1==0&&p<=X}function un(p){var y=typeof p;return p!=null&&(y=="object"||y=="function")}function mn(p){return p!=null&&typeof p=="object"}var nq=gL?Xa(gL):Mie;function Coe(p,y){return p===y||gD(p,y,jD(y))}function Toe(p,y,$){return $=typeof $=="function"?$:n,gD(p,y,jD(y),$)}function joe(p){return iq(p)&&p!=+p}function Moe(p){if(vae(p))throw new Mt(o);return YL(p)}function Roe(p){return p===null}function Noe(p){return p==null}function iq(p){return typeof p=="number"||mn(p)&&Xi(p)==st}function x0(p){if(!mn(p)||Xi(p)!=Re)return!1;var y=Zb(p);if(y===null)return!0;var $=Sr.call(y,"constructor")&&y.constructor;return typeof $=="function"&&$ instanceof $&&Kb.call($)==Tne}var WD=vL?Xa(vL):Rie;function Loe(p){return rq(p)&&p>=-X&&p<=X}var aq=PL?Xa(PL):Nie;function x1(p){return typeof p=="string"||!Rt(p)&&mn(p)&&Xi(p)==nn}function ts(p){return typeof p=="symbol"||mn(p)&&Xi(p)==lr}var Yh=bL?Xa(bL):Lie;function Foe(p){return p===n}function qoe(p){return mn(p)&&Ri(p)==Yt}function zoe(p){return mn(p)&&Xi(p)==cr}var Uoe=y1(PD),Boe=y1(function(p,y){return p<=y});function sq(p){if(!p)return[];if(Ia(p))return x1(p)?Do(p):Ea(p);if(h0&&p[h0])return wne(p[h0]());var y=Ri(p),$=y==_e?sD:y==pt?Wb:Jh;return $(p)}function cc(p){if(!p)return p===0?p:0;if(p=js(p),p===H||p===-H){var y=p<0?-1:1;return y*ae}return p===p?p:0}function Ft(p){var y=cc(p),$=y%1;return y===y?$?y-$:y:0}function oq(p){return p?Zf(Ft(p),0,M):0}function js(p){if(typeof p=="number")return p;if(ts(p))return z;if(un(p)){var y=typeof p.valueOf=="function"?p.valueOf():p;p=un(y)?y+"":y}if(typeof p!="string")return p===0?p:+p;p=xL(p);var $=ur.test(p);return $||Fr.test(p)?ine(p.slice(2),$?2:8):Ke.test(p)?z:+p}function lq(p){return dl(p,Ca(p))}function Voe(p){return p?Zf(Ft(p),-X,X):p===0?p:0}function Pr(p){return p==null?"":es(p)}var Woe=Hh(function(p,y){if(S0(y)||Ia(y)){dl(y,si(y),p);return}for(var $ in y)Sr.call(y,$)&&v0(p,$,y[$])}),cq=Hh(function(p,y){dl(y,Ca(y),p)}),D1=Hh(function(p,y,$,O){dl(y,Ca(y),p,O)}),Hoe=Hh(function(p,y,$,O){dl(y,si(y),p,O)}),Goe=sc(pD);function Koe(p,y){var $=Wh(p);return y==null?$:zL($,y)}var Yoe=Wt(function(p,y){p=jr(p);var $=-1,O=y.length,B=O>2?y[2]:n;for(B&&ea(y[0],y[1],B)&&(O=1);++$1),Z}),dl(p,CD(p),$),O&&($=Is($,f|h|d,sae));for(var B=y.length;B--;)SD($,y[B]);return $});function hle(p,y){return fq(p,S1(Dt(y)))}var dle=sc(function(p,y){return p==null?{}:zie(p,y)});function fq(p,y){if(p==null)return{};var $=an(CD(p),function(O){return[O]});return y=Dt(y),rF(p,$,function(O,B){return y(O,B[0])})}function mle(p,y,$){y=Ou(y,p);var O=-1,B=y.length;for(B||(B=1,p=n);++Oy){var O=p;p=y,y=O}if($||p%1||y%1){var B=NL();return Mi(p+B*(y-p+nne("1e-"+((B+"").length-1))),y)}return wD(p,y)}var xle=Gh(function(p,y,$){return y=y.toLowerCase(),p+($?dq(y):y)});function dq(p){return KD(Pr(p).toLowerCase())}function mq(p){return p=Pr(p),p&&p.replace(ul,yne).replace(Gre,"")}function Dle(p,y,$){p=Pr(p),y=es(y);var O=p.length;$=$===n?O:Zf(Ft($),0,O);var B=$;return $-=y.length,$>=0&&p.slice($,B)==y}function kle(p){return p=Pr(p),p&>.test(p)?p.replace(Le,gne):p}function Ole(p){return p=Pr(p),p&&ke.test(p)?p.replace(de,"\\$&"):p}var Ele=Gh(function(p,y,$){return p+($?"-":"")+y.toLowerCase()}),Ile=Gh(function(p,y,$){return p+($?" ":"")+y.toLowerCase()}),Cle=vF("toLowerCase");function Tle(p,y,$){p=Pr(p),y=Ft(y);var O=y?qh(p):0;if(!y||O>=y)return p;var B=(y-O)/2;return m1(r1(B),$)+p+m1(t1(B),$)}function jle(p,y,$){p=Pr(p),y=Ft(y);var O=y?qh(p):0;return y&&O>>0,$?(p=Pr(p),p&&(typeof y=="string"||y!=null&&!WD(y))&&(y=es(y),!y&&Fh(p))?Eu(Do(p),0,$):p.split(y,$)):[]}var zle=Gh(function(p,y,$){return p+($?" ":"")+KD(y)});function Ule(p,y,$){return p=Pr(p),$=$==null?0:Zf(Ft($),0,p.length),y=es(y),p.slice($,$+y.length)==y}function Ble(p,y,$){var O=Q.templateSettings;$&&ea(p,y,$)&&(y=n),p=Pr(p),y=D1({},y,O,_F);var B=D1({},y.imports,O.imports,_F),Z=si(B),ce=aD(B,Z),me,$e,ze=0,Ue=y.interpolate||Ti,He="__p += '",tt=oD((y.escape||Ti).source+"|"+Ue.source+"|"+(Ue===Gr?jt:Ti).source+"|"+(y.evaluate||Ti).source+"|$","g"),Pt="//# sourceURL="+(Sr.call(y,"sourceURL")?(y.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Zre+"]")+` +`;p.replace(tt,function(Ot,Qt,nr,rs,ta,ns){return nr||(nr=rs),He+=p.slice(ze,ns).replace(ka,vne),Qt&&(me=!0,He+=`' + +__e(`+Qt+`) + +'`),ta&&($e=!0,He+=`'; +`+ta+`; +__p += '`),nr&&(He+=`' + +((__t = (`+nr+`)) == null ? '' : __t) + +'`),ze=ns+Ot.length,Ot}),He+=`'; +`;var kt=Sr.call(y,"variable")&&y.variable;if(!kt)He=`with (obj) { +`+He+` +} +`;else if(Ze.test(kt))throw new Mt(s);He=($e?He.replace(se,""):He).replace(ge,"$1").replace(xe,"$1;"),He="function("+(kt||"obj")+`) { +`+(kt?"":`obj || (obj = {}); +`)+"var __t, __p = ''"+(me?", __e = _.escape":"")+($e?`, __j = Array.prototype.join; +function print() { __p += __j.call(arguments, '') } +`:`; +`)+He+`return __p +}`;var Ut=gq(function(){return pr(Z,Pt+"return "+He).apply(n,ce)});if(Ut.source=He,VD(Ut))throw Ut;return Ut}function Vle(p){return Pr(p).toLowerCase()}function Wle(p){return Pr(p).toUpperCase()}function Hle(p,y,$){if(p=Pr(p),p&&($||y===n))return xL(p);if(!p||!(y=es(y)))return p;var O=Do(p),B=Do(y),Z=DL(O,B),ce=kL(O,B)+1;return Eu(O,Z,ce).join("")}function Gle(p,y,$){if(p=Pr(p),p&&($||y===n))return p.slice(0,EL(p)+1);if(!p||!(y=es(y)))return p;var O=Do(p),B=kL(O,Do(y))+1;return Eu(O,0,B).join("")}function Kle(p,y,$){if(p=Pr(p),p&&($||y===n))return p.replace(qe,"");if(!p||!(y=es(y)))return p;var O=Do(p),B=DL(O,Do(y));return Eu(O,B).join("")}function Yle(p,y){var $=L,O=V;if(un(y)){var B="separator"in y?y.separator:B;$="length"in y?Ft(y.length):$,O="omission"in y?es(y.omission):O}p=Pr(p);var Z=p.length;if(Fh(p)){var ce=Do(p);Z=ce.length}if($>=Z)return p;var me=$-qh(O);if(me<1)return O;var $e=ce?Eu(ce,0,me).join(""):p.slice(0,me);if(B===n)return $e+O;if(ce&&(me+=$e.length-me),WD(B)){if(p.slice(me).search(B)){var ze,Ue=$e;for(B.global||(B=oD(B.source,Pr(It.exec(B))+"g")),B.lastIndex=0;ze=B.exec(Ue);)var He=ze.index;$e=$e.slice(0,He===n?me:He)}}else if(p.indexOf(es(B),me)!=me){var tt=$e.lastIndexOf(B);tt>-1&&($e=$e.slice(0,tt))}return $e+O}function Jle(p){return p=Pr(p),p&&Ye.test(p)?p.replace(Pe,_ne):p}var Qle=Gh(function(p,y,$){return p+($?" ":"")+y.toUpperCase()}),KD=vF("toUpperCase");function yq(p,y,$){return p=Pr(p),y=$?n:y,y===n?bne(p)?kne(p):fne(p):p.match(y)||[]}var gq=Wt(function(p,y){try{return Za(p,n,y)}catch($){return VD($)?$:new Mt($)}}),Zle=sc(function(p,y){return ks(y,function($){$=ml($),ic(p,$,UD(p[$],p))}),p});function Xle(p){var y=p==null?0:p.length,$=Dt();return p=y?an(p,function(O){if(typeof O[1]!="function")throw new Os(r);return[$(O[0]),O[1]]}):[],Wt(function(O){for(var B=-1;++BX)return[];var $=M,O=Mi(p,M);y=Dt(y),p-=M;for(var B=iD(O,y);++$0||y<0)?new er($):(p<0?$=$.takeRight(-p):p&&($=$.drop(p)),y!==n&&(y=Ft(y),$=y<0?$.dropRight(-y):$.take(y-p)),$)},er.prototype.takeRightWhile=function(p){return this.reverse().takeWhile(p).reverse()},er.prototype.toArray=function(){return this.take(M)},hl(er.prototype,function(p,y){var $=/^(?:filter|find|map|reject)|While$/.test(y),O=/^(?:head|last)$/.test(y),B=Q[O?"take"+(y=="last"?"Right":""):y],Z=O||/^find/.test(y);B&&(Q.prototype[y]=function(){var ce=this.__wrapped__,me=O?[1]:arguments,$e=ce instanceof er,ze=me[0],Ue=$e||Rt(ce),He=function(Qt){var nr=B.apply(Q,Su([Qt],me));return O&&tt?nr[0]:nr};Ue&&$&&typeof ze=="function"&&ze.length!=1&&($e=Ue=!1);var tt=this.__chain__,Pt=!!this.__actions__.length,kt=Z&&!tt,Ut=$e&&!Pt;if(!Z&&Ue){ce=Ut?ce:new er(this);var Ot=p.apply(ce,me);return Ot.__actions__.push({func:b1,args:[He],thisArg:n}),new Es(Ot,tt)}return kt&&Ut?p.apply(this,me):(Ot=this.thru(He),kt?O?Ot.value()[0]:Ot.value():Ot)})}),ks(["pop","push","shift","sort","splice","unshift"],function(p){var y=Hb[p],$=/^(?:push|sort|unshift)$/.test(p)?"tap":"thru",O=/^(?:pop|shift)$/.test(p);Q.prototype[p]=function(){var B=arguments;if(O&&!this.__chain__){var Z=this.value();return y.apply(Rt(Z)?Z:[],B)}return this[$](function(ce){return y.apply(Rt(ce)?ce:[],B)})}}),hl(er.prototype,function(p,y){var $=Q[y];if($){var O=$.name+"";Sr.call(Vh,O)||(Vh[O]=[]),Vh[O].push({name:y,func:$})}}),Vh[h1(n,v).name]=[{name:"wrapper",func:n}],er.prototype.clone=Jne,er.prototype.reverse=Qne,er.prototype.value=Zne,Q.prototype.at=Dse,Q.prototype.chain=kse,Q.prototype.commit=Ose,Q.prototype.next=Ese,Q.prototype.plant=Cse,Q.prototype.reverse=Tse,Q.prototype.toJSON=Q.prototype.valueOf=Q.prototype.value=jse,Q.prototype.first=Q.prototype.head,h0&&(Q.prototype[h0]=Ise),Q},zh=One();Kf?((Kf.exports=zh)._=zh,Jx._=zh):gi._=zh}).call(Cr)})(mS,mS.exports);var ir=mS.exports;function Ol(t){let e="";return t.absolute&&(t.protocol==="file"?(t.drive&&(e+=t.drive),e+="/"):(e+=t.protocol+"://",t.origin&&(e+=t.origin+"/"))),(e+=t.path.join("/"))===""&&(e="."),e}function BP(t,e,n,i){this.message=t,this.expected=e,this.found=n,this.location=i,this.name="SyntaxError",typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,BP)}(function(t,e){function n(){this.constructor=t}n.prototype=e.prototype,t.prototype=new n})(BP,Error),BP.buildMessage=function(t,e){var n={literal:function(r){return'"'+a(r.text)+'"'},class:function(r){var s,c="";for(s=0;s0){for(s=1,c=1;sDe&&(De=Ae,We=[]),We.push(J))}function je(){var J;return(J=function(){var w,K,te,fe,he;return w=Ae,(K=$t())!==r&&(te=Se())!==r&&(fe=nn())!==r&&(he=lr())!==r?(K=l(K,te,fe,he),w=K):(Ae=w,w=r),w===r&&(w=Ae,(K=$t())!==r&&(te=Se())!==r&&(fe=function(){var Y;return(Y=v)!==r&&(Y=C()),Y}())!==r?(K=u(K,te,fe),w=K):(Ae=w,w=r)),w}())===r&&(J=function(){var w,K,te,fe;return w=Ae,(K=function(){var he;return t.substr(Ae,7).toLowerCase()===_?(he=t.substr(Ae,7),Ae+=7):(he=r,Re(x)),he===r&&(t.substr(Ae,5).toLowerCase()===E?(he=t.substr(Ae,5),Ae+=5):(he=r,Re(j))),he!==r&&(he=F()),he}())!==r&&(te=pt())!==r&&(fe=lr())!==r?(K=A(K,te,fe),w=K):(Ae=w,w=r),w}())===r&&(J=function(){var w,K,te;return w=Ae,(K=pt())!==r&&(te=lr())!==r?(K=I(K,te),w=K):(Ae=w,w=r),w}())===r&&(J=function(){var w,K,te;return w=Ae,(K=function(){var fe;return(fe=function(){var he,Y,k;return he=Ae,t.charCodeAt(Ae)===46?(Y=M,Ae++):(Y=r,Re(U)),Y!==r&&(k=Yt())!==r?he=Y=[Y,k]:(Ae=he,he=r),he}())===r&&(fe=v),fe}())!==r&&(te=lr())!==r?(K=H(te),w=K):(Ae=w,w=r),w}()),J}function $t(){var J,w;return t.substr(Ae,7).toLowerCase()===f?(w=t.substr(Ae,7),Ae+=7):(w=r,Re(h)),w!==r&&(w=d()),(J=w)===r&&(J=function(){var K;return t.substr(Ae,8).toLowerCase()===m?(K=t.substr(Ae,8),Ae+=8):(K=r,Re(g)),K!==r&&(K=b()),K}()),J}function Se(){var J,w,K;if(J=Ae,w=[],(K=cr())!==r)for(;K!==r;)w.push(K),K=cr();else w=r;return(J=w!==r?t.substring(J,Ae):w)===r&&(J=Ae,(w=v)!==r&&(w=P()),J=w),J}function pt(){var J;return(J=function(){var w,K,te,fe;return w=Ae,(K=Yt())===r&&(K=null),K!==r?(L.test(t.charAt(Ae))?(te=t.charAt(Ae),Ae++):(te=r,Re(V)),te!==r?(t.charCodeAt(Ae)===58?(fe=q,Ae++):(fe=r,Re(S)),fe!==r&&Yt()!==r?(K=D(te),w=K):(Ae=w,w=r)):(Ae=w,w=r)):(Ae=w,w=r),w}())===r&&(J=nn()),J}function nn(){var J;return(J=Yt())!==r&&(J=R()),J}function lr(){var J;return(J=function w(){var K,te,fe;return K=Ae,(te=Dr())!==r&&Yt()!==r&&(fe=w())!==r?(te=ae(te,fe),K=te):(Ae=K,K=r),K===r&&(K=Ae,(te=Dr())!==r&&(te=z(te)),K=te),K}())!==r&&(J=X(J)),J}function Dr(){var J,w,K;if(J=Ae,w=[],(K=cr())!==r)for(;K!==r;)w.push(K),K=cr();else w=r;return(J=w!==r?t.substring(J,Ae):w)===r&&(J=v),J}function Yt(){var J;return t.charCodeAt(Ae)===47?(J=W,Ae++):(J=r,Re(T)),J===r&&(t.charCodeAt(Ae)===92?(J=G,Ae++):(J=r,Re(oe))),J}function cr(){var J;return ve.test(t.charAt(Ae))?(J=t.charAt(Ae),Ae++):(J=r,Re(ie)),J}if((n=c())!==r&&Ae===t.length)return n;throw n!==r&&Aei!==""&&i!==".");const n=[];for(const i of e)i===".."&&n.length&&n[n.length-1]!==".."?n.pop():i===".."&&t.absolute||n.push(i);return t.path=n,t}function GM(t){let e=t.lastIndexOf(".");t===".."&&(e=-1),t==="."&&(e=-1);let n=t,i="";return e>0&&(n=t.slice(0,e),i=t.slice(e)),{name:n,ext:i}}const KLe=(t,e)=>{const n=lu(vs(t)).path.pop();if(!n)return"";const{name:i,ext:a}=GM(n);return e===!0||e===a?i:`${i}${a}`},lZ=t=>{const e=lu(vs(t));return e.path.pop(),Ol(lu(e))},cZ=t=>{const e=lu(vs(t)).path.pop();if(!e)return"";const{ext:n}=GM(e);return n};function uZ(t){return vs(t).absolute}function YLe(t){const e=vs(t);return e.protocol==="http"||e.protocol==="https"}const KM=(...t)=>{if(t.length===0)return".";const e=t.map(vs),n=Object.assign({},e[0]);for(let i=1;ivs(t).drive!==null,eFe=t=>vs(t).path.filter(Boolean).join("/");function tFe(t){const[e,n,i,...a]=t.split("/"),o=a.length?`/${a.join("/")}`:void 0;let r,s;return o&&(r=a.find(c=>c.includes(".")))&&(s=GM(r).ext),{shortcode:e,orgSlug:n,projectSlug:i,uri:o,file:r,ext:s}}function rFe({shortcode:t,orgSlug:e,projectSlug:n,uri:i=""}){return[t,e,n,i.replace(/^\//,"")].filter(Boolean).join("/")}const nFe=Object.freeze(Object.defineProperty({__proto__:null,basename:KLe,deserializeSrn:tFe,dirname:lZ,extname:cZ,format:Ol,isAbsolute:uZ,isURL:YLe,join:KM,normalize:QU,parse:vs,relative:JLe,resolve:QLe,sep:ZLe,serializeSrn:rFe,startsWithWindowsDrive:XLe,stripRoot:eFe,toFSPath:QU},Symbol.toStringTag,{value:"Module"}));function fZ(t,e){e===void 0&&(e=!1);var n=t.length,i=0,a="",o=0,r=16,s=0,c=0,l=0,u=0,f=0;function h(A,_){for(var x=0,E=0;x=48&&j<=57)E=E*16+j-48;else if(j>=65&&j<=70)E=E*16+j-65+10;else if(j>=97&&j<=102)E=E*16+j-97+10;else break;i++,x++}return x=n){A+=t.substring(_,i),f=2;break}var x=t.charCodeAt(i);if(x===34){A+=t.substring(_,i),i++;break}if(x===92){if(A+=t.substring(_,i),i++,i>=n){f=2;break}var E=t.charCodeAt(i++);switch(E){case 34:A+='"';break;case 92:A+="\\";break;case 47:A+="/";break;case 98:A+="\b";break;case 102:A+="\f";break;case 110:A+=` +`;break;case 114:A+="\r";break;case 116:A+=" ";break;case 117:var j=h(4,!0);j>=0?A+=String.fromCharCode(j):f=4;break;default:f=5}_=i;continue}if(x>=0&&x<=31)if(J0(x)){A+=t.substring(_,i),f=2;break}else f=6;i++}return A}function b(){if(a="",f=0,o=i,c=s,u=l,i>=n)return o=n,r=17;var A=t.charCodeAt(i);if(wO(A)){do i++,a+=String.fromCharCode(A),A=t.charCodeAt(i);while(wO(A));return r=15}if(J0(A))return i++,a+=String.fromCharCode(A),A===13&&t.charCodeAt(i)===10&&(i++,a+=` +`),s++,l=i,r=14;switch(A){case 123:return i++,r=1;case 125:return i++,r=2;case 91:return i++,r=3;case 93:return i++,r=4;case 58:return i++,r=6;case 44:return i++,r=5;case 34:return i++,a=g(),r=10;case 47:var _=i-1;if(t.charCodeAt(i+1)===47){for(i+=2;i=12&&A<=15);return A}return{setPosition:d,getPosition:function(){return i},scan:e?P:b,getToken:function(){return r},getTokenValue:function(){return a},getTokenOffset:function(){return o},getTokenLength:function(){return i-o},getTokenStartLine:function(){return c},getTokenStartCharacter:function(){return o-u},getTokenError:function(){return f}}}function wO(t){return t===32||t===9||t===11||t===12||t===160||t===5760||t>=8192&&t<=8203||t===8239||t===8287||t===12288||t===65279}function J0(t){return t===10||t===13||t===8232||t===8233}function id(t){return t>=48&&t<=57}var NC;(function(t){t.DEFAULT={allowTrailingComma:!1}})(NC||(NC={}));function pZ(t){if(!t.parent||!t.parent.children)return[];var e=pZ(t.parent);if(t.parent.type==="property"){var n=t.parent.children[0].value;e.push(n)}else if(t.parent.type==="array"){var i=t.parent.children.indexOf(t);i!==-1&&e.push(i)}return e}function iFe(t,e,n){return n===void 0&&(n=!1),e>=t.offset&&e0)for(var q=i.getToken();q!==17;){if(L.indexOf(q)!==-1){v();break}else if(V.indexOf(q)!==-1)break;q=v()}}function A(I){var L=i.getTokenValue();return I?f(L):s(L),v(),!0}function _(){switch(i.getToken()){case 11:var I=0;try{I=JSON.parse(i.getTokenValue()),typeof I!="number"&&(P(2),I=0)}catch{P(2)}f(I);break;case 7:f(null);break;case 8:f(!0);break;case 9:f(!1);break;default:return!1}return v(),!0}function x(){return i.getToken()!==10?(P(3,[],[2,5]),!1):(A(!1),i.getToken()===6?(h(":"),v(),F()||P(4,[],[2,5])):P(5,[],[2,5]),!0)}function E(){r(),v();for(var I=!1;i.getToken()!==2&&i.getToken()!==17;){if(i.getToken()===5){if(I||P(4,[],[]),h(","),v(),i.getToken()===2&&b)break}else I&&P(6,[],[]);x()||P(4,[],[2,5]),I=!0}return c(),i.getToken()!==2?P(7,[2],[]):v(),!0}function j(){l(),v();for(var I=!1;i.getToken()!==4&&i.getToken()!==17;){if(i.getToken()===5){if(I||P(4,[],[]),h(","),v(),i.getToken()===4&&b)break}else I&&P(6,[],[]);F()||P(4,[],[4,5]),I=!0}return u(),i.getToken()!==4?P(8,[4],[]):v(),!0}function F(){switch(i.getToken()){case 3:return j();case 1:return E();case 10:return A(!0);default:return _()}}return v(),i.getToken()===17?n.allowEmptyContent?!0:(P(4,[],[]),!1):F()?(i.getToken()!==17&&P(9,[],[]),!0):(P(4,[],[]),!1)}var sFe=fZ,oFe=hZ,lFe=pZ,cFe=aFe;function uFe(t){switch(t){case 1:return"InvalidSymbol";case 2:return"InvalidNumberFormat";case 3:return"PropertyNameExpected";case 4:return"ValueExpected";case 5:return"ColonExpected";case 6:return"CommaExpected";case 7:return"CloseBraceExpected";case 8:return"CloseBracketExpected";case 9:return"EndOfFileExpected";case 10:return"InvalidCommentToken";case 11:return"UnexpectedEndOfComment";case 12:return"UnexpectedEndOfString";case 13:return"UnexpectedEndOfNumber";case 14:return"InvalidUnicode";case 15:return"InvalidEscapeCharacter";case 16:return"InvalidCharacter"}return""}var fFe={};const pFe=Math.floor(Date.now()/36e5),YM=`__object_order_${pFe}__`,vn=Symbol.for(YM),Kv=String(vn),hFe={defineProperty(t,e,n){return!Object.prototype.hasOwnProperty.call(t,e)&&vn in t?t[vn].push(e):"value"in n&&e===vn&&n.value.lastIndexOf(vn)===-1&&n.value.push(vn),Reflect.defineProperty(t,e,n)},deleteProperty(t,e){const n=Object.prototype.hasOwnProperty.call(t,e),i=Reflect.deleteProperty(t,e);if(i&&n&&vn in t){const a=t[vn].indexOf(e);a!==-1&&t[vn].splice(a,1)}return i},ownKeys(t){return vn in t?t[vn]:Reflect.ownKeys(t)},set(t,e,n){const i=Object.prototype.hasOwnProperty.call(t,e),a=Reflect.set(t,e,n);return a&&!i&&vn in t&&t[vn].push(e),a}};function JM(t,e=Reflect.ownKeys(t)){XM(t);const n=new Proxy(t,hFe);return dZ(n,e),n}function dZ(t,e){return vn in t?(t[vn].length=0,t[vn].push(...e),!0):Reflect.defineProperty(t,vn,{configurable:!0,value:e})}function mZ(t){return t[vn]}function yZ(t){const e=t.slice();for(let n=0;ni!==vn)}),e)for(const i of Object.keys(t)){if(i===Kv)continue;const a=t[i];uh(a)&&(n[i]=Array.isArray(a)?yZ(a):QM(a,!0))}return n}function gZ(t){for(let e=0;e"u"||!uh(process)||!uh(fFe),!1}const vFe=Object.freeze(Object.defineProperty({__proto__:null,ORDER_KEY_ID:YM,default:JM,deserialize:ZM,getOrder:mZ,isOrderedObject:dFe,serialize:QM,setOrder:dZ},Symbol.toStringTag,{value:"Module"}));var ZU;(function(t){t.None="none",t.Declared="declared",t.InheritedFromService="inheritedFromService"})(ZU||(ZU={}));var XU;(function(t){t.Unspecified="unspecified",t.Simple="simple",t.Matrix="matrix",t.Label="label",t.Form="form",t.CommaDelimited="commaDelimited",t.SpaceDelimited="spaceDelimited",t.PipeDelimited="pipeDelimited",t.DeepObject="deepObject",t.TabDelimited="tabDelimited"})(XU||(XU={}));var Vp;(function(t){t[t.Error=0]="Error",t[t.Warning=1]="Warning",t[t.Information=2]="Information",t[t.Hint=3]="Hint"})(Vp||(Vp={}));var e5;(function(t){t.Article="article",t.HttpService="http_service",t.HttpServer="http_server",t.HttpOperation="http_operation",t.HttpCallback="http_callback",t.Model="model",t.Generic="generic",t.Unknown="unknown",t.TableOfContents="table_of_contents",t.SpectralRuleset="spectral_ruleset",t.Styleguide="styleguide",t.Image="image",t.StoplightResolutions="stoplight_resolutions",t.StoplightOverride="stoplight_override"})(e5||(e5={}));var t5;(function(t){t.Json="json",t.Markdown="markdown",t.Yaml="yaml",t.Javascript="javascript",t.Apng="apng",t.Avif="avif",t.Bmp="bmp",t.Gif="gif",t.Jpeg="jpeg",t.Png="png",t.Svg="svg",t.Webp="webp"})(t5||(t5={}));var PFe=AFe,mr="";const bFe=/[\x00-\x1f\x22\x5c]/,wFe=/[\x00-\x1f\x22\x5c]/g,LC=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000b","\\f","\\r","\\u000e","\\u000f","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001a","\\u001b","\\u001c","\\u001d","\\u001e","\\u001f","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\"];function $Fe(t){return LC[t.charCodeAt(0)]}function bo(t){if(t.length<5e3&&!bFe.test(t))return t;if(t.length>100)return t.replace(wFe,$Fe);for(var e="",n=0,i=0;ii;)t[n]=t[n-1],n--;t[n]=i}return t}function AFe(t,e,n){var i,a="";if(mr="",arguments.length>1){if(typeof n=="number")for(i=0;ifh(t)&&"$ref"in t,vZ=t=>yS(t)&&typeof t.$ref=="string",eR=t=>t.length>0&&(t==="#"||/^#\S*$/.test(t)),Mf=(t,e,n)=>{const i=t.toString();let a="",o=i,r=0,s=o.indexOf(e);for(;s>-1;)a+=i.substring(r,r+s)+n,o=o.substring(s+e.length,o.length),r+=s+e.length,s=o.indexOf(e);return o.length>0&&(a+=i.substring(i.length-o.length,i.length)),a},PZ=t=>typeof t=="number"?t:Mf(Mf(t,"~","~0"),"/","~1"),DFe=/[^a-zA–Z0–9_.!~*'()\/\-\u{D800}-\u{DFFF}]/gu;function bZ(t){return t.replace(DFe,encodeURIComponent)}const wZ=t=>{const e=PZ(t);return typeof e=="number"?e:bZ(e)},gS=t=>kFe(t),kFe=t=>{if(t&&typeof t!="object")throw new TypeError("Invalid type: path must be an array of segments.");return t.length===0?"#":`#/${t.map(wZ).join("/")}`};function OFe(t){try{return decodeURIComponent(t)}catch{return t}}const EFe=/%[0-9a-f]+/gi,zC=t=>{let e;try{e=decodeURIComponent(t)}catch{e=t.replace(EFe,OFe)}return Mf(Mf(e,"~1","/"),"~0","~")},el=t=>IFe(t),IFe=t=>{if(typeof t!="string")throw new TypeError("Invalid type: JSON Pointers are represented as strings.");if(t.length===0||t[0]!=="#")throw new URIError("Invalid JSON Pointer syntax; URI fragment identifiers must begin with a hash.");if(t.length===1)return[];if(t[1]!=="/")throw new URIError("Invalid JSON Pointer syntax.");return(e=>{const n=e.length,i=[];let a=-1;for(;++a{const i={value:t,path:n};e.onEnter&&e.onEnter(i);for(const a of Object.keys(t)){const o=t[a];e.onProperty&&e.onProperty({parent:t,parentPath:n,property:a,propertyValue:o}),typeof o=="object"&&o!==null&&$Z(o,e,n.concat(a))}e.onLeave&&e.onLeave(i)},tR=(t,e)=>{typeof t=="object"&&t!==null&&$Z(t,typeof e=="function"?{onProperty:e}:e,[])};function AZ(t,e,n){tR(t,{onProperty({property:i,propertyValue:a,parent:o}){i==="$ref"&&typeof a=="string"&&a.startsWith(e)&&(o.$ref=`${n}${a.slice(e.length)}`)}})}const SZ=t=>t.length>0&&t[0]!=="#",rR=t=>{if(typeof t!="string"||t.length===0||!SZ(t))return null;const e=t.indexOf("#");return e===-1?t:t.slice(0,e)};function _Z(t,e){return fh(e)&&fh(t)&&("summary"in t||"description"in t)?Object.assign(Object.assign(Object.assign({},e),"description"in t?{description:t.description}:null),"summary"in t?{summary:t.summary}:null):e}function*xZ(t,e,n){yS(t.value)&&(qC(t.value),yield[-1,t.value]);for(const[i,a]of e.entries())xFe(t.value,a,n),t.value=t.value[a],yS(t.value)&&(qC(t.value),yield[i,t.value])}function DZ(t,e){return kZ(t,e).value}function kZ(t,e){return function n(i,a,o,r){if(rR(a)!==null)throw new ReferenceError("Cannot resolve external references");const s=el(a);let c=[...s];a==="#"&&yS(i)&&(qC(i),s.unshift(...el(i.$ref)));const l={value:i};for(const[u,f]of xZ(l,s,a)){if(o.includes(f))return{source:null,location:r??c,value:o[o.length-1]};o.push(f);const h=n(i,f.$ref,o,c);l.value=h.value,(c=h.location).push(...s.slice(u+1))}return{source:null,location:c,value:o.length>0?_Z(o[o.length-1],l.value):l.value}}(t,e,[])}const CFe="#/__bundled__",TFe="#/__errors__",jFe=({document:t,path:e,bundleRoot:n="#/__bundled__",errorsRoot:i="#/__errors__",cloneDocument:a=!0,keyProvider:o},r)=>{if(e===n||e===i)throw new Error("Roots do not make any sense");const s=a?ir.cloneDeep(t):t;return MFe(s,el(n),el(i),e,o)(e,{[e]:!0},r)},MFe=(t,e,n,i,a)=>{const o=new Set,r=(s,c,l,u={},f={},h={})=>{const d=el(s),m=ir.get(t,d);tR(l||m,{onEnter:({value:b})=>{if(vZ(b)&&eR(b.$ref)){const v=b.$ref;if(h[v])return;if(v===s&&(u[v]="#"),u[v])return void(b.$ref=u[v]);let P,A,_,x,E;try{let j;P=el(v),a&&(j=a({document:t,path:P})),j||(j=(({document:I,path:L})=>L.length===0?"root":Array.isArray(ir.get(I,L.slice(0,-1)))?`${L[L.length-2]}_${L[L.length-1]}`:String(L[L.length-1]))({document:t,path:P})),_=j;let F=1;for(;o.has(_);)if(_=`${j}_${++F}`,F>20)throw new Error(`Keys ${j}_2 through ${j}_20 already taken.`);o.add(_),A=[...e,_],x=gS(A)}catch(j){h[v]=j instanceof Error?j.message:String(j)}if(!P||!A||!x)return;if(typeof t=="object"&&t!==null&&!(E=ir.get(t,P)))try{E=DZ(Object(t),v)}catch{}E!==void 0&&(u[v]=x,b.$ref=x,ir.has(f,A)||(Array.isArray(E)?ir.set(f,A,new Array(E.length).fill(null)):typeof E=="object"&&ir.setWith(f,A,{},Object),ir.set(f,A,E),v==="#"?function(j,F,I,L){const V=I.map(D=>`[${JSON.stringify(D)}]`).join(""),q=JSON.parse(JSON.stringify(ir.omit(Object(j),V))),S={};ir.set(F,L,q),ir.set(q,I,S),AZ(q,"#",gS(L)),S.$ref="#"}(t,f,el(i),A):c[v]||(c[v]=!0,r(s,c,E,u,f,h),c[v]=!1)))}}});const g=ir.get(f,e);return g&&Object.keys(g).length&&ir.set(m,e,g),(Object.keys(h).length||ir.has(t,n))&&ir.set(m,n,ir.has(t,n)?ir.get(t,n):h),m};return r},nR=t=>Mf(Mf(t,"~1","/"),"~0","~"),RFe=(t,e)=>{const n=new WeakMap;return function i(a,o){let r;if(e&&(a=e(a)),fh(a)||Array.isArray(a)){const s=n.get(a);return s?{$ref:s}:(n.set(a,gS(o)),Array.isArray(a)?r=a.map((c,l)=>i(c,[...o,String(l)])):(r={},Object.keys(a).forEach(c=>{r[c]=i(a[c],[...o,c])})),n.delete(a),r)}return a}(t,[])},NFe=t=>Mf(Mf(t,"~","~0"),"//","/~1"),OZ=t=>{if(typeof t!="string"||t.length===0)return null;const e=t.indexOf("#");return e===-1?null:t.slice(e)},LFe=t=>{const e=sFe(t,!0);if(e.scan(),e.getToken()!==1||(e.scan(),e.getToken()===2))return;if(e.getToken()!==10)throw new SyntaxError("Unexpected character");const n=e.getTokenValue();if(e.scan(),e.getToken()!==6)throw new SyntaxError("Colon expected");switch(e.scan(),e.getToken()){case 10:return[n,e.getTokenValue()];case 11:return[n,Number(e.getTokenValue())];case 8:return[n,!0];case 9:return[n,!1];case 7:return[n,null];case 16:throw new SyntaxError("Unexpected character");case 17:throw new SyntaxError("Unexpected end of file");default:return}},FFe=({lineMap:t,ast:e},n)=>{const i=t[n.line],a=t[n.line+1];if(i===void 0)return;const o=oFe(e,a===void 0?i+n.character:Math.min(a,i+n.character),!0);if(o===void 0)return;const r=lFe(o);return r.length!==0?r:void 0};function qFe(t){return nR(t.split("/").pop()||"")}const zFe=({ast:t},e,n=!1)=>{const i=function(a,o,r){e:for(const s of o){const c=Number.isInteger(Number(s))?Number(s):s;if(typeof c=="string"||typeof c=="number"&&a.type!=="array"){if(a.type!=="object"||!Array.isArray(a.children))return r?a:void 0;for(const l of a.children)if(Array.isArray(l.children)&&l.children[0].value===String(c)&&l.children.length===2){a=l.children[1];continue e}return r?a:void 0}if(a.type!=="array"||c<0||!Array.isArray(a.children)||c>=a.children.length)return r?a:void 0;a=a.children[c]}return a}(t,e,n);if(i!==void 0&&i.range!==void 0)return{range:i.range}},UFe=(t,e={disallowComments:!0})=>{const n=[],{ast:i,data:a,lineMap:o}=EZ(t,n,e);return{data:a,diagnostics:n,ast:i,lineMap:o}};function EZ(t,e=[],n){const i=VFe(t);let a={type:"array",offset:-1,length:-1,children:[],parent:void 0},o=null,r=[];const s=new WeakMap,c=[];function l(b){a.type==="property"&&(a.length=b-a.offset,a=a.parent)}function u(b,v,P){return{start:{line:b,character:v},end:{line:b,character:v+P}}}function f(b){return a.children.push(b),b}function h(b){Array.isArray(r)?r.push(b):o!==null&&(r[o]=b)}function d(b){h(b),c.push(r),r=b,o=null}function m(){r=c.pop()}cFe(t,{onObjectBegin:(b,v,P,A)=>{a=f({type:"object",offset:b,length:-1,parent:a,children:[],range:u(P,A,v)}),n.ignoreDuplicateKeys===!1&&s.set(a,[]),d(function(_){return _?JM({}):{}}(n.preserveKeyOrder===!0))},onObjectProperty:(b,v,P,A,_)=>{if((a=f({type:"property",offset:v,length:-1,parent:a,children:[]})).children.push({type:"string",value:b,offset:v,length:P,parent:a}),n.ignoreDuplicateKeys===!1){const x=s.get(a.parent);x&&(x.length!==0&&x.includes(b)?e.push({range:u(A,_,P),message:"DuplicateKey",severity:Vp.Error,path:IZ(a),code:20}):x.push(b))}n.preserveKeyOrder===!0&&function(x,E){if(!(E in x))return;const j=mZ(x),F=j.indexOf(E);F!==-1&&(j.splice(F,1),j.push(E))}(r,b),o=b},onObjectEnd:(b,v,P,A)=>{n.ignoreDuplicateKeys===!1&&s.delete(a),a.length=b+v-a.offset,a.range&&(a.range.end.line=P,a.range.end.character=A+v),a=a.parent,l(b+v),m()},onArrayBegin:(b,v,P,A)=>{a=f({type:"array",offset:b,length:-1,parent:a,children:[],range:u(P,A,v)}),d([])},onArrayEnd:(b,v,P,A)=>{a.length=b+v-a.offset,a.range&&(a.range.end.line=P,a.range.end.character=A+v),a=a.parent,l(b+v),m()},onLiteralValue:(b,v,P,A,_)=>{f({type:BFe(b),offset:v,length:P,parent:a,value:b,range:u(A,_,P)}),l(v+P),h(b)},onSeparator:(b,v)=>{a.type==="property"&&(b===":"?a.colonOffset=v:b===","&&l(v))},onError:(b,v,P,A,_)=>{e.push({range:u(A,_,P),message:uFe(b),severity:Vp.Error,code:b})}},n);const g=a.children[0];return g&&delete g.parent,{ast:g,data:r[0],lineMap:i}}function BFe(t){switch(typeof t){case"boolean":return"boolean";case"number":return"number";case"string":return"string";default:return"null"}}const VFe=t=>{const e=[0];let n=0;for(;n{if(!t||!Object.hasOwnProperty.call(t,e)||e===n)return t;const i={};for(const[a,o]of Object.entries(t))a===e?i[n]=o:a in i||(i[a]=o);return i};function Ow(t){return fh(t)||Array.isArray(t)}function HFe(t,e,n){if(n.length<=1||e.length<=1)throw Error("Source/target path must not be empty and point at root");if(e.indexOf(n)===0)throw Error("Target path cannot be contained within source");const i=el(e);let a=t;for(const s of i){if(!Ow(a))return;a=a[s]}if(!Ow(a))return;const o=el(n);let r=t;for(const[s,c]of o.entries()){if(!Ow(r)||c in r)return;const l=s===o.length-1?a:{};r[c]=l,r=l}delete t[i[0]],function s(c,l,u){for(const f of Object.keys(c)){const h=c[f];if(f!=="$ref")Ow(h)&&s(h,l,u);else{if(typeof h!="string"||!eR(h))continue;h.indexOf(l)===0&&(c[f]=h.replace(l,u))}}}(t,e,n)}async function CZ(t,e,n,i,a){let o=function(f,h){const d=rR(h);return d===null?f:uZ(d)?d:KM(lZ(f),d)}(e,n);const r=OZ(n)||"#",s=await t[o],c=el(r);let l=[...c];const u={value:s};for(const[f,h]of xZ(u,c,r)){if(i.includes(h))return{source:e,location:a??l,value:i[i.length-1]};i.push(h);const d=await CZ(t,o,h.$ref,i,l);({source:o,location:l}=d),u.value=d.value,l.push(...c.slice(f+1))}return{source:o,location:l,value:i.length>0?_Z(i[i.length-1],u.value):u.value}}async function GFe(t,e,n){return(await TZ(t,e,n)).value}function TZ(t,e,n){return CZ(t,e,n,[])}const KFe=(t,e)=>{if(typeof t!="string")return t;try{const n=YFe(t);return typeof n=="string"?n:JSON.parse(t,e)}catch{return}},YFe=t=>{const e=Number(t);return Number.isFinite(e)?String(e)===t?e:t:NaN},jZ=(t,e,n)=>{if(typeof t=="string")return t;try{return JSON.stringify(t,e,n)}catch{return _Fe(t,e,n)}},JFe=(t,e)=>{if(t instanceof Array){if(e instanceof Array){if(e.length>t.length)return!1;for(const n in e){if(!e.hasOwnProperty(n))continue;const i=parseInt(t[n]),a=parseInt(e[n]);if(isNaN(i)&&isNaN(a)){if(t[n]!==e[n])return!1}else if(i!==a)return!1}}}else{if(typeof t!="string")return!1;if(typeof e=="string")return t.startsWith(e)}return!0},QFe=(t,e,n)=>{const i=jZ(t,e,n);if(i===void 0)throw new Error("The value could not be stringified");return i};function ZFe(t){return t.replace(/^(\/|#\/)/,"").split("/").map(nR).map(XFe).join(".")}function XFe(t){return t.includes(".")?`["${t.replace(/"/g,'\\"')}"]`:t}const UC=Symbol.for(YM),eqe={ownKeys:t=>UC in t?t[UC]:Reflect.ownKeys(t)},tqe=t=>new Proxy(t,eqe);function rqe(t,e){if(typeof t=="string"&&typeof e=="string")return ir.trimStart(t,e);if(!(t&&Array.isArray(t)&&t.length&&e&&Array.isArray(e)&&e.length))return t;let n=0;for(const i in t)if(t.hasOwnProperty(i)){if(t[i]!==e[i])break;n++}return t.slice(n)}const nqe=Object.freeze(Object.defineProperty({__proto__:null,BUNDLE_ROOT:CFe,ERRORS_ROOT:TFe,KEYS:UC,bundleTarget:jFe,decodePointer:zC,decodePointerFragment:nR,decodePointerUriFragment:zC,decycle:RFe,encodePointer:NFe,encodePointerFragment:PZ,encodePointerUriFragment:wZ,encodeUriPointer:bZ,extractPointerFromRef:OZ,extractSourceFromRef:rR,getFirstPrimitiveProperty:LFe,getJsonPathForPosition:FFe,getLastPathSegment:qFe,getLocationForJsonPath:zFe,hasRef:vZ,isExternalRef:SZ,isLocalRef:eR,isPlainObject:fh,parseTree:EZ,parseWithPointers:UFe,pathToPointer:gS,pointerToPath:el,remapRefs:AZ,renameObjectKey:WFe,reparentBundleTarget:HFe,resolveExternalRef:GFe,resolveExternalRefWithLocation:TZ,resolveInlineRef:DZ,resolveInlineRefWithLocation:kZ,safeParse:KFe,safeStringify:jZ,startsWith:JFe,stringify:QFe,toPropertyPath:ZFe,trapAccess:tqe,traverse:tR,trimStart:rqe},Symbol.toStringTag,{value:"Module"})),Hr=Yl(nqe),Ih=Yl(nFe);var $O={exports:{}},Yr={},r5;function iqe(){if(r5)return Yr;r5=1;function t(J){for(var w=arguments.length,K=Array(w>1?w-1:0),te=1;te3?w.t-4:w.t:Array.isArray(J)?1:l(J)?2:u(J)?3:0}function o(J,w){return a(J)===2?J.has(w):Object.prototype.hasOwnProperty.call(J,w)}function r(J,w){return a(J)===2?J.get(w):J[w]}function s(J,w,K){var te=a(J);te===2?J.set(w,K):te===3?J.add(K):J[w]=K}function c(J,w){return J===w?J!==0||1/J==1/w:J!=J&&w!=w}function l(J){return G&&J instanceof Map}function u(J){return oe&&J instanceof Set}function f(J){return J.i||J.u}function h(J){if(Array.isArray(J))return Array.prototype.slice.call(J);var w=_e(J);delete w[pe];for(var K=Ce(w),te=0;te1&&(J.set=J.add=J.clear=J.delete=m),Object.freeze(J),w&&i(J,function(K,te){return d(te,!0)},!0)),J}function m(){t(2)}function g(J){return J==null||typeof J!="object"||Object.isFrozen(J)}function b(J){var w=st[J];return w||t(18,J),w}function v(J,w){st[J]||(st[J]=w)}function P(){return W}function A(J,w){w&&(b("Patches"),J.o=[],J.v=[],J.s=w)}function _(J){x(J),J.p.forEach(j),J.p=null}function x(J){J===W&&(W=J.l)}function E(J){return W={p:[],l:W,h:J,_:!0,m:0}}function j(J){var w=J[pe];w.t===0||w.t===1?w.j():w.O=!0}function F(J,w){w.m=w.p.length;var K=w.p[0],te=J!==void 0&&J!==K;return w.h.S||b("ES5").P(w,J,te),te?(K[pe].g&&(_(w),t(4)),n(J)&&(J=I(w,J),w.l||V(w,J)),w.o&&b("Patches").M(K[pe].u,J,w.o,w.v)):J=I(w,K,[]),_(w),w.o&&w.s(w.o,w.v),J!==ie?J:void 0}function I(J,w,K){if(g(w))return w;var te=w[pe];if(!te)return i(w,function(k,re){return L(J,te,w,k,re,K)},!0),w;if(te.A!==J)return w;if(!te.g)return V(J,te.u,!0),te.u;if(!te.R){te.R=!0,te.A.m--;var fe=te.t===4||te.t===5?te.i=h(te.k):te.i,he=fe,Y=!1;te.t===3&&(he=new Set(fe),fe.clear(),Y=!0),i(he,function(k,re){return L(J,te,fe,k,re,K,Y)}),V(J,fe,!1),K&&J.o&&b("Patches").F(te,K,J.o,J.v)}return te.i}function L(J,w,K,te,fe,he,Y){if(e(fe)){var k=I(J,fe,he&&w&&w.t!==3&&!o(w.N,te)?he.concat(te):void 0);if(s(K,te,k),!e(k))return;J._=!1}else Y&&K.add(fe);if(n(fe)&&!g(fe)){if(!J.h.D&&J.m<1)return;I(J,fe),w&&w.A.l||V(J,fe)}}function V(J,w,K){K===void 0&&(K=!1),!J.l&&J.h.D&&J._&&d(w,K)}function q(J,w){var K=J[pe];return(K?f(K):J)[w]}function S(J,w){if(w in J)for(var K=Object.getPrototypeOf(J);K;){var te=Object.getOwnPropertyDescriptor(K,w);if(te)return te;K=Object.getPrototypeOf(K)}}function D(J){J.g||(J.g=!0,J.l&&D(J.l))}function R(J){J.i||(J.i=h(J.u))}function C(J,w,K){var te=l(w)?b("MapSet").K(w,K):u(w)?b("MapSet").$(w,K):J.S?function(fe,he){var Y=Array.isArray(fe),k={t:Y?1:0,A:he?he.A:P(),g:!1,R:!1,N:{},l:he,u:fe,k:null,i:null,j:null,C:!1},re=k,ee=yt;Y&&(re=[k],ee=Re);var le=Proxy.revocable(re,ee),se=le.revoke,ge=le.proxy;return k.k=ge,k.j=se,ge}(w,K):b("ES5").I(w,K);return(K?K.A:P()).p.push(te),te}function H(J){return e(J)||t(22,J),function w(K){if(!n(K))return K;var te,fe=K[pe],he=a(K);if(fe){if(!fe.g&&(fe.t<4||!b("ES5").J(fe)))return fe.u;fe.R=!0,te=X(K,he),fe.R=!1}else te=X(K,he);return i(te,function(Y,k){fe&&r(fe.u,Y)===k||s(te,Y,w(k))}),he===3?new Set(te):te}(J)}function X(J,w){switch(w){case 2:return new Map(J);case 3:return Array.from(J)}return h(J)}function ae(){function J(he,Y){var k=fe[he];return k?k.enumerable=Y:fe[he]=k={configurable:!0,enumerable:Y,get:function(){return yt.get(this[pe],he)},set:function(re){yt.set(this[pe],he,re)}},k}function w(he){for(var Y=he.length-1;Y>=0;Y--){var k=he[Y][pe];if(!k.g)switch(k.t){case 5:te(k)&&D(k);break;case 4:K(k)&&D(k)}}}function K(he){for(var Y=he.u,k=he.k,re=Ce(k),ee=re.length-1;ee>=0;ee--){var le=re[ee];if(le!==pe){var se=Y[le];if(se===void 0&&!o(Y,le))return!0;var ge=k[le],xe=ge&&ge[pe];if(xe?xe.u!==se:!c(ge,se))return!0}}var Pe=!!Y[pe];return re.length!==Ce(Y).length+(Pe?0:1)}function te(he){var Y=he.k;if(Y.length!==he.u.length)return!0;var k=Object.getOwnPropertyDescriptor(Y,Y.length-1);if(k&&!k.get)return!0;for(var re=0;re1?gt-1:0),zt=1;zt1?le-1:0),ge=1;ge=0;fe--){var he=te[fe];if(he.path.length===0&&he.op==="replace"){K=he.value;break}}fe>-1&&(te=te.slice(fe+1));var Y=b("Patches").W;return e(K)?Y(K,te):this.produce(K,function(k){return Y(k,te)})},J}(),$t=new je,Se=$t.produce,pt=$t.produceWithPatches.bind($t),nn=$t.setAutoFreeze.bind($t),lr=$t.setUseProxies.bind($t),Dr=$t.applyPatches.bind($t),Yt=$t.createDraft.bind($t),cr=$t.finishDraft.bind($t);return Yr.Immer=je,Yr.applyPatches=Dr,Yr.castDraft=function(J){return J},Yr.castImmutable=function(J){return J},Yr.createDraft=Yt,Yr.current=H,Yr.default=Se,Yr.enableAllPlugins=function(){ae(),M(),z()},Yr.enableES5=ae,Yr.enableMapSet=M,Yr.enablePatches=z,Yr.finishDraft=cr,Yr.freeze=d,Yr.immerable=Ae,Yr.isDraft=e,Yr.isDraftable=n,Yr.nothing=ie,Yr.original=function(J){return e(J)||t(23,J),J[pe].u},Yr.produce=Se,Yr.produceWithPatches=pt,Yr.setAutoFreeze=nn,Yr.setUseProxies=lr,Yr}var n5;function aqe(){return n5||(n5=1,$O.exports=iqe()),$O.exports}var AO,i5;function sqe(){if(i5)return AO;i5=1;var t=nM,e=vM,n=A_,i=ll,a=gb;function o(r,s,c,l){if(!i(r))return r;s=e(s,r);for(var u=-1,f=s.length,h=f-1,d=r;d!=null&&++u= 0x80 (not a basic code point)","invalid-input":"Invalid input"},_=c-l,x=Math.floor,E=String.fromCharCode,j;function F(z){throw new RangeError(A[z])}function I(z,M){for(var U=z.length,W=[];U--;)W[U]=M(z[U]);return W}function L(z,M){var U=z.split("@"),W="";U.length>1&&(W=U[0]+"@",z=U[1]),z=z.replace(P,".");var T=z.split("."),G=I(T,M).join(".");return W+G}function V(z){for(var M=[],U=0,W=z.length,T,G;U=55296&&T<=56319&&U65535&&(M-=65536,U+=E(M>>>10&1023|55296),M=56320|M&1023),U+=E(M),U}).join("")}function S(z){return z-48<10?z-22:z-65<26?z-65:z-97<26?z-97:c}function D(z,M){return z+22+75*(z<26)-((M!=0)<<5)}function R(z,M,U){var W=0;for(z=U?x(z/h):z>>1,z+=x(z/M);z>_*u>>1;W+=c)z=x(z/_);return x(W+(_+1)*z/(z+f))}function C(z){var M=[],U=z.length,W,T=0,G=m,oe=d,ve,ie,Ae,pe,De,We,Ce,_e,st;for(ve=z.lastIndexOf(g),ve<0&&(ve=0),ie=0;ie=128&&F("not-basic"),M.push(z.charCodeAt(ie));for(Ae=ve>0?ve+1:0;Ae=U&&F("invalid-input"),Ce=S(z.charCodeAt(Ae++)),(Ce>=c||Ce>x((s-T)/De))&&F("overflow"),T+=Ce*De,_e=We<=oe?l:We>=oe+u?u:We-oe,!(Ce<_e);We+=c)st=c-_e,De>x(s/st)&&F("overflow"),De*=st;W=M.length+1,oe=R(T-pe,W,pe==0),x(T/W)>s-G&&F("overflow"),G+=x(T/W),T%=W,M.splice(T++,0,G)}return q(M)}function H(z){var M,U,W,T,G,oe,ve,ie,Ae,pe,De,We=[],Ce,_e,st,yt;for(z=V(z),Ce=z.length,M=m,U=0,G=d,oe=0;oe=M&&Dex((s-U)/_e)&&F("overflow"),U+=(ve-M)*_e,M=ve,oe=0;oes&&F("overflow"),De==M){for(ie=U,Ae=c;pe=Ae<=G?l:Ae>=G+u?u:Ae-G,!(ie1);d++)f.splice(0,1);s[h]=f.join("")}var m=-1,g=0,b=0,v=-1,P=!1;for(h=0;hg&&(m=v,g=b)):s[h]==="0"&&(P=!0,v=h,b=1);b>g&&(m=v,g=b),g>1&&s.splice(m,g,""),c=s.length;var A="";for(s[0]===""&&(A=":"),h=0;h=a.length-1)return!1;var r=a.lastIndexOf(".",o-1);if(r<=0||r>=o-1)return!1;var s=i.list[a.slice(o+1)];return s?s.indexOf(" "+a.slice(r+1,o)+" ")>=0:!1},is:function(a){var o=a.lastIndexOf(".");if(o<=0||o>=a.length-1)return!1;var r=a.lastIndexOf(".",o-1);if(r>=0)return!1;var s=i.list[a.slice(o+1)];return s?s.indexOf(" "+a.slice(0,o)+" ")>=0:!1},get:function(a){var o=a.lastIndexOf(".");if(o<=0||o>=a.length-1)return null;var r=a.lastIndexOf(".",o-1);if(r<=0||r>=o-1)return null;var s=i.list[a.slice(o+1)];return!s||s.indexOf(" "+a.slice(r+1,o)+" ")<0?null:a.slice(r+1)},noConflict:function(){return e.SecondLevelDomains===this&&(e.SecondLevelDomains=n),this}};return i})}(DO)),DO.exports}/*! + * URI.js - Mutating URLs + * + * Version: 1.19.11 + * + * Author: Rodney Rehm + * Web: http://medialize.github.io/URI.js/ + * + * Licensed under + * MIT License http://www.opensource.org/licenses/mit-license + * + */var c5;function MZ(){return c5||(c5=1,function(t){(function(e,n){t.exports?t.exports=n(lqe(),cqe(),uqe()):e.URI=n(e.punycode,e.IPv6,e.SecondLevelDomains,e)})(Cr,function(e,n,i,a){var o=a&&a.URI;function r(S,D){var R=arguments.length>=1,C=arguments.length>=2;if(!(this instanceof r))return R?C?new r(S,D):new r(S):new r;if(S===void 0){if(R)throw new TypeError("undefined is not a valid argument for URI");typeof location<"u"?S=location.href+"":S=""}if(S===null&&R)throw new TypeError("null is not a valid argument for URI");return this.href(S),D!==void 0?this.absoluteTo(D):this}function s(S){return/^[0-9]+$/.test(S)}r.version="1.19.11";var c=r.prototype,l=Object.prototype.hasOwnProperty;function u(S){return S.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}function f(S){return S===void 0?"Undefined":String(Object.prototype.toString.call(S)).slice(8,-1)}function h(S){return f(S)==="Array"}function d(S,D){var R={},C,H;if(f(D)==="RegExp")R=null;else if(h(D))for(C=0,H=D.length;C]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?«»“”‘’]))/ig,r.findUri={start:/\b(?:([a-z][a-z0-9.+-]*:\/\/)|www\.)/gi,end:/[\s\r\n]|$/,trim:/[`!()\[\]{};:'".,<>?«»“”„‘’]+$/,parens:/(\([^\)]*\)|\[[^\]]*\]|\{[^}]*\}|<[^>]*>)/g},r.leading_whitespace_expression=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,r.ascii_tab_whitespace=/[\u0009\u000A\u000D]+/g,r.defaultPorts={http:"80",https:"443",ftp:"21",gopher:"70",ws:"80",wss:"443"},r.hostProtocols=["http","https"],r.invalid_hostname_characters=/[^a-zA-Z0-9\.\-:_]/,r.domAttributes={a:"href",blockquote:"cite",link:"href",base:"href",script:"src",form:"action",img:"src",area:"href",iframe:"src",embed:"src",source:"src",track:"src",input:"src",audio:"src",video:"src"},r.getDomAttribute=function(S){if(!(!S||!S.nodeName)){var D=S.nodeName.toLowerCase();if(!(D==="input"&&S.type!=="image"))return r.domAttributes[D]}};function v(S){return escape(S)}function P(S){return encodeURIComponent(S).replace(/[!'()*]/g,v).replace(/\*/g,"%2A")}r.encode=P,r.decode=decodeURIComponent,r.iso8859=function(){r.encode=escape,r.decode=unescape},r.unicode=function(){r.encode=P,r.decode=decodeURIComponent},r.characters={pathname:{encode:{expression:/%(24|26|2B|2C|3B|3D|3A|40)/ig,map:{"%24":"$","%26":"&","%2B":"+","%2C":",","%3B":";","%3D":"=","%3A":":","%40":"@"}},decode:{expression:/[\/\?#]/g,map:{"/":"%2F","?":"%3F","#":"%23"}}},reserved:{encode:{expression:/%(21|23|24|26|27|28|29|2A|2B|2C|2F|3A|3B|3D|3F|40|5B|5D)/ig,map:{"%3A":":","%2F":"/","%3F":"?","%23":"#","%5B":"[","%5D":"]","%40":"@","%21":"!","%24":"$","%26":"&","%27":"'","%28":"(","%29":")","%2A":"*","%2B":"+","%2C":",","%3B":";","%3D":"="}}},urnpath:{encode:{expression:/%(21|24|27|28|29|2A|2B|2C|3B|3D|40)/ig,map:{"%21":"!","%24":"$","%27":"'","%28":"(","%29":")","%2A":"*","%2B":"+","%2C":",","%3B":";","%3D":"=","%40":"@"}},decode:{expression:/[\/\?#:]/g,map:{"/":"%2F","?":"%3F","#":"%23",":":"%3A"}}}},r.encodeQuery=function(S,D){var R=r.encode(S+"");return D===void 0&&(D=r.escapeQuerySpace),D?R.replace(/%20/g,"+"):R},r.decodeQuery=function(S,D){S+="",D===void 0&&(D=r.escapeQuerySpace);try{return r.decode(D?S.replace(/\+/g,"%20"):S)}catch{return S}};var A={encode:"encode",decode:"decode"},_,x=function(S,D){return function(R){try{return r[D](R+"").replace(r.characters[S][D].expression,function(C){return r.characters[S][D].map[C]})}catch{return R}}};for(_ in A)r[_+"PathSegment"]=x("pathname",A[_]),r[_+"UrnPathSegment"]=x("urnpath",A[_]);var E=function(S,D,R){return function(C){var H;R?H=function(M){return r[D](r[R](M))}:H=r[D];for(var X=(C+"").split(S),ae=0,z=X.length;ae-1&&(D.fragment=S.substring(R+1)||null,S=S.substring(0,R)),R=S.indexOf("?"),R>-1&&(D.query=S.substring(R+1)||null,S=S.substring(0,R)),S=S.replace(/^(https?|ftp|wss?)?:+[/\\]*/i,"$1://"),S=S.replace(/^[/\\]{2,}/i,"//"),S.substring(0,2)==="//"?(D.protocol=null,S=S.substring(2),S=r.parseAuthority(S,D)):(R=S.indexOf(":"),R>-1&&(D.protocol=S.substring(0,R)||null,D.protocol&&!D.protocol.match(r.protocol_expression)?D.protocol=void 0:S.substring(R+1,R+3).replace(/\\/g,"/")==="//"?(S=S.substring(R+3),S=r.parseAuthority(S,D)):(S=S.substring(R+1),D.urn=!0))),D.path=S,D},r.parseHost=function(S,D){S||(S=""),S=S.replace(/\\/g,"/");var R=S.indexOf("/"),C,H;if(R===-1&&(R=S.length),S.charAt(0)==="[")C=S.indexOf("]"),D.hostname=S.substring(1,C)||null,D.port=S.substring(C+2,R)||null,D.port==="/"&&(D.port=null);else{var X=S.indexOf(":"),ae=S.indexOf("/"),z=S.indexOf(":",X+1);z!==-1&&(ae===-1||z-1?H:S.length-1),ae;return X>-1&&(H===-1||X-1?G=G.slice(0,oe)+G.slice(oe).replace(X,""):G=G.replace(X,""),!(G.length<=M[0].length)&&!(R.ignore&&R.ignore.test(G))){T=U+G.length;var Ae=D(G,U,T,S);if(Ae===void 0){C.lastIndex=T;continue}Ae=String(Ae),S=S.slice(0,U)+Ae+S.slice(T),C.lastIndex=U+Ae.length}}return C.lastIndex=0,S},r.ensureValidHostname=function(S,D){var R=!!S,C=!!D,H=!1;if(C&&(H=m(r.hostProtocols,D)),H&&!R)throw new TypeError("Hostname cannot be empty, if protocol is "+D);if(S&&S.match(r.invalid_hostname_characters)){if(!e)throw new TypeError('Hostname "'+S+'" contains characters other than [A-Z0-9.-:_] and Punycode.js is not available');if(e.toASCII(S).match(r.invalid_hostname_characters))throw new TypeError('Hostname "'+S+'" contains characters other than [A-Z0-9.-:_]')}},r.ensureValidPort=function(S){if(S){var D=Number(S);if(!(s(D)&&D>0&&D<65536))throw new TypeError('Port "'+S+'" is not a valid port')}},r.noConflict=function(S){if(S){var D={URI:this.noConflict()};return a.URITemplate&&typeof a.URITemplate.noConflict=="function"&&(D.URITemplate=a.URITemplate.noConflict()),a.IPv6&&typeof a.IPv6.noConflict=="function"&&(D.IPv6=a.IPv6.noConflict()),a.SecondLevelDomains&&typeof a.SecondLevelDomains.noConflict=="function"&&(D.SecondLevelDomains=a.SecondLevelDomains.noConflict()),D}else a.URI===this&&(a.URI=o);return this},c.build=function(S){return S===!0?this._deferred_build=!0:(S===void 0||this._deferred_build)&&(this._string=r.build(this._parts),this._deferred_build=!1),this},c.clone=function(){return new r(this)},c.valueOf=c.toString=function(){return this.build(!1)._string};function j(S){return function(D,R){return D===void 0?this._parts[S]||"":(this._parts[S]=D||null,this.build(!R),this)}}function F(S,D){return function(R,C){return R===void 0?this._parts[S]||"":(R!==null&&(R=R+"",R.charAt(0)===D&&(R=R.substring(1))),this._parts[S]=R,this.build(!C),this)}}c.protocol=j("protocol"),c.username=j("username"),c.password=j("password"),c.hostname=j("hostname"),c.port=j("port"),c.query=F("query","?"),c.fragment=F("fragment","#"),c.search=function(S,D){var R=this.query(S,D);return typeof R=="string"&&R.length?"?"+R:R},c.hash=function(S,D){var R=this.fragment(S,D);return typeof R=="string"&&R.length?"#"+R:R},c.pathname=function(S,D){if(S===void 0||S===!0){var R=this._parts.path||(this._parts.hostname?"/":"");return S?(this._parts.urn?r.decodeUrnPath:r.decodePath)(R):R}else return this._parts.urn?this._parts.path=S?r.recodeUrnPath(S):"":this._parts.path=S?r.recodePath(S):"/",this.build(!D),this},c.path=c.pathname,c.href=function(S,D){var R;if(S===void 0)return this.toString();this._string="",this._parts=r._parts();var C=S instanceof r,H=typeof S=="object"&&(S.hostname||S.path||S.pathname);if(S.nodeName){var X=r.getDomAttribute(S);S=S[X]||"",H=!1}if(!C&&H&&S.pathname!==void 0&&(S=S.toString()),typeof S=="string"||S instanceof String)this._parts=r.parse(String(S),this._parts);else if(C||H){var ae=C?S._parts:S;for(R in ae)R!=="query"&&l.call(this._parts,R)&&(this._parts[R]=ae[R]);ae.query&&this.query(ae.query,!1)}else throw new TypeError("invalid input");return this.build(!D),this},c.is=function(S){var D=!1,R=!1,C=!1,H=!1,X=!1,ae=!1,z=!1,M=!this._parts.urn;switch(this._parts.hostname&&(M=!1,R=r.ip4_expression.test(this._parts.hostname),C=r.ip6_expression.test(this._parts.hostname),D=R||C,H=!D,X=H&&i&&i.has(this._parts.hostname),ae=H&&r.idn_expression.test(this._parts.hostname),z=H&&r.punycode_expression.test(this._parts.hostname)),S.toLowerCase()){case"relative":return M;case"absolute":return!M;case"domain":case"name":return H;case"sld":return X;case"ip":return D;case"ip4":case"ipv4":case"inet4":return R;case"ip6":case"ipv6":case"inet6":return C;case"idn":return ae;case"url":return!this._parts.urn;case"urn":return!!this._parts.urn;case"punycode":return z}return null};var I=c.protocol,L=c.port,V=c.hostname;c.protocol=function(S,D){if(S&&(S=S.replace(/:(\/\/)?$/,""),!S.match(r.protocol_expression)))throw new TypeError('Protocol "'+S+`" contains characters other than [A-Z0-9.+-] or doesn't start with [A-Z]`);return I.call(this,S,D)},c.scheme=c.protocol,c.port=function(S,D){return this._parts.urn?S===void 0?"":this:(S!==void 0&&(S===0&&(S=null),S&&(S+="",S.charAt(0)===":"&&(S=S.substring(1)),r.ensureValidPort(S))),L.call(this,S,D))},c.hostname=function(S,D){if(this._parts.urn)return S===void 0?"":this;if(S!==void 0){var R={preventInvalidHostname:this._parts.preventInvalidHostname},C=r.parseHost(S,R);if(C!=="/")throw new TypeError('Hostname "'+S+'" contains characters other than [A-Z0-9.-]');S=R.hostname,this._parts.preventInvalidHostname&&r.ensureValidHostname(S,this._parts.protocol)}return V.call(this,S,D)},c.origin=function(S,D){if(this._parts.urn)return S===void 0?"":this;if(S===void 0){var R=this.protocol(),C=this.authority();return C?(R?R+"://":"")+this.authority():""}else{var H=r(S);return this.protocol(H.protocol()).authority(H.authority()).build(!D),this}},c.host=function(S,D){if(this._parts.urn)return S===void 0?"":this;if(S===void 0)return this._parts.hostname?r.buildHost(this._parts):"";var R=r.parseHost(S,this._parts);if(R!=="/")throw new TypeError('Hostname "'+S+'" contains characters other than [A-Z0-9.-]');return this.build(!D),this},c.authority=function(S,D){if(this._parts.urn)return S===void 0?"":this;if(S===void 0)return this._parts.hostname?r.buildAuthority(this._parts):"";var R=r.parseAuthority(S,this._parts);if(R!=="/")throw new TypeError('Hostname "'+S+'" contains characters other than [A-Z0-9.-]');return this.build(!D),this},c.userinfo=function(S,D){if(this._parts.urn)return S===void 0?"":this;if(S===void 0){var R=r.buildUserinfo(this._parts);return R&&R.substring(0,R.length-1)}else return S[S.length-1]!=="@"&&(S+="@"),r.parseUserinfo(S,this._parts),this.build(!D),this},c.resource=function(S,D){var R;return S===void 0?this.path()+this.search()+this.hash():(R=r.parse(S),this._parts.path=R.path,this._parts.query=R.query,this._parts.fragment=R.fragment,this.build(!D),this)},c.subdomain=function(S,D){if(this._parts.urn)return S===void 0?"":this;if(S===void 0){if(!this._parts.hostname||this.is("IP"))return"";var R=this._parts.hostname.length-this.domain().length-1;return this._parts.hostname.substring(0,R)||""}else{var C=this._parts.hostname.length-this.domain().length,H=this._parts.hostname.substring(0,C),X=new RegExp("^"+u(H));if(S&&S.charAt(S.length-1)!=="."&&(S+="."),S.indexOf(":")!==-1)throw new TypeError("Domains cannot contain colons");return S&&r.ensureValidHostname(S,this._parts.protocol),this._parts.hostname=this._parts.hostname.replace(X,S),this.build(!D),this}},c.domain=function(S,D){if(this._parts.urn)return S===void 0?"":this;if(typeof S=="boolean"&&(D=S,S=void 0),S===void 0){if(!this._parts.hostname||this.is("IP"))return"";var R=this._parts.hostname.match(/\./g);if(R&&R.length<2)return this._parts.hostname;var C=this._parts.hostname.length-this.tld(D).length-1;return C=this._parts.hostname.lastIndexOf(".",C-1)+1,this._parts.hostname.substring(C)||""}else{if(!S)throw new TypeError("cannot set domain empty");if(S.indexOf(":")!==-1)throw new TypeError("Domains cannot contain colons");if(r.ensureValidHostname(S,this._parts.protocol),!this._parts.hostname||this.is("IP"))this._parts.hostname=S;else{var H=new RegExp(u(this.domain())+"$");this._parts.hostname=this._parts.hostname.replace(H,S)}return this.build(!D),this}},c.tld=function(S,D){if(this._parts.urn)return S===void 0?"":this;if(typeof S=="boolean"&&(D=S,S=void 0),S===void 0){if(!this._parts.hostname||this.is("IP"))return"";var R=this._parts.hostname.lastIndexOf("."),C=this._parts.hostname.substring(R+1);return D!==!0&&i&&i.list[C.toLowerCase()]&&i.get(this._parts.hostname)||C}else{var H;if(S)if(S.match(/[^a-zA-Z0-9-]/))if(i&&i.is(S))H=new RegExp(u(this.tld())+"$"),this._parts.hostname=this._parts.hostname.replace(H,S);else throw new TypeError('TLD "'+S+'" contains characters other than [A-Z0-9]');else{if(!this._parts.hostname||this.is("IP"))throw new ReferenceError("cannot set TLD on non-domain host");H=new RegExp(u(this.tld())+"$"),this._parts.hostname=this._parts.hostname.replace(H,S)}else throw new TypeError("cannot set TLD empty");return this.build(!D),this}},c.directory=function(S,D){if(this._parts.urn)return S===void 0?"":this;if(S===void 0||S===!0){if(!this._parts.path&&!this._parts.hostname)return"";if(this._parts.path==="/")return"/";var R=this._parts.path.length-this.filename().length-1,C=this._parts.path.substring(0,R)||(this._parts.hostname?"/":"");return S?r.decodePath(C):C}else{var H=this._parts.path.length-this.filename().length,X=this._parts.path.substring(0,H),ae=new RegExp("^"+u(X));return this.is("relative")||(S||(S="/"),S.charAt(0)!=="/"&&(S="/"+S)),S&&S.charAt(S.length-1)!=="/"&&(S+="/"),S=r.recodePath(S),this._parts.path=this._parts.path.replace(ae,S),this.build(!D),this}},c.filename=function(S,D){if(this._parts.urn)return S===void 0?"":this;if(typeof S!="string"){if(!this._parts.path||this._parts.path==="/")return"";var R=this._parts.path.lastIndexOf("/"),C=this._parts.path.substring(R+1);return S?r.decodePathSegment(C):C}else{var H=!1;S.charAt(0)==="/"&&(S=S.substring(1)),S.match(/\.?\//)&&(H=!0);var X=new RegExp(u(this.filename())+"$");return S=r.recodePath(S),this._parts.path=this._parts.path.replace(X,S),H?this.normalizePath(D):this.build(!D),this}},c.suffix=function(S,D){if(this._parts.urn)return S===void 0?"":this;if(S===void 0||S===!0){if(!this._parts.path||this._parts.path==="/")return"";var R=this.filename(),C=R.lastIndexOf("."),H,X;return C===-1?"":(H=R.substring(C+1),X=/^[a-z0-9%]+$/i.test(H)?H:"",S?r.decodePathSegment(X):X)}else{S.charAt(0)==="."&&(S=S.substring(1));var ae=this.suffix(),z;if(ae)S?z=new RegExp(u(ae)+"$"):z=new RegExp(u("."+ae)+"$");else{if(!S)return this;this._parts.path+="."+r.recodePath(S)}return z&&(S=r.recodePath(S),this._parts.path=this._parts.path.replace(z,S)),this.build(!D),this}},c.segment=function(S,D,R){var C=this._parts.urn?":":"/",H=this.path(),X=H.substring(0,1)==="/",ae=H.split(C);if(S!==void 0&&typeof S!="number"&&(R=D,D=S,S=void 0),S!==void 0&&typeof S!="number")throw new Error('Bad segment "'+S+'", must be 0-based integer');if(X&&ae.shift(),S<0&&(S=Math.max(ae.length+S,0)),D===void 0)return S===void 0?ae:ae[S];if(S===null||ae[S]===void 0)if(h(D)){ae=[];for(var z=0,M=D.length;z{const c=o.toString();let l="",u=c,f=0,h=u.indexOf(r);for(;h>-1;)l+=c.substring(f,f+h)+s,u=u.substring(h+r.length,u.length),f+=h+r.length,h=u.indexOf(r);return u.length>0&&(l+=c.substring(c.length-u.length,c.length)),l},e=o=>t(t(o,"~","~0"),"/","~1"),n=(o,r)=>`${o}/${e(r)}`;fc.addToJSONPointer=n;const i=o=>"length"in o&&o.length===0?"":o.fragment()!==""?`#${o.fragment()}`:o.href()===""?"#":"";fc.uriToJSONPointer=i;const a=o=>(!("length"in o)||o.length>0)&&o.path()==="";return fc.uriIsJSONPointer=a,fc}var p5;function pqe(){if(p5)return Z0;p5=1,Object.defineProperty(Z0,"__esModule",{value:!0}),Z0.ResolveCrawler=void 0;const t=Hr,e=L_(),n=bM(),i=RZ();class a{constructor(r,s,c){this._resolved=c,this.resolvers=[],this.pointerGraph=new e.DepGraph({circular:!0}),this.pointerStemGraph=new e.DepGraph({circular:!0}),this.computeGraph=(l,u=[],f="#",h=[])=>{f||(f="#");let d=this._runner.computeRef({val:l,jsonPointer:f,pointerStack:h});if(d!==void 0)this._resolveRef({ref:d,val:l,parentPath:u,pointerStack:h,parentPointer:f,cacheKey:f,resolvingPointer:this.jsonPointer});else if(typeof l=="object")for(const m in l){if(!l.hasOwnProperty(m))continue;const g=l[m],b=i.addToJSONPointer(f,m);d=this._runner.computeRef({key:m,val:g,jsonPointer:b,pointerStack:h}),u.push(m),d!==void 0?this._resolveRef({ref:d,val:g,parentPath:u,parentPointer:b,pointerStack:h,cacheKey:i.uriToJSONPointer(d),resolvingPointer:this.jsonPointer}):typeof g=="object"&&this.computeGraph(g,u,b,h),u.pop()}},this._resolveRef=l=>{const{pointerStack:u,parentPath:f,parentPointer:h,ref:d}=l;if(i.uriIsJSONPointer(d)){if(this._runner.dereferenceInline){const m=i.uriToJSONPointer(d);let g;try{g=(0,t.pointerToPath)(m)}catch{this._resolved.errors.push({code:"PARSE_POINTER",message:`'${d}' JSON pointer is invalid`,uri:this._runner.baseUri,uriStack:this._runner.uriStack,pointerStack:[],path:[]});return}let b=g.length>0;for(const _ in g)if(f[_]!==g[_]){b=!1;break}if(b)return;this.pointerStemGraph.hasNode(m)||this.pointerStemGraph.addNode(m);let v="#",P="";for(let _=0;_"u"&&(b=f.call(this,m),h.set(g,b)),b}function i(f,h,d){var m=Array.prototype.slice.call(arguments,3),g=d(m),b=h.get(g);return typeof b>"u"&&(b=f.apply(this,m),h.set(g,b)),b}function a(f,h,d,m,g){return d.bind(h,f,m,g)}function o(f,h){var d=f.length===1?n:i;return a(f,this,d,h.cache.create(),h.serializer)}function r(f,h){var d=i;return a(f,this,d,h.cache.create(),h.serializer)}function s(f,h){var d=n;return a(f,this,d,h.cache.create(),h.serializer)}function c(){return JSON.stringify(arguments)}function l(){this.cache=Object.create(null)}l.prototype.has=function(f){return f in this.cache},l.prototype.get=function(f){return this.cache[f]},l.prototype.set=function(f,h){this.cache[f]=h};var u={create:function(){return new l}};return Ew.exports=t,Ew.exports.strategies={variadic:r,monadic:s},Ew.exports}var d5;function NZ(){return d5||(d5=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.ResolveRunner=t.defaultGetRef=void 0;const e=vr,n=Hr,i=Ih,a=L_(),o=aqe(),r=bM(),s=oqe(),c=MZ(),l=fqe(),u=HM(),f=pqe(),h=RZ(),d=hqe();let m=0;const g=(v,P)=>{if(P&&typeof P=="object"&&typeof P.$ref=="string")return P.$ref};t.defaultGetRef=g;class b{constructor(P,A=new a.DepGraph({circular:!0}),_={}){this.ctx={},this.computeRef=j=>{const F=this.getRef(j.key,j.val);if(F===void 0)return;let I=new l.ExtendedURI(F);if(F[0]!=="#")if(this.isFile(I)){let V=I.toString();I.is("absolute")||(this.baseUri.toString()?V=(0,i.join)((0,i.dirname)(this.baseUri.toString()),(0,i.stripRoot)(V)):V=""),V&&(I=new c((0,i.toFSPath)(V)).fragment(I.fragment()))}else(I.scheme().includes("http")||I.scheme()===""&&this.baseUri.scheme().includes("http"))&&this.baseUri.authority()!==""&&I.authority()===""&&(I=I.absoluteTo(this.baseUri));return String(I).length>0&&this.isFile(this.baseUri)&&this.isFile(I)&&this.baseUri.path()===I.path()&&(I=new l.ExtendedURI(`#${I.fragment()}`)),this.transformRef?this.transformRef(Object.assign(Object.assign({},j),{ref:I,uri:this.baseUri}),this.ctx):I},this.atMaxUriDepth=()=>this.uriStack.length>=100,this.lookupUri=j=>e.__awaiter(this,void 0,void 0,function*(){const{ref:F}=j;let I=F.scheme();!this.resolvers[I]&&this.isFile(F)&&(I="file");const L=this.resolvers[I];if(!L)throw new Error(`No resolver defined for scheme '${F.scheme()||"file"}' in ref ${F.toString()}`);let V=yield L.resolve(F,this.ctx);if(this.parseResolveResult)try{V=(yield this.parseResolveResult({uriResult:V,result:V,targetAuthority:F,parentAuthority:this.baseUri,parentPath:j.parentPath,fragment:j.fragment})).result}catch(q){throw new Error(`Could not parse remote reference response for '${F.toString()}' - ${String(q)}`)}return new b(V,this.graph,{depth:this.depth+1,baseUri:F.toString(),root:F,uriStack:this.uriStack,uriCache:this.uriCache,resolvers:this.resolvers,transformRef:this.transformRef,parseResolveResult:this.parseResolveResult,transformDereferenceResult:this.transformDereferenceResult,dereferenceRemote:this.dereferenceRemote,dereferenceInline:this.dereferenceInline,ctx:this.ctx})}),this.lookupAndResolveUri=j=>e.__awaiter(this,void 0,void 0,function*(){const{val:F,ref:I,resolvingPointer:L,parentPointer:V,pointerStack:q}=j,S=j.parentPath?j.parentPath.slice():[],D=this.computeUriCacheKey(I),R={uri:I,pointerStack:q,targetPath:L===V?[]:S};if(this.uriStack.includes(D))return R.resolved={result:F,graph:this.graph,refMap:{},errors:[],runner:this},R;{let C;const H=this.baseUri.toString(),X=H&&this.depth!==0?H:null;try{if(this.atMaxUriDepth())throw new Error(`Max uri depth (${this.uriStack.length}) reached. Halting, this is probably a circular loop.`);C=yield this.lookupUri({ref:I.clone().fragment(""),fragment:I.fragment(),cacheKey:D,parentPath:S}),X&&(C.uriStack=C.uriStack.concat(X))}catch(ae){R.error={code:"RESOLVE_URI",message:String(ae),uri:I,uriStack:X?this.uriStack.concat(X):this.uriStack,pointerStack:q,path:S}}if(C&&(R.resolved=yield C.resolve({jsonPointer:h.uriToJSONPointer(I),parentPath:S}),R.resolved.errors.length)){for(const ae of R.resolved.errors)if(ae.code==="POINTER_MISSING"&&ae.path.join("/")===I.fragment().slice(1)){const z=I.fragment?(0,n.trimStart)(ae.path,(0,n.trimStart)(I.fragment(),"/").split("/")):ae.path;z&&z.length?s(R.resolved.result,z,F):R.resolved.result&&(R.resolved.result=F)}}}return R}),this.id=m+=1,this.depth=_.depth||0,this._source=P,this.resolvers=_.resolvers||{};const x=_.baseUri||"";let E=new c(x||"");this.isFile(E)&&(E=new c((0,i.toFSPath)(x))),this.baseUri=E,this.uriStack=_.uriStack||[],this.uriCache=_.uriCache||new u.Cache,this.root=_.root&&_.root.toString()||this.baseUri.toString()||"root",this.graph=A,this.graph.hasNode(this.root)||this.graph.addNode(this.root,{refMap:{},data:this._source}),this.baseUri&&this.depth===0&&this.uriCache.set(this.computeUriCacheKey(this.baseUri),this),this.getRef=_.getRef||t.defaultGetRef,this.transformRef=_.transformRef,this.depth?this.dereferenceInline=!0:this.dereferenceInline=typeof _.dereferenceInline<"u"?_.dereferenceInline:!0,this.dereferenceRemote=typeof _.dereferenceRemote<"u"?_.dereferenceRemote:!0,this.parseResolveResult=_.parseResolveResult,this.transformDereferenceResult=_.transformDereferenceResult,this.ctx=_.ctx,this.lookupUri=d(this.lookupUri,{serializer:this._cacheKeySerializer,cache:{create:()=>this.uriCache}})}get source(){return this._source}resolve(P){return e.__awaiter(this,void 0,void 0,function*(){const A={result:this.source,graph:this.graph,refMap:{},errors:[],runner:this};let _;const x=P&&P.jsonPointer&&P.jsonPointer.trim();if(x&&x!=="#"&&x!=="#/"){try{_=(0,n.pointerToPath)(x)}catch{return A.errors.push({code:"PARSE_POINTER",message:`'${x}' JSON pointer is invalid`,uri:this.baseUri,uriStack:this.uriStack,pointerStack:[],path:[]}),A}A.result=r(A.result,_)}if(A.result===void 0)return A.errors.push({code:"POINTER_MISSING",message:`'${x}' does not exist @ '${this.baseUri.toString()}'`,uri:this.baseUri,uriStack:this.uriStack,pointerStack:[],path:_||[]}),A;const E=new f.ResolveCrawler(this,x,A);E.computeGraph(A.result,_,x||"");let j=[];if(E.resolvers.length&&(j=yield Promise.all(E.resolvers)),j.length)for(const F of j){let I=F.targetPath;I.length||(I=_||[]),A.refMap[String(this.baseUri.clone().fragment((0,n.pathToPointer)(I)))]=String(F.uri),this._setGraphNodeEdge(String(this.root),(0,n.pathToPointer)(I),String(F.uri)),F.error&&A.errors.push(F.error),F.resolved&&(F.resolved.errors&&(A.errors=A.errors.concat(F.resolved.errors)),F.resolved.result!==void 0&&(this._source=(0,o.default)(this._source,L=>{if(F.resolved)if(I.length)s(L,I,F.resolved.result),this._setGraphNodeData(String(F.uri),F.resolved.result);else return F.resolved.result})))}if(typeof this._source=="object"?(this.dereferenceInline&&(this._source=(0,o.default)(this._source,F=>{let I=[];try{I=E.pointerGraph.overallOrder();for(const L of I){const V=E.pointerGraph.dependantsOf(L);if(!V.length)continue;const q=(0,n.pointerToPath)(L),S=q.length===0?(0,o.original)(F):r(F,q);for(const D of V){let R;const C=(0,n.pointerToPath)(D),H=E.pointerStemGraph.dependenciesOf(L);for(const X of H)if((0,n.startsWith)(C,(0,n.pointerToPath)(X))){R=!0;break}R||(A.refMap[(0,n.pathToPointer)(C)]=(0,n.pathToPointer)(q),this._setGraphNodeEdge(this.root,(0,n.pathToPointer)(C),(0,n.pathToPointer)(q)),S!==void 0?(s(F,C,S),this._setGraphNodeData((0,n.pathToPointer)(q),S)):A.errors.push({code:"POINTER_MISSING",message:`'${L}' does not exist`,path:C,uri:this.baseUri,uriStack:this.uriStack,pointerStack:[]}))}}}catch{}})),_?A.result=r(this._source,_):A.result=this._source):A.result=this._source,this.transformDereferenceResult){const F=new c(x||"");try{const{result:I,error:L}=yield this.transformDereferenceResult({source:this.source,result:A.result,targetAuthority:F,parentAuthority:this.baseUri,parentPath:P?P.parentPath||[]:[],fragment:F.fragment()});if(A.result=I,L)throw new Error(`Could not transform dereferenced result for '${F.toString()}' - ${String(L)}`)}catch(I){A.errors.push({code:"TRANSFORM_DEREFERENCED",message:`Error: Could not transform dereferenced result for '${this.baseUri.toString()}${F.fragment()!==""?`#${F.fragment()}`:""}' - ${String(I)}`,uri:F,uriStack:this.uriStack,pointerStack:[],path:_})}}return this._setGraphNodeData(this.root,this._source),A})}_cacheKeySerializer(P){return P&&typeof P=="object"&&P.cacheKey?P.cacheKey:JSON.stringify(arguments)}computeUriCacheKey(P){return P.clone().fragment("").toString()}isFile(P){const A=P.scheme();if(A==="file")return!0;if(A){if(!this.resolvers[A])return!0}else{if(P.toString().charAt(0)==="/")return!0;if(this.baseUri){const _=this.baseUri.scheme();return!_||_==="file"||!this.resolvers[_]}}return!1}_setGraphNodeData(P,A){if(!this.graph.hasNode(P))return;const _=this.graph.getNodeData(P)||{};_.data=A,this.graph.setNodeData(P,_)}_setGraphNodeEdge(P,A,_){if(!this.graph.hasNode(P))return;const x=this.graph.getNodeData(P)||{};x.refMap=x.refMap||{},x.refMap[A]=_,this.graph.setNodeData(P,x)}}t.ResolveRunner=b}(bO)),bO}var m5;function dqe(){if(m5)return K0;m5=1,Object.defineProperty(K0,"__esModule",{value:!0}),K0.Resolver=void 0;const t=L_(),e=HM(),n=NZ();class i{constructor(o={}){this.ctx={},this.uriCache=o.uriCache||new e.Cache,this.resolvers=o.resolvers||{},this.getRef=o.getRef,this.transformRef=o.transformRef,this.dereferenceInline=typeof o.dereferenceInline<"u"?o.dereferenceInline:!0,this.dereferenceRemote=typeof o.dereferenceRemote<"u"?o.dereferenceRemote:!0,this.parseResolveResult=o.parseResolveResult,this.transformDereferenceResult=o.transformDereferenceResult,this.ctx=o.ctx}resolve(o,r={}){const s=new t.DepGraph({circular:!0});return new n.ResolveRunner(o,s,Object.assign(Object.assign({uriCache:this.uriCache,resolvers:this.resolvers,getRef:this.getRef,transformRef:this.transformRef,dereferenceInline:this.dereferenceInline,dereferenceRemote:this.dereferenceRemote,parseResolveResult:this.parseResolveResult,transformDereferenceResult:this.transformDereferenceResult},r),{ctx:Object.assign({},this.ctx||{},r.ctx||{})})).resolve(r)}}return K0.Resolver=i,K0}(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.defaultGetRef=t.Cache=void 0,vr.__exportStar(dqe(),t);var n=HM();Object.defineProperty(t,"Cache",{enumerable:!0,get:function(){return n.Cache}});var i=NZ();Object.defineProperty(t,"defaultGetRef",{enumerable:!0,get:function(){return i.defaultGetRef}})})(VM);var kO={},q_={},xb={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.HttpParamStyles=void 0,function(e){e.Simple="simple",e.Matrix="matrix",e.Label="label",e.Form="form",e.CommaDelimited="commaDelimited",e.SpaceDelimited="spaceDelimited",e.PipeDelimited="pipeDelimited",e.DeepObject="deepObject"}(t.HttpParamStyles||(t.HttpParamStyles={})),t.DiagnosticSeverity=void 0,function(e){e[e.Error=0]="Error",e[e.Warning=1]="Warning",e[e.Information=2]="Information",e[e.Hint=3]="Hint"}(t.DiagnosticSeverity||(t.DiagnosticSeverity={})),t.NodeType=void 0,function(e){e.Article="article",e.HttpService="http_service",e.HttpServer="http_server",e.HttpOperation="http_operation",e.Model="model",e.Generic="generic",e.Unknown="unknown",e.TableOfContents="table_of_contents",e.SpectralRuleset="spectral_ruleset",e.Styleguide="styleguide",e.Image="image"}(t.NodeType||(t.NodeType={})),t.NodeFormat=void 0,function(e){e.Json="json",e.Markdown="markdown",e.Yaml="yaml",e.Apng="apng",e.Avif="avif",e.Bmp="bmp",e.Gif="gif",e.Jpeg="jpeg",e.Png="png",e.Svg="svg",e.Webp="webp"}(t.NodeFormat||(t.NodeFormat={}))})(xb);Object.defineProperty(q_,"__esModule",{value:!0});q_.DEFAULT_PARSER_OPTIONS=void 0;const y5=xb;q_.DEFAULT_PARSER_OPTIONS=Object.freeze({incompatibleValues:y5.DiagnosticSeverity.Error,duplicateKeys:y5.DiagnosticSeverity.Error});var OO={},ph={},LZ={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.Json=t.parseJson=void 0;const e=Hr,n=i=>(0,e.parseWithPointers)(i,{ignoreDuplicateKeys:!1,preserveKeyOrder:!0});t.parseJson=n,t.Json={parse:t.parseJson,getLocationForJsonPath:e.getLocationForJsonPath,trapAccess:e.trapAccess}})(LZ);var FZ={},qZ={},Iw={},X0={},EO={},jo={},IO={},g5;function z_(){return g5||(g5=1,function(t){Object.defineProperty(t,"__esModule",{value:!0});var e;(function(c){c[c.SCALAR=0]="SCALAR",c[c.MAPPING=1]="MAPPING",c[c.MAP=2]="MAP",c[c.SEQ=3]="SEQ",c[c.ANCHOR_REF=4]="ANCHOR_REF",c[c.INCLUDE_REF=5]="INCLUDE_REF"})(e=t.Kind||(t.Kind={}));function n(c,l){var u=l?l.endPosition:c.endPosition+1,f={key:c,value:l,startPosition:c.startPosition,endPosition:u,kind:e.MAPPING,parent:null,errors:[]};return f}t.newMapping=n;function i(c,l,u,f){return{errors:[],referencesAnchor:c,value:f,startPosition:l,endPosition:u,kind:e.ANCHOR_REF,parent:null}}t.newAnchorRef=i;function a(c=""){const l={errors:[],startPosition:-1,endPosition:-1,value:""+c,kind:e.SCALAR,parent:null,doubleQuoted:!1,rawValue:""+c};return typeof c!="string"&&(l.valueObject=c),l}t.newScalar=a;function o(){return{errors:[],startPosition:-1,endPosition:-1,items:[],kind:e.SEQ,parent:null}}t.newItems=o;function r(){return o()}t.newSeq=r;function s(c){return{errors:[],startPosition:-1,endPosition:-1,mappings:c||[],kind:e.MAP,parent:null}}t.newMap=s}(IO)),IO}var pc={},v5;function Jg(){if(v5)return pc;v5=1,Object.defineProperty(pc,"__esModule",{value:!0});function t(r){return typeof r>"u"||r===null}pc.isNothing=t;function e(r){return typeof r=="object"&&r!==null}pc.isObject=e;function n(r){return Array.isArray(r)?r:t(r)?[]:[r]}pc.toArray=n;function i(r,s){var c,l,u,f;if(s)for(f=Object.keys(s),c=0,l=f.length;c0&&`\0\r +…\u2028\u2029`.indexOf(this.buffer.charAt(r-1))===-1;)if(r-=1,this.position-r>a/2-1){o=" ... ",r+=5;break}for(s="",c=this.position;ca/2-1){s=" ... ",c-=5;break}return l=this.buffer.slice(r,c),t.repeat(" ",i)+o+l+s+` +`+t.repeat(" ",i+this.position-r+o.length)+"^"}toString(i=!0){var a,o="";return this.name&&(o+='in "'+this.name+'" '),o+="at line "+(this.line+1)+", column "+(this.column+1),i||(a=this.getSnippet(),a&&(o+=`: +`+a)),o}}return TO=e,TO}var Cw={},Tw={},w5;function Ji(){if(w5)return Tw;w5=1,Object.defineProperty(Tw,"__esModule",{value:!0});const t=Db();var e=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],n=["scalar","sequence","mapping"];function i(o){var r={};return o!==null&&Object.keys(o).forEach(function(s){o[s].forEach(function(c){r[String(c)]=s})}),r}class a{constructor(r,s){if(s=s||{},Object.keys(s).forEach(function(c){if(e.indexOf(c)===-1)throw new t('Unknown option "'+c+'" is met in definition of "'+r+'" YAML type.')}),this.tag=r,this.kind=s.kind||null,this.resolve=s.resolve||function(){return!0},this.construct=s.construct||function(c){return c},this.instanceOf=s.instanceOf||null,this.predicate=s.predicate||null,this.represent=s.represent||null,this.defaultStyle=s.defaultStyle||null,this.styleAliases=i(s.styleAliases||null),n.indexOf(this.kind)===-1)throw new t('Unknown kind "'+this.kind+'" is specified for "'+r+'" YAML type.')}}return Tw.Type=a,Tw}var $5;function kb(){if($5)return Cw;$5=1,Object.defineProperty(Cw,"__esModule",{value:!0});const t=Jg(),e=Db(),n=Ji();function i(r,s,c){var l=[];return r.include.forEach(function(u){c=i(u,s,c)}),r[s].forEach(function(u){c.forEach(function(f,h){f.tag===u.tag&&l.push(h)}),c.push(u)}),c.filter(function(u,f){return l.indexOf(f)===-1})}function a(){var r={},s,c;function l(u){r[u.tag]=u}for(s=0,c=arguments.length;s64)){if(c<0)return!1;u+=6}return u%8===0}function a(s){var c,l,u=s.replace(/[\r\n=]/g,""),f=u.length,h=n,d=0,m=[];for(c=0;c>16&255),m.push(d>>8&255),m.push(d&255)),d=d<<6|h.indexOf(u.charAt(c));return l=f%4*6,l===0?(m.push(d>>16&255),m.push(d>>8&255),m.push(d&255)):l===18?(m.push(d>>10&255),m.push(d>>2&255)):l===12&&m.push(d>>4&255),t?new t(m):m}function o(s){var c="",l=0,u,f,h=s.length,d=n;for(u=0;u>18&63],c+=d[l>>12&63],c+=d[l>>6&63],c+=d[l&63]),l=(l<<8)+s[u];return f=h%3,f===0?(c+=d[l>>18&63],c+=d[l>>12&63],c+=d[l>>6&63],c+=d[l&63]):f===2?(c+=d[l>>10&63],c+=d[l>>4&63],c+=d[l<<2&63],c+=d[64]):f===1&&(c+=d[l>>2&63],c+=d[l<<4&63],c+=d[64],c+=d[64]),c}function r(s){return t&&t.isBuffer(s)}return HO=new e.Type("tag:yaml.org,2002:binary",{kind:"scalar",resolve:i,construct:a,predicate:r,represent:o}),HO}var GO,R5;function Oqe(){if(R5)return GO;R5=1;const t=Ji();var e=Object.prototype.hasOwnProperty,n=Object.prototype.toString;function i(o){if(o===null)return!0;var r=[],s,c,l,u,f,h=o;for(s=0,c=h.length;s"u"}return QO=new t.Type("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:e,construct:n,predicate:a,represent:i}),QO}var ZO,z5;function Tqe(){if(z5)return ZO;z5=1;const t=Ji();function e(o){if(o===null||o.length===0)return!1;var r=o,s=/\/([gim]*)$/.exec(o),c="";if(r[0]==="/"){if(s&&(c=s[1]),c.length>3||r[r.length-c.length-1]!=="/")return!1;r=r.slice(1,r.length-c.length-1)}try{var l=new RegExp(r,c);return!0}catch{return!1}}function n(o){var r=o,s=/\/([gim]*)$/.exec(o),c="";return r[0]==="/"&&(s&&(c=s[1]),r=r.slice(1,r.length-c.length-1)),new RegExp(r,c)}function i(o){var r="/"+o.source+"/";return o.global&&(r+="g"),o.multiline&&(r+="m"),o.ignoreCase&&(r+="i"),r}function a(o){return Object.prototype.toString.call(o)==="[object RegExp]"}return ZO=new t.Type("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:e,construct:n,predicate:a,represent:i}),ZO}var XO,U5;function zZ(){if(U5)return XO;U5=1;const t=kb();var e=new t.Schema({include:[iR()],explicit:[Cqe(),Tqe()]});return t.Schema.DEFAULT=e,XO=e,XO}var B5;function jqe(){if(B5)return jo;B5=1,Object.defineProperty(jo,"__esModule",{value:!0});const t=z_(),e=Jg(),n=Db(),i=mqe(),a=iR(),o=zZ();var r=Object.prototype.hasOwnProperty,s=1,c=2,l=3,u=4,f=1,h=2,d=3,m=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,g=/[\x85\u2028\u2029]/,b=/[,\[\]\{\}]/,v=/^(?:!|!!|![a-z\-]+!)$/i,P=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function A(w){return w===10||w===13}function _(w){return w===9||w===32}function x(w){return w===9||w===32||w===10||w===13}function E(w){return w===44||w===91||w===93||w===123||w===125}function j(w){var K;return 48<=w&&w<=57?w-48:(K=w|32,97<=K&&K<=102?K-97+10:-1)}function F(w){return w===120?2:w===117?4:w===85?8:0}function I(w){return 48<=w&&w<=57?w-48:-1}function L(w){return w===48?"\0":w===97?"\x07":w===98?"\b":w===116||w===9?" ":w===110?` +`:w===118?"\v":w===102?"\f":w===114?"\r":w===101?"\x1B":w===32?" ":w===34?'"':w===47?"/":w===92?"\\":w===78?"…":w===95?" ":w===76?"\u2028":w===80?"\u2029":""}function V(w){return w<=65535?String.fromCharCode(w):String.fromCharCode((w-65536>>10)+55296,(w-65536&1023)+56320)}for(var q=new Array(256),S=new Array(256),D=new Array(256),R=new Array(256),C=0;C<256;C++)R[C]=S[C]=L(C),q[C]=S[C]?1:0,D[C]=1,q[C]||(R[C]="\\"+String.fromCharCode(C));class H{constructor(K,te){this.errorMap={},this.errors=[],this.lines=[],this.input=K,this.filename=te.filename||null,this.schema=te.schema||o,this.onWarning=te.onWarning||null,this.legacy=te.legacy||!1,this.allowAnyEscape=te.allowAnyEscape||!1,this.ignoreDuplicateKeys=te.ignoreDuplicateKeys||!1,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=K.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}}function X(w,K,te=!1){return new n(K,new i(w.filename,w.input,w.position,w.line,w.position-w.lineStart),te)}function ae(w,K,te,fe=!1,he=!1){var Y=oe(w,K);if(Y){var k=te+K;if(!w.errorMap[k]){var re=new i(w.filename,w.input,K,Y.line,K-Y.start);he&&(re.toLineEnd=!0);var ee=new n(te,re,fe);w.errors.push(ee)}}}function z(w,K){var te=X(w,K),fe=te.message+te.mark.position;if(!w.errorMap[fe]){w.errors.push(te),w.errorMap[fe]=1;for(var he=w.position;;){if(w.position>=w.input.length-1)return;var Y=w.input.charAt(w.position);if(Y==` +`){w.position--,w.position==he&&(w.position+=1);return}if(Y=="\r"){w.position--,w.position==he&&(w.position+=1);return}w.position++}}}function M(w,K){var te=X(w,K);w.onWarning&&w.onWarning.call(null,te)}var U={YAML:function(K,te,fe){var he,Y,k;K.version!==null&&z(K,"duplication of %YAML directive"),fe.length!==1&&z(K,"YAML directive accepts exactly one argument"),he=/^([0-9]+)\.([0-9]+)$/.exec(fe[0]),he===null&&z(K,"ill-formed argument of the YAML directive"),Y=parseInt(he[1],10),k=parseInt(he[2],10),Y!==1&&z(K,"found incompatible YAML document (version 1.2 is required)"),K.version=fe[0],K.checkLineBreaks=k<2,k!==2&&z(K,"found incompatible YAML document (version 1.2 is required)")},TAG:function(K,te,fe){var he,Y;fe.length!==2&&z(K,"TAG directive accepts exactly two arguments"),he=fe[0],Y=fe[1],v.test(he)||z(K,"ill-formed tag handle (first argument) of the TAG directive"),r.call(K.tagMap,he)&&z(K,'there is a previously declared suffix for "'+he+'" tag handle'),P.test(Y)||z(K,"ill-formed tag prefix (second argument) of the TAG directive"),K.tagMap[he]=Y}};function W(w,K,te,fe){var he,Y,k,re,ee=w.result;if(ee.startPosition==-1&&(ee.startPosition=K),K<=te){if(re=w.input.slice(K,te),fe)for(he=0,Y=re.length;he{k.key&&k.key.value===(Y.key&&Y.key.value)&&(ae(w,Y.key.startPosition,"duplicate key"),ae(w,k.key.startPosition,"duplicate key"))}),K.mappings.push(Y),K.endPosition=he?he.endPosition:fe.endPosition+1,K}}function G(w){var K;K=w.input.charCodeAt(w.position),K===10?w.position++:K===13?(w.position++,w.input.charCodeAt(w.position)===10&&w.position++):z(w,"a line break is expected"),w.line+=1,w.lineStart=w.position,w.lines.push({start:w.lineStart,line:w.line})}function oe(w,K){for(var te,fe=0;feK);fe++)te=w.lines[fe];return te||{start:0,line:0}}function ve(w){var K=0,te=w.position;do K=w.input.charCodeAt(++w.position);while(K!==0&&!A(K));w.comments.push({startPosition:te,endPosition:w.position,value:w.input.slice(te+1,w.position)})}function ie(w,K,te){for(var fe=0,he=w.input.charCodeAt(w.position);he!==0;){for(;_(he);)he===9&&w.errors.push(X(w,"Using tabs can lead to unpredictable results",!0)),he=w.input.charCodeAt(++w.position);if(K&&he===35&&(ve(w),he=w.input.charCodeAt(w.position)),A(he))for(G(w),he=w.input.charCodeAt(w.position),fe++,w.lineIndent=0;he===32;)w.lineIndent++,he=w.input.charCodeAt(++w.position);else break}return te!==-1&&fe!==0&&w.lineIndent1&&(K.value+=e.repeat(` +`,te-1))}function De(w,K,te){var fe,he,Y,k,re,ee,le,se,ge=w.kind,xe=w.result,Pe,Le=t.newScalar();if(Le.plainScalar=!0,w.result=Le,Pe=w.input.charCodeAt(w.position),x(Pe)||E(Pe)||Pe===35||Pe===38||Pe===42||Pe===33||Pe===124||Pe===62||Pe===39||Pe===34||Pe===37||Pe===64||Pe===96||(Pe===63||Pe===45)&&(he=w.input.charCodeAt(w.position+1),x(he)||te&&E(he)))return!1;for(w.kind="scalar",Y=k=w.position,re=!1;Pe!==0;){if(Pe===58){if(he=w.input.charCodeAt(w.position+1),x(he)||te&&E(he))break}else if(Pe===35){if(fe=w.input.charCodeAt(w.position-1),x(fe))break}else{if(w.position===w.lineStart&&Ae(w)||te&&E(Pe))break;if(A(Pe))if(ee=w.line,le=w.lineStart,se=w.lineIndent,ie(w,!1,-1),w.lineIndent>=K){re=!0,Pe=w.input.charCodeAt(w.position);continue}else{w.position=k,w.line=ee,w.lineStart=le,w.lineIndent=se;break}}if(re&&(W(w,Y,k,!1),pe(w,Le,w.line-ee),Y=k=w.position,re=!1),_(Pe)||(k=w.position+1),Pe=w.input.charCodeAt(++w.position),w.position>=w.input.length)return!1}return W(w,Y,k,!1),w.result.startPosition!=-1?(Le.rawValue=w.input.substring(Le.startPosition,Le.endPosition),!0):(w.kind=ge,w.result=xe,!1)}function We(w,K){var te,fe,he;if(te=w.input.charCodeAt(w.position),te!==39)return!1;var Y=t.newScalar();for(Y.singleQuoted=!0,w.kind="scalar",w.result=Y,Y.startPosition=w.position,w.position++,fe=he=w.position;(te=w.input.charCodeAt(w.position))!==0;)if(te===39)if(W(w,fe,w.position,!0),te=w.input.charCodeAt(++w.position),Y.endPosition=w.position,te===39)fe=he=w.position,w.position++;else return!0;else A(te)?(W(w,fe,he,!0),pe(w,Y,ie(w,!1,K)),fe=he=w.position):w.position===w.lineStart&&Ae(w)?z(w,"unexpected end of the document within a single quoted scalar"):(w.position++,he=w.position,Y.endPosition=w.position);z(w,"unexpected end of the stream within a single quoted scalar")}function Ce(w,K){var te,fe,he,Y,k,re;if(re=w.input.charCodeAt(w.position),re!==34)return!1;w.kind="scalar";var ee=t.newScalar();for(ee.doubleQuoted=!0,w.result=ee,ee.startPosition=w.position,w.position++,te=fe=w.position;(re=w.input.charCodeAt(w.position))!==0;){if(re===34)return W(w,te,w.position,!0),w.position++,ee.endPosition=w.position,ee.rawValue=w.input.substring(ee.startPosition,ee.endPosition),!0;if(re===92){if(W(w,te,w.position,!0),re=w.input.charCodeAt(++w.position),A(re))ie(w,!1,K);else if(re<256&&(w.allowAnyEscape?D[re]:q[re]))ee.value+=w.allowAnyEscape?R[re]:S[re],w.position++;else if((k=F(re))>0){for(he=k,Y=0;he>0;he--)re=w.input.charCodeAt(++w.position),(k=j(re))>=0?Y=(Y<<4)+k:z(w,"expected hexadecimal character");ee.value+=V(Y),w.position++}else z(w,"unknown escape sequence");te=fe=w.position}else A(re)?(W(w,te,fe,!0),pe(w,ee,ie(w,!1,K)),te=fe=w.position):w.position===w.lineStart&&Ae(w)?z(w,"unexpected end of the document within a double quoted scalar"):(w.position++,fe=w.position)}z(w,"unexpected end of the stream within a double quoted scalar")}function _e(w,K){var te=!0,fe,he=w.tag,Y,k=w.anchor,re,ee,le,se,ge,xe,Pe,Le,Ye;if(Ye=w.input.charCodeAt(w.position),Ye===91)ee=93,ge=!1,Y=t.newItems(),Y.startPosition=w.position;else if(Ye===123)ee=125,ge=!0,Y=t.newMap(),Y.startPosition=w.position;else return!1;for(w.anchor!==null&&(Y.anchorId=w.anchor,w.anchorMap[w.anchor]=Y),Ye=w.input.charCodeAt(++w.position);Ye!==0;){if(ie(w,!0,K),Ye=w.input.charCodeAt(w.position),Ye===ee)return w.position++,w.tag=he,w.anchor=k,w.kind=ge?"mapping":"sequence",w.result=Y,Y.endPosition=w.position,!0;if(!te){var gt=w.position;z(w,"missed comma between flow collection entries"),w.position=gt+1}if(Pe=xe=Le=null,le=se=!1,Ye===63&&(re=w.input.charCodeAt(w.position+1),x(re)&&(le=se=!0,w.position++,ie(w,!0,K))),fe=w.line,pt(w,K,s,!1,!0),Pe=w.tag,xe=w.result,ie(w,!0,K),Ye=w.input.charCodeAt(w.position),(se||w.line===fe)&&Ye===58&&(le=!0,Ye=w.input.charCodeAt(++w.position),ie(w,!0,K),pt(w,K,s,!1,!0),Le=w.result),ge)T(w,Y,Pe,xe,Le);else if(le){var ht=T(w,null,Pe,xe,Le);ht.parent=Y,Y.items.push(ht)}else xe&&(xe.parent=Y),Y.items.push(xe);Y.endPosition=w.position+1,ie(w,!0,K),Ye=w.input.charCodeAt(w.position),Ye===44?(te=!0,Ye=w.input.charCodeAt(++w.position)):te=!1}z(w,"unexpected end of the stream within a flow collection")}function st(w,K){var te,fe,he=f,Y=!1,k=K,re=0,ee=!1,le,se;if(se=w.input.charCodeAt(w.position),se===124)fe=!1;else if(se===62)fe=!0;else return!1;var ge=t.newScalar();for(w.kind="scalar",w.result=ge,ge.startPosition=w.position;se!==0;)if(se=w.input.charCodeAt(++w.position),se===43||se===45)f===he?he=se===43?d:h:z(w,"repeat of a chomping mode identifier");else if((le=I(se))>=0)le===0?z(w,"bad explicit indentation width of a block scalar; it cannot be less than one"):Y?z(w,"repeat of an indentation width identifier"):(k=K+le-1,Y=!0);else break;if(_(se)){do se=w.input.charCodeAt(++w.position);while(_(se));se===35&&(ve(w),se=w.input.charCodeAt(w.position))}for(;se!==0;){for(G(w),w.lineIndent=0,se=w.input.charCodeAt(w.position);(!Y||w.lineIndentk&&(k=w.lineIndent),A(se)){re++;continue}if(w.lineIndentK)&&ee!==0)z(w,"bad indentation of a sequence entry");else if(w.lineIndent0;)if(Le=w.input.charCodeAt(--w.position),A(Le)){w.position++;break}}else return w.tag=k,w.anchor=re,!0;else break;if((w.line===Y||w.lineIndent>K)&&(pt(w,K,u,!0,he)&&(xe?se=w.result:ge=w.result),xe||(T(w,ee,le,se,ge),le=se=ge=null),ie(w,!0,-1),Le=w.input.charCodeAt(w.position)),w.lineIndent>K&&Le!==0)z(w,"bad indentation of a mapping entry");else if(w.lineIndentK?ee=1:w.lineIndent===K?ee=0:w.lineIndentK?ee=1:w.lineIndent===K?ee=0:w.lineIndent tag; it should be "'+Pe.kind+'", not "'+w.kind+'"'),Pe.resolve(w.result)?(w.result=Pe.construct(w.result),w.anchor!==null&&(w.result.anchorId=w.anchor,w.anchorMap[w.anchor]=w.result)):z(w,"cannot resolve a node with !<"+w.tag+"> explicit tag")):ae(w,gt,"unknown tag <"+w.tag+">",!1,!0);return w.tag!==null||w.anchor!==null||se}function nn(w){var K=w.position,te,fe,he,Y=!1,k;for(w.version=null,w.checkLineBreaks=w.legacy,w.tagMap={},w.anchorMap={},w.comments=[];(k=w.input.charCodeAt(w.position))!==0&&(ie(w,!0,-1),k=w.input.charCodeAt(w.position),!(w.lineIndent>0||k!==37));){for(Y=!0,k=w.input.charCodeAt(++w.position),te=w.position;k!==0&&!x(k);)k=w.input.charCodeAt(++w.position);for(fe=w.input.slice(te,w.position),he=[],fe.length<1&&z(w,"directive name must not be less than one character in length");k!==0;){for(;_(k);)k=w.input.charCodeAt(++w.position);if(k===35){ve(w),k=w.input.charCodeAt(w.position);break}if(A(k))break;for(te=w.position;k!==0&&!x(k);)k=w.input.charCodeAt(++w.position);he.push(w.input.slice(te,w.position))}k!==0&&G(w),r.call(U,fe)?U[fe](w,fe,he):(M(w,'unknown document directive "'+fe+'"'),w.position++)}if(ie(w,!0,-1),w.lineIndent===0&&w.input.charCodeAt(w.position)===45&&w.input.charCodeAt(w.position+1)===45&&w.input.charCodeAt(w.position+2)===45?(w.position+=3,ie(w,!0,-1)):Y&&z(w,"directives end mark is expected"),pt(w,w.lineIndent-1,u,!1,!0),ie(w,!0,-1),w.checkLineBreaks&&g.test(w.input.slice(K,w.position))&&M(w,"non-ASCII line breaks are interpreted as content"),w.result.comments=w.comments,w.documents.push(w.result),w.position===w.lineStart&&Ae(w)){w.input.charCodeAt(w.position)===46&&(w.position+=3,ie(w,!0,-1));return}if(w.position0&&(k[re-1].endPosition=te);for(let ee of k)ee.errors=fe.errors,ee.startPosition>ee.endPosition&&(ee.startPosition=ee.endPosition);return k}function Dr(w,K,te={}){var fe=lr(w,te),he,Y;for(he=0,Y=fe.length;he0?k.charCodeAt(ge-1):null,zt=zt&&G(xe,Pe)}else{for(ge=0;gele&&k[ht+1]!==" ",ht=ge);else if(!W(xe))return We;Pe=ge>0?k.charCodeAt(ge-1):null,zt=zt&&G(xe,Pe)}Ye=Ye||gt&&ge-ht-1>le&&k[ht+1]!==" "}return!Le&&!Ye?zt&&!se(k)?ie:Ae:ee>9&&ve(k)?We:Ye?De:pe}function _e(k,re,ee,le,se){var ge=function(){if(re.length===0)return"''";if(!k.noCompatMode&&R.indexOf(re)!==-1)return"'"+re+"'";var xe=k.indent*Math.max(1,ee),Pe=k.lineWidth===-1?-1:Math.max(Math.min(k.lineWidth,40),k.lineWidth-xe),Le=le||k.flowLevel>-1&&ee>=k.flowLevel;function Ye(gt){return M(k,gt)}switch(Ce(re,Le,k.indent,Pe,Ye)){case ie:return re;case Ae:return"'"+re.replace(/'/g,"''")+"'";case pe:return"|"+st(re,k.indent)+yt(ae(re,xe));case De:return">"+st(re,k.indent)+yt(ae(Re(re,Pe),xe));case We:return'"'+$t(re)+'"';default:throw new e("impossible error: invalid scalar style")}}();if(!le){let Pe=new Y(k,se).write(ee,"before-eol");Pe!==""&&(ge+=" "+Pe)}k.dump=ge}function st(k,re){var ee=ve(k)?String(re):"",le=k[k.length-1]===` +`,se=le&&(k[k.length-2]===` +`||k===` +`),ge=se?"+":le?"":"-";return ee+ge+` +`}function yt(k){return k[k.length-1]===` +`?k.slice(0,-1):k}function Re(k,re){for(var ee=/(\n+)([^\n]*)/g,le=function(){var Ye=k.indexOf(` +`);return Ye=Ye!==-1?Ye:k.length,ee.lastIndex=Ye,je(k.slice(0,Ye),re)}(),se=k[0]===` +`||k[0]===" ",ge,xe;xe=ee.exec(k);){var Pe=xe[1],Le=xe[2];ge=Le[0]===" ",le+=Pe+(!se&&!ge&&Le!==""?` +`:"")+je(Le,re),se=ge}return le}function je(k,re){if(k===""||k[0]===" ")return k;for(var ee=/ [^ ]/g,le,se=0,ge,xe=0,Pe=0,Le="";le=ee.exec(k);)Pe=le.index,Pe-se>re&&(ge=xe>se?xe:Pe,Le+=` +`+k.slice(se,ge),se=ge+1),xe=Pe;return Le+=` +`,k.length-se>re&&xe>se?Le+=k.slice(se,xe)+` +`+k.slice(xe+1):Le+=k.slice(se),Le.slice(1)}function $t(k){for(var re="",ee,le,se,ge=0;ge=55296&&ee<=56319&&(le=k.charCodeAt(ge+1),le>=56320&&le<=57343)){re+=H((ee-55296)*1024+le-56320+65536),ge++;continue}se=D[ee],re+=!se&&W(ee)?k[ge]:se||H(ee)}return re}function Se(k,re,ee,le){var se="",ge=k.tag,xe,Pe;for(xe=0,Pe=ee.length;xe1024&&(ht+="? "),ht+=k.dump+(k.condenseFlow?'"':"")+":"+(k.condenseFlow?"":" "),Yt(k,re,gt,!1,!1,!1,le)&&(ht+=k.dump,se+=ht));k.tag=ge,k.dump="{"+se+"}"}function lr(k,re,ee,le,se){var ge="",xe=k.tag,Pe=Object.keys(ee),Le,Ye,gt,ht,zt,Gr;if(k.sortKeys===!0)Pe.sort();else if(typeof k.sortKeys=="function")Pe.sort(k.sortKeys);else if(k.sortKeys)throw new e("sortKeys must be a boolean or a function");var yi=new Y(k,se);for(ge+=yi.write(re,"before-eol"),ge+=yi.write(re,"leading"),Le=0,Ye=Pe.length;Le1024,zt&&(k.dump&&s===k.dump.charCodeAt(0)?Gr+="?":Gr+="? "),Gr+=k.dump,zt&&(Gr+=z(k,re)),Yt(k,re+1,ht,!0,zt,!1,`${se}/${he(gt)}`)&&(k.dump&&s===k.dump.charCodeAt(0)?Gr+=":":Gr+=": ",Gr+=k.dump,ge+=Gr,ge+=yi.writeAt(re,gt,"after")));k.tag=xe,k.dump=ge||"{}",k.dump+=yi.write(re,"trailing")}function Dr(k,re,ee){var le,se,ge,xe,Pe,Le;for(se=ee?k.explicitTypes:k.implicitTypes,ge=0,xe=se.length;ge tag resolver accepts not "'+Le+'" style');k.dump=le}return!0}return!1}function Yt(k,re,ee,le,se,ge,xe){k.tag=null,k.dump=ee,Dr(k,ee,!1)||Dr(k,ee,!0);var Pe=a.call(k.dump);le&&(le=k.flowLevel<0||k.flowLevel>re),(k.tag!==null&&k.tag!=="?"||k.indent!==2&&re>0)&&(se=!1);var Le=Pe==="[object Object]"||Pe==="[object Array]",Ye,gt;if(Le&&(Ye=k.duplicates.indexOf(ee),gt=Ye!==-1),(k.tag!==null&&k.tag!=="?"||gt||k.indent!==2&&re>0)&&(se=!1),gt&&k.usedDuplicates[Ye])k.dump="*ref_"+Ye;else{if(Le&>&&!k.usedDuplicates[Ye]&&(k.usedDuplicates[Ye]=!0),Pe==="[object Object]")le&&Object.keys(k.dump).length!==0?(lr(k,re,k.dump,se,xe),gt&&(k.dump="&ref_"+Ye+k.dump)):(nn(k,re,k.dump,xe),gt&&(k.dump="&ref_"+Ye+" "+k.dump));else if(Pe==="[object Array]"){var ht=k.noArrayIndent&&re>0?re-1:re;le&&k.dump.length!==0?(pt(k,ht,k.dump,se,xe),gt&&(k.dump="&ref_"+Ye+k.dump)):(Se(k,ht,k.dump,xe),gt&&(k.dump="&ref_"+Ye+" "+k.dump))}else if(Pe==="[object String]")k.tag!=="?"&&_e(k,k.dump,re,ge,xe);else{if(k.skipInvalid)return!1;throw new e("unacceptable kind of an object to dump "+Pe)}k.tag!==null&&k.tag!=="?"&&(k.dump="!<"+k.tag+"> "+k.dump)}return!0}function cr(k,re){var ee=[],le=[],se,ge;for(J(k,ee,le),se=0,ge=le.length;se=0)return!0;if(["false","False","FALSE"].lastIndexOf(c)>=0)return!1;throw`Invalid boolean "${c}"`}t.parseYamlBoolean=e;function n(c){return c.lastIndexOf("0o",0)===0?parseInt(c.substring(2),8):parseInt(c)}function i(c){const l=n(c);if(Number.isNaN(l))throw`Invalid integer "${c}"`;return l}t.parseYamlInteger=i;function a(c){const l=i(c);return l>Number.MAX_SAFE_INTEGER&&c.lastIndexOf("0o",0)===-1?BigInt(c):l}t.parseYamlBigInteger=a;function o(c){if([".nan",".NaN",".NAN"].lastIndexOf(c)>=0)return NaN;const u=/^([-+])?(?:\.inf|\.Inf|\.INF)$/.exec(c);if(u)return u[1]==="-"?-1/0:1/0;const f=parseFloat(c);if(!isNaN(f))return f;throw`Invalid float "${c}"`}t.parseYamlFloat=o;var r;(function(c){c[c.null=0]="null",c[c.bool=1]="bool",c[c.int=2]="int",c[c.float=3]="float",c[c.string=4]="string"})(r=t.ScalarType||(t.ScalarType={}));function s(c){if(c===void 0)return r.null;if(c.doubleQuoted||!c.plainScalar||c.singleQuoted)return r.string;const l=c.value;if(["null","Null","NULL","~",""].indexOf(l)>=0||l==null)return r.null;if(["true","True","TRUE","false","False","FALSE"].indexOf(l)>=0)return r.bool;const u=/^[-+]?[0-9]+$/,f=/^0o[0-7]+$/,h=/^0x[0-9a-fA-F]+$/;if(u.test(l)||f.test(l)||h.test(l))return r.int;const d=/^[-+]?(\.[0-9]+|[0-9]+(\.[0-9]*)?)([eE][-+]?[0-9]+)?$/,m=/^[-+]?(\.inf|\.Inf|\.INF)$/;return d.test(l)||m.test(l)||[".nan",".NaN",".NAN"].indexOf(l)>=0?r.float:r.string}t.determineScalarType=s}(eE)),eE}var H5;function aR(){return H5||(H5=1,function(t){function e(a){for(var o in a)t.hasOwnProperty(o)||(t[o]=a[o])}Object.defineProperty(t,"__esModule",{value:!0});var n=jqe();t.load=n.load,t.loadAll=n.loadAll,t.safeLoad=n.safeLoad,t.safeLoadAll=n.safeLoadAll;var i=Mqe();t.dump=i.dump,t.safeDump=i.safeDump,t.YAMLException=Db(),e(z_()),e(Rqe())}(EO)),EO}var G5;function Qg(){if(G5)return X0;G5=1,Object.defineProperty(X0,"__esModule",{value:!0});const t=aR();return X0.Kind=t.Kind,X0.ScalarType=t.ScalarType,X0}var jw={},K5;function Ob(){return K5||(K5=1,Object.defineProperty(jw,"__esModule",{value:!0}),jw.isObject=t=>t!==null&&typeof t=="object"),jw}var Y5;function sR(){if(Y5)return Iw;Y5=1,Object.defineProperty(Iw,"__esModule",{value:!0});const t=Qg(),e=Ob();function n(i){const a=[];let o=i;for(;i;){switch(i.kind){case t.Kind.SCALAR:a.unshift(i.value);break;case t.Kind.MAPPING:o!==i.key&&(a.length>0&&e.isObject(i.value)&&i.value.value===a[0]?a[0]=i.key.value:a.unshift(i.key.value));break;case t.Kind.SEQ:if(o){const r=i.items.indexOf(o);o.kind===t.Kind.SCALAR?a[0]=r:r!==-1&&a.unshift(r)}break}o=i,i=i.parent}return a}return Iw.buildJsonPath=n,Iw}var tE={},J5;function UZ(){return J5||(J5=1,function(t){Object.defineProperty(t,"__esModule",{value:!0});const e=Qg(),n=Ob();t.dereferenceAnchor=(a,o)=>{if(!n.isObject(a))return a;if(a.kind===e.Kind.ANCHOR_REF&&a.referencesAnchor===o)return null;switch(a.kind){case e.Kind.MAP:return Object.assign({},a,{mappings:a.mappings.map(r=>t.dereferenceAnchor(r,o))});case e.Kind.SEQ:return Object.assign({},a,{items:a.items.map(r=>t.dereferenceAnchor(r,o))});case e.Kind.MAPPING:return Object.assign({},a,{value:t.dereferenceAnchor(a.value,o)});case e.Kind.SCALAR:return a;case e.Kind.ANCHOR_REF:return n.isObject(a.value)&&i(a)?null:a;default:return a}};const i=a=>{const{referencesAnchor:o}=a;let r=a;for(;r=r.parent;)if("anchorId"in r&&r.anchorId===o)return!0;return!1}}(tE)),tE}var Mw={},Q5;function Nqe(){if(Q5)return Mw;Q5=1,Object.defineProperty(Mw,"__esModule",{value:!0});const t=sR(),e=Qg(),n=Ob();Mw.getJsonPathForPosition=({ast:r,lineMap:s},{line:c,character:l})=>{if(c>=s.length||l>=s[c])return;const u=c===0?0:s[c-1]+1,f=o(r,Math.min(s[c]-1,u+l),c,s);if(!n.isObject(f))return;const h=t.buildJsonPath(f);if(h.length!==0)return h};function*i(r){switch(r.kind){case e.Kind.MAP:if(r.mappings.length!==0)for(const s of r.mappings)n.isObject(s)&&(yield s);break;case e.Kind.MAPPING:n.isObject(r.key)&&(yield r.key),n.isObject(r.value)&&(yield r.value);break;case e.Kind.SEQ:if(r.items.length!==0)for(const s of r.items)n.isObject(s)&&(yield s);break;case e.Kind.SCALAR:yield r;break}}function a(r,s,c){const l=c[s-1]+1,u=c[s];switch(r.kind){case e.Kind.MAPPING:return r.key;case e.Kind.MAP:if(r.mappings.length!==0){for(const f of r.mappings)if(f.startPosition>l&&f.startPosition<=u)return a(f,s,c)}break;case e.Kind.SEQ:if(r.items.length!==0){for(const f of r.items)if(f!==null&&f.startPosition>l&&f.startPosition<=u)return a(f,s,c)}break}return r}function o(r,s,c,l){for(const u of i(r))if(u.startPosition<=s&&s<=u.endPosition)return u.kind===e.Kind.SCALAR?u:o(u,s,c,l);if(l[c-1]===l[c]-1)return r;if(r.startPosition{if(e===0||n.length===0||e"u"&&(a=n.length);const o=Math.floor((a-i)/2)+i;if(e>=n[o]&&!n[o+1])return o+1;const r=n[Math.min(o+1,n.length)];return e===n[o]-1?o:e>=n[o]&&e<=r?e===r?o+2:o+1:e>n[o]?t.lineForPosition(e,n,o+1,a):t.lineForPosition(e,n,i,o-1)}}(rE)),rE}var X5;function Lqe(){if(X5)return Rw;X5=1,Object.defineProperty(Rw,"__esModule",{value:!0});const t=oR(),e=Qg(),n=Ob();Rw.getLocationForJsonPath=({ast:l,lineMap:u,metadata:f},h,d=!1)=>{const m=o(l,h,{closest:d,mergeKeys:f!==void 0&&f.mergeKeys===!0});if(m!==void 0)return c(u,{start:i(m,u.length>0?u[0]:0),end:a(m)})};function i(l,u){if(l.parent&&l.parent.kind===e.Kind.MAPPING){if(l.parent.value===null)return l.parent.endPosition;if(l.kind!==e.Kind.SCALAR)return l.parent.key.endPosition+1}return l.parent===null&&u-l.startPosition===0?0:l.startPosition}function a(l){switch(l.kind){case e.Kind.SEQ:const{items:u}=l;if(u.length!==0){const f=u[u.length-1];if(f!==null)return a(f)}break;case e.Kind.MAPPING:if(l.value!==null)return a(l.value);break;case e.Kind.MAP:if(l.value!==null&&l.mappings.length!==0)return a(l.mappings[l.mappings.length-1]);break;case e.Kind.SCALAR:if(l.parent!==null&&l.parent.kind===e.Kind.MAPPING&&l.parent.value===null)return l.parent.endPosition;break}return l.endPosition}function o(l,u,{closest:f,mergeKeys:h}){e:for(const d of u){if(!n.isObject(l))return f?l:void 0;switch(l.kind){case e.Kind.MAP:const m=r(l.mappings,h);for(let g=m.length-1;g>=0;g--){const b=m[g];if(b.key.value===d){b.value===null?l=b.key:l=b.value;continue e}}return f?l:void 0;case e.Kind.SEQ:for(let g=0;g(n.isObject(h)&&(h.key.value==="<<"?f.push(...s(h.value)):f.push(h)),f),[]):l}function s(l){if(!n.isObject(l))return[];switch(l.kind){case e.Kind.SEQ:return l.items.reduceRight((u,f)=>(u.push(...s(f)),u),[]);case e.Kind.MAP:return l.mappings;case e.Kind.ANCHOR_REF:return s(l.value);default:return[]}}const c=(l,{start:u=0,end:f=0})=>{const h=t.lineForPosition(u,l),d=t.lineForPosition(f,l);return{range:{start:{line:h,character:u-(h===0?0:l[h-1])},end:{line:d,character:f-(d===0?0:l[d-1])}}}};return Rw}var Nw={},Lw={};const BZ=Yl(vFe);var nE={},eB;function Fqe(){return eB||(eB=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.HttpOperationSecurityDeclarationTypes=void 0,function(e){e.None="none",e.Declared="declared",e.InheritedFromService="inheritedFromService"}(t.HttpOperationSecurityDeclarationTypes||(t.HttpOperationSecurityDeclarationTypes={})),t.HttpParamStyles=void 0,function(e){e.Unspecified="unspecified",e.Simple="simple",e.Matrix="matrix",e.Label="label",e.Form="form",e.CommaDelimited="commaDelimited",e.SpaceDelimited="spaceDelimited",e.PipeDelimited="pipeDelimited",e.DeepObject="deepObject",e.TabDelimited="tabDelimited"}(t.HttpParamStyles||(t.HttpParamStyles={})),t.DiagnosticSeverity=void 0,function(e){e[e.Error=0]="Error",e[e.Warning=1]="Warning",e[e.Information=2]="Information",e[e.Hint=3]="Hint"}(t.DiagnosticSeverity||(t.DiagnosticSeverity={})),t.NodeType=void 0,function(e){e.Article="article",e.HttpService="http_service",e.HttpServer="http_server",e.HttpOperation="http_operation",e.HttpCallback="http_callback",e.HttpWebhook="http_webhook",e.Model="model",e.Generic="generic",e.Unknown="unknown",e.TableOfContents="table_of_contents",e.SpectralRuleset="spectral_ruleset",e.Styleguide="styleguide",e.Image="image",e.StoplightResolutions="stoplight_resolutions",e.StoplightOverride="stoplight_override"}(t.NodeType||(t.NodeType={})),t.NodeFormat=void 0,function(e){e.Json="json",e.Markdown="markdown",e.Yaml="yaml",e.Javascript="javascript",e.Apng="apng",e.Avif="avif",e.Bmp="bmp",e.Gif="gif",e.Jpeg="jpeg",e.Png="png",e.Svg="svg",e.Webp="webp"}(t.NodeFormat||(t.NodeFormat={}))}(nE)),nE}var tB;function VZ(){if(tB)return Lw;tB=1,Object.defineProperty(Lw,"__esModule",{value:!0});const t=BZ,e=Fqe(),n=aR(),i=sR(),a=UZ(),o=oR(),r=Qg(),s=Ob();Lw.parseWithPointers=(V,q)=>{const S=d(V),D=n.load(V,Object.assign({},q,{ignoreDuplicateKeys:!0})),R={ast:D,lineMap:S,data:void 0,diagnostics:[],metadata:q,comments:{}};if(!D)return R;const C=L(q),H=new I(R.comments,I.mapComments(C.attachComments&&D.comments?D.comments:[],S),D,S,"#"),X={lineMap:S,diagnostics:R.diagnostics};return R.data=f(X,D,H,C),D.errors&&R.diagnostics.push(...g(D.errors,S)),R.diagnostics.length>0&&R.diagnostics.sort((ae,z)=>ae.range.start.line-z.range.start.line),Array.isArray(R.ast.errors)&&(R.ast.errors.length=0),R};const c=/~/g,l=/\//g;function u(V){return V.replace(c,"~0").replace(l,"~1")}const f=(V,q,S,D)=>{if(q)switch(q.kind){case r.Kind.MAP:{const R=S.enter(q),{lineMap:C,diagnostics:H}=V,{preserveKeyOrder:X,ignoreDuplicateKeys:ae,json:z,mergeKeys:M}=D,U=v(X),W=[],T=M,G=!z,oe=!ae;for(const ve of q.mappings){if(!x(ve,C,H,G))continue;const ie=String(h(ve.key)),Ae=R.enter(ve,u(ie));if((G||oe)&&(!T||ie!=="<<"))if(W.includes(ie)){if(G)throw new Error("Duplicate YAML mapping key encountered");oe&&H.push(j(ve.key,C,"duplicate key"))}else W.push(ie);if(T&&ie==="<<"){const pe=b(f(V,ve.value,Ae,D),X);Object.assign(U,pe)}else U[ie]=f(V,ve.value,Ae,D),X&&_(U,ie);Ae.attachComments()}return R.attachComments(),U}case r.Kind.SEQ:{const R=S.enter(q),C=q.items.map((H,X)=>{if(H!==null){const ae=R.enter(H,X),z=f(V,H,ae,D);return ae.attachComments(),z}else return null});return R.attachComments(),C}case r.Kind.SCALAR:{const R=h(q);return!D.bigInt&&typeof R=="bigint"?Number(R):R}case r.Kind.ANCHOR_REF:return s.isObject(q.value)&&(q.value=a.dereferenceAnchor(q.value,q.referencesAnchor)),f(V,q.value,S,D);default:return null}return q};function h(V){switch(n.determineScalarType(V)){case r.ScalarType.null:return null;case r.ScalarType.string:return String(V.value);case r.ScalarType.bool:return n.parseYamlBoolean(V.value);case r.ScalarType.int:return n.parseYamlBigInteger(V.value);case r.ScalarType.float:return n.parseYamlFloat(V.value)}}const d=V=>{const q=[];let S=0;for(;S{const S=[];let D=-1,R=0;for(const C of V){const H={code:C.name,message:C.reason,severity:C.isWarning?e.DiagnosticSeverity.Warning:e.DiagnosticSeverity.Error,range:{start:{line:C.mark.line,character:C.mark.column},end:{line:C.mark.line,character:C.mark.toLineEnd?m(q,C.mark.line):C.mark.column}}};C.reason==="missed comma between flow collection entries"?D=D===-1?R:D:D!==-1&&(S[D].range.end=H.range.end,S[D].message="invalid mixed usage of block and flow styles",S.length=D+1,R=S.length,D=-1),S.push(H),R++}return S},b=(V,q)=>Array.isArray(V)?V.reduceRight(q?(D,R)=>{const C=Object.keys(R);Object.assign(D,R);for(let H=C.length-1;H>=0;H--)A(D,C[H]);return D}:(D,R)=>Object.assign(D,R),v(q)):typeof V!="object"||V===null?null:Object(V);function v(V){return V?t.default({}):{}}function P(V,q){if(!(q in V))return;const S=t.getOrder(V),D=S.indexOf(q);D!==-1&&S.splice(D,1)}function A(V,q){P(V,q),t.getOrder(V).unshift(q)}function _(V,q){P(V,q),t.getOrder(V).push(q)}function x(V,q,S,D){if(V.key.kind!==r.Kind.SCALAR)return D||S.push(E(V.key,q,"mapping key must be a string scalar",D)),!1;if(!D){const R=typeof h(V.key);R!=="string"&&S.push(E(V.key,q,`mapping key must be a string scalar rather than ${V.key.valueObject===null?"null":R}`,D))}return!0}function E(V,q,S,D){const R=j(V,q,S);return R.code="YAMLIncompatibleValue",R.severity=D?e.DiagnosticSeverity.Hint:e.DiagnosticSeverity.Warning,R}function j(V,q,S){return{code:"YAMLException",message:S,severity:e.DiagnosticSeverity.Error,path:i.buildJsonPath(V),range:F(q,V.startPosition,V.endPosition)}}function F(V,q,S){const D=o.lineForPosition(q,V),R=o.lineForPosition(S,V);return{start:{line:D,character:D===0?q:q-V[D-1]},end:{line:R,character:R===0?S:S-V[R-1]}}}class I{constructor(q,S,D,R,C){if(this.attachedComments=q,this.node=D,this.lineMap=R,this.pointer=C,S.length===0)this.comments=[];else{const H=this.getStartPosition(D),X=this.getEndPosition(D),ae=o.lineForPosition(H,this.lineMap),z=o.lineForPosition(X,this.lineMap),M=[];for(let U=S.length-1;U>=0;U--){const W=S[U];W.range.start.line>=ae&&W.range.end.line<=z&&(M.push(W),S.splice(U,1))}this.comments=M}}getStartPosition(q){return q.parent===null?0:q.kind===r.Kind.MAPPING?q.key.startPosition:q.startPosition}getEndPosition(q){switch(q.kind){case r.Kind.MAPPING:return q.value===null?q.endPosition:this.getEndPosition(q.value);case r.Kind.MAP:return q.mappings.length===0?q.endPosition:q.mappings[q.mappings.length-1].endPosition;case r.Kind.SEQ:{if(q.items.length===0)return q.endPosition;const S=q.items[q.items.length-1];return S===null?q.endPosition:S.endPosition}default:return q.endPosition}}static mapComments(q,S){return q.map(D=>({value:D.value,range:F(S,D.startPosition,D.endPosition),startPosition:D.startPosition,endPosition:D.endPosition}))}enter(q,S){return new I(this.attachedComments,this.comments,q,this.lineMap,S===void 0?this.pointer:`${this.pointer}/${S}`)}static isLeading(q,S){switch(q.kind){case r.Kind.MAP:return q.mappings.length===0||q.mappings[0].startPosition>S;case r.Kind.SEQ:{if(q.items.length===0)return!0;const D=q.items[0];return D===null||D.startPosition>S}case r.Kind.MAPPING:return q.value===null||q.value.startPosition>S;default:return!1}}static isTrailing(q,S){switch(q.kind){case r.Kind.MAP:return q.mappings.length>0&&S>q.mappings[q.mappings.length-1].endPosition;case r.Kind.SEQ:if(q.items.length===0)return!1;const D=q.items[q.items.length-1];return D!==null&&S>D.endPosition;case r.Kind.MAPPING:return q.value!==null&&S>q.value.endPosition;default:return!1}}static findBetween(q,S,D){switch(q.kind){case r.Kind.MAP:{let R;for(const C of q.mappings)if(S>C.startPosition)R=C.key.value;else if(R!==void 0&&C.startPosition>D)return[R,C.key.value];return null}case r.Kind.SEQ:{let R;for(let C=0;CH.startPosition)R=String(C);else if(R!==void 0&&H.startPosition>D)return[R,String(C)]}}return null}default:return null}}isBeforeEOL(q){return this.node.kind===r.Kind.SCALAR||this.node.kind===r.Kind.MAPPING&&q.range.end.line===o.lineForPosition(this.node.key.endPosition,this.lineMap)}attachComments(){if(this.comments.length===0)return;const q=this.attachedComments[this.pointer]=this.attachedComments[this.pointer]||[];for(const S of this.comments)if(this.isBeforeEOL(S))q.push({value:S.value,placement:"before-eol"});else if(I.isLeading(this.node,S.startPosition))q.push({value:S.value,placement:"leading"});else if(I.isTrailing(this.node,S.endPosition))q.push({value:S.value,placement:"trailing"});else{const D=I.findBetween(this.node,S.startPosition,S.endPosition);D!==null?q.push({value:S.value,placement:"between",between:D}):q.push({value:S.value,placement:"trailing"})}}}function L(V){return V===void 0?{attachComments:!1,preserveKeyOrder:!1,bigInt:!1,mergeKeys:!1,json:!0,ignoreDuplicateKeys:!1}:Object.assign({},V,{attachComments:V.attachComments===!0,preserveKeyOrder:V.preserveKeyOrder===!0,bigInt:V.bigInt===!0,mergeKeys:V.mergeKeys===!0,json:V.json!==!1,ignoreDuplicateKeys:V.ignoreDuplicateKeys!==!1})}return Lw}var rB;function qqe(){if(rB)return Nw;rB=1,Object.defineProperty(Nw,"__esModule",{value:!0});const t=VZ();return Nw.parse=e=>t.parseWithPointers(e).data,Nw}var Fw={},nB;function zqe(){if(nB)return Fw;nB=1,Object.defineProperty(Fw,"__esModule",{value:!0});const t=aR();return Fw.safeStringify=(e,n)=>typeof e=="string"?e:t.safeDump(e,n),Fw}var iE={},iB;function Uqe(){return iB||(iB=1,function(t){Object.defineProperty(t,"__esModule",{value:!0});const e=BZ;t.KEYS=Symbol.for(e.ORDER_KEY_ID);const n={ownKeys(i){return t.KEYS in i?i[t.KEYS]:Reflect.ownKeys(i)}};t.trapAccess=i=>new Proxy(i,n)}(iE)),iE}(function(t){Object.defineProperty(t,"__esModule",{value:!0});const e=vr;e.__exportStar(sR(),t),e.__exportStar(UZ(),t),e.__exportStar(Nqe(),t),e.__exportStar(Lqe(),t),e.__exportStar(oR(),t);var n=qqe();t.parse=n.parse;var i=VZ();t.parseWithPointers=i.parseWithPointers,e.__exportStar(zqe(),t),e.__exportStar(Qg(),t),e.__exportStar(Uqe(),t)})(qZ);(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.Yaml=t.parseYaml=void 0;const e=qZ;function n(a,o){return(0,e.getLocationForJsonPath)(a,o)}const i=a=>(0,e.parseWithPointers)(a,{ignoreDuplicateKeys:!1,mergeKeys:!0,preserveKeyOrder:!0,attachComments:!1});t.parseYaml=i,t.Yaml={parse:t.parseYaml,getLocationForJsonPath:n,trapAccess:e.trapAccess}})(FZ);var WZ={};Object.defineProperty(WZ,"__esModule",{value:!0});(function(t){Object.defineProperty(t,"__esModule",{value:!0});const e=vr;(0,e.__exportStar)(LZ,t),(0,e.__exportStar)(FZ,t),(0,e.__exportStar)(WZ,t)})(ph);var lR={},Ya={},HZ={},U_={};Object.defineProperty(U_,"__esModule",{value:!0});U_.decodeSegmentFragment=void 0;const Bqe=Hr;function Vqe(t){return typeof t!="string"?String(t):(0,Bqe.decodePointerFragment)(t)}U_.decodeSegmentFragment=Vqe;var Eb={};Object.defineProperty(Eb,"__esModule",{value:!0});Eb.printError=void 0;const Wqe=ir;function Hqe(t){return(0,Wqe.isError)(t)?t.message:"unknown error"}Eb.printError=Hqe;var GZ={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.printPath=t.PrintStyle=void 0;const e=Hr;var n;(function(l){l.Dot="dot",l.Pointer="pointer",l.EscapedPointer="escapedPointer"})(n=t.PrintStyle||(t.PrintStyle={}));const i=l=>typeof l=="number"||!Number.isNaN(Number(l)),a=l=>/\s/.test(l),o=l=>typeof l=="number"?l:(0,e.decodePointerFragment)(l),r=l=>typeof l=="number"?`[${l}]`:l.length===0?"['']":a(l)?`['${l}']`:i(l)?`[${l}]`:null,s=l=>l.reduce((u,f,h)=>{var d;return`${u}${(d=r(f))!==null&&d!==void 0?d:`${h===0?"":"."}${f}`}`},""),c=(l,u)=>{switch(u){case n.Dot:return(0,e.decodePointerFragment)(s(l));case n.Pointer:return l.length===0?"#":`#/${(0,e.decodePointerFragment)(l.join("/"))}`;case n.EscapedPointer:return(0,e.pathToPointer)(l.map(o));default:return String(l)}};t.printPath=c})(GZ);var B_={};Object.defineProperty(B_,"__esModule",{value:!0});B_.printValue=void 0;const Gqe=ir,Kqe=Hr;function Yqe(t){return t===void 0?"undefined":(0,Gqe.isObject)(t)?Array.isArray(t)?"Array[]":t instanceof RegExp?String(t.source):!(0,Kqe.isPlainObject)(t)&&"constructor"in t&&typeof t.constructor.name=="string"?t.constructor.name:"Object{}":JSON.stringify(t)}B_.printValue=Yqe;var KZ={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.getClosestJsonPath=t.safePointerToPath=t.getEndRef=t.traverseObjUntilRef=t.isAbsoluteRef=t.startsWithProtocol=void 0;const e=Hr,n=Ih,i=ir,a=/^[a-z]+:\/\//i,o=f=>a.test(f);t.startsWithProtocol=o;const r=f=>(0,n.isAbsolute)(f)||(0,t.startsWithProtocol)(f);t.isAbsoluteRef=r;const s=(f,h)=>{let d=f;for(const m of h.slice()){if(!(0,i.isObject)(d))throw new TypeError("Segment is not a part of the object");if(m in d)d=d[m];else{if((0,e.hasRef)(d))return d.$ref;throw new Error("Segment is not a part of the object")}h.shift()}return(0,e.isPlainObject)(d)&&(0,e.hasRef)(d)&&Object.keys(d).length===1?d.$ref:null};t.traverseObjUntilRef=s;const c=(f,h)=>{for(;h in f;)h=f[h];return h};t.getEndRef=c;const l=f=>{const h=(0,e.extractPointerFromRef)(f);return h!==null?(0,e.pointerToPath)(h):[]};t.safePointerToPath=l;const u=(f,h)=>{const d=[];if(!(0,i.isObject)(f))return d;let m=f;for(const g of h){if(!(0,i.isObject)(m)||!(g in m))break;d.push(g),m=m[g]}return d};t.getClosestJsonPath=u})(KZ);(function(t){Object.defineProperty(t,"__esModule",{value:!0});const e=vr;(0,e.__exportStar)(U_,t),(0,e.__exportStar)(Eb,t),(0,e.__exportStar)(GZ,t),(0,e.__exportStar)(B_,t),(0,e.__exportStar)(KZ,t)})(HZ);var cR={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_REQUEST_OPTIONS=void 0;const n=(0,vr.__importDefault)(RQ);t.DEFAULT_REQUEST_OPTIONS={},t.default=async(i,a={})=>(0,n.default)(i,{...a,...t.DEFAULT_REQUEST_OPTIONS})})(cR);var vg={},V_={exports:{}};const{AbortController:YZ,AbortSignal:Jqe}=typeof self<"u"?self:typeof window<"u"?window:void 0;V_.exports=YZ;V_.exports.AbortSignal=Jqe;V_.exports.default=YZ;var Qqe=V_.exports;Object.defineProperty(vg,"__esModule",{value:!0});vg.readParsable=vg.readFile=void 0;const uR=vr,Zqe=Ih,Xqe=(0,uR.__importDefault)(Qqe),e3e=(0,uR.__importStar)(_b),t3e=ir,r3e=(0,uR.__importDefault)(cR),JZ=Eb;async function QZ(t,e){if((0,Zqe.isURL)(t)){let n,i=null;try{const a={};if(a.agent=e.agent,e.timeout!==void 0){const o=new Xqe.default;i=setTimeout(()=>{o.abort()},e.timeout),a.signal=o.signal}if(n=await(0,r3e.default)(t,a),!n.ok)throw new Error(n.statusText);return await n.text()}catch(a){throw(0,t3e.isError)(a)&&a.name==="AbortError"?new Error("Timeout"):a}finally{i!==null&&clearTimeout(i)}}else try{return await new Promise((n,i)=>{e3e.readFile(t,e.encoding,(a,o)=>{a!==null?i(a):n(o)})})}catch(n){throw new Error(`Could not read ${t}: ${(0,JZ.printError)(n)}`)}}vg.readFile=QZ;async function n3e(t,e){try{return await QZ(t,e)}catch(n){throw new Error(`Could not parse ${t}: ${(0,JZ.printError)(n)}`)}}vg.readParsable=n3e;(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_REQUEST_OPTIONS=t.fetch=void 0;const e=vr;(0,e.__exportStar)(HZ,t);var n=cR;Object.defineProperty(t,"fetch",{enumerable:!0,get:function(){return(0,e.__importDefault)(n).default}}),Object.defineProperty(t,"DEFAULT_REQUEST_OPTIONS",{enumerable:!0,get:function(){return n.DEFAULT_REQUEST_OPTIONS}}),(0,e.__exportStar)(vg,t)})(Ya);var ZZ={};Object.defineProperty(ZZ,"__esModule",{value:!0});(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.createHttpAndFileResolver=t.ResolverDepGraph=t.Resolver=t.httpAndFileResolver=void 0;const e=vr,n=Eh,i=VM;Object.defineProperty(t,"Resolver",{enumerable:!0,get:function(){return i.Resolver}});const a=Ya,o=L_();(0,e.__exportStar)(ZZ,t),t.httpAndFileResolver=r(),t.ResolverDepGraph=o.DepGraph;function r(s){const c=(0,n.createResolveHttp)({...a.DEFAULT_REQUEST_OPTIONS,...s});return new i.Resolver({resolvers:{https:{resolve:c},http:{resolve:c},file:{resolve:n.resolveFile}}})}t.createHttpAndFileResolver=r})(lR);var Mo={},aE={},aB;function XZ(){return aB||(aB=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.formatResolverErrors=t.formatParserDiagnostics=t.prettyPrintResolverErrorMessage=t.getDiagnosticErrorMessage=void 0;const e=xb,n=ir,i=Zg(),a=f=>f.toUpperCase(),o=(f,h,d)=>`${h} ${d.toLowerCase()}`;function r(f){const h=c(f.path);let d=f.message.replace(/^[a-z]/,a);return f.code!=="YAMLException"&&(d=d.replace(/([a-z])([A-Z])/g,o)),h!==void 0&&(d=d.replace(/(Duplicate key)/,`$1: ${h}`)),d}t.getDiagnosticErrorMessage=r;const s=f=>f.replace(/^Error\s*:\s*/,"");t.prettyPrintResolverErrorMessage=s;const c=f=>{if(f!==void 0&&f.length>0)return f[f.length-1]};function l(f,h){return f.map(d=>{var m;return{...d,code:"parser",message:r(d),path:(m=d.path)!==null&&m!==void 0?m:[],...h!==null?{source:h}:null}})}t.formatParserDiagnostics=l;const u=(f,h)=>(0,n.uniqBy)(h,"message").map(d=>{var m;const g=[...d.path,"$ref"],b=(m=f.getRangeForJsonPath(g,!0))!==null&&m!==void 0?m:i.Document.DEFAULT_RANGE,v=d.uriStack.length>0?d.uriStack[d.uriStack.length-1]:f.source;return{code:"invalid-ref",path:g,message:(0,t.prettyPrintResolverErrorMessage)(d.message),severity:e.DiagnosticSeverity.Error,range:b,...v!==null?{source:v}:null}});t.formatResolverErrors=u}(aE)),aE}var sB;function Zg(){if(sB)return Mo;sB=1,Object.defineProperty(Mo,"__esModule",{value:!0}),Mo.isParsedResult=Mo.ParsedDocument=Mo.Document=Mo.normalizeSource=void 0;const t=Ih,e=XZ(),n=Ya,i=Hr;function a(c){return c===void 0?null:c.length>0&&!(0,n.startsWithProtocol)(c)?(0,t.normalize)(c):c}Mo.normalizeSource=a;class o{constructor(l,u,f){this.input=l,this.parser=u,this.parserResult=u.parse(l),this.source=a(f),this.diagnostics=(0,e.formatParserDiagnostics)(this.parserResult.diagnostics,this.source)}getRangeForJsonPath(l,u){var f;return(f=this.parser.getLocationForJsonPath(this.parserResult,l,u))===null||f===void 0?void 0:f.range}trapAccess(l){return this.parser.trapAccess(l)}static get DEFAULT_RANGE(){return{start:{character:0,line:0},end:{character:0,line:0}}}get data(){return this.parserResult.data}}Mo.Document=o;class r{constructor(l){this.parserResult=l,this.source=a(l.source),this.diagnostics=(0,e.formatParserDiagnostics)(this.parserResult.parsed.diagnostics,this.source)}trapAccess(l){return l}getRangeForJsonPath(l,u){var f;return(f=this.parserResult.getLocationForJsonPath(this.parserResult.parsed,l,u))===null||f===void 0?void 0:f.range}get data(){return this.parserResult.parsed.data}}Mo.ParsedDocument=r;const s=c=>(0,i.isPlainObject)(c)&&(0,i.isPlainObject)(c.parsed)&&typeof c.getLocationForJsonPath=="function";return Mo.isParsedResult=s,Mo}var W_={};Object.defineProperty(W_,"__esModule",{value:!0});W_.DocumentInventory=void 0;const i3e=vr,qw=Hr,oB=Ih,a3e=ir,s3e=Zg(),lB=XZ(),cB=(0,i3e.__importStar)(ph),Ru=Ya;class VP{constructor(e,n){this.document=e,this.resolver=n,this.diagnostics=[],this.parseResolveResult=o=>{const r=o.targetAuthority.href().replace(/\/$/,""),s=(0,oB.extname)(r),c=String(o.result),l=s===".json"?cB.Json:cB.Yaml,u=new s3e.Document(c,l,r);return o.result=u.data,u.diagnostics.length>0&&this.diagnostics.push(...(0,lB.formatParserDiagnostics)(u.diagnostics,u.source)),this.referencedDocuments[r]=u,Promise.resolve(o)},this.graph=null,this.errors=null;const i=n.uriCache,a=VP._cachedRemoteDocuments.get(i);a!==void 0?this.referencedDocuments=a:(this.referencedDocuments={},VP._cachedRemoteDocuments.set(i,this.referencedDocuments))}get source(){return this.document.source}get unresolved(){return this.document.data}get formats(){var e;return(e=this.document.formats)!==null&&e!==void 0?e:null}async resolve(){if(!(0,a3e.isObjectLike)(this.document.data)){this.graph=null,this.resolved=this.document.data,this.errors=null;return}const e=await this.resolver.resolve(this.document.data,{...this.document.source!==null?{baseUri:this.document.source}:null,parseResolveResult:this.parseResolveResult});this.graph=e.graph,this.resolved=e.result,this.errors=(0,lB.formatResolverErrors)(this.document,e.errors)}findAssociatedItemForPath(e,n){if(!n){const i=(0,Ru.getClosestJsonPath)(this.unresolved,e);return{document:this.document,path:i,missingPropertyPath:e}}try{const i=(0,Ru.getClosestJsonPath)(this.resolved,e);if((0,Ru.traverseObjUntilRef)(this.unresolved,i)===null)return{document:this.document,path:(0,Ru.getClosestJsonPath)(this.unresolved,e),missingPropertyPath:e};const o=i.length===0?[]:e.slice(e.lastIndexOf(i[i.length-1])+1);let{source:r}=this;if(r===null||this.graph===null)return null;let s=this.graph.getNodeData(r).refMap,c=this.document;const l=["#",...e.map(qw.encodePointerUriFragment).map(String)];let u="";for(const d of l)for(u.length>0&&(u+="/"),u+=d;u in s;){const m=s[u];if((0,qw.isLocalRef)(m))u=m;else{const g=(0,qw.extractSourceFromRef)(m);if(g===null)return{document:c,path:(0,Ru.getClosestJsonPath)(c.data,e),missingPropertyPath:e};r=(0,Ru.isAbsoluteRef)(g)?g:(0,oB.resolve)(r,"..",g);const b=r===this.document.source?this.document:this.referencedDocuments[r];if(b==null)return{document:c,path:(0,Ru.getClosestJsonPath)(c.data,e),missingPropertyPath:e};c=b,s=this.graph.getNodeData(r).refMap,u=m.indexOf("#")>=0?m.slice(m.indexOf("#")):"#"}}const f=(0,Ru.getClosestJsonPath)(c.data,this.convertRefMapKeyToPath(u));return{document:c,path:f,missingPropertyPath:[...f,...o]}}catch{return null}}convertRefMapKeyToPath(e){return e.startsWith("#/")&&(e=e.slice(2)),e.split("/").map(qw.decodePointerFragment)}}W_.DocumentInventory=VP;VP._cachedRemoteDocuments=new WeakMap;var eX={},H_={},tX={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.sortResults=t.compareResults=t.comparePosition=t.prepareResults=void 0;const e=u=>{let f=String(u.code);return u.path.length>0?f+=JSON.stringify(u.path):f+=JSON.stringify(u.range),u.source!==void 0&&(f+=u.source),u.message!==void 0&&(f+=u.message),f},n=u=>(0,t.sortResults)(i(u));t.prepareResults=n;const i=u=>{const f=new Set;return u.filter(h=>{const d=e(h);return f.has(d)?!1:(f.add(d),!0)})},a=(u,f)=>u===void 0&&f===void 0?0:u===void 0?-1:f===void 0?1:String(u).localeCompare(String(f),void 0,{numeric:!0}),o=(u,f)=>u===void 0&&f===void 0?0:u===void 0?-1:f===void 0?1:u.localeCompare(f),r=u=>u<0?-1:u>0?1:0,s=(u,f)=>{const h=u.line-f.line;if(h!==0)return r(h);const d=u.character-f.character;return r(d)};t.comparePosition=s;const c=(u,f)=>{const h=o(u.source,f.source);if(h!==0)return r(h);const d=(0,t.comparePosition)(u.range.start,f.range.start);if(d!==0)return d;const m=a(u.code,f.code);if(m!==0)return r(m);const g=u.path.join().localeCompare(f.path.join());return r(g)};t.compareResults=c;const l=u=>[...u].sort(t.compareResults);t.sortResults=l})(tX);var G_={};class fR extends Error{constructor(e,{cause:n}={}){super(e),this.name=fR.name,n&&(this.cause=n),this.message=e}}const o3e=(t,e)=>{if(!t||!e||!(t instanceof Error)||!(e.prototype instanceof Error)&&e!==Error)return;const n=new Set;let i=t;for(;i&&!n.has(i);){if(n.add(i),i instanceof e)return i;i=K_(i)}},K_=t=>{if(!t)return;const e=t.cause;if(typeof e=="function"){const n=t.cause();return n instanceof Error?n:void 0}else return e instanceof Error?e:void 0},rX=(t,e)=>{if(!(t instanceof Error))return"";const n=t.stack||"";if(e.has(t))return n+` +causes have become circular...`;const i=K_(t);return i?(e.add(t),n+` +caused by: `+rX(i,e)):n},l3e=t=>rX(t,new Set),nX=(t,e,n)=>{if(!(t instanceof Error))return"";const i=n?"":t.message||"";if(e.has(t))return i+": ...";const a=K_(t);if(a){e.add(t);const o=typeof t.cause=="function";return i+(o?"":": ")+nX(a,e,o)}else return i},c3e=t=>nX(t,new Set);var u3e={ErrorWithCause:fR,findCauseByReference:o3e,getErrorCause:K_,stackWithCauses:l3e,messageWithCauses:c3e},iX={},Y_={};function Ml(t){"@babel/helpers - typeof";return Ml=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ml(t)}function aX(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function f3e(t,e){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Yv(t,e,n){return oX()?Yv=Reflect.construct.bind():Yv=function(a,o,r){var s=[null];s.push.apply(s,o);var c=Function.bind.apply(a,s),l=new c;return r&&HP(l,r.prototype),l},Yv.apply(null,arguments)}function h3e(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function BC(t){var e=typeof Map=="function"?new Map:void 0;return BC=function(i){if(i===null||!h3e(i))return i;if(typeof i!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e<"u"){if(e.has(i))return e.get(i);e.set(i,a)}function a(){return Yv(i,arguments,WP(this).constructor)}return a.prototype=Object.create(i.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),HP(a,i)},BC(t)}function d3e(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function m3e(t,e){if(e&&(typeof e=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return d3e(t)}function y3e(t){var e=oX();return function(){var i=WP(t),a;if(e){var o=WP(this).constructor;a=Reflect.construct(i,arguments,o)}else a=i.apply(this,arguments);return m3e(this,a)}}function g3e(t){return v3e(t)||P3e(t)||lX(t)||b3e()}function v3e(t){if(Array.isArray(t))return VC(t)}function P3e(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function lX(t,e){if(t){if(typeof t=="string")return VC(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return VC(t,e)}}function VC(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(c){throw c},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,r=!1,s;return{s:function(){n=n.call(t)},n:function(){var c=n.next();return o=c.done,c},e:function(c){r=!0,s=c},f:function(){try{!o&&n.return!=null&&n.return()}finally{if(r)throw s}}}}var Ra=Object.prototype.hasOwnProperty;function tv(t,e){return t=t.slice(),t.push(e),t}function gd(t,e){return e=e.slice(),e.unshift(t),e}var $3e=function(t){p3e(n,t);var e=y3e(n);function n(i){var a;return aX(this,n),a=e.call(this,'JSONPath should not be called with "new" (it prevents return of (unwrapped) scalar values)'),a.avoidNew=!0,a.value=i,a.name="NewError",a}return sX(n)}(BC(Error));function Ir(t,e,n,i,a){if(!(this instanceof Ir))try{return new Ir(t,e,n,i,a)}catch(c){if(!c.avoidNew)throw c;return c.value}typeof t=="string"&&(a=i,i=n,n=e,e=t,t=null);var o=t&&Ml(t)==="object";if(t=t||{},this.json=t.json||n,this.path=t.path||e,this.resultType=t.resultType||"value",this.flatten=t.flatten||!1,this.wrap=Ra.call(t,"wrap")?t.wrap:!0,this.sandbox=t.sandbox||{},this.preventEval=t.preventEval||!1,this.parent=t.parent||null,this.parentProperty=t.parentProperty||null,this.callback=t.callback||i||null,this.otherTypeCallback=t.otherTypeCallback||a||function(){throw new TypeError("You must supply an otherTypeCallback callback option with the @other() operator.")},t.autostart!==!1){var r={path:o?t.path:e};o?"json"in t&&(r.json=t.json):r.json=n;var s=this.evaluate(r);if(!s||Ml(s)!=="object")throw new $3e(s);return s}}Ir.prototype.evaluate=function(t,e,n,i){var a=this,o=this.parent,r=this.parentProperty,s=this.flatten,c=this.wrap;if(this.currResultType=this.resultType,this.currPreventEval=this.preventEval,this.currSandbox=this.sandbox,n=n||this.callback,this.currOtherTypeCallback=i||this.otherTypeCallback,e=e||this.json,t=t||this.path,t&&Ml(t)==="object"&&!Array.isArray(t)){if(!t.path&&t.path!=="")throw new TypeError('You must supply a "path" property when providing an object argument to JSONPath.evaluate().');if(!Ra.call(t,"json"))throw new TypeError('You must supply a "json" property when providing an object argument to JSONPath.evaluate().');var l=t;e=l.json,s=Ra.call(t,"flatten")?t.flatten:s,this.currResultType=Ra.call(t,"resultType")?t.resultType:this.currResultType,this.currSandbox=Ra.call(t,"sandbox")?t.sandbox:this.currSandbox,c=Ra.call(t,"wrap")?t.wrap:c,this.currPreventEval=Ra.call(t,"preventEval")?t.preventEval:this.currPreventEval,n=Ra.call(t,"callback")?t.callback:n,this.currOtherTypeCallback=Ra.call(t,"otherTypeCallback")?t.otherTypeCallback:this.currOtherTypeCallback,o=Ra.call(t,"parent")?t.parent:o,r=Ra.call(t,"parentProperty")?t.parentProperty:r,t=t.path}if(o=o||null,r=r||null,Array.isArray(t)&&(t=Ir.toPathString(t)),!(!t&&t!==""||!e)){var u=Ir.toPathArray(t);u[0]==="$"&&u.length>1&&u.shift(),this._hasParentSelector=null;var f=this._trace(u,e,["$"],o,r,n).filter(function(h){return h&&!h.isParentSelector});return f.length?!c&&f.length===1&&!f[0].hasArrExpr?this._getPreferredOutput(f[0]):f.reduce(function(h,d){var m=a._getPreferredOutput(d);return s&&Array.isArray(m)?h=h.concat(m):h.push(m),h},[]):c?[]:void 0}};Ir.prototype._getPreferredOutput=function(t){var e=this.currResultType;switch(e){case"all":{var n=Array.isArray(t.path)?t.path:Ir.toPathArray(t.path);return t.pointer=Ir.toPointer(n),t.path=typeof t.path=="string"?t.path:Ir.toPathString(t.path),t}case"value":case"parent":case"parentProperty":return t[e];case"path":return Ir.toPathString(t[e]);case"pointer":return Ir.toPointer(t.path);default:throw new TypeError("Unknown result type")}};Ir.prototype._handleCallback=function(t,e,n){if(e){var i=this._getPreferredOutput(t);t.path=typeof t.path=="string"?t.path:Ir.toPathString(t.path),e(i,n,t)}};Ir.prototype._trace=function(t,e,n,i,a,o,r,s){var c=this,l;if(!t.length)return l={path:n,value:e,parent:i,parentProperty:a,hasArrExpr:r},this._handleCallback(l,o,"value"),l;var u=t[0],f=t.slice(1),h=[];function d(L){Array.isArray(L)?L.forEach(function(V){h.push(V)}):h.push(L)}if((typeof u!="string"||s)&&e&&Ra.call(e,u))d(this._trace(f,e[u],tv(n,u),e,u,o,r));else if(u==="*")this._walk(u,f,e,n,i,a,o,function(L,V,q,S,D,R,C,H){d(c._trace(gd(L,q),S,D,R,C,H,!0,!0))});else if(u==="..")d(this._trace(f,e,n,i,a,o,r)),this._walk(u,f,e,n,i,a,o,function(L,V,q,S,D,R,C,H){Ml(S[L])==="object"&&d(c._trace(gd(V,q),S[L],tv(D,L),S,L,H,!0))});else{if(u==="^")return this._hasParentSelector=!0,{path:n.slice(0,-1),expr:f,isParentSelector:!0};if(u==="~")return l={path:tv(n,u),value:a,parent:i,parentProperty:null},this._handleCallback(l,o,"property"),l;if(u==="$")d(this._trace(f,e,n,null,null,o,r));else if(/^(\x2D?[0-9]*):(\x2D?[0-9]*):?([0-9]*)$/.test(u))d(this._slice(u,f,e,n,i,a,o));else if(u.indexOf("?(")===0){if(this.currPreventEval)throw new Error("Eval [?(expr)] prevented in JSONPath expression.");this._walk(u,f,e,n,i,a,o,function(L,V,q,S,D,R,C,H){c._eval(V.replace(/^\?\(((?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*?)\)$/,"$1"),S[L],L,D,R,C)&&d(c._trace(gd(L,q),S,D,R,C,H,!0))})}else if(u[0]==="("){if(this.currPreventEval)throw new Error("Eval [(expr)] prevented in JSONPath expression.");d(this._trace(gd(this._eval(u,e,n[n.length-1],n.slice(0,-1),i,a),f),e,n,i,a,o,r))}else if(u[0]==="@"){var m=!1,g=u.slice(1,-2);switch(g){case"scalar":(!e||!["object","function"].includes(Ml(e)))&&(m=!0);break;case"boolean":case"string":case"undefined":case"function":Ml(e)===g&&(m=!0);break;case"integer":Number.isFinite(e)&&!(e%1)&&(m=!0);break;case"number":Number.isFinite(e)&&(m=!0);break;case"nonFinite":typeof e=="number"&&!Number.isFinite(e)&&(m=!0);break;case"object":e&&Ml(e)===g&&(m=!0);break;case"array":Array.isArray(e)&&(m=!0);break;case"other":m=this.currOtherTypeCallback(e,n,i,a);break;case"null":e===null&&(m=!0);break;default:throw new TypeError("Unknown value type "+g)}if(m)return l={path:n,value:e,parent:i,parentProperty:a},this._handleCallback(l,o,"value"),l}else if(u[0]==="`"&&e&&Ra.call(e,u.slice(1))){var b=u.slice(1);d(this._trace(f,e[b],tv(n,b),e,b,o,r,!0))}else if(u.includes(",")){var v=u.split(","),P=w3e(v),A;try{for(P.s();!(A=P.n()).done;){var _=A.value;d(this._trace(gd(_,f),e,n,i,a,o,!0))}}catch(L){P.e(L)}finally{P.f()}}else!s&&e&&Ra.call(e,u)&&d(this._trace(f,e[u],tv(n,u),e,u,o,r,!0))}if(this._hasParentSelector)for(var x=0;x-1?i.slice(0,c+1)+" return "+i.slice(c+1):" return "+i;return Yv(Function,a.concat([l])).apply(void 0,g3e(r))}}]),t}();Ir.prototype.vm={Script:S3e};const _3e=Object.freeze(Object.defineProperty({__proto__:null,JSONPath:Ir},Symbol.toStringTag,{value:"Module"})),x3e=Yl(_3e);Object.defineProperty(Y_,"__esModule",{value:!0});Y_.getLintTargets=void 0;const D3e=x3e,zw=ir,k3e=(t,e)=>{const n=[];if((0,zw.isObject)(t)&&typeof e=="string")if(e==="@key")for(const i of Object.keys(t))n.push({path:[i],value:i});else e.startsWith("$")?(0,D3e.JSONPath)({path:e,json:t,resultType:"all",callback(i){n.push({path:(0,zw.toPath)(i.path.slice(1)),value:i.value})}}):n.push({path:(0,zw.toPath)(e),value:(0,zw.get)(t,e)});else n.push({path:[],value:t});return n.length===0&&n.push({path:[],value:void 0}),n};Y_.getLintTargets=k3e;var J_={},Q_={},pR={};class O3e{add(e,n,i){if(typeof arguments[0]!="string")for(let a in arguments[0])this.add(a,arguments[0][a],arguments[1]);else(Array.isArray(e)?e:[e]).forEach(function(a){this[a]=this[a]||[],n&&this[a][i?"unshift":"push"](n)},this)}run(e,n){this[e]=this[e]||[],this[e].forEach(function(i){i.call(n&&n.context?n.context:n,n)})}}class E3e{constructor(e){this.jsep=e,this.registered={}}register(...e){e.forEach(n=>{if(typeof n!="object"||!n.name||!n.init)throw new Error("Invalid JSEP plugin format");this.registered[n.name]||(n.init(this.jsep),this.registered[n.name]=n)})}}class Ee{static get version(){return"1.3.9"}static toString(){return"JavaScript Expression Parser (JSEP) v"+Ee.version}static addUnaryOp(e){return Ee.max_unop_len=Math.max(e.length,Ee.max_unop_len),Ee.unary_ops[e]=1,Ee}static addBinaryOp(e,n,i){return Ee.max_binop_len=Math.max(e.length,Ee.max_binop_len),Ee.binary_ops[e]=n,i?Ee.right_associative.add(e):Ee.right_associative.delete(e),Ee}static addIdentifierChar(e){return Ee.additional_identifier_chars.add(e),Ee}static addLiteral(e,n){return Ee.literals[e]=n,Ee}static removeUnaryOp(e){return delete Ee.unary_ops[e],e.length===Ee.max_unop_len&&(Ee.max_unop_len=Ee.getMaxKeyLen(Ee.unary_ops)),Ee}static removeAllUnaryOps(){return Ee.unary_ops={},Ee.max_unop_len=0,Ee}static removeIdentifierChar(e){return Ee.additional_identifier_chars.delete(e),Ee}static removeBinaryOp(e){return delete Ee.binary_ops[e],e.length===Ee.max_binop_len&&(Ee.max_binop_len=Ee.getMaxKeyLen(Ee.binary_ops)),Ee.right_associative.delete(e),Ee}static removeAllBinaryOps(){return Ee.binary_ops={},Ee.max_binop_len=0,Ee}static removeLiteral(e){return delete Ee.literals[e],Ee}static removeAllLiterals(){return Ee.literals={},Ee}get char(){return this.expr.charAt(this.index)}get code(){return this.expr.charCodeAt(this.index)}constructor(e){this.expr=e,this.index=0}static parse(e){return new Ee(e).parse()}static getMaxKeyLen(e){return Math.max(0,...Object.keys(e).map(n=>n.length))}static isDecimalDigit(e){return e>=48&&e<=57}static binaryPrecedence(e){return Ee.binary_ops[e]||0}static isIdentifierStart(e){return e>=65&&e<=90||e>=97&&e<=122||e>=128&&!Ee.binary_ops[String.fromCharCode(e)]||Ee.additional_identifier_chars.has(String.fromCharCode(e))}static isIdentifierPart(e){return Ee.isIdentifierStart(e)||Ee.isDecimalDigit(e)}throwError(e){const n=new Error(e+" at character "+this.index);throw n.index=this.index,n.description=e,n}runHook(e,n){if(Ee.hooks[e]){const i={context:this,node:n};return Ee.hooks.run(e,i),i.node}return n}searchHook(e){if(Ee.hooks[e]){const n={context:this};return Ee.hooks[e].find(function(i){return i.call(n.context,n),n.node}),n.node}}gobbleSpaces(){let e=this.code;for(;e===Ee.SPACE_CODE||e===Ee.TAB_CODE||e===Ee.LF_CODE||e===Ee.CR_CODE;)e=this.expr.charCodeAt(++this.index);this.runHook("gobble-spaces")}parse(){this.runHook("before-all");const e=this.gobbleExpressions(),n=e.length===1?e[0]:{type:Ee.COMPOUND,body:e};return this.runHook("after-all",n)}gobbleExpressions(e){let n=[],i,a;for(;this.index0;){if(Ee.binary_ops.hasOwnProperty(e)&&(!Ee.isIdentifierStart(this.code)||this.index+e.lengtho.right_a&&f.right_a?i>f.prec:i<=f.prec;for(;a.length>2&&u(a[a.length-2]);)s=a.pop(),n=a.pop().value,r=a.pop(),e={type:Ee.BINARY_EXP,operator:n,left:r,right:s},a.push(e);e=this.gobbleToken(),e||this.throwError("Expected expression after "+l),a.push(o,e)}for(c=a.length-1,e=a[c];c>1;)e={type:Ee.BINARY_EXP,operator:a[c-1].value,left:a[c-2],right:e},c-=2;return e}gobbleToken(){let e,n,i,a;if(this.gobbleSpaces(),a=this.searchHook("gobble-token"),a)return this.runHook("after-token",a);if(e=this.code,Ee.isDecimalDigit(e)||e===Ee.PERIOD_CODE)return this.gobbleNumericLiteral();if(e===Ee.SQUOTE_CODE||e===Ee.DQUOTE_CODE)a=this.gobbleStringLiteral();else if(e===Ee.OBRACK_CODE)a=this.gobbleArray();else{for(n=this.expr.substr(this.index,Ee.max_unop_len),i=n.length;i>0;){if(Ee.unary_ops.hasOwnProperty(n)&&(!Ee.isIdentifierStart(this.code)||this.index+n.length=n.length&&this.throwError("Unexpected token "+String.fromCharCode(e));break}else if(o===Ee.COMMA_CODE){if(this.index++,a++,a!==n.length){if(e===Ee.CPAREN_CODE)this.throwError("Unexpected token ,");else if(e===Ee.CBRACK_CODE)for(let r=n.length;r":7,"<=":7,">=":7,"<<":8,">>":8,">>>":8,"+":9,"-":9,"*":10,"/":10,"%":10},right_associative:new Set,additional_identifier_chars:new Set(["$","_"]),literals:{true:!0,false:!1,null:null},this_str:"this"});Ee.max_unop_len=Ee.getMaxKeyLen(Ee.unary_ops);Ee.max_binop_len=Ee.getMaxKeyLen(Ee.binary_ops);const GP=t=>new Ee(t).parse(),C3e=Object.getOwnPropertyNames(class{});Object.getOwnPropertyNames(Ee).filter(t=>!C3e.includes(t)&&GP[t]===void 0).forEach(t=>{GP[t]=Ee[t]});GP.Jsep=Ee;const T3e="ConditionalExpression";var j3e={name:"ternary",init(t){t.hooks.add("after-expression",function(n){if(n.node&&this.code===t.QUMARK_CODE){this.index++;const i=n.node,a=this.gobbleExpression();if(a||this.throwError("Expected expression"),this.gobbleSpaces(),this.code===t.COLON_CODE){this.index++;const o=this.gobbleExpression();if(o||this.throwError("Expected expression"),n.node={type:T3e,test:i,consequent:a,alternate:o},i.operator&&t.binary_ops[i.operator]<=.9){let r=i;for(;r.right.operator&&t.binary_ops[r.right.operator]<=.9;)r=r.right;n.node.test=r.right,r.right=n.node,n.node=i}}else this.throwError("Expected :")}})}};GP.plugins.register(j3e);var cX=GP,hR={};Object.defineProperty(hR,"__esModule",{value:!0});function Hi(t,e){switch(t.type){case"Program":return M3e(t,e);case"ExpressionStatement":return Hi(t.expression,e);case"MemberExpression":return R3e(t,e);case"LogicalExpression":return U3e(t,e);case"ConditionalExpression":return q3e(t,e);case"BinaryExpression":return z3e(t,e);case"UnaryExpression":return F3e(t,e);case"CallExpression":return N3e(t,e);case"NewExpression":return L3e(t,e);case"ArrayExpression":return B3e(t,e);case"ThisExpression":return e;case"Identifier":return V3e(t.name,e);case"Literal":return t.value;default:throw SyntaxError("Unexpected node")}}function M3e(t,e){if(t.body.length!==1)throw SyntaxError("Too complex expression");return Hi(t.body[0],e)}function R3e(t,e){const n=Hi(t.object,e),i=t.property.type==="Identifier"?t.property.name:Hi(t.property,e);return typeof n[i]=="function"?n[i].bind(n):n[i]}function N3e(t,e){return Reflect.apply(Hi(t.callee,e),null,t.arguments.map(n=>Hi(n,e)))}function L3e(t,e){return Reflect.construct(Hi(t.callee,e),t.arguments.map(n=>Hi(n,e)))}function F3e(t,e){if(!t.prefix||t.argument.type==="UnaryExpression")throw SyntaxError("Unexpected operator");return Function("v",`return ${t.operator}v`)(Hi(t.argument,e))}function q3e(t,e){return Function("t, c, a","return t ? c : a")(Hi(t.test,e),Hi(t.consequent,e),Hi(t.alternate,e))}function z3e(t,e){return uX(t,e)}function U3e(t,e){return uX(t,e)}function B3e(t,e){return t.elements.map(n=>Hi(n,e))}function uX(t,e){return Function("lhs, rhs",`return lhs ${t.operator} rhs`)(Hi(t.left,e),Hi(t.right,e))}function V3e(t,e){if(e===void 0||!(t in e))throw ReferenceError(`${t} is not defined`);return Reflect.get(e,t,e)}hR.default=Hi;Object.defineProperty(pR,"__esModule",{value:!0});var W3e=cX,H3e=hR;function G3e(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}var K3e=G3e(W3e);function Y3e(t){try{return K3e.default(t)}catch(e){throw SyntaxError(e.message)}}var J3e=(t,e)=>{const n=typeof t=="object"?t:Y3e(t);return H3e.default(n,Object.freeze(e))};pR.default=J3e;Object.defineProperty(Q_,"__esModule",{value:!0});Q_.Replacer=void 0;const Q3e=vr,Z3e=(0,Q3e.__importDefault)(pR);class X3e{constructor(e){this.regex=new RegExp(`#?${"{".repeat(e)}([^} +]+)${"}".repeat(e)}`,"g"),this.functions={}}addFunction(e,n){this.functions[e]=n}print(e,n){return e.replace(this.regex,(i,a,o)=>e[o]==="#"?String((0,Z3e.default)(a,{...Object.entries(this.functions).reduce((s,[c,l])=>(s[c]=l.bind(n),s),{}),...n})):a in n?String(n[a]):"")}}Q_.Replacer=X3e;Object.defineProperty(J_,"__esModule",{value:!0});J_.message=void 0;const e4e=Ya,t4e=Q_,WC=new t4e.Replacer(2);WC.addFunction("print",function(t){if(typeof t!="string")return"";const{property:e,value:n}=this;switch(t){case"property":return e!==void 0&&e!==""?`"${e}" property `:"The document ";case"value":return(0,e4e.printValue)(n);default:return t in this&&this[t]!==null?String(this[t]):""}});J_.message=WC.print.bind(WC);(function(t){Object.defineProperty(t,"__esModule",{value:!0});const e=vr;(0,e.__exportStar)(Y_,t),(0,e.__exportStar)(J_,t)})(iX);Object.defineProperty(G_,"__esModule",{value:!0});G_.lintNode=void 0;const ad=Ya,fX=ir,r4e=u3e,n4e=Zg(),HC=iX,i4e=(t,e,n)=>{var i;const a=e.path.length>0&&e.path[0]==="$"?e.path.slice(1):e.path.slice(),o={document:t.documentInventory.document,documentInventory:t.documentInventory,rule:n,path:a};for(const r of n.then){const s=(0,HC.getLintTargets)(e.value,r.field);for(const c of s){c.path.length>0?o.path=[...a,...c.path]:o.path=a;let l;try{l=r.function(c.value,(i=r.functionOptions)!==null&&i!==void 0?i:null,o)}catch(u){throw new r4e.ErrorWithCause(`Function "${r.function.name}" threw an exception${(0,fX.isError)(u)?`: ${u.message}`:""}`,{cause:u})}if(l!==void 0)if("then"in l){const u={...o};t.promises.push(l.then(f=>f===void 0?void 0:uB(t,u,f)))}else uB(t,o,l)}}};G_.lintNode=i4e;function uB(t,e,n){var i,a,o,r,s;const{rule:c,path:l}=e;for(const u of n){const f=((i=u.path)!==null&&i!==void 0?i:l).map(ad.decodeSegmentFragment),h=t.documentInventory.findAssociatedItemForPath(f,c.resolved),d=(a=h==null?void 0:h.path)!==null&&a!==void 0?a:(0,ad.getClosestJsonPath)(t.documentInventory.resolved,f),m=h==null?void 0:h.document.source,g=(o=h==null?void 0:h.document)!==null&&o!==void 0?o:t.documentInventory.document,b=(r=g.getRangeForJsonPath(d,!0))!==null&&r!==void 0?r:n4e.Document.DEFAULT_RANGE,v=d.length===0?g.data:(0,fX.get)(g.data,d),P={property:(h==null?void 0:h.missingPropertyPath)!==void 0&&h.missingPropertyPath.length>d.length?(0,ad.printPath)(h.missingPropertyPath.slice(d.length-1),ad.PrintStyle.Dot):d.length>0?d[d.length-1]:"",error:u.message,path:(0,ad.printPath)(d,ad.PrintStyle.EscapedPointer),description:c.description,value:v},A=(0,HC.message)(u.message,P);P.error=A;const _=m!=null?c.getSeverityForSource(m,d):c.severity;_!==-1&&t.results.push({code:c.name,message:(c.message===null?(s=c.description)!==null&&s!==void 0?s:A:(0,HC.message)(c.message,P)).trim(),path:d,severity:_,...m!==null?{source:m}:null,range:b})}}var dR={},pX={},$s={};Object.defineProperty($s,"__esModule",{value:!0});function a4e(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function s4e(t,e){var n=mR(t,e,"get");return hX(t,n)}function o4e(t,e,n){var i=mR(t,e,"set");return dX(t,i,n),n}function mR(t,e,n){if(!e.has(t))throw new TypeError("attempted to "+n+" private field on non-instance");return e.get(t)}function hX(t,e){return e.get?e.get.call(t):e.value}function dX(t,e,n){if(e.set)e.set.call(t,n);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=n}}$s.classApplyDescriptorGet=hX;$s.classApplyDescriptorSet=dX;$s.classExtractFieldDescriptor=mR;$s.classPrivateFieldGet=s4e;$s.classPrivateFieldSet=o4e;$s.defineProperty=a4e;var mX={},xt={};Object.defineProperty(xt,"__esModule",{value:!0});function l4e(t){return{type:"Program",body:t}}function c4e(t,e){return{type:"BlockStatement",body:t,directives:e}}function u4e(t){return{type:"ExpressionStatement",expression:t}}function f4e(t){switch(typeof t){case"number":return gX(t);case"string":return vS(t);case"boolean":return yX(t)}}function vS(t){return{type:"StringLiteral",value:t}}function yX(t){return{type:"BooleanLiteral",value:t}}function gX(t){return{type:"NumericLiteral",value:t}}function p4e(){return{type:"NullLiteral",value:null}}function h4e(t,e=""){return{type:"RegExpLiteral",pattern:t,flags:e}}function vX(t){return{type:"Identifier",name:t}}function d4e(t,e,n){return{type:"LogicalExpression",operator:t,left:e,right:n}}function m4e(t,e,n){return{type:"ConditionalExpression",test:t,consequent:e,alternate:n}}function y4e(t,e,n){return{type:"IfStatement",test:t,consequent:e,alternate:n}}function g4e(t,e,n){return{type:"BinaryExpression",operator:t,left:e,right:n}}function v4e(t,e,n){let i=n;return(n.type==="NumericLiteral"||n.type==="StringLiteral"&&Number.isSafeInteger(Number(n.value)))&&(i=vS(String(n.value))),{type:"BinaryExpression",operator:t,left:i===n?e:PX(vX("String"),[e]),right:i}}function P4e(t,e,n=!0){return{type:"UnaryExpression",operator:t,argument:e,prefix:n}}function b4e(t,e,n=!1,i=null){return{type:"MemberExpression",object:t,property:e,computed:n,optional:i}}function w4e(t,e,n){return{type:"AssignmentExpression",operator:t,left:e,right:n}}function PX(t,e){return{type:"CallExpression",callee:t,arguments:e}}function $4e(t,e,n){return{type:"FunctionDeclaration",id:t,params:e,body:n}}function A4e(t){return{type:"ReturnStatement",argument:t}}function S4e(t){return{type:"SequenceExpression",expressions:t}}function _4e(t,e,n,i){return{type:"ForOfStatement",left:t,right:e,body:n,await:i}}function x4e(t){return{type:"ArrayExpression",elements:t}}function D4e(t){return{type:"ObjectExpression",properties:t}}function k4e(t,e,n,i,a=!1,o=!1,r=!1){return{type:"ObjectMethod",kind:t,key:e,params:n,body:i,computed:a,generator:o,async:r}}function O4e(t,e,n=!1,i=!1,a=null){return{type:"ObjectProperty",key:t,value:e,computed:n,shorthand:i,decorators:a}}function E4e(t,e){return{type:"VariableDeclaration",kind:t,declarations:e}}function I4e(t,e){return{type:"VariableDeclarator",id:t,init:e}}function C4e(t,e){return{type:"NewExpression",callee:t,arguments:e}}function T4e(t,e){return{type:"ImportDeclaration",specifiers:t,source:e}}function j4e(t,e){return{type:"ImportSpecifier",local:t,imported:e}}function M4e(t){return{type:"ExportDefaultDeclaration",declaration:t}}function R4e(t,e,n=!1){return{type:"ArrowFunctionExpression",params:t,body:e,async:n}}function N4e(t,e=null,n=null){return{type:"TryStatement",block:t,handler:e,finalizer:n}}function L4e(t,e=!1){return{type:"TemplateElement",value:t,tail:e}}function F4e(t,e){return{type:"TemplateLiteral",quasis:t,expressions:e}}xt.arrayExpression=x4e;xt.arrowFunctionExpression=R4e;xt.assignmentExpression=w4e;xt.binaryExpression=g4e;xt.blockStatement=c4e;xt.booleanLiteral=yX;xt.callExpression=PX;xt.conditionalExpression=m4e;xt.exportDefaultDeclaration=M4e;xt.expressionStatement=u4e;xt.forOfStatement=_4e;xt.functionDeclaration=$4e;xt.identifier=vX;xt.ifStatement=y4e;xt.importDeclaration=T4e;xt.importSpecifier=j4e;xt.literal=f4e;xt.logicalExpression=d4e;xt.memberExpression=b4e;xt.newExpression=C4e;xt.nullLiteral=p4e;xt.numericLiteral=gX;xt.objectExpression=D4e;xt.objectMethod=k4e;xt.objectProperty=O4e;xt.program=l4e;xt.regExpLiteral=h4e;xt.returnStatement=A4e;xt.safeBinaryExpression=v4e;xt.sequenceExpression=S4e;xt.stringLiteral=vS;xt.templateElement=L4e;xt.templateLiteral=F4e;xt.tryStatement=N4e;xt.unaryExpression=P4e;xt.variableDeclaration=E4e;xt.variableDeclarator=I4e;var bX={},wX={},du={},As={};(function(t){Object.defineProperty(t,"__esModule",{value:!0});var e=xt;const n=e.identifier("scope");var i={_:n,bail:e.memberExpression(n,e.identifier("bail")),callbacks:e.memberExpression(n,e.identifier("callbacks")),depth:e.memberExpression(n,e.identifier("depth")),destroy:e.memberExpression(n,e.identifier("destroy")),emit:e.memberExpression(n,e.identifier("emit")),fork:e.memberExpression(n,e.identifier("fork")),path:e.memberExpression(n,e.identifier("path")),property:e.memberExpression(n,e.identifier("property")),sandbox:e.memberExpression(n,e.identifier("sandbox")),traverse:e.memberExpression(n,e.identifier("traverse")),value:e.memberExpression(n,e.identifier("value"))};t.default=i})(As);(function(t){Object.defineProperty(t,"__esModule",{value:!0});var e=xt,n=As;function i(a,{parents:o,keyed:r}){return e.expressionStatement(e.callExpression(n.default.emit,[e.stringLiteral(a),e.numericLiteral(o),e.booleanLiteral(r)]))}t.default=i})(du);var Z_={};(function(t){Object.defineProperty(t,"__esModule",{value:!0});var e=xt,n=As,i={at:e.memberExpression(n.default.sandbox,e.identifier("at")),index:e.memberExpression(n.default.sandbox,e.identifier("index")),parent:e.memberExpression(n.default.sandbox,e.identifier("parent")),parentProperty:e.memberExpression(n.default.sandbox,e.identifier("parentProperty")),parentValue:e.memberExpression(n.default.sandbox,e.identifier("parentValue")),path:e.memberExpression(n.default.sandbox,e.identifier("path")),property:e.memberExpression(n.default.sandbox,e.identifier("property")),root:e.memberExpression(n.default.sandbox,e.identifier("root")),value:e.memberExpression(n.default.sandbox,e.identifier("value"))};t.default=i})(Z_);(function(t){Object.defineProperty(t,"__esModule",{value:!0});var e=xt,n=du,i=Z_;const a=e.identifier("isObject"),o=e.ifStatement(e.unaryExpression("!",e.callExpression(a,[i.default.value])),e.returnStatement()),r=n.default("$..",{keyed:!1,parents:0});var s=(c,l,u)=>c.length!==1||c[0].type!=="AllParentExpression"?!1:(l.addRuntimeDependency(a.name),l.push(e.blockStatement([o,n.default(u.id,u.iterator.modifiers)]),"tree-method"),l.push(e.stringLiteral(u.id),"traverse"),l.push(r,"body"),!0);t.default=s})(wX);var $X={},Ss={};Object.defineProperty(Ss,"__esModule",{value:!0});function q4e(t){return t.type==="MemberExpression"}function z4e(t){return t.type==="ScriptFilterExpression"}function U4e(t){return t.type==="KeyExpression"||t.type==="ParentExpression"}function B4e(t){return t.type==="WildcardExpression"}function V4e(t){return t.deep}Ss.isDeep=V4e;Ss.isMemberExpression=q4e;Ss.isModifierExpression=U4e;Ss.isScriptFilterExpression=z4e;Ss.isWildcardExpression=B4e;(function(t){Object.defineProperty(t,"__esModule",{value:!0});var e=xt,n=Ss,i=du,a=As,o=(r,s,c)=>r.length!==1||!n.isDeep(r[0])||!n.isMemberExpression(r[0])?!1:(s.push(e.blockStatement([e.ifStatement(e.safeBinaryExpression("!==",a.default.property,e.stringLiteral(r[0].value)),e.returnStatement()),i.default(c.id,c.iterator.modifiers)]),"tree-method"),s.push(e.stringLiteral(c.id),"traverse"),!0);t.default=o})($X);var AX={};(function(t){Object.defineProperty(t,"__esModule",{value:!0});var e=xt,n=Ss,i=du,a=(o,r,s)=>o.length!==1||!n.isWildcardExpression(o[0])||!n.isDeep(o[0])?!1:(r.push(e.blockStatement([i.default(s.id,s.iterator.modifiers)]),"tree-method"),r.push(e.stringLiteral(s.id),"traverse"),!0);t.default=a})(AX);var SX={},yR={},X_={};(function(t){Object.defineProperty(t,"__esModule",{value:!0});var e=As,n=[e.default._];t.default=n})(X_);var Xg={};(function(t){Object.defineProperty(t,"__esModule",{value:!0});var e=xt,n={pos:e.identifier("pos"),shorthands:e.identifier("shorthands"),tree:e.identifier("tree")};t.default=n})(Xg);(function(t){Object.defineProperty(t,"__esModule",{value:!0});var e=xt,n=X_,i=Xg;function a(o){const r=e.stringLiteral(o);return e.expressionStatement(e.callExpression(e.memberExpression(i.default.tree,r,!0),n.default))}t.default=a})(yR);(function(t){Object.defineProperty(t,"__esModule",{value:!0});var e=xt,n=Ss,i=du,a=Z_,o=As,r=yR;const s=e.identifier("value"),c=e.identifier("isObject"),l=e.identifier("get"),u=e.ifStatement(e.unaryExpression("!",e.callExpression(c,[s])),e.returnStatement()),f=e.ifStatement(e.binaryExpression("===",o.default._,e.nullLiteral()),e.returnStatement());function h(m){return e.literal(m.value)}var d=(m,g,b)=>{if(!m.every(n.isMemberExpression)||m.some(n.isDeep))return!1;const v=e.variableDeclaration("const",[e.variableDeclarator(s,m.slice(0,-1).reduce((P,A)=>g.format==="ES2018"?(P.arguments[1].elements.push(e.literal(A.value)),P):e.memberExpression(P,e.literal(A.value),!0,!0),g.format==="ES2018"&&m.length>0?e.callExpression(e.identifier("get"),[a.default.root,e.arrayExpression([])]):a.default.root))]);return g.addRuntimeDependency(c.name),g.format==="ES2018"&&g.addRuntimeDependency(l.name),g.pushAll([[e.blockStatement([v,u,e.expressionStatement(e.assignmentExpression("=",o.default._,e.callExpression(o.default.fork,[e.arrayExpression(m.map(h))]))),f,i.default(b.id,b.iterator.modifiers)]),"tree-method"],[r.default(b.id),"body"]]),!0};t.default=d})(SX);var _X={},ex={};const fB=47,W4e=92;var H4e={name:"regex",init(t){t.hooks.add("gobble-token",function(n){if(this.code===fB){const i=++this.index;let a=!1;for(;this.index=97&&c<=122||c>=65&&c<=90||c>=48&&c<=57)r+=this.char;else break}let s;try{s=new RegExp(o,r)}catch(c){this.throwError(c.message)}return n.node={type:t.LITERAL,value:s,raw:this.expr.slice(i-1,this.index)},n.node=this.gobbleTokenProperty(n.node),n.node}this.code===t.OBRACK_CODE?a=!0:a&&this.code===t.CBRACK_CODE&&(a=!1),this.index+=this.code===W4e?2:1}this.throwError("Unclosed Regex")}})}};const G4e=Object.freeze(Object.defineProperty({__proto__:null,default:H4e},Symbol.toStringTag,{value:"Module"})),K4e=Yl(G4e),Y4e="ConditionalExpression";var J4e={name:"ternary",init(t){t.hooks.add("after-expression",function(n){if(n.node&&this.code===t.QUMARK_CODE){this.index++;const i=n.node,a=this.gobbleExpression();if(a||this.throwError("Expected expression"),this.gobbleSpaces(),this.code===t.COLON_CODE){this.index++;const o=this.gobbleExpression();if(o||this.throwError("Expected expression"),n.node={type:Y4e,test:i,consequent:a,alternate:o},i.operator&&t.binary_ops[i.operator]<=.9){let r=i;for(;r.right.operator&&t.binary_ops[r.right.operator]<=.9;)r=r.right;n.node.test=r.right,r.right=n.node,n.node=i}}else this.throwError("Expected :")}})}};const Q4e=Object.freeze(Object.defineProperty({__proto__:null,default:J4e},Symbol.toStringTag,{value:"Module"})),Z4e=Yl(Q4e);(function(t){Object.defineProperty(t,"__esModule",{value:!0});var e=K4e,n=Z4e,i=cX;function a(l){return l&&typeof l=="object"&&"default"in l?l:{default:l}}var o=a(e),r=a(n),s=a(i);s.default.addIdentifierChar("@"),s.default.addUnaryOp("void"),s.default.addBinaryOp("in",12),s.default.addBinaryOp("~=",20),s.default.plugins.register(o.default,r.default);var c=l=>s.default.parse(l);t.default=c})(ex);var mu={};Object.defineProperty(mu,"__esModule",{value:!0});var X4e=ex,Me=xt,$i=Xg,Qn=Z_,xn=As;function GC(t,{deep:e,value:n}){if(t.feedback.bailed)return Me.safeBinaryExpression("!==",xn.default.property,Me.literal(n));if(t.state.inverted)return Me.safeBinaryExpression("!==",t.state.pos===0?xn.default.property:Me.memberExpression(xn.default.path,Me.binaryExpression("-",xn.default.depth,Me.numericLiteral(Math.abs(t.state.pos))),!0),Me.literal(n));if(e){var i;const r=t.nextNode===null||t.nextNode==="KeyExpression";(i=t.feedback).mutatesPos||(i.mutatesPos=!r);const s=Me.sequenceExpression([Me.assignmentExpression("=",$i.default.pos,r?Me.conditionalExpression(Me.safeBinaryExpression("!==",xn.default.property,Me.literal(n)),Me.numericLiteral(-1),xn.default.depth):Me.callExpression(Me.memberExpression(xn.default.path,Me.identifier("indexOf")),[Me.literal(n),t.state.pos===0?$i.default.pos:Me.binaryExpression("+",$i.default.pos,Me.numericLiteral(1))])),Me.binaryExpression("===",$i.default.pos,Me.numericLiteral(-1))]);return r?Me.logicalExpression("||",Me.binaryExpression("<",xn.default.depth,t.state.pos===0?$i.default.pos:Me.binaryExpression("+",$i.default.pos,Me.numericLiteral(t.state.pos))),s):s}let a;!t.feedback.fixed&&t.state.absolutePos!==0&&(a=Me.binaryExpression("<",xn.default.depth,t.state.pos===0?$i.default.pos:Me.binaryExpression("+",$i.default.pos,Me.numericLiteral(t.state.pos))));const o=Me.safeBinaryExpression("!==",Me.memberExpression(xn.default.path,t.state.pos===0?Me.numericLiteral(0):t.feedback.fixed?Me.numericLiteral(t.state.pos):Me.binaryExpression("+",$i.default.pos,Me.numericLiteral(t.state.pos)),!0),Me.literal(n));return a!==void 0?Me.logicalExpression("||",a,o):o}function e9e(t,e){return e.value.slice(1).reduce((n,i)=>Me.logicalExpression("&&",n,GC(t,{type:"MemberExpression",value:i,deep:e.deep})),GC(t,{type:"MemberExpression",value:e.value[0],deep:e.deep}))}const pB=Me.identifier("inBounds");function t9e(t,e,n){const i=t.state.inverted?Me.binaryExpression("-",xn.default.depth,Me.numericLiteral(t.state.pos)):t.state.pos===0?Me.numericLiteral(0):t.feedback.fixed?Me.numericLiteral(t.state.pos):Me.binaryExpression("+",$i.default.pos,Me.numericLiteral(t.state.pos)),a=t.feedback.bailed?xn.default.property:Me.memberExpression(xn.default.path,i,!0),o=Me.binaryExpression("!==",Me.unaryExpression("typeof",a),Me.stringLiteral("number"));return e.value.some(s=>Number.isFinite(s)&&s<0)?(n.addRuntimeDependency(pB.name),Me.binaryExpression("||",o,Me.unaryExpression("!",Me.callExpression(pB,[t.state.absolutePos===0?qi(Qn.default.value,t.state.absolutePos-2):qi(Qn.default.value,t.state.absolutePos),Me.memberExpression(xn.default.path,t.feedback.bailed?Me.binaryExpression("-",Me.memberExpression(xn.default.path,Me.identifier("length")),Me.numericLiteral(1)):i,!0),...e.value.map(s=>Me.numericLiteral(s))])))):e.value.reduce((s,c,l)=>{if(l===0&&c===0||l===1&&!Number.isFinite(c)||l===2&&c===1)return s;const u=l===0?"<":l===1?">=":"%",f=Me.binaryExpression(u,a,Me.numericLiteral(Number(c)));return Me.logicalExpression("||",s,u==="%"?Me.logicalExpression("&&",Me.binaryExpression("!==",a,Me.numericLiteral(e.value[0])),Me.binaryExpression("!==",f,Me.numericLiteral(e.value[0]))):f)},o)}function r9e(t){return t.feedback.bailed?Me.booleanLiteral(!1):t.nextNode===null&&!t.feedback.fixed?Me.sequenceExpression([Me.assignmentExpression("=",$i.default.pos,Me.conditionalExpression(Me.binaryExpression("<",xn.default.depth,Me.numericLiteral(t.state.pos)),Me.numericLiteral(-1),xn.default.depth)),Me.binaryExpression("===",$i.default.pos,Me.numericLiteral(-1))]):null}function n9e(t,{deep:e,value:n},i){var a;const o=X4e.default(n);pp(o);const r=Me.unaryExpression("!",Lo(i,o,t.state.fixed&&t.state.pos>0&&t.nextNode!==null?t.state.pos+1:t.state.inverted&&t.state.pos!==0?t.state.pos-1:0));if(t.feedback.bailed||!e||t.state.inverted)return r;(a=t.feedback).mutatesPos||(a.mutatesPos=t.nextNode!==null&&t.nextNode!=="KeyExpression");const s=Me.sequenceExpression([Me.assignmentExpression("=",$i.default.pos,Me.conditionalExpression(r,Me.numericLiteral(-1),xn.default.depth)),Me.binaryExpression("===",$i.default.pos,Me.numericLiteral(-1))]);return t.state.pos===0?s:Me.logicalExpression("||",Me.binaryExpression("<",xn.default.depth,t.state.pos===0?$i.default.pos:Me.binaryExpression("+",$i.default.pos,Me.numericLiteral(t.state.pos))),s)}function Lo(t,e,n){switch(e.type){case"LogicalExpression":case"BinaryExpression":if(e.operator==="in")e.operator="===",e.left=Me.callExpression(Me.memberExpression(e.right,Me.identifier("includes")),[Lo(t,e.left,n)]),e.right=Me.booleanLiteral(!0);else if(e.operator==="~="){if(e.operator="===",e.right.type!=="Literal")throw SyntaxError("Expected string");e.left=Me.callExpression(Me.memberExpression(Me.regExpLiteral(e.right.value,""),Me.identifier("test")),[Lo(t,e.left,n)]),e.right=Me.booleanLiteral(!0)}else e.left=Lo(t,e.left,n),e.right=Lo(t,e.right,n),pp(e.left),pp(e.right);break;case"UnaryExpression":return e.argument=Lo(t,e.argument,n),pp(e.argument),e;case"MemberExpression":e.object=Lo(t,e.object,n),pp(e.object),e.property=Lo(t,e.property,n),e.computed&&pp(e.property);break;case"CallExpression":if(e.callee.type==="Identifier"&&e.callee.name.startsWith("@"))return hB(t,e.callee.name,n);e.callee=Lo(t,e.callee,n),e.arguments=e.arguments.map(i=>Lo(t,i,n)),e.callee.type==="MemberExpression"&&e.callee.object===Qn.default.property&&e.callee.property.name in String.prototype&&(e.callee.object=Me.callExpression(Me.identifier("String"),[e.callee.object])),pp(e.callee);break;case"Identifier":if(e.name.startsWith("@"))return hB(t,e.name,n);if(e.name==="undefined")return Me.unaryExpression("void",Me.numericLiteral(0));if(e.name==="index")return Qn.default.index;break}return e}function hB(t,e,n){switch(e){case"@":return qi(Qn.default.value,n);case"@root":return qi(Qn.default.root,n);case"@path":return qi(Qn.default.path,n);case"@property":return qi(Qn.default.property,n);case"@parent":return qi(Qn.default.parentValue,n);case"@parentProperty":return qi(Qn.default.parentProperty,n);case"@string":case"@number":case"@boolean":return Me.binaryExpression("===",Me.unaryExpression("typeof",qi(Qn.default.value,n)),Me.stringLiteral(e.slice(1)));case"@scalar":return Me.logicalExpression("||",Me.binaryExpression("===",qi(Qn.default.value,n),Me.nullLiteral()),Me.binaryExpression("!==",Me.unaryExpression("typeof",qi(Qn.default.value,n)),Me.stringLiteral("object")));case"@array":return Me.callExpression(Me.memberExpression(Me.identifier("Array"),Me.identifier("isArray")),[qi(Qn.default.value,n)]);case"@null":return Me.binaryExpression("===",qi(Qn.default.value,n),Me.nullLiteral());case"@object":return Me.logicalExpression("&&",Me.binaryExpression("!==",qi(Qn.default.value,n),Me.nullLiteral()),Me.binaryExpression("===",Me.unaryExpression("typeof",qi(Qn.default.value,n)),Me.stringLiteral("object")));case"@integer":return Me.callExpression(Me.memberExpression(Me.identifier("Number"),Me.identifier("isInteger")),[qi(Qn.default.value,n)]);default:if(e.startsWith("@@")){const i=e.slice(2);return t.attachCustomShorthand(i),Me.callExpression(Me.memberExpression($i.default.shorthands,Me.identifier(i)),[xn.default._])}throw new SyntaxError(`Unsupported shorthand '${e}'`)}}const i9e=[xn.default._.name,"index"];function pp(t){if(t.type==="Identifier"&&!i9e.includes(t.name))throw ReferenceError(`'${t.name}' is not defined`)}function qi(t,e){return t.type==="MemberExpression"&&e!==0?{...t,object:Me.callExpression(Qn.default.at,[Me.numericLiteral(e)])}:t}mu.generateFilterScriptExpression=n9e;mu.generateMemberExpression=GC;mu.generateMultipleMemberExpression=e9e;mu.generateSliceExpression=t9e;mu.generateWildcardExpression=r9e;mu.rewriteESTree=Lo;(function(t){Object.defineProperty(t,"__esModule",{value:!0});var e=ex,n=xt,i=mu,a=Ss,o=du,r=As;const s=n.ifStatement(n.binaryExpression("!==",r.default.depth,n.numericLiteral(0)),n.returnStatement());var c=(l,u,f)=>{if(l.length!==1||!a.isScriptFilterExpression(l[0]))return!1;const h=n.unaryExpression("!",i.rewriteESTree(u,e.default(l[0].value),0),!0);if(u.pushAll([[n.blockStatement([...a.isDeep(l[0])?[]:[s],n.ifStatement(h,n.returnStatement()),o.default(f.id,f.iterator.modifiers)]),"tree-method"],[n.stringLiteral(f.id),"traverse"]]),!a.isDeep(l[0])){var d;(d=u.traversalZones.create())===null||d===void 0||d.resize().attach()}return!0};t.default=c})(_X);var xX={};(function(t){Object.defineProperty(t,"__esModule",{value:!0});var e=du;const n=e.default("$",{keyed:!1,parents:0});var i=(a,o)=>a.length>0?!1:(o.push(n,"body"),!0);t.default=i})(xX);var DX={};(function(t){Object.defineProperty(t,"__esModule",{value:!0});var e=xt,n=Ss,i=du,a=As;const o=e.ifStatement(e.binaryExpression("!==",a.default.depth,e.numericLiteral(0)),e.returnStatement());var r=(s,c,l)=>{var u;return s.length!==1||!n.isWildcardExpression(s[0])||n.isDeep(s[0])?!1:(c.push(e.blockStatement([o,i.default(l.id,l.iterator.modifiers)]),"tree-method"),c.push(e.stringLiteral(l.id),"traverse"),(u=c.traversalZones.create())===null||u===void 0||u.resize().attach(),!0)};t.default=r})(DX);(function(t){Object.defineProperty(t,"__esModule",{value:!0});var e=wX,n=$X,i=AX,a=SX,o=_X,r=xX,s=DX,c=[r.default,o.default,n.default,i.default,s.default,a.default,e.default];t.default=c})(bX);var gR={};(function(t){Object.defineProperty(t,"__esModule",{value:!0});var e=$s,n=Ss;let i;function a(s){let c=!1;for(let l=0;l1}else c=!0}}return!1}var o=new WeakMap;i=Symbol.iterator;class r{constructor(c){e.defineProperty(this,"nodes",void 0),o.set(this,{writable:!0,value:void 0}),this.modifiers=r.trim(c),this.nodes=r.compact(c),e.classPrivateFieldSet(this,o,-1),this.feedback=r.analyze(this.nodes,this.modifiers.keyed||this.modifiers.parents>0),this.length=this.nodes.length,this.state={absolutePos:-1,fixed:!0,inverted:!1,pos:-1},this.feedback.fixed&&this.modifiers.parents>this.length&&(this.length=-1)}get nextNode(){return e.classPrivateFieldGet(this,o)+10&&n.isModifierExpression(c[c.length-1]);)switch(c.pop().type){case"KeyExpression":l.keyed=!0,l.parents=0;break;case"ParentExpression":l.parents++;break}return l}static analyze(c){const l={bailed:a(c),fixed:!0,inverseAt:-1};if(l.bailed)return l.fixed=!1,l;let u=-1;for(let f=0;f1&&u!==-1&&u":9,"<=":9,">=":9,in:9,instanceof:9,"<<":10,">>":10,">>>":10,"+":11,"-":11,"*":12,"%":12,"/":12,"**":13},Hs=17;Yo.NEEDS_PARENTHESES=Hs;var IX={ArrayExpression:20,TaggedTemplateExpression:20,ThisExpression:20,Identifier:20,PrivateIdentifier:20,Literal:18,TemplateLiteral:20,Super:20,SequenceExpression:20,MemberExpression:19,ChainExpression:19,CallExpression:19,NewExpression:19,ArrowFunctionExpression:Hs,ClassExpression:Hs,FunctionExpression:Hs,ObjectExpression:Hs,UpdateExpression:16,UnaryExpression:15,AwaitExpression:15,BinaryExpression:14,LogicalExpression:13,ConditionalExpression:4,AssignmentExpression:3,YieldExpression:2,RestElement:1};Yo.EXPRESSIONS_PRECEDENCE=IX;function sd(t,e){var n=t.generator;if(t.write("("),e!=null&&e.length>0){n[e[0].type](e[0],t);for(var i=e.length,a=1;a0){t.write(i);for(var r=1;r0){n.VariableDeclarator(i[0],t);for(var o=1;o0){n.write(a),o&&e.comments!=null&&ra(n,e.comments,r,a);for(var c=s.length,l=0;l0){for(;r0&&n.write(", ");var s=i[r],c=s.type[6];if(c==="D")n.write(s.local.name,s),r++;else if(c==="N")n.write("* as "+s.local.name,s),r++;else break}if(r0){n.write(" with { ");for(var f=0;f0)for(var o=0;;){var r=i[o],s=r.local.name;if(n.write(s,r),s!==r.exported.name&&n.write(" as "+r.exported.name),++o0){n.write(" with { ");for(var c=0;c0){n.write(" with { ");for(var i=0;i "),e.body.type[0]==="O"?(n.write("("),this.ObjectExpression(e.body,n),n.write(")")):this[e.body.type](e.body,n)},ThisExpression:function(e,n){n.write("this",e)},Super:function(e,n){n.write("super",e)},RestElement:yB=function(e,n){n.write("..."),this[e.argument.type](e.argument,n)},SpreadElement:yB,YieldExpression:function(e,n){n.write(e.delegate?"yield*":"yield"),e.argument&&(n.write(" "),this[e.argument.type](e.argument,n))},AwaitExpression:function(e,n){n.write("await ",e),Bw(n,e.argument,e)},TemplateLiteral:function(e,n){var i=e.quasis,a=e.expressions;n.write("`");for(var o=a.length,r=0;r0)for(var i=e.elements,a=i.length,o=0;;){var r=i[o];if(r!=null&&this[r.type](r,n),++o0){n.write(a),o&&e.comments!=null&&ra(n,e.comments,r,a);for(var s=","+a,c=e.properties,l=c.length,u=0;;){var f=c[u];if(o&&f.comments!=null&&ra(n,f.comments,r,a),n.write(r),this[f.type](f,n),++u0)for(var i=e.properties,a=i.length,o=0;this[i[o].type](i[o],n),++o1||o[0]==="U"&&(o[1]==="n"||o[1]==="p")&&a.prefix&&a.operator[0]===i&&(i==="+"||i==="-"))&&n.write(" "),r?(n.write(i.length>1?" (":"("),this[o](a,n),n.write(")")):this[o](a,n)}else this[e.argument.type](e.argument,n),n.write(e.operator)},UpdateExpression:function(e,n){e.prefix?(n.write(e.operator),this[e.argument.type](e.argument,n)):(this[e.argument.type](e.argument,n),n.write(e.operator))},AssignmentExpression:function(e,n){this[e.left.type](e.left,n),n.write(" "+e.operator+" "),this[e.right.type](e.right,n)},AssignmentPattern:function(e,n){this[e.left.type](e.left,n),n.write(" = "),this[e.right.type](e.right,n)},BinaryExpression:gB=function(e,n){var i=e.operator==="in";i&&n.write("("),Bw(n,e.left,e,!1),n.write(" "+e.operator+" "),Bw(n,e.right,e,!0),i&&n.write(")")},LogicalExpression:gB,ConditionalExpression:function(e,n){var i=e.test,a=n.expressionsPrecedence[i.type];a===Hs||a<=n.expressionsPrecedence.ConditionalExpression?(n.write("("),this[i.type](i,n),n.write(")")):this[i.type](i,n),n.write(" ? "),this[e.consequent.type](e.consequent,n),n.write(" : "),this[e.alternate.type](e.alternate,n)},NewExpression:function(e,n){n.write("new ");var i=n.expressionsPrecedence[e.callee.type];i===Hs||i0&&(this.lineEndSize>0&&(f.length===1?n[u-1]===f:n.endsWith(f))?(this.line+=this.lineEndSize,this.column=0):this.column+=u)}},{key:"toString",value:function(){return this.output}}]),t}();function d9e(t,e){var n=new h9e(e);return n.generator[t.type](t,n),n.output}(function(t){Object.defineProperty(t,"__esModule",{value:!0});var e=Yo;function n(r){if(r&&r.__esModule)return r;var s=Object.create(null);return r&&Object.keys(r).forEach(function(c){if(c!=="default"){var l=Object.getOwnPropertyDescriptor(r,c);Object.defineProperty(s,c,l.get?l:{enumerable:!0,get:function(){return r[c]}})}}),s.default=r,Object.freeze(s)}var i=n(e);const a={...i.baseGenerator,BooleanLiteral(r,s){s.write(`${r.value}`,r)},NullLiteral(r,s){s.write("null",r)},NumericLiteral(r,s){s.write(r.value,r)},ObjectMethod(r,s){const{key:c,type:l,...u}=r;return this.ObjectProperty({key:r.key,value:{type:"FunctionExpression",...u}},s)},ObjectProperty(r,s){return this.Property({...r,kind:"init"},s)},RegExpLiteral(r,s){s.write(`/${r.pattern}/${r.flags}`,r)},StringLiteral(r,s){s.write(JSON.stringify(r.value),r)}};function o(r){return i.generate(r,{generator:a})}t.default=o})(EX);var TX={};(function(t){Object.defineProperty(t,"__esModule",{value:!0});var e=xt,n=As;function i(a,o){const r=e.identifier("path");return e.forOfStatement(e.variableDeclaration("const",[e.variableDeclarator(r)]),e.arrayExpression(o.map(e.stringLiteral)),e.blockStatement([e.callExpression(a,[e.identifier("input"),r,e.memberExpression(n.default.callbacks,r,!0)])]))}t.default=i})(TX);var jX={},Ch={};(function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(n){return typeof n=="object"&&n!==null}t.default=e})(Ch);var PR={};(function(t){Object.defineProperty(t,"__esModule",{value:!0});var e=Ch,n;function i(o){return e.default(o)&&typeof o[Symbol.iterator]=="function"}var a=(n=globalThis.AggregateError)!==null&&n!==void 0?n:class extends Error{constructor(r,s=""){if(super(s),!Array.isArray(r)&&!i(r))throw new TypeError(`${r} is not an iterable`);this.errors=[...r]}};t.default=a})(PR);var MX={};(function(t){Object.defineProperty(t,"__esModule",{value:!0});var e=xt;function n(i){switch(typeof i){case"boolean":return e.booleanLiteral(i);case"string":return e.stringLiteral(i);case"number":return e.numericLiteral(i);case"object":return i===null?e.nullLiteral():Array.isArray(i)?e.arrayExpression(i.map(n)):e.objectExpression(Object.keys(i).map(a=>e.objectProperty(e.stringLiteral(a),n(i[a]))))}}t.default=n})(MX);(function(t){Object.defineProperty(t,"__esModule",{value:!0});var e=$s,n=Ch,i=xt,a=MX,o=new WeakMap,r=new WeakMap;class s{constructor(){o.set(this,{writable:!0,value:!1}),r.set(this,{writable:!0,value:[]})}get root(){if(e.classPrivateFieldGet(this,o)||e.classPrivateFieldGet(this,r).length===0)return null;const b=i.identifier("zones");return i.variableDeclaration("const",[i.variableDeclarator(b,a.default(m(e.classPrivateFieldGet(this,r))))])}destroy(){e.classPrivateFieldSet(this,o,!0)}attach(b){e.classPrivateFieldGet(this,r).push(b)}create(){return e.classPrivateFieldGet(this,o)?null:new f(this)}}var c=new WeakMap,l=new WeakMap,u=new WeakMap;class f{constructor(b){c.set(this,{writable:!0,value:void 0}),l.set(this,{writable:!0,value:void 0}),u.set(this,{writable:!0,value:void 0}),e.classPrivateFieldSet(this,c,b),this.root={},e.classPrivateFieldSet(this,l,[this.root]),e.classPrivateFieldSet(this,u,new Map)}attach(){e.classPrivateFieldGet(this,c).attach(this.root),e.classPrivateFieldGet(this,u).clear()}expand(b){let v=0;for(const P of e.classPrivateFieldGet(this,l))if(P!==null){if(b==="**"){const A=e.classPrivateFieldGet(this,u).get(P);if(A!==void 0&&"*"in A){delete A["*"],A["**"]=null;continue}P[b]=null}else P[b]={},e.classPrivateFieldGet(this,u).set(P[b],P);e.classPrivateFieldGet(this,l)[v++]=P[b]}return this}expandMultiple(b){const v=e.classPrivateFieldGet(this,l)[0];if(v===null)return this;let P=0;for(const A of b)v[A]=A==="**"?null:{},e.classPrivateFieldGet(this,l).lengthObject.assign(b,g[v]),{})}function d(g,b){if("*"in b){const v=h(g);d(v,h(b)),g["*"]="*"in v?{"*":v["*"]}:v}else for(const v of Object.keys(b))v in g?n.default(b[v])&&d(g[v],b[v]):g[v]=b[v]}function m(g){const b=g[0];for(let v=1;vj.key.value===E)}push(E,j){switch(j){case"tree-method":e.classPrivateFieldGet(this,d).properties.push(i.objectMethod("method",i.stringLiteral(this.ctx.id),r.default,E));break;case"program":e.classPrivateFieldGet(this,b).has(E)||e.classPrivateFieldGet(this,b).add(E);break;case"body":e.classPrivateFieldGet(this,v).has(E)||e.classPrivateFieldGet(this,v).add(E);break;case"traverse":e.classPrivateFieldGet(this,P).add(l.default(E.value));break}}pushAll(E){for(const j of E)this.push(...j)}toString(){var E;const j=this.traversalZones.root;return a.default(i.program([i.importDeclaration([...e.classPrivateFieldGet(this,g)].map(F=>i.importSpecifier(i.identifier(F),i.identifier(F))),i.stringLiteral(`${(E=this.npmProvider)!==null&&E!==void 0?E:""}nimma/legacy/runtime`)),...e.classPrivateFieldGet(this,b),j,e.classPrivateFieldGet(this,d).properties.length===0?null:i.variableDeclaration("const",[i.variableDeclarator(s.default.tree,e.classPrivateFieldGet(this,d))]),e.classPrivateFieldGet(this,m).properties.length===0?null:i.variableDeclaration("const",[i.variableDeclarator(s.default.shorthands,e.classPrivateFieldGet(this,m))]),i.exportDefaultDeclaration(i.functionDeclaration(null,f,i.blockStatement([h,i.tryStatement(i.blockStatement([...e.classPrivateFieldGet(this,v),e.classPrivateFieldGet(this,P).size===0?null:i.expressionStatement(i.callExpression(c.default.traverse,[i.arrowFunctionExpression([],i.blockStatement(Array.from(e.classPrivateFieldGet(this,P)))),j===null?i.nullLiteral():j.declarations[0].id]))].filter(Boolean)),null,i.blockStatement([i.expressionStatement(i.callExpression(c.default.destroy,[]))]))].filter(Boolean))))].filter(Boolean)))}}t.default=_})(OX);(function(t){Object.defineProperty(t,"__esModule",{value:!0});var e=xt,n=bX,i=Ss,a=gR,o=kX,r=du,s=X_,c=Xg,l=As,u=OX,f=mu;const h=e.variableDeclaration("let",[e.variableDeclarator(c.default.pos,e.numericLiteral(0))]);function d(m,g){const b=new u.default(g),v=new Map,P=new Map;e:for(const[x,E]of m){const j=new a.default(E);if(j.length===-1)continue;const F=JSON.stringify(j.nodes),I=v.get(F);if(I!==void 0){var A,_;(A=(_=P.get(I))===null||_===void 0?void 0:_.push(x))!==null&&A!==void 0||P.set(I,[x]);let C=b.getMethodByHash(I).body.body;j.feedback.bailed&&(C=C[0].expression.arguments[1].body.body),C.push(r.default(x,j.modifiers));continue}else v.set(F,x);(j.feedback.bailed||E.length>0&&i.isDeep(E[0]))&&b.traversalZones.destroy();const L={id:x,iterator:j};b.ctx=L;for(const R of n.default)if(R(E,b,L))continue e;const V=j.feedback.bailed?[]:[e.ifStatement(e.binaryExpression(j.feedback.fixed?"!==":"<",l.default.depth,e.numericLiteral(j.length-1)),e.returnStatement())].concat(j.feedback.fixed?[]:h),q=j.feedback.bailed?null:b.traversalZones.create(),S=j.feedback.inverseAt;for(const R of j){(i.isDeep(R)||S===j.state.absolutePos)&&(q==null||q.allIn());let C;switch(R.type){case"MemberExpression":C=f.generateMemberExpression(j,R),q==null||q.expand(R.value);break;case"MultipleMemberExpression":C=f.generateMultipleMemberExpression(j,R),q==null||q.expandMultiple(R.value);break;case"SliceExpression":C=f.generateSliceExpression(j,R,b),q==null||q.resize();break;case"ScriptFilterExpression":C=f.generateFilterScriptExpression(j,R,b),q==null||q.resize();break;case"WildcardExpression":if(C=f.generateWildcardExpression(j),q==null||q.resize(),C===null)continue;break}j.feedback.bailed?V.push(e.objectExpression([e.objectProperty(e.identifier("fn"),e.arrowFunctionExpression([l.default._],C)),e.objectProperty(e.identifier("deep"),e.booleanLiteral(R.deep))])):V.push(e.ifStatement(C,e.returnStatement()))}!j.feedback.fixed&&!j.feedback.bailed&&!j.state.inverted&&V.push(e.ifStatement(e.binaryExpression("!==",l.default.depth,j.state.pos===0?c.default.pos:e.binaryExpression("+",c.default.pos,e.numericLiteral(j.state.pos))),e.returnStatement()));const D=j.feedback.bailed?"body":"traverse";j.feedback.bailed?V.splice(0,V.length,e.expressionStatement(e.callExpression(l.default.bail,[e.stringLiteral(x),e.arrowFunctionExpression([l.default._],e.blockStatement([e.expressionStatement(r.default(L.id,j.modifiers).expression)])),e.arrayExpression([...V])]))):V.push(r.default(L.id,j.modifiers)),D==="body"?b.push(e.expressionStatement(e.callExpression(e.memberExpression(c.default.tree,e.stringLiteral(x),!0),s.default)),D):b.push(e.stringLiteral(x),D),o.default(V,j),b.push(e.blockStatement(V),"tree-method"),q==null||q.attach()}return b}t.default=d})(mX);var e0={},RX={};(function(t){Object.defineProperty(t,"__esModule",{value:!0});var e=Ch;function n(i,a){if(a.length===0||!e.default(i))return i;let o=i;for(const r of a.slice(0,a.length-1))if(o=o[r],!e.default(o))return;return o[a[a.length-1]]}t.default=n})(RX);var NX={};(function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(n,i,a,o,r){const s=a<0?Math.max(0,a+n.length):Math.min(n.length,a),c=o<0?Math.max(0,o+n.length):Math.min(n.length,o);return i>=s&&i0&&(i+a)%r===0)}t.default=e})(NX);var LX={},FX={},qX={},bR={};(function(t){Object.defineProperty(t,"__esModule",{value:!0});class e extends Error{constructor(i,a){super(i),a!==void 0&&"cause"in a&&(this.cause=a.cause)}}t.default=e})(bR);(function(t){Object.defineProperty(t,"__esModule",{value:!0});var e=bR;class n extends e.default{}t.default=n})(qX);(function(t){Object.defineProperty(t,"__esModule",{value:!0});var e=qX;function n(o){return typeof o=="string"||typeof o=="number"?JSON.stringify(o):"unknown"}function i(o){return o instanceof Error?`${o.constructor.name}(${n(o.message)})`:n(o)}function a(o,r){const s={};for(const c of Object.keys(o)){const l=o[c];s[c]=(...u)=>{try{l(...u)}catch(f){const h=`${l.name||c} threw: ${i(f)}`;r.push(new e.default(h,{cause:f}))}}}return s}t.default=a})(FX);var wR={};Object.defineProperty(wR,"__esModule",{value:!0});var br=$s,m9e=Ch;function y9e(t,e){return t+`[${typeof e=="string"?`'${e}'`:e}]`}function g9e(t){return`$${t.reduce(y9e,"")}`}var ja=new WeakMap,hc=new WeakMap,Nu=new WeakMap,oE=new WeakMap;class $R{constructor(e,n,i=null){oE.set(this,{get:v9e,set:void 0}),ja.set(this,{writable:!0,value:void 0}),hc.set(this,{writable:!0,value:void 0}),Nu.set(this,{writable:!0,value:void 0}),this.root=n,br.classPrivateFieldSet(this,hc,e),br.classPrivateFieldSet(this,ja,i??[[0,n]]),br.classPrivateFieldSet(this,Nu,void 0)}get path(){return g9e(br.classPrivateFieldGet(this,hc))}get depth(){return br.classPrivateFieldGet(this,hc).length-1}get value(){var e;return br.classPrivateFieldGet(this,Nu)!==void 0?br.classPrivateFieldGet(this,Nu):(e=br.classPrivateFieldGet(this,Nu))!==null&&e!==void 0?e:br.classPrivateFieldSet(this,Nu,br.classPrivateFieldGet(this,ja)[br.classPrivateFieldGet(this,ja).length-1][1])}get property(){return P9e(br.classPrivateFieldGet(this,hc),this.depth)}get parentValue(){var e;return(e=br.classPrivateFieldGet(this,oE))===null||e===void 0?void 0:e[1]}get parentProperty(){var e;return br.classPrivateFieldGet(this,hc)[(e=br.classPrivateFieldGet(this,oE))===null||e===void 0?void 0:e[0]]}destroy(){br.classPrivateFieldGet(this,ja).length=0}push(){const e=this.property!==null&&m9e.default(this.value)?this.value[this.property]:null;return br.classPrivateFieldGet(this,ja).push([br.classPrivateFieldGet(this,hc).length,e]),br.classPrivateFieldSet(this,Nu,e),this}pop(){const e=Math.max(0,br.classPrivateFieldGet(this,hc).length+1);for(;br.classPrivateFieldGet(this,ja).length>e;)br.classPrivateFieldGet(this,ja).pop();return br.classPrivateFieldSet(this,Nu,void 0),this}at(e){if(Math.abs(e)>br.classPrivateFieldGet(this,ja).length)return null;const n=(e<0?br.classPrivateFieldGet(this,ja).length:0)+e,i=br.classPrivateFieldGet(this,ja).slice(0,n+1);return new $R(br.classPrivateFieldGet(this,hc).slice(0,i[i.length-1][0]),i[i.length-1][1],i)}}function v9e(){if(!(br.classPrivateFieldGet(this,ja).length<3))return br.classPrivateFieldGet(this,ja)[br.classPrivateFieldGet(this,ja).length-3]}function P9e(t,e){return e>=0&&t.length>e?t[e]:null}wR.Sandbox=$R;var Ib={};Object.defineProperty(Ib,"__esModule",{value:!0});var vd=Ch;function bB(t,e,n,i,a){const o=e[t],r=n.enter(t),s=a!==null&&a.length>0&&!a[0].fn(n);(a===null||a.length===1&&s)&&i(n),vd.default(o)&&(a===null?Wp(o,n,i,a):a.length>0&&(s&&Wp(o,n,i,a.slice(1)),a[0].deep&&(n.exit(r),n.enter(t),Wp(o,n,i,a)))),n.exit(r)}function Wp(t,e,n,i){if(Array.isArray(t))for(let a=0;af;)this.path.pop();return this.sandbox=this.sandbox.pop(),this.path.length}fork(u){const f=new c(this.root,this.callbacks,this);for(const h of u)if(f.enter(h),f.value===void 0)return null;return f}traverse(u,f){f!==null?o.zonedTraverse.call(this,u,f):o.traverse.call(this,u)}bail(u,f,h){const d=this.fork(this.path);o.bailedTraverse.call(d,f,h)}emit(u,f,h){var d;const m=this.callbacks[u];if(f===0&&!h)return void m(e.classPrivateFieldGet(this,s));if(f!==0&&f>this.depth+1)return;const g=f===0?e.classPrivateFieldGet(this,s):{path:e.classPrivateFieldGet(this,s).path.slice(0,Math.max(0,e.classPrivateFieldGet(this,s).path.length-f)),value:((d=this.sandbox.at(-f-1))!==null&&d!==void 0?d:this.sandbox.at(0)).value};m(h?{path:g.path,value:g.path.length===0?void 0:g.path[g.path.length-1]}:g)}destroy(){if(this.path.length=0,this.sandbox.destroy(),this.sandbox=null,this.errors.length>0)throw new n.default(this.errors,"Error running Nimma")}}t.default=c})(LX);Object.defineProperty(e0,"__esModule",{value:!0});var A9e=RX,S9e=NX,_9e=Ch,x9e=LX;e0.get=A9e.default;e0.inBounds=S9e.default;e0.isObject=_9e.default;e0.Scope=x9e.default;var BX={};(function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(){try{return Function("a","a?.b")({}),"ES2021"}catch{return"ES2018"}}t.default=e})(BX);var VX={},WX={},HX={};(function(t){Object.defineProperty(t,"__esModule",{value:!0});var e=bR;class n extends e.default{constructor(a,o,r){super(a,r),this.input=o}}t.default=n})(HX);var tx={};Object.defineProperty(tx,"__esModule",{value:!0});function D9e(t,e){function n(){this.constructor=t}n.prototype=e.prototype,t.prototype=new n}function hh(t,e,n,i){var a=Error.call(this,t);return Object.setPrototypeOf&&Object.setPrototypeOf(a,hh.prototype),a.expected=e,a.found=n,a.location=i,a.name="SyntaxError",a}D9e(hh,Error);function lE(t,e,n){return n=n||" ",t.length>e?t:(e-=t.length,n+=n.repeat(e),t+n.slice(0,e))}hh.prototype.format=function(t){var e="Error: "+this.message;if(this.location){var n=null,i;for(i=0;i `+o+` +`+s+` | +`+a.line+" | "+c+` +`+s+" | "+lE("",a.column-1)+lE("",l-a.column,"^")}else e+=` + at `+o}return e};hh.buildMessage=function(t,e){var n={literal:function(l){return'"'+a(l.text)+'"'},class:function(l){var u=l.parts.map(function(f){return Array.isArray(f)?o(f[0])+"-"+o(f[1]):o(f)});return"["+(l.inverted?"^":"")+u+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(l){return l.description}};function i(l){return l.charCodeAt(0).toString(16).toUpperCase()}function a(l){return l.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(u){return"\\x0"+i(u)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(u){return"\\x"+i(u)})}function o(l){return l.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(u){return"\\x0"+i(u)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(u){return"\\x"+i(u)})}function r(l){return n[l.type](l)}function s(l){var u=l.map(r),f,h;if(u.sort(),u.length>0){for(f=1,h=1;f!|&+~%\^*\/;\-[\]]/,ae=Qe("$",!1),z=Qe("[",!1),M=Qe("]",!1),U=Qe(",",!1),W=Qe("..",!1),T=Qe("(",!1),G=Qe(")",!1),oe=Qe("?(",!1),ve=Qe(":",!1),ie=Qe("@",!1),Ae=Ze([["a","z"]],!1,!1),pe=Qe("()",!1),De=Qe("~",!1),We=Qe("^",!1),Ce=Qe(".",!1),_e=Ze(["@","["],!1,!1),st=Ze(["$","_","-"],!1,!1),yt=Qe('"',!1),Re=Ze(['"'],!0,!1),je=Qe("'",!1),$t=Ze(["'"],!0,!1),Se=Qe("-",!1),pt=Qe("*",!1),nn=Ze([["A","Z"],["a","z"]],!1,!1),lr=Ze([["0","9"]],!1,!1),Dr=Ze([" "," "],!1,!1),Yt=Ze(['"'],!1,!1),cr=Ze(["'"],!1,!1),J=Ze([" ","$","@",".",",","_","=","<",">","!","|","&","+","~","%","^","*","/",";","-","[","]"],!1,!1),w=Qe(".length",!1),K=function(ne,ue){return{...ue,deep:ne}},te=function(ne,ue){return ne.concat(Array.isArray(ue)?ue:ue===null?[]:ue)},fe=function(){return{type:"WildcardExpression"}},he=function(ne){return ne},Y=function(ne){return ne},k=function(ne){return{type:"MultipleMemberExpression",value:[...new Set(ne)]}},re=function(){return/^\$\.{2}[~^]*$/.test(t)},ee=function(){return{type:"AllParentExpression"}},le=function(ne){return{type:"MemberExpression",value:ne}},se=function(ne){return{type:"ScriptFilterExpression",value:ne}},ge=function(ne){return{type:"SliceExpression",value:ne.split(":").reduce((ue,be,ye)=>(be!==""&&(ue[ye]=Number(be)),ue),[0,1/0,1])}},xe=function(ne){return{type:"ScriptFilterExpression",value:ne}},Pe=function(ne){return ne.value},Le=function(){return{type:"KeyExpression"}},Ye=function(){return{type:"ParentExpression"}},gt=function(){return!0},ht=function(){return!1},zt=function(ne){return ne.length>0&&Number.isSafeInteger(Number(ne))?Number(ne):ne},Gr=function(){return ot().slice(1,-1)},yi=function(){return Number(ot())},Ao=function(ne){return{type:"SliceExpression",value:[-ne,1/0,1]}},N=0,de=0,ke=[{line:1,column:1}],qe=0,nt=[],Ie=0,St;if("startRule"in e){if(!(e.startRule in a))throw new Error(`Can't start parsing from rule "`+e.startRule+'".');o=a[e.startRule]}function ot(){return t.substring(de,N)}function Qe(ne,ue){return{type:"literal",text:ne,ignoreCase:ue}}function Ze(ne,ue,be){return{type:"class",parts:ne,inverted:ue,ignoreCase:be}}function vt(){return{type:"end"}}function jt(ne){var ue=ke[ne],be;if(ue)return ue;for(be=ne-1;!ke[be];)be--;for(ue=ke[be],ue={line:ue.line,column:ue.column};beqe&&(qe=N,nt=[]),nt.push(ne))}function ur(ne,ue,be){return new hh(hh.buildMessage(ne,ue),ne,ue,be)}function Vt(){var ne,ue,be,ye,et,mt;if(ne=N,ue=Fr(),ue!==n){for(be=[],ye=ul(),ye===n&&(ye=N,et=_o(),et!==n?(mt=So(),mt!==n?(de=ye,ye=K(et,mt)):(N=ye,ye=n)):(N=ye,ye=n));ye!==n;)be.push(ye),ye=ul(),ye===n&&(ye=N,et=_o(),et!==n?(mt=So(),mt!==n?(de=ye,ye=K(et,mt)):(N=ye,ye=n)):(N=ye,ye=n));if(ye=[],et=kr(),et!==n)for(;et!==n;)ye.push(et),et=kr();else ye=n;ye===n&&(ye=null),de=ne,ne=te(be,ye)}else N=ne,ne=n;return ne}function Fr(){var ne;return t.charCodeAt(N)===36?(ne=r,N++):(ne=n,Ie===0&&Ke(ae)),ne}function So(){var ne,ue,be,ye,et;if(ne=Ti(),ne===n&&(ne=N,ue=bu(),ue===n&&(ue=N,t.charCodeAt(N)===91?(be=s,N++):(be=n,Ie===0&&Ke(z)),be!==n?(ye=bu(),ye!==n?(t.charCodeAt(N)===93?(et=c,N++):(et=n,Ie===0&&Ke(M)),et!==n?(be=[be,ye,et],ue=be):(N=ue,ue=n)):(N=ue,ue=n)):(N=ue,ue=n)),ue!==n&&(de=ne,ue=fe()),ne=ue,ne===n&&(ne=N,t.charCodeAt(N)===91?(ue=s,N++):(ue=n,Ie===0&&Ke(z)),ue!==n?(be=ka(),be!==n?(t.charCodeAt(N)===93?(ye=c,N++):(ye=n,Ie===0&&Ke(M)),ye!==n?(de=ne,ne=he(be)):(N=ne,ne=n)):(N=ne,ne=n)):(N=ne,ne=n),ne===n&&(ne=N,t.charCodeAt(N)===91?(ue=s,N++):(ue=n,Ie===0&&Ke(z)),ue!==n?(be=fl(),be!==n?(t.charCodeAt(N)===93?(ye=c,N++):(ye=n,Ie===0&&Ke(M)),ye!==n?(de=ne,ne=he(be)):(N=ne,ne=n)):(N=ne,ne=n)):(N=ne,ne=n),ne===n&&(ne=N,ue=_s(),ue===n&&(ue=Pu()),ue!==n&&(de=ne,ue=he(ue)),ne=ue,ne===n))))){if(ne=N,t.charCodeAt(N)===91?(ue=s,N++):(ue=n,Ie===0&&Ke(z)),ue!==n){for(be=[],ye=N,et=qr(),et!==n?(t.charCodeAt(N)===44?N++:Ie===0&&Ke(U),de=ye,ye=Y(et)):(N=ye,ye=n);ye!==n;)be.push(ye),ye=N,et=qr(),et!==n?(t.charCodeAt(N)===44?N++:Ie===0&&Ke(U),de=ye,ye=Y(et)):(N=ye,ye=n);t.charCodeAt(N)===93?(ye=c,N++):(ye=n,Ie===0&&Ke(M)),ye!==n?(de=ne,ne=k(be)):(N=ne,ne=n)}else N=ne,ne=n;ne===n&&(ne=N,t.charCodeAt(N)===91?(ue=s,N++):(ue=n,Ie===0&&Ke(z)),ue!==n?(be=ec(),be!==n?(t.charCodeAt(N)===93?(ye=c,N++):(ye=n,Ie===0&&Ke(M)),ye!==n?(de=ne,ne=he(be)):(N=ne,ne=n)):(N=ne,ne=n)):(N=ne,ne=n))}return ne}function ul(){var ne,ue,be;return ne=N,de=N,ue=re(),ue?ue=void 0:ue=n,ue!==n?(t.substr(N,2)===l?(be=l,N+=2):(be=n,Ie===0&&Ke(W)),be!==n?(de=ne,ne=ee()):(N=ne,ne=n)):(N=ne,ne=n),ne}function Ti(){var ne,ue,be,ye,et;return ne=N,ue=pl(),ue===n&&(ue=N,t.charCodeAt(N)===91?(be=s,N++):(be=n,Ie===0&&Ke(z)),be!==n?(ye=qr(),ye!==n?(t.charCodeAt(N)===93?(et=c,N++):(et=n,Ie===0&&Ke(M)),et!==n?(de=ue,ue=Y(ye)):(N=ue,ue=n)):(N=ue,ue=n)):(N=ue,ue=n)),ue!==n&&(de=ne,ue=le(ue)),ne=ue,ne}function ka(){var ne,ue,be,ye;return ne=N,t.charCodeAt(N)===40?(ue=u,N++):(ue=n,Ie===0&&Ke(T)),ue!==n?(be=zb(),be!==n?(t.charCodeAt(N)===41?(ye=f,N++):(ye=n,Ie===0&&Ke(G)),ye!==n?(de=ne,ne=Y(be)):(N=ne,ne=n)):(N=ne,ne=n)):(N=ne,ne=n),ne}function fl(){var ne,ue,be,ye;return ne=N,t.substr(N,2)===h?(ue=h,N+=2):(ue=n,Ie===0&&Ke(oe)),ue!==n?(be=Kx(),be!==n?(t.charCodeAt(N)===41?(ye=f,N++):(ye=n,Ie===0&&Ke(G)),ye!==n?(de=ne,ne=se(be)):(N=ne,ne=n)):(N=ne,ne=n)):(N=ne,ne=n),ne}function ec(){var ne,ue,be,ye,et,mt,ji;return ne=N,ue=N,be=N,ye=N,et=Oa(),et!==n?(t.charCodeAt(N)===58?(mt=d,N++):(mt=n,Ie===0&&Ke(ve)),mt!==n?(ji=Oa(),ji===n&&(ji=null),et=[et,mt,ji],ye=et):(N=ye,ye=n)):(N=ye,ye=n),ye===n&&(ye=N,t.charCodeAt(N)===58?(et=d,N++):(et=n,Ie===0&&Ke(ve)),et!==n?(mt=Oa(),mt===n&&(mt=null),et=[et,mt],ye=et):(N=ye,ye=n),ye===n&&(ye=Oa())),ye!==n?(et=N,t.charCodeAt(N)===58?(mt=d,N++):(mt=n,Ie===0&&Ke(ve)),mt!==n?(ji=Oa(),ji!==n?(mt=[mt,ji],et=mt):(N=et,et=n)):(N=et,et=n),et===n&&(et=null),ye=[ye,et],be=ye):(N=be,be=n),be!==n?ue=t.substring(ue,N):ue=be,ue!==n&&(de=ne,ue=ge(ue)),ne=ue,ne}function _s(){var ne,ue,be,ye,et,mt;if(ne=N,ue=N,be=N,t.charCodeAt(N)===64?(ye=m,N++):(ye=n,Ie===0&&Ke(ie)),ye!==n){if(et=[],F.test(t.charAt(N))?(mt=t.charAt(N),N++):(mt=n,Ie===0&&Ke(Ae)),mt!==n)for(;mt!==n;)et.push(mt),F.test(t.charAt(N))?(mt=t.charAt(N),N++):(mt=n,Ie===0&&Ke(Ae));else et=n;et!==n?(t.substr(N,2)===g?(mt=g,N+=2):(mt=n,Ie===0&&Ke(pe)),mt!==n?(ye=[ye,et,mt],be=ye):(N=be,be=n)):(N=be,be=n)}else N=be,be=n;return be!==n?ue=t.substring(ue,N):ue=be,ue!==n&&(de=ne,ue=xe(ue)),ne=ue,ne}function Pu(){var ne,ue,be,ye,et;return ne=N,ue=N,be=N,t.charCodeAt(N)===64?(ye=m,N++):(ye=n,Ie===0&&Ke(ie)),ye!==n?(et=_s(),et!==n?(de=be,be=Pe(et)):(N=be,be=n)):(N=be,be=n),be!==n?ue=t.substring(ue,N):ue=be,ue!==n&&(de=ne,ue=xe(ue)),ne=ue,ne}function tc(){var ne,ue;return ne=N,t.charCodeAt(N)===126?(ue=b,N++):(ue=n,Ie===0&&Ke(De)),ue!==n&&(de=ne,ue=Le()),ne=ue,ne}function Jt(){var ne,ue;return ne=N,t.charCodeAt(N)===94?(ue=v,N++):(ue=n,Ie===0&&Ke(We)),ue!==n&&(de=ne,ue=Ye()),ne=ue,ne}function kr(){var ne;return ne=tc(),ne===n&&(ne=Jt()),ne}function _o(){var ne,ue,be,ye;return ne=N,t.substr(N,2)===l?(ue=l,N+=2):(ue=n,Ie===0&&Ke(W)),ue!==n&&(de=ne,ue=gt()),ne=ue,ne===n&&(ne=N,t.charCodeAt(N)===46?(ue=P,N++):(ue=n,Ie===0&&Ke(Ce)),ue!==n?(be=N,Ie++,t.charCodeAt(N)===91?(ye=s,N++):(ye=n,Ie===0&&Ke(z)),Ie--,ye!==n?(N=be,be=void 0):be=n,be!==n?(de=ne,ne=gt()):(N=ne,ne=n)):(N=ne,ne=n),ne===n&&(ne=N,t.charCodeAt(N)===46?(ue=P,N++):(ue=n,Ie===0&&Ke(Ce)),ue!==n&&(de=ne,ue=ht()),ne=ue,ne===n&&(ne=N,ue=N,Ie++,I.test(t.charAt(N))?(be=t.charAt(N),N++):(be=n,Ie===0&&Ke(_e)),Ie--,be!==n?(N=ue,ue=void 0):ue=n,ue!==n&&(de=ne,ue=ht()),ne=ue))),ne}function pl(){var ne,ue,be;if(ne=N,ue=[],L.test(t.charAt(N))?(be=t.charAt(N),N++):(be=n,Ie===0&&Ke(st)),be===n&&(be=Qa(),be===n&&(be=Zi())),be!==n)for(;be!==n;)ue.push(be),L.test(t.charAt(N))?(be=t.charAt(N),N++):(be=n,Ie===0&&Ke(st)),be===n&&(be=Qa(),be===n&&(be=Zi()));else ue=n;return ue!==n?ne=t.substring(ne,N):ne=ue,ne}function qr(){var ne,ue,be,ye,et,mt;if(ne=N,ue=pl(),ue!==n&&(de=ne,ue=zt(ue)),ne=ue,ne===n){if(ne=N,ue=N,t.charCodeAt(N)===34?(be=A,N++):(be=n,Ie===0&&Ke(yt)),be!==n){for(ye=N,et=[],V.test(t.charAt(N))?(mt=t.charAt(N),N++):(mt=n,Ie===0&&Ke(Re));mt!==n;)et.push(mt),V.test(t.charAt(N))?(mt=t.charAt(N),N++):(mt=n,Ie===0&&Ke(Re));ye=t.substring(ye,N),t.charCodeAt(N)===34?(et=A,N++):(et=n,Ie===0&&Ke(yt)),et!==n?(be=[be,ye,et],ue=be):(N=ue,ue=n)}else N=ue,ue=n;if(ue===n)if(ue=N,t.charCodeAt(N)===39?(be=_,N++):(be=n,Ie===0&&Ke(je)),be!==n){for(ye=N,et=[],q.test(t.charAt(N))?(mt=t.charAt(N),N++):(mt=n,Ie===0&&Ke($t));mt!==n;)et.push(mt),q.test(t.charAt(N))?(mt=t.charAt(N),N++):(mt=n,Ie===0&&Ke($t));ye=t.substring(ye,N),t.charCodeAt(N)===39?(et=_,N++):(et=n,Ie===0&&Ke(je)),et!==n?(be=[be,ye,et],ue=be):(N=ue,ue=n)}else N=ue,ue=n;ue!==n&&(de=ne,ue=Gr()),ne=ue}return ne}function Oa(){var ne,ue,be;if(ne=N,t.charCodeAt(N)===45?N++:Ie===0&&Ke(Se),ue=[],be=Zi(),be!==n)for(;be!==n;)ue.push(be),be=Zi();else ue=n;return ue!==n?(de=ne,ne=yi()):(N=ne,ne=n),ne}function bu(){var ne;return t.charCodeAt(N)===42?(ne=E,N++):(ne=n,Ie===0&&Ke(pt)),ne}function Qa(){var ne;return S.test(t.charAt(N))?(ne=t.charAt(N),N++):(ne=n,Ie===0&&Ke(nn)),ne}function Zi(){var ne;return D.test(t.charAt(N))?(ne=t.charAt(N),N++):(ne=n,Ie===0&&Ke(lr)),ne}function xs(){var ne;return R.test(t.charAt(N))?(ne=t.charAt(N),N++):(ne=n,Ie===0&&Ke(Dr)),ne}function Kx(){var ne,ue,be;if(ne=N,ue=[],be=Qa(),be===n&&(be=Zi(),be===n&&(be=xs(),be===n&&(be=Gf(),be===n&&(be=xo(),be===n&&(be=Hf(),be===n&&(be=wu())))))),be!==n)for(;be!==n;)ue.push(be),be=Qa(),be===n&&(be=Zi(),be===n&&(be=xs(),be===n&&(be=Gf(),be===n&&(be=xo(),be===n&&(be=Hf(),be===n&&(be=wu()))))));else ue=n;return ue!==n?ne=t.substring(ne,N):ne=ue,ne}function Hf(){var ne,ue,be,ye;if(ne=N,t.charCodeAt(N)===91?(ue=s,N++):(ue=n,Ie===0&&Ke(z)),ue!==n){for(be=[],ye=Zi(),ye===n&&(ye=Qa(),ye===n&&(ye=xo(),ye===n&&(ye=wu())));ye!==n;)be.push(ye),ye=Zi(),ye===n&&(ye=Qa(),ye===n&&(ye=xo(),ye===n&&(ye=wu())));t.charCodeAt(N)===93?(ye=c,N++):(ye=n,Ie===0&&Ke(M)),ye!==n?(ue=[ue,be,ye],ne=ue):(N=ne,ne=n)}else N=ne,ne=n;return ne}function xo(){var ne,ue,be,ye;if(ne=N,C.test(t.charAt(N))?(ue=t.charAt(N),N++):(ue=n,Ie===0&&Ke(Yt)),ue!==n){for(be=[],V.test(t.charAt(N))?(ye=t.charAt(N),N++):(ye=n,Ie===0&&Ke(Re));ye!==n;)be.push(ye),V.test(t.charAt(N))?(ye=t.charAt(N),N++):(ye=n,Ie===0&&Ke(Re));C.test(t.charAt(N))?(ye=t.charAt(N),N++):(ye=n,Ie===0&&Ke(Yt)),ye!==n?(ue=[ue,be,ye],ne=ue):(N=ne,ne=n)}else N=ne,ne=n;if(ne===n)if(ne=N,H.test(t.charAt(N))?(ue=t.charAt(N),N++):(ue=n,Ie===0&&Ke(cr)),ue!==n){for(be=[],q.test(t.charAt(N))?(ye=t.charAt(N),N++):(ye=n,Ie===0&&Ke($t));ye!==n;)be.push(ye),q.test(t.charAt(N))?(ye=t.charAt(N),N++):(ye=n,Ie===0&&Ke($t));H.test(t.charAt(N))?(ye=t.charAt(N),N++):(ye=n,Ie===0&&Ke(cr)),ye!==n?(ue=[ue,be,ye],ne=ue):(N=ne,ne=n)}else N=ne,ne=n;return ne}function Gf(){var ne;return X.test(t.charAt(N))?(ne=t.charAt(N),N++):(ne=n,Ie===0&&Ke(J)),ne}function wu(){var ne,ue,be,ye;if(ne=N,t.charCodeAt(N)===40?(ue=u,N++):(ue=n,Ie===0&&Ke(T)),ue!==n){for(be=[],ye=xo(),ye===n&&(ye=Qa(),ye===n&&(ye=Zi(),ye===n&&(ye=Hf(),ye===n&&(ye=Gf(),ye===n&&(ye=xs(),ye===n&&(ye=wu()))))));ye!==n;)be.push(ye),ye=xo(),ye===n&&(ye=Qa(),ye===n&&(ye=Zi(),ye===n&&(ye=Hf(),ye===n&&(ye=Gf(),ye===n&&(ye=xs(),ye===n&&(ye=wu()))))));t.charCodeAt(N)===41?(ye=f,N++):(ye=n,Ie===0&&Ke(G)),ye!==n?(ue=[ue,be,ye],ne=ue):(N=ne,ne=n)}else N=ne,ne=n;return ne}function zb(){var ne,ue,be;return ne=N,t.charCodeAt(N)===64?(ue=m,N++):(ue=n,Ie===0&&Ke(ie)),ue!==n?(be=Ub(),be!==n?(de=ne,ne=Y(be)):(N=ne,ne=n)):(N=ne,ne=n),ne}function Ub(){var ne,ue,be,ye,et,mt,ji,$u;if(ne=N,t.substr(N,7)===j?(ue=j,N+=7):(ue=n,Ie===0&&Ke(w)),ue!==n){for(be=[],ye=xs();ye!==n;)be.push(ye),ye=xs();if(t.charCodeAt(N)===45?(ye=x,N++):(ye=n,Ie===0&&Ke(Se)),ye!==n){for(et=[],mt=xs();mt!==n;)et.push(mt),mt=xs();if(mt=N,ji=[],$u=Zi(),$u!==n)for(;$u!==n;)ji.push($u),$u=Zi();else ji=n;ji!==n?mt=t.substring(mt,N):mt=ji,mt!==n?(de=ne,ne=Ao(mt)):(N=ne,ne=n)}else N=ne,ne=n}else N=ne,ne=n;return ne}if(St=o(),St!==n&&N===t.length)return St;throw St!==n&&N0)throw new i.default(f.map(a),`Error parsing ${f.map(o).join(", ")}`);return{erroredExpressions:f.map(o),mappedExpressions:u}}t.default=r})(VX);(function(t){Object.defineProperty(t,"__esModule",{value:!0});var e=$s,n=mX,i=e0,a=BX,o=VX;const r=/import\s*({[^}]+})\s*from\s*['"][^'"]+['"];?/;var s=new WeakMap,c=new WeakMap;class l{constructor(f,{fallback:h=null,unsafe:d=!0,output:m="auto",npmProvider:g=null,customShorthands:b=null}={}){s.set(this,{writable:!0,value:void 0}),c.set(this,{writable:!0,value:void 0}),e.classPrivateFieldSet(this,s,h),e.classPrivateFieldSet(this,c,null);const{erroredExpressions:v,mappedExpressions:P}=o.default(f,d,h!==null);this.tree=n.default(P,{customShorthands:b,format:m==="auto"?a.default():m,npmProvider:g}),v.length>0&&this.tree.attachFallbackExpressions(h,v),this.sourceCode=String(this.tree)}query(f,h){if(e.classPrivateFieldGet(this,c)!==null){e.classPrivateFieldGet(this,c).call(this,f,h);return}const d="__nimma_globals__",m=this.sourceCode.replace("export default function","return function").replace(r,`const $1 = ${d};`).replace(RegExp(r.source,"g"),"");e.classPrivateFieldSet(this,c,Function(d,...e.classPrivateFieldGet(this,s)===null?[]:Array.from(e.classPrivateFieldGet(this,s).runtimeDeps.keys()),m)(i,...e.classPrivateFieldGet(this,s)===null?[]:Array.from(e.classPrivateFieldGet(this,s).runtimeDeps.values()))),e.classPrivateFieldGet(this,c).call(this,f,h)}}t.default=l})(pX);Object.defineProperty(dR,"__esModule",{value:!0});var O9e=pX;dR.default=O9e.default;var AR={},GX={};function Jo(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Jo=function(e){return typeof e}:Jo=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Jo(t)}function E9e(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function I9e(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&YP(t,e)}function KP(t){return KP=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},KP(t)}function YP(t,e){return YP=Object.setPrototypeOf||function(i,a){return i.__proto__=a,i},YP(t,e)}function KX(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Jv(t,e,n){return KX()?Jv=Reflect.construct:Jv=function(a,o,r){var s=[null];s.push.apply(s,o);var c=Function.bind.apply(a,s),l=new c;return r&&YP(l,r.prototype),l},Jv.apply(null,arguments)}function C9e(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function KC(t){var e=typeof Map=="function"?new Map:void 0;return KC=function(i){if(i===null||!C9e(i))return i;if(typeof i!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e<"u"){if(e.has(i))return e.get(i);e.set(i,a)}function a(){return Jv(i,arguments,KP(this).constructor)}return a.prototype=Object.create(i.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),YP(a,i)},KC(t)}function T9e(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function j9e(t,e){return e&&(typeof e=="object"||typeof e=="function")?e:T9e(t)}function M9e(t){var e=KX();return function(){var i=KP(t),a;if(e){var o=KP(this).constructor;a=Reflect.construct(i,arguments,o)}else a=i.apply(this,arguments);return j9e(this,a)}}function wB(t){return R9e(t)||N9e(t)||YX(t)||L9e()}function R9e(t){if(Array.isArray(t))return YC(t)}function N9e(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function YX(t,e){if(t){if(typeof t=="string")return YC(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return YC(t,e)}}function YC(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(c){throw c},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,r=!1,s;return{s:function(){n=n.call(t)},n:function(){var c=n.next();return o=c.done,c},e:function(c){r=!0,s=c},f:function(){try{!o&&n.return!=null&&n.return()}finally{if(r)throw s}}}}var Na=Object.prototype.hasOwnProperty;function rv(t,e){return t=t.slice(),t.push(e),t}function Pd(t,e){return e=e.slice(),e.unshift(t),e}var q9e=function(t){I9e(n,t);var e=M9e(n);function n(i){var a;return E9e(this,n),a=e.call(this,'JSONPath should not be called with "new" (it prevents return of (unwrapped) scalar values)'),a.avoidNew=!0,a.value=i,a.name="NewError",a}return n}(KC(Error));function Xr(t,e,n,i,a){if(!(this instanceof Xr))try{return new Xr(t,e,n,i,a)}catch(c){if(!c.avoidNew)throw c;return c.value}typeof t=="string"&&(a=i,i=n,n=e,e=t,t=null);var o=t&&Jo(t)==="object";if(t=t||{},this.json=t.json||n,this.path=t.path||e,this.resultType=t.resultType||"value",this.flatten=t.flatten||!1,this.wrap=Na.call(t,"wrap")?t.wrap:!0,this.sandbox=t.sandbox||{},this.preventEval=t.preventEval||!1,this.parent=t.parent||null,this.parentProperty=t.parentProperty||null,this.callback=t.callback||i||null,this.otherTypeCallback=t.otherTypeCallback||a||function(){throw new TypeError("You must supply an otherTypeCallback callback option with the @other() operator.")},t.autostart!==!1){var r={path:o?t.path:e};o?"json"in t&&(r.json=t.json):r.json=n;var s=this.evaluate(r);if(!s||Jo(s)!=="object")throw new q9e(s);return s}}Xr.prototype.evaluate=function(t,e,n,i){var a=this,o=this.parent,r=this.parentProperty,s=this.flatten,c=this.wrap;if(this.currResultType=this.resultType,this.currPreventEval=this.preventEval,this.currSandbox=this.sandbox,n=n||this.callback,this.currOtherTypeCallback=i||this.otherTypeCallback,e=e||this.json,t=t||this.path,t&&Jo(t)==="object"&&!Array.isArray(t)){if(!t.path&&t.path!=="")throw new TypeError('You must supply a "path" property when providing an object argument to JSONPath.evaluate().');if(!Na.call(t,"json"))throw new TypeError('You must supply a "json" property when providing an object argument to JSONPath.evaluate().');var l=t;e=l.json,s=Na.call(t,"flatten")?t.flatten:s,this.currResultType=Na.call(t,"resultType")?t.resultType:this.currResultType,this.currSandbox=Na.call(t,"sandbox")?t.sandbox:this.currSandbox,c=Na.call(t,"wrap")?t.wrap:c,this.currPreventEval=Na.call(t,"preventEval")?t.preventEval:this.currPreventEval,n=Na.call(t,"callback")?t.callback:n,this.currOtherTypeCallback=Na.call(t,"otherTypeCallback")?t.otherTypeCallback:this.currOtherTypeCallback,o=Na.call(t,"parent")?t.parent:o,r=Na.call(t,"parentProperty")?t.parentProperty:r,t=t.path}if(o=o||null,r=r||null,Array.isArray(t)&&(t=Xr.toPathString(t)),!(!t&&t!==""||!e)){var u=Xr.toPathArray(t);u[0]==="$"&&u.length>1&&u.shift(),this._hasParentSelector=null;var f=this._trace(u,e,["$"],o,r,n).filter(function(h){return h&&!h.isParentSelector});return f.length?!c&&f.length===1&&!f[0].hasArrExpr?this._getPreferredOutput(f[0]):f.reduce(function(h,d){var m=a._getPreferredOutput(d);return s&&Array.isArray(m)?h=h.concat(m):h.push(m),h},[]):c?[]:void 0}};Xr.prototype._getPreferredOutput=function(t){var e=this.currResultType;switch(e){case"all":{var n=Array.isArray(t.path)?t.path:Xr.toPathArray(t.path);return t.pointer=Xr.toPointer(n),t.path=typeof t.path=="string"?t.path:Xr.toPathString(t.path),t}case"value":case"parent":case"parentProperty":return t[e];case"path":return Xr.toPathString(t[e]);case"pointer":return Xr.toPointer(t.path);default:throw new TypeError("Unknown result type")}};Xr.prototype._handleCallback=function(t,e,n){if(e){var i=this._getPreferredOutput(t);t.path=typeof t.path=="string"?t.path:Xr.toPathString(t.path),e(i,n,t)}};Xr.prototype._trace=function(t,e,n,i,a,o,r,s){var c=this,l;if(!t.length)return l={path:n,value:e,parent:i,parentProperty:a,hasArrExpr:r},this._handleCallback(l,o,"value"),l;var u=t[0],f=t.slice(1),h=[];function d(L){Array.isArray(L)?L.forEach(function(V){h.push(V)}):h.push(L)}if((typeof u!="string"||s)&&e&&Na.call(e,u))d(this._trace(f,e[u],rv(n,u),e,u,o,r));else if(u==="*")this._walk(u,f,e,n,i,a,o,function(L,V,q,S,D,R,C,H){d(c._trace(Pd(L,q),S,D,R,C,H,!0,!0))});else if(u==="..")d(this._trace(f,e,n,i,a,o,r)),this._walk(u,f,e,n,i,a,o,function(L,V,q,S,D,R,C,H){Jo(S[L])==="object"&&d(c._trace(Pd(V,q),S[L],rv(D,L),S,L,H,!0))});else{if(u==="^")return this._hasParentSelector=!0,{path:n.slice(0,-1),expr:f,isParentSelector:!0};if(u==="~")return l={path:rv(n,u),value:a,parent:i,parentProperty:null},this._handleCallback(l,o,"property"),l;if(u==="$")d(this._trace(f,e,n,null,null,o,r));else if(/^(\x2D?[0-9]*):(\x2D?[0-9]*):?([0-9]*)$/.test(u))d(this._slice(u,f,e,n,i,a,o));else if(u.indexOf("?(")===0){if(this.currPreventEval)throw new Error("Eval [?(expr)] prevented in JSONPath expression.");this._walk(u,f,e,n,i,a,o,function(L,V,q,S,D,R,C,H){c._eval(V.replace(/^\?\(((?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*?)\)$/,"$1"),S[L],L,D,R,C)&&d(c._trace(Pd(L,q),S,D,R,C,H,!0))})}else if(u[0]==="("){if(this.currPreventEval)throw new Error("Eval [(expr)] prevented in JSONPath expression.");d(this._trace(Pd(this._eval(u,e,n[n.length-1],n.slice(0,-1),i,a),f),e,n,i,a,o,r))}else if(u[0]==="@"){var m=!1,g=u.slice(1,-2);switch(g){case"scalar":(!e||!["object","function"].includes(Jo(e)))&&(m=!0);break;case"boolean":case"string":case"undefined":case"function":Jo(e)===g&&(m=!0);break;case"integer":Number.isFinite(e)&&!(e%1)&&(m=!0);break;case"number":Number.isFinite(e)&&(m=!0);break;case"nonFinite":typeof e=="number"&&!Number.isFinite(e)&&(m=!0);break;case"object":e&&Jo(e)===g&&(m=!0);break;case"array":Array.isArray(e)&&(m=!0);break;case"other":m=this.currOtherTypeCallback(e,n,i,a);break;case"null":e===null&&(m=!0);break;default:throw new TypeError("Unknown value type "+g)}if(m)return l={path:n,value:e,parent:i,parentProperty:a},this._handleCallback(l,o,"value"),l}else if(u[0]==="`"&&e&&Na.call(e,u.slice(1))){var b=u.slice(1);d(this._trace(f,e[b],rv(n,b),e,b,o,r,!0))}else if(u.includes(",")){var v=u.split(","),P=F9e(v),A;try{for(P.s();!(A=P.n()).done;){var _=A.value;d(this._trace(Pd(_,f),e,n,i,a,o,!0))}}catch(L){P.e(L)}finally{P.f()}}else!s&&e&&Na.call(e,u)&&d(this._trace(f,e[u],rv(n,u),e,u,o,r,!0))}if(this._hasParentSelector)for(var x=0;x-1?e.slice(0,s+1)+" return "+e.slice(s+1):" return "+e;return Jv(Function,wB(i).concat([c])).apply(void 0,wB(o))}};const U9e=Object.freeze(Object.defineProperty({__proto__:null,JSONPath:Xr},Symbol.toStringTag,{value:"Module"})),B9e=Yl(U9e);var V9e="Expected a function",JX="__lodash_hash_undefined__",QX=1/0,W9e="[object Function]",H9e="[object GeneratorFunction]",G9e="[object Symbol]",K9e=/^\./,Y9e=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,J9e=/[\\^$.*+?()[\]{}|]/g,Q9e=/\\(\\)?/g,Z9e=/^\[object .+?Constructor\]$/,X9e=typeof Cr=="object"&&Cr&&Cr.Object===Object&&Cr,eze=typeof self=="object"&&self&&self.Object===Object&&self,SR=X9e||eze||Function("return this")();function tze(t,e){for(var n=-1,i=t?t.length:0,a=Array(i);++n-1}function vze(t,e){var n=this.__data__,i=rx(n,t);return i<0?n.push([t,e]):n[i][1]=e,this}t0.prototype.clear=dze;t0.prototype.delete=mze;t0.prototype.get=yze;t0.prototype.has=gze;t0.prototype.set=vze;function Th(t){var e=-1,n=t?t.length:0;for(this.clear();++e\s*)?/,"");return`${f.slice(f.indexOf("("),h).split(/[,\s]+/).splice(0,3).join(", ")} => ${d}`}class o{constructor(f,h){D0(this,r,new Set);D0(this,s,new Map);D0(this,c);D0(this,l,"");wq(this,"runtimeDeps",new Map);tk(this,c,h);for(const[d,m]of Object.entries(f)){const g=[];for(const{imported:b,local:v,value:P}of m)Cu(this,s).set(v,P),this.runtimeDeps.set(n(v),P),g.push(e.importSpecifier(i(v),e.identifier(b))),Cu(this,r).add(e.importDeclaration(g,e.stringLiteral(d)))}}get extraCode(){return Cu(this,l)||tk(this,l,a(Cu(this,c))),Cu(this,l)}attach(f){for(const m of Cu(this,r))f.push(m,"program");const h=e.identifier("fallback"),d=Array.from(Cu(this,s).keys());return f.push(e.variableDeclaration("const",[e.variableDeclarator(h,e.callExpression(e.memberExpression(e.callExpression(e.identifier("Function"),[e.templateLiteral([e.templateElement({raw:`return ${this.extraCode}`})],[])]),e.identifier("call")),[e.objectExpression(d.map(m=>e.objectProperty(e.stringLiteral(m),i(m))))]))]),"program"),h}}r=new WeakMap,s=new WeakMap,c=new WeakMap,l=new WeakMap,t.default=o})(nee);(function(t){Object.defineProperty(t,"__esModule",{value:!0});var e=B9e,n=Lze,i=nee;function a(s){return s&&typeof s=="object"&&"default"in s?s:{default:s}}var o=a(n),r=new i.default({"jsonpath-plus":[{imported:"JSONPath",local:"JSONPath",value:e.JSONPath}],"lodash.topath":[{imported:"default",local:"toPath",value:o.default}]},function(s,c,l){this.JSONPath({callback:u=>{l({path:this.toPath(u.path.slice(1)),value:u.value})},json:s,path:c,resultType:"all"})});t.default=r})(GX);Object.defineProperty(AR,"__esModule",{value:!0});var gUe=GX;AR.jsonPathPlus=gUe.default;Object.defineProperty(H_,"__esModule",{value:!0});H_.Runner=void 0;const vUe=vr,PUe=tX,bUe=G_,wUe=(0,vUe.__importDefault)(dR),$Ue=AR,AUe=Hr;class SUe{constructor(e){var n;this.inventory=e,this.results=[...this.inventory.diagnostics,...(n=this.inventory.errors)!==null&&n!==void 0?n:[]]}get document(){return this.inventory.document}addResult(e){this.results.push(e)}async run(e){var n,i,a;const{inventory:o}=this,{rules:r}=e,s=(n=this.document.formats)!==null&&n!==void 0?n:null,c={ruleset:e,documentInventory:o,results:this.results,promises:[]},u=Object.values(r).filter(m=>m.enabled).filter(m=>m.matchesFormat(o.formats)),f={resolved:{},unresolved:{}};for(const m of u)for(const g of m.getGivenForFormats(s)){const b=v=>{(0,bUe.lintNode)(c,v,m)};((i=(a=f[m.resolved?"resolved":"unresolved"])[g])!==null&&i!==void 0?i:a[g]=[]).push(b)}const h=Object.keys(f.resolved),d=Object.keys(f.unresolved);h.length>0&&xB(c.documentInventory.resolved,f.resolved,h),d.length>0&&xB(c.documentInventory.unresolved,f.unresolved,d),c.promises.length>0&&await Promise.all(c.promises)}getResults(){return(0,PUe.prepareResults)(this.results)}}H_.Runner=SUe;function xB(t,e,n){var i;if(!(0,AUe.isPlainObject)(t)&&!Array.isArray(t)){for(const o of(i=e.$)!==null&&i!==void 0?i:[])o({path:[],value:t});return}new wUe.default(n,{fallback:$Ue.jsonPathPlus,unsafe:!1,output:"auto",customShorthands:{}}).query(t,Object.entries(e).reduce((o,[r,s])=>(o[r]=c=>{for(const l of s)l(c)},o),{}))}(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.Runner=void 0;var e=H_;Object.defineProperty(t,"Runner",{enumerable:!0,get:function(){return e.Runner}})})(eX);var nv={},Cb={},_Ue=function(t,e){for(var n=[],i=0;i=0&&l>0){if(t===e)return[c,l];for(i=[],o=n.length;u>=0&&!s;)u==c?(i.push(u),c=n.indexOf(t,u+1)):i.length==1?s=[i.pop(),l]:(a=i.pop(),a=0?c:l;i.length&&(s=[o,r])}return s}var kUe=_Ue,uee=DUe,OUe=CUe,fee="\0SLASH"+Math.random()+"\0",pee="\0OPEN"+Math.random()+"\0",kR="\0CLOSE"+Math.random()+"\0",hee="\0COMMA"+Math.random()+"\0",dee="\0PERIOD"+Math.random()+"\0";function uE(t){return parseInt(t,10)==t?parseInt(t,10):t.charCodeAt(0)}function EUe(t){return t.split("\\\\").join(fee).split("\\{").join(pee).split("\\}").join(kR).split("\\,").join(hee).split("\\.").join(dee)}function IUe(t){return t.split(fee).join("\\").split(pee).join("{").split(kR).join("}").split(hee).join(",").split(dee).join(".")}function mee(t){if(!t)return[""];var e=[],n=uee("{","}",t);if(!n)return t.split(",");var i=n.pre,a=n.body,o=n.post,r=i.split(",");r[r.length-1]+="{"+a+"}";var s=mee(o);return o.length&&(r[r.length-1]+=s.shift(),r.push.apply(r,s)),e.push.apply(e,r),e}function CUe(t){return t?(t.substr(0,2)==="{}"&&(t="\\{\\}"+t.substr(2)),bd(EUe(t),!0).map(IUe)):[]}function TUe(t){return"{"+t+"}"}function jUe(t){return/^-?0\d/.test(t)}function MUe(t,e){return t<=e}function RUe(t,e){return t>=e}function bd(t,e){var n=[],i=uee("{","}",t);if(!i||/\$$/.test(i.pre))return[t];var a=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(i.body),o=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(i.body),r=a||o,s=i.body.indexOf(",")>=0;if(!r&&!s)return i.post.match(/,.*\}/)?(t=i.pre+"{"+i.body+kR+i.post,bd(t)):[t];var c;if(r)c=i.body.split(/\.\./);else if(c=mee(i.body),c.length===1&&(c=bd(c[0],!1).map(TUe),c.length===1)){var u=i.post.length?bd(i.post,!1):[""];return u.map(function(V){return i.pre+c[0]+V})}var l=i.pre,u=i.post.length?bd(i.post,!1):[""],f;if(r){var h=uE(c[0]),d=uE(c[1]),m=Math.max(c[0].length,c[1].length),g=c.length==3?Math.abs(uE(c[2])):1,b=MUe,v=d0){var E=new Array(x+1).join("0");A<0?_="-"+E+_.slice(1):_=E+_}}f.push(_)}}else f=kUe(c,function(L){return bd(L,!1)});for(var j=0;j"u"?this.pattern:t,ix(t),e.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:LUe(t)}var WUe=1024*64,ix=function(t){if(typeof t!="string")throw new TypeError("invalid pattern");if(t.length>WUe)throw new TypeError("pattern is too long")};Ii.prototype.parse=HUe;var Vw={};function HUe(t,e){ix(t);var n=this.options;if(t==="**")if(n.noglobstar)t="*";else return OR;if(t==="")return"";var i="",a=!!n.nocase,o=!1,r=[],s=[],c,l=!1,u=-1,f=-1,h=t.charAt(0)==="."?"":n.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",d=this;function m(){if(c){switch(c){case"*":i+=QC,a=!0;break;case"?":i+=JC,a=!0;break;default:i+="\\"+c;break}d.debug("clearStateChar %j %j",c,i),c=!1}}for(var g=0,b=t.length,v;g-1;F--){var I=s[F],L=i.slice(0,I.reStart),V=i.slice(I.reStart,I.reEnd-8),q=i.slice(I.reEnd-8,I.reEnd),S=i.slice(I.reEnd);q+=S;var D=L.split("(").length-1,R=S;for(g=0;g"u"&&(n=this.partial),this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&n)return!0;var i=this.options;QP.sep!=="/"&&(e=e.split(QP.sep).join("/")),e=e.split(yee),this.debug(this.pattern,"split",e);var a=this.set;this.debug(this.pattern,"set",a);var o,r;for(r=e.length-1;r>=0&&(o=e[r],!o);r--);for(r=0;r>> no match, partial?`,t,u,e,f),u===r))}var d;if(typeof c=="string"?(d=l===c,this.debug("string match",c,l,d)):(d=l.match(c),this.debug("pattern match",c,l,d)),!d)return!1}if(a===r&&o===s)return!0;if(a===r)return n;if(o===s)return a===r-1&&t[a]==="";throw new Error("wtf?")};function KUe(t){return t.replace(/\\(.)/g,"$1")}function YUe(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}Object.defineProperty(Cb,"__esModule",{value:!0});Cb.minimatch=void 0;const JUe=vr,QUe=(0,JUe.__importDefault)(NUe),ZUe={matchBase:!0};function XUe(t,e){return(0,QUe.default)(t,e,ZUe)}Cb.minimatch=XUe;var r0={},mh={};Object.defineProperty(mh,"__esModule",{value:!0});mh.getDiagnosticSeverity=mh.DEFAULT_SEVERITY_LEVEL=void 0;const Dv=xb;mh.DEFAULT_SEVERITY_LEVEL=Dv.DiagnosticSeverity.Warning;const e5e={error:Dv.DiagnosticSeverity.Error,warn:Dv.DiagnosticSeverity.Warning,info:Dv.DiagnosticSeverity.Information,hint:Dv.DiagnosticSeverity.Hint,off:-1};function t5e(t){return Number.isNaN(Number(t))?e5e[t]:Number(t)}mh.getDiagnosticSeverity=t5e;var jh={};Object.defineProperty(jh,"__esModule",{value:!0});jh.Formats=void 0;function r5e(t){var e;return(e=t.displayName)!==null&&e!==void 0?e:t.name}class n5e extends Set{toJSON(){return Array.from(this).map(r5e)}}jh.Formats=n5e;var yh={},Ec={};Object.defineProperty(Ec,"__esModule",{value:!0});Ec.isScopedAliasDefinition=Ec.isValidAliasTarget=Ec.isSimpleAliasDefinition=void 0;const i5e=Hr,a5e=ir;function s5e(t){return Array.isArray(t)}Ec.isSimpleAliasDefinition=s5e;function vee(t){const e=t.formats;return!Array.isArray(e)&&!(e instanceof Set)?!1:Array.isArray(t.given)&&t.given.every(a5e.isString)}Ec.isValidAliasTarget=vee;function o5e(t){return(0,i5e.isPlainObject)(t)&&Array.isArray(t.targets)&&t.targets.every(vee)}Ec.isScopedAliasDefinition=o5e;Object.defineProperty(yh,"__esModule",{value:!0});yh.resolveAlias=yh.resolveAliasForFormats=void 0;const EB=Ec,l5e=/^#([A-Za-z0-9_-]+)/;function Pee({targets:t},e){if(e===null||e.size===0)return null;for(let n=t.length-1;n>=0;n--){const i=t[n];for(const a of i.formats)if(e.has(a))return i.given}return null}yh.resolveAliasForFormats=Pee;function c5e(t,e,n){return bee(t,e,n,new Set)}yh.resolveAlias=c5e;function bee(t,e,n,i){var a;const o=[];if(e.startsWith("#")){const r=(a=l5e.exec(e))===null||a===void 0?void 0:a[1];if(r==null)throw new TypeError("Alias must match /^#([A-Za-z0-9_-]+)/");if(i.has(r)){const l=[...i,r];throw new Error(`Alias "${l[0]}" is circular. Resolution stack: ${l.join(" -> ")}`)}if(i.add(r),t===null||!(r in t))throw new ReferenceError(`Alias "${r}" does not exist`);const s=t[r];let c;(0,EB.isSimpleAliasDefinition)(s)?c=s:(0,EB.isScopedAliasDefinition)(s)?c=Pee(s,n):c=null,c!==null&&o.push(...c.flatMap(l=>bee(t,l+e.slice(r.length+1),n,new Set([...i]))))}else o.push(e);return o}var kv,Ov,N$,wd;Object.defineProperty(r0,"__esModule",{value:!0});r0.Rule=void 0;const Rs=vr,u5e=ir,IB=Ih,f5e=Hr,CB=mh,p5e=Cb,h5e=jh,TB=yh;class ER{constructor(e,n,i){var a,o,r,s;this.name=e,this.definition=n,this.owner=i,kv.set(this,void 0),Ov.set(this,void 0),N$.set(this,void 0),wd.set(this,void 0),this.recommended=n.recommended!==!1,(0,Rs.__classPrivateFieldSet)(this,Ov,this.recommended,"f"),this.description=(a=n.description)!==null&&a!==void 0?a:null,this.message=(o=n.message)!==null&&o!==void 0?o:null,this.documentationUrl=(r=n.documentationUrl)!==null&&r!==void 0?r:null,this.severity=n.severity,this.resolved=n.resolved!==!1,this.formats="formats"in n?new h5e.Formats(n.formats):null,this.then=n.then,this.given=n.given,this.extensions=(s=n.extensions)!==null&&s!==void 0?s:null}get enabled(){return(0,Rs.__classPrivateFieldGet)(this,Ov,"f")||this.overrides!==void 0}set enabled(e){(0,Rs.__classPrivateFieldSet)(this,Ov,e,"f")}static isEnabled(e,n){return n==="all"||n==="recommended"&&e.recommended}getSeverityForSource(e,n){if(this.overrides===void 0||this.overrides.definition.size===0)return this.severity;const i=(0,IB.relative)((0,IB.dirname)(this.overrides.rulesetSource),e),a=[];for(const[c,l]of this.overrides.definition.entries())(0,p5e.minimatch)(i,c)&&a.push(l);if(a.length===0)return this.severity;let o=this.severity,r="";const s=(0,f5e.pathToPointer)(n);for(const c of a)for(const[l,u]of c.entries())l.length>=r.length&&(s===l||s.startsWith(`${l}/`))&&(r=l,o=u);return o}get severity(){return(0,Rs.__classPrivateFieldGet)(this,kv,"f")}set severity(e){e===void 0?(0,Rs.__classPrivateFieldSet)(this,kv,CB.DEFAULT_SEVERITY_LEVEL,"f"):(0,Rs.__classPrivateFieldSet)(this,kv,(0,CB.getDiagnosticSeverity)(e),"f")}get then(){return(0,Rs.__classPrivateFieldGet)(this,N$,"f")}set then(e){(0,Rs.__classPrivateFieldSet)(this,N$,Array.isArray(e)?e:[e],"f")}get given(){return(0,Rs.__classPrivateFieldGet)(this,wd,"f")}set given(e){const n=Array.isArray(e)?e:[e];(0,Rs.__classPrivateFieldSet)(this,wd,this.owner.hasComplexAliases?n:n.flatMap(i=>(0,TB.resolveAlias)(this.owner.aliases,i,null)).filter(u5e.isString),"f")}getGivenForFormats(e){return this.owner.hasComplexAliases?(0,Rs.__classPrivateFieldGet)(this,wd,"f").flatMap(n=>(0,TB.resolveAlias)(this.owner.aliases,n,e)):(0,Rs.__classPrivateFieldGet)(this,wd,"f")}matchesFormat(e){if(this.formats===null)return!0;if(e===null)return!1;for(const n of this.formats)if(e.has(n))return!0;return!1}clone(){return new ER(this.name,this.definition,this.owner)}toJSON(){return{name:this.name,recommended:this.recommended,enabled:this.enabled,description:this.description,message:this.message,documentationUrl:this.documentationUrl,severity:this.severity,resolved:this.resolved,formats:this.formats,then:this.then.map(e=>({...e,function:e.function.name})),given:Array.isArray(this.definition.given)?this.definition.given:[this.definition.given],owner:this.owner.id,extensions:this.extensions}}}r0.Rule=ER;kv=new WeakMap,Ov=new WeakMap,N$=new WeakMap,wd=new WeakMap;var ax={},Gl={},Tb={};Object.defineProperty(Tb,"__esModule",{value:!0});Tb.isAggregateError=void 0;const d5e=ir;function m5e(t){return(0,d5e.isError)(t)&&t.constructor.name==="AggregateError"}Tb.isAggregateError=m5e;Object.defineProperty(Gl,"__esModule",{value:!0});Gl.convertAjvErrors=Gl.RulesetValidationError=void 0;const y5e=Tb;class wee extends Error{constructor(e,n,i){super(n),this.code=e,this.message=n,this.path=i}}Gl.RulesetValidationError=wee;const g5e=/^\/rules\/[^/]+/,jB=/^\/(?:aliases|extends|overrides(?:\/\d+\/extends)?)/;function v5e(t){const e=[...t].sort((i,a)=>{const o=i.instancePath.length-a.instancePath.length;return o===0?i.keyword==="errorMessage"&&a.keyword!=="errorMessage"?-1:0:o}).filter((i,a,o)=>a===0||o[a-1].instancePath!==i.instancePath),n=[];e:for(let i=0;i{var a;if(i.keyword==="x-spectral-runtime")return $ee(i.params.errors);const o=i.instancePath.slice(1).split("/");return new wee(Aee(o,i.keyword),(a=i.message)!==null&&a!==void 0?a:"unknown error",o)})}Gl.convertAjvErrors=v5e;function $ee(t){return(0,y5e.isAggregateError)(t)?t.errors.flatMap($ee):t}function Aee(t,e){if(t.length===0)return"generic-validation-error";if(t.length===1&&e!=="errorMessage")return"invalid-ruleset-definition";switch(t[0]){case"rules":return P5e(t);case"parserOptions":return"invalid-parser-options-definition";case"aliases":return w5e(t);case"extends":return"invalid-extend-definition";case"overrides":return b5e(t,e);case"formats":return t.length===1?"invalid-ruleset-definition":"invalid-format";default:return"generic-validation-error"}}function P5e(t){return t.length===3&&t[2]==="severity"?"invalid-severity":t.length===4&&t[2]==="formats"?"invalid-format":t.length===4&&t[2]==="given"?"invalid-given-definition":"invalid-rule-definition"}function b5e(t,e){return t.length>=3?Aee(t.slice(2),e):"invalid-override-definition"}function w5e(t){if(t.length===6){if(t[4]==="given")return"invalid-given-definition";if(t[4]==="formats")return"invalid-format"}return"invalid-alias-definition"}var gh={},sx={},ZC={exports:{}},_f={},Ka={},Pg={},n0={},Et={},bg={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.regexpCode=t.getEsmExportName=t.getProperty=t.safeStringify=t.stringify=t.strConcat=t.addCodeArg=t.str=t._=t.nil=t._Code=t.Name=t.IDENTIFIER=t._CodeOrName=void 0;class e{}t._CodeOrName=e,t.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class n extends e{constructor(P){if(super(),!t.IDENTIFIER.test(P))throw new Error("CodeGen: name must be a valid identifier");this.str=P}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}t.Name=n;class i extends e{constructor(P){super(),this._items=typeof P=="string"?[P]:P}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const P=this._items[0];return P===""||P==='""'}get str(){var P;return(P=this._str)!==null&&P!==void 0?P:this._str=this._items.reduce((A,_)=>`${A}${_}`,"")}get names(){var P;return(P=this._names)!==null&&P!==void 0?P:this._names=this._items.reduce((A,_)=>(_ instanceof n&&(A[_.str]=(A[_.str]||0)+1),A),{})}}t._Code=i,t.nil=new i("");function a(v,...P){const A=[v[0]];let _=0;for(;_{if(f.scopePath===void 0)throw new Error(`CodeGen: name "${f}" has no value`);return(0,e._)`${l}${f.scopePath}`})}scopeCode(l=this._values,u,f){return this._reduceValues(l,h=>{if(h.value===void 0)throw new Error(`CodeGen: name "${h}" has no value`);return h.value.code},u,f)}_reduceValues(l,u,f={},h){let d=e.nil;for(const m in l){const g=l[m];if(!g)continue;const b=f[m]=f[m]||new Map;g.forEach(v=>{if(b.has(v))return;b.set(v,i.Started);let P=u(v);if(P){const A=this.opts.es5?t.varKinds.var:t.varKinds.const;d=(0,e._)`${d}${A} ${v} = ${P};${this.opts._n}`}else if(P=h==null?void 0:h(v))d=(0,e._)`${d}${P}${this.opts._n}`;else throw new n(v);b.set(v,i.Completed)})}return d}}t.ValueScope=s})(XC);(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.or=t.and=t.not=t.CodeGen=t.operators=t.varKinds=t.ValueScopeName=t.ValueScope=t.Scope=t.Name=t.regexpCode=t.stringify=t.getProperty=t.nil=t.strConcat=t.str=t._=void 0;const e=bg,n=XC;var i=bg;Object.defineProperty(t,"_",{enumerable:!0,get:function(){return i._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return i.str}}),Object.defineProperty(t,"strConcat",{enumerable:!0,get:function(){return i.strConcat}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return i.nil}}),Object.defineProperty(t,"getProperty",{enumerable:!0,get:function(){return i.getProperty}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return i.stringify}}),Object.defineProperty(t,"regexpCode",{enumerable:!0,get:function(){return i.regexpCode}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return i.Name}});var a=XC;Object.defineProperty(t,"Scope",{enumerable:!0,get:function(){return a.Scope}}),Object.defineProperty(t,"ValueScope",{enumerable:!0,get:function(){return a.ValueScope}}),Object.defineProperty(t,"ValueScopeName",{enumerable:!0,get:function(){return a.ValueScopeName}}),Object.defineProperty(t,"varKinds",{enumerable:!0,get:function(){return a.varKinds}}),t.operators={GT:new e._Code(">"),GTE:new e._Code(">="),LT:new e._Code("<"),LTE:new e._Code("<="),EQ:new e._Code("==="),NEQ:new e._Code("!=="),NOT:new e._Code("!"),OR:new e._Code("||"),AND:new e._Code("&&"),ADD:new e._Code("+")};class o{optimizeNodes(){return this}optimizeNames(T,G){return this}}class r extends o{constructor(T,G,oe){super(),this.varKind=T,this.name=G,this.rhs=oe}render({es5:T,_n:G}){const oe=T?n.varKinds.var:this.varKind,ve=this.rhs===void 0?"":` = ${this.rhs}`;return`${oe} ${this.name}${ve};`+G}optimizeNames(T,G){if(T[this.name.str])return this.rhs&&(this.rhs=D(this.rhs,T,G)),this}get names(){return this.rhs instanceof e._CodeOrName?this.rhs.names:{}}}class s extends o{constructor(T,G,oe){super(),this.lhs=T,this.rhs=G,this.sideEffects=oe}render({_n:T}){return`${this.lhs} = ${this.rhs};`+T}optimizeNames(T,G){if(!(this.lhs instanceof e.Name&&!T[this.lhs.str]&&!this.sideEffects))return this.rhs=D(this.rhs,T,G),this}get names(){const T=this.lhs instanceof e.Name?{}:{...this.lhs.names};return S(T,this.rhs)}}class c extends s{constructor(T,G,oe,ve){super(T,oe,ve),this.op=G}render({_n:T}){return`${this.lhs} ${this.op}= ${this.rhs};`+T}}class l extends o{constructor(T){super(),this.label=T,this.names={}}render({_n:T}){return`${this.label}:`+T}}class u extends o{constructor(T){super(),this.label=T,this.names={}}render({_n:T}){return`break${this.label?` ${this.label}`:""};`+T}}class f extends o{constructor(T){super(),this.error=T}render({_n:T}){return`throw ${this.error};`+T}get names(){return this.error.names}}class h extends o{constructor(T){super(),this.code=T}render({_n:T}){return`${this.code};`+T}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(T,G){return this.code=D(this.code,T,G),this}get names(){return this.code instanceof e._CodeOrName?this.code.names:{}}}class d extends o{constructor(T=[]){super(),this.nodes=T}render(T){return this.nodes.reduce((G,oe)=>G+oe.render(T),"")}optimizeNodes(){const{nodes:T}=this;let G=T.length;for(;G--;){const oe=T[G].optimizeNodes();Array.isArray(oe)?T.splice(G,1,...oe):oe?T[G]=oe:T.splice(G,1)}return T.length>0?this:void 0}optimizeNames(T,G){const{nodes:oe}=this;let ve=oe.length;for(;ve--;){const ie=oe[ve];ie.optimizeNames(T,G)||(R(T,ie.names),oe.splice(ve,1))}return oe.length>0?this:void 0}get names(){return this.nodes.reduce((T,G)=>q(T,G.names),{})}}class m extends d{render(T){return"{"+T._n+super.render(T)+"}"+T._n}}class g extends d{}class b extends m{}b.kind="else";class v extends m{constructor(T,G){super(G),this.condition=T}render(T){let G=`if(${this.condition})`+super.render(T);return this.else&&(G+="else "+this.else.render(T)),G}optimizeNodes(){super.optimizeNodes();const T=this.condition;if(T===!0)return this.nodes;let G=this.else;if(G){const oe=G.optimizeNodes();G=this.else=Array.isArray(oe)?new b(oe):oe}if(G)return T===!1?G instanceof v?G:G.nodes:this.nodes.length?this:new v(C(T),G instanceof v?[G]:G.nodes);if(!(T===!1||!this.nodes.length))return this}optimizeNames(T,G){var oe;if(this.else=(oe=this.else)===null||oe===void 0?void 0:oe.optimizeNames(T,G),!!(super.optimizeNames(T,G)||this.else))return this.condition=D(this.condition,T,G),this}get names(){const T=super.names;return S(T,this.condition),this.else&&q(T,this.else.names),T}}v.kind="if";class P extends m{}P.kind="for";class A extends P{constructor(T){super(),this.iteration=T}render(T){return`for(${this.iteration})`+super.render(T)}optimizeNames(T,G){if(super.optimizeNames(T,G))return this.iteration=D(this.iteration,T,G),this}get names(){return q(super.names,this.iteration.names)}}class _ extends P{constructor(T,G,oe,ve){super(),this.varKind=T,this.name=G,this.from=oe,this.to=ve}render(T){const G=T.es5?n.varKinds.var:this.varKind,{name:oe,from:ve,to:ie}=this;return`for(${G} ${oe}=${ve}; ${oe}<${ie}; ${oe}++)`+super.render(T)}get names(){const T=S(super.names,this.from);return S(T,this.to)}}class x extends P{constructor(T,G,oe,ve){super(),this.loop=T,this.varKind=G,this.name=oe,this.iterable=ve}render(T){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(T)}optimizeNames(T,G){if(super.optimizeNames(T,G))return this.iterable=D(this.iterable,T,G),this}get names(){return q(super.names,this.iterable.names)}}class E extends m{constructor(T,G,oe){super(),this.name=T,this.args=G,this.async=oe}render(T){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(T)}}E.kind="func";class j extends d{render(T){return"return "+super.render(T)}}j.kind="return";class F extends m{render(T){let G="try"+super.render(T);return this.catch&&(G+=this.catch.render(T)),this.finally&&(G+=this.finally.render(T)),G}optimizeNodes(){var T,G;return super.optimizeNodes(),(T=this.catch)===null||T===void 0||T.optimizeNodes(),(G=this.finally)===null||G===void 0||G.optimizeNodes(),this}optimizeNames(T,G){var oe,ve;return super.optimizeNames(T,G),(oe=this.catch)===null||oe===void 0||oe.optimizeNames(T,G),(ve=this.finally)===null||ve===void 0||ve.optimizeNames(T,G),this}get names(){const T=super.names;return this.catch&&q(T,this.catch.names),this.finally&&q(T,this.finally.names),T}}class I extends m{constructor(T){super(),this.error=T}render(T){return`catch(${this.error})`+super.render(T)}}I.kind="catch";class L extends m{render(T){return"finally"+super.render(T)}}L.kind="finally";class V{constructor(T,G={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...G,_n:G.lines?` +`:""},this._extScope=T,this._scope=new n.Scope({parent:T}),this._nodes=[new g]}toString(){return this._root.render(this.opts)}name(T){return this._scope.name(T)}scopeName(T){return this._extScope.name(T)}scopeValue(T,G){const oe=this._extScope.value(T,G);return(this._values[oe.prefix]||(this._values[oe.prefix]=new Set)).add(oe),oe}getScopeValue(T,G){return this._extScope.getValue(T,G)}scopeRefs(T){return this._extScope.scopeRefs(T,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(T,G,oe,ve){const ie=this._scope.toName(G);return oe!==void 0&&ve&&(this._constants[ie.str]=oe),this._leafNode(new r(T,ie,oe)),ie}const(T,G,oe){return this._def(n.varKinds.const,T,G,oe)}let(T,G,oe){return this._def(n.varKinds.let,T,G,oe)}var(T,G,oe){return this._def(n.varKinds.var,T,G,oe)}assign(T,G,oe){return this._leafNode(new s(T,G,oe))}add(T,G){return this._leafNode(new c(T,t.operators.ADD,G))}code(T){return typeof T=="function"?T():T!==e.nil&&this._leafNode(new h(T)),this}object(...T){const G=["{"];for(const[oe,ve]of T)G.length>1&&G.push(","),G.push(oe),(oe!==ve||this.opts.es5)&&(G.push(":"),(0,e.addCodeArg)(G,ve));return G.push("}"),new e._Code(G)}if(T,G,oe){if(this._blockNode(new v(T)),G&&oe)this.code(G).else().code(oe).endIf();else if(G)this.code(G).endIf();else if(oe)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(T){return this._elseNode(new v(T))}else(){return this._elseNode(new b)}endIf(){return this._endBlockNode(v,b)}_for(T,G){return this._blockNode(T),G&&this.code(G).endFor(),this}for(T,G){return this._for(new A(T),G)}forRange(T,G,oe,ve,ie=this.opts.es5?n.varKinds.var:n.varKinds.let){const Ae=this._scope.toName(T);return this._for(new _(ie,Ae,G,oe),()=>ve(Ae))}forOf(T,G,oe,ve=n.varKinds.const){const ie=this._scope.toName(T);if(this.opts.es5){const Ae=G instanceof e.Name?G:this.var("_arr",G);return this.forRange("_i",0,(0,e._)`${Ae}.length`,pe=>{this.var(ie,(0,e._)`${Ae}[${pe}]`),oe(ie)})}return this._for(new x("of",ve,ie,G),()=>oe(ie))}forIn(T,G,oe,ve=this.opts.es5?n.varKinds.var:n.varKinds.const){if(this.opts.ownProperties)return this.forOf(T,(0,e._)`Object.keys(${G})`,oe);const ie=this._scope.toName(T);return this._for(new x("in",ve,ie,G),()=>oe(ie))}endFor(){return this._endBlockNode(P)}label(T){return this._leafNode(new l(T))}break(T){return this._leafNode(new u(T))}return(T){const G=new j;if(this._blockNode(G),this.code(T),G.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(j)}try(T,G,oe){if(!G&&!oe)throw new Error('CodeGen: "try" without "catch" and "finally"');const ve=new F;if(this._blockNode(ve),this.code(T),G){const ie=this.name("e");this._currNode=ve.catch=new I(ie),G(ie)}return oe&&(this._currNode=ve.finally=new L,this.code(oe)),this._endBlockNode(I,L)}throw(T){return this._leafNode(new f(T))}block(T,G){return this._blockStarts.push(this._nodes.length),T&&this.code(T).endBlock(G),this}endBlock(T){const G=this._blockStarts.pop();if(G===void 0)throw new Error("CodeGen: not in self-balancing block");const oe=this._nodes.length-G;if(oe<0||T!==void 0&&oe!==T)throw new Error(`CodeGen: wrong number of nodes: ${oe} vs ${T} expected`);return this._nodes.length=G,this}func(T,G=e.nil,oe,ve){return this._blockNode(new E(T,G,oe)),ve&&this.code(ve).endFunc(),this}endFunc(){return this._endBlockNode(E)}optimize(T=1){for(;T-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(T){return this._currNode.nodes.push(T),this}_blockNode(T){this._currNode.nodes.push(T),this._nodes.push(T)}_endBlockNode(T,G){const oe=this._currNode;if(oe instanceof T||G&&oe instanceof G)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${G?`${T.kind}/${G.kind}`:T.kind}"`)}_elseNode(T){const G=this._currNode;if(!(G instanceof v))throw new Error('CodeGen: "else" without "if"');return this._currNode=G.else=T,this}get _root(){return this._nodes[0]}get _currNode(){const T=this._nodes;return T[T.length-1]}set _currNode(T){const G=this._nodes;G[G.length-1]=T}}t.CodeGen=V;function q(W,T){for(const G in T)W[G]=(W[G]||0)+(T[G]||0);return W}function S(W,T){return T instanceof e._CodeOrName?q(W,T.names):W}function D(W,T,G){if(W instanceof e.Name)return oe(W);if(!ve(W))return W;return new e._Code(W._items.reduce((ie,Ae)=>(Ae instanceof e.Name&&(Ae=oe(Ae)),Ae instanceof e._Code?ie.push(...Ae._items):ie.push(Ae),ie),[]));function oe(ie){const Ae=G[ie.str];return Ae===void 0||T[ie.str]!==1?ie:(delete T[ie.str],Ae)}function ve(ie){return ie instanceof e._Code&&ie._items.some(Ae=>Ae instanceof e.Name&&T[Ae.str]===1&&G[Ae.str]!==void 0)}}function R(W,T){for(const G in T)W[G]=(W[G]||0)-(T[G]||0)}function C(W){return typeof W=="boolean"||typeof W=="number"||W===null?!W:(0,e._)`!${U(W)}`}t.not=C;const H=M(t.operators.AND);function X(...W){return W.reduce(H)}t.and=X;const ae=M(t.operators.OR);function z(...W){return W.reduce(ae)}t.or=z;function M(W){return(T,G)=>T===e.nil?G:G===e.nil?T:(0,e._)`${U(T)} ${W} ${U(G)}`}function U(W){return W instanceof e.Name?W:(0,e._)`(${W})`}})(Et);var at={};Object.defineProperty(at,"__esModule",{value:!0});at.checkStrictMode=at.getErrorPath=at.Type=at.useFunc=at.setEvaluated=at.evaluatedPropsToName=at.mergeEvaluated=at.eachItem=at.unescapeJsonPointer=at.escapeJsonPointer=at.escapeFragment=at.unescapeFragment=at.schemaRefOrVal=at.schemaHasRulesButRef=at.schemaHasRules=at.checkUnknownRules=at.alwaysValidSchema=at.toHash=void 0;const Rr=Et,$5e=bg;function A5e(t){const e={};for(const n of t)e[n]=!0;return e}at.toHash=A5e;function S5e(t,e){return typeof e=="boolean"?e:Object.keys(e).length===0?!0:(See(t,e),!_ee(e,t.self.RULES.all))}at.alwaysValidSchema=S5e;function See(t,e=t.schema){const{opts:n,self:i}=t;if(!n.strictSchema||typeof e=="boolean")return;const a=i.RULES.keywords;for(const o in e)a[o]||kee(t,`unknown keyword: "${o}"`)}at.checkUnknownRules=See;function _ee(t,e){if(typeof t=="boolean")return!t;for(const n in t)if(e[n])return!0;return!1}at.schemaHasRules=_ee;function _5e(t,e){if(typeof t=="boolean")return!t;for(const n in t)if(n!=="$ref"&&e.all[n])return!0;return!1}at.schemaHasRulesButRef=_5e;function x5e({topSchemaRef:t,schemaPath:e},n,i,a){if(!a){if(typeof n=="number"||typeof n=="boolean")return n;if(typeof n=="string")return(0,Rr._)`${n}`}return(0,Rr._)`${t}${e}${(0,Rr.getProperty)(i)}`}at.schemaRefOrVal=x5e;function D5e(t){return xee(decodeURIComponent(t))}at.unescapeFragment=D5e;function k5e(t){return encodeURIComponent(IR(t))}at.escapeFragment=k5e;function IR(t){return typeof t=="number"?`${t}`:t.replace(/~/g,"~0").replace(/\//g,"~1")}at.escapeJsonPointer=IR;function xee(t){return t.replace(/~1/g,"/").replace(/~0/g,"~")}at.unescapeJsonPointer=xee;function O5e(t,e){if(Array.isArray(t))for(const n of t)e(n);else e(t)}at.eachItem=O5e;function MB({mergeNames:t,mergeToName:e,mergeValues:n,resultToName:i}){return(a,o,r,s)=>{const c=r===void 0?o:r instanceof Rr.Name?(o instanceof Rr.Name?t(a,o,r):e(a,o,r),r):o instanceof Rr.Name?(e(a,r,o),o):n(o,r);return s===Rr.Name&&!(c instanceof Rr.Name)?i(a,c):c}}at.mergeEvaluated={props:MB({mergeNames:(t,e,n)=>t.if((0,Rr._)`${n} !== true && ${e} !== undefined`,()=>{t.if((0,Rr._)`${e} === true`,()=>t.assign(n,!0),()=>t.assign(n,(0,Rr._)`${n} || {}`).code((0,Rr._)`Object.assign(${n}, ${e})`))}),mergeToName:(t,e,n)=>t.if((0,Rr._)`${n} !== true`,()=>{e===!0?t.assign(n,!0):(t.assign(n,(0,Rr._)`${n} || {}`),CR(t,n,e))}),mergeValues:(t,e)=>t===!0?!0:{...t,...e},resultToName:Dee}),items:MB({mergeNames:(t,e,n)=>t.if((0,Rr._)`${n} !== true && ${e} !== undefined`,()=>t.assign(n,(0,Rr._)`${e} === true ? true : ${n} > ${e} ? ${n} : ${e}`)),mergeToName:(t,e,n)=>t.if((0,Rr._)`${n} !== true`,()=>t.assign(n,e===!0?!0:(0,Rr._)`${n} > ${e} ? ${n} : ${e}`)),mergeValues:(t,e)=>t===!0?!0:Math.max(t,e),resultToName:(t,e)=>t.var("items",e)})};function Dee(t,e){if(e===!0)return t.var("props",!0);const n=t.var("props",(0,Rr._)`{}`);return e!==void 0&&CR(t,n,e),n}at.evaluatedPropsToName=Dee;function CR(t,e,n){Object.keys(n).forEach(i=>t.assign((0,Rr._)`${e}${(0,Rr.getProperty)(i)}`,!0))}at.setEvaluated=CR;const RB={};function E5e(t,e){return t.scopeValue("func",{ref:e,code:RB[e.code]||(RB[e.code]=new $5e._Code(e.code))})}at.useFunc=E5e;var eT;(function(t){t[t.Num=0]="Num",t[t.Str=1]="Str"})(eT||(at.Type=eT={}));function I5e(t,e,n){if(t instanceof Rr.Name){const i=e===eT.Num;return n?i?(0,Rr._)`"[" + ${t} + "]"`:(0,Rr._)`"['" + ${t} + "']"`:i?(0,Rr._)`"/" + ${t}`:(0,Rr._)`"/" + ${t}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return n?(0,Rr.getProperty)(t).toString():"/"+IR(t)}at.getErrorPath=I5e;function kee(t,e,n=t.opts.strictSchema){if(n){if(e=`strict mode: ${e}`,n===!0)throw new Error(e);t.self.logger.warn(e)}}at.checkStrictMode=kee;var xa={};Object.defineProperty(xa,"__esModule",{value:!0});const Fi=Et,C5e={data:new Fi.Name("data"),valCxt:new Fi.Name("valCxt"),instancePath:new Fi.Name("instancePath"),parentData:new Fi.Name("parentData"),parentDataProperty:new Fi.Name("parentDataProperty"),rootData:new Fi.Name("rootData"),dynamicAnchors:new Fi.Name("dynamicAnchors"),vErrors:new Fi.Name("vErrors"),errors:new Fi.Name("errors"),this:new Fi.Name("this"),self:new Fi.Name("self"),scope:new Fi.Name("scope"),json:new Fi.Name("json"),jsonPos:new Fi.Name("jsonPos"),jsonLen:new Fi.Name("jsonLen"),jsonPart:new Fi.Name("jsonPart")};xa.default=C5e;(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.extendErrors=t.resetErrorsCount=t.reportExtraError=t.reportError=t.keyword$DataError=t.keywordError=void 0;const e=Et,n=at,i=xa;t.keywordError={message:({keyword:b})=>(0,e.str)`must pass "${b}" keyword validation`},t.keyword$DataError={message:({keyword:b,schemaType:v})=>v?(0,e.str)`"${b}" keyword must be ${v} ($data)`:(0,e.str)`"${b}" keyword is invalid ($data)`};function a(b,v=t.keywordError,P,A){const{it:_}=b,{gen:x,compositeRule:E,allErrors:j}=_,F=f(b,v,P);A??(E||j)?c(x,F):l(_,(0,e._)`[${F}]`)}t.reportError=a;function o(b,v=t.keywordError,P){const{it:A}=b,{gen:_,compositeRule:x,allErrors:E}=A,j=f(b,v,P);c(_,j),x||E||l(A,i.default.vErrors)}t.reportExtraError=o;function r(b,v){b.assign(i.default.errors,v),b.if((0,e._)`${i.default.vErrors} !== null`,()=>b.if(v,()=>b.assign((0,e._)`${i.default.vErrors}.length`,v),()=>b.assign(i.default.vErrors,null)))}t.resetErrorsCount=r;function s({gen:b,keyword:v,schemaValue:P,data:A,errsCount:_,it:x}){if(_===void 0)throw new Error("ajv implementation error");const E=b.name("err");b.forRange("i",_,i.default.errors,j=>{b.const(E,(0,e._)`${i.default.vErrors}[${j}]`),b.if((0,e._)`${E}.instancePath === undefined`,()=>b.assign((0,e._)`${E}.instancePath`,(0,e.strConcat)(i.default.instancePath,x.errorPath))),b.assign((0,e._)`${E}.schemaPath`,(0,e.str)`${x.errSchemaPath}/${v}`),x.opts.verbose&&(b.assign((0,e._)`${E}.schema`,P),b.assign((0,e._)`${E}.data`,A))})}t.extendErrors=s;function c(b,v){const P=b.const("err",v);b.if((0,e._)`${i.default.vErrors} === null`,()=>b.assign(i.default.vErrors,(0,e._)`[${P}]`),(0,e._)`${i.default.vErrors}.push(${P})`),b.code((0,e._)`${i.default.errors}++`)}function l(b,v){const{gen:P,validateName:A,schemaEnv:_}=b;_.$async?P.throw((0,e._)`new ${b.ValidationError}(${v})`):(P.assign((0,e._)`${A}.errors`,v),P.return(!1))}const u={keyword:new e.Name("keyword"),schemaPath:new e.Name("schemaPath"),params:new e.Name("params"),propertyName:new e.Name("propertyName"),message:new e.Name("message"),schema:new e.Name("schema"),parentSchema:new e.Name("parentSchema")};function f(b,v,P){const{createErrors:A}=b.it;return A===!1?(0,e._)`{}`:h(b,v,P)}function h(b,v,P={}){const{gen:A,it:_}=b,x=[d(_,P),m(b,P)];return g(b,v,x),A.object(...x)}function d({errorPath:b},{instancePath:v}){const P=v?(0,e.str)`${b}${(0,n.getErrorPath)(v,n.Type.Str)}`:b;return[i.default.instancePath,(0,e.strConcat)(i.default.instancePath,P)]}function m({keyword:b,it:{errSchemaPath:v}},{schemaPath:P,parentSchema:A}){let _=A?v:(0,e.str)`${v}/${b}`;return P&&(_=(0,e.str)`${_}${(0,n.getErrorPath)(P,n.Type.Str)}`),[u.schemaPath,_]}function g(b,{params:v,message:P},A){const{keyword:_,data:x,schemaValue:E,it:j}=b,{opts:F,propertyName:I,topSchemaRef:L,schemaPath:V}=j;A.push([u.keyword,_],[u.params,typeof v=="function"?v(b):v||(0,e._)`{}`]),F.messages&&A.push([u.message,typeof P=="function"?P(b):P]),F.verbose&&A.push([u.schema,E],[u.parentSchema,(0,e._)`${L}${V}`],[i.default.data,x]),I&&A.push([u.propertyName,I])}})(n0);Object.defineProperty(Pg,"__esModule",{value:!0});Pg.boolOrEmptySchema=Pg.topBoolOrEmptySchema=void 0;const T5e=n0,j5e=Et,M5e=xa,R5e={message:"boolean schema is false"};function N5e(t){const{gen:e,schema:n,validateName:i}=t;n===!1?Oee(t,!1):typeof n=="object"&&n.$async===!0?e.return(M5e.default.data):(e.assign((0,j5e._)`${i}.errors`,null),e.return(!0))}Pg.topBoolOrEmptySchema=N5e;function L5e(t,e){const{gen:n,schema:i}=t;i===!1?(n.var(e,!1),Oee(t)):n.var(e,!0)}Pg.boolOrEmptySchema=L5e;function Oee(t,e){const{gen:n,data:i}=t,a={gen:n,keyword:"false schema",data:i,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:t};(0,T5e.reportError)(a,R5e,void 0,e)}var ei={},vh={};Object.defineProperty(vh,"__esModule",{value:!0});vh.getRules=vh.isJSONType=void 0;const F5e=["string","number","integer","boolean","null","object","array"],q5e=new Set(F5e);function z5e(t){return typeof t=="string"&&q5e.has(t)}vh.isJSONType=z5e;function U5e(){const t={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...t,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},t.number,t.string,t.array,t.object],post:{rules:[]},all:{},keywords:{}}}vh.getRules=U5e;var Ic={};Object.defineProperty(Ic,"__esModule",{value:!0});Ic.shouldUseRule=Ic.shouldUseGroup=Ic.schemaHasRulesForType=void 0;function B5e({schema:t,self:e},n){const i=e.RULES.types[n];return i&&i!==!0&&Eee(t,i)}Ic.schemaHasRulesForType=B5e;function Eee(t,e){return e.rules.some(n=>Iee(t,n))}Ic.shouldUseGroup=Eee;function Iee(t,e){var n;return t[e.keyword]!==void 0||((n=e.definition.implements)===null||n===void 0?void 0:n.some(i=>t[i]!==void 0))}Ic.shouldUseRule=Iee;Object.defineProperty(ei,"__esModule",{value:!0});ei.reportTypeError=ei.checkDataTypes=ei.checkDataType=ei.coerceAndCheckDataType=ei.getJSONTypes=ei.getSchemaTypes=ei.DataType=void 0;const V5e=vh,W5e=Ic,H5e=n0,qt=Et,Cee=at;var om;(function(t){t[t.Correct=0]="Correct",t[t.Wrong=1]="Wrong"})(om||(ei.DataType=om={}));function G5e(t){const e=Tee(t.type);if(e.includes("null")){if(t.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!e.length&&t.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');t.nullable===!0&&e.push("null")}return e}ei.getSchemaTypes=G5e;function Tee(t){const e=Array.isArray(t)?t:t?[t]:[];if(e.every(V5e.isJSONType))return e;throw new Error("type must be JSONType or JSONType[]: "+e.join(","))}ei.getJSONTypes=Tee;function K5e(t,e){const{gen:n,data:i,opts:a}=t,o=Y5e(e,a.coerceTypes),r=e.length>0&&!(o.length===0&&e.length===1&&(0,W5e.schemaHasRulesForType)(t,e[0]));if(r){const s=TR(e,i,a.strictNumbers,om.Wrong);n.if(s,()=>{o.length?J5e(t,e,o):jR(t)})}return r}ei.coerceAndCheckDataType=K5e;const jee=new Set(["string","number","integer","boolean","null"]);function Y5e(t,e){return e?t.filter(n=>jee.has(n)||e==="array"&&n==="array"):[]}function J5e(t,e,n){const{gen:i,data:a,opts:o}=t,r=i.let("dataType",(0,qt._)`typeof ${a}`),s=i.let("coerced",(0,qt._)`undefined`);o.coerceTypes==="array"&&i.if((0,qt._)`${r} == 'object' && Array.isArray(${a}) && ${a}.length == 1`,()=>i.assign(a,(0,qt._)`${a}[0]`).assign(r,(0,qt._)`typeof ${a}`).if(TR(e,a,o.strictNumbers),()=>i.assign(s,a))),i.if((0,qt._)`${s} !== undefined`);for(const l of n)(jee.has(l)||l==="array"&&o.coerceTypes==="array")&&c(l);i.else(),jR(t),i.endIf(),i.if((0,qt._)`${s} !== undefined`,()=>{i.assign(a,s),Q5e(t,s)});function c(l){switch(l){case"string":i.elseIf((0,qt._)`${r} == "number" || ${r} == "boolean"`).assign(s,(0,qt._)`"" + ${a}`).elseIf((0,qt._)`${a} === null`).assign(s,(0,qt._)`""`);return;case"number":i.elseIf((0,qt._)`${r} == "boolean" || ${a} === null + || (${r} == "string" && ${a} && ${a} == +${a})`).assign(s,(0,qt._)`+${a}`);return;case"integer":i.elseIf((0,qt._)`${r} === "boolean" || ${a} === null + || (${r} === "string" && ${a} && ${a} == +${a} && !(${a} % 1))`).assign(s,(0,qt._)`+${a}`);return;case"boolean":i.elseIf((0,qt._)`${a} === "false" || ${a} === 0 || ${a} === null`).assign(s,!1).elseIf((0,qt._)`${a} === "true" || ${a} === 1`).assign(s,!0);return;case"null":i.elseIf((0,qt._)`${a} === "" || ${a} === 0 || ${a} === false`),i.assign(s,null);return;case"array":i.elseIf((0,qt._)`${r} === "string" || ${r} === "number" + || ${r} === "boolean" || ${a} === null`).assign(s,(0,qt._)`[${a}]`)}}}function Q5e({gen:t,parentData:e,parentDataProperty:n},i){t.if((0,qt._)`${e} !== undefined`,()=>t.assign((0,qt._)`${e}[${n}]`,i))}function tT(t,e,n,i=om.Correct){const a=i===om.Correct?qt.operators.EQ:qt.operators.NEQ;let o;switch(t){case"null":return(0,qt._)`${e} ${a} null`;case"array":o=(0,qt._)`Array.isArray(${e})`;break;case"object":o=(0,qt._)`${e} && typeof ${e} == "object" && !Array.isArray(${e})`;break;case"integer":o=r((0,qt._)`!(${e} % 1) && !isNaN(${e})`);break;case"number":o=r();break;default:return(0,qt._)`typeof ${e} ${a} ${t}`}return i===om.Correct?o:(0,qt.not)(o);function r(s=qt.nil){return(0,qt.and)((0,qt._)`typeof ${e} == "number"`,s,n?(0,qt._)`isFinite(${e})`:qt.nil)}}ei.checkDataType=tT;function TR(t,e,n,i){if(t.length===1)return tT(t[0],e,n,i);let a;const o=(0,Cee.toHash)(t);if(o.array&&o.object){const r=(0,qt._)`typeof ${e} != "object"`;a=o.null?r:(0,qt._)`!${e} || ${r}`,delete o.null,delete o.array,delete o.object}else a=qt.nil;o.number&&delete o.integer;for(const r in o)a=(0,qt.and)(a,tT(r,e,n,i));return a}ei.checkDataTypes=TR;const Z5e={message:({schema:t})=>`must be ${t}`,params:({schema:t,schemaValue:e})=>typeof t=="string"?(0,qt._)`{type: ${t}}`:(0,qt._)`{type: ${e}}`};function jR(t){const e=X5e(t);(0,H5e.reportError)(e,Z5e)}ei.reportTypeError=jR;function X5e(t){const{gen:e,data:n,schema:i}=t,a=(0,Cee.schemaRefOrVal)(t,i,"type");return{gen:e,keyword:"type",data:n,schema:i.type,schemaCode:a,schemaValue:a,parentSchema:i,params:{},it:t}}var ox={};Object.defineProperty(ox,"__esModule",{value:!0});ox.assignDefaults=void 0;const od=Et,eBe=at;function tBe(t,e){const{properties:n,items:i}=t.schema;if(e==="object"&&n)for(const a in n)NB(t,a,n[a].default);else e==="array"&&Array.isArray(i)&&i.forEach((a,o)=>NB(t,o,a.default))}ox.assignDefaults=tBe;function NB(t,e,n){const{gen:i,compositeRule:a,data:o,opts:r}=t;if(n===void 0)return;const s=(0,od._)`${o}${(0,od.getProperty)(e)}`;if(a){(0,eBe.checkStrictMode)(t,`default is ignored for: ${s}`);return}let c=(0,od._)`${s} === undefined`;r.useDefaults==="empty"&&(c=(0,od._)`${c} || ${s} === null || ${s} === ""`),i.if(c,(0,od._)`${s} = ${(0,od.stringify)(n)}`)}var Rl={},Gt={};Object.defineProperty(Gt,"__esModule",{value:!0});Gt.validateUnion=Gt.validateArray=Gt.usePattern=Gt.callValidateCode=Gt.schemaProperties=Gt.allSchemaProperties=Gt.noPropertyInData=Gt.propertyInData=Gt.isOwnProperty=Gt.hasPropFunc=Gt.reportMissingProp=Gt.checkMissingProp=Gt.checkReportMissingProp=void 0;const en=Et,MR=at,Fu=xa,rBe=at;function nBe(t,e){const{gen:n,data:i,it:a}=t;n.if(NR(n,i,e,a.opts.ownProperties),()=>{t.setParams({missingProperty:(0,en._)`${e}`},!0),t.error()})}Gt.checkReportMissingProp=nBe;function iBe({gen:t,data:e,it:{opts:n}},i,a){return(0,en.or)(...i.map(o=>(0,en.and)(NR(t,e,o,n.ownProperties),(0,en._)`${a} = ${o}`)))}Gt.checkMissingProp=iBe;function aBe(t,e){t.setParams({missingProperty:e},!0),t.error()}Gt.reportMissingProp=aBe;function Mee(t){return t.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,en._)`Object.prototype.hasOwnProperty`})}Gt.hasPropFunc=Mee;function RR(t,e,n){return(0,en._)`${Mee(t)}.call(${e}, ${n})`}Gt.isOwnProperty=RR;function sBe(t,e,n,i){const a=(0,en._)`${e}${(0,en.getProperty)(n)} !== undefined`;return i?(0,en._)`${a} && ${RR(t,e,n)}`:a}Gt.propertyInData=sBe;function NR(t,e,n,i){const a=(0,en._)`${e}${(0,en.getProperty)(n)} === undefined`;return i?(0,en.or)(a,(0,en.not)(RR(t,e,n))):a}Gt.noPropertyInData=NR;function Ree(t){return t?Object.keys(t).filter(e=>e!=="__proto__"):[]}Gt.allSchemaProperties=Ree;function oBe(t,e){return Ree(e).filter(n=>!(0,MR.alwaysValidSchema)(t,e[n]))}Gt.schemaProperties=oBe;function lBe({schemaCode:t,data:e,it:{gen:n,topSchemaRef:i,schemaPath:a,errorPath:o},it:r},s,c,l){const u=l?(0,en._)`${t}, ${e}, ${i}${a}`:e,f=[[Fu.default.instancePath,(0,en.strConcat)(Fu.default.instancePath,o)],[Fu.default.parentData,r.parentData],[Fu.default.parentDataProperty,r.parentDataProperty],[Fu.default.rootData,Fu.default.rootData]];r.opts.dynamicRef&&f.push([Fu.default.dynamicAnchors,Fu.default.dynamicAnchors]);const h=(0,en._)`${u}, ${n.object(...f)}`;return c!==en.nil?(0,en._)`${s}.call(${c}, ${h})`:(0,en._)`${s}(${h})`}Gt.callValidateCode=lBe;const cBe=(0,en._)`new RegExp`;function uBe({gen:t,it:{opts:e}},n){const i=e.unicodeRegExp?"u":"",{regExp:a}=e.code,o=a(n,i);return t.scopeValue("pattern",{key:o.toString(),ref:o,code:(0,en._)`${a.code==="new RegExp"?cBe:(0,rBe.useFunc)(t,a)}(${n}, ${i})`})}Gt.usePattern=uBe;function fBe(t){const{gen:e,data:n,keyword:i,it:a}=t,o=e.name("valid");if(a.allErrors){const s=e.let("valid",!0);return r(()=>e.assign(s,!1)),s}return e.var(o,!0),r(()=>e.break()),o;function r(s){const c=e.const("len",(0,en._)`${n}.length`);e.forRange("i",0,c,l=>{t.subschema({keyword:i,dataProp:l,dataPropType:MR.Type.Num},o),e.if((0,en.not)(o),s)})}}Gt.validateArray=fBe;function pBe(t){const{gen:e,schema:n,keyword:i,it:a}=t;if(!Array.isArray(n))throw new Error("ajv implementation error");if(n.some(c=>(0,MR.alwaysValidSchema)(a,c))&&!a.opts.unevaluated)return;const r=e.let("valid",!1),s=e.name("_valid");e.block(()=>n.forEach((c,l)=>{const u=t.subschema({keyword:i,schemaProp:l,compositeRule:!0},s);e.assign(r,(0,en._)`${r} || ${s}`),t.mergeValidEvaluated(u,s)||e.if((0,en.not)(r))})),t.result(r,()=>t.reset(),()=>t.error(!0))}Gt.validateUnion=pBe;Object.defineProperty(Rl,"__esModule",{value:!0});Rl.validateKeywordUsage=Rl.validSchemaType=Rl.funcKeywordCode=Rl.macroKeywordCode=void 0;const aa=Et,gp=xa,hBe=Gt,dBe=n0;function mBe(t,e){const{gen:n,keyword:i,schema:a,parentSchema:o,it:r}=t,s=e.macro.call(r.self,a,o,r),c=Nee(n,i,s);r.opts.validateSchema!==!1&&r.self.validateSchema(s,!0);const l=n.name("valid");t.subschema({schema:s,schemaPath:aa.nil,errSchemaPath:`${r.errSchemaPath}/${i}`,topSchemaRef:c,compositeRule:!0},l),t.pass(l,()=>t.error(!0))}Rl.macroKeywordCode=mBe;function yBe(t,e){var n;const{gen:i,keyword:a,schema:o,parentSchema:r,$data:s,it:c}=t;vBe(c,e);const l=!s&&e.compile?e.compile.call(c.self,o,r,c):e.validate,u=Nee(i,a,l),f=i.let("valid");t.block$data(f,h),t.ok((n=e.valid)!==null&&n!==void 0?n:f);function h(){if(e.errors===!1)g(),e.modifying&&LB(t),b(()=>t.error());else{const v=e.async?d():m();e.modifying&&LB(t),b(()=>gBe(t,v))}}function d(){const v=i.let("ruleErrs",null);return i.try(()=>g((0,aa._)`await `),P=>i.assign(f,!1).if((0,aa._)`${P} instanceof ${c.ValidationError}`,()=>i.assign(v,(0,aa._)`${P}.errors`),()=>i.throw(P))),v}function m(){const v=(0,aa._)`${u}.errors`;return i.assign(v,null),g(aa.nil),v}function g(v=e.async?(0,aa._)`await `:aa.nil){const P=c.opts.passContext?gp.default.this:gp.default.self,A=!("compile"in e&&!s||e.schema===!1);i.assign(f,(0,aa._)`${v}${(0,hBe.callValidateCode)(t,u,P,A)}`,e.modifying)}function b(v){var P;i.if((0,aa.not)((P=e.valid)!==null&&P!==void 0?P:f),v)}}Rl.funcKeywordCode=yBe;function LB(t){const{gen:e,data:n,it:i}=t;e.if(i.parentData,()=>e.assign(n,(0,aa._)`${i.parentData}[${i.parentDataProperty}]`))}function gBe(t,e){const{gen:n}=t;n.if((0,aa._)`Array.isArray(${e})`,()=>{n.assign(gp.default.vErrors,(0,aa._)`${gp.default.vErrors} === null ? ${e} : ${gp.default.vErrors}.concat(${e})`).assign(gp.default.errors,(0,aa._)`${gp.default.vErrors}.length`),(0,dBe.extendErrors)(t)},()=>t.error())}function vBe({schemaEnv:t},e){if(e.async&&!t.$async)throw new Error("async keyword in sync schema")}function Nee(t,e,n){if(n===void 0)throw new Error(`keyword "${e}" failed to compile`);return t.scopeValue("keyword",typeof n=="function"?{ref:n}:{ref:n,code:(0,aa.stringify)(n)})}function PBe(t,e,n=!1){return!e.length||e.some(i=>i==="array"?Array.isArray(t):i==="object"?t&&typeof t=="object"&&!Array.isArray(t):typeof t==i||n&&typeof t>"u")}Rl.validSchemaType=PBe;function bBe({schema:t,opts:e,self:n,errSchemaPath:i},a,o){if(Array.isArray(a.keyword)?!a.keyword.includes(o):a.keyword!==o)throw new Error("ajv implementation error");const r=a.dependencies;if(r!=null&&r.some(s=>!Object.prototype.hasOwnProperty.call(t,s)))throw new Error(`parent schema must have dependencies of ${o}: ${r.join(",")}`);if(a.validateSchema&&!a.validateSchema(t[o])){const c=`keyword "${o}" value is invalid at path "${i}": `+n.errorsText(a.validateSchema.errors);if(e.validateSchema==="log")n.logger.error(c);else throw new Error(c)}}Rl.validateKeywordUsage=bBe;var xf={};Object.defineProperty(xf,"__esModule",{value:!0});xf.extendSubschemaMode=xf.extendSubschemaData=xf.getSubschema=void 0;const El=Et,Lee=at;function wBe(t,{keyword:e,schemaProp:n,schema:i,schemaPath:a,errSchemaPath:o,topSchemaRef:r}){if(e!==void 0&&i!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(e!==void 0){const s=t.schema[e];return n===void 0?{schema:s,schemaPath:(0,El._)`${t.schemaPath}${(0,El.getProperty)(e)}`,errSchemaPath:`${t.errSchemaPath}/${e}`}:{schema:s[n],schemaPath:(0,El._)`${t.schemaPath}${(0,El.getProperty)(e)}${(0,El.getProperty)(n)}`,errSchemaPath:`${t.errSchemaPath}/${e}/${(0,Lee.escapeFragment)(n)}`}}if(i!==void 0){if(a===void 0||o===void 0||r===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:i,schemaPath:a,topSchemaRef:r,errSchemaPath:o}}throw new Error('either "keyword" or "schema" must be passed')}xf.getSubschema=wBe;function $Be(t,e,{dataProp:n,dataPropType:i,data:a,dataTypes:o,propertyName:r}){if(a!==void 0&&n!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:s}=e;if(n!==void 0){const{errorPath:l,dataPathArr:u,opts:f}=e,h=s.let("data",(0,El._)`${e.data}${(0,El.getProperty)(n)}`,!0);c(h),t.errorPath=(0,El.str)`${l}${(0,Lee.getErrorPath)(n,i,f.jsPropertySyntax)}`,t.parentDataProperty=(0,El._)`${n}`,t.dataPathArr=[...u,t.parentDataProperty]}if(a!==void 0){const l=a instanceof El.Name?a:s.let("data",a,!0);c(l),r!==void 0&&(t.propertyName=r)}o&&(t.dataTypes=o);function c(l){t.data=l,t.dataLevel=e.dataLevel+1,t.dataTypes=[],e.definedProperties=new Set,t.parentData=e.data,t.dataNames=[...e.dataNames,l]}}xf.extendSubschemaData=$Be;function ABe(t,{jtdDiscriminator:e,jtdMetadata:n,compositeRule:i,createErrors:a,allErrors:o}){i!==void 0&&(t.compositeRule=i),a!==void 0&&(t.createErrors=a),o!==void 0&&(t.allErrors=o),t.jtdDiscriminator=e,t.jtdMetadata=n}xf.extendSubschemaMode=ABe;var _i={},Fee=function t(e,n){if(e===n)return!0;if(e&&n&&typeof e=="object"&&typeof n=="object"){if(e.constructor!==n.constructor)return!1;var i,a,o;if(Array.isArray(e)){if(i=e.length,i!=n.length)return!1;for(a=i;a--!==0;)if(!t(e[a],n[a]))return!1;return!0}if(e.constructor===RegExp)return e.source===n.source&&e.flags===n.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===n.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===n.toString();if(o=Object.keys(e),i=o.length,i!==Object.keys(n).length)return!1;for(a=i;a--!==0;)if(!Object.prototype.hasOwnProperty.call(n,o[a]))return!1;for(a=i;a--!==0;){var r=o[a];if(!t(e[r],n[r]))return!1}return!0}return e!==e&&n!==n},qee={exports:{}},pf=qee.exports=function(t,e,n){typeof e=="function"&&(n=e,e={}),n=e.cb||n;var i=typeof n=="function"?n:n.pre||function(){},a=n.post||function(){};L$(e,i,a,t,"",t)};pf.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};pf.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};pf.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};pf.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function L$(t,e,n,i,a,o,r,s,c,l){if(i&&typeof i=="object"&&!Array.isArray(i)){e(i,a,o,r,s,c,l);for(var u in i){var f=i[u];if(Array.isArray(f)){if(u in pf.arrayKeywords)for(var h=0;he+=zee(i)),e===1/0))return 1/0}return e}function Uee(t,e="",n){n!==!1&&(e=lm(e));const i=t.parse(e);return Bee(t,i)}_i.getFullPath=Uee;function Bee(t,e){return t.serialize(e).split("#")[0]+"#"}_i._getFullPath=Bee;const IBe=/#\/?$/;function lm(t){return t?t.replace(IBe,""):""}_i.normalizeId=lm;function CBe(t,e,n){return n=lm(n),t.resolve(e,n)}_i.resolveUrl=CBe;const TBe=/^[a-z_][-a-z0-9._]*$/i;function jBe(t,e){if(typeof t=="boolean")return{};const{schemaId:n,uriResolver:i}=this.opts,a=lm(t[n]||e),o={"":a},r=Uee(i,a,!1),s={},c=new Set;return DBe(t,{allKeys:!0},(f,h,d,m)=>{if(m===void 0)return;const g=r+h;let b=o[m];typeof f[n]=="string"&&(b=v.call(this,f[n])),P.call(this,f.$anchor),P.call(this,f.$dynamicAnchor),o[h]=b;function v(A){const _=this.opts.uriResolver.resolve;if(A=lm(b?_(b,A):A),c.has(A))throw u(A);c.add(A);let x=this.refs[A];return typeof x=="string"&&(x=this.refs[x]),typeof x=="object"?l(f,x.schema,A):A!==lm(g)&&(A[0]==="#"?(l(f,s[A],A),s[A]=f):this.refs[A]=g),A}function P(A){if(typeof A=="string"){if(!TBe.test(A))throw new Error(`invalid anchor "${A}"`);v.call(this,`#${A}`)}}}),s;function l(f,h,d){if(h!==void 0&&!xBe(f,h))throw u(d)}function u(f){return new Error(`reference "${f}" resolves to more than one schema`)}}_i.getSchemaRefs=jBe;Object.defineProperty(Ka,"__esModule",{value:!0});Ka.getData=Ka.KeywordCxt=Ka.validateFunctionCode=void 0;const Vee=Pg,FB=ei,FR=Ic,bS=ei,MBe=ox,Qv=Rl,fE=xf,bt=Et,Ct=xa,RBe=_i,Cc=at,iv=n0;function NBe(t){if(Gee(t)&&(Kee(t),Hee(t))){qBe(t);return}Wee(t,()=>(0,Vee.topBoolOrEmptySchema)(t))}Ka.validateFunctionCode=NBe;function Wee({gen:t,validateName:e,schema:n,schemaEnv:i,opts:a},o){a.code.es5?t.func(e,(0,bt._)`${Ct.default.data}, ${Ct.default.valCxt}`,i.$async,()=>{t.code((0,bt._)`"use strict"; ${qB(n,a)}`),FBe(t,a),t.code(o)}):t.func(e,(0,bt._)`${Ct.default.data}, ${LBe(a)}`,i.$async,()=>t.code(qB(n,a)).code(o))}function LBe(t){return(0,bt._)`{${Ct.default.instancePath}="", ${Ct.default.parentData}, ${Ct.default.parentDataProperty}, ${Ct.default.rootData}=${Ct.default.data}${t.dynamicRef?(0,bt._)`, ${Ct.default.dynamicAnchors}={}`:bt.nil}}={}`}function FBe(t,e){t.if(Ct.default.valCxt,()=>{t.var(Ct.default.instancePath,(0,bt._)`${Ct.default.valCxt}.${Ct.default.instancePath}`),t.var(Ct.default.parentData,(0,bt._)`${Ct.default.valCxt}.${Ct.default.parentData}`),t.var(Ct.default.parentDataProperty,(0,bt._)`${Ct.default.valCxt}.${Ct.default.parentDataProperty}`),t.var(Ct.default.rootData,(0,bt._)`${Ct.default.valCxt}.${Ct.default.rootData}`),e.dynamicRef&&t.var(Ct.default.dynamicAnchors,(0,bt._)`${Ct.default.valCxt}.${Ct.default.dynamicAnchors}`)},()=>{t.var(Ct.default.instancePath,(0,bt._)`""`),t.var(Ct.default.parentData,(0,bt._)`undefined`),t.var(Ct.default.parentDataProperty,(0,bt._)`undefined`),t.var(Ct.default.rootData,Ct.default.data),e.dynamicRef&&t.var(Ct.default.dynamicAnchors,(0,bt._)`{}`)})}function qBe(t){const{schema:e,opts:n,gen:i}=t;Wee(t,()=>{n.$comment&&e.$comment&&Jee(t),WBe(t),i.let(Ct.default.vErrors,null),i.let(Ct.default.errors,0),n.unevaluated&&zBe(t),Yee(t),KBe(t)})}function zBe(t){const{gen:e,validateName:n}=t;t.evaluated=e.const("evaluated",(0,bt._)`${n}.evaluated`),e.if((0,bt._)`${t.evaluated}.dynamicProps`,()=>e.assign((0,bt._)`${t.evaluated}.props`,(0,bt._)`undefined`)),e.if((0,bt._)`${t.evaluated}.dynamicItems`,()=>e.assign((0,bt._)`${t.evaluated}.items`,(0,bt._)`undefined`))}function qB(t,e){const n=typeof t=="object"&&t[e.schemaId];return n&&(e.code.source||e.code.process)?(0,bt._)`/*# sourceURL=${n} */`:bt.nil}function UBe(t,e){if(Gee(t)&&(Kee(t),Hee(t))){BBe(t,e);return}(0,Vee.boolOrEmptySchema)(t,e)}function Hee({schema:t,self:e}){if(typeof t=="boolean")return!t;for(const n in t)if(e.RULES.all[n])return!0;return!1}function Gee(t){return typeof t.schema!="boolean"}function BBe(t,e){const{schema:n,gen:i,opts:a}=t;a.$comment&&n.$comment&&Jee(t),HBe(t),GBe(t);const o=i.const("_errs",Ct.default.errors);Yee(t,o),i.var(e,(0,bt._)`${o} === ${Ct.default.errors}`)}function Kee(t){(0,Cc.checkUnknownRules)(t),VBe(t)}function Yee(t,e){if(t.opts.jtd)return zB(t,[],!1,e);const n=(0,FB.getSchemaTypes)(t.schema),i=(0,FB.coerceAndCheckDataType)(t,n);zB(t,n,!i,e)}function VBe(t){const{schema:e,errSchemaPath:n,opts:i,self:a}=t;e.$ref&&i.ignoreKeywordsWithRef&&(0,Cc.schemaHasRulesButRef)(e,a.RULES)&&a.logger.warn(`$ref: keywords ignored in schema at path "${n}"`)}function WBe(t){const{schema:e,opts:n}=t;e.default!==void 0&&n.useDefaults&&n.strictSchema&&(0,Cc.checkStrictMode)(t,"default is ignored in the schema root")}function HBe(t){const e=t.schema[t.opts.schemaId];e&&(t.baseId=(0,RBe.resolveUrl)(t.opts.uriResolver,t.baseId,e))}function GBe(t){if(t.schema.$async&&!t.schemaEnv.$async)throw new Error("async schema in sync schema")}function Jee({gen:t,schemaEnv:e,schema:n,errSchemaPath:i,opts:a}){const o=n.$comment;if(a.$comment===!0)t.code((0,bt._)`${Ct.default.self}.logger.log(${o})`);else if(typeof a.$comment=="function"){const r=(0,bt.str)`${i}/$comment`,s=t.scopeValue("root",{ref:e.root});t.code((0,bt._)`${Ct.default.self}.opts.$comment(${o}, ${r}, ${s}.schema)`)}}function KBe(t){const{gen:e,schemaEnv:n,validateName:i,ValidationError:a,opts:o}=t;n.$async?e.if((0,bt._)`${Ct.default.errors} === 0`,()=>e.return(Ct.default.data),()=>e.throw((0,bt._)`new ${a}(${Ct.default.vErrors})`)):(e.assign((0,bt._)`${i}.errors`,Ct.default.vErrors),o.unevaluated&&YBe(t),e.return((0,bt._)`${Ct.default.errors} === 0`))}function YBe({gen:t,evaluated:e,props:n,items:i}){n instanceof bt.Name&&t.assign((0,bt._)`${e}.props`,n),i instanceof bt.Name&&t.assign((0,bt._)`${e}.items`,i)}function zB(t,e,n,i){const{gen:a,schema:o,data:r,allErrors:s,opts:c,self:l}=t,{RULES:u}=l;if(o.$ref&&(c.ignoreKeywordsWithRef||!(0,Cc.schemaHasRulesButRef)(o,u))){a.block(()=>Xee(t,"$ref",u.all.$ref.definition));return}c.jtd||JBe(t,e),a.block(()=>{for(const h of u.rules)f(h);f(u.post)});function f(h){(0,FR.shouldUseGroup)(o,h)&&(h.type?(a.if((0,bS.checkDataType)(h.type,r,c.strictNumbers)),UB(t,h),e.length===1&&e[0]===h.type&&n&&(a.else(),(0,bS.reportTypeError)(t)),a.endIf()):UB(t,h),s||a.if((0,bt._)`${Ct.default.errors} === ${i||0}`))}}function UB(t,e){const{gen:n,schema:i,opts:{useDefaults:a}}=t;a&&(0,MBe.assignDefaults)(t,e.type),n.block(()=>{for(const o of e.rules)(0,FR.shouldUseRule)(i,o)&&Xee(t,o.keyword,o.definition,e.type)})}function JBe(t,e){t.schemaEnv.meta||!t.opts.strictTypes||(QBe(t,e),t.opts.allowUnionTypes||ZBe(t,e),XBe(t,t.dataTypes))}function QBe(t,e){if(e.length){if(!t.dataTypes.length){t.dataTypes=e;return}e.forEach(n=>{Qee(t.dataTypes,n)||qR(t,`type "${n}" not allowed by context "${t.dataTypes.join(",")}"`)}),t6e(t,e)}}function ZBe(t,e){e.length>1&&!(e.length===2&&e.includes("null"))&&qR(t,"use allowUnionTypes to allow union type keyword")}function XBe(t,e){const n=t.self.RULES.all;for(const i in n){const a=n[i];if(typeof a=="object"&&(0,FR.shouldUseRule)(t.schema,a)){const{type:o}=a.definition;o.length&&!o.some(r=>e6e(e,r))&&qR(t,`missing type "${o.join(",")}" for keyword "${i}"`)}}}function e6e(t,e){return t.includes(e)||e==="number"&&t.includes("integer")}function Qee(t,e){return t.includes(e)||e==="integer"&&t.includes("number")}function t6e(t,e){const n=[];for(const i of t.dataTypes)Qee(e,i)?n.push(i):e.includes("integer")&&i==="number"&&n.push("integer");t.dataTypes=n}function qR(t,e){const n=t.schemaEnv.baseId+t.errSchemaPath;e+=` at "${n}" (strictTypes)`,(0,Cc.checkStrictMode)(t,e,t.opts.strictTypes)}class Zee{constructor(e,n,i){if((0,Qv.validateKeywordUsage)(e,n,i),this.gen=e.gen,this.allErrors=e.allErrors,this.keyword=i,this.data=e.data,this.schema=e.schema[i],this.$data=n.$data&&e.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,Cc.schemaRefOrVal)(e,this.schema,i,this.$data),this.schemaType=n.schemaType,this.parentSchema=e.schema,this.params={},this.it=e,this.def=n,this.$data)this.schemaCode=e.gen.const("vSchema",ete(this.$data,e));else if(this.schemaCode=this.schemaValue,!(0,Qv.validSchemaType)(this.schema,n.schemaType,n.allowUndefined))throw new Error(`${i} value must be ${JSON.stringify(n.schemaType)}`);("code"in n?n.trackErrors:n.errors!==!1)&&(this.errsCount=e.gen.const("_errs",Ct.default.errors))}result(e,n,i){this.failResult((0,bt.not)(e),n,i)}failResult(e,n,i){this.gen.if(e),i?i():this.error(),n?(this.gen.else(),n(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(e,n){this.failResult((0,bt.not)(e),void 0,n)}fail(e){if(e===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(e),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(e){if(!this.$data)return this.fail(e);const{schemaCode:n}=this;this.fail((0,bt._)`${n} !== undefined && (${(0,bt.or)(this.invalid$data(),e)})`)}error(e,n,i){if(n){this.setParams(n),this._error(e,i),this.setParams({});return}this._error(e,i)}_error(e,n){(e?iv.reportExtraError:iv.reportError)(this,this.def.error,n)}$dataError(){(0,iv.reportError)(this,this.def.$dataError||iv.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,iv.resetErrorsCount)(this.gen,this.errsCount)}ok(e){this.allErrors||this.gen.if(e)}setParams(e,n){n?Object.assign(this.params,e):this.params=e}block$data(e,n,i=bt.nil){this.gen.block(()=>{this.check$data(e,i),n()})}check$data(e=bt.nil,n=bt.nil){if(!this.$data)return;const{gen:i,schemaCode:a,schemaType:o,def:r}=this;i.if((0,bt.or)((0,bt._)`${a} === undefined`,n)),e!==bt.nil&&i.assign(e,!0),(o.length||r.validateSchema)&&(i.elseIf(this.invalid$data()),this.$dataError(),e!==bt.nil&&i.assign(e,!1)),i.else()}invalid$data(){const{gen:e,schemaCode:n,schemaType:i,def:a,it:o}=this;return(0,bt.or)(r(),s());function r(){if(i.length){if(!(n instanceof bt.Name))throw new Error("ajv implementation error");const c=Array.isArray(i)?i:[i];return(0,bt._)`${(0,bS.checkDataTypes)(c,n,o.opts.strictNumbers,bS.DataType.Wrong)}`}return bt.nil}function s(){if(a.validateSchema){const c=e.scopeValue("validate$data",{ref:a.validateSchema});return(0,bt._)`!${c}(${n})`}return bt.nil}}subschema(e,n){const i=(0,fE.getSubschema)(this.it,e);(0,fE.extendSubschemaData)(i,this.it,e),(0,fE.extendSubschemaMode)(i,e);const a={...this.it,...i,items:void 0,props:void 0};return UBe(a,n),a}mergeEvaluated(e,n){const{it:i,gen:a}=this;i.opts.unevaluated&&(i.props!==!0&&e.props!==void 0&&(i.props=Cc.mergeEvaluated.props(a,e.props,i.props,n)),i.items!==!0&&e.items!==void 0&&(i.items=Cc.mergeEvaluated.items(a,e.items,i.items,n)))}mergeValidEvaluated(e,n){const{it:i,gen:a}=this;if(i.opts.unevaluated&&(i.props!==!0||i.items!==!0))return a.if(n,()=>this.mergeEvaluated(e,bt.Name)),!0}}Ka.KeywordCxt=Zee;function Xee(t,e,n,i){const a=new Zee(t,n,e);"code"in n?n.code(a,i):a.$data&&n.validate?(0,Qv.funcKeywordCode)(a,n):"macro"in n?(0,Qv.macroKeywordCode)(a,n):(n.compile||n.validate)&&(0,Qv.funcKeywordCode)(a,n)}const r6e=/^\/(?:[^~]|~0|~1)*$/,n6e=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function ete(t,{dataLevel:e,dataNames:n,dataPathArr:i}){let a,o;if(t==="")return Ct.default.rootData;if(t[0]==="/"){if(!r6e.test(t))throw new Error(`Invalid JSON-pointer: ${t}`);a=t,o=Ct.default.rootData}else{const l=n6e.exec(t);if(!l)throw new Error(`Invalid JSON-pointer: ${t}`);const u=+l[1];if(a=l[2],a==="#"){if(u>=e)throw new Error(c("property/index",u));return i[e-u]}if(u>e)throw new Error(c("data",u));if(o=n[e-u],!a)return o}let r=o;const s=a.split("/");for(const l of s)l&&(o=(0,bt._)`${o}${(0,bt.getProperty)((0,Cc.unescapeJsonPointer)(l))}`,r=(0,bt._)`${r} && ${o}`);return r;function c(l,u){return`Cannot access ${l} ${u} levels up, current level is ${e}`}}Ka.getData=ete;var Mh={};Object.defineProperty(Mh,"__esModule",{value:!0});class i6e extends Error{constructor(e){super("validation failed"),this.errors=e,this.ajv=this.validation=!0}}Mh.default=i6e;var yu={};Object.defineProperty(yu,"__esModule",{value:!0});const pE=_i;class a6e extends Error{constructor(e,n,i,a){super(a||`can't resolve reference ${i} from id ${n}`),this.missingRef=(0,pE.resolveUrl)(e,n,i),this.missingSchema=(0,pE.normalizeId)((0,pE.getFullPath)(e,this.missingRef))}}yu.default=a6e;var fa={};Object.defineProperty(fa,"__esModule",{value:!0});fa.resolveSchema=fa.getCompilingSchema=fa.resolveRef=fa.compileSchema=fa.SchemaEnv=void 0;const Ro=Et,s6e=Mh,sp=xa,Ho=_i,BB=at,o6e=Ka;class lx{constructor(e){var n;this.refs={},this.dynamicAnchors={};let i;typeof e.schema=="object"&&(i=e.schema),this.schema=e.schema,this.schemaId=e.schemaId,this.root=e.root||this,this.baseId=(n=e.baseId)!==null&&n!==void 0?n:(0,Ho.normalizeId)(i==null?void 0:i[e.schemaId||"$id"]),this.schemaPath=e.schemaPath,this.localRefs=e.localRefs,this.meta=e.meta,this.$async=i==null?void 0:i.$async,this.refs={}}}fa.SchemaEnv=lx;function zR(t){const e=tte.call(this,t);if(e)return e;const n=(0,Ho.getFullPath)(this.opts.uriResolver,t.root.baseId),{es5:i,lines:a}=this.opts.code,{ownProperties:o}=this.opts,r=new Ro.CodeGen(this.scope,{es5:i,lines:a,ownProperties:o});let s;t.$async&&(s=r.scopeValue("Error",{ref:s6e.default,code:(0,Ro._)`require("ajv/dist/runtime/validation_error").default`}));const c=r.scopeName("validate");t.validateName=c;const l={gen:r,allErrors:this.opts.allErrors,data:sp.default.data,parentData:sp.default.parentData,parentDataProperty:sp.default.parentDataProperty,dataNames:[sp.default.data],dataPathArr:[Ro.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:r.scopeValue("schema",this.opts.code.source===!0?{ref:t.schema,code:(0,Ro.stringify)(t.schema)}:{ref:t.schema}),validateName:c,ValidationError:s,schema:t.schema,schemaEnv:t,rootId:n,baseId:t.baseId||n,schemaPath:Ro.nil,errSchemaPath:t.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,Ro._)`""`,opts:this.opts,self:this};let u;try{this._compilations.add(t),(0,o6e.validateFunctionCode)(l),r.optimize(this.opts.code.optimize);const f=r.toString();u=`${r.scopeRefs(sp.default.scope)}return ${f}`,this.opts.code.process&&(u=this.opts.code.process(u,t));const d=new Function(`${sp.default.self}`,`${sp.default.scope}`,u)(this,this.scope.get());if(this.scope.value(c,{ref:d}),d.errors=null,d.schema=t.schema,d.schemaEnv=t,t.$async&&(d.$async=!0),this.opts.code.source===!0&&(d.source={validateName:c,validateCode:f,scopeValues:r._values}),this.opts.unevaluated){const{props:m,items:g}=l;d.evaluated={props:m instanceof Ro.Name?void 0:m,items:g instanceof Ro.Name?void 0:g,dynamicProps:m instanceof Ro.Name,dynamicItems:g instanceof Ro.Name},d.source&&(d.source.evaluated=(0,Ro.stringify)(d.evaluated))}return t.validate=d,t}catch(f){throw delete t.validate,delete t.validateName,u&&this.logger.error("Error compiling schema, function code:",u),f}finally{this._compilations.delete(t)}}fa.compileSchema=zR;function l6e(t,e,n){var i;n=(0,Ho.resolveUrl)(this.opts.uriResolver,e,n);const a=t.refs[n];if(a)return a;let o=f6e.call(this,t,n);if(o===void 0){const r=(i=t.localRefs)===null||i===void 0?void 0:i[n],{schemaId:s}=this.opts;r&&(o=new lx({schema:r,schemaId:s,root:t,baseId:e}))}if(o!==void 0)return t.refs[n]=c6e.call(this,o)}fa.resolveRef=l6e;function c6e(t){return(0,Ho.inlineRef)(t.schema,this.opts.inlineRefs)?t.schema:t.validate?t:zR.call(this,t)}function tte(t){for(const e of this._compilations)if(u6e(e,t))return e}fa.getCompilingSchema=tte;function u6e(t,e){return t.schema===e.schema&&t.root===e.root&&t.baseId===e.baseId}function f6e(t,e){let n;for(;typeof(n=this.refs[e])=="string";)e=n;return n||this.schemas[e]||cx.call(this,t,e)}function cx(t,e){const n=this.opts.uriResolver.parse(e),i=(0,Ho._getFullPath)(this.opts.uriResolver,n);let a=(0,Ho.getFullPath)(this.opts.uriResolver,t.baseId,void 0);if(Object.keys(t.schema).length>0&&i===a)return hE.call(this,n,t);const o=(0,Ho.normalizeId)(i),r=this.refs[o]||this.schemas[o];if(typeof r=="string"){const s=cx.call(this,t,r);return typeof(s==null?void 0:s.schema)!="object"?void 0:hE.call(this,n,s)}if(typeof(r==null?void 0:r.schema)=="object"){if(r.validate||zR.call(this,r),o===(0,Ho.normalizeId)(e)){const{schema:s}=r,{schemaId:c}=this.opts,l=s[c];return l&&(a=(0,Ho.resolveUrl)(this.opts.uriResolver,a,l)),new lx({schema:s,schemaId:c,root:t,baseId:a})}return hE.call(this,n,r)}}fa.resolveSchema=cx;const p6e=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function hE(t,{baseId:e,schema:n,root:i}){var a;if(((a=t.fragment)===null||a===void 0?void 0:a[0])!=="/")return;for(const s of t.fragment.slice(1).split("/")){if(typeof n=="boolean")return;const c=n[(0,BB.unescapeFragment)(s)];if(c===void 0)return;n=c;const l=typeof n=="object"&&n[this.opts.schemaId];!p6e.has(s)&&l&&(e=(0,Ho.resolveUrl)(this.opts.uriResolver,e,l))}let o;if(typeof n!="boolean"&&n.$ref&&!(0,BB.schemaHasRulesButRef)(n,this.RULES)){const s=(0,Ho.resolveUrl)(this.opts.uriResolver,e,n.$ref);o=cx.call(this,i,s)}const{schemaId:r}=this.opts;if(o=o||new lx({schema:n,schemaId:r,root:i,baseId:e}),o.schema!==o.root.schema)return o}const h6e="https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",d6e="Meta-schema for $data reference (JSON AnySchema extension proposal)",m6e="object",y6e=["$data"],g6e={$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},v6e=!1,P6e={$id:h6e,description:d6e,type:m6e,required:y6e,properties:g6e,additionalProperties:v6e};var UR={},ux={exports:{}};const b6e={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};var w6e={HEX:b6e};const{HEX:$6e}=w6e;function rte(t){if(ite(t,".")<3)return{host:t,isIPV4:!1};const e=t.match(/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/u)||[],[n]=e;return n?{host:S6e(n,"."),isIPV4:!0}:{host:t,isIPV4:!1}}function nT(t,e=!1){let n="",i=!0;for(const a of t){if($6e[a]===void 0)return;a!=="0"&&i===!0&&(i=!1),i||(n+=a)}return e&&n.length===0&&(n="0"),n}function A6e(t){let e=0;const n={error:!1,address:"",zone:""},i=[],a=[];let o=!1,r=!1,s=!1;function c(){if(a.length){if(o===!1){const l=nT(a);if(l!==void 0)i.push(l);else return n.error=!0,!1}a.length=0}return!0}for(let l=0;l7){n.error=!0;break}l-1>=0&&t[l-1]===":"&&(r=!0);continue}else if(u==="%"){if(!c())break;o=!0}else{a.push(u);continue}}return a.length&&(o?n.zone=a.join(""):s?i.push(a.join("")):i.push(nT(a))),n.address=i.join(""),n}function nte(t,e={}){if(ite(t,":")<2)return{host:t,isIPV6:!1};const n=A6e(t);if(n.error)return{host:t,isIPV6:!1};{let i=n.address,a=n.address;return n.zone&&(i+="%"+n.zone,a+="%25"+n.zone),{host:i,escapedHost:a,isIPV6:!0}}}function S6e(t,e){let n="",i=!0;const a=t.length;for(let o=0;o/[^!"$&'()*+,\-.;=_`a-z{}~]/u.test(String.fromCharCode(e)));function J6e(t){let e=0;for(let n=0,i=t.length;n126||Y6e[e])return!0;return!1}const Q6e=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function cu(t,e){const n=Object.assign({},e),i={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},a=t.indexOf("%")!==-1;let o=!1;n.reference==="suffix"&&(t=(n.scheme?n.scheme+":":"")+"//"+t);const r=t.match(Q6e);if(r){if(i.scheme=r[1],i.userinfo=r[3],i.host=r[4],i.port=parseInt(r[5],10),i.path=r[6]||"",i.query=r[7],i.fragment=r[8],isNaN(i.port)&&(i.port=r[5]),i.host){const c=V6e(i.host);if(c.isIPV4===!1){const l=B6e(c.host,{isIPV4:!1});i.host=l.host.toLowerCase(),o=l.isIPV6}else i.host=c.host,o=!0}i.scheme===void 0&&i.userinfo===void 0&&i.host===void 0&&i.port===void 0&&!i.path&&i.query===void 0?i.reference="same-document":i.scheme===void 0?i.reference="relative":i.fragment===void 0?i.reference="absolute":i.reference="uri",n.reference&&n.reference!=="suffix"&&n.reference!==i.reference&&(i.error=i.error||"URI is not a "+n.reference+" reference.");const s=VR[(n.scheme||i.scheme||"").toLowerCase()];if(!n.unicodeSupport&&(!s||!s.unicodeSupport)&&i.host&&(n.domainHost||s&&s.domainHost)&&o===!1&&J6e(i.host))try{i.host=URL.domainToASCII(i.host.toLowerCase())}catch(c){i.error=i.error||"Host's domain name can not be converted to ASCII: "+c}(!s||s&&!s.skipNormalize)&&(a&&i.scheme!==void 0&&(i.scheme=unescape(i.scheme)),a&&i.userinfo!==void 0&&(i.userinfo=unescape(i.userinfo)),a&&i.host!==void 0&&(i.host=unescape(i.host)),i.path!==void 0&&i.path.length&&(i.path=escape(unescape(i.path))),i.fragment!==void 0&&i.fragment.length&&(i.fragment=encodeURI(decodeURIComponent(i.fragment)))),s&&s.parse&&s.parse(i,n)}else i.error=i.error||"URI can not be parsed.";return i}const WR={SCHEMES:VR,normalize:H6e,resolve:G6e,resolveComponents:cte,equal:K6e,serialize:Nl,parse:cu};ux.exports=WR;ux.exports.default=WR;ux.exports.fastUri=WR;var Z6e=ux.exports;Object.defineProperty(UR,"__esModule",{value:!0});const ute=Z6e;ute.code='require("ajv/dist/runtime/uri").default';UR.default=ute;(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=void 0;var e=Ka;Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return e.KeywordCxt}});var n=Et;Object.defineProperty(t,"_",{enumerable:!0,get:function(){return n._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return n.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return n.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return n.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return n.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return n.CodeGen}});const i=Mh,a=yu,o=vh,r=fa,s=Et,c=_i,l=ei,u=at,f=P6e,h=UR,d=(z,M)=>new RegExp(z,M);d.code="new RegExp";const m=["removeAdditional","useDefaults","coerceTypes"],g=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),b={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},v={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},P=200;function A(z){var M,U,W,T,G,oe,ve,ie,Ae,pe,De,We,Ce,_e,st,yt,Re,je,$t,Se,pt,nn,lr,Dr,Yt;const cr=z.strict,J=(M=z.code)===null||M===void 0?void 0:M.optimize,w=J===!0||J===void 0?1:J||0,K=(W=(U=z.code)===null||U===void 0?void 0:U.regExp)!==null&&W!==void 0?W:d,te=(T=z.uriResolver)!==null&&T!==void 0?T:h.default;return{strictSchema:(oe=(G=z.strictSchema)!==null&&G!==void 0?G:cr)!==null&&oe!==void 0?oe:!0,strictNumbers:(ie=(ve=z.strictNumbers)!==null&&ve!==void 0?ve:cr)!==null&&ie!==void 0?ie:!0,strictTypes:(pe=(Ae=z.strictTypes)!==null&&Ae!==void 0?Ae:cr)!==null&&pe!==void 0?pe:"log",strictTuples:(We=(De=z.strictTuples)!==null&&De!==void 0?De:cr)!==null&&We!==void 0?We:"log",strictRequired:(_e=(Ce=z.strictRequired)!==null&&Ce!==void 0?Ce:cr)!==null&&_e!==void 0?_e:!1,code:z.code?{...z.code,optimize:w,regExp:K}:{optimize:w,regExp:K},loopRequired:(st=z.loopRequired)!==null&&st!==void 0?st:P,loopEnum:(yt=z.loopEnum)!==null&&yt!==void 0?yt:P,meta:(Re=z.meta)!==null&&Re!==void 0?Re:!0,messages:(je=z.messages)!==null&&je!==void 0?je:!0,inlineRefs:($t=z.inlineRefs)!==null&&$t!==void 0?$t:!0,schemaId:(Se=z.schemaId)!==null&&Se!==void 0?Se:"$id",addUsedSchema:(pt=z.addUsedSchema)!==null&&pt!==void 0?pt:!0,validateSchema:(nn=z.validateSchema)!==null&&nn!==void 0?nn:!0,validateFormats:(lr=z.validateFormats)!==null&&lr!==void 0?lr:!0,unicodeRegExp:(Dr=z.unicodeRegExp)!==null&&Dr!==void 0?Dr:!0,int32range:(Yt=z.int32range)!==null&&Yt!==void 0?Yt:!0,uriResolver:te}}class _{constructor(M={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,M=this.opts={...M,...A(M)};const{es5:U,lines:W}=this.opts.code;this.scope=new s.ValueScope({scope:{},prefixes:g,es5:U,lines:W}),this.logger=q(M.logger);const T=M.validateFormats;M.validateFormats=!1,this.RULES=(0,o.getRules)(),x.call(this,b,M,"NOT SUPPORTED"),x.call(this,v,M,"DEPRECATED","warn"),this._metaOpts=L.call(this),M.formats&&F.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),M.keywords&&I.call(this,M.keywords),typeof M.meta=="object"&&this.addMetaSchema(M.meta),j.call(this),M.validateFormats=T}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:M,meta:U,schemaId:W}=this.opts;let T=f;W==="id"&&(T={...f},T.id=T.$id,delete T.$id),U&&M&&this.addMetaSchema(T,T[W],!1)}defaultMeta(){const{meta:M,schemaId:U}=this.opts;return this.opts.defaultMeta=typeof M=="object"?M[U]||M:void 0}validate(M,U){let W;if(typeof M=="string"){if(W=this.getSchema(M),!W)throw new Error(`no schema with key or ref "${M}"`)}else W=this.compile(M);const T=W(U);return"$async"in W||(this.errors=W.errors),T}compile(M,U){const W=this._addSchema(M,U);return W.validate||this._compileSchemaEnv(W)}compileAsync(M,U){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:W}=this.opts;return T.call(this,M,U);async function T(pe,De){await G.call(this,pe.$schema);const We=this._addSchema(pe,De);return We.validate||oe.call(this,We)}async function G(pe){pe&&!this.getSchema(pe)&&await T.call(this,{$ref:pe},!0)}async function oe(pe){try{return this._compileSchemaEnv(pe)}catch(De){if(!(De instanceof a.default))throw De;return ve.call(this,De),await ie.call(this,De.missingSchema),oe.call(this,pe)}}function ve({missingSchema:pe,missingRef:De}){if(this.refs[pe])throw new Error(`AnySchema ${pe} is loaded but ${De} cannot be resolved`)}async function ie(pe){const De=await Ae.call(this,pe);this.refs[pe]||await G.call(this,De.$schema),this.refs[pe]||this.addSchema(De,pe,U)}async function Ae(pe){const De=this._loading[pe];if(De)return De;try{return await(this._loading[pe]=W(pe))}finally{delete this._loading[pe]}}}addSchema(M,U,W,T=this.opts.validateSchema){if(Array.isArray(M)){for(const oe of M)this.addSchema(oe,void 0,W,T);return this}let G;if(typeof M=="object"){const{schemaId:oe}=this.opts;if(G=M[oe],G!==void 0&&typeof G!="string")throw new Error(`schema ${oe} must be string`)}return U=(0,c.normalizeId)(U||G),this._checkUnique(U),this.schemas[U]=this._addSchema(M,W,U,T,!0),this}addMetaSchema(M,U,W=this.opts.validateSchema){return this.addSchema(M,U,!0,W),this}validateSchema(M,U){if(typeof M=="boolean")return!0;let W;if(W=M.$schema,W!==void 0&&typeof W!="string")throw new Error("$schema must be a string");if(W=W||this.opts.defaultMeta||this.defaultMeta(),!W)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const T=this.validate(W,M);if(!T&&U){const G="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(G);else throw new Error(G)}return T}getSchema(M){let U;for(;typeof(U=E.call(this,M))=="string";)M=U;if(U===void 0){const{schemaId:W}=this.opts,T=new r.SchemaEnv({schema:{},schemaId:W});if(U=r.resolveSchema.call(this,T,M),!U)return;this.refs[M]=U}return U.validate||this._compileSchemaEnv(U)}removeSchema(M){if(M instanceof RegExp)return this._removeAllSchemas(this.schemas,M),this._removeAllSchemas(this.refs,M),this;switch(typeof M){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const U=E.call(this,M);return typeof U=="object"&&this._cache.delete(U.schema),delete this.schemas[M],delete this.refs[M],this}case"object":{const U=M;this._cache.delete(U);let W=M[this.opts.schemaId];return W&&(W=(0,c.normalizeId)(W),delete this.schemas[W],delete this.refs[W]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(M){for(const U of M)this.addKeyword(U);return this}addKeyword(M,U){let W;if(typeof M=="string")W=M,typeof U=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),U.keyword=W);else if(typeof M=="object"&&U===void 0){if(U=M,W=U.keyword,Array.isArray(W)&&!W.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(D.call(this,W,U),!U)return(0,u.eachItem)(W,G=>R.call(this,G)),this;H.call(this,U);const T={...U,type:(0,l.getJSONTypes)(U.type),schemaType:(0,l.getJSONTypes)(U.schemaType)};return(0,u.eachItem)(W,T.type.length===0?G=>R.call(this,G,T):G=>T.type.forEach(oe=>R.call(this,G,T,oe))),this}getKeyword(M){const U=this.RULES.all[M];return typeof U=="object"?U.definition:!!U}removeKeyword(M){const{RULES:U}=this;delete U.keywords[M],delete U.all[M];for(const W of U.rules){const T=W.rules.findIndex(G=>G.keyword===M);T>=0&&W.rules.splice(T,1)}return this}addFormat(M,U){return typeof U=="string"&&(U=new RegExp(U)),this.formats[M]=U,this}errorsText(M=this.errors,{separator:U=", ",dataVar:W="data"}={}){return!M||M.length===0?"No errors":M.map(T=>`${W}${T.instancePath} ${T.message}`).reduce((T,G)=>T+U+G)}$dataMetaSchema(M,U){const W=this.RULES.all;M=JSON.parse(JSON.stringify(M));for(const T of U){const G=T.split("/").slice(1);let oe=M;for(const ve of G)oe=oe[ve];for(const ve in W){const ie=W[ve];if(typeof ie!="object")continue;const{$data:Ae}=ie.definition,pe=oe[ve];Ae&&pe&&(oe[ve]=ae(pe))}}return M}_removeAllSchemas(M,U){for(const W in M){const T=M[W];(!U||U.test(W))&&(typeof T=="string"?delete M[W]:T&&!T.meta&&(this._cache.delete(T.schema),delete M[W]))}}_addSchema(M,U,W,T=this.opts.validateSchema,G=this.opts.addUsedSchema){let oe;const{schemaId:ve}=this.opts;if(typeof M=="object")oe=M[ve];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof M!="boolean")throw new Error("schema must be object or boolean")}let ie=this._cache.get(M);if(ie!==void 0)return ie;W=(0,c.normalizeId)(oe||W);const Ae=c.getSchemaRefs.call(this,M,W);return ie=new r.SchemaEnv({schema:M,schemaId:ve,meta:U,baseId:W,localRefs:Ae}),this._cache.set(ie.schema,ie),G&&!W.startsWith("#")&&(W&&this._checkUnique(W),this.refs[W]=ie),T&&this.validateSchema(M,!0),ie}_checkUnique(M){if(this.schemas[M]||this.refs[M])throw new Error(`schema with key or id "${M}" already exists`)}_compileSchemaEnv(M){if(M.meta?this._compileMetaSchema(M):r.compileSchema.call(this,M),!M.validate)throw new Error("ajv implementation error");return M.validate}_compileMetaSchema(M){const U=this.opts;this.opts=this._metaOpts;try{r.compileSchema.call(this,M)}finally{this.opts=U}}}_.ValidationError=i.default,_.MissingRefError=a.default,t.default=_;function x(z,M,U,W="error"){for(const T in z){const G=T;G in M&&this.logger[W](`${U}: option ${T}. ${z[G]}`)}}function E(z){return z=(0,c.normalizeId)(z),this.schemas[z]||this.refs[z]}function j(){const z=this.opts.schemas;if(z)if(Array.isArray(z))this.addSchema(z);else for(const M in z)this.addSchema(z[M],M)}function F(){for(const z in this.opts.formats){const M=this.opts.formats[z];M&&this.addFormat(z,M)}}function I(z){if(Array.isArray(z)){this.addVocabulary(z);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const M in z){const U=z[M];U.keyword||(U.keyword=M),this.addKeyword(U)}}function L(){const z={...this.opts};for(const M of m)delete z[M];return z}const V={log(){},warn(){},error(){}};function q(z){if(z===!1)return V;if(z===void 0)return console;if(z.log&&z.warn&&z.error)return z;throw new Error("logger must implement log, warn and error methods")}const S=/^[a-z_$][a-z0-9_$:-]*$/i;function D(z,M){const{RULES:U}=this;if((0,u.eachItem)(z,W=>{if(U.keywords[W])throw new Error(`Keyword ${W} is already defined`);if(!S.test(W))throw new Error(`Keyword ${W} has invalid name`)}),!!M&&M.$data&&!("code"in M||"validate"in M))throw new Error('$data keyword must have "code" or "validate" function')}function R(z,M,U){var W;const T=M==null?void 0:M.post;if(U&&T)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:G}=this;let oe=T?G.post:G.rules.find(({type:ie})=>ie===U);if(oe||(oe={type:U,rules:[]},G.rules.push(oe)),G.keywords[z]=!0,!M)return;const ve={keyword:z,definition:{...M,type:(0,l.getJSONTypes)(M.type),schemaType:(0,l.getJSONTypes)(M.schemaType)}};M.before?C.call(this,oe,ve,M.before):oe.rules.push(ve),G.all[z]=ve,(W=M.implements)===null||W===void 0||W.forEach(ie=>this.addKeyword(ie))}function C(z,M,U){const W=z.rules.findIndex(T=>T.keyword===U);W>=0?z.rules.splice(W,0,M):(z.rules.push(M),this.logger.warn(`rule ${U} is not defined`))}function H(z){let{metaSchema:M}=z;M!==void 0&&(z.$data&&this.opts.$data&&(M=ae(M)),z.validateSchema=this.compile(M,!0))}const X={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function ae(z){return{anyOf:[z,X]}}})(_f);var fx={},px={},HR={};Object.defineProperty(HR,"__esModule",{value:!0});const X6e={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};HR.default=X6e;var Kl={};Object.defineProperty(Kl,"__esModule",{value:!0});Kl.callRef=Kl.getValidate=void 0;const eVe=yu,GB=Gt,La=Et,ld=xa,KB=fa,Hw=at,tVe={keyword:"$ref",schemaType:"string",code(t){const{gen:e,schema:n,it:i}=t,{baseId:a,schemaEnv:o,validateName:r,opts:s,self:c}=i,{root:l}=o;if((n==="#"||n==="#/")&&a===l.baseId)return f();const u=KB.resolveRef.call(c,l,a,n);if(u===void 0)throw new eVe.default(i.opts.uriResolver,a,n);if(u instanceof KB.SchemaEnv)return h(u);return d(u);function f(){if(o===l)return q$(t,r,o,o.$async);const m=e.scopeValue("root",{ref:l});return q$(t,(0,La._)`${m}.validate`,l,l.$async)}function h(m){const g=fte(t,m);q$(t,g,m,m.$async)}function d(m){const g=e.scopeValue("schema",s.code.source===!0?{ref:m,code:(0,La.stringify)(m)}:{ref:m}),b=e.name("valid"),v=t.subschema({schema:m,dataTypes:[],schemaPath:La.nil,topSchemaRef:g,errSchemaPath:n},b);t.mergeEvaluated(v),t.ok(b)}}};function fte(t,e){const{gen:n}=t;return e.validate?n.scopeValue("validate",{ref:e.validate}):(0,La._)`${n.scopeValue("wrapper",{ref:e})}.validate`}Kl.getValidate=fte;function q$(t,e,n,i){const{gen:a,it:o}=t,{allErrors:r,schemaEnv:s,opts:c}=o,l=c.passContext?ld.default.this:La.nil;i?u():f();function u(){if(!s.$async)throw new Error("async schema referenced by sync schema");const m=a.let("valid");a.try(()=>{a.code((0,La._)`await ${(0,GB.callValidateCode)(t,e,l)}`),d(e),r||a.assign(m,!0)},g=>{a.if((0,La._)`!(${g} instanceof ${o.ValidationError})`,()=>a.throw(g)),h(g),r||a.assign(m,!1)}),t.ok(m)}function f(){t.result((0,GB.callValidateCode)(t,e,l),()=>d(e),()=>h(e))}function h(m){const g=(0,La._)`${m}.errors`;a.assign(ld.default.vErrors,(0,La._)`${ld.default.vErrors} === null ? ${g} : ${ld.default.vErrors}.concat(${g})`),a.assign(ld.default.errors,(0,La._)`${ld.default.vErrors}.length`)}function d(m){var g;if(!o.opts.unevaluated)return;const b=(g=n==null?void 0:n.validate)===null||g===void 0?void 0:g.evaluated;if(o.props!==!0)if(b&&!b.dynamicProps)b.props!==void 0&&(o.props=Hw.mergeEvaluated.props(a,b.props,o.props));else{const v=a.var("props",(0,La._)`${m}.evaluated.props`);o.props=Hw.mergeEvaluated.props(a,v,o.props,La.Name)}if(o.items!==!0)if(b&&!b.dynamicItems)b.items!==void 0&&(o.items=Hw.mergeEvaluated.items(a,b.items,o.items));else{const v=a.var("items",(0,La._)`${m}.evaluated.items`);o.items=Hw.mergeEvaluated.items(a,v,o.items,La.Name)}}}Kl.callRef=q$;Kl.default=tVe;Object.defineProperty(px,"__esModule",{value:!0});const rVe=HR,nVe=Kl,iVe=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",rVe.default,nVe.default];px.default=iVe;var hx={},GR={};Object.defineProperty(GR,"__esModule",{value:!0});const wS=Et,qu=wS.operators,$S={maximum:{okStr:"<=",ok:qu.LTE,fail:qu.GT},minimum:{okStr:">=",ok:qu.GTE,fail:qu.LT},exclusiveMaximum:{okStr:"<",ok:qu.LT,fail:qu.GTE},exclusiveMinimum:{okStr:">",ok:qu.GT,fail:qu.LTE}},aVe={message:({keyword:t,schemaCode:e})=>(0,wS.str)`must be ${$S[t].okStr} ${e}`,params:({keyword:t,schemaCode:e})=>(0,wS._)`{comparison: ${$S[t].okStr}, limit: ${e}}`},sVe={keyword:Object.keys($S),type:"number",schemaType:"number",$data:!0,error:aVe,code(t){const{keyword:e,data:n,schemaCode:i}=t;t.fail$data((0,wS._)`${n} ${$S[e].fail} ${i} || isNaN(${n})`)}};GR.default=sVe;var dx={};Object.defineProperty(dx,"__esModule",{value:!0});const Zv=Et,oVe={message:({schemaCode:t})=>(0,Zv.str)`must be multiple of ${t}`,params:({schemaCode:t})=>(0,Zv._)`{multipleOf: ${t}}`},lVe={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:oVe,code(t){const{gen:e,data:n,schemaCode:i,it:a}=t,o=a.opts.multipleOfPrecision,r=e.let("res"),s=o?(0,Zv._)`Math.abs(Math.round(${r}) - ${r}) > 1e-${o}`:(0,Zv._)`${r} !== parseInt(${r})`;t.fail$data((0,Zv._)`(${i} === 0 || (${r} = ${n}/${i}, ${s}))`)}};dx.default=lVe;var mx={},KR={};Object.defineProperty(KR,"__esModule",{value:!0});function pte(t){const e=t.length;let n=0,i=0,a;for(;i=55296&&a<=56319&&i(0,vp._)`{limit: ${t}}`},pVe={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:fVe,code(t){const{keyword:e,data:n,schemaCode:i,it:a}=t,o=e==="maxLength"?vp.operators.GT:vp.operators.LT,r=a.opts.unicode===!1?(0,vp._)`${n}.length`:(0,vp._)`${(0,cVe.useFunc)(t.gen,uVe.default)}(${n})`;t.fail$data((0,vp._)`${r} ${o} ${i}`)}};mx.default=pVe;var yx={};Object.defineProperty(yx,"__esModule",{value:!0});const hVe=Gt,AS=Et,dVe={message:({schemaCode:t})=>(0,AS.str)`must match pattern "${t}"`,params:({schemaCode:t})=>(0,AS._)`{pattern: ${t}}`},mVe={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:dVe,code(t){const{data:e,$data:n,schema:i,schemaCode:a,it:o}=t,r=o.opts.unicodeRegExp?"u":"",s=n?(0,AS._)`(new RegExp(${a}, ${r}))`:(0,hVe.usePattern)(t,i);t.fail$data((0,AS._)`!${s}.test(${e})`)}};yx.default=mVe;var gx={};Object.defineProperty(gx,"__esModule",{value:!0});const Xv=Et,yVe={message({keyword:t,schemaCode:e}){const n=t==="maxProperties"?"more":"fewer";return(0,Xv.str)`must NOT have ${n} than ${e} properties`},params:({schemaCode:t})=>(0,Xv._)`{limit: ${t}}`},gVe={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:yVe,code(t){const{keyword:e,data:n,schemaCode:i}=t,a=e==="maxProperties"?Xv.operators.GT:Xv.operators.LT;t.fail$data((0,Xv._)`Object.keys(${n}).length ${a} ${i}`)}};gx.default=gVe;var vx={};Object.defineProperty(vx,"__esModule",{value:!0});const av=Gt,eP=Et,vVe=at,PVe={message:({params:{missingProperty:t}})=>(0,eP.str)`must have required property '${t}'`,params:({params:{missingProperty:t}})=>(0,eP._)`{missingProperty: ${t}}`},bVe={keyword:"required",type:"object",schemaType:"array",$data:!0,error:PVe,code(t){const{gen:e,schema:n,schemaCode:i,data:a,$data:o,it:r}=t,{opts:s}=r;if(!o&&n.length===0)return;const c=n.length>=s.loopRequired;if(r.allErrors?l():u(),s.strictRequired){const d=t.parentSchema.properties,{definedProperties:m}=t.it;for(const g of n)if((d==null?void 0:d[g])===void 0&&!m.has(g)){const b=r.schemaEnv.baseId+r.errSchemaPath,v=`required property "${g}" is not defined at "${b}" (strictRequired)`;(0,vVe.checkStrictMode)(r,v,r.opts.strictRequired)}}function l(){if(c||o)t.block$data(eP.nil,f);else for(const d of n)(0,av.checkReportMissingProp)(t,d)}function u(){const d=e.let("missing");if(c||o){const m=e.let("valid",!0);t.block$data(m,()=>h(d,m)),t.ok(m)}else e.if((0,av.checkMissingProp)(t,n,d)),(0,av.reportMissingProp)(t,d),e.else()}function f(){e.forOf("prop",i,d=>{t.setParams({missingProperty:d}),e.if((0,av.noPropertyInData)(e,a,d,s.ownProperties),()=>t.error())})}function h(d,m){t.setParams({missingProperty:d}),e.forOf(d,i,()=>{e.assign(m,(0,av.propertyInData)(e,a,d,s.ownProperties)),e.if((0,eP.not)(m),()=>{t.error(),e.break()})},eP.nil)}}};vx.default=bVe;var Px={};Object.defineProperty(Px,"__esModule",{value:!0});const tP=Et,wVe={message({keyword:t,schemaCode:e}){const n=t==="maxItems"?"more":"fewer";return(0,tP.str)`must NOT have ${n} than ${e} items`},params:({schemaCode:t})=>(0,tP._)`{limit: ${t}}`},$Ve={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:wVe,code(t){const{keyword:e,data:n,schemaCode:i}=t,a=e==="maxItems"?tP.operators.GT:tP.operators.LT;t.fail$data((0,tP._)`${n}.length ${a} ${i}`)}};Px.default=$Ve;var bx={},i0={};Object.defineProperty(i0,"__esModule",{value:!0});const hte=Fee;hte.code='require("ajv/dist/runtime/equal").default';i0.default=hte;Object.defineProperty(bx,"__esModule",{value:!0});const dE=ei,Pi=Et,AVe=at,SVe=i0,_Ve={message:({params:{i:t,j:e}})=>(0,Pi.str)`must NOT have duplicate items (items ## ${e} and ${t} are identical)`,params:({params:{i:t,j:e}})=>(0,Pi._)`{i: ${t}, j: ${e}}`},xVe={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:_Ve,code(t){const{gen:e,data:n,$data:i,schema:a,parentSchema:o,schemaCode:r,it:s}=t;if(!i&&!a)return;const c=e.let("valid"),l=o.items?(0,dE.getSchemaTypes)(o.items):[];t.block$data(c,u,(0,Pi._)`${r} === false`),t.ok(c);function u(){const m=e.let("i",(0,Pi._)`${n}.length`),g=e.let("j");t.setParams({i:m,j:g}),e.assign(c,!0),e.if((0,Pi._)`${m} > 1`,()=>(f()?h:d)(m,g))}function f(){return l.length>0&&!l.some(m=>m==="object"||m==="array")}function h(m,g){const b=e.name("item"),v=(0,dE.checkDataTypes)(l,b,s.opts.strictNumbers,dE.DataType.Wrong),P=e.const("indices",(0,Pi._)`{}`);e.for((0,Pi._)`;${m}--;`,()=>{e.let(b,(0,Pi._)`${n}[${m}]`),e.if(v,(0,Pi._)`continue`),l.length>1&&e.if((0,Pi._)`typeof ${b} == "string"`,(0,Pi._)`${b} += "_"`),e.if((0,Pi._)`typeof ${P}[${b}] == "number"`,()=>{e.assign(g,(0,Pi._)`${P}[${b}]`),t.error(),e.assign(c,!1).break()}).code((0,Pi._)`${P}[${b}] = ${m}`)})}function d(m,g){const b=(0,AVe.useFunc)(e,SVe.default),v=e.name("outer");e.label(v).for((0,Pi._)`;${m}--;`,()=>e.for((0,Pi._)`${g} = ${m}; ${g}--;`,()=>e.if((0,Pi._)`${b}(${n}[${m}], ${n}[${g}])`,()=>{t.error(),e.assign(c,!1).break(v)})))}}};bx.default=xVe;var wx={};Object.defineProperty(wx,"__esModule",{value:!0});const iT=Et,DVe=at,kVe=i0,OVe={message:"must be equal to constant",params:({schemaCode:t})=>(0,iT._)`{allowedValue: ${t}}`},EVe={keyword:"const",$data:!0,error:OVe,code(t){const{gen:e,data:n,$data:i,schemaCode:a,schema:o}=t;i||o&&typeof o=="object"?t.fail$data((0,iT._)`!${(0,DVe.useFunc)(e,kVe.default)}(${n}, ${a})`):t.fail((0,iT._)`${o} !== ${n}`)}};wx.default=EVe;var $x={};Object.defineProperty($x,"__esModule",{value:!0});const Iv=Et,IVe=at,CVe=i0,TVe={message:"must be equal to one of the allowed values",params:({schemaCode:t})=>(0,Iv._)`{allowedValues: ${t}}`},jVe={keyword:"enum",schemaType:"array",$data:!0,error:TVe,code(t){const{gen:e,data:n,$data:i,schema:a,schemaCode:o,it:r}=t;if(!i&&a.length===0)throw new Error("enum must have non-empty array");const s=a.length>=r.opts.loopEnum;let c;const l=()=>c??(c=(0,IVe.useFunc)(e,CVe.default));let u;if(s||i)u=e.let("valid"),t.block$data(u,f);else{if(!Array.isArray(a))throw new Error("ajv implementation error");const d=e.const("vSchema",o);u=(0,Iv.or)(...a.map((m,g)=>h(d,g)))}t.pass(u);function f(){e.assign(u,!1),e.forOf("v",o,d=>e.if((0,Iv._)`${l()}(${n}, ${d})`,()=>e.assign(u,!0).break()))}function h(d,m){const g=a[m];return typeof g=="object"&&g!==null?(0,Iv._)`${l()}(${n}, ${d}[${m}])`:(0,Iv._)`${n} === ${g}`}}};$x.default=jVe;Object.defineProperty(hx,"__esModule",{value:!0});const MVe=GR,RVe=dx,NVe=mx,LVe=yx,FVe=gx,qVe=vx,zVe=Px,UVe=bx,BVe=wx,VVe=$x,WVe=[MVe.default,RVe.default,NVe.default,LVe.default,FVe.default,qVe.default,zVe.default,UVe.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},BVe.default,VVe.default];hx.default=WVe;var jb={},a0={};Object.defineProperty(a0,"__esModule",{value:!0});a0.validateAdditionalItems=void 0;const Pp=Et,aT=at,HVe={message:({params:{len:t}})=>(0,Pp.str)`must NOT have more than ${t} items`,params:({params:{len:t}})=>(0,Pp._)`{limit: ${t}}`},GVe={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:HVe,code(t){const{parentSchema:e,it:n}=t,{items:i}=e;if(!Array.isArray(i)){(0,aT.checkStrictMode)(n,'"additionalItems" is ignored when "items" is not an array of schemas');return}dte(t,i)}};function dte(t,e){const{gen:n,schema:i,data:a,keyword:o,it:r}=t;r.items=!0;const s=n.const("len",(0,Pp._)`${a}.length`);if(i===!1)t.setParams({len:e.length}),t.pass((0,Pp._)`${s} <= ${e.length}`);else if(typeof i=="object"&&!(0,aT.alwaysValidSchema)(r,i)){const l=n.var("valid",(0,Pp._)`${s} <= ${e.length}`);n.if((0,Pp.not)(l),()=>c(l)),t.ok(l)}function c(l){n.forRange("i",e.length,s,u=>{t.subschema({keyword:o,dataProp:u,dataPropType:aT.Type.Num},l),r.allErrors||n.if((0,Pp.not)(l),()=>n.break())})}}a0.validateAdditionalItems=dte;a0.default=GVe;var YR={},s0={};Object.defineProperty(s0,"__esModule",{value:!0});s0.validateTuple=void 0;const YB=Et,z$=at,KVe=Gt,YVe={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(t){const{schema:e,it:n}=t;if(Array.isArray(e))return mte(t,"additionalItems",e);n.items=!0,!(0,z$.alwaysValidSchema)(n,e)&&t.ok((0,KVe.validateArray)(t))}};function mte(t,e,n=t.schema){const{gen:i,parentSchema:a,data:o,keyword:r,it:s}=t;u(a),s.opts.unevaluated&&n.length&&s.items!==!0&&(s.items=z$.mergeEvaluated.items(i,n.length,s.items));const c=i.name("valid"),l=i.const("len",(0,YB._)`${o}.length`);n.forEach((f,h)=>{(0,z$.alwaysValidSchema)(s,f)||(i.if((0,YB._)`${l} > ${h}`,()=>t.subschema({keyword:r,schemaProp:h,dataProp:h},c)),t.ok(c))});function u(f){const{opts:h,errSchemaPath:d}=s,m=n.length,g=m===f.minItems&&(m===f.maxItems||f[e]===!1);if(h.strictTuples&&!g){const b=`"${r}" is ${m}-tuple, but minItems or maxItems/${e} are not specified or different at path "${d}"`;(0,z$.checkStrictMode)(s,b,h.strictTuples)}}}s0.validateTuple=mte;s0.default=YVe;Object.defineProperty(YR,"__esModule",{value:!0});const JVe=s0,QVe={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:t=>(0,JVe.validateTuple)(t,"items")};YR.default=QVe;var JR={};Object.defineProperty(JR,"__esModule",{value:!0});const JB=Et,ZVe=at,XVe=Gt,e8e=a0,t8e={message:({params:{len:t}})=>(0,JB.str)`must NOT have more than ${t} items`,params:({params:{len:t}})=>(0,JB._)`{limit: ${t}}`},r8e={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:t8e,code(t){const{schema:e,parentSchema:n,it:i}=t,{prefixItems:a}=n;i.items=!0,!(0,ZVe.alwaysValidSchema)(i,e)&&(a?(0,e8e.validateAdditionalItems)(t,a):t.ok((0,XVe.validateArray)(t)))}};JR.default=r8e;var QR={};Object.defineProperty(QR,"__esModule",{value:!0});const Us=Et,Gw=at,n8e={message:({params:{min:t,max:e}})=>e===void 0?(0,Us.str)`must contain at least ${t} valid item(s)`:(0,Us.str)`must contain at least ${t} and no more than ${e} valid item(s)`,params:({params:{min:t,max:e}})=>e===void 0?(0,Us._)`{minContains: ${t}}`:(0,Us._)`{minContains: ${t}, maxContains: ${e}}`},i8e={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:n8e,code(t){const{gen:e,schema:n,parentSchema:i,data:a,it:o}=t;let r,s;const{minContains:c,maxContains:l}=i;o.opts.next?(r=c===void 0?1:c,s=l):r=1;const u=e.const("len",(0,Us._)`${a}.length`);if(t.setParams({min:r,max:s}),s===void 0&&r===0){(0,Gw.checkStrictMode)(o,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(s!==void 0&&r>s){(0,Gw.checkStrictMode)(o,'"minContains" > "maxContains" is always invalid'),t.fail();return}if((0,Gw.alwaysValidSchema)(o,n)){let g=(0,Us._)`${u} >= ${r}`;s!==void 0&&(g=(0,Us._)`${g} && ${u} <= ${s}`),t.pass(g);return}o.items=!0;const f=e.name("valid");s===void 0&&r===1?d(f,()=>e.if(f,()=>e.break())):r===0?(e.let(f,!0),s!==void 0&&e.if((0,Us._)`${a}.length > 0`,h)):(e.let(f,!1),h()),t.result(f,()=>t.reset());function h(){const g=e.name("_valid"),b=e.let("count",0);d(g,()=>e.if(g,()=>m(b)))}function d(g,b){e.forRange("i",0,u,v=>{t.subschema({keyword:"contains",dataProp:v,dataPropType:Gw.Type.Num,compositeRule:!0},g),b()})}function m(g){e.code((0,Us._)`${g}++`),s===void 0?e.if((0,Us._)`${g} >= ${r}`,()=>e.assign(f,!0).break()):(e.if((0,Us._)`${g} > ${s}`,()=>e.assign(f,!1).break()),r===1?e.assign(f,!0):e.if((0,Us._)`${g} >= ${r}`,()=>e.assign(f,!0)))}}};QR.default=i8e;var Ax={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.validateSchemaDeps=t.validatePropertyDeps=t.error=void 0;const e=Et,n=at,i=Gt;t.error={message:({params:{property:c,depsCount:l,deps:u}})=>{const f=l===1?"property":"properties";return(0,e.str)`must have ${f} ${u} when property ${c} is present`},params:({params:{property:c,depsCount:l,deps:u,missingProperty:f}})=>(0,e._)`{property: ${c}, + missingProperty: ${f}, + depsCount: ${l}, + deps: ${u}}`};const a={keyword:"dependencies",type:"object",schemaType:"object",error:t.error,code(c){const[l,u]=o(c);r(c,l),s(c,u)}};function o({schema:c}){const l={},u={};for(const f in c){if(f==="__proto__")continue;const h=Array.isArray(c[f])?l:u;h[f]=c[f]}return[l,u]}function r(c,l=c.schema){const{gen:u,data:f,it:h}=c;if(Object.keys(l).length===0)return;const d=u.let("missing");for(const m in l){const g=l[m];if(g.length===0)continue;const b=(0,i.propertyInData)(u,f,m,h.opts.ownProperties);c.setParams({property:m,depsCount:g.length,deps:g.join(", ")}),h.allErrors?u.if(b,()=>{for(const v of g)(0,i.checkReportMissingProp)(c,v)}):(u.if((0,e._)`${b} && (${(0,i.checkMissingProp)(c,g,d)})`),(0,i.reportMissingProp)(c,d),u.else())}}t.validatePropertyDeps=r;function s(c,l=c.schema){const{gen:u,data:f,keyword:h,it:d}=c,m=u.name("valid");for(const g in l)(0,n.alwaysValidSchema)(d,l[g])||(u.if((0,i.propertyInData)(u,f,g,d.opts.ownProperties),()=>{const b=c.subschema({keyword:h,schemaProp:g},m);c.mergeValidEvaluated(b,m)},()=>u.var(m,!0)),c.ok(m))}t.validateSchemaDeps=s,t.default=a})(Ax);var ZR={};Object.defineProperty(ZR,"__esModule",{value:!0});const yte=Et,a8e=at,s8e={message:"property name must be valid",params:({params:t})=>(0,yte._)`{propertyName: ${t.propertyName}}`},o8e={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:s8e,code(t){const{gen:e,schema:n,data:i,it:a}=t;if((0,a8e.alwaysValidSchema)(a,n))return;const o=e.name("valid");e.forIn("key",i,r=>{t.setParams({propertyName:r}),t.subschema({keyword:"propertyNames",data:r,dataTypes:["string"],propertyName:r,compositeRule:!0},o),e.if((0,yte.not)(o),()=>{t.error(!0),a.allErrors||e.break()})}),t.ok(o)}};ZR.default=o8e;var Sx={};Object.defineProperty(Sx,"__esModule",{value:!0});const Kw=Gt,No=Et,l8e=xa,Yw=at,c8e={message:"must NOT have additional properties",params:({params:t})=>(0,No._)`{additionalProperty: ${t.additionalProperty}}`},u8e={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:c8e,code(t){const{gen:e,schema:n,parentSchema:i,data:a,errsCount:o,it:r}=t;if(!o)throw new Error("ajv implementation error");const{allErrors:s,opts:c}=r;if(r.props=!0,c.removeAdditional!=="all"&&(0,Yw.alwaysValidSchema)(r,n))return;const l=(0,Kw.allSchemaProperties)(i.properties),u=(0,Kw.allSchemaProperties)(i.patternProperties);f(),t.ok((0,No._)`${o} === ${l8e.default.errors}`);function f(){e.forIn("key",a,b=>{!l.length&&!u.length?m(b):e.if(h(b),()=>m(b))})}function h(b){let v;if(l.length>8){const P=(0,Yw.schemaRefOrVal)(r,i.properties,"properties");v=(0,Kw.isOwnProperty)(e,P,b)}else l.length?v=(0,No.or)(...l.map(P=>(0,No._)`${b} === ${P}`)):v=No.nil;return u.length&&(v=(0,No.or)(v,...u.map(P=>(0,No._)`${(0,Kw.usePattern)(t,P)}.test(${b})`))),(0,No.not)(v)}function d(b){e.code((0,No._)`delete ${a}[${b}]`)}function m(b){if(c.removeAdditional==="all"||c.removeAdditional&&n===!1){d(b);return}if(n===!1){t.setParams({additionalProperty:b}),t.error(),s||e.break();return}if(typeof n=="object"&&!(0,Yw.alwaysValidSchema)(r,n)){const v=e.name("valid");c.removeAdditional==="failing"?(g(b,v,!1),e.if((0,No.not)(v),()=>{t.reset(),d(b)})):(g(b,v),s||e.if((0,No.not)(v),()=>e.break()))}}function g(b,v,P){const A={keyword:"additionalProperties",dataProp:b,dataPropType:Yw.Type.Str};P===!1&&Object.assign(A,{compositeRule:!0,createErrors:!1,allErrors:!1}),t.subschema(A,v)}}};Sx.default=u8e;var XR={};Object.defineProperty(XR,"__esModule",{value:!0});const f8e=Ka,QB=Gt,mE=at,ZB=Sx,p8e={keyword:"properties",type:"object",schemaType:"object",code(t){const{gen:e,schema:n,parentSchema:i,data:a,it:o}=t;o.opts.removeAdditional==="all"&&i.additionalProperties===void 0&&ZB.default.code(new f8e.KeywordCxt(o,ZB.default,"additionalProperties"));const r=(0,QB.allSchemaProperties)(n);for(const f of r)o.definedProperties.add(f);o.opts.unevaluated&&r.length&&o.props!==!0&&(o.props=mE.mergeEvaluated.props(e,(0,mE.toHash)(r),o.props));const s=r.filter(f=>!(0,mE.alwaysValidSchema)(o,n[f]));if(s.length===0)return;const c=e.name("valid");for(const f of s)l(f)?u(f):(e.if((0,QB.propertyInData)(e,a,f,o.opts.ownProperties)),u(f),o.allErrors||e.else().var(c,!0),e.endIf()),t.it.definedProperties.add(f),t.ok(c);function l(f){return o.opts.useDefaults&&!o.compositeRule&&n[f].default!==void 0}function u(f){t.subschema({keyword:"properties",schemaProp:f,dataProp:f},c)}}};XR.default=p8e;var eN={};Object.defineProperty(eN,"__esModule",{value:!0});const XB=Gt,Jw=Et,e6=at,t6=at,h8e={keyword:"patternProperties",type:"object",schemaType:"object",code(t){const{gen:e,schema:n,data:i,parentSchema:a,it:o}=t,{opts:r}=o,s=(0,XB.allSchemaProperties)(n),c=s.filter(g=>(0,e6.alwaysValidSchema)(o,n[g]));if(s.length===0||c.length===s.length&&(!o.opts.unevaluated||o.props===!0))return;const l=r.strictSchema&&!r.allowMatchingProperties&&a.properties,u=e.name("valid");o.props!==!0&&!(o.props instanceof Jw.Name)&&(o.props=(0,t6.evaluatedPropsToName)(e,o.props));const{props:f}=o;h();function h(){for(const g of s)l&&d(g),o.allErrors?m(g):(e.var(u,!0),m(g),e.if(u))}function d(g){for(const b in l)new RegExp(g).test(b)&&(0,e6.checkStrictMode)(o,`property ${b} matches pattern ${g} (use allowMatchingProperties)`)}function m(g){e.forIn("key",i,b=>{e.if((0,Jw._)`${(0,XB.usePattern)(t,g)}.test(${b})`,()=>{const v=c.includes(g);v||t.subschema({keyword:"patternProperties",schemaProp:g,dataProp:b,dataPropType:t6.Type.Str},u),o.opts.unevaluated&&f!==!0?e.assign((0,Jw._)`${f}[${b}]`,!0):!v&&!o.allErrors&&e.if((0,Jw.not)(u),()=>e.break())})})}}};eN.default=h8e;var tN={};Object.defineProperty(tN,"__esModule",{value:!0});const d8e=at,m8e={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(t){const{gen:e,schema:n,it:i}=t;if((0,d8e.alwaysValidSchema)(i,n)){t.fail();return}const a=e.name("valid");t.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},a),t.failResult(a,()=>t.reset(),()=>t.error())},error:{message:"must NOT be valid"}};tN.default=m8e;var rN={};Object.defineProperty(rN,"__esModule",{value:!0});const y8e=Gt,g8e={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:y8e.validateUnion,error:{message:"must match a schema in anyOf"}};rN.default=g8e;var nN={};Object.defineProperty(nN,"__esModule",{value:!0});const U$=Et,v8e=at,P8e={message:"must match exactly one schema in oneOf",params:({params:t})=>(0,U$._)`{passingSchemas: ${t.passing}}`},b8e={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:P8e,code(t){const{gen:e,schema:n,parentSchema:i,it:a}=t;if(!Array.isArray(n))throw new Error("ajv implementation error");if(a.opts.discriminator&&i.discriminator)return;const o=n,r=e.let("valid",!1),s=e.let("passing",null),c=e.name("_valid");t.setParams({passing:s}),e.block(l),t.result(r,()=>t.reset(),()=>t.error(!0));function l(){o.forEach((u,f)=>{let h;(0,v8e.alwaysValidSchema)(a,u)?e.var(c,!0):h=t.subschema({keyword:"oneOf",schemaProp:f,compositeRule:!0},c),f>0&&e.if((0,U$._)`${c} && ${r}`).assign(r,!1).assign(s,(0,U$._)`[${s}, ${f}]`).else(),e.if(c,()=>{e.assign(r,!0),e.assign(s,f),h&&t.mergeEvaluated(h,U$.Name)})})}}};nN.default=b8e;var iN={};Object.defineProperty(iN,"__esModule",{value:!0});const w8e=at,$8e={keyword:"allOf",schemaType:"array",code(t){const{gen:e,schema:n,it:i}=t;if(!Array.isArray(n))throw new Error("ajv implementation error");const a=e.name("valid");n.forEach((o,r)=>{if((0,w8e.alwaysValidSchema)(i,o))return;const s=t.subschema({keyword:"allOf",schemaProp:r},a);t.ok(a),t.mergeEvaluated(s)})}};iN.default=$8e;var aN={};Object.defineProperty(aN,"__esModule",{value:!0});const SS=Et,gte=at,A8e={message:({params:t})=>(0,SS.str)`must match "${t.ifClause}" schema`,params:({params:t})=>(0,SS._)`{failingKeyword: ${t.ifClause}}`},S8e={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:A8e,code(t){const{gen:e,parentSchema:n,it:i}=t;n.then===void 0&&n.else===void 0&&(0,gte.checkStrictMode)(i,'"if" without "then" and "else" is ignored');const a=r6(i,"then"),o=r6(i,"else");if(!a&&!o)return;const r=e.let("valid",!0),s=e.name("_valid");if(c(),t.reset(),a&&o){const u=e.let("ifClause");t.setParams({ifClause:u}),e.if(s,l("then",u),l("else",u))}else a?e.if(s,l("then")):e.if((0,SS.not)(s),l("else"));t.pass(r,()=>t.error(!0));function c(){const u=t.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},s);t.mergeEvaluated(u)}function l(u,f){return()=>{const h=t.subschema({keyword:u},s);e.assign(r,s),t.mergeValidEvaluated(h,r),f?e.assign(f,(0,SS._)`${u}`):t.setParams({ifClause:u})}}}};function r6(t,e){const n=t.schema[e];return n!==void 0&&!(0,gte.alwaysValidSchema)(t,n)}aN.default=S8e;var sN={};Object.defineProperty(sN,"__esModule",{value:!0});const _8e=at,x8e={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:t,parentSchema:e,it:n}){e.if===void 0&&(0,_8e.checkStrictMode)(n,`"${t}" without "if" is ignored`)}};sN.default=x8e;Object.defineProperty(jb,"__esModule",{value:!0});const D8e=a0,k8e=YR,O8e=s0,E8e=JR,I8e=QR,C8e=Ax,T8e=ZR,j8e=Sx,M8e=XR,R8e=eN,N8e=tN,L8e=rN,F8e=nN,q8e=iN,z8e=aN,U8e=sN;function B8e(t=!1){const e=[N8e.default,L8e.default,F8e.default,q8e.default,z8e.default,U8e.default,T8e.default,j8e.default,C8e.default,M8e.default,R8e.default];return t?e.push(k8e.default,E8e.default):e.push(D8e.default,O8e.default),e.push(I8e.default),e}jb.default=B8e;var Mb={},oN={};Object.defineProperty(oN,"__esModule",{value:!0});const _n=Et,V8e={message:({schemaCode:t})=>(0,_n.str)`must match format "${t}"`,params:({schemaCode:t})=>(0,_n._)`{format: ${t}}`},W8e={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:V8e,code(t,e){const{gen:n,data:i,$data:a,schema:o,schemaCode:r,it:s}=t,{opts:c,errSchemaPath:l,schemaEnv:u,self:f}=s;if(!c.validateFormats)return;a?h():d();function h(){const m=n.scopeValue("formats",{ref:f.formats,code:c.code.formats}),g=n.const("fDef",(0,_n._)`${m}[${r}]`),b=n.let("fType"),v=n.let("format");n.if((0,_n._)`typeof ${g} == "object" && !(${g} instanceof RegExp)`,()=>n.assign(b,(0,_n._)`${g}.type || "string"`).assign(v,(0,_n._)`${g}.validate`),()=>n.assign(b,(0,_n._)`"string"`).assign(v,g)),t.fail$data((0,_n.or)(P(),A()));function P(){return c.strictSchema===!1?_n.nil:(0,_n._)`${r} && !${v}`}function A(){const _=u.$async?(0,_n._)`(${g}.async ? await ${v}(${i}) : ${v}(${i}))`:(0,_n._)`${v}(${i})`,x=(0,_n._)`(typeof ${v} == "function" ? ${_} : ${v}.test(${i}))`;return(0,_n._)`${v} && ${v} !== true && ${b} === ${e} && !${x}`}}function d(){const m=f.formats[o];if(!m){P();return}if(m===!0)return;const[g,b,v]=A(m);g===e&&t.pass(_());function P(){if(c.strictSchema===!1){f.logger.warn(x());return}throw new Error(x());function x(){return`unknown format "${o}" ignored in schema at path "${l}"`}}function A(x){const E=x instanceof RegExp?(0,_n.regexpCode)(x):c.code.formats?(0,_n._)`${c.code.formats}${(0,_n.getProperty)(o)}`:void 0,j=n.scopeValue("formats",{key:o,ref:x,code:E});return typeof x=="object"&&!(x instanceof RegExp)?[x.type||"string",x.validate,(0,_n._)`${j}.validate`]:["string",x,j]}function _(){if(typeof m=="object"&&!(m instanceof RegExp)&&m.async){if(!u.$async)throw new Error("async format in sync schema");return(0,_n._)`await ${v}(${i})`}return typeof b=="function"?(0,_n._)`${v}(${i})`:(0,_n._)`${v}.test(${i})`}}}};oN.default=W8e;Object.defineProperty(Mb,"__esModule",{value:!0});const H8e=oN,G8e=[H8e.default];Mb.default=G8e;var Ph={};Object.defineProperty(Ph,"__esModule",{value:!0});Ph.contentVocabulary=Ph.metadataVocabulary=void 0;Ph.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];Ph.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"];Object.defineProperty(fx,"__esModule",{value:!0});const K8e=px,Y8e=hx,J8e=jb,Q8e=Mb,n6=Ph,Z8e=[K8e.default,Y8e.default,(0,J8e.default)(),Q8e.default,n6.metadataVocabulary,n6.contentVocabulary];fx.default=Z8e;var o0={},_x={};Object.defineProperty(_x,"__esModule",{value:!0});_x.DiscrError=void 0;var i6;(function(t){t.Tag="tag",t.Mapping="mapping"})(i6||(_x.DiscrError=i6={}));Object.defineProperty(o0,"__esModule",{value:!0});const $d=Et,sT=_x,a6=fa,X8e=yu,eWe=at,tWe={message:({params:{discrError:t,tagName:e}})=>t===sT.DiscrError.Tag?`tag "${e}" must be string`:`value of tag "${e}" must be in oneOf`,params:({params:{discrError:t,tag:e,tagName:n}})=>(0,$d._)`{error: ${t}, tag: ${n}, tagValue: ${e}}`},rWe={keyword:"discriminator",type:"object",schemaType:"object",error:tWe,code(t){const{gen:e,data:n,schema:i,parentSchema:a,it:o}=t,{oneOf:r}=a;if(!o.opts.discriminator)throw new Error("discriminator: requires discriminator option");const s=i.propertyName;if(typeof s!="string")throw new Error("discriminator: requires propertyName");if(i.mapping)throw new Error("discriminator: mapping is not supported");if(!r)throw new Error("discriminator: requires oneOf keyword");const c=e.let("valid",!1),l=e.const("tag",(0,$d._)`${n}${(0,$d.getProperty)(s)}`);e.if((0,$d._)`typeof ${l} == "string"`,()=>u(),()=>t.error(!1,{discrError:sT.DiscrError.Tag,tag:l,tagName:s})),t.ok(c);function u(){const d=h();e.if(!1);for(const m in d)e.elseIf((0,$d._)`${l} === ${m}`),e.assign(c,f(d[m]));e.else(),t.error(!1,{discrError:sT.DiscrError.Mapping,tag:l,tagName:s}),e.endIf()}function f(d){const m=e.name("valid"),g=t.subschema({keyword:"oneOf",schemaProp:d},m);return t.mergeEvaluated(g,$d.Name),m}function h(){var d;const m={},g=v(a);let b=!0;for(let _=0;_this.addVocabulary(m)),this.opts.discriminator&&this.addKeyword(a.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const m=this.opts.$data?this.$dataMetaSchema(o,r):o;this.addMetaSchema(m,s,!1),this.refs["http://json-schema.org/schema"]=s}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(s)?s:void 0)}}e.Ajv=c,t.exports=e=c,t.exports.Ajv=c,Object.defineProperty(e,"__esModule",{value:!0}),e.default=c;var l=Ka;Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return l.KeywordCxt}});var u=Et;Object.defineProperty(e,"_",{enumerable:!0,get:function(){return u._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return u.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return u.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return u.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return u.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return u.CodeGen}});var f=Mh;Object.defineProperty(e,"ValidationError",{enumerable:!0,get:function(){return f.default}});var h=yu;Object.defineProperty(e,"MissingRefError",{enumerable:!0,get:function(){return h.default}})})(ZC,ZC.exports);var l0=ZC.exports,oT={exports:{}},vte={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.formatNames=t.fastFormats=t.fullFormats=void 0;function e(I,L){return{validate:I,compare:L}}t.fullFormats={date:e(o,r),time:e(c,l),"date-time":e(f,h),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:g,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:F,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:v,int32:{type:"number",validate:_},int64:{type:"number",validate:x},float:{type:"number",validate:E},double:{type:"number",validate:E},password:!0,binary:!0},t.fastFormats={...t.fullFormats,date:e(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,r),time:e(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,l),"date-time":e(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,h),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i},t.formatNames=Object.keys(t.fullFormats);function n(I){return I%4===0&&(I%100!==0||I%400===0)}const i=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,a=[0,31,28,31,30,31,30,31,31,30,31,30,31];function o(I){const L=i.exec(I);if(!L)return!1;const V=+L[1],q=+L[2],S=+L[3];return q>=1&&q<=12&&S>=1&&S<=(q===2&&n(V)?29:a[q])}function r(I,L){if(I&&L)return I>L?1:IL?1:I=P}function x(I){return Number.isInteger(I)}function E(){return!0}const j=/[^\\]\\Z/;function F(I){if(j.test(I))return!1;try{return new RegExp(I),!0}catch{return!1}}})(vte);var Pte={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.formatLimitDefinition=void 0;const e=l0,n=Et,i=n.operators,a={formatMaximum:{okStr:"<=",ok:i.LTE,fail:i.GT},formatMinimum:{okStr:">=",ok:i.GTE,fail:i.LT},formatExclusiveMaximum:{okStr:"<",ok:i.LT,fail:i.GTE},formatExclusiveMinimum:{okStr:">",ok:i.GT,fail:i.LTE}},o={message:({keyword:s,schemaCode:c})=>n.str`should be ${a[s].okStr} ${c}`,params:({keyword:s,schemaCode:c})=>n._`{comparison: ${a[s].okStr}, limit: ${c}}`};t.formatLimitDefinition={keyword:Object.keys(a),type:"string",schemaType:"string",$data:!0,error:o,code(s){const{gen:c,data:l,schemaCode:u,keyword:f,it:h}=s,{opts:d,self:m}=h;if(!d.validateFormats)return;const g=new e.KeywordCxt(h,m.RULES.all.format.definition,"format");g.$data?b():v();function b(){const A=c.scopeValue("formats",{ref:m.formats,code:d.code.formats}),_=c.const("fmt",n._`${A}[${g.schemaCode}]`);s.fail$data(n.or(n._`typeof ${_} != "object"`,n._`${_} instanceof RegExp`,n._`typeof ${_}.compare != "function"`,P(_)))}function v(){const A=g.schema,_=m.formats[A];if(!_||_===!0)return;if(typeof _!="object"||_ instanceof RegExp||typeof _.compare!="function")throw new Error(`"${f}": format "${A}" does not define "compare" function`);const x=c.scopeValue("formats",{key:A,ref:_,code:d.code.formats?n._`${d.code.formats}${n.getProperty(A)}`:void 0});s.fail$data(P(x))}function P(A){return n._`${A}.compare(${l}, ${u}) ${a[f].fail} 0`}},dependencies:["format"]};const r=s=>(s.addKeyword(t.formatLimitDefinition),s);t.default=r})(Pte);(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});const n=vte,i=Pte,a=Et,o=new a.Name("fullFormats"),r=new a.Name("fastFormats"),s=(l,u={keywords:!0})=>{if(Array.isArray(u))return c(l,u,n.fullFormats,o),l;const[f,h]=u.mode==="fast"?[n.fastFormats,r]:[n.fullFormats,o],d=u.formats||n.formatNames;return c(l,d,f,h),u.keywords&&i.default(l),l};s.get=(l,u="full")=>{const h=(u==="fast"?n.fastFormats:n.fullFormats)[l];if(!h)throw new Error(`Unknown format "${l}"`);return h};function c(l,u,f,h){var d,m;(d=(m=l.opts.code).formats)!==null&&d!==void 0||(m.formats=a._`require("ajv-formats/dist/formats").${h}`);for(const g of u)l.addFormat(g,f[g])}t.exports=e=s,Object.defineProperty(e,"__esModule",{value:!0}),e.default=s})(oT,oT.exports);var bte=oT.exports,lT={exports:{}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});const n=l0,i=Et,a=bg,o=Ka,r=n0,s=xa,c="errorMessage",l=new n.Name("emUsed"),u={required:"missingProperty",dependencies:"property",dependentRequired:"property"},f=/\$\{[^}]+\}/,h=/\$\{([^}]+)\}/g,d=/^""\s*\+\s*|\s*\+\s*""$/g;function m(b){return{keyword:c,schemaType:["string","object"],post:!0,code(v){const{gen:P,data:A,schema:_,schemaValue:x,it:E}=v;if(E.createErrors===!1)return;const j=_,F=i.strConcat(s.default.instancePath,E.errorPath);P.if(n._`${s.default.errors} > 0`,()=>{if(typeof j=="object"){const[W,T]=L(j);T&&V(T),W&&q(W),S(I(j))}const U=typeof j=="string"?j:j._;U&&D(U),b.keepErrors||R()});function I({properties:U,items:W}){const T={};if(U){T.props={};for(const G in U)T.props[G]=[]}if(W){T.items={};for(let G=0;GP.if(C(ie,W),()=>P.code(n._`${W}[${ie}.keyword].push(${ie})`).assign(n._`${ie}.${l}`,!0)));const{singleError:G}=b;if(G){const ie=P.let("message",n._`""`),Ae=P.let("paramsErrors",n._`[]`);oe(pe=>{P.if(ie,()=>P.code(n._`${ie} += ${typeof G=="string"?G:";"}`)),P.code(n._`${ie} += ${ve(pe)}`),P.assign(Ae,n._`${Ae}.concat(${W}[${pe}])`)}),r.reportError(v,{message:ie,params:n._`{errors: ${Ae}}`})}else oe(ie=>r.reportError(v,{message:ve(ie),params:n._`{errors: ${W}[${ie}]}`}));function oe(ie){P.forIn("key",W,Ae=>P.if(n._`${W}[${Ae}].length`,()=>ie(Ae)))}function ve(ie){return n._`${ie} in ${T} ? ${T}[${ie}]() : ${x}[${ie}]`}}function q(U){const W=P.const("emErrors",n.stringify(U)),T=[];for(const Ae in U)T.push([Ae,ae(U[Ae],_[Ae])]);const G=P.const("templates",P.object(...T)),oe=P.scopeValue("obj",{ref:u,code:n.stringify(u)}),ve=P.let("emPropParams"),ie=P.let("emParamsErrors");P.forOf("err",s.default.vErrors,Ae=>P.if(C(Ae,W),()=>{P.assign(ve,n._`${oe}[${Ae}.keyword]`),P.assign(ie,n._`${W}[${Ae}.keyword][${Ae}.params[${ve}]]`),P.if(ie,()=>P.code(n._`${ie}.push(${Ae})`).assign(n._`${Ae}.${l}`,!0))})),P.forIn("key",W,Ae=>P.forIn("keyProp",n._`${W}[${Ae}]`,pe=>{P.assign(ie,n._`${W}[${Ae}][${pe}]`),P.if(n._`${ie}.length`,()=>{const De=P.const("tmpl",n._`${G}[${Ae}] && ${G}[${Ae}][${pe}]`);r.reportError(v,{message:n._`${De} ? ${De}() : ${x}[${Ae}][${pe}]`,params:n._`{errors: ${ie}}`})})}))}function S(U){const{props:W,items:T}=U;if(!W&&!T)return;const G=n._`typeof ${A} == "object"`,oe=n._`Array.isArray(${A})`,ve=P.let("emErrors");let ie,Ae;const pe=P.let("templates");W&&T?(ie=P.let("emChildKwd"),P.if(G),P.if(oe,()=>{De(T,_.items),P.assign(ie,n.str`items`)},()=>{De(W,_.properties),P.assign(ie,n.str`properties`)}),Ae=n._`[${ie}]`):T?(P.if(oe),De(T,_.items),Ae=n._`.items`):W&&(P.if(i.and(G,i.not(oe))),De(W,_.properties),Ae=n._`.properties`),P.forOf("err",s.default.vErrors,We=>H(We,ve,Ce=>P.code(n._`${ve}[${Ce}].push(${We})`).assign(n._`${We}.${l}`,!0))),P.forIn("key",ve,We=>P.if(n._`${ve}[${We}].length`,()=>{r.reportError(v,{message:n._`${We} in ${pe} ? ${pe}[${We}]() : ${x}${Ae}[${We}]`,params:n._`{errors: ${ve}[${We}]}`}),P.assign(n._`${s.default.vErrors}[${s.default.errors}-1].instancePath`,n._`${F} + "/" + ${We}.replace(/~/g, "~0").replace(/\\//g, "~1")`)})),P.endIf();function De(We,Ce){P.assign(ve,n.stringify(We)),P.assign(pe,ae(We,Ce))}}function D(U){const W=P.const("emErrs",n._`[]`);P.forOf("err",s.default.vErrors,T=>P.if(X(T),()=>P.code(n._`${W}.push(${T})`).assign(n._`${T}.${l}`,!0))),P.if(n._`${W}.length`,()=>r.reportError(v,{message:z(U),params:n._`{errors: ${W}}`}))}function R(){const U=P.const("emErrs",n._`[]`);P.forOf("err",s.default.vErrors,W=>P.if(n._`!${W}.${l}`,()=>P.code(n._`${U}.push(${W})`))),P.assign(s.default.vErrors,U).assign(s.default.errors,n._`${U}.length`)}function C(U,W){return i.and(n._`${U}.keyword !== ${c}`,n._`!${U}.${l}`,n._`${U}.instancePath === ${F}`,n._`${U}.keyword in ${W}`,n._`${U}.schemaPath.indexOf(${E.errSchemaPath}) === 0`,n._`/^\\/[^\\/]*$/.test(${U}.schemaPath.slice(${E.errSchemaPath.length}))`)}function H(U,W,T){P.if(i.and(n._`${U}.keyword !== ${c}`,n._`!${U}.${l}`,n._`${U}.instancePath.indexOf(${F}) === 0`),()=>{const G=P.scopeValue("pattern",{ref:/^\/([^/]*)(?:\/|$)/,code:n._`new RegExp("^\\\/([^/]*)(?:\\\/|$)")`}),oe=P.const("emMatches",n._`${G}.exec(${U}.instancePath.slice(${F}.length))`),ve=P.const("emChild",n._`${oe} && ${oe}[1].replace(/~1/g, "/").replace(/~0/g, "~")`);P.if(n._`${ve} !== undefined && ${ve} in ${W}`,()=>T(ve))})}function X(U){return i.and(n._`${U}.keyword !== ${c}`,n._`!${U}.${l}`,i.or(n._`${U}.instancePath === ${F}`,i.and(n._`${U}.instancePath.indexOf(${F}) === 0`,n._`${U}.instancePath[${F}.length] === "/"`)),n._`${U}.schemaPath.indexOf(${E.errSchemaPath}) === 0`,n._`${U}.schemaPath[${E.errSchemaPath}.length] === "/"`)}function ae(U,W){const T=[];for(const G in U){const oe=W[G];f.test(oe)&&T.push([G,M(oe)])}return P.object(...T)}function z(U){return f.test(U)?new a._Code(a.safeStringify(U).replace(h,(W,T)=>`" + JSON.stringify(${o.getData(T,E)}) + "`).replace(d,"")):n.stringify(U)}function M(U){return n._`function(){return ${z(U)}}`}},metaSchema:{anyOf:[{type:"string"},{type:"object",properties:{properties:{$ref:"#/$defs/stringMap"},items:{$ref:"#/$defs/stringList"},required:{$ref:"#/$defs/stringOrMap"},dependencies:{$ref:"#/$defs/stringOrMap"}},additionalProperties:{type:"string"}}],$defs:{stringMap:{type:"object",additionalProperties:{type:"string"}},stringOrMap:{anyOf:[{type:"string"},{$ref:"#/$defs/stringMap"}]},stringList:{type:"array",items:{type:"string"}}}}}}const g=(b,v={})=>{if(!b.opts.allErrors)throw new Error("ajv-errors: Ajv option allErrors must be true");if(b.opts.jsPropertySyntax)throw new Error("ajv-errors: ajv option jsPropertySyntax is not supported");return b.addKeyword(m(v))};e.default=g,t.exports=g,t.exports.default=g})(lT,lT.exports);var lN=lT.exports;const uWe="http://json-schema.org/draft-07/schema#",fWe="@stoplight/spectral-core/meta/rule.schema",pWe={Then:{type:"object",allOf:[{properties:{field:{type:"string"}}},{$ref:"extensions#function"}]},Severity:{$ref:"shared#severity"}},hWe={type:"object",properties:{description:{type:"string"},documentationUrl:{type:"string",format:"url",errorMessage:"must be a valid URL"},recommended:{type:"boolean"},given:{$ref:"shared#given"},resolved:{type:"boolean"},severity:{$ref:"#/$defs/Severity"},message:{type:"string"},tags:{items:{type:"string"},type:"array"},formats:{$ref:"shared#formats"},then:{if:{type:"array"},then:{type:"array",items:{$ref:"#/$defs/Then"}},else:{$ref:"#/$defs/Then"}},type:{enum:["style","validation"],type:"string",errorMessage:'allowed types are "style" and "validation"'},extensions:{type:"object"}},required:["given","then"],additionalProperties:!1,patternProperties:{"^x-":!0},errorMessage:{required:'the rule must have at least "given" and "then" properties'}},dWe={$schema:uWe,$id:fWe,$defs:pWe,if:{type:"object"},then:hWe,else:{oneOf:[{$ref:"shared#/$defs/HumanReadableSeverity"},{type:"boolean"}]}},mWe="http://json-schema.org/draft-07/schema#",yWe="@stoplight/spectral-core/meta/shared",gWe={Formats:{$anchor:"formats",type:"array",items:{$ref:"extensions#format"},errorMessage:"must be an array of formats"},DiagnosticSeverity:{enum:[-1,0,1,2,3]},HumanReadableSeverity:{enum:["error","warn","info","hint","off"]},Severity:{$anchor:"severity",oneOf:[{$ref:"#/$defs/DiagnosticSeverity"},{$ref:"#/$defs/HumanReadableSeverity"}],errorMessage:'the value has to be one of: 0, 1, 2, 3 or "error", "warn", "info", "hint", "off"'},Given:{$anchor:"given",if:{type:"array"},then:{$anchor:"arrayish-given",type:"array",items:{$ref:"path-expression"},minItems:1,errorMessage:{minItems:"must be a non-empty array of expressions"}},else:{$ref:"path-expression"}},PathExpression:{$id:"path-expression",if:{type:"string"},then:{type:"string",if:{pattern:"^#"},then:{"x-spectral-runtime":"alias"},else:{pattern:"^\\$",errorMessage:"must be a valid JSON Path expression or a reference to the existing Alias optionally paired with a JSON Path expression subset"}},else:{not:{},errorMessage:"must be a valid JSON Path expression or a reference to the existing Alias optionally paired with a JSON Path expression subset"}}},vWe={$schema:mWe,$id:yWe,$defs:gWe},PWe="http://json-schema.org/draft-07/schema#",bWe="@stoplight/spectral-core/meta/ruleset.schema",wWe="object",$We=!1,AWe={documentationUrl:{type:"string",format:"url",errorMessage:"must be a valid URL"},description:{type:"string"},rules:{type:"object",additionalProperties:{$ref:"rule.schema#"}},functions:{$ref:"extensions#functions"},functionsDir:{$ref:"extensions#functionsDir"},formats:{$ref:"shared#formats"},extends:{$ref:"extensions#extends"},parserOptions:{type:"object",properties:{duplicateKeys:{$ref:"shared#severity"},incompatibleValues:{$ref:"shared#severity"}},additionalProperties:!1},overrides:{type:"array",minItems:1,items:{if:{type:"object",properties:{files:{type:"array",minItems:1,items:{type:"string",minLength:1,pattern:"^[^#]+#"},errorMessage:"must be an non-empty array of glob patterns"}},required:["files"]},then:{type:"object",properties:{files:!0,rules:{type:"object",additionalProperties:{$ref:"shared#severity"},errorMessage:{enum:"must be a valid severity level"}}},required:["rules"],additionalProperties:!1,errorMessage:{required:"must contain rules when JSON Pointers are defined",additionalProperties:"must not override any other property than rules when JSON Pointers are defined"}},else:{allOf:[{type:"object",properties:{files:{type:"array",minItems:1,items:{type:"string",pattern:"[^#]",minLength:1},errorMessage:"must be an non-empty array of glob patterns"}},required:["files"],errorMessage:{type:'must be an override, i.e. { "files": ["v2/**/*.json"], "rules": {} }'}},{type:"object",properties:{formats:{$ref:"shared#formats"},extends:{$ref:"#/properties/extends"},rules:{$ref:"#/properties/rules"},parserOptions:{$ref:"#/properties/parserOptions"},aliases:{$ref:"#/properties/aliases"}},anyOf:[{required:["extends"]},{required:["rules"]}]}]}},errorMessage:{minItems:"must not be empty"}},aliases:{type:"object",propertyNames:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$",errorMessage:{pattern:"to avoid confusion the name must match /^[A-Za-z][A-Za-z0-9_-]*$/ regular expression",minLength:"the name of an alias must not be empty"}},additionalProperties:{if:{type:"object"},then:{type:"object",properties:{description:{type:"string"},targets:{type:"array",minItems:1,items:{type:"object",properties:{formats:{$ref:"shared#formats"},given:{$ref:"shared#arrayish-given"}},required:["formats","given"],errorMessage:"a valid target must contain given and non-empty formats"},errorMessage:{minItems:"targets must have at least a single alias definition"}}},required:["targets"],errorMessage:{required:"targets must be present and have at least a single alias definition"}},else:{$ref:"shared#arrayish-given"}}}},SWe={"^x-":!0},_We=[{required:["extends"]},{required:["rules"]},{required:["overrides"]}],xWe={$schema:PWe,$id:bWe,type:wWe,additionalProperties:$We,properties:AWe,patternProperties:SWe,anyOf:_We},DWe="http://json-schema.org/draft-07/schema#",kWe="@stoplight/spectral-core/meta/extensions",OWe={Extends:{$anchor:"extends",oneOf:[{$id:"ruleset",$ref:"ruleset.schema#",errorMessage:"must be a valid ruleset"},{type:"array",items:{anyOf:[{$ref:"ruleset"},{type:"array",minItems:2,additionalItems:!1,items:[{$ref:"ruleset"},{type:"string",enum:["off","recommended","all"],errorMessage:'allowed types are "off", "recommended" and "all"'}]}]}}],errorMessage:"must be a valid ruleset"},Format:{$anchor:"format","x-spectral-runtime":"format",errorMessage:"must be a valid format"},Function:{$anchor:"function","x-spectral-runtime":"ruleset-function",type:"object",properties:{function:!0},required:["function"]},Functions:{$anchor:"functions",not:{}},FunctionsDir:{$anchor:"functionsDir",not:{}}},EWe={$schema:DWe,$id:kWe,$defs:OWe},IWe="http://json-schema.org/draft-07/schema#",CWe="@stoplight/spectral-core/meta/extensions",TWe={Extends:{$anchor:"extends",oneOf:[{type:"string"},{type:"array",items:{oneOf:[{type:"string"},{type:"array",minItems:2,additionalItems:!1,items:[{type:"string"},{enum:["all","recommended","off"],errorMessage:'allowed types are "off", "recommended" and "all"'}]}]}}]},Format:{$anchor:"format",type:"string",errorMessage:"must be a valid format"},Functions:{$anchor:"functions",type:"array",items:{type:"string"}},FunctionsDir:{$anchor:"functionsDir",type:"string"},Function:{$anchor:"function",type:"object",properties:{function:{type:"string"}},required:["function"]}},jWe={$schema:IWe,$id:CWe,$defs:TWe};var xx={},bh={},MWe="Function.prototype.bind called on incompatible ",RWe=Object.prototype.toString,NWe=Math.max,LWe="[object Function]",s6=function(e,n){for(var i=[],a=0;a=0&&o6.call(e.callee)==="[object Function]"),i},yE,l6;function BWe(){if(l6)return yE;l6=1;var t;if(!Object.keys){var e=Object.prototype.hasOwnProperty,n=Object.prototype.toString,i=wte,a=Object.prototype.propertyIsEnumerable,o=!a.call({toString:null},"toString"),r=a.call(function(){},"prototype"),s=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],c=function(h){var d=h.constructor;return d&&d.prototype===h},l={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},u=function(){if(typeof window>"u")return!1;for(var h in window)try{if(!l["$"+h]&&e.call(window,h)&&window[h]!==null&&typeof window[h]=="object")try{c(window[h])}catch{return!0}}catch{return!0}return!1}(),f=function(h){if(typeof window>"u"||!u)return c(h);try{return c(h)}catch{return!1}};t=function(d){var m=d!==null&&typeof d=="object",g=n.call(d)==="[object Function]",b=i(d),v=m&&n.call(d)==="[object String]",P=[];if(!m&&!g&&!b)throw new TypeError("Object.keys called on a non-object");var A=r&&g;if(v&&d.length>0&&!e.call(d,0))for(var _=0;_0)for(var x=0;x"u"||!ci?tr:ci(Uint8Array),Gp={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?tr:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?tr:ArrayBuffer,"%ArrayIteratorPrototype%":cd&&ci?ci([][Symbol.iterator]()):tr,"%AsyncFromSyncIteratorPrototype%":tr,"%AsyncFunction%":Ad,"%AsyncGenerator%":Ad,"%AsyncGeneratorFunction%":Ad,"%AsyncIteratorPrototype%":Ad,"%Atomics%":typeof Atomics>"u"?tr:Atomics,"%BigInt%":typeof BigInt>"u"?tr:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?tr:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?tr:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?tr:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":rHe,"%eval%":eval,"%EvalError%":nHe,"%Float32Array%":typeof Float32Array>"u"?tr:Float32Array,"%Float64Array%":typeof Float64Array>"u"?tr:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?tr:FinalizationRegistry,"%Function%":Ste,"%GeneratorFunction%":Ad,"%Int8Array%":typeof Int8Array>"u"?tr:Int8Array,"%Int16Array%":typeof Int16Array>"u"?tr:Int16Array,"%Int32Array%":typeof Int32Array>"u"?tr:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":cd&&ci?ci(ci([][Symbol.iterator]())):tr,"%JSON%":typeof JSON=="object"?JSON:tr,"%Map%":typeof Map>"u"?tr:Map,"%MapIteratorPrototype%":typeof Map>"u"||!cd||!ci?tr:ci(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?tr:Promise,"%Proxy%":typeof Proxy>"u"?tr:Proxy,"%RangeError%":iHe,"%ReferenceError%":aHe,"%Reflect%":typeof Reflect>"u"?tr:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?tr:Set,"%SetIteratorPrototype%":typeof Set>"u"||!cd||!ci?tr:ci(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?tr:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":cd&&ci?ci(""[Symbol.iterator]()):tr,"%Symbol%":cd?Symbol:tr,"%SyntaxError%":wg,"%ThrowTypeError%":oHe,"%TypedArray%":cHe,"%TypeError%":cm,"%Uint8Array%":typeof Uint8Array>"u"?tr:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?tr:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?tr:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?tr:Uint32Array,"%URIError%":sHe,"%WeakMap%":typeof WeakMap>"u"?tr:WeakMap,"%WeakRef%":typeof WeakRef>"u"?tr:WeakRef,"%WeakSet%":typeof WeakSet>"u"?tr:WeakSet};if(ci)try{null.error}catch(t){var uHe=ci(ci(t));Gp["%Error.prototype%"]=uHe}var fHe=function t(e){var n;if(e==="%AsyncFunction%")n=vE("async function () {}");else if(e==="%GeneratorFunction%")n=vE("function* () {}");else if(e==="%AsyncGeneratorFunction%")n=vE("async function* () {}");else if(e==="%AsyncGenerator%"){var i=t("%AsyncGeneratorFunction%");i&&(n=i.prototype)}else if(e==="%AsyncIteratorPrototype%"){var a=t("%AsyncGenerator%");a&&ci&&(n=ci(a.prototype))}return Gp[e]=n,n},p6={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Rb=Dx,_S=Uf,pHe=Rb.call(Function.call,Array.prototype.concat),hHe=Rb.call(Function.apply,Array.prototype.splice),h6=Rb.call(Function.call,String.prototype.replace),xS=Rb.call(Function.call,String.prototype.slice),dHe=Rb.call(Function.call,RegExp.prototype.exec),mHe=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,yHe=/\\(\\)?/g,gHe=function(e){var n=xS(e,0,1),i=xS(e,-1);if(n==="%"&&i!=="%")throw new wg("invalid intrinsic syntax, expected closing `%`");if(i==="%"&&n!=="%")throw new wg("invalid intrinsic syntax, expected opening `%`");var a=[];return h6(e,mHe,function(o,r,s,c){a[a.length]=s?h6(c,yHe,"$1"):r||o}),a},vHe=function(e,n){var i=e,a;if(_S(p6,i)&&(a=p6[i],i="%"+a[0]+"%"),_S(Gp,i)){var o=Gp[i];if(o===Ad&&(o=fHe(i)),typeof o>"u"&&!n)throw new cm("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:a,name:i,value:o}}throw new wg("intrinsic "+e+" does not exist!")},ai=function(e,n){if(typeof e!="string"||e.length===0)throw new cm("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof n!="boolean")throw new cm('"allowMissing" argument must be a boolean');if(dHe(/^%?[^%]*%?$/,e)===null)throw new wg("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var i=gHe(e),a=i.length>0?i[0]:"",o=vHe("%"+a+"%",n),r=o.name,s=o.value,c=!1,l=o.alias;l&&(a=l[0],hHe(i,pHe([0,1],l)));for(var u=1,f=!0;u=i.length){var g=Hp(s,h);f=!!g,f&&"get"in g&&!("originalValue"in g.get)?s=g.get:s=s[h]}else f=_S(s,h),s=s[h];f&&!c&&(Gp[r]=s)}}return s},PHe=ai,V$=PHe("%Object.defineProperty%",!0)||!1;if(V$)try{V$({},"a",{value:1})}catch{V$=!1}var Ox=V$,bHe=ai,W$=bHe("%Object.getOwnPropertyDescriptor%",!0);if(W$)try{W$([],"length")}catch{W$=null}var Ex=W$,d6=Ox,wHe=Rh,ud=Bt,m6=Ex,Ix=function(e,n,i){if(!e||typeof e!="object"&&typeof e!="function")throw new ud("`obj` must be an object or a function`");if(typeof n!="string"&&typeof n!="symbol")throw new ud("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new ud("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new ud("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new ud("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new ud("`loose`, if provided, must be a boolean");var a=arguments.length>3?arguments[3]:null,o=arguments.length>4?arguments[4]:null,r=arguments.length>5?arguments[5]:null,s=arguments.length>6?arguments[6]:!1,c=!!m6&&m6(e,n);if(d6)d6(e,n,{configurable:r===null&&c?c.configurable:!r,enumerable:a===null&&c?c.enumerable:!a,value:i,writable:o===null&&c?c.writable:!o});else if(s||!a&&!o&&!r)e[n]=i;else throw new wHe("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},cT=Ox,_te=function(){return!!cT};_te.hasArrayLengthDefineBug=function(){if(!cT)return null;try{return cT([],"length",{value:1}).length!==1}catch{return!0}};var Nb=_te,$He=HWe,AHe=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",SHe=Object.prototype.toString,_He=Array.prototype.concat,y6=Ix,xHe=function(t){return typeof t=="function"&&SHe.call(t)==="[object Function]"},xte=Nb(),DHe=function(t,e,n,i){if(e in t){if(i===!0){if(t[e]===n)return}else if(!xHe(i)||!i())return}xte?y6(t,e,n,!0):y6(t,e,n)},Dte=function(t,e){var n=arguments.length>2?arguments[2]:{},i=$He(e);AHe&&(i=_He.call(i,Object.getOwnPropertySymbols(e)));for(var a=0;a2&&!!arguments[2];return(!i||IHe)&&(EHe?g6(e,"name",n,!0,!0):g6(e,"name",n)),e},Nh=function(e){return typeof e=="string"||typeof e=="symbol"},jHe=Bt,sv=Uf,MHe={__proto__:null,"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0},gu=function(e){if(!e||typeof e!="object")return!1;for(var n in e)if(sv(e,n)&&!MHe[n])return!1;var i=sv(e,"[[Value]]")||sv(e,"[[Writable]]"),a=sv(e,"[[Get]]")||sv(e,"[[Set]]");if(i&&a)throw new jHe("Property Descriptors may not be both accessor and data descriptors");return!0},RHe=Bt,v6=Uf,NHe=gu,uN=function(e){if(typeof e>"u")return!1;if(!NHe(e))throw new RHe("Assertion failed: `Desc` must be a Property Descriptor");return!(!v6(e,"[[Get]]")&&!v6(e,"[[Set]]"))},bE,P6;function LHe(){return P6||(P6=1,bE=function(e){return e===null||typeof e!="function"&&typeof e!="object"}),bE}var kte=ai,FHe=kte("%Object.preventExtensions%",!0),qHe=kte("%Object.isExtensible%",!0),b6=LHe(),zHe=FHe?function(e){return!b6(e)&&qHe(e)}:function(e){return!b6(e)},Ote=function(e){if(e===null)return"Null";if(typeof e>"u")return"Undefined";if(typeof e=="function"||typeof e=="object")return"Object";if(typeof e=="number")return"Number";if(typeof e=="boolean")return"Boolean";if(typeof e=="string")return"String"},UHe=Ote,Ja=function(e){return typeof e=="symbol"?"Symbol":typeof e=="bigint"?"BigInt":UHe(e)},Ete=function(e){return!!e},wE,w6;function BHe(){if(w6)return wE;w6=1;var t=Function.prototype.toString,e=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,n,i;if(typeof e=="function"&&typeof Object.defineProperty=="function")try{n=Object.defineProperty({},"length",{get:function(){throw i}}),i={},e(function(){throw 42},null,n)}catch(P){P!==i&&(e=null)}else e=null;var a=/^\s*class\b/,o=function(A){try{var _=t.call(A);return a.test(_)}catch{return!1}},r=function(A){try{return o(A)?!1:(t.call(A),!0)}catch{return!1}},s=Object.prototype.toString,c="[object Object]",l="[object Function]",u="[object GeneratorFunction]",f="[object HTMLAllCollection]",h="[object HTML document.all class]",d="[object HTMLCollection]",m=typeof Symbol=="function"&&!!Symbol.toStringTag,g=!(0 in[,]),b=function(){return!1};if(typeof document=="object"){var v=document.all;s.call(v)===s.call(document.all)&&(b=function(A){if((g||!A)&&(typeof A>"u"||typeof A=="object"))try{var _=s.call(A);return(_===f||_===h||_===d||_===c)&&A("")==null}catch{}return!1})}return wE=e?function(A){if(b(A))return!0;if(!A||typeof A!="function"&&typeof A!="object")return!1;try{e(A,null,n)}catch(_){if(_!==i)return!1}return!o(A)&&r(A)}:function(A){if(b(A))return!0;if(!A||typeof A!="function"&&typeof A!="object")return!1;if(m)return r(A);if(o(A))return!1;var _=s.call(A);return _!==l&&_!==u&&!/^\[object HTML/.test(_)?!1:r(A)},wE}var $E,$6;function fN(){return $6||($6=1,$E=BHe()),$E}var bl=Uf,Qw=Bt,VHe=Ja,AE=Ete,A6=fN(),WHe=function(e){if(VHe(e)!=="Object")throw new Qw("ToPropertyDescriptor requires an object");var n={};if(bl(e,"enumerable")&&(n["[[Enumerable]]"]=AE(e.enumerable)),bl(e,"configurable")&&(n["[[Configurable]]"]=AE(e.configurable)),bl(e,"value")&&(n["[[Value]]"]=e.value),bl(e,"writable")&&(n["[[Writable]]"]=AE(e.writable)),bl(e,"get")){var i=e.get;if(typeof i<"u"&&!A6(i))throw new Qw("getter must be a function");n["[[Get]]"]=i}if(bl(e,"set")){var a=e.set;if(typeof a<"u"&&!A6(a))throw new Qw("setter must be a function");n["[[Set]]"]=a}if((bl(n,"[[Get]]")||bl(n,"[[Set]]"))&&(bl(n,"[[Value]]")||bl(n,"[[Writable]]")))throw new Qw("Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");return n},Tx=Number.isNaN||function(e){return e!==e},S6=Tx,Ite=function(e,n){return e===n?e===0?1/e===1/n:!0:S6(e)&&S6(n)},Cte={exports:{}},HHe=ai,_6=Ix,GHe=Nb(),x6=Ex,D6=Bt,KHe=HHe("%Math.floor%"),YHe=function(e,n){if(typeof e!="function")throw new D6("`fn` is not a function");if(typeof n!="number"||n<0||n>4294967295||KHe(n)!==n)throw new D6("`length` must be a positive 32-bit integer");var i=arguments.length>2&&!!arguments[2],a=!0,o=!0;if("length"in e&&x6){var r=x6(e,"length");r&&!r.configurable&&(a=!1),r&&!r.writable&&(o=!1)}return(a||o||!i)&&(GHe?_6(e,"length",n,!0,!0):_6(e,"length",n)),e};(function(t){var e=Dx,n=ai,i=YHe,a=Bt,o=n("%Function.prototype.apply%"),r=n("%Function.prototype.call%"),s=n("%Reflect.apply%",!0)||e.call(r,o),c=Ox,l=n("%Math.max%");t.exports=function(h){if(typeof h!="function")throw new a("a function is required");var d=s(e,r,arguments);return i(d,1+l(0,h.length-(arguments.length-1)),!0)};var u=function(){return s(e,o,arguments)};c?c(t.exports,"apply",{value:u}):t.exports.apply=u})(Cte);var Tte=Cte.exports,jte=ai,Mte=Tte,JHe=Mte(jte("String.prototype.indexOf")),Bf=function(e,n){var i=jte(e,!!n);return typeof i=="function"&&JHe(e,".prototype.")>-1?Mte(i):i},SE,k6;function Rte(){if(k6)return SE;k6=1;var t=ai,e=t("%Array%"),n=!e.isArray&&Bf("Object.prototype.toString");return SE=e.isArray||function(a){return n(a)==="[object Array]"},SE}var QHe=Nb,O6=Ox,Nte=QHe.hasArrayLengthDefineBug(),ZHe=Nte&&Rte(),XHe=Bf,e7e=XHe("Object.prototype.propertyIsEnumerable"),Lte=function(e,n,i,a,o,r){if(!O6){if(!e(r)||!r["[[Configurable]]"]||!r["[[Writable]]"]||o in a&&e7e(a,o)!==!!r["[[Enumerable]]"])return!1;var s=r["[[Value]]"];return a[o]=s,n(a[o],s)}return Nte&&o==="length"&&"[[Value]]"in r&&ZHe(a)&&a.length!==r["[[Value]]"]?(a.length=r["[[Value]]"],a.length===r["[[Value]]"]):(O6(a,o,i(r)),!0)},t7e=gu,r7e=function(e,n){return t7e(n)&&typeof n=="object"&&"[[Enumerable]]"in n&&"[[Configurable]]"in n&&(e.IsAccessorDescriptor(n)||e.IsDataDescriptor(n))},Fte=function(e){if(typeof e>"u")return e;var n={};return"[[Value]]"in e&&(n.value=e["[[Value]]"]),"[[Writable]]"in e&&(n.writable=!!e["[[Writable]]"]),"[[Get]]"in e&&(n.get=e["[[Get]]"]),"[[Set]]"in e&&(n.set=e["[[Set]]"]),"[[Enumerable]]"in e&&(n.enumerable=!!e["[[Enumerable]]"]),"[[Configurable]]"in e&&(n.configurable=!!e["[[Configurable]]"]),n},n7e=Bt,i7e=gu,a7e=Fte,s7e=function(e){if(typeof e<"u"&&!i7e(e))throw new n7e("Assertion failed: `Desc` must be a Property Descriptor");return a7e(e)},o7e=Bt,E6=Uf,l7e=gu,qte=function(e){if(typeof e>"u")return!1;if(!l7e(e))throw new o7e("Assertion failed: `Desc` must be a Property Descriptor");return!(!E6(e,"[[Value]]")&&!E6(e,"[[Writable]]"))},c7e=Bt,u7e=uN,f7e=qte,p7e=gu,h7e=function(e){if(typeof e>"u")return!1;if(!p7e(e))throw new c7e("Assertion failed: `Desc` must be a Property Descriptor");return!u7e(e)&&!f7e(e)},fd=Bt,ov=Lte,d7e=r7e,I6=gu,lv=s7e,op=uN,zu=qte,m7e=h7e,y7e=Nh,wl=Ite,g7e=Ja,v7e=function(e,n,i,a,o){var r=g7e(e);if(r!=="Undefined"&&r!=="Object")throw new fd("Assertion failed: O must be undefined or an Object");if(!y7e(n))throw new fd("Assertion failed: P must be a Property Key");if(typeof i!="boolean")throw new fd("Assertion failed: extensible must be a Boolean");if(!I6(a))throw new fd("Assertion failed: Desc must be a Property Descriptor");if(typeof o<"u"&&!I6(o))throw new fd("Assertion failed: current must be a Property Descriptor, or undefined");if(typeof o>"u")return i?r==="Undefined"?!0:op(a)?ov(zu,wl,lv,e,n,a):ov(zu,wl,lv,e,n,{"[[Configurable]]":!!a["[[Configurable]]"],"[[Enumerable]]":!!a["[[Enumerable]]"],"[[Value]]":a["[[Value]]"],"[[Writable]]":!!a["[[Writable]]"]}):!1;if(!d7e({IsAccessorDescriptor:op,IsDataDescriptor:zu},o))throw new fd("`current`, when present, must be a fully populated and valid Property Descriptor");if(!o["[[Configurable]]"]){if("[[Configurable]]"in a&&a["[[Configurable]]"]||"[[Enumerable]]"in a&&!wl(a["[[Enumerable]]"],o["[[Enumerable]]"])||!m7e(a)&&!wl(op(a),op(o)))return!1;if(op(o)){if("[[Get]]"in a&&!wl(a["[[Get]]"],o["[[Get]]"])||"[[Set]]"in a&&!wl(a["[[Set]]"],o["[[Set]]"]))return!1}else if(!o["[[Writable]]"]&&("[[Writable]]"in a&&a["[[Writable]]"]||"[[Value]]"in a&&!wl(a["[[Value]]"],o["[[Value]]"])))return!1}if(r!=="Undefined"){var s,c;return zu(o)&&op(a)?(s=("[[Configurable]]"in a?a:o)["[[Configurable]]"],c=("[[Enumerable]]"in a?a:o)["[[Enumerable]]"],ov(zu,wl,lv,e,n,{"[[Configurable]]":!!s,"[[Enumerable]]":!!c,"[[Get]]":("[[Get]]"in a?a:o)["[[Get]]"],"[[Set]]":("[[Set]]"in a?a:o)["[[Set]]"]})):op(o)&&zu(a)?(s=("[[Configurable]]"in a?a:o)["[[Configurable]]"],c=("[[Enumerable]]"in a?a:o)["[[Enumerable]]"],ov(zu,wl,lv,e,n,{"[[Configurable]]":!!s,"[[Enumerable]]":!!c,"[[Value]]":("[[Value]]"in a?a:o)["[[Value]]"],"[[Writable]]":!!("[[Writable]]"in a?a:o)["[[Writable]]"]})):ov(zu,wl,lv,e,n,a)}return!0},C6=Ex,T6=Rh,_E=Bt,P7e=gu,b7e=uN,w7e=zHe,$7e=Nh,A7e=WHe,S7e=Ite,_7e=Ja,x7e=v7e,D7e=function(e,n,i){if(_7e(e)!=="Object")throw new _E("Assertion failed: O must be an Object");if(!$7e(n))throw new _E("Assertion failed: P must be a Property Key");if(!P7e(i))throw new _E("Assertion failed: Desc must be a Property Descriptor");if(!C6){if(b7e(i))throw new T6("This environment does not support accessor property descriptors.");var a=!(n in e)&&i["[[Writable]]"]&&i["[[Enumerable]]"]&&i["[[Configurable]]"]&&"[[Value]]"in i,o=n in e&&(!("[[Configurable]]"in i)||i["[[Configurable]]"])&&(!("[[Enumerable]]"in i)||i["[[Enumerable]]"])&&(!("[[Writable]]"in i)||i["[[Writable]]"])&&"[[Value]]"in i;if(a||o)return e[n]=i["[[Value]]"],S7e(e[n],i["[[Value]]"]);throw new T6("This environment does not support defining non-writable, non-enumerable, or non-configurable properties")}var r=C6(e,n),s=r&&A7e(r),c=w7e(e);return x7e(e,n,c,i,s)},j6=Bt,k7e=Nh,O7e=D7e,E7e=Ja,I7e=function(e,n,i){if(E7e(e)!=="Object")throw new j6("Assertion failed: Type(O) is not Object");if(!k7e(n))throw new j6("Assertion failed: IsPropertyKey(P) is not true");var a={"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Value]]":i,"[[Writable]]":!0};return O7e(e,n,a)},xE=Bt,C7e=I7e,T7e=Nh,j7e=Ja,M7e=function(e,n,i){if(j7e(e)!=="Object")throw new xE("Assertion failed: Type(O) is not Object");if(!T7e(n))throw new xE("Assertion failed: IsPropertyKey(P) is not true");var a=C7e(e,n,i);if(!a)throw new xE("unable to create data property")},R7e=Bt,N7e=gu,L7e=Fte,F7e=function(e){if(typeof e<"u"&&!N7e(e))throw new R7e("Assertion failed: `Desc` must be a Property Descriptor");return L7e(e)},q7e=Bt,M6=Uf,z7e=gu,U7e=function(e){if(typeof e>"u")return!1;if(!z7e(e))throw new q7e("Assertion failed: `Desc` must be a Property Descriptor");return!(!M6(e,"[[Value]]")&&!M6(e,"[[Writable]]"))},B7e=function(e){return typeof e=="string"||typeof e=="symbol"},R6=Tx,V7e=function(e,n){return e===n?e===0?1/e===1/n:!0:R6(e)&&R6(n)},W7e=Ote,H7e=function(e){return typeof e=="symbol"?"Symbol":typeof e=="bigint"?"BigInt":W7e(e)},N6=Bt,G7e=Lte,K7e=F7e,Y7e=U7e,J7e=B7e,Q7e=V7e,Z7e=H7e,X7e=function(e,n,i){if(Z7e(e)!=="Object")throw new N6("Assertion failed: Type(O) is not Object");if(!J7e(n))throw new N6("Assertion failed: IsPropertyKey(P) is not true");var a={"[[Configurable]]":!0,"[[Enumerable]]":!1,"[[Value]]":i,"[[Writable]]":!0};return G7e(Y7e,Q7e,K7e,e,n,a)},DE,L6;function Lb(){if(L6)return DE;L6=1;var t=typeof Map=="function"&&Map.prototype,e=Object.getOwnPropertyDescriptor&&t?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,n=t&&e&&typeof e.get=="function"?e.get:null,i=t&&Map.prototype.forEach,a=typeof Set=="function"&&Set.prototype,o=Object.getOwnPropertyDescriptor&&a?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,r=a&&o&&typeof o.get=="function"?o.get:null,s=a&&Set.prototype.forEach,c=typeof WeakMap=="function"&&WeakMap.prototype,l=c?WeakMap.prototype.has:null,u=typeof WeakSet=="function"&&WeakSet.prototype,f=u?WeakSet.prototype.has:null,h=typeof WeakRef=="function"&&WeakRef.prototype,d=h?WeakRef.prototype.deref:null,m=Boolean.prototype.valueOf,g=Object.prototype.toString,b=Function.prototype.toString,v=String.prototype.match,P=String.prototype.slice,A=String.prototype.replace,_=String.prototype.toUpperCase,x=String.prototype.toLowerCase,E=RegExp.prototype.test,j=Array.prototype.concat,F=Array.prototype.join,I=Array.prototype.slice,L=Math.floor,V=typeof BigInt=="function"?BigInt.prototype.valueOf:null,q=Object.getOwnPropertySymbols,S=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,D=typeof Symbol=="function"&&typeof Symbol.iterator=="object",R=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===D||!0)?Symbol.toStringTag:null,C=Object.prototype.propertyIsEnumerable,H=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(Y){return Y.__proto__}:null);function X(Y,k){if(Y===1/0||Y===-1/0||Y!==Y||Y&&Y>-1e3&&Y<1e3||E.call(/e/,k))return k;var re=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof Y=="number"){var ee=Y<0?-L(-Y):L(Y);if(ee!==Y){var le=String(ee),se=P.call(k,le.length+1);return A.call(le,re,"$&_")+"."+A.call(A.call(se,/([0-9]{3})/g,"$&_"),/_$/,"")}}return A.call(k,re,"$&_")}var ae=_b,z=ae.custom,M=De(z)?z:null;DE=function Y(k,re,ee,le){var se=re||{};if(_e(se,"quoteStyle")&&se.quoteStyle!=="single"&&se.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(_e(se,"maxStringLength")&&(typeof se.maxStringLength=="number"?se.maxStringLength<0&&se.maxStringLength!==1/0:se.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var ge=_e(se,"customInspect")?se.customInspect:!0;if(typeof ge!="boolean"&&ge!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(_e(se,"indent")&&se.indent!==null&&se.indent!==" "&&!(parseInt(se.indent,10)===se.indent&&se.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(_e(se,"numericSeparator")&&typeof se.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var xe=se.numericSeparator;if(typeof k>"u")return"undefined";if(k===null)return"null";if(typeof k=="boolean")return k?"true":"false";if(typeof k=="string")return Dr(k,se);if(typeof k=="number"){if(k===0)return 1/0/k>0?"0":"-0";var Pe=String(k);return xe?X(k,Pe):Pe}if(typeof k=="bigint"){var Le=String(k)+"n";return xe?X(k,Le):Le}var Ye=typeof se.depth>"u"?5:se.depth;if(typeof ee>"u"&&(ee=0),ee>=Ye&&Ye>0&&typeof k=="object")return T(k)?"[Array]":"[Object]";var gt=te(se,ee);if(typeof le>"u")le=[];else if(Re(le,k)>=0)return"[Circular]";function ht(It,Ke,ur){if(Ke&&(le=I.call(le),le.push(Ke)),ur){var Vt={depth:se.depth};return _e(se,"quoteStyle")&&(Vt.quoteStyle=se.quoteStyle),Y(It,Vt,ee+1,le)}return Y(It,se,ee+1,le)}if(typeof k=="function"&&!oe(k)){var zt=yt(k),Gr=he(k,ht);return"[Function"+(zt?": "+zt:" (anonymous)")+"]"+(Gr.length>0?" { "+F.call(Gr,", ")+" }":"")}if(De(k)){var yi=D?A.call(String(k),/^(Symbol\(.*\))_[^)]*$/,"$1"):S.call(k);return typeof k=="object"&&!D?cr(yi):yi}if(lr(k)){for(var Ao="<"+x.call(String(k.nodeName)),N=k.attributes||[],de=0;de",Ao}if(T(k)){if(k.length===0)return"[]";var ke=he(k,ht);return gt&&!K(ke)?"["+fe(ke,gt)+"]":"[ "+F.call(ke,", ")+" ]"}if(ve(k)){var qe=he(k,ht);return!("cause"in Error.prototype)&&"cause"in k&&!C.call(k,"cause")?"{ ["+String(k)+"] "+F.call(j.call("[cause]: "+ht(k.cause),qe),", ")+" }":qe.length===0?"["+String(k)+"]":"{ ["+String(k)+"] "+F.call(qe,", ")+" }"}if(typeof k=="object"&&ge){if(M&&typeof k[M]=="function"&&ae)return ae(k,{depth:Ye-ee});if(ge!=="symbol"&&typeof k.inspect=="function")return k.inspect()}if(je(k)){var nt=[];return i&&i.call(k,function(It,Ke){nt.push(ht(Ke,k,!0)+" => "+ht(It,k))}),w("Map",n.call(k),nt,gt)}if(pt(k)){var Ie=[];return s&&s.call(k,function(It){Ie.push(ht(It,k))}),w("Set",r.call(k),Ie,gt)}if($t(k))return J("WeakMap");if(nn(k))return J("WeakSet");if(Se(k))return J("WeakRef");if(Ae(k))return cr(ht(Number(k)));if(We(k))return cr(ht(V.call(k)));if(pe(k))return cr(m.call(k));if(ie(k))return cr(ht(String(k)));if(typeof window<"u"&&k===window)return"{ [object Window] }";if(typeof globalThis<"u"&&k===globalThis||typeof Cr<"u"&&k===Cr)return"{ [object globalThis] }";if(!G(k)&&!oe(k)){var St=he(k,ht),ot=H?H(k)===Object.prototype:k instanceof Object||k.constructor===Object,Qe=k instanceof Object?"":"null prototype",Ze=!ot&&R&&Object(k)===k&&R in k?P.call(st(k),8,-1):Qe?"Object":"",vt=ot||typeof k.constructor!="function"?"":k.constructor.name?k.constructor.name+" ":"",jt=vt+(Ze||Qe?"["+F.call(j.call([],Ze||[],Qe||[]),": ")+"] ":"");return St.length===0?jt+"{}":gt?jt+"{"+fe(St,gt)+"}":jt+"{ "+F.call(St,", ")+" }"}return String(k)};function U(Y,k,re){var ee=(re.quoteStyle||k)==="double"?'"':"'";return ee+Y+ee}function W(Y){return A.call(String(Y),/"/g,""")}function T(Y){return st(Y)==="[object Array]"&&(!R||!(typeof Y=="object"&&R in Y))}function G(Y){return st(Y)==="[object Date]"&&(!R||!(typeof Y=="object"&&R in Y))}function oe(Y){return st(Y)==="[object RegExp]"&&(!R||!(typeof Y=="object"&&R in Y))}function ve(Y){return st(Y)==="[object Error]"&&(!R||!(typeof Y=="object"&&R in Y))}function ie(Y){return st(Y)==="[object String]"&&(!R||!(typeof Y=="object"&&R in Y))}function Ae(Y){return st(Y)==="[object Number]"&&(!R||!(typeof Y=="object"&&R in Y))}function pe(Y){return st(Y)==="[object Boolean]"&&(!R||!(typeof Y=="object"&&R in Y))}function De(Y){if(D)return Y&&typeof Y=="object"&&Y instanceof Symbol;if(typeof Y=="symbol")return!0;if(!Y||typeof Y!="object"||!S)return!1;try{return S.call(Y),!0}catch{}return!1}function We(Y){if(!Y||typeof Y!="object"||!V)return!1;try{return V.call(Y),!0}catch{}return!1}var Ce=Object.prototype.hasOwnProperty||function(Y){return Y in this};function _e(Y,k){return Ce.call(Y,k)}function st(Y){return g.call(Y)}function yt(Y){if(Y.name)return Y.name;var k=v.call(b.call(Y),/^function\s*([\w$]+)/);return k?k[1]:null}function Re(Y,k){if(Y.indexOf)return Y.indexOf(k);for(var re=0,ee=Y.length;rek.maxStringLength){var re=Y.length-k.maxStringLength,ee="... "+re+" more character"+(re>1?"s":"");return Dr(P.call(Y,0,k.maxStringLength),k)+ee}var le=A.call(A.call(Y,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Yt);return U(le,"single",k)}function Yt(Y){var k=Y.charCodeAt(0),re={8:"b",9:"t",10:"n",12:"f",13:"r"}[k];return re?"\\"+re:"\\x"+(k<16?"0":"")+_.call(k.toString(16))}function cr(Y){return"Object("+Y+")"}function J(Y){return Y+" { ? }"}function w(Y,k,re,ee){var le=ee?fe(re,ee):F.call(re,", ");return Y+" ("+k+") {"+le+"}"}function K(Y){for(var k=0;k=0)return!1;return!0}function te(Y,k){var re;if(Y.indent===" ")re=" ";else if(typeof Y.indent=="number"&&Y.indent>0)re=F.call(Array(Y.indent+1)," ");else return null;return{base:re,prev:F.call(Array(k+1),re)}}function fe(Y,k){if(Y.length===0)return"";var re=` +`+k.prev+k.base;return re+F.call(Y,","+re)+` +`+k.prev}function he(Y,k){var re=T(Y),ee=[];if(re){ee.length=Y.length;for(var le=0;le=55296&&e<=56319}),kE}var OE,q6;function Ute(){return q6||(q6=1,OE=function(e){return typeof e=="number"&&e>=56320&&e<=57343}),OE}var EE,z6;function eGe(){if(z6)return EE;z6=1;var t=ai,e=Bt,n=t("%String.fromCharCode%"),i=zte(),a=Ute();return EE=function(r,s){if(!i(r)||!a(s))throw new e("Assertion failed: `lead` must be a leading surrogate char code, and `trail` must be a trailing surrogate char code");return n(r)+n(s)},EE}var IE,U6;function tGe(){if(U6)return IE;U6=1;var t=Bt,e=Bf,n=zte(),i=Ute(),a=eGe(),o=e("String.prototype.charAt"),r=e("String.prototype.charCodeAt");return IE=function(c,l){if(typeof c!="string")throw new t("Assertion failed: `string` must be a String");var u=c.length;if(l<0||l>=u)throw new t("Assertion failed: `position` must be >= 0, and < the length of `string`");var f=r(c,l),h=o(c,l),d=n(f),m=i(f);if(!d&&!m)return{"[[CodePoint]]":h,"[[CodeUnitCount]]":1,"[[IsUnpairedSurrogate]]":!1};if(m||l+1===u)return{"[[CodePoint]]":h,"[[CodeUnitCount]]":1,"[[IsUnpairedSurrogate]]":!0};var g=r(c,l+1);return i(g)?{"[[CodePoint]]":a(f,g),"[[CodeUnitCount]]":2,"[[IsUnpairedSurrogate]]":!1}:{"[[CodePoint]]":h,"[[CodeUnitCount]]":1,"[[IsUnpairedSurrogate]]":!0}},IE}var CE,B6;function rGe(){if(B6)return CE;B6=1;var t=Tx;return CE=function(e){return(typeof e=="number"||typeof e=="bigint")&&!t(e)&&e!==1/0&&e!==-1/0},CE}var TE,V6;function nGe(){if(V6)return TE;V6=1;var t=ai,e=t("%Math.abs%"),n=t("%Math.floor%"),i=Tx,a=rGe();return TE=function(r){if(typeof r!="number"||i(r)||!a(r))return!1;var s=e(r);return n(s)===s},TE}var jE,W6;function iGe(){return W6||(W6=1,jE=Number.MAX_SAFE_INTEGER||9007199254740991),jE}var ME,H6;function aGe(){if(H6)return ME;H6=1;var t=tGe(),e=nGe(),n=iGe(),i=Bt;return ME=function(o,r,s){if(typeof o!="string")throw new i("Assertion failed: `S` must be a String");if(!e(r)||r<0||r>n)throw new i("Assertion failed: `length` must be an integer >= 0 and <= 2**53");if(typeof s!="boolean")throw new i("Assertion failed: `unicode` must be a Boolean");if(!s)return r+1;var c=o.length;if(r+1>=c)return r+1;var l=t(o,r);return r+l["[[CodeUnitCount]]"]},ME}var RE,G6;function Bte(){if(G6)return RE;G6=1;var t=Bt;return RE=function(n,i){if(typeof i!="boolean")throw new t("Assertion failed: Type(done) is not Boolean");return{value:n,done:i}},RE}var NE,K6;function jx(){if(K6)return NE;K6=1;var t=Bt,e=Lb(),n=Nh,i=Ja;return NE=function(o,r){if(i(o)!=="Object")throw new t("Assertion failed: Type(O) is not Object");if(!n(r))throw new t("Assertion failed: IsPropertyKey(P) is not true, got "+e(r));return o[r]},NE}var LE,Y6;function Vte(){if(Y6)return LE;Y6=1;var t=Bt,e=jx(),n=Ete,i=Ja;return LE=function(o){if(i(o)!=="Object")throw new t("Assertion failed: Type(iterResult) is not Object");return n(e(o,"done"))},LE}var FE,J6;function Wte(){if(J6)return FE;J6=1;var t=Bt,e=jx(),n=Ja;return FE=function(a){if(n(a)!=="Object")throw new t("Assertion failed: Type(iterResult) is not Object");return e(a,"value")},FE}var qE,Q6;function sGe(){if(Q6)return qE;Q6=1;var t=ai,e=Tte,n=Rh,i=t("%Promise.resolve%",!0),a=i&&e(i);return qE=function(r,s){if(!a)throw new n("This environment does not support Promises.");return a(r,s)},qE}var zE,Z6;function oGe(){if(Z6)return zE;Z6=1;var t=ai,e=Rh,n=Bt,i=t("%Promise%",!0),a=Bf,o=Bte(),r=Vte(),s=Wte(),c=sGe(),l=Ja,u=a("Promise.prototype.then",!0);return zE=function(h){if(l(h)!=="Object")throw new n("Assertion failed: Type(O) is not Object");if(arguments.length>1)throw new e("although AsyncFromSyncIteratorContinuation should take a second argument, it is not used in this implementation");if(!i)throw new e("This environment does not support Promises.");return new i(function(d){var m=r(h),g=s(h),b=c(i,g),v=function(P){return o(P,m)};d(u(b,v))})},zE}var UE,X6;function pN(){return X6||(X6=1,UE=Rte()),UE}var BE,eV;function hN(){if(eV)return BE;eV=1;var t=ai,e=Bf,n=Bt,i=pN(),a=t("%Reflect.apply%",!0)||e("Function.prototype.apply");return BE=function(r,s){var c=arguments.length>2?arguments[2]:[];if(!i(c))throw new n("Assertion failed: optional `argumentsList`, if provided, must be a List");return a(r,s,c)},BE}var VE,tV;function lGe(){if(tV)return VE;tV=1;var t=Bt,e=Lb(),n=Nh;return VE=function(a,o){if(!n(o))throw new t("Assertion failed: IsPropertyKey(P) is not true, got "+e(o));return a[o]},VE}var WE,rV;function Hte(){if(rV)return WE;rV=1;var t=Bt,e=lGe(),n=fN(),i=Nh,a=Lb();return WE=function(r,s){if(!i(s))throw new t("Assertion failed: IsPropertyKey(P) is not true");var c=e(r,s);if(c!=null){if(!n(c))throw new t(a(s)+" is not a function: "+a(c));return c}},WE}var HE,nV;function Mx(){if(nV)return HE;nV=1;var t=Uf;return HE=function(n){return!!n&&typeof n=="object"&&t(n,"[[Iterator]]")&&t(n,"[[NextMethod]]")&&typeof n["[[NextMethod]]"]=="function"&&t(n,"[[Done]]")&&typeof n["[[Done]]"]=="boolean"},HE}var GE,iV;function Gte(){if(iV)return GE;iV=1;var t=Bt,e=hN(),n=Ja,i=Mx();return GE=function(o){if(!i(o))throw new t("Assertion failed: `iteratorRecord` must be an Iterator Record");var r;if(arguments.length<2?r=e(o["[[NextMethod]]"],o["[[Iterator]]"]):r=e(o["[[NextMethod]]"],o["[[Iterator]]"],[arguments[1]]),n(r)!=="Object")throw new t("iterator next must return an object");return r},GE}var KE,aV;function cGe(){return aV||(aV=1,KE=function(e,n){for(var i=0;i0&&r(f,function(m){s.set(h,m,void 0)}),h},QE}var ZE,cV;function pGe(){if(cV)return ZE;cV=1;var t=ai,e=Rh,n=Bt,i=t("%Promise%",!0),a=oGe(),o=hN(),r=Bte(),s=jx(),c=Hte(),l=Gte(),u=fGe(),f=Ja,h=Kte(),d=Mx(),m=t("%AsyncFromSyncIteratorPrototype%",!0)||{next:function(b){if(!i)throw new e("This environment does not support Promises.");var v=this;h.assert(v,"[[SyncIteratorRecord]]");var P=arguments.length;return new i(function(A){var _=h.get(v,"[[SyncIteratorRecord]]"),x;P>0?x=l(_,b):x=l(_),A(a(x))})},return:function(){if(!i)throw new e("This environment does not support Promises.");var g=this;h.assert(g,"[[SyncIteratorRecord]]");var b=arguments.length>0,v=b?arguments[0]:void 0;return new i(function(P,A){var _=h.get(g,"[[SyncIteratorRecord]]")["[[Iterator]]"],x=c(_,"return");if(typeof x>"u"){var E=r(v,!0);o(P,void 0,[E]);return}var j;if(b?j=o(x,_,[v]):j=o(x,_),f(j)!=="Object"){o(A,void 0,[new n("Iterator `return` method returned a non-object value.")]);return}P(a(j))})},throw:function(){if(!i)throw new e("This environment does not support Promises.");var g=this;h.assert(g,"[[SyncIteratorRecord]]");var b=arguments.length>0,v=b?arguments[0]:void 0;return new i(function(P,A){var _=h.get(g,"[[SyncIteratorRecord]]")["[[Iterator]]"],x=c(_,"throw");if(typeof x>"u"){o(A,void 0,[v]);return}var E;if(b?E=o(x,_,[v]):E=o(x,_),f(E)!=="Object"){o(A,void 0,[new n("Iterator `throw` method returned a non-object value.")]);return}P(a(E))})}};return ZE=function(b){if(!d(b))throw new n("Assertion failed: `syncIteratorRecord` must be an Iterator Record");var v=u(m);h.set(v,"[[SyncIteratorRecord]]",b);var P=s(v,"next");return{"[[Iterator]]":v,"[[NextMethod]]":P,"[[Done]]":!1}},ZE}var XE,uV;function hGe(){if(uV)return XE;uV=1;var t=Bt,e=hN(),n=jx(),i=fN(),a=Ja;return XE=function(r,s){if(!i(s))throw new t("method must be a function");var c=e(s,r);if(a(c)!=="Object")throw new t("iterator must return an object");var l=n(c,"next");return{"[[Iterator]]":c,"[[NextMethod]]":l,"[[Done]]":!1}},XE}var eI,fV;function dGe(){if(fV)return eI;fV=1;var t=Ate;return eI=function(){return t()&&!!Symbol.toStringTag},eI}var tI,pV;function mGe(){if(pV)return tI;pV=1;var t=String.prototype.valueOf,e=function(r){try{return t.call(r),!0}catch{return!1}},n=Object.prototype.toString,i="[object String]",a=dGe()();return tI=function(r){return typeof r=="string"?!0:typeof r!="object"?!1:a?e(r):n.call(r)===i},tI}var rI,hV;function yGe(){if(hV)return rI;hV=1;var t=cN(),e=ai,n=Bf,i=mGe(),a=e("%Symbol.iterator%",!0),o=n("String.prototype.slice"),r=e("%String%");return rI=function(c,l){var u;return t?u=c.GetMethod(l,a):c.IsArray(l)?u=function(){var f=-1,h=this;return{next:function(){return f+=1,{done:f>=h.length,value:h[f]}}}}:i(l)&&(u=function(){var f=0;return{next:function(){var h=c.AdvanceStringIndex(r(l),f,!0),d=o(l,f,h);return f=h,{done:h>l.length,value:d}}}}),u},rI}var gGe=ai,nI=Bt,dV=gGe("%Symbol.asyncIterator%",!0),vGe=Lb(),PGe=cN(),bGe=aGe(),wGe=pGe(),mV=hGe(),yV=Hte(),$Ge=pN(),AGe=yGe(),SGe=function(e,n){if(n!=="SYNC"&&n!=="ASYNC")throw new nI("Assertion failed: `kind` must be one of 'sync' or 'async', got "+vGe(n));var i;if(n==="ASYNC"&&PGe&&dV&&(i=yV(e,dV)),typeof i>"u"){var a=AGe({AdvanceStringIndex:bGe,GetMethod:yV,IsArray:$Ge},e);if(n==="ASYNC"){if(typeof a>"u")throw new nI("iterator method is `undefined`");var o=mV(e,a);return wGe(o)}i=a}if(typeof i>"u")throw new nI("iterator method is `undefined`");return mV(e,i)},iI,gV;function _Ge(){if(gV)return iI;gV=1;var t=Bt,e=Vte(),n=Gte(),i=Mx();return iI=function(o){if(!i(o))throw new t("Assertion failed: `iteratorRecord` must be an Iterator Record");var r=n(o),s=e(r);return s===!0?!1:r},iI}var xGe=Bt,DGe=Bf,kGe=DGe("Array.prototype.push"),OGe=_Ge(),EGe=Wte(),IGe=Mx(),CGe=function(e){if(!IGe(e))throw new xGe("Assertion failed: `iteratorRecord` must be an Iterator Record");for(var n=[],i=!0;i;)if(i=OGe(e),i){var a=EGe(i);kGe(n,a)}return n},TGe=ai,jGe=TGe("%Object.setPrototypeOf%",!0),MGe=kx(),RGe=jGe||(MGe?function(t,e){return t.__proto__=e,t}:null),NGe=ai,LGe=NGe("%Object.getPrototypeOf%",!0),FGe=kx(),qGe=LGe||(FGe?function(t){return t.__proto__}:null),vV=Bt,PV=qGe,zGe=Ja,UGe=function(e){if(zGe(e)!=="Object")throw new vV("Assertion failed: O must be an Object");if(!PV)throw new vV("This environment does not support fetching prototypes.");return PV(e)},BGe=Bt,VGe=RGe,WGe=UGe,HGe=function(e,n){if(typeof n!="object")throw new BGe("Assertion failed: V must be Object or Null");try{VGe(e,n)}catch{return!1}return WGe(e)===n},GGe=M7e,aI=X7e,KGe=SGe,YGe=Nb(),JGe=CGe,Yte=HGe,Jte=$te;function Fb(t,e){var n=new Jte(e);Yte(n,H$),delete n.constructor;var i=JGe(KGe(t,"SYNC"));return GGe(n,"errors",i),n}YGe&&Object.defineProperty(Fb,"prototype",{writable:!1});var H$=Fb.prototype;if(!aI(H$,"constructor",Fb)||!aI(H$,"message","")||!aI(H$,"name","AggregateError"))throw new Jte("unable to install AggregateError.prototype properties; please report this!");Yte(Fb.prototype,Error.prototype);var Qte=Fb,QGe=Qte,Zte=function(){return typeof AggregateError=="function"?AggregateError:QGe},G$={exports:{}};typeof self<"u"?G$.exports=self:typeof window<"u"?G$.exports=window:G$.exports=Function("return this")();var Xte=G$.exports,ZGe=Xte,ere=function(){return typeof Cr!="object"||!Cr||Cr.Math!==Math||Cr.Array!==Array?ZGe:Cr},XGe=Cx,eKe=Ex,tKe=ere,rKe=function(){var e=tKe();if(XGe.supportsDescriptors){var n=eKe(e,"globalThis");(!n||n.configurable&&(n.enumerable||!n.writable||globalThis!==e))&&Object.defineProperty(e,"globalThis",{configurable:!0,enumerable:!1,value:e,writable:!0})}else(typeof globalThis!="object"||globalThis!==e)&&(e.globalThis=e);return e},nKe=Cx,iKe=Xte,tre=ere,aKe=rKe,sKe=tre(),rre=function(){return sKe};nKe(rre,{getPolyfill:tre,implementation:iKe,shim:aKe});var oKe=rre,lKe=Cx,bV=oKe(),cKe=Zte,uKe=function(){var e=cKe();return lKe(bV,{AggregateError:e},{AggregateError:function(){return bV.AggregateError!==e}}),e},fKe=Dx,pKe=Cx,hKe=THe,dKe=Ix,mKe=Qte,nre=Zte,yKe=uKe,uT=nre(),dN=hKe(fKe.call(uT),uT.name,!0);dKe(dN,"prototype",uT.prototype,!0,!0,!0,!0);pKe(dN,{getPolyfill:nre,implementation:mKe,shim:yKe});var mN=dN;Object.defineProperty(bh,"__esModule",{value:!0});bh.toParsedPath=bh.wrapError=void 0;const gKe=vr,vKe=ir,PKe=(0,gKe.__importDefault)(mN),wV=Gl,bKe=Tb;function $V(t){return t instanceof wV.RulesetValidationError?(t.path.unshift(...this),t):new wV.RulesetValidationError("generic-validation-error",(0,vKe.isError)(t)?t.message:String(t),[...this])}function wKe(t,e){const n=ire(e);return(0,bKe.isAggregateError)(t)?new PKe.default(t.errors.map($V,n)):$V.call(n,t)}bh.wrapError=wKe;function ire(t){return t.slice(1).split("/")}bh.toParsedPath=ire;Object.defineProperty(xx,"__esModule",{value:!0});xx.validateAlias=void 0;const AV=Hr,$Ke=ir,AKe=yh,SKe=jh,SV=bh,_Ke=Gl;function xKe(t,e){if(!Array.isArray(t))return null;const n=Number(e);if(Number.isNaN(n)||n<0&&n>=t.length)return null;const i=t[n];return(0,AV.isPlainObject)(i)&&(0,AV.isPlainObject)(i.aliases)?i.aliases:null}function DKe(t,e,n){const i=(0,SV.toParsedPath)(n);try{const a=(0,$Ke.get)(t,[...i.slice(0,i.indexOf("rules")+2),"formats"]),o=i[0]==="overrides"?{...t.aliases,...xKe(t.overrides,i[1])}:t.aliases;(0,AKe.resolveAlias)(o??null,e,Array.isArray(a)?new SKe.Formats(a):null)}catch(a){return a instanceof ReferenceError?new _Ke.RulesetValidationError("undefined-alias",a.message,i):(0,SV.wrapError)(a,n)}}xx.validateAlias=DKe;var Rx={};Object.defineProperty(Rx,"__esModule",{value:!0});Rx.validateFunction=void 0;const _V=bh,kKe=Gl;function OKe(t){if(typeof t!="function")throw ReferenceError("Function is not defined")}function EKe(t,e,n){try{if(OKe(t),!("validator"in t))return;t.validator.bind(t)(e)}catch(i){return i instanceof ReferenceError?new kKe.RulesetValidationError("undefined-function",i.message,[...(0,_V.toParsedPath)(n),"function"]):(0,_V.wrapError)(i,n)}}Rx.validateFunction=EKe;Object.defineProperty(sx,"__esModule",{value:!0});sx.createValidator=void 0;const vu=vr,Uu=(0,vu.__importStar)(l0),sI=(0,vu.__importDefault)(xa),IKe=(0,vu.__importDefault)(bte),CKe=(0,vu.__importDefault)(lN),TKe=(0,vu.__importStar)(dWe),jKe=(0,vu.__importStar)(vWe),MKe=(0,vu.__importStar)(xWe),RKe=(0,vu.__importStar)(EWe),NKe=(0,vu.__importStar)(jWe),LKe=xx,FKe=Rx,xV={js:null,json:null};function qKe(t){const e=xV[t];if(e!==null)return e;const n=new Uu.default({allErrors:!0,strict:!0,strictRequired:!1,keywords:["$anchor"],schemas:[TKe,jKe],passContext:!0});(0,IKe.default)(n),(0,CKe.default)(n),n.addKeyword({keyword:"x-spectral-runtime",schemaType:"string",error:{message(a){var o;return(0,Uu._)`${((o=a.params)===null||o===void 0?void 0:o.message)!==void 0?a.params.message:""}`},params(a){var o;return(0,Uu._)`{ errors: ${((o=a.params)===null||o===void 0?void 0:o.errors)!==void 0&&a.params.errors} || [] }`}},code(a){const{data:o}=a;switch(a.schema){case"format":a.fail((0,Uu._)`typeof ${o} !== "function"`);break;case"ruleset-function":{const r=a.gen.const("spectralFunction",(0,Uu._)`this.validateFunction(${o}.function, ${o}.functionOptions === void 0 ? null : ${o}.functionOptions, ${sI.default.instancePath})`);a.gen.if((0,Uu._)`${r} !== void 0`),a.error(!1,{errors:r}),a.gen.endIf();break}case"alias":{const r=a.gen.const("spectralAlias",(0,Uu._)`this.validateAlias(${sI.default.rootData}, ${o}, ${sI.default.instancePath})`);a.gen.if((0,Uu._)`${r} !== void 0`),a.error(!1,{errors:r}),a.gen.endIf();break}}}}),t==="js"?n.addSchema(RKe):n.addSchema(NKe);const i=new Proxy(n.compile(MKe),{apply(a,o,r){return Reflect.apply(a,{validateAlias:LKe.validateAlias,validateFunction:FKe.validateFunction},r)}});return xV[t]=i,i}sx.createValidator=qKe;Object.defineProperty(gh,"__esModule",{value:!0});gh.assertValidRule=gh.assertValidRuleset=void 0;const zKe=vr,UKe=Hr,BKe=sx,K$=Gl,VKe=(0,zKe.__importDefault)(mN);function WKe(t,e="js"){var n;if(!(0,UKe.isPlainObject)(t))throw new K$.RulesetValidationError("invalid-ruleset-definition","Provided ruleset is not an object",[]);if(!("rules"in t)&&!("extends"in t)&&!("overrides"in t))throw new K$.RulesetValidationError("invalid-ruleset-definition","Ruleset must have rules or extends or overrides defined",[]);const i=(0,BKe.createValidator)(e);if(!i(t))throw new VKe.default((0,K$.convertAjvErrors)((n=i.errors)!==null&&n!==void 0?n:[]))}gh.assertValidRuleset=WKe;function HKe(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)&&("given"in t||"then"in t)}function GKe(t,e){if(!HKe(t))throw new K$.RulesetValidationError("invalid-rule-definition","Rule definition expected",["rules",e])}gh.assertValidRule=GKe;(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.assertValidRuleset=t.RulesetValidationError=void 0;var e=Gl;Object.defineProperty(t,"RulesetValidationError",{enumerable:!0,get:function(){return e.RulesetValidationError}});var n=gh;Object.defineProperty(t,"assertValidRuleset",{enumerable:!0,get:function(){return n.assertValidRuleset}})})(ax);var Nx={};Object.defineProperty(Nx,"__esModule",{value:!0});Nx.mergeRule=void 0;const KKe=gh,YKe=r0;function DV(t,e){if(t===void 0)throw new ReferenceError(`Cannot extend non-existing rule: "${e}"`)}function JKe(t,e,n,i){switch(typeof n){case"boolean":DV(t,e),t.enabled=n;break;case"string":case"number":DV(t,e),t.severity=n,n==="off"?t.enabled=!1:t.enabled||(t.enabled=!0);break;case"object":if(t!==void 0)Object.assign(t,n,{enabled:!0,owner:t.owner});else return(0,KKe.assertValidRule)(n,e),new YKe.Rule(e,n,i);break;default:throw new Error("Invalid value")}return t}Nx.mergeRule=JKe;var Lx={};Object.defineProperty(Lx,"__esModule",{value:!0});Lx.mergeRulesets=void 0;function are(t){return Array.isArray(t)?t[0]:t}function QKe(t){return(Array.isArray(t)?t:[t]).map(are)}function ZKe(t,e,n){const i={...t,...e};if("extends"in i&&"extends"in i){const a=QKe(i.extends);i.extends=[...(Array.isArray(i.extends)?i.extends:[i.extends]).filter(o=>!a.includes(are(o))),...Array.isArray(i.extends)?i.extends:[i.extends]]}if("aliases"in t&&"aliases"in e&&(i.aliases={...t.aliases,...e.aliases}),!("rules"in t)||!("rules"in e))return i;if(n)i.rules={...t.rules,...e.rules};else{const a=i;"extends"in a?Array.isArray(a.extends)?a.extends=[...a.extends,t]:a.extends=[a.extends,t]:a.extends=t}return i}Lx.mergeRulesets=ZKe;var kV;function sre(){if(kV)return nv;kV=1;var t,e,n;Object.defineProperty(nv,"__esModule",{value:!0}),nv.Ruleset=void 0;const i=vr,a=Ih,o=Hr,r=Cb,s=r0,c=ax,l=Nx,u=Tr(),f=Lx,h=jh,d=Ec,m=Symbol("@stoplight/spectral/ruleset/#stack"),g=Symbol("@stoplight/spectral/ruleset/#explicit-severity"),b=/^\.?spectral\.(ya?ml|json|m?js)$/;let v=1;class P{constructor(_,x){var E;this.maybeDefinition=_,t.add(this),this.id=v++,this.formats=new h.Formats,e.set(this,void 0);let j;if((0,o.isPlainObject)(_)&&"extends"in _){const{extends:L,...V}=_;(0,c.assertValidRuleset)({extends:[],...V},"js"),j=_}else(0,c.assertValidRuleset)(_,"js"),j=_;this.definition=j,(0,i.__classPrivateFieldSet)(this,e,{severity:"recommended",...x},"f");let F=!1;this.aliases=j.aliases===void 0?null:Object.fromEntries(Object.entries(j.aliases).map(L=>{const[V,q]=L;if((0,d.isSimpleAliasDefinition)(q))return L;F=!0;const S=q.targets.map(D=>({formats:new h.Formats(D.formats),given:D.given}));return[V,{...q,targets:S}]})),this.hasComplexAliases=F;const I=(E=x==null?void 0:x[m])!==null&&E!==void 0?E:new Map;if(I.set(this.definition,this),this.extends="extends"in j?(Array.isArray(j.extends)?j.extends:[j.extends]).reduce((L,V)=>{let q,S="recommended";const D=Array.isArray(V);return D?[q,S]=V:q=V,I.get(q)!==void 0||L.push(new P(q,{severity:S,[m]:I,[g]:D})),L},[]):null,I.size===1&&j.overrides?this.overrides=j.overrides:this.overrides=null,I.delete(this.definition),Array.isArray(this.definition.formats))for(const L of this.definition.formats)this.formats.add(L);if(Array.isArray(this.extends))for(const{formats:L}of this.extends)for(const V of L)this.formats.add(V);this.rules=(0,i.__classPrivateFieldGet)(this,t,"m",n).call(this)}get source(){var _;return(_=(0,i.__classPrivateFieldGet)(this,e,"f").source)!==null&&_!==void 0?_:null}fromSource(_){if(this.overrides===null)return this;const{source:x}=this;if(_===null)throw new Error("Document must have some source assigned. If you use Spectral programmatically make sure to pass the source to Document");if(x===null)throw new Error("Ruleset must have some source assigned. If you use Spectral programmatically make sure to pass the source to Ruleset");const E=(0,a.relative)((0,a.dirname)(x),_),j={},F=this.overrides.flatMap(({files:S,...D})=>{var R,C;const H=[];for(const X of S){const ae=(R=(0,o.extractSourceFromRef)(X))!==null&&R!==void 0?R:X;if(!(0,r.minimatch)(E,ae))continue;const z=(0,o.extractPointerFromRef)(X);if(ae===X)H.push(X);else{if(!("rules"in D)||z===null)throw new Error("Unknown error. The ruleset is presumably invalid.");for(const[M,U]of Object.entries(D.rules)){if(typeof U=="object"||typeof U=="boolean")throw new Error("Unknown error. The ruleset is presumably invalid.");const{definition:W}=(C=j[M])!==null&&C!==void 0?C:j[M]={rulesetSource:x,definition:new Map},T=(0,u.getDiagnosticSeverity)(U);let G=W.get(ae);G===void 0&&(G=new Map,W.set(ae,G)),G.set(z,T)}}}return H.length===0?[]:D}),{overrides:I,...L}=this.definition;if(F.length===0&&Object.keys(j).length===0)return this;const V=F.length===0?null:F.length>1?F.slice(1).reduce((S,D)=>(0,f.mergeRulesets)(S,D,!0),F[0]):F[0],q=new P(V===null?L:(0,f.mergeRulesets)(L,V,!1),{severity:"recommended",source:x});for(const[S,D]of Object.entries(j))S in q.rules&&(q.rules[S].overrides=D);return q}get parserOptions(){return{...u.DEFAULT_PARSER_OPTIONS,...this.definition.parserOptions}}static isDefaultRulesetFile(_){return b.test(_)}toJSON(){return{id:this.id,extends:this.extends,source:this.source,aliases:this.aliases,formats:this.formats.size===0?null:this.formats,rules:this.rules,overrides:this.overrides,parserOptions:this.parserOptions}}}return nv.Ruleset=P,e=new WeakMap,t=new WeakSet,n=function(){const _={};if(this.extends!==null&&this.extends.length>0){for(const x of this.extends)if(x!==this)for(const E of Object.values(x.rules))_[E.name]=E,(0,i.__classPrivateFieldGet)(this,e,"f")[m]!==void 0&&(0,i.__classPrivateFieldGet)(this,e,"f")[g]===!0&&(E.enabled=s.Rule.isEnabled(E,(0,i.__classPrivateFieldGet)(this,e,"f").severity))}if("rules"in this.definition)for(const[x,E]of Object.entries(this.definition.rules)){const j=(0,l.mergeRule)(_[x],x,E,this);if(_[x]=j,j.owner===this&&(j.enabled=s.Rule.isEnabled(j,(0,i.__classPrivateFieldGet)(this,e,"f").severity)),j.formats!==null)for(const F of j.formats)this.formats.add(F);else j.owner!==this?j.formats=j.owner.definition.formats===void 0?null:new h.Formats(j.owner.definition.formats):this.definition.formats!==void 0&&(j.formats=new h.Formats(this.definition.formats));this.definition.documentationUrl!==void 0&&j.documentationUrl===null&&(j.documentationUrl=`${this.definition.documentationUrl}#${x}`)}return _},nv}var Fx={};Object.defineProperty(Fx,"__esModule",{value:!0});Fx.generateDocumentWideResult=void 0;const XKe=Zg(),eYe=(t,e,n,i)=>{var a;return{range:(a=t.getRangeForJsonPath([],!0))!==null&&a!==void 0?a:XKe.Document.DEFAULT_RANGE,message:e,code:i,severity:n,...t.source!==null?{source:t.source}:null,path:[]}};Fx.generateDocumentWideResult=eYe;var oI={},$g={};Object.defineProperty($g,"__esModule",{value:!0});$g.createRulesetFunction=$g.RulesetFunctionValidationError=void 0;const yN=vr,tYe=(0,yN.__importDefault)(l0),rYe=(0,yN.__importDefault)(bte),nYe=(0,yN.__importDefault)(lN),dc=Ya,fT=ax,OV=ir,iYe=mN,DS=new tYe.default({allErrors:!0,allowUnionTypes:!0,strict:!0,keywords:["x-internal"]});(0,nYe.default)(DS);(0,rYe.default)(DS);class XP extends fT.RulesetValidationError{constructor(e,n){super("invalid-function-options",XP.printMessage(e,n),XP.getPath(n))}static getPath(e){const n=["functionOptions",...e.instancePath===""?[]:e.instancePath.slice(1).split("/")];switch(e.keyword){case"additionalProperties":{const i=e.params.additionalProperty;n.push(i);break}}return n}static printMessage(e,n){var i;switch(n.keyword){case"type":{const a=(0,dc.printPath)(n.instancePath.slice(1).split("/"),dc.PrintStyle.Dot),o=Array.isArray(n.params.type)?n.params.type.join(", "):String(n.params.type);return`"${e}" function and its "${a}" option accepts only the following types: ${o}`}case"required":{const a=n.params.missingProperty,o=n.instancePath===""?a:(0,dc.printPath)([...n.instancePath.slice(1).split("/"),a],dc.PrintStyle.Dot);return`"${e}" function is missing "${o}" option`}case"additionalProperties":{const a=n.params.additionalProperty,o=n.instancePath===""?a:(0,dc.printPath)([...n.instancePath.slice(1).split("/"),a],dc.PrintStyle.Dot);return`"${e}" function does not support "${o}" option`}case"enum":{const a=(0,dc.printPath)(n.instancePath.slice(1).split("/"),dc.PrintStyle.Dot),o=n.params.allowedValues.map(dc.printValue).join(", ");return`"${e}" function and its "${a}" option accepts only the following values: ${o}`}default:return(i=n.message)!==null&&i!==void 0?i:"unknown error"}}}$g.RulesetFunctionValidationError=XP;const aYe=t=>t===null;function sYe({input:t,errorOnInvalidInput:e=!1,options:n},i){const a=n===null?aYe:DS.compile(n),o=t!==null?DS.compile(t):t,r=function(c,l,...u){var f,h,d;return(o==null?void 0:o(c))===!1?e?[{message:(d=(h=(f=o.errors)===null||f===void 0?void 0:f.find(m=>m.keyword==="errorMessage"))===null||h===void 0?void 0:h.message)!==null&&d!==void 0?d:"invalid input"}]:void 0:(r.validator(l),i(c,l,...u))};Reflect.defineProperty(r,"name",{value:i.name});const s=new WeakSet;return r.validator=function(c){if(!((0,OV.isObject)(c)&&s.has(c))){if(a(c)){(0,OV.isObject)(c)&&s.add(c);return}throw n===null?new fT.RulesetValidationError("invalid-function-options",`"${i.name||""}" function does not accept any options`,["functionOptions"]):"errors"in a&&Array.isArray(a.errors)&&a.errors.length>0?new iYe(a.errors.map(l=>new XP(i.name||"",l))):new fT.RulesetValidationError("invalid-function-options",`"functionOptions" of "${i.name||""}" function must be valid`,["functionOptions"])}},Reflect.defineProperty(r,"schemas",{enumerable:!1,value:{input:t,options:n}}),r}$g.createRulesetFunction=sYe;var EV;function ore(){return EV||(EV=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.Rule=t.Formats=t.Ruleset=t.createRulesetFunction=t.getDiagnosticSeverity=t.RulesetValidationError=t.assertValidRuleset=void 0;var e=ax;Object.defineProperty(t,"assertValidRuleset",{enumerable:!0,get:function(){return e.assertValidRuleset}}),Object.defineProperty(t,"RulesetValidationError",{enumerable:!0,get:function(){return e.RulesetValidationError}});var n=mh;Object.defineProperty(t,"getDiagnosticSeverity",{enumerable:!0,get:function(){return n.getDiagnosticSeverity}});var i=$g;Object.defineProperty(t,"createRulesetFunction",{enumerable:!0,get:function(){return i.createRulesetFunction}});var a=sre();Object.defineProperty(t,"Ruleset",{enumerable:!0,get:function(){return a.Ruleset}});var o=jh;Object.defineProperty(t,"Formats",{enumerable:!0,get:function(){return o.Formats}});var r=r0;Object.defineProperty(t,"Rule",{enumerable:!0,get:function(){return r.Rule}})}(oI)),oI}var lre={},cre={};Object.defineProperty(cre,"__esModule",{value:!0});var ure={};Object.defineProperty(ure,"__esModule",{value:!0});(function(t){Object.defineProperty(t,"__esModule",{value:!0});const e=vr;(0,e.__exportStar)(cre,t),(0,e.__exportStar)(ure,t)})(lre);var IV;function oYe(){return IV||(IV=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.Spectral=void 0;const e=vr,n=Hr,i=xb,a=(0,e.__importStar)(ph),o=lR,r=Zg(),s=W_,c=eX,l=sre(),u=Fx,f=ore();(0,e.__exportStar)(lre,t);class h{constructor(m){this.opts=m,(m==null?void 0:m.resolver)!==void 0?this._resolver=m.resolver:this._resolver=(0,o.createHttpAndFileResolver)()}parseDocument(m){return m instanceof r.Document?m:(0,r.isParsedResult)(m)?new r.ParsedDocument(m):new r.Document(typeof m=="string"?m:(0,n.stringify)(m,void 0,2),a.Yaml)}async runWithResolved(m,g={}){if(this.ruleset===void 0)throw new Error("No ruleset has been defined. Have you called setRuleset()?");const b=this.parseDocument(m),v=this.ruleset.fromSource(b.source),P=new s.DocumentInventory(b,this._resolver);await P.resolve();const A=new c.Runner(P);if(A.results.push(...this._filterParserErrors(b.diagnostics,v.parserOptions)),b.formats===void 0){const x=[...v.formats].filter(E=>E(P.resolved,b.source));x.length===0&&g.ignoreUnknownFormat!==!0?(b.formats=null,v.formats.size>0&&A.addResult(this._generateUnrecognizedFormatError(b,Array.from(v.formats)))):b.formats=new Set(x)}await A.run(v);const _=A.getResults();return{resolved:P.resolved,results:_}}async run(m,g={}){return(await this.runWithResolved(m,g)).results}setRuleset(m){this.ruleset=m instanceof l.Ruleset?m:new l.Ruleset(m)}_generateUnrecognizedFormatError(m,g){return(0,u.generateDocumentWideResult)(m,`The provided document does not match any of the registered formats [${g.map(b=>{var v;return(v=b.displayName)!==null&&v!==void 0?v:b.name}).join(", ")}]`,i.DiagnosticSeverity.Warning,"unrecognized-format")}_filterParserErrors(m,g){return m.reduce((b,v)=>{if(v.code!=="parser")return b;let P;if(v.message.startsWith("Mapping key must be a string scalar rather than"))P=(0,f.getDiagnosticSeverity)(g.incompatibleValues);else if(v.message.startsWith("Duplicate key"))P=(0,f.getDiagnosticSeverity)(g.duplicateKeys);else return b.push(v),b;return P!==-1&&(b.push(v),v.severity=P),b},[])}}t.Spectral=h}(OO)),OO}var CV;function Tr(){return CV||(CV=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.ParsedDocument=t.Document=void 0;const e=vr;(0,e.__exportStar)(q_,t),(0,e.__exportStar)(oYe(),t);var n=Zg();Object.defineProperty(t,"Document",{enumerable:!0,get:function(){return n.Document}}),Object.defineProperty(t,"ParsedDocument",{enumerable:!0,get:function(){return n.ParsedDocument}}),(0,e.__exportStar)(ore(),t)}(kO)),kO}var TV=Tr();const lYe=t=>{switch(t){case Vp.Warning:return"warning";case Vp.Information:return"info";case Vp.Hint:return"hint";default:return"error"}},Y$=(t,e)=>{const n=new TV.Spectral({resolver:new VM.Resolver({resolvers:{http:{resolve:pS},https:{resolve:pS}}})});return n.setRuleset(e),Uj(async i=>{const a=i.state.doc,o=new TV.Document(a.toString(),ph.Json);return(await n.run(o)).map(s=>({source:t,from:a.line(s.range.start.line+1).from+s.range.start.character,to:a.line(s.range.end.line+1).from+s.range.end.character,severity:lYe(s.severity),message:`[${s.code}] ${s.message}`}))})},cYe="3.0.2",uYe={title:"A sample API conforming to the draft standard OGC API - Features - Part 1: Core",version:"1.0.0",description:`This is a sample OpenAPI definition that conforms to the conformance +classes "Core", "GeoJSON", "HTML" and "OpenAPI 3.0" of the draft +standard "OGC API - Features - Part 1: Core". + +This example is a generic OGC API Features definition that uses path +parameters to describe all feature collections and all features. +The generic OpenAPI definition does not provide any details on the +collections or the feature content. This information is only available +from accessing the feature collection resources. + +There is [another example](ogcapi-features-1-example2.yaml) +that specifies each collection explicitly.`,contact:{name:"Acme Corporation",email:"info@example.org",url:"http://example.org/"},license:{name:"CC-BY 4.0 license",url:"https://creativecommons.org/licenses/by/4.0/"}},fYe=[{url:"https://data.example.org/",description:"Production server"},{url:"https://dev.example.org/",description:"Development server"}],pYe=[{name:"Capabilities",description:"essential characteristics of this API"},{name:"Data",description:"access to data (features)"}],hYe={"/":{get:{tags:["Capabilities"],summary:"landing page",description:`The landing page provides links to the API definition, the conformance +statements and to the feature collections in this dataset.`,operationId:"getLandingPage",responses:{200:{$ref:"https://raw.githubusercontent.com/opengeospatial/ogcapi-features/master/core/openapi/ogcapi-features-1-oas30.yaml#/components/responses/LandingPage"},500:{$ref:"https://raw.githubusercontent.com/opengeospatial/ogcapi-features/master/core/openapi/ogcapi-features-1-oas30.yaml#/components/responses/ServerError"}}}},"/conformance":{get:{tags:["Capabilities"],summary:"information about specifications that this API conforms to",description:`A list of all conformance classes specified in a standard that the +server conforms to.`,operationId:"getConformanceDeclaration",responses:{200:{$ref:"https://raw.githubusercontent.com/opengeospatial/ogcapi-features/master/core/openapi/ogcapi-features-1-oas30.yaml#/components/responses/ConformanceDeclaration"},500:{$ref:"https://raw.githubusercontent.com/opengeospatial/ogcapi-features/master/core/openapi/ogcapi-features-1-oas30.yaml#/components/responses/ServerError"}}}},"/collections":{get:{tags:["Capabilities"],summary:"the feature collections in the dataset",operationId:"getCollections",responses:{200:{$ref:"https://raw.githubusercontent.com/opengeospatial/ogcapi-features/master/core/openapi/ogcapi-features-1-oas30.yaml#/components/responses/Collections"},500:{$ref:"https://raw.githubusercontent.com/opengeospatial/ogcapi-features/master/core/openapi/ogcapi-features-1-oas30.yaml#/components/responses/ServerError"}}}},"/collections/{collectionId}":{get:{tags:["Capabilities"],summary:"describe the feature collection with id `collectionId`",operationId:"describeCollection",parameters:[{$ref:"https://raw.githubusercontent.com/opengeospatial/ogcapi-features/master/core/openapi/ogcapi-features-1-oas30.yaml#/components/parameters/collectionId"}],responses:{200:{$ref:"https://raw.githubusercontent.com/opengeospatial/ogcapi-features/master/core/openapi/ogcapi-features-1-oas30.yaml#/components/responses/Collection"},404:{$ref:"https://raw.githubusercontent.com/opengeospatial/ogcapi-features/master/core/openapi/ogcapi-features-1-oas30.yaml#/components/responses/NotFound"},500:{$ref:"https://raw.githubusercontent.com/opengeospatial/ogcapi-features/master/core/openapi/ogcapi-features-1-oas30.yaml#/components/responses/ServerError"}}}},"/collections/{collectionId}/items":{get:{tags:["Data"],summary:"fetch features",description:`Fetch features of the feature collection with id \`collectionId\`. + +Every feature in a dataset belongs to a collection. A dataset may +consist of multiple feature collections. A feature collection is often a +collection of features of a similar type, based on a common schema. + +Use content negotiation to request HTML or GeoJSON.`,operationId:"getFeatures",parameters:[{$ref:"https://raw.githubusercontent.com/opengeospatial/ogcapi-features/master/core/openapi/ogcapi-features-1-oas30.yaml#/components/parameters/collectionId"},{$ref:"https://raw.githubusercontent.com/opengeospatial/ogcapi-features/master/core/openapi/ogcapi-features-1-oas30.yaml#/components/parameters/limit"},{$ref:"https://raw.githubusercontent.com/opengeospatial/ogcapi-features/master/core/openapi/ogcapi-features-1-oas30.yaml#/components/parameters/bbox"},{$ref:"https://raw.githubusercontent.com/opengeospatial/ogcapi-features/master/core/openapi/ogcapi-features-1-oas30.yaml#/components/parameters/datetime"}],responses:{200:{$ref:"https://raw.githubusercontent.com/opengeospatial/ogcapi-features/master/core/openapi/ogcapi-features-1-oas30.yaml#/components/responses/Features"},400:{$ref:"https://raw.githubusercontent.com/opengeospatial/ogcapi-features/master/core/openapi/ogcapi-features-1-oas30.yaml#/components/responses/InvalidParameter"},404:{$ref:"https://raw.githubusercontent.com/opengeospatial/ogcapi-features/master/core/openapi/ogcapi-features-1-oas30.yaml#/components/responses/NotFound"},500:{$ref:"https://raw.githubusercontent.com/opengeospatial/ogcapi-features/master/core/openapi/ogcapi-features-1-oas30.yaml#/components/responses/ServerError"}}}},"/collections/{collectionId}/items/{featureId}":{get:{tags:["Data"],summary:"fetch a single feature",description:"Fetch the feature with id `featureId` in the feature collection\nwith id `collectionId`.\n\nUse content negotiation to request HTML or GeoJSON.",operationId:"getFeature",parameters:[{$ref:"https://raw.githubusercontent.com/opengeospatial/ogcapi-features/master/core/openapi/ogcapi-features-1-oas30.yaml#/components/parameters/collectionId"},{$ref:"https://raw.githubusercontent.com/opengeospatial/ogcapi-features/master/core/openapi/ogcapi-features-1-oas30.yaml#/components/parameters/featureId"}],responses:{200:{$ref:"https://raw.githubusercontent.com/opengeospatial/ogcapi-features/master/core/openapi/ogcapi-features-1-oas30.yaml#/components/responses/Feature"},404:{$ref:"https://raw.githubusercontent.com/opengeospatial/ogcapi-features/master/core/openapi/ogcapi-features-1-oas30.yaml#/components/responses/NotFound"},500:{$ref:"https://raw.githubusercontent.com/opengeospatial/ogcapi-features/master/core/openapi/ogcapi-features-1-oas30.yaml#/components/responses/ServerError"}}}}},dYe={openapi:cYe,info:uYe,servers:fYe,tags:pYe,paths:hYe};var cl={},fre={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.oas3_1=t.oas3_0=t.oas3=t.oas2=void 0;const e=Hr,n=r=>(0,e.isPlainObject)(r)&&"swagger"in r&&parseInt(String(r.swagger))===2;t.oas2=n,t.oas2.displayName="OpenAPI 2.0 (Swagger)";const i=r=>(0,e.isPlainObject)(r)&&"openapi"in r&&Number.parseInt(String(r.openapi))===3;t.oas3=i,t.oas3.displayName="OpenAPI 3.x";const a=r=>i(r)&&/^3\.0(?:\.[0-9]*)?$/.test(String(r.openapi));t.oas3_0=a,t.oas3_0.displayName="OpenAPI 3.0.x";const o=r=>i(r)&&/^3\.1(?:\.[0-9]*)?$/.test(String(r.openapi));t.oas3_1=o,t.oas3_1.displayName="OpenAPI 3.1.x"})(fre);var pre={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.aas2_6=t.aas2_5=t.aas2_4=t.aas2_3=t.aas2_2=t.aas2_1=t.aas2_0=t.asyncapi2=t.asyncApi2=t.aas2=void 0;const e=Hr,n=/^2\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)$/,i=/^2\.0(?:\.[0-9]*)?$/,a=/^2\.1(?:\.[0-9]*)?$/,o=/^2\.2(?:\.[0-9]*)?$/,r=/^2\.3(?:\.[0-9]*)?$/,s=/^2\.4(?:\.[0-9]*)?$/,c=/^2\.5(?:\.[0-9]*)?$/,l=/^2\.6(?:\.[0-9]*)?$/,u=P=>(0,e.isPlainObject)(P)&&"asyncapi"in P&&n.test(String(P.asyncapi));t.aas2=u,t.aas2.displayName="AsyncAPI 2.x",t.asyncApi2=t.aas2,t.asyncapi2=t.aas2;const f=P=>u(P)&&i.test(String(P.asyncapi));t.aas2_0=f,t.aas2_0.displayName="AsyncAPI 2.0.x";const h=P=>u(P)&&a.test(String(P.asyncapi));t.aas2_1=h,t.aas2_1.displayName="AsyncAPI 2.1.x";const d=P=>u(P)&&o.test(String(P.asyncapi));t.aas2_2=d,t.aas2_2.displayName="AsyncAPI 2.2.x";const m=P=>u(P)&&r.test(String(P.asyncapi));t.aas2_3=m,t.aas2_3.displayName="AsyncAPI 2.3.x";const g=P=>u(P)&&s.test(String(P.asyncapi));t.aas2_4=g,t.aas2_4.displayName="AsyncAPI 2.4.x";const b=P=>u(P)&&c.test(String(P.asyncapi));t.aas2_5=b,t.aas2_5.displayName="AsyncAPI 2.5.x";const v=P=>u(P)&&l.test(String(P.asyncapi));t.aas2_6=v,t.aas2_6.displayName="AsyncAPI 2.6.x"})(pre);var hre={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.detectDialect=t.extractDraftVersion=t.jsonSchemaDraft2020_12=t.jsonSchemaDraft2019_09=t.jsonSchemaDraft7=t.jsonSchemaDraft6=t.jsonSchemaDraft4=t.jsonSchemaLoose=t.jsonSchema=void 0;const e=Hr,n=["array","boolean","integer","null","number","object","string"],i=["allOf","oneOf","anyOf","not","if"],a=/^https?:\/\/json-schema.org\/(?:draft-0([467])|draft\/(20(?:19-09|20-12)))\/(?:hyper-)?schema#?$/,o=m=>"type"in m?typeof m.type=="string"?n.includes(m.type):Array.isArray(m.type)&&m.type.every(g=>n.includes(g)):!1,r=m=>Array.isArray(m.enum),s=m=>i.some(g=>g in m&&typeof m[g]=="object"&&m[g]!==null);function c(m){return(0,e.isPlainObject)(m)&&"$schema"in m&&typeof m.$schema=="string"}const l=m=>c(m)&&m.$schema.includes("//json-schema.org/");t.jsonSchema=l,t.jsonSchema.displayName="JSON Schema";const u=m=>(0,e.isPlainObject)(m)&&(l(m)||o(m)||r(m)||s(m));t.jsonSchemaLoose=u,t.jsonSchemaLoose.displayName="JSON Schema (loose)",t.jsonSchemaDraft4=f("draft4","JSON Schema Draft 4"),t.jsonSchemaDraft6=f("draft6","JSON Schema Draft 6"),t.jsonSchemaDraft7=f("draft7","JSON Schema Draft 7"),t.jsonSchemaDraft2019_09=f("draft2019-09","JSON Schema Draft 2019-09"),t.jsonSchemaDraft2020_12=f("draft2020-12","JSON Schema Draft 2020-12");function f(m,g){const b=v=>l(v)&&h(v.$schema)===m;return b.displayName=g,b}function h(m){var g;const b=a.exec(m);return b!==null?`draft${(g=b[1])!==null&&g!==void 0?g:b[2]}`:null}t.extractDraftVersion=h;function d(m){return l(m)?h(m.$schema):null}t.detectDialect=d})(hre);var dre={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.arazzo1_0=void 0;const e=Hr,n=/^1\.0(?:\.[0-9]*)?$/,i=a=>(0,e.isPlainObject)(a)&&"arazzo"in a&&n.test(String(a.arazzo));t.arazzo1_0=i,t.arazzo1_0.displayName="Arazzo 1.0.x"})(dre);(function(t){Object.defineProperty(t,"__esModule",{value:!0});const e=vr;(0,e.__exportStar)(fre,t),(0,e.__exportStar)(pre,t),(0,e.__exportStar)(hre,t),(0,e.__exportStar)(dre,t)})(cl);var na={},gN={},Da={},vN={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.CasingType=void 0,function(e){e.flat="flat",e.camel="camel",e.pascal="pascal",e.kebab="kebab",e.cobol="cobol",e.snake="snake",e.macro="macro"}(t.CasingType||(t.CasingType={}))})(vN);Object.defineProperty(Da,"__esModule",{value:!0});Da.optionSchemas=void 0;const jV=vN;Da.optionSchemas={alphabetical:{type:["object","null"],properties:{keyedBy:{type:"string",description:"The key to sort an object by."}},additionalProperties:!1,errorMessage:{type:'"alphabetical" function has invalid options specified. Example valid options: null (no options), { "keyedBy": "my-key" }'}},casing:{required:["type"],type:"object",properties:{type:{type:"string",enum:Object.values(jV.CasingType),errorMessage:`"casing" function and its "type" option accept the following values: ${Object.values(jV.CasingType).join(", ")}`,description:"The casing type to match against."},disallowDigits:{type:"boolean",default:!1,description:"If not true, digits are allowed."},separator:{type:"object",required:["char"],additionalProperties:!1,properties:{char:{type:"string",maxLength:1,errorMessage:'"casing" function and its "separator.char" option accepts only char, i.e. "I" or "/"',description:"The additional char to separate groups of words."},allowLeading:{type:"boolean",description:"Can the group separator char be used at the first char?"}}}},additionalProperties:!1,errorMessage:{type:'"casing" function has invalid options specified. Example valid options: { "type": "camel" }, { "type": "pascal", "disallowDigits": true }'}},defined:null,enumeration:{type:"object",additionalProperties:!1,properties:{values:{type:"array",items:{type:["string","number","null","boolean"]},errorMessage:'"enumeration" and its "values" option support only arrays of primitive values, i.e. ["Berlin", "London", "Paris"]',description:"An array of possible values."}},required:["values"],errorMessage:{type:'"enumeration" function has invalid options specified. Example valid options: { "values": ["Berlin", "London", "Paris"] }, { "values": [2, 3, 5, 8, 13, 21] }'}},falsy:null,length:{type:"object",properties:{min:{type:"number",description:"The minimum length to match."},max:{type:"number",description:"The maximum length to match."}},minProperties:1,additionalProperties:!1,errorMessage:{type:'"length" function has invalid options specified. Example valid options: { "min": 2 }, { "max": 5 }, { "min": 0, "max": 10 }'}},pattern:{type:"object",additionalProperties:!1,properties:{match:{anyOf:[{type:"string"},{type:"object",properties:{exec:{},test:{},flags:{type:"string"}},required:["test","flags"],"x-internal":!0}],errorMessage:'"pattern" function and its "match" option must be string or RegExp instance',description:"If provided, value must match this regex."},notMatch:{anyOf:[{type:"string"},{type:"object",properties:{exec:{},test:{},flags:{type:"string"}},required:["test","flags"],"x-internal":!0}],errorMessage:'"pattern" function and its "notMatch" option must be string or RegExp instance',description:"If provided, value must _not_ match this regex."}},minProperties:1,errorMessage:{type:'"pattern" function has invalid options specified. Example valid options: { "match": "^Stoplight" }, { "notMatch": "Swagger" }, { "match": "Stoplight", "notMatch": "Swagger" }',minProperties:'"pattern" function has invalid options specified. Example valid options: { "match": "^Stoplight" }, { "notMatch": "Swagger" }, { "match": "Stoplight", "notMatch": "Swagger" }'}},truthy:null,undefined:null,schema:{additionalProperties:!1,properties:{schema:{type:"object",description:"Any valid JSON Schema document."},dialect:{enum:["auto","draft4","draft6","draft7","draft2019-09","draft2020-12"],default:"auto",description:"The JSON Schema draft used by function."},allErrors:{type:"boolean",default:!1,description:"Returns all errors when true; otherwise only returns the first error."},prepareResults:{"x-internal":!0}},required:["schema"],type:"object",errorMessage:{type:'"schema" function has invalid options specified. Example valid options: { "schema": { /* any JSON Schema can be defined here */ } , { "schema": { "type": "object" }, "dialect": "auto" }'}},unreferencedReusableObject:{type:"object",properties:{reusableObjectsLocation:{type:"string",format:"json-pointer-uri-fragment",errorMessage:'"unreferencedReusableObject" and its "reusableObjectsLocation" option support only valid JSON Pointer fragments, i.e. "#", "#/foo", "#/paths/~1user"',description:"A local json pointer to the document member holding the reusable objects (eg. #/definitions for an OAS2 document, #/components/schemas for an OAS3 document)."}},additionalProperties:!1,required:["reusableObjectsLocation"],errorMessage:{type:'"unreferencedReusableObject" function has invalid options specified. Example valid options: { "reusableObjectsLocation": "#/components/schemas" }, { "reusableObjectsLocation": "#/$defs" }',required:'"unreferencedReusableObject" function is missing "reusableObjectsLocation" option. Example valid options: { "reusableObjectsLocation": "#/components/schemas" }, { "reusableObjectsLocation": "#/$defs" }'}},xor:{type:"object",properties:{properties:{type:"array",items:{type:"string"},minItems:2,errorMessage:'"xor" and its "properties" option require at least 2-item tuples, i.e. ["id", "name"]',description:"The properties to check."}},additionalProperties:!1,required:["properties"],errorMessage:{type:'"xor" function has invalid options specified. Example valid options: { "properties": ["id", "name"] }, { "properties": ["country", "street"] }'}}};Object.defineProperty(gN,"__esModule",{value:!0});const mYe=ir,yYe=Tr(),MV=Ya,gYe=Da,vYe=(t,e)=>(typeof t=="number"||Number.isNaN(Number(t)))&&(typeof e=="number"||!Number.isNaN(Number(e)))?Math.min(1,Math.max(-1,Number(t)-Number(e))):typeof t!="string"||typeof e!="string"?0:t.localeCompare(e),PYe=(t,e)=>{for(let n=0;n=1)return[n,n+1];return null};function bYe(t){return typeof t=="string"||typeof t=="number"}function wYe(t){return t.every(bYe)}gN.default=(0,yYe.createRulesetFunction)({input:{type:["object","array"]},options:gYe.optionSchemas.alphabetical},function(e,n,{path:i,documentInventory:a}){var o,r;let s;if(Array.isArray(e)?s=e:s=Object.keys((r=(o=a.findAssociatedItemForPath(i,!0))===null||o===void 0?void 0:o.document.trapAccess(e))!==null&&r!==void 0?r:e),s.length<2)return;const c=n==null?void 0:n.keyedBy;if(c!==void 0){const u=[];for(const f of s){if(!(0,mYe.isObject)(f))return[{message:'#{{print("property")}}must be an object'}];u.push(f[c])}s=u}if(!wYe(s))return[{message:'#{{print("property")}}must be one of the allowed types: number, string'}];const l=PYe(s,vYe);if(l!=null)return[{...c===void 0?{path:[...i,Array.isArray(e)?l[0]:s[l[0]]]}:null,message:c!==void 0?"properties must follow the alphabetical order":`${(0,MV.printValue)(s[l[0]])} must be placed after ${(0,MV.printValue)(s[l[1]])}`}]});var mre={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.CasingType=void 0;const e=ir,n=Tr(),i=Da,a=vN;Object.defineProperty(t,"CasingType",{enumerable:!0,get:function(){return a.CasingType}});const o={[a.CasingType.flat]:"[a-z][a-z{__DIGITS__}]*",[a.CasingType.camel]:"[a-z][a-z{__DIGITS__}]*(?:[A-Z{__DIGITS__}](?:[a-z{__DIGITS__}]+|$))*",[a.CasingType.pascal]:"[A-Z][a-z{__DIGITS__}]*(?:[A-Z{__DIGITS__}](?:[a-z{__DIGITS__}]+|$))*",[a.CasingType.kebab]:"[a-z][a-z{__DIGITS__}]*(?:-[a-z{__DIGITS__}]+)*",[a.CasingType.cobol]:"[A-Z][A-Z{__DIGITS__}]*(?:-[A-Z{__DIGITS__}]+)*",[a.CasingType.snake]:"[a-z][a-z{__DIGITS__}]*(?:_[a-z{__DIGITS__}]+)*",[a.CasingType.macro]:"[A-Z][A-Z{__DIGITS__}]*(?:_[A-Z{__DIGITS__}]+)*"};t.default=(0,n.createRulesetFunction)({input:{type:"string",minLength:1},options:i.optionSchemas.casing},function(l,u){if(!(l.length===1&&u.separator!==void 0&&u.separator.allowLeading===!0&&l===u.separator.char||s(o[u.type],u).test(l)))return[{message:`must be ${u.type} case`}]});const r="0-9",s=(c,l)=>{const u=l.disallowDigits!==!0,f=c.replace(/\{__DIGITS__\}/g,u?r:"");if(l.separator===void 0)return new RegExp(`^${f}$`);const h=`[${(0,e.escapeRegExp)(l.separator.char)}]`,d=l.separator.allowLeading===!0?`${h}?`:"";return new RegExp(`^${d}${f}(?:${h}${f})*$`)}})(mre);var PN={};Object.defineProperty(PN,"__esModule",{value:!0});const $Ye=Tr(),AYe=Da;PN.default=(0,$Ye.createRulesetFunction)({input:null,options:AYe.optionSchemas.defined},function(e){if(typeof e>"u")return[{message:'#{{print("property")}}must be defined'}]});var bN={};Object.defineProperty(bN,"__esModule",{value:!0});const SYe=Tr(),_Ye=Ya,xYe=Da;bN.default=(0,SYe.createRulesetFunction)({input:{type:["string","number","null","boolean"]},options:xYe.optionSchemas.enumeration},function(e,{values:n}){if(!n.includes(e))return[{message:`#{{print("value")}} must be equal to one of the allowed values: ${n.map(_Ye.printValue).join(", ")}`}]});var wN={};Object.defineProperty(wN,"__esModule",{value:!0});const DYe=Tr(),kYe=Da;wN.default=(0,DYe.createRulesetFunction)({input:null,options:kYe.optionSchemas.falsy},function(e){if(e)return[{message:'#{{print("property")}}must be falsy'}]});var $N={};Object.defineProperty($N,"__esModule",{value:!0});const OYe=Tr(),RV=Ya,EYe=Hr,IYe=Da;$N.default=(0,OYe.createRulesetFunction)({input:{type:["array","object","string","number"]},options:IYe.optionSchemas.length},function(e,n){let i;(0,EYe.isPlainObject)(e)?i=Object.keys(e).length:Array.isArray(e)?i=e.length:typeof e=="number"?i=e:i=e.length;let a;return"min"in n&&in.max&&(a??(a=[])).push({message:`#{{print("property")}}must be shorter than ${(0,RV.printValue)(n.max)}`}),a});var AN={};Object.defineProperty(AN,"__esModule",{value:!0});const CYe=Tr(),NV=Ya,TYe=Da,jYe=/^\/(.+)\/([a-z]*)$/,LV=new Map;function FV(t){const e=LV.get(t);if(e!==void 0)return e.lastIndex=0,e;const n=MYe(t);return LV.set(t,n),n}function MYe(t){const e=jYe.exec(t);return e!==null?new RegExp(e[1],e[2]):new RegExp(t)}AN.default=(0,CYe.createRulesetFunction)({input:{type:"string"},options:TYe.optionSchemas.pattern},function(e,n){let i;return"match"in n&&(FV(n.match).test(e)||(i=[{message:`#{{print("value")}} must match the pattern ${(0,NV.printValue)(n.match)}`}])),"notMatch"in n&&FV(n.notMatch).test(e)&&(i??(i=[])).push({message:`#{{print("value")}} must not match the pattern ${(0,NV.printValue)(n.notMatch)}`}),i});var SN={},qx={},RYe=/~/,NYe=/~[01]/g;function LYe(t){switch(t){case"~1":return"/";case"~0":return"~"}throw new Error("Invalid tilde escape: "+t)}function yre(t){return RYe.test(t)?t.replace(NYe,LYe):t}function FYe(t,e,n){for(var i,a,o=1,r=e.length;oo,typeof t[i]>"u"&&(Array.isArray(t)&&i==="-"&&(i=t.length),a&&(e[o]!==""&&e[o]<1/0||e[o]==="-"?t[i]=[]:t[i]={})),!a)break;t=t[i]}var s=t[i];return n===void 0?delete t[i]:t[i]=n,s}function _N(t){if(typeof t=="string"){if(t=t.split("/"),t[0]==="")return t;throw new Error("Invalid JSON pointer.")}else if(Array.isArray(t)){for(const e of t)if(typeof e!="string"&&typeof e!="number")throw new Error("Invalid JSON pointer. Must be of type string or number.");return t}throw new Error("Invalid JSON pointer.")}function gre(t,e){if(typeof t!="object")throw new Error("Invalid input object.");e=_N(e);var n=e.length;if(n===1)return t;for(var i=1;i{if(t===e)return 0;const n=t;t.length>e.length&&(t=e,e=n);let i=t.length,a=e.length;for(;i>0&&t.charCodeAt(~-i)===e.charCodeAt(~-a);)i--,a--;let o=0;for(;os?l>s?s+1:l:l>c?c+1:l;return s};xN.exports=Pre;xN.exports.default=Pre;var bre=xN.exports,zYe=qx,UYe=bre;function wre(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}var BYe=wre(zYe),VYe=wre(UYe);const WYe=t=>e=>t===e,HYe=t=>e=>!t(e),GYe=t=>Object.values(t),KYe=t=>t!==void 0,$re=t=>e=>e.keyword===t,YYe=$re("anyOf"),Are=$re("enum"),J$=t=>t&&t.errors||[],Sre=t=>t&&GYe(t.children)||[],JYe=t=>e=>Sre(t).filter(HYe(WYe(e))),zV=t=>e=>e.reduce((n,i)=>n.concat(i),t);function QYe(t){const e=t.lastIndexOf("/");return e!==-1?t.slice(e+1):null}const ZYe=/['"]/g,XYe=/NOT/g,eJe=/^[a-z]/;function _re(t){return t.replace(ZYe,'"').replace(XYe,"not")}function tJe(t){return t.toUpperCase()}function rJe(t){return t.replace(eJe,tJe)}class c0{constructor(e={isIdentifierLocation:!1},{data:n,schema:i,propPath:a}){this.options=e,this.data=n,this.schema=i,this.propPath=a}getError(){throw new Error(`Implement the 'getError' method inside ${this.constructor.name}!`)}getPrettyPropertyName(e){const n=this.getPropertyName(e);return n===null?rJe(typeof this.getPropertyValue(e)):`"${n}" property`}getPropertyName(e){const n=QYe(e);return n!==null?n:this.propPath.length===0?null:this.propPath[this.propPath.length-1]}getPropertyValue(e){return e===""?this.data:BYe.default.get(this.data,e)}}class nJe extends c0{getError(){const{message:e,instancePath:n}=this.options;return{error:`${this.getPrettyPropertyName(n)} ${_re(e)}`,path:n}}}class iJe extends c0{constructor(...e){super(...e)}getError(){const{params:e,instancePath:n}=this.options;return{error:`Property "${e.additionalProperty}" is not expected to be here`,path:n}}}class aJe extends c0{getError(){const{message:e,instancePath:n,params:i}=this.options,a=this.findBestMatch(),o={error:`${this.getPrettyPropertyName(n)} ${e}: ${i.allowedValues.map(r=>typeof r=="string"?`"${r}"`:JSON.stringify(r)).join(", ")}`,path:n};return a!==null&&(o.suggestion=`Did you mean "${a}"?`),o}findBestMatch(){const{instancePath:e,params:{allowedValues:n}}=this.options,i=this.getPropertyValue(e);if(typeof i!="string")return null;const a=n.filter(r=>typeof r=="string").map(r=>({value:r,weight:VYe.default(r,i.toString())})).sort((r,s)=>r.weight>s.weight?1:r.weight{const{instancePath:i}=n,a=i===""?[""]:i.match(cJe);a&&a.reduce((o,r,s)=>(o.children[r]=o.children[r]||{children:{},errors:[]},s===a.length-1&&o.children[r].errors.push(n),o.children[r]),e)}),e}function xre(t,e,n){J$(t).some(YYe)&&Object.keys(t.children).length>0&&delete t.errors,t.errors&&t.errors.length&&J$(t).every(Are)&&JYe(e)(t).filter(KYe).some(J$)&&delete e.children[n],Object.entries(t.children).forEach(([i,a])=>xre(a,t,i))}function Dre(t,e){const n=J$(t);if(n.length&&n.every(Are)){const a=[...new Set(zV([])(n.map(r=>r.params.allowedValues)))],o=n[0];return[new aJe({...o,params:{allowedValues:a}},e)]}else return zV(n.reduce((i,a)=>{switch(a.keyword){case"additionalProperties":return i.concat(new iJe(a,e));case"required":return i.concat(new nJe(a,e));case"type":return i.concat(new oJe(a,e));case"errorMessage":return i.concat(new lJe(a,e));default:return i.concat(new sJe(a,e))}},[]))(Sre(t).map(i=>Dre(i,e)))}var fJe=(t,e)=>{const n=uJe(t||[]);return xre(n),Dre(n,e)};const pJe=t=>t.getError();var hJe=(t,e,{propertyPath:n,targetValue:i})=>fJe(e,{data:i,schema:t,propPath:n}).map(pJe),dJe=hJe,zx={},pT={exports:{}},Ux={},u0={};Object.defineProperty(u0,"__esModule",{value:!0});u0.dynamicAnchor=void 0;const cI=Et,mJe=xa,UV=fa,yJe=Kl,gJe={keyword:"$dynamicAnchor",schemaType:"string",code:t=>kre(t,t.schema)};function kre(t,e){const{gen:n,it:i}=t;i.schemaEnv.root.dynamicAnchors[e]=!0;const a=(0,cI._)`${mJe.default.dynamicAnchors}${(0,cI.getProperty)(e)}`,o=i.errSchemaPath==="#"?i.validateName:vJe(t);n.if((0,cI._)`!${a}`,()=>n.assign(a,o))}u0.dynamicAnchor=kre;function vJe(t){const{schemaEnv:e,schema:n,self:i}=t.it,{root:a,baseId:o,localRefs:r,meta:s}=e.root,{schemaId:c}=i.opts,l=new UV.SchemaEnv({schema:n,schemaId:c,root:a,baseId:o,localRefs:r,meta:s});return UV.compileSchema.call(i,l),(0,yJe.getValidate)(t,l)}u0.default=gJe;var f0={};Object.defineProperty(f0,"__esModule",{value:!0});f0.dynamicRef=void 0;const BV=Et,PJe=xa,VV=Kl,bJe={keyword:"$dynamicRef",schemaType:"string",code:t=>Ore(t,t.schema)};function Ore(t,e){const{gen:n,keyword:i,it:a}=t;if(e[0]!=="#")throw new Error(`"${i}" only supports hash fragment reference`);const o=e.slice(1);if(a.allErrors)r();else{const c=n.let("valid",!1);r(c),t.ok(c)}function r(c){if(a.schemaEnv.root.dynamicAnchors[o]){const l=n.let("_v",(0,BV._)`${PJe.default.dynamicAnchors}${(0,BV.getProperty)(o)}`);n.if(l,s(l,c),s(a.validateName,c))}else s(a.validateName,c)()}function s(c,l){return l?()=>n.block(()=>{(0,VV.callRef)(t,c),n.let(l,!0)}):()=>(0,VV.callRef)(t,c)}}f0.dynamicRef=Ore;f0.default=bJe;var DN={};Object.defineProperty(DN,"__esModule",{value:!0});const wJe=u0,$Je=at,AJe={keyword:"$recursiveAnchor",schemaType:"boolean",code(t){t.schema?(0,wJe.dynamicAnchor)(t,""):(0,$Je.checkStrictMode)(t.it,"$recursiveAnchor: false is ignored")}};DN.default=AJe;var kN={};Object.defineProperty(kN,"__esModule",{value:!0});const SJe=f0,_Je={keyword:"$recursiveRef",schemaType:"string",code:t=>(0,SJe.dynamicRef)(t,t.schema)};kN.default=_Je;Object.defineProperty(Ux,"__esModule",{value:!0});const xJe=u0,DJe=f0,kJe=DN,OJe=kN,EJe=[xJe.default,DJe.default,kJe.default,OJe.default];Ux.default=EJe;var Bx={},ON={};Object.defineProperty(ON,"__esModule",{value:!0});const WV=Ax,IJe={keyword:"dependentRequired",type:"object",schemaType:"object",error:WV.error,code:t=>(0,WV.validatePropertyDeps)(t)};ON.default=IJe;var EN={};Object.defineProperty(EN,"__esModule",{value:!0});const CJe=Ax,TJe={keyword:"dependentSchemas",type:"object",schemaType:"object",code:t=>(0,CJe.validateSchemaDeps)(t)};EN.default=TJe;var IN={};Object.defineProperty(IN,"__esModule",{value:!0});const jJe=at,MJe={keyword:["maxContains","minContains"],type:"array",schemaType:"number",code({keyword:t,parentSchema:e,it:n}){e.contains===void 0&&(0,jJe.checkStrictMode)(n,`"${t}" without "contains" is ignored`)}};IN.default=MJe;Object.defineProperty(Bx,"__esModule",{value:!0});const RJe=ON,NJe=EN,LJe=IN,FJe=[RJe.default,NJe.default,LJe.default];Bx.default=FJe;var Vx={},CN={};Object.defineProperty(CN,"__esModule",{value:!0});const Hu=Et,HV=at,qJe=xa,zJe={message:"must NOT have unevaluated properties",params:({params:t})=>(0,Hu._)`{unevaluatedProperty: ${t.unevaluatedProperty}}`},UJe={keyword:"unevaluatedProperties",type:"object",schemaType:["boolean","object"],trackErrors:!0,error:zJe,code(t){const{gen:e,schema:n,data:i,errsCount:a,it:o}=t;if(!a)throw new Error("ajv implementation error");const{allErrors:r,props:s}=o;s instanceof Hu.Name?e.if((0,Hu._)`${s} !== true`,()=>e.forIn("key",i,f=>e.if(l(s,f),()=>c(f)))):s!==!0&&e.forIn("key",i,f=>s===void 0?c(f):e.if(u(s,f),()=>c(f))),o.props=!0,t.ok((0,Hu._)`${a} === ${qJe.default.errors}`);function c(f){if(n===!1){t.setParams({unevaluatedProperty:f}),t.error(),r||e.break();return}if(!(0,HV.alwaysValidSchema)(o,n)){const h=e.name("valid");t.subschema({keyword:"unevaluatedProperties",dataProp:f,dataPropType:HV.Type.Str},h),r||e.if((0,Hu.not)(h),()=>e.break())}}function l(f,h){return(0,Hu._)`!${f} || !${f}[${h}]`}function u(f,h){const d=[];for(const m in f)f[m]===!0&&d.push((0,Hu._)`${h} !== ${m}`);return(0,Hu.and)(...d)}}};CN.default=UJe;var TN={};Object.defineProperty(TN,"__esModule",{value:!0});const bp=Et,GV=at,BJe={message:({params:{len:t}})=>(0,bp.str)`must NOT have more than ${t} items`,params:({params:{len:t}})=>(0,bp._)`{limit: ${t}}`},VJe={keyword:"unevaluatedItems",type:"array",schemaType:["boolean","object"],error:BJe,code(t){const{gen:e,schema:n,data:i,it:a}=t,o=a.items||0;if(o===!0)return;const r=e.const("len",(0,bp._)`${i}.length`);if(n===!1)t.setParams({len:o}),t.fail((0,bp._)`${r} > ${o}`);else if(typeof n=="object"&&!(0,GV.alwaysValidSchema)(a,n)){const c=e.var("valid",(0,bp._)`${r} <= ${o}`);e.if((0,bp.not)(c),()=>s(c,o)),t.ok(c)}a.items=!0;function s(c,l){e.forRange("i",l,r,u=>{t.subschema({keyword:"unevaluatedItems",dataProp:u,dataPropType:GV.Type.Num},c),a.allErrors||e.if((0,bp.not)(c),()=>e.break())})}}};TN.default=VJe;Object.defineProperty(Vx,"__esModule",{value:!0});const WJe=CN,HJe=TN,GJe=[WJe.default,HJe.default];Vx.default=GJe;var jN={};const KJe="https://json-schema.org/draft/2019-09/schema",YJe="https://json-schema.org/draft/2019-09/schema",JJe={"https://json-schema.org/draft/2019-09/vocab/core":!0,"https://json-schema.org/draft/2019-09/vocab/applicator":!0,"https://json-schema.org/draft/2019-09/vocab/validation":!0,"https://json-schema.org/draft/2019-09/vocab/meta-data":!0,"https://json-schema.org/draft/2019-09/vocab/format":!1,"https://json-schema.org/draft/2019-09/vocab/content":!0},QJe=!0,ZJe="Core and Validation specifications meta-schema",XJe=[{$ref:"meta/core"},{$ref:"meta/applicator"},{$ref:"meta/validation"},{$ref:"meta/meta-data"},{$ref:"meta/format"},{$ref:"meta/content"}],eQe=["object","boolean"],tQe={definitions:{$comment:"While no longer an official keyword as it is replaced by $defs, this keyword is retained in the meta-schema to prevent incompatible extensions as it remains in common use.",type:"object",additionalProperties:{$recursiveRef:"#"},default:{}},dependencies:{$comment:'"dependencies" is no longer a keyword, but schema authors should avoid redefining it to facilitate a smooth transition to "dependentSchemas" and "dependentRequired"',type:"object",additionalProperties:{anyOf:[{$recursiveRef:"#"},{$ref:"meta/validation#/$defs/stringArray"}]}}},rQe={$schema:KJe,$id:YJe,$vocabulary:JJe,$recursiveAnchor:QJe,title:ZJe,allOf:XJe,type:eQe,properties:tQe},nQe="https://json-schema.org/draft/2019-09/schema",iQe="https://json-schema.org/draft/2019-09/meta/applicator",aQe={"https://json-schema.org/draft/2019-09/vocab/applicator":!0},sQe=!0,oQe="Applicator vocabulary meta-schema",lQe=["object","boolean"],cQe={additionalItems:{$recursiveRef:"#"},unevaluatedItems:{$recursiveRef:"#"},items:{anyOf:[{$recursiveRef:"#"},{$ref:"#/$defs/schemaArray"}]},contains:{$recursiveRef:"#"},additionalProperties:{$recursiveRef:"#"},unevaluatedProperties:{$recursiveRef:"#"},properties:{type:"object",additionalProperties:{$recursiveRef:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$recursiveRef:"#"},propertyNames:{format:"regex"},default:{}},dependentSchemas:{type:"object",additionalProperties:{$recursiveRef:"#"}},propertyNames:{$recursiveRef:"#"},if:{$recursiveRef:"#"},then:{$recursiveRef:"#"},else:{$recursiveRef:"#"},allOf:{$ref:"#/$defs/schemaArray"},anyOf:{$ref:"#/$defs/schemaArray"},oneOf:{$ref:"#/$defs/schemaArray"},not:{$recursiveRef:"#"}},uQe={schemaArray:{type:"array",minItems:1,items:{$recursiveRef:"#"}}},fQe={$schema:nQe,$id:iQe,$vocabulary:aQe,$recursiveAnchor:sQe,title:oQe,type:lQe,properties:cQe,$defs:uQe},pQe="https://json-schema.org/draft/2019-09/schema",hQe="https://json-schema.org/draft/2019-09/meta/content",dQe={"https://json-schema.org/draft/2019-09/vocab/content":!0},mQe=!0,yQe="Content vocabulary meta-schema",gQe=["object","boolean"],vQe={contentMediaType:{type:"string"},contentEncoding:{type:"string"},contentSchema:{$recursiveRef:"#"}},PQe={$schema:pQe,$id:hQe,$vocabulary:dQe,$recursiveAnchor:mQe,title:yQe,type:gQe,properties:vQe},bQe="https://json-schema.org/draft/2019-09/schema",wQe="https://json-schema.org/draft/2019-09/meta/core",$Qe={"https://json-schema.org/draft/2019-09/vocab/core":!0},AQe=!0,SQe="Core vocabulary meta-schema",_Qe=["object","boolean"],xQe={$id:{type:"string",format:"uri-reference",$comment:"Non-empty fragments not allowed.",pattern:"^[^#]*#?$"},$schema:{type:"string",format:"uri"},$anchor:{type:"string",pattern:"^[A-Za-z][-A-Za-z0-9.:_]*$"},$ref:{type:"string",format:"uri-reference"},$recursiveRef:{type:"string",format:"uri-reference"},$recursiveAnchor:{type:"boolean",default:!1},$vocabulary:{type:"object",propertyNames:{type:"string",format:"uri"},additionalProperties:{type:"boolean"}},$comment:{type:"string"},$defs:{type:"object",additionalProperties:{$recursiveRef:"#"},default:{}}},DQe={$schema:bQe,$id:wQe,$vocabulary:$Qe,$recursiveAnchor:AQe,title:SQe,type:_Qe,properties:xQe},kQe="https://json-schema.org/draft/2019-09/schema",OQe="https://json-schema.org/draft/2019-09/meta/format",EQe={"https://json-schema.org/draft/2019-09/vocab/format":!0},IQe=!0,CQe="Format vocabulary meta-schema",TQe=["object","boolean"],jQe={format:{type:"string"}},MQe={$schema:kQe,$id:OQe,$vocabulary:EQe,$recursiveAnchor:IQe,title:CQe,type:TQe,properties:jQe},RQe="https://json-schema.org/draft/2019-09/schema",NQe="https://json-schema.org/draft/2019-09/meta/meta-data",LQe={"https://json-schema.org/draft/2019-09/vocab/meta-data":!0},FQe=!0,qQe="Meta-data vocabulary meta-schema",zQe=["object","boolean"],UQe={title:{type:"string"},description:{type:"string"},default:!0,deprecated:{type:"boolean",default:!1},readOnly:{type:"boolean",default:!1},writeOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0}},BQe={$schema:RQe,$id:NQe,$vocabulary:LQe,$recursiveAnchor:FQe,title:qQe,type:zQe,properties:UQe},VQe="https://json-schema.org/draft/2019-09/schema",WQe="https://json-schema.org/draft/2019-09/meta/validation",HQe={"https://json-schema.org/draft/2019-09/vocab/validation":!0},GQe=!0,KQe="Validation vocabulary meta-schema",YQe=["object","boolean"],JQe={multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/$defs/nonNegativeInteger"},minLength:{$ref:"#/$defs/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},maxItems:{$ref:"#/$defs/nonNegativeInteger"},minItems:{$ref:"#/$defs/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},maxContains:{$ref:"#/$defs/nonNegativeInteger"},minContains:{$ref:"#/$defs/nonNegativeInteger",default:1},maxProperties:{$ref:"#/$defs/nonNegativeInteger"},minProperties:{$ref:"#/$defs/nonNegativeIntegerDefault0"},required:{$ref:"#/$defs/stringArray"},dependentRequired:{type:"object",additionalProperties:{$ref:"#/$defs/stringArray"}},const:!0,enum:{type:"array",items:!0},type:{anyOf:[{$ref:"#/$defs/simpleTypes"},{type:"array",items:{$ref:"#/$defs/simpleTypes"},minItems:1,uniqueItems:!0}]}},QQe={nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{$ref:"#/$defs/nonNegativeInteger",default:0},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},ZQe={$schema:VQe,$id:WQe,$vocabulary:HQe,$recursiveAnchor:GQe,title:KQe,type:YQe,properties:JQe,$defs:QQe};Object.defineProperty(jN,"__esModule",{value:!0});const XQe=rQe,eZe=fQe,tZe=PQe,rZe=DQe,nZe=MQe,iZe=BQe,aZe=ZQe,sZe=["/properties"];function oZe(t){return[XQe,eZe,tZe,rZe,e(this,nZe),iZe,e(this,aZe)].forEach(n=>this.addMetaSchema(n,void 0,!1)),this;function e(n,i){return t?n.$dataMetaSchema(i,sZe):i}}jN.default=oZe;(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.MissingRefError=e.ValidationError=e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=e.Ajv2019=void 0;const n=_f,i=fx,a=Ux,o=Bx,r=Vx,s=o0,c=jN,l="https://json-schema.org/draft/2019-09/schema";class u extends n.default{constructor(b={}){super({...b,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),this.addVocabulary(a.default),i.default.forEach(b=>this.addVocabulary(b)),this.addVocabulary(o.default),this.addVocabulary(r.default),this.opts.discriminator&&this.addKeyword(s.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();const{$data:b,meta:v}=this.opts;v&&(c.default.call(this,b),this.refs["http://json-schema.org/schema"]=l)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(l)?l:void 0)}}e.Ajv2019=u,t.exports=e=u,t.exports.Ajv2019=u,Object.defineProperty(e,"__esModule",{value:!0}),e.default=u;var f=Ka;Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return f.KeywordCxt}});var h=Et;Object.defineProperty(e,"_",{enumerable:!0,get:function(){return h._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return h.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return h.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return h.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return h.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return h.CodeGen}});var d=Mh;Object.defineProperty(e,"ValidationError",{enumerable:!0,get:function(){return d.default}});var m=yu;Object.defineProperty(e,"MissingRefError",{enumerable:!0,get:function(){return m.default}})})(pT,pT.exports);var lZe=pT.exports,hT={exports:{}},MN={};Object.defineProperty(MN,"__esModule",{value:!0});const cZe=px,uZe=hx,fZe=jb,pZe=Ux,hZe=Bx,dZe=Vx,mZe=Mb,KV=Ph,yZe=[pZe.default,cZe.default,uZe.default,(0,fZe.default)(!0),mZe.default,KV.metadataVocabulary,KV.contentVocabulary,hZe.default,dZe.default];MN.default=yZe;var RN={};const gZe="https://json-schema.org/draft/2020-12/schema",vZe="https://json-schema.org/draft/2020-12/schema",PZe={"https://json-schema.org/draft/2020-12/vocab/core":!0,"https://json-schema.org/draft/2020-12/vocab/applicator":!0,"https://json-schema.org/draft/2020-12/vocab/unevaluated":!0,"https://json-schema.org/draft/2020-12/vocab/validation":!0,"https://json-schema.org/draft/2020-12/vocab/meta-data":!0,"https://json-schema.org/draft/2020-12/vocab/format-annotation":!0,"https://json-schema.org/draft/2020-12/vocab/content":!0},bZe="meta",wZe="Core and Validation specifications meta-schema",$Ze=[{$ref:"meta/core"},{$ref:"meta/applicator"},{$ref:"meta/unevaluated"},{$ref:"meta/validation"},{$ref:"meta/meta-data"},{$ref:"meta/format-annotation"},{$ref:"meta/content"}],AZe=["object","boolean"],SZe="This meta-schema also defines keywords that have appeared in previous drafts in order to prevent incompatible extensions as they remain in common use.",_Ze={definitions:{$comment:'"definitions" has been replaced by "$defs".',type:"object",additionalProperties:{$dynamicRef:"#meta"},deprecated:!0,default:{}},dependencies:{$comment:'"dependencies" has been split and replaced by "dependentSchemas" and "dependentRequired" in order to serve their differing semantics.',type:"object",additionalProperties:{anyOf:[{$dynamicRef:"#meta"},{$ref:"meta/validation#/$defs/stringArray"}]},deprecated:!0,default:{}},$recursiveAnchor:{$comment:'"$recursiveAnchor" has been replaced by "$dynamicAnchor".',$ref:"meta/core#/$defs/anchorString",deprecated:!0},$recursiveRef:{$comment:'"$recursiveRef" has been replaced by "$dynamicRef".',$ref:"meta/core#/$defs/uriReferenceString",deprecated:!0}},xZe={$schema:gZe,$id:vZe,$vocabulary:PZe,$dynamicAnchor:bZe,title:wZe,allOf:$Ze,type:AZe,$comment:SZe,properties:_Ze},DZe="https://json-schema.org/draft/2020-12/schema",kZe="https://json-schema.org/draft/2020-12/meta/applicator",OZe={"https://json-schema.org/draft/2020-12/vocab/applicator":!0},EZe="meta",IZe="Applicator vocabulary meta-schema",CZe=["object","boolean"],TZe={prefixItems:{$ref:"#/$defs/schemaArray"},items:{$dynamicRef:"#meta"},contains:{$dynamicRef:"#meta"},additionalProperties:{$dynamicRef:"#meta"},properties:{type:"object",additionalProperties:{$dynamicRef:"#meta"},default:{}},patternProperties:{type:"object",additionalProperties:{$dynamicRef:"#meta"},propertyNames:{format:"regex"},default:{}},dependentSchemas:{type:"object",additionalProperties:{$dynamicRef:"#meta"},default:{}},propertyNames:{$dynamicRef:"#meta"},if:{$dynamicRef:"#meta"},then:{$dynamicRef:"#meta"},else:{$dynamicRef:"#meta"},allOf:{$ref:"#/$defs/schemaArray"},anyOf:{$ref:"#/$defs/schemaArray"},oneOf:{$ref:"#/$defs/schemaArray"},not:{$dynamicRef:"#meta"}},jZe={schemaArray:{type:"array",minItems:1,items:{$dynamicRef:"#meta"}}},MZe={$schema:DZe,$id:kZe,$vocabulary:OZe,$dynamicAnchor:EZe,title:IZe,type:CZe,properties:TZe,$defs:jZe},RZe="https://json-schema.org/draft/2020-12/schema",NZe="https://json-schema.org/draft/2020-12/meta/unevaluated",LZe={"https://json-schema.org/draft/2020-12/vocab/unevaluated":!0},FZe="meta",qZe="Unevaluated applicator vocabulary meta-schema",zZe=["object","boolean"],UZe={unevaluatedItems:{$dynamicRef:"#meta"},unevaluatedProperties:{$dynamicRef:"#meta"}},BZe={$schema:RZe,$id:NZe,$vocabulary:LZe,$dynamicAnchor:FZe,title:qZe,type:zZe,properties:UZe},VZe="https://json-schema.org/draft/2020-12/schema",WZe="https://json-schema.org/draft/2020-12/meta/content",HZe={"https://json-schema.org/draft/2020-12/vocab/content":!0},GZe="meta",KZe="Content vocabulary meta-schema",YZe=["object","boolean"],JZe={contentEncoding:{type:"string"},contentMediaType:{type:"string"},contentSchema:{$dynamicRef:"#meta"}},QZe={$schema:VZe,$id:WZe,$vocabulary:HZe,$dynamicAnchor:GZe,title:KZe,type:YZe,properties:JZe},ZZe="https://json-schema.org/draft/2020-12/schema",XZe="https://json-schema.org/draft/2020-12/meta/core",eXe={"https://json-schema.org/draft/2020-12/vocab/core":!0},tXe="meta",rXe="Core vocabulary meta-schema",nXe=["object","boolean"],iXe={$id:{$ref:"#/$defs/uriReferenceString",$comment:"Non-empty fragments not allowed.",pattern:"^[^#]*#?$"},$schema:{$ref:"#/$defs/uriString"},$ref:{$ref:"#/$defs/uriReferenceString"},$anchor:{$ref:"#/$defs/anchorString"},$dynamicRef:{$ref:"#/$defs/uriReferenceString"},$dynamicAnchor:{$ref:"#/$defs/anchorString"},$vocabulary:{type:"object",propertyNames:{$ref:"#/$defs/uriString"},additionalProperties:{type:"boolean"}},$comment:{type:"string"},$defs:{type:"object",additionalProperties:{$dynamicRef:"#meta"}}},aXe={anchorString:{type:"string",pattern:"^[A-Za-z_][-A-Za-z0-9._]*$"},uriString:{type:"string",format:"uri"},uriReferenceString:{type:"string",format:"uri-reference"}},sXe={$schema:ZZe,$id:XZe,$vocabulary:eXe,$dynamicAnchor:tXe,title:rXe,type:nXe,properties:iXe,$defs:aXe},oXe="https://json-schema.org/draft/2020-12/schema",lXe="https://json-schema.org/draft/2020-12/meta/format-annotation",cXe={"https://json-schema.org/draft/2020-12/vocab/format-annotation":!0},uXe="meta",fXe="Format vocabulary meta-schema for annotation results",pXe=["object","boolean"],hXe={format:{type:"string"}},dXe={$schema:oXe,$id:lXe,$vocabulary:cXe,$dynamicAnchor:uXe,title:fXe,type:pXe,properties:hXe},mXe="https://json-schema.org/draft/2020-12/schema",yXe="https://json-schema.org/draft/2020-12/meta/meta-data",gXe={"https://json-schema.org/draft/2020-12/vocab/meta-data":!0},vXe="meta",PXe="Meta-data vocabulary meta-schema",bXe=["object","boolean"],wXe={title:{type:"string"},description:{type:"string"},default:!0,deprecated:{type:"boolean",default:!1},readOnly:{type:"boolean",default:!1},writeOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0}},$Xe={$schema:mXe,$id:yXe,$vocabulary:gXe,$dynamicAnchor:vXe,title:PXe,type:bXe,properties:wXe},AXe="https://json-schema.org/draft/2020-12/schema",SXe="https://json-schema.org/draft/2020-12/meta/validation",_Xe={"https://json-schema.org/draft/2020-12/vocab/validation":!0},xXe="meta",DXe="Validation vocabulary meta-schema",kXe=["object","boolean"],OXe={type:{anyOf:[{$ref:"#/$defs/simpleTypes"},{type:"array",items:{$ref:"#/$defs/simpleTypes"},minItems:1,uniqueItems:!0}]},const:!0,enum:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/$defs/nonNegativeInteger"},minLength:{$ref:"#/$defs/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},maxItems:{$ref:"#/$defs/nonNegativeInteger"},minItems:{$ref:"#/$defs/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},maxContains:{$ref:"#/$defs/nonNegativeInteger"},minContains:{$ref:"#/$defs/nonNegativeInteger",default:1},maxProperties:{$ref:"#/$defs/nonNegativeInteger"},minProperties:{$ref:"#/$defs/nonNegativeIntegerDefault0"},required:{$ref:"#/$defs/stringArray"},dependentRequired:{type:"object",additionalProperties:{$ref:"#/$defs/stringArray"}}},EXe={nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{$ref:"#/$defs/nonNegativeInteger",default:0},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},IXe={$schema:AXe,$id:SXe,$vocabulary:_Xe,$dynamicAnchor:xXe,title:DXe,type:kXe,properties:OXe,$defs:EXe};Object.defineProperty(RN,"__esModule",{value:!0});const CXe=xZe,TXe=MZe,jXe=BZe,MXe=QZe,RXe=sXe,NXe=dXe,LXe=$Xe,FXe=IXe,qXe=["/properties"];function zXe(t){return[CXe,TXe,jXe,MXe,RXe,e(this,NXe),LXe,e(this,FXe)].forEach(n=>this.addMetaSchema(n,void 0,!1)),this;function e(n,i){return t?n.$dataMetaSchema(i,qXe):i}}RN.default=zXe;(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.MissingRefError=e.ValidationError=e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=e.Ajv2020=void 0;const n=_f,i=MN,a=o0,o=RN,r="https://json-schema.org/draft/2020-12/schema";class s extends n.default{constructor(d={}){super({...d,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),i.default.forEach(d=>this.addVocabulary(d)),this.opts.discriminator&&this.addKeyword(a.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();const{$data:d,meta:m}=this.opts;m&&(o.default.call(this,d),this.refs["http://json-schema.org/schema"]=r)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(r)?r:void 0)}}e.Ajv2020=s,t.exports=e=s,t.exports.Ajv2020=s,Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;var c=Ka;Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return c.KeywordCxt}});var l=Et;Object.defineProperty(e,"_",{enumerable:!0,get:function(){return l._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return l.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return l.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return l.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return l.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return l.CodeGen}});var u=Mh;Object.defineProperty(e,"ValidationError",{enumerable:!0,get:function(){return u.default}});var f=yu;Object.defineProperty(e,"MissingRefError",{enumerable:!0,get:function(){return f.default}})})(hT,hT.exports);var UXe=hT.exports,dT={exports:{}},NN={},LN={};Object.defineProperty(LN,"__esModule",{value:!0});const BXe=Kl,VXe=["$schema","id","$defs",{keyword:"$comment"},"definitions",BXe.default];LN.default=VXe;var FN={},qN={};Object.defineProperty(qN,"__esModule",{value:!0});const mT=_f,WXe=Et,Bu=WXe.operators,yT={maximum:{exclusive:"exclusiveMaximum",ops:[{okStr:"<=",ok:Bu.LTE,fail:Bu.GT},{okStr:"<",ok:Bu.LT,fail:Bu.GTE}]},minimum:{exclusive:"exclusiveMinimum",ops:[{okStr:">=",ok:Bu.GTE,fail:Bu.LT},{okStr:">",ok:Bu.GT,fail:Bu.LTE}]}},HXe={message:t=>mT.str`must be ${gT(t).okStr} ${t.schemaCode}`,params:t=>mT._`{comparison: ${gT(t).okStr}, limit: ${t.schemaCode}}`},GXe={keyword:Object.keys(yT),type:"number",schemaType:"number",$data:!0,error:HXe,code(t){const{data:e,schemaCode:n}=t;t.fail$data(mT._`${e} ${gT(t).fail} ${n} || isNaN(${e})`)}};function gT(t){var e;const n=t.keyword,i=!((e=t.parentSchema)===null||e===void 0)&&e[yT[n].exclusive]?1:0;return yT[n].ops[i]}qN.default=GXe;var zN={};Object.defineProperty(zN,"__esModule",{value:!0});const YV={exclusiveMaximum:"maximum",exclusiveMinimum:"minimum"},KXe={keyword:Object.keys(YV),type:"number",schemaType:"boolean",code({keyword:t,parentSchema:e}){const n=YV[t];if(e[n]===void 0)throw new Error(`${t} can only be used with ${n}`)}};zN.default=KXe;Object.defineProperty(FN,"__esModule",{value:!0});const YXe=qN,JXe=zN,QXe=dx,ZXe=mx,XXe=yx,eet=gx,tet=vx,ret=Px,net=bx,iet=wx,aet=$x,set=[YXe.default,JXe.default,QXe.default,ZXe.default,XXe.default,eet.default,tet.default,ret.default,net.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},iet.default,aet.default];FN.default=set;Object.defineProperty(NN,"__esModule",{value:!0});const oet=LN,cet=FN,uet=jb,fet=Mb,pet=["title","description","default"],het=[oet.default,cet.default,uet.default(),fet.default,pet];NN.default=het;const det="http://json-schema.org/draft-04/schema#",met="http://json-schema.org/draft-04/schema#",yet="Core schema meta-schema",get={schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},positiveInteger:{type:"integer",minimum:0},positiveIntegerDefault0:{allOf:[{$ref:"#/definitions/positiveInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0}},vet="object",Pet={id:{type:"string",format:"uri"},$schema:{type:"string",format:"uri"},title:{type:"string"},description:{type:"string"},default:{},multipleOf:{type:"number",minimum:0,exclusiveMinimum:!0},maximum:{type:"number"},exclusiveMaximum:{type:"boolean",default:!1},minimum:{type:"number"},exclusiveMinimum:{type:"boolean",default:!1},maxLength:{$ref:"#/definitions/positiveInteger"},minLength:{$ref:"#/definitions/positiveIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{anyOf:[{type:"boolean"},{$ref:"#"}],default:{}},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:{}},maxItems:{$ref:"#/definitions/positiveInteger"},minItems:{$ref:"#/definitions/positiveIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},maxProperties:{$ref:"#/definitions/positiveInteger"},minProperties:{$ref:"#/definitions/positiveIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{anyOf:[{type:"boolean"},{$ref:"#"}],default:{}},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},enum:{type:"array",minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},bet={exclusiveMaximum:["maximum"],exclusiveMinimum:["minimum"]},wet={id:det,$schema:met,description:yet,definitions:get,type:vet,properties:Pet,dependencies:bet,default:{}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=void 0;const n=_f,i=NN,a=o0,o=wet,r=["/properties"],s="http://json-schema.org/draft-04/schema";class c extends n.default{constructor(h={}){super({...h,schemaId:"id"})}_addVocabularies(){super._addVocabularies(),i.default.forEach(h=>this.addVocabulary(h)),this.opts.discriminator&&this.addKeyword(a.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const h=this.opts.$data?this.$dataMetaSchema(o,r):o;this.addMetaSchema(h,s,!1),this.refs["http://json-schema.org/schema"]=s}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(s)?s:void 0)}}t.exports=e=c,Object.defineProperty(e,"__esModule",{value:!0}),e.default=c;var l=_f;Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return l.KeywordCxt}});var u=_f;Object.defineProperty(e,"_",{enumerable:!0,get:function(){return u._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return u.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return u.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return u.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return u.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return u.CodeGen}})})(dT,dT.exports);var $et=dT.exports,vT={exports:{}},Ere={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.formatNames=t.fastFormats=t.fullFormats=void 0;function e(I,L){return{validate:I,compare:L}}t.fullFormats={date:e(o,r),time:e(c,l),"date-time":e(f,h),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:g,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:F,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:v,int32:{type:"number",validate:_},int64:{type:"number",validate:x},float:{type:"number",validate:E},double:{type:"number",validate:E},password:!0,binary:!0},t.fastFormats={...t.fullFormats,date:e(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,r),time:e(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,l),"date-time":e(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,h),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i},t.formatNames=Object.keys(t.fullFormats);function n(I){return I%4===0&&(I%100!==0||I%400===0)}const i=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,a=[0,31,28,31,30,31,30,31,31,30,31,30,31];function o(I){const L=i.exec(I);if(!L)return!1;const V=+L[1],q=+L[2],S=+L[3];return q>=1&&q<=12&&S>=1&&S<=(q===2&&n(V)?29:a[q])}function r(I,L){if(I&&L)return I>L?1:IL?1:I=P}function x(I){return Number.isInteger(I)}function E(){return!0}const j=/[^\\]\\Z/;function F(I){if(j.test(I))return!1;try{return new RegExp(I),!0}catch{return!1}}})(Ere);var Ire={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.formatLimitDefinition=void 0;const e=l0,n=Et,i=n.operators,a={formatMaximum:{okStr:"<=",ok:i.LTE,fail:i.GT},formatMinimum:{okStr:">=",ok:i.GTE,fail:i.LT},formatExclusiveMaximum:{okStr:"<",ok:i.LT,fail:i.GTE},formatExclusiveMinimum:{okStr:">",ok:i.GT,fail:i.LTE}},o={message:({keyword:s,schemaCode:c})=>n.str`should be ${a[s].okStr} ${c}`,params:({keyword:s,schemaCode:c})=>n._`{comparison: ${a[s].okStr}, limit: ${c}}`};t.formatLimitDefinition={keyword:Object.keys(a),type:"string",schemaType:"string",$data:!0,error:o,code(s){const{gen:c,data:l,schemaCode:u,keyword:f,it:h}=s,{opts:d,self:m}=h;if(!d.validateFormats)return;const g=new e.KeywordCxt(h,m.RULES.all.format.definition,"format");g.$data?b():v();function b(){const A=c.scopeValue("formats",{ref:m.formats,code:d.code.formats}),_=c.const("fmt",n._`${A}[${g.schemaCode}]`);s.fail$data(n.or(n._`typeof ${_} != "object"`,n._`${_} instanceof RegExp`,n._`typeof ${_}.compare != "function"`,P(_)))}function v(){const A=g.schema,_=m.formats[A];if(!_||_===!0)return;if(typeof _!="object"||_ instanceof RegExp||typeof _.compare!="function")throw new Error(`"${f}": format "${A}" does not define "compare" function`);const x=c.scopeValue("formats",{key:A,ref:_,code:d.code.formats?n._`${d.code.formats}${n.getProperty(A)}`:void 0});s.fail$data(P(x))}function P(A){return n._`${A}.compare(${l}, ${u}) ${a[f].fail} 0`}},dependencies:["format"]};const r=s=>(s.addKeyword(t.formatLimitDefinition),s);t.default=r})(Ire);(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});const n=Ere,i=Ire,a=Et,o=new a.Name("fullFormats"),r=new a.Name("fastFormats"),s=(l,u={keywords:!0})=>{if(Array.isArray(u))return c(l,u,n.fullFormats,o),l;const[f,h]=u.mode==="fast"?[n.fastFormats,r]:[n.fullFormats,o],d=u.formats||n.formatNames;return c(l,d,f,h),u.keywords&&i.default(l),l};s.get=(l,u="full")=>{const h=(u==="fast"?n.fastFormats:n.fullFormats)[l];if(!h)throw new Error(`Unknown format "${l}"`);return h};function c(l,u,f,h){var d,m;(d=(m=l.opts.code).formats)!==null&&d!==void 0||(m.formats=a._`require("ajv-formats/dist/formats").${h}`);for(const g of u)l.addFormat(g,f[g])}t.exports=e=s,Object.defineProperty(e,"__esModule",{value:!0}),e.default=s})(vT,vT.exports);var Aet=vT.exports;const _et="http://json-schema.org/draft-06/schema#",xet="http://json-schema.org/draft-06/schema#",Det="Core schema meta-schema",ket={schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},Oet=["object","boolean"],Eet={$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},title:{type:"string"},description:{type:"string"},default:{},examples:{type:"array",items:{}},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:{}},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:{},enum:{type:"array",minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},Iet={$schema:_et,$id:xet,title:Det,definitions:ket,type:Oet,properties:Eet,default:{}},Cet="http://json-schema.org/draft-04/schema#",Tet="http://json-schema.org/draft-07/schema#",jet="Core schema meta-schema",Met={schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},positiveInteger:{type:"integer",minimum:0},positiveIntegerDefault0:{allOf:[{$ref:"#/definitions/positiveInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0}},Ret="object",Net={id:{type:"string",format:"uri"},$schema:{type:"string",format:"uri"},title:{type:"string"},description:{type:"string"},deprecationMessage:{type:"string",description:"Non-standard: deprecation message for a property, if it is deprecated"},default:{},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"boolean",default:!1},minimum:{type:"number"},exclusiveMinimum:{type:"boolean",default:!1},maxLength:{$ref:"#/definitions/positiveInteger"},minLength:{$ref:"#/definitions/positiveIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{anyOf:[{type:"boolean"},{$ref:"#"}],default:{}},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:{}},maxItems:{$ref:"#/definitions/positiveInteger"},minItems:{$ref:"#/definitions/positiveIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},maxProperties:{$ref:"#/definitions/positiveInteger"},minProperties:{$ref:"#/definitions/positiveIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{anyOf:[{type:"boolean"},{$ref:"#"}],default:{}},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},enum:{type:"array",minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},Let={$id:Cet,$schema:Tet,description:jet,definitions:Met,type:Ret,properties:Net,default:{}};Object.defineProperty(zx,"__esModule",{value:!0});zx.createAjvInstances=void 0;const Vf=vr,Cre=(0,Vf.__importDefault)(l0),Fet=(0,Vf.__importDefault)(lZe),qet=(0,Vf.__importDefault)(UXe),zet=(0,Vf.__importDefault)($et),Uet=(0,Vf.__importDefault)(Aet),Bet=(0,Vf.__importDefault)(lN),Vet=(0,Vf.__importStar)(Iet),Wet=(0,Vf.__importStar)(Let),Het={warn(...t){const e=t[0];if(typeof e=="string"){if(e.startsWith("unknown format"))return;console.warn(...t)}},log:console.log,error:console.error};function JV(t,e){const n=new t({allErrors:e,meta:!0,messages:!0,strict:!1,allowUnionTypes:!0,logger:Het,unicodeRegExp:!1});return(0,Uet.default)(n),e&&(0,Bet.default)(n),t===Cre.default&&(n.addSchema(Wet),n.addSchema(Vet)),n}function Zw(t){let e,n;return{get default(){return e??(e=JV(t,!1)),e},get allErrors(){return n??(n=JV(t,!0)),n}}}function Get(){const t={auto:Zw(Cre.default),draft4:Zw(zet.default),"draft2019-09":Zw(Fet.default),"draft2020-12":Zw(qet.default)},e=new WeakMap;return function(n,i,a){var o,r,s,c;const u=((o=t[i])!==null&&o!==void 0?o:t.auto)[a?"allErrors":"default"],f=n.$id;if(typeof f=="string")return(r=u.getSchema(f))!==null&&r!==void 0?r:u.compile(n);{const h=(s=e.get(u))!==null&&s!==void 0?s:e.set(u,new WeakMap).get(u);return(c=h.get(n))!==null&&c!==void 0?c:h.set(n,u.compile(n)).get(n)}}}zx.createAjvInstances=Get;Object.defineProperty(SN,"__esModule",{value:!0});const Tre=vr,Ket=(0,Tre.__importDefault)(dJe),Yet=cl,Jet=zx,Qet=(0,Tre.__importDefault)(yu),Zet=Tr(),Xet=ir,ett=Da,QV=new WeakMap;SN.default=(0,Zet.createRulesetFunction)({input:null,options:ett.optionSchemas.schema},function(e,n,{path:i,rule:a,documentInventory:o}){var r,s,c;if(e===void 0)return[{path:i,message:'#{{print("property")}}must exist'}];const l=(r=QV.get(o))!==null&&r!==void 0?r:QV.set(o,(0,Jet.createAjvInstances)()).get(o),u=[],{allErrors:f=!1,schema:h}=n;try{const d=(s=n.dialect===void 0||n.dialect==="auto"?(0,Yet.detectDialect)(h):n==null?void 0:n.dialect)!==null&&s!==void 0?s:"draft7",m=l(h,d,f);(m==null?void 0:m(e))===!1&&Array.isArray(m.errors)&&((c=n.prepareResults)===null||c===void 0||c.call(n,m.errors),u.push(...(0,Ket.default)(h,m.errors,{propertyPath:i,targetValue:e}).map(({suggestion:g,error:b,path:v})=>({message:g!==void 0?`${b}. ${g}`:b,path:[...i,...v!==""?v.replace(/^\//,"").split("/"):[]]}))))}catch(d){if(!(0,Xet.isError)(d))throw new Error("Unexpected error");(a==null?void 0:a.resolved)&&d instanceof Qet.default||u.push({message:d.message,path:i})}return u});var UN={};Object.defineProperty(UN,"__esModule",{value:!0});const ttt=Tr(),rtt=Da;UN.default=(0,ttt.createRulesetFunction)({input:null,options:rtt.optionSchemas.truthy},function(e){if(!e)return[{message:'#{{print("property")}}must be truthy'}]});var BN={};Object.defineProperty(BN,"__esModule",{value:!0});const ntt=Tr(),itt=Da;BN.default=(0,ntt.createRulesetFunction)({input:null,options:itt.optionSchemas.undefined},function(e){if(typeof e<"u")return[{message:'#{{print("property")}}must be undefined'}]});var VN={};Object.defineProperty(VN,"__esModule",{value:!0});const att=Tr(),stt=Ya,ott=Hr,ltt=Da;VN.default=(0,att.createRulesetFunction)({input:{type:"object"},options:ltt.optionSchemas.unreferencedReusableObject},function(e,n,{document:i,documentInventory:a}){var o;const r=a.graph;if(r===null)throw new Error("unreferencedReusableObject requires dependency graph");const s=(o=i.source)!==null&&o!==void 0?o:"",c=Object.keys(e).map(f=>`${s}${n.reusableObjectsLocation}/${f}`),l=new Set(r.overallOrder().map(f=>(0,ott.decodePointer)(f)));return c.filter(f=>!l.has(f)).map(f=>({message:"Potential orphaned reusable object has been detected",path:(0,stt.safePointerToPath)(f)}))});var WN={};Object.defineProperty(WN,"__esModule",{value:!0});const ctt=Tr(),utt=Ya,ftt=Da;WN.default=(0,ctt.createRulesetFunction)({input:{type:"object"},options:ftt.optionSchemas.xor},function(e,{properties:n}){const i=[];if(Object.keys(e).filter(o=>n.includes(o)).length!==1){const o=n.map(c=>(0,utt.printValue)(c)),r=o.pop();let s=o.join(", ")+(r!=null?` and ${r}`:"");s+=" must not be both defined or both undefined",i.push({message:s})}return i});(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.xor=t.unreferencedReusableObject=t.undefined=t.truthy=t.schema=t.pattern=t.length=t.falsy=t.enumeration=t.defined=t.casing=t.alphabetical=void 0;const e=vr,n=(0,e.__importDefault)(gN);Object.defineProperty(t,"alphabetical",{enumerable:!0,get:function(){return n.default}});const i=(0,e.__importDefault)(mre);Object.defineProperty(t,"casing",{enumerable:!0,get:function(){return i.default}});const a=(0,e.__importDefault)(PN);Object.defineProperty(t,"defined",{enumerable:!0,get:function(){return a.default}});const o=(0,e.__importDefault)(bN);Object.defineProperty(t,"enumeration",{enumerable:!0,get:function(){return o.default}});const r=(0,e.__importDefault)(wN);Object.defineProperty(t,"falsy",{enumerable:!0,get:function(){return r.default}});const s=(0,e.__importDefault)($N);Object.defineProperty(t,"length",{enumerable:!0,get:function(){return s.default}});const c=(0,e.__importDefault)(AN);Object.defineProperty(t,"pattern",{enumerable:!0,get:function(){return c.default}});const l=(0,e.__importDefault)(SN);Object.defineProperty(t,"schema",{enumerable:!0,get:function(){return l.default}});const u=(0,e.__importDefault)(UN);Object.defineProperty(t,"truthy",{enumerable:!0,get:function(){return u.default}});const f=(0,e.__importDefault)(BN);Object.defineProperty(t,"undefined",{enumerable:!0,get:function(){return f.default}});const h=(0,e.__importDefault)(VN);Object.defineProperty(t,"unreferencedReusableObject",{enumerable:!0,get:function(){return h.default}});const d=(0,e.__importDefault)(WN);Object.defineProperty(t,"xor",{enumerable:!0,get:function(){return d.default}})})(na);var eb={},HN={},$o={};Object.defineProperty($o,"__esModule",{value:!0});$o.isObject=void 0;function ptt(t){return t!==null&&typeof t=="object"}$o.isObject=ptt;Object.defineProperty(HN,"__esModule",{value:!0});const htt=$o,dtt=Tr();function mtt(t){return`${String(t.in)}-${String(t.name)}`}HN.default=(0,dtt.createRulesetFunction)({input:{type:"array"},options:null},function(e,n,{path:i}){if(!Array.isArray(e)||e.length<2)return;const a=[],o={body:[],formData:[]},r=[],s=[];let c=-1;for(const l of e){if(c++,!(0,htt.isObject)(l)||"$ref"in l)continue;const u=mtt(l);r.includes(u)?s.push(c):r.push(u),typeof l.in=="string"&&l.in in o&&o[l.in].push(c)}if(s.length>0)for(const l of s)a.push({message:'A parameter in this operation already exposes the same combination of "name" and "in" values.',path:[...i,l]});if(o.body.length>0&&o.formData.length>0&&a.push({message:'Operation must not have both "in:body" and "in:formData" parameters.'}),o.body.length>1)for(let l=1;l{t["x-nullable"]===!0&&(t.nullable=!0,delete t["x-nullable"])};function wtt(t,e){const n=(0,kS.pointerToPath)(e);let i=t;for(const a of n.slice(0,-1)){if(!(0,kS.isPlainObject)(i))return;i=i[a]}return i}var GN={},Ll={},KN={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.formatNames=t.fastFormats=t.fullFormats=void 0;function e(I,L){return{validate:I,compare:L}}t.fullFormats={date:e(o,r),time:e(c,l),"date-time":e(f,h),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:g,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:F,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:v,int32:{type:"number",validate:_},int64:{type:"number",validate:x},float:{type:"number",validate:E},double:{type:"number",validate:E},password:!0,binary:!0},t.fastFormats={...t.fullFormats,date:e(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,r),time:e(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,l),"date-time":e(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,h),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i},t.formatNames=Object.keys(t.fullFormats);function n(I){return I%4===0&&(I%100!==0||I%400===0)}const i=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,a=[0,31,28,31,30,31,30,31,31,30,31,30,31];function o(I){const L=i.exec(I);if(!L)return!1;const V=+L[1],q=+L[2],S=+L[3];return q>=1&&q<=12&&S>=1&&S<=(q===2&&n(V)?29:a[q])}function r(I,L){if(I&&L)return I>L?1:IL?1:I=P}function x(I){return Number.isInteger(I)}function E(){return!0}const j=/[^\\]\\Z/;function F(I){if(j.test(I))return!1;try{return new RegExp(I),!0}catch{return!1}}})(KN);Object.defineProperty(Ll,"__esModule",{value:!0});Ll.arazzo1_0=Ll.oas3_1=Ll.oas3_0=Ll.oas2_0=void 0;Ll.oas2_0=OS;const XV={title:"A JSON Schema for Swagger 2.0 API.",$id:"http://swagger.io/v2/schema.json#",$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",required:["swagger","info","paths"],additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{swagger:{type:"string",enum:["2.0"],description:"The Swagger version of this document."},info:{$ref:"#/definitions/info"},host:{type:"string",pattern:"^[^{}/ :\\\\]+(?::\\d+)?$",description:"The host (name or ip) of the API. Example: 'swagger.io'"},basePath:{type:"string",pattern:"^/",description:"The base path to the API. Example: '/api'."},schemes:{$ref:"#/definitions/schemesList"},consumes:{description:"A list of MIME types accepted by the API.",allOf:[{$ref:"#/definitions/mediaTypeList"}]},produces:{description:"A list of MIME types the API can produce.",allOf:[{$ref:"#/definitions/mediaTypeList"}]},paths:{$ref:"#/definitions/paths"},definitions:{$ref:"#/definitions/definitions"},parameters:{$ref:"#/definitions/parameterDefinitions"},responses:{$ref:"#/definitions/responseDefinitions"},security:{$ref:"#/definitions/security"},securityDefinitions:{$ref:"#/definitions/securityDefinitions"},tags:{type:"array",items:{$ref:"#/definitions/tag"},uniqueItems:!0},externalDocs:{$ref:"#/definitions/externalDocs"}},definitions:{info:{type:"object",description:"General information about the API.",required:["version","title"],additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{title:{type:"string",description:"A unique and precise title of the API."},version:{type:"string",description:"A semantic version number of the API."},description:{type:"string",description:"A longer description of the API. Should be different from the title. GitHub Flavored Markdown is allowed."},termsOfService:{type:"string",description:"The terms of service for the API."},contact:{$ref:"#/definitions/contact"},license:{$ref:"#/definitions/license"}}},contact:{type:"object",description:"Contact information for the owners of the API.",additionalProperties:!1,properties:{name:{type:"string",description:"The identifying name of the contact person/organization."},url:{type:"string",description:"The URL pointing to the contact information.",format:"uri"},email:{type:"string",description:"The email address of the contact person/organization.",format:"email"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},license:{type:"object",required:["name"],additionalProperties:!1,properties:{name:{type:"string",description:"The name of the license type. It's encouraged to use an OSI compatible license."},url:{type:"string",description:"The URL pointing to the license.",format:"uri"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},paths:{type:"object",description:"Relative paths to the individual endpoints. They must be relative to the 'basePath'.",patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"},"^/":{$ref:"#/definitions/pathItem"}},additionalProperties:!1},definitions:{type:"object",additionalProperties:{$ref:"#/definitions/schema"},description:"One or more JSON objects describing the schemas being consumed and produced by the API."},parameterDefinitions:{type:"object",additionalProperties:{$ref:"#/definitions/parameter"},description:"One or more JSON representations for parameters"},responseDefinitions:{type:"object",additionalProperties:{$ref:"#/definitions/response"},description:"One or more JSON representations for responses"},externalDocs:{type:"object",additionalProperties:!1,description:"information about external documentation",required:["url"],properties:{description:{type:"string"},url:{type:"string",format:"uri"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},examples:{type:"object",additionalProperties:!0},mimeType:{type:"string",description:"The MIME type of the HTTP message."},operation:{type:"object",required:["responses"],additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{tags:{type:"array",items:{type:"string"},uniqueItems:!0},summary:{type:"string",description:"A brief summary of the operation."},description:{type:"string",description:"A longer description of the operation, GitHub Flavored Markdown is allowed."},externalDocs:{$ref:"#/definitions/externalDocs"},operationId:{type:"string",description:"A unique identifier of the operation."},produces:{description:"A list of MIME types the API can produce.",allOf:[{$ref:"#/definitions/mediaTypeList"}]},consumes:{description:"A list of MIME types the API can consume.",allOf:[{$ref:"#/definitions/mediaTypeList"}]},parameters:{$ref:"#/definitions/parametersList"},responses:{$ref:"#/definitions/responses"},schemes:{$ref:"#/definitions/schemesList"},deprecated:{type:"boolean",default:!1},security:{$ref:"#/definitions/security"}}},pathItem:{type:"object",additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{$ref:{type:"string"},get:{$ref:"#/definitions/operation"},put:{$ref:"#/definitions/operation"},post:{$ref:"#/definitions/operation"},delete:{$ref:"#/definitions/operation"},options:{$ref:"#/definitions/operation"},head:{$ref:"#/definitions/operation"},patch:{$ref:"#/definitions/operation"},parameters:{$ref:"#/definitions/parametersList"}}},responses:{type:"object",description:"Response objects names can either be any valid HTTP status code or 'default'.",minProperties:1,additionalProperties:!1,patternProperties:{"^([0-9]{3})$|^(default)$":{$ref:"#/definitions/responseValue"},"^x-":{$ref:"#/definitions/vendorExtension"}},not:{type:"object",additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}}},responseValue:{if:{type:"object",required:["$ref"]},then:{$ref:"#/definitions/jsonReference"},else:{$ref:"#/definitions/response"}},response:{type:"object",required:["description"],properties:{description:{type:"string"},schema:{oneOf:[{$ref:"#/definitions/schema"},{$ref:"#/definitions/fileSchema"}]},headers:{$ref:"#/definitions/headers"},examples:{$ref:"#/definitions/examples"}},additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},headers:{type:"object",additionalProperties:{$ref:"#/definitions/header"}},header:{type:"object",additionalProperties:!1,required:["type"],properties:{type:{type:"string",enum:["string","number","integer","boolean","array"]},format:{type:"string"},items:{$ref:"#/definitions/primitivesItems"},collectionFormat:{$ref:"#/definitions/collectionFormat"},default:{$ref:"#/definitions/default"},maximum:{$ref:"#/definitions/maximum"},exclusiveMaximum:{$ref:"#/definitions/exclusiveMaximum"},minimum:{$ref:"#/definitions/minimum"},exclusiveMinimum:{$ref:"#/definitions/exclusiveMinimum"},maxLength:{$ref:"#/definitions/maxLength"},minLength:{$ref:"#/definitions/minLength"},pattern:{$ref:"#/definitions/pattern"},maxItems:{$ref:"#/definitions/maxItems"},minItems:{$ref:"#/definitions/minItems"},uniqueItems:{$ref:"#/definitions/uniqueItems"},enum:{$ref:"#/definitions/enum"},multipleOf:{$ref:"#/definitions/multipleOf"},description:{type:"string"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},vendorExtension:{description:"Any property starting with x- is valid.",additionalProperties:!0,additionalItems:!0},bodyParameter:{type:"object",required:["name","in","schema"],patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{description:{type:"string",description:"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},name:{type:"string",description:"The name of the parameter."},in:{type:"string",description:"Determines the location of the parameter.",enum:["body"]},required:{type:"boolean",description:"Determines whether or not this parameter is required or optional.",default:!1},schema:{$ref:"#/definitions/schema"}},additionalProperties:!1},headerParameterSubSchema:{additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{required:{type:"boolean",description:"Determines whether or not this parameter is required or optional.",default:!1},in:{type:"string",description:"Determines the location of the parameter.",enum:["header"]},description:{type:"string",description:"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},name:{type:"string",description:"The name of the parameter."},type:{type:"string",enum:["string","number","boolean","integer","array"]},format:{type:"string"},items:{$ref:"#/definitions/primitivesItems"},collectionFormat:{$ref:"#/definitions/collectionFormat"},default:{$ref:"#/definitions/default"},maximum:{$ref:"#/definitions/maximum"},exclusiveMaximum:{$ref:"#/definitions/exclusiveMaximum"},minimum:{$ref:"#/definitions/minimum"},exclusiveMinimum:{$ref:"#/definitions/exclusiveMinimum"},maxLength:{$ref:"#/definitions/maxLength"},minLength:{$ref:"#/definitions/minLength"},pattern:{$ref:"#/definitions/pattern"},maxItems:{$ref:"#/definitions/maxItems"},minItems:{$ref:"#/definitions/minItems"},uniqueItems:{$ref:"#/definitions/uniqueItems"},enum:{$ref:"#/definitions/enum"},multipleOf:{$ref:"#/definitions/multipleOf"}}},queryParameterSubSchema:{additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{required:{type:"boolean",description:"Determines whether or not this parameter is required or optional.",default:!1},in:{type:"string",description:"Determines the location of the parameter.",enum:["query"]},description:{type:"string",description:"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},name:{type:"string",description:"The name of the parameter."},allowEmptyValue:{type:"boolean",default:!1,description:"allows sending a parameter by name only or with an empty value."},type:{type:"string",enum:["string","number","boolean","integer","array"]},format:{type:"string"},items:{$ref:"#/definitions/primitivesItems"},collectionFormat:{$ref:"#/definitions/collectionFormatWithMulti"},default:{$ref:"#/definitions/default"},maximum:{$ref:"#/definitions/maximum"},exclusiveMaximum:{$ref:"#/definitions/exclusiveMaximum"},minimum:{$ref:"#/definitions/minimum"},exclusiveMinimum:{$ref:"#/definitions/exclusiveMinimum"},maxLength:{$ref:"#/definitions/maxLength"},minLength:{$ref:"#/definitions/minLength"},pattern:{$ref:"#/definitions/pattern"},maxItems:{$ref:"#/definitions/maxItems"},minItems:{$ref:"#/definitions/minItems"},uniqueItems:{$ref:"#/definitions/uniqueItems"},enum:{$ref:"#/definitions/enum"},multipleOf:{$ref:"#/definitions/multipleOf"}}},formDataParameterSubSchema:{additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{required:{type:"boolean",description:"Determines whether or not this parameter is required or optional.",default:!1},in:{type:"string",description:"Determines the location of the parameter.",enum:["formData"]},description:{type:"string",description:"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},name:{type:"string",description:"The name of the parameter."},allowEmptyValue:{type:"boolean",default:!1,description:"allows sending a parameter by name only or with an empty value."},type:{type:"string",enum:["string","number","boolean","integer","array","file"]},format:{type:"string"},items:{$ref:"#/definitions/primitivesItems"},collectionFormat:{$ref:"#/definitions/collectionFormatWithMulti"},default:{$ref:"#/definitions/default"},maximum:{$ref:"#/definitions/maximum"},exclusiveMaximum:{$ref:"#/definitions/exclusiveMaximum"},minimum:{$ref:"#/definitions/minimum"},exclusiveMinimum:{$ref:"#/definitions/exclusiveMinimum"},maxLength:{$ref:"#/definitions/maxLength"},minLength:{$ref:"#/definitions/minLength"},pattern:{$ref:"#/definitions/pattern"},maxItems:{$ref:"#/definitions/maxItems"},minItems:{$ref:"#/definitions/minItems"},uniqueItems:{$ref:"#/definitions/uniqueItems"},enum:{$ref:"#/definitions/enum"},multipleOf:{$ref:"#/definitions/multipleOf"}}},pathParameterSubSchema:{additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},required:["required"],properties:{required:{type:"boolean",enum:[!0],description:"Determines whether or not this parameter is required or optional."},in:{type:"string",description:"Determines the location of the parameter.",enum:["path"]},description:{type:"string",description:"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},name:{type:"string",description:"The name of the parameter."},type:{type:"string",enum:["string","number","boolean","integer","array"]},format:{type:"string"},items:{$ref:"#/definitions/primitivesItems"},collectionFormat:{$ref:"#/definitions/collectionFormat"},default:{$ref:"#/definitions/default"},maximum:{$ref:"#/definitions/maximum"},exclusiveMaximum:{$ref:"#/definitions/exclusiveMaximum"},minimum:{$ref:"#/definitions/minimum"},exclusiveMinimum:{$ref:"#/definitions/exclusiveMinimum"},maxLength:{$ref:"#/definitions/maxLength"},minLength:{$ref:"#/definitions/minLength"},pattern:{$ref:"#/definitions/pattern"},maxItems:{$ref:"#/definitions/maxItems"},minItems:{$ref:"#/definitions/minItems"},uniqueItems:{$ref:"#/definitions/uniqueItems"},enum:{$ref:"#/definitions/enum"},multipleOf:{$ref:"#/definitions/multipleOf"}}},nonBodyParameter:{type:"object",required:["name","in","type"],oneOf:[{$ref:"#/definitions/headerParameterSubSchema"},{$ref:"#/definitions/formDataParameterSubSchema"},{$ref:"#/definitions/queryParameterSubSchema"},{$ref:"#/definitions/pathParameterSubSchema"}]},parameter:{oneOf:[{$ref:"#/definitions/bodyParameter"},{$ref:"#/definitions/nonBodyParameter"}]},schema:{type:"object",description:"A deterministic version of a JSON Schema object.",patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{$ref:{type:"string"},format:{type:"string"},title:{$ref:"http://json-schema.org/draft-04/schema#/properties/title"},description:{$ref:"http://json-schema.org/draft-04/schema#/properties/description"},default:{$ref:"http://json-schema.org/draft-04/schema#/properties/default"},multipleOf:{$ref:"http://json-schema.org/draft-04/schema#/properties/multipleOf"},maximum:{$ref:"http://json-schema.org/draft-04/schema#/properties/maximum"},exclusiveMaximum:{$ref:"http://json-schema.org/draft-04/schema#/properties/exclusiveMaximum"},minimum:{$ref:"http://json-schema.org/draft-04/schema#/properties/minimum"},exclusiveMinimum:{$ref:"http://json-schema.org/draft-04/schema#/properties/exclusiveMinimum"},maxLength:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},minLength:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},pattern:{$ref:"http://json-schema.org/draft-04/schema#/properties/pattern"},maxItems:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},minItems:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},uniqueItems:{$ref:"http://json-schema.org/draft-04/schema#/properties/uniqueItems"},maxProperties:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},minProperties:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},required:{$ref:"http://json-schema.org/draft-04/schema#/definitions/stringArray"},enum:{$ref:"http://json-schema.org/draft-04/schema#/properties/enum"},additionalProperties:{if:{type:"object"},then:{$ref:"#/definitions/schema"},else:{if:{type:"boolean"},then:!0,else:{not:!0,errorMessage:'"additionalProperties" property must be a valid schema'}},default:{}},type:{$ref:"http://json-schema.org/draft-04/schema#/properties/type"},items:{anyOf:[{$ref:"#/definitions/schema"},{type:"array",minItems:1,items:{$ref:"#/definitions/schema"}}],default:{}},allOf:{type:"array",minItems:1,items:{$ref:"#/definitions/schema"}},oneOf:{type:"array",minItems:1,items:{$ref:"#/definitions/schema"}},anyOf:{type:"array",minItems:1,items:{$ref:"#/definitions/schema"}},properties:{type:"object",additionalProperties:{$ref:"#/definitions/schema"},default:{}},discriminator:{type:"string"},readOnly:{type:"boolean",default:!1},xml:{$ref:"#/definitions/xml"},externalDocs:{$ref:"#/definitions/externalDocs"},example:{}},additionalProperties:!1},fileSchema:{type:"object",description:"A deterministic version of a JSON Schema object.",patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},required:["type"],properties:{format:{type:"string"},title:{$ref:"http://json-schema.org/draft-04/schema#/properties/title"},description:{$ref:"http://json-schema.org/draft-04/schema#/properties/description"},default:{$ref:"http://json-schema.org/draft-04/schema#/properties/default"},required:{$ref:"http://json-schema.org/draft-04/schema#/definitions/stringArray"},type:{enum:["file"]},readOnly:{type:"boolean",default:!1},externalDocs:{$ref:"#/definitions/externalDocs"},example:{}},additionalProperties:!1},primitivesItems:{type:"object",additionalProperties:!1,properties:{type:{enum:["string","number","integer","boolean","array"]},format:{type:"string"},items:{$ref:"#/definitions/primitivesItems"},collectionFormat:{$ref:"#/definitions/collectionFormat"},default:{$ref:"#/definitions/default"},maximum:{$ref:"#/definitions/maximum"},exclusiveMaximum:{$ref:"#/definitions/exclusiveMaximum"},minimum:{$ref:"#/definitions/minimum"},exclusiveMinimum:{$ref:"#/definitions/exclusiveMinimum"},maxLength:{$ref:"#/definitions/maxLength"},minLength:{$ref:"#/definitions/minLength"},pattern:{$ref:"#/definitions/pattern"},maxItems:{$ref:"#/definitions/maxItems"},minItems:{$ref:"#/definitions/minItems"},uniqueItems:{$ref:"#/definitions/uniqueItems"},enum:{$ref:"#/definitions/enum"},multipleOf:{$ref:"#/definitions/multipleOf"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},security:{type:"array",items:{$ref:"#/definitions/securityRequirement"},uniqueItems:!0},securityRequirement:{type:"object",additionalProperties:{type:"array",items:{type:"string"},uniqueItems:!0}},xml:{type:"object",additionalProperties:!1,properties:{name:{type:"string"},namespace:{type:"string"},prefix:{type:"string"},attribute:{type:"boolean",default:!1},wrapped:{type:"boolean",default:!1}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},tag:{type:"object",additionalProperties:!1,required:["name"],properties:{name:{type:"string"},description:{type:"string"},externalDocs:{$ref:"#/definitions/externalDocs"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},securityDefinitions:{type:"object",additionalProperties:{oneOf:[{$ref:"#/definitions/basicAuthenticationSecurity"},{$ref:"#/definitions/apiKeySecurity"},{$ref:"#/definitions/oauth2ImplicitSecurity"},{$ref:"#/definitions/oauth2PasswordSecurity"},{$ref:"#/definitions/oauth2ApplicationSecurity"},{$ref:"#/definitions/oauth2AccessCodeSecurity"}]},errorMessage:{properties:{basic:"Invalid basic authentication security definition",apiKey:"Invalid apiKey authentication security definition",oauth2:"Invalid oauth2 authentication security definition"},_:"Invalid security securityDefinitions"}},basicAuthenticationSecurity:{type:"object",additionalProperties:!1,required:["type"],properties:{type:{enum:["basic"]},description:{type:"string"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},apiKeySecurity:{type:"object",additionalProperties:!1,required:["type","name","in"],properties:{type:{enum:["apiKey"]},name:{type:"string"},in:{enum:["header","query"]},description:{type:"string"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},oauth2ImplicitSecurity:{type:"object",additionalProperties:!1,required:["type","flow","authorizationUrl","scopes"],properties:{type:{enum:["oauth2"]},flow:{enum:["implicit"]},scopes:{$ref:"#/definitions/oauth2Scopes"},authorizationUrl:{type:"string",format:"uri"},description:{type:"string"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},oauth2PasswordSecurity:{type:"object",additionalProperties:!1,required:["type","flow","tokenUrl","scopes"],properties:{type:{enum:["oauth2"]},flow:{enum:["password"]},scopes:{$ref:"#/definitions/oauth2Scopes"},tokenUrl:{type:"string",format:"uri"},description:{type:"string"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},oauth2ApplicationSecurity:{type:"object",additionalProperties:!1,required:["type","flow","tokenUrl","scopes"],properties:{type:{const:"oauth2"},flow:{const:"application"},scopes:{$ref:"#/definitions/oauth2Scopes"},tokenUrl:{type:"string",format:"uri"},description:{type:"string"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},oauth2AccessCodeSecurity:{type:"object",additionalProperties:!1,required:["type","flow","authorizationUrl","tokenUrl","scopes"],properties:{type:{const:"oauth2"},flow:{const:"accessCode"},scopes:{$ref:"#/definitions/oauth2Scopes"},authorizationUrl:{type:"string",format:"uri"},tokenUrl:{type:"string",format:"uri"},description:{type:"string"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},oauth2Scopes:{type:"object",additionalProperties:{type:"string"}},mediaTypeList:{type:"array",items:{$ref:"#/definitions/mimeType"},uniqueItems:!0},parametersList:{type:"array",description:"The parameters needed to send a valid API call.",additionalItems:!1,items:{if:{type:"object",required:["$ref"]},then:{$ref:"#/definitions/jsonReference"},else:{$ref:"#/definitions/parameter"}},uniqueItems:!0},schemesList:{type:"array",description:"The transfer protocol of the API.",items:{enum:["http","https","ws","wss"]},uniqueItems:!0},collectionFormat:{enum:["csv","ssv","tsv","pipes"],default:"csv"},collectionFormatWithMulti:{enum:["csv","ssv","tsv","pipes","multi"],default:"csv"},title:{$ref:"http://json-schema.org/draft-04/schema#/properties/title"},description:{$ref:"http://json-schema.org/draft-04/schema#/properties/description"},default:{$ref:"http://json-schema.org/draft-04/schema#/properties/default"},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{$ref:"http://json-schema.org/draft-04/schema#/properties/maximum"},exclusiveMaximum:{$ref:"http://json-schema.org/draft-04/schema#/properties/exclusiveMaximum"},minimum:{$ref:"http://json-schema.org/draft-04/schema#/properties/minimum"},exclusiveMinimum:{$ref:"http://json-schema.org/draft-04/schema#/properties/exclusiveMinimum"},maxLength:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},minLength:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},pattern:{$ref:"http://json-schema.org/draft-04/schema#/properties/pattern"},maxItems:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},minItems:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},uniqueItems:{$ref:"http://json-schema.org/draft-04/schema#/properties/uniqueItems"},enum:{$ref:"http://json-schema.org/draft-04/schema#/properties/enum"},jsonReference:{type:"object",required:["$ref"],additionalProperties:!1,properties:{$ref:{type:"string"}}}}},Qi=Object.prototype.hasOwnProperty,Wr=i0.default,Je=new RegExp("^x-","u"),$tt=new RegExp("^[^{}/ :\\\\]+(?::\\d+)?$","u"),Ag=new RegExp("^/","u"),Ci=KN.fullFormats.uri,YN=/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i;function gr(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){const r=gr.evaluated;return r.dynamicProps&&(r.props=void 0),r.dynamicItems&&(r.items=void 0),gr.errors=null,!0}function um(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=um.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){for(const l in t)if(l!=="name"&&l!=="url"&&l!=="email"&&!Je.test(l)){const u={instancePath:e,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"};r===null?r=[u]:r.push(u),s++}if(t.name!==void 0&&typeof t.name!="string"){const l={instancePath:e+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}if(t.url!==void 0){let l=t.url;if(typeof l=="string"){if(!Ci(l)){const u={instancePath:e+"/url",schemaPath:"#/properties/url/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};r===null?r=[u]:r.push(u),s++}}else{const u={instancePath:e+"/url",schemaPath:"#/properties/url/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[u]:r.push(u),s++}}if(t.email!==void 0){let l=t.email;if(typeof l=="string"){if(!YN.test(l)){const u={instancePath:e+"/email",schemaPath:"#/properties/email/format",keyword:"format",params:{format:"email"},message:'must match format "email"'};r===null?r=[u]:r.push(u),s++}}else{const u={instancePath:e+"/email",schemaPath:"#/properties/email/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[u]:r.push(u),s++}}for(const l in t)Je.test(l)&&gr(t[l],{instancePath:e+"/"+l.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:t,parentDataProperty:l,rootData:a,dynamicAnchors:o})}else{const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[l]:r.push(l),s++}return um.errors=r,s===0}function fm(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=fm.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.name===void 0){const l={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"name"},message:"must have required property 'name'"};r===null?r=[l]:r.push(l),s++}for(const l in t)if(l!=="name"&&l!=="url"&&!Je.test(l)){const u={instancePath:e,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"};r===null?r=[u]:r.push(u),s++}if(t.name!==void 0&&typeof t.name!="string"){const l={instancePath:e+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}if(t.url!==void 0){let l=t.url;if(typeof l=="string"){if(!Ci(l)){const u={instancePath:e+"/url",schemaPath:"#/properties/url/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};r===null?r=[u]:r.push(u),s++}}else{const u={instancePath:e+"/url",schemaPath:"#/properties/url/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[u]:r.push(u),s++}}for(const l in t)Je.test(l)&&gr(t[l],{instancePath:e+"/"+l.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:t,parentDataProperty:l,rootData:a,dynamicAnchors:o})}else{const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[l]:r.push(l),s++}return fm.errors=r,s===0}function pm(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=pm.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.version===void 0){const l={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"version"},message:"must have required property 'version'"};r===null?r=[l]:r.push(l),s++}if(t.title===void 0){const l={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"title"},message:"must have required property 'title'"};r===null?r=[l]:r.push(l),s++}for(const l in t)if(l!=="title"&&l!=="version"&&l!=="description"&&l!=="termsOfService"&&l!=="contact"&&l!=="license"&&!Je.test(l)){const u={instancePath:e,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"};r===null?r=[u]:r.push(u),s++}if(t.title!==void 0&&typeof t.title!="string"){const l={instancePath:e+"/title",schemaPath:"#/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}if(t.version!==void 0&&typeof t.version!="string"){const l={instancePath:e+"/version",schemaPath:"#/properties/version/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}if(t.description!==void 0&&typeof t.description!="string"){const l={instancePath:e+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}if(t.termsOfService!==void 0&&typeof t.termsOfService!="string"){const l={instancePath:e+"/termsOfService",schemaPath:"#/properties/termsOfService/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}t.contact!==void 0&&(um(t.contact,{instancePath:e+"/contact",parentData:t,parentDataProperty:"contact",rootData:a,dynamicAnchors:o})||(r=r===null?um.errors:r.concat(um.errors),s=r.length)),t.license!==void 0&&(fm(t.license,{instancePath:e+"/license",parentData:t,parentDataProperty:"license",rootData:a,dynamicAnchors:o})||(r=r===null?fm.errors:r.concat(fm.errors),s=r.length));for(const l in t)Je.test(l)&&gr(t[l],{instancePath:e+"/"+l.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:t,parentDataProperty:l,rootData:a,dynamicAnchors:o})}else{const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[l]:r.push(l),s++}return pm.errors=r,s===0}gr.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},um.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},fm.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},pm.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};const Att={type:"array",description:"The transfer protocol of the API.",items:{enum:["http","https","ws","wss"]},uniqueItems:!0};function Tc(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Tc.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),Array.isArray(t)){const l=t.length;for(let h=0;h1){e:for(;f--;)for(u=f;u--;)if(Wr(t[f],t[u])){const h={instancePath:e,schemaPath:"#/uniqueItems",keyword:"uniqueItems",params:{i:f,j:u},message:"must NOT have duplicate items (items ## "+u+" and "+f+" are identical)"};r===null?r=[h]:r.push(h),s++;break e}}}else{const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"array"},message:"must be array"};r===null?r=[l]:r.push(l),s++}return Tc.errors=r,s===0}function hm(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=hm.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),typeof t!="string"){const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}return hm.errors=r,s===0}function ca(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=ca.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),Array.isArray(t)){const l=t.length;for(let h=0;h1){e:for(;f--;)for(u=f;u--;)if(Wr(t[f],t[u])){const h={instancePath:e,schemaPath:"#/uniqueItems",keyword:"uniqueItems",params:{i:f,j:u},message:"must NOT have duplicate items (items ## "+u+" and "+f+" are identical)"};r===null?r=[h]:r.push(h),s++;break e}}}else{const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"array"},message:"must be array"};r===null?r=[l]:r.push(l),s++}return ca.errors=r,s===0}Tc.evaluated={items:!0,dynamicProps:!1,dynamicItems:!1},hm.evaluated={dynamicProps:!1,dynamicItems:!1},ca.evaluated={items:!0,dynamicProps:!1,dynamicItems:!1};const Stt={type:"object",additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{$ref:{type:"string"},get:{$ref:"#/definitions/operation"},put:{$ref:"#/definitions/operation"},post:{$ref:"#/definitions/operation"},delete:{$ref:"#/definitions/operation"},options:{$ref:"#/definitions/operation"},head:{$ref:"#/definitions/operation"},patch:{$ref:"#/definitions/operation"},parameters:{$ref:"#/definitions/parametersList"}}},_tt={type:"object",required:["responses"],additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{tags:{type:"array",items:{type:"string"},uniqueItems:!0},summary:{type:"string",description:"A brief summary of the operation."},description:{type:"string",description:"A longer description of the operation, GitHub Flavored Markdown is allowed."},externalDocs:{$ref:"#/definitions/externalDocs"},operationId:{type:"string",description:"A unique identifier of the operation."},produces:{description:"A list of MIME types the API can produce.",allOf:[{$ref:"#/definitions/mediaTypeList"}]},consumes:{description:"A list of MIME types the API can consume.",allOf:[{$ref:"#/definitions/mediaTypeList"}]},parameters:{$ref:"#/definitions/parametersList"},responses:{$ref:"#/definitions/responses"},schemes:{$ref:"#/definitions/schemesList"},deprecated:{type:"boolean",default:!1},security:{$ref:"#/definitions/security"}}};function di(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=di.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.url===void 0){const l={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"url"},message:"must have required property 'url'"};r===null?r=[l]:r.push(l),s++}for(const l in t)if(l!=="description"&&l!=="url"&&!Je.test(l)){const u={instancePath:e,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"};r===null?r=[u]:r.push(u),s++}if(t.description!==void 0&&typeof t.description!="string"){const l={instancePath:e+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}if(t.url!==void 0){let l=t.url;if(typeof l=="string"){if(!Ci(l)){const u={instancePath:e+"/url",schemaPath:"#/properties/url/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};r===null?r=[u]:r.push(u),s++}}else{const u={instancePath:e+"/url",schemaPath:"#/properties/url/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[u]:r.push(u),s++}}for(const l in t)Je.test(l)&&gr(t[l],{instancePath:e+"/"+l.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:t,parentDataProperty:l,rootData:a,dynamicAnchors:o})}else{const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[l]:r.push(l),s++}return di.errors=r,s===0}function jc(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=jc.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.$ref===void 0){const l={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"$ref"},message:"must have required property '$ref'"};r===null?r=[l]:r.push(l),s++}for(const l in t)if(l!=="$ref"){const u={instancePath:e,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"};r===null?r=[u]:r.push(u),s++}if(t.$ref!==void 0&&typeof t.$ref!="string"){const l={instancePath:e+"/$ref",schemaPath:"#/properties/%24ref/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}}else{const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[l]:r.push(l),s++}return jc.errors=r,s===0}di.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},jc.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};const xtt={type:"object",required:["name","in","schema"],patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{description:{type:"string",description:"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},name:{type:"string",description:"The name of the parameter."},in:{type:"string",description:"Determines the location of the parameter.",enum:["body"]},required:{type:"boolean",description:"Determines whether or not this parameter is required or optional.",default:!1},schema:{$ref:"#/definitions/schema"}},additionalProperties:!1},Dtt={type:"object",description:"A deterministic version of a JSON Schema object.",patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{$ref:{type:"string"},format:{type:"string"},title:{$ref:"http://json-schema.org/draft-04/schema#/properties/title"},description:{$ref:"http://json-schema.org/draft-04/schema#/properties/description"},default:{$ref:"http://json-schema.org/draft-04/schema#/properties/default"},multipleOf:{$ref:"http://json-schema.org/draft-04/schema#/properties/multipleOf"},maximum:{$ref:"http://json-schema.org/draft-04/schema#/properties/maximum"},exclusiveMaximum:{$ref:"http://json-schema.org/draft-04/schema#/properties/exclusiveMaximum"},minimum:{$ref:"http://json-schema.org/draft-04/schema#/properties/minimum"},exclusiveMinimum:{$ref:"http://json-schema.org/draft-04/schema#/properties/exclusiveMinimum"},maxLength:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},minLength:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},pattern:{$ref:"http://json-schema.org/draft-04/schema#/properties/pattern"},maxItems:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},minItems:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},uniqueItems:{$ref:"http://json-schema.org/draft-04/schema#/properties/uniqueItems"},maxProperties:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},minProperties:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},required:{$ref:"http://json-schema.org/draft-04/schema#/definitions/stringArray"},enum:{$ref:"http://json-schema.org/draft-04/schema#/properties/enum"},additionalProperties:{if:{type:"object"},then:{$ref:"#/definitions/schema"},else:{if:{type:"boolean"},then:!0,else:{not:!0,errorMessage:'"additionalProperties" property must be a valid schema'}},default:{}},type:{$ref:"http://json-schema.org/draft-04/schema#/properties/type"},items:{anyOf:[{$ref:"#/definitions/schema"},{type:"array",minItems:1,items:{$ref:"#/definitions/schema"}}],default:{}},allOf:{type:"array",minItems:1,items:{$ref:"#/definitions/schema"}},oneOf:{type:"array",minItems:1,items:{$ref:"#/definitions/schema"}},anyOf:{type:"array",minItems:1,items:{$ref:"#/definitions/schema"}},properties:{type:"object",additionalProperties:{$ref:"#/definitions/schema"},default:{}},discriminator:{type:"string"},readOnly:{type:"boolean",default:!1},xml:{$ref:"#/definitions/xml"},externalDocs:{$ref:"#/definitions/externalDocs"},example:{}},additionalProperties:!1};function Mc(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Mc.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),typeof t!="string"){const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}return Mc.errors=r,s===0}function Rc(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Rc.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),typeof t!="string"){const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}return Rc.errors=r,s===0}function Hx(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){return Hx.errors=null,!0}function dm(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=dm.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),typeof t=="number"){if(t<=0||isNaN(t)){const l={instancePath:e,schemaPath:"#/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison:">",limit:0},message:"must be > 0"};r===null?r=[l]:r.push(l),s++}}else{const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"number"},message:"must be number"};r===null?r=[l]:r.push(l),s++}return dm.errors=r,s===0}function mm(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=mm.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),typeof t!="number"){const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"number"},message:"must be number"};r===null?r=[l]:r.push(l),s++}return mm.errors=r,s===0}function ym(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=ym.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),typeof t!="boolean"){const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};r===null?r=[l]:r.push(l),s++}return ym.errors=r,s===0}function gm(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=gm.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),typeof t!="number"){const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"number"},message:"must be number"};r===null?r=[l]:r.push(l),s++}return gm.errors=r,s===0}function vm(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=vm.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),typeof t!="boolean"){const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};r===null?r=[l]:r.push(l),s++}return vm.errors=r,s===0}function Ns(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Ns.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),typeof t!="number"||t%1||isNaN(t)){const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"integer"},message:"must be integer"};r===null?r=[l]:r.push(l),s++}if(typeof t=="number"&&(t<0||isNaN(t))){const l={instancePath:e,schemaPath:"#/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0"};r===null?r=[l]:r.push(l),s++}return Ns.errors=r,s===0}function ao(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=ao.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),typeof t!="number"||t%1||isNaN(t)){const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"integer"},message:"must be integer"};r===null?r=[l]:r.push(l),s++}if(typeof t=="number"&&(t<0||isNaN(t))){const l={instancePath:e,schemaPath:"#/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0"};r===null?r=[l]:r.push(l),s++}return ao.errors=r,s===0}function Ls(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Ls.evaluated;return c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),ao(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o})||(r=r===null?ao.errors:r.concat(ao.errors),s=r.length),Ls.errors=r,s===0}Mc.evaluated={dynamicProps:!1,dynamicItems:!1},Rc.evaluated={dynamicProps:!1,dynamicItems:!1},Hx.evaluated={dynamicProps:!1,dynamicItems:!1},dm.evaluated={dynamicProps:!1,dynamicItems:!1},mm.evaluated={dynamicProps:!1,dynamicItems:!1},ym.evaluated={dynamicProps:!1,dynamicItems:!1},gm.evaluated={dynamicProps:!1,dynamicItems:!1},vm.evaluated={dynamicProps:!1,dynamicItems:!1},Ns.evaluated={dynamicProps:!1,dynamicItems:!1},ao.evaluated={dynamicProps:!1,dynamicItems:!1},Ls.evaluated={dynamicProps:!1,dynamicItems:!1};const Gx=KN.fullFormats.regex;function Pm(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Pm.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),typeof t=="string"){if(!Gx(t)){const l={instancePath:e,schemaPath:"#/format",keyword:"format",params:{format:"regex"},message:'must match format "regex"'};r===null?r=[l]:r.push(l),s++}}else{const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}return Pm.errors=r,s===0}function bm(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=bm.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),typeof t!="boolean"){const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};r===null?r=[l]:r.push(l),s++}return bm.errors=r,s===0}function Nc(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Nc.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),Array.isArray(t)){if(t.length<1){const h={instancePath:e,schemaPath:"#/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items"};r===null?r=[h]:r.push(h),s++}const l=t.length;for(let h=0;h1){const h={};for(;f--;){let d=t[f];if(typeof d=="string"){if(typeof h[d]=="number"){u=h[d];const m={instancePath:e,schemaPath:"#/uniqueItems",keyword:"uniqueItems",params:{i:f,j:u},message:"must NOT have duplicate items (items ## "+u+" and "+f+" are identical)"};r===null?r=[m]:r.push(m),s++;break}h[d]=f}}}}else{const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"array"},message:"must be array"};r===null?r=[l]:r.push(l),s++}return Nc.errors=r,s===0}function wm(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=wm.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),Array.isArray(t)){if(t.length<1){const f={instancePath:e,schemaPath:"#/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items"};r===null?r=[f]:r.push(f),s++}let l,u=t.length;if(u>1){e:for(;u--;)for(l=u;l--;)if(Wr(t[u],t[l])){const f={instancePath:e,schemaPath:"#/uniqueItems",keyword:"uniqueItems",params:{i:u,j:l},message:"must NOT have duplicate items (items ## "+l+" and "+u+" are identical)"};r===null?r=[f]:r.push(f),s++;break e}}}else{const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"array"},message:"must be array"};r===null?r=[l]:r.push(l),s++}return wm.errors=r,s===0}Pm.evaluated={dynamicProps:!1,dynamicItems:!1},bm.evaluated={dynamicProps:!1,dynamicItems:!1},Nc.evaluated={items:!0,dynamicProps:!1,dynamicItems:!1},wm.evaluated={dynamicProps:!1,dynamicItems:!1};const ktt={enum:["array","boolean","integer","null","number","object","string"]};function vc(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=vc.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t!=="array"&&t!=="boolean"&&t!=="integer"&&t!=="null"&&t!=="number"&&t!=="object"&&t!=="string"){const l={instancePath:e,schemaPath:"#/enum",keyword:"enum",params:{allowedValues:ktt.enum},message:"must be equal to one of the allowed values"};r===null?r=[l]:r.push(l),s++}return vc.errors=r,s===0}function $m(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=$m.evaluated;c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0);const l=s;let u=!1;const f=s;vc(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o})||(r=r===null?vc.errors:r.concat(vc.errors),s=r.length);var h=f===s;u=u||h;const d=s;if(Array.isArray(t)){if(t.length<1){const P={instancePath:e,schemaPath:"#/anyOf/1/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items"};r===null?r=[P]:r.push(P),s++}const g=t.length;for(let P=0;P1){e:for(;v--;)for(b=v;b--;)if(Wr(t[v],t[b])){const P={instancePath:e,schemaPath:"#/anyOf/1/uniqueItems",keyword:"uniqueItems",params:{i:v,j:b},message:"must NOT have duplicate items (items ## "+b+" and "+v+" are identical)"};r===null?r=[P]:r.push(P),s++;break e}}}else{const g={instancePath:e,schemaPath:"#/anyOf/1/type",keyword:"type",params:{type:"array"},message:"must be array"};r===null?r=[g]:r.push(g),s++}if(h=d===s,u=u||h,h)var m=!0;if(u)s=l,r!==null&&(l?r.length=l:r=null);else{const g={instancePath:e,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};r===null?r=[g]:r.push(g),s++}return $m.errors=r,c.items=m,s===0}function Am(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Am.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){for(const l in t)if(l!=="name"&&l!=="namespace"&&l!=="prefix"&&l!=="attribute"&&l!=="wrapped"&&!Je.test(l)){const u={instancePath:e,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"};r===null?r=[u]:r.push(u),s++}if(t.name!==void 0&&typeof t.name!="string"){const l={instancePath:e+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}if(t.namespace!==void 0&&typeof t.namespace!="string"){const l={instancePath:e+"/namespace",schemaPath:"#/properties/namespace/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}if(t.prefix!==void 0&&typeof t.prefix!="string"){const l={instancePath:e+"/prefix",schemaPath:"#/properties/prefix/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}if(t.attribute!==void 0&&typeof t.attribute!="boolean"){const l={instancePath:e+"/attribute",schemaPath:"#/properties/attribute/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};r===null?r=[l]:r.push(l),s++}if(t.wrapped!==void 0&&typeof t.wrapped!="boolean"){const l={instancePath:e+"/wrapped",schemaPath:"#/properties/wrapped/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};r===null?r=[l]:r.push(l),s++}for(const l in t)Je.test(l)&&gr(t[l],{instancePath:e+"/"+l.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:t,parentDataProperty:l,rootData:a,dynamicAnchors:o})}else{const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[l]:r.push(l),s++}return Am.errors=r,s===0}vc.evaluated={dynamicProps:!1,dynamicItems:!1},$m.evaluated={dynamicProps:!1,dynamicItems:!0},Am.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};const yn={validate:ds};function ds(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=ds.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){for(const d in t)if(!Qi.call(Dtt.properties,d)&&!Je.test(d)){const m={instancePath:e,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:d},message:"must NOT have additional properties"};r===null?r=[m]:r.push(m),s++}if(t.$ref!==void 0&&typeof t.$ref!="string"){const d={instancePath:e+"/$ref",schemaPath:"#/properties/%24ref/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}if(t.format!==void 0&&typeof t.format!="string"){const d={instancePath:e+"/format",schemaPath:"#/properties/format/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}if(t.title!==void 0&&(Mc(t.title,{instancePath:e+"/title",parentData:t,parentDataProperty:"title",rootData:a,dynamicAnchors:o})||(r=r===null?Mc.errors:r.concat(Mc.errors),s=r.length)),t.description!==void 0&&(Rc(t.description,{instancePath:e+"/description",parentData:t,parentDataProperty:"description",rootData:a,dynamicAnchors:o})||(r=r===null?Rc.errors:r.concat(Rc.errors),s=r.length)),t.default!==void 0&&Hx(t.default,{instancePath:e+"/default",parentData:t,parentDataProperty:"default",rootData:a,dynamicAnchors:o}),t.multipleOf!==void 0&&(dm(t.multipleOf,{instancePath:e+"/multipleOf",parentData:t,parentDataProperty:"multipleOf",rootData:a,dynamicAnchors:o})||(r=r===null?dm.errors:r.concat(dm.errors),s=r.length)),t.maximum!==void 0&&(mm(t.maximum,{instancePath:e+"/maximum",parentData:t,parentDataProperty:"maximum",rootData:a,dynamicAnchors:o})||(r=r===null?mm.errors:r.concat(mm.errors),s=r.length)),t.exclusiveMaximum!==void 0&&(ym(t.exclusiveMaximum,{instancePath:e+"/exclusiveMaximum",parentData:t,parentDataProperty:"exclusiveMaximum",rootData:a,dynamicAnchors:o})||(r=r===null?ym.errors:r.concat(ym.errors),s=r.length)),t.minimum!==void 0&&(gm(t.minimum,{instancePath:e+"/minimum",parentData:t,parentDataProperty:"minimum",rootData:a,dynamicAnchors:o})||(r=r===null?gm.errors:r.concat(gm.errors),s=r.length)),t.exclusiveMinimum!==void 0&&(vm(t.exclusiveMinimum,{instancePath:e+"/exclusiveMinimum",parentData:t,parentDataProperty:"exclusiveMinimum",rootData:a,dynamicAnchors:o})||(r=r===null?vm.errors:r.concat(vm.errors),s=r.length)),t.maxLength!==void 0&&(Ns(t.maxLength,{instancePath:e+"/maxLength",parentData:t,parentDataProperty:"maxLength",rootData:a,dynamicAnchors:o})||(r=r===null?Ns.errors:r.concat(Ns.errors),s=r.length)),t.minLength!==void 0&&(Ls(t.minLength,{instancePath:e+"/minLength",parentData:t,parentDataProperty:"minLength",rootData:a,dynamicAnchors:o})||(r=r===null?Ls.errors:r.concat(Ls.errors),s=r.length)),t.pattern!==void 0&&(Pm(t.pattern,{instancePath:e+"/pattern",parentData:t,parentDataProperty:"pattern",rootData:a,dynamicAnchors:o})||(r=r===null?Pm.errors:r.concat(Pm.errors),s=r.length)),t.maxItems!==void 0&&(Ns(t.maxItems,{instancePath:e+"/maxItems",parentData:t,parentDataProperty:"maxItems",rootData:a,dynamicAnchors:o})||(r=r===null?Ns.errors:r.concat(Ns.errors),s=r.length)),t.minItems!==void 0&&(Ls(t.minItems,{instancePath:e+"/minItems",parentData:t,parentDataProperty:"minItems",rootData:a,dynamicAnchors:o})||(r=r===null?Ls.errors:r.concat(Ls.errors),s=r.length)),t.uniqueItems!==void 0&&(bm(t.uniqueItems,{instancePath:e+"/uniqueItems",parentData:t,parentDataProperty:"uniqueItems",rootData:a,dynamicAnchors:o})||(r=r===null?bm.errors:r.concat(bm.errors),s=r.length)),t.maxProperties!==void 0&&(Ns(t.maxProperties,{instancePath:e+"/maxProperties",parentData:t,parentDataProperty:"maxProperties",rootData:a,dynamicAnchors:o})||(r=r===null?Ns.errors:r.concat(Ns.errors),s=r.length)),t.minProperties!==void 0&&(Ls(t.minProperties,{instancePath:e+"/minProperties",parentData:t,parentDataProperty:"minProperties",rootData:a,dynamicAnchors:o})||(r=r===null?Ls.errors:r.concat(Ls.errors),s=r.length)),t.required!==void 0&&(Nc(t.required,{instancePath:e+"/required",parentData:t,parentDataProperty:"required",rootData:a,dynamicAnchors:o})||(r=r===null?Nc.errors:r.concat(Nc.errors),s=r.length)),t.enum!==void 0&&(wm(t.enum,{instancePath:e+"/enum",parentData:t,parentDataProperty:"enum",rootData:a,dynamicAnchors:o})||(r=r===null?wm.errors:r.concat(wm.errors),s=r.length)),t.additionalProperties!==void 0){let d=t.additionalProperties;const m=s;let g=!0;const b=s;if(!d||typeof d!="object"||Array.isArray(d)){const P={};r===null?r=[P]:r.push(P),s++}var l=b===s;let v;if(s=m,r!==null&&(m?r.length=m:r=null),l){const P=s;yn.validate(d,{instancePath:e+"/additionalProperties",parentData:t,parentDataProperty:"additionalProperties",rootData:a,dynamicAnchors:o})||(r=r===null?yn.validate.errors:r.concat(yn.validate.errors),s=r.length),g=l=P===s,v="then"}else{const P=s,A=s;let _=!0;const x=s;if(typeof d!="boolean"){const E={};r===null?r=[E]:r.push(E),s++}var u=x===s;if(s=A,r!==null&&(A?r.length=A:r=null),!u){const E=s,j={instancePath:e+"/additionalProperties",schemaPath:"#/properties/additionalProperties/else/else/not",keyword:"not",params:{},message:"must NOT be valid"};if(r===null?r=[j]:r.push(j),s++,s>0){const F=[];for(const L of r)L.keyword==="errorMessage"||L.emUsed||L.instancePath!==e+"/additionalProperties"&&(L.instancePath.indexOf(e+"/additionalProperties")!==0||L.instancePath[e+21]!=="/")||L.schemaPath.indexOf("#/properties/additionalProperties/else/else")!==0||L.schemaPath[43]!=="/"||(F.push(L),L.emUsed=!0);if(F.length){const L={instancePath:e+"/additionalProperties",schemaPath:"#/properties/additionalProperties/else/else/errorMessage",keyword:"errorMessage",params:{errors:F},message:'"additionalProperties" property must be a valid schema'};r===null?r=[L]:r.push(L),s++}const I=[];for(const L of r)L.emUsed||I.push(L);r=I,s=I.length}_=u=E===s}if(!_){const E={instancePath:e+"/additionalProperties",schemaPath:"#/properties/additionalProperties/else/if",keyword:"if",params:{failingKeyword:"else"},message:'must match "else" schema'};r===null?r=[E]:r.push(E),s++}g=l=P===s,v="else"}if(!g){const P={instancePath:e+"/additionalProperties",schemaPath:"#/properties/additionalProperties/if",keyword:"if",params:{failingKeyword:v},message:'must match "'+v+'" schema'};r===null?r=[P]:r.push(P),s++}}if(t.type!==void 0&&($m(t.type,{instancePath:e+"/type",parentData:t,parentDataProperty:"type",rootData:a,dynamicAnchors:o})||(r=r===null?$m.errors:r.concat($m.errors),s=r.length)),t.items!==void 0){let d=t.items;const m=s;let g=!1;const b=s;if(yn.validate(d,{instancePath:e+"/items",parentData:t,parentDataProperty:"items",rootData:a,dynamicAnchors:o}))var f=yn.validate.evaluated.items;else r=r===null?yn.validate.errors:r.concat(yn.validate.errors),s=r.length;var h=b===s;g=g||h;const v=s;if(Array.isArray(d)){if(d.length<1){const A={instancePath:e+"/items",schemaPath:"#/properties/items/anyOf/1/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items"};r===null?r=[A]:r.push(A),s++}const P=d.length;for(let A=0;A=",limit:0},message:"must be >= 0"};r===null?r=[l]:r.push(l),s++}return Tn.errors=r,s===0}function jn(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=jn.evaluated;return c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),ao(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o})||(r=r===null?ao.errors:r.concat(ao.errors),s=r.length),jn.errors=r,s===0}function Mn(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Mn.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),typeof t=="string"){if(!Gx(t)){const l={instancePath:e,schemaPath:"#/format",keyword:"format",params:{format:"regex"},message:'must match format "regex"'};r===null?r=[l]:r.push(l),s++}}else{const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}return Mn.errors=r,s===0}function Rn(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Rn.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),typeof t!="number"||t%1||isNaN(t)){const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"integer"},message:"must be integer"};r===null?r=[l]:r.push(l),s++}if(typeof t=="number"&&(t<0||isNaN(t))){const l={instancePath:e,schemaPath:"#/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0"};r===null?r=[l]:r.push(l),s++}return Rn.errors=r,s===0}function Nn(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Nn.evaluated;return c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),ao(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o})||(r=r===null?ao.errors:r.concat(ao.errors),s=r.length),Nn.errors=r,s===0}function Ln(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Ln.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),typeof t!="boolean"){const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};r===null?r=[l]:r.push(l),s++}return Ln.errors=r,s===0}function Fn(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Fn.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),Array.isArray(t)){if(t.length<1){const f={instancePath:e,schemaPath:"#/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items"};r===null?r=[f]:r.push(f),s++}let l,u=t.length;if(u>1){e:for(;u--;)for(l=u;l--;)if(Wr(t[u],t[l])){const f={instancePath:e,schemaPath:"#/uniqueItems",keyword:"uniqueItems",params:{i:u,j:l},message:"must NOT have duplicate items (items ## "+l+" and "+u+" are identical)"};r===null?r=[f]:r.push(f),s++;break e}}}else{const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"array"},message:"must be array"};r===null?r=[l]:r.push(l),s++}return Fn.errors=r,s===0}function qn(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=qn.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),typeof t=="number"){if(t<=0||isNaN(t)){const l={instancePath:e,schemaPath:"#/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison:">",limit:0},message:"must be > 0"};r===null?r=[l]:r.push(l),s++}}else{const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"number"},message:"must be number"};r===null?r=[l]:r.push(l),s++}return qn.errors=r,s===0}function ni(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=ni.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){for(const l in t)if(!Qi.call(e8.properties,l)&&!Je.test(l)){const u={instancePath:e,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"};r===null?r=[u]:r.push(u),s++}if(t.type!==void 0){let l=t.type;if(l!=="string"&&l!=="number"&&l!=="integer"&&l!=="boolean"&&l!=="array"){const u={instancePath:e+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:e8.properties.type.enum},message:"must be equal to one of the allowed values"};r===null?r=[u]:r.push(u),s++}}if(t.format!==void 0&&typeof t.format!="string"){const l={instancePath:e+"/format",schemaPath:"#/properties/format/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}t.items!==void 0&&(fI.validate(t.items,{instancePath:e+"/items",parentData:t,parentDataProperty:"items",rootData:a,dynamicAnchors:o})||(r=r===null?fI.validate.errors:r.concat(fI.validate.errors),s=r.length)),t.collectionFormat!==void 0&&(ga(t.collectionFormat,{instancePath:e+"/collectionFormat",parentData:t,parentDataProperty:"collectionFormat",rootData:a,dynamicAnchors:o})||(r=r===null?ga.errors:r.concat(ga.errors),s=r.length)),t.default!==void 0&&Wf(t.default,{instancePath:e+"/default",parentData:t,parentDataProperty:"default",rootData:a,dynamicAnchors:o}),t.maximum!==void 0&&(On(t.maximum,{instancePath:e+"/maximum",parentData:t,parentDataProperty:"maximum",rootData:a,dynamicAnchors:o})||(r=r===null?On.errors:r.concat(On.errors),s=r.length)),t.exclusiveMaximum!==void 0&&(En(t.exclusiveMaximum,{instancePath:e+"/exclusiveMaximum",parentData:t,parentDataProperty:"exclusiveMaximum",rootData:a,dynamicAnchors:o})||(r=r===null?En.errors:r.concat(En.errors),s=r.length)),t.minimum!==void 0&&(In(t.minimum,{instancePath:e+"/minimum",parentData:t,parentDataProperty:"minimum",rootData:a,dynamicAnchors:o})||(r=r===null?In.errors:r.concat(In.errors),s=r.length)),t.exclusiveMinimum!==void 0&&(Cn(t.exclusiveMinimum,{instancePath:e+"/exclusiveMinimum",parentData:t,parentDataProperty:"exclusiveMinimum",rootData:a,dynamicAnchors:o})||(r=r===null?Cn.errors:r.concat(Cn.errors),s=r.length)),t.maxLength!==void 0&&(Tn(t.maxLength,{instancePath:e+"/maxLength",parentData:t,parentDataProperty:"maxLength",rootData:a,dynamicAnchors:o})||(r=r===null?Tn.errors:r.concat(Tn.errors),s=r.length)),t.minLength!==void 0&&(jn(t.minLength,{instancePath:e+"/minLength",parentData:t,parentDataProperty:"minLength",rootData:a,dynamicAnchors:o})||(r=r===null?jn.errors:r.concat(jn.errors),s=r.length)),t.pattern!==void 0&&(Mn(t.pattern,{instancePath:e+"/pattern",parentData:t,parentDataProperty:"pattern",rootData:a,dynamicAnchors:o})||(r=r===null?Mn.errors:r.concat(Mn.errors),s=r.length)),t.maxItems!==void 0&&(Rn(t.maxItems,{instancePath:e+"/maxItems",parentData:t,parentDataProperty:"maxItems",rootData:a,dynamicAnchors:o})||(r=r===null?Rn.errors:r.concat(Rn.errors),s=r.length)),t.minItems!==void 0&&(Nn(t.minItems,{instancePath:e+"/minItems",parentData:t,parentDataProperty:"minItems",rootData:a,dynamicAnchors:o})||(r=r===null?Nn.errors:r.concat(Nn.errors),s=r.length)),t.uniqueItems!==void 0&&(Ln(t.uniqueItems,{instancePath:e+"/uniqueItems",parentData:t,parentDataProperty:"uniqueItems",rootData:a,dynamicAnchors:o})||(r=r===null?Ln.errors:r.concat(Ln.errors),s=r.length)),t.enum!==void 0&&(Fn(t.enum,{instancePath:e+"/enum",parentData:t,parentDataProperty:"enum",rootData:a,dynamicAnchors:o})||(r=r===null?Fn.errors:r.concat(Fn.errors),s=r.length)),t.multipleOf!==void 0&&(qn(t.multipleOf,{instancePath:e+"/multipleOf",parentData:t,parentDataProperty:"multipleOf",rootData:a,dynamicAnchors:o})||(r=r===null?qn.errors:r.concat(qn.errors),s=r.length));for(const l in t)Je.test(l)&&gr(t[l],{instancePath:e+"/"+l.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:t,parentDataProperty:l,rootData:a,dynamicAnchors:o})}else{const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[l]:r.push(l),s++}return ni.errors=r,s===0}function _m(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=_m.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){for(const l in t)if(!Qi.call(uI.properties,l)&&!Je.test(l)){const u={instancePath:e,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"};r===null?r=[u]:r.push(u),s++}if(t.required!==void 0&&typeof t.required!="boolean"){const l={instancePath:e+"/required",schemaPath:"#/properties/required/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};r===null?r=[l]:r.push(l),s++}if(t.in!==void 0){let l=t.in;if(typeof l!="string"){const u={instancePath:e+"/in",schemaPath:"#/properties/in/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[u]:r.push(u),s++}if(l!=="header"){const u={instancePath:e+"/in",schemaPath:"#/properties/in/enum",keyword:"enum",params:{allowedValues:uI.properties.in.enum},message:"must be equal to one of the allowed values"};r===null?r=[u]:r.push(u),s++}}if(t.description!==void 0&&typeof t.description!="string"){const l={instancePath:e+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}if(t.name!==void 0&&typeof t.name!="string"){const l={instancePath:e+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}if(t.type!==void 0){let l=t.type;if(typeof l!="string"){const u={instancePath:e+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[u]:r.push(u),s++}if(l!=="string"&&l!=="number"&&l!=="boolean"&&l!=="integer"&&l!=="array"){const u={instancePath:e+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:uI.properties.type.enum},message:"must be equal to one of the allowed values"};r===null?r=[u]:r.push(u),s++}}if(t.format!==void 0&&typeof t.format!="string"){const l={instancePath:e+"/format",schemaPath:"#/properties/format/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}t.items!==void 0&&(ni(t.items,{instancePath:e+"/items",parentData:t,parentDataProperty:"items",rootData:a,dynamicAnchors:o})||(r=r===null?ni.errors:r.concat(ni.errors),s=r.length)),t.collectionFormat!==void 0&&(ga(t.collectionFormat,{instancePath:e+"/collectionFormat",parentData:t,parentDataProperty:"collectionFormat",rootData:a,dynamicAnchors:o})||(r=r===null?ga.errors:r.concat(ga.errors),s=r.length)),t.default!==void 0&&Wf(t.default,{instancePath:e+"/default",parentData:t,parentDataProperty:"default",rootData:a,dynamicAnchors:o}),t.maximum!==void 0&&(On(t.maximum,{instancePath:e+"/maximum",parentData:t,parentDataProperty:"maximum",rootData:a,dynamicAnchors:o})||(r=r===null?On.errors:r.concat(On.errors),s=r.length)),t.exclusiveMaximum!==void 0&&(En(t.exclusiveMaximum,{instancePath:e+"/exclusiveMaximum",parentData:t,parentDataProperty:"exclusiveMaximum",rootData:a,dynamicAnchors:o})||(r=r===null?En.errors:r.concat(En.errors),s=r.length)),t.minimum!==void 0&&(In(t.minimum,{instancePath:e+"/minimum",parentData:t,parentDataProperty:"minimum",rootData:a,dynamicAnchors:o})||(r=r===null?In.errors:r.concat(In.errors),s=r.length)),t.exclusiveMinimum!==void 0&&(Cn(t.exclusiveMinimum,{instancePath:e+"/exclusiveMinimum",parentData:t,parentDataProperty:"exclusiveMinimum",rootData:a,dynamicAnchors:o})||(r=r===null?Cn.errors:r.concat(Cn.errors),s=r.length)),t.maxLength!==void 0&&(Tn(t.maxLength,{instancePath:e+"/maxLength",parentData:t,parentDataProperty:"maxLength",rootData:a,dynamicAnchors:o})||(r=r===null?Tn.errors:r.concat(Tn.errors),s=r.length)),t.minLength!==void 0&&(jn(t.minLength,{instancePath:e+"/minLength",parentData:t,parentDataProperty:"minLength",rootData:a,dynamicAnchors:o})||(r=r===null?jn.errors:r.concat(jn.errors),s=r.length)),t.pattern!==void 0&&(Mn(t.pattern,{instancePath:e+"/pattern",parentData:t,parentDataProperty:"pattern",rootData:a,dynamicAnchors:o})||(r=r===null?Mn.errors:r.concat(Mn.errors),s=r.length)),t.maxItems!==void 0&&(Rn(t.maxItems,{instancePath:e+"/maxItems",parentData:t,parentDataProperty:"maxItems",rootData:a,dynamicAnchors:o})||(r=r===null?Rn.errors:r.concat(Rn.errors),s=r.length)),t.minItems!==void 0&&(Nn(t.minItems,{instancePath:e+"/minItems",parentData:t,parentDataProperty:"minItems",rootData:a,dynamicAnchors:o})||(r=r===null?Nn.errors:r.concat(Nn.errors),s=r.length)),t.uniqueItems!==void 0&&(Ln(t.uniqueItems,{instancePath:e+"/uniqueItems",parentData:t,parentDataProperty:"uniqueItems",rootData:a,dynamicAnchors:o})||(r=r===null?Ln.errors:r.concat(Ln.errors),s=r.length)),t.enum!==void 0&&(Fn(t.enum,{instancePath:e+"/enum",parentData:t,parentDataProperty:"enum",rootData:a,dynamicAnchors:o})||(r=r===null?Fn.errors:r.concat(Fn.errors),s=r.length)),t.multipleOf!==void 0&&(qn(t.multipleOf,{instancePath:e+"/multipleOf",parentData:t,parentDataProperty:"multipleOf",rootData:a,dynamicAnchors:o})||(r=r===null?qn.errors:r.concat(qn.errors),s=r.length));for(const l in t)Je.test(l)&&gr(t[l],{instancePath:e+"/"+l.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:t,parentDataProperty:l,rootData:a,dynamicAnchors:o})}return _m.errors=r,s===0}ga.evaluated={dynamicProps:!1,dynamicItems:!1},Wf.evaluated={dynamicProps:!1,dynamicItems:!1},On.evaluated={dynamicProps:!1,dynamicItems:!1},En.evaluated={dynamicProps:!1,dynamicItems:!1},In.evaluated={dynamicProps:!1,dynamicItems:!1},Cn.evaluated={dynamicProps:!1,dynamicItems:!1},Tn.evaluated={dynamicProps:!1,dynamicItems:!1},jn.evaluated={dynamicProps:!1,dynamicItems:!1},Mn.evaluated={dynamicProps:!1,dynamicItems:!1},Rn.evaluated={dynamicProps:!1,dynamicItems:!1},Nn.evaluated={dynamicProps:!1,dynamicItems:!1},Ln.evaluated={dynamicProps:!1,dynamicItems:!1},Fn.evaluated={dynamicProps:!1,dynamicItems:!1},qn.evaluated={dynamicProps:!1,dynamicItems:!1},ni.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},_m.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};const pI={additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{required:{type:"boolean",description:"Determines whether or not this parameter is required or optional.",default:!1},in:{type:"string",description:"Determines the location of the parameter.",enum:["formData"]},description:{type:"string",description:"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},name:{type:"string",description:"The name of the parameter."},allowEmptyValue:{type:"boolean",default:!1,description:"allows sending a parameter by name only or with an empty value."},type:{type:"string",enum:["string","number","boolean","integer","array","file"]},format:{type:"string"},items:{$ref:"#/definitions/primitivesItems"},collectionFormat:{$ref:"#/definitions/collectionFormatWithMulti"},default:{$ref:"#/definitions/default"},maximum:{$ref:"#/definitions/maximum"},exclusiveMaximum:{$ref:"#/definitions/exclusiveMaximum"},minimum:{$ref:"#/definitions/minimum"},exclusiveMinimum:{$ref:"#/definitions/exclusiveMinimum"},maxLength:{$ref:"#/definitions/maxLength"},minLength:{$ref:"#/definitions/minLength"},pattern:{$ref:"#/definitions/pattern"},maxItems:{$ref:"#/definitions/maxItems"},minItems:{$ref:"#/definitions/minItems"},uniqueItems:{$ref:"#/definitions/uniqueItems"},enum:{$ref:"#/definitions/enum"},multipleOf:{$ref:"#/definitions/multipleOf"}}},Ett={enum:["csv","ssv","tsv","pipes","multi"],default:"csv"};function Lc(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Lc.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t!=="csv"&&t!=="ssv"&&t!=="tsv"&&t!=="pipes"&&t!=="multi"){const l={instancePath:e,schemaPath:"#/enum",keyword:"enum",params:{allowedValues:Ett.enum},message:"must be equal to one of the allowed values"};r===null?r=[l]:r.push(l),s++}return Lc.errors=r,s===0}function xm(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=xm.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){for(const l in t)if(!Qi.call(pI.properties,l)&&!Je.test(l)){const u={instancePath:e,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"};r===null?r=[u]:r.push(u),s++}if(t.required!==void 0&&typeof t.required!="boolean"){const l={instancePath:e+"/required",schemaPath:"#/properties/required/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};r===null?r=[l]:r.push(l),s++}if(t.in!==void 0){let l=t.in;if(typeof l!="string"){const u={instancePath:e+"/in",schemaPath:"#/properties/in/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[u]:r.push(u),s++}if(l!=="formData"){const u={instancePath:e+"/in",schemaPath:"#/properties/in/enum",keyword:"enum",params:{allowedValues:pI.properties.in.enum},message:"must be equal to one of the allowed values"};r===null?r=[u]:r.push(u),s++}}if(t.description!==void 0&&typeof t.description!="string"){const l={instancePath:e+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}if(t.name!==void 0&&typeof t.name!="string"){const l={instancePath:e+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}if(t.allowEmptyValue!==void 0&&typeof t.allowEmptyValue!="boolean"){const l={instancePath:e+"/allowEmptyValue",schemaPath:"#/properties/allowEmptyValue/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};r===null?r=[l]:r.push(l),s++}if(t.type!==void 0){let l=t.type;if(typeof l!="string"){const u={instancePath:e+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[u]:r.push(u),s++}if(l!=="string"&&l!=="number"&&l!=="boolean"&&l!=="integer"&&l!=="array"&&l!=="file"){const u={instancePath:e+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:pI.properties.type.enum},message:"must be equal to one of the allowed values"};r===null?r=[u]:r.push(u),s++}}if(t.format!==void 0&&typeof t.format!="string"){const l={instancePath:e+"/format",schemaPath:"#/properties/format/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}t.items!==void 0&&(ni(t.items,{instancePath:e+"/items",parentData:t,parentDataProperty:"items",rootData:a,dynamicAnchors:o})||(r=r===null?ni.errors:r.concat(ni.errors),s=r.length)),t.collectionFormat!==void 0&&(Lc(t.collectionFormat,{instancePath:e+"/collectionFormat",parentData:t,parentDataProperty:"collectionFormat",rootData:a,dynamicAnchors:o})||(r=r===null?Lc.errors:r.concat(Lc.errors),s=r.length)),t.default!==void 0&&Wf(t.default,{instancePath:e+"/default",parentData:t,parentDataProperty:"default",rootData:a,dynamicAnchors:o}),t.maximum!==void 0&&(On(t.maximum,{instancePath:e+"/maximum",parentData:t,parentDataProperty:"maximum",rootData:a,dynamicAnchors:o})||(r=r===null?On.errors:r.concat(On.errors),s=r.length)),t.exclusiveMaximum!==void 0&&(En(t.exclusiveMaximum,{instancePath:e+"/exclusiveMaximum",parentData:t,parentDataProperty:"exclusiveMaximum",rootData:a,dynamicAnchors:o})||(r=r===null?En.errors:r.concat(En.errors),s=r.length)),t.minimum!==void 0&&(In(t.minimum,{instancePath:e+"/minimum",parentData:t,parentDataProperty:"minimum",rootData:a,dynamicAnchors:o})||(r=r===null?In.errors:r.concat(In.errors),s=r.length)),t.exclusiveMinimum!==void 0&&(Cn(t.exclusiveMinimum,{instancePath:e+"/exclusiveMinimum",parentData:t,parentDataProperty:"exclusiveMinimum",rootData:a,dynamicAnchors:o})||(r=r===null?Cn.errors:r.concat(Cn.errors),s=r.length)),t.maxLength!==void 0&&(Tn(t.maxLength,{instancePath:e+"/maxLength",parentData:t,parentDataProperty:"maxLength",rootData:a,dynamicAnchors:o})||(r=r===null?Tn.errors:r.concat(Tn.errors),s=r.length)),t.minLength!==void 0&&(jn(t.minLength,{instancePath:e+"/minLength",parentData:t,parentDataProperty:"minLength",rootData:a,dynamicAnchors:o})||(r=r===null?jn.errors:r.concat(jn.errors),s=r.length)),t.pattern!==void 0&&(Mn(t.pattern,{instancePath:e+"/pattern",parentData:t,parentDataProperty:"pattern",rootData:a,dynamicAnchors:o})||(r=r===null?Mn.errors:r.concat(Mn.errors),s=r.length)),t.maxItems!==void 0&&(Rn(t.maxItems,{instancePath:e+"/maxItems",parentData:t,parentDataProperty:"maxItems",rootData:a,dynamicAnchors:o})||(r=r===null?Rn.errors:r.concat(Rn.errors),s=r.length)),t.minItems!==void 0&&(Nn(t.minItems,{instancePath:e+"/minItems",parentData:t,parentDataProperty:"minItems",rootData:a,dynamicAnchors:o})||(r=r===null?Nn.errors:r.concat(Nn.errors),s=r.length)),t.uniqueItems!==void 0&&(Ln(t.uniqueItems,{instancePath:e+"/uniqueItems",parentData:t,parentDataProperty:"uniqueItems",rootData:a,dynamicAnchors:o})||(r=r===null?Ln.errors:r.concat(Ln.errors),s=r.length)),t.enum!==void 0&&(Fn(t.enum,{instancePath:e+"/enum",parentData:t,parentDataProperty:"enum",rootData:a,dynamicAnchors:o})||(r=r===null?Fn.errors:r.concat(Fn.errors),s=r.length)),t.multipleOf!==void 0&&(qn(t.multipleOf,{instancePath:e+"/multipleOf",parentData:t,parentDataProperty:"multipleOf",rootData:a,dynamicAnchors:o})||(r=r===null?qn.errors:r.concat(qn.errors),s=r.length));for(const l in t)Je.test(l)&&gr(t[l],{instancePath:e+"/"+l.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:t,parentDataProperty:l,rootData:a,dynamicAnchors:o})}return xm.errors=r,s===0}Lc.evaluated={dynamicProps:!1,dynamicItems:!1},xm.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};const hI={additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{required:{type:"boolean",description:"Determines whether or not this parameter is required or optional.",default:!1},in:{type:"string",description:"Determines the location of the parameter.",enum:["query"]},description:{type:"string",description:"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},name:{type:"string",description:"The name of the parameter."},allowEmptyValue:{type:"boolean",default:!1,description:"allows sending a parameter by name only or with an empty value."},type:{type:"string",enum:["string","number","boolean","integer","array"]},format:{type:"string"},items:{$ref:"#/definitions/primitivesItems"},collectionFormat:{$ref:"#/definitions/collectionFormatWithMulti"},default:{$ref:"#/definitions/default"},maximum:{$ref:"#/definitions/maximum"},exclusiveMaximum:{$ref:"#/definitions/exclusiveMaximum"},minimum:{$ref:"#/definitions/minimum"},exclusiveMinimum:{$ref:"#/definitions/exclusiveMinimum"},maxLength:{$ref:"#/definitions/maxLength"},minLength:{$ref:"#/definitions/minLength"},pattern:{$ref:"#/definitions/pattern"},maxItems:{$ref:"#/definitions/maxItems"},minItems:{$ref:"#/definitions/minItems"},uniqueItems:{$ref:"#/definitions/uniqueItems"},enum:{$ref:"#/definitions/enum"},multipleOf:{$ref:"#/definitions/multipleOf"}}};function Dm(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Dm.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){for(const l in t)if(!Qi.call(hI.properties,l)&&!Je.test(l)){const u={instancePath:e,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"};r===null?r=[u]:r.push(u),s++}if(t.required!==void 0&&typeof t.required!="boolean"){const l={instancePath:e+"/required",schemaPath:"#/properties/required/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};r===null?r=[l]:r.push(l),s++}if(t.in!==void 0){let l=t.in;if(typeof l!="string"){const u={instancePath:e+"/in",schemaPath:"#/properties/in/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[u]:r.push(u),s++}if(l!=="query"){const u={instancePath:e+"/in",schemaPath:"#/properties/in/enum",keyword:"enum",params:{allowedValues:hI.properties.in.enum},message:"must be equal to one of the allowed values"};r===null?r=[u]:r.push(u),s++}}if(t.description!==void 0&&typeof t.description!="string"){const l={instancePath:e+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}if(t.name!==void 0&&typeof t.name!="string"){const l={instancePath:e+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}if(t.allowEmptyValue!==void 0&&typeof t.allowEmptyValue!="boolean"){const l={instancePath:e+"/allowEmptyValue",schemaPath:"#/properties/allowEmptyValue/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};r===null?r=[l]:r.push(l),s++}if(t.type!==void 0){let l=t.type;if(typeof l!="string"){const u={instancePath:e+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[u]:r.push(u),s++}if(l!=="string"&&l!=="number"&&l!=="boolean"&&l!=="integer"&&l!=="array"){const u={instancePath:e+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:hI.properties.type.enum},message:"must be equal to one of the allowed values"};r===null?r=[u]:r.push(u),s++}}if(t.format!==void 0&&typeof t.format!="string"){const l={instancePath:e+"/format",schemaPath:"#/properties/format/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}t.items!==void 0&&(ni(t.items,{instancePath:e+"/items",parentData:t,parentDataProperty:"items",rootData:a,dynamicAnchors:o})||(r=r===null?ni.errors:r.concat(ni.errors),s=r.length)),t.collectionFormat!==void 0&&(Lc(t.collectionFormat,{instancePath:e+"/collectionFormat",parentData:t,parentDataProperty:"collectionFormat",rootData:a,dynamicAnchors:o})||(r=r===null?Lc.errors:r.concat(Lc.errors),s=r.length)),t.default!==void 0&&Wf(t.default,{instancePath:e+"/default",parentData:t,parentDataProperty:"default",rootData:a,dynamicAnchors:o}),t.maximum!==void 0&&(On(t.maximum,{instancePath:e+"/maximum",parentData:t,parentDataProperty:"maximum",rootData:a,dynamicAnchors:o})||(r=r===null?On.errors:r.concat(On.errors),s=r.length)),t.exclusiveMaximum!==void 0&&(En(t.exclusiveMaximum,{instancePath:e+"/exclusiveMaximum",parentData:t,parentDataProperty:"exclusiveMaximum",rootData:a,dynamicAnchors:o})||(r=r===null?En.errors:r.concat(En.errors),s=r.length)),t.minimum!==void 0&&(In(t.minimum,{instancePath:e+"/minimum",parentData:t,parentDataProperty:"minimum",rootData:a,dynamicAnchors:o})||(r=r===null?In.errors:r.concat(In.errors),s=r.length)),t.exclusiveMinimum!==void 0&&(Cn(t.exclusiveMinimum,{instancePath:e+"/exclusiveMinimum",parentData:t,parentDataProperty:"exclusiveMinimum",rootData:a,dynamicAnchors:o})||(r=r===null?Cn.errors:r.concat(Cn.errors),s=r.length)),t.maxLength!==void 0&&(Tn(t.maxLength,{instancePath:e+"/maxLength",parentData:t,parentDataProperty:"maxLength",rootData:a,dynamicAnchors:o})||(r=r===null?Tn.errors:r.concat(Tn.errors),s=r.length)),t.minLength!==void 0&&(jn(t.minLength,{instancePath:e+"/minLength",parentData:t,parentDataProperty:"minLength",rootData:a,dynamicAnchors:o})||(r=r===null?jn.errors:r.concat(jn.errors),s=r.length)),t.pattern!==void 0&&(Mn(t.pattern,{instancePath:e+"/pattern",parentData:t,parentDataProperty:"pattern",rootData:a,dynamicAnchors:o})||(r=r===null?Mn.errors:r.concat(Mn.errors),s=r.length)),t.maxItems!==void 0&&(Rn(t.maxItems,{instancePath:e+"/maxItems",parentData:t,parentDataProperty:"maxItems",rootData:a,dynamicAnchors:o})||(r=r===null?Rn.errors:r.concat(Rn.errors),s=r.length)),t.minItems!==void 0&&(Nn(t.minItems,{instancePath:e+"/minItems",parentData:t,parentDataProperty:"minItems",rootData:a,dynamicAnchors:o})||(r=r===null?Nn.errors:r.concat(Nn.errors),s=r.length)),t.uniqueItems!==void 0&&(Ln(t.uniqueItems,{instancePath:e+"/uniqueItems",parentData:t,parentDataProperty:"uniqueItems",rootData:a,dynamicAnchors:o})||(r=r===null?Ln.errors:r.concat(Ln.errors),s=r.length)),t.enum!==void 0&&(Fn(t.enum,{instancePath:e+"/enum",parentData:t,parentDataProperty:"enum",rootData:a,dynamicAnchors:o})||(r=r===null?Fn.errors:r.concat(Fn.errors),s=r.length)),t.multipleOf!==void 0&&(qn(t.multipleOf,{instancePath:e+"/multipleOf",parentData:t,parentDataProperty:"multipleOf",rootData:a,dynamicAnchors:o})||(r=r===null?qn.errors:r.concat(qn.errors),s=r.length));for(const l in t)Je.test(l)&&gr(t[l],{instancePath:e+"/"+l.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:t,parentDataProperty:l,rootData:a,dynamicAnchors:o})}return Dm.errors=r,s===0}Dm.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};const e$={additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},required:["required"],properties:{required:{type:"boolean",enum:[!0],description:"Determines whether or not this parameter is required or optional."},in:{type:"string",description:"Determines the location of the parameter.",enum:["path"]},description:{type:"string",description:"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},name:{type:"string",description:"The name of the parameter."},type:{type:"string",enum:["string","number","boolean","integer","array"]},format:{type:"string"},items:{$ref:"#/definitions/primitivesItems"},collectionFormat:{$ref:"#/definitions/collectionFormat"},default:{$ref:"#/definitions/default"},maximum:{$ref:"#/definitions/maximum"},exclusiveMaximum:{$ref:"#/definitions/exclusiveMaximum"},minimum:{$ref:"#/definitions/minimum"},exclusiveMinimum:{$ref:"#/definitions/exclusiveMinimum"},maxLength:{$ref:"#/definitions/maxLength"},minLength:{$ref:"#/definitions/minLength"},pattern:{$ref:"#/definitions/pattern"},maxItems:{$ref:"#/definitions/maxItems"},minItems:{$ref:"#/definitions/minItems"},uniqueItems:{$ref:"#/definitions/uniqueItems"},enum:{$ref:"#/definitions/enum"},multipleOf:{$ref:"#/definitions/multipleOf"}}};function km(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=km.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.required===void 0){const l={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"required"},message:"must have required property 'required'"};r===null?r=[l]:r.push(l),s++}for(const l in t)if(!Qi.call(e$.properties,l)&&!Je.test(l)){const u={instancePath:e,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"};r===null?r=[u]:r.push(u),s++}if(t.required!==void 0){let l=t.required;if(typeof l!="boolean"){const u={instancePath:e+"/required",schemaPath:"#/properties/required/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};r===null?r=[u]:r.push(u),s++}if(l!==!0){const u={instancePath:e+"/required",schemaPath:"#/properties/required/enum",keyword:"enum",params:{allowedValues:e$.properties.required.enum},message:"must be equal to one of the allowed values"};r===null?r=[u]:r.push(u),s++}}if(t.in!==void 0){let l=t.in;if(typeof l!="string"){const u={instancePath:e+"/in",schemaPath:"#/properties/in/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[u]:r.push(u),s++}if(l!=="path"){const u={instancePath:e+"/in",schemaPath:"#/properties/in/enum",keyword:"enum",params:{allowedValues:e$.properties.in.enum},message:"must be equal to one of the allowed values"};r===null?r=[u]:r.push(u),s++}}if(t.description!==void 0&&typeof t.description!="string"){const l={instancePath:e+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}if(t.name!==void 0&&typeof t.name!="string"){const l={instancePath:e+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}if(t.type!==void 0){let l=t.type;if(typeof l!="string"){const u={instancePath:e+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[u]:r.push(u),s++}if(l!=="string"&&l!=="number"&&l!=="boolean"&&l!=="integer"&&l!=="array"){const u={instancePath:e+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:e$.properties.type.enum},message:"must be equal to one of the allowed values"};r===null?r=[u]:r.push(u),s++}}if(t.format!==void 0&&typeof t.format!="string"){const l={instancePath:e+"/format",schemaPath:"#/properties/format/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}t.items!==void 0&&(ni(t.items,{instancePath:e+"/items",parentData:t,parentDataProperty:"items",rootData:a,dynamicAnchors:o})||(r=r===null?ni.errors:r.concat(ni.errors),s=r.length)),t.collectionFormat!==void 0&&(ga(t.collectionFormat,{instancePath:e+"/collectionFormat",parentData:t,parentDataProperty:"collectionFormat",rootData:a,dynamicAnchors:o})||(r=r===null?ga.errors:r.concat(ga.errors),s=r.length)),t.default!==void 0&&Wf(t.default,{instancePath:e+"/default",parentData:t,parentDataProperty:"default",rootData:a,dynamicAnchors:o}),t.maximum!==void 0&&(On(t.maximum,{instancePath:e+"/maximum",parentData:t,parentDataProperty:"maximum",rootData:a,dynamicAnchors:o})||(r=r===null?On.errors:r.concat(On.errors),s=r.length)),t.exclusiveMaximum!==void 0&&(En(t.exclusiveMaximum,{instancePath:e+"/exclusiveMaximum",parentData:t,parentDataProperty:"exclusiveMaximum",rootData:a,dynamicAnchors:o})||(r=r===null?En.errors:r.concat(En.errors),s=r.length)),t.minimum!==void 0&&(In(t.minimum,{instancePath:e+"/minimum",parentData:t,parentDataProperty:"minimum",rootData:a,dynamicAnchors:o})||(r=r===null?In.errors:r.concat(In.errors),s=r.length)),t.exclusiveMinimum!==void 0&&(Cn(t.exclusiveMinimum,{instancePath:e+"/exclusiveMinimum",parentData:t,parentDataProperty:"exclusiveMinimum",rootData:a,dynamicAnchors:o})||(r=r===null?Cn.errors:r.concat(Cn.errors),s=r.length)),t.maxLength!==void 0&&(Tn(t.maxLength,{instancePath:e+"/maxLength",parentData:t,parentDataProperty:"maxLength",rootData:a,dynamicAnchors:o})||(r=r===null?Tn.errors:r.concat(Tn.errors),s=r.length)),t.minLength!==void 0&&(jn(t.minLength,{instancePath:e+"/minLength",parentData:t,parentDataProperty:"minLength",rootData:a,dynamicAnchors:o})||(r=r===null?jn.errors:r.concat(jn.errors),s=r.length)),t.pattern!==void 0&&(Mn(t.pattern,{instancePath:e+"/pattern",parentData:t,parentDataProperty:"pattern",rootData:a,dynamicAnchors:o})||(r=r===null?Mn.errors:r.concat(Mn.errors),s=r.length)),t.maxItems!==void 0&&(Rn(t.maxItems,{instancePath:e+"/maxItems",parentData:t,parentDataProperty:"maxItems",rootData:a,dynamicAnchors:o})||(r=r===null?Rn.errors:r.concat(Rn.errors),s=r.length)),t.minItems!==void 0&&(Nn(t.minItems,{instancePath:e+"/minItems",parentData:t,parentDataProperty:"minItems",rootData:a,dynamicAnchors:o})||(r=r===null?Nn.errors:r.concat(Nn.errors),s=r.length)),t.uniqueItems!==void 0&&(Ln(t.uniqueItems,{instancePath:e+"/uniqueItems",parentData:t,parentDataProperty:"uniqueItems",rootData:a,dynamicAnchors:o})||(r=r===null?Ln.errors:r.concat(Ln.errors),s=r.length)),t.enum!==void 0&&(Fn(t.enum,{instancePath:e+"/enum",parentData:t,parentDataProperty:"enum",rootData:a,dynamicAnchors:o})||(r=r===null?Fn.errors:r.concat(Fn.errors),s=r.length)),t.multipleOf!==void 0&&(qn(t.multipleOf,{instancePath:e+"/multipleOf",parentData:t,parentDataProperty:"multipleOf",rootData:a,dynamicAnchors:o})||(r=r===null?qn.errors:r.concat(qn.errors),s=r.length));for(const l in t)Je.test(l)&&gr(t[l],{instancePath:e+"/"+l.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:t,parentDataProperty:l,rootData:a,dynamicAnchors:o})}return km.errors=r,s===0}function kp(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=kp.evaluated;c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0);const l=s;let u=!1,f=null;const h=s;if(_m(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o})||(r=r===null?_m.errors:r.concat(_m.errors),s=r.length),g=h===s){u=!0,f=0;var d=!0}const m=s;if(xm(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o})||(r=r===null?xm.errors:r.concat(xm.errors),s=r.length),(g=m===s)&&u)u=!1,f=[f,1];else{g&&(u=!0,f=1,d!==!0&&(d=!0));const b=s;if(Dm(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o})||(r=r===null?Dm.errors:r.concat(Dm.errors),s=r.length),(g=b===s)&&u)u=!1,f=[f,2];else{g&&(u=!0,f=2,d!==!0&&(d=!0));const v=s;var g;km(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o})||(r=r===null?km.errors:r.concat(km.errors),s=r.length),(g=v===s)&&u?(u=!1,f=[f,3]):g&&(u=!0,f=3,d!==!0&&(d=!0))}}if(u)s=l,r!==null&&(l?r.length=l:r=null);else{const b={instancePath:e,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas:f},message:"must match exactly one schema in oneOf"};r===null?r=[b]:r.push(b),s++}if(t&&typeof t=="object"&&!Array.isArray(t)){if(t.name===void 0){const b={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"name"},message:"must have required property 'name'"};r===null?r=[b]:r.push(b),s++}if(t.in===void 0){const b={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"in"},message:"must have required property 'in'"};r===null?r=[b]:r.push(b),s++}if(t.type===void 0){const b={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};r===null?r=[b]:r.push(b),s++}}else{const b={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[b]:r.push(b),s++}return kp.errors=r,c.props=d,s===0}function Fl(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Fl.evaluated;c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0);const l=s;let u=!1,f=null;const h=s;if(Sm(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o})||(r=r===null?Sm.errors:r.concat(Sm.errors),s=r.length),h===s){u=!0,f=0;var d=!0}const m=s;if(kp(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o}))var g=kp.evaluated.props;else r=r===null?kp.errors:r.concat(kp.errors),s=r.length;var b;if((b=m===s)&&u?(u=!1,f=[f,1]):b&&(u=!0,f=1,d!==!0&&g!==void 0&&(g===!0?d=!0:(d=d||{},Object.assign(d,g)))),u)s=l,r!==null&&(l?r.length=l:r=null);else{const v={instancePath:e,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas:f},message:"must match exactly one schema in oneOf"};r===null?r=[v]:r.push(v),s++}return Fl.errors=r,c.props=d,s===0}function Fc(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Fc.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),Array.isArray(t)){const h=t.length;for(let g=0;g1){e:for(;m--;)for(d=m;d--;)if(Wr(t[m],t[d])){const g={instancePath:e,schemaPath:"#/uniqueItems",keyword:"uniqueItems",params:{i:m,j:d},message:"must NOT have duplicate items (items ## "+d+" and "+m+" are identical)"};r===null?r=[g]:r.push(g),s++;break e}}}else{const h={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"array"},message:"must be array"};r===null?r=[h]:r.push(h),s++}return Fc.errors=r,s===0}km.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},kp.evaluated={dynamicProps:!0,dynamicItems:!1},Fl.evaluated={dynamicProps:!0,dynamicItems:!1},Fc.evaluated={items:!0,dynamicProps:!1,dynamicItems:!1};const t8=new RegExp("^([0-9]{3})$|^(default)$","u"),r8={type:"object",description:"A deterministic version of a JSON Schema object.",patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},required:["type"],properties:{format:{type:"string"},title:{$ref:"http://json-schema.org/draft-04/schema#/properties/title"},description:{$ref:"http://json-schema.org/draft-04/schema#/properties/description"},default:{$ref:"http://json-schema.org/draft-04/schema#/properties/default"},required:{$ref:"http://json-schema.org/draft-04/schema#/definitions/stringArray"},type:{enum:["file"]},readOnly:{type:"boolean",default:!1},externalDocs:{$ref:"#/definitions/externalDocs"},example:{}},additionalProperties:!1};function Om(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Om.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.type===void 0){const l={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};r===null?r=[l]:r.push(l),s++}for(const l in t)if(!Qi.call(r8.properties,l)&&!Je.test(l)){const u={instancePath:e,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"};r===null?r=[u]:r.push(u),s++}if(t.format!==void 0&&typeof t.format!="string"){const l={instancePath:e+"/format",schemaPath:"#/properties/format/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}if(t.title!==void 0&&(Mc(t.title,{instancePath:e+"/title",parentData:t,parentDataProperty:"title",rootData:a,dynamicAnchors:o})||(r=r===null?Mc.errors:r.concat(Mc.errors),s=r.length)),t.description!==void 0&&(Rc(t.description,{instancePath:e+"/description",parentData:t,parentDataProperty:"description",rootData:a,dynamicAnchors:o})||(r=r===null?Rc.errors:r.concat(Rc.errors),s=r.length)),t.default!==void 0&&Hx(t.default,{instancePath:e+"/default",parentData:t,parentDataProperty:"default",rootData:a,dynamicAnchors:o}),t.required!==void 0&&(Nc(t.required,{instancePath:e+"/required",parentData:t,parentDataProperty:"required",rootData:a,dynamicAnchors:o})||(r=r===null?Nc.errors:r.concat(Nc.errors),s=r.length)),t.type!==void 0&&t.type!=="file"){const l={instancePath:e+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:r8.properties.type.enum},message:"must be equal to one of the allowed values"};r===null?r=[l]:r.push(l),s++}if(t.readOnly!==void 0&&typeof t.readOnly!="boolean"){const l={instancePath:e+"/readOnly",schemaPath:"#/properties/readOnly/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};r===null?r=[l]:r.push(l),s++}t.externalDocs!==void 0&&(di(t.externalDocs,{instancePath:e+"/externalDocs",parentData:t,parentDataProperty:"externalDocs",rootData:a,dynamicAnchors:o})||(r=r===null?di.errors:r.concat(di.errors),s=r.length));for(const l in t)Je.test(l)&&gr(t[l],{instancePath:e+"/"+l.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:t,parentDataProperty:l,rootData:a,dynamicAnchors:o})}else{const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[l]:r.push(l),s++}return Om.errors=r,s===0}Om.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};const n8={type:"object",additionalProperties:!1,required:["type"],properties:{type:{type:"string",enum:["string","number","integer","boolean","array"]},format:{type:"string"},items:{$ref:"#/definitions/primitivesItems"},collectionFormat:{$ref:"#/definitions/collectionFormat"},default:{$ref:"#/definitions/default"},maximum:{$ref:"#/definitions/maximum"},exclusiveMaximum:{$ref:"#/definitions/exclusiveMaximum"},minimum:{$ref:"#/definitions/minimum"},exclusiveMinimum:{$ref:"#/definitions/exclusiveMinimum"},maxLength:{$ref:"#/definitions/maxLength"},minLength:{$ref:"#/definitions/minLength"},pattern:{$ref:"#/definitions/pattern"},maxItems:{$ref:"#/definitions/maxItems"},minItems:{$ref:"#/definitions/minItems"},uniqueItems:{$ref:"#/definitions/uniqueItems"},enum:{$ref:"#/definitions/enum"},multipleOf:{$ref:"#/definitions/multipleOf"},description:{type:"string"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}};function Em(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Em.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.type===void 0){const l={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};r===null?r=[l]:r.push(l),s++}for(const l in t)if(!Qi.call(n8.properties,l)&&!Je.test(l)){const u={instancePath:e,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"};r===null?r=[u]:r.push(u),s++}if(t.type!==void 0){let l=t.type;if(typeof l!="string"){const u={instancePath:e+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[u]:r.push(u),s++}if(l!=="string"&&l!=="number"&&l!=="integer"&&l!=="boolean"&&l!=="array"){const u={instancePath:e+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:n8.properties.type.enum},message:"must be equal to one of the allowed values"};r===null?r=[u]:r.push(u),s++}}if(t.format!==void 0&&typeof t.format!="string"){const l={instancePath:e+"/format",schemaPath:"#/properties/format/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}if(t.items!==void 0&&(ni(t.items,{instancePath:e+"/items",parentData:t,parentDataProperty:"items",rootData:a,dynamicAnchors:o})||(r=r===null?ni.errors:r.concat(ni.errors),s=r.length)),t.collectionFormat!==void 0&&(ga(t.collectionFormat,{instancePath:e+"/collectionFormat",parentData:t,parentDataProperty:"collectionFormat",rootData:a,dynamicAnchors:o})||(r=r===null?ga.errors:r.concat(ga.errors),s=r.length)),t.default!==void 0&&Wf(t.default,{instancePath:e+"/default",parentData:t,parentDataProperty:"default",rootData:a,dynamicAnchors:o}),t.maximum!==void 0&&(On(t.maximum,{instancePath:e+"/maximum",parentData:t,parentDataProperty:"maximum",rootData:a,dynamicAnchors:o})||(r=r===null?On.errors:r.concat(On.errors),s=r.length)),t.exclusiveMaximum!==void 0&&(En(t.exclusiveMaximum,{instancePath:e+"/exclusiveMaximum",parentData:t,parentDataProperty:"exclusiveMaximum",rootData:a,dynamicAnchors:o})||(r=r===null?En.errors:r.concat(En.errors),s=r.length)),t.minimum!==void 0&&(In(t.minimum,{instancePath:e+"/minimum",parentData:t,parentDataProperty:"minimum",rootData:a,dynamicAnchors:o})||(r=r===null?In.errors:r.concat(In.errors),s=r.length)),t.exclusiveMinimum!==void 0&&(Cn(t.exclusiveMinimum,{instancePath:e+"/exclusiveMinimum",parentData:t,parentDataProperty:"exclusiveMinimum",rootData:a,dynamicAnchors:o})||(r=r===null?Cn.errors:r.concat(Cn.errors),s=r.length)),t.maxLength!==void 0&&(Tn(t.maxLength,{instancePath:e+"/maxLength",parentData:t,parentDataProperty:"maxLength",rootData:a,dynamicAnchors:o})||(r=r===null?Tn.errors:r.concat(Tn.errors),s=r.length)),t.minLength!==void 0&&(jn(t.minLength,{instancePath:e+"/minLength",parentData:t,parentDataProperty:"minLength",rootData:a,dynamicAnchors:o})||(r=r===null?jn.errors:r.concat(jn.errors),s=r.length)),t.pattern!==void 0&&(Mn(t.pattern,{instancePath:e+"/pattern",parentData:t,parentDataProperty:"pattern",rootData:a,dynamicAnchors:o})||(r=r===null?Mn.errors:r.concat(Mn.errors),s=r.length)),t.maxItems!==void 0&&(Rn(t.maxItems,{instancePath:e+"/maxItems",parentData:t,parentDataProperty:"maxItems",rootData:a,dynamicAnchors:o})||(r=r===null?Rn.errors:r.concat(Rn.errors),s=r.length)),t.minItems!==void 0&&(Nn(t.minItems,{instancePath:e+"/minItems",parentData:t,parentDataProperty:"minItems",rootData:a,dynamicAnchors:o})||(r=r===null?Nn.errors:r.concat(Nn.errors),s=r.length)),t.uniqueItems!==void 0&&(Ln(t.uniqueItems,{instancePath:e+"/uniqueItems",parentData:t,parentDataProperty:"uniqueItems",rootData:a,dynamicAnchors:o})||(r=r===null?Ln.errors:r.concat(Ln.errors),s=r.length)),t.enum!==void 0&&(Fn(t.enum,{instancePath:e+"/enum",parentData:t,parentDataProperty:"enum",rootData:a,dynamicAnchors:o})||(r=r===null?Fn.errors:r.concat(Fn.errors),s=r.length)),t.multipleOf!==void 0&&(qn(t.multipleOf,{instancePath:e+"/multipleOf",parentData:t,parentDataProperty:"multipleOf",rootData:a,dynamicAnchors:o})||(r=r===null?qn.errors:r.concat(qn.errors),s=r.length)),t.description!==void 0&&typeof t.description!="string"){const l={instancePath:e+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}for(const l in t)Je.test(l)&&gr(t[l],{instancePath:e+"/"+l.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:t,parentDataProperty:l,rootData:a,dynamicAnchors:o})}else{const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[l]:r.push(l),s++}return Em.errors=r,s===0}function Im(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Im.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t))for(const l in t)Em(t[l],{instancePath:e+"/"+l.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:t,parentDataProperty:l,rootData:a,dynamicAnchors:o})||(r=r===null?Em.errors:r.concat(Em.errors),s=r.length);else{const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[l]:r.push(l),s++}return Im.errors=r,s===0}function Cm(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Cm.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),!(t&&typeof t=="object"&&!Array.isArray(t))){const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[l]:r.push(l),s++}return Cm.errors=r,s===0}function qc(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=qc.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.description===void 0){const f={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"description"},message:"must have required property 'description'"};r===null?r=[f]:r.push(f),s++}for(const f in t)if(f!=="description"&&f!=="schema"&&f!=="headers"&&f!=="examples"&&!Je.test(f)){const h={instancePath:e,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"};r===null?r=[h]:r.push(h),s++}if(t.description!==void 0&&typeof t.description!="string"){const f={instancePath:e+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[f]:r.push(f),s++}if(t.schema!==void 0){let f=t.schema;const h=s;let d=!1,m=null;const g=s;if(ds(f,{instancePath:e+"/schema",parentData:t,parentDataProperty:"schema",rootData:a,dynamicAnchors:o})||(r=r===null?ds.errors:r.concat(ds.errors),s=r.length),g===s){d=!0,m=0;var l=!0}const b=s;var u;if(Om(f,{instancePath:e+"/schema",parentData:t,parentDataProperty:"schema",rootData:a,dynamicAnchors:o})||(r=r===null?Om.errors:r.concat(Om.errors),s=r.length),(u=b===s)&&d?(d=!1,m=[m,1]):u&&(d=!0,m=1,l!==!0&&(l=!0)),d)s=h,r!==null&&(h?r.length=h:r=null);else{const v={instancePath:e+"/schema",schemaPath:"#/properties/schema/oneOf",keyword:"oneOf",params:{passingSchemas:m},message:"must match exactly one schema in oneOf"};r===null?r=[v]:r.push(v),s++}}t.headers!==void 0&&(Im(t.headers,{instancePath:e+"/headers",parentData:t,parentDataProperty:"headers",rootData:a,dynamicAnchors:o})||(r=r===null?Im.errors:r.concat(Im.errors),s=r.length)),t.examples!==void 0&&(Cm(t.examples,{instancePath:e+"/examples",parentData:t,parentDataProperty:"examples",rootData:a,dynamicAnchors:o})||(r=r===null?Cm.errors:r.concat(Cm.errors),s=r.length));for(const f in t)Je.test(f)&&gr(t[f],{instancePath:e+"/"+f.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:t,parentDataProperty:f,rootData:a,dynamicAnchors:o})}else{const f={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[f]:r.push(f),s++}return qc.errors=r,s===0}function Tm(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Tm.evaluated;c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0);const l=s;let u=!0;const f=s;if(s===f)if(t&&typeof t=="object"&&!Array.isArray(t)){if(t.$ref===void 0){const g={};r===null?r=[g]:r.push(g),s++}}else{const g={};r===null?r=[g]:r.push(g),s++}var h=f===s;let d;if(s=l,r!==null&&(l?r.length=l:r=null),h){const g=s;if(jc(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o})||(r=r===null?jc.errors:r.concat(jc.errors),s=r.length),u=h=g===s,u)var m=!0;d="then"}else{const g=s;qc(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o})||(r=r===null?qc.errors:r.concat(qc.errors),s=r.length),u=h=g===s,u&&m!==!0&&(m=!0),d="else"}if(!u){const g={instancePath:e,schemaPath:"#/if",keyword:"if",params:{failingKeyword:d},message:'must match "'+d+'" schema'};r===null?r=[g]:r.push(g),s++}return Tm.errors=r,c.props=m,s===0}function jm(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=jm.evaluated;c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0);const l=s,u=s;if(s===u)if(t&&typeof t=="object"&&!Array.isArray(t)){const f=s;for(const h in t)if(!Je.test(h)){const d={};r===null?r=[d]:r.push(d),s++;break}if(f===s){for(const h in t)if(Je.test(h)){const d=s;if(gr(t[h],{instancePath:e+"/"+h.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:t,parentDataProperty:h,rootData:a,dynamicAnchors:o}),d!==s)break}}}else{const f={};r===null?r=[f]:r.push(f),s++}if(u===s){const f={instancePath:e,schemaPath:"#/not",keyword:"not",params:{},message:"must NOT be valid"};r===null?r=[f]:r.push(f),s++}else s=l,r!==null&&(l?r.length=l:r=null);if(t&&typeof t=="object"&&!Array.isArray(t)){if(Object.keys(t).length<1){const f={instancePath:e,schemaPath:"#/minProperties",keyword:"minProperties",params:{limit:1},message:"must NOT have fewer than 1 properties"};r===null?r=[f]:r.push(f),s++}for(const f in t)if(!t8.test(f)&&!Je.test(f)){const h={instancePath:e,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"};r===null?r=[h]:r.push(h),s++}for(const f in t)t8.test(f)&&(Tm(t[f],{instancePath:e+"/"+f.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:t,parentDataProperty:f,rootData:a,dynamicAnchors:o})||(r=r===null?Tm.errors:r.concat(Tm.errors),s=r.length));for(const f in t)Je.test(f)&&gr(t[f],{instancePath:e+"/"+f.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:t,parentDataProperty:f,rootData:a,dynamicAnchors:o})}else{const f={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[f]:r.push(f),s++}return jm.errors=r,s===0}function Mm(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Mm.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t))for(const l in t){let u=t[l];if(Array.isArray(u)){const f=u.length;for(let m=0;m1){const m={};for(;d--;){let g=u[d];if(typeof g=="string"){if(typeof m[g]=="number"){h=m[g];const b={instancePath:e+"/"+l.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/additionalProperties/uniqueItems",keyword:"uniqueItems",params:{i:d,j:h},message:"must NOT have duplicate items (items ## "+h+" and "+d+" are identical)"};r===null?r=[b]:r.push(b),s++;break}m[g]=d}}}}else{const f={instancePath:e+"/"+l.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/additionalProperties/type",keyword:"type",params:{type:"array"},message:"must be array"};r===null?r=[f]:r.push(f),s++}}else{const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[l]:r.push(l),s++}return Mm.errors=r,s===0}function zc(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=zc.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),Array.isArray(t)){const l=t.length;for(let h=0;h1){e:for(;f--;)for(u=f;u--;)if(Wr(t[f],t[u])){const h={instancePath:e,schemaPath:"#/uniqueItems",keyword:"uniqueItems",params:{i:f,j:u},message:"must NOT have duplicate items (items ## "+u+" and "+f+" are identical)"};r===null?r=[h]:r.push(h),s++;break e}}}else{const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"array"},message:"must be array"};r===null?r=[l]:r.push(l),s++}return zc.errors=r,s===0}function sn(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=sn.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.responses===void 0){const l={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"responses"},message:"must have required property 'responses'"};r===null?r=[l]:r.push(l),s++}for(const l in t)if(!Qi.call(_tt.properties,l)&&!Je.test(l)){const u={instancePath:e,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"};r===null?r=[u]:r.push(u),s++}if(t.tags!==void 0){let l=t.tags;if(Array.isArray(l)){const u=l.length;for(let d=0;d1){const d={};for(;h--;){let m=l[h];if(typeof m=="string"){if(typeof d[m]=="number"){f=d[m];const g={instancePath:e+"/tags",schemaPath:"#/properties/tags/uniqueItems",keyword:"uniqueItems",params:{i:h,j:f},message:"must NOT have duplicate items (items ## "+f+" and "+h+" are identical)"};r===null?r=[g]:r.push(g),s++;break}d[m]=h}}}}else{const u={instancePath:e+"/tags",schemaPath:"#/properties/tags/type",keyword:"type",params:{type:"array"},message:"must be array"};r===null?r=[u]:r.push(u),s++}}if(t.summary!==void 0&&typeof t.summary!="string"){const l={instancePath:e+"/summary",schemaPath:"#/properties/summary/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}if(t.description!==void 0&&typeof t.description!="string"){const l={instancePath:e+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}if(t.externalDocs!==void 0&&(di(t.externalDocs,{instancePath:e+"/externalDocs",parentData:t,parentDataProperty:"externalDocs",rootData:a,dynamicAnchors:o})||(r=r===null?di.errors:r.concat(di.errors),s=r.length)),t.operationId!==void 0&&typeof t.operationId!="string"){const l={instancePath:e+"/operationId",schemaPath:"#/properties/operationId/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}if(t.produces!==void 0&&(ca(t.produces,{instancePath:e+"/produces",parentData:t,parentDataProperty:"produces",rootData:a,dynamicAnchors:o})||(r=r===null?ca.errors:r.concat(ca.errors),s=r.length)),t.consumes!==void 0&&(ca(t.consumes,{instancePath:e+"/consumes",parentData:t,parentDataProperty:"consumes",rootData:a,dynamicAnchors:o})||(r=r===null?ca.errors:r.concat(ca.errors),s=r.length)),t.parameters!==void 0&&(Fc(t.parameters,{instancePath:e+"/parameters",parentData:t,parentDataProperty:"parameters",rootData:a,dynamicAnchors:o})||(r=r===null?Fc.errors:r.concat(Fc.errors),s=r.length)),t.responses!==void 0&&(jm(t.responses,{instancePath:e+"/responses",parentData:t,parentDataProperty:"responses",rootData:a,dynamicAnchors:o})||(r=r===null?jm.errors:r.concat(jm.errors),s=r.length)),t.schemes!==void 0&&(Tc(t.schemes,{instancePath:e+"/schemes",parentData:t,parentDataProperty:"schemes",rootData:a,dynamicAnchors:o})||(r=r===null?Tc.errors:r.concat(Tc.errors),s=r.length)),t.deprecated!==void 0&&typeof t.deprecated!="boolean"){const l={instancePath:e+"/deprecated",schemaPath:"#/properties/deprecated/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};r===null?r=[l]:r.push(l),s++}t.security!==void 0&&(zc(t.security,{instancePath:e+"/security",parentData:t,parentDataProperty:"security",rootData:a,dynamicAnchors:o})||(r=r===null?zc.errors:r.concat(zc.errors),s=r.length));for(const l in t)Je.test(l)&&gr(t[l],{instancePath:e+"/"+l.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:t,parentDataProperty:l,rootData:a,dynamicAnchors:o})}else{const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[l]:r.push(l),s++}return sn.errors=r,s===0}function Rm(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Rm.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){for(const l in t)if(!Qi.call(Stt.properties,l)&&!Je.test(l)){const u={instancePath:e,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"};r===null?r=[u]:r.push(u),s++}if(t.$ref!==void 0&&typeof t.$ref!="string"){const l={instancePath:e+"/$ref",schemaPath:"#/properties/%24ref/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}t.get!==void 0&&(sn(t.get,{instancePath:e+"/get",parentData:t,parentDataProperty:"get",rootData:a,dynamicAnchors:o})||(r=r===null?sn.errors:r.concat(sn.errors),s=r.length)),t.put!==void 0&&(sn(t.put,{instancePath:e+"/put",parentData:t,parentDataProperty:"put",rootData:a,dynamicAnchors:o})||(r=r===null?sn.errors:r.concat(sn.errors),s=r.length)),t.post!==void 0&&(sn(t.post,{instancePath:e+"/post",parentData:t,parentDataProperty:"post",rootData:a,dynamicAnchors:o})||(r=r===null?sn.errors:r.concat(sn.errors),s=r.length)),t.delete!==void 0&&(sn(t.delete,{instancePath:e+"/delete",parentData:t,parentDataProperty:"delete",rootData:a,dynamicAnchors:o})||(r=r===null?sn.errors:r.concat(sn.errors),s=r.length)),t.options!==void 0&&(sn(t.options,{instancePath:e+"/options",parentData:t,parentDataProperty:"options",rootData:a,dynamicAnchors:o})||(r=r===null?sn.errors:r.concat(sn.errors),s=r.length)),t.head!==void 0&&(sn(t.head,{instancePath:e+"/head",parentData:t,parentDataProperty:"head",rootData:a,dynamicAnchors:o})||(r=r===null?sn.errors:r.concat(sn.errors),s=r.length)),t.patch!==void 0&&(sn(t.patch,{instancePath:e+"/patch",parentData:t,parentDataProperty:"patch",rootData:a,dynamicAnchors:o})||(r=r===null?sn.errors:r.concat(sn.errors),s=r.length)),t.parameters!==void 0&&(Fc(t.parameters,{instancePath:e+"/parameters",parentData:t,parentDataProperty:"parameters",rootData:a,dynamicAnchors:o})||(r=r===null?Fc.errors:r.concat(Fc.errors),s=r.length));for(const l in t)Je.test(l)&&gr(t[l],{instancePath:e+"/"+l.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:t,parentDataProperty:l,rootData:a,dynamicAnchors:o})}else{const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[l]:r.push(l),s++}return Rm.errors=r,s===0}function Nm(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Nm.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){for(const l in t)if(!Je.test(l)&&!Ag.test(l)){const u={instancePath:e,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"};r===null?r=[u]:r.push(u),s++}for(const l in t)Je.test(l)&&gr(t[l],{instancePath:e+"/"+l.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:t,parentDataProperty:l,rootData:a,dynamicAnchors:o});for(const l in t)Ag.test(l)&&(Rm(t[l],{instancePath:e+"/"+l.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:t,parentDataProperty:l,rootData:a,dynamicAnchors:o})||(r=r===null?Rm.errors:r.concat(Rm.errors),s=r.length))}else{const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[l]:r.push(l),s++}return Nm.errors=r,s===0}function Lm(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Lm.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t))for(const l in t)ds(t[l],{instancePath:e+"/"+l.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:t,parentDataProperty:l,rootData:a,dynamicAnchors:o})||(r=r===null?ds.errors:r.concat(ds.errors),s=r.length);else{const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[l]:r.push(l),s++}return Lm.errors=r,s===0}function Fm(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Fm.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t))for(const l in t)Fl(t[l],{instancePath:e+"/"+l.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:t,parentDataProperty:l,rootData:a,dynamicAnchors:o})||(r=r===null?Fl.errors:r.concat(Fl.errors),s=r.length);else{const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[l]:r.push(l),s++}return Fm.errors=r,s===0}function qm(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=qm.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t))for(const l in t)qc(t[l],{instancePath:e+"/"+l.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:t,parentDataProperty:l,rootData:a,dynamicAnchors:o})||(r=r===null?qc.errors:r.concat(qc.errors),s=r.length);else{const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[l]:r.push(l),s++}return qm.errors=r,s===0}Em.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},Im.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},Cm.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},qc.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},Tm.evaluated={dynamicProps:!0,dynamicItems:!1},jm.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},Mm.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},zc.evaluated={items:!0,dynamicProps:!1,dynamicItems:!1},sn.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},Rm.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},Nm.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},Lm.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},Fm.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},qm.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};const i8={type:"object",additionalProperties:{oneOf:[{$ref:"#/definitions/basicAuthenticationSecurity"},{$ref:"#/definitions/apiKeySecurity"},{$ref:"#/definitions/oauth2ImplicitSecurity"},{$ref:"#/definitions/oauth2PasswordSecurity"},{$ref:"#/definitions/oauth2ApplicationSecurity"},{$ref:"#/definitions/oauth2AccessCodeSecurity"}]},errorMessage:{properties:{basic:"Invalid basic authentication security definition",apiKey:"Invalid apiKey authentication security definition",oauth2:"Invalid oauth2 authentication security definition"},_:"Invalid security securityDefinitions"}},Itt={type:"object",additionalProperties:!1,required:["type"],properties:{type:{enum:["basic"]},description:{type:"string"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}};function zm(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=zm.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.type===void 0){const l={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};r===null?r=[l]:r.push(l),s++}for(const l in t)if(l!=="type"&&l!=="description"&&!Je.test(l)){const u={instancePath:e,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"};r===null?r=[u]:r.push(u),s++}if(t.type!==void 0&&t.type!=="basic"){const l={instancePath:e+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:Itt.properties.type.enum},message:"must be equal to one of the allowed values"};r===null?r=[l]:r.push(l),s++}if(t.description!==void 0&&typeof t.description!="string"){const l={instancePath:e+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}for(const l in t)Je.test(l)&&gr(t[l],{instancePath:e+"/"+l.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:t,parentDataProperty:l,rootData:a,dynamicAnchors:o})}else{const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[l]:r.push(l),s++}return zm.errors=r,s===0}zm.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};const a8={type:"object",additionalProperties:!1,required:["type","name","in"],properties:{type:{enum:["apiKey"]},name:{type:"string"},in:{enum:["header","query"]},description:{type:"string"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}};function Um(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Um.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.type===void 0){const l={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};r===null?r=[l]:r.push(l),s++}if(t.name===void 0){const l={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"name"},message:"must have required property 'name'"};r===null?r=[l]:r.push(l),s++}if(t.in===void 0){const l={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"in"},message:"must have required property 'in'"};r===null?r=[l]:r.push(l),s++}for(const l in t)if(l!=="type"&&l!=="name"&&l!=="in"&&l!=="description"&&!Je.test(l)){const u={instancePath:e,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"};r===null?r=[u]:r.push(u),s++}if(t.type!==void 0&&t.type!=="apiKey"){const l={instancePath:e+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:a8.properties.type.enum},message:"must be equal to one of the allowed values"};r===null?r=[l]:r.push(l),s++}if(t.name!==void 0&&typeof t.name!="string"){const l={instancePath:e+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}if(t.in!==void 0){let l=t.in;if(l!=="header"&&l!=="query"){const u={instancePath:e+"/in",schemaPath:"#/properties/in/enum",keyword:"enum",params:{allowedValues:a8.properties.in.enum},message:"must be equal to one of the allowed values"};r===null?r=[u]:r.push(u),s++}}if(t.description!==void 0&&typeof t.description!="string"){const l={instancePath:e+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}for(const l in t)Je.test(l)&&gr(t[l],{instancePath:e+"/"+l.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:t,parentDataProperty:l,rootData:a,dynamicAnchors:o})}else{const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[l]:r.push(l),s++}return Um.errors=r,s===0}Um.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};const s8={type:"object",additionalProperties:!1,required:["type","flow","authorizationUrl","scopes"],properties:{type:{enum:["oauth2"]},flow:{enum:["implicit"]},scopes:{$ref:"#/definitions/oauth2Scopes"},authorizationUrl:{type:"string",format:"uri"},description:{type:"string"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}};function va(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=va.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){for(const l in t)if(typeof t[l]!="string"){const u={instancePath:e+"/"+l.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[u]:r.push(u),s++}}else{const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[l]:r.push(l),s++}return va.errors=r,s===0}function Bm(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Bm.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.type===void 0){const l={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};r===null?r=[l]:r.push(l),s++}if(t.flow===void 0){const l={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"flow"},message:"must have required property 'flow'"};r===null?r=[l]:r.push(l),s++}if(t.authorizationUrl===void 0){const l={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"authorizationUrl"},message:"must have required property 'authorizationUrl'"};r===null?r=[l]:r.push(l),s++}if(t.scopes===void 0){const l={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"scopes"},message:"must have required property 'scopes'"};r===null?r=[l]:r.push(l),s++}for(const l in t)if(l!=="type"&&l!=="flow"&&l!=="scopes"&&l!=="authorizationUrl"&&l!=="description"&&!Je.test(l)){const u={instancePath:e,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"};r===null?r=[u]:r.push(u),s++}if(t.type!==void 0&&t.type!=="oauth2"){const l={instancePath:e+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:s8.properties.type.enum},message:"must be equal to one of the allowed values"};r===null?r=[l]:r.push(l),s++}if(t.flow!==void 0&&t.flow!=="implicit"){const l={instancePath:e+"/flow",schemaPath:"#/properties/flow/enum",keyword:"enum",params:{allowedValues:s8.properties.flow.enum},message:"must be equal to one of the allowed values"};r===null?r=[l]:r.push(l),s++}if(t.scopes!==void 0&&(va(t.scopes,{instancePath:e+"/scopes",parentData:t,parentDataProperty:"scopes",rootData:a,dynamicAnchors:o})||(r=r===null?va.errors:r.concat(va.errors),s=r.length)),t.authorizationUrl!==void 0){let l=t.authorizationUrl;if(typeof l=="string"){if(!Ci(l)){const u={instancePath:e+"/authorizationUrl",schemaPath:"#/properties/authorizationUrl/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};r===null?r=[u]:r.push(u),s++}}else{const u={instancePath:e+"/authorizationUrl",schemaPath:"#/properties/authorizationUrl/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[u]:r.push(u),s++}}if(t.description!==void 0&&typeof t.description!="string"){const l={instancePath:e+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}for(const l in t)Je.test(l)&&gr(t[l],{instancePath:e+"/"+l.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:t,parentDataProperty:l,rootData:a,dynamicAnchors:o})}else{const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[l]:r.push(l),s++}return Bm.errors=r,s===0}va.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},Bm.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};const o8={type:"object",additionalProperties:!1,required:["type","flow","tokenUrl","scopes"],properties:{type:{enum:["oauth2"]},flow:{enum:["password"]},scopes:{$ref:"#/definitions/oauth2Scopes"},tokenUrl:{type:"string",format:"uri"},description:{type:"string"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}};function Vm(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Vm.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.type===void 0){const l={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};r===null?r=[l]:r.push(l),s++}if(t.flow===void 0){const l={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"flow"},message:"must have required property 'flow'"};r===null?r=[l]:r.push(l),s++}if(t.tokenUrl===void 0){const l={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"tokenUrl"},message:"must have required property 'tokenUrl'"};r===null?r=[l]:r.push(l),s++}if(t.scopes===void 0){const l={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"scopes"},message:"must have required property 'scopes'"};r===null?r=[l]:r.push(l),s++}for(const l in t)if(l!=="type"&&l!=="flow"&&l!=="scopes"&&l!=="tokenUrl"&&l!=="description"&&!Je.test(l)){const u={instancePath:e,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"};r===null?r=[u]:r.push(u),s++}if(t.type!==void 0&&t.type!=="oauth2"){const l={instancePath:e+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:o8.properties.type.enum},message:"must be equal to one of the allowed values"};r===null?r=[l]:r.push(l),s++}if(t.flow!==void 0&&t.flow!=="password"){const l={instancePath:e+"/flow",schemaPath:"#/properties/flow/enum",keyword:"enum",params:{allowedValues:o8.properties.flow.enum},message:"must be equal to one of the allowed values"};r===null?r=[l]:r.push(l),s++}if(t.scopes!==void 0&&(va(t.scopes,{instancePath:e+"/scopes",parentData:t,parentDataProperty:"scopes",rootData:a,dynamicAnchors:o})||(r=r===null?va.errors:r.concat(va.errors),s=r.length)),t.tokenUrl!==void 0){let l=t.tokenUrl;if(typeof l=="string"){if(!Ci(l)){const u={instancePath:e+"/tokenUrl",schemaPath:"#/properties/tokenUrl/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};r===null?r=[u]:r.push(u),s++}}else{const u={instancePath:e+"/tokenUrl",schemaPath:"#/properties/tokenUrl/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[u]:r.push(u),s++}}if(t.description!==void 0&&typeof t.description!="string"){const l={instancePath:e+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}for(const l in t)Je.test(l)&&gr(t[l],{instancePath:e+"/"+l.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:t,parentDataProperty:l,rootData:a,dynamicAnchors:o})}else{const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[l]:r.push(l),s++}return Vm.errors=r,s===0}function Wm(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Wm.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.type===void 0){const l={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};r===null?r=[l]:r.push(l),s++}if(t.flow===void 0){const l={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"flow"},message:"must have required property 'flow'"};r===null?r=[l]:r.push(l),s++}if(t.tokenUrl===void 0){const l={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"tokenUrl"},message:"must have required property 'tokenUrl'"};r===null?r=[l]:r.push(l),s++}if(t.scopes===void 0){const l={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"scopes"},message:"must have required property 'scopes'"};r===null?r=[l]:r.push(l),s++}for(const l in t)if(l!=="type"&&l!=="flow"&&l!=="scopes"&&l!=="tokenUrl"&&l!=="description"&&!Je.test(l)){const u={instancePath:e,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"};r===null?r=[u]:r.push(u),s++}if(t.type!==void 0&&t.type!=="oauth2"){const l={instancePath:e+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue:"oauth2"},message:"must be equal to constant"};r===null?r=[l]:r.push(l),s++}if(t.flow!==void 0&&t.flow!=="application"){const l={instancePath:e+"/flow",schemaPath:"#/properties/flow/const",keyword:"const",params:{allowedValue:"application"},message:"must be equal to constant"};r===null?r=[l]:r.push(l),s++}if(t.scopes!==void 0&&(va(t.scopes,{instancePath:e+"/scopes",parentData:t,parentDataProperty:"scopes",rootData:a,dynamicAnchors:o})||(r=r===null?va.errors:r.concat(va.errors),s=r.length)),t.tokenUrl!==void 0){let l=t.tokenUrl;if(typeof l=="string"){if(!Ci(l)){const u={instancePath:e+"/tokenUrl",schemaPath:"#/properties/tokenUrl/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};r===null?r=[u]:r.push(u),s++}}else{const u={instancePath:e+"/tokenUrl",schemaPath:"#/properties/tokenUrl/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[u]:r.push(u),s++}}if(t.description!==void 0&&typeof t.description!="string"){const l={instancePath:e+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}for(const l in t)Je.test(l)&&gr(t[l],{instancePath:e+"/"+l.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:t,parentDataProperty:l,rootData:a,dynamicAnchors:o})}else{const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[l]:r.push(l),s++}return Wm.errors=r,s===0}function Hm(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Hm.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.type===void 0){const l={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};r===null?r=[l]:r.push(l),s++}if(t.flow===void 0){const l={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"flow"},message:"must have required property 'flow'"};r===null?r=[l]:r.push(l),s++}if(t.authorizationUrl===void 0){const l={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"authorizationUrl"},message:"must have required property 'authorizationUrl'"};r===null?r=[l]:r.push(l),s++}if(t.tokenUrl===void 0){const l={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"tokenUrl"},message:"must have required property 'tokenUrl'"};r===null?r=[l]:r.push(l),s++}if(t.scopes===void 0){const l={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"scopes"},message:"must have required property 'scopes'"};r===null?r=[l]:r.push(l),s++}for(const l in t)if(l!=="type"&&l!=="flow"&&l!=="scopes"&&l!=="authorizationUrl"&&l!=="tokenUrl"&&l!=="description"&&!Je.test(l)){const u={instancePath:e,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"};r===null?r=[u]:r.push(u),s++}if(t.type!==void 0&&t.type!=="oauth2"){const l={instancePath:e+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue:"oauth2"},message:"must be equal to constant"};r===null?r=[l]:r.push(l),s++}if(t.flow!==void 0&&t.flow!=="accessCode"){const l={instancePath:e+"/flow",schemaPath:"#/properties/flow/const",keyword:"const",params:{allowedValue:"accessCode"},message:"must be equal to constant"};r===null?r=[l]:r.push(l),s++}if(t.scopes!==void 0&&(va(t.scopes,{instancePath:e+"/scopes",parentData:t,parentDataProperty:"scopes",rootData:a,dynamicAnchors:o})||(r=r===null?va.errors:r.concat(va.errors),s=r.length)),t.authorizationUrl!==void 0){let l=t.authorizationUrl;if(typeof l=="string"){if(!Ci(l)){const u={instancePath:e+"/authorizationUrl",schemaPath:"#/properties/authorizationUrl/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};r===null?r=[u]:r.push(u),s++}}else{const u={instancePath:e+"/authorizationUrl",schemaPath:"#/properties/authorizationUrl/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[u]:r.push(u),s++}}if(t.tokenUrl!==void 0){let l=t.tokenUrl;if(typeof l=="string"){if(!Ci(l)){const u={instancePath:e+"/tokenUrl",schemaPath:"#/properties/tokenUrl/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};r===null?r=[u]:r.push(u),s++}}else{const u={instancePath:e+"/tokenUrl",schemaPath:"#/properties/tokenUrl/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[u]:r.push(u),s++}}if(t.description!==void 0&&typeof t.description!="string"){const l={instancePath:e+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}for(const l in t)Je.test(l)&&gr(t[l],{instancePath:e+"/"+l.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:t,parentDataProperty:l,rootData:a,dynamicAnchors:o})}else{const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[l]:r.push(l),s++}return Hm.errors=r,s===0}Vm.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},Wm.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},Hm.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};const Ctt=new RegExp("^/([^/]*)(?:/|$)");function Gm(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Gm.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t))for(const f in t){let h=t[f];const d=s;let m=!1,g=null;const b=s;if(zm(h,{instancePath:e+"/"+f.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:t,parentDataProperty:f,rootData:a,dynamicAnchors:o})||(r=r===null?zm.errors:r.concat(zm.errors),s=r.length),u=b===s){m=!0,g=0;var l=!0}const v=s;if(Um(h,{instancePath:e+"/"+f.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:t,parentDataProperty:f,rootData:a,dynamicAnchors:o})||(r=r===null?Um.errors:r.concat(Um.errors),s=r.length),(u=v===s)&&m)m=!1,g=[g,1];else{u&&(m=!0,g=1,l!==!0&&(l=!0));const P=s;if(Bm(h,{instancePath:e+"/"+f.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:t,parentDataProperty:f,rootData:a,dynamicAnchors:o})||(r=r===null?Bm.errors:r.concat(Bm.errors),s=r.length),(u=P===s)&&m)m=!1,g=[g,2];else{u&&(m=!0,g=2,l!==!0&&(l=!0));const A=s;if(Vm(h,{instancePath:e+"/"+f.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:t,parentDataProperty:f,rootData:a,dynamicAnchors:o})||(r=r===null?Vm.errors:r.concat(Vm.errors),s=r.length),(u=A===s)&&m)m=!1,g=[g,3];else{u&&(m=!0,g=3,l!==!0&&(l=!0));const _=s;if(Wm(h,{instancePath:e+"/"+f.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:t,parentDataProperty:f,rootData:a,dynamicAnchors:o})||(r=r===null?Wm.errors:r.concat(Wm.errors),s=r.length),(u=_===s)&&m)m=!1,g=[g,4];else{u&&(m=!0,g=4,l!==!0&&(l=!0));const x=s;var u;Hm(h,{instancePath:e+"/"+f.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:t,parentDataProperty:f,rootData:a,dynamicAnchors:o})||(r=r===null?Hm.errors:r.concat(Hm.errors),s=r.length),(u=x===s)&&m?(m=!1,g=[g,5]):u&&(m=!0,g=5,l!==!0&&(l=!0))}}}}if(m)s=d,r!==null&&(d?r.length=d:r=null);else{const P={instancePath:e+"/"+f.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/additionalProperties/oneOf",keyword:"oneOf",params:{passingSchemas:g},message:"must match exactly one schema in oneOf"};r===null?r=[P]:r.push(P),s++}}else{const f={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[f]:r.push(f),s++}if(s>0){const f={_:[]},h={};for(const v of r)v.keyword!=="errorMessage"&&!v.emUsed&&v.instancePath===e&&v.keyword in f&&v.schemaPath.indexOf("#")===0&&/^\/[^\/]*$/.test(v.schemaPath.slice(1))&&(f[v.keyword].push(v),v.emUsed=!0);for(const v in f)if(f[v].length){const P={instancePath:e,schemaPath:"#/errorMessage",keyword:"errorMessage",params:{errors:f[v]},message:v in h?h[v]():i8.errorMessage[v]};r===null?r=[P]:r.push(P),s++}let d,m;if(typeof t=="object"&&!Array.isArray(t)){d={basic:[],apiKey:[],oauth2:[]},m={};for(const v of r)if(v.keyword!=="errorMessage"&&!v.emUsed&&v.instancePath.indexOf(e)===0){const P=Ctt.exec(v.instancePath.slice(e.length)),A=P&&P[1].replace(/~1/g,"/").replace(/~0/g,"~");A!==void 0&&A in d&&(d[A].push(v),v.emUsed=!0)}for(const v in d)if(d[v].length){const P={instancePath:e,schemaPath:"#/errorMessage",keyword:"errorMessage",params:{errors:d[v]},message:v in m?m[v]():i8.errorMessage.properties[v]};r===null?r=[P]:r.push(P),s++,r[s-1].instancePath=e+"/"+v.replace(/~/g,"~0").replace(/\//g,"~1")}}const g=[];for(const v of r)v.keyword==="errorMessage"||v.emUsed||v.instancePath!==e&&(v.instancePath.indexOf(e)!==0||v.instancePath[e.length]!=="/")||v.schemaPath.indexOf("#")!==0||v.schemaPath[1]!=="/"||(g.push(v),v.emUsed=!0);if(g.length){const v={instancePath:e,schemaPath:"#/errorMessage",keyword:"errorMessage",params:{errors:g},message:"Invalid security securityDefinitions"};r===null?r=[v]:r.push(v),s++}const b=[];for(const v of r)v.emUsed||b.push(v);r=b,s=b.length}return Gm.errors=r,s===0}function Km(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Km.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.name===void 0){const l={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"name"},message:"must have required property 'name'"};r===null?r=[l]:r.push(l),s++}for(const l in t)if(l!=="name"&&l!=="description"&&l!=="externalDocs"&&!Je.test(l)){const u={instancePath:e,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"};r===null?r=[u]:r.push(u),s++}if(t.name!==void 0&&typeof t.name!="string"){const l={instancePath:e+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}if(t.description!==void 0&&typeof t.description!="string"){const l={instancePath:e+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}t.externalDocs!==void 0&&(di(t.externalDocs,{instancePath:e+"/externalDocs",parentData:t,parentDataProperty:"externalDocs",rootData:a,dynamicAnchors:o})||(r=r===null?di.errors:r.concat(di.errors),s=r.length));for(const l in t)Je.test(l)&&gr(t[l],{instancePath:e+"/"+l.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:t,parentDataProperty:l,rootData:a,dynamicAnchors:o})}else{const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[l]:r.push(l),s++}return Km.errors=r,s===0}function OS(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=OS.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.swagger===void 0){const l={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"swagger"},message:"must have required property 'swagger'"};r===null?r=[l]:r.push(l),s++}if(t.info===void 0){const l={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"info"},message:"must have required property 'info'"};r===null?r=[l]:r.push(l),s++}if(t.paths===void 0){const l={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"paths"},message:"must have required property 'paths'"};r===null?r=[l]:r.push(l),s++}for(const l in t)if(!Qi.call(XV.properties,l)&&!Je.test(l)){const u={instancePath:e,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"};r===null?r=[u]:r.push(u),s++}if(t.swagger!==void 0){let l=t.swagger;if(typeof l!="string"){const u={instancePath:e+"/swagger",schemaPath:"#/properties/swagger/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[u]:r.push(u),s++}if(l!=="2.0"){const u={instancePath:e+"/swagger",schemaPath:"#/properties/swagger/enum",keyword:"enum",params:{allowedValues:XV.properties.swagger.enum},message:"must be equal to one of the allowed values"};r===null?r=[u]:r.push(u),s++}}if(t.info!==void 0&&(pm(t.info,{instancePath:e+"/info",parentData:t,parentDataProperty:"info",rootData:a,dynamicAnchors:o})||(r=r===null?pm.errors:r.concat(pm.errors),s=r.length)),t.host!==void 0){let l=t.host;if(typeof l=="string"){if(!$tt.test(l)){const u={instancePath:e+"/host",schemaPath:"#/properties/host/pattern",keyword:"pattern",params:{pattern:"^[^{}/ :\\\\]+(?::\\d+)?$"},message:'must match pattern "^[^{}/ :\\\\]+(?::\\d+)?$"'};r===null?r=[u]:r.push(u),s++}}else{const u={instancePath:e+"/host",schemaPath:"#/properties/host/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[u]:r.push(u),s++}}if(t.basePath!==void 0){let l=t.basePath;if(typeof l=="string"){if(!Ag.test(l)){const u={instancePath:e+"/basePath",schemaPath:"#/properties/basePath/pattern",keyword:"pattern",params:{pattern:"^/"},message:'must match pattern "^/"'};r===null?r=[u]:r.push(u),s++}}else{const u={instancePath:e+"/basePath",schemaPath:"#/properties/basePath/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[u]:r.push(u),s++}}if(t.schemes!==void 0&&(Tc(t.schemes,{instancePath:e+"/schemes",parentData:t,parentDataProperty:"schemes",rootData:a,dynamicAnchors:o})||(r=r===null?Tc.errors:r.concat(Tc.errors),s=r.length)),t.consumes!==void 0&&(ca(t.consumes,{instancePath:e+"/consumes",parentData:t,parentDataProperty:"consumes",rootData:a,dynamicAnchors:o})||(r=r===null?ca.errors:r.concat(ca.errors),s=r.length)),t.produces!==void 0&&(ca(t.produces,{instancePath:e+"/produces",parentData:t,parentDataProperty:"produces",rootData:a,dynamicAnchors:o})||(r=r===null?ca.errors:r.concat(ca.errors),s=r.length)),t.paths!==void 0&&(Nm(t.paths,{instancePath:e+"/paths",parentData:t,parentDataProperty:"paths",rootData:a,dynamicAnchors:o})||(r=r===null?Nm.errors:r.concat(Nm.errors),s=r.length)),t.definitions!==void 0&&(Lm(t.definitions,{instancePath:e+"/definitions",parentData:t,parentDataProperty:"definitions",rootData:a,dynamicAnchors:o})||(r=r===null?Lm.errors:r.concat(Lm.errors),s=r.length)),t.parameters!==void 0&&(Fm(t.parameters,{instancePath:e+"/parameters",parentData:t,parentDataProperty:"parameters",rootData:a,dynamicAnchors:o})||(r=r===null?Fm.errors:r.concat(Fm.errors),s=r.length)),t.responses!==void 0&&(qm(t.responses,{instancePath:e+"/responses",parentData:t,parentDataProperty:"responses",rootData:a,dynamicAnchors:o})||(r=r===null?qm.errors:r.concat(qm.errors),s=r.length)),t.security!==void 0&&(zc(t.security,{instancePath:e+"/security",parentData:t,parentDataProperty:"security",rootData:a,dynamicAnchors:o})||(r=r===null?zc.errors:r.concat(zc.errors),s=r.length)),t.securityDefinitions!==void 0&&(Gm(t.securityDefinitions,{instancePath:e+"/securityDefinitions",parentData:t,parentDataProperty:"securityDefinitions",rootData:a,dynamicAnchors:o})||(r=r===null?Gm.errors:r.concat(Gm.errors),s=r.length)),t.tags!==void 0){let l=t.tags;if(Array.isArray(l)){const u=l.length;for(let d=0;d1){e:for(;h--;)for(f=h;f--;)if(Wr(l[h],l[f])){const d={instancePath:e+"/tags",schemaPath:"#/properties/tags/uniqueItems",keyword:"uniqueItems",params:{i:h,j:f},message:"must NOT have duplicate items (items ## "+f+" and "+h+" are identical)"};r===null?r=[d]:r.push(d),s++;break e}}}else{const u={instancePath:e+"/tags",schemaPath:"#/properties/tags/type",keyword:"type",params:{type:"array"},message:"must be array"};r===null?r=[u]:r.push(u),s++}}t.externalDocs!==void 0&&(di(t.externalDocs,{instancePath:e+"/externalDocs",parentData:t,parentDataProperty:"externalDocs",rootData:a,dynamicAnchors:o})||(r=r===null?di.errors:r.concat(di.errors),s=r.length));for(const l in t)Je.test(l)&&gr(t[l],{instancePath:e+"/"+l.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:t,parentDataProperty:l,rootData:a,dynamicAnchors:o})}else{const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[l]:r.push(l),s++}return OS.errors=r,s===0}Gm.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},Km.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},OS.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};Ll.oas3_0=ES;const Ttt=new RegExp("^3\\.0\\.\\d(-.+)?$","u"),$r=/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;function Ym(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Ym.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){for(const l in t)if(l!=="name"&&l!=="url"&&l!=="email"&&!Je.test(l)){const u={instancePath:e,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"};r===null?r=[u]:r.push(u),s++}if(t.name!==void 0&&typeof t.name!="string"){const l={instancePath:e+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}if(t.url!==void 0){let l=t.url;if(typeof l=="string"){if(!$r.test(l)){const u={instancePath:e+"/url",schemaPath:"#/properties/url/format",keyword:"format",params:{format:"uri-reference"},message:'must match format "uri-reference"'};r===null?r=[u]:r.push(u),s++}}else{const u={instancePath:e+"/url",schemaPath:"#/properties/url/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[u]:r.push(u),s++}}if(t.email!==void 0){let l=t.email;if(typeof l=="string"){if(!YN.test(l)){const u={instancePath:e+"/email",schemaPath:"#/properties/email/format",keyword:"format",params:{format:"email"},message:'must match format "email"'};r===null?r=[u]:r.push(u),s++}}else{const u={instancePath:e+"/email",schemaPath:"#/properties/email/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[u]:r.push(u),s++}}}else{const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[l]:r.push(l),s++}return Ym.errors=r,s===0}function Jm(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Jm.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.name===void 0){const l={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"name"},message:"must have required property 'name'"};r===null?r=[l]:r.push(l),s++}for(const l in t)if(l!=="name"&&l!=="url"&&!Je.test(l)){const u={instancePath:e,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"};r===null?r=[u]:r.push(u),s++}if(t.name!==void 0&&typeof t.name!="string"){const l={instancePath:e+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}if(t.url!==void 0){let l=t.url;if(typeof l=="string"){if(!$r.test(l)){const u={instancePath:e+"/url",schemaPath:"#/properties/url/format",keyword:"format",params:{format:"uri-reference"},message:'must match format "uri-reference"'};r===null?r=[u]:r.push(u),s++}}else{const u={instancePath:e+"/url",schemaPath:"#/properties/url/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[u]:r.push(u),s++}}}else{const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[l]:r.push(l),s++}return Jm.errors=r,s===0}function Qm(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Qm.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.title===void 0){const l={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"title"},message:"must have required property 'title'"};r===null?r=[l]:r.push(l),s++}if(t.version===void 0){const l={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"version"},message:"must have required property 'version'"};r===null?r=[l]:r.push(l),s++}for(const l in t)if(l!=="title"&&l!=="description"&&l!=="termsOfService"&&l!=="contact"&&l!=="license"&&l!=="version"&&!Je.test(l)){const u={instancePath:e,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"};r===null?r=[u]:r.push(u),s++}if(t.title!==void 0&&typeof t.title!="string"){const l={instancePath:e+"/title",schemaPath:"#/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}if(t.description!==void 0&&typeof t.description!="string"){const l={instancePath:e+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}if(t.termsOfService!==void 0){let l=t.termsOfService;if(typeof l=="string"){if(!$r.test(l)){const u={instancePath:e+"/termsOfService",schemaPath:"#/properties/termsOfService/format",keyword:"format",params:{format:"uri-reference"},message:'must match format "uri-reference"'};r===null?r=[u]:r.push(u),s++}}else{const u={instancePath:e+"/termsOfService",schemaPath:"#/properties/termsOfService/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[u]:r.push(u),s++}}if(t.contact!==void 0&&(Ym(t.contact,{instancePath:e+"/contact",parentData:t,parentDataProperty:"contact",rootData:a,dynamicAnchors:o})||(r=r===null?Ym.errors:r.concat(Ym.errors),s=r.length)),t.license!==void 0&&(Jm(t.license,{instancePath:e+"/license",parentData:t,parentDataProperty:"license",rootData:a,dynamicAnchors:o})||(r=r===null?Jm.errors:r.concat(Jm.errors),s=r.length)),t.version!==void 0&&typeof t.version!="string"){const l={instancePath:e+"/version",schemaPath:"#/properties/version/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}}else{const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[l]:r.push(l),s++}return Qm.errors=r,s===0}function Pa(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Pa.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.url===void 0){const l={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"url"},message:"must have required property 'url'"};r===null?r=[l]:r.push(l),s++}for(const l in t)if(l!=="description"&&l!=="url"&&!Je.test(l)){const u={instancePath:e,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"};r===null?r=[u]:r.push(u),s++}if(t.description!==void 0&&typeof t.description!="string"){const l={instancePath:e+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}if(t.url!==void 0){let l=t.url;if(typeof l=="string"){if(!$r.test(l)){const u={instancePath:e+"/url",schemaPath:"#/properties/url/format",keyword:"format",params:{format:"uri-reference"},message:'must match format "uri-reference"'};r===null?r=[u]:r.push(u),s++}}else{const u={instancePath:e+"/url",schemaPath:"#/properties/url/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[u]:r.push(u),s++}}}else{const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[l]:r.push(l),s++}return Pa.errors=r,s===0}function Zm(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Zm.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.default===void 0){const l={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"default"},message:"must have required property 'default'"};r===null?r=[l]:r.push(l),s++}for(const l in t)if(l!=="enum"&&l!=="default"&&l!=="description"&&!Je.test(l)){const u={instancePath:e,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"};r===null?r=[u]:r.push(u),s++}if(t.enum!==void 0){let l=t.enum;if(Array.isArray(l)){const u=l.length;for(let f=0;f0){const j={not:[]},F={};for(const L of r)L.keyword!=="errorMessage"&&!L.emUsed&&L.instancePath===e&&L.keyword in j&&L.schemaPath.indexOf("#/else/else")===0&&/^\/[^\/]*$/.test(L.schemaPath.slice(11))&&(j[L.keyword].push(L),L.emUsed=!0);for(const L in j)if(j[L].length){const V={instancePath:e,schemaPath:"#/else/else/errorMessage",keyword:"errorMessage",params:{errors:j[L]},message:L in F?F[L]():c8.else.else.errorMessage[L]};r===null?r=[V]:r.push(V),s++}const I=[];for(const L of r)L.emUsed||I.push(L);r=I,s=I.length}P=g=x===s,_="else"}if(!P){const x={instancePath:e,schemaPath:"#/else/if",keyword:"if",params:{failingKeyword:_},message:'must match "'+_+'" schema'};r===null?r=[x]:r.push(x),s++}h=m=b===s}if(!h){const b={instancePath:e,schemaPath:"#/if",keyword:"if",params:{failingKeyword:"else"},message:'must match "else" schema'};r===null?r=[b]:r.push(b),s++}if(s>0){const b={not:[]},v={};for(const A of r)A.keyword!=="errorMessage"&&!A.emUsed&&A.instancePath===e&&A.keyword in b&&A.schemaPath.indexOf("#")===0&&/^\/[^\/]*$/.test(A.schemaPath.slice(1))&&(b[A.keyword].push(A),A.emUsed=!0);for(const A in b)if(b[A].length){const _={instancePath:e,schemaPath:"#/errorMessage",keyword:"errorMessage",params:{errors:b[A]},message:A in v?v[A]():c8.errorMessage[A]};r===null?r=[_]:r.push(_),s++}const P=[];for(const A of r)A.emUsed||P.push(A);r=P,s=P.length}return Bc.errors=r,s===0}Bc.evaluated={dynamicProps:!1,dynamicItems:!1};const t$={description:"Parameter location",type:"object",if:{type:"object",properties:{in:{const:"path"}},required:["in"]},then:{description:"Parameter in path",required:["required"],properties:{style:{enum:["matrix","label","simple"],default:"simple"},required:{const:!0}}},else:{if:{type:"object",properties:{in:{const:"query"}},required:["in"]},then:{description:"Parameter in query",properties:{style:{enum:["form","spaceDelimited","pipeDelimited","deepObject"],default:"form"}}},else:{if:{type:"object",properties:{in:{const:"header"}},required:["in"]},then:{description:"Parameter in header",properties:{style:{const:"simple",default:"simple"}}},else:{if:{type:"object",properties:{in:{const:"cookie"}},required:["in"]},then:{description:"Parameter in cookie",properties:{style:{const:"form",default:"form"}}},else:{type:"object",properties:{in:{enum:["path","query","header","cookie"]}},required:["in"],errorMessage:{required:'Parameter must have a valid "in" property'}}}}}};function ey(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=ey.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),!t||typeof t!="object"||Array.isArray(t)){const x={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[x]:r.push(x),s++}const l=s;let u=!0;const f=s;if(s===f)if(t&&typeof t=="object"&&!Array.isArray(t)){if(t.in===void 0){const x={};r===null?r=[x]:r.push(x),s++}else if(t.in!==void 0&&t.in!=="path"){const x={};r===null?r=[x]:r.push(x),s++}}else{const x={};r===null?r=[x]:r.push(x),s++}var h=f===s;let d;if(s=l,r!==null&&(l?r.length=l:r=null),h){const x=s;if(t&&typeof t=="object"&&!Array.isArray(t)){if(t.required===void 0){const E={instancePath:e,schemaPath:"#/then/required",keyword:"required",params:{missingProperty:"required"},message:"must have required property 'required'"};r===null?r=[E]:r.push(E),s++}if(t.style!==void 0){let E=t.style;if(E!=="matrix"&&E!=="label"&&E!=="simple"){const j={instancePath:e+"/style",schemaPath:"#/then/properties/style/enum",keyword:"enum",params:{allowedValues:t$.then.properties.style.enum},message:"must be equal to one of the allowed values"};r===null?r=[j]:r.push(j),s++}}if(t.required!==void 0&&t.required!==!0){const E={instancePath:e+"/required",schemaPath:"#/then/properties/required/const",keyword:"const",params:{allowedValue:!0},message:"must be equal to constant"};r===null?r=[E]:r.push(E),s++}}if(u=h=x===s,u)var m={style:!0,required:!0,in:!0};d="then"}else{const x=s,E=s;let j=!0;const F=s;if(s===F)if(t&&typeof t=="object"&&!Array.isArray(t)){if(t.in===void 0){const L={};r===null?r=[L]:r.push(L),s++}else if(t.in!==void 0&&t.in!=="query"){const L={};r===null?r=[L]:r.push(L),s++}}else{const L={};r===null?r=[L]:r.push(L),s++}var g=F===s;let I;if(s=E,r!==null&&(E?r.length=E:r=null),g){const L=s;if(t&&typeof t=="object"&&!Array.isArray(t)&&t.style!==void 0){let V=t.style;if(V!=="form"&&V!=="spaceDelimited"&&V!=="pipeDelimited"&&V!=="deepObject"){const q={instancePath:e+"/style",schemaPath:"#/else/then/properties/style/enum",keyword:"enum",params:{allowedValues:t$.else.then.properties.style.enum},message:"must be equal to one of the allowed values"};r===null?r=[q]:r.push(q),s++}}if(j=g=L===s,j)var b={style:!0,in:!0};I="then"}else{const L=s,V=s;let q=!0;const S=s;if(s===S)if(t&&typeof t=="object"&&!Array.isArray(t)){if(t.in===void 0){const R={};r===null?r=[R]:r.push(R),s++}else if(t.in!==void 0&&t.in!=="header"){const R={};r===null?r=[R]:r.push(R),s++}}else{const R={};r===null?r=[R]:r.push(R),s++}var v=S===s;let D;if(s=V,r!==null&&(V?r.length=V:r=null),v){const R=s;if(t&&typeof t=="object"&&!Array.isArray(t)&&t.style!==void 0&&t.style!=="simple"){const C={instancePath:e+"/style",schemaPath:"#/else/else/then/properties/style/const",keyword:"const",params:{allowedValue:"simple"},message:"must be equal to constant"};r===null?r=[C]:r.push(C),s++}if(q=v=R===s,q)var P={style:!0,in:!0};D="then"}else{const R=s,C=s;let H=!0;const X=s;if(s===X)if(t&&typeof t=="object"&&!Array.isArray(t)){if(t.in===void 0){const z={};r===null?r=[z]:r.push(z),s++}else if(t.in!==void 0&&t.in!=="cookie"){const z={};r===null?r=[z]:r.push(z),s++}}else{const z={};r===null?r=[z]:r.push(z),s++}var A=X===s;let ae;if(s=C,r!==null&&(C?r.length=C:r=null),A){const z=s;if(t&&typeof t=="object"&&!Array.isArray(t)&&t.style!==void 0&&t.style!=="form"){const M={instancePath:e+"/style",schemaPath:"#/else/else/else/then/properties/style/const",keyword:"const",params:{allowedValue:"form"},message:"must be equal to constant"};r===null?r=[M]:r.push(M),s++}if(H=A=z===s,H)var _={style:!0,in:!0};ae="then"}else{const z=s;if(t&&typeof t=="object"&&!Array.isArray(t)){if(t.in===void 0){const M={instancePath:e,schemaPath:"#/else/else/else/else/required",keyword:"required",params:{missingProperty:"in"},message:"must have required property 'in'"};r===null?r=[M]:r.push(M),s++}if(t.in!==void 0){let M=t.in;if(M!=="path"&&M!=="query"&&M!=="header"&&M!=="cookie"){const U={instancePath:e+"/in",schemaPath:"#/else/else/else/else/properties/in/enum",keyword:"enum",params:{allowedValues:t$.else.else.else.else.properties.in.enum},message:"must be equal to one of the allowed values"};r===null?r=[U]:r.push(U),s++}}}else{const M={instancePath:e,schemaPath:"#/else/else/else/else/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[M]:r.push(M),s++}if(s>0){const M={required:[]},U={};for(const T of r)T.keyword!=="errorMessage"&&!T.emUsed&&T.instancePath===e&&T.keyword in M&&T.schemaPath.indexOf("#/else/else/else/else")===0&&/^\/[^\/]*$/.test(T.schemaPath.slice(21))&&(M[T.keyword].push(T),T.emUsed=!0);for(const T in M)if(M[T].length){const G={instancePath:e,schemaPath:"#/else/else/else/else/errorMessage",keyword:"errorMessage",params:{errors:M[T]},message:T in U?U[T]():t$.else.else.else.else.errorMessage[T]};r===null?r=[G]:r.push(G),s++}const W=[];for(const T of r)T.emUsed||W.push(T);r=W,s=W.length}H=A=z===s,H&&_!==!0&&((_=_||{}).in=!0),ae="else"}if(!H){const z={instancePath:e,schemaPath:"#/else/else/else/if",keyword:"if",params:{failingKeyword:ae},message:'must match "'+ae+'" schema'};r===null?r=[z]:r.push(z),s++}q=v=R===s,q&&P!==!0&&_!==void 0&&(_===!0?P=!0:(P=P||{},Object.assign(P,_))),D="else"}if(!q){const R={instancePath:e,schemaPath:"#/else/else/if",keyword:"if",params:{failingKeyword:D},message:'must match "'+D+'" schema'};r===null?r=[R]:r.push(R),s++}j=g=L===s,j&&b!==!0&&P!==void 0&&(P===!0?b=!0:(b=b||{},Object.assign(b,P))),I="else"}if(!j){const L={instancePath:e,schemaPath:"#/else/if",keyword:"if",params:{failingKeyword:I},message:'must match "'+I+'" schema'};r===null?r=[L]:r.push(L),s++}u=h=x===s,u&&m!==!0&&b!==void 0&&(b===!0?m=!0:(m=m||{},Object.assign(m,b))),d="else"}if(!u){const x={instancePath:e,schemaPath:"#/if",keyword:"if",params:{failingKeyword:d},message:'must match "'+d+'" schema'};r===null?r=[x]:r.push(x),s++}return ey.errors=r,c.props=m,s===0}ey.evaluated={dynamicProps:!0,dynamicItems:!1};const u8={type:"object",properties:{title:{type:"string"},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"boolean",default:!1},minimum:{type:"number"},exclusiveMinimum:{type:"boolean",default:!1},maxLength:{type:"integer",minimum:0},minLength:{type:"integer",minimum:0,default:0},pattern:{type:"string",format:"regex"},maxItems:{type:"integer",minimum:0},minItems:{type:"integer",minimum:0,default:0},uniqueItems:{type:"boolean",default:!1},maxProperties:{type:"integer",minimum:0},minProperties:{type:"integer",minimum:0,default:0},required:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0},enum:{type:"array",items:{},minItems:1,uniqueItems:!1},type:{enum:["array","boolean","integer","number","object","string"]},not:{if:{type:"object",required:["$ref"]},then:{$ref:"#/definitions/Reference"},else:{$ref:"#/definitions/Schema"}},allOf:{type:"array",items:{if:{type:"object",required:["$ref"]},then:{$ref:"#/definitions/Reference"},else:{$ref:"#/definitions/Schema"}}},oneOf:{type:"array",items:{if:{type:"object",required:["$ref"]},then:{$ref:"#/definitions/Reference"},else:{$ref:"#/definitions/Schema"}}},anyOf:{type:"array",items:{if:{type:"object",required:["$ref"]},then:{$ref:"#/definitions/Reference"},else:{$ref:"#/definitions/Schema"}}},items:{if:{type:"object",required:["$ref"]},then:{$ref:"#/definitions/Reference"},else:{$ref:"#/definitions/Schema"}},properties:{type:"object",additionalProperties:{if:{type:"object",required:["$ref"]},then:{$ref:"#/definitions/Reference"},else:{$ref:"#/definitions/Schema"}}},additionalProperties:{if:{type:"object",required:["$ref"]},then:{$ref:"#/definitions/Reference"},else:{if:{type:"object"},then:{$ref:"#/definitions/Schema"},else:{if:{type:"boolean"},then:!0,else:{not:!0,errorMessage:'"additionalProperties" property must be a valid Schema Object'}}},default:!0},description:{type:"string"},format:{type:"string"},default:{},nullable:{type:"boolean",default:!1},discriminator:{$ref:"#/definitions/Discriminator"},readOnly:{type:"boolean",default:!1},writeOnly:{type:"boolean",default:!1},example:{},externalDocs:{$ref:"#/definitions/ExternalDocumentation"},deprecated:{type:"boolean",default:!1},xml:{$ref:"#/definitions/XML"}},patternProperties:{"^x-":{}},additionalProperties:!1};function ty(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=ty.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.propertyName===void 0){const l={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"propertyName"},message:"must have required property 'propertyName'"};r===null?r=[l]:r.push(l),s++}if(t.propertyName!==void 0&&typeof t.propertyName!="string"){const l={instancePath:e+"/propertyName",schemaPath:"#/properties/propertyName/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}if(t.mapping!==void 0){let l=t.mapping;if(l&&typeof l=="object"&&!Array.isArray(l)){for(const u in l)if(typeof l[u]!="string"){const f={instancePath:e+"/mapping/"+u.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/mapping/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[f]:r.push(f),s++}}else{const u={instancePath:e+"/mapping",schemaPath:"#/properties/mapping/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[u]:r.push(u),s++}}}else{const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[l]:r.push(l),s++}return ty.errors=r,s===0}function ry(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=ry.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){for(const l in t)if(l!=="name"&&l!=="namespace"&&l!=="prefix"&&l!=="attribute"&&l!=="wrapped"&&!Je.test(l)){const u={instancePath:e,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"};r===null?r=[u]:r.push(u),s++}if(t.name!==void 0&&typeof t.name!="string"){const l={instancePath:e+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}if(t.namespace!==void 0){let l=t.namespace;if(typeof l=="string"){if(!Ci(l)){const u={instancePath:e+"/namespace",schemaPath:"#/properties/namespace/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};r===null?r=[u]:r.push(u),s++}}else{const u={instancePath:e+"/namespace",schemaPath:"#/properties/namespace/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[u]:r.push(u),s++}}if(t.prefix!==void 0&&typeof t.prefix!="string"){const l={instancePath:e+"/prefix",schemaPath:"#/properties/prefix/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}if(t.attribute!==void 0&&typeof t.attribute!="boolean"){const l={instancePath:e+"/attribute",schemaPath:"#/properties/attribute/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};r===null?r=[l]:r.push(l),s++}if(t.wrapped!==void 0&&typeof t.wrapped!="boolean"){const l={instancePath:e+"/wrapped",schemaPath:"#/properties/wrapped/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};r===null?r=[l]:r.push(l),s++}}else{const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[l]:r.push(l),s++}return ry.errors=r,s===0}ty.evaluated={props:{propertyName:!0,mapping:!0},dynamicProps:!1,dynamicItems:!1},ry.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};const Or={validate:Gi};function Gi(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Gi.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){for(const C in t)if(!Qi.call(u8.properties,C)&&!Je.test(C)){const H={instancePath:e,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:C},message:"must NOT have additional properties"};r===null?r=[H]:r.push(H),s++}if(t.title!==void 0&&typeof t.title!="string"){const C={instancePath:e+"/title",schemaPath:"#/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[C]:r.push(C),s++}if(t.multipleOf!==void 0){let C=t.multipleOf;if(typeof C=="number"){if(C<=0||isNaN(C)){const H={instancePath:e+"/multipleOf",schemaPath:"#/properties/multipleOf/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison:">",limit:0},message:"must be > 0"};r===null?r=[H]:r.push(H),s++}}else{const H={instancePath:e+"/multipleOf",schemaPath:"#/properties/multipleOf/type",keyword:"type",params:{type:"number"},message:"must be number"};r===null?r=[H]:r.push(H),s++}}if(t.maximum!==void 0&&typeof t.maximum!="number"){const C={instancePath:e+"/maximum",schemaPath:"#/properties/maximum/type",keyword:"type",params:{type:"number"},message:"must be number"};r===null?r=[C]:r.push(C),s++}if(t.exclusiveMaximum!==void 0&&typeof t.exclusiveMaximum!="boolean"){const C={instancePath:e+"/exclusiveMaximum",schemaPath:"#/properties/exclusiveMaximum/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};r===null?r=[C]:r.push(C),s++}if(t.minimum!==void 0&&typeof t.minimum!="number"){const C={instancePath:e+"/minimum",schemaPath:"#/properties/minimum/type",keyword:"type",params:{type:"number"},message:"must be number"};r===null?r=[C]:r.push(C),s++}if(t.exclusiveMinimum!==void 0&&typeof t.exclusiveMinimum!="boolean"){const C={instancePath:e+"/exclusiveMinimum",schemaPath:"#/properties/exclusiveMinimum/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};r===null?r=[C]:r.push(C),s++}if(t.maxLength!==void 0){let C=t.maxLength;if(typeof C!="number"||C%1||isNaN(C)){const H={instancePath:e+"/maxLength",schemaPath:"#/properties/maxLength/type",keyword:"type",params:{type:"integer"},message:"must be integer"};r===null?r=[H]:r.push(H),s++}if(typeof C=="number"&&(C<0||isNaN(C))){const H={instancePath:e+"/maxLength",schemaPath:"#/properties/maxLength/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0"};r===null?r=[H]:r.push(H),s++}}if(t.minLength!==void 0){let C=t.minLength;if(typeof C!="number"||C%1||isNaN(C)){const H={instancePath:e+"/minLength",schemaPath:"#/properties/minLength/type",keyword:"type",params:{type:"integer"},message:"must be integer"};r===null?r=[H]:r.push(H),s++}if(typeof C=="number"&&(C<0||isNaN(C))){const H={instancePath:e+"/minLength",schemaPath:"#/properties/minLength/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0"};r===null?r=[H]:r.push(H),s++}}if(t.pattern!==void 0){let C=t.pattern;if(typeof C=="string"){if(!Gx(C)){const H={instancePath:e+"/pattern",schemaPath:"#/properties/pattern/format",keyword:"format",params:{format:"regex"},message:'must match format "regex"'};r===null?r=[H]:r.push(H),s++}}else{const H={instancePath:e+"/pattern",schemaPath:"#/properties/pattern/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[H]:r.push(H),s++}}if(t.maxItems!==void 0){let C=t.maxItems;if(typeof C!="number"||C%1||isNaN(C)){const H={instancePath:e+"/maxItems",schemaPath:"#/properties/maxItems/type",keyword:"type",params:{type:"integer"},message:"must be integer"};r===null?r=[H]:r.push(H),s++}if(typeof C=="number"&&(C<0||isNaN(C))){const H={instancePath:e+"/maxItems",schemaPath:"#/properties/maxItems/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0"};r===null?r=[H]:r.push(H),s++}}if(t.minItems!==void 0){let C=t.minItems;if(typeof C!="number"||C%1||isNaN(C)){const H={instancePath:e+"/minItems",schemaPath:"#/properties/minItems/type",keyword:"type",params:{type:"integer"},message:"must be integer"};r===null?r=[H]:r.push(H),s++}if(typeof C=="number"&&(C<0||isNaN(C))){const H={instancePath:e+"/minItems",schemaPath:"#/properties/minItems/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0"};r===null?r=[H]:r.push(H),s++}}if(t.uniqueItems!==void 0&&typeof t.uniqueItems!="boolean"){const C={instancePath:e+"/uniqueItems",schemaPath:"#/properties/uniqueItems/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};r===null?r=[C]:r.push(C),s++}if(t.maxProperties!==void 0){let C=t.maxProperties;if(typeof C!="number"||C%1||isNaN(C)){const H={instancePath:e+"/maxProperties",schemaPath:"#/properties/maxProperties/type",keyword:"type",params:{type:"integer"},message:"must be integer"};r===null?r=[H]:r.push(H),s++}if(typeof C=="number"&&(C<0||isNaN(C))){const H={instancePath:e+"/maxProperties",schemaPath:"#/properties/maxProperties/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0"};r===null?r=[H]:r.push(H),s++}}if(t.minProperties!==void 0){let C=t.minProperties;if(typeof C!="number"||C%1||isNaN(C)){const H={instancePath:e+"/minProperties",schemaPath:"#/properties/minProperties/type",keyword:"type",params:{type:"integer"},message:"must be integer"};r===null?r=[H]:r.push(H),s++}if(typeof C=="number"&&(C<0||isNaN(C))){const H={instancePath:e+"/minProperties",schemaPath:"#/properties/minProperties/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0"};r===null?r=[H]:r.push(H),s++}}if(t.required!==void 0){let C=t.required;if(Array.isArray(C)){if(C.length<1){const z={instancePath:e+"/required",schemaPath:"#/properties/required/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items"};r===null?r=[z]:r.push(z),s++}const H=C.length;for(let z=0;z1){const z={};for(;ae--;){let M=C[ae];if(typeof M=="string"){if(typeof z[M]=="number"){X=z[M];const U={instancePath:e+"/required",schemaPath:"#/properties/required/uniqueItems",keyword:"uniqueItems",params:{i:ae,j:X},message:"must NOT have duplicate items (items ## "+X+" and "+ae+" are identical)"};r===null?r=[U]:r.push(U),s++;break}z[M]=ae}}}}else{const H={instancePath:e+"/required",schemaPath:"#/properties/required/type",keyword:"type",params:{type:"array"},message:"must be array"};r===null?r=[H]:r.push(H),s++}}if(t.enum!==void 0){let C=t.enum;if(Array.isArray(C)){if(C.length<1){const H={instancePath:e+"/enum",schemaPath:"#/properties/enum/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items"};r===null?r=[H]:r.push(H),s++}}else{const H={instancePath:e+"/enum",schemaPath:"#/properties/enum/type",keyword:"type",params:{type:"array"},message:"must be array"};r===null?r=[H]:r.push(H),s++}}if(t.type!==void 0){let C=t.type;if(C!=="array"&&C!=="boolean"&&C!=="integer"&&C!=="number"&&C!=="object"&&C!=="string"){const H={instancePath:e+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:u8.properties.type.enum},message:"must be equal to one of the allowed values"};r===null?r=[H]:r.push(H),s++}}if(t.not!==void 0){let C=t.not;const H=s;let X=!0;const ae=s;if(s===ae)if(C&&typeof C=="object"&&!Array.isArray(C)){if(C.$ref===void 0){const M={};r===null?r=[M]:r.push(M),s++}}else{const M={};r===null?r=[M]:r.push(M),s++}var l=ae===s;let z;if(s=H,r!==null&&(H?r.length=H:r=null),l){const M=s;if(Fe(C,{instancePath:e+"/not",parentData:t,parentDataProperty:"not",rootData:a,dynamicAnchors:o}))var u=Fe.evaluated.props;else r=r===null?Fe.errors:r.concat(Fe.errors),s=r.length;X=l=M===s,z="then"}else{const M=s;if(Or.validate(C,{instancePath:e+"/not",parentData:t,parentDataProperty:"not",rootData:a,dynamicAnchors:o}))var f=Or.validate.evaluated.props;else r=r===null?Or.validate.errors:r.concat(Or.validate.errors),s=r.length;X=l=M===s,X&&u!==!0&&f!==void 0&&(f===!0?u=!0:(u=u||{},Object.assign(u,f))),z="else"}if(!X){const M={instancePath:e+"/not",schemaPath:"#/properties/not/if",keyword:"if",params:{failingKeyword:z},message:'must match "'+z+'" schema'};r===null?r=[M]:r.push(M),s++}}if(t.allOf!==void 0){let C=t.allOf;if(Array.isArray(C)){const H=C.length;for(let X=0;X0){const We=[];for(const _e of r)_e.keyword==="errorMessage"||_e.emUsed||_e.instancePath!==e+"/additionalProperties"&&(_e.instancePath.indexOf(e+"/additionalProperties")!==0||_e.instancePath[e+21]!=="/")||_e.schemaPath.indexOf("#/properties/additionalProperties/else/else/else")!==0||_e.schemaPath[48]!=="/"||(We.push(_e),_e.emUsed=!0);if(We.length){const _e={instancePath:e+"/additionalProperties",schemaPath:"#/properties/additionalProperties/else/else/else/errorMessage",keyword:"errorMessage",params:{errors:We},message:'"additionalProperties" property must be a valid Schema Object'};r===null?r=[_e]:r.push(_e),s++}const Ce=[];for(const _e of r)_e.emUsed||Ce.push(_e);r=Ce,s=Ce.length}ie=R=pe===s}if(!ie){const pe={instancePath:e+"/additionalProperties",schemaPath:"#/properties/additionalProperties/else/else/if",keyword:"if",params:{failingKeyword:"else"},message:'must match "else" schema'};r===null?r=[pe]:r.push(pe),s++}W=S=oe===s,G="else"}if(!W){const oe={instancePath:e+"/additionalProperties",schemaPath:"#/properties/additionalProperties/else/if",keyword:"if",params:{failingKeyword:G},message:'must match "'+G+'" schema'};r===null?r=[oe]:r.push(oe),s++}X=V=M===s,X&&q!==!0&&D!==void 0&&(D===!0?q=!0:(q=q||{},Object.assign(q,D))),z="else"}if(!X){const M={instancePath:e+"/additionalProperties",schemaPath:"#/properties/additionalProperties/if",keyword:"if",params:{failingKeyword:z},message:'must match "'+z+'" schema'};r===null?r=[M]:r.push(M),s++}}if(t.description!==void 0&&typeof t.description!="string"){const C={instancePath:e+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[C]:r.push(C),s++}if(t.format!==void 0&&typeof t.format!="string"){const C={instancePath:e+"/format",schemaPath:"#/properties/format/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[C]:r.push(C),s++}if(t.nullable!==void 0&&typeof t.nullable!="boolean"){const C={instancePath:e+"/nullable",schemaPath:"#/properties/nullable/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};r===null?r=[C]:r.push(C),s++}if(t.discriminator!==void 0&&(ty(t.discriminator,{instancePath:e+"/discriminator",parentData:t,parentDataProperty:"discriminator",rootData:a,dynamicAnchors:o})||(r=r===null?ty.errors:r.concat(ty.errors),s=r.length)),t.readOnly!==void 0&&typeof t.readOnly!="boolean"){const C={instancePath:e+"/readOnly",schemaPath:"#/properties/readOnly/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};r===null?r=[C]:r.push(C),s++}if(t.writeOnly!==void 0&&typeof t.writeOnly!="boolean"){const C={instancePath:e+"/writeOnly",schemaPath:"#/properties/writeOnly/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};r===null?r=[C]:r.push(C),s++}if(t.externalDocs!==void 0&&(Pa(t.externalDocs,{instancePath:e+"/externalDocs",parentData:t,parentDataProperty:"externalDocs",rootData:a,dynamicAnchors:o})||(r=r===null?Pa.errors:r.concat(Pa.errors),s=r.length)),t.deprecated!==void 0&&typeof t.deprecated!="boolean"){const C={instancePath:e+"/deprecated",schemaPath:"#/properties/deprecated/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};r===null?r=[C]:r.push(C),s++}t.xml!==void 0&&(ry(t.xml,{instancePath:e+"/xml",parentData:t,parentDataProperty:"xml",rootData:a,dynamicAnchors:o})||(r=r===null?ry.errors:r.concat(ry.errors),s=r.length))}else{const C={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[C]:r.push(C),s++}return Gi.errors=r,s===0}function wa(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=wa.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){for(const l in t)if(l!=="summary"&&l!=="description"&&l!=="value"&&l!=="externalValue"&&!Je.test(l)){const u={instancePath:e,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"};r===null?r=[u]:r.push(u),s++}if(t.summary!==void 0&&typeof t.summary!="string"){const l={instancePath:e+"/summary",schemaPath:"#/properties/summary/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}if(t.description!==void 0&&typeof t.description!="string"){const l={instancePath:e+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}if(t.externalValue!==void 0){let l=t.externalValue;if(typeof l=="string"){if(!$r.test(l)){const u={instancePath:e+"/externalValue",schemaPath:"#/properties/externalValue/format",keyword:"format",params:{format:"uri-reference"},message:'must match format "uri-reference"'};r===null?r=[u]:r.push(u),s++}}else{const u={instancePath:e+"/externalValue",schemaPath:"#/properties/externalValue/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[u]:r.push(u),s++}}}else{const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[l]:r.push(l),s++}return wa.errors=r,s===0}Gi.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},wa.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};const Rtt={type:"object",properties:{contentType:{type:"string"},headers:{type:"object",additionalProperties:{$ref:"#/definitions/Header"}},style:{enum:["form","spaceDelimited","pipeDelimited","deepObject"]},explode:{type:"boolean"},allowReserved:{type:"boolean",default:!1}},additionalProperties:!1},Ntt={type:"object",properties:{description:{type:"string"},required:{type:"boolean",default:!1},deprecated:{type:"boolean",default:!1},allowEmptyValue:{type:"boolean",default:!1},style:{const:"simple",default:"simple"},explode:{type:"boolean"},allowReserved:{type:"boolean",default:!1},schema:{if:{type:"object",required:["$ref"]},then:{$ref:"#/definitions/Reference"},else:{$ref:"#/definitions/Schema"}},content:{type:"object",additionalProperties:{$ref:"#/definitions/MediaType"},minProperties:1,maxProperties:1},example:{},examples:{type:"object",additionalProperties:{if:{type:"object",required:["$ref"]},then:{$ref:"#/definitions/Reference"},else:{$ref:"#/definitions/Example"}}}},patternProperties:{"^x-":{}},additionalProperties:!1,allOf:[{$ref:"#/definitions/ExampleXORExamples"},{$ref:"#/definitions/SchemaXORContent"}]},dI={validate:ms};function oo(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=oo.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),so(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o})||(r=r===null?so.errors:r.concat(so.errors),s=r.length),Bc(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o})||(r=r===null?Bc.errors:r.concat(Bc.errors),s=r.length),t&&typeof t=="object"&&!Array.isArray(t)){for(const d in t)if(!Qi.call(Ntt.properties,d)&&!Je.test(d)){const m={instancePath:e,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:d},message:"must NOT have additional properties"};r===null?r=[m]:r.push(m),s++}if(t.description!==void 0&&typeof t.description!="string"){const d={instancePath:e+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}if(t.required!==void 0&&typeof t.required!="boolean"){const d={instancePath:e+"/required",schemaPath:"#/properties/required/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};r===null?r=[d]:r.push(d),s++}if(t.deprecated!==void 0&&typeof t.deprecated!="boolean"){const d={instancePath:e+"/deprecated",schemaPath:"#/properties/deprecated/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};r===null?r=[d]:r.push(d),s++}if(t.allowEmptyValue!==void 0&&typeof t.allowEmptyValue!="boolean"){const d={instancePath:e+"/allowEmptyValue",schemaPath:"#/properties/allowEmptyValue/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};r===null?r=[d]:r.push(d),s++}if(t.style!==void 0&&t.style!=="simple"){const d={instancePath:e+"/style",schemaPath:"#/properties/style/const",keyword:"const",params:{allowedValue:"simple"},message:"must be equal to constant"};r===null?r=[d]:r.push(d),s++}if(t.explode!==void 0&&typeof t.explode!="boolean"){const d={instancePath:e+"/explode",schemaPath:"#/properties/explode/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};r===null?r=[d]:r.push(d),s++}if(t.allowReserved!==void 0&&typeof t.allowReserved!="boolean"){const d={instancePath:e+"/allowReserved",schemaPath:"#/properties/allowReserved/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};r===null?r=[d]:r.push(d),s++}if(t.schema!==void 0){let d=t.schema;const m=s;let g=!0;const b=s;if(s===b)if(d&&typeof d=="object"&&!Array.isArray(d)){if(d.$ref===void 0){const P={};r===null?r=[P]:r.push(P),s++}}else{const P={};r===null?r=[P]:r.push(P),s++}var l=b===s;let v;if(s=m,r!==null&&(m?r.length=m:r=null),l){const P=s;if(Fe(d,{instancePath:e+"/schema",parentData:t,parentDataProperty:"schema",rootData:a,dynamicAnchors:o}))var u=Fe.evaluated.props;else r=r===null?Fe.errors:r.concat(Fe.errors),s=r.length;g=l=P===s,v="then"}else{const P=s;Gi(d,{instancePath:e+"/schema",parentData:t,parentDataProperty:"schema",rootData:a,dynamicAnchors:o})||(r=r===null?Gi.errors:r.concat(Gi.errors),s=r.length),g=l=P===s,g&&u!==!0&&(u=!0),v="else"}if(!g){const P={instancePath:e+"/schema",schemaPath:"#/properties/schema/if",keyword:"if",params:{failingKeyword:v},message:'must match "'+v+'" schema'};r===null?r=[P]:r.push(P),s++}}if(t.content!==void 0){let d=t.content;if(d&&typeof d=="object"&&!Array.isArray(d)){if(Object.keys(d).length>1){const m={instancePath:e+"/content",schemaPath:"#/properties/content/maxProperties",keyword:"maxProperties",params:{limit:1},message:"must NOT have more than 1 properties"};r===null?r=[m]:r.push(m),s++}if(Object.keys(d).length<1){const m={instancePath:e+"/content",schemaPath:"#/properties/content/minProperties",keyword:"minProperties",params:{limit:1},message:"must NOT have fewer than 1 properties"};r===null?r=[m]:r.push(m),s++}for(const m in d)dI.validate(d[m],{instancePath:e+"/content/"+m.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:d,parentDataProperty:m,rootData:a,dynamicAnchors:o})||(r=r===null?dI.validate.errors:r.concat(dI.validate.errors),s=r.length)}else{const m={instancePath:e+"/content",schemaPath:"#/properties/content/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[m]:r.push(m),s++}}if(t.examples!==void 0){let d=t.examples;if(d&&typeof d=="object"&&!Array.isArray(d))for(const m in d){let g=d[m];const b=s;let v=!0;const P=s;if(s===P)if(g&&typeof g=="object"&&!Array.isArray(g)){if(g.$ref===void 0){const _={};r===null?r=[_]:r.push(_),s++}}else{const _={};r===null?r=[_]:r.push(_),s++}var f=P===s;let A;if(s=b,r!==null&&(b?r.length=b:r=null),f){const _=s;if(Fe(g,{instancePath:e+"/examples/"+m.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:d,parentDataProperty:m,rootData:a,dynamicAnchors:o}))var h=Fe.evaluated.props;else r=r===null?Fe.errors:r.concat(Fe.errors),s=r.length;v=f=_===s,A="then"}else{const _=s;wa(g,{instancePath:e+"/examples/"+m.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:d,parentDataProperty:m,rootData:a,dynamicAnchors:o})||(r=r===null?wa.errors:r.concat(wa.errors),s=r.length),v=f=_===s,v&&h!==!0&&(h=!0),A="else"}if(!v){const _={instancePath:e+"/examples/"+m.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/examples/additionalProperties/if",keyword:"if",params:{failingKeyword:A},message:'must match "'+A+'" schema'};r===null?r=[_]:r.push(_),s++}}else{const m={instancePath:e+"/examples",schemaPath:"#/properties/examples/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[m]:r.push(m),s++}}}else{const d={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[d]:r.push(d),s++}return oo.errors=r,s===0}function ny(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=ny.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){for(const l in t)if(l!=="contentType"&&l!=="headers"&&l!=="style"&&l!=="explode"&&l!=="allowReserved"){const u={instancePath:e,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"};r===null?r=[u]:r.push(u),s++}if(t.contentType!==void 0&&typeof t.contentType!="string"){const l={instancePath:e+"/contentType",schemaPath:"#/properties/contentType/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}if(t.headers!==void 0){let l=t.headers;if(l&&typeof l=="object"&&!Array.isArray(l))for(const u in l)oo(l[u],{instancePath:e+"/headers/"+u.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:l,parentDataProperty:u,rootData:a,dynamicAnchors:o})||(r=r===null?oo.errors:r.concat(oo.errors),s=r.length);else{const u={instancePath:e+"/headers",schemaPath:"#/properties/headers/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[u]:r.push(u),s++}}if(t.style!==void 0){let l=t.style;if(l!=="form"&&l!=="spaceDelimited"&&l!=="pipeDelimited"&&l!=="deepObject"){const u={instancePath:e+"/style",schemaPath:"#/properties/style/enum",keyword:"enum",params:{allowedValues:Rtt.properties.style.enum},message:"must be equal to one of the allowed values"};r===null?r=[u]:r.push(u),s++}}if(t.explode!==void 0&&typeof t.explode!="boolean"){const l={instancePath:e+"/explode",schemaPath:"#/properties/explode/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};r===null?r=[l]:r.push(l),s++}if(t.allowReserved!==void 0&&typeof t.allowReserved!="boolean"){const l={instancePath:e+"/allowReserved",schemaPath:"#/properties/allowReserved/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};r===null?r=[l]:r.push(l),s++}}else{const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[l]:r.push(l),s++}return ny.errors=r,s===0}function ms(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=ms.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),so(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o})||(r=r===null?so.errors:r.concat(so.errors),s=r.length),t&&typeof t=="object"&&!Array.isArray(t)){for(const d in t)if(d!=="schema"&&d!=="example"&&d!=="examples"&&d!=="encoding"&&!Je.test(d)){const m={instancePath:e,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:d},message:"must NOT have additional properties"};r===null?r=[m]:r.push(m),s++}if(t.schema!==void 0){let d=t.schema;const m=s;let g=!0;const b=s;if(s===b)if(d&&typeof d=="object"&&!Array.isArray(d)){if(d.$ref===void 0){const P={};r===null?r=[P]:r.push(P),s++}}else{const P={};r===null?r=[P]:r.push(P),s++}var l=b===s;let v;if(s=m,r!==null&&(m?r.length=m:r=null),l){const P=s;if(Fe(d,{instancePath:e+"/schema",parentData:t,parentDataProperty:"schema",rootData:a,dynamicAnchors:o}))var u=Fe.evaluated.props;else r=r===null?Fe.errors:r.concat(Fe.errors),s=r.length;g=l=P===s,v="then"}else{const P=s;Gi(d,{instancePath:e+"/schema",parentData:t,parentDataProperty:"schema",rootData:a,dynamicAnchors:o})||(r=r===null?Gi.errors:r.concat(Gi.errors),s=r.length),g=l=P===s,g&&u!==!0&&(u=!0),v="else"}if(!g){const P={instancePath:e+"/schema",schemaPath:"#/properties/schema/if",keyword:"if",params:{failingKeyword:v},message:'must match "'+v+'" schema'};r===null?r=[P]:r.push(P),s++}}if(t.examples!==void 0){let d=t.examples;if(d&&typeof d=="object"&&!Array.isArray(d))for(const m in d){let g=d[m];const b=s;let v=!0;const P=s;if(s===P)if(g&&typeof g=="object"&&!Array.isArray(g)){if(g.$ref===void 0){const _={};r===null?r=[_]:r.push(_),s++}}else{const _={};r===null?r=[_]:r.push(_),s++}var f=P===s;let A;if(s=b,r!==null&&(b?r.length=b:r=null),f){const _=s;if(Fe(g,{instancePath:e+"/examples/"+m.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:d,parentDataProperty:m,rootData:a,dynamicAnchors:o}))var h=Fe.evaluated.props;else r=r===null?Fe.errors:r.concat(Fe.errors),s=r.length;v=f=_===s,A="then"}else{const _=s;wa(g,{instancePath:e+"/examples/"+m.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:d,parentDataProperty:m,rootData:a,dynamicAnchors:o})||(r=r===null?wa.errors:r.concat(wa.errors),s=r.length),v=f=_===s,v&&h!==!0&&(h=!0),A="else"}if(!v){const _={instancePath:e+"/examples/"+m.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/examples/additionalProperties/if",keyword:"if",params:{failingKeyword:A},message:'must match "'+A+'" schema'};r===null?r=[_]:r.push(_),s++}}else{const m={instancePath:e+"/examples",schemaPath:"#/properties/examples/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[m]:r.push(m),s++}}if(t.encoding!==void 0){let d=t.encoding;if(d&&typeof d=="object"&&!Array.isArray(d))for(const m in d)ny(d[m],{instancePath:e+"/encoding/"+m.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:d,parentDataProperty:m,rootData:a,dynamicAnchors:o})||(r=r===null?ny.errors:r.concat(ny.errors),s=r.length);else{const m={instancePath:e+"/encoding",schemaPath:"#/properties/encoding/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[m]:r.push(m),s++}}}else{const d={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[d]:r.push(d),s++}return ms.errors=r,s===0}function lo(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=lo.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),so(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o})||(r=r===null?so.errors:r.concat(so.errors),s=r.length),Bc(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o})||(r=r===null?Bc.errors:r.concat(Bc.errors),s=r.length),ey(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o})||(r=r===null?ey.errors:r.concat(ey.errors),s=r.length),t&&typeof t=="object"&&!Array.isArray(t)){if(t.name===void 0){const d={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"name"},message:"must have required property 'name'"};r===null?r=[d]:r.push(d),s++}for(const d in t)if(!Qi.call(Mtt.properties,d)&&!Je.test(d)){const m={instancePath:e,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:d},message:"must NOT have additional properties"};r===null?r=[m]:r.push(m),s++}if(t.name!==void 0&&typeof t.name!="string"){const d={instancePath:e+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}if(t.in!==void 0&&typeof t.in!="string"){const d={instancePath:e+"/in",schemaPath:"#/properties/in/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}if(t.description!==void 0&&typeof t.description!="string"){const d={instancePath:e+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}if(t.required!==void 0&&typeof t.required!="boolean"){const d={instancePath:e+"/required",schemaPath:"#/properties/required/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};r===null?r=[d]:r.push(d),s++}if(t.deprecated!==void 0&&typeof t.deprecated!="boolean"){const d={instancePath:e+"/deprecated",schemaPath:"#/properties/deprecated/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};r===null?r=[d]:r.push(d),s++}if(t.allowEmptyValue!==void 0&&typeof t.allowEmptyValue!="boolean"){const d={instancePath:e+"/allowEmptyValue",schemaPath:"#/properties/allowEmptyValue/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};r===null?r=[d]:r.push(d),s++}if(t.style!==void 0&&typeof t.style!="string"){const d={instancePath:e+"/style",schemaPath:"#/properties/style/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}if(t.explode!==void 0&&typeof t.explode!="boolean"){const d={instancePath:e+"/explode",schemaPath:"#/properties/explode/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};r===null?r=[d]:r.push(d),s++}if(t.allowReserved!==void 0&&typeof t.allowReserved!="boolean"){const d={instancePath:e+"/allowReserved",schemaPath:"#/properties/allowReserved/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};r===null?r=[d]:r.push(d),s++}if(t.schema!==void 0){let d=t.schema;const m=s;let g=!0;const b=s;if(s===b)if(d&&typeof d=="object"&&!Array.isArray(d)){if(d.$ref===void 0){const P={};r===null?r=[P]:r.push(P),s++}}else{const P={};r===null?r=[P]:r.push(P),s++}var l=b===s;let v;if(s=m,r!==null&&(m?r.length=m:r=null),l){const P=s;if(Fe(d,{instancePath:e+"/schema",parentData:t,parentDataProperty:"schema",rootData:a,dynamicAnchors:o}))var u=Fe.evaluated.props;else r=r===null?Fe.errors:r.concat(Fe.errors),s=r.length;g=l=P===s,v="then"}else{const P=s;Gi(d,{instancePath:e+"/schema",parentData:t,parentDataProperty:"schema",rootData:a,dynamicAnchors:o})||(r=r===null?Gi.errors:r.concat(Gi.errors),s=r.length),g=l=P===s,g&&u!==!0&&(u=!0),v="else"}if(!g){const P={instancePath:e+"/schema",schemaPath:"#/properties/schema/if",keyword:"if",params:{failingKeyword:v},message:'must match "'+v+'" schema'};r===null?r=[P]:r.push(P),s++}}if(t.content!==void 0){let d=t.content;if(d&&typeof d=="object"&&!Array.isArray(d)){if(Object.keys(d).length>1){const m={instancePath:e+"/content",schemaPath:"#/properties/content/maxProperties",keyword:"maxProperties",params:{limit:1},message:"must NOT have more than 1 properties"};r===null?r=[m]:r.push(m),s++}if(Object.keys(d).length<1){const m={instancePath:e+"/content",schemaPath:"#/properties/content/minProperties",keyword:"minProperties",params:{limit:1},message:"must NOT have fewer than 1 properties"};r===null?r=[m]:r.push(m),s++}for(const m in d)ms(d[m],{instancePath:e+"/content/"+m.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:d,parentDataProperty:m,rootData:a,dynamicAnchors:o})||(r=r===null?ms.errors:r.concat(ms.errors),s=r.length)}else{const m={instancePath:e+"/content",schemaPath:"#/properties/content/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[m]:r.push(m),s++}}if(t.examples!==void 0){let d=t.examples;if(d&&typeof d=="object"&&!Array.isArray(d))for(const m in d){let g=d[m];const b=s;let v=!0;const P=s;if(s===P)if(g&&typeof g=="object"&&!Array.isArray(g)){if(g.$ref===void 0){const _={};r===null?r=[_]:r.push(_),s++}}else{const _={};r===null?r=[_]:r.push(_),s++}var f=P===s;let A;if(s=b,r!==null&&(b?r.length=b:r=null),f){const _=s;if(Fe(g,{instancePath:e+"/examples/"+m.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:d,parentDataProperty:m,rootData:a,dynamicAnchors:o}))var h=Fe.evaluated.props;else r=r===null?Fe.errors:r.concat(Fe.errors),s=r.length;v=f=_===s,A="then"}else{const _=s;wa(g,{instancePath:e+"/examples/"+m.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:d,parentDataProperty:m,rootData:a,dynamicAnchors:o})||(r=r===null?wa.errors:r.concat(wa.errors),s=r.length),v=f=_===s,v&&h!==!0&&(h=!0),A="else"}if(!v){const _={instancePath:e+"/examples/"+m.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/examples/additionalProperties/if",keyword:"if",params:{failingKeyword:A},message:'must match "'+A+'" schema'};r===null?r=[_]:r.push(_),s++}}else{const m={instancePath:e+"/examples",schemaPath:"#/properties/examples/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[m]:r.push(m),s++}}}else{const d={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[d]:r.push(d),s++}return lo.errors=r,s===0}oo.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},ny.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},ms.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},lo.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};const Ltt={type:"object",required:["responses"],properties:{tags:{type:"array",items:{type:"string"}},summary:{type:"string"},description:{type:"string"},externalDocs:{$ref:"#/definitions/ExternalDocumentation"},operationId:{type:"string"},parameters:{type:"array",items:{if:{type:"object",required:["$ref"]},then:{$ref:"#/definitions/Reference"},else:{$ref:"#/definitions/Parameter"}},uniqueItems:!0},requestBody:{if:{type:"object",required:["$ref"]},then:{$ref:"#/definitions/Reference"},else:{$ref:"#/definitions/RequestBody"}},responses:{$ref:"#/definitions/Responses"},callbacks:{type:"object",additionalProperties:{if:{type:"object",required:["$ref"]},then:{$ref:"#/definitions/Reference"},else:{$ref:"#/definitions/Callback"}}},deprecated:{type:"boolean",default:!1},security:{type:"array",items:{$ref:"#/definitions/SecurityRequirement"}},servers:{type:"array",items:{$ref:"#/definitions/Server"}}},patternProperties:{"^x-":{}},additionalProperties:!1};function Vc(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Vc.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.content===void 0){const l={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"content"},message:"must have required property 'content'"};r===null?r=[l]:r.push(l),s++}for(const l in t)if(l!=="description"&&l!=="content"&&l!=="required"&&!Je.test(l)){const u={instancePath:e,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"};r===null?r=[u]:r.push(u),s++}if(t.description!==void 0&&typeof t.description!="string"){const l={instancePath:e+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}if(t.content!==void 0){let l=t.content;if(l&&typeof l=="object"&&!Array.isArray(l))for(const u in l)ms(l[u],{instancePath:e+"/content/"+u.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:l,parentDataProperty:u,rootData:a,dynamicAnchors:o})||(r=r===null?ms.errors:r.concat(ms.errors),s=r.length);else{const u={instancePath:e+"/content",schemaPath:"#/properties/content/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[u]:r.push(u),s++}}if(t.required!==void 0&&typeof t.required!="boolean"){const l={instancePath:e+"/required",schemaPath:"#/properties/required/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};r===null?r=[l]:r.push(l),s++}}else{const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[l]:r.push(l),s++}return Vc.errors=r,s===0}Vc.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};const f8=new RegExp("^[1-5](?:\\d{2}|XX)$","u");function Wc(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Wc.evaluated;c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0);const l=s,u=s;if(t&&typeof t=="object"&&!Array.isArray(t)&&(t.operationId===void 0||t.operationRef===void 0)){const f={};r===null?r=[f]:r.push(f),s++}if(u===s){const f={instancePath:e,schemaPath:"#/not",keyword:"not",params:{},message:"must NOT be valid"};r===null?r=[f]:r.push(f),s++}else s=l,r!==null&&(l?r.length=l:r=null);if(t&&typeof t=="object"&&!Array.isArray(t)){for(const f in t)if(f!=="operationId"&&f!=="operationRef"&&f!=="parameters"&&f!=="requestBody"&&f!=="description"&&f!=="server"&&!Je.test(f)){const h={instancePath:e,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"};r===null?r=[h]:r.push(h),s++}if(t.operationId!==void 0&&typeof t.operationId!="string"){const f={instancePath:e+"/operationId",schemaPath:"#/properties/operationId/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[f]:r.push(f),s++}if(t.operationRef!==void 0){let f=t.operationRef;if(typeof f=="string"){if(!$r.test(f)){const h={instancePath:e+"/operationRef",schemaPath:"#/properties/operationRef/format",keyword:"format",params:{format:"uri-reference"},message:'must match format "uri-reference"'};r===null?r=[h]:r.push(h),s++}}else{const h={instancePath:e+"/operationRef",schemaPath:"#/properties/operationRef/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[h]:r.push(h),s++}}if(t.parameters!==void 0){let f=t.parameters;if(!(f&&typeof f=="object"&&!Array.isArray(f))){const h={instancePath:e+"/parameters",schemaPath:"#/properties/parameters/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[h]:r.push(h),s++}}if(t.description!==void 0&&typeof t.description!="string"){const f={instancePath:e+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[f]:r.push(f),s++}t.server!==void 0&&(ba(t.server,{instancePath:e+"/server",parentData:t,parentDataProperty:"server",rootData:a,dynamicAnchors:o})||(r=r===null?ba.errors:r.concat(ba.errors),s=r.length))}else{const f={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[f]:r.push(f),s++}return Wc.errors=r,s===0}function Gs(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Gs.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.description===void 0){const d={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"description"},message:"must have required property 'description'"};r===null?r=[d]:r.push(d),s++}for(const d in t)if(d!=="description"&&d!=="headers"&&d!=="content"&&d!=="links"&&!Je.test(d)){const m={instancePath:e,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:d},message:"must NOT have additional properties"};r===null?r=[m]:r.push(m),s++}if(t.description!==void 0&&typeof t.description!="string"){const d={instancePath:e+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}if(t.headers!==void 0){let d=t.headers;if(d&&typeof d=="object"&&!Array.isArray(d))for(const m in d){let g=d[m];const b=s;let v=!0;const P=s;if(s===P)if(g&&typeof g=="object"&&!Array.isArray(g)){if(g.$ref===void 0){const _={};r===null?r=[_]:r.push(_),s++}}else{const _={};r===null?r=[_]:r.push(_),s++}var l=P===s;let A;if(s=b,r!==null&&(b?r.length=b:r=null),l){const _=s;if(Fe(g,{instancePath:e+"/headers/"+m.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:d,parentDataProperty:m,rootData:a,dynamicAnchors:o}))var u=Fe.evaluated.props;else r=r===null?Fe.errors:r.concat(Fe.errors),s=r.length;v=l=_===s,A="then"}else{const _=s;oo(g,{instancePath:e+"/headers/"+m.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:d,parentDataProperty:m,rootData:a,dynamicAnchors:o})||(r=r===null?oo.errors:r.concat(oo.errors),s=r.length),v=l=_===s,v&&u!==!0&&(u=!0),A="else"}if(!v){const _={instancePath:e+"/headers/"+m.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/headers/additionalProperties/if",keyword:"if",params:{failingKeyword:A},message:'must match "'+A+'" schema'};r===null?r=[_]:r.push(_),s++}}else{const m={instancePath:e+"/headers",schemaPath:"#/properties/headers/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[m]:r.push(m),s++}}if(t.content!==void 0){let d=t.content;if(d&&typeof d=="object"&&!Array.isArray(d))for(const m in d)ms(d[m],{instancePath:e+"/content/"+m.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:d,parentDataProperty:m,rootData:a,dynamicAnchors:o})||(r=r===null?ms.errors:r.concat(ms.errors),s=r.length);else{const m={instancePath:e+"/content",schemaPath:"#/properties/content/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[m]:r.push(m),s++}}if(t.links!==void 0){let d=t.links;if(d&&typeof d=="object"&&!Array.isArray(d))for(const m in d){let g=d[m];const b=s;let v=!0;const P=s;if(s===P)if(g&&typeof g=="object"&&!Array.isArray(g)){if(g.$ref===void 0){const _={};r===null?r=[_]:r.push(_),s++}}else{const _={};r===null?r=[_]:r.push(_),s++}var f=P===s;let A;if(s=b,r!==null&&(b?r.length=b:r=null),f){const _=s;if(Fe(g,{instancePath:e+"/links/"+m.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:d,parentDataProperty:m,rootData:a,dynamicAnchors:o}))var h=Fe.evaluated.props;else r=r===null?Fe.errors:r.concat(Fe.errors),s=r.length;v=f=_===s,A="then"}else{const _=s;Wc(g,{instancePath:e+"/links/"+m.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:d,parentDataProperty:m,rootData:a,dynamicAnchors:o})||(r=r===null?Wc.errors:r.concat(Wc.errors),s=r.length),v=f=_===s,v&&h!==!0&&(h=!0),A="else"}if(!v){const _={instancePath:e+"/links/"+m.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/links/additionalProperties/if",keyword:"if",params:{failingKeyword:A},message:'must match "'+A+'" schema'};r===null?r=[_]:r.push(_),s++}}else{const m={instancePath:e+"/links",schemaPath:"#/properties/links/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[m]:r.push(m),s++}}}else{const d={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[d]:r.push(d),s++}return Gs.errors=r,s===0}function iy(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=iy.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(Object.keys(t).length<1){const d={instancePath:e,schemaPath:"#/minProperties",keyword:"minProperties",params:{limit:1},message:"must NOT have fewer than 1 properties"};r===null?r=[d]:r.push(d),s++}for(const d in t)if(d!=="default"&&!f8.test(d)&&!Je.test(d)){const m={instancePath:e,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:d},message:"must NOT have additional properties"};r===null?r=[m]:r.push(m),s++}if(t.default!==void 0){let d=t.default;const m=s;let g=!0;const b=s;if(s===b)if(d&&typeof d=="object"&&!Array.isArray(d)){if(d.$ref===void 0){const P={};r===null?r=[P]:r.push(P),s++}}else{const P={};r===null?r=[P]:r.push(P),s++}var l=b===s;let v;if(s=m,r!==null&&(m?r.length=m:r=null),l){const P=s;if(Fe(d,{instancePath:e+"/default",parentData:t,parentDataProperty:"default",rootData:a,dynamicAnchors:o}))var u=Fe.evaluated.props;else r=r===null?Fe.errors:r.concat(Fe.errors),s=r.length;g=l=P===s,v="then"}else{const P=s;Gs(d,{instancePath:e+"/default",parentData:t,parentDataProperty:"default",rootData:a,dynamicAnchors:o})||(r=r===null?Gs.errors:r.concat(Gs.errors),s=r.length),g=l=P===s,g&&u!==!0&&(u=!0),v="else"}if(!g){const P={instancePath:e+"/default",schemaPath:"#/properties/default/if",keyword:"if",params:{failingKeyword:v},message:'must match "'+v+'" schema'};r===null?r=[P]:r.push(P),s++}}for(const d in t)if(f8.test(d)){let m=t[d];const g=s;let b=!0;const v=s;if(s===v)if(m&&typeof m=="object"&&!Array.isArray(m)){if(m.$ref===void 0){const A={};r===null?r=[A]:r.push(A),s++}}else{const A={};r===null?r=[A]:r.push(A),s++}var f=v===s;let P;if(s=g,r!==null&&(g?r.length=g:r=null),f){const A=s;if(Fe(m,{instancePath:e+"/"+d.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:t,parentDataProperty:d,rootData:a,dynamicAnchors:o}))var h=Fe.evaluated.props;else r=r===null?Fe.errors:r.concat(Fe.errors),s=r.length;b=f=A===s,P="then"}else{const A=s;Gs(m,{instancePath:e+"/"+d.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:t,parentDataProperty:d,rootData:a,dynamicAnchors:o})||(r=r===null?Gs.errors:r.concat(Gs.errors),s=r.length),b=f=A===s,b&&h!==!0&&(h=!0),P="else"}if(!b){const A={instancePath:e+"/"+d.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/patternProperties/%5E%5B1-5%5D(%3F%3A%5Cd%7B2%7D%7CXX)%24/if",keyword:"if",params:{failingKeyword:P},message:'must match "'+P+'" schema'};r===null?r=[A]:r.push(A),s++}}}else{const d={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[d]:r.push(d),s++}return iy.errors=r,s===0}Wc.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},Gs.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},iy.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};const mI={validate:Kp};function Hc(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Hc.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t))for(const l in t)Je.test(l)||mI.validate(t[l],{instancePath:e+"/"+l.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:t,parentDataProperty:l,rootData:a,dynamicAnchors:o})||(r=r===null?mI.validate.errors:r.concat(mI.validate.errors),s=r.length);else{const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[l]:r.push(l),s++}return Hc.errors=r,s===0}function ay(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=ay.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.responses===void 0){const g={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"responses"},message:"must have required property 'responses'"};r===null?r=[g]:r.push(g),s++}for(const g in t)if(!Qi.call(Ltt.properties,g)&&!Je.test(g)){const b={instancePath:e,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:g},message:"must NOT have additional properties"};r===null?r=[b]:r.push(b),s++}if(t.tags!==void 0){let g=t.tags;if(Array.isArray(g)){const b=g.length;for(let v=0;v1){e:for(;P--;)for(v=P;v--;)if(Wr(g[P],g[v])){const A={instancePath:e+"/parameters",schemaPath:"#/properties/parameters/uniqueItems",keyword:"uniqueItems",params:{i:P,j:v},message:"must NOT have duplicate items (items ## "+v+" and "+P+" are identical)"};r===null?r=[A]:r.push(A),s++;break e}}}else{const b={instancePath:e+"/parameters",schemaPath:"#/properties/parameters/type",keyword:"type",params:{type:"array"},message:"must be array"};r===null?r=[b]:r.push(b),s++}}if(t.requestBody!==void 0){let g=t.requestBody;const b=s;let v=!0;const P=s;if(s===P)if(g&&typeof g=="object"&&!Array.isArray(g)){if(g.$ref===void 0){const _={};r===null?r=[_]:r.push(_),s++}}else{const _={};r===null?r=[_]:r.push(_),s++}var f=P===s;let A;if(s=b,r!==null&&(b?r.length=b:r=null),f){const _=s;if(Fe(g,{instancePath:e+"/requestBody",parentData:t,parentDataProperty:"requestBody",rootData:a,dynamicAnchors:o}))var h=Fe.evaluated.props;else r=r===null?Fe.errors:r.concat(Fe.errors),s=r.length;v=f=_===s,A="then"}else{const _=s;Vc(g,{instancePath:e+"/requestBody",parentData:t,parentDataProperty:"requestBody",rootData:a,dynamicAnchors:o})||(r=r===null?Vc.errors:r.concat(Vc.errors),s=r.length),v=f=_===s,v&&h!==!0&&(h=!0),A="else"}if(!v){const _={instancePath:e+"/requestBody",schemaPath:"#/properties/requestBody/if",keyword:"if",params:{failingKeyword:A},message:'must match "'+A+'" schema'};r===null?r=[_]:r.push(_),s++}}if(t.responses!==void 0&&(iy(t.responses,{instancePath:e+"/responses",parentData:t,parentDataProperty:"responses",rootData:a,dynamicAnchors:o})||(r=r===null?iy.errors:r.concat(iy.errors),s=r.length)),t.callbacks!==void 0){let g=t.callbacks;if(g&&typeof g=="object"&&!Array.isArray(g))for(const b in g){let v=g[b];const P=s;let A=!0;const _=s;if(s===_)if(v&&typeof v=="object"&&!Array.isArray(v)){if(v.$ref===void 0){const E={};r===null?r=[E]:r.push(E),s++}}else{const E={};r===null?r=[E]:r.push(E),s++}var d=_===s;let x;if(s=P,r!==null&&(P?r.length=P:r=null),d){const E=s;if(Fe(v,{instancePath:e+"/callbacks/"+b.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:g,parentDataProperty:b,rootData:a,dynamicAnchors:o}))var m=Fe.evaluated.props;else r=r===null?Fe.errors:r.concat(Fe.errors),s=r.length;A=d=E===s,x="then"}else{const E=s;Hc(v,{instancePath:e+"/callbacks/"+b.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:g,parentDataProperty:b,rootData:a,dynamicAnchors:o})||(r=r===null?Hc.errors:r.concat(Hc.errors),s=r.length),A=d=E===s,A&&m!==!0&&(m=!0),x="else"}if(!A){const E={instancePath:e+"/callbacks/"+b.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/callbacks/additionalProperties/if",keyword:"if",params:{failingKeyword:x},message:'must match "'+x+'" schema'};r===null?r=[E]:r.push(E),s++}}else{const b={instancePath:e+"/callbacks",schemaPath:"#/properties/callbacks/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[b]:r.push(b),s++}}if(t.deprecated!==void 0&&typeof t.deprecated!="boolean"){const g={instancePath:e+"/deprecated",schemaPath:"#/properties/deprecated/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};r===null?r=[g]:r.push(g),s++}if(t.security!==void 0){let g=t.security;if(Array.isArray(g)){const b=g.length;for(let v=0;v1){e:for(;m--;)for(d=m;d--;)if(Wr(f[m],f[d])){const g={instancePath:e+"/parameters",schemaPath:"#/properties/parameters/uniqueItems",keyword:"uniqueItems",params:{i:m,j:d},message:"must NOT have duplicate items (items ## "+d+" and "+m+" are identical)"};r===null?r=[g]:r.push(g),s++;break e}}}else{const h={instancePath:e+"/parameters",schemaPath:"#/properties/parameters/type",keyword:"type",params:{type:"array"},message:"must be array"};r===null?r=[h]:r.push(h),s++}}for(const f in t)l8.test(f)&&(ay(t[f],{instancePath:e+"/"+f.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:t,parentDataProperty:f,rootData:a,dynamicAnchors:o})||(r=r===null?ay.errors:r.concat(ay.errors),s=r.length))}else{const f={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[f]:r.push(f),s++}return Kp.errors=r,s===0}function sy(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=sy.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){for(const l in t)if(!Ag.test(l)&&!Je.test(l)){const u={instancePath:e,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"};r===null?r=[u]:r.push(u),s++}for(const l in t)Ag.test(l)&&(Kp(t[l],{instancePath:e+"/"+l.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:t,parentDataProperty:l,rootData:a,dynamicAnchors:o})||(r=r===null?Kp.errors:r.concat(Kp.errors),s=r.length))}else{const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[l]:r.push(l),s++}return sy.errors=r,s===0}Hc.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},ay.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},Kp.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},sy.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};const Ftt={type:"object",properties:{schemas:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{if:{type:"object",required:["$ref"]},then:{$ref:"#/definitions/Reference"},else:{$ref:"#/definitions/Schema"}}}},responses:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{if:{type:"object",required:["$ref"]},then:{$ref:"#/definitions/Reference"},else:{$ref:"#/definitions/Response"}}}},parameters:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{if:{type:"object",required:["$ref"]},then:{$ref:"#/definitions/Reference"},else:{$ref:"#/definitions/Parameter"}}}},examples:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{if:{type:"object",required:["$ref"]},then:{$ref:"#/definitions/Reference"},else:{$ref:"#/definitions/Example"}}}},requestBodies:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{if:{type:"object",required:["$ref"]},then:{$ref:"#/definitions/Reference"},else:{$ref:"#/definitions/RequestBody"}}}},headers:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{if:{type:"object",required:["$ref"]},then:{$ref:"#/definitions/Reference"},else:{$ref:"#/definitions/Header"}}}},securitySchemes:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{if:{type:"object",required:["$ref"]},then:{$ref:"#/definitions/Reference"},else:{$ref:"#/definitions/SecurityScheme"}}}},links:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{if:{type:"object",required:["$ref"]},then:{$ref:"#/definitions/Reference"},else:{$ref:"#/definitions/Link"}}}},callbacks:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{if:{type:"object",required:["$ref"]},then:{$ref:"#/definitions/Reference"},else:{$ref:"#/definitions/Callback"}}}}},patternProperties:{"^x-":{}},additionalProperties:!1},sa=new RegExp("^[a-zA-Z0-9\\.\\-_]+$","u"),p8={if:{type:"object",properties:{type:{const:"apiKey"}},required:["type"]},then:{$ref:"#/definitions/APIKeySecurityScheme"},else:{if:{type:"object",properties:{type:{const:"apiKey"}},required:["type"]},then:{$ref:"#/definitions/HTTPSecurityScheme"},else:{if:{type:"object",properties:{type:{const:"oauth2"}},required:["type"]},then:{$ref:"#/definitions/OAuth2SecurityScheme"},else:{if:{type:"object",properties:{type:{const:"openIdConnect"}},required:["type"]},then:{$ref:"#/definitions/OpenIdConnectSecurityScheme"},else:{type:"object",properties:{type:{enum:["apiKey","http","oauth2","openIdConnect"]}},required:["type"],errorMessage:{required:"Security scheme must have a valid type",type:"Invalid security scheme"}}}}}},qtt={type:"object",required:["type","name","in"],properties:{type:{const:"apiKey"},name:{type:"string"},in:{enum:["header","query","cookie"]},description:{type:"string"}},patternProperties:{"^x-":{}},additionalProperties:!1};function oy(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=oy.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.type===void 0){const l={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};r===null?r=[l]:r.push(l),s++}if(t.name===void 0){const l={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"name"},message:"must have required property 'name'"};r===null?r=[l]:r.push(l),s++}if(t.in===void 0){const l={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"in"},message:"must have required property 'in'"};r===null?r=[l]:r.push(l),s++}for(const l in t)if(l!=="type"&&l!=="name"&&l!=="in"&&l!=="description"&&!Je.test(l)){const u={instancePath:e,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"};r===null?r=[u]:r.push(u),s++}if(t.type!==void 0&&t.type!=="apiKey"){const l={instancePath:e+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue:"apiKey"},message:"must be equal to constant"};r===null?r=[l]:r.push(l),s++}if(t.name!==void 0&&typeof t.name!="string"){const l={instancePath:e+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}if(t.in!==void 0){let l=t.in;if(l!=="header"&&l!=="query"&&l!=="cookie"){const u={instancePath:e+"/in",schemaPath:"#/properties/in/enum",keyword:"enum",params:{allowedValues:qtt.properties.in.enum},message:"must be equal to one of the allowed values"};r===null?r=[u]:r.push(u),s++}}if(t.description!==void 0&&typeof t.description!="string"){const l={instancePath:e+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}}else{const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[l]:r.push(l),s++}return oy.errors=r,s===0}function ly(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=ly.evaluated;c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0);const l=s;let u=!1,f=null;const h=s;if(t&&typeof t=="object"&&!Array.isArray(t)&&t.scheme!==void 0&&t.scheme!=="bearer"){const P={instancePath:e+"/scheme",schemaPath:"#/oneOf/0/properties/scheme/const",keyword:"const",params:{allowedValue:"bearer"},message:"must be equal to constant"};r===null?r=[P]:r.push(P),s++}if(h===s){u=!0,f=0;var d={scheme:!0}}const m=s,g=s,b=s;if(t&&typeof t=="object"&&!Array.isArray(t)&&t.bearerFormat===void 0){const P={};r===null?r=[P]:r.push(P),s++}var v;if(b===s){const P={instancePath:e,schemaPath:"#/oneOf/1/not",keyword:"not",params:{},message:"must NOT be valid"};r===null?r=[P]:r.push(P),s++}else s=g,r!==null&&(g?r.length=g:r=null);if(t&&typeof t=="object"&&!Array.isArray(t)&&t.scheme!==void 0){const P=s,A=s;if(t.scheme!=="bearer"){const _={};r===null?r=[_]:r.push(_),s++}if(A===s){const _={instancePath:e+"/scheme",schemaPath:"#/oneOf/1/properties/scheme/not",keyword:"not",params:{},message:"must NOT be valid"};r===null?r=[_]:r.push(_),s++}else s=P,r!==null&&(P?r.length=P:r=null)}if((v=m===s)&&u?(u=!1,f=[f,1]):v&&(u=!0,f=1,d!==!0&&((d=d||{}).scheme=!0)),u)s=l,r!==null&&(l?r.length=l:r=null);else{const P={instancePath:e,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas:f},message:"must match exactly one schema in oneOf"};r===null?r=[P]:r.push(P),s++}if(t&&typeof t=="object"&&!Array.isArray(t)){if(t.scheme===void 0){const P={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"scheme"},message:"must have required property 'scheme'"};r===null?r=[P]:r.push(P),s++}if(t.type===void 0){const P={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};r===null?r=[P]:r.push(P),s++}for(const P in t)if(P!=="scheme"&&P!=="bearerFormat"&&P!=="description"&&P!=="type"&&!Je.test(P)){const A={instancePath:e,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:P},message:"must NOT have additional properties"};r===null?r=[A]:r.push(A),s++}if(t.scheme!==void 0&&typeof t.scheme!="string"){const P={instancePath:e+"/scheme",schemaPath:"#/properties/scheme/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[P]:r.push(P),s++}if(t.bearerFormat!==void 0&&typeof t.bearerFormat!="string"){const P={instancePath:e+"/bearerFormat",schemaPath:"#/properties/bearerFormat/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[P]:r.push(P),s++}if(t.description!==void 0&&typeof t.description!="string"){const P={instancePath:e+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[P]:r.push(P),s++}if(t.type!==void 0){let P=t.type;if(typeof P!="string"){const A={instancePath:e+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[A]:r.push(A),s++}if(P!=="http"){const A={instancePath:e+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue:"http"},message:"must be equal to constant"};r===null?r=[A]:r.push(A),s++}}}else{const P={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[P]:r.push(P),s++}return ly.errors=r,s===0}function cy(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=cy.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.authorizationUrl===void 0){const l={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"authorizationUrl"},message:"must have required property 'authorizationUrl'"};r===null?r=[l]:r.push(l),s++}if(t.scopes===void 0){const l={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"scopes"},message:"must have required property 'scopes'"};r===null?r=[l]:r.push(l),s++}for(const l in t)if(l!=="authorizationUrl"&&l!=="refreshUrl"&&l!=="scopes"&&!Je.test(l)){const u={instancePath:e,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"};r===null?r=[u]:r.push(u),s++}if(t.authorizationUrl!==void 0){let l=t.authorizationUrl;if(typeof l=="string"){if(!$r.test(l)){const u={instancePath:e+"/authorizationUrl",schemaPath:"#/properties/authorizationUrl/format",keyword:"format",params:{format:"uri-reference"},message:'must match format "uri-reference"'};r===null?r=[u]:r.push(u),s++}}else{const u={instancePath:e+"/authorizationUrl",schemaPath:"#/properties/authorizationUrl/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[u]:r.push(u),s++}}if(t.refreshUrl!==void 0){let l=t.refreshUrl;if(typeof l=="string"){if(!$r.test(l)){const u={instancePath:e+"/refreshUrl",schemaPath:"#/properties/refreshUrl/format",keyword:"format",params:{format:"uri-reference"},message:'must match format "uri-reference"'};r===null?r=[u]:r.push(u),s++}}else{const u={instancePath:e+"/refreshUrl",schemaPath:"#/properties/refreshUrl/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[u]:r.push(u),s++}}if(t.scopes!==void 0){let l=t.scopes;if(l&&typeof l=="object"&&!Array.isArray(l)){for(const u in l)if(typeof l[u]!="string"){const f={instancePath:e+"/scopes/"+u.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/scopes/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[f]:r.push(f),s++}}else{const u={instancePath:e+"/scopes",schemaPath:"#/properties/scopes/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[u]:r.push(u),s++}}}else{const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[l]:r.push(l),s++}return cy.errors=r,s===0}function uy(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=uy.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.tokenUrl===void 0){const l={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"tokenUrl"},message:"must have required property 'tokenUrl'"};r===null?r=[l]:r.push(l),s++}if(t.scopes===void 0){const l={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"scopes"},message:"must have required property 'scopes'"};r===null?r=[l]:r.push(l),s++}for(const l in t)if(l!=="tokenUrl"&&l!=="refreshUrl"&&l!=="scopes"&&!Je.test(l)){const u={instancePath:e,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"};r===null?r=[u]:r.push(u),s++}if(t.tokenUrl!==void 0){let l=t.tokenUrl;if(typeof l=="string"){if(!$r.test(l)){const u={instancePath:e+"/tokenUrl",schemaPath:"#/properties/tokenUrl/format",keyword:"format",params:{format:"uri-reference"},message:'must match format "uri-reference"'};r===null?r=[u]:r.push(u),s++}}else{const u={instancePath:e+"/tokenUrl",schemaPath:"#/properties/tokenUrl/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[u]:r.push(u),s++}}if(t.refreshUrl!==void 0){let l=t.refreshUrl;if(typeof l=="string"){if(!$r.test(l)){const u={instancePath:e+"/refreshUrl",schemaPath:"#/properties/refreshUrl/format",keyword:"format",params:{format:"uri-reference"},message:'must match format "uri-reference"'};r===null?r=[u]:r.push(u),s++}}else{const u={instancePath:e+"/refreshUrl",schemaPath:"#/properties/refreshUrl/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[u]:r.push(u),s++}}if(t.scopes!==void 0){let l=t.scopes;if(l&&typeof l=="object"&&!Array.isArray(l)){for(const u in l)if(typeof l[u]!="string"){const f={instancePath:e+"/scopes/"+u.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/scopes/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[f]:r.push(f),s++}}else{const u={instancePath:e+"/scopes",schemaPath:"#/properties/scopes/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[u]:r.push(u),s++}}}else{const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[l]:r.push(l),s++}return uy.errors=r,s===0}function fy(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=fy.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.tokenUrl===void 0){const l={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"tokenUrl"},message:"must have required property 'tokenUrl'"};r===null?r=[l]:r.push(l),s++}if(t.scopes===void 0){const l={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"scopes"},message:"must have required property 'scopes'"};r===null?r=[l]:r.push(l),s++}for(const l in t)if(l!=="tokenUrl"&&l!=="refreshUrl"&&l!=="scopes"&&!Je.test(l)){const u={instancePath:e,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"};r===null?r=[u]:r.push(u),s++}if(t.tokenUrl!==void 0){let l=t.tokenUrl;if(typeof l=="string"){if(!$r.test(l)){const u={instancePath:e+"/tokenUrl",schemaPath:"#/properties/tokenUrl/format",keyword:"format",params:{format:"uri-reference"},message:'must match format "uri-reference"'};r===null?r=[u]:r.push(u),s++}}else{const u={instancePath:e+"/tokenUrl",schemaPath:"#/properties/tokenUrl/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[u]:r.push(u),s++}}if(t.refreshUrl!==void 0){let l=t.refreshUrl;if(typeof l=="string"){if(!$r.test(l)){const u={instancePath:e+"/refreshUrl",schemaPath:"#/properties/refreshUrl/format",keyword:"format",params:{format:"uri-reference"},message:'must match format "uri-reference"'};r===null?r=[u]:r.push(u),s++}}else{const u={instancePath:e+"/refreshUrl",schemaPath:"#/properties/refreshUrl/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[u]:r.push(u),s++}}if(t.scopes!==void 0){let l=t.scopes;if(l&&typeof l=="object"&&!Array.isArray(l)){for(const u in l)if(typeof l[u]!="string"){const f={instancePath:e+"/scopes/"+u.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/scopes/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[f]:r.push(f),s++}}else{const u={instancePath:e+"/scopes",schemaPath:"#/properties/scopes/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[u]:r.push(u),s++}}}else{const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[l]:r.push(l),s++}return fy.errors=r,s===0}function py(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=py.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.authorizationUrl===void 0){const l={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"authorizationUrl"},message:"must have required property 'authorizationUrl'"};r===null?r=[l]:r.push(l),s++}if(t.tokenUrl===void 0){const l={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"tokenUrl"},message:"must have required property 'tokenUrl'"};r===null?r=[l]:r.push(l),s++}if(t.scopes===void 0){const l={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"scopes"},message:"must have required property 'scopes'"};r===null?r=[l]:r.push(l),s++}for(const l in t)if(l!=="authorizationUrl"&&l!=="tokenUrl"&&l!=="refreshUrl"&&l!=="scopes"&&!Je.test(l)){const u={instancePath:e,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"};r===null?r=[u]:r.push(u),s++}if(t.authorizationUrl!==void 0){let l=t.authorizationUrl;if(typeof l=="string"){if(!$r.test(l)){const u={instancePath:e+"/authorizationUrl",schemaPath:"#/properties/authorizationUrl/format",keyword:"format",params:{format:"uri-reference"},message:'must match format "uri-reference"'};r===null?r=[u]:r.push(u),s++}}else{const u={instancePath:e+"/authorizationUrl",schemaPath:"#/properties/authorizationUrl/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[u]:r.push(u),s++}}if(t.tokenUrl!==void 0){let l=t.tokenUrl;if(typeof l=="string"){if(!$r.test(l)){const u={instancePath:e+"/tokenUrl",schemaPath:"#/properties/tokenUrl/format",keyword:"format",params:{format:"uri-reference"},message:'must match format "uri-reference"'};r===null?r=[u]:r.push(u),s++}}else{const u={instancePath:e+"/tokenUrl",schemaPath:"#/properties/tokenUrl/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[u]:r.push(u),s++}}if(t.refreshUrl!==void 0){let l=t.refreshUrl;if(typeof l=="string"){if(!$r.test(l)){const u={instancePath:e+"/refreshUrl",schemaPath:"#/properties/refreshUrl/format",keyword:"format",params:{format:"uri-reference"},message:'must match format "uri-reference"'};r===null?r=[u]:r.push(u),s++}}else{const u={instancePath:e+"/refreshUrl",schemaPath:"#/properties/refreshUrl/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[u]:r.push(u),s++}}if(t.scopes!==void 0){let l=t.scopes;if(l&&typeof l=="object"&&!Array.isArray(l)){for(const u in l)if(typeof l[u]!="string"){const f={instancePath:e+"/scopes/"+u.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/scopes/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[f]:r.push(f),s++}}else{const u={instancePath:e+"/scopes",schemaPath:"#/properties/scopes/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[u]:r.push(u),s++}}}else{const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[l]:r.push(l),s++}return py.errors=r,s===0}function hy(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=hy.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){for(const l in t)if(l!=="implicit"&&l!=="password"&&l!=="clientCredentials"&&l!=="authorizationCode"&&!Je.test(l)){const u={instancePath:e,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"};r===null?r=[u]:r.push(u),s++}t.implicit!==void 0&&(cy(t.implicit,{instancePath:e+"/implicit",parentData:t,parentDataProperty:"implicit",rootData:a,dynamicAnchors:o})||(r=r===null?cy.errors:r.concat(cy.errors),s=r.length)),t.password!==void 0&&(uy(t.password,{instancePath:e+"/password",parentData:t,parentDataProperty:"password",rootData:a,dynamicAnchors:o})||(r=r===null?uy.errors:r.concat(uy.errors),s=r.length)),t.clientCredentials!==void 0&&(fy(t.clientCredentials,{instancePath:e+"/clientCredentials",parentData:t,parentDataProperty:"clientCredentials",rootData:a,dynamicAnchors:o})||(r=r===null?fy.errors:r.concat(fy.errors),s=r.length)),t.authorizationCode!==void 0&&(py(t.authorizationCode,{instancePath:e+"/authorizationCode",parentData:t,parentDataProperty:"authorizationCode",rootData:a,dynamicAnchors:o})||(r=r===null?py.errors:r.concat(py.errors),s=r.length))}else{const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[l]:r.push(l),s++}return hy.errors=r,s===0}function dy(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=dy.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.type===void 0){const l={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};r===null?r=[l]:r.push(l),s++}if(t.flows===void 0){const l={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"flows"},message:"must have required property 'flows'"};r===null?r=[l]:r.push(l),s++}for(const l in t)if(l!=="type"&&l!=="flows"&&l!=="description"&&!Je.test(l)){const u={instancePath:e,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"};r===null?r=[u]:r.push(u),s++}if(t.type!==void 0&&t.type!=="oauth2"){const l={instancePath:e+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue:"oauth2"},message:"must be equal to constant"};r===null?r=[l]:r.push(l),s++}if(t.flows!==void 0&&(hy(t.flows,{instancePath:e+"/flows",parentData:t,parentDataProperty:"flows",rootData:a,dynamicAnchors:o})||(r=r===null?hy.errors:r.concat(hy.errors),s=r.length)),t.description!==void 0&&typeof t.description!="string"){const l={instancePath:e+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}}else{const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[l]:r.push(l),s++}return dy.errors=r,s===0}function my(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=my.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.type===void 0){const l={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};r===null?r=[l]:r.push(l),s++}if(t.openIdConnectUrl===void 0){const l={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"openIdConnectUrl"},message:"must have required property 'openIdConnectUrl'"};r===null?r=[l]:r.push(l),s++}for(const l in t)if(l!=="type"&&l!=="openIdConnectUrl"&&l!=="description"&&!Je.test(l)){const u={instancePath:e,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"};r===null?r=[u]:r.push(u),s++}if(t.type!==void 0&&t.type!=="openIdConnect"){const l={instancePath:e+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue:"openIdConnect"},message:"must be equal to constant"};r===null?r=[l]:r.push(l),s++}if(t.openIdConnectUrl!==void 0){let l=t.openIdConnectUrl;if(typeof l=="string"){if(!$r.test(l)){const u={instancePath:e+"/openIdConnectUrl",schemaPath:"#/properties/openIdConnectUrl/format",keyword:"format",params:{format:"uri-reference"},message:'must match format "uri-reference"'};r===null?r=[u]:r.push(u),s++}}else{const u={instancePath:e+"/openIdConnectUrl",schemaPath:"#/properties/openIdConnectUrl/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[u]:r.push(u),s++}}if(t.description!==void 0&&typeof t.description!="string"){const l={instancePath:e+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}}else{const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[l]:r.push(l),s++}return my.errors=r,s===0}function Op(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Op.evaluated;c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0);const l=s;let u=!0;const f=s;if(s===f)if(t&&typeof t=="object"&&!Array.isArray(t)){if(t.type===void 0){const x={};r===null?r=[x]:r.push(x),s++}else if(t.type!==void 0&&t.type!=="apiKey"){const x={};r===null?r=[x]:r.push(x),s++}}else{const x={};r===null?r=[x]:r.push(x),s++}var h=f===s;let d;if(s=l,r!==null&&(l?r.length=l:r=null),h){const x=s;if(oy(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o})||(r=r===null?oy.errors:r.concat(oy.errors),s=r.length),u=h=x===s,u)var m=!0;d="then"}else{const x=s,E=s;let j=!0;const F=s;if(s===F)if(t&&typeof t=="object"&&!Array.isArray(t)){if(t.type===void 0){const L={};r===null?r=[L]:r.push(L),s++}else if(t.type!==void 0&&t.type!=="apiKey"){const L={};r===null?r=[L]:r.push(L),s++}}else{const L={};r===null?r=[L]:r.push(L),s++}var g=F===s;let I;if(s=E,r!==null&&(E?r.length=E:r=null),g){const L=s;if(ly(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o})||(r=r===null?ly.errors:r.concat(ly.errors),s=r.length),j=g=L===s,j)var b=!0;I="then"}else{const L=s,V=s;let q=!0;const S=s;if(s===S)if(t&&typeof t=="object"&&!Array.isArray(t)){if(t.type===void 0){const R={};r===null?r=[R]:r.push(R),s++}else if(t.type!==void 0&&t.type!=="oauth2"){const R={};r===null?r=[R]:r.push(R),s++}}else{const R={};r===null?r=[R]:r.push(R),s++}var v=S===s;let D;if(s=V,r!==null&&(V?r.length=V:r=null),v){const R=s;if(dy(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o})||(r=r===null?dy.errors:r.concat(dy.errors),s=r.length),q=v=R===s,q)var P=!0;D="then"}else{const R=s,C=s;let H=!0;const X=s;if(s===X)if(t&&typeof t=="object"&&!Array.isArray(t)){if(t.type===void 0){const z={};r===null?r=[z]:r.push(z),s++}else if(t.type!==void 0&&t.type!=="openIdConnect"){const z={};r===null?r=[z]:r.push(z),s++}}else{const z={};r===null?r=[z]:r.push(z),s++}var A=X===s;let ae;if(s=C,r!==null&&(C?r.length=C:r=null),A){const z=s;if(my(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o})||(r=r===null?my.errors:r.concat(my.errors),s=r.length),H=A=z===s,H)var _=!0;ae="then"}else{const z=s;if(t&&typeof t=="object"&&!Array.isArray(t)){if(t.type===void 0){const M={instancePath:e,schemaPath:"#/else/else/else/else/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};r===null?r=[M]:r.push(M),s++}if(t.type!==void 0){let M=t.type;if(M!=="apiKey"&&M!=="http"&&M!=="oauth2"&&M!=="openIdConnect"){const U={instancePath:e+"/type",schemaPath:"#/else/else/else/else/properties/type/enum",keyword:"enum",params:{allowedValues:p8.else.else.else.else.properties.type.enum},message:"must be equal to one of the allowed values"};r===null?r=[U]:r.push(U),s++}}}else{const M={instancePath:e,schemaPath:"#/else/else/else/else/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[M]:r.push(M),s++}if(s>0){const M={required:[],type:[]},U={};for(const T of r)T.keyword!=="errorMessage"&&!T.emUsed&&T.instancePath===e&&T.keyword in M&&T.schemaPath.indexOf("#/else/else/else/else")===0&&/^\/[^\/]*$/.test(T.schemaPath.slice(21))&&(M[T.keyword].push(T),T.emUsed=!0);for(const T in M)if(M[T].length){const G={instancePath:e,schemaPath:"#/else/else/else/else/errorMessage",keyword:"errorMessage",params:{errors:M[T]},message:T in U?U[T]():p8.else.else.else.else.errorMessage[T]};r===null?r=[G]:r.push(G),s++}const W=[];for(const T of r)T.emUsed||W.push(T);r=W,s=W.length}H=A=z===s,H&&_!==!0&&((_=_||{}).type=!0),ae="else"}if(!H){const z={instancePath:e,schemaPath:"#/else/else/else/if",keyword:"if",params:{failingKeyword:ae},message:'must match "'+ae+'" schema'};r===null?r=[z]:r.push(z),s++}q=v=R===s,q&&P!==!0&&_!==void 0&&(_===!0?P=!0:(P=P||{},Object.assign(P,_))),D="else"}if(!q){const R={instancePath:e,schemaPath:"#/else/else/if",keyword:"if",params:{failingKeyword:D},message:'must match "'+D+'" schema'};r===null?r=[R]:r.push(R),s++}j=g=L===s,j&&b!==!0&&P!==void 0&&(P===!0?b=!0:(b=b||{},Object.assign(b,P))),I="else"}if(!j){const L={instancePath:e,schemaPath:"#/else/if",keyword:"if",params:{failingKeyword:I},message:'must match "'+I+'" schema'};r===null?r=[L]:r.push(L),s++}u=h=x===s,u&&m!==!0&&b!==void 0&&(b===!0?m=!0:(m=m||{},Object.assign(m,b))),d="else"}if(!u){const x={instancePath:e,schemaPath:"#/if",keyword:"if",params:{failingKeyword:d},message:'must match "'+d+'" schema'};r===null?r=[x]:r.push(x),s++}return Op.errors=r,c.props=m,s===0}function yy(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=yy.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){for(const M in t)if(!Qi.call(Ftt.properties,M)&&!Je.test(M)){const U={instancePath:e,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:M},message:"must NOT have additional properties"};r===null?r=[U]:r.push(U),s++}if(t.schemas!==void 0){let M=t.schemas;if(M&&typeof M=="object"&&!Array.isArray(M)){var l={};for(const U in M)if(sa.test(U)){let W=M[U];const T=s;let G=!0;const oe=s;if(s===oe)if(W&&typeof W=="object"&&!Array.isArray(W)){if(W.$ref===void 0){const ie={};r===null?r=[ie]:r.push(ie),s++}}else{const ie={};r===null?r=[ie]:r.push(ie),s++}var u=oe===s;let ve;if(s=T,r!==null&&(T?r.length=T:r=null),u){const ie=s;if(Fe(W,{instancePath:e+"/schemas/"+U.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:M,parentDataProperty:U,rootData:a,dynamicAnchors:o}))var f=Fe.evaluated.props;else r=r===null?Fe.errors:r.concat(Fe.errors),s=r.length;G=u=ie===s,ve="then"}else{const ie=s;Gi(W,{instancePath:e+"/schemas/"+U.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:M,parentDataProperty:U,rootData:a,dynamicAnchors:o})||(r=r===null?Gi.errors:r.concat(Gi.errors),s=r.length),G=u=ie===s,G&&f!==!0&&(f=!0),ve="else"}if(!G){const ie={instancePath:e+"/schemas/"+U.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/schemas/patternProperties/%5E%5Ba-zA-Z0-9%5C.%5C-_%5D%2B%24/if",keyword:"if",params:{failingKeyword:ve},message:'must match "'+ve+'" schema'};r===null?r=[ie]:r.push(ie),s++}l[U]=!0}}else{const U={instancePath:e+"/schemas",schemaPath:"#/properties/schemas/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[U]:r.push(U),s++}}if(t.responses!==void 0){let M=t.responses;if(M&&typeof M=="object"&&!Array.isArray(M)){var h={};for(const U in M)if(sa.test(U)){let W=M[U];const T=s;let G=!0;const oe=s;if(s===oe)if(W&&typeof W=="object"&&!Array.isArray(W)){if(W.$ref===void 0){const ie={};r===null?r=[ie]:r.push(ie),s++}}else{const ie={};r===null?r=[ie]:r.push(ie),s++}var d=oe===s;let ve;if(s=T,r!==null&&(T?r.length=T:r=null),d){const ie=s;if(Fe(W,{instancePath:e+"/responses/"+U.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:M,parentDataProperty:U,rootData:a,dynamicAnchors:o}))var m=Fe.evaluated.props;else r=r===null?Fe.errors:r.concat(Fe.errors),s=r.length;G=d=ie===s,ve="then"}else{const ie=s;Gs(W,{instancePath:e+"/responses/"+U.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:M,parentDataProperty:U,rootData:a,dynamicAnchors:o})||(r=r===null?Gs.errors:r.concat(Gs.errors),s=r.length),G=d=ie===s,G&&m!==!0&&(m=!0),ve="else"}if(!G){const ie={instancePath:e+"/responses/"+U.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/responses/patternProperties/%5E%5Ba-zA-Z0-9%5C.%5C-_%5D%2B%24/if",keyword:"if",params:{failingKeyword:ve},message:'must match "'+ve+'" schema'};r===null?r=[ie]:r.push(ie),s++}h[U]=!0}}else{const U={instancePath:e+"/responses",schemaPath:"#/properties/responses/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[U]:r.push(U),s++}}if(t.parameters!==void 0){let M=t.parameters;if(M&&typeof M=="object"&&!Array.isArray(M)){var g={};for(const U in M)if(sa.test(U)){let W=M[U];const T=s;let G=!0;const oe=s;if(s===oe)if(W&&typeof W=="object"&&!Array.isArray(W)){if(W.$ref===void 0){const ie={};r===null?r=[ie]:r.push(ie),s++}}else{const ie={};r===null?r=[ie]:r.push(ie),s++}var b=oe===s;let ve;if(s=T,r!==null&&(T?r.length=T:r=null),b){const ie=s;if(Fe(W,{instancePath:e+"/parameters/"+U.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:M,parentDataProperty:U,rootData:a,dynamicAnchors:o}))var v=Fe.evaluated.props;else r=r===null?Fe.errors:r.concat(Fe.errors),s=r.length;G=b=ie===s,ve="then"}else{const ie=s;lo(W,{instancePath:e+"/parameters/"+U.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:M,parentDataProperty:U,rootData:a,dynamicAnchors:o})||(r=r===null?lo.errors:r.concat(lo.errors),s=r.length),G=b=ie===s,G&&v!==!0&&(v=!0),ve="else"}if(!G){const ie={instancePath:e+"/parameters/"+U.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/parameters/patternProperties/%5E%5Ba-zA-Z0-9%5C.%5C-_%5D%2B%24/if",keyword:"if",params:{failingKeyword:ve},message:'must match "'+ve+'" schema'};r===null?r=[ie]:r.push(ie),s++}g[U]=!0}}else{const U={instancePath:e+"/parameters",schemaPath:"#/properties/parameters/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[U]:r.push(U),s++}}if(t.examples!==void 0){let M=t.examples;if(M&&typeof M=="object"&&!Array.isArray(M)){var P={};for(const U in M)if(sa.test(U)){let W=M[U];const T=s;let G=!0;const oe=s;if(s===oe)if(W&&typeof W=="object"&&!Array.isArray(W)){if(W.$ref===void 0){const ie={};r===null?r=[ie]:r.push(ie),s++}}else{const ie={};r===null?r=[ie]:r.push(ie),s++}var A=oe===s;let ve;if(s=T,r!==null&&(T?r.length=T:r=null),A){const ie=s;if(Fe(W,{instancePath:e+"/examples/"+U.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:M,parentDataProperty:U,rootData:a,dynamicAnchors:o}))var _=Fe.evaluated.props;else r=r===null?Fe.errors:r.concat(Fe.errors),s=r.length;G=A=ie===s,ve="then"}else{const ie=s;wa(W,{instancePath:e+"/examples/"+U.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:M,parentDataProperty:U,rootData:a,dynamicAnchors:o})||(r=r===null?wa.errors:r.concat(wa.errors),s=r.length),G=A=ie===s,G&&_!==!0&&(_=!0),ve="else"}if(!G){const ie={instancePath:e+"/examples/"+U.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/examples/patternProperties/%5E%5Ba-zA-Z0-9%5C.%5C-_%5D%2B%24/if",keyword:"if",params:{failingKeyword:ve},message:'must match "'+ve+'" schema'};r===null?r=[ie]:r.push(ie),s++}P[U]=!0}}else{const U={instancePath:e+"/examples",schemaPath:"#/properties/examples/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[U]:r.push(U),s++}}if(t.requestBodies!==void 0){let M=t.requestBodies;if(M&&typeof M=="object"&&!Array.isArray(M)){var x={};for(const U in M)if(sa.test(U)){let W=M[U];const T=s;let G=!0;const oe=s;if(s===oe)if(W&&typeof W=="object"&&!Array.isArray(W)){if(W.$ref===void 0){const ie={};r===null?r=[ie]:r.push(ie),s++}}else{const ie={};r===null?r=[ie]:r.push(ie),s++}var E=oe===s;let ve;if(s=T,r!==null&&(T?r.length=T:r=null),E){const ie=s;if(Fe(W,{instancePath:e+"/requestBodies/"+U.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:M,parentDataProperty:U,rootData:a,dynamicAnchors:o}))var j=Fe.evaluated.props;else r=r===null?Fe.errors:r.concat(Fe.errors),s=r.length;G=E=ie===s,ve="then"}else{const ie=s;Vc(W,{instancePath:e+"/requestBodies/"+U.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:M,parentDataProperty:U,rootData:a,dynamicAnchors:o})||(r=r===null?Vc.errors:r.concat(Vc.errors),s=r.length),G=E=ie===s,G&&j!==!0&&(j=!0),ve="else"}if(!G){const ie={instancePath:e+"/requestBodies/"+U.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/requestBodies/patternProperties/%5E%5Ba-zA-Z0-9%5C.%5C-_%5D%2B%24/if",keyword:"if",params:{failingKeyword:ve},message:'must match "'+ve+'" schema'};r===null?r=[ie]:r.push(ie),s++}x[U]=!0}}else{const U={instancePath:e+"/requestBodies",schemaPath:"#/properties/requestBodies/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[U]:r.push(U),s++}}if(t.headers!==void 0){let M=t.headers;if(M&&typeof M=="object"&&!Array.isArray(M)){var F={};for(const U in M)if(sa.test(U)){let W=M[U];const T=s;let G=!0;const oe=s;if(s===oe)if(W&&typeof W=="object"&&!Array.isArray(W)){if(W.$ref===void 0){const ie={};r===null?r=[ie]:r.push(ie),s++}}else{const ie={};r===null?r=[ie]:r.push(ie),s++}var I=oe===s;let ve;if(s=T,r!==null&&(T?r.length=T:r=null),I){const ie=s;if(Fe(W,{instancePath:e+"/headers/"+U.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:M,parentDataProperty:U,rootData:a,dynamicAnchors:o}))var L=Fe.evaluated.props;else r=r===null?Fe.errors:r.concat(Fe.errors),s=r.length;G=I=ie===s,ve="then"}else{const ie=s;oo(W,{instancePath:e+"/headers/"+U.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:M,parentDataProperty:U,rootData:a,dynamicAnchors:o})||(r=r===null?oo.errors:r.concat(oo.errors),s=r.length),G=I=ie===s,G&&L!==!0&&(L=!0),ve="else"}if(!G){const ie={instancePath:e+"/headers/"+U.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/headers/patternProperties/%5E%5Ba-zA-Z0-9%5C.%5C-_%5D%2B%24/if",keyword:"if",params:{failingKeyword:ve},message:'must match "'+ve+'" schema'};r===null?r=[ie]:r.push(ie),s++}F[U]=!0}}else{const U={instancePath:e+"/headers",schemaPath:"#/properties/headers/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[U]:r.push(U),s++}}if(t.securitySchemes!==void 0){let M=t.securitySchemes;if(M&&typeof M=="object"&&!Array.isArray(M)){var V={};for(const U in M)if(sa.test(U)){let W=M[U];const T=s;let G=!0;const oe=s;if(s===oe)if(W&&typeof W=="object"&&!Array.isArray(W)){if(W.$ref===void 0){const ie={};r===null?r=[ie]:r.push(ie),s++}}else{const ie={};r===null?r=[ie]:r.push(ie),s++}var q=oe===s;let ve;if(s=T,r!==null&&(T?r.length=T:r=null),q){const ie=s;if(Fe(W,{instancePath:e+"/securitySchemes/"+U.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:M,parentDataProperty:U,rootData:a,dynamicAnchors:o}))var S=Fe.evaluated.props;else r=r===null?Fe.errors:r.concat(Fe.errors),s=r.length;G=q=ie===s,ve="then"}else{const ie=s;if(Op(W,{instancePath:e+"/securitySchemes/"+U.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:M,parentDataProperty:U,rootData:a,dynamicAnchors:o}))var D=Op.evaluated.props;else r=r===null?Op.errors:r.concat(Op.errors),s=r.length;G=q=ie===s,G&&S!==!0&&D!==void 0&&(D===!0?S=!0:(S=S||{},Object.assign(S,D))),ve="else"}if(!G){const ie={instancePath:e+"/securitySchemes/"+U.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/securitySchemes/patternProperties/%5E%5Ba-zA-Z0-9%5C.%5C-_%5D%2B%24/if",keyword:"if",params:{failingKeyword:ve},message:'must match "'+ve+'" schema'};r===null?r=[ie]:r.push(ie),s++}V[U]=!0}}else{const U={instancePath:e+"/securitySchemes",schemaPath:"#/properties/securitySchemes/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[U]:r.push(U),s++}}if(t.links!==void 0){let M=t.links;if(M&&typeof M=="object"&&!Array.isArray(M)){var R={};for(const U in M)if(sa.test(U)){let W=M[U];const T=s;let G=!0;const oe=s;if(s===oe)if(W&&typeof W=="object"&&!Array.isArray(W)){if(W.$ref===void 0){const ie={};r===null?r=[ie]:r.push(ie),s++}}else{const ie={};r===null?r=[ie]:r.push(ie),s++}var C=oe===s;let ve;if(s=T,r!==null&&(T?r.length=T:r=null),C){const ie=s;if(Fe(W,{instancePath:e+"/links/"+U.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:M,parentDataProperty:U,rootData:a,dynamicAnchors:o}))var H=Fe.evaluated.props;else r=r===null?Fe.errors:r.concat(Fe.errors),s=r.length;G=C=ie===s,ve="then"}else{const ie=s;Wc(W,{instancePath:e+"/links/"+U.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:M,parentDataProperty:U,rootData:a,dynamicAnchors:o})||(r=r===null?Wc.errors:r.concat(Wc.errors),s=r.length),G=C=ie===s,G&&H!==!0&&(H=!0),ve="else"}if(!G){const ie={instancePath:e+"/links/"+U.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/links/patternProperties/%5E%5Ba-zA-Z0-9%5C.%5C-_%5D%2B%24/if",keyword:"if",params:{failingKeyword:ve},message:'must match "'+ve+'" schema'};r===null?r=[ie]:r.push(ie),s++}R[U]=!0}}else{const U={instancePath:e+"/links",schemaPath:"#/properties/links/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[U]:r.push(U),s++}}if(t.callbacks!==void 0){let M=t.callbacks;if(M&&typeof M=="object"&&!Array.isArray(M)){var X={};for(const U in M)if(sa.test(U)){let W=M[U];const T=s;let G=!0;const oe=s;if(s===oe)if(W&&typeof W=="object"&&!Array.isArray(W)){if(W.$ref===void 0){const ie={};r===null?r=[ie]:r.push(ie),s++}}else{const ie={};r===null?r=[ie]:r.push(ie),s++}var ae=oe===s;let ve;if(s=T,r!==null&&(T?r.length=T:r=null),ae){const ie=s;if(Fe(W,{instancePath:e+"/callbacks/"+U.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:M,parentDataProperty:U,rootData:a,dynamicAnchors:o}))var z=Fe.evaluated.props;else r=r===null?Fe.errors:r.concat(Fe.errors),s=r.length;G=ae=ie===s,ve="then"}else{const ie=s;Hc(W,{instancePath:e+"/callbacks/"+U.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:M,parentDataProperty:U,rootData:a,dynamicAnchors:o})||(r=r===null?Hc.errors:r.concat(Hc.errors),s=r.length),G=ae=ie===s,G&&z!==!0&&(z=!0),ve="else"}if(!G){const ie={instancePath:e+"/callbacks/"+U.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/callbacks/patternProperties/%5E%5Ba-zA-Z0-9%5C.%5C-_%5D%2B%24/if",keyword:"if",params:{failingKeyword:ve},message:'must match "'+ve+'" schema'};r===null?r=[ie]:r.push(ie),s++}X[U]=!0}}else{const U={instancePath:e+"/callbacks",schemaPath:"#/properties/callbacks/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[U]:r.push(U),s++}}}else{const M={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[M]:r.push(M),s++}return yy.errors=r,s===0}function ES(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=ES.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.openapi===void 0){const l={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"openapi"},message:"must have required property 'openapi'"};r===null?r=[l]:r.push(l),s++}if(t.info===void 0){const l={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"info"},message:"must have required property 'info'"};r===null?r=[l]:r.push(l),s++}if(t.paths===void 0){const l={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"paths"},message:"must have required property 'paths'"};r===null?r=[l]:r.push(l),s++}for(const l in t)if(l!=="openapi"&&l!=="info"&&l!=="externalDocs"&&l!=="servers"&&l!=="security"&&l!=="tags"&&l!=="paths"&&l!=="components"&&!Je.test(l)){const u={instancePath:e,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"};r===null?r=[u]:r.push(u),s++}if(t.openapi!==void 0){let l=t.openapi;if(typeof l=="string"){if(!Ttt.test(l)){const u={instancePath:e+"/openapi",schemaPath:"#/properties/openapi/pattern",keyword:"pattern",params:{pattern:"^3\\.0\\.\\d(-.+)?$"},message:'must match pattern "^3\\.0\\.\\d(-.+)?$"'};r===null?r=[u]:r.push(u),s++}}else{const u={instancePath:e+"/openapi",schemaPath:"#/properties/openapi/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[u]:r.push(u),s++}}if(t.info!==void 0&&(Qm(t.info,{instancePath:e+"/info",parentData:t,parentDataProperty:"info",rootData:a,dynamicAnchors:o})||(r=r===null?Qm.errors:r.concat(Qm.errors),s=r.length)),t.externalDocs!==void 0&&(Pa(t.externalDocs,{instancePath:e+"/externalDocs",parentData:t,parentDataProperty:"externalDocs",rootData:a,dynamicAnchors:o})||(r=r===null?Pa.errors:r.concat(Pa.errors),s=r.length)),t.servers!==void 0){let l=t.servers;if(Array.isArray(l)){const u=l.length;for(let f=0;f1){e:for(;h--;)for(f=h;f--;)if(Wr(l[h],l[f])){const d={instancePath:e+"/tags",schemaPath:"#/properties/tags/uniqueItems",keyword:"uniqueItems",params:{i:h,j:f},message:"must NOT have duplicate items (items ## "+f+" and "+h+" are identical)"};r===null?r=[d]:r.push(d),s++;break e}}}else{const u={instancePath:e+"/tags",schemaPath:"#/properties/tags/type",keyword:"type",params:{type:"array"},message:"must be array"};r===null?r=[u]:r.push(u),s++}}t.paths!==void 0&&(sy(t.paths,{instancePath:e+"/paths",parentData:t,parentDataProperty:"paths",rootData:a,dynamicAnchors:o})||(r=r===null?sy.errors:r.concat(sy.errors),s=r.length)),t.components!==void 0&&(yy(t.components,{instancePath:e+"/components",parentData:t,parentDataProperty:"components",rootData:a,dynamicAnchors:o})||(r=r===null?yy.errors:r.concat(yy.errors),s=r.length))}else{const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[l]:r.push(l),s++}return ES.errors=r,s===0}oy.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},ly.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},cy.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},uy.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},fy.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},py.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},hy.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},dy.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},my.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},Op.evaluated={dynamicProps:!0,dynamicItems:!1},yy.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},ES.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};Ll.oas3_1=IS;const ztt={$id:"https://spec.openapis.org/oas/3.1/schema/2021-09-28",$schema:"https://json-schema.org/draft/2020-12/schema",description:"The description of OpenAPI v3.1.x documents without schema validation, as defined by https://spec.openapis.org/oas/v3.1.0",type:"object",properties:{openapi:{type:"string",pattern:"^3\\.1\\.\\d+(-.+)?$"},info:{$ref:"#/$defs/info"},jsonSchemaDialect:{type:"string",format:"uri",default:"https://spec.openapis.org/oas/3.1/dialect/base"},servers:{type:"array",items:{$ref:"#/$defs/server"},default:[{url:"/"}]},paths:{$ref:"#/$defs/paths"},webhooks:{type:"object",additionalProperties:{$ref:"#/$defs/path-item-or-reference"}},components:{$ref:"#/$defs/components"},security:{type:"array",items:{$ref:"#/$defs/security-requirement"}},tags:{type:"array",items:{$ref:"#/$defs/tag"}},externalDocs:{$ref:"#/$defs/external-documentation"}},required:["openapi","info"],errorMessage:{anyOf:'The document must have either "paths", "webhooks" or "components"'},anyOf:[{errorMessage:'The document must have either "paths", "webhooks" or "components"',required:["paths"]},{errorMessage:'The document must have either "paths", "webhooks" or "components"',required:["components"]},{errorMessage:'The document must have either "paths", "webhooks" or "components"',required:["webhooks"]}],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1,$defs:{info:{$comment:"https://spec.openapis.org/oas/v3.1.0#info-object",type:"object",properties:{title:{type:"string"},summary:{type:"string"},description:{type:"string"},termsOfService:{type:"string",format:"uri"},contact:{$ref:"#/$defs/contact"},license:{$ref:"#/$defs/license"},version:{type:"string"}},required:["title","version"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},contact:{$comment:"https://spec.openapis.org/oas/v3.1.0#contact-object",type:"object",properties:{name:{type:"string"},url:{type:"string",format:"uri"},email:{type:"string",format:"email"}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},license:{$comment:"https://spec.openapis.org/oas/v3.1.0#license-object",type:"object",properties:{name:{type:"string"},identifier:{type:"string"},url:{type:"string",format:"uri"}},required:["name"],dependentSchemas:{identifier:{not:{required:["url"]}}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},server:{$comment:"https://spec.openapis.org/oas/v3.1.0#server-object",type:"object",properties:{url:{type:"string"},description:{type:"string"},variables:{type:"object",additionalProperties:{$ref:"#/$defs/server-variable"}}},required:["url"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"server-variable":{$comment:"https://spec.openapis.org/oas/v3.1.0#server-variable-object",type:"object",properties:{enum:{type:"array",items:{type:"string"},minItems:1},default:{type:"string"},description:{type:"string"}},required:["default"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},components:{$comment:"https://spec.openapis.org/oas/v3.1.0#components-object",type:"object",properties:{schemas:{type:"object",additionalProperties:{$ref:"https://spec.openapis.org/oas/3.1/dialect/base"}},responses:{type:"object",additionalProperties:{$ref:"#/$defs/response-or-reference"}},parameters:{type:"object",additionalProperties:{$ref:"#/$defs/parameter-or-reference"}},examples:{type:"object",additionalProperties:{$ref:"#/$defs/example-or-reference"}},requestBodies:{type:"object",additionalProperties:{$ref:"#/$defs/request-body-or-reference"}},headers:{type:"object",additionalProperties:{$ref:"#/$defs/header-or-reference"}},securitySchemes:{type:"object",additionalProperties:{$ref:"#/$defs/security-scheme-or-reference"}},links:{type:"object",additionalProperties:{$ref:"#/$defs/link-or-reference"}},callbacks:{type:"object",additionalProperties:{$ref:"#/$defs/callbacks-or-reference"}},pathItems:{type:"object",additionalProperties:{$ref:"#/$defs/path-item-or-reference"}}},patternProperties:{"^(schemas|responses|parameters|examples|requestBodies|headers|securitySchemes|links|callbacks|pathItems)$":{$comment:"Enumerating all of the property names in the regex above is necessary for unevaluatedProperties to work as expected",propertyNames:{pattern:"^[a-zA-Z0-9._-]+$"}}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},paths:{$comment:"https://spec.openapis.org/oas/v3.1.0#paths-object",type:"object",patternProperties:{"^/":{$ref:"#/$defs/path-item"}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"path-item":{$comment:"https://spec.openapis.org/oas/v3.1.0#path-item-object",type:"object",properties:{summary:{type:"string"},description:{type:"string"},servers:{type:"array",items:{$ref:"#/$defs/server"}},parameters:{type:"array",items:{$ref:"#/$defs/parameter-or-reference"}},get:{$ref:"#/$defs/operation"},put:{$ref:"#/$defs/operation"},post:{$ref:"#/$defs/operation"},delete:{$ref:"#/$defs/operation"},options:{$ref:"#/$defs/operation"},head:{$ref:"#/$defs/operation"},patch:{$ref:"#/$defs/operation"},trace:{$ref:"#/$defs/operation"}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"path-item-or-reference":{if:{type:"object",required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/path-item"}},operation:{$comment:"https://spec.openapis.org/oas/v3.1.0#operation-object",type:"object",properties:{tags:{type:"array",items:{type:"string"}},summary:{type:"string"},description:{type:"string"},externalDocs:{$ref:"#/$defs/external-documentation"},operationId:{type:"string"},parameters:{type:"array",items:{$ref:"#/$defs/parameter-or-reference"}},requestBody:{$ref:"#/$defs/request-body-or-reference"},responses:{$ref:"#/$defs/responses"},callbacks:{type:"object",additionalProperties:{$ref:"#/$defs/callbacks-or-reference"}},deprecated:{default:!1,type:"boolean"},security:{type:"array",items:{$ref:"#/$defs/security-requirement"}},servers:{type:"array",items:{$ref:"#/$defs/server"}}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"external-documentation":{$comment:"https://spec.openapis.org/oas/v3.1.0#external-documentation-object",type:"object",properties:{description:{type:"string"},url:{type:"string",format:"uri"}},required:["url"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},parameter:{$comment:"https://spec.openapis.org/oas/v3.1.0#parameter-object",type:"object",properties:{name:{type:"string"},in:{enum:["query","header","path","cookie"]},description:{type:"string"},required:{default:!1,type:"boolean"},deprecated:{default:!1,type:"boolean"},schema:{$ref:"https://spec.openapis.org/oas/3.1/dialect/base"},content:{$ref:"#/$defs/content",minProperties:1,maxProperties:1}},required:["name","in"],oneOf:[{required:["schema"]},{required:["content"]}],if:{properties:{in:{const:"query"}},required:["in"]},then:{properties:{allowEmptyValue:{default:!1,type:"boolean"}}},dependentSchemas:{schema:{properties:{style:{type:"string"},explode:{type:"boolean"}},allOf:[{$ref:"#/$defs/examples"},{$ref:"#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-path"},{$ref:"#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-header"},{$ref:"#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-query"},{$ref:"#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-cookie"},{$ref:"#/$defs/styles-for-form"}],$defs:{"styles-for-path":{if:{properties:{in:{const:"path"}},required:["in"]},then:{properties:{style:{default:"simple",enum:["matrix","label","simple"]},required:{const:!0}},required:["required"]}},"styles-for-header":{if:{properties:{in:{const:"header"}},required:["in"]},then:{properties:{style:{default:"simple",const:"simple"}}}},"styles-for-query":{if:{properties:{in:{const:"query"}},required:["in"]},then:{properties:{style:{default:"form",enum:["form","spaceDelimited","pipeDelimited","deepObject"]},allowReserved:{default:!1,type:"boolean"}}}},"styles-for-cookie":{if:{properties:{in:{const:"cookie"}},required:["in"]},then:{properties:{style:{default:"form",const:"form"}}}}}}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"parameter-or-reference":{if:{type:"object",required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/parameter"}},"request-body":{$comment:"https://spec.openapis.org/oas/v3.1.0#request-body-object",type:"object",properties:{description:{type:"string"},content:{$ref:"#/$defs/content"},required:{default:!1,type:"boolean"}},required:["content"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"request-body-or-reference":{if:{type:"object",required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/request-body"}},content:{$comment:"https://spec.openapis.org/oas/v3.1.0#fixed-fields-10",type:"object",additionalProperties:{$ref:"#/$defs/media-type"},propertyNames:{format:"media-range"}},"media-type":{$comment:"https://spec.openapis.org/oas/v3.1.0#media-type-object",type:"object",properties:{schema:{$ref:"https://spec.openapis.org/oas/3.1/dialect/base"},encoding:{type:"object",additionalProperties:{$ref:"#/$defs/encoding"}}},allOf:[{$ref:"#/$defs/specification-extensions"},{$ref:"#/$defs/examples"}],unevaluatedProperties:!1},encoding:{$comment:"https://spec.openapis.org/oas/v3.1.0#encoding-object",type:"object",properties:{contentType:{type:"string",format:"media-range"},headers:{type:"object",additionalProperties:{$ref:"#/$defs/header-or-reference"}},style:{default:"form",enum:["form","spaceDelimited","pipeDelimited","deepObject"]},explode:{type:"boolean"},allowReserved:{default:!1,type:"boolean"}},allOf:[{$ref:"#/$defs/specification-extensions"},{$ref:"#/$defs/styles-for-form"}],unevaluatedProperties:!1},responses:{$comment:"https://spec.openapis.org/oas/v3.1.0#responses-object",type:"object",properties:{default:{$ref:"#/$defs/response-or-reference"}},patternProperties:{"^[1-5](?:[0-9]{2}|XX)$":{$ref:"#/$defs/response-or-reference"}},minProperties:1,$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1,if:{$comment:"either default, or at least one response code property must exist",patternProperties:{"^[1-5](?:[0-9]{2}|XX)$":!1}},then:{required:["default"]}},response:{$comment:"https://spec.openapis.org/oas/v3.1.0#response-object",type:"object",properties:{description:{type:"string"},headers:{type:"object",additionalProperties:{$ref:"#/$defs/header-or-reference"}},content:{$ref:"#/$defs/content"},links:{type:"object",additionalProperties:{$ref:"#/$defs/link-or-reference"}}},required:["description"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"response-or-reference":{if:{type:"object",required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/response"}},callbacks:{$comment:"https://spec.openapis.org/oas/v3.1.0#callback-object",type:"object",$ref:"#/$defs/specification-extensions",additionalProperties:{$ref:"#/$defs/path-item-or-reference"}},"callbacks-or-reference":{if:{type:"object",required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/callbacks"}},example:{$comment:"https://spec.openapis.org/oas/v3.1.0#example-object",type:"object",properties:{summary:{type:"string"},description:{type:"string"},value:!0,externalValue:{type:"string",format:"uri"}},not:{required:["value","externalValue"]},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"example-or-reference":{if:{type:"object",required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/example"}},link:{$comment:"https://spec.openapis.org/oas/v3.1.0#link-object",type:"object",properties:{operationRef:{type:"string",format:"uri-reference"},operationId:{type:"string"},parameters:{$ref:"#/$defs/map-of-strings"},requestBody:!0,description:{type:"string"},body:{$ref:"#/$defs/server"}},oneOf:[{required:["operationRef"]},{required:["operationId"]}],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"link-or-reference":{if:{type:"object",required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/link"}},header:{$comment:"https://spec.openapis.org/oas/v3.1.0#header-object",type:"object",properties:{description:{type:"string"},required:{default:!1,type:"boolean"},deprecated:{default:!1,type:"boolean"},schema:{$ref:"https://spec.openapis.org/oas/3.1/dialect/base"},content:{$ref:"#/$defs/content",minProperties:1,maxProperties:1}},oneOf:[{required:["schema"]},{required:["content"]}],dependentSchemas:{schema:{properties:{style:{default:"simple",const:"simple"},explode:{default:!1,type:"boolean"}},$ref:"#/$defs/examples"}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"header-or-reference":{if:{type:"object",required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/header"}},tag:{$comment:"https://spec.openapis.org/oas/v3.1.0#tag-object",type:"object",properties:{name:{type:"string"},description:{type:"string"},externalDocs:{$ref:"#/$defs/external-documentation"}},required:["name"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},reference:{$comment:"https://spec.openapis.org/oas/v3.1.0#reference-object",type:"object",properties:{$ref:{type:"string",format:"uri-reference"},summary:{type:"string"},description:{type:"string"}}},schema:{$comment:"https://spec.openapis.org/oas/v3.1.0#schema-object",$ref:"https://spec.openapis.org/oas/3.1/dialect/base"},"security-scheme":{$comment:"https://spec.openapis.org/oas/v3.1.0#security-scheme-object",type:"object",properties:{type:{enum:["apiKey","http","mutualTLS","oauth2","openIdConnect"]},description:{type:"string"}},required:["type"],allOf:[{$ref:"#/$defs/specification-extensions"},{$ref:"#/$defs/security-scheme/$defs/type-apikey"},{$ref:"#/$defs/security-scheme/$defs/type-http"},{$ref:"#/$defs/security-scheme/$defs/type-http-bearer"},{$ref:"#/$defs/security-scheme/$defs/type-oauth2"},{$ref:"#/$defs/security-scheme/$defs/type-oidc"}],unevaluatedProperties:!1,$defs:{"type-apikey":{if:{properties:{type:{const:"apiKey"}},required:["type"]},then:{properties:{name:{type:"string"},in:{enum:["query","header","cookie"]}},required:["name","in"]}},"type-http":{if:{properties:{type:{const:"http"}},required:["type"]},then:{properties:{scheme:{type:"string"}},required:["scheme"]}},"type-http-bearer":{if:{properties:{type:{const:"http"},scheme:{type:"string",pattern:"^[Bb][Ee][Aa][Rr][Ee][Rr]$"}},required:["type","scheme"]},then:{properties:{bearerFormat:{type:"string"}}}},"type-oauth2":{if:{properties:{type:{const:"oauth2"}},required:["type"]},then:{properties:{flows:{$ref:"#/$defs/oauth-flows"}},required:["flows"]}},"type-oidc":{if:{properties:{type:{const:"openIdConnect"}},required:["type"]},then:{properties:{openIdConnectUrl:{type:"string",format:"uri"}},required:["openIdConnectUrl"]}}}},"security-scheme-or-reference":{if:{type:"object",required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/security-scheme"}},"oauth-flows":{type:"object",properties:{implicit:{$ref:"#/$defs/oauth-flows/$defs/implicit"},password:{$ref:"#/$defs/oauth-flows/$defs/password"},clientCredentials:{$ref:"#/$defs/oauth-flows/$defs/client-credentials"},authorizationCode:{$ref:"#/$defs/oauth-flows/$defs/authorization-code"}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1,$defs:{implicit:{type:"object",properties:{authorizationUrl:{type:"string",format:"uri-reference"},refreshUrl:{type:"string",format:"uri-reference"},scopes:{$ref:"#/$defs/map-of-strings"}},required:["authorizationUrl","scopes"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},password:{type:"object",properties:{tokenUrl:{type:"string",format:"uri-reference"},refreshUrl:{type:"string",format:"uri-reference"},scopes:{$ref:"#/$defs/map-of-strings"}},required:["tokenUrl","scopes"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"client-credentials":{type:"object",properties:{tokenUrl:{type:"string",format:"uri-reference"},refreshUrl:{type:"string",format:"uri-reference"},scopes:{$ref:"#/$defs/map-of-strings"}},required:["tokenUrl","scopes"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"authorization-code":{type:"object",properties:{authorizationUrl:{type:"string",format:"uri-reference"},tokenUrl:{type:"string",format:"uri-reference"},refreshUrl:{type:"string",format:"uri-reference"},scopes:{$ref:"#/$defs/map-of-strings"}},required:["authorizationUrl","tokenUrl","scopes"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1}}},"security-requirement":{$comment:"https://spec.openapis.org/oas/v3.1.0#security-requirement-object",type:"object",additionalProperties:{type:"array",items:{type:"string"}}},"specification-extensions":{$comment:"https://spec.openapis.org/oas/v3.1.0#specification-extensions",patternProperties:{"^x-":!0}},examples:{properties:{example:!0,examples:{type:"object",additionalProperties:{$ref:"#/$defs/example-or-reference"}}}},"map-of-strings":{type:"object",additionalProperties:{type:"string"}},"styles-for-form":{if:{properties:{style:{const:"form"}},required:["style"]},then:{properties:{explode:{default:!0}}},else:{properties:{explode:{default:!1}}}}}};function wt(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){const r=wt.evaluated;if(r.dynamicProps&&(r.props=void 0),r.dynamicItems&&(r.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){var s={};for(const c in t)Je.test(c)&&(s[c]=!0)}return wt.errors=null,r.props=s,!0}function gy(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=gy.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),wt(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o}))var l=wt.evaluated.props;if(t&&typeof t=="object"&&!Array.isArray(t)){if(l!==!0&&((l=l||{}).name=!0,l.url=!0,l.email=!0),t.name!==void 0&&typeof t.name!="string"){const u={instancePath:e+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[u]:r.push(u),s++}if(t.url!==void 0){let u=t.url;if(typeof u=="string"){if(!Ci(u)){const f={instancePath:e+"/url",schemaPath:"#/properties/url/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};r===null?r=[f]:r.push(f),s++}}else{const f={instancePath:e+"/url",schemaPath:"#/properties/url/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[f]:r.push(f),s++}}if(t.email!==void 0){let u=t.email;if(typeof u=="string"){if(!YN.test(u)){const f={instancePath:e+"/email",schemaPath:"#/properties/email/format",keyword:"format",params:{format:"email"},message:'must match format "email"'};r===null?r=[f]:r.push(f),s++}}else{const f={instancePath:e+"/email",schemaPath:"#/properties/email/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[f]:r.push(f),s++}}if(l!==!0){for(const u in t)if(!l||!l[u]){const f={instancePath:e,schemaPath:"#/unevaluatedProperties",keyword:"unevaluatedProperties",params:{unevaluatedProperty:u},message:"must NOT have unevaluated properties"};r===null?r=[f]:r.push(f),s++}}}else{const u={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[u]:r.push(u),s++}return gy.errors=r,s===0}function vy(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=vy.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),wt(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o}))var l=wt.evaluated.props;if(t&&typeof t=="object"&&!Array.isArray(t)){if(t.name===void 0){const u={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"name"},message:"must have required property 'name'"};r===null?r=[u]:r.push(u),s++}if(l!==!0&&((l=l||{}).name=!0,l.identifier=!0,l.url=!0),t.name!==void 0&&typeof t.name!="string"){const u={instancePath:e+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[u]:r.push(u),s++}if(t.identifier!==void 0&&typeof t.identifier!="string"){const u={instancePath:e+"/identifier",schemaPath:"#/properties/identifier/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[u]:r.push(u),s++}if(t.url!==void 0){let u=t.url;if(typeof u=="string"){if(!Ci(u)){const f={instancePath:e+"/url",schemaPath:"#/properties/url/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};r===null?r=[f]:r.push(f),s++}}else{const f={instancePath:e+"/url",schemaPath:"#/properties/url/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[f]:r.push(f),s++}}if(t.identifier!==void 0){const u=s,f=s;if(t&&typeof t=="object"&&!Array.isArray(t)&&t.url===void 0){const h={};r===null?r=[h]:r.push(h),s++}if(f===s){const h={instancePath:e,schemaPath:"#/dependentSchemas/identifier/not",keyword:"not",params:{},message:"must NOT be valid"};r===null?r=[h]:r.push(h),s++}else s=u,r!==null&&(u?r.length=u:r=null)}if(l!==!0){for(const u in t)if(!l||!l[u]){const f={instancePath:e,schemaPath:"#/unevaluatedProperties",keyword:"unevaluatedProperties",params:{unevaluatedProperty:u},message:"must NOT have unevaluated properties"};r===null?r=[f]:r.push(f),s++}}}else{const u={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[u]:r.push(u),s++}return vy.errors=r,s===0}function Py(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Py.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),wt(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o}))var l=wt.evaluated.props;if(t&&typeof t=="object"&&!Array.isArray(t)){if(t.title===void 0){const u={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"title"},message:"must have required property 'title'"};r===null?r=[u]:r.push(u),s++}if(t.version===void 0){const u={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"version"},message:"must have required property 'version'"};r===null?r=[u]:r.push(u),s++}if(l!==!0&&((l=l||{}).title=!0,l.summary=!0,l.description=!0,l.termsOfService=!0,l.contact=!0,l.license=!0,l.version=!0),t.title!==void 0&&typeof t.title!="string"){const u={instancePath:e+"/title",schemaPath:"#/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[u]:r.push(u),s++}if(t.summary!==void 0&&typeof t.summary!="string"){const u={instancePath:e+"/summary",schemaPath:"#/properties/summary/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[u]:r.push(u),s++}if(t.description!==void 0&&typeof t.description!="string"){const u={instancePath:e+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[u]:r.push(u),s++}if(t.termsOfService!==void 0){let u=t.termsOfService;if(typeof u=="string"){if(!Ci(u)){const f={instancePath:e+"/termsOfService",schemaPath:"#/properties/termsOfService/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};r===null?r=[f]:r.push(f),s++}}else{const f={instancePath:e+"/termsOfService",schemaPath:"#/properties/termsOfService/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[f]:r.push(f),s++}}if(t.contact!==void 0&&(gy(t.contact,{instancePath:e+"/contact",parentData:t,parentDataProperty:"contact",rootData:a,dynamicAnchors:o})||(r=r===null?gy.errors:r.concat(gy.errors),s=r.length)),t.license!==void 0&&(vy(t.license,{instancePath:e+"/license",parentData:t,parentDataProperty:"license",rootData:a,dynamicAnchors:o})||(r=r===null?vy.errors:r.concat(vy.errors),s=r.length)),t.version!==void 0&&typeof t.version!="string"){const u={instancePath:e+"/version",schemaPath:"#/properties/version/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[u]:r.push(u),s++}if(l!==!0){for(const u in t)if(!l||!l[u]){const f={instancePath:e,schemaPath:"#/unevaluatedProperties",keyword:"unevaluatedProperties",params:{unevaluatedProperty:u},message:"must NOT have unevaluated properties"};r===null?r=[f]:r.push(f),s++}}}else{const u={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[u]:r.push(u),s++}return Py.errors=r,s===0}function by(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=by.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),wt(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o}))var l=wt.evaluated.props;if(t&&typeof t=="object"&&!Array.isArray(t)){if(t.default===void 0){const u={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"default"},message:"must have required property 'default'"};r===null?r=[u]:r.push(u),s++}if(l!==!0&&((l=l||{}).enum=!0,l.default=!0,l.description=!0),t.enum!==void 0){let u=t.enum;if(Array.isArray(u)){if(u.length<1){const h={instancePath:e+"/enum",schemaPath:"#/properties/enum/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items"};r===null?r=[h]:r.push(h),s++}const f=u.length;for(let h=0;hh?u:h))}else r=r===null?oa.errors:r.concat(oa.errors),s=r.length}else{const m={instancePath:e+"/$defs",schemaPath:"#/properties/%24defs/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[m]:r.push(m),s++}}}return oa.errors=r,s===0}oa.evaluated={props:{$id:!0,$schema:!0,$ref:!0,$anchor:!0,$dynamicRef:!0,$dynamicAnchor:!0,$vocabulary:!0,$comment:!0,$defs:!0},dynamicProps:!1,dynamicItems:!1};const Wtt={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/applicator",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/applicator":!0},$dynamicAnchor:"meta",title:"Applicator vocabulary meta-schema",type:["object","boolean"],properties:{prefixItems:{$ref:"#/$defs/schemaArray"},items:{$dynamicRef:"#meta"},contains:{$dynamicRef:"#meta"},additionalProperties:{$dynamicRef:"#meta"},properties:{type:"object",additionalProperties:{$dynamicRef:"#meta"},default:{}},patternProperties:{type:"object",additionalProperties:{$dynamicRef:"#meta"},propertyNames:{format:"regex"},default:{}},dependentSchemas:{type:"object",additionalProperties:{$dynamicRef:"#meta"},default:{}},propertyNames:{$dynamicRef:"#meta"},if:{$dynamicRef:"#meta"},then:{$dynamicRef:"#meta"},else:{$dynamicRef:"#meta"},allOf:{$ref:"#/$defs/schemaArray"},anyOf:{$ref:"#/$defs/schemaArray"},oneOf:{$ref:"#/$defs/schemaArray"},not:{$dynamicRef:"#meta"}},$defs:{schemaArray:{type:"array",minItems:1,items:{$dynamicRef:"#meta"}}}};function Vn(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Vn.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),Array.isArray(t)){if(t.length<1){const m={instancePath:e,schemaPath:"#/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items"};r===null?r=[m]:r.push(m),s++}const d=t.length;for(let m=0;mh?u:h))}else r=r===null?Vn.errors:r.concat(Vn.errors),s=r.length}}else{const d={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"array"},message:"must be array"};r===null?r=[d]:r.push(d),s++}return Vn.errors=r,s===0}function dt(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=dt.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),(!t||typeof t!="object"||Array.isArray(t))&&typeof t!="boolean"){const Re={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:Wtt.type},message:"must be object,boolean"};r===null?r=[Re]:r.push(Re),s++}if(o.meta||(o.meta=dt),t&&typeof t=="object"&&!Array.isArray(t)){if(t.prefixItems!==void 0&&(Vn(t.prefixItems,{instancePath:e+"/prefixItems",parentData:t,parentDataProperty:"prefixItems",rootData:a,dynamicAnchors:o})||(r=r===null?Vn.errors:r.concat(Vn.errors),s=r.length)),t.items!==void 0){let Re=t.items,je=o.meta;if(je)if(je(Re,{instancePath:e+"/items",parentData:t,parentDataProperty:"items",rootData:a,dynamicAnchors:o}))var l=je.evaluated.props,u=je.evaluated.items;else r=r===null?je.errors:r.concat(je.errors),s=r.length;else if(dt(Re,{instancePath:e+"/items",parentData:t,parentDataProperty:"items",rootData:a,dynamicAnchors:o})){var f=dt.evaluated.props;l!==!0&&f!==void 0&&(f===!0?l=!0:(l=l||{},Object.assign(l,f)));var h=dt.evaluated.items;u!==!0&&h!==void 0&&(u=h===!0||(u>h?u:h))}else r=r===null?dt.errors:r.concat(dt.errors),s=r.length}if(t.contains!==void 0){let Re=t.contains,je=o.meta;if(je)if(je(Re,{instancePath:e+"/contains",parentData:t,parentDataProperty:"contains",rootData:a,dynamicAnchors:o}))var d=je.evaluated.props,m=je.evaluated.items;else r=r===null?je.errors:r.concat(je.errors),s=r.length;else if(dt(Re,{instancePath:e+"/contains",parentData:t,parentDataProperty:"contains",rootData:a,dynamicAnchors:o})){var g=dt.evaluated.props;d!==!0&&g!==void 0&&(g===!0?d=!0:(d=d||{},Object.assign(d,g)));var b=dt.evaluated.items;m!==!0&&b!==void 0&&(m=b===!0||(m>b?m:b))}else r=r===null?dt.errors:r.concat(dt.errors),s=r.length}if(t.additionalProperties!==void 0){let Re=t.additionalProperties,je=o.meta;if(je)if(je(Re,{instancePath:e+"/additionalProperties",parentData:t,parentDataProperty:"additionalProperties",rootData:a,dynamicAnchors:o}))var v=je.evaluated.props,P=je.evaluated.items;else r=r===null?je.errors:r.concat(je.errors),s=r.length;else if(dt(Re,{instancePath:e+"/additionalProperties",parentData:t,parentDataProperty:"additionalProperties",rootData:a,dynamicAnchors:o})){var A=dt.evaluated.props;v!==!0&&A!==void 0&&(A===!0?v=!0:(v=v||{},Object.assign(v,A)));var _=dt.evaluated.items;P!==!0&&_!==void 0&&(P=_===!0||(P>_?P:_))}else r=r===null?dt.errors:r.concat(dt.errors),s=r.length}if(t.properties!==void 0){let Re=t.properties;if(Re&&typeof Re=="object"&&!Array.isArray(Re))for(const je in Re){let $t=Re[je],Se=o.meta;if(Se)if(Se($t,{instancePath:e+"/properties/"+je.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:Re,parentDataProperty:je,rootData:a,dynamicAnchors:o}))var x=Se.evaluated.props,E=Se.evaluated.items;else r=r===null?Se.errors:r.concat(Se.errors),s=r.length;else if(dt($t,{instancePath:e+"/properties/"+je.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:Re,parentDataProperty:je,rootData:a,dynamicAnchors:o})){var j=dt.evaluated.props;x!==!0&&j!==void 0&&(j===!0?x=!0:(x=x||{},Object.assign(x,j)));var F=dt.evaluated.items;E!==!0&&F!==void 0&&(E=F===!0||(E>F?E:F))}else r=r===null?dt.errors:r.concat(dt.errors),s=r.length}else{const je={instancePath:e+"/properties",schemaPath:"#/properties/properties/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[je]:r.push(je),s++}}if(t.patternProperties!==void 0){let Re=t.patternProperties;if(Re&&typeof Re=="object"&&!Array.isArray(Re)){for(const je in Re)if(s!=s){const $t={instancePath:e+"/patternProperties",schemaPath:"#/properties/patternProperties/propertyNames",keyword:"propertyNames",params:{propertyName:je},message:"property name must be valid"};r===null?r=[$t]:r.push($t),s++}for(const je in Re){let $t=Re[je],Se=o.meta;if(Se)if(Se($t,{instancePath:e+"/patternProperties/"+je.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:Re,parentDataProperty:je,rootData:a,dynamicAnchors:o}))var I=Se.evaluated.props,L=Se.evaluated.items;else r=r===null?Se.errors:r.concat(Se.errors),s=r.length;else if(dt($t,{instancePath:e+"/patternProperties/"+je.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:Re,parentDataProperty:je,rootData:a,dynamicAnchors:o})){var V=dt.evaluated.props;I!==!0&&V!==void 0&&(V===!0?I=!0:(I=I||{},Object.assign(I,V)));var q=dt.evaluated.items;L!==!0&&q!==void 0&&(L=q===!0||(L>q?L:q))}else r=r===null?dt.errors:r.concat(dt.errors),s=r.length}}else{const je={instancePath:e+"/patternProperties",schemaPath:"#/properties/patternProperties/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[je]:r.push(je),s++}}if(t.dependentSchemas!==void 0){let Re=t.dependentSchemas;if(Re&&typeof Re=="object"&&!Array.isArray(Re))for(const je in Re){let $t=Re[je],Se=o.meta;if(Se)if(Se($t,{instancePath:e+"/dependentSchemas/"+je.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:Re,parentDataProperty:je,rootData:a,dynamicAnchors:o}))var S=Se.evaluated.props,D=Se.evaluated.items;else r=r===null?Se.errors:r.concat(Se.errors),s=r.length;else if(dt($t,{instancePath:e+"/dependentSchemas/"+je.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:Re,parentDataProperty:je,rootData:a,dynamicAnchors:o})){var R=dt.evaluated.props;S!==!0&&R!==void 0&&(R===!0?S=!0:(S=S||{},Object.assign(S,R)));var C=dt.evaluated.items;D!==!0&&C!==void 0&&(D=C===!0||(D>C?D:C))}else r=r===null?dt.errors:r.concat(dt.errors),s=r.length}else{const je={instancePath:e+"/dependentSchemas",schemaPath:"#/properties/dependentSchemas/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[je]:r.push(je),s++}}if(t.propertyNames!==void 0){let Re=t.propertyNames,je=o.meta;if(je)if(je(Re,{instancePath:e+"/propertyNames",parentData:t,parentDataProperty:"propertyNames",rootData:a,dynamicAnchors:o}))var H=je.evaluated.props,X=je.evaluated.items;else r=r===null?je.errors:r.concat(je.errors),s=r.length;else if(dt(Re,{instancePath:e+"/propertyNames",parentData:t,parentDataProperty:"propertyNames",rootData:a,dynamicAnchors:o})){var ae=dt.evaluated.props;H!==!0&&ae!==void 0&&(ae===!0?H=!0:(H=H||{},Object.assign(H,ae)));var z=dt.evaluated.items;X!==!0&&z!==void 0&&(X=z===!0||(X>z?X:z))}else r=r===null?dt.errors:r.concat(dt.errors),s=r.length}if(t.if!==void 0){let Re=t.if,je=o.meta;if(je)if(je(Re,{instancePath:e+"/if",parentData:t,parentDataProperty:"if",rootData:a,dynamicAnchors:o}))var M=je.evaluated.props,U=je.evaluated.items;else r=r===null?je.errors:r.concat(je.errors),s=r.length;else if(dt(Re,{instancePath:e+"/if",parentData:t,parentDataProperty:"if",rootData:a,dynamicAnchors:o})){var W=dt.evaluated.props;M!==!0&&W!==void 0&&(W===!0?M=!0:(M=M||{},Object.assign(M,W)));var T=dt.evaluated.items;U!==!0&&T!==void 0&&(U=T===!0||(U>T?U:T))}else r=r===null?dt.errors:r.concat(dt.errors),s=r.length}if(t.then!==void 0){let Re=t.then,je=o.meta;if(je)if(je(Re,{instancePath:e+"/then",parentData:t,parentDataProperty:"then",rootData:a,dynamicAnchors:o}))var G=je.evaluated.props,oe=je.evaluated.items;else r=r===null?je.errors:r.concat(je.errors),s=r.length;else if(dt(Re,{instancePath:e+"/then",parentData:t,parentDataProperty:"then",rootData:a,dynamicAnchors:o})){var ve=dt.evaluated.props;G!==!0&&ve!==void 0&&(ve===!0?G=!0:(G=G||{},Object.assign(G,ve)));var ie=dt.evaluated.items;oe!==!0&&ie!==void 0&&(oe=ie===!0||(oe>ie?oe:ie))}else r=r===null?dt.errors:r.concat(dt.errors),s=r.length}if(t.else!==void 0){let Re=t.else,je=o.meta;if(je)if(je(Re,{instancePath:e+"/else",parentData:t,parentDataProperty:"else",rootData:a,dynamicAnchors:o}))var Ae=je.evaluated.props,pe=je.evaluated.items;else r=r===null?je.errors:r.concat(je.errors),s=r.length;else if(dt(Re,{instancePath:e+"/else",parentData:t,parentDataProperty:"else",rootData:a,dynamicAnchors:o})){var De=dt.evaluated.props;Ae!==!0&&De!==void 0&&(De===!0?Ae=!0:(Ae=Ae||{},Object.assign(Ae,De)));var We=dt.evaluated.items;pe!==!0&&We!==void 0&&(pe=We===!0||(pe>We?pe:We))}else r=r===null?dt.errors:r.concat(dt.errors),s=r.length}if(t.allOf!==void 0&&(Vn(t.allOf,{instancePath:e+"/allOf",parentData:t,parentDataProperty:"allOf",rootData:a,dynamicAnchors:o})||(r=r===null?Vn.errors:r.concat(Vn.errors),s=r.length)),t.anyOf!==void 0&&(Vn(t.anyOf,{instancePath:e+"/anyOf",parentData:t,parentDataProperty:"anyOf",rootData:a,dynamicAnchors:o})||(r=r===null?Vn.errors:r.concat(Vn.errors),s=r.length)),t.oneOf!==void 0&&(Vn(t.oneOf,{instancePath:e+"/oneOf",parentData:t,parentDataProperty:"oneOf",rootData:a,dynamicAnchors:o})||(r=r===null?Vn.errors:r.concat(Vn.errors),s=r.length)),t.not!==void 0){let Re=t.not,je=o.meta;if(je)if(je(Re,{instancePath:e+"/not",parentData:t,parentDataProperty:"not",rootData:a,dynamicAnchors:o}))var Ce=je.evaluated.props,_e=je.evaluated.items;else r=r===null?je.errors:r.concat(je.errors),s=r.length;else if(dt(Re,{instancePath:e+"/not",parentData:t,parentDataProperty:"not",rootData:a,dynamicAnchors:o})){var st=dt.evaluated.props;Ce!==!0&&st!==void 0&&(st===!0?Ce=!0:(Ce=Ce||{},Object.assign(Ce,st)));var yt=dt.evaluated.items;_e!==!0&&yt!==void 0&&(_e=yt===!0||(_e>yt?_e:yt))}else r=r===null?dt.errors:r.concat(dt.errors),s=r.length}}return dt.errors=r,s===0}Vn.evaluated={items:!0,dynamicProps:!1,dynamicItems:!1},dt.evaluated={props:{prefixItems:!0,items:!0,contains:!0,additionalProperties:!0,properties:!0,patternProperties:!0,dependentSchemas:!0,propertyNames:!0,if:!0,then:!0,else:!0,allOf:!0,anyOf:!0,oneOf:!0,not:!0},dynamicProps:!1,dynamicItems:!1};const Htt={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/unevaluated",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/unevaluated":!0},$dynamicAnchor:"meta",title:"Unevaluated applicator vocabulary meta-schema",type:["object","boolean"],properties:{unevaluatedItems:{$dynamicRef:"#meta"},unevaluatedProperties:{$dynamicRef:"#meta"}}};function Un(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Un.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),(!t||typeof t!="object"||Array.isArray(t))&&typeof t!="boolean"){const v={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:Htt.type},message:"must be object,boolean"};r===null?r=[v]:r.push(v),s++}if(o.meta||(o.meta=Un),t&&typeof t=="object"&&!Array.isArray(t)){if(t.unevaluatedItems!==void 0){let v=t.unevaluatedItems,P=o.meta;if(P)if(P(v,{instancePath:e+"/unevaluatedItems",parentData:t,parentDataProperty:"unevaluatedItems",rootData:a,dynamicAnchors:o}))var l=P.evaluated.props,u=P.evaluated.items;else r=r===null?P.errors:r.concat(P.errors),s=r.length;else if(Un(v,{instancePath:e+"/unevaluatedItems",parentData:t,parentDataProperty:"unevaluatedItems",rootData:a,dynamicAnchors:o})){var f=Un.evaluated.props;l!==!0&&f!==void 0&&(f===!0?l=!0:(l=l||{},Object.assign(l,f)));var h=Un.evaluated.items;u!==!0&&h!==void 0&&(u=h===!0||(u>h?u:h))}else r=r===null?Un.errors:r.concat(Un.errors),s=r.length}if(t.unevaluatedProperties!==void 0){let v=t.unevaluatedProperties,P=o.meta;if(P)if(P(v,{instancePath:e+"/unevaluatedProperties",parentData:t,parentDataProperty:"unevaluatedProperties",rootData:a,dynamicAnchors:o}))var d=P.evaluated.props,m=P.evaluated.items;else r=r===null?P.errors:r.concat(P.errors),s=r.length;else if(Un(v,{instancePath:e+"/unevaluatedProperties",parentData:t,parentDataProperty:"unevaluatedProperties",rootData:a,dynamicAnchors:o})){var g=Un.evaluated.props;d!==!0&&g!==void 0&&(g===!0?d=!0:(d=d||{},Object.assign(d,g)));var b=Un.evaluated.items;m!==!0&&b!==void 0&&(m=b===!0||(m>b?m:b))}else r=r===null?Un.errors:r.concat(Un.errors),s=r.length}}return Un.errors=r,s===0}Un.evaluated={props:{unevaluatedItems:!0,unevaluatedProperties:!0},dynamicProps:!1,dynamicItems:!1};const Gtt={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://stoplight.io/json-schema/draft/2020-12/meta/validation",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/validation":!0},$dynamicAnchor:"meta",title:"Validation vocabulary meta-schema",type:["object","boolean"],properties:{type:{if:{type:"string"},then:{$ref:"#/$defs/simpleTypes"},else:{if:{type:"array"},then:{type:"array",items:{$ref:"#/$defs/simpleTypes"},minItems:1,uniqueItems:!0},else:{not:!0,errorMessage:'"type" property must be either a string or an array of strings'}}},const:!0,enum:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/$defs/nonNegativeInteger"},minLength:{$ref:"#/$defs/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},maxItems:{$ref:"#/$defs/nonNegativeInteger"},minItems:{$ref:"#/$defs/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},maxContains:{$ref:"#/$defs/nonNegativeInteger"},minContains:{$ref:"#/$defs/nonNegativeInteger",default:1},maxProperties:{$ref:"#/$defs/nonNegativeInteger"},minProperties:{$ref:"#/$defs/nonNegativeIntegerDefault0"},required:{$ref:"#/$defs/stringArray"},dependentRequired:{type:"object",additionalProperties:{$ref:"#/$defs/stringArray"}}},$defs:{nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{$ref:"#/$defs/nonNegativeInteger",default:0},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}}},Ktt={enum:["array","boolean","integer","null","number","object","string"]};function wc(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=wc.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t!=="array"&&t!=="boolean"&&t!=="integer"&&t!=="null"&&t!=="number"&&t!=="object"&&t!=="string"){const l={instancePath:e,schemaPath:"#/enum",keyword:"enum",params:{allowedValues:Ktt.enum},message:"must be equal to one of the allowed values"};r===null?r=[l]:r.push(l),s++}return wc.errors=r,s===0}function oi(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=oi.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),typeof t!="number"||t%1||isNaN(t)){const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"integer"},message:"must be integer"};r===null?r=[l]:r.push(l),s++}if(typeof t=="number"&&(t<0||isNaN(t))){const l={instancePath:e,schemaPath:"#/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0"};r===null?r=[l]:r.push(l),s++}return oi.errors=r,s===0}function qs(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=qs.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),typeof t!="number"||t%1||isNaN(t)){const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"integer"},message:"must be integer"};r===null?r=[l]:r.push(l),s++}if(typeof t=="number"&&(t<0||isNaN(t))){const l={instancePath:e,schemaPath:"#/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0"};r===null?r=[l]:r.push(l),s++}return qs.errors=r,s===0}function $c(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=$c.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),Array.isArray(t)){const l=t.length;for(let h=0;h1){const h={};for(;f--;){let d=t[f];if(typeof d=="string"){if(typeof h[d]=="number"){u=h[d];const m={instancePath:e,schemaPath:"#/uniqueItems",keyword:"uniqueItems",params:{i:f,j:u},message:"must NOT have duplicate items (items ## "+u+" and "+f+" are identical)"};r===null?r=[m]:r.push(m),s++;break}h[d]=f}}}}else{const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"array"},message:"must be array"};r===null?r=[l]:r.push(l),s++}return $c.errors=r,s===0}function Yp(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Yp.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),(!t||typeof t!="object"||Array.isArray(t))&&typeof t!="boolean"){const f={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:Gtt.type},message:"must be object,boolean"};r===null?r=[f]:r.push(f),s++}if(o.meta||(o.meta=Yp),t&&typeof t=="object"&&!Array.isArray(t)){if(t.type!==void 0){let f=t.type;const h=s;let d=!0;const m=s;if(typeof f!="string"){const b={};r===null?r=[b]:r.push(b),s++}var l=m===s;let g;if(s=h,r!==null&&(h?r.length=h:r=null),l){const b=s;wc(f,{instancePath:e+"/type",parentData:t,parentDataProperty:"type",rootData:a,dynamicAnchors:o})||(r=r===null?wc.errors:r.concat(wc.errors),s=r.length),d=l=b===s,g="then"}else{const b=s,v=s;let P=!0;const A=s;if(!Array.isArray(f)){const x={};r===null?r=[x]:r.push(x),s++}var u=A===s;let _;if(s=v,r!==null&&(v?r.length=v:r=null),u){const x=s;if(Array.isArray(f)){if(f.length<1){const I={instancePath:e+"/type",schemaPath:"#/properties/type/else/then/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items"};r===null?r=[I]:r.push(I),s++}const E=f.length;for(let I=0;I1){e:for(;F--;)for(j=F;j--;)if(Wr(f[F],f[j])){const I={instancePath:e+"/type",schemaPath:"#/properties/type/else/then/uniqueItems",keyword:"uniqueItems",params:{i:F,j},message:"must NOT have duplicate items (items ## "+j+" and "+F+" are identical)"};r===null?r=[I]:r.push(I),s++;break e}}}else{const E={instancePath:e+"/type",schemaPath:"#/properties/type/else/then/type",keyword:"type",params:{type:"array"},message:"must be array"};r===null?r=[E]:r.push(E),s++}P=u=x===s,_="then"}else{const x=s,E={instancePath:e+"/type",schemaPath:"#/properties/type/else/else/not",keyword:"not",params:{},message:"must NOT be valid"};if(r===null?r=[E]:r.push(E),s++,s>0){const j=[];for(const I of r)I.keyword==="errorMessage"||I.emUsed||I.instancePath!==e+"/type"&&(I.instancePath.indexOf(e+"/type")!==0||I.instancePath[e+5]!=="/")||I.schemaPath.indexOf("#/properties/type/else/else")!==0||I.schemaPath[27]!=="/"||(j.push(I),I.emUsed=!0);if(j.length){const I={instancePath:e+"/type",schemaPath:"#/properties/type/else/else/errorMessage",keyword:"errorMessage",params:{errors:j},message:'"type" property must be either a string or an array of strings'};r===null?r=[I]:r.push(I),s++}const F=[];for(const I of r)I.emUsed||F.push(I);r=F,s=F.length}P=u=x===s,_="else"}if(!P){const x={instancePath:e+"/type",schemaPath:"#/properties/type/else/if",keyword:"if",params:{failingKeyword:_},message:'must match "'+_+'" schema'};r===null?r=[x]:r.push(x),s++}d=l=b===s,g="else"}if(!d){const b={instancePath:e+"/type",schemaPath:"#/properties/type/if",keyword:"if",params:{failingKeyword:g},message:'must match "'+g+'" schema'};r===null?r=[b]:r.push(b),s++}}if(t.enum!==void 0&&!Array.isArray(t.enum)){const f={instancePath:e+"/enum",schemaPath:"#/properties/enum/type",keyword:"type",params:{type:"array"},message:"must be array"};r===null?r=[f]:r.push(f),s++}if(t.multipleOf!==void 0){let f=t.multipleOf;if(typeof f=="number"){if(f<=0||isNaN(f)){const h={instancePath:e+"/multipleOf",schemaPath:"#/properties/multipleOf/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison:">",limit:0},message:"must be > 0"};r===null?r=[h]:r.push(h),s++}}else{const h={instancePath:e+"/multipleOf",schemaPath:"#/properties/multipleOf/type",keyword:"type",params:{type:"number"},message:"must be number"};r===null?r=[h]:r.push(h),s++}}if(t.maximum!==void 0&&typeof t.maximum!="number"){const f={instancePath:e+"/maximum",schemaPath:"#/properties/maximum/type",keyword:"type",params:{type:"number"},message:"must be number"};r===null?r=[f]:r.push(f),s++}if(t.exclusiveMaximum!==void 0&&typeof t.exclusiveMaximum!="number"){const f={instancePath:e+"/exclusiveMaximum",schemaPath:"#/properties/exclusiveMaximum/type",keyword:"type",params:{type:"number"},message:"must be number"};r===null?r=[f]:r.push(f),s++}if(t.minimum!==void 0&&typeof t.minimum!="number"){const f={instancePath:e+"/minimum",schemaPath:"#/properties/minimum/type",keyword:"type",params:{type:"number"},message:"must be number"};r===null?r=[f]:r.push(f),s++}if(t.exclusiveMinimum!==void 0&&typeof t.exclusiveMinimum!="number"){const f={instancePath:e+"/exclusiveMinimum",schemaPath:"#/properties/exclusiveMinimum/type",keyword:"type",params:{type:"number"},message:"must be number"};r===null?r=[f]:r.push(f),s++}if(t.maxLength!==void 0&&(oi(t.maxLength,{instancePath:e+"/maxLength",parentData:t,parentDataProperty:"maxLength",rootData:a,dynamicAnchors:o})||(r=r===null?oi.errors:r.concat(oi.errors),s=r.length)),t.minLength!==void 0&&(qs(t.minLength,{instancePath:e+"/minLength",parentData:t,parentDataProperty:"minLength",rootData:a,dynamicAnchors:o})||(r=r===null?qs.errors:r.concat(qs.errors),s=r.length)),t.pattern!==void 0){let f=t.pattern;if(typeof f=="string"){if(!Gx(f)){const h={instancePath:e+"/pattern",schemaPath:"#/properties/pattern/format",keyword:"format",params:{format:"regex"},message:'must match format "regex"'};r===null?r=[h]:r.push(h),s++}}else{const h={instancePath:e+"/pattern",schemaPath:"#/properties/pattern/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[h]:r.push(h),s++}}if(t.maxItems!==void 0&&(oi(t.maxItems,{instancePath:e+"/maxItems",parentData:t,parentDataProperty:"maxItems",rootData:a,dynamicAnchors:o})||(r=r===null?oi.errors:r.concat(oi.errors),s=r.length)),t.minItems!==void 0&&(qs(t.minItems,{instancePath:e+"/minItems",parentData:t,parentDataProperty:"minItems",rootData:a,dynamicAnchors:o})||(r=r===null?qs.errors:r.concat(qs.errors),s=r.length)),t.uniqueItems!==void 0&&typeof t.uniqueItems!="boolean"){const f={instancePath:e+"/uniqueItems",schemaPath:"#/properties/uniqueItems/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};r===null?r=[f]:r.push(f),s++}if(t.maxContains!==void 0&&(oi(t.maxContains,{instancePath:e+"/maxContains",parentData:t,parentDataProperty:"maxContains",rootData:a,dynamicAnchors:o})||(r=r===null?oi.errors:r.concat(oi.errors),s=r.length)),t.minContains!==void 0&&(oi(t.minContains,{instancePath:e+"/minContains",parentData:t,parentDataProperty:"minContains",rootData:a,dynamicAnchors:o})||(r=r===null?oi.errors:r.concat(oi.errors),s=r.length)),t.maxProperties!==void 0&&(oi(t.maxProperties,{instancePath:e+"/maxProperties",parentData:t,parentDataProperty:"maxProperties",rootData:a,dynamicAnchors:o})||(r=r===null?oi.errors:r.concat(oi.errors),s=r.length)),t.minProperties!==void 0&&(qs(t.minProperties,{instancePath:e+"/minProperties",parentData:t,parentDataProperty:"minProperties",rootData:a,dynamicAnchors:o})||(r=r===null?qs.errors:r.concat(qs.errors),s=r.length)),t.required!==void 0&&($c(t.required,{instancePath:e+"/required",parentData:t,parentDataProperty:"required",rootData:a,dynamicAnchors:o})||(r=r===null?$c.errors:r.concat($c.errors),s=r.length)),t.dependentRequired!==void 0){let f=t.dependentRequired;if(f&&typeof f=="object"&&!Array.isArray(f))for(const h in f)$c(f[h],{instancePath:e+"/dependentRequired/"+h.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:f,parentDataProperty:h,rootData:a,dynamicAnchors:o})||(r=r===null?$c.errors:r.concat($c.errors),s=r.length);else{const h={instancePath:e+"/dependentRequired",schemaPath:"#/properties/dependentRequired/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[h]:r.push(h),s++}}}return Yp.errors=r,s===0}wc.evaluated={dynamicProps:!1,dynamicItems:!1},oi.evaluated={dynamicProps:!1,dynamicItems:!1},qs.evaluated={dynamicProps:!1,dynamicItems:!1},$c.evaluated={items:!0,dynamicProps:!1,dynamicItems:!1},Yp.evaluated={props:{type:!0,const:!0,enum:!0,multipleOf:!0,maximum:!0,exclusiveMaximum:!0,minimum:!0,exclusiveMinimum:!0,maxLength:!0,minLength:!0,pattern:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxContains:!0,minContains:!0,maxProperties:!0,minProperties:!0,required:!0,dependentRequired:!0},dynamicProps:!1,dynamicItems:!1};const Ytt={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/meta-data",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/meta-data":!0},$dynamicAnchor:"meta",title:"Meta-data vocabulary meta-schema",type:["object","boolean"],properties:{title:{type:"string"},description:{type:"string"},default:!0,deprecated:{type:"boolean",default:!1},readOnly:{type:"boolean",default:!1},writeOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0}}};function Bl(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Bl.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),(!t||typeof t!="object"||Array.isArray(t))&&typeof t!="boolean"){const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:Ytt.type},message:"must be object,boolean"};r===null?r=[l]:r.push(l),s++}if(o.meta||(o.meta=Bl),t&&typeof t=="object"&&!Array.isArray(t)){if(t.title!==void 0&&typeof t.title!="string"){const l={instancePath:e+"/title",schemaPath:"#/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}if(t.description!==void 0&&typeof t.description!="string"){const l={instancePath:e+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}if(t.deprecated!==void 0&&typeof t.deprecated!="boolean"){const l={instancePath:e+"/deprecated",schemaPath:"#/properties/deprecated/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};r===null?r=[l]:r.push(l),s++}if(t.readOnly!==void 0&&typeof t.readOnly!="boolean"){const l={instancePath:e+"/readOnly",schemaPath:"#/properties/readOnly/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};r===null?r=[l]:r.push(l),s++}if(t.writeOnly!==void 0&&typeof t.writeOnly!="boolean"){const l={instancePath:e+"/writeOnly",schemaPath:"#/properties/writeOnly/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};r===null?r=[l]:r.push(l),s++}if(t.examples!==void 0&&!Array.isArray(t.examples)){const l={instancePath:e+"/examples",schemaPath:"#/properties/examples/type",keyword:"type",params:{type:"array"},message:"must be array"};r===null?r=[l]:r.push(l),s++}}return Bl.errors=r,s===0}Bl.evaluated={props:{title:!0,description:!0,default:!0,deprecated:!0,readOnly:!0,writeOnly:!0,examples:!0},dynamicProps:!1,dynamicItems:!1};const Jtt={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/format-annotation",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/format-annotation":!0},$dynamicAnchor:"meta",title:"Format vocabulary meta-schema for annotation results",type:["object","boolean"],properties:{format:{type:"string"}}};function Vl(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Vl.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),(!t||typeof t!="object"||Array.isArray(t))&&typeof t!="boolean"){const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:Jtt.type},message:"must be object,boolean"};r===null?r=[l]:r.push(l),s++}if(o.meta||(o.meta=Vl),t&&typeof t=="object"&&!Array.isArray(t)&&t.format!==void 0&&typeof t.format!="string"){const l={instancePath:e+"/format",schemaPath:"#/properties/format/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}return Vl.errors=r,s===0}Vl.evaluated={props:{format:!0},dynamicProps:!1,dynamicItems:!1};const Qtt={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/content",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/content":!0},$dynamicAnchor:"meta",title:"Content vocabulary meta-schema",type:["object","boolean"],properties:{contentEncoding:{type:"string"},contentMediaType:{type:"string"},contentSchema:{$dynamicRef:"#meta"}}};function la(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=la.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),(!t||typeof t!="object"||Array.isArray(t))&&typeof t!="boolean"){const d={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:Qtt.type},message:"must be object,boolean"};r===null?r=[d]:r.push(d),s++}if(o.meta||(o.meta=la),t&&typeof t=="object"&&!Array.isArray(t)){if(t.contentEncoding!==void 0&&typeof t.contentEncoding!="string"){const d={instancePath:e+"/contentEncoding",schemaPath:"#/properties/contentEncoding/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}if(t.contentMediaType!==void 0&&typeof t.contentMediaType!="string"){const d={instancePath:e+"/contentMediaType",schemaPath:"#/properties/contentMediaType/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}if(t.contentSchema!==void 0){let d=t.contentSchema,m=o.meta;if(m)if(m(d,{instancePath:e+"/contentSchema",parentData:t,parentDataProperty:"contentSchema",rootData:a,dynamicAnchors:o}))var l=m.evaluated.props,u=m.evaluated.items;else r=r===null?m.errors:r.concat(m.errors),s=r.length;else if(la(d,{instancePath:e+"/contentSchema",parentData:t,parentDataProperty:"contentSchema",rootData:a,dynamicAnchors:o})){var f=la.evaluated.props;l!==!0&&f!==void 0&&(f===!0?l=!0:(l=l||{},Object.assign(l,f)));var h=la.evaluated.items;u!==!0&&h!==void 0&&(u=h===!0||(u>h?u:h))}else r=r===null?la.errors:r.concat(la.errors),s=r.length}}return la.errors=r,s===0}function Uo(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Uo.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t))for(const d in t){let m=t[d],g=o.meta;if(g)if(g(m,{instancePath:e+"/"+d.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:t,parentDataProperty:d,rootData:a,dynamicAnchors:o}))var l=g.evaluated.props,u=g.evaluated.items;else r=r===null?g.errors:r.concat(g.errors),s=r.length;else if(Uo(m,{instancePath:e+"/"+d.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:t,parentDataProperty:d,rootData:a,dynamicAnchors:o})){var f=Uo.evaluated.props;l!==!0&&f!==void 0&&(f===!0?l=!0:(l=l||{},Object.assign(l,f)));var h=Uo.evaluated.items;u!==!0&&h!==void 0&&(u=h===!0||(u>h?u:h))}else r=r===null?Uo.errors:r.concat(Uo.errors),s=r.length}else{const d={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[d]:r.push(d),s++}return Uo.errors=r,s===0}function Gc(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Gc.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),Array.isArray(t)){const l=t.length;for(let h=0;h1){const h={};for(;f--;){let d=t[f];if(typeof d=="string"){if(typeof h[d]=="number"){u=h[d];const m={instancePath:e,schemaPath:"#/uniqueItems",keyword:"uniqueItems",params:{i:f,j:u},message:"must NOT have duplicate items (items ## "+u+" and "+f+" are identical)"};r===null?r=[m]:r.push(m),s++;break}h[d]=f}}}}else{const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"array"},message:"must be array"};r===null?r=[l]:r.push(l),s++}return Gc.errors=r,s===0}function Bo(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Bo.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t))for(const m in t){let g=t[m];const b=s;let v=!1;const P=s;let A=o.meta;if(A)if(A(g,{instancePath:e+"/"+m.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:t,parentDataProperty:m,rootData:a,dynamicAnchors:o}))var l=A.evaluated.props,u=A.evaluated.items;else r=r===null?A.errors:r.concat(A.errors),s=r.length;else if(Bo(g,{instancePath:e+"/"+m.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:t,parentDataProperty:m,rootData:a,dynamicAnchors:o})){var f=Bo.evaluated.props;l!==!0&&f!==void 0&&(f===!0?l=!0:(l=l||{},Object.assign(l,f)));var h=Bo.evaluated.items;u!==!0&&h!==void 0&&(u=h===!0||(u>h?u:h))}else r=r===null?Bo.errors:r.concat(Bo.errors),s=r.length;var d=P===s;v=v||d;const _=s;if(Gc(g,{instancePath:e+"/"+m.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:t,parentDataProperty:m,rootData:a,dynamicAnchors:o})||(r=r===null?Gc.errors:r.concat(Gc.errors),s=r.length),d=_===s,v=v||d,d&&u!==!0&&(u=!0),v)s=b,r!==null&&(b?r.length=b:r=null);else{const x={instancePath:e+"/"+m.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/additionalProperties/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};r===null?r=[x]:r.push(x),s++}}else{const m={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[m]:r.push(m),s++}return Bo.errors=r,s===0}function Kc(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Kc.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),typeof t=="string"){if(!jre.test(t)){const l={instancePath:e,schemaPath:"#/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z_][-A-Za-z0-9._]*$"},message:'must match pattern "^[A-Za-z_][-A-Za-z0-9._]*$"'};r===null?r=[l]:r.push(l),s++}}else{const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}return Kc.errors=r,s===0}function wy(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=wy.evaluated;return c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),Kc(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o})||(r=r===null?Kc.errors:r.concat(Kc.errors),s=r.length),wy.errors=r,s===0}function Yc(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Yc.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),typeof t!="string"){const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}return Yc.errors=r,s===0}function $y(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=$y.evaluated;return c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),Yc(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o})||(r=r===null?Yc.errors:r.concat(Yc.errors),s=r.length),$y.errors=r,s===0}function hf(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=hf.evaluated;c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),o.meta||(o.meta=hf);const l=s;let u=!0;const f=s;if(!t||typeof t!="object"||Array.isArray(t)){const b={};r===null?r=[b]:r.push(b),s++}var h=f===s;let d;if(s=l,r!==null&&(l?r.length=l:r=null),h){const b=s;if(oa(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o})||(r=r===null?oa.errors:r.concat(oa.errors),s=r.length),dt(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o})||(r=r===null?dt.errors:r.concat(dt.errors),s=r.length),Un(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o})||(r=r===null?Un.errors:r.concat(Un.errors),s=r.length),Yp(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o})||(r=r===null?Yp.errors:r.concat(Yp.errors),s=r.length),Bl(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o})||(r=r===null?Bl.errors:r.concat(Bl.errors),s=r.length),Vl(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o})||(r=r===null?Vl.errors:r.concat(Vl.errors),s=r.length),la(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o})||(r=r===null?la.errors:r.concat(la.errors),s=r.length),t&&typeof t=="object"&&!Array.isArray(t)&&(t.definitions!==void 0&&(Uo(t.definitions,{instancePath:e+"/definitions",parentData:t,parentDataProperty:"definitions",rootData:a,dynamicAnchors:o})||(r=r===null?Uo.errors:r.concat(Uo.errors),s=r.length)),t.dependencies!==void 0&&(Bo(t.dependencies,{instancePath:e+"/dependencies",parentData:t,parentDataProperty:"dependencies",rootData:a,dynamicAnchors:o})||(r=r===null?Bo.errors:r.concat(Bo.errors),s=r.length)),t.$recursiveAnchor!==void 0&&(wy(t.$recursiveAnchor,{instancePath:e+"/$recursiveAnchor",parentData:t,parentDataProperty:"$recursiveAnchor",rootData:a,dynamicAnchors:o})||(r=r===null?wy.errors:r.concat(wy.errors),s=r.length)),t.$recursiveRef!==void 0&&($y(t.$recursiveRef,{instancePath:e+"/$recursiveRef",parentData:t,parentDataProperty:"$recursiveRef",rootData:a,dynamicAnchors:o})||(r=r===null?$y.errors:r.concat($y.errors),s=r.length))),u=h=b===s,u)var m={definitions:!0,dependencies:!0,$recursiveAnchor:!0,$recursiveRef:!0,contentEncoding:!0,contentMediaType:!0,contentSchema:!0,format:!0,title:!0,description:!0,default:!0,deprecated:!0,readOnly:!0,writeOnly:!0,examples:!0,type:!0,const:!0,enum:!0,multipleOf:!0,maximum:!0,exclusiveMaximum:!0,minimum:!0,exclusiveMinimum:!0,maxLength:!0,minLength:!0,pattern:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxContains:!0,minContains:!0,maxProperties:!0,minProperties:!0,required:!0,dependentRequired:!0,unevaluatedItems:!0,unevaluatedProperties:!0,prefixItems:!0,items:!0,contains:!0,additionalProperties:!0,properties:!0,patternProperties:!0,dependentSchemas:!0,propertyNames:!0,if:!0,then:!0,else:!0,allOf:!0,anyOf:!0,oneOf:!0,not:!0,$id:!0,$schema:!0,$ref:!0,$anchor:!0,$dynamicRef:!0,$dynamicAnchor:!0,$vocabulary:!0,$comment:!0,$defs:!0};d="then"}else{const b=s,v=s;let P=!0;const A=s;if(typeof t!="boolean"){const _={};r===null?r=[_]:r.push(_),s++}var g=A===s;if(s=v,r!==null&&(v?r.length=v:r=null),!g){const _=s,x={instancePath:e,schemaPath:"#/else/else/not",keyword:"not",params:{},message:"must NOT be valid"};if(r===null?r=[x]:r.push(x),s++,s>0){const E=[];for(const F of r)F.keyword==="errorMessage"||F.emUsed||F.instancePath!==e&&(F.instancePath.indexOf(e)!==0||F.instancePath[e.length]!=="/")||F.schemaPath.indexOf("#/else/else")!==0||F.schemaPath[11]!=="/"||(E.push(F),F.emUsed=!0);if(E.length){const F={instancePath:e,schemaPath:"#/else/else/errorMessage",keyword:"errorMessage",params:{errors:E},message:'"{{property}}" property must be a valid Schema Object'};r===null?r=[F]:r.push(F),s++}const j=[];for(const F of r)F.emUsed||j.push(F);r=j,s=j.length}P=g=_===s}if(!P){const _={instancePath:e,schemaPath:"#/else/if",keyword:"if",params:{failingKeyword:"else"},message:'must match "else" schema'};r===null?r=[_]:r.push(_),s++}u=h=b===s,d="else"}if(!u){const b={instancePath:e,schemaPath:"#/if",keyword:"if",params:{failingKeyword:d},message:'must match "'+d+'" schema'};r===null?r=[b]:r.push(b),s++}return hf.errors=r,c.props=m,s===0}function uu(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){const r=uu.evaluated;if(r.dynamicProps&&(r.props=void 0),r.dynamicItems&&(r.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){var s={};for(const c in t)Je.test(c)&&(s[c]=!0)}return uu.errors=null,r.props=s,!0}function Ay(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Ay.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),uu(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o}))var l=uu.evaluated.props;if(t&&typeof t=="object"&&!Array.isArray(t)){if(t.propertyName===void 0){const u={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"propertyName"},message:"must have required property 'propertyName'"};r===null?r=[u]:r.push(u),s++}if(l!==!0&&((l=l||{}).propertyName=!0,l.mapping=!0),t.propertyName!==void 0&&typeof t.propertyName!="string"){const u={instancePath:e+"/propertyName",schemaPath:"#/properties/propertyName/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[u]:r.push(u),s++}if(t.mapping!==void 0){let u=t.mapping;if(u&&typeof u=="object"&&!Array.isArray(u)){for(const f in u)if(typeof u[f]!="string"){const h={instancePath:e+"/mapping/"+f.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/mapping/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[h]:r.push(h),s++}}else{const f={instancePath:e+"/mapping",schemaPath:"#/properties/mapping/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[f]:r.push(f),s++}}if(l!==!0){for(const u in t)if(!l||!l[u]){const f={instancePath:e,schemaPath:"#/unevaluatedProperties",keyword:"unevaluatedProperties",params:{unevaluatedProperty:u},message:"must NOT have unevaluated properties"};r===null?r=[f]:r.push(f),s++}}}else{const u={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[u]:r.push(u),s++}return Ay.errors=r,s===0}function Sy(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Sy.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),uu(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o}))var l=uu.evaluated.props;if(t&&typeof t=="object"&&!Array.isArray(t)){if(t.url===void 0){const u={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"url"},message:"must have required property 'url'"};r===null?r=[u]:r.push(u),s++}if(l!==!0&&((l=l||{}).url=!0,l.description=!0),t.url!==void 0){let u=t.url;if(typeof u=="string"){if(!$r.test(u)){const f={instancePath:e+"/url",schemaPath:"#/properties/url/format",keyword:"format",params:{format:"uri-reference"},message:'must match format "uri-reference"'};r===null?r=[f]:r.push(f),s++}}else{const f={instancePath:e+"/url",schemaPath:"#/properties/url/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[f]:r.push(f),s++}}if(t.description!==void 0&&typeof t.description!="string"){const u={instancePath:e+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[u]:r.push(u),s++}if(l!==!0){for(const u in t)if(!l||!l[u]){const f={instancePath:e,schemaPath:"#/unevaluatedProperties",keyword:"unevaluatedProperties",params:{unevaluatedProperty:u},message:"must NOT have unevaluated properties"};r===null?r=[f]:r.push(f),s++}}}else{const u={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[u]:r.push(u),s++}return Sy.errors=r,s===0}function _y(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=_y.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),uu(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o}))var l=uu.evaluated.props;if(t&&typeof t=="object"&&!Array.isArray(t)){if(l!==!0&&((l=l||{}).name=!0,l.namespace=!0,l.prefix=!0,l.attribute=!0,l.wrapped=!0),t.name!==void 0&&typeof t.name!="string"){const u={instancePath:e+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[u]:r.push(u),s++}if(t.namespace!==void 0){let u=t.namespace;if(typeof u=="string"){if(!Ci(u)){const f={instancePath:e+"/namespace",schemaPath:"#/properties/namespace/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};r===null?r=[f]:r.push(f),s++}}else{const f={instancePath:e+"/namespace",schemaPath:"#/properties/namespace/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[f]:r.push(f),s++}}if(t.prefix!==void 0&&typeof t.prefix!="string"){const u={instancePath:e+"/prefix",schemaPath:"#/properties/prefix/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[u]:r.push(u),s++}if(t.attribute!==void 0&&typeof t.attribute!="boolean"){const u={instancePath:e+"/attribute",schemaPath:"#/properties/attribute/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};r===null?r=[u]:r.push(u),s++}if(t.wrapped!==void 0&&typeof t.wrapped!="boolean"){const u={instancePath:e+"/wrapped",schemaPath:"#/properties/wrapped/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};r===null?r=[u]:r.push(u),s++}if(l!==!0){for(const u in t)if(!l||!l[u]){const f={instancePath:e,schemaPath:"#/unevaluatedProperties",keyword:"unevaluatedProperties",params:{unevaluatedProperty:u},message:"must NOT have unevaluated properties"};r===null?r=[f]:r.push(f),s++}}}else{const u={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[u]:r.push(u),s++}return _y.errors=r,s===0}function Ep(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Ep.evaluated;c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0);const l=s;let u=!0;const f=s;if(!t||typeof t!="object"||Array.isArray(t)){const b={};r===null?r=[b]:r.push(b),s++}var h=f===s;let d;if(s=l,r!==null&&(l?r.length=l:r=null),h){const b=s;if(t&&typeof t=="object"&&!Array.isArray(t))t.discriminator!==void 0&&(Ay(t.discriminator,{instancePath:e+"/discriminator",parentData:t,parentDataProperty:"discriminator",rootData:a,dynamicAnchors:o})||(r=r===null?Ay.errors:r.concat(Ay.errors),s=r.length)),t.externalDocs!==void 0&&(Sy(t.externalDocs,{instancePath:e+"/externalDocs",parentData:t,parentDataProperty:"externalDocs",rootData:a,dynamicAnchors:o})||(r=r===null?Sy.errors:r.concat(Sy.errors),s=r.length)),t.xml!==void 0&&(_y(t.xml,{instancePath:e+"/xml",parentData:t,parentDataProperty:"xml",rootData:a,dynamicAnchors:o})||(r=r===null?_y.errors:r.concat(_y.errors),s=r.length));else{const v={instancePath:e,schemaPath:"#/then/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[v]:r.push(v),s++}if(u=h=b===s,u)var m={example:!0,discriminator:!0,externalDocs:!0,xml:!0};d="then"}else{const b=s,v=s;let P=!0;const A=s;if(typeof t!="boolean"){const _={};r===null?r=[_]:r.push(_),s++}var g=A===s;if(s=v,r!==null&&(v?r.length=v:r=null),!g){const _=s,x={instancePath:e,schemaPath:"#/else/else/not",keyword:"not",params:{},message:"must NOT be valid"};if(r===null?r=[x]:r.push(x),s++,s>0){const E=[];for(const F of r)F.keyword==="errorMessage"||F.emUsed||F.instancePath!==e&&(F.instancePath.indexOf(e)!==0||F.instancePath[e.length]!=="/")||F.schemaPath.indexOf("#/else/else")!==0||F.schemaPath[11]!=="/"||(E.push(F),F.emUsed=!0);if(E.length){const F={instancePath:e,schemaPath:"#/else/else/errorMessage",keyword:"errorMessage",params:{errors:E},message:'"{{property}}" property must be a valid Schema Object'};r===null?r=[F]:r.push(F),s++}const j=[];for(const F of r)F.emUsed||j.push(F);r=j,s=j.length}P=g=_===s}if(!P){const _={instancePath:e,schemaPath:"#/else/if",keyword:"if",params:{failingKeyword:"else"},message:'must match "else" schema'};r===null?r=[_]:r.push(_),s++}u=h=b===s,d="else"}if(!u){const b={instancePath:e,schemaPath:"#/if",keyword:"if",params:{failingKeyword:d},message:'must match "'+d+'" schema'};r===null?r=[b]:r.push(b),s++}return Ep.errors=r,c.props=m,s===0}function Aa(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Aa.evaluated;c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0);const l=s;let u=!0;const f=s;if(!t||typeof t!="object"||Array.isArray(t)){const v={};r===null?r=[v]:r.push(v),s++}var h=f===s;let d;if(s=l,r!==null&&(l?r.length=l:r=null),h){const v=s;if(hf(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o}))var m=hf.evaluated.props;else r=r===null?hf.errors:r.concat(hf.errors),s=r.length;if(Ep(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o}))var g=Ep.evaluated.props;else r=r===null?Ep.errors:r.concat(Ep.errors),s=r.length;m!==!0&&g!==void 0&&(g===!0?m=!0:(m=m||{},Object.assign(m,g))),u=h=v===s,d="then"}else{const v=s,P=s;let A=!0;const _=s;if(typeof t!="boolean"){const x={};r===null?r=[x]:r.push(x),s++}var b=_===s;if(s=P,r!==null&&(P?r.length=P:r=null),!b){const x=s,E={instancePath:e,schemaPath:"#/else/else/not",keyword:"not",params:{},message:"must NOT be valid"};if(r===null?r=[E]:r.push(E),s++,s>0){const j=[];for(const I of r)I.keyword==="errorMessage"||I.emUsed||I.instancePath!==e&&(I.instancePath.indexOf(e)!==0||I.instancePath[e.length]!=="/")||I.schemaPath.indexOf("#/else/else")!==0||I.schemaPath[11]!=="/"||(j.push(I),I.emUsed=!0);if(j.length){const I={instancePath:e,schemaPath:"#/else/else/errorMessage",keyword:"errorMessage",params:{errors:j},message:'"{{property}}" property must be a valid Schema Object'};r===null?r=[I]:r.push(I),s++}const F=[];for(const I of r)I.emUsed||F.push(I);r=F,s=F.length}A=b=x===s}if(!A){const x={instancePath:e,schemaPath:"#/else/if",keyword:"if",params:{failingKeyword:"else"},message:'must match "else" schema'};r===null?r=[x]:r.push(x),s++}u=h=v===s,d="else"}if(!u){const v={instancePath:e,schemaPath:"#/if",keyword:"if",params:{failingKeyword:d},message:'must match "'+d+'" schema'};r===null?r=[v]:r.push(v),s++}return Aa.errors=r,c.props=m,s===0}function xy(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=xy.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),wt(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o}))var l=wt.evaluated.props;const u=s,f=s;if(t&&typeof t=="object"&&!Array.isArray(t)&&(t.value===void 0||t.externalValue===void 0)){const h={};r===null?r=[h]:r.push(h),s++}if(f===s){const h={instancePath:e,schemaPath:"#/not",keyword:"not",params:{},message:"must NOT be valid"};r===null?r=[h]:r.push(h),s++}else s=u,r!==null&&(u?r.length=u:r=null);if(t&&typeof t=="object"&&!Array.isArray(t)){if(l!==!0&&((l=l||{}).summary=!0,l.description=!0,l.value=!0,l.externalValue=!0),t.summary!==void 0&&typeof t.summary!="string"){const h={instancePath:e+"/summary",schemaPath:"#/properties/summary/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[h]:r.push(h),s++}if(t.description!==void 0&&typeof t.description!="string"){const h={instancePath:e+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[h]:r.push(h),s++}if(t.externalValue!==void 0){let h=t.externalValue;if(typeof h=="string"){if(!Ci(h)){const d={instancePath:e+"/externalValue",schemaPath:"#/properties/externalValue/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};r===null?r=[d]:r.push(d),s++}}else{const d={instancePath:e+"/externalValue",schemaPath:"#/properties/externalValue/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}if(l!==!0){for(const h in t)if(!l||!l[h]){const d={instancePath:e,schemaPath:"#/unevaluatedProperties",keyword:"unevaluatedProperties",params:{unevaluatedProperty:h},message:"must NOT have unevaluated properties"};r===null?r=[d]:r.push(d),s++}}}else{const h={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[h]:r.push(h),s++}return xy.errors=r,s===0}function Jc(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Jc.evaluated;c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0);const l=s;let u=!0;const f=s;if(s===f)if(t&&typeof t=="object"&&!Array.isArray(t)){if(t.$ref===void 0){const g={};r===null?r=[g]:r.push(g),s++}}else{const g={};r===null?r=[g]:r.push(g),s++}var h=f===s;let d;if(s=l,r!==null&&(l?r.length=l:r=null),h){const g=s;if(Ar(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o})||(r=r===null?Ar.errors:r.concat(Ar.errors),s=r.length),u=h=g===s,u)var m={$ref:!0,summary:!0,description:!0};d="then"}else{const g=s;xy(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o})||(r=r===null?xy.errors:r.concat(xy.errors),s=r.length),u=h=g===s,u&&m!==!0&&(m=!0),d="else"}if(!u){const g={instancePath:e,schemaPath:"#/if",keyword:"if",params:{failingKeyword:d},message:'must match "'+d+'" schema'};r===null?r=[g]:r.push(g),s++}return Jc.errors=r,c.props=m,s===0}function co(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=co.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)&&t.examples!==void 0){let l=t.examples;if(l&&typeof l=="object"&&!Array.isArray(l))for(const u in l)Jc(l[u],{instancePath:e+"/examples/"+u.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:l,parentDataProperty:u,rootData:a,dynamicAnchors:o})||(r=r===null?Jc.errors:r.concat(Jc.errors),s=r.length);else{const u={instancePath:e+"/examples",schemaPath:"#/properties/examples/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[u]:r.push(u),s++}}return co.errors=r,s===0}la.evaluated={props:{contentEncoding:!0,contentMediaType:!0,contentSchema:!0},dynamicProps:!1,dynamicItems:!1},Uo.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},Gc.evaluated={items:!0,dynamicProps:!1,dynamicItems:!1},Bo.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},Kc.evaluated={dynamicProps:!1,dynamicItems:!1},wy.evaluated={dynamicProps:!1,dynamicItems:!1},Yc.evaluated={dynamicProps:!1,dynamicItems:!1},$y.evaluated={dynamicProps:!1,dynamicItems:!1},hf.evaluated={dynamicProps:!0,dynamicItems:!1},uu.evaluated={dynamicProps:!0,dynamicItems:!1},Ay.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},Sy.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},_y.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},Ep.evaluated={dynamicProps:!0,dynamicItems:!1},Aa.evaluated={dynamicProps:!0,dynamicItems:!1},xy.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},Jc.evaluated={dynamicProps:!0,dynamicItems:!1},co.evaluated={props:{example:!0,examples:!0},dynamicProps:!1,dynamicItems:!1};const Ztt={$comment:"https://spec.openapis.org/oas/v3.1.0#encoding-object",type:"object",properties:{contentType:{type:"string",format:"media-range"},headers:{type:"object",additionalProperties:{$ref:"#/$defs/header-or-reference"}},style:{default:"form",enum:["form","spaceDelimited","pipeDelimited","deepObject"]},explode:{type:"boolean"},allowReserved:{default:!1,type:"boolean"}},allOf:[{$ref:"#/$defs/specification-extensions"},{$ref:"#/$defs/styles-for-form"}],unevaluatedProperties:!1};function Qo(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Qo.evaluated;c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0);const l=s;let u=!0;const f=s;if(t&&typeof t=="object"&&!Array.isArray(t)){if(t.style===void 0){const g={};r===null?r=[g]:r.push(g),s++}else if(t.style!==void 0&&t.style!=="form"){const g={};r===null?r=[g]:r.push(g),s++}}var h=f===s;let d;if(s=l,r!==null&&(l?r.length=l:r=null),h){if(u=h=s==s,u)var m={explode:!0,style:!0};d="then"}else u=h=s==s,u&&m!==!0&&((m=m||{}).explode=!0),d="else";if(!u){const g={instancePath:e,schemaPath:"#/if",keyword:"if",params:{failingKeyword:d},message:'must match "'+d+'" schema'};r===null?r=[g]:r.push(g),s++}return Qo.errors=r,c.props=m,s===0}Qo.evaluated={dynamicProps:!0,dynamicItems:!1};const yI={validate:ys};function Dy(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Dy.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),wt(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o}))var l=wt.evaluated.props;const u=s;let f=!1,h=null;const d=s;if(t&&typeof t=="object"&&!Array.isArray(t)&&t.schema===void 0){const b={instancePath:e,schemaPath:"#/oneOf/0/required",keyword:"required",params:{missingProperty:"schema"},message:"must have required property 'schema'"};r===null?r=[b]:r.push(b),s++}d===s&&(f=!0,h=0);const m=s;if(t&&typeof t=="object"&&!Array.isArray(t)&&t.content===void 0){const b={instancePath:e,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty:"content"},message:"must have required property 'content'"};r===null?r=[b]:r.push(b),s++}var g;if((g=m===s)&&f?(f=!1,h=[h,1]):g&&(f=!0,h=1),f)s=u,r!==null&&(u?r.length=u:r=null);else{const b={instancePath:e,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas:h},message:"must match exactly one schema in oneOf"};r===null?r=[b]:r.push(b),s++}if(t&&typeof t=="object"&&!Array.isArray(t)){if(l!==!0&&((l=l||{}).description=!0,l.required=!0,l.deprecated=!0,l.schema=!0,l.content=!0),t.description!==void 0&&typeof t.description!="string"){const b={instancePath:e+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[b]:r.push(b),s++}if(t.required!==void 0&&typeof t.required!="boolean"){const b={instancePath:e+"/required",schemaPath:"#/properties/required/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};r===null?r=[b]:r.push(b),s++}if(t.deprecated!==void 0&&typeof t.deprecated!="boolean"){const b={instancePath:e+"/deprecated",schemaPath:"#/properties/deprecated/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};r===null?r=[b]:r.push(b),s++}if(t.schema!==void 0&&(Aa(t.schema,{instancePath:e+"/schema",parentData:t,parentDataProperty:"schema",rootData:a,dynamicAnchors:o})||(r=r===null?Aa.errors:r.concat(Aa.errors),s=r.length)),t.content!==void 0){let b=t.content;if(yI.validate(b,{instancePath:e+"/content",parentData:t,parentDataProperty:"content",rootData:a,dynamicAnchors:o})||(r=r===null?yI.validate.errors:r.concat(yI.validate.errors),s=r.length),b&&typeof b=="object"&&!Array.isArray(b)){if(Object.keys(b).length>1){const v={instancePath:e+"/content",schemaPath:"#/properties/content/maxProperties",keyword:"maxProperties",params:{limit:1},message:"must NOT have more than 1 properties"};r===null?r=[v]:r.push(v),s++}if(Object.keys(b).length<1){const v={instancePath:e+"/content",schemaPath:"#/properties/content/minProperties",keyword:"minProperties",params:{limit:1},message:"must NOT have fewer than 1 properties"};r===null?r=[v]:r.push(v),s++}}}if(t.schema!==void 0){const b=s;if(co(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o})||(r=r===null?co.errors:r.concat(co.errors),s=r.length),t&&typeof t=="object"&&!Array.isArray(t)){if(t.style!==void 0&&t.style!=="simple"){const v={instancePath:e+"/style",schemaPath:"#/dependentSchemas/schema/properties/style/const",keyword:"const",params:{allowedValue:"simple"},message:"must be equal to constant"};r===null?r=[v]:r.push(v),s++}if(t.explode!==void 0&&typeof t.explode!="boolean"){const v={instancePath:e+"/explode",schemaPath:"#/dependentSchemas/schema/properties/explode/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};r===null?r=[v]:r.push(v),s++}}b===s&&l!==!0&&((l=l||{}).style=!0,l.explode=!0,l.example=!0,l.examples=!0)}if(l!==!0){for(const b in t)if(!l||!l[b]){const v={instancePath:e,schemaPath:"#/unevaluatedProperties",keyword:"unevaluatedProperties",params:{unevaluatedProperty:b},message:"must NOT have unevaluated properties"};r===null?r=[v]:r.push(v),s++}}}else{const b={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[b]:r.push(b),s++}return Dy.errors=r,s===0}function uo(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=uo.evaluated;c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0);const l=s;let u=!0;const f=s;if(s===f)if(t&&typeof t=="object"&&!Array.isArray(t)){if(t.$ref===void 0){const g={};r===null?r=[g]:r.push(g),s++}}else{const g={};r===null?r=[g]:r.push(g),s++}var h=f===s;let d;if(s=l,r!==null&&(l?r.length=l:r=null),h){const g=s;if(Ar(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o})||(r=r===null?Ar.errors:r.concat(Ar.errors),s=r.length),u=h=g===s,u)var m={$ref:!0,summary:!0,description:!0};d="then"}else{const g=s;Dy(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o})||(r=r===null?Dy.errors:r.concat(Dy.errors),s=r.length),u=h=g===s,u&&m!==!0&&(m=!0),d="else"}if(!u){const g={instancePath:e,schemaPath:"#/if",keyword:"if",params:{failingKeyword:d},message:'must match "'+d+'" schema'};r===null?r=[g]:r.push(g),s++}return uo.errors=r,c.props=m,s===0}function ky(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=ky.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),wt(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o}))var l=wt.evaluated.props;if(Qo(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o}))var u=Qo.evaluated.props;else r=r===null?Qo.errors:r.concat(Qo.errors),s=r.length;if(l!==!0&&u!==void 0&&(u===!0?l=!0:(l=l||{},Object.assign(l,u))),t&&typeof t=="object"&&!Array.isArray(t)){if(l!==!0&&((l=l||{}).contentType=!0,l.headers=!0,l.style=!0,l.explode=!0,l.allowReserved=!0),t.contentType!==void 0&&typeof t.contentType!="string"){const f={instancePath:e+"/contentType",schemaPath:"#/properties/contentType/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[f]:r.push(f),s++}if(t.headers!==void 0){let f=t.headers;if(f&&typeof f=="object"&&!Array.isArray(f))for(const h in f)uo(f[h],{instancePath:e+"/headers/"+h.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:f,parentDataProperty:h,rootData:a,dynamicAnchors:o})||(r=r===null?uo.errors:r.concat(uo.errors),s=r.length);else{const h={instancePath:e+"/headers",schemaPath:"#/properties/headers/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[h]:r.push(h),s++}}if(t.style!==void 0){let f=t.style;if(f!=="form"&&f!=="spaceDelimited"&&f!=="pipeDelimited"&&f!=="deepObject"){const h={instancePath:e+"/style",schemaPath:"#/properties/style/enum",keyword:"enum",params:{allowedValues:Ztt.properties.style.enum},message:"must be equal to one of the allowed values"};r===null?r=[h]:r.push(h),s++}}if(t.explode!==void 0&&typeof t.explode!="boolean"){const f={instancePath:e+"/explode",schemaPath:"#/properties/explode/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};r===null?r=[f]:r.push(f),s++}if(t.allowReserved!==void 0&&typeof t.allowReserved!="boolean"){const f={instancePath:e+"/allowReserved",schemaPath:"#/properties/allowReserved/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};r===null?r=[f]:r.push(f),s++}if(l!==!0){for(const f in t)if(!l||!l[f]){const h={instancePath:e,schemaPath:"#/unevaluatedProperties",keyword:"unevaluatedProperties",params:{unevaluatedProperty:f},message:"must NOT have unevaluated properties"};r===null?r=[h]:r.push(h),s++}}}else{const f={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[f]:r.push(f),s++}return ky.errors=r,s===0}function Oy(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Oy.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),wt(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o}))var l=wt.evaluated.props;if(co(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o})||(r=r===null?co.errors:r.concat(co.errors),s=r.length),l!==!0&&((l=l||{}).example=!0,l.examples=!0),t&&typeof t=="object"&&!Array.isArray(t)){if(l!==!0&&((l=l||{}).schema=!0,l.encoding=!0),t.schema!==void 0&&(Aa(t.schema,{instancePath:e+"/schema",parentData:t,parentDataProperty:"schema",rootData:a,dynamicAnchors:o})||(r=r===null?Aa.errors:r.concat(Aa.errors),s=r.length)),t.encoding!==void 0){let u=t.encoding;if(u&&typeof u=="object"&&!Array.isArray(u))for(const f in u)ky(u[f],{instancePath:e+"/encoding/"+f.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:u,parentDataProperty:f,rootData:a,dynamicAnchors:o})||(r=r===null?ky.errors:r.concat(ky.errors),s=r.length);else{const f={instancePath:e+"/encoding",schemaPath:"#/properties/encoding/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[f]:r.push(f),s++}}if(l!==!0){for(const u in t)if(!l||!l[u]){const f={instancePath:e,schemaPath:"#/unevaluatedProperties",keyword:"unevaluatedProperties",params:{unevaluatedProperty:u},message:"must NOT have unevaluated properties"};r===null?r=[f]:r.push(f),s++}}}else{const u={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[u]:r.push(u),s++}return Oy.errors=r,s===0}function ys(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=ys.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){for(const l in t)if(s!=s){const u={instancePath:e,schemaPath:"#/propertyNames",keyword:"propertyNames",params:{propertyName:l},message:"property name must be valid"};r===null?r=[u]:r.push(u),s++}for(const l in t)Oy(t[l],{instancePath:e+"/"+l.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:t,parentDataProperty:l,rootData:a,dynamicAnchors:o})||(r=r===null?Oy.errors:r.concat(Oy.errors),s=r.length)}else{const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[l]:r.push(l),s++}return ys.errors=r,s===0}Dy.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},uo.evaluated={dynamicProps:!0,dynamicItems:!1},ky.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},Oy.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},ys.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};const Xtt={if:{properties:{in:{const:"path"}},required:["in"]},then:{properties:{style:{default:"simple",enum:["matrix","label","simple"]},required:{const:!0}},required:["required"]}};function Ip(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Ip.evaluated;c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0);const l=s;let u=!0;const f=s;if(t&&typeof t=="object"&&!Array.isArray(t)){if(t.in===void 0){const m={};r===null?r=[m]:r.push(m),s++}else if(t.in!==void 0&&t.in!=="path"){const m={};r===null?r=[m]:r.push(m),s++}}var h=f===s;if(s=l,r!==null&&(l?r.length=l:r=null),h){const m=s;if(t&&typeof t=="object"&&!Array.isArray(t)){if(t.required===void 0){const g={instancePath:e,schemaPath:"#/then/required",keyword:"required",params:{missingProperty:"required"},message:"must have required property 'required'"};r===null?r=[g]:r.push(g),s++}if(t.style!==void 0){let g=t.style;if(g!=="matrix"&&g!=="label"&&g!=="simple"){const b={instancePath:e+"/style",schemaPath:"#/then/properties/style/enum",keyword:"enum",params:{allowedValues:Xtt.then.properties.style.enum},message:"must be equal to one of the allowed values"};r===null?r=[b]:r.push(b),s++}}if(t.required!==void 0&&t.required!==!0){const g={instancePath:e+"/required",schemaPath:"#/then/properties/required/const",keyword:"const",params:{allowedValue:!0},message:"must be equal to constant"};r===null?r=[g]:r.push(g),s++}}if(u=h=m===s,u)var d={style:!0,required:!0,in:!0}}if(!u){const m={instancePath:e,schemaPath:"#/if",keyword:"if",params:{failingKeyword:"then"},message:'must match "then" schema'};r===null?r=[m]:r.push(m),s++}return Ip.errors=r,c.props=d,s===0}function Cp(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Cp.evaluated;c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0);const l=s;let u=!0;const f=s;if(t&&typeof t=="object"&&!Array.isArray(t)){if(t.in===void 0){const m={};r===null?r=[m]:r.push(m),s++}else if(t.in!==void 0&&t.in!=="header"){const m={};r===null?r=[m]:r.push(m),s++}}var h=f===s;if(s=l,r!==null&&(l?r.length=l:r=null),h){const m=s;if(t&&typeof t=="object"&&!Array.isArray(t)&&t.style!==void 0&&t.style!=="simple"){const g={instancePath:e+"/style",schemaPath:"#/then/properties/style/const",keyword:"const",params:{allowedValue:"simple"},message:"must be equal to constant"};r===null?r=[g]:r.push(g),s++}if(u=h=m===s,u)var d={style:!0,in:!0}}if(!u){const m={instancePath:e,schemaPath:"#/if",keyword:"if",params:{failingKeyword:"then"},message:'must match "then" schema'};r===null?r=[m]:r.push(m),s++}return Cp.errors=r,c.props=d,s===0}Ip.evaluated={dynamicProps:!0,dynamicItems:!1},Cp.evaluated={dynamicProps:!0,dynamicItems:!1};const ert={if:{properties:{in:{const:"query"}},required:["in"]},then:{properties:{style:{default:"form",enum:["form","spaceDelimited","pipeDelimited","deepObject"]},allowReserved:{default:!1,type:"boolean"}}}};function Tp(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Tp.evaluated;c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0);const l=s;let u=!0;const f=s;if(t&&typeof t=="object"&&!Array.isArray(t)){if(t.in===void 0){const m={};r===null?r=[m]:r.push(m),s++}else if(t.in!==void 0&&t.in!=="query"){const m={};r===null?r=[m]:r.push(m),s++}}var h=f===s;if(s=l,r!==null&&(l?r.length=l:r=null),h){const m=s;if(t&&typeof t=="object"&&!Array.isArray(t)){if(t.style!==void 0){let g=t.style;if(g!=="form"&&g!=="spaceDelimited"&&g!=="pipeDelimited"&&g!=="deepObject"){const b={instancePath:e+"/style",schemaPath:"#/then/properties/style/enum",keyword:"enum",params:{allowedValues:ert.then.properties.style.enum},message:"must be equal to one of the allowed values"};r===null?r=[b]:r.push(b),s++}}if(t.allowReserved!==void 0&&typeof t.allowReserved!="boolean"){const g={instancePath:e+"/allowReserved",schemaPath:"#/then/properties/allowReserved/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};r===null?r=[g]:r.push(g),s++}}if(u=h=m===s,u)var d={style:!0,allowReserved:!0,in:!0}}if(!u){const m={instancePath:e,schemaPath:"#/if",keyword:"if",params:{failingKeyword:"then"},message:'must match "then" schema'};r===null?r=[m]:r.push(m),s++}return Tp.errors=r,c.props=d,s===0}function jp(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=jp.evaluated;c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0);const l=s;let u=!0;const f=s;if(t&&typeof t=="object"&&!Array.isArray(t)){if(t.in===void 0){const m={};r===null?r=[m]:r.push(m),s++}else if(t.in!==void 0&&t.in!=="cookie"){const m={};r===null?r=[m]:r.push(m),s++}}var h=f===s;if(s=l,r!==null&&(l?r.length=l:r=null),h){const m=s;if(t&&typeof t=="object"&&!Array.isArray(t)&&t.style!==void 0&&t.style!=="form"){const g={instancePath:e+"/style",schemaPath:"#/then/properties/style/const",keyword:"const",params:{allowedValue:"form"},message:"must be equal to constant"};r===null?r=[g]:r.push(g),s++}if(u=h=m===s,u)var d={style:!0,in:!0}}if(!u){const m={instancePath:e,schemaPath:"#/if",keyword:"if",params:{failingKeyword:"then"},message:'must match "then" schema'};r===null?r=[m]:r.push(m),s++}return jp.errors=r,c.props=d,s===0}function Ey(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Ey.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),wt(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o}))var l=wt.evaluated.props;const u=s;let f=!1,h=null;const d=s;if(t&&typeof t=="object"&&!Array.isArray(t)&&t.schema===void 0){const I={instancePath:e,schemaPath:"#/oneOf/0/required",keyword:"required",params:{missingProperty:"schema"},message:"must have required property 'schema'"};r===null?r=[I]:r.push(I),s++}d===s&&(f=!0,h=0);const m=s;if(t&&typeof t=="object"&&!Array.isArray(t)&&t.content===void 0){const I={instancePath:e,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty:"content"},message:"must have required property 'content'"};r===null?r=[I]:r.push(I),s++}var g;if((g=m===s)&&f?(f=!1,h=[h,1]):g&&(f=!0,h=1),f)s=u,r!==null&&(u?r.length=u:r=null);else{const I={instancePath:e,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas:h},message:"must match exactly one schema in oneOf"};r===null?r=[I]:r.push(I),s++}const b=s;let v=!0;const P=s;if(t&&typeof t=="object"&&!Array.isArray(t)){if(t.in===void 0){const I={};r===null?r=[I]:r.push(I),s++}else if(t.in!==void 0&&t.in!=="query"){const I={};r===null?r=[I]:r.push(I),s++}}var A=P===s;if(l!==!0&&((l=l||{}).in=!0),s=b,r!==null&&(b?r.length=b:r=null),A){const I=s;if(t&&typeof t=="object"&&!Array.isArray(t)&&t.allowEmptyValue!==void 0&&typeof t.allowEmptyValue!="boolean"){const L={instancePath:e+"/allowEmptyValue",schemaPath:"#/then/properties/allowEmptyValue/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};r===null?r=[L]:r.push(L),s++}v=A=I===s,v&&l!==!0&&((l=l||{}).allowEmptyValue=!0)}if(!v){const I={instancePath:e,schemaPath:"#/if",keyword:"if",params:{failingKeyword:"then"},message:'must match "then" schema'};r===null?r=[I]:r.push(I),s++}if(t&&typeof t=="object"&&!Array.isArray(t)){if(t.name===void 0){const I={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"name"},message:"must have required property 'name'"};r===null?r=[I]:r.push(I),s++}if(t.in===void 0){const I={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"in"},message:"must have required property 'in'"};r===null?r=[I]:r.push(I),s++}if(l!==!0&&((l=l||{}).name=!0,l.in=!0,l.description=!0,l.required=!0,l.deprecated=!0,l.schema=!0,l.content=!0),t.name!==void 0&&typeof t.name!="string"){const I={instancePath:e+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[I]:r.push(I),s++}if(t.in!==void 0){let I=t.in;if(I!=="query"&&I!=="header"&&I!=="path"&&I!=="cookie"){const L={instancePath:e+"/in",schemaPath:"#/properties/in/enum",keyword:"enum",params:{allowedValues:Utt.properties.in.enum},message:"must be equal to one of the allowed values"};r===null?r=[L]:r.push(L),s++}}if(t.description!==void 0&&typeof t.description!="string"){const I={instancePath:e+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[I]:r.push(I),s++}if(t.required!==void 0&&typeof t.required!="boolean"){const I={instancePath:e+"/required",schemaPath:"#/properties/required/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};r===null?r=[I]:r.push(I),s++}if(t.deprecated!==void 0&&typeof t.deprecated!="boolean"){const I={instancePath:e+"/deprecated",schemaPath:"#/properties/deprecated/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};r===null?r=[I]:r.push(I),s++}if(t.schema!==void 0&&(Aa(t.schema,{instancePath:e+"/schema",parentData:t,parentDataProperty:"schema",rootData:a,dynamicAnchors:o})||(r=r===null?Aa.errors:r.concat(Aa.errors),s=r.length)),t.content!==void 0){let I=t.content;if(ys(I,{instancePath:e+"/content",parentData:t,parentDataProperty:"content",rootData:a,dynamicAnchors:o})||(r=r===null?ys.errors:r.concat(ys.errors),s=r.length),I&&typeof I=="object"&&!Array.isArray(I)){if(Object.keys(I).length>1){const L={instancePath:e+"/content",schemaPath:"#/properties/content/maxProperties",keyword:"maxProperties",params:{limit:1},message:"must NOT have more than 1 properties"};r===null?r=[L]:r.push(L),s++}if(Object.keys(I).length<1){const L={instancePath:e+"/content",schemaPath:"#/properties/content/minProperties",keyword:"minProperties",params:{limit:1},message:"must NOT have fewer than 1 properties"};r===null?r=[L]:r.push(L),s++}}}if(t.schema!==void 0){const I=s;if(co(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o})||(r=r===null?co.errors:r.concat(co.errors),s=r.length),Ip(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o}))var _=Ip.evaluated.props;else r=r===null?Ip.errors:r.concat(Ip.errors),s=r.length;if(_!==!0&&((_=_||{}).example=!0,_.examples=!0),Cp(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o}))var x=Cp.evaluated.props;else r=r===null?Cp.errors:r.concat(Cp.errors),s=r.length;if(_!==!0&&x!==void 0&&(x===!0?_=!0:(_=_||{},Object.assign(_,x))),Tp(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o}))var E=Tp.evaluated.props;else r=r===null?Tp.errors:r.concat(Tp.errors),s=r.length;if(_!==!0&&E!==void 0&&(E===!0?_=!0:(_=_||{},Object.assign(_,E))),jp(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o}))var j=jp.evaluated.props;else r=r===null?jp.errors:r.concat(jp.errors),s=r.length;if(_!==!0&&j!==void 0&&(j===!0?_=!0:(_=_||{},Object.assign(_,j))),Qo(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o}))var F=Qo.evaluated.props;else r=r===null?Qo.errors:r.concat(Qo.errors),s=r.length;if(_!==!0&&F!==void 0&&(F===!0?_=!0:(_=_||{},Object.assign(_,F))),t&&typeof t=="object"&&!Array.isArray(t)){if(_!==!0&&((_=_||{}).style=!0,_.explode=!0),t.style!==void 0&&typeof t.style!="string"){const L={instancePath:e+"/style",schemaPath:"#/dependentSchemas/schema/properties/style/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[L]:r.push(L),s++}if(t.explode!==void 0&&typeof t.explode!="boolean"){const L={instancePath:e+"/explode",schemaPath:"#/dependentSchemas/schema/properties/explode/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};r===null?r=[L]:r.push(L),s++}}I===s&&l!==!0&&_!==void 0&&(_===!0?l=!0:(l=l||{},Object.assign(l,_)))}if(l!==!0){for(const I in t)if(!l||!l[I]){const L={instancePath:e,schemaPath:"#/unevaluatedProperties",keyword:"unevaluatedProperties",params:{unevaluatedProperty:I},message:"must NOT have unevaluated properties"};r===null?r=[L]:r.push(L),s++}}}else{const I={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[I]:r.push(I),s++}return Ey.errors=r,s===0}function fo(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=fo.evaluated;c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0);const l=s;let u=!0;const f=s;if(s===f)if(t&&typeof t=="object"&&!Array.isArray(t)){if(t.$ref===void 0){const g={};r===null?r=[g]:r.push(g),s++}}else{const g={};r===null?r=[g]:r.push(g),s++}var h=f===s;let d;if(s=l,r!==null&&(l?r.length=l:r=null),h){const g=s;if(Ar(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o})||(r=r===null?Ar.errors:r.concat(Ar.errors),s=r.length),u=h=g===s,u)var m={$ref:!0,summary:!0,description:!0};d="then"}else{const g=s;Ey(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o})||(r=r===null?Ey.errors:r.concat(Ey.errors),s=r.length),u=h=g===s,u&&m!==!0&&(m=!0),d="else"}if(!u){const g={instancePath:e,schemaPath:"#/if",keyword:"if",params:{failingKeyword:d},message:'must match "'+d+'" schema'};r===null?r=[g]:r.push(g),s++}return fo.errors=r,c.props=m,s===0}function po(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=po.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),wt(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o}))var l=wt.evaluated.props;if(t&&typeof t=="object"&&!Array.isArray(t)){if(t.url===void 0){const u={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"url"},message:"must have required property 'url'"};r===null?r=[u]:r.push(u),s++}if(l!==!0&&((l=l||{}).description=!0,l.url=!0),t.description!==void 0&&typeof t.description!="string"){const u={instancePath:e+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[u]:r.push(u),s++}if(t.url!==void 0){let u=t.url;if(typeof u=="string"){if(!Ci(u)){const f={instancePath:e+"/url",schemaPath:"#/properties/url/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};r===null?r=[f]:r.push(f),s++}}else{const f={instancePath:e+"/url",schemaPath:"#/properties/url/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[f]:r.push(f),s++}}if(l!==!0){for(const u in t)if(!l||!l[u]){const f={instancePath:e,schemaPath:"#/unevaluatedProperties",keyword:"unevaluatedProperties",params:{unevaluatedProperty:u},message:"must NOT have unevaluated properties"};r===null?r=[f]:r.push(f),s++}}}else{const u={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[u]:r.push(u),s++}return po.errors=r,s===0}function Iy(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Iy.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),wt(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o}))var l=wt.evaluated.props;if(t&&typeof t=="object"&&!Array.isArray(t)){if(t.content===void 0){const u={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"content"},message:"must have required property 'content'"};r===null?r=[u]:r.push(u),s++}if(l!==!0&&((l=l||{}).description=!0,l.content=!0,l.required=!0),t.description!==void 0&&typeof t.description!="string"){const u={instancePath:e+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[u]:r.push(u),s++}if(t.content!==void 0&&(ys(t.content,{instancePath:e+"/content",parentData:t,parentDataProperty:"content",rootData:a,dynamicAnchors:o})||(r=r===null?ys.errors:r.concat(ys.errors),s=r.length)),t.required!==void 0&&typeof t.required!="boolean"){const u={instancePath:e+"/required",schemaPath:"#/properties/required/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};r===null?r=[u]:r.push(u),s++}if(l!==!0){for(const u in t)if(!l||!l[u]){const f={instancePath:e,schemaPath:"#/unevaluatedProperties",keyword:"unevaluatedProperties",params:{unevaluatedProperty:u},message:"must NOT have unevaluated properties"};r===null?r=[f]:r.push(f),s++}}}else{const u={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[u]:r.push(u),s++}return Iy.errors=r,s===0}function Qc(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Qc.evaluated;c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0);const l=s;let u=!0;const f=s;if(s===f)if(t&&typeof t=="object"&&!Array.isArray(t)){if(t.$ref===void 0){const g={};r===null?r=[g]:r.push(g),s++}}else{const g={};r===null?r=[g]:r.push(g),s++}var h=f===s;let d;if(s=l,r!==null&&(l?r.length=l:r=null),h){const g=s;if(Ar(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o})||(r=r===null?Ar.errors:r.concat(Ar.errors),s=r.length),u=h=g===s,u)var m={$ref:!0,summary:!0,description:!0};d="then"}else{const g=s;Iy(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o})||(r=r===null?Iy.errors:r.concat(Iy.errors),s=r.length),u=h=g===s,u&&m!==!0&&(m=!0),d="else"}if(!u){const g={instancePath:e,schemaPath:"#/if",keyword:"if",params:{failingKeyword:d},message:'must match "'+d+'" schema'};r===null?r=[g]:r.push(g),s++}return Qc.errors=r,c.props=m,s===0}function mi(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=mi.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){for(const l in t)if(typeof t[l]!="string"){const u={instancePath:e+"/"+l.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[u]:r.push(u),s++}}else{const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[l]:r.push(l),s++}return mi.errors=r,s===0}function Cy(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Cy.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),wt(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o}))var l=wt.evaluated.props;const u=s;let f=!1,h=null;const d=s;if(t&&typeof t=="object"&&!Array.isArray(t)&&t.operationRef===void 0){const b={instancePath:e,schemaPath:"#/oneOf/0/required",keyword:"required",params:{missingProperty:"operationRef"},message:"must have required property 'operationRef'"};r===null?r=[b]:r.push(b),s++}d===s&&(f=!0,h=0);const m=s;if(t&&typeof t=="object"&&!Array.isArray(t)&&t.operationId===void 0){const b={instancePath:e,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty:"operationId"},message:"must have required property 'operationId'"};r===null?r=[b]:r.push(b),s++}var g;if((g=m===s)&&f?(f=!1,h=[h,1]):g&&(f=!0,h=1),f)s=u,r!==null&&(u?r.length=u:r=null);else{const b={instancePath:e,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas:h},message:"must match exactly one schema in oneOf"};r===null?r=[b]:r.push(b),s++}if(t&&typeof t=="object"&&!Array.isArray(t)){if(l!==!0&&((l=l||{}).operationRef=!0,l.operationId=!0,l.parameters=!0,l.requestBody=!0,l.description=!0,l.body=!0),t.operationRef!==void 0){let b=t.operationRef;if(typeof b=="string"){if(!$r.test(b)){const v={instancePath:e+"/operationRef",schemaPath:"#/properties/operationRef/format",keyword:"format",params:{format:"uri-reference"},message:'must match format "uri-reference"'};r===null?r=[v]:r.push(v),s++}}else{const v={instancePath:e+"/operationRef",schemaPath:"#/properties/operationRef/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[v]:r.push(v),s++}}if(t.operationId!==void 0&&typeof t.operationId!="string"){const b={instancePath:e+"/operationId",schemaPath:"#/properties/operationId/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[b]:r.push(b),s++}if(t.parameters!==void 0&&(mi(t.parameters,{instancePath:e+"/parameters",parentData:t,parentDataProperty:"parameters",rootData:a,dynamicAnchors:o})||(r=r===null?mi.errors:r.concat(mi.errors),s=r.length)),t.description!==void 0&&typeof t.description!="string"){const b={instancePath:e+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[b]:r.push(b),s++}if(t.body!==void 0&&($a(t.body,{instancePath:e+"/body",parentData:t,parentDataProperty:"body",rootData:a,dynamicAnchors:o})||(r=r===null?$a.errors:r.concat($a.errors),s=r.length)),l!==!0){for(const b in t)if(!l||!l[b]){const v={instancePath:e,schemaPath:"#/unevaluatedProperties",keyword:"unevaluatedProperties",params:{unevaluatedProperty:b},message:"must NOT have unevaluated properties"};r===null?r=[v]:r.push(v),s++}}}else{const b={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[b]:r.push(b),s++}return Cy.errors=r,s===0}function Zc(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Zc.evaluated;c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0);const l=s;let u=!0;const f=s;if(s===f)if(t&&typeof t=="object"&&!Array.isArray(t)){if(t.$ref===void 0){const g={};r===null?r=[g]:r.push(g),s++}}else{const g={};r===null?r=[g]:r.push(g),s++}var h=f===s;let d;if(s=l,r!==null&&(l?r.length=l:r=null),h){const g=s;if(Ar(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o})||(r=r===null?Ar.errors:r.concat(Ar.errors),s=r.length),u=h=g===s,u)var m={$ref:!0,summary:!0,description:!0};d="then"}else{const g=s;Cy(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o})||(r=r===null?Cy.errors:r.concat(Cy.errors),s=r.length),u=h=g===s,u&&m!==!0&&(m=!0),d="else"}if(!u){const g={instancePath:e,schemaPath:"#/if",keyword:"if",params:{failingKeyword:d},message:'must match "'+d+'" schema'};r===null?r=[g]:r.push(g),s++}return Zc.errors=r,c.props=m,s===0}function Ty(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Ty.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),wt(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o}))var l=wt.evaluated.props;if(t&&typeof t=="object"&&!Array.isArray(t)){if(t.description===void 0){const u={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"description"},message:"must have required property 'description'"};r===null?r=[u]:r.push(u),s++}if(l!==!0&&((l=l||{}).description=!0,l.headers=!0,l.content=!0,l.links=!0),t.description!==void 0&&typeof t.description!="string"){const u={instancePath:e+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[u]:r.push(u),s++}if(t.headers!==void 0){let u=t.headers;if(u&&typeof u=="object"&&!Array.isArray(u))for(const f in u)uo(u[f],{instancePath:e+"/headers/"+f.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:u,parentDataProperty:f,rootData:a,dynamicAnchors:o})||(r=r===null?uo.errors:r.concat(uo.errors),s=r.length);else{const f={instancePath:e+"/headers",schemaPath:"#/properties/headers/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[f]:r.push(f),s++}}if(t.content!==void 0&&(ys(t.content,{instancePath:e+"/content",parentData:t,parentDataProperty:"content",rootData:a,dynamicAnchors:o})||(r=r===null?ys.errors:r.concat(ys.errors),s=r.length)),t.links!==void 0){let u=t.links;if(u&&typeof u=="object"&&!Array.isArray(u))for(const f in u)Zc(u[f],{instancePath:e+"/links/"+f.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:u,parentDataProperty:f,rootData:a,dynamicAnchors:o})||(r=r===null?Zc.errors:r.concat(Zc.errors),s=r.length);else{const f={instancePath:e+"/links",schemaPath:"#/properties/links/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[f]:r.push(f),s++}}if(l!==!0){for(const u in t)if(!l||!l[u]){const f={instancePath:e,schemaPath:"#/unevaluatedProperties",keyword:"unevaluatedProperties",params:{unevaluatedProperty:u},message:"must NOT have unevaluated properties"};r===null?r=[f]:r.push(f),s++}}}else{const u={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[u]:r.push(u),s++}return Ty.errors=r,s===0}function Ks(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Ks.evaluated;c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0);const l=s;let u=!0;const f=s;if(s===f)if(t&&typeof t=="object"&&!Array.isArray(t)){if(t.$ref===void 0){const g={};r===null?r=[g]:r.push(g),s++}}else{const g={};r===null?r=[g]:r.push(g),s++}var h=f===s;let d;if(s=l,r!==null&&(l?r.length=l:r=null),h){const g=s;if(Ar(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o})||(r=r===null?Ar.errors:r.concat(Ar.errors),s=r.length),u=h=g===s,u)var m={$ref:!0,summary:!0,description:!0};d="then"}else{const g=s;Ty(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o})||(r=r===null?Ty.errors:r.concat(Ty.errors),s=r.length),u=h=g===s,u&&m!==!0&&(m=!0),d="else"}if(!u){const g={instancePath:e,schemaPath:"#/if",keyword:"if",params:{failingKeyword:d},message:'must match "'+d+'" schema'};r===null?r=[g]:r.push(g),s++}return Ks.errors=r,c.props=m,s===0}Tp.evaluated={dynamicProps:!0,dynamicItems:!1},jp.evaluated={dynamicProps:!0,dynamicItems:!1},Ey.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},fo.evaluated={dynamicProps:!0,dynamicItems:!1},po.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},Iy.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},Qc.evaluated={dynamicProps:!0,dynamicItems:!1},mi.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},Cy.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},Zc.evaluated={dynamicProps:!0,dynamicItems:!1},Ty.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},Ks.evaluated={dynamicProps:!0,dynamicItems:!1};const h8=new RegExp("^[1-5](?:[0-9]{2}|XX)$","u");function jy(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=jy.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),wt(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o}))var l=wt.evaluated.props;const u=s;let f=!0;const h=s;if(s===h&&t&&typeof t=="object"&&!Array.isArray(t)){var d={};for(const g in t)if(h8.test(g)){const b={};r===null?r=[b]:r.push(b),s++,d[g]=!0}}var m=h===s;if(l!==!0&&d!==void 0&&(d===!0?l=!0:(l=l||{},Object.assign(l,d))),s=u,r!==null&&(u?r.length=u:r=null),m){const g=s;if(t&&typeof t=="object"&&!Array.isArray(t)&&t.default===void 0){const b={instancePath:e,schemaPath:"#/then/required",keyword:"required",params:{missingProperty:"default"},message:"must have required property 'default'"};r===null?r=[b]:r.push(b),s++}f=m=g===s}if(!f){const g={instancePath:e,schemaPath:"#/if",keyword:"if",params:{failingKeyword:"then"},message:'must match "then" schema'};r===null?r=[g]:r.push(g),s++}if(t&&typeof t=="object"&&!Array.isArray(t)){if(Object.keys(t).length<1){const g={instancePath:e,schemaPath:"#/minProperties",keyword:"minProperties",params:{limit:1},message:"must NOT have fewer than 1 properties"};r===null?r=[g]:r.push(g),s++}l!==!0&&((l=l||{}).default=!0),t.default!==void 0&&(Ks(t.default,{instancePath:e+"/default",parentData:t,parentDataProperty:"default",rootData:a,dynamicAnchors:o})||(r=r===null?Ks.errors:r.concat(Ks.errors),s=r.length));for(const g in t)h8.test(g)&&(Ks(t[g],{instancePath:e+"/"+g.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:t,parentDataProperty:g,rootData:a,dynamicAnchors:o})||(r=r===null?Ks.errors:r.concat(Ks.errors),s=r.length),l[g]=!0);if(l!==!0){for(const g in t)if(!l||!l[g]){const b={instancePath:e,schemaPath:"#/unevaluatedProperties",keyword:"unevaluatedProperties",params:{unevaluatedProperty:g},message:"must NOT have unevaluated properties"};r===null?r=[b]:r.push(b),s++}}}else{const g={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[g]:r.push(g),s++}return jy.errors=r,s===0}jy.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};const cv={validate:Jp};function ho(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=ho.evaluated;c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0);const l=s;let u=!0;const f=s;if(s===f)if(t&&typeof t=="object"&&!Array.isArray(t)){if(t.$ref===void 0){const v={};r===null?r=[v]:r.push(v),s++}}else{const v={};r===null?r=[v]:r.push(v),s++}var h=f===s;let d;if(s=l,r!==null&&(l?r.length=l:r=null),h){const v=s;if(Ar(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o})||(r=r===null?Ar.errors:r.concat(Ar.errors),s=r.length),u=h=v===s,u)var m={$ref:!0,summary:!0,description:!0};d="then"}else{const v=s;if(cv.validate(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o}))var g=cv.validate.evaluated.props,b=cv.validate.evaluated.items;else r=r===null?cv.validate.errors:r.concat(cv.validate.errors),s=r.length;u=h=v===s,u&&m!==!0&&g!==void 0&&(g===!0?m=!0:(m=m||{},Object.assign(m,g))),d="else"}if(!u){const v={instancePath:e,schemaPath:"#/if",keyword:"if",params:{failingKeyword:d},message:'must match "'+d+'" schema'};r===null?r=[v]:r.push(v),s++}return ho.errors=r,c.props=m,c.items=b,s===0}function My(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=My.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),wt(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o}),t&&typeof t=="object"&&!Array.isArray(t))for(const l in t)ho(t[l],{instancePath:e+"/"+l.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:t,parentDataProperty:l,rootData:a,dynamicAnchors:o})||(r=r===null?ho.errors:r.concat(ho.errors),s=r.length);else{const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[l]:r.push(l),s++}return My.errors=r,s===0}function Xc(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Xc.evaluated;c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0);const l=s;let u=!0;const f=s;if(s===f)if(t&&typeof t=="object"&&!Array.isArray(t)){if(t.$ref===void 0){const g={};r===null?r=[g]:r.push(g),s++}}else{const g={};r===null?r=[g]:r.push(g),s++}var h=f===s;let d;if(s=l,r!==null&&(l?r.length=l:r=null),h){const g=s;if(Ar(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o})||(r=r===null?Ar.errors:r.concat(Ar.errors),s=r.length),u=h=g===s,u)var m={$ref:!0,summary:!0,description:!0};d="then"}else{const g=s;My(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o})||(r=r===null?My.errors:r.concat(My.errors),s=r.length),u=h=g===s,u&&m!==!0&&(m=!0),d="else"}if(!u){const g={instancePath:e,schemaPath:"#/if",keyword:"if",params:{failingKeyword:d},message:'must match "'+d+'" schema'};r===null?r=[g]:r.push(g),s++}return Xc.errors=r,c.props=m,s===0}function eu(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=eu.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t))for(const l in t){let u=t[l];if(Array.isArray(u)){const f=u.length;for(let h=0;h0){const b=[];for(const P of r)P.keyword==="errorMessage"||P.emUsed||P.instancePath!==e&&(P.instancePath.indexOf(e)!==0||P.instancePath[e.length]!=="/")||P.schemaPath.indexOf("#/anyOf/0")!==0||P.schemaPath[9]!=="/"||(b.push(P),P.emUsed=!0);if(b.length){const P={instancePath:e,schemaPath:"#/anyOf/0/errorMessage",keyword:"errorMessage",params:{errors:b},message:'The document must have either "paths", "webhooks" or "components"'};r===null?r=[P]:r.push(P),s++}const v=[];for(const P of r)P.emUsed||v.push(P);r=v,s=v.length}var d=h===s;f=f||d;const m=s;if(t&&typeof t=="object"&&!Array.isArray(t)&&t.components===void 0){const b={instancePath:e,schemaPath:"#/anyOf/1/required",keyword:"required",params:{missingProperty:"components"},message:"must have required property 'components'"};r===null?r=[b]:r.push(b),s++}if(s>0){const b=[];for(const P of r)P.keyword==="errorMessage"||P.emUsed||P.instancePath!==e&&(P.instancePath.indexOf(e)!==0||P.instancePath[e.length]!=="/")||P.schemaPath.indexOf("#/anyOf/1")!==0||P.schemaPath[9]!=="/"||(b.push(P),P.emUsed=!0);if(b.length){const P={instancePath:e,schemaPath:"#/anyOf/1/errorMessage",keyword:"errorMessage",params:{errors:b},message:'The document must have either "paths", "webhooks" or "components"'};r===null?r=[P]:r.push(P),s++}const v=[];for(const P of r)P.emUsed||v.push(P);r=v,s=v.length}d=m===s,f=f||d;const g=s;if(t&&typeof t=="object"&&!Array.isArray(t)&&t.webhooks===void 0){const b={instancePath:e,schemaPath:"#/anyOf/2/required",keyword:"required",params:{missingProperty:"webhooks"},message:"must have required property 'webhooks'"};r===null?r=[b]:r.push(b),s++}if(s>0){const b=[];for(const P of r)P.keyword==="errorMessage"||P.emUsed||P.instancePath!==e&&(P.instancePath.indexOf(e)!==0||P.instancePath[e.length]!=="/")||P.schemaPath.indexOf("#/anyOf/2")!==0||P.schemaPath[9]!=="/"||(b.push(P),P.emUsed=!0);if(b.length){const P={instancePath:e,schemaPath:"#/anyOf/2/errorMessage",keyword:"errorMessage",params:{errors:b},message:'The document must have either "paths", "webhooks" or "components"'};r===null?r=[P]:r.push(P),s++}const v=[];for(const P of r)P.emUsed||v.push(P);r=v,s=v.length}if(d=g===s,f=f||d,f)s=u,r!==null&&(u?r.length=u:r=null);else{const b={instancePath:e,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};r===null?r=[b]:r.push(b),s++}if(t&&typeof t=="object"&&!Array.isArray(t)){if(t.openapi===void 0){const b={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"openapi"},message:"must have required property 'openapi'"};r===null?r=[b]:r.push(b),s++}if(t.info===void 0){const b={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"info"},message:"must have required property 'info'"};r===null?r=[b]:r.push(b),s++}if(l!==!0&&((l=l||{}).openapi=!0,l.info=!0,l.jsonSchemaDialect=!0,l.servers=!0,l.paths=!0,l.webhooks=!0,l.components=!0,l.security=!0,l.tags=!0,l.externalDocs=!0),t.openapi!==void 0){let b=t.openapi;if(typeof b=="string"){if(!srt.test(b)){const v={instancePath:e+"/openapi",schemaPath:"#/properties/openapi/pattern",keyword:"pattern",params:{pattern:"^3\\.1\\.\\d+(-.+)?$"},message:'must match pattern "^3\\.1\\.\\d+(-.+)?$"'};r===null?r=[v]:r.push(v),s++}}else{const v={instancePath:e+"/openapi",schemaPath:"#/properties/openapi/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[v]:r.push(v),s++}}if(t.info!==void 0&&(Py(t.info,{instancePath:e+"/info",parentData:t,parentDataProperty:"info",rootData:a,dynamicAnchors:o})||(r=r===null?Py.errors:r.concat(Py.errors),s=r.length)),t.jsonSchemaDialect!==void 0){let b=t.jsonSchemaDialect;if(typeof b=="string"){if(!Ci(b)){const v={instancePath:e+"/jsonSchemaDialect",schemaPath:"#/properties/jsonSchemaDialect/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};r===null?r=[v]:r.push(v),s++}}else{const v={instancePath:e+"/jsonSchemaDialect",schemaPath:"#/properties/jsonSchemaDialect/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[v]:r.push(v),s++}}if(t.servers!==void 0){let b=t.servers;if(Array.isArray(b)){const v=b.length;for(let P=0;P0){const b={anyOf:[]},v={};for(const A of r)A.keyword!=="errorMessage"&&!A.emUsed&&A.instancePath===e&&A.keyword in b&&A.schemaPath.indexOf("#")===0&&/^\/[^\/]*$/.test(A.schemaPath.slice(1))&&(b[A.keyword].push(A),A.emUsed=!0);for(const A in b)if(b[A].length){const _={instancePath:e,schemaPath:"#/errorMessage",keyword:"errorMessage",params:{errors:b[A]},message:A in v?v[A]():ztt.errorMessage[A]};r===null?r=[_]:r.push(_),s++}const P=[];for(const A of r)A.emUsed||P.push(A);r=P,s=P.length}return IS.errors=r,s===0}IS.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};Ll.arazzo1_0=CS;function xr(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){const r=xr.evaluated;if(r.dynamicProps&&(r.props=void 0),r.dynamicItems&&(r.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){var s={};for(const c in t)Je.test(c)&&(s[c]=!0)}return xr.errors=null,r.props=s,!0}function Hy(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Hy.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),xr(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o}))var l=xr.evaluated.props;if(t&&typeof t=="object"&&!Array.isArray(t)){if(t.title===void 0){const u={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"title"},message:"must have required property 'title'"};r===null?r=[u]:r.push(u),s++}if(t.version===void 0){const u={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"version"},message:"must have required property 'version'"};r===null?r=[u]:r.push(u),s++}if(l!==!0&&((l=l||{}).title=!0,l.summary=!0,l.description=!0,l.version=!0),t.title!==void 0&&typeof t.title!="string"){const u={instancePath:e+"/title",schemaPath:"#/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[u]:r.push(u),s++}if(t.summary!==void 0&&typeof t.summary!="string"){const u={instancePath:e+"/summary",schemaPath:"#/properties/summary/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[u]:r.push(u),s++}if(t.description!==void 0&&typeof t.description!="string"){const u={instancePath:e+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[u]:r.push(u),s++}if(t.version!==void 0&&typeof t.version!="string"){const u={instancePath:e+"/version",schemaPath:"#/properties/version/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[u]:r.push(u),s++}if(l!==!0){for(const u in t)if(!l||!l[u]){const f={instancePath:e,schemaPath:"#/unevaluatedProperties",keyword:"unevaluatedProperties",params:{unevaluatedProperty:u},message:"must NOT have unevaluated properties"};r===null?r=[f]:r.push(f),s++}}}else{const u={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[u]:r.push(u),s++}return Hy.errors=r,s===0}xr.evaluated={dynamicProps:!0,dynamicItems:!1},Hy.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};const ort={$comment:"https://spec.openapis.org/arazzo/v1.0.0#source-description-object",description:`Describes a source description (such as an OpenAPI description) +that will be referenced by one or more workflows described within +an Arazzo description`,type:"object",properties:{name:{description:"A unique name for the source description",type:"string",pattern:"^[A-Za-z0-9_\\-]+$"},url:{description:"A URL to a source description to be used by a workflow",type:"string",format:"uri-reference"},type:{description:"The type of source description",enum:["arazzo","openapi"]}},required:["name","url"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},lrt=new RegExp("^[A-Za-z0-9_\\-]+$","u");function Gy(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Gy.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),xr(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o}))var l=xr.evaluated.props;if(t&&typeof t=="object"&&!Array.isArray(t)){if(t.name===void 0){const u={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"name"},message:"must have required property 'name'"};r===null?r=[u]:r.push(u),s++}if(t.url===void 0){const u={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"url"},message:"must have required property 'url'"};r===null?r=[u]:r.push(u),s++}if(l!==!0&&((l=l||{}).name=!0,l.url=!0,l.type=!0),t.name!==void 0){let u=t.name;if(typeof u=="string"){if(!lrt.test(u)){const f={instancePath:e+"/name",schemaPath:"#/properties/name/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z0-9_\\-]+$"},message:'must match pattern "^[A-Za-z0-9_\\-]+$"'};r===null?r=[f]:r.push(f),s++}}else{const f={instancePath:e+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[f]:r.push(f),s++}}if(t.url!==void 0){let u=t.url;if(typeof u=="string"){if(!$r.test(u)){const f={instancePath:e+"/url",schemaPath:"#/properties/url/format",keyword:"format",params:{format:"uri-reference"},message:'must match format "uri-reference"'};r===null?r=[f]:r.push(f),s++}}else{const f={instancePath:e+"/url",schemaPath:"#/properties/url/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[f]:r.push(f),s++}}if(t.type!==void 0){let u=t.type;if(u!=="arazzo"&&u!=="openapi"){const f={instancePath:e+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:ort.properties.type.enum},message:"must be equal to one of the allowed values"};r===null?r=[f]:r.push(f),s++}}if(l!==!0){for(const u in t)if(!l||!l[u]){const f={instancePath:e,schemaPath:"#/unevaluatedProperties",keyword:"unevaluatedProperties",params:{unevaluatedProperty:u},message:"must NOT have unevaluated properties"};r===null?r=[f]:r.push(f),s++}}}else{const u={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[u]:r.push(u),s++}return Gy.errors=r,s===0}function nP(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=nP.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),typeof t!="string"){const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}return o.workflowId||(o.workflowId=nP),nP.errors=r,s===0}Gy.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},nP.evaluated={dynamicProps:!1,dynamicItems:!1};const crt={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/schema",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/core":!0,"https://json-schema.org/draft/2020-12/vocab/applicator":!0,"https://json-schema.org/draft/2020-12/vocab/unevaluated":!0,"https://json-schema.org/draft/2020-12/vocab/validation":!0,"https://json-schema.org/draft/2020-12/vocab/meta-data":!0,"https://json-schema.org/draft/2020-12/vocab/format-annotation":!0,"https://json-schema.org/draft/2020-12/vocab/content":!0},$dynamicAnchor:"meta",title:"Core and Validation specifications meta-schema",allOf:[{$ref:"meta/core"},{$ref:"meta/applicator"},{$ref:"meta/unevaluated"},{$ref:"meta/validation"},{$ref:"meta/meta-data"},{$ref:"meta/format-annotation"},{$ref:"meta/content"}],type:["object","boolean"],$comment:"This meta-schema also defines keywords that have appeared in previous drafts in order to prevent incompatible extensions as they remain in common use.",properties:{definitions:{$comment:'"definitions" has been replaced by "$defs".',type:"object",additionalProperties:{$dynamicRef:"#meta"},deprecated:!0,default:{}},dependencies:{$comment:'"dependencies" has been split and replaced by "dependentSchemas" and "dependentRequired" in order to serve their differing semantics.',type:"object",additionalProperties:{anyOf:[{$dynamicRef:"#meta"},{$ref:"meta/validation#/$defs/stringArray"}]},deprecated:!0,default:{}},$recursiveAnchor:{$comment:'"$recursiveAnchor" has been replaced by "$dynamicAnchor".',$ref:"meta/core#/$defs/anchorString",deprecated:!0},$recursiveRef:{$comment:'"$recursiveRef" has been replaced by "$dynamicRef".',$ref:"meta/core#/$defs/uriReferenceString",deprecated:!0}}},urt={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/validation",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/validation":!0},$dynamicAnchor:"meta",title:"Validation vocabulary meta-schema",type:["object","boolean"],properties:{type:{anyOf:[{$ref:"#/$defs/simpleTypes"},{type:"array",items:{$ref:"#/$defs/simpleTypes"},minItems:1,uniqueItems:!0}]},const:!0,enum:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/$defs/nonNegativeInteger"},minLength:{$ref:"#/$defs/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},maxItems:{$ref:"#/$defs/nonNegativeInteger"},minItems:{$ref:"#/$defs/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},maxContains:{$ref:"#/$defs/nonNegativeInteger"},minContains:{$ref:"#/$defs/nonNegativeInteger",default:1},maxProperties:{$ref:"#/$defs/nonNegativeInteger"},minProperties:{$ref:"#/$defs/nonNegativeIntegerDefault0"},required:{$ref:"#/$defs/stringArray"},dependentRequired:{type:"object",additionalProperties:{$ref:"#/$defs/stringArray"}}},$defs:{nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{$ref:"#/$defs/nonNegativeInteger",default:0},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}}},frt={enum:["array","boolean","integer","null","number","object","string"]};function Ac(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Ac.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t!=="array"&&t!=="boolean"&&t!=="integer"&&t!=="null"&&t!=="number"&&t!=="object"&&t!=="string"){const l={instancePath:e,schemaPath:"#/enum",keyword:"enum",params:{allowedValues:frt.enum},message:"must be equal to one of the allowed values"};r===null?r=[l]:r.push(l),s++}return Ac.errors=r,s===0}function li(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=li.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),typeof t!="number"||t%1||isNaN(t)){const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"integer"},message:"must be integer"};r===null?r=[l]:r.push(l),s++}if(typeof t=="number"&&(t<0||isNaN(t))){const l={instancePath:e,schemaPath:"#/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0"};r===null?r=[l]:r.push(l),s++}return li.errors=r,s===0}function zs(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=zs.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),typeof t!="number"||t%1||isNaN(t)){const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"integer"},message:"must be integer"};r===null?r=[l]:r.push(l),s++}if(typeof t=="number"&&(t<0||isNaN(t))){const l={instancePath:e,schemaPath:"#/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0"};r===null?r=[l]:r.push(l),s++}return zs.errors=r,s===0}function Sc(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Sc.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),Array.isArray(t)){const l=t.length;for(let h=0;h1){const h={};for(;f--;){let d=t[f];if(typeof d=="string"){if(typeof h[d]=="number"){u=h[d];const m={instancePath:e,schemaPath:"#/uniqueItems",keyword:"uniqueItems",params:{i:f,j:u},message:"must NOT have duplicate items (items ## "+u+" and "+f+" are identical)"};r===null?r=[m]:r.push(m),s++;break}h[d]=f}}}}else{const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"array"},message:"must be array"};r===null?r=[l]:r.push(l),s++}return Sc.errors=r,s===0}function Qp(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Qp.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),(!t||typeof t!="object"||Array.isArray(t))&&typeof t!="boolean"){const u={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:urt.type},message:"must be object,boolean"};r===null?r=[u]:r.push(u),s++}if(o.meta||(o.meta=Qp),t&&typeof t=="object"&&!Array.isArray(t)){if(t.type!==void 0){let u=t.type;const f=s;let h=!1;const d=s;Ac(u,{instancePath:e+"/type",parentData:t,parentDataProperty:"type",rootData:a,dynamicAnchors:o})||(r=r===null?Ac.errors:r.concat(Ac.errors),s=r.length);var l=d===s;h=h||l;const m=s;if(Array.isArray(u)){if(u.length<1){const P={instancePath:e+"/type",schemaPath:"#/properties/type/anyOf/1/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items"};r===null?r=[P]:r.push(P),s++}const g=u.length;for(let P=0;P1){e:for(;v--;)for(b=v;b--;)if(Wr(u[v],u[b])){const P={instancePath:e+"/type",schemaPath:"#/properties/type/anyOf/1/uniqueItems",keyword:"uniqueItems",params:{i:v,j:b},message:"must NOT have duplicate items (items ## "+b+" and "+v+" are identical)"};r===null?r=[P]:r.push(P),s++;break e}}}else{const g={instancePath:e+"/type",schemaPath:"#/properties/type/anyOf/1/type",keyword:"type",params:{type:"array"},message:"must be array"};r===null?r=[g]:r.push(g),s++}if(l=m===s,h=h||l,h)s=f,r!==null&&(f?r.length=f:r=null);else{const g={instancePath:e+"/type",schemaPath:"#/properties/type/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};r===null?r=[g]:r.push(g),s++}}if(t.enum!==void 0&&!Array.isArray(t.enum)){const u={instancePath:e+"/enum",schemaPath:"#/properties/enum/type",keyword:"type",params:{type:"array"},message:"must be array"};r===null?r=[u]:r.push(u),s++}if(t.multipleOf!==void 0){let u=t.multipleOf;if(typeof u=="number"){if(u<=0||isNaN(u)){const f={instancePath:e+"/multipleOf",schemaPath:"#/properties/multipleOf/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison:">",limit:0},message:"must be > 0"};r===null?r=[f]:r.push(f),s++}}else{const f={instancePath:e+"/multipleOf",schemaPath:"#/properties/multipleOf/type",keyword:"type",params:{type:"number"},message:"must be number"};r===null?r=[f]:r.push(f),s++}}if(t.maximum!==void 0&&typeof t.maximum!="number"){const u={instancePath:e+"/maximum",schemaPath:"#/properties/maximum/type",keyword:"type",params:{type:"number"},message:"must be number"};r===null?r=[u]:r.push(u),s++}if(t.exclusiveMaximum!==void 0&&typeof t.exclusiveMaximum!="number"){const u={instancePath:e+"/exclusiveMaximum",schemaPath:"#/properties/exclusiveMaximum/type",keyword:"type",params:{type:"number"},message:"must be number"};r===null?r=[u]:r.push(u),s++}if(t.minimum!==void 0&&typeof t.minimum!="number"){const u={instancePath:e+"/minimum",schemaPath:"#/properties/minimum/type",keyword:"type",params:{type:"number"},message:"must be number"};r===null?r=[u]:r.push(u),s++}if(t.exclusiveMinimum!==void 0&&typeof t.exclusiveMinimum!="number"){const u={instancePath:e+"/exclusiveMinimum",schemaPath:"#/properties/exclusiveMinimum/type",keyword:"type",params:{type:"number"},message:"must be number"};r===null?r=[u]:r.push(u),s++}if(t.maxLength!==void 0&&(li(t.maxLength,{instancePath:e+"/maxLength",parentData:t,parentDataProperty:"maxLength",rootData:a,dynamicAnchors:o})||(r=r===null?li.errors:r.concat(li.errors),s=r.length)),t.minLength!==void 0&&(zs(t.minLength,{instancePath:e+"/minLength",parentData:t,parentDataProperty:"minLength",rootData:a,dynamicAnchors:o})||(r=r===null?zs.errors:r.concat(zs.errors),s=r.length)),t.pattern!==void 0&&typeof t.pattern!="string"){const u={instancePath:e+"/pattern",schemaPath:"#/properties/pattern/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[u]:r.push(u),s++}if(t.maxItems!==void 0&&(li(t.maxItems,{instancePath:e+"/maxItems",parentData:t,parentDataProperty:"maxItems",rootData:a,dynamicAnchors:o})||(r=r===null?li.errors:r.concat(li.errors),s=r.length)),t.minItems!==void 0&&(zs(t.minItems,{instancePath:e+"/minItems",parentData:t,parentDataProperty:"minItems",rootData:a,dynamicAnchors:o})||(r=r===null?zs.errors:r.concat(zs.errors),s=r.length)),t.uniqueItems!==void 0&&typeof t.uniqueItems!="boolean"){const u={instancePath:e+"/uniqueItems",schemaPath:"#/properties/uniqueItems/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};r===null?r=[u]:r.push(u),s++}if(t.maxContains!==void 0&&(li(t.maxContains,{instancePath:e+"/maxContains",parentData:t,parentDataProperty:"maxContains",rootData:a,dynamicAnchors:o})||(r=r===null?li.errors:r.concat(li.errors),s=r.length)),t.minContains!==void 0&&(li(t.minContains,{instancePath:e+"/minContains",parentData:t,parentDataProperty:"minContains",rootData:a,dynamicAnchors:o})||(r=r===null?li.errors:r.concat(li.errors),s=r.length)),t.maxProperties!==void 0&&(li(t.maxProperties,{instancePath:e+"/maxProperties",parentData:t,parentDataProperty:"maxProperties",rootData:a,dynamicAnchors:o})||(r=r===null?li.errors:r.concat(li.errors),s=r.length)),t.minProperties!==void 0&&(zs(t.minProperties,{instancePath:e+"/minProperties",parentData:t,parentDataProperty:"minProperties",rootData:a,dynamicAnchors:o})||(r=r===null?zs.errors:r.concat(zs.errors),s=r.length)),t.required!==void 0&&(Sc(t.required,{instancePath:e+"/required",parentData:t,parentDataProperty:"required",rootData:a,dynamicAnchors:o})||(r=r===null?Sc.errors:r.concat(Sc.errors),s=r.length)),t.dependentRequired!==void 0){let u=t.dependentRequired;if(u&&typeof u=="object"&&!Array.isArray(u))for(const f in u)Sc(u[f],{instancePath:e+"/dependentRequired/"+f.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:u,parentDataProperty:f,rootData:a,dynamicAnchors:o})||(r=r===null?Sc.errors:r.concat(Sc.errors),s=r.length);else{const f={instancePath:e+"/dependentRequired",schemaPath:"#/properties/dependentRequired/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[f]:r.push(f),s++}}}return Qp.errors=r,s===0}function Bn(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Bn.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),(!t||typeof t!="object"||Array.isArray(t))&&typeof t!="boolean"){const P={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:crt.type},message:"must be object,boolean"};r===null?r=[P]:r.push(P),s++}if(o.meta||(o.meta=Bn),oa(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o})||(r=r===null?oa.errors:r.concat(oa.errors),s=r.length),dt(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o})||(r=r===null?dt.errors:r.concat(dt.errors),s=r.length),Un(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o})||(r=r===null?Un.errors:r.concat(Un.errors),s=r.length),Qp(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o})||(r=r===null?Qp.errors:r.concat(Qp.errors),s=r.length),Bl(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o})||(r=r===null?Bl.errors:r.concat(Bl.errors),s=r.length),Vl(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o})||(r=r===null?Vl.errors:r.concat(Vl.errors),s=r.length),la(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o})||(r=r===null?la.errors:r.concat(la.errors),s=r.length),t&&typeof t=="object"&&!Array.isArray(t)){if(t.definitions!==void 0){let P=t.definitions;if(P&&typeof P=="object"&&!Array.isArray(P))for(const A in P){let _=P[A],x=o.meta;if(x)if(x(_,{instancePath:e+"/definitions/"+A.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:P,parentDataProperty:A,rootData:a,dynamicAnchors:o}))var l=x.evaluated.props,u=x.evaluated.items;else r=r===null?x.errors:r.concat(x.errors),s=r.length;else if(Bn(_,{instancePath:e+"/definitions/"+A.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:P,parentDataProperty:A,rootData:a,dynamicAnchors:o})){var f=Bn.evaluated.props;l!==!0&&f!==void 0&&(f===!0?l=!0:(l=l||{},Object.assign(l,f)));var h=Bn.evaluated.items;u!==!0&&h!==void 0&&(u=h===!0||(u>h?u:h))}else r=r===null?Bn.errors:r.concat(Bn.errors),s=r.length}else{const A={instancePath:e+"/definitions",schemaPath:"#/properties/definitions/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[A]:r.push(A),s++}}if(t.dependencies!==void 0){let P=t.dependencies;if(P&&typeof P=="object"&&!Array.isArray(P))for(const A in P){let _=P[A];const x=s;let E=!1;const j=s;let F=o.meta;if(F)if(F(_,{instancePath:e+"/dependencies/"+A.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:P,parentDataProperty:A,rootData:a,dynamicAnchors:o}))var d=F.evaluated.props,m=F.evaluated.items;else r=r===null?F.errors:r.concat(F.errors),s=r.length;else if(Bn(_,{instancePath:e+"/dependencies/"+A.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:P,parentDataProperty:A,rootData:a,dynamicAnchors:o})){var g=Bn.evaluated.props;d!==!0&&g!==void 0&&(g===!0?d=!0:(d=d||{},Object.assign(d,g)));var b=Bn.evaluated.items;m!==!0&&b!==void 0&&(m=b===!0||(m>b?m:b))}else r=r===null?Bn.errors:r.concat(Bn.errors),s=r.length;var v=j===s;E=E||v;const I=s;if(Gc(_,{instancePath:e+"/dependencies/"+A.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:P,parentDataProperty:A,rootData:a,dynamicAnchors:o})||(r=r===null?Gc.errors:r.concat(Gc.errors),s=r.length),v=I===s,E=E||v,v&&m!==!0&&(m=!0),E)s=x,r!==null&&(x?r.length=x:r=null);else{const L={instancePath:e+"/dependencies/"+A.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/dependencies/additionalProperties/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};r===null?r=[L]:r.push(L),s++}}else{const A={instancePath:e+"/dependencies",schemaPath:"#/properties/dependencies/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[A]:r.push(A),s++}}t.$recursiveAnchor!==void 0&&(Kc(t.$recursiveAnchor,{instancePath:e+"/$recursiveAnchor",parentData:t,parentDataProperty:"$recursiveAnchor",rootData:a,dynamicAnchors:o})||(r=r===null?Kc.errors:r.concat(Kc.errors),s=r.length)),t.$recursiveRef!==void 0&&(Yc(t.$recursiveRef,{instancePath:e+"/$recursiveRef",parentData:t,parentDataProperty:"$recursiveRef",rootData:a,dynamicAnchors:o})||(r=r===null?Yc.errors:r.concat(Yc.errors),s=r.length))}return Bn.errors=r,s===0}Ac.evaluated={dynamicProps:!1,dynamicItems:!1},li.evaluated={dynamicProps:!1,dynamicItems:!1},zs.evaluated={dynamicProps:!1,dynamicItems:!1},Sc.evaluated={items:!0,dynamicProps:!1,dynamicItems:!1},Qp.evaluated={props:{type:!0,const:!0,enum:!0,multipleOf:!0,maximum:!0,exclusiveMaximum:!0,minimum:!0,exclusiveMinimum:!0,maxLength:!0,minLength:!0,pattern:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxContains:!0,minContains:!0,maxProperties:!0,minProperties:!0,required:!0,dependentRequired:!0},dynamicProps:!1,dynamicItems:!1},Bn.evaluated={props:{definitions:!0,dependencies:!0,$recursiveAnchor:!0,$recursiveRef:!0,contentEncoding:!0,contentMediaType:!0,contentSchema:!0,format:!0,title:!0,description:!0,default:!0,deprecated:!0,readOnly:!0,writeOnly:!0,examples:!0,type:!0,const:!0,enum:!0,multipleOf:!0,maximum:!0,exclusiveMaximum:!0,minimum:!0,exclusiveMinimum:!0,maxLength:!0,minLength:!0,pattern:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxContains:!0,minContains:!0,maxProperties:!0,minProperties:!0,required:!0,dependentRequired:!0,unevaluatedItems:!0,unevaluatedProperties:!0,prefixItems:!0,items:!0,contains:!0,additionalProperties:!0,properties:!0,patternProperties:!0,dependentSchemas:!0,propertyNames:!0,if:!0,then:!0,else:!0,allOf:!0,anyOf:!0,oneOf:!0,not:!0,$id:!0,$schema:!0,$ref:!0,$anchor:!0,$dynamicRef:!0,$dynamicAnchor:!0,$vocabulary:!0,$comment:!0,$defs:!0},dynamicProps:!1,dynamicItems:!1};const Vu={$comment:"https://spec.openapis.org/arazzo/v1.0.0#step-object'",description:`Describes a single workflow step which MAY be a call to an +API operation (OpenAPI Operation Object or another Workflow Object)`,type:"object",properties:{stepId:{description:"Unique string to represent the step",$dynamicAnchor:"stepId",type:"string"},description:{description:"A description of the step. CommonMark syntax MAY be used for rich text representation",type:"string"},operationId:{description:"The name of an existing, resolvable operation, as defined with a unique operationId and existing within one of the sourceDescriptions",type:"string"},operationPath:{description:"A reference to a Source combined with a JSON Pointer to reference an operation",type:"string"},workflowId:{description:"The workflowId referencing an existing workflow within the Arazzo description",$dynamicRef:"#workflowId"},parameters:{description:"A list of parameters that MUST be passed to an operation or workflow as referenced by operationId, operationPath, or workflowId",type:"array",uniqueItems:!0,items:!0},requestBody:{$ref:"#/$defs/request-body-object"},successCriteria:{description:"A list of assertions to determine the success of the step",type:"array",uniqueItems:!0,minItems:1,items:{$ref:"#/$defs/criterion-object"}},onSuccess:{description:"An array of success action objects that specify what to do upon step success",type:"array",uniqueItems:!0,items:{oneOf:[{$ref:"#/$defs/success-action-object"},{$ref:"#/$defs/reusable-object"}]}},onFailure:{description:"An array of failure action objects that specify what to do upon step failure",type:"array",uniqueItems:!0,items:{oneOf:[{$ref:"#/$defs/failure-action-object"},{$ref:"#/$defs/reusable-object"}]}},outputs:{description:"A map between a friendly name and a dynamic output value defined using a runtime expression",type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{type:"string"}}}},required:["stepId"],oneOf:[{required:["operationId"]},{required:["operationPath"]},{required:["workflowId"]}],allOf:[{if:{required:["operationId"]},then:{properties:{parameters:{items:{oneOf:[{type:"object",properties:{name:{type:"string"},in:{description:"The named location of the parameter",enum:["path","query","header","cookie","body"]},value:{description:"The value to pass in the parameter",type:["string","boolean","object","array","number","null"]}},required:["name","value","in"]},{type:"object",properties:{reference:{type:"string"},value:{description:"The value to pass in the parameter",type:["string","boolean","object","array","number","null"]}},required:["reference"]}]}}}}},{if:{required:["operationPath"]},then:{properties:{parameters:{items:{oneOf:[{type:"object",properties:{name:{type:"string"},in:{description:"The named location of the parameter",enum:["path","query","header","cookie","body"]},value:{description:"The value to pass in the parameter",type:["string","boolean","object","array","number","null"]}},required:["name","value","in"]},{type:"object",properties:{reference:{type:"string"},value:{description:"The value to pass in the parameter",type:["string","boolean","object","array","number","null"]}},required:["reference"]}]}}}}},{if:{required:["workflowId"]},then:{properties:{parameters:{items:{oneOf:[{type:"object",properties:{name:{type:"string"},value:{description:"The value to pass in the parameter",type:["string","boolean","object","array","number","null"]}},required:["name","value"]},{type:"object",properties:{reference:{type:"string"},value:{description:"The value to pass in the parameter",type:["string","boolean","object","array","number","null"]}},required:["reference"]}]}}}}}],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1};function iP(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=iP.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),typeof t!="string"){const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}return o.stepId||(o.stepId=iP),iP.errors=r,s===0}function Ky(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Ky.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),xr(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o}))var l=xr.evaluated.props;if(t&&typeof t=="object"&&!Array.isArray(t)){if(t.target===void 0){const u={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"target"},message:"must have required property 'target'"};r===null?r=[u]:r.push(u),s++}if(t.value===void 0){const u={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"value"},message:"must have required property 'value'"};r===null?r=[u]:r.push(u),s++}if(l!==!0&&((l=l||{}).target=!0,l.value=!0),t.target!==void 0&&typeof t.target!="string"){const u={instancePath:e+"/target",schemaPath:"#/properties/target/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[u]:r.push(u),s++}if(t.value!==void 0&&typeof t.value!="string"){const u={instancePath:e+"/value",schemaPath:"#/properties/value/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[u]:r.push(u),s++}if(l!==!0){for(const u in t)if(!l||!l[u]){const f={instancePath:e,schemaPath:"#/unevaluatedProperties",keyword:"unevaluatedProperties",params:{unevaluatedProperty:u},message:"must NOT have unevaluated properties"};r===null?r=[f]:r.push(f),s++}}}else{const u={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[u]:r.push(u),s++}return Ky.errors=r,s===0}function Yy(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Yy.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),xr(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o}))var l=xr.evaluated.props;if(t&&typeof t=="object"&&!Array.isArray(t)){if(l!==!0&&((l=l||{}).contentType=!0,l.payload=!0,l.replacements=!0),t.contentType!==void 0&&typeof t.contentType!="string"){const u={instancePath:e+"/contentType",schemaPath:"#/properties/contentType/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[u]:r.push(u),s++}if(t.replacements!==void 0){let u=t.replacements;if(Array.isArray(u)){const f=u.length;for(let m=0;m1){e:for(;d--;)for(h=d;h--;)if(Wr(u[d],u[h])){const m={instancePath:e+"/replacements",schemaPath:"#/properties/replacements/uniqueItems",keyword:"uniqueItems",params:{i:d,j:h},message:"must NOT have duplicate items (items ## "+h+" and "+d+" are identical)"};r===null?r=[m]:r.push(m),s++;break e}}}else{const f={instancePath:e+"/replacements",schemaPath:"#/properties/replacements/type",keyword:"type",params:{type:"array"},message:"must be array"};r===null?r=[f]:r.push(f),s++}}if(l!==!0){for(const u in t)if(!l||!l[u]){const f={instancePath:e,schemaPath:"#/unevaluatedProperties",keyword:"unevaluatedProperties",params:{unevaluatedProperty:u},message:"must NOT have unevaluated properties"};r===null?r=[f]:r.push(f),s++}}}else{const u={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[u]:r.push(u),s++}return Yy.errors=r,s===0}iP.evaluated={dynamicProps:!1,dynamicItems:!1},Ky.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},Yy.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};const prt={$comment:"https://spec.openapis.org/arazzo/v1.0.0#criterion-object",description:`An object used to specify the context, conditions, and condition types +that can be used to prove or satisfy assertions specified in Step Object successCriteria, +Success Action Object criteria, and Failure Action Object criteria`,type:"object",properties:{context:{description:"A runtime expression used to set the context for the condition to be applied on",type:"string"},condition:{description:"The condition to apply",type:"string"}},anyOf:[{type:"object",properties:{type:{description:"The type of condition to be applied",enum:["simple","regex","jsonpath","xpath"],default:"simple"}}},{$ref:"#/$defs/criterion-expression-type-object"}],required:["condition"],dependentRequired:{type:["context"]},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},d8={$comment:"https://spec.openapis.org/arazzo/v1.0.0#criterion-expression-type-object",description:"An object used to describe the type and version of an expression used within a Criterion Object",type:"object",properties:{type:{description:"The type of condition to be applied",enum:["jsonpath","xpath"]},version:{description:"A short hand string representing the version of the expression type",type:"string"}},required:["type","version"],allOf:[{if:{required:["type"],properties:{type:{const:"jsonpath"}}},then:{properties:{version:{const:"draft-goessner-dispatch-jsonpath-00"}}}},{if:{required:["type"],properties:{type:{const:"xpath"}}},then:{properties:{version:{enum:["xpath-10","xpath-20","xpath-30"]}}}}],$ref:"#/$defs/specification-extensions"};function qp(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=qp.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),xr(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o}))var l=xr.evaluated.props;const u=s;let f=!0;const h=s;if(t&&typeof t=="object"&&!Array.isArray(t)){if(t.type===void 0){const _={};r===null?r=[_]:r.push(_),s++}else if(t.type!==void 0&&t.type!=="jsonpath"){const _={};r===null?r=[_]:r.push(_),s++}}var d=h===s;if(s=u,r!==null&&(u?r.length=u:r=null),d){const _=s;if(t&&typeof t=="object"&&!Array.isArray(t)&&t.version!==void 0&&t.version!=="draft-goessner-dispatch-jsonpath-00"){const x={instancePath:e+"/version",schemaPath:"#/allOf/0/then/properties/version/const",keyword:"const",params:{allowedValue:"draft-goessner-dispatch-jsonpath-00"},message:"must be equal to constant"};r===null?r=[x]:r.push(x),s++}if(f=d=_===s,f)var m={version:!0,type:!0}}if(!f){const _={instancePath:e,schemaPath:"#/allOf/0/if",keyword:"if",params:{failingKeyword:"then"},message:'must match "then" schema'};r===null?r=[_]:r.push(_),s++}l!==!0&&m!==void 0&&(m===!0?l=!0:(l=l||{},Object.assign(l,m)));const g=s;let b=!0;const v=s;if(t&&typeof t=="object"&&!Array.isArray(t)){if(t.type===void 0){const _={};r===null?r=[_]:r.push(_),s++}else if(t.type!==void 0&&t.type!=="xpath"){const _={};r===null?r=[_]:r.push(_),s++}}var P=v===s;if(s=g,r!==null&&(g?r.length=g:r=null),P){const _=s;if(t&&typeof t=="object"&&!Array.isArray(t)&&t.version!==void 0){let x=t.version;if(x!=="xpath-10"&&x!=="xpath-20"&&x!=="xpath-30"){const E={instancePath:e+"/version",schemaPath:"#/allOf/1/then/properties/version/enum",keyword:"enum",params:{allowedValues:d8.allOf[1].then.properties.version.enum},message:"must be equal to one of the allowed values"};r===null?r=[E]:r.push(E),s++}}if(b=P=_===s,b)var A={version:!0,type:!0}}if(!b){const _={instancePath:e,schemaPath:"#/allOf/1/if",keyword:"if",params:{failingKeyword:"then"},message:'must match "then" schema'};r===null?r=[_]:r.push(_),s++}if(l!==!0&&A!==void 0&&(A===!0?l=!0:(l=l||{},Object.assign(l,A))),t&&typeof t=="object"&&!Array.isArray(t)){if(t.type===void 0){const _={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};r===null?r=[_]:r.push(_),s++}if(t.version===void 0){const _={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"version"},message:"must have required property 'version'"};r===null?r=[_]:r.push(_),s++}if(l!==!0&&((l=l||{}).type=!0,l.version=!0),t.type!==void 0){let _=t.type;if(_!=="jsonpath"&&_!=="xpath"){const x={instancePath:e+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:d8.properties.type.enum},message:"must be equal to one of the allowed values"};r===null?r=[x]:r.push(x),s++}}if(t.version!==void 0&&typeof t.version!="string"){const _={instancePath:e+"/version",schemaPath:"#/properties/version/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[_]:r.push(_),s++}}else{const _={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[_]:r.push(_),s++}return qp.errors=r,c.props=l,s===0}function mo(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=mo.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),xr(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o}))var l=xr.evaluated.props;const u=s;let f=!1;const h=s;if(t&&typeof t=="object"&&!Array.isArray(t)){if(t.type!==void 0){let b=t.type;if(b!=="simple"&&b!=="regex"&&b!=="jsonpath"&&b!=="xpath"){const v={instancePath:e+"/type",schemaPath:"#/anyOf/0/properties/type/enum",keyword:"enum",params:{allowedValues:prt.anyOf[0].properties.type.enum},message:"must be equal to one of the allowed values"};r===null?r=[v]:r.push(v),s++}}}else{const b={instancePath:e,schemaPath:"#/anyOf/0/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[b]:r.push(b),s++}var d=h===s;f=f||d,d&&l!==!0&&((l=l||{}).type=!0);const m=s;if(qp(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o}))var g=qp.evaluated.props;else r=r===null?qp.errors:r.concat(qp.errors),s=r.length;if(d=m===s,f=f||d,d&&l!==!0&&g!==void 0&&(g===!0?l=!0:(l=l||{},Object.assign(l,g))),f)s=u,r!==null&&(u?r.length=u:r=null);else{const b={instancePath:e,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};r===null?r=[b]:r.push(b),s++}if(t&&typeof t=="object"&&!Array.isArray(t)){if(t.condition===void 0){const b={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"condition"},message:"must have required property 'condition'"};r===null?r=[b]:r.push(b),s++}if(l!==!0&&((l=l||{}).context=!0,l.condition=!0),t.context!==void 0&&typeof t.context!="string"){const b={instancePath:e+"/context",schemaPath:"#/properties/context/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[b]:r.push(b),s++}if(t.condition!==void 0&&typeof t.condition!="string"){const b={instancePath:e+"/condition",schemaPath:"#/properties/condition/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[b]:r.push(b),s++}if(t.type!==void 0&&t.context===void 0){const b={instancePath:e,schemaPath:"#/dependentRequired",keyword:"dependentRequired",params:{property:"type",missingProperty:"context",depsCount:1,deps:"context"},message:"must have property context when property type is present"};r===null?r=[b]:r.push(b),s++}if(l!==!0){for(const b in t)if(!l||!l[b]){const v={instancePath:e,schemaPath:"#/unevaluatedProperties",keyword:"unevaluatedProperties",params:{unevaluatedProperty:b},message:"must NOT have unevaluated properties"};r===null?r=[v]:r.push(v),s++}}}else{const b={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[b]:r.push(b),s++}return mo.errors=r,s===0}qp.evaluated={dynamicProps:!0,dynamicItems:!1},mo.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};const gI={$comment:"https://spec.openapis.org/arazzo/v1.0.0#success-action-object",description:"A single success action which describes an action to take upon success of a workflow step",type:"object",properties:{name:{description:"The name of the success action",type:"string"},type:{description:"The type of action to take",enum:["end","goto"]},workflowId:{description:"The workflowId referencing an existing workflow within the Arazzo description to transfer to upon success of the step",$dynamicRef:"#workflowId"},stepId:{description:"The stepId to transfer to upon success of the step",$dynamicRef:"#stepId"},criteria:{description:"A list of assertions to determine if this action SHALL be executed",type:"array",uniqueItems:!0,minItems:1,items:{$ref:"#/$defs/criterion-object"}}},allOf:[{if:{properties:{type:{const:"goto"}}},then:{oneOf:[{required:["workflowId"]},{required:["stepId"]}]}}],dependentSchemas:{workflowId:{properties:{type:{enum:["goto"]}}},stepId:{properties:{type:{enum:["goto"]}}}},required:["name","type"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1};function Pn(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Pn.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),xr(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o}))var l=xr.evaluated.props;const u=s;let f=!0;const h=s;if(t&&typeof t=="object"&&!Array.isArray(t)&&t.type!==void 0&&t.type!=="goto"){const j={};r===null?r=[j]:r.push(j),s++}var d=h===s;if(s=u,r!==null&&(u?r.length=u:r=null),d){const j=s,F=s;let I=!1,L=null;const V=s;if(t&&typeof t=="object"&&!Array.isArray(t)&&t.workflowId===void 0){const S={instancePath:e,schemaPath:"#/allOf/0/then/oneOf/0/required",keyword:"required",params:{missingProperty:"workflowId"},message:"must have required property 'workflowId'"};r===null?r=[S]:r.push(S),s++}V===s&&(I=!0,L=0);const q=s;if(t&&typeof t=="object"&&!Array.isArray(t)&&t.stepId===void 0){const S={instancePath:e,schemaPath:"#/allOf/0/then/oneOf/1/required",keyword:"required",params:{missingProperty:"stepId"},message:"must have required property 'stepId'"};r===null?r=[S]:r.push(S),s++}var m;if((m=q===s)&&I?(I=!1,L=[L,1]):m&&(I=!0,L=1),I)s=F,r!==null&&(F?r.length=F:r=null);else{const S={instancePath:e,schemaPath:"#/allOf/0/then/oneOf",keyword:"oneOf",params:{passingSchemas:L},message:"must match exactly one schema in oneOf"};r===null?r=[S]:r.push(S),s++}f=d=j===s}if(!f){const j={instancePath:e,schemaPath:"#/allOf/0/if",keyword:"if",params:{failingKeyword:"then"},message:'must match "then" schema'};r===null?r=[j]:r.push(j),s++}if(l!==!0&&((l=l||{}).type=!0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.name===void 0){const j={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"name"},message:"must have required property 'name'"};r===null?r=[j]:r.push(j),s++}if(t.type===void 0){const j={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};r===null?r=[j]:r.push(j),s++}if(l!==!0&&((l=l||{}).name=!0,l.type=!0,l.workflowId=!0,l.stepId=!0,l.criteria=!0),t.name!==void 0&&typeof t.name!="string"){const j={instancePath:e+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[j]:r.push(j),s++}if(t.type!==void 0){let j=t.type;if(j!=="end"&&j!=="goto"){const F={instancePath:e+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:gI.properties.type.enum},message:"must be equal to one of the allowed values"};r===null?r=[F]:r.push(F),s++}}if(t.workflowId!==void 0){let j=t.workflowId,F=o.workflowId;if(F)if(F(j,{instancePath:e+"/workflowId",parentData:t,parentDataProperty:"workflowId",rootData:a,dynamicAnchors:o}))var g=F.evaluated.props,b=F.evaluated.items;else r=r===null?F.errors:r.concat(F.errors),s=r.length;else if(Pn(j,{instancePath:e+"/workflowId",parentData:t,parentDataProperty:"workflowId",rootData:a,dynamicAnchors:o})){var v=Pn.evaluated.props;g!==!0&&v!==void 0&&(v===!0?g=!0:(g=g||{},Object.assign(g,v)));var P=Pn.evaluated.items;b!==!0&&P!==void 0&&(b=P===!0||(b>P?b:P))}else r=r===null?Pn.errors:r.concat(Pn.errors),s=r.length}if(t.stepId!==void 0){let j=t.stepId,F=o.stepId;if(F)if(F(j,{instancePath:e+"/stepId",parentData:t,parentDataProperty:"stepId",rootData:a,dynamicAnchors:o}))var A=F.evaluated.props,_=F.evaluated.items;else r=r===null?F.errors:r.concat(F.errors),s=r.length;else if(Pn(j,{instancePath:e+"/stepId",parentData:t,parentDataProperty:"stepId",rootData:a,dynamicAnchors:o})){var x=Pn.evaluated.props;A!==!0&&x!==void 0&&(x===!0?A=!0:(A=A||{},Object.assign(A,x)));var E=Pn.evaluated.items;_!==!0&&E!==void 0&&(_=E===!0||(_>E?_:E))}else r=r===null?Pn.errors:r.concat(Pn.errors),s=r.length}if(t.criteria!==void 0){let j=t.criteria;if(Array.isArray(j)){if(j.length<1){const V={instancePath:e+"/criteria",schemaPath:"#/properties/criteria/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items"};r===null?r=[V]:r.push(V),s++}const F=j.length;for(let V=0;V1){e:for(;L--;)for(I=L;I--;)if(Wr(j[L],j[I])){const V={instancePath:e+"/criteria",schemaPath:"#/properties/criteria/uniqueItems",keyword:"uniqueItems",params:{i:L,j:I},message:"must NOT have duplicate items (items ## "+I+" and "+L+" are identical)"};r===null?r=[V]:r.push(V),s++;break e}}}else{const F={instancePath:e+"/criteria",schemaPath:"#/properties/criteria/type",keyword:"type",params:{type:"array"},message:"must be array"};r===null?r=[F]:r.push(F),s++}}if(t.workflowId!==void 0){const j=s;if(t&&typeof t=="object"&&!Array.isArray(t)&&t.type!==void 0&&t.type!=="goto"){const F={instancePath:e+"/type",schemaPath:"#/dependentSchemas/workflowId/properties/type/enum",keyword:"enum",params:{allowedValues:gI.dependentSchemas.workflowId.properties.type.enum},message:"must be equal to one of the allowed values"};r===null?r=[F]:r.push(F),s++}j===s&&l!==!0&&((l=l||{}).type=!0)}if(t.stepId!==void 0){const j=s;if(t&&typeof t=="object"&&!Array.isArray(t)&&t.type!==void 0&&t.type!=="goto"){const F={instancePath:e+"/type",schemaPath:"#/dependentSchemas/stepId/properties/type/enum",keyword:"enum",params:{allowedValues:gI.dependentSchemas.stepId.properties.type.enum},message:"must be equal to one of the allowed values"};r===null?r=[F]:r.push(F),s++}j===s&&l!==!0&&((l=l||{}).type=!0)}if(l!==!0){for(const j in t)if(!l||!l[j]){const F={instancePath:e,schemaPath:"#/unevaluatedProperties",keyword:"unevaluatedProperties",params:{unevaluatedProperty:j},message:"must NOT have unevaluated properties"};r===null?r=[F]:r.push(F),s++}}}else{const j={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[j]:r.push(j),s++}return Pn.errors=r,s===0}Pn.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};const hrt={$comment:"https://spec.openapis.org/arazzo/v1.0.0#reusable-object",description:"A simple object to allow referencing of objects contained within the Components Object",type:"object",properties:{reference:{description:"A runtime expression used to reference the desired object",type:"string"},value:{description:"Sets a value of the referenced parameter",type:["string","boolean","object","array","number","null"]}},required:["reference"],unevaluatedProperties:!1};function ui(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=ui.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.reference===void 0){const l={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"reference"},message:"must have required property 'reference'"};r===null?r=[l]:r.push(l),s++}if(t.reference!==void 0&&typeof t.reference!="string"){const l={instancePath:e+"/reference",schemaPath:"#/properties/reference/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[l]:r.push(l),s++}if(t.value!==void 0){let l=t.value;if(typeof l!="object"&&typeof l!="string"&&typeof l!="boolean"&&typeof l!="number"){const u={instancePath:e+"/value",schemaPath:"#/properties/value/type",keyword:"type",params:{type:hrt.properties.value.type},message:"must be string,boolean,object,array,number,null"};r===null?r=[u]:r.push(u),s++}}for(const l in t)if(l!=="reference"&&l!=="value"){const u={instancePath:e,schemaPath:"#/unevaluatedProperties",keyword:"unevaluatedProperties",params:{unevaluatedProperty:l},message:"must NOT have unevaluated properties"};r===null?r=[u]:r.push(u),s++}}else{const l={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[l]:r.push(l),s++}return ui.errors=r,s===0}ui.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};const vI={$comment:"https://spec.openapis.org/arazzo/v1.0.0#failure-action-object",description:"A single failure action which describes an action to take upon failure of a workflow step",type:"object",properties:{name:{description:"The name of the failure action",type:"string"},type:{description:"The type of action to take",enum:["end","goto","retry"]},workflowId:{description:"The workflowId referencing an existing workflow within the Arazzo description to transfer to upon failure of the step",$dynamicRef:"#workflowId"},stepId:{description:"The stepId to transfer to upon failure of the step",$dynamicRef:"#stepId"},retryAfter:{description:"A non-negative decimal indicating the seconds to delay after the step failure before another attempt SHALL be made",type:"number",minimum:0},retryLimit:{description:"A non-negative integer indicating how many attempts to retry the step MAY be attempted before failing the overall step",type:"integer",minimum:0},criteria:{description:"A list of assertions to determine if this action SHALL be executed",type:"array",uniqueItems:!0,items:{$ref:"#/$defs/criterion-object"}}},allOf:[{if:{properties:{type:{enum:["goto"]}}},then:{oneOf:[{required:["workflowId"]},{required:["stepId"]}]}},{if:{properties:{type:{const:"retry"}}},then:{required:["retryAfter"]}}],dependentSchemas:{workflowId:{properties:{type:{enum:["goto","retry"]}}},stepId:{properties:{type:{enum:["goto","retry"]}}}},required:["name","type"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1};function bn(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=bn.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),xr(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o}))var l=xr.evaluated.props;const u=s;let f=!0;const h=s;if(t&&typeof t=="object"&&!Array.isArray(t)&&t.type!==void 0&&t.type!=="goto"){const V={};r===null?r=[V]:r.push(V),s++}var d=h===s;if(s=u,r!==null&&(u?r.length=u:r=null),d){const V=s,q=s;let S=!1,D=null;const R=s;if(t&&typeof t=="object"&&!Array.isArray(t)&&t.workflowId===void 0){const H={instancePath:e,schemaPath:"#/allOf/0/then/oneOf/0/required",keyword:"required",params:{missingProperty:"workflowId"},message:"must have required property 'workflowId'"};r===null?r=[H]:r.push(H),s++}R===s&&(S=!0,D=0);const C=s;if(t&&typeof t=="object"&&!Array.isArray(t)&&t.stepId===void 0){const H={instancePath:e,schemaPath:"#/allOf/0/then/oneOf/1/required",keyword:"required",params:{missingProperty:"stepId"},message:"must have required property 'stepId'"};r===null?r=[H]:r.push(H),s++}var m;if((m=C===s)&&S?(S=!1,D=[D,1]):m&&(S=!0,D=1),S)s=q,r!==null&&(q?r.length=q:r=null);else{const H={instancePath:e,schemaPath:"#/allOf/0/then/oneOf",keyword:"oneOf",params:{passingSchemas:D},message:"must match exactly one schema in oneOf"};r===null?r=[H]:r.push(H),s++}f=d=V===s}if(!f){const V={instancePath:e,schemaPath:"#/allOf/0/if",keyword:"if",params:{failingKeyword:"then"},message:'must match "then" schema'};r===null?r=[V]:r.push(V),s++}l!==!0&&((l=l||{}).type=!0);const g=s;let b=!0;const v=s;if(t&&typeof t=="object"&&!Array.isArray(t)&&t.type!==void 0&&t.type!=="retry"){const V={};r===null?r=[V]:r.push(V),s++}var P=v===s;if(s=g,r!==null&&(g?r.length=g:r=null),P){const V=s;if(t&&typeof t=="object"&&!Array.isArray(t)&&t.retryAfter===void 0){const q={instancePath:e,schemaPath:"#/allOf/1/then/required",keyword:"required",params:{missingProperty:"retryAfter"},message:"must have required property 'retryAfter'"};r===null?r=[q]:r.push(q),s++}b=P=V===s}if(!b){const V={instancePath:e,schemaPath:"#/allOf/1/if",keyword:"if",params:{failingKeyword:"then"},message:'must match "then" schema'};r===null?r=[V]:r.push(V),s++}if(l!==!0&&((l=l||{}).type=!0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.name===void 0){const V={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"name"},message:"must have required property 'name'"};r===null?r=[V]:r.push(V),s++}if(t.type===void 0){const V={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};r===null?r=[V]:r.push(V),s++}if(l!==!0&&((l=l||{}).name=!0,l.type=!0,l.workflowId=!0,l.stepId=!0,l.retryAfter=!0,l.retryLimit=!0,l.criteria=!0),t.name!==void 0&&typeof t.name!="string"){const V={instancePath:e+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[V]:r.push(V),s++}if(t.type!==void 0){let V=t.type;if(V!=="end"&&V!=="goto"&&V!=="retry"){const q={instancePath:e+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:vI.properties.type.enum},message:"must be equal to one of the allowed values"};r===null?r=[q]:r.push(q),s++}}if(t.workflowId!==void 0){let V=t.workflowId,q=o.workflowId;if(q)if(q(V,{instancePath:e+"/workflowId",parentData:t,parentDataProperty:"workflowId",rootData:a,dynamicAnchors:o}))var A=q.evaluated.props,_=q.evaluated.items;else r=r===null?q.errors:r.concat(q.errors),s=r.length;else if(bn(V,{instancePath:e+"/workflowId",parentData:t,parentDataProperty:"workflowId",rootData:a,dynamicAnchors:o})){var x=bn.evaluated.props;A!==!0&&x!==void 0&&(x===!0?A=!0:(A=A||{},Object.assign(A,x)));var E=bn.evaluated.items;_!==!0&&E!==void 0&&(_=E===!0||(_>E?_:E))}else r=r===null?bn.errors:r.concat(bn.errors),s=r.length}if(t.stepId!==void 0){let V=t.stepId,q=o.stepId;if(q)if(q(V,{instancePath:e+"/stepId",parentData:t,parentDataProperty:"stepId",rootData:a,dynamicAnchors:o}))var j=q.evaluated.props,F=q.evaluated.items;else r=r===null?q.errors:r.concat(q.errors),s=r.length;else if(bn(V,{instancePath:e+"/stepId",parentData:t,parentDataProperty:"stepId",rootData:a,dynamicAnchors:o})){var I=bn.evaluated.props;j!==!0&&I!==void 0&&(I===!0?j=!0:(j=j||{},Object.assign(j,I)));var L=bn.evaluated.items;F!==!0&&L!==void 0&&(F=L===!0||(F>L?F:L))}else r=r===null?bn.errors:r.concat(bn.errors),s=r.length}if(t.retryAfter!==void 0){let V=t.retryAfter;if(typeof V=="number"){if(V<0||isNaN(V)){const q={instancePath:e+"/retryAfter",schemaPath:"#/properties/retryAfter/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0"};r===null?r=[q]:r.push(q),s++}}else{const q={instancePath:e+"/retryAfter",schemaPath:"#/properties/retryAfter/type",keyword:"type",params:{type:"number"},message:"must be number"};r===null?r=[q]:r.push(q),s++}}if(t.retryLimit!==void 0){let V=t.retryLimit;if(typeof V!="number"||V%1||isNaN(V)){const q={instancePath:e+"/retryLimit",schemaPath:"#/properties/retryLimit/type",keyword:"type",params:{type:"integer"},message:"must be integer"};r===null?r=[q]:r.push(q),s++}if(typeof V=="number"&&(V<0||isNaN(V))){const q={instancePath:e+"/retryLimit",schemaPath:"#/properties/retryLimit/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0"};r===null?r=[q]:r.push(q),s++}}if(t.criteria!==void 0){let V=t.criteria;if(Array.isArray(V)){const q=V.length;for(let R=0;R1){e:for(;D--;)for(S=D;S--;)if(Wr(V[D],V[S])){const R={instancePath:e+"/criteria",schemaPath:"#/properties/criteria/uniqueItems",keyword:"uniqueItems",params:{i:D,j:S},message:"must NOT have duplicate items (items ## "+S+" and "+D+" are identical)"};r===null?r=[R]:r.push(R),s++;break e}}}else{const q={instancePath:e+"/criteria",schemaPath:"#/properties/criteria/type",keyword:"type",params:{type:"array"},message:"must be array"};r===null?r=[q]:r.push(q),s++}}if(t.workflowId!==void 0){const V=s;if(t&&typeof t=="object"&&!Array.isArray(t)&&t.type!==void 0){let q=t.type;if(q!=="goto"&&q!=="retry"){const S={instancePath:e+"/type",schemaPath:"#/dependentSchemas/workflowId/properties/type/enum",keyword:"enum",params:{allowedValues:vI.dependentSchemas.workflowId.properties.type.enum},message:"must be equal to one of the allowed values"};r===null?r=[S]:r.push(S),s++}}V===s&&l!==!0&&((l=l||{}).type=!0)}if(t.stepId!==void 0){const V=s;if(t&&typeof t=="object"&&!Array.isArray(t)&&t.type!==void 0){let q=t.type;if(q!=="goto"&&q!=="retry"){const S={instancePath:e+"/type",schemaPath:"#/dependentSchemas/stepId/properties/type/enum",keyword:"enum",params:{allowedValues:vI.dependentSchemas.stepId.properties.type.enum},message:"must be equal to one of the allowed values"};r===null?r=[S]:r.push(S),s++}}V===s&&l!==!0&&((l=l||{}).type=!0)}if(l!==!0){for(const V in t)if(!l||!l[V]){const q={instancePath:e,schemaPath:"#/unevaluatedProperties",keyword:"unevaluatedProperties",params:{unevaluatedProperty:V},message:"must NOT have unevaluated properties"};r===null?r=[q]:r.push(q),s++}}}else{const V={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[V]:r.push(V),s++}return bn.errors=r,s===0}function Vo(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Vo.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),xr(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o}))var l=xr.evaluated.props;const u=s;let f=!1,h=null;const d=s;if(t&&typeof t=="object"&&!Array.isArray(t)&&t.operationId===void 0){const pe={instancePath:e,schemaPath:"#/oneOf/0/required",keyword:"required",params:{missingProperty:"operationId"},message:"must have required property 'operationId'"};r===null?r=[pe]:r.push(pe),s++}(g=d===s)&&(f=!0,h=0);const m=s;if(t&&typeof t=="object"&&!Array.isArray(t)&&t.operationPath===void 0){const pe={instancePath:e,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty:"operationPath"},message:"must have required property 'operationPath'"};r===null?r=[pe]:r.push(pe),s++}if((g=m===s)&&f)f=!1,h=[h,1];else{g&&(f=!0,h=1);const pe=s;if(t&&typeof t=="object"&&!Array.isArray(t)&&t.workflowId===void 0){const De={instancePath:e,schemaPath:"#/oneOf/2/required",keyword:"required",params:{missingProperty:"workflowId"},message:"must have required property 'workflowId'"};r===null?r=[De]:r.push(De),s++}var g;(g=pe===s)&&f?(f=!1,h=[h,2]):g&&(f=!0,h=2)}if(f)s=u,r!==null&&(u?r.length=u:r=null);else{const pe={instancePath:e,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas:h},message:"must match exactly one schema in oneOf"};r===null?r=[pe]:r.push(pe),s++}const b=s;let v=!0;const P=s;if(t&&typeof t=="object"&&!Array.isArray(t)&&t.operationId===void 0){const pe={};r===null?r=[pe]:r.push(pe),s++}var A=P===s;if(s=b,r!==null&&(b?r.length=b:r=null),A){const pe=s;if(t&&typeof t=="object"&&!Array.isArray(t)&&t.parameters!==void 0){let De=t.parameters;if(Array.isArray(De)){const We=De.length;for(let Ce=0;CeT?U:T))}else r=r===null?Vo.errors:r.concat(Vo.errors),s=r.length}if(t.parameters!==void 0){let pe=t.parameters;if(Array.isArray(pe)){let De,We=pe.length;if(We>1){e:for(;We--;)for(De=We;De--;)if(Wr(pe[We],pe[De])){const Ce={instancePath:e+"/parameters",schemaPath:"#/properties/parameters/uniqueItems",keyword:"uniqueItems",params:{i:We,j:De},message:"must NOT have duplicate items (items ## "+De+" and "+We+" are identical)"};r===null?r=[Ce]:r.push(Ce),s++;break e}}}else{const De={instancePath:e+"/parameters",schemaPath:"#/properties/parameters/type",keyword:"type",params:{type:"array"},message:"must be array"};r===null?r=[De]:r.push(De),s++}}if(t.requestBody!==void 0&&(Yy(t.requestBody,{instancePath:e+"/requestBody",parentData:t,parentDataProperty:"requestBody",rootData:a,dynamicAnchors:o})||(r=r===null?Yy.errors:r.concat(Yy.errors),s=r.length)),t.successCriteria!==void 0){let pe=t.successCriteria;if(Array.isArray(pe)){if(pe.length<1){const _e={instancePath:e+"/successCriteria",schemaPath:"#/properties/successCriteria/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items"};r===null?r=[_e]:r.push(_e),s++}const De=pe.length;for(let _e=0;_e1){e:for(;Ce--;)for(We=Ce;We--;)if(Wr(pe[Ce],pe[We])){const _e={instancePath:e+"/successCriteria",schemaPath:"#/properties/successCriteria/uniqueItems",keyword:"uniqueItems",params:{i:Ce,j:We},message:"must NOT have duplicate items (items ## "+We+" and "+Ce+" are identical)"};r===null?r=[_e]:r.push(_e),s++;break e}}}else{const De={instancePath:e+"/successCriteria",schemaPath:"#/properties/successCriteria/type",keyword:"type",params:{type:"array"},message:"must be array"};r===null?r=[De]:r.push(De),s++}}if(t.onSuccess!==void 0){let pe=t.onSuccess;if(Array.isArray(pe)){const De=pe.length;for(let _e=0;_e1){e:for(;Ce--;)for(We=Ce;We--;)if(Wr(pe[Ce],pe[We])){const _e={instancePath:e+"/onSuccess",schemaPath:"#/properties/onSuccess/uniqueItems",keyword:"uniqueItems",params:{i:Ce,j:We},message:"must NOT have duplicate items (items ## "+We+" and "+Ce+" are identical)"};r===null?r=[_e]:r.push(_e),s++;break e}}}else{const De={instancePath:e+"/onSuccess",schemaPath:"#/properties/onSuccess/type",keyword:"type",params:{type:"array"},message:"must be array"};r===null?r=[De]:r.push(De),s++}}if(t.onFailure!==void 0){let pe=t.onFailure;if(Array.isArray(pe)){const De=pe.length;for(let _e=0;_e1){e:for(;Ce--;)for(We=Ce;We--;)if(Wr(pe[Ce],pe[We])){const _e={instancePath:e+"/onFailure",schemaPath:"#/properties/onFailure/uniqueItems",keyword:"uniqueItems",params:{i:Ce,j:We},message:"must NOT have duplicate items (items ## "+We+" and "+Ce+" are identical)"};r===null?r=[_e]:r.push(_e),s++;break e}}}else{const De={instancePath:e+"/onFailure",schemaPath:"#/properties/onFailure/type",keyword:"type",params:{type:"array"},message:"must be array"};r===null?r=[De]:r.push(De),s++}}if(t.outputs!==void 0){let pe=t.outputs;if(pe&&typeof pe=="object"&&!Array.isArray(pe)){var Ae={};for(const De in pe)if(sa.test(De)){if(typeof pe[De]!="string"){const We={instancePath:e+"/outputs/"+De.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/outputs/patternProperties/%5E%5Ba-zA-Z0-9%5C.%5C-_%5D%2B%24/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[We]:r.push(We),s++}Ae[De]=!0}}else{const De={instancePath:e+"/outputs",schemaPath:"#/properties/outputs/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[De]:r.push(De),s++}}if(l!==!0){for(const pe in t)if(!l||!l[pe]){const De={instancePath:e,schemaPath:"#/unevaluatedProperties",keyword:"unevaluatedProperties",params:{unevaluatedProperty:pe},message:"must NOT have unevaluated properties"};r===null?r=[De]:r.push(De),s++}}}else{const pe={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[pe]:r.push(pe),s++}return Vo.errors=r,s===0}bn.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},Vo.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};const m8={$comment:"https://spec.openapis.org/arazzo/v1.0.0#parameter-object",description:"Describes a single step parameter",type:"object",properties:{name:{description:"The name of the parameter",type:"string"},in:{description:"The named location of the parameter",enum:["path","query","header","cookie","body"]},value:{description:"The value to pass in the parameter",type:["string","boolean","object","array","number","null"]}},required:["name","value"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1};function tu(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=tu.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),xr(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o}))var l=xr.evaluated.props;if(t&&typeof t=="object"&&!Array.isArray(t)){if(t.name===void 0){const u={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"name"},message:"must have required property 'name'"};r===null?r=[u]:r.push(u),s++}if(t.value===void 0){const u={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"value"},message:"must have required property 'value'"};r===null?r=[u]:r.push(u),s++}if(l!==!0&&((l=l||{}).name=!0,l.in=!0,l.value=!0),t.name!==void 0&&typeof t.name!="string"){const u={instancePath:e+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[u]:r.push(u),s++}if(t.in!==void 0){let u=t.in;if(u!=="path"&&u!=="query"&&u!=="header"&&u!=="cookie"&&u!=="body"){const f={instancePath:e+"/in",schemaPath:"#/properties/in/enum",keyword:"enum",params:{allowedValues:m8.properties.in.enum},message:"must be equal to one of the allowed values"};r===null?r=[f]:r.push(f),s++}}if(t.value!==void 0){let u=t.value;if(typeof u!="object"&&typeof u!="string"&&typeof u!="boolean"&&typeof u!="number"){const f={instancePath:e+"/value",schemaPath:"#/properties/value/type",keyword:"type",params:{type:m8.properties.value.type},message:"must be string,boolean,object,array,number,null"};r===null?r=[f]:r.push(f),s++}}if(l!==!0){for(const u in t)if(!l||!l[u]){const f={instancePath:e,schemaPath:"#/unevaluatedProperties",keyword:"unevaluatedProperties",params:{unevaluatedProperty:u},message:"must NOT have unevaluated properties"};r===null?r=[f]:r.push(f),s++}}}else{const u={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[u]:r.push(u),s++}return tu.errors=r,s===0}function Jy(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Jy.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),xr(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o}))var l=xr.evaluated.props;if(t&&typeof t=="object"&&!Array.isArray(t)){if(t.workflowId===void 0){const v={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"workflowId"},message:"must have required property 'workflowId'"};r===null?r=[v]:r.push(v),s++}if(t.steps===void 0){const v={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"steps"},message:"must have required property 'steps'"};r===null?r=[v]:r.push(v),s++}if(l!==!0&&((l=l||{}).workflowId=!0,l.summary=!0,l.description=!0,l.inputs=!0,l.dependsOn=!0,l.steps=!0,l.successActions=!0,l.failureActions=!0,l.outputs=!0,l.parameters=!0),t.workflowId!==void 0){if(typeof t.workflowId!="string"){const v={instancePath:e+"/workflowId",schemaPath:"#/properties/workflowId/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[v]:r.push(v),s++}o.workflowId||(o.workflowId=nP)}if(t.summary!==void 0&&typeof t.summary!="string"){const v={instancePath:e+"/summary",schemaPath:"#/properties/summary/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[v]:r.push(v),s++}if(t.description!==void 0&&typeof t.description!="string"){const v={instancePath:e+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[v]:r.push(v),s++}if(t.inputs!==void 0&&(Bn(t.inputs,{instancePath:e+"/inputs",parentData:t,parentDataProperty:"inputs",rootData:a,dynamicAnchors:o})||(r=r===null?Bn.errors:r.concat(Bn.errors),s=r.length)),t.dependsOn!==void 0){let v=t.dependsOn;if(Array.isArray(v)){const P=v.length;for(let x=0;x1){const x={};for(;_--;){let E=v[_];if(typeof E=="string"){if(typeof x[E]=="number"){A=x[E];const j={instancePath:e+"/dependsOn",schemaPath:"#/properties/dependsOn/uniqueItems",keyword:"uniqueItems",params:{i:_,j:A},message:"must NOT have duplicate items (items ## "+A+" and "+_+" are identical)"};r===null?r=[j]:r.push(j),s++;break}x[E]=_}}}}else{const P={instancePath:e+"/dependsOn",schemaPath:"#/properties/dependsOn/type",keyword:"type",params:{type:"array"},message:"must be array"};r===null?r=[P]:r.push(P),s++}}if(t.steps!==void 0){let v=t.steps;if(Array.isArray(v)){if(v.length<1){const x={instancePath:e+"/steps",schemaPath:"#/properties/steps/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items"};r===null?r=[x]:r.push(x),s++}const P=v.length;for(let x=0;x1){e:for(;_--;)for(A=_;A--;)if(Wr(v[_],v[A])){const x={instancePath:e+"/steps",schemaPath:"#/properties/steps/uniqueItems",keyword:"uniqueItems",params:{i:_,j:A},message:"must NOT have duplicate items (items ## "+A+" and "+_+" are identical)"};r===null?r=[x]:r.push(x),s++;break e}}}else{const P={instancePath:e+"/steps",schemaPath:"#/properties/steps/type",keyword:"type",params:{type:"array"},message:"must be array"};r===null?r=[P]:r.push(P),s++}}if(t.successActions!==void 0){let v=t.successActions;if(Array.isArray(v)){const P=v.length;for(let x=0;x1){e:for(;_--;)for(A=_;A--;)if(Wr(v[_],v[A])){const x={instancePath:e+"/successActions",schemaPath:"#/properties/successActions/uniqueItems",keyword:"uniqueItems",params:{i:_,j:A},message:"must NOT have duplicate items (items ## "+A+" and "+_+" are identical)"};r===null?r=[x]:r.push(x),s++;break e}}}else{const P={instancePath:e+"/successActions",schemaPath:"#/properties/successActions/type",keyword:"type",params:{type:"array"},message:"must be array"};r===null?r=[P]:r.push(P),s++}}if(t.failureActions!==void 0){let v=t.failureActions;if(Array.isArray(v)){const P=v.length;for(let x=0;x1){e:for(;_--;)for(A=_;A--;)if(Wr(v[_],v[A])){const x={instancePath:e+"/failureActions",schemaPath:"#/properties/failureActions/uniqueItems",keyword:"uniqueItems",params:{i:_,j:A},message:"must NOT have duplicate items (items ## "+A+" and "+_+" are identical)"};r===null?r=[x]:r.push(x),s++;break e}}}else{const P={instancePath:e+"/failureActions",schemaPath:"#/properties/failureActions/type",keyword:"type",params:{type:"array"},message:"must be array"};r===null?r=[P]:r.push(P),s++}}if(t.outputs!==void 0){let v=t.outputs;if(v&&typeof v=="object"&&!Array.isArray(v)){var m={};for(const P in v)if(sa.test(P)){if(typeof v[P]!="string"){const A={instancePath:e+"/outputs/"+P.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/outputs/patternProperties/%5E%5Ba-zA-Z0-9%5C.%5C-_%5D%2B%24/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[A]:r.push(A),s++}m[P]=!0}}else{const P={instancePath:e+"/outputs",schemaPath:"#/properties/outputs/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[P]:r.push(P),s++}}if(t.parameters!==void 0){let v=t.parameters;if(Array.isArray(v)){const P=v.length;for(let x=0;x1){e:for(;_--;)for(A=_;A--;)if(Wr(v[_],v[A])){const x={instancePath:e+"/parameters",schemaPath:"#/properties/parameters/uniqueItems",keyword:"uniqueItems",params:{i:_,j:A},message:"must NOT have duplicate items (items ## "+A+" and "+_+" are identical)"};r===null?r=[x]:r.push(x),s++;break e}}}else{const P={instancePath:e+"/parameters",schemaPath:"#/properties/parameters/type",keyword:"type",params:{type:"array"},message:"must be array"};r===null?r=[P]:r.push(P),s++}}if(l!==!0){for(const v in t)if(!l||!l[v]){const P={instancePath:e,schemaPath:"#/unevaluatedProperties",keyword:"unevaluatedProperties",params:{unevaluatedProperty:v},message:"must NOT have unevaluated properties"};r===null?r=[P]:r.push(P),s++}}}else{const v={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[v]:r.push(v),s++}return Jy.errors=r,s===0}function Qy(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=Qy.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),xr(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o}))var l=xr.evaluated.props;if(t&&typeof t=="object"&&!Array.isArray(t)){if(l!==!0&&((l=l||{}).inputs=!0,l.parameters=!0,l.successActions=!0,l.failureActions=!0),t.inputs!==void 0){let m=t.inputs;if(m&&typeof m=="object"&&!Array.isArray(m)){var u={};for(const g in m)sa.test(g)&&(Bn(m[g],{instancePath:e+"/inputs/"+g.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:m,parentDataProperty:g,rootData:a,dynamicAnchors:o})||(r=r===null?Bn.errors:r.concat(Bn.errors),s=r.length),u[g]=!0)}else{const g={instancePath:e+"/inputs",schemaPath:"#/properties/inputs/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[g]:r.push(g),s++}}if(t.parameters!==void 0){let m=t.parameters;if(m&&typeof m=="object"&&!Array.isArray(m)){var f={};for(const g in m)sa.test(g)&&(tu(m[g],{instancePath:e+"/parameters/"+g.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:m,parentDataProperty:g,rootData:a,dynamicAnchors:o})||(r=r===null?tu.errors:r.concat(tu.errors),s=r.length),f[g]=!0)}else{const g={instancePath:e+"/parameters",schemaPath:"#/properties/parameters/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[g]:r.push(g),s++}}if(t.successActions!==void 0){let m=t.successActions;if(m&&typeof m=="object"&&!Array.isArray(m)){var h={};for(const g in m)sa.test(g)&&(Pn(m[g],{instancePath:e+"/successActions/"+g.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:m,parentDataProperty:g,rootData:a,dynamicAnchors:o})||(r=r===null?Pn.errors:r.concat(Pn.errors),s=r.length),h[g]=!0)}else{const g={instancePath:e+"/successActions",schemaPath:"#/properties/successActions/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[g]:r.push(g),s++}}if(t.failureActions!==void 0){let m=t.failureActions;if(m&&typeof m=="object"&&!Array.isArray(m)){var d={};for(const g in m)sa.test(g)&&(bn(m[g],{instancePath:e+"/failureActions/"+g.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:m,parentDataProperty:g,rootData:a,dynamicAnchors:o})||(r=r===null?bn.errors:r.concat(bn.errors),s=r.length),d[g]=!0)}else{const g={instancePath:e+"/failureActions",schemaPath:"#/properties/failureActions/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[g]:r.push(g),s++}}if(l!==!0){for(const m in t)if(!l||!l[m]){const g={instancePath:e,schemaPath:"#/unevaluatedProperties",keyword:"unevaluatedProperties",params:{unevaluatedProperty:m},message:"must NOT have unevaluated properties"};r===null?r=[g]:r.push(g),s++}}}else{const m={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[m]:r.push(m),s++}return Qy.errors=r,s===0}tu.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},Jy.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},Qy.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};const drt=new RegExp("^1\\.0\\.\\d+(-.+)?$","u");function CS(t,{instancePath:e="",parentData:n,parentDataProperty:i,rootData:a=t,dynamicAnchors:o={}}={}){let r=null,s=0;const c=CS.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),xr(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:a,dynamicAnchors:o}))var l=xr.evaluated.props;if(t&&typeof t=="object"&&!Array.isArray(t)){if(t.arazzo===void 0){const u={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"arazzo"},message:"must have required property 'arazzo'"};r===null?r=[u]:r.push(u),s++}if(t.info===void 0){const u={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"info"},message:"must have required property 'info'"};r===null?r=[u]:r.push(u),s++}if(t.sourceDescriptions===void 0){const u={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"sourceDescriptions"},message:"must have required property 'sourceDescriptions'"};r===null?r=[u]:r.push(u),s++}if(t.workflows===void 0){const u={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"workflows"},message:"must have required property 'workflows'"};r===null?r=[u]:r.push(u),s++}if(l!==!0&&((l=l||{}).arazzo=!0,l.info=!0,l.sourceDescriptions=!0,l.workflows=!0,l.components=!0),t.arazzo!==void 0){let u=t.arazzo;if(typeof u=="string"){if(!drt.test(u)){const f={instancePath:e+"/arazzo",schemaPath:"#/properties/arazzo/pattern",keyword:"pattern",params:{pattern:"^1\\.0\\.\\d+(-.+)?$"},message:'must match pattern "^1\\.0\\.\\d+(-.+)?$"'};r===null?r=[f]:r.push(f),s++}}else{const f={instancePath:e+"/arazzo",schemaPath:"#/properties/arazzo/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[f]:r.push(f),s++}}if(t.info!==void 0&&(Hy(t.info,{instancePath:e+"/info",parentData:t,parentDataProperty:"info",rootData:a,dynamicAnchors:o})||(r=r===null?Hy.errors:r.concat(Hy.errors),s=r.length)),t.sourceDescriptions!==void 0){let u=t.sourceDescriptions;if(Array.isArray(u)){if(u.length<1){const m={instancePath:e+"/sourceDescriptions",schemaPath:"#/properties/sourceDescriptions/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items"};r===null?r=[m]:r.push(m),s++}const f=u.length;for(let m=0;m1){e:for(;d--;)for(h=d;h--;)if(Wr(u[d],u[h])){const m={instancePath:e+"/sourceDescriptions",schemaPath:"#/properties/sourceDescriptions/uniqueItems",keyword:"uniqueItems",params:{i:d,j:h},message:"must NOT have duplicate items (items ## "+h+" and "+d+" are identical)"};r===null?r=[m]:r.push(m),s++;break e}}}else{const f={instancePath:e+"/sourceDescriptions",schemaPath:"#/properties/sourceDescriptions/type",keyword:"type",params:{type:"array"},message:"must be array"};r===null?r=[f]:r.push(f),s++}}if(t.workflows!==void 0){let u=t.workflows;if(Array.isArray(u)){if(u.length<1){const m={instancePath:e+"/workflows",schemaPath:"#/properties/workflows/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items"};r===null?r=[m]:r.push(m),s++}const f=u.length;for(let m=0;m1){e:for(;d--;)for(h=d;h--;)if(Wr(u[d],u[h])){const m={instancePath:e+"/workflows",schemaPath:"#/properties/workflows/uniqueItems",keyword:"uniqueItems",params:{i:d,j:h},message:"must NOT have duplicate items (items ## "+h+" and "+d+" are identical)"};r===null?r=[m]:r.push(m),s++;break e}}}else{const f={instancePath:e+"/workflows",schemaPath:"#/properties/workflows/type",keyword:"type",params:{type:"array"},message:"must be array"};r===null?r=[f]:r.push(f),s++}}if(t.components!==void 0&&(Qy(t.components,{instancePath:e+"/components",parentData:t,parentDataProperty:"components",rootData:a,dynamicAnchors:o})||(r=r===null?Qy.errors:r.concat(Qy.errors),s=r.length)),l!==!0){for(const u in t)if(!l||!l[u]){const f={instancePath:e,schemaPath:"#/unevaluatedProperties",keyword:"unevaluatedProperties",params:{unevaluatedProperty:u},message:"must NOT have unevaluated properties"};r===null?r=[f]:r.push(f),s++}}}else{const u={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[u]:r.push(u),s++}return CS.errors=r,s===0}CS.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};Object.defineProperty(GN,"__esModule",{value:!0});const Mre=vr,mrt=Tr(),y8=cl,g8=Hr,yrt=(0,Mre.__importDefault)(bre),grt=(0,Mre.__importStar)(Ll);GN.default=(0,mrt.createRulesetFunction)({input:null,options:null},function(e,n,i){const a=i.document.formats;if(a==null)return;const o=a.has(y8.oas2)?"oas2_0":a.has(y8.oas3_1)?"oas3_1":"oas3_0",r=grt[o];r(e);const s=r.errors;return s==null?void 0:s.reduce((c,l)=>Prt(c,e,o,l),[])});function vrt(t){return t.keyword!=="if"}function Prt(t,e,n,i){if(!vrt(i))return t;const a=i.instancePath===""?[]:i.instancePath.slice(1).split("/"),o=a.length===0?null:a[a.length-1];let r;switch(i.keyword){case"additionalProperties":{const s=i.params.additionalProperty;a.push(s),r=`Property "${s}" is not expected to be here`;break}case"enum":{const s=i.params.allowedValues,c=s.map(u=>JSON.stringify(u)).join(", ");let l;if(!(0,g8.isPlainObject)(e))l="";else{const u=(0,g8.resolveInlineRef)(e,`#${i.instancePath}`);if(typeof u!="string")l="";else{const f=brt(u,s);f!==null?l=`. Did you mean "${f}"?`:l=""}}r=`${v8(o,i.message)}: ${c}${l}`;break}case"errorMessage":r=String(i.message);break;default:r=v8(o,i.message)}return t.push({message:r,path:a}),t}function brt(t,e){const n=e.filter(a=>typeof a=="string").map(a=>({value:a,weight:(0,yrt.default)(t,a)})).sort((a,o)=>a.weight>o.weight?1:a.weight(0,Srt.isObject)(i)&&i.in==="formData")&&!_rt.test(n==null?void 0:n.join(",")))return[{message:"Consumes must include urlencoded, multipart, or form-data media type when using formData parameter."}]});var QN={};Object.defineProperty(QN,"__esModule",{value:!0});const xrt=Tr(),Drt=cl;QN.default=(0,xrt.createRulesetFunction)({input:{type:"object"},options:null},function(e,n,i){var a;const o=((a=i.document.formats)===null||a===void 0?void 0:a.has(Drt.oas3))===!0;for(const r of Object.keys(e))if(o&&(r==="2XX"||r==="3XX")||Number(r)>=200&&Number(r)<400)return;return[{message:"Operation must define at least a single 2xx or 3xx response"}]});var ZN={};Object.defineProperty(ZN,"__esModule",{value:!0});const Rre=vr,PI=$o,krt=(0,Rre.__importDefault)(Wx),Ort=Tr(),Ert=cl,aP=(0,Rre.__importDefault)(LR),Irt={2:[{field:"examples",multiple:!0,keyed:!1}],3:[{field:"example",multiple:!1,keyed:!1},{field:"examples",multiple:!0,keyed:!0}]},Crt={2:[],3:[["components","requestBodies"],["paths","*","*","requestBody"]]},Trt={2:[["responses"],["paths","*","*","responses"]],3:[["components","responses"],["paths","*","*","responses"]]},jrt={2:["example","x-example","default"],3:["example","default"]};function Mrt(t){return t.required===void 0||Array.isArray(t.required)}function Nre(t,e){return e.some(n=>n.every((i,a)=>i==="*"||i===t[a]))}function Rrt(t,e){return Nre(t,Crt[e])}function Nrt(t,e){return Nre(t,Trt[e])}function*Lrt(t,e,n,i){for(const{field:a,keyed:o,multiple:r}of t){if(!(a in e))continue;const s=e[a];if(r){if(!(0,PI.isObject)(s))continue;for(const c of Object.keys(s)){const l=s[c];if(i===3&&o&&(!(0,PI.isObject)(l)||"externalValue"in l))continue;const u=[...n,a,c];o&&u.push("value"),yield{value:o&&(0,PI.isObject)(l)?l.value:l,path:u}}return}else return yield{value:s,path:[...n,a]}}}function*Frt(t,e,n){for(const i of t)i in e&&(yield{value:e[i],path:[...n,i]})}const qrt=[...Object.keys(aP.default.keywords),...Object.keys(aP.default.arrayKeywords),...Object.keys(aP.default.propsKeywords)];function zrt(t){(0,aP.default)(t,{allKeys:!0},(e,n,i,a,o)=>{o===void 0||qrt.includes(o)||("id"in e&&delete e.id,"$id"in e&&delete e.id)})}function Urt(t,e,n){(e||n)&&(0,aP.default)(t,{},(i,a,o,r,s,c,l)=>{var u,f;(i.readOnly===!0&&e||i.writeOnly===!0&&n)&&s=="properties"&&c&&Mrt(c)&&(c.required=(u=c.required)===null||u===void 0?void 0:u.filter(h=>h!==l),((f=c.required)===null||f===void 0?void 0:f.length)===0&&delete c.required)})}ZN.default=(0,Ort.createRulesetFunction)({input:{type:"object"},options:{type:"object",properties:{oasVersion:{enum:[2,3]},schemaField:{type:"string"},type:{enum:["media","schema"]}},additionalProperties:!1}},function(e,n,i){const a=i.document.formats,o={schema:n.schemaField==="$"?e:e[n.schemaField]};let r;const s=n.type==="schema"?Frt(jrt[n.oasVersion],e,i.path):Lrt(Irt[n.oasVersion],e,i.path,n.oasVersion);a!=null&&a.has(Ert.oas2)&&"required"in o.schema&&typeof o.schema.required=="boolean"&&(o.schema={...o.schema},delete o.schema.required),o.schema=JSON.parse(JSON.stringify(o.schema)),zrt(o.schema),Urt(o.schema,n.type==="media"&&Rrt(i.path,n.oasVersion),n.type==="media"&&Nrt(i.path,n.oasVersion));for(const c of s){const l=(0,krt.default)(c.value,o,{...i,path:c.path});Array.isArray(l)&&(r===void 0&&(r=[]),r.push(...l))}return r});var XN={};Object.defineProperty(XN,"__esModule",{value:!0});const Brt=Tr(),nf=Hr;XN.default=(0,Brt.createRulesetFunction)({input:{type:"object",additionalProperties:{type:"array",items:{type:"string"}}},options:{type:"object",properties:{oasVersion:{enum:[2,3]}},additionalProperties:!1}},function(e,{oasVersion:n},{document:i,path:a}){const o=Object.keys(e);if(o.length===0||!(0,nf.isPlainObject)(i.data))return;const r=n===2?i.data.securityDefinitions:(0,nf.isPlainObject)(i.data.components)?i.data.components.securitySchemes:null;let s;for(const c of o){if(!(0,nf.isPlainObject)(r)||!(c in r)){const u=a.length==2?"API":"Operation",f=n===2?"securityDefinitions":"components.securitySchemes";s??(s=[]),s.push({message:`${u} "security" values must match a scheme defined in the "${f}" object.`,path:[...a,c]});continue}const l=e[c];for(let u=0;u{const u=Grt(c,r);u===o||Array.isArray(o)&&o.includes(u)||(s??(s=[]),s.push({message:`Enum value ${(0,Wrt.printValue)(a[l])} must be "${String(o)}".`,path:[...i.path,"enum",l]}))}),s});var tL={};Object.defineProperty(tL,"__esModule",{value:!0});const Yrt=Tr(),Lre=$o;function Jrt(t,e){if(e.length===0)return null;let n=t;for(let i=0;it.in!==void 0&&t.in==="path"&&t.name!==void 0,w8=(t,e,n,i)=>Zrt(t)?(t.required!==!0&&n.push(Sg(tnt(t.name),e)),t.name in i?(n.push(Sg(rnt(t.name),e)),!1):!0):!1,Xrt=(t,e,n,i)=>{for(const a of Object.keys(e))if(e[a]&&!n.includes(a)){const o=e[a];i.push(Sg(`Parameter "${a}" must be used in path "${t}".`,o))}},ent=(t,e,n,i,a)=>{for(const o of n)o in e||a.push(Sg(`Operation must define parameter "{${o}}" as expected by path "${t}".`,i))};rL.default=(0,Qrt.createRulesetFunction)({input:{type:"object"},options:null},function(e){const n=[],i={},a=["get","head","post","put","patch","delete","options","trace"];for(const o of Object.keys(e)){const r=e[o];if(!(0,uv.isObject)(r))continue;const s=o.replace(b8,"%");s in i?n.push(Sg(`Paths "${String(i[s])}" and "${o}" must not be equivalent.`,["paths",o])):i[s]=o;const c=[];let l;for(;l=b8.exec(o);){const f=l[0].replace(/[{}?*;]/g,"");c.includes(f)?n.push(Sg(`Path "${o}" must not use parameter "{${f}}" multiple times.`,["paths",o])):c.push(f)}const u={};if(Array.isArray(r.parameters))for(const[f,h]of r.parameters.entries()){if(!(0,uv.isObject)(h))continue;const d=["paths",o,"parameters",f];w8(h,d,n,u)&&(u[h.name]=d)}if((0,uv.isObject)(e[o]))for(const f of Object.keys(r)){const h=r[f];if(!(0,uv.isObject)(h)||f==="parameters"||!a.includes(f))continue;const d={},{parameters:m}=h,g=["paths",o,f];if(Array.isArray(m))for(const[v,P]of m.entries()){if(!(0,uv.isObject)(P))continue;const A=[...g,"parameters",v];w8(P,A,n,d)&&(d[P.name]=A)}const b={...u,...d};Xrt(o,b,c,n),ent(o,b,c,g,n)}}return n});function Sg(t,e){return{message:t,path:e}}const tnt=t=>`Path parameter "${t}" must have "required" property that is set to "true".`,rnt=t=>`Path parameter "${t}" must not be defined multiple times.`;var nL={},qb={};Object.defineProperty(qb,"__esModule",{value:!0});qb.getAllOperations=void 0;const bI=Hr,nnt=["get","head","post","put","patch","delete","options","trace"];function*int(t){if(!(0,bI.isPlainObject)(t))return;const e={path:"",operation:"",value:null};for(const n of Object.keys(t)){const i=t[n];if((0,bI.isPlainObject)(i)){e.path=n;for(const a of Object.keys(i))!(0,bI.isPlainObject)(i[a])||!nnt.includes(a)||(e.operation=a,e.value=i[a],yield e)}}}qb.getAllOperations=int;Object.defineProperty(nL,"__esModule",{value:!0});const ant=Tr(),snt=qb,$8=$o;nL.default=(0,ant.createRulesetFunction)({input:{type:"object"},options:null},function(e){const n=[],i=[];if(Array.isArray(e.tags))for(const o of e.tags)(0,$8.isObject)(o)&&typeof o.name=="string"&&i.push(o.name);const{paths:a}=e;for(const{path:o,operation:r,value:s}of(0,snt.getAllOperations)(a)){if(!(0,$8.isObject)(s))continue;const{tags:c}=s;if(Array.isArray(c))for(const[l,u]of c.entries())i.includes(u)||n.push({message:"Operation tags must be defined in global tags.",path:["paths",o,r,"tags",l]})}return n});var iL={};Object.defineProperty(iL,"__esModule",{value:!0});const ont=na,lnt=Tr(),cnt=$o;iL.default=(0,lnt.createRulesetFunction)({input:{type:"object",properties:{components:{type:"object"}},required:["components"]},options:null},function(e,n,i){const a=[],o=["schemas","responses","parameters","examples","requestBodies","headers","links","callbacks"];for(const r of o){const s=e.components[r];if(!(0,cnt.isObject)(s))continue;const c=(0,ont.unreferencedReusableObject)(s,{reusableObjectsLocation:`#/components/${r}`},i);c!==void 0&&Array.isArray(c)&&a.push(...c)}return a});var aL={};Object.defineProperty(aL,"__esModule",{value:!0});const unt=Tr(),fnt=qb,A8=$o;aL.default=(0,unt.createRulesetFunction)({input:{type:"object"},options:null},function(e){const n=[],i=[];for(const{path:a,operation:o}of(0,fnt.getAllOperations)(e)){const r=e[a];if(!(0,A8.isObject)(r))continue;const s=r[o];if(!(0,A8.isObject)(s)||!("operationId"in s))continue;const{operationId:c}=s;i.includes(c)?n.push({message:"operationId must be unique.",path:["paths",a,o,"operationId"]}):i.push(c)}return n});var sL={};Object.defineProperty(sL,"__esModule",{value:!0});const pnt=Tr(),hnt=$o;sL.default=(0,pnt.createRulesetFunction)({input:{type:"object",properties:{discriminator:{type:"string"}},required:["discriminator"]},options:null},function(e,n,{path:i}){const a=e.discriminator,o=[];return(!(0,hnt.isObject)(e.properties)||!Object.keys(e.properties).some(r=>r===a))&&o.push({message:"The discriminator property must be defined in this schema.",path:[...i,"properties"]}),(!Array.isArray(e.required)||!e.required.some(r=>r===a))&&o.push({message:"The discriminator property must be in the required property list.",path:[...i,"required"]}),o});(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.oasDiscriminator=t.oasOpIdUnique=t.oasUnusedComponent=t.oasTagDefined=t.oasPathParam=t.refSiblings=t.typedEnum=t.oasSecurityDefined=t.oasExample=t.oasOpSuccessResponse=t.oasOpFormDataConsumeCheck=t.oasDocumentSchema=t.oasSchema=t.oasOpParams=void 0;const e=vr,n=(0,e.__importDefault)(HN);Object.defineProperty(t,"oasOpParams",{enumerable:!0,get:function(){return n.default}});const i=(0,e.__importDefault)(Wx);Object.defineProperty(t,"oasSchema",{enumerable:!0,get:function(){return i.default}});const a=(0,e.__importDefault)(GN);Object.defineProperty(t,"oasDocumentSchema",{enumerable:!0,get:function(){return a.default}});const o=(0,e.__importDefault)(JN);Object.defineProperty(t,"oasOpFormDataConsumeCheck",{enumerable:!0,get:function(){return o.default}});const r=(0,e.__importDefault)(QN);Object.defineProperty(t,"oasOpSuccessResponse",{enumerable:!0,get:function(){return r.default}});const s=(0,e.__importDefault)(ZN);Object.defineProperty(t,"oasExample",{enumerable:!0,get:function(){return s.default}});const c=(0,e.__importDefault)(XN);Object.defineProperty(t,"oasSecurityDefined",{enumerable:!0,get:function(){return c.default}});const l=(0,e.__importDefault)(eL);Object.defineProperty(t,"typedEnum",{enumerable:!0,get:function(){return l.default}});const u=(0,e.__importDefault)(tL);Object.defineProperty(t,"refSiblings",{enumerable:!0,get:function(){return u.default}});const f=(0,e.__importDefault)(rL);Object.defineProperty(t,"oasPathParam",{enumerable:!0,get:function(){return f.default}});const h=(0,e.__importDefault)(nL);Object.defineProperty(t,"oasTagDefined",{enumerable:!0,get:function(){return h.default}});const d=(0,e.__importDefault)(iL);Object.defineProperty(t,"oasUnusedComponent",{enumerable:!0,get:function(){return d.default}});const m=(0,e.__importDefault)(aL);Object.defineProperty(t,"oasOpIdUnique",{enumerable:!0,get:function(){return m.default}});const g=(0,e.__importDefault)(sL);Object.defineProperty(t,"oasDiscriminator",{enumerable:!0,get:function(){return g.default}})})(eb);function Sd(t){return t!=null&&typeof t=="object"&&t["@@functional/placeholder"]===!0}function Zy(t){return function e(n){return arguments.length===0||Sd(n)?e:t.apply(this,arguments)}}function Fre(t){return function e(n,i){switch(arguments.length){case 0:return e;case 1:return Sd(n)?e:Zy(function(a){return t(n,a)});default:return Sd(n)&&Sd(i)?e:Sd(n)?Zy(function(a){return t(a,i)}):Sd(i)?Zy(function(a){return t(n,a)}):t(n,i)}}}function S8(t){for(var e=[],n;!(n=t.next()).done;)e.push(n.value);return e}function _8(t,e,n){for(var i=0,a=n.length;i=0;)n=D8[i],TS(n,e)&&!vnt(a,n)&&(a[a.length]=n),i-=1;return a}),E8=Zy(function(e){return e===null?"Null":e===void 0?"Undefined":Object.prototype.toString.call(e).slice(8,-1)});function I8(t,e,n,i){var a=S8(t),o=S8(e);function r(s,c){return oL(s,c,n.slice(),i.slice())}return!_8(function(s,c){return!_8(r,c,s)},o,a)}function oL(t,e,n,i){if(wI(t,e))return!0;var a=E8(t);if(a!==E8(e))return!1;if(typeof t["fantasy-land/equals"]=="function"||typeof e["fantasy-land/equals"]=="function")return typeof t["fantasy-land/equals"]=="function"&&t["fantasy-land/equals"](e)&&typeof e["fantasy-land/equals"]=="function"&&e["fantasy-land/equals"](t);if(typeof t.equals=="function"||typeof e.equals=="function")return typeof t.equals=="function"&&t.equals(e)&&typeof e.equals=="function"&&e.equals(t);switch(a){case"Arguments":case"Array":case"Object":if(typeof t.constructor=="function"&&dnt(t.constructor)==="Promise")return t===e;break;case"Boolean":case"Number":case"String":if(!(typeof t==typeof e&&wI(t.valueOf(),e.valueOf())))return!1;break;case"Date":if(!wI(t.valueOf(),e.valueOf()))return!1;break;case"Error":return t.name===e.name&&t.message===e.message;case"RegExp":if(!(t.source===e.source&&t.global===e.global&&t.ignoreCase===e.ignoreCase&&t.multiline===e.multiline&&t.sticky===e.sticky&&t.unicode===e.unicode))return!1;break}for(var o=n.length-1;o>=0;){if(n[o]===t)return i[o]===e;o-=1}switch(a){case"Map":return t.size!==e.size?!1:I8(t.entries(),e.entries(),n.concat([t]),i.concat([e]));case"Set":return t.size!==e.size?!1:I8(t.values(),e.values(),n.concat([t]),i.concat([e]));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 r=O8(t);if(r.length!==O8(e).length)return!1;var s=n.concat([t]),c=i.concat([e]);for(o=r.length-1;o>=0;){var l=r[o];if(!(TS(l,e)&&oL(e[l],t[l],s,c)))return!1;o-=1}return!0}var Pnt=Fre(function(e,n){return oL(e,n,[],[])}),PT=Fre(function(e,n){for(var i={},a={},o=0,r=e.length;o{var a;const e=t.style??(["query","cookie"].includes(t.in)?"form":"simple"),n=Object.keys(t).filter(o=>/^x-/.test(o));let i=!1;return e==="form"&&["array","object"].includes(((a=t.schema)==null?void 0:a.type)??"")&&(i=t.explode??!0),{...PT(["description","example","examples",...n],t),required:t.required??!1,deprecated:t.deprecated??!1,allowEmptyValue:t.allowEmptyValue??!1,style:e,explode:i,allowReserved:t.allowReserved??!1}},$I=(t,e,n)=>{const i=C8(e.spec);if(!t.parameters)return jl(`Parameter "${i.name}" is missing.`);const a=t.parameters.findIndex(s=>s.name===i.name);if(a===-1)return jl(`Parameter "${i.name}" is missing.`,[...n.path,"parameters"]);const o=C8(t.parameters[a]),r=[...n.path,"parameters",a];if(e.validateSchema)return e.validateSchema(o.schema??{},r);if(i.schema){const s=Hv(o.schema??{},i.schema);if(s.length>0)return jl("Parameter schema is not compatible. "+s.join(" "),[...r,"schema"])}return Pnt(PT(["schema"],i),PT(["schema"],o))?[]:jl(`Parameter object is not compatible with: ${JSON.stringify(e.spec)}.`,r)},bnt=new lR.Resolver({resolvers:{http:{resolve:pS},https:{resolve:pS}},parseResolveResult:t=>{const e=t.targetAuthority.href().replace(/\/$/,""),i=(cZ(e)===".json"?ph.Json:ph.Yaml).parse(t.result);return Promise.resolve({result:i.data})}}),pd=async(t,e,n)=>{if(!e.schemaUri)return[];const i=e.mediaType??jQ,a=t.content?t.content[i]:void 0;if(!a)return jl(`Response media type "${i}" is missing.`,[...n.path,"content"]);const o=a.schema;if(!o)return jl(`Response schema for media type "${i}" is missing.`,[...n.path,"content",i]);const r=await fetch(e.schemaUri).then(c=>c.text()).then(c=>ph.Yaml.parse(c).data).then(c=>bnt.resolve(c,{baseUri:e.schemaUri}).then(l=>l.result)),s=Hv(o,r);return s.length>0?jl("Response schema is not compatible. "+s.join(" "),[...n.path,"content",i]):[]},wnt="http://www.opengis.net/spec/ogcapi-common-1/1.0/conf/oas30",Q$="http://www.opengis.net/spec/ogcapi-features-1/1.0/conf/core",Z$="http://www.opengis.net/spec/ogcapi-features-1/1.0/conf/oas30",X$="http://www.opengis.net/spec/ogcapi-features-1/1.0/conf/geojson",$nt={documentationUrl:"http://www.opengis.net/spec/ogcapi-common-1/1.0/req/oas30",description:'OGC API - Common - Part 1: Core - Requirements Class "OpenAPI 3.0"',formats:[cl.oas3_0],rules:{"/req/oas30/oas-definition-2":{given:"$",message:"The JSON representation SHALL conform to the OpenAPI Specification, version 3.0. {{error}}.",severity:"error",then:[{function:eb.oasDocumentSchema},{field:"paths",function:eb.oasPathParam}]}}},Ant={documentationUrl:"http://www.opengis.net/spec/ogcapi-features-1/1.0/conf/core",description:'OGC API - Features - Part 1: Core - Requirements Class "Core"',formats:[cl.oas3_0],rules:{"/req/core/root-op":{given:"$.paths",message:"The server SHALL support the HTTP GET operation at the path `/`.",severity:"error",then:{field:"/.get",function:na.truthy}},"/req/core/root-success":{given:"$.paths['/'].get.responses",message:"A successful execution of the operation SHALL be reported as a response with a HTTP status code `200`.",severity:"error",then:{field:"200",function:na.truthy}},"/req/core/conformance-op":{given:"$.paths",message:"The server SHALL support the HTTP GET operation at the path `/conformance`.",severity:"error",then:{field:"/conformance.get",function:na.truthy}},"/req/core/conformance-success":{given:"$.paths['/conformance'].get.responses",message:"A successful execution of the operation SHALL be reported as a response with a HTTP status code `200`.",severity:"error",then:{field:"200",function:na.truthy}},"/req/core/fc-md-op":{given:"$.paths",message:"The server SHALL support the HTTP GET operation at the path `/collections`.",severity:"error",then:{field:"/collections.get",function:na.truthy}},"/req/core/fc-md-success":{given:"$.paths['/collections'].get.responses",message:"A successful execution of the operation SHALL be reported as a response with a HTTP status code `200`.",severity:"error",then:{field:"200",function:na.truthy}},"/req/core/sfc-md-op":{given:"$.paths[?(@property.match(/^\\/collections\\/[^/]+$/))]",message:"The server SHALL support the HTTP GET operation at the path `/collections/{collectionId}`.",severity:"error",then:{field:"get",function:na.truthy}},"/req/core/sfc-md-success":{given:"$.paths[?(@property.match(/^\\/collections\\/[^/]+$/))].get.responses",message:"A successful execution of the operation SHALL be reported as a response with a HTTP status code `200`.",severity:"error",then:{field:"200",function:na.truthy}},"/req/core/fc-op":{given:"$.paths[?(@property.match(/^\\/collections\\/[^/]+\\/items$/))]",message:"For every feature collection identified in the feature collections response (path `/collections`), the server SHALL support the HTTP GET operation at the path `/collections/{collectionId}/items`.",severity:"error",then:{field:"get",function:na.truthy}},"/req/core/fc-response":{given:"$.paths[?(@property.match(/^\\/collections\\/[^/]+\\/items$/))].get.responses",message:"A successful execution of the operation SHALL be reported as a response with a HTTP status code `200`.",severity:"error",then:{field:"200",function:na.truthy}},"/req/core/fc-limit-definition":{given:"$.paths[?(@property.match(/^\\/collections\\/[^/]+\\/items$/))].get",message:"The operation SHALL support a parameter `limit`. {{error}}",severity:"error",then:{function:$I,functionOptions:{spec:{name:"limit",in:"query"},validateSchema:(t,e)=>t.type?t.type!=="integer"?jl("Schema type must be integer.",[...e,"schema"]):t.minimum==null||t.maximum===void 0||t.default===void 0?jl('Integer schema must contain explicit values for "minimum", "maximum" and "default".',[...e,"schema"]):[]:jl("Schema is missing.",e)}}},"/req/core/fc-bbox-definition":{given:"$.paths[?(@property.match(/^\\/collections\\/[^/]+\\/items$/))].get",message:"The operation SHALL support a parameter `bbox`. {{error}}",severity:"error",then:{function:$I,functionOptions:{spec:{name:"bbox",in:"query",explode:!1,schema:{type:"array",oneOf:[{minItems:4,maxItems:4},{minItems:6,maxItems:6}],items:{type:"number"}}}}}},"/req/core/fc-time-definition":{given:"$.paths[?(@property.match(/^\\/collections\\/[^/]+\\/items$/))].get",message:"The operation SHALL support a parameter `datetime`. {{error}}",severity:"error",then:{function:$I,functionOptions:{spec:{name:"datetime",in:"query",schema:{type:"string"}}}}},"/req/core/f-op":{given:"$.paths[?(@property.match(/^\\/collections\\/[^/]+\\/items\\/[^/]+$/))]",message:"For every feature in a feature collection (path `/collections/{collectionId}`), the server SHALL support the HTTP GET operation at the path `/collections/{collectionId}/items/{featureId}`.",severity:"error",then:{field:"get",function:na.truthy}},"/req/core/f-response":{given:"$.paths[?(@property.match(/^\\/collections\\/[^/]+\\/items\\/[^/]+$/))].get.responses",message:"A successful execution of the operation SHALL be reported as a response with a HTTP status code `200`.",severity:"error",then:{field:"200",function:na.truthy}}}},Snt={documentationUrl:"http://www.opengis.net/spec/ogcapi-features-1/1.0/req/oas30",description:'OGC API - Features - Part 1: Core - Requirements Class "OpenAPI 3.0"',formats:[cl.oas3_0],rules:{"/req/oas30/oas-definition-2":{given:"$",message:"The JSON representation SHALL conform to the OpenAPI Specification, version 3.0. {{error}}.",severity:"error",then:[{function:eb.oasDocumentSchema},{field:"paths",function:eb.oasPathParam}]}}},_nt={documentationUrl:"http://www.opengis.net/spec/ogcapi-features-1/1.0/req/geojson",description:'OGC API - Features - Part 1: Core - Requirements Class "GeoJSON"',formats:[cl.oas3_0],rules:{"/req/core/root-success":{given:"$.paths['/'].get.responses.200",message:"A successful execution of the operation SHALL be reported as a response with a HTTP status code `200`. {{error}}",severity:"error",then:{function:pd,functionOptions:{schemaUri:"https://schemas.opengis.net/ogcapi/features/part1/1.0/openapi/schemas/landingPage.yaml"}}},"/req/core/conformance-success":{given:"$.paths['/conformance'].get.responses.200",message:"A successful execution of the operation SHALL be reported as a response with a HTTP status code `200`. {{error}}",severity:"error",then:{function:pd,functionOptions:{schemaUri:"https://schemas.opengis.net/ogcapi/features/part1/1.0/openapi/schemas/confClasses.yaml"}}},"/req/core/fc-md-success":{given:"$.paths['/collections'].get.responses.200",message:"A successful execution of the operation SHALL be reported as a response with a HTTP status code `200`. {{error}}",severity:"error",then:{function:pd,functionOptions:{schemaUri:"https://schemas.opengis.net/ogcapi/features/part1/1.0/openapi/schemas/collections.yaml"}}},"/req/core/sfc-md-success":{given:"$.paths[?(@property.match(/^\\/collections\\/[^/]+$/))].get.responses.200",message:"A successful execution of the operation SHALL be reported as a response with a HTTP status code `200`. {{error}}",severity:"error",then:{function:pd,functionOptions:{schemaUri:"https://schemas.opengis.net/ogcapi/features/part1/1.0/openapi/schemas/collection.yaml"}}},"/req/core/fc-response":{given:"$.paths[?(@property.match(/^\\/collections\\/[^/]+\\/items$/))].get.responses.200",message:"A successful execution of the operation SHALL be reported as a response with a HTTP status code `200`. {{error}}",severity:"error",then:{function:pd,functionOptions:{schemaUri:"https://schemas.opengis.net/ogcapi/features/part1/1.0/openapi/schemas/featureCollectionGeoJSON.yaml",mediaType:KU}}},"/req/core/f-response":{given:"$.paths[?(@property.match(/^\\/collections\\/[^/]+\\/items\\/[^/]+$/))].get.responses.200",message:"A successful execution of the operation SHALL be reported as a response with a HTTP status code `200`. {{error}}",severity:"error",then:{function:pd,functionOptions:{schemaUri:"https://schemas.opengis.net/ogcapi/features/part1/1.0/openapi/schemas/featureGeoJSON.yaml",mediaType:KU}}}}},sP={[wnt]:$nt,[Q$]:Ant,[Z$]:Snt,[X$]:_nt},xnt=async t=>{let e;try{e=JSON.parse(t)}catch{return Promise.resolve({content:t})}const n=e.links;if(Array.isArray(n)){const i=n.find(o=>o.rel==="service-desc"&&o.type===cLe),a=n.find(o=>o.rel==="conformance");if(i){const o=await fetch(i.href,{headers:{Accept:i.type}}).then(s=>kJ(s,i.href)),r=[];if(a){const c=(await fetch(a.href,{headers:{Accept:jQ}}).then(l=>AMe(l,a.href))).conformsTo;Array.isArray(c)&&c.forEach(l=>{typeof l=="string"&&sP[l]&&r.push({name:l,linter:Y$(l,sP[l])})})}return{content:o,linters:r}}}return Promise.resolve({content:t})},hd=t=>t.replace("http://www.opengis.net/spec/",""),Dnt={name:"OGC API",slug:"ogc-api",example:JSON.stringify(dYe,void 0,2),linters:[{name:hd(Q$),linter:Y$(hd(Q$),sP[Q$])},{name:hd(Z$),linter:Y$(hd(Z$),sP[Z$])},{name:hd(X$),linter:Y$(hd(X$),sP[X$])}],responseMapper:xnt},bT=[lLe,Dnt],knt=({className:t})=>{const e=bj(),n=Eg();return Lt.jsx("select",{value:n.pathname,onChange:i=>e(i.target.value),className:t,children:bT.map(i=>Lt.jsx("option",{value:`/${i.slug}`,children:i.name},i.slug))})},Ont=({onSubmit:t})=>{const[e,n]=Be.useState("");return Lt.jsx("div",{children:Lt.jsxs("form",{onSubmit:()=>t(e),children:[Lt.jsx("label",{className:"mr-2 font-medium",children:"URI:"}),Lt.jsx("input",{type:"text",className:"w-96",value:e,onChange:i=>n(i.target.value)}),Lt.jsx("button",{type:"submit",className:"ml-2",children:"Check"})]})})},Ent=({spec:t})=>{const[e,n]=Be.useState("");return Lt.jsxs("div",{className:"flex flex-col h-screen",children:[Lt.jsxs("header",{className:"flex justify-between items-center px-4 py-2 bg-slate-700 text-white",children:[Lt.jsx("div",{children:Lt.jsxs("h1",{className:"text-lg font-medium",children:[Lt.jsx(Hhe,{to:"/",children:"Geonovum OGC Checker"}),": ",t.name]})}),Lt.jsx(Ont,{onSubmit:n}),Lt.jsxs("div",{className:"flex items-center",children:[Lt.jsx(knt,{className:"mr-4"}),Lt.jsx("a",{href:"https://github.com/Geonovum-labs/json-fg-linter",target:"_blank",children:Lt.jsx(DMe,{})})]})]}),Lt.jsx("div",{className:"flex-1 overflow-hidden",children:Lt.jsx(xMe,{spec:t,uri:e!==""?e:void 0})})]})},Int=Che([{path:"/",element:Lt.jsx(She,{to:`/${bT[0].slug}`})},...bT.map(t=>({path:`/${t.slug}`,element:Lt.jsx(Ent,{spec:t})}))]);AI.createRoot(document.getElementById("root")).render(Lt.jsx(V8.StrictMode,{children:Lt.jsx(zhe,{router:Int})})); diff --git a/docs/assets/index-BBnlv6Rj.css b/docs/assets/index-Cxnr1_Mp.css similarity index 55% rename from docs/assets/index-BBnlv6Rj.css rename to docs/assets/index-Cxnr1_Mp.css index 7db476b..fbf5a1c 100644 --- a/docs/assets/index-BBnlv6Rj.css +++ b/docs/assets/index-Cxnr1_Mp.css @@ -1 +1 @@ -*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}input[type=text]{border-radius:.375rem;padding:.25rem;font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:rgb(51 65 85 / var(--tw-text-opacity))}input[type=text]:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}select{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg aria-hidden='true' xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 10 6'%3E%3Cpath stroke='%23334155' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 1 4 4 4-4'/%3E%3C/svg%3E");background-position:right .75rem center;background-size:.75em .75em;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:.375rem;background-repeat:no-repeat;padding:.5rem 2rem .5rem .5rem;font-size:.875rem;line-height:1.25rem;line-height:1;--tw-text-opacity: 1;color:rgb(51 65 85 / var(--tw-text-opacity))}select:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}button{border-radius:.375rem;--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity));padding:.25rem .5rem}.mb-4{margin-bottom:1rem}.ml-2{margin-left:.5rem}.mr-2{margin-right:.5rem}.mr-4{margin-right:1rem}.flex{display:flex}.h-\[24px\]{height:24px}.h-full{height:100%}.h-screen{height:100vh}.w-96{width:24rem}.w-\[50\%\]{width:50%}.min-w-\[400px\]{min-width:400px}.flex-1{flex:1 1 0%}.cursor-pointer{cursor:pointer}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-between{justify-content:space-between}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.rounded{border-radius:.25rem}.bg-green-600{--tw-bg-opacity: 1;background-color:rgb(22 163 74 / var(--tw-bg-opacity))}.bg-red-200{--tw-bg-opacity: 1;background-color:rgb(254 202 202 / var(--tw-bg-opacity))}.bg-red-500{--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity))}.bg-sky-100{--tw-bg-opacity: 1;background-color:rgb(224 242 254 / var(--tw-bg-opacity))}.bg-slate-700{--tw-bg-opacity: 1;background-color:rgb(51 65 85 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-yellow-100{--tw-bg-opacity: 1;background-color:rgb(254 249 195 / var(--tw-bg-opacity))}.p-4{padding:1rem}.px-4{padding-left:1rem;padding-right:1rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.font-medium{font-weight:500}.text-blue-600{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.underline{text-decoration-line:underline}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.cm-selectionBackground{--tw-bg-opacity: 1 !important;background-color:rgb(254 202 202 / var(--tw-bg-opacity))!important} +*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}input[type=text]{border-radius:.375rem;padding:.25rem;font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:rgb(51 65 85 / var(--tw-text-opacity))}input[type=text]:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}select{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg aria-hidden='true' xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 10 6'%3E%3Cpath stroke='%23334155' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 1 4 4 4-4'/%3E%3C/svg%3E");background-position:right .75rem center;background-size:.75em .75em;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:.375rem;background-repeat:no-repeat;padding:.5rem 2rem .5rem .5rem;font-size:.875rem;line-height:1.25rem;line-height:1;--tw-text-opacity: 1;color:rgb(51 65 85 / var(--tw-text-opacity))}select:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}button{border-radius:.375rem;--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity));padding:.25rem .5rem}.mb-4{margin-bottom:1rem}.ml-2{margin-left:.5rem}.mr-2{margin-right:.5rem}.mr-4{margin-right:1rem}.flex{display:flex}.h-\[24px\]{height:24px}.h-full{height:100%}.h-screen{height:100vh}.w-96{width:24rem}.w-\[50\%\]{width:50%}.min-w-\[400px\]{min-width:400px}.flex-1{flex:1 1 0%}.cursor-pointer{cursor:pointer}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-between{justify-content:space-between}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.rounded{border-radius:.25rem}.bg-green-600{--tw-bg-opacity: 1;background-color:rgb(22 163 74 / var(--tw-bg-opacity))}.bg-red-200{--tw-bg-opacity: 1;background-color:rgb(254 202 202 / var(--tw-bg-opacity))}.bg-red-500{--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity))}.bg-sky-100{--tw-bg-opacity: 1;background-color:rgb(224 242 254 / var(--tw-bg-opacity))}.bg-slate-700{--tw-bg-opacity: 1;background-color:rgb(51 65 85 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-yellow-100{--tw-bg-opacity: 1;background-color:rgb(254 249 195 / var(--tw-bg-opacity))}.p-4{padding:1rem}.px-4{padding-left:1rem;padding-right:1rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.font-medium{font-weight:500}.text-blue-600{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.underline{text-decoration-line:underline}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.cm-selectionBackground{--tw-bg-opacity: 1 !important;background-color:rgb(254 202 202 / var(--tw-bg-opacity))!important} diff --git a/docs/index.html b/docs/index.html index 705d978..12859d4 100644 --- a/docs/index.html +++ b/docs/index.html @@ -4,8 +4,8 @@ Geonovum OGC Checker - - + +
diff --git a/src/specs/ogc-api/example.json b/src/specs/ogc-api/example.json index bcc2d26..ca060bd 100644 --- a/src/specs/ogc-api/example.json +++ b/src/specs/ogc-api/example.json @@ -43,10 +43,10 @@ "operationId": "getLandingPage", "responses": { "200": { - "$ref": "https://raw.githubusercontent.com/opengeospatial/ogcapi-features/master/core/openapi/ogcapi-features-1.yaml#/components/responses/LandingPage" + "$ref": "https://raw.githubusercontent.com/opengeospatial/ogcapi-features/master/core/openapi/ogcapi-features-1-oas30.yaml#/components/responses/LandingPage" }, "500": { - "$ref": "https://raw.githubusercontent.com/opengeospatial/ogcapi-features/master/core/openapi/ogcapi-features-1.yaml#/components/responses/ServerError" + "$ref": "https://raw.githubusercontent.com/opengeospatial/ogcapi-features/master/core/openapi/ogcapi-features-1-oas30.yaml#/components/responses/ServerError" } } } @@ -59,10 +59,10 @@ "operationId": "getConformanceDeclaration", "responses": { "200": { - "$ref": "https://raw.githubusercontent.com/opengeospatial/ogcapi-features/master/core/openapi/ogcapi-features-1.yaml#/components/responses/ConformanceDeclaration" + "$ref": "https://raw.githubusercontent.com/opengeospatial/ogcapi-features/master/core/openapi/ogcapi-features-1-oas30.yaml#/components/responses/ConformanceDeclaration" }, "500": { - "$ref": "https://raw.githubusercontent.com/opengeospatial/ogcapi-features/master/core/openapi/ogcapi-features-1.yaml#/components/responses/ServerError" + "$ref": "https://raw.githubusercontent.com/opengeospatial/ogcapi-features/master/core/openapi/ogcapi-features-1-oas30.yaml#/components/responses/ServerError" } } } @@ -74,10 +74,10 @@ "operationId": "getCollections", "responses": { "200": { - "$ref": "https://raw.githubusercontent.com/opengeospatial/ogcapi-features/master/core/openapi/ogcapi-features-1.yaml#/components/responses/Collections" + "$ref": "https://raw.githubusercontent.com/opengeospatial/ogcapi-features/master/core/openapi/ogcapi-features-1-oas30.yaml#/components/responses/Collections" }, "500": { - "$ref": "https://raw.githubusercontent.com/opengeospatial/ogcapi-features/master/core/openapi/ogcapi-features-1.yaml#/components/responses/ServerError" + "$ref": "https://raw.githubusercontent.com/opengeospatial/ogcapi-features/master/core/openapi/ogcapi-features-1-oas30.yaml#/components/responses/ServerError" } } } @@ -89,18 +89,18 @@ "operationId": "describeCollection", "parameters": [ { - "$ref": "https://raw.githubusercontent.com/opengeospatial/ogcapi-features/master/core/openapi/ogcapi-features-1.yaml#/components/parameters/collectionId" + "$ref": "https://raw.githubusercontent.com/opengeospatial/ogcapi-features/master/core/openapi/ogcapi-features-1-oas30.yaml#/components/parameters/collectionId" } ], "responses": { "200": { - "$ref": "https://raw.githubusercontent.com/opengeospatial/ogcapi-features/master/core/openapi/ogcapi-features-1.yaml#/components/responses/Collection" + "$ref": "https://raw.githubusercontent.com/opengeospatial/ogcapi-features/master/core/openapi/ogcapi-features-1-oas30.yaml#/components/responses/Collection" }, "404": { - "$ref": "https://raw.githubusercontent.com/opengeospatial/ogcapi-features/master/core/openapi/ogcapi-features-1.yaml#/components/responses/NotFound" + "$ref": "https://raw.githubusercontent.com/opengeospatial/ogcapi-features/master/core/openapi/ogcapi-features-1-oas30.yaml#/components/responses/NotFound" }, "500": { - "$ref": "https://raw.githubusercontent.com/opengeospatial/ogcapi-features/master/core/openapi/ogcapi-features-1.yaml#/components/responses/ServerError" + "$ref": "https://raw.githubusercontent.com/opengeospatial/ogcapi-features/master/core/openapi/ogcapi-features-1-oas30.yaml#/components/responses/ServerError" } } } @@ -113,30 +113,30 @@ "operationId": "getFeatures", "parameters": [ { - "$ref": "https://raw.githubusercontent.com/opengeospatial/ogcapi-features/master/core/openapi/ogcapi-features-1.yaml#/components/parameters/collectionId" + "$ref": "https://raw.githubusercontent.com/opengeospatial/ogcapi-features/master/core/openapi/ogcapi-features-1-oas30.yaml#/components/parameters/collectionId" }, { - "$ref": "https://raw.githubusercontent.com/opengeospatial/ogcapi-features/master/core/openapi/ogcapi-features-1.yaml#/components/parameters/limit" + "$ref": "https://raw.githubusercontent.com/opengeospatial/ogcapi-features/master/core/openapi/ogcapi-features-1-oas30.yaml#/components/parameters/limit" }, { - "$ref": "https://raw.githubusercontent.com/opengeospatial/ogcapi-features/master/core/openapi/ogcapi-features-1.yaml#/components/parameters/bbox" + "$ref": "https://raw.githubusercontent.com/opengeospatial/ogcapi-features/master/core/openapi/ogcapi-features-1-oas30.yaml#/components/parameters/bbox" }, { - "$ref": "https://raw.githubusercontent.com/opengeospatial/ogcapi-features/master/core/openapi/ogcapi-features-1.yaml#/components/parameters/datetime" + "$ref": "https://raw.githubusercontent.com/opengeospatial/ogcapi-features/master/core/openapi/ogcapi-features-1-oas30.yaml#/components/parameters/datetime" } ], "responses": { "200": { - "$ref": "https://raw.githubusercontent.com/opengeospatial/ogcapi-features/master/core/openapi/ogcapi-features-1.yaml#/components/responses/Features" + "$ref": "https://raw.githubusercontent.com/opengeospatial/ogcapi-features/master/core/openapi/ogcapi-features-1-oas30.yaml#/components/responses/Features" }, "400": { - "$ref": "https://raw.githubusercontent.com/opengeospatial/ogcapi-features/master/core/openapi/ogcapi-features-1.yaml#/components/responses/InvalidParameter" + "$ref": "https://raw.githubusercontent.com/opengeospatial/ogcapi-features/master/core/openapi/ogcapi-features-1-oas30.yaml#/components/responses/InvalidParameter" }, "404": { - "$ref": "https://raw.githubusercontent.com/opengeospatial/ogcapi-features/master/core/openapi/ogcapi-features-1.yaml#/components/responses/NotFound" + "$ref": "https://raw.githubusercontent.com/opengeospatial/ogcapi-features/master/core/openapi/ogcapi-features-1-oas30.yaml#/components/responses/NotFound" }, "500": { - "$ref": "https://raw.githubusercontent.com/opengeospatial/ogcapi-features/master/core/openapi/ogcapi-features-1.yaml#/components/responses/ServerError" + "$ref": "https://raw.githubusercontent.com/opengeospatial/ogcapi-features/master/core/openapi/ogcapi-features-1-oas30.yaml#/components/responses/ServerError" } } } @@ -149,21 +149,21 @@ "operationId": "getFeature", "parameters": [ { - "$ref": "https://raw.githubusercontent.com/opengeospatial/ogcapi-features/master/core/openapi/ogcapi-features-1.yaml#/components/parameters/collectionId" + "$ref": "https://raw.githubusercontent.com/opengeospatial/ogcapi-features/master/core/openapi/ogcapi-features-1-oas30.yaml#/components/parameters/collectionId" }, { - "$ref": "https://raw.githubusercontent.com/opengeospatial/ogcapi-features/master/core/openapi/ogcapi-features-1.yaml#/components/parameters/featureId" + "$ref": "https://raw.githubusercontent.com/opengeospatial/ogcapi-features/master/core/openapi/ogcapi-features-1-oas30.yaml#/components/parameters/featureId" } ], "responses": { "200": { - "$ref": "https://raw.githubusercontent.com/opengeospatial/ogcapi-features/master/core/openapi/ogcapi-features-1.yaml#/components/responses/Feature" + "$ref": "https://raw.githubusercontent.com/opengeospatial/ogcapi-features/master/core/openapi/ogcapi-features-1-oas30.yaml#/components/responses/Feature" }, "404": { - "$ref": "https://raw.githubusercontent.com/opengeospatial/ogcapi-features/master/core/openapi/ogcapi-features-1.yaml#/components/responses/NotFound" + "$ref": "https://raw.githubusercontent.com/opengeospatial/ogcapi-features/master/core/openapi/ogcapi-features-1-oas30.yaml#/components/responses/NotFound" }, "500": { - "$ref": "https://raw.githubusercontent.com/opengeospatial/ogcapi-features/master/core/openapi/ogcapi-features-1.yaml#/components/responses/ServerError" + "$ref": "https://raw.githubusercontent.com/opengeospatial/ogcapi-features/master/core/openapi/ogcapi-features-1-oas30.yaml#/components/responses/ServerError" } } }