@michaelmishin/speclens 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,3424 @@
1
+ var SpecLens=function(e){"use strict";var t,r,n=Object.defineProperty,o=(e,t,r)=>((e,t,r)=>t in e?n(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r)(e,"symbol"!=typeof t?t+"":t,r);function s(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function i(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if("function"==typeof t){var r=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}),r}var a,l={},c={};var p,d,u={};
2
+ /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */var f=(d||(d=1,function(e){const t=function(){if(a)return c;a=1,c.byteLength=function(e){var t=s(e),r=t[0],n=t[1];return 3*(r+n)/4-n},c.toByteArray=function(e){var n,o,i=s(e),a=i[0],l=i[1],c=new r(function(e,t,r){return 3*(t+r)/4-r}(0,a,l)),p=0,d=l>0?a-4:a;for(o=0;o<d;o+=4)n=t[e.charCodeAt(o)]<<18|t[e.charCodeAt(o+1)]<<12|t[e.charCodeAt(o+2)]<<6|t[e.charCodeAt(o+3)],c[p++]=n>>16&255,c[p++]=n>>8&255,c[p++]=255&n;return 2===l&&(n=t[e.charCodeAt(o)]<<2|t[e.charCodeAt(o+1)]>>4,c[p++]=255&n),1===l&&(n=t[e.charCodeAt(o)]<<10|t[e.charCodeAt(o+1)]<<4|t[e.charCodeAt(o+2)]>>2,c[p++]=n>>8&255,c[p++]=255&n),c},c.fromByteArray=function(t){for(var r,n=t.length,o=n%3,s=[],i=16383,a=0,c=n-o;a<c;a+=i)s.push(l(t,a,a+i>c?c:a+i));return 1===o?(r=t[n-1],s.push(e[r>>2]+e[r<<4&63]+"==")):2===o&&(r=(t[n-2]<<8)+t[n-1],s.push(e[r>>10]+e[r>>4&63]+e[r<<2&63]+"=")),s.join("")};for(var e=[],t=[],r="undefined"!=typeof Uint8Array?Uint8Array:Array,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0;o<64;++o)e[o]=n[o],t[n.charCodeAt(o)]=o;function s(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function i(t){return e[t>>18&63]+e[t>>12&63]+e[t>>6&63]+e[63&t]}function l(e,t,r){for(var n,o=[],s=t;s<r;s+=3)n=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),o.push(i(n));return o.join("")}return t["-".charCodeAt(0)]=62,t["_".charCodeAt(0)]=63,c}(),r=(p||(p=1,u.read=function(e,t,r,n,o){var s,i,a=8*o-n-1,l=(1<<a)-1,c=l>>1,p=-7,d=r?o-1:0,u=r?-1:1,f=e[t+d];for(d+=u,s=f&(1<<-p)-1,f>>=-p,p+=a;p>0;s=256*s+e[t+d],d+=u,p-=8);for(i=s&(1<<-p)-1,s>>=-p,p+=n;p>0;i=256*i+e[t+d],d+=u,p-=8);if(0===s)s=1-c;else{if(s===l)return i?NaN:1/0*(f?-1:1);i+=Math.pow(2,n),s-=c}return(f?-1:1)*i*Math.pow(2,s-n)},u.write=function(e,t,r,n,o,s){var i,a,l,c=8*s-o-1,p=(1<<c)-1,d=p>>1,u=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,f=n?0:s-1,h=n?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,i=p):(i=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-i))<1&&(i--,l*=2),(t+=i+d>=1?u/l:u*Math.pow(2,1-d))*l>=2&&(i++,l/=2),i+d>=p?(a=0,i=p):i+d>=1?(a=(t*l-1)*Math.pow(2,o),i+=d):(a=t*Math.pow(2,d-1)*Math.pow(2,o),i=0));o>=8;e[r+f]=255&a,f+=h,a/=256,o-=8);for(i=i<<o|a,c+=o;c>0;e[r+f]=255&i,f+=h,i/=256,c-=8);e[r+f-h]|=128*m}),u),n="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=i,e.SlowBuffer=function(e){return+e!=e&&(e=0),i.alloc(+e)},e.INSPECT_MAX_BYTES=50;const o=2147483647;function s(e){if(e>o)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,i.prototype),t}function i(e,t,r){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return f(e)}return l(e,t,r)}function l(e,t,r){if("string"==typeof e)return function(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!i.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const r=0|y(e,t);let n=s(r);const o=n.write(e,t);return o!==r&&(n=n.slice(0,o)),n}(e,t);if(ArrayBuffer.isView(e))return function(e){if(Q(e,Uint8Array)){const t=new Uint8Array(e);return m(t.buffer,t.byteOffset,t.byteLength)}return h(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(Q(e,ArrayBuffer)||e&&Q(e.buffer,ArrayBuffer))return m(e,t,r);if("undefined"!=typeof SharedArrayBuffer&&(Q(e,SharedArrayBuffer)||e&&Q(e.buffer,SharedArrayBuffer)))return m(e,t,r);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return i.from(n,t,r);const o=function(e){if(i.isBuffer(e)){const t=0|g(e.length),r=s(t);return 0===r.length||e.copy(r,0,0,t),r}return void 0!==e.length?"number"!=typeof e.length||Y(e.length)?s(0):h(e):"Buffer"===e.type&&Array.isArray(e.data)?h(e.data):void 0}(e);if(o)return o;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return i.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function d(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function f(e){return d(e),s(e<0?0:0|g(e))}function h(e){const t=e.length<0?0:0|g(e.length),r=s(t);for(let n=0;n<t;n+=1)r[n]=255&e[n];return r}function m(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('"length" is outside of buffer bounds');let n;return n=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r),Object.setPrototypeOf(n,i.prototype),n}function g(e){if(e>=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return 0|e}function y(e,t){if(i.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||Q(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;let o=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return G(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return K(e).length;default:if(o)return n?-1:G(e).length;t=(""+t).toLowerCase(),o=!0}}function v(e,t,r){let n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return C(this,t,r);case"utf8":case"utf-8":return P(this,t,r);case"ascii":return T(this,t,r);case"latin1":case"binary":return A(this,t,r);case"base64":return O(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function b(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function $(e,t,r,n,o){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),Y(r=+r)&&(r=o?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(o)return-1;r=e.length-1}else if(r<0){if(!o)return-1;r=0}if("string"==typeof t&&(t=i.from(t,n)),i.isBuffer(t))return 0===t.length?-1:x(e,t,r,n,o);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):x(e,[t],r,n,o);throw new TypeError("val must be string, number or Buffer")}function x(e,t,r,n,o){let s,i=1,a=e.length,l=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;i=2,a/=2,l/=2,r/=2}function c(e,t){return 1===i?e[t]:e.readUInt16BE(t*i)}if(o){let n=-1;for(s=r;s<a;s++)if(c(e,s)===c(t,-1===n?0:s-n)){if(-1===n&&(n=s),s-n+1===l)return n*i}else-1!==n&&(s-=s-n),n=-1}else for(r+l>a&&(r=a-l),s=r;s>=0;s--){let r=!0;for(let n=0;n<l;n++)if(c(e,s+n)!==c(t,n)){r=!1;break}if(r)return s}return-1}function w(e,t,r,n){r=Number(r)||0;const o=e.length-r;n?(n=Number(n))>o&&(n=o):n=o;const s=t.length;let i;for(n>s/2&&(n=s/2),i=0;i<n;++i){const n=parseInt(t.substr(2*i,2),16);if(Y(n))return i;e[r+i]=n}return i}function _(e,t,r,n){return Z(G(t,e.length-r),e,r,n)}function k(e,t,r,n){return Z(function(e){const t=[];for(let r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,n)}function S(e,t,r,n){return Z(K(t),e,r,n)}function j(e,t,r,n){return Z(function(e,t){let r,n,o;const s=[];for(let i=0;i<e.length&&!((t-=2)<0);++i)r=e.charCodeAt(i),n=r>>8,o=r%256,s.push(o),s.push(n);return s}(t,e.length-r),e,r,n)}function O(e,r,n){return 0===r&&n===e.length?t.fromByteArray(e):t.fromByteArray(e.slice(r,n))}function P(e,t,r){r=Math.min(e.length,r);const n=[];let o=t;for(;o<r;){const t=e[o];let s=null,i=t>239?4:t>223?3:t>191?2:1;if(o+i<=r){let r,n,a,l;switch(i){case 1:t<128&&(s=t);break;case 2:r=e[o+1],128==(192&r)&&(l=(31&t)<<6|63&r,l>127&&(s=l));break;case 3:r=e[o+1],n=e[o+2],128==(192&r)&&128==(192&n)&&(l=(15&t)<<12|(63&r)<<6|63&n,l>2047&&(l<55296||l>57343)&&(s=l));break;case 4:r=e[o+1],n=e[o+2],a=e[o+3],128==(192&r)&&128==(192&n)&&128==(192&a)&&(l=(15&t)<<18|(63&r)<<12|(63&n)<<6|63&a,l>65535&&l<1114112&&(s=l))}}null===s?(s=65533,i=1):s>65535&&(s-=65536,n.push(s>>>10&1023|55296),s=56320|1023&s),n.push(s),o+=i}return function(e){const t=e.length;if(t<=E)return String.fromCharCode.apply(String,e);let r="",n=0;for(;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=E));return r}(n)}e.kMaxLength=o,i.TYPED_ARRAY_SUPPORT=function(){try{const e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(cd){return!1}}(),i.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(i.prototype,"parent",{enumerable:!0,get:function(){if(i.isBuffer(this))return this.buffer}}),Object.defineProperty(i.prototype,"offset",{enumerable:!0,get:function(){if(i.isBuffer(this))return this.byteOffset}}),i.poolSize=8192,i.from=function(e,t,r){return l(e,t,r)},Object.setPrototypeOf(i.prototype,Uint8Array.prototype),Object.setPrototypeOf(i,Uint8Array),i.alloc=function(e,t,r){return function(e,t,r){return d(e),e<=0?s(e):void 0!==t?"string"==typeof r?s(e).fill(t,r):s(e).fill(t):s(e)}(e,t,r)},i.allocUnsafe=function(e){return f(e)},i.allocUnsafeSlow=function(e){return f(e)},i.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==i.prototype},i.compare=function(e,t){if(Q(e,Uint8Array)&&(e=i.from(e,e.offset,e.byteLength)),Q(t,Uint8Array)&&(t=i.from(t,t.offset,t.byteLength)),!i.isBuffer(e)||!i.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let r=e.length,n=t.length;for(let o=0,s=Math.min(r,n);o<s;++o)if(e[o]!==t[o]){r=e[o],n=t[o];break}return r<n?-1:n<r?1:0},i.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},i.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return i.alloc(0);let r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;const n=i.allocUnsafe(t);let o=0;for(r=0;r<e.length;++r){let t=e[r];if(Q(t,Uint8Array))o+t.length>n.length?(i.isBuffer(t)||(t=i.from(t)),t.copy(n,o)):Uint8Array.prototype.set.call(n,t,o);else{if(!i.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(n,o)}o+=t.length}return n},i.byteLength=y,i.prototype._isBuffer=!0,i.prototype.swap16=function(){const e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)b(this,t,t+1);return this},i.prototype.swap32=function(){const e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)b(this,t,t+3),b(this,t+1,t+2);return this},i.prototype.swap64=function(){const e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)b(this,t,t+7),b(this,t+1,t+6),b(this,t+2,t+5),b(this,t+3,t+4);return this},i.prototype.toString=function(){const e=this.length;return 0===e?"":0===arguments.length?P(this,0,e):v.apply(this,arguments)},i.prototype.toLocaleString=i.prototype.toString,i.prototype.equals=function(e){if(!i.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===i.compare(this,e)},i.prototype.inspect=function(){let t="";const r=e.INSPECT_MAX_BYTES;return t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(t+=" ... "),"<Buffer "+t+">"},n&&(i.prototype[n]=i.prototype.inspect),i.prototype.compare=function(e,t,r,n,o){if(Q(e,Uint8Array)&&(e=i.from(e,e.offset,e.byteLength)),!i.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),t<0||r>e.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&t>=r)return 0;if(n>=o)return-1;if(t>=r)return 1;if(this===e)return 0;let s=(o>>>=0)-(n>>>=0),a=(r>>>=0)-(t>>>=0);const l=Math.min(s,a),c=this.slice(n,o),p=e.slice(t,r);for(let i=0;i<l;++i)if(c[i]!==p[i]){s=c[i],a=p[i];break}return s<a?-1:a<s?1:0},i.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},i.prototype.indexOf=function(e,t,r){return $(this,e,t,r,!0)},i.prototype.lastIndexOf=function(e,t,r){return $(this,e,t,r,!1)},i.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}const o=this.length-t;if((void 0===r||r>o)&&(r=o),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let s=!1;for(;;)switch(n){case"hex":return w(this,e,t,r);case"utf8":case"utf-8":return _(this,e,t,r);case"ascii":case"latin1":case"binary":return k(this,e,t,r);case"base64":return S(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return j(this,e,t,r);default:if(s)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),s=!0}},i.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const E=4096;function T(e,t,r){let n="";r=Math.min(e.length,r);for(let o=t;o<r;++o)n+=String.fromCharCode(127&e[o]);return n}function A(e,t,r){let n="";r=Math.min(e.length,r);for(let o=t;o<r;++o)n+=String.fromCharCode(e[o]);return n}function C(e,t,r){const n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);let o="";for(let s=t;s<r;++s)o+=X[e[s]];return o}function I(e,t,r){const n=e.slice(t,r);let o="";for(let s=0;s<n.length-1;s+=2)o+=String.fromCharCode(n[s]+256*n[s+1]);return o}function R(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function N(e,t,r,n,o,s){if(!i.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<s)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function M(e,t,r,n,o){F(t,n,o,e,r,7);let s=Number(t&BigInt(4294967295));e[r++]=s,s>>=8,e[r++]=s,s>>=8,e[r++]=s,s>>=8,e[r++]=s;let i=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=i,i>>=8,e[r++]=i,i>>=8,e[r++]=i,i>>=8,e[r++]=i,r}function q(e,t,r,n,o){F(t,n,o,e,r,7);let s=Number(t&BigInt(4294967295));e[r+7]=s,s>>=8,e[r+6]=s,s>>=8,e[r+5]=s,s>>=8,e[r+4]=s;let i=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=i,i>>=8,e[r+2]=i,i>>=8,e[r+1]=i,i>>=8,e[r]=i,r+8}function z(e,t,r,n,o,s){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function U(e,t,n,o,s){return t=+t,n>>>=0,s||z(e,0,n,4),r.write(e,t,n,o,23,4),n+4}function L(e,t,n,o,s){return t=+t,n>>>=0,s||z(e,0,n,8),r.write(e,t,n,o,52,8),n+8}i.prototype.slice=function(e,t){const r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);const n=this.subarray(e,t);return Object.setPrototypeOf(n,i.prototype),n},i.prototype.readUintLE=i.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||R(e,t,this.length);let n=this[e],o=1,s=0;for(;++s<t&&(o*=256);)n+=this[e+s]*o;return n},i.prototype.readUintBE=i.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||R(e,t,this.length);let n=this[e+--t],o=1;for(;t>0&&(o*=256);)n+=this[e+--t]*o;return n},i.prototype.readUint8=i.prototype.readUInt8=function(e,t){return e>>>=0,t||R(e,1,this.length),this[e]},i.prototype.readUint16LE=i.prototype.readUInt16LE=function(e,t){return e>>>=0,t||R(e,2,this.length),this[e]|this[e+1]<<8},i.prototype.readUint16BE=i.prototype.readUInt16BE=function(e,t){return e>>>=0,t||R(e,2,this.length),this[e]<<8|this[e+1]},i.prototype.readUint32LE=i.prototype.readUInt32LE=function(e,t){return e>>>=0,t||R(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},i.prototype.readUint32BE=i.prototype.readUInt32BE=function(e,t){return e>>>=0,t||R(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},i.prototype.readBigUInt64LE=ee(function(e){V(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||J(e,this.length-8);const n=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,o=this[++e]+256*this[++e]+65536*this[++e]+r*2**24;return BigInt(n)+(BigInt(o)<<BigInt(32))}),i.prototype.readBigUInt64BE=ee(function(e){V(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||J(e,this.length-8);const n=t*2**24+65536*this[++e]+256*this[++e]+this[++e],o=this[++e]*2**24+65536*this[++e]+256*this[++e]+r;return(BigInt(n)<<BigInt(32))+BigInt(o)}),i.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||R(e,t,this.length);let n=this[e],o=1,s=0;for(;++s<t&&(o*=256);)n+=this[e+s]*o;return o*=128,n>=o&&(n-=Math.pow(2,8*t)),n},i.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||R(e,t,this.length);let n=t,o=1,s=this[e+--n];for(;n>0&&(o*=256);)s+=this[e+--n]*o;return o*=128,s>=o&&(s-=Math.pow(2,8*t)),s},i.prototype.readInt8=function(e,t){return e>>>=0,t||R(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},i.prototype.readInt16LE=function(e,t){e>>>=0,t||R(e,2,this.length);const r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},i.prototype.readInt16BE=function(e,t){e>>>=0,t||R(e,2,this.length);const r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},i.prototype.readInt32LE=function(e,t){return e>>>=0,t||R(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},i.prototype.readInt32BE=function(e,t){return e>>>=0,t||R(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},i.prototype.readBigInt64LE=ee(function(e){V(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||J(e,this.length-8);const n=this[e+4]+256*this[e+5]+65536*this[e+6]+(r<<24);return(BigInt(n)<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+this[++e]*2**24)}),i.prototype.readBigInt64BE=ee(function(e){V(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||J(e,this.length-8);const n=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(n)<<BigInt(32))+BigInt(this[++e]*2**24+65536*this[++e]+256*this[++e]+r)}),i.prototype.readFloatLE=function(e,t){return e>>>=0,t||R(e,4,this.length),r.read(this,e,!0,23,4)},i.prototype.readFloatBE=function(e,t){return e>>>=0,t||R(e,4,this.length),r.read(this,e,!1,23,4)},i.prototype.readDoubleLE=function(e,t){return e>>>=0,t||R(e,8,this.length),r.read(this,e,!0,52,8)},i.prototype.readDoubleBE=function(e,t){return e>>>=0,t||R(e,8,this.length),r.read(this,e,!1,52,8)},i.prototype.writeUintLE=i.prototype.writeUIntLE=function(e,t,r,n){e=+e,t>>>=0,r>>>=0,n||N(this,e,t,r,Math.pow(2,8*r)-1,0);let o=1,s=0;for(this[t]=255&e;++s<r&&(o*=256);)this[t+s]=e/o&255;return t+r},i.prototype.writeUintBE=i.prototype.writeUIntBE=function(e,t,r,n){e=+e,t>>>=0,r>>>=0,n||N(this,e,t,r,Math.pow(2,8*r)-1,0);let o=r-1,s=1;for(this[t+o]=255&e;--o>=0&&(s*=256);)this[t+o]=e/s&255;return t+r},i.prototype.writeUint8=i.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||N(this,e,t,1,255,0),this[t]=255&e,t+1},i.prototype.writeUint16LE=i.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||N(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},i.prototype.writeUint16BE=i.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||N(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},i.prototype.writeUint32LE=i.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||N(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},i.prototype.writeUint32BE=i.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||N(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},i.prototype.writeBigUInt64LE=ee(function(e,t=0){return M(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),i.prototype.writeBigUInt64BE=ee(function(e,t=0){return q(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),i.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){const n=Math.pow(2,8*r-1);N(this,e,t,r,n-1,-n)}let o=0,s=1,i=0;for(this[t]=255&e;++o<r&&(s*=256);)e<0&&0===i&&0!==this[t+o-1]&&(i=1),this[t+o]=(e/s|0)-i&255;return t+r},i.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){const n=Math.pow(2,8*r-1);N(this,e,t,r,n-1,-n)}let o=r-1,s=1,i=0;for(this[t+o]=255&e;--o>=0&&(s*=256);)e<0&&0===i&&0!==this[t+o+1]&&(i=1),this[t+o]=(e/s|0)-i&255;return t+r},i.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||N(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},i.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||N(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},i.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||N(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},i.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||N(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},i.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||N(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},i.prototype.writeBigInt64LE=ee(function(e,t=0){return M(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),i.prototype.writeBigInt64BE=ee(function(e,t=0){return q(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),i.prototype.writeFloatLE=function(e,t,r){return U(this,e,t,!0,r)},i.prototype.writeFloatBE=function(e,t,r){return U(this,e,t,!1,r)},i.prototype.writeDoubleLE=function(e,t,r){return L(this,e,t,!0,r)},i.prototype.writeDoubleBE=function(e,t,r){return L(this,e,t,!1,r)},i.prototype.copy=function(e,t,r,n){if(!i.isBuffer(e))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);const o=n-r;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,r,n):Uint8Array.prototype.set.call(e,this.subarray(r,n),t),o},i.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!i.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(1===e.length){const t=e.charCodeAt(0);("utf8"===n&&t<128||"latin1"===n)&&(e=t)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;let o;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(o=t;o<r;++o)this[o]=e;else{const s=i.isBuffer(e)?e:i.from(e,n),a=s.length;if(0===a)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(o=0;o<r-t;++o)this[o+t]=s[o%a]}return this};const D={};function B(e,t,r){D[e]=class extends r{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}function H(e){let t="",r=e.length;const n="-"===e[0]?1:0;for(;r>=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function F(e,t,r,n,o,s){if(e>r||e<t){const r="bigint"==typeof t?"n":"";let n;throw n=0===t||t===BigInt(0)?`>= 0${r} and < 2${r} ** ${8*(s+1)}${r}`:`>= -(2${r} ** ${8*(s+1)-1}${r}) and < 2 ** ${8*(s+1)-1}${r}`,new D.ERR_OUT_OF_RANGE("value",n,e)}!function(e,t,r){V(t,"offset"),void 0!==e[t]&&void 0!==e[t+r]||J(t,e.length-(r+1))}(n,o,s)}function V(e,t){if("number"!=typeof e)throw new D.ERR_INVALID_ARG_TYPE(t,"number",e)}function J(e,t,r){if(Math.floor(e)!==e)throw V(e,r),new D.ERR_OUT_OF_RANGE("offset","an integer",e);if(t<0)throw new D.ERR_BUFFER_OUT_OF_BOUNDS;throw new D.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${t}`,e)}B("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),B("ERR_INVALID_ARG_TYPE",function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError),B("ERR_OUT_OF_RANGE",function(e,t,r){let n=`The value of "${e}" is out of range.`,o=r;return Number.isInteger(r)&&Math.abs(r)>2**32?o=H(String(r)):"bigint"==typeof r&&(o=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(o=H(o)),o+="n"),n+=` It must be ${t}. Received ${o}`,n},RangeError);const W=/[^+/0-9A-Za-z-_]/g;function G(e,t){let r;t=t||1/0;const n=e.length;let o=null;const s=[];for(let i=0;i<n;++i){if(r=e.charCodeAt(i),r>55295&&r<57344){if(!o){if(r>56319){(t-=3)>-1&&s.push(239,191,189);continue}if(i+1===n){(t-=3)>-1&&s.push(239,191,189);continue}o=r;continue}if(r<56320){(t-=3)>-1&&s.push(239,191,189),o=r;continue}r=65536+(o-55296<<10|r-56320)}else o&&(t-=3)>-1&&s.push(239,191,189);if(o=null,r<128){if((t-=1)<0)break;s.push(r)}else if(r<2048){if((t-=2)<0)break;s.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;s.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;s.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return s}function K(e){return t.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(W,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function Z(e,t,r,n){let o;for(o=0;o<n&&!(o+r>=t.length||o>=e.length);++o)t[o+r]=e[o];return o}function Q(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function Y(e){return e!=e}const X=function(){const e="0123456789abcdef",t=new Array(256);for(let r=0;r<16;++r){const n=16*r;for(let o=0;o<16;++o)t[n+o]=e[r]+e[o]}return t}();function ee(e){return"undefined"==typeof BigInt?te:e}function te(){throw new Error("BigInt not supported")}}(l)),l);
3
+ /**
4
+ * @license
5
+ * Copyright 2019 Google LLC
6
+ * SPDX-License-Identifier: BSD-3-Clause
7
+ */const h=globalThis,m=h.ShadowRoot&&(void 0===h.ShadyCSS||h.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,g=Symbol(),y=new WeakMap;let v=class{constructor(e,t,r){if(this._$cssResult$=!0,r!==g)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(m&&void 0===e){const r=void 0!==t&&1===t.length;r&&(e=y.get(t)),void 0===e&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),r&&y.set(t,e))}return e}toString(){return this.cssText}};const b=(e,...t)=>{const r=1===e.length?e[0]:t.reduce((t,r,n)=>t+(e=>{if(!0===e._$cssResult$)return e.cssText;if("number"==typeof e)return e;throw Error("Value passed to 'css' function must be a 'css' function result: "+e+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+e[n+1],e[0]);return new v(r,e,g)},$=m?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t="";for(const r of e.cssRules)t+=r.cssText;return(e=>new v("string"==typeof e?e:e+"",void 0,g))(t)})(e):e,{is:x,defineProperty:w,getOwnPropertyDescriptor:_,getOwnPropertyNames:k,getOwnPropertySymbols:S,getPrototypeOf:j}=Object,O=globalThis,P=O.trustedTypes,E=P?P.emptyScript:"",T=O.reactiveElementPolyfillSupport,A=(e,t)=>e,C={toAttribute(e,t){switch(t){case Boolean:e=e?E:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){let r=e;switch(t){case Boolean:r=null!==e;break;case Number:r=null===e?null:Number(e);break;case Object:case Array:try{r=JSON.parse(e)}catch(n){r=null}}return r}},I=(e,t)=>!x(e,t),R={attribute:!0,type:String,converter:C,reflect:!1,useDefault:!1,hasChanged:I};
8
+ /**
9
+ * @license
10
+ * Copyright 2017 Google LLC
11
+ * SPDX-License-Identifier: BSD-3-Clause
12
+ */Symbol.metadata??(Symbol.metadata=Symbol("metadata")),O.litPropertyMetadata??(O.litPropertyMetadata=new WeakMap);let N=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??(this.l=[])).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=R){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){const r=Symbol(),n=this.getPropertyDescriptor(e,r,t);void 0!==n&&w(this.prototype,e,n)}}static getPropertyDescriptor(e,t,r){const{get:n,set:o}=_(this.prototype,e)??{get(){return this[t]},set(e){this[t]=e}};return{get:n,set(t){const s=null==n?void 0:n.call(this);null==o||o.call(this,t),this.requestUpdate(e,s,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??R}static _$Ei(){if(this.hasOwnProperty(A("elementProperties")))return;const e=j(this);e.finalize(),void 0!==e.l&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(A("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(A("properties"))){const e=this.properties,t=[...k(e),...S(e)];for(const r of t)this.createProperty(r,e[r])}const e=this[Symbol.metadata];if(null!==e){const t=litPropertyMetadata.get(e);if(void 0!==t)for(const[e,r]of t)this.elementProperties.set(e,r)}this._$Eh=new Map;for(const[t,r]of this.elementProperties){const e=this._$Eu(t,r);void 0!==e&&this._$Eh.set(e,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const r=new Set(e.flat(1/0).reverse());for(const e of r)t.unshift($(e))}else void 0!==e&&t.push($(e));return t}static _$Eu(e,t){const r=t.attribute;return!1===r?void 0:"string"==typeof r?r:"string"==typeof e?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var e;this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),null==(e=this.constructor.l)||e.forEach(e=>e(this))}addController(e){var t;(this._$EO??(this._$EO=new Set)).add(e),void 0!==this.renderRoot&&this.isConnected&&(null==(t=e.hostConnected)||t.call(e))}removeController(e){var t;null==(t=this._$EO)||t.delete(e)}_$E_(){const e=new Map,t=this.constructor.elementProperties;for(const r of t.keys())this.hasOwnProperty(r)&&(e.set(r,this[r]),delete this[r]);e.size>0&&(this._$Ep=e)}createRenderRoot(){const e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((e,t)=>{if(m)e.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const r of t){const t=document.createElement("style"),n=h.litNonce;void 0!==n&&t.setAttribute("nonce",n),t.textContent=r.cssText,e.appendChild(t)}})(e,this.constructor.elementStyles),e}connectedCallback(){var e;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null==(e=this._$EO)||e.forEach(e=>{var t;return null==(t=e.hostConnected)?void 0:t.call(e)})}enableUpdating(e){}disconnectedCallback(){var e;null==(e=this._$EO)||e.forEach(e=>{var t;return null==(t=e.hostDisconnected)?void 0:t.call(e)})}attributeChangedCallback(e,t,r){this._$AK(e,r)}_$ET(e,t){var r;const n=this.constructor.elementProperties.get(e),o=this.constructor._$Eu(e,n);if(void 0!==o&&!0===n.reflect){const s=(void 0!==(null==(r=n.converter)?void 0:r.toAttribute)?n.converter:C).toAttribute(t,n.type);this._$Em=e,null==s?this.removeAttribute(o):this.setAttribute(o,s),this._$Em=null}}_$AK(e,t){var r,n;const o=this.constructor,s=o._$Eh.get(e);if(void 0!==s&&this._$Em!==s){const e=o.getPropertyOptions(s),i="function"==typeof e.converter?{fromAttribute:e.converter}:void 0!==(null==(r=e.converter)?void 0:r.fromAttribute)?e.converter:C;this._$Em=s;const a=i.fromAttribute(t,e.type);this[s]=a??(null==(n=this._$Ej)?void 0:n.get(s))??a,this._$Em=null}}requestUpdate(e,t,r,n=!1,o){var s;if(void 0!==e){const i=this.constructor;if(!1===n&&(o=this[e]),r??(r=i.getPropertyOptions(e)),!((r.hasChanged??I)(o,t)||r.useDefault&&r.reflect&&o===(null==(s=this._$Ej)?void 0:s.get(e))&&!this.hasAttribute(i._$Eu(e,r))))return;this.C(e,t,r)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(e,t,{useDefault:r,reflect:n,wrapped:o},s){r&&!(this._$Ej??(this._$Ej=new Map)).has(e)&&(this._$Ej.set(e,s??t??this[e]),!0!==o||void 0!==s)||(this._$AL.has(e)||(this.hasUpdated||r||(t=void 0),this._$AL.set(e,t)),!0===n&&this._$Em!==e&&(this._$Eq??(this._$Eq=new Set)).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const e=this.scheduleUpdate();return null!=e&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[e,t]of this._$Ep)this[e]=t;this._$Ep=void 0}const e=this.constructor.elementProperties;if(e.size>0)for(const[t,r]of e){const{wrapped:e}=r,n=this[t];!0!==e||this._$AL.has(t)||void 0===n||this.C(t,void 0,r,n)}}let t=!1;const r=this._$AL;try{t=this.shouldUpdate(r),t?(this.willUpdate(r),null==(e=this._$EO)||e.forEach(e=>{var t;return null==(t=e.hostUpdate)?void 0:t.call(e)}),this.update(r)):this._$EM()}catch(n){throw t=!1,this._$EM(),n}t&&this._$AE(r)}willUpdate(e){}_$AE(e){var t;null==(t=this._$EO)||t.forEach(e=>{var t;return null==(t=e.hostUpdated)?void 0:t.call(e)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&(this._$Eq=this._$Eq.forEach(e=>this._$ET(e,this[e]))),this._$EM()}updated(e){}firstUpdated(e){}};N.elementStyles=[],N.shadowRootOptions={mode:"open"},N[A("elementProperties")]=new Map,N[A("finalized")]=new Map,null==T||T({ReactiveElement:N}),(O.reactiveElementVersions??(O.reactiveElementVersions=[])).push("2.1.2");
13
+ /**
14
+ * @license
15
+ * Copyright 2017 Google LLC
16
+ * SPDX-License-Identifier: BSD-3-Clause
17
+ */
18
+ const M=globalThis,q=e=>e,z=M.trustedTypes,U=z?z.createPolicy("lit-html",{createHTML:e=>e}):void 0,L="$lit$",D=`lit$${Math.random().toFixed(9).slice(2)}$`,B="?"+D,H=`<${B}>`,F=document,V=()=>F.createComment(""),J=e=>null===e||"object"!=typeof e&&"function"!=typeof e,W=Array.isArray,G="[ \t\n\f\r]",K=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Z=/-->/g,Q=/>/g,Y=RegExp(`>|${G}(?:([^\\s"'>=/]+)(${G}*=${G}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),X=/'/g,ee=/"/g,te=/^(?:script|style|textarea|title)$/i,re=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),ne=re(1),oe=re(2),se=Symbol.for("lit-noChange"),ie=Symbol.for("lit-nothing"),ae=new WeakMap,le=F.createTreeWalker(F,129);function ce(e,t){if(!W(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==U?U.createHTML(t):t}class pe{constructor({strings:e,_$litType$:t},r){let n;this.parts=[];let o=0,s=0;const i=e.length-1,a=this.parts,[l,c]=((e,t)=>{const r=e.length-1,n=[];let o,s=2===t?"<svg>":3===t?"<math>":"",i=K;for(let a=0;a<r;a++){const t=e[a];let r,l,c=-1,p=0;for(;p<t.length&&(i.lastIndex=p,l=i.exec(t),null!==l);)p=i.lastIndex,i===K?"!--"===l[1]?i=Z:void 0!==l[1]?i=Q:void 0!==l[2]?(te.test(l[2])&&(o=RegExp("</"+l[2],"g")),i=Y):void 0!==l[3]&&(i=Y):i===Y?">"===l[0]?(i=o??K,c=-1):void 0===l[1]?c=-2:(c=i.lastIndex-l[2].length,r=l[1],i=void 0===l[3]?Y:'"'===l[3]?ee:X):i===ee||i===X?i=Y:i===Z||i===Q?i=K:(i=Y,o=void 0);const d=i===Y&&e[a+1].startsWith("/>")?" ":"";s+=i===K?t+H:c>=0?(n.push(r),t.slice(0,c)+L+t.slice(c)+D+d):t+D+(-2===c?a:d)}return[ce(e,s+(e[r]||"<?>")+(2===t?"</svg>":3===t?"</math>":"")),n]})(e,t);if(this.el=pe.createElement(l,r),le.currentNode=this.el.content,2===t||3===t){const e=this.el.content.firstChild;e.replaceWith(...e.childNodes)}for(;null!==(n=le.nextNode())&&a.length<i;){if(1===n.nodeType){if(n.hasAttributes())for(const e of n.getAttributeNames())if(e.endsWith(L)){const t=c[s++],r=n.getAttribute(e).split(D),i=/([.?@])?(.*)/.exec(t);a.push({type:1,index:o,name:i[2],strings:r,ctor:"."===i[1]?me:"?"===i[1]?ge:"@"===i[1]?ye:he}),n.removeAttribute(e)}else e.startsWith(D)&&(a.push({type:6,index:o}),n.removeAttribute(e));if(te.test(n.tagName)){const e=n.textContent.split(D),t=e.length-1;if(t>0){n.textContent=z?z.emptyScript:"";for(let r=0;r<t;r++)n.append(e[r],V()),le.nextNode(),a.push({type:2,index:++o});n.append(e[t],V())}}}else if(8===n.nodeType)if(n.data===B)a.push({type:2,index:o});else{let e=-1;for(;-1!==(e=n.data.indexOf(D,e+1));)a.push({type:7,index:o}),e+=D.length-1}o++}}static createElement(e,t){const r=F.createElement("template");return r.innerHTML=e,r}}function de(e,t,r=e,n){var o,s;if(t===se)return t;let i=void 0!==n?null==(o=r._$Co)?void 0:o[n]:r._$Cl;const a=J(t)?void 0:t._$litDirective$;return(null==i?void 0:i.constructor)!==a&&(null==(s=null==i?void 0:i._$AO)||s.call(i,!1),void 0===a?i=void 0:(i=new a(e),i._$AT(e,r,n)),void 0!==n?(r._$Co??(r._$Co=[]))[n]=i:r._$Cl=i),void 0!==i&&(t=de(e,i._$AS(e,t.values),i,n)),t}class ue{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){const{el:{content:t},parts:r}=this._$AD,n=((null==e?void 0:e.creationScope)??F).importNode(t,!0);le.currentNode=n;let o=le.nextNode(),s=0,i=0,a=r[0];for(;void 0!==a;){if(s===a.index){let t;2===a.type?t=new fe(o,o.nextSibling,this,e):1===a.type?t=new a.ctor(o,a.name,a.strings,this,e):6===a.type&&(t=new ve(o,this,e)),this._$AV.push(t),a=r[++i]}s!==(null==a?void 0:a.index)&&(o=le.nextNode(),s++)}return le.currentNode=F,n}p(e){let t=0;for(const r of this._$AV)void 0!==r&&(void 0!==r.strings?(r._$AI(e,r,t),t+=r.strings.length-2):r._$AI(e[t])),t++}}class fe{get _$AU(){var e;return(null==(e=this._$AM)?void 0:e._$AU)??this._$Cv}constructor(e,t,r,n){this.type=2,this._$AH=ie,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=r,this.options=n,this._$Cv=(null==n?void 0:n.isConnected)??!0}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return void 0!==t&&11===(null==e?void 0:e.nodeType)&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=de(this,e,t),J(e)?e===ie||null==e||""===e?(this._$AH!==ie&&this._$AR(),this._$AH=ie):e!==this._$AH&&e!==se&&this._(e):void 0!==e._$litType$?this.$(e):void 0!==e.nodeType?this.T(e):(e=>W(e)||"function"==typeof(null==e?void 0:e[Symbol.iterator]))(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==ie&&J(this._$AH)?this._$AA.nextSibling.data=e:this.T(F.createTextNode(e)),this._$AH=e}$(e){var t;const{values:r,_$litType$:n}=e,o="number"==typeof n?this._$AC(e):(void 0===n.el&&(n.el=pe.createElement(ce(n.h,n.h[0]),this.options)),n);if((null==(t=this._$AH)?void 0:t._$AD)===o)this._$AH.p(r);else{const e=new ue(o,this),t=e.u(this.options);e.p(r),this.T(t),this._$AH=e}}_$AC(e){let t=ae.get(e.strings);return void 0===t&&ae.set(e.strings,t=new pe(e)),t}k(e){W(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let r,n=0;for(const o of e)n===t.length?t.push(r=new fe(this.O(V()),this.O(V()),this,this.options)):r=t[n],r._$AI(o),n++;n<t.length&&(this._$AR(r&&r._$AB.nextSibling,n),t.length=n)}_$AR(e=this._$AA.nextSibling,t){var r;for(null==(r=this._$AP)||r.call(this,!1,!0,t);e!==this._$AB;){const t=q(e).nextSibling;q(e).remove(),e=t}}setConnected(e){var t;void 0===this._$AM&&(this._$Cv=e,null==(t=this._$AP)||t.call(this,e))}}class he{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,r,n,o){this.type=1,this._$AH=ie,this._$AN=void 0,this.element=e,this.name=t,this._$AM=n,this.options=o,r.length>2||""!==r[0]||""!==r[1]?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=ie}_$AI(e,t=this,r,n){const o=this.strings;let s=!1;if(void 0===o)e=de(this,e,t,0),s=!J(e)||e!==this._$AH&&e!==se,s&&(this._$AH=e);else{const n=e;let i,a;for(e=o[0],i=0;i<o.length-1;i++)a=de(this,n[r+i],t,i),a===se&&(a=this._$AH[i]),s||(s=!J(a)||a!==this._$AH[i]),a===ie?e=ie:e!==ie&&(e+=(a??"")+o[i+1]),this._$AH[i]=a}s&&!n&&this.j(e)}j(e){e===ie?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class me extends he{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===ie?void 0:e}}class ge extends he{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==ie)}}class ye extends he{constructor(e,t,r,n,o){super(e,t,r,n,o),this.type=5}_$AI(e,t=this){if((e=de(this,e,t,0)??ie)===se)return;const r=this._$AH,n=e===ie&&r!==ie||e.capture!==r.capture||e.once!==r.once||e.passive!==r.passive,o=e!==ie&&(r===ie||n);n&&this.element.removeEventListener(this.name,this,r),o&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t;"function"==typeof this._$AH?this._$AH.call((null==(t=this.options)?void 0:t.host)??this.element,e):this._$AH.handleEvent(e)}}class ve{constructor(e,t,r){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(e){de(this,e)}}const be=M.litHtmlPolyfillSupport;null==be||be(pe,fe),(M.litHtmlVersions??(M.litHtmlVersions=[])).push("3.3.2");const $e=globalThis;
19
+ /**
20
+ * @license
21
+ * Copyright 2017 Google LLC
22
+ * SPDX-License-Identifier: BSD-3-Clause
23
+ */let xe=class extends N{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e;const t=super.createRenderRoot();return(e=this.renderOptions).renderBefore??(e.renderBefore=t.firstChild),t}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=((e,t,r)=>{const n=(null==r?void 0:r.renderBefore)??t;let o=n._$litPart$;if(void 0===o){const e=(null==r?void 0:r.renderBefore)??null;n._$litPart$=o=new fe(t.insertBefore(V(),e),e,void 0,r??{})}return o._$AI(e),o})(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),null==(e=this._$Do)||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),null==(e=this._$Do)||e.setConnected(!1)}render(){return se}};xe._$litElement$=!0,xe.finalized=!0,null==(t=$e.litElementHydrateSupport)||t.call($e,{LitElement:xe});const we=$e.litElementPolyfillSupport;null==we||we({LitElement:xe}),($e.litElementVersions??($e.litElementVersions=[])).push("4.2.2");
24
+ /**
25
+ * @license
26
+ * Copyright 2017 Google LLC
27
+ * SPDX-License-Identifier: BSD-3-Clause
28
+ */
29
+ const _e=e=>(t,r)=>{void 0!==r?r.addInitializer(()=>{customElements.define(e,t)}):customElements.define(e,t)},ke={attribute:!0,type:String,converter:C,reflect:!1,hasChanged:I},Se=(e=ke,t,r)=>{const{kind:n,metadata:o}=r;let s=globalThis.litPropertyMetadata.get(o);if(void 0===s&&globalThis.litPropertyMetadata.set(o,s=new Map),"setter"===n&&((e=Object.create(e)).wrapped=!0),s.set(r.name,e),"accessor"===n){const{name:n}=r;return{set(r){const o=t.get.call(this);t.set.call(this,r),this.requestUpdate(n,o,e,!0,r)},init(t){return void 0!==t&&this.C(n,void 0,e,t),t}}}if("setter"===n){const{name:n}=r;return function(r){const o=this[n];t.call(this,r),this.requestUpdate(n,o,e,!0,r)}}throw Error("Unsupported decorator location: "+n)};
30
+ /**
31
+ * @license
32
+ * Copyright 2017 Google LLC
33
+ * SPDX-License-Identifier: BSD-3-Clause
34
+ */function je(e){return(t,r)=>"object"==typeof r?Se(e,t,r):((e,t,r)=>{const n=t.hasOwnProperty(r);return t.constructor.createProperty(r,e),n?Object.getOwnPropertyDescriptor(t,r):void 0})(e,t,r)}
35
+ /**
36
+ * @license
37
+ * Copyright 2017 Google LLC
38
+ * SPDX-License-Identifier: BSD-3-Clause
39
+ */function Oe(e){return je({...e,state:!0,attribute:!1})}
40
+ /**
41
+ * @license
42
+ * Copyright 2017 Google LLC
43
+ * SPDX-License-Identifier: BSD-3-Clause
44
+ */const Pe=b`
45
+ *, *::before, *::after {
46
+ box-sizing: border-box;
47
+ }
48
+
49
+ :host {
50
+ line-height: 1.5;
51
+ -webkit-font-smoothing: antialiased;
52
+ -moz-osx-font-smoothing: grayscale;
53
+ }
54
+
55
+ h1, h2, h3, h4, h5, h6 {
56
+ overflow-wrap: break-word;
57
+ margin: 0;
58
+ }
59
+
60
+ p {
61
+ margin: 0;
62
+ }
63
+
64
+ a {
65
+ color: var(--sl-color-primary);
66
+ text-decoration: none;
67
+ }
68
+
69
+ a:hover {
70
+ text-decoration: underline;
71
+ }
72
+
73
+ code, pre {
74
+ font-family: var(--sl-font-mono);
75
+ }
76
+
77
+ pre {
78
+ margin: 0;
79
+ overflow-x: auto;
80
+ }
81
+
82
+ button {
83
+ cursor: pointer;
84
+ font-family: inherit;
85
+ font-size: inherit;
86
+ border: none;
87
+ background: none;
88
+ padding: 0;
89
+ color: inherit;
90
+ }
91
+
92
+ input, textarea, select {
93
+ font-family: inherit;
94
+ font-size: inherit;
95
+ }
96
+
97
+ table {
98
+ border-collapse: collapse;
99
+ width: 100%;
100
+ }
101
+
102
+ img, svg {
103
+ display: block;
104
+ max-width: 100%;
105
+ }
106
+ `,Ee=b`
107
+ :host {
108
+ /* ── Typography ───────────────────────────── */
109
+ --sl-font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
110
+ --sl-font-mono: 'SF Mono', 'Fira Code', 'Fira Mono', Menlo, Consolas, monospace;
111
+
112
+ --sl-font-size-xs: 0.75rem;
113
+ --sl-font-size-sm: 0.8125rem;
114
+ --sl-font-size-base: 0.875rem;
115
+ --sl-font-size-md: 1rem;
116
+ --sl-font-size-lg: 1.125rem;
117
+ --sl-font-size-xl: 1.5rem;
118
+ --sl-font-size-2xl: 2rem;
119
+
120
+ /* ── Spacing ──────────────────────────────── */
121
+ --sl-spacing-xs: 0.25rem;
122
+ --sl-spacing-sm: 0.5rem;
123
+ --sl-spacing-md: 0.75rem;
124
+ --sl-spacing-lg: 1rem;
125
+ --sl-spacing-xl: 1.5rem;
126
+ --sl-spacing-2xl: 2rem;
127
+ --sl-spacing-3xl: 3rem;
128
+
129
+ /* ── Borders & Radius ─────────────────────── */
130
+ --sl-radius-sm: 4px;
131
+ --sl-radius-md: 6px;
132
+ --sl-radius-lg: 8px;
133
+ --sl-radius-xl: 12px;
134
+ --sl-radius-full: 9999px;
135
+
136
+ /* ── Shadows ──────────────────────────────── */
137
+ --sl-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
138
+ --sl-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
139
+ --sl-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
140
+ --sl-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
141
+
142
+ /* ── HTTP Method Colors ───────────────────── */
143
+ --sl-color-get: #10b981;
144
+ --sl-color-get-bg: rgba(16, 185, 129, 0.1);
145
+ --sl-color-post: #3b82f6;
146
+ --sl-color-post-bg: rgba(59, 130, 246, 0.1);
147
+ --sl-color-put: #f59e0b;
148
+ --sl-color-put-bg: rgba(245, 158, 11, 0.1);
149
+ --sl-color-delete: #ef4444;
150
+ --sl-color-delete-bg: rgba(239, 68, 68, 0.1);
151
+ --sl-color-patch: #8b5cf6;
152
+ --sl-color-patch-bg: rgba(139, 92, 246, 0.1);
153
+ --sl-color-options: #6b7280;
154
+ --sl-color-options-bg: rgba(107, 114, 128, 0.1);
155
+ --sl-color-head: #6b7280;
156
+ --sl-color-head-bg: rgba(107, 114, 128, 0.1);
157
+ --sl-color-trace: #6b7280;
158
+ --sl-color-trace-bg: rgba(107, 114, 128, 0.1);
159
+
160
+ /* ── Transitions ─────────────────────────── */
161
+ --sl-transition-fast: 150ms ease;
162
+ --sl-transition-base: 250ms ease;
163
+
164
+ /* ── Layout ───────────────────────────────── */
165
+ --sl-sidebar-width: 280px;
166
+ --sl-header-height: 56px;
167
+ }
168
+ `,Te=b`
169
+ /* ── Light Theme (default) ────────────────── */
170
+ :host,
171
+ :host([data-theme="light"]),
172
+ .sl-root[data-theme="light"] {
173
+ --sl-color-primary: #6366f1;
174
+ --sl-color-primary-hover: #4f46e5;
175
+ --sl-color-primary-text: #ffffff;
176
+
177
+ --sl-color-bg: #ffffff;
178
+ --sl-color-bg-subtle: #f8fafc;
179
+ --sl-color-surface: #ffffff;
180
+ --sl-color-surface-raised: #f1f5f9;
181
+
182
+ --sl-color-text: #0f172a;
183
+ --sl-color-text-secondary: #334155;
184
+ --sl-color-text-muted: #64748b;
185
+
186
+ --sl-color-border: #e2e8f0;
187
+ --sl-color-border-hover: #cbd5e1;
188
+
189
+ --sl-color-code-bg: #f8fafc;
190
+ --sl-color-code-text: #1e293b;
191
+
192
+ --sl-color-success: #10b981;
193
+ --sl-color-warning: #f59e0b;
194
+ --sl-color-danger: #ef4444;
195
+ --sl-color-info: #3b82f6;
196
+
197
+ --sl-color-badge-deprecated: #f59e0b;
198
+ --sl-color-badge-deprecated-bg: rgba(245, 158, 11, 0.1);
199
+ --sl-color-badge-required: #ef4444;
200
+
201
+ --sl-color-sidebar-bg: #f8fafc;
202
+ --sl-color-sidebar-hover: #e2e8f0;
203
+ --sl-color-sidebar-active: rgba(99, 102, 241, 0.08);
204
+
205
+ --sl-color-overlay: rgba(0, 0, 0, 0.4);
206
+ }
207
+
208
+ /* ── Dark Theme ───────────────────────────── */
209
+ :host([data-theme="dark"]),
210
+ .sl-root[data-theme="dark"] {
211
+ --sl-color-primary: #818cf8;
212
+ --sl-color-primary-hover: #6366f1;
213
+ --sl-color-primary-text: #ffffff;
214
+
215
+ --sl-color-bg: #0f172a;
216
+ --sl-color-bg-subtle: #1e293b;
217
+ --sl-color-surface: #1e293b;
218
+ --sl-color-surface-raised: #334155;
219
+
220
+ --sl-color-text: #f1f5f9;
221
+ --sl-color-text-secondary: #cbd5e1;
222
+ --sl-color-text-muted: #94a3b8;
223
+
224
+ --sl-color-border: #334155;
225
+ --sl-color-border-hover: #475569;
226
+
227
+ --sl-color-code-bg: #1e293b;
228
+ --sl-color-code-text: #e2e8f0;
229
+
230
+ --sl-color-success: #34d399;
231
+ --sl-color-warning: #fbbf24;
232
+ --sl-color-danger: #f87171;
233
+ --sl-color-info: #60a5fa;
234
+
235
+ --sl-color-badge-deprecated: #fbbf24;
236
+ --sl-color-badge-deprecated-bg: rgba(251, 191, 36, 0.15);
237
+ --sl-color-badge-required: #f87171;
238
+
239
+ --sl-color-sidebar-bg: #1e293b;
240
+ --sl-color-sidebar-hover: #334155;
241
+ --sl-color-sidebar-active: rgba(129, 140, 248, 0.12);
242
+
243
+ --sl-color-overlay: rgba(0, 0, 0, 0.6);
244
+
245
+ --sl-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
246
+ --sl-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
247
+ --sl-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -4px rgba(0, 0, 0, 0.3);
248
+ --sl-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
249
+ }
250
+ `;var Ae={};function Ce(e){try{return JSON.stringify(e,null,2)??String(e)}catch{return String(e)}}function Ie(e,...t){let r=0;return e.replace(/%[sdj%]/g,e=>{if("%%"===e)return"%";if(r>=t.length)return e;const n=t[r++];if("%s"===e)return String(n);if("%d"===e)return String(Number(n));if("%j"===e)try{return JSON.stringify(n)}catch{return"[Circular]"}return String(n)})}function Re(e,t){e.prototype=Object.create(t.prototype,{constructor:{value:e,writable:!0,configurable:!0}})}const Ne={inspect:Ce,format:Ie,inherits:Re},Me=i(Object.freeze(Object.defineProperty({__proto__:null,default:Ne,format:Ie,inherits:Re,inspect:Ce},Symbol.toStringTag,{value:"Module"})));var qe;function ze(){if(qe)return Ae;qe=1;const e=Me;Ae.format=e.format,Ae.inherits=e.inherits;Ae.swaggerParamRegExp=/\{([^/}]+)}/g;const t=["get","post","put","delete","patch","options","head","trace"];function r(e,t){if(e.url&&e.url.startsWith("/")){const r=new URL(t),n=r.protocol+"//"+r.hostname+e.url;return e.url=n,e}}return Ae.fixOasRelativeServers=function(e,n){e.openapi&&n&&(n.startsWith("http:")||n.startsWith("https:"))&&(e.servers&&e.servers.map(e=>r(e,n)),["paths","webhooks"].forEach(o=>{Object.keys(e[o]||[]).forEach(s=>{const i=e[o][s];Object.keys(i).forEach(e=>{"servers"===e?i[e].map(e=>r(e,n)):t.includes(e)&&i[e].servers&&i[e].servers.map(e=>r(e,n))})})}))},Ae}const Ue=/\r?\n/,Le=/\bono[ @]/;function De(e,t){let r=He(e.stack),n=t?t.stack:void 0;return r&&n?r+"\n\n"+n:r||n}function Be(e,t,r){r?Object.defineProperty(t,"stack",{get:()=>De({stack:e.get.apply(t)},r),enumerable:!1,configurable:!0}):function(e,t){Object.defineProperty(e,"stack",{get:()=>He(t.get.apply(e)),enumerable:!1,configurable:!0})}(t,e)}function He(e){if(e){let t,r=e.split(Ue);for(let e=0;e<r.length;e++){let n=r[e];if(Le.test(n))void 0===t&&(t=e);else if(void 0!==t){r.splice(t,e-t);break}}if(r.length>0)return r.join("\n")}return e}const Fe=["function","symbol","undefined"],Ve=["constructor","prototype","__proto__"],Je=Object.getPrototypeOf({});function We(){let e={},t=this;for(let r of Ge(t))if("string"==typeof r){let n=t[r],o=typeof n;Fe.includes(o)||(e[r]=n)}return e}function Ge(e,t=[]){let r=[];for(;e&&e!==Je;)r=r.concat(Object.getOwnPropertyNames(e),Object.getOwnPropertySymbols(e)),e=Object.getPrototypeOf(e);let n=new Set(r);for(let o of t.concat(Ve))n.delete(o);return n}const Ke=["name","message","stack"];function Ze(e,t,r){let n=e;return function(e,t){let r=Object.getOwnPropertyDescriptor(e,"stack");!function(e){return Boolean(e&&e.configurable&&"function"==typeof e.get)}(r)?function(e){return Boolean(!e||e.writable||"function"==typeof e.set)}(r)&&(e.stack=De(e,t)):Be(r,e,t)}(n,t),t&&"object"==typeof t&&function(e,t){let r=Ge(t,Ke),n=e,o=t;for(let s of r)if(void 0===n[s])try{n[s]=o[s]}catch(cd){}}(n,t),n.toJSON=We,r&&"object"==typeof r&&Object.assign(n,r),n}const Qe=Ye;function Ye(e,t){function r(...r){let{originalError:n,props:o,message:s}=function(e,t){let r,n,o,s="";return"string"==typeof e[0]?o=e:"string"==typeof e[1]?(e[0]instanceof Error?r=e[0]:n=e[0],o=e.slice(1)):(r=e[0],n=e[1],o=e.slice(2)),o.length>0&&(s=t.format?t.format.apply(void 0,o):o.join(" ")),t.concatMessages&&r&&r.message&&(s+=(s?" \n":"")+r.message),{originalError:r,props:n,message:s}}(r,t);return Ze(new e(s),n,o)}return t=function(e){return{concatMessages:void 0===(e=e||{}).concatMessages||Boolean(e.concatMessages),format:void 0!==e.format&&"function"==typeof e.format&&e.format}}(t),r[Symbol.species]=e,r}Ye.toJSON=function(e){return We.call(e)},Ye.extend=function(e,t,r){return r||t instanceof Error?Ze(e,t,r):t?Ze(e,void 0,t):Ze(e)};const Xe=tt;tt.error=new Qe(Error),tt.eval=new Qe(EvalError),tt.range=new Qe(RangeError),tt.reference=new Qe(ReferenceError),tt.syntax=new Qe(SyntaxError),tt.type=new Qe(TypeError),tt.uri=new Qe(URIError);const et=tt;function tt(...e){let t=e[0];if("object"==typeof t&&"string"==typeof t.name)for(let r of Object.values(et))if("function"==typeof r&&"ono"===r.name){let n=r[Symbol.species];if(n&&n!==Error&&(t instanceof n||t.name===n.name))return r.apply(void 0,e)}return tt.error.apply(void 0,e)}"object"==typeof module&&"object"==typeof module.exports&&(module.exports=Object.assign(module.exports.default,module.exports));const rt=i(Object.freeze(Object.defineProperty({__proto__:null,Ono:Qe,default:Xe,ono:Xe},Symbol.toStringTag,{value:"Module"})));var nt,ot={exports:{}},st={},it={},at={},lt={},ct={},pt={};function dt(){return nt||(nt=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.regexpCode=e.getEsmExportName=e.getProperty=e.safeStringify=e.stringify=e.strConcat=e.addCodeArg=e.str=e._=e.nil=e._Code=e.Name=e.IDENTIFIER=e._CodeOrName=void 0;class t{}e._CodeOrName=t,e.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class r extends t{constructor(t){if(super(),!e.IDENTIFIER.test(t))throw new Error("CodeGen: name must be a valid identifier");this.str=t}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}e.Name=r;class n extends t{constructor(e){super(),this._items="string"==typeof e?[e]:e}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const e=this._items[0];return""===e||'""'===e}get str(){var e;return null!==(e=this._str)&&void 0!==e?e:this._str=this._items.reduce((e,t)=>`${e}${t}`,"")}get names(){var e;return null!==(e=this._names)&&void 0!==e?e:this._names=this._items.reduce((e,t)=>(t instanceof r&&(e[t.str]=(e[t.str]||0)+1),e),{})}}function o(e,...t){const r=[e[0]];let o=0;for(;o<t.length;)a(r,t[o]),r.push(e[++o]);return new n(r)}e._Code=n,e.nil=new n(""),e._=o;const s=new n("+");function i(e,...t){const r=[c(e[0])];let o=0;for(;o<t.length;)r.push(s),a(r,t[o]),r.push(s,c(e[++o]));return function(e){let t=1;for(;t<e.length-1;){if(e[t]===s){const r=l(e[t-1],e[t+1]);if(void 0!==r){e.splice(t-1,3,r);continue}e[t++]="+"}t++}}(r),new n(r)}function a(e,t){var o;t instanceof n?e.push(...t._items):t instanceof r?e.push(t):e.push("number"==typeof(o=t)||"boolean"==typeof o||null===o?o:c(Array.isArray(o)?o.join(","):o))}function l(e,t){if('""'===t)return e;if('""'===e)return t;if("string"==typeof e){if(t instanceof r||'"'!==e[e.length-1])return;return"string"!=typeof t?`${e.slice(0,-1)}${t}"`:'"'===t[0]?e.slice(0,-1)+t.slice(1):void 0}return"string"!=typeof t||'"'!==t[0]||e instanceof r?void 0:`"${e}${t.slice(1)}`}function c(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}e.str=i,e.addCodeArg=a,e.strConcat=function(e,t){return t.emptyStr()?e:e.emptyStr()?t:i`${e}${t}`},e.stringify=function(e){return new n(c(e))},e.safeStringify=c,e.getProperty=function(t){return"string"==typeof t&&e.IDENTIFIER.test(t)?new n(`.${t}`):o`[${t}]`},e.getEsmExportName=function(t){if("string"==typeof t&&e.IDENTIFIER.test(t))return new n(`${t}`);throw new Error(`CodeGen: invalid export name: ${t}, use explicit $id name mapping`)},e.regexpCode=function(e){return new n(e.toString())}}(pt)),pt}var ut,ft,ht={};function mt(){return ut||(ut=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=dt();class r extends Error{constructor(e){super(`CodeGen: "code" for ${e} not defined`),this.value=e.value}}var n,o;(o=n||(e.UsedValueState=n={}))[o.Started=0]="Started",o[o.Completed=1]="Completed",e.varKinds={const:new t.Name("const"),let:new t.Name("let"),var:new t.Name("var")};class s{constructor({prefixes:e,parent:t}={}){this._names={},this._prefixes=e,this._parent=t}toName(e){return e instanceof t.Name?e:this.name(e)}name(e){return new t.Name(this._newName(e))}_newName(e){return`${e}${(this._names[e]||this._nameGroup(e)).index++}`}_nameGroup(e){var t,r;if((null===(r=null===(t=this._parent)||void 0===t?void 0:t._prefixes)||void 0===r?void 0:r.has(e))||this._prefixes&&!this._prefixes.has(e))throw new Error(`CodeGen: prefix "${e}" is not allowed in this scope`);return this._names[e]={prefix:e,index:0}}}e.Scope=s;class i extends t.Name{constructor(e,t){super(t),this.prefix=e}setValue(e,{property:r,itemIndex:n}){this.value=e,this.scopePath=t._`.${new t.Name(r)}[${n}]`}}e.ValueScopeName=i;const a=t._`\n`;e.ValueScope=class extends s{constructor(e){super(e),this._values={},this._scope=e.scope,this.opts={...e,_n:e.lines?a:t.nil}}get(){return this._scope}name(e){return new i(e,this._newName(e))}value(e,t){var r;if(void 0===t.ref)throw new Error("CodeGen: ref must be passed in value");const n=this.toName(e),{prefix:o}=n,s=null!==(r=t.key)&&void 0!==r?r:t.ref;let i=this._values[o];if(i){const e=i.get(s);if(e)return e}else i=this._values[o]=new Map;i.set(s,n);const a=this._scope[o]||(this._scope[o]=[]),l=a.length;return a[l]=t.ref,n.setValue(t,{property:o,itemIndex:l}),n}getValue(e,t){const r=this._values[e];if(r)return r.get(t)}scopeRefs(e,r=this._values){return this._reduceValues(r,r=>{if(void 0===r.scopePath)throw new Error(`CodeGen: name "${r}" has no value`);return t._`${e}${r.scopePath}`})}scopeCode(e=this._values,t,r){return this._reduceValues(e,e=>{if(void 0===e.value)throw new Error(`CodeGen: name "${e}" has no value`);return e.value.code},t,r)}_reduceValues(o,s,i={},a){let l=t.nil;for(const c in o){const p=o[c];if(!p)continue;const d=i[c]=i[c]||new Map;p.forEach(o=>{if(d.has(o))return;d.set(o,n.Started);let i=s(o);if(i){const r=this.opts.es5?e.varKinds.var:e.varKinds.const;l=t._`${l}${r} ${o} = ${i};${this.opts._n}`}else{if(!(i=null==a?void 0:a(o)))throw new r(o);l=t._`${l}${i}${this.opts._n}`}d.set(o,n.Completed)})}return l}}}(ht)),ht}function gt(){return ft||(ft=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.or=e.and=e.not=e.CodeGen=e.operators=e.varKinds=e.ValueScopeName=e.ValueScope=e.Scope=e.Name=e.regexpCode=e.stringify=e.getProperty=e.nil=e.strConcat=e.str=e._=void 0;const t=dt(),r=mt();var n=dt();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return n._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return n.str}}),Object.defineProperty(e,"strConcat",{enumerable:!0,get:function(){return n.strConcat}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return n.nil}}),Object.defineProperty(e,"getProperty",{enumerable:!0,get:function(){return n.getProperty}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return n.stringify}}),Object.defineProperty(e,"regexpCode",{enumerable:!0,get:function(){return n.regexpCode}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return n.Name}});var o=mt();Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return o.Scope}}),Object.defineProperty(e,"ValueScope",{enumerable:!0,get:function(){return o.ValueScope}}),Object.defineProperty(e,"ValueScopeName",{enumerable:!0,get:function(){return o.ValueScopeName}}),Object.defineProperty(e,"varKinds",{enumerable:!0,get:function(){return o.varKinds}}),e.operators={GT:new t._Code(">"),GTE:new t._Code(">="),LT:new t._Code("<"),LTE:new t._Code("<="),EQ:new t._Code("==="),NEQ:new t._Code("!=="),NOT:new t._Code("!"),OR:new t._Code("||"),AND:new t._Code("&&"),ADD:new t._Code("+")};class s{optimizeNodes(){return this}optimizeNames(e,t){return this}}class i extends s{constructor(e,t,r){super(),this.varKind=e,this.name=t,this.rhs=r}render({es5:e,_n:t}){const n=e?r.varKinds.var:this.varKind,o=void 0===this.rhs?"":` = ${this.rhs}`;return`${n} ${this.name}${o};`+t}optimizeNames(e,t){if(e[this.name.str])return this.rhs&&(this.rhs=E(this.rhs,e,t)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class a extends s{constructor(e,t,r){super(),this.lhs=e,this.rhs=t,this.sideEffects=r}render({_n:e}){return`${this.lhs} = ${this.rhs};`+e}optimizeNames(e,r){if(!(this.lhs instanceof t.Name)||e[this.lhs.str]||this.sideEffects)return this.rhs=E(this.rhs,e,r),this}get names(){return P(this.lhs instanceof t.Name?{}:{...this.lhs.names},this.rhs)}}class l extends a{constructor(e,t,r,n){super(e,r,n),this.op=t}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}}class c extends s{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`${this.label}:`+e}}class p extends s{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`break${this.label?` ${this.label}`:""};`+e}}class d extends s{constructor(e){super(),this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}}class u extends s{constructor(e){super(),this.code=e}render({_n:e}){return`${this.code};`+e}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(e,t){return this.code=E(this.code,e,t),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class f extends s{constructor(e=[]){super(),this.nodes=e}render(e){return this.nodes.reduce((t,r)=>t+r.render(e),"")}optimizeNodes(){const{nodes:e}=this;let t=e.length;for(;t--;){const r=e[t].optimizeNodes();Array.isArray(r)?e.splice(t,1,...r):r?e[t]=r:e.splice(t,1)}return e.length>0?this:void 0}optimizeNames(e,t){const{nodes:r}=this;let n=r.length;for(;n--;){const o=r[n];o.optimizeNames(e,t)||(T(e,o.names),r.splice(n,1))}return r.length>0?this:void 0}get names(){return this.nodes.reduce((e,t)=>O(e,t.names),{})}}class h extends f{render(e){return"{"+e._n+super.render(e)+"}"+e._n}}class m extends f{}class g extends h{}g.kind="else";class y extends h{constructor(e,t){super(t),this.condition=e}render(e){let t=`if(${this.condition})`+super.render(e);return this.else&&(t+="else "+this.else.render(e)),t}optimizeNodes(){super.optimizeNodes();const e=this.condition;if(!0===e)return this.nodes;let t=this.else;if(t){const e=t.optimizeNodes();t=this.else=Array.isArray(e)?new g(e):e}return t?!1===e?t instanceof y?t:t.nodes:this.nodes.length?this:new y(A(e),t instanceof y?[t]:t.nodes):!1!==e&&this.nodes.length?this:void 0}optimizeNames(e,t){var r;if(this.else=null===(r=this.else)||void 0===r?void 0:r.optimizeNames(e,t),super.optimizeNames(e,t)||this.else)return this.condition=E(this.condition,e,t),this}get names(){const e=super.names;return P(e,this.condition),this.else&&O(e,this.else.names),e}}y.kind="if";class v extends h{}v.kind="for";class b extends v{constructor(e){super(),this.iteration=e}render(e){return`for(${this.iteration})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iteration=E(this.iteration,e,t),this}get names(){return O(super.names,this.iteration.names)}}class $ extends v{constructor(e,t,r,n){super(),this.varKind=e,this.name=t,this.from=r,this.to=n}render(e){const t=e.es5?r.varKinds.var:this.varKind,{name:n,from:o,to:s}=this;return`for(${t} ${n}=${o}; ${n}<${s}; ${n}++)`+super.render(e)}get names(){const e=P(super.names,this.from);return P(e,this.to)}}class x extends v{constructor(e,t,r,n){super(),this.loop=e,this.varKind=t,this.name=r,this.iterable=n}render(e){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iterable=E(this.iterable,e,t),this}get names(){return O(super.names,this.iterable.names)}}class w extends h{constructor(e,t,r){super(),this.name=e,this.args=t,this.async=r}render(e){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(e)}}w.kind="func";class _ extends f{render(e){return"return "+super.render(e)}}_.kind="return";class k extends h{render(e){let t="try"+super.render(e);return this.catch&&(t+=this.catch.render(e)),this.finally&&(t+=this.finally.render(e)),t}optimizeNodes(){var e,t;return super.optimizeNodes(),null===(e=this.catch)||void 0===e||e.optimizeNodes(),null===(t=this.finally)||void 0===t||t.optimizeNodes(),this}optimizeNames(e,t){var r,n;return super.optimizeNames(e,t),null===(r=this.catch)||void 0===r||r.optimizeNames(e,t),null===(n=this.finally)||void 0===n||n.optimizeNames(e,t),this}get names(){const e=super.names;return this.catch&&O(e,this.catch.names),this.finally&&O(e,this.finally.names),e}}class S extends h{constructor(e){super(),this.error=e}render(e){return`catch(${this.error})`+super.render(e)}}S.kind="catch";class j extends h{render(e){return"finally"+super.render(e)}}j.kind="finally";function O(e,t){for(const r in t)e[r]=(e[r]||0)+(t[r]||0);return e}function P(e,r){return r instanceof t._CodeOrName?O(e,r.names):e}function E(e,r,n){return e instanceof t.Name?s(e):(o=e)instanceof t._Code&&o._items.some(e=>e instanceof t.Name&&1===r[e.str]&&void 0!==n[e.str])?new t._Code(e._items.reduce((e,r)=>(r instanceof t.Name&&(r=s(r)),r instanceof t._Code?e.push(...r._items):e.push(r),e),[])):e;var o;function s(e){const t=n[e.str];return void 0===t||1!==r[e.str]?e:(delete r[e.str],t)}}function T(e,t){for(const r in t)e[r]=(e[r]||0)-(t[r]||0)}function A(e){return"boolean"==typeof e||"number"==typeof e||null===e?!e:t._`!${N(e)}`}e.CodeGen=class{constructor(e,t={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...t,_n:t.lines?"\n":""},this._extScope=e,this._scope=new r.Scope({parent:e}),this._nodes=[new m]}toString(){return this._root.render(this.opts)}name(e){return this._scope.name(e)}scopeName(e){return this._extScope.name(e)}scopeValue(e,t){const r=this._extScope.value(e,t);return(this._values[r.prefix]||(this._values[r.prefix]=new Set)).add(r),r}getScopeValue(e,t){return this._extScope.getValue(e,t)}scopeRefs(e){return this._extScope.scopeRefs(e,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(e,t,r,n){const o=this._scope.toName(t);return void 0!==r&&n&&(this._constants[o.str]=r),this._leafNode(new i(e,o,r)),o}const(e,t,n){return this._def(r.varKinds.const,e,t,n)}let(e,t,n){return this._def(r.varKinds.let,e,t,n)}var(e,t,n){return this._def(r.varKinds.var,e,t,n)}assign(e,t,r){return this._leafNode(new a(e,t,r))}add(t,r){return this._leafNode(new l(t,e.operators.ADD,r))}code(e){return"function"==typeof e?e():e!==t.nil&&this._leafNode(new u(e)),this}object(...e){const r=["{"];for(const[n,o]of e)r.length>1&&r.push(","),r.push(n),(n!==o||this.opts.es5)&&(r.push(":"),(0,t.addCodeArg)(r,o));return r.push("}"),new t._Code(r)}if(e,t,r){if(this._blockNode(new y(e)),t&&r)this.code(t).else().code(r).endIf();else if(t)this.code(t).endIf();else if(r)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(e){return this._elseNode(new y(e))}else(){return this._elseNode(new g)}endIf(){return this._endBlockNode(y,g)}_for(e,t){return this._blockNode(e),t&&this.code(t).endFor(),this}for(e,t){return this._for(new b(e),t)}forRange(e,t,n,o,s=(this.opts.es5?r.varKinds.var:r.varKinds.let)){const i=this._scope.toName(e);return this._for(new $(s,i,t,n),()=>o(i))}forOf(e,n,o,s=r.varKinds.const){const i=this._scope.toName(e);if(this.opts.es5){const e=n instanceof t.Name?n:this.var("_arr",n);return this.forRange("_i",0,t._`${e}.length`,r=>{this.var(i,t._`${e}[${r}]`),o(i)})}return this._for(new x("of",s,i,n),()=>o(i))}forIn(e,n,o,s=(this.opts.es5?r.varKinds.var:r.varKinds.const)){if(this.opts.ownProperties)return this.forOf(e,t._`Object.keys(${n})`,o);const i=this._scope.toName(e);return this._for(new x("in",s,i,n),()=>o(i))}endFor(){return this._endBlockNode(v)}label(e){return this._leafNode(new c(e))}break(e){return this._leafNode(new p(e))}return(e){const t=new _;if(this._blockNode(t),this.code(e),1!==t.nodes.length)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(_)}try(e,t,r){if(!t&&!r)throw new Error('CodeGen: "try" without "catch" and "finally"');const n=new k;if(this._blockNode(n),this.code(e),t){const e=this.name("e");this._currNode=n.catch=new S(e),t(e)}return r&&(this._currNode=n.finally=new j,this.code(r)),this._endBlockNode(S,j)}throw(e){return this._leafNode(new d(e))}block(e,t){return this._blockStarts.push(this._nodes.length),e&&this.code(e).endBlock(t),this}endBlock(e){const t=this._blockStarts.pop();if(void 0===t)throw new Error("CodeGen: not in self-balancing block");const r=this._nodes.length-t;if(r<0||void 0!==e&&r!==e)throw new Error(`CodeGen: wrong number of nodes: ${r} vs ${e} expected`);return this._nodes.length=t,this}func(e,r=t.nil,n,o){return this._blockNode(new w(e,r,n)),o&&this.code(o).endFunc(),this}endFunc(){return this._endBlockNode(w)}optimize(e=1){for(;e-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(e){return this._currNode.nodes.push(e),this}_blockNode(e){this._currNode.nodes.push(e),this._nodes.push(e)}_endBlockNode(e,t){const r=this._currNode;if(r instanceof e||t&&r instanceof t)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${t?`${e.kind}/${t.kind}`:e.kind}"`)}_elseNode(e){const t=this._currNode;if(!(t instanceof y))throw new Error('CodeGen: "else" without "if"');return this._currNode=t.else=e,this}get _root(){return this._nodes[0]}get _currNode(){const e=this._nodes;return e[e.length-1]}set _currNode(e){const t=this._nodes;t[t.length-1]=e}},e.not=A;const C=R(e.operators.AND);e.and=function(...e){return e.reduce(C)};const I=R(e.operators.OR);function R(e){return(r,n)=>r===t.nil?n:n===t.nil?r:t._`${N(r)} ${e} ${N(n)}`}function N(e){return e instanceof t.Name?e:t._`(${e})`}e.or=function(...e){return e.reduce(I)}}(ct)),ct}var yt,vt={};function bt(){if(yt)return vt;yt=1,Object.defineProperty(vt,"__esModule",{value:!0}),vt.checkStrictMode=vt.getErrorPath=vt.Type=vt.useFunc=vt.setEvaluated=vt.evaluatedPropsToName=vt.mergeEvaluated=vt.eachItem=vt.unescapeJsonPointer=vt.escapeJsonPointer=vt.escapeFragment=vt.unescapeFragment=vt.schemaRefOrVal=vt.schemaHasRulesButRef=vt.schemaHasRules=vt.checkUnknownRules=vt.alwaysValidSchema=vt.toHash=void 0;const e=gt(),t=dt();function r(e,t=e.schema){const{opts:r,self:n}=e;if(!r.strictSchema)return;if("boolean"==typeof t)return;const o=n.RULES.keywords;for(const s in t)o[s]||u(e,`unknown keyword: "${s}"`)}function n(e,t){if("boolean"==typeof e)return!e;for(const r in e)if(t[r])return!0;return!1}function o(e){return"number"==typeof e?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}function s(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function i({mergeNames:t,mergeToName:r,mergeValues:n,resultToName:o}){return(s,i,a,l)=>{const c=void 0===a?i:a instanceof e.Name?(i instanceof e.Name?t(s,i,a):r(s,i,a),a):i instanceof e.Name?(r(s,a,i),i):n(i,a);return l!==e.Name||c instanceof e.Name?c:o(s,c)}}function a(t,r){if(!0===r)return t.var("props",!0);const n=t.var("props",e._`{}`);return void 0!==r&&l(t,n,r),n}function l(t,r,n){Object.keys(n).forEach(n=>t.assign(e._`${r}${(0,e.getProperty)(n)}`,!0))}vt.toHash=function(e){const t={};for(const r of e)t[r]=!0;return t},vt.alwaysValidSchema=function(e,t){return"boolean"==typeof t?t:0===Object.keys(t).length||(r(e,t),!n(t,e.self.RULES.all))},vt.checkUnknownRules=r,vt.schemaHasRules=n,vt.schemaHasRulesButRef=function(e,t){if("boolean"==typeof e)return!e;for(const r in e)if("$ref"!==r&&t.all[r])return!0;return!1},vt.schemaRefOrVal=function({topSchemaRef:t,schemaPath:r},n,o,s){if(!s){if("number"==typeof n||"boolean"==typeof n)return n;if("string"==typeof n)return e._`${n}`}return e._`${t}${r}${(0,e.getProperty)(o)}`},vt.unescapeFragment=function(e){return s(decodeURIComponent(e))},vt.escapeFragment=function(e){return encodeURIComponent(o(e))},vt.escapeJsonPointer=o,vt.unescapeJsonPointer=s,vt.eachItem=function(e,t){if(Array.isArray(e))for(const r of e)t(r);else t(e)},vt.mergeEvaluated={props:i({mergeNames:(t,r,n)=>t.if(e._`${n} !== true && ${r} !== undefined`,()=>{t.if(e._`${r} === true`,()=>t.assign(n,!0),()=>t.assign(n,e._`${n} || {}`).code(e._`Object.assign(${n}, ${r})`))}),mergeToName:(t,r,n)=>t.if(e._`${n} !== true`,()=>{!0===r?t.assign(n,!0):(t.assign(n,e._`${n} || {}`),l(t,n,r))}),mergeValues:(e,t)=>!0===e||{...e,...t},resultToName:a}),items:i({mergeNames:(t,r,n)=>t.if(e._`${n} !== true && ${r} !== undefined`,()=>t.assign(n,e._`${r} === true ? true : ${n} > ${r} ? ${n} : ${r}`)),mergeToName:(t,r,n)=>t.if(e._`${n} !== true`,()=>t.assign(n,!0===r||e._`${n} > ${r} ? ${n} : ${r}`)),mergeValues:(e,t)=>!0===e||Math.max(e,t),resultToName:(e,t)=>e.var("items",t)})},vt.evaluatedPropsToName=a,vt.setEvaluated=l;const c={};var p,d;function u(e,t,r=e.opts.strictSchema){if(r){if(t=`strict mode: ${t}`,!0===r)throw new Error(t);e.self.logger.warn(t)}}return vt.useFunc=function(e,r){return e.scopeValue("func",{ref:r,code:c[r.code]||(c[r.code]=new t._Code(r.code))})},(d=p||(vt.Type=p={}))[d.Num=0]="Num",d[d.Str=1]="Str",vt.getErrorPath=function(t,r,n){if(t instanceof e.Name){const o=r===p.Num;return n?o?e._`"[" + ${t} + "]"`:e._`"['" + ${t} + "']"`:o?e._`"/" + ${t}`:e._`"/" + ${t}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return n?(0,e.getProperty)(t).toString():"/"+o(t)},vt.checkStrictMode=u,vt}var $t,xt,wt,_t={};function kt(){if($t)return _t;$t=1,Object.defineProperty(_t,"__esModule",{value:!0});const e=gt(),t={data:new e.Name("data"),valCxt:new e.Name("valCxt"),instancePath:new e.Name("instancePath"),parentData:new e.Name("parentData"),parentDataProperty:new e.Name("parentDataProperty"),rootData:new e.Name("rootData"),dynamicAnchors:new e.Name("dynamicAnchors"),vErrors:new e.Name("vErrors"),errors:new e.Name("errors"),this:new e.Name("this"),self:new e.Name("self"),scope:new e.Name("scope"),json:new e.Name("json"),jsonPos:new e.Name("jsonPos"),jsonLen:new e.Name("jsonLen"),jsonPart:new e.Name("jsonPart")};return _t.default=t,_t}function St(){return xt||(xt=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.extendErrors=e.resetErrorsCount=e.reportExtraError=e.reportError=e.keyword$DataError=e.keywordError=void 0;const t=gt(),r=bt(),n=kt();function o(e,r){const o=e.const("err",r);e.if(t._`${n.default.vErrors} === null`,()=>e.assign(n.default.vErrors,t._`[${o}]`),t._`${n.default.vErrors}.push(${o})`),e.code(t._`${n.default.errors}++`)}function s(e,r){const{gen:n,validateName:o,schemaEnv:s}=e;s.$async?n.throw(t._`new ${e.ValidationError}(${r})`):(n.assign(t._`${o}.errors`,r),n.return(!1))}e.keywordError={message:({keyword:e})=>t.str`must pass "${e}" keyword validation`},e.keyword$DataError={message:({keyword:e,schemaType:r})=>r?t.str`"${e}" keyword must be ${r} ($data)`:t.str`"${e}" keyword is invalid ($data)`},e.reportError=function(r,n=e.keywordError,i,l){const{it:c}=r,{gen:p,compositeRule:d,allErrors:u}=c,f=a(r,n,i);(null!=l?l:d||u)?o(p,f):s(c,t._`[${f}]`)},e.reportExtraError=function(t,r=e.keywordError,i){const{it:l}=t,{gen:c,compositeRule:p,allErrors:d}=l;o(c,a(t,r,i)),p||d||s(l,n.default.vErrors)},e.resetErrorsCount=function(e,r){e.assign(n.default.errors,r),e.if(t._`${n.default.vErrors} !== null`,()=>e.if(r,()=>e.assign(t._`${n.default.vErrors}.length`,r),()=>e.assign(n.default.vErrors,null)))},e.extendErrors=function({gen:e,keyword:r,schemaValue:o,data:s,errsCount:i,it:a}){if(void 0===i)throw new Error("ajv implementation error");const l=e.name("err");e.forRange("i",i,n.default.errors,i=>{e.const(l,t._`${n.default.vErrors}[${i}]`),e.if(t._`${l}.instancePath === undefined`,()=>e.assign(t._`${l}.instancePath`,(0,t.strConcat)(n.default.instancePath,a.errorPath))),e.assign(t._`${l}.schemaPath`,t.str`${a.errSchemaPath}/${r}`),a.opts.verbose&&(e.assign(t._`${l}.schema`,o),e.assign(t._`${l}.data`,s))})};const i={keyword:new t.Name("keyword"),schemaPath:new t.Name("schemaPath"),params:new t.Name("params"),propertyName:new t.Name("propertyName"),message:new t.Name("message"),schema:new t.Name("schema"),parentSchema:new t.Name("parentSchema")};function a(e,r,o){const{createErrors:s}=e.it;return!1===s?t._`{}`:function(e,r,o={}){const{gen:s,it:a}=e,p=[l(a,o),c(e,o)];return function(e,{params:r,message:o},s){const{keyword:a,data:l,schemaValue:c,it:p}=e,{opts:d,propertyName:u,topSchemaRef:f,schemaPath:h}=p;s.push([i.keyword,a],[i.params,"function"==typeof r?r(e):r||t._`{}`]),d.messages&&s.push([i.message,"function"==typeof o?o(e):o]);d.verbose&&s.push([i.schema,c],[i.parentSchema,t._`${f}${h}`],[n.default.data,l]);u&&s.push([i.propertyName,u])}(e,r,p),s.object(...p)}(e,r,o)}function l({errorPath:e},{instancePath:o}){const s=o?t.str`${e}${(0,r.getErrorPath)(o,r.Type.Str)}`:e;return[n.default.instancePath,(0,t.strConcat)(n.default.instancePath,s)]}function c({keyword:e,it:{errSchemaPath:n}},{schemaPath:o,parentSchema:s}){let a=s?n:t.str`${n}/${e}`;return o&&(a=t.str`${a}${(0,r.getErrorPath)(o,r.Type.Str)}`),[i.schemaPath,a]}}(lt)),lt}function jt(){if(wt)return at;wt=1,Object.defineProperty(at,"__esModule",{value:!0}),at.boolOrEmptySchema=at.topBoolOrEmptySchema=void 0;const e=St(),t=gt(),r=kt(),n={message:"boolean schema is false"};function o(t,r){const{gen:o,data:s}=t,i={gen:o,keyword:"false schema",data:s,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:t};(0,e.reportError)(i,n,void 0,r)}return at.topBoolOrEmptySchema=function(e){const{gen:n,schema:s,validateName:i}=e;!1===s?o(e,!1):"object"==typeof s&&!0===s.$async?n.return(r.default.data):(n.assign(t._`${i}.errors`,null),n.return(!0))},at.boolOrEmptySchema=function(e,t){const{gen:r,schema:n}=e;!1===n?(r.var(t,!1),o(e)):r.var(t,!0)},at}var Ot,Pt={},Et={};function Tt(){if(Ot)return Et;Ot=1,Object.defineProperty(Et,"__esModule",{value:!0}),Et.getRules=Et.isJSONType=void 0;const e=new Set(["string","number","integer","boolean","null","object","array"]);return Et.isJSONType=function(t){return"string"==typeof t&&e.has(t)},Et.getRules=function(){const e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}},Et}var At,Ct,It={};function Rt(){if(At)return It;function e(e,r){return r.rules.some(r=>t(e,r))}function t(e,t){var r;return void 0!==e[t.keyword]||(null===(r=t.definition.implements)||void 0===r?void 0:r.some(t=>void 0!==e[t]))}return At=1,Object.defineProperty(It,"__esModule",{value:!0}),It.shouldUseRule=It.shouldUseGroup=It.schemaHasRulesForType=void 0,It.schemaHasRulesForType=function({schema:t,self:r},n){const o=r.RULES.types[n];return o&&!0!==o&&e(t,o)},It.shouldUseGroup=e,It.shouldUseRule=t,It}function Nt(){if(Ct)return Pt;Ct=1,Object.defineProperty(Pt,"__esModule",{value:!0}),Pt.reportTypeError=Pt.checkDataTypes=Pt.checkDataType=Pt.coerceAndCheckDataType=Pt.getJSONTypes=Pt.getSchemaTypes=Pt.DataType=void 0;const e=Tt(),t=Rt(),r=St(),n=gt(),o=bt();var s,i;function a(t){const r=Array.isArray(t)?t:t?[t]:[];if(r.every(e.isJSONType))return r;throw new Error("type must be JSONType or JSONType[]: "+r.join(","))}(i=s||(Pt.DataType=s={}))[i.Correct=0]="Correct",i[i.Wrong=1]="Wrong",Pt.getSchemaTypes=function(e){const t=a(e.type);if(t.includes("null")){if(!1===e.nullable)throw new Error("type: null contradicts nullable: false")}else{if(!t.length&&void 0!==e.nullable)throw new Error('"nullable" cannot be used without "type"');!0===e.nullable&&t.push("null")}return t},Pt.getJSONTypes=a,Pt.coerceAndCheckDataType=function(e,r){const{gen:o,data:i,opts:a}=e,c=function(e,t){return t?e.filter(e=>l.has(e)||"array"===t&&"array"===e):[]}(r,a.coerceTypes),d=r.length>0&&!(0===c.length&&1===r.length&&(0,t.schemaHasRulesForType)(e,r[0]));if(d){const t=p(r,i,a.strictNumbers,s.Wrong);o.if(t,()=>{c.length?function(e,t,r){const{gen:o,data:s,opts:i}=e,a=o.let("dataType",n._`typeof ${s}`),c=o.let("coerced",n._`undefined`);"array"===i.coerceTypes&&o.if(n._`${a} == 'object' && Array.isArray(${s}) && ${s}.length == 1`,()=>o.assign(s,n._`${s}[0]`).assign(a,n._`typeof ${s}`).if(p(t,s,i.strictNumbers),()=>o.assign(c,s)));o.if(n._`${c} !== undefined`);for(const n of r)(l.has(n)||"array"===n&&"array"===i.coerceTypes)&&d(n);function d(e){switch(e){case"string":return void o.elseIf(n._`${a} == "number" || ${a} == "boolean"`).assign(c,n._`"" + ${s}`).elseIf(n._`${s} === null`).assign(c,n._`""`);case"number":return void o.elseIf(n._`${a} == "boolean" || ${s} === null
251
+ || (${a} == "string" && ${s} && ${s} == +${s})`).assign(c,n._`+${s}`);case"integer":return void o.elseIf(n._`${a} === "boolean" || ${s} === null
252
+ || (${a} === "string" && ${s} && ${s} == +${s} && !(${s} % 1))`).assign(c,n._`+${s}`);case"boolean":return void o.elseIf(n._`${s} === "false" || ${s} === 0 || ${s} === null`).assign(c,!1).elseIf(n._`${s} === "true" || ${s} === 1`).assign(c,!0);case"null":return o.elseIf(n._`${s} === "" || ${s} === 0 || ${s} === false`),void o.assign(c,null);case"array":o.elseIf(n._`${a} === "string" || ${a} === "number"
253
+ || ${a} === "boolean" || ${s} === null`).assign(c,n._`[${s}]`)}}o.else(),u(e),o.endIf(),o.if(n._`${c} !== undefined`,()=>{o.assign(s,c),function({gen:e,parentData:t,parentDataProperty:r},o){e.if(n._`${t} !== undefined`,()=>e.assign(n._`${t}[${r}]`,o))}(e,c)})}(e,r,c):u(e)})}return d};const l=new Set(["string","number","integer","boolean","null"]);function c(e,t,r,o=s.Correct){const i=o===s.Correct?n.operators.EQ:n.operators.NEQ;let a;switch(e){case"null":return n._`${t} ${i} null`;case"array":a=n._`Array.isArray(${t})`;break;case"object":a=n._`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":a=l(n._`!(${t} % 1) && !isNaN(${t})`);break;case"number":a=l();break;default:return n._`typeof ${t} ${i} ${e}`}return o===s.Correct?a:(0,n.not)(a);function l(e=n.nil){return(0,n.and)(n._`typeof ${t} == "number"`,e,r?n._`isFinite(${t})`:n.nil)}}function p(e,t,r,s){if(1===e.length)return c(e[0],t,r,s);let i;const a=(0,o.toHash)(e);if(a.array&&a.object){const e=n._`typeof ${t} != "object"`;i=a.null?e:n._`!${t} || ${e}`,delete a.null,delete a.array,delete a.object}else i=n.nil;a.number&&delete a.integer;for(const o in a)i=(0,n.and)(i,c(o,t,r,s));return i}Pt.checkDataType=c,Pt.checkDataTypes=p;const d={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>"string"==typeof e?n._`{type: ${e}}`:n._`{type: ${t}}`};function u(e){const t=function(e){const{gen:t,data:r,schema:n}=e,s=(0,o.schemaRefOrVal)(e,n,"type");return{gen:t,keyword:"type",data:r,schema:n.type,schemaCode:s,schemaValue:s,parentSchema:n,params:{},it:e}}(e);(0,r.reportError)(t,d)}return Pt.reportTypeError=u,Pt}var Mt,qt={};function zt(){if(Mt)return qt;Mt=1,Object.defineProperty(qt,"__esModule",{value:!0}),qt.assignDefaults=void 0;const e=gt(),t=bt();function r(r,n,o){const{gen:s,compositeRule:i,data:a,opts:l}=r;if(void 0===o)return;const c=e._`${a}${(0,e.getProperty)(n)}`;if(i)return void(0,t.checkStrictMode)(r,`default is ignored for: ${c}`);let p=e._`${c} === undefined`;"empty"===l.useDefaults&&(p=e._`${p} || ${c} === null || ${c} === ""`),s.if(p,e._`${c} = ${(0,e.stringify)(o)}`)}return qt.assignDefaults=function(e,t){const{properties:n,items:o}=e.schema;if("object"===t&&n)for(const s in n)r(e,s,n[s].default);else"array"===t&&Array.isArray(o)&&o.forEach((t,n)=>r(e,n,t.default))},qt}var Ut,Lt,Dt={},Bt={};function Ht(){if(Ut)return Bt;Ut=1,Object.defineProperty(Bt,"__esModule",{value:!0}),Bt.validateUnion=Bt.validateArray=Bt.usePattern=Bt.callValidateCode=Bt.schemaProperties=Bt.allSchemaProperties=Bt.noPropertyInData=Bt.propertyInData=Bt.isOwnProperty=Bt.hasPropFunc=Bt.reportMissingProp=Bt.checkMissingProp=Bt.checkReportMissingProp=void 0;const e=gt(),t=bt(),r=kt(),n=bt();function o(t){return t.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:e._`Object.prototype.hasOwnProperty`})}function s(t,r,n){return e._`${o(t)}.call(${r}, ${n})`}function i(t,r,n,o){const i=e._`${r}${(0,e.getProperty)(n)} === undefined`;return o?(0,e.or)(i,(0,e.not)(s(t,r,n))):i}function a(e){return e?Object.keys(e).filter(e=>"__proto__"!==e):[]}Bt.checkReportMissingProp=function(t,r){const{gen:n,data:o,it:s}=t;n.if(i(n,o,r,s.opts.ownProperties),()=>{t.setParams({missingProperty:e._`${r}`},!0),t.error()})},Bt.checkMissingProp=function({gen:t,data:r,it:{opts:n}},o,s){return(0,e.or)(...o.map(o=>(0,e.and)(i(t,r,o,n.ownProperties),e._`${s} = ${o}`)))},Bt.reportMissingProp=function(e,t){e.setParams({missingProperty:t},!0),e.error()},Bt.hasPropFunc=o,Bt.isOwnProperty=s,Bt.propertyInData=function(t,r,n,o){const i=e._`${r}${(0,e.getProperty)(n)} !== undefined`;return o?e._`${i} && ${s(t,r,n)}`:i},Bt.noPropertyInData=i,Bt.allSchemaProperties=a,Bt.schemaProperties=function(e,r){return a(r).filter(n=>!(0,t.alwaysValidSchema)(e,r[n]))},Bt.callValidateCode=function({schemaCode:t,data:n,it:{gen:o,topSchemaRef:s,schemaPath:i,errorPath:a},it:l},c,p,d){const u=d?e._`${t}, ${n}, ${s}${i}`:n,f=[[r.default.instancePath,(0,e.strConcat)(r.default.instancePath,a)],[r.default.parentData,l.parentData],[r.default.parentDataProperty,l.parentDataProperty],[r.default.rootData,r.default.rootData]];l.opts.dynamicRef&&f.push([r.default.dynamicAnchors,r.default.dynamicAnchors]);const h=e._`${u}, ${o.object(...f)}`;return p!==e.nil?e._`${c}.call(${p}, ${h})`:e._`${c}(${h})`};const l=e._`new RegExp`;return Bt.usePattern=function({gen:t,it:{opts:r}},o){const s=r.unicodeRegExp?"u":"",{regExp:i}=r.code,a=i(o,s);return t.scopeValue("pattern",{key:a.toString(),ref:a,code:e._`${"new RegExp"===i.code?l:(0,n.useFunc)(t,i)}(${o}, ${s})`})},Bt.validateArray=function(r){const{gen:n,data:o,keyword:s,it:i}=r,a=n.name("valid");if(i.allErrors){const e=n.let("valid",!0);return l(()=>n.assign(e,!1)),e}return n.var(a,!0),l(()=>n.break()),a;function l(i){const l=n.const("len",e._`${o}.length`);n.forRange("i",0,l,o=>{r.subschema({keyword:s,dataProp:o,dataPropType:t.Type.Num},a),n.if((0,e.not)(a),i)})}},Bt.validateUnion=function(r){const{gen:n,schema:o,keyword:s,it:i}=r;if(!Array.isArray(o))throw new Error("ajv implementation error");if(o.some(e=>(0,t.alwaysValidSchema)(i,e))&&!i.opts.unevaluated)return;const a=n.let("valid",!1),l=n.name("_valid");n.block(()=>o.forEach((t,o)=>{const i=r.subschema({keyword:s,schemaProp:o,compositeRule:!0},l);n.assign(a,e._`${a} || ${l}`);r.mergeValidEvaluated(i,l)||n.if((0,e.not)(a))})),r.result(a,()=>r.reset(),()=>r.error(!0))},Bt}function Ft(){if(Lt)return Dt;Lt=1,Object.defineProperty(Dt,"__esModule",{value:!0}),Dt.validateKeywordUsage=Dt.validSchemaType=Dt.funcKeywordCode=Dt.macroKeywordCode=void 0;const e=gt(),t=kt(),r=Ht(),n=St();function o(t){const{gen:r,data:n,it:o}=t;r.if(o.parentData,()=>r.assign(n,e._`${o.parentData}[${o.parentDataProperty}]`))}function s(t,r,n){if(void 0===n)throw new Error(`keyword "${r}" failed to compile`);return t.scopeValue("keyword","function"==typeof n?{ref:n}:{ref:n,code:(0,e.stringify)(n)})}return Dt.macroKeywordCode=function(t,r){const{gen:n,keyword:o,schema:i,parentSchema:a,it:l}=t,c=r.macro.call(l.self,i,a,l),p=s(n,o,c);!1!==l.opts.validateSchema&&l.self.validateSchema(c,!0);const d=n.name("valid");t.subschema({schema:c,schemaPath:e.nil,errSchemaPath:`${l.errSchemaPath}/${o}`,topSchemaRef:p,compositeRule:!0},d),t.pass(d,()=>t.error(!0))},Dt.funcKeywordCode=function(i,a){var l;const{gen:c,keyword:p,schema:d,parentSchema:u,$data:f,it:h}=i;!function({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}(h,a);const m=!f&&a.compile?a.compile.call(h.self,d,u,h):a.validate,g=s(c,p,m),y=c.let("valid");function v(n=(a.async?e._`await `:e.nil)){const o=h.opts.passContext?t.default.this:t.default.self,s=!("compile"in a&&!f||!1===a.schema);c.assign(y,e._`${n}${(0,r.callValidateCode)(i,g,o,s)}`,a.modifying)}function b(t){var r;c.if((0,e.not)(null!==(r=a.valid)&&void 0!==r?r:y),t)}i.block$data(y,function(){if(!1===a.errors)v(),a.modifying&&o(i),b(()=>i.error());else{const r=a.async?function(){const t=c.let("ruleErrs",null);return c.try(()=>v(e._`await `),r=>c.assign(y,!1).if(e._`${r} instanceof ${h.ValidationError}`,()=>c.assign(t,e._`${r}.errors`),()=>c.throw(r))),t}():function(){const t=e._`${g}.errors`;return c.assign(t,null),v(e.nil),t}();a.modifying&&o(i),b(()=>function(r,o){const{gen:s}=r;s.if(e._`Array.isArray(${o})`,()=>{s.assign(t.default.vErrors,e._`${t.default.vErrors} === null ? ${o} : ${t.default.vErrors}.concat(${o})`).assign(t.default.errors,e._`${t.default.vErrors}.length`),(0,n.extendErrors)(r)},()=>r.error())}(i,r))}}),i.ok(null!==(l=a.valid)&&void 0!==l?l:y)},Dt.validSchemaType=function(e,t,r=!1){return!t.length||t.some(t=>"array"===t?Array.isArray(e):"object"===t?e&&"object"==typeof e&&!Array.isArray(e):typeof e==t||r&&void 0===e)},Dt.validateKeywordUsage=function({schema:e,opts:t,self:r,errSchemaPath:n},o,s){if(Array.isArray(o.keyword)?!o.keyword.includes(s):o.keyword!==s)throw new Error("ajv implementation error");const i=o.dependencies;if(null==i?void 0:i.some(t=>!Object.prototype.hasOwnProperty.call(e,t)))throw new Error(`parent schema must have dependencies of ${s}: ${i.join(",")}`);if(o.validateSchema){if(!o.validateSchema(e[s])){const e=`keyword "${s}" value is invalid at path "${n}": `+r.errorsText(o.validateSchema.errors);if("log"!==t.validateSchema)throw new Error(e);r.logger.error(e)}}},Dt}var Vt,Jt={};function Wt(){if(Vt)return Jt;Vt=1,Object.defineProperty(Jt,"__esModule",{value:!0}),Jt.extendSubschemaMode=Jt.extendSubschemaData=Jt.getSubschema=void 0;const e=gt(),t=bt();return Jt.getSubschema=function(r,{keyword:n,schemaProp:o,schema:s,schemaPath:i,errSchemaPath:a,topSchemaRef:l}){if(void 0!==n&&void 0!==s)throw new Error('both "keyword" and "schema" passed, only one allowed');if(void 0!==n){const s=r.schema[n];return void 0===o?{schema:s,schemaPath:e._`${r.schemaPath}${(0,e.getProperty)(n)}`,errSchemaPath:`${r.errSchemaPath}/${n}`}:{schema:s[o],schemaPath:e._`${r.schemaPath}${(0,e.getProperty)(n)}${(0,e.getProperty)(o)}`,errSchemaPath:`${r.errSchemaPath}/${n}/${(0,t.escapeFragment)(o)}`}}if(void 0!==s){if(void 0===i||void 0===a||void 0===l)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:s,schemaPath:i,topSchemaRef:l,errSchemaPath:a}}throw new Error('either "keyword" or "schema" must be passed')},Jt.extendSubschemaData=function(r,n,{dataProp:o,dataPropType:s,data:i,dataTypes:a,propertyName:l}){if(void 0!==i&&void 0!==o)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:c}=n;if(void 0!==o){const{errorPath:i,dataPathArr:a,opts:l}=n;p(c.let("data",e._`${n.data}${(0,e.getProperty)(o)}`,!0)),r.errorPath=e.str`${i}${(0,t.getErrorPath)(o,s,l.jsPropertySyntax)}`,r.parentDataProperty=e._`${o}`,r.dataPathArr=[...a,r.parentDataProperty]}if(void 0!==i){p(i instanceof e.Name?i:c.let("data",i,!0)),void 0!==l&&(r.propertyName=l)}function p(e){r.data=e,r.dataLevel=n.dataLevel+1,r.dataTypes=[],n.definedProperties=new Set,r.parentData=n.data,r.dataNames=[...n.dataNames,e]}a&&(r.dataTypes=a)},Jt.extendSubschemaMode=function(e,{jtdDiscriminator:t,jtdMetadata:r,compositeRule:n,createErrors:o,allErrors:s}){void 0!==n&&(e.compositeRule=n),void 0!==o&&(e.createErrors=o),void 0!==s&&(e.allErrors=s),e.jtdDiscriminator=t,e.jtdMetadata=r},Jt}var Gt,Kt,Zt={};function Qt(){return Kt?Gt:(Kt=1,Gt=function e(t,r){if(t===r)return!0;if(t&&r&&"object"==typeof t&&"object"==typeof r){if(t.constructor!==r.constructor)return!1;var n,o,s;if(Array.isArray(t)){if((n=t.length)!=r.length)return!1;for(o=n;0!==o--;)if(!e(t[o],r[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if((n=(s=Object.keys(t)).length)!==Object.keys(r).length)return!1;for(o=n;0!==o--;)if(!Object.prototype.hasOwnProperty.call(r,s[o]))return!1;for(o=n;0!==o--;){var i=s[o];if(!e(t[i],r[i]))return!1}return!0}return t!=t&&r!=r})}var Yt,Xt,er,tr={exports:{}};function rr(){if(Yt)return tr.exports;Yt=1;var e=tr.exports=function(e,r,n){"function"==typeof r&&(n=r,r={}),t(r,"function"==typeof(n=r.cb||n)?n:n.pre||function(){},n.post||function(){},e,"",e)};function t(n,o,s,i,a,l,c,p,d,u){if(i&&"object"==typeof i&&!Array.isArray(i)){for(var f in o(i,a,l,c,p,d,u),i){var h=i[f];if(Array.isArray(h)){if(f in e.arrayKeywords)for(var m=0;m<h.length;m++)t(n,o,s,h[m],a+"/"+f+"/"+m,l,a,f,i,m)}else if(f in e.propsKeywords){if(h&&"object"==typeof h)for(var g in h)t(n,o,s,h[g],a+"/"+f+"/"+r(g),l,a,f,i,g)}else(f in e.keywords||n.allKeys&&!(f in e.skipKeywords))&&t(n,o,s,h,a+"/"+f,l,a,f,i)}s(i,a,l,c,p,d,u)}}function r(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}return e.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},e.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},e.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},e.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},tr.exports}function nr(){if(Xt)return Zt;Xt=1,Object.defineProperty(Zt,"__esModule",{value:!0}),Zt.getSchemaRefs=Zt.resolveUrl=Zt.normalizeId=Zt._getFullPath=Zt.getFullPath=Zt.inlineRef=void 0;const e=bt(),t=Qt(),r=rr(),n=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);Zt.inlineRef=function(e,t=!0){return"boolean"==typeof e||(!0===t?!s(e):!!t&&i(e)<=t)};const o=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function s(e){for(const t in e){if(o.has(t))return!0;const r=e[t];if(Array.isArray(r)&&r.some(s))return!0;if("object"==typeof r&&s(r))return!0}return!1}function i(t){let r=0;for(const o in t){if("$ref"===o)return 1/0;if(r++,!n.has(o)&&("object"==typeof t[o]&&(0,e.eachItem)(t[o],e=>r+=i(e)),r===1/0))return 1/0}return r}function a(e,t="",r){!1!==r&&(t=p(t));const n=e.parse(t);return l(e,n)}function l(e,t){return e.serialize(t).split("#")[0]+"#"}Zt.getFullPath=a,Zt._getFullPath=l;const c=/#\/?$/;function p(e){return e?e.replace(c,""):""}Zt.normalizeId=p,Zt.resolveUrl=function(e,t,r){return r=p(r),e.resolve(t,r)};const d=/^[a-z_][-a-z0-9._]*$/i;return Zt.getSchemaRefs=function(e,n){if("boolean"==typeof e)return{};const{schemaId:o,uriResolver:s}=this.opts,i=p(e[o]||n),l={"":i},c=a(s,i,!1),u={},f=new Set;return r(e,{allKeys:!0},(e,t,r,n)=>{if(void 0===n)return;const s=c+t;let i=l[n];function a(t){const r=this.opts.uriResolver.resolve;if(t=p(i?r(i,t):t),f.has(t))throw m(t);f.add(t);let n=this.refs[t];return"string"==typeof n&&(n=this.refs[n]),"object"==typeof n?h(e,n.schema,t):t!==p(s)&&("#"===t[0]?(h(e,u[t],t),u[t]=e):this.refs[t]=s),t}function g(e){if("string"==typeof e){if(!d.test(e))throw new Error(`invalid anchor "${e}"`);a.call(this,`#${e}`)}}"string"==typeof e[o]&&(i=a.call(this,e[o])),g.call(this,e.$anchor),g.call(this,e.$dynamicAnchor),l[t]=i}),u;function h(e,r,n){if(void 0!==r&&!t(e,r))throw m(n)}function m(e){return new Error(`reference "${e}" resolves to more than one schema`)}},Zt}function or(){if(er)return it;er=1,Object.defineProperty(it,"__esModule",{value:!0}),it.getData=it.KeywordCxt=it.validateFunctionCode=void 0;const e=jt(),t=Nt(),r=Rt(),n=Nt(),o=zt(),s=Ft(),i=Wt(),a=gt(),l=kt(),c=nr(),p=bt(),d=St();function u({gen:e,validateName:t,schema:r,schemaEnv:n,opts:o},s){o.code.es5?e.func(t,a._`${l.default.data}, ${l.default.valCxt}`,n.$async,()=>{e.code(a._`"use strict"; ${f(r,o)}`),function(e,t){e.if(l.default.valCxt,()=>{e.var(l.default.instancePath,a._`${l.default.valCxt}.${l.default.instancePath}`),e.var(l.default.parentData,a._`${l.default.valCxt}.${l.default.parentData}`),e.var(l.default.parentDataProperty,a._`${l.default.valCxt}.${l.default.parentDataProperty}`),e.var(l.default.rootData,a._`${l.default.valCxt}.${l.default.rootData}`),t.dynamicRef&&e.var(l.default.dynamicAnchors,a._`${l.default.valCxt}.${l.default.dynamicAnchors}`)},()=>{e.var(l.default.instancePath,a._`""`),e.var(l.default.parentData,a._`undefined`),e.var(l.default.parentDataProperty,a._`undefined`),e.var(l.default.rootData,l.default.data),t.dynamicRef&&e.var(l.default.dynamicAnchors,a._`{}`)})}(e,o),e.code(s)}):e.func(t,a._`${l.default.data}, ${function(e){return a._`{${l.default.instancePath}="", ${l.default.parentData}, ${l.default.parentDataProperty}, ${l.default.rootData}=${l.default.data}${e.dynamicRef?a._`, ${l.default.dynamicAnchors}={}`:a.nil}}={}`}(o)}`,n.$async,()=>e.code(f(r,o)).code(s))}function f(e,t){const r="object"==typeof e&&e[t.schemaId];return r&&(t.code.source||t.code.process)?a._`/*# sourceURL=${r} */`:a.nil}function h(t,r){g(t)&&(y(t),m(t))?function(e,t){const{schema:r,gen:n,opts:o}=e;o.$comment&&r.$comment&&b(e);(function(e){const t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,c.resolveUrl)(e.opts.uriResolver,e.baseId,t))})(e),function(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}(e);const s=n.const("_errs",l.default.errors);v(e,s),n.var(t,a._`${s} === ${l.default.errors}`)}(t,r):(0,e.boolOrEmptySchema)(t,r)}function m({schema:e,self:t}){if("boolean"==typeof e)return!e;for(const r in e)if(t.RULES.all[r])return!0;return!1}function g(e){return"boolean"!=typeof e.schema}function y(e){(0,p.checkUnknownRules)(e),function(e){const{schema:t,errSchemaPath:r,opts:n,self:o}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,p.schemaHasRulesButRef)(t,o.RULES)&&o.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}(e)}function v(e,r){if(e.opts.jtd)return $(e,[],!1,r);const n=(0,t.getSchemaTypes)(e.schema);$(e,n,!(0,t.coerceAndCheckDataType)(e,n),r)}function b({gen:e,schemaEnv:t,schema:r,errSchemaPath:n,opts:o}){const s=r.$comment;if(!0===o.$comment)e.code(a._`${l.default.self}.logger.log(${s})`);else if("function"==typeof o.$comment){const r=a.str`${n}/$comment`,o=e.scopeValue("root",{ref:t.root});e.code(a._`${l.default.self}.opts.$comment(${s}, ${r}, ${o}.schema)`)}}function $(e,t,o,s){const{gen:i,schema:c,data:d,allErrors:u,opts:f,self:h}=e,{RULES:m}=h;function g(p){(0,r.shouldUseGroup)(c,p)&&(p.type?(i.if((0,n.checkDataType)(p.type,d,f.strictNumbers)),x(e,p),1===t.length&&t[0]===p.type&&o&&(i.else(),(0,n.reportTypeError)(e)),i.endIf()):x(e,p),u||i.if(a._`${l.default.errors} === ${s||0}`))}!c.$ref||!f.ignoreKeywordsWithRef&&(0,p.schemaHasRulesButRef)(c,m)?(f.jtd||function(e,t){if(e.schemaEnv.meta||!e.opts.strictTypes)return;(function(e,t){if(!t.length)return;if(!e.dataTypes.length)return void(e.dataTypes=t);t.forEach(t=>{_(e.dataTypes,t)||k(e,`type "${t}" not allowed by context "${e.dataTypes.join(",")}"`)}),function(e,t){const r=[];for(const n of e.dataTypes)_(t,n)?r.push(n):t.includes("integer")&&"number"===n&&r.push("integer");e.dataTypes=r}(e,t)})(e,t),e.opts.allowUnionTypes||function(e,t){t.length>1&&(2!==t.length||!t.includes("null"))&&k(e,"use allowUnionTypes to allow union type keyword")}(e,t);!function(e,t){const n=e.self.RULES.all;for(const o in n){const s=n[o];if("object"==typeof s&&(0,r.shouldUseRule)(e.schema,s)){const{type:r}=s.definition;r.length&&!r.some(e=>w(t,e))&&k(e,`missing type "${r.join(",")}" for keyword "${o}"`)}}}(e,e.dataTypes)}(e,t),i.block(()=>{for(const e of m.rules)g(e);g(m.post)})):i.block(()=>j(e,"$ref",m.all.$ref.definition))}function x(e,t){const{gen:n,schema:s,opts:{useDefaults:i}}=e;i&&(0,o.assignDefaults)(e,t.type),n.block(()=>{for(const n of t.rules)(0,r.shouldUseRule)(s,n)&&j(e,n.keyword,n.definition,t.type)})}function w(e,t){return e.includes(t)||"number"===t&&e.includes("integer")}function _(e,t){return e.includes(t)||"integer"===t&&e.includes("number")}function k(e,t){t+=` at "${e.schemaEnv.baseId+e.errSchemaPath}" (strictTypes)`,(0,p.checkStrictMode)(e,t,e.opts.strictTypes)}it.validateFunctionCode=function(t){g(t)&&(y(t),m(t))?function(e){const{schema:t,opts:r,gen:n}=e;u(e,()=>{r.$comment&&t.$comment&&b(e),function(e){const{schema:t,opts:r}=e;void 0!==t.default&&r.useDefaults&&r.strictSchema&&(0,p.checkStrictMode)(e,"default is ignored in the schema root")}(e),n.let(l.default.vErrors,null),n.let(l.default.errors,0),r.unevaluated&&function(e){const{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",a._`${r}.evaluated`),t.if(a._`${e.evaluated}.dynamicProps`,()=>t.assign(a._`${e.evaluated}.props`,a._`undefined`)),t.if(a._`${e.evaluated}.dynamicItems`,()=>t.assign(a._`${e.evaluated}.items`,a._`undefined`))}(e),v(e),function(e){const{gen:t,schemaEnv:r,validateName:n,ValidationError:o,opts:s}=e;r.$async?t.if(a._`${l.default.errors} === 0`,()=>t.return(l.default.data),()=>t.throw(a._`new ${o}(${l.default.vErrors})`)):(t.assign(a._`${n}.errors`,l.default.vErrors),s.unevaluated&&function({gen:e,evaluated:t,props:r,items:n}){r instanceof a.Name&&e.assign(a._`${t}.props`,r);n instanceof a.Name&&e.assign(a._`${t}.items`,n)}(e),t.return(a._`${l.default.errors} === 0`))}(e)})}(t):u(t,()=>(0,e.topBoolOrEmptySchema)(t))};class S{constructor(e,t,r){if((0,s.validateKeywordUsage)(e,t,r),this.gen=e.gen,this.allErrors=e.allErrors,this.keyword=r,this.data=e.data,this.schema=e.schema[r],this.$data=t.$data&&e.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,p.schemaRefOrVal)(e,this.schema,r,this.$data),this.schemaType=t.schemaType,this.parentSchema=e.schema,this.params={},this.it=e,this.def=t,this.$data)this.schemaCode=e.gen.const("vSchema",E(this.$data,e));else if(this.schemaCode=this.schemaValue,!(0,s.validSchemaType)(this.schema,t.schemaType,t.allowUndefined))throw new Error(`${r} value must be ${JSON.stringify(t.schemaType)}`);("code"in t?t.trackErrors:!1!==t.errors)&&(this.errsCount=e.gen.const("_errs",l.default.errors))}result(e,t,r){this.failResult((0,a.not)(e),t,r)}failResult(e,t,r){this.gen.if(e),r?r():this.error(),t?(this.gen.else(),t(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(e,t){this.failResult((0,a.not)(e),void 0,t)}fail(e){if(void 0===e)return this.error(),void(this.allErrors||this.gen.if(!1));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:t}=this;this.fail(a._`${t} !== undefined && (${(0,a.or)(this.invalid$data(),e)})`)}error(e,t,r){if(t)return this.setParams(t),this._error(e,r),void this.setParams({});this._error(e,r)}_error(e,t){(e?d.reportExtraError:d.reportError)(this,this.def.error,t)}$dataError(){(0,d.reportError)(this,this.def.$dataError||d.keyword$DataError)}reset(){if(void 0===this.errsCount)throw new Error('add "trackErrors" to keyword definition');(0,d.resetErrorsCount)(this.gen,this.errsCount)}ok(e){this.allErrors||this.gen.if(e)}setParams(e,t){t?Object.assign(this.params,e):this.params=e}block$data(e,t,r=a.nil){this.gen.block(()=>{this.check$data(e,r),t()})}check$data(e=a.nil,t=a.nil){if(!this.$data)return;const{gen:r,schemaCode:n,schemaType:o,def:s}=this;r.if((0,a.or)(a._`${n} === undefined`,t)),e!==a.nil&&r.assign(e,!0),(o.length||s.validateSchema)&&(r.elseIf(this.invalid$data()),this.$dataError(),e!==a.nil&&r.assign(e,!1)),r.else()}invalid$data(){const{gen:e,schemaCode:t,schemaType:r,def:o,it:s}=this;return(0,a.or)(function(){if(r.length){if(!(t instanceof a.Name))throw new Error("ajv implementation error");const e=Array.isArray(r)?r:[r];return a._`${(0,n.checkDataTypes)(e,t,s.opts.strictNumbers,n.DataType.Wrong)}`}return a.nil}(),function(){if(o.validateSchema){const r=e.scopeValue("validate$data",{ref:o.validateSchema});return a._`!${r}(${t})`}return a.nil}())}subschema(e,t){const r=(0,i.getSubschema)(this.it,e);(0,i.extendSubschemaData)(r,this.it,e),(0,i.extendSubschemaMode)(r,e);const n={...this.it,...r,items:void 0,props:void 0};return h(n,t),n}mergeEvaluated(e,t){const{it:r,gen:n}=this;r.opts.unevaluated&&(!0!==r.props&&void 0!==e.props&&(r.props=p.mergeEvaluated.props(n,e.props,r.props,t)),!0!==r.items&&void 0!==e.items&&(r.items=p.mergeEvaluated.items(n,e.items,r.items,t)))}mergeValidEvaluated(e,t){const{it:r,gen:n}=this;if(r.opts.unevaluated&&(!0!==r.props||!0!==r.items))return n.if(t,()=>this.mergeEvaluated(e,a.Name)),!0}}function j(e,t,r,n){const o=new S(e,r,t);"code"in r?r.code(o,n):o.$data&&r.validate?(0,s.funcKeywordCode)(o,r):"macro"in r?(0,s.macroKeywordCode)(o,r):(r.compile||r.validate)&&(0,s.funcKeywordCode)(o,r)}it.KeywordCxt=S;const O=/^\/(?:[^~]|~0|~1)*$/,P=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function E(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let o,s;if(""===e)return l.default.rootData;if("/"===e[0]){if(!O.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);o=e,s=l.default.rootData}else{const i=P.exec(e);if(!i)throw new Error(`Invalid JSON-pointer: ${e}`);const a=+i[1];if(o=i[2],"#"===o){if(a>=t)throw new Error(d("property/index",a));return n[t-a]}if(a>t)throw new Error(d("data",a));if(s=r[t-a],!o)return s}let i=s;const c=o.split("/");for(const l of c)l&&(s=a._`${s}${(0,a.getProperty)((0,p.unescapeJsonPointer)(l))}`,i=a._`${i} && ${s}`);return i;function d(e,r){return`Cannot access ${e} ${r} levels up, current level is ${t}`}}return it.getData=E,it}var sr,ir={};function ar(){if(sr)return ir;sr=1,Object.defineProperty(ir,"__esModule",{value:!0});class e extends Error{constructor(e){super("validation failed"),this.errors=e,this.ajv=this.validation=!0}}return ir.default=e,ir}var lr,cr={};function pr(){if(lr)return cr;lr=1,Object.defineProperty(cr,"__esModule",{value:!0});const e=nr();class t extends Error{constructor(t,r,n,o){super(o||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,e.resolveUrl)(t,r,n),this.missingSchema=(0,e.normalizeId)((0,e.getFullPath)(t,this.missingRef))}}return cr.default=t,cr}var dr,ur={};function fr(){if(dr)return ur;dr=1,Object.defineProperty(ur,"__esModule",{value:!0}),ur.resolveSchema=ur.getCompilingSchema=ur.resolveRef=ur.compileSchema=ur.SchemaEnv=void 0;const e=gt(),t=ar(),r=kt(),n=nr(),o=bt(),s=or();class i{constructor(e){var t;let r;this.refs={},this.dynamicAnchors={},"object"==typeof e.schema&&(r=e.schema),this.schema=e.schema,this.schemaId=e.schemaId,this.root=e.root||this,this.baseId=null!==(t=e.baseId)&&void 0!==t?t:(0,n.normalizeId)(null==r?void 0:r[e.schemaId||"$id"]),this.schemaPath=e.schemaPath,this.localRefs=e.localRefs,this.meta=e.meta,this.$async=null==r?void 0:r.$async,this.refs={}}}function a(o){const i=c.call(this,o);if(i)return i;const a=(0,n.getFullPath)(this.opts.uriResolver,o.root.baseId),{es5:l,lines:p}=this.opts.code,{ownProperties:d}=this.opts,u=new e.CodeGen(this.scope,{es5:l,lines:p,ownProperties:d});let f;o.$async&&(f=u.scopeValue("Error",{ref:t.default,code:e._`require("ajv/dist/runtime/validation_error").default`}));const h=u.scopeName("validate");o.validateName=h;const m={gen:u,allErrors:this.opts.allErrors,data:r.default.data,parentData:r.default.parentData,parentDataProperty:r.default.parentDataProperty,dataNames:[r.default.data],dataPathArr:[e.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:u.scopeValue("schema",!0===this.opts.code.source?{ref:o.schema,code:(0,e.stringify)(o.schema)}:{ref:o.schema}),validateName:h,ValidationError:f,schema:o.schema,schemaEnv:o,rootId:a,baseId:o.baseId||a,schemaPath:e.nil,errSchemaPath:o.schemaPath||(this.opts.jtd?"":"#"),errorPath:e._`""`,opts:this.opts,self:this};let g;try{this._compilations.add(o),(0,s.validateFunctionCode)(m),u.optimize(this.opts.code.optimize);const t=u.toString();g=`${u.scopeRefs(r.default.scope)}return ${t}`,this.opts.code.process&&(g=this.opts.code.process(g,o));const n=new Function(`${r.default.self}`,`${r.default.scope}`,g)(this,this.scope.get());if(this.scope.value(h,{ref:n}),n.errors=null,n.schema=o.schema,n.schemaEnv=o,o.$async&&(n.$async=!0),!0===this.opts.code.source&&(n.source={validateName:h,validateCode:t,scopeValues:u._values}),this.opts.unevaluated){const{props:t,items:r}=m;n.evaluated={props:t instanceof e.Name?void 0:t,items:r instanceof e.Name?void 0:r,dynamicProps:t instanceof e.Name,dynamicItems:r instanceof e.Name},n.source&&(n.source.evaluated=(0,e.stringify)(n.evaluated))}return o.validate=n,o}catch(cd){throw delete o.validate,delete o.validateName,g&&this.logger.error("Error compiling schema, function code:",g),cd}finally{this._compilations.delete(o)}}function l(e){return(0,n.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:a.call(this,e)}function c(e){for(const t of this._compilations)if(p(t,e))return t}function p(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}function d(e,t){let r;for(;"string"==typeof(r=this.refs[t]);)t=r;return r||this.schemas[t]||u.call(this,e,t)}function u(e,t){const r=this.opts.uriResolver.parse(t),o=(0,n._getFullPath)(this.opts.uriResolver,r);let s=(0,n.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&o===s)return h.call(this,r,e);const l=(0,n.normalizeId)(o),c=this.refs[l]||this.schemas[l];if("string"==typeof c){const t=u.call(this,e,c);if("object"!=typeof(null==t?void 0:t.schema))return;return h.call(this,r,t)}if("object"==typeof(null==c?void 0:c.schema)){if(c.validate||a.call(this,c),l===(0,n.normalizeId)(t)){const{schema:t}=c,{schemaId:r}=this.opts,o=t[r];return o&&(s=(0,n.resolveUrl)(this.opts.uriResolver,s,o)),new i({schema:t,schemaId:r,root:e,baseId:s})}return h.call(this,r,c)}}ur.SchemaEnv=i,ur.compileSchema=a,ur.resolveRef=function(e,t,r){var o;r=(0,n.resolveUrl)(this.opts.uriResolver,t,r);const s=e.refs[r];if(s)return s;let a=d.call(this,e,r);if(void 0===a){const n=null===(o=e.localRefs)||void 0===o?void 0:o[r],{schemaId:s}=this.opts;n&&(a=new i({schema:n,schemaId:s,root:e,baseId:t}))}return void 0!==a?e.refs[r]=l.call(this,a):void 0},ur.getCompilingSchema=c,ur.resolveSchema=u;const f=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function h(e,{baseId:t,schema:r,root:s}){var a;if("/"!==(null===(a=e.fragment)||void 0===a?void 0:a[0]))return;for(const i of e.fragment.slice(1).split("/")){if("boolean"==typeof r)return;const e=r[(0,o.unescapeFragment)(i)];if(void 0===e)return;const s="object"==typeof(r=e)&&r[this.opts.schemaId];!f.has(i)&&s&&(t=(0,n.resolveUrl)(this.opts.uriResolver,t,s))}let l;if("boolean"!=typeof r&&r.$ref&&!(0,o.schemaHasRulesButRef)(r,this.RULES)){const e=(0,n.resolveUrl)(this.opts.uriResolver,t,r.$ref);l=u.call(this,s,e)}const{schemaId:c}=this.opts;return l=l||new i({schema:r,schemaId:c,root:s,baseId:t}),l.schema!==l.root.schema?l:void 0}return ur}const hr={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1};var mr,gr,yr,vr,br,$r,xr,wr={},_r={exports:{}};function kr(){if(gr)return mr;gr=1;const e=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),t=RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u);function r(e){let t="",r=0,n=0;for(n=0;n<e.length;n++)if(r=e[n].charCodeAt(0),48!==r){if(!(r>=48&&r<=57||r>=65&&r<=70||r>=97&&r<=102))return"";t+=e[n];break}for(n+=1;n<e.length;n++){if(r=e[n].charCodeAt(0),!(r>=48&&r<=57||r>=65&&r<=70||r>=97&&r<=102))return"";t+=e[n]}return t}const n=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function o(e){return e.length=0,!0}function s(e,t,n){if(e.length){const o=r(e);if(""===o)return n.error=!0,!1;t.push(o),e.length=0}return!0}function i(e){if(function(e,t){let r=0;for(let n=0;n<e.length;n++)e[n]===t&&r++;return r}(e,":")<2)return{host:e,isIPV6:!1};const t=function(e){let t=0;const n={error:!1,address:"",zone:""},i=[],a=[];let l=!1,c=!1,p=s;for(let r=0;r<e.length;r++){const s=e[r];if("["!==s&&"]"!==s)if(":"!==s)if("%"===s){if(!p(a,i,n))break;p=o}else a.push(s);else{if(!0===l&&(c=!0),!p(a,i,n))break;if(++t>7){n.error=!0;break}r>0&&":"===e[r-1]&&(l=!0),i.push(":")}}return a.length&&(p===o?n.zone=a.join(""):c?i.push(a.join("")):i.push(r(a))),n.address=i.join(""),n}(e);if(t.error)return{host:e,isIPV6:!1};{let e=t.address,r=t.address;return t.zone&&(e+="%"+t.zone,r+="%25"+t.zone),{host:e,isIPV6:!0,escapedHost:r}}}return mr={nonSimpleDomain:n,recomposeAuthority:function(e){const r=[];if(void 0!==e.userinfo&&(r.push(e.userinfo),r.push("@")),void 0!==e.host){let n=unescape(e.host);if(!t(n)){const t=i(n);n=!0===t.isIPV6?`[${t.escapedHost}]`:e.host}r.push(n)}return"number"!=typeof e.port&&"string"!=typeof e.port||(r.push(":"),r.push(String(e.port))),r.length?r.join(""):void 0},normalizeComponentEncoding:function(e,t){const r=!0!==t?escape:unescape;return void 0!==e.scheme&&(e.scheme=r(e.scheme)),void 0!==e.userinfo&&(e.userinfo=r(e.userinfo)),void 0!==e.host&&(e.host=r(e.host)),void 0!==e.path&&(e.path=r(e.path)),void 0!==e.query&&(e.query=r(e.query)),void 0!==e.fragment&&(e.fragment=r(e.fragment)),e},removeDotSegments:function(e){let t=e;const r=[];let n=-1,o=0;for(;o=t.length;){if(1===o){if("."===t)break;if("/"===t){r.push("/");break}r.push(t);break}if(2===o){if("."===t[0]){if("."===t[1])break;if("/"===t[1]){t=t.slice(2);continue}}else if("/"===t[0]&&("."===t[1]||"/"===t[1])){r.push("/");break}}else if(3===o&&"/.."===t){0!==r.length&&r.pop(),r.push("/");break}if("."===t[0]){if("."===t[1]){if("/"===t[2]){t=t.slice(3);continue}}else if("/"===t[1]){t=t.slice(2);continue}}else if("/"===t[0]&&"."===t[1]){if("/"===t[2]){t=t.slice(2);continue}if("."===t[2]&&"/"===t[3]){t=t.slice(3),0!==r.length&&r.pop();continue}}if(-1===(n=t.indexOf("/",1))){r.push(t);break}r.push(t.slice(0,n)),t=t.slice(n)}return r.join("")},isIPv4:t,isUUID:e,normalizeIPv6:i,stringArrayToHexStripped:r}}function Sr(){if(br)return _r.exports;br=1;const{normalizeIPv6:e,removeDotSegments:t,recomposeAuthority:r,normalizeComponentEncoding:n,isIPv4:o,nonSimpleDomain:s}=kr(),{SCHEMES:i,getSchemeHandler:a}=function(){if(vr)return yr;vr=1;const{isUUID:e}=kr(),t=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,r=["http","https","ws","wss","urn","urn:uuid"];function n(e){return!0===e.secure||!1!==e.secure&&!!e.scheme&&!(3!==e.scheme.length||"w"!==e.scheme[0]&&"W"!==e.scheme[0]||"s"!==e.scheme[1]&&"S"!==e.scheme[1]||"s"!==e.scheme[2]&&"S"!==e.scheme[2])}function o(e){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e}function s(e){const t="https"===String(e.scheme).toLowerCase();return e.port!==(t?443:80)&&""!==e.port||(e.port=void 0),e.path||(e.path="/"),e}const i={scheme:"http",domainHost:!0,parse:o,serialize:s},a={scheme:"ws",domainHost:!0,parse:function(e){return e.secure=n(e),e.resourceName=(e.path||"/")+(e.query?"?"+e.query:""),e.path=void 0,e.query=void 0,e},serialize:function(e){if(e.port!==(n(e)?443:80)&&""!==e.port||(e.port=void 0),"boolean"==typeof e.secure&&(e.scheme=e.secure?"wss":"ws",e.secure=void 0),e.resourceName){const[t,r]=e.resourceName.split("?");e.path=t&&"/"!==t?t:void 0,e.query=r,e.resourceName=void 0}return e.fragment=void 0,e}},l={http:i,https:{scheme:"https",domainHost:i.domainHost,parse:o,serialize:s},ws:a,wss:{scheme:"wss",domainHost:a.domainHost,parse:a.parse,serialize:a.serialize},urn:{scheme:"urn",parse:function(e,r){if(!e.path)return e.error="URN can not be parsed",e;const n=e.path.match(t);if(n){const t=r.scheme||e.scheme||"urn";e.nid=n[1].toLowerCase(),e.nss=n[2];const o=c(`${t}:${r.nid||e.nid}`);e.path=void 0,o&&(e=o.parse(e,r))}else e.error=e.error||"URN can not be parsed.";return e},serialize:function(e,t){if(void 0===e.nid)throw new Error("URN without nid cannot be serialized");const r=t.scheme||e.scheme||"urn",n=e.nid.toLowerCase(),o=c(`${r}:${t.nid||n}`);o&&(e=o.serialize(e,t));const s=e,i=e.nss;return s.path=`${n||t.nid}:${i}`,t.skipEscape=!0,s},skipNormalize:!0},"urn:uuid":{scheme:"urn:uuid",parse:function(t,r){const n=t;return n.uuid=n.nss,n.nss=void 0,r.tolerant||n.uuid&&e(n.uuid)||(n.error=n.error||"UUID is not valid."),n},serialize:function(e){const t=e;return t.nss=(e.uuid||"").toLowerCase(),t},skipNormalize:!0}};function c(e){return e&&(l[e]||l[e.toLowerCase()])||void 0}return Object.setPrototypeOf(l,null),yr={wsIsSecure:n,SCHEMES:l,isValidSchemeName:function(e){return-1!==r.indexOf(e)},getSchemeHandler:c}}();function l(e,r,n,o){const s={};return o||(e=d(c(e,n),n),r=d(c(r,n),n)),!(n=n||{}).tolerant&&r.scheme?(s.scheme=r.scheme,s.userinfo=r.userinfo,s.host=r.host,s.port=r.port,s.path=t(r.path||""),s.query=r.query):(void 0!==r.userinfo||void 0!==r.host||void 0!==r.port?(s.userinfo=r.userinfo,s.host=r.host,s.port=r.port,s.path=t(r.path||""),s.query=r.query):(r.path?("/"===r.path[0]?s.path=t(r.path):(void 0===e.userinfo&&void 0===e.host&&void 0===e.port||e.path?e.path?s.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+r.path:s.path=r.path:s.path="/"+r.path,s.path=t(s.path)),s.query=r.query):(s.path=e.path,void 0!==r.query?s.query=r.query:s.query=e.query),s.userinfo=e.userinfo,s.host=e.host,s.port=e.port),s.scheme=e.scheme),s.fragment=r.fragment,s}function c(e,n){const o={host:e.host,scheme:e.scheme,userinfo:e.userinfo,port:e.port,path:e.path,query:e.query,nid:e.nid,nss:e.nss,uuid:e.uuid,fragment:e.fragment,reference:e.reference,resourceName:e.resourceName,secure:e.secure,error:""},s=Object.assign({},n),i=[],l=a(s.scheme||o.scheme);l&&l.serialize&&l.serialize(o,s),void 0!==o.path&&(s.skipEscape?o.path=unescape(o.path):(o.path=escape(o.path),void 0!==o.scheme&&(o.path=o.path.split("%3A").join(":")))),"suffix"!==s.reference&&o.scheme&&i.push(o.scheme,":");const c=r(o);if(void 0!==c&&("suffix"!==s.reference&&i.push("//"),i.push(c),o.path&&"/"!==o.path[0]&&i.push("/")),void 0!==o.path){let e=o.path;s.absolutePath||l&&l.absolutePath||(e=t(e)),void 0===c&&"/"===e[0]&&"/"===e[1]&&(e="/%2F"+e.slice(2)),i.push(e)}return void 0!==o.query&&i.push("?",o.query),void 0!==o.fragment&&i.push("#",o.fragment),i.join("")}const p=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function d(t,r){const n=Object.assign({},r),i={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0};let l=!1;"suffix"===n.reference&&(t=n.scheme?n.scheme+":"+t:"//"+t);const c=t.match(p);if(c){if(i.scheme=c[1],i.userinfo=c[3],i.host=c[4],i.port=parseInt(c[5],10),i.path=c[6]||"",i.query=c[7],i.fragment=c[8],isNaN(i.port)&&(i.port=c[5]),i.host){if(!1===o(i.host)){const t=e(i.host);i.host=t.host.toLowerCase(),l=t.isIPV6}else l=!0}void 0!==i.scheme||void 0!==i.userinfo||void 0!==i.host||void 0!==i.port||void 0!==i.query||i.path?void 0===i.scheme?i.reference="relative":void 0===i.fragment?i.reference="absolute":i.reference="uri":i.reference="same-document",n.reference&&"suffix"!==n.reference&&n.reference!==i.reference&&(i.error=i.error||"URI is not a "+n.reference+" reference.");const r=a(n.scheme||i.scheme);if(!(n.unicodeSupport||r&&r.unicodeSupport)&&i.host&&(n.domainHost||r&&r.domainHost)&&!1===l&&s(i.host))try{i.host=URL.domainToASCII(i.host.toLowerCase())}catch(cd){i.error=i.error||"Host's domain name can not be converted to ASCII: "+cd}(!r||r&&!r.skipNormalize)&&(-1!==t.indexOf("%")&&(void 0!==i.scheme&&(i.scheme=unescape(i.scheme)),void 0!==i.host&&(i.host=unescape(i.host))),i.path&&(i.path=escape(unescape(i.path))),i.fragment&&(i.fragment=encodeURI(decodeURIComponent(i.fragment)))),r&&r.parse&&r.parse(i,n)}else i.error=i.error||"URI can not be parsed.";return i}const u={SCHEMES:i,normalize:function(e,t){return"string"==typeof e?e=c(d(e,t),t):"object"==typeof e&&(e=d(c(e,t),t)),e},resolve:function(e,t,r){const n=r?Object.assign({scheme:"null"},r):{scheme:"null"},o=l(d(e,n),d(t,n),n,!0);return n.skipEscape=!0,c(o,n)},resolveComponent:l,equal:function(e,t,r){return"string"==typeof e?(e=unescape(e),e=c(n(d(e,r),!0),{...r,skipEscape:!0})):"object"==typeof e&&(e=c(n(e,!0),{...r,skipEscape:!0})),"string"==typeof t?(t=unescape(t),t=c(n(d(t,r),!0),{...r,skipEscape:!0})):"object"==typeof t&&(t=c(n(t,!0),{...r,skipEscape:!0})),e.toLowerCase()===t.toLowerCase()},serialize:c,parse:d};return _r.exports=u,_r.exports.default=u,_r.exports.fastUri=u,_r.exports}function jr(){if($r)return wr;$r=1,Object.defineProperty(wr,"__esModule",{value:!0});const e=Sr();return e.code='require("ajv/dist/runtime/uri").default',wr.default=e,wr}function Or(){return xr||(xr=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=void 0;var t=or();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return t.KeywordCxt}});var r=gt();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return r._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return r.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return r.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return r.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return r.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return r.CodeGen}});const n=ar(),o=pr(),s=Tt(),i=fr(),a=gt(),l=nr(),c=Nt(),p=bt(),d=hr,u=jr(),f=(e,t)=>new RegExp(e,t);f.code="new RegExp";const h=["removeAdditional","useDefaults","coerceTypes"],m=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),g={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."},y={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'};function v(e){var t,r,n,o,s,i,a,l,c,p,d,h,m,g,y,v,b,$,x,w,_,k,S,j,O;const P=e.strict,E=null===(t=e.code)||void 0===t?void 0:t.optimize,T=!0===E||void 0===E?1:E||0,A=null!==(n=null===(r=e.code)||void 0===r?void 0:r.regExp)&&void 0!==n?n:f,C=null!==(o=e.uriResolver)&&void 0!==o?o:u.default;return{strictSchema:null===(i=null!==(s=e.strictSchema)&&void 0!==s?s:P)||void 0===i||i,strictNumbers:null===(l=null!==(a=e.strictNumbers)&&void 0!==a?a:P)||void 0===l||l,strictTypes:null!==(p=null!==(c=e.strictTypes)&&void 0!==c?c:P)&&void 0!==p?p:"log",strictTuples:null!==(h=null!==(d=e.strictTuples)&&void 0!==d?d:P)&&void 0!==h?h:"log",strictRequired:null!==(g=null!==(m=e.strictRequired)&&void 0!==m?m:P)&&void 0!==g&&g,code:e.code?{...e.code,optimize:T,regExp:A}:{optimize:T,regExp:A},loopRequired:null!==(y=e.loopRequired)&&void 0!==y?y:200,loopEnum:null!==(v=e.loopEnum)&&void 0!==v?v:200,meta:null===(b=e.meta)||void 0===b||b,messages:null===($=e.messages)||void 0===$||$,inlineRefs:null===(x=e.inlineRefs)||void 0===x||x,schemaId:null!==(w=e.schemaId)&&void 0!==w?w:"$id",addUsedSchema:null===(_=e.addUsedSchema)||void 0===_||_,validateSchema:null===(k=e.validateSchema)||void 0===k||k,validateFormats:null===(S=e.validateFormats)||void 0===S||S,unicodeRegExp:null===(j=e.unicodeRegExp)||void 0===j||j,int32range:null===(O=e.int32range)||void 0===O||O,uriResolver:C}}class b{constructor(e={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,e=this.opts={...e,...v(e)};const{es5:t,lines:r}=this.opts.code;this.scope=new a.ValueScope({scope:{},prefixes:m,es5:t,lines:r}),this.logger=function(e){if(!1===e)return j;if(void 0===e)return console;if(e.log&&e.warn&&e.error)return e;throw new Error("logger must implement log, warn and error methods")}(e.logger);const n=e.validateFormats;e.validateFormats=!1,this.RULES=(0,s.getRules)(),$.call(this,g,e,"NOT SUPPORTED"),$.call(this,y,e,"DEPRECATED","warn"),this._metaOpts=S.call(this),e.formats&&_.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),e.keywords&&k.call(this,e.keywords),"object"==typeof e.meta&&this.addMetaSchema(e.meta),w.call(this),e.validateFormats=n}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:e,meta:t,schemaId:r}=this.opts;let n=d;"id"===r&&(n={...d},n.id=n.$id,delete n.$id),t&&e&&this.addMetaSchema(n,n[r],!1)}defaultMeta(){const{meta:e,schemaId:t}=this.opts;return this.opts.defaultMeta="object"==typeof e?e[t]||e:void 0}validate(e,t){let r;if("string"==typeof e){if(r=this.getSchema(e),!r)throw new Error(`no schema with key or ref "${e}"`)}else r=this.compile(e);const n=r(t);return"$async"in r||(this.errors=r.errors),n}compile(e,t){const r=this._addSchema(e,t);return r.validate||this._compileSchemaEnv(r)}compileAsync(e,t){if("function"!=typeof this.opts.loadSchema)throw new Error("options.loadSchema should be a function");const{loadSchema:r}=this.opts;return n.call(this,e,t);async function n(e,t){await s.call(this,e.$schema);const r=this._addSchema(e,t);return r.validate||i.call(this,r)}async function s(e){e&&!this.getSchema(e)&&await n.call(this,{$ref:e},!0)}async function i(e){try{return this._compileSchemaEnv(e)}catch(cd){if(!(cd instanceof o.default))throw cd;return a.call(this,cd),await l.call(this,cd.missingSchema),i.call(this,e)}}function a({missingSchema:e,missingRef:t}){if(this.refs[e])throw new Error(`AnySchema ${e} is loaded but ${t} cannot be resolved`)}async function l(e){const r=await c.call(this,e);this.refs[e]||await s.call(this,r.$schema),this.refs[e]||this.addSchema(r,e,t)}async function c(e){const t=this._loading[e];if(t)return t;try{return await(this._loading[e]=r(e))}finally{delete this._loading[e]}}}addSchema(e,t,r,n=this.opts.validateSchema){if(Array.isArray(e)){for(const t of e)this.addSchema(t,void 0,r,n);return this}let o;if("object"==typeof e){const{schemaId:t}=this.opts;if(o=e[t],void 0!==o&&"string"!=typeof o)throw new Error(`schema ${t} must be string`)}return t=(0,l.normalizeId)(t||o),this._checkUnique(t),this.schemas[t]=this._addSchema(e,r,t,n,!0),this}addMetaSchema(e,t,r=this.opts.validateSchema){return this.addSchema(e,t,!0,r),this}validateSchema(e,t){if("boolean"==typeof e)return!0;let r;if(r=e.$schema,void 0!==r&&"string"!=typeof r)throw new Error("$schema must be a string");if(r=r||this.opts.defaultMeta||this.defaultMeta(),!r)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const n=this.validate(r,e);if(!n&&t){const e="schema is invalid: "+this.errorsText();if("log"!==this.opts.validateSchema)throw new Error(e);this.logger.error(e)}return n}getSchema(e){let t;for(;"string"==typeof(t=x.call(this,e));)e=t;if(void 0===t){const{schemaId:r}=this.opts,n=new i.SchemaEnv({schema:{},schemaId:r});if(t=i.resolveSchema.call(this,n,e),!t)return;this.refs[e]=t}return t.validate||this._compileSchemaEnv(t)}removeSchema(e){if(e instanceof RegExp)return this._removeAllSchemas(this.schemas,e),this._removeAllSchemas(this.refs,e),this;switch(typeof e){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const t=x.call(this,e);return"object"==typeof t&&this._cache.delete(t.schema),delete this.schemas[e],delete this.refs[e],this}case"object":{const t=e;this._cache.delete(t);let r=e[this.opts.schemaId];return r&&(r=(0,l.normalizeId)(r),delete this.schemas[r],delete this.refs[r]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(e){for(const t of e)this.addKeyword(t);return this}addKeyword(e,t){let r;if("string"==typeof e)r=e,"object"==typeof t&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),t.keyword=r);else{if("object"!=typeof e||void 0!==t)throw new Error("invalid addKeywords parameters");if(r=(t=e).keyword,Array.isArray(r)&&!r.length)throw new Error("addKeywords: keyword must be string or non-empty array")}if(P.call(this,r,t),!t)return(0,p.eachItem)(r,e=>E.call(this,e)),this;A.call(this,t);const n={...t,type:(0,c.getJSONTypes)(t.type),schemaType:(0,c.getJSONTypes)(t.schemaType)};return(0,p.eachItem)(r,0===n.type.length?e=>E.call(this,e,n):e=>n.type.forEach(t=>E.call(this,e,n,t))),this}getKeyword(e){const t=this.RULES.all[e];return"object"==typeof t?t.definition:!!t}removeKeyword(e){const{RULES:t}=this;delete t.keywords[e],delete t.all[e];for(const r of t.rules){const t=r.rules.findIndex(t=>t.keyword===e);t>=0&&r.rules.splice(t,1)}return this}addFormat(e,t){return"string"==typeof t&&(t=new RegExp(t)),this.formats[e]=t,this}errorsText(e=this.errors,{separator:t=", ",dataVar:r="data"}={}){return e&&0!==e.length?e.map(e=>`${r}${e.instancePath} ${e.message}`).reduce((e,r)=>e+t+r):"No errors"}$dataMetaSchema(e,t){const r=this.RULES.all;e=JSON.parse(JSON.stringify(e));for(const n of t){const t=n.split("/").slice(1);let o=e;for(const e of t)o=o[e];for(const e in r){const t=r[e];if("object"!=typeof t)continue;const{$data:n}=t.definition,s=o[e];n&&s&&(o[e]=I(s))}}return e}_removeAllSchemas(e,t){for(const r in e){const n=e[r];t&&!t.test(r)||("string"==typeof n?delete e[r]:n&&!n.meta&&(this._cache.delete(n.schema),delete e[r]))}}_addSchema(e,t,r,n=this.opts.validateSchema,o=this.opts.addUsedSchema){let s;const{schemaId:a}=this.opts;if("object"==typeof e)s=e[a];else{if(this.opts.jtd)throw new Error("schema must be object");if("boolean"!=typeof e)throw new Error("schema must be object or boolean")}let c=this._cache.get(e);if(void 0!==c)return c;r=(0,l.normalizeId)(s||r);const p=l.getSchemaRefs.call(this,e,r);return c=new i.SchemaEnv({schema:e,schemaId:a,meta:t,baseId:r,localRefs:p}),this._cache.set(c.schema,c),o&&!r.startsWith("#")&&(r&&this._checkUnique(r),this.refs[r]=c),n&&this.validateSchema(e,!0),c}_checkUnique(e){if(this.schemas[e]||this.refs[e])throw new Error(`schema with key or id "${e}" already exists`)}_compileSchemaEnv(e){if(e.meta?this._compileMetaSchema(e):i.compileSchema.call(this,e),!e.validate)throw new Error("ajv implementation error");return e.validate}_compileMetaSchema(e){const t=this.opts;this.opts=this._metaOpts;try{i.compileSchema.call(this,e)}finally{this.opts=t}}}function $(e,t,r,n="error"){for(const o in e){const s=o;s in t&&this.logger[n](`${r}: option ${o}. ${e[s]}`)}}function x(e){return e=(0,l.normalizeId)(e),this.schemas[e]||this.refs[e]}function w(){const e=this.opts.schemas;if(e)if(Array.isArray(e))this.addSchema(e);else for(const t in e)this.addSchema(e[t],t)}function _(){for(const e in this.opts.formats){const t=this.opts.formats[e];t&&this.addFormat(e,t)}}function k(e){if(Array.isArray(e))this.addVocabulary(e);else{this.logger.warn("keywords option as map is deprecated, pass array");for(const t in e){const r=e[t];r.keyword||(r.keyword=t),this.addKeyword(r)}}}function S(){const e={...this.opts};for(const t of h)delete e[t];return e}b.ValidationError=n.default,b.MissingRefError=o.default,e.default=b;const j={log(){},warn(){},error(){}};const O=/^[a-z_$][a-z0-9_$:-]*$/i;function P(e,t){const{RULES:r}=this;if((0,p.eachItem)(e,e=>{if(r.keywords[e])throw new Error(`Keyword ${e} is already defined`);if(!O.test(e))throw new Error(`Keyword ${e} has invalid name`)}),t&&t.$data&&!("code"in t)&&!("validate"in t))throw new Error('$data keyword must have "code" or "validate" function')}function E(e,t,r){var n;const o=null==t?void 0:t.post;if(r&&o)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:s}=this;let i=o?s.post:s.rules.find(({type:e})=>e===r);if(i||(i={type:r,rules:[]},s.rules.push(i)),s.keywords[e]=!0,!t)return;const a={keyword:e,definition:{...t,type:(0,c.getJSONTypes)(t.type),schemaType:(0,c.getJSONTypes)(t.schemaType)}};t.before?T.call(this,i,a,t.before):i.rules.push(a),s.all[e]=a,null===(n=t.implements)||void 0===n||n.forEach(e=>this.addKeyword(e))}function T(e,t,r){const n=e.rules.findIndex(e=>e.keyword===r);n>=0?e.rules.splice(n,0,t):(e.rules.push(t),this.logger.warn(`rule ${r} is not defined`))}function A(e){let{metaSchema:t}=e;void 0!==t&&(e.$data&&this.opts.$data&&(t=I(t)),e.validateSchema=this.compile(t,!0))}const C={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function I(e){return{anyOf:[e,C]}}}(st)),st}var Pr,Er,Tr={},Ar={},Cr={};function Ir(){if(Pr)return Cr;Pr=1,Object.defineProperty(Cr,"__esModule",{value:!0}),Cr.callRef=Cr.getValidate=void 0;const e=pr(),t=Ht(),r=gt(),n=kt(),o=fr(),s=bt(),i={keyword:"$ref",schemaType:"string",code(t){const{gen:n,schema:s,it:i}=t,{baseId:c,schemaEnv:p,validateName:d,opts:u,self:f}=i,{root:h}=p;if(("#"===s||"#/"===s)&&c===h.baseId)return function(){if(p===h)return l(t,d,p,p.$async);const e=n.scopeValue("root",{ref:h});return l(t,r._`${e}.validate`,h,h.$async)}();const m=o.resolveRef.call(f,h,c,s);if(void 0===m)throw new e.default(i.opts.uriResolver,c,s);return m instanceof o.SchemaEnv?function(e){const r=a(t,e);l(t,r,e,e.$async)}(m):function(e){const o=n.scopeValue("schema",!0===u.code.source?{ref:e,code:(0,r.stringify)(e)}:{ref:e}),i=n.name("valid"),a=t.subschema({schema:e,dataTypes:[],schemaPath:r.nil,topSchemaRef:o,errSchemaPath:s},i);t.mergeEvaluated(a),t.ok(i)}(m)}};function a(e,t){const{gen:n}=e;return t.validate?n.scopeValue("validate",{ref:t.validate}):r._`${n.scopeValue("wrapper",{ref:t})}.validate`}function l(e,o,i,a){const{gen:l,it:c}=e,{allErrors:p,schemaEnv:d,opts:u}=c,f=u.passContext?n.default.this:r.nil;function h(e){const t=r._`${e}.errors`;l.assign(n.default.vErrors,r._`${n.default.vErrors} === null ? ${t} : ${n.default.vErrors}.concat(${t})`),l.assign(n.default.errors,r._`${n.default.vErrors}.length`)}function m(e){var t;if(!c.opts.unevaluated)return;const n=null===(t=null==i?void 0:i.validate)||void 0===t?void 0:t.evaluated;if(!0!==c.props)if(n&&!n.dynamicProps)void 0!==n.props&&(c.props=s.mergeEvaluated.props(l,n.props,c.props));else{const t=l.var("props",r._`${e}.evaluated.props`);c.props=s.mergeEvaluated.props(l,t,c.props,r.Name)}if(!0!==c.items)if(n&&!n.dynamicItems)void 0!==n.items&&(c.items=s.mergeEvaluated.items(l,n.items,c.items));else{const t=l.var("items",r._`${e}.evaluated.items`);c.items=s.mergeEvaluated.items(l,t,c.items,r.Name)}}a?function(){if(!d.$async)throw new Error("async schema referenced by sync schema");const n=l.let("valid");l.try(()=>{l.code(r._`await ${(0,t.callValidateCode)(e,o,f)}`),m(o),p||l.assign(n,!0)},e=>{l.if(r._`!(${e} instanceof ${c.ValidationError})`,()=>l.throw(e)),h(e),p||l.assign(n,!1)}),e.ok(n)}():e.result((0,t.callValidateCode)(e,o,f),()=>m(o),()=>h(o))}return Cr.getValidate=a,Cr.callRef=l,Cr.default=i,Cr}var Rr,Nr={},Mr={};var qr,zr={};var Ur,Lr={};function Dr(){if(Ur)return Lr;Ur=1,Object.defineProperty(Lr,"__esModule",{value:!0});const e=gt(),t={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:t})=>e.str`must be multiple of ${t}`,params:({schemaCode:t})=>e._`{multipleOf: ${t}}`},code(t){const{gen:r,data:n,schemaCode:o,it:s}=t,i=s.opts.multipleOfPrecision,a=r.let("res"),l=i?e._`Math.abs(Math.round(${a}) - ${a}) > 1e-${i}`:e._`${a} !== parseInt(${a})`;t.fail$data(e._`(${o} === 0 || (${a} = ${n}/${o}, ${l}))`)}};return Lr.default=t,Lr}var Br,Hr,Fr={},Vr={};function Jr(){if(Br)return Vr;function e(e){const t=e.length;let r,n=0,o=0;for(;o<t;)n++,r=e.charCodeAt(o++),r>=55296&&r<=56319&&o<t&&(r=e.charCodeAt(o),56320==(64512&r)&&o++);return n}return Br=1,Object.defineProperty(Vr,"__esModule",{value:!0}),Vr.default=e,e.code='require("ajv/dist/runtime/ucs2length").default',Vr}function Wr(){if(Hr)return Fr;Hr=1,Object.defineProperty(Fr,"__esModule",{value:!0});const e=gt(),t=bt(),r=Jr(),n={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:{message({keyword:t,schemaCode:r}){const n="maxLength"===t?"more":"fewer";return e.str`must NOT have ${n} than ${r} characters`},params:({schemaCode:t})=>e._`{limit: ${t}}`},code(n){const{keyword:o,data:s,schemaCode:i,it:a}=n,l="maxLength"===o?e.operators.GT:e.operators.LT,c=!1===a.opts.unicode?e._`${s}.length`:e._`${(0,t.useFunc)(n.gen,r.default)}(${s})`;n.fail$data(e._`${c} ${l} ${i}`)}};return Fr.default=n,Fr}var Gr,Kr={};function Zr(){if(Gr)return Kr;Gr=1,Object.defineProperty(Kr,"__esModule",{value:!0});const e=Ht(),t=bt(),r=gt(),n={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>r.str`must match pattern "${e}"`,params:({schemaCode:e})=>r._`{pattern: ${e}}`},code(n){const{gen:o,data:s,$data:i,schema:a,schemaCode:l,it:c}=n,p=c.opts.unicodeRegExp?"u":"";if(i){const{regExp:e}=c.opts.code,i="new RegExp"===e.code?r._`new RegExp`:(0,t.useFunc)(o,e),a=o.let("valid");o.try(()=>o.assign(a,r._`${i}(${l}, ${p}).test(${s})`),()=>o.assign(a,!1)),n.fail$data(r._`!${a}`)}else{const t=(0,e.usePattern)(n,a);n.fail$data(r._`!${t}.test(${s})`)}}};return Kr.default=n,Kr}var Qr,Yr={};function Xr(){if(Qr)return Yr;Qr=1,Object.defineProperty(Yr,"__esModule",{value:!0});const e=gt(),t={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:{message({keyword:t,schemaCode:r}){const n="maxProperties"===t?"more":"fewer";return e.str`must NOT have ${n} than ${r} properties`},params:({schemaCode:t})=>e._`{limit: ${t}}`},code(t){const{keyword:r,data:n,schemaCode:o}=t,s="maxProperties"===r?e.operators.GT:e.operators.LT;t.fail$data(e._`Object.keys(${n}).length ${s} ${o}`)}};return Yr.default=t,Yr}var en,tn={};function rn(){if(en)return tn;en=1,Object.defineProperty(tn,"__esModule",{value:!0});const e=Ht(),t=gt(),r=bt(),n={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:e}})=>t.str`must have required property '${e}'`,params:({params:{missingProperty:e}})=>t._`{missingProperty: ${e}}`},code(n){const{gen:o,schema:s,schemaCode:i,data:a,$data:l,it:c}=n,{opts:p}=c;if(!l&&0===s.length)return;const d=s.length>=p.loopRequired;if(c.allErrors?function(){if(d||l)n.block$data(t.nil,u);else for(const t of s)(0,e.checkReportMissingProp)(n,t)}():function(){const r=o.let("missing");if(d||l){const s=o.let("valid",!0);n.block$data(s,()=>function(r,s){n.setParams({missingProperty:r}),o.forOf(r,i,()=>{o.assign(s,(0,e.propertyInData)(o,a,r,p.ownProperties)),o.if((0,t.not)(s),()=>{n.error(),o.break()})},t.nil)}(r,s)),n.ok(s)}else o.if((0,e.checkMissingProp)(n,s,r)),(0,e.reportMissingProp)(n,r),o.else()}(),p.strictRequired){const e=n.parentSchema.properties,{definedProperties:t}=n.it;for(const n of s)if(void 0===(null==e?void 0:e[n])&&!t.has(n)){const e=`required property "${n}" is not defined at "${c.schemaEnv.baseId+c.errSchemaPath}" (strictRequired)`;(0,r.checkStrictMode)(c,e,c.opts.strictRequired)}}function u(){o.forOf("prop",i,t=>{n.setParams({missingProperty:t}),o.if((0,e.noPropertyInData)(o,a,t,p.ownProperties),()=>n.error())})}}};return tn.default=n,tn}var nn,on={};function sn(){if(nn)return on;nn=1,Object.defineProperty(on,"__esModule",{value:!0});const e=gt(),t={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:{message({keyword:t,schemaCode:r}){const n="maxItems"===t?"more":"fewer";return e.str`must NOT have ${n} than ${r} items`},params:({schemaCode:t})=>e._`{limit: ${t}}`},code(t){const{keyword:r,data:n,schemaCode:o}=t,s="maxItems"===r?e.operators.GT:e.operators.LT;t.fail$data(e._`${n}.length ${s} ${o}`)}};return on.default=t,on}var an,ln,cn={},pn={};function dn(){if(an)return pn;an=1,Object.defineProperty(pn,"__esModule",{value:!0});const e=Qt();return e.code='require("ajv/dist/runtime/equal").default',pn.default=e,pn}function un(){if(ln)return cn;ln=1,Object.defineProperty(cn,"__esModule",{value:!0});const e=Nt(),t=gt(),r=bt(),n=dn(),o={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:{message:({params:{i:e,j:r}})=>t.str`must NOT have duplicate items (items ## ${r} and ${e} are identical)`,params:({params:{i:e,j:r}})=>t._`{i: ${e}, j: ${r}}`},code(o){const{gen:s,data:i,$data:a,schema:l,parentSchema:c,schemaCode:p,it:d}=o;if(!a&&!l)return;const u=s.let("valid"),f=c.items?(0,e.getSchemaTypes)(c.items):[];function h(r,n){const a=s.name("item"),l=(0,e.checkDataTypes)(f,a,d.opts.strictNumbers,e.DataType.Wrong),c=s.const("indices",t._`{}`);s.for(t._`;${r}--;`,()=>{s.let(a,t._`${i}[${r}]`),s.if(l,t._`continue`),f.length>1&&s.if(t._`typeof ${a} == "string"`,t._`${a} += "_"`),s.if(t._`typeof ${c}[${a}] == "number"`,()=>{s.assign(n,t._`${c}[${a}]`),o.error(),s.assign(u,!1).break()}).code(t._`${c}[${a}] = ${r}`)})}function m(e,a){const l=(0,r.useFunc)(s,n.default),c=s.name("outer");s.label(c).for(t._`;${e}--;`,()=>s.for(t._`${a} = ${e}; ${a}--;`,()=>s.if(t._`${l}(${i}[${e}], ${i}[${a}])`,()=>{o.error(),s.assign(u,!1).break(c)})))}o.block$data(u,function(){const e=s.let("i",t._`${i}.length`),r=s.let("j");o.setParams({i:e,j:r}),s.assign(u,!0),s.if(t._`${e} > 1`,()=>(f.length>0&&!f.some(e=>"object"===e||"array"===e)?h:m)(e,r))},t._`${p} === false`),o.ok(u)}};return cn.default=o,cn}var fn,hn={};function mn(){if(fn)return hn;fn=1,Object.defineProperty(hn,"__esModule",{value:!0});const e=gt(),t=bt(),r=dn(),n={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:t})=>e._`{allowedValue: ${t}}`},code(n){const{gen:o,data:s,$data:i,schemaCode:a,schema:l}=n;i||l&&"object"==typeof l?n.fail$data(e._`!${(0,t.useFunc)(o,r.default)}(${s}, ${a})`):n.fail(e._`${l} !== ${s}`)}};return hn.default=n,hn}var gn,yn,vn={};function bn(){if(gn)return vn;gn=1,Object.defineProperty(vn,"__esModule",{value:!0});const e=gt(),t=bt(),r=dn(),n={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:t})=>e._`{allowedValues: ${t}}`},code(n){const{gen:o,data:s,$data:i,schema:a,schemaCode:l,it:c}=n;if(!i&&0===a.length)throw new Error("enum must have non-empty array");const p=a.length>=c.opts.loopEnum;let d;const u=()=>null!=d?d:d=(0,t.useFunc)(o,r.default);let f;if(p||i)f=o.let("valid"),n.block$data(f,function(){o.assign(f,!1),o.forOf("v",l,t=>o.if(e._`${u()}(${s}, ${t})`,()=>o.assign(f,!0).break()))});else{if(!Array.isArray(a))throw new Error("ajv implementation error");const t=o.const("vSchema",l);f=(0,e.or)(...a.map((r,n)=>function(t,r){const n=a[r];return"object"==typeof n&&null!==n?e._`${u()}(${s}, ${t}[${r}])`:e._`${s} === ${n}`}(t,n)))}n.pass(f)}};return vn.default=n,vn}function $n(){if(yn)return Nr;yn=1,Object.defineProperty(Nr,"__esModule",{value:!0});const e=function(){if(Rr)return Mr;Rr=1,Object.defineProperty(Mr,"__esModule",{value:!0});const e=Or(),t=gt().operators,r={maximum:{exclusive:"exclusiveMaximum",ops:[{okStr:"<=",ok:t.LTE,fail:t.GT},{okStr:"<",ok:t.LT,fail:t.GTE}]},minimum:{exclusive:"exclusiveMinimum",ops:[{okStr:">=",ok:t.GTE,fail:t.LT},{okStr:">",ok:t.GT,fail:t.LTE}]}},n={message:t=>e.str`must be ${s(t).okStr} ${t.schemaCode}`,params:t=>e._`{comparison: ${s(t).okStr}, limit: ${t.schemaCode}}`},o={keyword:Object.keys(r),type:"number",schemaType:"number",$data:!0,error:n,code(t){const{data:r,schemaCode:n}=t;t.fail$data(e._`${r} ${s(t).fail} ${n} || isNaN(${r})`)}};function s(e){var t;const n=e.keyword,o=(null===(t=e.parentSchema)||void 0===t?void 0:t[r[n].exclusive])?1:0;return r[n].ops[o]}return Mr.default=o,Mr}(),t=function(){if(qr)return zr;qr=1,Object.defineProperty(zr,"__esModule",{value:!0});const e={exclusiveMaximum:"maximum",exclusiveMinimum:"minimum"},t={keyword:Object.keys(e),type:"number",schemaType:"boolean",code({keyword:t,parentSchema:r}){const n=e[t];if(void 0===r[n])throw new Error(`${t} can only be used with ${n}`)}};return zr.default=t,zr}(),r=Dr(),n=Wr(),o=Zr(),s=Xr(),i=rn(),a=sn(),l=un(),c=mn(),p=bn(),d=[e.default,t.default,r.default,n.default,o.default,s.default,i.default,a.default,l.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},c.default,p.default];return Nr.default=d,Nr}var xn,wn={},_n={};function kn(){if(xn)return _n;xn=1,Object.defineProperty(_n,"__esModule",{value:!0}),_n.validateAdditionalItems=void 0;const e=gt(),t=bt(),r={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:t}})=>e.str`must NOT have more than ${t} items`,params:({params:{len:t}})=>e._`{limit: ${t}}`},code(e){const{parentSchema:r,it:o}=e,{items:s}=r;Array.isArray(s)?n(e,s):(0,t.checkStrictMode)(o,'"additionalItems" is ignored when "items" is not an array of schemas')}};function n(r,n){const{gen:o,schema:s,data:i,keyword:a,it:l}=r;l.items=!0;const c=o.const("len",e._`${i}.length`);if(!1===s)r.setParams({len:n.length}),r.pass(e._`${c} <= ${n.length}`);else if("object"==typeof s&&!(0,t.alwaysValidSchema)(l,s)){const s=o.var("valid",e._`${c} <= ${n.length}`);o.if((0,e.not)(s),()=>function(s){o.forRange("i",n.length,c,n=>{r.subschema({keyword:a,dataProp:n,dataPropType:t.Type.Num},s),l.allErrors||o.if((0,e.not)(s),()=>o.break())})}(s)),r.ok(s)}}return _n.validateAdditionalItems=n,_n.default=r,_n}var Sn,jn,On={},Pn={};function En(){if(Sn)return Pn;Sn=1,Object.defineProperty(Pn,"__esModule",{value:!0}),Pn.validateTuple=void 0;const e=gt(),t=bt(),r=Ht(),n={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){const{schema:n,it:s}=e;if(Array.isArray(n))return o(e,"additionalItems",n);s.items=!0,(0,t.alwaysValidSchema)(s,n)||e.ok((0,r.validateArray)(e))}};function o(r,n,o=r.schema){const{gen:s,parentSchema:i,data:a,keyword:l,it:c}=r;!function(e){const{opts:r,errSchemaPath:s}=c,i=o.length,a=i===e.minItems&&(i===e.maxItems||!1===e[n]);if(r.strictTuples&&!a){const e=`"${l}" is ${i}-tuple, but minItems or maxItems/${n} are not specified or different at path "${s}"`;(0,t.checkStrictMode)(c,e,r.strictTuples)}}(i),c.opts.unevaluated&&o.length&&!0!==c.items&&(c.items=t.mergeEvaluated.items(s,o.length,c.items));const p=s.name("valid"),d=s.const("len",e._`${a}.length`);o.forEach((n,o)=>{(0,t.alwaysValidSchema)(c,n)||(s.if(e._`${d} > ${o}`,()=>r.subschema({keyword:l,schemaProp:o,dataProp:o},p)),r.ok(p))})}return Pn.validateTuple=o,Pn.default=n,Pn}function Tn(){if(jn)return On;jn=1,Object.defineProperty(On,"__esModule",{value:!0});const e=En(),t={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:t=>(0,e.validateTuple)(t,"items")};return On.default=t,On}var An,Cn={};function In(){if(An)return Cn;An=1,Object.defineProperty(Cn,"__esModule",{value:!0});const e=gt(),t=bt(),r=Ht(),n=kn(),o={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:t}})=>e.str`must NOT have more than ${t} items`,params:({params:{len:t}})=>e._`{limit: ${t}}`},code(e){const{schema:o,parentSchema:s,it:i}=e,{prefixItems:a}=s;i.items=!0,(0,t.alwaysValidSchema)(i,o)||(a?(0,n.validateAdditionalItems)(e,a):e.ok((0,r.validateArray)(e)))}};return Cn.default=o,Cn}var Rn,Nn={};function Mn(){if(Rn)return Nn;Rn=1,Object.defineProperty(Nn,"__esModule",{value:!0});const e=gt(),t=bt(),r={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:t,max:r}})=>void 0===r?e.str`must contain at least ${t} valid item(s)`:e.str`must contain at least ${t} and no more than ${r} valid item(s)`,params:({params:{min:t,max:r}})=>void 0===r?e._`{minContains: ${t}}`:e._`{minContains: ${t}, maxContains: ${r}}`},code(r){const{gen:n,schema:o,parentSchema:s,data:i,it:a}=r;let l,c;const{minContains:p,maxContains:d}=s;a.opts.next?(l=void 0===p?1:p,c=d):l=1;const u=n.const("len",e._`${i}.length`);if(r.setParams({min:l,max:c}),void 0===c&&0===l)return void(0,t.checkStrictMode)(a,'"minContains" == 0 without "maxContains": "contains" keyword ignored');if(void 0!==c&&l>c)return(0,t.checkStrictMode)(a,'"minContains" > "maxContains" is always invalid'),void r.fail();if((0,t.alwaysValidSchema)(a,o)){let t=e._`${u} >= ${l}`;return void 0!==c&&(t=e._`${t} && ${u} <= ${c}`),void r.pass(t)}a.items=!0;const f=n.name("valid");function h(){const t=n.name("_valid"),r=n.let("count",0);m(t,()=>n.if(t,()=>function(t){n.code(e._`${t}++`),void 0===c?n.if(e._`${t} >= ${l}`,()=>n.assign(f,!0).break()):(n.if(e._`${t} > ${c}`,()=>n.assign(f,!1).break()),1===l?n.assign(f,!0):n.if(e._`${t} >= ${l}`,()=>n.assign(f,!0)))}(r)))}function m(e,o){n.forRange("i",0,u,n=>{r.subschema({keyword:"contains",dataProp:n,dataPropType:t.Type.Num,compositeRule:!0},e),o()})}void 0===c&&1===l?m(f,()=>n.if(f,()=>n.break())):0===l?(n.let(f,!0),void 0!==c&&n.if(e._`${i}.length > 0`,h)):(n.let(f,!1),h()),r.result(f,()=>r.reset())}};return Nn.default=r,Nn}var qn,zn={};function Un(){return qn||(qn=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=gt(),r=bt(),n=Ht();e.error={message:({params:{property:e,depsCount:r,deps:n}})=>{const o=1===r?"property":"properties";return t.str`must have ${o} ${n} when property ${e} is present`},params:({params:{property:e,depsCount:r,deps:n,missingProperty:o}})=>t._`{property: ${e},
254
+ missingProperty: ${o},
255
+ depsCount: ${r},
256
+ deps: ${n}}`};const o={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(e){const[t,r]=function({schema:e}){const t={},r={};for(const n in e){if("__proto__"===n)continue;(Array.isArray(e[n])?t:r)[n]=e[n]}return[t,r]}(e);s(e,t),i(e,r)}};function s(e,r=e.schema){const{gen:o,data:s,it:i}=e;if(0===Object.keys(r).length)return;const a=o.let("missing");for(const l in r){const c=r[l];if(0===c.length)continue;const p=(0,n.propertyInData)(o,s,l,i.opts.ownProperties);e.setParams({property:l,depsCount:c.length,deps:c.join(", ")}),i.allErrors?o.if(p,()=>{for(const t of c)(0,n.checkReportMissingProp)(e,t)}):(o.if(t._`${p} && (${(0,n.checkMissingProp)(e,c,a)})`),(0,n.reportMissingProp)(e,a),o.else())}}function i(e,t=e.schema){const{gen:o,data:s,keyword:i,it:a}=e,l=o.name("valid");for(const c in t)(0,r.alwaysValidSchema)(a,t[c])||(o.if((0,n.propertyInData)(o,s,c,a.opts.ownProperties),()=>{const t=e.subschema({keyword:i,schemaProp:c},l);e.mergeValidEvaluated(t,l)},()=>o.var(l,!0)),e.ok(l))}e.validatePropertyDeps=s,e.validateSchemaDeps=i,e.default=o}(zn)),zn}var Ln,Dn={};function Bn(){if(Ln)return Dn;Ln=1,Object.defineProperty(Dn,"__esModule",{value:!0});const e=gt(),t=bt(),r={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:t})=>e._`{propertyName: ${t.propertyName}}`},code(r){const{gen:n,schema:o,data:s,it:i}=r;if((0,t.alwaysValidSchema)(i,o))return;const a=n.name("valid");n.forIn("key",s,t=>{r.setParams({propertyName:t}),r.subschema({keyword:"propertyNames",data:t,dataTypes:["string"],propertyName:t,compositeRule:!0},a),n.if((0,e.not)(a),()=>{r.error(!0),i.allErrors||n.break()})}),r.ok(a)}};return Dn.default=r,Dn}var Hn,Fn={};function Vn(){if(Hn)return Fn;Hn=1,Object.defineProperty(Fn,"__esModule",{value:!0});const e=Ht(),t=gt(),r=kt(),n=bt(),o={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:e})=>t._`{additionalProperty: ${e.additionalProperty}}`},code(o){const{gen:s,schema:i,parentSchema:a,data:l,errsCount:c,it:p}=o;if(!c)throw new Error("ajv implementation error");const{allErrors:d,opts:u}=p;if(p.props=!0,"all"!==u.removeAdditional&&(0,n.alwaysValidSchema)(p,i))return;const f=(0,e.allSchemaProperties)(a.properties),h=(0,e.allSchemaProperties)(a.patternProperties);function m(e){s.code(t._`delete ${l}[${e}]`)}function g(e){if("all"===u.removeAdditional||u.removeAdditional&&!1===i)m(e);else{if(!1===i)return o.setParams({additionalProperty:e}),o.error(),void(d||s.break());if("object"==typeof i&&!(0,n.alwaysValidSchema)(p,i)){const r=s.name("valid");"failing"===u.removeAdditional?(y(e,r,!1),s.if((0,t.not)(r),()=>{o.reset(),m(e)})):(y(e,r),d||s.if((0,t.not)(r),()=>s.break()))}}}function y(e,t,r){const s={keyword:"additionalProperties",dataProp:e,dataPropType:n.Type.Str};!1===r&&Object.assign(s,{compositeRule:!0,createErrors:!1,allErrors:!1}),o.subschema(s,t)}s.forIn("key",l,r=>{f.length||h.length?s.if(function(r){let i;if(f.length>8){const t=(0,n.schemaRefOrVal)(p,a.properties,"properties");i=(0,e.isOwnProperty)(s,t,r)}else i=f.length?(0,t.or)(...f.map(e=>t._`${r} === ${e}`)):t.nil;return h.length&&(i=(0,t.or)(i,...h.map(n=>t._`${(0,e.usePattern)(o,n)}.test(${r})`))),(0,t.not)(i)}(r),()=>g(r)):g(r)}),o.ok(t._`${c} === ${r.default.errors}`)}};return Fn.default=o,Fn}var Jn,Wn={};function Gn(){if(Jn)return Wn;Jn=1,Object.defineProperty(Wn,"__esModule",{value:!0});const e=or(),t=Ht(),r=bt(),n=Vn(),o={keyword:"properties",type:"object",schemaType:"object",code(o){const{gen:s,schema:i,parentSchema:a,data:l,it:c}=o;"all"===c.opts.removeAdditional&&void 0===a.additionalProperties&&n.default.code(new e.KeywordCxt(c,n.default,"additionalProperties"));const p=(0,t.allSchemaProperties)(i);for(const e of p)c.definedProperties.add(e);c.opts.unevaluated&&p.length&&!0!==c.props&&(c.props=r.mergeEvaluated.props(s,(0,r.toHash)(p),c.props));const d=p.filter(e=>!(0,r.alwaysValidSchema)(c,i[e]));if(0===d.length)return;const u=s.name("valid");for(const e of d)f(e)?h(e):(s.if((0,t.propertyInData)(s,l,e,c.opts.ownProperties)),h(e),c.allErrors||s.else().var(u,!0),s.endIf()),o.it.definedProperties.add(e),o.ok(u);function f(e){return c.opts.useDefaults&&!c.compositeRule&&void 0!==i[e].default}function h(e){o.subschema({keyword:"properties",schemaProp:e,dataProp:e},u)}}};return Wn.default=o,Wn}var Kn,Zn={};function Qn(){if(Kn)return Zn;Kn=1,Object.defineProperty(Zn,"__esModule",{value:!0});const e=Ht(),t=gt(),r=bt(),n=bt(),o={keyword:"patternProperties",type:"object",schemaType:"object",code(o){const{gen:s,schema:i,data:a,parentSchema:l,it:c}=o,{opts:p}=c,d=(0,e.allSchemaProperties)(i),u=d.filter(e=>(0,r.alwaysValidSchema)(c,i[e]));if(0===d.length||u.length===d.length&&(!c.opts.unevaluated||!0===c.props))return;const f=p.strictSchema&&!p.allowMatchingProperties&&l.properties,h=s.name("valid");!0===c.props||c.props instanceof t.Name||(c.props=(0,n.evaluatedPropsToName)(s,c.props));const{props:m}=c;function g(e){for(const t in f)new RegExp(e).test(t)&&(0,r.checkStrictMode)(c,`property ${t} matches pattern ${e} (use allowMatchingProperties)`)}function y(r){s.forIn("key",a,i=>{s.if(t._`${(0,e.usePattern)(o,r)}.test(${i})`,()=>{const e=u.includes(r);e||o.subschema({keyword:"patternProperties",schemaProp:r,dataProp:i,dataPropType:n.Type.Str},h),c.opts.unevaluated&&!0!==m?s.assign(t._`${m}[${i}]`,!0):e||c.allErrors||s.if((0,t.not)(h),()=>s.break())})})}!function(){for(const e of d)f&&g(e),c.allErrors?y(e):(s.var(h,!0),y(e),s.if(h))}()}};return Zn.default=o,Zn}var Yn,Xn={};function eo(){if(Yn)return Xn;Yn=1,Object.defineProperty(Xn,"__esModule",{value:!0});const e=bt(),t={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(t){const{gen:r,schema:n,it:o}=t;if((0,e.alwaysValidSchema)(o,n))return void t.fail();const s=r.name("valid");t.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},s),t.failResult(s,()=>t.reset(),()=>t.error())},error:{message:"must NOT be valid"}};return Xn.default=t,Xn}var to,ro={};function no(){if(to)return ro;to=1,Object.defineProperty(ro,"__esModule",{value:!0});const e={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:Ht().validateUnion,error:{message:"must match a schema in anyOf"}};return ro.default=e,ro}var oo,so={};function io(){if(oo)return so;oo=1,Object.defineProperty(so,"__esModule",{value:!0});const e=gt(),t=bt(),r={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:t})=>e._`{passingSchemas: ${t.passing}}`},code(r){const{gen:n,schema:o,parentSchema:s,it:i}=r;if(!Array.isArray(o))throw new Error("ajv implementation error");if(i.opts.discriminator&&s.discriminator)return;const a=o,l=n.let("valid",!1),c=n.let("passing",null),p=n.name("_valid");r.setParams({passing:c}),n.block(function(){a.forEach((o,s)=>{let a;(0,t.alwaysValidSchema)(i,o)?n.var(p,!0):a=r.subschema({keyword:"oneOf",schemaProp:s,compositeRule:!0},p),s>0&&n.if(e._`${p} && ${l}`).assign(l,!1).assign(c,e._`[${c}, ${s}]`).else(),n.if(p,()=>{n.assign(l,!0),n.assign(c,s),a&&r.mergeEvaluated(a,e.Name)})})}),r.result(l,()=>r.reset(),()=>r.error(!0))}};return so.default=r,so}var ao,lo={};function co(){if(ao)return lo;ao=1,Object.defineProperty(lo,"__esModule",{value:!0});const e=bt(),t={keyword:"allOf",schemaType:"array",code(t){const{gen:r,schema:n,it:o}=t;if(!Array.isArray(n))throw new Error("ajv implementation error");const s=r.name("valid");n.forEach((r,n)=>{if((0,e.alwaysValidSchema)(o,r))return;const i=t.subschema({keyword:"allOf",schemaProp:n},s);t.ok(s),t.mergeEvaluated(i)})}};return lo.default=t,lo}var po,uo={};function fo(){if(po)return uo;po=1,Object.defineProperty(uo,"__esModule",{value:!0});const e=gt(),t=bt(),r={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:t})=>e.str`must match "${t.ifClause}" schema`,params:({params:t})=>e._`{failingKeyword: ${t.ifClause}}`},code(r){const{gen:o,parentSchema:s,it:i}=r;void 0===s.then&&void 0===s.else&&(0,t.checkStrictMode)(i,'"if" without "then" and "else" is ignored');const a=n(i,"then"),l=n(i,"else");if(!a&&!l)return;const c=o.let("valid",!0),p=o.name("_valid");if(function(){const e=r.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},p);r.mergeEvaluated(e)}(),r.reset(),a&&l){const e=o.let("ifClause");r.setParams({ifClause:e}),o.if(p,d("then",e),d("else",e))}else a?o.if(p,d("then")):o.if((0,e.not)(p),d("else"));function d(t,n){return()=>{const s=r.subschema({keyword:t},p);o.assign(c,p),r.mergeValidEvaluated(s,c),n?o.assign(n,e._`${t}`):r.setParams({ifClause:t})}}r.pass(c,()=>r.error(!0))}};function n(e,r){const n=e.schema[r];return void 0!==n&&!(0,t.alwaysValidSchema)(e,n)}return uo.default=r,uo}var ho,mo,go={};function yo(){if(ho)return go;ho=1,Object.defineProperty(go,"__esModule",{value:!0});const e=bt(),t={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:t,parentSchema:r,it:n}){void 0===r.if&&(0,e.checkStrictMode)(n,`"${t}" without "if" is ignored`)}};return go.default=t,go}function vo(){if(mo)return wn;mo=1,Object.defineProperty(wn,"__esModule",{value:!0});const e=kn(),t=Tn(),r=En(),n=In(),o=Mn(),s=Un(),i=Bn(),a=Vn(),l=Gn(),c=Qn(),p=eo(),d=no(),u=io(),f=co(),h=fo(),m=yo();return wn.default=function(g=!1){const y=[p.default,d.default,u.default,f.default,h.default,m.default,i.default,a.default,s.default,l.default,c.default];return g?y.push(t.default,n.default):y.push(e.default,r.default),y.push(o.default),y},wn}var bo,$o,xo,wo={},_o={};function ko(){if(bo)return _o;bo=1,Object.defineProperty(_o,"__esModule",{value:!0});const e=gt(),t={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:t})=>e.str`must match format "${t}"`,params:({schemaCode:t})=>e._`{format: ${t}}`},code(t,r){const{gen:n,data:o,$data:s,schema:i,schemaCode:a,it:l}=t,{opts:c,errSchemaPath:p,schemaEnv:d,self:u}=l;c.validateFormats&&(s?function(){const s=n.scopeValue("formats",{ref:u.formats,code:c.code.formats}),i=n.const("fDef",e._`${s}[${a}]`),l=n.let("fType"),p=n.let("format");n.if(e._`typeof ${i} == "object" && !(${i} instanceof RegExp)`,()=>n.assign(l,e._`${i}.type || "string"`).assign(p,e._`${i}.validate`),()=>n.assign(l,e._`"string"`).assign(p,i)),t.fail$data((0,e.or)(!1===c.strictSchema?e.nil:e._`${a} && !${p}`,function(){const t=d.$async?e._`(${i}.async ? await ${p}(${o}) : ${p}(${o}))`:e._`${p}(${o})`,n=e._`(typeof ${p} == "function" ? ${t} : ${p}.test(${o}))`;return e._`${p} && ${p} !== true && ${l} === ${r} && !${n}`}()))}():function(){const s=u.formats[i];if(!s)return void function(){if(!1===c.strictSchema)return void u.logger.warn(e());throw new Error(e());function e(){return`unknown format "${i}" ignored in schema at path "${p}"`}}();if(!0===s)return;const[a,l,f]=function(t){const r=t instanceof RegExp?(0,e.regexpCode)(t):c.code.formats?e._`${c.code.formats}${(0,e.getProperty)(i)}`:void 0,o=n.scopeValue("formats",{key:i,ref:t,code:r});if("object"==typeof t&&!(t instanceof RegExp))return[t.type||"string",t.validate,e._`${o}.validate`];return["string",t,o]}(s);a===r&&t.pass(function(){if("object"==typeof s&&!(s instanceof RegExp)&&s.async){if(!d.$async)throw new Error("async format in sync schema");return e._`await ${f}(${o})`}return"function"==typeof l?e._`${f}(${o})`:e._`${f}.test(${o})`}())}())}};return _o.default=t,_o}function So(){if($o)return wo;$o=1,Object.defineProperty(wo,"__esModule",{value:!0});const e=[ko().default];return wo.default=e,wo}function jo(){if(xo)return Tr;xo=1,Object.defineProperty(Tr,"__esModule",{value:!0});const e=function(){if(Er)return Ar;Er=1,Object.defineProperty(Ar,"__esModule",{value:!0});const e=["$schema","id","$defs",{keyword:"$comment"},"definitions",Ir().default];return Ar.default=e,Ar}(),t=$n(),r=vo(),n=So(),o=[e.default,t.default,r.default(),n.default,["title","description","default"]];return Tr.default=o,Tr}var Oo,Po,Eo={},To={};function Ao(){return Oo||(Oo=1,Object.defineProperty(To,"__esModule",{value:!0}),To.DiscrError=void 0,(t=e||(To.DiscrError=e={})).Tag="tag",t.Mapping="mapping"),To;var e,t}function Co(){if(Po)return Eo;Po=1,Object.defineProperty(Eo,"__esModule",{value:!0});const e=gt(),t=Ao(),r=fr(),n=pr(),o=bt(),s={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:e,tagName:r}})=>e===t.DiscrError.Tag?`tag "${r}" must be string`:`value of tag "${r}" must be in oneOf`,params:({params:{discrError:t,tag:r,tagName:n}})=>e._`{error: ${t}, tag: ${n}, tagValue: ${r}}`},code(s){const{gen:i,data:a,schema:l,parentSchema:c,it:p}=s,{oneOf:d}=c;if(!p.opts.discriminator)throw new Error("discriminator: requires discriminator option");const u=l.propertyName;if("string"!=typeof u)throw new Error("discriminator: requires propertyName");if(l.mapping)throw new Error("discriminator: mapping is not supported");if(!d)throw new Error("discriminator: requires oneOf keyword");const f=i.let("valid",!1),h=i.const("tag",e._`${a}${(0,e.getProperty)(u)}`);function m(t){const r=i.name("valid"),n=s.subschema({keyword:"oneOf",schemaProp:t},r);return s.mergeEvaluated(n,e.Name),r}i.if(e._`typeof ${h} == "string"`,()=>function(){const a=function(){var e;const t={},s=a(c);let i=!0;for(let c=0;c<d.length;c++){let t=d[c];if((null==t?void 0:t.$ref)&&!(0,o.schemaHasRulesButRef)(t,p.self.RULES)){const e=t.$ref;if(t=r.resolveRef.call(p.self,p.schemaEnv.root,p.baseId,e),t instanceof r.SchemaEnv&&(t=t.schema),void 0===t)throw new n.default(p.opts.uriResolver,p.baseId,e)}const f=null===(e=null==t?void 0:t.properties)||void 0===e?void 0:e[u];if("object"!=typeof f)throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${u}"`);i=i&&(s||a(t)),l(f,c)}if(!i)throw new Error(`discriminator: "${u}" must be required`);return t;function a({required:e}){return Array.isArray(e)&&e.includes(u)}function l(e,t){if(e.const)f(e.const,t);else{if(!e.enum)throw new Error(`discriminator: "properties/${u}" must have "const" or "enum"`);for(const r of e.enum)f(r,t)}}function f(e,r){if("string"!=typeof e||e in t)throw new Error(`discriminator: "${u}" values must be unique strings`);t[e]=r}}();i.if(!1);for(const t in a)i.elseIf(e._`${h} === ${t}`),i.assign(f,m(a[t]));i.else(),s.error(!1,{discrError:t.DiscrError.Mapping,tag:h,tagName:u}),i.endIf()}(),()=>s.error(!1,{discrError:t.DiscrError.Tag,tag:h,tagName:u})),s.ok(f)}};return Eo.default=s,Eo}const Io={id:"http://json-schema.org/draft-04/schema#",$schema:"http://json-schema.org/draft-04/schema#",description:"Core schema meta-schema",definitions:{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}},type:"object",properties:{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:"#"}},dependencies:{exclusiveMaximum:["maximum"],exclusiveMinimum:["minimum"]},default:{}};var Ro;var No,Mo,qo={exports:{}},zo={},Uo={},Lo={};function Do(){if(No)return Lo;No=1,Object.defineProperty(Lo,"__esModule",{value:!0});const e={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};return Lo.default=e,Lo}function Bo(){if(Mo)return Uo;Mo=1,Object.defineProperty(Uo,"__esModule",{value:!0});const e=Do(),t=Ir(),r=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",e.default,t.default];return Uo.default=r,Uo}var Ho,Fo,Vo={},Jo={};function Wo(){if(Ho)return Jo;Ho=1,Object.defineProperty(Jo,"__esModule",{value:!0});const e=gt(),t=e.operators,r={maximum:{okStr:"<=",ok:t.LTE,fail:t.GT},minimum:{okStr:">=",ok:t.GTE,fail:t.LT},exclusiveMaximum:{okStr:"<",ok:t.LT,fail:t.GTE},exclusiveMinimum:{okStr:">",ok:t.GT,fail:t.LTE}},n={message:({keyword:t,schemaCode:n})=>e.str`must be ${r[t].okStr} ${n}`,params:({keyword:t,schemaCode:n})=>e._`{comparison: ${r[t].okStr}, limit: ${n}}`},o={keyword:Object.keys(r),type:"number",schemaType:"number",$data:!0,error:n,code(t){const{keyword:n,data:o,schemaCode:s}=t;t.fail$data(e._`${o} ${r[n].fail} ${s} || isNaN(${o})`)}};return Jo.default=o,Jo}function Go(){if(Fo)return Vo;Fo=1,Object.defineProperty(Vo,"__esModule",{value:!0});const e=Wo(),t=Dr(),r=Wr(),n=Zr(),o=Xr(),s=rn(),i=sn(),a=un(),l=mn(),c=bn(),p=[e.default,t.default,r.default,n.default,o.default,s.default,i.default,a.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},l.default,c.default];return Vo.default=p,Vo}var Ko,Zo={},Qo={};function Yo(){if(Ko)return Qo;Ko=1,Object.defineProperty(Qo,"__esModule",{value:!0}),Qo.dynamicAnchor=void 0;const e=gt(),t=kt(),r=fr(),n=Ir(),o={keyword:"$dynamicAnchor",schemaType:"string",code:e=>s(e,e.schema)};function s(o,s){const{gen:i,it:a}=o;a.schemaEnv.root.dynamicAnchors[s]=!0;const l=e._`${t.default.dynamicAnchors}${(0,e.getProperty)(s)}`,c="#"===a.errSchemaPath?a.validateName:function(e){const{schemaEnv:t,schema:o,self:s}=e.it,{root:i,baseId:a,localRefs:l,meta:c}=t.root,{schemaId:p}=s.opts,d=new r.SchemaEnv({schema:o,schemaId:p,root:i,baseId:a,localRefs:l,meta:c});return r.compileSchema.call(s,d),(0,n.getValidate)(e,d)}(o);i.if(e._`!${l}`,()=>i.assign(l,c))}return Qo.dynamicAnchor=s,Qo.default=o,Qo}var Xo,es={};function ts(){if(Xo)return es;Xo=1,Object.defineProperty(es,"__esModule",{value:!0}),es.dynamicRef=void 0;const e=gt(),t=kt(),r=Ir(),n={keyword:"$dynamicRef",schemaType:"string",code:e=>o(e,e.schema)};function o(n,o){const{gen:s,keyword:i,it:a}=n;if("#"!==o[0])throw new Error(`"${i}" only supports hash fragment reference`);const l=o.slice(1);if(a.allErrors)c();else{const e=s.let("valid",!1);c(e),n.ok(e)}function c(r){if(a.schemaEnv.root.dynamicAnchors[l]){const n=s.let("_v",e._`${t.default.dynamicAnchors}${(0,e.getProperty)(l)}`);s.if(n,p(n,r),p(a.validateName,r))}else p(a.validateName,r)()}function p(e,t){return t?()=>s.block(()=>{(0,r.callRef)(n,e),s.let(t,!0)}):()=>(0,r.callRef)(n,e)}}return es.dynamicRef=o,es.default=n,es}var rs,ns={};function os(){if(rs)return ns;rs=1,Object.defineProperty(ns,"__esModule",{value:!0});const e=Yo(),t=bt(),r={keyword:"$recursiveAnchor",schemaType:"boolean",code(r){r.schema?(0,e.dynamicAnchor)(r,""):(0,t.checkStrictMode)(r.it,"$recursiveAnchor: false is ignored")}};return ns.default=r,ns}var ss,is,as={};function ls(){if(ss)return as;ss=1,Object.defineProperty(as,"__esModule",{value:!0});const e=ts(),t={keyword:"$recursiveRef",schemaType:"string",code:t=>(0,e.dynamicRef)(t,t.schema)};return as.default=t,as}function cs(){if(is)return Zo;is=1,Object.defineProperty(Zo,"__esModule",{value:!0});const e=Yo(),t=ts(),r=os(),n=ls(),o=[e.default,t.default,r.default,n.default];return Zo.default=o,Zo}var ps,ds={},us={};function fs(){if(ps)return us;ps=1,Object.defineProperty(us,"__esModule",{value:!0});const e=Un(),t={keyword:"dependentRequired",type:"object",schemaType:"object",error:e.error,code:t=>(0,e.validatePropertyDeps)(t)};return us.default=t,us}var hs,ms={};function gs(){if(hs)return ms;hs=1,Object.defineProperty(ms,"__esModule",{value:!0});const e=Un(),t={keyword:"dependentSchemas",type:"object",schemaType:"object",code:t=>(0,e.validateSchemaDeps)(t)};return ms.default=t,ms}var ys,vs,bs={};function $s(){if(ys)return bs;ys=1,Object.defineProperty(bs,"__esModule",{value:!0});const e=bt(),t={keyword:["maxContains","minContains"],type:"array",schemaType:"number",code({keyword:t,parentSchema:r,it:n}){void 0===r.contains&&(0,e.checkStrictMode)(n,`"${t}" without "contains" is ignored`)}};return bs.default=t,bs}function xs(){if(vs)return ds;vs=1,Object.defineProperty(ds,"__esModule",{value:!0});const e=fs(),t=gs(),r=$s(),n=[e.default,t.default,r.default];return ds.default=n,ds}var ws,_s={},ks={};function Ss(){if(ws)return ks;ws=1,Object.defineProperty(ks,"__esModule",{value:!0});const e=gt(),t=bt(),r=kt(),n={keyword:"unevaluatedProperties",type:"object",schemaType:["boolean","object"],trackErrors:!0,error:{message:"must NOT have unevaluated properties",params:({params:t})=>e._`{unevaluatedProperty: ${t.unevaluatedProperty}}`},code(n){const{gen:o,schema:s,data:i,errsCount:a,it:l}=n;if(!a)throw new Error("ajv implementation error");const{allErrors:c,props:p}=l;function d(r){if(!1===s)return n.setParams({unevaluatedProperty:r}),n.error(),void(c||o.break());if(!(0,t.alwaysValidSchema)(l,s)){const s=o.name("valid");n.subschema({keyword:"unevaluatedProperties",dataProp:r,dataPropType:t.Type.Str},s),c||o.if((0,e.not)(s),()=>o.break())}}p instanceof e.Name?o.if(e._`${p} !== true`,()=>o.forIn("key",i,t=>o.if(function(t,r){return e._`!${t} || !${t}[${r}]`}(p,t),()=>d(t)))):!0!==p&&o.forIn("key",i,t=>void 0===p?d(t):o.if(function(t,r){const n=[];for(const o in t)!0===t[o]&&n.push(e._`${r} !== ${o}`);return(0,e.and)(...n)}(p,t),()=>d(t))),l.props=!0,n.ok(e._`${a} === ${r.default.errors}`)}};return ks.default=n,ks}var js,Os,Ps={};function Es(){if(js)return Ps;js=1,Object.defineProperty(Ps,"__esModule",{value:!0});const e=gt(),t=bt(),r={keyword:"unevaluatedItems",type:"array",schemaType:["boolean","object"],error:{message:({params:{len:t}})=>e.str`must NOT have more than ${t} items`,params:({params:{len:t}})=>e._`{limit: ${t}}`},code(r){const{gen:n,schema:o,data:s,it:i}=r,a=i.items||0;if(!0===a)return;const l=n.const("len",e._`${s}.length`);if(!1===o)r.setParams({len:a}),r.fail(e._`${l} > ${a}`);else if("object"==typeof o&&!(0,t.alwaysValidSchema)(i,o)){const o=n.var("valid",e._`${l} <= ${a}`);n.if((0,e.not)(o),()=>function(o,s){n.forRange("i",s,l,s=>{r.subschema({keyword:"unevaluatedItems",dataProp:s,dataPropType:t.Type.Num},o),i.allErrors||n.if((0,e.not)(o),()=>n.break())})}(o,a)),r.ok(o)}i.items=!0}};return Ps.default=r,Ps}function Ts(){if(Os)return _s;Os=1,Object.defineProperty(_s,"__esModule",{value:!0});const e=Ss(),t=Es(),r=[e.default,t.default];return _s.default=r,_s}var As,Cs,Is={};function Rs(){return As||(As=1,Object.defineProperty(Is,"__esModule",{value:!0}),Is.contentVocabulary=Is.metadataVocabulary=void 0,Is.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],Is.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]),Is}function Ns(){if(Cs)return zo;Cs=1,Object.defineProperty(zo,"__esModule",{value:!0});const e=Bo(),t=Go(),r=vo(),n=cs(),o=xs(),s=Ts(),i=So(),a=Rs(),l=[n.default,e.default,t.default,(0,r.default)(!0),i.default,a.metadataVocabulary,a.contentVocabulary,o.default,s.default];return zo.default=l,zo}var Ms={};const qs={$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}}},zs={$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"}}}},Us={$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"}}},Ls={$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"}}},Ds={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/core",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/core":!0},$dynamicAnchor:"meta",title:"Core vocabulary meta-schema",type:["object","boolean"],properties:{$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"}}},$defs:{anchorString:{type:"string",pattern:"^[A-Za-z_][-A-Za-z0-9._]*$"},uriString:{type:"string",format:"uri"},uriReferenceString:{type:"string",format:"uri-reference"}}},Bs={$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"}}},Hs={$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}}},Fs={$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:[]}}};var Vs,Js;function Ws(){if(Vs)return Ms;Vs=1,Object.defineProperty(Ms,"__esModule",{value:!0});const e=qs,t=zs,r=Us,n=Ls,o=Ds,s=Bs,i=Hs,a=Fs,l=["/properties"];return Ms.default=function(c){return[e,t,r,n,o,p(this,s),i,p(this,a)].forEach(e=>this.addMetaSchema(e,void 0,!1)),this;function p(e,t){return c?e.$dataMetaSchema(t,l):t}},Ms}function Gs(){return Js||(Js=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.MissingRefError=t.ValidationError=t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=t.Ajv2020=void 0;const r=Or(),n=Ns(),o=Co(),s=Ws(),i="https://json-schema.org/draft/2020-12/schema";class a extends r.default{constructor(e={}){super({...e,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),n.default.forEach(e=>this.addVocabulary(e)),this.opts.discriminator&&this.addKeyword(o.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();const{$data:e,meta:t}=this.opts;t&&(s.default.call(this,e),this.refs["http://json-schema.org/schema"]=i)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(i)?i:void 0)}}t.Ajv2020=a,e.exports=t=a,e.exports.Ajv2020=a,Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var l=or();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return l.KeywordCxt}});var c=gt();Object.defineProperty(t,"_",{enumerable:!0,get:function(){return c._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return c.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return c.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return c.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return c.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return c.CodeGen}});var p=ar();Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return p.default}});var d=pr();Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return d.default}})}(qo,qo.exports)),qo.exports}var Ks={exports:{}};const Zs={id:"https://raw.githubusercontent.com/OAI/OpenAPI-Specification/master/schemas/v1.2/apiDeclaration.json#",$schema:"http://json-schema.org/draft-04/schema#",type:"object",required:["swaggerVersion","basePath","apis"],properties:{swaggerVersion:{enum:["1.2"]},apiVersion:{type:"string"},basePath:{type:"string",format:"uri",pattern:"^https?://"},resourcePath:{type:"string",format:"uri",pattern:"^/"},apis:{type:"array",items:{$ref:"#/definitions/apiObject"}},models:{type:"object",additionalProperties:{$ref:"modelsObject.json#"}},produces:{$ref:"#/definitions/mimeTypeArray"},consumes:{$ref:"#/definitions/mimeTypeArray"},authorizations:{$ref:"authorizationObject.json#"}},additionalProperties:!1,definitions:{apiObject:{type:"object",required:["path","operations"],properties:{path:{type:"string",format:"uri-template",pattern:"^/"},description:{type:"string"},operations:{type:"array",items:{$ref:"operationObject.json#"}}},additionalProperties:!1},mimeTypeArray:{type:"array",items:{type:"string",format:"mime-type"},uniqueItems:!0}}},Qs={title:"A JSON Schema for Swagger 2.0 API.",id:"http://swagger.io/v2/schema.json#",$schema:"http://json-schema.org/draft-04/schema#",type:"object",required:["swagger","info","paths"],additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{swagger:{type:"string",enum:["2.0"],description:"The Swagger version of this document."},info:{$ref:"#/definitions/info"},host:{type:"string",pattern:"^[^{}/ :\\\\]+(?::\\d+)?$",description:"The host (name or ip) of the API. Example: 'swagger.io'"},basePath:{type:"string",pattern:"^/",description:"The base path to the API. Example: '/api'."},schemes:{$ref:"#/definitions/schemesList"},consumes:{description:"A list of MIME types accepted by the API.",allOf:[{$ref:"#/definitions/mediaTypeList"}]},produces:{description:"A list of MIME types the API can produce.",allOf:[{$ref:"#/definitions/mediaTypeList"}]},paths:{$ref:"#/definitions/paths"},definitions:{$ref:"#/definitions/definitions"},parameters:{$ref:"#/definitions/parameterDefinitions"},responses:{$ref:"#/definitions/responseDefinitions"},security:{$ref:"#/definitions/security"},securityDefinitions:{$ref:"#/definitions/securityDefinitions"},tags:{type:"array",items:{$ref:"#/definitions/tag"},uniqueItems:!0},externalDocs:{$ref:"#/definitions/externalDocs"}},definitions:JSON.parse('{"info":{"type":"object","description":"General information about the API.","required":["version","title"],"additionalProperties":false,"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":false,"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":false,"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":false},"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":false,"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":true},"mimeType":{"type":"string","description":"The MIME type of the HTTP message."},"operation":{"type":"object","required":["responses"],"additionalProperties":false,"patternProperties":{"^x-":{"$ref":"#/definitions/vendorExtension"}},"properties":{"tags":{"type":"array","items":{"type":"string"},"uniqueItems":true},"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":false},"security":{"$ref":"#/definitions/security"}}},"pathItem":{"type":"object","additionalProperties":false,"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":false,"patternProperties":{"^([0-9]{3})$|^(default)$":{"$ref":"#/definitions/responseValue"},"^x-":{"$ref":"#/definitions/vendorExtension"}},"not":{"type":"object","additionalProperties":false,"patternProperties":{"^x-":{"$ref":"#/definitions/vendorExtension"}}}},"responseValue":{"oneOf":[{"$ref":"#/definitions/response"},{"$ref":"#/definitions/jsonReference"}]},"response":{"type":"object","required":["description"],"properties":{"description":{"type":"string"},"schema":{"oneOf":[{"$ref":"#/definitions/schema"},{"$ref":"#/definitions/fileSchema"}]},"headers":{"$ref":"#/definitions/headers"},"examples":{"$ref":"#/definitions/examples"}},"additionalProperties":false,"patternProperties":{"^x-":{"$ref":"#/definitions/vendorExtension"}}},"headers":{"type":"object","additionalProperties":{"$ref":"#/definitions/header"}},"header":{"type":"object","additionalProperties":false,"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":true,"additionalItems":true},"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":false},"schema":{"$ref":"#/definitions/schema"}},"additionalProperties":false},"headerParameterSubSchema":{"additionalProperties":false,"patternProperties":{"^x-":{"$ref":"#/definitions/vendorExtension"}},"properties":{"required":{"type":"boolean","description":"Determines whether or not this parameter is required or optional.","default":false},"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":false,"patternProperties":{"^x-":{"$ref":"#/definitions/vendorExtension"}},"properties":{"required":{"type":"boolean","description":"Determines whether or not this parameter is required or optional.","default":false},"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":false,"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":false,"patternProperties":{"^x-":{"$ref":"#/definitions/vendorExtension"}},"properties":{"required":{"type":"boolean","description":"Determines whether or not this parameter is required or optional.","default":false},"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":false,"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":false,"patternProperties":{"^x-":{"$ref":"#/definitions/vendorExtension"}},"required":["required"],"properties":{"required":{"type":"boolean","enum":[true],"description":"Determines whether or not this parameter is required or optional."},"in":{"type":"string","description":"Determines the location of the parameter.","enum":["path"]},"description":{"type":"string","description":"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},"name":{"type":"string","description":"The name of the parameter."},"type":{"type":"string","enum":["string","number","boolean","integer","array"]},"format":{"type":"string"},"items":{"$ref":"#/definitions/primitivesItems"},"collectionFormat":{"$ref":"#/definitions/collectionFormat"},"default":{"$ref":"#/definitions/default"},"maximum":{"$ref":"#/definitions/maximum"},"exclusiveMaximum":{"$ref":"#/definitions/exclusiveMaximum"},"minimum":{"$ref":"#/definitions/minimum"},"exclusiveMinimum":{"$ref":"#/definitions/exclusiveMinimum"},"maxLength":{"$ref":"#/definitions/maxLength"},"minLength":{"$ref":"#/definitions/minLength"},"pattern":{"$ref":"#/definitions/pattern"},"maxItems":{"$ref":"#/definitions/maxItems"},"minItems":{"$ref":"#/definitions/minItems"},"uniqueItems":{"$ref":"#/definitions/uniqueItems"},"enum":{"$ref":"#/definitions/enum"},"multipleOf":{"$ref":"#/definitions/multipleOf"}}},"nonBodyParameter":{"type":"object","required":["name","in","type"],"oneOf":[{"$ref":"#/definitions/headerParameterSubSchema"},{"$ref":"#/definitions/formDataParameterSubSchema"},{"$ref":"#/definitions/queryParameterSubSchema"},{"$ref":"#/definitions/pathParameterSubSchema"}]},"parameter":{"oneOf":[{"$ref":"#/definitions/bodyParameter"},{"$ref":"#/definitions/nonBodyParameter"}]},"schema":{"type":"object","description":"A deterministic version of a JSON Schema object.","patternProperties":{"^x-":{"$ref":"#/definitions/vendorExtension"}},"properties":{"$ref":{"type":"string"},"format":{"type":"string"},"title":{"$ref":"http://json-schema.org/draft-04/schema#/properties/title"},"description":{"$ref":"http://json-schema.org/draft-04/schema#/properties/description"},"default":{"$ref":"http://json-schema.org/draft-04/schema#/properties/default"},"multipleOf":{"$ref":"http://json-schema.org/draft-04/schema#/properties/multipleOf"},"maximum":{"$ref":"http://json-schema.org/draft-04/schema#/properties/maximum"},"exclusiveMaximum":{"$ref":"http://json-schema.org/draft-04/schema#/properties/exclusiveMaximum"},"minimum":{"$ref":"http://json-schema.org/draft-04/schema#/properties/minimum"},"exclusiveMinimum":{"$ref":"http://json-schema.org/draft-04/schema#/properties/exclusiveMinimum"},"maxLength":{"$ref":"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},"minLength":{"$ref":"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},"pattern":{"$ref":"http://json-schema.org/draft-04/schema#/properties/pattern"},"maxItems":{"$ref":"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},"minItems":{"$ref":"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},"uniqueItems":{"$ref":"http://json-schema.org/draft-04/schema#/properties/uniqueItems"},"maxProperties":{"$ref":"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},"minProperties":{"$ref":"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},"required":{"$ref":"http://json-schema.org/draft-04/schema#/definitions/stringArray"},"enum":{"$ref":"http://json-schema.org/draft-04/schema#/properties/enum"},"additionalProperties":{"anyOf":[{"$ref":"#/definitions/schema"},{"type":"boolean"}],"default":{}},"type":{"$ref":"http://json-schema.org/draft-04/schema#/properties/type"},"items":{"anyOf":[{"$ref":"#/definitions/schema"},{"type":"array","minItems":1,"items":{"$ref":"#/definitions/schema"}}],"default":{}},"allOf":{"type":"array","minItems":1,"items":{"$ref":"#/definitions/schema"}},"properties":{"type":"object","additionalProperties":{"$ref":"#/definitions/schema"},"default":{}},"discriminator":{"type":"string"},"readOnly":{"type":"boolean","default":false},"xml":{"$ref":"#/definitions/xml"},"externalDocs":{"$ref":"#/definitions/externalDocs"},"example":{}},"additionalProperties":false},"fileSchema":{"type":"object","description":"A deterministic version of a JSON Schema object.","patternProperties":{"^x-":{"$ref":"#/definitions/vendorExtension"}},"required":["type"],"properties":{"format":{"type":"string"},"title":{"$ref":"http://json-schema.org/draft-04/schema#/properties/title"},"description":{"$ref":"http://json-schema.org/draft-04/schema#/properties/description"},"default":{"$ref":"http://json-schema.org/draft-04/schema#/properties/default"},"required":{"$ref":"http://json-schema.org/draft-04/schema#/definitions/stringArray"},"type":{"type":"string","enum":["file"]},"readOnly":{"type":"boolean","default":false},"externalDocs":{"$ref":"#/definitions/externalDocs"},"example":{}},"additionalProperties":false},"primitivesItems":{"type":"object","additionalProperties":false,"properties":{"type":{"type":"string","enum":["string","number","integer","boolean","array"]},"format":{"type":"string"},"items":{"$ref":"#/definitions/primitivesItems"},"collectionFormat":{"$ref":"#/definitions/collectionFormat"},"default":{"$ref":"#/definitions/default"},"maximum":{"$ref":"#/definitions/maximum"},"exclusiveMaximum":{"$ref":"#/definitions/exclusiveMaximum"},"minimum":{"$ref":"#/definitions/minimum"},"exclusiveMinimum":{"$ref":"#/definitions/exclusiveMinimum"},"maxLength":{"$ref":"#/definitions/maxLength"},"minLength":{"$ref":"#/definitions/minLength"},"pattern":{"$ref":"#/definitions/pattern"},"maxItems":{"$ref":"#/definitions/maxItems"},"minItems":{"$ref":"#/definitions/minItems"},"uniqueItems":{"$ref":"#/definitions/uniqueItems"},"enum":{"$ref":"#/definitions/enum"},"multipleOf":{"$ref":"#/definitions/multipleOf"}},"patternProperties":{"^x-":{"$ref":"#/definitions/vendorExtension"}}},"security":{"type":"array","items":{"$ref":"#/definitions/securityRequirement"},"uniqueItems":true},"securityRequirement":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string"},"uniqueItems":true}},"xml":{"type":"object","additionalProperties":false,"properties":{"name":{"type":"string"},"namespace":{"type":"string"},"prefix":{"type":"string"},"attribute":{"type":"boolean","default":false},"wrapped":{"type":"boolean","default":false}},"patternProperties":{"^x-":{"$ref":"#/definitions/vendorExtension"}}},"tag":{"type":"object","additionalProperties":false,"required":["name"],"properties":{"name":{"type":"string"},"description":{"type":"string"},"externalDocs":{"$ref":"#/definitions/externalDocs"}},"patternProperties":{"^x-":{"$ref":"#/definitions/vendorExtension"}}},"securityDefinitions":{"type":"object","additionalProperties":{"oneOf":[{"$ref":"#/definitions/basicAuthenticationSecurity"},{"$ref":"#/definitions/apiKeySecurity"},{"$ref":"#/definitions/oauth2ImplicitSecurity"},{"$ref":"#/definitions/oauth2PasswordSecurity"},{"$ref":"#/definitions/oauth2ApplicationSecurity"},{"$ref":"#/definitions/oauth2AccessCodeSecurity"}]}},"basicAuthenticationSecurity":{"type":"object","additionalProperties":false,"required":["type"],"properties":{"type":{"type":"string","enum":["basic"]},"description":{"type":"string"}},"patternProperties":{"^x-":{"$ref":"#/definitions/vendorExtension"}}},"apiKeySecurity":{"type":"object","additionalProperties":false,"required":["type","name","in"],"properties":{"type":{"type":"string","enum":["apiKey"]},"name":{"type":"string"},"in":{"type":"string","enum":["header","query"]},"description":{"type":"string"}},"patternProperties":{"^x-":{"$ref":"#/definitions/vendorExtension"}}},"oauth2ImplicitSecurity":{"type":"object","additionalProperties":false,"required":["type","flow","authorizationUrl"],"properties":{"type":{"type":"string","enum":["oauth2"]},"flow":{"type":"string","enum":["implicit"]},"scopes":{"$ref":"#/definitions/oauth2Scopes"},"authorizationUrl":{"type":"string","format":"uri"},"description":{"type":"string"}},"patternProperties":{"^x-":{"$ref":"#/definitions/vendorExtension"}}},"oauth2PasswordSecurity":{"type":"object","additionalProperties":false,"required":["type","flow","tokenUrl"],"properties":{"type":{"type":"string","enum":["oauth2"]},"flow":{"type":"string","enum":["password"]},"scopes":{"$ref":"#/definitions/oauth2Scopes"},"tokenUrl":{"type":"string","format":"uri"},"description":{"type":"string"}},"patternProperties":{"^x-":{"$ref":"#/definitions/vendorExtension"}}},"oauth2ApplicationSecurity":{"type":"object","additionalProperties":false,"required":["type","flow","tokenUrl"],"properties":{"type":{"type":"string","enum":["oauth2"]},"flow":{"type":"string","enum":["application"]},"scopes":{"$ref":"#/definitions/oauth2Scopes"},"tokenUrl":{"type":"string","format":"uri"},"description":{"type":"string"}},"patternProperties":{"^x-":{"$ref":"#/definitions/vendorExtension"}}},"oauth2AccessCodeSecurity":{"type":"object","additionalProperties":false,"required":["type","flow","authorizationUrl","tokenUrl"],"properties":{"type":{"type":"string","enum":["oauth2"]},"flow":{"type":"string","enum":["accessCode"]},"scopes":{"$ref":"#/definitions/oauth2Scopes"},"authorizationUrl":{"type":"string","format":"uri"},"tokenUrl":{"type":"string","format":"uri"},"description":{"type":"string"}},"patternProperties":{"^x-":{"$ref":"#/definitions/vendorExtension"}}},"oauth2Scopes":{"type":"object","additionalProperties":{"type":"string"}},"mediaTypeList":{"type":"array","items":{"$ref":"#/definitions/mimeType"},"uniqueItems":true},"parametersList":{"type":"array","description":"The parameters needed to send a valid API call.","additionalItems":false,"items":{"oneOf":[{"$ref":"#/definitions/parameter"},{"$ref":"#/definitions/jsonReference"}]},"uniqueItems":true},"schemesList":{"type":"array","description":"The transfer protocol of the API.","items":{"type":"string","enum":["http","https","ws","wss"]},"uniqueItems":true},"collectionFormat":{"type":"string","enum":["csv","ssv","tsv","pipes"],"default":"csv"},"collectionFormatWithMulti":{"type":"string","enum":["csv","ssv","tsv","pipes","multi"],"default":"csv"},"title":{"$ref":"http://json-schema.org/draft-04/schema#/properties/title"},"description":{"$ref":"http://json-schema.org/draft-04/schema#/properties/description"},"default":{"$ref":"http://json-schema.org/draft-04/schema#/properties/default"},"multipleOf":{"$ref":"http://json-schema.org/draft-04/schema#/properties/multipleOf"},"maximum":{"$ref":"http://json-schema.org/draft-04/schema#/properties/maximum"},"exclusiveMaximum":{"$ref":"http://json-schema.org/draft-04/schema#/properties/exclusiveMaximum"},"minimum":{"$ref":"http://json-schema.org/draft-04/schema#/properties/minimum"},"exclusiveMinimum":{"$ref":"http://json-schema.org/draft-04/schema#/properties/exclusiveMinimum"},"maxLength":{"$ref":"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},"minLength":{"$ref":"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},"pattern":{"$ref":"http://json-schema.org/draft-04/schema#/properties/pattern"},"maxItems":{"$ref":"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},"minItems":{"$ref":"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},"uniqueItems":{"$ref":"http://json-schema.org/draft-04/schema#/properties/uniqueItems"},"enum":{"$ref":"http://json-schema.org/draft-04/schema#/properties/enum"},"jsonReference":{"type":"object","required":["$ref"],"additionalProperties":false,"properties":{"$ref":{"type":"string"}}}}')},Ys={id:"https://spec.openapis.org/oas/3.0/schema/2019-04-02",$schema:"http://json-schema.org/draft-04/schema#",description:"Validation schema for OpenAPI Specification 3.0.X.",type:"object",required:["openapi","info","paths"],properties:{openapi:{type:"string",pattern:"^3\\.0\\.\\d(-.+)?$"},info:{$ref:"#/definitions/Info"},externalDocs:{$ref:"#/definitions/ExternalDocumentation"},servers:{type:"array",items:{$ref:"#/definitions/Server"}},security:{type:"array",items:{$ref:"#/definitions/SecurityRequirement"}},tags:{type:"array",items:{$ref:"#/definitions/Tag"},uniqueItems:!0},paths:{$ref:"#/definitions/Paths"},components:{$ref:"#/definitions/Components"}},patternProperties:{"^x-":{}},additionalProperties:!1,definitions:JSON.parse('{"Reference":{"type":"object","required":["$ref"],"patternProperties":{"^\\\\$ref$":{"type":"string","format":"uri-reference"}}},"Info":{"type":"object","required":["title","version"],"properties":{"title":{"type":"string"},"description":{"type":"string"},"termsOfService":{"type":"string","format":"uri-reference"},"contact":{"$ref":"#/definitions/Contact"},"license":{"$ref":"#/definitions/License"},"version":{"type":"string"}},"patternProperties":{"^x-":{}},"additionalProperties":false},"Contact":{"type":"object","properties":{"name":{"type":"string"},"url":{"type":"string","format":"uri-reference"},"email":{"type":"string","format":"email"}},"patternProperties":{"^x-":{}},"additionalProperties":false},"License":{"type":"object","required":["name"],"properties":{"name":{"type":"string"},"url":{"type":"string","format":"uri-reference"}},"patternProperties":{"^x-":{}},"additionalProperties":false},"Server":{"type":"object","required":["url"],"properties":{"url":{"type":"string"},"description":{"type":"string"},"variables":{"type":"object","additionalProperties":{"$ref":"#/definitions/ServerVariable"}}},"patternProperties":{"^x-":{}},"additionalProperties":false},"ServerVariable":{"type":"object","required":["default"],"properties":{"enum":{"type":"array","items":{"type":"string"}},"default":{"type":"string"},"description":{"type":"string"}},"patternProperties":{"^x-":{}},"additionalProperties":false},"Components":{"type":"object","properties":{"schemas":{"type":"object","patternProperties":{"^[a-zA-Z0-9\\\\.\\\\-_]+$":{"oneOf":[{"$ref":"#/definitions/Schema"},{"$ref":"#/definitions/Reference"}]}}},"responses":{"type":"object","patternProperties":{"^[a-zA-Z0-9\\\\.\\\\-_]+$":{"oneOf":[{"$ref":"#/definitions/Reference"},{"$ref":"#/definitions/Response"}]}}},"parameters":{"type":"object","patternProperties":{"^[a-zA-Z0-9\\\\.\\\\-_]+$":{"oneOf":[{"$ref":"#/definitions/Reference"},{"$ref":"#/definitions/Parameter"}]}}},"examples":{"type":"object","patternProperties":{"^[a-zA-Z0-9\\\\.\\\\-_]+$":{"oneOf":[{"$ref":"#/definitions/Reference"},{"$ref":"#/definitions/Example"}]}}},"requestBodies":{"type":"object","patternProperties":{"^[a-zA-Z0-9\\\\.\\\\-_]+$":{"oneOf":[{"$ref":"#/definitions/Reference"},{"$ref":"#/definitions/RequestBody"}]}}},"headers":{"type":"object","patternProperties":{"^[a-zA-Z0-9\\\\.\\\\-_]+$":{"oneOf":[{"$ref":"#/definitions/Reference"},{"$ref":"#/definitions/Header"}]}}},"securitySchemes":{"type":"object","patternProperties":{"^[a-zA-Z0-9\\\\.\\\\-_]+$":{"oneOf":[{"$ref":"#/definitions/Reference"},{"$ref":"#/definitions/SecurityScheme"}]}}},"links":{"type":"object","patternProperties":{"^[a-zA-Z0-9\\\\.\\\\-_]+$":{"oneOf":[{"$ref":"#/definitions/Reference"},{"$ref":"#/definitions/Link"}]}}},"callbacks":{"type":"object","patternProperties":{"^[a-zA-Z0-9\\\\.\\\\-_]+$":{"oneOf":[{"$ref":"#/definitions/Reference"},{"$ref":"#/definitions/Callback"}]}}}},"patternProperties":{"^x-":{}},"additionalProperties":false},"Schema":{"type":"object","properties":{"title":{"type":"string"},"multipleOf":{"type":"number","minimum":0,"exclusiveMinimum":true},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"boolean","default":false},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"boolean","default":false},"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":false},"maxProperties":{"type":"integer","minimum":0},"minProperties":{"type":"integer","minimum":0,"default":0},"required":{"type":"array","items":{"type":"string"},"minItems":1,"uniqueItems":true},"enum":{"type":"array","items":{},"minItems":1,"uniqueItems":false},"type":{"type":"string","enum":["array","boolean","integer","number","object","string"]},"not":{"oneOf":[{"$ref":"#/definitions/Schema"},{"$ref":"#/definitions/Reference"}]},"allOf":{"type":"array","items":{"oneOf":[{"$ref":"#/definitions/Schema"},{"$ref":"#/definitions/Reference"}]}},"oneOf":{"type":"array","items":{"oneOf":[{"$ref":"#/definitions/Schema"},{"$ref":"#/definitions/Reference"}]}},"anyOf":{"type":"array","items":{"oneOf":[{"$ref":"#/definitions/Schema"},{"$ref":"#/definitions/Reference"}]}},"items":{"oneOf":[{"$ref":"#/definitions/Schema"},{"$ref":"#/definitions/Reference"}]},"properties":{"type":"object","additionalProperties":{"oneOf":[{"$ref":"#/definitions/Schema"},{"$ref":"#/definitions/Reference"}]}},"additionalProperties":{"oneOf":[{"$ref":"#/definitions/Schema"},{"$ref":"#/definitions/Reference"},{"type":"boolean"}],"default":true},"description":{"type":"string"},"format":{"type":"string"},"default":{},"nullable":{"type":"boolean","default":false},"discriminator":{"$ref":"#/definitions/Discriminator"},"readOnly":{"type":"boolean","default":false},"writeOnly":{"type":"boolean","default":false},"example":{},"externalDocs":{"$ref":"#/definitions/ExternalDocumentation"},"deprecated":{"type":"boolean","default":false},"xml":{"$ref":"#/definitions/XML"}},"patternProperties":{"^x-":{}},"additionalProperties":false},"Discriminator":{"type":"object","required":["propertyName"],"properties":{"propertyName":{"type":"string"},"mapping":{"type":"object","additionalProperties":{"type":"string"}}}},"XML":{"type":"object","properties":{"name":{"type":"string"},"namespace":{"type":"string","format":"uri"},"prefix":{"type":"string"},"attribute":{"type":"boolean","default":false},"wrapped":{"type":"boolean","default":false}},"patternProperties":{"^x-":{}},"additionalProperties":false},"Response":{"type":"object","required":["description"],"properties":{"description":{"type":"string"},"headers":{"type":"object","additionalProperties":{"oneOf":[{"$ref":"#/definitions/Header"},{"$ref":"#/definitions/Reference"}]}},"content":{"type":"object","additionalProperties":{"$ref":"#/definitions/MediaType"}},"links":{"type":"object","additionalProperties":{"oneOf":[{"$ref":"#/definitions/Link"},{"$ref":"#/definitions/Reference"}]}}},"patternProperties":{"^x-":{}},"additionalProperties":false},"MediaType":{"type":"object","properties":{"schema":{"oneOf":[{"$ref":"#/definitions/Schema"},{"$ref":"#/definitions/Reference"}]},"example":{},"examples":{"type":"object","additionalProperties":{"oneOf":[{"$ref":"#/definitions/Example"},{"$ref":"#/definitions/Reference"}]}},"encoding":{"type":"object","additionalProperties":{"$ref":"#/definitions/Encoding"}}},"patternProperties":{"^x-":{}},"additionalProperties":false,"allOf":[{"$ref":"#/definitions/ExampleXORExamples"}]},"Example":{"type":"object","properties":{"summary":{"type":"string"},"description":{"type":"string"},"value":{},"externalValue":{"type":"string","format":"uri-reference"}},"patternProperties":{"^x-":{}},"additionalProperties":false},"Header":{"type":"object","properties":{"description":{"type":"string"},"required":{"type":"boolean","default":false},"deprecated":{"type":"boolean","default":false},"allowEmptyValue":{"type":"boolean","default":false},"style":{"type":"string","enum":["simple"],"default":"simple"},"explode":{"type":"boolean"},"allowReserved":{"type":"boolean","default":false},"schema":{"oneOf":[{"$ref":"#/definitions/Schema"},{"$ref":"#/definitions/Reference"}]},"content":{"type":"object","additionalProperties":{"$ref":"#/definitions/MediaType"},"minProperties":1,"maxProperties":1},"example":{},"examples":{"type":"object","additionalProperties":{"oneOf":[{"$ref":"#/definitions/Example"},{"$ref":"#/definitions/Reference"}]}}},"patternProperties":{"^x-":{}},"additionalProperties":false,"allOf":[{"$ref":"#/definitions/ExampleXORExamples"},{"$ref":"#/definitions/SchemaXORContent"}]},"Paths":{"type":"object","patternProperties":{"^\\\\/":{"$ref":"#/definitions/PathItem"},"^x-":{}},"additionalProperties":false},"PathItem":{"type":"object","properties":{"$ref":{"type":"string"},"summary":{"type":"string"},"description":{"type":"string"},"servers":{"type":"array","items":{"$ref":"#/definitions/Server"}},"parameters":{"type":"array","items":{"oneOf":[{"$ref":"#/definitions/Parameter"},{"$ref":"#/definitions/Reference"}]},"uniqueItems":true}},"patternProperties":{"^(get|put|post|delete|options|head|patch|trace)$":{"$ref":"#/definitions/Operation"},"^x-":{}},"additionalProperties":false},"Operation":{"type":"object","required":["responses"],"properties":{"tags":{"type":"array","items":{"type":"string"}},"summary":{"type":"string"},"description":{"type":"string"},"externalDocs":{"$ref":"#/definitions/ExternalDocumentation"},"operationId":{"type":"string"},"parameters":{"type":"array","items":{"oneOf":[{"$ref":"#/definitions/Parameter"},{"$ref":"#/definitions/Reference"}]},"uniqueItems":true},"requestBody":{"oneOf":[{"$ref":"#/definitions/RequestBody"},{"$ref":"#/definitions/Reference"}]},"responses":{"$ref":"#/definitions/Responses"},"callbacks":{"type":"object","additionalProperties":{"oneOf":[{"$ref":"#/definitions/Callback"},{"$ref":"#/definitions/Reference"}]}},"deprecated":{"type":"boolean","default":false},"security":{"type":"array","items":{"$ref":"#/definitions/SecurityRequirement"}},"servers":{"type":"array","items":{"$ref":"#/definitions/Server"}}},"patternProperties":{"^x-":{}},"additionalProperties":false},"Responses":{"type":"object","properties":{"default":{"oneOf":[{"$ref":"#/definitions/Response"},{"$ref":"#/definitions/Reference"}]}},"patternProperties":{"^[1-5](?:\\\\d{2}|XX)$":{"oneOf":[{"$ref":"#/definitions/Response"},{"$ref":"#/definitions/Reference"}]},"^x-":{}},"minProperties":1,"additionalProperties":false},"SecurityRequirement":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string"}}},"Tag":{"type":"object","required":["name"],"properties":{"name":{"type":"string"},"description":{"type":"string"},"externalDocs":{"$ref":"#/definitions/ExternalDocumentation"}},"patternProperties":{"^x-":{}},"additionalProperties":false},"ExternalDocumentation":{"type":"object","required":["url"],"properties":{"description":{"type":"string"},"url":{"type":"string","format":"uri-reference"}},"patternProperties":{"^x-":{}},"additionalProperties":false},"ExampleXORExamples":{"description":"Example and examples are mutually exclusive","not":{"required":["example","examples"]}},"SchemaXORContent":{"description":"Schema and content are mutually exclusive, at least one is required","not":{"required":["schema","content"]},"oneOf":[{"required":["schema"]},{"required":["content"],"description":"Some properties are not allowed if content is present","allOf":[{"not":{"required":["style"]}},{"not":{"required":["explode"]}},{"not":{"required":["allowReserved"]}},{"not":{"required":["example"]}},{"not":{"required":["examples"]}}]}]},"Parameter":{"type":"object","properties":{"name":{"type":"string"},"in":{"type":"string"},"description":{"type":"string"},"required":{"type":"boolean","default":false},"deprecated":{"type":"boolean","default":false},"allowEmptyValue":{"type":"boolean","default":false},"style":{"type":"string"},"explode":{"type":"boolean"},"allowReserved":{"type":"boolean","default":false},"schema":{"oneOf":[{"$ref":"#/definitions/Schema"},{"$ref":"#/definitions/Reference"}]},"content":{"type":"object","additionalProperties":{"$ref":"#/definitions/MediaType"},"minProperties":1,"maxProperties":1},"example":{},"examples":{"type":"object","additionalProperties":{"oneOf":[{"$ref":"#/definitions/Example"},{"$ref":"#/definitions/Reference"}]}}},"patternProperties":{"^x-":{}},"additionalProperties":false,"required":["name","in"],"allOf":[{"$ref":"#/definitions/ExampleXORExamples"},{"$ref":"#/definitions/SchemaXORContent"},{"$ref":"#/definitions/ParameterLocation"}]},"ParameterLocation":{"description":"Parameter location","oneOf":[{"description":"Parameter in path","required":["required"],"properties":{"in":{"enum":["path"]},"style":{"enum":["matrix","label","simple"],"default":"simple"},"required":{"enum":[true]}}},{"description":"Parameter in query","properties":{"in":{"enum":["query"]},"style":{"enum":["form","spaceDelimited","pipeDelimited","deepObject"],"default":"form"}}},{"description":"Parameter in header","properties":{"in":{"enum":["header"]},"style":{"enum":["simple"],"default":"simple"}}},{"description":"Parameter in cookie","properties":{"in":{"enum":["cookie"]},"style":{"enum":["form"],"default":"form"}}}]},"RequestBody":{"type":"object","required":["content"],"properties":{"description":{"type":"string"},"content":{"type":"object","additionalProperties":{"$ref":"#/definitions/MediaType"}},"required":{"type":"boolean","default":false}},"patternProperties":{"^x-":{}},"additionalProperties":false},"SecurityScheme":{"oneOf":[{"$ref":"#/definitions/APIKeySecurityScheme"},{"$ref":"#/definitions/HTTPSecurityScheme"},{"$ref":"#/definitions/OAuth2SecurityScheme"},{"$ref":"#/definitions/OpenIdConnectSecurityScheme"}]},"APIKeySecurityScheme":{"type":"object","required":["type","name","in"],"properties":{"type":{"type":"string","enum":["apiKey"]},"name":{"type":"string"},"in":{"type":"string","enum":["header","query","cookie"]},"description":{"type":"string"}},"patternProperties":{"^x-":{}},"additionalProperties":false},"HTTPSecurityScheme":{"type":"object","required":["scheme","type"],"properties":{"scheme":{"type":"string"},"bearerFormat":{"type":"string"},"description":{"type":"string"},"type":{"type":"string","enum":["http"]}},"patternProperties":{"^x-":{}},"additionalProperties":false,"oneOf":[{"description":"Bearer","properties":{"scheme":{"enum":["bearer"]}}},{"description":"Non Bearer","not":{"required":["bearerFormat"]},"properties":{"scheme":{"not":{"enum":["bearer"]}}}}]},"OAuth2SecurityScheme":{"type":"object","required":["type","flows"],"properties":{"type":{"type":"string","enum":["oauth2"]},"flows":{"$ref":"#/definitions/OAuthFlows"},"description":{"type":"string"}},"patternProperties":{"^x-":{}},"additionalProperties":false},"OpenIdConnectSecurityScheme":{"type":"object","required":["type","openIdConnectUrl"],"properties":{"type":{"type":"string","enum":["openIdConnect"]},"openIdConnectUrl":{"type":"string","format":"uri-reference"},"description":{"type":"string"}},"patternProperties":{"^x-":{}},"additionalProperties":false},"OAuthFlows":{"type":"object","properties":{"implicit":{"$ref":"#/definitions/ImplicitOAuthFlow"},"password":{"$ref":"#/definitions/PasswordOAuthFlow"},"clientCredentials":{"$ref":"#/definitions/ClientCredentialsFlow"},"authorizationCode":{"$ref":"#/definitions/AuthorizationCodeOAuthFlow"}},"patternProperties":{"^x-":{}},"additionalProperties":false},"ImplicitOAuthFlow":{"type":"object","required":["authorizationUrl","scopes"],"properties":{"authorizationUrl":{"type":"string","format":"uri-reference"},"refreshUrl":{"type":"string","format":"uri-reference"},"scopes":{"type":"object","additionalProperties":{"type":"string"}}},"patternProperties":{"^x-":{}},"additionalProperties":false},"PasswordOAuthFlow":{"type":"object","required":["tokenUrl"],"properties":{"tokenUrl":{"type":"string","format":"uri-reference"},"refreshUrl":{"type":"string","format":"uri-reference"},"scopes":{"type":"object","additionalProperties":{"type":"string"}}},"patternProperties":{"^x-":{}},"additionalProperties":false},"ClientCredentialsFlow":{"type":"object","required":["tokenUrl"],"properties":{"tokenUrl":{"type":"string","format":"uri-reference"},"refreshUrl":{"type":"string","format":"uri-reference"},"scopes":{"type":"object","additionalProperties":{"type":"string"}}},"patternProperties":{"^x-":{}},"additionalProperties":false},"AuthorizationCodeOAuthFlow":{"type":"object","required":["authorizationUrl","tokenUrl"],"properties":{"authorizationUrl":{"type":"string","format":"uri-reference"},"tokenUrl":{"type":"string","format":"uri-reference"},"refreshUrl":{"type":"string","format":"uri-reference"},"scopes":{"type":"object","additionalProperties":{"type":"string"}}},"patternProperties":{"^x-":{}},"additionalProperties":false},"Link":{"type":"object","properties":{"operationId":{"type":"string"},"operationRef":{"type":"string","format":"uri-reference"},"parameters":{"type":"object","additionalProperties":{}},"requestBody":{},"description":{"type":"string"},"server":{"$ref":"#/definitions/Server"}},"patternProperties":{"^x-":{}},"additionalProperties":false,"not":{"description":"Operation Id and Operation Ref are mutually exclusive","required":["operationId","operationRef"]}},"Callback":{"type":"object","additionalProperties":{"$ref":"#/definitions/PathItem"},"patternProperties":{"^x-":{}}},"Encoding":{"type":"object","properties":{"contentType":{"type":"string"},"headers":{"type":"object","additionalProperties":{"$ref":"#/definitions/Header"}},"style":{"type":"string","enum":["form","spaceDelimited","pipeDelimited","deepObject"]},"explode":{"type":"boolean"},"allowReserved":{"type":"boolean","default":false}},"additionalProperties":false}}')},Xs={$id:"https://spec.openapis.org/oas/3.1/schema/2021-04-15",$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{openapi:{type:"string",pattern:"^3\\.1\\.\\d+(-.+)?$"},info:{$ref:"#/$defs/info"},jsonSchemaDialect:{$ref:"#/$defs/uri",default:"https://spec.openapis.org/oas/3.1/dialect/base"},servers:{type:"array",items:{$ref:"#/$defs/server"}},paths:{$ref:"#/$defs/paths"},webhooks:{type:"object",additionalProperties:{$ref:"#/$defs/path-item-or-reference"}},components:{$ref:"#/$defs/components"},security:{type:"array",items:{$ref:"#/$defs/security-requirement"}},tags:{type:"array",items:{$ref:"#/$defs/tag"}},externalDocs:{$ref:"#/$defs/external-documentation"}},required:["openapi","info"],anyOf:[{required:["paths"]},{required:["components"]},{required:["webhooks"]}],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1,$defs:JSON.parse('{"info":{"type":"object","properties":{"title":{"type":"string"},"summary":{"type":"string"},"description":{"type":"string"},"termsOfService":{"type":"string"},"contact":{"$ref":"#/$defs/contact"},"license":{"$ref":"#/$defs/license"},"version":{"type":"string"}},"required":["title","version"],"$ref":"#/$defs/specification-extensions","unevaluatedProperties":false},"contact":{"type":"object","properties":{"name":{"type":"string"},"url":{"type":"string"},"email":{"type":"string"}},"$ref":"#/$defs/specification-extensions","unevaluatedProperties":false},"license":{"type":"object","properties":{"name":{"type":"string"},"identifier":{"type":"string"},"url":{"$ref":"#/$defs/uri"}},"required":["name"],"oneOf":[{"required":["identifier"]},{"required":["url"]}],"$ref":"#/$defs/specification-extensions","unevaluatedProperties":false},"server":{"type":"object","properties":{"url":{"$ref":"#/$defs/uri"},"description":{"type":"string"},"variables":{"type":"object","additionalProperties":{"$ref":"#/$defs/server-variable"}}},"required":["url"],"$ref":"#/$defs/specification-extensions","unevaluatedProperties":false},"server-variable":{"type":"object","properties":{"enum":{"type":"array","items":{"type":"string"},"minItems":1},"default":{"type":"string"},"descriptions":{"type":"string"}},"required":["default"],"$ref":"#/$defs/specification-extensions","unevaluatedProperties":false},"components":{"type":"object","properties":{"schemas":{"type":"object","additionalProperties":{"$dynamicRef":"#meta"}},"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":false},"paths":{"type":"object","patternProperties":{"^/":{"$ref":"#/$defs/path-item"}},"$ref":"#/$defs/specification-extensions","unevaluatedProperties":false},"path-item":{"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"}}},"patternProperties":{"^(get|put|post|delete|options|head|patch|trace)$":{"$ref":"#/$defs/operation"}},"$ref":"#/$defs/specification-extensions","unevaluatedProperties":false},"path-item-or-reference":{"if":{"required":["$ref"]},"then":{"$ref":"#/$defs/reference"},"else":{"$ref":"#/$defs/path-item"}},"operation":{"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":false,"type":"boolean"},"security":{"type":"array","items":{"$ref":"#/$defs/security-requirement"}},"servers":{"type":"array","items":{"$ref":"#/$defs/server"}}},"$ref":"#/$defs/specification-extensions","unevaluatedProperties":false},"external-documentation":{"type":"object","properties":{"description":{"type":"string"},"url":{"$ref":"#/$defs/uri"}},"required":["url"],"$ref":"#/$defs/specification-extensions","unevaluatedProperties":false},"parameter":{"type":"object","properties":{"name":{"type":"string"},"in":{"enum":["query","header","path","cookie"]},"description":{"type":"string"},"required":{"default":false,"type":"boolean"},"deprecated":{"default":false,"type":"boolean"},"allowEmptyValue":{"default":false,"type":"boolean"},"schema":{"$dynamicRef":"#meta"},"content":{"$ref":"#/$defs/content"}},"required":["in"],"oneOf":[{"required":["schema"]},{"required":["content"]}],"dependentSchemas":{"schema":{"properties":{"style":{"type":"string"},"explode":{"type":"boolean"},"allowReserved":{"default":false,"type":"boolean"}},"allOf":[{"$ref":"#/$defs/examples"},{"$ref":"#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-path"},{"$ref":"#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-header"},{"$ref":"#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-query"},{"$ref":"#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-cookie"},{"$ref":"#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-form"}],"$defs":{"styles-for-path":{"if":{"properties":{"in":{"const":"path"}},"required":["in"]},"then":{"properties":{"style":{"default":"simple","enum":["matrix","label","simple"]},"required":{"const":true}},"required":["required"]}},"styles-for-header":{"if":{"properties":{"in":{"const":"header"}},"required":["in"]},"then":{"properties":{"style":{"default":"simple","enum":["simple"]}}}},"styles-for-query":{"if":{"properties":{"in":{"const":"query"}},"required":["in"]},"then":{"properties":{"style":{"default":"form","enum":["form","spaceDelimited","pipeDelimited","deepObject"]}}}},"styles-for-cookie":{"if":{"properties":{"in":{"const":"cookie"}},"required":["in"]},"then":{"properties":{"style":{"default":"form","enum":["form"]}}}},"styles-for-form":{"if":{"properties":{"style":{"const":"form"}},"required":["style"]},"then":{"properties":{"explode":{"default":true}}},"else":{"properties":{"explode":{"default":false}}}}}}},"$ref":"#/$defs/specification-extensions","unevaluatedProperties":false},"parameter-or-reference":{"if":{"required":["$ref"]},"then":{"$ref":"#/$defs/reference"},"else":{"$ref":"#/$defs/parameter"}},"request-body":{"type":"object","properties":{"description":{"type":"string"},"content":{"$ref":"#/$defs/content"},"required":{"default":false,"type":"boolean"}},"required":["content"],"$ref":"#/$defs/specification-extensions","unevaluatedProperties":false},"request-body-or-reference":{"if":{"required":["$ref"]},"then":{"$ref":"#/$defs/reference"},"else":{"$ref":"#/$defs/request-body"}},"content":{"type":"object","additionalProperties":{"$ref":"#/$defs/media-type"},"propertyNames":{"format":"media-range"}},"media-type":{"type":"object","properties":{"schema":{"$dynamicRef":"#meta"},"encoding":{"type":"object","additionalProperties":{"$ref":"#/$defs/encoding"}}},"allOf":[{"$ref":"#/$defs/specification-extensions"},{"$ref":"#/$defs/examples"}],"unevaluatedProperties":false},"encoding":{"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":false,"type":"boolean"}},"allOf":[{"$ref":"#/$defs/specification-extensions"},{"$ref":"#/$defs/encoding/$defs/explode-default"}],"unevaluatedProperties":false,"$defs":{"explode-default":{"if":{"properties":{"style":{"const":"form"}},"required":["style"]},"then":{"properties":{"explode":{"default":true}}},"else":{"properties":{"explode":{"default":false}}}}}},"responses":{"type":"object","properties":{"default":{"$ref":"#/$defs/response-or-reference"}},"patternProperties":{"^[1-5][0-9X]{2}$":{"$ref":"#/$defs/response-or-reference"}},"$ref":"#/$defs/specification-extensions","unevaluatedProperties":false},"response":{"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":false},"response-or-reference":{"if":{"required":["$ref"]},"then":{"$ref":"#/$defs/reference"},"else":{"$ref":"#/$defs/response"}},"callbacks":{"type":"object","$ref":"#/$defs/specification-extensions","additionalProperties":{"$ref":"#/$defs/path-item-or-reference"}},"callbacks-or-reference":{"if":{"required":["$ref"]},"then":{"$ref":"#/$defs/reference"},"else":{"$ref":"#/$defs/callbacks"}},"example":{"type":"object","properties":{"summary":{"type":"string"},"description":{"type":"string"},"value":true,"externalValue":{"$ref":"#/$defs/uri"}},"$ref":"#/$defs/specification-extensions","unevaluatedProperties":false},"example-or-reference":{"if":{"required":["$ref"]},"then":{"$ref":"#/$defs/reference"},"else":{"$ref":"#/$defs/example"}},"link":{"type":"object","properties":{"operationRef":{"$ref":"#/$defs/uri"},"operationId":true,"parameters":{"$ref":"#/$defs/map-of-strings"},"requestBody":true,"description":{"type":"string"},"body":{"$ref":"#/$defs/server"}},"oneOf":[{"required":["operationRef"]},{"required":["operationId"]}],"$ref":"#/$defs/specification-extensions","unevaluatedProperties":false},"link-or-reference":{"if":{"required":["$ref"]},"then":{"$ref":"#/$defs/reference"},"else":{"$ref":"#/$defs/link"}},"header":{"type":"object","properties":{"description":{"type":"string"},"required":{"default":false,"type":"boolean"},"deprecated":{"default":false,"type":"boolean"},"allowEmptyValue":{"default":false,"type":"boolean"}},"dependentSchemas":{"schema":{"properties":{"style":{"default":"simple","enum":["simple"]},"explode":{"default":false,"type":"boolean"},"allowReserved":{"default":false,"type":"boolean"},"schema":{"$dynamicRef":"#meta"}},"$ref":"#/$defs/examples"},"content":{"properties":{"content":{"$ref":"#/$defs/content"}}}},"$ref":"#/$defs/specification-extensions","unevaluatedProperties":false},"header-or-reference":{"if":{"required":["$ref"]},"then":{"$ref":"#/$defs/reference"},"else":{"$ref":"#/$defs/header"}},"tag":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"externalDocs":{"$ref":"#/$defs/external-documentation"}},"required":["name"],"$ref":"#/$defs/specification-extensions","unevaluatedProperties":false},"reference":{"type":"object","properties":{"$ref":{"$ref":"#/$defs/uri"},"summary":{"type":"string"},"description":{"type":"string"}},"unevaluatedProperties":false},"schema":{"$dynamicAnchor":"meta","type":["object","boolean"]},"security-scheme":{"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":false,"$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":{"const":"bearer"}},"required":["type","scheme"]},"then":{"properties":{"bearerFormat":{"type":"string"}},"required":["scheme"]}},"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":{"$ref":"#/$defs/uri"}},"required":["openIdConnectUrl"]}}}},"security-scheme-or-reference":{"if":{"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":false,"$defs":{"implicit":{"type":"object","properties":{"authorizationUrl":{"type":"string"},"refreshUrl":{"type":"string"},"scopes":{"$ref":"#/$defs/map-of-strings"}},"required":["authorizationUrl","scopes"],"$ref":"#/$defs/specification-extensions","unevaluatedProperties":false},"password":{"type":"object","properties":{"tokenUrl":{"type":"string"},"refreshUrl":{"type":"string"},"scopes":{"$ref":"#/$defs/map-of-strings"}},"required":["tokenUrl","scopes"],"$ref":"#/$defs/specification-extensions","unevaluatedProperties":false},"client-credentials":{"type":"object","properties":{"tokenUrl":{"type":"string"},"refreshUrl":{"type":"string"},"scopes":{"$ref":"#/$defs/map-of-strings"}},"required":["tokenUrl","scopes"],"$ref":"#/$defs/specification-extensions","unevaluatedProperties":false},"authorization-code":{"type":"object","properties":{"authorizationUrl":{"type":"string"},"tokenUrl":{"type":"string"},"refreshUrl":{"type":"string"},"scopes":{"$ref":"#/$defs/map-of-strings"}},"required":["authorizationUrl","tokenUrl","scopes"],"$ref":"#/$defs/specification-extensions","unevaluatedProperties":false}}},"security-requirement":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string"}}},"specification-extensions":{"patternProperties":{"^x-":true}},"examples":{"properties":{"example":true,"examples":{"type":"object","additionalProperties":{"$ref":"#/$defs/example-or-reference"}}}},"uri":{"type":"string","format":"uri"},"map-of-strings":{"type":"object","additionalProperties":{"type":"string"}}}')};var ei,ti,ri,ni,oi,si,ii;function ai(){if(ri)return ti;ri=1;const e=ze(),{ono:t}=rt,r=(Ro||(Ro=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=void 0;const r=Or(),n=jo(),o=Co(),s=Io,i=["/properties"],a="http://json-schema.org/draft-04/schema";class l extends r.default{constructor(e={}){super({...e,schemaId:"id"})}_addVocabularies(){super._addVocabularies(),n.default.forEach(e=>this.addVocabulary(e)),this.opts.discriminator&&this.addKeyword(o.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const e=this.opts.$data?this.$dataMetaSchema(s,i):s;this.addMetaSchema(e,a,!1),this.refs["http://json-schema.org/schema"]=a}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(a)?a:void 0)}}e.exports=t=l,Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var c=Or();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return c.KeywordCxt}});var p=Or();Object.defineProperty(t,"_",{enumerable:!0,get:function(){return p._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return p.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return p.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return p.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return p.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return p.CodeGen}})}(ot,ot.exports)),ot.exports),n=Gs(),{openapi:o}=(ei||(ei=1,s=Ks,i=Ks.exports,Object.defineProperty(i,"__esModule",{value:!0}),i.openapi=i.openapiV31=i.openapiV3=i.openapiV2=i.openapiV1=void 0,i.openapiV1=Zs,i.openapiV2=Qs,i.openapiV3=Ys,i.openapiV31=Xs,i.openapi={v1:i.openapiV1,v2:i.openapiV2,v3:i.openapiV3,v31:i.openapiV31},i.default=i.openapi,s.exports=Object.assign(s.exports.default,s.exports)),Ks.exports);var s,i;function a(e=!0){const t={allErrors:!0,strict:!1,validateFormats:!1};return e?new r(t):new n(t)}return ti=function(r){let n,s;if(r.swagger)s=o.v2,n=a();else if(r.openapi.startsWith("3.1")){s=o.v31;const e=s.$defs.schema;delete e.$dynamicAnchor,s.$defs.components.properties.schemas.additionalProperties=e,s.$defs.header.dependentSchemas.schema.properties.schema=e,s.$defs["media-type"].properties.schema=e,s.$defs.parameter.properties.schema=e,n=a(!1)}else s=o.v3,n=a();if(!n.validate(s,r)){let r=n.errors,o="Swagger schema validation failed.\n"+function(t,r){r=r||" ";let n="";for(let o of t)n+=e.format(`${r}#${o.instancePath.length?o.instancePath:"/"} ${o.message}\n`);return n}(r);throw t.syntax(r,{details:r},o)}}}function li(){if(ii)return si;ii=1;const e=ze(),{ono:t}=rt,r=oi?ni:(oi=1,ni=["get","put","post","delete","options","head","patch"]),n=["array","boolean","integer","number","string"],o=["array","boolean","integer","number","string","object","null",void 0];function s(e,n,o,s){for(let a of r){let r=n[a],c=o+"/"+a;if(r){let a=r.operationId;if(a){if(-1!==s.indexOf(a))throw t.syntax(`Validation failed. Duplicate operation id '${a}'`);s.push(a)}i(e,n,o,r,c);let p=Object.keys(r.responses||{});for(let e of p){l(e,r.responses[e]||{},c+"/responses/"+e)}}}}function i(r,s,i,l,d){let u=s.parameters||[],f=l.parameters||[];try{a(u)}catch(cd){throw t.syntax(cd,`Validation failed. ${i} has duplicate parameters`)}try{a(f)}catch(cd){throw t.syntax(cd,`Validation failed. ${d} has duplicate parameters`)}let h=u.reduce((e,t)=>(e.some(e=>e.in===t.in&&e.name===t.name)||e.push(t),e),f.slice());!function(e,r){let n=e.filter(e=>"body"===e.in),o=e.filter(e=>"formData"===e.in);if(n.length>1)throw t.syntax(`Validation failed. ${r} has ${n.length} body parameters. Only one is allowed.`);if(n.length>0&&o.length>0)throw t.syntax(`Validation failed. ${r} has body parameters and formData parameters. Only one or the other is allowed.`)}(h,d),function(r,n,o){let s=n.match(e.swaggerParamRegExp)||[];for(let e=0;e<s.length;e++)for(let r=e+1;r<s.length;r++)if(s[e]===s[r])throw t.syntax(`Validation failed. ${o} has multiple path placeholders named ${s[e]}`);r=r.filter(e=>"path"===e.in);for(let e of r){if(!0!==e.required)throw t.syntax(`Validation failed. Path parameters cannot be optional. Set required=true for the "${e.name}" parameter at ${o}`);let r=s.indexOf("{"+e.name+"}");if(-1===r)throw t.syntax(`Validation failed. ${o} has a path parameter named "${e.name}", but there is no corresponding {${e.name}} in the path string`);s.splice(r,1)}if(s.length>0)throw t.syntax(`Validation failed. ${o} is missing path parameter(s) for ${s}`)}(h,i,d),function(e,r,s,i){for(let a of e){let e,l,d=i+"/parameters/"+a.name;switch(a.in){case"body":e=a.schema,l=o;break;case"formData":e=a,l=n.concat("file");break;default:e=a,l=n}if(c(e,d,l),p(e,d),"file"===e.type){let e=/multipart\/(.*\+)?form-data/,n=/application\/(.*\+)?x-www-form-urlencoded/;if(!(s.consumes||r.consumes||[]).some(t=>e.test(t)||n.test(t)))throw t.syntax(`Validation failed. ${i} has a file parameter, so it must consume multipart/form-data or application/x-www-form-urlencoded`)}}}(h,r,l,d)}function a(e){for(let r=0;r<e.length-1;r++){let n=e[r];for(let o=r+1;o<e.length;o++){let r=e[o];if(n.name===r.name&&n.in===r.in)throw t.syntax(`Validation failed. Found multiple ${n.in} parameters named "${n.name}"`)}}}function l(e,r,s){if("default"!==e&&(e<100||e>599))throw t.syntax(`Validation failed. ${s} has an invalid response code (${e})`);let i=Object.keys(r.headers||{});for(let t of i){c(r.headers[t],s+"/headers/"+t,n)}if(r.schema){let e=o.concat("file");if(-1===e.indexOf(r.schema.type))throw t.syntax(`Validation failed. ${s} has an invalid response schema type (${r.schema.type})`);c(r.schema,s+"/schema",e)}}function c(e,r,n){if(-1===n.indexOf(e.type))throw t.syntax(`Validation failed. ${r} has an invalid type (${e.type})`);if("array"===e.type&&!e.items)throw t.syntax(`Validation failed. ${r} is an array, so it must include an "items" schema`)}function p(e,r){if((!Array.isArray(e.type)||e.type.includes("object"))&&(Array.isArray(e.type)||"object"===e.type)&&e.required&&Array.isArray(e.required)){let n={};!function e(t,r){if(t.properties)for(let n in t.properties)t.properties.hasOwnProperty(n)&&(r[n]=t.properties[n]);if(t.allOf)for(let n of t.allOf)e(n,r)}(e,n);for(let o of e.required)if(!n[o])throw t.syntax(`Validation failed. Property '${o}' listed as required but does not exist in '${r}'`)}}return si=function(e){if(e.openapi)return;let t=Object.keys(e.paths||{}),r=[];for(let o of t){let t=e.paths[o],n="/paths"+o;t&&0===o.indexOf("/")&&s(e,t,n,r)}let n=Object.keys(e.definitions||{});for(let o of n){p(e.definitions[o],"/definitions/"+o)}}}var ci={},pi={},di={},ui={},fi={},hi={};function mi(...e){return e.reduce((e,t)=>t.startsWith("/")||t.match(/^https?:\/\//)?t:e.replace(/\/?$/,"/")+t,"")}function gi(...e){return e.filter(Boolean).join("/").replace(/\/+/g,"/")}function yi(e){const t=e.lastIndexOf("/");return t>=0?e.substring(0,t):"."}function vi(e,t){const r=e.split("/").pop()??e;return t&&r.endsWith(t)?r.slice(0,-t.length):r}function bi(e){const t=vi(e),r=t.lastIndexOf(".");return r>0?t.substring(r):""}function $i(e){return e.startsWith("/")||/^[a-zA-Z]:[\\/]/.test(e)||/^https?:\/\//.test(e)}const xi={resolve:mi,join:gi,dirname:yi,basename:vi,extname:bi,isAbsolute:$i,sep:"/"},wi={resolve:mi,join:gi,dirname:yi,basename:vi,extname:bi,isAbsolute:$i,posix:xi,sep:"/"},_i=i(Object.freeze(Object.defineProperty({__proto__:null,basename:vi,default:wi,dirname:yi,extname:bi,isAbsolute:$i,join:gi,posix:xi,resolve:mi,sep:"/"},Symbol.toStringTag,{value:"Module"})));var ki;function Si(){if(ki)return hi;ki=1;var e=hi&&hi.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(hi,"__esModule",{value:!0}),hi.default=function(e){var r,n,o,s;if(e.startsWith("\\\\?\\"))return e;return e.split(null==(n=null==(r=t.default)?void 0:r.win32)?void 0:n.sep).join((null==(s=null==(o=t.default)?void 0:o.posix)?void 0:s.sep)??"/")};const t=e(_i);return hi}var ji,Oi,Pi={};function Ei(){if(Oi)return fi;Oi=1;var e=fi&&fi.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),t=fi&&fi.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=fi&&fi.__importStar||function(r){if(r&&r.__esModule)return r;var n={};if(null!=r)for(var o in r)"default"!==o&&Object.prototype.hasOwnProperty.call(r,o)&&e(n,r,o);return t(n,r),n},n=fi&&fi.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(fi,"__esModule",{value:!0}),fi.parse=void 0,fi.resolve=h,fi.cwd=m,fi.getProtocol=g,fi.getExtension=function(e){const t=e.lastIndexOf(".");if(t>=0)return y(e.substr(t).toLowerCase());return""},fi.stripQuery=y,fi.getHash=v,fi.stripHash=b,fi.isHttp=function(e){const t=g(e);return"http"===t||"https"===t||void 0===t&&"undefined"!=typeof window},fi.isFileSystemPath=$,fi.fromFileSystemPath=function(e){var t;if((0,d.isWindows)()){const r=m(),n=e.toUpperCase(),i=(0,o.default)(r).toUpperCase(),a=n.includes(i),l=n.includes(i),c=(null==(t=s.win32)?void 0:t.isAbsolute(e))||e.startsWith("http://")||e.startsWith("https://")||e.startsWith("file://");a||l||c||r.startsWith("http")||(e=(0,p.join)(r,e)),e=(0,o.default)(e)}e=encodeURI(e);for(const r of u)e=e.replace(r[0],r[1]);return e},fi.toFileSystemPath=function(e,t){e=decodeURI(e);for(let n=0;n<f.length;n+=2)e=e.replace(f[n],f[n+1]);let r="file://"===e.substr(0,7).toLowerCase();r&&(e="/"===e[7]?e.substr(8):e.substr(7),(0,d.isWindows)()&&"/"===e[1]&&(e=e[0]+":"+e.substr(1)),t?e="file:///"+e:(r=!1,e=(0,d.isWindows)()?e:"/"+e));(0,d.isWindows)()&&!r&&":\\"===(e=e.replace(i,"\\")).substr(1,2)&&(e=e[0].toUpperCase()+e.substr(1));return e},fi.safePointerToPath=function(e){if(e.length<=1||"#"!==e[0]||"/"!==e[1])return[];return e.slice(2).split("/").map(e=>decodeURIComponent(e).replace(l,"/").replace(c,"~"))},fi.relative=function(e,t){if(!$(e)||!$(t))return h(e,t);const r=s.default.dirname(b(e)),n=b(t);return s.default.relative(r,n)+v(t)};const o=n(Si()),s=r(_i),i=/\//g,a=/^(\w{2,}):\/\//i,l=/~1/g,c=/~0/g,p=_i,d=function(){if(ji)return Pi;ji=1,Object.defineProperty(Pi,"__esModule",{value:!0}),Pi.isWindows=void 0;const e=/^win/.test(globalThis.process?globalThis.process.platform:"");return Pi.isWindows=()=>e,Pi}(),u=[[/\?/g,"%3F"],[/#/g,"%23"]],f=[/%23/g,"#",/%24/g,"$",/%26/g,"&",/%2C/g,",",/%40/g,"@"];function h(e,t){var r;const n=new URL((0,o.default)(e),"resolve://"),s=new URL((0,o.default)(t),n),i=(null==(r=t.match(/(\s*)$/))?void 0:r[1])||"";if("resolve:"===s.protocol){const{pathname:e,search:t,hash:r}=s;return e+t+r+i}return s.toString()+i}function m(){if("undefined"!=typeof window)return location.href;const e=process.cwd(),t=e.slice(-1);return"/"===t||"\\"===t?e:e+"/"}function g(e){const t=a.exec(e||"");if(t)return t[1].toLowerCase()}function y(e){const t=e.indexOf("?");return t>=0&&(e=e.substr(0,t)),e}function v(e){if(!e)return"#";const t=e.indexOf("#");return t>=0?e.substring(t):"#"}function b(e){if(!e)return"";const t=e.indexOf("#");return t>=0&&(e=e.substring(0,t)),e}function $(e){if("undefined"!=typeof window||"undefined"!=typeof process&&process.browser)return!1;const t=g(e);return void 0===t||"file"===t}return fi.parse=e=>new URL(e),fi}var Ti,Ai,Ci,Ii,Ri={};function Ni(){if(Ti)return Ri;Ti=1,Object.defineProperty(Ri,"__esModule",{value:!0}),Ri.InvalidPointerError=Ri.TimeoutError=Ri.MissingPointerError=Ri.UnmatchedResolverError=Ri.ResolverError=Ri.UnmatchedParserError=Ri.ParserError=Ri.JSONParserErrorGroup=Ri.JSONParserError=void 0,Ri.isHandledError=function(e){return e instanceof r||e instanceof n},Ri.normalizeError=function(e){null===e.path&&(e.path=[]);return e};const e=rt,t=Ei();class r extends Error{constructor(t,r){super(),this.code="EUNKNOWN",this.name="JSONParserError",this.message=t,this.source=r,this.path=null,e.Ono.extend(this)}get footprint(){return`${this.path}+${this.source}+${this.code}+${this.message}`}}Ri.JSONParserError=r;class n extends Error{constructor(r){super(),this.files=r,this.name="JSONParserErrorGroup",this.message=`${this.errors.length} error${this.errors.length>1?"s":""} occurred while reading '${(0,t.toFileSystemPath)(r.$refs._root$Ref.path)}'`,e.Ono.extend(this)}static getParserErrors(e){const t=[];for(const r of Object.values(e.$refs._$refs))r.errors&&t.push(...r.errors);return t}get errors(){return n.getParserErrors(this.files)}}Ri.JSONParserErrorGroup=n;Ri.ParserError=class extends r{constructor(e,t){super(`Error parsing ${t}: ${e}`,t),this.code="EPARSER",this.name="ParserError"}};Ri.UnmatchedParserError=class extends r{constructor(e){super(`Could not find parser for "${e}"`,e),this.code="EUNMATCHEDPARSER",this.name="UnmatchedParserError"}};Ri.ResolverError=class extends r{constructor(e,t){super(e.message||`Error reading file "${t}"`,t),this.code="ERESOLVER",this.name="ResolverError","code"in e&&(this.ioErrorCode=String(e.code))}};Ri.UnmatchedResolverError=class extends r{constructor(e){super(`Could not find resolver for "${e}"`,e),this.code="EUNMATCHEDRESOLVER",this.name="UnmatchedResolverError"}};Ri.MissingPointerError=class extends r{constructor(e,r){super(`Token "${e}" does not exist.`,(0,t.stripHash)(r)),this.code="EUNMATCHEDRESOLVER",this.name="MissingPointerError"}};Ri.TimeoutError=class extends r{constructor(e){super(`Dereferencing timeout reached: ${e}ms`),this.code="ETIMEOUT",this.name="TimeoutError"}};return Ri.InvalidPointerError=class extends r{constructor(e,r){super(`Invalid $ref pointer "${e}". Pointers must begin with "#/"`,(0,t.stripHash)(r)),this.code="EUNMATCHEDRESOLVER",this.name="InvalidPointerError"}},Ri}function Mi(){if(Ai)return ui;Ai=1;var e=ui&&ui.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),t=ui&&ui.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=ui&&ui.__importStar||function(r){if(r&&r.__esModule)return r;var n={};if(null!=r)for(var o in r)"default"!==o&&Object.prototype.hasOwnProperty.call(r,o)&&e(n,r,o);return t(n,r),n},n=ui&&ui.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ui,"__esModule",{value:!0});const o=n(qi()),s=r(Ei()),i=Ni(),a=/\//g,l=/~/g,c=/~1/g,p=/~0/g,d=e=>{try{return decodeURIComponent(e)}catch{return e}};class u{constructor(e,t,r){this.$ref=e,this.path=t,this.originalPath=r||t,this.value=void 0,this.circular=!1,this.indirections=0}resolve(e,t,r){const n=u.parse(this.path,this.originalPath);this.value=m(e);for(let o=0;o<n.length;o++){if(f(this,t,r)&&(this.path=u.join(this.path,n.slice(o))),"object"==typeof this.value&&null!==this.value&&!g(r)&&"$ref"in this.value)return this;const e=n[o];if(void 0===this.value[e]||null===this.value[e]&&o===n.length-1){let t=!1;for(let e=n.length-1;e>o;e--){const r=n.slice(o,e+1).join("/");if(void 0!==this.value[r]){this.value=this.value[r],o=e,t=!0;break}}if(t)continue;throw this.value=null,new i.MissingPointerError(e,decodeURI(this.originalPath))}this.value=this.value[e]}return(!this.value||this.value.$ref&&s.resolve(this.path,this.value.$ref)!==r)&&f(this,t,r),this}set(e,t,r){const n=u.parse(this.path);let o;if(0===n.length)return this.value=t,t;this.value=m(e);for(let s=0;s<n.length-1;s++)f(this,r),o=n[s],this.value&&void 0!==this.value[o]?this.value=this.value[o]:this.value=h(this,o,{});return f(this,r),o=n[n.length-1],h(this,o,t),e}static parse(e,t){const r=s.getHash(e).substring(1);if(!r)return[];const n=r.split("/");for(let o=0;o<n.length;o++)n[o]=d(n[o].replace(c,"/").replace(p,"~"));if(""!==n[0])throw new i.InvalidPointerError(n,void 0===t?e:t);return n.slice(1)}static join(e,t){-1===e.indexOf("#")&&(e+="#"),t=Array.isArray(t)?t:[t];for(let r=0;r<t.length;r++){const n=t[r];e+="/"+encodeURIComponent(n.replace(l,"~0").replace(a,"~1"))}return e}}function f(e,t,r){if(o.default.isAllowed$Ref(e.value,t)){const n=s.resolve(e.path,e.value.$ref);if(n!==e.path||g(r)){const r=e.$ref.$refs._resolve(n,e.path,t);return null!==r&&(e.indirections+=r.indirections+1,o.default.isExtended$Ref(e.value)?(e.value=o.default.dereference(e.value,r.value),!1):(e.$ref=r.$ref,e.path=r.path,e.value=r.value,!0))}e.circular=!0}}function h(e,t,r){if(!e.value||"object"!=typeof e.value)throw new i.JSONParserError(`Error assigning $ref pointer "${e.path}". \nCannot set "${t}" of a non-object.`);return"-"===t&&Array.isArray(e.value)?e.value.push(r):e.value[t]=r,r}function m(e){if((0,i.isHandledError)(e))throw e;return e}function g(e){return"string"==typeof e&&0==u.parse(e).length}return ui.default=u,ui}function qi(){if(Ci)return di;Ci=1;var e=di&&di.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(di,"__esModule",{value:!0});const t=e(Mi()),r=Ni(),n=Ei();class o{constructor(e){this.errors=[],this.$refs=e}addError(e){void 0===this.errors&&(this.errors=[]);const t=this.errors.map(({footprint:e})=>e);"errors"in e&&Array.isArray(e.errors)?this.errors.push(...e.errors.map(r.normalizeError).filter(({footprint:e})=>!t.includes(e))):"footprint"in e&&t.includes(e.footprint)||this.errors.push((0,r.normalizeError)(e))}exists(e,t){try{return this.resolve(e,t),!0}catch{return!1}}get(e,t){var r;return null==(r=this.resolve(e,t))?void 0:r.value}resolve(e,o,s,i){const a=new t.default(this,e,s);try{return a.resolve(this.value,o,i)}catch(l){if(!o||!o.continueOnError||!(0,r.isHandledError)(l))throw l;return null===l.path&&(l.path=(0,n.safePointerToPath)((0,n.getHash)(i))),l instanceof r.InvalidPointerError&&(l.source=decodeURI((0,n.stripHash)(i))),this.addError(l),null}}set(e,r){const n=new t.default(this,e);this.value=n.set(this.value,r)}static is$Ref(e){return Boolean(e)&&"object"==typeof e&&null!==e&&"$ref"in e&&"string"==typeof e.$ref&&e.$ref.length>0}static isExternal$Ref(e){return o.is$Ref(e)&&"#"!==e.$ref[0]}static isAllowed$Ref(e,t){var r;if(this.is$Ref(e)){if("#/"===e.$ref.substring(0,2)||"#"===e.$ref)return!0;if("#"!==e.$ref[0]&&(!t||(null==(r=t.resolve)?void 0:r.external)))return!0}}static isExtended$Ref(e){return o.is$Ref(e)&&Object.keys(e).length>1}static dereference(e,t){if(t&&"object"==typeof t&&o.isExtended$Ref(e)){const r={};for(const t of Object.keys(e))"$ref"!==t&&(r[t]=e[t]);for(const e of Object.keys(t))e in r||(r[e]=t[e]);return r}return t}}return di.default=o,di}var zi,Ui,Li={},Di={};function Bi(){if(Ui)return Li;Ui=1;var e=Li&&Li.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),t=Li&&Li.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=Li&&Li.__importStar||function(r){if(r&&r.__esModule)return r;var n={};if(null!=r)for(var o in r)"default"!==o&&Object.prototype.hasOwnProperty.call(r,o)&&e(n,r,o);return t(n,r),n};Object.defineProperty(Li,"__esModule",{value:!0});const n=rt,o=r(Ei()),s=r(function(){if(zi)return Di;function e(e,t,r,n,o){const s=e[t];if("function"==typeof s)return s.apply(e,[r,n,o]);if(!n){if(s instanceof RegExp)return s.test(r.url);if("string"==typeof s)return s===r.extension;if(Array.isArray(s))return-1!==s.indexOf(r.extension)}return s}return zi=1,Object.defineProperty(Di,"__esModule",{value:!0}),Di.all=function(e){return Object.keys(e||{}).filter(t=>"object"==typeof e[t]).map(t=>(e[t].name=t,e[t]))},Di.filter=function(t,r,n){return t.filter(t=>!!e(t,r,n))},Di.sort=function(e){for(const t of e)t.order=t.order||Number.MAX_SAFE_INTEGER;return e.sort((e,t)=>e.order-t.order)},Di.run=async function(t,r,n,o){let s,i,a=0;return new Promise((l,c)=>{function p(){if(s=t[a++],!s)return c(i);try{const i=e(s,r,n,d,o);if(i&&"function"==typeof i.then)i.then(u,f);else if(void 0!==i)u(i);else if(a===t.length)throw new Error("No promise has been returned or callback has been called.")}catch(cd){f(cd)}}function d(e,t){e?f(e):u(t)}function u(e){l({plugin:s,result:e})}function f(e){i={plugin:s,error:e},p()}p()})},Di}()),i=Ni();return Li.default=async function(e,t,r){const a=e.indexOf("#");let l="";a>=0&&(l=e.substring(a),e=e.substring(0,a));const c=t._add(e),p={url:e,hash:l,extension:o.getExtension(e)};try{const e=await async function(e,t,r){let o=s.all(t.resolve);o=s.filter(o,"canRead",e),s.sort(o);try{return await s.run(o,"read",e,r)}catch(a){throw!a&&t.continueOnError?new i.UnmatchedResolverError(e.url):a&&"error"in a?a.error instanceof i.ResolverError?a.error:new i.ResolverError(a,e.url):n.ono.syntax(`Unable to resolve $ref pointer "${e.url}"`)}}(p,r,t);c.pathType=e.plugin.name,p.data=e.result;const o=await async function(e,t,r){const o=s.all(t.parse),a=s.filter(o,"canParse",e),l=a.length>0?a:o;s.sort(l);try{const t=await s.run(l,"parse",e,r);if(!t.plugin.allowEmpty&&(void 0===(c=t.result)||"object"==typeof c&&0===Object.keys(c).length||"string"==typeof c&&0===c.trim().length||Buffer.isBuffer(c)&&0===c.length))throw n.ono.syntax(`Error parsing "${e.url}" as ${t.plugin.name}. \nParsed value is empty`);return t}catch(p){throw!p&&t.continueOnError?new i.UnmatchedParserError(e.url):p&&p.message&&p.message.startsWith("Error parsing")?p:p&&"error"in p?p.error instanceof i.ParserError?p.error:new i.ParserError(p.error.message,e.url):n.ono.syntax(`Unable to parse ${e.url}`)}var c}(p,r,t);return c.value=o.result,o.result}catch(d){throw(0,i.isHandledError)(d)&&(c.value=d),d}},Li}var Hi,Fi={},Vi={},Ji={};var Wi,Gi,Ki,Zi,Qi,Yi,Xi,ea,ta,ra,na,oa,sa,ia,aa,la,ca,pa,da,ua,fa,ha,ma,ga,ya,va,ba,$a,xa,wa,_a,ka,Sa,ja,Oa,Pa,Ea,Ta,Aa,Ca,Ia,Ra,Na,Ma,qa={},za={},Ua={},La={};function Da(){if(Wi)return La;function e(e){return null==e}return Wi=1,La.isNothing=e,La.isObject=function(e){return"object"==typeof e&&null!==e},La.toArray=function(t){return Array.isArray(t)?t:e(t)?[]:[t]},La.repeat=function(e,t){var r,n="";for(r=0;r<t;r+=1)n+=e;return n},La.isNegativeZero=function(e){return 0===e&&Number.NEGATIVE_INFINITY===1/e},La.extend=function(e,t){var r,n,o,s;if(t)for(r=0,n=(s=Object.keys(t)).length;r<n;r+=1)e[o=s[r]]=t[o];return e},La}function Ba(){if(Ki)return Gi;function e(e,t){var r="",n=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(r+='in "'+e.mark.name+'" '),r+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(r+="\n\n"+e.mark.snippet),n+" "+r):n}function t(t,r){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=r,this.message=e(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||""}return Ki=1,t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t.prototype.toString=function(t){return this.name+": "+e(this,t)},Gi=t}function Ha(){if(Xi)return Yi;Xi=1;var e=Ba(),t=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],r=["scalar","sequence","mapping"];return Yi=function(n,o){var s,i;if(o=o||{},Object.keys(o).forEach(function(r){if(-1===t.indexOf(r))throw new e('Unknown option "'+r+'" is met in definition of "'+n+'" YAML type.')}),this.options=o,this.tag=n,this.kind=o.kind||null,this.resolve=o.resolve||function(){return!0},this.construct=o.construct||function(e){return e},this.instanceOf=o.instanceOf||null,this.predicate=o.predicate||null,this.represent=o.represent||null,this.representName=o.representName||null,this.defaultStyle=o.defaultStyle||null,this.multi=o.multi||!1,this.styleAliases=(s=o.styleAliases||null,i={},null!==s&&Object.keys(s).forEach(function(e){s[e].forEach(function(t){i[String(t)]=e})}),i),-1===r.indexOf(this.kind))throw new e('Unknown kind "'+this.kind+'" is specified for "'+n+'" YAML type.')}}function Fa(){if(ta)return ea;ta=1;var e=Ba(),t=Ha();function r(e,t){var r=[];return e[t].forEach(function(e){var t=r.length;r.forEach(function(r,n){r.tag===e.tag&&r.kind===e.kind&&r.multi===e.multi&&(t=n)}),r[t]=e}),r}function n(e){return this.extend(e)}return n.prototype.extend=function(o){var s=[],i=[];if(o instanceof t)i.push(o);else if(Array.isArray(o))i=i.concat(o);else{if(!o||!Array.isArray(o.implicit)&&!Array.isArray(o.explicit))throw new e("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");o.implicit&&(s=s.concat(o.implicit)),o.explicit&&(i=i.concat(o.explicit))}s.forEach(function(r){if(!(r instanceof t))throw new e("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(r.loadKind&&"scalar"!==r.loadKind)throw new e("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(r.multi)throw new e("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),i.forEach(function(r){if(!(r instanceof t))throw new e("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var a=Object.create(n.prototype);return a.implicit=(this.implicit||[]).concat(s),a.explicit=(this.explicit||[]).concat(i),a.compiledImplicit=r(a,"implicit"),a.compiledExplicit=r(a,"explicit"),a.compiledTypeMap=function(){var e,t,r={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function n(e){e.multi?(r.multi[e.kind].push(e),r.multi.fallback.push(e)):r[e.kind][e.tag]=r.fallback[e.tag]=e}for(e=0,t=arguments.length;e<t;e+=1)arguments[e].forEach(n);return r}(a.compiledImplicit,a.compiledExplicit),a},ea=n}function Va(){if(na)return ra;na=1;var e=Ha();return ra=new e("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return null!==e?e:""}})}function Ja(){if(sa)return oa;sa=1;var e=Ha();return oa=new e("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return null!==e?e:[]}})}function Wa(){if(aa)return ia;aa=1;var e=Ha();return ia=new e("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return null!==e?e:{}}})}function Ga(){if(ca)return la;ca=1;var e=Fa();return la=new e({explicit:[Va(),Ja(),Wa()]})}function Ka(){if(da)return pa;da=1;var e=Ha();return pa=new e("tag:yaml.org,2002:null",{kind:"scalar",resolve:function(e){if(null===e)return!0;var t=e.length;return 1===t&&"~"===e||4===t&&("null"===e||"Null"===e||"NULL"===e)},construct:function(){return null},predicate:function(e){return null===e},represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"})}function Za(){if(fa)return ua;fa=1;var e=Ha();return ua=new e("tag:yaml.org,2002:bool",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t=e.length;return 4===t&&("true"===e||"True"===e||"TRUE"===e)||5===t&&("false"===e||"False"===e||"FALSE"===e)},construct:function(e){return"true"===e||"True"===e||"TRUE"===e},predicate:function(e){return"[object Boolean]"===Object.prototype.toString.call(e)},represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"})}function Qa(){if(ma)return ha;ma=1;var e=Da(),t=Ha();function r(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function n(e){return 48<=e&&e<=55}function o(e){return 48<=e&&e<=57}return ha=new t("tag:yaml.org,2002:int",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,s=e.length,i=0,a=!1;if(!s)return!1;if("-"!==(t=e[i])&&"+"!==t||(t=e[++i]),"0"===t){if(i+1===s)return!0;if("b"===(t=e[++i])){for(i++;i<s;i++)if("_"!==(t=e[i])){if("0"!==t&&"1"!==t)return!1;a=!0}return a&&"_"!==t}if("x"===t){for(i++;i<s;i++)if("_"!==(t=e[i])){if(!r(e.charCodeAt(i)))return!1;a=!0}return a&&"_"!==t}if("o"===t){for(i++;i<s;i++)if("_"!==(t=e[i])){if(!n(e.charCodeAt(i)))return!1;a=!0}return a&&"_"!==t}}if("_"===t)return!1;for(;i<s;i++)if("_"!==(t=e[i])){if(!o(e.charCodeAt(i)))return!1;a=!0}return!(!a||"_"===t)},construct:function(e){var t,r=e,n=1;if(-1!==r.indexOf("_")&&(r=r.replace(/_/g,"")),"-"!==(t=r[0])&&"+"!==t||("-"===t&&(n=-1),t=(r=r.slice(1))[0]),"0"===r)return 0;if("0"===t){if("b"===r[1])return n*parseInt(r.slice(2),2);if("x"===r[1])return n*parseInt(r.slice(2),16);if("o"===r[1])return n*parseInt(r.slice(2),8)}return n*parseInt(r,10)},predicate:function(t){return"[object Number]"===Object.prototype.toString.call(t)&&t%1==0&&!e.isNegativeZero(t)},represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})}function Ya(){if(ya)return ga;ya=1;var e=Da(),t=Ha(),r=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");var n=/^[-+]?[0-9]+e/;return ga=new t("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(e){return null!==e&&!(!r.test(e)||"_"===e[e.length-1])},construct:function(e){var t,r;return r="-"===(t=e.replace(/_/g,"").toLowerCase())[0]?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),".inf"===t?1===r?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===t?NaN:r*parseFloat(t,10)},predicate:function(t){return"[object Number]"===Object.prototype.toString.call(t)&&(t%1!=0||e.isNegativeZero(t))},represent:function(t,r){var o;if(isNaN(t))switch(r){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===t)switch(r){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===t)switch(r){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(e.isNegativeZero(t))return"-0.0";return o=t.toString(10),n.test(o)?o.replace("e",".e"):o},defaultStyle:"lowercase"})}function Xa(){return ba?va:(ba=1,va=Ga().extend({implicit:[Ka(),Za(),Qa(),Ya()]}))}function el(){return xa?$a:(xa=1,$a=Xa())}function tl(){if(_a)return wa;_a=1;var e=Ha(),t=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),r=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");return wa=new e("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function(e){return null!==e&&(null!==t.exec(e)||null!==r.exec(e))},construct:function(e){var n,o,s,i,a,l,c,p,d=0,u=null;if(null===(n=t.exec(e))&&(n=r.exec(e)),null===n)throw new Error("Date resolve error");if(o=+n[1],s=+n[2]-1,i=+n[3],!n[4])return new Date(Date.UTC(o,s,i));if(a=+n[4],l=+n[5],c=+n[6],n[7]){for(d=n[7].slice(0,3);d.length<3;)d+="0";d=+d}return n[9]&&(u=6e4*(60*+n[10]+ +(n[11]||0)),"-"===n[9]&&(u=-u)),p=new Date(Date.UTC(o,s,i,a,l,c,d)),u&&p.setTime(p.getTime()-u),p},instanceOf:Date,represent:function(e){return e.toISOString()}})}function rl(){if(Sa)return ka;Sa=1;var e=Ha();return ka=new e("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(e){return"<<"===e||null===e}})}function nl(){if(Oa)return ja;Oa=1;var e=Ha(),t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";return ja=new e("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function(e){if(null===e)return!1;var r,n,o=0,s=e.length,i=t;for(n=0;n<s;n++)if(!((r=i.indexOf(e.charAt(n)))>64)){if(r<0)return!1;o+=6}return o%8==0},construct:function(e){var r,n,o=e.replace(/[\r\n=]/g,""),s=o.length,i=t,a=0,l=[];for(r=0;r<s;r++)r%4==0&&r&&(l.push(a>>16&255),l.push(a>>8&255),l.push(255&a)),a=a<<6|i.indexOf(o.charAt(r));return 0===(n=s%4*6)?(l.push(a>>16&255),l.push(a>>8&255),l.push(255&a)):18===n?(l.push(a>>10&255),l.push(a>>2&255)):12===n&&l.push(a>>4&255),new Uint8Array(l)},predicate:function(e){return"[object Uint8Array]"===Object.prototype.toString.call(e)},represent:function(e){var r,n,o="",s=0,i=e.length,a=t;for(r=0;r<i;r++)r%3==0&&r&&(o+=a[s>>18&63],o+=a[s>>12&63],o+=a[s>>6&63],o+=a[63&s]),s=(s<<8)+e[r];return 0===(n=i%3)?(o+=a[s>>18&63],o+=a[s>>12&63],o+=a[s>>6&63],o+=a[63&s]):2===n?(o+=a[s>>10&63],o+=a[s>>4&63],o+=a[s<<2&63],o+=a[64]):1===n&&(o+=a[s>>2&63],o+=a[s<<4&63],o+=a[64],o+=a[64]),o}})}function ol(){if(Ea)return Pa;Ea=1;var e=Ha(),t=Object.prototype.hasOwnProperty,r=Object.prototype.toString;return Pa=new e("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function(e){if(null===e)return!0;var n,o,s,i,a,l=[],c=e;for(n=0,o=c.length;n<o;n+=1){if(s=c[n],a=!1,"[object Object]"!==r.call(s))return!1;for(i in s)if(t.call(s,i)){if(a)return!1;a=!0}if(!a)return!1;if(-1!==l.indexOf(i))return!1;l.push(i)}return!0},construct:function(e){return null!==e?e:[]}})}function sl(){if(Aa)return Ta;Aa=1;var e=Ha(),t=Object.prototype.toString;return Ta=new e("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:function(e){if(null===e)return!0;var r,n,o,s,i,a=e;for(i=new Array(a.length),r=0,n=a.length;r<n;r+=1){if(o=a[r],"[object Object]"!==t.call(o))return!1;if(1!==(s=Object.keys(o)).length)return!1;i[r]=[s[0],o[s[0]]]}return!0},construct:function(e){if(null===e)return[];var t,r,n,o,s,i=e;for(s=new Array(i.length),t=0,r=i.length;t<r;t+=1)n=i[t],o=Object.keys(n),s[t]=[o[0],n[o[0]]];return s}})}function il(){if(Ia)return Ca;Ia=1;var e=Ha(),t=Object.prototype.hasOwnProperty;return Ca=new e("tag:yaml.org,2002:set",{kind:"mapping",resolve:function(e){if(null===e)return!0;var r,n=e;for(r in n)if(t.call(n,r)&&null!==n[r])return!1;return!0},construct:function(e){return null!==e?e:{}}})}function al(){return Na?Ra:(Na=1,Ra=el().extend({implicit:[tl(),rl()],explicit:[nl(),ol(),sl(),il()]}))}function ll(){if(Ma)return Ua;Ma=1;var e=Da(),t=Ba(),r=function(){if(Qi)return Zi;Qi=1;var e=Da();function t(e,t,r,n,o){var s="",i="",a=Math.floor(o/2)-1;return n-t>a&&(t=n-a+(s=" ... ").length),r-n>a&&(r=n+a-(i=" ...").length),{str:s+e.slice(t,r).replace(/\t/g,"→")+i,pos:n-t+s.length}}function r(t,r){return e.repeat(" ",r-t.length)+t}return Zi=function(n,o){if(o=Object.create(o||null),!n.buffer)return null;o.maxLength||(o.maxLength=79),"number"!=typeof o.indent&&(o.indent=1),"number"!=typeof o.linesBefore&&(o.linesBefore=3),"number"!=typeof o.linesAfter&&(o.linesAfter=2);for(var s,i=/\r?\n|\r|\0/g,a=[0],l=[],c=-1;s=i.exec(n.buffer);)l.push(s.index),a.push(s.index+s[0].length),n.position<=s.index&&c<0&&(c=a.length-2);c<0&&(c=a.length-1);var p,d,u="",f=Math.min(n.line+o.linesAfter,l.length).toString().length,h=o.maxLength-(o.indent+f+3);for(p=1;p<=o.linesBefore&&!(c-p<0);p++)d=t(n.buffer,a[c-p],l[c-p],n.position-(a[c]-a[c-p]),h),u=e.repeat(" ",o.indent)+r((n.line-p+1).toString(),f)+" | "+d.str+"\n"+u;for(d=t(n.buffer,a[c],l[c],n.position,h),u+=e.repeat(" ",o.indent)+r((n.line+1).toString(),f)+" | "+d.str+"\n",u+=e.repeat("-",o.indent+f+3+d.pos)+"^\n",p=1;p<=o.linesAfter&&!(c+p>=l.length);p++)d=t(n.buffer,a[c+p],l[c+p],n.position-(a[c]-a[c+p]),h),u+=e.repeat(" ",o.indent)+r((n.line+p+1).toString(),f)+" | "+d.str+"\n";return u.replace(/\n$/,"")}}(),n=al(),o=Object.prototype.hasOwnProperty,s=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,i=/[\x85\u2028\u2029]/,a=/[,\[\]\{\}]/,l=/^(?:!|!!|![a-z\-]+!)$/i,c=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function p(e){return Object.prototype.toString.call(e)}function d(e){return 10===e||13===e}function u(e){return 9===e||32===e}function f(e){return 9===e||32===e||10===e||13===e}function h(e){return 44===e||91===e||93===e||123===e||125===e}function m(e){var t;return 48<=e&&e<=57?e-48:97<=(t=32|e)&&t<=102?t-97+10:-1}function g(e){return 120===e?2:117===e?4:85===e?8:0}function y(e){return 48<=e&&e<=57?e-48:-1}function v(e){return 48===e?"\0":97===e?"":98===e?"\b":116===e||9===e?"\t":110===e?"\n":118===e?"\v":102===e?"\f":114===e?"\r":101===e?"":32===e?" ":34===e?'"':47===e?"/":92===e?"\\":78===e?"…":95===e?" ":76===e?"\u2028":80===e?"\u2029":""}function b(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(55296+(e-65536>>10),56320+(e-65536&1023))}function $(e,t,r){"__proto__"===t?Object.defineProperty(e,t,{configurable:!0,enumerable:!0,writable:!0,value:r}):e[t]=r}for(var x=new Array(256),w=new Array(256),_=0;_<256;_++)x[_]=v(_)?1:0,w[_]=v(_);function k(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||n,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function S(e,n){var o={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return o.snippet=r(o),new t(n,o)}function j(e,t){throw S(e,t)}function O(e,t){e.onWarning&&e.onWarning.call(null,S(e,t))}var P={YAML:function(e,t,r){var n,o,s;null!==e.version&&j(e,"duplication of %YAML directive"),1!==r.length&&j(e,"YAML directive accepts exactly one argument"),null===(n=/^([0-9]+)\.([0-9]+)$/.exec(r[0]))&&j(e,"ill-formed argument of the YAML directive"),o=parseInt(n[1],10),s=parseInt(n[2],10),1!==o&&j(e,"unacceptable YAML version of the document"),e.version=r[0],e.checkLineBreaks=s<2,1!==s&&2!==s&&O(e,"unsupported YAML version of the document")},TAG:function(e,t,r){var n,s;2!==r.length&&j(e,"TAG directive accepts exactly two arguments"),n=r[0],s=r[1],l.test(n)||j(e,"ill-formed tag handle (first argument) of the TAG directive"),o.call(e.tagMap,n)&&j(e,'there is a previously declared suffix for "'+n+'" tag handle'),c.test(s)||j(e,"ill-formed tag prefix (second argument) of the TAG directive");try{s=decodeURIComponent(s)}catch(i){j(e,"tag prefix is malformed: "+s)}e.tagMap[n]=s}};function E(e,t,r,n){var o,i,a,l;if(t<r){if(l=e.input.slice(t,r),n)for(o=0,i=l.length;o<i;o+=1)9===(a=l.charCodeAt(o))||32<=a&&a<=1114111||j(e,"expected valid JSON character");else s.test(l)&&j(e,"the stream contains non-printable characters");e.result+=l}}function T(t,r,n,s){var i,a,l,c;for(e.isObject(n)||j(t,"cannot merge mappings; the provided source object is unacceptable"),l=0,c=(i=Object.keys(n)).length;l<c;l+=1)a=i[l],o.call(r,a)||($(r,a,n[a]),s[a]=!0)}function A(e,t,r,n,s,i,a,l,c){var d,u;if(Array.isArray(s))for(d=0,u=(s=Array.prototype.slice.call(s)).length;d<u;d+=1)Array.isArray(s[d])&&j(e,"nested arrays are not supported inside keys"),"object"==typeof s&&"[object Object]"===p(s[d])&&(s[d]="[object Object]");if("object"==typeof s&&"[object Object]"===p(s)&&(s="[object Object]"),s=String(s),null===t&&(t={}),"tag:yaml.org,2002:merge"===n)if(Array.isArray(i))for(d=0,u=i.length;d<u;d+=1)T(e,t,i[d],r);else T(e,t,i,r);else e.json||o.call(r,s)||!o.call(t,s)||(e.line=a||e.line,e.lineStart=l||e.lineStart,e.position=c||e.position,j(e,"duplicated mapping key")),$(t,s,i),delete r[s];return t}function C(e){var t;10===(t=e.input.charCodeAt(e.position))?e.position++:13===t?(e.position++,10===e.input.charCodeAt(e.position)&&e.position++):j(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function I(e,t,r){for(var n=0,o=e.input.charCodeAt(e.position);0!==o;){for(;u(o);)9===o&&-1===e.firstTabInLine&&(e.firstTabInLine=e.position),o=e.input.charCodeAt(++e.position);if(t&&35===o)do{o=e.input.charCodeAt(++e.position)}while(10!==o&&13!==o&&0!==o);if(!d(o))break;for(C(e),o=e.input.charCodeAt(e.position),n++,e.lineIndent=0;32===o;)e.lineIndent++,o=e.input.charCodeAt(++e.position)}return-1!==r&&0!==n&&e.lineIndent<r&&O(e,"deficient indentation"),n}function R(e){var t,r=e.position;return!(45!==(t=e.input.charCodeAt(r))&&46!==t||t!==e.input.charCodeAt(r+1)||t!==e.input.charCodeAt(r+2)||(r+=3,0!==(t=e.input.charCodeAt(r))&&!f(t)))}function N(t,r){1===r?t.result+=" ":r>1&&(t.result+=e.repeat("\n",r-1))}function M(e,t){var r,n,o=e.tag,s=e.anchor,i=[],a=!1;if(-1!==e.firstTabInLine)return!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=i),n=e.input.charCodeAt(e.position);0!==n&&(-1!==e.firstTabInLine&&(e.position=e.firstTabInLine,j(e,"tab characters must not be used in indentation")),45===n)&&f(e.input.charCodeAt(e.position+1));)if(a=!0,e.position++,I(e,!0,-1)&&e.lineIndent<=t)i.push(null),n=e.input.charCodeAt(e.position);else if(r=e.line,U(e,t,3,!1,!0),i.push(e.result),I(e,!0,-1),n=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&0!==n)j(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break;return!!a&&(e.tag=o,e.anchor=s,e.kind="sequence",e.result=i,!0)}function q(e){var t,r,n,s,i=!1,p=!1;if(33!==(s=e.input.charCodeAt(e.position)))return!1;if(null!==e.tag&&j(e,"duplication of a tag property"),60===(s=e.input.charCodeAt(++e.position))?(i=!0,s=e.input.charCodeAt(++e.position)):33===s?(p=!0,r="!!",s=e.input.charCodeAt(++e.position)):r="!",t=e.position,i){do{s=e.input.charCodeAt(++e.position)}while(0!==s&&62!==s);e.position<e.length?(n=e.input.slice(t,e.position),s=e.input.charCodeAt(++e.position)):j(e,"unexpected end of the stream within a verbatim tag")}else{for(;0!==s&&!f(s);)33===s&&(p?j(e,"tag suffix cannot contain exclamation marks"):(r=e.input.slice(t-1,e.position+1),l.test(r)||j(e,"named tag handle cannot contain such characters"),p=!0,t=e.position+1)),s=e.input.charCodeAt(++e.position);n=e.input.slice(t,e.position),a.test(n)&&j(e,"tag suffix cannot contain flow indicator characters")}n&&!c.test(n)&&j(e,"tag name cannot contain such characters: "+n);try{n=decodeURIComponent(n)}catch(d){j(e,"tag name is malformed: "+n)}return i?e.tag=n:o.call(e.tagMap,r)?e.tag=e.tagMap[r]+n:"!"===r?e.tag="!"+n:"!!"===r?e.tag="tag:yaml.org,2002:"+n:j(e,'undeclared tag handle "'+r+'"'),!0}function z(e){var t,r;if(38!==(r=e.input.charCodeAt(e.position)))return!1;for(null!==e.anchor&&j(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;0!==r&&!f(r)&&!h(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&j(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function U(t,r,n,s,i){var a,l,c,p,v,$,_,k,S,O=1,P=!1,T=!1;if(null!==t.listener&&t.listener("open",t),t.tag=null,t.anchor=null,t.kind=null,t.result=null,a=l=c=4===n||3===n,s&&I(t,!0,-1)&&(P=!0,t.lineIndent>r?O=1:t.lineIndent===r?O=0:t.lineIndent<r&&(O=-1)),1===O)for(;q(t)||z(t);)I(t,!0,-1)?(P=!0,c=a,t.lineIndent>r?O=1:t.lineIndent===r?O=0:t.lineIndent<r&&(O=-1)):c=!1;if(c&&(c=P||i),1!==O&&4!==n||(k=1===n||2===n?r:r+1,S=t.position-t.lineStart,1===O?c&&(M(t,S)||function(e,t,r){var n,o,s,i,a,l,c,p=e.tag,d=e.anchor,h={},m=Object.create(null),g=null,y=null,v=null,b=!1,$=!1;if(-1!==e.firstTabInLine)return!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=h),c=e.input.charCodeAt(e.position);0!==c;){if(b||-1===e.firstTabInLine||(e.position=e.firstTabInLine,j(e,"tab characters must not be used in indentation")),n=e.input.charCodeAt(e.position+1),s=e.line,63!==c&&58!==c||!f(n)){if(i=e.line,a=e.lineStart,l=e.position,!U(e,r,2,!1,!0))break;if(e.line===s){for(c=e.input.charCodeAt(e.position);u(c);)c=e.input.charCodeAt(++e.position);if(58===c)f(c=e.input.charCodeAt(++e.position))||j(e,"a whitespace character is expected after the key-value separator within a block mapping"),b&&(A(e,h,m,g,y,null,i,a,l),g=y=v=null),$=!0,b=!1,o=!1,g=e.tag,y=e.result;else{if(!$)return e.tag=p,e.anchor=d,!0;j(e,"can not read an implicit mapping pair; a colon is missed")}}else{if(!$)return e.tag=p,e.anchor=d,!0;j(e,"can not read a block mapping entry; a multiline key may not be an implicit key")}}else 63===c?(b&&(A(e,h,m,g,y,null,i,a,l),g=y=v=null),$=!0,b=!0,o=!0):b?(b=!1,o=!0):j(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,c=n;if((e.line===s||e.lineIndent>t)&&(b&&(i=e.line,a=e.lineStart,l=e.position),U(e,t,4,!0,o)&&(b?y=e.result:v=e.result),b||(A(e,h,m,g,y,v,i,a,l),g=y=v=null),I(e,!0,-1),c=e.input.charCodeAt(e.position)),(e.line===s||e.lineIndent>t)&&0!==c)j(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return b&&A(e,h,m,g,y,null,i,a,l),$&&(e.tag=p,e.anchor=d,e.kind="mapping",e.result=h),$}(t,S,k))||function(e,t){var r,n,o,s,i,a,l,c,p,d,u,h,m=!0,g=e.tag,y=e.anchor,v=Object.create(null);if(91===(h=e.input.charCodeAt(e.position)))i=93,c=!1,s=[];else{if(123!==h)return!1;i=125,c=!0,s={}}for(null!==e.anchor&&(e.anchorMap[e.anchor]=s),h=e.input.charCodeAt(++e.position);0!==h;){if(I(e,!0,t),(h=e.input.charCodeAt(e.position))===i)return e.position++,e.tag=g,e.anchor=y,e.kind=c?"mapping":"sequence",e.result=s,!0;m?44===h&&j(e,"expected the node content, but found ','"):j(e,"missed comma between flow collection entries"),u=null,a=l=!1,63===h&&f(e.input.charCodeAt(e.position+1))&&(a=l=!0,e.position++,I(e,!0,t)),r=e.line,n=e.lineStart,o=e.position,U(e,t,1,!1,!0),d=e.tag,p=e.result,I(e,!0,t),h=e.input.charCodeAt(e.position),!l&&e.line!==r||58!==h||(a=!0,h=e.input.charCodeAt(++e.position),I(e,!0,t),U(e,t,1,!1,!0),u=e.result),c?A(e,s,v,d,p,u,r,n,o):a?s.push(A(e,null,v,d,p,u,r,n,o)):s.push(p),I(e,!0,t),44===(h=e.input.charCodeAt(e.position))?(m=!0,h=e.input.charCodeAt(++e.position)):m=!1}j(e,"unexpected end of the stream within a flow collection")}(t,k)?T=!0:(l&&function(t,r){var n,o,s,i,a=1,l=!1,c=!1,p=r,f=0,h=!1;if(124===(i=t.input.charCodeAt(t.position)))o=!1;else{if(62!==i)return!1;o=!0}for(t.kind="scalar",t.result="";0!==i;)if(43===(i=t.input.charCodeAt(++t.position))||45===i)1===a?a=43===i?3:2:j(t,"repeat of a chomping mode identifier");else{if(!((s=y(i))>=0))break;0===s?j(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):c?j(t,"repeat of an indentation width identifier"):(p=r+s-1,c=!0)}if(u(i)){do{i=t.input.charCodeAt(++t.position)}while(u(i));if(35===i)do{i=t.input.charCodeAt(++t.position)}while(!d(i)&&0!==i)}for(;0!==i;){for(C(t),t.lineIndent=0,i=t.input.charCodeAt(t.position);(!c||t.lineIndent<p)&&32===i;)t.lineIndent++,i=t.input.charCodeAt(++t.position);if(!c&&t.lineIndent>p&&(p=t.lineIndent),d(i))f++;else{if(t.lineIndent<p){3===a?t.result+=e.repeat("\n",l?1+f:f):1===a&&l&&(t.result+="\n");break}for(o?u(i)?(h=!0,t.result+=e.repeat("\n",l?1+f:f)):h?(h=!1,t.result+=e.repeat("\n",f+1)):0===f?l&&(t.result+=" "):t.result+=e.repeat("\n",f):t.result+=e.repeat("\n",l?1+f:f),l=!0,c=!0,f=0,n=t.position;!d(i)&&0!==i;)i=t.input.charCodeAt(++t.position);E(t,n,t.position,!1)}}return!0}(t,k)||function(e,t){var r,n,o;if(39!==(r=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,n=o=e.position;0!==(r=e.input.charCodeAt(e.position));)if(39===r){if(E(e,n,e.position,!0),39!==(r=e.input.charCodeAt(++e.position)))return!0;n=e.position,e.position++,o=e.position}else d(r)?(E(e,n,o,!0),N(e,I(e,!1,t)),n=o=e.position):e.position===e.lineStart&&R(e)?j(e,"unexpected end of the document within a single quoted scalar"):(e.position++,o=e.position);j(e,"unexpected end of the stream within a single quoted scalar")}(t,k)||function(e,t){var r,n,o,s,i,a;if(34!==(a=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,r=n=e.position;0!==(a=e.input.charCodeAt(e.position));){if(34===a)return E(e,r,e.position,!0),e.position++,!0;if(92===a){if(E(e,r,e.position,!0),d(a=e.input.charCodeAt(++e.position)))I(e,!1,t);else if(a<256&&x[a])e.result+=w[a],e.position++;else if((i=g(a))>0){for(o=i,s=0;o>0;o--)(i=m(a=e.input.charCodeAt(++e.position)))>=0?s=(s<<4)+i:j(e,"expected hexadecimal character");e.result+=b(s),e.position++}else j(e,"unknown escape sequence");r=n=e.position}else d(a)?(E(e,r,n,!0),N(e,I(e,!1,t)),r=n=e.position):e.position===e.lineStart&&R(e)?j(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}j(e,"unexpected end of the stream within a double quoted scalar")}(t,k)?T=!0:!function(e){var t,r,n;if(42!==(n=e.input.charCodeAt(e.position)))return!1;for(n=e.input.charCodeAt(++e.position),t=e.position;0!==n&&!f(n)&&!h(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&j(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),o.call(e.anchorMap,r)||j(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],I(e,!0,-1),!0}(t)?function(e,t,r){var n,o,s,i,a,l,c,p,m=e.kind,g=e.result;if(f(p=e.input.charCodeAt(e.position))||h(p)||35===p||38===p||42===p||33===p||124===p||62===p||39===p||34===p||37===p||64===p||96===p)return!1;if((63===p||45===p)&&(f(n=e.input.charCodeAt(e.position+1))||r&&h(n)))return!1;for(e.kind="scalar",e.result="",o=s=e.position,i=!1;0!==p;){if(58===p){if(f(n=e.input.charCodeAt(e.position+1))||r&&h(n))break}else if(35===p){if(f(e.input.charCodeAt(e.position-1)))break}else{if(e.position===e.lineStart&&R(e)||r&&h(p))break;if(d(p)){if(a=e.line,l=e.lineStart,c=e.lineIndent,I(e,!1,-1),e.lineIndent>=t){i=!0,p=e.input.charCodeAt(e.position);continue}e.position=s,e.line=a,e.lineStart=l,e.lineIndent=c;break}}i&&(E(e,o,s,!1),N(e,e.line-a),o=s=e.position,i=!1),u(p)||(s=e.position+1),p=e.input.charCodeAt(++e.position)}return E(e,o,s,!1),!!e.result||(e.kind=m,e.result=g,!1)}(t,k,1===n)&&(T=!0,null===t.tag&&(t.tag="?")):(T=!0,null===t.tag&&null===t.anchor||j(t,"alias node should not have any properties")),null!==t.anchor&&(t.anchorMap[t.anchor]=t.result)):0===O&&(T=c&&M(t,S))),null===t.tag)null!==t.anchor&&(t.anchorMap[t.anchor]=t.result);else if("?"===t.tag){for(null!==t.result&&"scalar"!==t.kind&&j(t,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+t.kind+'"'),p=0,v=t.implicitTypes.length;p<v;p+=1)if((_=t.implicitTypes[p]).resolve(t.result)){t.result=_.construct(t.result),t.tag=_.tag,null!==t.anchor&&(t.anchorMap[t.anchor]=t.result);break}}else if("!"!==t.tag){if(o.call(t.typeMap[t.kind||"fallback"],t.tag))_=t.typeMap[t.kind||"fallback"][t.tag];else for(_=null,p=0,v=($=t.typeMap.multi[t.kind||"fallback"]).length;p<v;p+=1)if(t.tag.slice(0,$[p].tag.length)===$[p].tag){_=$[p];break}_||j(t,"unknown tag !<"+t.tag+">"),null!==t.result&&_.kind!==t.kind&&j(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+_.kind+'", not "'+t.kind+'"'),_.resolve(t.result,t.tag)?(t.result=_.construct(t.result,t.tag),null!==t.anchor&&(t.anchorMap[t.anchor]=t.result)):j(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")}return null!==t.listener&&t.listener("close",t),null!==t.tag||null!==t.anchor||T}function L(e){var t,r,n,s,a=e.position,l=!1;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);0!==(s=e.input.charCodeAt(e.position))&&(I(e,!0,-1),s=e.input.charCodeAt(e.position),!(e.lineIndent>0||37!==s));){for(l=!0,s=e.input.charCodeAt(++e.position),t=e.position;0!==s&&!f(s);)s=e.input.charCodeAt(++e.position);for(n=[],(r=e.input.slice(t,e.position)).length<1&&j(e,"directive name must not be less than one character in length");0!==s;){for(;u(s);)s=e.input.charCodeAt(++e.position);if(35===s){do{s=e.input.charCodeAt(++e.position)}while(0!==s&&!d(s));break}if(d(s))break;for(t=e.position;0!==s&&!f(s);)s=e.input.charCodeAt(++e.position);n.push(e.input.slice(t,e.position))}0!==s&&C(e),o.call(P,r)?P[r](e,r,n):O(e,'unknown document directive "'+r+'"')}I(e,!0,-1),0===e.lineIndent&&45===e.input.charCodeAt(e.position)&&45===e.input.charCodeAt(e.position+1)&&45===e.input.charCodeAt(e.position+2)?(e.position+=3,I(e,!0,-1)):l&&j(e,"directives end mark is expected"),U(e,e.lineIndent-1,4,!1,!0),I(e,!0,-1),e.checkLineBreaks&&i.test(e.input.slice(a,e.position))&&O(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&R(e)?46===e.input.charCodeAt(e.position)&&(e.position+=3,I(e,!0,-1)):e.position<e.length-1&&j(e,"end of the stream or a document separator is expected")}function D(e,t){t=t||{},0!==(e=String(e)).length&&(10!==e.charCodeAt(e.length-1)&&13!==e.charCodeAt(e.length-1)&&(e+="\n"),65279===e.charCodeAt(0)&&(e=e.slice(1)));var r=new k(e,t),n=e.indexOf("\0");for(-1!==n&&(r.position=n,j(r,"null byte is not allowed in input")),r.input+="\0";32===r.input.charCodeAt(r.position);)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)L(r);return r.documents}return Ua.loadAll=function(e,t,r){null!==t&&"object"==typeof t&&void 0===r&&(r=t,t=null);var n=D(e,r);if("function"!=typeof t)return n;for(var o=0,s=n.length;o<s;o+=1)t(n[o])},Ua.load=function(e,r){var n=D(e,r);if(0!==n.length){if(1===n.length)return n[0];throw new t("expected a single document in the stream, but found more")}},Ua}var cl,pl,dl,ul={};function fl(){if(cl)return ul;cl=1;var e=Da(),t=Ba(),r=al(),n=Object.prototype.toString,o=Object.prototype.hasOwnProperty,s=65279,i={0:"\\0",7:"\\a",8:"\\b",9:"\\t",10:"\\n",11:"\\v",12:"\\f",13:"\\r",27:"\\e",34:'\\"',92:"\\\\",133:"\\N",160:"\\_",8232:"\\L",8233:"\\P"},a=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],l=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function c(r){var n,o,s;if(n=r.toString(16).toUpperCase(),r<=255)o="x",s=2;else if(r<=65535)o="u",s=4;else{if(!(r<=4294967295))throw new t("code point within a string may not be greater than 0xFFFFFFFF");o="U",s=8}return"\\"+o+e.repeat("0",s-n.length)+n}function p(t){this.schema=t.schema||r,this.indent=Math.max(1,t.indent||2),this.noArrayIndent=t.noArrayIndent||!1,this.skipInvalid=t.skipInvalid||!1,this.flowLevel=e.isNothing(t.flowLevel)?-1:t.flowLevel,this.styleMap=function(e,t){var r,n,s,i,a,l,c;if(null===t)return{};for(r={},s=0,i=(n=Object.keys(t)).length;s<i;s+=1)a=n[s],l=String(t[a]),"!!"===a.slice(0,2)&&(a="tag:yaml.org,2002:"+a.slice(2)),(c=e.compiledTypeMap.fallback[a])&&o.call(c.styleAliases,l)&&(l=c.styleAliases[l]),r[a]=l;return r}(this.schema,t.styles||null),this.sortKeys=t.sortKeys||!1,this.lineWidth=t.lineWidth||80,this.noRefs=t.noRefs||!1,this.noCompatMode=t.noCompatMode||!1,this.condenseFlow=t.condenseFlow||!1,this.quotingType='"'===t.quotingType?2:1,this.forceQuotes=t.forceQuotes||!1,this.replacer="function"==typeof t.replacer?t.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function d(t,r){for(var n,o=e.repeat(" ",r),s=0,i=-1,a="",l=t.length;s<l;)-1===(i=t.indexOf("\n",s))?(n=t.slice(s),s=l):(n=t.slice(s,i+1),s=i+1),n.length&&"\n"!==n&&(a+=o),a+=n;return a}function u(t,r){return"\n"+e.repeat(" ",t.indent*r)}function f(e){return 32===e||9===e}function h(e){return 32<=e&&e<=126||161<=e&&e<=55295&&8232!==e&&8233!==e||57344<=e&&e<=65533&&e!==s||65536<=e&&e<=1114111}function m(e){return h(e)&&e!==s&&13!==e&&10!==e}function g(e,t,r){var n=m(e),o=n&&!f(e);return(r?n:n&&44!==e&&91!==e&&93!==e&&123!==e&&125!==e)&&35!==e&&!(58===t&&!o)||m(t)&&!f(t)&&35===e||58===t&&o}function y(e,t){var r,n=e.charCodeAt(t);return n>=55296&&n<=56319&&t+1<e.length&&(r=e.charCodeAt(t+1))>=56320&&r<=57343?1024*(n-55296)+r-56320+65536:n}function v(e){return/^\n* /.test(e)}function b(e,t,r,n,o,i,a,l){var c,p,d=0,u=null,m=!1,b=!1,$=-1!==n,x=-1,w=h(p=y(e,0))&&p!==s&&!f(p)&&45!==p&&63!==p&&58!==p&&44!==p&&91!==p&&93!==p&&123!==p&&125!==p&&35!==p&&38!==p&&42!==p&&33!==p&&124!==p&&61!==p&&62!==p&&39!==p&&34!==p&&37!==p&&64!==p&&96!==p&&function(e){return!f(e)&&58!==e}(y(e,e.length-1));if(t||a)for(c=0;c<e.length;d>=65536?c+=2:c++){if(!h(d=y(e,c)))return 5;w=w&&g(d,u,l),u=d}else{for(c=0;c<e.length;d>=65536?c+=2:c++){if(10===(d=y(e,c)))m=!0,$&&(b=b||c-x-1>n&&" "!==e[x+1],x=c);else if(!h(d))return 5;w=w&&g(d,u,l),u=d}b=b||$&&c-x-1>n&&" "!==e[x+1]}return m||b?r>9&&v(e)?5:a?2===i?5:2:b?4:3:!w||a||o(e)?2===i?5:2:1}function $(e,r,n,o,s){e.dump=function(){if(0===r.length)return 2===e.quotingType?'""':"''";if(!e.noCompatMode&&(-1!==a.indexOf(r)||l.test(r)))return 2===e.quotingType?'"'+r+'"':"'"+r+"'";var p=e.indent*Math.max(1,n),u=-1===e.lineWidth?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-p),f=o||e.flowLevel>-1&&n>=e.flowLevel;switch(b(r,f,e.indent,u,function(t){return function(e,t){var r,n;for(r=0,n=e.implicitTypes.length;r<n;r+=1)if(e.implicitTypes[r].resolve(t))return!0;return!1}(e,t)},e.quotingType,e.forceQuotes&&!o,s)){case 1:return r;case 2:return"'"+r.replace(/'/g,"''")+"'";case 3:return"|"+x(r,e.indent)+w(d(r,p));case 4:return">"+x(r,e.indent)+w(d(function(e,t){var r,n,o=/(\n+)([^\n]*)/g,s=(a=e.indexOf("\n"),a=-1!==a?a:e.length,o.lastIndex=a,_(e.slice(0,a),t)),i="\n"===e[0]||" "===e[0];var a;for(;n=o.exec(e);){var l=n[1],c=n[2];r=" "===c[0],s+=l+(i||r||""===c?"":"\n")+_(c,t),i=r}return s}(r,u),p));case 5:return'"'+function(e){for(var t,r="",n=0,o=0;o<e.length;n>=65536?o+=2:o++)n=y(e,o),!(t=i[n])&&h(n)?(r+=e[o],n>=65536&&(r+=e[o+1])):r+=t||c(n);return r}(r)+'"';default:throw new t("impossible error: invalid scalar style")}}()}function x(e,t){var r=v(e)?String(t):"",n="\n"===e[e.length-1];return r+(n&&("\n"===e[e.length-2]||"\n"===e)?"+":n?"":"-")+"\n"}function w(e){return"\n"===e[e.length-1]?e.slice(0,-1):e}function _(e,t){if(""===e||" "===e[0])return e;for(var r,n,o=/ [^ ]/g,s=0,i=0,a=0,l="";r=o.exec(e);)(a=r.index)-s>t&&(n=i>s?i:a,l+="\n"+e.slice(s,n),s=n+1),i=a;return l+="\n",e.length-s>t&&i>s?l+=e.slice(s,i)+"\n"+e.slice(i+1):l+=e.slice(s),l.slice(1)}function k(e,t,r,n){var o,s,i,a="",l=e.tag;for(o=0,s=r.length;o<s;o+=1)i=r[o],e.replacer&&(i=e.replacer.call(r,String(o),i)),(j(e,t+1,i,!0,!0,!1,!0)||void 0===i&&j(e,t+1,null,!0,!0,!1,!0))&&(n&&""===a||(a+=u(e,t)),e.dump&&10===e.dump.charCodeAt(0)?a+="-":a+="- ",a+=e.dump);e.tag=l,e.dump=a||"[]"}function S(e,r,s){var i,a,l,c,p,d;for(l=0,c=(a=s?e.explicitTypes:e.implicitTypes).length;l<c;l+=1)if(((p=a[l]).instanceOf||p.predicate)&&(!p.instanceOf||"object"==typeof r&&r instanceof p.instanceOf)&&(!p.predicate||p.predicate(r))){if(s?p.multi&&p.representName?e.tag=p.representName(r):e.tag=p.tag:e.tag="?",p.represent){if(d=e.styleMap[p.tag]||p.defaultStyle,"[object Function]"===n.call(p.represent))i=p.represent(r,d);else{if(!o.call(p.represent,d))throw new t("!<"+p.tag+'> tag resolver accepts not "'+d+'" style');i=p.represent[d](r,d)}e.dump=i}return!0}return!1}function j(e,r,o,s,i,a,l){e.tag=null,e.dump=o,S(e,o,!1)||S(e,o,!0);var c,p=n.call(e.dump),d=s;s&&(s=e.flowLevel<0||e.flowLevel>r);var f,h,m="[object Object]"===p||"[object Array]"===p;if(m&&(h=-1!==(f=e.duplicates.indexOf(o))),(null!==e.tag&&"?"!==e.tag||h||2!==e.indent&&r>0)&&(i=!1),h&&e.usedDuplicates[f])e.dump="*ref_"+f;else{if(m&&h&&!e.usedDuplicates[f]&&(e.usedDuplicates[f]=!0),"[object Object]"===p)s&&0!==Object.keys(e.dump).length?(!function(e,r,n,o){var s,i,a,l,c,p,d="",f=e.tag,h=Object.keys(n);if(!0===e.sortKeys)h.sort();else if("function"==typeof e.sortKeys)h.sort(e.sortKeys);else if(e.sortKeys)throw new t("sortKeys must be a boolean or a function");for(s=0,i=h.length;s<i;s+=1)p="",o&&""===d||(p+=u(e,r)),l=n[a=h[s]],e.replacer&&(l=e.replacer.call(n,a,l)),j(e,r+1,a,!0,!0,!0)&&((c=null!==e.tag&&"?"!==e.tag||e.dump&&e.dump.length>1024)&&(e.dump&&10===e.dump.charCodeAt(0)?p+="?":p+="? "),p+=e.dump,c&&(p+=u(e,r)),j(e,r+1,l,!0,c)&&(e.dump&&10===e.dump.charCodeAt(0)?p+=":":p+=": ",d+=p+=e.dump));e.tag=f,e.dump=d||"{}"}(e,r,e.dump,i),h&&(e.dump="&ref_"+f+e.dump)):(!function(e,t,r){var n,o,s,i,a,l="",c=e.tag,p=Object.keys(r);for(n=0,o=p.length;n<o;n+=1)a="",""!==l&&(a+=", "),e.condenseFlow&&(a+='"'),i=r[s=p[n]],e.replacer&&(i=e.replacer.call(r,s,i)),j(e,t,s,!1,!1)&&(e.dump.length>1024&&(a+="? "),a+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),j(e,t,i,!1,!1)&&(l+=a+=e.dump));e.tag=c,e.dump="{"+l+"}"}(e,r,e.dump),h&&(e.dump="&ref_"+f+" "+e.dump));else if("[object Array]"===p)s&&0!==e.dump.length?(e.noArrayIndent&&!l&&r>0?k(e,r-1,e.dump,i):k(e,r,e.dump,i),h&&(e.dump="&ref_"+f+e.dump)):(!function(e,t,r){var n,o,s,i="",a=e.tag;for(n=0,o=r.length;n<o;n+=1)s=r[n],e.replacer&&(s=e.replacer.call(r,String(n),s)),(j(e,t,s,!1,!1)||void 0===s&&j(e,t,null,!1,!1))&&(""!==i&&(i+=","+(e.condenseFlow?"":" ")),i+=e.dump);e.tag=a,e.dump="["+i+"]"}(e,r,e.dump),h&&(e.dump="&ref_"+f+" "+e.dump));else{if("[object String]"!==p){if("[object Undefined]"===p)return!1;if(e.skipInvalid)return!1;throw new t("unacceptable kind of an object to dump "+p)}"?"!==e.tag&&$(e,e.dump,r,a,d)}null!==e.tag&&"?"!==e.tag&&(c=encodeURI("!"===e.tag[0]?e.tag.slice(1):e.tag).replace(/!/g,"%21"),c="!"===e.tag[0]?"!"+c:"tag:yaml.org,2002:"===c.slice(0,18)?"!!"+c.slice(18):"!<"+c+">",e.dump=c+" "+e.dump)}return!0}function O(e,t){var r,n,o=[],s=[];for(P(e,o,s),r=0,n=s.length;r<n;r+=1)t.duplicates.push(o[s[r]]);t.usedDuplicates=new Array(n)}function P(e,t,r){var n,o,s;if(null!==e&&"object"==typeof e)if(-1!==(o=t.indexOf(e)))-1===r.indexOf(o)&&r.push(o);else if(t.push(e),Array.isArray(e))for(o=0,s=e.length;o<s;o+=1)P(e[o],t,r);else for(o=0,s=(n=Object.keys(e)).length;o<s;o+=1)P(e[n[o]],t,r)}return ul.dump=function(e,t){var r=new p(t=t||{});r.noRefs||O(e,r);var n=e;return r.replacer&&(n=r.replacer.call({"":n},"",n)),j(r,0,n,!0,!0)?r.dump+"\n":""},ul}function hl(){if(pl)return za;pl=1;var e=ll(),t=fl();function r(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}return za.Type=Ha(),za.Schema=Fa(),za.FAILSAFE_SCHEMA=Ga(),za.JSON_SCHEMA=Xa(),za.CORE_SCHEMA=el(),za.DEFAULT_SCHEMA=al(),za.load=e.load,za.loadAll=e.loadAll,za.dump=t.dump,za.YAMLException=Ba(),za.types={binary:nl(),float:Ya(),map:Wa(),null:Ka(),pairs:sl(),set:il(),timestamp:tl(),bool:Za(),int:Qa(),merge:rl(),omap:ol(),seq:Ja(),str:Va()},za.safeLoad=r("safeLoad","load"),za.safeLoadAll=r("safeLoadAll","loadAll"),za.safeDump=r("safeDump","dump"),za}var ml,gl={};var yl,vl={};var bl={};const $l=i(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var xl;var wl,_l,kl,Sl={};function jl(){if(wl)return Sl;wl=1;var e=Sl&&Sl.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),t=Sl&&Sl.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=Sl&&Sl.__importStar||function(r){if(r&&r.__esModule)return r;var n={};if(null!=r)for(var o in r)"default"!==o&&Object.prototype.hasOwnProperty.call(r,o)&&e(n,r,o);return t(n,r),n};Object.defineProperty(Sl,"__esModule",{value:!0});const n=rt,o=r(Ei()),s=Ni();async function i(e,t,r){e=o.parse(e);const a=r||[];a.push(e.href);try{const r=await async function(e,t){let r,n;t.timeout&&(r=new AbortController,n=setTimeout(()=>r.abort(),t.timeout));const o=await fetch(e,{method:"GET",headers:t.headers||{},credentials:t.withCredentials?"include":"same-origin",signal:r?r.signal:null});n&&clearTimeout(n);return o}(e,t);if(r.status>=400)throw(0,n.ono)({status:r.status},`HTTP ERROR ${r.status}`);if(r.status>=300){if(!Number.isNaN(t.redirects)&&a.length>t.redirects)throw new s.ResolverError((0,n.ono)({status:r.status},`Error downloading ${a[0]}. \nToo many redirects: \n ${a.join(" \n ")}`));if("location"in r.headers&&r.headers.location){return i(o.resolve(e.href,r.headers.location),t,a)}throw(0,n.ono)({status:r.status},`HTTP ${r.status} redirect with no location header`)}if(r.body){const e=await r.arrayBuffer();return Buffer.from(e)}return Buffer.alloc(0)}catch(l){throw new s.ResolverError((0,n.ono)(l,`Error downloading ${e.href}`),e.href)}}return Sl.default={order:200,headers:null,timeout:6e4,redirects:5,withCredentials:!1,canRead:e=>o.isHttp(e.url),read(e){const t=o.parse(e.url);return"undefined"==typeof window||t.protocol||(t.protocol=o.parse(location.href).protocol),i(t,this)}},Sl}function Ol(){return _l||(_l=1,function(e){var t=Vi&&Vi.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.getNewOptions=e.getJsonSchemaRefParserDefaultOptions=void 0;const r=t(function(){if(Hi)return Ji;Hi=1,Object.defineProperty(Ji,"__esModule",{value:!0});const e=Ni();return Ji.default={order:100,allowEmpty:!0,canParse:".json",allowBOM:!0,async parse(t){let r=t.data;if(Buffer.isBuffer(r)&&(r=r.toString()),"string"!=typeof r)return r;if(0!==r.trim().length)try{return JSON.parse(r)}catch(cd){if(this.allowBOM)try{const e=r.indexOf("{");return r=r.slice(e),JSON.parse(r)}catch(n){throw new e.ParserError(n.message,t.url)}throw new e.ParserError(cd.message,t.url)}}},Ji}()),n=t(function(){if(dl)return qa;dl=1;var e=qa&&qa.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(qa,"__esModule",{value:!0});const t=Ni(),r=e(hl()),n=hl();return qa.default={order:200,allowEmpty:!0,canParse:[".yaml",".yml",".json"],async parse(e){let o=e.data;if(Buffer.isBuffer(o)&&(o=o.toString()),"string"!=typeof o)return o;try{return r.default.load(o,{schema:n.JSON_SCHEMA})}catch(cd){throw new t.ParserError((null==cd?void 0:cd.message)||"Parser Error",e.url)}}},qa}()),o=t(function(){if(ml)return gl;ml=1,Object.defineProperty(gl,"__esModule",{value:!0});const e=Ni(),t=/\.(txt|htm|html|md|xml|js|min|map|css|scss|less|svg)$/i;return gl.default={order:300,allowEmpty:!0,encoding:"utf8",canParse:e=>("string"==typeof e.data||Buffer.isBuffer(e.data))&&t.test(e.url),parse(t){if("string"==typeof t.data)return t.data;if(Buffer.isBuffer(t.data))return t.data.toString(this.encoding);throw new e.ParserError("data is not text",t.url)}},gl}()),s=t(function(){if(yl)return vl;yl=1,Object.defineProperty(vl,"__esModule",{value:!0});const e=/\.(jpeg|jpg|gif|png|bmp|ico)$/i;return vl.default={order:400,allowEmpty:!0,canParse:t=>Buffer.isBuffer(t.data)&&e.test(t.url),parse:e=>Buffer.isBuffer(e.data)?e.data:Buffer.from(e.data)},vl}()),i=t(function(){if(xl)return bl;xl=1;var e=bl&&bl.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),t=bl&&bl.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=bl&&bl.__importStar||function(r){if(r&&r.__esModule)return r;var n={};if(null!=r)for(var o in r)"default"!==o&&Object.prototype.hasOwnProperty.call(r,o)&&e(n,r,o);return t(n,r),n},n=bl&&bl.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(bl,"__esModule",{value:!0});const o=n($l),s=rt,i=r(Ei()),a=Ni();return bl.default={order:100,canRead:e=>i.isFileSystemPath(e.url),async read(e){let t;try{t=i.toFileSystemPath(e.url)}catch(r){throw new a.ResolverError(s.ono.uri(r,`Malformed URI: ${e.url}`),e.url)}try{return await o.default.promises.readFile(t)}catch(r){throw new a.ResolverError((0,s.ono)(r,`Error opening file "${t}"`),t)}}},bl}()),a=t(jl());e.getJsonSchemaRefParserDefaultOptions=()=>({parse:{json:{...r.default},yaml:{...n.default},text:{...o.default},binary:{...s.default}},resolve:{file:{...i.default},http:{...a.default},external:!0},continueOnError:!1,dereference:{circular:!0,excludedPathMatcher:()=>!1,referenceResolution:"relative"},mutateInputSchema:!0});function l(e,t){if(c(t)){const r=Object.keys(t).filter(e=>!["__proto__","constructor","prototype"].includes(e));for(let n=0;n<r.length;n++){const o=r[n],s=t[o],i=e[o];c(s)?e[o]=l(i||{},s):void 0!==s&&(e[o]=s)}}return e}function c(e){return e&&"object"==typeof e&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}e.getNewOptions=t=>{const r=(0,e.getJsonSchemaRefParserDefaultOptions)();return t&&l(r,t),r}}(Vi)),Vi}var Pl,El={};function Tl(){if(Pl)return El;Pl=1;var e=El&&El.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),t=El&&El.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=El&&El.__importStar||function(r){if(r&&r.__esModule)return r;var n={};if(null!=r)for(var o in r)"default"!==o&&Object.prototype.hasOwnProperty.call(r,o)&&e(n,r,o);return t(n,r),n},n=El&&El.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(El,"__esModule",{value:!0});const o=n(qi()),s=n(Mi()),i=n(Bi()),a=r(Ei()),l=Ni();function c(e,t,r,n,p,d){p||(p=new Set);let u=[];if(e&&"object"==typeof e&&!ArrayBuffer.isView(e)&&!p.has(e)){p.add(e),o.default.isExternal$Ref(e)&&u.push(async function(e,t,r,n){var o;const s="root"===(null==(o=n.dereference)?void 0:o.externalReferenceResolution),p=a.resolve(s?a.cwd():t,e.$ref),d=a.stripHash(p),u=r._$refs[d];if(u)return Promise.resolve(u.value);try{const e=c(await(0,i.default)(p,r,n),d+"#",r,n,new Set,!0);return Promise.all(e)}catch(f){if(!(null==n?void 0:n.continueOnError)||!(0,l.isHandledError)(f))throw f;return r._$refs[d]&&(f.source=decodeURI(a.stripHash(t)),f.path=a.safePointerToPath(a.getHash(t))),[]}}(e,t,r,n));const d=Object.keys(e);for(const o of d){const i=s.default.join(t,o),a=e[o];u=u.concat(c(a,i,r,n,p))}}return u}return El.default=function(e,t){var r;if(!(null==(r=t.resolve)?void 0:r.external))return Promise.resolve();try{const r=c(e.schema,e.$refs._root$Ref.path+"#",e.$refs,t);return Promise.all(r)}catch(cd){return Promise.reject(cd)}},El}var Al,Cl={};function Il(){if(Al)return Cl;Al=1;var e=Cl&&Cl.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),t=Cl&&Cl.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=Cl&&Cl.__importStar||function(r){if(r&&r.__esModule)return r;var n={};if(null!=r)for(var o in r)"default"!==o&&Object.prototype.hasOwnProperty.call(r,o)&&e(n,r,o);return t(n,r),n},n=Cl&&Cl.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Cl,"__esModule",{value:!0});const o=n(qi()),s=n(Mi()),i=r(Ei());function a(e,t,r,n,i,c,p,d){const u=null===t?e:e[t];if(u&&"object"==typeof u&&!ArrayBuffer.isView(u))if(o.default.isAllowed$Ref(u))l(e,t,r,n,i,c,p,d);else{const e=Object.keys(u).sort((e,t)=>"definitions"===e?-1:"definitions"===t?1:e.length-t.length);for(const t of e){const e=s.default.join(r,t),f=s.default.join(n,t),h=u[t];o.default.isAllowed$Ref(h)?l(u,t,r,f,i,c,p,d):a(u,t,e,f,i,c,p,d)}}}function l(e,t,r,n,l,c,p,d){const u=null===t?e:e[t],f=i.resolve(r,u.$ref),h=p._resolve(f,n,d);if(null===h)return;const m=s.default.parse(n).length,g=i.stripHash(h.path),y=i.getHash(h.path),v=g!==p._root$Ref.path,b=o.default.isExtended$Ref(u);l+=h.indirections;const $=function(e,t,r){for(const n of e)if(n&&n.parent===t&&n.key===r)return n;return}(c,e,t);if($){if(!(m<$.depth||l<$.indirections))return;!function(e,t){const r=e.indexOf(t);e.splice(r,1)}(c,$)}c.push({$ref:u,parent:e,key:t,pathFromRoot:n,depth:m,file:g,hash:y,value:h.value,circular:h.circular,extended:b,external:v,indirections:l}),$&&!v||a(h.value,null,h.path,n,l+1,c,p,d)}return Cl.default=function(e,t){const r=[];a(e,"schema",e.$refs._root$Ref.path+"#","#",0,r,e.$refs,t),function(e){let t,r,n;e.sort((e,t)=>{if(e.file!==t.file)return e.file<t.file?-1:1;if(e.hash!==t.hash)return e.hash<t.hash?-1:1;if(e.circular!==t.circular)return e.circular?-1:1;if(e.extended!==t.extended)return e.extended?1:-1;if(e.indirections!==t.indirections)return e.indirections-t.indirections;if(e.depth!==t.depth)return e.depth-t.depth;{const r=e.pathFromRoot.lastIndexOf("/definitions"),n=t.pathFromRoot.lastIndexOf("/definitions");return r!==n?n-r:e.pathFromRoot.length-t.pathFromRoot.length}});for(const i of e)i.external?i.file===t&&i.hash===r?i.$ref.$ref=n:i.file===t&&0===i.hash.indexOf(r+"/")?i.$ref.$ref=s.default.join(n,s.default.parse(i.hash.replace(r,"#"))):(t=i.file,r=i.hash,n=i.pathFromRoot,i.$ref=i.parent[i.key]=o.default.dereference(i.$ref,i.value),i.circular&&(i.$ref.$ref=i.pathFromRoot)):i.$ref.$ref=i.hash}(r)},Cl}var Rl,Nl={};var Ml,ql,zl,Ul,Ll,Dl,Bl,Hl,Fl,Vl,Jl,Wl={},Gl={};function Kl(){if(ql)return Wl;ql=1;var e=Wl&&Wl.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Wl,"__esModule",{value:!0}),Wl.default=function(e,r){return e?void r.then(function(r){(0,t.default)(function(){e(null,r)})},function(r){(0,t.default)(function(){e(r)})}):r};const t=e((Ml||(Ml=1,Object.defineProperty(Gl,"__esModule",{value:!0}),Gl.default="object"==typeof process&&"function"==typeof process.nextTick?process.nextTick:"function"==typeof setImmediate?setImmediate:function(e){setTimeout(e,0)}),Gl));return Wl}function Zl(){return zl||(zl=1,function(e){var t=ci&&ci.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),r=ci&&ci.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=ci&&ci.__importStar||function(e){if(e&&e.__esModule)return e;var n={};if(null!=e)for(var o in e)"default"!==o&&Object.prototype.hasOwnProperty.call(e,o)&&t(n,e,o);return r(n,e),n},o=ci&&ci.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.getJsonSchemaRefParserDefaultOptions=e.jsonSchemaParserNormalizeArgs=e.dereferenceInternal=e.JSONParserErrorGroup=e.isHandledError=e.UnmatchedParserError=e.ParserError=e.ResolverError=e.MissingPointerError=e.InvalidPointerError=e.JSONParserError=e.UnmatchedResolverError=e.dereference=e.bundle=e.resolve=e.parse=e.$RefParser=void 0;const s=o(function(){if(Ii)return pi;Ii=1;var e=pi&&pi.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),t=pi&&pi.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=pi&&pi.__importStar||function(r){if(r&&r.__esModule)return r;var n={};if(null!=r)for(var o in r)"default"!==o&&Object.prototype.hasOwnProperty.call(r,o)&&e(n,r,o);return t(n,r),n},n=pi&&pi.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(pi,"__esModule",{value:!0});const o=rt,s=n(qi()),i=r(Ei()),a=n(Si());function l(e,t){let r=Object.keys(e);return(t=Array.isArray(t[0])?t[0]:Array.prototype.slice.call(t)).length>0&&t[0]&&(r=r.filter(r=>t.includes(e[r].pathType))),r.map(t=>({encoded:t,decoded:"file"===e[t].pathType?i.toFileSystemPath(t,!0):t}))}return pi.default=class{paths(...e){return l(this._$refs,e.flat()).map(e=>(0,a.default)(e.decoded))}values(...e){const t=this._$refs;return l(t,e.flat()).reduce((e,r)=>(e[(0,a.default)(r.decoded)]=t[r.encoded].value,e),{})}exists(e,t){try{return this._resolve(e,"",t),!0}catch{return!1}}get(e,t){return this._resolve(e,"",t).value}set(e,t){const r=i.resolve(this._root$Ref.path,e),n=i.stripHash(r),s=this._$refs[n];if(!s)throw(0,o.ono)(`Error resolving $ref pointer "${e}". \n"${n}" not found.`);s.set(r,t)}_get$Ref(e){e=i.resolve(this._root$Ref.path,e);const t=i.stripHash(e);return this._$refs[t]}_add(e){const t=i.stripHash(e),r=new s.default(this);return r.path=t,this._$refs[t]=r,this._root$Ref=this._root$Ref||r,r}_resolve(e,t,r){const n=i.resolve(this._root$Ref.path,e),s=i.stripHash(n),a=this._$refs[s];if(!a)throw(0,o.ono)(`Error resolving $ref pointer "${e}". \n"${s}" not found.`);return a.resolve(n,r,e,t)}constructor(){this._$refs={},this.toJSON=this.values,this.circular=!1,this._$refs={},this._root$Ref=null}},pi}()),i=o(Bi()),a=o(function(){if(kl)return Fi;kl=1,Object.defineProperty(Fi,"__esModule",{value:!0}),Fi.normalizeArgs=t;const e=Ol();function t(t){let r,n,o,s;const i=Array.prototype.slice.call(t);"function"==typeof i[i.length-1]&&(s=i.pop()),"string"==typeof i[0]?(r=i[0],"object"==typeof i[2]?(n=i[1],o=i[2]):(n=void 0,o=i[1])):(r="",n=i[0],o=i[1]);try{o=(0,e.getNewOptions)(o)}catch(cd){console.error(`JSON Schema Ref Parser: Error normalizing options: ${cd}`)}return o.mutateInputSchema||"object"!=typeof n||(n=JSON.parse(JSON.stringify(n))),{path:r,schema:n,options:o,callback:s}}return Fi.default=t,Fi}());e.jsonSchemaParserNormalizeArgs=a.default;const l=o(Tl()),c=o(Il()),p=o(function(){if(Rl)return Nl;Rl=1;var e=Nl&&Nl.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),t=Nl&&Nl.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=Nl&&Nl.__importStar||function(r){if(r&&r.__esModule)return r;var n={};if(null!=r)for(var o in r)"default"!==o&&Object.prototype.hasOwnProperty.call(r,o)&&e(n,r,o);return t(n,r),n},n=Nl&&Nl.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Nl,"__esModule",{value:!0});const o=n(qi()),s=n(Mi()),i=rt,a=r(Ei()),l=Ni();function c(e,t,r,n,i,a,u,f,h){var m;let g;const y={value:e,circular:!1};if(f&&f.timeoutMs&&Date.now()-h>f.timeoutMs)throw new l.TimeoutError(f.timeoutMs);const v=f.dereference||{},b=v.excludedPathMatcher||(()=>!1);if(("ignore"===(null==v?void 0:v.circular)||!i.has(e))&&e&&"object"==typeof e&&!ArrayBuffer.isView(e)&&!b(r)){if(n.add(e),i.add(e),o.default.isAllowed$Ref(e,f))g=p(e,t,r,n,i,a,u,f,h),y.circular=g.circular,y.value=g.value;else for(const l of Object.keys(e)){const $=s.default.join(t,l),x=s.default.join(r,l);if(b(x))continue;const w=e[l];let _=!1;o.default.isAllowed$Ref(w,f)?(g=p(w,$,x,n,i,a,u,f,h),_=g.circular,e[l]!==g.value&&(e[l]=g.value,null==(m=null==v?void 0:v.onDereference)||m.call(v,w.$ref,e[l],e,l))):n.has(w)?_=d($,u,f):(g=c(w,$,x,n,i,a,u,f,h),_=g.circular,e[l]!==g.value&&(e[l]=g.value)),y.circular=y.circular||_}n.delete(e)}return y}function p(e,t,r,n,s,i,l,p,u){var f,h;const m=o.default.isExternal$Ref(e)&&"root"===(null==(f=null==p?void 0:p.dereference)?void 0:f.externalReferenceResolution),g=a.resolve(m?a.cwd():t,e.$ref),y=i.get(g);if(y&&!y.circular){const t=Object.keys(e);if(t.length>1){const r={};for(const n of t)"$ref"===n||n in y.value||(r[n]=e[n]);return{circular:y.circular,value:Object.assign({},y.value,r)}}return y}const v=l._resolve(g,t,p);if(null===v)return{circular:!1,value:null};const b=v.circular;let $=b||n.has(v.value);$&&d(t,l,p);let x=o.default.dereference(e,v.value);if(!$){const e=c(x,v.path,r,n,s,i,l,p,u);$=e.circular,x=e.value}$&&!b&&"ignore"===(null==(h=p.dereference)?void 0:h.circular)&&(x=e),b&&(x.$ref=r);const w={circular:$,value:x};return 1===Object.keys(e).length&&i.set(g,w),w}function d(e,t,r){if(t.circular=!0,!r.dereference.circular)throw i.ono.reference(`Circular $ref pointer found at ${e}`);return!0}return Nl.default=function(e,t){const r=Date.now(),n=c(e.schema,e.$refs._root$Ref.path,"#",new Set,new Set,new Map,e.$refs,t,r);e.$refs.circular=n.circular,e.schema=n.value},Nl}());e.dereferenceInternal=p.default;const d=n(Ei()),u=Ni();Object.defineProperty(e,"JSONParserError",{enumerable:!0,get:function(){return u.JSONParserError}}),Object.defineProperty(e,"InvalidPointerError",{enumerable:!0,get:function(){return u.InvalidPointerError}}),Object.defineProperty(e,"MissingPointerError",{enumerable:!0,get:function(){return u.MissingPointerError}}),Object.defineProperty(e,"ResolverError",{enumerable:!0,get:function(){return u.ResolverError}}),Object.defineProperty(e,"ParserError",{enumerable:!0,get:function(){return u.ParserError}}),Object.defineProperty(e,"UnmatchedParserError",{enumerable:!0,get:function(){return u.UnmatchedParserError}}),Object.defineProperty(e,"UnmatchedResolverError",{enumerable:!0,get:function(){return u.UnmatchedResolverError}}),Object.defineProperty(e,"isHandledError",{enumerable:!0,get:function(){return u.isHandledError}}),Object.defineProperty(e,"JSONParserErrorGroup",{enumerable:!0,get:function(){return u.JSONParserErrorGroup}});const f=rt,h=o(Kl()),m=Ol();Object.defineProperty(e,"getJsonSchemaRefParserDefaultOptions",{enumerable:!0,get:function(){return m.getJsonSchemaRefParserDefaultOptions}});class g{constructor(){this.schema=null,this.$refs=new s.default}async parse(){const e=(0,a.default)(arguments);let t;if(!e.path&&!e.schema){const t=(0,f.ono)(`Expected a file path, URL, or object. Got ${e.path||e.schema}`);return(0,h.default)(e.callback,Promise.reject(t))}this.schema=null,this.$refs=new s.default;let r="http";if(d.isFileSystemPath(e.path))e.path=d.fromFileSystemPath(e.path),r="file";else if(!e.path&&e.schema&&"$id"in e.schema&&e.schema.$id){const t=d.parse(e.schema.$id),r="https:"===t.protocol?443:80;e.path=`${t.protocol}//${t.hostname}:${r}`}if(e.path=d.resolve(d.cwd(),e.path),e.schema&&"object"==typeof e.schema){const n=this.$refs._add(e.path);n.value=e.schema,n.pathType=r,t=Promise.resolve(e.schema)}else t=(0,i.default)(e.path,this.$refs,e.options);try{const r=await t;if(null===r||"object"!=typeof r||Buffer.isBuffer(r)){if(e.options.continueOnError)return this.schema=null,(0,h.default)(e.callback,Promise.resolve(this.schema));throw f.ono.syntax(`"${this.$refs._root$Ref.path||r}" is not a valid JSON Schema`)}return this.schema=r,(0,h.default)(e.callback,Promise.resolve(this.schema))}catch(n){return e.options.continueOnError&&(0,u.isHandledError)(n)?(this.$refs._$refs[d.stripHash(e.path)]&&this.$refs._$refs[d.stripHash(e.path)].addError(n),(0,h.default)(e.callback,Promise.resolve(null))):(0,h.default)(e.callback,Promise.reject(n))}}static parse(){const e=new g;return e.parse.apply(e,arguments)}async resolve(){const e=(0,a.default)(arguments);try{return await this.parse(e.path,e.schema,e.options),await(0,l.default)(this,e.options),y(this),(0,h.default)(e.callback,Promise.resolve(this.$refs))}catch(t){return(0,h.default)(e.callback,Promise.reject(t))}}static resolve(){const e=new g;return e.resolve.apply(e,arguments)}static bundle(){const e=new g;return e.bundle.apply(e,arguments)}async bundle(){const e=(0,a.default)(arguments);try{return await this.resolve(e.path,e.schema,e.options),(0,c.default)(this,e.options),y(this),(0,h.default)(e.callback,Promise.resolve(this.schema))}catch(t){return(0,h.default)(e.callback,Promise.reject(t))}}static dereference(){const e=new g;return e.dereference.apply(e,arguments)}async dereference(){const e=(0,a.default)(arguments);try{return await this.resolve(e.path,e.schema,e.options),(0,p.default)(this,e.options),y(this),(0,h.default)(e.callback,Promise.resolve(this.schema))}catch(t){return(0,h.default)(e.callback,Promise.reject(t))}}}function y(e){if(u.JSONParserErrorGroup.getParserErrors(e).length>0)throw new u.JSONParserErrorGroup(e)}e.$RefParser=g,e.default=g,e.parse=g.parse,e.resolve=g.resolve,e.bundle=g.bundle,e.dereference=g.dereference}(ci)),ci}function Ql(){if(Fl)return Hl;Fl=1;var e=Bl?Dl:(Bl=1,Dl="object"==typeof process&&"function"==typeof process.nextTick?process.nextTick:"function"==typeof setImmediate?setImmediate:function(e){setTimeout(e,0)});return Hl=function(t,r){return t?void r.then(function(r){e(function(){t(null,r)})},function(r){e(function(){t(r)})}):r}}var Yl=function(){if(Jl)return Vl;Jl=1;const e=ai(),t=li(),{jsonSchemaParserNormalizeArgs:r}=Zl(),n=ze(),o=function(){if(Ll)return Ul;Ll=1;const{getJsonSchemaRefParserDefaultOptions:e}=Zl(),t=ai(),r=li();function n(e,t){if(o(t)){const r=Object.keys(t).filter(e=>!["__proto__","constructor","prototype"].includes(e));for(let s=0;s<r.length;s++){const i=r[s],a=t[i],l=e[i];o(a)?e[i]=n(l||{},a):void 0!==a&&(e[i]=a)}}return e}function o(e){return e&&"object"==typeof e&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function s(t){const r=n(e(),s.defaults);return n(r,t)}return Ul=s,s.defaults={validate:{schema:t,spec:r}},Ul}(),s=Ql(),{ono:i}=rt,{$RefParser:a}=Zl(),{dereferenceInternal:l}=Zl(),c=["3.1.0","3.1.1"],p=[...c,"3.0.0","3.0.1","3.0.2","3.0.3","3.0.4"];class d extends a{async parse(e,t,a,l){let d=r(arguments);d.options=new o(d.options);try{let e=await super.parse(d.path,d.schema,d.options);if(e.swagger){if(void 0===e.swagger||void 0===e.info||void 0===e.paths)throw i.syntax(`${d.path||d.schema} is not a valid Swagger API definition`);if("number"==typeof e.swagger)throw i.syntax('Swagger version number must be a string (e.g. "2.0") not a number.');if("number"==typeof e.info.version)throw i.syntax('API version number must be a string (e.g. "1.0.0") not a number.');if("2.0"!==e.swagger)throw i.syntax(`Unrecognized Swagger version: ${e.swagger}. Expected 2.0`)}else{if(void 0===e.openapi||void 0===e.info)throw i.syntax(`${d.path||d.schema} is not a valid Openapi API definition`);if(void 0===e.paths){if(-1===c.indexOf(e.openapi))throw i.syntax(`${d.path||d.schema} is not a valid Openapi API definition`);if(void 0===e.webhooks)throw i.syntax(`${d.path||d.schema} is not a valid Openapi API definition`)}else{if("number"==typeof e.openapi)throw i.syntax('Openapi version number must be a string (e.g. "3.0.0") not a number.');if("number"==typeof e.info.version)throw i.syntax('API version number must be a string (e.g. "1.0.0") not a number.');if(-1===p.indexOf(e.openapi))throw i.syntax(`Unsupported OpenAPI version: ${e.openapi}. Swagger Parser only supports versions ${p.join(", ")}`)}n.fixOasRelativeServers(e,d.path)}return s(d.callback,Promise.resolve(e))}catch(u){return s(d.callback,Promise.reject(u))}}async validate(n,a,c,p){let d=this,u=r(arguments);u.options=new o(u.options);let f=u.options.dereference.circular;u.options.validate.schema&&(u.options.dereference.circular="ignore");try{if(await this.dereference(u.path,u.schema,u.options),u.options.dereference.circular=f,u.options.validate.schema&&(e(d.api),d.$refs.circular))if(!0===f)l(d,u.options);else if(!1===f)throw i.reference("The API contains circular references");return u.options.validate.spec&&t(d.api),s(u.callback,Promise.resolve(d.schema))}catch(h){return s(u.callback,Promise.reject(h))}}}Object.defineProperty(d.prototype,"api",{configurable:!0,enumerable:!0,get(){return this.schema}});const u=d;return u.validate=(...e)=>(new d).validate(...e),u.dereference=(...e)=>(new d).dereference(...e),u.bundle=(...e)=>(new d).bundle(...e),u.parse=(...e)=>(new d).parse(...e),u.resolve=(...e)=>(new d).resolve(...e),u.default=u,u.SwaggerParser=u,Vl=u}();const Xl=s(Yl),ec=["get","post","put","delete","patch","options","head","trace"];async function tc(e){return function(e){var t;const r=e.info,n=(e.servers??[]).map(rc),o=function(e){const t=[],r=e.components;if(!(null==r?void 0:r.securitySchemes))return t;for(const[n,o]of Object.entries(r.securitySchemes)){const e=o;t.push({key:n,type:e.type,name:e.name,in:e.in,scheme:e.scheme,bearerFormat:e.bearerFormat,description:e.description??""})}return t}(e),s=e.security??[],i=new Map,a=new Map;for(const m of e.tags??[])a.set(m.name,m.description??"");const l=[];let c=0;const p=e.paths??{};for(const[m,g]of Object.entries(p)){if(!g)continue;const e=g,r=e.parameters??[];for(const o of ec){const a=e[o];if(!a)continue;const p=a.operationId||`unnamed-${++c}-${o}-${m}`,d=(null==(t=a.tags)?void 0:t.length)?a.tags:["default"],u=nc(p,m,o,a,r,n,s);l.push(u);for(const e of d)i.has(e)||i.set(e,[]),i.get(e).push(u)}}const d=(e.tags??[]).map(e=>e.name),u=new Set,f=[];for(const m of d){u.add(m);const e=i.get(m);(null==e?void 0:e.length)&&f.push({name:m,description:a.get(m)??"",operations:e})}for(const[m,g]of i)!u.has(m)&&g.length&&f.push({name:m,description:a.get(m)??"",operations:g});const h=e.externalDocs?{url:e.externalDocs.url,description:e.externalDocs.description??""}:null;return{title:r.title,version:r.version,description:r.description??"",contact:r.contact?{name:r.contact.name,url:r.contact.url,email:r.contact.email}:null,license:r.license?{name:r.license.name,url:r.license.url}:null,termsOfService:r.termsOfService??"",servers:n,securitySchemes:o,globalSecurity:s,tagGroups:f,allOperations:l,externalDocs:h,raw:e}}(await Xl.dereference(e))}function rc(e){const t={};for(const[r,n]of Object.entries(e.variables??{}))t[r]={default:n.default,enum:n.enum,description:n.description??""};return{url:e.url,description:e.description??"",variables:t}}function nc(e,t,r,n,o,s,i){const a=new Map;for(const h of o)a.set(`${h.in}:${h.name}`,h);for(const h of n.parameters??[])a.set(`${h.in}:${h.name}`,h);const l=Array.from(a.values()).map(e=>{var t;return{name:e.name,in:e.in,required:e.required??!1,deprecated:e.deprecated??!1,description:e.description??"",schema:e.schema??null,example:e.example??(null==(t=e.schema)?void 0:t.example)??void 0}});let c=null;if(n.requestBody){const e=n.requestBody;c={required:e.required??!1,description:e.description??"",content:oc(e.content)}}const p=[];for(const[h,m]of Object.entries(n.responses??{})){const e=m,t={};for(const[r,n]of Object.entries(e.headers??{})){const e=n;t[r]={description:e.description??"",schema:e.schema??null}}p.push({statusCode:h,description:e.description??"",headers:t,content:e.content?oc(e.content):[]})}p.sort((e,t)=>"default"===e.statusCode?1:"default"===t.statusCode?-1:e.statusCode.localeCompare(t.statusCode));const d=[],u=n["x-codeSamples"]??n["x-code-samples"];if(Array.isArray(u))for(const h of u)h&&"object"==typeof h&&"lang"in h&&"source"in h&&d.push({lang:String(h.lang),label:String(h.label??h.lang),source:String(h.source)});const f=(n.servers??[]).map(rc);return{operationId:e,path:t,method:r,summary:n.summary??"",description:n.description??"",tags:n.tags??["default"],deprecated:n.deprecated??!1,parameters:l,requestBody:c,responses:p,security:n.security??i,servers:f.length>0?f:s,codeSamples:d}}function oc(e){return Object.entries(e).map(([e,t])=>({mediaType:e,schema:t.schema??null,example:t.example??void 0,examples:t.examples?Object.fromEntries(Object.entries(t.examples).map(([e,t])=>[e,t.value??t])):{}}))}const sc="KEYS",ic="VALUES",ac="";class lc{constructor(e,t){const r=e._tree,n=Array.from(r.keys());this.set=e,this._type=t,this._path=n.length>0?[{node:r,keys:n}]:[]}next(){const e=this.dive();return this.backtrack(),e}dive(){if(0===this._path.length)return{done:!0,value:void 0};const{node:e,keys:t}=cc(this._path);if(cc(t)===ac)return{done:!1,value:this.result()};const r=e.get(cc(t));return this._path.push({node:r,keys:Array.from(r.keys())}),this.dive()}backtrack(){if(0===this._path.length)return;const e=cc(this._path).keys;e.pop(),e.length>0||(this._path.pop(),this.backtrack())}key(){return this.set._prefix+this._path.map(({keys:e})=>cc(e)).filter(e=>e!==ac).join("")}value(){return cc(this._path).node.get(ac)}result(){switch(this._type){case ic:return this.value();case sc:return this.key();default:return[this.key(),this.value()]}}[Symbol.iterator](){return this}}const cc=e=>e[e.length-1],pc=(e,t,r,n,o,s,i,a)=>{const l=s*i;e:for(const c of e.keys())if(c===ac){const t=o[l-1];t<=r&&n.set(a,[e.get(c),t])}else{let l=s;for(let e=0;e<c.length;++e,++l){const n=c[e],s=i*l,a=s-i;let p=o[s];const d=Math.max(0,l-r-1),u=Math.min(i-1,l+r);for(let e=d;e<u;++e){const r=n!==t[e],i=o[a+e]+ +r,l=o[a+e+1]+1,c=o[s+e]+1,d=o[s+e+1]=Math.min(i,l,c);d<p&&(p=d)}if(p>r)continue e}pc(e.get(c),t,r,n,o,l,i,a+c)}};class dc{constructor(e=new Map,t=""){this._size=void 0,this._tree=e,this._prefix=t}atPrefix(e){if(!e.startsWith(this._prefix))throw new Error("Mismatched prefix");const[t,r]=uc(this._tree,e.slice(this._prefix.length));if(void 0===t){const[t,n]=vc(r);for(const r of t.keys())if(r!==ac&&r.startsWith(n)){const o=new Map;return o.set(r.slice(n.length),t.get(r)),new dc(o,e)}}return new dc(t,e)}clear(){this._size=void 0,this._tree.clear()}delete(e){return this._size=void 0,mc(this._tree,e)}entries(){return new lc(this,"ENTRIES")}forEach(e){for(const[t,r]of this)e(t,r,this)}fuzzyGet(e,t){return((e,t,r)=>{const n=new Map;if(void 0===t)return n;const o=t.length+1,s=o+r,i=new Uint8Array(s*o).fill(r+1);for(let a=0;a<o;++a)i[a]=a;for(let a=1;a<s;++a)i[a*o]=a;return pc(e,t,r,n,i,1,o,""),n})(this._tree,e,t)}get(e){const t=fc(this._tree,e);return void 0!==t?t.get(ac):void 0}has(e){const t=fc(this._tree,e);return void 0!==t&&t.has(ac)}keys(){return new lc(this,sc)}set(e,t){if("string"!=typeof e)throw new Error("key must be a string");this._size=void 0;return hc(this._tree,e).set(ac,t),this}get size(){if(this._size)return this._size;this._size=0;const e=this.entries();for(;!e.next().done;)this._size+=1;return this._size}update(e,t){if("string"!=typeof e)throw new Error("key must be a string");this._size=void 0;const r=hc(this._tree,e);return r.set(ac,t(r.get(ac))),this}fetch(e,t){if("string"!=typeof e)throw new Error("key must be a string");this._size=void 0;const r=hc(this._tree,e);let n=r.get(ac);return void 0===n&&r.set(ac,n=t()),n}values(){return new lc(this,ic)}[Symbol.iterator](){return this.entries()}static from(e){const t=new dc;for(const[r,n]of e)t.set(r,n);return t}static fromObject(e){return dc.from(Object.entries(e))}}const uc=(e,t,r=[])=>{if(0===t.length||null==e)return[e,r];for(const n of e.keys())if(n!==ac&&t.startsWith(n))return r.push([e,n]),uc(e.get(n),t.slice(n.length),r);return r.push([e,t]),uc(void 0,"",r)},fc=(e,t)=>{if(0===t.length||null==e)return e;for(const r of e.keys())if(r!==ac&&t.startsWith(r))return fc(e.get(r),t.slice(r.length))},hc=(e,t)=>{const r=t.length;e:for(let n=0;e&&n<r;){for(const s of e.keys())if(s!==ac&&t[n]===s[0]){const o=Math.min(r-n,s.length);let i=1;for(;i<o&&t[n+i]===s[i];)++i;const a=e.get(s);if(i===s.length)e=a;else{const r=new Map;r.set(s.slice(i),a),e.set(t.slice(n,n+i),r),e.delete(s),e=r}n+=i;continue e}const o=new Map;return e.set(t.slice(n),o),o}return e},mc=(e,t)=>{const[r,n]=uc(e,t);if(void 0!==r)if(r.delete(ac),0===r.size)gc(n);else if(1===r.size){const[e,t]=r.entries().next().value;yc(n,e,t)}},gc=e=>{if(0===e.length)return;const[t,r]=vc(e);if(t.delete(r),0===t.size)gc(e.slice(0,-1));else if(1===t.size){const[r,n]=t.entries().next().value;r!==ac&&yc(e.slice(0,-1),r,n)}},yc=(e,t,r)=>{if(0===e.length)return;const[n,o]=vc(e);n.set(o+t,r),n.delete(o)},vc=e=>e[e.length-1],bc="or",$c="and",xc="and_not";class wc{constructor(e){if(null==(null==e?void 0:e.fields))throw new Error('MiniSearch: option "fields" must be provided');const t=null==e.autoVacuum||!0===e.autoVacuum?Cc:e.autoVacuum;this._options={...Oc,...e,autoVacuum:t,searchOptions:{...Pc,...e.searchOptions||{}},autoSuggestOptions:{...Ec,...e.autoSuggestOptions||{}}},this._index=new dc,this._documentCount=0,this._documentIds=new Map,this._idToShortId=new Map,this._fieldIds={},this._fieldLength=new Map,this._avgFieldLength=[],this._nextId=0,this._storedFields=new Map,this._dirtCount=0,this._currentVacuum=null,this._enqueuedVacuum=null,this._enqueuedVacuumConditions=Ac,this.addFields(this._options.fields)}add(e){const{extractField:t,stringifyField:r,tokenize:n,processTerm:o,fields:s,idField:i}=this._options,a=t(e,i);if(null==a)throw new Error(`MiniSearch: document does not have ID field "${i}"`);if(this._idToShortId.has(a))throw new Error(`MiniSearch: duplicate ID ${a}`);const l=this.addDocumentId(a);this.saveStoredFields(l,e);for(const c of s){const s=t(e,c);if(null==s)continue;const i=n(r(s,c),c),a=this._fieldIds[c],p=new Set(i).size;this.addFieldLength(l,a,this._documentCount-1,p);for(const e of i){const t=o(e,c);if(Array.isArray(t))for(const e of t)this.addTerm(a,l,e);else t&&this.addTerm(a,l,t)}}}addAll(e){for(const t of e)this.add(t)}addAllAsync(e,t={}){const{chunkSize:r=10}=t,n={chunk:[],promise:Promise.resolve()},{chunk:o,promise:s}=e.reduce(({chunk:e,promise:t},n,o)=>(e.push(n),(o+1)%r===0?{chunk:[],promise:t.then(()=>new Promise(e=>setTimeout(e,0))).then(()=>this.addAll(e))}:{chunk:e,promise:t}),n);return s.then(()=>this.addAll(o))}remove(e){const{tokenize:t,processTerm:r,extractField:n,stringifyField:o,fields:s,idField:i}=this._options,a=n(e,i);if(null==a)throw new Error(`MiniSearch: document does not have ID field "${i}"`);const l=this._idToShortId.get(a);if(null==l)throw new Error(`MiniSearch: cannot remove document with ID ${a}: it is not in the index`);for(const c of s){const s=n(e,c);if(null==s)continue;const i=t(o(s,c),c),a=this._fieldIds[c],p=new Set(i).size;this.removeFieldLength(l,a,this._documentCount,p);for(const e of i){const t=r(e,c);if(Array.isArray(t))for(const e of t)this.removeTerm(a,l,e);else t&&this.removeTerm(a,l,t)}}this._storedFields.delete(l),this._documentIds.delete(l),this._idToShortId.delete(a),this._fieldLength.delete(l),this._documentCount-=1}removeAll(e){if(e)for(const t of e)this.remove(t);else{if(arguments.length>0)throw new Error("Expected documents to be present. Omit the argument to remove all documents.");this._index=new dc,this._documentCount=0,this._documentIds=new Map,this._idToShortId=new Map,this._fieldLength=new Map,this._avgFieldLength=[],this._storedFields=new Map,this._nextId=0}}discard(e){const t=this._idToShortId.get(e);if(null==t)throw new Error(`MiniSearch: cannot discard document with ID ${e}: it is not in the index`);this._idToShortId.delete(e),this._documentIds.delete(t),this._storedFields.delete(t),(this._fieldLength.get(t)||[]).forEach((e,r)=>{this.removeFieldLength(t,r,this._documentCount,e)}),this._fieldLength.delete(t),this._documentCount-=1,this._dirtCount+=1,this.maybeAutoVacuum()}maybeAutoVacuum(){if(!1===this._options.autoVacuum)return;const{minDirtFactor:e,minDirtCount:t,batchSize:r,batchWait:n}=this._options.autoVacuum;this.conditionalVacuum({batchSize:r,batchWait:n},{minDirtCount:t,minDirtFactor:e})}discardAll(e){const t=this._options.autoVacuum;try{this._options.autoVacuum=!1;for(const t of e)this.discard(t)}finally{this._options.autoVacuum=t}this.maybeAutoVacuum()}replace(e){const{idField:t,extractField:r}=this._options,n=r(e,t);this.discard(n),this.add(e)}vacuum(e={}){return this.conditionalVacuum(e)}conditionalVacuum(e,t){return this._currentVacuum?(this._enqueuedVacuumConditions=this._enqueuedVacuumConditions&&t,null!=this._enqueuedVacuum||(this._enqueuedVacuum=this._currentVacuum.then(()=>{const t=this._enqueuedVacuumConditions;return this._enqueuedVacuumConditions=Ac,this.performVacuuming(e,t)})),this._enqueuedVacuum):!1===this.vacuumConditionsMet(t)?Promise.resolve():(this._currentVacuum=this.performVacuuming(e),this._currentVacuum)}async performVacuuming(e,t){const r=this._dirtCount;if(this.vacuumConditionsMet(t)){const t=e.batchSize||Tc.batchSize,n=e.batchWait||Tc.batchWait;let o=1;for(const[e,r]of this._index){for(const[e,t]of r)for(const[n]of t)this._documentIds.has(n)||(t.size<=1?r.delete(e):t.delete(n));0===this._index.get(e).size&&this._index.delete(e),o%t===0&&await new Promise(e=>setTimeout(e,n)),o+=1}this._dirtCount-=r}await null,this._currentVacuum=this._enqueuedVacuum,this._enqueuedVacuum=null}vacuumConditionsMet(e){if(null==e)return!0;let{minDirtCount:t,minDirtFactor:r}=e;return t=t||Cc.minDirtCount,r=r||Cc.minDirtFactor,this.dirtCount>=t&&this.dirtFactor>=r}get isVacuuming(){return null!=this._currentVacuum}get dirtCount(){return this._dirtCount}get dirtFactor(){return this._dirtCount/(1+this._documentCount+this._dirtCount)}has(e){return this._idToShortId.has(e)}getStoredFields(e){const t=this._idToShortId.get(e);if(null!=t)return this._storedFields.get(t)}search(e,t={}){const{searchOptions:r}=this._options,n={...r,...t},o=this.executeQuery(e,t),s=[];for(const[i,{score:a,terms:l,match:c}]of o){const e=l.length||1,t={id:this._documentIds.get(i),score:a*e,terms:Object.keys(c),queryTerms:l,match:c};Object.assign(t,this._storedFields.get(i)),(null==n.filter||n.filter(t))&&s.push(t)}return e===wc.wildcard&&null==n.boostDocument||s.sort(Nc),s}autoSuggest(e,t={}){t={...this._options.autoSuggestOptions,...t};const r=new Map;for(const{score:o,terms:s}of this.search(e,t)){const e=s.join(" "),t=r.get(e);null!=t?(t.score+=o,t.count+=1):r.set(e,{score:o,terms:s,count:1})}const n=[];for(const[o,{score:s,terms:i,count:a}]of r)n.push({suggestion:o,terms:i,score:s/a});return n.sort(Nc),n}get documentCount(){return this._documentCount}get termCount(){return this._index.size}static loadJSON(e,t){if(null==t)throw new Error("MiniSearch: loadJSON should be given the same options used when serializing the index");return this.loadJS(JSON.parse(e),t)}static async loadJSONAsync(e,t){if(null==t)throw new Error("MiniSearch: loadJSON should be given the same options used when serializing the index");return this.loadJSAsync(JSON.parse(e),t)}static getDefault(e){if(Oc.hasOwnProperty(e))return _c(Oc,e);throw new Error(`MiniSearch: unknown option "${e}"`)}static loadJS(e,t){const{index:r,documentIds:n,fieldLength:o,storedFields:s,serializationVersion:i}=e,a=this.instantiateMiniSearch(e,t);a._documentIds=qc(n),a._fieldLength=qc(o),a._storedFields=qc(s);for(const[l,c]of a._documentIds)a._idToShortId.set(c,l);for(const[l,c]of r){const e=new Map;for(const t of Object.keys(c)){let r=c[t];1===i&&(r=r.ds),e.set(parseInt(t,10),qc(r))}a._index.set(l,e)}return a}static async loadJSAsync(e,t){const{index:r,documentIds:n,fieldLength:o,storedFields:s,serializationVersion:i}=e,a=this.instantiateMiniSearch(e,t);a._documentIds=await zc(n),a._fieldLength=await zc(o),a._storedFields=await zc(s);for(const[c,p]of a._documentIds)a._idToShortId.set(p,c);let l=0;for(const[c,p]of r){const e=new Map;for(const t of Object.keys(p)){let r=p[t];1===i&&(r=r.ds),e.set(parseInt(t,10),await zc(r))}++l%1e3==0&&await Uc(0),a._index.set(c,e)}return a}static instantiateMiniSearch(e,t){const{documentCount:r,nextId:n,fieldIds:o,averageFieldLength:s,dirtCount:i,serializationVersion:a}=e;if(1!==a&&2!==a)throw new Error("MiniSearch: cannot deserialize an index created with an incompatible version");const l=new wc(t);return l._documentCount=r,l._nextId=n,l._idToShortId=new Map,l._fieldIds=o,l._avgFieldLength=s,l._dirtCount=i||0,l._index=new dc,l}executeQuery(e,t={}){if(e===wc.wildcard)return this.executeWildcardQuery(t);if("string"!=typeof e){const r={...t,...e,queries:void 0},n=e.queries.map(e=>this.executeQuery(e,r));return this.combineResults(n,r.combineWith)}const{tokenize:r,processTerm:n,searchOptions:o}=this._options,s={tokenize:r,processTerm:n,...o,...t},{tokenize:i,processTerm:a}=s,l=i(e).flatMap(e=>a(e)).filter(e=>!!e).map(jc(s)).map(e=>this.executeQuerySpec(e,s));return this.combineResults(l,s.combineWith)}executeQuerySpec(e,t){const r={...this._options.searchOptions,...t},n=(r.fields||this._options.fields).reduce((e,t)=>({...e,[t]:_c(r.boost,t)||1}),{}),{boostDocument:o,weights:s,maxFuzzy:i,bm25:a}=r,{fuzzy:l,prefix:c}={...Pc.weights,...s},p=this._index.get(e.term),d=this.termResults(e.term,e.term,1,e.termBoost,p,n,o,a);let u,f;if(e.prefix&&(u=this._index.atPrefix(e.term)),e.fuzzy){const t=!0===e.fuzzy?.2:e.fuzzy,r=t<1?Math.min(i,Math.round(e.term.length*t)):t;r&&(f=this._index.fuzzyGet(e.term,r))}if(u)for(const[h,m]of u){const t=h.length-e.term.length;if(!t)continue;null==f||f.delete(h);const r=c*h.length/(h.length+.3*t);this.termResults(e.term,h,r,e.termBoost,m,n,o,a,d)}if(f)for(const h of f.keys()){const[t,r]=f.get(h);if(!r)continue;const s=l*h.length/(h.length+r);this.termResults(e.term,h,s,e.termBoost,t,n,o,a,d)}return d}executeWildcardQuery(e){const t=new Map,r={...this._options.searchOptions,...e};for(const[n,o]of this._documentIds){const e=r.boostDocument?r.boostDocument(o,"",this._storedFields.get(n)):1;t.set(n,{score:e,terms:[],match:{}})}return t}combineResults(e,t=bc){if(0===e.length)return new Map;const r=t.toLowerCase(),n=kc[r];if(!n)throw new Error(`Invalid combination operator: ${t}`);return e.reduce(n)||new Map}toJSON(){const e=[];for(const[t,r]of this._index){const n={};for(const[e,t]of r)n[e]=Object.fromEntries(t);e.push([t,n])}return{documentCount:this._documentCount,nextId:this._nextId,documentIds:Object.fromEntries(this._documentIds),fieldIds:this._fieldIds,fieldLength:Object.fromEntries(this._fieldLength),averageFieldLength:this._avgFieldLength,storedFields:Object.fromEntries(this._storedFields),dirtCount:this._dirtCount,index:e,serializationVersion:2}}termResults(e,t,r,n,o,s,i,a,l=new Map){if(null==o)return l;for(const c of Object.keys(s)){const p=s[c],d=this._fieldIds[c],u=o.get(d);if(null==u)continue;let f=u.size;const h=this._avgFieldLength[d];for(const o of u.keys()){if(!this._documentIds.has(o)){this.removeTerm(d,o,t),f-=1;continue}const s=i?i(this._documentIds.get(o),t,this._storedFields.get(o)):1;if(!s)continue;const m=u.get(o),g=this._fieldLength.get(o)[d],y=r*n*p*s*Sc(m,f,this._documentCount,g,h,a),v=l.get(o);if(v){v.score+=y,Ic(v.terms,e);const r=_c(v.match,t);r?r.push(c):v.match[t]=[c]}else l.set(o,{score:y,terms:[e],match:{[t]:[c]}})}}return l}addTerm(e,t,r){const n=this._index.fetch(r,Mc);let o=n.get(e);if(null==o)o=new Map,o.set(t,1),n.set(e,o);else{const e=o.get(t);o.set(t,(e||0)+1)}}removeTerm(e,t,r){if(!this._index.has(r))return void this.warnDocumentChanged(t,e,r);const n=this._index.fetch(r,Mc),o=n.get(e);null==o||null==o.get(t)?this.warnDocumentChanged(t,e,r):o.get(t)<=1?o.size<=1?n.delete(e):o.delete(t):o.set(t,o.get(t)-1),0===this._index.get(r).size&&this._index.delete(r)}warnDocumentChanged(e,t,r){for(const n of Object.keys(this._fieldIds))if(this._fieldIds[n]===t)return void this._options.logger("warn",`MiniSearch: document with ID ${this._documentIds.get(e)} has changed before removal: term "${r}" was not present in field "${n}". Removing a document after it has changed can corrupt the index!`,"version_conflict")}addDocumentId(e){const t=this._nextId;return this._idToShortId.set(e,t),this._documentIds.set(t,e),this._documentCount+=1,this._nextId+=1,t}addFields(e){for(let t=0;t<e.length;t++)this._fieldIds[e[t]]=t}addFieldLength(e,t,r,n){let o=this._fieldLength.get(e);null==o&&this._fieldLength.set(e,o=[]),o[t]=n;const s=(this._avgFieldLength[t]||0)*r+n;this._avgFieldLength[t]=s/(r+1)}removeFieldLength(e,t,r,n){if(1===r)return void(this._avgFieldLength[t]=0);const o=this._avgFieldLength[t]*r-n;this._avgFieldLength[t]=o/(r-1)}saveStoredFields(e,t){const{storeFields:r,extractField:n}=this._options;if(null==r||0===r.length)return;let o=this._storedFields.get(e);null==o&&this._storedFields.set(e,o={});for(const s of r){const e=n(t,s);void 0!==e&&(o[s]=e)}}}wc.wildcard=Symbol("*");const _c=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0,kc={[bc]:(e,t)=>{for(const r of t.keys()){const n=e.get(r);if(null==n)e.set(r,t.get(r));else{const{score:e,terms:o,match:s}=t.get(r);n.score=n.score+e,n.match=Object.assign(n.match,s),Rc(n.terms,o)}}return e},[$c]:(e,t)=>{const r=new Map;for(const n of t.keys()){const o=e.get(n);if(null==o)continue;const{score:s,terms:i,match:a}=t.get(n);Rc(o.terms,i),r.set(n,{score:o.score+s,terms:o.terms,match:Object.assign(o.match,a)})}return r},[xc]:(e,t)=>{for(const r of t.keys())e.delete(r);return e}},Sc=(e,t,r,n,o,s)=>{const{k:i,b:a,d:l}=s;return Math.log(1+(r-t+.5)/(t+.5))*(l+e*(i+1)/(e+i*(1-a+a*n/o)))},jc=e=>(t,r,n)=>({term:t,fuzzy:"function"==typeof e.fuzzy?e.fuzzy(t,r,n):e.fuzzy||!1,prefix:"function"==typeof e.prefix?e.prefix(t,r,n):!0===e.prefix,termBoost:"function"==typeof e.boostTerm?e.boostTerm(t,r,n):1}),Oc={idField:"id",extractField:(e,t)=>e[t],stringifyField:(e,t)=>e.toString(),tokenize:e=>e.split(Lc),processTerm:e=>e.toLowerCase(),fields:void 0,searchOptions:void 0,storeFields:[],logger:(e,t)=>{"function"==typeof(null===console||void 0===console?void 0:console[e])&&console[e](t)},autoVacuum:!0},Pc={combineWith:bc,prefix:!1,fuzzy:!1,maxFuzzy:6,boost:{},weights:{fuzzy:.45,prefix:.375},bm25:{k:1.2,b:.7,d:.5}},Ec={combineWith:"and",prefix:(e,t,r)=>t===r.length-1},Tc={batchSize:1e3,batchWait:10},Ac={minDirtFactor:.1,minDirtCount:20},Cc={...Tc,...Ac},Ic=(e,t)=>{e.includes(t)||e.push(t)},Rc=(e,t)=>{for(const r of t)e.includes(r)||e.push(r)},Nc=({score:e},{score:t})=>t-e,Mc=()=>new Map,qc=e=>{const t=new Map;for(const r of Object.keys(e))t.set(parseInt(r,10),e[r]);return t},zc=async e=>{const t=new Map;let r=0;for(const n of Object.keys(e))t.set(parseInt(n,10),e[n]),++r%1e3==0&&await Uc(0);return t},Uc=e=>new Promise(t=>setTimeout(t,e)),Lc=/[\n\r\p{Z}\p{P}]+/u;class Dc{constructor(e){this._onHashChange=()=>this.handleCurrentRoute(),this._callback=e}init(){window.addEventListener("hashchange",this._onHashChange)}destroy(){window.removeEventListener("hashchange",this._onHashChange)}handleCurrentRoute(){const e=window.location.hash;if(!e)return;const t=e.match(/^#\/operation\/(.+)$/);t&&this._callback(decodeURIComponent(t[1]))}navigateTo(e){const t=`#/operation/${encodeURIComponent(e)}`;window.location.hash!==t?window.location.hash=t:this._callback(e)}static buildHash(e){return`#/operation/${encodeURIComponent(e)}`}}const Bc="speclens-theme";class Hc{constructor(e){this._preference="auto",this._mediaQuery=null,this._mediaListener=()=>this._apply(),this.resolved="light",this._host=e}init(e){const t=this._readStorage();this._preference=t??e,this._mediaQuery=window.matchMedia("(prefers-color-scheme: dark)"),this._mediaQuery.addEventListener("change",this._mediaListener),this._apply()}destroy(){var e;null==(e=this._mediaQuery)||e.removeEventListener("change",this._mediaListener)}setTheme(e){this._preference=e,this._writeStorage(e),this._apply()}toggle(){const e="light"===this.resolved?"dark":"light";return this.setTheme(e),e}_apply(){var e;"auto"===this._preference?this.resolved=(null==(e=this._mediaQuery)?void 0:e.matches)?"dark":"light":this.resolved=this._preference,this._host.setAttribute("data-theme",this.resolved),this._host.requestUpdate()}_readStorage(){try{const e=localStorage.getItem(Bc);if("light"===e||"dark"===e||"auto"===e)return e}catch{}return null}_writeStorage(e){try{localStorage.setItem(Bc,e)}catch{}}}function Fc(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Vc={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};function Jc(e){Vc=e}var Wc={exec:()=>null};function Gc(e,t=""){let r="string"==typeof e?e:e.source;const n={replace:(e,t)=>{let o="string"==typeof t?t:t.source;return o=o.replace(Kc.caret,"$1"),r=r.replace(e,o),n},getRegex:()=>new RegExp(r,t)};return n}var Kc={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[\t ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},Zc=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Qc=/(?:[*+-]|\d{1,9}[.)])/,Yc=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Xc=Gc(Yc).replace(/bull/g,Qc).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),ep=Gc(Yc).replace(/bull/g,Qc).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),tp=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,rp=/(?!\s*\])(?:\\.|[^\[\]\\])+/,np=Gc(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",rp).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),op=Gc(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Qc).getRegex(),sp="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",ip=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,ap=Gc("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$))","i").replace("comment",ip).replace("tag",sp).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),lp=Gc(tp).replace("hr",Zc).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",sp).getRegex(),cp={blockquote:Gc(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",lp).getRegex(),code:/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,def:np,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:Zc,html:ap,lheading:Xc,list:op,newline:/^(?:[ \t]*(?:\n|$))+/,paragraph:lp,table:Wc,text:/^[^\n]+/},pp=Gc("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Zc).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3}\t)[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",sp).getRegex(),dp={...cp,lheading:ep,table:pp,paragraph:Gc(tp).replace("hr",Zc).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",pp).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",sp).getRegex()},up={...cp,html:Gc("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",ip).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Wc,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Gc(tp).replace("hr",Zc).replace("heading"," *#{1,6} *[^\n]").replace("lheading",Xc).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},fp=/^( {2,}|\\)\n(?!\s*$)/,hp=/[\p{P}\p{S}]/u,mp=/[\s\p{P}\p{S}]/u,gp=/[^\s\p{P}\p{S}]/u,yp=Gc(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,mp).getRegex(),vp=/(?!~)[\p{P}\p{S}]/u,bp=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,$p=Gc(bp,"u").replace(/punct/g,hp).getRegex(),xp=Gc(bp,"u").replace(/punct/g,vp).getRegex(),wp="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",_p=Gc(wp,"gu").replace(/notPunctSpace/g,gp).replace(/punctSpace/g,mp).replace(/punct/g,hp).getRegex(),kp=Gc(wp,"gu").replace(/notPunctSpace/g,/(?:[^\s\p{P}\p{S}]|~)/u).replace(/punctSpace/g,/(?!~)[\s\p{P}\p{S}]/u).replace(/punct/g,vp).getRegex(),Sp=Gc("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,gp).replace(/punctSpace/g,mp).replace(/punct/g,hp).getRegex(),jp=Gc(/\\(punct)/,"gu").replace(/punct/g,hp).getRegex(),Op=Gc(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Pp=Gc(ip).replace("(?:--\x3e|$)","--\x3e").getRegex(),Ep=Gc("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",Pp).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Tp=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Ap=Gc(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",Tp).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Cp=Gc(/^!?\[(label)\]\[(ref)\]/).replace("label",Tp).replace("ref",rp).getRegex(),Ip=Gc(/^!?\[(ref)\](?:\[\])?/).replace("ref",rp).getRegex(),Rp={_backpedal:Wc,anyPunctuation:jp,autolink:Op,blockSkip:/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g,br:fp,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:Wc,emStrongLDelim:$p,emStrongRDelimAst:_p,emStrongRDelimUnd:Sp,escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,link:Ap,nolink:Ip,punctuation:yp,reflink:Cp,reflinkSearch:Gc("reflink|nolink(?!\\()","g").replace("reflink",Cp).replace("nolink",Ip).getRegex(),tag:Ep,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:Wc},Np={...Rp,link:Gc(/^!?\[(label)\]\((.*?)\)/).replace("label",Tp).getRegex(),reflink:Gc(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Tp).getRegex()},Mp={...Rp,emStrongRDelimAst:kp,emStrongLDelim:xp,url:Gc(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},qp={...Mp,br:Gc(fp).replace("{2,}","*").getRegex(),text:Gc(Mp.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},zp={normal:cp,gfm:dp,pedantic:up},Up={normal:Rp,gfm:Mp,breaks:qp,pedantic:Np},Lp={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Dp=e=>Lp[e];function Bp(e,t){if(t){if(Kc.escapeTest.test(e))return e.replace(Kc.escapeReplace,Dp)}else if(Kc.escapeTestNoEncode.test(e))return e.replace(Kc.escapeReplaceNoEncode,Dp);return e}function Hp(e){try{e=encodeURI(e).replace(Kc.percentDecode,"%")}catch{return null}return e}function Fp(e,t){var r;const n=e.replace(Kc.findPipe,(e,t,r)=>{let n=!1,o=t;for(;--o>=0&&"\\"===r[o];)n=!n;return n?"|":" |"}).split(Kc.splitPipe);let o=0;if(n[0].trim()||n.shift(),n.length>0&&!(null==(r=n.at(-1))?void 0:r.trim())&&n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;o<n.length;o++)n[o]=n[o].trim().replace(Kc.slashPipe,"|");return n}function Vp(e,t,r){const n=e.length;if(0===n)return"";let o=0;for(;o<n;){if(e.charAt(n-o-1)!==t)break;o++}return e.slice(0,n-o)}function Jp(e,t,r,n,o){const s=t.href,i=t.title||null,a=e[1].replace(o.other.outputLinkReplace,"$1");n.state.inLink=!0;const l={type:"!"===e[0].charAt(0)?"image":"link",raw:r,href:s,title:i,text:a,tokens:n.inlineTokens(a)};return n.state.inLink=!1,l}var Wp=class{constructor(e){o(this,"options"),o(this,"rules"),o(this,"lexer"),this.options=e||Vc}space(e){const t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){const t=this.rules.block.code.exec(e);if(t){const e=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?e:Vp(e,"\n")}}}fences(e){const t=this.rules.block.fences.exec(e);if(t){const e=t[0],r=function(e,t,r){const n=e.match(r.other.indentCodeCompensation);if(null===n)return t;const o=n[1];return t.split("\n").map(e=>{const t=e.match(r.other.beginningSpace);if(null===t)return e;const[n]=t;return n.length>=o.length?e.slice(o.length):e}).join("\n")}(e,t[3]||"",this.rules);return{type:"code",raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:r}}}heading(e){const t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(this.rules.other.endingHash.test(e)){const t=Vp(e,"#");this.options.pedantic?e=t.trim():t&&!this.rules.other.endingSpaceChar.test(t)||(e=t.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){const t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:Vp(t[0],"\n")}}blockquote(e){const t=this.rules.block.blockquote.exec(e);if(t){let e=Vp(t[0],"\n").split("\n"),r="",n="";const o=[];for(;e.length>0;){let t=!1;const s=[];let i;for(i=0;i<e.length;i++)if(this.rules.other.blockquoteStart.test(e[i]))s.push(e[i]),t=!0;else{if(t)break;s.push(e[i])}e=e.slice(i);const a=s.join("\n"),l=a.replace(this.rules.other.blockquoteSetextReplace,"\n $1").replace(this.rules.other.blockquoteSetextReplace2,"");r=r?`${r}\n${a}`:a,n=n?`${n}\n${l}`:l;const c=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(l,o,!0),this.lexer.state.top=c,0===e.length)break;const p=o.at(-1);if("code"===(null==p?void 0:p.type))break;if("blockquote"===(null==p?void 0:p.type)){const t=p,s=t.raw+"\n"+e.join("\n"),i=this.blockquote(s);o[o.length-1]=i,r=r.substring(0,r.length-t.raw.length)+i.raw,n=n.substring(0,n.length-t.text.length)+i.text;break}if("list"===(null==p?void 0:p.type)){const t=p,s=t.raw+"\n"+e.join("\n"),i=this.list(s);o[o.length-1]=i,r=r.substring(0,r.length-p.raw.length)+i.raw,n=n.substring(0,n.length-t.raw.length)+i.raw,e=s.substring(o.at(-1).raw.length).split("\n");continue}}return{type:"blockquote",raw:r,tokens:o,text:n}}}list(e){let t=this.rules.block.list.exec(e);if(t){let r=t[1].trim();const n=r.length>1,o={type:"list",raw:"",ordered:n,start:n?+r.slice(0,-1):"",loose:!1,items:[]};r=n?`\\d{1,9}\\${r.slice(-1)}`:`\\${r}`,this.options.pedantic&&(r=n?r:"[*+-]");const s=this.rules.other.listItemRegex(r);let i=!1;for(;e;){let r=!1,n="",a="";if(!(t=s.exec(e)))break;if(this.rules.block.hr.test(e))break;n=t[0],e=e.substring(n.length);let l=t[2].split("\n",1)[0].replace(this.rules.other.listReplaceTabs,e=>" ".repeat(3*e.length)),c=e.split("\n",1)[0],p=!l.trim(),d=0;if(this.options.pedantic?(d=2,a=l.trimStart()):p?d=t[1].length+1:(d=t[2].search(this.rules.other.nonSpaceChar),d=d>4?1:d,a=l.slice(d),d+=t[1].length),p&&this.rules.other.blankLine.test(c)&&(n+=c+"\n",e=e.substring(c.length+1),r=!0),!r){const t=this.rules.other.nextBulletRegex(d),r=this.rules.other.hrRegex(d),o=this.rules.other.fencesBeginRegex(d),s=this.rules.other.headingBeginRegex(d),i=this.rules.other.htmlBeginRegex(d);for(;e;){const u=e.split("\n",1)[0];let f;if(c=u,this.options.pedantic?(c=c.replace(this.rules.other.listReplaceNesting," "),f=c):f=c.replace(this.rules.other.tabCharGlobal," "),o.test(c))break;if(s.test(c))break;if(i.test(c))break;if(t.test(c))break;if(r.test(c))break;if(f.search(this.rules.other.nonSpaceChar)>=d||!c.trim())a+="\n"+f.slice(d);else{if(p)break;if(l.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4)break;if(o.test(l))break;if(s.test(l))break;if(r.test(l))break;a+="\n"+c}p||c.trim()||(p=!0),n+=u+"\n",e=e.substring(u.length+1),l=f.slice(d)}}o.loose||(i?o.loose=!0:this.rules.other.doubleBlankLine.test(n)&&(i=!0));let u,f=null;this.options.gfm&&(f=this.rules.other.listIsTask.exec(a),f&&(u="[ ] "!==f[0],a=a.replace(this.rules.other.listReplaceTask,""))),o.items.push({type:"list_item",raw:n,task:!!f,checked:u,loose:!1,text:a,tokens:[]}),o.raw+=n}const a=o.items.at(-1);if(!a)return;a.raw=a.raw.trimEnd(),a.text=a.text.trimEnd(),o.raw=o.raw.trimEnd();for(let e=0;e<o.items.length;e++)if(this.lexer.state.top=!1,o.items[e].tokens=this.lexer.blockTokens(o.items[e].text,[]),!o.loose){const t=o.items[e].tokens.filter(e=>"space"===e.type),r=t.length>0&&t.some(e=>this.rules.other.anyLine.test(e.raw));o.loose=r}if(o.loose)for(let e=0;e<o.items.length;e++)o.items[e].loose=!0;return o}}html(e){const t=this.rules.block.html.exec(e);if(t){return{type:"html",block:!0,raw:t[0],pre:"pre"===t[1]||"script"===t[1]||"style"===t[1],text:t[0]}}}def(e){const t=this.rules.block.def.exec(e);if(t){const e=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),r=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",n=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:e,raw:t[0],href:r,title:n}}}table(e){var t;const r=this.rules.block.table.exec(e);if(!r)return;if(!this.rules.other.tableDelimiter.test(r[2]))return;const n=Fp(r[1]),o=r[2].replace(this.rules.other.tableAlignChars,"").split("|"),s=(null==(t=r[3])?void 0:t.trim())?r[3].replace(this.rules.other.tableRowBlankLine,"").split("\n"):[],i={type:"table",raw:r[0],header:[],align:[],rows:[]};if(n.length===o.length){for(const e of o)this.rules.other.tableAlignRight.test(e)?i.align.push("right"):this.rules.other.tableAlignCenter.test(e)?i.align.push("center"):this.rules.other.tableAlignLeft.test(e)?i.align.push("left"):i.align.push(null);for(let e=0;e<n.length;e++)i.header.push({text:n[e],tokens:this.lexer.inline(n[e]),header:!0,align:i.align[e]});for(const e of s)i.rows.push(Fp(e,i.header.length).map((e,t)=>({text:e,tokens:this.lexer.inline(e),header:!1,align:i.align[t]})));return i}}lheading(e){const t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){const t=this.rules.block.paragraph.exec(e);if(t){const e="\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){const t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){const t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){const t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){const t=this.rules.inline.link.exec(e);if(t){const e=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(e)){if(!this.rules.other.endAngleBracket.test(e))return;const t=Vp(e.slice(0,-1),"\\");if((e.length-t.length)%2==0)return}else{const e=function(e,t){if(-1===e.indexOf(t[1]))return-1;let r=0;for(let n=0;n<e.length;n++)if("\\"===e[n])n++;else if(e[n]===t[0])r++;else if(e[n]===t[1]&&(r--,r<0))return n;return r>0?-2:-1}(t[2],"()");if(-2===e)return;if(e>-1){const r=(0===t[0].indexOf("!")?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,r).trim(),t[3]=""}}let r=t[2],n="";if(this.options.pedantic){const e=this.rules.other.pedanticHrefTitle.exec(r);e&&(r=e[1],n=e[3])}else n=t[3]?t[3].slice(1,-1):"";return r=r.trim(),this.rules.other.startAngleBracket.test(r)&&(r=this.options.pedantic&&!this.rules.other.endAngleBracket.test(e)?r.slice(1):r.slice(1,-1)),Jp(t,{href:r?r.replace(this.rules.inline.anyPunctuation,"$1"):r,title:n?n.replace(this.rules.inline.anyPunctuation,"$1"):n},t[0],this.lexer,this.rules)}}reflink(e,t){let r;if((r=this.rules.inline.reflink.exec(e))||(r=this.rules.inline.nolink.exec(e))){const e=t[(r[2]||r[1]).replace(this.rules.other.multipleSpaceGlobal," ").toLowerCase()];if(!e){const e=r[0].charAt(0);return{type:"text",raw:e,text:e}}return Jp(r,e,r[0],this.lexer,this.rules)}}emStrong(e,t,r=""){let n=this.rules.inline.emStrongLDelim.exec(e);if(!n)return;if(n[3]&&r.match(this.rules.other.unicodeAlphaNumeric))return;if(!(n[1]||n[2]||"")||!r||this.rules.inline.punctuation.exec(r)){const r=[...n[0]].length-1;let o,s,i=r,a=0;const l="*"===n[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(l.lastIndex=0,t=t.slice(-1*e.length+r);null!=(n=l.exec(t));){if(o=n[1]||n[2]||n[3]||n[4]||n[5]||n[6],!o)continue;if(s=[...o].length,n[3]||n[4]){i+=s;continue}if((n[5]||n[6])&&r%3&&!((r+s)%3)){a+=s;continue}if(i-=s,i>0)continue;s=Math.min(s,s+i+a);const t=[...n[0]][0].length,l=e.slice(0,r+n.index+t+s);if(Math.min(r,s)%2){const e=l.slice(1,-1);return{type:"em",raw:l,text:e,tokens:this.lexer.inlineTokens(e)}}const c=l.slice(2,-2);return{type:"strong",raw:l,text:c,tokens:this.lexer.inlineTokens(c)}}}}codespan(e){const t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(this.rules.other.newLineCharGlobal," ");const r=this.rules.other.nonSpaceChar.test(e),n=this.rules.other.startingSpaceChar.test(e)&&this.rules.other.endingSpaceChar.test(e);return r&&n&&(e=e.substring(1,e.length-1)),{type:"codespan",raw:t[0],text:e}}}br(e){const t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){const t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){const t=this.rules.inline.autolink.exec(e);if(t){let e,r;return"@"===t[2]?(e=t[1],r="mailto:"+e):(e=t[1],r=e),{type:"link",raw:t[0],text:e,href:r,tokens:[{type:"text",raw:e,text:e}]}}}url(e){var t;let r;if(r=this.rules.inline.url.exec(e)){let e,n;if("@"===r[2])e=r[0],n="mailto:"+e;else{let o;do{o=r[0],r[0]=(null==(t=this.rules.inline._backpedal.exec(r[0]))?void 0:t[0])??""}while(o!==r[0]);e=r[0],n="www."===r[1]?"http://"+r[0]:r[0]}return{type:"link",raw:r[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e){const t=this.rules.inline.text.exec(e);if(t){const e=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:e}}}},Gp=class e{constructor(e){o(this,"tokens"),o(this,"options"),o(this,"state"),o(this,"tokenizer"),o(this,"inlineQueue"),this.tokens=[],this.tokens.links=Object.create(null),this.options=e||Vc,this.options.tokenizer=this.options.tokenizer||new Wp,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const t={other:Kc,block:zp.normal,inline:Up.normal};this.options.pedantic?(t.block=zp.pedantic,t.inline=Up.pedantic):this.options.gfm&&(t.block=zp.gfm,this.options.breaks?t.inline=Up.breaks:t.inline=Up.gfm),this.tokenizer.rules=t}static get rules(){return{block:zp,inline:Up}}static lex(t,r){return new e(r).lex(t)}static lexInline(t,r){return new e(r).inlineTokens(t)}lex(e){e=e.replace(Kc.carriageReturn,"\n"),this.blockTokens(e,this.tokens);for(let t=0;t<this.inlineQueue.length;t++){const e=this.inlineQueue[t];this.inlineTokens(e.src,e.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],r=!1){var n,o,s;for(this.options.pedantic&&(e=e.replace(Kc.tabCharGlobal," ").replace(Kc.spaceLine,""));e;){let i;if(null==(o=null==(n=this.options.extensions)?void 0:n.block)?void 0:o.some(r=>!!(i=r.call({lexer:this},e,t))&&(e=e.substring(i.raw.length),t.push(i),!0)))continue;if(i=this.tokenizer.space(e)){e=e.substring(i.raw.length);const r=t.at(-1);1===i.raw.length&&void 0!==r?r.raw+="\n":t.push(i);continue}if(i=this.tokenizer.code(e)){e=e.substring(i.raw.length);const r=t.at(-1);"paragraph"===(null==r?void 0:r.type)||"text"===(null==r?void 0:r.type)?(r.raw+="\n"+i.raw,r.text+="\n"+i.text,this.inlineQueue.at(-1).src=r.text):t.push(i);continue}if(i=this.tokenizer.fences(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.heading(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.hr(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.blockquote(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.list(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.html(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.def(e)){e=e.substring(i.raw.length);const r=t.at(-1);"paragraph"===(null==r?void 0:r.type)||"text"===(null==r?void 0:r.type)?(r.raw+="\n"+i.raw,r.text+="\n"+i.raw,this.inlineQueue.at(-1).src=r.text):this.tokens.links[i.tag]||(this.tokens.links[i.tag]={href:i.href,title:i.title});continue}if(i=this.tokenizer.table(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.lheading(e)){e=e.substring(i.raw.length),t.push(i);continue}let a=e;if(null==(s=this.options.extensions)?void 0:s.startBlock){let t=1/0;const r=e.slice(1);let n;this.options.extensions.startBlock.forEach(e=>{n=e.call({lexer:this},r),"number"==typeof n&&n>=0&&(t=Math.min(t,n))}),t<1/0&&t>=0&&(a=e.substring(0,t+1))}if(this.state.top&&(i=this.tokenizer.paragraph(a))){const n=t.at(-1);r&&"paragraph"===(null==n?void 0:n.type)?(n.raw+="\n"+i.raw,n.text+="\n"+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=n.text):t.push(i),r=a.length!==e.length,e=e.substring(i.raw.length);continue}if(i=this.tokenizer.text(e)){e=e.substring(i.raw.length);const r=t.at(-1);"text"===(null==r?void 0:r.type)?(r.raw+="\n"+i.raw,r.text+="\n"+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=r.text):t.push(i);continue}if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){var r,n,o;let s=e,i=null;if(this.tokens.links){const e=Object.keys(this.tokens.links);if(e.length>0)for(;null!=(i=this.tokenizer.rules.inline.reflinkSearch.exec(s));)e.includes(i[0].slice(i[0].lastIndexOf("[")+1,-1))&&(s=s.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(i=this.tokenizer.rules.inline.anyPunctuation.exec(s));)s=s.slice(0,i.index)+"++"+s.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;null!=(i=this.tokenizer.rules.inline.blockSkip.exec(s));)s=s.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);let a=!1,l="";for(;e;){let i;if(a||(l=""),a=!1,null==(n=null==(r=this.options.extensions)?void 0:r.inline)?void 0:n.some(r=>!!(i=r.call({lexer:this},e,t))&&(e=e.substring(i.raw.length),t.push(i),!0)))continue;if(i=this.tokenizer.escape(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.tag(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.link(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(i.raw.length);const r=t.at(-1);"text"===i.type&&"text"===(null==r?void 0:r.type)?(r.raw+=i.raw,r.text+=i.text):t.push(i);continue}if(i=this.tokenizer.emStrong(e,s,l)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.codespan(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.br(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.del(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.autolink(e)){e=e.substring(i.raw.length),t.push(i);continue}if(!this.state.inLink&&(i=this.tokenizer.url(e))){e=e.substring(i.raw.length),t.push(i);continue}let c=e;if(null==(o=this.options.extensions)?void 0:o.startInline){let t=1/0;const r=e.slice(1);let n;this.options.extensions.startInline.forEach(e=>{n=e.call({lexer:this},r),"number"==typeof n&&n>=0&&(t=Math.min(t,n))}),t<1/0&&t>=0&&(c=e.substring(0,t+1))}if(i=this.tokenizer.inlineText(c)){e=e.substring(i.raw.length),"_"!==i.raw.slice(-1)&&(l=i.raw.slice(-1)),a=!0;const r=t.at(-1);"text"===(null==r?void 0:r.type)?(r.raw+=i.raw,r.text+=i.text):t.push(i);continue}if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}return t}},Kp=class{constructor(e){o(this,"options"),o(this,"parser"),this.options=e||Vc}space(e){return""}code({text:e,lang:t,escaped:r}){var n;const o=null==(n=(t||"").match(Kc.notSpaceStart))?void 0:n[0],s=e.replace(Kc.endingNewline,"")+"\n";return o?'<pre><code class="language-'+Bp(o)+'">'+(r?s:Bp(s,!0))+"</code></pre>\n":"<pre><code>"+(r?s:Bp(s,!0))+"</code></pre>\n"}blockquote({tokens:e}){return`<blockquote>\n${this.parser.parse(e)}</blockquote>\n`}html({text:e}){return e}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>\n`}hr(e){return"<hr>\n"}list(e){const t=e.ordered,r=e.start;let n="";for(let s=0;s<e.items.length;s++){const t=e.items[s];n+=this.listitem(t)}const o=t?"ol":"ul";return"<"+o+(t&&1!==r?' start="'+r+'"':"")+">\n"+n+"</"+o+">\n"}listitem(e){var t;let r="";if(e.task){const n=this.checkbox({checked:!!e.checked});e.loose?"paragraph"===(null==(t=e.tokens[0])?void 0:t.type)?(e.tokens[0].text=n+" "+e.tokens[0].text,e.tokens[0].tokens&&e.tokens[0].tokens.length>0&&"text"===e.tokens[0].tokens[0].type&&(e.tokens[0].tokens[0].text=n+" "+Bp(e.tokens[0].tokens[0].text),e.tokens[0].tokens[0].escaped=!0)):e.tokens.unshift({type:"text",raw:n+" ",text:n+" ",escaped:!0}):r+=n+" "}return r+=this.parser.parse(e.tokens,!!e.loose),`<li>${r}</li>\n`}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>\n`}table(e){let t="",r="";for(let o=0;o<e.header.length;o++)r+=this.tablecell(e.header[o]);t+=this.tablerow({text:r});let n="";for(let o=0;o<e.rows.length;o++){const t=e.rows[o];r="";for(let e=0;e<t.length;e++)r+=this.tablecell(t[e]);n+=this.tablerow({text:r})}return n&&(n=`<tbody>${n}</tbody>`),"<table>\n<thead>\n"+t+"</thead>\n"+n+"</table>\n"}tablerow({text:e}){return`<tr>\n${e}</tr>\n`}tablecell(e){const t=this.parser.parseInline(e.tokens),r=e.header?"th":"td";return(e.align?`<${r} align="${e.align}">`:`<${r}>`)+t+`</${r}>\n`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${Bp(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:r}){const n=this.parser.parseInline(r),o=Hp(e);if(null===o)return n;let s='<a href="'+(e=o)+'"';return t&&(s+=' title="'+Bp(t)+'"'),s+=">"+n+"</a>",s}image({href:e,title:t,text:r,tokens:n}){n&&(r=this.parser.parseInline(n,this.parser.textRenderer));const o=Hp(e);if(null===o)return Bp(r);let s=`<img src="${e=o}" alt="${r}"`;return t&&(s+=` title="${Bp(t)}"`),s+=">",s}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:Bp(e.text)}},Zp=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}},Qp=class e{constructor(e){o(this,"options"),o(this,"renderer"),o(this,"textRenderer"),this.options=e||Vc,this.options.renderer=this.options.renderer||new Kp,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Zp}static parse(t,r){return new e(r).parse(t)}static parseInline(t,r){return new e(r).parseInline(t)}parse(e,t=!0){var r,n;let o="";for(let s=0;s<e.length;s++){const i=e[s];if(null==(n=null==(r=this.options.extensions)?void 0:r.renderers)?void 0:n[i.type]){const e=i,t=this.options.extensions.renderers[e.type].call({parser:this},e);if(!1!==t||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(e.type)){o+=t||"";continue}}const a=i;switch(a.type){case"space":o+=this.renderer.space(a);continue;case"hr":o+=this.renderer.hr(a);continue;case"heading":o+=this.renderer.heading(a);continue;case"code":o+=this.renderer.code(a);continue;case"table":o+=this.renderer.table(a);continue;case"blockquote":o+=this.renderer.blockquote(a);continue;case"list":o+=this.renderer.list(a);continue;case"html":o+=this.renderer.html(a);continue;case"paragraph":o+=this.renderer.paragraph(a);continue;case"text":{let r=a,n=this.renderer.text(r);for(;s+1<e.length&&"text"===e[s+1].type;)r=e[++s],n+="\n"+this.renderer.text(r);o+=t?this.renderer.paragraph({type:"paragraph",raw:n,text:n,tokens:[{type:"text",raw:n,text:n,escaped:!0}]}):n;continue}default:{const e='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw new Error(e)}}}return o}parseInline(e,t=this.renderer){var r,n;let o="";for(let s=0;s<e.length;s++){const i=e[s];if(null==(n=null==(r=this.options.extensions)?void 0:r.renderers)?void 0:n[i.type]){const e=this.options.extensions.renderers[i.type].call({parser:this},i);if(!1!==e||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(i.type)){o+=e||"";continue}}const a=i;switch(a.type){case"escape":case"text":o+=t.text(a);break;case"html":o+=t.html(a);break;case"link":o+=t.link(a);break;case"image":o+=t.image(a);break;case"strong":o+=t.strong(a);break;case"em":o+=t.em(a);break;case"codespan":o+=t.codespan(a);break;case"br":o+=t.br(a);break;case"del":o+=t.del(a);break;default:{const e='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw new Error(e)}}}return o}},Yp=(r=class{constructor(e){o(this,"options"),o(this,"block"),this.options=e||Vc}preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}provideLexer(){return this.block?Gp.lex:Gp.lexInline}provideParser(){return this.block?Qp.parse:Qp.parseInline}},o(r,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"])),r),Xp=new class{constructor(...e){o(this,"defaults",{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}),o(this,"options",this.setOptions),o(this,"parse",this.parseMarkdown(!0)),o(this,"parseInline",this.parseMarkdown(!1)),o(this,"Parser",Qp),o(this,"Renderer",Kp),o(this,"TextRenderer",Zp),o(this,"Lexer",Gp),o(this,"Tokenizer",Wp),o(this,"Hooks",Yp),this.use(...e)}walkTokens(e,t){var r,n;let o=[];for(const s of e)switch(o=o.concat(t.call(this,s)),s.type){case"table":{const e=s;for(const r of e.header)o=o.concat(this.walkTokens(r.tokens,t));for(const r of e.rows)for(const e of r)o=o.concat(this.walkTokens(e.tokens,t));break}case"list":{const e=s;o=o.concat(this.walkTokens(e.items,t));break}default:{const e=s;(null==(n=null==(r=this.defaults.extensions)?void 0:r.childTokens)?void 0:n[e.type])?this.defaults.extensions.childTokens[e.type].forEach(r=>{const n=e[r].flat(1/0);o=o.concat(this.walkTokens(n,t))}):e.tokens&&(o=o.concat(this.walkTokens(e.tokens,t)))}}return o}use(...e){const t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(e=>{const r={...e};if(r.async=this.defaults.async||r.async||!1,e.extensions&&(e.extensions.forEach(e=>{if(!e.name)throw new Error("extension name required");if("renderer"in e){const r=t.renderers[e.name];t.renderers[e.name]=r?function(...t){let n=e.renderer.apply(this,t);return!1===n&&(n=r.apply(this,t)),n}:e.renderer}if("tokenizer"in e){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw new Error("extension level must be 'block' or 'inline'");const r=t[e.level];r?r.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&("block"===e.level?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:"inline"===e.level&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}"childTokens"in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)}),r.extensions=t),e.renderer){const t=this.defaults.renderer||new Kp(this.defaults);for(const r in e.renderer){if(!(r in t))throw new Error(`renderer '${r}' does not exist`);if(["options","parser"].includes(r))continue;const n=r,o=e.renderer[n],s=t[n];t[n]=(...e)=>{let r=o.apply(t,e);return!1===r&&(r=s.apply(t,e)),r||""}}r.renderer=t}if(e.tokenizer){const t=this.defaults.tokenizer||new Wp(this.defaults);for(const r in e.tokenizer){if(!(r in t))throw new Error(`tokenizer '${r}' does not exist`);if(["options","rules","lexer"].includes(r))continue;const n=r,o=e.tokenizer[n],s=t[n];t[n]=(...e)=>{let r=o.apply(t,e);return!1===r&&(r=s.apply(t,e)),r}}r.tokenizer=t}if(e.hooks){const t=this.defaults.hooks||new Yp;for(const r in e.hooks){if(!(r in t))throw new Error(`hook '${r}' does not exist`);if(["options","block"].includes(r))continue;const n=r,o=e.hooks[n],s=t[n];Yp.passThroughHooks.has(r)?t[n]=e=>{if(this.defaults.async)return Promise.resolve(o.call(t,e)).then(e=>s.call(t,e));const r=o.call(t,e);return s.call(t,r)}:t[n]=(...e)=>{let r=o.apply(t,e);return!1===r&&(r=s.apply(t,e)),r}}r.hooks=t}if(e.walkTokens){const t=this.defaults.walkTokens,n=e.walkTokens;r.walkTokens=function(e){let r=[];return r.push(n.call(this,e)),t&&(r=r.concat(t.call(this,e))),r}}this.defaults={...this.defaults,...r}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return Gp.lex(e,t??this.defaults)}parser(e,t){return Qp.parse(e,t??this.defaults)}parseMarkdown(e){return(t,r)=>{const n={...r},o={...this.defaults,...n},s=this.onError(!!o.silent,!!o.async);if(!0===this.defaults.async&&!1===n.async)return s(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(null==t)return s(new Error("marked(): input parameter is undefined or null"));if("string"!=typeof t)return s(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));o.hooks&&(o.hooks.options=o,o.hooks.block=e);const i=o.hooks?o.hooks.provideLexer():e?Gp.lex:Gp.lexInline,a=o.hooks?o.hooks.provideParser():e?Qp.parse:Qp.parseInline;if(o.async)return Promise.resolve(o.hooks?o.hooks.preprocess(t):t).then(e=>i(e,o)).then(e=>o.hooks?o.hooks.processAllTokens(e):e).then(e=>o.walkTokens?Promise.all(this.walkTokens(e,o.walkTokens)).then(()=>e):e).then(e=>a(e,o)).then(e=>o.hooks?o.hooks.postprocess(e):e).catch(s);try{o.hooks&&(t=o.hooks.preprocess(t));let e=i(t,o);o.hooks&&(e=o.hooks.processAllTokens(e)),o.walkTokens&&this.walkTokens(e,o.walkTokens);let r=a(e,o);return o.hooks&&(r=o.hooks.postprocess(r)),r}catch(cd){return s(cd)}}}onError(e,t){return r=>{if(r.message+="\nPlease report this to https://github.com/markedjs/marked.",e){const e="<p>An error occurred:</p><pre>"+Bp(r.message+"",!0)+"</pre>";return t?Promise.resolve(e):e}if(t)return Promise.reject(r);throw r}}};function ed(e,t){return Xp.parse(e,t)}ed.options=ed.setOptions=function(e){return Xp.setOptions(e),ed.defaults=Xp.defaults,Jc(ed.defaults),ed},ed.getDefaults=Fc,ed.defaults=Vc,ed.use=function(...e){return Xp.use(...e),ed.defaults=Xp.defaults,Jc(ed.defaults),ed},ed.walkTokens=function(e,t){return Xp.walkTokens(e,t)},ed.parseInline=Xp.parseInline,ed.Parser=Qp,ed.parser=Qp.parse,ed.Renderer=Kp,ed.TextRenderer=Zp,ed.Lexer=Gp,ed.lexer=Gp.lex,ed.Tokenizer=Wp,ed.Hooks=Yp,ed.parse=ed,ed.options,ed.setOptions,ed.use,ed.walkTokens,ed.parseInline,Qp.parse,Gp.lex;var td=Object.defineProperty,rd=Object.getOwnPropertyDescriptor,nd=(e,t,r,n)=>{for(var o,s=n>1?void 0:n?rd(t,r):t,i=e.length-1;i>=0;i--)(o=e[i])&&(s=(n?o(t,r,s):o(s))||s);return n&&s&&td(t,r,s),s};let od=class extends xe{constructor(){super(...arguments),this.spec=null,this.authOpen=!1}render(){return this.spec?ne`
257
+ <div class="header">
258
+ <button class="hamburger" @click=${()=>this.dispatchEvent(new CustomEvent("toggle-sidebar"))}>
259
+ <svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor">
260
+ <path d="M3 5h14M3 10h14M3 15h14" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" fill="none"/>
261
+ </svg>
262
+ </button>
263
+
264
+ <div class="title-area">
265
+ <span class="title">${this.spec.title}</span>
266
+ <span class="version">${this.spec.version}</span>
267
+ </div>
268
+
269
+ <div class="spacer"></div>
270
+
271
+ <div class="actions">
272
+ ${this.spec.securitySchemes.length>0?ne`
273
+ <button
274
+ class="auth-btn ${this.authOpen?"active":""}"
275
+ @click=${()=>this.dispatchEvent(new CustomEvent("toggle-auth"))}
276
+ >
277
+ <svg width="15" height="15" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round">
278
+ <rect x="3" y="7" width="10" height="7" rx="1.5"/>
279
+ <path d="M5.5 7V5a2.5 2.5 0 015 0v2"/>
280
+ </svg>
281
+ Authorize
282
+ </button>
283
+ `:null}
284
+
285
+ <button class="action-btn" @click=${()=>this.dispatchEvent(new CustomEvent("toggle-theme"))} title="Toggle theme">
286
+ <svg width="18" height="18" viewBox="0 0 18 18" fill="none" stroke="currentColor" stroke-width="1.5">
287
+ <circle cx="9" cy="9" r="4"/>
288
+ <path d="M9 1v2M9 15v2M1 9h2M15 9h2M3.3 3.3l1.4 1.4M13.3 13.3l1.4 1.4M3.3 14.7l1.4-1.4M13.3 4.7l1.4-1.4"/>
289
+ </svg>
290
+ </button>
291
+ </div>
292
+ </div>
293
+ `:ne``}};od.styles=[Pe,b`
294
+ :host {
295
+ display: block;
296
+ position: sticky;
297
+ top: 0;
298
+ z-index: 100;
299
+ background: var(--sl-color-surface);
300
+ border-bottom: 1px solid var(--sl-color-border);
301
+ backdrop-filter: blur(8px);
302
+ }
303
+
304
+ .header {
305
+ display: flex;
306
+ align-items: center;
307
+ height: var(--sl-header-height);
308
+ padding: 0 var(--sl-spacing-xl);
309
+ gap: var(--sl-spacing-md);
310
+ }
311
+
312
+ .hamburger {
313
+ display: none;
314
+ padding: var(--sl-spacing-sm);
315
+ border-radius: var(--sl-radius-md);
316
+ color: var(--sl-color-text-muted);
317
+ }
318
+
319
+ .hamburger:hover {
320
+ background: var(--sl-color-surface-raised);
321
+ }
322
+
323
+ @media (max-width: 768px) {
324
+ .hamburger { display: flex; }
325
+ }
326
+
327
+ .title-area {
328
+ display: flex;
329
+ align-items: center;
330
+ gap: var(--sl-spacing-sm);
331
+ min-width: 0;
332
+ }
333
+
334
+ .title {
335
+ font-size: var(--sl-font-size-lg);
336
+ font-weight: 700;
337
+ color: var(--sl-color-text);
338
+ white-space: nowrap;
339
+ overflow: hidden;
340
+ text-overflow: ellipsis;
341
+ }
342
+
343
+ .version {
344
+ font-size: var(--sl-font-size-xs);
345
+ font-weight: 600;
346
+ padding: 2px 8px;
347
+ border-radius: var(--sl-radius-full);
348
+ background: var(--sl-color-primary);
349
+ color: var(--sl-color-primary-text);
350
+ white-space: nowrap;
351
+ }
352
+
353
+ .spacer { flex: 1; }
354
+
355
+ .actions {
356
+ display: flex;
357
+ align-items: center;
358
+ gap: var(--sl-spacing-xs);
359
+ }
360
+
361
+ .action-btn {
362
+ display: flex;
363
+ align-items: center;
364
+ justify-content: center;
365
+ width: 36px;
366
+ height: 36px;
367
+ border-radius: var(--sl-radius-md);
368
+ color: var(--sl-color-text-muted);
369
+ transition: all var(--sl-transition-fast);
370
+ }
371
+
372
+ .action-btn:hover {
373
+ background: var(--sl-color-surface-raised);
374
+ color: var(--sl-color-text);
375
+ }
376
+
377
+ .auth-btn {
378
+ display: flex;
379
+ align-items: center;
380
+ gap: 6px;
381
+ font-size: var(--sl-font-size-sm);
382
+ font-weight: 600;
383
+ height: 34px;
384
+ padding: 0 14px;
385
+ border-radius: var(--sl-radius-full);
386
+ border: 1.5px solid var(--sl-color-border);
387
+ color: var(--sl-color-text-secondary);
388
+ background: transparent;
389
+ letter-spacing: 0.01em;
390
+ transition: all var(--sl-transition-fast);
391
+ }
392
+
393
+ .auth-btn:hover {
394
+ border-color: var(--sl-color-primary);
395
+ color: var(--sl-color-primary);
396
+ background: var(--sl-color-sidebar-active);
397
+ }
398
+
399
+ .auth-btn.active {
400
+ background: var(--sl-color-primary);
401
+ color: var(--sl-color-primary-text);
402
+ border-color: var(--sl-color-primary);
403
+ box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
404
+ }
405
+
406
+ .auth-btn.active:hover {
407
+ background: var(--sl-color-primary-hover);
408
+ border-color: var(--sl-color-primary-hover);
409
+ box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3);
410
+ }
411
+ `],nd([je({type:Object})],od.prototype,"spec",2),nd([je({type:Boolean})],od.prototype,"authOpen",2),od=nd([_e("sl-header")],od);var sd=Object.defineProperty,id=Object.getOwnPropertyDescriptor,ad=(e,t,r,n)=>{for(var o,s=n>1?void 0:n?id(t,r):t,i=e.length-1;i>=0;i--)(o=e[i])&&(s=(n?o(t,r,s):o(s))||s);return n&&s&&sd(t,r,s),s};let ld=class extends xe{constructor(){super(...arguments),this.tagGroups=[],this.activeOperationId="",this.open=!1,this.searchEngine=null,this._searchQuery="",this._searchResults=[]}focusSearch(){var e;null==(e=this._searchInput)||e.focus()}_handleSearchInput(e){this._searchQuery=e.target.value,this.searchEngine&&this._searchQuery.trim()?this._searchResults=this.searchEngine.search(this._searchQuery).slice(0,30):this._searchResults=[]}_navigate(e){this._searchQuery="",this._searchResults=[],this.dispatchEvent(new CustomEvent("navigate",{detail:e})),this.dispatchEvent(new CustomEvent("close-sidebar"))}_navigateIntro(){this._searchQuery="",this._searchResults=[],this.dispatchEvent(new CustomEvent("navigate-intro")),this.dispatchEvent(new CustomEvent("close-sidebar"))}_isIntroActive(){return!this.activeOperationId}render(){const e=this._searchQuery.trim().length>0;return ne`
412
+ <div class="overlay" @click=${()=>this.dispatchEvent(new CustomEvent("close-sidebar"))}></div>
413
+ <nav class="sidebar">
414
+ <div class="search-box">
415
+ <div class="search-input-wrap">
416
+ <svg class="search-icon" width="14" height="14" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5">
417
+ <circle cx="7" cy="7" r="4.5"/>
418
+ <path d="M10.5 10.5L14 14" stroke-linecap="round"/>
419
+ </svg>
420
+ <input
421
+ class="search-input"
422
+ type="text"
423
+ placeholder="Search endpoints…"
424
+ .value=${this._searchQuery}
425
+ @input=${this._handleSearchInput}
426
+ />
427
+ <span class="search-shortcut">⌘K</span>
428
+ </div>
429
+ </div>
430
+
431
+ <div class="nav-list">
432
+ ${e?ne`
433
+ ${this._searchResults.length>0?this._searchResults.map(e=>ne`
434
+ <a
435
+ class="op-link ${e.operationId===this.activeOperationId?"active":""}"
436
+ @click=${()=>this._navigate(e.operationId)}
437
+ title="${e.method.toUpperCase()} ${e.path}"
438
+ >
439
+ <span class="method-badge method-${e.method}">${e.method}</span>
440
+ <span class="op-path">${e.summary||e.path}</span>
441
+ </a>
442
+ `):ne`<div class="no-results">No matching endpoints</div>`}
443
+ `:ne`
444
+ <a class="intro-link ${this._isIntroActive()?"active":""}" @click=${this._navigateIntro}>
445
+ <svg width="14" height="14" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5">
446
+ <path d="M8 2v12M4 6l4-4 4 4" stroke-linecap="round" stroke-linejoin="round"/>
447
+ </svg>
448
+ Introduction
449
+ </a>
450
+ ${this.tagGroups.map(e=>ne`
451
+ <div class="tag-group">
452
+ <div class="tag-header">${e.name}</div>
453
+ ${e.operations.map(e=>ne`
454
+ <a
455
+ class="op-link ${e.operationId===this.activeOperationId?"active":""}"
456
+ @click=${()=>this._navigate(e.operationId)}
457
+ title="${e.method.toUpperCase()} ${e.path}"
458
+ >
459
+ <span class="method-badge method-${e.method}">${e.method}</span>
460
+ <span class="op-path">${e.summary||e.path}</span>
461
+ </a>
462
+ `)}
463
+ </div>
464
+ `)}
465
+ `}
466
+ </div>
467
+ </nav>
468
+ `}};
469
+ /**
470
+ * @license
471
+ * Copyright 2017 Google LLC
472
+ * SPDX-License-Identifier: BSD-3-Clause
473
+ */
474
+ var cd;ld.styles=[Pe,b`
475
+ :host {
476
+ display: block;
477
+ }
478
+
479
+ .sidebar {
480
+ position: sticky;
481
+ top: var(--sl-header-height);
482
+ width: var(--sl-sidebar-width);
483
+ height: calc(100vh - var(--sl-header-height));
484
+ overflow-y: auto;
485
+ overflow-x: hidden;
486
+ background: var(--sl-color-sidebar-bg);
487
+ border-right: 1px solid var(--sl-color-border);
488
+ padding: 0;
489
+ flex-shrink: 0;
490
+ scrollbar-width: thin;
491
+ scrollbar-color: var(--sl-color-border) transparent;
492
+ display: flex;
493
+ flex-direction: column;
494
+ }
495
+
496
+ .sidebar::-webkit-scrollbar {
497
+ width: 4px;
498
+ }
499
+ .sidebar::-webkit-scrollbar-thumb {
500
+ background: var(--sl-color-border);
501
+ border-radius: 2px;
502
+ }
503
+
504
+ .overlay {
505
+ display: none;
506
+ }
507
+
508
+ @media (max-width: 768px) {
509
+ .sidebar {
510
+ position: fixed;
511
+ top: 0;
512
+ left: 0;
513
+ height: 100vh;
514
+ z-index: 200;
515
+ transform: translateX(-100%);
516
+ transition: transform var(--sl-transition-base);
517
+ box-shadow: var(--sl-shadow-xl);
518
+ }
519
+
520
+ :host([open]) .sidebar {
521
+ transform: translateX(0);
522
+ }
523
+
524
+ .overlay {
525
+ display: block;
526
+ position: fixed;
527
+ inset: 0;
528
+ background: var(--sl-color-overlay);
529
+ z-index: 199;
530
+ opacity: 0;
531
+ pointer-events: none;
532
+ transition: opacity var(--sl-transition-base);
533
+ }
534
+
535
+ :host([open]) .overlay {
536
+ opacity: 1;
537
+ pointer-events: auto;
538
+ }
539
+ }
540
+
541
+ /* ── Search ────────────────────────── */
542
+ .search-box {
543
+ padding: var(--sl-spacing-md) var(--sl-spacing-md) var(--sl-spacing-sm);
544
+ flex-shrink: 0;
545
+ }
546
+
547
+ .search-input-wrap {
548
+ display: flex;
549
+ align-items: center;
550
+ gap: var(--sl-spacing-sm);
551
+ padding: 6px 10px;
552
+ border: 1px solid var(--sl-color-border);
553
+ border-radius: var(--sl-radius-md);
554
+ background: var(--sl-color-bg);
555
+ transition: border-color var(--sl-transition-fast);
556
+ }
557
+
558
+ .search-input-wrap:focus-within {
559
+ border-color: var(--sl-color-primary);
560
+ }
561
+
562
+ .search-icon {
563
+ color: var(--sl-color-text-muted);
564
+ flex-shrink: 0;
565
+ }
566
+
567
+ .search-input {
568
+ flex: 1;
569
+ border: none;
570
+ background: none;
571
+ color: var(--sl-color-text);
572
+ font-size: var(--sl-font-size-sm);
573
+ outline: none;
574
+ min-width: 0;
575
+ }
576
+
577
+ .search-input::placeholder {
578
+ color: var(--sl-color-text-muted);
579
+ }
580
+
581
+ .search-shortcut {
582
+ font-size: 0.625rem;
583
+ padding: 1px 5px;
584
+ border-radius: 3px;
585
+ background: var(--sl-color-surface-raised);
586
+ border: 1px solid var(--sl-color-border);
587
+ color: var(--sl-color-text-muted);
588
+ font-family: var(--sl-font-mono);
589
+ flex-shrink: 0;
590
+ }
591
+
592
+ /* ── Nav ───────────────────────────── */
593
+ .nav-list {
594
+ flex: 1;
595
+ overflow-y: auto;
596
+ padding: var(--sl-spacing-xs) 0 var(--sl-spacing-md);
597
+ scrollbar-width: thin;
598
+ scrollbar-color: var(--sl-color-border) transparent;
599
+ }
600
+
601
+ .nav-list::-webkit-scrollbar {
602
+ width: 4px;
603
+ }
604
+ .nav-list::-webkit-scrollbar-thumb {
605
+ background: var(--sl-color-border);
606
+ border-radius: 2px;
607
+ }
608
+
609
+ .intro-link {
610
+ display: flex;
611
+ align-items: center;
612
+ gap: var(--sl-spacing-sm);
613
+ padding: 8px var(--sl-spacing-lg);
614
+ font-size: var(--sl-font-size-sm);
615
+ font-weight: 600;
616
+ color: var(--sl-color-text-secondary);
617
+ cursor: pointer;
618
+ transition: all var(--sl-transition-fast);
619
+ border-left: 2px solid transparent;
620
+ }
621
+
622
+ .intro-link:hover {
623
+ background: var(--sl-color-sidebar-hover);
624
+ color: var(--sl-color-text);
625
+ }
626
+
627
+ .intro-link.active {
628
+ background: var(--sl-color-sidebar-active);
629
+ color: var(--sl-color-primary);
630
+ border-left-color: var(--sl-color-primary);
631
+ }
632
+
633
+ .tag-group {
634
+ margin-bottom: var(--sl-spacing-xs);
635
+ }
636
+
637
+ .tag-header {
638
+ display: flex;
639
+ align-items: center;
640
+ padding: var(--sl-spacing-sm) var(--sl-spacing-lg);
641
+ font-size: var(--sl-font-size-xs);
642
+ font-weight: 600;
643
+ text-transform: uppercase;
644
+ letter-spacing: 0.05em;
645
+ color: var(--sl-color-text-muted);
646
+ cursor: default;
647
+ user-select: none;
648
+ }
649
+
650
+ .op-link {
651
+ display: flex;
652
+ align-items: center;
653
+ gap: var(--sl-spacing-sm);
654
+ padding: 5px var(--sl-spacing-lg) 5px calc(var(--sl-spacing-lg) + 4px);
655
+ font-size: var(--sl-font-size-sm);
656
+ color: var(--sl-color-text-secondary);
657
+ cursor: pointer;
658
+ transition: all var(--sl-transition-fast);
659
+ text-decoration: none;
660
+ border-left: 2px solid transparent;
661
+ }
662
+
663
+ .op-link:hover {
664
+ background: var(--sl-color-sidebar-hover);
665
+ color: var(--sl-color-text);
666
+ }
667
+
668
+ .op-link.active {
669
+ background: var(--sl-color-sidebar-active);
670
+ color: var(--sl-color-primary);
671
+ border-left-color: var(--sl-color-primary);
672
+ }
673
+
674
+ .method-badge {
675
+ display: inline-flex;
676
+ align-items: center;
677
+ justify-content: center;
678
+ width: 42px;
679
+ min-width: 42px;
680
+ padding: 1px 0;
681
+ border-radius: var(--sl-radius-sm);
682
+ font-size: 0.625rem;
683
+ font-weight: 700;
684
+ font-family: var(--sl-font-mono);
685
+ text-transform: uppercase;
686
+ letter-spacing: 0.02em;
687
+ }
688
+
689
+ .method-get { background: var(--sl-color-get-bg); color: var(--sl-color-get); }
690
+ .method-post { background: var(--sl-color-post-bg); color: var(--sl-color-post); }
691
+ .method-put { background: var(--sl-color-put-bg); color: var(--sl-color-put); }
692
+ .method-delete { background: var(--sl-color-delete-bg); color: var(--sl-color-delete); }
693
+ .method-patch { background: var(--sl-color-patch-bg); color: var(--sl-color-patch); }
694
+ .method-options,
695
+ .method-head,
696
+ .method-trace { background: var(--sl-color-options-bg); color: var(--sl-color-options); }
697
+
698
+ .op-path {
699
+ overflow: hidden;
700
+ text-overflow: ellipsis;
701
+ white-space: nowrap;
702
+ font-size: var(--sl-font-size-xs);
703
+ }
704
+
705
+ .no-results {
706
+ padding: var(--sl-spacing-md) var(--sl-spacing-lg);
707
+ font-size: var(--sl-font-size-xs);
708
+ color: var(--sl-color-text-muted);
709
+ text-align: center;
710
+ }
711
+ `],ad([je({type:Array})],ld.prototype,"tagGroups",2),ad([je({type:String})],ld.prototype,"activeOperationId",2),ad([je({type:Boolean,reflect:!0})],ld.prototype,"open",2),ad([je({type:Object})],ld.prototype,"searchEngine",2),ad([Oe()],ld.prototype,"_searchQuery",2),ad([Oe()],ld.prototype,"_searchResults",2),ad([(cd=".search-input",(e,t,r)=>((e,t,r)=>(r.configurable=!0,r.enumerable=!0,Reflect.decorate&&"object"!=typeof t&&Object.defineProperty(e,t,r),r))(e,t,{get(){return(null==(e=this.renderRoot)?void 0:e.querySelector(cd))??null;var e}}))],ld.prototype,"_searchInput",2),ld=ad([_e("sl-sidebar")],ld);var pd=Object.defineProperty,dd=Object.getOwnPropertyDescriptor,ud=(e,t,r,n)=>{for(var o,s=n>1?void 0:n?dd(t,r):t,i=e.length-1;i>=0;i--)(o=e[i])&&(s=(n?o(t,r,s):o(s))||s);return n&&s&&pd(t,r,s),s};let fd=class extends xe{constructor(){super(...arguments),this.parameters=[]}_getType(e){if(!e)return"any";if("array"===e.type&&e.items){return`${e.items.type??"any"}[]`}return e.type??(e.oneOf?"oneOf":e.anyOf?"anyOf":"any")}_getEnum(e){return e?e.enum??[]:[]}render(){const e=new Map;for(const t of this.parameters)e.has(t.in)||e.set(t.in,[]),e.get(t.in).push(t);return ne`
712
+ ${["path","query","header","cookie"].filter(t=>e.has(t)).map(t=>ne`
713
+ <div class="param-group">
714
+ <div class="param-group-label">${t} parameters</div>
715
+ ${e.get(t).map(e=>ne`
716
+ <div class="param-row">
717
+ <div class="param-name-cell">
718
+ <span class="param-name">${e.name}</span>
719
+ ${e.required?ne`<span class="param-required">required</span>`:null}
720
+ ${e.deprecated?ne`<span class="param-deprecated">deprecated</span>`:null}
721
+ </div>
722
+ <div class="param-type">${this._getType(e.schema)}</div>
723
+ <div>
724
+ <div class="param-desc">${e.description}</div>
725
+ ${void 0!==e.example?ne`
726
+ <div class="param-example">Example: <code>${JSON.stringify(e.example)}</code></div>
727
+ `:null}
728
+ ${this._getEnum(e.schema).length>0?ne`
729
+ <div class="param-enum">
730
+ ${this._getEnum(e.schema).map(e=>ne`<span class="enum-value">${e}</span>`)}
731
+ </div>
732
+ `:null}
733
+ </div>
734
+ </div>
735
+ `)}
736
+ </div>
737
+ `)}
738
+ `}};fd.styles=[Pe,b`
739
+ :host {
740
+ display: block;
741
+ }
742
+
743
+ .param-group {
744
+ margin-bottom: var(--sl-spacing-md);
745
+ }
746
+
747
+ .param-group-label {
748
+ font-size: var(--sl-font-size-xs);
749
+ font-weight: 600;
750
+ text-transform: uppercase;
751
+ letter-spacing: 0.04em;
752
+ color: var(--sl-color-text-muted);
753
+ margin-bottom: var(--sl-spacing-xs);
754
+ padding: var(--sl-spacing-xs) 0;
755
+ }
756
+
757
+ .param-row {
758
+ display: grid;
759
+ grid-template-columns: 180px 100px 1fr;
760
+ gap: var(--sl-spacing-sm);
761
+ padding: var(--sl-spacing-sm) 0;
762
+ border-bottom: 1px solid var(--sl-color-border);
763
+ font-size: var(--sl-font-size-sm);
764
+ align-items: start;
765
+ }
766
+
767
+ .param-row:last-child {
768
+ border-bottom: none;
769
+ }
770
+
771
+ .param-name-cell {
772
+ display: flex;
773
+ flex-direction: column;
774
+ gap: 2px;
775
+ }
776
+
777
+ .param-name {
778
+ font-family: var(--sl-font-mono);
779
+ font-weight: 500;
780
+ color: var(--sl-color-text);
781
+ word-break: break-all;
782
+ }
783
+
784
+ .param-required {
785
+ font-size: var(--sl-font-size-xs);
786
+ color: var(--sl-color-badge-required);
787
+ font-weight: 600;
788
+ }
789
+
790
+ .param-deprecated {
791
+ font-size: var(--sl-font-size-xs);
792
+ color: var(--sl-color-badge-deprecated);
793
+ font-weight: 600;
794
+ }
795
+
796
+ .param-type {
797
+ font-family: var(--sl-font-mono);
798
+ font-size: var(--sl-font-size-xs);
799
+ color: var(--sl-color-text-muted);
800
+ padding-top: 2px;
801
+ }
802
+
803
+ .param-desc {
804
+ color: var(--sl-color-text-secondary);
805
+ line-height: 1.5;
806
+ }
807
+
808
+ .param-example {
809
+ font-size: var(--sl-font-size-xs);
810
+ color: var(--sl-color-text-muted);
811
+ margin-top: 2px;
812
+ }
813
+
814
+ .param-example code {
815
+ background: var(--sl-color-code-bg);
816
+ padding: 1px 4px;
817
+ border-radius: var(--sl-radius-sm);
818
+ font-size: var(--sl-font-size-xs);
819
+ }
820
+
821
+ .param-enum {
822
+ display: flex;
823
+ flex-wrap: wrap;
824
+ gap: 4px;
825
+ margin-top: 4px;
826
+ }
827
+
828
+ .enum-value {
829
+ font-family: var(--sl-font-mono);
830
+ font-size: 0.6875rem;
831
+ padding: 1px 6px;
832
+ border-radius: var(--sl-radius-sm);
833
+ background: var(--sl-color-surface-raised);
834
+ color: var(--sl-color-text-secondary);
835
+ }
836
+
837
+ @media (max-width: 768px) {
838
+ .param-row {
839
+ grid-template-columns: 1fr;
840
+ gap: var(--sl-spacing-xs);
841
+ }
842
+ }
843
+ `],ud([je({type:Array})],fd.prototype,"parameters",2),fd=ud([_e("sl-parameters")],fd);const hd=Symbol("skip");function md(e){return e<10?"0"+e:e}function gd(e,t){return t>e.length?e.repeat(Math.trunc(t/e.length)+1).substring(0,t):e}function yd(...e){const t=e=>e&&"object"==typeof e;return e.reduce((e,r)=>(Object.keys(r||{}).forEach(n=>{const o=e[n],s=r[n];t(o)&&t(s)?e[n]=yd(o,s):e[n]=s}),e),Array.isArray(e[e.length-1])?[]:{})}function vd(e){return{value:"object"===e?{}:"array"===e?[]:void 0}}function bd(e,t){t&&e.pop()}function $d(e,t={},r={}){var n,o;const{value:s}=e,{propertyName:i}=r,{name:a,prefix:l,namespace:c}=function(e){var t,r,n,o,s;return{name:(null==(t=null==e?void 0:e.xml)?void 0:t.name)||"",prefix:(null==(r=null==e?void 0:e.xml)?void 0:r.prefix)||"",namespace:(null==(n=null==e?void 0:e.xml)?void 0:n.namespace)||null,attribute:(null==(o=null==e?void 0:e.xml)?void 0:o.attribute)??!1,wrapped:(null==(s=null==e?void 0:e.xml)?void 0:s.wrapped)??!1}}(t),p=function(e){const t=null==e?void 0:e.xml;return(null==t?void 0:t.nodeType)?t.nodeType:!0===(null==t?void 0:t.attribute)?"attribute":!0===(null==t?void 0:t.wrapped)&&"array"===(null==e?void 0:e.type)?"element":(null==e?void 0:e.$ref)||(null==e?void 0:e.$dynamicRef)||"array"===(null==e?void 0:e.type)||(null==e?void 0:e.oneOf)||(null==e?void 0:e.anyOf)||(null==e?void 0:e.allOf)?"none":"element"}(t);let d=a||i?`${l?l+":":""}${a||i}`:null,u="object"==typeof s?Array.isArray(s)?[...s]:{...s}:s;switch(p){case"attribute":d&&(d=`$${d}`);break;case"text":d="#text";break;case"cdata":d="#cdata";break;case"none":"array"===t.type?(d=null,void 0!==t.example&&(d=(null==(o=null==(n=t.items)?void 0:n.xml)?void 0:o.name)||d)):d=null;break;default:"array"===t.type&&Array.isArray(u)&&(u={[d]:[...u]})}return c&&"text"!==p&&"cdata"!==p&&"none"!==p&&("object"==typeof u?u["$xmlns"+(l?":"+l:"")]=c:u={["$xmlns"+(l?":"+l:"")]:c,"#text":u}),{propertyName:d,value:u}}const xd={multipleOf:"number",maximum:"number",exclusiveMaximum:"number",minimum:"number",exclusiveMinimum:"number",maxLength:"string",minLength:"string",pattern:"string",items:"array",maxItems:"array",minItems:"array",uniqueItems:"array",additionalItems:"array",maxProperties:"object",minProperties:"object",required:"object",additionalProperties:"object",properties:"object",patternProperties:"object",dependencies:"object"};function wd(e){if(void 0!==e.type)return Array.isArray(e.type)?0===e.type.length?null:e.type[0]:e.type;const t=Object.keys(xd);for(var r=0;r<t.length;r++){let n=t[r],o=xd[n];if(void 0!==e[n])return o}return null}var _d,kd,Sd,jd;var Od=function(){if(jd)return Sd;jd=1;var e=function(){if(kd)return _d;kd=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString;return _d=function(r,n,o){if("[object Function]"!==t.call(n))throw new TypeError("iterator must be a function");var s=r.length;if(s===+s)for(var i=0;i<s;i++)n.call(o,r[i],i,r);else for(var a in r)e.call(r,a)&&n.call(o,r[a],a,r)}}();function t(e,r,n){if(3===arguments.length)return t.set(e,r,n);if(2===arguments.length)return t.get(e,r);var o=t.bind(t,e);for(var s in t)t.hasOwnProperty(s)&&(o[s]=t[s].bind(o,e));return o}return Sd=t,t.get=function(e,r){for(var n=Array.isArray(r)?r:t.parse(r),o=0;o<n.length;++o){var s=n[o];if("object"!=typeof e||!(s in e))throw new Error("Invalid reference token: "+s);e=e[s]}return e},t.set=function(e,r,n){var o=Array.isArray(r)?r:t.parse(r),s=o[0];if(0===o.length)throw Error("Can not set the root object");for(var i=0;i<o.length-1;++i){var a=o[i];"string"!=typeof a&&"number"!=typeof a&&(a=String(a)),"__proto__"!==a&&"constructor"!==a&&"prototype"!==a&&("-"===a&&Array.isArray(e)&&(a=e.length),s=o[i+1],a in e||(s.match(/^(\d+|-)$/)?e[a]=[]:e[a]={}),e=e[a])}return"-"===s&&Array.isArray(e)&&(s=e.length),e[s]=n,this},t.remove=function(e,r){var n=Array.isArray(r)?r:t.parse(r),o=n[n.length-1];if(void 0===o)throw new Error('Invalid JSON pointer for remove: "'+r+'"');var s=t.get(e,n.slice(0,-1));if(Array.isArray(s)){var i=+o;if(""===o&&isNaN(i))throw new Error('Invalid array index: "'+o+'"');Array.prototype.splice.call(s,i,1)}else delete s[o]},t.dict=function(e,r){var n={};return t.walk(e,function(e,t){n[t]=e},r),n},t.walk=function(r,n,o){var s=[];o=o||function(e){var t=Object.prototype.toString.call(e);return"[object Object]"===t||"[object Array]"===t},function r(i){e(i,function(e,i){s.push(String(i)),o(e)?r(e):n(e,t.compile(s)),s.pop()})}(r)},t.has=function(e,r){try{t.get(e,r)}catch(cd){return!1}return!0},t.escape=function(e){return e.toString().replace(/~/g,"~0").replace(/\//g,"~1")},t.unescape=function(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")},t.parse=function(e){if(""===e)return[];if("/"!==e.charAt(0))throw new Error("Invalid JSON pointer: "+e);return e.substring(1).split(/\//).map(t.unescape)},t.compile=function(e){return 0===e.length?"":"/"+e.map(t.escape).join("/")},Sd}();const Pd=s(Od);let Ed={},Td=[];function Ad(e){let t;return void 0!==e.const?t=e.const:void 0!==e.examples&&e.examples.length?t=e.examples[0]:void 0!==e.enum&&e.enum.length?t=e.enum[0]:void 0!==e.default&&(t=e.default),t}function Cd(e){const t=Ad(e);if(void 0!==t)return{value:t,readOnly:e.readOnly,writeOnly:e.writeOnly,type:null}}function Id(e,t,r,n){if(n){if(Td.includes(e))return vd(wd(e));Td.push(e)}if(n&&n.depth>t.maxSampleDepth)return bd(Td,n),vd(wd(e));if(e.$ref){if(!r)throw new Error("Your schema contains $ref. You must provide full specification in the third parameter.");let o=decodeURIComponent(e.$ref);o.startsWith("#")&&(o=o.substring(1));const s=Pd.get(r,o);let i;if(!0!==Ed[o]){Ed[o]=!0;const e=Id(s,t,r,n);if("xml"===t.format){const t=o.split("/").pop(),r={...n,propertyName:(null==n?void 0:n.propertyName)||t},{propertyName:a,value:l}=$d(e,s,r);i={...e,value:{[a||"root"]:l}}}else i=e;Ed[o]=!1}else{i=vd(wd(s))}return bd(Td,n),i}if(void 0!==e.example)return bd(Td,n),{value:e.example,readOnly:e.readOnly,writeOnly:e.writeOnly,type:e.type};if(void 0!==e.allOf)return bd(Td,n),Cd(e)||function(e,t,r,n,o){let s=Id(e,r,n);const i=[];for(let a of t){const{type:e,readOnly:t,writeOnly:l,value:c}=Id({type:s.type,...a},r,n,{...o,isAllOfChild:!0});s.type&&e&&e!==s.type&&(console.warn("allOf: schemas with different types can't be merged"),s.type=e),s.type=s.type||e,s.readOnly=s.readOnly||t,s.writeOnly=s.writeOnly||l,null!=c&&i.push(c)}if("object"===s.type){s.value=yd(s.value||{},...i.filter(e=>"object"==typeof e));for(const e in s.value)s.value[e]===hd&&delete s.value[e];return s}{"array"===s.type&&(r.quiet||console.warn('OpenAPI Sampler: found allOf with "array" type. Result may be incorrect'));const e=i[i.length-1];return s.value=null!=e?e:s.value,s}}({...e,allOf:void 0},e.allOf,t,r,n);if(e.oneOf&&e.oneOf.length){e.anyOf&&(t.quiet||console.warn("oneOf and anyOf are not supported on the same level. Skipping anyOf")),bd(Td,n);return i(e,Object.assign({readOnly:e.readOnly,writeOnly:e.writeOnly},e.oneOf[0]))}if(e.anyOf&&e.anyOf.length){bd(Td,n);return i(e,Object.assign({readOnly:e.readOnly,writeOnly:e.writeOnly},e.anyOf[0]))}if(e.if&&e.then){bd(Td,n);const{if:o,then:s,...i}=e;return Id(yd(i,o,s),t,r,n)}let o=Ad(e),s=null;if(void 0===o){o=null,s=e.type,Array.isArray(s)&&e.type.length>0&&(s=e.type[0]),s||(s=wd(e));let i=nu[s];i&&(o=i(e,t,r,n))}return bd(Td,n),{value:o,readOnly:e.readOnly,writeOnly:e.writeOnly,type:s};function i(e,o){const s=Cd(e);if(void 0!==s)return s;const i=Id({...e,oneOf:void 0,anyOf:void 0},t,r,n),a=Id(o,t,r,n);if("object"==typeof i.value&&"object"==typeof a.value){const e=yd(i.value,a.value);return{...a,value:e}}return a}}function Rd(e){let t=0;if("number"!==e.type||"float"!==e.format&&"double"!==e.format||(t=.1),"boolean"==typeof e.exclusiveMinimum||"boolean"==typeof e.exclusiveMaximum){if(e.maximum&&e.minimum)return t=e.exclusiveMinimum?Math.floor(e.minimum)+1:e.minimum,(e.exclusiveMaximum&&t>=e.maximum||!e.exclusiveMaximum&&t>e.maximum)&&(t=(e.maximum+e.minimum)/2),t;if(e.minimum)return e.exclusiveMinimum?Math.floor(e.minimum)+1:e.minimum;if(e.maximum)return e.exclusiveMaximum?e.maximum>0?0:Math.floor(e.maximum)-1:e.maximum>0?0:e.maximum}else{if(e.minimum)return e.minimum;e.exclusiveMinimum?(t=Math.floor(e.exclusiveMinimum)+1,t===e.exclusiveMaximum&&(t=(t+Math.floor(e.exclusiveMaximum)-1)/2)):e.exclusiveMaximum?t=Math.floor(e.exclusiveMaximum)-1:e.maximum&&(t=e.maximum)}return t}function Nd(e,t){return e}function Md(e,t,r){let n=1;if(e)switch(e){case"?":n=0;break;case"*":n=Nd(0);break;case"+":n=Nd(1);break;default:throw new Error("Unknown quantifier symbol provided.")}else null!=t&&null!=r?n=Nd(parseInt(t)):null!=t&&null==r&&(n=parseInt(t));return n}function qd({min:e,max:t,omitTime:r,omitDate:n}){let o=function(e,t,r){var n=r?"":e.getUTCFullYear()+"-"+md(e.getUTCMonth()+1)+"-"+md(e.getUTCDate());return t||(n+="T"+md(e.getUTCHours())+":"+md(e.getUTCMinutes())+":"+md(e.getUTCSeconds())+"Z"),n}(new Date("2019-08-24T14:15:22.123Z"),r,n);return o.length<e&&console.warn(`Using minLength = ${e} is incorrect with format "date-time"`),t&&o.length>t&&console.warn(`Using maxLength = ${t} is incorrect with format "date-time"`),o}function zd(e,t,r,n,o=!1){if(n&&o)return function(e){var t;let r,n,o,s=!1;e instanceof RegExp&&(s=e.flags.includes("i"),e=(null==(t=(e=e.toString()).match(/\/(.+?)\//))?void 0:t[1])??"");const i=/([.A-Za-z0-9])(?:\{(\d+)(?:\,(\d+)|)\}|(\?|\*|\+))(?![^[]*]|[^{]*})/;let a=(e=e.replace(/^(\^)?(.*?)(\$)?$/,"$2")).match(i);for(;null!=a;){const t=a[2],r=a[3];o=Md(a[4],t,r),e=e.slice(0,a.index)+a[1].repeat(o)+e.slice(a.index+a[0].length),a=e.match(i)}const l=/(\d-\d|\w-\w|\d|\w|[-!@#$&()`.+,/"])/,c=/\[(\^|)(-|)(.+?)\](?:\{(\d+)(?:\,(\d+)|)\}|(\?|\*|\+)|)/;for(a=e.match(c);null!=a;){const t="^"===a[1],i="-"===a[2],p=a[4],d=a[5],u=a[6],f=[];let h=a[3],m=h.match(l);for(i&&f.push(45);null!=m;){if(-1===m[0].indexOf("-"))s&&isNaN(Number(m[0]))?(f.push(m[0].toUpperCase().charCodeAt(0)),f.push(m[0].toLowerCase().charCodeAt(0))):f.push(m[0].charCodeAt(0));else{const e=m[0].split("-").map(e=>e.charCodeAt(0));if(r=e[0],n=e[1],r>n)throw new Error("Character range provided is out of order.");for(let t=r;t<=n;t++)if(s&&isNaN(Number(String.fromCharCode(t)))){const e=String.fromCharCode(t);f.push(e.toUpperCase().charCodeAt(0)),f.push(e.toLowerCase().charCodeAt(0))}else f.push(t)}h=h.substring(m[0].length),m=h.match(l)}if(o=Md(u,p,d),t){let e=-1;for(let t=48;t<=57;t++)e=f.indexOf(t),e>-1?f.splice(e,1):f.push(t);for(let t=65;t<=90;t++)e=f.indexOf(t),e>-1?f.splice(e,1):f.push(t);for(let t=97;t<=122;t++)e=f.indexOf(t),e>-1?f.splice(e,1):f.push(t)}const g=Array.from({length:o},()=>String.fromCharCode(f[Nd(0)])).join("");a=(e=e.slice(0,a.index)+g+e.slice(a.index+a[0].length)).match(c)}const p=/(.)\{(\d+)\,(\d+)\}/;for(a=e.match(p);null!=a;){if(r=parseInt(a[2]),n=parseInt(a[3]),r>n)throw new Error("Numbers out of order in {} quantifier.");o=Nd(r),e=e.slice(0,a.index)+a[1].repeat(o)+e.slice(a.index+a[0].length),a=e.match(p)}const d=/(.)\{(\d+)\}/;for(a=e.match(d);null!=a;)o=parseInt(a[2]),e=e.slice(0,a.index)+a[1].repeat(o)+e.slice(a.index+a[0].length),a=e.match(d);return e}(n);let s=gd("string",e);return t&&s.length>t&&(s=s.substring(0,t)),s}const Ud={email:function(){return"user@example.com"},"idn-email":function(){return"пошта@укр.нет"},password:function(e,t){let r="pa$$word";return e>r.length&&(r+="_",r+=gd("qwerty!@#$%^123456",e-r.length).substring(0,e-r.length)),r},"date-time":function(e,t){return qd({min:e,max:t,omitTime:!1,omitDate:!1})},date:function(e,t){return qd({min:e,max:t,omitTime:!0,omitDate:!1})},time:function(e,t){return qd({min:e,max:t,omitTime:!1,omitDate:!0}).slice(1)},ipv4:function(){return"192.168.0.1"},ipv6:function(){return"2001:0db8:85a3:0000:0000:8a2e:0370:7334"},hostname:function(){return"example.com"},"idn-hostname":function(){return"приклад.укр"},iri:function(){return"http://example.com/entity/1"},"iri-reference":function(){return"/entity/1"},uri:function(){return"http://example.com"},"uri-reference":function(){return"../dictionary"},"uri-template":function(){return"http://example.com/{endpoint}"},uuid:function(e,t,r){return a=function(e){var t=0;if(0==e.length)return t;for(var r=0;r<e.length;r++)t=(t<<5)-t+e.charCodeAt(r),t&=t;return t}(r||"id"),n=a,o=a,s=a,i=a,l=function(){var e=(n|=0)-((o|=0)<<27|o>>>5)|0;return n=o^((s|=0)<<17|s>>>15),o=s+(i|=0)|0,s=i+e|0,((i=n+e|0)>>>0)/4294967296},"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{var t=16*l()%16|0;return("x"==e?t:3&t|8).toString(16)});var n,o,s,i,a,l},default:zd,"json-pointer":function(){return"/json/pointer"},"relative-json-pointer":function(){return"1/relative/json/pointer"},regex:function(){return"/regex/"}};class Ld{constructor(e,t={}){this.pattern=e,this.separator=t.separator||".",this.segments=this._parse(e),this._hasDeepWildcard=this.segments.some(e=>"deep-wildcard"===e.type),this._hasAttributeCondition=this.segments.some(e=>void 0!==e.attrName),this._hasPositionSelector=this.segments.some(e=>void 0!==e.position)}_parse(e){const t=[];let r=0,n="";for(;r<e.length;)e[r]===this.separator?r+1<e.length&&e[r+1]===this.separator?(n.trim()&&(t.push(this._parseSegment(n.trim())),n=""),t.push({type:"deep-wildcard"}),r+=2):(n.trim()&&t.push(this._parseSegment(n.trim())),n="",r++):(n+=e[r],r++);return n.trim()&&t.push(this._parseSegment(n.trim())),t}_parseSegment(e){const t={type:"tag"};let r=null,n=e;const o=e.match(/^([^\[]+)(\[[^\]]*\])(.*)$/);if(o&&(n=o[1]+o[3],o[2])){const e=o[2].slice(1,-1);e&&(r=e)}let s,i,a=n;if(n.includes("::")){const t=n.indexOf("::");if(s=n.substring(0,t).trim(),a=n.substring(t+2).trim(),!s)throw new Error(`Invalid namespace in pattern: ${e}`)}let l=null;if(a.includes(":")){const e=a.lastIndexOf(":"),t=a.substring(0,e).trim(),r=a.substring(e+1).trim();["first","last","odd","even"].includes(r)||/^nth\(\d+\)$/.test(r)?(i=t,l=r):i=a}else i=a;if(!i)throw new Error(`Invalid segment pattern: ${e}`);if(t.tag=i,s&&(t.namespace=s),r)if(r.includes("=")){const e=r.indexOf("=");t.attrName=r.substring(0,e).trim(),t.attrValue=r.substring(e+1).trim()}else t.attrName=r.trim();if(l){const e=l.match(/^nth\((\d+)\)$/);e?(t.position="nth",t.positionValue=parseInt(e[1],10)):t.position=l}return t}get length(){return this.segments.length}hasDeepWildcard(){return this._hasDeepWildcard}hasAttributeCondition(){return this._hasAttributeCondition}hasPositionSelector(){return this._hasPositionSelector}toString(){return this.pattern}}const Dd=new Set(["push","pop","reset","updateCurrent","restore"]);class Bd{constructor(e={}){this.separator=e.separator||".",this.path=[],this.siblingStacks=[]}push(e,t=null,r=null){if(this.path.length>0){this.path[this.path.length-1].values=void 0}const n=this.path.length;this.siblingStacks[n]||(this.siblingStacks[n]=new Map);const o=this.siblingStacks[n],s=r?`${r}:${e}`:e,i=o.get(s)||0;let a=0;for(const c of o.values())a+=c;o.set(s,i+1);const l={tag:e,position:a,counter:i};null!=r&&(l.namespace=r),null!=t&&(l.values=t),this.path.push(l)}pop(){if(0===this.path.length)return;const e=this.path.pop();return this.siblingStacks.length>this.path.length+1&&(this.siblingStacks.length=this.path.length+1),e}updateCurrent(e){if(this.path.length>0){const t=this.path[this.path.length-1];null!=e&&(t.values=e)}}getCurrentTag(){return this.path.length>0?this.path[this.path.length-1].tag:void 0}getCurrentNamespace(){return this.path.length>0?this.path[this.path.length-1].namespace:void 0}getAttrValue(e){var t;if(0===this.path.length)return;return null==(t=this.path[this.path.length-1].values)?void 0:t[e]}hasAttr(e){if(0===this.path.length)return!1;const t=this.path[this.path.length-1];return void 0!==t.values&&e in t.values}getPosition(){return 0===this.path.length?-1:this.path[this.path.length-1].position??0}getCounter(){return 0===this.path.length?-1:this.path[this.path.length-1].counter??0}getIndex(){return this.getPosition()}getDepth(){return this.path.length}toString(e,t=!0){const r=e||this.separator;return this.path.map(e=>t&&e.namespace?`${e.namespace}:${e.tag}`:e.tag).join(r)}toArray(){return this.path.map(e=>e.tag)}reset(){this.path=[],this.siblingStacks=[]}matches(e){const t=e.segments;return 0!==t.length&&(e.hasDeepWildcard()?this._matchWithDeepWildcard(t):this._matchSimple(t))}_matchSimple(e){if(this.path.length!==e.length)return!1;for(let t=0;t<e.length;t++){const r=e[t],n=this.path[t],o=t===this.path.length-1;if(!this._matchSegment(r,n,o))return!1}return!0}_matchWithDeepWildcard(e){let t=this.path.length-1,r=e.length-1;for(;r>=0&&t>=0;){const n=e[r];if("deep-wildcard"===n.type){if(r--,r<0)return!0;const n=e[r];let o=!1;for(let e=t;e>=0;e--){const s=e===this.path.length-1;if(this._matchSegment(n,this.path[e],s)){t=e-1,r--,o=!0;break}}if(!o)return!1}else{const e=t===this.path.length-1;if(!this._matchSegment(n,this.path[t],e))return!1;t--,r--}}return r<0}_matchSegment(e,t,r){if("*"!==e.tag&&e.tag!==t.tag)return!1;if(void 0!==e.namespace&&"*"!==e.namespace&&e.namespace!==t.namespace)return!1;if(void 0!==e.attrName){if(!r)return!1;if(!t.values||!(e.attrName in t.values))return!1;if(void 0!==e.attrValue){const r=t.values[e.attrName];if(String(r)!==String(e.attrValue))return!1}}if(void 0!==e.position){if(!r)return!1;const n=t.counter??0;if("first"===e.position&&0!==n)return!1;if("odd"===e.position&&n%2!=1)return!1;if("even"===e.position&&n%2!=0)return!1;if("nth"===e.position&&n!==e.positionValue)return!1}return!0}snapshot(){return{path:this.path.map(e=>({...e})),siblingStacks:this.siblingStacks.map(e=>new Map(e))}}restore(e){this.path=e.path.map(e=>({...e})),this.siblingStacks=e.siblingStacks.map(e=>new Map(e))}readOnly(){return new Proxy(this,{get(e,t,r){if(Dd.has(t))return()=>{throw new TypeError(`Cannot call '${t}' on a read-only Matcher. Obtain a writable instance to mutate state.`)};const n=Reflect.get(e,t,r);return"path"===t||"siblingStacks"===t?Object.freeze(Array.isArray(n)?n.map(e=>e instanceof Map?Object.freeze(new Map(e)):Object.freeze({...e})):n):"function"==typeof n?n.bind(e):n},set(e,t){throw new TypeError(`Cannot set property '${String(t)}' on a read-only Matcher.`)},deleteProperty(e,t){throw new TypeError(`Cannot delete property '${String(t)}' from a read-only Matcher.`)}})}}function Hd(e,t){let r="";t.format&&t.indentBy.length>0&&(r="\n");const n=[];if(t.stopNodes&&Array.isArray(t.stopNodes))for(let o=0;o<t.stopNodes.length;o++){const e=t.stopNodes[o];"string"==typeof e?n.push(new Ld(e)):e instanceof Ld&&n.push(e)}return Fd(e,t,r,new Bd,n)}function Fd(e,t,r,n,o){let s="",i=!1;if(t.maxNestedTags&&n.getDepth()>t.maxNestedTags)throw new Error("Maximum nested tags exceeded");if(!Array.isArray(e)){if(null!=e){let r=e.toString();return r=Qd(r,t),r}return""}for(let a=0;a<e.length;a++){const l=e[a],c=Gd(l);if(void 0===c)continue;const p=Vd(l[":@"],t);n.push(c,p);const d=Zd(n,o);if(c===t.textNodeName){let e=l[c];d||(e=t.tagValueProcessor(c,e),e=Qd(e,t)),i&&(s+=r),s+=e,i=!1,n.pop();continue}if(c===t.cdataPropName){i&&(s+=r),s+=`<![CDATA[${l[c][0][t.textNodeName]}]]>`,i=!1,n.pop();continue}if(c===t.commentPropName){s+=r+`\x3c!--${l[c][0][t.textNodeName]}--\x3e`,i=!0,n.pop();continue}if("?"===c[0]){const e=Kd(l[":@"],t,d),o="?xml"===c?"":r;let a=l[c][0][t.textNodeName];a=0!==a.length?" "+a:"",s+=o+`<${c}${a}${e}?>`,i=!0,n.pop();continue}let u=r;""!==u&&(u+=t.indentBy);const f=r+`<${c}${Kd(l[":@"],t,d)}`;let h;h=d?Jd(l[c],t):Fd(l[c],t,u,n,o),-1!==t.unpairedTags.indexOf(c)?t.suppressUnpairedNode?s+=f+">":s+=f+"/>":h&&0!==h.length||!t.suppressEmptyNode?h&&h.endsWith(">")?s+=f+`>${h}${r}</${c}>`:(s+=f+">",h&&""!==r&&(h.includes("/>")||h.includes("</"))?s+=r+t.indentBy+h+r:s+=h,s+=`</${c}>`):s+=f+"/>",i=!0,n.pop()}return s}function Vd(e,t){if(!e||t.ignoreAttributes)return null;const r={};let n=!1;for(let o in e){if(!Object.prototype.hasOwnProperty.call(e,o))continue;r[o.startsWith(t.attributeNamePrefix)?o.substr(t.attributeNamePrefix.length):o]=e[o],n=!0}return n?r:null}function Jd(e,t){if(!Array.isArray(e))return null!=e?e.toString():"";let r="";for(let n=0;n<e.length;n++){const o=e[n],s=Gd(o);if(s===t.textNodeName)r+=o[s];else if(s===t.cdataPropName)r+=o[s][0][t.textNodeName];else if(s===t.commentPropName)r+=o[s][0][t.textNodeName];else{if(s&&"?"===s[0])continue;if(s){const e=Wd(o[":@"],t),n=Jd(o[s],t);n&&0!==n.length?r+=`<${s}${e}>${n}</${s}>`:r+=`<${s}${e}/>`}}}return r}function Wd(e,t){let r="";if(e&&!t.ignoreAttributes)for(let n in e){if(!Object.prototype.hasOwnProperty.call(e,n))continue;let o=e[n];!0===o&&t.suppressBooleanAttributes?r+=` ${n.substr(t.attributeNamePrefix.length)}`:r+=` ${n.substr(t.attributeNamePrefix.length)}="${o}"`}return r}function Gd(e){const t=Object.keys(e);for(let r=0;r<t.length;r++){const n=t[r];if(Object.prototype.hasOwnProperty.call(e,n)&&":@"!==n)return n}}function Kd(e,t,r){let n="";if(e&&!t.ignoreAttributes)for(let o in e){if(!Object.prototype.hasOwnProperty.call(e,o))continue;let s;r?s=e[o]:(s=t.attributeValueProcessor(o,e[o]),s=Qd(s,t)),!0===s&&t.suppressBooleanAttributes?n+=` ${o.substr(t.attributeNamePrefix.length)}`:n+=` ${o.substr(t.attributeNamePrefix.length)}="${s}"`}return n}function Zd(e,t){if(!t||0===t.length)return!1;for(let r=0;r<t.length;r++)if(e.matches(t[r]))return!0;return!1}function Qd(e,t){if(e&&e.length>0&&t.processEntities)for(let r=0;r<t.entities.length;r++){const n=t.entities[r];e=e.replace(n.regex,n.val)}return e}const Yd={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(e,t){return t},attributeValueProcessor:function(e,t){return t},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&amp;"},{regex:new RegExp(">","g"),val:"&gt;"},{regex:new RegExp("<","g"),val:"&lt;"},{regex:new RegExp("'","g"),val:"&apos;"},{regex:new RegExp('"',"g"),val:"&quot;"}],processEntities:!0,stopNodes:[],oneListGroup:!1,maxNestedTags:100,jPath:!0};function Xd(e){if(this.options=Object.assign({},Yd,e),this.options.stopNodes&&Array.isArray(this.options.stopNodes)&&(this.options.stopNodes=this.options.stopNodes.map(e=>"string"==typeof e&&e.startsWith("*.")?".."+e.substring(2):e)),this.stopNodeExpressions=[],this.options.stopNodes&&Array.isArray(this.options.stopNodes))for(let r=0;r<this.options.stopNodes.length;r++){const e=this.options.stopNodes[r];"string"==typeof e?this.stopNodeExpressions.push(new Ld(e)):e instanceof Ld&&this.stopNodeExpressions.push(e)}var t;!0===this.options.ignoreAttributes||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn="function"==typeof(t=this.options.ignoreAttributes)?t:Array.isArray(t)?e=>{for(const r of t){if("string"==typeof r&&e===r)return!0;if(r instanceof RegExp&&r.test(e))return!0}}:()=>!1,this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=ru),this.processTextOrObjNode=eu,this.options.format?(this.indentate=tu,this.tagEndChar=">\n",this.newLine="\n"):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function eu(e,t,r,n){const o=this.extractAttributes(e);n.push(t,o);if(this.checkStopNode(n)){const o=this.buildRawContent(e),s=this.buildAttributesForStopNode(e);return n.pop(),this.buildObjectNode(o,t,s,r)}const s=this.j2x(e,r+1,n);return n.pop(),void 0!==e[this.options.textNodeName]&&1===Object.keys(e).length?this.buildTextValNode(e[this.options.textNodeName],t,s.attrStr,r,n):this.buildObjectNode(s.val,t,s.attrStr,r)}function tu(e){return this.options.indentBy.repeat(e)}function ru(e){return!(!e.startsWith(this.options.attributeNamePrefix)||e===this.options.textNodeName)&&e.substr(this.attrPrefixLen)}Xd.prototype.build=function(e){if(this.options.preserveOrder)return Hd(e,this.options);{Array.isArray(e)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(e={[this.options.arrayNodeName]:e});const t=new Bd;return this.j2x(e,0,t).val}},Xd.prototype.j2x=function(e,t,r){let n="",o="";if(this.options.maxNestedTags&&r.getDepth()>=this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");const s=this.options.jPath?r.toString():r,i=this.checkStopNode(r);for(let a in e)if(Object.prototype.hasOwnProperty.call(e,a))if(void 0===e[a])this.isAttribute(a)&&(o+="");else if(null===e[a])this.isAttribute(a)||a===this.options.cdataPropName?o+="":"?"===a[0]?o+=this.indentate(t)+"<"+a+"?"+this.tagEndChar:o+=this.indentate(t)+"<"+a+"/"+this.tagEndChar;else if(e[a]instanceof Date)o+=this.buildTextValNode(e[a],a,"",t,r);else if("object"!=typeof e[a]){const l=this.isAttribute(a);if(l&&!this.ignoreAttributesFn(l,s))n+=this.buildAttrPairStr(l,""+e[a],i);else if(!l)if(a===this.options.textNodeName){let t=this.options.tagValueProcessor(a,""+e[a]);o+=this.replaceEntitiesValue(t)}else{r.push(a);const n=this.checkStopNode(r);if(r.pop(),n){const r=""+e[a];o+=""===r?this.indentate(t)+"<"+a+this.closeTag(a)+this.tagEndChar:this.indentate(t)+"<"+a+">"+r+"</"+a+this.tagEndChar}else o+=this.buildTextValNode(e[a],a,"",t,r)}}else if(Array.isArray(e[a])){const n=e[a].length;let s="",i="";for(let l=0;l<n;l++){const n=e[a][l];if(void 0===n);else if(null===n)"?"===a[0]?o+=this.indentate(t)+"<"+a+"?"+this.tagEndChar:o+=this.indentate(t)+"<"+a+"/"+this.tagEndChar;else if("object"==typeof n)if(this.options.oneListGroup){r.push(a);const e=this.j2x(n,t+1,r);r.pop(),s+=e.val,this.options.attributesGroupName&&n.hasOwnProperty(this.options.attributesGroupName)&&(i+=e.attrStr)}else s+=this.processTextOrObjNode(n,a,t,r);else if(this.options.oneListGroup){let e=this.options.tagValueProcessor(a,n);e=this.replaceEntitiesValue(e),s+=e}else{r.push(a);const e=this.checkStopNode(r);if(r.pop(),e){const e=""+n;s+=""===e?this.indentate(t)+"<"+a+this.closeTag(a)+this.tagEndChar:this.indentate(t)+"<"+a+">"+e+"</"+a+this.tagEndChar}else s+=this.buildTextValNode(n,a,"",t,r)}}this.options.oneListGroup&&(s=this.buildObjectNode(s,a,i,t)),o+=s}else if(this.options.attributesGroupName&&a===this.options.attributesGroupName){const t=Object.keys(e[a]),r=t.length;for(let o=0;o<r;o++)n+=this.buildAttrPairStr(t[o],""+e[a][t[o]],i)}else o+=this.processTextOrObjNode(e[a],a,t,r);return{attrStr:n,val:o}},Xd.prototype.buildAttrPairStr=function(e,t,r){return r||(t=this.options.attributeValueProcessor(e,""+t),t=this.replaceEntitiesValue(t)),this.options.suppressBooleanAttributes&&"true"===t?" "+e:" "+e+'="'+t+'"'},Xd.prototype.extractAttributes=function(e){if(!e||"object"!=typeof e)return null;const t={};let r=!1;if(this.options.attributesGroupName&&e[this.options.attributesGroupName]){const n=e[this.options.attributesGroupName];for(let e in n){if(!Object.prototype.hasOwnProperty.call(n,e))continue;t[e.startsWith(this.options.attributeNamePrefix)?e.substring(this.options.attributeNamePrefix.length):e]=n[e],r=!0}}else for(let n in e){if(!Object.prototype.hasOwnProperty.call(e,n))continue;const o=this.isAttribute(n);o&&(t[o]=e[n],r=!0)}return r?t:null},Xd.prototype.buildRawContent=function(e){if("string"==typeof e)return e;if("object"!=typeof e||null===e)return String(e);if(void 0!==e[this.options.textNodeName])return e[this.options.textNodeName];let t="";for(let r in e){if(!Object.prototype.hasOwnProperty.call(e,r))continue;if(this.isAttribute(r))continue;if(this.options.attributesGroupName&&r===this.options.attributesGroupName)continue;const n=e[r];if(r===this.options.textNodeName)t+=n;else if(Array.isArray(n)){for(let e of n)if("string"==typeof e||"number"==typeof e)t+=`<${r}>${e}</${r}>`;else if("object"==typeof e&&null!==e){const n=this.buildRawContent(e),o=this.buildAttributesForStopNode(e);t+=""===n?`<${r}${o}/>`:`<${r}${o}>${n}</${r}>`}}else if("object"==typeof n&&null!==n){const e=this.buildRawContent(n),o=this.buildAttributesForStopNode(n);t+=""===e?`<${r}${o}/>`:`<${r}${o}>${e}</${r}>`}else t+=`<${r}>${n}</${r}>`}return t},Xd.prototype.buildAttributesForStopNode=function(e){if(!e||"object"!=typeof e)return"";let t="";if(this.options.attributesGroupName&&e[this.options.attributesGroupName]){const r=e[this.options.attributesGroupName];for(let e in r){if(!Object.prototype.hasOwnProperty.call(r,e))continue;const n=e.startsWith(this.options.attributeNamePrefix)?e.substring(this.options.attributeNamePrefix.length):e,o=r[e];!0===o&&this.options.suppressBooleanAttributes?t+=" "+n:t+=" "+n+'="'+o+'"'}}else for(let r in e){if(!Object.prototype.hasOwnProperty.call(e,r))continue;const n=this.isAttribute(r);if(n){const o=e[r];!0===o&&this.options.suppressBooleanAttributes?t+=" "+n:t+=" "+n+'="'+o+'"'}}return t},Xd.prototype.buildObjectNode=function(e,t,r,n){if(""===e)return"?"===t[0]?this.indentate(n)+"<"+t+r+"?"+this.tagEndChar:this.indentate(n)+"<"+t+r+this.closeTag(t)+this.tagEndChar;{let o="</"+t+this.tagEndChar,s="";return"?"===t[0]&&(s="?",o=""),!r&&""!==r||-1!==e.indexOf("<")?!1!==this.options.commentPropName&&t===this.options.commentPropName&&0===s.length?this.indentate(n)+`\x3c!--${e}--\x3e`+this.newLine:this.indentate(n)+"<"+t+r+s+this.tagEndChar+e+this.indentate(n)+o:this.indentate(n)+"<"+t+r+s+">"+e+o}},Xd.prototype.closeTag=function(e){let t="";return-1!==this.options.unpairedTags.indexOf(e)?this.options.suppressUnpairedNode||(t="/"):t=this.options.suppressEmptyNode?"/":`></${e}`,t},Xd.prototype.checkStopNode=function(e){if(!this.stopNodeExpressions||0===this.stopNodeExpressions.length)return!1;for(let t=0;t<this.stopNodeExpressions.length;t++)if(e.matches(this.stopNodeExpressions[t]))return!0;return!1},Xd.prototype.buildTextValNode=function(e,t,r,n,o){if(!1!==this.options.cdataPropName&&t===this.options.cdataPropName)return this.indentate(n)+`<![CDATA[${e}]]>`+this.newLine;if(!1!==this.options.commentPropName&&t===this.options.commentPropName)return this.indentate(n)+`\x3c!--${e}--\x3e`+this.newLine;if("?"===t[0])return this.indentate(n)+"<"+t+r+"?"+this.tagEndChar;{let o=this.options.tagValueProcessor(t,e);return o=this.replaceEntitiesValue(o),""===o?this.indentate(n)+"<"+t+r+this.closeTag(t)+this.tagEndChar:this.indentate(n)+"<"+t+r+">"+o+"</"+t+this.tagEndChar}},Xd.prototype.replaceEntitiesValue=function(e){if(e&&e.length>0&&this.options.processEntities)for(let t=0;t<this.options.entities.length;t++){const r=this.options.entities[t];e=e.replace(r.regex,r.val)}return e};var nu={};const ou={skipReadOnly:!1,maxSampleDepth:15};function su(e,t,r){let n=Object.assign({},ou,t);Ed={},Td=[];let o=Id(e,n,r).value;return"xml"===(null==n?void 0:n.format)?function(e,t){var r;if(!e)throw new Error("Unknown format output for building XML.");return(Array.isArray(e)||Object.keys(e).length>1)&&(e={[(null==(r=null==t?void 0:t.xml)?void 0:r.name)||"root"]:e}),new Xd({ignoreAttributes:!1,format:!0,attributeNamePrefix:"$",textNodeName:"#text",cdataPropName:"#cdata"}).build(e)}(o,e):o}function iu(e,t){nu[e]=t}iu("array",function(e,t={},r,n){const o=n&&n.depth||1;let s=Math.min(null!=e.maxItems?e.maxItems:1/0,e.minItems||1);const i=e.prefixItems||e.items||e.contains;Array.isArray(i)&&(s=Math.max(s,i.length));let a=e=>Array.isArray(i)?i[e]||{}:i||{},l=[];if(!i)return l;for(let c=0;c<s;c++){let e=a(c),{value:s}=Id(e,t,r,{depth:o+1});if("xml"===(null==t?void 0:t.format)){const{value:t,propertyName:r}=$d({value:s},e,n);r?((null==l?void 0:l[r])||(l={...l,[r]:[]}),l[r].push(t)):l={...l,...t}}else l.push(s)}if("xml"===(null==t?void 0:t.format)&&1===o){const{value:t,propertyName:r}=$d({value:null},e,n);r&&(l=t?Array.isArray(l)?{[r]:{...t,...l.map(e=>({"#text":{...e}}))}}:{[r]:{...l,...t}}:{[r]:l})}return l}),iu("boolean",function(e){return!0}),iu("integer",Rd),iu("number",Rd),iu("object",function(e,t={},r,n){let o={};const s=n&&n.depth||1;if(e&&"object"==typeof e.properties){const i=Array.isArray(e.required)?e.required:[],a={};for(const e of i)a[e]=!0;Object.keys(e.properties).forEach(i=>{if(t.skipNonRequired&&!a.hasOwnProperty(i))return;const l=Id(e.properties[i],t,r,{propertyName:i,depth:s+1});if(t.skipReadOnly&&l.readOnly)(null==n?void 0:n.isAllOfChild)&&(o[i]=hd);else if(t.skipWriteOnly&&l.writeOnly)(null==n?void 0:n.isAllOfChild)&&(o[i]=hd);else if("xml"===(null==t?void 0:t.format)){const{propertyName:t,value:r}=$d(l,e.properties[i],{propertyName:i});t?o[t]=r:null!==r&&"object"==typeof r&&(o={...o,...r})}else o[i]=l.value})}if(e&&"object"==typeof e.additionalProperties){const n=e.additionalProperties["x-additionalPropertiesName"]||"property";o[`${String(n)}1`]=Id(e.additionalProperties,t,r,{depth:s+1}).value,o[`${String(n)}2`]=Id(e.additionalProperties,t,r,{depth:s+1}).value}if(e&&"object"==typeof e.properties&&void 0!==e.maxProperties&&Object.keys(o).length>e.maxProperties){const t={};let r=0;(Array.isArray(e.required)?e.required:[]).forEach(e=>{void 0!==o[e]&&(t[e]=o[e],r++)}),Object.keys(o).forEach(n=>{r<e.maxProperties&&!t.hasOwnProperty(n)&&(t[n]=o[n],r++)}),o=t}return o}),iu("string",function(e,t,r,n){let o=e.format||"default",s=Ud[o]||zd,i=n&&n.propertyName;return s(e.minLength||0,e.maxLength,i,e.pattern,null==t?void 0:t.enablePatterns)});var au=Object.defineProperty,lu=Object.getOwnPropertyDescriptor,cu=(e,t,r,n)=>{for(var o,s=n>1?void 0:n?lu(t,r):t,i=e.length-1;i>=0;i--)(o=e[i])&&(s=(n?o(t,r,s):o(s))||s);return n&&s&&au(t,r,s),s};let pu=class extends xe{constructor(){super(...arguments),this.requestBody=null,this._activeMediaType=0}_getSample(e){if(!e)return"{}";try{const t=su(e);return JSON.stringify(t,null,2)}catch{return"{}"}}_copy(e){navigator.clipboard.writeText(e)}render(){if(!this.requestBody)return ne``;const e=this.requestBody,t=e.content[this._activeMediaType];if(!t)return ne``;const r=t.example?JSON.stringify(t.example,null,2):this._getSample(t.schema);return ne`
844
+ ${e.description?ne`<div class="desc">${e.description}</div>`:null}
845
+
846
+ ${e.content.length>1?ne`
847
+ <div class="media-tabs">
848
+ ${e.content.map((e,t)=>ne`
849
+ <button
850
+ class="media-tab ${t===this._activeMediaType?"active":""}"
851
+ @click=${()=>this._activeMediaType=t}
852
+ >${e.mediaType}</button>
853
+ `)}
854
+ </div>
855
+ `:null}
856
+
857
+ <div class="example-block">
858
+ <div class="example-header">
859
+ <span class="example-label">Example</span>
860
+ <button class="copy-btn" @click=${()=>this._copy(r)}>Copy</button>
861
+ </div>
862
+ <pre><code>${r}</code></pre>
863
+ </div>
864
+
865
+ ${t.schema?ne`
866
+ <div class="schema-section">
867
+ <div class="schema-label">Schema</div>
868
+ <sl-schema .schema=${t.schema}></sl-schema>
869
+ </div>
870
+ `:null}
871
+ `}};pu.styles=[Pe,b`
872
+ :host {
873
+ display: block;
874
+ }
875
+
876
+ .desc {
877
+ font-size: var(--sl-font-size-sm);
878
+ color: var(--sl-color-text-secondary);
879
+ margin-bottom: var(--sl-spacing-sm);
880
+ }
881
+
882
+ .media-tabs {
883
+ display: flex;
884
+ gap: 0;
885
+ border-bottom: 1px solid var(--sl-color-border);
886
+ margin-bottom: var(--sl-spacing-md);
887
+ }
888
+
889
+ .media-tab {
890
+ padding: var(--sl-spacing-sm) var(--sl-spacing-md);
891
+ font-size: var(--sl-font-size-xs);
892
+ font-family: var(--sl-font-mono);
893
+ color: var(--sl-color-text-muted);
894
+ border-bottom: 2px solid transparent;
895
+ transition: all var(--sl-transition-fast);
896
+ }
897
+
898
+ .media-tab:hover {
899
+ color: var(--sl-color-text);
900
+ }
901
+
902
+ .media-tab.active {
903
+ color: var(--sl-color-primary);
904
+ border-bottom-color: var(--sl-color-primary);
905
+ }
906
+
907
+ .example-block {
908
+ background: var(--sl-color-code-bg);
909
+ border: 1px solid var(--sl-color-border);
910
+ border-radius: var(--sl-radius-md);
911
+ overflow: hidden;
912
+ }
913
+
914
+ .example-header {
915
+ display: flex;
916
+ align-items: center;
917
+ justify-content: space-between;
918
+ padding: var(--sl-spacing-sm) var(--sl-spacing-md);
919
+ border-bottom: 1px solid var(--sl-color-border);
920
+ background: var(--sl-color-surface-raised);
921
+ }
922
+
923
+ .example-label {
924
+ font-size: var(--sl-font-size-xs);
925
+ font-weight: 600;
926
+ color: var(--sl-color-text-muted);
927
+ text-transform: uppercase;
928
+ letter-spacing: 0.04em;
929
+ }
930
+
931
+ .copy-btn {
932
+ font-size: var(--sl-font-size-xs);
933
+ color: var(--sl-color-text-muted);
934
+ padding: 2px 8px;
935
+ border-radius: var(--sl-radius-sm);
936
+ transition: all var(--sl-transition-fast);
937
+ }
938
+
939
+ .copy-btn:hover {
940
+ background: var(--sl-color-surface);
941
+ color: var(--sl-color-text);
942
+ }
943
+
944
+ pre {
945
+ padding: var(--sl-spacing-md);
946
+ font-size: var(--sl-font-size-sm);
947
+ color: var(--sl-color-code-text);
948
+ overflow-x: auto;
949
+ line-height: 1.6;
950
+ }
951
+
952
+ .schema-section {
953
+ margin-top: var(--sl-spacing-md);
954
+ }
955
+
956
+ .schema-label {
957
+ font-size: var(--sl-font-size-xs);
958
+ font-weight: 600;
959
+ color: var(--sl-color-text-muted);
960
+ text-transform: uppercase;
961
+ letter-spacing: 0.04em;
962
+ margin-bottom: var(--sl-spacing-sm);
963
+ }
964
+ `],cu([je({type:Object})],pu.prototype,"requestBody",2),cu([Oe()],pu.prototype,"_activeMediaType",2),pu=cu([_e("sl-request-body")],pu);
965
+ /**
966
+ * @license
967
+ * Copyright 2017 Google LLC
968
+ * SPDX-License-Identifier: BSD-3-Clause
969
+ */
970
+ const du=2;class uu{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,r){this._$Ct=e,this._$AM=t,this._$Ci=r}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}}
971
+ /**
972
+ * @license
973
+ * Copyright 2017 Google LLC
974
+ * SPDX-License-Identifier: BSD-3-Clause
975
+ */class fu extends uu{constructor(e){if(super(e),this.it=ie,e.type!==du)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===ie||null==e)return this._t=void 0,this.it=e;if(e===se)return e;if("string"!=typeof e)throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;const t=[e];return t.raw=t,this._t={_$litType$:this.constructor.resultType,strings:t,values:[]}}}fu.directiveName="unsafeHTML",fu.resultType=1;const hu=(mu=fu,(...e)=>({_$litDirective$:mu,values:e}));var mu,gu=Object.defineProperty,yu=Object.getOwnPropertyDescriptor,vu=(e,t,r,n)=>{for(var o,s=n>1?void 0:n?yu(t,r):t,i=e.length-1;i>=0;i--)(o=e[i])&&(s=(n?o(t,r,s):o(s))||s);return n&&s&&gu(t,r,s),s};let bu=class extends xe{constructor(){super(...arguments),this.responses=[],this._activeTab=0}_esc(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}_highlightJson(e){const t=[[/^"(?:[^"\\]|\\.)*"(?=\s*:)/,"hl-key"],[/^"(?:[^"\\]|\\.)*"/,"hl-str"],[/^\b(?:true|false|null)\b/,"hl-kw"],[/^-?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?/,"hl-num"]];let r="",n=e;for(;n.length>0;){let e=!1;for(const[o,s]of t){const t=o.exec(n);if(t&&0===t.index){r+=`<span class="${s}">${this._esc(t[0])}</span>`,n=n.slice(t[0].length),e=!0;break}}e||(r+=this._esc(n[0]),n=n.slice(1))}return r}_getStatusClass(e){return"default"===e?"status-default":e.startsWith("2")?"status-2xx":e.startsWith("3")?"status-3xx":e.startsWith("4")?"status-4xx":e.startsWith("5")?"status-5xx":"status-default"}_getExample(e){const t=e.content[0];if(!t)return null;if(t.example)return JSON.stringify(t.example,null,2);if(Object.keys(t.examples).length>0){const e=Object.values(t.examples)[0];return JSON.stringify(e,null,2)}if(t.schema)try{const e=su(t.schema);return JSON.stringify(e,null,2)}catch{return null}return null}render(){var e;if(0===this.responses.length)return ne``;const t=this.responses[this._activeTab];if(!t)return ne``;const r=this._getExample(t),n=Object.entries(t.headers),o=null==(e=t.content[0])?void 0:e.mediaType;return ne`
976
+ <div class="status-tabs">
977
+ ${this.responses.map((e,t)=>ne`
978
+ <button
979
+ class="status-tab ${this._getStatusClass(e.statusCode)} ${t===this._activeTab?"active":""}"
980
+ @click=${()=>this._activeTab=t}
981
+ >${e.statusCode}</button>
982
+ `)}
983
+ </div>
984
+
985
+ <div class="response-content">
986
+ ${t.description?ne`<div class="response-desc">${t.description}</div>`:null}
987
+
988
+ ${n.length>0?ne`
989
+ <div class="headers-section">
990
+ <div class="headers-label">Headers</div>
991
+ ${n.map(([e,t])=>ne`
992
+ <div class="header-row">
993
+ <span class="header-name">${e}</span>
994
+ <span class="header-desc">${t.description}</span>
995
+ </div>
996
+ `)}
997
+ </div>
998
+ `:null}
999
+
1000
+ ${r?ne`
1001
+ <div class="example-block">
1002
+ <div class="example-header">
1003
+ <span class="example-label">Response Example</span>
1004
+ ${o?ne`<span class="media-type-badge">${o}</span>`:null}
1005
+ </div>
1006
+ <pre><code>${hu(this._highlightJson(r))}</code></pre>
1007
+ </div>
1008
+ `:null}
1009
+ </div>
1010
+ `}};bu.styles=[Pe,b`
1011
+ :host {
1012
+ display: block;
1013
+ }
1014
+
1015
+ .status-tabs {
1016
+ display: flex;
1017
+ gap: 0;
1018
+ border-bottom: 1px solid var(--sl-color-border);
1019
+ margin-bottom: var(--sl-spacing-md);
1020
+ overflow-x: auto;
1021
+ }
1022
+
1023
+ .status-tab {
1024
+ padding: var(--sl-spacing-sm) var(--sl-spacing-md);
1025
+ font-size: var(--sl-font-size-sm);
1026
+ font-family: var(--sl-font-mono);
1027
+ font-weight: 600;
1028
+ color: var(--sl-color-text-muted);
1029
+ border-bottom: 2px solid transparent;
1030
+ transition: all var(--sl-transition-fast);
1031
+ white-space: nowrap;
1032
+ }
1033
+
1034
+ .status-tab:hover {
1035
+ color: var(--sl-color-text);
1036
+ }
1037
+
1038
+ .status-tab.active {
1039
+ border-bottom-color: currentColor;
1040
+ }
1041
+
1042
+ .status-2xx { color: var(--sl-color-success); }
1043
+ .status-3xx { color: var(--sl-color-info); }
1044
+ .status-4xx { color: var(--sl-color-warning); }
1045
+ .status-5xx { color: var(--sl-color-danger); }
1046
+ .status-default { color: var(--sl-color-text-muted); }
1047
+
1048
+ .response-content {
1049
+ font-size: var(--sl-font-size-sm);
1050
+ }
1051
+
1052
+ .response-desc {
1053
+ color: var(--sl-color-text-secondary);
1054
+ margin-bottom: var(--sl-spacing-md);
1055
+ line-height: 1.6;
1056
+ }
1057
+
1058
+ .headers-section {
1059
+ margin-bottom: var(--sl-spacing-md);
1060
+ }
1061
+
1062
+ .headers-label {
1063
+ font-size: var(--sl-font-size-xs);
1064
+ font-weight: 600;
1065
+ text-transform: uppercase;
1066
+ letter-spacing: 0.04em;
1067
+ color: var(--sl-color-text-muted);
1068
+ margin-bottom: var(--sl-spacing-xs);
1069
+ }
1070
+
1071
+ .header-row {
1072
+ display: grid;
1073
+ grid-template-columns: 150px 1fr;
1074
+ gap: var(--sl-spacing-sm);
1075
+ padding: var(--sl-spacing-xs) 0;
1076
+ border-bottom: 1px solid var(--sl-color-border);
1077
+ }
1078
+
1079
+ .header-name {
1080
+ font-family: var(--sl-font-mono);
1081
+ font-size: var(--sl-font-size-xs);
1082
+ color: var(--sl-color-text);
1083
+ }
1084
+
1085
+ .header-desc {
1086
+ font-size: var(--sl-font-size-xs);
1087
+ color: var(--sl-color-text-muted);
1088
+ }
1089
+
1090
+ .example-block {
1091
+ border: 1px solid #30363d;
1092
+ border-radius: var(--sl-radius-md);
1093
+ overflow: hidden;
1094
+ margin-bottom: var(--sl-spacing-md);
1095
+ background: #0d1117;
1096
+ }
1097
+
1098
+ .example-header {
1099
+ display: flex;
1100
+ align-items: center;
1101
+ justify-content: space-between;
1102
+ padding: var(--sl-spacing-sm) var(--sl-spacing-md);
1103
+ border-bottom: 1px solid #30363d;
1104
+ background: #161b22;
1105
+ }
1106
+
1107
+ .example-label {
1108
+ font-size: var(--sl-font-size-xs);
1109
+ font-weight: 600;
1110
+ color: #8b949e;
1111
+ text-transform: uppercase;
1112
+ letter-spacing: 0.04em;
1113
+ }
1114
+
1115
+ .media-type-badge {
1116
+ font-family: var(--sl-font-mono);
1117
+ font-size: var(--sl-font-size-xs);
1118
+ color: #8b949e;
1119
+ }
1120
+
1121
+ pre {
1122
+ margin: 0;
1123
+ padding: var(--sl-spacing-md);
1124
+ font-size: var(--sl-font-size-sm);
1125
+ font-family: var(--sl-font-mono);
1126
+ color: #e6edf3;
1127
+ background: #0d1117;
1128
+ overflow-x: auto;
1129
+ line-height: 1.65;
1130
+ max-height: 60vh;
1131
+ overflow-y: auto;
1132
+ }
1133
+
1134
+ code { font-family: inherit; }
1135
+
1136
+ /* ── JSON syntax token colors (VS Code Dark+ palette) ── */
1137
+ .hl-key { color: #9cdcfe; }
1138
+ .hl-str { color: #ce9178; }
1139
+ .hl-num { color: #b5cea8; }
1140
+ .hl-kw { color: #569cd6; }
1141
+ `],vu([je({type:Array})],bu.prototype,"responses",2),vu([Oe()],bu.prototype,"_activeTab",2),bu=vu([_e("sl-responses")],bu);const $u="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:window,{FormData:xu,Blob:wu,File:_u}=$u,ku="\r\n",Su="-".repeat(2),ju=Symbol.toStringTag,Ou=(e,t,r)=>{let n="";return n+=`${Su}${e}${ku}`,n+=`Content-Disposition: form-data; name="${t}"`,"string"!=typeof r&&"blob"!==r.name&&(n+=`; filename="${r.name}"${ku}`,n+=`Content-Type: ${r.type||"application/octet-stream"}`),`${n}${ku.repeat(2)}`},Pu=async function*(e,t){for(const[r,n]of e)yield Ou(t,r,n),"string"==typeof n?yield n:yield await n.text(),yield ku;yield(e=>`${Su}${e}${Su}${ku.repeat(1)}`)(t)},Eu=(e,t)=>Object.keys(e).find(e=>e.toLowerCase()===t.toLowerCase()),Tu=(e,t)=>{const r=Eu(e,t);if(r)return e[r]},Au=(e,t)=>Boolean(Eu(e,t)),Cu=["application/json","application/x-json","text/json","text/x-json","+json"],Iu=(e,t)=>{if(void 0===t.value)return e;const r=e[t.name];return void 0===r?(e[t.name]=t.value,e):Array.isArray(r)?(r.push(t.value),e):(e[t.name]=[r,t.value],e)};function Ru(e){return new URLSearchParams(Object.entries(e).map(([e,t])=>Array.isArray(t)?t.map(t=>[e,t]):[[e,t]]).flat(1))}class Nu extends URL{get path(){return this.pathname+this.search}}class Mu{constructor({indent:e,join:t}={}){this.postProcessors=[],this.code=[],this.indentationCharacter="",this.lineJoin="\n",this.indentLine=(e,t=0)=>`${this.indentationCharacter.repeat(t)}${e}`,this.unshift=(e,t)=>{const r=this.indentLine(e,t);this.code.unshift(r)},this.push=(e,t)=>{const r=this.indentLine(e,t);this.code.push(r)},this.blank=()=>{this.code.push("")},this.join=()=>{const e=this.code.join(this.lineJoin);return this.postProcessors.reduce((e,t)=>t(e),e)},this.addPostProcessor=e=>{this.postProcessors=[...this.postProcessors,e]},this.indentationCharacter=e||"",this.lineJoin=null!=t?t:"\n"}}function qu(e,t={}){const{delimiter:r='"',escapeChar:n="\\",escapeNewlines:o=!0}=t;return[...e.toString()].map(e=>"\b"===e?`${n}b`:"\t"===e?`${n}t`:"\n"===e?o?`${n}n`:e:"\f"===e?`${n}f`:"\r"===e?o?`${n}r`:e:e===n?n+n:e===r?n+r:e<" "||e>"~"?JSON.stringify(e).slice(1,-1):e).join("")}const zu=e=>qu(e,{delimiter:"'"}),Uu=e=>qu(e,{delimiter:'"'}),Lu={info:{key:"c",title:"C",extname:".c",default:"libcurl"},clientsById:{libcurl:{info:{key:"libcurl",title:"Libcurl",link:"http://curl.haxx.se/libcurl",description:"Simple REST and HTTP API Client for C"},convert:({method:e,fullUrl:t,headersObj:r,allHeaders:n,postData:o})=>{const{push:s,blank:i,join:a}=new Mu;s("CURL *hnd = curl_easy_init();"),i(),s(`curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "${e.toUpperCase()}");`),s(`curl_easy_setopt(hnd, CURLOPT_URL, "${t}");`);const l=Object.keys(r);return l.length&&(i(),s("struct curl_slist *headers = NULL;"),l.forEach(e=>{s(`headers = curl_slist_append(headers, "${e}: ${Uu(r[e])}");`)}),s("curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);")),n.cookie&&(i(),s(`curl_easy_setopt(hnd, CURLOPT_COOKIE, "${n.cookie}");`)),(null==o?void 0:o.text)&&(i(),s(`curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, ${JSON.stringify(o.text)});`)),i(),s("CURLcode ret = curl_easy_perform(hnd);"),a()}}}};class Du{constructor(e){this.name="",this.toString=()=>`:${this.name}`,this.name=e}}class Bu{constructor(e){this.path="",this.toString=()=>`(clojure.java.io/file "${this.path}")`,this.path=e}}const Hu=e=>void 0===e?null:null===e?"null":e.constructor.name.toLowerCase(),Fu=e=>"object"===Hu(e)&&0===Object.keys(e).length,Vu=e=>(Object.keys(e).filter(t=>Fu(e[t])).forEach(t=>{delete e[t]}),e),Ju=(e,t)=>{const r=" ".repeat(e);return t.replace(/\n/g,`\n${r}`)},Wu=e=>{switch(Hu(e)){case"string":return`"${e.replace(/"/g,'\\"')}"`;case"file":case"keyword":default:return e.toString();case"null":return"nil";case"regexp":return`#"${e.source}"`;case"object":{const t=Object.keys(e).reduce((t,r)=>`${t}:${r} ${Ju(r.length+2,Wu(e[r]))}\n `,"").trim();return`{${Ju(1,t)}}`}case"array":{const t=e.reduce((e,t)=>`${e} ${Wu(t)}`,"").trim();return`[${Ju(1,t)}]`}}},Gu={info:{key:"clojure",title:"Clojure",extname:".clj",default:"clj_http"},clientsById:{clj_http:{info:{key:"clj_http",title:"clj-http",link:"https://github.com/dakrone/clj-http",description:"An idiomatic clojure http client wrapping the apache client."},convert:({queryObj:e,method:t,postData:r,url:n,allHeaders:o},s)=>{const{push:i,join:a}=new Mu({indent:null==s?void 0:s.indent});if(t=t.toLowerCase(),!["get","post","put","delete","patch","head","options"].includes(t))return i("Method not supported"),a();const l={headers:o,"query-params":e};switch(null==r?void 0:r.mimeType){case"application/json":{l["content-type"]=new Du("json"),l["form-params"]=r.jsonObj;const e=Eu(l.headers,"content-type");e&&delete l.headers[e]}break;case"application/x-www-form-urlencoded":{l["form-params"]=r.paramsObj;const e=Eu(l.headers,"content-type");e&&delete l.headers[e]}break;case"text/plain":{l.body=r.text;const e=Eu(l.headers,"content-type");e&&delete l.headers[e]}break;case"multipart/form-data":if(r.params){l.multipart=r.params.map(e=>e.fileName&&!e.value?{name:e.name,content:new Bu(e.fileName)}:{name:e.name,content:e.value});const e=Eu(l.headers,"content-type");e&&delete l.headers[e]}}if("application/json"===Tu(l.headers,"accept")){l.accept=new Du("json");const e=Eu(l.headers,"accept");e&&delete l.headers[e]}if(i("(require '[clj-http.client :as client])\n"),Fu(Vu(l)))i(`(client/${t} "${n}")`);else{const e=11+t.length+n.length;i(`(client/${t} "${n}" ${Ju(e,Wu(Vu(l)))})`)}return a()}}}},Ku={info:{key:"csharp",title:"C#",extname:".cs",default:"restsharp"},clientsById:{httpclient:{info:{key:"httpclient",title:"HttpClient",link:"https://docs.microsoft.com/en-us/dotnet/api/system.net.http.httpclient",description:".NET Standard HTTP Client"},convert:({allHeaders:e,postData:t,method:r,fullUrl:n},o)=>{var s,i;const a={indent:" ",...o},{push:l,join:c}=new Mu({indent:a.indent});l("using System.Net.Http.Headers;");let p="";const d=Boolean(e.cookie),u=(e=>{let t=Tu(e,"accept-encoding");if(!t)return[];const r={gzip:"DecompressionMethods.GZip",deflate:"DecompressionMethods.Deflate"},n=[];return"string"==typeof t&&(t=[t]),t.forEach(e=>{e.split(",").forEach(e=>{const t=/\s*([^;\s]+)/.exec(e);if(t){const e=r[t[1]];e&&n.push(e)}})}),n})(e);(d||u.length)&&(p="clientHandler",l("var clientHandler = new HttpClientHandler"),l("{"),d&&l("UseCookies = false,",1),u.length&&l(`AutomaticDecompression = ${u.join(" | ")},`,1),l("};")),l(`var client = new HttpClient(${p});`),l("var request = new HttpRequestMessage"),l("{");r=(r=r.toUpperCase())&&["GET","POST","PUT","DELETE","PATCH","HEAD","OPTIONS","TRACE"].includes(r)?`HttpMethod.${r[0]}${r.substring(1).toLowerCase()}`:`new HttpMethod("${r}")`,l(`Method = ${r},`,1),l(`RequestUri = new Uri("${n}"),`,1);const f=Object.keys(e).filter(e=>{switch(e.toLowerCase()){case"content-type":case"content-length":case"accept-encoding":return!1;default:return!0}});if(f.length&&(l("Headers =",1),l("{",1),f.forEach(t=>{l(`{ "${t}", "${Uu(e[t])}" },`,2)}),l("},",1)),null==t?void 0:t.text){const e=t.mimeType;switch(e){case"application/x-www-form-urlencoded":l("Content = new FormUrlEncodedContent(new Dictionary<string, string>",1),l("{",1),null===(s=t.params)||void 0===s||s.forEach(e=>{l(`{ "${e.name}", "${e.value}" },`,2)}),l("}),",1);break;case"multipart/form-data":l("Content = new MultipartFormDataContent",1),l("{",1),null===(i=t.params)||void 0===i||i.forEach(e=>{l(`new StringContent(${JSON.stringify(e.value||"")})`,2),l("{",2),l("Headers =",3),l("{",3),e.contentType&&l(`ContentType = new MediaTypeHeaderValue("${e.contentType}"),`,4),l('ContentDisposition = new ContentDispositionHeaderValue("form-data")',4),l("{",4),l(`Name = "${e.name}",`,5),e.fileName&&l(`FileName = "${e.fileName}",`,5),l("}",4),l("}",3),l("},",2)}),l("},",1);break;default:l(`Content = new StringContent(${JSON.stringify((null==t?void 0:t.text)||"")})`,1),l("{",1),l("Headers =",2),l("{",2),l(`ContentType = new MediaTypeHeaderValue("${e}")`,3),l("}",2),l("}",1)}}return l("};"),l("using (var response = await client.SendAsync(request))"),l("{"),l("response.EnsureSuccessStatusCode();",1),l("var body = await response.Content.ReadAsStringAsync();",1),l("Console.WriteLine(body);",1),l("}"),c()}},restsharp:{info:{key:"restsharp",title:"RestSharp",link:"http://restsharp.org/",description:"Simple REST and HTTP API Client for .NET"},convert:({allHeaders:e,method:t,fullUrl:r,headersObj:n,cookies:o,postData:s})=>{const{push:i,join:a}=new Mu;if(!["GET","POST","PUT","DELETE","PATCH","HEAD","OPTIONS"].includes(t.toUpperCase()))return"Method not supported";if(i(`var client = new RestClient("${r}");`),i(`var request = new RestRequest(Method.${t.toUpperCase()});`),Object.keys(n).forEach(e=>{i(`request.AddHeader("${e}", "${Uu(n[e])}");`)}),null==o||o.forEach(({name:e,value:t})=>{i(`request.AddCookie("${e}", "${t}");`)}),null==s?void 0:s.text){const t=Tu(e,"content-type"),r=JSON.stringify(s.text);i(`request.AddParameter("${t}", ${r}, ParameterType.RequestBody);`)}return i("IRestResponse response = client.Execute(request);"),a()}}}},Zu={info:{key:"go",title:"Go",extname:".go",default:"native"},clientsById:{native:{info:{key:"native",title:"NewRequest",link:"http://golang.org/pkg/net/http/#NewRequest",description:"Golang HTTP client request"},convert:({postData:e,method:t,allHeaders:r,fullUrl:n},o={})=>{const{blank:s,push:i,join:a}=new Mu({indent:"\t"}),{showBoilerplate:l=!0,checkErrors:c=!1,printBody:p=!0,timeout:d=-1,insecureSkipVerify:u=!1}=o,f=c?"err":"_",h=l?1:0,m=()=>{c&&(i("if err != nil {",h),i("panic(err)",h+1),i("}",h))};l&&(i("package main"),s(),i("import ("),i('"fmt"',h),d>0&&i('"time"',h),u&&i('"crypto/tls"',h),(null==e?void 0:e.text)&&i('"strings"',h),i('"net/http"',h),p&&i('"io"',h),i(")"),s(),i("func main() {"),s()),u&&(i("insecureTransport := http.DefaultTransport.(*http.Transport).Clone()",h),i("insecureTransport.TLSClientConfig = &tls.Config{InsecureSkipVerify: true}",h));const g=d>0,y=g||u,v=y?"client":"http.DefaultClient";return y&&(i("client := http.Client{",h),g&&i(`Timeout: time.Duration(${d} * time.Second),`,h+1),u&&i("Transport: insecureTransport,",h+1),i("}",h),s()),i(`url := "${n}"`,h),s(),(null==e?void 0:e.text)?(i(`payload := strings.NewReader(${JSON.stringify(e.text)})`,h),s(),i(`req, ${f} := http.NewRequest("${t}", url, payload)`,h),s()):(i(`req, ${f} := http.NewRequest("${t}", url, nil)`,h),s()),m(),Object.keys(r).length&&(Object.keys(r).forEach(e=>{i(`req.Header.Add("${e}", "${Uu(r[e])}")`,h)}),s()),i(`res, ${f} := ${v}.Do(req)`,h),m(),p&&(s(),i("defer res.Body.Close()",h),i(`body, ${f} := io.ReadAll(res.Body)`,h),m()),s(),i("fmt.Println(res)",h),p&&i("fmt.Println(string(body))",h),l&&(s(),i("}")),a()}}}},Qu={info:{key:"http",title:"HTTP",extname:null,default:"1.1"},clientsById:{"http1.1":{info:{key:"http1.1",title:"HTTP/1.1",link:"https://tools.ietf.org/html/rfc7230",description:"HTTP/1.1 request string in accordance with RFC 7230"},convert:({method:e,fullUrl:t,uriObj:r,httpVersion:n,allHeaders:o,postData:s},i)=>{const a={absoluteURI:!1,autoContentLength:!0,autoHost:!0,...i},{blank:l,push:c,join:p}=new Mu({indent:"",join:"\r\n"}),d=a.absoluteURI?t:r.path;c(`${e} ${d} ${n}`);const u=Object.keys(o);u.forEach(e=>{const t=e.toLowerCase().replace(/(^|-)(\w)/g,e=>e.toUpperCase());c(`${t}: ${o[e]}`)}),a.autoHost&&!u.includes("host")&&c(`Host: ${r.host}`),a.autoContentLength&&(null==s?void 0:s.text)&&!u.includes("content-length")&&c(`Content-Length: ${s.text.length}`),l();return`${p()}\r\n${(null==s?void 0:s.text)||""}`}}}},Yu={info:{key:"java",title:"Java",extname:".java",default:"unirest"},clientsById:{asynchttp:{info:{key:"asynchttp",title:"AsyncHttp",link:"https://github.com/AsyncHttpClient/async-http-client",description:"Asynchronous Http and WebSocket Client library for Java"},convert:({method:e,allHeaders:t,postData:r,fullUrl:n},o)=>{const s={indent:" ",...o},{blank:i,push:a,join:l}=new Mu({indent:s.indent});return a("AsyncHttpClient client = new DefaultAsyncHttpClient();"),a(`client.prepare("${e.toUpperCase()}", "${n}")`),Object.keys(t).forEach(e=>{a(`.setHeader("${e}", "${Uu(t[e])}")`,1)}),(null==r?void 0:r.text)&&a(`.setBody(${JSON.stringify(r.text)})`,1),a(".execute()",1),a(".toCompletableFuture()",1),a(".thenAccept(System.out::println)",1),a(".join();",1),i(),a("client.close();"),l()}},nethttp:{info:{key:"nethttp",title:"java.net.http",link:"https://openjdk.java.net/groups/net/httpclient/intro.html",description:"Java Standardized HTTP Client API"},convert:({allHeaders:e,fullUrl:t,method:r,postData:n},o)=>{const s={indent:" ",...o},{push:i,join:a}=new Mu({indent:s.indent});return i("HttpRequest request = HttpRequest.newBuilder()"),i(`.uri(URI.create("${t}"))`,2),Object.keys(e).forEach(t=>{i(`.header("${t}", "${Uu(e[t])}")`,2)}),(null==n?void 0:n.text)?i(`.method("${r.toUpperCase()}", HttpRequest.BodyPublishers.ofString(${JSON.stringify(n.text)}))`,2):i(`.method("${r.toUpperCase()}", HttpRequest.BodyPublishers.noBody())`,2),i(".build();",2),i("HttpResponse<String> response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());"),i("System.out.println(response.body());"),a()}},okhttp:{info:{key:"okhttp",title:"OkHttp",link:"http://square.github.io/okhttp/",description:"An HTTP Request Client Library"},convert:({postData:e,method:t,fullUrl:r,allHeaders:n},o)=>{const s={indent:" ",...o},{push:i,blank:a,join:l}=new Mu({indent:s.indent});return i("OkHttpClient client = new OkHttpClient();"),a(),(null==e?void 0:e.text)&&(e.boundary?i(`MediaType mediaType = MediaType.parse("${e.mimeType}; boundary=${e.boundary}");`):i(`MediaType mediaType = MediaType.parse("${e.mimeType}");`),i(`RequestBody body = RequestBody.create(mediaType, ${JSON.stringify(e.text)});`)),i("Request request = new Request.Builder()"),i(`.url("${r}")`,1),["GET","POST","PUT","DELETE","PATCH","HEAD"].includes(t.toUpperCase())?["POST","PUT","DELETE","PATCH"].includes(t.toUpperCase())?(null==e?void 0:e.text)?i(`.${t.toLowerCase()}(body)`,1):i(`.${t.toLowerCase()}(null)`,1):i(`.${t.toLowerCase()}()`,1):(null==e?void 0:e.text)?i(`.method("${t.toUpperCase()}", body)`,1):i(`.method("${t.toUpperCase()}", null)`,1),Object.keys(n).forEach(e=>{i(`.addHeader("${e}", "${Uu(n[e])}")`,1)}),i(".build();",1),a(),i("Response response = client.newCall(request).execute();"),l()}},unirest:{info:{key:"unirest",title:"Unirest",link:"http://unirest.io/java.html",description:"Lightweight HTTP Request Client Library"},convert:({method:e,allHeaders:t,postData:r,fullUrl:n},o)=>{const s={indent:" ",...o},{join:i,push:a}=new Mu({indent:s.indent});return["GET","POST","PUT","DELETE","PATCH","HEAD","OPTIONS"].includes(e.toUpperCase())?a(`HttpResponse<String> response = Unirest.${e.toLowerCase()}("${n}")`):a(`HttpResponse<String> response = Unirest.customMethod("${e.toUpperCase()}","${n}")`),Object.keys(t).forEach(e=>{a(`.header("${e}", "${Uu(t[e])}")`,1)}),(null==r?void 0:r.text)&&a(`.body(${JSON.stringify(r.text)})`,1),a(".asString();",1),i()}}}};var Xu,ef,tf,rf;var nf,of,sf,af={};const lf=s(function(){if(sf)return of;sf=1;const e=ef?Xu:(ef=1,Xu=function(e){return"[object RegExp]"===Object.prototype.toString.call(e)}),t=rf?tf:(rf=1,tf=function(e){var t=typeof e;return null!==e&&("object"===t||"function"===t)}),r=(nf||(nf=1,Object.defineProperty(af,"__esModule",{value:!0}),af.default=e=>Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))),af).default;return of=(n,o,s)=>{const i=[];return function n(o,s,a){let l;(s=s||{}).indent=s.indent||"\t",a=a||"",l=void 0===s.inlineCharacterLimit?{newLine:"\n",newLineOrSpace:"\n",pad:a,indent:a+s.indent}:{newLine:"@@__STRINGIFY_OBJECT_NEW_LINE__@@",newLineOrSpace:"@@__STRINGIFY_OBJECT_NEW_LINE_OR_SPACE__@@",pad:"@@__STRINGIFY_OBJECT_PAD__@@",indent:"@@__STRINGIFY_OBJECT_INDENT__@@"};const c=e=>{if(void 0===s.inlineCharacterLimit)return e;const t=e.replace(new RegExp(l.newLine,"g"),"").replace(new RegExp(l.newLineOrSpace,"g")," ").replace(new RegExp(l.pad+"|"+l.indent,"g"),"");return t.length<=s.inlineCharacterLimit?t:e.replace(new RegExp(l.newLine+"|"+l.newLineOrSpace,"g"),"\n").replace(new RegExp(l.pad,"g"),a).replace(new RegExp(l.indent,"g"),a+s.indent)};if(-1!==i.indexOf(o))return'"[Circular]"';if(null==o||"number"==typeof o||"boolean"==typeof o||"function"==typeof o||"symbol"==typeof o||e(o))return String(o);if(o instanceof Date)return`new Date('${o.toISOString()}')`;if(Array.isArray(o)){if(0===o.length)return"[]";i.push(o);const e="["+l.newLine+o.map((e,t)=>{const r=o.length-1===t?l.newLine:","+l.newLineOrSpace;let i=n(e,s,a+s.indent);return s.transform&&(i=s.transform(o,t,i)),l.indent+i+r}).join("")+l.pad+"]";return i.pop(),c(e)}if(t(o)){let e=Object.keys(o).concat(r(o));if(s.filter&&(e=e.filter(e=>s.filter(o,e))),0===e.length)return"{}";i.push(o);const t="{"+l.newLine+e.map((t,r)=>{const i=e.length-1===r?l.newLine:","+l.newLineOrSpace,c="symbol"==typeof t,p=!c&&/^[a-z$_][a-z$_0-9]*$/i.test(t),d=c||p?t:n(t,s);let u=n(o[t],s,a+s.indent);return s.transform&&(u=s.transform(o,t,u)),l.indent+String(d)+": "+u+i}).join("")+l.pad+"}";return i.pop(),c(t)}return o=String(o).replace(/[\r\n]/g,e=>"\n"===e?"\\n":"\\r"),!1===s.singleQuotes?`"${o=o.replace(/"/g,'\\"')}"`:`'${o=o.replace(/\\?'/g,"\\'")}'`}(n,o,s)}}()),cf={info:{key:"javascript",title:"JavaScript",extname:".js",default:"xhr"},clientsById:{xhr:{info:{key:"xhr",title:"XMLHttpRequest",link:"https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest",description:"W3C Standard API that provides scripted client functionality"},convert:({postData:e,allHeaders:t,method:r,fullUrl:n},o)=>{var s;const i={indent:" ",cors:!0,...o},{blank:a,push:l,join:c}=new Mu({indent:i.indent});switch(null==e?void 0:e.mimeType){case"application/json":l(`const data = JSON.stringify(${lf(e.jsonObj,{indent:i.indent})});`),a();break;case"multipart/form-data":if(!e.params)break;if(l("const data = new FormData();"),e.params.forEach(e=>{l(`data.append('${e.name}', '${e.value||e.fileName||""}');`)}),Au(t,"content-type")&&(null===(s=Tu(t,"content-type"))||void 0===s?void 0:s.includes("boundary"))){const e=Eu(t,"content-type");e&&delete t[e]}a();break;default:l(`const data = ${(null==e?void 0:e.text)?`'${e.text}'`:"null"};`),a()}return l("const xhr = new XMLHttpRequest();"),i.cors&&l("xhr.withCredentials = true;"),a(),l("xhr.addEventListener('readystatechange', function () {"),l("if (this.readyState === this.DONE) {",1),l("console.log(this.responseText);",2),l("}",1),l("});"),a(),l(`xhr.open('${r}', '${n}');`),Object.keys(t).forEach(e=>{l(`xhr.setRequestHeader('${e}', '${zu(t[e])}');`)}),a(),l("xhr.send(data);"),c()}},axios:{info:{key:"axios",title:"Axios",link:"https://github.com/axios/axios",description:"Promise based HTTP client for the browser and node.js"},convert:({allHeaders:e,method:t,url:r,queryObj:n,postData:o},s)=>{const i={indent:" ",...s},{blank:a,push:l,join:c,addPostProcessor:p}=new Mu({indent:i.indent});l("import axios from 'axios';"),a();const d={method:t,url:r};switch(Object.keys(n).length&&(d.params=n),Object.keys(e).length&&(d.headers=e),null==o?void 0:o.mimeType){case"application/x-www-form-urlencoded":o.params&&(l("const encodedParams = new URLSearchParams();"),o.params.forEach(e=>{l(`encodedParams.set('${e.name}', '${e.value}');`)}),a(),d.data="encodedParams,",p(e=>e.replace(/'encodedParams,'/,"encodedParams,")));break;case"application/json":o.jsonObj&&(d.data=o.jsonObj);break;case"multipart/form-data":if(!o.params)break;l("const form = new FormData();"),o.params.forEach(e=>{l(`form.append('${e.name}', '${e.value||e.fileName||""}');`)}),a(),d.data="[form]";break;default:(null==o?void 0:o.text)&&(d.data=o.text)}const u=lf(d,{indent:" ",inlineCharacterLimit:80}).replace('"[form]"',"form");return l(`const options = ${u};`),a(),l("try {"),l("const { data } = await axios.request(options);",1),l("console.log(data);",1),l("} catch (error) {"),l("console.error(error);",1),l("}"),c()}},fetch:{info:{key:"fetch",title:"fetch",link:"https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch",description:"Perform asynchronous HTTP requests with the Fetch API"},convert:({method:e,allHeaders:t,postData:r,fullUrl:n},o)=>{const s={indent:" ",credentials:null,...o},{blank:i,join:a,push:l}=new Mu({indent:s.indent}),c={method:e};switch(Object.keys(t).length&&(c.headers=t),null!==s.credentials&&(c.credentials=s.credentials),l(`const url = '${n}';`),null==r?void 0:r.mimeType){case"application/x-www-form-urlencoded":c.body=r.paramsObj?r.paramsObj:r.text;break;case"application/json":c.body=JSON.stringify(r.jsonObj);break;case"multipart/form-data":if(!r.params)break;const e=Eu(t,"content-type");e&&delete t[e],l("const form = new FormData();"),r.params.forEach(e=>{l(`form.append('${e.name}', '${e.value||e.fileName||""}');`)}),i();break;default:(null==r?void 0:r.text)&&(c.body=r.text)}return c.headers&&!Object.keys(c.headers).length&&delete c.headers,l(`const options = ${lf(c,{indent:s.indent,inlineCharacterLimit:80,transform:(e,t,n)=>"body"===t&&r&&"application/x-www-form-urlencoded"===r.mimeType?`new URLSearchParams(${n})`:n})};`),i(),(null==r?void 0:r.params)&&"multipart/form-data"===r.mimeType&&(l("options.body = form;"),i()),l("try {"),l("const response = await fetch(url, options);",1),l("const data = await response.json();",1),l("console.log(data);",1),l("} catch (error) {"),l("console.error(error);",1),l("}"),a()}},jquery:{info:{key:"jquery",title:"jQuery",link:"http://api.jquery.com/jquery.ajax/",description:"Perform an asynchronous HTTP (Ajax) requests with jQuery"},convert:({fullUrl:e,method:t,allHeaders:r,postData:n},o)=>{var s;const i={indent:" ",...o},{blank:a,push:l,join:c}=new Mu({indent:i.indent}),p={async:!0,crossDomain:!0,url:e,method:t,headers:r};switch(null==n?void 0:n.mimeType){case"application/x-www-form-urlencoded":p.data=n.paramsObj?n.paramsObj:n.text;break;case"application/json":p.processData=!1,p.data=n.text;break;case"multipart/form-data":if(!n.params)break;if(l("const form = new FormData();"),n.params.forEach(e=>{l(`form.append('${e.name}', '${e.value||e.fileName||""}');`)}),p.processData=!1,p.contentType=!1,p.mimeType="multipart/form-data",p.data="[form]",Au(r,"content-type")&&(null===(s=Tu(r,"content-type"))||void 0===s?void 0:s.includes("boundary"))){const e=Eu(r,"content-type");e&&delete p.headers[e]}a();break;default:(null==n?void 0:n.text)&&(p.data=n.text)}const d=lf(p,{indent:i.indent}).replace("'[form]'","form");return l(`const settings = ${d};`),a(),l("$.ajax(settings).done(function (response) {"),l("console.log(response);",1),l("});"),c()}}}},pf={info:{key:"kotlin",title:"Kotlin",extname:".kt",default:"okhttp"},clientsById:{okhttp:{info:{key:"okhttp",title:"OkHttp",link:"http://square.github.io/okhttp/",description:"An HTTP Request Client Library"},convert:({postData:e,fullUrl:t,method:r,allHeaders:n},o)=>{const s={indent:" ",...o},{blank:i,join:a,push:l}=new Mu({indent:s.indent});return l("val client = OkHttpClient()"),i(),(null==e?void 0:e.text)&&(e.boundary?l(`val mediaType = MediaType.parse("${e.mimeType}; boundary=${e.boundary}")`):l(`val mediaType = MediaType.parse("${e.mimeType}")`),l(`val body = RequestBody.create(mediaType, ${JSON.stringify(e.text)})`)),l("val request = Request.Builder()"),l(`.url("${t}")`,1),["GET","POST","PUT","DELETE","PATCH","HEAD"].includes(r.toUpperCase())?["POST","PUT","DELETE","PATCH"].includes(r.toUpperCase())?(null==e?void 0:e.text)?l(`.${r.toLowerCase()}(body)`,1):l(`.${r.toLowerCase()}(null)`,1):l(`.${r.toLowerCase()}()`,1):(null==e?void 0:e.text)?l(`.method("${r.toUpperCase()}", body)`,1):l(`.method("${r.toUpperCase()}", null)`,1),Object.keys(n).forEach(e=>{l(`.addHeader("${e}", "${Uu(n[e])}")`,1)}),l(".build()",1),i(),l("val response = client.newCall(request).execute()"),a()}}}},df={info:{key:"node",title:"Node.js",extname:".js",default:"native"},clientsById:{native:{info:{key:"native",title:"HTTP",link:"http://nodejs.org/api/http.html#http_http_request_options_callback",description:"Node.js native HTTP interface"},convert:({uriObj:e,method:t,allHeaders:r,postData:n},o={})=>{const{indent:s=" ",insecureSkipVerify:i=!1}=o,{blank:a,join:l,push:c,unshift:p}=new Mu({indent:s}),d={method:t,hostname:e.hostname,port:""===e.port?null:e.port,path:e.path,headers:r,...i?{rejectUnauthorized:!1}:{}};switch(c(`const http = require('${e.protocol.replace(":","")}');`),a(),c(`const options = ${lf(d,{indent:s})};`),a(),c("const req = http.request(options, function (res) {"),c("const chunks = [];",1),a(),c("res.on('data', function (chunk) {",1),c("chunks.push(chunk);",2),c("});",1),a(),c("res.on('end', function () {",1),c("const body = Buffer.concat(chunks);",2),c("console.log(body.toString());",2),c("});",1),c("});"),a(),null==n?void 0:n.mimeType){case"application/x-www-form-urlencoded":n.paramsObj&&(p("const qs = require('querystring');"),c(`req.write(qs.stringify(${lf(n.paramsObj,{indent:" ",inlineCharacterLimit:80})}));`));break;case"application/json":n.jsonObj&&c(`req.write(JSON.stringify(${lf(n.jsonObj,{indent:" ",inlineCharacterLimit:80})}));`);break;default:(null==n?void 0:n.text)&&c(`req.write(${lf(n.text,{indent:s})});`)}return c("req.end();"),l()}},request:{info:{key:"request",title:"Request",link:"https://github.com/request/request",description:"Simplified HTTP request client"},convert:({method:e,url:t,queryObj:r,postData:n,headersObj:o,cookies:s},i)=>{const a={indent:" ",...i};let l=!1;const{push:c,blank:p,join:d,unshift:u}=new Mu({indent:a.indent});c("const request = require('request');"),p();const f={method:e,url:t};switch(Object.keys(r).length&&(f.qs=r),Object.keys(o).length&&(f.headers=o),null==n?void 0:n.mimeType){case"application/x-www-form-urlencoded":f.form=n.paramsObj;break;case"application/json":n.jsonObj&&(f.body=n.jsonObj,f.json=!0);break;case"multipart/form-data":if(!n.params)break;f.formData={},n.params.forEach(e=>{if(!e.fileName&&!e.fileName&&!e.contentType)return void(f.formData[e.name]=e.value);let t={};e.fileName?(l=!0,t={value:`fs.createReadStream(${e.fileName})`,options:{filename:e.fileName,contentType:e.contentType?e.contentType:null}}):e.value&&(t.value=e.value),f.formData[e.name]=t});break;default:(null==n?void 0:n.text)&&(f.body=n.text)}return s.length&&(f.jar="JAR",c("const jar = request.jar();"),s.forEach(e=>{c(`jar.setCookie(request.cookie('${encodeURIComponent(e.name)}=${encodeURIComponent(e.value)}'), '${t}');`)}),p()),l&&u("const fs = require('fs');"),c(`const options = ${lf(f,{indent:" ",inlineCharacterLimit:80})};`),p(),c("request(options, function (error, response, body) {"),c("if (error) throw new Error(error);",1),p(),c("console.log(body);",1),c("});"),d().replace("'JAR'","jar").replace(/'fs\.createReadStream\((.*)\)'/,"fs.createReadStream('$1')")}},unirest:{info:{key:"unirest",title:"Unirest",link:"http://unirest.io/nodejs.html",description:"Lightweight HTTP Request Client Library"},convert:({method:e,url:t,cookies:r,queryObj:n,postData:o,headersObj:s},i)=>{const a={indent:" ",...i};let l=!1;const{addPostProcessor:c,blank:p,join:d,push:u,unshift:f}=new Mu({indent:a.indent});switch(u("const unirest = require('unirest');"),p(),u(`const req = unirest('${e}', '${t}');`),p(),r.length&&(u("const CookieJar = unirest.jar();"),r.forEach(e=>{u(`CookieJar.add('${encodeURIComponent(e.name)}=${encodeURIComponent(e.value)}', '${t}');`)}),u("req.jar(CookieJar);"),p()),Object.keys(n).length&&(u(`req.query(${lf(n,{indent:a.indent})});`),p()),Object.keys(s).length&&(u(`req.headers(${lf(s,{indent:a.indent})});`),p()),null==o?void 0:o.mimeType){case"application/x-www-form-urlencoded":o.paramsObj&&(u(`req.form(${lf(o.paramsObj,{indent:a.indent})});`),p());break;case"application/json":o.jsonObj&&(u("req.type('json');"),u(`req.send(${lf(o.jsonObj,{indent:a.indent})});`),p());break;case"multipart/form-data":{if(!o.params)break;const e=[];o.params.forEach(t=>{const r={};t.fileName&&!t.value?(l=!0,r.body=`fs.createReadStream('${t.fileName}')`,c(e=>e.replace(/'fs\.createReadStream\(\\'(.+)\\'\)'/,"fs.createReadStream('$1')"))):t.value&&(r.body=t.value),r.body&&(t.contentType&&(r["content-type"]=t.contentType),e.push(r))}),u(`req.multipart(${lf(e,{indent:a.indent})});`),p();break}default:(null==o?void 0:o.text)&&(u(`req.send(${lf(o.text,{indent:a.indent})});`),p())}return l&&f("const fs = require('fs');"),u("req.end(function (res) {"),u("if (res.error) throw new Error(res.error);",1),p(),u("console.log(res.body);",1),u("});"),d()}},axios:{info:{key:"axios",title:"Axios",link:"https://github.com/axios/axios",description:"Promise based HTTP client for the browser and node.js"},convert:({method:e,url:t,queryObj:r,allHeaders:n,postData:o},s)=>{const i={indent:" ",...s},{blank:a,join:l,push:c,addPostProcessor:p}=new Mu({indent:i.indent});c("const axios = require('axios').default;");const d={method:e,url:t};switch(Object.keys(r).length&&(d.params=r),Object.keys(n).length&&(d.headers=n),null==o?void 0:o.mimeType){case"application/x-www-form-urlencoded":o.params&&(c("const { URLSearchParams } = require('url');"),a(),c("const encodedParams = new URLSearchParams();"),o.params.forEach(e=>{c(`encodedParams.set('${e.name}', '${e.value}');`)}),a(),d.data="encodedParams,",p(e=>e.replace(/'encodedParams,'/,"encodedParams,")));break;case"application/json":a(),o.jsonObj&&(d.data=o.jsonObj);break;default:a(),(null==o?void 0:o.text)&&(d.data=o.text)}const u=lf(d,{indent:" ",inlineCharacterLimit:80});return c(`const options = ${u};`),a(),c("try {"),c("const { data } = await axios.request(options);",1),c("console.log(data);",1),c("} catch (error) {"),c("console.error(error);",1),c("}"),l()}},fetch:{info:{key:"fetch",title:"Fetch",link:"https://github.com/bitinn/node-fetch",description:"Simplified HTTP node-fetch client"},convert:({method:e,fullUrl:t,postData:r,headersObj:n,cookies:o},s)=>{var i;const a={indent:" ",...s};let l=!1;const{blank:c,push:p,join:d,unshift:u}=new Mu({indent:a.indent});p("const fetch = require('node-fetch');"),c();const f={method:e};switch(Object.keys(n).length&&(f.headers=n),null==r?void 0:r.mimeType){case"application/x-www-form-urlencoded":u("const { URLSearchParams } = require('url');"),p("const encodedParams = new URLSearchParams();"),null===(i=r.params)||void 0===i||i.forEach(e=>{p(`encodedParams.set('${e.name}', '${e.value}');`)}),c(),f.body="encodedParams";break;case"application/json":r.jsonObj&&(f.body=JSON.stringify(r.jsonObj));break;case"multipart/form-data":if(!r.params)break;const e=Eu(n,"content-type");e&&delete n[e],u("const FormData = require('form-data');"),p("const formData = new FormData();"),r.params.forEach(e=>{e.fileName||e.fileName||e.contentType?e.fileName&&(l=!0,p(`formData.append('${e.name}', fs.createReadStream('${e.fileName}'));`)):p(`formData.append('${e.name}', '${e.value}');`)}),c();break;default:(null==r?void 0:r.text)&&(f.body=r.text)}if(o.length){const e=o.map(e=>`${encodeURIComponent(e.name)}=${encodeURIComponent(e.value)}`).join("; ");f.headers||(f.headers={}),f.headers.cookie=e}p(`const url = '${t}';`),f.headers&&!Object.keys(f.headers).length&&delete f.headers;const h=lf(f,{indent:" ",inlineCharacterLimit:80});return p(`const options = ${h};`),l&&u("const fs = require('fs');"),(null==r?void 0:r.params)&&"multipart/form-data"===r.mimeType&&p("options.body = formData;"),c(),p("try {"),p("const response = await fetch(url, options);",1),p("const data = await response.json();",1),p("console.log(data);",1),p("} catch (error) {"),p("console.error(error);",1),p("}"),d().replace(/'encodedParams'/,"encodedParams").replace(/"fs\.createReadStream\(\\"(.+)\\"\)"/,'fs.createReadStream("$1")')}}}},uf=(e,t,r,n)=>{const o=`${e} *${t} = `;return`${o}${ff(r,n?o.length:void 0)};`},ff=(e,t)=>{const r=void 0===t?", ":`,\n ${" ".repeat(t)}`;switch(Object.prototype.toString.call(e)){case"[object Number]":return`@${e}`;case"[object Array]":return`@[ ${e.map(e=>ff(e)).join(r)} ]`;case"[object Object]":{const t=[];for(const r in e)t.push(`@"${r}": ${ff(e[r])}`);return`@{ ${t.join(r)} }`}case"[object Boolean]":return e?"@YES":"@NO";default:return null==e?"":`@"${e.toString().replace(/"/g,'\\"')}"`}},hf={info:{key:"objc",title:"Objective-C",extname:".m",default:"nsurlsession"},clientsById:{nsurlsession:{info:{key:"nsurlsession",title:"NSURLSession",link:"https://developer.apple.com/library/mac/documentation/Foundation/Reference/NSURLSession_class/index.html",description:"Foundation's NSURLSession request"},convert:({allHeaders:e,postData:t,method:r,fullUrl:n},o)=>{var s;const i={indent:" ",pretty:!0,timeout:10,...o},{push:a,join:l,blank:c}=new Mu({indent:i.indent}),p={hasHeaders:!1,hasBody:!1};if(a("#import <Foundation/Foundation.h>"),Object.keys(e).length&&(p.hasHeaders=!0,c(),a(uf("NSDictionary","headers",e,i.pretty))),t&&(t.text||t.jsonObj||t.params))switch(p.hasBody=!0,t.mimeType){case"application/x-www-form-urlencoded":if(null===(s=t.params)||void 0===s?void 0:s.length){c();const[e,...r]=t.params;a(`NSMutableData *postData = [[NSMutableData alloc] initWithData:[@"${e.name}=${e.value}" dataUsingEncoding:NSUTF8StringEncoding]];`),r.forEach(({name:e,value:t})=>{a(`[postData appendData:[@"&${e}=${t}" dataUsingEncoding:NSUTF8StringEncoding]];`)})}else p.hasBody=!1;break;case"application/json":t.jsonObj&&(a(uf("NSDictionary","parameters",t.jsonObj,i.pretty)),c(),a("NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];"));break;case"multipart/form-data":a(uf("NSArray","parameters",t.params||[],i.pretty)),a(`NSString *boundary = @"${t.boundary}";`),c(),a("NSError *error;"),a("NSMutableString *body = [NSMutableString string];"),a("for (NSDictionary *param in parameters) {"),a('[body appendFormat:@"--%@\\r\\n", boundary];',1),a('if (param[@"fileName"]) {',1),a('[body appendFormat:@"Content-Disposition:form-data; name=\\"%@\\"; filename=\\"%@\\"\\r\\n", param[@"name"], param[@"fileName"]];',2),a('[body appendFormat:@"Content-Type: %@\\r\\n\\r\\n", param[@"contentType"]];',2),a('[body appendFormat:@"%@", [NSString stringWithContentsOfFile:param[@"fileName"] encoding:NSUTF8StringEncoding error:&error]];',2),a("if (error) {",2),a('NSLog(@"%@", error);',3),a("}",2),a("} else {",1),a('[body appendFormat:@"Content-Disposition:form-data; name=\\"%@\\"\\r\\n\\r\\n", param[@"name"]];',2),a('[body appendFormat:@"%@", param[@"value"]];',2),a("}",1),a("}"),a('[body appendFormat:@"\\r\\n--%@--\\r\\n", boundary];'),a("NSData *postData = [body dataUsingEncoding:NSUTF8StringEncoding];");break;default:c(),a(`NSData *postData = [[NSData alloc] initWithData:[@"${t.text}" dataUsingEncoding:NSUTF8StringEncoding]];`)}return c(),a(`NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"${n}"]`),a(" cachePolicy:NSURLRequestUseProtocolCachePolicy"),a(` timeoutInterval:${i.timeout.toFixed(1)}];`),a(`[request setHTTPMethod:@"${r}"];`),p.hasHeaders&&a("[request setAllHTTPHeaderFields:headers];"),p.hasBody&&a("[request setHTTPBody:postData];"),c(),a("NSURLSession *session = [NSURLSession sharedSession];"),a("NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request"),a(" completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {"),a(" if (error) {",1),a(' NSLog(@"%@", error);',2),a(" } else {",1),a(" NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;",2),a(' NSLog(@"%@", httpResponse);',2),a(" }",1),a(" }];"),a("[dataTask resume];"),l()}}}},mf={info:{key:"ocaml",title:"OCaml",extname:".ml",default:"cohttp"},clientsById:{cohttp:{info:{key:"cohttp",title:"CoHTTP",link:"https://github.com/mirage/ocaml-cohttp",description:"Cohttp is a very lightweight HTTP server using Lwt or Async for OCaml"},convert:({fullUrl:e,allHeaders:t,postData:r,method:n},o)=>{const s={indent:" ",...o},{push:i,blank:a,join:l}=new Mu({indent:s.indent});i("open Cohttp_lwt_unix"),i("open Cohttp"),i("open Lwt"),a(),i(`let uri = Uri.of_string "${e}" in`);const c=Object.keys(t);1===c.length?i(`let headers = Header.add (Header.init ()) "${c[0]}" "${Uu(t[c[0]])}" in`):c.length>1&&(i("let headers = Header.add_list (Header.init ()) ["),c.forEach(e=>{i(`("${e}", "${Uu(t[e])}");`,1)}),i("] in")),(null==r?void 0:r.text)&&i(`let body = Cohttp_lwt_body.of_string ${JSON.stringify(r.text)} in`),a();const p=c.length?"~headers ":"",d=(null==r?void 0:r.text)?"~body ":"",u=["get","post","head","delete","patch","put","options"].includes(n.toLowerCase())?`\`${n.toUpperCase()}`:`(Code.method_of_string "${n}")`;return i(`Client.call ${p}${d}${u} uri`),i(">>= fun (res, body_stream) ->"),i("(* Do stuff with the result *)",1),l()}}}},gf=(e,t,r)=>{switch(r=r||"",t=t||"",Object.prototype.toString.call(e)){case"[object Null]":case"[object Undefined]":default:return"null";case"[object String]":return`'${qu(e,{delimiter:"'",escapeNewlines:!1})}'`;case"[object Number]":return e.toString();case"[object Array]":{const n=e.map(e=>gf(e,`${t}${t}`,t)).join(`,\n${t}`);return`[\n${t}${n}\n${r}]`}case"[object Object]":{const n=[];for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.push(`${gf(r,t)} => ${gf(e[r],`${t}${t}`,t)}`);return`[\n${t}${n.join(`,\n${t}`)}\n${r}]`}}},yf=["ACL","BASELINE_CONTROL","CHECKIN","CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LABEL","LOCK","MERGE","MKACTIVITY","MKCOL","MKWORKSPACE","MOVE","OPTIONS","POST","PROPFIND","PROPPATCH","PUT","REPORT","TRACE","UNCHECKOUT","UNLOCK","UPDATE","VERSION_CONTROL"],vf={info:{key:"php",title:"PHP",extname:".php",default:"curl"},clientsById:{curl:{info:{key:"curl",title:"cURL",link:"http://php.net/manual/en/book.curl.php",description:"PHP with ext-curl"},convert:({uriObj:e,postData:t,fullUrl:r,method:n,httpVersion:o,cookies:s,headersObj:i},a={})=>{const{closingTag:l=!1,indent:c=" ",maxRedirects:p=10,namedErrors:d=!1,noTags:u=!1,shortTags:f=!1,timeout:h=30}=a,{push:m,blank:g,join:y}=new Mu({indent:c});u||(m(f?"<?":"<?php"),g()),m("$curl = curl_init();"),g();const v=[{escape:!0,name:"CURLOPT_PORT",value:""===e.port?null:e.port},{escape:!0,name:"CURLOPT_URL",value:r},{escape:!1,name:"CURLOPT_RETURNTRANSFER",value:"true"},{escape:!0,name:"CURLOPT_ENCODING",value:""},{escape:!1,name:"CURLOPT_MAXREDIRS",value:p},{escape:!1,name:"CURLOPT_TIMEOUT",value:h},{escape:!1,name:"CURLOPT_HTTP_VERSION",value:"HTTP/1.0"===o?"CURL_HTTP_VERSION_1_0":"CURL_HTTP_VERSION_1_1"},{escape:!0,name:"CURLOPT_CUSTOMREQUEST",value:n},{escape:!(null==t?void 0:t.jsonObj),name:"CURLOPT_POSTFIELDS",value:t?t.jsonObj?`json_encode(${gf(t.jsonObj,c.repeat(2),c)})`:t.text:void 0}];m("curl_setopt_array($curl, [");const b=new Mu({indent:c,join:`\n${c}`});v.forEach(({value:e,name:t,escape:r})=>{null!=e&&b.push(`${t} => ${r?JSON.stringify(e):e},`)});const $=s.map(e=>`${encodeURIComponent(e.name)}=${encodeURIComponent(e.value)}`);$.length&&b.push(`CURLOPT_COOKIE => "${$.join("; ")}",`);const x=Object.keys(i).sort().map(e=>`"${e}: ${Uu(i[e])}"`);return x.length&&(b.push("CURLOPT_HTTPHEADER => ["),b.push(x.join(`,\n${c}${c}`),1),b.push("],")),m(b.join(),1),m("]);"),g(),m("$response = curl_exec($curl);"),m("$err = curl_error($curl);"),g(),m("curl_close($curl);"),g(),m("if ($err) {"),m(d?'echo array_flip(get_defined_constants(true)["curl"])[$err];':'echo "cURL Error #:" . $err;',1),m("} else {"),m("echo $response;",1),m("}"),!u&&l&&(g(),m("?>")),y()}},guzzle:{info:{key:"guzzle",title:"Guzzle",link:"http://docs.guzzlephp.org/en/stable/",description:"PHP with Guzzle"},convert:({postData:e,fullUrl:t,method:r,cookies:n,headersObj:o},s)=>{var i;const a={closingTag:!1,indent:" ",noTags:!1,shortTags:!1,...s},{push:l,blank:c,join:p}=new Mu({indent:a.indent}),{code:d,push:u,join:f}=new Mu({indent:a.indent});switch(a.noTags||(l(a.shortTags?"<?":"<?php"),c()),null==e?void 0:e.mimeType){case"application/x-www-form-urlencoded":u(`'form_params' => ${gf(e.paramsObj,a.indent+a.indent,a.indent)},`,1);break;case"multipart/form-data":{const t=[];if(e.params&&e.params.forEach(function(e){if(e.fileName){const r={name:e.name,filename:e.fileName,contents:e.value};e.contentType&&(r.headers={"Content-Type":e.contentType}),t.push(r)}else e.value&&t.push({name:e.name,contents:e.value})}),t.length&&(u(`'multipart' => ${gf(t,a.indent+a.indent,a.indent)}`,1),Au(o,"content-type")&&(null===(i=Tu(o,"content-type"))||void 0===i?void 0:i.indexOf("boundary")))){const e=Eu(o,"content-type");e&&delete o[e]}break}default:(null==e?void 0:e.text)&&u(`'body' => ${gf(e.text)},`,1)}const h=Object.keys(o).sort().map(function(e){return`${a.indent}${a.indent}'${e}' => '${zu(o[e])}',`}),m=n.map(e=>`${encodeURIComponent(e.name)}=${encodeURIComponent(e.value)}`).join("; ");return m.length&&h.push(`${a.indent}${a.indent}'cookie' => '${zu(m)}',`),h.length&&(u("'headers' => [",1),u(h.join("\n")),u("],",1)),l("$client = new \\GuzzleHttp\\Client();"),c(),d.length?(l(`$response = $client->request('${r}', '${t}', [`),l(f()),l("]);")):l(`$response = $client->request('${r}', '${t}');`),c(),l("echo $response->getBody();"),!a.noTags&&a.closingTag&&(c(),l("?>")),p()}},http1:{info:{key:"http1",title:"HTTP v1",link:"http://php.net/manual/en/book.http.php",description:"PHP with pecl/http v1"},convert:({method:e,url:t,postData:r,queryObj:n,headersObj:o,cookiesObj:s},i={})=>{const{closingTag:a=!1,indent:l=" ",noTags:c=!1,shortTags:p=!1}=i,{push:d,blank:u,join:f}=new Mu({indent:l});switch(c||(d(p?"<?":"<?php"),u()),yf.includes(e.toUpperCase())||d(`HttpRequest::methodRegister('${e}');`),d("$request = new HttpRequest();"),d(`$request->setUrl(${gf(t)});`),yf.includes(e.toUpperCase())?d(`$request->setMethod(HTTP_METH_${e.toUpperCase()});`):d(`$request->setMethod(HttpRequest::HTTP_METH_${e.toUpperCase()});`),u(),Object.keys(n).length&&(d(`$request->setQueryData(${gf(n,l)});`),u()),Object.keys(o).length&&(d(`$request->setHeaders(${gf(o,l)});`),u()),Object.keys(s).length&&(d(`$request->setCookies(${gf(s,l)});`),u()),null==r?void 0:r.mimeType){case"application/x-www-form-urlencoded":d(`$request->setContentType(${gf(r.mimeType)});`),d(`$request->setPostFields(${gf(r.paramsObj,l)});`),u();break;case"application/json":d(`$request->setContentType(${gf(r.mimeType)});`),d(`$request->setBody(json_encode(${gf(r.jsonObj,l)}));`),u();break;default:(null==r?void 0:r.text)&&(d(`$request->setBody(${gf(r.text)});`),u())}return d("try {"),d("$response = $request->send();",1),u(),d("echo $response->getBody();",1),d("} catch (HttpException $ex) {"),d("echo $ex;",1),d("}"),!c&&a&&(u(),d("?>")),f()}},http2:{info:{key:"http2",title:"HTTP v2",link:"http://devel-m6w6.rhcloud.com/mdref/http",description:"PHP with pecl/http v2"},convert:({postData:e,headersObj:t,method:r,queryObj:n,cookiesObj:o,url:s},i={})=>{var a;const{closingTag:l=!1,indent:c=" ",noTags:p=!1,shortTags:d=!1}=i,{push:u,blank:f,join:h}=new Mu({indent:c});let m=!1;switch(p||(u(d?"<?":"<?php"),f()),u("$client = new http\\Client;"),u("$request = new http\\Client\\Request;"),f(),null==e?void 0:e.mimeType){case"application/x-www-form-urlencoded":u("$body = new http\\Message\\Body;"),u(`$body->append(new http\\QueryString(${gf(e.paramsObj,c)}));`),f(),m=!0;break;case"multipart/form-data":{if(!e.params)break;const r=[],n={};e.params.forEach(({name:e,fileName:t,value:o,contentType:s})=>{t?r.push({name:e,type:s,file:t,data:o}):o&&(n[e]=o)});const o=Object.keys(n).length?gf(n,c):"null",s=r.length?gf(r,c):"null";if(u("$body = new http\\Message\\Body;"),u(`$body->addForm(${o}, ${s});`),Au(t,"content-type")&&(null===(a=Tu(t,"content-type"))||void 0===a?void 0:a.indexOf("boundary"))){const e=Eu(t,"content-type");e&&delete t[e]}f(),m=!0;break}case"application/json":u("$body = new http\\Message\\Body;"),u(`$body->append(json_encode(${gf(e.jsonObj,c)}));`),m=!0;break;default:(null==e?void 0:e.text)&&(u("$body = new http\\Message\\Body;"),u(`$body->append(${gf(e.text)});`),f(),m=!0)}return u(`$request->setRequestUrl(${gf(s)});`),u(`$request->setRequestMethod(${gf(r)});`),m&&(u("$request->setBody($body);"),f()),Object.keys(n).length&&(u(`$request->setQuery(new http\\QueryString(${gf(n,c)}));`),f()),Object.keys(t).length&&(u(`$request->setHeaders(${gf(t,c)});`),f()),Object.keys(o).length&&(f(),u(`$client->setCookies(${gf(o,c)});`),f()),u("$client->enqueue($request)->send();"),u("$response = $client->getResponse();"),f(),u("echo $response->getBody();"),!p&&l&&(f(),u("?>")),h()}}}},bf=e=>({method:t,headersObj:r,cookies:n,uriObj:o,fullUrl:s,postData:i,allHeaders:a})=>{const{push:l,join:c}=new Mu;if(!["GET","POST","PUT","DELETE","PATCH","HEAD","OPTIONS"].includes(t.toUpperCase()))return"Method not supported";const p=[],d=Object.keys(r);return d.length&&(l("$headers=@{}"),d.forEach(e=>{"connection"!==e&&l(`$headers.Add("${e}", "${qu(r[e],{escapeChar:"`"})}")`)}),p.push("-Headers $headers")),n.length&&(l("$session = New-Object Microsoft.PowerShell.Commands.WebRequestSession"),n.forEach(e=>{l("$cookie = New-Object System.Net.Cookie"),l(`$cookie.Name = '${e.name}'`),l(`$cookie.Value = '${e.value}'`),l(`$cookie.Domain = '${o.host}'`),l("$session.Cookies.Add($cookie)")}),p.push("-WebSession $session")),(null==i?void 0:i.text)&&(p.push(`-ContentType '${qu(Tu(a,"content-type"),{delimiter:"'",escapeChar:"`"})}'`),p.push(`-Body '${i.text}'`)),l(`$response = ${e} -Uri '${s}' -Method ${t} ${p.join(" ")}`),c()},$f={info:{key:"restmethod",title:"Invoke-RestMethod",link:"https://docs.microsoft.com/en-us/powershell/module/Microsoft.PowerShell.Utility/Invoke-RestMethod",description:"Powershell Invoke-RestMethod client"},convert:bf("Invoke-RestMethod")},xf={info:{key:"webrequest",title:"Invoke-WebRequest",link:"https://docs.microsoft.com/en-us/powershell/module/Microsoft.PowerShell.Utility/Invoke-WebRequest",description:"Powershell Invoke-WebRequest client"},convert:bf("Invoke-WebRequest")};function wf(e,t,r,n,o){const s=n.repeat(o),i=n.repeat(o-1),a=r?`,\n${s}`:", ",l="object"===e?"{":"[",c="object"===e?"}":"]";return r?`${l}\n${s}${t.join(a)}\n${i}${c}`:"object"===e&&t.length>0?`${l} ${t.join(a)} ${c}`:`${l}${t.join(a)}${c}`}const _f=(e,t,r)=>{switch(r=void 0===r?1:r+1,Object.prototype.toString.call(e)){case"[object Number]":return e;case"[object Array]":{let n=!1;return wf("array",e.map(e=>("[object Object]"===Object.prototype.toString.call(e)&&(n=Object.keys(e).length>1),_f(e,t,r))),n,t.indent,r)}case"[object Object]":{const n=[];for(const o in e)n.push(`"${o}": ${_f(e[o],t,r)}`);return wf("object",n,t.pretty&&n.length>1,t.indent,r)}case"[object Null]":return"None";case"[object Boolean]":return e?"True":"False";default:return null==e?"":`"${e.toString().replace(/"/g,'\\"')}"`}},kf=["HEAD","GET","POST","PUT","PATCH","DELETE","OPTIONS"],Sf=(e="")=>/^[a-z0-9-_/.@%^=:]+$/i.test(e)?e:`'${e.replace(/'/g,"'\\''")}'`,jf={"http1.0":"0","url ":"",cookie:"b",data:"d",form:"F",globoff:"g",header:"H",insecure:"k",request:"X"},Of=(e,t)=>t.repeat(e),Pf=(e,t,r,n)=>{const o=Of(n,r),s=Of(n-1,r),i=t?`,\n${o}`:", ";return t?`[\n${o}${e.join(i)}\n${s}]`:`[${e.join(i)}]`},Ef=(e,t,r)=>`let ${e} = ${Tf(t,r)}`,Tf=(e,t,r)=>{switch(r=void 0===r?1:r+1,Object.prototype.toString.call(e)){case"[object Number]":return e;case"[object Array]":{let n=!1;const o=e.map(e=>("[object Object]"===Object.prototype.toString.call(e)&&(n=Object.keys(e).length>1),Tf(e,t,r)));return Pf(o,n,t.indent,r)}case"[object Object]":{const n=[];for(const o in e)n.push(`"${o}": ${Tf(e[o],t,r)}`);return Pf(n,t.pretty&&n.length>1,t.indent,r)}case"[object Boolean]":return e.toString();default:return null==e?"":`"${e.toString().replace(/"/g,'\\"')}"`}},Af={c:Lu,clojure:Gu,csharp:Ku,go:Zu,http:Qu,java:Yu,javascript:cf,kotlin:pf,node:df,objc:hf,ocaml:mf,php:vf,powershell:{info:{key:"powershell",title:"Powershell",extname:".ps1",default:"webrequest"},clientsById:{webrequest:xf,restmethod:$f}},python:{info:{key:"python",title:"Python",extname:".py",default:"python3"},clientsById:{python3:{info:{key:"python3",title:"http.client",link:"https://docs.python.org/3/library/http.client.html",description:"Python3 HTTP Client"},convert:({uriObj:{path:e,protocol:t,host:r},postData:n,allHeaders:o,method:s},i={})=>{const{insecureSkipVerify:a=!1}=i,{push:l,blank:c,join:p}=new Mu;if(l("import http.client"),a&&l("import ssl"),c(),"https:"===t){l(`conn = http.client.HTTPSConnection("${r}"${a?", context = ssl._create_unverified_context()":""})`),c()}else l(`conn = http.client.HTTPConnection("${r}")`),c();const d=JSON.stringify(null==n?void 0:n.text);d&&(l(`payload = ${d}`),c());const u=o,f=Object.keys(u).length;if(1===f)for(const h in u)l(`headers = { '${h}': "${Uu(u[h])}" }`),c();else if(f>1){let e=1;l("headers = {");for(const t in u)e++!==f?l(` '${t}': "${Uu(u[t])}",`):l(` '${t}': "${Uu(u[t])}"`);l("}"),c()}return l(d&&f?`conn.request("${s}", "${e}", payload, headers)`:d&&!f?`conn.request("${s}", "${e}", payload)`:!d&&f?`conn.request("${s}", "${e}", headers=headers)`:`conn.request("${s}", "${e}")`),c(),l("res = conn.getresponse()"),l("data = res.read()"),c(),l('print(data.decode("utf-8"))'),p()}},requests:{info:{key:"requests",title:"Requests",link:"http://docs.python-requests.org/en/latest/api/#requests.request",description:"Requests HTTP library"},convert:({queryObj:e,url:t,postData:r,allHeaders:n,method:o},s)=>{const i={indent:" ",pretty:!0,...s},{push:a,blank:l,join:c}=new Mu({indent:i.indent});let p;a("import requests"),l(),a(`url = "${t}"`),l(),Object.keys(e).length&&(p=`querystring = ${JSON.stringify(e)}`,a(p),l());const d=n;let u={};const f={};let h=!1,m=!1,g=!1;switch(null==r?void 0:r.mimeType){case"application/json":r.jsonObj&&(a(`payload = ${_f(r.jsonObj,i)}`),g=!0,m=!0);break;case"multipart/form-data":if(!r.params)break;if(u={},r.params.forEach(e=>{e.fileName?(f[e.name]=`open('${e.fileName}', 'rb')`,h=!0):(u[e.name]=e.value,m=!0)}),h){a(`files = ${_f(f,i)}`),m&&a(`payload = ${_f(u,i)}`);const e=Eu(d,"content-type");e&&delete d[e]}else{const e=JSON.stringify(r.text);e&&(a(`payload = ${e}`),m=!0)}break;default:{if(!r)break;if("application/x-www-form-urlencoded"===r.mimeType&&r.paramsObj){a(`payload = ${_f(r.paramsObj,i)}`),m=!0;break}const e=JSON.stringify(r.text);e&&(a(`payload = ${e}`),m=!0)}}const y=Object.keys(d).length;if(0===y&&(m||h))l();else if(1===y)for(const b in d)a(`headers = {"${b}": "${Uu(d[b])}"}`),l();else if(y>1){let e=1;a("headers = {");for(const t in d)a(e!==y?`"${t}": "${Uu(d[t])}",`:`"${t}": "${Uu(d[t])}"`,1),e+=1;a("}"),l()}let v=kf.includes(o)?`response = requests.${o.toLowerCase()}(url`:`response = requests.request("${o}", url`;return m&&(v+=g?", json=payload":", data=payload"),h&&(v+=", files=files"),y>0&&(v+=", headers=headers"),p&&(v+=", params=querystring"),v+=")",a(v),l(),a("print(response.json())"),c()}}}},r:{info:{key:"r",title:"R",extname:".r",default:"httr"},clientsById:{httr:{info:{key:"httr",title:"httr",link:"https://cran.r-project.org/web/packages/httr/vignettes/quickstart.html",description:"httr: Tools for Working with URLs and HTTP"},convert:({url:e,queryObj:t,queryString:r,postData:n,allHeaders:o,method:s},i={})=>{var a,l;const{push:c,blank:p,join:d}=new Mu({indent:null!==(a=i.indent)&&void 0!==a?a:" "});c("library(httr)"),p(),c(`url <- "${e}"`),p();const u=t;delete t.key;const f=Object.entries(u),h=f.length;if(1===h){const e=f[0];c(`queryString <- list(${e[0]} = "${e[1]}")`),p()}else h>1&&(c("queryString <- list("),f.forEach(([e,t],r)=>{c(`${e} = "${t}"${r!==h-1?",":""}`,1)}),c(")"),p());const m=JSON.stringify(null==n?void 0:n.text);if(m&&(c(`payload <- ${m}`),p()),n&&(n.text||n.jsonObj||n.params))switch(n.mimeType){case"application/x-www-form-urlencoded":c('encode <- "form"'),p();break;case"application/json":c('encode <- "json"'),p();break;case"multipart/form-data":c('encode <- "multipart"'),p();break;default:c('encode <- "raw"'),p()}const g=Tu(o,"cookie"),y=Tu(o,"accept"),v=g?`set_cookies(\`${String(g).replace(/;/g,'", `').replace(/` /g,"`").replace(/[=]/g,'` = "')}")`:void 0,b=y?`accept("${Uu(y)}")`:void 0,$=`content_type("${Uu(null!==(l=null==n?void 0:n.mimeType)&&void 0!==l?l:"application/octet-stream")}")`,x=Object.entries(o).filter(([e])=>!["cookie","accept","content-type"].includes(e.toLowerCase())).map(([e,t])=>`'${e}' = '${zu(t)}'`).join(", "),w=x?`add_headers(${x})`:void 0;let _=`response <- VERB("${s}", url`;m&&(_+=", body = payload"),r.length&&(_+=", query = queryString");const k=[w,$,b,v].filter(e=>!!e).join(", ");return k&&(_+=`, ${k}`),n&&(n.text||n.jsonObj||n.params)&&(_+=", encode = encode"),_+=")",c(_),p(),c('content(response, "text")'),d()}}}},ruby:{info:{key:"ruby",title:"Ruby",extname:".rb",default:"native"},clientsById:{native:{info:{key:"native",title:"net::http",link:"http://ruby-doc.org/stdlib-2.2.1/libdoc/net/http/rdoc/Net/HTTP.html",description:"Ruby HTTP client"},convert:({uriObj:e,method:t,fullUrl:r,postData:n,allHeaders:o},s={})=>{const{insecureSkipVerify:i=!1}=s,{push:a,blank:l,join:c}=new Mu;a("require 'uri'"),a("require 'net/http'"),l();const p=t.toUpperCase(),d=p.charAt(0)+p.substring(1).toLowerCase();["GET","POST","HEAD","DELETE","PATCH","PUT","OPTIONS","COPY","LOCK","UNLOCK","MOVE","TRACE"].includes(p)||(a(`class Net::HTTP::${d} < Net::HTTPRequest`),a(` METHOD = '${p.toUpperCase()}'`),a(` REQUEST_HAS_BODY = '${(null==n?void 0:n.text)?"true":"false"}'`),a(" RESPONSE_HAS_BODY = true"),a("end"),l()),a(`url = URI("${r}")`),l(),a("http = Net::HTTP.new(url.host, url.port)"),"https:"===e.protocol&&(a("http.use_ssl = true"),i&&a("http.verify_mode = OpenSSL::SSL::VERIFY_NONE")),l(),a(`request = Net::HTTP::${d}.new(url)`);const u=Object.keys(o);return u.length&&u.forEach(e=>{a(`request["${e}"] = '${zu(o[e])}'`)}),(null==n?void 0:n.text)&&a(`request.body = ${JSON.stringify(n.text)}`),l(),a("response = http.request(request)"),a("puts response.read_body"),c()}}}},shell:{info:{key:"shell",title:"Shell",extname:".sh",default:"curl"},clientsById:{curl:{info:{key:"curl",title:"cURL",link:"http://curl.haxx.se/",description:"cURL is a command line tool and library for transferring data with URL syntax"},convert:({fullUrl:e,method:t,httpVersion:r,headersObj:n,allHeaders:o,postData:s},i={})=>{var a;const{binary:l=!1,globOff:c=!1,indent:p=" ",insecureSkipVerify:d=!1,prettifyJson:u=!1,short:f=!1}=i,{push:h,join:m}=new Mu({..."string"==typeof p?{indent:p}:{},join:!1!==p?` \\\n${p}`:" "}),g=(e=>t=>{if(e){const e=jf[t];return e?`-${e}`:""}return`--${t}`})(f);let y=Sf(e);if(h(`curl ${g("request")} ${t}`),c&&(y=unescape(y),h(g("globoff"))),h(`${g("url ")}${y}`),d&&h(g("insecure")),"HTTP/1.0"===r&&h(g("http1.0")),Tu(o,"accept-encoding")&&h("--compressed"),"multipart/form-data"===(null==s?void 0:s.mimeType)){const e=Eu(n,"content-type");if(e){const t=n[e];if(e&&t){const r=t.replace(/; boundary.+?(?=(;|$))/,"");n[e]=r,o[e]=r}}}switch(Object.keys(n).sort().forEach(e=>{const t=`${e}: ${n[e]}`;h(`${g("header")} ${Sf(t)}`)}),o.cookie&&h(`${g("cookie")} ${Sf(o.cookie)}`),null==s?void 0:s.mimeType){case"multipart/form-data":null===(a=s.params)||void 0===a||a.forEach(e=>{let t="";t=e.fileName?`${e.name}=@${e.fileName}`:`${e.name}=${e.value}`,h(`${g("form")} ${Sf(t)}`)});break;case"application/x-www-form-urlencoded":s.params?s.params.forEach(e=>{const t=e.name,r=encodeURIComponent(e.name),n=r!==t;h(`${l?"--data-binary":"--data"+(n?"-urlencode":"")} ${Sf(`${n?r:t}=${e.value}`)}`)}):h(`${l?"--data-binary":g("data")} ${Sf(s.text)}`);break;default:{if(!s)break;if(!s.text)break;const e=l?"--data-binary":g("data");let t=!1;if(v=s.mimeType,Cu.some(e=>v.includes(e))){if(s.text.length>2&&u)try{const r=JSON.parse(s.text);t=!0;const n=JSON.stringify(r,void 0,p);s.text.indexOf("'")>0?h(`${e} @- <<EOF\n${n}\nEOF`):h(`${e} '\n${n}\n'`)}catch(b){}}t||h(`${e} ${Sf(s.text)}`)}}var v;return m()}},httpie:{info:{key:"httpie",title:"HTTPie",link:"http://httpie.org/",description:"a CLI, cURL-like tool for humans"},convert:({allHeaders:e,postData:t,queryObj:r,fullUrl:n,method:o,url:s},i)=>{const a={body:!1,cert:!1,headers:!1,indent:" ",pretty:!1,print:!1,queryParams:!1,short:!1,style:!1,timeout:!1,verbose:!1,verify:!1,...i},{push:l,join:c,unshift:p}=new Mu({indent:a.indent,join:!1!==a.indent?` \\\n${a.indent}`:" "});let d=!1;const u=[];a.headers&&u.push(a.short?"-h":"--headers"),a.body&&u.push(a.short?"-b":"--body"),a.verbose&&u.push(a.short?"-v":"--verbose"),a.print&&u.push(`${a.short?"-p":"--print"}=${a.print}`),a.verify&&u.push(`--verify=${a.verify}`),a.cert&&u.push(`--cert=${a.cert}`),a.pretty&&u.push(`--pretty=${a.pretty}`),a.style&&u.push(`--style=${a.style}`),a.timeout&&u.push(`--timeout=${a.timeout}`),a.queryParams&&Object.keys(r).forEach(e=>{const t=r[e];Array.isArray(t)?t.forEach(t=>{l(`${e}==${Sf(t)}`)}):l(`${e}==${Sf(t)}`)}),Object.keys(e).sort().forEach(t=>{l(`${t}:${Sf(e[t])}`)}),"application/x-www-form-urlencoded"===(null==t?void 0:t.mimeType)?t.params&&t.params.length&&(u.push(a.short?"-f":"--form"),t.params.forEach(e=>{l(`${e.name}=${Sf(e.value)}`)})):d=!0;if(p(`http ${u.length?`${u.join(" ")} `:""}${o} ${s=Sf(a.queryParams?s:n)}`),d&&(null==t?void 0:t.text)){p(`echo ${Sf(t.text)} | `)}return c()}},wget:{info:{key:"wget",title:"Wget",link:"https://www.gnu.org/software/wget/",description:"a free software package for retrieving files using HTTP, HTTPS"},convert:({method:e,postData:t,allHeaders:r,fullUrl:n},o)=>{const s={indent:" ",short:!1,verbose:!1,...o},{push:i,join:a}=new Mu({indent:s.indent,join:!1!==s.indent?` \\\n${s.indent}`:" "});var l;return s.verbose?i("wget "+(s.short?"-v":"--verbose")):i("wget "+(s.short?"-q":"--quiet")),i(`--method ${Sf(e)}`),Object.keys(r).forEach(e=>{const t=`${e}: ${r[e]}`;i(`--header ${Sf(t)}`)}),(null==t?void 0:t.text)&&i(`--body-data ${l=Sf(t.text),l.replace(/\r/g,"\\r").replace(/\n/g,"\\n")}`),i(s.short?"-O":"--output-document"),i(`- ${Sf(n)}`),a()}}}},swift:{info:{key:"swift",title:"Swift",extname:".swift",default:"nsurlsession"},clientsById:{nsurlsession:{info:{key:"nsurlsession",title:"NSURLSession",link:"https://developer.apple.com/library/mac/documentation/Foundation/Reference/NSURLSession_class/index.html",description:"Foundation's NSURLSession request"},convert:({allHeaders:e,postData:t,fullUrl:r,method:n},o)=>{var s;const i={indent:" ",pretty:!0,timeout:"10",...o},{push:a,blank:l,join:c}=new Mu({indent:i.indent}),p={hasHeaders:!1,hasBody:!1};if(a("import Foundation"),Object.keys(e).length&&(p.hasHeaders=!0,l(),a(Ef("headers",e,i))),t&&(t.text||t.jsonObj||t.params))switch(p.hasBody=!0,t.mimeType){case"application/x-www-form-urlencoded":if(l(),null===(s=t.params)||void 0===s?void 0:s.length){const[e,...r]=t.params;a(`let postData = NSMutableData(data: "${e.name}=${e.value}".data(using: String.Encoding.utf8)!)`),r.forEach(({name:e,value:t})=>{a(`postData.append("&${e}=${t}".data(using: String.Encoding.utf8)!)`)})}else p.hasBody=!1;break;case"application/json":t.jsonObj&&(a(`${Ef("parameters",t.jsonObj,i)} as [String : Any]`),l(),a("let postData = JSONSerialization.data(withJSONObject: parameters, options: [])"));break;case"multipart/form-data":a(Ef("parameters",t.params,i)),l(),a(`let boundary = "${t.boundary}"`),l(),a('var body = ""'),a("var error: NSError? = nil"),a("for param in parameters {"),a('let paramName = param["name"]!',1),a('body += "--\\(boundary)\\r\\n"',1),a('body += "Content-Disposition:form-data; name=\\"\\(paramName)\\""',1),a('if let filename = param["fileName"] {',1),a('let contentType = param["content-type"]!',2),a("let fileContent = String(contentsOfFile: filename, encoding: String.Encoding.utf8)",2),a("if (error != nil) {",2),a("print(error as Any)",3),a("}",2),a('body += "; filename=\\"\\(filename)\\"\\r\\n"',2),a('body += "Content-Type: \\(contentType)\\r\\n\\r\\n"',2),a("body += fileContent",2),a('} else if let paramValue = param["value"] {',1),a('body += "\\r\\n\\r\\n\\(paramValue)"',2),a("}",1),a("}");break;default:l(),a(`let postData = NSData(data: "${t.text}".data(using: String.Encoding.utf8)!)`)}return l(),a(`let request = NSMutableURLRequest(url: NSURL(string: "${r}")! as URL,`),a(" cachePolicy: .useProtocolCachePolicy,"),a(` timeoutInterval: ${parseInt(i.timeout,10).toFixed(1)})`),a(`request.httpMethod = "${n}"`),p.hasHeaders&&a("request.allHTTPHeaderFields = headers"),p.hasBody&&a("request.httpBody = postData as Data"),l(),a("let session = URLSession.shared"),a("let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in"),a("if (error != nil) {",1),a("print(error as Any)",2),a("} else {",1),a("let httpResponse = response as? HTTPURLResponse",2),a("print(httpResponse)",2),a("}",1),a("})"),l(),a("dataTask.resume()"),c()}}}}};class Cf{constructor(e){let t=[];var r;t="object"==typeof(r=e)&&"log"in r&&"object"==typeof r.log&&"entries"in r.log&&Array.isArray(r.log.entries)?e.log.entries:[{request:e}],this.requests=Promise.all(t.map(({request:e})=>{var t;const r={bodySize:0,headersSize:0,headers:[],cookies:[],httpVersion:"HTTP/1.1",queryString:[],postData:{mimeType:(null===(t=e.postData)||void 0===t?void 0:t.mimeType)||"application/octet-stream"},...e};return this.prepare(r)}))}async prepare(e){var t,r,n,o;const s={...e,fullUrl:"",queryObj:{},headersObj:{},cookiesObj:{},allHeaders:{}};if(s.queryString&&s.queryString.length&&(s.queryObj=s.queryString.reduce(Iu,{})),s.headers&&s.headers.length){const e=/^HTTP\/2/;s.headersObj=s.headers.reduce((t,{name:r,value:n})=>{const o=e.exec(s.httpVersion)?r.toLocaleLowerCase():r;return{...t,[o]:n}},{})}s.cookies&&s.cookies.length&&(s.cookiesObj=s.cookies.reduceRight((e,{name:t,value:r})=>({...e,[t]:r}),{}));const i=null===(t=s.cookies)||void 0===t?void 0:t.map(({name:e,value:t})=>`${encodeURIComponent(e)}=${encodeURIComponent(t)}`);switch((null==i?void 0:i.length)&&(s.allHeaders.cookie=i.join("; ")),null===(r=s.postData)||void 0===r?void 0:r.mimeType){case"multipart/mixed":case"multipart/related":case"multipart/form-data":case"multipart/alternative":if(s.postData.text="",s.postData.mimeType="multipart/form-data",null===(n=s.postData)||void 0===n?void 0:n.params){const e=new xu,t="---011000010111000001101001";null===(o=s.postData)||void 0===o||o.params.forEach(t=>{const r=t.name,n=t.value||"",o=t.fileName;var s;"object"==typeof(s=n)&&"function"==typeof s.arrayBuffer&&"string"==typeof s.type&&"function"==typeof s.stream&&"function"==typeof s.constructor&&/^(Blob|File)$/.test(s[ju])?e.append(r,n,o):e.append(r,new wu([n],{type:t.contentType}),o?function(e){const t=e.split("/");return t[t.length-1]}(o):o)});const{postData:r}=s;for await(const o of Pu(e,t))r.text+=o;s.postData.boundary=t;const n=Eu(s.headersObj,"content-type")||"content-type";s.headersObj[n]=`multipart/form-data; boundary=${t}`}break;case"application/x-www-form-urlencoded":s.postData.params?(s.postData.paramsObj=s.postData.params.reduce(Iu,{}),s.postData.text=Ru(s.postData.paramsObj).toString()):s.postData.text="";break;case"text/json":case"text/x-json":case"application/json":case"application/x-json":if(s.postData.mimeType="application/json",s.postData.text)try{s.postData.jsonObj=JSON.parse(s.postData.text)}catch(cd){s.postData.mimeType="text/plain"}}const a={...s.allHeaders,...s.headersObj},l=new URL(s.url),c=Object.fromEntries(l.searchParams);s.queryObj={...s.queryObj,...c};const p=Ru(s.queryObj),d=new URL(s.url);return d.search=p.toString(),l.search="",{...s,allHeaders:a,fullUrl:d.toString(),url:l.toString(),uriObj:new Nu(d.toString())}}async convert(e,t,r){!r&&t&&(r=t);const n=Af[e];if(!n)return null;const{convert:o}=n.clientsById[t||n.info.default],s=(await this.requests).map(e=>o(e,r));return 1===s.length?s[0]:s}}var If=Object.defineProperty,Rf=Object.getOwnPropertyDescriptor,Nf=(e,t,r,n)=>{for(var o,s=n>1?void 0:n?Rf(t,r):t,i=e.length-1;i>=0;i--)(o=e[i])&&(s=(n?o(t,r,s):o(s))||s);return n&&s&&If(t,r,s),s};const Mf=[{id:"curl",label:"cURL",target:"shell",client:"curl"},{id:"javascript",label:"JavaScript",target:"javascript",client:"fetch"},{id:"python",label:"Python",target:"python",client:"requests"},{id:"node",label:"Node.js",target:"node",client:"fetch"},{id:"go",label:"Go",target:"go",client:"native"},{id:"java",label:"Java",target:"java",client:"okhttp"},{id:"php",label:"PHP",target:"php",client:"guzzle"},{id:"ruby",label:"Ruby",target:"ruby",client:"native"},{id:"csharp",label:"C#",target:"csharp",client:"httpclient"}],qf={curl:oe`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5">
1142
+ <rect x="1" y="2" width="14" height="12" rx="2"/>
1143
+ <path d="M4 7l3 2-3 2" stroke-linecap="round" stroke-linejoin="round"/>
1144
+ <path d="M9 11h3" stroke-linecap="round"/>
1145
+ </svg>`,javascript:oe`<svg width="16" height="16" viewBox="0 0 16 16" fill="currentColor">
1146
+ <rect width="16" height="16" rx="2" fill="currentColor" opacity="0.15"/>
1147
+ <text x="3" y="13" font-size="11" font-weight="700" font-family="system-ui" fill="currentColor">JS</text>
1148
+ </svg>`,python:oe`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.3">
1149
+ <path d="M8 1C5 1 5 2.5 5 3.5V5h3v1H4C2.5 6 1 7 1 9.5S2.5 13 4 13h1.5v-2c0-1.5 1-2.5 2.5-2.5h3c1 0 2-1 2-2V3.5C13 2 12 1 8 1z"/>
1150
+ <path d="M8 15c3 0 3-1.5 3-2.5V11H8v-1h4c1.5 0 3-1 3-3.5S13.5 3 12 3h-1.5v2c0 1.5-1 2.5-2.5 2.5H5c-1 0-2 1-2 2v2.5C3 14 4 15 8 15z"/>
1151
+ <circle cx="6.25" cy="3.75" r="0.75" fill="currentColor" stroke="none"/>
1152
+ <circle cx="9.75" cy="12.25" r="0.75" fill="currentColor" stroke="none"/>
1153
+ </svg>`,node:oe`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.3">
1154
+ <path d="M8 1L14 4.5V11.5L8 15L2 11.5V4.5L8 1Z"/>
1155
+ <text x="4.5" y="10.5" font-size="6" font-weight="700" font-family="system-ui" fill="currentColor" stroke="none">N</text>
1156
+ </svg>`,go:oe`<svg width="16" height="16" viewBox="0 0 16 16" fill="currentColor">
1157
+ <rect width="16" height="16" rx="2" fill="currentColor" opacity="0.15"/>
1158
+ <text x="1.5" y="12.5" font-size="10" font-weight="700" font-family="system-ui" fill="currentColor">Go</text>
1159
+ </svg>`,java:oe`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.3">
1160
+ <path d="M5 2c0 0 3 1 3 4c0 3-3 4-3 4" stroke-linecap="round"/>
1161
+ <path d="M11 2c0 0-3 1-3 4c0 3 3 4 3 4" stroke-linecap="round"/>
1162
+ <path d="M3 12c2 2 8 2 10 0" stroke-linecap="round"/>
1163
+ <path d="M4 14c2 1.5 6 1.5 8 0" stroke-linecap="round"/>
1164
+ </svg>`,php:oe`<svg width="16" height="16" viewBox="0 0 16 16" fill="currentColor">
1165
+ <ellipse cx="8" cy="8" rx="7.5" ry="5.5" fill="currentColor" opacity="0.15" stroke="none"/>
1166
+ <text x="1.5" y="10.5" font-size="7" font-weight="700" font-family="system-ui" fill="currentColor">PHP</text>
1167
+ </svg>`,ruby:oe`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.3">
1168
+ <polygon points="8,1 14,5 14,11 8,15 2,11 2,5"/>
1169
+ <line x1="8" y1="1" x2="8" y2="15"/>
1170
+ <line x1="2" y1="5" x2="14" y2="5"/>
1171
+ <line x1="2" y1="5" x2="8" y2="15"/>
1172
+ <line x1="14" y1="5" x2="8" y2="15"/>
1173
+ </svg>`,csharp:oe`<svg width="16" height="16" viewBox="0 0 16 16" fill="currentColor">
1174
+ <rect width="16" height="16" rx="2" fill="currentColor" opacity="0.15"/>
1175
+ <text x="2" y="12.5" font-size="10" font-weight="700" font-family="system-ui" fill="currentColor">C#</text>
1176
+ </svg>`},zf=e=>e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),Uf=/^'(?:[^'\\]|\\.)*'/,Lf=/^"(?:[^"\\]|\\.)*"/,Df=/^\/\*[\s\S]*?\*\//,Bf=/^\/\/[^\n]*/,Hf=/^#[^\n]*/,Ff=/^\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b/,Vf=/^[a-zA-Z_$][\w$]*(?=\s*\()/,Jf=/^\b[A-Z][a-zA-Z0-9_]*\b/,Wf=e=>new RegExp("^\\b("+e+")\\b"),Gf={curl:[[Hf,"hl-cmt"],[Uf,"hl-str"],[Lf,"hl-str"],[/^https?:\/\/[^\s'">) \\]+/,"hl-url"],[/^--?[a-zA-Z][\w-]*/,"hl-flag"],[Wf("curl|wget|echo|export|set|bash|sh|cat|grep|env|printf"),"hl-kw"],[/^\$\{?[A-Za-z_]\w*\}?/,"hl-var"],[Ff,"hl-num"]],javascript:[[Df,"hl-cmt"],[Bf,"hl-cmt"],[/^`(?:[^`\\]|\\.)*`/,"hl-str"],[Uf,"hl-str"],[Lf,"hl-str"],[Wf("const|let|var|function|return|async|await|if|else|for|while|class|new|import|from|export|default|try|catch|finally|throw|of|in|typeof|instanceof|null|undefined|true|false|this|switch|case|break|continue|delete|void|do|yield|static|super|extends"),"hl-kw"],[Wf("console|JSON|Promise|fetch|Response|Request|URL|Headers|Object|Array|String|Number|Boolean|Math|Date|Error|require|module|exports|process|Buffer|globalThis"),"hl-type"],[Ff,"hl-num"],[Vf,"hl-fn"]],python:[[/^"""[\s\S]*?"""/,"hl-str"],[/^'''[\s\S]*?'''/,"hl-str"],[Hf,"hl-cmt"],[/^[fFrRbB]?'(?:[^'\\]|\\.)*'/,"hl-str"],[/^[fFrRbB]?"(?:[^"\\]|\\.)*"/,"hl-str"],[Wf("import|from|def|class|return|if|elif|else|for|while|with|as|try|except|finally|raise|pass|break|continue|and|or|not|in|is|None|True|False|lambda|yield|global|nonlocal|del|assert|async|await"),"hl-kw"],[Wf("print|len|range|str|int|float|bool|list|dict|tuple|set|requests|json|os|sys|re|super|type|object|Exception|ValueError|TypeError|AttributeError"),"hl-type"],[Ff,"hl-num"],[Vf,"hl-fn"],[Jf,"hl-cls"]],go:[[Df,"hl-cmt"],[Bf,"hl-cmt"],[/^`[^`]*`/,"hl-str"],[Lf,"hl-str"],[Wf("package|import|func|var|const|type|struct|interface|return|if|else|for|range|go|defer|select|case|default|break|continue|switch|map|chan|make|new|nil|true|false|append|len|cap|delete|copy|close|panic|recover"),"hl-kw"],[Wf("string|int|int8|int16|int32|int64|uint|uint8|uint16|uint32|uint64|float32|float64|bool|byte|rune|error|any|uintptr"),"hl-type"],[Ff,"hl-num"],[Vf,"hl-fn"],[Jf,"hl-cls"]],java:[[Df,"hl-cmt"],[Bf,"hl-cmt"],[Lf,"hl-str"],[Wf("public|private|protected|static|final|abstract|class|interface|enum|extends|implements|return|if|else|for|while|do|try|catch|finally|throw|throws|new|this|super|import|package|void|null|true|false|instanceof|switch|case|default|break|continue|synchronized|volatile"),"hl-kw"],[Wf("String|Integer|Long|Double|Float|Boolean|Object|List|Map|Set|ArrayList|HashMap|HttpClient|HttpRequest|HttpResponse|Response|Request|URI|URL|System|Math|Arrays|Collections|Optional|Stream|StringBuilder"),"hl-type"],[/^@[a-zA-Z]+/,"hl-att"],[/^\b\d+(?:\.\d+)?[LlDdFf]?\b/,"hl-num"],[Vf,"hl-fn"],[Jf,"hl-cls"]],php:[[Df,"hl-cmt"],[/^(?:\/\/|#)[^\n]*/,"hl-cmt"],[Uf,"hl-str"],[Lf,"hl-str"],[Wf("use|namespace|class|interface|trait|extends|implements|public|private|protected|static|final|function|return|if|else|elseif|for|foreach|while|do|switch|case|default|break|continue|try|catch|finally|throw|new|echo|print|null|true|false|NULL|TRUE|FALSE|array|match|fn|yield|readonly|enum"),"hl-kw"],[/^\$[a-zA-Z_][a-zA-Z0-9_]*/,"hl-var"],[Ff,"hl-num"],[Vf,"hl-fn"],[Jf,"hl-cls"]],ruby:[[Hf,"hl-cmt"],[Uf,"hl-str"],[Lf,"hl-str"],[Wf("require|require_relative|include|extend|def|class|module|end|if|elsif|else|unless|while|until|for|do|return|yield|begin|rescue|ensure|raise|then|when|case|nil|true|false|self|super|puts|print|p|pp|lambda|proc|attr_accessor|attr_reader|attr_writer"),"hl-kw"],[/^:[a-zA-Z_][a-zA-Z0-9_?!]*/,"hl-sym"],[/^@{1,2}[a-zA-Z_][a-zA-Z0-9_]*/,"hl-var"],[Ff,"hl-num"],[/^[a-zA-Z_][a-zA-Z0-9_?!]*(?=\s*\()/,"hl-fn"],[Jf,"hl-cls"]],csharp:[[Df,"hl-cmt"],[Bf,"hl-cmt"],[/^@"[^"]*"/,"hl-str"],[Lf,"hl-str"],[Wf("using|namespace|class|interface|struct|enum|record|abstract|sealed|override|virtual|partial|public|private|protected|internal|static|readonly|const|new|return|if|else|for|foreach|while|do|switch|case|default|break|continue|try|catch|finally|throw|this|base|null|true|false|var|dynamic|async|await|in|out|ref|params|is|as|typeof|sizeof|nameof"),"hl-kw"],[Wf("string|int|long|double|float|decimal|bool|byte|char|object|void|Task|List|Dictionary|HashSet|IEnumerable|HttpClient|HttpResponseMessage|StringContent|Uri|Console|Math|String|Array|Exception"),"hl-type"],[/^\b\d+(?:\.\d+)?(?:[mMlLdDfFuU])?\b/,"hl-num"],[Vf,"hl-fn"],[Jf,"hl-cls"]],json:[[/^"(?:[^"\\]|\\.)*"(?=\s*:)/,"hl-key"],[Lf,"hl-str"],[Wf("true|false|null"),"hl-kw"],[/^-?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?/,"hl-num"]]},Kf={node:"javascript",shell:"curl",bash:"curl",sh:"curl",js:"javascript",ts:"javascript",typescript:"javascript",py:"python",golang:"go",rb:"ruby","c#":"csharp",cs:"csharp",dotnet:"csharp"};let Zf=class extends xe{constructor(){super(...arguments),this.servers=[],this.authState={apiKeys:{},bearerTokens:{}},this.securitySchemes=[],this._activeTab=0,this._snippets=new Map,this._copied=!1,this._overflowStart=1/0,this._moreOpen=!1,this._allTabs=[],this._tabNaturalWidths=[],this._prevOperation=null,this._dropdownPortal=null,this._docClickHandler=null}disconnectedCallback(){var e;super.disconnectedCallback(),null==(e=this._ro)||e.disconnect(),this._ro=void 0,this._closeDropdownPortal()}async willUpdate(){this.operation&&(this._allTabs=[...Mf.map(e=>({id:e.id,label:e.label,isSpec:!1})),...this.operation.codeSamples.map(e=>({id:`spec:${e.lang}`,label:e.label,isSpec:!0}))],0===this._snippets.size&&await this._generateSnippets())}updated(e){e.has("operation")&&this.operation!==this._prevOperation&&(this._prevOperation=this.operation,this._tabNaturalWidths=[],this._overflowStart=1/0);(0===this._tabNaturalWidths.length||this._tabNaturalWidths.length!==this._allTabs.length)&&this._allTabs.length>0&&(this._tabNaturalWidths=[],requestAnimationFrame(()=>this._measureTabWidths()))}_measureTabWidths(){var e,t;const r=null==(e=this.shadowRoot)?void 0:e.querySelector(".tabs-measure");if(!r)return;const n=Array.from(r.querySelectorAll(".tab"));if(this._tabNaturalWidths=n.map(e=>e.getBoundingClientRect().width),!this._ro){const e=null==(t=this.shadowRoot)?void 0:t.querySelector(".tabs");e&&(this._ro=new ResizeObserver(()=>this._recomputeOverflow()),this._ro.observe(e))}this._recomputeOverflow()}_recomputeOverflow(){var e;const t=null==(e=this.shadowRoot)?void 0:e.querySelector(".tabs");if(!t||0===this._tabNaturalWidths.length)return;const r=t.getBoundingClientRect().width;if(this._tabNaturalWidths.reduce((e,t)=>e+t,0)<=r)return void(this._overflowStart!==this._tabNaturalWidths.length&&(this._overflowStart=this._tabNaturalWidths.length));const n=r-80;let o=0,s=0;for(let i=0;i<this._tabNaturalWidths.length;i++){if(o+=this._tabNaturalWidths[i],o>n){s=i;break}s=i+1}s!==this._overflowStart&&(this._overflowStart=s)}_toggleMore(e){e.stopPropagation(),this._dropdownPortal?this._closeDropdownPortal():this._openDropdownPortal(e.currentTarget)}_openDropdownPortal(e){this._closeDropdownPortal();const t=e.getBoundingClientRect(),r=document.createElement("div");Object.assign(r.style,{position:"fixed",top:`${t.bottom+4}px`,right:`${Math.round(window.innerWidth-t.right)}px`,zIndex:"2147483647",background:"#1c2128",border:"1px solid #30363d",borderRadius:"6px",padding:"4px",minWidth:"148px",boxShadow:"0 8px 24px rgba(0,0,0,0.5)",fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif',fontSize:"0.75rem"}),this._allTabs.slice(this._overflowStart).forEach((e,t)=>{const n=this._overflowStart+t,o=n===this._activeTab,s=document.createElement("button");s.textContent=e.label+(e.isSpec?" ✦":""),Object.assign(s.style,{display:"block",width:"100%",padding:"6px 10px",borderRadius:"4px",fontSize:"0.75rem",fontWeight:"500",color:o?"#e6edf3":"#8b949e",whiteSpace:"nowrap",cursor:"pointer",background:o?"rgba(88,166,255,0.12)":"transparent",border:"none",textAlign:"left",boxSizing:"border-box",fontFamily:"inherit"}),s.addEventListener("mouseenter",()=>{n!==this._activeTab&&(s.style.color="#e6edf3",s.style.background="rgba(255,255,255,0.06)")}),s.addEventListener("mouseleave",()=>{n!==this._activeTab&&(s.style.color="#8b949e",s.style.background="transparent")}),s.addEventListener("click",e=>{e.stopPropagation(),this._activeTab=n,this._copied=!1,this._closeDropdownPortal()}),r.appendChild(s)}),document.body.appendChild(r),this._dropdownPortal=r,this._moreOpen=!0;const n=e=>{"scroll"!==e.type&&r.contains(e.target)||this._closeDropdownPortal()};setTimeout(()=>{document.addEventListener("click",n,{capture:!0}),document.addEventListener("scroll",n,{capture:!0,once:!0}),this._docClickHandler=n},0)}_closeDropdownPortal(){this._dropdownPortal&&(this._dropdownPortal.remove(),this._dropdownPortal=null),this._docClickHandler&&(document.removeEventListener("click",this._docClickHandler,{capture:!0}),document.removeEventListener("scroll",this._docClickHandler,{capture:!0}),this._docClickHandler=null),this._moreOpen&&(this._moreOpen=!1)}_onRootClick(e){}async _generateSnippets(){const e=this._buildHar(),t=new Map;for(const r of this.operation.codeSamples)t.set(`spec:${r.lang}`,r.source);try{const r=new Cf(e);for(const e of Mf)try{const n=await r.convert(e.target,e.client);n&&"string"==typeof n?t.set(e.id,n):Array.isArray(n)&&n.length>0&&t.set(e.id,n[0])}catch{t.set(e.id,`// Failed to generate ${e.label} snippet`)}}catch{for(const e of Mf)t.set(e.id,"// Failed to generate snippet")}this._snippets=t}_buildHar(){const e=(this.operation.servers.length>0?this.operation.servers:this.servers)[0];let t=(null==e?void 0:e.url)??"";if(e)for(const[l,c]of Object.entries(e.variables))t=t.replace(`{${l}}`,c.default);let r=this.operation.path;for(const l of this.operation.parameters.filter(e=>"path"===e.in)){const e=void 0!==l.example?String(l.example):`{${l.name}}`;r=r.replace(`{${l.name}}`,e)}const n=`${t}${r}`,o=this.operation.parameters.filter(e=>"query"===e.in&&void 0!==e.example).map(e=>({name:e.name,value:String(e.example)})),s=[],i=this.operation.security[0];if(i)for(const l of Object.keys(i)){const e=this.securitySchemes.find(e=>e.key===l);if(e)if("apiKey"===e.type&&e.name){const t=this.authState.apiKeys[l]||"<YOUR_API_KEY>";"header"===e.in?s.push({name:e.name,value:t}):"query"===e.in&&o.push({name:e.name,value:t})}else if("http"===e.type){if("bearer"===e.scheme){const e=this.authState.bearerTokens[l]||"<YOUR_TOKEN>";s.push({name:"Authorization",value:`Bearer ${e}`})}else if("basic"===e.scheme){const e=this.authState.apiKeys[l]||"username:password";s.push({name:"Authorization",value:`Basic ${btoa(e)}`})}}else if("oauth2"===e.type||"openIdConnect"===e.type){const e=this.authState.bearerTokens[l]||"<YOUR_ACCESS_TOKEN>";s.push({name:"Authorization",value:`Bearer ${e}`})}}for(const l of this.operation.parameters.filter(e=>"header"===e.in))void 0!==l.example&&s.push({name:l.name,value:String(l.example)});let a;if(this.operation.requestBody){const e=this.operation.requestBody.content[0];if(e){s.push({name:"Content-Type",value:e.mediaType});let t="{}";if(e.example)t=JSON.stringify(e.example);else if(e.schema)try{t=JSON.stringify(su(e.schema))}catch{}a={mimeType:e.mediaType,text:t}}}return{method:this.operation.method.toUpperCase(),url:n,httpVersion:"HTTP/1.1",cookies:[],headers:s,queryString:o,postData:a,headersSize:-1,bodySize:-1}}async _copy(){const e=this._allTabs[this._activeTab];if(!e)return;const t=this._snippets.get(e.id)??"";await navigator.clipboard.writeText(t),this._copied=!0,setTimeout(()=>{this._copied=!1},2e3)}_getIcon(e){if(e.startsWith("spec:"))return oe`<svg class="tab-icon" width="16" height="16" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5">
1177
+ <path d="M5 4L1 8l4 4M11 4l4 4-4 4" stroke-linecap="round" stroke-linejoin="round"/>
1178
+ </svg>`;const t=qf[e];return t?ne`<span class="tab-icon">${t}</span>`:null}_highlightCode(e,t){return function(e,t){const r=Gf[Kf[t]??t]??Gf.json;let n="",o=e;for(;o.length>0;){let e=!1;for(const[t,s]of r){const r=t.exec(o);if(r&&0===r.index){n+=`<span class="${s}">${zf(r[0])}</span>`,o=o.slice(r[0].length),e=!0;break}}e||(n+=zf(o[0]),o=o.slice(1))}return n}(e,t.startsWith("spec:")?t.slice(5).toLowerCase():t)}render(){if(!this.operation||0===this._allTabs.length)return ne``;const e=this._allTabs[this._activeTab],t=e?this._snippets.get(e.id)??"Loading…":"",r=this._overflowStart<this._allTabs.length;return ne`
1179
+ <div class="code-samples">
1180
+ <div class="tabs">
1181
+ <!-- Hidden proxy: all tabs at natural size, used only for measurement -->
1182
+ <div class="tabs-measure" aria-hidden="true">
1183
+ ${this._allTabs.map(e=>ne`
1184
+ <button class="tab ${e.isSpec?"spec-sample":""}" tabindex="-1">
1185
+ ${this._getIcon(e.id)}${e.label}${e.isSpec?" ✦":""}
1186
+ </button>
1187
+ `)}
1188
+ </div>
1189
+ <!-- Visible tabs: the subset that fits -->
1190
+ <div class="tabs-inner">
1191
+ ${this._allTabs.slice(0,this._overflowStart).map((e,t)=>ne`
1192
+ <button
1193
+ class="tab ${t===this._activeTab?"active":""} ${e.isSpec?"spec-sample":""}"
1194
+ @click=${()=>{this._activeTab=t,this._copied=!1,this._closeDropdownPortal()}}
1195
+ >${this._getIcon(e.id)}${e.label}${e.isSpec?" ✦":""}</button>
1196
+ `)}
1197
+ </div>
1198
+ ${r?ne`
1199
+ <div class="tabs-more-wrap">
1200
+ <button class="tabs-more-btn ${this._moreOpen?"open":""}" @click=${this._toggleMore}>
1201
+ More
1202
+ <svg width="10" height="10" viewBox="0 0 10 10" fill="none" stroke="currentColor" stroke-width="1.5">
1203
+ <path d="${this._moreOpen?"M1 7l4-4 4 4":"M1 3l4 4 4-4"}" stroke-linecap="round" stroke-linejoin="round"/>
1204
+ </svg>
1205
+ </button>
1206
+ </div>
1207
+ `:null}
1208
+ </div>
1209
+ <div class="code-wrapper">
1210
+ <button class="copy-btn ${this._copied?"copied":""}" @click=${this._copy}>
1211
+ ${this._copied?"✓ Copied":"Copy"}
1212
+ </button>
1213
+ <pre><code>${hu(this._highlightCode(t,(null==e?void 0:e.id)??""))}</code></pre>
1214
+ </div>
1215
+ </div>
1216
+ `}};Zf.styles=[Pe,b`
1217
+ :host {
1218
+ display: block;
1219
+ }
1220
+
1221
+ .code-samples {
1222
+ border: 1px solid #30363d;
1223
+ border-radius: var(--sl-radius-md);
1224
+ overflow: hidden;
1225
+ background: #0d1117;
1226
+ }
1227
+
1228
+ .tabs {
1229
+ display: flex;
1230
+ align-items: stretch;
1231
+ border-bottom: 1px solid #30363d;
1232
+ background: #161b22;
1233
+ position: relative;
1234
+ }
1235
+
1236
+ /* Hidden measurement proxy — all tabs rendered off-screen at natural width */
1237
+ .tabs-measure {
1238
+ position: absolute;
1239
+ top: 0;
1240
+ left: 0;
1241
+ pointer-events: none;
1242
+ visibility: hidden;
1243
+ display: flex;
1244
+ white-space: nowrap;
1245
+ user-select: none;
1246
+ }
1247
+
1248
+ .tabs-inner {
1249
+ display: flex;
1250
+ flex: 1;
1251
+ min-width: 0;
1252
+ overflow: hidden;
1253
+ }
1254
+
1255
+ .tab {
1256
+ display: inline-flex;
1257
+ align-items: center;
1258
+ gap: 6px;
1259
+ padding: var(--sl-spacing-sm) var(--sl-spacing-md);
1260
+ font-size: var(--sl-font-size-xs);
1261
+ font-weight: 500;
1262
+ color: #8b949e;
1263
+ white-space: nowrap;
1264
+ flex-shrink: 0;
1265
+ border-bottom: 2px solid transparent;
1266
+ transition: all var(--sl-transition-fast);
1267
+ cursor: pointer;
1268
+ }
1269
+
1270
+ .tab:hover {
1271
+ color: #e6edf3;
1272
+ background: rgba(255,255,255,0.04);
1273
+ }
1274
+
1275
+ .tab.active {
1276
+ color: #e6edf3;
1277
+ border-bottom-color: #58a6ff;
1278
+ }
1279
+
1280
+ .tab-icon {
1281
+ display: inline-flex;
1282
+ flex-shrink: 0;
1283
+ opacity: 0.7;
1284
+ }
1285
+
1286
+ .tab.active .tab-icon {
1287
+ opacity: 1;
1288
+ }
1289
+
1290
+ .tab.spec-sample {
1291
+ border-left: 1px solid #30363d;
1292
+ }
1293
+
1294
+ .tabs-more-wrap {
1295
+ flex-shrink: 0;
1296
+ position: relative;
1297
+ border-left: 1px solid #30363d;
1298
+ display: flex;
1299
+ align-items: stretch;
1300
+ }
1301
+
1302
+ .tabs-more-btn {
1303
+ display: inline-flex;
1304
+ align-items: center;
1305
+ gap: 4px;
1306
+ padding: var(--sl-spacing-sm) var(--sl-spacing-md);
1307
+ font-size: var(--sl-font-size-xs);
1308
+ font-weight: 500;
1309
+ color: #8b949e;
1310
+ white-space: nowrap;
1311
+ cursor: pointer;
1312
+ background: transparent;
1313
+ border: none;
1314
+ border-bottom: 2px solid transparent;
1315
+ transition: all var(--sl-transition-fast);
1316
+ }
1317
+
1318
+ .tabs-more-btn:hover,
1319
+ .tabs-more-btn.open {
1320
+ color: #e6edf3;
1321
+ background: rgba(255,255,255,0.04);
1322
+ }
1323
+
1324
+ .tabs-dropdown {
1325
+ position: absolute;
1326
+ top: calc(100% + 4px);
1327
+ right: 0;
1328
+ z-index: 100;
1329
+ background: #1c2128;
1330
+ border: 1px solid #30363d;
1331
+ border-radius: var(--sl-radius-md);
1332
+ padding: 4px;
1333
+ min-width: 148px;
1334
+ box-shadow: 0 8px 24px rgba(0,0,0,0.5);
1335
+ }
1336
+
1337
+ .dropdown-item {
1338
+ display: flex;
1339
+ align-items: center;
1340
+ gap: 8px;
1341
+ width: 100%;
1342
+ padding: 6px 10px;
1343
+ border-radius: var(--sl-radius-sm);
1344
+ font-size: var(--sl-font-size-xs);
1345
+ font-weight: 500;
1346
+ color: #8b949e;
1347
+ white-space: nowrap;
1348
+ cursor: pointer;
1349
+ background: transparent;
1350
+ border: none;
1351
+ text-align: left;
1352
+ box-sizing: border-box;
1353
+ transition: all var(--sl-transition-fast);
1354
+ }
1355
+
1356
+ .dropdown-item:hover {
1357
+ color: #e6edf3;
1358
+ background: rgba(255,255,255,0.06);
1359
+ }
1360
+
1361
+ .dropdown-item.active {
1362
+ color: #e6edf3;
1363
+ background: rgba(88,166,255,0.12);
1364
+ }
1365
+
1366
+ .code-wrapper {
1367
+ position: relative;
1368
+ }
1369
+
1370
+ .copy-btn {
1371
+ position: absolute;
1372
+ top: var(--sl-spacing-sm);
1373
+ right: var(--sl-spacing-sm);
1374
+ padding: 4px 10px;
1375
+ border-radius: var(--sl-radius-sm);
1376
+ font-size: var(--sl-font-size-xs);
1377
+ color: #8b949e;
1378
+ background: #21262d;
1379
+ border: 1px solid #30363d;
1380
+ transition: all var(--sl-transition-fast);
1381
+ z-index: 1;
1382
+ cursor: pointer;
1383
+ }
1384
+
1385
+ .copy-btn:hover {
1386
+ color: #e6edf3;
1387
+ background: #30363d;
1388
+ border-color: #8b949e;
1389
+ }
1390
+
1391
+ .copy-btn.copied {
1392
+ color: #3fb950;
1393
+ border-color: #3fb950;
1394
+ }
1395
+
1396
+ pre {
1397
+ margin: 0;
1398
+ padding: var(--sl-spacing-md);
1399
+ padding-right: 80px;
1400
+ font-family: var(--sl-font-mono);
1401
+ font-size: var(--sl-font-size-sm);
1402
+ color: #e6edf3;
1403
+ background: #0d1117;
1404
+ overflow-x: auto;
1405
+ line-height: 1.65;
1406
+ max-height: 60vh;
1407
+ overflow-y: auto;
1408
+ scrollbar-width: thin;
1409
+ scrollbar-color: #484f58 #0d1117;
1410
+ }
1411
+
1412
+ pre::-webkit-scrollbar { width: 6px; height: 6px; }
1413
+ pre::-webkit-scrollbar-track { background: #0d1117; }
1414
+ pre::-webkit-scrollbar-thumb { background: #484f58; border-radius: 3px; }
1415
+ pre::-webkit-scrollbar-thumb:hover { background: #6e7681; }
1416
+ pre::-webkit-scrollbar-corner { background: #0d1117; }
1417
+
1418
+ code { font-family: inherit; }
1419
+
1420
+ /* ── IDE syntax token colors (VS Code Dark+ palette) ── */
1421
+ .hl-kw { color: #569cd6; }
1422
+ .hl-str { color: #ce9178; }
1423
+ .hl-cmt { color: #6a9955; font-style: italic; }
1424
+ .hl-num { color: #b5cea8; }
1425
+ .hl-fn { color: #dcdcaa; }
1426
+ .hl-var { color: #9cdcfe; }
1427
+ .hl-type { color: #4ec9b0; }
1428
+ .hl-flag { color: #c586c0; }
1429
+ .hl-url { color: #58a6ff; text-decoration: underline; text-underline-offset: 2px; }
1430
+ .hl-cls { color: #4ec9b0; }
1431
+ .hl-sym { color: #c586c0; }
1432
+ .hl-att { color: #c586c0; }
1433
+ .hl-key { color: #9cdcfe; }
1434
+ `],Nf([je({type:Object})],Zf.prototype,"operation",2),Nf([je({type:Array})],Zf.prototype,"servers",2),Nf([je({type:Object})],Zf.prototype,"authState",2),Nf([je({type:Array})],Zf.prototype,"securitySchemes",2),Nf([Oe()],Zf.prototype,"_activeTab",2),Nf([Oe()],Zf.prototype,"_snippets",2),Nf([Oe()],Zf.prototype,"_copied",2),Nf([Oe()],Zf.prototype,"_overflowStart",2),Nf([Oe()],Zf.prototype,"_moreOpen",2),Zf=Nf([_e("sl-code-samples")],Zf);var Qf=Object.defineProperty,Yf=Object.getOwnPropertyDescriptor,Xf=(e,t,r,n)=>{for(var o,s=n>1?void 0:n?Yf(t,r):t,i=e.length-1;i>=0;i--)(o=e[i])&&(s=(n?o(t,r,s):o(s))||s);return n&&s&&Qf(t,r,s),s};let eh=class extends xe{constructor(){super(...arguments),this.schema=null,this.depth=0,this._expanded=new Set,this._seen=new WeakSet}_toggleProp(e){const t=new Set(this._expanded);t.has(e)?t.delete(e):t.add(e),this._expanded=t}_renderType(e){return"array"===e.type&&e.items?`${e.items.type??"any"}[]`:e.type??(e.oneOf?"oneOf":e.anyOf?"anyOf":e.allOf?"allOf":"any")}_isExpandable(e){var t;return!("object"!==e.type||!e.properties)||("array"===e.type&&"object"===(null==(t=e.items)?void 0:t.type)||!!(e.allOf||e.oneOf||e.anyOf))}_renderProperty(e,t,r,n){const o=`${n}:${e}`,s=this._expanded.has(o),i=this._isExpandable(t),a=20*n,l=[];if(void 0!==t.minimum&&l.push(`min: ${t.minimum}`),void 0!==t.maximum&&l.push(`max: ${t.maximum}`),void 0!==t.minLength&&l.push(`minLen: ${t.minLength}`),void 0!==t.maxLength&&l.push(`maxLen: ${t.maxLength}`),t.pattern&&l.push(`pattern: ${t.pattern}`),t.format&&l.push(t.format),"object"==typeof t&&null!==t){if(this._seen.has(t))return ne`
1435
+ <div class="schema-row nested" style="--sl-indent: ${a}px">
1436
+ <div class="prop-name">${e}</div>
1437
+ <div class="type-info"><span class="type-badge">[circular]</span></div>
1438
+ <div class="prop-desc" style="font-style: italic; color: var(--sl-color-text-muted);">Circular reference</div>
1439
+ </div>
1440
+ `;this._seen.add(t)}return ne`
1441
+ <div class="schema-row nested" style="--sl-indent: ${a}px">
1442
+ <div class="prop-name">
1443
+ ${i?ne`
1444
+ <button class="toggle-btn ${s?"expanded":""}" @click=${()=>this._toggleProp(o)}>
1445
+ <svg width="12" height="12" viewBox="0 0 12 12" fill="currentColor">
1446
+ <path d="M4 2l4 4-4 4"/>
1447
+ </svg>
1448
+ </button>
1449
+ `:ne`<span style="width:16px"></span>`}
1450
+ ${e}
1451
+ </div>
1452
+ <div class="type-info">
1453
+ <span class="type-badge">${this._renderType(t)}</span>
1454
+ ${r?ne`<span class="required-badge">required</span>`:ie}
1455
+ ${t.readOnly?ne`<span class="readonly-badge">read-only</span>`:ie}
1456
+ ${t.writeOnly?ne`<span class="writeonly-badge">write-only</span>`:ie}
1457
+ ${t.deprecated?ne`<span class="deprecated-badge">deprecated</span>`:ie}
1458
+ ${t.nullable?ne`<span class="nullable-badge">nullable</span>`:ie}
1459
+ </div>
1460
+ <div>
1461
+ ${t.description?ne`<div class="prop-desc">${t.description}</div>`:ie}
1462
+ ${l.length>0?ne`<div class="constraints">${l.join(" · ")}</div>`:ie}
1463
+ ${t.enum?ne`
1464
+ <div class="enum-values">
1465
+ ${t.enum.map(e=>ne`<span class="enum-pill">${JSON.stringify(e)}</span>`)}
1466
+ </div>
1467
+ `:ie}
1468
+ </div>
1469
+ </div>
1470
+
1471
+ ${s?this._renderNestedSchema(t,n+1):ie}
1472
+ `}_renderNestedSchema(e,t){var r;if("object"===e.type&&e.properties){const r=new Set(e.required??[]);return ne`
1473
+ ${Object.entries(e.properties).map(([e,n])=>this._renderProperty(e,n,r.has(e),t))}
1474
+ ${e.additionalProperties&&"object"==typeof e.additionalProperties?ne`
1475
+ <div class="additional-props" style="padding-left: calc(var(--sl-spacing-md) + ${20*t}px)">
1476
+ Additional properties allowed
1477
+ </div>
1478
+ `:ie}
1479
+ `}if("array"===e.type&&"object"===(null==(r=e.items)?void 0:r.type)){const r=e.items,n=new Set(r.required??[]);return ne`
1480
+ ${r.properties?Object.entries(r.properties).map(([e,r])=>this._renderProperty(e,r,n.has(e),t)):ie}
1481
+ `}for(const[n,o]of[["allOf","All Of"],["oneOf","One Of"],["anyOf","Any Of"]]){const r=e[n];if(r)return ne`
1482
+ ${r.map((e,r)=>ne`
1483
+ <div class="composition-label" style="padding-left: calc(var(--sl-spacing-md) + ${20*t}px)">${o} #${r+1}</div>
1484
+ ${e.properties?Object.entries(e.properties).map(([r,n])=>this._renderProperty(r,n,(e.required??[]).includes(r),t)):ie}
1485
+ `)}
1486
+ `}return ie}render(){if(!this.schema)return ne``;if(this._seen=new WeakSet,"object"===this.schema.type&&this.schema.properties){const e=new Set(this.schema.required??[]);return ne`
1487
+ <div class="schema-tree">
1488
+ ${Object.entries(this.schema.properties).map(([t,r])=>this._renderProperty(t,r,e.has(t),0))}
1489
+ ${this.schema.additionalProperties&&"object"==typeof this.schema.additionalProperties?ne`
1490
+ <div class="additional-props">Additional properties allowed</div>
1491
+ `:ie}
1492
+ </div>
1493
+ `}return"array"===this.schema.type&&this.schema.items?ne`
1494
+ <div class="schema-tree">
1495
+ <div class="composition-label">Array items (${this.schema.items.type??"any"})</div>
1496
+ ${this._renderNestedSchema({type:"object",properties:this.schema.items.properties,required:this.schema.items.required},0)}
1497
+ </div>
1498
+ `:this.schema.allOf||this.schema.oneOf||this.schema.anyOf?ne`
1499
+ <div class="schema-tree">
1500
+ ${this._renderNestedSchema(this.schema,0)}
1501
+ </div>
1502
+ `:ne`
1503
+ <div class="schema-tree">
1504
+ <div class="schema-row">
1505
+ <div class="prop-name">(root)</div>
1506
+ <div class="type-info"><span class="type-badge">${this._renderType(this.schema)}</span></div>
1507
+ <div class="prop-desc">${this.schema.description??""}</div>
1508
+ </div>
1509
+ </div>
1510
+ `}};eh.styles=[Pe,b`
1511
+ :host {
1512
+ display: block;
1513
+ font-size: var(--sl-font-size-sm);
1514
+ }
1515
+
1516
+ .schema-tree {
1517
+ border: 1px solid var(--sl-color-border);
1518
+ border-radius: var(--sl-radius-md);
1519
+ overflow: hidden;
1520
+ }
1521
+
1522
+ .schema-row {
1523
+ display: grid;
1524
+ grid-template-columns: minmax(140px, auto) auto 1fr;
1525
+ gap: var(--sl-spacing-sm);
1526
+ padding: var(--sl-spacing-sm) var(--sl-spacing-md);
1527
+ border-bottom: 1px solid var(--sl-color-border);
1528
+ align-items: start;
1529
+ }
1530
+
1531
+ .schema-row:last-child {
1532
+ border-bottom: none;
1533
+ }
1534
+
1535
+ .schema-row.nested {
1536
+ padding-left: calc(var(--sl-spacing-md) + var(--sl-indent, 0px));
1537
+ }
1538
+
1539
+ .prop-name {
1540
+ font-family: var(--sl-font-mono);
1541
+ font-weight: 500;
1542
+ color: var(--sl-color-text);
1543
+ display: flex;
1544
+ align-items: center;
1545
+ gap: var(--sl-spacing-xs);
1546
+ }
1547
+
1548
+ .toggle-btn {
1549
+ width: 16px;
1550
+ height: 16px;
1551
+ display: inline-flex;
1552
+ align-items: center;
1553
+ justify-content: center;
1554
+ color: var(--sl-color-text-muted);
1555
+ transition: transform var(--sl-transition-fast);
1556
+ flex-shrink: 0;
1557
+ }
1558
+
1559
+ .toggle-btn.expanded {
1560
+ transform: rotate(90deg);
1561
+ }
1562
+
1563
+ .type-info {
1564
+ display: flex;
1565
+ align-items: center;
1566
+ gap: 4px;
1567
+ flex-wrap: wrap;
1568
+ }
1569
+
1570
+ .type-badge {
1571
+ font-family: var(--sl-font-mono);
1572
+ font-size: var(--sl-font-size-xs);
1573
+ padding: 1px 6px;
1574
+ border-radius: var(--sl-radius-sm);
1575
+ background: var(--sl-color-surface-raised);
1576
+ color: var(--sl-color-text-muted);
1577
+ }
1578
+
1579
+ .required-badge {
1580
+ font-size: 0.6875rem;
1581
+ color: var(--sl-color-badge-required);
1582
+ font-weight: 600;
1583
+ }
1584
+
1585
+ .readonly-badge,
1586
+ .writeonly-badge,
1587
+ .deprecated-badge,
1588
+ .nullable-badge {
1589
+ font-size: 0.6875rem;
1590
+ padding: 0 4px;
1591
+ border-radius: var(--sl-radius-sm);
1592
+ }
1593
+
1594
+ .readonly-badge { color: var(--sl-color-info); }
1595
+ .writeonly-badge { color: var(--sl-color-warning); }
1596
+ .deprecated-badge { color: var(--sl-color-badge-deprecated); }
1597
+ .nullable-badge { color: var(--sl-color-text-muted); }
1598
+
1599
+ .prop-desc {
1600
+ color: var(--sl-color-text-secondary);
1601
+ line-height: 1.5;
1602
+ }
1603
+
1604
+ .constraints {
1605
+ font-size: var(--sl-font-size-xs);
1606
+ color: var(--sl-color-text-muted);
1607
+ margin-top: 2px;
1608
+ }
1609
+
1610
+ .enum-values {
1611
+ display: flex;
1612
+ flex-wrap: wrap;
1613
+ gap: 4px;
1614
+ margin-top: 4px;
1615
+ }
1616
+
1617
+ .enum-pill {
1618
+ font-family: var(--sl-font-mono);
1619
+ font-size: 0.6875rem;
1620
+ padding: 0 6px;
1621
+ border-radius: var(--sl-radius-sm);
1622
+ background: var(--sl-color-surface-raised);
1623
+ color: var(--sl-color-text-secondary);
1624
+ }
1625
+
1626
+ .composition-label {
1627
+ font-size: var(--sl-font-size-xs);
1628
+ font-weight: 600;
1629
+ padding: var(--sl-spacing-xs) var(--sl-spacing-md);
1630
+ color: var(--sl-color-text-muted);
1631
+ text-transform: uppercase;
1632
+ letter-spacing: 0.04em;
1633
+ background: var(--sl-color-bg-subtle);
1634
+ border-bottom: 1px solid var(--sl-color-border);
1635
+ }
1636
+
1637
+ .additional-props {
1638
+ padding: var(--sl-spacing-xs) var(--sl-spacing-md);
1639
+ font-size: var(--sl-font-size-xs);
1640
+ color: var(--sl-color-text-muted);
1641
+ font-style: italic;
1642
+ border-bottom: 1px solid var(--sl-color-border);
1643
+ }
1644
+ `],Xf([je({type:Object})],eh.prototype,"schema",2),Xf([je({type:Number})],eh.prototype,"depth",2),Xf([Oe()],eh.prototype,"_expanded",2),eh=Xf([_e("sl-schema")],eh);var th=Object.defineProperty,rh=Object.getOwnPropertyDescriptor,nh=(e,t,r,n)=>{for(var o,s=n>1?void 0:n?rh(t,r):t,i=e.length-1;i>=0;i--)(o=e[i])&&(s=(n?o(t,r,s):o(s))||s);return n&&s&&th(t,r,s),s};let oh=class extends xe{constructor(){super(...arguments),this.servers=[],this.securitySchemes=[],this.authState={apiKeys:{},bearerTokens:{}},this.proxyUrl="",this.hideTryIt=!1,this.hideCodeSamples=!1,this.activeOperationId="",this._expanded=!1}willUpdate(e){var t;e.has("activeOperationId")&&this.activeOperationId&&this.activeOperationId===(null==(t=this.operation)?void 0:t.operationId)&&(this._expanded=!0)}_toggle(){this._expanded=!this._expanded}_copyLink(e){e.stopPropagation();const t=`${window.location.origin}${window.location.pathname}#/operation/${encodeURIComponent(this.operation.operationId)}`;navigator.clipboard.writeText(t)}_openTryIt(e){e.stopPropagation(),this.dispatchEvent(new CustomEvent("try-it",{detail:this.operation,bubbles:!0,composed:!0}))}render(){const e=this.operation;return e?ne`
1645
+ <div class="operation">
1646
+ <div class="op-header" @click=${this._toggle}>
1647
+ <span class="method-badge method-${e.method}">${e.method}</span>
1648
+ <span class="op-path">${e.path}</span>
1649
+ <span class="op-summary">${e.summary}</span>
1650
+ ${e.deprecated?ne`<span class="badge-deprecated">Deprecated</span>`:null}
1651
+ ${this.hideTryIt?null:ne`
1652
+ <button class="try-it-btn" @click=${this._openTryIt}>
1653
+ <svg width="12" height="12" viewBox="0 0 16 16" fill="currentColor">
1654
+ <path d="M4 2l10 6-10 6V2z"/>
1655
+ </svg>
1656
+ Try It
1657
+ </button>
1658
+ `}
1659
+ <button class="copy-link-btn" @click=${this._copyLink} title="Copy link">
1660
+ <svg width="14" height="14" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5">
1661
+ <rect x="5" y="5" width="8" height="8" rx="1"/>
1662
+ <path d="M3 11V3h8"/>
1663
+ </svg>
1664
+ </button>
1665
+ <svg class="expand-icon ${this._expanded?"expanded":""}" width="16" height="16" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5">
1666
+ <path d="M4 6l4 4 4-4" stroke-linecap="round" stroke-linejoin="round"/>
1667
+ </svg>
1668
+ </div>
1669
+
1670
+ ${this._expanded?ne`
1671
+ <div class="op-body">
1672
+ <div class="op-content">
1673
+ ${e.description?ne`
1674
+ <div class="op-description" .innerHTML=${ed.parse(e.description)}></div>
1675
+ `:null}
1676
+
1677
+ ${e.parameters.length>0?ne`
1678
+ <div class="section-title">Parameters</div>
1679
+ <sl-parameters .parameters=${e.parameters}></sl-parameters>
1680
+ `:null}
1681
+
1682
+ ${e.requestBody?ne`
1683
+ <div class="section-title">Request Body ${e.requestBody.required?ne`<span style="color:var(--sl-color-badge-required)">*</span>`:""}</div>
1684
+ <sl-request-body .requestBody=${e.requestBody}></sl-request-body>
1685
+ `:null}
1686
+
1687
+ ${e.responses.some(e=>{var t;return null==(t=e.content[0])?void 0:t.schema})?ne`
1688
+ <div class="section-title">Response Schema</div>
1689
+ ${e.responses.filter(e=>{var t;return null==(t=e.content[0])?void 0:t.schema}).map(e=>ne`
1690
+ <div class="response-schema-block">
1691
+ <div class="response-schema-header">
1692
+ <span class="response-schema-status status-${e.statusCode.startsWith("2")?"2xx":e.statusCode.startsWith("3")?"3xx":e.statusCode.startsWith("4")?"4xx":e.statusCode.startsWith("5")?"5xx":"default"}">${e.statusCode}</span>
1693
+ ${e.description?ne`<span class="response-schema-desc">${e.description}</span>`:null}
1694
+ </div>
1695
+ <sl-schema .schema=${e.content[0].schema}></sl-schema>
1696
+ </div>
1697
+ `)}
1698
+ `:null}
1699
+ </div>
1700
+
1701
+ ${this.hideCodeSamples?ne`<div></div>`:ne`
1702
+ <div class="op-code-panel">
1703
+ <div class="op-code-sticky">
1704
+ <div class="section-title">Code Samples</div>
1705
+ <sl-code-samples
1706
+ .operation=${e}
1707
+ .servers=${this.servers}
1708
+ .authState=${this.authState}
1709
+ .securitySchemes=${this.securitySchemes}
1710
+ ></sl-code-samples>
1711
+ </div>
1712
+ ${e.responses.length>0?ne`
1713
+ <div class="op-responses-panel">
1714
+ <div class="section-title">Responses</div>
1715
+ <sl-responses .responses=${e.responses}></sl-responses>
1716
+ </div>
1717
+ `:null}
1718
+ </div>
1719
+ `}
1720
+ </div>
1721
+ `:null}
1722
+ </div>
1723
+ `:ne``}};oh.styles=[Pe,b`
1724
+ :host {
1725
+ display: block;
1726
+ margin-bottom: var(--sl-spacing-lg);
1727
+ }
1728
+
1729
+ .operation {
1730
+ border: 1px solid var(--sl-color-border);
1731
+ border-radius: var(--sl-radius-lg);
1732
+ overflow: hidden;
1733
+ transition: box-shadow var(--sl-transition-fast);
1734
+ }
1735
+
1736
+ .operation:hover {
1737
+ box-shadow: var(--sl-shadow-sm);
1738
+ }
1739
+
1740
+ .op-header {
1741
+ display: flex;
1742
+ align-items: center;
1743
+ gap: var(--sl-spacing-md);
1744
+ padding: var(--sl-spacing-md) var(--sl-spacing-lg);
1745
+ cursor: pointer;
1746
+ user-select: none;
1747
+ transition: background var(--sl-transition-fast);
1748
+ }
1749
+
1750
+ .op-header:hover {
1751
+ background: var(--sl-color-bg-subtle);
1752
+ }
1753
+
1754
+ .method-badge {
1755
+ display: inline-flex;
1756
+ align-items: center;
1757
+ justify-content: center;
1758
+ min-width: 56px;
1759
+ padding: 4px 10px;
1760
+ border-radius: var(--sl-radius-md);
1761
+ font-size: var(--sl-font-size-xs);
1762
+ font-weight: 700;
1763
+ font-family: var(--sl-font-mono);
1764
+ text-transform: uppercase;
1765
+ letter-spacing: 0.02em;
1766
+ }
1767
+
1768
+ .method-get { background: var(--sl-color-get-bg); color: var(--sl-color-get); }
1769
+ .method-post { background: var(--sl-color-post-bg); color: var(--sl-color-post); }
1770
+ .method-put { background: var(--sl-color-put-bg); color: var(--sl-color-put); }
1771
+ .method-delete { background: var(--sl-color-delete-bg); color: var(--sl-color-delete); }
1772
+ .method-patch { background: var(--sl-color-patch-bg); color: var(--sl-color-patch); }
1773
+ .method-options,
1774
+ .method-head,
1775
+ .method-trace { background: var(--sl-color-options-bg); color: var(--sl-color-options); }
1776
+
1777
+ .op-path {
1778
+ font-family: var(--sl-font-mono);
1779
+ font-size: var(--sl-font-size-base);
1780
+ font-weight: 500;
1781
+ color: var(--sl-color-text);
1782
+ word-break: break-all;
1783
+ }
1784
+
1785
+ .op-summary {
1786
+ flex: 1;
1787
+ font-size: var(--sl-font-size-sm);
1788
+ color: var(--sl-color-text-muted);
1789
+ overflow: hidden;
1790
+ text-overflow: ellipsis;
1791
+ white-space: nowrap;
1792
+ }
1793
+
1794
+ .badge-deprecated {
1795
+ font-size: var(--sl-font-size-xs);
1796
+ font-weight: 600;
1797
+ padding: 2px 8px;
1798
+ border-radius: var(--sl-radius-full);
1799
+ background: var(--sl-color-badge-deprecated-bg);
1800
+ color: var(--sl-color-badge-deprecated);
1801
+ }
1802
+
1803
+ .try-it-btn {
1804
+ display: inline-flex;
1805
+ align-items: center;
1806
+ gap: 6px;
1807
+ padding: 4px 14px;
1808
+ border-radius: var(--sl-radius-md);
1809
+ font-size: var(--sl-font-size-xs);
1810
+ font-weight: 600;
1811
+ color: var(--sl-color-primary);
1812
+ border: 1px solid var(--sl-color-primary);
1813
+ background: transparent;
1814
+ cursor: pointer;
1815
+ transition: all var(--sl-transition-fast);
1816
+ white-space: nowrap;
1817
+ }
1818
+
1819
+ .try-it-btn:hover {
1820
+ background: var(--sl-color-primary);
1821
+ color: var(--sl-color-primary-text);
1822
+ }
1823
+
1824
+ .expand-icon {
1825
+ color: var(--sl-color-text-muted);
1826
+ transition: transform var(--sl-transition-fast);
1827
+ flex-shrink: 0;
1828
+ }
1829
+
1830
+ .expand-icon.expanded {
1831
+ transform: rotate(180deg);
1832
+ }
1833
+
1834
+ .op-body {
1835
+ border-top: 1px solid var(--sl-color-border);
1836
+ display: grid;
1837
+ grid-template-columns: 3fr 2fr;
1838
+ gap: 0;
1839
+ min-height: 0;
1840
+ }
1841
+
1842
+ .op-content {
1843
+ padding: var(--sl-spacing-lg);
1844
+ min-width: 0;
1845
+ overflow: hidden;
1846
+ }
1847
+
1848
+ .op-code-panel {
1849
+ padding: var(--sl-spacing-lg);
1850
+ border-left: 1px solid var(--sl-color-border);
1851
+ background: var(--sl-color-bg-subtle);
1852
+ min-width: 0;
1853
+ overflow: hidden;
1854
+ }
1855
+
1856
+ .op-responses-panel {
1857
+ margin-top: var(--sl-spacing-2xl);
1858
+ padding-top: var(--sl-spacing-xl);
1859
+ border-top: 1px solid var(--sl-color-border);
1860
+ }
1861
+
1862
+ .op-code-sticky {
1863
+ position: sticky;
1864
+ top: calc(var(--sl-header-height) + var(--sl-spacing-lg));
1865
+ }
1866
+
1867
+ .op-description {
1868
+ font-size: var(--sl-font-size-base);
1869
+ color: var(--sl-color-text-secondary);
1870
+ line-height: 1.7;
1871
+ margin-bottom: var(--sl-spacing-lg);
1872
+ }
1873
+
1874
+ .op-description p {
1875
+ margin: 0 0 var(--sl-spacing-sm) 0;
1876
+ }
1877
+
1878
+ .op-description p:last-child {
1879
+ margin-bottom: 0;
1880
+ }
1881
+
1882
+ .op-description code {
1883
+ background: var(--sl-color-code-bg);
1884
+ padding: 2px 5px;
1885
+ border-radius: var(--sl-radius-sm);
1886
+ font-size: 0.85em;
1887
+ }
1888
+
1889
+ .section-title {
1890
+ font-size: var(--sl-font-size-sm);
1891
+ font-weight: 600;
1892
+ color: var(--sl-color-text);
1893
+ margin: var(--sl-spacing-lg) 0 var(--sl-spacing-sm) 0;
1894
+ text-transform: uppercase;
1895
+ letter-spacing: 0.04em;
1896
+ }
1897
+
1898
+ .section-title:first-child {
1899
+ margin-top: 0;
1900
+ }
1901
+
1902
+ .response-schema-block {
1903
+ margin-bottom: var(--sl-spacing-md);
1904
+ border: 1px solid var(--sl-color-border);
1905
+ border-radius: var(--sl-radius-md);
1906
+ overflow: hidden;
1907
+ }
1908
+
1909
+ .response-schema-header {
1910
+ display: flex;
1911
+ align-items: center;
1912
+ gap: var(--sl-spacing-sm);
1913
+ padding: var(--sl-spacing-sm) var(--sl-spacing-md);
1914
+ background: var(--sl-color-bg-subtle);
1915
+ border-bottom: 1px solid var(--sl-color-border);
1916
+ }
1917
+
1918
+ .response-schema-status {
1919
+ font-family: var(--sl-font-mono);
1920
+ font-size: var(--sl-font-size-xs);
1921
+ font-weight: 700;
1922
+ }
1923
+
1924
+ .response-schema-status.status-2xx { color: var(--sl-color-success); }
1925
+ .response-schema-status.status-3xx { color: var(--sl-color-info); }
1926
+ .response-schema-status.status-4xx { color: var(--sl-color-warning); }
1927
+ .response-schema-status.status-5xx { color: var(--sl-color-danger); }
1928
+ .response-schema-status.status-default { color: var(--sl-color-text-muted); }
1929
+
1930
+ .response-schema-desc {
1931
+ font-size: var(--sl-font-size-xs);
1932
+ color: var(--sl-color-text-muted);
1933
+ }
1934
+
1935
+ .copy-link-btn {
1936
+ margin-left: auto;
1937
+ padding: 4px 8px;
1938
+ border-radius: var(--sl-radius-sm);
1939
+ font-size: var(--sl-font-size-xs);
1940
+ color: var(--sl-color-text-muted);
1941
+ opacity: 0;
1942
+ transition: opacity var(--sl-transition-fast);
1943
+ }
1944
+
1945
+ .op-header:hover .copy-link-btn {
1946
+ opacity: 1;
1947
+ }
1948
+
1949
+ .copy-link-btn:hover {
1950
+ background: var(--sl-color-surface-raised);
1951
+ color: var(--sl-color-text);
1952
+ }
1953
+
1954
+ @media (max-width: 900px) {
1955
+ .op-body {
1956
+ grid-template-columns: 1fr;
1957
+ }
1958
+ .op-code-panel {
1959
+ border-left: none;
1960
+ border-top: 1px solid var(--sl-color-border);
1961
+ }
1962
+ .op-code-sticky {
1963
+ position: static;
1964
+ }
1965
+ }
1966
+ `],nh([je({type:Object})],oh.prototype,"operation",2),nh([je({type:Array})],oh.prototype,"servers",2),nh([je({type:Array})],oh.prototype,"securitySchemes",2),nh([je({type:Object})],oh.prototype,"authState",2),nh([je({type:String})],oh.prototype,"proxyUrl",2),nh([je({type:Boolean,attribute:"hide-try-it"})],oh.prototype,"hideTryIt",2),nh([je({type:Boolean,attribute:"hide-code-samples"})],oh.prototype,"hideCodeSamples",2),nh([je({type:String})],oh.prototype,"activeOperationId",2),nh([Oe()],oh.prototype,"_expanded",2),oh=nh([_e("sl-operation")],oh);var sh=Object.defineProperty,ih=Object.getOwnPropertyDescriptor,ah=(e,t,r,n)=>{for(var o,s=n>1?void 0:n?ih(t,r):t,i=e.length-1;i>=0;i--)(o=e[i])&&(s=(n?o(t,r,s):o(s))||s);return n&&s&&sh(t,r,s),s};let lh=class extends xe{constructor(){super(...arguments),this.servers=[],this.securitySchemes=[],this.authState={apiKeys:{},bearerTokens:{}},this.proxyUrl="",this._paramValues={},this._bodyValue="",this._selectedServer=0,this._response=null,this._loading=!1,this._error=null,this._showResponseHeaders=!1,this._initialized=!1}willUpdate(){!this._initialized&&this.operation&&(this._initDefaults(),this._initialized=!0)}_initDefaults(){const e={};for(const t of this.operation.parameters)void 0!==t.example&&(e[`${t.in}:${t.name}`]=String(t.example));if(this._paramValues=e,this.operation.requestBody){const e=this.operation.requestBody.content[0];if(null==e?void 0:e.schema)try{const t=su(e.schema);this._bodyValue=JSON.stringify(t,null,2)}catch{this._bodyValue="{}"}}}_buildUrl(){const e=this.operation.servers.length>0?this.operation.servers:this.servers,t=e[this._selectedServer]??e[0];if(!t)return this.operation.path;let r=t.url;for(const[s,i]of Object.entries(t.variables))r=r.replace(`{${s}}`,i.default);let n=this.operation.path;for(const s of this.operation.parameters.filter(e=>"path"===e.in)){const e=this._paramValues[`path:${s.name}`]??"";n=n.replace(`{${s.name}}`,encodeURIComponent(e))}const o=this.operation.parameters.filter(e=>"query"===e.in).map(e=>{const t=this._paramValues[`query:${e.name}`];return t?`${encodeURIComponent(e.name)}=${encodeURIComponent(t)}`:null}).filter(Boolean);return`${r}${n}${o.length>0?`?${o.join("&")}`:""}`}_buildHeaders(){const e={};for(const t of this.operation.parameters.filter(e=>"header"===e.in)){const r=this._paramValues[`header:${t.name}`];r&&(e[t.name]=r)}for(const t of this.operation.security)for(const r of Object.keys(t)){const t=this.securitySchemes.find(e=>e.key===r);if(t){if("apiKey"===t.type&&"header"===t.in&&t.name){const n=this.authState.apiKeys[r];n&&(e[t.name]=n)}if("http"===t.type){const n=this.authState.bearerTokens[r];n&&("bearer"===t.scheme?e.Authorization=`Bearer ${n}`:"basic"===t.scheme&&(e.Authorization=`Basic ${btoa(n)}`))}}}if(this.operation.requestBody){const t=this.operation.requestBody.content[0];t&&(e["Content-Type"]=t.mediaType)}return e}async _send(){this._loading=!0,this._error=null,this._response=null;const e=this._buildUrl(),t=this._buildHeaders(),r=this.operation.requestBody&&["post","put","patch"].includes(this.operation.method),n=this.proxyUrl?`${this.proxyUrl}${encodeURIComponent(e)}`:e,o=performance.now();try{const e=await fetch(n,{method:this.operation.method.toUpperCase(),headers:t,body:r?this._bodyValue:void 0}),s=Math.round(performance.now()-o),i=await e.text(),a={};e.headers.forEach((e,t)=>{a[t]=e}),this._response={status:e.status,statusText:e.statusText,headers:a,body:i,time:s}}catch(s){const e=s instanceof Error?s.message:String(s);this._error=e}finally{this._loading=!1}}_getStatusClass(e){return e<300?"status-2xx":e<400?"status-3xx":e<500?"status-4xx":"status-5xx"}_formatBody(e){try{return JSON.stringify(JSON.parse(e),null,2)}catch{return e}}render(){if(!this.operation)return ne``;const e=this.operation.parameters.filter(e=>"path"===e.in),t=this.operation.parameters.filter(e=>"query"===e.in),r=this.operation.parameters.filter(e=>"header"===e.in),n=this.operation.servers.length>0?this.operation.servers:this.servers;return ne`
1967
+ <div class="try-it">
1968
+ ${e.length>0?ne`
1969
+ <div class="form-section">
1970
+ <div class="form-label">Path Parameters</div>
1971
+ ${e.map(e=>ne`
1972
+ <div class="param-input-row">
1973
+ <div class="param-input-name">${e.name} ${e.required?ne`<span class="req">*</span>`:null}</div>
1974
+ <input
1975
+ type="text"
1976
+ placeholder="${e.example??e.name}"
1977
+ .value=${this._paramValues[`path:${e.name}`]??""}
1978
+ @input=${t=>{this._paramValues={...this._paramValues,[`path:${e.name}`]:t.target.value}}}
1979
+ />
1980
+ </div>
1981
+ `)}
1982
+ </div>
1983
+ `:null}
1984
+
1985
+ ${t.length>0?ne`
1986
+ <div class="form-section">
1987
+ <div class="form-label">Query Parameters</div>
1988
+ ${t.map(e=>ne`
1989
+ <div class="param-input-row">
1990
+ <div class="param-input-name">${e.name} ${e.required?ne`<span class="req">*</span>`:null}</div>
1991
+ <input
1992
+ type="text"
1993
+ placeholder="${e.example??""}"
1994
+ .value=${this._paramValues[`query:${e.name}`]??""}
1995
+ @input=${t=>{this._paramValues={...this._paramValues,[`query:${e.name}`]:t.target.value}}}
1996
+ />
1997
+ </div>
1998
+ `)}
1999
+ </div>
2000
+ `:null}
2001
+
2002
+ ${r.length>0?ne`
2003
+ <div class="form-section">
2004
+ <div class="form-label">Header Parameters</div>
2005
+ ${r.map(e=>ne`
2006
+ <div class="param-input-row">
2007
+ <div class="param-input-name">${e.name}</div>
2008
+ <input
2009
+ type="text"
2010
+ placeholder="${e.example??""}"
2011
+ .value=${this._paramValues[`header:${e.name}`]??""}
2012
+ @input=${t=>{this._paramValues={...this._paramValues,[`header:${e.name}`]:t.target.value}}}
2013
+ />
2014
+ </div>
2015
+ `)}
2016
+ </div>
2017
+ `:null}
2018
+
2019
+ ${this.operation.requestBody?ne`
2020
+ <div class="form-section">
2021
+ <div class="form-label">Request Body</div>
2022
+ <textarea
2023
+ .value=${this._bodyValue}
2024
+ @input=${e=>{this._bodyValue=e.target.value}}
2025
+ ></textarea>
2026
+ </div>
2027
+ `:null}
2028
+
2029
+ <div class="actions-bar">
2030
+ ${n.length>1?ne`
2031
+ <select class="server-select" @change=${e=>{this._selectedServer=e.target.selectedIndex}}>
2032
+ ${n.map(e=>ne`<option>${e.url}${e.description?` — ${e.description}`:""}</option>`)}
2033
+ </select>
2034
+ `:null}
2035
+ <button class="send-btn" @click=${this._send} ?disabled=${this._loading}>
2036
+ ${this._loading?"Sending…":"Send Request"}
2037
+ </button>
2038
+ </div>
2039
+
2040
+ ${this._loading?ne`<div class="loading-bar"></div>`:null}
2041
+
2042
+ ${this._error?ne`
2043
+ <div class="error-msg">
2044
+ ${this._error}
2045
+ <div class="cors-hint">
2046
+ If this is a CORS error, the API server may need to allow cross-origin requests,
2047
+ or you can configure a <code>proxyUrl</code> in SpecLens.
2048
+ </div>
2049
+ </div>
2050
+ `:null}
2051
+
2052
+ ${this._response?ne`
2053
+ <div class="response-section">
2054
+ <div class="response-header">
2055
+ <span class="status-badge ${this._getStatusClass(this._response.status)}">
2056
+ ${this._response.status} ${this._response.statusText}
2057
+ </span>
2058
+ <span class="response-time">${this._response.time}ms</span>
2059
+ </div>
2060
+ <div class="response-body">
2061
+ <pre><code>${this._formatBody(this._response.body)}</code></pre>
2062
+ </div>
2063
+ <div class="response-headers">
2064
+ <div class="response-headers-title" @click=${()=>this._showResponseHeaders=!this._showResponseHeaders}>
2065
+ Headers ${this._showResponseHeaders?"▾":"▸"}
2066
+ </div>
2067
+ ${this._showResponseHeaders?ne`
2068
+ <pre>${Object.entries(this._response.headers).map(([e,t])=>`${e}: ${t}`).join("\n")}</pre>
2069
+ `:null}
2070
+ </div>
2071
+ </div>
2072
+ `:null}
2073
+ </div>
2074
+ `}};lh.styles=[Pe,b`
2075
+ :host {
2076
+ display: block;
2077
+ }
2078
+
2079
+ .try-it {
2080
+ border: 1px solid var(--sl-color-border);
2081
+ border-radius: var(--sl-radius-md);
2082
+ overflow: hidden;
2083
+ }
2084
+
2085
+ .form-section {
2086
+ padding: var(--sl-spacing-md) var(--sl-spacing-lg);
2087
+ }
2088
+
2089
+ .form-section + .form-section {
2090
+ border-top: 1px solid var(--sl-color-border);
2091
+ }
2092
+
2093
+ .form-label {
2094
+ font-size: var(--sl-font-size-xs);
2095
+ font-weight: 600;
2096
+ text-transform: uppercase;
2097
+ letter-spacing: 0.04em;
2098
+ color: var(--sl-color-text-muted);
2099
+ margin-bottom: var(--sl-spacing-sm);
2100
+ }
2101
+
2102
+ .param-input-row {
2103
+ display: flex;
2104
+ align-items: center;
2105
+ gap: var(--sl-spacing-sm);
2106
+ margin-bottom: var(--sl-spacing-sm);
2107
+ }
2108
+
2109
+ .param-input-row:last-child {
2110
+ margin-bottom: 0;
2111
+ }
2112
+
2113
+ .param-input-name {
2114
+ font-family: var(--sl-font-mono);
2115
+ font-size: var(--sl-font-size-sm);
2116
+ color: var(--sl-color-text);
2117
+ min-width: 120px;
2118
+ display: flex;
2119
+ align-items: center;
2120
+ gap: 4px;
2121
+ }
2122
+
2123
+ .param-input-name .req {
2124
+ color: var(--sl-color-badge-required);
2125
+ }
2126
+
2127
+ input[type="text"],
2128
+ select {
2129
+ flex: 1;
2130
+ padding: 6px 10px;
2131
+ border: 1px solid var(--sl-color-border);
2132
+ border-radius: var(--sl-radius-sm);
2133
+ background: var(--sl-color-bg);
2134
+ color: var(--sl-color-text);
2135
+ font-family: var(--sl-font-mono);
2136
+ font-size: var(--sl-font-size-sm);
2137
+ outline: none;
2138
+ transition: border-color var(--sl-transition-fast);
2139
+ }
2140
+
2141
+ input:focus, select:focus {
2142
+ border-color: var(--sl-color-primary);
2143
+ }
2144
+
2145
+ input::placeholder {
2146
+ color: var(--sl-color-text-muted);
2147
+ }
2148
+
2149
+ textarea {
2150
+ width: 100%;
2151
+ min-height: 120px;
2152
+ padding: var(--sl-spacing-sm);
2153
+ border: 1px solid var(--sl-color-border);
2154
+ border-radius: var(--sl-radius-sm);
2155
+ background: var(--sl-color-code-bg);
2156
+ color: var(--sl-color-code-text);
2157
+ font-family: var(--sl-font-mono);
2158
+ font-size: var(--sl-font-size-sm);
2159
+ line-height: 1.6;
2160
+ resize: vertical;
2161
+ outline: none;
2162
+ transition: border-color var(--sl-transition-fast);
2163
+ }
2164
+
2165
+ textarea:focus {
2166
+ border-color: var(--sl-color-primary);
2167
+ }
2168
+
2169
+ .actions-bar {
2170
+ display: flex;
2171
+ align-items: center;
2172
+ gap: var(--sl-spacing-sm);
2173
+ padding: var(--sl-spacing-md) var(--sl-spacing-lg);
2174
+ border-top: 1px solid var(--sl-color-border);
2175
+ background: var(--sl-color-bg-subtle);
2176
+ }
2177
+
2178
+ .send-btn {
2179
+ padding: 8px 20px;
2180
+ border-radius: var(--sl-radius-md);
2181
+ background: var(--sl-color-primary);
2182
+ color: var(--sl-color-primary-text);
2183
+ font-weight: 600;
2184
+ font-size: var(--sl-font-size-sm);
2185
+ transition: background var(--sl-transition-fast);
2186
+ }
2187
+
2188
+ .send-btn:hover {
2189
+ background: var(--sl-color-primary-hover);
2190
+ }
2191
+
2192
+ .send-btn:disabled {
2193
+ opacity: 0.6;
2194
+ cursor: not-allowed;
2195
+ }
2196
+
2197
+ .server-select {
2198
+ flex: 1;
2199
+ max-width: 400px;
2200
+ }
2201
+
2202
+ /* Response */
2203
+ .response-section {
2204
+ border-top: 1px solid var(--sl-color-border);
2205
+ }
2206
+
2207
+ .response-header {
2208
+ display: flex;
2209
+ align-items: center;
2210
+ gap: var(--sl-spacing-md);
2211
+ padding: var(--sl-spacing-md) var(--sl-spacing-lg);
2212
+ background: var(--sl-color-bg-subtle);
2213
+ }
2214
+
2215
+ .status-badge {
2216
+ font-family: var(--sl-font-mono);
2217
+ font-weight: 700;
2218
+ font-size: var(--sl-font-size-sm);
2219
+ padding: 2px 10px;
2220
+ border-radius: var(--sl-radius-sm);
2221
+ }
2222
+
2223
+ .status-2xx { background: rgba(16,185,129,0.1); color: var(--sl-color-success); }
2224
+ .status-3xx { background: rgba(59,130,246,0.1); color: var(--sl-color-info); }
2225
+ .status-4xx { background: rgba(245,158,11,0.1); color: var(--sl-color-warning); }
2226
+ .status-5xx { background: rgba(239,68,68,0.1); color: var(--sl-color-danger); }
2227
+
2228
+ .response-time {
2229
+ font-size: var(--sl-font-size-xs);
2230
+ color: var(--sl-color-text-muted);
2231
+ margin-left: auto;
2232
+ }
2233
+
2234
+ .response-body {
2235
+ padding: var(--sl-spacing-md) var(--sl-spacing-lg);
2236
+ }
2237
+
2238
+ .response-body pre {
2239
+ background: var(--sl-color-code-bg);
2240
+ border: 1px solid var(--sl-color-border);
2241
+ border-radius: var(--sl-radius-sm);
2242
+ padding: var(--sl-spacing-md);
2243
+ font-size: var(--sl-font-size-sm);
2244
+ color: var(--sl-color-code-text);
2245
+ overflow-x: auto;
2246
+ line-height: 1.6;
2247
+ max-height: 400px;
2248
+ overflow-y: auto;
2249
+ }
2250
+
2251
+ .response-headers {
2252
+ padding: 0 var(--sl-spacing-lg) var(--sl-spacing-md);
2253
+ }
2254
+
2255
+ .response-headers-title {
2256
+ font-size: var(--sl-font-size-xs);
2257
+ font-weight: 600;
2258
+ color: var(--sl-color-text-muted);
2259
+ text-transform: uppercase;
2260
+ letter-spacing: 0.04em;
2261
+ margin-bottom: var(--sl-spacing-xs);
2262
+ cursor: pointer;
2263
+ }
2264
+
2265
+ .response-headers pre {
2266
+ font-size: var(--sl-font-size-xs);
2267
+ color: var(--sl-color-text-muted);
2268
+ background: var(--sl-color-code-bg);
2269
+ border: 1px solid var(--sl-color-border);
2270
+ border-radius: var(--sl-radius-sm);
2271
+ padding: var(--sl-spacing-sm);
2272
+ }
2273
+
2274
+ .error-msg {
2275
+ padding: var(--sl-spacing-md) var(--sl-spacing-lg);
2276
+ color: var(--sl-color-danger);
2277
+ font-size: var(--sl-font-size-sm);
2278
+ }
2279
+
2280
+ .error-msg .cors-hint {
2281
+ font-size: var(--sl-font-size-xs);
2282
+ color: var(--sl-color-text-muted);
2283
+ margin-top: var(--sl-spacing-xs);
2284
+ }
2285
+
2286
+ .loading-bar {
2287
+ height: 2px;
2288
+ background: var(--sl-color-primary);
2289
+ animation: sl-loading-pulse 1.5s ease infinite;
2290
+ }
2291
+
2292
+ @keyframes sl-loading-pulse {
2293
+ 0%, 100% { opacity: 0.3; }
2294
+ 50% { opacity: 1; }
2295
+ }
2296
+ `],ah([je({type:Object})],lh.prototype,"operation",2),ah([je({type:Array})],lh.prototype,"servers",2),ah([je({type:Array})],lh.prototype,"securitySchemes",2),ah([je({type:Object})],lh.prototype,"authState",2),ah([je({type:String})],lh.prototype,"proxyUrl",2),ah([Oe()],lh.prototype,"_paramValues",2),ah([Oe()],lh.prototype,"_bodyValue",2),ah([Oe()],lh.prototype,"_selectedServer",2),ah([Oe()],lh.prototype,"_response",2),ah([Oe()],lh.prototype,"_loading",2),ah([Oe()],lh.prototype,"_error",2),ah([Oe()],lh.prototype,"_showResponseHeaders",2),ah([Oe()],lh.prototype,"_initialized",2),lh=ah([_e("sl-try-it")],lh);var ch=Object.defineProperty,ph=Object.getOwnPropertyDescriptor,dh=(e,t,r,n)=>{for(var o,s=n>1?void 0:n?ph(t,r):t,i=e.length-1;i>=0;i--)(o=e[i])&&(s=(n?o(t,r,s):o(s))||s);return n&&s&&ch(t,r,s),s};let uh=class extends xe{constructor(){super(...arguments),this.securitySchemes=[],this.authState={apiKeys:{},bearerTokens:{}},this._localState={apiKeys:{},bearerTokens:{}},this._showTokens=new Set}willUpdate(){0===Object.keys(this._localState.apiKeys).length&&0===Object.keys(this._localState.bearerTokens).length&&(this._localState={...this.authState})}_updateApiKey(e,t){this._localState={...this._localState,apiKeys:{...this._localState.apiKeys,[e]:t}},this._emit()}_updateBearerToken(e,t){this._localState={...this._localState,bearerTokens:{...this._localState.bearerTokens,[e]:t}},this._emit()}_emit(){this.dispatchEvent(new CustomEvent("auth-update",{detail:this._localState}))}_toggleShow(e){const t=new Set(this._showTokens);t.has(e)?t.delete(e):t.add(e),this._showTokens=t}_close(){this.dispatchEvent(new CustomEvent("close-auth"))}_renderScheme(e){const t=e=>ne`
2297
+ <svg width="15" height="15" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round">
2298
+ ${e?ne`<path d="M1 8s2.5-5 7-5 7 5 7 5-2.5 5-7 5-7-5-7-5z"/><circle cx="8" cy="8" r="2"/>`:ne`<path d="M1 1l14 14M6.7 6.7A2 2 0 0010.3 10.3M3.4 3.4A7 7 0 001 8s2.5 5 7 5a7 7 0 003.6-1"/><path d="M8 3c4.4 0 7 5 7 5a12.8 12.8 0 01-1.7 2.3"/>`}
2299
+ </svg>
2300
+ `;if("apiKey"===e.type){const r=this._showTokens.has(e.key);return ne`
2301
+ <div class="scheme-card">
2302
+ <div class="scheme-card-inner">
2303
+ <div class="scheme-header">
2304
+ <span class="scheme-name">${e.key}</span>
2305
+ <span class="scheme-badge">API Key</span>
2306
+ </div>
2307
+ <div class="scheme-meta">
2308
+ In <code>${e.in}</code> as <code>${e.name}</code>
2309
+ </div>
2310
+ <div class="scheme-desc" .innerHTML=${ed.parse(e.description||"Enter your API key to authenticate requests.")}></div>
2311
+ <div class="input-row">
2312
+ <span class="input-label">Value</span>
2313
+ <div class="input-wrapper">
2314
+ <input
2315
+ type="${r?"text":"password"}"
2316
+ placeholder="Enter API key…"
2317
+ .value=${this._localState.apiKeys[e.key]??""}
2318
+ @input=${t=>this._updateApiKey(e.key,t.target.value)}
2319
+ />
2320
+ <button class="toggle-visibility" @click=${()=>this._toggleShow(e.key)} title="${r?"Hide":"Show"} value">
2321
+ ${t(r)}
2322
+ </button>
2323
+ </div>
2324
+ </div>
2325
+ </div>
2326
+ </div>
2327
+ `}if("http"===e.type&&("bearer"===e.scheme||"basic"===e.scheme)){const r=this._showTokens.has(e.key),n="bearer"===e.scheme?"Bearer Token":"Basic Auth",o="bearer"===e.scheme?ne`HTTP Bearer${e.bearerFormat?ne` · <code>${e.bearerFormat}</code>`:null}`:ne`HTTP Basic <code>username:password</code>`;return ne`
2328
+ <div class="scheme-card">
2329
+ <div class="scheme-card-inner">
2330
+ <div class="scheme-header">
2331
+ <span class="scheme-name">${e.key}</span>
2332
+ <span class="scheme-badge">${n}</span>
2333
+ </div>
2334
+ <div class="scheme-meta">${o}</div>
2335
+ <div class="scheme-desc" .innerHTML=${ed.parse(e.description||"Enter your bearer token to authenticate requests.")}></div>
2336
+ <div class="input-row">
2337
+ <span class="input-label">Token</span>
2338
+ <div class="input-wrapper">
2339
+ <input
2340
+ type="${r?"text":"password"}"
2341
+ placeholder="Enter token…"
2342
+ .value=${this._localState.bearerTokens[e.key]??""}
2343
+ @input=${t=>this._updateBearerToken(e.key,t.target.value)}
2344
+ />
2345
+ <button class="toggle-visibility" @click=${()=>this._toggleShow(e.key)} title="${r?"Hide":"Show"} token">
2346
+ ${t(r)}
2347
+ </button>
2348
+ </div>
2349
+ </div>
2350
+ </div>
2351
+ </div>
2352
+ `}return ne`
2353
+ <div class="unsupported-card">
2354
+ <div>
2355
+ <div class="unsupported-name">${e.key}</div>
2356
+ <div class="unsupported-type">${e.description??"No description"}</div>
2357
+ </div>
2358
+ <span class="unsupported-badge">${e.type} — not supported</span>
2359
+ </div>
2360
+ `}render(){const e=this.securitySchemes.length;return ne`
2361
+ <div class="overlay" @click=${this._close}></div>
2362
+ <div class="modal">
2363
+ <div class="modal-header">
2364
+ <div class="modal-title-area">
2365
+ <div class="modal-icon">
2366
+ <svg width="20" height="20" viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round">
2367
+ <rect x="4" y="9" width="12" height="9" rx="2"/>
2368
+ <path d="M7 9V7a3 3 0 016 0v2"/>
2369
+ <circle cx="10" cy="14" r="1.2" fill="currentColor" stroke="none"/>
2370
+ </svg>
2371
+ </div>
2372
+ <div class="modal-title-text">
2373
+ <span class="modal-title">Authorization</span>
2374
+ <span class="modal-subtitle">${e} security scheme${1!==e?"s":""} configured</span>
2375
+ </div>
2376
+ </div>
2377
+ <button class="close-btn" @click=${this._close} title="Close">
2378
+ <svg width="16" height="16" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round">
2379
+ <path d="M4 4l8 8M12 4l-8 8"/>
2380
+ </svg>
2381
+ </button>
2382
+ </div>
2383
+ <div class="modal-body">
2384
+ <div class="scheme-list">
2385
+ ${this.securitySchemes.map(e=>this._renderScheme(e))}
2386
+ </div>
2387
+ </div>
2388
+ <div class="modal-footer">
2389
+ <span class="footer-info">Credentials are stored in memory only</span>
2390
+ <div class="footer-actions">
2391
+ <button class="btn-secondary" @click=${this._close}>Cancel</button>
2392
+ <button class="btn-primary" @click=${this._close}>
2393
+ <svg width="14" height="14" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round">
2394
+ <path d="M3 8l4 4 6-6"/>
2395
+ </svg>
2396
+ Save &amp; Close
2397
+ </button>
2398
+ </div>
2399
+ </div>
2400
+ </div>
2401
+ `}};uh.styles=[Pe,b`
2402
+ :host {
2403
+ display: block;
2404
+ position: fixed;
2405
+ inset: 0;
2406
+ z-index: 300;
2407
+ }
2408
+
2409
+ .overlay {
2410
+ position: absolute;
2411
+ inset: 0;
2412
+ background: var(--sl-color-overlay);
2413
+ animation: sl-fade-in 150ms ease;
2414
+ }
2415
+
2416
+ @keyframes sl-fade-in {
2417
+ from { opacity: 0; }
2418
+ to { opacity: 1; }
2419
+ }
2420
+
2421
+ .modal {
2422
+ position: absolute;
2423
+ top: 50%;
2424
+ left: 50%;
2425
+ transform: translate(-50%, -50%);
2426
+ width: min(580px, calc(100vw - 2rem));
2427
+ max-height: calc(100vh - 4rem);
2428
+ background: var(--sl-color-surface);
2429
+ border-radius: var(--sl-radius-xl);
2430
+ box-shadow: var(--sl-shadow-xl);
2431
+ border: 1px solid var(--sl-color-border);
2432
+ overflow: hidden;
2433
+ display: flex;
2434
+ flex-direction: column;
2435
+ animation: sl-modal-in 200ms cubic-bezier(0.16, 1, 0.3, 1);
2436
+ }
2437
+
2438
+ @keyframes sl-modal-in {
2439
+ from { opacity: 0; transform: translate(-50%, -48%) scale(0.96); }
2440
+ to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
2441
+ }
2442
+
2443
+ .modal-header {
2444
+ display: flex;
2445
+ align-items: flex-start;
2446
+ justify-content: space-between;
2447
+ padding: var(--sl-spacing-xl);
2448
+ border-bottom: 1px solid var(--sl-color-border);
2449
+ flex-shrink: 0;
2450
+ gap: var(--sl-spacing-md);
2451
+ }
2452
+
2453
+ .modal-title-area {
2454
+ display: flex;
2455
+ align-items: center;
2456
+ gap: var(--sl-spacing-md);
2457
+ }
2458
+
2459
+ .modal-icon {
2460
+ width: 40px;
2461
+ height: 40px;
2462
+ flex-shrink: 0;
2463
+ border-radius: var(--sl-radius-lg);
2464
+ background: var(--sl-color-primary);
2465
+ display: flex;
2466
+ align-items: center;
2467
+ justify-content: center;
2468
+ color: #fff;
2469
+ box-shadow: 0 2px 8px rgba(99, 102, 241, 0.35);
2470
+ }
2471
+
2472
+ .modal-title-text {
2473
+ display: flex;
2474
+ flex-direction: column;
2475
+ gap: 2px;
2476
+ }
2477
+
2478
+ .modal-title {
2479
+ font-size: var(--sl-font-size-lg);
2480
+ font-weight: 700;
2481
+ color: var(--sl-color-text);
2482
+ line-height: 1.2;
2483
+ }
2484
+
2485
+ .modal-subtitle {
2486
+ font-size: var(--sl-font-size-xs);
2487
+ color: var(--sl-color-text-muted);
2488
+ }
2489
+
2490
+ .close-btn {
2491
+ width: 32px;
2492
+ height: 32px;
2493
+ flex-shrink: 0;
2494
+ display: flex;
2495
+ align-items: center;
2496
+ justify-content: center;
2497
+ border-radius: var(--sl-radius-md);
2498
+ color: var(--sl-color-text-muted);
2499
+ transition: all var(--sl-transition-fast);
2500
+ margin-top: 2px;
2501
+ }
2502
+
2503
+ .close-btn:hover {
2504
+ background: var(--sl-color-surface-raised);
2505
+ color: var(--sl-color-text);
2506
+ }
2507
+
2508
+ .modal-body {
2509
+ flex: 1;
2510
+ overflow-y: auto;
2511
+ padding: var(--sl-spacing-xl);
2512
+ }
2513
+
2514
+ .scheme-list {
2515
+ display: flex;
2516
+ flex-direction: column;
2517
+ gap: var(--sl-spacing-md);
2518
+ }
2519
+
2520
+ .scheme-card {
2521
+ border: 1px solid var(--sl-color-border);
2522
+ border-left: 3px solid var(--sl-color-primary);
2523
+ border-radius: var(--sl-radius-lg);
2524
+ background: var(--sl-color-bg-subtle);
2525
+ overflow: hidden;
2526
+ transition: border-color var(--sl-transition-fast);
2527
+ }
2528
+
2529
+ .scheme-card:focus-within {
2530
+ border-color: var(--sl-color-primary);
2531
+ box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
2532
+ }
2533
+
2534
+ .scheme-card-inner {
2535
+ padding: var(--sl-spacing-md) var(--sl-spacing-lg);
2536
+ display: flex;
2537
+ flex-direction: column;
2538
+ gap: var(--sl-spacing-sm);
2539
+ }
2540
+
2541
+ .scheme-header {
2542
+ display: flex;
2543
+ align-items: center;
2544
+ justify-content: space-between;
2545
+ gap: var(--sl-spacing-sm);
2546
+ }
2547
+
2548
+ .scheme-name {
2549
+ font-size: var(--sl-font-size-sm);
2550
+ font-weight: 700;
2551
+ color: var(--sl-color-text);
2552
+ }
2553
+
2554
+ .scheme-badge {
2555
+ font-size: 10px;
2556
+ font-weight: 600;
2557
+ letter-spacing: 0.05em;
2558
+ text-transform: uppercase;
2559
+ padding: 2px 8px;
2560
+ border-radius: var(--sl-radius-full);
2561
+ background: rgba(99, 102, 241, 0.1);
2562
+ color: var(--sl-color-primary);
2563
+ white-space: nowrap;
2564
+ }
2565
+
2566
+ .scheme-meta {
2567
+ font-size: var(--sl-font-size-xs);
2568
+ color: var(--sl-color-text-muted);
2569
+ display: flex;
2570
+ align-items: center;
2571
+ gap: 4px;
2572
+ }
2573
+
2574
+ .scheme-meta code {
2575
+ font-family: var(--sl-font-mono);
2576
+ background: var(--sl-color-surface-raised);
2577
+ padding: 1px 5px;
2578
+ border-radius: 3px;
2579
+ color: var(--sl-color-text-secondary);
2580
+ }
2581
+
2582
+ .scheme-desc {
2583
+ font-size: var(--sl-font-size-xs);
2584
+ color: var(--sl-color-text-muted);
2585
+ line-height: 1.6;
2586
+ border-top: 1px solid var(--sl-color-border);
2587
+ padding-top: var(--sl-spacing-sm);
2588
+ }
2589
+
2590
+ .scheme-desc p {
2591
+ margin: 0 0 var(--sl-spacing-xs) 0;
2592
+ }
2593
+
2594
+ .scheme-desc p:last-child {
2595
+ margin-bottom: 0;
2596
+ }
2597
+
2598
+ .scheme-desc code {
2599
+ background: var(--sl-color-surface-raised);
2600
+ padding: 1px 5px;
2601
+ border-radius: 3px;
2602
+ font-size: 0.85em;
2603
+ font-family: var(--sl-font-mono);
2604
+ }
2605
+
2606
+ .scheme-desc a {
2607
+ color: var(--sl-color-primary);
2608
+ text-decoration: none;
2609
+ }
2610
+
2611
+ .scheme-desc a:hover {
2612
+ text-decoration: underline;
2613
+ }
2614
+
2615
+ .input-row {
2616
+ display: flex;
2617
+ align-items: center;
2618
+ gap: var(--sl-spacing-sm);
2619
+ border-top: 1px solid var(--sl-color-border);
2620
+ padding-top: var(--sl-spacing-sm);
2621
+ }
2622
+
2623
+ .input-label {
2624
+ font-size: var(--sl-font-size-xs);
2625
+ font-weight: 600;
2626
+ color: var(--sl-color-text-muted);
2627
+ text-transform: uppercase;
2628
+ letter-spacing: 0.04em;
2629
+ min-width: 46px;
2630
+ }
2631
+
2632
+ .input-wrapper {
2633
+ flex: 1;
2634
+ position: relative;
2635
+ display: flex;
2636
+ align-items: center;
2637
+ }
2638
+
2639
+ input[type="text"],
2640
+ input[type="password"] {
2641
+ width: 100%;
2642
+ padding: 8px 40px 8px 12px;
2643
+ border: 1.5px solid var(--sl-color-border);
2644
+ border-radius: var(--sl-radius-md);
2645
+ background: var(--sl-color-bg);
2646
+ color: var(--sl-color-text);
2647
+ font-family: var(--sl-font-mono);
2648
+ font-size: var(--sl-font-size-sm);
2649
+ outline: none;
2650
+ transition: border-color var(--sl-transition-fast), box-shadow var(--sl-transition-fast);
2651
+ }
2652
+
2653
+ input:focus {
2654
+ border-color: var(--sl-color-primary);
2655
+ box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
2656
+ }
2657
+
2658
+ input::placeholder {
2659
+ color: var(--sl-color-text-muted);
2660
+ font-family: var(--sl-font-family);
2661
+ font-style: italic;
2662
+ }
2663
+
2664
+ .toggle-visibility {
2665
+ position: absolute;
2666
+ right: 8px;
2667
+ top: 50%;
2668
+ transform: translateY(-50%);
2669
+ width: 26px;
2670
+ height: 26px;
2671
+ display: flex;
2672
+ align-items: center;
2673
+ justify-content: center;
2674
+ border-radius: var(--sl-radius-sm);
2675
+ color: var(--sl-color-text-muted);
2676
+ transition: all var(--sl-transition-fast);
2677
+ }
2678
+
2679
+ .toggle-visibility:hover {
2680
+ background: var(--sl-color-surface-raised);
2681
+ color: var(--sl-color-text);
2682
+ }
2683
+
2684
+ .unsupported-card {
2685
+ padding: var(--sl-spacing-md) var(--sl-spacing-lg);
2686
+ border: 1px dashed var(--sl-color-border);
2687
+ border-radius: var(--sl-radius-lg);
2688
+ background: transparent;
2689
+ display: flex;
2690
+ align-items: center;
2691
+ justify-content: space-between;
2692
+ gap: var(--sl-spacing-md);
2693
+ }
2694
+
2695
+ .unsupported-name {
2696
+ font-size: var(--sl-font-size-sm);
2697
+ font-weight: 600;
2698
+ color: var(--sl-color-text);
2699
+ }
2700
+
2701
+ .unsupported-type {
2702
+ font-size: var(--sl-font-size-xs);
2703
+ color: var(--sl-color-text-muted);
2704
+ margin-top: 2px;
2705
+ }
2706
+
2707
+ .unsupported-badge {
2708
+ font-size: 10px;
2709
+ font-weight: 600;
2710
+ letter-spacing: 0.04em;
2711
+ text-transform: uppercase;
2712
+ padding: 2px 8px;
2713
+ border-radius: var(--sl-radius-full);
2714
+ background: var(--sl-color-surface-raised);
2715
+ color: var(--sl-color-text-muted);
2716
+ white-space: nowrap;
2717
+ flex-shrink: 0;
2718
+ }
2719
+
2720
+ .modal-footer {
2721
+ display: flex;
2722
+ align-items: center;
2723
+ justify-content: space-between;
2724
+ gap: var(--sl-spacing-sm);
2725
+ padding: var(--sl-spacing-md) var(--sl-spacing-xl);
2726
+ border-top: 1px solid var(--sl-color-border);
2727
+ background: var(--sl-color-bg-subtle);
2728
+ flex-shrink: 0;
2729
+ }
2730
+
2731
+ .footer-info {
2732
+ font-size: var(--sl-font-size-xs);
2733
+ color: var(--sl-color-text-muted);
2734
+ }
2735
+
2736
+ .footer-actions {
2737
+ display: flex;
2738
+ align-items: center;
2739
+ gap: var(--sl-spacing-sm);
2740
+ }
2741
+
2742
+ .btn-secondary {
2743
+ padding: 7px 16px;
2744
+ border-radius: var(--sl-radius-md);
2745
+ font-size: var(--sl-font-size-sm);
2746
+ font-weight: 500;
2747
+ color: var(--sl-color-text-secondary);
2748
+ border: 1px solid var(--sl-color-border);
2749
+ transition: all var(--sl-transition-fast);
2750
+ }
2751
+
2752
+ .btn-secondary:hover {
2753
+ background: var(--sl-color-surface-raised);
2754
+ color: var(--sl-color-text);
2755
+ border-color: var(--sl-color-border-hover);
2756
+ }
2757
+
2758
+ .btn-primary {
2759
+ display: flex;
2760
+ align-items: center;
2761
+ gap: 6px;
2762
+ padding: 7px 18px;
2763
+ border-radius: var(--sl-radius-md);
2764
+ font-size: var(--sl-font-size-sm);
2765
+ font-weight: 600;
2766
+ color: var(--sl-color-primary-text);
2767
+ background: var(--sl-color-primary);
2768
+ transition: all var(--sl-transition-fast);
2769
+ box-shadow: 0 1px 3px rgba(99, 102, 241, 0.3);
2770
+ }
2771
+
2772
+ .btn-primary:hover {
2773
+ background: var(--sl-color-primary-hover);
2774
+ box-shadow: 0 2px 6px rgba(99, 102, 241, 0.4);
2775
+ }
2776
+ `],dh([je({type:Array})],uh.prototype,"securitySchemes",2),dh([je({type:Object})],uh.prototype,"authState",2),dh([Oe()],uh.prototype,"_localState",2),dh([Oe()],uh.prototype,"_showTokens",2),uh=dh([_e("sl-auth")],uh);var fh=Object.defineProperty,hh=Object.getOwnPropertyDescriptor,mh=(e,t,r,n)=>{for(var o,s=n>1?void 0:n?hh(t,r):t,i=e.length-1;i>=0;i--)(o=e[i])&&(s=(n?o(t,r,s):o(s))||s);return n&&s&&fh(t,r,s),s};e.SpecLensElement=class extends xe{constructor(){super(...arguments),this.specUrl="",this.proxyUrl="",this.theme="auto",this.hideTryIt=!1,this.hideCodeSamples=!1,this.config={},this._spec=null,this._loading=!1,this._error=null,this._sidebarOpen=!1,this._authOpen=!1,this._activeOperationId="",this._navigateToId="",this._authState={apiKeys:{},bearerTokens:{}},this._tryItOperation=null,this._search=null,this._router=null,this._themeManager=null,this._observer=null,this._handleKeyDown=e=>{if((e.metaKey||e.ctrlKey)&&"k"===e.key){e.preventDefault();const t=this.renderRoot.querySelector("sl-sidebar");null==t||t.focusSearch()}}}connectedCallback(){super.connectedCallback(),this._themeManager=new Hc(this),this._themeManager.init(this.theme),this._router=new Dc(e=>{this._activeOperationId=e,this._navigateToId=e,this._scrollToOperation(e)}),this._router.init(),document.addEventListener("keydown",this._handleKeyDown)}disconnectedCallback(){var e,t,r;super.disconnectedCallback(),null==(e=this._router)||e.destroy(),null==(t=this._themeManager)||t.destroy(),null==(r=this._observer)||r.disconnect(),document.removeEventListener("keydown",this._handleKeyDown)}willUpdate(e){var t;(e.has("specUrl")||e.has("config"))&&this._loadSpec(),e.has("theme")&&(null==(t=this._themeManager)||t.setTheme(this.theme))}async _loadSpec(){var e,t;const r=(null==(e=this.config)?void 0:e.spec)||this.specUrl;if(r){this._loading=!0,this._error=null,this._spec=null;try{const e=await tc(r);this._spec=e,this._search=function(e){const t=new wc({fields:["operationId","summary","description","path","method","tags"],storeFields:["operationId","summary","path","method","tags"],searchOptions:{prefix:!0,fuzzy:.2,boost:{summary:3,operationId:2,tags:2,path:1.5}}}),r=e.map(e=>({id:e.operationId,operationId:e.operationId,summary:e.summary,description:e.description,path:e.path,method:e.method,tags:e.tags.join(" ")}));return t.addAll(r),{search:e=>e.trim()?t.search(e).map(e=>({operationId:e.operationId,path:e.path,method:e.method,summary:e.summary,tags:e.tags.split(" ").filter(Boolean),score:e.score})):[],autoSuggest:e=>e.trim()?t.autoSuggest(e).map(e=>e.suggestion):[]}}(e.allOperations),this._loading=!1,await this.updateComplete,null==(t=this._router)||t.handleCurrentRoute(),this._setupScrollTracking()}catch(n){this._loading=!1,this._error=n instanceof Error?n.message:String(n)}}}_setupScrollTracking(){var e;null==(e=this._observer)||e.disconnect(),this._observer=new IntersectionObserver(e=>{for(const t of e)if(t.isIntersecting){const e=t.target.id;"introduction"===e?this._activeOperationId="":e.startsWith("op-")&&(this._activeOperationId=e.replace("op-",""))}},{root:null,rootMargin:"-20% 0px -70% 0px",threshold:0});const t=this.renderRoot.querySelector("#introduction");t&&this._observer.observe(t);this.renderRoot.querySelectorAll('[id^="op-"]').forEach(e=>this._observer.observe(e))}_scrollToOperation(e){if(!e)return;const t=this.renderRoot.querySelector(`#op-${CSS.escape(e)}`);null==t||t.scrollIntoView({behavior:"smooth",block:"start"})}_scrollToIntro(){this._activeOperationId="";const e=this.renderRoot.querySelector("#introduction");null==e||e.scrollIntoView({behavior:"smooth",block:"start"})}_handleThemeToggle(){var e;const t=(null==(e=this._themeManager)?void 0:e.toggle())??"auto";this.theme=t}_handleAuthUpdate(e){this._authState=e.detail}_handleTryIt(e){this._tryItOperation=e.detail}render(){var e,t;return ne`
2777
+ <div class="sl-root" data-theme=${(null==(e=this._themeManager)?void 0:e.resolved)??"light"}>
2778
+ ${this._spec?ne`
2779
+ <sl-header
2780
+ .spec=${this._spec}
2781
+ .authOpen=${this._authOpen}
2782
+ @toggle-theme=${this._handleThemeToggle}
2783
+ @toggle-sidebar=${()=>this._sidebarOpen=!this._sidebarOpen}
2784
+ @toggle-auth=${()=>this._authOpen=!this._authOpen}
2785
+ ></sl-header>
2786
+
2787
+ <div class="sl-body">
2788
+ <sl-sidebar
2789
+ .tagGroups=${this._spec.tagGroups}
2790
+ .activeOperationId=${this._activeOperationId}
2791
+ .open=${this._sidebarOpen}
2792
+ .searchEngine=${this._search}
2793
+ @navigate=${e=>{var t;return null==(t=this._router)?void 0:t.navigateTo(e.detail)}}
2794
+ @navigate-intro=${()=>this._scrollToIntro()}
2795
+ @close-sidebar=${()=>this._sidebarOpen=!1}
2796
+ ></sl-sidebar>
2797
+
2798
+ <main class="sl-main">
2799
+ <section class="sl-introduction" id="introduction">
2800
+ <h1 class="sl-intro-title">
2801
+ ${this._spec.title}
2802
+ <span class="sl-intro-version">${this._spec.version}</span>
2803
+ </h1>
2804
+ ${this._spec.description?ne`
2805
+ <div class="sl-intro-desc" .innerHTML=${ed.parse(this._spec.description)}></div>
2806
+ `:ne`
2807
+ <div class="sl-intro-desc">
2808
+ <p>Welcome to the <strong>${this._spec.title}</strong> API documentation.</p>
2809
+ </div>
2810
+ `}
2811
+ ${this._spec.servers.length>0?ne`
2812
+ <div class="sl-intro-server">
2813
+ <span class="sl-intro-server-label">Base URL</span>
2814
+ <span class="sl-intro-server-url">${this._spec.servers[0].url}</span>
2815
+ </div>
2816
+ `:null}
2817
+ ${this._spec.contact?ne`
2818
+ <div class="sl-intro-meta">
2819
+ ${this._spec.contact.name?ne`<span class="sl-intro-meta-item"><strong>Contact:</strong> ${this._spec.contact.url?ne`<a href="${this._spec.contact.url}" target="_blank" rel="noopener">${this._spec.contact.name}</a>`:this._spec.contact.name}</span>`:null}
2820
+ ${this._spec.contact.email?ne`<span class="sl-intro-meta-item"><strong>Email:</strong> <a href="mailto:${this._spec.contact.email}">${this._spec.contact.email}</a></span>`:null}
2821
+ </div>
2822
+ `:null}
2823
+ ${this._spec.license?ne`
2824
+ <div class="sl-intro-meta">
2825
+ <span class="sl-intro-meta-item"><strong>License:</strong> ${this._spec.license.url?ne`<a href="${this._spec.license.url}" target="_blank" rel="noopener">${this._spec.license.name}</a>`:this._spec.license.name}</span>
2826
+ </div>
2827
+ `:null}
2828
+ ${this._spec.termsOfService?ne`
2829
+ <div class="sl-intro-meta">
2830
+ <span class="sl-intro-meta-item"><a href="${this._spec.termsOfService}" target="_blank" rel="noopener">Terms of Service</a></span>
2831
+ </div>
2832
+ `:null}
2833
+ </section>
2834
+
2835
+ ${this._spec.tagGroups.map(e=>ne`
2836
+ <section class="sl-tag-group" id="tag-${CSS.escape(e.name)}">
2837
+ <h2 class="sl-tag-group-title">${e.name}</h2>
2838
+ ${e.description?ne`<div class="sl-tag-group-desc sl-intro-desc" .innerHTML=${ed.parse(e.description)}></div>`:null}
2839
+ ${e.operations.map(e=>{var t,r,n;return ne`
2840
+ <sl-operation
2841
+ id="op-${e.operationId}"
2842
+ .operation=${e}
2843
+ .servers=${this._spec.servers}
2844
+ .securitySchemes=${this._spec.securitySchemes}
2845
+ .authState=${this._authState}
2846
+ .proxyUrl=${this.proxyUrl||(null==(t=this.config)?void 0:t.proxyUrl)||""}
2847
+ .activeOperationId=${this._navigateToId}
2848
+ ?hide-try-it=${this.hideTryIt||(null==(r=this.config)?void 0:r.hideTryIt)}
2849
+ ?hide-code-samples=${this.hideCodeSamples||(null==(n=this.config)?void 0:n.hideCodeSamples)}
2850
+ @try-it=${this._handleTryIt}
2851
+ ></sl-operation>
2852
+ `})}
2853
+ </section>
2854
+ `)}
2855
+ </main>
2856
+ </div>
2857
+
2858
+ ${this._authOpen&&this._spec.securitySchemes.length>0?ne`
2859
+ <sl-auth
2860
+ .securitySchemes=${this._spec.securitySchemes}
2861
+ .authState=${this._authState}
2862
+ @auth-update=${this._handleAuthUpdate}
2863
+ @close-auth=${()=>this._authOpen=!1}
2864
+ ></sl-auth>
2865
+ `:null}
2866
+
2867
+ ${this._tryItOperation?ne`
2868
+ <div class="try-it-overlay">
2869
+ <div class="try-it-backdrop" @click=${()=>this._tryItOperation=null}></div>
2870
+ <div class="try-it-modal">
2871
+ <div class="try-it-header">
2872
+ <span class="method-badge method-${this._tryItOperation.method}">${this._tryItOperation.method}</span>
2873
+ <span class="try-it-path">${this._tryItOperation.path}</span>
2874
+ <button class="try-it-close" @click=${()=>this._tryItOperation=null}>
2875
+ <svg width="16" height="16" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5">
2876
+ <path d="M4 4l8 8M12 4l-8 8" stroke-linecap="round"/>
2877
+ </svg>
2878
+ </button>
2879
+ </div>
2880
+ <div class="try-it-body">
2881
+ <sl-try-it
2882
+ .operation=${this._tryItOperation}
2883
+ .servers=${this._spec.servers}
2884
+ .securitySchemes=${this._spec.securitySchemes}
2885
+ .authState=${this._authState}
2886
+ .proxyUrl=${this.proxyUrl||(null==(t=this.config)?void 0:t.proxyUrl)||""}
2887
+ ></sl-try-it>
2888
+ </div>
2889
+ </div>
2890
+ </div>
2891
+ `:null}
2892
+ `:null}
2893
+
2894
+ ${this._loading?ne`
2895
+ <div class="sl-loading">
2896
+ <div class="sl-loading-spinner"></div>
2897
+ <div class="sl-loading-text">Loading API specification…</div>
2898
+ </div>
2899
+ `:null}
2900
+
2901
+ ${this._error?ne`
2902
+ <div class="sl-error">
2903
+ <div class="sl-error-icon">⚠</div>
2904
+ <div class="sl-error-title">Failed to load specification</div>
2905
+ <div class="sl-error-detail">${this._error}</div>
2906
+ </div>
2907
+ `:null}
2908
+ </div>
2909
+ `}},e.SpecLensElement.styles=[Pe,Ee,Te,b`
2910
+ :host {
2911
+ display: block;
2912
+ font-family: var(--sl-font-family);
2913
+ color: var(--sl-color-text);
2914
+ background: var(--sl-color-bg);
2915
+ min-height: 100vh;
2916
+ }
2917
+
2918
+ .sl-root {
2919
+ display: flex;
2920
+ flex-direction: column;
2921
+ min-height: 100vh;
2922
+ }
2923
+
2924
+ .sl-body {
2925
+ display: flex;
2926
+ flex: 1;
2927
+ }
2928
+
2929
+ .sl-main {
2930
+ flex: 1;
2931
+ min-width: 0;
2932
+ padding: var(--sl-spacing-xl) var(--sl-spacing-2xl);
2933
+ max-width: 1400px;
2934
+ margin: 0 auto;
2935
+ }
2936
+
2937
+ /* ── Introduction Section ──────────── */
2938
+ .sl-introduction {
2939
+ margin-bottom: var(--sl-spacing-3xl);
2940
+ padding-bottom: var(--sl-spacing-2xl);
2941
+ border-bottom: 1px solid var(--sl-color-border);
2942
+ }
2943
+
2944
+ .sl-intro-title {
2945
+ font-size: var(--sl-font-size-2xl);
2946
+ font-weight: 800;
2947
+ color: var(--sl-color-text);
2948
+ margin: 0 0 var(--sl-spacing-sm) 0;
2949
+ display: flex;
2950
+ align-items: center;
2951
+ gap: var(--sl-spacing-md);
2952
+ }
2953
+
2954
+ .sl-intro-version {
2955
+ font-size: var(--sl-font-size-sm);
2956
+ font-weight: 600;
2957
+ padding: 3px 10px;
2958
+ border-radius: var(--sl-radius-full);
2959
+ background: var(--sl-color-primary);
2960
+ color: var(--sl-color-primary-text);
2961
+ }
2962
+
2963
+ .sl-intro-desc {
2964
+ font-size: var(--sl-font-size-base);
2965
+ color: var(--sl-color-text-secondary);
2966
+ line-height: 1.7;
2967
+ max-width: 900px;
2968
+ }
2969
+
2970
+ .sl-intro-desc p {
2971
+ margin: 0 0 var(--sl-spacing-md) 0;
2972
+ }
2973
+ .sl-intro-desc p:last-child {
2974
+ margin-bottom: 0;
2975
+ }
2976
+
2977
+ /* ── Headings ──────────────────────── */
2978
+ .sl-intro-desc h1,
2979
+ .sl-intro-desc h2,
2980
+ .sl-intro-desc h3,
2981
+ .sl-intro-desc h4,
2982
+ .sl-intro-desc h5,
2983
+ .sl-intro-desc h6 {
2984
+ color: var(--sl-color-text);
2985
+ font-weight: 700;
2986
+ margin: var(--sl-spacing-xl) 0 var(--sl-spacing-sm) 0;
2987
+ line-height: 1.3;
2988
+ }
2989
+ .sl-intro-desc h1 { font-size: 1.6rem; border-bottom: 2px solid var(--sl-color-border); padding-bottom: var(--sl-spacing-sm); }
2990
+ .sl-intro-desc h2 { font-size: 1.3rem; border-bottom: 1px solid var(--sl-color-border); padding-bottom: var(--sl-spacing-xs); }
2991
+ .sl-intro-desc h3 { font-size: 1.1rem; }
2992
+ .sl-intro-desc h4 { font-size: 1rem; }
2993
+ .sl-intro-desc h5 { font-size: 0.9rem; }
2994
+ .sl-intro-desc h1:first-child,
2995
+ .sl-intro-desc h2:first-child,
2996
+ .sl-intro-desc h3:first-child {
2997
+ margin-top: 0;
2998
+ }
2999
+
3000
+ /* ── Inline code ───────────────────── */
3001
+ .sl-intro-desc code {
3002
+ background: var(--sl-color-code-bg);
3003
+ padding: 2px 7px;
3004
+ border-radius: var(--sl-radius-sm);
3005
+ font-size: 0.85em;
3006
+ font-family: var(--sl-font-mono);
3007
+ border: 1px solid var(--sl-color-border);
3008
+ }
3009
+
3010
+ /* ── Code blocks ───────────────────── */
3011
+ .sl-intro-desc pre {
3012
+ background: #0d1117;
3013
+ border: 1px solid #30363d;
3014
+ border-radius: var(--sl-radius-md);
3015
+ padding: var(--sl-spacing-md);
3016
+ overflow-x: auto;
3017
+ margin: var(--sl-spacing-md) 0;
3018
+ line-height: 1.6;
3019
+ }
3020
+ .sl-intro-desc pre code {
3021
+ background: none;
3022
+ border: none;
3023
+ padding: 0;
3024
+ border-radius: 0;
3025
+ color: #e6edf3;
3026
+ font-size: var(--sl-font-size-sm);
3027
+ font-family: var(--sl-font-mono);
3028
+ }
3029
+
3030
+ /* ── Links (button-like) ───────────── */
3031
+ .sl-intro-desc a {
3032
+ display: inline-flex;
3033
+ align-items: center;
3034
+ gap: 4px;
3035
+ color: var(--sl-color-primary);
3036
+ text-decoration: none;
3037
+ font-weight: 500;
3038
+ padding: 2px 8px;
3039
+ border-radius: var(--sl-radius-sm);
3040
+ border: 1px solid transparent;
3041
+ transition: all var(--sl-transition-fast);
3042
+ }
3043
+ .sl-intro-desc a:hover {
3044
+ background: rgba(99, 102, 241, 0.08);
3045
+ border-color: rgba(99, 102, 241, 0.25);
3046
+ text-decoration: none;
3047
+ }
3048
+ .sl-intro-desc a:active {
3049
+ background: rgba(99, 102, 241, 0.15);
3050
+ }
3051
+
3052
+ /* ── Tables ────────────────────────── */
3053
+ .sl-intro-desc table {
3054
+ width: 100%;
3055
+ border-collapse: separate;
3056
+ border-spacing: 0;
3057
+ border: 1px solid var(--sl-color-border);
3058
+ border-radius: var(--sl-radius-md);
3059
+ overflow: hidden;
3060
+ margin: var(--sl-spacing-md) 0;
3061
+ font-size: var(--sl-font-size-sm);
3062
+ }
3063
+ .sl-intro-desc thead {
3064
+ background: var(--sl-color-bg-subtle);
3065
+ }
3066
+ .sl-intro-desc th {
3067
+ text-align: left;
3068
+ padding: var(--sl-spacing-sm) var(--sl-spacing-md);
3069
+ font-weight: 600;
3070
+ color: var(--sl-color-text);
3071
+ border-bottom: 2px solid var(--sl-color-border);
3072
+ white-space: nowrap;
3073
+ }
3074
+ .sl-intro-desc td {
3075
+ padding: var(--sl-spacing-sm) var(--sl-spacing-md);
3076
+ border-bottom: 1px solid var(--sl-color-border);
3077
+ color: var(--sl-color-text-secondary);
3078
+ }
3079
+ .sl-intro-desc tr:last-child td {
3080
+ border-bottom: none;
3081
+ }
3082
+ .sl-intro-desc tbody tr:hover {
3083
+ background: var(--sl-color-bg-subtle);
3084
+ }
3085
+
3086
+ /* ── Blockquotes ───────────────────── */
3087
+ .sl-intro-desc blockquote {
3088
+ border-left: 3px solid var(--sl-color-primary);
3089
+ background: rgba(99, 102, 241, 0.05);
3090
+ margin: var(--sl-spacing-md) 0;
3091
+ padding: var(--sl-spacing-sm) var(--sl-spacing-lg);
3092
+ border-radius: 0 var(--sl-radius-md) var(--sl-radius-md) 0;
3093
+ color: var(--sl-color-text-secondary);
3094
+ }
3095
+ .sl-intro-desc blockquote p {
3096
+ margin-bottom: var(--sl-spacing-xs);
3097
+ }
3098
+ .sl-intro-desc blockquote code {
3099
+ background: rgba(99, 102, 241, 0.1);
3100
+ border-color: rgba(99, 102, 241, 0.2);
3101
+ }
3102
+
3103
+ /* ── Lists ─────────────────────────── */
3104
+ .sl-intro-desc ul,
3105
+ .sl-intro-desc ol {
3106
+ margin: var(--sl-spacing-sm) 0;
3107
+ padding-left: var(--sl-spacing-xl);
3108
+ }
3109
+ .sl-intro-desc li {
3110
+ margin-bottom: var(--sl-spacing-xs);
3111
+ }
3112
+ .sl-intro-desc li strong {
3113
+ color: var(--sl-color-text);
3114
+ }
3115
+
3116
+ /* ── Horizontal rules ──────────────── */
3117
+ .sl-intro-desc hr {
3118
+ border: none;
3119
+ height: 1px;
3120
+ background: var(--sl-color-border);
3121
+ margin: var(--sl-spacing-xl) 0;
3122
+ }
3123
+
3124
+ /* ── Bootstrap-style badges (from spec HTML) ── */
3125
+ .sl-intro-desc .badge {
3126
+ display: inline-flex;
3127
+ align-items: center;
3128
+ justify-content: center;
3129
+ min-width: 40px;
3130
+ padding: 2px 10px;
3131
+ border-radius: var(--sl-radius-full);
3132
+ font-size: 0.75rem;
3133
+ font-weight: 700;
3134
+ font-family: var(--sl-font-mono);
3135
+ line-height: 1.5;
3136
+ letter-spacing: 0.02em;
3137
+ }
3138
+ .sl-intro-desc .bg-success { background: var(--sl-color-get-bg); color: var(--sl-color-get); }
3139
+ .sl-intro-desc .bg-primary { background: var(--sl-color-post-bg); color: var(--sl-color-post); }
3140
+ .sl-intro-desc .bg-info { background: var(--sl-color-put-bg); color: var(--sl-color-put); }
3141
+ .sl-intro-desc .bg-danger { background: var(--sl-color-delete-bg); color: var(--sl-color-delete); }
3142
+ .sl-intro-desc .bg-secondary { background: var(--sl-color-bg-subtle); color: var(--sl-color-text-secondary); border: 1px solid var(--sl-color-border); }
3143
+
3144
+ /* ── Bootstrap-style alert divs ────── */
3145
+ .sl-intro-desc .alert {
3146
+ display: flex;
3147
+ align-items: center;
3148
+ gap: var(--sl-spacing-sm);
3149
+ padding: var(--sl-spacing-sm) var(--sl-spacing-lg);
3150
+ border-radius: var(--sl-radius-md);
3151
+ font-size: var(--sl-font-size-sm);
3152
+ font-weight: 600;
3153
+ margin: var(--sl-spacing-md) 0;
3154
+ }
3155
+ .sl-intro-desc .alert-success {
3156
+ background: var(--sl-color-get-bg);
3157
+ color: var(--sl-color-get);
3158
+ border: 1px solid rgba(16, 185, 129, 0.2);
3159
+ }
3160
+ .sl-intro-desc .alert-danger {
3161
+ background: var(--sl-color-delete-bg);
3162
+ color: var(--sl-color-delete);
3163
+ border: 1px solid rgba(239, 68, 68, 0.2);
3164
+ }
3165
+
3166
+ /* ── Bootstrap-style buttons (from spec HTML) ── */
3167
+ .sl-intro-desc button,
3168
+ .sl-intro-desc .btn {
3169
+ display: inline-flex;
3170
+ align-items: center;
3171
+ gap: 6px;
3172
+ padding: 6px 16px;
3173
+ border-radius: var(--sl-radius-md);
3174
+ font-size: var(--sl-font-size-sm);
3175
+ font-weight: 600;
3176
+ cursor: pointer;
3177
+ transition: all var(--sl-transition-fast);
3178
+ border: 1px solid var(--sl-color-get);
3179
+ background: transparent;
3180
+ color: var(--sl-color-get);
3181
+ }
3182
+ .sl-intro-desc button:hover,
3183
+ .sl-intro-desc .btn:hover {
3184
+ background: var(--sl-color-get);
3185
+ color: #fff;
3186
+ }
3187
+
3188
+ /* ── Images ────────────────────────── */
3189
+ .sl-intro-desc img {
3190
+ max-width: 100%;
3191
+ height: auto;
3192
+ border-radius: var(--sl-radius-md);
3193
+ margin: var(--sl-spacing-sm) 0;
3194
+ }
3195
+
3196
+ .sl-intro-server {
3197
+ display: inline-flex;
3198
+ align-items: center;
3199
+ gap: var(--sl-spacing-sm);
3200
+ margin-top: var(--sl-spacing-md);
3201
+ padding: var(--sl-spacing-sm) var(--sl-spacing-md);
3202
+ border-radius: var(--sl-radius-md);
3203
+ background: var(--sl-color-bg-subtle);
3204
+ border: 1px solid var(--sl-color-border);
3205
+ font-size: var(--sl-font-size-sm);
3206
+ }
3207
+
3208
+ .sl-intro-server-label {
3209
+ color: var(--sl-color-text-muted);
3210
+ font-weight: 500;
3211
+ }
3212
+
3213
+ .sl-intro-server-url {
3214
+ font-family: var(--sl-font-mono);
3215
+ color: var(--sl-color-text);
3216
+ }
3217
+
3218
+ .sl-intro-meta {
3219
+ display: flex;
3220
+ flex-wrap: wrap;
3221
+ gap: var(--sl-spacing-md);
3222
+ margin-top: var(--sl-spacing-sm);
3223
+ font-size: var(--sl-font-size-sm);
3224
+ color: var(--sl-color-text-secondary);
3225
+ }
3226
+
3227
+ .sl-intro-meta a {
3228
+ color: var(--sl-color-primary);
3229
+ text-decoration: none;
3230
+ }
3231
+
3232
+ .sl-intro-meta a:hover {
3233
+ text-decoration: underline;
3234
+ }
3235
+
3236
+ /* ── Loading / Error ───────────────── */
3237
+ .sl-loading {
3238
+ display: flex;
3239
+ flex-direction: column;
3240
+ align-items: center;
3241
+ justify-content: center;
3242
+ min-height: 60vh;
3243
+ gap: var(--sl-spacing-md);
3244
+ }
3245
+
3246
+ .sl-loading-spinner {
3247
+ width: 40px;
3248
+ height: 40px;
3249
+ border: 3px solid var(--sl-color-border);
3250
+ border-top-color: var(--sl-color-primary);
3251
+ border-radius: 50%;
3252
+ animation: sl-spin 0.8s linear infinite;
3253
+ }
3254
+
3255
+ @keyframes sl-spin {
3256
+ to { transform: rotate(360deg); }
3257
+ }
3258
+
3259
+ .sl-loading-text {
3260
+ color: var(--sl-color-text-muted);
3261
+ font-size: 0.875rem;
3262
+ }
3263
+
3264
+ .sl-error {
3265
+ display: flex;
3266
+ flex-direction: column;
3267
+ align-items: center;
3268
+ justify-content: center;
3269
+ min-height: 60vh;
3270
+ gap: var(--sl-spacing-md);
3271
+ color: var(--sl-color-delete);
3272
+ text-align: center;
3273
+ padding: var(--sl-spacing-xl);
3274
+ }
3275
+
3276
+ .sl-error-icon {
3277
+ font-size: 2rem;
3278
+ }
3279
+
3280
+ .sl-error-title {
3281
+ font-size: 1.25rem;
3282
+ font-weight: 600;
3283
+ }
3284
+
3285
+ .sl-error-detail {
3286
+ font-size: 0.875rem;
3287
+ color: var(--sl-color-text-muted);
3288
+ max-width: 500px;
3289
+ word-break: break-word;
3290
+ }
3291
+
3292
+ /* ── Tag Groups ────────────────────── */
3293
+ .sl-tag-group {
3294
+ margin-bottom: var(--sl-spacing-2xl);
3295
+ }
3296
+
3297
+ .sl-tag-group-title {
3298
+ font-size: 1.5rem;
3299
+ font-weight: 700;
3300
+ margin: 0 0 var(--sl-spacing-xs) 0;
3301
+ padding-bottom: var(--sl-spacing-sm);
3302
+ border-bottom: 2px solid var(--sl-color-border);
3303
+ color: var(--sl-color-text);
3304
+ }
3305
+
3306
+ .sl-tag-group-desc {
3307
+ font-size: 0.875rem;
3308
+ color: var(--sl-color-text-muted);
3309
+ margin: 0 0 var(--sl-spacing-lg) 0;
3310
+ }
3311
+
3312
+ /* ── Try It Modal ──────────────────── */
3313
+ .try-it-overlay {
3314
+ position: fixed;
3315
+ inset: 0;
3316
+ z-index: 300;
3317
+ }
3318
+
3319
+ .try-it-backdrop {
3320
+ position: absolute;
3321
+ inset: 0;
3322
+ background: var(--sl-color-overlay);
3323
+ animation: sl-fade-in 150ms ease;
3324
+ }
3325
+
3326
+ @keyframes sl-fade-in {
3327
+ from { opacity: 0; }
3328
+ to { opacity: 1; }
3329
+ }
3330
+
3331
+ .try-it-modal {
3332
+ position: absolute;
3333
+ top: 50%;
3334
+ left: 50%;
3335
+ transform: translate(-50%, -50%);
3336
+ width: min(680px, calc(100vw - 2rem));
3337
+ max-height: calc(100vh - 4rem);
3338
+ background: var(--sl-color-surface);
3339
+ border-radius: var(--sl-radius-xl);
3340
+ box-shadow: var(--sl-shadow-xl);
3341
+ border: 1px solid var(--sl-color-border);
3342
+ overflow: hidden;
3343
+ display: flex;
3344
+ flex-direction: column;
3345
+ animation: sl-modal-in 200ms ease;
3346
+ }
3347
+
3348
+ @keyframes sl-modal-in {
3349
+ from { opacity: 0; transform: translate(-50%, -50%) scale(0.96); }
3350
+ to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
3351
+ }
3352
+
3353
+ .try-it-header {
3354
+ display: flex;
3355
+ align-items: center;
3356
+ gap: var(--sl-spacing-md);
3357
+ padding: var(--sl-spacing-md) var(--sl-spacing-xl);
3358
+ border-bottom: 1px solid var(--sl-color-border);
3359
+ flex-shrink: 0;
3360
+ }
3361
+
3362
+ .try-it-header .method-badge {
3363
+ display: inline-flex;
3364
+ align-items: center;
3365
+ justify-content: center;
3366
+ min-width: 52px;
3367
+ padding: 3px 10px;
3368
+ border-radius: var(--sl-radius-md);
3369
+ font-size: var(--sl-font-size-xs);
3370
+ font-weight: 700;
3371
+ font-family: var(--sl-font-mono);
3372
+ text-transform: uppercase;
3373
+ }
3374
+
3375
+ .method-get { background: var(--sl-color-get-bg); color: var(--sl-color-get); }
3376
+ .method-post { background: var(--sl-color-post-bg); color: var(--sl-color-post); }
3377
+ .method-put { background: var(--sl-color-put-bg); color: var(--sl-color-put); }
3378
+ .method-delete { background: var(--sl-color-delete-bg); color: var(--sl-color-delete); }
3379
+ .method-patch { background: var(--sl-color-patch-bg); color: var(--sl-color-patch); }
3380
+ .method-options,
3381
+ .method-head,
3382
+ .method-trace { background: var(--sl-color-options-bg); color: var(--sl-color-options); }
3383
+
3384
+ .try-it-header .try-it-path {
3385
+ font-family: var(--sl-font-mono);
3386
+ font-size: var(--sl-font-size-sm);
3387
+ font-weight: 500;
3388
+ color: var(--sl-color-text);
3389
+ overflow: hidden;
3390
+ text-overflow: ellipsis;
3391
+ white-space: nowrap;
3392
+ flex: 1;
3393
+ }
3394
+
3395
+ .try-it-close {
3396
+ width: 32px;
3397
+ height: 32px;
3398
+ display: flex;
3399
+ align-items: center;
3400
+ justify-content: center;
3401
+ border-radius: var(--sl-radius-md);
3402
+ color: var(--sl-color-text-muted);
3403
+ transition: all var(--sl-transition-fast);
3404
+ flex-shrink: 0;
3405
+ }
3406
+
3407
+ .try-it-close:hover {
3408
+ background: var(--sl-color-surface-raised);
3409
+ color: var(--sl-color-text);
3410
+ }
3411
+
3412
+ .try-it-body {
3413
+ flex: 1;
3414
+ overflow-y: auto;
3415
+ padding: 0;
3416
+ }
3417
+
3418
+ @media (max-width: 768px) {
3419
+ .sl-main {
3420
+ padding: var(--sl-spacing-md);
3421
+ }
3422
+ }
3423
+ `],mh([je({attribute:"spec-url"})],e.SpecLensElement.prototype,"specUrl",2),mh([je({attribute:"proxy-url"})],e.SpecLensElement.prototype,"proxyUrl",2),mh([je({attribute:"theme",reflect:!0})],e.SpecLensElement.prototype,"theme",2),mh([je({type:Boolean,attribute:"hide-try-it"})],e.SpecLensElement.prototype,"hideTryIt",2),mh([je({type:Boolean,attribute:"hide-code-samples"})],e.SpecLensElement.prototype,"hideCodeSamples",2),mh([Oe()],e.SpecLensElement.prototype,"_spec",2),mh([Oe()],e.SpecLensElement.prototype,"_loading",2),mh([Oe()],e.SpecLensElement.prototype,"_error",2),mh([Oe()],e.SpecLensElement.prototype,"_sidebarOpen",2),mh([Oe()],e.SpecLensElement.prototype,"_authOpen",2),mh([Oe()],e.SpecLensElement.prototype,"_activeOperationId",2),mh([Oe()],e.SpecLensElement.prototype,"_navigateToId",2),mh([Oe()],e.SpecLensElement.prototype,"_authState",2),mh([Oe()],e.SpecLensElement.prototype,"_tryItOperation",2),e.SpecLensElement=mh([_e("spec-lens")],e.SpecLensElement),void 0===globalThis.Buffer&&(globalThis.Buffer=f.Buffer),customElements.get("spec-lens")||customElements.define("spec-lens",e.SpecLensElement);const gh={init(e,t){const r=document.querySelector(e);if(!r)throw new Error(`[SpecLens] Container not found: ${e}`);const n=document.createElement("spec-lens");return t.specUrl&&n.setAttribute("spec-url",t.specUrl),t.theme&&"auto"!==t.theme&&n.setAttribute("theme",t.theme),t.proxyUrl&&n.setAttribute("proxy-url",t.proxyUrl),t.hideTryIt&&n.setAttribute("hide-try-it",""),t.hideCodeSamples&&n.setAttribute("hide-code-samples",""),n.config=t,r.appendChild(n),n}};return e.SpecLens=gh,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),e}({});
3424
+ //# sourceMappingURL=speclens.iife.js.map