@redocly/replay 0.17.0-next.8 → 0.17.0-next.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{replay-index-QhD5ghNA.js → replay-index-637fJww-.js} +477 -477
- package/dist/{replay-index-CT17elgG.js → replay-index-BTmOqAtW.js} +1 -1
- package/dist/{replay-index-CsW_b6YM.js → replay-index-CnafcWXu.js} +1 -1
- package/dist/{replay-index-PXPyKjOk.js → replay-index-D1W9r9Rf.js} +103 -103
- package/dist/{replay-index-2YrCJPA4.js → replay-index-D7wVG1Y9.js} +1 -1
- package/dist/{replay-index-08FSEQZt.js → replay-index-DPixSSw1.js} +1 -1
- package/dist/{replay-tauri-path-KxzMCc9a.js → replay-tauri-path-Btd3dMbB.js} +2 -2
- package/dist/{replay-tauri-path-BWhMy-75.js → replay-tauri-path-dnQvNJdV.js} +1 -1
- package/dist/replay.cjs +1 -1
- package/dist/replay.js +1 -1
- package/package.json +2 -2
|
@@ -209,27 +209,27 @@ See https://s-c.sh/2BAXzed for more info.`),window["__styled-components-init__"]
|
|
|
209
209
|
|
|
210
210
|
`),S+="`"+vge(O)+"`: "+b),c([S])}return null})},t})();function i1(t){if(t){var e=t.replace(/([^\n\r])(\r?\n)([^\n\r])/gm,`$1
|
|
211
211
|
|
|
212
|
-
$3`);return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}}function vge(t){return t.indexOf("`")!==-1?"`` "+t+" ``":t}var bge=(function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)i.hasOwnProperty(o)&&(n[o]=i[o])},t(e,r)};return function(e,r){t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),xr,up;if(typeof process=="object")up=process.platform==="win32";else if(typeof navigator=="object"){var Oge=navigator.userAgent;up=Oge.indexOf("Windows")>=0}var xge=/^\w[\w\d+.-]*$/,Sge=/^\//,wge=/^\/\//;function Cge(t,e){if(!t.scheme&&e)throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'+t.authority+'", path: "'+t.path+'", query: "'+t.query+'", fragment: "'+t.fragment+'"}');if(t.scheme&&!xge.test(t.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(t.path){if(t.authority){if(!Sge.test(t.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(wge.test(t.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function Pge(t,e){return!t&&!e?"file":t}function kge(t,e){switch(t){case"https":case"http":case"file":e?e[0]!==no&&(e=no+e):e=no;break}return e}var Wt="",no="/",$ge=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,y$=(function(){function t(e,r,n,i,o,s){s===void 0&&(s=!1),typeof e=="object"?(this.scheme=e.scheme||Wt,this.authority=e.authority||Wt,this.path=e.path||Wt,this.query=e.query||Wt,this.fragment=e.fragment||Wt):(this.scheme=Pge(e,s),this.authority=r||Wt,this.path=kge(this.scheme,n||Wt),this.query=i||Wt,this.fragment=o||Wt,Cge(this,s))}return t.isUri=function(e){return e instanceof t?!0:e?typeof e.authority=="string"&&typeof e.fragment=="string"&&typeof e.path=="string"&&typeof e.query=="string"&&typeof e.scheme=="string"&&typeof e.fsPath=="function"&&typeof e.with=="function"&&typeof e.toString=="function":!1},Object.defineProperty(t.prototype,"fsPath",{get:function(){return HX(this)},enumerable:!0,configurable:!0}),t.prototype.with=function(e){if(!e)return this;var r=e.scheme,n=e.authority,i=e.path,o=e.query,s=e.fragment;return r===void 0?r=this.scheme:r===null&&(r=Wt),n===void 0?n=this.authority:n===null&&(n=Wt),i===void 0?i=this.path:i===null&&(i=Wt),o===void 0?o=this.query:o===null&&(o=Wt),s===void 0?s=this.fragment:s===null&&(s=Wt),r===this.scheme&&n===this.authority&&i===this.path&&o===this.query&&s===this.fragment?this:new Qc(r,n,i,o,s)},t.parse=function(e,r){r===void 0&&(r=!1);var n=$ge.exec(e);return n?new Qc(n[2]||Wt,ym(n[4]||Wt),ym(n[5]||Wt),ym(n[7]||Wt),ym(n[9]||Wt),r):new Qc(Wt,Wt,Wt,Wt,Wt)},t.file=function(e){var r=Wt;if(up&&(e=e.replace(/\\/g,no)),e[0]===no&&e[1]===no){var n=e.indexOf(no,2);n===-1?(r=e.substring(2),e=no):(r=e.substring(2,n),e=e.substring(n)||no)}return new Qc("file",r,e,Wt,Wt)},t.from=function(e){return new Qc(e.scheme,e.authority,e.path,e.query,e.fragment)},t.prototype.toString=function(e){return e===void 0&&(e=!1),v$(this,e)},t.prototype.toJSON=function(){return this},t.revive=function(e){if(e){if(e instanceof t)return e;var r=new Qc(e);return r._formatted=e.external,r._fsPath=e._sep===GX?e.fsPath:null,r}else return e},t})(),GX=up?1:void 0,Qc=(function(t){bge(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r._formatted=null,r._fsPath=null,r}return Object.defineProperty(e.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=HX(this)),this._fsPath},enumerable:!0,configurable:!0}),e.prototype.toString=function(r){return r===void 0&&(r=!1),r?v$(this,!0):(this._formatted||(this._formatted=v$(this,!1)),this._formatted)},e.prototype.toJSON=function(){var r={$mid:1};return this._fsPath&&(r.fsPath=this._fsPath,r._sep=GX),this._formatted&&(r.external=this._formatted),this.path&&(r.path=this.path),this.scheme&&(r.scheme=this.scheme),this.authority&&(r.authority=this.authority),this.query&&(r.query=this.query),this.fragment&&(r.fragment=this.fragment),r},e})(y$),YX=(xr={},xr[58]="%3A",xr[47]="%2F",xr[63]="%3F",xr[35]="%23",xr[91]="%5B",xr[93]="%5D",xr[64]="%40",xr[33]="%21",xr[36]="%24",xr[38]="%26",xr[39]="%27",xr[40]="%28",xr[41]="%29",xr[42]="%2A",xr[43]="%2B",xr[44]="%2C",xr[59]="%3B",xr[61]="%3D",xr[32]="%20",xr);function yM(t,e){for(var r=void 0,n=-1,i=0;i<t.length;i++){var o=t.charCodeAt(i);if(o>=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||o===45||o===46||o===95||o===126||e&&o===47)n!==-1&&(r+=encodeURIComponent(t.substring(n,i)),n=-1),r!==void 0&&(r+=t.charAt(i));else{r===void 0&&(r=t.substr(0,i));var s=YX[o];s!==void 0?(n!==-1&&(r+=encodeURIComponent(t.substring(n,i)),n=-1),r+=s):n===-1&&(n=i)}}return n!==-1&&(r+=encodeURIComponent(t.substring(n))),r!==void 0?r:t}function Ege(t){for(var e=void 0,r=0;r<t.length;r++){var n=t.charCodeAt(r);n===35||n===63?(e===void 0&&(e=t.substr(0,r)),e+=YX[n]):e!==void 0&&(e+=t[r])}return e!==void 0?e:t}function HX(t,e){var r;return t.authority&&t.path.length>1&&t.scheme==="file"?r="//"+t.authority+t.path:t.path.charCodeAt(0)===47&&(t.path.charCodeAt(1)>=65&&t.path.charCodeAt(1)<=90||t.path.charCodeAt(1)>=97&&t.path.charCodeAt(1)<=122)&&t.path.charCodeAt(2)===58?r=t.path[1].toLowerCase()+t.path.substr(2):r=t.path,up&&(r=r.replace(/\//g,"\\")),r}function v$(t,e){var r=e?Ege:yM,n="",i=t.scheme,o=t.authority,s=t.path,a=t.query,l=t.fragment;if(i&&(n+=i,n+=":"),(o||i==="file")&&(n+=no,n+=no),o){var c=o.indexOf("@");if(c!==-1){var u=o.substr(0,c);o=o.substr(c+1),c=u.indexOf(":"),c===-1?n+=r(u,!1):(n+=r(u.substr(0,c),!1),n+=":",n+=r(u.substr(c+1),!1)),n+="@"}o=o.toLowerCase(),c=o.indexOf(":"),c===-1?n+=r(o,!1):(n+=r(o.substr(0,c),!1),n+=o.substr(c))}if(s){if(s.length>=3&&s.charCodeAt(0)===47&&s.charCodeAt(2)===58){var d=s.charCodeAt(1);d>=65&&d<=90&&(s="/"+String.fromCharCode(d+32)+":"+s.substr(3))}else if(s.length>=2&&s.charCodeAt(1)===58){var d=s.charCodeAt(0);d>=65&&d<=90&&(s=String.fromCharCode(d+32)+":"+s.substr(2))}n+=r(s,!0)}return a&&(n+="?",n+=r(a,!1)),l&&(n+="#",n+=e?l:yM(l,!1)),n}function JX(t){try{return decodeURIComponent(t)}catch{return t.length>3?t.substr(0,3)+JX(t.substr(3)):t}}var vM=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function ym(t){return t.match(vM)?t.replace(vM,function(e){return JX(e)}):t}var Age=(function(){function t(e){try{this.patternRegExp=new RegExp(hge(e)+"$")}catch{this.patternRegExp=null}this.schemas=[]}return t.prototype.addSchema=function(e){this.schemas.push(e)},t.prototype.matchesPattern=function(e){return this.patternRegExp&&this.patternRegExp.test(e)},t.prototype.getSchemas=function(){return this.schemas},t})(),Ige=(function(){function t(e,r,n){this.service=e,this.url=r,this.dependencies={},n&&(this.unresolvedSchema=this.service.promise.resolve(new bu(n)))}return t.prototype.getUnresolvedSchema=function(){return this.unresolvedSchema||(this.unresolvedSchema=this.service.loadSchema(this.url)),this.unresolvedSchema},t.prototype.getResolvedSchema=function(){var e=this;return this.resolvedSchema||(this.resolvedSchema=this.getUnresolvedSchema().then(function(r){return e.service.resolveSchemaContent(r,e.url,e.dependencies)})),this.resolvedSchema},t.prototype.clearSchema=function(){this.resolvedSchema=null,this.unresolvedSchema=null,this.dependencies={}},t})(),bu=(function(){function t(e,r){r===void 0&&(r=[]),this.schema=e,this.errors=r}return t})(),bM=(function(){function t(e,r){r===void 0&&(r=[]),this.schema=e,this.errors=r}return t.prototype.getSection=function(e){return Fn(this.getSectionRecursive(e,this.schema))},t.prototype.getSectionRecursive=function(e,r){if(!r||typeof r=="boolean"||e.length===0)return r;var n=e.shift();if(r.properties&&typeof r.properties[n])return this.getSectionRecursive(e,r.properties[n]);if(r.patternProperties)for(var i=0,o=Object.keys(r.patternProperties);i<o.length;i++){var s=o[i],a=new RegExp(s);if(a.test(n))return this.getSectionRecursive(e,r.patternProperties[s])}else{if(typeof r.additionalProperties=="object")return this.getSectionRecursive(e,r.additionalProperties);if(n.match("[0-9]+")){if(Array.isArray(r.items)){var l=parseInt(n,10);if(!isNaN(l)&&r.items[l])return this.getSectionRecursive(e,r.items[l])}else if(r.items)return this.getSectionRecursive(e,r.items)}}return null},t})(),Tge=(function(){function t(e,r,n){this.contextService=r,this.requestService=e,this.promiseConstructor=n||Promise,this.callOnDispose=[],this.contributionSchemas={},this.contributionAssociations={},this.schemasById={},this.filePatternAssociations=[],this.filePatternAssociationById={},this.registeredSchemasIds={}}return t.prototype.getRegisteredSchemaIds=function(e){return Object.keys(this.registeredSchemasIds).filter(function(r){var n=y$.parse(r).scheme;return n!=="schemaservice"&&(!e||e(n))})},Object.defineProperty(t.prototype,"promise",{get:function(){return this.promiseConstructor},enumerable:!0,configurable:!0}),t.prototype.dispose=function(){for(;this.callOnDispose.length>0;)this.callOnDispose.pop()()},t.prototype.onResourceChange=function(e){var r=this,n=!1;e=this.normalizeId(e);for(var i=[e],o=Object.keys(this.schemasById).map(function(c){return r.schemasById[c]});i.length;)for(var s=i.pop(),a=0;a<o.length;a++){var l=o[a];l&&(l.url===s||l.dependencies[s])&&(l.url!==s&&i.push(l.url),l.clearSchema(),o[a]=void 0,n=!0)}return n},t.prototype.normalizeId=function(e){try{return y$.parse(e).toString()}catch{return e}},t.prototype.setSchemaContributions=function(e){if(e.schemas){var r=e.schemas;for(var n in r){var i=this.normalizeId(n);this.contributionSchemas[i]=this.addSchemaHandle(i,r[n])}}if(e.schemaAssociations){var o=e.schemaAssociations;for(var s in o){var a=o[s];this.contributionAssociations[s]=a;for(var l=this.getOrAddFilePatternAssociation(s),c=0,u=a;c<u.length;c++){var d=u[c],n=this.normalizeId(d);l.addSchema(n)}}}},t.prototype.addSchemaHandle=function(e,r){var n=new Ige(this,e,r);return this.schemasById[e]=n,n},t.prototype.getOrAddSchemaHandle=function(e,r){return this.schemasById[e]||this.addSchemaHandle(e,r)},t.prototype.getOrAddFilePatternAssociation=function(e){var r=this.filePatternAssociationById[e];return r||(r=new Age(e),this.filePatternAssociationById[e]=r,this.filePatternAssociations.push(r)),r},t.prototype.registerExternalSchema=function(e,r,n){r===void 0&&(r=null);var i=this.normalizeId(e);if(this.registeredSchemasIds[i]=!0,r)for(var o=0,s=r;o<s.length;o++){var a=s[o];this.getOrAddFilePatternAssociation(a).addSchema(i)}return n?this.addSchemaHandle(i,n):this.getOrAddSchemaHandle(i)},t.prototype.clearExternalSchemas=function(){this.schemasById={},this.filePatternAssociations=[],this.filePatternAssociationById={},this.registeredSchemasIds={};for(var e in this.contributionSchemas)this.schemasById[e]=this.contributionSchemas[e],this.registeredSchemasIds[e]=!0;for(var r in this.contributionAssociations)for(var n=this.getOrAddFilePatternAssociation(r),i=0,o=this.contributionAssociations[r];i<o.length;i++){var s=o[i],e=this.normalizeId(s);n.addSchema(e)}},t.prototype.getResolvedSchema=function(e){var r=this.normalizeId(e),n=this.schemasById[r];return n?n.getResolvedSchema():this.promise.resolve(null)},t.prototype.loadSchema=function(e){if(!this.requestService){var r="Unable to load schema from '"+e+"'. No schema request service available";return this.promise.resolve(new bu({},[r]))}return this.requestService(e).then(function(n){if(!n){var i="Unable to load schema from '"+e+"': No content.";return new bu({},[i])}var o={},s=[];o=Gpe(n,s);var a=s.length?["Unable to parse content from '"+e+"': Parse error at offset "+s[0].offset]:[];return new bu(o,a)},function(n){var i="Unable to load schema from '"+e+"': "+n.toString();return new bu({},[i])})},t.prototype.resolveSchemaContent=function(e,r,n){var i=this,o=e.errors.slice(0),s=e.schema;if(s.$schema){var a=this.normalizeId(s.$schema);if(a==="http://json-schema.org/draft-03/schema")return this.promise.resolve(new bM({},["Draft-03 schemas are not supported."]));a==="https://json-schema.org/draft/2019-09/schema"&&e.errors.push("Draft 2019-09 schemas are not yet fully supported.")}var l=this.contextService,c=function(h,g){if(!g)return h;var p=h;return g[0]==="/"&&(g=g.substr(1)),g.split("/").some(function(y){return p=p[y],!p}),p},u=function(h,g,p,y){var v=c(g,y);if(v)for(var b in v)v.hasOwnProperty(b)&&!h.hasOwnProperty(b)&&(h[b]=v[b]);else o.push("$ref '"+y+"' in '"+p+"' can not be resolved.")},d=function(h,g,p,y,v){l&&!/^\w+:\/\/.*/.test(g)&&(g=l.resolveRelativePath(g,y)),g=i.normalizeId(g);var b=i.getOrAddSchemaHandle(g);return b.getUnresolvedSchema().then(function(O){if(v[g]=!0,O.errors.length){var S=p?g+"#"+p:g;o.push("Problems loading reference '"+S+"': "+O.errors[0]+".")}return u(h,O.schema,g,p),f(h,O.schema,g,b.dependencies)})},f=function(h,g,p,y){if(!h||typeof h!="object")return Promise.resolve(null);for(var v=[h],b=[],O=[],S=function(){for(var E=[],M=0;M<arguments.length;M++)E[M]=arguments[M];for(var V=0,U=E;V<U.length;V++){var X=U[V];typeof X=="object"&&v.push(X)}},x=function(){for(var E=[],M=0;M<arguments.length;M++)E[M]=arguments[M];for(var V=0,U=E;V<U.length;V++){var X=U[V];if(typeof X=="object")for(var J in X){var te=X[J];typeof te=="object"&&v.push(te)}}},w=function(){for(var E=[],M=0;M<arguments.length;M++)E[M]=arguments[M];for(var V=0,U=E;V<U.length;V++){var X=U[V];if(Array.isArray(X))for(var J=0,te=X;J<te.length;J++){var oe=te[J];typeof oe=="object"&&v.push(oe)}}},P=function(E){for(var M=[];E.$ref;){var V=E.$ref,U=V.split("#",2);if(delete E.$ref,U[0].length>0){O.push(d(E,U[0],U[1],p,y));return}else M.indexOf(V)===-1&&(u(E,g,p,U[1]),M.push(V))}S(E.items,E.additionalProperties,E.not,E.contains,E.propertyNames,E.if,E.then,E.else),x(E.definitions,E.properties,E.patternProperties,E.dependencies),w(E.anyOf,E.allOf,E.oneOf,E.items)};v.length;){var I=v.pop();b.indexOf(I)>=0||(b.push(I),P(I))}return i.promise.all(O)};return f(s,s,r,n).then(function(h){return new bM(s,o)})},t.prototype.getSchemaForResource=function(e,r){if(r&&r.root&&r.root.type==="object"){var n=r.root.properties.filter(function(g){return g.keyNode.value==="$schema"&&g.valueNode&&g.valueNode.type==="string"});if(n.length>0){var i=Ba(n[0].valueNode);if(i&&fge(i,".")&&this.contextService&&(i=this.contextService.resolveRelativePath(i,e)),i){var o=this.normalizeId(i);return this.getOrAddSchemaHandle(o).getResolvedSchema()}}}for(var s=Object.create(null),a=[],l=0,c=this.filePatternAssociations;l<c.length;l++){var u=c[l];if(u.matchesPattern(e))for(var d=0,f=u.getSchemas();d<f.length;d++){var h=f[d];s[h]||(a.push(h),s[h]=!0)}}return a.length>0?this.createCombinedSchema(e,a).getResolvedSchema():this.promise.resolve(null)},t.prototype.createCombinedSchema=function(e,r){if(r.length===1)return this.getOrAddSchemaHandle(r[0]);var n="schemaservice://combinedSchema/"+encodeURIComponent(e),i={allOf:r.map(function(o){return{$ref:o}})};return this.addSchemaHandle(n,i)},t})();var _ge=(function(){function t(e,r){this.jsonSchemaService=e,this.promise=r,this.validationEnabled=!0}return t.prototype.configure=function(e){e&&(this.validationEnabled=e.validate,this.commentSeverity=e.allowComments?void 0:ut.Error)},t.prototype.doValidation=function(e,r,n,i){var o=this;if(!this.validationEnabled)return this.promise.resolve([]);var s=[],a={},l=function(d){var f=d.range.start.line+" "+d.range.start.character+" "+d.message;a[f]||(a[f]=!0,s.push(d))},c=function(d){var f=n?OM(n.trailingCommas):ut.Error,h=n?OM(n.comments):o.commentSeverity;if(d){if(d.errors.length&&r.root){var g=r.root,p=g.type==="object"?g.properties[0]:null;if(p&&p.keyNode.value==="$schema"){var y=p.valueNode||p,v=Tt.create(e.positionAt(y.offset),e.positionAt(y.offset+y.length));l(Vs.create(v,d.errors[0],ut.Warning,$t.SchemaResolveError))}else{var v=Tt.create(e.positionAt(g.offset),e.positionAt(g.offset+1));l(Vs.create(v,d.errors[0],ut.Warning,$t.SchemaResolveError))}}else{var b=r.validate(e,d.schema);b&&b.forEach(l)}KX(d.schema)&&(h=void 0),eZ(d.schema)&&(f=void 0)}for(var O=0,S=r.syntaxErrors;O<S.length;O++){var x=S[O];if(x.code===$t.TrailingComma){if(typeof f!="number")continue;x.severity=f}l(x)}if(typeof h=="number"){var w="Comments are not permitted in JSON.";r.comments.forEach(function(P){l(Vs.create(P,w,h,$t.CommentNotPermitted))})}return s};if(i){var u=i.id||"schemaservice://untitled/"+Rge++;return this.jsonSchemaService.resolveSchemaContent(new bu(i),u,{}).then(function(d){return c(d)})}return this.jsonSchemaService.getSchemaForResource(e.uri,r).then(function(d){return c(d)})},t})(),Rge=0;function KX(t){if(t&&typeof t=="object"){if(Ho(t.allowComments))return t.allowComments;if(t.allOf)for(var e=0,r=t.allOf;e<r.length;e++){var n=r[e],i=KX(n);if(Ho(i))return i}}}function eZ(t){if(t&&typeof t=="object"){if(Ho(t.allowTrailingCommas))return t.allowTrailingCommas;if(Ho(t.allowsTrailingCommas))return t.allowsTrailingCommas;if(t.allOf)for(var e=0,r=t.allOf;e<r.length;e++){var n=r[e],i=eZ(n);if(Ho(i))return i}}}function OM(t){switch(t){case"error":return ut.Error;case"warning":return ut.Warning;case"ignore":return}}var xM=48,jge=57,Dge=65,vm=97,Mge=102;function Sr(t){return t<xM?0:t<=jge?t-xM:(t<vm&&(t+=vm-Dge),t>=vm&&t<=Mge?t-vm+10:0)}function Nge(t){if(t[0]!=="#")return null;switch(t.length){case 4:return{red:Sr(t.charCodeAt(1))*17/255,green:Sr(t.charCodeAt(2))*17/255,blue:Sr(t.charCodeAt(3))*17/255,alpha:1};case 5:return{red:Sr(t.charCodeAt(1))*17/255,green:Sr(t.charCodeAt(2))*17/255,blue:Sr(t.charCodeAt(3))*17/255,alpha:Sr(t.charCodeAt(4))*17/255};case 7:return{red:(Sr(t.charCodeAt(1))*16+Sr(t.charCodeAt(2)))/255,green:(Sr(t.charCodeAt(3))*16+Sr(t.charCodeAt(4)))/255,blue:(Sr(t.charCodeAt(5))*16+Sr(t.charCodeAt(6)))/255,alpha:1};case 9:return{red:(Sr(t.charCodeAt(1))*16+Sr(t.charCodeAt(2)))/255,green:(Sr(t.charCodeAt(3))*16+Sr(t.charCodeAt(4)))/255,blue:(Sr(t.charCodeAt(5))*16+Sr(t.charCodeAt(6)))/255,alpha:(Sr(t.charCodeAt(7))*16+Sr(t.charCodeAt(8)))/255}}return null}var Lge=(function(){function t(e){this.schemaService=e}return t.prototype.findDocumentSymbols=function(e,r,n){var i=this;n===void 0&&(n={resultLimit:Number.MAX_VALUE});var o=r.root;if(!o)return null;var s=n.resultLimit,a=e.uri;if((a==="vscode://defaultsettings/keybindings.json"||m$(a.toLowerCase(),"/user/keybindings.json"))&&o.type==="array"){for(var l=[],c=0,u=o.items;c<u.length;c++){var d=u[c];if(d.type==="object")for(var f=0,h=d.properties;f<h.length;f++){var g=h[f];if(g.keyNode.value==="key"&&g.valueNode){var p=fd.create(e.uri,ha(e,d));if(l.push({name:Ba(g.valueNode),kind:Lo.Function,location:p}),s--,s<=0)return n&&n.onResultLimitExceeded&&n.onResultLimitExceeded(a),l}}}return l}var y=function(b,O,S){return s>=0&&(O.type==="array"?O.items.forEach(function(x){return y(b,x,S)}):O.type==="object"&&O.properties.forEach(function(x){if(s>=0){var w=x.valueNode;if(w){s--;var P=fd.create(e.uri,ha(e,x)),I=S?S+"."+x.keyNode.value:x.keyNode.value;b.push({name:i.getKeyLabel(x),kind:i.getSymbolKind(w.type),location:P,containerName:S}),y(b,w,I)}}})),b},v=y([],o,void 0);return s<0&&(v.pop(),n&&n.onResultLimitExceeded&&n.onResultLimitExceeded(a)),v},t.prototype.findDocumentSymbols2=function(e,r,n){var i=this;n===void 0&&(n={resultLimit:Number.MAX_VALUE});var o=r.root;if(!o)return null;var s=n.resultLimit,a=e.uri;if((a==="vscode://defaultsettings/keybindings.json"||m$(a.toLowerCase(),"/user/keybindings.json"))&&o.type==="array"){for(var l=[],c=0,u=o.items;c<u.length;c++){var d=u[c];if(d.type==="object")for(var f=0,h=d.properties;f<h.length;f++){var g=h[f];if(g.keyNode.value==="key"&&g.valueNode){var p=ha(e,d),y=ha(e,g.keyNode);if(l.push({name:Ba(g.valueNode),kind:Lo.Function,range:p,selectionRange:y}),s--,s<=0)return n&&n.onResultLimitExceeded&&n.onResultLimitExceeded(a),l}}}return l}var v=function(O,S){return s>=0&&(S.type==="array"?S.items.forEach(function(x,w){if(x&&s>=0){s--;var P=ha(e,x),I=P,E=String(w),M=v([],x);O.push({name:E,kind:i.getSymbolKind(x.type),range:P,selectionRange:I,children:M})}}):S.type==="object"&&S.properties.forEach(function(x){var w=x.valueNode;if(w&&s>=0){s--;var P=ha(e,x),I=ha(e,x.keyNode),E=v([],w);O.push({name:i.getKeyLabel(x),kind:i.getSymbolKind(w.type),range:P,selectionRange:I,children:E})}})),O},b=v([],o);return s<0&&(b.pop(),n&&n.onResultLimitExceeded&&n.onResultLimitExceeded(a)),b},t.prototype.getSymbolKind=function(e){switch(e){case"object":return Lo.Module;case"string":return Lo.String;case"number":return Lo.Number;case"array":return Lo.Array;case"boolean":return Lo.Boolean;default:return Lo.Variable}},t.prototype.getKeyLabel=function(e){var r=e.keyNode.value;return r&&(r=r.replace(/[\n]/g,"↵")),r&&r.trim()?r:'"'+r+'"'},t.prototype.findDocumentColors=function(e,r,n){return this.schemaService.getSchemaForResource(e.uri,r).then(function(i){var o=[];if(i)for(var s=n&&typeof n.resultLimit=="number"?n.resultLimit:Number.MAX_VALUE,a=r.getMatchingSchemas(i.schema),l={},c=0,u=a;c<u.length;c++){var d=u[c];if(!d.inverted&&d.schema&&(d.schema.format==="color"||d.schema.format==="color-hex")&&d.node&&d.node.type==="string"){var f=String(d.node.offset);if(!l[f]){var h=Nge(Ba(d.node));if(h){var g=ha(e,d.node);o.push({color:h,range:g})}if(l[f]=!0,s--,s<=0)return n&&n.onResultLimitExceeded&&n.onResultLimitExceeded(e.uri),o}}}return o})},t.prototype.getColorPresentations=function(e,r,n,i){var o=[],s=Math.round(n.red*255),a=Math.round(n.green*255),l=Math.round(n.blue*255);function c(d){var f=d.toString(16);return f.length!==2?"0"+f:f}var u;return n.alpha===1?u="#"+c(s)+c(a)+c(l):u="#"+c(s)+c(a)+c(l)+c(Math.round(n.alpha*255)),o.push({label:u,textEdit:Ys.replace(i,JSON.stringify(u))}),o},t})();function ha(t,e){return Tt.create(t.positionAt(e.offset),t.positionAt(e.offset+e.length))}var Qge={schemaAssociations:{},schemas:{}};function Vge(t,e){var r=[],n=[],i=[],o=-1,s=Mu(t.getText(),!1),a=s.scan();function l(M){r.push(M),n.push(i.length)}for(;a!==17;){switch(a){case 1:case 3:{var c=t.positionAt(s.getTokenOffset()).line,u={startLine:c,endLine:c,kind:a===1?"object":"array"};i.push(u);break}case 2:case 4:{var d=a===2?"object":"array";if(i.length>0&&i[i.length-1].kind===d){var u=i.pop(),f=t.positionAt(s.getTokenOffset()).line;u&&f>u.startLine+1&&o!==u.startLine&&(u.endLine=f-1,l(u),o=u.startLine)}break}case 13:{var c=t.positionAt(s.getTokenOffset()).line,h=t.positionAt(s.getTokenOffset()+s.getTokenLength()).line;s.getTokenError()===1&&c+1<t.lineCount?s.setPosition(t.offsetAt(Mi.create(c+1,0))):c<h&&(l({startLine:c,endLine:h,kind:Ah.Comment}),o=c);break}case 12:{var g=t.getText().substr(s.getTokenOffset(),s.getTokenLength()),p=g.match(/^\/\/\s*#(region\b)|(endregion\b)/);if(p){var f=t.positionAt(s.getTokenOffset()).line;if(p[1]){var u={startLine:f,endLine:f,kind:Ah.Region};i.push(u)}else{for(var y=i.length-1;y>=0&&i[y].kind!==Ah.Region;)y--;if(y>=0){var u=i[y];i.length=y,f>u.startLine&&o!==u.startLine&&(u.endLine=f,l(u),o=u.startLine)}}}break}}a=s.scan()}var v=e&&e.rangeLimit;if(typeof v!="number"||r.length<=v)return r;e&&e.onRangeLimitExceeded&&e.onRangeLimitExceeded(t.uri);for(var b=[],O=0,S=n;O<S.length;O++){var x=S[O];x<30&&(b[x]=(b[x]||0)+1)}for(var w=0,P=0,y=0;y<b.length;y++){var I=b[y];if(I){if(I+w>v){P=y;break}w+=I}}for(var E=[],y=0;y<r.length;y++){var x=n[y];typeof x=="number"&&(x<P||x===P&&w++<v)&&E.push(r[y])}return E}function zge(t,e,r){function n(a){for(var l=t.offsetAt(a),c=r.getNodeFromOffset(l,!0),u=[];c;){switch(c.type){case"string":case"object":case"array":var d=c.offset+1,f=c.offset+c.length-1;d<f&&l>=d&&l<=f&&u.push(i(d,f)),u.push(i(c.offset,c.offset+c.length));break;case"number":case"boolean":case"null":case"property":u.push(i(c.offset,c.offset+c.length));break}if(c.type==="property"||c.parent&&c.parent.type==="array"){var h=s(c.offset+c.length,5);h!==-1&&u.push(i(c.offset,h))}c=c.parent}for(var g=void 0,p=u.length-1;p>=0;p--)g=jO.create(u[p],g);return g||(g=jO.create(Tt.create(a,a))),g}function i(a,l){return Tt.create(t.positionAt(a),t.positionAt(l))}var o=Mu(t.getText(),!0);function s(a,l){o.setPosition(a);var c=o.scan();return c===l?o.getTokenOffset()+o.getTokenLength():-1}return e.map(n)}function Bge(t){var e=t.promiseConstructor||Promise,r=new Tge(t.schemaRequestService,t.workspaceContext,e);r.setSchemaContributions(Qge);var n=new mge(r,t.contributions,e,t.clientCapabilities),i=new yge(r,t.contributions,e),o=new Lge(r),s=new _ge(r,e);return{configure:function(a){r.clearExternalSchemas(),a.schemas&&a.schemas.forEach(function(l){r.registerExternalSchema(l.uri,l.fileMatch,l.schema)}),s.configure(a)},resetSchema:function(a){return r.onResourceChange(a)},doValidation:s.doValidation.bind(s),parseJSONDocument:function(a){return dge(a,{collectComments:!0})},newJSONDocument:function(a,l){return uge(a,l)},doComplete:n.doComplete.bind(n),findDocumentSymbols:o.findDocumentSymbols.bind(o),findDocumentSymbols2:o.findDocumentSymbols2.bind(o),findColorSymbols:function(a,l){return o.findDocumentColors(a,l).then(function(c){return c.map(function(u){return u.range})})},findDocumentColors:o.findDocumentColors.bind(o),getColorPresentations:o.getColorPresentations.bind(o),doHover:i.doHover.bind(i),getFoldingRanges:Vge,getSelectionRanges:zge,format:function(a,l,c){var u=void 0;if(l){var d=a.offsetAt(l.start),f=a.offsetAt(l.end)-d;u={offset:d,length:f}}var h={tabSize:c?c.tabSize:4,insertSpaces:c?c.insertSpaces:!0,eol:`
|
|
213
|
-
`};return Kpe(a.getText(),u,h).map(function(g){return Ys.replace(Tt.create(a.positionAt(g.offset),a.positionAt(g.offset+g.length)),g.content)})}}}function qge(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function SM(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function wM(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?SM(Object(r),!0).forEach(function(n){qge(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):SM(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Kr(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var CM=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})(),o1=function(){return Math.random().toString(36).substring(7).split("").join(".")},qa={INIT:"@@redux/INIT"+o1(),REPLACE:"@@redux/REPLACE"+o1(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+o1()}};function tZ(t){if(typeof t!="object"||t===null)return!1;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function Fge(t){if(t===void 0)return"undefined";if(t===null)return"null";var e=typeof t;switch(e){case"boolean":case"string":case"number":case"symbol":case"function":return e}if(Array.isArray(t))return"array";if(Xge(t))return"date";if(Uge(t))return"error";var r=Wge(t);switch(r){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return r}return e.slice(8,-1).toLowerCase().replace(/\s/g,"")}function Wge(t){return typeof t.constructor=="function"?t.constructor.name:null}function Uge(t){return t instanceof Error||typeof t.message=="string"&&t.constructor&&typeof t.constructor.stackTraceLimit=="number"}function Xge(t){return t instanceof Date?!0:typeof t.toDateString=="function"&&typeof t.getDate=="function"&&typeof t.setDate=="function"}function wa(t){var e=typeof t;return process.env.NODE_ENV!=="production"&&(e=Fge(t)),e}function Px(t,e,r){var n;if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?Kr(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(process.env.NODE_ENV==="production"?Kr(1):"Expected the enhancer to be a function. Instead, received: '"+wa(r)+"'");return r(Px)(t,e)}if(typeof t!="function")throw new Error(process.env.NODE_ENV==="production"?Kr(2):"Expected the root reducer to be a function. Instead, received: '"+wa(t)+"'");var i=t,o=e,s=[],a=s,l=!1;function c(){a===s&&(a=s.slice())}function u(){if(l)throw new Error(process.env.NODE_ENV==="production"?Kr(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return o}function d(p){if(typeof p!="function")throw new Error(process.env.NODE_ENV==="production"?Kr(4):"Expected the listener to be a function. Instead, received: '"+wa(p)+"'");if(l)throw new Error(process.env.NODE_ENV==="production"?Kr(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");var y=!0;return c(),a.push(p),function(){if(y){if(l)throw new Error(process.env.NODE_ENV==="production"?Kr(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");y=!1,c();var b=a.indexOf(p);a.splice(b,1),s=null}}}function f(p){if(!tZ(p))throw new Error(process.env.NODE_ENV==="production"?Kr(7):"Actions must be plain objects. Instead, the actual type was: '"+wa(p)+"'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.");if(typeof p.type>"u")throw new Error(process.env.NODE_ENV==="production"?Kr(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(l)throw new Error(process.env.NODE_ENV==="production"?Kr(9):"Reducers may not dispatch actions.");try{l=!0,o=i(o,p)}finally{l=!1}for(var y=s=a,v=0;v<y.length;v++){var b=y[v];b()}return p}function h(p){if(typeof p!="function")throw new Error(process.env.NODE_ENV==="production"?Kr(10):"Expected the nextReducer to be a function. Instead, received: '"+wa(p));i=p,f({type:qa.REPLACE})}function g(){var p,y=d;return p={subscribe:function(b){if(typeof b!="object"||b===null)throw new Error(process.env.NODE_ENV==="production"?Kr(11):"Expected the observer to be an object. Instead, received: '"+wa(b)+"'");function O(){b.next&&b.next(u())}O();var S=y(O);return{unsubscribe:S}}},p[CM]=function(){return this},p}return f({type:qa.INIT}),n={dispatch:f,subscribe:d,getState:u,replaceReducer:h},n[CM]=g,n}var Zge=Px;function b$(t){typeof console<"u"&&typeof console.error=="function"&&console.error(t);try{throw new Error(t)}catch{}}function Gge(t,e,r,n){var i=Object.keys(e),o=r&&r.type===qa.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(i.length===0)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!tZ(t))return"The "+o+' has unexpected type of "'+wa(t)+'". Expected argument to be an object with the following '+('keys: "'+i.join('", "')+'"');var s=Object.keys(t).filter(function(a){return!e.hasOwnProperty(a)&&!n[a]});if(s.forEach(function(a){n[a]=!0}),!(r&&r.type===qa.REPLACE)&&s.length>0)return"Unexpected "+(s.length>1?"keys":"key")+" "+('"'+s.join('", "')+'" found in '+o+". ")+"Expected to find one of the known reducer keys instead: "+('"'+i.join('", "')+'". Unexpected keys will be ignored.')}function Yge(t){Object.keys(t).forEach(function(e){var r=t[e],n=r(void 0,{type:qa.INIT});if(typeof n>"u")throw new Error(process.env.NODE_ENV==="production"?Kr(12):'The slice reducer for key "'+e+`" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`);if(typeof r(void 0,{type:qa.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(process.env.NODE_ENV==="production"?Kr(13):'The slice reducer for key "'+e+'" returned undefined when probed with a random type. '+("Don't try to handle '"+qa.INIT+`' or other actions in "redux/*" `)+"namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.")})}function Hge(t){for(var e=Object.keys(t),r={},n=0;n<e.length;n++){var i=e[n];process.env.NODE_ENV!=="production"&&typeof t[i]>"u"&&b$('No reducer provided for key "'+i+'"'),typeof t[i]=="function"&&(r[i]=t[i])}var o=Object.keys(r),s;process.env.NODE_ENV!=="production"&&(s={});var a;try{Yge(r)}catch(l){a=l}return function(c,u){if(c===void 0&&(c={}),a)throw a;if(process.env.NODE_ENV!=="production"){var d=Gge(c,r,u,s);d&&b$(d)}for(var f=!1,h={},g=0;g<o.length;g++){var p=o[g],y=r[p],v=c[p],b=y(v,u);if(typeof b>"u"){var O=u&&u.type;throw new Error(process.env.NODE_ENV==="production"?Kr(14):"When called with an action of type "+(O?'"'+String(O)+'"':"(unknown type)")+', the slice reducer for key "'+p+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.')}h[p]=b,f=f||b!==v}return f=f||o.length!==Object.keys(c).length,f?h:c}}function PM(t,e){return function(){return e(t.apply(this,arguments))}}function Jge(t,e){if(typeof t=="function")return PM(t,e);if(typeof t!="object"||t===null)throw new Error(process.env.NODE_ENV==="production"?Kr(16):"bindActionCreators expected an object or a function, but instead received: '"+wa(t)+`'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?`);var r={};for(var n in t){var i=t[n];typeof i=="function"&&(r[n]=PM(i,e))}return r}function rZ(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return e.length===0?function(n){return n}:e.length===1?e[0]:e.reduce(function(n,i){return function(){return n(i.apply(void 0,arguments))}})}function Kge(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(n){return function(){var i=n.apply(void 0,arguments),o=function(){throw new Error(process.env.NODE_ENV==="production"?Kr(15):"Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},s={getState:i.getState,dispatch:function(){return o.apply(void 0,arguments)}},a=e.map(function(l){return l(s)});return o=rZ.apply(void 0,a)(i.dispatch),wM(wM({},i),{},{dispatch:o})}}}function kM(){}process.env.NODE_ENV!=="production"&&typeof kM.name=="string"&&kM.name!=="isCrushed"&&b$('You are currently using minified code outside of NODE_ENV === "production". This means that you are running a slower development build of Redux. You can use loose-envify (https://github.com/zertosh/loose-envify) for browserify or setting mode to production in webpack (https://webpack.js.org/concepts/mode/) to ensure you have the correct code for your production build.');var eme=Object.freeze({__proto__:null,__DO_NOT_USE__ActionTypes:qa,applyMiddleware:Kge,bindActionCreators:Jge,combineReducers:Hge,compose:rZ,createStore:Px,legacy_createStore:Zge});function tme(t){var e=t.default;if(typeof e=="function"){var r=function(){return e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(n){var i=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return t[n]}})}),r}var rme=tme(eme);rme.compose;var nme=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function ime(t,e,r){var n=!1,i=!1,o=Px(function(a,l){if(!i){var c=function(y){return Array.isArray(y)&&y.findIndex(function(v){return typeof v!="string"&&typeof v!="number"})===-1};if(l.type.startsWith("SET")){var u=function(y){try{n=!0,"value"in l?y.set(l.value):y.set(ot)}finally{n=!1}};if(l.path){if(c(l.path)){l.path.length===0&&u(t);for(var d=t,f=!0,h=0,g=l.path;h<g.length;h++){var p=g[h];d[p]?d=d[p]:f=!1}f&&u(d)}}else u(t)}else l.type==="BREAKPOINT"&&r()}return t.promised||t.error?ot:t.get({noproxy:!0})},nme({name:"".concat(window.location.hostname,": ").concat(e),trace:!0,traceLimit:16,autoPause:!0,shouldHotReload:!1,features:{persist:!0,pause:!0,lock:!1,export:"custom",import:"custom",jump:!1,skip:!1,reorder:!1,dispatch:!0,test:!1}})),s=function(a,l){if(n)l&&l();else try{i=!0,o.dispatch(a)}finally{i=!1}};return s}function ome(t){return function(){var e,r,n=!1;return{onInit:function(i,o){if(!(typeof window>"u"||!("__REDUX_DEVTOOLS_EXTENSION__"in window))){if((t==null?void 0:t.key)===void 0){if(o.identifier===void 0)throw Error("State is missing Identifiable extension or Devtools key option");e=o.identifier(i)}else e=t.key;r=ime(i,e,function(){n=!n}),i.promise||r==null||r({type:"CREATE",state:i.get({noproxy:!0,stealth:!0})})}},onSet:function(i,o){if(r==null||r({type:"SET [".concat(i.path.join("/"),"]"),state:i.get({noproxy:!0,stealth:!0}),descriptor:o}),n)debugger},onDestroy:function(){r==null||r({type:"DESTROY"})}}}}const kx="default",nZ=[{name:kx,inputs:[],servers:[],state:xt.Normal}],O$={activeTabIdx:0,tabs:[]};var Qo=(t=>(t.Idle="idle",t.Loading="loading",t.Success="success",t.Error="error",t))(Qo||{});/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function iZ(t){return typeof t>"u"||t===null}function sme(t){return typeof t=="object"&&t!==null}function ame(t){return Array.isArray(t)?t:iZ(t)?[]:[t]}function lme(t,e){var r,n,i,o;if(e)for(o=Object.keys(e),r=0,n=o.length;r<n;r+=1)i=o[r],t[i]=e[i];return t}function cme(t,e){var r="",n;for(n=0;n<e;n+=1)r+=t;return r}function ume(t){return t===0&&Number.NEGATIVE_INFINITY===1/t}var dme=iZ,fme=sme,hme=ame,pme=cme,gme=ume,mme=lme,Lr={isNothing:dme,isObject:fme,toArray:hme,repeat:pme,isNegativeZero:gme,extend:mme};function oZ(t,e){var r="",n=t.reason||"(unknown reason)";return t.mark?(t.mark.name&&(r+='in "'+t.mark.name+'" '),r+="("+(t.mark.line+1)+":"+(t.mark.column+1)+")",!e&&t.mark.snippet&&(r+=`
|
|
212
|
+
$3`);return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}}function vge(t){return t.indexOf("`")!==-1?"`` "+t+" ``":t}var bge=(function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)i.hasOwnProperty(o)&&(n[o]=i[o])},t(e,r)};return function(e,r){t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),xr,up;if(typeof process=="object")up=process.platform==="win32";else if(typeof navigator=="object"){var Oge=navigator.userAgent;up=Oge.indexOf("Windows")>=0}var xge=/^\w[\w\d+.-]*$/,Sge=/^\//,wge=/^\/\//;function Cge(t,e){if(!t.scheme&&e)throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'+t.authority+'", path: "'+t.path+'", query: "'+t.query+'", fragment: "'+t.fragment+'"}');if(t.scheme&&!xge.test(t.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(t.path){if(t.authority){if(!Sge.test(t.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(wge.test(t.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function Pge(t,e){return!t&&!e?"file":t}function kge(t,e){switch(t){case"https":case"http":case"file":e?e[0]!==no&&(e=no+e):e=no;break}return e}var Wt="",no="/",$ge=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,y$=(function(){function t(e,r,n,i,o,s){s===void 0&&(s=!1),typeof e=="object"?(this.scheme=e.scheme||Wt,this.authority=e.authority||Wt,this.path=e.path||Wt,this.query=e.query||Wt,this.fragment=e.fragment||Wt):(this.scheme=Pge(e,s),this.authority=r||Wt,this.path=kge(this.scheme,n||Wt),this.query=i||Wt,this.fragment=o||Wt,Cge(this,s))}return t.isUri=function(e){return e instanceof t?!0:e?typeof e.authority=="string"&&typeof e.fragment=="string"&&typeof e.path=="string"&&typeof e.query=="string"&&typeof e.scheme=="string"&&typeof e.fsPath=="function"&&typeof e.with=="function"&&typeof e.toString=="function":!1},Object.defineProperty(t.prototype,"fsPath",{get:function(){return HX(this)},enumerable:!0,configurable:!0}),t.prototype.with=function(e){if(!e)return this;var r=e.scheme,n=e.authority,i=e.path,o=e.query,s=e.fragment;return r===void 0?r=this.scheme:r===null&&(r=Wt),n===void 0?n=this.authority:n===null&&(n=Wt),i===void 0?i=this.path:i===null&&(i=Wt),o===void 0?o=this.query:o===null&&(o=Wt),s===void 0?s=this.fragment:s===null&&(s=Wt),r===this.scheme&&n===this.authority&&i===this.path&&o===this.query&&s===this.fragment?this:new Qc(r,n,i,o,s)},t.parse=function(e,r){r===void 0&&(r=!1);var n=$ge.exec(e);return n?new Qc(n[2]||Wt,ym(n[4]||Wt),ym(n[5]||Wt),ym(n[7]||Wt),ym(n[9]||Wt),r):new Qc(Wt,Wt,Wt,Wt,Wt)},t.file=function(e){var r=Wt;if(up&&(e=e.replace(/\\/g,no)),e[0]===no&&e[1]===no){var n=e.indexOf(no,2);n===-1?(r=e.substring(2),e=no):(r=e.substring(2,n),e=e.substring(n)||no)}return new Qc("file",r,e,Wt,Wt)},t.from=function(e){return new Qc(e.scheme,e.authority,e.path,e.query,e.fragment)},t.prototype.toString=function(e){return e===void 0&&(e=!1),v$(this,e)},t.prototype.toJSON=function(){return this},t.revive=function(e){if(e){if(e instanceof t)return e;var r=new Qc(e);return r._formatted=e.external,r._fsPath=e._sep===GX?e.fsPath:null,r}else return e},t})(),GX=up?1:void 0,Qc=(function(t){bge(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r._formatted=null,r._fsPath=null,r}return Object.defineProperty(e.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=HX(this)),this._fsPath},enumerable:!0,configurable:!0}),e.prototype.toString=function(r){return r===void 0&&(r=!1),r?v$(this,!0):(this._formatted||(this._formatted=v$(this,!1)),this._formatted)},e.prototype.toJSON=function(){var r={$mid:1};return this._fsPath&&(r.fsPath=this._fsPath,r._sep=GX),this._formatted&&(r.external=this._formatted),this.path&&(r.path=this.path),this.scheme&&(r.scheme=this.scheme),this.authority&&(r.authority=this.authority),this.query&&(r.query=this.query),this.fragment&&(r.fragment=this.fragment),r},e})(y$),YX=(xr={},xr[58]="%3A",xr[47]="%2F",xr[63]="%3F",xr[35]="%23",xr[91]="%5B",xr[93]="%5D",xr[64]="%40",xr[33]="%21",xr[36]="%24",xr[38]="%26",xr[39]="%27",xr[40]="%28",xr[41]="%29",xr[42]="%2A",xr[43]="%2B",xr[44]="%2C",xr[59]="%3B",xr[61]="%3D",xr[32]="%20",xr);function yM(t,e){for(var r=void 0,n=-1,i=0;i<t.length;i++){var o=t.charCodeAt(i);if(o>=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||o===45||o===46||o===95||o===126||e&&o===47)n!==-1&&(r+=encodeURIComponent(t.substring(n,i)),n=-1),r!==void 0&&(r+=t.charAt(i));else{r===void 0&&(r=t.substr(0,i));var s=YX[o];s!==void 0?(n!==-1&&(r+=encodeURIComponent(t.substring(n,i)),n=-1),r+=s):n===-1&&(n=i)}}return n!==-1&&(r+=encodeURIComponent(t.substring(n))),r!==void 0?r:t}function Ege(t){for(var e=void 0,r=0;r<t.length;r++){var n=t.charCodeAt(r);n===35||n===63?(e===void 0&&(e=t.substr(0,r)),e+=YX[n]):e!==void 0&&(e+=t[r])}return e!==void 0?e:t}function HX(t,e){var r;return t.authority&&t.path.length>1&&t.scheme==="file"?r="//"+t.authority+t.path:t.path.charCodeAt(0)===47&&(t.path.charCodeAt(1)>=65&&t.path.charCodeAt(1)<=90||t.path.charCodeAt(1)>=97&&t.path.charCodeAt(1)<=122)&&t.path.charCodeAt(2)===58?r=t.path[1].toLowerCase()+t.path.substr(2):r=t.path,up&&(r=r.replace(/\//g,"\\")),r}function v$(t,e){var r=e?Ege:yM,n="",i=t.scheme,o=t.authority,s=t.path,a=t.query,l=t.fragment;if(i&&(n+=i,n+=":"),(o||i==="file")&&(n+=no,n+=no),o){var c=o.indexOf("@");if(c!==-1){var u=o.substr(0,c);o=o.substr(c+1),c=u.indexOf(":"),c===-1?n+=r(u,!1):(n+=r(u.substr(0,c),!1),n+=":",n+=r(u.substr(c+1),!1)),n+="@"}o=o.toLowerCase(),c=o.indexOf(":"),c===-1?n+=r(o,!1):(n+=r(o.substr(0,c),!1),n+=o.substr(c))}if(s){if(s.length>=3&&s.charCodeAt(0)===47&&s.charCodeAt(2)===58){var d=s.charCodeAt(1);d>=65&&d<=90&&(s="/"+String.fromCharCode(d+32)+":"+s.substr(3))}else if(s.length>=2&&s.charCodeAt(1)===58){var d=s.charCodeAt(0);d>=65&&d<=90&&(s=String.fromCharCode(d+32)+":"+s.substr(2))}n+=r(s,!0)}return a&&(n+="?",n+=r(a,!1)),l&&(n+="#",n+=e?l:yM(l,!1)),n}function JX(t){try{return decodeURIComponent(t)}catch{return t.length>3?t.substr(0,3)+JX(t.substr(3)):t}}var vM=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function ym(t){return t.match(vM)?t.replace(vM,function(e){return JX(e)}):t}var Age=(function(){function t(e){try{this.patternRegExp=new RegExp(hge(e)+"$")}catch{this.patternRegExp=null}this.schemas=[]}return t.prototype.addSchema=function(e){this.schemas.push(e)},t.prototype.matchesPattern=function(e){return this.patternRegExp&&this.patternRegExp.test(e)},t.prototype.getSchemas=function(){return this.schemas},t})(),Ige=(function(){function t(e,r,n){this.service=e,this.url=r,this.dependencies={},n&&(this.unresolvedSchema=this.service.promise.resolve(new bu(n)))}return t.prototype.getUnresolvedSchema=function(){return this.unresolvedSchema||(this.unresolvedSchema=this.service.loadSchema(this.url)),this.unresolvedSchema},t.prototype.getResolvedSchema=function(){var e=this;return this.resolvedSchema||(this.resolvedSchema=this.getUnresolvedSchema().then(function(r){return e.service.resolveSchemaContent(r,e.url,e.dependencies)})),this.resolvedSchema},t.prototype.clearSchema=function(){this.resolvedSchema=null,this.unresolvedSchema=null,this.dependencies={}},t})(),bu=(function(){function t(e,r){r===void 0&&(r=[]),this.schema=e,this.errors=r}return t})(),bM=(function(){function t(e,r){r===void 0&&(r=[]),this.schema=e,this.errors=r}return t.prototype.getSection=function(e){return Fn(this.getSectionRecursive(e,this.schema))},t.prototype.getSectionRecursive=function(e,r){if(!r||typeof r=="boolean"||e.length===0)return r;var n=e.shift();if(r.properties&&typeof r.properties[n])return this.getSectionRecursive(e,r.properties[n]);if(r.patternProperties)for(var i=0,o=Object.keys(r.patternProperties);i<o.length;i++){var s=o[i],a=new RegExp(s);if(a.test(n))return this.getSectionRecursive(e,r.patternProperties[s])}else{if(typeof r.additionalProperties=="object")return this.getSectionRecursive(e,r.additionalProperties);if(n.match("[0-9]+")){if(Array.isArray(r.items)){var l=parseInt(n,10);if(!isNaN(l)&&r.items[l])return this.getSectionRecursive(e,r.items[l])}else if(r.items)return this.getSectionRecursive(e,r.items)}}return null},t})(),Tge=(function(){function t(e,r,n){this.contextService=r,this.requestService=e,this.promiseConstructor=n||Promise,this.callOnDispose=[],this.contributionSchemas={},this.contributionAssociations={},this.schemasById={},this.filePatternAssociations=[],this.filePatternAssociationById={},this.registeredSchemasIds={}}return t.prototype.getRegisteredSchemaIds=function(e){return Object.keys(this.registeredSchemasIds).filter(function(r){var n=y$.parse(r).scheme;return n!=="schemaservice"&&(!e||e(n))})},Object.defineProperty(t.prototype,"promise",{get:function(){return this.promiseConstructor},enumerable:!0,configurable:!0}),t.prototype.dispose=function(){for(;this.callOnDispose.length>0;)this.callOnDispose.pop()()},t.prototype.onResourceChange=function(e){var r=this,n=!1;e=this.normalizeId(e);for(var i=[e],o=Object.keys(this.schemasById).map(function(c){return r.schemasById[c]});i.length;)for(var s=i.pop(),a=0;a<o.length;a++){var l=o[a];l&&(l.url===s||l.dependencies[s])&&(l.url!==s&&i.push(l.url),l.clearSchema(),o[a]=void 0,n=!0)}return n},t.prototype.normalizeId=function(e){try{return y$.parse(e).toString()}catch{return e}},t.prototype.setSchemaContributions=function(e){if(e.schemas){var r=e.schemas;for(var n in r){var i=this.normalizeId(n);this.contributionSchemas[i]=this.addSchemaHandle(i,r[n])}}if(e.schemaAssociations){var o=e.schemaAssociations;for(var s in o){var a=o[s];this.contributionAssociations[s]=a;for(var l=this.getOrAddFilePatternAssociation(s),c=0,u=a;c<u.length;c++){var d=u[c],n=this.normalizeId(d);l.addSchema(n)}}}},t.prototype.addSchemaHandle=function(e,r){var n=new Ige(this,e,r);return this.schemasById[e]=n,n},t.prototype.getOrAddSchemaHandle=function(e,r){return this.schemasById[e]||this.addSchemaHandle(e,r)},t.prototype.getOrAddFilePatternAssociation=function(e){var r=this.filePatternAssociationById[e];return r||(r=new Age(e),this.filePatternAssociationById[e]=r,this.filePatternAssociations.push(r)),r},t.prototype.registerExternalSchema=function(e,r,n){r===void 0&&(r=null);var i=this.normalizeId(e);if(this.registeredSchemasIds[i]=!0,r)for(var o=0,s=r;o<s.length;o++){var a=s[o];this.getOrAddFilePatternAssociation(a).addSchema(i)}return n?this.addSchemaHandle(i,n):this.getOrAddSchemaHandle(i)},t.prototype.clearExternalSchemas=function(){this.schemasById={},this.filePatternAssociations=[],this.filePatternAssociationById={},this.registeredSchemasIds={};for(var e in this.contributionSchemas)this.schemasById[e]=this.contributionSchemas[e],this.registeredSchemasIds[e]=!0;for(var r in this.contributionAssociations)for(var n=this.getOrAddFilePatternAssociation(r),i=0,o=this.contributionAssociations[r];i<o.length;i++){var s=o[i],e=this.normalizeId(s);n.addSchema(e)}},t.prototype.getResolvedSchema=function(e){var r=this.normalizeId(e),n=this.schemasById[r];return n?n.getResolvedSchema():this.promise.resolve(null)},t.prototype.loadSchema=function(e){if(!this.requestService){var r="Unable to load schema from '"+e+"'. No schema request service available";return this.promise.resolve(new bu({},[r]))}return this.requestService(e).then(function(n){if(!n){var i="Unable to load schema from '"+e+"': No content.";return new bu({},[i])}var o={},s=[];o=Gpe(n,s);var a=s.length?["Unable to parse content from '"+e+"': Parse error at offset "+s[0].offset]:[];return new bu(o,a)},function(n){var i="Unable to load schema from '"+e+"': "+n.toString();return new bu({},[i])})},t.prototype.resolveSchemaContent=function(e,r,n){var i=this,o=e.errors.slice(0),s=e.schema;if(s.$schema){var a=this.normalizeId(s.$schema);if(a==="http://json-schema.org/draft-03/schema")return this.promise.resolve(new bM({},["Draft-03 schemas are not supported."]));a==="https://json-schema.org/draft/2019-09/schema"&&e.errors.push("Draft 2019-09 schemas are not yet fully supported.")}var l=this.contextService,c=function(h,g){if(!g)return h;var p=h;return g[0]==="/"&&(g=g.substr(1)),g.split("/").some(function(y){return p=p[y],!p}),p},u=function(h,g,p,y){var v=c(g,y);if(v)for(var b in v)v.hasOwnProperty(b)&&!h.hasOwnProperty(b)&&(h[b]=v[b]);else o.push("$ref '"+y+"' in '"+p+"' can not be resolved.")},d=function(h,g,p,y,v){l&&!/^\w+:\/\/.*/.test(g)&&(g=l.resolveRelativePath(g,y)),g=i.normalizeId(g);var b=i.getOrAddSchemaHandle(g);return b.getUnresolvedSchema().then(function(O){if(v[g]=!0,O.errors.length){var S=p?g+"#"+p:g;o.push("Problems loading reference '"+S+"': "+O.errors[0]+".")}return u(h,O.schema,g,p),f(h,O.schema,g,b.dependencies)})},f=function(h,g,p,y){if(!h||typeof h!="object")return Promise.resolve(null);for(var v=[h],b=[],O=[],S=function(){for(var E=[],M=0;M<arguments.length;M++)E[M]=arguments[M];for(var V=0,U=E;V<U.length;V++){var X=U[V];typeof X=="object"&&v.push(X)}},x=function(){for(var E=[],M=0;M<arguments.length;M++)E[M]=arguments[M];for(var V=0,U=E;V<U.length;V++){var X=U[V];if(typeof X=="object")for(var J in X){var te=X[J];typeof te=="object"&&v.push(te)}}},w=function(){for(var E=[],M=0;M<arguments.length;M++)E[M]=arguments[M];for(var V=0,U=E;V<U.length;V++){var X=U[V];if(Array.isArray(X))for(var J=0,te=X;J<te.length;J++){var oe=te[J];typeof oe=="object"&&v.push(oe)}}},P=function(E){for(var M=[];E.$ref;){var V=E.$ref,U=V.split("#",2);if(delete E.$ref,U[0].length>0){O.push(d(E,U[0],U[1],p,y));return}else M.indexOf(V)===-1&&(u(E,g,p,U[1]),M.push(V))}S(E.items,E.additionalProperties,E.not,E.contains,E.propertyNames,E.if,E.then,E.else),x(E.definitions,E.properties,E.patternProperties,E.dependencies),w(E.anyOf,E.allOf,E.oneOf,E.items)};v.length;){var I=v.pop();b.indexOf(I)>=0||(b.push(I),P(I))}return i.promise.all(O)};return f(s,s,r,n).then(function(h){return new bM(s,o)})},t.prototype.getSchemaForResource=function(e,r){if(r&&r.root&&r.root.type==="object"){var n=r.root.properties.filter(function(g){return g.keyNode.value==="$schema"&&g.valueNode&&g.valueNode.type==="string"});if(n.length>0){var i=Ba(n[0].valueNode);if(i&&fge(i,".")&&this.contextService&&(i=this.contextService.resolveRelativePath(i,e)),i){var o=this.normalizeId(i);return this.getOrAddSchemaHandle(o).getResolvedSchema()}}}for(var s=Object.create(null),a=[],l=0,c=this.filePatternAssociations;l<c.length;l++){var u=c[l];if(u.matchesPattern(e))for(var d=0,f=u.getSchemas();d<f.length;d++){var h=f[d];s[h]||(a.push(h),s[h]=!0)}}return a.length>0?this.createCombinedSchema(e,a).getResolvedSchema():this.promise.resolve(null)},t.prototype.createCombinedSchema=function(e,r){if(r.length===1)return this.getOrAddSchemaHandle(r[0]);var n="schemaservice://combinedSchema/"+encodeURIComponent(e),i={allOf:r.map(function(o){return{$ref:o}})};return this.addSchemaHandle(n,i)},t})();var _ge=(function(){function t(e,r){this.jsonSchemaService=e,this.promise=r,this.validationEnabled=!0}return t.prototype.configure=function(e){e&&(this.validationEnabled=e.validate,this.commentSeverity=e.allowComments?void 0:ut.Error)},t.prototype.doValidation=function(e,r,n,i){var o=this;if(!this.validationEnabled)return this.promise.resolve([]);var s=[],a={},l=function(d){var f=d.range.start.line+" "+d.range.start.character+" "+d.message;a[f]||(a[f]=!0,s.push(d))},c=function(d){var f=n?OM(n.trailingCommas):ut.Error,h=n?OM(n.comments):o.commentSeverity;if(d){if(d.errors.length&&r.root){var g=r.root,p=g.type==="object"?g.properties[0]:null;if(p&&p.keyNode.value==="$schema"){var y=p.valueNode||p,v=Tt.create(e.positionAt(y.offset),e.positionAt(y.offset+y.length));l(Vs.create(v,d.errors[0],ut.Warning,$t.SchemaResolveError))}else{var v=Tt.create(e.positionAt(g.offset),e.positionAt(g.offset+1));l(Vs.create(v,d.errors[0],ut.Warning,$t.SchemaResolveError))}}else{var b=r.validate(e,d.schema);b&&b.forEach(l)}KX(d.schema)&&(h=void 0),e9(d.schema)&&(f=void 0)}for(var O=0,S=r.syntaxErrors;O<S.length;O++){var x=S[O];if(x.code===$t.TrailingComma){if(typeof f!="number")continue;x.severity=f}l(x)}if(typeof h=="number"){var w="Comments are not permitted in JSON.";r.comments.forEach(function(P){l(Vs.create(P,w,h,$t.CommentNotPermitted))})}return s};if(i){var u=i.id||"schemaservice://untitled/"+Rge++;return this.jsonSchemaService.resolveSchemaContent(new bu(i),u,{}).then(function(d){return c(d)})}return this.jsonSchemaService.getSchemaForResource(e.uri,r).then(function(d){return c(d)})},t})(),Rge=0;function KX(t){if(t&&typeof t=="object"){if(Ho(t.allowComments))return t.allowComments;if(t.allOf)for(var e=0,r=t.allOf;e<r.length;e++){var n=r[e],i=KX(n);if(Ho(i))return i}}}function e9(t){if(t&&typeof t=="object"){if(Ho(t.allowTrailingCommas))return t.allowTrailingCommas;if(Ho(t.allowsTrailingCommas))return t.allowsTrailingCommas;if(t.allOf)for(var e=0,r=t.allOf;e<r.length;e++){var n=r[e],i=e9(n);if(Ho(i))return i}}}function OM(t){switch(t){case"error":return ut.Error;case"warning":return ut.Warning;case"ignore":return}}var xM=48,jge=57,Dge=65,vm=97,Mge=102;function Sr(t){return t<xM?0:t<=jge?t-xM:(t<vm&&(t+=vm-Dge),t>=vm&&t<=Mge?t-vm+10:0)}function Nge(t){if(t[0]!=="#")return null;switch(t.length){case 4:return{red:Sr(t.charCodeAt(1))*17/255,green:Sr(t.charCodeAt(2))*17/255,blue:Sr(t.charCodeAt(3))*17/255,alpha:1};case 5:return{red:Sr(t.charCodeAt(1))*17/255,green:Sr(t.charCodeAt(2))*17/255,blue:Sr(t.charCodeAt(3))*17/255,alpha:Sr(t.charCodeAt(4))*17/255};case 7:return{red:(Sr(t.charCodeAt(1))*16+Sr(t.charCodeAt(2)))/255,green:(Sr(t.charCodeAt(3))*16+Sr(t.charCodeAt(4)))/255,blue:(Sr(t.charCodeAt(5))*16+Sr(t.charCodeAt(6)))/255,alpha:1};case 9:return{red:(Sr(t.charCodeAt(1))*16+Sr(t.charCodeAt(2)))/255,green:(Sr(t.charCodeAt(3))*16+Sr(t.charCodeAt(4)))/255,blue:(Sr(t.charCodeAt(5))*16+Sr(t.charCodeAt(6)))/255,alpha:(Sr(t.charCodeAt(7))*16+Sr(t.charCodeAt(8)))/255}}return null}var Lge=(function(){function t(e){this.schemaService=e}return t.prototype.findDocumentSymbols=function(e,r,n){var i=this;n===void 0&&(n={resultLimit:Number.MAX_VALUE});var o=r.root;if(!o)return null;var s=n.resultLimit,a=e.uri;if((a==="vscode://defaultsettings/keybindings.json"||m$(a.toLowerCase(),"/user/keybindings.json"))&&o.type==="array"){for(var l=[],c=0,u=o.items;c<u.length;c++){var d=u[c];if(d.type==="object")for(var f=0,h=d.properties;f<h.length;f++){var g=h[f];if(g.keyNode.value==="key"&&g.valueNode){var p=fd.create(e.uri,ha(e,d));if(l.push({name:Ba(g.valueNode),kind:Lo.Function,location:p}),s--,s<=0)return n&&n.onResultLimitExceeded&&n.onResultLimitExceeded(a),l}}}return l}var y=function(b,O,S){return s>=0&&(O.type==="array"?O.items.forEach(function(x){return y(b,x,S)}):O.type==="object"&&O.properties.forEach(function(x){if(s>=0){var w=x.valueNode;if(w){s--;var P=fd.create(e.uri,ha(e,x)),I=S?S+"."+x.keyNode.value:x.keyNode.value;b.push({name:i.getKeyLabel(x),kind:i.getSymbolKind(w.type),location:P,containerName:S}),y(b,w,I)}}})),b},v=y([],o,void 0);return s<0&&(v.pop(),n&&n.onResultLimitExceeded&&n.onResultLimitExceeded(a)),v},t.prototype.findDocumentSymbols2=function(e,r,n){var i=this;n===void 0&&(n={resultLimit:Number.MAX_VALUE});var o=r.root;if(!o)return null;var s=n.resultLimit,a=e.uri;if((a==="vscode://defaultsettings/keybindings.json"||m$(a.toLowerCase(),"/user/keybindings.json"))&&o.type==="array"){for(var l=[],c=0,u=o.items;c<u.length;c++){var d=u[c];if(d.type==="object")for(var f=0,h=d.properties;f<h.length;f++){var g=h[f];if(g.keyNode.value==="key"&&g.valueNode){var p=ha(e,d),y=ha(e,g.keyNode);if(l.push({name:Ba(g.valueNode),kind:Lo.Function,range:p,selectionRange:y}),s--,s<=0)return n&&n.onResultLimitExceeded&&n.onResultLimitExceeded(a),l}}}return l}var v=function(O,S){return s>=0&&(S.type==="array"?S.items.forEach(function(x,w){if(x&&s>=0){s--;var P=ha(e,x),I=P,E=String(w),M=v([],x);O.push({name:E,kind:i.getSymbolKind(x.type),range:P,selectionRange:I,children:M})}}):S.type==="object"&&S.properties.forEach(function(x){var w=x.valueNode;if(w&&s>=0){s--;var P=ha(e,x),I=ha(e,x.keyNode),E=v([],w);O.push({name:i.getKeyLabel(x),kind:i.getSymbolKind(w.type),range:P,selectionRange:I,children:E})}})),O},b=v([],o);return s<0&&(b.pop(),n&&n.onResultLimitExceeded&&n.onResultLimitExceeded(a)),b},t.prototype.getSymbolKind=function(e){switch(e){case"object":return Lo.Module;case"string":return Lo.String;case"number":return Lo.Number;case"array":return Lo.Array;case"boolean":return Lo.Boolean;default:return Lo.Variable}},t.prototype.getKeyLabel=function(e){var r=e.keyNode.value;return r&&(r=r.replace(/[\n]/g,"↵")),r&&r.trim()?r:'"'+r+'"'},t.prototype.findDocumentColors=function(e,r,n){return this.schemaService.getSchemaForResource(e.uri,r).then(function(i){var o=[];if(i)for(var s=n&&typeof n.resultLimit=="number"?n.resultLimit:Number.MAX_VALUE,a=r.getMatchingSchemas(i.schema),l={},c=0,u=a;c<u.length;c++){var d=u[c];if(!d.inverted&&d.schema&&(d.schema.format==="color"||d.schema.format==="color-hex")&&d.node&&d.node.type==="string"){var f=String(d.node.offset);if(!l[f]){var h=Nge(Ba(d.node));if(h){var g=ha(e,d.node);o.push({color:h,range:g})}if(l[f]=!0,s--,s<=0)return n&&n.onResultLimitExceeded&&n.onResultLimitExceeded(e.uri),o}}}return o})},t.prototype.getColorPresentations=function(e,r,n,i){var o=[],s=Math.round(n.red*255),a=Math.round(n.green*255),l=Math.round(n.blue*255);function c(d){var f=d.toString(16);return f.length!==2?"0"+f:f}var u;return n.alpha===1?u="#"+c(s)+c(a)+c(l):u="#"+c(s)+c(a)+c(l)+c(Math.round(n.alpha*255)),o.push({label:u,textEdit:Ys.replace(i,JSON.stringify(u))}),o},t})();function ha(t,e){return Tt.create(t.positionAt(e.offset),t.positionAt(e.offset+e.length))}var Qge={schemaAssociations:{},schemas:{}};function Vge(t,e){var r=[],n=[],i=[],o=-1,s=Mu(t.getText(),!1),a=s.scan();function l(M){r.push(M),n.push(i.length)}for(;a!==17;){switch(a){case 1:case 3:{var c=t.positionAt(s.getTokenOffset()).line,u={startLine:c,endLine:c,kind:a===1?"object":"array"};i.push(u);break}case 2:case 4:{var d=a===2?"object":"array";if(i.length>0&&i[i.length-1].kind===d){var u=i.pop(),f=t.positionAt(s.getTokenOffset()).line;u&&f>u.startLine+1&&o!==u.startLine&&(u.endLine=f-1,l(u),o=u.startLine)}break}case 13:{var c=t.positionAt(s.getTokenOffset()).line,h=t.positionAt(s.getTokenOffset()+s.getTokenLength()).line;s.getTokenError()===1&&c+1<t.lineCount?s.setPosition(t.offsetAt(Mi.create(c+1,0))):c<h&&(l({startLine:c,endLine:h,kind:Ah.Comment}),o=c);break}case 12:{var g=t.getText().substr(s.getTokenOffset(),s.getTokenLength()),p=g.match(/^\/\/\s*#(region\b)|(endregion\b)/);if(p){var f=t.positionAt(s.getTokenOffset()).line;if(p[1]){var u={startLine:f,endLine:f,kind:Ah.Region};i.push(u)}else{for(var y=i.length-1;y>=0&&i[y].kind!==Ah.Region;)y--;if(y>=0){var u=i[y];i.length=y,f>u.startLine&&o!==u.startLine&&(u.endLine=f,l(u),o=u.startLine)}}}break}}a=s.scan()}var v=e&&e.rangeLimit;if(typeof v!="number"||r.length<=v)return r;e&&e.onRangeLimitExceeded&&e.onRangeLimitExceeded(t.uri);for(var b=[],O=0,S=n;O<S.length;O++){var x=S[O];x<30&&(b[x]=(b[x]||0)+1)}for(var w=0,P=0,y=0;y<b.length;y++){var I=b[y];if(I){if(I+w>v){P=y;break}w+=I}}for(var E=[],y=0;y<r.length;y++){var x=n[y];typeof x=="number"&&(x<P||x===P&&w++<v)&&E.push(r[y])}return E}function zge(t,e,r){function n(a){for(var l=t.offsetAt(a),c=r.getNodeFromOffset(l,!0),u=[];c;){switch(c.type){case"string":case"object":case"array":var d=c.offset+1,f=c.offset+c.length-1;d<f&&l>=d&&l<=f&&u.push(i(d,f)),u.push(i(c.offset,c.offset+c.length));break;case"number":case"boolean":case"null":case"property":u.push(i(c.offset,c.offset+c.length));break}if(c.type==="property"||c.parent&&c.parent.type==="array"){var h=s(c.offset+c.length,5);h!==-1&&u.push(i(c.offset,h))}c=c.parent}for(var g=void 0,p=u.length-1;p>=0;p--)g=jO.create(u[p],g);return g||(g=jO.create(Tt.create(a,a))),g}function i(a,l){return Tt.create(t.positionAt(a),t.positionAt(l))}var o=Mu(t.getText(),!0);function s(a,l){o.setPosition(a);var c=o.scan();return c===l?o.getTokenOffset()+o.getTokenLength():-1}return e.map(n)}function Bge(t){var e=t.promiseConstructor||Promise,r=new Tge(t.schemaRequestService,t.workspaceContext,e);r.setSchemaContributions(Qge);var n=new mge(r,t.contributions,e,t.clientCapabilities),i=new yge(r,t.contributions,e),o=new Lge(r),s=new _ge(r,e);return{configure:function(a){r.clearExternalSchemas(),a.schemas&&a.schemas.forEach(function(l){r.registerExternalSchema(l.uri,l.fileMatch,l.schema)}),s.configure(a)},resetSchema:function(a){return r.onResourceChange(a)},doValidation:s.doValidation.bind(s),parseJSONDocument:function(a){return dge(a,{collectComments:!0})},newJSONDocument:function(a,l){return uge(a,l)},doComplete:n.doComplete.bind(n),findDocumentSymbols:o.findDocumentSymbols.bind(o),findDocumentSymbols2:o.findDocumentSymbols2.bind(o),findColorSymbols:function(a,l){return o.findDocumentColors(a,l).then(function(c){return c.map(function(u){return u.range})})},findDocumentColors:o.findDocumentColors.bind(o),getColorPresentations:o.getColorPresentations.bind(o),doHover:i.doHover.bind(i),getFoldingRanges:Vge,getSelectionRanges:zge,format:function(a,l,c){var u=void 0;if(l){var d=a.offsetAt(l.start),f=a.offsetAt(l.end)-d;u={offset:d,length:f}}var h={tabSize:c?c.tabSize:4,insertSpaces:c?c.insertSpaces:!0,eol:`
|
|
213
|
+
`};return Kpe(a.getText(),u,h).map(function(g){return Ys.replace(Tt.create(a.positionAt(g.offset),a.positionAt(g.offset+g.length)),g.content)})}}}function qge(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function SM(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function wM(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?SM(Object(r),!0).forEach(function(n){qge(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):SM(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Kr(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var CM=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})(),o1=function(){return Math.random().toString(36).substring(7).split("").join(".")},qa={INIT:"@@redux/INIT"+o1(),REPLACE:"@@redux/REPLACE"+o1(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+o1()}};function t9(t){if(typeof t!="object"||t===null)return!1;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function Fge(t){if(t===void 0)return"undefined";if(t===null)return"null";var e=typeof t;switch(e){case"boolean":case"string":case"number":case"symbol":case"function":return e}if(Array.isArray(t))return"array";if(Xge(t))return"date";if(Uge(t))return"error";var r=Wge(t);switch(r){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return r}return e.slice(8,-1).toLowerCase().replace(/\s/g,"")}function Wge(t){return typeof t.constructor=="function"?t.constructor.name:null}function Uge(t){return t instanceof Error||typeof t.message=="string"&&t.constructor&&typeof t.constructor.stackTraceLimit=="number"}function Xge(t){return t instanceof Date?!0:typeof t.toDateString=="function"&&typeof t.getDate=="function"&&typeof t.setDate=="function"}function wa(t){var e=typeof t;return process.env.NODE_ENV!=="production"&&(e=Fge(t)),e}function Px(t,e,r){var n;if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?Kr(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(process.env.NODE_ENV==="production"?Kr(1):"Expected the enhancer to be a function. Instead, received: '"+wa(r)+"'");return r(Px)(t,e)}if(typeof t!="function")throw new Error(process.env.NODE_ENV==="production"?Kr(2):"Expected the root reducer to be a function. Instead, received: '"+wa(t)+"'");var i=t,o=e,s=[],a=s,l=!1;function c(){a===s&&(a=s.slice())}function u(){if(l)throw new Error(process.env.NODE_ENV==="production"?Kr(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return o}function d(p){if(typeof p!="function")throw new Error(process.env.NODE_ENV==="production"?Kr(4):"Expected the listener to be a function. Instead, received: '"+wa(p)+"'");if(l)throw new Error(process.env.NODE_ENV==="production"?Kr(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");var y=!0;return c(),a.push(p),function(){if(y){if(l)throw new Error(process.env.NODE_ENV==="production"?Kr(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");y=!1,c();var b=a.indexOf(p);a.splice(b,1),s=null}}}function f(p){if(!t9(p))throw new Error(process.env.NODE_ENV==="production"?Kr(7):"Actions must be plain objects. Instead, the actual type was: '"+wa(p)+"'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.");if(typeof p.type>"u")throw new Error(process.env.NODE_ENV==="production"?Kr(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(l)throw new Error(process.env.NODE_ENV==="production"?Kr(9):"Reducers may not dispatch actions.");try{l=!0,o=i(o,p)}finally{l=!1}for(var y=s=a,v=0;v<y.length;v++){var b=y[v];b()}return p}function h(p){if(typeof p!="function")throw new Error(process.env.NODE_ENV==="production"?Kr(10):"Expected the nextReducer to be a function. Instead, received: '"+wa(p));i=p,f({type:qa.REPLACE})}function g(){var p,y=d;return p={subscribe:function(b){if(typeof b!="object"||b===null)throw new Error(process.env.NODE_ENV==="production"?Kr(11):"Expected the observer to be an object. Instead, received: '"+wa(b)+"'");function O(){b.next&&b.next(u())}O();var S=y(O);return{unsubscribe:S}}},p[CM]=function(){return this},p}return f({type:qa.INIT}),n={dispatch:f,subscribe:d,getState:u,replaceReducer:h},n[CM]=g,n}var Zge=Px;function b$(t){typeof console<"u"&&typeof console.error=="function"&&console.error(t);try{throw new Error(t)}catch{}}function Gge(t,e,r,n){var i=Object.keys(e),o=r&&r.type===qa.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(i.length===0)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!t9(t))return"The "+o+' has unexpected type of "'+wa(t)+'". Expected argument to be an object with the following '+('keys: "'+i.join('", "')+'"');var s=Object.keys(t).filter(function(a){return!e.hasOwnProperty(a)&&!n[a]});if(s.forEach(function(a){n[a]=!0}),!(r&&r.type===qa.REPLACE)&&s.length>0)return"Unexpected "+(s.length>1?"keys":"key")+" "+('"'+s.join('", "')+'" found in '+o+". ")+"Expected to find one of the known reducer keys instead: "+('"'+i.join('", "')+'". Unexpected keys will be ignored.')}function Yge(t){Object.keys(t).forEach(function(e){var r=t[e],n=r(void 0,{type:qa.INIT});if(typeof n>"u")throw new Error(process.env.NODE_ENV==="production"?Kr(12):'The slice reducer for key "'+e+`" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`);if(typeof r(void 0,{type:qa.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(process.env.NODE_ENV==="production"?Kr(13):'The slice reducer for key "'+e+'" returned undefined when probed with a random type. '+("Don't try to handle '"+qa.INIT+`' or other actions in "redux/*" `)+"namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.")})}function Hge(t){for(var e=Object.keys(t),r={},n=0;n<e.length;n++){var i=e[n];process.env.NODE_ENV!=="production"&&typeof t[i]>"u"&&b$('No reducer provided for key "'+i+'"'),typeof t[i]=="function"&&(r[i]=t[i])}var o=Object.keys(r),s;process.env.NODE_ENV!=="production"&&(s={});var a;try{Yge(r)}catch(l){a=l}return function(c,u){if(c===void 0&&(c={}),a)throw a;if(process.env.NODE_ENV!=="production"){var d=Gge(c,r,u,s);d&&b$(d)}for(var f=!1,h={},g=0;g<o.length;g++){var p=o[g],y=r[p],v=c[p],b=y(v,u);if(typeof b>"u"){var O=u&&u.type;throw new Error(process.env.NODE_ENV==="production"?Kr(14):"When called with an action of type "+(O?'"'+String(O)+'"':"(unknown type)")+', the slice reducer for key "'+p+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.')}h[p]=b,f=f||b!==v}return f=f||o.length!==Object.keys(c).length,f?h:c}}function PM(t,e){return function(){return e(t.apply(this,arguments))}}function Jge(t,e){if(typeof t=="function")return PM(t,e);if(typeof t!="object"||t===null)throw new Error(process.env.NODE_ENV==="production"?Kr(16):"bindActionCreators expected an object or a function, but instead received: '"+wa(t)+`'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?`);var r={};for(var n in t){var i=t[n];typeof i=="function"&&(r[n]=PM(i,e))}return r}function r9(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return e.length===0?function(n){return n}:e.length===1?e[0]:e.reduce(function(n,i){return function(){return n(i.apply(void 0,arguments))}})}function Kge(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(n){return function(){var i=n.apply(void 0,arguments),o=function(){throw new Error(process.env.NODE_ENV==="production"?Kr(15):"Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},s={getState:i.getState,dispatch:function(){return o.apply(void 0,arguments)}},a=e.map(function(l){return l(s)});return o=r9.apply(void 0,a)(i.dispatch),wM(wM({},i),{},{dispatch:o})}}}function kM(){}process.env.NODE_ENV!=="production"&&typeof kM.name=="string"&&kM.name!=="isCrushed"&&b$('You are currently using minified code outside of NODE_ENV === "production". This means that you are running a slower development build of Redux. You can use loose-envify (https://github.com/zertosh/loose-envify) for browserify or setting mode to production in webpack (https://webpack.js.org/concepts/mode/) to ensure you have the correct code for your production build.');var eme=Object.freeze({__proto__:null,__DO_NOT_USE__ActionTypes:qa,applyMiddleware:Kge,bindActionCreators:Jge,combineReducers:Hge,compose:r9,createStore:Px,legacy_createStore:Zge});function tme(t){var e=t.default;if(typeof e=="function"){var r=function(){return e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(n){var i=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return t[n]}})}),r}var rme=tme(eme);rme.compose;var nme=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function ime(t,e,r){var n=!1,i=!1,o=Px(function(a,l){if(!i){var c=function(y){return Array.isArray(y)&&y.findIndex(function(v){return typeof v!="string"&&typeof v!="number"})===-1};if(l.type.startsWith("SET")){var u=function(y){try{n=!0,"value"in l?y.set(l.value):y.set(ot)}finally{n=!1}};if(l.path){if(c(l.path)){l.path.length===0&&u(t);for(var d=t,f=!0,h=0,g=l.path;h<g.length;h++){var p=g[h];d[p]?d=d[p]:f=!1}f&&u(d)}}else u(t)}else l.type==="BREAKPOINT"&&r()}return t.promised||t.error?ot:t.get({noproxy:!0})},nme({name:"".concat(window.location.hostname,": ").concat(e),trace:!0,traceLimit:16,autoPause:!0,shouldHotReload:!1,features:{persist:!0,pause:!0,lock:!1,export:"custom",import:"custom",jump:!1,skip:!1,reorder:!1,dispatch:!0,test:!1}})),s=function(a,l){if(n)l&&l();else try{i=!0,o.dispatch(a)}finally{i=!1}};return s}function ome(t){return function(){var e,r,n=!1;return{onInit:function(i,o){if(!(typeof window>"u"||!("__REDUX_DEVTOOLS_EXTENSION__"in window))){if((t==null?void 0:t.key)===void 0){if(o.identifier===void 0)throw Error("State is missing Identifiable extension or Devtools key option");e=o.identifier(i)}else e=t.key;r=ime(i,e,function(){n=!n}),i.promise||r==null||r({type:"CREATE",state:i.get({noproxy:!0,stealth:!0})})}},onSet:function(i,o){if(r==null||r({type:"SET [".concat(i.path.join("/"),"]"),state:i.get({noproxy:!0,stealth:!0}),descriptor:o}),n)debugger},onDestroy:function(){r==null||r({type:"DESTROY"})}}}}const kx="default",n9=[{name:kx,inputs:[],servers:[],state:xt.Normal}],O$={activeTabIdx:0,tabs:[]};var Qo=(t=>(t.Idle="idle",t.Loading="loading",t.Success="success",t.Error="error",t))(Qo||{});/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function i9(t){return typeof t>"u"||t===null}function sme(t){return typeof t=="object"&&t!==null}function ame(t){return Array.isArray(t)?t:i9(t)?[]:[t]}function lme(t,e){var r,n,i,o;if(e)for(o=Object.keys(e),r=0,n=o.length;r<n;r+=1)i=o[r],t[i]=e[i];return t}function cme(t,e){var r="",n;for(n=0;n<e;n+=1)r+=t;return r}function ume(t){return t===0&&Number.NEGATIVE_INFINITY===1/t}var dme=i9,fme=sme,hme=ame,pme=cme,gme=ume,mme=lme,Lr={isNothing:dme,isObject:fme,toArray:hme,repeat:pme,isNegativeZero:gme,extend:mme};function o9(t,e){var r="",n=t.reason||"(unknown reason)";return t.mark?(t.mark.name&&(r+='in "'+t.mark.name+'" '),r+="("+(t.mark.line+1)+":"+(t.mark.column+1)+")",!e&&t.mark.snippet&&(r+=`
|
|
214
214
|
|
|
215
|
-
`+t.mark.snippet),n+" "+r):n}function dp(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=
|
|
215
|
+
`+t.mark.snippet),n+" "+r):n}function dp(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=o9(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}dp.prototype=Object.create(Error.prototype);dp.prototype.constructor=dp;dp.prototype.toString=function(e){return this.name+": "+o9(this,e)};var Tn=dp;function s1(t,e,r,n,i){var o="",s="",a=Math.floor(i/2)-1;return n-e>a&&(o=" ... ",e=n-a+o.length),r-n>a&&(s=" ...",r=n+a-s.length),{str:o+t.slice(e,r).replace(/\t/g,"→")+s,pos:n-e+o.length}}function a1(t,e){return Lr.repeat(" ",e-t.length)+t}function yme(t,e){if(e=Object.create(e||null),!t.buffer)return null;e.maxLength||(e.maxLength=79),typeof e.indent!="number"&&(e.indent=1),typeof e.linesBefore!="number"&&(e.linesBefore=3),typeof e.linesAfter!="number"&&(e.linesAfter=2);for(var r=/\r?\n|\r|\0/g,n=[0],i=[],o,s=-1;o=r.exec(t.buffer);)i.push(o.index),n.push(o.index+o[0].length),t.position<=o.index&&s<0&&(s=n.length-2);s<0&&(s=n.length-1);var a="",l,c,u=Math.min(t.line+e.linesAfter,i.length).toString().length,d=e.maxLength-(e.indent+u+3);for(l=1;l<=e.linesBefore&&!(s-l<0);l++)c=s1(t.buffer,n[s-l],i[s-l],t.position-(n[s]-n[s-l]),d),a=Lr.repeat(" ",e.indent)+a1((t.line-l+1).toString(),u)+" | "+c.str+`
|
|
216
216
|
`+a;for(c=s1(t.buffer,n[s],i[s],t.position,d),a+=Lr.repeat(" ",e.indent)+a1((t.line+1).toString(),u)+" | "+c.str+`
|
|
217
217
|
`,a+=Lr.repeat("-",e.indent+u+3+c.pos)+`^
|
|
218
218
|
`,l=1;l<=e.linesAfter&&!(s+l>=i.length);l++)c=s1(t.buffer,n[s+l],i[s+l],t.position-(n[s]-n[s+l]),d),a+=Lr.repeat(" ",e.indent)+a1((t.line+l+1).toString(),u)+" | "+c.str+`
|
|
219
|
-
`;return a.replace(/\n$/,"")}var vme=yme,bme=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],Ome=["scalar","sequence","mapping"];function xme(t){var e={};return t!==null&&Object.keys(t).forEach(function(r){t[r].forEach(function(n){e[String(n)]=r})}),e}function Sme(t,e){if(e=e||{},Object.keys(e).forEach(function(r){if(bme.indexOf(r)===-1)throw new Tn('Unknown option "'+r+'" is met in definition of "'+t+'" YAML type.')}),this.options=e,this.tag=t,this.kind=e.kind||null,this.resolve=e.resolve||function(){return!0},this.construct=e.construct||function(r){return r},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.representName=e.representName||null,this.defaultStyle=e.defaultStyle||null,this.multi=e.multi||!1,this.styleAliases=xme(e.styleAliases||null),Ome.indexOf(this.kind)===-1)throw new Tn('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}var nn=Sme;function $M(t,e){var r=[];return t[e].forEach(function(n){var i=r.length;r.forEach(function(o,s){o.tag===n.tag&&o.kind===n.kind&&o.multi===n.multi&&(i=s)}),r[i]=n}),r}function wme(){var t={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},e,r;function n(i){i.multi?(t.multi[i.kind].push(i),t.multi.fallback.push(i)):t[i.kind][i.tag]=t.fallback[i.tag]=i}for(e=0,r=arguments.length;e<r;e+=1)arguments[e].forEach(n);return t}function x$(t){return this.extend(t)}x$.prototype.extend=function(e){var r=[],n=[];if(e instanceof nn)n.push(e);else if(Array.isArray(e))n=n.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(r=r.concat(e.implicit)),e.explicit&&(n=n.concat(e.explicit));else throw new Tn("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(o){if(!(o instanceof nn))throw new Tn("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(o.loadKind&&o.loadKind!=="scalar")throw new Tn("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(o.multi)throw new Tn("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),n.forEach(function(o){if(!(o instanceof nn))throw new Tn("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var i=Object.create(x$.prototype);return i.implicit=(this.implicit||[]).concat(r),i.explicit=(this.explicit||[]).concat(n),i.compiledImplicit=$M(i,"implicit"),i.compiledExplicit=$M(i,"explicit"),i.compiledTypeMap=wme(i.compiledImplicit,i.compiledExplicit),i};var
|
|
220
|
-
\r`;function Ume(t){if(t===null)return!1;var e,r,n=0,i=t.length,o=aI;for(r=0;r<i;r++)if(e=o.indexOf(t.charAt(r)),!(e>64)){if(e<0)return!1;n+=6}return n%8===0}function Xme(t){var e,r,n=t.replace(/[\r\n=]/g,""),i=n.length,o=aI,s=0,a=[];for(e=0;e<i;e++)e%4===0&&e&&(a.push(s>>16&255),a.push(s>>8&255),a.push(s&255)),s=s<<6|o.indexOf(n.charAt(e));return r=i%4*6,r===0?(a.push(s>>16&255),a.push(s>>8&255),a.push(s&255)):r===18?(a.push(s>>10&255),a.push(s>>2&255)):r===12&&a.push(s>>4&255),new Uint8Array(a)}function Zme(t){var e="",r=0,n,i,o=t.length,s=aI;for(n=0;n<o;n++)n%3===0&&n&&(e+=s[r>>18&63],e+=s[r>>12&63],e+=s[r>>6&63],e+=s[r&63]),r=(r<<8)+t[n];return i=o%3,i===0?(e+=s[r>>18&63],e+=s[r>>12&63],e+=s[r>>6&63],e+=s[r&63]):i===2?(e+=s[r>>10&63],e+=s[r>>4&63],e+=s[r<<2&63],e+=s[64]):i===1&&(e+=s[r>>2&63],e+=s[r<<4&63],e+=s[64],e+=s[64]),e}function Gme(t){return Object.prototype.toString.call(t)==="[object Uint8Array]"}var
|
|
221
|
-
`:t===118?"\v":t===102?"\f":t===114?"\r":t===101?"\x1B":t===32?" ":t===34?'"':t===47?"/":t===92?"\\":t===78?"
":t===95?" ":t===76?"\u2028":t===80?"\u2029":""}function hye(t){return t<=65535?String.fromCharCode(t):String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}var
|
|
222
|
-
`,e-1))}function gye(t,e,r){var n,i,o,s,a,l,c,u,d=t.kind,f=t.result,h;if(h=t.input.charCodeAt(t.position),ei(h)||Ou(h)||h===35||h===38||h===42||h===33||h===124||h===62||h===39||h===34||h===37||h===64||h===96||(h===63||h===45)&&(i=t.input.charCodeAt(t.position+1),ei(i)||r&&Ou(i)))return!1;for(t.kind="scalar",t.result="",o=s=t.position,a=!1;h!==0;){if(h===58){if(i=t.input.charCodeAt(t.position+1),ei(i)||r&&Ou(i))break}else if(h===35){if(n=t.input.charCodeAt(t.position-1),ei(n))break}else{if(t.position===t.lineStart&&$x(t)||r&&Ou(h))break;if(rs(h))if(l=t.line,c=t.lineStart,u=t.lineIndent,Ir(t,!1,-1),t.lineIndent>=e){a=!0,h=t.input.charCodeAt(t.position);continue}else{t.position=s,t.line=l,t.lineStart=c,t.lineIndent=u;break}}a&&(Fa(t,o,s,!1),uI(t,t.line-l),o=s=t.position,a=!1),Zl(h)||(s=t.position+1),h=t.input.charCodeAt(++t.position)}return Fa(t,o,s,!1),t.result?!0:(t.kind=d,t.result=f,!1)}function mye(t,e){var r,n,i;if(r=t.input.charCodeAt(t.position),r!==39)return!1;for(t.kind="scalar",t.result="",t.position++,n=i=t.position;(r=t.input.charCodeAt(t.position))!==0;)if(r===39)if(Fa(t,n,t.position,!0),r=t.input.charCodeAt(++t.position),r===39)n=t.position,t.position++,i=t.position;else return!0;else rs(r)?(Fa(t,n,i,!0),uI(t,Ir(t,!1,e)),n=i=t.position):t.position===t.lineStart&&$x(t)?Fe(t,"unexpected end of the document within a single quoted scalar"):(t.position++,i=t.position);Fe(t,"unexpected end of the stream within a single quoted scalar")}function yye(t,e){var r,n,i,o,s,a;if(a=t.input.charCodeAt(t.position),a!==34)return!1;for(t.kind="scalar",t.result="",t.position++,r=n=t.position;(a=t.input.charCodeAt(t.position))!==0;){if(a===34)return Fa(t,r,t.position,!0),t.position++,!0;if(a===92){if(Fa(t,r,t.position,!0),a=t.input.charCodeAt(++t.position),rs(a))Ir(t,!1,e);else if(a<256&&
|
|
219
|
+
`;return a.replace(/\n$/,"")}var vme=yme,bme=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],Ome=["scalar","sequence","mapping"];function xme(t){var e={};return t!==null&&Object.keys(t).forEach(function(r){t[r].forEach(function(n){e[String(n)]=r})}),e}function Sme(t,e){if(e=e||{},Object.keys(e).forEach(function(r){if(bme.indexOf(r)===-1)throw new Tn('Unknown option "'+r+'" is met in definition of "'+t+'" YAML type.')}),this.options=e,this.tag=t,this.kind=e.kind||null,this.resolve=e.resolve||function(){return!0},this.construct=e.construct||function(r){return r},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.representName=e.representName||null,this.defaultStyle=e.defaultStyle||null,this.multi=e.multi||!1,this.styleAliases=xme(e.styleAliases||null),Ome.indexOf(this.kind)===-1)throw new Tn('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}var nn=Sme;function $M(t,e){var r=[];return t[e].forEach(function(n){var i=r.length;r.forEach(function(o,s){o.tag===n.tag&&o.kind===n.kind&&o.multi===n.multi&&(i=s)}),r[i]=n}),r}function wme(){var t={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},e,r;function n(i){i.multi?(t.multi[i.kind].push(i),t.multi.fallback.push(i)):t[i.kind][i.tag]=t.fallback[i.tag]=i}for(e=0,r=arguments.length;e<r;e+=1)arguments[e].forEach(n);return t}function x$(t){return this.extend(t)}x$.prototype.extend=function(e){var r=[],n=[];if(e instanceof nn)n.push(e);else if(Array.isArray(e))n=n.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(r=r.concat(e.implicit)),e.explicit&&(n=n.concat(e.explicit));else throw new Tn("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(o){if(!(o instanceof nn))throw new Tn("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(o.loadKind&&o.loadKind!=="scalar")throw new Tn("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(o.multi)throw new Tn("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),n.forEach(function(o){if(!(o instanceof nn))throw new Tn("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var i=Object.create(x$.prototype);return i.implicit=(this.implicit||[]).concat(r),i.explicit=(this.explicit||[]).concat(n),i.compiledImplicit=$M(i,"implicit"),i.compiledExplicit=$M(i,"explicit"),i.compiledTypeMap=wme(i.compiledImplicit,i.compiledExplicit),i};var s9=x$,a9=new nn("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){return t!==null?t:""}}),l9=new nn("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){return t!==null?t:[]}}),c9=new nn("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return t!==null?t:{}}}),u9=new s9({explicit:[a9,l9,c9]});function Cme(t){if(t===null)return!0;var e=t.length;return e===1&&t==="~"||e===4&&(t==="null"||t==="Null"||t==="NULL")}function Pme(){return null}function kme(t){return t===null}var d9=new nn("tag:yaml.org,2002:null",{kind:"scalar",resolve:Cme,construct:Pme,predicate:kme,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function $me(t){if(t===null)return!1;var e=t.length;return e===4&&(t==="true"||t==="True"||t==="TRUE")||e===5&&(t==="false"||t==="False"||t==="FALSE")}function Eme(t){return t==="true"||t==="True"||t==="TRUE"}function Ame(t){return Object.prototype.toString.call(t)==="[object Boolean]"}var f9=new nn("tag:yaml.org,2002:bool",{kind:"scalar",resolve:$me,construct:Eme,predicate:Ame,represent:{lowercase:function(t){return t?"true":"false"},uppercase:function(t){return t?"TRUE":"FALSE"},camelcase:function(t){return t?"True":"False"}},defaultStyle:"lowercase"});function Ime(t){return 48<=t&&t<=57||65<=t&&t<=70||97<=t&&t<=102}function Tme(t){return 48<=t&&t<=55}function _me(t){return 48<=t&&t<=57}function Rme(t){if(t===null)return!1;var e=t.length,r=0,n=!1,i;if(!e)return!1;if(i=t[r],(i==="-"||i==="+")&&(i=t[++r]),i==="0"){if(r+1===e)return!0;if(i=t[++r],i==="b"){for(r++;r<e;r++)if(i=t[r],i!=="_"){if(i!=="0"&&i!=="1")return!1;n=!0}return n&&i!=="_"}if(i==="x"){for(r++;r<e;r++)if(i=t[r],i!=="_"){if(!Ime(t.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}if(i==="o"){for(r++;r<e;r++)if(i=t[r],i!=="_"){if(!Tme(t.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}}if(i==="_")return!1;for(;r<e;r++)if(i=t[r],i!=="_"){if(!_me(t.charCodeAt(r)))return!1;n=!0}return!(!n||i==="_")}function jme(t){var e=t,r=1,n;if(e.indexOf("_")!==-1&&(e=e.replace(/_/g,"")),n=e[0],(n==="-"||n==="+")&&(n==="-"&&(r=-1),e=e.slice(1),n=e[0]),e==="0")return 0;if(n==="0"){if(e[1]==="b")return r*parseInt(e.slice(2),2);if(e[1]==="x")return r*parseInt(e.slice(2),16);if(e[1]==="o")return r*parseInt(e.slice(2),8)}return r*parseInt(e,10)}function Dme(t){return Object.prototype.toString.call(t)==="[object Number]"&&t%1===0&&!Lr.isNegativeZero(t)}var h9=new nn("tag:yaml.org,2002:int",{kind:"scalar",resolve:Rme,construct:jme,predicate:Dme,represent:{binary:function(t){return t>=0?"0b"+t.toString(2):"-0b"+t.toString(2).slice(1)},octal:function(t){return t>=0?"0o"+t.toString(8):"-0o"+t.toString(8).slice(1)},decimal:function(t){return t.toString(10)},hexadecimal:function(t){return t>=0?"0x"+t.toString(16).toUpperCase():"-0x"+t.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),Mme=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function Nme(t){return!(t===null||!Mme.test(t)||t[t.length-1]==="_")}function Lme(t){var e,r;return e=t.replace(/_/g,"").toLowerCase(),r=e[0]==="-"?-1:1,"+-".indexOf(e[0])>=0&&(e=e.slice(1)),e===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:e===".nan"?NaN:r*parseFloat(e,10)}var Qme=/^[-+]?[0-9]+e/;function Vme(t,e){var r;if(isNaN(t))switch(e){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===t)switch(e){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===t)switch(e){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(Lr.isNegativeZero(t))return"-0.0";return r=t.toString(10),Qme.test(r)?r.replace("e",".e"):r}function zme(t){return Object.prototype.toString.call(t)==="[object Number]"&&(t%1!==0||Lr.isNegativeZero(t))}var p9=new nn("tag:yaml.org,2002:float",{kind:"scalar",resolve:Nme,construct:Lme,predicate:zme,represent:Vme,defaultStyle:"lowercase"}),g9=u9.extend({implicit:[d9,f9,h9,p9]}),m9=g9,y9=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),v9=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]))?))?$");function Bme(t){return t===null?!1:y9.exec(t)!==null||v9.exec(t)!==null}function qme(t){var e,r,n,i,o,s,a,l=0,c=null,u,d,f;if(e=y9.exec(t),e===null&&(e=v9.exec(t)),e===null)throw new Error("Date resolve error");if(r=+e[1],n=+e[2]-1,i=+e[3],!e[4])return new Date(Date.UTC(r,n,i));if(o=+e[4],s=+e[5],a=+e[6],e[7]){for(l=e[7].slice(0,3);l.length<3;)l+="0";l=+l}return e[9]&&(u=+e[10],d=+(e[11]||0),c=(u*60+d)*6e4,e[9]==="-"&&(c=-c)),f=new Date(Date.UTC(r,n,i,o,s,a,l)),c&&f.setTime(f.getTime()-c),f}function Fme(t){return t.toISOString()}var b9=new nn("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:Bme,construct:qme,instanceOf:Date,represent:Fme});function Wme(t){return t==="<<"||t===null}var O9=new nn("tag:yaml.org,2002:merge",{kind:"scalar",resolve:Wme}),aI=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
220
|
+
\r`;function Ume(t){if(t===null)return!1;var e,r,n=0,i=t.length,o=aI;for(r=0;r<i;r++)if(e=o.indexOf(t.charAt(r)),!(e>64)){if(e<0)return!1;n+=6}return n%8===0}function Xme(t){var e,r,n=t.replace(/[\r\n=]/g,""),i=n.length,o=aI,s=0,a=[];for(e=0;e<i;e++)e%4===0&&e&&(a.push(s>>16&255),a.push(s>>8&255),a.push(s&255)),s=s<<6|o.indexOf(n.charAt(e));return r=i%4*6,r===0?(a.push(s>>16&255),a.push(s>>8&255),a.push(s&255)):r===18?(a.push(s>>10&255),a.push(s>>2&255)):r===12&&a.push(s>>4&255),new Uint8Array(a)}function Zme(t){var e="",r=0,n,i,o=t.length,s=aI;for(n=0;n<o;n++)n%3===0&&n&&(e+=s[r>>18&63],e+=s[r>>12&63],e+=s[r>>6&63],e+=s[r&63]),r=(r<<8)+t[n];return i=o%3,i===0?(e+=s[r>>18&63],e+=s[r>>12&63],e+=s[r>>6&63],e+=s[r&63]):i===2?(e+=s[r>>10&63],e+=s[r>>4&63],e+=s[r<<2&63],e+=s[64]):i===1&&(e+=s[r>>2&63],e+=s[r<<4&63],e+=s[64],e+=s[64]),e}function Gme(t){return Object.prototype.toString.call(t)==="[object Uint8Array]"}var x9=new nn("tag:yaml.org,2002:binary",{kind:"scalar",resolve:Ume,construct:Xme,predicate:Gme,represent:Zme}),Yme=Object.prototype.hasOwnProperty,Hme=Object.prototype.toString;function Jme(t){if(t===null)return!0;var e=[],r,n,i,o,s,a=t;for(r=0,n=a.length;r<n;r+=1){if(i=a[r],s=!1,Hme.call(i)!=="[object Object]")return!1;for(o in i)if(Yme.call(i,o))if(!s)s=!0;else return!1;if(!s)return!1;if(e.indexOf(o)===-1)e.push(o);else return!1}return!0}function Kme(t){return t!==null?t:[]}var S9=new nn("tag:yaml.org,2002:omap",{kind:"sequence",resolve:Jme,construct:Kme}),eye=Object.prototype.toString;function tye(t){if(t===null)return!0;var e,r,n,i,o,s=t;for(o=new Array(s.length),e=0,r=s.length;e<r;e+=1){if(n=s[e],eye.call(n)!=="[object Object]"||(i=Object.keys(n),i.length!==1))return!1;o[e]=[i[0],n[i[0]]]}return!0}function rye(t){if(t===null)return[];var e,r,n,i,o,s=t;for(o=new Array(s.length),e=0,r=s.length;e<r;e+=1)n=s[e],i=Object.keys(n),o[e]=[i[0],n[i[0]]];return o}var w9=new nn("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:tye,construct:rye}),nye=Object.prototype.hasOwnProperty;function iye(t){if(t===null)return!0;var e,r=t;for(e in r)if(nye.call(r,e)&&r[e]!==null)return!1;return!0}function oye(t){return t!==null?t:{}}var C9=new nn("tag:yaml.org,2002:set",{kind:"mapping",resolve:iye,construct:oye}),lI=m9.extend({implicit:[b9,O9],explicit:[x9,S9,w9,C9]}),Ka=Object.prototype.hasOwnProperty,DO=1,P9=2,k9=3,MO=4,l1=1,sye=2,EM=3,aye=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,lye=/[\x85\u2028\u2029]/,cye=/[,\[\]\{\}]/,$9=/^(?:!|!!|![a-z\-]+!)$/i,E9=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function AM(t){return Object.prototype.toString.call(t)}function rs(t){return t===10||t===13}function Zl(t){return t===9||t===32}function ei(t){return t===9||t===32||t===10||t===13}function Ou(t){return t===44||t===91||t===93||t===123||t===125}function uye(t){var e;return 48<=t&&t<=57?t-48:(e=t|32,97<=e&&e<=102?e-97+10:-1)}function dye(t){return t===120?2:t===117?4:t===85?8:0}function fye(t){return 48<=t&&t<=57?t-48:-1}function IM(t){return t===48?"\0":t===97?"\x07":t===98?"\b":t===116||t===9?" ":t===110?`
|
|
221
|
+
`:t===118?"\v":t===102?"\f":t===114?"\r":t===101?"\x1B":t===32?" ":t===34?'"':t===47?"/":t===92?"\\":t===78?"
":t===95?" ":t===76?"\u2028":t===80?"\u2029":""}function hye(t){return t<=65535?String.fromCharCode(t):String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}var A9=new Array(256),I9=new Array(256);for(var Vc=0;Vc<256;Vc++)A9[Vc]=IM(Vc)?1:0,I9[Vc]=IM(Vc);function pye(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||lI,this.onWarning=e.onWarning||null,this.legacy=e.legacy||!1,this.json=e.json||!1,this.listener=e.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function T9(t,e){var r={name:t.filename,buffer:t.input.slice(0,-1),position:t.position,line:t.line,column:t.position-t.lineStart};return r.snippet=vme(r),new Tn(e,r)}function Fe(t,e){throw T9(t,e)}function NO(t,e){t.onWarning&&t.onWarning.call(null,T9(t,e))}var TM={YAML:function(e,r,n){var i,o,s;e.version!==null&&Fe(e,"duplication of %YAML directive"),n.length!==1&&Fe(e,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),i===null&&Fe(e,"ill-formed argument of the YAML directive"),o=parseInt(i[1],10),s=parseInt(i[2],10),o!==1&&Fe(e,"unacceptable YAML version of the document"),e.version=n[0],e.checkLineBreaks=s<2,s!==1&&s!==2&&NO(e,"unsupported YAML version of the document")},TAG:function(e,r,n){var i,o;n.length!==2&&Fe(e,"TAG directive accepts exactly two arguments"),i=n[0],o=n[1],$9.test(i)||Fe(e,"ill-formed tag handle (first argument) of the TAG directive"),Ka.call(e.tagMap,i)&&Fe(e,'there is a previously declared suffix for "'+i+'" tag handle'),E9.test(o)||Fe(e,"ill-formed tag prefix (second argument) of the TAG directive");try{o=decodeURIComponent(o)}catch{Fe(e,"tag prefix is malformed: "+o)}e.tagMap[i]=o}};function Fa(t,e,r,n){var i,o,s,a;if(e<r){if(a=t.input.slice(e,r),n)for(i=0,o=a.length;i<o;i+=1)s=a.charCodeAt(i),s===9||32<=s&&s<=1114111||Fe(t,"expected valid JSON character");else aye.test(a)&&Fe(t,"the stream contains non-printable characters");t.result+=a}}function _M(t,e,r,n){var i,o,s,a;for(Lr.isObject(r)||Fe(t,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(r),s=0,a=i.length;s<a;s+=1)o=i[s],Ka.call(e,o)||(e[o]=r[o],n[o]=!0)}function xu(t,e,r,n,i,o,s,a,l){var c,u;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),c=0,u=i.length;c<u;c+=1)Array.isArray(i[c])&&Fe(t,"nested arrays are not supported inside keys"),typeof i=="object"&&AM(i[c])==="[object Object]"&&(i[c]="[object Object]");if(typeof i=="object"&&AM(i)==="[object Object]"&&(i="[object Object]"),i=String(i),e===null&&(e={}),n==="tag:yaml.org,2002:merge")if(Array.isArray(o))for(c=0,u=o.length;c<u;c+=1)_M(t,e,o[c],r);else _M(t,e,o,r);else!t.json&&!Ka.call(r,i)&&Ka.call(e,i)&&(t.line=s||t.line,t.lineStart=a||t.lineStart,t.position=l||t.position,Fe(t,"duplicated mapping key")),i==="__proto__"?Object.defineProperty(e,i,{configurable:!0,enumerable:!0,writable:!0,value:o}):e[i]=o,delete r[i];return e}function cI(t){var e;e=t.input.charCodeAt(t.position),e===10?t.position++:e===13?(t.position++,t.input.charCodeAt(t.position)===10&&t.position++):Fe(t,"a line break is expected"),t.line+=1,t.lineStart=t.position,t.firstTabInLine=-1}function Ir(t,e,r){for(var n=0,i=t.input.charCodeAt(t.position);i!==0;){for(;Zl(i);)i===9&&t.firstTabInLine===-1&&(t.firstTabInLine=t.position),i=t.input.charCodeAt(++t.position);if(e&&i===35)do i=t.input.charCodeAt(++t.position);while(i!==10&&i!==13&&i!==0);if(rs(i))for(cI(t),i=t.input.charCodeAt(t.position),n++,t.lineIndent=0;i===32;)t.lineIndent++,i=t.input.charCodeAt(++t.position);else break}return r!==-1&&n!==0&&t.lineIndent<r&&NO(t,"deficient indentation"),n}function $x(t){var e=t.position,r;return r=t.input.charCodeAt(e),!!((r===45||r===46)&&r===t.input.charCodeAt(e+1)&&r===t.input.charCodeAt(e+2)&&(e+=3,r=t.input.charCodeAt(e),r===0||ei(r)))}function uI(t,e){e===1?t.result+=" ":e>1&&(t.result+=Lr.repeat(`
|
|
222
|
+
`,e-1))}function gye(t,e,r){var n,i,o,s,a,l,c,u,d=t.kind,f=t.result,h;if(h=t.input.charCodeAt(t.position),ei(h)||Ou(h)||h===35||h===38||h===42||h===33||h===124||h===62||h===39||h===34||h===37||h===64||h===96||(h===63||h===45)&&(i=t.input.charCodeAt(t.position+1),ei(i)||r&&Ou(i)))return!1;for(t.kind="scalar",t.result="",o=s=t.position,a=!1;h!==0;){if(h===58){if(i=t.input.charCodeAt(t.position+1),ei(i)||r&&Ou(i))break}else if(h===35){if(n=t.input.charCodeAt(t.position-1),ei(n))break}else{if(t.position===t.lineStart&&$x(t)||r&&Ou(h))break;if(rs(h))if(l=t.line,c=t.lineStart,u=t.lineIndent,Ir(t,!1,-1),t.lineIndent>=e){a=!0,h=t.input.charCodeAt(t.position);continue}else{t.position=s,t.line=l,t.lineStart=c,t.lineIndent=u;break}}a&&(Fa(t,o,s,!1),uI(t,t.line-l),o=s=t.position,a=!1),Zl(h)||(s=t.position+1),h=t.input.charCodeAt(++t.position)}return Fa(t,o,s,!1),t.result?!0:(t.kind=d,t.result=f,!1)}function mye(t,e){var r,n,i;if(r=t.input.charCodeAt(t.position),r!==39)return!1;for(t.kind="scalar",t.result="",t.position++,n=i=t.position;(r=t.input.charCodeAt(t.position))!==0;)if(r===39)if(Fa(t,n,t.position,!0),r=t.input.charCodeAt(++t.position),r===39)n=t.position,t.position++,i=t.position;else return!0;else rs(r)?(Fa(t,n,i,!0),uI(t,Ir(t,!1,e)),n=i=t.position):t.position===t.lineStart&&$x(t)?Fe(t,"unexpected end of the document within a single quoted scalar"):(t.position++,i=t.position);Fe(t,"unexpected end of the stream within a single quoted scalar")}function yye(t,e){var r,n,i,o,s,a;if(a=t.input.charCodeAt(t.position),a!==34)return!1;for(t.kind="scalar",t.result="",t.position++,r=n=t.position;(a=t.input.charCodeAt(t.position))!==0;){if(a===34)return Fa(t,r,t.position,!0),t.position++,!0;if(a===92){if(Fa(t,r,t.position,!0),a=t.input.charCodeAt(++t.position),rs(a))Ir(t,!1,e);else if(a<256&&A9[a])t.result+=I9[a],t.position++;else if((s=dye(a))>0){for(i=s,o=0;i>0;i--)a=t.input.charCodeAt(++t.position),(s=uye(a))>=0?o=(o<<4)+s:Fe(t,"expected hexadecimal character");t.result+=hye(o),t.position++}else Fe(t,"unknown escape sequence");r=n=t.position}else rs(a)?(Fa(t,r,n,!0),uI(t,Ir(t,!1,e)),r=n=t.position):t.position===t.lineStart&&$x(t)?Fe(t,"unexpected end of the document within a double quoted scalar"):(t.position++,n=t.position)}Fe(t,"unexpected end of the stream within a double quoted scalar")}function vye(t,e){var r=!0,n,i,o,s=t.tag,a,l=t.anchor,c,u,d,f,h,g=Object.create(null),p,y,v,b;if(b=t.input.charCodeAt(t.position),b===91)u=93,h=!1,a=[];else if(b===123)u=125,h=!0,a={};else return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=a),b=t.input.charCodeAt(++t.position);b!==0;){if(Ir(t,!0,e),b=t.input.charCodeAt(t.position),b===u)return t.position++,t.tag=s,t.anchor=l,t.kind=h?"mapping":"sequence",t.result=a,!0;r?b===44&&Fe(t,"expected the node content, but found ','"):Fe(t,"missed comma between flow collection entries"),y=p=v=null,d=f=!1,b===63&&(c=t.input.charCodeAt(t.position+1),ei(c)&&(d=f=!0,t.position++,Ir(t,!0,e))),n=t.line,i=t.lineStart,o=t.position,gd(t,e,DO,!1,!0),y=t.tag,p=t.result,Ir(t,!0,e),b=t.input.charCodeAt(t.position),(f||t.line===n)&&b===58&&(d=!0,b=t.input.charCodeAt(++t.position),Ir(t,!0,e),gd(t,e,DO,!1,!0),v=t.result),h?xu(t,a,g,y,p,v,n,i,o):d?a.push(xu(t,null,g,y,p,v,n,i,o)):a.push(p),Ir(t,!0,e),b=t.input.charCodeAt(t.position),b===44?(r=!0,b=t.input.charCodeAt(++t.position)):r=!1}Fe(t,"unexpected end of the stream within a flow collection")}function bye(t,e){var r,n,i=l1,o=!1,s=!1,a=e,l=0,c=!1,u,d;if(d=t.input.charCodeAt(t.position),d===124)n=!1;else if(d===62)n=!0;else return!1;for(t.kind="scalar",t.result="";d!==0;)if(d=t.input.charCodeAt(++t.position),d===43||d===45)l1===i?i=d===43?EM:sye:Fe(t,"repeat of a chomping mode identifier");else if((u=fye(d))>=0)u===0?Fe(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):s?Fe(t,"repeat of an indentation width identifier"):(a=e+u-1,s=!0);else break;if(Zl(d)){do d=t.input.charCodeAt(++t.position);while(Zl(d));if(d===35)do d=t.input.charCodeAt(++t.position);while(!rs(d)&&d!==0)}for(;d!==0;){for(cI(t),t.lineIndent=0,d=t.input.charCodeAt(t.position);(!s||t.lineIndent<a)&&d===32;)t.lineIndent++,d=t.input.charCodeAt(++t.position);if(!s&&t.lineIndent>a&&(a=t.lineIndent),rs(d)){l++;continue}if(t.lineIndent<a){i===EM?t.result+=Lr.repeat(`
|
|
223
223
|
`,o?1+l:l):i===l1&&o&&(t.result+=`
|
|
224
224
|
`);break}for(n?Zl(d)?(c=!0,t.result+=Lr.repeat(`
|
|
225
225
|
`,o?1+l:l)):c?(c=!1,t.result+=Lr.repeat(`
|
|
226
226
|
`,l+1)):l===0?o&&(t.result+=" "):t.result+=Lr.repeat(`
|
|
227
227
|
`,l):t.result+=Lr.repeat(`
|
|
228
|
-
`,o?1+l:l),o=!0,s=!0,l=0,r=t.position;!rs(d)&&d!==0;)d=t.input.charCodeAt(++t.position);Fa(t,r,t.position,!1)}return!0}function RM(t,e){var r,n=t.tag,i=t.anchor,o=[],s,a=!1,l;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=o),l=t.input.charCodeAt(t.position);l!==0&&(t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,Fe(t,"tab characters must not be used in indentation")),!(l!==45||(s=t.input.charCodeAt(t.position+1),!ei(s))));){if(a=!0,t.position++,Ir(t,!0,-1)&&t.lineIndent<=e){o.push(null),l=t.input.charCodeAt(t.position);continue}if(r=t.line,gd(t,e,
|
|
229
|
-
`),t.charCodeAt(0)===65279&&(t=t.slice(1)));var r=new pye(t,e),n=t.indexOf("\0");for(n!==-1&&(r.position=n,Fe(r,"null byte is not allowed in input")),r.input+="\0";r.input.charCodeAt(r.position)===32;)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)Cye(r);return r.documents}function Pye(t,e,r){e!==null&&typeof e=="object"&&typeof r>"u"&&(r=e,e=null);var n=
|
|
228
|
+
`,o?1+l:l),o=!0,s=!0,l=0,r=t.position;!rs(d)&&d!==0;)d=t.input.charCodeAt(++t.position);Fa(t,r,t.position,!1)}return!0}function RM(t,e){var r,n=t.tag,i=t.anchor,o=[],s,a=!1,l;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=o),l=t.input.charCodeAt(t.position);l!==0&&(t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,Fe(t,"tab characters must not be used in indentation")),!(l!==45||(s=t.input.charCodeAt(t.position+1),!ei(s))));){if(a=!0,t.position++,Ir(t,!0,-1)&&t.lineIndent<=e){o.push(null),l=t.input.charCodeAt(t.position);continue}if(r=t.line,gd(t,e,k9,!1,!0),o.push(t.result),Ir(t,!0,-1),l=t.input.charCodeAt(t.position),(t.line===r||t.lineIndent>e)&&l!==0)Fe(t,"bad indentation of a sequence entry");else if(t.lineIndent<e)break}return a?(t.tag=n,t.anchor=i,t.kind="sequence",t.result=o,!0):!1}function Oye(t,e,r){var n,i,o,s,a,l,c=t.tag,u=t.anchor,d={},f=Object.create(null),h=null,g=null,p=null,y=!1,v=!1,b;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=d),b=t.input.charCodeAt(t.position);b!==0;){if(!y&&t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,Fe(t,"tab characters must not be used in indentation")),n=t.input.charCodeAt(t.position+1),o=t.line,(b===63||b===58)&&ei(n))b===63?(y&&(xu(t,d,f,h,g,null,s,a,l),h=g=p=null),v=!0,y=!0,i=!0):y?(y=!1,i=!0):Fe(t,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),t.position+=1,b=n;else{if(s=t.line,a=t.lineStart,l=t.position,!gd(t,r,P9,!1,!0))break;if(t.line===o){for(b=t.input.charCodeAt(t.position);Zl(b);)b=t.input.charCodeAt(++t.position);if(b===58)b=t.input.charCodeAt(++t.position),ei(b)||Fe(t,"a whitespace character is expected after the key-value separator within a block mapping"),y&&(xu(t,d,f,h,g,null,s,a,l),h=g=p=null),v=!0,y=!1,i=!1,h=t.tag,g=t.result;else if(v)Fe(t,"can not read an implicit mapping pair; a colon is missed");else return t.tag=c,t.anchor=u,!0}else if(v)Fe(t,"can not read a block mapping entry; a multiline key may not be an implicit key");else return t.tag=c,t.anchor=u,!0}if((t.line===o||t.lineIndent>e)&&(y&&(s=t.line,a=t.lineStart,l=t.position),gd(t,e,MO,!0,i)&&(y?g=t.result:p=t.result),y||(xu(t,d,f,h,g,p,s,a,l),h=g=p=null),Ir(t,!0,-1),b=t.input.charCodeAt(t.position)),(t.line===o||t.lineIndent>e)&&b!==0)Fe(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return y&&xu(t,d,f,h,g,null,s,a,l),v&&(t.tag=c,t.anchor=u,t.kind="mapping",t.result=d),v}function xye(t){var e,r=!1,n=!1,i,o,s;if(s=t.input.charCodeAt(t.position),s!==33)return!1;if(t.tag!==null&&Fe(t,"duplication of a tag property"),s=t.input.charCodeAt(++t.position),s===60?(r=!0,s=t.input.charCodeAt(++t.position)):s===33?(n=!0,i="!!",s=t.input.charCodeAt(++t.position)):i="!",e=t.position,r){do s=t.input.charCodeAt(++t.position);while(s!==0&&s!==62);t.position<t.length?(o=t.input.slice(e,t.position),s=t.input.charCodeAt(++t.position)):Fe(t,"unexpected end of the stream within a verbatim tag")}else{for(;s!==0&&!ei(s);)s===33&&(n?Fe(t,"tag suffix cannot contain exclamation marks"):(i=t.input.slice(e-1,t.position+1),$9.test(i)||Fe(t,"named tag handle cannot contain such characters"),n=!0,e=t.position+1)),s=t.input.charCodeAt(++t.position);o=t.input.slice(e,t.position),cye.test(o)&&Fe(t,"tag suffix cannot contain flow indicator characters")}o&&!E9.test(o)&&Fe(t,"tag name cannot contain such characters: "+o);try{o=decodeURIComponent(o)}catch{Fe(t,"tag name is malformed: "+o)}return r?t.tag=o:Ka.call(t.tagMap,i)?t.tag=t.tagMap[i]+o:i==="!"?t.tag="!"+o:i==="!!"?t.tag="tag:yaml.org,2002:"+o:Fe(t,'undeclared tag handle "'+i+'"'),!0}function Sye(t){var e,r;if(r=t.input.charCodeAt(t.position),r!==38)return!1;for(t.anchor!==null&&Fe(t,"duplication of an anchor property"),r=t.input.charCodeAt(++t.position),e=t.position;r!==0&&!ei(r)&&!Ou(r);)r=t.input.charCodeAt(++t.position);return t.position===e&&Fe(t,"name of an anchor node must contain at least one character"),t.anchor=t.input.slice(e,t.position),!0}function wye(t){var e,r,n;if(n=t.input.charCodeAt(t.position),n!==42)return!1;for(n=t.input.charCodeAt(++t.position),e=t.position;n!==0&&!ei(n)&&!Ou(n);)n=t.input.charCodeAt(++t.position);return t.position===e&&Fe(t,"name of an alias node must contain at least one character"),r=t.input.slice(e,t.position),Ka.call(t.anchorMap,r)||Fe(t,'unidentified alias "'+r+'"'),t.result=t.anchorMap[r],Ir(t,!0,-1),!0}function gd(t,e,r,n,i){var o,s,a,l=1,c=!1,u=!1,d,f,h,g,p,y;if(t.listener!==null&&t.listener("open",t),t.tag=null,t.anchor=null,t.kind=null,t.result=null,o=s=a=MO===r||k9===r,n&&Ir(t,!0,-1)&&(c=!0,t.lineIndent>e?l=1:t.lineIndent===e?l=0:t.lineIndent<e&&(l=-1)),l===1)for(;xye(t)||Sye(t);)Ir(t,!0,-1)?(c=!0,a=o,t.lineIndent>e?l=1:t.lineIndent===e?l=0:t.lineIndent<e&&(l=-1)):a=!1;if(a&&(a=c||i),(l===1||MO===r)&&(DO===r||P9===r?p=e:p=e+1,y=t.position-t.lineStart,l===1?a&&(RM(t,y)||Oye(t,y,p))||vye(t,p)?u=!0:(s&&bye(t,p)||mye(t,p)||yye(t,p)?u=!0:wye(t)?(u=!0,(t.tag!==null||t.anchor!==null)&&Fe(t,"alias node should not have any properties")):gye(t,p,DO===r)&&(u=!0,t.tag===null&&(t.tag="?")),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):l===0&&(u=a&&RM(t,y))),t.tag===null)t.anchor!==null&&(t.anchorMap[t.anchor]=t.result);else if(t.tag==="?"){for(t.result!==null&&t.kind!=="scalar"&&Fe(t,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+t.kind+'"'),d=0,f=t.implicitTypes.length;d<f;d+=1)if(g=t.implicitTypes[d],g.resolve(t.result)){t.result=g.construct(t.result),t.tag=g.tag,t.anchor!==null&&(t.anchorMap[t.anchor]=t.result);break}}else if(t.tag!=="!"){if(Ka.call(t.typeMap[t.kind||"fallback"],t.tag))g=t.typeMap[t.kind||"fallback"][t.tag];else for(g=null,h=t.typeMap.multi[t.kind||"fallback"],d=0,f=h.length;d<f;d+=1)if(t.tag.slice(0,h[d].tag.length)===h[d].tag){g=h[d];break}g||Fe(t,"unknown tag !<"+t.tag+">"),t.result!==null&&g.kind!==t.kind&&Fe(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+g.kind+'", not "'+t.kind+'"'),g.resolve(t.result,t.tag)?(t.result=g.construct(t.result,t.tag),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):Fe(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")}return t.listener!==null&&t.listener("close",t),t.tag!==null||t.anchor!==null||u}function Cye(t){var e=t.position,r,n,i,o=!1,s;for(t.version=null,t.checkLineBreaks=t.legacy,t.tagMap=Object.create(null),t.anchorMap=Object.create(null);(s=t.input.charCodeAt(t.position))!==0&&(Ir(t,!0,-1),s=t.input.charCodeAt(t.position),!(t.lineIndent>0||s!==37));){for(o=!0,s=t.input.charCodeAt(++t.position),r=t.position;s!==0&&!ei(s);)s=t.input.charCodeAt(++t.position);for(n=t.input.slice(r,t.position),i=[],n.length<1&&Fe(t,"directive name must not be less than one character in length");s!==0;){for(;Zl(s);)s=t.input.charCodeAt(++t.position);if(s===35){do s=t.input.charCodeAt(++t.position);while(s!==0&&!rs(s));break}if(rs(s))break;for(r=t.position;s!==0&&!ei(s);)s=t.input.charCodeAt(++t.position);i.push(t.input.slice(r,t.position))}s!==0&&cI(t),Ka.call(TM,n)?TM[n](t,n,i):NO(t,'unknown document directive "'+n+'"')}if(Ir(t,!0,-1),t.lineIndent===0&&t.input.charCodeAt(t.position)===45&&t.input.charCodeAt(t.position+1)===45&&t.input.charCodeAt(t.position+2)===45?(t.position+=3,Ir(t,!0,-1)):o&&Fe(t,"directives end mark is expected"),gd(t,t.lineIndent-1,MO,!1,!0),Ir(t,!0,-1),t.checkLineBreaks&&lye.test(t.input.slice(e,t.position))&&NO(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&$x(t)){t.input.charCodeAt(t.position)===46&&(t.position+=3,Ir(t,!0,-1));return}if(t.position<t.length-1)Fe(t,"end of the stream or a document separator is expected");else return}function _9(t,e){t=String(t),e=e||{},t.length!==0&&(t.charCodeAt(t.length-1)!==10&&t.charCodeAt(t.length-1)!==13&&(t+=`
|
|
229
|
+
`),t.charCodeAt(0)===65279&&(t=t.slice(1)));var r=new pye(t,e),n=t.indexOf("\0");for(n!==-1&&(r.position=n,Fe(r,"null byte is not allowed in input")),r.input+="\0";r.input.charCodeAt(r.position)===32;)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)Cye(r);return r.documents}function Pye(t,e,r){e!==null&&typeof e=="object"&&typeof r>"u"&&(r=e,e=null);var n=_9(t,r);if(typeof e!="function")return n;for(var i=0,o=n.length;i<o;i+=1)e(n[i])}function kye(t,e){var r=_9(t,e);if(r.length!==0){if(r.length===1)return r[0];throw new Tn("expected a single document in the stream, but found more")}}var $ye=Pye,Eye=kye,R9={loadAll:$ye,load:Eye},j9=Object.prototype.toString,D9=Object.prototype.hasOwnProperty,dI=65279,Aye=9,fp=10,Iye=13,Tye=32,_ye=33,Rye=34,S$=35,jye=37,Dye=38,Mye=39,Nye=42,M9=44,Lye=45,LO=58,Qye=61,Vye=62,zye=63,Bye=64,N9=91,L9=93,qye=96,Q9=123,Fye=124,V9=125,xn={};xn[0]="\\0";xn[7]="\\a";xn[8]="\\b";xn[9]="\\t";xn[10]="\\n";xn[11]="\\v";xn[12]="\\f";xn[13]="\\r";xn[27]="\\e";xn[34]='\\"';xn[92]="\\\\";xn[133]="\\N";xn[160]="\\_";xn[8232]="\\L";xn[8233]="\\P";var Wye=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],Uye=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function Xye(t,e){var r,n,i,o,s,a,l;if(e===null)return{};for(r={},n=Object.keys(e),i=0,o=n.length;i<o;i+=1)s=n[i],a=String(e[s]),s.slice(0,2)==="!!"&&(s="tag:yaml.org,2002:"+s.slice(2)),l=t.compiledTypeMap.fallback[s],l&&D9.call(l.styleAliases,a)&&(a=l.styleAliases[a]),r[s]=a;return r}function Zye(t){var e,r,n;if(e=t.toString(16).toUpperCase(),t<=255)r="x",n=2;else if(t<=65535)r="u",n=4;else if(t<=4294967295)r="U",n=8;else throw new Tn("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+Lr.repeat("0",n-e.length)+e}var Gye=1,hp=2;function Yye(t){this.schema=t.schema||lI,this.indent=Math.max(1,t.indent||2),this.noArrayIndent=t.noArrayIndent||!1,this.skipInvalid=t.skipInvalid||!1,this.flowLevel=Lr.isNothing(t.flowLevel)?-1:t.flowLevel,this.styleMap=Xye(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==='"'?hp:Gye,this.forceQuotes=t.forceQuotes||!1,this.replacer=typeof t.replacer=="function"?t.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function jM(t,e){for(var r=Lr.repeat(" ",e),n=0,i=-1,o="",s,a=t.length;n<a;)i=t.indexOf(`
|
|
230
230
|
`,n),i===-1?(s=t.slice(n),n=a):(s=t.slice(n,i+1),n=i+1),s.length&&s!==`
|
|
231
231
|
`&&(o+=r),o+=s;return o}function w$(t,e){return`
|
|
232
|
-
`+Lr.repeat(" ",t.indent*e)}function Hye(t,e){var r,n,i;for(r=0,n=t.implicitTypes.length;r<n;r+=1)if(i=t.implicitTypes[r],i.resolve(e))return!0;return!1}function QO(t){return t===Tye||t===Aye}function pp(t){return 32<=t&&t<=126||161<=t&&t<=55295&&t!==8232&&t!==8233||57344<=t&&t<=65533&&t!==dI||65536<=t&&t<=1114111}function DM(t){return pp(t)&&t!==dI&&t!==Iye&&t!==fp}function MM(t,e,r){var n=DM(t),i=n&&!QO(t);return(r?n:n&&t!==
|
|
232
|
+
`+Lr.repeat(" ",t.indent*e)}function Hye(t,e){var r,n,i;for(r=0,n=t.implicitTypes.length;r<n;r+=1)if(i=t.implicitTypes[r],i.resolve(e))return!0;return!1}function QO(t){return t===Tye||t===Aye}function pp(t){return 32<=t&&t<=126||161<=t&&t<=55295&&t!==8232&&t!==8233||57344<=t&&t<=65533&&t!==dI||65536<=t&&t<=1114111}function DM(t){return pp(t)&&t!==dI&&t!==Iye&&t!==fp}function MM(t,e,r){var n=DM(t),i=n&&!QO(t);return(r?n:n&&t!==M9&&t!==N9&&t!==L9&&t!==Q9&&t!==V9)&&t!==S$&&!(e===LO&&!i)||DM(e)&&!QO(e)&&t===S$||e===LO&&i}function Jye(t){return pp(t)&&t!==dI&&!QO(t)&&t!==Lye&&t!==zye&&t!==LO&&t!==M9&&t!==N9&&t!==L9&&t!==Q9&&t!==V9&&t!==S$&&t!==Dye&&t!==Nye&&t!==_ye&&t!==Fye&&t!==Qye&&t!==Vye&&t!==Mye&&t!==Rye&&t!==jye&&t!==Bye&&t!==qye}function Kye(t){return!QO(t)&&t!==LO}function lh(t,e){var r=t.charCodeAt(e),n;return r>=55296&&r<=56319&&e+1<t.length&&(n=t.charCodeAt(e+1),n>=56320&&n<=57343)?(r-55296)*1024+n-56320+65536:r}function z9(t){var e=/^\n* /;return e.test(t)}var B9=1,C$=2,q9=3,F9=4,lu=5;function eve(t,e,r,n,i,o,s,a){var l,c=0,u=null,d=!1,f=!1,h=n!==-1,g=-1,p=Jye(lh(t,0))&&Kye(lh(t,t.length-1));if(e||s)for(l=0;l<t.length;c>=65536?l+=2:l++){if(c=lh(t,l),!pp(c))return lu;p=p&&MM(c,u,a),u=c}else{for(l=0;l<t.length;c>=65536?l+=2:l++){if(c=lh(t,l),c===fp)d=!0,h&&(f=f||l-g-1>n&&t[g+1]!==" ",g=l);else if(!pp(c))return lu;p=p&&MM(c,u,a),u=c}f=f||h&&l-g-1>n&&t[g+1]!==" "}return!d&&!f?p&&!s&&!i(t)?B9:o===hp?lu:C$:r>9&&z9(t)?lu:s?o===hp?lu:C$:f?F9:q9}function tve(t,e,r,n,i){t.dump=(function(){if(e.length===0)return t.quotingType===hp?'""':"''";if(!t.noCompatMode&&(Wye.indexOf(e)!==-1||Uye.test(e)))return t.quotingType===hp?'"'+e+'"':"'"+e+"'";var o=t.indent*Math.max(1,r),s=t.lineWidth===-1?-1:Math.max(Math.min(t.lineWidth,40),t.lineWidth-o),a=n||t.flowLevel>-1&&r>=t.flowLevel;function l(c){return Hye(t,c)}switch(eve(e,a,t.indent,s,l,t.quotingType,t.forceQuotes&&!n,i)){case B9:return e;case C$:return"'"+e.replace(/'/g,"''")+"'";case q9:return"|"+NM(e,t.indent)+LM(jM(e,o));case F9:return">"+NM(e,t.indent)+LM(jM(rve(e,s),o));case lu:return'"'+nve(e)+'"';default:throw new Tn("impossible error: invalid scalar style")}})()}function NM(t,e){var r=z9(t)?String(e):"",n=t[t.length-1]===`
|
|
233
233
|
`,i=n&&(t[t.length-2]===`
|
|
234
234
|
`||t===`
|
|
235
235
|
`),o=i?"+":n?"":"-";return r+o+`
|
|
@@ -240,13 +240,13 @@ $3`);return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}}function vge(t){return t.
|
|
|
240
240
|
`:"")+QM(l,e),i=o}return n}function QM(t,e){if(t===""||t[0]===" ")return t;for(var r=/ [^ ]/g,n,i=0,o,s=0,a=0,l="";n=r.exec(t);)a=n.index,a-i>e&&(o=s>i?s:a,l+=`
|
|
241
241
|
`+t.slice(i,o),i=o+1),s=a;return l+=`
|
|
242
242
|
`,t.length-i>e&&s>i?l+=t.slice(i,s)+`
|
|
243
|
-
`+t.slice(s+1):l+=t.slice(i),l.slice(1)}function nve(t){for(var e="",r=0,n,i=0;i<t.length;r>=65536?i+=2:i++)r=lh(t,i),n=xn[r],!n&&pp(r)?(e+=t[i],r>=65536&&(e+=t[i+1])):e+=n||Zye(r);return e}function ive(t,e,r){var n="",i=t.tag,o,s,a;for(o=0,s=r.length;o<s;o+=1)a=r[o],t.replacer&&(a=t.replacer.call(r,String(o),a)),(Hs(t,e,a,!1,!1)||typeof a>"u"&&Hs(t,e,null,!1,!1))&&(n!==""&&(n+=","+(t.condenseFlow?"":" ")),n+=t.dump);t.tag=i,t.dump="["+n+"]"}function VM(t,e,r,n){var i="",o=t.tag,s,a,l;for(s=0,a=r.length;s<a;s+=1)l=r[s],t.replacer&&(l=t.replacer.call(r,String(s),l)),(Hs(t,e+1,l,!0,!0,!1,!0)||typeof l>"u"&&Hs(t,e+1,null,!0,!0,!1,!0))&&((!n||i!=="")&&(i+=w$(t,e)),t.dump&&fp===t.dump.charCodeAt(0)?i+="-":i+="- ",i+=t.dump);t.tag=o,t.dump=i||"[]"}function ove(t,e,r){var n="",i=t.tag,o=Object.keys(r),s,a,l,c,u;for(s=0,a=o.length;s<a;s+=1)u="",n!==""&&(u+=", "),t.condenseFlow&&(u+='"'),l=o[s],c=r[l],t.replacer&&(c=t.replacer.call(r,l,c)),Hs(t,e,l,!1,!1)&&(t.dump.length>1024&&(u+="? "),u+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),Hs(t,e,c,!1,!1)&&(u+=t.dump,n+=u));t.tag=i,t.dump="{"+n+"}"}function sve(t,e,r,n){var i="",o=t.tag,s=Object.keys(r),a,l,c,u,d,f;if(t.sortKeys===!0)s.sort();else if(typeof t.sortKeys=="function")s.sort(t.sortKeys);else if(t.sortKeys)throw new Tn("sortKeys must be a boolean or a function");for(a=0,l=s.length;a<l;a+=1)f="",(!n||i!=="")&&(f+=w$(t,e)),c=s[a],u=r[c],t.replacer&&(u=t.replacer.call(r,c,u)),Hs(t,e+1,c,!0,!0,!0)&&(d=t.tag!==null&&t.tag!=="?"||t.dump&&t.dump.length>1024,d&&(t.dump&&fp===t.dump.charCodeAt(0)?f+="?":f+="? "),f+=t.dump,d&&(f+=w$(t,e)),Hs(t,e+1,u,!0,d)&&(t.dump&&fp===t.dump.charCodeAt(0)?f+=":":f+=": ",f+=t.dump,i+=f));t.tag=o,t.dump=i||"{}"}function zM(t,e,r){var n,i,o,s,a,l;for(i=r?t.explicitTypes:t.implicitTypes,o=0,s=i.length;o<s;o+=1)if(a=i[o],(a.instanceOf||a.predicate)&&(!a.instanceOf||typeof e=="object"&&e instanceof a.instanceOf)&&(!a.predicate||a.predicate(e))){if(r?a.multi&&a.representName?t.tag=a.representName(e):t.tag=a.tag:t.tag="?",a.represent){if(l=t.styleMap[a.tag]||a.defaultStyle,
|
|
244
|
-
`:""}var cve=lve,uve={dump:cve};function fI(t,e){return function(){throw new Error("Function yaml."+t+" is removed in js-yaml 4. Use yaml."+e+" instead, which is now safe by default.")}}var dve=nn,fve=
|
|
243
|
+
`+t.slice(s+1):l+=t.slice(i),l.slice(1)}function nve(t){for(var e="",r=0,n,i=0;i<t.length;r>=65536?i+=2:i++)r=lh(t,i),n=xn[r],!n&&pp(r)?(e+=t[i],r>=65536&&(e+=t[i+1])):e+=n||Zye(r);return e}function ive(t,e,r){var n="",i=t.tag,o,s,a;for(o=0,s=r.length;o<s;o+=1)a=r[o],t.replacer&&(a=t.replacer.call(r,String(o),a)),(Hs(t,e,a,!1,!1)||typeof a>"u"&&Hs(t,e,null,!1,!1))&&(n!==""&&(n+=","+(t.condenseFlow?"":" ")),n+=t.dump);t.tag=i,t.dump="["+n+"]"}function VM(t,e,r,n){var i="",o=t.tag,s,a,l;for(s=0,a=r.length;s<a;s+=1)l=r[s],t.replacer&&(l=t.replacer.call(r,String(s),l)),(Hs(t,e+1,l,!0,!0,!1,!0)||typeof l>"u"&&Hs(t,e+1,null,!0,!0,!1,!0))&&((!n||i!=="")&&(i+=w$(t,e)),t.dump&&fp===t.dump.charCodeAt(0)?i+="-":i+="- ",i+=t.dump);t.tag=o,t.dump=i||"[]"}function ove(t,e,r){var n="",i=t.tag,o=Object.keys(r),s,a,l,c,u;for(s=0,a=o.length;s<a;s+=1)u="",n!==""&&(u+=", "),t.condenseFlow&&(u+='"'),l=o[s],c=r[l],t.replacer&&(c=t.replacer.call(r,l,c)),Hs(t,e,l,!1,!1)&&(t.dump.length>1024&&(u+="? "),u+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),Hs(t,e,c,!1,!1)&&(u+=t.dump,n+=u));t.tag=i,t.dump="{"+n+"}"}function sve(t,e,r,n){var i="",o=t.tag,s=Object.keys(r),a,l,c,u,d,f;if(t.sortKeys===!0)s.sort();else if(typeof t.sortKeys=="function")s.sort(t.sortKeys);else if(t.sortKeys)throw new Tn("sortKeys must be a boolean or a function");for(a=0,l=s.length;a<l;a+=1)f="",(!n||i!=="")&&(f+=w$(t,e)),c=s[a],u=r[c],t.replacer&&(u=t.replacer.call(r,c,u)),Hs(t,e+1,c,!0,!0,!0)&&(d=t.tag!==null&&t.tag!=="?"||t.dump&&t.dump.length>1024,d&&(t.dump&&fp===t.dump.charCodeAt(0)?f+="?":f+="? "),f+=t.dump,d&&(f+=w$(t,e)),Hs(t,e+1,u,!0,d)&&(t.dump&&fp===t.dump.charCodeAt(0)?f+=":":f+=": ",f+=t.dump,i+=f));t.tag=o,t.dump=i||"{}"}function zM(t,e,r){var n,i,o,s,a,l;for(i=r?t.explicitTypes:t.implicitTypes,o=0,s=i.length;o<s;o+=1)if(a=i[o],(a.instanceOf||a.predicate)&&(!a.instanceOf||typeof e=="object"&&e instanceof a.instanceOf)&&(!a.predicate||a.predicate(e))){if(r?a.multi&&a.representName?t.tag=a.representName(e):t.tag=a.tag:t.tag="?",a.represent){if(l=t.styleMap[a.tag]||a.defaultStyle,j9.call(a.represent)==="[object Function]")n=a.represent(e,l);else if(D9.call(a.represent,l))n=a.represent[l](e,l);else throw new Tn("!<"+a.tag+'> tag resolver accepts not "'+l+'" style');t.dump=n}return!0}return!1}function Hs(t,e,r,n,i,o,s){t.tag=null,t.dump=r,zM(t,r,!1)||zM(t,r,!0);var a=j9.call(t.dump),l=n,c;n&&(n=t.flowLevel<0||t.flowLevel>e);var u=a==="[object Object]"||a==="[object Array]",d,f;if(u&&(d=t.duplicates.indexOf(r),f=d!==-1),(t.tag!==null&&t.tag!=="?"||f||t.indent!==2&&e>0)&&(i=!1),f&&t.usedDuplicates[d])t.dump="*ref_"+d;else{if(u&&f&&!t.usedDuplicates[d]&&(t.usedDuplicates[d]=!0),a==="[object Object]")n&&Object.keys(t.dump).length!==0?(sve(t,e,t.dump,i),f&&(t.dump="&ref_"+d+t.dump)):(ove(t,e,t.dump),f&&(t.dump="&ref_"+d+" "+t.dump));else if(a==="[object Array]")n&&t.dump.length!==0?(t.noArrayIndent&&!s&&e>0?VM(t,e-1,t.dump,i):VM(t,e,t.dump,i),f&&(t.dump="&ref_"+d+t.dump)):(ive(t,e,t.dump),f&&(t.dump="&ref_"+d+" "+t.dump));else if(a==="[object String]")t.tag!=="?"&&tve(t,t.dump,e,o,l);else{if(a==="[object Undefined]")return!1;if(t.skipInvalid)return!1;throw new Tn("unacceptable kind of an object to dump "+a)}t.tag!==null&&t.tag!=="?"&&(c=encodeURI(t.tag[0]==="!"?t.tag.slice(1):t.tag).replace(/!/g,"%21"),t.tag[0]==="!"?c="!"+c:c.slice(0,18)==="tag:yaml.org,2002:"?c="!!"+c.slice(18):c="!<"+c+">",t.dump=c+" "+t.dump)}return!0}function ave(t,e){var r=[],n=[],i,o;for(P$(t,r,n),i=0,o=n.length;i<o;i+=1)e.duplicates.push(r[n[i]]);e.usedDuplicates=new Array(o)}function P$(t,e,r){var n,i,o;if(t!==null&&typeof t=="object")if(i=e.indexOf(t),i!==-1)r.indexOf(i)===-1&&r.push(i);else if(e.push(t),Array.isArray(t))for(i=0,o=t.length;i<o;i+=1)P$(t[i],e,r);else for(n=Object.keys(t),i=0,o=n.length;i<o;i+=1)P$(t[n[i]],e,r)}function lve(t,e){e=e||{};var r=new Yye(e);r.noRefs||ave(t,r);var n=t;return r.replacer&&(n=r.replacer.call({"":n},"",n)),Hs(r,0,n,!0,!0)?r.dump+`
|
|
244
|
+
`:""}var cve=lve,uve={dump:cve};function fI(t,e){return function(){throw new Error("Function yaml."+t+" is removed in js-yaml 4. Use yaml."+e+" instead, which is now safe by default.")}}var dve=nn,fve=s9,hve=u9,W9=g9,pve=m9,gve=lI,U9=R9.load,mve=R9.loadAll,X9=uve.dump,yve=Tn,cu={binary:x9,float:p9,map:c9,null:d9,pairs:w9,set:C9,timestamp:b9,bool:f9,int:h9,merge:O9,omap:S9,seq:l9,str:a9},vve=fI("safeLoad","load"),bve=fI("safeLoadAll","loadAll"),Ove=fI("safeDump","dump"),el={Type:dve,Schema:fve,FAILSAFE_SCHEMA:hve,JSON_SCHEMA:W9,CORE_SCHEMA:pve,DEFAULT_SCHEMA:gve,load:U9,loadAll:mve,dump:X9,YAMLException:yve,types:cu,safeLoad:vve,safeLoadAll:bve,safeDump:Ove};class BM{constructor(e){this.baseDir=e}async ls(e=""){const r=this.makeKey(e);return Object.keys(localStorage).filter(n=>n.startsWith(r)).map(n=>n.replace(r,""))}async get(e){const r=this.makeKey(e);return localStorage.getItem(r)??null}async set(e,r){const n=this.makeKey(e);localStorage.setItem(n,r)}async remove(e){const r=this.makeKey(e);localStorage.removeItem(r)}makeKey(e){return`replay:fs:${this.baseDir}/${e}`}}async function oi(t,e={},r){return window.__TAURI_INTERNALS__.invoke(t,e,r)}var VO;(function(t){t[t.Audio=1]="Audio",t[t.Cache=2]="Cache",t[t.Config=3]="Config",t[t.Data=4]="Data",t[t.LocalData=5]="LocalData",t[t.Document=6]="Document",t[t.Download=7]="Download",t[t.Picture=8]="Picture",t[t.Public=9]="Public",t[t.Video=10]="Video",t[t.Resource=11]="Resource",t[t.Temp=12]="Temp",t[t.AppConfig=13]="AppConfig",t[t.AppData=14]="AppData",t[t.AppLocalData=15]="AppLocalData",t[t.AppCache=16]="AppCache",t[t.AppLog=17]="AppLog",t[t.Desktop=18]="Desktop",t[t.Executable=19]="Executable",t[t.Font=20]="Font",t[t.Home=21]="Home",t[t.Runtime=22]="Runtime",t[t.Template=23]="Template"})(VO||(VO={}));async function xve(){return oi("plugin:path|resolve_directory",{directory:VO.AppData})}async function Sve(){return oi("plugin:path|resolve_directory",{directory:VO.Desktop})}function Z9(){return window.__TAURI_INTERNALS__.plugins.path.sep}async function wve(...t){return oi("plugin:path|resolve",{paths:t})}async function Ih(...t){return oi("plugin:path|join",{paths:t})}async function G9(t,e){return oi("plugin:path|basename",{path:t,ext:e})}async function Cve(t){return oi("plugin:path|is_absolute",{path:t})}var qM;(function(t){t[t.Start=0]="Start",t[t.Current=1]="Current",t[t.End=2]="End"})(qM||(qM={}));async function FM(t,e){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");await oi("plugin:fs|mkdir",{path:t instanceof URL?t.toString():t,options:e})}async function Y9(t,e){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");return await oi("plugin:fs|read_dir",{path:t instanceof URL?t.toString():t,options:e})}async function Pve(t,e){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");const r=await oi("plugin:fs|read_file",{path:t instanceof URL?t.toString():t,options:e});return r instanceof ArrayBuffer?new Uint8Array(r):Uint8Array.from(r)}async function hI(t,e){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");return await oi("plugin:fs|read_text_file",{path:t instanceof URL?t.toString():t,options:e})}async function kve(t,e){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");await oi("plugin:fs|remove",{path:t instanceof URL?t.toString():t,options:e})}async function $ve(t,e,r){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");await oi("plugin:fs|write_text_file",{path:t instanceof URL?t.toString():t,data:e,options:r})}async function H9(t,e){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");return await oi("plugin:fs|exists",{path:t instanceof URL?t.toString():t,options:e})}function Qd(){return!!(window!=null&&window.__TAURI__)}const Vo=class Vo{static async getUtils(){return Vo.utils||(Vo.utils=Qd()?await Promise.resolve().then(()=>require("./replay-tauri-path-dnQvNJdV.js")):await Promise.resolve().then(()=>jNe)),Vo.utils}static async join(...e){return(await Vo.getUtils()).join(...e)}static async resolve(e){return(await Vo.getUtils()).resolve(e)}static async isAbsolute(e){return(await Vo.getUtils()).isAbsolute(e)}static async relative(e,r){return(await Vo.getUtils()).relative(e,r)}};xe(Vo,"utils",null);let Oi=Vo;class WM{constructor(e){this.baseDir=e,this.initializeDirectory(e)}async initializeDirectory(e){await FM(e,{recursive:!0})}async ls(e){const r=await this.getFullPath(e);return this.getDirEntryFilesRecursively(r)}async getDirEntryFilesRecursively(e){try{const r=[],n=await Y9(e);for(const i of n)if(i.isDirectory){const o=await Ih(e,i.name),s=await this.getDirEntryFilesRecursively(o);r.push(...s)}else{const o=await Ih(e,i.name),s=await Oi.relative(this.baseDir,o);r.push(s)}return r}catch(r){return r.includes("forbidden path")||console.error(r),[]}}async get(e){const r=await this.getFullPath(e);try{return await hI(r)}catch(n){return!n.includes("No such file or directory")&&!n.includes("forbidden path")&&console.error(n),null}}async set(e,r){const n=await this.getFullPath(e),i=Z9(),o=n.split(i).slice(0,-1).join(i);await FM(o,{recursive:!0}),await $ve(n,r)}async remove(e){const r=await this.getFullPath(e);try{await kve(r)}catch(n){!n.includes("No such file or directory")&&!n.includes("forbidden path")&&console.error(n)}}async getFullPath(e){return await Ih(this.baseDir,e??"")}}class Eve{constructor(){xe(this,"baseDir","")}async ls(e=""){return[]}async get(e){return null}async set(e,r){}async remove(e){}}class Ave{constructor(e,r){xe(this,"default",[]);this.storage=e,this.localStorageSecretsProvider=r}async read(){const e=await this.storage.get("replay-environments.yaml"),r=await this.localStorageSecretsProvider.get();let n=null,i=null;if(!e)return this.default;try{n=el.load(e),i=r?JSON.parse(r):null}catch(a){return console.error("Failed to parse environments file",a),this.default}return n?Object.keys(n).filter(a=>a!=="version").map(a=>({name:a,inputs:Object.entries(n[a].inputs).map(([l,c])=>{var d;if(typeof c=="string")return{name:l,value:c,isSecret:!1};const u=((d=i==null?void 0:i[a])==null?void 0:d[l])??"";return{name:l,value:u,isSecret:!0}}),servers:Object.entries(n[a].servers).map(([l,c])=>({apiId:l,value:c.value,variables:Object.entries(c.variables||{}).map(([u,d])=>({name:u,value:d}))})),state:xt.Normal})):this.default}async write(e){const r=await this.localStorageSecretsProvider.get(),n=r?JSON.parse(r):{},i=e.reduce((o,s)=>(s.name&&(o[s.name]={inputs:s.inputs.reduce((a,l)=>(l.isSecret&&n?(n[s.name]||(n[s.name]={}),n[s.name][l.name]=l.value,a[l.name]={provider:"local"}):a[l.name]=l.value,a),{}),servers:s.servers.reduce((a,l)=>(a[l.apiId]={value:l.value,variables:Object.fromEntries(l.variables.map(c=>[c.name,c.value]))},a),{})}),o),{});this.localStorageSecretsProvider.set(JSON.stringify(n)),i&&this.storage.set("replay-environments.yaml",el.dump(i))}}var c1,UM;function Ive(){if(UM)return c1;UM=1;var t=Object.prototype.hasOwnProperty,e=Object.prototype.toString;return c1=function(n,i,o){if(e.call(i)!=="[object Function]")throw new TypeError("iterator must be a function");var s=n.length;if(s===+s)for(var a=0;a<s;a++)i.call(o,n[a],a,n);else for(var l in n)t.call(n,l)&&i.call(o,n[l],l,n)},c1}var u1,XM;function Tve(){if(XM)return u1;XM=1;var t=Ive();u1=e;function e(r,n,i){if(arguments.length===3)return e.set(r,n,i);if(arguments.length===2)return e.get(r,n);var o=e.bind(e,r);for(var s in e)e.hasOwnProperty(s)&&(o[s]=e[s].bind(o,r));return o}return e.get=function(n,i){for(var o=Array.isArray(i)?i:e.parse(i),s=0;s<o.length;++s){var a=o[s];if(!(typeof n=="object"&&a in n))throw new Error("Invalid reference token: "+a);n=n[a]}return n},e.set=function(n,i,o){var s=Array.isArray(i)?i:e.parse(i),a=s[0];if(s.length===0)throw Error("Can not set the root object");for(var l=0;l<s.length-1;++l){var c=s[l];typeof c!="string"&&typeof c!="number"&&(c=String(c)),!(c==="__proto__"||c==="constructor"||c==="prototype")&&(c==="-"&&Array.isArray(n)&&(c=n.length),a=s[l+1],c in n||(a.match(/^(\d+|-)$/)?n[c]=[]:n[c]={}),n=n[c])}return a==="-"&&Array.isArray(n)&&(a=n.length),n[a]=o,this},e.remove=function(r,n){var i=Array.isArray(n)?n:e.parse(n),o=i[i.length-1];if(o===void 0)throw new Error('Invalid JSON pointer for remove: "'+n+'"');var s=e.get(r,i.slice(0,-1));if(Array.isArray(s)){var a=+o;if(o===""&&isNaN(a))throw new Error('Invalid array index: "'+o+'"');Array.prototype.splice.call(s,a,1)}else delete s[o]},e.dict=function(n,i){var o={};return e.walk(n,function(s,a){o[a]=s},i),o},e.walk=function(n,i,o){var s=[];o=o||function(a){var l=Object.prototype.toString.call(a);return l==="[object Object]"||l==="[object Array]"},(function a(l){t(l,function(c,u){s.push(String(u)),o(c)?a(c):i(c,e.compile(s)),s.pop()})})(n)},e.has=function(n,i){try{e.get(n,i)}catch{return!1}return!0},e.escape=function(n){return n.toString().replace(/~/g,"~0").replace(/\//g,"~1")},e.unescape=function(n){return n.replace(/~1/g,"/").replace(/~0/g,"~")},e.parse=function(n){if(n==="")return[];if(n.charAt(0)!=="/")throw new Error("Invalid JSON pointer: "+n);return n.substring(1).split(/\//).map(e.unescape)},e.compile=function(n){return n.length===0?"":"/"+n.map(e.escape).join("/")},u1}var _ve=Tve();const pI=ii(_ve);async function Up(t){try{const e=await Pve(t),r=await G9(t);return{absolutePath:t,file:new File([e],r)}}catch(e){return console.error("Failed to init replay file",e),null}}async function J9(t){return(await Promise.allSettled(t.map(r=>Up(r)))).map(r=>r.status==="fulfilled"?r.value:null).filter(r=>r!==null)}function K9(t,e,r){for(const n of r){const i=ZM(t,n),o=ZM(e,n);if(typeof i=="object"&&typeof o=="object"){if(!K9(i,o,r))return!1}else if(i!==o)return!1}return!0}function ZM(t,e){const r=e.split("/");let n=t;for(const i of r)if(n&&typeof n=="object"&&i in n)n=n[i];else return;return n}var d1={exports:{}};/*!
|
|
245
245
|
Copyright (c) 2018 Jed Watson.
|
|
246
246
|
Licensed under the MIT License (MIT), see
|
|
247
247
|
http://jedwatson.github.io/classnames
|
|
248
|
-
*/var GM;function Rve(){return GM||(GM=1,(function(t){(function(){var e={}.hasOwnProperty;function r(){for(var o="",s=0;s<arguments.length;s++){var a=arguments[s];a&&(o=i(o,n(a)))}return o}function n(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return r.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var s="";for(var a in o)e.call(o,a)&&o[a]&&(s=i(s,a));return s}function i(o,s){return s?o?o+" "+s:o+s:o}t.exports?(r.default=r,t.exports=r):window.classNames=r})()})(d1)),d1.exports}var jve=Rve();const ns=ii(jve);function Dve(t){var e=t.children,r=t.prefixCls,n=t.id,i=t.overlayInnerStyle,o=t.bodyClassName,s=t.className,a=t.style;return ce.createElement("div",{className:ns("".concat(r,"-content"),s),style:a},ce.createElement("div",{className:ns("".concat(r,"-inner"),o),id:n,role:"tooltip",style:i},typeof e=="function"?e():e))}function qe(){return qe=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)({}).hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},qe.apply(null,arguments)}function ri(t){"@babel/helpers - typeof";return ri=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ri(t)}function Mve(t,e){if(ri(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(ri(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function
|
|
249
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function it(t,e){return Lve(t)||Qve(t,e)||
|
|
248
|
+
*/var GM;function Rve(){return GM||(GM=1,(function(t){(function(){var e={}.hasOwnProperty;function r(){for(var o="",s=0;s<arguments.length;s++){var a=arguments[s];a&&(o=i(o,n(a)))}return o}function n(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return r.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var s="";for(var a in o)e.call(o,a)&&o[a]&&(s=i(s,a));return s}function i(o,s){return s?o?o+" "+s:o+s:o}t.exports?(r.default=r,t.exports=r):window.classNames=r})()})(d1)),d1.exports}var jve=Rve();const ns=ii(jve);function Dve(t){var e=t.children,r=t.prefixCls,n=t.id,i=t.overlayInnerStyle,o=t.bodyClassName,s=t.className,a=t.style;return ce.createElement("div",{className:ns("".concat(r,"-content"),s),style:a},ce.createElement("div",{className:ns("".concat(r,"-inner"),o),id:n,role:"tooltip",style:i},typeof e=="function"?e():e))}function qe(){return qe=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)({}).hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},qe.apply(null,arguments)}function ri(t){"@babel/helpers - typeof";return ri=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ri(t)}function Mve(t,e){if(ri(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(ri(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function eZ(t){var e=Mve(t,"string");return ri(e)=="symbol"?e:e+""}function Nr(t,e,r){return(e=eZ(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function YM(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function $e(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?YM(Object(r),!0).forEach(function(n){Nr(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):YM(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Nve(t,e){if(t==null)return{};var r={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(e.indexOf(n)!==-1)continue;r[n]=t[n]}return r}function Ci(t,e){if(t==null)return{};var r,n,i=Nve(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)===-1&&{}.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function Lve(t){if(Array.isArray(t))return t}function Qve(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,i,o,s,a=[],l=!0,c=!1;try{if(o=(r=r.call(t)).next,e===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(a.push(n.value),a.length!==e);l=!0);}catch(u){c=!0,i=u}finally{try{if(!l&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(c)throw i}}return a}}function k$(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function tZ(t,e){if(t){if(typeof t=="string")return k$(t,e);var r={}.toString.call(t).slice(8,-1);return r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set"?Array.from(t):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?k$(t,e):void 0}}function Vve(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
249
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function it(t,e){return Lve(t)||Qve(t,e)||tZ(t,e)||Vve()}function is(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var $$={},gI=[],zve=function(e){gI.push(e)};function zO(t,e){if(process.env.NODE_ENV!=="production"&&!t&&console!==void 0){var r=gI.reduce(function(n,i){return i(n??"","warning")},e);r&&console.error("Warning: ".concat(r))}}function Bve(t,e){if(process.env.NODE_ENV!=="production"&&!t&&console!==void 0){var r=gI.reduce(function(n,i){return i(n??"","note")},e);r&&console.warn("Note: ".concat(r))}}function qve(){$$={}}function rZ(t,e,r){!e&&!$$[r]&&(t(!1,r),$$[r]=!0)}function Ex(t,e){rZ(zO,t,e)}function Fve(t,e){rZ(Bve,t,e)}Ex.preMessage=zve;Ex.resetWarned=qve;Ex.noteOnce=Fve;var bm={exports:{}},Qt={};/**
|
|
250
250
|
* @license React
|
|
251
251
|
* react-is.production.min.js
|
|
252
252
|
*
|
|
@@ -262,16 +262,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
262
262
|
*
|
|
263
263
|
* This source code is licensed under the MIT license found in the
|
|
264
264
|
* LICENSE file in the root directory of this source tree.
|
|
265
|
-
*/var JM;function Uve(){return JM||(JM=1,process.env.NODE_ENV!=="production"&&(function(){var t=Symbol.for("react.element"),e=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),s=Symbol.for("react.context"),a=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),g=!1,p=!1,y=!1,v=!1,b=!1,O;O=Symbol.for("react.module.reference");function S(H){return!!(typeof H=="string"||typeof H=="function"||H===r||H===i||b||H===n||H===c||H===u||v||H===h||g||p||y||typeof H=="object"&&H!==null&&(H.$$typeof===f||H.$$typeof===d||H.$$typeof===o||H.$$typeof===s||H.$$typeof===l||H.$$typeof===O||H.getModuleId!==void 0))}function x(H){if(typeof H=="object"&&H!==null){var le=H.$$typeof;switch(le){case t:var Se=H.type;switch(Se){case r:case i:case n:case c:case u:return Se;default:var ee=Se&&Se.$$typeof;switch(ee){case a:case s:case l:case f:case d:case o:return ee;default:return le}}case e:return le}}}var w=s,P=o,I=t,E=l,M=r,V=f,U=d,X=e,J=i,te=n,oe=c,ae=u,ie=!1,he=!1;function L(H){return ie||(ie=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function D(H){return he||(he=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function Q(H){return x(H)===s}function _(H){return x(H)===o}function k(H){return typeof H=="object"&&H!==null&&H.$$typeof===t}function T(H){return x(H)===l}function j(H){return x(H)===r}function Z(H){return x(H)===f}function Y(H){return x(H)===d}function ue(H){return x(H)===e}function G(H){return x(H)===i}function B(H){return x(H)===n}function z(H){return x(H)===c}function ne(H){return x(H)===u}Vt.ContextConsumer=w,Vt.ContextProvider=P,Vt.Element=I,Vt.ForwardRef=E,Vt.Fragment=M,Vt.Lazy=V,Vt.Memo=U,Vt.Portal=X,Vt.Profiler=J,Vt.StrictMode=te,Vt.Suspense=oe,Vt.SuspenseList=ae,Vt.isAsyncMode=L,Vt.isConcurrentMode=D,Vt.isContextConsumer=Q,Vt.isContextProvider=_,Vt.isElement=k,Vt.isForwardRef=T,Vt.isFragment=j,Vt.isLazy=Z,Vt.isMemo=Y,Vt.isPortal=ue,Vt.isProfiler=G,Vt.isStrictMode=B,Vt.isSuspense=z,Vt.isSuspenseList=ne,Vt.isValidElementType=S,Vt.typeOf=x})()),Vt}var KM;function
|
|
266
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function md(t){return Jve(t)||Kve(t)||
|
|
265
|
+
*/var JM;function Uve(){return JM||(JM=1,process.env.NODE_ENV!=="production"&&(function(){var t=Symbol.for("react.element"),e=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),s=Symbol.for("react.context"),a=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),g=!1,p=!1,y=!1,v=!1,b=!1,O;O=Symbol.for("react.module.reference");function S(H){return!!(typeof H=="string"||typeof H=="function"||H===r||H===i||b||H===n||H===c||H===u||v||H===h||g||p||y||typeof H=="object"&&H!==null&&(H.$$typeof===f||H.$$typeof===d||H.$$typeof===o||H.$$typeof===s||H.$$typeof===l||H.$$typeof===O||H.getModuleId!==void 0))}function x(H){if(typeof H=="object"&&H!==null){var le=H.$$typeof;switch(le){case t:var Se=H.type;switch(Se){case r:case i:case n:case c:case u:return Se;default:var ee=Se&&Se.$$typeof;switch(ee){case a:case s:case l:case f:case d:case o:return ee;default:return le}}case e:return le}}}var w=s,P=o,I=t,E=l,M=r,V=f,U=d,X=e,J=i,te=n,oe=c,ae=u,ie=!1,he=!1;function L(H){return ie||(ie=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function D(H){return he||(he=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function Q(H){return x(H)===s}function _(H){return x(H)===o}function k(H){return typeof H=="object"&&H!==null&&H.$$typeof===t}function T(H){return x(H)===l}function j(H){return x(H)===r}function Z(H){return x(H)===f}function Y(H){return x(H)===d}function ue(H){return x(H)===e}function G(H){return x(H)===i}function B(H){return x(H)===n}function z(H){return x(H)===c}function ne(H){return x(H)===u}Vt.ContextConsumer=w,Vt.ContextProvider=P,Vt.Element=I,Vt.ForwardRef=E,Vt.Fragment=M,Vt.Lazy=V,Vt.Memo=U,Vt.Portal=X,Vt.Profiler=J,Vt.StrictMode=te,Vt.Suspense=oe,Vt.SuspenseList=ae,Vt.isAsyncMode=L,Vt.isConcurrentMode=D,Vt.isContextConsumer=Q,Vt.isContextProvider=_,Vt.isElement=k,Vt.isForwardRef=T,Vt.isFragment=j,Vt.isLazy=Z,Vt.isMemo=Y,Vt.isPortal=ue,Vt.isProfiler=G,Vt.isStrictMode=B,Vt.isSuspense=z,Vt.isSuspenseList=ne,Vt.isValidElementType=S,Vt.typeOf=x})()),Vt}var KM;function nZ(){return KM||(KM=1,process.env.NODE_ENV==="production"?bm.exports=Wve():bm.exports=Uve()),bm.exports}var f1=nZ();function Xve(t,e,r){var n=ce.useRef({});return(!("value"in n.current)||r(n.current.condition,e))&&(n.current.value=t(),n.current.condition=e),n.current.value}var Zve=Symbol.for("react.element"),Gve=Symbol.for("react.transitional.element"),Yve=Symbol.for("react.fragment");function iZ(t){return t&&ri(t)==="object"&&(t.$$typeof===Zve||t.$$typeof===Gve)&&t.type===Yve}var Hve=Number(N.version.split(".")[0]),mI=function(e,r){typeof e=="function"?e(r):ri(e)==="object"&&e&&"current"in e&&(e.current=r)},oZ=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i=r.filter(Boolean);return i.length<=1?i[0]:function(o){r.forEach(function(s){mI(s,o)})}},yI=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return Xve(function(){return oZ.apply(void 0,r)},r,function(i,o){return i.length!==o.length||i.every(function(s,a){return s!==o[a]})})},Ax=function(e){var r,n;if(!e)return!1;if(sZ(e)&&Hve>=19)return!0;var i=f1.isMemo(e)?e.type.type:e.type;return!(typeof i=="function"&&!((r=i.prototype)!==null&&r!==void 0&&r.render)&&i.$$typeof!==f1.ForwardRef||typeof e=="function"&&!((n=e.prototype)!==null&&n!==void 0&&n.render)&&e.$$typeof!==f1.ForwardRef)};function sZ(t){return N.isValidElement(t)&&!iZ(t)}var vI=function(e){if(e&&sZ(e)){var r=e;return r.props.propertyIsEnumerable("ref")?r.props.ref:r.ref}return null},aZ=ce.createContext(null);function Jve(t){if(Array.isArray(t))return k$(t)}function Kve(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function ebe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
266
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function md(t){return Jve(t)||Kve(t)||tZ(t)||ebe()}var eN=process.env.NODE_ENV!=="test"&&is()?ce.useLayoutEffect:ce.useEffect,gi=function(e,r){var n=ce.useRef(!0);eN(function(){return e(n.current)},r),eN(function(){return n.current=!1,function(){n.current=!0}},[])},tN=[];function tbe(t,e){var r=ce.useState(function(){if(!is())return null;var g=document.createElement("div");return process.env.NODE_ENV!=="production"&&e&&g.setAttribute("data-debug",e),g}),n=it(r,1),i=n[0],o=ce.useRef(!1),s=ce.useContext(aZ),a=ce.useState(tN),l=it(a,2),c=l[0],u=l[1],d=s||(o.current?void 0:function(g){u(function(p){var y=[g].concat(md(p));return y})});function f(){i.parentElement||document.body.appendChild(i),o.current=!0}function h(){var g;(g=i.parentElement)===null||g===void 0||g.removeChild(i),o.current=!1}return gi(function(){return t?s?s(f):f():h(),h},[t]),gi(function(){c.length&&(c.forEach(function(g){return g()}),u(tN))},[c]),[i,d]}function rbe(t,e){if(!t)return!1;if(t.contains)return t.contains(e);for(var r=e;r;){if(r===t)return!0;r=r.parentNode}return!1}var rN="data-rc-order",nN="data-rc-priority",nbe="rc-util-key",E$=new Map;function lZ(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=t.mark;return e?e.startsWith("data-")?e:"data-".concat(e):nbe}function Ix(t){if(t.attachTo)return t.attachTo;var e=document.querySelector("head");return e||document.body}function ibe(t){return t==="queue"?"prependQueue":t?"prepend":"append"}function bI(t){return Array.from((E$.get(t)||t).children).filter(function(e){return e.tagName==="STYLE"})}function cZ(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!is())return null;var r=e.csp,n=e.prepend,i=e.priority,o=i===void 0?0:i,s=ibe(n),a=s==="prependQueue",l=document.createElement("style");l.setAttribute(rN,s),a&&o&&l.setAttribute(nN,"".concat(o)),r!=null&&r.nonce&&(l.nonce=r==null?void 0:r.nonce),l.innerHTML=t;var c=Ix(e),u=c.firstChild;if(n){if(a){var d=(e.styles||bI(c)).filter(function(f){if(!["prepend","prependQueue"].includes(f.getAttribute(rN)))return!1;var h=Number(f.getAttribute(nN)||0);return o>=h});if(d.length)return c.insertBefore(l,d[d.length-1].nextSibling),l}c.insertBefore(l,u)}else c.appendChild(l);return l}function uZ(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=Ix(e);return(e.styles||bI(r)).find(function(n){return n.getAttribute(lZ(e))===t})}function A$(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=uZ(t,e);if(r){var n=Ix(e);n.removeChild(r)}}function obe(t,e){var r=E$.get(t);if(!r||!rbe(document,r)){var n=cZ("",e),i=n.parentNode;E$.set(t,i),t.removeChild(n)}}function dZ(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=Ix(r),i=bI(n),o=$e($e({},r),{},{styles:i});obe(n,o);var s=uZ(e,o);if(s){var a,l;if((a=o.csp)!==null&&a!==void 0&&a.nonce&&s.nonce!==((l=o.csp)===null||l===void 0?void 0:l.nonce)){var c;s.nonce=(c=o.csp)===null||c===void 0?void 0:c.nonce}return s.innerHTML!==t&&(s.innerHTML=t),s}var u=cZ(t,o);return u.setAttribute(lZ(o),e),u}function sbe(t){var e="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),r=document.createElement("div");r.id=e;var n=r.style;n.position="absolute",n.left="0",n.top="0",n.width="100px",n.height="100px",n.overflow="scroll";var i,o;if(t){var s=getComputedStyle(t);n.scrollbarColor=s.scrollbarColor,n.scrollbarWidth=s.scrollbarWidth;var a=getComputedStyle(t,"::-webkit-scrollbar"),l=parseInt(a.width,10),c=parseInt(a.height,10);try{var u=l?"width: ".concat(a.width,";"):"",d=c?"height: ".concat(a.height,";"):"";dZ(`
|
|
267
267
|
#`.concat(e,`::-webkit-scrollbar {
|
|
268
268
|
`).concat(u,`
|
|
269
269
|
`).concat(d,`
|
|
270
|
-
}`),e)}catch(g){console.error(g),i=l,o=c}}document.body.appendChild(r);var f=t&&i&&!isNaN(i)?i:r.offsetWidth-r.clientWidth,h=t&&o&&!isNaN(o)?o:r.offsetHeight-r.clientHeight;return document.body.removeChild(r),A$(e),{width:f,height:h}}function abe(t){return typeof document>"u"||!t||!(t instanceof Element)?{width:0,height:0}:sbe(t)}function lbe(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var cbe="rc-util-locker-".concat(Date.now()),iN=0;function ube(t){var e=!!t,r=ce.useState(function(){return iN+=1,"".concat(cbe,"_").concat(iN)}),n=it(r,1),i=n[0];gi(function(){if(e){var o=abe(document.body).width,s=lbe();
|
|
270
|
+
}`),e)}catch(g){console.error(g),i=l,o=c}}document.body.appendChild(r);var f=t&&i&&!isNaN(i)?i:r.offsetWidth-r.clientWidth,h=t&&o&&!isNaN(o)?o:r.offsetHeight-r.clientHeight;return document.body.removeChild(r),A$(e),{width:f,height:h}}function abe(t){return typeof document>"u"||!t||!(t instanceof Element)?{width:0,height:0}:sbe(t)}function lbe(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var cbe="rc-util-locker-".concat(Date.now()),iN=0;function ube(t){var e=!!t,r=ce.useState(function(){return iN+=1,"".concat(cbe,"_").concat(iN)}),n=it(r,1),i=n[0];gi(function(){if(e){var o=abe(document.body).width,s=lbe();dZ(`
|
|
271
271
|
html body {
|
|
272
272
|
overflow-y: hidden;
|
|
273
273
|
`.concat(s?"width: calc(100% - ".concat(o,"px);"):"",`
|
|
274
|
-
}`),i)}else A$(i);return function(){A$(i)}},[e,i])}var dbe=!1;function fbe(t){return dbe}var oN=function(e){return e===!1?!1:!is()||!e?null:typeof e=="string"?document.querySelector(e):typeof e=="function"?e():e},OI=ce.forwardRef(function(t,e){var r=t.open,n=t.autoLock,i=t.getContainer,o=t.debug,s=t.autoDestroy,a=s===void 0?!0:s,l=t.children,c=ce.useState(r),u=it(c,2),d=u[0],f=u[1],h=d||r;process.env.NODE_ENV!=="production"&&Ex(is()||!r,"Portal only work in client side. Please call 'useEffect' to show Portal instead default render in SSR."),ce.useEffect(function(){(a||r)&&f(r)},[r,a]);var g=ce.useState(function(){return oN(i)}),p=it(g,2),y=p[0],v=p[1];ce.useEffect(function(){var U=oN(i);v(U??null)});var b=tbe(h&&!y,o),O=it(b,2),S=O[0],x=O[1],w=y??S;ube(n&&r&&is()&&(w===S||w===document.body));var P=null;if(l&&Ax(l)&&e){var I=l;P=I.ref}var E=yI(P,e);if(!h||!is()||y===void 0)return null;var M=w===!1||fbe(),V=l;return e&&(V=ce.cloneElement(l,{ref:E})),ce.createElement(a9.Provider,{value:x},M?V:UE.createPortal(V,w))});process.env.NODE_ENV!=="production"&&(OI.displayName="Portal");function I$(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[];return ce.default.Children.forEach(t,function(n){n==null&&!e.keepEmpty||(Array.isArray(n)?r=r.concat(I$(n)):i9(n)&&n.props?r=r.concat(I$(n.props.children,e)):r.push(n))}),r}function gp(t){return t instanceof HTMLElement||t instanceof SVGElement}function hbe(t){return t&&ri(t)==="object"&&gp(t.nativeElement)?t.nativeElement:gp(t)?t:null}function cb(t){var e=hbe(t);if(e)return e;if(t instanceof ce.default.Component){var r;return(r=__.default.findDOMNode)===null||r===void 0?void 0:r.call(__.default,t)}return null}var T$=ce.createContext(null);function pbe(t){var e=t.children,r=t.onBatchResize,n=ce.useRef(0),i=ce.useRef([]),o=ce.useContext(T$),s=ce.useCallback(function(a,l,c){n.current+=1;var u=n.current;i.current.push({size:a,element:l,data:c}),Promise.resolve().then(function(){u===n.current&&(r==null||r(i.current),i.current=[])}),o==null||o(a,l,c)},[r,o]);return ce.createElement(T$.Provider,{value:s},e)}var f9=(function(){if(typeof Map<"u")return Map;function t(e,r){var n=-1;return e.some(function(i,o){return i[0]===r?(n=o,!0):!1}),n}return(function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(r){var n=t(this.__entries__,r),i=this.__entries__[n];return i&&i[1]},e.prototype.set=function(r,n){var i=t(this.__entries__,r);~i?this.__entries__[i][1]=n:this.__entries__.push([r,n])},e.prototype.delete=function(r){var n=this.__entries__,i=t(n,r);~i&&n.splice(i,1)},e.prototype.has=function(r){return!!~t(this.__entries__,r)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(r,n){n===void 0&&(n=null);for(var i=0,o=this.__entries__;i<o.length;i++){var s=o[i];r.call(n,s[1],s[0])}},e})()})(),_$=typeof window<"u"&&typeof document<"u"&&window.document===document,BO=(function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()})(),gbe=(function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(BO):function(t){return setTimeout(function(){return t(Date.now())},1e3/60)}})(),mbe=2;function ybe(t,e){var r=!1,n=!1,i=0;function o(){r&&(r=!1,t()),n&&a()}function s(){gbe(o)}function a(){var l=Date.now();if(r){if(l-i<mbe)return;n=!0}else r=!0,n=!1,setTimeout(s,e);i=l}return a}var vbe=20,bbe=["top","right","bottom","left","width","height","size","weight"],Obe=typeof MutationObserver<"u",xbe=(function(){function t(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=ybe(this.refresh.bind(this),vbe)}return t.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},t.prototype.removeObserver=function(e){var r=this.observers_,n=r.indexOf(e);~n&&r.splice(n,1),!r.length&&this.connected_&&this.disconnect_()},t.prototype.refresh=function(){var e=this.updateObservers_();e&&this.refresh()},t.prototype.updateObservers_=function(){var e=this.observers_.filter(function(r){return r.gatherActive(),r.hasActive()});return e.forEach(function(r){return r.broadcastActive()}),e.length>0},t.prototype.connect_=function(){!_$||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Obe?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){!_$||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(e){var r=e.propertyName,n=r===void 0?"":r,i=bbe.some(function(o){return!!~n.indexOf(o)});i&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t})(),h9=(function(t,e){for(var r=0,n=Object.keys(e);r<n.length;r++){var i=n[r];Object.defineProperty(t,i,{value:e[i],enumerable:!1,writable:!1,configurable:!0})}return t}),yd=(function(t){var e=t&&t.ownerDocument&&t.ownerDocument.defaultView;return e||BO}),p9=Tx(0,0,0,0);function qO(t){return parseFloat(t)||0}function sN(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return e.reduce(function(n,i){var o=t["border-"+i+"-width"];return n+qO(o)},0)}function Sbe(t){for(var e=["top","right","bottom","left"],r={},n=0,i=e;n<i.length;n++){var o=i[n],s=t["padding-"+o];r[o]=qO(s)}return r}function wbe(t){var e=t.getBBox();return Tx(0,0,e.width,e.height)}function Cbe(t){var e=t.clientWidth,r=t.clientHeight;if(!e&&!r)return p9;var n=yd(t).getComputedStyle(t),i=Sbe(n),o=i.left+i.right,s=i.top+i.bottom,a=qO(n.width),l=qO(n.height);if(n.boxSizing==="border-box"&&(Math.round(a+o)!==e&&(a-=sN(n,"left","right")+o),Math.round(l+s)!==r&&(l-=sN(n,"top","bottom")+s)),!kbe(t)){var c=Math.round(a+o)-e,u=Math.round(l+s)-r;Math.abs(c)!==1&&(a-=c),Math.abs(u)!==1&&(l-=u)}return Tx(i.left,i.top,a,l)}var Pbe=(function(){return typeof SVGGraphicsElement<"u"?function(t){return t instanceof yd(t).SVGGraphicsElement}:function(t){return t instanceof yd(t).SVGElement&&typeof t.getBBox=="function"}})();function kbe(t){return t===yd(t).document.documentElement}function $be(t){return _$?Pbe(t)?wbe(t):Cbe(t):p9}function Ebe(t){var e=t.x,r=t.y,n=t.width,i=t.height,o=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,s=Object.create(o.prototype);return h9(s,{x:e,y:r,width:n,height:i,top:r,right:e+n,bottom:i+r,left:e}),s}function Tx(t,e,r,n){return{x:t,y:e,width:r,height:n}}var Abe=(function(){function t(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Tx(0,0,0,0),this.target=e}return t.prototype.isActive=function(){var e=$be(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},t.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},t})(),Ibe=(function(){function t(e,r){var n=Ebe(r);h9(this,{target:e,contentRect:n})}return t})(),Tbe=(function(){function t(e,r,n){if(this.activeObservations_=[],this.observations_=new f9,typeof e!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=r,this.callbackCtx_=n}return t.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(e instanceof yd(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(e)||(r.set(e,new Abe(e)),this.controller_.addObserver(this),this.controller_.refresh())}},t.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(e instanceof yd(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(e)&&(r.delete(e),r.size||this.controller_.removeObserver(this))}},t.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},t.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach(function(r){r.isActive()&&e.activeObservations_.push(r)})},t.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,r=this.activeObservations_.map(function(n){return new Ibe(n.target,n.broadcastRect())});this.callback_.call(e,r,e),this.clearActive()}},t.prototype.clearActive=function(){this.activeObservations_.splice(0)},t.prototype.hasActive=function(){return this.activeObservations_.length>0},t})(),g9=typeof WeakMap<"u"?new WeakMap:new f9,m9=(function(){function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var r=xbe.getInstance(),n=new Tbe(e,r,this);g9.set(this,n)}return t})();["observe","unobserve","disconnect"].forEach(function(t){m9.prototype[t]=function(){var e;return(e=g9.get(this))[t].apply(e,arguments)}});var _be=(function(){return typeof BO.ResizeObserver<"u"?BO.ResizeObserver:m9})(),Ns=new Map;function y9(t){t.forEach(function(e){var r,n=e.target;(r=Ns.get(n))===null||r===void 0||r.forEach(function(i){return i(n)})})}var v9=new _be(y9);process.env.NODE_ENV;process.env.NODE_ENV;function Rbe(t,e){Ns.has(t)||(Ns.set(t,new Set),v9.observe(t)),Ns.get(t).add(e)}function jbe(t,e){Ns.has(t)&&(Ns.get(t).delete(e),Ns.get(t).size||(v9.unobserve(t),Ns.delete(t)))}function _x(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function aN(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,e9(n.key),n)}}function Rx(t,e,r){return e&&aN(t.prototype,e),r&&aN(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function FO(t,e){return FO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},FO(t,e)}function jx(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&FO(t,e)}function WO(t){return WO=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},WO(t)}function b9(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(b9=function(){return!!t})()}function mp(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Dbe(t,e){if(e&&(ri(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return mp(t)}function Dx(t){var e=b9();return function(){var r,n=WO(t);if(e){var i=WO(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Dbe(this,r)}}var Mbe=(function(t){jx(r,t);var e=Dx(r);function r(){return _x(this,r),e.apply(this,arguments)}return Rx(r,[{key:"render",value:function(){return this.props.children}}]),r})(ce.Component);function Nbe(t,e){var r=t.children,n=t.disabled,i=ce.useRef(null),o=ce.useRef(null),s=ce.useContext(T$),a=typeof r=="function",l=a?r(i):r,c=ce.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),u=!a&&ce.isValidElement(l)&&Ax(l),d=u?vI(l):null,f=yI(d,i),h=function(){var v;return cb(i.current)||(i.current&&ri(i.current)==="object"?cb((v=i.current)===null||v===void 0?void 0:v.nativeElement):null)||cb(o.current)};ce.useImperativeHandle(e,function(){return h()});var g=ce.useRef(t);g.current=t;var p=ce.useCallback(function(y){var v=g.current,b=v.onResize,O=v.data,S=y.getBoundingClientRect(),x=S.width,w=S.height,P=y.offsetWidth,I=y.offsetHeight,E=Math.floor(x),M=Math.floor(w);if(c.current.width!==E||c.current.height!==M||c.current.offsetWidth!==P||c.current.offsetHeight!==I){var V={width:E,height:M,offsetWidth:P,offsetHeight:I};c.current=V;var U=P===Math.round(x)?x:P,X=I===Math.round(w)?w:I,J=$e($e({},V),{},{offsetWidth:U,offsetHeight:X});s==null||s(J,y,O),b&&Promise.resolve().then(function(){b(J,y)})}},[]);return ce.useEffect(function(){var y=h();return y&&!n&&Rbe(y,p),function(){return jbe(y,p)}},[i.current,n]),ce.createElement(Mbe,{ref:o},u?ce.cloneElement(l,{ref:f}):l)}var O9=ce.forwardRef(Nbe);process.env.NODE_ENV!=="production"&&(O9.displayName="SingleObserver");var Lbe="rc-observer-key";function Qbe(t,e){var r=t.children,n=typeof r=="function"?[r]:I$(r);return process.env.NODE_ENV!=="production"&&(n.length>1?zO(!1,"Find more than one child node with `children` in ResizeObserver. Please use ResizeObserver.Collection instead."):n.length===0&&zO(!1,"`children` of ResizeObserver is empty. Nothing is in observe.")),n.map(function(i,o){var s=(i==null?void 0:i.key)||"".concat(Lbe,"-").concat(o);return ce.createElement(O9,qe({},t,{key:s,ref:o===0?e:void 0}),i)})}var Mx=ce.forwardRef(Qbe);process.env.NODE_ENV!=="production"&&(Mx.displayName="ResizeObserver");Mx.Collection=pbe;function x9(t){var e;return t==null||(e=t.getRootNode)===null||e===void 0?void 0:e.call(t)}function Vbe(t){return x9(t)instanceof ShadowRoot}function R$(t){return Vbe(t)?x9(t):null}function qo(t){var e=ce.useRef();e.current=t;var r=ce.useCallback(function(){for(var n,i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return(n=e.current)===null||n===void 0?void 0:n.call.apply(n,[e].concat(o))},[]);return r}function zbe(){var t=$e({},ce);return t.useId}var lN=0,cN=zbe();const S9=cN?function(e){var r=cN();return e||(process.env.NODE_ENV==="test"?"test-id":r)}:function(e){var r=ce.useState("ssr-id"),n=it(r,2),i=n[0],o=n[1];return ce.useEffect(function(){var s=lN;lN+=1,o("rc_unique_".concat(s))},[]),e||(process.env.NODE_ENV==="test"?"test-id":i)},Bbe=(function(){if(typeof navigator>"u"||typeof window>"u")return!1;var t=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(t)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(t==null?void 0:t.substr(0,4))});var qbe=ce.createContext({}),Fbe=(function(t){jx(r,t);var e=Dx(r);function r(){return _x(this,r),e.apply(this,arguments)}return Rx(r,[{key:"render",value:function(){return this.props.children}}]),r})(ce.Component);function j$(t){var e=ce.useRef(!1),r=ce.useState(t),n=it(r,2),i=n[0],o=n[1];ce.useEffect(function(){return e.current=!1,function(){e.current=!0}},[]);function s(a,l){l&&e.current||o(a)}return[i,s]}function Wbe(t){var e=ce.useReducer(function(a){return a+1},0),r=it(e,2),n=r[1],i=ce.useRef(t),o=qo(function(){return i.current}),s=qo(function(a){i.current=typeof a=="function"?a(i.current):a,n()});return[o,s]}var ba="none",Om="appear",xm="enter",Sm="leave",uN="none",ro="prepare",Su="start",wu="active",xI="end",w9="prepared";function dN(t,e){var r={};return r[t.toLowerCase()]=e.toLowerCase(),r["Webkit".concat(t)]="webkit".concat(e),r["Moz".concat(t)]="moz".concat(e),r["ms".concat(t)]="MS".concat(e),r["O".concat(t)]="o".concat(e.toLowerCase()),r}function Ube(t,e){var r={animationend:dN("Animation","AnimationEnd"),transitionend:dN("Transition","TransitionEnd")};return t&&("AnimationEvent"in e||delete r.animationend.animation,"TransitionEvent"in e||delete r.transitionend.transition),r}var Xbe=Ube(is(),typeof window<"u"?window:{}),C9={};if(is()){var Zbe=document.createElement("div");C9=Zbe.style}var wm={};function P9(t){if(wm[t])return wm[t];var e=Xbe[t];if(e)for(var r=Object.keys(e),n=r.length,i=0;i<n;i+=1){var o=r[i];if(Object.prototype.hasOwnProperty.call(e,o)&&o in C9)return wm[t]=e[o],wm[t]}return""}var k9=P9("animationend"),$9=P9("transitionend"),E9=!!(k9&&$9),fN=k9||"animationend",hN=$9||"transitionend";function pN(t,e){if(!t)return null;if(ri(t)==="object"){var r=e.replace(/-\w/g,function(n){return n[1].toUpperCase()});return t[r]}return"".concat(t,"-").concat(e)}const Gbe=(function(t){var e=N.useRef();function r(i){i&&(i.removeEventListener(hN,t),i.removeEventListener(fN,t))}function n(i){e.current&&e.current!==i&&r(e.current),i&&i!==e.current&&(i.addEventListener(hN,t),i.addEventListener(fN,t),e.current=i)}return ce.useEffect(function(){return function(){r(e.current)}},[]),[n,r]});var A9=is()?N.useLayoutEffect:N.useEffect,I9=function(e){return+setTimeout(e,16)},T9=function(e){return clearTimeout(e)};typeof window<"u"&&"requestAnimationFrame"in window&&(I9=function(e){return window.requestAnimationFrame(e)},T9=function(e){return window.cancelAnimationFrame(e)});var gN=0,Nx=new Map;function _9(t){Nx.delete(t)}var UO=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;gN+=1;var n=gN;function i(o){if(o===0)_9(n),e();else{var s=I9(function(){i(o-1)});Nx.set(n,s)}}return i(r),n};UO.cancel=function(t){var e=Nx.get(t);return _9(t),T9(e)};process.env.NODE_ENV!=="production"&&(UO.ids=function(){return Nx});const Ybe=(function(){var t=ce.useRef(null);function e(){UO.cancel(t.current)}function r(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;e();var o=UO(function(){i<=1?n({isCanceled:function(){return o!==t.current}}):r(n,i-1)});t.current=o}return ce.useEffect(function(){return function(){e()}},[]),[r,e]});var Hbe=[ro,Su,wu,xI],Jbe=[ro,w9],R9=!1,Kbe=!0;function j9(t){return t===wu||t===xI}const eOe=(function(t,e,r){var n=j$(uN),i=it(n,2),o=i[0],s=i[1],a=Ybe(),l=it(a,2),c=l[0],u=l[1];function d(){s(ro,!0)}var f=e?Jbe:Hbe;return A9(function(){if(o!==uN&&o!==xI){var h=f.indexOf(o),g=f[h+1],p=r(o);p===R9?s(g,!0):g&&c(function(y){function v(){y.isCanceled()||s(g,!0)}p===!0?v():Promise.resolve(p).then(v)})}},[t,o]),ce.useEffect(function(){return function(){u()}},[]),[d,o]});function tOe(t,e,r,n){var i=n.motionEnter,o=i===void 0?!0:i,s=n.motionAppear,a=s===void 0?!0:s,l=n.motionLeave,c=l===void 0?!0:l,u=n.motionDeadline,d=n.motionLeaveImmediately,f=n.onAppearPrepare,h=n.onEnterPrepare,g=n.onLeavePrepare,p=n.onAppearStart,y=n.onEnterStart,v=n.onLeaveStart,b=n.onAppearActive,O=n.onEnterActive,S=n.onLeaveActive,x=n.onAppearEnd,w=n.onEnterEnd,P=n.onLeaveEnd,I=n.onVisibleChanged,E=j$(),M=it(E,2),V=M[0],U=M[1],X=Wbe(ba),J=it(X,2),te=J[0],oe=J[1],ae=j$(null),ie=it(ae,2),he=ie[0],L=ie[1],D=te(),Q=N.useRef(!1),_=N.useRef(null);function k(){return r()}var T=N.useRef(!1);function j(){oe(ba),L(null,!0)}var Z=qo(function(be){var we=te();if(we!==ba){var de=k();if(!(be&&!be.deadline&&be.target!==de)){var pe=T.current,ke;we===Om&&pe?ke=x==null?void 0:x(de,be):we===xm&&pe?ke=w==null?void 0:w(de,be):we===Sm&&pe&&(ke=P==null?void 0:P(de,be)),pe&&ke!==!1&&j()}}}),Y=Gbe(Z),ue=it(Y,1),G=ue[0],B=function(we){switch(we){case Om:return Nr(Nr(Nr({},ro,f),Su,p),wu,b);case xm:return Nr(Nr(Nr({},ro,h),Su,y),wu,O);case Sm:return Nr(Nr(Nr({},ro,g),Su,v),wu,S);default:return{}}},z=ce.useMemo(function(){return B(D)},[D]),ne=eOe(D,!t,function(be){if(be===ro){var we=z[ro];return we?we(k()):R9}if(Se in z){var de;L(((de=z[Se])===null||de===void 0?void 0:de.call(z,k(),null))||null)}return Se===wu&&D!==ba&&(G(k()),u>0&&(clearTimeout(_.current),_.current=setTimeout(function(){Z({deadline:!0})},u))),Se===w9&&j(),Kbe}),H=it(ne,2),le=H[0],Se=H[1],ee=j9(Se);T.current=ee;var fe=N.useRef(null);A9(function(){if(!(Q.current&&fe.current===e)){U(e);var be=Q.current;Q.current=!0;var we;!be&&e&&a&&(we=Om),be&&e&&o&&(we=xm),(be&&!e&&c||!be&&d&&!e&&c)&&(we=Sm);var de=B(we);we&&(t||de[ro])?(oe(we),le()):oe(ba),fe.current=e}},[e]),N.useEffect(function(){(D===Om&&!a||D===xm&&!o||D===Sm&&!c)&&oe(ba)},[a,o,c]),N.useEffect(function(){return function(){Q.current=!1,clearTimeout(_.current)}},[]);var Ce=ce.useRef(!1);N.useEffect(function(){V&&(Ce.current=!0),V!==void 0&&D===ba&&((Ce.current||V)&&(I==null||I(V)),Ce.current=!0)},[V,D]);var Oe=he;return z[ro]&&Se===Su&&(Oe=$e({transition:"none"},Oe)),[D,Se,Oe,V??e]}function rOe(t){var e=t;ri(t)==="object"&&(e=t.transitionSupport);function r(i,o){return!!(i.motionName&&e&&o!==!1)}var n=ce.forwardRef(function(i,o){var s=i.visible,a=s===void 0?!0:s,l=i.removeOnLeave,c=l===void 0?!0:l,u=i.forceRender,d=i.children,f=i.motionName,h=i.leavedClassName,g=i.eventProps,p=ce.useContext(qbe),y=p.motion,v=r(i,y),b=N.useRef(),O=N.useRef();function S(){try{return b.current instanceof HTMLElement?b.current:cb(O.current)}catch{return null}}var x=tOe(v,a,S,i),w=it(x,4),P=w[0],I=w[1],E=w[2],M=w[3],V=ce.useRef(M);M&&(V.current=!0);var U=ce.useCallback(function(ie){b.current=ie,mI(o,ie)},[o]),X,J=$e($e({},g),{},{visible:a});if(!d)X=null;else if(P===ba)M?X=d($e({},J),U):!c&&V.current&&h?X=d($e($e({},J),{},{className:h}),U):u||!c&&!h?X=d($e($e({},J),{},{style:{display:"none"}}),U):X=null;else{var te;I===ro?te="prepare":j9(I)?te="active":I===Su&&(te="start");var oe=pN(f,"".concat(P,"-").concat(te));X=d($e($e({},J),{},{className:ns(pN(f,P),Nr(Nr({},oe,oe&&te),f,typeof f=="string")),style:E}),U)}if(ce.isValidElement(X)&&Ax(X)){var ae=vI(X);ae||(X=ce.cloneElement(X,{ref:U}))}return ce.createElement(Fbe,{ref:O},X)});return n.displayName="CSSMotion",n}const SI=rOe(E9);var D$="add",M$="keep",N$="remove",h1="removed";function nOe(t){var e;return t&&ri(t)==="object"&&"key"in t?e=t:e={key:t},$e($e({},e),{},{key:String(e.key)})}function L$(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return t.map(nOe)}function iOe(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=[],n=0,i=e.length,o=L$(t),s=L$(e);o.forEach(function(c){for(var u=!1,d=n;d<i;d+=1){var f=s[d];if(f.key===c.key){n<d&&(r=r.concat(s.slice(n,d).map(function(h){return $e($e({},h),{},{status:D$})})),n=d),r.push($e($e({},f),{},{status:M$})),n+=1,u=!0;break}}u||r.push($e($e({},c),{},{status:N$}))}),n<i&&(r=r.concat(s.slice(n).map(function(c){return $e($e({},c),{},{status:D$})})));var a={};r.forEach(function(c){var u=c.key;a[u]=(a[u]||0)+1});var l=Object.keys(a).filter(function(c){return a[c]>1});return l.forEach(function(c){r=r.filter(function(u){var d=u.key,f=u.status;return d!==c||f!==N$}),r.forEach(function(u){u.key===c&&(u.status=M$)})}),r}var oOe=["component","children","onVisibleChanged","onAllRemoved"],sOe=["status"],aOe=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function lOe(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:SI,r=(function(n){jx(o,n);var i=Dx(o);function o(){var s;_x(this,o);for(var a=arguments.length,l=new Array(a),c=0;c<a;c++)l[c]=arguments[c];return s=i.call.apply(i,[this].concat(l)),Nr(mp(s),"state",{keyEntities:[]}),Nr(mp(s),"removeKey",function(u){s.setState(function(d){var f=d.keyEntities.map(function(h){return h.key!==u?h:$e($e({},h),{},{status:h1})});return{keyEntities:f}},function(){var d=s.state.keyEntities,f=d.filter(function(h){var g=h.status;return g!==h1}).length;f===0&&s.props.onAllRemoved&&s.props.onAllRemoved()})}),s}return Rx(o,[{key:"render",value:function(){var a=this,l=this.state.keyEntities,c=this.props,u=c.component,d=c.children,f=c.onVisibleChanged;c.onAllRemoved;var h=Ci(c,oOe),g=u||ce.Fragment,p={};return aOe.forEach(function(y){p[y]=h[y],delete h[y]}),delete h.keys,ce.createElement(g,h,l.map(function(y,v){var b=y.status,O=Ci(y,sOe),S=b===D$||b===M$;return ce.createElement(e,qe({},p,{key:O.key,visible:S,eventProps:O,onVisibleChanged:function(w){f==null||f(w,{key:O.key}),w||a.removeKey(O.key)}}),function(x,w){return d($e($e({},x),{},{index:v}),w)})}))}}],[{key:"getDerivedStateFromProps",value:function(a,l){var c=a.keys,u=l.keyEntities,d=L$(c),f=iOe(u,d);return{keyEntities:f.filter(function(h){var g=u.find(function(p){var y=p.key;return h.key===y});return!(g&&g.status===h1&&h.status===N$)})}}}]),o})(ce.Component);return Nr(r,"defaultProps",{component:"div"}),r}lOe(E9);function cOe(t){var e=t.prefixCls,r=t.align,n=t.arrow,i=t.arrowPos,o=n||{},s=o.className,a=o.content,l=i.x,c=l===void 0?0:l,u=i.y,d=u===void 0?0:u,f=ce.useRef();if(!r||!r.points)return null;var h={position:"absolute"};if(r.autoArrow!==!1){var g=r.points[0],p=r.points[1],y=g[0],v=g[1],b=p[0],O=p[1];y===b||!["t","b"].includes(y)?h.top=d:y==="t"?h.top=0:h.bottom=0,v===O||!["l","r"].includes(v)?h.left=c:v==="l"?h.left=0:h.right=0}return ce.createElement("div",{ref:f,className:ns("".concat(e,"-arrow"),s),style:h},a)}function uOe(t){var e=t.prefixCls,r=t.open,n=t.zIndex,i=t.mask,o=t.motion;return i?ce.createElement(SI,qe({},o,{motionAppear:!0,visible:r,removeOnLeave:!0}),function(s){var a=s.className;return ce.createElement("div",{style:{zIndex:n},className:ns("".concat(e,"-mask"),a)})}):null}var D9=ce.memo(function(t){var e=t.children;return e},function(t,e){return e.cache});process.env.NODE_ENV!=="production"&&(D9.displayName="PopupContent");var M9=ce.forwardRef(function(t,e){var r=t.popup,n=t.className,i=t.prefixCls,o=t.style,s=t.target,a=t.onVisibleChanged,l=t.open,c=t.keepDom,u=t.fresh,d=t.onClick,f=t.mask,h=t.arrow,g=t.arrowPos,p=t.align,y=t.motion,v=t.maskMotion,b=t.forceRender,O=t.getPopupContainer,S=t.autoDestroy,x=t.portal,w=t.zIndex,P=t.onMouseEnter,I=t.onMouseLeave,E=t.onPointerEnter,M=t.onPointerDownCapture,V=t.ready,U=t.offsetX,X=t.offsetY,J=t.offsetR,te=t.offsetB,oe=t.onAlign,ae=t.onPrepare,ie=t.stretch,he=t.targetWidth,L=t.targetHeight,D=typeof r=="function"?r():r,Q=l||c,_=(O==null?void 0:O.length)>0,k=ce.useState(!O||!_),T=it(k,2),j=T[0],Z=T[1];if(gi(function(){!j&&_&&s&&Z(!0)},[j,_,s]),!j)return null;var Y="auto",ue={left:"-1000vw",top:"-1000vh",right:Y,bottom:Y};if(V||!l){var G,B=p.points,z=p.dynamicInset||((G=p._experimental)===null||G===void 0?void 0:G.dynamicInset),ne=z&&B[0][1]==="r",H=z&&B[0][0]==="b";ne?(ue.right=J,ue.left=Y):(ue.left=U,ue.right=Y),H?(ue.bottom=te,ue.top=Y):(ue.top=X,ue.bottom=Y)}var le={};return ie&&(ie.includes("height")&&L?le.height=L:ie.includes("minHeight")&&L&&(le.minHeight=L),ie.includes("width")&&he?le.width=he:ie.includes("minWidth")&&he&&(le.minWidth=he)),l||(le.pointerEvents="none"),ce.createElement(x,{open:b||Q,getContainer:O&&function(){return O(s)},autoDestroy:S},ce.createElement(uOe,{prefixCls:i,open:l,zIndex:w,mask:f,motion:v}),ce.createElement(Mx,{onResize:oe,disabled:!l},function(Se){return ce.createElement(SI,qe({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:b,leavedClassName:"".concat(i,"-hidden")},y,{onAppearPrepare:ae,onEnterPrepare:ae,visible:l,onVisibleChanged:function(fe){var Ce;y==null||(Ce=y.onVisibleChanged)===null||Ce===void 0||Ce.call(y,fe),a(fe)}}),function(ee,fe){var Ce=ee.className,Oe=ee.style,be=ns(i,Ce,n);return ce.createElement("div",{ref:o9(Se,e,fe),className:be,style:$e($e($e($e({"--arrow-x":"".concat(g.x||0,"px"),"--arrow-y":"".concat(g.y||0,"px")},ue),le),Oe),{},{boxSizing:"border-box",zIndex:w},o),onMouseEnter:P,onMouseLeave:I,onPointerEnter:E,onClick:d,onPointerDownCapture:M},h&&ce.createElement(cOe,{prefixCls:i,arrow:h,arrowPos:g,align:p}),ce.createElement(D9,{cache:!l&&!u},D))})}))});process.env.NODE_ENV!=="production"&&(M9.displayName="Popup");var N9=ce.forwardRef(function(t,e){var r=t.children,n=t.getTriggerDOMNode,i=Ax(r),o=ce.useCallback(function(a){mI(e,n?n(a):a)},[n]),s=yI(o,vI(r));return i?ce.cloneElement(r,{ref:s}):r});process.env.NODE_ENV!=="production"&&(N9.displayName="TriggerWrapper");var mN=ce.createContext(null);function yN(t){return t?Array.isArray(t)?t:[t]:[]}function dOe(t,e,r,n){return ce.useMemo(function(){var i=yN(r??e),o=yN(n??e),s=new Set(i),a=new Set(o);return t&&(s.has("hover")&&(s.delete("hover"),s.add("click")),a.has("hover")&&(a.delete("hover"),a.add("click"))),[s,a]},[t,e,r,n])}const fOe=(function(t){if(!t)return!1;if(t instanceof Element){if(t.offsetParent)return!0;if(t.getBBox){var e=t.getBBox(),r=e.width,n=e.height;if(r||n)return!0}if(t.getBoundingClientRect){var i=t.getBoundingClientRect(),o=i.width,s=i.height;if(o||s)return!0}}return!1});function hOe(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0;return r?t[0]===e[0]:t[0]===e[0]&&t[1]===e[1]}function pOe(t,e,r,n){for(var i=r.points,o=Object.keys(t),s=0;s<o.length;s+=1){var a,l=o[s];if(hOe((a=t[l])===null||a===void 0?void 0:a.points,i,n))return"".concat(e,"-placement-").concat(l)}return""}function vN(t,e,r,n){return e||(r?{motionName:"".concat(t,"-").concat(r)}:n?{motionName:n}:null)}function Xp(t){return t.ownerDocument.defaultView}function Q$(t){for(var e=[],r=t==null?void 0:t.parentElement,n=["hidden","scroll","clip","auto"];r;){var i=Xp(r).getComputedStyle(r),o=i.overflowX,s=i.overflowY,a=i.overflow;[o,s,a].some(function(l){return n.includes(l)})&&e.push(r),r=r.parentElement}return e}function yp(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(t)?e:t}function bf(t){return yp(parseFloat(t),0)}function bN(t,e){var r=$e({},t);return(e||[]).forEach(function(n){if(!(n instanceof HTMLBodyElement||n instanceof HTMLHtmlElement)){var i=Xp(n).getComputedStyle(n),o=i.overflow,s=i.overflowClipMargin,a=i.borderTopWidth,l=i.borderBottomWidth,c=i.borderLeftWidth,u=i.borderRightWidth,d=n.getBoundingClientRect(),f=n.offsetHeight,h=n.clientHeight,g=n.offsetWidth,p=n.clientWidth,y=bf(a),v=bf(l),b=bf(c),O=bf(u),S=yp(Math.round(d.width/g*1e3)/1e3),x=yp(Math.round(d.height/f*1e3)/1e3),w=(g-p-b-O)*S,P=(f-h-y-v)*x,I=y*x,E=v*x,M=b*S,V=O*S,U=0,X=0;if(o==="clip"){var J=bf(s);U=J*S,X=J*x}var te=d.x+M-U,oe=d.y+I-X,ae=te+d.width+2*U-M-V-w,ie=oe+d.height+2*X-I-E-P;r.left=Math.max(r.left,te),r.top=Math.max(r.top,oe),r.right=Math.min(r.right,ae),r.bottom=Math.min(r.bottom,ie)}}),r}function ON(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r="".concat(e),n=r.match(/^(.*)\%$/);return n?t*(parseFloat(n[1])/100):parseFloat(r)}function xN(t,e){var r=e||[],n=it(r,2),i=n[0],o=n[1];return[ON(t.width,i),ON(t.height,o)]}function SN(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[t[0],t[1]]}function zc(t,e){var r=e[0],n=e[1],i,o;return r==="t"?o=t.y:r==="b"?o=t.y+t.height:o=t.y+t.height/2,n==="l"?i=t.x:n==="r"?i=t.x+t.width:i=t.x+t.width/2,{x:i,y:o}}function pa(t,e){var r={t:"b",b:"t",l:"r",r:"l"};return t.map(function(n,i){return i===e?r[n]||"c":n}).join("")}function gOe(t,e,r,n,i,o,s){var a=ce.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:i[n]||{}}),l=it(a,2),c=l[0],u=l[1],d=ce.useRef(0),f=ce.useMemo(function(){return e?Q$(e):[]},[e]),h=ce.useRef({}),g=function(){h.current={}};t||g();var p=qo(function(){if(e&&r&&t){let Ei=function(jc,aa){var la=arguments.length>2&&arguments[2]!==void 0?arguments[2]:pe,af=k.x+jc,$g=k.y+aa,HS=af+ne,JS=$g+z,KS=Math.max(af,la.left),Le=Math.max($g,la.top),Je=Math.min(HS,la.right),lr=Math.min(JS,la.bottom);return Math.max(0,(Je-KS)*(lr-Le))},kg=function(){dl=k.y+rr,fl=dl+z,ms=k.x+Jt,Ic=ms+ne};var b,O,S,x,w=e,P=w.ownerDocument,I=Xp(w),E=I.getComputedStyle(w),M=E.width,V=E.height,U=E.position,X=w.style.left,J=w.style.top,te=w.style.right,oe=w.style.bottom,ae=w.style.overflow,ie=$e($e({},i[n]),o),he=P.createElement("div");(b=w.parentElement)===null||b===void 0||b.appendChild(he),he.style.left="".concat(w.offsetLeft,"px"),he.style.top="".concat(w.offsetTop,"px"),he.style.position=U,he.style.height="".concat(w.offsetHeight,"px"),he.style.width="".concat(w.offsetWidth,"px"),w.style.left="0",w.style.top="0",w.style.right="auto",w.style.bottom="auto",w.style.overflow="hidden";var L;if(Array.isArray(r))L={x:r[0],y:r[1],width:0,height:0};else{var D,Q,_=r.getBoundingClientRect();_.x=(D=_.x)!==null&&D!==void 0?D:_.left,_.y=(Q=_.y)!==null&&Q!==void 0?Q:_.top,L={x:_.x,y:_.y,width:_.width,height:_.height}}var k=w.getBoundingClientRect();k.x=(O=k.x)!==null&&O!==void 0?O:k.left,k.y=(S=k.y)!==null&&S!==void 0?S:k.top;var T=P.documentElement,j=T.clientWidth,Z=T.clientHeight,Y=T.scrollWidth,ue=T.scrollHeight,G=T.scrollTop,B=T.scrollLeft,z=k.height,ne=k.width,H=L.height,le=L.width,Se={left:0,top:0,right:j,bottom:Z},ee={left:-B,top:-G,right:Y-B,bottom:ue-G},fe=ie.htmlRegion,Ce="visible",Oe="visibleFirst";fe!=="scroll"&&fe!==Oe&&(fe=Ce);var be=fe===Oe,we=bN(ee,f),de=bN(Se,f),pe=fe===Ce?de:we,ke=be?de:pe;w.style.left="auto",w.style.top="auto",w.style.right="0",w.style.bottom="0";var We=w.getBoundingClientRect();w.style.left=X,w.style.top=J,w.style.right=te,w.style.bottom=oe,w.style.overflow=ae,(x=w.parentElement)===null||x===void 0||x.removeChild(he);var C=yp(Math.round(ne/parseFloat(M)*1e3)/1e3),$=yp(Math.round(z/parseFloat(V)*1e3)/1e3);if(C===0||$===0||gp(r)&&!fOe(r))return;var A=ie.offset,W=ie.targetOffset,K=xN(k,A),re=it(K,2),se=re[0],Pe=re[1],Ie=xN(L,W),Qe=it(Ie,2),Ae=Qe[0],Re=Qe[1];L.x-=Ae,L.y-=Re;var Ct=ie.points||[],ze=it(Ct,2),lt=ze[0],pr=ze[1],zn=SN(pr),zr=SN(lt),Kd=zc(L,zn),Pn=zc(k,zr),oa=$e({},ie),Jt=Kd.x-Pn.x+se,rr=Kd.y-Pn.y+Pe,Xi=Ei(Jt,rr),ul=Ei(Jt,rr,de),ef=zc(L,["t","l"]),$i=zc(k,["t","l"]),hg=zc(L,["b","r"]),tf=zc(k,["b","r"]),sa=ie.overflow||{},pg=sa.adjustX,LS=sa.adjustY,rf=sa.shiftX,Ac=sa.shiftY,nf=function(aa){return typeof aa=="boolean"?aa:aa>=0},dl,fl,ms,Ic;kg();var hl=nf(LS),gg=zr[0]===zn[0];if(hl&&zr[0]==="t"&&(fl>ke.bottom||h.current.bt)){var Gr=rr;gg?Gr-=z-H:Gr=ef.y-tf.y-Pe;var mg=Ei(Jt,Gr),QS=Ei(Jt,Gr,de);mg>Xi||mg===Xi&&(!be||QS>=ul)?(h.current.bt=!0,rr=Gr,Pe=-Pe,oa.points=[pa(zr,0),pa(zn,0)]):h.current.bt=!1}if(hl&&zr[0]==="b"&&(dl<ke.top||h.current.tb)){var pl=rr;gg?pl+=z-H:pl=hg.y-$i.y-Pe;var yg=Ei(Jt,pl),VS=Ei(Jt,pl,de);yg>Xi||yg===Xi&&(!be||VS>=ul)?(h.current.tb=!0,rr=pl,Pe=-Pe,oa.points=[pa(zr,0),pa(zn,0)]):h.current.tb=!1}var vg=nf(pg),bg=zr[1]===zn[1];if(vg&&zr[1]==="l"&&(Ic>ke.right||h.current.rl)){var gl=Jt;bg?gl-=ne-le:gl=ef.x-tf.x-se;var Og=Ei(gl,rr),Tc=Ei(gl,rr,de);Og>Xi||Og===Xi&&(!be||Tc>=ul)?(h.current.rl=!0,Jt=gl,se=-se,oa.points=[pa(zr,1),pa(zn,1)]):h.current.rl=!1}if(vg&&zr[1]==="r"&&(ms<ke.left||h.current.lr)){var ys=Jt;bg?ys+=ne-le:ys=hg.x-$i.x-se;var xg=Ei(ys,rr),Sg=Ei(ys,rr,de);xg>Xi||xg===Xi&&(!be||Sg>=ul)?(h.current.lr=!0,Jt=ys,se=-se,oa.points=[pa(zr,1),pa(zn,1)]):h.current.lr=!1}kg();var Po=rf===!0?0:rf;typeof Po=="number"&&(ms<de.left&&(Jt-=ms-de.left-se,L.x+le<de.left+Po&&(Jt+=L.x-de.left+le-Po)),Ic>de.right&&(Jt-=Ic-de.right-se,L.x>de.right-Po&&(Jt+=L.x-de.right+Po)));var Zi=Ac===!0?0:Ac;typeof Zi=="number"&&(dl<de.top&&(rr-=dl-de.top-Pe,L.y+H<de.top+Zi&&(rr+=L.y-de.top+H-Zi)),fl>de.bottom&&(rr-=fl-de.bottom-Pe,L.y>de.bottom-Zi&&(rr+=L.y-de.bottom+Zi)));var _c=k.x+Jt,Rc=_c+ne,ko=k.y+rr,zS=ko+z,wg=L.x,BS=wg+le,of=L.y,qS=of+H,FS=Math.max(_c,wg),WS=Math.min(Rc,BS),Cg=(FS+WS)/2,US=Cg-_c,XS=Math.max(ko,of),Pg=Math.min(zS,qS),ZS=(XS+Pg)/2,GS=ZS-ko;s==null||s(e,oa);var sf=We.right-k.x-(Jt+k.width),$o=We.bottom-k.y-(rr+k.height);C===1&&(Jt=Math.round(Jt),sf=Math.round(sf)),$===1&&(rr=Math.round(rr),$o=Math.round($o));var YS={ready:!0,offsetX:Jt/C,offsetY:rr/$,offsetR:sf/C,offsetB:$o/$,arrowX:US/C,arrowY:GS/$,scaleX:C,scaleY:$,align:oa};u(YS)}}),y=function(){d.current+=1;var O=d.current;Promise.resolve().then(function(){d.current===O&&p()})},v=function(){u(function(O){return $e($e({},O),{},{ready:!1})})};return gi(v,[n]),gi(function(){t||v()},[t]),[c.ready,c.offsetX,c.offsetY,c.offsetR,c.offsetB,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,y]}function mOe(t,e,r,n,i){gi(function(){if(t&&e&&r){let d=function(){n(),i()};var o=e,s=r,a=Q$(o),l=Q$(s),c=Xp(s),u=new Set([c].concat(md(a),md(l)));return u.forEach(function(f){f.addEventListener("scroll",d,{passive:!0})}),c.addEventListener("resize",d,{passive:!0}),n(),function(){u.forEach(function(f){f.removeEventListener("scroll",d),c.removeEventListener("resize",d)})}}},[t,e,r])}function yOe(t,e,r,n,i,o,s,a){var l=ce.useRef(t);l.current=t;var c=ce.useRef(!1);ce.useEffect(function(){if(e&&n&&(!i||o)){var d=function(){c.current=!1},f=function(S){var x;l.current&&!s(((x=S.composedPath)===null||x===void 0||(x=x.call(S))===null||x===void 0?void 0:x[0])||S.target)&&!c.current&&a(!1)},h=Xp(n);h.addEventListener("pointerdown",d,!0),h.addEventListener("mousedown",f,!0),h.addEventListener("contextmenu",f,!0);var g=R$(r);if(g&&(g.addEventListener("mousedown",f,!0),g.addEventListener("contextmenu",f,!0)),process.env.NODE_ENV!=="production"){var p,y,v=r==null||(p=r.getRootNode)===null||p===void 0?void 0:p.call(r),b=(y=n.getRootNode)===null||y===void 0?void 0:y.call(n);zO(v===b,"trigger element and popup element should in same shadow root.")}return function(){h.removeEventListener("pointerdown",d,!0),h.removeEventListener("mousedown",f,!0),h.removeEventListener("contextmenu",f,!0),g&&(g.removeEventListener("mousedown",f,!0),g.removeEventListener("contextmenu",f,!0))}}},[e,r,n,i,o]);function u(){c.current=!0}return u}var vOe=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function bOe(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:OI,e=ce.forwardRef(function(r,n){var i=r.prefixCls,o=i===void 0?"rc-trigger-popup":i,s=r.children,a=r.action,l=a===void 0?"hover":a,c=r.showAction,u=r.hideAction,d=r.popupVisible,f=r.defaultPopupVisible,h=r.onPopupVisibleChange,g=r.afterPopupVisibleChange,p=r.mouseEnterDelay,y=r.mouseLeaveDelay,v=y===void 0?.1:y,b=r.focusDelay,O=r.blurDelay,S=r.mask,x=r.maskClosable,w=x===void 0?!0:x,P=r.getPopupContainer,I=r.forceRender,E=r.autoDestroy,M=r.destroyPopupOnHide,V=r.popup,U=r.popupClassName,X=r.popupStyle,J=r.popupPlacement,te=r.builtinPlacements,oe=te===void 0?{}:te,ae=r.popupAlign,ie=r.zIndex,he=r.stretch,L=r.getPopupClassNameFromAlign,D=r.fresh,Q=r.alignPoint,_=r.onPopupClick,k=r.onPopupAlign,T=r.arrow,j=r.popupMotion,Z=r.maskMotion,Y=r.popupTransitionName,ue=r.popupAnimation,G=r.maskTransitionName,B=r.maskAnimation,z=r.className,ne=r.getTriggerDOMNode,H=Ci(r,vOe),le=E||M||!1,Se=ce.useState(!1),ee=it(Se,2),fe=ee[0],Ce=ee[1];gi(function(){Ce(Bbe())},[]);var Oe=ce.useRef({}),be=ce.useContext(mN),we=ce.useMemo(function(){return{registerSubPopup:function(Je,lr){Oe.current[Je]=lr,be==null||be.registerSubPopup(Je,lr)}}},[be]),de=S9(),pe=ce.useState(null),ke=it(pe,2),We=ke[0],C=ke[1],$=ce.useRef(null),A=qo(function(Le){$.current=Le,gp(Le)&&We!==Le&&C(Le),be==null||be.registerSubPopup(de,Le)}),W=ce.useState(null),K=it(W,2),re=K[0],se=K[1],Pe=ce.useRef(null),Ie=qo(function(Le){gp(Le)&&re!==Le&&(se(Le),Pe.current=Le)}),Qe=ce.Children.only(s),Ae=(Qe==null?void 0:Qe.props)||{},Re={},Ct=qo(function(Le){var Je,lr,Rr=re;return(Rr==null?void 0:Rr.contains(Le))||((Je=R$(Rr))===null||Je===void 0?void 0:Je.host)===Le||Le===Rr||(We==null?void 0:We.contains(Le))||((lr=R$(We))===null||lr===void 0?void 0:lr.host)===Le||Le===We||Object.values(Oe.current).some(function(yr){return(yr==null?void 0:yr.contains(Le))||Le===yr})}),ze=vN(o,j,ue,Y),lt=vN(o,Z,B,G),pr=ce.useState(f||!1),zn=it(pr,2),zr=zn[0],Kd=zn[1],Pn=d??zr,oa=qo(function(Le){d===void 0&&Kd(Le)});gi(function(){Kd(d||!1)},[d]);var Jt=ce.useRef(Pn);Jt.current=Pn;var rr=ce.useRef([]);rr.current=[];var Xi=qo(function(Le){var Je;oa(Le),((Je=rr.current[rr.current.length-1])!==null&&Je!==void 0?Je:Pn)!==Le&&(rr.current.push(Le),h==null||h(Le))}),ul=ce.useRef(),ef=function(){clearTimeout(ul.current)},$i=function(Je){var lr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;ef(),lr===0?Xi(Je):ul.current=setTimeout(function(){Xi(Je)},lr*1e3)};ce.useEffect(function(){return ef},[]);var hg=ce.useState(!1),tf=it(hg,2),sa=tf[0],pg=tf[1];gi(function(Le){(!Le||Pn)&&pg(!0)},[Pn]);var LS=ce.useState(null),rf=it(LS,2),Ac=rf[0],nf=rf[1],dl=ce.useState(null),fl=it(dl,2),ms=fl[0],Ic=fl[1],hl=function(Je){Ic([Je.clientX,Je.clientY])},gg=gOe(Pn,We,Q&&ms!==null?ms:re,J,oe,ae,k),Gr=it(gg,11),mg=Gr[0],QS=Gr[1],pl=Gr[2],yg=Gr[3],VS=Gr[4],vg=Gr[5],bg=Gr[6],gl=Gr[7],Og=Gr[8],Tc=Gr[9],ys=Gr[10],xg=dOe(fe,l,c,u),Sg=it(xg,2),Po=Sg[0],Zi=Sg[1],_c=Po.has("click"),Rc=Zi.has("click")||Zi.has("contextMenu"),ko=qo(function(){sa||ys()}),zS=function(){Jt.current&&Q&&Rc&&$i(!1)};mOe(Pn,re,We,ko,zS),gi(function(){ko()},[ms,J]),gi(function(){Pn&&!(oe!=null&&oe[J])&&ko()},[JSON.stringify(ae)]);var wg=ce.useMemo(function(){var Le=pOe(oe,o,Tc,Q);return ns(Le,L==null?void 0:L(Tc))},[Tc,L,oe,o,Q]);ce.useImperativeHandle(n,function(){return{nativeElement:Pe.current,popupElement:$.current,forceAlign:ko}});var BS=ce.useState(0),of=it(BS,2),qS=of[0],FS=of[1],WS=ce.useState(0),Cg=it(WS,2),US=Cg[0],XS=Cg[1],Pg=function(){if(he&&re){var Je=re.getBoundingClientRect();FS(Je.width),XS(Je.height)}},ZS=function(){Pg(),ko()},GS=function(Je){pg(!1),ys(),g==null||g(Je)},sf=function(){return new Promise(function(Je){Pg(),nf(function(){return Je})})};gi(function(){Ac&&(ys(),Ac(),nf(null))},[Ac]);function $o(Le,Je,lr,Rr){Re[Le]=function(yr){var Eg;Rr==null||Rr(yr),$i(Je,lr);for(var ew=arguments.length,I_=new Array(ew>1?ew-1:0),Ag=1;Ag<ew;Ag++)I_[Ag-1]=arguments[Ag];(Eg=Ae[Le])===null||Eg===void 0||Eg.call.apply(Eg,[Ae,yr].concat(I_))}}(_c||Rc)&&(Re.onClick=function(Le){var Je;Jt.current&&Rc?$i(!1):!Jt.current&&_c&&(hl(Le),$i(!0));for(var lr=arguments.length,Rr=new Array(lr>1?lr-1:0),yr=1;yr<lr;yr++)Rr[yr-1]=arguments[yr];(Je=Ae.onClick)===null||Je===void 0||Je.call.apply(Je,[Ae,Le].concat(Rr))});var YS=yOe(Pn,Rc,re,We,S,w,Ct,$i),Ei=Po.has("hover"),kg=Zi.has("hover"),jc,aa;Ei&&($o("onMouseEnter",!0,p,function(Le){hl(Le)}),$o("onPointerEnter",!0,p,function(Le){hl(Le)}),jc=function(Je){(Pn||sa)&&We!==null&&We!==void 0&&We.contains(Je.target)&&$i(!0,p)},Q&&(Re.onMouseMove=function(Le){var Je;(Je=Ae.onMouseMove)===null||Je===void 0||Je.call(Ae,Le)})),kg&&($o("onMouseLeave",!1,v),$o("onPointerLeave",!1,v),aa=function(){$i(!1,v)}),Po.has("focus")&&$o("onFocus",!0,b),Zi.has("focus")&&$o("onBlur",!1,O),Po.has("contextMenu")&&(Re.onContextMenu=function(Le){var Je;Jt.current&&Zi.has("contextMenu")?$i(!1):(hl(Le),$i(!0)),Le.preventDefault();for(var lr=arguments.length,Rr=new Array(lr>1?lr-1:0),yr=1;yr<lr;yr++)Rr[yr-1]=arguments[yr];(Je=Ae.onContextMenu)===null||Je===void 0||Je.call.apply(Je,[Ae,Le].concat(Rr))}),z&&(Re.className=ns(Ae.className,z));var la=$e($e({},Ae),Re),af={},$g=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];$g.forEach(function(Le){H[Le]&&(af[Le]=function(){for(var Je,lr=arguments.length,Rr=new Array(lr),yr=0;yr<lr;yr++)Rr[yr]=arguments[yr];(Je=la[Le])===null||Je===void 0||Je.call.apply(Je,[la].concat(Rr)),H[Le].apply(H,Rr)})});var HS=ce.cloneElement(Qe,$e($e({},la),af)),JS={x:vg,y:bg},KS=T?$e({},T!==!0?T:{}):null;return ce.createElement(ce.Fragment,null,ce.createElement(Mx,{disabled:!Pn,ref:Ie,onResize:ZS},ce.createElement(N9,{getTriggerDOMNode:ne},HS)),ce.createElement(mN.Provider,{value:we},ce.createElement(M9,{portal:t,ref:A,prefixCls:o,popup:V,className:ns(U,wg),style:X,target:re,onMouseEnter:jc,onMouseLeave:aa,onPointerEnter:jc,zIndex:ie,open:Pn,keepDom:sa,fresh:D,onClick:_,onPointerDownCapture:YS,mask:S,motion:ze,maskMotion:lt,onVisibleChanged:GS,onPrepare:sf,forceRender:I,autoDestroy:le,getPopupContainer:P,align:Tc,arrow:KS,arrowPos:JS,ready:mg,offsetX:QS,offsetY:pl,offsetR:yg,offsetB:VS,onAlign:ko,stretch:he,targetWidth:qS/gl,targetHeight:US/Og})))});return process.env.NODE_ENV!=="production"&&(e.displayName="Trigger"),e}const OOe=bOe(OI);var Bc={shiftX:64,adjustY:1},qc={adjustX:1,shiftY:!0},Ai=[0,0],xOe={left:{points:["cr","cl"],overflow:qc,offset:[-4,0],targetOffset:Ai},right:{points:["cl","cr"],overflow:qc,offset:[4,0],targetOffset:Ai},top:{points:["bc","tc"],overflow:Bc,offset:[0,-4],targetOffset:Ai},bottom:{points:["tc","bc"],overflow:Bc,offset:[0,4],targetOffset:Ai},topLeft:{points:["bl","tl"],overflow:Bc,offset:[0,-4],targetOffset:Ai},leftTop:{points:["tr","tl"],overflow:qc,offset:[-4,0],targetOffset:Ai},topRight:{points:["br","tr"],overflow:Bc,offset:[0,-4],targetOffset:Ai},rightTop:{points:["tl","tr"],overflow:qc,offset:[4,0],targetOffset:Ai},bottomRight:{points:["tr","br"],overflow:Bc,offset:[0,4],targetOffset:Ai},rightBottom:{points:["bl","br"],overflow:qc,offset:[4,0],targetOffset:Ai},bottomLeft:{points:["tl","bl"],overflow:Bc,offset:[0,4],targetOffset:Ai},leftBottom:{points:["br","bl"],overflow:qc,offset:[-4,0],targetOffset:Ai}},SOe=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],wOe=function(e,r){var n=e.overlayClassName,i=e.trigger,o=i===void 0?["hover"]:i,s=e.mouseEnterDelay,a=s===void 0?0:s,l=e.mouseLeaveDelay,c=l===void 0?.1:l,u=e.overlayStyle,d=e.prefixCls,f=d===void 0?"rc-tooltip":d,h=e.children,g=e.onVisibleChange,p=e.afterVisibleChange,y=e.transitionName,v=e.animation,b=e.motion,O=e.placement,S=O===void 0?"right":O,x=e.align,w=x===void 0?{}:x,P=e.destroyTooltipOnHide,I=P===void 0?!1:P,E=e.defaultVisible,M=e.getTooltipContainer,V=e.overlayInnerStyle;e.arrowContent;var U=e.overlay,X=e.id,J=e.showArrow,te=J===void 0?!0:J,oe=e.classNames,ae=e.styles,ie=Ci(e,SOe),he=S9(X),L=N.useRef(null);N.useImperativeHandle(r,function(){return L.current});var D=$e({},ie);"visible"in e&&(D.popupVisible=e.visible);var Q=function(){return ce.createElement(Dve,{key:"content",prefixCls:f,id:he,bodyClassName:oe==null?void 0:oe.body,overlayInnerStyle:$e($e({},V),ae==null?void 0:ae.body)},U)},_=function(){var T=ce.Children.only(h),j=(T==null?void 0:T.props)||{},Z=$e($e({},j),{},{"aria-describedby":U?he:null});return ce.cloneElement(h,Z)};return ce.createElement(OOe,qe({popupClassName:ns(n,oe==null?void 0:oe.root),prefixCls:f,popup:Q,action:o,builtinPlacements:xOe,popupPlacement:S,ref:L,popupAlign:w,getPopupContainer:M,onPopupVisibleChange:g,afterPopupVisibleChange:p,popupTransitionName:y,popupAnimation:v,popupMotion:b,defaultPopupVisible:E,autoDestroy:I,mouseLeaveDelay:c,popupStyle:$e($e({},u),ae==null?void 0:ae.root),mouseEnterDelay:a,arrow:te},D),_())};const al=N.forwardRef(wOe);function COe({value:t,disabled:e=!1,onChange:r,title:n}){return m.jsxs(POe,{children:[m.jsx(q.Switch,{value:t,onChange:r,disabled:e}),n&&m.jsx(kOe,{children:n})]})}const POe=R.div`
|
|
274
|
+
}`),i)}else A$(i);return function(){A$(i)}},[e,i])}var dbe=!1;function fbe(t){return dbe}var oN=function(e){return e===!1?!1:!is()||!e?null:typeof e=="string"?document.querySelector(e):typeof e=="function"?e():e},OI=ce.forwardRef(function(t,e){var r=t.open,n=t.autoLock,i=t.getContainer,o=t.debug,s=t.autoDestroy,a=s===void 0?!0:s,l=t.children,c=ce.useState(r),u=it(c,2),d=u[0],f=u[1],h=d||r;process.env.NODE_ENV!=="production"&&Ex(is()||!r,"Portal only work in client side. Please call 'useEffect' to show Portal instead default render in SSR."),ce.useEffect(function(){(a||r)&&f(r)},[r,a]);var g=ce.useState(function(){return oN(i)}),p=it(g,2),y=p[0],v=p[1];ce.useEffect(function(){var U=oN(i);v(U??null)});var b=tbe(h&&!y,o),O=it(b,2),S=O[0],x=O[1],w=y??S;ube(n&&r&&is()&&(w===S||w===document.body));var P=null;if(l&&Ax(l)&&e){var I=l;P=I.ref}var E=yI(P,e);if(!h||!is()||y===void 0)return null;var M=w===!1||fbe(),V=l;return e&&(V=ce.cloneElement(l,{ref:E})),ce.createElement(aZ.Provider,{value:x},M?V:UE.createPortal(V,w))});process.env.NODE_ENV!=="production"&&(OI.displayName="Portal");function I$(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[];return ce.default.Children.forEach(t,function(n){n==null&&!e.keepEmpty||(Array.isArray(n)?r=r.concat(I$(n)):iZ(n)&&n.props?r=r.concat(I$(n.props.children,e)):r.push(n))}),r}function gp(t){return t instanceof HTMLElement||t instanceof SVGElement}function hbe(t){return t&&ri(t)==="object"&&gp(t.nativeElement)?t.nativeElement:gp(t)?t:null}function cb(t){var e=hbe(t);if(e)return e;if(t instanceof ce.default.Component){var r;return(r=__.default.findDOMNode)===null||r===void 0?void 0:r.call(__.default,t)}return null}var T$=ce.createContext(null);function pbe(t){var e=t.children,r=t.onBatchResize,n=ce.useRef(0),i=ce.useRef([]),o=ce.useContext(T$),s=ce.useCallback(function(a,l,c){n.current+=1;var u=n.current;i.current.push({size:a,element:l,data:c}),Promise.resolve().then(function(){u===n.current&&(r==null||r(i.current),i.current=[])}),o==null||o(a,l,c)},[r,o]);return ce.createElement(T$.Provider,{value:s},e)}var fZ=(function(){if(typeof Map<"u")return Map;function t(e,r){var n=-1;return e.some(function(i,o){return i[0]===r?(n=o,!0):!1}),n}return(function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(r){var n=t(this.__entries__,r),i=this.__entries__[n];return i&&i[1]},e.prototype.set=function(r,n){var i=t(this.__entries__,r);~i?this.__entries__[i][1]=n:this.__entries__.push([r,n])},e.prototype.delete=function(r){var n=this.__entries__,i=t(n,r);~i&&n.splice(i,1)},e.prototype.has=function(r){return!!~t(this.__entries__,r)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(r,n){n===void 0&&(n=null);for(var i=0,o=this.__entries__;i<o.length;i++){var s=o[i];r.call(n,s[1],s[0])}},e})()})(),_$=typeof window<"u"&&typeof document<"u"&&window.document===document,BO=(function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()})(),gbe=(function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(BO):function(t){return setTimeout(function(){return t(Date.now())},1e3/60)}})(),mbe=2;function ybe(t,e){var r=!1,n=!1,i=0;function o(){r&&(r=!1,t()),n&&a()}function s(){gbe(o)}function a(){var l=Date.now();if(r){if(l-i<mbe)return;n=!0}else r=!0,n=!1,setTimeout(s,e);i=l}return a}var vbe=20,bbe=["top","right","bottom","left","width","height","size","weight"],Obe=typeof MutationObserver<"u",xbe=(function(){function t(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=ybe(this.refresh.bind(this),vbe)}return t.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},t.prototype.removeObserver=function(e){var r=this.observers_,n=r.indexOf(e);~n&&r.splice(n,1),!r.length&&this.connected_&&this.disconnect_()},t.prototype.refresh=function(){var e=this.updateObservers_();e&&this.refresh()},t.prototype.updateObservers_=function(){var e=this.observers_.filter(function(r){return r.gatherActive(),r.hasActive()});return e.forEach(function(r){return r.broadcastActive()}),e.length>0},t.prototype.connect_=function(){!_$||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Obe?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){!_$||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(e){var r=e.propertyName,n=r===void 0?"":r,i=bbe.some(function(o){return!!~n.indexOf(o)});i&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t})(),hZ=(function(t,e){for(var r=0,n=Object.keys(e);r<n.length;r++){var i=n[r];Object.defineProperty(t,i,{value:e[i],enumerable:!1,writable:!1,configurable:!0})}return t}),yd=(function(t){var e=t&&t.ownerDocument&&t.ownerDocument.defaultView;return e||BO}),pZ=Tx(0,0,0,0);function qO(t){return parseFloat(t)||0}function sN(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return e.reduce(function(n,i){var o=t["border-"+i+"-width"];return n+qO(o)},0)}function Sbe(t){for(var e=["top","right","bottom","left"],r={},n=0,i=e;n<i.length;n++){var o=i[n],s=t["padding-"+o];r[o]=qO(s)}return r}function wbe(t){var e=t.getBBox();return Tx(0,0,e.width,e.height)}function Cbe(t){var e=t.clientWidth,r=t.clientHeight;if(!e&&!r)return pZ;var n=yd(t).getComputedStyle(t),i=Sbe(n),o=i.left+i.right,s=i.top+i.bottom,a=qO(n.width),l=qO(n.height);if(n.boxSizing==="border-box"&&(Math.round(a+o)!==e&&(a-=sN(n,"left","right")+o),Math.round(l+s)!==r&&(l-=sN(n,"top","bottom")+s)),!kbe(t)){var c=Math.round(a+o)-e,u=Math.round(l+s)-r;Math.abs(c)!==1&&(a-=c),Math.abs(u)!==1&&(l-=u)}return Tx(i.left,i.top,a,l)}var Pbe=(function(){return typeof SVGGraphicsElement<"u"?function(t){return t instanceof yd(t).SVGGraphicsElement}:function(t){return t instanceof yd(t).SVGElement&&typeof t.getBBox=="function"}})();function kbe(t){return t===yd(t).document.documentElement}function $be(t){return _$?Pbe(t)?wbe(t):Cbe(t):pZ}function Ebe(t){var e=t.x,r=t.y,n=t.width,i=t.height,o=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,s=Object.create(o.prototype);return hZ(s,{x:e,y:r,width:n,height:i,top:r,right:e+n,bottom:i+r,left:e}),s}function Tx(t,e,r,n){return{x:t,y:e,width:r,height:n}}var Abe=(function(){function t(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Tx(0,0,0,0),this.target=e}return t.prototype.isActive=function(){var e=$be(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},t.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},t})(),Ibe=(function(){function t(e,r){var n=Ebe(r);hZ(this,{target:e,contentRect:n})}return t})(),Tbe=(function(){function t(e,r,n){if(this.activeObservations_=[],this.observations_=new fZ,typeof e!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=r,this.callbackCtx_=n}return t.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(e instanceof yd(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(e)||(r.set(e,new Abe(e)),this.controller_.addObserver(this),this.controller_.refresh())}},t.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(e instanceof yd(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(e)&&(r.delete(e),r.size||this.controller_.removeObserver(this))}},t.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},t.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach(function(r){r.isActive()&&e.activeObservations_.push(r)})},t.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,r=this.activeObservations_.map(function(n){return new Ibe(n.target,n.broadcastRect())});this.callback_.call(e,r,e),this.clearActive()}},t.prototype.clearActive=function(){this.activeObservations_.splice(0)},t.prototype.hasActive=function(){return this.activeObservations_.length>0},t})(),gZ=typeof WeakMap<"u"?new WeakMap:new fZ,mZ=(function(){function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var r=xbe.getInstance(),n=new Tbe(e,r,this);gZ.set(this,n)}return t})();["observe","unobserve","disconnect"].forEach(function(t){mZ.prototype[t]=function(){var e;return(e=gZ.get(this))[t].apply(e,arguments)}});var _be=(function(){return typeof BO.ResizeObserver<"u"?BO.ResizeObserver:mZ})(),Ns=new Map;function yZ(t){t.forEach(function(e){var r,n=e.target;(r=Ns.get(n))===null||r===void 0||r.forEach(function(i){return i(n)})})}var vZ=new _be(yZ);process.env.NODE_ENV;process.env.NODE_ENV;function Rbe(t,e){Ns.has(t)||(Ns.set(t,new Set),vZ.observe(t)),Ns.get(t).add(e)}function jbe(t,e){Ns.has(t)&&(Ns.get(t).delete(e),Ns.get(t).size||(vZ.unobserve(t),Ns.delete(t)))}function _x(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function aN(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,eZ(n.key),n)}}function Rx(t,e,r){return e&&aN(t.prototype,e),r&&aN(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function FO(t,e){return FO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},FO(t,e)}function jx(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&FO(t,e)}function WO(t){return WO=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},WO(t)}function bZ(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(bZ=function(){return!!t})()}function mp(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Dbe(t,e){if(e&&(ri(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return mp(t)}function Dx(t){var e=bZ();return function(){var r,n=WO(t);if(e){var i=WO(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Dbe(this,r)}}var Mbe=(function(t){jx(r,t);var e=Dx(r);function r(){return _x(this,r),e.apply(this,arguments)}return Rx(r,[{key:"render",value:function(){return this.props.children}}]),r})(ce.Component);function Nbe(t,e){var r=t.children,n=t.disabled,i=ce.useRef(null),o=ce.useRef(null),s=ce.useContext(T$),a=typeof r=="function",l=a?r(i):r,c=ce.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),u=!a&&ce.isValidElement(l)&&Ax(l),d=u?vI(l):null,f=yI(d,i),h=function(){var v;return cb(i.current)||(i.current&&ri(i.current)==="object"?cb((v=i.current)===null||v===void 0?void 0:v.nativeElement):null)||cb(o.current)};ce.useImperativeHandle(e,function(){return h()});var g=ce.useRef(t);g.current=t;var p=ce.useCallback(function(y){var v=g.current,b=v.onResize,O=v.data,S=y.getBoundingClientRect(),x=S.width,w=S.height,P=y.offsetWidth,I=y.offsetHeight,E=Math.floor(x),M=Math.floor(w);if(c.current.width!==E||c.current.height!==M||c.current.offsetWidth!==P||c.current.offsetHeight!==I){var V={width:E,height:M,offsetWidth:P,offsetHeight:I};c.current=V;var U=P===Math.round(x)?x:P,X=I===Math.round(w)?w:I,J=$e($e({},V),{},{offsetWidth:U,offsetHeight:X});s==null||s(J,y,O),b&&Promise.resolve().then(function(){b(J,y)})}},[]);return ce.useEffect(function(){var y=h();return y&&!n&&Rbe(y,p),function(){return jbe(y,p)}},[i.current,n]),ce.createElement(Mbe,{ref:o},u?ce.cloneElement(l,{ref:f}):l)}var OZ=ce.forwardRef(Nbe);process.env.NODE_ENV!=="production"&&(OZ.displayName="SingleObserver");var Lbe="rc-observer-key";function Qbe(t,e){var r=t.children,n=typeof r=="function"?[r]:I$(r);return process.env.NODE_ENV!=="production"&&(n.length>1?zO(!1,"Find more than one child node with `children` in ResizeObserver. Please use ResizeObserver.Collection instead."):n.length===0&&zO(!1,"`children` of ResizeObserver is empty. Nothing is in observe.")),n.map(function(i,o){var s=(i==null?void 0:i.key)||"".concat(Lbe,"-").concat(o);return ce.createElement(OZ,qe({},t,{key:s,ref:o===0?e:void 0}),i)})}var Mx=ce.forwardRef(Qbe);process.env.NODE_ENV!=="production"&&(Mx.displayName="ResizeObserver");Mx.Collection=pbe;function xZ(t){var e;return t==null||(e=t.getRootNode)===null||e===void 0?void 0:e.call(t)}function Vbe(t){return xZ(t)instanceof ShadowRoot}function R$(t){return Vbe(t)?xZ(t):null}function qo(t){var e=ce.useRef();e.current=t;var r=ce.useCallback(function(){for(var n,i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return(n=e.current)===null||n===void 0?void 0:n.call.apply(n,[e].concat(o))},[]);return r}function zbe(){var t=$e({},ce);return t.useId}var lN=0,cN=zbe();const SZ=cN?function(e){var r=cN();return e||(process.env.NODE_ENV==="test"?"test-id":r)}:function(e){var r=ce.useState("ssr-id"),n=it(r,2),i=n[0],o=n[1];return ce.useEffect(function(){var s=lN;lN+=1,o("rc_unique_".concat(s))},[]),e||(process.env.NODE_ENV==="test"?"test-id":i)},Bbe=(function(){if(typeof navigator>"u"||typeof window>"u")return!1;var t=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(t)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(t==null?void 0:t.substr(0,4))});var qbe=ce.createContext({}),Fbe=(function(t){jx(r,t);var e=Dx(r);function r(){return _x(this,r),e.apply(this,arguments)}return Rx(r,[{key:"render",value:function(){return this.props.children}}]),r})(ce.Component);function j$(t){var e=ce.useRef(!1),r=ce.useState(t),n=it(r,2),i=n[0],o=n[1];ce.useEffect(function(){return e.current=!1,function(){e.current=!0}},[]);function s(a,l){l&&e.current||o(a)}return[i,s]}function Wbe(t){var e=ce.useReducer(function(a){return a+1},0),r=it(e,2),n=r[1],i=ce.useRef(t),o=qo(function(){return i.current}),s=qo(function(a){i.current=typeof a=="function"?a(i.current):a,n()});return[o,s]}var ba="none",Om="appear",xm="enter",Sm="leave",uN="none",ro="prepare",Su="start",wu="active",xI="end",wZ="prepared";function dN(t,e){var r={};return r[t.toLowerCase()]=e.toLowerCase(),r["Webkit".concat(t)]="webkit".concat(e),r["Moz".concat(t)]="moz".concat(e),r["ms".concat(t)]="MS".concat(e),r["O".concat(t)]="o".concat(e.toLowerCase()),r}function Ube(t,e){var r={animationend:dN("Animation","AnimationEnd"),transitionend:dN("Transition","TransitionEnd")};return t&&("AnimationEvent"in e||delete r.animationend.animation,"TransitionEvent"in e||delete r.transitionend.transition),r}var Xbe=Ube(is(),typeof window<"u"?window:{}),CZ={};if(is()){var Zbe=document.createElement("div");CZ=Zbe.style}var wm={};function PZ(t){if(wm[t])return wm[t];var e=Xbe[t];if(e)for(var r=Object.keys(e),n=r.length,i=0;i<n;i+=1){var o=r[i];if(Object.prototype.hasOwnProperty.call(e,o)&&o in CZ)return wm[t]=e[o],wm[t]}return""}var kZ=PZ("animationend"),$Z=PZ("transitionend"),EZ=!!(kZ&&$Z),fN=kZ||"animationend",hN=$Z||"transitionend";function pN(t,e){if(!t)return null;if(ri(t)==="object"){var r=e.replace(/-\w/g,function(n){return n[1].toUpperCase()});return t[r]}return"".concat(t,"-").concat(e)}const Gbe=(function(t){var e=N.useRef();function r(i){i&&(i.removeEventListener(hN,t),i.removeEventListener(fN,t))}function n(i){e.current&&e.current!==i&&r(e.current),i&&i!==e.current&&(i.addEventListener(hN,t),i.addEventListener(fN,t),e.current=i)}return ce.useEffect(function(){return function(){r(e.current)}},[]),[n,r]});var AZ=is()?N.useLayoutEffect:N.useEffect,IZ=function(e){return+setTimeout(e,16)},TZ=function(e){return clearTimeout(e)};typeof window<"u"&&"requestAnimationFrame"in window&&(IZ=function(e){return window.requestAnimationFrame(e)},TZ=function(e){return window.cancelAnimationFrame(e)});var gN=0,Nx=new Map;function _Z(t){Nx.delete(t)}var UO=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;gN+=1;var n=gN;function i(o){if(o===0)_Z(n),e();else{var s=IZ(function(){i(o-1)});Nx.set(n,s)}}return i(r),n};UO.cancel=function(t){var e=Nx.get(t);return _Z(t),TZ(e)};process.env.NODE_ENV!=="production"&&(UO.ids=function(){return Nx});const Ybe=(function(){var t=ce.useRef(null);function e(){UO.cancel(t.current)}function r(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;e();var o=UO(function(){i<=1?n({isCanceled:function(){return o!==t.current}}):r(n,i-1)});t.current=o}return ce.useEffect(function(){return function(){e()}},[]),[r,e]});var Hbe=[ro,Su,wu,xI],Jbe=[ro,wZ],RZ=!1,Kbe=!0;function jZ(t){return t===wu||t===xI}const eOe=(function(t,e,r){var n=j$(uN),i=it(n,2),o=i[0],s=i[1],a=Ybe(),l=it(a,2),c=l[0],u=l[1];function d(){s(ro,!0)}var f=e?Jbe:Hbe;return AZ(function(){if(o!==uN&&o!==xI){var h=f.indexOf(o),g=f[h+1],p=r(o);p===RZ?s(g,!0):g&&c(function(y){function v(){y.isCanceled()||s(g,!0)}p===!0?v():Promise.resolve(p).then(v)})}},[t,o]),ce.useEffect(function(){return function(){u()}},[]),[d,o]});function tOe(t,e,r,n){var i=n.motionEnter,o=i===void 0?!0:i,s=n.motionAppear,a=s===void 0?!0:s,l=n.motionLeave,c=l===void 0?!0:l,u=n.motionDeadline,d=n.motionLeaveImmediately,f=n.onAppearPrepare,h=n.onEnterPrepare,g=n.onLeavePrepare,p=n.onAppearStart,y=n.onEnterStart,v=n.onLeaveStart,b=n.onAppearActive,O=n.onEnterActive,S=n.onLeaveActive,x=n.onAppearEnd,w=n.onEnterEnd,P=n.onLeaveEnd,I=n.onVisibleChanged,E=j$(),M=it(E,2),V=M[0],U=M[1],X=Wbe(ba),J=it(X,2),te=J[0],oe=J[1],ae=j$(null),ie=it(ae,2),he=ie[0],L=ie[1],D=te(),Q=N.useRef(!1),_=N.useRef(null);function k(){return r()}var T=N.useRef(!1);function j(){oe(ba),L(null,!0)}var Z=qo(function(be){var we=te();if(we!==ba){var de=k();if(!(be&&!be.deadline&&be.target!==de)){var pe=T.current,ke;we===Om&&pe?ke=x==null?void 0:x(de,be):we===xm&&pe?ke=w==null?void 0:w(de,be):we===Sm&&pe&&(ke=P==null?void 0:P(de,be)),pe&&ke!==!1&&j()}}}),Y=Gbe(Z),ue=it(Y,1),G=ue[0],B=function(we){switch(we){case Om:return Nr(Nr(Nr({},ro,f),Su,p),wu,b);case xm:return Nr(Nr(Nr({},ro,h),Su,y),wu,O);case Sm:return Nr(Nr(Nr({},ro,g),Su,v),wu,S);default:return{}}},z=ce.useMemo(function(){return B(D)},[D]),ne=eOe(D,!t,function(be){if(be===ro){var we=z[ro];return we?we(k()):RZ}if(Se in z){var de;L(((de=z[Se])===null||de===void 0?void 0:de.call(z,k(),null))||null)}return Se===wu&&D!==ba&&(G(k()),u>0&&(clearTimeout(_.current),_.current=setTimeout(function(){Z({deadline:!0})},u))),Se===wZ&&j(),Kbe}),H=it(ne,2),le=H[0],Se=H[1],ee=jZ(Se);T.current=ee;var fe=N.useRef(null);AZ(function(){if(!(Q.current&&fe.current===e)){U(e);var be=Q.current;Q.current=!0;var we;!be&&e&&a&&(we=Om),be&&e&&o&&(we=xm),(be&&!e&&c||!be&&d&&!e&&c)&&(we=Sm);var de=B(we);we&&(t||de[ro])?(oe(we),le()):oe(ba),fe.current=e}},[e]),N.useEffect(function(){(D===Om&&!a||D===xm&&!o||D===Sm&&!c)&&oe(ba)},[a,o,c]),N.useEffect(function(){return function(){Q.current=!1,clearTimeout(_.current)}},[]);var Ce=ce.useRef(!1);N.useEffect(function(){V&&(Ce.current=!0),V!==void 0&&D===ba&&((Ce.current||V)&&(I==null||I(V)),Ce.current=!0)},[V,D]);var Oe=he;return z[ro]&&Se===Su&&(Oe=$e({transition:"none"},Oe)),[D,Se,Oe,V??e]}function rOe(t){var e=t;ri(t)==="object"&&(e=t.transitionSupport);function r(i,o){return!!(i.motionName&&e&&o!==!1)}var n=ce.forwardRef(function(i,o){var s=i.visible,a=s===void 0?!0:s,l=i.removeOnLeave,c=l===void 0?!0:l,u=i.forceRender,d=i.children,f=i.motionName,h=i.leavedClassName,g=i.eventProps,p=ce.useContext(qbe),y=p.motion,v=r(i,y),b=N.useRef(),O=N.useRef();function S(){try{return b.current instanceof HTMLElement?b.current:cb(O.current)}catch{return null}}var x=tOe(v,a,S,i),w=it(x,4),P=w[0],I=w[1],E=w[2],M=w[3],V=ce.useRef(M);M&&(V.current=!0);var U=ce.useCallback(function(ie){b.current=ie,mI(o,ie)},[o]),X,J=$e($e({},g),{},{visible:a});if(!d)X=null;else if(P===ba)M?X=d($e({},J),U):!c&&V.current&&h?X=d($e($e({},J),{},{className:h}),U):u||!c&&!h?X=d($e($e({},J),{},{style:{display:"none"}}),U):X=null;else{var te;I===ro?te="prepare":jZ(I)?te="active":I===Su&&(te="start");var oe=pN(f,"".concat(P,"-").concat(te));X=d($e($e({},J),{},{className:ns(pN(f,P),Nr(Nr({},oe,oe&&te),f,typeof f=="string")),style:E}),U)}if(ce.isValidElement(X)&&Ax(X)){var ae=vI(X);ae||(X=ce.cloneElement(X,{ref:U}))}return ce.createElement(Fbe,{ref:O},X)});return n.displayName="CSSMotion",n}const SI=rOe(EZ);var D$="add",M$="keep",N$="remove",h1="removed";function nOe(t){var e;return t&&ri(t)==="object"&&"key"in t?e=t:e={key:t},$e($e({},e),{},{key:String(e.key)})}function L$(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return t.map(nOe)}function iOe(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=[],n=0,i=e.length,o=L$(t),s=L$(e);o.forEach(function(c){for(var u=!1,d=n;d<i;d+=1){var f=s[d];if(f.key===c.key){n<d&&(r=r.concat(s.slice(n,d).map(function(h){return $e($e({},h),{},{status:D$})})),n=d),r.push($e($e({},f),{},{status:M$})),n+=1,u=!0;break}}u||r.push($e($e({},c),{},{status:N$}))}),n<i&&(r=r.concat(s.slice(n).map(function(c){return $e($e({},c),{},{status:D$})})));var a={};r.forEach(function(c){var u=c.key;a[u]=(a[u]||0)+1});var l=Object.keys(a).filter(function(c){return a[c]>1});return l.forEach(function(c){r=r.filter(function(u){var d=u.key,f=u.status;return d!==c||f!==N$}),r.forEach(function(u){u.key===c&&(u.status=M$)})}),r}var oOe=["component","children","onVisibleChanged","onAllRemoved"],sOe=["status"],aOe=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function lOe(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:SI,r=(function(n){jx(o,n);var i=Dx(o);function o(){var s;_x(this,o);for(var a=arguments.length,l=new Array(a),c=0;c<a;c++)l[c]=arguments[c];return s=i.call.apply(i,[this].concat(l)),Nr(mp(s),"state",{keyEntities:[]}),Nr(mp(s),"removeKey",function(u){s.setState(function(d){var f=d.keyEntities.map(function(h){return h.key!==u?h:$e($e({},h),{},{status:h1})});return{keyEntities:f}},function(){var d=s.state.keyEntities,f=d.filter(function(h){var g=h.status;return g!==h1}).length;f===0&&s.props.onAllRemoved&&s.props.onAllRemoved()})}),s}return Rx(o,[{key:"render",value:function(){var a=this,l=this.state.keyEntities,c=this.props,u=c.component,d=c.children,f=c.onVisibleChanged;c.onAllRemoved;var h=Ci(c,oOe),g=u||ce.Fragment,p={};return aOe.forEach(function(y){p[y]=h[y],delete h[y]}),delete h.keys,ce.createElement(g,h,l.map(function(y,v){var b=y.status,O=Ci(y,sOe),S=b===D$||b===M$;return ce.createElement(e,qe({},p,{key:O.key,visible:S,eventProps:O,onVisibleChanged:function(w){f==null||f(w,{key:O.key}),w||a.removeKey(O.key)}}),function(x,w){return d($e($e({},x),{},{index:v}),w)})}))}}],[{key:"getDerivedStateFromProps",value:function(a,l){var c=a.keys,u=l.keyEntities,d=L$(c),f=iOe(u,d);return{keyEntities:f.filter(function(h){var g=u.find(function(p){var y=p.key;return h.key===y});return!(g&&g.status===h1&&h.status===N$)})}}}]),o})(ce.Component);return Nr(r,"defaultProps",{component:"div"}),r}lOe(EZ);function cOe(t){var e=t.prefixCls,r=t.align,n=t.arrow,i=t.arrowPos,o=n||{},s=o.className,a=o.content,l=i.x,c=l===void 0?0:l,u=i.y,d=u===void 0?0:u,f=ce.useRef();if(!r||!r.points)return null;var h={position:"absolute"};if(r.autoArrow!==!1){var g=r.points[0],p=r.points[1],y=g[0],v=g[1],b=p[0],O=p[1];y===b||!["t","b"].includes(y)?h.top=d:y==="t"?h.top=0:h.bottom=0,v===O||!["l","r"].includes(v)?h.left=c:v==="l"?h.left=0:h.right=0}return ce.createElement("div",{ref:f,className:ns("".concat(e,"-arrow"),s),style:h},a)}function uOe(t){var e=t.prefixCls,r=t.open,n=t.zIndex,i=t.mask,o=t.motion;return i?ce.createElement(SI,qe({},o,{motionAppear:!0,visible:r,removeOnLeave:!0}),function(s){var a=s.className;return ce.createElement("div",{style:{zIndex:n},className:ns("".concat(e,"-mask"),a)})}):null}var DZ=ce.memo(function(t){var e=t.children;return e},function(t,e){return e.cache});process.env.NODE_ENV!=="production"&&(DZ.displayName="PopupContent");var MZ=ce.forwardRef(function(t,e){var r=t.popup,n=t.className,i=t.prefixCls,o=t.style,s=t.target,a=t.onVisibleChanged,l=t.open,c=t.keepDom,u=t.fresh,d=t.onClick,f=t.mask,h=t.arrow,g=t.arrowPos,p=t.align,y=t.motion,v=t.maskMotion,b=t.forceRender,O=t.getPopupContainer,S=t.autoDestroy,x=t.portal,w=t.zIndex,P=t.onMouseEnter,I=t.onMouseLeave,E=t.onPointerEnter,M=t.onPointerDownCapture,V=t.ready,U=t.offsetX,X=t.offsetY,J=t.offsetR,te=t.offsetB,oe=t.onAlign,ae=t.onPrepare,ie=t.stretch,he=t.targetWidth,L=t.targetHeight,D=typeof r=="function"?r():r,Q=l||c,_=(O==null?void 0:O.length)>0,k=ce.useState(!O||!_),T=it(k,2),j=T[0],Z=T[1];if(gi(function(){!j&&_&&s&&Z(!0)},[j,_,s]),!j)return null;var Y="auto",ue={left:"-1000vw",top:"-1000vh",right:Y,bottom:Y};if(V||!l){var G,B=p.points,z=p.dynamicInset||((G=p._experimental)===null||G===void 0?void 0:G.dynamicInset),ne=z&&B[0][1]==="r",H=z&&B[0][0]==="b";ne?(ue.right=J,ue.left=Y):(ue.left=U,ue.right=Y),H?(ue.bottom=te,ue.top=Y):(ue.top=X,ue.bottom=Y)}var le={};return ie&&(ie.includes("height")&&L?le.height=L:ie.includes("minHeight")&&L&&(le.minHeight=L),ie.includes("width")&&he?le.width=he:ie.includes("minWidth")&&he&&(le.minWidth=he)),l||(le.pointerEvents="none"),ce.createElement(x,{open:b||Q,getContainer:O&&function(){return O(s)},autoDestroy:S},ce.createElement(uOe,{prefixCls:i,open:l,zIndex:w,mask:f,motion:v}),ce.createElement(Mx,{onResize:oe,disabled:!l},function(Se){return ce.createElement(SI,qe({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:b,leavedClassName:"".concat(i,"-hidden")},y,{onAppearPrepare:ae,onEnterPrepare:ae,visible:l,onVisibleChanged:function(fe){var Ce;y==null||(Ce=y.onVisibleChanged)===null||Ce===void 0||Ce.call(y,fe),a(fe)}}),function(ee,fe){var Ce=ee.className,Oe=ee.style,be=ns(i,Ce,n);return ce.createElement("div",{ref:oZ(Se,e,fe),className:be,style:$e($e($e($e({"--arrow-x":"".concat(g.x||0,"px"),"--arrow-y":"".concat(g.y||0,"px")},ue),le),Oe),{},{boxSizing:"border-box",zIndex:w},o),onMouseEnter:P,onMouseLeave:I,onPointerEnter:E,onClick:d,onPointerDownCapture:M},h&&ce.createElement(cOe,{prefixCls:i,arrow:h,arrowPos:g,align:p}),ce.createElement(DZ,{cache:!l&&!u},D))})}))});process.env.NODE_ENV!=="production"&&(MZ.displayName="Popup");var NZ=ce.forwardRef(function(t,e){var r=t.children,n=t.getTriggerDOMNode,i=Ax(r),o=ce.useCallback(function(a){mI(e,n?n(a):a)},[n]),s=yI(o,vI(r));return i?ce.cloneElement(r,{ref:s}):r});process.env.NODE_ENV!=="production"&&(NZ.displayName="TriggerWrapper");var mN=ce.createContext(null);function yN(t){return t?Array.isArray(t)?t:[t]:[]}function dOe(t,e,r,n){return ce.useMemo(function(){var i=yN(r??e),o=yN(n??e),s=new Set(i),a=new Set(o);return t&&(s.has("hover")&&(s.delete("hover"),s.add("click")),a.has("hover")&&(a.delete("hover"),a.add("click"))),[s,a]},[t,e,r,n])}const fOe=(function(t){if(!t)return!1;if(t instanceof Element){if(t.offsetParent)return!0;if(t.getBBox){var e=t.getBBox(),r=e.width,n=e.height;if(r||n)return!0}if(t.getBoundingClientRect){var i=t.getBoundingClientRect(),o=i.width,s=i.height;if(o||s)return!0}}return!1});function hOe(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0;return r?t[0]===e[0]:t[0]===e[0]&&t[1]===e[1]}function pOe(t,e,r,n){for(var i=r.points,o=Object.keys(t),s=0;s<o.length;s+=1){var a,l=o[s];if(hOe((a=t[l])===null||a===void 0?void 0:a.points,i,n))return"".concat(e,"-placement-").concat(l)}return""}function vN(t,e,r,n){return e||(r?{motionName:"".concat(t,"-").concat(r)}:n?{motionName:n}:null)}function Xp(t){return t.ownerDocument.defaultView}function Q$(t){for(var e=[],r=t==null?void 0:t.parentElement,n=["hidden","scroll","clip","auto"];r;){var i=Xp(r).getComputedStyle(r),o=i.overflowX,s=i.overflowY,a=i.overflow;[o,s,a].some(function(l){return n.includes(l)})&&e.push(r),r=r.parentElement}return e}function yp(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(t)?e:t}function bf(t){return yp(parseFloat(t),0)}function bN(t,e){var r=$e({},t);return(e||[]).forEach(function(n){if(!(n instanceof HTMLBodyElement||n instanceof HTMLHtmlElement)){var i=Xp(n).getComputedStyle(n),o=i.overflow,s=i.overflowClipMargin,a=i.borderTopWidth,l=i.borderBottomWidth,c=i.borderLeftWidth,u=i.borderRightWidth,d=n.getBoundingClientRect(),f=n.offsetHeight,h=n.clientHeight,g=n.offsetWidth,p=n.clientWidth,y=bf(a),v=bf(l),b=bf(c),O=bf(u),S=yp(Math.round(d.width/g*1e3)/1e3),x=yp(Math.round(d.height/f*1e3)/1e3),w=(g-p-b-O)*S,P=(f-h-y-v)*x,I=y*x,E=v*x,M=b*S,V=O*S,U=0,X=0;if(o==="clip"){var J=bf(s);U=J*S,X=J*x}var te=d.x+M-U,oe=d.y+I-X,ae=te+d.width+2*U-M-V-w,ie=oe+d.height+2*X-I-E-P;r.left=Math.max(r.left,te),r.top=Math.max(r.top,oe),r.right=Math.min(r.right,ae),r.bottom=Math.min(r.bottom,ie)}}),r}function ON(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r="".concat(e),n=r.match(/^(.*)\%$/);return n?t*(parseFloat(n[1])/100):parseFloat(r)}function xN(t,e){var r=e||[],n=it(r,2),i=n[0],o=n[1];return[ON(t.width,i),ON(t.height,o)]}function SN(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[t[0],t[1]]}function zc(t,e){var r=e[0],n=e[1],i,o;return r==="t"?o=t.y:r==="b"?o=t.y+t.height:o=t.y+t.height/2,n==="l"?i=t.x:n==="r"?i=t.x+t.width:i=t.x+t.width/2,{x:i,y:o}}function pa(t,e){var r={t:"b",b:"t",l:"r",r:"l"};return t.map(function(n,i){return i===e?r[n]||"c":n}).join("")}function gOe(t,e,r,n,i,o,s){var a=ce.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:i[n]||{}}),l=it(a,2),c=l[0],u=l[1],d=ce.useRef(0),f=ce.useMemo(function(){return e?Q$(e):[]},[e]),h=ce.useRef({}),g=function(){h.current={}};t||g();var p=qo(function(){if(e&&r&&t){let Ei=function(jc,aa){var la=arguments.length>2&&arguments[2]!==void 0?arguments[2]:pe,af=k.x+jc,$g=k.y+aa,HS=af+ne,JS=$g+z,KS=Math.max(af,la.left),Le=Math.max($g,la.top),Je=Math.min(HS,la.right),lr=Math.min(JS,la.bottom);return Math.max(0,(Je-KS)*(lr-Le))},kg=function(){dl=k.y+rr,fl=dl+z,ms=k.x+Jt,Ic=ms+ne};var b,O,S,x,w=e,P=w.ownerDocument,I=Xp(w),E=I.getComputedStyle(w),M=E.width,V=E.height,U=E.position,X=w.style.left,J=w.style.top,te=w.style.right,oe=w.style.bottom,ae=w.style.overflow,ie=$e($e({},i[n]),o),he=P.createElement("div");(b=w.parentElement)===null||b===void 0||b.appendChild(he),he.style.left="".concat(w.offsetLeft,"px"),he.style.top="".concat(w.offsetTop,"px"),he.style.position=U,he.style.height="".concat(w.offsetHeight,"px"),he.style.width="".concat(w.offsetWidth,"px"),w.style.left="0",w.style.top="0",w.style.right="auto",w.style.bottom="auto",w.style.overflow="hidden";var L;if(Array.isArray(r))L={x:r[0],y:r[1],width:0,height:0};else{var D,Q,_=r.getBoundingClientRect();_.x=(D=_.x)!==null&&D!==void 0?D:_.left,_.y=(Q=_.y)!==null&&Q!==void 0?Q:_.top,L={x:_.x,y:_.y,width:_.width,height:_.height}}var k=w.getBoundingClientRect();k.x=(O=k.x)!==null&&O!==void 0?O:k.left,k.y=(S=k.y)!==null&&S!==void 0?S:k.top;var T=P.documentElement,j=T.clientWidth,Z=T.clientHeight,Y=T.scrollWidth,ue=T.scrollHeight,G=T.scrollTop,B=T.scrollLeft,z=k.height,ne=k.width,H=L.height,le=L.width,Se={left:0,top:0,right:j,bottom:Z},ee={left:-B,top:-G,right:Y-B,bottom:ue-G},fe=ie.htmlRegion,Ce="visible",Oe="visibleFirst";fe!=="scroll"&&fe!==Oe&&(fe=Ce);var be=fe===Oe,we=bN(ee,f),de=bN(Se,f),pe=fe===Ce?de:we,ke=be?de:pe;w.style.left="auto",w.style.top="auto",w.style.right="0",w.style.bottom="0";var We=w.getBoundingClientRect();w.style.left=X,w.style.top=J,w.style.right=te,w.style.bottom=oe,w.style.overflow=ae,(x=w.parentElement)===null||x===void 0||x.removeChild(he);var C=yp(Math.round(ne/parseFloat(M)*1e3)/1e3),$=yp(Math.round(z/parseFloat(V)*1e3)/1e3);if(C===0||$===0||gp(r)&&!fOe(r))return;var A=ie.offset,W=ie.targetOffset,K=xN(k,A),re=it(K,2),se=re[0],Pe=re[1],Ie=xN(L,W),Qe=it(Ie,2),Ae=Qe[0],Re=Qe[1];L.x-=Ae,L.y-=Re;var Ct=ie.points||[],ze=it(Ct,2),lt=ze[0],pr=ze[1],zn=SN(pr),zr=SN(lt),Kd=zc(L,zn),Pn=zc(k,zr),oa=$e({},ie),Jt=Kd.x-Pn.x+se,rr=Kd.y-Pn.y+Pe,Xi=Ei(Jt,rr),ul=Ei(Jt,rr,de),ef=zc(L,["t","l"]),$i=zc(k,["t","l"]),hg=zc(L,["b","r"]),tf=zc(k,["b","r"]),sa=ie.overflow||{},pg=sa.adjustX,LS=sa.adjustY,rf=sa.shiftX,Ac=sa.shiftY,nf=function(aa){return typeof aa=="boolean"?aa:aa>=0},dl,fl,ms,Ic;kg();var hl=nf(LS),gg=zr[0]===zn[0];if(hl&&zr[0]==="t"&&(fl>ke.bottom||h.current.bt)){var Gr=rr;gg?Gr-=z-H:Gr=ef.y-tf.y-Pe;var mg=Ei(Jt,Gr),QS=Ei(Jt,Gr,de);mg>Xi||mg===Xi&&(!be||QS>=ul)?(h.current.bt=!0,rr=Gr,Pe=-Pe,oa.points=[pa(zr,0),pa(zn,0)]):h.current.bt=!1}if(hl&&zr[0]==="b"&&(dl<ke.top||h.current.tb)){var pl=rr;gg?pl+=z-H:pl=hg.y-$i.y-Pe;var yg=Ei(Jt,pl),VS=Ei(Jt,pl,de);yg>Xi||yg===Xi&&(!be||VS>=ul)?(h.current.tb=!0,rr=pl,Pe=-Pe,oa.points=[pa(zr,0),pa(zn,0)]):h.current.tb=!1}var vg=nf(pg),bg=zr[1]===zn[1];if(vg&&zr[1]==="l"&&(Ic>ke.right||h.current.rl)){var gl=Jt;bg?gl-=ne-le:gl=ef.x-tf.x-se;var Og=Ei(gl,rr),Tc=Ei(gl,rr,de);Og>Xi||Og===Xi&&(!be||Tc>=ul)?(h.current.rl=!0,Jt=gl,se=-se,oa.points=[pa(zr,1),pa(zn,1)]):h.current.rl=!1}if(vg&&zr[1]==="r"&&(ms<ke.left||h.current.lr)){var ys=Jt;bg?ys+=ne-le:ys=hg.x-$i.x-se;var xg=Ei(ys,rr),Sg=Ei(ys,rr,de);xg>Xi||xg===Xi&&(!be||Sg>=ul)?(h.current.lr=!0,Jt=ys,se=-se,oa.points=[pa(zr,1),pa(zn,1)]):h.current.lr=!1}kg();var Po=rf===!0?0:rf;typeof Po=="number"&&(ms<de.left&&(Jt-=ms-de.left-se,L.x+le<de.left+Po&&(Jt+=L.x-de.left+le-Po)),Ic>de.right&&(Jt-=Ic-de.right-se,L.x>de.right-Po&&(Jt+=L.x-de.right+Po)));var Zi=Ac===!0?0:Ac;typeof Zi=="number"&&(dl<de.top&&(rr-=dl-de.top-Pe,L.y+H<de.top+Zi&&(rr+=L.y-de.top+H-Zi)),fl>de.bottom&&(rr-=fl-de.bottom-Pe,L.y>de.bottom-Zi&&(rr+=L.y-de.bottom+Zi)));var _c=k.x+Jt,Rc=_c+ne,ko=k.y+rr,zS=ko+z,wg=L.x,BS=wg+le,of=L.y,qS=of+H,FS=Math.max(_c,wg),WS=Math.min(Rc,BS),Cg=(FS+WS)/2,US=Cg-_c,XS=Math.max(ko,of),Pg=Math.min(zS,qS),ZS=(XS+Pg)/2,GS=ZS-ko;s==null||s(e,oa);var sf=We.right-k.x-(Jt+k.width),$o=We.bottom-k.y-(rr+k.height);C===1&&(Jt=Math.round(Jt),sf=Math.round(sf)),$===1&&(rr=Math.round(rr),$o=Math.round($o));var YS={ready:!0,offsetX:Jt/C,offsetY:rr/$,offsetR:sf/C,offsetB:$o/$,arrowX:US/C,arrowY:GS/$,scaleX:C,scaleY:$,align:oa};u(YS)}}),y=function(){d.current+=1;var O=d.current;Promise.resolve().then(function(){d.current===O&&p()})},v=function(){u(function(O){return $e($e({},O),{},{ready:!1})})};return gi(v,[n]),gi(function(){t||v()},[t]),[c.ready,c.offsetX,c.offsetY,c.offsetR,c.offsetB,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,y]}function mOe(t,e,r,n,i){gi(function(){if(t&&e&&r){let d=function(){n(),i()};var o=e,s=r,a=Q$(o),l=Q$(s),c=Xp(s),u=new Set([c].concat(md(a),md(l)));return u.forEach(function(f){f.addEventListener("scroll",d,{passive:!0})}),c.addEventListener("resize",d,{passive:!0}),n(),function(){u.forEach(function(f){f.removeEventListener("scroll",d),c.removeEventListener("resize",d)})}}},[t,e,r])}function yOe(t,e,r,n,i,o,s,a){var l=ce.useRef(t);l.current=t;var c=ce.useRef(!1);ce.useEffect(function(){if(e&&n&&(!i||o)){var d=function(){c.current=!1},f=function(S){var x;l.current&&!s(((x=S.composedPath)===null||x===void 0||(x=x.call(S))===null||x===void 0?void 0:x[0])||S.target)&&!c.current&&a(!1)},h=Xp(n);h.addEventListener("pointerdown",d,!0),h.addEventListener("mousedown",f,!0),h.addEventListener("contextmenu",f,!0);var g=R$(r);if(g&&(g.addEventListener("mousedown",f,!0),g.addEventListener("contextmenu",f,!0)),process.env.NODE_ENV!=="production"){var p,y,v=r==null||(p=r.getRootNode)===null||p===void 0?void 0:p.call(r),b=(y=n.getRootNode)===null||y===void 0?void 0:y.call(n);zO(v===b,"trigger element and popup element should in same shadow root.")}return function(){h.removeEventListener("pointerdown",d,!0),h.removeEventListener("mousedown",f,!0),h.removeEventListener("contextmenu",f,!0),g&&(g.removeEventListener("mousedown",f,!0),g.removeEventListener("contextmenu",f,!0))}}},[e,r,n,i,o]);function u(){c.current=!0}return u}var vOe=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function bOe(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:OI,e=ce.forwardRef(function(r,n){var i=r.prefixCls,o=i===void 0?"rc-trigger-popup":i,s=r.children,a=r.action,l=a===void 0?"hover":a,c=r.showAction,u=r.hideAction,d=r.popupVisible,f=r.defaultPopupVisible,h=r.onPopupVisibleChange,g=r.afterPopupVisibleChange,p=r.mouseEnterDelay,y=r.mouseLeaveDelay,v=y===void 0?.1:y,b=r.focusDelay,O=r.blurDelay,S=r.mask,x=r.maskClosable,w=x===void 0?!0:x,P=r.getPopupContainer,I=r.forceRender,E=r.autoDestroy,M=r.destroyPopupOnHide,V=r.popup,U=r.popupClassName,X=r.popupStyle,J=r.popupPlacement,te=r.builtinPlacements,oe=te===void 0?{}:te,ae=r.popupAlign,ie=r.zIndex,he=r.stretch,L=r.getPopupClassNameFromAlign,D=r.fresh,Q=r.alignPoint,_=r.onPopupClick,k=r.onPopupAlign,T=r.arrow,j=r.popupMotion,Z=r.maskMotion,Y=r.popupTransitionName,ue=r.popupAnimation,G=r.maskTransitionName,B=r.maskAnimation,z=r.className,ne=r.getTriggerDOMNode,H=Ci(r,vOe),le=E||M||!1,Se=ce.useState(!1),ee=it(Se,2),fe=ee[0],Ce=ee[1];gi(function(){Ce(Bbe())},[]);var Oe=ce.useRef({}),be=ce.useContext(mN),we=ce.useMemo(function(){return{registerSubPopup:function(Je,lr){Oe.current[Je]=lr,be==null||be.registerSubPopup(Je,lr)}}},[be]),de=SZ(),pe=ce.useState(null),ke=it(pe,2),We=ke[0],C=ke[1],$=ce.useRef(null),A=qo(function(Le){$.current=Le,gp(Le)&&We!==Le&&C(Le),be==null||be.registerSubPopup(de,Le)}),W=ce.useState(null),K=it(W,2),re=K[0],se=K[1],Pe=ce.useRef(null),Ie=qo(function(Le){gp(Le)&&re!==Le&&(se(Le),Pe.current=Le)}),Qe=ce.Children.only(s),Ae=(Qe==null?void 0:Qe.props)||{},Re={},Ct=qo(function(Le){var Je,lr,Rr=re;return(Rr==null?void 0:Rr.contains(Le))||((Je=R$(Rr))===null||Je===void 0?void 0:Je.host)===Le||Le===Rr||(We==null?void 0:We.contains(Le))||((lr=R$(We))===null||lr===void 0?void 0:lr.host)===Le||Le===We||Object.values(Oe.current).some(function(yr){return(yr==null?void 0:yr.contains(Le))||Le===yr})}),ze=vN(o,j,ue,Y),lt=vN(o,Z,B,G),pr=ce.useState(f||!1),zn=it(pr,2),zr=zn[0],Kd=zn[1],Pn=d??zr,oa=qo(function(Le){d===void 0&&Kd(Le)});gi(function(){Kd(d||!1)},[d]);var Jt=ce.useRef(Pn);Jt.current=Pn;var rr=ce.useRef([]);rr.current=[];var Xi=qo(function(Le){var Je;oa(Le),((Je=rr.current[rr.current.length-1])!==null&&Je!==void 0?Je:Pn)!==Le&&(rr.current.push(Le),h==null||h(Le))}),ul=ce.useRef(),ef=function(){clearTimeout(ul.current)},$i=function(Je){var lr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;ef(),lr===0?Xi(Je):ul.current=setTimeout(function(){Xi(Je)},lr*1e3)};ce.useEffect(function(){return ef},[]);var hg=ce.useState(!1),tf=it(hg,2),sa=tf[0],pg=tf[1];gi(function(Le){(!Le||Pn)&&pg(!0)},[Pn]);var LS=ce.useState(null),rf=it(LS,2),Ac=rf[0],nf=rf[1],dl=ce.useState(null),fl=it(dl,2),ms=fl[0],Ic=fl[1],hl=function(Je){Ic([Je.clientX,Je.clientY])},gg=gOe(Pn,We,Q&&ms!==null?ms:re,J,oe,ae,k),Gr=it(gg,11),mg=Gr[0],QS=Gr[1],pl=Gr[2],yg=Gr[3],VS=Gr[4],vg=Gr[5],bg=Gr[6],gl=Gr[7],Og=Gr[8],Tc=Gr[9],ys=Gr[10],xg=dOe(fe,l,c,u),Sg=it(xg,2),Po=Sg[0],Zi=Sg[1],_c=Po.has("click"),Rc=Zi.has("click")||Zi.has("contextMenu"),ko=qo(function(){sa||ys()}),zS=function(){Jt.current&&Q&&Rc&&$i(!1)};mOe(Pn,re,We,ko,zS),gi(function(){ko()},[ms,J]),gi(function(){Pn&&!(oe!=null&&oe[J])&&ko()},[JSON.stringify(ae)]);var wg=ce.useMemo(function(){var Le=pOe(oe,o,Tc,Q);return ns(Le,L==null?void 0:L(Tc))},[Tc,L,oe,o,Q]);ce.useImperativeHandle(n,function(){return{nativeElement:Pe.current,popupElement:$.current,forceAlign:ko}});var BS=ce.useState(0),of=it(BS,2),qS=of[0],FS=of[1],WS=ce.useState(0),Cg=it(WS,2),US=Cg[0],XS=Cg[1],Pg=function(){if(he&&re){var Je=re.getBoundingClientRect();FS(Je.width),XS(Je.height)}},ZS=function(){Pg(),ko()},GS=function(Je){pg(!1),ys(),g==null||g(Je)},sf=function(){return new Promise(function(Je){Pg(),nf(function(){return Je})})};gi(function(){Ac&&(ys(),Ac(),nf(null))},[Ac]);function $o(Le,Je,lr,Rr){Re[Le]=function(yr){var Eg;Rr==null||Rr(yr),$i(Je,lr);for(var ew=arguments.length,I_=new Array(ew>1?ew-1:0),Ag=1;Ag<ew;Ag++)I_[Ag-1]=arguments[Ag];(Eg=Ae[Le])===null||Eg===void 0||Eg.call.apply(Eg,[Ae,yr].concat(I_))}}(_c||Rc)&&(Re.onClick=function(Le){var Je;Jt.current&&Rc?$i(!1):!Jt.current&&_c&&(hl(Le),$i(!0));for(var lr=arguments.length,Rr=new Array(lr>1?lr-1:0),yr=1;yr<lr;yr++)Rr[yr-1]=arguments[yr];(Je=Ae.onClick)===null||Je===void 0||Je.call.apply(Je,[Ae,Le].concat(Rr))});var YS=yOe(Pn,Rc,re,We,S,w,Ct,$i),Ei=Po.has("hover"),kg=Zi.has("hover"),jc,aa;Ei&&($o("onMouseEnter",!0,p,function(Le){hl(Le)}),$o("onPointerEnter",!0,p,function(Le){hl(Le)}),jc=function(Je){(Pn||sa)&&We!==null&&We!==void 0&&We.contains(Je.target)&&$i(!0,p)},Q&&(Re.onMouseMove=function(Le){var Je;(Je=Ae.onMouseMove)===null||Je===void 0||Je.call(Ae,Le)})),kg&&($o("onMouseLeave",!1,v),$o("onPointerLeave",!1,v),aa=function(){$i(!1,v)}),Po.has("focus")&&$o("onFocus",!0,b),Zi.has("focus")&&$o("onBlur",!1,O),Po.has("contextMenu")&&(Re.onContextMenu=function(Le){var Je;Jt.current&&Zi.has("contextMenu")?$i(!1):(hl(Le),$i(!0)),Le.preventDefault();for(var lr=arguments.length,Rr=new Array(lr>1?lr-1:0),yr=1;yr<lr;yr++)Rr[yr-1]=arguments[yr];(Je=Ae.onContextMenu)===null||Je===void 0||Je.call.apply(Je,[Ae,Le].concat(Rr))}),z&&(Re.className=ns(Ae.className,z));var la=$e($e({},Ae),Re),af={},$g=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];$g.forEach(function(Le){H[Le]&&(af[Le]=function(){for(var Je,lr=arguments.length,Rr=new Array(lr),yr=0;yr<lr;yr++)Rr[yr]=arguments[yr];(Je=la[Le])===null||Je===void 0||Je.call.apply(Je,[la].concat(Rr)),H[Le].apply(H,Rr)})});var HS=ce.cloneElement(Qe,$e($e({},la),af)),JS={x:vg,y:bg},KS=T?$e({},T!==!0?T:{}):null;return ce.createElement(ce.Fragment,null,ce.createElement(Mx,{disabled:!Pn,ref:Ie,onResize:ZS},ce.createElement(NZ,{getTriggerDOMNode:ne},HS)),ce.createElement(mN.Provider,{value:we},ce.createElement(MZ,{portal:t,ref:A,prefixCls:o,popup:V,className:ns(U,wg),style:X,target:re,onMouseEnter:jc,onMouseLeave:aa,onPointerEnter:jc,zIndex:ie,open:Pn,keepDom:sa,fresh:D,onClick:_,onPointerDownCapture:YS,mask:S,motion:ze,maskMotion:lt,onVisibleChanged:GS,onPrepare:sf,forceRender:I,autoDestroy:le,getPopupContainer:P,align:Tc,arrow:KS,arrowPos:JS,ready:mg,offsetX:QS,offsetY:pl,offsetR:yg,offsetB:VS,onAlign:ko,stretch:he,targetWidth:qS/gl,targetHeight:US/Og})))});return process.env.NODE_ENV!=="production"&&(e.displayName="Trigger"),e}const OOe=bOe(OI);var Bc={shiftX:64,adjustY:1},qc={adjustX:1,shiftY:!0},Ai=[0,0],xOe={left:{points:["cr","cl"],overflow:qc,offset:[-4,0],targetOffset:Ai},right:{points:["cl","cr"],overflow:qc,offset:[4,0],targetOffset:Ai},top:{points:["bc","tc"],overflow:Bc,offset:[0,-4],targetOffset:Ai},bottom:{points:["tc","bc"],overflow:Bc,offset:[0,4],targetOffset:Ai},topLeft:{points:["bl","tl"],overflow:Bc,offset:[0,-4],targetOffset:Ai},leftTop:{points:["tr","tl"],overflow:qc,offset:[-4,0],targetOffset:Ai},topRight:{points:["br","tr"],overflow:Bc,offset:[0,-4],targetOffset:Ai},rightTop:{points:["tl","tr"],overflow:qc,offset:[4,0],targetOffset:Ai},bottomRight:{points:["tr","br"],overflow:Bc,offset:[0,4],targetOffset:Ai},rightBottom:{points:["bl","br"],overflow:qc,offset:[4,0],targetOffset:Ai},bottomLeft:{points:["tl","bl"],overflow:Bc,offset:[0,4],targetOffset:Ai},leftBottom:{points:["br","bl"],overflow:qc,offset:[-4,0],targetOffset:Ai}},SOe=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],wOe=function(e,r){var n=e.overlayClassName,i=e.trigger,o=i===void 0?["hover"]:i,s=e.mouseEnterDelay,a=s===void 0?0:s,l=e.mouseLeaveDelay,c=l===void 0?.1:l,u=e.overlayStyle,d=e.prefixCls,f=d===void 0?"rc-tooltip":d,h=e.children,g=e.onVisibleChange,p=e.afterVisibleChange,y=e.transitionName,v=e.animation,b=e.motion,O=e.placement,S=O===void 0?"right":O,x=e.align,w=x===void 0?{}:x,P=e.destroyTooltipOnHide,I=P===void 0?!1:P,E=e.defaultVisible,M=e.getTooltipContainer,V=e.overlayInnerStyle;e.arrowContent;var U=e.overlay,X=e.id,J=e.showArrow,te=J===void 0?!0:J,oe=e.classNames,ae=e.styles,ie=Ci(e,SOe),he=SZ(X),L=N.useRef(null);N.useImperativeHandle(r,function(){return L.current});var D=$e({},ie);"visible"in e&&(D.popupVisible=e.visible);var Q=function(){return ce.createElement(Dve,{key:"content",prefixCls:f,id:he,bodyClassName:oe==null?void 0:oe.body,overlayInnerStyle:$e($e({},V),ae==null?void 0:ae.body)},U)},_=function(){var T=ce.Children.only(h),j=(T==null?void 0:T.props)||{},Z=$e($e({},j),{},{"aria-describedby":U?he:null});return ce.cloneElement(h,Z)};return ce.createElement(OOe,qe({popupClassName:ns(n,oe==null?void 0:oe.root),prefixCls:f,popup:Q,action:o,builtinPlacements:xOe,popupPlacement:S,ref:L,popupAlign:w,getPopupContainer:M,onPopupVisibleChange:g,afterPopupVisibleChange:p,popupTransitionName:y,popupAnimation:v,popupMotion:b,defaultPopupVisible:E,autoDestroy:I,mouseLeaveDelay:c,popupStyle:$e($e({},u),ae==null?void 0:ae.root),mouseEnterDelay:a,arrow:te},D),_())};const al=N.forwardRef(wOe);function COe({value:t,disabled:e=!1,onChange:r,title:n}){return m.jsxs(POe,{children:[m.jsx(q.Switch,{value:t,onChange:r,disabled:e}),n&&m.jsx(kOe,{children:n})]})}const POe=R.div`
|
|
275
275
|
display: flex;
|
|
276
276
|
flex-direction: row;
|
|
277
277
|
align-items: center;
|
|
@@ -318,7 +318,7 @@ html body {
|
|
|
318
318
|
&::placeholder {
|
|
319
319
|
color: var(--input-content-placeholder-color);
|
|
320
320
|
}
|
|
321
|
-
`;function
|
|
321
|
+
`;function LZ({variable:t,onSave:e,onCancel:r,className:n,readonlyName:i,readonlyValue:o,children:s}){const[a,l]=N.useState(t.name),[c,u]=N.useState(t.value),d=()=>{e({...t,name:a,value:c})};return m.jsxs(AOe,{className:n,children:[m.jsxs(vp,{children:[m.jsx(Wa,{children:"Name"}),m.jsx(tl,{"data-testid":"variable-name-input",type:"text",placeholder:"Enter name",value:a,readOnly:i,disabled:i,onChange:f=>l(f.target.value)})]}),m.jsxs(vp,{children:[m.jsx(Wa,{children:"Value"}),m.jsx(tl,{"data-testid":"variable-value-input",type:"text",placeholder:"Enter value",value:c,readOnly:o,onChange:f=>u(f.target.value)})]}),s,m.jsxs(IOe,{children:[m.jsx(q.Button,{size:"small",variant:"text",onClick:r,children:"Cancel"}),m.jsx(q.Button,{size:"small",variant:"primary",onClick:d,disabled:!a.trim(),"data-testid":"variable-save-button",children:"Save"})]})]})}const AOe=R.div`
|
|
322
322
|
display: flex;
|
|
323
323
|
flex-direction: column;
|
|
324
324
|
align-items: flex-start;
|
|
@@ -344,7 +344,7 @@ html body {
|
|
|
344
344
|
align-self: flex-end;
|
|
345
345
|
padding-top: var(--spacing-xxs);
|
|
346
346
|
gap: var(--spacing-xs);
|
|
347
|
-
`;function Zp({input:t,onSave:e,onCancel:r,...n}){const[i,o]=N.useState(!!t.isSecret),s=({name:a,value:l})=>{e({...t,name:a,value:l,isSecret:i})};return m.jsx(L9,{variable:t,onSave:s,onCancel:r,...n,children:m.jsx(vp,{children:m.jsx(COe,{value:i,onChange:a=>o(a),title:"Make it secret"})})})}function ub(t){var e=new Error(t);return e.source="ulid",e}var wI="0123456789ABCDEFGHJKMNPQRSTVWXYZ",Th=wI.length,wN=Math.pow(2,48)-1,TOe=10,_Oe=16;function ROe(t){var e=Math.floor(t()*Th);return e===Th&&(e=Th-1),wI.charAt(e)}function jOe(t,e){if(isNaN(t))throw new Error(t+" must be a number");if(t>wN)throw ub("cannot encode time greater than "+wN);if(t<0)throw ub("time must be positive");if(Number.isInteger(t)===!1)throw ub("time must be an integer");for(var r=void 0,n="";e>0;e--)r=t%Th,n=wI.charAt(r)+n,t=(t-r)/Th;return n}function DOe(t,e){for(var r="";t>0;t--)r=ROe(e)+r;return r}function MOe(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,e=arguments[1];e||(e=typeof window<"u"?window:null);var r=e&&(e.crypto||e.msCrypto);if(r)return function(){var i=new Uint8Array(1);return r.getRandomValues(i),i[0]/255};try{var n=require("crypto");return function(){return n.randomBytes(1).readUInt8()/255}}catch{}if(t){try{console.error("secure crypto unusable, falling back to insecure Math.random()!")}catch{}return function(){return Math.random()}}throw ub("secure crypto unusable, insecure Math.random not allowed")}function NOe(t){return t||(t=MOe()),function(r){return isNaN(r)&&(r=Date.now()),jOe(r,TOe)+DOe(_Oe,t)}}var XO=NOe(),LOe=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof global=="object"?global:{},zl="1.9.0",CN=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;function QOe(t){var e=new Set([t]),r=new Set,n=t.match(CN);if(!n)return function(){return!1};var i={major:+n[1],minor:+n[2],patch:+n[3],prerelease:n[4]};if(i.prerelease!=null)return function(l){return l===t};function o(a){return r.add(a),!1}function s(a){return e.add(a),!0}return function(l){if(e.has(l))return!0;if(r.has(l))return!1;var c=l.match(CN);if(!c)return o(l);var u={major:+c[1],minor:+c[2],patch:+c[3],prerelease:c[4]};return u.prerelease!=null||i.major!==u.major?o(l):i.major===0?i.minor===u.minor&&i.patch<=u.patch?s(l):o(l):i.minor<=u.minor?s(l):o(l)}}var VOe=QOe(zl),zOe=zl.split(".")[0],bp=Symbol.for("opentelemetry.js.api."+zOe),Op=LOe;function Gp(t,e,r,n){var i;n===void 0&&(n=!1);var o=Op[bp]=(i=Op[bp])!==null&&i!==void 0?i:{version:zl};if(!n&&o[t]){var s=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+t);return r.error(s.stack||s.message),!1}if(o.version!==zl){var s=new Error("@opentelemetry/api: Registration of version v"+o.version+" for "+t+" does not match previously registered API v"+zl);return r.error(s.stack||s.message),!1}return o[t]=e,r.debug("@opentelemetry/api: Registered a global for "+t+" v"+zl+"."),!0}function lc(t){var e,r,n=(e=Op[bp])===null||e===void 0?void 0:e.version;if(!(!n||!VOe(n)))return(r=Op[bp])===null||r===void 0?void 0:r[t]}function Yp(t,e){e.debug("@opentelemetry/api: Unregistering a global for "+t+" v"+zl+".");var r=Op[bp];r&&delete r[t]}var BOe=function(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),i,o=[],s;try{for(;(e===void 0||e-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return o},qOe=function(t,e,r){if(r||arguments.length===2)for(var n=0,i=e.length,o;n<i;n++)(o||!(n in e))&&(o||(o=Array.prototype.slice.call(e,0,n)),o[n]=e[n]);return t.concat(o||Array.prototype.slice.call(e))},FOe=(function(){function t(e){this._namespace=e.namespace||"DiagComponentLogger"}return t.prototype.debug=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return Of("debug",this._namespace,e)},t.prototype.error=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return Of("error",this._namespace,e)},t.prototype.info=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return Of("info",this._namespace,e)},t.prototype.warn=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return Of("warn",this._namespace,e)},t.prototype.verbose=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return Of("verbose",this._namespace,e)},t})();function Of(t,e,r){var n=lc("diag");if(n)return r.unshift(e),n[t].apply(n,qOe([],BOe(r),!1))}var fi;(function(t){t[t.NONE=0]="NONE",t[t.ERROR=30]="ERROR",t[t.WARN=50]="WARN",t[t.INFO=60]="INFO",t[t.DEBUG=70]="DEBUG",t[t.VERBOSE=80]="VERBOSE",t[t.ALL=9999]="ALL"})(fi||(fi={}));function WOe(t,e){t<fi.NONE?t=fi.NONE:t>fi.ALL&&(t=fi.ALL),e=e||{};function r(n,i){var o=e[n];return typeof o=="function"&&t>=i?o.bind(e):function(){}}return{error:r("error",fi.ERROR),warn:r("warn",fi.WARN),info:r("info",fi.INFO),debug:r("debug",fi.DEBUG),verbose:r("verbose",fi.VERBOSE)}}var UOe=function(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),i,o=[],s;try{for(;(e===void 0||e-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return o},XOe=function(t,e,r){if(r||arguments.length===2)for(var n=0,i=e.length,o;n<i;n++)(o||!(n in e))&&(o||(o=Array.prototype.slice.call(e,0,n)),o[n]=e[n]);return t.concat(o||Array.prototype.slice.call(e))},ZOe="diag",cs=(function(){function t(){function e(i){return function(){for(var o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];var a=lc("diag");if(a)return a[i].apply(a,XOe([],UOe(o),!1))}}var r=this,n=function(i,o){var s,a,l;if(o===void 0&&(o={logLevel:fi.INFO}),i===r){var c=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return r.error((s=c.stack)!==null&&s!==void 0?s:c.message),!1}typeof o=="number"&&(o={logLevel:o});var u=lc("diag"),d=WOe((a=o.logLevel)!==null&&a!==void 0?a:fi.INFO,i);if(u&&!o.suppressOverrideMessage){var f=(l=new Error().stack)!==null&&l!==void 0?l:"<failed to generate stacktrace>";u.warn("Current logger will be overwritten from "+f),d.warn("Current logger will overwrite one already registered from "+f)}return Gp("diag",d,r,!0)};r.setLogger=n,r.disable=function(){Yp(ZOe,r)},r.createComponentLogger=function(i){return new FOe(i)},r.verbose=e("verbose"),r.debug=e("debug"),r.info=e("info"),r.warn=e("warn"),r.error=e("error")}return t.instance=function(){return this._instance||(this._instance=new t),this._instance},t})(),GOe=function(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),i,o=[],s;try{for(;(e===void 0||e-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return o},YOe=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},HOe=(function(){function t(e){this._entries=e?new Map(e):new Map}return t.prototype.getEntry=function(e){var r=this._entries.get(e);if(r)return Object.assign({},r)},t.prototype.getAllEntries=function(){return Array.from(this._entries.entries()).map(function(e){var r=GOe(e,2),n=r[0],i=r[1];return[n,i]})},t.prototype.setEntry=function(e,r){var n=new t(this._entries);return n._entries.set(e,r),n},t.prototype.removeEntry=function(e){var r=new t(this._entries);return r._entries.delete(e),r},t.prototype.removeEntries=function(){for(var e,r,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var o=new t(this._entries);try{for(var s=YOe(n),a=s.next();!a.done;a=s.next()){var l=a.value;o._entries.delete(l)}}catch(c){e={error:c}}finally{try{a&&!a.done&&(r=s.return)&&r.call(s)}finally{if(e)throw e.error}}return o},t.prototype.clear=function(){return new t},t})(),JOe=Symbol("BaggageEntryMetadata"),KOe=cs.instance();function e0e(t){return t===void 0&&(t={}),new HOe(new Map(Object.entries(t)))}function t0e(t){return typeof t!="string"&&(KOe.error("Cannot create baggage metadata from unknown type: "+typeof t),t=""),{__TYPE__:JOe,toString:function(){return t}}}function CI(t){return Symbol.for(t)}var r0e=(function(){function t(e){var r=this;r._currentContext=e?new Map(e):new Map,r.getValue=function(n){return r._currentContext.get(n)},r.setValue=function(n,i){var o=new t(r._currentContext);return o._currentContext.set(n,i),o},r.deleteValue=function(n){var i=new t(r._currentContext);return i._currentContext.delete(n),i}}return t})(),uu=new r0e,wc=(function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),n0e=(function(){function t(){}return t.prototype.createGauge=function(e,r){return h0e},t.prototype.createHistogram=function(e,r){return p0e},t.prototype.createCounter=function(e,r){return f0e},t.prototype.createUpDownCounter=function(e,r){return g0e},t.prototype.createObservableGauge=function(e,r){return y0e},t.prototype.createObservableCounter=function(e,r){return m0e},t.prototype.createObservableUpDownCounter=function(e,r){return v0e},t.prototype.addBatchObservableCallback=function(e,r){},t.prototype.removeBatchObservableCallback=function(e){},t})(),Lx=(function(){function t(){}return t})(),i0e=(function(t){wc(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.add=function(r,n){},e})(Lx),o0e=(function(t){wc(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.add=function(r,n){},e})(Lx),s0e=(function(t){wc(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.record=function(r,n){},e})(Lx),a0e=(function(t){wc(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.record=function(r,n){},e})(Lx),PI=(function(){function t(){}return t.prototype.addCallback=function(e){},t.prototype.removeCallback=function(e){},t})(),l0e=(function(t){wc(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(PI),c0e=(function(t){wc(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(PI),u0e=(function(t){wc(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(PI),d0e=new n0e,f0e=new i0e,h0e=new s0e,p0e=new a0e,g0e=new o0e,m0e=new l0e,y0e=new c0e,v0e=new u0e,b0e={get:function(t,e){if(t!=null)return t[e]},keys:function(t){return t==null?[]:Object.keys(t)}},O0e={set:function(t,e,r){t!=null&&(t[e]=r)}},x0e=function(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),i,o=[],s;try{for(;(e===void 0||e-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return o},S0e=function(t,e,r){if(r||arguments.length===2)for(var n=0,i=e.length,o;n<i;n++)(o||!(n in e))&&(o||(o=Array.prototype.slice.call(e,0,n)),o[n]=e[n]);return t.concat(o||Array.prototype.slice.call(e))},w0e=(function(){function t(){}return t.prototype.active=function(){return uu},t.prototype.with=function(e,r,n){for(var i=[],o=3;o<arguments.length;o++)i[o-3]=arguments[o];return r.call.apply(r,S0e([n],x0e(i),!1))},t.prototype.bind=function(e,r){return r},t.prototype.enable=function(){return this},t.prototype.disable=function(){return this},t})(),C0e=function(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),i,o=[],s;try{for(;(e===void 0||e-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return o},P0e=function(t,e,r){if(r||arguments.length===2)for(var n=0,i=e.length,o;n<i;n++)(o||!(n in e))&&(o||(o=Array.prototype.slice.call(e,0,n)),o[n]=e[n]);return t.concat(o||Array.prototype.slice.call(e))},p1="context",k0e=new w0e,Qx=(function(){function t(){}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalContextManager=function(e){return Gp(p1,e,cs.instance())},t.prototype.active=function(){return this._getContextManager().active()},t.prototype.with=function(e,r,n){for(var i,o=[],s=3;s<arguments.length;s++)o[s-3]=arguments[s];return(i=this._getContextManager()).with.apply(i,P0e([e,r,n],C0e(o),!1))},t.prototype.bind=function(e,r){return this._getContextManager().bind(e,r)},t.prototype._getContextManager=function(){return lc(p1)||k0e},t.prototype.disable=function(){this._getContextManager().disable(),Yp(p1,cs.instance())},t})(),Js;(function(t){t[t.NONE=0]="NONE",t[t.SAMPLED=1]="SAMPLED"})(Js||(Js={}));var Q9="0000000000000000",V9="00000000000000000000000000000000",z9={traceId:V9,spanId:Q9,traceFlags:Js.NONE},_h=(function(){function t(e){e===void 0&&(e=z9),this._spanContext=e}return t.prototype.spanContext=function(){return this._spanContext},t.prototype.setAttribute=function(e,r){return this},t.prototype.setAttributes=function(e){return this},t.prototype.addEvent=function(e,r){return this},t.prototype.addLink=function(e){return this},t.prototype.addLinks=function(e){return this},t.prototype.setStatus=function(e){return this},t.prototype.updateName=function(e){return this},t.prototype.end=function(e){},t.prototype.isRecording=function(){return!1},t.prototype.recordException=function(e,r){},t})(),kI=CI("OpenTelemetry Context Key SPAN");function $I(t){return t.getValue(kI)||void 0}function $0e(){return $I(Qx.getInstance().active())}function EI(t,e){return t.setValue(kI,e)}function E0e(t){return t.deleteValue(kI)}function A0e(t,e){return EI(t,new _h(e))}function B9(t){var e;return(e=$I(t))===null||e===void 0?void 0:e.spanContext()}var I0e=/^([0-9a-f]{32})$/i,T0e=/^[0-9a-f]{16}$/i;function q9(t){return I0e.test(t)&&t!==V9}function _0e(t){return T0e.test(t)&&t!==Q9}function Vx(t){return q9(t.traceId)&&_0e(t.spanId)}function R0e(t){return new _h(t)}var g1=Qx.getInstance(),F9=(function(){function t(){}return t.prototype.startSpan=function(e,r,n){n===void 0&&(n=g1.active());var i=!!(r!=null&&r.root);if(i)return new _h;var o=n&&B9(n);return j0e(o)&&Vx(o)?new _h(o):new _h},t.prototype.startActiveSpan=function(e,r,n,i){var o,s,a;if(!(arguments.length<2)){arguments.length===2?a=r:arguments.length===3?(o=r,a=n):(o=r,s=n,a=i);var l=s??g1.active(),c=this.startSpan(e,o,l),u=EI(l,c);return g1.with(u,a,void 0,c)}},t})();function j0e(t){return typeof t=="object"&&typeof t.spanId=="string"&&typeof t.traceId=="string"&&typeof t.traceFlags=="number"}var D0e=new F9,M0e=(function(){function t(e,r,n,i){this._provider=e,this.name=r,this.version=n,this.options=i}return t.prototype.startSpan=function(e,r,n){return this._getTracer().startSpan(e,r,n)},t.prototype.startActiveSpan=function(e,r,n,i){var o=this._getTracer();return Reflect.apply(o.startActiveSpan,o,arguments)},t.prototype._getTracer=function(){if(this._delegate)return this._delegate;var e=this._provider.getDelegateTracer(this.name,this.version,this.options);return e?(this._delegate=e,this._delegate):D0e},t})(),N0e=(function(){function t(){}return t.prototype.getTracer=function(e,r,n){return new F9},t})(),L0e=new N0e,PN=(function(){function t(){}return t.prototype.getTracer=function(e,r,n){var i;return(i=this.getDelegateTracer(e,r,n))!==null&&i!==void 0?i:new M0e(this,e,r,n)},t.prototype.getDelegate=function(){var e;return(e=this._delegate)!==null&&e!==void 0?e:L0e},t.prototype.setDelegate=function(e){this._delegate=e},t.prototype.getDelegateTracer=function(e,r,n){var i;return(i=this._delegate)===null||i===void 0?void 0:i.getTracer(e,r,n)},t})(),ZO;(function(t){t[t.NOT_RECORD=0]="NOT_RECORD",t[t.RECORD=1]="RECORD",t[t.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(ZO||(ZO={}));var V$;(function(t){t[t.INTERNAL=0]="INTERNAL",t[t.SERVER=1]="SERVER",t[t.CLIENT=2]="CLIENT",t[t.PRODUCER=3]="PRODUCER",t[t.CONSUMER=4]="CONSUMER"})(V$||(V$={}));var xp;(function(t){t[t.UNSET=0]="UNSET",t[t.OK=1]="OK",t[t.ERROR=2]="ERROR"})(xp||(xp={}));var ao=Qx.getInstance(),jt=cs.instance(),Q0e=(function(){function t(){}return t.prototype.getMeter=function(e,r,n){return d0e},t})(),V0e=new Q0e,m1="metrics",z0e=(function(){function t(){}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalMeterProvider=function(e){return Gp(m1,e,cs.instance())},t.prototype.getMeterProvider=function(){return lc(m1)||V0e},t.prototype.getMeter=function(e,r,n){return this.getMeterProvider().getMeter(e,r,n)},t.prototype.disable=function(){Yp(m1,cs.instance())},t})(),B0e=z0e.getInstance(),q0e=(function(){function t(){}return t.prototype.inject=function(e,r){},t.prototype.extract=function(e,r){return e},t.prototype.fields=function(){return[]},t})(),AI=CI("OpenTelemetry Baggage Key");function W9(t){return t.getValue(AI)||void 0}function F0e(){return W9(Qx.getInstance().active())}function W0e(t,e){return t.setValue(AI,e)}function U0e(t){return t.deleteValue(AI)}var y1="propagation",X0e=new q0e,Z0e=(function(){function t(){this.createBaggage=e0e,this.getBaggage=W9,this.getActiveBaggage=F0e,this.setBaggage=W0e,this.deleteBaggage=U0e}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalPropagator=function(e){return Gp(y1,e,cs.instance())},t.prototype.inject=function(e,r,n){return n===void 0&&(n=O0e),this._getGlobalPropagator().inject(e,r,n)},t.prototype.extract=function(e,r,n){return n===void 0&&(n=b0e),this._getGlobalPropagator().extract(e,r,n)},t.prototype.fields=function(){return this._getGlobalPropagator().fields()},t.prototype.disable=function(){Yp(y1,cs.instance())},t.prototype._getGlobalPropagator=function(){return lc(y1)||X0e},t})(),Rh=Z0e.getInstance(),v1="trace",G0e=(function(){function t(){this._proxyTracerProvider=new PN,this.wrapSpanContext=R0e,this.isSpanContextValid=Vx,this.deleteSpan=E0e,this.getSpan=$I,this.getActiveSpan=$0e,this.getSpanContext=B9,this.setSpan=EI,this.setSpanContext=A0e}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalTracerProvider=function(e){var r=Gp(v1,this._proxyTracerProvider,cs.instance());return r&&this._proxyTracerProvider.setDelegate(e),r},t.prototype.getTracerProvider=function(){return lc(v1)||this._proxyTracerProvider},t.prototype.getTracer=function(e,r){return this.getTracerProvider().getTracer(e,r)},t.prototype.disable=function(){Yp(v1,cs.instance()),this._proxyTracerProvider=new PN},t})(),mi=G0e.getInstance();const U9=CI("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function Y0e(t){return t.setValue(U9,!0)}function II(t){return t.getValue(U9)===!0}const H0e="=",z$=";",B$=",",b1="baggage",J0e=180,K0e=4096,exe=8192;function txe(t){return t.reduce((e,r)=>{const n=`${e}${e!==""?B$:""}${r}`;return n.length>exe?e:n},"")}function rxe(t){return t.getAllEntries().map(([e,r])=>{let n=`${encodeURIComponent(e)}=${encodeURIComponent(r.value)}`;return r.metadata!==void 0&&(n+=z$+r.metadata.toString()),n})}function nxe(t){const e=t.split(z$);if(e.length<=0)return;const r=e.shift();if(!r)return;const n=r.indexOf(H0e);if(n<=0)return;const i=decodeURIComponent(r.substring(0,n).trim()),o=decodeURIComponent(r.substring(n+1).trim());let s;return e.length>0&&(s=t0e(e.join(z$))),{key:i,value:o,metadata:s}}class ixe{inject(e,r,n){const i=Rh.getBaggage(e);if(!i||II(e))return;const o=rxe(i).filter(a=>a.length<=K0e).slice(0,J0e),s=txe(o);s.length>0&&n.set(r,b1,s)}extract(e,r,n){const i=n.get(r,b1),o=Array.isArray(i)?i.join(B$):i;if(!o)return e;const s={};return o.length===0||(o.split(B$).forEach(l=>{const c=nxe(l);if(c){const u={value:c.value};c.metadata&&(u.metadata=c.metadata),s[c.key]=u}}),Object.entries(s).length===0)?e:Rh.setBaggage(e,Rh.createBaggage(s))}fields(){return[b1]}}function db(t){const e={};if(typeof t!="object"||t==null)return e;for(const[r,n]of Object.entries(t)){if(!oxe(r)){jt.warn(`Invalid attribute key: ${r}`);continue}if(!X9(n)){jt.warn(`Invalid attribute value set for key: ${r}`);continue}Array.isArray(n)?e[r]=n.slice():e[r]=n}return e}function oxe(t){return typeof t=="string"&&t.length>0}function X9(t){return t==null?!0:Array.isArray(t)?sxe(t):Z9(t)}function sxe(t){let e;for(const r of t)if(r!=null){if(!e){if(Z9(r)){e=typeof r;continue}return!1}if(typeof r!==e)return!1}return!0}function Z9(t){switch(typeof t){case"number":case"boolean":case"string":return!0}return!1}function axe(){return t=>{jt.error(lxe(t))}}function lxe(t){return typeof t=="string"?t:JSON.stringify(cxe(t))}function cxe(t){const e={};let r=t;for(;r!==null;)Object.getOwnPropertyNames(r).forEach(n=>{if(e[n])return;const i=r[n];i&&(e[n]=String(i))}),r=Object.getPrototypeOf(r);return e}let uxe=axe();function vd(t){try{uxe(t)}catch{}}const Nu=performance,dxe="2.0.1",O1="exception.message",fxe="exception.stacktrace",x1="exception.type",G9="service.name",hxe="service.version",q$="telemetry.sdk.language",pxe="webjs",F$="telemetry.sdk.name",W$="telemetry.sdk.version",gxe="process.runtime.name",S1={[F$]:"opentelemetry",[gxe]:"browser",[q$]:pxe,[W$]:dxe};const mxe=9,yxe=6,vxe=Math.pow(10,yxe),GO=Math.pow(10,mxe);function Cu(t){const e=t/1e3,r=Math.trunc(e),n=Math.round(t%1e3*vxe);return[r,n]}function Y9(){let t=Nu.timeOrigin;if(typeof t!="number"){const e=Nu;t=e.timing&&e.timing.fetchStart}return t}function bxe(t){const e=Cu(Y9()),r=Cu(typeof t=="number"?t:Nu.now());return J9(e,r)}function Oxe(t,e){let r=e[0]-t[0],n=e[1]-t[1];return n<0&&(r-=1,n+=GO),[r,n]}function xxe(t){return t[0]*GO+t[1]}function H9(t){return Array.isArray(t)&&t.length===2&&typeof t[0]=="number"&&typeof t[1]=="number"}function kN(t){return H9(t)||typeof t=="number"||t instanceof Date}function J9(t,e){const r=[t[0]+e[0],t[1]+e[1]];return r[1]>=GO&&(r[1]-=GO,r[0]+=1),r}var zo;(function(t){t[t.SUCCESS=0]="SUCCESS",t[t.FAILED=1]="FAILED"})(zo||(zo={}));class Sxe{constructor(e={}){xe(this,"_propagators");xe(this,"_fields");this._propagators=e.propagators??[],this._fields=Array.from(new Set(this._propagators.map(r=>typeof r.fields=="function"?r.fields():[]).reduce((r,n)=>r.concat(n),[])))}inject(e,r,n){for(const i of this._propagators)try{i.inject(e,r,n)}catch(o){jt.warn(`Failed to inject with ${i.constructor.name}. Err: ${o.message}`)}}extract(e,r,n){return this._propagators.reduce((i,o)=>{try{return o.extract(i,r,n)}catch(s){jt.warn(`Failed to extract with ${o.constructor.name}. Err: ${s.message}`)}return i},e)}fields(){return this._fields.slice()}}const U$="[_0-9a-z-*/]",wxe=`[a-z]${U$}{0,255}`,Cxe=`[a-z0-9]${U$}{0,240}@[a-z]${U$}{0,13}`,Pxe=new RegExp(`^(?:${wxe}|${Cxe})$`),kxe=/^[ -~]{0,255}[!-~]$/,$xe=/,|=/;function Exe(t){return Pxe.test(t)}function Axe(t){return kxe.test(t)&&!$xe.test(t)}const $N=32,Ixe=512,EN=",",AN="=";class TI{constructor(e){xe(this,"_internalState",new Map);e&&this._parse(e)}set(e,r){const n=this._clone();return n._internalState.has(e)&&n._internalState.delete(e),n._internalState.set(e,r),n}unset(e){const r=this._clone();return r._internalState.delete(e),r}get(e){return this._internalState.get(e)}serialize(){return this._keys().reduce((e,r)=>(e.push(r+AN+this.get(r)),e),[]).join(EN)}_parse(e){e.length>Ixe||(this._internalState=e.split(EN).reverse().reduce((r,n)=>{const i=n.trim(),o=i.indexOf(AN);if(o!==-1){const s=i.slice(0,o),a=i.slice(o+1,n.length);Exe(s)&&Axe(a)&&r.set(s,a)}return r},new Map),this._internalState.size>$N&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,$N))))}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){const e=new TI;return e._internalState=new Map(this._internalState),e}}const w1="traceparent",C1="tracestate",Txe="00",_xe="(?!ff)[\\da-f]{2}",Rxe="(?![0]{32})[\\da-f]{32}",jxe="(?![0]{16})[\\da-f]{16}",Dxe="[\\da-f]{2}",Mxe=new RegExp(`^\\s?(${_xe})-(${Rxe})-(${jxe})-(${Dxe})(-.*)?\\s?$`);function Nxe(t){const e=Mxe.exec(t);return!e||e[1]==="00"&&e[5]?null:{traceId:e[2],spanId:e[3],traceFlags:parseInt(e[4],16)}}class Lxe{inject(e,r,n){const i=mi.getSpanContext(e);if(!i||II(e)||!Vx(i))return;const o=`${Txe}-${i.traceId}-${i.spanId}-0${Number(i.traceFlags||Js.NONE).toString(16)}`;n.set(r,w1,o),i.traceState&&n.set(r,C1,i.traceState.serialize())}extract(e,r,n){const i=n.get(r,w1);if(!i)return e;const o=Array.isArray(i)?i[0]:i;if(typeof o!="string")return e;const s=Nxe(o);if(!s)return e;s.isRemote=!0;const a=n.get(r,C1);if(a){const l=Array.isArray(a)?a.join(","):a;s.traceState=new TI(typeof l=="string"?l:void 0)}return mi.setSpanContext(e,s)}fields(){return[w1,C1]}}const Qxe="[object Object]",Vxe="[object Null]",zxe="[object Undefined]",Bxe=Function.prototype,K9=Bxe.toString,qxe=K9.call(Object),Fxe=Object.getPrototypeOf,eG=Object.prototype,tG=eG.hasOwnProperty,Rl=Symbol?Symbol.toStringTag:void 0,rG=eG.toString;function IN(t){if(!Wxe(t)||Uxe(t)!==Qxe)return!1;const e=Fxe(t);if(e===null)return!0;const r=tG.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&K9.call(r)===qxe}function Wxe(t){return t!=null&&typeof t=="object"}function Uxe(t){return t==null?t===void 0?zxe:Vxe:Rl&&Rl in Object(t)?Xxe(t):Zxe(t)}function Xxe(t){const e=tG.call(t,Rl),r=t[Rl];let n=!1;try{t[Rl]=void 0,n=!0}catch{}const i=rG.call(t);return n&&(e?t[Rl]=r:delete t[Rl]),i}function Zxe(t){return rG.call(t)}const Gxe=20;function Yxe(...t){let e=t.shift();const r=new WeakMap;for(;t.length>0;)e=nG(e,t.shift(),0,r);return e}function P1(t){return YO(t)?t.slice():t}function nG(t,e,r=0,n){let i;if(!(r>Gxe)){if(r++,fb(t)||fb(e)||iG(e))i=P1(e);else if(YO(t)){if(i=t.slice(),YO(e))for(let o=0,s=e.length;o<s;o++)i.push(P1(e[o]));else if(xf(e)){const o=Object.keys(e);for(let s=0,a=o.length;s<a;s++){const l=o[s];i[l]=P1(e[l])}}}else if(xf(t))if(xf(e)){if(!Hxe(t,e))return e;i=Object.assign({},t);const o=Object.keys(e);for(let s=0,a=o.length;s<a;s++){const l=o[s],c=e[l];if(fb(c))typeof c>"u"?delete i[l]:i[l]=c;else{const u=i[l],d=c;if(TN(t,l,n)||TN(e,l,n))delete i[l];else{if(xf(u)&&xf(d)){const f=n.get(u)||[],h=n.get(d)||[];f.push({obj:t,key:l}),h.push({obj:e,key:l}),n.set(u,f),n.set(d,h)}i[l]=nG(i[l],c,r,n)}}}}else i=e;return i}}function TN(t,e,r){const n=r.get(t[e])||[];for(let i=0,o=n.length;i<o;i++){const s=n[i];if(s.key===e&&s.obj===t)return!0}return!1}function YO(t){return Array.isArray(t)}function iG(t){return typeof t=="function"}function xf(t){return!fb(t)&&!YO(t)&&!iG(t)&&typeof t=="object"}function fb(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t>"u"||t instanceof Date||t instanceof RegExp||t===null}function Hxe(t,e){return!(!IN(t)||!IN(e))}class Jxe{constructor(){xe(this,"_promise");xe(this,"_resolve");xe(this,"_reject");this._promise=new Promise((e,r)=>{this._resolve=e,this._reject=r})}get promise(){return this._promise}resolve(e){this._resolve(e)}reject(e){this._reject(e)}}class Kxe{constructor(e,r){xe(this,"_callback");xe(this,"_that");xe(this,"_isCalled",!1);xe(this,"_deferred",new Jxe);this._callback=e,this._that=r}get isCalled(){return this._isCalled}get promise(){return this._deferred.promise}call(...e){if(!this._isCalled){this._isCalled=!0;try{Promise.resolve(this._callback.call(this._that,...e)).then(r=>this._deferred.resolve(r),r=>this._deferred.reject(r))}catch(r){this._deferred.reject(r)}}return this._deferred.promise}}function eSe(){return"unknown_service"}const ch=t=>t!==null&&typeof t=="object"&&typeof t.then=="function";class HO{constructor(e){xe(this,"_rawAttributes");xe(this,"_asyncAttributesPending",!1);xe(this,"_memoizedAttributes");const r=e.attributes??{};this._rawAttributes=Object.entries(r).map(([n,i])=>(ch(i)&&(this._asyncAttributesPending=!0),[n,i])),this._rawAttributes=_N(this._rawAttributes)}static FromAttributeList(e){const r=new HO({});return r._rawAttributes=_N(e),r._asyncAttributesPending=e.filter(([n,i])=>ch(i)).length>0,r}get asyncAttributesPending(){return this._asyncAttributesPending}async waitForAsyncAttributes(){if(this.asyncAttributesPending){for(let e=0;e<this._rawAttributes.length;e++){const[r,n]=this._rawAttributes[e];this._rawAttributes[e]=[r,ch(n)?await n:n]}this._asyncAttributesPending=!1}}get attributes(){if(this.asyncAttributesPending&&jt.error("Accessing resource attributes before async attributes settled"),this._memoizedAttributes)return this._memoizedAttributes;const e={};for(const[r,n]of this._rawAttributes){if(ch(n)){jt.debug(`Unsettled resource attribute ${r} skipped`);continue}n!=null&&(e[r]??(e[r]=n))}return this._asyncAttributesPending||(this._memoizedAttributes=e),e}getRawAttributes(){return this._rawAttributes}merge(e){return e==null?this:HO.FromAttributeList([...e.getRawAttributes(),...this.getRawAttributes()])}}function oG(t){return HO.FromAttributeList(Object.entries(t))}function tSe(){return oG({[G9]:eSe(),[q$]:S1[q$],[F$]:S1[F$],[W$]:S1[W$]})}function _N(t){return t.map(([e,r])=>ch(r)?[e,r.catch(n=>{jt.debug("promise rejection for resource attribute: %s - %s",e,n)})]:[e,r])}const rSe="exception";class nSe{constructor(e){xe(this,"_spanContext");xe(this,"kind");xe(this,"parentSpanContext");xe(this,"attributes",{});xe(this,"links",[]);xe(this,"events",[]);xe(this,"startTime");xe(this,"resource");xe(this,"instrumentationScope");xe(this,"_droppedAttributesCount",0);xe(this,"_droppedEventsCount",0);xe(this,"_droppedLinksCount",0);xe(this,"name");xe(this,"status",{code:xp.UNSET});xe(this,"endTime",[0,0]);xe(this,"_ended",!1);xe(this,"_duration",[-1,-1]);xe(this,"_spanProcessor");xe(this,"_spanLimits");xe(this,"_attributeValueLengthLimit");xe(this,"_performanceStartTime");xe(this,"_performanceOffset");xe(this,"_startTimeProvided");const r=Date.now();this._spanContext=e.spanContext,this._performanceStartTime=Nu.now(),this._performanceOffset=r-(this._performanceStartTime+Y9()),this._startTimeProvided=e.startTime!=null,this._spanLimits=e.spanLimits,this._attributeValueLengthLimit=this._spanLimits.attributeValueLengthLimit||0,this._spanProcessor=e.spanProcessor,this.name=e.name,this.parentSpanContext=e.parentSpanContext,this.kind=e.kind,this.links=e.links||[],this.startTime=this._getTime(e.startTime??r),this.resource=e.resource,this.instrumentationScope=e.scope,e.attributes!=null&&this.setAttributes(e.attributes),this._spanProcessor.onStart(this,e.context)}spanContext(){return this._spanContext}setAttribute(e,r){if(r==null||this._isSpanEnded())return this;if(e.length===0)return jt.warn(`Invalid attribute key: ${e}`),this;if(!X9(r))return jt.warn(`Invalid attribute value set for key: ${e}`),this;const{attributeCountLimit:n}=this._spanLimits;return n!==void 0&&Object.keys(this.attributes).length>=n&&!Object.prototype.hasOwnProperty.call(this.attributes,e)?(this._droppedAttributesCount++,this):(this.attributes[e]=this._truncateToSize(r),this)}setAttributes(e){for(const[r,n]of Object.entries(e))this.setAttribute(r,n);return this}addEvent(e,r,n){if(this._isSpanEnded())return this;const{eventCountLimit:i}=this._spanLimits;if(i===0)return jt.warn("No events allowed."),this._droppedEventsCount++,this;i!==void 0&&this.events.length>=i&&(this._droppedEventsCount===0&&jt.debug("Dropping extra events."),this.events.shift(),this._droppedEventsCount++),kN(r)&&(kN(n)||(n=r),r=void 0);const o=db(r);return this.events.push({name:e,attributes:o,time:this._getTime(n),droppedAttributesCount:0}),this}addLink(e){return this.links.push(e),this}addLinks(e){return this.links.push(...e),this}setStatus(e){return this._isSpanEnded()?this:(this.status={...e},this.status.message!=null&&typeof e.message!="string"&&(jt.warn(`Dropping invalid status.message of type '${typeof e.message}', expected 'string'`),delete this.status.message),this)}updateName(e){return this._isSpanEnded()?this:(this.name=e,this)}end(e){if(this._isSpanEnded()){jt.error(`${this.name} ${this._spanContext.traceId}-${this._spanContext.spanId} - You can only call end() on a span once.`);return}this._ended=!0,this.endTime=this._getTime(e),this._duration=Oxe(this.startTime,this.endTime),this._duration[0]<0&&(jt.warn("Inconsistent start and end time, startTime > endTime. Setting span duration to 0ms.",this.startTime,this.endTime),this.endTime=this.startTime.slice(),this._duration=[0,0]),this._droppedEventsCount>0&&jt.warn(`Dropped ${this._droppedEventsCount} events because eventCountLimit reached`),this._spanProcessor.onEnd(this)}_getTime(e){if(typeof e=="number"&&e<=Nu.now())return bxe(e+this._performanceOffset);if(typeof e=="number")return Cu(e);if(e instanceof Date)return Cu(e.getTime());if(H9(e))return e;if(this._startTimeProvided)return Cu(Date.now());const r=Nu.now()-this._performanceStartTime;return J9(this.startTime,Cu(r))}isRecording(){return this._ended===!1}recordException(e,r){const n={};typeof e=="string"?n[O1]=e:e&&(e.code?n[x1]=e.code.toString():e.name&&(n[x1]=e.name),e.message&&(n[O1]=e.message),e.stack&&(n[fxe]=e.stack)),n[x1]||n[O1]?this.addEvent(rSe,n,r):jt.warn(`Failed to record an exception ${e}`)}get duration(){return this._duration}get ended(){return this._ended}get droppedAttributesCount(){return this._droppedAttributesCount}get droppedEventsCount(){return this._droppedEventsCount}get droppedLinksCount(){return this._droppedLinksCount}_isSpanEnded(){if(this._ended){const e=new Error(`Operation attempted on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`);jt.warn(`Cannot execute the operation on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`,e)}return this._ended}_truncateToLimitUtil(e,r){return e.length<=r?e:e.substring(0,r)}_truncateToSize(e){const r=this._attributeValueLengthLimit;return r<=0?(jt.warn(`Attribute value limit must be positive, got ${r}`),e):typeof e=="string"?this._truncateToLimitUtil(e,r):Array.isArray(e)?e.map(n=>typeof n=="string"?this._truncateToLimitUtil(n,r):n):e}}var bd;(function(t){t[t.NOT_RECORD=0]="NOT_RECORD",t[t.RECORD=1]="RECORD",t[t.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(bd||(bd={}));class JO{shouldSample(){return{decision:bd.NOT_RECORD}}toString(){return"AlwaysOffSampler"}}class Lu{shouldSample(){return{decision:bd.RECORD_AND_SAMPLED}}toString(){return"AlwaysOnSampler"}}class Cm{constructor(e){xe(this,"_root");xe(this,"_remoteParentSampled");xe(this,"_remoteParentNotSampled");xe(this,"_localParentSampled");xe(this,"_localParentNotSampled");this._root=e.root,this._root||(vd(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new Lu),this._remoteParentSampled=e.remoteParentSampled??new Lu,this._remoteParentNotSampled=e.remoteParentNotSampled??new JO,this._localParentSampled=e.localParentSampled??new Lu,this._localParentNotSampled=e.localParentNotSampled??new JO}shouldSample(e,r,n,i,o,s){const a=mi.getSpanContext(e);return!a||!Vx(a)?this._root.shouldSample(e,r,n,i,o,s):a.isRemote?a.traceFlags&Js.SAMPLED?this._remoteParentSampled.shouldSample(e,r,n,i,o,s):this._remoteParentNotSampled.shouldSample(e,r,n,i,o,s):a.traceFlags&Js.SAMPLED?this._localParentSampled.shouldSample(e,r,n,i,o,s):this._localParentNotSampled.shouldSample(e,r,n,i,o,s)}toString(){return`ParentBased{root=${this._root.toString()}, remoteParentSampled=${this._remoteParentSampled.toString()}, remoteParentNotSampled=${this._remoteParentNotSampled.toString()}, localParentSampled=${this._localParentSampled.toString()}, localParentNotSampled=${this._localParentNotSampled.toString()}}`}}class RN{constructor(e=0){xe(this,"_ratio");xe(this,"_upperBound");this._ratio=e,this._ratio=this._normalize(e),this._upperBound=Math.floor(this._ratio*4294967295)}shouldSample(e,r){return{decision:q9(r)&&this._accumulate(r)<this._upperBound?bd.RECORD_AND_SAMPLED:bd.NOT_RECORD}}toString(){return`TraceIdRatioBased{${this._ratio}}`}_normalize(e){return typeof e!="number"||isNaN(e)?0:e>=1?1:e<=0?0:e}_accumulate(e){let r=0;for(let n=0;n<e.length/8;n++){const i=n*8,o=parseInt(e.slice(i,i+8),16);r=(r^o)>>>0}return r}}const jN=1;function sG(){return{sampler:aG(),forceFlushTimeoutMillis:3e4,generalLimits:{attributeValueLengthLimit:1/0,attributeCountLimit:128},spanLimits:{attributeValueLengthLimit:1/0,attributeCountLimit:128,linkCountLimit:128,eventCountLimit:128,attributePerEventCountLimit:128,attributePerLinkCountLimit:128}}}function aG(){const t="parentbased_always_on";switch(t){case"always_on":return new Lu;case"always_off":return new JO;case"parentbased_always_on":return new Cm({root:new Lu});case"parentbased_always_off":return new Cm({root:new JO});case"traceidratio":return new RN(DN());case"parentbased_traceidratio":return new Cm({root:new RN(DN())});default:return jt.error(`OTEL_TRACES_SAMPLER value "${t}" invalid, defaulting to "parentbased_always_on".`),new Cm({root:new Lu})}}function DN(){return jt.error(`OTEL_TRACES_SAMPLER_ARG is blank, defaulting to ${jN}.`),jN}const iSe=128,oSe=1/0;function sSe(t){const e={sampler:aG()},r=sG(),n=Object.assign({},r,e,t);return n.generalLimits=Object.assign({},r.generalLimits,t.generalLimits||{}),n.spanLimits=Object.assign({},r.spanLimits,t.spanLimits||{}),n}function aSe(t){var r,n,i,o;const e=Object.assign({},t.spanLimits);return e.attributeCountLimit=((r=t.spanLimits)==null?void 0:r.attributeCountLimit)??((n=t.generalLimits)==null?void 0:n.attributeCountLimit)??void 0??void 0??iSe,e.attributeValueLengthLimit=((i=t.spanLimits)==null?void 0:i.attributeValueLengthLimit)??((o=t.generalLimits)==null?void 0:o.attributeValueLengthLimit)??void 0??void 0??oSe,Object.assign({},t,{spanLimits:e})}class lSe{constructor(e,r){xe(this,"_exporter");xe(this,"_maxExportBatchSize");xe(this,"_maxQueueSize");xe(this,"_scheduledDelayMillis");xe(this,"_exportTimeoutMillis");xe(this,"_isExporting",!1);xe(this,"_finishedSpans",[]);xe(this,"_timer");xe(this,"_shutdownOnce");xe(this,"_droppedSpansCount",0);this._exporter=e,this._maxExportBatchSize=typeof(r==null?void 0:r.maxExportBatchSize)=="number"?r.maxExportBatchSize:512,this._maxQueueSize=typeof(r==null?void 0:r.maxQueueSize)=="number"?r.maxQueueSize:2048,this._scheduledDelayMillis=typeof(r==null?void 0:r.scheduledDelayMillis)=="number"?r.scheduledDelayMillis:5e3,this._exportTimeoutMillis=typeof(r==null?void 0:r.exportTimeoutMillis)=="number"?r.exportTimeoutMillis:3e4,this._shutdownOnce=new Kxe(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize&&(jt.warn("BatchSpanProcessor: maxExportBatchSize must be smaller or equal to maxQueueSize, setting maxExportBatchSize to match maxQueueSize"),this._maxExportBatchSize=this._maxQueueSize)}forceFlush(){return this._shutdownOnce.isCalled?this._shutdownOnce.promise:this._flushAll()}onStart(e,r){}onEnd(e){this._shutdownOnce.isCalled||(e.spanContext().traceFlags&Js.SAMPLED)!==0&&this._addToBuffer(e)}shutdown(){return this._shutdownOnce.call()}_shutdown(){return Promise.resolve().then(()=>this.onShutdown()).then(()=>this._flushAll()).then(()=>this._exporter.shutdown())}_addToBuffer(e){if(this._finishedSpans.length>=this._maxQueueSize){this._droppedSpansCount===0&&jt.debug("maxQueueSize reached, dropping spans"),this._droppedSpansCount++;return}this._droppedSpansCount>0&&(jt.warn(`Dropped ${this._droppedSpansCount} spans because maxQueueSize reached`),this._droppedSpansCount=0),this._finishedSpans.push(e),this._maybeStartTimer()}_flushAll(){return new Promise((e,r)=>{const n=[],i=Math.ceil(this._finishedSpans.length/this._maxExportBatchSize);for(let o=0,s=i;o<s;o++)n.push(this._flushOneBatch());Promise.all(n).then(()=>{e()}).catch(r)})}_flushOneBatch(){return this._clearTimer(),this._finishedSpans.length===0?Promise.resolve():new Promise((e,r)=>{const n=setTimeout(()=>{r(new Error("Timeout"))},this._exportTimeoutMillis);ao.with(Y0e(ao.active()),()=>{let i;this._finishedSpans.length<=this._maxExportBatchSize?(i=this._finishedSpans,this._finishedSpans=[]):i=this._finishedSpans.splice(0,this._maxExportBatchSize);const o=()=>this._exporter.export(i,a=>{clearTimeout(n),a.code===zo.SUCCESS?e():r(a.error??new Error("BatchSpanProcessor: span export failed"))});let s=null;for(let a=0,l=i.length;a<l;a++){const c=i[a];c.resource.asyncAttributesPending&&c.resource.waitForAsyncAttributes&&(s??(s=[]),s.push(c.resource.waitForAsyncAttributes()))}s===null?o():Promise.all(s).then(o,a=>{vd(a),r(a)})})})}_maybeStartTimer(){if(this._isExporting)return;const e=()=>{this._isExporting=!0,this._flushOneBatch().finally(()=>{this._isExporting=!1,this._finishedSpans.length>0&&(this._clearTimer(),this._maybeStartTimer())}).catch(r=>{this._isExporting=!1,vd(r)})};if(this._finishedSpans.length>=this._maxExportBatchSize)return e();this._timer===void 0&&(this._timer=setTimeout(()=>e(),this._scheduledDelayMillis),this._timer,void 0)}_clearTimer(){this._timer!==void 0&&(clearTimeout(this._timer),this._timer=void 0)}}class cSe extends lSe{constructor(r,n){super(r,n);xe(this,"_visibilityChangeListener");xe(this,"_pageHideListener");this.onInit(n)}onInit(r){(r==null?void 0:r.disableAutoFlushOnDocumentHide)!==!0&&typeof document<"u"&&(this._visibilityChangeListener=()=>{document.visibilityState==="hidden"&&this.forceFlush().catch(n=>{vd(n)})},this._pageHideListener=()=>{this.forceFlush().catch(n=>{vd(n)})},document.addEventListener("visibilitychange",this._visibilityChangeListener),document.addEventListener("pagehide",this._pageHideListener))}onShutdown(){typeof document<"u"&&(this._visibilityChangeListener&&document.removeEventListener("visibilitychange",this._visibilityChangeListener),this._pageHideListener&&document.removeEventListener("pagehide",this._pageHideListener))}}const uSe=8,dSe=16;class fSe{constructor(){xe(this,"generateTraceId",MN(dSe));xe(this,"generateSpanId",MN(uSe))}}const Pm=Array(32);function MN(t){return function(){for(let r=0;r<t*2;r++)Pm[r]=Math.floor(Math.random()*16)+48,Pm[r]>=58&&(Pm[r]+=39);return String.fromCharCode.apply(null,Pm.slice(0,t*2))}}class hSe{constructor(e,r,n,i){xe(this,"_sampler");xe(this,"_generalLimits");xe(this,"_spanLimits");xe(this,"_idGenerator");xe(this,"instrumentationScope");xe(this,"_resource");xe(this,"_spanProcessor");const o=sSe(r);this._sampler=o.sampler,this._generalLimits=o.generalLimits,this._spanLimits=o.spanLimits,this._idGenerator=r.idGenerator||new fSe,this._resource=n,this._spanProcessor=i,this.instrumentationScope=e}startSpan(e,r={},n=ao.active()){r.root&&(n=mi.deleteSpan(n));const i=mi.getSpan(n);if(II(n))return jt.debug("Instrumentation suppressed, returning Noop Span"),mi.wrapSpanContext(z9);const o=i==null?void 0:i.spanContext(),s=this._idGenerator.generateSpanId();let a,l,c;!o||!mi.isSpanContextValid(o)?l=this._idGenerator.generateTraceId():(l=o.traceId,c=o.traceState,a=o);const u=r.kind??V$.INTERNAL,d=(r.links??[]).map(b=>({context:b.context,attributes:db(b.attributes)})),f=db(r.attributes),h=this._sampler.shouldSample(n,l,e,u,f,d);c=h.traceState??c;const g=h.decision===ZO.RECORD_AND_SAMPLED?Js.SAMPLED:Js.NONE,p={traceId:l,spanId:s,traceFlags:g,traceState:c};if(h.decision===ZO.NOT_RECORD)return jt.debug("Recording is off, propagating context in a non-recording span"),mi.wrapSpanContext(p);const y=db(Object.assign(f,h.attributes));return new nSe({resource:this._resource,scope:this.instrumentationScope,context:n,spanContext:p,name:e,kind:u,links:d,parentSpanContext:a,attributes:y,startTime:r.startTime,spanProcessor:this._spanProcessor,spanLimits:this._spanLimits})}startActiveSpan(e,r,n,i){let o,s,a;if(arguments.length<2)return;arguments.length===2?a=r:arguments.length===3?(o=r,a=n):(o=r,s=n,a=i);const l=s??ao.active(),c=this.startSpan(e,o,l),u=mi.setSpan(l,c);return ao.with(u,a,void 0,c)}getGeneralLimits(){return this._generalLimits}getSpanLimits(){return this._spanLimits}}class pSe{constructor(e){xe(this,"_spanProcessors");this._spanProcessors=e}forceFlush(){const e=[];for(const r of this._spanProcessors)e.push(r.forceFlush());return new Promise(r=>{Promise.all(e).then(()=>{r()}).catch(n=>{vd(n||new Error("MultiSpanProcessor: forceFlush failed")),r()})})}onStart(e,r){for(const n of this._spanProcessors)n.onStart(e,r)}onEnd(e){for(const r of this._spanProcessors)r.onEnd(e)}shutdown(){const e=[];for(const r of this._spanProcessors)e.push(r.shutdown());return new Promise((r,n)=>{Promise.all(e).then(()=>{r()},n)})}}var jl;(function(t){t[t.resolved=0]="resolved",t[t.timeout=1]="timeout",t[t.error=2]="error",t[t.unresolved=3]="unresolved"})(jl||(jl={}));class gSe{constructor(e={}){xe(this,"_config");xe(this,"_tracers",new Map);xe(this,"_resource");xe(this,"_activeSpanProcessor");var i;const r=Yxe({},sG(),aSe(e));this._resource=r.resource??tSe(),this._config=Object.assign({},r,{resource:this._resource});const n=[];(i=e.spanProcessors)!=null&&i.length&&n.push(...e.spanProcessors),this._activeSpanProcessor=new pSe(n)}getTracer(e,r,n){const i=`${e}@${r||""}:${(n==null?void 0:n.schemaUrl)||""}`;return this._tracers.has(i)||this._tracers.set(i,new hSe({name:e,version:r,schemaUrl:n==null?void 0:n.schemaUrl},this._config,this._resource,this._activeSpanProcessor)),this._tracers.get(i)}forceFlush(){const e=this._config.forceFlushTimeoutMillis,r=this._activeSpanProcessor._spanProcessors.map(n=>new Promise(i=>{let o;const s=setTimeout(()=>{i(new Error(`Span processor did not completed within timeout period of ${e} ms`)),o=jl.timeout},e);n.forceFlush().then(()=>{clearTimeout(s),o!==jl.timeout&&(o=jl.resolved,i(o))}).catch(a=>{clearTimeout(s),o=jl.error,i(a)})}));return new Promise((n,i)=>{Promise.all(r).then(o=>{const s=o.filter(a=>a!==jl.resolved);s.length>0?i(s):n()}).catch(o=>i([o]))})}shutdown(){return this._activeSpanProcessor.shutdown()}}class mSe{constructor(){xe(this,"_enabled",!1);xe(this,"_currentContext",uu)}_bindFunction(e=uu,r){const n=this,i=function(...o){return n.with(e,()=>r.apply(this,o))};return Object.defineProperty(i,"length",{enumerable:!1,configurable:!0,writable:!1,value:r.length}),i}active(){return this._currentContext}bind(e,r){return e===void 0&&(e=this.active()),typeof r=="function"?this._bindFunction(e,r):r}disable(){return this._currentContext=uu,this._enabled=!1,this}enable(){return this._enabled?this:(this._enabled=!0,this._currentContext=uu,this)}with(e,r,n,...i){const o=this._currentContext;this._currentContext=e||uu;try{return r.call(n,...i)}finally{this._currentContext=o}}}function ySe(t){if(t!==null){if(t===void 0){const e=new mSe;e.enable(),ao.setGlobalContextManager(e);return}t.enable(),ao.setGlobalContextManager(t)}}function vSe(t){if(t!==null){if(t===void 0){Rh.setGlobalPropagator(new Sxe({propagators:[new Lxe,new ixe]}));return}Rh.setGlobalPropagator(t)}}class bSe extends gSe{constructor(e={}){super(e)}register(e={}){mi.setGlobalTracerProvider(this),vSe(e.propagator),ySe(e.contextManager)}}class OSe{constructor(e){xe(this,"_delegate");this._delegate=e}export(e,r){this._delegate.export(e,r)}forceFlush(){return this._delegate.forceFlush()}shutdown(){return this._delegate.shutdown()}}class NN extends Error{constructor(r,n,i){super(r);xe(this,"code");xe(this,"name","OTLPExporterError");xe(this,"data");this.data=i,this.code=n}}function xSe(t){if(Number.isFinite(t)&&t>0)return t;throw new Error(`Configuration: timeoutMillis is invalid, expected number greater than 0 (actual: '${t}')`)}function SSe(t){if(t!=null)return()=>t}function wSe(t,e,r){return{timeoutMillis:xSe(t.timeoutMillis??e.timeoutMillis??r.timeoutMillis),concurrencyLimit:t.concurrencyLimit??e.concurrencyLimit??r.concurrencyLimit,compression:t.compression??e.compression??r.compression}}function CSe(){return{timeoutMillis:1e4,concurrencyLimit:30,compression:"none"}}class PSe{constructor(e){xe(this,"_concurrencyLimit");xe(this,"_sendingPromises",[]);this._concurrencyLimit=e}pushPromise(e){if(this.hasReachedLimit())throw new Error("Concurrency Limit reached");this._sendingPromises.push(e);const r=()=>{const n=this._sendingPromises.indexOf(e);this._sendingPromises.splice(n,1)};e.then(r,r)}hasReachedLimit(){return this._sendingPromises.length>=this._concurrencyLimit}async awaitAll(){await Promise.all(this._sendingPromises)}}function kSe(t){return new PSe(t.concurrencyLimit)}function $Se(t){return Object.prototype.hasOwnProperty.call(t,"partialSuccess")}function ESe(){return{handleResponse(t){t==null||!$Se(t)||t.partialSuccess==null||Object.keys(t.partialSuccess).length===0||jt.warn("Received Partial Success response:",JSON.stringify(t.partialSuccess))}}}class ASe{constructor(e,r,n,i,o){xe(this,"_transport");xe(this,"_serializer");xe(this,"_responseHandler");xe(this,"_promiseQueue");xe(this,"_timeout");xe(this,"_diagLogger");this._transport=e,this._serializer=r,this._responseHandler=n,this._promiseQueue=i,this._timeout=o,this._diagLogger=jt.createComponentLogger({namespace:"OTLPExportDelegate"})}export(e,r){if(this._diagLogger.debug("items to be sent",e),this._promiseQueue.hasReachedLimit()){r({code:zo.FAILED,error:new Error("Concurrent export limit reached")});return}const n=this._serializer.serializeRequest(e);if(n==null){r({code:zo.FAILED,error:new Error("Nothing to send")});return}this._promiseQueue.pushPromise(this._transport.send(n,this._timeout).then(i=>{if(i.status==="success"){if(i.data!=null)try{this._responseHandler.handleResponse(this._serializer.deserializeResponse(i.data))}catch(o){this._diagLogger.warn("Export succeeded but could not deserialize response - is the response specification compliant?",o,i.data)}r({code:zo.SUCCESS});return}else if(i.status==="failure"&&i.error){r({code:zo.FAILED,error:i.error});return}else i.status==="retryable"?r({code:zo.FAILED,error:new NN("Export failed with retryable status")}):r({code:zo.FAILED,error:new NN("Export failed with unknown error")})},i=>r({code:zo.FAILED,error:i})))}forceFlush(){return this._promiseQueue.awaitAll()}async shutdown(){this._diagLogger.debug("shutdown started"),await this.forceFlush(),this._transport.shutdown()}}function ISe(t,e){return new ASe(t.transport,t.serializer,ESe(),t.promiseHandler,e.timeout)}function lG(t,e,r){return ISe({transport:r,serializer:e,promiseHandler:kSe(t)},{timeout:t.timeoutMillis})}function LN(t){return t>=48&&t<=57?t-48:t>=97&&t<=102?t-87:t-55}function cG(t){const e=new Uint8Array(t.length/2);let r=0;for(let n=0;n<t.length;n+=2){const i=LN(t.charCodeAt(n)),o=LN(t.charCodeAt(n+1));e[r++]=i<<4|o}return e}function uG(t){const e=BigInt(1e9);return BigInt(t[0])*e+BigInt(t[1])}function TSe(t){const e=Number(BigInt.asUintN(32,t)),r=Number(BigInt.asUintN(32,t>>BigInt(32)));return{low:e,high:r}}function _Se(t){const e=uG(t);return TSe(e)}function RSe(t){return uG(t).toString()}const jSe=typeof BigInt<"u"?RSe:xxe;function QN(t){return t}function DSe(t){if(t!==void 0)return cG(t)}const MSe={encodeHrTime:_Se,encodeSpanContext:cG,encodeOptionalSpanContext:DSe};function NSe(t){return t===void 0?MSe:{encodeHrTime:jSe,encodeSpanContext:QN,encodeOptionalSpanContext:QN}}function LSe(t){return{attributes:zx(t.attributes),droppedAttributesCount:0}}function QSe(t){return{name:t.name,version:t.version}}function zx(t){return Object.keys(t).map(e=>dG(e,t[e]))}function dG(t,e){return{key:t,value:fG(e)}}function fG(t){const e=typeof t;return e==="string"?{stringValue:t}:e==="number"?Number.isInteger(t)?{intValue:t}:{doubleValue:t}:e==="boolean"?{boolValue:t}:t instanceof Uint8Array?{bytesValue:t}:Array.isArray(t)?{arrayValue:{values:t.map(fG)}}:e==="object"&&t!=null?{kvlistValue:{values:Object.entries(t).map(([r,n])=>dG(r,n))}}:{}}function VSe(t,e){var o,s,a;const r=t.spanContext(),n=t.status,i=(o=t.parentSpanContext)!=null&&o.spanId?e.encodeSpanContext((s=t.parentSpanContext)==null?void 0:s.spanId):void 0;return{traceId:e.encodeSpanContext(r.traceId),spanId:e.encodeSpanContext(r.spanId),parentSpanId:i,traceState:(a=r.traceState)==null?void 0:a.serialize(),name:t.name,kind:t.kind==null?0:t.kind+1,startTimeUnixNano:e.encodeHrTime(t.startTime),endTimeUnixNano:e.encodeHrTime(t.endTime),attributes:zx(t.attributes),droppedAttributesCount:t.droppedAttributesCount,events:t.events.map(l=>BSe(l,e)),droppedEventsCount:t.droppedEventsCount,status:{code:n.code,message:n.message},links:t.links.map(l=>zSe(l,e)),droppedLinksCount:t.droppedLinksCount}}function zSe(t,e){var r;return{attributes:t.attributes?zx(t.attributes):[],spanId:e.encodeSpanContext(t.context.spanId),traceId:e.encodeSpanContext(t.context.traceId),traceState:(r=t.context.traceState)==null?void 0:r.serialize(),droppedAttributesCount:t.droppedAttributesCount||0}}function BSe(t,e){return{attributes:t.attributes?zx(t.attributes):[],name:t.name,timeUnixNano:e.encodeHrTime(t.time),droppedAttributesCount:t.droppedAttributesCount||0}}function qSe(t,e){const r=NSe(e);return{resourceSpans:WSe(t,r)}}function FSe(t){const e=new Map;for(const r of t){let n=e.get(r.resource);n||(n=new Map,e.set(r.resource,n));const i=`${r.instrumentationScope.name}@${r.instrumentationScope.version||""}:${r.instrumentationScope.schemaUrl||""}`;let o=n.get(i);o||(o=[],n.set(i,o)),o.push(r)}return e}function WSe(t,e){const r=FSe(t),n=[],i=r.entries();let o=i.next();for(;!o.done;){const[s,a]=o.value,l=[],c=a.values();let u=c.next();for(;!u.done;){const f=u.value;if(f.length>0){const h=f.map(g=>VSe(g,e));l.push({scope:QSe(f[0].instrumentationScope),spans:h,schemaUrl:f[0].instrumentationScope.schemaUrl})}u=c.next()}const d={resource:LSe(s),scopeSpans:l,schemaUrl:void 0};n.push(d),o=i.next()}return n}const USe={serializeRequest:t=>{const e=qSe(t,{});return new TextEncoder().encode(JSON.stringify(e))},deserializeResponse:t=>{if(t.length===0)return{};const e=new TextDecoder;return JSON.parse(e.decode(t))}},XSe=5,ZSe=1e3,GSe=5e3,YSe=1.5,VN=.2;function HSe(){return Math.random()*(2*VN)-VN}class JSe{constructor(e){xe(this,"_transport");this._transport=e}retry(e,r,n){return new Promise((i,o)=>{setTimeout(()=>{this._transport.send(e,r).then(i,o)},n)})}async send(e,r){const n=Date.now()+r;let i=await this._transport.send(e,r),o=XSe,s=ZSe;for(;i.status==="retryable"&&o>0;){o--;const a=Math.max(Math.min(s,GSe)+HSe(),0);s=s*YSe;const l=i.retryInMillis??a,c=n-Date.now();if(l>c)return i;i=await this.retry(e,c,l)}return i}shutdown(){return this._transport.shutdown()}}function hG(t){return new JSe(t.transport)}function KSe(t){return[429,502,503,504].includes(t)}function ewe(t){if(t==null)return;const e=Number.parseInt(t,10);if(Number.isInteger(e))return e>0?e*1e3:-1;const r=new Date(t).getTime()-Date.now();return r>=0?r:0}class twe{constructor(e){xe(this,"_parameters");this._parameters=e}send(e,r){return new Promise(n=>{const i=new XMLHttpRequest;i.timeout=r,i.open("POST",this._parameters.url);const o=this._parameters.headers();Object.entries(o).forEach(([s,a])=>{i.setRequestHeader(s,a)}),i.ontimeout=s=>{n({status:"failure",error:new Error("XHR request timed out")})},i.onreadystatechange=()=>{i.status>=200&&i.status<=299?(jt.debug("XHR success"),n({status:"success"})):i.status&&KSe(i.status)?n({status:"retryable",retryInMillis:ewe(i.getResponseHeader("Retry-After"))}):i.status!==0&&n({status:"failure",error:new Error("XHR request failed with non-retryable status")})},i.onabort=()=>{n({status:"failure",error:new Error("XHR request aborted")})},i.onerror=()=>{n({status:"failure",error:new Error("XHR request errored")})},i.send(e)})}shutdown(){}}function rwe(t){return new twe(t)}class nwe{constructor(e){xe(this,"_params");this._params=e}send(e){return new Promise(r=>{navigator.sendBeacon(this._params.url,new Blob([e],{type:this._params.blobType}))?(jt.debug("SendBeacon success"),r({status:"success"})):r({status:"failure",error:new Error("SendBeacon failed")})})}shutdown(){}}function iwe(t){return new nwe(t)}function owe(t,e){return lG(t,e,hG({transport:rwe(t)}))}function swe(t,e){return lG(t,e,hG({transport:iwe({url:t.url,blobType:t.headers()["Content-Type"]})}))}function awe(t){return()=>{const e={};return Object.entries((t==null?void 0:t())??{}).forEach(([r,n])=>{typeof n<"u"?e[r]=String(n):jt.warn(`Header "${r}" has invalid value (${n}) and will be ignored`)}),e}}function lwe(t,e,r){const n={...r()},i={};return()=>(e!=null&&Object.assign(i,e()),t!=null&&Object.assign(i,t()),Object.assign(i,n))}function cwe(t){if(t!=null)try{return new URL(t),t}catch{throw new Error(`Configuration: Could not parse user-provided export URL: '${t}'`)}}function uwe(t,e,r){return{...wSe(t,e,r),headers:lwe(awe(t.headers),e.headers,r.headers),url:cwe(t.url)??e.url??r.url,agentOptions:t.agentOptions??e.agentOptions??r.agentOptions}}function dwe(t,e){return{...CSe(),headers:()=>t,url:"http://localhost:4318/"+e,agentOptions:{keepAlive:!0}}}function fwe(t,e,r){return uwe({url:t.url,timeoutMillis:t.timeoutMillis,headers:SSe(t.headers),concurrencyLimit:t.concurrencyLimit},{},dwe(r,e))}function hwe(t,e,r,n){const i=!!t.headers||typeof navigator.sendBeacon!="function",o=fwe(t,r,n);return i?owe(o,e):swe(o,e)}class pwe extends OSe{constructor(e={}){super(hwe(e,USe,"v1/traces",{"Content-Type":"application/json"}))}}class pG{emit(e){}}const gwe=new pG;class mwe{getLogger(e,r,n){return new pG}}const gG=new mwe;class ywe{constructor(e,r,n,i){this._provider=e,this.name=r,this.version=n,this.options=i}emit(e){this._getLogger().emit(e)}_getLogger(){if(this._delegate)return this._delegate;const e=this._provider.getDelegateLogger(this.name,this.version,this.options);return e?(this._delegate=e,this._delegate):gwe}}class zN{getLogger(e,r,n){var i;return(i=this.getDelegateLogger(e,r,n))!==null&&i!==void 0?i:new ywe(this,e,r,n)}getDelegate(){var e;return(e=this._delegate)!==null&&e!==void 0?e:gG}setDelegate(e){this._delegate=e}getDelegateLogger(e,r,n){var i;return(i=this._delegate)===null||i===void 0?void 0:i.getLogger(e,r,n)}}const vwe=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof global=="object"?global:{},km=Symbol.for("io.opentelemetry.js.api.logs"),Sf=vwe;function bwe(t,e,r){return n=>n===t?e:r}const BN=1;class _I{constructor(){this._proxyLoggerProvider=new zN}static getInstance(){return this._instance||(this._instance=new _I),this._instance}setGlobalLoggerProvider(e){return Sf[km]?this.getLoggerProvider():(Sf[km]=bwe(BN,e,gG),this._proxyLoggerProvider.setDelegate(e),e)}getLoggerProvider(){var e,r;return(r=(e=Sf[km])===null||e===void 0?void 0:e.call(Sf,BN))!==null&&r!==void 0?r:this._proxyLoggerProvider}getLogger(e,r,n){return this.getLoggerProvider().getLogger(e,r,n)}disable(){delete Sf[km],this._proxyLoggerProvider=new zN}}const Owe=_I.getInstance();function xwe(t,e,r,n){for(let i=0,o=t.length;i<o;i++){const s=t[i];e&&s.setTracerProvider(e),r&&s.setMeterProvider(r),n&&s.setLoggerProvider&&s.setLoggerProvider(n),s.getConfig().enabled||s.enable()}}function Swe(t){t.forEach(e=>e.disable())}function wwe(t){var o;const e=t.tracerProvider||mi.getTracerProvider(),r=t.meterProvider||B0e.getMeterProvider(),n=t.loggerProvider||Owe.getLoggerProvider(),i=((o=t.instrumentations)==null?void 0:o.flat())??[];return xwe(i,e,r,n),()=>{Swe(i)}}class qN{constructor(e){xe(this,"span");this.span=e}error(e){this.span&&(this.span.setStatus(xp.ERROR,e.message),this.span.recordException(e),this.span.end())}setAttribute(e,r){this.span&&this.span.setAttribute(e,r)}end(){this.span&&(this.span.setStatus(xp.OK),this.span.end())}}class Cwe{constructor(){xe(this,"config",null);xe(this,"tracer",null);xe(this,"tracerProvider",null);xe(this,"initialized",!1);xe(this,"getKeySnakeValue",e=>e.replace(/([A-Z])/g,"_$1").toLowerCase())}initTracer(e){throw new Error("initTracer must be implemented by the environment-specific client")}init(e){this.config=e,this.initTracer(e)}send(e){var r;try{if(!this.tracer||!this.config)return;const n=e.time?new Date(e.time):new Date;this.tracer.startSpan(`event.${e.type}`,{attributes:this.processAttributes(e,n),startTime:n}).end(n)}catch(n){(r=this.config)!=null&&r.isProd||console.error("Event reporting failed:",n)}}processAttributes(e,r){var o,s,a,l,c;const i={"cloudevents.event_id":XO(),"cloudevents.event_type":e.type,"cloudevents.event_source":e.source,"cloudevents.event_spec_version":e.specversion,"cloudevents.event_data_content_type":e.datacontenttype||"application/json; charset=utf-8","cloudevents.event_time":r.toISOString(),"cloudevents.event_subject":e.subject??"","cloudevents.page.uri":location.href,"cloudevents.event_version":(o=this.config)==null?void 0:o.version,"cloudevents.event_origin":(s=this.config)==null?void 0:s.serviceName,"cloudevents.event_source_details.id":((a=e.sourceDetails)==null?void 0:a.id)??"anonymous","cloudevents.event_source_details.object":((l=e.sourceDetails)==null?void 0:l.object)??"anonymous","cloudevents.event_source_details.uri":(c=e.sourceDetails)==null?void 0:c.uri};if(e.data&&typeof e.data=="object"&&Object.entries(e.data).forEach(([u,d])=>{const f=u.replace(/([A-Z])/g,"_$1").toLowerCase();d!==void 0&&(i[`cloudevents.event_data.${f}`]=d)}),"subjects"in e&&Array.isArray(e.subjects)){const u=e.subjects.reduce((d,f)=>{if(!f||typeof f!="object")return d;const h=f.object;if(!h||typeof h!="string")return d;const g=d.notUpdated.find(({object:p})=>p===h);return g?(d.updated=[g,f],d.notUpdated=d.notUpdated.filter(({object:p})=>p!==h)):d.updated.some(({object:p})=>p===h)||d.notUpdated.push(f),d},{updated:[],notUpdated:[]});u.updated.forEach((d,f)=>{const h=f===0?"after.":"before.",g=`${d.object}.`;Object.entries(d).forEach(([p,y])=>{y!==void 0&&(i[`cloudevents.subjects.${h}${g}${p}`]=y)})}),u.notUpdated.forEach(d=>{const f=`${d.object}.`;Object.entries(d).forEach(([h,g])=>{g!==void 0&&(i[`cloudevents.subjects.${f}${h}`]=g)})})}return Object.entries(e).forEach(([u,d])=>{["id","source","type","specversion","time","datacontenttype","data","subject","sourceDetails","analyticsMetadata","context"].includes(u)||d!==void 0&&(d instanceof Object?Object.entries(d).forEach(([f,h])=>{h!==void 0&&(i[`cloudevents.${u}.${f}`]=h)}):i[`cloudevents.${u}`]=d)}),i}startSpan(e,r){var n;try{if(!this.tracer)return;let i;const o=e.time?new Date(e.time):new Date,s=this.tracer.startSpan(`event.${e.type}`,{attributes:this.processAttributes(e,o),root:!r},r);return r||(i=mi.setSpan(ao.active(),s)),{end:()=>s.end(),setAttribute:(a,l)=>{s.setAttribute(`cloudevents.event_data.${this.getKeySnakeValue(a)}`,l)},setStatus:(a,l)=>s.setStatus({code:a,message:l}),parentCtx:i}}catch(i){(n=this.config)!=null&&n.isProd||console.error("Event reporting failed:",i)}}startStepSpan(e){var r;try{if(!this.tracer)return;const n=e.time?new Date(e.time):new Date,i=this.tracer.startSpan(`event.${e.type}`,{attributes:this.processAttributes(e,n),root:!1},ao.active());return{end:()=>i.end(),setAttribute:(o,s)=>{i.setAttribute(`cloudevents.event_data.${this.getKeySnakeValue(o)}`,s)},setStatus:(o,s)=>i.setStatus({code:o,message:s}),recordException:o=>i.recordException(o)}}catch(n){(r=this.config)!=null&&r.isProd||console.error("Event reporting failed:",n)}}startRootSpan(e){var r;try{if(!this.tracer)return;const n=e.time?new Date(e.time):new Date,i=this.tracer.startSpan(`event.${e.type}`,{attributes:this.processAttributes(e,n)},ao.active()),o=mi.setSpan(ao.active(),i);return{end:()=>i.end(),setAttribute:(s,a)=>{i.setAttribute(`cloudevents.event_data.${this.getKeySnakeValue(s)}`,a)},setStatus:(s,a)=>i.setStatus({code:s,message:a}),recordException:s=>i.recordException(s),context:o}}catch(n){(r=this.config)!=null&&r.isProd||console.error("Event reporting failed:",n)}}startTrace(e){const r=this.startStepSpan(e);if(r)return new qN(r)}startRootTrace(e){const r=this.startRootSpan(e);if(r)return{traceApi:new qN(r),context:r.context}}forceFlush(){var e;(e=this.tracerProvider)==null||e.forceFlush()}}class Pwe extends Cwe{constructor(){super();xe(this,"tracerProvider",null);xe(this,"tracer",null);xe(this,"initialized",!1)}initTracer(r){if(!r.collectorUrl&&!r.collectorTraceUrl)return;const n=`ses_${XO()}`,i=oG({[G9]:r.serviceName,[hxe]:r.serviceVersion,session_id:n}),o=r.collectorTraceUrl||`${r.collectorUrl}/v1/traces`;this.tracerProvider=new bSe({resource:i,spanProcessors:[new cSe(new pwe({url:o,headers:{}}))]}),this.tracer=this.tracerProvider.getTracer(r.tracerName),this.tracerProvider.register(),wwe({instrumentations:r.instrumentations??[]}),this.initialized=!0}}class kwe{constructor(){xe(this,"config",null);xe(this,"initialized",!1);xe(this,"useCloudEventData");xe(this,"otelClient");xe(this,"traceApi");xe(this,"updateCloudEventData",e=>{var r;(r=this.config)!=null&&r.disabled||(this.useCloudEventData=e)});this.useCloudEventData=()=>({organization:{id:"",slug:""},project:{id:"",slug:""},productType:"",sourceDetails:{user:"Anonymous",object:"user",uri:""},request:{source:""}}),this.otelClient=new Pwe,this.traceApi={startStep:(e,r)=>{const n=this.constructCloudEvent(e,r);return this.otelClient.startTrace(n)},startRoot:(e,r)=>{const n=this.constructCloudEvent(e,r);return this.otelClient.startRootTrace(n)}}}send(e,r){var n,i;try{if(!((n=this.config)!=null&&n.otel.isProd))return;const o=this.constructCloudEvent(e,r);this.sendToOtelService(o)}catch(o){(i=this.config)!=null&&i.otel.isProd||console.error("Event reporting failed:",o)}}init(e){e.disabled||this.initialized||(this.config=e,this.initialized=!0,this.otelClient.init({serviceVersion:e.otel.serviceVersion,version:e.otel.version,isProd:e.otel.isProd,collectorUrl:e.otel.collectorUrl,collectorTraceUrl:e.otel.collectorTraceUrl,serviceName:e.otel.serviceName,tracerName:e.otel.tracerName,instrumentations:[...e.otel.instrumentations||[]]}))}startSpan(e,r,n){var o;if((o=this.config)!=null&&o.disabled)return;const i=this.constructCloudEvent(e,r);return this.otelClient.startSpan(i,n)}startStepSpan(e,r){const n=this.constructCloudEvent(e,r);return this.otelClient.startStepSpan(n)}constructCloudEvent(e,r){const n=this.useCloudEventData();return{id:`evt_${XO()}`,type:e,source:n.request.source||"",specversion:"1.0",datacontenttype:"application/json",time:new Date().toISOString(),data:r,origin:"ui",sourceDetails:{id:n.sourceDetails.user||`usr_${XO()}`,object:n.sourceDetails.object||"user",uri:n.sourceDetails.uri||""},organization:n.organization,project:n.project,productType:n.productType}}sendToOtelService(e){var r;(r=this.config)!=null&&r.otel.isProd||console.log("CloudEvent to be sent to OTEL service:",e),this.otelClient.send(e)}forceFlush(){var e;(e=this.config)!=null&&e.disabled||this.otelClient.forceFlush()}sendTabChangeMessage(e){this.send("tab.change",e)}sendButtonClickMessage(e){this.send("button.click",e)}sendChangeMessage(e){this.send("change",e)}sendContentCopyMessage(e){this.send("content.copy",e)}sendUrlClickMessage(e){this.send("url.click",e)}sendRequestSendMessage(e){this.send("request.send",e)}sendTokenGenerateMessage(e){this.send("token.generate",e)}sendAppLifecycleMessage(e){this.send("app.lifecycle",e)}sendEnvironmentManagementMessage(e){this.send("environment.management",e)}sendServerManagementMessage(e){this.send("server.management",e)}sendInputManagementMessage(e){this.send("input.management",e)}sendNodeManagementMessage(e){this.send("node.management",e)}sendHistoryManagementMessage(e){this.send("history.management",e)}sendCredentialManagementMessage(e){this.send("credential.management",e)}sendPanelToggleMessage(e){this.send("panel.toggle",e)}sendWorkflowRunClickMessage(e){this.send("workflow.run.click",e)}sendWorkflowRunResultMessage(e){this.send("workflow.run.result",e)}}function $we(){return{theme:"light",disableCollectionsTab:!1,oAuth2RedirectURI:null,corsProxyUrl:void 0,mockServer:void 0,certificates:[],isApiBased:!1,generatedEnvironments:[],generatedInputs:[]}}const Ewe=$we(),Awe=N.createContext(Ewe);function gs(){const t=N.useContext(Awe);return V5(t)}function Iwe(t,e){const{apps:{apiId:r}}=Et(),{corsProxyUrl:n,disableCollectionsTab:i,mockServer:o,oAuth2RedirectURI:s,certificates:a,storageKey:l,isApiBased:c}=gs();n.set((t==null?void 0:t.corsProxyUrl)??Yre),o.set(t==null?void 0:t.mockServer),r.set(t==null?void 0:t.apiId),s.set(t==null?void 0:t.oAuth2RedirectURI),i.set(!!(t!=null&&t.disableCollectionsTab)),l.set(t==null?void 0:t.storageKey),c.set(!!e),N.useEffect(()=>{a.set((t==null?void 0:t.certificates)||[])},[t==null?void 0:t.certificates])}const Bx=N.createContext({});function RI(){return N.useContext(Bx)||{}}const Twe="0.17.0-next.8",_we={version:Twe};class Rwe{constructor(){xe(this,"client");xe(this,"_isInitialized",!1);this.client=new kwe}get isInitialized(){return this._isInitialized}init(e){if(this.isInitialized)return;const n={serviceName:"replay",serviceVersion:_we.version,version:"1.0.0",tracerName:(e==null?void 0:e.tracerName)||"desktop",collectorUrl:(e==null?void 0:e.collectorUrl)||"",isProd:!0};this.client.init({otel:{...n,...e}}),this._isInitialized=!0}sendEvent(e,r){if(!this.isInitialized){console.warn("Telemetry client not initialized. Call init() first.");return}try{this.client.send(e,r)}catch(n){console.error("Failed to send telemetry event:",n)}}}const k1=new Rwe;function bt(){const{telemetry:t}=RI();return k1.isInitialized||k1.init({tracerName:t==null?void 0:t.tracerName,collectorUrl:t==null?void 0:t.collectorUrl}),{sendEvent:(e,r)=>{k1.sendEvent(e,r)}}}const Mn=800;var jwe=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function Dwe(t){var e=t.defaultInputValue,r=e===void 0?"":e,n=t.defaultMenuIsOpen,i=n===void 0?!1:n,o=t.defaultValue,s=o===void 0?null:o,a=t.inputValue,l=t.menuIsOpen,c=t.onChange,u=t.onInputChange,d=t.onMenuClose,f=t.onMenuOpen,h=t.value,g=Ci(t,jwe),p=N.useState(a!==void 0?a:r),y=it(p,2),v=y[0],b=y[1],O=N.useState(l!==void 0?l:i),S=it(O,2),x=S[0],w=S[1],P=N.useState(h!==void 0?h:s),I=it(P,2),E=I[0],M=I[1],V=N.useCallback(function(ie,he){typeof c=="function"&&c(ie,he),M(ie)},[c]),U=N.useCallback(function(ie,he){var L;typeof u=="function"&&(L=u(ie,he)),b(L!==void 0?L:ie)},[u]),X=N.useCallback(function(){typeof f=="function"&&f(),w(!0)},[f]),J=N.useCallback(function(){typeof d=="function"&&d(),w(!1)},[d]),te=a!==void 0?a:v,oe=l!==void 0?l:x,ae=h!==void 0?h:E;return $e($e({},g),{},{inputValue:te,menuIsOpen:oe,onChange:V,onInputChange:U,onMenuClose:J,onMenuOpen:X,value:ae})}function Mwe(t){if(t.sheet)return t.sheet;for(var e=0;e<document.styleSheets.length;e++)if(document.styleSheets[e].ownerNode===t)return document.styleSheets[e]}function Nwe(t){var e=document.createElement("style");return e.setAttribute("data-emotion",t.key),t.nonce!==void 0&&e.setAttribute("nonce",t.nonce),e.appendChild(document.createTextNode("")),e.setAttribute("data-s",""),e}var Lwe=(function(){function t(r){var n=this;this._insertTag=function(i){var o;n.tags.length===0?n.insertionPoint?o=n.insertionPoint.nextSibling:n.prepend?o=n.container.firstChild:o=n.before:o=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(i,o),n.tags.push(i)},this.isSpeedy=r.speedy===void 0?process.env.NODE_ENV==="production":r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var e=t.prototype;return e.hydrate=function(n){n.forEach(this._insertTag)},e.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Nwe(this));var i=this.tags[this.tags.length-1];if(process.env.NODE_ENV!=="production"){var o=n.charCodeAt(0)===64&&n.charCodeAt(1)===105;o&&this._alreadyInsertedOrderInsensitiveRule&&console.error(`You're attempting to insert the following rule:
|
|
347
|
+
`;function Zp({input:t,onSave:e,onCancel:r,...n}){const[i,o]=N.useState(!!t.isSecret),s=({name:a,value:l})=>{e({...t,name:a,value:l,isSecret:i})};return m.jsx(LZ,{variable:t,onSave:s,onCancel:r,...n,children:m.jsx(vp,{children:m.jsx(COe,{value:i,onChange:a=>o(a),title:"Make it secret"})})})}function ub(t){var e=new Error(t);return e.source="ulid",e}var wI="0123456789ABCDEFGHJKMNPQRSTVWXYZ",Th=wI.length,wN=Math.pow(2,48)-1,TOe=10,_Oe=16;function ROe(t){var e=Math.floor(t()*Th);return e===Th&&(e=Th-1),wI.charAt(e)}function jOe(t,e){if(isNaN(t))throw new Error(t+" must be a number");if(t>wN)throw ub("cannot encode time greater than "+wN);if(t<0)throw ub("time must be positive");if(Number.isInteger(t)===!1)throw ub("time must be an integer");for(var r=void 0,n="";e>0;e--)r=t%Th,n=wI.charAt(r)+n,t=(t-r)/Th;return n}function DOe(t,e){for(var r="";t>0;t--)r=ROe(e)+r;return r}function MOe(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,e=arguments[1];e||(e=typeof window<"u"?window:null);var r=e&&(e.crypto||e.msCrypto);if(r)return function(){var i=new Uint8Array(1);return r.getRandomValues(i),i[0]/255};try{var n=require("crypto");return function(){return n.randomBytes(1).readUInt8()/255}}catch{}if(t){try{console.error("secure crypto unusable, falling back to insecure Math.random()!")}catch{}return function(){return Math.random()}}throw ub("secure crypto unusable, insecure Math.random not allowed")}function NOe(t){return t||(t=MOe()),function(r){return isNaN(r)&&(r=Date.now()),jOe(r,TOe)+DOe(_Oe,t)}}var XO=NOe(),LOe=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof global=="object"?global:{},zl="1.9.0",CN=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;function QOe(t){var e=new Set([t]),r=new Set,n=t.match(CN);if(!n)return function(){return!1};var i={major:+n[1],minor:+n[2],patch:+n[3],prerelease:n[4]};if(i.prerelease!=null)return function(l){return l===t};function o(a){return r.add(a),!1}function s(a){return e.add(a),!0}return function(l){if(e.has(l))return!0;if(r.has(l))return!1;var c=l.match(CN);if(!c)return o(l);var u={major:+c[1],minor:+c[2],patch:+c[3],prerelease:c[4]};return u.prerelease!=null||i.major!==u.major?o(l):i.major===0?i.minor===u.minor&&i.patch<=u.patch?s(l):o(l):i.minor<=u.minor?s(l):o(l)}}var VOe=QOe(zl),zOe=zl.split(".")[0],bp=Symbol.for("opentelemetry.js.api."+zOe),Op=LOe;function Gp(t,e,r,n){var i;n===void 0&&(n=!1);var o=Op[bp]=(i=Op[bp])!==null&&i!==void 0?i:{version:zl};if(!n&&o[t]){var s=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+t);return r.error(s.stack||s.message),!1}if(o.version!==zl){var s=new Error("@opentelemetry/api: Registration of version v"+o.version+" for "+t+" does not match previously registered API v"+zl);return r.error(s.stack||s.message),!1}return o[t]=e,r.debug("@opentelemetry/api: Registered a global for "+t+" v"+zl+"."),!0}function lc(t){var e,r,n=(e=Op[bp])===null||e===void 0?void 0:e.version;if(!(!n||!VOe(n)))return(r=Op[bp])===null||r===void 0?void 0:r[t]}function Yp(t,e){e.debug("@opentelemetry/api: Unregistering a global for "+t+" v"+zl+".");var r=Op[bp];r&&delete r[t]}var BOe=function(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),i,o=[],s;try{for(;(e===void 0||e-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return o},qOe=function(t,e,r){if(r||arguments.length===2)for(var n=0,i=e.length,o;n<i;n++)(o||!(n in e))&&(o||(o=Array.prototype.slice.call(e,0,n)),o[n]=e[n]);return t.concat(o||Array.prototype.slice.call(e))},FOe=(function(){function t(e){this._namespace=e.namespace||"DiagComponentLogger"}return t.prototype.debug=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return Of("debug",this._namespace,e)},t.prototype.error=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return Of("error",this._namespace,e)},t.prototype.info=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return Of("info",this._namespace,e)},t.prototype.warn=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return Of("warn",this._namespace,e)},t.prototype.verbose=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return Of("verbose",this._namespace,e)},t})();function Of(t,e,r){var n=lc("diag");if(n)return r.unshift(e),n[t].apply(n,qOe([],BOe(r),!1))}var fi;(function(t){t[t.NONE=0]="NONE",t[t.ERROR=30]="ERROR",t[t.WARN=50]="WARN",t[t.INFO=60]="INFO",t[t.DEBUG=70]="DEBUG",t[t.VERBOSE=80]="VERBOSE",t[t.ALL=9999]="ALL"})(fi||(fi={}));function WOe(t,e){t<fi.NONE?t=fi.NONE:t>fi.ALL&&(t=fi.ALL),e=e||{};function r(n,i){var o=e[n];return typeof o=="function"&&t>=i?o.bind(e):function(){}}return{error:r("error",fi.ERROR),warn:r("warn",fi.WARN),info:r("info",fi.INFO),debug:r("debug",fi.DEBUG),verbose:r("verbose",fi.VERBOSE)}}var UOe=function(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),i,o=[],s;try{for(;(e===void 0||e-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return o},XOe=function(t,e,r){if(r||arguments.length===2)for(var n=0,i=e.length,o;n<i;n++)(o||!(n in e))&&(o||(o=Array.prototype.slice.call(e,0,n)),o[n]=e[n]);return t.concat(o||Array.prototype.slice.call(e))},ZOe="diag",cs=(function(){function t(){function e(i){return function(){for(var o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];var a=lc("diag");if(a)return a[i].apply(a,XOe([],UOe(o),!1))}}var r=this,n=function(i,o){var s,a,l;if(o===void 0&&(o={logLevel:fi.INFO}),i===r){var c=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return r.error((s=c.stack)!==null&&s!==void 0?s:c.message),!1}typeof o=="number"&&(o={logLevel:o});var u=lc("diag"),d=WOe((a=o.logLevel)!==null&&a!==void 0?a:fi.INFO,i);if(u&&!o.suppressOverrideMessage){var f=(l=new Error().stack)!==null&&l!==void 0?l:"<failed to generate stacktrace>";u.warn("Current logger will be overwritten from "+f),d.warn("Current logger will overwrite one already registered from "+f)}return Gp("diag",d,r,!0)};r.setLogger=n,r.disable=function(){Yp(ZOe,r)},r.createComponentLogger=function(i){return new FOe(i)},r.verbose=e("verbose"),r.debug=e("debug"),r.info=e("info"),r.warn=e("warn"),r.error=e("error")}return t.instance=function(){return this._instance||(this._instance=new t),this._instance},t})(),GOe=function(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),i,o=[],s;try{for(;(e===void 0||e-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return o},YOe=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},HOe=(function(){function t(e){this._entries=e?new Map(e):new Map}return t.prototype.getEntry=function(e){var r=this._entries.get(e);if(r)return Object.assign({},r)},t.prototype.getAllEntries=function(){return Array.from(this._entries.entries()).map(function(e){var r=GOe(e,2),n=r[0],i=r[1];return[n,i]})},t.prototype.setEntry=function(e,r){var n=new t(this._entries);return n._entries.set(e,r),n},t.prototype.removeEntry=function(e){var r=new t(this._entries);return r._entries.delete(e),r},t.prototype.removeEntries=function(){for(var e,r,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var o=new t(this._entries);try{for(var s=YOe(n),a=s.next();!a.done;a=s.next()){var l=a.value;o._entries.delete(l)}}catch(c){e={error:c}}finally{try{a&&!a.done&&(r=s.return)&&r.call(s)}finally{if(e)throw e.error}}return o},t.prototype.clear=function(){return new t},t})(),JOe=Symbol("BaggageEntryMetadata"),KOe=cs.instance();function e0e(t){return t===void 0&&(t={}),new HOe(new Map(Object.entries(t)))}function t0e(t){return typeof t!="string"&&(KOe.error("Cannot create baggage metadata from unknown type: "+typeof t),t=""),{__TYPE__:JOe,toString:function(){return t}}}function CI(t){return Symbol.for(t)}var r0e=(function(){function t(e){var r=this;r._currentContext=e?new Map(e):new Map,r.getValue=function(n){return r._currentContext.get(n)},r.setValue=function(n,i){var o=new t(r._currentContext);return o._currentContext.set(n,i),o},r.deleteValue=function(n){var i=new t(r._currentContext);return i._currentContext.delete(n),i}}return t})(),uu=new r0e,wc=(function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),n0e=(function(){function t(){}return t.prototype.createGauge=function(e,r){return h0e},t.prototype.createHistogram=function(e,r){return p0e},t.prototype.createCounter=function(e,r){return f0e},t.prototype.createUpDownCounter=function(e,r){return g0e},t.prototype.createObservableGauge=function(e,r){return y0e},t.prototype.createObservableCounter=function(e,r){return m0e},t.prototype.createObservableUpDownCounter=function(e,r){return v0e},t.prototype.addBatchObservableCallback=function(e,r){},t.prototype.removeBatchObservableCallback=function(e){},t})(),Lx=(function(){function t(){}return t})(),i0e=(function(t){wc(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.add=function(r,n){},e})(Lx),o0e=(function(t){wc(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.add=function(r,n){},e})(Lx),s0e=(function(t){wc(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.record=function(r,n){},e})(Lx),a0e=(function(t){wc(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.record=function(r,n){},e})(Lx),PI=(function(){function t(){}return t.prototype.addCallback=function(e){},t.prototype.removeCallback=function(e){},t})(),l0e=(function(t){wc(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(PI),c0e=(function(t){wc(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(PI),u0e=(function(t){wc(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(PI),d0e=new n0e,f0e=new i0e,h0e=new s0e,p0e=new a0e,g0e=new o0e,m0e=new l0e,y0e=new c0e,v0e=new u0e,b0e={get:function(t,e){if(t!=null)return t[e]},keys:function(t){return t==null?[]:Object.keys(t)}},O0e={set:function(t,e,r){t!=null&&(t[e]=r)}},x0e=function(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),i,o=[],s;try{for(;(e===void 0||e-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return o},S0e=function(t,e,r){if(r||arguments.length===2)for(var n=0,i=e.length,o;n<i;n++)(o||!(n in e))&&(o||(o=Array.prototype.slice.call(e,0,n)),o[n]=e[n]);return t.concat(o||Array.prototype.slice.call(e))},w0e=(function(){function t(){}return t.prototype.active=function(){return uu},t.prototype.with=function(e,r,n){for(var i=[],o=3;o<arguments.length;o++)i[o-3]=arguments[o];return r.call.apply(r,S0e([n],x0e(i),!1))},t.prototype.bind=function(e,r){return r},t.prototype.enable=function(){return this},t.prototype.disable=function(){return this},t})(),C0e=function(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),i,o=[],s;try{for(;(e===void 0||e-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return o},P0e=function(t,e,r){if(r||arguments.length===2)for(var n=0,i=e.length,o;n<i;n++)(o||!(n in e))&&(o||(o=Array.prototype.slice.call(e,0,n)),o[n]=e[n]);return t.concat(o||Array.prototype.slice.call(e))},p1="context",k0e=new w0e,Qx=(function(){function t(){}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalContextManager=function(e){return Gp(p1,e,cs.instance())},t.prototype.active=function(){return this._getContextManager().active()},t.prototype.with=function(e,r,n){for(var i,o=[],s=3;s<arguments.length;s++)o[s-3]=arguments[s];return(i=this._getContextManager()).with.apply(i,P0e([e,r,n],C0e(o),!1))},t.prototype.bind=function(e,r){return this._getContextManager().bind(e,r)},t.prototype._getContextManager=function(){return lc(p1)||k0e},t.prototype.disable=function(){this._getContextManager().disable(),Yp(p1,cs.instance())},t})(),Js;(function(t){t[t.NONE=0]="NONE",t[t.SAMPLED=1]="SAMPLED"})(Js||(Js={}));var QZ="0000000000000000",VZ="00000000000000000000000000000000",zZ={traceId:VZ,spanId:QZ,traceFlags:Js.NONE},_h=(function(){function t(e){e===void 0&&(e=zZ),this._spanContext=e}return t.prototype.spanContext=function(){return this._spanContext},t.prototype.setAttribute=function(e,r){return this},t.prototype.setAttributes=function(e){return this},t.prototype.addEvent=function(e,r){return this},t.prototype.addLink=function(e){return this},t.prototype.addLinks=function(e){return this},t.prototype.setStatus=function(e){return this},t.prototype.updateName=function(e){return this},t.prototype.end=function(e){},t.prototype.isRecording=function(){return!1},t.prototype.recordException=function(e,r){},t})(),kI=CI("OpenTelemetry Context Key SPAN");function $I(t){return t.getValue(kI)||void 0}function $0e(){return $I(Qx.getInstance().active())}function EI(t,e){return t.setValue(kI,e)}function E0e(t){return t.deleteValue(kI)}function A0e(t,e){return EI(t,new _h(e))}function BZ(t){var e;return(e=$I(t))===null||e===void 0?void 0:e.spanContext()}var I0e=/^([0-9a-f]{32})$/i,T0e=/^[0-9a-f]{16}$/i;function qZ(t){return I0e.test(t)&&t!==VZ}function _0e(t){return T0e.test(t)&&t!==QZ}function Vx(t){return qZ(t.traceId)&&_0e(t.spanId)}function R0e(t){return new _h(t)}var g1=Qx.getInstance(),FZ=(function(){function t(){}return t.prototype.startSpan=function(e,r,n){n===void 0&&(n=g1.active());var i=!!(r!=null&&r.root);if(i)return new _h;var o=n&&BZ(n);return j0e(o)&&Vx(o)?new _h(o):new _h},t.prototype.startActiveSpan=function(e,r,n,i){var o,s,a;if(!(arguments.length<2)){arguments.length===2?a=r:arguments.length===3?(o=r,a=n):(o=r,s=n,a=i);var l=s??g1.active(),c=this.startSpan(e,o,l),u=EI(l,c);return g1.with(u,a,void 0,c)}},t})();function j0e(t){return typeof t=="object"&&typeof t.spanId=="string"&&typeof t.traceId=="string"&&typeof t.traceFlags=="number"}var D0e=new FZ,M0e=(function(){function t(e,r,n,i){this._provider=e,this.name=r,this.version=n,this.options=i}return t.prototype.startSpan=function(e,r,n){return this._getTracer().startSpan(e,r,n)},t.prototype.startActiveSpan=function(e,r,n,i){var o=this._getTracer();return Reflect.apply(o.startActiveSpan,o,arguments)},t.prototype._getTracer=function(){if(this._delegate)return this._delegate;var e=this._provider.getDelegateTracer(this.name,this.version,this.options);return e?(this._delegate=e,this._delegate):D0e},t})(),N0e=(function(){function t(){}return t.prototype.getTracer=function(e,r,n){return new FZ},t})(),L0e=new N0e,PN=(function(){function t(){}return t.prototype.getTracer=function(e,r,n){var i;return(i=this.getDelegateTracer(e,r,n))!==null&&i!==void 0?i:new M0e(this,e,r,n)},t.prototype.getDelegate=function(){var e;return(e=this._delegate)!==null&&e!==void 0?e:L0e},t.prototype.setDelegate=function(e){this._delegate=e},t.prototype.getDelegateTracer=function(e,r,n){var i;return(i=this._delegate)===null||i===void 0?void 0:i.getTracer(e,r,n)},t})(),ZO;(function(t){t[t.NOT_RECORD=0]="NOT_RECORD",t[t.RECORD=1]="RECORD",t[t.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(ZO||(ZO={}));var V$;(function(t){t[t.INTERNAL=0]="INTERNAL",t[t.SERVER=1]="SERVER",t[t.CLIENT=2]="CLIENT",t[t.PRODUCER=3]="PRODUCER",t[t.CONSUMER=4]="CONSUMER"})(V$||(V$={}));var xp;(function(t){t[t.UNSET=0]="UNSET",t[t.OK=1]="OK",t[t.ERROR=2]="ERROR"})(xp||(xp={}));var ao=Qx.getInstance(),jt=cs.instance(),Q0e=(function(){function t(){}return t.prototype.getMeter=function(e,r,n){return d0e},t})(),V0e=new Q0e,m1="metrics",z0e=(function(){function t(){}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalMeterProvider=function(e){return Gp(m1,e,cs.instance())},t.prototype.getMeterProvider=function(){return lc(m1)||V0e},t.prototype.getMeter=function(e,r,n){return this.getMeterProvider().getMeter(e,r,n)},t.prototype.disable=function(){Yp(m1,cs.instance())},t})(),B0e=z0e.getInstance(),q0e=(function(){function t(){}return t.prototype.inject=function(e,r){},t.prototype.extract=function(e,r){return e},t.prototype.fields=function(){return[]},t})(),AI=CI("OpenTelemetry Baggage Key");function WZ(t){return t.getValue(AI)||void 0}function F0e(){return WZ(Qx.getInstance().active())}function W0e(t,e){return t.setValue(AI,e)}function U0e(t){return t.deleteValue(AI)}var y1="propagation",X0e=new q0e,Z0e=(function(){function t(){this.createBaggage=e0e,this.getBaggage=WZ,this.getActiveBaggage=F0e,this.setBaggage=W0e,this.deleteBaggage=U0e}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalPropagator=function(e){return Gp(y1,e,cs.instance())},t.prototype.inject=function(e,r,n){return n===void 0&&(n=O0e),this._getGlobalPropagator().inject(e,r,n)},t.prototype.extract=function(e,r,n){return n===void 0&&(n=b0e),this._getGlobalPropagator().extract(e,r,n)},t.prototype.fields=function(){return this._getGlobalPropagator().fields()},t.prototype.disable=function(){Yp(y1,cs.instance())},t.prototype._getGlobalPropagator=function(){return lc(y1)||X0e},t})(),Rh=Z0e.getInstance(),v1="trace",G0e=(function(){function t(){this._proxyTracerProvider=new PN,this.wrapSpanContext=R0e,this.isSpanContextValid=Vx,this.deleteSpan=E0e,this.getSpan=$I,this.getActiveSpan=$0e,this.getSpanContext=BZ,this.setSpan=EI,this.setSpanContext=A0e}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalTracerProvider=function(e){var r=Gp(v1,this._proxyTracerProvider,cs.instance());return r&&this._proxyTracerProvider.setDelegate(e),r},t.prototype.getTracerProvider=function(){return lc(v1)||this._proxyTracerProvider},t.prototype.getTracer=function(e,r){return this.getTracerProvider().getTracer(e,r)},t.prototype.disable=function(){Yp(v1,cs.instance()),this._proxyTracerProvider=new PN},t})(),mi=G0e.getInstance();const UZ=CI("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function Y0e(t){return t.setValue(UZ,!0)}function II(t){return t.getValue(UZ)===!0}const H0e="=",z$=";",B$=",",b1="baggage",J0e=180,K0e=4096,exe=8192;function txe(t){return t.reduce((e,r)=>{const n=`${e}${e!==""?B$:""}${r}`;return n.length>exe?e:n},"")}function rxe(t){return t.getAllEntries().map(([e,r])=>{let n=`${encodeURIComponent(e)}=${encodeURIComponent(r.value)}`;return r.metadata!==void 0&&(n+=z$+r.metadata.toString()),n})}function nxe(t){const e=t.split(z$);if(e.length<=0)return;const r=e.shift();if(!r)return;const n=r.indexOf(H0e);if(n<=0)return;const i=decodeURIComponent(r.substring(0,n).trim()),o=decodeURIComponent(r.substring(n+1).trim());let s;return e.length>0&&(s=t0e(e.join(z$))),{key:i,value:o,metadata:s}}class ixe{inject(e,r,n){const i=Rh.getBaggage(e);if(!i||II(e))return;const o=rxe(i).filter(a=>a.length<=K0e).slice(0,J0e),s=txe(o);s.length>0&&n.set(r,b1,s)}extract(e,r,n){const i=n.get(r,b1),o=Array.isArray(i)?i.join(B$):i;if(!o)return e;const s={};return o.length===0||(o.split(B$).forEach(l=>{const c=nxe(l);if(c){const u={value:c.value};c.metadata&&(u.metadata=c.metadata),s[c.key]=u}}),Object.entries(s).length===0)?e:Rh.setBaggage(e,Rh.createBaggage(s))}fields(){return[b1]}}function db(t){const e={};if(typeof t!="object"||t==null)return e;for(const[r,n]of Object.entries(t)){if(!oxe(r)){jt.warn(`Invalid attribute key: ${r}`);continue}if(!XZ(n)){jt.warn(`Invalid attribute value set for key: ${r}`);continue}Array.isArray(n)?e[r]=n.slice():e[r]=n}return e}function oxe(t){return typeof t=="string"&&t.length>0}function XZ(t){return t==null?!0:Array.isArray(t)?sxe(t):ZZ(t)}function sxe(t){let e;for(const r of t)if(r!=null){if(!e){if(ZZ(r)){e=typeof r;continue}return!1}if(typeof r!==e)return!1}return!0}function ZZ(t){switch(typeof t){case"number":case"boolean":case"string":return!0}return!1}function axe(){return t=>{jt.error(lxe(t))}}function lxe(t){return typeof t=="string"?t:JSON.stringify(cxe(t))}function cxe(t){const e={};let r=t;for(;r!==null;)Object.getOwnPropertyNames(r).forEach(n=>{if(e[n])return;const i=r[n];i&&(e[n]=String(i))}),r=Object.getPrototypeOf(r);return e}let uxe=axe();function vd(t){try{uxe(t)}catch{}}const Nu=performance,dxe="2.0.1",O1="exception.message",fxe="exception.stacktrace",x1="exception.type",GZ="service.name",hxe="service.version",q$="telemetry.sdk.language",pxe="webjs",F$="telemetry.sdk.name",W$="telemetry.sdk.version",gxe="process.runtime.name",S1={[F$]:"opentelemetry",[gxe]:"browser",[q$]:pxe,[W$]:dxe};const mxe=9,yxe=6,vxe=Math.pow(10,yxe),GO=Math.pow(10,mxe);function Cu(t){const e=t/1e3,r=Math.trunc(e),n=Math.round(t%1e3*vxe);return[r,n]}function YZ(){let t=Nu.timeOrigin;if(typeof t!="number"){const e=Nu;t=e.timing&&e.timing.fetchStart}return t}function bxe(t){const e=Cu(YZ()),r=Cu(typeof t=="number"?t:Nu.now());return JZ(e,r)}function Oxe(t,e){let r=e[0]-t[0],n=e[1]-t[1];return n<0&&(r-=1,n+=GO),[r,n]}function xxe(t){return t[0]*GO+t[1]}function HZ(t){return Array.isArray(t)&&t.length===2&&typeof t[0]=="number"&&typeof t[1]=="number"}function kN(t){return HZ(t)||typeof t=="number"||t instanceof Date}function JZ(t,e){const r=[t[0]+e[0],t[1]+e[1]];return r[1]>=GO&&(r[1]-=GO,r[0]+=1),r}var zo;(function(t){t[t.SUCCESS=0]="SUCCESS",t[t.FAILED=1]="FAILED"})(zo||(zo={}));class Sxe{constructor(e={}){xe(this,"_propagators");xe(this,"_fields");this._propagators=e.propagators??[],this._fields=Array.from(new Set(this._propagators.map(r=>typeof r.fields=="function"?r.fields():[]).reduce((r,n)=>r.concat(n),[])))}inject(e,r,n){for(const i of this._propagators)try{i.inject(e,r,n)}catch(o){jt.warn(`Failed to inject with ${i.constructor.name}. Err: ${o.message}`)}}extract(e,r,n){return this._propagators.reduce((i,o)=>{try{return o.extract(i,r,n)}catch(s){jt.warn(`Failed to extract with ${o.constructor.name}. Err: ${s.message}`)}return i},e)}fields(){return this._fields.slice()}}const U$="[_0-9a-z-*/]",wxe=`[a-z]${U$}{0,255}`,Cxe=`[a-z0-9]${U$}{0,240}@[a-z]${U$}{0,13}`,Pxe=new RegExp(`^(?:${wxe}|${Cxe})$`),kxe=/^[ -~]{0,255}[!-~]$/,$xe=/,|=/;function Exe(t){return Pxe.test(t)}function Axe(t){return kxe.test(t)&&!$xe.test(t)}const $N=32,Ixe=512,EN=",",AN="=";class TI{constructor(e){xe(this,"_internalState",new Map);e&&this._parse(e)}set(e,r){const n=this._clone();return n._internalState.has(e)&&n._internalState.delete(e),n._internalState.set(e,r),n}unset(e){const r=this._clone();return r._internalState.delete(e),r}get(e){return this._internalState.get(e)}serialize(){return this._keys().reduce((e,r)=>(e.push(r+AN+this.get(r)),e),[]).join(EN)}_parse(e){e.length>Ixe||(this._internalState=e.split(EN).reverse().reduce((r,n)=>{const i=n.trim(),o=i.indexOf(AN);if(o!==-1){const s=i.slice(0,o),a=i.slice(o+1,n.length);Exe(s)&&Axe(a)&&r.set(s,a)}return r},new Map),this._internalState.size>$N&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,$N))))}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){const e=new TI;return e._internalState=new Map(this._internalState),e}}const w1="traceparent",C1="tracestate",Txe="00",_xe="(?!ff)[\\da-f]{2}",Rxe="(?![0]{32})[\\da-f]{32}",jxe="(?![0]{16})[\\da-f]{16}",Dxe="[\\da-f]{2}",Mxe=new RegExp(`^\\s?(${_xe})-(${Rxe})-(${jxe})-(${Dxe})(-.*)?\\s?$`);function Nxe(t){const e=Mxe.exec(t);return!e||e[1]==="00"&&e[5]?null:{traceId:e[2],spanId:e[3],traceFlags:parseInt(e[4],16)}}class Lxe{inject(e,r,n){const i=mi.getSpanContext(e);if(!i||II(e)||!Vx(i))return;const o=`${Txe}-${i.traceId}-${i.spanId}-0${Number(i.traceFlags||Js.NONE).toString(16)}`;n.set(r,w1,o),i.traceState&&n.set(r,C1,i.traceState.serialize())}extract(e,r,n){const i=n.get(r,w1);if(!i)return e;const o=Array.isArray(i)?i[0]:i;if(typeof o!="string")return e;const s=Nxe(o);if(!s)return e;s.isRemote=!0;const a=n.get(r,C1);if(a){const l=Array.isArray(a)?a.join(","):a;s.traceState=new TI(typeof l=="string"?l:void 0)}return mi.setSpanContext(e,s)}fields(){return[w1,C1]}}const Qxe="[object Object]",Vxe="[object Null]",zxe="[object Undefined]",Bxe=Function.prototype,KZ=Bxe.toString,qxe=KZ.call(Object),Fxe=Object.getPrototypeOf,eG=Object.prototype,tG=eG.hasOwnProperty,Rl=Symbol?Symbol.toStringTag:void 0,rG=eG.toString;function IN(t){if(!Wxe(t)||Uxe(t)!==Qxe)return!1;const e=Fxe(t);if(e===null)return!0;const r=tG.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&KZ.call(r)===qxe}function Wxe(t){return t!=null&&typeof t=="object"}function Uxe(t){return t==null?t===void 0?zxe:Vxe:Rl&&Rl in Object(t)?Xxe(t):Zxe(t)}function Xxe(t){const e=tG.call(t,Rl),r=t[Rl];let n=!1;try{t[Rl]=void 0,n=!0}catch{}const i=rG.call(t);return n&&(e?t[Rl]=r:delete t[Rl]),i}function Zxe(t){return rG.call(t)}const Gxe=20;function Yxe(...t){let e=t.shift();const r=new WeakMap;for(;t.length>0;)e=nG(e,t.shift(),0,r);return e}function P1(t){return YO(t)?t.slice():t}function nG(t,e,r=0,n){let i;if(!(r>Gxe)){if(r++,fb(t)||fb(e)||iG(e))i=P1(e);else if(YO(t)){if(i=t.slice(),YO(e))for(let o=0,s=e.length;o<s;o++)i.push(P1(e[o]));else if(xf(e)){const o=Object.keys(e);for(let s=0,a=o.length;s<a;s++){const l=o[s];i[l]=P1(e[l])}}}else if(xf(t))if(xf(e)){if(!Hxe(t,e))return e;i=Object.assign({},t);const o=Object.keys(e);for(let s=0,a=o.length;s<a;s++){const l=o[s],c=e[l];if(fb(c))typeof c>"u"?delete i[l]:i[l]=c;else{const u=i[l],d=c;if(TN(t,l,n)||TN(e,l,n))delete i[l];else{if(xf(u)&&xf(d)){const f=n.get(u)||[],h=n.get(d)||[];f.push({obj:t,key:l}),h.push({obj:e,key:l}),n.set(u,f),n.set(d,h)}i[l]=nG(i[l],c,r,n)}}}}else i=e;return i}}function TN(t,e,r){const n=r.get(t[e])||[];for(let i=0,o=n.length;i<o;i++){const s=n[i];if(s.key===e&&s.obj===t)return!0}return!1}function YO(t){return Array.isArray(t)}function iG(t){return typeof t=="function"}function xf(t){return!fb(t)&&!YO(t)&&!iG(t)&&typeof t=="object"}function fb(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t>"u"||t instanceof Date||t instanceof RegExp||t===null}function Hxe(t,e){return!(!IN(t)||!IN(e))}class Jxe{constructor(){xe(this,"_promise");xe(this,"_resolve");xe(this,"_reject");this._promise=new Promise((e,r)=>{this._resolve=e,this._reject=r})}get promise(){return this._promise}resolve(e){this._resolve(e)}reject(e){this._reject(e)}}class Kxe{constructor(e,r){xe(this,"_callback");xe(this,"_that");xe(this,"_isCalled",!1);xe(this,"_deferred",new Jxe);this._callback=e,this._that=r}get isCalled(){return this._isCalled}get promise(){return this._deferred.promise}call(...e){if(!this._isCalled){this._isCalled=!0;try{Promise.resolve(this._callback.call(this._that,...e)).then(r=>this._deferred.resolve(r),r=>this._deferred.reject(r))}catch(r){this._deferred.reject(r)}}return this._deferred.promise}}function eSe(){return"unknown_service"}const ch=t=>t!==null&&typeof t=="object"&&typeof t.then=="function";class HO{constructor(e){xe(this,"_rawAttributes");xe(this,"_asyncAttributesPending",!1);xe(this,"_memoizedAttributes");const r=e.attributes??{};this._rawAttributes=Object.entries(r).map(([n,i])=>(ch(i)&&(this._asyncAttributesPending=!0),[n,i])),this._rawAttributes=_N(this._rawAttributes)}static FromAttributeList(e){const r=new HO({});return r._rawAttributes=_N(e),r._asyncAttributesPending=e.filter(([n,i])=>ch(i)).length>0,r}get asyncAttributesPending(){return this._asyncAttributesPending}async waitForAsyncAttributes(){if(this.asyncAttributesPending){for(let e=0;e<this._rawAttributes.length;e++){const[r,n]=this._rawAttributes[e];this._rawAttributes[e]=[r,ch(n)?await n:n]}this._asyncAttributesPending=!1}}get attributes(){if(this.asyncAttributesPending&&jt.error("Accessing resource attributes before async attributes settled"),this._memoizedAttributes)return this._memoizedAttributes;const e={};for(const[r,n]of this._rawAttributes){if(ch(n)){jt.debug(`Unsettled resource attribute ${r} skipped`);continue}n!=null&&(e[r]??(e[r]=n))}return this._asyncAttributesPending||(this._memoizedAttributes=e),e}getRawAttributes(){return this._rawAttributes}merge(e){return e==null?this:HO.FromAttributeList([...e.getRawAttributes(),...this.getRawAttributes()])}}function oG(t){return HO.FromAttributeList(Object.entries(t))}function tSe(){return oG({[GZ]:eSe(),[q$]:S1[q$],[F$]:S1[F$],[W$]:S1[W$]})}function _N(t){return t.map(([e,r])=>ch(r)?[e,r.catch(n=>{jt.debug("promise rejection for resource attribute: %s - %s",e,n)})]:[e,r])}const rSe="exception";class nSe{constructor(e){xe(this,"_spanContext");xe(this,"kind");xe(this,"parentSpanContext");xe(this,"attributes",{});xe(this,"links",[]);xe(this,"events",[]);xe(this,"startTime");xe(this,"resource");xe(this,"instrumentationScope");xe(this,"_droppedAttributesCount",0);xe(this,"_droppedEventsCount",0);xe(this,"_droppedLinksCount",0);xe(this,"name");xe(this,"status",{code:xp.UNSET});xe(this,"endTime",[0,0]);xe(this,"_ended",!1);xe(this,"_duration",[-1,-1]);xe(this,"_spanProcessor");xe(this,"_spanLimits");xe(this,"_attributeValueLengthLimit");xe(this,"_performanceStartTime");xe(this,"_performanceOffset");xe(this,"_startTimeProvided");const r=Date.now();this._spanContext=e.spanContext,this._performanceStartTime=Nu.now(),this._performanceOffset=r-(this._performanceStartTime+YZ()),this._startTimeProvided=e.startTime!=null,this._spanLimits=e.spanLimits,this._attributeValueLengthLimit=this._spanLimits.attributeValueLengthLimit||0,this._spanProcessor=e.spanProcessor,this.name=e.name,this.parentSpanContext=e.parentSpanContext,this.kind=e.kind,this.links=e.links||[],this.startTime=this._getTime(e.startTime??r),this.resource=e.resource,this.instrumentationScope=e.scope,e.attributes!=null&&this.setAttributes(e.attributes),this._spanProcessor.onStart(this,e.context)}spanContext(){return this._spanContext}setAttribute(e,r){if(r==null||this._isSpanEnded())return this;if(e.length===0)return jt.warn(`Invalid attribute key: ${e}`),this;if(!XZ(r))return jt.warn(`Invalid attribute value set for key: ${e}`),this;const{attributeCountLimit:n}=this._spanLimits;return n!==void 0&&Object.keys(this.attributes).length>=n&&!Object.prototype.hasOwnProperty.call(this.attributes,e)?(this._droppedAttributesCount++,this):(this.attributes[e]=this._truncateToSize(r),this)}setAttributes(e){for(const[r,n]of Object.entries(e))this.setAttribute(r,n);return this}addEvent(e,r,n){if(this._isSpanEnded())return this;const{eventCountLimit:i}=this._spanLimits;if(i===0)return jt.warn("No events allowed."),this._droppedEventsCount++,this;i!==void 0&&this.events.length>=i&&(this._droppedEventsCount===0&&jt.debug("Dropping extra events."),this.events.shift(),this._droppedEventsCount++),kN(r)&&(kN(n)||(n=r),r=void 0);const o=db(r);return this.events.push({name:e,attributes:o,time:this._getTime(n),droppedAttributesCount:0}),this}addLink(e){return this.links.push(e),this}addLinks(e){return this.links.push(...e),this}setStatus(e){return this._isSpanEnded()?this:(this.status={...e},this.status.message!=null&&typeof e.message!="string"&&(jt.warn(`Dropping invalid status.message of type '${typeof e.message}', expected 'string'`),delete this.status.message),this)}updateName(e){return this._isSpanEnded()?this:(this.name=e,this)}end(e){if(this._isSpanEnded()){jt.error(`${this.name} ${this._spanContext.traceId}-${this._spanContext.spanId} - You can only call end() on a span once.`);return}this._ended=!0,this.endTime=this._getTime(e),this._duration=Oxe(this.startTime,this.endTime),this._duration[0]<0&&(jt.warn("Inconsistent start and end time, startTime > endTime. Setting span duration to 0ms.",this.startTime,this.endTime),this.endTime=this.startTime.slice(),this._duration=[0,0]),this._droppedEventsCount>0&&jt.warn(`Dropped ${this._droppedEventsCount} events because eventCountLimit reached`),this._spanProcessor.onEnd(this)}_getTime(e){if(typeof e=="number"&&e<=Nu.now())return bxe(e+this._performanceOffset);if(typeof e=="number")return Cu(e);if(e instanceof Date)return Cu(e.getTime());if(HZ(e))return e;if(this._startTimeProvided)return Cu(Date.now());const r=Nu.now()-this._performanceStartTime;return JZ(this.startTime,Cu(r))}isRecording(){return this._ended===!1}recordException(e,r){const n={};typeof e=="string"?n[O1]=e:e&&(e.code?n[x1]=e.code.toString():e.name&&(n[x1]=e.name),e.message&&(n[O1]=e.message),e.stack&&(n[fxe]=e.stack)),n[x1]||n[O1]?this.addEvent(rSe,n,r):jt.warn(`Failed to record an exception ${e}`)}get duration(){return this._duration}get ended(){return this._ended}get droppedAttributesCount(){return this._droppedAttributesCount}get droppedEventsCount(){return this._droppedEventsCount}get droppedLinksCount(){return this._droppedLinksCount}_isSpanEnded(){if(this._ended){const e=new Error(`Operation attempted on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`);jt.warn(`Cannot execute the operation on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`,e)}return this._ended}_truncateToLimitUtil(e,r){return e.length<=r?e:e.substring(0,r)}_truncateToSize(e){const r=this._attributeValueLengthLimit;return r<=0?(jt.warn(`Attribute value limit must be positive, got ${r}`),e):typeof e=="string"?this._truncateToLimitUtil(e,r):Array.isArray(e)?e.map(n=>typeof n=="string"?this._truncateToLimitUtil(n,r):n):e}}var bd;(function(t){t[t.NOT_RECORD=0]="NOT_RECORD",t[t.RECORD=1]="RECORD",t[t.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(bd||(bd={}));class JO{shouldSample(){return{decision:bd.NOT_RECORD}}toString(){return"AlwaysOffSampler"}}class Lu{shouldSample(){return{decision:bd.RECORD_AND_SAMPLED}}toString(){return"AlwaysOnSampler"}}class Cm{constructor(e){xe(this,"_root");xe(this,"_remoteParentSampled");xe(this,"_remoteParentNotSampled");xe(this,"_localParentSampled");xe(this,"_localParentNotSampled");this._root=e.root,this._root||(vd(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new Lu),this._remoteParentSampled=e.remoteParentSampled??new Lu,this._remoteParentNotSampled=e.remoteParentNotSampled??new JO,this._localParentSampled=e.localParentSampled??new Lu,this._localParentNotSampled=e.localParentNotSampled??new JO}shouldSample(e,r,n,i,o,s){const a=mi.getSpanContext(e);return!a||!Vx(a)?this._root.shouldSample(e,r,n,i,o,s):a.isRemote?a.traceFlags&Js.SAMPLED?this._remoteParentSampled.shouldSample(e,r,n,i,o,s):this._remoteParentNotSampled.shouldSample(e,r,n,i,o,s):a.traceFlags&Js.SAMPLED?this._localParentSampled.shouldSample(e,r,n,i,o,s):this._localParentNotSampled.shouldSample(e,r,n,i,o,s)}toString(){return`ParentBased{root=${this._root.toString()}, remoteParentSampled=${this._remoteParentSampled.toString()}, remoteParentNotSampled=${this._remoteParentNotSampled.toString()}, localParentSampled=${this._localParentSampled.toString()}, localParentNotSampled=${this._localParentNotSampled.toString()}}`}}class RN{constructor(e=0){xe(this,"_ratio");xe(this,"_upperBound");this._ratio=e,this._ratio=this._normalize(e),this._upperBound=Math.floor(this._ratio*4294967295)}shouldSample(e,r){return{decision:qZ(r)&&this._accumulate(r)<this._upperBound?bd.RECORD_AND_SAMPLED:bd.NOT_RECORD}}toString(){return`TraceIdRatioBased{${this._ratio}}`}_normalize(e){return typeof e!="number"||isNaN(e)?0:e>=1?1:e<=0?0:e}_accumulate(e){let r=0;for(let n=0;n<e.length/8;n++){const i=n*8,o=parseInt(e.slice(i,i+8),16);r=(r^o)>>>0}return r}}const jN=1;function sG(){return{sampler:aG(),forceFlushTimeoutMillis:3e4,generalLimits:{attributeValueLengthLimit:1/0,attributeCountLimit:128},spanLimits:{attributeValueLengthLimit:1/0,attributeCountLimit:128,linkCountLimit:128,eventCountLimit:128,attributePerEventCountLimit:128,attributePerLinkCountLimit:128}}}function aG(){const t="parentbased_always_on";switch(t){case"always_on":return new Lu;case"always_off":return new JO;case"parentbased_always_on":return new Cm({root:new Lu});case"parentbased_always_off":return new Cm({root:new JO});case"traceidratio":return new RN(DN());case"parentbased_traceidratio":return new Cm({root:new RN(DN())});default:return jt.error(`OTEL_TRACES_SAMPLER value "${t}" invalid, defaulting to "parentbased_always_on".`),new Cm({root:new Lu})}}function DN(){return jt.error(`OTEL_TRACES_SAMPLER_ARG is blank, defaulting to ${jN}.`),jN}const iSe=128,oSe=1/0;function sSe(t){const e={sampler:aG()},r=sG(),n=Object.assign({},r,e,t);return n.generalLimits=Object.assign({},r.generalLimits,t.generalLimits||{}),n.spanLimits=Object.assign({},r.spanLimits,t.spanLimits||{}),n}function aSe(t){var r,n,i,o;const e=Object.assign({},t.spanLimits);return e.attributeCountLimit=((r=t.spanLimits)==null?void 0:r.attributeCountLimit)??((n=t.generalLimits)==null?void 0:n.attributeCountLimit)??void 0??void 0??iSe,e.attributeValueLengthLimit=((i=t.spanLimits)==null?void 0:i.attributeValueLengthLimit)??((o=t.generalLimits)==null?void 0:o.attributeValueLengthLimit)??void 0??void 0??oSe,Object.assign({},t,{spanLimits:e})}class lSe{constructor(e,r){xe(this,"_exporter");xe(this,"_maxExportBatchSize");xe(this,"_maxQueueSize");xe(this,"_scheduledDelayMillis");xe(this,"_exportTimeoutMillis");xe(this,"_isExporting",!1);xe(this,"_finishedSpans",[]);xe(this,"_timer");xe(this,"_shutdownOnce");xe(this,"_droppedSpansCount",0);this._exporter=e,this._maxExportBatchSize=typeof(r==null?void 0:r.maxExportBatchSize)=="number"?r.maxExportBatchSize:512,this._maxQueueSize=typeof(r==null?void 0:r.maxQueueSize)=="number"?r.maxQueueSize:2048,this._scheduledDelayMillis=typeof(r==null?void 0:r.scheduledDelayMillis)=="number"?r.scheduledDelayMillis:5e3,this._exportTimeoutMillis=typeof(r==null?void 0:r.exportTimeoutMillis)=="number"?r.exportTimeoutMillis:3e4,this._shutdownOnce=new Kxe(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize&&(jt.warn("BatchSpanProcessor: maxExportBatchSize must be smaller or equal to maxQueueSize, setting maxExportBatchSize to match maxQueueSize"),this._maxExportBatchSize=this._maxQueueSize)}forceFlush(){return this._shutdownOnce.isCalled?this._shutdownOnce.promise:this._flushAll()}onStart(e,r){}onEnd(e){this._shutdownOnce.isCalled||(e.spanContext().traceFlags&Js.SAMPLED)!==0&&this._addToBuffer(e)}shutdown(){return this._shutdownOnce.call()}_shutdown(){return Promise.resolve().then(()=>this.onShutdown()).then(()=>this._flushAll()).then(()=>this._exporter.shutdown())}_addToBuffer(e){if(this._finishedSpans.length>=this._maxQueueSize){this._droppedSpansCount===0&&jt.debug("maxQueueSize reached, dropping spans"),this._droppedSpansCount++;return}this._droppedSpansCount>0&&(jt.warn(`Dropped ${this._droppedSpansCount} spans because maxQueueSize reached`),this._droppedSpansCount=0),this._finishedSpans.push(e),this._maybeStartTimer()}_flushAll(){return new Promise((e,r)=>{const n=[],i=Math.ceil(this._finishedSpans.length/this._maxExportBatchSize);for(let o=0,s=i;o<s;o++)n.push(this._flushOneBatch());Promise.all(n).then(()=>{e()}).catch(r)})}_flushOneBatch(){return this._clearTimer(),this._finishedSpans.length===0?Promise.resolve():new Promise((e,r)=>{const n=setTimeout(()=>{r(new Error("Timeout"))},this._exportTimeoutMillis);ao.with(Y0e(ao.active()),()=>{let i;this._finishedSpans.length<=this._maxExportBatchSize?(i=this._finishedSpans,this._finishedSpans=[]):i=this._finishedSpans.splice(0,this._maxExportBatchSize);const o=()=>this._exporter.export(i,a=>{clearTimeout(n),a.code===zo.SUCCESS?e():r(a.error??new Error("BatchSpanProcessor: span export failed"))});let s=null;for(let a=0,l=i.length;a<l;a++){const c=i[a];c.resource.asyncAttributesPending&&c.resource.waitForAsyncAttributes&&(s??(s=[]),s.push(c.resource.waitForAsyncAttributes()))}s===null?o():Promise.all(s).then(o,a=>{vd(a),r(a)})})})}_maybeStartTimer(){if(this._isExporting)return;const e=()=>{this._isExporting=!0,this._flushOneBatch().finally(()=>{this._isExporting=!1,this._finishedSpans.length>0&&(this._clearTimer(),this._maybeStartTimer())}).catch(r=>{this._isExporting=!1,vd(r)})};if(this._finishedSpans.length>=this._maxExportBatchSize)return e();this._timer===void 0&&(this._timer=setTimeout(()=>e(),this._scheduledDelayMillis),this._timer,void 0)}_clearTimer(){this._timer!==void 0&&(clearTimeout(this._timer),this._timer=void 0)}}class cSe extends lSe{constructor(r,n){super(r,n);xe(this,"_visibilityChangeListener");xe(this,"_pageHideListener");this.onInit(n)}onInit(r){(r==null?void 0:r.disableAutoFlushOnDocumentHide)!==!0&&typeof document<"u"&&(this._visibilityChangeListener=()=>{document.visibilityState==="hidden"&&this.forceFlush().catch(n=>{vd(n)})},this._pageHideListener=()=>{this.forceFlush().catch(n=>{vd(n)})},document.addEventListener("visibilitychange",this._visibilityChangeListener),document.addEventListener("pagehide",this._pageHideListener))}onShutdown(){typeof document<"u"&&(this._visibilityChangeListener&&document.removeEventListener("visibilitychange",this._visibilityChangeListener),this._pageHideListener&&document.removeEventListener("pagehide",this._pageHideListener))}}const uSe=8,dSe=16;class fSe{constructor(){xe(this,"generateTraceId",MN(dSe));xe(this,"generateSpanId",MN(uSe))}}const Pm=Array(32);function MN(t){return function(){for(let r=0;r<t*2;r++)Pm[r]=Math.floor(Math.random()*16)+48,Pm[r]>=58&&(Pm[r]+=39);return String.fromCharCode.apply(null,Pm.slice(0,t*2))}}class hSe{constructor(e,r,n,i){xe(this,"_sampler");xe(this,"_generalLimits");xe(this,"_spanLimits");xe(this,"_idGenerator");xe(this,"instrumentationScope");xe(this,"_resource");xe(this,"_spanProcessor");const o=sSe(r);this._sampler=o.sampler,this._generalLimits=o.generalLimits,this._spanLimits=o.spanLimits,this._idGenerator=r.idGenerator||new fSe,this._resource=n,this._spanProcessor=i,this.instrumentationScope=e}startSpan(e,r={},n=ao.active()){r.root&&(n=mi.deleteSpan(n));const i=mi.getSpan(n);if(II(n))return jt.debug("Instrumentation suppressed, returning Noop Span"),mi.wrapSpanContext(zZ);const o=i==null?void 0:i.spanContext(),s=this._idGenerator.generateSpanId();let a,l,c;!o||!mi.isSpanContextValid(o)?l=this._idGenerator.generateTraceId():(l=o.traceId,c=o.traceState,a=o);const u=r.kind??V$.INTERNAL,d=(r.links??[]).map(b=>({context:b.context,attributes:db(b.attributes)})),f=db(r.attributes),h=this._sampler.shouldSample(n,l,e,u,f,d);c=h.traceState??c;const g=h.decision===ZO.RECORD_AND_SAMPLED?Js.SAMPLED:Js.NONE,p={traceId:l,spanId:s,traceFlags:g,traceState:c};if(h.decision===ZO.NOT_RECORD)return jt.debug("Recording is off, propagating context in a non-recording span"),mi.wrapSpanContext(p);const y=db(Object.assign(f,h.attributes));return new nSe({resource:this._resource,scope:this.instrumentationScope,context:n,spanContext:p,name:e,kind:u,links:d,parentSpanContext:a,attributes:y,startTime:r.startTime,spanProcessor:this._spanProcessor,spanLimits:this._spanLimits})}startActiveSpan(e,r,n,i){let o,s,a;if(arguments.length<2)return;arguments.length===2?a=r:arguments.length===3?(o=r,a=n):(o=r,s=n,a=i);const l=s??ao.active(),c=this.startSpan(e,o,l),u=mi.setSpan(l,c);return ao.with(u,a,void 0,c)}getGeneralLimits(){return this._generalLimits}getSpanLimits(){return this._spanLimits}}class pSe{constructor(e){xe(this,"_spanProcessors");this._spanProcessors=e}forceFlush(){const e=[];for(const r of this._spanProcessors)e.push(r.forceFlush());return new Promise(r=>{Promise.all(e).then(()=>{r()}).catch(n=>{vd(n||new Error("MultiSpanProcessor: forceFlush failed")),r()})})}onStart(e,r){for(const n of this._spanProcessors)n.onStart(e,r)}onEnd(e){for(const r of this._spanProcessors)r.onEnd(e)}shutdown(){const e=[];for(const r of this._spanProcessors)e.push(r.shutdown());return new Promise((r,n)=>{Promise.all(e).then(()=>{r()},n)})}}var jl;(function(t){t[t.resolved=0]="resolved",t[t.timeout=1]="timeout",t[t.error=2]="error",t[t.unresolved=3]="unresolved"})(jl||(jl={}));class gSe{constructor(e={}){xe(this,"_config");xe(this,"_tracers",new Map);xe(this,"_resource");xe(this,"_activeSpanProcessor");var i;const r=Yxe({},sG(),aSe(e));this._resource=r.resource??tSe(),this._config=Object.assign({},r,{resource:this._resource});const n=[];(i=e.spanProcessors)!=null&&i.length&&n.push(...e.spanProcessors),this._activeSpanProcessor=new pSe(n)}getTracer(e,r,n){const i=`${e}@${r||""}:${(n==null?void 0:n.schemaUrl)||""}`;return this._tracers.has(i)||this._tracers.set(i,new hSe({name:e,version:r,schemaUrl:n==null?void 0:n.schemaUrl},this._config,this._resource,this._activeSpanProcessor)),this._tracers.get(i)}forceFlush(){const e=this._config.forceFlushTimeoutMillis,r=this._activeSpanProcessor._spanProcessors.map(n=>new Promise(i=>{let o;const s=setTimeout(()=>{i(new Error(`Span processor did not completed within timeout period of ${e} ms`)),o=jl.timeout},e);n.forceFlush().then(()=>{clearTimeout(s),o!==jl.timeout&&(o=jl.resolved,i(o))}).catch(a=>{clearTimeout(s),o=jl.error,i(a)})}));return new Promise((n,i)=>{Promise.all(r).then(o=>{const s=o.filter(a=>a!==jl.resolved);s.length>0?i(s):n()}).catch(o=>i([o]))})}shutdown(){return this._activeSpanProcessor.shutdown()}}class mSe{constructor(){xe(this,"_enabled",!1);xe(this,"_currentContext",uu)}_bindFunction(e=uu,r){const n=this,i=function(...o){return n.with(e,()=>r.apply(this,o))};return Object.defineProperty(i,"length",{enumerable:!1,configurable:!0,writable:!1,value:r.length}),i}active(){return this._currentContext}bind(e,r){return e===void 0&&(e=this.active()),typeof r=="function"?this._bindFunction(e,r):r}disable(){return this._currentContext=uu,this._enabled=!1,this}enable(){return this._enabled?this:(this._enabled=!0,this._currentContext=uu,this)}with(e,r,n,...i){const o=this._currentContext;this._currentContext=e||uu;try{return r.call(n,...i)}finally{this._currentContext=o}}}function ySe(t){if(t!==null){if(t===void 0){const e=new mSe;e.enable(),ao.setGlobalContextManager(e);return}t.enable(),ao.setGlobalContextManager(t)}}function vSe(t){if(t!==null){if(t===void 0){Rh.setGlobalPropagator(new Sxe({propagators:[new Lxe,new ixe]}));return}Rh.setGlobalPropagator(t)}}class bSe extends gSe{constructor(e={}){super(e)}register(e={}){mi.setGlobalTracerProvider(this),vSe(e.propagator),ySe(e.contextManager)}}class OSe{constructor(e){xe(this,"_delegate");this._delegate=e}export(e,r){this._delegate.export(e,r)}forceFlush(){return this._delegate.forceFlush()}shutdown(){return this._delegate.shutdown()}}class NN extends Error{constructor(r,n,i){super(r);xe(this,"code");xe(this,"name","OTLPExporterError");xe(this,"data");this.data=i,this.code=n}}function xSe(t){if(Number.isFinite(t)&&t>0)return t;throw new Error(`Configuration: timeoutMillis is invalid, expected number greater than 0 (actual: '${t}')`)}function SSe(t){if(t!=null)return()=>t}function wSe(t,e,r){return{timeoutMillis:xSe(t.timeoutMillis??e.timeoutMillis??r.timeoutMillis),concurrencyLimit:t.concurrencyLimit??e.concurrencyLimit??r.concurrencyLimit,compression:t.compression??e.compression??r.compression}}function CSe(){return{timeoutMillis:1e4,concurrencyLimit:30,compression:"none"}}class PSe{constructor(e){xe(this,"_concurrencyLimit");xe(this,"_sendingPromises",[]);this._concurrencyLimit=e}pushPromise(e){if(this.hasReachedLimit())throw new Error("Concurrency Limit reached");this._sendingPromises.push(e);const r=()=>{const n=this._sendingPromises.indexOf(e);this._sendingPromises.splice(n,1)};e.then(r,r)}hasReachedLimit(){return this._sendingPromises.length>=this._concurrencyLimit}async awaitAll(){await Promise.all(this._sendingPromises)}}function kSe(t){return new PSe(t.concurrencyLimit)}function $Se(t){return Object.prototype.hasOwnProperty.call(t,"partialSuccess")}function ESe(){return{handleResponse(t){t==null||!$Se(t)||t.partialSuccess==null||Object.keys(t.partialSuccess).length===0||jt.warn("Received Partial Success response:",JSON.stringify(t.partialSuccess))}}}class ASe{constructor(e,r,n,i,o){xe(this,"_transport");xe(this,"_serializer");xe(this,"_responseHandler");xe(this,"_promiseQueue");xe(this,"_timeout");xe(this,"_diagLogger");this._transport=e,this._serializer=r,this._responseHandler=n,this._promiseQueue=i,this._timeout=o,this._diagLogger=jt.createComponentLogger({namespace:"OTLPExportDelegate"})}export(e,r){if(this._diagLogger.debug("items to be sent",e),this._promiseQueue.hasReachedLimit()){r({code:zo.FAILED,error:new Error("Concurrent export limit reached")});return}const n=this._serializer.serializeRequest(e);if(n==null){r({code:zo.FAILED,error:new Error("Nothing to send")});return}this._promiseQueue.pushPromise(this._transport.send(n,this._timeout).then(i=>{if(i.status==="success"){if(i.data!=null)try{this._responseHandler.handleResponse(this._serializer.deserializeResponse(i.data))}catch(o){this._diagLogger.warn("Export succeeded but could not deserialize response - is the response specification compliant?",o,i.data)}r({code:zo.SUCCESS});return}else if(i.status==="failure"&&i.error){r({code:zo.FAILED,error:i.error});return}else i.status==="retryable"?r({code:zo.FAILED,error:new NN("Export failed with retryable status")}):r({code:zo.FAILED,error:new NN("Export failed with unknown error")})},i=>r({code:zo.FAILED,error:i})))}forceFlush(){return this._promiseQueue.awaitAll()}async shutdown(){this._diagLogger.debug("shutdown started"),await this.forceFlush(),this._transport.shutdown()}}function ISe(t,e){return new ASe(t.transport,t.serializer,ESe(),t.promiseHandler,e.timeout)}function lG(t,e,r){return ISe({transport:r,serializer:e,promiseHandler:kSe(t)},{timeout:t.timeoutMillis})}function LN(t){return t>=48&&t<=57?t-48:t>=97&&t<=102?t-87:t-55}function cG(t){const e=new Uint8Array(t.length/2);let r=0;for(let n=0;n<t.length;n+=2){const i=LN(t.charCodeAt(n)),o=LN(t.charCodeAt(n+1));e[r++]=i<<4|o}return e}function uG(t){const e=BigInt(1e9);return BigInt(t[0])*e+BigInt(t[1])}function TSe(t){const e=Number(BigInt.asUintN(32,t)),r=Number(BigInt.asUintN(32,t>>BigInt(32)));return{low:e,high:r}}function _Se(t){const e=uG(t);return TSe(e)}function RSe(t){return uG(t).toString()}const jSe=typeof BigInt<"u"?RSe:xxe;function QN(t){return t}function DSe(t){if(t!==void 0)return cG(t)}const MSe={encodeHrTime:_Se,encodeSpanContext:cG,encodeOptionalSpanContext:DSe};function NSe(t){return t===void 0?MSe:{encodeHrTime:jSe,encodeSpanContext:QN,encodeOptionalSpanContext:QN}}function LSe(t){return{attributes:zx(t.attributes),droppedAttributesCount:0}}function QSe(t){return{name:t.name,version:t.version}}function zx(t){return Object.keys(t).map(e=>dG(e,t[e]))}function dG(t,e){return{key:t,value:fG(e)}}function fG(t){const e=typeof t;return e==="string"?{stringValue:t}:e==="number"?Number.isInteger(t)?{intValue:t}:{doubleValue:t}:e==="boolean"?{boolValue:t}:t instanceof Uint8Array?{bytesValue:t}:Array.isArray(t)?{arrayValue:{values:t.map(fG)}}:e==="object"&&t!=null?{kvlistValue:{values:Object.entries(t).map(([r,n])=>dG(r,n))}}:{}}function VSe(t,e){var o,s,a;const r=t.spanContext(),n=t.status,i=(o=t.parentSpanContext)!=null&&o.spanId?e.encodeSpanContext((s=t.parentSpanContext)==null?void 0:s.spanId):void 0;return{traceId:e.encodeSpanContext(r.traceId),spanId:e.encodeSpanContext(r.spanId),parentSpanId:i,traceState:(a=r.traceState)==null?void 0:a.serialize(),name:t.name,kind:t.kind==null?0:t.kind+1,startTimeUnixNano:e.encodeHrTime(t.startTime),endTimeUnixNano:e.encodeHrTime(t.endTime),attributes:zx(t.attributes),droppedAttributesCount:t.droppedAttributesCount,events:t.events.map(l=>BSe(l,e)),droppedEventsCount:t.droppedEventsCount,status:{code:n.code,message:n.message},links:t.links.map(l=>zSe(l,e)),droppedLinksCount:t.droppedLinksCount}}function zSe(t,e){var r;return{attributes:t.attributes?zx(t.attributes):[],spanId:e.encodeSpanContext(t.context.spanId),traceId:e.encodeSpanContext(t.context.traceId),traceState:(r=t.context.traceState)==null?void 0:r.serialize(),droppedAttributesCount:t.droppedAttributesCount||0}}function BSe(t,e){return{attributes:t.attributes?zx(t.attributes):[],name:t.name,timeUnixNano:e.encodeHrTime(t.time),droppedAttributesCount:t.droppedAttributesCount||0}}function qSe(t,e){const r=NSe(e);return{resourceSpans:WSe(t,r)}}function FSe(t){const e=new Map;for(const r of t){let n=e.get(r.resource);n||(n=new Map,e.set(r.resource,n));const i=`${r.instrumentationScope.name}@${r.instrumentationScope.version||""}:${r.instrumentationScope.schemaUrl||""}`;let o=n.get(i);o||(o=[],n.set(i,o)),o.push(r)}return e}function WSe(t,e){const r=FSe(t),n=[],i=r.entries();let o=i.next();for(;!o.done;){const[s,a]=o.value,l=[],c=a.values();let u=c.next();for(;!u.done;){const f=u.value;if(f.length>0){const h=f.map(g=>VSe(g,e));l.push({scope:QSe(f[0].instrumentationScope),spans:h,schemaUrl:f[0].instrumentationScope.schemaUrl})}u=c.next()}const d={resource:LSe(s),scopeSpans:l,schemaUrl:void 0};n.push(d),o=i.next()}return n}const USe={serializeRequest:t=>{const e=qSe(t,{});return new TextEncoder().encode(JSON.stringify(e))},deserializeResponse:t=>{if(t.length===0)return{};const e=new TextDecoder;return JSON.parse(e.decode(t))}},XSe=5,ZSe=1e3,GSe=5e3,YSe=1.5,VN=.2;function HSe(){return Math.random()*(2*VN)-VN}class JSe{constructor(e){xe(this,"_transport");this._transport=e}retry(e,r,n){return new Promise((i,o)=>{setTimeout(()=>{this._transport.send(e,r).then(i,o)},n)})}async send(e,r){const n=Date.now()+r;let i=await this._transport.send(e,r),o=XSe,s=ZSe;for(;i.status==="retryable"&&o>0;){o--;const a=Math.max(Math.min(s,GSe)+HSe(),0);s=s*YSe;const l=i.retryInMillis??a,c=n-Date.now();if(l>c)return i;i=await this.retry(e,c,l)}return i}shutdown(){return this._transport.shutdown()}}function hG(t){return new JSe(t.transport)}function KSe(t){return[429,502,503,504].includes(t)}function ewe(t){if(t==null)return;const e=Number.parseInt(t,10);if(Number.isInteger(e))return e>0?e*1e3:-1;const r=new Date(t).getTime()-Date.now();return r>=0?r:0}class twe{constructor(e){xe(this,"_parameters");this._parameters=e}send(e,r){return new Promise(n=>{const i=new XMLHttpRequest;i.timeout=r,i.open("POST",this._parameters.url);const o=this._parameters.headers();Object.entries(o).forEach(([s,a])=>{i.setRequestHeader(s,a)}),i.ontimeout=s=>{n({status:"failure",error:new Error("XHR request timed out")})},i.onreadystatechange=()=>{i.status>=200&&i.status<=299?(jt.debug("XHR success"),n({status:"success"})):i.status&&KSe(i.status)?n({status:"retryable",retryInMillis:ewe(i.getResponseHeader("Retry-After"))}):i.status!==0&&n({status:"failure",error:new Error("XHR request failed with non-retryable status")})},i.onabort=()=>{n({status:"failure",error:new Error("XHR request aborted")})},i.onerror=()=>{n({status:"failure",error:new Error("XHR request errored")})},i.send(e)})}shutdown(){}}function rwe(t){return new twe(t)}class nwe{constructor(e){xe(this,"_params");this._params=e}send(e){return new Promise(r=>{navigator.sendBeacon(this._params.url,new Blob([e],{type:this._params.blobType}))?(jt.debug("SendBeacon success"),r({status:"success"})):r({status:"failure",error:new Error("SendBeacon failed")})})}shutdown(){}}function iwe(t){return new nwe(t)}function owe(t,e){return lG(t,e,hG({transport:rwe(t)}))}function swe(t,e){return lG(t,e,hG({transport:iwe({url:t.url,blobType:t.headers()["Content-Type"]})}))}function awe(t){return()=>{const e={};return Object.entries((t==null?void 0:t())??{}).forEach(([r,n])=>{typeof n<"u"?e[r]=String(n):jt.warn(`Header "${r}" has invalid value (${n}) and will be ignored`)}),e}}function lwe(t,e,r){const n={...r()},i={};return()=>(e!=null&&Object.assign(i,e()),t!=null&&Object.assign(i,t()),Object.assign(i,n))}function cwe(t){if(t!=null)try{return new URL(t),t}catch{throw new Error(`Configuration: Could not parse user-provided export URL: '${t}'`)}}function uwe(t,e,r){return{...wSe(t,e,r),headers:lwe(awe(t.headers),e.headers,r.headers),url:cwe(t.url)??e.url??r.url,agentOptions:t.agentOptions??e.agentOptions??r.agentOptions}}function dwe(t,e){return{...CSe(),headers:()=>t,url:"http://localhost:4318/"+e,agentOptions:{keepAlive:!0}}}function fwe(t,e,r){return uwe({url:t.url,timeoutMillis:t.timeoutMillis,headers:SSe(t.headers),concurrencyLimit:t.concurrencyLimit},{},dwe(r,e))}function hwe(t,e,r,n){const i=!!t.headers||typeof navigator.sendBeacon!="function",o=fwe(t,r,n);return i?owe(o,e):swe(o,e)}class pwe extends OSe{constructor(e={}){super(hwe(e,USe,"v1/traces",{"Content-Type":"application/json"}))}}class pG{emit(e){}}const gwe=new pG;class mwe{getLogger(e,r,n){return new pG}}const gG=new mwe;class ywe{constructor(e,r,n,i){this._provider=e,this.name=r,this.version=n,this.options=i}emit(e){this._getLogger().emit(e)}_getLogger(){if(this._delegate)return this._delegate;const e=this._provider.getDelegateLogger(this.name,this.version,this.options);return e?(this._delegate=e,this._delegate):gwe}}class zN{getLogger(e,r,n){var i;return(i=this.getDelegateLogger(e,r,n))!==null&&i!==void 0?i:new ywe(this,e,r,n)}getDelegate(){var e;return(e=this._delegate)!==null&&e!==void 0?e:gG}setDelegate(e){this._delegate=e}getDelegateLogger(e,r,n){var i;return(i=this._delegate)===null||i===void 0?void 0:i.getLogger(e,r,n)}}const vwe=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof global=="object"?global:{},km=Symbol.for("io.opentelemetry.js.api.logs"),Sf=vwe;function bwe(t,e,r){return n=>n===t?e:r}const BN=1;class _I{constructor(){this._proxyLoggerProvider=new zN}static getInstance(){return this._instance||(this._instance=new _I),this._instance}setGlobalLoggerProvider(e){return Sf[km]?this.getLoggerProvider():(Sf[km]=bwe(BN,e,gG),this._proxyLoggerProvider.setDelegate(e),e)}getLoggerProvider(){var e,r;return(r=(e=Sf[km])===null||e===void 0?void 0:e.call(Sf,BN))!==null&&r!==void 0?r:this._proxyLoggerProvider}getLogger(e,r,n){return this.getLoggerProvider().getLogger(e,r,n)}disable(){delete Sf[km],this._proxyLoggerProvider=new zN}}const Owe=_I.getInstance();function xwe(t,e,r,n){for(let i=0,o=t.length;i<o;i++){const s=t[i];e&&s.setTracerProvider(e),r&&s.setMeterProvider(r),n&&s.setLoggerProvider&&s.setLoggerProvider(n),s.getConfig().enabled||s.enable()}}function Swe(t){t.forEach(e=>e.disable())}function wwe(t){var o;const e=t.tracerProvider||mi.getTracerProvider(),r=t.meterProvider||B0e.getMeterProvider(),n=t.loggerProvider||Owe.getLoggerProvider(),i=((o=t.instrumentations)==null?void 0:o.flat())??[];return xwe(i,e,r,n),()=>{Swe(i)}}class qN{constructor(e){xe(this,"span");this.span=e}error(e){this.span&&(this.span.setStatus(xp.ERROR,e.message),this.span.recordException(e),this.span.end())}setAttribute(e,r){this.span&&this.span.setAttribute(e,r)}end(){this.span&&(this.span.setStatus(xp.OK),this.span.end())}}class Cwe{constructor(){xe(this,"config",null);xe(this,"tracer",null);xe(this,"tracerProvider",null);xe(this,"initialized",!1);xe(this,"getKeySnakeValue",e=>e.replace(/([A-Z])/g,"_$1").toLowerCase())}initTracer(e){throw new Error("initTracer must be implemented by the environment-specific client")}init(e){this.config=e,this.initTracer(e)}send(e){var r;try{if(!this.tracer||!this.config)return;const n=e.time?new Date(e.time):new Date;this.tracer.startSpan(`event.${e.type}`,{attributes:this.processAttributes(e,n),startTime:n}).end(n)}catch(n){(r=this.config)!=null&&r.isProd||console.error("Event reporting failed:",n)}}processAttributes(e,r){var o,s,a,l,c;const i={"cloudevents.event_id":XO(),"cloudevents.event_type":e.type,"cloudevents.event_source":e.source,"cloudevents.event_spec_version":e.specversion,"cloudevents.event_data_content_type":e.datacontenttype||"application/json; charset=utf-8","cloudevents.event_time":r.toISOString(),"cloudevents.event_subject":e.subject??"","cloudevents.page.uri":location.href,"cloudevents.event_version":(o=this.config)==null?void 0:o.version,"cloudevents.event_origin":(s=this.config)==null?void 0:s.serviceName,"cloudevents.event_source_details.id":((a=e.sourceDetails)==null?void 0:a.id)??"anonymous","cloudevents.event_source_details.object":((l=e.sourceDetails)==null?void 0:l.object)??"anonymous","cloudevents.event_source_details.uri":(c=e.sourceDetails)==null?void 0:c.uri};if(e.data&&typeof e.data=="object"&&Object.entries(e.data).forEach(([u,d])=>{const f=u.replace(/([A-Z])/g,"_$1").toLowerCase();d!==void 0&&(i[`cloudevents.event_data.${f}`]=d)}),"subjects"in e&&Array.isArray(e.subjects)){const u=e.subjects.reduce((d,f)=>{if(!f||typeof f!="object")return d;const h=f.object;if(!h||typeof h!="string")return d;const g=d.notUpdated.find(({object:p})=>p===h);return g?(d.updated=[g,f],d.notUpdated=d.notUpdated.filter(({object:p})=>p!==h)):d.updated.some(({object:p})=>p===h)||d.notUpdated.push(f),d},{updated:[],notUpdated:[]});u.updated.forEach((d,f)=>{const h=f===0?"after.":"before.",g=`${d.object}.`;Object.entries(d).forEach(([p,y])=>{y!==void 0&&(i[`cloudevents.subjects.${h}${g}${p}`]=y)})}),u.notUpdated.forEach(d=>{const f=`${d.object}.`;Object.entries(d).forEach(([h,g])=>{g!==void 0&&(i[`cloudevents.subjects.${f}${h}`]=g)})})}return Object.entries(e).forEach(([u,d])=>{["id","source","type","specversion","time","datacontenttype","data","subject","sourceDetails","analyticsMetadata","context"].includes(u)||d!==void 0&&(d instanceof Object?Object.entries(d).forEach(([f,h])=>{h!==void 0&&(i[`cloudevents.${u}.${f}`]=h)}):i[`cloudevents.${u}`]=d)}),i}startSpan(e,r){var n;try{if(!this.tracer)return;let i;const o=e.time?new Date(e.time):new Date,s=this.tracer.startSpan(`event.${e.type}`,{attributes:this.processAttributes(e,o),root:!r},r);return r||(i=mi.setSpan(ao.active(),s)),{end:()=>s.end(),setAttribute:(a,l)=>{s.setAttribute(`cloudevents.event_data.${this.getKeySnakeValue(a)}`,l)},setStatus:(a,l)=>s.setStatus({code:a,message:l}),parentCtx:i}}catch(i){(n=this.config)!=null&&n.isProd||console.error("Event reporting failed:",i)}}startStepSpan(e){var r;try{if(!this.tracer)return;const n=e.time?new Date(e.time):new Date,i=this.tracer.startSpan(`event.${e.type}`,{attributes:this.processAttributes(e,n),root:!1},ao.active());return{end:()=>i.end(),setAttribute:(o,s)=>{i.setAttribute(`cloudevents.event_data.${this.getKeySnakeValue(o)}`,s)},setStatus:(o,s)=>i.setStatus({code:o,message:s}),recordException:o=>i.recordException(o)}}catch(n){(r=this.config)!=null&&r.isProd||console.error("Event reporting failed:",n)}}startRootSpan(e){var r;try{if(!this.tracer)return;const n=e.time?new Date(e.time):new Date,i=this.tracer.startSpan(`event.${e.type}`,{attributes:this.processAttributes(e,n)},ao.active()),o=mi.setSpan(ao.active(),i);return{end:()=>i.end(),setAttribute:(s,a)=>{i.setAttribute(`cloudevents.event_data.${this.getKeySnakeValue(s)}`,a)},setStatus:(s,a)=>i.setStatus({code:s,message:a}),recordException:s=>i.recordException(s),context:o}}catch(n){(r=this.config)!=null&&r.isProd||console.error("Event reporting failed:",n)}}startTrace(e){const r=this.startStepSpan(e);if(r)return new qN(r)}startRootTrace(e){const r=this.startRootSpan(e);if(r)return{traceApi:new qN(r),context:r.context}}async forceFlush(){var e;return(e=this.tracerProvider)==null?void 0:e.forceFlush()}}class Pwe extends Cwe{constructor(){super();xe(this,"tracerProvider",null);xe(this,"tracer",null);xe(this,"initialized",!1)}initTracer(r){if(!r.collectorUrl&&!r.collectorTraceUrl)return;const n=`ses_${XO()}`,i=oG({[GZ]:r.serviceName,[hxe]:r.serviceVersion,session_id:n}),o=r.collectorTraceUrl||`${r.collectorUrl}/v1/traces`;this.tracerProvider=new bSe({resource:i,spanProcessors:[new cSe(new pwe({url:o,headers:{}}))]}),this.tracer=this.tracerProvider.getTracer(r.tracerName),this.tracerProvider.register(),wwe({instrumentations:r.instrumentations??[]}),this.initialized=!0}}class kwe{constructor(){xe(this,"config",null);xe(this,"initialized",!1);xe(this,"useCloudEventData");xe(this,"otelClient");xe(this,"traceApi");xe(this,"updateCloudEventData",e=>{var r;(r=this.config)!=null&&r.disabled||(this.useCloudEventData=e)});this.useCloudEventData=()=>({organization:{id:"",slug:""},project:{id:"",slug:""},productType:"",sourceDetails:{user:"Anonymous",object:"user",uri:""},request:{source:""}}),this.otelClient=new Pwe,this.traceApi={startStep:(e,r)=>{const n=this.constructCloudEvent(e,r);return this.otelClient.startTrace(n)},startRoot:(e,r)=>{const n=this.constructCloudEvent(e,r);return this.otelClient.startRootTrace(n)}}}send(e,r){var n,i;try{if(!((n=this.config)!=null&&n.otel.isProd))return;const o=this.constructCloudEvent(e,r);this.sendToOtelService(o)}catch(o){(i=this.config)!=null&&i.otel.isProd||console.error("Event reporting failed:",o)}}init(e){e.disabled||this.initialized||(this.config=e,this.initialized=!0,this.otelClient.init({serviceVersion:e.otel.serviceVersion,version:e.otel.version,isProd:e.otel.isProd,collectorUrl:e.otel.collectorUrl,collectorTraceUrl:e.otel.collectorTraceUrl,serviceName:e.otel.serviceName,tracerName:e.otel.tracerName,instrumentations:[...e.otel.instrumentations||[]]}))}startSpan(e,r,n){var o;if((o=this.config)!=null&&o.disabled)return;const i=this.constructCloudEvent(e,r);return this.otelClient.startSpan(i,n)}startStepSpan(e,r){const n=this.constructCloudEvent(e,r);return this.otelClient.startStepSpan(n)}constructCloudEvent(e,r){const n=this.useCloudEventData();return{id:`evt_${XO()}`,type:e,source:n.request.source||"",specversion:"1.0",datacontenttype:"application/json",time:new Date().toISOString(),data:r,origin:"ui",sourceDetails:{id:n.sourceDetails.user||`usr_${XO()}`,object:n.sourceDetails.object||"user",uri:n.sourceDetails.uri||""},organization:n.organization,project:n.project,productType:n.productType}}sendToOtelService(e){var r;(r=this.config)!=null&&r.otel.isProd||console.log("CloudEvent to be sent to OTEL service:",e),this.otelClient.send(e)}forceFlush(){var e;return(e=this.config)!=null&&e.disabled?Promise.resolve():this.otelClient.forceFlush()}sendTabChangeMessage(e){this.send("tab.change",e)}sendButtonClickMessage(e){this.send("button.click",e)}sendChangeMessage(e){this.send("change",e)}sendContentCopyMessage(e){this.send("content.copy",e)}sendUrlClickMessage(e){this.send("url.click",e)}sendRequestSendMessage(e){this.send("request.send",e)}sendTokenGenerateMessage(e){this.send("token.generate",e)}sendAppLifecycleMessage(e){this.send("app.lifecycle",e)}sendEnvironmentManagementMessage(e){this.send("environment.management",e)}sendServerManagementMessage(e){this.send("server.management",e)}sendInputManagementMessage(e){this.send("input.management",e)}sendNodeManagementMessage(e){this.send("node.management",e)}sendHistoryManagementMessage(e){this.send("history.management",e)}sendCredentialManagementMessage(e){this.send("credential.management",e)}sendPanelToggleMessage(e){this.send("panel.toggle",e)}sendWorkflowRunClickMessage(e){this.send("workflow.run.click",e)}sendWorkflowRunResultMessage(e){this.send("workflow.run.result",e)}}function $we(){return{theme:"light",disableCollectionsTab:!1,oAuth2RedirectURI:null,corsProxyUrl:void 0,mockServer:void 0,certificates:[],isApiBased:!1,generatedEnvironments:[],generatedInputs:[]}}const Ewe=$we(),Awe=N.createContext(Ewe);function gs(){const t=N.useContext(Awe);return V5(t)}function Iwe(t,e){const{apps:{apiId:r}}=Et(),{corsProxyUrl:n,disableCollectionsTab:i,mockServer:o,oAuth2RedirectURI:s,certificates:a,storageKey:l,isApiBased:c}=gs();n.set((t==null?void 0:t.corsProxyUrl)??Yre),o.set(t==null?void 0:t.mockServer),r.set(t==null?void 0:t.apiId),s.set(t==null?void 0:t.oAuth2RedirectURI),i.set(!!(t!=null&&t.disableCollectionsTab)),l.set(t==null?void 0:t.storageKey),c.set(!!e),N.useEffect(()=>{a.set((t==null?void 0:t.certificates)||[])},[t==null?void 0:t.certificates])}const Bx=N.createContext({});function RI(){return N.useContext(Bx)||{}}const Twe="0.17.0-next.9",_we={version:Twe};class Rwe{constructor(){xe(this,"client");xe(this,"_isInitialized",!1);this.client=new kwe}get isInitialized(){return this._isInitialized}init(e){if(this.isInitialized)return;const n={serviceName:"replay",serviceVersion:_we.version,version:"1.0.0",tracerName:(e==null?void 0:e.tracerName)||"desktop",collectorUrl:(e==null?void 0:e.collectorUrl)||"",isProd:!0};this.client.init({otel:{...n,...e}}),this._isInitialized=!0}sendEvent(e,r){if(!this.isInitialized){console.warn("Telemetry client not initialized. Call init() first.");return}try{this.client.send(e,r)}catch(n){console.error("Failed to send telemetry event:",n)}}}const k1=new Rwe;function bt(){const{telemetry:t}=RI();return k1.isInitialized||k1.init({tracerName:t==null?void 0:t.tracerName,collectorUrl:t==null?void 0:t.collectorUrl}),{sendEvent:(e,r)=>{k1.sendEvent(e,r)}}}const Mn=800;var jwe=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function Dwe(t){var e=t.defaultInputValue,r=e===void 0?"":e,n=t.defaultMenuIsOpen,i=n===void 0?!1:n,o=t.defaultValue,s=o===void 0?null:o,a=t.inputValue,l=t.menuIsOpen,c=t.onChange,u=t.onInputChange,d=t.onMenuClose,f=t.onMenuOpen,h=t.value,g=Ci(t,jwe),p=N.useState(a!==void 0?a:r),y=it(p,2),v=y[0],b=y[1],O=N.useState(l!==void 0?l:i),S=it(O,2),x=S[0],w=S[1],P=N.useState(h!==void 0?h:s),I=it(P,2),E=I[0],M=I[1],V=N.useCallback(function(ie,he){typeof c=="function"&&c(ie,he),M(ie)},[c]),U=N.useCallback(function(ie,he){var L;typeof u=="function"&&(L=u(ie,he)),b(L!==void 0?L:ie)},[u]),X=N.useCallback(function(){typeof f=="function"&&f(),w(!0)},[f]),J=N.useCallback(function(){typeof d=="function"&&d(),w(!1)},[d]),te=a!==void 0?a:v,oe=l!==void 0?l:x,ae=h!==void 0?h:E;return $e($e({},g),{},{inputValue:te,menuIsOpen:oe,onChange:V,onInputChange:U,onMenuClose:J,onMenuOpen:X,value:ae})}function Mwe(t){if(t.sheet)return t.sheet;for(var e=0;e<document.styleSheets.length;e++)if(document.styleSheets[e].ownerNode===t)return document.styleSheets[e]}function Nwe(t){var e=document.createElement("style");return e.setAttribute("data-emotion",t.key),t.nonce!==void 0&&e.setAttribute("nonce",t.nonce),e.appendChild(document.createTextNode("")),e.setAttribute("data-s",""),e}var Lwe=(function(){function t(r){var n=this;this._insertTag=function(i){var o;n.tags.length===0?n.insertionPoint?o=n.insertionPoint.nextSibling:n.prepend?o=n.container.firstChild:o=n.before:o=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(i,o),n.tags.push(i)},this.isSpeedy=r.speedy===void 0?process.env.NODE_ENV==="production":r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var e=t.prototype;return e.hydrate=function(n){n.forEach(this._insertTag)},e.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Nwe(this));var i=this.tags[this.tags.length-1];if(process.env.NODE_ENV!=="production"){var o=n.charCodeAt(0)===64&&n.charCodeAt(1)===105;o&&this._alreadyInsertedOrderInsensitiveRule&&console.error(`You're attempting to insert the following rule:
|
|
348
348
|
`+n+"\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."),this._alreadyInsertedOrderInsensitiveRule=this._alreadyInsertedOrderInsensitiveRule||!o}if(this.isSpeedy){var s=Mwe(i);try{s.insertRule(n,s.cssRules.length)}catch(a){process.env.NODE_ENV!=="production"&&!/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(n)&&console.error('There was a problem inserting the following rule: "'+n+'"',a)}}else i.appendChild(document.createTextNode(n));this.ctr++},e.flush=function(){this.tags.forEach(function(n){return n.parentNode&&n.parentNode.removeChild(n)}),this.tags=[],this.ctr=0,process.env.NODE_ENV!=="production"&&(this._alreadyInsertedOrderInsensitiveRule=!1)},t})(),un="-ms-",KO="-moz-",Rt="-webkit-",jI="comm",DI="rule",MI="decl",Qwe="@import",mG="@keyframes",Vwe=Math.abs,qx=String.fromCharCode,zwe=Object.assign;function Bwe(t,e){return tn(t,0)^45?(((e<<2^tn(t,0))<<2^tn(t,1))<<2^tn(t,2))<<2^tn(t,3):0}function yG(t){return t.trim()}function qwe(t,e){return(t=e.exec(t))?t[0]:t}function zt(t,e,r){return t.replace(e,r)}function X$(t,e){return t.indexOf(e)}function tn(t,e){return t.charCodeAt(e)|0}function Sp(t,e,r){return t.slice(e,r)}function Fo(t){return t.length}function NI(t){return t.length}function $m(t,e){return e.push(t),t}function Fwe(t,e){return t.map(e).join("")}var Fx=1,Od=1,vG=0,ni=0,Ar=0,Vd="";function Wx(t,e,r,n,i,o,s){return{value:t,root:e,parent:r,type:n,props:i,children:o,line:Fx,column:Od,length:s,return:""}}function wf(t,e){return zwe(Wx("",null,null,"",null,null,0),t,{length:-t.length},e)}function Wwe(){return Ar}function Uwe(){return Ar=ni>0?tn(Vd,--ni):0,Od--,Ar===10&&(Od=1,Fx--),Ar}function wi(){return Ar=ni<vG?tn(Vd,ni++):0,Od++,Ar===10&&(Od=1,Fx++),Ar}function os(){return tn(Vd,ni)}function hb(){return ni}function Hp(t,e){return Sp(Vd,t,e)}function wp(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function bG(t){return Fx=Od=1,vG=Fo(Vd=t),ni=0,[]}function OG(t){return Vd="",t}function pb(t){return yG(Hp(ni-1,Z$(t===91?t+2:t===40?t+1:t)))}function Xwe(t){for(;(Ar=os())&&Ar<33;)wi();return wp(t)>2||wp(Ar)>3?"":" "}function Zwe(t,e){for(;--e&&wi()&&!(Ar<48||Ar>102||Ar>57&&Ar<65||Ar>70&&Ar<97););return Hp(t,hb()+(e<6&&os()==32&&wi()==32))}function Z$(t){for(;wi();)switch(Ar){case t:return ni;case 34:case 39:t!==34&&t!==39&&Z$(Ar);break;case 40:t===41&&Z$(t);break;case 92:wi();break}return ni}function Gwe(t,e){for(;wi()&&t+Ar!==57;)if(t+Ar===84&&os()===47)break;return"/*"+Hp(e,ni-1)+"*"+qx(t===47?t:wi())}function Ywe(t){for(;!wp(os());)wi();return Hp(t,ni)}function Hwe(t){return OG(gb("",null,null,null,[""],t=bG(t),0,[0],t))}function gb(t,e,r,n,i,o,s,a,l){for(var c=0,u=0,d=s,f=0,h=0,g=0,p=1,y=1,v=1,b=0,O="",S=i,x=o,w=n,P=O;y;)switch(g=b,b=wi()){case 40:if(g!=108&&tn(P,d-1)==58){X$(P+=zt(pb(b),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:P+=pb(b);break;case 9:case 10:case 13:case 32:P+=Xwe(g);break;case 92:P+=Zwe(hb()-1,7);continue;case 47:switch(os()){case 42:case 47:$m(Jwe(Gwe(wi(),hb()),e,r),l);break;default:P+="/"}break;case 123*p:a[c++]=Fo(P)*v;case 125*p:case 59:case 0:switch(b){case 0:case 125:y=0;case 59+u:h>0&&Fo(P)-d&&$m(h>32?WN(P+";",n,r,d-1):WN(zt(P," ","")+";",n,r,d-2),l);break;case 59:P+=";";default:if($m(w=FN(P,e,r,c,u,i,a,O,S=[],x=[],d),o),b===123)if(u===0)gb(P,e,w,w,S,o,d,a,x);else switch(f===99&&tn(P,3)===110?100:f){case 100:case 109:case 115:gb(t,w,w,n&&$m(FN(t,w,w,0,0,i,a,O,i,S=[],d),x),i,x,d,a,n?S:x);break;default:gb(P,w,w,w,[""],x,0,a,x)}}c=u=h=0,p=v=1,O=P="",d=s;break;case 58:d=1+Fo(P),h=g;default:if(p<1){if(b==123)--p;else if(b==125&&p++==0&&Uwe()==125)continue}switch(P+=qx(b),b*p){case 38:v=u>0?1:(P+="\f",-1);break;case 44:a[c++]=(Fo(P)-1)*v,v=1;break;case 64:os()===45&&(P+=pb(wi())),f=os(),u=d=Fo(O=P+=Ywe(hb())),b++;break;case 45:g===45&&Fo(P)==2&&(p=0)}}return o}function FN(t,e,r,n,i,o,s,a,l,c,u){for(var d=i-1,f=i===0?o:[""],h=NI(f),g=0,p=0,y=0;g<n;++g)for(var v=0,b=Sp(t,d+1,d=Vwe(p=s[g])),O=t;v<h;++v)(O=yG(p>0?f[v]+" "+b:zt(b,/&\f/g,f[v])))&&(l[y++]=O);return Wx(t,e,r,i===0?DI:a,l,c,u)}function Jwe(t,e,r){return Wx(t,e,r,jI,qx(Wwe()),Sp(t,2,-2),0)}function WN(t,e,r,n){return Wx(t,e,r,MI,Sp(t,0,n),Sp(t,n+1,-1),n)}function Qu(t,e){for(var r="",n=NI(t),i=0;i<n;i++)r+=e(t[i],i,t,e)||"";return r}function Kwe(t,e,r,n){switch(t.type){case Qwe:case MI:return t.return=t.return||t.value;case jI:return"";case mG:return t.return=t.value+"{"+Qu(t.children,n)+"}";case DI:t.value=t.props.join(",")}return Fo(r=Qu(t.children,n))?t.return=t.value+"{"+r+"}":""}function e1e(t){var e=NI(t);return function(r,n,i,o){for(var s="",a=0;a<e;a++)s+=t[a](r,n,i,o)||"";return s}}function t1e(t){return function(e){e.root||(e=e.return)&&t(e)}}function r1e(t){var e=Object.create(null);return function(r){return e[r]===void 0&&(e[r]=t(r)),e[r]}}var n1e=function(e,r,n){for(var i=0,o=0;i=o,o=os(),i===38&&o===12&&(r[n]=1),!wp(o);)wi();return Hp(e,ni)},i1e=function(e,r){var n=-1,i=44;do switch(wp(i)){case 0:i===38&&os()===12&&(r[n]=1),e[n]+=n1e(ni-1,r,n);break;case 2:e[n]+=pb(i);break;case 4:if(i===44){e[++n]=os()===58?"&\f":"",r[n]=e[n].length;break}default:e[n]+=qx(i)}while(i=wi());return e},o1e=function(e,r){return OG(i1e(bG(e),r))},UN=new WeakMap,s1e=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var r=e.value,n=e.parent,i=e.column===n.column&&e.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(e.props.length===1&&r.charCodeAt(0)!==58&&!UN.get(n))&&!i){UN.set(e,!0);for(var o=[],s=o1e(r,o),a=n.props,l=0,c=0;l<s.length;l++)for(var u=0;u<a.length;u++,c++)e.props[c]=o[l]?s[l].replace(/&\f/g,a[u]):a[u]+" "+s[l]}}},a1e=function(e){if(e.type==="decl"){var r=e.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(e.return="",e.value="")}},l1e="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",c1e=function(e){return e.type==="comm"&&e.children.indexOf(l1e)>-1},u1e=function(e){return function(r,n,i){if(!(r.type!=="rule"||e.compat)){var o=r.value.match(/(:first|:nth|:nth-last)-child/g);if(o){for(var s=r.parent===i[0],a=s?i[0].children:i,l=a.length-1;l>=0;l--){var c=a[l];if(c.line<r.line)break;if(c.column<r.column){if(c1e(c))return;break}}o.forEach(function(u){console.error('The pseudo class "'+u+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+u.split("-child")[0]+'-of-type".')})}}}},xG=function(e){return e.type.charCodeAt(1)===105&&e.type.charCodeAt(0)===64},d1e=function(e,r){for(var n=e-1;n>=0;n--)if(!xG(r[n]))return!0;return!1},XN=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},f1e=function(e,r,n){xG(e)&&(e.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),XN(e)):d1e(r,n)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),XN(e)))};function SG(t,e){switch(Bwe(t,e)){case 5103:return Rt+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Rt+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return Rt+t+KO+t+un+t+t;case 6828:case 4268:return Rt+t+un+t+t;case 6165:return Rt+t+un+"flex-"+t+t;case 5187:return Rt+t+zt(t,/(\w+).+(:[^]+)/,Rt+"box-$1$2"+un+"flex-$1$2")+t;case 5443:return Rt+t+un+"flex-item-"+zt(t,/flex-|-self/,"")+t;case 4675:return Rt+t+un+"flex-line-pack"+zt(t,/align-content|flex-|-self/,"")+t;case 5548:return Rt+t+un+zt(t,"shrink","negative")+t;case 5292:return Rt+t+un+zt(t,"basis","preferred-size")+t;case 6060:return Rt+"box-"+zt(t,"-grow","")+Rt+t+un+zt(t,"grow","positive")+t;case 4554:return Rt+zt(t,/([^-])(transform)/g,"$1"+Rt+"$2")+t;case 6187:return zt(zt(zt(t,/(zoom-|grab)/,Rt+"$1"),/(image-set)/,Rt+"$1"),t,"")+t;case 5495:case 3959:return zt(t,/(image-set\([^]*)/,Rt+"$1$`$1");case 4968:return zt(zt(t,/(.+:)(flex-)?(.*)/,Rt+"box-pack:$3"+un+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Rt+t+t;case 4095:case 3583:case 4068:case 2532:return zt(t,/(.+)-inline(.+)/,Rt+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Fo(t)-1-e>6)switch(tn(t,e+1)){case 109:if(tn(t,e+4)!==45)break;case 102:return zt(t,/(.+:)(.+)-([^]+)/,"$1"+Rt+"$2-$3$1"+KO+(tn(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~X$(t,"stretch")?SG(zt(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(tn(t,e+1)!==115)break;case 6444:switch(tn(t,Fo(t)-3-(~X$(t,"!important")&&10))){case 107:return zt(t,":",":"+Rt)+t;case 101:return zt(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Rt+(tn(t,14)===45?"inline-":"")+"box$3$1"+Rt+"$2$3$1"+un+"$2box$3")+t}break;case 5936:switch(tn(t,e+11)){case 114:return Rt+t+un+zt(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return Rt+t+un+zt(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return Rt+t+un+zt(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return Rt+t+un+t+t}return t}var h1e=function(e,r,n,i){if(e.length>-1&&!e.return)switch(e.type){case MI:e.return=SG(e.value,e.length);break;case mG:return Qu([wf(e,{value:zt(e.value,"@","@"+Rt)})],i);case DI:if(e.length)return Fwe(e.props,function(o){switch(qwe(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Qu([wf(e,{props:[zt(o,/:(read-\w+)/,":"+KO+"$1")]})],i);case"::placeholder":return Qu([wf(e,{props:[zt(o,/:(plac\w+)/,":"+Rt+"input-$1")]}),wf(e,{props:[zt(o,/:(plac\w+)/,":"+KO+"$1")]}),wf(e,{props:[zt(o,/:(plac\w+)/,un+"input-$1")]})],i)}return""})}},p1e=[h1e],g1e=function(e){var r=e.key;if(process.env.NODE_ENV!=="production"&&!r)throw new Error(`You have to configure \`key\` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.
|
|
349
349
|
If multiple caches share the same key they might "fight" for each other's style elements.`);if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(p){var y=p.getAttribute("data-emotion");y.indexOf(" ")!==-1&&(document.head.appendChild(p),p.setAttribute("data-s",""))})}var i=e.stylisPlugins||p1e;if(process.env.NODE_ENV!=="production"&&/[^a-z-]/.test(r))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+r+'" was passed');var o={},s,a=[];s=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(p){for(var y=p.getAttribute("data-emotion").split(" "),v=1;v<y.length;v++)o[y[v]]=!0;a.push(p)});var l,c=[s1e,a1e];process.env.NODE_ENV!=="production"&&c.push(u1e({get compat(){return g.compat}}),f1e);{var u,d=[Kwe,process.env.NODE_ENV!=="production"?function(p){p.root||(p.return?u.insert(p.return):p.value&&p.type!==jI&&u.insert(p.value+"{}"))}:t1e(function(p){u.insert(p)})],f=e1e(c.concat(i,d)),h=function(y){return Qu(Hwe(y),f)};l=function(y,v,b,O){u=b,process.env.NODE_ENV!=="production"&&v.map!==void 0&&(u={insert:function(x){b.insert(x+v.map)}}),h(y?y+"{"+v.styles+"}":v.styles),O&&(g.inserted[v.name]=!0)}}var g={key:r,sheet:new Lwe({key:r,container:s,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:o,registered:{},insert:l};return g.sheet.hydrate(a),g},m1e=!0;function wG(t,e,r){var n="";return r.split(" ").forEach(function(i){t[i]!==void 0?e.push(t[i]+";"):n+=i+" "}),n}var LI=function(e,r,n){var i=e.key+"-"+r.name;(n===!1||m1e===!1)&&e.registered[i]===void 0&&(e.registered[i]=r.styles)},QI=function(e,r,n){LI(e,r,n);var i=e.key+"-"+r.name;if(e.inserted[r.name]===void 0){var o=r;do e.insert(r===o?"."+i:"",o,e.sheet,!0),o=o.next;while(o!==void 0)}};function y1e(t){for(var e=0,r,n=0,i=t.length;i>=4;++n,i-=4)r=t.charCodeAt(n)&255|(t.charCodeAt(++n)&255)<<8|(t.charCodeAt(++n)&255)<<16|(t.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,e=(r&65535)*1540483477+((r>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(i){case 3:e^=(t.charCodeAt(n+2)&255)<<16;case 2:e^=(t.charCodeAt(n+1)&255)<<8;case 1:e^=t.charCodeAt(n)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var v1e={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},ZN=`You have illegal escape sequence in your template literal, most likely inside content's property value.
|
|
350
350
|
Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';".
|
|
@@ -510,7 +510,7 @@ You should wrap it with \`css\` like this:
|
|
|
510
510
|
color: var(--loading-spinner-color);
|
|
511
511
|
`,oY=R(q.Admonition)`
|
|
512
512
|
margin: 0;
|
|
513
|
-
`;var j1,CL;function Ike(){return CL||(CL=1,j1=function(){var t=document.getSelection();if(!t.rangeCount)return function(){};for(var e=document.activeElement,r=[],n=0;n<t.rangeCount;n++)r.push(t.getRangeAt(n));switch(e.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":e.blur();break;default:e=null;break}return t.removeAllRanges(),function(){t.type==="Caret"&&t.removeAllRanges(),t.rangeCount||r.forEach(function(i){t.addRange(i)}),e&&e.focus()}}),j1}var D1,PL;function Tke(){if(PL)return D1;PL=1;var t=Ike(),e={"text/plain":"Text","text/html":"Url",default:"Text"},r="Copy to clipboard: #{key}, Enter";function n(o){var s=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return o.replace(/#{\s*key\s*}/g,s)}function i(o,s){var a,l,c,u,d,f,h=!1;s||(s={}),a=s.debug||!1;try{c=t(),u=document.createRange(),d=document.getSelection(),f=document.createElement("span"),f.textContent=o,f.ariaHidden="true",f.style.all="unset",f.style.position="fixed",f.style.top=0,f.style.clip="rect(0, 0, 0, 0)",f.style.whiteSpace="pre",f.style.webkitUserSelect="text",f.style.MozUserSelect="text",f.style.msUserSelect="text",f.style.userSelect="text",f.addEventListener("copy",function(p){if(p.stopPropagation(),s.format)if(p.preventDefault(),typeof p.clipboardData>"u"){a&&console.warn("unable to use e.clipboardData"),a&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var y=e[s.format]||e.default;window.clipboardData.setData(y,o)}else p.clipboardData.clearData(),p.clipboardData.setData(s.format,o);s.onCopy&&(p.preventDefault(),s.onCopy(p.clipboardData))}),document.body.appendChild(f),u.selectNodeContents(f),d.addRange(u);var g=document.execCommand("copy");if(!g)throw new Error("copy command was unsuccessful");h=!0}catch(p){a&&console.error("unable to copy using execCommand: ",p),a&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(s.format||"text",o),s.onCopy&&s.onCopy(window.clipboardData),h=!0}catch(y){a&&console.error("unable to copy using clipboardData: ",y),a&&console.error("falling back to prompt"),l=n("message"in s?s.message:r),window.prompt(l,o)}}finally{d&&(typeof d.removeRange=="function"?d.removeRange(u):d.removeAllRanges()),f&&document.body.removeChild(f),c()}return h}return D1=i,D1}var _ke=Tke();const Rke=ii(_ke);class sY{static copyCustom(e){return Rke(e)}static selectElement(e){if(!e)return;let r,n;document.body.createTextRange?(r=document.body.createTextRange(),r.moveToElementText(e),r.select()):document.createRange&&window.getSelection&&(n=window.getSelection(),r=document.createRange(),r.selectNodeContents(e),n==null||n.removeAllRanges(),n==null||n.addRange(r))}}const JI=(t,e="currentColor")=>t!=null&&t.startsWith("--")?`var(${t})`:t||e,aY={hide:{type:"boolean",default:!1},component:{type:"string",enum:["radio","checkbox"],default:"checkbox"},label:{type:"string"},items:{type:"array",items:{type:"string"}}},Pf={type:"object",properties:aY,additionalProperties:!1},jke={type:"object",properties:{hide:{type:"boolean",default:!1},label:{type:"string"},placeholder:{type:"string"}},additionalProperties:!1},Zx={type:"object",properties:{hide:{type:"boolean",default:!1},type:{type:"string",enum:["rating","sentiment","comment","reasons","mood","scale"],default:"sentiment"},settings:{type:"object",properties:{label:{type:"string"},submitText:{type:"string"},buttonText:{type:"string"},component:{type:"string",enum:["radio","checkbox"],default:"checkbox"},items:{type:"array",items:{type:"string"},minItems:1},leftScaleLabel:{type:"string"},rightScaleLabel:{type:"string"},reasons:{type:"object",properties:Object.assign(Object.assign({},aY),{like:Pf,dislike:Pf,satisfied:Pf,neutral:Pf,dissatisfied:Pf}),additionalProperties:!1},comment:{type:"object",properties:{hide:{type:"boolean",default:!1},label:{type:"string"},likeLabel:{type:"string"},dislikeLabel:{type:"string"},satisfiedLabel:{type:"string"},neutralLabel:{type:"string"},dissatisfiedLabel:{type:"string"}},additionalProperties:!1},optionalEmail:jke},additionalProperties:!1}},additionalProperties:!1},Dke={type:"object",properties:{languages:{type:"array",items:{type:"object",properties:{lang:{type:"string",examples:["curl","JavaScript","Node.js","Python","Java8+Apache","Java","C#","C#+Newtonsoft","PHP","Go","Ruby","R","Payload"]},label:{type:"string"},options:{type:"object",properties:{indent:{type:"string"},withImports:{type:"boolean"},withComments:{type:"boolean"},binary:{type:"boolean"},credentials:{type:"string",enum:["omit","same-origin","include"]}},additionalProperties:!1}},required:["lang"],additionalProperties:!1}},skipOptionalParameters:{type:"boolean"},withOAuth2Call:{type:"boolean"}},additionalProperties:!1},lY={type:"array",items:{type:"object",properties:{title:{type:"string"},url:{type:"string"}},required:["url"],additionalProperties:!1}},kL={type:"object",properties:{licenseKey:{type:"string"},hideLoading:{type:"boolean"},disableRouter:{type:"boolean"},hideSidebar:{type:"boolean"},feedback:Zx,hideReplay:{type:"boolean"},oAuth2RedirectURI:{type:"string",nullable:!0},corsProxyUrl:{type:"string"},sortRequiredPropsFirst:{type:"boolean"},sanitize:{type:"boolean"},hideDownloadButtons:{type:"boolean"},downloadUrls:lY,onlyRequiredInSamples:{type:"boolean"},generatedSamplesMaxDepth:{oneOf:[{type:"number"},{type:"string"}]},showExtensions:{oneOf:[{type:"boolean"},{type:"string"},{type:"array",items:{type:"string"}}]},hideSchemaTitles:{type:"boolean"},jsonSamplesExpandLevel:{oneOf:[{type:"number"},{type:"string"}]},schemasExpansionLevel:{oneOf:[{type:"number"},{type:"string"}]},mockServer:{type:"object",properties:{url:{type:"string"},position:{type:"string",enum:["first","last","replace","off"]},description:{type:"string"}}},maxDisplayedEnumValues:{type:"number"},schemaDefinitionsTagName:{type:"string"},layout:{type:"string",enum:["stacked","three-panel"]},hideInfoMetadata:{type:"boolean"},events:{type:"object"},skipBundle:{type:"boolean"},routingBasePath:{type:"string"},codeSamples:Dke,ignoreNamedSchemas:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},hidePropertiesPrefix:{type:"boolean"},excludeFromSearch:{type:"boolean"},showSchemaCatalogLinks:{type:"boolean"}},additionalProperties:!1},Wc={type:"object",properties:{includeByName:{type:"array",items:{type:"string"}},excludeByName:{type:"array",items:{type:"string"}}},additionalProperties:!1},Mke={type:"object",properties:{name:{type:"string"},items:Wc,queries:Wc,mutations:Wc,subscriptions:Wc,types:Wc,directives:Wc},required:["name"],additionalProperties:!1},Nke={properties:{requireExactGroups:{type:"boolean"},groups:{type:"array",items:Mke},otherItemsGroupName:{type:"string"}}},a0={type:"object",properties:{menu:{type:"object",properties:Object.assign({},Nke.properties),additionalProperties:!1},sidebar:{type:"object",properties:{hide:{type:"boolean"}}},downloadUrls:lY,apiLogo:{type:"object",properties:{imageUrl:{type:"string"},href:{type:"string"},altText:{type:"string"},backgroundColor:{type:"string"}}},jsonSamplesDepth:{type:"number"},samplesMaxInlineArgs:{type:"number"},licenseKey:{type:"string"},fieldExpandLevel:{type:"number"},baseUrlPath:{type:"string"},metadata:{type:"object",properties:{apiId:{type:"string"}},additionalProperties:!0},feedback:Zx,layout:{type:"string",enum:["stacked","three-panel"]},showBuiltInScalars:{type:"boolean"},showBuiltInDirectives:{type:"boolean"}},additionalProperties:!1},Lke={type:"object",properties:{label:{type:"string"},lang:{enum:["curl","C#","Go","Java","Java8+Apache","JavaScript","Node.js","PHP","Python","R","Ruby"]}},required:["lang"]},Qke={type:"object",properties:{enum:{type:"string"},enumSingleValue:{type:"string"},enumArray:{type:"string"},default:{type:"string"},deprecated:{type:"string"},example:{type:"string"},examples:{type:"string"},nullable:{type:"string"},recursive:{type:"string"},arrayOf:{type:"string"},webhook:{type:"string"},authorizations:{type:"string"},tryItAuthBasicUsername:{type:"string"},tryItAuthBasicPassword:{type:"string"}}},$L={type:"object",properties:{label:{type:"string"},link:{type:"string"},target:{type:"string"}},required:["label","link"]},Vke={type:"object",properties:{beforeInfo:{type:"array",items:$L},end:{type:"array",items:$L}}},Dl={type:"object",properties:{main:{type:"string"},light:{type:"string"},dark:{type:"string"},contrastText:{type:"string"}}},_m={type:"object",properties:{backgroundColor:{type:"string"},borderColor:{type:"string"},color:{type:"string"},tabTextColor:{type:"string"}}},zke={type:"object",properties:Gx(Dl.properties,["light","dark"])},Bke={type:"object",properties:{basic:{type:"string"},delete:{type:"string"},get:{type:"string"},head:{type:"string"},link:{type:"string"},options:{type:"string"},patch:{type:"string"},post:{type:"string"},put:{type:"string"}}},qke={type:"object",properties:{error:_m,info:_m,redirect:_m,success:_m}},Fke={type:"object",properties:zd(Dl.properties,["dark"])},Wke={type:"object",properties:{primary:{type:"string"},secondary:{type:"string"},light:{type:"string"}}},Uke={type:"object",properties:{accent:Dl,border:zke,error:Dl,http:Bke,primary:Dl,responses:qke,secondary:Fke,success:Dl,text:Wke,tonalOffset:{type:"number"},warning:Dl}},Rm={type:"object",properties:{fontSize:{type:"string"},padding:{type:"string"},minWidth:{type:"string"}}},Xke={type:"object",properties:{small:Rm,medium:Rm,large:Rm,xlarge:Rm}},us={type:"object",properties:{fontFamily:{type:"string"},fontSize:{type:"string"},fontWeight:{type:"string"},lineHeight:{type:"string"}}},Zke={type:"object",properties:Object.assign(Object.assign({},zd(us.properties,["fontSize","lineHeight"])),{borderRadius:{type:"string"},hoverStyle:{type:"string"},boxShadow:{type:"string"},hoverBoxShadow:{type:"string"},sizes:Xke})},EL={type:"object",properties:Gx(us.properties,["fontSize","lineHeight"])},Gke={type:"object",properties:{medium:EL,small:EL}},Yke={type:"object",properties:Object.assign(Object.assign({},zd(us.properties,["fontSize","lineHeight"])),{borderRadius:{type:"string"},color:{type:"string"},sizes:Gke})},Hke={type:"object",properties:{top:{type:"string"},width:{type:"string"},height:{type:"string"}}},Jke={type:"object",properties:{borderRadius:{type:"string"},backgroundColor:{type:"string"}}},AL={type:"object",properties:{fullWidth:{type:"boolean"}}},Kke={type:"object",properties:{buttons:Zke,httpBadges:Yke,layoutControls:Hke,panels:Jke,tryItButton:AL,tryItSendButton:AL}},l0={type:"object",properties:{small:{type:"string"},medium:{type:"string"},large:{type:"string"}}},e$e={type:"object",properties:{maxWidth:l0}},t$e={type:"object",properties:{maxWidth:l0,middlePanelMaxWidth:l0}},r$e={type:"object",properties:{showDarkRightPanel:{type:"boolean"},stacked:e$e,"three-panel":t$e}},IL={type:"object",properties:{backgroundColor:{type:"string"},border:{type:"string"}}},n$e={type:"object",properties:{breakFieldNames:{type:"boolean"},caretColor:{type:"string"},caretSize:{type:"string"},constraints:IL,defaultDetailsWidth:{type:"string"},examples:IL,labelsTextSize:{type:"string"},linesColor:{type:"string"},nestedBackground:{type:"string"},nestingSpacing:{type:"string"},requireLabelColor:{type:"string"},typeNameColor:{type:"string"},typeTitleColor:{type:"string"}}},cY={type:"object",properties:{subItemsColor:{type:"string"},textTransform:{type:"string"},fontWeight:{type:"string"}}},i$e={type:"object",properties:Gx(cY.properties,["textTransform"])},o$e={type:"object",properties:{unit:{type:"number"},paddingHorizontal:{type:"string"},paddingVertical:{type:"string"},offsetTop:{type:"string"},offsetLeft:{type:"string"},offsetNesting:{type:"string"}}},s$e={type:"object",properties:Object.assign(Object.assign({},zd(us.properties,["fontWeight","lineHeight"])),{activeBgColor:{type:"string"},activeTextColor:{type:"string"},backgroundColor:{type:"string"},borderRadius:{type:"string"},breakPath:{type:"boolean"},caretColor:{type:"string"},caretSize:{type:"string"},groupItems:cY,level1items:i$e,rightLineColor:{type:"string"},separatorLabelColor:{type:"string"},showAtBreakpoint:{type:"string"},spacing:o$e,textColor:{type:"string"},width:{type:"string"}})},jm={type:"object",properties:Object.assign(Object.assign({},us.properties),{color:{type:"string"},transform:{type:"string"}})},a$e={type:"object",properties:Object.assign(Object.assign({},us.properties),{backgroundColor:{type:"string"},color:{type:"string"},wordBreak:{type:"string",enum:["break-all","break-word","keep-all","normal","revert","unset","inherit","initial"]},wrap:{type:"boolean"}})},l$e={type:"object",properties:zd(us.properties,["fontSize"])},c$e={type:"object",properties:{color:{type:"string"},hover:{type:"string"},textDecoration:{type:"string"},hoverTextDecoration:{type:"string"},visited:{type:"string"}}},u$e={type:"object",properties:Object.assign(Object.assign({code:a$e,fieldName:us},Gx(us.properties,["fontSize","fontFamily"])),{fontWeightBold:{type:"string"},fontWeightLight:{type:"string"},fontWeightRegular:{type:"string"},heading1:jm,heading2:jm,heading3:jm,headings:l$e,lineHeight:{type:"string"},links:c$e,optimizeSpeed:{type:"boolean"},rightPanelHeading:jm,smoothing:{type:"string",enum:["auto","none","antialiased","subpixel-antialiased","grayscale"]}})},d$e={type:"object",properties:Object.assign({color:{type:"string"}},zd(us.properties,["fontWeight"]))},f$e={type:"object",properties:{backgroundColor:{type:"string"},borderRadius:{type:"string"},tokens:d$e}},h$e={type:"object",properties:{gutter:{type:"string"},maxHeight:{type:"string"},maxWidth:{type:"string"}}},p$e={type:"object",properties:{backgroundColor:{type:"string"},color:{type:"string"}}},TL={type:"object",properties:{custom:{type:"string"}}},g$e={type:"object",properties:{DownloadButton:TL,NextSectionButton:TL}},m$e={type:"object",properties:{backgroundColor:{type:"string"},panelBackgroundColor:{type:"string"},panelControlsBackgroundColor:{type:"string"},showAtBreakpoint:{type:"string"},textColor:{type:"string"},width:{type:"string"}}},y$e={type:"object",properties:{borderRadius:{type:"string"}}},v$e={type:"object",properties:{sectionHorizontal:{type:"number"},sectionVertical:{type:"number"},unit:{type:"number"}}},b$e={type:"object",properties:{breakpoints:l0,codeBlock:f$e,colors:Uke,components:Kke,layout:r$e,logo:h$e,fab:p$e,overrides:g$e,rightPanel:m$e,schema:n$e,shape:y$e,sidebar:s$e,spacing:v$e,typography:u$e,links:{properties:{color:{type:"string"}}},codeSample:{properties:{backgroundColor:{type:"string"}}}}},O$e={type:"object",properties:{skipOptionalParameters:{type:"boolean"},languages:{type:"array",items:Lke}},required:["languages"]},x$e={properties:{theme:b$e,ctrlFHijack:{type:"boolean"},defaultSampleLanguage:{type:"string"},disableDeepLinks:{type:"boolean"},disableSearch:{type:"boolean"},disableSidebar:{type:"boolean"},downloadDefinitionUrl:{type:"string"},expandDefaultServerVariables:{type:"boolean"},enumSkipQuotes:{type:"boolean"},expandDefaultRequest:{type:"boolean"},expandDefaultResponse:{type:"boolean"},expandResponses:{type:"string"},expandSingleSchemaField:{type:"boolean"},generateCodeSamples:O$e,generatedPayloadSamplesMaxDepth:{type:"number"},hideDownloadButton:{type:"boolean"},hideHostname:{type:"boolean"},hideInfoSection:{type:"boolean"},hideLogo:{type:"boolean"},hideRequestPayloadSample:{type:"boolean"},hideRightPanel:{type:"boolean"},hideSchemaPattern:{type:"boolean"},hideSingleRequestSampleTab:{type:"boolean"},hideSecuritySection:{type:"boolean"},hideTryItPanel:{type:"boolean"},hideFab:{type:"boolean"},hideOneOfDescription:{type:"boolean"},htmlTemplate:{type:"string"},jsonSampleExpandLevel:{oneOf:[{type:"number",minimum:1},{type:"string"}]},labels:Qke,menuToggle:{type:"boolean"},nativeScrollbars:{type:"boolean"},noAutoAuth:{type:"boolean"},onDeepLinkClick:{type:"object"},pagination:{enum:["none","section","item"]},pathInMiddlePanel:{type:"boolean"},payloadSampleIdx:{type:"number",minimum:0},requiredPropsFirst:{type:"boolean"},routingStrategy:{type:"string"},samplesTabsMaxCount:{type:"number"},schemaExpansionLevel:{oneOf:[{type:"number",minimum:0},{type:"string"}]},minCharacterLengthToInitSearch:{type:"number",minimum:1},maxResponseHeadersToShowInTryIt:{type:"number",minimum:0},scrollYOffset:{oneOf:[{type:"number"},{type:"string"}]},searchAutoExpand:{type:"boolean"},searchFieldLevelBoost:{type:"number",minimum:0},searchMaxDepth:{type:"number",minimum:1},searchMode:{type:"string",enum:["default","path-only"]},searchOperationTitleBoost:{type:"number"},searchTagTitleBoost:{type:"number"},sendXUserAgentInTryIt:{type:"boolean"},showChangeLayoutButton:{type:"boolean"},showConsole:{type:"boolean"},showNextButton:{type:"boolean"},showRightPanelToggle:{type:"boolean"},showSecuritySchemeType:{type:"boolean"},showWebhookVerb:{type:"boolean"},showObjectSchemaExamples:{type:"boolean"},disableTryItRequestUrlEncoding:{type:"boolean"},sidebarLinks:Vke,sideNavStyle:{type:"string",enum:["summary-only","path-first","id-only","path-only"]},simpleOneOfTypeLabel:{type:"boolean"},sortEnumValuesAlphabetically:{type:"boolean"},sortOperationsAlphabetically:{type:"boolean"},sortPropsAlphabetically:{type:"boolean"},sortTagsAlphabetically:{type:"boolean"},suppressWarnings:{type:"boolean"},unstable_externalDescription:{type:"boolean"},unstable_ignoreMimeParameters:{type:"boolean"},untrustedDefinition:{type:"boolean"},showAccessMode:{type:"boolean"},preserveOriginalExtensionsName:{type:"boolean"},markdownHeadingsAnchorLevel:{type:"number"}}};function Gx(t,e){return Object.fromEntries(e.filter(r=>r in t).map(r=>[r,t[r]]))}function zd(t,e){return Object.fromEntries(Object.entries(t).filter(([r])=>!e.includes(r)))}const ga={type:"object",additionalProperties:{oneOf:[{type:"string"},{type:"object"}]}},KI={rules:ga,oas2Rules:ga,oas3_0Rules:ga,oas3_1Rules:ga,async2Rules:ga,async3Rules:ga,arazzo1Rules:ga,overlay1Rules:ga},eT={preprocessors:{type:"object",additionalProperties:!0},oas2Preprocessors:{type:"object",additionalProperties:!0},oas3_0Preprocessors:{type:"object",additionalProperties:!0},oas3_1Preprocessors:{type:"object",additionalProperties:!0},async2Preprocessors:{type:"object",additionalProperties:!0},async3Preprocessors:{type:"object",additionalProperties:!0},arazzo1Preprocessors:{type:"object",additionalProperties:!0},overlay1Preprocessors:{type:"object",additionalProperties:!0}},tT={decorators:{type:"object",additionalProperties:!0},oas2Decorators:{type:"object",additionalProperties:!0},oas3_0Decorators:{type:"object",additionalProperties:!0},oas3_1Decorators:{type:"object",additionalProperties:!0},async2Decorators:{type:"object",additionalProperties:!0},async3Decorators:{type:"object",additionalProperties:!0},arazzo1Decorators:{type:"object",additionalProperties:!0},overlay1Decorators:{type:"object",additionalProperties:!0}},Xr={type:"object",properties:{hide:{type:"boolean"}},additionalProperties:!1},_L={type:"object",properties:{src:{type:"string"},async:{type:"boolean"},crossorigin:{type:"string"},defer:{type:"boolean"},fetchpriority:{type:"string"},integrity:{type:"string"},module:{type:"boolean"},nomodule:{type:"boolean"},nonce:{type:"string"},referrerpolicy:{type:"string"},type:{type:"string"}},required:["src"],additionalProperties:!0},M1={type:"object",properties:{page:{type:"string"},directory:{type:"string"},disconnect:{type:"boolean",default:!1},group:{type:"string"},label:{type:"string"},href:{type:"string"},external:{type:"boolean"},labelTranslationKey:{type:"string"},groupTranslationKey:{type:"string"},icon:{oneOf:[{type:"string"},{type:"object",properties:{srcSet:{type:"string"}},required:["srcSet"]}]},separator:{type:"string"},separatorLine:{type:"boolean"},linePosition:{type:"string",enum:["top","bottom"],default:"top"},version:{type:"string"},menuStyle:{type:"string",enum:["drilldown"]},expanded:{type:"string",const:"always"},selectFirstItemOnExpand:{type:"boolean"},flatten:{type:"boolean"},linkedSidebars:{type:"array",items:{type:"string"}},items:{type:"array",items:{type:"object",additionalProperties:!0}},rbac:{type:"object",additionalProperties:{type:"string"}}}},rT={type:"array",items:Object.assign(Object.assign({},M1),{properties:Object.assign(Object.assign({},M1.properties),{items:{type:"array",items:M1}})})},S$e={type:"object",properties:{name:{type:"string"},icon:{type:"string"},folder:{type:"string"}},additionalProperties:!1,required:["name","folder"]},w$e={type:"object",properties:{hide:{type:"boolean",default:!1},suggestions:{default:[],type:"array",items:{type:"string"}},prompt:{type:"string"}},additionalProperties:!1},C$e={type:"array",items:{type:"object",required:["name","field","type"],properties:{name:{type:"string"},field:{type:"string"},type:{type:"string",enum:["multi-select","select","tags"]}},additionalProperties:!1}},P$e={type:"object",properties:Object.assign({facets:C$e},Xr.properties),additionalProperties:!1},k$e={type:"object",properties:{page:{type:"string"},label:{type:"string"},labelTranslationKey:{type:"string"}},required:["page"]},uY={type:"object",properties:{image:{type:"string"},srcSet:{type:"string"},altText:{type:"string"},link:{type:"string"},favicon:{type:"string"}},additionalProperties:!1},dY={type:"object",properties:Object.assign({items:rT},Xr.properties),additionalProperties:!1},fY={type:"object",additionalProperties:S$e},hY={type:"object",properties:Object.assign({items:rT,copyrightText:{type:"string"},logo:Xr},Xr.properties),additionalProperties:!1},pY={type:"object",properties:Object.assign({separatorLine:{type:"boolean"},linePosition:{type:"string",enum:["top","bottom"],default:"bottom"}},Xr.properties),additionalProperties:!1},gY={type:"object",properties:{head:{type:"array",items:_L},body:{type:"array",items:_L}},additionalProperties:!1},mY={type:"array",items:{type:"object",properties:{href:{type:"string"},as:{type:"string"},crossorigin:{type:"string"},fetchpriority:{type:"string"},hreflang:{type:"string"},imagesizes:{type:"string"},imagesrcset:{type:"string"},integrity:{type:"string"},media:{type:"string"},prefetch:{type:"string"},referrerpolicy:{type:"string"},rel:{type:"string"},sizes:{type:"string"},title:{type:"string"},type:{type:"string"}},required:["href"],additionalProperties:!0}},yY={type:"object",properties:Object.assign({engine:{type:"string",enum:["flexsearch","typesense"],default:"flexsearch"},ai:w$e,filters:P$e,placement:{type:"string",default:"navbar"},shortcuts:{type:"array",items:{type:"string"},default:["⌘+K,ctrl+K"]},suggestedPages:{type:"array",items:k$e}},Xr.properties),additionalProperties:!1},vY={type:"object",properties:Object.assign({ignoreDetection:{type:"boolean"},modes:{type:"array",items:{type:"string"},default:["light","dark"]}},Xr.properties),additionalProperties:!1},$$e={type:"object",properties:Object.assign(Object.assign({},Xr.properties),{items:{type:"array",items:{type:"string",enum:["copy","view","chatgpt","claude"]},default:["copy","view","chatgpt","claude"]}}),additionalProperties:!1},bY={type:"object",properties:{nextButton:{type:"object",properties:Object.assign({text:{type:"string"}},Xr.properties),additionalProperties:!1,default:{}},previousButton:{type:"object",properties:Object.assign({text:{type:"string"}},Xr.properties),additionalProperties:!1,default:{}},actions:$$e},additionalProperties:!1},OY={type:"object",properties:{elementFormat:{type:"string",default:"icon"},copy:{type:"object",properties:Object.assign({},Xr.properties),additionalProperties:!1,default:{hide:!1}},report:{type:"object",properties:Object.assign({tooltipText:{type:"string"},buttonText:{type:"string"},label:{type:"string"}},Xr.properties),additionalProperties:!1,default:{hide:!1}},expand:{type:"object",properties:Object.assign({},Xr.properties),additionalProperties:!1,default:{hide:!1}},collapse:{type:"object",properties:Object.assign({},Xr.properties),additionalProperties:!1,default:{hide:!1}}},additionalProperties:!1},xY={type:"object",properties:{frontMatterKeysToResolve:{type:"array",items:{type:"string"},default:["image","links"]},partialsFolders:{type:"array",items:{type:"string"},default:["_partials"]},lastUpdatedBlock:{type:"object",properties:Object.assign({format:{type:"string",enum:["timeago","iso","long","short"],default:"timeago"},locale:{type:"string"}},Xr.properties),additionalProperties:!1,default:{}},toc:{type:"object",properties:Object.assign({header:{type:"string",default:"On this page"},depth:{type:"integer",default:3,minimum:1}},Xr.properties),additionalProperties:!1,default:{}},editPage:{type:"object",properties:Object.assign({baseUrl:{type:"string"}},Xr.properties),additionalProperties:!1,default:{}}},additionalProperties:!1,default:{}},c0=Object.assign(Object.assign({},kL),{properties:Object.assign(Object.assign({},kL.properties),x$e.properties)}),E$e={type:"object",properties:{includeInDevelopment:{type:"boolean"},scriptUrl:{type:"string"},pageViewEventName:{type:"string"}},additionalProperties:!1,required:["scriptUrl"]},A$e={type:"object",properties:{includeInDevelopment:{type:"boolean"},apiKey:{type:"string"},head:{type:"boolean"},respectDNT:{type:"boolean"},exclude:{type:"array",items:{type:"string"}},outboundClickEventName:{type:"string"},pageViewEventName:{type:"string"},amplitudeConfig:{type:"object",additionalProperties:!0}},additionalProperties:!1,required:["apiKey"]},I$e={type:"object",properties:{includeInDevelopment:{type:"boolean"},orgId:{type:"string"}},additionalProperties:!1,required:["orgId"]},T$e={type:"object",properties:{includeInDevelopment:{type:"boolean"},appId:{type:"string"}},additionalProperties:!1,required:["appId"]},_$e={type:"object",properties:{includeInDevelopment:{type:"boolean"},writeKey:{type:"string",minLength:10},trackPage:{type:"boolean"},dataPlaneUrl:{type:"string"},controlPlaneUrl:{type:"string"},sdkUrl:{type:"string"},loadOptions:{type:"object",additionalProperties:!0}},additionalProperties:!1,required:["writeKey"]},R$e={type:"object",properties:{includeInDevelopment:{type:"boolean"},writeKey:{type:"string",minLength:10},trackPage:{type:"boolean"},includeTitleInPageCall:{type:"boolean"},host:{type:"string"}},additionalProperties:!1,required:["writeKey"]},j$e={type:"object",properties:{includeInDevelopment:{type:"boolean"},trackingId:{type:"string"},gtmAuth:{type:"string"},gtmPreview:{type:"string"},defaultDataLayer:{},dataLayerName:{type:"string"},enableWebVitalsTracking:{type:"boolean"},selfHostedOrigin:{type:"string"},pageViewEventName:{type:"string"}},additionalProperties:!1,required:["trackingId"]},SY={type:"object",properties:{includeInDevelopment:{type:"boolean"},trackingId:{type:"string"},conversionId:{type:"string"},floodlightId:{type:"string"},optimizeId:{type:"string"},exclude:{type:"array",items:{type:"string"}}},additionalProperties:!1,required:["trackingId"]},D$e={type:"object",properties:{includeInDevelopment:{type:"boolean"},trackingId:{type:"string"},conversionId:{type:"string"},floodlightId:{type:"string"},head:{type:"boolean"},respectDNT:{type:"boolean"},exclude:{type:"array",items:{type:"string"}},optimizeId:{type:"string"},anonymizeIp:{type:"boolean"},cookieExpires:{type:"number"},trackers:{type:"object",additionalProperties:SY}},additionalProperties:!1,required:["trackingId"]},wY={type:"object",properties:{adobe:E$e,amplitude:A$e,fullstory:I$e,heap:T$e,rudderstack:_$e,segment:R$e,gtm:j$e,ga:D$e}},CY={type:"object",properties:Object.assign({items:{type:"array",items:{type:"object",properties:{label:{type:"string"},external:{type:"boolean"},link:{type:"string"},separatorLine:{type:"boolean"}},additionalProperties:!0},default:[]},hideLoginButton:{type:"boolean"}},Xr.properties),additionalProperties:!1},PY={type:"object",properties:{hide:{type:"boolean"},showForUnversioned:{type:"boolean"}}},kY={type:"object",properties:{hide:{type:"boolean"},prefixItems:{type:"array",items:{type:"object",properties:{label:{type:"string"},labelTranslationKey:{type:"string"},page:{type:"string"},icon:{type:"string"}},additionalProperties:!1,default:{}}}},additionalProperties:!1},M$e={type:"object",additionalProperties:!1,required:["title","property"],properties:{type:{type:"string",enum:["select","checkboxes","date-range"],default:"checkboxes"},title:{type:"string"},titleTranslationKey:{type:"string"},property:{type:"string"},parentFilter:{type:"string"},valuesMapping:{type:"object",additionalProperties:{type:"string"}},missingCategoryName:{type:"string"},missingCategoryNameTranslationKey:{type:"string"},options:{type:"array",items:{type:"string"}}}},N$e={type:"object",additionalProperties:!0,required:["slug","items"],properties:{slug:{type:"string"},filters:{type:"array",items:M$e},groupByFirstFilter:{type:"boolean"},filterValuesCasing:{type:"string",enum:["sentence","original","lowercase","uppercase"]},items:rT,requiredPermission:{type:"string"},separateVersions:{type:"boolean"},title:{type:"string"},titleTranslationKey:{type:"string"},description:{type:"string"},descriptionTranslationKey:{type:"string"}}},u0={type:"object",patternProperties:{".*":N$e}},$Y={type:"object",additionalProperties:!0,required:[],properties:{ignoreNonCompliant:{type:"boolean",default:!1},teamMetadataProperty:{type:"object",properties:{property:{type:"string"},label:{type:"string"},default:{type:"string"}}},levels:{type:"array",items:{type:"object",required:["name"],properties:Object.assign(Object.assign(Object.assign({name:{type:"string"},color:{type:"string"},extends:{type:"array",items:{type:"string"}}},KI),eT),tT),additionalProperties:!1}},targets:{type:"array",items:{type:"object",required:["where"],properties:{minimumLevel:{type:"string"},rules:{type:"object",additionalProperties:!0},where:{type:"object",required:["metadata"],properties:{metadata:{type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1}},additionalProperties:!1}},ignore:{type:"array",items:{type:"string"}},fromProjectUrl:{type:"string",format:"uri"}}},L$e={type:"object",required:["key"],properties:{key:{type:"string"}},additionalProperties:!1},Q$e={type:"object",required:["type"],properties:{type:{type:"string"}},additionalProperties:!1},V$e={type:"object",required:["property","title"],properties:{property:{type:"string"},hide:{type:"boolean"},label:{type:"string"},options:{type:"array",items:{type:"string"}},type:{type:"string",enum:["select","checkboxes","date-range"],default:"checkboxes"},title:{type:"string"},titleTranslationKey:{type:"string"},parentFilter:{type:"string"},valuesMapping:{type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1},bs={type:"object",properties:{slug:{type:"string"},hide:{type:"boolean"},includes:{type:"array",items:Q$e},excludes:{type:"array",items:L$e},filters:{type:"array",items:V$e},titleTranslationKey:{type:"string"},descriptionTranslationKey:{type:"string"},catalogSwitcherLabelTranslationKey:{type:"string"}},additionalProperties:!1},z$e={type:"object",properties:{type:{type:"string",enum:["string","number","boolean","array","object"]},description:{type:"string"},example:{oneOf:[{type:"string"},{type:"number"},{type:"boolean"},{type:"array"},{type:"object"}]},enum:{type:"array",items:{type:"string"}},pattern:{type:"string"},format:{type:"string"},minimum:{type:"number"},maximum:{type:"number"},items:{type:"object"}},additionalProperties:!0},B$e={type:"object",required:["type","properties"],properties:{type:{type:"string",enum:["object"]},description:{type:"string"},properties:{type:"object",additionalProperties:z$e},required:{type:"array",items:{type:"string"}},additionalProperties:{type:"boolean"}},additionalProperties:!0},q$e={type:"object",required:["name","description","metadataSchema"],properties:{name:{type:"string",description:"Display name of the entity type"},description:{type:"string",description:"Description of the entity type"},metadataSchema:B$e,icon:{type:"object",properties:{src:{type:"string"},srcSet:{type:"string"}},additionalProperties:!1}},additionalProperties:!1},F$e={type:"object",additionalProperties:q$e},EY={type:"object",properties:{entityTypes:F$e,catalogs:{type:"object",properties:{all:bs,services:bs,domains:bs,teams:bs,users:bs,apiDescriptions:bs,dataSchemas:bs,apiOperations:bs},additionalProperties:bs}},additionalProperties:!1},Do={type:"object",properties:{imports:{type:"array",items:{type:"string"}},logo:uY,navbar:dY,products:fY,footer:hY,sidebar:pY,scripts:gY,links:mY,feedback:Zx,search:yY,colorMode:vY,navigation:bY,codeSnippet:OY,markdown:xY,openapi:c0,graphql:a0,analytics:wY,userMenu:CY,versionPicker:PY,breadcrumbs:kY,catalog:u0,entitiesCatalog:EY,catalogClassic:u0,scorecard:$Y},additionalProperties:!0},W$e="https://redocly.com/sso/teams";var d0;(function(t){t.OIDC="OIDC",t.SAML2="SAML2"})(d0||(d0={}));var f0;(function(t){t.SERVICE_ACCOUNT="SERVICE_ACCOUNT",t.OAUTH2="OAUTH2"})(f0||(f0={}));var RL;(function(t){t.STACKED="stacked",t.THREE_PANEL="three-panel"})(RL||(RL={}));const U$e=["partOf","hasParts","creates","createdBy","owns","ownedBy","implements","implementedBy","dependsOn","dependencyOf","uses","usedBy","produces","consumes","linksTo","supersedes","supersededBy","compatibleWith","extends","extendedBy","relatesTo","hasMember","memberOf","triggers","triggeredBy"];function K$(t,e){return Object.fromEntries(Object.entries(t).map(([r,n])=>{if(r!==e)return typeof n!="object"||!n?[r,n]:Array.isArray(n)?[r,n.map(i=>typeof i=="object"?K$(i,e):i)]:[r,K$(n,e)]}).filter(Boolean))}const X$e={type:"object",additionalProperties:{type:"string"}},Z$e={type:"object",additionalProperties:!1,patternProperties:{"^[a-zA-Z0-9_-]+$":{type:"string",pattern:"^https?://[^\\s/$.?#].[^\\s]*$"}}},Dm={type:"string",enum:["error","warn","off"]},G$e={type:"object",additionalProperties:!1,properties:{schemaCheck:Dm,statusCodeCheck:Dm,contentTypeCheck:Dm,successCriteriaCheck:Dm}},Y$e={type:"object",properties:{event:{type:"string",enum:["schedule"]},interval:{type:"string",enum:["1m","2m","5m","10m","15m","30m","1h","3h","6h","12h","1d","7d"]}},required:["event"],additionalProperties:!1},H$e={type:"object",properties:{event:{type:"string",enum:["build"]}},required:["event"],additionalProperties:!1},J$e={type:"object",properties:{ignoreLint:{oneOf:[{type:"boolean",default:!1},{type:"object",additionalProperties:{type:"boolean"}}]},ignoreLinkChecker:{type:"boolean"},ignoreMarkdocErrors:{type:"boolean"},ignoreRespectMonitoring:{type:"boolean"},jobs:{type:"array",items:{type:"object",properties:{path:{type:"string",pattern:"^(?!\\/|\\.\\./)"},agent:{type:"string",enum:["respect"]},trigger:{oneOf:[Y$e,H$e]},inputs:X$e,servers:Z$e,severity:G$e},required:["path","trigger","agent"],additionalProperties:!1}}},additionalProperties:!1},K$e={type:"object",properties:{end_session_endpoint:{type:"string"},token_endpoint:{type:"string"},authorization_endpoint:{type:"string"},jwks_uri:{type:"string"}},required:["token_endpoint","authorization_endpoint"],additionalProperties:!0},eEe={type:"object",properties:{type:{type:"string",const:d0.OIDC},title:{type:"string"},pkce:{type:"boolean",default:!1},configurationUrl:{type:"string",minLength:1},configuration:K$e,clientId:{type:"string",minLength:1},clientSecret:{type:"string",minLength:0},teamsClaimName:{type:"string"},teamsClaimMap:{type:"object",additionalProperties:{type:"string"}},defaultTeams:{type:"array",items:{type:"string"}},scopes:{type:"array",items:{type:"string"}},tokenExpirationTime:{type:"number"},authorizationRequestCustomParams:{type:"object",additionalProperties:{type:"string"}},introspectEndpoint:{type:"string"},tokenRequestCustomParams:{type:"object",additionalProperties:{type:"string"}},audience:{type:"array",items:{type:"string"}}},required:["type","clientId"],oneOf:[{required:["configurationUrl"]},{required:["configuration"]}],additionalProperties:!1},tEe={type:"object",properties:{type:{type:"string",const:d0.SAML2},title:{type:"string"},issuerId:{type:"string"},entityId:{type:"string"},ssoUrl:{type:"string"},x509PublicCert:{type:"string"},teamsAttributeName:{type:"string",default:W$e},teamsAttributeMap:{type:"object",additionalProperties:{type:"string"}},defaultTeams:{type:"array",items:{type:"string"}}},additionalProperties:!1,required:["type","issuerId","ssoUrl","x509PublicCert"]},rEe={oneOf:[eEe,tEe],discriminator:{propertyName:"type"}},nEe={type:"object",additionalProperties:rEe},iEe={oneOf:[{type:"array",items:{type:"string",enum:["REDOCLY","CORPORATE","GUEST"]},uniqueItems:!0},{type:"string",enum:["REDOCLY","CORPORATE","GUEST"]}]},oEe={type:"object",properties:{to:{type:"string"},type:{type:"number",default:301}},additionalProperties:!1},sEe={type:"object",additionalProperties:oEe,default:{}},AY={type:"object",properties:Object.assign(Object.assign(Object.assign(Object.assign({root:{type:"string"},output:{type:"string",pattern:"(.ya?ml|.json)$"},rbac:{type:"object",additionalProperties:!0},openapi:c0,graphql:a0,theme:{type:"object",properties:{openapi:c0,graphql:a0},additionalProperties:!1},title:{type:"string"},metadata:{type:"object",additionalProperties:!0}},KI),eT),tT),{extends:{type:"array",items:{type:"string"}}}),required:["root"]},aEe={type:"object",additionalProperties:!0},lEe={type:"object",additionalProperties:{type:"object",additionalProperties:!0}},jL={type:"object",properties:{hide:{type:"boolean",default:!1},title:{type:"string"},description:{type:"string"},details:{type:"object",properties:{path:{type:"string"},content:{type:"string"}},additionalProperties:!1},excludeFiles:{type:"array",items:{type:"string"},default:[]},sections:{type:"array",items:{type:"object",properties:{title:{type:"string"},description:{type:"string"},includeFiles:{type:"array",items:{type:"string"},default:[]},excludeFiles:{type:"array",items:{type:"string"},default:[]}},required:["title"],additionalProperties:!1}}},default:{hide:!1,title:void 0,description:void 0,details:void 0,sections:[{title:"Table of contents",includeFiles:["**/*"],excludeFiles:[]}]},additionalProperties:!1},DL={type:"object",properties:{title:{type:"string"},description:{type:"string"},siteUrl:{type:"string"},image:{type:"string"},keywords:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},lang:{type:"string"},jsonLd:{type:"object"},meta:{type:"array",items:{type:"object",properties:{name:{type:"string"},content:{type:"string"}},required:["name","content"],additionalProperties:!1}},llmstxt:jL},default:{llmstxt:jL.default},additionalProperties:!1},cEe={type:"object",properties:{folders:{type:"array",items:{type:"string"}}},additionalProperties:!1},vl={type:"object",additionalProperties:{type:"string"}},uEe={type:"object",properties:{teamNamePatterns:{type:"array",items:{type:"string"}},teamFolders:{type:"array",items:{type:"string"}},teamFoldersBaseRoles:vl,cms:vl,reunite:vl,features:{type:"object",properties:{aiSearch:vl},additionalProperties:!1},content:{type:"object",properties:{"**":vl},additionalProperties:vl}},additionalProperties:vl},dEe={type:"object",properties:{static:{type:"string"}},additionalProperties:!1,required:["static"]},fEe={type:"object",properties:{idp:{type:"string"}},additionalProperties:!1,required:["idp"]},hEe={type:"object",properties:{type:{type:"string",const:"GRAVITEE"},apiBaseUrl:{type:"string"},env:{type:"string"},allowApiProductsOutsideCatalog:{type:"boolean",default:!1},stage:{type:"string",default:"non-production"},auth:{oneOf:[dEe,fEe]}},additionalProperties:!1,required:["type","apiBaseUrl"]},pEe={type:"object",properties:{type:{type:"string",const:f0.OAUTH2},tokenEndpoint:{type:"string"},clientId:{type:"string"},clientSecret:{type:"string"}},additionalProperties:!1,required:["type","tokenEndpoint","clientId","clientSecret"]},gEe={type:"object",properties:{type:{type:"string",const:f0.SERVICE_ACCOUNT},serviceAccountEmail:{type:"string"},serviceAccountPrivateKey:{type:"string"}},additionalProperties:!1,required:["type","serviceAccountEmail","serviceAccountPrivateKey"]},eE={type:"object",properties:{type:{type:"string",const:"APIGEE_X"},apiUrl:{type:"string"},stage:{type:"string",default:"non-production"},organizationName:{type:"string"},ignoreApiProducts:{type:"array",items:{type:"string"}},allowApiProductsOutsideCatalog:{type:"boolean",default:!1},auth:{type:"object",oneOf:[pEe,gEe],discriminator:{propertyName:"type"}}},additionalProperties:!1,required:["type","organizationName","auth"]},mEe=Object.assign(Object.assign({},eE),{properties:Object.assign(Object.assign({},eE.properties),{type:{type:"string",const:"APIGEE_EDGE"}})}),yEe={type:"object",oneOf:[eE,mEe,hEe],discriminator:{propertyName:"type"}},vEe={type:"object",required:["adapters"],additionalProperties:!1,properties:{adapters:{type:"array",items:yEe}}},ML={type:"object",properties:{defaultLocale:{type:"string"},locales:{type:"array",items:{type:"object",properties:{code:{type:"string"},name:{type:"string"}},required:["code"]}}},additionalProperties:!1,required:["defaultLocale"]},bEe={type:"object",properties:{name:{type:"string"},value:{type:"string"}},additionalProperties:!1,required:["name","value"]},tE={type:"object",properties:Object.assign(Object.assign(Object.assign(Object.assign({imports:{type:"array",items:{type:"string"}},licenseKey:{type:"string"},redirects:sEe,seo:DL,rbac:uEe,apiFunctions:cEe,requiresLogin:{type:"boolean"},responseHeaders:{type:"object",additionalProperties:{type:"array",items:bEe}},mockServer:{type:"object",properties:{off:{type:"boolean",default:!1},position:{type:"string",enum:["first","last","replace","off"],default:"first"},strictExamples:{type:"boolean",default:!1},errorIfForcedExampleNotFound:{type:"boolean",default:!1},description:{type:"string"}}},apis:{type:"object",additionalProperties:AY},extends:{type:"array",items:{type:"string"}}},KI),tT),eT),{ssoDirect:nEe,sso:iEe,residency:{type:"string",pattern:"^https?://.*"},developerOnboarding:vEe,removeAttribution:{type:"boolean"},i18n:ML,l10n:ML,metadata:aEe,metadataGlobs:lEe,ignore:{type:"array",items:{type:"string"}},theme:Do,reunite:J$e,logo:uY,navbar:dY,products:fY,footer:hY,sidebar:pY,scripts:gY,links:mY,feedback:Zx,search:yY,colorMode:vY,navigation:bY,codeSnippet:OY,markdown:xY,openapi:c0,graphql:a0,analytics:wY,userMenu:CY,versionPicker:PY,breadcrumbs:kY,catalog:u0,entitiesCatalog:EY,catalogClassic:u0,scorecard:$Y}),default:{redirects:{},seo:DL.default},additionalProperties:!0},OEe=Object.assign(Object.assign({},K$(tE,"default")),{additionalProperties:!1});Object.assign(Object.assign({$id:"root-redocly-config"},tE),{properties:Object.assign(Object.assign({plugins:{type:"array",items:{type:"string"}}},tE.properties),{env:{type:"object",additionalProperties:OEe}}),default:{},additionalProperties:!1});const NL={type:"object",properties:{logo:Do.properties.logo,navbar:Do.properties.navbar,footer:Do.properties.footer,sidebar:Do.properties.sidebar,search:Do.properties.search,codeSnippet:Do.properties.codeSnippet,breadcrumbs:Do.properties.breadcrumbs,openapi:Do.properties.openapi,feedback:Do.properties.feedback,analytics:{type:"object",properties:{ga:SY}}},additionalProperties:!0,default:{}};Object.assign(Object.assign({},NL.properties),{apis:{type:"object",additionalProperties:AY},theme:NL});const xEe={type:"object",properties:{email:{type:"string",description:"Email of the user"}},required:["email"],additionalProperties:!0},SEe={type:"object",properties:{specType:{type:"string",enum:["jsonschema","openapi","asyncapi","avro","zod","graphql","protobuf","arazzo"],description:"Type of the API description"},descriptionFile:{type:"string",description:"Path to the file containing the API description"}},required:["specType","descriptionFile"],additionalProperties:!0},wEe={type:"object",properties:{method:{type:"string",enum:["GET","POST","PUT","DELETE","PATCH","MUTATION","QUERY","SUBSCRIBE","PUBLISH"],description:"HTTP method of the API operation"},path:{type:"string",description:"Path of the API operation"},payload:{type:"array",items:{type:"string",description:"Related dataSchema name"}},responses:{type:"array",items:{type:"string",description:"Related dataSchema name"}}},required:["method","path"],additionalProperties:!0},CEe={type:"object",properties:{specType:{type:"string",enum:["jsonschema","openapi","asyncapi","avro","zod","graphql","protobuf","arazzo"],description:"Specification type of the data schema"},schema:{type:"string",description:"Inline schema of the data structure"}},required:["specType","schema"],additionalProperties:!0},PEe={type:"object",properties:{slack:{type:"object",properties:{channels:{type:"array",items:{type:"object",properties:{name:{type:"string",minLength:2,maxLength:150},url:{type:"string"}},required:["name"],additionalProperties:!1}}},required:["channels"],additionalProperties:!1}},additionalProperties:!1},kEe={type:"object",properties:{label:{type:"string",minLength:2,maxLength:150},url:{type:"string"}},required:["label","url"],additionalProperties:!1},$Ee={type:"object",properties:{type:{type:"string",enum:U$e},key:{type:"string",minLength:2,maxLength:100}},required:["type","key"],additionalProperties:!1},kf={key:{type:"string",pattern:"^[a-z0-9]+(?:-[a-z0-9]+)*$",minLength:2,maxLength:150},title:{type:"string",minLength:2,maxLength:200},summary:{type:["string","null"],minLength:1,maxLength:500},tags:{type:["array","null"],items:{type:"string",minLength:1,maxLength:50}},git:{type:["array","null"],items:{type:"string"}},contact:{anyOf:[{type:"null"},PEe]},links:{anyOf:[{type:"null"},{type:"array",items:kEe}]},relations:{anyOf:[{type:"null"},{type:"array",items:$Ee}]}};Object.assign(Object.assign({},kf),{type:{const:"user"},metadata:xEe}),Object.assign(Object.assign({},kf),{type:{const:"api-operation"},metadata:wEe}),Object.assign(Object.assign({},kf),{type:{const:"data-schema"},metadata:CEe}),Object.assign(Object.assign({},kf),{type:{const:"api-description"},metadata:SEe}),Object.assign(Object.assign({},kf),{type:{enum:["service","domain","team"]},metadata:{type:["object","null"],additionalProperties:!0}});const EEe={"font-awesome":"https://cdn.redocly.com/icons/fa/7.0.0",code:"https://cdn.redocly.com/icons/code/5.24.0"};var vb={exports:{}};/* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress
|
|
513
|
+
`;var j1,CL;function Ike(){return CL||(CL=1,j1=function(){var t=document.getSelection();if(!t.rangeCount)return function(){};for(var e=document.activeElement,r=[],n=0;n<t.rangeCount;n++)r.push(t.getRangeAt(n));switch(e.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":e.blur();break;default:e=null;break}return t.removeAllRanges(),function(){t.type==="Caret"&&t.removeAllRanges(),t.rangeCount||r.forEach(function(i){t.addRange(i)}),e&&e.focus()}}),j1}var D1,PL;function Tke(){if(PL)return D1;PL=1;var t=Ike(),e={"text/plain":"Text","text/html":"Url",default:"Text"},r="Copy to clipboard: #{key}, Enter";function n(o){var s=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return o.replace(/#{\s*key\s*}/g,s)}function i(o,s){var a,l,c,u,d,f,h=!1;s||(s={}),a=s.debug||!1;try{c=t(),u=document.createRange(),d=document.getSelection(),f=document.createElement("span"),f.textContent=o,f.ariaHidden="true",f.style.all="unset",f.style.position="fixed",f.style.top=0,f.style.clip="rect(0, 0, 0, 0)",f.style.whiteSpace="pre",f.style.webkitUserSelect="text",f.style.MozUserSelect="text",f.style.msUserSelect="text",f.style.userSelect="text",f.addEventListener("copy",function(p){if(p.stopPropagation(),s.format)if(p.preventDefault(),typeof p.clipboardData>"u"){a&&console.warn("unable to use e.clipboardData"),a&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var y=e[s.format]||e.default;window.clipboardData.setData(y,o)}else p.clipboardData.clearData(),p.clipboardData.setData(s.format,o);s.onCopy&&(p.preventDefault(),s.onCopy(p.clipboardData))}),document.body.appendChild(f),u.selectNodeContents(f),d.addRange(u);var g=document.execCommand("copy");if(!g)throw new Error("copy command was unsuccessful");h=!0}catch(p){a&&console.error("unable to copy using execCommand: ",p),a&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(s.format||"text",o),s.onCopy&&s.onCopy(window.clipboardData),h=!0}catch(y){a&&console.error("unable to copy using clipboardData: ",y),a&&console.error("falling back to prompt"),l=n("message"in s?s.message:r),window.prompt(l,o)}}finally{d&&(typeof d.removeRange=="function"?d.removeRange(u):d.removeAllRanges()),f&&document.body.removeChild(f),c()}return h}return D1=i,D1}var _ke=Tke();const Rke=ii(_ke);class sY{static copyCustom(e){return Rke(e)}static selectElement(e){if(!e)return;let r,n;document.body.createTextRange?(r=document.body.createTextRange(),r.moveToElementText(e),r.select()):document.createRange&&window.getSelection&&(n=window.getSelection(),r=document.createRange(),r.selectNodeContents(e),n==null||n.removeAllRanges(),n==null||n.addRange(r))}}const JI=(t,e="currentColor")=>t!=null&&t.startsWith("--")?`var(${t})`:t||e,aY={hide:{type:"boolean",default:!1},component:{type:"string",enum:["radio","checkbox"],default:"checkbox"},label:{type:"string"},items:{type:"array",items:{type:"string"}}},Pf={type:"object",properties:aY,additionalProperties:!1},jke={type:"object",properties:{hide:{type:"boolean",default:!1},label:{type:"string"},placeholder:{type:"string"}},additionalProperties:!1},Zx={type:"object",properties:{hide:{type:"boolean",default:!1},type:{type:"string",enum:["rating","sentiment","comment","reasons","mood","scale"],default:"sentiment"},settings:{type:"object",properties:{label:{type:"string"},submitText:{type:"string"},buttonText:{type:"string"},component:{type:"string",enum:["radio","checkbox"],default:"checkbox"},items:{type:"array",items:{type:"string"},minItems:1},leftScaleLabel:{type:"string"},rightScaleLabel:{type:"string"},reasons:{type:"object",properties:Object.assign(Object.assign({},aY),{like:Pf,dislike:Pf,satisfied:Pf,neutral:Pf,dissatisfied:Pf}),additionalProperties:!1},comment:{type:"object",properties:{hide:{type:"boolean",default:!1},label:{type:"string"},likeLabel:{type:"string"},dislikeLabel:{type:"string"},satisfiedLabel:{type:"string"},neutralLabel:{type:"string"},dissatisfiedLabel:{type:"string"}},additionalProperties:!1},optionalEmail:jke},additionalProperties:!1}},additionalProperties:!1},Dke={type:"object",properties:{languages:{type:"array",items:{type:"object",properties:{lang:{type:"string",examples:["curl","JavaScript","Node.js","Python","Java8+Apache","Java","C#","C#+Newtonsoft","PHP","Go","Ruby","R","Payload"]},label:{type:"string"},options:{type:"object",properties:{indent:{type:"string"},withImports:{type:"boolean"},withComments:{type:"boolean"},binary:{type:"boolean"},credentials:{type:"string",enum:["omit","same-origin","include"]}},additionalProperties:!1}},required:["lang"],additionalProperties:!1}},skipOptionalParameters:{type:"boolean"},withOAuth2Call:{type:"boolean"}},additionalProperties:!1},lY={type:"array",items:{type:"object",properties:{title:{type:"string"},url:{type:"string"}},required:["url"],additionalProperties:!1}},kL={type:"object",properties:{licenseKey:{type:"string"},hideLoading:{type:"boolean"},disableRouter:{type:"boolean"},hideSidebar:{type:"boolean"},feedback:Zx,hideReplay:{type:"boolean"},oAuth2RedirectURI:{type:"string",nullable:!0},corsProxyUrl:{type:"string"},sortRequiredPropsFirst:{type:"boolean"},sanitize:{type:"boolean"},hideDownloadButtons:{type:"boolean"},downloadUrls:lY,onlyRequiredInSamples:{type:"boolean"},generatedSamplesMaxDepth:{oneOf:[{type:"number"},{type:"string"}]},showExtensions:{oneOf:[{type:"boolean"},{type:"string"},{type:"array",items:{type:"string"}}]},hideSchemaTitles:{type:"boolean"},jsonSamplesExpandLevel:{oneOf:[{type:"number"},{type:"string"}]},schemasExpansionLevel:{oneOf:[{type:"number"},{type:"string"}]},mockServer:{type:"object",properties:{url:{type:"string"},position:{type:"string",enum:["first","last","replace","off"]},description:{type:"string"}}},maxDisplayedEnumValues:{type:"number"},schemaDefinitionsTagName:{type:"string"},layout:{type:"string",enum:["stacked","three-panel"]},hideInfoMetadata:{type:"boolean"},events:{type:"object"},skipBundle:{type:"boolean"},routingBasePath:{type:"string"},codeSamples:Dke,ignoreNamedSchemas:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},hidePropertiesPrefix:{type:"boolean"},excludeFromSearch:{type:"boolean"},showSchemaCatalogLinks:{type:"boolean"}},additionalProperties:!1},Wc={type:"object",properties:{includeByName:{type:"array",items:{type:"string"}},excludeByName:{type:"array",items:{type:"string"}}},additionalProperties:!1},Mke={type:"object",properties:{name:{type:"string"},items:Wc,queries:Wc,mutations:Wc,subscriptions:Wc,types:Wc,directives:Wc},required:["name"],additionalProperties:!1},Nke={properties:{requireExactGroups:{type:"boolean"},groups:{type:"array",items:Mke},otherItemsGroupName:{type:"string"}}},a0={type:"object",properties:{menu:{type:"object",properties:Object.assign({},Nke.properties),additionalProperties:!1},sidebar:{type:"object",properties:{hide:{type:"boolean"}}},downloadUrls:lY,apiLogo:{type:"object",properties:{imageUrl:{type:"string"},href:{type:"string"},altText:{type:"string"},backgroundColor:{type:"string"}}},jsonSamplesDepth:{type:"number"},samplesMaxInlineArgs:{type:"number"},licenseKey:{type:"string"},fieldExpandLevel:{type:"number"},baseUrlPath:{type:"string"},metadata:{type:"object",properties:{apiId:{type:"string"}},additionalProperties:!0},feedback:Zx,layout:{type:"string",enum:["stacked","three-panel"]},showBuiltInScalars:{type:"boolean"},showBuiltInDirectives:{type:"boolean"}},additionalProperties:!1},Lke={type:"object",properties:{label:{type:"string"},lang:{enum:["curl","C#","Go","Java","Java8+Apache","JavaScript","Node.js","PHP","Python","R","Ruby"]}},required:["lang"]},Qke={type:"object",properties:{enum:{type:"string"},enumSingleValue:{type:"string"},enumArray:{type:"string"},default:{type:"string"},deprecated:{type:"string"},example:{type:"string"},examples:{type:"string"},nullable:{type:"string"},recursive:{type:"string"},arrayOf:{type:"string"},webhook:{type:"string"},authorizations:{type:"string"},tryItAuthBasicUsername:{type:"string"},tryItAuthBasicPassword:{type:"string"}}},$L={type:"object",properties:{label:{type:"string"},link:{type:"string"},target:{type:"string"}},required:["label","link"]},Vke={type:"object",properties:{beforeInfo:{type:"array",items:$L},end:{type:"array",items:$L}}},Dl={type:"object",properties:{main:{type:"string"},light:{type:"string"},dark:{type:"string"},contrastText:{type:"string"}}},_m={type:"object",properties:{backgroundColor:{type:"string"},borderColor:{type:"string"},color:{type:"string"},tabTextColor:{type:"string"}}},zke={type:"object",properties:Gx(Dl.properties,["light","dark"])},Bke={type:"object",properties:{basic:{type:"string"},delete:{type:"string"},get:{type:"string"},head:{type:"string"},link:{type:"string"},options:{type:"string"},patch:{type:"string"},post:{type:"string"},put:{type:"string"}}},qke={type:"object",properties:{error:_m,info:_m,redirect:_m,success:_m}},Fke={type:"object",properties:zd(Dl.properties,["dark"])},Wke={type:"object",properties:{primary:{type:"string"},secondary:{type:"string"},light:{type:"string"}}},Uke={type:"object",properties:{accent:Dl,border:zke,error:Dl,http:Bke,primary:Dl,responses:qke,secondary:Fke,success:Dl,text:Wke,tonalOffset:{type:"number"},warning:Dl}},Rm={type:"object",properties:{fontSize:{type:"string"},padding:{type:"string"},minWidth:{type:"string"}}},Xke={type:"object",properties:{small:Rm,medium:Rm,large:Rm,xlarge:Rm}},us={type:"object",properties:{fontFamily:{type:"string"},fontSize:{type:"string"},fontWeight:{type:"string"},lineHeight:{type:"string"}}},Zke={type:"object",properties:Object.assign(Object.assign({},zd(us.properties,["fontSize","lineHeight"])),{borderRadius:{type:"string"},hoverStyle:{type:"string"},boxShadow:{type:"string"},hoverBoxShadow:{type:"string"},sizes:Xke})},EL={type:"object",properties:Gx(us.properties,["fontSize","lineHeight"])},Gke={type:"object",properties:{medium:EL,small:EL}},Yke={type:"object",properties:Object.assign(Object.assign({},zd(us.properties,["fontSize","lineHeight"])),{borderRadius:{type:"string"},color:{type:"string"},sizes:Gke})},Hke={type:"object",properties:{top:{type:"string"},width:{type:"string"},height:{type:"string"}}},Jke={type:"object",properties:{borderRadius:{type:"string"},backgroundColor:{type:"string"}}},AL={type:"object",properties:{fullWidth:{type:"boolean"}}},Kke={type:"object",properties:{buttons:Zke,httpBadges:Yke,layoutControls:Hke,panels:Jke,tryItButton:AL,tryItSendButton:AL}},l0={type:"object",properties:{small:{type:"string"},medium:{type:"string"},large:{type:"string"}}},e$e={type:"object",properties:{maxWidth:l0}},t$e={type:"object",properties:{maxWidth:l0,middlePanelMaxWidth:l0}},r$e={type:"object",properties:{showDarkRightPanel:{type:"boolean"},stacked:e$e,"three-panel":t$e}},IL={type:"object",properties:{backgroundColor:{type:"string"},border:{type:"string"}}},n$e={type:"object",properties:{breakFieldNames:{type:"boolean"},caretColor:{type:"string"},caretSize:{type:"string"},constraints:IL,defaultDetailsWidth:{type:"string"},examples:IL,labelsTextSize:{type:"string"},linesColor:{type:"string"},nestedBackground:{type:"string"},nestingSpacing:{type:"string"},requireLabelColor:{type:"string"},typeNameColor:{type:"string"},typeTitleColor:{type:"string"}}},cY={type:"object",properties:{subItemsColor:{type:"string"},textTransform:{type:"string"},fontWeight:{type:"string"}}},i$e={type:"object",properties:Gx(cY.properties,["textTransform"])},o$e={type:"object",properties:{unit:{type:"number"},paddingHorizontal:{type:"string"},paddingVertical:{type:"string"},offsetTop:{type:"string"},offsetLeft:{type:"string"},offsetNesting:{type:"string"}}},s$e={type:"object",properties:Object.assign(Object.assign({},zd(us.properties,["fontWeight","lineHeight"])),{activeBgColor:{type:"string"},activeTextColor:{type:"string"},backgroundColor:{type:"string"},borderRadius:{type:"string"},breakPath:{type:"boolean"},caretColor:{type:"string"},caretSize:{type:"string"},groupItems:cY,level1items:i$e,rightLineColor:{type:"string"},separatorLabelColor:{type:"string"},showAtBreakpoint:{type:"string"},spacing:o$e,textColor:{type:"string"},width:{type:"string"}})},jm={type:"object",properties:Object.assign(Object.assign({},us.properties),{color:{type:"string"},transform:{type:"string"}})},a$e={type:"object",properties:Object.assign(Object.assign({},us.properties),{backgroundColor:{type:"string"},color:{type:"string"},wordBreak:{type:"string",enum:["break-all","break-word","keep-all","normal","revert","unset","inherit","initial"]},wrap:{type:"boolean"}})},l$e={type:"object",properties:zd(us.properties,["fontSize"])},c$e={type:"object",properties:{color:{type:"string"},hover:{type:"string"},textDecoration:{type:"string"},hoverTextDecoration:{type:"string"},visited:{type:"string"}}},u$e={type:"object",properties:Object.assign(Object.assign({code:a$e,fieldName:us},Gx(us.properties,["fontSize","fontFamily"])),{fontWeightBold:{type:"string"},fontWeightLight:{type:"string"},fontWeightRegular:{type:"string"},heading1:jm,heading2:jm,heading3:jm,headings:l$e,lineHeight:{type:"string"},links:c$e,optimizeSpeed:{type:"boolean"},rightPanelHeading:jm,smoothing:{type:"string",enum:["auto","none","antialiased","subpixel-antialiased","grayscale"]}})},d$e={type:"object",properties:Object.assign({color:{type:"string"}},zd(us.properties,["fontWeight"]))},f$e={type:"object",properties:{backgroundColor:{type:"string"},borderRadius:{type:"string"},tokens:d$e}},h$e={type:"object",properties:{gutter:{type:"string"},maxHeight:{type:"string"},maxWidth:{type:"string"}}},p$e={type:"object",properties:{backgroundColor:{type:"string"},color:{type:"string"}}},TL={type:"object",properties:{custom:{type:"string"}}},g$e={type:"object",properties:{DownloadButton:TL,NextSectionButton:TL}},m$e={type:"object",properties:{backgroundColor:{type:"string"},panelBackgroundColor:{type:"string"},panelControlsBackgroundColor:{type:"string"},showAtBreakpoint:{type:"string"},textColor:{type:"string"},width:{type:"string"}}},y$e={type:"object",properties:{borderRadius:{type:"string"}}},v$e={type:"object",properties:{sectionHorizontal:{type:"number"},sectionVertical:{type:"number"},unit:{type:"number"}}},b$e={type:"object",properties:{breakpoints:l0,codeBlock:f$e,colors:Uke,components:Kke,layout:r$e,logo:h$e,fab:p$e,overrides:g$e,rightPanel:m$e,schema:n$e,shape:y$e,sidebar:s$e,spacing:v$e,typography:u$e,links:{properties:{color:{type:"string"}}},codeSample:{properties:{backgroundColor:{type:"string"}}}}},O$e={type:"object",properties:{skipOptionalParameters:{type:"boolean"},languages:{type:"array",items:Lke}},required:["languages"]},x$e={properties:{theme:b$e,ctrlFHijack:{type:"boolean"},defaultSampleLanguage:{type:"string"},disableDeepLinks:{type:"boolean"},disableSearch:{type:"boolean"},disableSidebar:{type:"boolean"},downloadDefinitionUrl:{type:"string"},expandDefaultServerVariables:{type:"boolean"},enumSkipQuotes:{type:"boolean"},expandDefaultRequest:{type:"boolean"},expandDefaultResponse:{type:"boolean"},expandResponses:{type:"string"},expandSingleSchemaField:{type:"boolean"},generateCodeSamples:O$e,generatedPayloadSamplesMaxDepth:{type:"number"},hideDownloadButton:{type:"boolean"},hideHostname:{type:"boolean"},hideInfoSection:{type:"boolean"},hideLogo:{type:"boolean"},hideRequestPayloadSample:{type:"boolean"},hideRightPanel:{type:"boolean"},hideSchemaPattern:{type:"boolean"},hideSingleRequestSampleTab:{type:"boolean"},hideSecuritySection:{type:"boolean"},hideTryItPanel:{type:"boolean"},hideFab:{type:"boolean"},hideOneOfDescription:{type:"boolean"},htmlTemplate:{type:"string"},jsonSampleExpandLevel:{oneOf:[{type:"number",minimum:1},{type:"string"}]},labels:Qke,menuToggle:{type:"boolean"},nativeScrollbars:{type:"boolean"},noAutoAuth:{type:"boolean"},onDeepLinkClick:{type:"object"},pagination:{enum:["none","section","item"]},pathInMiddlePanel:{type:"boolean"},payloadSampleIdx:{type:"number",minimum:0},requiredPropsFirst:{type:"boolean"},routingStrategy:{type:"string"},samplesTabsMaxCount:{type:"number"},schemaExpansionLevel:{oneOf:[{type:"number",minimum:0},{type:"string"}]},minCharacterLengthToInitSearch:{type:"number",minimum:1},maxResponseHeadersToShowInTryIt:{type:"number",minimum:0},scrollYOffset:{oneOf:[{type:"number"},{type:"string"}]},searchAutoExpand:{type:"boolean"},searchFieldLevelBoost:{type:"number",minimum:0},searchMaxDepth:{type:"number",minimum:1},searchMode:{type:"string",enum:["default","path-only"]},searchOperationTitleBoost:{type:"number"},searchTagTitleBoost:{type:"number"},sendXUserAgentInTryIt:{type:"boolean"},showChangeLayoutButton:{type:"boolean"},showConsole:{type:"boolean"},showNextButton:{type:"boolean"},showRightPanelToggle:{type:"boolean"},showSecuritySchemeType:{type:"boolean"},showWebhookVerb:{type:"boolean"},showObjectSchemaExamples:{type:"boolean"},disableTryItRequestUrlEncoding:{type:"boolean"},sidebarLinks:Vke,sideNavStyle:{type:"string",enum:["summary-only","path-first","id-only","path-only"]},simpleOneOfTypeLabel:{type:"boolean"},sortEnumValuesAlphabetically:{type:"boolean"},sortOperationsAlphabetically:{type:"boolean"},sortPropsAlphabetically:{type:"boolean"},sortTagsAlphabetically:{type:"boolean"},suppressWarnings:{type:"boolean"},unstable_externalDescription:{type:"boolean"},unstable_ignoreMimeParameters:{type:"boolean"},untrustedDefinition:{type:"boolean"},showAccessMode:{type:"boolean"},preserveOriginalExtensionsName:{type:"boolean"},markdownHeadingsAnchorLevel:{type:"number"}}};function Gx(t,e){return Object.fromEntries(e.filter(r=>r in t).map(r=>[r,t[r]]))}function zd(t,e){return Object.fromEntries(Object.entries(t).filter(([r])=>!e.includes(r)))}const ga={type:"object",additionalProperties:{oneOf:[{type:"string"},{type:"object"}]}},KI={rules:ga,oas2Rules:ga,oas3_0Rules:ga,oas3_1Rules:ga,async2Rules:ga,async3Rules:ga,arazzo1Rules:ga,overlay1Rules:ga},eT={preprocessors:{type:"object",additionalProperties:!0},oas2Preprocessors:{type:"object",additionalProperties:!0},oas3_0Preprocessors:{type:"object",additionalProperties:!0},oas3_1Preprocessors:{type:"object",additionalProperties:!0},async2Preprocessors:{type:"object",additionalProperties:!0},async3Preprocessors:{type:"object",additionalProperties:!0},arazzo1Preprocessors:{type:"object",additionalProperties:!0},overlay1Preprocessors:{type:"object",additionalProperties:!0}},tT={decorators:{type:"object",additionalProperties:!0},oas2Decorators:{type:"object",additionalProperties:!0},oas3_0Decorators:{type:"object",additionalProperties:!0},oas3_1Decorators:{type:"object",additionalProperties:!0},async2Decorators:{type:"object",additionalProperties:!0},async3Decorators:{type:"object",additionalProperties:!0},arazzo1Decorators:{type:"object",additionalProperties:!0},overlay1Decorators:{type:"object",additionalProperties:!0}},Xr={type:"object",properties:{hide:{type:"boolean"}},additionalProperties:!1},_L={type:"object",properties:{src:{type:"string"},async:{type:"boolean"},crossorigin:{type:"string"},defer:{type:"boolean"},fetchpriority:{type:"string"},integrity:{type:"string"},module:{type:"boolean"},nomodule:{type:"boolean"},nonce:{type:"string"},referrerpolicy:{type:"string"},type:{type:"string"}},required:["src"],additionalProperties:!0},M1={type:"object",properties:{page:{type:"string"},directory:{type:"string"},disconnect:{type:"boolean",default:!1},group:{type:"string"},label:{type:"string"},href:{type:"string"},external:{type:"boolean"},labelTranslationKey:{type:"string"},groupTranslationKey:{type:"string"},icon:{oneOf:[{type:"string"},{type:"object",properties:{srcSet:{type:"string"}},required:["srcSet"]}]},separator:{type:"string"},separatorLine:{type:"boolean"},linePosition:{type:"string",enum:["top","bottom"],default:"top"},version:{type:"string"},menuStyle:{type:"string",enum:["drilldown"]},expanded:{type:"string",const:"always"},selectFirstItemOnExpand:{type:"boolean"},flatten:{type:"boolean"},linkedSidebars:{type:"array",items:{type:"string"}},items:{type:"array",items:{type:"object",additionalProperties:!0}},rbac:{type:"object",additionalProperties:{type:"string"}}}},rT={type:"array",items:Object.assign(Object.assign({},M1),{properties:Object.assign(Object.assign({},M1.properties),{items:{type:"array",items:M1}})})},S$e={type:"object",properties:{name:{type:"string"},icon:{type:"string"},folder:{type:"string"}},additionalProperties:!1,required:["name","folder"]},w$e={type:"object",properties:{hide:{type:"boolean",default:!1},suggestions:{default:[],type:"array",items:{type:"string"}},prompt:{type:"string"}},additionalProperties:!1},C$e={type:"array",items:{type:"object",required:["name","field","type"],properties:{name:{type:"string"},field:{type:"string"},type:{type:"string",enum:["multi-select","select","tags"]}},additionalProperties:!1}},P$e={type:"object",properties:Object.assign({facets:C$e},Xr.properties),additionalProperties:!1},k$e={type:"object",properties:{page:{type:"string"},label:{type:"string"},labelTranslationKey:{type:"string"}},required:["page"]},uY={type:"object",properties:{image:{type:"string"},srcSet:{type:"string"},altText:{type:"string"},link:{type:"string"},favicon:{type:"string"}},additionalProperties:!1},dY={type:"object",properties:Object.assign({items:rT},Xr.properties),additionalProperties:!1},fY={type:"object",additionalProperties:S$e},hY={type:"object",properties:Object.assign({items:rT,copyrightText:{type:"string"},logo:Xr},Xr.properties),additionalProperties:!1},pY={type:"object",properties:Object.assign({separatorLine:{type:"boolean"},linePosition:{type:"string",enum:["top","bottom"],default:"bottom"}},Xr.properties),additionalProperties:!1},gY={type:"object",properties:{head:{type:"array",items:_L},body:{type:"array",items:_L}},additionalProperties:!1},mY={type:"array",items:{type:"object",properties:{href:{type:"string"},as:{type:"string"},crossorigin:{type:"string"},fetchpriority:{type:"string"},hreflang:{type:"string"},imagesizes:{type:"string"},imagesrcset:{type:"string"},integrity:{type:"string"},media:{type:"string"},prefetch:{type:"string"},referrerpolicy:{type:"string"},rel:{type:"string"},sizes:{type:"string"},title:{type:"string"},type:{type:"string"}},required:["href"],additionalProperties:!0}},yY={type:"object",properties:Object.assign({engine:{type:"string",enum:["flexsearch","typesense"],default:"flexsearch"},ai:w$e,filters:P$e,placement:{type:"string",default:"navbar"},shortcuts:{type:"array",items:{type:"string"},default:["⌘+K,ctrl+K"]},suggestedPages:{type:"array",items:k$e}},Xr.properties),additionalProperties:!1},vY={type:"object",properties:Object.assign({ignoreDetection:{type:"boolean"},modes:{type:"array",items:{type:"string"},default:["light","dark"]}},Xr.properties),additionalProperties:!1},$$e={type:"object",properties:Object.assign(Object.assign({},Xr.properties),{items:{type:"array",items:{type:"string",enum:["copy","view","chatgpt","claude"]},default:["copy","view","chatgpt","claude"]}}),additionalProperties:!1},bY={type:"object",properties:{nextButton:{type:"object",properties:Object.assign({text:{type:"string"}},Xr.properties),additionalProperties:!1,default:{}},previousButton:{type:"object",properties:Object.assign({text:{type:"string"}},Xr.properties),additionalProperties:!1,default:{}},actions:$$e},additionalProperties:!1},OY={type:"object",properties:{elementFormat:{type:"string",default:"icon"},copy:{type:"object",properties:Object.assign({},Xr.properties),additionalProperties:!1,default:{hide:!1}},report:{type:"object",properties:Object.assign({tooltipText:{type:"string"},buttonText:{type:"string"},label:{type:"string"}},Xr.properties),additionalProperties:!1,default:{hide:!1}},expand:{type:"object",properties:Object.assign({},Xr.properties),additionalProperties:!1,default:{hide:!1}},collapse:{type:"object",properties:Object.assign({},Xr.properties),additionalProperties:!1,default:{hide:!1}}},additionalProperties:!1},xY={type:"object",properties:{frontMatterKeysToResolve:{type:"array",items:{type:"string"},default:["image","links"]},partialsFolders:{type:"array",items:{type:"string"},default:["**/_partials/**"]},lastUpdatedBlock:{type:"object",properties:Object.assign({format:{type:"string",enum:["timeago","iso","long","short"],default:"timeago"},locale:{type:"string"}},Xr.properties),additionalProperties:!1,default:{}},toc:{type:"object",properties:Object.assign({header:{type:"string",default:"On this page"},depth:{type:"integer",default:3,minimum:1}},Xr.properties),additionalProperties:!1,default:{}},editPage:{type:"object",properties:Object.assign({baseUrl:{type:"string"}},Xr.properties),additionalProperties:!1,default:{}}},additionalProperties:!1,default:{}},c0=Object.assign(Object.assign({},kL),{properties:Object.assign(Object.assign({},kL.properties),x$e.properties)}),E$e={type:"object",properties:{includeInDevelopment:{type:"boolean"},scriptUrl:{type:"string"},pageViewEventName:{type:"string"}},additionalProperties:!1,required:["scriptUrl"]},A$e={type:"object",properties:{includeInDevelopment:{type:"boolean"},apiKey:{type:"string"},head:{type:"boolean"},respectDNT:{type:"boolean"},exclude:{type:"array",items:{type:"string"}},outboundClickEventName:{type:"string"},pageViewEventName:{type:"string"},amplitudeConfig:{type:"object",additionalProperties:!0}},additionalProperties:!1,required:["apiKey"]},I$e={type:"object",properties:{includeInDevelopment:{type:"boolean"},orgId:{type:"string"}},additionalProperties:!1,required:["orgId"]},T$e={type:"object",properties:{includeInDevelopment:{type:"boolean"},appId:{type:"string"}},additionalProperties:!1,required:["appId"]},_$e={type:"object",properties:{includeInDevelopment:{type:"boolean"},writeKey:{type:"string",minLength:10},trackPage:{type:"boolean"},dataPlaneUrl:{type:"string"},controlPlaneUrl:{type:"string"},sdkUrl:{type:"string"},loadOptions:{type:"object",additionalProperties:!0}},additionalProperties:!1,required:["writeKey"]},R$e={type:"object",properties:{includeInDevelopment:{type:"boolean"},writeKey:{type:"string",minLength:10},trackPage:{type:"boolean"},includeTitleInPageCall:{type:"boolean"},host:{type:"string"}},additionalProperties:!1,required:["writeKey"]},j$e={type:"object",properties:{includeInDevelopment:{type:"boolean"},trackingId:{type:"string"},gtmAuth:{type:"string"},gtmPreview:{type:"string"},defaultDataLayer:{},dataLayerName:{type:"string"},enableWebVitalsTracking:{type:"boolean"},selfHostedOrigin:{type:"string"},pageViewEventName:{type:"string"}},additionalProperties:!1,required:["trackingId"]},SY={type:"object",properties:{includeInDevelopment:{type:"boolean"},trackingId:{type:"string"},conversionId:{type:"string"},floodlightId:{type:"string"},optimizeId:{type:"string"},exclude:{type:"array",items:{type:"string"}}},additionalProperties:!1,required:["trackingId"]},D$e={type:"object",properties:{includeInDevelopment:{type:"boolean"},trackingId:{type:"string"},conversionId:{type:"string"},floodlightId:{type:"string"},head:{type:"boolean"},respectDNT:{type:"boolean"},exclude:{type:"array",items:{type:"string"}},optimizeId:{type:"string"},anonymizeIp:{type:"boolean"},cookieExpires:{type:"number"},trackers:{type:"object",additionalProperties:SY}},additionalProperties:!1,required:["trackingId"]},wY={type:"object",properties:{adobe:E$e,amplitude:A$e,fullstory:I$e,heap:T$e,rudderstack:_$e,segment:R$e,gtm:j$e,ga:D$e}},CY={type:"object",properties:Object.assign({items:{type:"array",items:{type:"object",properties:{label:{type:"string"},external:{type:"boolean"},link:{type:"string"},separatorLine:{type:"boolean"}},additionalProperties:!0},default:[]},hideLoginButton:{type:"boolean"}},Xr.properties),additionalProperties:!1},PY={type:"object",properties:{hide:{type:"boolean"},showForUnversioned:{type:"boolean"}}},kY={type:"object",properties:{hide:{type:"boolean"},prefixItems:{type:"array",items:{type:"object",properties:{label:{type:"string"},labelTranslationKey:{type:"string"},page:{type:"string"},icon:{type:"string"}},additionalProperties:!1,default:{}}}},additionalProperties:!1},M$e={type:"object",additionalProperties:!1,required:["title","property"],properties:{type:{type:"string",enum:["select","checkboxes","date-range"],default:"checkboxes"},title:{type:"string"},titleTranslationKey:{type:"string"},property:{type:"string"},parentFilter:{type:"string"},valuesMapping:{type:"object",additionalProperties:{type:"string"}},missingCategoryName:{type:"string"},missingCategoryNameTranslationKey:{type:"string"},options:{type:"array",items:{type:"string"}}}},N$e={type:"object",additionalProperties:!0,required:["slug","items"],properties:{slug:{type:"string"},filters:{type:"array",items:M$e},groupByFirstFilter:{type:"boolean"},filterValuesCasing:{type:"string",enum:["sentence","original","lowercase","uppercase"]},items:rT,requiredPermission:{type:"string"},separateVersions:{type:"boolean"},title:{type:"string"},titleTranslationKey:{type:"string"},description:{type:"string"},descriptionTranslationKey:{type:"string"}}},u0={type:"object",patternProperties:{".*":N$e}},$Y={type:"object",additionalProperties:!0,required:[],properties:{ignoreNonCompliant:{type:"boolean",default:!1},teamMetadataProperty:{type:"object",properties:{property:{type:"string"},label:{type:"string"},default:{type:"string"}}},levels:{type:"array",items:{type:"object",required:["name"],properties:Object.assign(Object.assign(Object.assign({name:{type:"string"},color:{type:"string"},extends:{type:"array",items:{type:"string"}}},KI),eT),tT),additionalProperties:!1}},targets:{type:"array",items:{type:"object",required:["where"],properties:{minimumLevel:{type:"string"},rules:{type:"object",additionalProperties:!0},where:{type:"object",required:["metadata"],properties:{metadata:{type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1}},additionalProperties:!1}},ignore:{type:"array",items:{type:"string"}},fromProjectUrl:{type:"string",format:"uri"}}},L$e={type:"object",required:["key"],properties:{key:{type:"string"}},additionalProperties:!1},Q$e={type:"object",required:["type"],properties:{type:{type:"string"}},additionalProperties:!1},V$e={type:"object",required:["property","title"],properties:{property:{type:"string"},hide:{type:"boolean"},label:{type:"string"},options:{type:"array",items:{type:"string"}},type:{type:"string",enum:["select","checkboxes","date-range"],default:"checkboxes"},title:{type:"string"},titleTranslationKey:{type:"string"},parentFilter:{type:"string"},valuesMapping:{type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1},bs={type:"object",properties:{slug:{type:"string"},hide:{type:"boolean"},includes:{type:"array",items:Q$e},excludes:{type:"array",items:L$e},filters:{type:"array",items:V$e},titleTranslationKey:{type:"string"},descriptionTranslationKey:{type:"string"},catalogSwitcherLabelTranslationKey:{type:"string"}},additionalProperties:!1},z$e={type:"object",properties:{type:{type:"string",enum:["string","number","boolean","array","object"]},description:{type:"string"},example:{oneOf:[{type:"string"},{type:"number"},{type:"boolean"},{type:"array"},{type:"object"}]},enum:{type:"array",items:{type:"string"}},pattern:{type:"string"},format:{type:"string"},minimum:{type:"number"},maximum:{type:"number"},items:{type:"object"}},additionalProperties:!0},B$e={type:"object",required:["type","properties"],properties:{type:{type:"string",enum:["object"]},description:{type:"string"},properties:{type:"object",additionalProperties:z$e},required:{type:"array",items:{type:"string"}},additionalProperties:{type:"boolean"}},additionalProperties:!0},q$e={type:"object",required:["name","description","metadataSchema"],properties:{name:{type:"string",description:"Display name of the entity type"},description:{type:"string",description:"Description of the entity type"},metadataSchema:B$e,icon:{type:"object",properties:{src:{type:"string"},srcSet:{type:"string"}},additionalProperties:!1}},additionalProperties:!1},F$e={type:"object",additionalProperties:q$e},EY={type:"object",properties:{entityTypes:F$e,catalogs:{type:"object",properties:{all:bs,services:bs,domains:bs,teams:bs,users:bs,apiDescriptions:bs,dataSchemas:bs,apiOperations:bs},additionalProperties:bs}},additionalProperties:!1},Do={type:"object",properties:{imports:{type:"array",items:{type:"string"}},logo:uY,navbar:dY,products:fY,footer:hY,sidebar:pY,scripts:gY,links:mY,feedback:Zx,search:yY,colorMode:vY,navigation:bY,codeSnippet:OY,markdown:xY,openapi:c0,graphql:a0,analytics:wY,userMenu:CY,versionPicker:PY,breadcrumbs:kY,catalog:u0,entitiesCatalog:EY,catalogClassic:u0,scorecard:$Y},additionalProperties:!0},W$e="https://redocly.com/sso/teams";var d0;(function(t){t.OIDC="OIDC",t.SAML2="SAML2"})(d0||(d0={}));var f0;(function(t){t.SERVICE_ACCOUNT="SERVICE_ACCOUNT",t.OAUTH2="OAUTH2"})(f0||(f0={}));var RL;(function(t){t.STACKED="stacked",t.THREE_PANEL="three-panel"})(RL||(RL={}));const U$e=["partOf","hasParts","creates","createdBy","owns","ownedBy","implements","implementedBy","dependsOn","dependencyOf","uses","usedBy","produces","consumes","linksTo","supersedes","supersededBy","compatibleWith","extends","extendedBy","relatesTo","hasMember","memberOf","triggers","triggeredBy"];function K$(t,e){return Object.fromEntries(Object.entries(t).map(([r,n])=>{if(r!==e)return typeof n!="object"||!n?[r,n]:Array.isArray(n)?[r,n.map(i=>typeof i=="object"?K$(i,e):i)]:[r,K$(n,e)]}).filter(Boolean))}const X$e={type:"object",additionalProperties:{type:"string"}},Z$e={type:"object",additionalProperties:!1,patternProperties:{"^[a-zA-Z0-9_-]+$":{type:"string",pattern:"^https?://[^\\s/$.?#].[^\\s]*$"}}},Dm={type:"string",enum:["error","warn","off"]},G$e={type:"object",additionalProperties:!1,properties:{schemaCheck:Dm,statusCodeCheck:Dm,contentTypeCheck:Dm,successCriteriaCheck:Dm}},Y$e={type:"object",properties:{event:{type:"string",enum:["schedule"]},interval:{type:"string",enum:["1m","2m","5m","10m","15m","30m","1h","3h","6h","12h","1d","7d"]}},required:["event"],additionalProperties:!1},H$e={type:"object",properties:{event:{type:"string",enum:["build"]}},required:["event"],additionalProperties:!1},J$e={type:"object",properties:{ignoreLint:{oneOf:[{type:"boolean",default:!1},{type:"object",additionalProperties:{type:"boolean"}}]},ignoreLinkChecker:{type:"boolean"},ignoreMarkdocErrors:{type:"boolean"},ignoreRespectMonitoring:{type:"boolean"},jobs:{type:"array",items:{type:"object",properties:{path:{type:"string",pattern:"^(?!\\/|\\.\\./)"},agent:{type:"string",enum:["respect"]},trigger:{oneOf:[Y$e,H$e]},inputs:X$e,servers:Z$e,severity:G$e},required:["path","trigger","agent"],additionalProperties:!1}}},additionalProperties:!1},K$e={type:"object",properties:{end_session_endpoint:{type:"string"},token_endpoint:{type:"string"},authorization_endpoint:{type:"string"},jwks_uri:{type:"string"}},required:["token_endpoint","authorization_endpoint"],additionalProperties:!0},eEe={type:"object",properties:{type:{type:"string",const:d0.OIDC},title:{type:"string"},pkce:{type:"boolean",default:!1},configurationUrl:{type:"string",minLength:1},configuration:K$e,clientId:{type:"string",minLength:1},clientSecret:{type:"string",minLength:0},teamsClaimName:{type:"string"},teamsClaimMap:{type:"object",additionalProperties:{type:"string"}},defaultTeams:{type:"array",items:{type:"string"}},scopes:{type:"array",items:{type:"string"}},tokenExpirationTime:{type:"number"},authorizationRequestCustomParams:{type:"object",additionalProperties:{type:"string"}},introspectEndpoint:{type:"string"},tokenRequestCustomParams:{type:"object",additionalProperties:{type:"string"}},audience:{type:"array",items:{type:"string"}}},required:["type","clientId"],oneOf:[{required:["configurationUrl"]},{required:["configuration"]}],additionalProperties:!1},tEe={type:"object",properties:{type:{type:"string",const:d0.SAML2},title:{type:"string"},issuerId:{type:"string"},entityId:{type:"string"},ssoUrl:{type:"string"},x509PublicCert:{type:"string"},teamsAttributeName:{type:"string",default:W$e},teamsAttributeMap:{type:"object",additionalProperties:{type:"string"}},defaultTeams:{type:"array",items:{type:"string"}}},additionalProperties:!1,required:["type","issuerId","ssoUrl","x509PublicCert"]},rEe={oneOf:[eEe,tEe],discriminator:{propertyName:"type"}},nEe={type:"object",additionalProperties:rEe},iEe={oneOf:[{type:"array",items:{type:"string",enum:["REDOCLY","CORPORATE","GUEST"]},uniqueItems:!0},{type:"string",enum:["REDOCLY","CORPORATE","GUEST"]}]},oEe={type:"object",properties:{to:{type:"string"},type:{type:"number",default:301}},additionalProperties:!1},sEe={type:"object",additionalProperties:oEe,default:{}},AY={type:"object",properties:Object.assign(Object.assign(Object.assign(Object.assign({root:{type:"string"},output:{type:"string",pattern:"(.ya?ml|.json)$"},rbac:{type:"object",additionalProperties:!0},openapi:c0,graphql:a0,theme:{type:"object",properties:{openapi:c0,graphql:a0},additionalProperties:!1},title:{type:"string"},metadata:{type:"object",additionalProperties:!0}},KI),eT),tT),{extends:{type:"array",items:{type:"string"}}}),required:["root"]},aEe={type:"object",additionalProperties:!0},lEe={type:"object",additionalProperties:{type:"object",additionalProperties:!0}},jL={type:"object",properties:{hide:{type:"boolean",default:!1},title:{type:"string"},description:{type:"string"},details:{type:"object",properties:{path:{type:"string"},content:{type:"string"}},additionalProperties:!1},excludeFiles:{type:"array",items:{type:"string"},default:[]},sections:{type:"array",items:{type:"object",properties:{title:{type:"string"},description:{type:"string"},includeFiles:{type:"array",items:{type:"string"},default:[]},excludeFiles:{type:"array",items:{type:"string"},default:[]}},required:["title"],additionalProperties:!1}}},default:{hide:!1,title:void 0,description:void 0,details:void 0,sections:[{title:"Table of contents",includeFiles:["**/*"],excludeFiles:[]}]},additionalProperties:!1},DL={type:"object",properties:{title:{type:"string"},description:{type:"string"},siteUrl:{type:"string"},image:{type:"string"},keywords:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},lang:{type:"string"},jsonLd:{type:"object"},meta:{type:"array",items:{type:"object",properties:{name:{type:"string"},content:{type:"string"}},required:["name","content"],additionalProperties:!1}},llmstxt:jL},default:{llmstxt:jL.default},additionalProperties:!1},cEe={type:"object",properties:{folders:{type:"array",items:{type:"string"}}},additionalProperties:!1},vl={type:"object",additionalProperties:{type:"string"}},uEe={type:"object",properties:{teamNamePatterns:{type:"array",items:{type:"string"}},teamFolders:{type:"array",items:{type:"string"}},teamFoldersBaseRoles:vl,cms:vl,reunite:vl,features:{type:"object",properties:{aiSearch:vl},additionalProperties:!1},content:{type:"object",properties:{"**":vl},additionalProperties:vl}},additionalProperties:vl},dEe={type:"object",properties:{static:{type:"string"}},additionalProperties:!1,required:["static"]},fEe={type:"object",properties:{idp:{type:"string"}},additionalProperties:!1,required:["idp"]},hEe={type:"object",properties:{type:{type:"string",const:"GRAVITEE"},apiBaseUrl:{type:"string"},env:{type:"string"},allowApiProductsOutsideCatalog:{type:"boolean",default:!1},stage:{type:"string",default:"non-production"},auth:{oneOf:[dEe,fEe]}},additionalProperties:!1,required:["type","apiBaseUrl"]},pEe={type:"object",properties:{type:{type:"string",const:f0.OAUTH2},tokenEndpoint:{type:"string"},clientId:{type:"string"},clientSecret:{type:"string"}},additionalProperties:!1,required:["type","tokenEndpoint","clientId","clientSecret"]},gEe={type:"object",properties:{type:{type:"string",const:f0.SERVICE_ACCOUNT},serviceAccountEmail:{type:"string"},serviceAccountPrivateKey:{type:"string"}},additionalProperties:!1,required:["type","serviceAccountEmail","serviceAccountPrivateKey"]},eE={type:"object",properties:{type:{type:"string",const:"APIGEE_X"},apiUrl:{type:"string"},stage:{type:"string",default:"non-production"},organizationName:{type:"string"},ignoreApiProducts:{type:"array",items:{type:"string"}},allowApiProductsOutsideCatalog:{type:"boolean",default:!1},auth:{type:"object",oneOf:[pEe,gEe],discriminator:{propertyName:"type"}}},additionalProperties:!1,required:["type","organizationName","auth"]},mEe=Object.assign(Object.assign({},eE),{properties:Object.assign(Object.assign({},eE.properties),{type:{type:"string",const:"APIGEE_EDGE"}})}),yEe={type:"object",oneOf:[eE,mEe,hEe],discriminator:{propertyName:"type"}},vEe={type:"object",required:["adapters"],additionalProperties:!1,properties:{adapters:{type:"array",items:yEe}}},ML={type:"object",properties:{defaultLocale:{type:"string"},locales:{type:"array",items:{type:"object",properties:{code:{type:"string"},name:{type:"string"}},required:["code"]}}},additionalProperties:!1,required:["defaultLocale"]},bEe={type:"object",properties:{name:{type:"string"},value:{type:"string"}},additionalProperties:!1,required:["name","value"]},tE={type:"object",properties:Object.assign(Object.assign(Object.assign(Object.assign({imports:{type:"array",items:{type:"string"}},licenseKey:{type:"string"},redirects:sEe,seo:DL,rbac:uEe,apiFunctions:cEe,requiresLogin:{type:"boolean"},responseHeaders:{type:"object",additionalProperties:{type:"array",items:bEe}},mockServer:{type:"object",properties:{off:{type:"boolean",default:!1},position:{type:"string",enum:["first","last","replace","off"],default:"first"},strictExamples:{type:"boolean",default:!1},errorIfForcedExampleNotFound:{type:"boolean",default:!1},description:{type:"string"}}},apis:{type:"object",additionalProperties:AY},extends:{type:"array",items:{type:"string"}}},KI),tT),eT),{ssoDirect:nEe,sso:iEe,residency:{type:"string",pattern:"^https?://.*"},developerOnboarding:vEe,removeAttribution:{type:"boolean"},i18n:ML,l10n:ML,metadata:aEe,metadataGlobs:lEe,ignore:{type:"array",items:{type:"string"}},theme:Do,reunite:J$e,logo:uY,navbar:dY,products:fY,footer:hY,sidebar:pY,scripts:gY,links:mY,feedback:Zx,search:yY,colorMode:vY,navigation:bY,codeSnippet:OY,markdown:xY,openapi:c0,graphql:a0,analytics:wY,userMenu:CY,versionPicker:PY,breadcrumbs:kY,catalog:u0,entitiesCatalog:EY,catalogClassic:u0,scorecard:$Y}),default:{redirects:{},seo:DL.default},additionalProperties:!0},OEe=Object.assign(Object.assign({},K$(tE,"default")),{additionalProperties:!1});Object.assign(Object.assign({$id:"root-redocly-config"},tE),{properties:Object.assign(Object.assign({plugins:{type:"array",items:{type:"string"}}},tE.properties),{env:{type:"object",additionalProperties:OEe}}),default:{},additionalProperties:!1});const NL={type:"object",properties:{logo:Do.properties.logo,navbar:Do.properties.navbar,footer:Do.properties.footer,sidebar:Do.properties.sidebar,search:Do.properties.search,codeSnippet:Do.properties.codeSnippet,breadcrumbs:Do.properties.breadcrumbs,openapi:Do.properties.openapi,feedback:Do.properties.feedback,analytics:{type:"object",properties:{ga:SY}}},additionalProperties:!0,default:{}};Object.assign(Object.assign({},NL.properties),{apis:{type:"object",additionalProperties:AY},theme:NL});const xEe={type:"object",properties:{email:{type:"string",description:"Email of the user"}},required:["email"],additionalProperties:!0},SEe={type:"object",properties:{specType:{type:"string",enum:["jsonschema","openapi","asyncapi","avro","zod","graphql","protobuf","arazzo"],description:"Type of the API description"},descriptionFile:{type:"string",description:"Path to the file containing the API description"}},required:["specType","descriptionFile"],additionalProperties:!0},wEe={type:"object",properties:{method:{type:"string",enum:["GET","POST","PUT","DELETE","PATCH","MUTATION","QUERY","SUBSCRIBE","PUBLISH"],description:"HTTP method of the API operation"},path:{type:"string",description:"Path of the API operation"},payload:{type:"array",items:{type:"string",description:"Related dataSchema name"}},responses:{type:"array",items:{type:"string",description:"Related dataSchema name"}}},required:["method","path"],additionalProperties:!0},CEe={type:"object",properties:{specType:{type:"string",enum:["jsonschema","openapi","asyncapi","avro","zod","graphql","protobuf","arazzo"],description:"Specification type of the data schema"},schema:{type:"string",description:"Inline schema of the data structure"}},required:["specType","schema"],additionalProperties:!0},PEe={type:"object",properties:{slack:{type:"object",properties:{channels:{type:"array",items:{type:"object",properties:{name:{type:"string",minLength:2,maxLength:150},url:{type:"string"}},required:["name"],additionalProperties:!1}}},required:["channels"],additionalProperties:!1}},additionalProperties:!1},kEe={type:"object",properties:{label:{type:"string",minLength:2,maxLength:150},url:{type:"string"}},required:["label","url"],additionalProperties:!1},$Ee={type:"object",properties:{type:{type:"string",enum:U$e},key:{type:"string",minLength:2,maxLength:100}},required:["type","key"],additionalProperties:!1},kf={key:{type:"string",pattern:"^[a-z0-9]+(?:-[a-z0-9]+)*$",minLength:2,maxLength:150},title:{type:"string",minLength:2,maxLength:200},summary:{type:["string","null"],minLength:1,maxLength:500},tags:{type:["array","null"],items:{type:"string",minLength:1,maxLength:50}},git:{type:["array","null"],items:{type:"string"}},contact:{anyOf:[{type:"null"},PEe]},links:{anyOf:[{type:"null"},{type:"array",items:kEe}]},relations:{anyOf:[{type:"null"},{type:"array",items:$Ee}]}};Object.assign(Object.assign({},kf),{type:{const:"user"},metadata:xEe}),Object.assign(Object.assign({},kf),{type:{const:"api-operation"},metadata:wEe}),Object.assign(Object.assign({},kf),{type:{const:"data-schema"},metadata:CEe}),Object.assign(Object.assign({},kf),{type:{const:"api-description"},metadata:SEe}),Object.assign(Object.assign({},kf),{type:{enum:["service","domain","team"]},metadata:{type:["object","null"],additionalProperties:!0}});const EEe={"font-awesome":"https://cdn.redocly.com/icons/fa/7.0.0",code:"https://cdn.redocly.com/icons/code/5.24.0"};var vb={exports:{}};/* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress
|
|
514
514
|
* @license MIT */var AEe=vb.exports,LL;function IEe(){return LL||(LL=1,(function(t,e){(function(r,n){t.exports=n()})(AEe,function(){var r={};r.version="0.2.0";var n=r.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};r.configure=function(g){var p,y;for(p in g)y=g[p],y!==void 0&&g.hasOwnProperty(p)&&(n[p]=y);return this},r.status=null,r.set=function(g){var p=r.isStarted();g=i(g,n.minimum,1),r.status=g===1?null:g;var y=r.render(!p),v=y.querySelector(n.barSelector),b=n.speed,O=n.easing;return y.offsetWidth,a(function(S){n.positionUsing===""&&(n.positionUsing=r.getPositioningCSS()),l(v,s(g,b,O)),g===1?(l(y,{transition:"none",opacity:1}),y.offsetWidth,setTimeout(function(){l(y,{transition:"all "+b+"ms linear",opacity:0}),setTimeout(function(){r.remove(),S()},b)},b)):setTimeout(S,b)}),this},r.isStarted=function(){return typeof r.status=="number"},r.start=function(){r.status||r.set(0);var g=function(){setTimeout(function(){r.status&&(r.trickle(),g())},n.trickleSpeed)};return n.trickle&&g(),this},r.done=function(g){return!g&&!r.status?this:r.inc(.3+.5*Math.random()).set(1)},r.inc=function(g){var p=r.status;return p?(typeof g!="number"&&(g=(1-p)*i(Math.random()*p,.1,.95)),p=i(p+g,0,.994),r.set(p)):r.start()},r.trickle=function(){return r.inc(Math.random()*n.trickleRate)},(function(){var g=0,p=0;r.promise=function(y){return!y||y.state()==="resolved"?this:(p===0&&r.start(),g++,p++,y.always(function(){p--,p===0?(g=0,r.done()):r.set((g-p)/g)}),this)}})(),r.render=function(g){if(r.isRendered())return document.getElementById("nprogress");u(document.documentElement,"nprogress-busy");var p=document.createElement("div");p.id="nprogress",p.innerHTML=n.template;var y=p.querySelector(n.barSelector),v=g?"-100":o(r.status||0),b=document.querySelector(n.parent),O;return l(y,{transition:"all 0 linear",transform:"translate3d("+v+"%,0,0)"}),n.showSpinner||(O=p.querySelector(n.spinnerSelector),O&&h(O)),b!=document.body&&u(b,"nprogress-custom-parent"),b.appendChild(p),p},r.remove=function(){d(document.documentElement,"nprogress-busy"),d(document.querySelector(n.parent),"nprogress-custom-parent");var g=document.getElementById("nprogress");g&&h(g)},r.isRendered=function(){return!!document.getElementById("nprogress")},r.getPositioningCSS=function(){var g=document.body.style,p="WebkitTransform"in g?"Webkit":"MozTransform"in g?"Moz":"msTransform"in g?"ms":"OTransform"in g?"O":"";return p+"Perspective"in g?"translate3d":p+"Transform"in g?"translate":"margin"};function i(g,p,y){return g<p?p:g>y?y:g}function o(g){return(-1+g)*100}function s(g,p,y){var v;return n.positionUsing==="translate3d"?v={transform:"translate3d("+o(g)+"%,0,0)"}:n.positionUsing==="translate"?v={transform:"translate("+o(g)+"%,0)"}:v={"margin-left":o(g)+"%"},v.transition="all "+p+"ms "+y,v}var a=(function(){var g=[];function p(){var y=g.shift();y&&y(p)}return function(y){g.push(y),g.length==1&&p()}})(),l=(function(){var g=["Webkit","O","Moz","ms"],p={};function y(S){return S.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(x,w){return w.toUpperCase()})}function v(S){var x=document.body.style;if(S in x)return S;for(var w=g.length,P=S.charAt(0).toUpperCase()+S.slice(1),I;w--;)if(I=g[w]+P,I in x)return I;return S}function b(S){return S=y(S),p[S]||(p[S]=v(S))}function O(S,x,w){x=b(x),S.style[x]=w}return function(S,x){var w=arguments,P,I;if(w.length==2)for(P in x)I=x[P],I!==void 0&&x.hasOwnProperty(P)&&O(S,P,I);else O(S,w[1],w[2])}})();function c(g,p){var y=typeof g=="string"?g:f(g);return y.indexOf(" "+p+" ")>=0}function u(g,p){var y=f(g),v=y+p;c(y,p)||(g.className=v.substring(1))}function d(g,p){var y=f(g),v;c(g,p)&&(v=y.replace(" "+p+" "," "),g.className=v.substring(1,v.length-1))}function f(g){return(" "+(g.className||"")+" ").replace(/\s+/gi," ")}function h(g){g&&g.parentNode&&g.parentNode.removeChild(g)}return r})})(vb)),vb.exports}var TEe=IEe();const _Ee=ii(TEe);_Ee.configure({trickleSpeed:100,template:'<div class="bar" role="bar"><div class="peg"></div></div>'});var bb={exports:{}},REe=bb.exports,QL;function jEe(){return QL||(QL=1,(function(t,e){(function(r,n){n()})(REe,function(){function r(c,u){return typeof u>"u"?u={autoBom:!1}:typeof u!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),u={autoBom:!u}),u.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(c.type)?new Blob(["\uFEFF",c],{type:c.type}):c}function n(c,u,d){var f=new XMLHttpRequest;f.open("GET",c),f.responseType="blob",f.onload=function(){l(f.response,u,d)},f.onerror=function(){console.error("could not download file")},f.send()}function i(c){var u=new XMLHttpRequest;u.open("HEAD",c,!1);try{u.send()}catch{}return 200<=u.status&&299>=u.status}function o(c){try{c.dispatchEvent(new MouseEvent("click"))}catch{var u=document.createEvent("MouseEvents");u.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),c.dispatchEvent(u)}}var s=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof Ta=="object"&&Ta.global===Ta?Ta:void 0,a=s.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),l=s.saveAs||(typeof window!="object"||window!==s?function(){}:"download"in HTMLAnchorElement.prototype&&!a?function(c,u,d){var f=s.URL||s.webkitURL,h=document.createElement("a");u=u||c.name||"download",h.download=u,h.rel="noopener",typeof c=="string"?(h.href=c,h.origin===location.origin?o(h):i(h.href)?n(c,u,d):o(h,h.target="_blank")):(h.href=f.createObjectURL(c),setTimeout(function(){f.revokeObjectURL(h.href)},4e4),setTimeout(function(){o(h)},0))}:"msSaveOrOpenBlob"in navigator?function(c,u,d){if(u=u||c.name||"download",typeof c!="string")navigator.msSaveOrOpenBlob(r(c,d),u);else if(i(c))n(c,u,d);else{var f=document.createElement("a");f.href=c,f.target="_blank",setTimeout(function(){o(f)})}}:function(c,u,d,f){if(f=f||open("","_blank"),f&&(f.document.title=f.document.body.innerText="downloading..."),typeof c=="string")return n(c,u,d);var h=c.type==="application/octet-stream",g=/constructor/i.test(s.HTMLElement)||s.safari,p=/CriOS\/[\d]+/.test(navigator.userAgent);if((p||h&&g||a)&&typeof FileReader<"u"){var y=new FileReader;y.onloadend=function(){var O=y.result;O=p?O:O.replace(/^data:[^;]*;/,"data:attachment/file;"),f?f.location.href=O:location=O,f=null},y.readAsDataURL(c)}else{var v=s.URL||s.webkitURL,b=v.createObjectURL(c);f?f.location=b:location.href=b,f=null,setTimeout(function(){v.revokeObjectURL(b)},4e4)}});s.saveAs=l.saveAs=l,t.exports=l})})(bb)),bb.exports}jEe();const DEe=t=>{const{name:e,type:r,pack:n,mode:i,color:o,...s}=t,a=EEe[n||"font-awesome"],l=n==="code"?"":r?r+"/":"regular/",c=i==="background"?{backgroundImage:`url(${a}/${l}${e}.svg)`,backgroundRepeat:"no-repeat",backgroundPosition:"center",backgroundSize:"contain"}:{backgroundColor:o?JI(o):"currentColor",maskImage:`url(${a}/${l}${e}.svg)`,maskRepeat:"no-repeat",maskPosition:"center",maskSize:"contain"};return m.jsx("svg",{...s,style:{...c,display:"inline-block",verticalAlign:"middle"}})};R(DEe).attrs(()=>({"data-component-name":"icons/CDNIcon/CDNIcon"}))`
|
|
515
515
|
height: ${({size:t})=>t||"var(--icon-height, 1em)"};
|
|
516
516
|
width: ${({size:t})=>t||"var(--icon-width, 1em)"};
|
|
@@ -613,7 +613,7 @@ You should wrap it with \`css\` like this:
|
|
|
613
613
|
margin-left: -16.5px;
|
|
614
614
|
padding-left: 15.5px;
|
|
615
615
|
border-left: 1px solid var(--border-color-secondary);
|
|
616
|
-
`,UEe=(t,e={})=>({pattern:new RegExp(yc,"g"),component:({match:r})=>{const n=(r==null?void 0:r[1])||(r==null?void 0:r[2])||"",i=t.get().findLast(s=>s.name===n),o=s=>{t.set(a=>[...a.filter(l=>l.name!==s.name),s])};return m.jsx(QEe,{inputId:e.inputId,input:i,name:(r==null?void 0:r[0])??"",withPopover:e.withPopover??!0,onNewInput:o},crypto.randomUUID())}}),iT=(t,e,r={withPopover:!0})=>{const n=[...r.highlightPatterns??[],UEe(e,r)],i=[],o=new Set,s=(u,d)=>{for(let f=u;f<d;f++)if(o.has(f))return!1;return!0},a=(u,d)=>{for(let f=u;f<d;f++)o.add(f)};if(n.forEach(u=>{const d=typeof u.pattern=="string"?new RegExp(u.pattern,"g"):new RegExp(u.pattern.source,u.pattern.flags);let f;for(;(f=d.exec(t))!==null;){const h=f.index,g=f.index+f[0].length;s(h,g)&&(i.push({start:h,end:g,content:f[0],pattern:u,match:f}),a(h,g))}}),i.sort((u,d)=>u.start-d.start),!i.length)return t;let l=0;const c=i.flatMap(({start:u,end:d,content:f,pattern:h,match:g})=>{const p=t.slice(l,u);return l=d,[p.length?m.jsx(N.Fragment,{children:p},l):null,m.jsx(h.component,{content:f,match:g},crypto.randomUUID())]});return t.slice(l).length&&c.push(m.jsx(N.Fragment,{children:t.slice(l)},l+1)),c},h0=()=>({name:"",value:"",isSecret:!1}),cr=t=>U5+"$inputs."+t+JE,XEe=(t,e)=>e.inputs.find(r=>{var n;return r.get().name===((n=t.match(`^${yc}$`))==null?void 0:n[1])});function ZEe({environments:t,activeEnvironmentId:e}){const r=t.get().find(n=>n.name===e.get());return(r==null?void 0:r.inputs)||[]}function ma(t){const e=new RegExp(yc,"g"),r=new Set;if(!t)return r;for(const[n,i,o]of t.matchAll(e)){const s=i||o;s&&r.add(s)}return r}function GEe(t,e){return t.length===e.length&&t.sort().join()===e.sort().join()}function YEe(t,e){return t.every(r=>e.includes(r))}function HEe(t){switch(t){case"query":return xi.Query;case"cookie":return xi.Cookie;case"header":return xi.Header;default:return}}function JEe(t,e,r){const{security:n}=e.step,i=ZEe(t),{selectedSecuritySchemeId:o,securities:s}=n;if(!r)return!1;const l=sT(r).securities.filter(g=>g.securitySchemeId===o||!o),c=s.filter(g=>g.securitySchemeId===o),u=c.map(g=>g.securityType),d=l.map(g=>g.securityType);if(!GEe(u,d))return!0;let h=[];return c.forEach(g=>{var w,P,I;const p=g.securityType,y=(w=g[ge.OAuth2])==null?void 0:w.grantType,v=u.includes(p),b=l.find(E=>E.securityType===p),O=!b||KZ(g,b,eAe(p,y)),S=KEe(g,p,(P=g[ge.OAuth2])==null?void 0:P.grantType,i),x=!!(v&&b&&O&&S);h.push(!((I=r.security)!=null&&I.length)||x)}),h.includes(!1)}function KEe(t,e,r,n){var i,o;if(e===ge.OAuth2&&(r===me.AuthorizationCode||r===me.AuthorizationCodeWithPkce||r===me.Implicit)){const s=(i=t[ge.OAuth2][r])==null?void 0:i.availableScopes,a=ax((o=t[ge.OAuth2][r])==null?void 0:o.scopes,n);return YEe(a,s)}return!0}function eAe(t,e){return t===ge.APIKey?[`${ge.APIKey}/name`,`${ge.APIKey}/location`]:t===ge.OAuth2?[`${ge.OAuth2}/grantType`,...tAe(e)]:t===ge.OpenIDConnect?[`${ge.OpenIDConnect}/openIdConnectUrl`]:[]}function tAe(t){return t===me.ClientCredentials?[`${ge.OAuth2}/${me.ClientCredentials}/tokenUrl`]:t===me.Password?[`${ge.OAuth2}/${me.Password}/tokenUrl`]:t===me.Implicit?[`${ge.OAuth2}/${me.Implicit}/authorizationUrl`]:t===me.AuthorizationCode?[`${ge.OAuth2}/${me.AuthorizationCode}/tokenUrl`,`${ge.OAuth2}/${me.AuthorizationCode}/authorizationUrl`]:t===me.AuthorizationCodeWithPkce?[`${ge.OAuth2}/${me.AuthorizationCodeWithPkce}/tokenUrl`,`${ge.OAuth2}/${me.AuthorizationCodeWithPkce}/authorizationUrl`]:[]}function DY(t){const e=t.map(r=>{let n="";const i=[];return r.forEach((o,s)=>{n=s===0?`${o.id}`:`${n}_${o.id}`,i.push(o.id)}),{id:n,schemes:i}});return t.length?e:[nA]}function oT(t){return t.map(e=>{const r=e.map(n=>n.id).join("_");return e.map(n=>({...n,schemeId:r}))})}function sT(t){var n;const r=(t.security||[]).length?DY(t.security||[]):[nA];return{selectedSecuritySchemeId:(n=r[0])==null?void 0:n.id,securitySchemeVariants:r,securities:MY(t)}}function MY(t,e){const r=t.security||[];return r!=null&&r.length?oT(r).flat().map((i,o)=>NY(i,e==null?void 0:e[o])):[ta()]}function NY(t,e){var o,s,a,l;const r=e||ta();r.securitySchemeId=t.schemeId;const n=Hx(t);r.securityType=n;const i=t.id;if(t.id&&n!==ge.NoAuth&&(r[n].schemeName=t.id),n===ge.BasicAuth&&(r[ge.BasicAuth].username||(r[ge.BasicAuth].username=cr(i+q.SecurityVariablesEnvSuffix.Username)),r[ge.BasicAuth].password||(r[ge.BasicAuth].password=cr(i+q.SecurityVariablesEnvSuffix.Password))),n===ge.DigestAuth&&(r[ge.DigestAuth].username||(r[ge.DigestAuth].username=cr(i+q.SecurityVariablesEnvSuffix.Username)),r[ge.DigestAuth].password||(r[ge.DigestAuth].password=cr(i+q.SecurityVariablesEnvSuffix.Password))),n===ge.JWT&&!r[ge.JWT].token&&(r[ge.JWT].token=cr(i+q.SecurityVariablesEnvSuffix.JWTToken)),n===ge.APIKey&&!r[ge.APIKey].key){r[ge.APIKey].name=t.name||"",r[ge.APIKey].key=cr(i+q.SecurityVariablesEnvSuffix.APIKey);const c=HEe(t.in);c&&(r[ge.APIKey].location=c)}if(n===ge.OAuth2){const c=uT(t),u=cr(i+q.SecurityVariablesEnvSuffix.Token),d=r[ge.OAuth2];d.grantType=c[0],c.forEach(f=>{var h,g,p,y,v,b,O,S,x,w,P,I,E,M,V,U,X,J,te,oe,ae,ie,he,L,D,Q,_,k,T,j;f===me.AuthorizationCode&&!d[me.AuthorizationCode].accessToken&&(d[me.AuthorizationCode].accessToken=u,d[me.AuthorizationCode].clientId=cr(i+q.SecurityVariablesEnvSuffix.ClientId),d[me.AuthorizationCode].authorizationUrl=((g=(h=t.flows)==null?void 0:h.authorizationCode)==null?void 0:g.authorizationUrl)||"",d[me.AuthorizationCode].tokenUrl=((y=(p=t.flows)==null?void 0:p.authorizationCode)==null?void 0:y.tokenUrl)||"",d[me.AuthorizationCode].clientSecret=cr(i+q.SecurityVariablesEnvSuffix.ClientSecret),d[me.AuthorizationCode].availableScopes=Object.keys(((b=(v=t.flows)==null?void 0:v.authorizationCode)==null?void 0:b.scopes)||{})||[],d[me.AuthorizationCode].scopes=[...Ca(Object.keys(((S=(O=t.flows)==null?void 0:O.authorizationCode)==null?void 0:S.scopes)||{})||[]),et()]),f===me.AuthorizationCodeWithPkce&&!d[me.AuthorizationCodeWithPkce].accessToken&&(d[me.AuthorizationCodeWithPkce].accessToken=u,d[me.AuthorizationCodeWithPkce].clientId=cr(i+q.SecurityVariablesEnvSuffix.ClientId),d[me.AuthorizationCodeWithPkce].authorizationUrl=((w=(x=t.flows)==null?void 0:x.authorizationCode)==null?void 0:w.authorizationUrl)||"",d[me.AuthorizationCodeWithPkce].tokenUrl=((I=(P=t.flows)==null?void 0:P.authorizationCode)==null?void 0:I.tokenUrl)||"",d[me.AuthorizationCodeWithPkce].clientSecret=cr(i+q.SecurityVariablesEnvSuffix.ClientSecret),d[me.AuthorizationCodeWithPkce].availableScopes=Object.keys(((M=(E=t.flows)==null?void 0:E.authorizationCode)==null?void 0:M.scopes)||{})||[],d[me.AuthorizationCodeWithPkce].scopes=[...Ca(Object.keys(((U=(V=t.flows)==null?void 0:V.authorizationCode)==null?void 0:U.scopes)||{})||[]),et()]),f===me.ClientCredentials&&!d[me.ClientCredentials].accessToken&&(d[me.ClientCredentials].accessToken=u,d[me.ClientCredentials].clientId=cr(i+q.SecurityVariablesEnvSuffix.ClientId),d[me.ClientCredentials].clientSecret=cr(i+q.SecurityVariablesEnvSuffix.ClientSecret),d[me.ClientCredentials].tokenUrl=((J=(X=t.flows)==null?void 0:X.clientCredentials)==null?void 0:J.tokenUrl)||"",d[me.ClientCredentials].scopes=[...Ca(Object.keys(((oe=(te=t.flows)==null?void 0:te.clientCredentials)==null?void 0:oe.scopes)||{})||[]),et()]),f===me.ClientCredentialsWithJwtAssertion&&!d[me.ClientCredentialsWithJwtAssertion].accessToken&&(d[me.ClientCredentialsWithJwtAssertion].accessToken=u,d[me.ClientCredentialsWithJwtAssertion].clientId=cr(i+q.SecurityVariablesEnvSuffix.ClientId),d[me.ClientCredentialsWithJwtAssertion].clientAssertion=cr(i+q.SecurityVariablesEnvSuffix.ClientAssertion),d[me.ClientCredentialsWithJwtAssertion].scopes=[...Ca(Object.keys(((ie=(ae=t.flows)==null?void 0:ae.clientCredentials)==null?void 0:ie.scopes)||{})||[]),et()]),f===me.Implicit&&!d[me.Implicit].accessToken&&(d[me.Implicit].accessToken=u,d[me.Implicit].clientId=cr(i+q.SecurityVariablesEnvSuffix.ClientId),d[me.Implicit].authorizationUrl=((L=(he=t.flows)==null?void 0:he.implicit)==null?void 0:L.authorizationUrl)||"",d[me.Implicit].availableScopes=Object.keys(((Q=(D=t.flows)==null?void 0:D.implicit)==null?void 0:Q.scopes)||{})||[],d[me.Implicit].scopes=[...Ca(Object.keys(((k=(_=t.flows)==null?void 0:_.implicit)==null?void 0:k.scopes)||{})||[]),et()]),f===me.Password&&!d[me.Password].accessToken&&(d[me.Password].accessToken=u,d[me.Password].clientId=cr(i+q.SecurityVariablesEnvSuffix.ClientId),d[me.Password].clientSecret=cr(i+q.SecurityVariablesEnvSuffix.ClientSecret),d[me.Password].tokenUrl=((j=(T=t.flows)==null?void 0:T.password)==null?void 0:j.tokenUrl)||"")})}if(n===ge.OpenIDConnect){const c=cr(i+q.SecurityVariablesEnvSuffix.Token),u=r[ge.OpenIDConnect];u[me.AuthorizationCode].accessToken||(u[me.AuthorizationCode].accessToken=c,u[me.AuthorizationCode].clientId=cr(i+q.SecurityVariablesEnvSuffix.ClientId),u[me.AuthorizationCode].clientSecret=cr(i+q.SecurityVariablesEnvSuffix.ClientSecret),u[me.AuthorizationCode].tokenUrl=((s=(o=t.flows)==null?void 0:o.authorizationCode)==null?void 0:s.tokenUrl)||""),u[me.AuthorizationCodeWithPkce].accessToken||(u[me.AuthorizationCodeWithPkce].accessToken=c,u[me.AuthorizationCodeWithPkce].clientId=cr(i+q.SecurityVariablesEnvSuffix.ClientId),u[me.AuthorizationCodeWithPkce].clientSecret=cr(i+q.SecurityVariablesEnvSuffix.ClientSecret),u[me.AuthorizationCodeWithPkce].tokenUrl=((l=(a=t.flows)==null?void 0:a.authorizationCode)==null?void 0:l.tokenUrl)||""),u[me.Implicit].accessToken||(u[me.Implicit].accessToken=c,u[me.Implicit].clientId=cr(i+q.SecurityVariablesEnvSuffix.ClientId))}return r}function Bd(t,e){return t.filter(r=>r.securitySchemeId.get()===e||!e)}async function rAe(t,e,r,n,i){const o=await Promise.all(t.sourceDescriptions.map(async s=>({name:s.name,url:s.url,type:s.type,apiId:await iAe({projectPath:r,apiUrl:s.url,collectionId:e})})));return{...t,id:e,state:xt.Normal,sourceDescriptions:o,workflows:await Promise.all(t.workflows.map(async s=>({...s,state:xt.Normal,parameters:UL(s.parameters,s["x-replay-disabled-parameters"]),outputs:FL(s.outputs),steps:await Promise.all(s.steps.map(async a=>{var f;const l=a["x-operation"]??null,c=oAe(a,o,n);let u;if(c&&i){const h=n==null?void 0:n.find(g=>g.id===c.apiId);u=i(c.path,c.method,h)}delete a.operationId,delete a["x-operation"];const d=await fAe(a.requestBody,r);return{...a,state:xt.Normal,parameters:UL(a.parameters,a["x-replay-disabled-parameters"]),outputs:FL(a.outputs),successCriteria:((f=a.successCriteria)==null?void 0:f.map(h=>({...h,type:h.type??An.SIMPLE})))||[],requestBody:d,xOperation:l,security:dAe(a,u),operation:c}}))})))}}function nAe(t){return/^https?:\/\//i.test(t)}async function iAe({projectPath:t,apiUrl:e,collectionId:r}){if(nAe(e))return"";if(await Oi.isAbsolute(e))return await Oi.relative(t,e);const n=await Oi.resolve(await Oi.join(t,r,"..",e));return await Oi.relative(t,n)}function oAe(t,e,r){if(t["x-operation"])return null;const{path:n,method:i}=LY(t.operationPath),{operationId:o,apiId:s}=sAe({operationId:t.operationId,parsedSourceDescriptions:e}),a=r==null?void 0:r.find(l=>l.id===s);if(o&&a&&!n&&!i){const l=pAe(o,a);return{apiId:s,path:(l==null?void 0:l.path)??"",method:(l==null?void 0:l.method)??"",operationId:o}}return{apiId:s,path:n??"",method:i??"",operationId:o}}function sAe({operationId:t,parsedSourceDescriptions:e}){var s,a;if(!t)return{operationId:"",apiId:((s=e[0])==null?void 0:s.apiId)??""};const r=t.split(".");if(r.length===1)return{operationId:t,apiId:((a=e[0])==null?void 0:a.apiId)??""};const[,n,i=""]=r,o=e.find(({name:l})=>l===n);return{operationId:i,apiId:(o==null?void 0:o.apiId)??""}}function LY(t){if(!t)return{path:"",method:""};try{const e=t.split("#"),r=e.length>1?e[1]:e[0];if(!r)return{path:"",method:""};const n=r.split("/"),i=n.pop()||"";return{path:pI.unescape(n.pop()||""),method:i.toLowerCase()}}catch{return{path:"",method:""}}}function aAe(t){switch(t.type){case"apiKey":return ge.APIKey;case"oauth2":return ge.OAuth2;case"openIdConnect":return ge.OpenIDConnect;case"http":return t.scheme==="basic"?ge.BasicAuth:t.scheme==="digest"?ge.DigestAuth:t.scheme==="bearer"?ge.JWT:ge.NoAuth;default:return ge.NoAuth}}function QY(t){return{clientCredentials:me.ClientCredentials,authorizationCode:me.AuthorizationCode,implicit:me.Implicit,password:me.Password,clientCredentialsWithJwtAssertion:me.ClientCredentialsWithJwtAssertion,authorizationCodeWithPkce:me.AuthorizationCodeWithPkce}[t]??null}function lAe(t){return{query:xi.Query,header:xi.Header,cookie:xi.Cookie}[t.toLowerCase()]||xi.Header}function cAe(t){return{body:mn.Body,header:mn.Header,url:mn.URL}[t.toLowerCase()]||mn.URL}function VL(t,e){return Object.keys(t).reduce((r,n)=>{const i=QY(n);if(!i)return r;switch(i){case me.ClientCredentials:r[i]={...e[i],clientId:t[n].clientId??"",clientSecret:t[n].clientSecret??"",clientAssertion:t[n].clientAssertion??"",tokenUrl:t[n].tokenUrl??"",scopes:bl(t[n].scopes),accessToken:t[n].accessToken??""};break;case me.AuthorizationCode:r[i]={...e[i],clientId:t[n].clientId??"",clientSecret:t[n].clientSecret??"",tokenUrl:t[n].tokenUrl??"",authorizationUrl:t[n].authorizationUrl??"",callbackUrl:t[n].callbackUrl??"",availableScopes:t[n].availableScopes??[],scopes:bl(t[n].scopes),accessToken:t[n].accessToken??""};break;case me.Implicit:r[i]={...e[i],clientId:t[n].clientId??"",authorizationUrl:t[n].authorizationUrl??"",callbackUrl:t[n].callbackUrl??"",availableScopes:bl(t[n].availableScopes),scopes:bl(t[n].scopes),accessToken:t[n].accessToken??""};break;case me.Password:r[i]={...e[i],username:t[n].username??"",password:t[n].password??"",clientId:t[n].clientId??"",clientSecret:t[n].clientSecret??"",tokenUrl:t[n].tokenUrl??"",accessToken:t[n].accessToken??""};break;case me.ClientCredentialsWithJwtAssertion:r[i]={...e[i],clientId:t[n].clientId??"",clientSecret:t[n].clientSecret??"",clientAssertion:t[n].clientAssertion??"",tokenUrl:t[n].tokenUrl??"",scopes:bl(t[n].scopes),accessToken:t[n].accessToken??""};break;case me.AuthorizationCodeWithPkce:r[i]={...e[i],clientId:t[n].clientId??"",clientSecret:t[n].clientSecret??"",tokenUrl:t[n].tokenUrl??"",authorizationUrl:t[n].authorizationUrl??"",callbackUrl:t[n].callbackUrl??"",availableScopes:bl(t[n].availableScopes),scopes:bl(t[n].scopes),codeVerifier:t[n].codeVerifier??"",codeChallenge:t[n].codeChallenge??"",accessToken:t[n].accessToken??""};break}return r},e)}function zL(t,e,r){const i={...ta(),securityType:t},o=QY(Object.keys(r.flows||{})[0])??me.ClientCredentials;switch(t){case ge.BasicAuth:return{...i,[ge.BasicAuth]:{username:r.username,password:r.password}};case ge.JWT:return{...i,[ge.JWT]:{token:r.token}};case ge.DigestAuth:return{...i,[ge.DigestAuth]:{...i[ge.DigestAuth],username:r.username,password:r.password}};case ge.APIKey:return{...i,[ge.APIKey]:{location:lAe(e.in),name:e.name,key:r.apiKey}};case ge.OAuth2:return{...i,[ge.OAuth2]:{...i[ge.OAuth2],...VL(r.flows||{},i[ge.OAuth2]),authRequestExtraParams:BL(r.authRequestExtraParams),tokenRequestExtraParams:qL(r.tokenRequestExtraParams),grantType:o}};case ge.OpenIDConnect:return{...i,[ge.OpenIDConnect]:{...i[ge.OpenIDConnect],...VL(r.flows||{},i[ge.OpenIDConnect]),openIdConnectUrl:r.openIdConnectUrl,userInfoUrl:r.userInfoUrl,authRequestExtraParams:BL(r.authRequestExtraParams),tokenRequestExtraParams:qL(r.tokenRequestExtraParams),grantType:o}};default:return i}}function uAe(t,e){const r=new Set,n=t.map(o=>{if("scheme"in o){const a=aAe(o.scheme);return zL(a,o.scheme,o.values)}const s=e.find(a=>a.id===o.schemeName);if(s){const a=Hx(s),l=zL(a,s,o.values);return l.securitySchemeId=s.schemeId,r.add(s.schemeId),l}return ta()}),i=e.filter(o=>!r.has(o.schemeId)).map(o=>NY(o));return[...n,...i]}function dAe(t,e){var s;const r=t["x-security"]||[],n=oT((e==null?void 0:e.security)||[]).flat(),i=r.length?uAe(r,n):[ta()];return{securitySchemeVariants:DY((e==null?void 0:e.security)||[]),selectedSecuritySchemeId:((s=i[0])==null?void 0:s.securitySchemeId)??"",securities:i}}function bl(t){return(t||[]).map(e=>{const[r,n]=Object.entries(e)[0];return{id:crypto.randomUUID(),key:"",value:r,active:n}}).concat(et())}function BL(t){return(t||[]).map(e=>({id:crypto.randomUUID(),key:e.key??"",value:e.value??"",active:e.active??!0})).concat(et())}function qL(t){return(t||[]).map(e=>({id:crypto.randomUUID(),key:e.key??"",value:e.value??"",active:e.active??!0,sendIn:cAe(e.in)})).concat(rA())}function FL(t){if(!t)return[et()];const e=[];for(const r in t)e.push({id:crypto.randomUUID(),key:r,value:t[r],active:!0});return e.push(et()),e}const WL={query:"queryParameters",path:"pathParameters",header:"headers",cookie:"cookies"};function UL(t,e){if(!t)return{pathParameters:[et()],queryParameters:[et()],headers:[et()],cookies:[et()]};const r={pathParameters:[],queryParameters:[],headers:[],cookies:[]};for(const n of t)r[WL[n.in]].push({id:crypto.randomUUID(),key:n.name,value:n.value,active:!0});if(e)for(const n of e)r[WL[n.in]].push({id:crypto.randomUUID(),key:n.name,value:n.value,active:!1});return r.pathParameters.push(et()),r.queryParameters.push(et()),r.headers.push(et()),r.cookies.push(et()),r}async function fAe(t,e){const r=K5().body;if(!t)return r;switch(t.contentType){case"application/x-www-form-urlencoded":case"multipart/form-data":return{...r,type:t.contentType,formData:await hAe(t,e)};case"application/octet-stream":const n=t.payload?await VY(t.payload,e):[],i=n.length>0?await Up(n[0]):null;return{...r,type:t.contentType,binary:i};case"application/json":case"application/ld+json":return{...r,type:t.contentType,content:ZL(t.payload)};default:{const o=typeof t.payload=="string",s=t.contentType||(o?"text/plain":"application/json");return{...r,type:s,content:o?t.payload:ZL(t.payload)}}}}async function XL(t,e,r,n){const i=await VY(e,n),o=i.length>0||Array.isArray(e),s=o?await JZ(i):void 0;return{id:crypto.randomUUID(),key:t,value:o?"":e,type:o?"file":"text",active:r,files:s}}async function hAe(t,e){const r=K5().body.formData,n=t.contentType,i=t.payload?await Promise.all(Object.entries(t.payload).map(([a,l])=>XL(a,l,!0,e))):[],o=t["x-replay-disabled-payload"]?await Promise.all(Object.entries(t["x-replay-disabled-payload"]||{}).map(([a,l])=>XL(a,l,!1,e))):[];return{...r,[n]:[...i,...o,Ul()]}}function ZL(t){return t?JSON.stringify(t,null,2):""}function pAe(t,e){for(const r of Object.keys(e.paths)){const n=e.paths[r];for(const i of Object.keys(n)){const o=i.toLowerCase();if(["get","put","post","delete","options","head","patch","trace"].includes(o)){const s=n[o];if((s==null?void 0:s.operationId)===t)return{method:o,path:r}}}}return null}async function VY(t,e){return Array.isArray(t)?(await Promise.all(t.map(r=>GL(r,e)))).flat():typeof t=="string"?await GL(t,e):[]}async function GL(t,e){const r=/\$file\(['"](.+?)['"]\)/g,n=Array.from(t.matchAll(r));return Promise.all(n.map(i=>gAe(i[1],e)))}async function gAe(t,e){return await Oi.isAbsolute(t)?t:await Oi.resolve(await Oi.join(e,t))}const Ln=t=>!t||typeof t=="boolean"?{type:"object",properties:{}}:t.type?t:{...t,type:"object"},YL=(t,e,r)=>{if(!t.properties)return t;const n=t.properties[e],i=Ln(n);return{...t,properties:{...t.properties,[e]:{...i,...r}}}},mAe=(t,e,r)=>{if(!t.properties||e===r||!r.trim())return null;const n={...t.properties};return n[r]?null:(n[r]=n[e],delete n[e],{...t,properties:n})},yAe=(t,e)=>{if(!t.properties)return t;const r={...t.properties};return delete r[e],{...t,properties:r}},vAe=(t,e,r={type:"string"})=>{const n=t.properties||{};return{...t,type:"object",properties:{...n,[e]:r}}};function HL(t){const e=Object.assign({},...(t||[]).filter(({key:r,active:n})=>r&&n).map(r=>({[r.key]:r.value})));if(Object.keys(e).length!==0)return e}function JL(t){if(!t)return{};const e={queryParameters:"query",headers:"header",cookies:"cookie",pathParameters:"path"},r=[],n=[];return Object.keys(e).forEach(i=>{const o=i;t[o].forEach(s=>{if(!s.key)return;const a={name:s.key,in:e[o],value:s.value};s.active?r.push(a):n.push(a)})}),{parameters:r.length>0?r:void 0,"x-replay-disabled-parameters":n.length>0?n:void 0}}function bAe(t){const e=t==null?void 0:t.map(r=>({condition:r.condition,context:r.context,type:r.type==An.SIMPLE?void 0:r.type}));if((e==null?void 0:e.length)!==0)return e}function OAe(t){if(!(!t||t.length===0))return[...t]}async function zY(t,e){return t.absolutePath?`$file('${await Oi.relative(e,t.absolutePath)}')`:null}async function xAe(t,e){const{type:r,value:n,files:i}=t;switch(r){case"text":return n;case"file":let o=[];return i&&(o=(await Promise.all(Object.values(i).map(s=>zY(s,e)))).filter(s=>s!==null)),o.length===0?"":o.length===1?o[0]:o}}async function SAe(t,e){const r=t.type,n=t.formData[r],i={},o={};return await Promise.all(n.map(async s=>{const{key:a,active:l}=s;if(!a)return;const c=await xAe(s,e);l?i[a]=c:o[a]=c})),{payload:Object.keys(i).length>0?i:void 0,"x-replay-disabled-payload":Object.keys(o).length>0?o:void 0}}function wAe(t){if(!t)return t;try{const e=JSON.parse(t);return typeof e=="object"?e:t}catch{return t}}async function CAe(t,e){if(t)switch(t.type){case"application/x-www-form-urlencoded":case"multipart/form-data":return{contentType:t.type,...await SAe(t,e)};case"application/octet-stream":return{contentType:t.type,payload:t.binary?await zY(t.binary,e):null};case"application/json":case"application/ld+json":return t.content?{contentType:t.type,payload:wAe(t.content)}:void 0;default:return t.content?{contentType:t.type,payload:t.content}:void 0}}function PAe(t){return{...t.schemeName?{schemeName:t.schemeName}:{scheme:{type:"http",scheme:"basic"}},values:{username:t.username,password:t.password}}}function kAe(t){return{...t.schemeName?{schemeName:t.schemeName}:{scheme:{type:"apiKey",name:t.name,in:t.location.toLowerCase()}},values:{apiKey:t.key}}}function $Ae(t){return{...t.schemeName?{schemeName:t.schemeName}:{scheme:{type:"http",scheme:"bearer"}},values:{token:t.token}}}function EAe(t){return{...t.schemeName?{schemeName:t.schemeName}:{scheme:{type:"http",scheme:"digest"}},values:{username:t.username,password:t.password}}}function AAe(t){return{...t.schemeName?{schemeName:t.schemeName}:{scheme:{type:"openIdConnect"}},values:{openIdConnectUrl:t.openIdConnectUrl,userInfoUrl:t.userInfoUrl,authRequestExtraParams:BY(t.authRequestExtraParams),tokenRequestExtraParams:qY(t.tokenRequestExtraParams),flows:FY(t)}}}function IAe(t){return{...t.schemeName?{schemeName:t.schemeName}:{scheme:{type:"oauth2"}},values:{authRequestExtraParams:BY(t.authRequestExtraParams),tokenRequestExtraParams:qY(t.tokenRequestExtraParams),flows:FY(t)}}}function $f(t){return t.filter(e=>e.value).map(e=>({[e.value]:e.active}))}function BY(t){return t.filter(e=>e.value||e.key).map(e=>({key:e.key,value:e.value,active:e.active}))}function qY(t){return t.filter(e=>e.value||e.key).map(e=>({key:e.key,value:e.value,active:e.active,in:e.sendIn.toLowerCase()}))}function FY(t){let e;switch(t.grantType){case me.ClientCredentials:return e=t[me.ClientCredentials],{clientCredentials:{tokenUrl:e.tokenUrl,clientId:e.clientId,clientSecret:e.clientSecret,accessToken:e.accessToken,scopes:$f(e.scopes)}};case me.Implicit:return e=t[me.Implicit],{implicit:{authorizationUrl:e.authorizationUrl,clientId:e.clientId,callbackUrl:e.callbackUrl,scopes:$f(e.scopes),accessToken:e.accessToken}};case me.Password:return e=t[me.Password],{password:{tokenUrl:e.tokenUrl,username:e.username,password:e.password,clientId:e.clientId,clientSecret:e.clientSecret,accessToken:e.accessToken}};case me.AuthorizationCode:return e=t[me.AuthorizationCode],{authorizationCode:{tokenUrl:e.tokenUrl,authorizationUrl:e.authorizationUrl,clientId:e.clientId,clientSecret:e.clientSecret,callbackUrl:e.callbackUrl,scopes:$f(e.scopes),accessToken:e.accessToken}};case me.ClientCredentialsWithJwtAssertion:return e=t[me.ClientCredentialsWithJwtAssertion],{clientCredentialsWithJwtAssertion:{tokenUrl:e.tokenUrl,clientId:e.clientId,clientAssertion:e.clientAssertion,accessToken:e.accessToken,scopes:$f(e.scopes)}};case me.AuthorizationCodeWithPkce:return e=t[me.AuthorizationCodeWithPkce],{authorizationCodeWithPkce:{tokenUrl:e.tokenUrl,authorizationUrl:e.authorizationUrl,clientId:e.clientId,clientSecret:e.clientSecret,callbackUrl:e.callbackUrl,scopes:$f(e.scopes),accessToken:e.accessToken,codeVerifier:e.codeVerifier,codeChallenge:e.codeChallenge}}}}function TAe(t){const{securities:e,selectedSecuritySchemeId:r}=t,n=e.filter(i=>i.securityType!==ge.NoAuth&&i.securitySchemeId===r);return n.length?{"x-security":n.map(i=>{switch(i.securityType){case ge.OpenIDConnect:{const s=i[ge.OpenIDConnect];return AAe(s)}case ge.OAuth2:{const s=i[ge.OAuth2];return IAe(s)}case ge.APIKey:{const s=i[ge.APIKey];return kAe(s)}case ge.BasicAuth:{const s=i[ge.BasicAuth];return PAe(s)}case ge.DigestAuth:{const s=i[ge.DigestAuth];return EAe(s)}case ge.JWT:{const s=i[ge.JWT];return $Ae(s)}default:return null}}).filter(i=>i!==null)}:{"x-security":void 0}}async function _Ae(t,e){const{id:r,state:n,sourceDescriptions:i,workflows:o,...s}=t;return{arazzoObject:{...s,sourceDescriptions:i.map(a=>({name:a.name,url:a.url,type:a.type||"openapi"})),workflows:await Promise.all(o.map(async({parameters:a,dependsOn:l,outputs:c,state:u,steps:d,inputs:f,...h})=>({...h,dependsOn:OAe(l),outputs:HL(c),inputs:f?Ln(f):void 0,...JL(a),steps:await Promise.all(d.map(async({parameters:g,security:p,operation:y,requestBody:v,successCriteria:b,outputs:O,state:S,xOperation:x,...w})=>{const P=p.securities.filter(E=>E.securityType!==ge.NoAuth).length,I={operationId:void 0,operationPath:void 0,"x-operation":void 0};if(y){const E=t.sourceDescriptions.find(({apiId:M})=>M===y.apiId)||t.sourceDescriptions[0];if(y.operationId){const M=t.sourceDescriptions.length<=1;I.operationId=M?y.operationId:`$sourceDescriptions.${E.name}.${y.operationId}`}else I.operationPath=`{$sourceDescriptions.${E.name}.url}#/paths/${pI.escape(y.path)}/${y.method}`}else x&&(I["x-operation"]=x);return{...w,...I,...P?TAe(p):{},...JL(g),requestBody:await CAe(v,e),successCriteria:bAe(b),outputs:HL(O)}}))})))}}}class WY{constructor(e){xe(this,"itemIds",[]);this.storage=e}async parseMany(e,r){const i=(await Promise.all(e.map(async o=>{try{return await this.parse(o,r)}catch(s){return console.error(`Error parsing file ${o.filePath}:`,s),null}}))).filter(o=>o!==null);return this.itemIds=i.map(o=>o.id),i}async write(e){e.state!==xt.Draft&&await this.storage.set(e.id,await this.stringify(e))}async remove(e){await this.storage.remove(e)}async updateRoot(e,r){const n=e.actions;if(n){for(const o in n){const s=parseInt(o);switch(n[o]){case"D":await this.remove(this.itemIds[s]);break;case"I":case"U":await this.write(r[s]);break}}return}const i=this.itemIds.filter(o=>!r.some(s=>s.id===o));await Promise.all([...r.map(o=>this.write(o)),...i.map(o=>this.remove(o))])}async update(e,r){const i={path:e.path.slice(1),actions:e.actions};if(i.path.length===0&&await this.updateRoot(i,r),i.path.length>0){const o=i.path[0];i.path.length===1&&i.actions&&i.actions.id==="U"&&await this.remove(this.itemIds[o]),i.path[1]&&i.path[1]==="id"&&await this.remove(this.itemIds[o]),await this.write(r[o])}this.itemIds=r.map(o=>o.id)}}class RAe extends WY{constructor(e,r){super(e),this.convertOperationToReplayValue=r}parse(e,r){const n=e.filePath;return rAe(e.content,n,this.storage.baseDir,r,this.convertOperationToReplayValue)}async stringify(e){const{arazzoObject:r}=await _Ae(e,this.storage.baseDir);return el.dump(r)}}class jAe extends WY{parse(e){return{...e.content,id:e.filePath}}async stringify(e){const{id:r,...n}=e;return el.dump(n)}}class DAe{constructor(e){this.projectId=e}async get(){const e=this.getKey();return localStorage.getItem(e)??null}async set(e){const r=this.getKey();localStorage.setItem(r,e)}async remove(){const e=this.getKey();localStorage.removeItem(e)}getKey(){return`replay:secrets:${this.projectId}`}}class MAe{constructor(e,r,n){this.storage=e,this.filePath=r,this.defaultValue=n}async parse(e){return JSON.parse(e)}stringify(e){return JSON.stringify(e)}async read(){const e=await this.storage.get(this.filePath);return e?await this.parse(e):this.defaultValue}async write(e){return this.storage.set(this.filePath,this.stringify(e))}}const NAe=(t,e)=>({data:t,version:e});class nE extends MAe{constructor(e,r,n,i){super(e,r,n),this.version=i}async parse(e){const r=JSON.parse(e);return r.version!==this.version?this.defaultValue:r.data}stringify(e){return JSON.stringify(NAe(e,this.version))}}const KL=1,LAe="tabs.json";class QAe extends nE{constructor(e){super(e,LAe,co(O$),KL)}async parse(e){const r=JSON.parse(e);if(r.version!==KL)return co(O$);const n=await Promise.all(r.data.tabs.map(async i=>{if(i.data.type===Ue.Step){const o=i.data.step.requestBody.formData;o["multipart/form-data"]=await eQ(o["multipart/form-data"]),o["application/x-www-form-urlencoded"]=await eQ(o["application/x-www-form-urlencoded"]),i.data.step.requestBody.binary&&i.data.step.requestBody.binary.absolutePath&&(i.data.step.requestBody.binary=await Up(i.data.step.requestBody.binary.absolutePath))}return i}));return{...r.data,tabs:n}}stringify(e){return super.stringify({...e,tabs:e.tabs.map(r=>r.data.type===Ue.Step?{...r,data:{...r.data,response:null}}:r.data.type===Ue.WorkflowRun?{...r,data:{...r.data,result:null}}:r)})}}async function eQ(t){return Promise.all(t.map(async e=>{const r={...e};if(e.files){const n=e.files.map(i=>i.absolutePath).filter(i=>i!==null);r.files=await JZ(n)}return r}))}const VAe=1,zAe=1;class BAe{constructor(e,r){xe(this,"historyStorage");xe(this,"activeEnvironmentIdStorage");xe(this,"tabsStateStorage");xe(this,"environmentsStorage");xe(this,"collectionsStorage");xe(this,"apisStorage");xe(this,"isTauriApp",Qd());xe(this,"systemFilesStorage");xe(this,"localStorageSecretsProvider");xe(this,"userFilesStorage");this.project=e,this.convertOperationToReplayValue=r,this.localStorageSecretsProvider=new DAe(this.project.id),this.systemFilesStorage=this.isTauriApp?new WM(this.project.systemFilesDir):new BM(this.project.systemFilesDir),this.userFilesStorage=this.isTauriApp?new WM(this.project.userFilesDir):new BM(this.project.userFilesDir);const n=new Eve;this.historyStorage=new nE(this.systemFilesStorage,"history.json",[],VAe),this.activeEnvironmentIdStorage=new nE(this.systemFilesStorage,"active_environment_id.json",kx,zAe),this.tabsStateStorage=new QAe(this.systemFilesStorage),this.environmentsStorage=new Ave(this.userFilesStorage,this.localStorageSecretsProvider),this.collectionsStorage=new RAe(this.userFilesStorage,this.convertOperationToReplayValue),this.apisStorage=new jAe(this.isTauriApp?this.userFilesStorage:n)}async detectProjectFiles(){const r=(await this.userFilesStorage.ls()).filter(o=>/\.(ya?ml)$/.test(o)),n=[],i=[];return await Promise.all(r.map(async o=>{const s=await this.userFilesStorage.get(o);if(s)try{const a=el.load(s);typeof a=="object"&&a!==null&&(typeof a.openapi=="string"?n.push({filePath:o,content:a}):typeof a.arazzo=="string"&&i.push({filePath:o,content:a}))}catch(a){console.error(`Error parsing YAML file ${o}:`,a)}})),{apiFiles:n,collectionFiles:i}}async read(){const[e,r,n,i]=await Promise.all([this.historyStorage.read(),this.activeEnvironmentIdStorage.read(),this.tabsStateStorage.read(),this.environmentsStorage.read()]),{apiFiles:o,collectionFiles:s}=await this.detectProjectFiles(),a=await this.apisStorage.parseMany(o),l=await this.collectionsStorage.parseMany(s,a);return{project:this.project,history:e,activeEnvironmentId:r,tabsState:n,environments:i,apis:a,collections:l}}async update(e,r){switch(e.path[0]){case"history":this.historyStorage.write(r.history.get());break;case"activeEnvironmentId":this.activeEnvironmentIdStorage.write(r.activeEnvironmentId.get());break;case"tabsState":this.tabsStateStorage.write(r.tabsState.get());break;case"environments":this.environmentsStorage.write(r.environments.get());break;case"apis":this.isTauriApp&&await this.apisStorage.update(e,r.apis.get());break;case"collections":await this.collectionsStorage.update(e,r.collections.get());break}}}function UY(t=!1){let e,r=!1;return()=>({id:"RootStoragePlugin",onCreate:()=>({init:n=>async(i,o)=>{if(r||n.path.length>0)return{isInitialized:!1};if(r=!0,!t){e=new BAe(i,o);const s=await e.read();n.merge(s)}return r=!1,{isInitialized:!0}}}),onSet(n,i,o){r||t||e.update(i,o)}})}function XY({defaultEnvironments:t}={}){return structuredClone({project:{id:"default",userFilesDir:"default",systemFilesDir:"default"},history:[],tabsState:co(O$),activeEnvironmentId:kx,environments:t||nZ,collections:[],apis:[],requestController:null,apps:{apps:[],appsLoadingState:Qo.Idle},predefinedApiId:null,predefinedEnvironmentNames:new Set,predefinedInputNames:new Set})}const qAe=YE(XY(),Q5(ome({key:"replay-root-store"}),UY())),aT=N.createContext(qAe),FAe=aT.Provider;function Et(){const t=N.useContext(aT);return V5(t)}function qd(){const{tabsState:t}=Et(),e=N.useCallback(({type:n,collectionId:i,workflowId:o,stepId:s,historyId:a})=>t.tabs.findIndex(l=>{const c=l.data.get();return yn(c,n)?(!i||c.collectionId===i)&&(!o||c.workflowId===o)&&(!s||c.stepId===s)&&(!a||c.historyId===a):!1}),[t]),r=N.useCallback(({type:n,collectionId:i,workflowId:o,stepId:s,historyId:a})=>{const l=e({type:n,collectionId:i,workflowId:o,stepId:s,historyId:a});return l!==-1?t.tabs[l]:void 0},[e,t]);return{tabs:t.tabs,activeTabIdx:t.activeTabIdx,getExistingTabIndex:e,getExistingTab:r}}function yn(t,e){return t.type===e}const Yx=Bge({});let tQ=null;function ZY(t){tQ!==t&&(tQ=t,Yx.configure({validate:!0,schemas:[{uri:"stub://test",fileMatch:["*"],schema:t}]}))}function GY(t){const e=d$.create("stub.json","json",0,t),r=Yx.parseJSONDocument(e);return{textDoc:e,jsonDoc:r}}const YY=Vr.define({create(){},update(t){return t}}),HY=t=>t.field(YY,!1),WAe=({store:t,isResponse:e,apiOperation:r})=>{var s,a,l,c,u,d,f,h;const i=pT(t).data.get();let o=(l=(a=(s=r==null?void 0:r.body)==null?void 0:s.mediaTypes)==null?void 0:a[vn.JSON])==null?void 0:l.schema;if(yn(i,Ue.Step)&&e){const g=(c=i.response)==null?void 0:c.status;g&&(o=(h=(f=(d=(u=r==null?void 0:r.responses)==null?void 0:u[g])==null?void 0:d.mediaTypes)==null?void 0:f[vn.JSON])==null?void 0:h.schema)}return[YY.init(()=>({schema:co(o||{}),store:t}))]};function UAe(){return async t=>{const{schema:e,store:r}=HY(t.state)||{};if(!e)return[];ZY(e);const n=t.state.doc,{content:i,sourceMap:o}=DIe(n.toString(),r),{textDoc:s,jsonDoc:a}=GY(i),l=await Yx.doValidation(s,a);return l==null?void 0:l.map(c=>{const u=HAe(s,c.range.start,o),d=u<0?0:u;return{from:d,to:d+s.offsetAt(c.range.end)-s.offsetAt(c.range.start),message:c.message,severity:GAe[c.severity||3]}})}}const XAe=Wi.highest(Rd.of([{key:"Tab",run:t=>PU(t)}]));function ZAe(){return async function(e){const r={from:e.pos,to:e.pos,options:[],filter:!1},{schema:n}=HY(e.state)||{};if(!n)return r;ZY(n);const i=e.state.doc,o=YAe.bind(null,i),{textDoc:s,jsonDoc:a}=GY(i.toString()),l=e.state.doc.lineAt(e.pos),c=l.number-1,u=e.pos-l.from,d=await Yx.doComplete(s,{line:c,character:u},a);if(!d)return r;const f=e.state.sliceDoc(l.from,e.pos);if(f.trim().endsWith(",")||JAe(f))return r;r.options=d.items.map(p=>({label:p.label,info:p.documentation,apply:y=>{if(!p.textEdit||!("range"in p.textEdit))return;const v=p.textEdit.range,b=p.textEdit.newText.search(/(\$1|\${1:.*?})/);let O=p.textEdit.newText.replace(/(\$1|\${1:.*?})/,"");const S=b===-1?0:b-O.length;y.dispatch({changes:{from:o(v.start),to:o(v.end),insert:O}});const x=O.length-(v.end.character-v.start.character);y.dispatch({selection:ve.single(o(v.end)+x+S)})}}))||[];const h=e.state.wordAt(e.pos),g=h!=null&&h.from?e.state.sliceDoc(h==null?void 0:h.from,h==null?void 0:h.to).toLowerCase():"";return g&&(r.options=r.options.filter(p=>p.label.toLowerCase().replace(/^"/,"").startsWith(g))),r}}const GAe={1:"error",2:"warning",3:"info",4:"hint"};function YAe(t,e){return t.line(e.line+1).from+e.character}function HAe(t,e,r){let n=t.offsetAt(e);for(const i of r)n>i.pos&&(n-=i.offset);return n}function JAe(t){try{return JSON.parse(`{${t}}`),!0}catch{return!1}}const JY=He.define();function Fd(t){var r;const e=t.activeEnvironmentId.get();return((r=t.environments.find(n=>n.name.get()===e))==null?void 0:r.get())||t.environments[0].get()}function rQ(t){return new wA({regexp:new RegExp(yc,"g"),decoration:e=>{const r=Fd(t.store),n=e[1]||e[2],i=r==null?void 0:r.inputs,o=i==null?void 0:i.find(a=>a.name===n),s=!(o!=null&&o.value);return nt.mark({attributes:{style:`color: var(--replay-${s?"undefined":"defined"}-variable-color);
|
|
616
|
+
`,UEe=(t,e={})=>({pattern:new RegExp(yc,"g"),component:({match:r})=>{const n=(r==null?void 0:r[1])||(r==null?void 0:r[2])||"",i=t.get().findLast(s=>s.name===n),o=s=>{t.set(a=>[...a.filter(l=>l.name!==s.name),s])};return m.jsx(QEe,{inputId:e.inputId,input:i,name:(r==null?void 0:r[0])??"",withPopover:e.withPopover??!0,onNewInput:o},crypto.randomUUID())}}),iT=(t,e,r={withPopover:!0})=>{const n=[...r.highlightPatterns??[],UEe(e,r)],i=[],o=new Set,s=(u,d)=>{for(let f=u;f<d;f++)if(o.has(f))return!1;return!0},a=(u,d)=>{for(let f=u;f<d;f++)o.add(f)};if(n.forEach(u=>{const d=typeof u.pattern=="string"?new RegExp(u.pattern,"g"):new RegExp(u.pattern.source,u.pattern.flags);let f;for(;(f=d.exec(t))!==null;){const h=f.index,g=f.index+f[0].length;s(h,g)&&(i.push({start:h,end:g,content:f[0],pattern:u,match:f}),a(h,g))}}),i.sort((u,d)=>u.start-d.start),!i.length)return t;let l=0;const c=i.flatMap(({start:u,end:d,content:f,pattern:h,match:g})=>{const p=t.slice(l,u);return l=d,[p.length?m.jsx(N.Fragment,{children:p},l):null,m.jsx(h.component,{content:f,match:g},crypto.randomUUID())]});return t.slice(l).length&&c.push(m.jsx(N.Fragment,{children:t.slice(l)},l+1)),c},h0=()=>({name:"",value:"",isSecret:!1}),cr=t=>U5+"$inputs."+t+JE,XEe=(t,e)=>e.inputs.find(r=>{var n;return r.get().name===((n=t.match(`^${yc}$`))==null?void 0:n[1])});function ZEe({environments:t,activeEnvironmentId:e}){const r=t.get().find(n=>n.name===e.get());return(r==null?void 0:r.inputs)||[]}function ma(t){const e=new RegExp(yc,"g"),r=new Set;if(!t)return r;for(const[n,i,o]of t.matchAll(e)){const s=i||o;s&&r.add(s)}return r}function GEe(t,e){return t.length===e.length&&t.sort().join()===e.sort().join()}function YEe(t,e){return t.every(r=>e.includes(r))}function HEe(t){switch(t){case"query":return xi.Query;case"cookie":return xi.Cookie;case"header":return xi.Header;default:return}}function JEe(t,e,r){const{security:n}=e.step,i=ZEe(t),{selectedSecuritySchemeId:o,securities:s}=n;if(!r)return!1;const l=sT(r).securities.filter(g=>g.securitySchemeId===o||!o),c=s.filter(g=>g.securitySchemeId===o),u=c.map(g=>g.securityType),d=l.map(g=>g.securityType);if(!GEe(u,d))return!0;let h=[];return c.forEach(g=>{var w,P,I;const p=g.securityType,y=(w=g[ge.OAuth2])==null?void 0:w.grantType,v=u.includes(p),b=l.find(E=>E.securityType===p),O=!b||K9(g,b,eAe(p,y)),S=KEe(g,p,(P=g[ge.OAuth2])==null?void 0:P.grantType,i),x=!!(v&&b&&O&&S);h.push(!((I=r.security)!=null&&I.length)||x)}),h.includes(!1)}function KEe(t,e,r,n){var i,o;if(e===ge.OAuth2&&(r===me.AuthorizationCode||r===me.AuthorizationCodeWithPkce||r===me.Implicit)){const s=(i=t[ge.OAuth2][r])==null?void 0:i.availableScopes,a=ax((o=t[ge.OAuth2][r])==null?void 0:o.scopes,n);return YEe(a,s)}return!0}function eAe(t,e){return t===ge.APIKey?[`${ge.APIKey}/name`,`${ge.APIKey}/location`]:t===ge.OAuth2?[`${ge.OAuth2}/grantType`,...tAe(e)]:t===ge.OpenIDConnect?[`${ge.OpenIDConnect}/openIdConnectUrl`]:[]}function tAe(t){return t===me.ClientCredentials?[`${ge.OAuth2}/${me.ClientCredentials}/tokenUrl`]:t===me.Password?[`${ge.OAuth2}/${me.Password}/tokenUrl`]:t===me.Implicit?[`${ge.OAuth2}/${me.Implicit}/authorizationUrl`]:t===me.AuthorizationCode?[`${ge.OAuth2}/${me.AuthorizationCode}/tokenUrl`,`${ge.OAuth2}/${me.AuthorizationCode}/authorizationUrl`]:t===me.AuthorizationCodeWithPkce?[`${ge.OAuth2}/${me.AuthorizationCodeWithPkce}/tokenUrl`,`${ge.OAuth2}/${me.AuthorizationCodeWithPkce}/authorizationUrl`]:[]}function DY(t){const e=t.map(r=>{let n="";const i=[];return r.forEach((o,s)=>{n=s===0?`${o.id}`:`${n}_${o.id}`,i.push(o.id)}),{id:n,schemes:i}});return t.length?e:[nA]}function oT(t){return t.map(e=>{const r=e.map(n=>n.id).join("_");return e.map(n=>({...n,schemeId:r}))})}function sT(t){var n;const r=(t.security||[]).length?DY(t.security||[]):[nA];return{selectedSecuritySchemeId:(n=r[0])==null?void 0:n.id,securitySchemeVariants:r,securities:MY(t)}}function MY(t,e){const r=t.security||[];return r!=null&&r.length?oT(r).flat().map((i,o)=>NY(i,e==null?void 0:e[o])):[ta()]}function NY(t,e){var o,s,a,l;const r=e||ta();r.securitySchemeId=t.schemeId;const n=Hx(t);r.securityType=n;const i=t.id;if(t.id&&n!==ge.NoAuth&&(r[n].schemeName=t.id),n===ge.BasicAuth&&(r[ge.BasicAuth].username||(r[ge.BasicAuth].username=cr(i+q.SecurityVariablesEnvSuffix.Username)),r[ge.BasicAuth].password||(r[ge.BasicAuth].password=cr(i+q.SecurityVariablesEnvSuffix.Password))),n===ge.DigestAuth&&(r[ge.DigestAuth].username||(r[ge.DigestAuth].username=cr(i+q.SecurityVariablesEnvSuffix.Username)),r[ge.DigestAuth].password||(r[ge.DigestAuth].password=cr(i+q.SecurityVariablesEnvSuffix.Password))),n===ge.JWT&&!r[ge.JWT].token&&(r[ge.JWT].token=cr(i+q.SecurityVariablesEnvSuffix.JWTToken)),n===ge.APIKey&&!r[ge.APIKey].key){r[ge.APIKey].name=t.name||"",r[ge.APIKey].key=cr(i+q.SecurityVariablesEnvSuffix.APIKey);const c=HEe(t.in);c&&(r[ge.APIKey].location=c)}if(n===ge.OAuth2){const c=uT(t),u=cr(i+q.SecurityVariablesEnvSuffix.Token),d=r[ge.OAuth2];d.grantType=c[0],c.forEach(f=>{var h,g,p,y,v,b,O,S,x,w,P,I,E,M,V,U,X,J,te,oe,ae,ie,he,L,D,Q,_,k,T,j;f===me.AuthorizationCode&&!d[me.AuthorizationCode].accessToken&&(d[me.AuthorizationCode].accessToken=u,d[me.AuthorizationCode].clientId=cr(i+q.SecurityVariablesEnvSuffix.ClientId),d[me.AuthorizationCode].authorizationUrl=((g=(h=t.flows)==null?void 0:h.authorizationCode)==null?void 0:g.authorizationUrl)||"",d[me.AuthorizationCode].tokenUrl=((y=(p=t.flows)==null?void 0:p.authorizationCode)==null?void 0:y.tokenUrl)||"",d[me.AuthorizationCode].clientSecret=cr(i+q.SecurityVariablesEnvSuffix.ClientSecret),d[me.AuthorizationCode].availableScopes=Object.keys(((b=(v=t.flows)==null?void 0:v.authorizationCode)==null?void 0:b.scopes)||{})||[],d[me.AuthorizationCode].scopes=[...Ca(Object.keys(((S=(O=t.flows)==null?void 0:O.authorizationCode)==null?void 0:S.scopes)||{})||[]),et()]),f===me.AuthorizationCodeWithPkce&&!d[me.AuthorizationCodeWithPkce].accessToken&&(d[me.AuthorizationCodeWithPkce].accessToken=u,d[me.AuthorizationCodeWithPkce].clientId=cr(i+q.SecurityVariablesEnvSuffix.ClientId),d[me.AuthorizationCodeWithPkce].authorizationUrl=((w=(x=t.flows)==null?void 0:x.authorizationCode)==null?void 0:w.authorizationUrl)||"",d[me.AuthorizationCodeWithPkce].tokenUrl=((I=(P=t.flows)==null?void 0:P.authorizationCode)==null?void 0:I.tokenUrl)||"",d[me.AuthorizationCodeWithPkce].clientSecret=cr(i+q.SecurityVariablesEnvSuffix.ClientSecret),d[me.AuthorizationCodeWithPkce].availableScopes=Object.keys(((M=(E=t.flows)==null?void 0:E.authorizationCode)==null?void 0:M.scopes)||{})||[],d[me.AuthorizationCodeWithPkce].scopes=[...Ca(Object.keys(((U=(V=t.flows)==null?void 0:V.authorizationCode)==null?void 0:U.scopes)||{})||[]),et()]),f===me.ClientCredentials&&!d[me.ClientCredentials].accessToken&&(d[me.ClientCredentials].accessToken=u,d[me.ClientCredentials].clientId=cr(i+q.SecurityVariablesEnvSuffix.ClientId),d[me.ClientCredentials].clientSecret=cr(i+q.SecurityVariablesEnvSuffix.ClientSecret),d[me.ClientCredentials].tokenUrl=((J=(X=t.flows)==null?void 0:X.clientCredentials)==null?void 0:J.tokenUrl)||"",d[me.ClientCredentials].scopes=[...Ca(Object.keys(((oe=(te=t.flows)==null?void 0:te.clientCredentials)==null?void 0:oe.scopes)||{})||[]),et()]),f===me.ClientCredentialsWithJwtAssertion&&!d[me.ClientCredentialsWithJwtAssertion].accessToken&&(d[me.ClientCredentialsWithJwtAssertion].accessToken=u,d[me.ClientCredentialsWithJwtAssertion].clientId=cr(i+q.SecurityVariablesEnvSuffix.ClientId),d[me.ClientCredentialsWithJwtAssertion].clientAssertion=cr(i+q.SecurityVariablesEnvSuffix.ClientAssertion),d[me.ClientCredentialsWithJwtAssertion].scopes=[...Ca(Object.keys(((ie=(ae=t.flows)==null?void 0:ae.clientCredentials)==null?void 0:ie.scopes)||{})||[]),et()]),f===me.Implicit&&!d[me.Implicit].accessToken&&(d[me.Implicit].accessToken=u,d[me.Implicit].clientId=cr(i+q.SecurityVariablesEnvSuffix.ClientId),d[me.Implicit].authorizationUrl=((L=(he=t.flows)==null?void 0:he.implicit)==null?void 0:L.authorizationUrl)||"",d[me.Implicit].availableScopes=Object.keys(((Q=(D=t.flows)==null?void 0:D.implicit)==null?void 0:Q.scopes)||{})||[],d[me.Implicit].scopes=[...Ca(Object.keys(((k=(_=t.flows)==null?void 0:_.implicit)==null?void 0:k.scopes)||{})||[]),et()]),f===me.Password&&!d[me.Password].accessToken&&(d[me.Password].accessToken=u,d[me.Password].clientId=cr(i+q.SecurityVariablesEnvSuffix.ClientId),d[me.Password].clientSecret=cr(i+q.SecurityVariablesEnvSuffix.ClientSecret),d[me.Password].tokenUrl=((j=(T=t.flows)==null?void 0:T.password)==null?void 0:j.tokenUrl)||"")})}if(n===ge.OpenIDConnect){const c=cr(i+q.SecurityVariablesEnvSuffix.Token),u=r[ge.OpenIDConnect];u[me.AuthorizationCode].accessToken||(u[me.AuthorizationCode].accessToken=c,u[me.AuthorizationCode].clientId=cr(i+q.SecurityVariablesEnvSuffix.ClientId),u[me.AuthorizationCode].clientSecret=cr(i+q.SecurityVariablesEnvSuffix.ClientSecret),u[me.AuthorizationCode].tokenUrl=((s=(o=t.flows)==null?void 0:o.authorizationCode)==null?void 0:s.tokenUrl)||""),u[me.AuthorizationCodeWithPkce].accessToken||(u[me.AuthorizationCodeWithPkce].accessToken=c,u[me.AuthorizationCodeWithPkce].clientId=cr(i+q.SecurityVariablesEnvSuffix.ClientId),u[me.AuthorizationCodeWithPkce].clientSecret=cr(i+q.SecurityVariablesEnvSuffix.ClientSecret),u[me.AuthorizationCodeWithPkce].tokenUrl=((l=(a=t.flows)==null?void 0:a.authorizationCode)==null?void 0:l.tokenUrl)||""),u[me.Implicit].accessToken||(u[me.Implicit].accessToken=c,u[me.Implicit].clientId=cr(i+q.SecurityVariablesEnvSuffix.ClientId))}return r}function Bd(t,e){return t.filter(r=>r.securitySchemeId.get()===e||!e)}async function rAe(t,e,r,n,i){const o=await Promise.all(t.sourceDescriptions.map(async s=>({name:s.name,url:s.url,type:s.type,apiId:await iAe({projectPath:r,apiUrl:s.url,collectionId:e})})));return{...t,id:e,state:xt.Normal,sourceDescriptions:o,workflows:await Promise.all(t.workflows.map(async s=>({...s,state:xt.Normal,parameters:UL(s.parameters,s["x-replay-disabled-parameters"]),outputs:FL(s.outputs),steps:await Promise.all(s.steps.map(async a=>{var f;const l=a["x-operation"]??null,c=oAe(a,o,n);let u;if(c&&i){const h=n==null?void 0:n.find(g=>g.id===c.apiId);u=i(c.path,c.method,h)}delete a.operationId,delete a["x-operation"];const d=await fAe(a.requestBody,r);return{...a,state:xt.Normal,parameters:UL(a.parameters,a["x-replay-disabled-parameters"]),outputs:FL(a.outputs),successCriteria:((f=a.successCriteria)==null?void 0:f.map(h=>({...h,type:h.type??An.SIMPLE})))||[],requestBody:d,xOperation:l,security:dAe(a,u),operation:c}}))})))}}function nAe(t){return/^https?:\/\//i.test(t)}async function iAe({projectPath:t,apiUrl:e,collectionId:r}){if(nAe(e))return"";if(await Oi.isAbsolute(e))return await Oi.relative(t,e);const n=await Oi.resolve(await Oi.join(t,r,"..",e));return await Oi.relative(t,n)}function oAe(t,e,r){if(t["x-operation"])return null;const{path:n,method:i}=LY(t.operationPath),{operationId:o,apiId:s}=sAe({operationId:t.operationId,parsedSourceDescriptions:e}),a=r==null?void 0:r.find(l=>l.id===s);if(o&&a&&!n&&!i){const l=pAe(o,a);return{apiId:s,path:(l==null?void 0:l.path)??"",method:(l==null?void 0:l.method)??"",operationId:o}}return{apiId:s,path:n??"",method:i??"",operationId:o}}function sAe({operationId:t,parsedSourceDescriptions:e}){var s,a;if(!t)return{operationId:"",apiId:((s=e[0])==null?void 0:s.apiId)??""};const r=t.split(".");if(r.length===1)return{operationId:t,apiId:((a=e[0])==null?void 0:a.apiId)??""};const[,n,i=""]=r,o=e.find(({name:l})=>l===n);return{operationId:i,apiId:(o==null?void 0:o.apiId)??""}}function LY(t){if(!t)return{path:"",method:""};try{const e=t.split("#"),r=e.length>1?e[1]:e[0];if(!r)return{path:"",method:""};const n=r.split("/"),i=n.pop()||"";return{path:pI.unescape(n.pop()||""),method:i.toLowerCase()}}catch{return{path:"",method:""}}}function aAe(t){switch(t.type){case"apiKey":return ge.APIKey;case"oauth2":return ge.OAuth2;case"openIdConnect":return ge.OpenIDConnect;case"http":return t.scheme==="basic"?ge.BasicAuth:t.scheme==="digest"?ge.DigestAuth:t.scheme==="bearer"?ge.JWT:ge.NoAuth;default:return ge.NoAuth}}function QY(t){return{clientCredentials:me.ClientCredentials,authorizationCode:me.AuthorizationCode,implicit:me.Implicit,password:me.Password,clientCredentialsWithJwtAssertion:me.ClientCredentialsWithJwtAssertion,authorizationCodeWithPkce:me.AuthorizationCodeWithPkce}[t]??null}function lAe(t){return{query:xi.Query,header:xi.Header,cookie:xi.Cookie}[t.toLowerCase()]||xi.Header}function cAe(t){return{body:mn.Body,header:mn.Header,url:mn.URL}[t.toLowerCase()]||mn.URL}function VL(t,e){return Object.keys(t).reduce((r,n)=>{const i=QY(n);if(!i)return r;switch(i){case me.ClientCredentials:r[i]={...e[i],clientId:t[n].clientId??"",clientSecret:t[n].clientSecret??"",clientAssertion:t[n].clientAssertion??"",tokenUrl:t[n].tokenUrl??"",scopes:bl(t[n].scopes),accessToken:t[n].accessToken??""};break;case me.AuthorizationCode:r[i]={...e[i],clientId:t[n].clientId??"",clientSecret:t[n].clientSecret??"",tokenUrl:t[n].tokenUrl??"",authorizationUrl:t[n].authorizationUrl??"",callbackUrl:t[n].callbackUrl??"",availableScopes:t[n].availableScopes??[],scopes:bl(t[n].scopes),accessToken:t[n].accessToken??""};break;case me.Implicit:r[i]={...e[i],clientId:t[n].clientId??"",authorizationUrl:t[n].authorizationUrl??"",callbackUrl:t[n].callbackUrl??"",availableScopes:bl(t[n].availableScopes),scopes:bl(t[n].scopes),accessToken:t[n].accessToken??""};break;case me.Password:r[i]={...e[i],username:t[n].username??"",password:t[n].password??"",clientId:t[n].clientId??"",clientSecret:t[n].clientSecret??"",tokenUrl:t[n].tokenUrl??"",accessToken:t[n].accessToken??""};break;case me.ClientCredentialsWithJwtAssertion:r[i]={...e[i],clientId:t[n].clientId??"",clientSecret:t[n].clientSecret??"",clientAssertion:t[n].clientAssertion??"",tokenUrl:t[n].tokenUrl??"",scopes:bl(t[n].scopes),accessToken:t[n].accessToken??""};break;case me.AuthorizationCodeWithPkce:r[i]={...e[i],clientId:t[n].clientId??"",clientSecret:t[n].clientSecret??"",tokenUrl:t[n].tokenUrl??"",authorizationUrl:t[n].authorizationUrl??"",callbackUrl:t[n].callbackUrl??"",availableScopes:bl(t[n].availableScopes),scopes:bl(t[n].scopes),codeVerifier:t[n].codeVerifier??"",codeChallenge:t[n].codeChallenge??"",accessToken:t[n].accessToken??""};break}return r},e)}function zL(t,e,r){const i={...ta(),securityType:t},o=QY(Object.keys(r.flows||{})[0])??me.ClientCredentials;switch(t){case ge.BasicAuth:return{...i,[ge.BasicAuth]:{username:r.username,password:r.password}};case ge.JWT:return{...i,[ge.JWT]:{token:r.token}};case ge.DigestAuth:return{...i,[ge.DigestAuth]:{...i[ge.DigestAuth],username:r.username,password:r.password}};case ge.APIKey:return{...i,[ge.APIKey]:{location:lAe(e.in),name:e.name,key:r.apiKey}};case ge.OAuth2:return{...i,[ge.OAuth2]:{...i[ge.OAuth2],...VL(r.flows||{},i[ge.OAuth2]),authRequestExtraParams:BL(r.authRequestExtraParams),tokenRequestExtraParams:qL(r.tokenRequestExtraParams),grantType:o}};case ge.OpenIDConnect:return{...i,[ge.OpenIDConnect]:{...i[ge.OpenIDConnect],...VL(r.flows||{},i[ge.OpenIDConnect]),openIdConnectUrl:r.openIdConnectUrl,userInfoUrl:r.userInfoUrl,authRequestExtraParams:BL(r.authRequestExtraParams),tokenRequestExtraParams:qL(r.tokenRequestExtraParams),grantType:o}};default:return i}}function uAe(t,e){const r=new Set,n=t.map(o=>{if("scheme"in o){const a=aAe(o.scheme);return zL(a,o.scheme,o.values)}const s=e.find(a=>a.id===o.schemeName);if(s){const a=Hx(s),l=zL(a,s,o.values);return l.securitySchemeId=s.schemeId,r.add(s.schemeId),l}return ta()}),i=e.filter(o=>!r.has(o.schemeId)).map(o=>NY(o));return[...n,...i]}function dAe(t,e){var s;const r=t["x-security"]||[],n=oT((e==null?void 0:e.security)||[]).flat(),i=r.length?uAe(r,n):[ta()];return{securitySchemeVariants:DY((e==null?void 0:e.security)||[]),selectedSecuritySchemeId:((s=i[0])==null?void 0:s.securitySchemeId)??"",securities:i}}function bl(t){return(t||[]).map(e=>{const[r,n]=Object.entries(e)[0];return{id:crypto.randomUUID(),key:"",value:r,active:n}}).concat(et())}function BL(t){return(t||[]).map(e=>({id:crypto.randomUUID(),key:e.key??"",value:e.value??"",active:e.active??!0})).concat(et())}function qL(t){return(t||[]).map(e=>({id:crypto.randomUUID(),key:e.key??"",value:e.value??"",active:e.active??!0,sendIn:cAe(e.in)})).concat(rA())}function FL(t){if(!t)return[et()];const e=[];for(const r in t)e.push({id:crypto.randomUUID(),key:r,value:t[r],active:!0});return e.push(et()),e}const WL={query:"queryParameters",path:"pathParameters",header:"headers",cookie:"cookies"};function UL(t,e){if(!t)return{pathParameters:[et()],queryParameters:[et()],headers:[et()],cookies:[et()]};const r={pathParameters:[],queryParameters:[],headers:[],cookies:[]};for(const n of t)r[WL[n.in]].push({id:crypto.randomUUID(),key:n.name,value:n.value,active:!0});if(e)for(const n of e)r[WL[n.in]].push({id:crypto.randomUUID(),key:n.name,value:n.value,active:!1});return r.pathParameters.push(et()),r.queryParameters.push(et()),r.headers.push(et()),r.cookies.push(et()),r}async function fAe(t,e){const r=K5().body;if(!t)return r;switch(t.contentType){case"application/x-www-form-urlencoded":case"multipart/form-data":return{...r,type:t.contentType,formData:await hAe(t,e)};case"application/octet-stream":const n=t.payload?await VY(t.payload,e):[],i=n.length>0?await Up(n[0]):null;return{...r,type:t.contentType,binary:i};case"application/json":case"application/ld+json":return{...r,type:t.contentType,content:ZL(t.payload)};default:{const o=typeof t.payload=="string",s=t.contentType||(o?"text/plain":"application/json");return{...r,type:s,content:o?t.payload:ZL(t.payload)}}}}async function XL(t,e,r,n){const i=await VY(e,n),o=i.length>0||Array.isArray(e),s=o?await J9(i):void 0;return{id:crypto.randomUUID(),key:t,value:o?"":e,type:o?"file":"text",active:r,files:s}}async function hAe(t,e){const r=K5().body.formData,n=t.contentType,i=t.payload?await Promise.all(Object.entries(t.payload).map(([a,l])=>XL(a,l,!0,e))):[],o=t["x-replay-disabled-payload"]?await Promise.all(Object.entries(t["x-replay-disabled-payload"]||{}).map(([a,l])=>XL(a,l,!1,e))):[];return{...r,[n]:[...i,...o,Ul()]}}function ZL(t){return t?JSON.stringify(t,null,2):""}function pAe(t,e){for(const r of Object.keys(e.paths)){const n=e.paths[r];for(const i of Object.keys(n)){const o=i.toLowerCase();if(["get","put","post","delete","options","head","patch","trace"].includes(o)){const s=n[o];if((s==null?void 0:s.operationId)===t)return{method:o,path:r}}}}return null}async function VY(t,e){return Array.isArray(t)?(await Promise.all(t.map(r=>GL(r,e)))).flat():typeof t=="string"?await GL(t,e):[]}async function GL(t,e){const r=/\$file\(['"](.+?)['"]\)/g,n=Array.from(t.matchAll(r));return Promise.all(n.map(i=>gAe(i[1],e)))}async function gAe(t,e){return await Oi.isAbsolute(t)?t:await Oi.resolve(await Oi.join(e,t))}const Ln=t=>!t||typeof t=="boolean"?{type:"object",properties:{}}:t.type?t:{...t,type:"object"},YL=(t,e,r)=>{if(!t.properties)return t;const n=t.properties[e],i=Ln(n);return{...t,properties:{...t.properties,[e]:{...i,...r}}}},mAe=(t,e,r)=>{if(!t.properties||e===r||!r.trim())return null;const n={...t.properties};return n[r]?null:(n[r]=n[e],delete n[e],{...t,properties:n})},yAe=(t,e)=>{if(!t.properties)return t;const r={...t.properties};return delete r[e],{...t,properties:r}},vAe=(t,e,r={type:"string"})=>{const n=t.properties||{};return{...t,type:"object",properties:{...n,[e]:r}}};function HL(t){const e=Object.assign({},...(t||[]).filter(({key:r,active:n})=>r&&n).map(r=>({[r.key]:r.value})));if(Object.keys(e).length!==0)return e}function JL(t){if(!t)return{};const e={queryParameters:"query",headers:"header",cookies:"cookie",pathParameters:"path"},r=[],n=[];return Object.keys(e).forEach(i=>{const o=i;t[o].forEach(s=>{if(!s.key)return;const a={name:s.key,in:e[o],value:s.value};s.active?r.push(a):n.push(a)})}),{parameters:r.length>0?r:void 0,"x-replay-disabled-parameters":n.length>0?n:void 0}}function bAe(t){const e=t==null?void 0:t.map(r=>({condition:r.condition,context:r.context,type:r.type==An.SIMPLE?void 0:r.type}));if((e==null?void 0:e.length)!==0)return e}function OAe(t){if(!(!t||t.length===0))return[...t]}async function zY(t,e){return t.absolutePath?`$file('${await Oi.relative(e,t.absolutePath)}')`:null}async function xAe(t,e){const{type:r,value:n,files:i}=t;switch(r){case"text":return n;case"file":let o=[];return i&&(o=(await Promise.all(Object.values(i).map(s=>zY(s,e)))).filter(s=>s!==null)),o.length===0?"":o.length===1?o[0]:o}}async function SAe(t,e){const r=t.type,n=t.formData[r],i={},o={};return await Promise.all(n.map(async s=>{const{key:a,active:l}=s;if(!a)return;const c=await xAe(s,e);l?i[a]=c:o[a]=c})),{payload:Object.keys(i).length>0?i:void 0,"x-replay-disabled-payload":Object.keys(o).length>0?o:void 0}}function wAe(t){if(!t)return t;try{const e=JSON.parse(t);return typeof e=="object"?e:t}catch{return t}}async function CAe(t,e){if(t)switch(t.type){case"application/x-www-form-urlencoded":case"multipart/form-data":return{contentType:t.type,...await SAe(t,e)};case"application/octet-stream":return{contentType:t.type,payload:t.binary?await zY(t.binary,e):null};case"application/json":case"application/ld+json":return t.content?{contentType:t.type,payload:wAe(t.content)}:void 0;default:return t.content?{contentType:t.type,payload:t.content}:void 0}}function PAe(t){return{...t.schemeName?{schemeName:t.schemeName}:{scheme:{type:"http",scheme:"basic"}},values:{username:t.username,password:t.password}}}function kAe(t){return{...t.schemeName?{schemeName:t.schemeName}:{scheme:{type:"apiKey",name:t.name,in:t.location.toLowerCase()}},values:{apiKey:t.key}}}function $Ae(t){return{...t.schemeName?{schemeName:t.schemeName}:{scheme:{type:"http",scheme:"bearer"}},values:{token:t.token}}}function EAe(t){return{...t.schemeName?{schemeName:t.schemeName}:{scheme:{type:"http",scheme:"digest"}},values:{username:t.username,password:t.password}}}function AAe(t){return{...t.schemeName?{schemeName:t.schemeName}:{scheme:{type:"openIdConnect"}},values:{openIdConnectUrl:t.openIdConnectUrl,userInfoUrl:t.userInfoUrl,authRequestExtraParams:BY(t.authRequestExtraParams),tokenRequestExtraParams:qY(t.tokenRequestExtraParams),flows:FY(t)}}}function IAe(t){return{...t.schemeName?{schemeName:t.schemeName}:{scheme:{type:"oauth2"}},values:{authRequestExtraParams:BY(t.authRequestExtraParams),tokenRequestExtraParams:qY(t.tokenRequestExtraParams),flows:FY(t)}}}function $f(t){return t.filter(e=>e.value).map(e=>({[e.value]:e.active}))}function BY(t){return t.filter(e=>e.value||e.key).map(e=>({key:e.key,value:e.value,active:e.active}))}function qY(t){return t.filter(e=>e.value||e.key).map(e=>({key:e.key,value:e.value,active:e.active,in:e.sendIn.toLowerCase()}))}function FY(t){let e;switch(t.grantType){case me.ClientCredentials:return e=t[me.ClientCredentials],{clientCredentials:{tokenUrl:e.tokenUrl,clientId:e.clientId,clientSecret:e.clientSecret,accessToken:e.accessToken,scopes:$f(e.scopes)}};case me.Implicit:return e=t[me.Implicit],{implicit:{authorizationUrl:e.authorizationUrl,clientId:e.clientId,callbackUrl:e.callbackUrl,scopes:$f(e.scopes),accessToken:e.accessToken}};case me.Password:return e=t[me.Password],{password:{tokenUrl:e.tokenUrl,username:e.username,password:e.password,clientId:e.clientId,clientSecret:e.clientSecret,accessToken:e.accessToken}};case me.AuthorizationCode:return e=t[me.AuthorizationCode],{authorizationCode:{tokenUrl:e.tokenUrl,authorizationUrl:e.authorizationUrl,clientId:e.clientId,clientSecret:e.clientSecret,callbackUrl:e.callbackUrl,scopes:$f(e.scopes),accessToken:e.accessToken}};case me.ClientCredentialsWithJwtAssertion:return e=t[me.ClientCredentialsWithJwtAssertion],{clientCredentialsWithJwtAssertion:{tokenUrl:e.tokenUrl,clientId:e.clientId,clientAssertion:e.clientAssertion,accessToken:e.accessToken,scopes:$f(e.scopes)}};case me.AuthorizationCodeWithPkce:return e=t[me.AuthorizationCodeWithPkce],{authorizationCodeWithPkce:{tokenUrl:e.tokenUrl,authorizationUrl:e.authorizationUrl,clientId:e.clientId,clientSecret:e.clientSecret,callbackUrl:e.callbackUrl,scopes:$f(e.scopes),accessToken:e.accessToken,codeVerifier:e.codeVerifier,codeChallenge:e.codeChallenge}}}}function TAe(t){const{securities:e,selectedSecuritySchemeId:r}=t,n=e.filter(i=>i.securityType!==ge.NoAuth&&i.securitySchemeId===r);return n.length?{"x-security":n.map(i=>{switch(i.securityType){case ge.OpenIDConnect:{const s=i[ge.OpenIDConnect];return AAe(s)}case ge.OAuth2:{const s=i[ge.OAuth2];return IAe(s)}case ge.APIKey:{const s=i[ge.APIKey];return kAe(s)}case ge.BasicAuth:{const s=i[ge.BasicAuth];return PAe(s)}case ge.DigestAuth:{const s=i[ge.DigestAuth];return EAe(s)}case ge.JWT:{const s=i[ge.JWT];return $Ae(s)}default:return null}}).filter(i=>i!==null)}:{"x-security":void 0}}async function _Ae(t,e){const{id:r,state:n,sourceDescriptions:i,workflows:o,...s}=t;return{arazzoObject:{...s,sourceDescriptions:i.map(a=>({name:a.name,url:a.url,type:a.type||"openapi"})),workflows:await Promise.all(o.map(async({parameters:a,dependsOn:l,outputs:c,state:u,steps:d,inputs:f,...h})=>({...h,dependsOn:OAe(l),outputs:HL(c),inputs:f?Ln(f):void 0,...JL(a),steps:await Promise.all(d.map(async({parameters:g,security:p,operation:y,requestBody:v,successCriteria:b,outputs:O,state:S,xOperation:x,...w})=>{const P=p.securities.filter(E=>E.securityType!==ge.NoAuth).length,I={operationId:void 0,operationPath:void 0,"x-operation":void 0};if(y){const E=t.sourceDescriptions.find(({apiId:M})=>M===y.apiId)||t.sourceDescriptions[0];if(y.operationId){const M=t.sourceDescriptions.length<=1;I.operationId=M?y.operationId:`$sourceDescriptions.${E.name}.${y.operationId}`}else I.operationPath=`{$sourceDescriptions.${E.name}.url}#/paths/${pI.escape(y.path)}/${y.method}`}else x&&(I["x-operation"]=x);return{...w,...I,...P?TAe(p):{},...JL(g),requestBody:await CAe(v,e),successCriteria:bAe(b),outputs:HL(O)}}))})))}}}class WY{constructor(e){xe(this,"itemIds",[]);this.storage=e}async parseMany(e,r){const i=(await Promise.all(e.map(async o=>{try{return await this.parse(o,r)}catch(s){return console.error(`Error parsing file ${o.filePath}:`,s),null}}))).filter(o=>o!==null);return this.itemIds=i.map(o=>o.id),i}async write(e){e.state!==xt.Draft&&await this.storage.set(e.id,await this.stringify(e))}async remove(e){await this.storage.remove(e)}async updateRoot(e,r){const n=e.actions;if(n){for(const o in n){const s=parseInt(o);switch(n[o]){case"D":await this.remove(this.itemIds[s]);break;case"I":case"U":await this.write(r[s]);break}}return}const i=this.itemIds.filter(o=>!r.some(s=>s.id===o));await Promise.all([...r.map(o=>this.write(o)),...i.map(o=>this.remove(o))])}async update(e,r){const i={path:e.path.slice(1),actions:e.actions};if(i.path.length===0&&await this.updateRoot(i,r),i.path.length>0){const o=i.path[0];i.path.length===1&&i.actions&&i.actions.id==="U"&&await this.remove(this.itemIds[o]),i.path[1]&&i.path[1]==="id"&&await this.remove(this.itemIds[o]),await this.write(r[o])}this.itemIds=r.map(o=>o.id)}}class RAe extends WY{constructor(e,r){super(e),this.convertOperationToReplayValue=r}parse(e,r){const n=e.filePath;return rAe(e.content,n,this.storage.baseDir,r,this.convertOperationToReplayValue)}async stringify(e){const{arazzoObject:r}=await _Ae(e,this.storage.baseDir);return el.dump(r)}}class jAe extends WY{parse(e){return{...e.content,id:e.filePath}}async stringify(e){const{id:r,...n}=e;return el.dump(n)}}class DAe{constructor(e){this.projectId=e}async get(){const e=this.getKey();return localStorage.getItem(e)??null}async set(e){const r=this.getKey();localStorage.setItem(r,e)}async remove(){const e=this.getKey();localStorage.removeItem(e)}getKey(){return`replay:secrets:${this.projectId}`}}class MAe{constructor(e,r,n){this.storage=e,this.filePath=r,this.defaultValue=n}async parse(e){return JSON.parse(e)}stringify(e){return JSON.stringify(e)}async read(){const e=await this.storage.get(this.filePath);return e?await this.parse(e):this.defaultValue}async write(e){return this.storage.set(this.filePath,this.stringify(e))}}const NAe=(t,e)=>({data:t,version:e});class nE extends MAe{constructor(e,r,n,i){super(e,r,n),this.version=i}async parse(e){const r=JSON.parse(e);return r.version!==this.version?this.defaultValue:r.data}stringify(e){return JSON.stringify(NAe(e,this.version))}}const KL=1,LAe="tabs.json";class QAe extends nE{constructor(e){super(e,LAe,co(O$),KL)}async parse(e){const r=JSON.parse(e);if(r.version!==KL)return co(O$);const n=await Promise.all(r.data.tabs.map(async i=>{if(i.data.type===Ue.Step){const o=i.data.step.requestBody.formData;o["multipart/form-data"]=await eQ(o["multipart/form-data"]),o["application/x-www-form-urlencoded"]=await eQ(o["application/x-www-form-urlencoded"]),i.data.step.requestBody.binary&&i.data.step.requestBody.binary.absolutePath&&(i.data.step.requestBody.binary=await Up(i.data.step.requestBody.binary.absolutePath))}return i}));return{...r.data,tabs:n}}stringify(e){return super.stringify({...e,tabs:e.tabs.map(r=>r.data.type===Ue.Step?{...r,data:{...r.data,response:null}}:r.data.type===Ue.WorkflowRun?{...r,data:{...r.data,result:null}}:r)})}}async function eQ(t){return Promise.all(t.map(async e=>{const r={...e};if(e.files){const n=e.files.map(i=>i.absolutePath).filter(i=>i!==null);r.files=await J9(n)}return r}))}const VAe=1,zAe=1;class BAe{constructor(e,r){xe(this,"historyStorage");xe(this,"activeEnvironmentIdStorage");xe(this,"tabsStateStorage");xe(this,"environmentsStorage");xe(this,"collectionsStorage");xe(this,"apisStorage");xe(this,"isTauriApp",Qd());xe(this,"systemFilesStorage");xe(this,"localStorageSecretsProvider");xe(this,"userFilesStorage");this.project=e,this.convertOperationToReplayValue=r,this.localStorageSecretsProvider=new DAe(this.project.id),this.systemFilesStorage=this.isTauriApp?new WM(this.project.systemFilesDir):new BM(this.project.systemFilesDir),this.userFilesStorage=this.isTauriApp?new WM(this.project.userFilesDir):new BM(this.project.userFilesDir);const n=new Eve;this.historyStorage=new nE(this.systemFilesStorage,"history.json",[],VAe),this.activeEnvironmentIdStorage=new nE(this.systemFilesStorage,"active_environment_id.json",kx,zAe),this.tabsStateStorage=new QAe(this.systemFilesStorage),this.environmentsStorage=new Ave(this.userFilesStorage,this.localStorageSecretsProvider),this.collectionsStorage=new RAe(this.userFilesStorage,this.convertOperationToReplayValue),this.apisStorage=new jAe(this.isTauriApp?this.userFilesStorage:n)}async detectProjectFiles(){const r=(await this.userFilesStorage.ls()).filter(o=>/\.(ya?ml)$/.test(o)),n=[],i=[];return await Promise.all(r.map(async o=>{const s=await this.userFilesStorage.get(o);if(s)try{const a=el.load(s);typeof a=="object"&&a!==null&&(typeof a.openapi=="string"?n.push({filePath:o,content:a}):typeof a.arazzo=="string"&&i.push({filePath:o,content:a}))}catch(a){console.error(`Error parsing YAML file ${o}:`,a)}})),{apiFiles:n,collectionFiles:i}}async read(){const[e,r,n,i]=await Promise.all([this.historyStorage.read(),this.activeEnvironmentIdStorage.read(),this.tabsStateStorage.read(),this.environmentsStorage.read()]),{apiFiles:o,collectionFiles:s}=await this.detectProjectFiles(),a=await this.apisStorage.parseMany(o),l=await this.collectionsStorage.parseMany(s,a);return{project:this.project,history:e,activeEnvironmentId:r,tabsState:n,environments:i,apis:a,collections:l}}async update(e,r){switch(e.path[0]){case"history":this.historyStorage.write(r.history.get());break;case"activeEnvironmentId":this.activeEnvironmentIdStorage.write(r.activeEnvironmentId.get());break;case"tabsState":this.tabsStateStorage.write(r.tabsState.get());break;case"environments":this.environmentsStorage.write(r.environments.get());break;case"apis":this.isTauriApp&&await this.apisStorage.update(e,r.apis.get());break;case"collections":await this.collectionsStorage.update(e,r.collections.get());break}}}function UY(t=!1){let e,r=!1;return()=>({id:"RootStoragePlugin",onCreate:()=>({init:n=>async(i,o)=>{if(r||n.path.length>0)return{isInitialized:!1};if(r=!0,!t){e=new BAe(i,o);const s=await e.read();n.merge(s)}return r=!1,{isInitialized:!0}}}),onSet(n,i,o){r||t||e.update(i,o)}})}function XY({defaultEnvironments:t}={}){return structuredClone({project:{id:"default",userFilesDir:"default",systemFilesDir:"default"},history:[],tabsState:co(O$),activeEnvironmentId:kx,environments:t||n9,collections:[],apis:[],requestController:null,apps:{apps:[],appsLoadingState:Qo.Idle},predefinedApiId:null,predefinedEnvironmentNames:new Set,predefinedInputNames:new Set})}const qAe=YE(XY(),Q5(ome({key:"replay-root-store"}),UY())),aT=N.createContext(qAe),FAe=aT.Provider;function Et(){const t=N.useContext(aT);return V5(t)}function qd(){const{tabsState:t}=Et(),e=N.useCallback(({type:n,collectionId:i,workflowId:o,stepId:s,historyId:a})=>t.tabs.findIndex(l=>{const c=l.data.get();return yn(c,n)?(!i||c.collectionId===i)&&(!o||c.workflowId===o)&&(!s||c.stepId===s)&&(!a||c.historyId===a):!1}),[t]),r=N.useCallback(({type:n,collectionId:i,workflowId:o,stepId:s,historyId:a})=>{const l=e({type:n,collectionId:i,workflowId:o,stepId:s,historyId:a});return l!==-1?t.tabs[l]:void 0},[e,t]);return{tabs:t.tabs,activeTabIdx:t.activeTabIdx,getExistingTabIndex:e,getExistingTab:r}}function yn(t,e){return t.type===e}const Yx=Bge({});let tQ=null;function ZY(t){tQ!==t&&(tQ=t,Yx.configure({validate:!0,schemas:[{uri:"stub://test",fileMatch:["*"],schema:t}]}))}function GY(t){const e=d$.create("stub.json","json",0,t),r=Yx.parseJSONDocument(e);return{textDoc:e,jsonDoc:r}}const YY=Vr.define({create(){},update(t){return t}}),HY=t=>t.field(YY,!1),WAe=({store:t,isResponse:e,apiOperation:r})=>{var s,a,l,c,u,d,f,h;const i=pT(t).data.get();let o=(l=(a=(s=r==null?void 0:r.body)==null?void 0:s.mediaTypes)==null?void 0:a[vn.JSON])==null?void 0:l.schema;if(yn(i,Ue.Step)&&e){const g=(c=i.response)==null?void 0:c.status;g&&(o=(h=(f=(d=(u=r==null?void 0:r.responses)==null?void 0:u[g])==null?void 0:d.mediaTypes)==null?void 0:f[vn.JSON])==null?void 0:h.schema)}return[YY.init(()=>({schema:co(o||{}),store:t}))]};function UAe(){return async t=>{const{schema:e,store:r}=HY(t.state)||{};if(!e)return[];ZY(e);const n=t.state.doc,{content:i,sourceMap:o}=DIe(n.toString(),r),{textDoc:s,jsonDoc:a}=GY(i),l=await Yx.doValidation(s,a);return l==null?void 0:l.map(c=>{const u=HAe(s,c.range.start,o),d=u<0?0:u;return{from:d,to:d+s.offsetAt(c.range.end)-s.offsetAt(c.range.start),message:c.message,severity:GAe[c.severity||3]}})}}const XAe=Wi.highest(Rd.of([{key:"Tab",run:t=>PU(t)}]));function ZAe(){return async function(e){const r={from:e.pos,to:e.pos,options:[],filter:!1},{schema:n}=HY(e.state)||{};if(!n)return r;ZY(n);const i=e.state.doc,o=YAe.bind(null,i),{textDoc:s,jsonDoc:a}=GY(i.toString()),l=e.state.doc.lineAt(e.pos),c=l.number-1,u=e.pos-l.from,d=await Yx.doComplete(s,{line:c,character:u},a);if(!d)return r;const f=e.state.sliceDoc(l.from,e.pos);if(f.trim().endsWith(",")||JAe(f))return r;r.options=d.items.map(p=>({label:p.label,info:p.documentation,apply:y=>{if(!p.textEdit||!("range"in p.textEdit))return;const v=p.textEdit.range,b=p.textEdit.newText.search(/(\$1|\${1:.*?})/);let O=p.textEdit.newText.replace(/(\$1|\${1:.*?})/,"");const S=b===-1?0:b-O.length;y.dispatch({changes:{from:o(v.start),to:o(v.end),insert:O}});const x=O.length-(v.end.character-v.start.character);y.dispatch({selection:ve.single(o(v.end)+x+S)})}}))||[];const h=e.state.wordAt(e.pos),g=h!=null&&h.from?e.state.sliceDoc(h==null?void 0:h.from,h==null?void 0:h.to).toLowerCase():"";return g&&(r.options=r.options.filter(p=>p.label.toLowerCase().replace(/^"/,"").startsWith(g))),r}}const GAe={1:"error",2:"warning",3:"info",4:"hint"};function YAe(t,e){return t.line(e.line+1).from+e.character}function HAe(t,e,r){let n=t.offsetAt(e);for(const i of r)n>i.pos&&(n-=i.offset);return n}function JAe(t){try{return JSON.parse(`{${t}}`),!0}catch{return!1}}const JY=He.define();function Fd(t){var r;const e=t.activeEnvironmentId.get();return((r=t.environments.find(n=>n.name.get()===e))==null?void 0:r.get())||t.environments[0].get()}function rQ(t){return new wA({regexp:new RegExp(yc,"g"),decoration:e=>{const r=Fd(t.store),n=e[1]||e[2],i=r==null?void 0:r.inputs,o=i==null?void 0:i.find(a=>a.name===n),s=!(o!=null&&o.value);return nt.mark({attributes:{style:`color: var(--replay-${s?"undefined":"defined"}-variable-color);
|
|
617
617
|
background-color: var(--replay-${s?"undefined":"defined"}-variable-bg-color);`}})}})}const jh=t=>Qr.fromClass(class{constructor(e){xe(this,"decorations");const r=rQ(t);this.decorations=r.createDeco(e)}update(e){const r=rQ(t);this.decorations=r.updateDeco(e,this.decorations)}},{decorations:e=>e.decorations});function nQ(){return new wA({regexp:Z5,decoration:()=>nt.mark({attributes:{style:"background-color: var(--bg-color-active);"}})})}const Dh=()=>Qr.fromClass(class{constructor(t){xe(this,"decorations");const e=nQ();this.decorations=e.createDeco(t)}update(t){const e=nQ();this.decorations=e.updateDeco(t,this.decorations)}},{decorations:t=>t.decorations}),ss={[vn.Text]:{name:"Text",extensions:[Me.lineWrapping],stateExtensions:[jh,Dh]},[vn.JSON]:{name:"JSON",extensions:[wae(),Kue(UAe(),{delay:0,needsRefresh:t=>t.transactions.some(e=>e.effects.some(r=>r.is(JY)))}),nU.data.of({autocomplete:ZAe()}),XAe],stateExtensions:[jh,WAe,Dh]},[vn.XML]:{name:"XML",extensions:[zue()],stateExtensions:[jh,Dh]}},KAe={[vn.Image]:{name:"Image",extensions:[],stateExtensions:[jh,Dh]}},eIe={[vn.HTML]:{name:"HTML",extensions:[yue()],stateExtensions:[jh,Dh]}},Ma={...ss,...KAe,...eIe},KY={[vn.FormData]:{name:"form-data",extensions:void 0},[vn["application/x-www-form-urlencoded"]]:{name:"x-www-form-urlencoded",extensions:void 0}},eH={[vn.Binary]:{name:"Binary",extensions:void 0}},cc={...ss,...KY,...eH},tIe=Object.keys(ss),lT=Object.keys(KY),tH=Object.keys(eH);function rH(t=[],e){const r={};return t.forEach(n=>{const i=String(n[e]);r[i]||(r[i]=[]),r[i].push(n)}),r}function rIe(t){return t.replace(/{/g,"{{").replace(/}/g,"}}")}function nIe(t,e="",r){const n=rH(t.parameters,"in"),i=nH(t),o=sT(t),s=_a(n.query||[]);return{id:crypto.randomUUID(),name:t.name,operationId:t.operationId,collectionPath:r,apiPath:{path:t.path,method:t.method},apiId:e,request:{pathParameters:_a(n.path||[]),method:t.method.toLocaleUpperCase(),url:sx(rIe(t.path),s),headers:_a(n.header||[]),queryParameters:s,cookies:_a(n.cookie||[]),body:i,security:o},response:null}}function cT(t){const e=rH(t.parameters,"in"),r=nH(t),n=sT(t);return{parameters:{queryParameters:_a(e.query||[]),headers:_a(e.header||[]),cookies:_a(e.cookie||[]),pathParameters:_a(e.path||[],{initializeWithInputs:!0})},requestBody:r,security:n}}function nH(t){var a,l,c;const e=(a=t.body)==null?void 0:a.mediaTypes;if(!e||!Object.keys(e).length)return Xb();const r=iIe(e,t),n=(r==null?void 0:r.name)||"",i=!lT.includes(n)&&!tH.includes(n),o=iE(r),s=i&&o.length?JSON.stringify((l=o.find(({key:u})=>{var d;return u===((d=t.body)==null?void 0:d.activeExampleName)}))==null?void 0:l.value,null,2)||JSON.stringify(o[0].value,null,2):"";return{...Xb(),activeExampleName:(c=t.body)==null?void 0:c.activeExampleName,...r&&{type:r.name},content:s,formData:{"multipart/form-data":iQ(e[vn.FormData]),"application/x-www-form-urlencoded":iQ(e[vn["application/x-www-form-urlencoded"]])}}}function iH(t){var r;return t?{...(Object.keys(((r=t==null?void 0:t.body)==null?void 0:r.mediaTypes)||{})||[]).reduce((n,i)=>(n[i]={name:i,extensions:void 0},n),{}),...cc}:cc}function iQ(t){if(!t)return[Ul()];if(!t.parameters)return[Ul()];const e=t.parameters.map(r=>({id:crypto.randomUUID(),key:r.name,value:String(r.example)||"",active:!0,type:r.inputType,files:null}));return e.push(Ul()),e}function iE(t){const e=t==null?void 0:t.examples;return Object.keys(e||{}).map(r=>{var o;const n=e==null?void 0:e[r];return{name:q.isString(n==null?void 0:n.summary)?n==null?void 0:n.summary:((o=n==null?void 0:n.summary)==null?void 0:o.raw)||r,key:r,value:e==null?void 0:e[r].value}})}function iIe(t,e){const r=iH(e),n=Object.keys(t).find(i=>!!r[i]);return n?t[n]:null}function oIe(t,e){const r=t==null?void 0:t.security;if(!(r!=null&&r.length)||!t)return[];const n=MY(t);return[...new Set(n.filter(i=>i.securitySchemeId===e).map(i=>i.securityType))]}function Hx(t){if(t.type==="http"){if(t.scheme==="bearer")return ge.JWT;if(t.scheme==="basic")return ge.BasicAuth;if(t.scheme==="digest")return ge.DigestAuth}else{if(t.type==="apiKey")return ge.APIKey;if(t.type==="oauth2")return ge.OAuth2;if(t.type==="openIdConnect")return ge.OpenIDConnect}return ge.NoAuth}function sIe(t,e){if(t==="clientCredentials"&&e&&"x-assertionType"in e&&e["x-assertionType"]===gP)return me.ClientCredentialsWithJwtAssertion;if(t==="authorizationCode"&&e&&"x-usePkce"in e&&e["x-usePkce"])return me.AuthorizationCodeWithPkce;switch(t){case"implicit":return me.Implicit;case"password":return me.Password;case"clientCredentials":return me.ClientCredentials;case"authorizationCode":return me.AuthorizationCode;default:return me.AuthorizationCode}}function aIe(t,e){const r=t==null?void 0:t.security;if(!(r!=null&&r.length))return[];const o=oT(r).flat().filter(s=>s.schemeId===e).find(s=>Hx(s)===ge.OAuth2);return uT(o)}function uT(t){return Object.entries((t==null?void 0:t.flows)||{}).map(([e,r])=>sIe(e,r)).filter(Boolean)}function Ob(t){return/(?:^[a-z][a-z0-9+.-]*:|\/\/)/i.test(t)}function p0(t){return t.endsWith("/")?t.substring(0,t.length-1):t}function lIe(t){return t.startsWith("/")?t.substring(1):t}function cIe(t){try{const e=new URL(t);return e.search="",e.hash="",e.toString()}catch{return t}}function uIe(t,e){let r;if(e.startsWith("//")){const{protocol:n}=new URL(t);r=`${n||"https:"}${e}`}else if(Ob(e))r=e;else if(!e.startsWith("/"))r=p0(t)+"/"+e;else{const n=new URL(t);n.pathname=e,r=n.toString()}return p0(r)}function g0(t,e){let r=t;return e.forEach(({key:n,value:i,active:o})=>{i&&o&&(r=r.replaceAll(`{${n}}`,i))}),r}function dT(t,e){let r=t;return e.forEach(({name:n,value:i})=>{i&&(r=r.replaceAll(`{${n}}`,i))}),r}function dIe(t){return t.startsWith("http://")||t.startsWith("https://")}function Mm({url:t,serverUrl:e,corsProxyUrl:r}){const n=dIe(t)||!e?t:`${p0(e)}/${lIe(t)}`;return r?`${r}${n}`:n}const oH="New Step";function oQ({name:t=oH,workflow:e}={}){let r=t.replaceAll(" ","-").toLowerCase();if(!e)return r;const n=fIe(e);if(n.includes(r)){let i=1;for(;n.includes(`${r}-${i}`);)i++;r=`${r}-${i}`}return r}function fIe(t){return t.steps.filter(e=>e.state.get()!==xt.Draft).map(e=>e.stepId.get())}function Vu({name:t=oH,isDraft:e=!1,fromStep:r,workflow:n,operation:i,apiOperation:o}={}){if(!r){const a=o?cT(o):null,l=[ta()];return{stepId:oQ({name:t,workflow:n}),description:t,outputs:[et()],successCriteria:[],state:e?xt.Draft:xt.Normal,parameters:{pathParameters:[et()],queryParameters:[et()],headers:[et()],cookies:[et()]},requestBody:Xb(),xOperation:i?null:{method:"GET",url:""},security:{securitySchemeVariants:[],selectedSecuritySchemeId:l[0].securitySchemeId,securities:l},operation:i??null,...a}}const s=r.get({noproxy:!0});return{stepId:oQ({name:t,workflow:n}),description:s.description,outputs:s.outputs,successCriteria:s.successCriteria,state:e?xt.Draft:xt.Normal,parameters:s.parameters,requestBody:s.requestBody,xOperation:s.xOperation,security:s.security,operation:s.operation}}function uc(t){var e,r;return{method:(t.xOperation?t.xOperation.method:(e=t.operation)==null?void 0:e.method)??"",url:(t.xOperation?t.xOperation.url:(r=t.operation)==null?void 0:r.path)??""}}function sH(t,e,r){const{inputs:n,servers:i}=r,o=H5(Qa("path",[e==null?void 0:e.parameters.pathParameters,t.parameters.pathParameters]),r.inputs),s=t.xOperation??null,a=t.operation??null;let l="",c="";if(s)c=s.method,l=g0(s.url,o);else if(a){const f=i.find(h=>h.apiId===a.apiId);if(!(f!=null&&f.value))return alert("Could not resolve base server url"),{method:c,url:l};c=a.method,l=dT(f.value,f.variables)+g0(a.path,o)}const u=l.split("?")[0];return{url:Dt(u,n),method:c.toUpperCase()}}function hIe(t){const e=t.substring(7).split(", "),r={};for(const n of e){const[i,o]=n.split("=");r[i]=o.replace(/"/g,"")}return r}function pIe(t,e,r){const{inputs:n}=r,{requestBody:{content:i},security:{securities:o,selectedSecuritySchemeId:s}}=t,{url:a,method:l}=sH(t,e,r),c=o.filter(I=>I.securitySchemeId===s||!s).findLast(I=>I.securityType===ge.DigestAuth);if(!c)return"";const{username:u,password:d,realm:f,nonce:h,cnonce:g,algorithm:p,qop:y,nc:v,opaque:b}=c[ge.DigestAuth],O=Dt(u,n),{pathname:S,search:x}=new URL(Dt(a,n)),w=x?`${S}${x}`:S,P=gIe({username:O,password:Dt(d,n),uri:w,realm:f,nonce:h,cnonce:g,algorithm:p,qop:y,nc:v,method:l,bodyContent:i});return`Digest username="${O}", realm="${f}", nonce="${h}", uri="${w}", qop=${y}, nc=${v}, cnonce="${g}", response="${P}", algorithm=${p}${b?`, opaque="${b}"`:""}`}function gIe(t){const{username:e,password:r,realm:n,nonce:i,cnonce:o,algorithm:s,qop:a,nc:l,uri:c,method:u,bodyContent:d}=t,f=mIe(s),h=s!=null&&s.endsWith("-sess")?f(`${f(`${e}:${n}:${r}`)}:${i}:${o}`):f(`${e}:${n}:${r}`),g=a!=null&&a.includes("auth-int")?f(`${u}:${c}:${f(d)}`):f(`${u}:${c}`);return f(`${h}:${i}:${l}:${o}:${a}:${g}`).toString()}function mIe(t){switch(t==null?void 0:t.replace("-sess","")){case"SHA-256":return e=>Fh(W5(e));default:return e=>Fh(ox(e))}}var P5;const zs=((P5=window.__TAURI__)==null?void 0:P5.http.fetch)??globalThis.fetch;function sQ(t){try{const e=new URL(t);return(e.protocol==="http:"&&e.port==="80"||e.protocol==="https:"&&e.port==="443")&&(e.port=""),e.hostname=e.hostname.toLowerCase(),e.protocol+"//"+e.hostname+(e.port?":"+e.port:"")}catch(e){return console.error("Invalid URL",e),null}}function yIe(t){try{const r=new URL(t).hostname;return r==="localhost"||r==="127.0.0.1"}catch{return!1}}function oE(t,e=window.location.origin){try{const r=new URL(t);return e===r.origin}catch{return!1}}function vIe(t){return t?t.split(";").map(n=>n.trim()).map(n=>{const i=n.indexOf("="),o=n.slice(0,i).trim(),s=n.slice(i+1).trim();return[o,s]}):[]}async function bIe(t,e){const n=await t.clone().arrayBuffer(),i=new TextDecoder().decode(n),o=new Uint8Array(n).length,s=vIe(document.cookie);return{bodyUsed:t.bodyUsed,status:t.status,headers:Array.from(new Headers(t.headers||[])),arrayBuffer:n,body:i,duration:e,cookies:s,size:o}}function aQ(t){return encodeURIComponent(t).replace(/[!'()*]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`)}async function OIe(t,e){var b,O,S,x;const{requestController:r}=t,{mockServer:n,corsProxyUrl:i,certificates:o}=e.get(),a=pT(t).data;if(a.type.get()!==Ue.Step){console.warn("not an operation tab");return}const{collectionId:l,workflowId:c,step:u,response:d,requestError:f,isProcessingRequest:h}=a,g=(b=t.collections.find(w=>w.id.get()===l.get()))==null?void 0:b.workflows.find(w=>w.workflowId.get()===c.get()),p=co(u.get({noproxy:!0}));h.set(!0),(S=(O=r.get())==null?void 0:O.abort)==null||S.call(O),r.set(new AbortController);const y=(x=r.get())==null?void 0:x.signal,v=Fd(t);try{const{url:w,method:P}=sH(u.get(),g==null?void 0:g.get(),v),I=n==null?void 0:n.url,E=I?w.startsWith(location.origin+I):!1,M=i||"",V=lH(u,g,t),U=E||yIe(w)||oE(w),X=MIe({proxyUrl:M,resolvedUrl:w,ignoreProxy:U,queryParameters:V});await SIe(u,X,E,y);const J=cH(u,g,t),te=fT(u.get({noproxy:!0}),t),oe=Date.now(),{clientCert:ae,clientKey:ie}=xIe(w,o||[]),L=!!X.match(/^https?:\/\//)?X:`https://${X}`,D=await zs(L,{signal:y,method:P.toUpperCase(),headers:J,body:te||void 0,mode:E||oE(L)?"same-origin":"cors",clientCert:ae,clientKey:ie}),Q=Date.now()-oe;f.set(null),d.set(await bIe(D,Q));const _=co(d.value);lQ(p,_,t)}catch(w){if(d.set(null),w.name==="AbortError")return;f.set(w.message);const P=co(d.value);lQ(p,P,t)}finally{h.set(!1)}}function xIe(t,e){let r=sQ(t);const n=e.find(({host:i,port:o})=>sQ(`https://${i}:${o}`)===r);return{clientCert:n==null?void 0:n.crtFilePath,clientKey:n==null?void 0:n.keyFilePath}}async function SIe(t,e,r,n){const{securities:i}=t.security,{security:{selectedSecuritySchemeId:o}}=t.get(),{method:s}=uc(t.get()),a=Bd(i,o).findLast(l=>l.securityType.get()===ge.DigestAuth);if(a){const l=await zs(e,{signal:n,method:s.toUpperCase(),mode:r||oE(e)?"same-origin":"cors"}),c=hIe(l.headers.get("WWW-Authenticate")||"");a[ge.DigestAuth].merge({nonce:c.nonce,realm:c.realm,qop:c.qop,algorithm:c.algorithm,opaque:c.opaque,cnonce:crypto.randomUUID(),nc:"00000001"})}}function lQ(t,e,r){const{history:n}=r,i=crypto.randomUUID(),o=e?{...e,bodyNotStored:!0,body:"",arrayBuffer:new ArrayBuffer(0)}:null;n.merge([{id:i,date:new Date().getTime(),step:t,response:o}])}function wIe(t,e,r){const{security:{selectedSecuritySchemeId:n,securities:i}}=t;return Bd(i,n.get()).map(s=>{const a=s.get();switch(a.securityType){case ge.BasicAuth:{const l=a[ge.BasicAuth];return{id:"",key:"Authorization",value:"Basic "+btoa(`${sn(l.username,r)}:${sn(l.password,r)}`),active:!0}}case ge.DigestAuth:{const l=Fd(r);return{id:"",key:"Authorization",value:pIe(t.get(),e==null?void 0:e.get(),l),active:!0}}case ge.JWT:return{id:"",key:"Authorization",value:"Bearer "+a[ge.JWT].token,active:!0};case ge.OAuth2:{const{grantType:l}=a[ge.OAuth2],{accessToken:c}=a[ge.OAuth2][l];return{id:"",key:"Authorization",value:"Bearer "+c,active:!0}}case ge.OpenIDConnect:{const{grantType:l}=a[ge.OpenIDConnect],{accessToken:c}=a[ge.OpenIDConnect][l];return{id:"",key:"Authorization",value:"Bearer "+c,active:!0}}case ge.APIKey:{const l=a[ge.APIKey];return l.location===xi.Header?{id:"",key:l.name,value:l.key,active:!0}:null}default:return null}}).filter(s=>!!s)}function CIe(t,e,r){var O,S,x,w,P,I;const{operation:n,requestBody:i,parameters:o}=e.step,{headers:s,cookies:a,queryParameters:l}=o;if(!r)return!0;const c=(O=r.parameters)==null?void 0:O.filter(E=>E.in==="query"),u=(S=r.parameters)==null?void 0:S.filter(E=>E.in==="header"),d=(x=r.parameters)==null?void 0:x.filter(E=>E.in==="cookie"),f=(n==null?void 0:n.path)!==r.path,h=r.method.toLowerCase()!==(n==null?void 0:n.method.toLowerCase()),g=((w=r.body)==null?void 0:w.mediaTypes)&&((I=(P=r.body)==null?void 0:P.mediaTypes)==null?void 0:I[i.type])===void 0,p=u&&!u.every(E=>s.some(M=>M.key===E.name)),y=d&&!d.every(E=>a.some(M=>M.key===E.name)),v=c&&!c.every(E=>l.some(M=>M.key===E.name)),b=JEe(t,e,r);return!f&&!h&&!g&&!p&&!y&&!v&&!b}function PIe(t,e){const r=Ub(t),n=Ub(e);return r==null||delete r.parameters.pathParameters,n==null||delete n.parameters.pathParameters,mP(r,n)}function fT(t,e){const{requestBody:r}=t,{method:n}=uc(t),i=n.toUpperCase();if(i==="GET"||i==="HEAD"||i==="OPTIONS")return null;try{switch(r.type){case"JSON":return structuredClone(sn(r.content,e));case"multipart/form-data":return EIe(t,e);case"application/x-www-form-urlencoded":return $Ie(t,e);case"application/octet-stream":return kIe(r.binary);default:return sn(r.content,e)}}catch(o){console.error(o)}}function kIe(t){return t?t.file:null}function $Ie(t,e){const{requestBody:r}=t,n=new URLSearchParams;return dH(r.formData["application/x-www-form-urlencoded"]).forEach(i=>{const o=sn(i.value,e);n.append(sn(i.key,e),o)}),n}function EIe(t,e){const{requestBody:r}=t,n=new FormData;return dH(r.formData["multipart/form-data"]).forEach(({type:i,files:o,value:s,key:a})=>{const l=sn(a,e);if(i==="file"&&o)for(const c of o)n.append(l,c.file);else if(s){const c=sn(s,e);return n.append(l,c)}}),n}function aH(t,e){const{security:{selectedSecuritySchemeId:r,securities:n},parameters:{queryParameters:i}}=t,s=Bd(n,r.get()).filter(a=>{const{securityType:l,[ge.APIKey]:c}=a.get();return l===ge.APIKey&&c.location===xi.Query&&!!c.name}).map(a=>{const{[ge.APIKey]:l}=a.get();return{id:"",key:l.name,value:l.key,active:!0}});return Qa("query",[e==null?void 0:e.parameters.queryParameters.get(),s,i.get()])}function lH(t,e,r){return aH(t,e).map(i=>{const o=sn(i.value,r),s=aQ(o);return`${aQ(i.key)}=${s}`}).join("&")}function AIe(t,e,r){return aH(t,e).reduce((i,o)=>{const s=sn(o.value,r),a=sn(o.key,r);return i[a]=s,i},{})}function IIe(t){const e=t.indexOf("?");if(e===-1)return[];const r=new URLSearchParams(t.slice(e+1)),n=[];for(const[i,o]of r.entries())n.push({id:crypto.randomUUID(),active:!0,key:i,value:o});return n}function TIe(t){const r=t.split("?")[0].split("/"),n=/^\{[^\s]+\}$/,i=r.filter(o=>n.test(o)).map(o=>o.slice(1,-1));return new Set(i)}function cH(t,e,r){const n=wIe(t,e,r),i=jIe(t.get(),r),o=_Ie(t,e,r);return Qa("header",[e==null?void 0:e.parameters.headers.get(),i,n,o,t.parameters.headers.get()]).reduce((l,{key:c,value:u})=>(l[c]=sn(u,r),l),{})}function _Ie(t,e,r){const i=uH(t,e).map(o=>`${o.key}=${sn(o.value,r)}`).join("; ");return i?[{id:"",key:"Cookie",value:i,active:!0},{id:"",key:"X-Redocly-Cookie",value:i,active:!0}]:[]}function RIe(t,e,r){return uH(t,e).reduce((i,o)=>{const s=sn(o.value,r);return{...i,[sn(o.key,r)]:s}},{})}function uH(t,e){const{security:{selectedSecuritySchemeId:r,securities:n},parameters:{cookies:i}}=t,s=Bd(n,r.get()).filter(a=>{const{securityType:l,[ge.APIKey]:c}=a.get();return l===ge.APIKey&&c.location===xi.Cookie&&!!c.name}).map(a=>{const{[ge.APIKey]:l}=a.get();return{id:"",key:l.name,value:l.key,active:!0}});return Qa("cookie",[e==null?void 0:e.parameters.cookies.get(),s,i.get()])}function dH(t){return t.filter(e=>e.active&&e.key&&(e.value||(e==null?void 0:e.files)))}function jIe(t,e){const{requestBody:r}=t;return!fT(t,e)||["binary","multipart/form-data"].includes(r.type)?[]:[{id:"",key:"Content-Type",value:r.type,active:!0}]}function sn(t,e){var r;return e?Dt(t,(r=Fd(e))==null?void 0:r.inputs):t}function DIe(t,e){var r;return Fre(t,(r=Fd(e))==null?void 0:r.inputs)}function MIe({proxyUrl:t,resolvedUrl:e,ignoreProxy:r,queryParameters:n=""}){const i=t!=="/"?p0(t):t;let o;return r||!i?o=e:o=`${i}/${e}`,n&&(o+=`?${n}`),o}function hT(t){return t.flatMap(e=>{const r=e.id.get();return e.paths.keys.flatMap(n=>{const i=e.paths.nested(n);return i.keys.filter(o=>["get","put","post","delete","options","head","patch","trace"].includes(o.toLowerCase())).map(o=>{const s=i.nested(o),a=s.operationId.get()||"",l=s.summary.get();return{apiId:r,path:n,method:o,operationId:a,summary:l}})})})}function pT({tabsState:{activeTabIdx:t,tabs:e}}){return e[t.get()]}function NIe(t){const{environments:e,apis:r,tabsState:{tabs:n}}=t,i=n.filter(l=>l.data.type.get()===Ue.Step),o=hT(r),s=i.map(l=>{var w;const{collectionId:c,workflowId:u,satisfiesScheme:d}=l.data.get(),{step:f}=l.data,{operationId:h,apiId:g}=f.get().operation??{};if(!d||!h)return null;const p=(w=t.collections.find(P=>P.id.get()===c))==null?void 0:w.workflows.find(P=>P.workflowId.get()===u),y=o.find(P=>P.operationId===h&&P.apiId===g);if(!y)return null;const v=cH(f,p,t),b=fT(f.get(),t),O=RIe(f,p,t),S=AIe(f,p,t),x=f.requestBody.activeExampleName;return{apiPath:{path:y.path,method:y.method},requestValues:{cookie:O,header:v,query:S,body:b},activeExampleName:x.get(),activeSecuritySchemeIds:f.security.get().selectedSecuritySchemeId.split("_")}}).filter(l=>l!==null),a=Fd(t);return{operations:s,environment:a==null?void 0:a.name,environments:Object.fromEntries(e.get().map(l=>[l.name,{...Object.fromEntries(l.inputs.map(({name:c,value:u})=>[c,u])),...Object.fromEntries(l.servers.map(({apiId:c,value:u})=>[c,u]))}]))}}function LIe(t){const e=t.data.get();switch(e.type){case Ue.Workflow:return e.workflowId;case Ue.Collection:return e.collectionId;case Ue.Step:return e.stepId;case Ue.WorkflowRun:return e.workflowId}}function Wd(t){const e=Et(),r=pT(e);return!r.get()||t&&!yn(r.data.get(),t)?{tab:null,tabDataId:void 0}:{tab:r,tabDataId:LIe(r)}}const{createElement:xd,createContext:QIe,forwardRef:fH,useCallback:Wn,useContext:hH,useEffect:Gl,useImperativeHandle:pH,useLayoutEffect:VIe,useMemo:zIe,useRef:Gn,useState:zu}=ce,cQ=ce[`useId${Math.random()}`.slice(0,5)],BIe=VIe,Jx=QIe(null);Jx.displayName="PanelGroupContext";const Yl=BIe,qIe=typeof cQ=="function"?cQ:()=>null;let FIe=0;function gT(t=null){const e=qIe(),r=Gn(t||e||null);return r.current===null&&(r.current=""+FIe++),t??r.current}function gH({children:t,className:e="",collapsedSize:r,collapsible:n,defaultSize:i,forwardedRef:o,id:s,maxSize:a,minSize:l,onCollapse:c,onExpand:u,onResize:d,order:f,style:h,tagName:g="div",...p}){const y=hH(Jx);if(y===null)throw Error("Panel components must be rendered within a PanelGroup container");const{collapsePanel:v,expandPanel:b,getPanelSize:O,getPanelStyle:S,groupId:x,isPanelCollapsed:w,reevaluatePanelConstraints:P,registerPanel:I,resizePanel:E,unregisterPanel:M}=y,V=gT(s),U=Gn({callbacks:{onCollapse:c,onExpand:u,onResize:d},constraints:{collapsedSize:r,collapsible:n,defaultSize:i,maxSize:a,minSize:l},id:V,idIsFromProps:s!==void 0,order:f});Gn({didLogMissingDefaultSizeWarning:!1}),Yl(()=>{const{callbacks:J,constraints:te}=U.current,oe={...te};U.current.id=V,U.current.idIsFromProps=s!==void 0,U.current.order=f,J.onCollapse=c,J.onExpand=u,J.onResize=d,te.collapsedSize=r,te.collapsible=n,te.defaultSize=i,te.maxSize=a,te.minSize=l,(oe.collapsedSize!==te.collapsedSize||oe.collapsible!==te.collapsible||oe.maxSize!==te.maxSize||oe.minSize!==te.minSize)&&P(U.current,oe)}),Yl(()=>{const J=U.current;return I(J),()=>{M(J)}},[f,V,I,M]),pH(o,()=>({collapse:()=>{v(U.current)},expand:J=>{b(U.current,J)},getId(){return V},getSize(){return O(U.current)},isCollapsed(){return w(U.current)},isExpanded(){return!w(U.current)},resize:J=>{E(U.current,J)}}),[v,b,O,w,V,E]);const X=S(U.current,i);return xd(g,{...p,children:t,className:e,id:s,style:{...X,...h},"data-panel":"","data-panel-collapsible":n||void 0,"data-panel-group-id":x,"data-panel-id":V,"data-panel-size":parseFloat(""+X.flexGrow).toFixed(1)})}const sE=fH((t,e)=>xd(gH,{...t,forwardedRef:e}));gH.displayName="Panel";sE.displayName="forwardRef(Panel)";let aE=null,Bl=null;function WIe(t,e){if(e){const r=(e&OH)!==0,n=(e&xH)!==0,i=(e&SH)!==0,o=(e&wH)!==0;if(r)return i?"se-resize":o?"ne-resize":"e-resize";if(n)return i?"sw-resize":o?"nw-resize":"w-resize";if(i)return"s-resize";if(o)return"n-resize"}switch(t){case"horizontal":return"ew-resize";case"intersection":return"move";case"vertical":return"ns-resize"}}function UIe(){Bl!==null&&(document.head.removeChild(Bl),aE=null,Bl=null)}function N1(t,e){const r=WIe(t,e);aE!==r&&(aE=r,Bl===null&&(Bl=document.createElement("style"),document.head.appendChild(Bl)),Bl.innerHTML=`*{cursor: ${r}!important;}`)}function mH(t){return t.type==="keydown"}function yH(t){return t.type.startsWith("pointer")}function vH(t){return t.type.startsWith("mouse")}function Kx(t){if(yH(t)){if(t.isPrimary)return{x:t.clientX,y:t.clientY}}else if(vH(t))return{x:t.clientX,y:t.clientY};return{x:1/0,y:1/0}}function XIe(){if(typeof matchMedia=="function")return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}function ZIe(t,e,r){return t.x<e.x+e.width&&t.x+t.width>e.x&&t.y<e.y+e.height&&t.y+t.height>e.y}function GIe(t,e){if(t===e)throw new Error("Cannot compare node with itself");const r={a:fQ(t),b:fQ(e)};let n;for(;r.a.at(-1)===r.b.at(-1);)t=r.a.pop(),e=r.b.pop(),n=t;ft(n,"Stacking order can only be calculated for elements with a common ancestor");const i={a:dQ(uQ(r.a)),b:dQ(uQ(r.b))};if(i.a===i.b){const o=n.childNodes,s={a:r.a.at(-1),b:r.b.at(-1)};let a=o.length;for(;a--;){const l=o[a];if(l===s.a)return 1;if(l===s.b)return-1}}return Math.sign(i.a-i.b)}const YIe=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function HIe(t){var e;const r=getComputedStyle((e=bH(t))!==null&&e!==void 0?e:t).display;return r==="flex"||r==="inline-flex"}function JIe(t){const e=getComputedStyle(t);return!!(e.position==="fixed"||e.zIndex!=="auto"&&(e.position!=="static"||HIe(t))||+e.opacity<1||"transform"in e&&e.transform!=="none"||"webkitTransform"in e&&e.webkitTransform!=="none"||"mixBlendMode"in e&&e.mixBlendMode!=="normal"||"filter"in e&&e.filter!=="none"||"webkitFilter"in e&&e.webkitFilter!=="none"||"isolation"in e&&e.isolation==="isolate"||YIe.test(e.willChange)||e.webkitOverflowScrolling==="touch")}function uQ(t){let e=t.length;for(;e--;){const r=t[e];if(ft(r,"Missing node"),JIe(r))return r}return null}function dQ(t){return t&&Number(getComputedStyle(t).zIndex)||0}function fQ(t){const e=[];for(;t;)e.push(t),t=bH(t);return e}function bH(t){const{parentNode:e}=t;return e&&e instanceof ShadowRoot?e.host:e}const OH=1,xH=2,SH=4,wH=8,KIe=XIe()==="coarse";let ho=[],Bu=!1,Ea=new Map,eS=new Map;const kp=new Set;function eTe(t,e,r,n,i){var o;const{ownerDocument:s}=e,a={direction:r,element:e,hitAreaMargins:n,setResizeHandlerState:i},l=(o=Ea.get(s))!==null&&o!==void 0?o:0;return Ea.set(s,l+1),kp.add(a),m0(),function(){var u;eS.delete(t),kp.delete(a);const d=(u=Ea.get(s))!==null&&u!==void 0?u:1;if(Ea.set(s,d-1),m0(),d===1&&Ea.delete(s),ho.includes(a)){const f=ho.indexOf(a);f>=0&&ho.splice(f,1),yT(),i("up",!0,null)}}}function hQ(t){const{target:e}=t,{x:r,y:n}=Kx(t);Bu=!0,mT({target:e,x:r,y:n}),m0(),ho.length>0&&(y0("down",t),t.preventDefault(),t.stopPropagation())}function Ef(t){const{x:e,y:r}=Kx(t);if(Bu&&t.buttons===0&&(Bu=!1,y0("up",t)),!Bu){const{target:n}=t;mT({target:n,x:e,y:r})}y0("move",t),yT(),ho.length>0&&t.preventDefault()}function Uc(t){const{target:e}=t,{x:r,y:n}=Kx(t);eS.clear(),Bu=!1,ho.length>0&&t.preventDefault(),y0("up",t),mT({target:e,x:r,y:n}),yT(),m0()}function mT({target:t,x:e,y:r}){ho.splice(0);let n=null;(t instanceof HTMLElement||t instanceof SVGElement)&&(n=t),kp.forEach(i=>{const{element:o,hitAreaMargins:s}=i,a=o.getBoundingClientRect(),{bottom:l,left:c,right:u,top:d}=a,f=KIe?s.coarse:s.fine;if(e>=c-f&&e<=u+f&&r>=d-f&&r<=l+f){if(n!==null&&document.contains(n)&&o!==n&&!o.contains(n)&&!n.contains(o)&&GIe(n,o)>0){let g=n,p=!1;for(;g&&!g.contains(o);){if(ZIe(g.getBoundingClientRect(),a)){p=!0;break}g=g.parentElement}if(p)return}ho.push(i)}})}function L1(t,e){eS.set(t,e)}function yT(){let t=!1,e=!1;ho.forEach(n=>{const{direction:i}=n;i==="horizontal"?t=!0:e=!0});let r=0;eS.forEach(n=>{r|=n}),t&&e?N1("intersection",r):t?N1("horizontal",r):e?N1("vertical",r):UIe()}function m0(){Ea.forEach((t,e)=>{const{body:r}=e;r.removeEventListener("contextmenu",Uc),r.removeEventListener("pointerdown",hQ),r.removeEventListener("pointerleave",Ef),r.removeEventListener("pointermove",Ef)}),window.removeEventListener("pointerup",Uc),window.removeEventListener("pointercancel",Uc),kp.size>0&&(Bu?(ho.length>0&&Ea.forEach((t,e)=>{const{body:r}=e;t>0&&(r.addEventListener("contextmenu",Uc),r.addEventListener("pointerleave",Ef),r.addEventListener("pointermove",Ef))}),window.addEventListener("pointerup",Uc),window.addEventListener("pointercancel",Uc)):Ea.forEach((t,e)=>{const{body:r}=e;t>0&&(r.addEventListener("pointerdown",hQ,{capture:!0}),r.addEventListener("pointermove",Ef))}))}function y0(t,e){kp.forEach(r=>{const{setResizeHandlerState:n}=r,i=ho.includes(r);n(t,i,e)})}function tTe(){const[t,e]=zu(0);return Wn(()=>e(r=>r+1),[])}function ft(t,e){if(!t)throw console.error(e),Error(e)}const vT=10;function dc(t,e,r=vT){return t.toFixed(r)===e.toFixed(r)?0:t>e?1:-1}function js(t,e,r=vT){return dc(t,e,r)===0}function pi(t,e,r){return dc(t,e,r)===0}function rTe(t,e,r){if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++){const i=t[n],o=e[n];if(!pi(i,o,r))return!1}return!0}function Pu({panelConstraints:t,panelIndex:e,size:r}){const n=t[e];ft(n!=null,`Panel constraints not found for index ${e}`);let{collapsedSize:i=0,collapsible:o,maxSize:s=100,minSize:a=0}=n;if(dc(r,a)<0)if(o){const l=(i+a)/2;dc(r,l)<0?r=i:r=a}else r=a;return r=Math.min(s,r),r=parseFloat(r.toFixed(vT)),r}function uh({delta:t,initialLayout:e,panelConstraints:r,pivotIndices:n,prevLayout:i,trigger:o}){if(pi(t,0))return e;const s=[...e],[a,l]=n;ft(a!=null,"Invalid first pivot index"),ft(l!=null,"Invalid second pivot index");let c=0;if(o==="keyboard"){{const d=t<0?l:a,f=r[d];ft(f,`Panel constraints not found for index ${d}`);const{collapsedSize:h=0,collapsible:g,minSize:p=0}=f;if(g){const y=e[d];if(ft(y!=null,`Previous layout not found for panel index ${d}`),pi(y,h)){const v=p-y;dc(v,Math.abs(t))>0&&(t=t<0?0-v:v)}}}{const d=t<0?a:l,f=r[d];ft(f,`No panel constraints found for index ${d}`);const{collapsedSize:h=0,collapsible:g,minSize:p=0}=f;if(g){const y=e[d];if(ft(y!=null,`Previous layout not found for panel index ${d}`),pi(y,p)){const v=y-h;dc(v,Math.abs(t))>0&&(t=t<0?0-v:v)}}}}{const d=t<0?1:-1;let f=t<0?l:a,h=0;for(;;){const p=e[f];ft(p!=null,`Previous layout not found for panel index ${f}`);const v=Pu({panelConstraints:r,panelIndex:f,size:100})-p;if(h+=v,f+=d,f<0||f>=r.length)break}const g=Math.min(Math.abs(t),Math.abs(h));t=t<0?0-g:g}{let f=t<0?a:l;for(;f>=0&&f<r.length;){const h=Math.abs(t)-Math.abs(c),g=e[f];ft(g!=null,`Previous layout not found for panel index ${f}`);const p=g-h,y=Pu({panelConstraints:r,panelIndex:f,size:p});if(!pi(g,y)&&(c+=g-y,s[f]=y,c.toPrecision(3).localeCompare(Math.abs(t).toPrecision(3),void 0,{numeric:!0})>=0))break;t<0?f--:f++}}if(rTe(i,s))return i;{const d=t<0?l:a,f=e[d];ft(f!=null,`Previous layout not found for panel index ${d}`);const h=f+c,g=Pu({panelConstraints:r,panelIndex:d,size:h});if(s[d]=g,!pi(g,h)){let p=h-g,v=t<0?l:a;for(;v>=0&&v<r.length;){const b=s[v];ft(b!=null,`Previous layout not found for panel index ${v}`);const O=b+p,S=Pu({panelConstraints:r,panelIndex:v,size:O});if(pi(b,S)||(p-=S-b,s[v]=S),pi(p,0))break;t>0?v--:v++}}}const u=s.reduce((d,f)=>f+d,0);return pi(u,100)?s:i}function nTe({layout:t,panelsArray:e,pivotIndices:r}){let n=0,i=100,o=0,s=0;const a=r[0];ft(a!=null,"No pivot index found"),e.forEach((d,f)=>{const{constraints:h}=d,{maxSize:g=100,minSize:p=0}=h;f===a?(n=p,i=g):(o+=p,s+=g)});const l=Math.min(i,100-o),c=Math.max(n,100-s),u=t[a];return{valueMax:l,valueMin:c,valueNow:u}}function $p(t,e=document){return Array.from(e.querySelectorAll(`[data-panel-resize-handle-id][data-panel-group-id="${t}"]`))}function CH(t,e,r=document){const i=$p(t,r).findIndex(o=>o.getAttribute("data-panel-resize-handle-id")===e);return i??null}function PH(t,e,r){const n=CH(t,e,r);return n!=null?[n,n+1]:[-1,-1]}function kH(t,e=document){var r;if(e instanceof HTMLElement&&(e==null||(r=e.dataset)===null||r===void 0?void 0:r.panelGroupId)==t)return e;const n=e.querySelector(`[data-panel-group][data-panel-group-id="${t}"]`);return n||null}function tS(t,e=document){const r=e.querySelector(`[data-panel-resize-handle-id="${t}"]`);return r||null}function iTe(t,e,r,n=document){var i,o,s,a;const l=tS(e,n),c=$p(t,n),u=l?c.indexOf(l):-1,d=(i=(o=r[u])===null||o===void 0?void 0:o.id)!==null&&i!==void 0?i:null,f=(s=(a=r[u+1])===null||a===void 0?void 0:a.id)!==null&&s!==void 0?s:null;return[d,f]}function oTe({committedValuesRef:t,eagerValuesRef:e,groupId:r,layout:n,panelDataArray:i,panelGroupElement:o,setLayout:s}){Gn({didWarnAboutMissingResizeHandle:!1}),Yl(()=>{if(!o)return;const a=$p(r,o);for(let l=0;l<i.length-1;l++){const{valueMax:c,valueMin:u,valueNow:d}=nTe({layout:n,panelsArray:i,pivotIndices:[l,l+1]}),f=a[l];if(f!=null){const h=i[l];ft(h,`No panel data found for index "${l}"`),f.setAttribute("aria-controls",h.id),f.setAttribute("aria-valuemax",""+Math.round(c)),f.setAttribute("aria-valuemin",""+Math.round(u)),f.setAttribute("aria-valuenow",d!=null?""+Math.round(d):"")}}return()=>{a.forEach((l,c)=>{l.removeAttribute("aria-controls"),l.removeAttribute("aria-valuemax"),l.removeAttribute("aria-valuemin"),l.removeAttribute("aria-valuenow")})}},[r,n,i,o]),Gl(()=>{if(!o)return;const a=e.current;ft(a,"Eager values not found");const{panelDataArray:l}=a,c=kH(r,o);ft(c!=null,`No group found for id "${r}"`);const u=$p(r,o);ft(u,`No resize handles found for group id "${r}"`);const d=u.map(f=>{const h=f.getAttribute("data-panel-resize-handle-id");ft(h,"Resize handle element has no handle id attribute");const[g,p]=iTe(r,h,l,o);if(g==null||p==null)return()=>{};const y=v=>{if(!v.defaultPrevented)switch(v.key){case"Enter":{v.preventDefault();const b=l.findIndex(O=>O.id===g);if(b>=0){const O=l[b];ft(O,`No panel data found for index ${b}`);const S=n[b],{collapsedSize:x=0,collapsible:w,minSize:P=0}=O.constraints;if(S!=null&&w){const I=uh({delta:pi(S,x)?P-x:x-S,initialLayout:n,panelConstraints:l.map(E=>E.constraints),pivotIndices:PH(r,h,o),prevLayout:n,trigger:"keyboard"});n!==I&&s(I)}}break}}};return f.addEventListener("keydown",y),()=>{f.removeEventListener("keydown",y)}});return()=>{d.forEach(f=>f())}},[o,t,e,r,n,i,s])}function pQ(t,e){if(t.length!==e.length)return!1;for(let r=0;r<t.length;r++)if(t[r]!==e[r])return!1;return!0}function $H(t,e){const r=t==="horizontal",{x:n,y:i}=Kx(e);return r?n:i}function sTe(t,e,r,n,i){const o=r==="horizontal",s=tS(e,i);ft(s,`No resize handle element found for id "${e}"`);const a=s.getAttribute("data-panel-group-id");ft(a,"Resize handle element has no group id attribute");let{initialCursorPosition:l}=n;const c=$H(r,t),u=kH(a,i);ft(u,`No group element found for id "${a}"`);const d=u.getBoundingClientRect(),f=o?d.width:d.height;return(c-l)/f*100}function aTe(t,e,r,n,i,o){if(mH(t)){const s=r==="horizontal";let a=0;t.shiftKey?a=100:i!=null?a=i:a=10;let l=0;switch(t.key){case"ArrowDown":l=s?0:a;break;case"ArrowLeft":l=s?-a:0;break;case"ArrowRight":l=s?a:0;break;case"ArrowUp":l=s?0:-a;break;case"End":l=100;break;case"Home":l=-100;break}return l}else return n==null?0:sTe(t,e,r,n,o)}function lTe({panelDataArray:t}){const e=Array(t.length),r=t.map(o=>o.constraints);let n=0,i=100;for(let o=0;o<t.length;o++){const s=r[o];ft(s,`Panel constraints not found for index ${o}`);const{defaultSize:a}=s;a!=null&&(n++,e[o]=a,i-=a)}for(let o=0;o<t.length;o++){const s=r[o];ft(s,`Panel constraints not found for index ${o}`);const{defaultSize:a}=s;if(a!=null)continue;const l=t.length-n,c=i/l;n++,e[o]=c,i-=c}return e}function Xc(t,e,r){e.forEach((n,i)=>{const o=t[i];ft(o,`Panel data not found for index ${i}`);const{callbacks:s,constraints:a,id:l}=o,{collapsedSize:c=0,collapsible:u}=a,d=r[l];if(d==null||n!==d){r[l]=n;const{onCollapse:f,onExpand:h,onResize:g}=s;g&&g(n,d),u&&(f||h)&&(h&&(d==null||js(d,c))&&!js(n,c)&&h(),f&&(d==null||!js(d,c))&&js(n,c)&&f())}})}function Nm(t,e){if(t.length!==e.length)return!1;for(let r=0;r<t.length;r++)if(t[r]!=e[r])return!1;return!0}function cTe({defaultSize:t,dragState:e,layout:r,panelData:n,panelIndex:i,precision:o=3}){const s=r[i];let a;return s==null?a=t!=null?t.toPrecision(o):"1":n.length===1?a="1":a=s.toPrecision(o),{flexBasis:0,flexGrow:a,flexShrink:1,overflow:"hidden",pointerEvents:e!==null?"none":void 0}}function uTe(t,e=10){let r=null;return(...i)=>{r!==null&&clearTimeout(r),r=setTimeout(()=>{t(...i)},e)}}function gQ(t){try{if(typeof localStorage<"u")t.getItem=e=>localStorage.getItem(e),t.setItem=(e,r)=>{localStorage.setItem(e,r)};else throw new Error("localStorage not supported in this environment")}catch(e){console.error(e),t.getItem=()=>null,t.setItem=()=>{}}}function EH(t){return`react-resizable-panels:${t}`}function AH(t){return t.map(e=>{const{constraints:r,id:n,idIsFromProps:i,order:o}=e;return i?n:o?`${o}:${JSON.stringify(r)}`:JSON.stringify(r)}).sort((e,r)=>e.localeCompare(r)).join(",")}function IH(t,e){try{const r=EH(t),n=e.getItem(r);if(n){const i=JSON.parse(n);if(typeof i=="object"&&i!=null)return i}}catch{}return null}function dTe(t,e,r){var n,i;const o=(n=IH(t,r))!==null&&n!==void 0?n:{},s=AH(e);return(i=o[s])!==null&&i!==void 0?i:null}function fTe(t,e,r,n,i){var o;const s=EH(t),a=AH(e),l=(o=IH(t,i))!==null&&o!==void 0?o:{};l[a]={expandToSizes:Object.fromEntries(r.entries()),layout:n};try{i.setItem(s,JSON.stringify(l))}catch(c){console.error(c)}}function mQ({layout:t,panelConstraints:e}){const r=[...t],n=r.reduce((o,s)=>o+s,0);if(r.length!==e.length)throw Error(`Invalid ${e.length} panel layout: ${r.map(o=>`${o}%`).join(", ")}`);if(!pi(n,100)&&r.length>0)for(let o=0;o<e.length;o++){const s=r[o];ft(s!=null,`No layout data found for index ${o}`);const a=100/n*s;r[o]=a}let i=0;for(let o=0;o<e.length;o++){const s=r[o];ft(s!=null,`No layout data found for index ${o}`);const a=Pu({panelConstraints:e,panelIndex:o,size:s});s!=a&&(i+=s-a,r[o]=a)}if(!pi(i,0))for(let o=0;o<e.length;o++){const s=r[o];ft(s!=null,`No layout data found for index ${o}`);const a=s+i,l=Pu({panelConstraints:e,panelIndex:o,size:a});if(s!==l&&(i-=l-s,r[o]=l,pi(i,0)))break}return r}const hTe=100,dh={getItem:t=>(gQ(dh),dh.getItem(t)),setItem:(t,e)=>{gQ(dh),dh.setItem(t,e)}},yQ={};function TH({autoSaveId:t=null,children:e,className:r="",direction:n,forwardedRef:i,id:o=null,onLayout:s=null,keyboardResizeBy:a=null,storage:l=dh,style:c,tagName:u="div",...d}){const f=gT(o),h=Gn(null),[g,p]=zu(null),[y,v]=zu([]),b=tTe(),O=Gn({}),S=Gn(new Map),x=Gn(0),w=Gn({autoSaveId:t,direction:n,dragState:g,id:f,keyboardResizeBy:a,onLayout:s,storage:l}),P=Gn({layout:y,panelDataArray:[],panelDataArrayChanged:!1});Gn({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),pH(i,()=>({getId:()=>w.current.id,getLayout:()=>{const{layout:_}=P.current;return _},setLayout:_=>{const{onLayout:k}=w.current,{layout:T,panelDataArray:j}=P.current,Z=mQ({layout:_,panelConstraints:j.map(Y=>Y.constraints)});pQ(T,Z)||(v(Z),P.current.layout=Z,k&&k(Z),Xc(j,Z,O.current))}}),[]),Yl(()=>{w.current.autoSaveId=t,w.current.direction=n,w.current.dragState=g,w.current.id=f,w.current.onLayout=s,w.current.storage=l}),oTe({committedValuesRef:w,eagerValuesRef:P,groupId:f,layout:y,panelDataArray:P.current.panelDataArray,setLayout:v,panelGroupElement:h.current}),Gl(()=>{const{panelDataArray:_}=P.current;if(t){if(y.length===0||y.length!==_.length)return;let k=yQ[t];k==null&&(k=uTe(fTe,hTe),yQ[t]=k);const T=[..._],j=new Map(S.current);k(t,T,j,y,l)}},[t,y,l]),Gl(()=>{});const I=Wn(_=>{const{onLayout:k}=w.current,{layout:T,panelDataArray:j}=P.current;if(_.constraints.collapsible){const Z=j.map(B=>B.constraints),{collapsedSize:Y=0,panelSize:ue,pivotIndices:G}=Ol(j,_,T);if(ft(ue!=null,`Panel size not found for panel "${_.id}"`),!js(ue,Y)){S.current.set(_.id,ue);const z=du(j,_)===j.length-1?ue-Y:Y-ue,ne=uh({delta:z,initialLayout:T,panelConstraints:Z,pivotIndices:G,prevLayout:T,trigger:"imperative-api"});Nm(T,ne)||(v(ne),P.current.layout=ne,k&&k(ne),Xc(j,ne,O.current))}}},[]),E=Wn((_,k)=>{const{onLayout:T}=w.current,{layout:j,panelDataArray:Z}=P.current;if(_.constraints.collapsible){const Y=Z.map(H=>H.constraints),{collapsedSize:ue=0,panelSize:G=0,minSize:B=0,pivotIndices:z}=Ol(Z,_,j),ne=k??B;if(js(G,ue)){const H=S.current.get(_.id),le=H!=null&&H>=ne?H:ne,ee=du(Z,_)===Z.length-1?G-le:le-G,fe=uh({delta:ee,initialLayout:j,panelConstraints:Y,pivotIndices:z,prevLayout:j,trigger:"imperative-api"});Nm(j,fe)||(v(fe),P.current.layout=fe,T&&T(fe),Xc(Z,fe,O.current))}}},[]),M=Wn(_=>{const{layout:k,panelDataArray:T}=P.current,{panelSize:j}=Ol(T,_,k);return ft(j!=null,`Panel size not found for panel "${_.id}"`),j},[]),V=Wn((_,k)=>{const{panelDataArray:T}=P.current,j=du(T,_);return cTe({defaultSize:k,dragState:g,layout:y,panelData:T,panelIndex:j})},[g,y]),U=Wn(_=>{const{layout:k,panelDataArray:T}=P.current,{collapsedSize:j=0,collapsible:Z,panelSize:Y}=Ol(T,_,k);return ft(Y!=null,`Panel size not found for panel "${_.id}"`),Z===!0&&js(Y,j)},[]),X=Wn(_=>{const{layout:k,panelDataArray:T}=P.current,{collapsedSize:j=0,collapsible:Z,panelSize:Y}=Ol(T,_,k);return ft(Y!=null,`Panel size not found for panel "${_.id}"`),!Z||dc(Y,j)>0},[]),J=Wn(_=>{const{panelDataArray:k}=P.current;k.push(_),k.sort((T,j)=>{const Z=T.order,Y=j.order;return Z==null&&Y==null?0:Z==null?-1:Y==null?1:Z-Y}),P.current.panelDataArrayChanged=!0,b()},[b]);Yl(()=>{if(P.current.panelDataArrayChanged){P.current.panelDataArrayChanged=!1;const{autoSaveId:_,onLayout:k,storage:T}=w.current,{layout:j,panelDataArray:Z}=P.current;let Y=null;if(_){const G=dTe(_,Z,T);G&&(S.current=new Map(Object.entries(G.expandToSizes)),Y=G.layout)}Y==null&&(Y=lTe({panelDataArray:Z}));const ue=mQ({layout:Y,panelConstraints:Z.map(G=>G.constraints)});pQ(j,ue)||(v(ue),P.current.layout=ue,k&&k(ue),Xc(Z,ue,O.current))}}),Yl(()=>{const _=P.current;return()=>{_.layout=[]}},[]);const te=Wn(_=>{let k=!1;const T=h.current;return T&&window.getComputedStyle(T,null).getPropertyValue("direction")==="rtl"&&(k=!0),function(Z){Z.preventDefault();const Y=h.current;if(!Y)return()=>null;const{direction:ue,dragState:G,id:B,keyboardResizeBy:z,onLayout:ne}=w.current,{layout:H,panelDataArray:le}=P.current,{initialLayout:Se}=G??{},ee=PH(B,_,Y);let fe=aTe(Z,_,ue,G,z,Y);const Ce=ue==="horizontal";Ce&&k&&(fe=-fe);const Oe=le.map(de=>de.constraints),be=uh({delta:fe,initialLayout:Se??H,panelConstraints:Oe,pivotIndices:ee,prevLayout:H,trigger:mH(Z)?"keyboard":"mouse-or-touch"}),we=!Nm(H,be);(yH(Z)||vH(Z))&&x.current!=fe&&(x.current=fe,!we&&fe!==0?Ce?L1(_,fe<0?OH:xH):L1(_,fe<0?SH:wH):L1(_,0)),we&&(v(be),P.current.layout=be,ne&&ne(be),Xc(le,be,O.current))}},[]),oe=Wn((_,k)=>{const{onLayout:T}=w.current,{layout:j,panelDataArray:Z}=P.current,Y=Z.map(H=>H.constraints),{panelSize:ue,pivotIndices:G}=Ol(Z,_,j);ft(ue!=null,`Panel size not found for panel "${_.id}"`);const z=du(Z,_)===Z.length-1?ue-k:k-ue,ne=uh({delta:z,initialLayout:j,panelConstraints:Y,pivotIndices:G,prevLayout:j,trigger:"imperative-api"});Nm(j,ne)||(v(ne),P.current.layout=ne,T&&T(ne),Xc(Z,ne,O.current))},[]),ae=Wn((_,k)=>{const{layout:T,panelDataArray:j}=P.current,{collapsedSize:Z=0,collapsible:Y}=k,{collapsedSize:ue=0,collapsible:G,maxSize:B=100,minSize:z=0}=_.constraints,{panelSize:ne}=Ol(j,_,T);ne!=null&&(Y&&G&&js(ne,Z)?js(Z,ue)||oe(_,ue):ne<z?oe(_,z):ne>B&&oe(_,B))},[oe]),ie=Wn((_,k)=>{const{direction:T}=w.current,{layout:j}=P.current;if(!h.current)return;const Z=tS(_,h.current);ft(Z,`Drag handle element not found for id "${_}"`);const Y=$H(T,k);p({dragHandleId:_,dragHandleRect:Z.getBoundingClientRect(),initialCursorPosition:Y,initialLayout:j})},[]),he=Wn(()=>{p(null)},[]),L=Wn(_=>{const{panelDataArray:k}=P.current,T=du(k,_);T>=0&&(k.splice(T,1),delete O.current[_.id],P.current.panelDataArrayChanged=!0,b())},[b]),D=zIe(()=>({collapsePanel:I,direction:n,dragState:g,expandPanel:E,getPanelSize:M,getPanelStyle:V,groupId:f,isPanelCollapsed:U,isPanelExpanded:X,reevaluatePanelConstraints:ae,registerPanel:J,registerResizeHandle:te,resizePanel:oe,startDragging:ie,stopDragging:he,unregisterPanel:L,panelGroupElement:h.current}),[I,g,n,E,M,V,f,U,X,ae,J,te,oe,ie,he,L]),Q={display:"flex",flexDirection:n==="horizontal"?"row":"column",height:"100%",overflow:"hidden",width:"100%"};return xd(Jx.Provider,{value:D},xd(u,{...d,children:e,className:r,id:o,ref:h,style:{...Q,...c},"data-panel-group":"","data-panel-group-direction":n,"data-panel-group-id":f}))}const _H=fH((t,e)=>xd(TH,{...t,forwardedRef:e}));TH.displayName="PanelGroup";_H.displayName="forwardRef(PanelGroup)";function du(t,e){return t.findIndex(r=>r===e||r.id===e.id)}function Ol(t,e,r){const n=du(t,e),o=n===t.length-1?[n-1,n]:[n,n+1],s=r[n];return{...e.constraints,panelSize:s,pivotIndices:o}}function pTe({disabled:t,handleId:e,resizeHandler:r,panelGroupElement:n}){Gl(()=>{if(t||r==null||n==null)return;const i=tS(e,n);if(i==null)return;const o=s=>{if(!s.defaultPrevented)switch(s.key){case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"End":case"Home":{s.preventDefault(),r(s);break}case"F6":{s.preventDefault();const a=i.getAttribute("data-panel-group-id");ft(a,`No group element found for id "${a}"`);const l=$p(a,n),c=CH(a,e,n);ft(c!==null,`No resize element found for id "${e}"`);const u=s.shiftKey?c>0?c-1:l.length-1:c+1<l.length?c+1:0;l[u].focus();break}}};return i.addEventListener("keydown",o),()=>{i.removeEventListener("keydown",o)}},[n,t,e,r])}function RH({children:t=null,className:e="",disabled:r=!1,hitAreaMargins:n,id:i,onBlur:o,onDragging:s,onFocus:a,style:l={},tabIndex:c=0,tagName:u="div",...d}){var f,h;const g=Gn(null),p=Gn({onDragging:s});Gl(()=>{p.current.onDragging=s});const y=hH(Jx);if(y===null)throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");const{direction:v,groupId:b,registerResizeHandle:O,startDragging:S,stopDragging:x,panelGroupElement:w}=y,P=gT(i),[I,E]=zu("inactive"),[M,V]=zu(!1),[U,X]=zu(null),J=Gn({state:I});Yl(()=>{J.current.state=I}),Gl(()=>{if(r)X(null);else{const ie=O(P);X(()=>ie)}},[r,P,O]);const te=(f=n==null?void 0:n.coarse)!==null&&f!==void 0?f:15,oe=(h=n==null?void 0:n.fine)!==null&&h!==void 0?h:5;return Gl(()=>{if(r||U==null)return;const ie=g.current;return ft(ie,"Element ref not attached"),eTe(P,ie,v,{coarse:te,fine:oe},(L,D,Q)=>{if(D)switch(L){case"down":{E("drag"),ft(Q,'Expected event to be defined for "down" action'),S(P,Q);const{onDragging:_}=p.current;_&&_(!0);break}case"move":{const{state:_}=J.current;_!=="drag"&&E("hover"),ft(Q,'Expected event to be defined for "move" action'),U(Q);break}case"up":{E("hover"),x();const{onDragging:_}=p.current;_&&_(!1);break}}else E("inactive")})},[te,v,r,oe,O,P,U,S,x]),pTe({disabled:r,handleId:P,resizeHandler:U,panelGroupElement:w}),xd(u,{...d,children:t,className:e,id:i,onBlur:()=>{V(!1),o==null||o()},onFocus:()=>{V(!0),a==null||a()},ref:g,role:"separator",style:{...{touchAction:"none",userSelect:"none"},...l},tabIndex:c,"data-panel-group-direction":v,"data-panel-group-id":b,"data-resize-handle":"","data-resize-handle-active":I==="drag"?"pointer":M?"keyboard":void 0,"data-resize-handle-state":I,"data-panel-resize-handle-enabled":!r,"data-panel-resize-handle-id":P})}RH.displayName="PanelResizeHandle";const jH=N.createContext({isMobile:!1,activeTab:"Request",MobileHeader:()=>null,setActiveTab:()=>null,closeButton:null}),Oo=()=>N.useContext(jH);function gTe(){var l;const t=N.useRef(null),[e,r]=N.useState(((l=t.current)==null?void 0:l.isCollapsed())||!0),n=()=>{t.current&&(t.current.collapse(),r(!0))},i=()=>{t.current&&(t.current.expand(),r(!1))};return{panelProps:{ref:t,collapsible:!0,onCollapse:n,onExpand:i},panel:{isCollapsed:e,collapse:n,expand:i,toggle:()=>{t.current&&(e?t.current.expand():t.current.collapse(),r(!e))}}}}const Ve=R.div`
|
|
618
618
|
border-right: 1px solid var(--border-color-secondary);
|
|
619
619
|
align-self: stretch;
|
|
@@ -792,7 +792,7 @@ You should wrap it with \`css\` like this:
|
|
|
792
792
|
flex-direction: column;
|
|
793
793
|
justify-content: center;
|
|
794
794
|
align-items: flex-start;
|
|
795
|
-
`;function GH({input:t,server:e,showControlsOnHover:r}){const[n,i]=N.useState(!1),{sendEvent:o}=bt(),{name:s,value:a}=t.get(),l=d=>{o("input.management",{action:"saved",context:"server_variable",api_id:e.apiId.get(),name:s,changed:d.value!==a}),t.set(d),i(!1)},c=()=>{i(!1),o("input.management",{action:"editing_cancelled",context:"server_variable",api_id:e.apiId.get(),name:s})},u=()=>{i(!0),o("input.management",{action:"editing_started",context:"server_variable",api_id:e.apiId.get(),name:s})};return n?m.jsx(
|
|
795
|
+
`;function GH({input:t,server:e,showControlsOnHover:r}){const[n,i]=N.useState(!1),{sendEvent:o}=bt(),{name:s,value:a}=t.get(),l=d=>{o("input.management",{action:"saved",context:"server_variable",api_id:e.apiId.get(),name:s,changed:d.value!==a}),t.set(d),i(!1)},c=()=>{i(!1),o("input.management",{action:"editing_cancelled",context:"server_variable",api_id:e.apiId.get(),name:s})},u=()=>{i(!0),o("input.management",{action:"editing_started",context:"server_variable",api_id:e.apiId.get(),name:s})};return n?m.jsx(LZ,{variable:t.get(),onSave:l,onCancel:c,readonlyName:!0}):m.jsx(sS,{dataTestId:`server-variable-${s}`,showControlsOnHover:r,controls:m.jsx(m.Fragment,{children:m.jsx(fo,{"data-testid":`edit-server-variable-btn-${s}`,size:"small",variant:"text",icon:m.jsx(q.EditIcon,{}),onClick:u})}),children:m.jsxs(r_e,{children:[m.jsx(n_e,{children:m.jsx(i_e,{children:s})}),m.jsx(o_e,{$isEmpty:!t.get().value,children:t.get().value||"No value"})]})})}const r_e=R.div`
|
|
796
796
|
display: flex;
|
|
797
797
|
flex-direction: column;
|
|
798
798
|
justify-content: center;
|
|
@@ -1461,7 +1461,7 @@ Please report this to https://github.com/markedjs/marked.`,t){const i="<p>An err
|
|
|
1461
1461
|
&:hover {
|
|
1462
1462
|
background-color: var(--bg-color-hover);
|
|
1463
1463
|
}
|
|
1464
|
-
`;function eje({step:t}){function e(r){t.description.set(r.target.value)}return m.jsx(m.Fragment,{children:m.jsxs(f7,{children:[m.jsxs(Na,{children:[m.jsx(fE,{name:m.jsxs(m.Fragment,{children:["Step ID",m.jsx(Jo,{tooltipProps:{content:"This step's unique identifier",placement:"right"}})]}),editorTitle:"Change step ID",attribute:t.stepId}),m.jsx(URe,{step:t})]}),m.jsxs(Na,{children:[m.jsxs(Sd,{children:["Description",m.jsx(Jo,{tooltipProps:{content:"A brief explanation of the purpose and function of this step in workflow.",placement:"right"}})]}),m.jsx(h7,{"data-testid":"step-description-input",rows:3,value:t.description.get()||"",onChange:e})]}),m.jsx(Na,{children:m.jsx(p7,{outputs:t.outputs,tooltipText:"Data generated in this step that can be used in the next steps."})}),m.jsx(Na,{children:m.jsx(DRe,{successCriteria:t.successCriteria})})]})})}function tje({onParameterChange:t,files:e}){const r=N.useRef(null),n=a=>{var l;(l=a.target.files)!=null&&l.length&&t(Array.from(a.target.files).map(c=>({absolutePath:null,file:c})))},i=async()=>{var a;if(Qd())try{const{open:l}=await Promise.resolve().then(()=>require("./replay-index-
|
|
1464
|
+
`;function eje({step:t}){function e(r){t.description.set(r.target.value)}return m.jsx(m.Fragment,{children:m.jsxs(f7,{children:[m.jsxs(Na,{children:[m.jsx(fE,{name:m.jsxs(m.Fragment,{children:["Step ID",m.jsx(Jo,{tooltipProps:{content:"This step's unique identifier",placement:"right"}})]}),editorTitle:"Change step ID",attribute:t.stepId}),m.jsx(URe,{step:t})]}),m.jsxs(Na,{children:[m.jsxs(Sd,{children:["Description",m.jsx(Jo,{tooltipProps:{content:"A brief explanation of the purpose and function of this step in workflow.",placement:"right"}})]}),m.jsx(h7,{"data-testid":"step-description-input",rows:3,value:t.description.get()||"",onChange:e})]}),m.jsx(Na,{children:m.jsx(p7,{outputs:t.outputs,tooltipText:"Data generated in this step that can be used in the next steps."})}),m.jsx(Na,{children:m.jsx(DRe,{successCriteria:t.successCriteria})})]})})}function tje({onParameterChange:t,files:e}){const r=N.useRef(null),n=a=>{var l;(l=a.target.files)!=null&&l.length&&t(Array.from(a.target.files).map(c=>({absolutePath:null,file:c})))},i=async()=>{var a;if(Qd())try{const{open:l}=await Promise.resolve().then(()=>require("./replay-index-D7wVG1Y9.js")),c=await l({multiple:!0});if(!c)return;const d=(Array.isArray(c)?c:[c]).map(Up),h=(await Promise.all(d)).filter(g=>g!==null);t(h)}catch(l){console.error("Failed to open file dialog or read file:",l)}else(a=r.current)==null||a.click()},o=N.useCallback(()=>{t(null)},[t]),s=N.useMemo(()=>{if(!e)return null;if(e.length===1)return m.jsx(jQ,{icon:m.jsx(q.CloseIcon,{}),variant:"secondary",onClick:o,iconPosition:"right",size:"small",children:m.jsx(DQ,{children:e[0].file.name})});if(e.length>1)return m.jsx(jQ,{icon:m.jsx(q.CloseIcon,{}),variant:"secondary",onClick:o,iconPosition:"right",size:"small",children:m.jsxs(DQ,{children:[e.length," files"]})})},[e,o]);return m.jsx(rje,{children:m.jsxs(nje,{children:[m.jsx(ije,{children:s||m.jsx(sje,{children:"Add files here"})}),m.jsxs(oje,{children:[m.jsx(Pke,{onClick:i,variant:"text","data-testid":"add-button",icon:m.jsx(q.AddIcon,{color:"--text-color-secondary"})}),m.jsx("input",{"data-testid":"file-input",hidden:!0,ref:r,type:"file",multiple:!0,accept:"files/*",onChange:n})]})]})})}const rje=R.div`
|
|
1465
1465
|
position: relative;
|
|
1466
1466
|
display: flex;
|
|
1467
1467
|
flex-grow: 1;
|
|
@@ -1586,7 +1586,7 @@ Please report this to https://github.com/markedjs/marked.`,t){const i="<p>An err
|
|
|
1586
1586
|
`,Oje=R.div`
|
|
1587
1587
|
display: flex;
|
|
1588
1588
|
justify-content: center;
|
|
1589
|
-
`;function xje({data:t,type:e,editable:r}){const n=tr(),i=t[e];function o(a,l){l&&i.merge([Ul()])}function s(a){i[a].set(ot)}return m.jsx(lje,{keyName:"Param",formElements:i,onParameterChange:o,environment:n,enableInputTypeSelection:e!==vn["application/x-www-form-urlencoded"],editable:r,actions:a=>m.jsx(on,{onClick:()=>s(a),variant:"text",icon:m.jsx(q.TrashCanIcon,{})})})}const Sje=({data:t})=>{var c,u;const e=t.get(),[r,n]=N.useState(!1),i=N.useRef(null),o=d=>{var h;const f=(h=d.target.files)==null?void 0:h[0];if(f){n(!0);const g=new FileReader;g.onload=()=>{n(!1),t.set({absolutePath:null,file:f})},g.readAsDataURL(f)}},s=async d=>{var f;if(d==null||d.preventDefault(),Qd())try{const{open:h}=await Promise.resolve().then(()=>require("./replay-index-
|
|
1589
|
+
`;function xje({data:t,type:e,editable:r}){const n=tr(),i=t[e];function o(a,l){l&&i.merge([Ul()])}function s(a){i[a].set(ot)}return m.jsx(lje,{keyName:"Param",formElements:i,onParameterChange:o,environment:n,enableInputTypeSelection:e!==vn["application/x-www-form-urlencoded"],editable:r,actions:a=>m.jsx(on,{onClick:()=>s(a),variant:"text",icon:m.jsx(q.TrashCanIcon,{})})})}const Sje=({data:t})=>{var c,u;const e=t.get(),[r,n]=N.useState(!1),i=N.useRef(null),o=d=>{var h;const f=(h=d.target.files)==null?void 0:h[0];if(f){n(!0);const g=new FileReader;g.onload=()=>{n(!1),t.set({absolutePath:null,file:f})},g.readAsDataURL(f)}},s=async d=>{var f;if(d==null||d.preventDefault(),Qd())try{const{open:h}=await Promise.resolve().then(()=>require("./replay-index-D7wVG1Y9.js")),g=await h();if(!g)return;const p=await Up(g);t.set(p)}catch(h){console.error("Failed to open file dialog or read file:",h)}else(f=i.current)==null||f.click()},a=d=>{d.key==="Enter"&&(d.preventDefault(),s())},l=()=>{t.set(null)};return r?m.jsxs(wje,{children:[m.jsx(q.SpinnerIcon,{}),"Loading..."]}):e&&((c=e.file)!=null&&c.name)?m.jsxs(Cje,{children:[m.jsxs(Pje,{children:[m.jsx(q.DocumentBlankIcon,{size:"16px"}),m.jsx(kje,{children:(u=e.file)==null?void 0:u.name})]}),m.jsx(on,{onClick:l,icon:m.jsx(q.TrashCanIcon,{})})]}):m.jsx(y7,{children:!e&&m.jsxs($je,{tabIndex:0,role:"button",onKeyDown:a,onClick:s,children:[m.jsx("input",{type:"file",onChange:o,ref:i}),m.jsx(q.CloudUploadIcon,{}),"Upload file"]})})},y7=R.div`
|
|
1590
1590
|
display: flex;
|
|
1591
1591
|
align-items: center;
|
|
1592
1592
|
justify-content: flex-start;
|
|
@@ -2444,7 +2444,7 @@ Please report this to https://github.com/markedjs/marked.`,t){const i="<p>An err
|
|
|
2444
2444
|
gap: var(--spacing-lg);
|
|
2445
2445
|
`,U7={},X7=Object.freeze(Object.defineProperty({__proto__:null,default:U7},Symbol.toStringTag,{value:"Module"}));var q1,tV;function RNe(){if(tV)return q1;tV=1;function t(i){if(typeof i!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(i))}function e(i,o){for(var s="",a=0,l=-1,c=0,u,d=0;d<=i.length;++d){if(d<i.length)u=i.charCodeAt(d);else{if(u===47)break;u=47}if(u===47){if(!(l===d-1||c===1))if(l!==d-1&&c===2){if(s.length<2||a!==2||s.charCodeAt(s.length-1)!==46||s.charCodeAt(s.length-2)!==46){if(s.length>2){var f=s.lastIndexOf("/");if(f!==s.length-1){f===-1?(s="",a=0):(s=s.slice(0,f),a=s.length-1-s.lastIndexOf("/")),l=d,c=0;continue}}else if(s.length===2||s.length===1){s="",a=0,l=d,c=0;continue}}o&&(s.length>0?s+="/..":s="..",a=2)}else s.length>0?s+="/"+i.slice(l+1,d):s=i.slice(l+1,d),a=d-l-1;l=d,c=0}else u===46&&c!==-1?++c:c=-1}return s}function r(i,o){var s=o.dir||o.root,a=o.base||(o.name||"")+(o.ext||"");return s?s===o.root?s+a:s+i+a:a}var n={resolve:function(){for(var o="",s=!1,a,l=arguments.length-1;l>=-1&&!s;l--){var c;l>=0?c=arguments[l]:(a===void 0&&(a=process.cwd()),c=a),t(c),c.length!==0&&(o=c+"/"+o,s=c.charCodeAt(0)===47)}return o=e(o,!s),s?o.length>0?"/"+o:"/":o.length>0?o:"."},normalize:function(o){if(t(o),o.length===0)return".";var s=o.charCodeAt(0)===47,a=o.charCodeAt(o.length-1)===47;return o=e(o,!s),o.length===0&&!s&&(o="."),o.length>0&&a&&(o+="/"),s?"/"+o:o},isAbsolute:function(o){return t(o),o.length>0&&o.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var o,s=0;s<arguments.length;++s){var a=arguments[s];t(a),a.length>0&&(o===void 0?o=a:o+="/"+a)}return o===void 0?".":n.normalize(o)},relative:function(o,s){if(t(o),t(s),o===s||(o=n.resolve(o),s=n.resolve(s),o===s))return"";for(var a=1;a<o.length&&o.charCodeAt(a)===47;++a);for(var l=o.length,c=l-a,u=1;u<s.length&&s.charCodeAt(u)===47;++u);for(var d=s.length,f=d-u,h=c<f?c:f,g=-1,p=0;p<=h;++p){if(p===h){if(f>h){if(s.charCodeAt(u+p)===47)return s.slice(u+p+1);if(p===0)return s.slice(u+p)}else c>h&&(o.charCodeAt(a+p)===47?g=p:p===0&&(g=0));break}var y=o.charCodeAt(a+p),v=s.charCodeAt(u+p);if(y!==v)break;y===47&&(g=p)}var b="";for(p=a+g+1;p<=l;++p)(p===l||o.charCodeAt(p)===47)&&(b.length===0?b+="..":b+="/..");return b.length>0?b+s.slice(u+g):(u+=g,s.charCodeAt(u)===47&&++u,s.slice(u))},_makeLong:function(o){return o},dirname:function(o){if(t(o),o.length===0)return".";for(var s=o.charCodeAt(0),a=s===47,l=-1,c=!0,u=o.length-1;u>=1;--u)if(s=o.charCodeAt(u),s===47){if(!c){l=u;break}}else c=!1;return l===-1?a?"/":".":a&&l===1?"//":o.slice(0,l)},basename:function(o,s){if(s!==void 0&&typeof s!="string")throw new TypeError('"ext" argument must be a string');t(o);var a=0,l=-1,c=!0,u;if(s!==void 0&&s.length>0&&s.length<=o.length){if(s.length===o.length&&s===o)return"";var d=s.length-1,f=-1;for(u=o.length-1;u>=0;--u){var h=o.charCodeAt(u);if(h===47){if(!c){a=u+1;break}}else f===-1&&(c=!1,f=u+1),d>=0&&(h===s.charCodeAt(d)?--d===-1&&(l=u):(d=-1,l=f))}return a===l?l=f:l===-1&&(l=o.length),o.slice(a,l)}else{for(u=o.length-1;u>=0;--u)if(o.charCodeAt(u)===47){if(!c){a=u+1;break}}else l===-1&&(c=!1,l=u+1);return l===-1?"":o.slice(a,l)}},extname:function(o){t(o);for(var s=-1,a=0,l=-1,c=!0,u=0,d=o.length-1;d>=0;--d){var f=o.charCodeAt(d);if(f===47){if(!c){a=d+1;break}continue}l===-1&&(c=!1,l=d+1),f===46?s===-1?s=d:u!==1&&(u=1):s!==-1&&(u=-1)}return s===-1||l===-1||u===0||u===1&&s===l-1&&s===a+1?"":o.slice(s,l)},format:function(o){if(o===null||typeof o!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof o);return r("/",o)},parse:function(o){t(o);var s={root:"",dir:"",base:"",ext:"",name:""};if(o.length===0)return s;var a=o.charCodeAt(0),l=a===47,c;l?(s.root="/",c=1):c=0;for(var u=-1,d=0,f=-1,h=!0,g=o.length-1,p=0;g>=c;--g){if(a=o.charCodeAt(g),a===47){if(!h){d=g+1;break}continue}f===-1&&(h=!1,f=g+1),a===46?u===-1?u=g:p!==1&&(p=1):u!==-1&&(p=-1)}return u===-1||f===-1||p===0||p===1&&u===f-1&&u===d+1?f!==-1&&(d===0&&l?s.base=s.name=o.slice(1,f):s.base=s.name=o.slice(d,f)):(d===0&&l?(s.name=o.slice(1,u),s.base=o.slice(1,f)):(s.name=o.slice(d,u),s.base=o.slice(d,f)),s.ext=o.slice(u,f)),d>0?s.dir=o.slice(0,d-1):l&&(s.dir="/"),s},sep:"/",delimiter:":",win32:null,posix:null};return n.posix=n,q1=n,q1}var It=RNe();const hc=ii(It),jNe=dte({__proto__:null,default:hc},[It]),Z7=(t,e,r)=>{const n=t instanceof RegExp?rV(t,r):t,i=e instanceof RegExp?rV(e,r):e,o=n!==null&&i!=null&&DNe(n,i,r);return o&&{start:o[0],end:o[1],pre:r.slice(0,o[0]),body:r.slice(o[0]+n.length,o[1]),post:r.slice(o[1]+i.length)}},rV=(t,e)=>{const r=e.match(t);return r?r[0]:null},DNe=(t,e,r)=>{let n,i,o,s,a,l=r.indexOf(t),c=r.indexOf(e,l+1),u=l;if(l>=0&&c>0){if(t===e)return[l,c];for(n=[],o=r.length;u>=0&&!a;){if(u===l)n.push(u),l=r.indexOf(t,u+1);else if(n.length===1){const d=n.pop();d!==void 0&&(a=[d,c])}else i=n.pop(),i!==void 0&&i<o&&(o=i,s=c),c=r.indexOf(e,u+1);u=l<c&&l>=0?l:c}n.length&&s!==void 0&&(a=[o,s])}return a},G7="\0SLASH"+Math.random()+"\0",Y7="\0OPEN"+Math.random()+"\0",zT="\0CLOSE"+Math.random()+"\0",H7="\0COMMA"+Math.random()+"\0",J7="\0PERIOD"+Math.random()+"\0",MNe=new RegExp(G7,"g"),NNe=new RegExp(Y7,"g"),LNe=new RegExp(zT,"g"),QNe=new RegExp(H7,"g"),VNe=new RegExp(J7,"g"),zNe=/\\\\/g,BNe=/\\{/g,qNe=/\\}/g,FNe=/\\,/g,WNe=/\\./g;function F1(t){return isNaN(t)?t.charCodeAt(0):parseInt(t,10)}function UNe(t){return t.replace(zNe,G7).replace(BNe,Y7).replace(qNe,zT).replace(FNe,H7).replace(WNe,J7)}function XNe(t){return t.replace(MNe,"\\").replace(NNe,"{").replace(LNe,"}").replace(QNe,",").replace(VNe,".")}function K7(t){if(!t)return[""];const e=[],r=Z7("{","}",t);if(!r)return t.split(",");const{pre:n,body:i,post:o}=r,s=n.split(",");s[s.length-1]+="{"+i+"}";const a=K7(o);return o.length&&(s[s.length-1]+=a.shift(),s.push.apply(s,a)),e.push.apply(e,s),e}function ZNe(t){return t?(t.slice(0,2)==="{}"&&(t="\\{\\}"+t.slice(2)),ph(UNe(t),!0).map(XNe)):[]}function GNe(t){return"{"+t+"}"}function YNe(t){return/^-?0\d/.test(t)}function HNe(t,e){return t<=e}function JNe(t,e){return t>=e}function ph(t,e){const r=[],n=Z7("{","}",t);if(!n)return[t];const i=n.pre,o=n.post.length?ph(n.post,!1):[""];if(/\$$/.test(n.pre))for(let s=0;s<o.length;s++){const a=i+"{"+n.body+"}"+o[s];r.push(a)}else{const s=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(n.body),a=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(n.body),l=s||a,c=n.body.indexOf(",")>=0;if(!l&&!c)return n.post.match(/,(?!,).*\}/)?(t=n.pre+"{"+n.body+zT+n.post,ph(t)):[t];let u;if(l)u=n.body.split(/\.\./);else if(u=K7(n.body),u.length===1&&u[0]!==void 0&&(u=ph(u[0],!1).map(GNe),u.length===1))return o.map(f=>n.pre+u[0]+f);let d;if(l&&u[0]!==void 0&&u[1]!==void 0){const f=F1(u[0]),h=F1(u[1]),g=Math.max(u[0].length,u[1].length);let p=u.length===3&&u[2]!==void 0?Math.abs(F1(u[2])):1,y=HNe;h<f&&(p*=-1,y=JNe);const b=u.some(YNe);d=[];for(let O=f;y(O,h);O+=p){let S;if(a)S=String.fromCharCode(O),S==="\\"&&(S="");else if(S=String(O),b){const x=g-S.length;if(x>0){const w=new Array(x+1).join("0");O<0?S="-"+w+S.slice(1):S=w+S}}d.push(S)}}else{d=[];for(let f=0;f<u.length;f++)d.push.apply(d,ph(u[f],!1))}for(let f=0;f<d.length;f++)for(let h=0;h<o.length;h++){const g=i+d[f]+o[h];(!e||l||g)&&r.push(g)}}return r}const KNe=1024*64,C0=t=>{if(typeof t!="string")throw new TypeError("invalid pattern");if(t.length>KNe)throw new TypeError("pattern is too long")},eLe={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},Tf=t=>t.replace(/[[\]\\-]/g,"\\$&"),tLe=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),nV=t=>t.join(""),rLe=(t,e)=>{const r=e;if(t.charAt(r)!=="[")throw new Error("not in a brace expression");const n=[],i=[];let o=r+1,s=!1,a=!1,l=!1,c=!1,u=r,d="";e:for(;o<t.length;){const p=t.charAt(o);if((p==="!"||p==="^")&&o===r+1){c=!0,o++;continue}if(p==="]"&&s&&!l){u=o+1;break}if(s=!0,p==="\\"&&!l){l=!0,o++;continue}if(p==="["&&!l){for(const[y,[v,b,O]]of Object.entries(eLe))if(t.startsWith(y,o)){if(d)return["$.",!1,t.length-r,!0];o+=y.length,O?i.push(v):n.push(v),a=a||b;continue e}}if(l=!1,d){p>d?n.push(Tf(d)+"-"+Tf(p)):p===d&&n.push(Tf(p)),d="",o++;continue}if(t.startsWith("-]",o+1)){n.push(Tf(p+"-")),o+=2;continue}if(t.startsWith("-",o+1)){d=p,o+=2;continue}n.push(Tf(p)),o++}if(u<o)return["",!1,0,!1];if(!n.length&&!i.length)return["$.",!1,t.length-r,!0];if(i.length===0&&n.length===1&&/^\\?.$/.test(n[0])&&!c){const p=n[0].length===2?n[0].slice(-1):n[0];return[tLe(p),!1,u-r,!1]}const f="["+(c?"^":"")+nV(n)+"]",h="["+(c?"":"^")+nV(i)+"]";return[n.length&&i.length?"("+f+"|"+h+")":n.length?f:h,a,u-r,!0]},gh=(t,{windowsPathsNoEscape:e=!1}={})=>e?t.replace(/\[([^\/\\])\]/g,"$1"):t.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1"),nLe=new Set(["!","?","+","*","@"]),iV=t=>nLe.has(t),iLe="(?!(?:^|/)\\.\\.?(?:$|/))",Qm="(?!\\.)",oLe=new Set(["[","."]),sLe=new Set(["..","."]),aLe=new Set("().*{}+?[]^$\\!"),lLe=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),BT="[^/]",oV=BT+"*?",sV=BT+"+?";var Dr,qr,Ts,dr,$r,Aa,Fl,Ia,Bo,Wl,Mp,gc,e8,Xa,wb,OE,t8;const $n=class $n{constructor(e,r,n={}){Bn(this,gc);xe(this,"type");Bn(this,Dr);Bn(this,qr);Bn(this,Ts,!1);Bn(this,dr,[]);Bn(this,$r);Bn(this,Aa);Bn(this,Fl);Bn(this,Ia,!1);Bn(this,Bo);Bn(this,Wl);Bn(this,Mp,!1);this.type=e,e&&Or(this,qr,!0),Or(this,$r,r),Or(this,Dr,Te(this,$r)?Te(Te(this,$r),Dr):this),Or(this,Bo,Te(this,Dr)===this?n:Te(Te(this,Dr),Bo)),Or(this,Fl,Te(this,Dr)===this?[]:Te(Te(this,Dr),Fl)),e==="!"&&!Te(Te(this,Dr),Ia)&&Te(this,Fl).push(this),Or(this,Aa,Te(this,$r)?Te(Te(this,$r),dr).length:0)}get hasMagic(){if(Te(this,qr)!==void 0)return Te(this,qr);for(const e of Te(this,dr))if(typeof e!="string"&&(e.type||e.hasMagic))return Or(this,qr,!0);return Te(this,qr)}toString(){return Te(this,Wl)!==void 0?Te(this,Wl):this.type?Or(this,Wl,this.type+"("+Te(this,dr).map(e=>String(e)).join("|")+")"):Or(this,Wl,Te(this,dr).map(e=>String(e)).join(""))}push(...e){for(const r of e)if(r!==""){if(typeof r!="string"&&!(r instanceof $n&&Te(r,$r)===this))throw new Error("invalid part: "+r);Te(this,dr).push(r)}}toJSON(){var r;const e=this.type===null?Te(this,dr).slice().map(n=>typeof n=="string"?n:n.toJSON()):[this.type,...Te(this,dr).map(n=>n.toJSON())];return this.isStart()&&!this.type&&e.unshift([]),this.isEnd()&&(this===Te(this,Dr)||Te(Te(this,Dr),Ia)&&((r=Te(this,$r))==null?void 0:r.type)==="!")&&e.push({}),e}isStart(){var r;if(Te(this,Dr)===this)return!0;if(!((r=Te(this,$r))!=null&&r.isStart()))return!1;if(Te(this,Aa)===0)return!0;const e=Te(this,$r);for(let n=0;n<Te(this,Aa);n++){const i=Te(e,dr)[n];if(!(i instanceof $n&&i.type==="!"))return!1}return!0}isEnd(){var r,n,i;if(Te(this,Dr)===this||((r=Te(this,$r))==null?void 0:r.type)==="!")return!0;if(!((n=Te(this,$r))!=null&&n.isEnd()))return!1;if(!this.type)return(i=Te(this,$r))==null?void 0:i.isEnd();const e=Te(this,$r)?Te(Te(this,$r),dr).length:0;return Te(this,Aa)===e-1}copyIn(e){typeof e=="string"?this.push(e):this.push(e.clone(this))}clone(e){const r=new $n(this.type,e);for(const n of Te(this,dr))r.copyIn(n);return r}static fromGlob(e,r={}){var i;const n=new $n(null,void 0,r);return ca(i=$n,Xa,wb).call(i,e,n,0,r),n}toMMPattern(){if(this!==Te(this,Dr))return Te(this,Dr).toMMPattern();const e=this.toString(),[r,n,i,o]=this.toRegExpSource();if(!(i||Te(this,qr)||Te(this,Bo).nocase&&!Te(this,Bo).nocaseMagicOnly&&e.toUpperCase()!==e.toLowerCase()))return n;const a=(Te(this,Bo).nocase?"i":"")+(o?"u":"");return Object.assign(new RegExp(`^${r}$`,a),{_src:r,_glob:e})}get options(){return Te(this,Bo)}toRegExpSource(e){var l;const r=e??!!Te(this,Bo).dot;if(Te(this,Dr)===this&&ca(this,gc,e8).call(this),!this.type){const c=this.isStart()&&this.isEnd(),u=Te(this,dr).map(g=>{var O;const[p,y,v,b]=typeof g=="string"?ca(O=$n,Xa,t8).call(O,g,Te(this,qr),c):g.toRegExpSource(e);return Or(this,qr,Te(this,qr)||v),Or(this,Ts,Te(this,Ts)||b),p}).join("");let d="";if(this.isStart()&&typeof Te(this,dr)[0]=="string"&&!(Te(this,dr).length===1&&sLe.has(Te(this,dr)[0]))){const p=oLe,y=r&&p.has(u.charAt(0))||u.startsWith("\\.")&&p.has(u.charAt(2))||u.startsWith("\\.\\.")&&p.has(u.charAt(4)),v=!r&&!e&&p.has(u.charAt(0));d=y?iLe:v?Qm:""}let f="";return this.isEnd()&&Te(Te(this,Dr),Ia)&&((l=Te(this,$r))==null?void 0:l.type)==="!"&&(f="(?:$|\\/)"),[d+u+f,gh(u),Or(this,qr,!!Te(this,qr)),Te(this,Ts)]}const n=this.type==="*"||this.type==="+",i=this.type==="!"?"(?:(?!(?:":"(?:";let o=ca(this,gc,OE).call(this,r);if(this.isStart()&&this.isEnd()&&!o&&this.type!=="!"){const c=this.toString();return Or(this,dr,[c]),this.type=null,Or(this,qr,void 0),[c,gh(this.toString()),!1,!1]}let s=!n||e||r||!Qm?"":ca(this,gc,OE).call(this,!0);s===o&&(s=""),s&&(o=`(?:${o})(?:${s})*?`);let a="";if(this.type==="!"&&Te(this,Mp))a=(this.isStart()&&!r?Qm:"")+sV;else{const c=this.type==="!"?"))"+(this.isStart()&&!r&&!e?Qm:"")+oV+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&s?")":this.type==="*"&&s?")?":`)${this.type}`;a=i+o+c}return[a,gh(o),Or(this,qr,!!Te(this,qr)),Te(this,Ts)]}};Dr=new WeakMap,qr=new WeakMap,Ts=new WeakMap,dr=new WeakMap,$r=new WeakMap,Aa=new WeakMap,Fl=new WeakMap,Ia=new WeakMap,Bo=new WeakMap,Wl=new WeakMap,Mp=new WeakMap,gc=new WeakSet,e8=function(){if(this!==Te(this,Dr))throw new Error("should only call on root");if(Te(this,Ia))return this;this.toString(),Or(this,Ia,!0);let e;for(;e=Te(this,Fl).pop();){if(e.type!=="!")continue;let r=e,n=Te(r,$r);for(;n;){for(let i=Te(r,Aa)+1;!n.type&&i<Te(n,dr).length;i++)for(const o of Te(e,dr)){if(typeof o=="string")throw new Error("string part in extglob AST??");o.copyIn(Te(n,dr)[i])}r=n,n=Te(r,$r)}}return this},Xa=new WeakSet,wb=function(e,r,n,i){var h,g;let o=!1,s=!1,a=-1,l=!1;if(r.type===null){let p=n,y="";for(;p<e.length;){const v=e.charAt(p++);if(o||v==="\\"){o=!o,y+=v;continue}if(s){p===a+1?(v==="^"||v==="!")&&(l=!0):v==="]"&&!(p===a+2&&l)&&(s=!1),y+=v;continue}else if(v==="["){s=!0,a=p,l=!1,y+=v;continue}if(!i.noext&&iV(v)&&e.charAt(p)==="("){r.push(y),y="";const b=new $n(v,r);p=ca(h=$n,Xa,wb).call(h,e,b,p,i),r.push(b);continue}y+=v}return r.push(y),p}let c=n+1,u=new $n(null,r);const d=[];let f="";for(;c<e.length;){const p=e.charAt(c++);if(o||p==="\\"){o=!o,f+=p;continue}if(s){c===a+1?(p==="^"||p==="!")&&(l=!0):p==="]"&&!(c===a+2&&l)&&(s=!1),f+=p;continue}else if(p==="["){s=!0,a=c,l=!1,f+=p;continue}if(iV(p)&&e.charAt(c)==="("){u.push(f),f="";const y=new $n(p,u);u.push(y),c=ca(g=$n,Xa,wb).call(g,e,y,c,i);continue}if(p==="|"){u.push(f),f="",d.push(u),u=new $n(null,r);continue}if(p===")")return f===""&&Te(r,dr).length===0&&Or(r,Mp,!0),u.push(f),f="",r.push(...d,u),c;f+=p}return r.type=null,Or(r,qr,void 0),Or(r,dr,[e.substring(n-1)]),c},OE=function(e){return Te(this,dr).map(r=>{if(typeof r=="string")throw new Error("string type in extglob ast??");const[n,i,o,s]=r.toRegExpSource(e);return Or(this,Ts,Te(this,Ts)||s),n}).filter(r=>!(this.isStart()&&this.isEnd())||!!r).join("|")},t8=function(e,r,n=!1){let i=!1,o="",s=!1;for(let a=0;a<e.length;a++){const l=e.charAt(a);if(i){i=!1,o+=(aLe.has(l)?"\\":"")+l;continue}if(l==="\\"){a===e.length-1?o+="\\\\":i=!0;continue}if(l==="["){const[c,u,d,f]=rLe(e,a);if(d){o+=c,s=s||u,a+=d-1,r=r||f;continue}}if(l==="*"){n&&e==="*"?o+=sV:o+=oV,r=!0;continue}if(l==="?"){o+=BT,r=!0;continue}o+=lLe(l)}return[o,gh(e),!!r,s]},Bn($n,Xa);let P0=$n;const cLe=(t,{windowsPathsNoEscape:e=!1}={})=>e?t.replace(/[?*()[\]]/g,"[$&]"):t.replace(/[?*()[\]\\]/g,"\\$&"),bn=(t,e,r={})=>(C0(e),!r.nocomment&&e.charAt(0)==="#"?!1:new fS(e,r).match(t)),uLe=/^\*+([^+@!?\*\[\(]*)$/,dLe=t=>e=>!e.startsWith(".")&&e.endsWith(t),fLe=t=>e=>e.endsWith(t),hLe=t=>(t=t.toLowerCase(),e=>!e.startsWith(".")&&e.toLowerCase().endsWith(t)),pLe=t=>(t=t.toLowerCase(),e=>e.toLowerCase().endsWith(t)),gLe=/^\*+\.\*+$/,mLe=t=>!t.startsWith(".")&&t.includes("."),yLe=t=>t!=="."&&t!==".."&&t.includes("."),vLe=/^\.\*+$/,bLe=t=>t!=="."&&t!==".."&&t.startsWith("."),OLe=/^\*+$/,xLe=t=>t.length!==0&&!t.startsWith("."),SLe=t=>t.length!==0&&t!=="."&&t!=="..",wLe=/^\?+([^+@!?\*\[\(]*)?$/,CLe=([t,e=""])=>{const r=r8([t]);return e?(e=e.toLowerCase(),n=>r(n)&&n.toLowerCase().endsWith(e)):r},PLe=([t,e=""])=>{const r=n8([t]);return e?(e=e.toLowerCase(),n=>r(n)&&n.toLowerCase().endsWith(e)):r},kLe=([t,e=""])=>{const r=n8([t]);return e?n=>r(n)&&n.endsWith(e):r},$Le=([t,e=""])=>{const r=r8([t]);return e?n=>r(n)&&n.endsWith(e):r},r8=([t])=>{const e=t.length;return r=>r.length===e&&!r.startsWith(".")},n8=([t])=>{const e=t.length;return r=>r.length===e&&r!=="."&&r!==".."},i8=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",aV={win32:{sep:"\\"},posix:{sep:"/"}},ELe=i8==="win32"?aV.win32.sep:aV.posix.sep;bn.sep=ELe;const Ri=Symbol("globstar **");bn.GLOBSTAR=Ri;const ALe="[^/]",ILe=ALe+"*?",TLe="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",_Le="(?:(?!(?:\\/|^)\\.).)*?",RLe=(t,e={})=>r=>bn(r,t,e);bn.filter=RLe;const Ii=(t,e={})=>Object.assign({},t,e),jLe=t=>{if(!t||typeof t!="object"||!Object.keys(t).length)return bn;const e=bn;return Object.assign((n,i,o={})=>e(n,i,Ii(t,o)),{Minimatch:class extends e.Minimatch{constructor(i,o={}){super(i,Ii(t,o))}static defaults(i){return e.defaults(Ii(t,i)).Minimatch}},AST:class extends e.AST{constructor(i,o,s={}){super(i,o,Ii(t,s))}static fromGlob(i,o={}){return e.AST.fromGlob(i,Ii(t,o))}},unescape:(n,i={})=>e.unescape(n,Ii(t,i)),escape:(n,i={})=>e.escape(n,Ii(t,i)),filter:(n,i={})=>e.filter(n,Ii(t,i)),defaults:n=>e.defaults(Ii(t,n)),makeRe:(n,i={})=>e.makeRe(n,Ii(t,i)),braceExpand:(n,i={})=>e.braceExpand(n,Ii(t,i)),match:(n,i,o={})=>e.match(n,i,Ii(t,o)),sep:e.sep,GLOBSTAR:Ri})};bn.defaults=jLe;const o8=(t,e={})=>(C0(t),e.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:ZNe(t));bn.braceExpand=o8;const DLe=(t,e={})=>new fS(t,e).makeRe();bn.makeRe=DLe;const MLe=(t,e,r={})=>{const n=new fS(e,r);return t=t.filter(i=>n.match(i)),n.options.nonull&&!t.length&&t.push(e),t};bn.match=MLe;const lV=/[?*]|[+@!]\(.*?\)|\[|\]/,NLe=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");class fS{constructor(e,r={}){xe(this,"options");xe(this,"set");xe(this,"pattern");xe(this,"windowsPathsNoEscape");xe(this,"nonegate");xe(this,"negate");xe(this,"comment");xe(this,"empty");xe(this,"preserveMultipleSlashes");xe(this,"partial");xe(this,"globSet");xe(this,"globParts");xe(this,"nocase");xe(this,"isWindows");xe(this,"platform");xe(this,"windowsNoMagicRoot");xe(this,"regexp");C0(e),r=r||{},this.options=r,this.pattern=e,this.platform=r.platform||i8,this.isWindows=this.platform==="win32",this.windowsPathsNoEscape=!!r.windowsPathsNoEscape||r.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!r.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!r.nonegate,this.comment=!1,this.empty=!1,this.partial=!!r.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=r.windowsNoMagicRoot!==void 0?r.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(const e of this.set)for(const r of e)if(typeof r!="string")return!0;return!1}debug(...e){}make(){const e=this.pattern,r=this.options;if(!r.nocomment&&e.charAt(0)==="#"){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],r.debug&&(this.debug=(...o)=>console.error(...o)),this.debug(this.pattern,this.globSet);const n=this.globSet.map(o=>this.slashSplit(o));this.globParts=this.preprocess(n),this.debug(this.pattern,this.globParts);let i=this.globParts.map((o,s,a)=>{if(this.isWindows&&this.windowsNoMagicRoot){const l=o[0]===""&&o[1]===""&&(o[2]==="?"||!lV.test(o[2]))&&!lV.test(o[3]),c=/^[a-z]:/i.test(o[0]);if(l)return[...o.slice(0,4),...o.slice(4).map(u=>this.parse(u))];if(c)return[o[0],...o.slice(1).map(u=>this.parse(u))]}return o.map(l=>this.parse(l))});if(this.debug(this.pattern,i),this.set=i.filter(o=>o.indexOf(!1)===-1),this.isWindows)for(let o=0;o<this.set.length;o++){const s=this.set[o];s[0]===""&&s[1]===""&&this.globParts[o][2]==="?"&&typeof s[3]=="string"&&/^[a-z]:$/i.test(s[3])&&(s[2]="?")}this.debug(this.pattern,this.set)}preprocess(e){if(this.options.noglobstar)for(let n=0;n<e.length;n++)for(let i=0;i<e[n].length;i++)e[n][i]==="**"&&(e[n][i]="*");const{optimizationLevel:r=1}=this.options;return r>=2?(e=this.firstPhasePreProcess(e),e=this.secondPhasePreProcess(e)):r>=1?e=this.levelOneOptimize(e):e=this.adjascentGlobstarOptimize(e),e}adjascentGlobstarOptimize(e){return e.map(r=>{let n=-1;for(;(n=r.indexOf("**",n+1))!==-1;){let i=n;for(;r[i+1]==="**";)i++;i!==n&&r.splice(n,i-n)}return r})}levelOneOptimize(e){return e.map(r=>(r=r.reduce((n,i)=>{const o=n[n.length-1];return i==="**"&&o==="**"?n:i===".."&&o&&o!==".."&&o!=="."&&o!=="**"?(n.pop(),n):(n.push(i),n)},[]),r.length===0?[""]:r))}levelTwoFileOptimize(e){Array.isArray(e)||(e=this.slashSplit(e));let r=!1;do{if(r=!1,!this.preserveMultipleSlashes){for(let i=1;i<e.length-1;i++){const o=e[i];i===1&&o===""&&e[0]===""||(o==="."||o==="")&&(r=!0,e.splice(i,1),i--)}e[0]==="."&&e.length===2&&(e[1]==="."||e[1]==="")&&(r=!0,e.pop())}let n=0;for(;(n=e.indexOf("..",n+1))!==-1;){const i=e[n-1];i&&i!=="."&&i!==".."&&i!=="**"&&(r=!0,e.splice(n-1,2),n-=2)}}while(r);return e.length===0?[""]:e}firstPhasePreProcess(e){let r=!1;do{r=!1;for(let n of e){let i=-1;for(;(i=n.indexOf("**",i+1))!==-1;){let s=i;for(;n[s+1]==="**";)s++;s>i&&n.splice(i+1,s-i);let a=n[i+1];const l=n[i+2],c=n[i+3];if(a!==".."||!l||l==="."||l===".."||!c||c==="."||c==="..")continue;r=!0,n.splice(i,1);const u=n.slice(0);u[i]="**",e.push(u),i--}if(!this.preserveMultipleSlashes){for(let s=1;s<n.length-1;s++){const a=n[s];s===1&&a===""&&n[0]===""||(a==="."||a==="")&&(r=!0,n.splice(s,1),s--)}n[0]==="."&&n.length===2&&(n[1]==="."||n[1]==="")&&(r=!0,n.pop())}let o=0;for(;(o=n.indexOf("..",o+1))!==-1;){const s=n[o-1];if(s&&s!=="."&&s!==".."&&s!=="**"){r=!0;const l=o===1&&n[o+1]==="**"?["."]:[];n.splice(o-1,2,...l),n.length===0&&n.push(""),o-=2}}}}while(r);return e}secondPhasePreProcess(e){for(let r=0;r<e.length-1;r++)for(let n=r+1;n<e.length;n++){const i=this.partsMatch(e[r],e[n],!this.preserveMultipleSlashes);if(i){e[r]=[],e[n]=i;break}}return e.filter(r=>r.length)}partsMatch(e,r,n=!1){let i=0,o=0,s=[],a="";for(;i<e.length&&o<r.length;)if(e[i]===r[o])s.push(a==="b"?r[o]:e[i]),i++,o++;else if(n&&e[i]==="**"&&r[o]===e[i+1])s.push(e[i]),i++;else if(n&&r[o]==="**"&&e[i]===r[o+1])s.push(r[o]),o++;else if(e[i]==="*"&&r[o]&&(this.options.dot||!r[o].startsWith("."))&&r[o]!=="**"){if(a==="b")return!1;a="a",s.push(e[i]),i++,o++}else if(r[o]==="*"&&e[i]&&(this.options.dot||!e[i].startsWith("."))&&e[i]!=="**"){if(a==="a")return!1;a="b",s.push(r[o]),i++,o++}else return!1;return e.length===r.length&&s}parseNegate(){if(this.nonegate)return;const e=this.pattern;let r=!1,n=0;for(let i=0;i<e.length&&e.charAt(i)==="!";i++)r=!r,n++;n&&(this.pattern=e.slice(n)),this.negate=r}matchOne(e,r,n=!1){const i=this.options;if(this.isWindows){const p=typeof e[0]=="string"&&/^[a-z]:$/i.test(e[0]),y=!p&&e[0]===""&&e[1]===""&&e[2]==="?"&&/^[a-z]:$/i.test(e[3]),v=typeof r[0]=="string"&&/^[a-z]:$/i.test(r[0]),b=!v&&r[0]===""&&r[1]===""&&r[2]==="?"&&typeof r[3]=="string"&&/^[a-z]:$/i.test(r[3]),O=y?3:p?0:void 0,S=b?3:v?0:void 0;if(typeof O=="number"&&typeof S=="number"){const[x,w]=[e[O],r[S]];x.toLowerCase()===w.toLowerCase()&&(r[S]=x,S>O?r=r.slice(S):O>S&&(e=e.slice(O)))}}const{optimizationLevel:o=1}=this.options;o>=2&&(e=this.levelTwoFileOptimize(e)),this.debug("matchOne",this,{file:e,pattern:r}),this.debug("matchOne",e.length,r.length);for(var s=0,a=0,l=e.length,c=r.length;s<l&&a<c;s++,a++){this.debug("matchOne loop");var u=r[a],d=e[s];if(this.debug(r,u,d),u===!1)return!1;if(u===Ri){this.debug("GLOBSTAR",[r,u,d]);var f=s,h=a+1;if(h===c){for(this.debug("** at the end");s<l;s++)if(e[s]==="."||e[s]===".."||!i.dot&&e[s].charAt(0)===".")return!1;return!0}for(;f<l;){var g=e[f];if(this.debug(`
|
|
2446
2446
|
globstar while`,e,f,r,h,g),this.matchOne(e.slice(f),r.slice(h),n))return this.debug("globstar found match!",f,l,g),!0;if(g==="."||g===".."||!i.dot&&g.charAt(0)==="."){this.debug("dot detected!",e,f,r,h);break}this.debug("globstar swallow a segment, and continue"),f++}return!!(n&&(this.debug(`
|
|
2447
|
-
>>> no match, partial?`,e,f,r,h),f===l))}let p;if(typeof u=="string"?(p=d===u,this.debug("string match",u,d,p)):(p=u.test(d),this.debug("pattern match",u,d,p)),!p)return!1}if(s===l&&a===c)return!0;if(s===l)return n;if(a===c)return s===l-1&&e[s]==="";throw new Error("wtf?")}braceExpand(){return o8(this.pattern,this.options)}parse(e){C0(e);const r=this.options;if(e==="**")return Ri;if(e==="")return"";let n,i=null;(n=e.match(OLe))?i=r.dot?SLe:xLe:(n=e.match(uLe))?i=(r.nocase?r.dot?pLe:hLe:r.dot?fLe:dLe)(n[1]):(n=e.match(wLe))?i=(r.nocase?r.dot?PLe:CLe:r.dot?kLe:$Le)(n):(n=e.match(gLe))?i=r.dot?yLe:mLe:(n=e.match(vLe))&&(i=bLe);const o=P0.fromGlob(e,this.options).toMMPattern();return i&&typeof o=="object"&&Reflect.defineProperty(o,"test",{value:i}),o}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;const e=this.set;if(!e.length)return this.regexp=!1,this.regexp;const r=this.options,n=r.noglobstar?ILe:r.dot?TLe:_Le,i=new Set(r.nocase?["i"]:[]);let o=e.map(l=>{const c=l.map(u=>{if(u instanceof RegExp)for(const d of u.flags.split(""))i.add(d);return typeof u=="string"?NLe(u):u===Ri?Ri:u._src});return c.forEach((u,d)=>{const f=c[d+1],h=c[d-1];u!==Ri||h===Ri||(h===void 0?f!==void 0&&f!==Ri?c[d+1]="(?:\\/|"+n+"\\/)?"+f:c[d]=n:f===void 0?c[d-1]=h+"(?:\\/|"+n+")?":f!==Ri&&(c[d-1]=h+"(?:\\/|\\/"+n+"\\/)"+f,c[d+1]=Ri))}),c.filter(u=>u!==Ri).join("/")}).join("|");const[s,a]=e.length>1?["(?:",")"]:["",""];o="^"+s+o+a+"$",this.negate&&(o="^(?!"+o+").+$");try{this.regexp=new RegExp(o,[...i].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(e){return this.preserveMultipleSlashes?e.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(e)?["",...e.split(/\/+/)]:e.split(/\/+/)}match(e,r=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;const n=this.options;this.isWindows&&(e=e.split("\\").join("/"));const i=this.slashSplit(e);this.debug(this.pattern,"split",i);const o=this.set;this.debug(this.pattern,"set",o);let s=i[i.length-1];if(!s)for(let a=i.length-2;!s&&a>=0;a--)s=i[a];for(let a=0;a<o.length;a++){const l=o[a];let c=i;if(n.matchBase&&l.length===1&&(c=[s]),this.matchOne(c,l,r))return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate}static defaults(e){return bn.defaults(e).Minimatch}}bn.AST=P0;bn.Minimatch=fS;bn.escape=cLe;bn.unescape=gh;function LLe(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Cb={exports:{}},QLe=Cb.exports,cV;function VLe(){return cV||(cV=1,(function(t,e){(function(r,n){typeof LLe=="function"?t.exports=n():r.pluralize=n()})(QLe,function(){var r=[],n=[],i={},o={},s={};function a(p){return typeof p=="string"?new RegExp("^"+p+"$","i"):p}function l(p,y){return p===y?y:p===p.toLowerCase()?y.toLowerCase():p===p.toUpperCase()?y.toUpperCase():p[0]===p[0].toUpperCase()?y.charAt(0).toUpperCase()+y.substr(1).toLowerCase():y.toLowerCase()}function c(p,y){return p.replace(/\$(\d{1,2})/g,function(v,b){return y[b]||""})}function u(p,y){return p.replace(y[0],function(v,b){var O=c(y[1],arguments);return l(v===""?p[b-1]:v,O)})}function d(p,y,v){if(!p.length||i.hasOwnProperty(p))return y;for(var b=v.length;b--;){var O=v[b];if(O[0].test(y))return u(y,O)}return y}function f(p,y,v){return function(b){var O=b.toLowerCase();return y.hasOwnProperty(O)?l(b,O):p.hasOwnProperty(O)?l(b,p[O]):d(O,b,v)}}function h(p,y,v,b){return function(O){var S=O.toLowerCase();return y.hasOwnProperty(S)?!0:p.hasOwnProperty(S)?!1:d(S,S,v)===S}}function g(p,y,v){var b=y===1?g.singular(p):g.plural(p);return(v?y+" ":"")+b}return g.plural=f(s,o,r),g.isPlural=h(s,o,r),g.singular=f(o,s,n),g.isSingular=h(o,s,n),g.addPluralRule=function(p,y){r.push([a(p),y])},g.addSingularRule=function(p,y){n.push([a(p),y])},g.addUncountableRule=function(p){if(typeof p=="string"){i[p.toLowerCase()]=!0;return}g.addPluralRule(p,"$0"),g.addSingularRule(p,"$0")},g.addIrregularRule=function(p,y){y=y.toLowerCase(),p=p.toLowerCase(),s[p]=y,o[y]=p},[["I","we"],["me","us"],["he","they"],["she","they"],["them","them"],["myself","ourselves"],["yourself","yourselves"],["itself","themselves"],["herself","themselves"],["himself","themselves"],["themself","themselves"],["is","are"],["was","were"],["has","have"],["this","these"],["that","those"],["echo","echoes"],["dingo","dingoes"],["volcano","volcanoes"],["tornado","tornadoes"],["torpedo","torpedoes"],["genus","genera"],["viscus","viscera"],["stigma","stigmata"],["stoma","stomata"],["dogma","dogmata"],["lemma","lemmata"],["schema","schemata"],["anathema","anathemata"],["ox","oxen"],["axe","axes"],["die","dice"],["yes","yeses"],["foot","feet"],["eave","eaves"],["goose","geese"],["tooth","teeth"],["quiz","quizzes"],["human","humans"],["proof","proofs"],["carve","carves"],["valve","valves"],["looey","looies"],["thief","thieves"],["groove","grooves"],["pickaxe","pickaxes"],["passerby","passersby"]].forEach(function(p){return g.addIrregularRule(p[0],p[1])}),[[/s?$/i,"s"],[/[^\u0000-\u007F]$/i,"$0"],[/([^aeiou]ese)$/i,"$1"],[/(ax|test)is$/i,"$1es"],[/(alias|[^aou]us|t[lm]as|gas|ris)$/i,"$1es"],[/(e[mn]u)s?$/i,"$1s"],[/([^l]ias|[aeiou]las|[ejzr]as|[iu]am)$/i,"$1"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1i"],[/(alumn|alg|vertebr)(?:a|ae)$/i,"$1ae"],[/(seraph|cherub)(?:im)?$/i,"$1im"],[/(her|at|gr)o$/i,"$1oes"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i,"$1a"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i,"$1a"],[/sis$/i,"ses"],[/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i,"$1$2ves"],[/([^aeiouy]|qu)y$/i,"$1ies"],[/([^ch][ieo][ln])ey$/i,"$1ies"],[/(x|ch|ss|sh|zz)$/i,"$1es"],[/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i,"$1ices"],[/\b((?:tit)?m|l)(?:ice|ouse)$/i,"$1ice"],[/(pe)(?:rson|ople)$/i,"$1ople"],[/(child)(?:ren)?$/i,"$1ren"],[/eaux$/i,"$0"],[/m[ae]n$/i,"men"],["thou","you"]].forEach(function(p){return g.addPluralRule(p[0],p[1])}),[[/s$/i,""],[/(ss)$/i,"$1"],[/(wi|kni|(?:after|half|high|low|mid|non|night|[^\w]|^)li)ves$/i,"$1fe"],[/(ar|(?:wo|[ae])l|[eo][ao])ves$/i,"$1f"],[/ies$/i,"y"],[/\b([pl]|zomb|(?:neck|cross)?t|coll|faer|food|gen|goon|group|lass|talk|goal|cut)ies$/i,"$1ie"],[/\b(mon|smil)ies$/i,"$1ey"],[/\b((?:tit)?m|l)ice$/i,"$1ouse"],[/(seraph|cherub)im$/i,"$1"],[/(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|t[lm]as|gas|(?:her|at|gr)o|[aeiou]ris)(?:es)?$/i,"$1"],[/(analy|diagno|parenthe|progno|synop|the|empha|cri|ne)(?:sis|ses)$/i,"$1sis"],[/(movie|twelve|abuse|e[mn]u)s$/i,"$1"],[/(test)(?:is|es)$/i,"$1is"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1us"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i,"$1um"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i,"$1on"],[/(alumn|alg|vertebr)ae$/i,"$1a"],[/(cod|mur|sil|vert|ind)ices$/i,"$1ex"],[/(matr|append)ices$/i,"$1ix"],[/(pe)(rson|ople)$/i,"$1rson"],[/(child)ren$/i,"$1"],[/(eau)x?$/i,"$1"],[/men$/i,"man"]].forEach(function(p){return g.addSingularRule(p[0],p[1])}),["adulthood","advice","agenda","aid","aircraft","alcohol","ammo","analytics","anime","athletics","audio","bison","blood","bream","buffalo","butter","carp","cash","chassis","chess","clothing","cod","commerce","cooperation","corps","debris","diabetes","digestion","elk","energy","equipment","excretion","expertise","firmware","flounder","fun","gallows","garbage","graffiti","hardware","headquarters","health","herpes","highjinks","homework","housework","information","jeans","justice","kudos","labour","literature","machinery","mackerel","mail","media","mews","moose","music","mud","manga","news","only","personnel","pike","plankton","pliers","police","pollution","premises","rain","research","rice","salmon","scissors","series","sewage","shambles","shrimp","software","species","staff","swine","tennis","traffic","transportation","trout","tuna","wealth","welfare","whiting","wildebeest","wildlife","you",/pok[eé]mon$/i,/[^aeiou]ese$/i,/deer$/i,/fish$/i,/measles$/i,/o[iu]s$/i,/pox$/i,/sheep$/i].forEach(g.addUncountableRule),g})})(Cb)),Cb.exports}var zLe=VLe();const s8=ii(zLe),BLe=WZ.extend({implicit:[cu.merge],explicit:[cu.binary,cu.omap,cu.pairs,cu.set]}),qT=(t,e)=>UZ(t,{schema:BLe,...e}),qLe=(t,e)=>XZ(t,e),Zn=typeof window<"u"||typeof process>"u"||(process==null?void 0:process.platform)==="browser",FT=Zn?{}:process.env||{};function hu(t,e){return t===""&&(t="#/"),t[t.length-1]==="/"?t+e:t+"/"+e}function Tr(t){return ht(t)&&typeof t.$ref=="string"}function a8(t){return ht(t)&&typeof t.externalValue=="string"}class qu{constructor(e,r){this.source=e,this.pointer=r}child(e){return new qu(this.source,hu(this.pointer,(Array.isArray(e)?e:[e]).map(Lh).join("/")))}key(){return{...this,reportOnKey:!0}}get absolutePointer(){return this.source.absoluteRef+(this.pointer==="#/"?"":this.pointer)}}function l8(t){return decodeURIComponent(t.replace(/~1/g,"/").replace(/~0/g,"~"))}function Lh(t){return typeof t=="number"?t:t.replace(/~/g,"~0").replace(/\//g,"~1")}function FLe(t){const[e,r=""]=t.split("#/");return{uri:(e.endsWith("#")?e.slice(0,-1):e)||null,pointer:WLe(r)}}function WLe(t){return t.split("/").map(l8).filter(Di)}function ULe(t){const e=t.split(/[\/\\]/);return e[e.length-1].replace(/\.[^.]+$/,"")}function Fr(t){return t.startsWith("http://")||t.startsWith("https://")}function c8(t){return t.startsWith("#")||t.startsWith("https://")||t.startsWith("http://")||t.startsWith("./")||t.startsWith("../")||t.indexOf("/")>-1}function XLe(t){return/^#[A-Za-z][A-Za-z0-9\-_:.]*$/.test(t)}function xE(t,e,r){if(!ht(e.node))r.parent[r.key]=e.node;else{delete t.$ref;const n=Object.assign({},e.node,t);Object.assign(t,n)}}function uV(t,e){return{prev:t,value:e}}function ZLe(t,e,r){return t.split(" ").map(n=>s8(n,e,r)).join(" ")}function dV(t){return(t==null?void 0:t.prev)??null}function k0(t){return t!==void 0}function ht(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}function Ip(t){return ht(t)&&Object.keys(t).length===0}function u8(t){return Array.isArray(t)&&t.length===0}async function d8(t,e){const r={};for(const i of e.headers)GLe(t,i.matches)&&(r[i.name]=i.envVariable!==void 0?FT[i.envVariable]||"":i.value);const n=await(e.customFetch||fetch)(t,{headers:r});if(!n.ok)throw new Error(`Failed to load ${t}: ${n.status} ${n.statusText}`);return{body:await n.text(),mimeType:n.headers.get("content-type")}}function GLe(t,e){return e.match(/^https?:\/\//)||(t=t.replace(/^https?:\/\//,"")),bn(t,e)}function YLe(t){const e=t.split(/(?:[-._])|([A-Z][a-z]+)/).filter(Di).map(n=>n.toLocaleLowerCase()),r=t.split(/([A-Z]{2,})/).filter(n=>n&&n===n.toUpperCase()).map(n=>n.toLocaleLowerCase());return new Set([...e,...r])}function $0({type:t,value:e},{report:r,location:n},i){const o=t==="consumes"?"request":"response";if(!i)throw new Error(`Parameter "allowedValues" is not provided for "${o}-mime-type" rule`);if(e[t])for(const s of e[t])i.includes(s)||r({message:`Mime type "${s}" is not allowed`,location:n.child(e[t].indexOf(s)).key()})}function Fu({type:t,value:e},{report:r,location:n},i){const o=t==="consumes"?"request":"response";if(!i)throw new Error(`Parameter "allowedValues" is not provided for "${o}-mime-type" rule`);if(e.content)for(const s of Object.keys(e.content))i.includes(s)||r({message:`Mime type "${s}" is not allowed`,location:n.child("content").child(s).key()})}function WT(t){return(void 0)(t,"utf-8")}function fV(t){const e=(void 0)(t,"utf-8");return qT(e)}function f8(t){return t.startsWith("{")&&t.endsWith("}")}function HLe(t){return/^\\\\\?\\/.test(t)?t:t.replace(/\\/g,"/")}function yi(t){return typeof t=="string"}function JLe(t){return!yi(t)}const ur=(t,e)=>{if(e)for(const r of Object.keys(e))ht(t[r])&&typeof e[r]=="string"?t[r]={...t[r],severity:e[r]}:t[r]=e[r]};function wr(t,e){if(e)for(const r of Object.keys(e))t.hasOwnProperty(r)&&(ht(t[r])&&typeof e[r]=="string"?t[r]={...t[r],severity:e[r]}:t[r]=e[r])}function Cd(t){return`${t}`.replace(/^(\d)\d\d$/,(e,r)=>`${r}XX`)}function KLe(t){return t.includes("/")}function h8(t){return(It.extname(t)===".yaml"||It.extname(t)===".yml")&&!1}function Di(t){return!!t}function eQe(t){return t}function p8(t){return t?Object.keys(t):[]}function tQe(){return new Promise(t=>{setTimeout(t)})}function ig(t,e){return t.hasOwnProperty(e)?t[e]:void 0}function rQe(t,e){const r={...t};return e.forEach(n=>{delete r[n]}),r}function Tp(t,e){return Fr(t)||e===void 0?t:It.resolve(It.dirname(e),t)}function SE(t,e){let r,n;if(t===e)return!0;if(t&&e&&(r=t.constructor)===e.constructor){if(r===Date)return t.getTime()===e.getTime();if(r===RegExp)return t.toString()===e.toString();if(r===Array){if((n=t.length)===e.length)for(;n--&&SE(t[n],e[n]););return n===-1}if(!r||typeof t=="object"){n=0;for(r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&++n&&!Object.prototype.hasOwnProperty.call(e,r)||!(r in e)||!SE(t[r],e[r]))return!1;return Object.keys(e).length===n}}return t!==t&&e!==e}function Ke(t){return{name:`${t}List`,properties:{},items:t}}function Ge(t){return{name:`${t}Map`,properties:{},additionalProperties:()=>t}}const Hl={name:"SpecExtension",properties:{},additionalProperties:{resolvable:!0}};function UT(t,e={}){const r={};for(const o of Object.keys(t))r[o]={...t[o],name:o};for(const o of Object.values(r))n(o);return r.SpecExtension=Hl,r;function n(o){if(o.additionalProperties&&(o.additionalProperties=i(o.additionalProperties)),o.items&&(o.items=i(o.items)),o.properties){const s={};for(const[a,l]of Object.entries(o.properties))s[a]=i(l),e.doNotResolveExamples&&l&&l.isExample&&(s[a]={...l,resolvable:!1});o.properties=s}}function i(o){if(typeof o=="string"){if(!r[o])throw new Error(`Unknown type name found: ${o}`);return r[o]}else return typeof o=="function"?(s,a)=>i(o(s,a)):o&&o.name?(o={...o},n(o),o):o&&o.directResolveAs?{...o,directResolveAs:i(o.directResolveAs)}:o}}function Jl(t){return typeof(t==null?void 0:t.name)=="string"}const nQe=/^[0-9][0-9Xx]{2}$/,iQe={properties:{openapi:null,info:"Info",servers:"ServerList",security:"SecurityRequirementList",tags:"TagList",externalDocs:"ExternalDocs",paths:"Paths",components:"Components","x-webhooks":"WebhooksMap","x-tagGroups":"TagGroups","x-ignoredHeaderParameters":{type:"array",items:{type:"string"}}},required:["openapi","paths","info"],extensionsPrefix:"x-"},oQe={properties:{name:{type:"string"},description:{type:"string"},externalDocs:"ExternalDocs","x-traitTag":{type:"boolean"},"x-displayName":{type:"string"}},required:["name"],extensionsPrefix:"x-"},sQe={properties:{name:{type:"string"},tags:{type:"array",items:{type:"string"}}},extensionsPrefix:"x-"},g8={properties:{description:{type:"string"},url:{type:"string"}},required:["url"],extensionsPrefix:"x-"},aQe={properties:{url:{type:"string"},description:{type:"string"},variables:"ServerVariablesMap"},required:["url"],extensionsPrefix:"x-"},lQe={properties:{enum:{type:"array",items:{type:"string"}},default:{type:"string"},description:{type:"string"}},required:["default"],extensionsPrefix:"x-"},cQe={properties:{},additionalProperties:{type:"array",items:{type:"string"}}},uQe={properties:{title:{type:"string"},version:{type:"string"},description:{type:"string"},termsOfService:{type:"string"},contact:"Contact",license:"License","x-logo":"Logo"},required:["title","version"],extensionsPrefix:"x-"},dQe={properties:{url:{type:"string"},altText:{type:"string"},backgroundColor:{type:"string"},href:{type:"string"}}},fQe={properties:{name:{type:"string"},url:{type:"string"},email:{type:"string"}},extensionsPrefix:"x-"},hQe={properties:{name:{type:"string"},url:{type:"string"}},required:["name"],extensionsPrefix:"x-"},pQe={properties:{},additionalProperties:(t,e)=>e.startsWith("/")?"PathItem":void 0},gQe={properties:{},additionalProperties:()=>"PathItem"},mQe={properties:{$ref:{type:"string"},servers:"ServerList",parameters:"ParameterList",summary:{type:"string"},description:{type:"string"},get:"Operation",put:"Operation",post:"Operation",delete:"Operation",options:"Operation",head:"Operation",patch:"Operation",trace:"Operation"},extensionsPrefix:"x-"},yQe={properties:{name:{type:"string"},in:{enum:["query","header","path","cookie"]},description:{type:"string"},required:{type:"boolean"},deprecated:{type:"boolean"},allowEmptyValue:{type:"boolean"},style:{enum:["form","simple","label","matrix","spaceDelimited","pipeDelimited","deepObject"]},explode:{type:"boolean"},allowReserved:{type:"boolean"},schema:"Schema",example:{isExample:!0},examples:"ExamplesMap",content:"MediaTypesMap"},required:["name","in"],requiredOneOf:["schema","content"],extensionsPrefix:"x-"},vQe={properties:{tags:{type:"array",items:{type:"string"}},summary:{type:"string"},description:{type:"string"},externalDocs:"ExternalDocs",operationId:{type:"string"},parameters:"ParameterList",security:"SecurityRequirementList",servers:"ServerList",requestBody:"RequestBody",responses:"Responses",deprecated:{type:"boolean"},callbacks:"CallbacksMap","x-codeSamples":"XCodeSampleList","x-code-samples":"XCodeSampleList","x-hideTryItPanel":{type:"boolean"}},required:["responses"],extensionsPrefix:"x-"},bQe={properties:{lang:{type:"string"},label:{type:"string"},source:{type:"string"}}},OQe={properties:{description:{type:"string"},required:{type:"boolean"},content:"MediaTypesMap"},required:["content"],extensionsPrefix:"x-"},xQe={properties:{},additionalProperties:"MediaType"},SQe={properties:{schema:"Schema",example:{isExample:!0},examples:"ExamplesMap",encoding:"EncodingMap"},extensionsPrefix:"x-"},wQe={properties:{value:{isExample:!0},summary:{type:"string"},description:{type:"string"},externalValue:{type:"string"}},extensionsPrefix:"x-"},CQe={properties:{contentType:{type:"string"},headers:"HeadersMap",style:{enum:["form","simple","label","matrix","spaceDelimited","pipeDelimited","deepObject"]},explode:{type:"boolean"},allowReserved:{type:"boolean"}},extensionsPrefix:"x-"},PQe={properties:{},additionalProperties:{type:"string"}},kQe={properties:{description:{type:"string"},required:{type:"boolean"},deprecated:{type:"boolean"},allowEmptyValue:{type:"boolean"},style:{enum:["form","simple","label","matrix","spaceDelimited","pipeDelimited","deepObject"]},explode:{type:"boolean"},allowReserved:{type:"boolean"},schema:"Schema",example:{isExample:!0},examples:"ExamplesMap",content:"MediaTypesMap"},requiredOneOf:["schema","content"],extensionsPrefix:"x-"},$Qe={properties:{default:"Response"},additionalProperties:(t,e)=>nQe.test(e)?"Response":void 0},EQe={properties:{description:{type:"string"},headers:"HeadersMap",content:"MediaTypesMap",links:"LinksMap","x-summary":{type:"string"}},required:["description"],extensionsPrefix:"x-"},AQe={properties:{operationRef:{type:"string"},operationId:{type:"string"},parameters:null,requestBody:null,description:{type:"string"},server:"Server"},extensionsPrefix:"x-"},IQe={properties:{externalDocs:"ExternalDocs",discriminator:"Discriminator",title:{type:"string"},multipleOf:{type:"number",minimum:0},maximum:{type:"number"},minimum:{type:"number"},exclusiveMaximum:{type:"boolean"},exclusiveMinimum:{type:"boolean"},maxLength:{type:"integer",minimum:0},minLength:{type:"integer",minimum:0},pattern:{type:"string"},maxItems:{type:"integer",minimum:0},minItems:{type:"integer",minimum:0},uniqueItems:{type:"boolean"},maxProperties:{type:"integer",minimum:0},minProperties:{type:"integer",minimum:0},required:{type:"array",items:{type:"string"}},enum:{type:"array"},type:{enum:["object","array","string","number","integer","boolean"]},allOf:Ke("Schema"),anyOf:Ke("Schema"),oneOf:Ke("Schema"),not:"Schema",properties:"SchemaProperties",items:t=>Array.isArray(t)?Ke("Schema"):"Schema",additionalProperties:t=>typeof t=="boolean"?{type:"boolean"}:"Schema",description:{type:"string"},format:{type:"string"},default:null,nullable:{type:"boolean"},readOnly:{type:"boolean"},writeOnly:{type:"boolean"},xml:"Xml",example:{isExample:!0},deprecated:{type:"boolean"},"x-tags":{type:"array",items:{type:"string"}},"x-additionalPropertiesName":{type:"string"},"x-explicitMappingOnly":{type:"boolean"}},extensionsPrefix:"x-"},m8={properties:{name:{type:"string"},namespace:{type:"string"},prefix:{type:"string"},attribute:{type:"boolean"},wrapped:{type:"boolean"}},extensionsPrefix:"x-"},TQe={properties:{},additionalProperties:"Schema"},y8={properties:{},additionalProperties:t=>c8(t)?{type:"string",directResolveAs:"Schema"}:{type:"string"}},v8={properties:{propertyName:{type:"string"},mapping:"DiscriminatorMapping"},required:["propertyName"],extensionsPrefix:"x-"},_Qe={properties:{parameters:"NamedParameters",schemas:"NamedSchemas",responses:"NamedResponses",examples:"NamedExamples",requestBodies:"NamedRequestBodies",headers:"NamedHeaders",securitySchemes:"NamedSecuritySchemes",links:"NamedLinks",callbacks:"NamedCallbacks"},extensionsPrefix:"x-"},b8={properties:{refreshUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},authorizationUrl:{type:"string"}},required:["authorizationUrl","scopes"],extensionsPrefix:"x-"},O8={properties:{refreshUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["tokenUrl","scopes"],extensionsPrefix:"x-"},x8={properties:{refreshUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["tokenUrl","scopes"],extensionsPrefix:"x-"},S8={properties:{refreshUrl:{type:"string"},authorizationUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"},"x-usePkce":t=>typeof t=="boolean"?{type:"boolean"}:"XUsePkce"},required:["authorizationUrl","tokenUrl","scopes"],extensionsPrefix:"x-"},w8={properties:{implicit:"ImplicitFlow",password:"PasswordFlow",clientCredentials:"ClientCredentials",authorizationCode:"AuthorizationCode"},extensionsPrefix:"x-"},RQe={properties:{type:{enum:["apiKey","http","oauth2","openIdConnect"]},description:{type:"string"},name:{type:"string"},in:{type:"string",enum:["query","header","cookie"]},scheme:{type:"string"},bearerFormat:{type:"string"},flows:"OAuth2Flows",openIdConnectUrl:{type:"string"},"x-defaultClientId":{type:"string"}},required(t){switch(t==null?void 0:t.type){case"apiKey":return["type","name","in"];case"http":return["type","scheme"];case"oauth2":return["type","flows"];case"openIdConnect":return["type","openIdConnectUrl"];default:return["type"]}},allowed(t){switch(t==null?void 0:t.type){case"apiKey":return["type","name","in","description"];case"http":return["type","scheme","bearerFormat","description"];case"oauth2":return["type","flows","description"];case"openIdConnect":return["type","openIdConnectUrl","description"];default:return["type","description"]}},extensionsPrefix:"x-"},jQe={properties:{disableManualConfiguration:{type:"boolean"},hideClientSecretInput:{type:"boolean"}}},C8={Root:iQe,Tag:oQe,TagList:Ke("Tag"),TagGroups:Ke("TagGroup"),TagGroup:sQe,ExternalDocs:g8,Server:aQe,ServerList:Ke("Server"),ServerVariable:lQe,ServerVariablesMap:Ge("ServerVariable"),SecurityRequirement:cQe,SecurityRequirementList:Ke("SecurityRequirement"),Info:uQe,Contact:fQe,License:hQe,Paths:pQe,PathItem:mQe,Parameter:yQe,ParameterList:Ke("Parameter"),Operation:vQe,Callback:Ge("PathItem"),CallbacksMap:Ge("Callback"),RequestBody:OQe,MediaTypesMap:xQe,MediaType:SQe,Example:wQe,ExamplesMap:Ge("Example"),Encoding:CQe,EncodingMap:Ge("Encoding"),EnumDescriptions:PQe,Header:kQe,HeadersMap:Ge("Header"),Responses:$Qe,Response:EQe,Link:AQe,Logo:dQe,Schema:IQe,Xml:m8,SchemaProperties:TQe,DiscriminatorMapping:y8,Discriminator:v8,Components:_Qe,LinksMap:Ge("Link"),NamedSchemas:Ge("Schema"),NamedResponses:Ge("Response"),NamedParameters:Ge("Parameter"),NamedExamples:Ge("Example"),NamedRequestBodies:Ge("RequestBody"),NamedHeaders:Ge("Header"),NamedSecuritySchemes:Ge("SecurityScheme"),NamedLinks:Ge("Link"),NamedCallbacks:Ge("Callback"),ImplicitFlow:b8,PasswordFlow:O8,ClientCredentials:x8,AuthorizationCode:S8,OAuth2Flows:w8,SecurityScheme:RQe,XCodeSample:bQe,XCodeSampleList:Ke("XCodeSample"),XUsePkce:jQe,WebhooksMap:gQe},DQe={properties:{openapi:null,info:"Info",servers:"ServerList",security:"SecurityRequirementList",tags:"TagList",externalDocs:"ExternalDocs",paths:"Paths",webhooks:"WebhooksMap",components:"Components",jsonSchemaDialect:{type:"string"}},required:["openapi","info"],requiredOneOf:["paths","components","webhooks"],extensionsPrefix:"x-"},MQe={properties:{name:{type:"string"},url:{type:"string"},identifier:{type:"string"}},required:["name"],extensionsPrefix:"x-"},NQe={properties:{title:{type:"string"},version:{type:"string"},description:{type:"string"},termsOfService:{type:"string"},summary:{type:"string"},contact:"Contact",license:"License","x-logo":"Logo"},required:["title","version"],extensionsPrefix:"x-"},LQe={properties:{parameters:"NamedParameters",schemas:"NamedSchemas",responses:"NamedResponses",examples:"NamedExamples",requestBodies:"NamedRequestBodies",headers:"NamedHeaders",securitySchemes:"NamedSecuritySchemes",links:"NamedLinks",callbacks:"NamedCallbacks",pathItems:"NamedPathItems"},extensionsPrefix:"x-"},QQe={properties:{tags:{type:"array",items:{type:"string"}},summary:{type:"string"},description:{type:"string"},externalDocs:"ExternalDocs",operationId:{type:"string"},parameters:"ParameterList",security:"SecurityRequirementList",servers:"ServerList",requestBody:"RequestBody",responses:"Responses",deprecated:{type:"boolean"},callbacks:"CallbacksMap","x-codeSamples":"XCodeSampleList","x-code-samples":"XCodeSampleList","x-hideTryItPanel":{type:"boolean"}},extensionsPrefix:"x-"},P8={properties:{$id:{type:"string"},$anchor:{type:"string"},id:{type:"string"},$schema:{type:"string"},definitions:"NamedSchemas",$defs:"NamedSchemas",$vocabulary:{type:"string"},externalDocs:"ExternalDocs",discriminator:"Discriminator",title:{type:"string"},multipleOf:{type:"number",minimum:0},maximum:{type:"number"},minimum:{type:"number"},exclusiveMaximum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{type:"integer",minimum:0},minLength:{type:"integer",minimum:0},pattern:{type:"string"},maxItems:{type:"integer",minimum:0},minItems:{type:"integer",minimum:0},uniqueItems:{type:"boolean"},maxProperties:{type:"integer",minimum:0},minProperties:{type:"integer",minimum:0},required:{type:"array",items:{type:"string"}},enum:{type:"array"},type:t=>Array.isArray(t)?{type:"array",items:{enum:["object","array","string","number","integer","boolean","null"]}}:{enum:["object","array","string","number","integer","boolean","null"]},allOf:Ke("Schema"),anyOf:Ke("Schema"),oneOf:Ke("Schema"),not:"Schema",if:"Schema",then:"Schema",else:"Schema",dependentSchemas:Ge("Schema"),dependentRequired:"DependentRequired",prefixItems:Ke("Schema"),contains:"Schema",minContains:{type:"integer",minimum:0},maxContains:{type:"integer",minimum:0},patternProperties:"PatternProperties",propertyNames:"Schema",unevaluatedItems:t=>typeof t=="boolean"?{type:"boolean"}:"Schema",unevaluatedProperties:t=>typeof t=="boolean"?{type:"boolean"}:"Schema",summary:{type:"string"},properties:"SchemaProperties",items:t=>typeof t=="boolean"?{type:"boolean"}:"Schema",additionalProperties:t=>typeof t=="boolean"?{type:"boolean"}:"Schema",description:{type:"string"},format:{type:"string"},contentEncoding:{type:"string"},contentMediaType:{type:"string"},contentSchema:"Schema",default:null,readOnly:{type:"boolean"},writeOnly:{type:"boolean"},xml:"Xml",examples:{type:"array"},example:{isExample:!0},deprecated:{type:"boolean"},const:null,$comment:{type:"string"},"x-tags":{type:"array",items:{type:"string"}},$dynamicAnchor:{type:"string"},$dynamicRef:{type:"string"}},extensionsPrefix:"x-"},E0={properties:{},additionalProperties:t=>typeof t=="boolean"?{type:"boolean"}:"Schema"},k8={properties:{type:{enum:["apiKey","http","oauth2","openIdConnect","mutualTLS"]},description:{type:"string"},name:{type:"string"},in:{type:"string",enum:["query","header","cookie"]},scheme:{type:"string"},bearerFormat:{type:"string"},flows:"OAuth2Flows",openIdConnectUrl:{type:"string"}},required(t){switch(t==null?void 0:t.type){case"apiKey":return["type","name","in"];case"http":return["type","scheme"];case"oauth2":return["type","flows"];case"openIdConnect":return["type","openIdConnectUrl"];default:return["type"]}},allowed(t){switch(t==null?void 0:t.type){case"apiKey":return["type","name","in","description"];case"http":return["type","scheme","bearerFormat","description"];case"oauth2":switch(t==null?void 0:t.flows){case"implicit":return["type","flows","authorizationUrl","refreshUrl","description","scopes"];case"password":case"clientCredentials":return["type","flows","tokenUrl","refreshUrl","description","scopes"];case"authorizationCode":return["type","flows","authorizationUrl","refreshUrl","tokenUrl","description","scopes"];default:return["type","flows","authorizationUrl","refreshUrl","tokenUrl","description","scopes"]}case"openIdConnect":return["type","openIdConnectUrl","description"];case"mutualTLS":return["type","description"];default:return["type","description"]}},extensionsPrefix:"x-"},$8={properties:{},additionalProperties:{type:"array",items:{type:"string"}}},VQe={...C8,Info:NQe,Root:DQe,Schema:P8,SchemaProperties:E0,PatternProperties:E0,License:MQe,Components:LQe,NamedPathItems:Ge("PathItem"),SecurityScheme:k8,Operation:QQe,DependentRequired:$8},zQe={properties:{arazzo:{type:"string"},info:"Info",sourceDescriptions:"SourceDescriptions",workflows:"Workflows",components:"Components"},required:["arazzo","info","sourceDescriptions","workflows"],extensionsPrefix:"x-"},BQe={properties:{},additionalProperties:"Parameter"},qQe={properties:{},additionalProperties:"SuccessActionObject"},FQe={properties:{},additionalProperties:"FailureActionObject"},WQe={properties:{inputs:"NamedInputs",parameters:"NamedParameters",successActions:"NamedSuccessActions",failureActions:"NamedFailureActions"},extensionsPrefix:"x-"},UQe=Ge("Schema"),XQe={properties:{title:{type:"string"},description:{type:"string"},summary:{type:"string"},version:{type:"string"}},required:["title","version"],extensionsPrefix:"x-"},ZQe={properties:{},items:t=>(t==null?void 0:t.type)==="openapi"?"OpenAPISourceDescription":"ArazzoSourceDescription"},GQe={properties:{name:{type:"string"},type:{type:"string",enum:["openapi"]},url:{type:"string"},"x-serverUrl":{type:"string"}},required:["name","type","url"],extensionsPrefix:"x-"},YQe={properties:{name:{type:"string"},type:{type:"string",enum:["arazzo"]},url:{type:"string"}},required:["name","type","url"],extensionsPrefix:"x-"},HQe={properties:{reference:{type:"string"},value:{}},required:["reference"],extensionsPrefix:"x-"},JQe={properties:{in:{type:"string",enum:["header","query","path","cookie"]},name:{type:"string"},value:{}},required:["name","value"],extensionsPrefix:"x-"},KQe={properties:{},items:t=>t!=null&&t.reference?"ReusableObject":"Parameter"},eVe={properties:{workflowId:{type:"string"},summary:{type:"string"},description:{type:"string"},parameters:"Parameters",dependsOn:{type:"array",items:{type:"string"}},inputs:"Schema",outputs:"Outputs",steps:"Steps",successActions:"OnSuccessActionList",failureActions:"OnFailureActionList","x-security":"ExtendedSecurityList"},required:["workflowId","steps"],extensionsPrefix:"x-"},tVe=Ke("Workflow"),rVe=Ke("Step"),nVe={properties:{stepId:{type:"string"},description:{type:"string"},operationId:{type:"string"},operationPath:{type:"string"},workflowId:{type:"string"},parameters:"Parameters",successCriteria:Ke("CriterionObject"),onSuccess:"OnSuccessActionList",onFailure:"OnFailureActionList",outputs:"Outputs","x-operation":"ExtendedOperation","x-security":"ExtendedSecurityList",requestBody:"RequestBody"},required:["stepId"],requiredOneOf:["x-operation","operationId","operationPath","workflowId"],extensionsPrefix:"x-"},iVe={properties:{},additionalProperties:{type:"string"}},oVe={properties:{contentType:{type:"string"},payload:{},replacements:Ke("Replacement")},required:["payload"],extensionsPrefix:"x-"},sVe={properties:{target:{type:"string"},value:{}},required:["target","value"],extensionsPrefix:"x-"},aVe={properties:{schemeName:{type:"string"},values:{},scheme:"SecurityScheme"},required:["values"],requiredOneOf:["schemeName","scheme"]},lVe={properties:{url:{type:"string"},method:{enum:["get","post","put","delete","patch","head","options","trace","connect","query","GET","POST","PUT","DELETE","PATCH","OPTIONS","HEAD","TRACE","CONNECT","QUERY"]}},required:["url","method"]},cVe={properties:{condition:{type:"string"},context:{type:"string"},type:t=>{if(t)return typeof t=="string"?{enum:["regex","jsonpath","simple","xpath"]}:(t==null?void 0:t.type)==="jsonpath"?"JSONPathCriterion":"XPathCriterion"}},required:["condition"]},uVe={properties:{type:{type:"string",enum:["jsonpath"]},version:{type:"string",enum:["draft-goessner-dispatch-jsonpath-00"]}}},dVe={properties:{type:{type:"string",enum:["xpath"]},version:{type:"string",enum:["xpath-30","xpath-20","xpath-10"]}}},fVe={properties:{name:{type:"string"},type:{type:"string",enum:["goto","end"]},stepId:{type:"string"},workflowId:{type:"string"},criteria:Ke("CriterionObject")},required:["type","name"]},hVe={properties:{},items:t=>t!=null&&t.type&&(t!=null&&t.name)?"SuccessActionObject":"ReusableObject"},pVe={properties:{name:{type:"string"},type:{type:"string",enum:["goto","retry","end"]},workflowId:{type:"string"},stepId:{type:"string"},retryAfter:{type:"number",minimum:0},retryLimit:{type:"number",minimum:0},criteria:Ke("CriterionObject")},required:["type","name"]},gVe={properties:{},items:t=>t!=null&&t.type&&(t!=null&&t.name)?"FailureActionObject":"ReusableObject"},mVe={Root:zQe,Info:XQe,SourceDescriptions:ZQe,OpenAPISourceDescription:GQe,ArazzoSourceDescription:YQe,Parameters:KQe,Parameter:JQe,ReusableObject:HQe,Workflows:tVe,Workflow:eVe,Steps:rVe,Step:nVe,RequestBody:oVe,Replacement:sVe,ExtendedOperation:lVe,ExtendedSecurityList:Ke("ExtendedSecurity"),ExtendedSecurity:aVe,Outputs:iVe,CriterionObject:cVe,XPathCriterion:dVe,JSONPathCriterion:uVe,SuccessActionObject:fVe,OnSuccessActionList:hVe,FailureActionObject:pVe,OnFailureActionList:gVe,Schema:P8,NamedSchemas:Ge("Schema"),ExternalDocs:g8,DiscriminatorMapping:y8,Discriminator:v8,DependentRequired:$8,SchemaProperties:E0,PatternProperties:E0,Components:WQe,NamedInputs:UQe,NamedParameters:BQe,NamedSuccessActions:qQe,NamedFailureActions:FQe,Xml:m8,SecurityScheme:k8,OAuth2Flows:w8,ImplicitFlow:b8,PasswordFlow:O8,ClientCredentials:x8,AuthorizationCode:S8},yVe=/^[0-9][0-9Xx]{2}$/,vVe={properties:{swagger:{type:"string"},info:"Info",host:{type:"string"},basePath:{type:"string"},schemes:{type:"array",items:{type:"string"}},consumes:{type:"array",items:{type:"string"}},produces:{type:"array",items:{type:"string"}},paths:"Paths",definitions:"NamedSchemas",parameters:"NamedParameters",responses:"NamedResponses",securityDefinitions:"NamedSecuritySchemes",security:"SecurityRequirementList",tags:"TagList",externalDocs:"ExternalDocs","x-servers":"XServerList","x-tagGroups":"TagGroups","x-ignoredHeaderParameters":{type:"array",items:{type:"string"}}},required:["swagger","paths","info"],extensionsPrefix:"x-"},bVe={properties:{title:{type:"string"},description:{type:"string"},termsOfService:{type:"string"},contact:"Contact",license:"License",version:{type:"string"},"x-logo":"Logo"},required:["title","version"],extensionsPrefix:"x-"},OVe={properties:{url:{type:"string"},altText:{type:"string"},backgroundColor:{type:"string"},href:{type:"string"}},extensionsPrefix:"x-"},xVe={properties:{name:{type:"string"},url:{type:"string"},email:{type:"string"}},extensionsPrefix:"x-"},SVe={properties:{name:{type:"string"},url:{type:"string"}},required:["name"],extensionsPrefix:"x-"},wVe={properties:{},additionalProperties:(t,e)=>e.startsWith("/")?"PathItem":void 0},CVe={properties:{$ref:{type:"string"},parameters:"ParameterList",get:"Operation",put:"Operation",post:"Operation",delete:"Operation",options:"Operation",head:"Operation",patch:"Operation"},extensionsPrefix:"x-"},PVe={properties:{tags:{type:"array",items:{type:"string"}},summary:{type:"string"},description:{type:"string"},externalDocs:"ExternalDocs",operationId:{type:"string"},consumes:{type:"array",items:{type:"string"}},produces:{type:"array",items:{type:"string"}},parameters:"ParameterList",responses:"Responses",schemes:{type:"array",items:{type:"string"}},deprecated:{type:"boolean"},security:"SecurityRequirementList","x-codeSamples":"XCodeSampleList","x-code-samples":"XCodeSampleList","x-hideTryItPanel":{type:"boolean"}},required:["responses"],extensionsPrefix:"x-"},kVe={properties:{lang:{type:"string"},label:{type:"string"},source:{type:"string"}}},$Ve={properties:{url:{type:"string"},description:{type:"string"}},required:["url"]},EVe={properties:{description:{type:"string"},url:{type:"string"}},required:["url"],extensionsPrefix:"x-"},AVe={properties:{name:{type:"string"},in:{type:"string",enum:["query","header","path","formData","body"]},description:{type:"string"},required:{type:"boolean"},schema:"Schema",type:{type:"string",enum:["string","number","integer","boolean","array","file"]},format:{type:"string"},allowEmptyValue:{type:"boolean"},items:"ParameterItems",collectionFormat:{type:"string",enum:["csv","ssv","tsv","pipes","multi"]},default:null,maximum:{type:"integer"},exclusiveMaximum:{type:"boolean"},minimum:{type:"integer"},exclusiveMinimum:{type:"boolean"},maxLength:{type:"integer"},minLength:{type:"integer"},pattern:{type:"string"},maxItems:{type:"integer"},minItems:{type:"integer"},uniqueItems:{type:"boolean"},enum:{type:"array"},multipleOf:{type:"number"},"x-example":{},"x-examples":"ExamplesMap"},required(t){return!t||!t.in?["name","in"]:t.in==="body"?["name","in","schema"]:t.type==="array"?["name","in","type","items"]:["name","in","type"]},extensionsPrefix:"x-"},IVe={properties:{type:{type:"string",enum:["string","number","integer","boolean","array"]},format:{type:"string"},items:"ParameterItems",collectionFormat:{type:"string",enum:["csv","ssv","tsv","pipes","multi"]},default:null,maximum:{type:"integer"},exclusiveMaximum:{type:"boolean"},minimum:{type:"integer"},exclusiveMinimum:{type:"boolean"},maxLength:{type:"integer"},minLength:{type:"integer"},pattern:{type:"string"},maxItems:{type:"integer"},minItems:{type:"integer"},uniqueItems:{type:"boolean"},enum:{type:"array"},multipleOf:{type:"number"}},required(t){return t&&t.type==="array"?["type","items"]:["type"]},extensionsPrefix:"x-"},TVe={properties:{default:"Response"},additionalProperties:(t,e)=>yVe.test(e)?"Response":void 0},_Ve={properties:{description:{type:"string"},schema:"Schema",headers:Ge("Header"),examples:"Examples","x-summary":{type:"string"}},required:["description"],extensionsPrefix:"x-"},RVe={properties:{},additionalProperties:{isExample:!0}},jVe={properties:{description:{type:"string"},type:{type:"string",enum:["string","number","integer","boolean","array"]},format:{type:"string"},items:"ParameterItems",collectionFormat:{type:"string",enum:["csv","ssv","tsv","pipes","multi"]},default:null,maximum:{type:"integer"},exclusiveMaximum:{type:"boolean"},minimum:{type:"integer"},exclusiveMinimum:{type:"boolean"},maxLength:{type:"integer"},minLength:{type:"integer"},pattern:{type:"string"},maxItems:{type:"integer"},minItems:{type:"integer"},uniqueItems:{type:"boolean"},enum:{type:"array"},multipleOf:{type:"number"}},required(t){return t&&t.type==="array"?["type","items"]:["type"]},extensionsPrefix:"x-"},DVe={properties:{name:{type:"string"},description:{type:"string"},externalDocs:"ExternalDocs","x-traitTag":{type:"boolean"},"x-displayName":{type:"string"}},required:["name"],extensionsPrefix:"x-"},MVe={properties:{name:{type:"string"},tags:{type:"array",items:{type:"string"}}}},NVe={properties:{format:{type:"string"},title:{type:"string"},description:{type:"string"},default:null,multipleOf:{type:"number"},maximum:{type:"number"},minimum:{type:"number"},exclusiveMaximum:{type:"boolean"},exclusiveMinimum:{type:"boolean"},maxLength:{type:"number"},minLength:{type:"number"},pattern:{type:"string"},maxItems:{type:"number"},minItems:{type:"number"},uniqueItems:{type:"boolean"},maxProperties:{type:"number"},minProperties:{type:"number"},required:{type:"array",items:{type:"string"}},enum:{type:"array"},type:{type:"string",enum:["object","array","string","number","integer","boolean","null"]},items:t=>Array.isArray(t)?Ke("Schema"):"Schema",allOf:Ke("Schema"),properties:"SchemaProperties",additionalProperties:t=>typeof t=="boolean"?{type:"boolean"}:"Schema",discriminator:{type:"string"},readOnly:{type:"boolean"},xml:"Xml",externalDocs:"ExternalDocs",example:{isExample:!0},"x-tags":{type:"array",items:{type:"string"}},"x-nullable":{type:"boolean"},"x-extendedDiscriminator":{type:"string"},"x-additionalPropertiesName":{type:"string"},"x-explicitMappingOnly":{type:"boolean"},"x-enumDescriptions":"EnumDescriptions"},extensionsPrefix:"x-"},LVe={properties:{},additionalProperties:{type:"string"}},QVe={properties:{},additionalProperties:"Schema"},VVe={properties:{name:{type:"string"},namespace:{type:"string"},prefix:{type:"string"},attribute:{type:"boolean"},wrapped:{type:"boolean"}},extensionsPrefix:"x-"},zVe={properties:{type:{enum:["basic","apiKey","oauth2"]},description:{type:"string"},name:{type:"string"},in:{type:"string",enum:["query","header"]},flow:{enum:["implicit","password","application","accessCode"]},authorizationUrl:{type:"string"},tokenUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},"x-defaultClientId":{type:"string"}},required(t){switch(t==null?void 0:t.type){case"apiKey":return["type","name","in"];case"oauth2":switch(t==null?void 0:t.flow){case"implicit":return["type","flow","authorizationUrl","scopes"];case"accessCode":return["type","flow","authorizationUrl","tokenUrl","scopes"];case"application":case"password":return["type","flow","tokenUrl","scopes"];default:return["type","flow","scopes"]}default:return["type"]}},allowed(t){switch(t==null?void 0:t.type){case"basic":return["type","description"];case"apiKey":return["type","name","in","description"];case"oauth2":switch(t==null?void 0:t.flow){case"implicit":return["type","flow","authorizationUrl","description","scopes"];case"accessCode":return["type","flow","authorizationUrl","tokenUrl","description","scopes"];case"application":case"password":return["type","flow","tokenUrl","description","scopes"];default:return["type","flow","tokenUrl","authorizationUrl","description","scopes"]}default:return["type","description"]}},extensionsPrefix:"x-"},BVe={properties:{},additionalProperties:{type:"array",items:{type:"string"}}},qVe={properties:{value:{isExample:!0},summary:{type:"string"},description:{type:"string"},externalValue:{type:"string"}},extensionsPrefix:"x-"},FVe={Root:vVe,Tag:DVe,TagList:Ke("Tag"),TagGroups:Ke("TagGroup"),TagGroup:MVe,ExternalDocs:EVe,Example:qVe,ExamplesMap:Ge("Example"),EnumDescriptions:LVe,SecurityRequirement:BVe,SecurityRequirementList:Ke("SecurityRequirement"),Info:bVe,Contact:xVe,License:SVe,Logo:OVe,Paths:wVe,PathItem:CVe,Parameter:AVe,ParameterItems:IVe,ParameterList:Ke("Parameter"),Operation:PVe,Examples:RVe,Header:jVe,Responses:TVe,Response:_Ve,Schema:NVe,Xml:VVe,SchemaProperties:QVe,NamedSchemas:Ge("Schema"),NamedResponses:Ge("Response"),NamedParameters:Ge("Parameter"),NamedSecuritySchemes:Ge("SecurityScheme"),SecurityScheme:zVe,XCodeSample:kVe,XCodeSampleList:Ke("XCodeSample"),XServerList:Ke("XServer"),XServer:$Ve},WVe={properties:{asyncapi:null,info:"Info",id:{type:"string"},servers:"ServerMap",channels:"ChannelMap",components:"Components",tags:"TagList",externalDocs:"ExternalDocs",defaultContentType:{type:"string"}},required:["asyncapi","channels","info"]},UVe={properties:{description:{type:"string"},subscribe:"Operation",publish:"Operation",parameters:"ParametersMap",bindings:"ChannelBindings",servers:{type:"array",items:{type:"string"}}}},XVe={properties:{},additionalProperties:"Channel"},Qn={properties:{},allowed(){return["http","ws","kafka","anypointmq","amqp","amqp1","mqtt","mqtt5","nats","jms","sns","solace","sqs","stomp","redis","mercure","ibmmq","googlepubsub","pulsar"]},additionalProperties:{type:"object"}},E8={properties:{name:{type:"string"},description:{type:"string"},externalDocs:"ExternalDocs"},required:["name"]},A8={properties:{description:{type:"string"},url:{type:"string"}},required:["url"]},ZVe={properties:{},additionalProperties:{type:"array",items:{type:"string"}}},Vn={properties:{},allowed(){return["http","ws","kafka","anypointmq","amqp","amqp1","mqtt","mqtt5","nats","jms","sns","solace","sqs","stomp","redis","mercure","ibmmq","googlepubsub","pulsar"]},additionalProperties:{type:"object"}},GVe={properties:{url:{type:"string"},protocol:{type:"string"},protocolVersion:{type:"string"},description:{type:"string"},variables:"ServerVariablesMap",security:"SecurityRequirementList",bindings:"ServerBindings",tags:"TagList"},required:["url","protocol"]},I8={properties:{},additionalProperties:(t,e)=>e.match(/^[A-Za-z0-9_\-]+$/)?"Server":void 0},T8={properties:{enum:{type:"array",items:{type:"string"}},default:{type:"string"},description:{type:"string"},examples:{type:"array",items:{type:"string"}}},required:[]},YVe={properties:{title:{type:"string"},version:{type:"string"},description:{type:"string"},termsOfService:{type:"string"},contact:"Contact",license:"License"},required:["title","version"]},_8={properties:{name:{type:"string"},url:{type:"string"},email:{type:"string"}}},R8={properties:{name:{type:"string"},url:{type:"string"}},required:["name"]},HVe={properties:{description:{type:"string"},schema:"Schema",location:{type:"string"}}},j8={properties:{description:{type:"string"},location:{type:"string"}},required:["location"]},JVe={properties:{messageId:{type:"string"},headers:"Schema",payload:"Schema",correlationId:"CorrelationId",schemaFormat:{type:"string"},contentType:{type:"string"},name:{type:"string"},title:{type:"string"},summary:{type:"string"},description:{type:"string"},tags:"TagList",externalDocs:"ExternalDocs",bindings:"MessageBindings",examples:"MessageExampleList",traits:"MessageTraitList"},additionalProperties:{}},Sn={properties:{},allowed(){return["http","ws","kafka","anypointmq","amqp","amqp1","mqtt","mqtt5","nats","jms","sns","solace","sqs","stomp","redis","mercure","ibmmq","googlepubsub","pulsar"]},additionalProperties:{type:"object"}},wn={properties:{},allowed(){return["http","ws","kafka","anypointmq","amqp","amqp1","mqtt","mqtt5","nats","jms","sns","solace","sqs","stomp","redis","mercure","ibmmq","googlepubsub","pulsar"]},additionalProperties:{type:"object"}},KVe={properties:{tags:"TagList",summary:{type:"string"},description:{type:"string"},externalDocs:"ExternalDocs",operationId:{type:"string"},security:"SecurityRequirementList",bindings:"OperationBindings"},required:[]},eze={properties:{messageId:{type:"string"},headers:"Schema",correlationId:"CorrelationId",schemaFormat:{type:"string"},contentType:{type:"string"},name:{type:"string"},title:{type:"string"},summary:{type:"string"},description:{type:"string"},tags:"TagList",externalDocs:"ExternalDocs",bindings:"MessageBindings",examples:"MessageExampleList"},additionalProperties:{}},tze={properties:{tags:"TagList",summary:{type:"string"},description:{type:"string"},externalDocs:"ExternalDocs",operationId:{type:"string"},security:"SecurityRequirementList",bindings:"OperationBindings",traits:"OperationTraitList",message:"Message"},required:[]},D8={properties:{payload:{isExample:!0},summary:{type:"string"},name:{type:"string"},headers:{type:"object"}}},M8={properties:{$id:{type:"string"},$schema:{type:"string"},definitions:"NamedSchemas",externalDocs:"ExternalDocs",discriminator:"Discriminator",myArbitraryKeyword:{type:"boolean"},title:{type:"string"},multipleOf:{type:"number",minimum:0},maximum:{type:"number"},minimum:{type:"number"},exclusiveMaximum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{type:"integer",minimum:0},minLength:{type:"integer",minimum:0},pattern:{type:"string"},maxItems:{type:"integer",minimum:0},minItems:{type:"integer",minimum:0},uniqueItems:{type:"boolean"},maxProperties:{type:"integer",minimum:0},minProperties:{type:"integer",minimum:0},required:{type:"array",items:{type:"string"}},enum:{type:"array"},type:t=>Array.isArray(t)?{type:"array",items:{enum:["object","array","string","number","integer","boolean","null"]}}:{enum:["object","array","string","number","integer","boolean","null"]},allOf:Ke("Schema"),anyOf:Ke("Schema"),oneOf:Ke("Schema"),not:"Schema",if:"Schema",then:"Schema",else:"Schema",contains:"Schema",patternProperties:{type:"object"},propertyNames:"Schema",properties:"SchemaProperties",items:t=>Array.isArray(t)?Ke("Schema"):"Schema",additionalProperties:t=>typeof t=="boolean"?{type:"boolean"}:"Schema",description:{type:"string"},format:{type:"string"},contentEncoding:{type:"string"},contentMediaType:{type:"string"},default:null,readOnly:{type:"boolean"},writeOnly:{type:"boolean"},examples:{type:"array"},example:{isExample:!0},deprecated:{type:"boolean"},const:null,$comment:{type:"string"},additionalItems:t=>typeof t=="boolean"?{type:"boolean"}:"Schema",dependencies:"Dependencies"}},N8={properties:{},additionalProperties:t=>typeof t=="boolean"?{type:"boolean"}:"Schema"},L8={properties:{},additionalProperties:t=>c8(t)?{type:"string",directResolveAs:"Schema"}:{type:"string"}},Q8={properties:{propertyName:{type:"string"},mapping:"DiscriminatorMapping"},required:["propertyName"]},rze={properties:{messages:"NamedMessages",parameters:"NamedParameters",schemas:"NamedSchemas",correlationIds:"NamedCorrelationIds",messageTraits:"NamedMessageTraits",operationTraits:"NamedOperationTraits",securitySchemes:"NamedSecuritySchemes",servers:"ServerMap",serverVariables:"ServerVariablesMap",channels:"ChannelMap",serverBindings:"ServerBindings",channelBindings:"ChannelBindings",operationBindings:"OperationBindings",messageBindings:"MessageBindings"}},nze={properties:{refreshUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},authorizationUrl:{type:"string"}},required:["authorizationUrl","scopes"]},ize={properties:{refreshUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["tokenUrl","scopes"]},oze={properties:{refreshUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["tokenUrl","scopes"]},sze={properties:{refreshUrl:{type:"string"},authorizationUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["authorizationUrl","tokenUrl","scopes"]},V8={properties:{implicit:"ImplicitFlow",password:"PasswordFlow",clientCredentials:"ClientCredentials",authorizationCode:"AuthorizationCode"}},aze={properties:{type:{enum:["userPassword","apiKey","X509","symmetricEncryption","asymmetricEncryption","httpApiKey","http","oauth2","openIdConnect","plain","scramSha256","scramSha512","gssapi"]},description:{type:"string"},name:{type:"string"},in:{type:"string",enum:["query","header","cookie","user","password"]},scheme:{type:"string"},bearerFormat:{type:"string"},flows:"SecuritySchemeFlows",openIdConnectUrl:{type:"string"}},required(t){switch(t==null?void 0:t.type){case"apiKey":return["type","in"];case"httpApiKey":return["type","name","in"];case"http":return["type","scheme"];case"oauth2":return["type","flows"];case"openIdConnect":return["type","openIdConnectUrl"];default:return["type"]}},allowed(t){switch(t==null?void 0:t.type){case"apiKey":return["type","in","description"];case"httpApiKey":return["type","name","in","description"];case"http":return["type","scheme","bearerFormat","description"];case"oauth2":return["type","flows","description"];case"openIdConnect":return["type","openIdConnectUrl","description"];default:return["type","description"]}},extensionsPrefix:"x-"},z8={properties:{},additionalProperties:t=>Array.isArray(t)?{type:"array",items:{type:"string"}}:"Schema"},B8={properties:{}};Qn.properties.http=B8;const q8={properties:{}};Vn.properties.http=q8;const F8={properties:{headers:"Schema",bindingVersion:{type:"string"}}};Sn.properties.http=F8;const W8={properties:{type:{type:"string"},method:{type:"string",enum:["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS","CONNECT","TRACE"]},headers:"Schema",bindingVersion:{type:"string"}}};wn.properties.http=W8;const U8={properties:{method:{type:"string"},query:"Schema",headers:"Schema",bindingVersion:{type:"string"}}};Qn.properties.ws=U8;const X8={properties:{}};Vn.properties.ws=X8;const Z8={properties:{}};Sn.properties.ws=Z8;const G8={properties:{}};wn.properties.ws=G8;const lze={properties:{"cleanup.policy":{type:"array",items:{enum:["delete","compact"]}},"retention.ms":{type:"integer"},"retention.bytes":{type:"integer"},"delete.retention.ms":{type:"integer"},"max.message.bytes":{type:"integer"}}},Y8={properties:{topic:{type:"string"},partitions:{type:"integer"},replicas:{type:"integer"},topicConfiguration:"KafkaTopicConfiguration",bindingVersion:{type:"string"}}};Qn.properties.kafka=Y8;const H8={properties:{}};Vn.properties.kafka=H8;const J8={properties:{key:"Schema",schemaIdLocation:{type:"string"},schemaIdPayloadEncoding:{type:"string"},schemaLookupStrategy:{type:"string"},bindingVersion:{type:"string"}}};Sn.properties.kafka=J8;const K8={properties:{groupId:"Schema",clientId:"Schema",bindingVersion:{type:"string"}}};wn.properties.kafka=K8;const e6={properties:{destination:{type:"string"},destinationType:{type:"string"},bindingVersion:{type:"string"}}};Qn.properties.anypointmq=e6;const t6={properties:{}};Vn.properties.anypointmq=t6;const r6={properties:{headers:"Schema",bindingVersion:{type:"string"}}};Sn.properties.anypointmq=r6;const n6={properties:{}};wn.properties.anypointmq=n6;const i6={properties:{}};Qn.properties.amqp=i6;const o6={properties:{}};Vn.properties.amqp=o6;const s6={properties:{contentEncoding:{type:"string"},messageType:{type:"string"},bindingVersion:{type:"string"}}};Sn.properties.amqp=s6;const a6={properties:{expiration:{type:"integer"},userId:{type:"string"},cc:{type:"array",items:{type:"string"}},priority:{type:"integer"},deliveryMode:{type:"integer"},mandatory:{type:"boolean"},bcc:{type:"array",items:{type:"string"}},replyTo:{type:"string"},timestamp:{type:"boolean"},ack:{type:"boolean"},bindingVersion:{type:"string"}}};wn.properties.amqp=a6;const l6={properties:{}};Qn.properties.amqp1=l6;const c6={properties:{}};Vn.properties.amqp1=c6;const u6={properties:{}};Sn.properties.amqp1=u6;const d6={properties:{}};wn.properties.amqp1=d6;const f6={properties:{qos:{type:"integer"},retain:{type:"boolean"},bindingVersion:{type:"string"}}};Qn.properties.mqtt=f6;const cze={properties:{topic:{type:"string"},qos:{type:"integer"},message:{type:"string"},retain:{type:"boolean"}}},h6={properties:{clientId:{type:"string"},cleanSession:{type:"boolean"},lastWill:"MqttServerBindingLastWill",keepAlive:{type:"integer"},bindingVersion:{type:"string"}}};Vn.properties.mqtt=h6;const p6={properties:{bindingVersion:{type:"string"}}};Sn.properties.mqtt=p6;const g6={properties:{qos:{type:"integer"},retain:{type:"boolean"},bindingVersion:{type:"string"}}};wn.properties.mqtt=g6;const m6={properties:{}};Qn.properties.mqtt5=m6;const y6={properties:{}};Vn.properties.mqtt5=y6;const v6={properties:{}};Sn.properties.mqtt5=v6;const b6={properties:{}};wn.properties.mqtt5=b6;const O6={properties:{}};Qn.properties.nats=O6;const x6={properties:{}};Vn.properties.nats=x6;const S6={properties:{}};Sn.properties.nats=S6;const w6={properties:{queue:{type:"string"},bindingVersion:{type:"string"}}};wn.properties.nats=w6;const C6={properties:{destination:{type:"string"},destinationType:{type:"string"},bindingVersion:{type:"string"}}};Qn.properties.jms=C6;const P6={properties:{}};Vn.properties.jms=P6;const k6={properties:{headers:"Schema",bindingVersion:{type:"string"}}};Sn.properties.jms=k6;const $6={properties:{headers:"Schema",bindingVersion:{type:"string"}}};wn.properties.jms=$6;const E6={properties:{}};Qn.properties.solace=E6;const A6={properties:{bindingVersion:{type:"string"},msgVpn:{type:"string"}}};Vn.properties.solace=A6;const I6={properties:{}};Sn.properties.solace=I6;const uze={properties:{destinationType:{type:"string",enum:["queue","topic"]},deliveryMode:{type:"string",enum:["direct","persistent"]},"queue.name":{type:"string"},"queue.topicSubscriptions":{type:"array",items:{type:"string"}},"queue.accessType":{type:"string",enum:["exclusive","nonexclusive"]},"queue.maxMsgSpoolSize":{type:"string"},"queue.maxTtl":{type:"string"},"topic.topicSubscriptions":{type:"array",items:{type:"string"}}}},T6={properties:{bindingVersion:{type:"string"},destinations:Ke("SolaceDestination")}};wn.properties.solace=T6;const _6={properties:{}};Qn.properties.stomp=_6;const R6={properties:{}};Vn.properties.stomp=R6;const j6={properties:{}};Sn.properties.stomp=j6;const D6={properties:{}};wn.properties.stomp=D6;const M6={properties:{}};Qn.properties.redis=M6;const N6={properties:{}};Vn.properties.redis=N6;const L6={properties:{}};Sn.properties.redis=L6;const Q6={properties:{}};wn.properties.redis=Q6;const V6={properties:{}};Qn.properties.mercure=V6;const z6={properties:{}};Vn.properties.mercure=z6;const B6={properties:{}};Sn.properties.mercure=B6;const q6={properties:{}};wn.properties.mercure=q6;const F6={HttpServerBinding:q8,HttpChannelBinding:B8,HttpMessageBinding:F8,HttpOperationBinding:W8,WsServerBinding:X8,WsChannelBinding:U8,WsMessageBinding:Z8,WsOperationBinding:G8,KafkaServerBinding:H8,KafkaTopicConfiguration:lze,KafkaChannelBinding:Y8,KafkaMessageBinding:J8,KafkaOperationBinding:K8,AnypointmqServerBinding:t6,AnypointmqChannelBinding:e6,AnypointmqMessageBinding:r6,AnypointmqOperationBinding:n6,AmqpServerBinding:o6,AmqpChannelBinding:i6,AmqpMessageBinding:s6,AmqpOperationBinding:a6,Amqp1ServerBinding:c6,Amqp1ChannelBinding:l6,Amqp1MessageBinding:u6,Amqp1OperationBinding:d6,MqttServerBindingLastWill:cze,MqttServerBinding:h6,MqttChannelBinding:f6,MqttMessageBinding:p6,MqttOperationBinding:g6,Mqtt5ServerBinding:y6,Mqtt5ChannelBinding:m6,Mqtt5MessageBinding:v6,Mqtt5OperationBinding:b6,NatsServerBinding:x6,NatsChannelBinding:O6,NatsMessageBinding:S6,NatsOperationBinding:w6,JmsServerBinding:P6,JmsChannelBinding:C6,JmsMessageBinding:k6,JmsOperationBinding:$6,SolaceServerBinding:A6,SolaceChannelBinding:E6,SolaceMessageBinding:I6,SolaceDestination:uze,SolaceOperationBinding:T6,StompServerBinding:R6,StompChannelBinding:_6,StompMessageBinding:j6,StompOperationBinding:D6,RedisServerBinding:N6,RedisChannelBinding:M6,RedisMessageBinding:L6,RedisOperationBinding:Q6,MercureServerBinding:z6,MercureChannelBinding:V6,MercureMessageBinding:B6,MercureOperationBinding:q6,ServerBindings:Vn,ChannelBindings:Qn,MessageBindings:Sn,OperationBindings:wn},dze={...F6,Root:WVe,Tag:E8,TagList:Ke("Tag"),ServerMap:I8,ExternalDocs:A8,Server:GVe,ServerVariable:T8,ServerVariablesMap:Ge("ServerVariable"),SecurityRequirement:ZVe,SecurityRequirementList:Ke("SecurityRequirement"),Info:YVe,Contact:_8,License:R8,ChannelMap:XVe,Channel:UVe,Parameter:HVe,ParametersMap:Ge("Parameter"),Operation:tze,Schema:M8,MessageExample:D8,SchemaProperties:N8,DiscriminatorMapping:L8,Discriminator:Q8,Components:rze,NamedSchemas:Ge("Schema"),NamedMessages:Ge("Message"),NamedMessageTraits:Ge("MessageTrait"),NamedOperationTraits:Ge("OperationTrait"),NamedParameters:Ge("Parameter"),NamedSecuritySchemes:Ge("SecurityScheme"),NamedCorrelationIds:Ge("CorrelationId"),ImplicitFlow:nze,PasswordFlow:ize,ClientCredentials:oze,AuthorizationCode:sze,SecuritySchemeFlows:V8,SecurityScheme:aze,Message:JVe,MessageBindings:Sn,OperationBindings:wn,OperationTrait:KVe,OperationTraitList:Ke("OperationTrait"),MessageTrait:eze,MessageTraitList:Ke("MessageTrait"),MessageExampleList:Ke("MessageExample"),CorrelationId:j8,Dependencies:z8},fze={properties:{asyncapi:{type:"string",enum:["3.0.0"]},info:"Info",id:{type:"string"},servers:"ServerMap",channels:"NamedChannels",components:"Components",operations:"NamedOperations",defaultContentType:{type:"string"}},required:["asyncapi","info"]},hze={properties:{address:{type:"string"},messages:"NamedMessages",title:{type:"string"},summary:{type:"string"},description:{type:"string"},servers:"ServerList",parameters:"ParametersMap",bindings:"ChannelBindings",tags:"TagList",externalDocs:"ExternalDocs"}},pze={properties:{host:{type:"string"},pathname:{type:"string"},protocol:{type:"string"},protocolVersion:{type:"string"},description:{type:"string"},variables:"ServerVariablesMap",security:"SecuritySchemeList",bindings:"ServerBindings",externalDocs:"ExternalDocs",tags:"TagList"},required:["host","protocol"]},gze={properties:{title:{type:"string"},version:{type:"string"},description:{type:"string"},termsOfService:{type:"string"},contact:"Contact",license:"License",tags:"TagList",externalDocs:"ExternalDocs"},required:["title","version"]},mze={properties:{description:{type:"string"},enum:{type:"array",items:{type:"string"}},default:{type:"string"},examples:{type:"array",items:{type:"string"}},location:{type:"string"}}},yze={properties:{headers:"Schema",payload:t=>t&&(t!=null&&t.schemaFormat)?{properties:{schema:"Schema",schemaFormat:{type:"string"}},required:["schema","schemaFormat"]}:"Schema",correlationId:"CorrelationId",contentType:{type:"string"},name:{type:"string"},title:{type:"string"},summary:{type:"string"},description:{type:"string"},tags:"TagList",externalDocs:"ExternalDocs",bindings:"MessageBindings",examples:"MessageExampleList",traits:"MessageTraitList"},additionalProperties:{}},vze={properties:{tags:"TagList",title:{type:"string"},summary:{type:"string"},description:{type:"string"},externalDocs:"ExternalDocs",security:"SecuritySchemeList",bindings:"OperationBindings"},required:[]},bze={properties:{headers:t=>typeof t=="function"||typeof t=="object"&&t?{properties:{schema:"Schema",schemaFormat:{type:"string"}}}:"Schema",correlationId:"CorrelationId",contentType:{type:"string"},name:{type:"string"},title:{type:"string"},summary:{type:"string"},description:{type:"string"},tags:"TagList",externalDocs:"ExternalDocs",bindings:"MessageBindings",examples:"MessageExampleList"},additionalProperties:{}},Oze={properties:{action:{type:"string",enum:["send","receive"]},channel:"Channel",title:{type:"string"},tags:"TagList",summary:{type:"string"},description:{type:"string"},externalDocs:"ExternalDocs",operationId:{type:"string"},security:"SecuritySchemeList",bindings:"OperationBindings",traits:"OperationTraitList",messages:"MessageList",reply:"OperationReply"},required:["action","channel"]},xze={properties:{channel:"Channel",messages:"MessageList",address:"OperationReplyAddress"}},Sze={properties:{location:{type:"string"},description:{type:"string"}},required:["location"]},wze={properties:{messages:"NamedMessages",parameters:"NamedParameters",schemas:"NamedSchemas",replies:"NamedOperationReplies",replyAddresses:"NamedOperationRelyAddresses",correlationIds:"NamedCorrelationIds",messageTraits:"NamedMessageTraits",operationTraits:"NamedOperationTraits",tags:"NamedTags",externalDocs:"NamedExternalDocs",securitySchemes:"NamedSecuritySchemes",servers:"ServerMap",serverVariables:"ServerVariablesMap",channels:"NamedChannels",operations:"NamedOperations",serverBindings:"ServerBindings",channelBindings:"ChannelBindings",operationBindings:"OperationBindings",messageBindings:"MessageBindings"}},Cze={properties:{refreshUrl:{type:"string"},availableScopes:{type:"object",additionalProperties:{type:"string"}},authorizationUrl:{type:"string"}},required:["authorizationUrl","availableScopes"]},Pze={properties:{refreshUrl:{type:"string"},availableScopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["tokenUrl","availableScopes"]},kze={properties:{refreshUrl:{type:"string"},availableScopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["tokenUrl","availableScopes"]},$ze={properties:{refreshUrl:{type:"string"},authorizationUrl:{type:"string"},availableScopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["authorizationUrl","tokenUrl","availableScopes"]},Eze={properties:{type:{enum:["userPassword","apiKey","X509","symmetricEncryption","asymmetricEncryption","httpApiKey","http","oauth2","openIdConnect","plain","scramSha256","scramSha512","gssapi"]},description:{type:"string"},name:{type:"string"},in:{type:"string",enum:["query","header","cookie","user","password"]},scheme:{type:"string"},bearerFormat:{type:"string"},flows:"SecuritySchemeFlows",openIdConnectUrl:{type:"string"},scopes:{type:"array",items:{type:"string"}}},required(t){switch(t==null?void 0:t.type){case"apiKey":return["type","in"];case"httpApiKey":return["type","name","in"];case"http":return["type","scheme"];case"oauth2":return["type","flows"];case"openIdConnect":return["type","openIdConnectUrl"];default:return["type"]}},allowed(t){switch(t==null?void 0:t.type){case"apiKey":return["type","in","description"];case"httpApiKey":return["type","name","in","description"];case"http":return["type","scheme","bearerFormat","description"];case"oauth2":return["type","flows","description","scopes"];case"openIdConnect":return["type","openIdConnectUrl","description","scopes"];default:return["type","description"]}},extensionsPrefix:"x-"},Aze={...F6,CorrelationId:j8,SecuritySchemeFlows:V8,ServerVariable:T8,Contact:_8,License:R8,MessageExample:D8,Tag:E8,Dependencies:z8,Schema:M8,Discriminator:Q8,DiscriminatorMapping:L8,SchemaProperties:N8,ServerMap:I8,ExternalDocs:A8,Root:fze,Channel:hze,Parameter:mze,Info:gze,Server:pze,MessageTrait:bze,Operation:Oze,OperationReply:xze,OperationReplyAddress:Sze,Components:wze,ImplicitFlow:Cze,PasswordFlow:Pze,ClientCredentials:kze,AuthorizationCode:$ze,SecurityScheme:Eze,Message:yze,OperationTrait:vze,ServerVariablesMap:Ge("ServerVariable"),NamedTags:Ge("Tag"),NamedExternalDocs:Ge("ExternalDocs"),NamedChannels:Ge("Channel"),ParametersMap:Ge("Parameter"),NamedOperations:Ge("Operation"),NamedOperationReplies:Ge("OperationReply"),NamedOperationRelyAddresses:Ge("OperationReplyAddress"),NamedSchemas:Ge("Schema"),NamedMessages:Ge("Message"),NamedMessageTraits:Ge("MessageTrait"),NamedOperationTraits:Ge("OperationTrait"),NamedParameters:Ge("Parameter"),NamedSecuritySchemes:Ge("SecurityScheme"),NamedCorrelationIds:Ge("CorrelationId"),ServerList:Ke("Server"),SecuritySchemeList:Ke("SecurityScheme"),MessageList:Ke("Message"),OperationTraitList:Ke("OperationTrait"),MessageTraitList:Ke("MessageTrait"),MessageExampleList:Ke("MessageExample"),TagList:Ke("Tag")},W6={hide:{type:"boolean",default:!1},component:{type:"string",enum:["radio","checkbox"],default:"checkbox"},label:{type:"string"},items:{type:"array",items:{type:"string"}}},_f={type:"object",properties:W6,additionalProperties:!1},Ize={type:"object",properties:{hide:{type:"boolean",default:!1},label:{type:"string"},placeholder:{type:"string"}},additionalProperties:!1},hS={type:"object",properties:{hide:{type:"boolean",default:!1},type:{type:"string",enum:["rating","sentiment","comment","reasons","mood","scale"],default:"sentiment"},settings:{type:"object",properties:{label:{type:"string"},submitText:{type:"string"},buttonText:{type:"string"},component:{type:"string",enum:["radio","checkbox"],default:"checkbox"},items:{type:"array",items:{type:"string"},minItems:1},leftScaleLabel:{type:"string"},rightScaleLabel:{type:"string"},reasons:{type:"object",properties:Object.assign(Object.assign({},W6),{like:_f,dislike:_f,satisfied:_f,neutral:_f,dissatisfied:_f}),additionalProperties:!1},comment:{type:"object",properties:{hide:{type:"boolean",default:!1},label:{type:"string"},likeLabel:{type:"string"},dislikeLabel:{type:"string"},satisfiedLabel:{type:"string"},neutralLabel:{type:"string"},dissatisfiedLabel:{type:"string"}},additionalProperties:!1},optionalEmail:Ize},additionalProperties:!1}},additionalProperties:!1},Tze={type:"object",properties:{languages:{type:"array",items:{type:"object",properties:{lang:{type:"string",examples:["curl","JavaScript","Node.js","Python","Java8+Apache","Java","C#","C#+Newtonsoft","PHP","Go","Ruby","R","Payload"]},label:{type:"string"},options:{type:"object",properties:{indent:{type:"string"},withImports:{type:"boolean"},withComments:{type:"boolean"},binary:{type:"boolean"},credentials:{type:"string",enum:["omit","same-origin","include"]}},additionalProperties:!1}},required:["lang"],additionalProperties:!1}},skipOptionalParameters:{type:"boolean"},withOAuth2Call:{type:"boolean"}},additionalProperties:!1},U6={type:"array",items:{type:"object",properties:{title:{type:"string"},url:{type:"string"}},required:["url"],additionalProperties:!1}},hV={type:"object",properties:{licenseKey:{type:"string"},hideLoading:{type:"boolean"},disableRouter:{type:"boolean"},hideSidebar:{type:"boolean"},feedback:hS,hideReplay:{type:"boolean"},oAuth2RedirectURI:{type:"string",nullable:!0},corsProxyUrl:{type:"string"},sortRequiredPropsFirst:{type:"boolean"},sanitize:{type:"boolean"},hideDownloadButtons:{type:"boolean"},downloadUrls:U6,onlyRequiredInSamples:{type:"boolean"},generatedSamplesMaxDepth:{oneOf:[{type:"number"},{type:"string"}]},showExtensions:{oneOf:[{type:"boolean"},{type:"string"},{type:"array",items:{type:"string"}}]},hideSchemaTitles:{type:"boolean"},jsonSamplesExpandLevel:{oneOf:[{type:"number"},{type:"string"}]},schemasExpansionLevel:{oneOf:[{type:"number"},{type:"string"}]},mockServer:{type:"object",properties:{url:{type:"string"},position:{type:"string",enum:["first","last","replace","off"]},description:{type:"string"}}},maxDisplayedEnumValues:{type:"number"},schemaDefinitionsTagName:{type:"string"},layout:{type:"string",enum:["stacked","three-panel"]},hideInfoMetadata:{type:"boolean"},events:{type:"object"},skipBundle:{type:"boolean"},routingBasePath:{type:"string"},codeSamples:Tze,ignoreNamedSchemas:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},hidePropertiesPrefix:{type:"boolean"},excludeFromSearch:{type:"boolean"}},additionalProperties:!1},Zc={type:"object",properties:{includeByName:{type:"array",items:{type:"string"}},excludeByName:{type:"array",items:{type:"string"}}},additionalProperties:!1},_ze={type:"object",properties:{name:{type:"string"},items:Zc,queries:Zc,mutations:Zc,subscriptions:Zc,types:Zc,directives:Zc},required:["name"],additionalProperties:!1},Rze={properties:{requireExactGroups:{type:"boolean"},groups:{type:"array",items:_ze},otherItemsGroupName:{type:"string"}}},A0={type:"object",properties:{menu:{type:"object",properties:Object.assign({},Rze.properties),additionalProperties:!1},sidebar:{type:"object",properties:{hide:{type:"boolean"}}},downloadUrls:U6,apiLogo:{type:"object",properties:{imageUrl:{type:"string"},href:{type:"string"},altText:{type:"string"},backgroundColor:{type:"string"}}},jsonSamplesDepth:{type:"number"},samplesMaxInlineArgs:{type:"number"},licenseKey:{type:"string"},fieldExpandLevel:{type:"number"},baseUrlPath:{type:"string"},metadata:{type:"object",properties:{apiId:{type:"string"}},additionalProperties:!0},feedback:hS},additionalProperties:!1},jze={type:"object",properties:{label:{type:"string"},lang:{enum:["curl","C#","Go","Java","Java8+Apache","JavaScript","Node.js","PHP","Python","R","Ruby"]}},required:["lang"]},Dze={type:"object",properties:{enum:{type:"string"},enumSingleValue:{type:"string"},enumArray:{type:"string"},default:{type:"string"},deprecated:{type:"string"},example:{type:"string"},examples:{type:"string"},nullable:{type:"string"},recursive:{type:"string"},arrayOf:{type:"string"},webhook:{type:"string"},authorizations:{type:"string"},tryItAuthBasicUsername:{type:"string"},tryItAuthBasicPassword:{type:"string"}}},pV={type:"object",properties:{label:{type:"string"},link:{type:"string"},target:{type:"string"}},required:["label","link"]},Mze={type:"object",properties:{beforeInfo:{type:"array",items:pV},end:{type:"array",items:pV}}},Nl={type:"object",properties:{main:{type:"string"},light:{type:"string"},dark:{type:"string"},contrastText:{type:"string"}}},Vm={type:"object",properties:{backgroundColor:{type:"string"},borderColor:{type:"string"},color:{type:"string"},tabTextColor:{type:"string"}}},Nze={type:"object",properties:pS(Nl.properties,["light","dark"])},Lze={type:"object",properties:{basic:{type:"string"},delete:{type:"string"},get:{type:"string"},head:{type:"string"},link:{type:"string"},options:{type:"string"},patch:{type:"string"},post:{type:"string"},put:{type:"string"}}},Qze={type:"object",properties:{error:Vm,info:Vm,redirect:Vm,success:Vm}},Vze={type:"object",properties:Ud(Nl.properties,["dark"])},zze={type:"object",properties:{primary:{type:"string"},secondary:{type:"string"},light:{type:"string"}}},Bze={type:"object",properties:{accent:Nl,border:Nze,error:Nl,http:Lze,primary:Nl,responses:Qze,secondary:Vze,success:Nl,text:zze,tonalOffset:{type:"number"},warning:Nl}},zm={type:"object",properties:{fontSize:{type:"string"},padding:{type:"string"},minWidth:{type:"string"}}},qze={type:"object",properties:{small:zm,medium:zm,large:zm,xlarge:zm}},ds={type:"object",properties:{fontFamily:{type:"string"},fontSize:{type:"string"},fontWeight:{type:"string"},lineHeight:{type:"string"}}},Fze={type:"object",properties:Object.assign(Object.assign({},Ud(ds.properties,["fontSize","lineHeight"])),{borderRadius:{type:"string"},hoverStyle:{type:"string"},boxShadow:{type:"string"},hoverBoxShadow:{type:"string"},sizes:qze})},gV={type:"object",properties:pS(ds.properties,["fontSize","lineHeight"])},Wze={type:"object",properties:{medium:gV,small:gV}},Uze={type:"object",properties:Object.assign(Object.assign({},Ud(ds.properties,["fontSize","lineHeight"])),{borderRadius:{type:"string"},color:{type:"string"},sizes:Wze})},Xze={type:"object",properties:{top:{type:"string"},width:{type:"string"},height:{type:"string"}}},Zze={type:"object",properties:{borderRadius:{type:"string"},backgroundColor:{type:"string"}}},mV={type:"object",properties:{fullWidth:{type:"boolean"}}},Gze={type:"object",properties:{buttons:Fze,httpBadges:Uze,layoutControls:Xze,panels:Zze,tryItButton:mV,tryItSendButton:mV}},I0={type:"object",properties:{small:{type:"string"},medium:{type:"string"},large:{type:"string"}}},Yze={type:"object",properties:{maxWidth:I0}},Hze={type:"object",properties:{maxWidth:I0,middlePanelMaxWidth:I0}},Jze={type:"object",properties:{showDarkRightPanel:{type:"boolean"},stacked:Yze,"three-panel":Hze}},yV={type:"object",properties:{backgroundColor:{type:"string"},border:{type:"string"}}},Kze={type:"object",properties:{breakFieldNames:{type:"boolean"},caretColor:{type:"string"},caretSize:{type:"string"},constraints:yV,defaultDetailsWidth:{type:"string"},examples:yV,labelsTextSize:{type:"string"},linesColor:{type:"string"},nestedBackground:{type:"string"},nestingSpacing:{type:"string"},requireLabelColor:{type:"string"},typeNameColor:{type:"string"},typeTitleColor:{type:"string"}}},X6={type:"object",properties:{subItemsColor:{type:"string"},textTransform:{type:"string"},fontWeight:{type:"string"}}},eBe={type:"object",properties:pS(X6.properties,["textTransform"])},tBe={type:"object",properties:{unit:{type:"number"},paddingHorizontal:{type:"string"},paddingVertical:{type:"string"},offsetTop:{type:"string"},offsetLeft:{type:"string"},offsetNesting:{type:"string"}}},rBe={type:"object",properties:Object.assign(Object.assign({},Ud(ds.properties,["fontWeight","lineHeight"])),{activeBgColor:{type:"string"},activeTextColor:{type:"string"},backgroundColor:{type:"string"},borderRadius:{type:"string"},breakPath:{type:"boolean"},caretColor:{type:"string"},caretSize:{type:"string"},groupItems:X6,level1items:eBe,rightLineColor:{type:"string"},separatorLabelColor:{type:"string"},showAtBreakpoint:{type:"string"},spacing:tBe,textColor:{type:"string"},width:{type:"string"}})},Bm={type:"object",properties:Object.assign(Object.assign({},ds.properties),{color:{type:"string"},transform:{type:"string"}})},nBe={type:"object",properties:Object.assign(Object.assign({},ds.properties),{backgroundColor:{type:"string"},color:{type:"string"},wordBreak:{type:"string",enum:["break-all","break-word","keep-all","normal","revert","unset","inherit","initial"]},wrap:{type:"boolean"}})},iBe={type:"object",properties:Ud(ds.properties,["fontSize"])},oBe={type:"object",properties:{color:{type:"string"},hover:{type:"string"},textDecoration:{type:"string"},hoverTextDecoration:{type:"string"},visited:{type:"string"}}},sBe={type:"object",properties:Object.assign(Object.assign({code:nBe,fieldName:ds},pS(ds.properties,["fontSize","fontFamily"])),{fontWeightBold:{type:"string"},fontWeightLight:{type:"string"},fontWeightRegular:{type:"string"},heading1:Bm,heading2:Bm,heading3:Bm,headings:iBe,lineHeight:{type:"string"},links:oBe,optimizeSpeed:{type:"boolean"},rightPanelHeading:Bm,smoothing:{type:"string",enum:["auto","none","antialiased","subpixel-antialiased","grayscale"]}})},aBe={type:"object",properties:Object.assign({color:{type:"string"}},Ud(ds.properties,["fontWeight"]))},lBe={type:"object",properties:{backgroundColor:{type:"string"},borderRadius:{type:"string"},tokens:aBe}},cBe={type:"object",properties:{gutter:{type:"string"},maxHeight:{type:"string"},maxWidth:{type:"string"}}},uBe={type:"object",properties:{backgroundColor:{type:"string"},color:{type:"string"}}},vV={type:"object",properties:{custom:{type:"string"}}},dBe={type:"object",properties:{DownloadButton:vV,NextSectionButton:vV}},fBe={type:"object",properties:{backgroundColor:{type:"string"},panelBackgroundColor:{type:"string"},panelControlsBackgroundColor:{type:"string"},showAtBreakpoint:{type:"string"},textColor:{type:"string"},width:{type:"string"}}},hBe={type:"object",properties:{borderRadius:{type:"string"}}},pBe={type:"object",properties:{sectionHorizontal:{type:"number"},sectionVertical:{type:"number"},unit:{type:"number"}}},gBe={type:"object",properties:{breakpoints:I0,codeBlock:lBe,colors:Bze,components:Gze,layout:Jze,logo:cBe,fab:uBe,overrides:dBe,rightPanel:fBe,schema:Kze,shape:hBe,sidebar:rBe,spacing:pBe,typography:sBe,links:{properties:{color:{type:"string"}}},codeSample:{properties:{backgroundColor:{type:"string"}}}}},mBe={type:"object",properties:{skipOptionalParameters:{type:"boolean"},languages:{type:"array",items:jze}},required:["languages"]},yBe={properties:{theme:gBe,ctrlFHijack:{type:"boolean"},defaultSampleLanguage:{type:"string"},disableDeepLinks:{type:"boolean"},disableSearch:{type:"boolean"},disableSidebar:{type:"boolean"},downloadDefinitionUrl:{type:"string"},expandDefaultServerVariables:{type:"boolean"},enumSkipQuotes:{type:"boolean"},expandDefaultRequest:{type:"boolean"},expandDefaultResponse:{type:"boolean"},expandResponses:{type:"string"},expandSingleSchemaField:{type:"boolean"},generateCodeSamples:mBe,generatedPayloadSamplesMaxDepth:{type:"number"},hideDownloadButton:{type:"boolean"},hideHostname:{type:"boolean"},hideInfoSection:{type:"boolean"},hideLogo:{type:"boolean"},hideRequestPayloadSample:{type:"boolean"},hideRightPanel:{type:"boolean"},hideSchemaPattern:{type:"boolean"},hideSingleRequestSampleTab:{type:"boolean"},hideSecuritySection:{type:"boolean"},hideTryItPanel:{type:"boolean"},hideFab:{type:"boolean"},hideOneOfDescription:{type:"boolean"},htmlTemplate:{type:"string"},jsonSampleExpandLevel:{oneOf:[{type:"number",minimum:1},{type:"string"}]},labels:Dze,menuToggle:{type:"boolean"},nativeScrollbars:{type:"boolean"},noAutoAuth:{type:"boolean"},onDeepLinkClick:{type:"object"},pagination:{enum:["none","section","item"]},pathInMiddlePanel:{type:"boolean"},payloadSampleIdx:{type:"number",minimum:0},requiredPropsFirst:{type:"boolean"},routingStrategy:{type:"string"},samplesTabsMaxCount:{type:"number"},schemaExpansionLevel:{oneOf:[{type:"number",minimum:0},{type:"string"}]},minCharacterLengthToInitSearch:{type:"number",minimum:1},maxResponseHeadersToShowInTryIt:{type:"number",minimum:0},scrollYOffset:{oneOf:[{type:"number"},{type:"string"}]},searchAutoExpand:{type:"boolean"},searchFieldLevelBoost:{type:"number",minimum:0},searchMaxDepth:{type:"number",minimum:1},searchMode:{type:"string",enum:["default","path-only"]},searchOperationTitleBoost:{type:"number"},searchTagTitleBoost:{type:"number"},sendXUserAgentInTryIt:{type:"boolean"},showChangeLayoutButton:{type:"boolean"},showConsole:{type:"boolean"},showNextButton:{type:"boolean"},showRightPanelToggle:{type:"boolean"},showSecuritySchemeType:{type:"boolean"},showWebhookVerb:{type:"boolean"},showObjectSchemaExamples:{type:"boolean"},disableTryItRequestUrlEncoding:{type:"boolean"},sidebarLinks:Mze,sideNavStyle:{type:"string",enum:["summary-only","path-first","id-only","path-only"]},simpleOneOfTypeLabel:{type:"boolean"},sortEnumValuesAlphabetically:{type:"boolean"},sortOperationsAlphabetically:{type:"boolean"},sortPropsAlphabetically:{type:"boolean"},sortTagsAlphabetically:{type:"boolean"},suppressWarnings:{type:"boolean"},unstable_externalDescription:{type:"boolean"},unstable_ignoreMimeParameters:{type:"boolean"},untrustedDefinition:{type:"boolean"},showAccessMode:{type:"boolean"},preserveOriginalExtensionsName:{type:"boolean"},markdownHeadingsAnchorLevel:{type:"number"}}};function pS(t,e){return Object.fromEntries(e.filter(r=>r in t).map(r=>[r,t[r]]))}function Ud(t,e){return Object.fromEntries(Object.entries(t).filter(([r])=>!e.includes(r)))}const ya={type:"object",additionalProperties:{oneOf:[{type:"string"},{type:"object"}]}},XT={rules:ya,oas2Rules:ya,oas3_0Rules:ya,oas3_1Rules:ya,async2Rules:ya,async3Rules:ya,arazzo1Rules:ya,overlay1Rules:ya},ZT={preprocessors:{type:"object",additionalProperties:!0},oas2Preprocessors:{type:"object",additionalProperties:!0},oas3_0Preprocessors:{type:"object",additionalProperties:!0},oas3_1Preprocessors:{type:"object",additionalProperties:!0},async2Preprocessors:{type:"object",additionalProperties:!0},async3Preprocessors:{type:"object",additionalProperties:!0},arazzo1Preprocessors:{type:"object",additionalProperties:!0},overlay1Preprocessors:{type:"object",additionalProperties:!0}},GT={decorators:{type:"object",additionalProperties:!0},oas2Decorators:{type:"object",additionalProperties:!0},oas3_0Decorators:{type:"object",additionalProperties:!0},oas3_1Decorators:{type:"object",additionalProperties:!0},async2Decorators:{type:"object",additionalProperties:!0},async3Decorators:{type:"object",additionalProperties:!0},arazzo1Decorators:{type:"object",additionalProperties:!0},overlay1Decorators:{type:"object",additionalProperties:!0}},Zr={type:"object",properties:{hide:{type:"boolean"}},additionalProperties:!1},bV={type:"object",properties:{src:{type:"string"},async:{type:"boolean"},crossorigin:{type:"string"},defer:{type:"boolean"},fetchpriority:{type:"string"},integrity:{type:"string"},module:{type:"boolean"},nomodule:{type:"boolean"},nonce:{type:"string"},referrerpolicy:{type:"string"},type:{type:"string"}},required:["src"],additionalProperties:!0},W1={type:"object",properties:{page:{type:"string"},directory:{type:"string"},disconnect:{type:"boolean",default:!1},group:{type:"string"},label:{type:"string"},href:{type:"string"},external:{type:"boolean"},labelTranslationKey:{type:"string"},groupTranslationKey:{type:"string"},icon:{oneOf:[{type:"string"},{type:"object",properties:{srcSet:{type:"string"}},required:["srcSet"]}]},separator:{type:"string"},separatorLine:{type:"boolean"},linePosition:{type:"string",enum:["top","bottom"],default:"top"},version:{type:"string"},menuStyle:{type:"string",enum:["drilldown"]},expanded:{type:"string",const:"always"},selectFirstItemOnExpand:{type:"boolean"},flatten:{type:"boolean"},linkedSidebars:{type:"array",items:{type:"string"}},items:{type:"array",items:{type:"object",additionalProperties:!0}},rbac:{type:"object",additionalProperties:{type:"string"}}}},YT={type:"array",items:Object.assign(Object.assign({},W1),{properties:Object.assign(Object.assign({},W1.properties),{items:{type:"array",items:W1}})})},vBe={type:"object",properties:{name:{type:"string"},icon:{type:"string"},folder:{type:"string"}},additionalProperties:!1,required:["name","folder"]},bBe={type:"object",properties:{hide:{type:"boolean",default:!1},suggestions:{default:[],type:"array",items:{type:"string"}},prompt:{type:"string"}},additionalProperties:!1},OBe={type:"array",items:{type:"object",required:["name","field","type"],properties:{name:{type:"string"},field:{type:"string"},type:{type:"string",enum:["multi-select","select","tags"]}},additionalProperties:!1}},xBe={type:"object",properties:Object.assign({facets:OBe},Zr.properties),additionalProperties:!1},SBe={type:"object",properties:{page:{type:"string"},label:{type:"string"},labelTranslationKey:{type:"string"}},required:["page"]},Z6={type:"object",properties:{image:{type:"string"},srcSet:{type:"string"},altText:{type:"string"},link:{type:"string"},favicon:{type:"string"}},additionalProperties:!1},G6={type:"object",properties:Object.assign({items:YT},Zr.properties),additionalProperties:!1},Y6={type:"object",additionalProperties:vBe},H6={type:"object",properties:Object.assign({items:YT,copyrightText:{type:"string"},logo:Zr},Zr.properties),additionalProperties:!1},J6={type:"object",properties:Object.assign({separatorLine:{type:"boolean"},linePosition:{type:"string",enum:["top","bottom"],default:"bottom"}},Zr.properties),additionalProperties:!1},K6={type:"object",properties:{head:{type:"array",items:bV},body:{type:"array",items:bV}},additionalProperties:!1},eJ={type:"array",items:{type:"object",properties:{href:{type:"string"},as:{type:"string"},crossorigin:{type:"string"},fetchpriority:{type:"string"},hreflang:{type:"string"},imagesizes:{type:"string"},imagesrcset:{type:"string"},integrity:{type:"string"},media:{type:"string"},prefetch:{type:"string"},referrerpolicy:{type:"string"},rel:{type:"string"},sizes:{type:"string"},title:{type:"string"},type:{type:"string"}},required:["href"],additionalProperties:!0}},tJ={type:"object",properties:Object.assign({engine:{type:"string",enum:["flexsearch","typesense"],default:"flexsearch"},ai:bBe,filters:xBe,placement:{type:"string",default:"navbar"},shortcuts:{type:"array",items:{type:"string"},default:["⌘+K,ctrl+K"]},suggestedPages:{type:"array",items:SBe}},Zr.properties),additionalProperties:!1},rJ={type:"object",properties:Object.assign({ignoreDetection:{type:"boolean"},modes:{type:"array",items:{type:"string"},default:["light","dark"]}},Zr.properties),additionalProperties:!1},wBe={type:"object",properties:Object.assign(Object.assign({},Zr.properties),{items:{type:"array",items:{type:"string",enum:["copy","view","chatgpt","claude"]},default:["copy","view","chatgpt","claude"]}}),additionalProperties:!1},nJ={type:"object",properties:{nextButton:{type:"object",properties:Object.assign({text:{type:"string"}},Zr.properties),additionalProperties:!1,default:{}},previousButton:{type:"object",properties:Object.assign({text:{type:"string"}},Zr.properties),additionalProperties:!1,default:{}},actions:wBe},additionalProperties:!1},iJ={type:"object",properties:{elementFormat:{type:"string",default:"icon"},copy:{type:"object",properties:Object.assign({},Zr.properties),additionalProperties:!1,default:{hide:!1}},report:{type:"object",properties:Object.assign({tooltipText:{type:"string"},buttonText:{type:"string"},label:{type:"string"}},Zr.properties),additionalProperties:!1,default:{hide:!1}},expand:{type:"object",properties:Object.assign({},Zr.properties),additionalProperties:!1,default:{hide:!1}},collapse:{type:"object",properties:Object.assign({},Zr.properties),additionalProperties:!1,default:{hide:!1}}},additionalProperties:!1},oJ={type:"object",properties:{frontMatterKeysToResolve:{type:"array",items:{type:"string"},default:["image","links"]},partialsFolders:{type:"array",items:{type:"string"},default:["_partials"]},lastUpdatedBlock:{type:"object",properties:Object.assign({format:{type:"string",enum:["timeago","iso","long","short"],default:"timeago"},locale:{type:"string"}},Zr.properties),additionalProperties:!1,default:{}},toc:{type:"object",properties:Object.assign({header:{type:"string",default:"On this page"},depth:{type:"integer",default:3,minimum:1}},Zr.properties),additionalProperties:!1,default:{}},editPage:{type:"object",properties:Object.assign({baseUrl:{type:"string"}},Zr.properties),additionalProperties:!1,default:{}}},additionalProperties:!1,default:{}},T0=Object.assign(Object.assign({},hV),{properties:Object.assign(Object.assign({},hV.properties),yBe.properties)}),CBe={type:"object",properties:{includeInDevelopment:{type:"boolean"},scriptUrl:{type:"string"},pageViewEventName:{type:"string"}},additionalProperties:!1,required:["scriptUrl"]},PBe={type:"object",properties:{includeInDevelopment:{type:"boolean"},apiKey:{type:"string"},head:{type:"boolean"},respectDNT:{type:"boolean"},exclude:{type:"array",items:{type:"string"}},outboundClickEventName:{type:"string"},pageViewEventName:{type:"string"},amplitudeConfig:{type:"object",additionalProperties:!0}},additionalProperties:!1,required:["apiKey"]},kBe={type:"object",properties:{includeInDevelopment:{type:"boolean"},orgId:{type:"string"}},additionalProperties:!1,required:["orgId"]},$Be={type:"object",properties:{includeInDevelopment:{type:"boolean"},appId:{type:"string"}},additionalProperties:!1,required:["appId"]},EBe={type:"object",properties:{includeInDevelopment:{type:"boolean"},writeKey:{type:"string",minLength:10},trackPage:{type:"boolean"},dataPlaneUrl:{type:"string"},controlPlaneUrl:{type:"string"},sdkUrl:{type:"string"},loadOptions:{type:"object",additionalProperties:!0}},additionalProperties:!1,required:["writeKey"]},ABe={type:"object",properties:{includeInDevelopment:{type:"boolean"},writeKey:{type:"string",minLength:10},trackPage:{type:"boolean"},includeTitleInPageCall:{type:"boolean"},host:{type:"string"}},additionalProperties:!1,required:["writeKey"]},IBe={type:"object",properties:{includeInDevelopment:{type:"boolean"},trackingId:{type:"string"},gtmAuth:{type:"string"},gtmPreview:{type:"string"},defaultDataLayer:{},dataLayerName:{type:"string"},enableWebVitalsTracking:{type:"boolean"},selfHostedOrigin:{type:"string"},pageViewEventName:{type:"string"}},additionalProperties:!1,required:["trackingId"]},sJ={type:"object",properties:{includeInDevelopment:{type:"boolean"},trackingId:{type:"string"},conversionId:{type:"string"},floodlightId:{type:"string"},optimizeId:{type:"string"},exclude:{type:"array",items:{type:"string"}}},additionalProperties:!1,required:["trackingId"]},TBe={type:"object",properties:{includeInDevelopment:{type:"boolean"},trackingId:{type:"string"},conversionId:{type:"string"},floodlightId:{type:"string"},head:{type:"boolean"},respectDNT:{type:"boolean"},exclude:{type:"array",items:{type:"string"}},optimizeId:{type:"string"},anonymizeIp:{type:"boolean"},cookieExpires:{type:"number"},trackers:{type:"object",additionalProperties:sJ}},additionalProperties:!1,required:["trackingId"]},aJ={type:"object",properties:{adobe:CBe,amplitude:PBe,fullstory:kBe,heap:$Be,rudderstack:EBe,segment:ABe,gtm:IBe,ga:TBe}},lJ={type:"object",properties:Object.assign({items:{type:"array",items:{type:"object",properties:{label:{type:"string"},external:{type:"boolean"},link:{type:"string"},separatorLine:{type:"boolean"}},additionalProperties:!0},default:[]},hideLoginButton:{type:"boolean"}},Zr.properties),additionalProperties:!1},cJ={type:"object",properties:{hide:{type:"boolean"},showForUnversioned:{type:"boolean"}}},uJ={type:"object",properties:{hide:{type:"boolean"},prefixItems:{type:"array",items:{type:"object",properties:{label:{type:"string"},labelTranslationKey:{type:"string"},page:{type:"string"},icon:{type:"string"}},additionalProperties:!1,default:{}}}},additionalProperties:!1},_Be={type:"object",additionalProperties:!1,required:["title","property"],properties:{type:{type:"string",enum:["select","checkboxes","date-range"],default:"checkboxes"},title:{type:"string"},titleTranslationKey:{type:"string"},property:{type:"string"},parentFilter:{type:"string"},valuesMapping:{type:"object",additionalProperties:{type:"string"}},missingCategoryName:{type:"string"},missingCategoryNameTranslationKey:{type:"string"},options:{type:"array",items:{type:"string"}}}},RBe={type:"object",additionalProperties:!0,required:["slug","items"],properties:{slug:{type:"string"},filters:{type:"array",items:_Be},groupByFirstFilter:{type:"boolean"},filterValuesCasing:{type:"string",enum:["sentence","original","lowercase","uppercase"]},items:YT,requiredPermission:{type:"string"},separateVersions:{type:"boolean"},title:{type:"string"},titleTranslationKey:{type:"string"},description:{type:"string"},descriptionTranslationKey:{type:"string"}}},_0={type:"object",patternProperties:{".*":RBe}},dJ={type:"object",additionalProperties:!0,required:[],properties:{ignoreNonCompliant:{type:"boolean",default:!1},teamMetadataProperty:{type:"object",properties:{property:{type:"string"},label:{type:"string"},default:{type:"string"}}},levels:{type:"array",items:{type:"object",required:["name"],properties:Object.assign(Object.assign(Object.assign({name:{type:"string"},color:{type:"string"},extends:{type:"array",items:{type:"string"}}},XT),ZT),GT),additionalProperties:!1}},targets:{type:"array",items:{type:"object",required:["where"],properties:{minimumLevel:{type:"string"},rules:{type:"object",additionalProperties:!0},where:{type:"object",required:["metadata"],properties:{metadata:{type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1}},additionalProperties:!1}},ignore:{type:"array",items:{type:"string"}},fromProjectUrl:{type:"string",format:"uri"}}},jBe={type:"object",required:["key"],properties:{key:{type:"string"}},additionalProperties:!1},DBe={type:"object",required:["type"],properties:{type:{type:"string"}},additionalProperties:!1},MBe={type:"object",required:["property","title"],properties:{property:{type:"string"},hide:{type:"boolean"},label:{type:"string"},options:{type:"array",items:{type:"string"}},type:{type:"string",enum:["select","checkboxes","date-range"],default:"checkboxes"},title:{type:"string"},titleTranslationKey:{type:"string"},parentFilter:{type:"string"},valuesMapping:{type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1},Os={type:"object",properties:{slug:{type:"string"},hide:{type:"boolean"},includes:{type:"array",items:DBe},excludes:{type:"array",items:jBe},filters:{type:"array",items:MBe},titleTranslationKey:{type:"string"},descriptionTranslationKey:{type:"string"},catalogSwitcherLabelTranslationKey:{type:"string"}},additionalProperties:!1},fJ={type:"object",properties:{catalogs:{type:"object",properties:{all:Os,services:Os,domains:Os,teams:Os,users:Os,apiDescriptions:Os,dataSchemas:Os,apiOperations:Os},additionalProperties:Os}},additionalProperties:!1},Mo={type:"object",properties:{imports:{type:"array",items:{type:"string"}},logo:Z6,navbar:G6,products:Y6,footer:H6,sidebar:J6,scripts:K6,links:eJ,feedback:hS,search:tJ,colorMode:rJ,navigation:nJ,codeSnippet:iJ,markdown:oJ,openapi:T0,graphql:A0,analytics:aJ,userMenu:lJ,versionPicker:cJ,breadcrumbs:uJ,catalog:_0,entitiesCatalog:fJ,catalogClassic:_0,scorecard:dJ},additionalProperties:!0},NBe="https://redocly.com/sso/teams";var R0;(function(t){t.OIDC="OIDC",t.SAML2="SAML2"})(R0||(R0={}));var j0;(function(t){t.SERVICE_ACCOUNT="SERVICE_ACCOUNT",t.OAUTH2="OAUTH2"})(j0||(j0={}));var OV;(function(t){t.STACKED="stacked",t.THREE_PANEL="three-panel"})(OV||(OV={}));function wE(t,e){return Object.fromEntries(Object.entries(t).map(([r,n])=>{if(r!==e)return typeof n!="object"||!n?[r,n]:Array.isArray(n)?[r,n.map(i=>typeof i=="object"?wE(i,e):i)]:[r,wE(n,e)]}).filter(Boolean))}const LBe={type:"object",additionalProperties:{type:"string"}},QBe={type:"object",additionalProperties:!1,patternProperties:{"^[a-zA-Z0-9_-]+$":{type:"string",pattern:"^https?://[^\\s/$.?#].[^\\s]*$"}}},qm={type:"string",enum:["error","warn","off"]},VBe={type:"object",additionalProperties:!1,properties:{schemaCheck:qm,statusCodeCheck:qm,contentTypeCheck:qm,successCriteriaCheck:qm}},zBe={type:"object",properties:{event:{type:"string",enum:["schedule"]},interval:{type:"string",enum:["1m","2m","5m","10m","15m","30m","1h","3h","6h","12h","1d","7d"]}},required:["event"],additionalProperties:!1},BBe={type:"object",properties:{event:{type:"string",enum:["build"]}},required:["event"],additionalProperties:!1},qBe={type:"object",properties:{ignoreLint:{oneOf:[{type:"boolean",default:!1},{type:"object",additionalProperties:{type:"boolean"}}]},ignoreLinkChecker:{type:"boolean"},ignoreMarkdocErrors:{type:"boolean"},ignoreRespectMonitoring:{type:"boolean"},jobs:{type:"array",items:{type:"object",properties:{path:{type:"string",pattern:"^(?!\\.\\./)(/[a-zA-Z0-9_\\-\\./]+|./[a-zA-Z0-9_\\-\\./]+|[a-zA-Z0-9_\\-\\./]+)$"},agent:{type:"string",enum:["respect"]},trigger:{oneOf:[zBe,BBe]},inputs:LBe,servers:QBe,severity:VBe},required:["path","trigger","agent"],additionalProperties:!1}}},additionalProperties:!1},FBe={type:"object",properties:{end_session_endpoint:{type:"string"},token_endpoint:{type:"string"},authorization_endpoint:{type:"string"},jwks_uri:{type:"string"}},required:["token_endpoint","authorization_endpoint"],additionalProperties:!0},WBe={type:"object",properties:{type:{type:"string",const:R0.OIDC},title:{type:"string"},pkce:{type:"boolean",default:!1},configurationUrl:{type:"string",minLength:1},configuration:FBe,clientId:{type:"string",minLength:1},clientSecret:{type:"string",minLength:0},teamsClaimName:{type:"string"},teamsClaimMap:{type:"object",additionalProperties:{type:"string"}},defaultTeams:{type:"array",items:{type:"string"}},scopes:{type:"array",items:{type:"string"}},tokenExpirationTime:{type:"number"},authorizationRequestCustomParams:{type:"object",additionalProperties:{type:"string"}},introspectEndpoint:{type:"string"},tokenRequestCustomParams:{type:"object",additionalProperties:{type:"string"}},audience:{type:"array",items:{type:"string"}}},required:["type","clientId"],oneOf:[{required:["configurationUrl"]},{required:["configuration"]}],additionalProperties:!1},UBe={type:"object",properties:{type:{type:"string",const:R0.SAML2},title:{type:"string"},issuerId:{type:"string"},entityId:{type:"string"},ssoUrl:{type:"string"},x509PublicCert:{type:"string"},teamsAttributeName:{type:"string",default:NBe},teamsAttributeMap:{type:"object",additionalProperties:{type:"string"}},defaultTeams:{type:"array",items:{type:"string"}}},additionalProperties:!1,required:["type","issuerId","ssoUrl","x509PublicCert"]},XBe={oneOf:[WBe,UBe],discriminator:{propertyName:"type"}},ZBe={type:"object",additionalProperties:XBe},GBe={oneOf:[{type:"array",items:{type:"string",enum:["REDOCLY","CORPORATE","GUEST"]},uniqueItems:!0},{type:"string",enum:["REDOCLY","CORPORATE","GUEST"]}]},YBe={type:"object",properties:{to:{type:"string"},type:{type:"number",default:301}},additionalProperties:!1},HBe={type:"object",additionalProperties:YBe,default:{}},hJ={type:"object",properties:Object.assign(Object.assign(Object.assign(Object.assign({root:{type:"string"},output:{type:"string",pattern:"(.ya?ml|.json)$"},rbac:{type:"object",additionalProperties:!0},openapi:T0,graphql:A0,theme:{type:"object",properties:{openapi:T0,graphql:A0},additionalProperties:!1},title:{type:"string"},metadata:{type:"object",additionalProperties:!0}},XT),ZT),GT),{extends:{type:"array",items:{type:"string"}}}),required:["root"]},JBe={type:"object",additionalProperties:!0},KBe={type:"object",additionalProperties:{type:"object",additionalProperties:!0}},xV={type:"object",properties:{hide:{type:"boolean",default:!1},title:{type:"string"},description:{type:"string"},details:{type:"object",properties:{path:{type:"string"},content:{type:"string"}},additionalProperties:!1},excludeFiles:{type:"array",items:{type:"string"},default:[]},sections:{type:"array",items:{type:"object",properties:{title:{type:"string"},description:{type:"string"},includeFiles:{type:"array",items:{type:"string"},default:[]},excludeFiles:{type:"array",items:{type:"string"},default:[]}},required:["title"],additionalProperties:!1}}},default:{hide:!1,title:void 0,description:void 0,details:void 0,sections:[{title:"Table of contents",includeFiles:["**/*"],excludeFiles:[]}]},additionalProperties:!1},SV={type:"object",properties:{title:{type:"string"},description:{type:"string"},siteUrl:{type:"string"},image:{type:"string"},keywords:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},lang:{type:"string"},jsonLd:{type:"object"},meta:{type:"array",items:{type:"object",properties:{name:{type:"string"},content:{type:"string"}},required:["name","content"],additionalProperties:!1}},llmstxt:xV},default:{llmstxt:xV.default},additionalProperties:!1},eqe={type:"object",properties:{folders:{type:"array",items:{type:"string"}}},additionalProperties:!1},xl={type:"object",additionalProperties:{type:"string"}},tqe={type:"object",properties:{teamNamePatterns:{type:"array",items:{type:"string"}},teamFolders:{type:"array",items:{type:"string"}},teamFoldersBaseRoles:xl,cms:xl,reunite:xl,features:{type:"object",properties:{aiSearch:xl},additionalProperties:!1},content:{type:"object",properties:{"**":xl},additionalProperties:xl}},additionalProperties:xl},rqe={type:"object",properties:{static:{type:"string"}},additionalProperties:!1,required:["static"]},nqe={type:"object",properties:{idp:{type:"string"}},additionalProperties:!1,required:["idp"]},iqe={type:"object",properties:{type:{type:"string",const:"GRAVITEE"},apiBaseUrl:{type:"string"},env:{type:"string"},allowApiProductsOutsideCatalog:{type:"boolean",default:!1},stage:{type:"string",default:"non-production"},auth:{oneOf:[rqe,nqe]}},additionalProperties:!1,required:["type","apiBaseUrl"]},oqe={type:"object",properties:{type:{type:"string",const:j0.OAUTH2},tokenEndpoint:{type:"string"},clientId:{type:"string"},clientSecret:{type:"string"}},additionalProperties:!1,required:["type","tokenEndpoint","clientId","clientSecret"]},sqe={type:"object",properties:{type:{type:"string",const:j0.SERVICE_ACCOUNT},serviceAccountEmail:{type:"string"},serviceAccountPrivateKey:{type:"string"}},additionalProperties:!1,required:["type","serviceAccountEmail","serviceAccountPrivateKey"]},CE={type:"object",properties:{type:{type:"string",const:"APIGEE_X"},apiUrl:{type:"string"},stage:{type:"string",default:"non-production"},organizationName:{type:"string"},ignoreApiProducts:{type:"array",items:{type:"string"}},allowApiProductsOutsideCatalog:{type:"boolean",default:!1},auth:{type:"object",oneOf:[oqe,sqe],discriminator:{propertyName:"type"}}},additionalProperties:!1,required:["type","organizationName","auth"]},aqe=Object.assign(Object.assign({},CE),{properties:Object.assign(Object.assign({},CE.properties),{type:{type:"string",const:"APIGEE_EDGE"}})}),lqe={type:"object",oneOf:[CE,aqe,iqe],discriminator:{propertyName:"type"}},cqe={type:"object",required:["adapters"],additionalProperties:!1,properties:{adapters:{type:"array",items:lqe}}},wV={type:"object",properties:{defaultLocale:{type:"string"},locales:{type:"array",items:{type:"object",properties:{code:{type:"string"},name:{type:"string"}},required:["code"]}}},additionalProperties:!1,required:["defaultLocale"]},uqe={type:"object",properties:{name:{type:"string"},value:{type:"string"}},additionalProperties:!1,required:["name","value"]},PE={type:"object",properties:Object.assign(Object.assign(Object.assign(Object.assign({imports:{type:"array",items:{type:"string"}},licenseKey:{type:"string"},redirects:HBe,seo:SV,rbac:tqe,apiFunctions:eqe,requiresLogin:{type:"boolean"},responseHeaders:{type:"object",additionalProperties:{type:"array",items:uqe}},mockServer:{type:"object",properties:{off:{type:"boolean",default:!1},position:{type:"string",enum:["first","last","replace","off"],default:"first"},strictExamples:{type:"boolean",default:!1},errorIfForcedExampleNotFound:{type:"boolean",default:!1},description:{type:"string"}}},apis:{type:"object",additionalProperties:hJ},extends:{type:"array",items:{type:"string"}}},XT),GT),ZT),{ssoDirect:ZBe,sso:GBe,residency:{type:"string"},developerOnboarding:cqe,removeAttribution:{type:"boolean"},i18n:wV,l10n:wV,metadata:JBe,metadataGlobs:KBe,ignore:{type:"array",items:{type:"string"}},theme:Mo,reunite:qBe,logo:Z6,navbar:G6,products:Y6,footer:H6,sidebar:J6,scripts:K6,links:eJ,feedback:hS,search:tJ,colorMode:rJ,navigation:nJ,codeSnippet:iJ,markdown:oJ,openapi:T0,graphql:A0,analytics:aJ,userMenu:lJ,versionPicker:cJ,breadcrumbs:uJ,catalog:_0,entitiesCatalog:fJ,catalogClassic:_0,scorecard:dJ}),default:{redirects:{},seo:SV.default},additionalProperties:!0},dqe=Object.assign(Object.assign({},wE(PE,"default")),{additionalProperties:!1}),HT=Object.assign(Object.assign({$id:"root-redocly-config"},PE),{properties:Object.assign(Object.assign({plugins:{type:"array",items:{type:"string"}}},PE.properties),{env:{type:"object",additionalProperties:dqe}}),default:{},additionalProperties:!1}),CV={type:"object",properties:{logo:Mo.properties.logo,navbar:Mo.properties.navbar,footer:Mo.properties.footer,sidebar:Mo.properties.sidebar,search:Mo.properties.search,codeSnippet:Mo.properties.codeSnippet,breadcrumbs:Mo.properties.breadcrumbs,openapi:Mo.properties.openapi,feedback:Mo.properties.feedback,analytics:{type:"object",properties:{ga:sJ}}},additionalProperties:!0,default:{}};Object.assign(Object.assign({},CV.properties),{apis:{type:"object",additionalProperties:hJ},theme:CV});const fqe={properties:{overlay:{type:"string"},info:"Info",extends:{type:"string"},actions:"Actions"},required:["overlay","info","actions"],extensionsPrefix:"x-"},hqe={properties:{title:{type:"string"},version:{type:"string"}},required:["title","version"],extensionsPrefix:"x-"},pqe=Ke("Action"),gqe={properties:{target:{type:"string"},description:{type:"string"},update:{},remove:{type:"boolean"}},required:["target"],extensionsPrefix:"x-"},mqe={Root:fqe,Info:hqe,Actions:pqe,Action:gqe},PV=/^1\.0\.\d+(-.+)?$/,U1=["1.0.1"],Pb=["oas2","oas3_0","oas3_1","async2","async3","arazzo1","overlay1"],yqe={oas2:FVe,oas3_0:C8,oas3_1:VQe,async2:dze,async3:Aze,arazzo1:mVe,overlay1:mqe};function JT(t){if(!ht(t))throw new Error(`Document must be JSON object, got ${typeof t}`);if(t.openapi&&typeof t.openapi!="string")throw new Error(`Invalid OpenAPI version: should be a string but got "${typeof t.openapi}"`);if(typeof t.openapi=="string"&&t.openapi.startsWith("3.0"))return"oas3_0";if(typeof t.openapi=="string"&&t.openapi.startsWith("3.1"))return"oas3_1";if(t.swagger&&t.swagger==="2.0")return"oas2";if(t.openapi||t.swagger)throw new Error(`Unsupported OpenAPI version: ${t.openapi||t.swagger}`);if(typeof t.asyncapi=="string"&&t.asyncapi.startsWith("2."))return"async2";if(typeof t.asyncapi=="string"&&t.asyncapi.startsWith("3."))return"async3";if(t.asyncapi)throw new Error(`Unsupported AsyncAPI version: ${t.asyncapi}`);if(typeof t.arazzo=="string"&&PV.test(t.arazzo))return"arazzo1";if(typeof t.overlay=="string"&&PV.test(t.overlay))return"overlay1";throw new Error("Unsupported specification")}function pJ(t){return t==="oas2"?"oas2":t==="async2"?"async2":t==="async3"?"async3":t==="arazzo1"?"arazzo1":t==="overlay1"?"overlay1":"oas3"}function KT(t){return yqe[t]}var Fm={exports:{}},X1={},Sl={},Rf={},Z1={},G1={},Y1={},kV;function D0(){return kV||(kV=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.nil=t._Code=t.Name=t.IDENTIFIER=t._CodeOrName=void 0,t._=i,t.str=s,t.addCodeArg=a,t.strConcat=u,t.stringify=f,t.safeStringify=h,t.getProperty=g,t.getEsmExportName=p,t.regexpCode=y;class e{}t._CodeOrName=e,t.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class r extends e{constructor(b){if(super(),!t.IDENTIFIER.test(b))throw new Error("CodeGen: name must be a valid identifier");this.str=b}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}t.Name=r;class n extends e{constructor(b){super(),this._items=typeof b=="string"?[b]:b}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const b=this._items[0];return b===""||b==='""'}get str(){var b;return(b=this._str)!==null&&b!==void 0?b:this._str=this._items.reduce((O,S)=>`${O}${S}`,"")}get names(){var b;return(b=this._names)!==null&&b!==void 0?b:this._names=this._items.reduce((O,S)=>(S instanceof r&&(O[S.str]=(O[S.str]||0)+1),O),{})}}t._Code=n,t.nil=new n("");function i(v,...b){const O=[v[0]];let S=0;for(;S<b.length;)a(O,b[S]),O.push(v[++S]);return new n(O)}const o=new n("+");function s(v,...b){const O=[h(v[0])];let S=0;for(;S<b.length;)O.push(o),a(O,b[S]),O.push(o,h(v[++S]));return l(O),new n(O)}function a(v,b){b instanceof n?v.push(...b._items):b instanceof r?v.push(b):v.push(d(b))}function l(v){let b=1;for(;b<v.length-1;){if(v[b]===o){const O=c(v[b-1],v[b+1]);if(O!==void 0){v.splice(b-1,3,O);continue}v[b++]="+"}b++}}function c(v,b){if(b==='""')return v;if(v==='""')return b;if(typeof v=="string")return b instanceof r||v[v.length-1]!=='"'?void 0:typeof b!="string"?`${v.slice(0,-1)}${b}"`:b[0]==='"'?v.slice(0,-1)+b.slice(1):void 0;if(typeof b=="string"&&b[0]==='"'&&!(v instanceof r))return`"${v}${b.slice(1)}`}function u(v,b){return b.emptyStr()?v:v.emptyStr()?b:s`${v}${b}`}function d(v){return typeof v=="number"||typeof v=="boolean"||v===null?v:h(Array.isArray(v)?v.join(","):v)}function f(v){return new n(h(v))}function h(v){return JSON.stringify(v).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}function g(v){return typeof v=="string"&&t.IDENTIFIER.test(v)?new n(`.${v}`):i`[${v}]`}function p(v){if(typeof v=="string"&&t.IDENTIFIER.test(v))return new n(`${v}`);throw new Error(`CodeGen: invalid export name: ${v}, use explicit $id name mapping`)}function y(v){return new n(v.toString())}})(Y1)),Y1}var H1={},$V;function EV(){return $V||($V=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.ValueScope=t.ValueScopeName=t.Scope=t.varKinds=t.UsedValueState=void 0;const e=D0();class r extends Error{constructor(c){super(`CodeGen: "code" for ${c} not defined`),this.value=c.value}}var n;(function(l){l[l.Started=0]="Started",l[l.Completed=1]="Completed"})(n||(t.UsedValueState=n={})),t.varKinds={const:new e.Name("const"),let:new e.Name("let"),var:new e.Name("var")};class i{constructor({prefixes:c,parent:u}={}){this._names={},this._prefixes=c,this._parent=u}toName(c){return c instanceof e.Name?c:this.name(c)}name(c){return new e.Name(this._newName(c))}_newName(c){const u=this._names[c]||this._nameGroup(c);return`${c}${u.index++}`}_nameGroup(c){var u,d;if(!((d=(u=this._parent)===null||u===void 0?void 0:u._prefixes)===null||d===void 0)&&d.has(c)||this._prefixes&&!this._prefixes.has(c))throw new Error(`CodeGen: prefix "${c}" is not allowed in this scope`);return this._names[c]={prefix:c,index:0}}}t.Scope=i;class o extends e.Name{constructor(c,u){super(u),this.prefix=c}setValue(c,{property:u,itemIndex:d}){this.value=c,this.scopePath=(0,e._)`.${new e.Name(u)}[${d}]`}}t.ValueScopeName=o;const s=(0,e._)`\n`;class a extends i{constructor(c){super(c),this._values={},this._scope=c.scope,this.opts={...c,_n:c.lines?s:e.nil}}get(){return this._scope}name(c){return new o(c,this._newName(c))}value(c,u){var d;if(u.ref===void 0)throw new Error("CodeGen: ref must be passed in value");const f=this.toName(c),{prefix:h}=f,g=(d=u.key)!==null&&d!==void 0?d:u.ref;let p=this._values[h];if(p){const b=p.get(g);if(b)return b}else p=this._values[h]=new Map;p.set(g,f);const y=this._scope[h]||(this._scope[h]=[]),v=y.length;return y[v]=u.ref,f.setValue(u,{property:h,itemIndex:v}),f}getValue(c,u){const d=this._values[c];if(d)return d.get(u)}scopeRefs(c,u=this._values){return this._reduceValues(u,d=>{if(d.scopePath===void 0)throw new Error(`CodeGen: name "${d}" has no value`);return(0,e._)`${c}${d.scopePath}`})}scopeCode(c=this._values,u,d){return this._reduceValues(c,f=>{if(f.value===void 0)throw new Error(`CodeGen: name "${f}" has no value`);return f.value.code},u,d)}_reduceValues(c,u,d={},f){let h=e.nil;for(const g in c){const p=c[g];if(!p)continue;const y=d[g]=d[g]||new Map;p.forEach(v=>{if(y.has(v))return;y.set(v,n.Started);let b=u(v);if(b){const O=this.opts.es5?t.varKinds.var:t.varKinds.const;h=(0,e._)`${h}${O} ${v} = ${b};${this.opts._n}`}else if(b=f==null?void 0:f(v))h=(0,e._)`${h}${b}${this.opts._n}`;else throw new r(v);y.set(v,n.Completed)})}return h}}t.ValueScope=a})(H1)),H1}var AV;function ct(){return AV||(AV=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.CodeGen=t.operators=t.varKinds=t.ValueScopeName=t.ValueScope=t.Scope=t.Name=t.regexpCode=t.stringify=t.getProperty=t.nil=t.strConcat=t.str=t._=void 0,t.not=oe,t.and=ie,t.or=L;const e=D0(),r=EV();var n=D0();Object.defineProperty(t,"_",{enumerable:!0,get:function(){return n._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return n.str}}),Object.defineProperty(t,"strConcat",{enumerable:!0,get:function(){return n.strConcat}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return n.nil}}),Object.defineProperty(t,"getProperty",{enumerable:!0,get:function(){return n.getProperty}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return n.stringify}}),Object.defineProperty(t,"regexpCode",{enumerable:!0,get:function(){return n.regexpCode}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return n.Name}});var i=EV();Object.defineProperty(t,"Scope",{enumerable:!0,get:function(){return i.Scope}}),Object.defineProperty(t,"ValueScope",{enumerable:!0,get:function(){return i.ValueScope}}),Object.defineProperty(t,"ValueScopeName",{enumerable:!0,get:function(){return i.ValueScopeName}}),Object.defineProperty(t,"varKinds",{enumerable:!0,get:function(){return i.varKinds}}),t.operators={GT:new e._Code(">"),GTE:new e._Code(">="),LT:new e._Code("<"),LTE:new e._Code("<="),EQ:new e._Code("==="),NEQ:new e._Code("!=="),NOT:new e._Code("!"),OR:new e._Code("||"),AND:new e._Code("&&"),ADD:new e._Code("+")};class o{optimizeNodes(){return this}optimizeNames(k,T){return this}}class s extends o{constructor(k,T,j){super(),this.varKind=k,this.name=T,this.rhs=j}render({es5:k,_n:T}){const j=k?r.varKinds.var:this.varKind,Z=this.rhs===void 0?"":` = ${this.rhs}`;return`${j} ${this.name}${Z};`+T}optimizeNames(k,T){if(k[this.name.str])return this.rhs&&(this.rhs=J(this.rhs,k,T)),this}get names(){return this.rhs instanceof e._CodeOrName?this.rhs.names:{}}}class a extends o{constructor(k,T,j){super(),this.lhs=k,this.rhs=T,this.sideEffects=j}render({_n:k}){return`${this.lhs} = ${this.rhs};`+k}optimizeNames(k,T){if(!(this.lhs instanceof e.Name&&!k[this.lhs.str]&&!this.sideEffects))return this.rhs=J(this.rhs,k,T),this}get names(){const k=this.lhs instanceof e.Name?{}:{...this.lhs.names};return X(k,this.rhs)}}class l extends a{constructor(k,T,j,Z){super(k,j,Z),this.op=T}render({_n:k}){return`${this.lhs} ${this.op}= ${this.rhs};`+k}}class c extends o{constructor(k){super(),this.label=k,this.names={}}render({_n:k}){return`${this.label}:`+k}}class u extends o{constructor(k){super(),this.label=k,this.names={}}render({_n:k}){return`break${this.label?` ${this.label}`:""};`+k}}class d extends o{constructor(k){super(),this.error=k}render({_n:k}){return`throw ${this.error};`+k}get names(){return this.error.names}}class f extends o{constructor(k){super(),this.code=k}render({_n:k}){return`${this.code};`+k}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(k,T){return this.code=J(this.code,k,T),this}get names(){return this.code instanceof e._CodeOrName?this.code.names:{}}}class h extends o{constructor(k=[]){super(),this.nodes=k}render(k){return this.nodes.reduce((T,j)=>T+j.render(k),"")}optimizeNodes(){const{nodes:k}=this;let T=k.length;for(;T--;){const j=k[T].optimizeNodes();Array.isArray(j)?k.splice(T,1,...j):j?k[T]=j:k.splice(T,1)}return k.length>0?this:void 0}optimizeNames(k,T){const{nodes:j}=this;let Z=j.length;for(;Z--;){const Y=j[Z];Y.optimizeNames(k,T)||(te(k,Y.names),j.splice(Z,1))}return j.length>0?this:void 0}get names(){return this.nodes.reduce((k,T)=>U(k,T.names),{})}}class g extends h{render(k){return"{"+k._n+super.render(k)+"}"+k._n}}class p extends h{}class y extends g{}y.kind="else";class v extends g{constructor(k,T){super(T),this.condition=k}render(k){let T=`if(${this.condition})`+super.render(k);return this.else&&(T+="else "+this.else.render(k)),T}optimizeNodes(){super.optimizeNodes();const k=this.condition;if(k===!0)return this.nodes;let T=this.else;if(T){const j=T.optimizeNodes();T=this.else=Array.isArray(j)?new y(j):j}if(T)return k===!1?T instanceof v?T:T.nodes:this.nodes.length?this:new v(oe(k),T instanceof v?[T]:T.nodes);if(!(k===!1||!this.nodes.length))return this}optimizeNames(k,T){var j;if(this.else=(j=this.else)===null||j===void 0?void 0:j.optimizeNames(k,T),!!(super.optimizeNames(k,T)||this.else))return this.condition=J(this.condition,k,T),this}get names(){const k=super.names;return X(k,this.condition),this.else&&U(k,this.else.names),k}}v.kind="if";class b extends g{}b.kind="for";class O extends b{constructor(k){super(),this.iteration=k}render(k){return`for(${this.iteration})`+super.render(k)}optimizeNames(k,T){if(super.optimizeNames(k,T))return this.iteration=J(this.iteration,k,T),this}get names(){return U(super.names,this.iteration.names)}}class S extends b{constructor(k,T,j,Z){super(),this.varKind=k,this.name=T,this.from=j,this.to=Z}render(k){const T=k.es5?r.varKinds.var:this.varKind,{name:j,from:Z,to:Y}=this;return`for(${T} ${j}=${Z}; ${j}<${Y}; ${j}++)`+super.render(k)}get names(){const k=X(super.names,this.from);return X(k,this.to)}}class x extends b{constructor(k,T,j,Z){super(),this.loop=k,this.varKind=T,this.name=j,this.iterable=Z}render(k){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(k)}optimizeNames(k,T){if(super.optimizeNames(k,T))return this.iterable=J(this.iterable,k,T),this}get names(){return U(super.names,this.iterable.names)}}class w extends g{constructor(k,T,j){super(),this.name=k,this.args=T,this.async=j}render(k){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(k)}}w.kind="func";class P extends h{render(k){return"return "+super.render(k)}}P.kind="return";class I extends g{render(k){let T="try"+super.render(k);return this.catch&&(T+=this.catch.render(k)),this.finally&&(T+=this.finally.render(k)),T}optimizeNodes(){var k,T;return super.optimizeNodes(),(k=this.catch)===null||k===void 0||k.optimizeNodes(),(T=this.finally)===null||T===void 0||T.optimizeNodes(),this}optimizeNames(k,T){var j,Z;return super.optimizeNames(k,T),(j=this.catch)===null||j===void 0||j.optimizeNames(k,T),(Z=this.finally)===null||Z===void 0||Z.optimizeNames(k,T),this}get names(){const k=super.names;return this.catch&&U(k,this.catch.names),this.finally&&U(k,this.finally.names),k}}class E extends g{constructor(k){super(),this.error=k}render(k){return`catch(${this.error})`+super.render(k)}}E.kind="catch";class M extends g{render(k){return"finally"+super.render(k)}}M.kind="finally";class V{constructor(k,T={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...T,_n:T.lines?`
|
|
2447
|
+
>>> no match, partial?`,e,f,r,h),f===l))}let p;if(typeof u=="string"?(p=d===u,this.debug("string match",u,d,p)):(p=u.test(d),this.debug("pattern match",u,d,p)),!p)return!1}if(s===l&&a===c)return!0;if(s===l)return n;if(a===c)return s===l-1&&e[s]==="";throw new Error("wtf?")}braceExpand(){return o8(this.pattern,this.options)}parse(e){C0(e);const r=this.options;if(e==="**")return Ri;if(e==="")return"";let n,i=null;(n=e.match(OLe))?i=r.dot?SLe:xLe:(n=e.match(uLe))?i=(r.nocase?r.dot?pLe:hLe:r.dot?fLe:dLe)(n[1]):(n=e.match(wLe))?i=(r.nocase?r.dot?PLe:CLe:r.dot?kLe:$Le)(n):(n=e.match(gLe))?i=r.dot?yLe:mLe:(n=e.match(vLe))&&(i=bLe);const o=P0.fromGlob(e,this.options).toMMPattern();return i&&typeof o=="object"&&Reflect.defineProperty(o,"test",{value:i}),o}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;const e=this.set;if(!e.length)return this.regexp=!1,this.regexp;const r=this.options,n=r.noglobstar?ILe:r.dot?TLe:_Le,i=new Set(r.nocase?["i"]:[]);let o=e.map(l=>{const c=l.map(u=>{if(u instanceof RegExp)for(const d of u.flags.split(""))i.add(d);return typeof u=="string"?NLe(u):u===Ri?Ri:u._src});return c.forEach((u,d)=>{const f=c[d+1],h=c[d-1];u!==Ri||h===Ri||(h===void 0?f!==void 0&&f!==Ri?c[d+1]="(?:\\/|"+n+"\\/)?"+f:c[d]=n:f===void 0?c[d-1]=h+"(?:\\/|"+n+")?":f!==Ri&&(c[d-1]=h+"(?:\\/|\\/"+n+"\\/)"+f,c[d+1]=Ri))}),c.filter(u=>u!==Ri).join("/")}).join("|");const[s,a]=e.length>1?["(?:",")"]:["",""];o="^"+s+o+a+"$",this.negate&&(o="^(?!"+o+").+$");try{this.regexp=new RegExp(o,[...i].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(e){return this.preserveMultipleSlashes?e.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(e)?["",...e.split(/\/+/)]:e.split(/\/+/)}match(e,r=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;const n=this.options;this.isWindows&&(e=e.split("\\").join("/"));const i=this.slashSplit(e);this.debug(this.pattern,"split",i);const o=this.set;this.debug(this.pattern,"set",o);let s=i[i.length-1];if(!s)for(let a=i.length-2;!s&&a>=0;a--)s=i[a];for(let a=0;a<o.length;a++){const l=o[a];let c=i;if(n.matchBase&&l.length===1&&(c=[s]),this.matchOne(c,l,r))return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate}static defaults(e){return bn.defaults(e).Minimatch}}bn.AST=P0;bn.Minimatch=fS;bn.escape=cLe;bn.unescape=gh;function LLe(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Cb={exports:{}},QLe=Cb.exports,cV;function VLe(){return cV||(cV=1,(function(t,e){(function(r,n){typeof LLe=="function"?t.exports=n():r.pluralize=n()})(QLe,function(){var r=[],n=[],i={},o={},s={};function a(p){return typeof p=="string"?new RegExp("^"+p+"$","i"):p}function l(p,y){return p===y?y:p===p.toLowerCase()?y.toLowerCase():p===p.toUpperCase()?y.toUpperCase():p[0]===p[0].toUpperCase()?y.charAt(0).toUpperCase()+y.substr(1).toLowerCase():y.toLowerCase()}function c(p,y){return p.replace(/\$(\d{1,2})/g,function(v,b){return y[b]||""})}function u(p,y){return p.replace(y[0],function(v,b){var O=c(y[1],arguments);return l(v===""?p[b-1]:v,O)})}function d(p,y,v){if(!p.length||i.hasOwnProperty(p))return y;for(var b=v.length;b--;){var O=v[b];if(O[0].test(y))return u(y,O)}return y}function f(p,y,v){return function(b){var O=b.toLowerCase();return y.hasOwnProperty(O)?l(b,O):p.hasOwnProperty(O)?l(b,p[O]):d(O,b,v)}}function h(p,y,v,b){return function(O){var S=O.toLowerCase();return y.hasOwnProperty(S)?!0:p.hasOwnProperty(S)?!1:d(S,S,v)===S}}function g(p,y,v){var b=y===1?g.singular(p):g.plural(p);return(v?y+" ":"")+b}return g.plural=f(s,o,r),g.isPlural=h(s,o,r),g.singular=f(o,s,n),g.isSingular=h(o,s,n),g.addPluralRule=function(p,y){r.push([a(p),y])},g.addSingularRule=function(p,y){n.push([a(p),y])},g.addUncountableRule=function(p){if(typeof p=="string"){i[p.toLowerCase()]=!0;return}g.addPluralRule(p,"$0"),g.addSingularRule(p,"$0")},g.addIrregularRule=function(p,y){y=y.toLowerCase(),p=p.toLowerCase(),s[p]=y,o[y]=p},[["I","we"],["me","us"],["he","they"],["she","they"],["them","them"],["myself","ourselves"],["yourself","yourselves"],["itself","themselves"],["herself","themselves"],["himself","themselves"],["themself","themselves"],["is","are"],["was","were"],["has","have"],["this","these"],["that","those"],["echo","echoes"],["dingo","dingoes"],["volcano","volcanoes"],["tornado","tornadoes"],["torpedo","torpedoes"],["genus","genera"],["viscus","viscera"],["stigma","stigmata"],["stoma","stomata"],["dogma","dogmata"],["lemma","lemmata"],["schema","schemata"],["anathema","anathemata"],["ox","oxen"],["axe","axes"],["die","dice"],["yes","yeses"],["foot","feet"],["eave","eaves"],["goose","geese"],["tooth","teeth"],["quiz","quizzes"],["human","humans"],["proof","proofs"],["carve","carves"],["valve","valves"],["looey","looies"],["thief","thieves"],["groove","grooves"],["pickaxe","pickaxes"],["passerby","passersby"]].forEach(function(p){return g.addIrregularRule(p[0],p[1])}),[[/s?$/i,"s"],[/[^\u0000-\u007F]$/i,"$0"],[/([^aeiou]ese)$/i,"$1"],[/(ax|test)is$/i,"$1es"],[/(alias|[^aou]us|t[lm]as|gas|ris)$/i,"$1es"],[/(e[mn]u)s?$/i,"$1s"],[/([^l]ias|[aeiou]las|[ejzr]as|[iu]am)$/i,"$1"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1i"],[/(alumn|alg|vertebr)(?:a|ae)$/i,"$1ae"],[/(seraph|cherub)(?:im)?$/i,"$1im"],[/(her|at|gr)o$/i,"$1oes"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i,"$1a"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i,"$1a"],[/sis$/i,"ses"],[/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i,"$1$2ves"],[/([^aeiouy]|qu)y$/i,"$1ies"],[/([^ch][ieo][ln])ey$/i,"$1ies"],[/(x|ch|ss|sh|zz)$/i,"$1es"],[/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i,"$1ices"],[/\b((?:tit)?m|l)(?:ice|ouse)$/i,"$1ice"],[/(pe)(?:rson|ople)$/i,"$1ople"],[/(child)(?:ren)?$/i,"$1ren"],[/eaux$/i,"$0"],[/m[ae]n$/i,"men"],["thou","you"]].forEach(function(p){return g.addPluralRule(p[0],p[1])}),[[/s$/i,""],[/(ss)$/i,"$1"],[/(wi|kni|(?:after|half|high|low|mid|non|night|[^\w]|^)li)ves$/i,"$1fe"],[/(ar|(?:wo|[ae])l|[eo][ao])ves$/i,"$1f"],[/ies$/i,"y"],[/\b([pl]|zomb|(?:neck|cross)?t|coll|faer|food|gen|goon|group|lass|talk|goal|cut)ies$/i,"$1ie"],[/\b(mon|smil)ies$/i,"$1ey"],[/\b((?:tit)?m|l)ice$/i,"$1ouse"],[/(seraph|cherub)im$/i,"$1"],[/(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|t[lm]as|gas|(?:her|at|gr)o|[aeiou]ris)(?:es)?$/i,"$1"],[/(analy|diagno|parenthe|progno|synop|the|empha|cri|ne)(?:sis|ses)$/i,"$1sis"],[/(movie|twelve|abuse|e[mn]u)s$/i,"$1"],[/(test)(?:is|es)$/i,"$1is"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1us"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i,"$1um"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i,"$1on"],[/(alumn|alg|vertebr)ae$/i,"$1a"],[/(cod|mur|sil|vert|ind)ices$/i,"$1ex"],[/(matr|append)ices$/i,"$1ix"],[/(pe)(rson|ople)$/i,"$1rson"],[/(child)ren$/i,"$1"],[/(eau)x?$/i,"$1"],[/men$/i,"man"]].forEach(function(p){return g.addSingularRule(p[0],p[1])}),["adulthood","advice","agenda","aid","aircraft","alcohol","ammo","analytics","anime","athletics","audio","bison","blood","bream","buffalo","butter","carp","cash","chassis","chess","clothing","cod","commerce","cooperation","corps","debris","diabetes","digestion","elk","energy","equipment","excretion","expertise","firmware","flounder","fun","gallows","garbage","graffiti","hardware","headquarters","health","herpes","highjinks","homework","housework","information","jeans","justice","kudos","labour","literature","machinery","mackerel","mail","media","mews","moose","music","mud","manga","news","only","personnel","pike","plankton","pliers","police","pollution","premises","rain","research","rice","salmon","scissors","series","sewage","shambles","shrimp","software","species","staff","swine","tennis","traffic","transportation","trout","tuna","wealth","welfare","whiting","wildebeest","wildlife","you",/pok[eé]mon$/i,/[^aeiou]ese$/i,/deer$/i,/fish$/i,/measles$/i,/o[iu]s$/i,/pox$/i,/sheep$/i].forEach(g.addUncountableRule),g})})(Cb)),Cb.exports}var zLe=VLe();const s8=ii(zLe),BLe=W9.extend({implicit:[cu.merge],explicit:[cu.binary,cu.omap,cu.pairs,cu.set]}),qT=(t,e)=>U9(t,{schema:BLe,...e}),qLe=(t,e)=>X9(t,e),Zn=typeof window<"u"||typeof process>"u"||(process==null?void 0:process.platform)==="browser",FT=Zn?{}:process.env||{};function hu(t,e){return t===""&&(t="#/"),t[t.length-1]==="/"?t+e:t+"/"+e}function Tr(t){return ht(t)&&typeof t.$ref=="string"}function a8(t){return ht(t)&&typeof t.externalValue=="string"}class qu{constructor(e,r){this.source=e,this.pointer=r}child(e){return new qu(this.source,hu(this.pointer,(Array.isArray(e)?e:[e]).map(Lh).join("/")))}key(){return{...this,reportOnKey:!0}}get absolutePointer(){return this.source.absoluteRef+(this.pointer==="#/"?"":this.pointer)}}function l8(t){return decodeURIComponent(t.replace(/~1/g,"/").replace(/~0/g,"~"))}function Lh(t){return typeof t=="number"?t:t.replace(/~/g,"~0").replace(/\//g,"~1")}function FLe(t){const[e,r=""]=t.split("#/");return{uri:(e.endsWith("#")?e.slice(0,-1):e)||null,pointer:WLe(r)}}function WLe(t){return t.split("/").map(l8).filter(Di)}function ULe(t){const e=t.split(/[\/\\]/);return e[e.length-1].replace(/\.[^.]+$/,"")}function Fr(t){return t.startsWith("http://")||t.startsWith("https://")}function c8(t){return t.startsWith("#")||t.startsWith("https://")||t.startsWith("http://")||t.startsWith("./")||t.startsWith("../")||t.indexOf("/")>-1}function XLe(t){return/^#[A-Za-z][A-Za-z0-9\-_:.]*$/.test(t)}function xE(t,e,r){if(!ht(e.node))r.parent[r.key]=e.node;else{delete t.$ref;const n=Object.assign({},e.node,t);Object.assign(t,n)}}function uV(t,e){return{prev:t,value:e}}function ZLe(t,e,r){return t.split(" ").map(n=>s8(n,e,r)).join(" ")}function dV(t){return(t==null?void 0:t.prev)??null}function k0(t){return t!==void 0}function ht(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}function Ip(t){return ht(t)&&Object.keys(t).length===0}function u8(t){return Array.isArray(t)&&t.length===0}async function d8(t,e){const r={};for(const i of e.headers)GLe(t,i.matches)&&(r[i.name]=i.envVariable!==void 0?FT[i.envVariable]||"":i.value);const n=await(e.customFetch||fetch)(t,{headers:r});if(!n.ok)throw new Error(`Failed to load ${t}: ${n.status} ${n.statusText}`);return{body:await n.text(),mimeType:n.headers.get("content-type")}}function GLe(t,e){return e.match(/^https?:\/\//)||(t=t.replace(/^https?:\/\//,"")),bn(t,e)}function YLe(t){const e=t.split(/(?:[-._])|([A-Z][a-z]+)/).filter(Di).map(n=>n.toLocaleLowerCase()),r=t.split(/([A-Z]{2,})/).filter(n=>n&&n===n.toUpperCase()).map(n=>n.toLocaleLowerCase());return new Set([...e,...r])}function $0({type:t,value:e},{report:r,location:n},i){const o=t==="consumes"?"request":"response";if(!i)throw new Error(`Parameter "allowedValues" is not provided for "${o}-mime-type" rule`);if(e[t])for(const s of e[t])i.includes(s)||r({message:`Mime type "${s}" is not allowed`,location:n.child(e[t].indexOf(s)).key()})}function Fu({type:t,value:e},{report:r,location:n},i){const o=t==="consumes"?"request":"response";if(!i)throw new Error(`Parameter "allowedValues" is not provided for "${o}-mime-type" rule`);if(e.content)for(const s of Object.keys(e.content))i.includes(s)||r({message:`Mime type "${s}" is not allowed`,location:n.child("content").child(s).key()})}function WT(t){return(void 0)(t,"utf-8")}function fV(t){const e=(void 0)(t,"utf-8");return qT(e)}function f8(t){return t.startsWith("{")&&t.endsWith("}")}function HLe(t){return/^\\\\\?\\/.test(t)?t:t.replace(/\\/g,"/")}function yi(t){return typeof t=="string"}function JLe(t){return!yi(t)}const ur=(t,e)=>{if(e)for(const r of Object.keys(e))ht(t[r])&&typeof e[r]=="string"?t[r]={...t[r],severity:e[r]}:t[r]=e[r]};function wr(t,e){if(e)for(const r of Object.keys(e))t.hasOwnProperty(r)&&(ht(t[r])&&typeof e[r]=="string"?t[r]={...t[r],severity:e[r]}:t[r]=e[r])}function Cd(t){return`${t}`.replace(/^(\d)\d\d$/,(e,r)=>`${r}XX`)}function KLe(t){return t.includes("/")}function h8(t){return(It.extname(t)===".yaml"||It.extname(t)===".yml")&&!1}function Di(t){return!!t}function eQe(t){return t}function p8(t){return t?Object.keys(t):[]}function tQe(){return new Promise(t=>{setTimeout(t)})}function ig(t,e){return t.hasOwnProperty(e)?t[e]:void 0}function rQe(t,e){const r={...t};return e.forEach(n=>{delete r[n]}),r}function Tp(t,e){return Fr(t)||e===void 0?t:It.resolve(It.dirname(e),t)}function SE(t,e){let r,n;if(t===e)return!0;if(t&&e&&(r=t.constructor)===e.constructor){if(r===Date)return t.getTime()===e.getTime();if(r===RegExp)return t.toString()===e.toString();if(r===Array){if((n=t.length)===e.length)for(;n--&&SE(t[n],e[n]););return n===-1}if(!r||typeof t=="object"){n=0;for(r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&++n&&!Object.prototype.hasOwnProperty.call(e,r)||!(r in e)||!SE(t[r],e[r]))return!1;return Object.keys(e).length===n}}return t!==t&&e!==e}function Ke(t){return{name:`${t}List`,properties:{},items:t}}function Ge(t){return{name:`${t}Map`,properties:{},additionalProperties:()=>t}}const Hl={name:"SpecExtension",properties:{},additionalProperties:{resolvable:!0}};function UT(t,e={}){const r={};for(const o of Object.keys(t))r[o]={...t[o],name:o};for(const o of Object.values(r))n(o);return r.SpecExtension=Hl,r;function n(o){if(o.additionalProperties&&(o.additionalProperties=i(o.additionalProperties)),o.items&&(o.items=i(o.items)),o.properties){const s={};for(const[a,l]of Object.entries(o.properties))s[a]=i(l),e.doNotResolveExamples&&l&&l.isExample&&(s[a]={...l,resolvable:!1});o.properties=s}}function i(o){if(typeof o=="string"){if(!r[o])throw new Error(`Unknown type name found: ${o}`);return r[o]}else return typeof o=="function"?(s,a)=>i(o(s,a)):o&&o.name?(o={...o},n(o),o):o&&o.directResolveAs?{...o,directResolveAs:i(o.directResolveAs)}:o}}function Jl(t){return typeof(t==null?void 0:t.name)=="string"}const nQe=/^[0-9][0-9Xx]{2}$/,iQe={properties:{openapi:null,info:"Info",servers:"ServerList",security:"SecurityRequirementList",tags:"TagList",externalDocs:"ExternalDocs",paths:"Paths",components:"Components","x-webhooks":"WebhooksMap","x-tagGroups":"TagGroups","x-ignoredHeaderParameters":{type:"array",items:{type:"string"}}},required:["openapi","paths","info"],extensionsPrefix:"x-"},oQe={properties:{name:{type:"string"},description:{type:"string"},externalDocs:"ExternalDocs","x-traitTag":{type:"boolean"},"x-displayName":{type:"string"}},required:["name"],extensionsPrefix:"x-"},sQe={properties:{name:{type:"string"},tags:{type:"array",items:{type:"string"}}},extensionsPrefix:"x-"},g8={properties:{description:{type:"string"},url:{type:"string"}},required:["url"],extensionsPrefix:"x-"},aQe={properties:{url:{type:"string"},description:{type:"string"},variables:"ServerVariablesMap"},required:["url"],extensionsPrefix:"x-"},lQe={properties:{enum:{type:"array",items:{type:"string"}},default:{type:"string"},description:{type:"string"}},required:["default"],extensionsPrefix:"x-"},cQe={properties:{},additionalProperties:{type:"array",items:{type:"string"}}},uQe={properties:{title:{type:"string"},version:{type:"string"},description:{type:"string"},termsOfService:{type:"string"},contact:"Contact",license:"License","x-logo":"Logo"},required:["title","version"],extensionsPrefix:"x-"},dQe={properties:{url:{type:"string"},altText:{type:"string"},backgroundColor:{type:"string"},href:{type:"string"}}},fQe={properties:{name:{type:"string"},url:{type:"string"},email:{type:"string"}},extensionsPrefix:"x-"},hQe={properties:{name:{type:"string"},url:{type:"string"}},required:["name"],extensionsPrefix:"x-"},pQe={properties:{},additionalProperties:(t,e)=>e.startsWith("/")?"PathItem":void 0},gQe={properties:{},additionalProperties:()=>"PathItem"},mQe={properties:{$ref:{type:"string"},servers:"ServerList",parameters:"ParameterList",summary:{type:"string"},description:{type:"string"},get:"Operation",put:"Operation",post:"Operation",delete:"Operation",options:"Operation",head:"Operation",patch:"Operation",trace:"Operation"},extensionsPrefix:"x-"},yQe={properties:{name:{type:"string"},in:{enum:["query","header","path","cookie"]},description:{type:"string"},required:{type:"boolean"},deprecated:{type:"boolean"},allowEmptyValue:{type:"boolean"},style:{enum:["form","simple","label","matrix","spaceDelimited","pipeDelimited","deepObject"]},explode:{type:"boolean"},allowReserved:{type:"boolean"},schema:"Schema",example:{isExample:!0},examples:"ExamplesMap",content:"MediaTypesMap"},required:["name","in"],requiredOneOf:["schema","content"],extensionsPrefix:"x-"},vQe={properties:{tags:{type:"array",items:{type:"string"}},summary:{type:"string"},description:{type:"string"},externalDocs:"ExternalDocs",operationId:{type:"string"},parameters:"ParameterList",security:"SecurityRequirementList",servers:"ServerList",requestBody:"RequestBody",responses:"Responses",deprecated:{type:"boolean"},callbacks:"CallbacksMap","x-codeSamples":"XCodeSampleList","x-code-samples":"XCodeSampleList","x-hideTryItPanel":{type:"boolean"}},required:["responses"],extensionsPrefix:"x-"},bQe={properties:{lang:{type:"string"},label:{type:"string"},source:{type:"string"}}},OQe={properties:{description:{type:"string"},required:{type:"boolean"},content:"MediaTypesMap"},required:["content"],extensionsPrefix:"x-"},xQe={properties:{},additionalProperties:"MediaType"},SQe={properties:{schema:"Schema",example:{isExample:!0},examples:"ExamplesMap",encoding:"EncodingMap"},extensionsPrefix:"x-"},wQe={properties:{value:{isExample:!0},summary:{type:"string"},description:{type:"string"},externalValue:{type:"string"}},extensionsPrefix:"x-"},CQe={properties:{contentType:{type:"string"},headers:"HeadersMap",style:{enum:["form","simple","label","matrix","spaceDelimited","pipeDelimited","deepObject"]},explode:{type:"boolean"},allowReserved:{type:"boolean"}},extensionsPrefix:"x-"},PQe={properties:{},additionalProperties:{type:"string"}},kQe={properties:{description:{type:"string"},required:{type:"boolean"},deprecated:{type:"boolean"},allowEmptyValue:{type:"boolean"},style:{enum:["form","simple","label","matrix","spaceDelimited","pipeDelimited","deepObject"]},explode:{type:"boolean"},allowReserved:{type:"boolean"},schema:"Schema",example:{isExample:!0},examples:"ExamplesMap",content:"MediaTypesMap"},requiredOneOf:["schema","content"],extensionsPrefix:"x-"},$Qe={properties:{default:"Response"},additionalProperties:(t,e)=>nQe.test(e)?"Response":void 0},EQe={properties:{description:{type:"string"},headers:"HeadersMap",content:"MediaTypesMap",links:"LinksMap","x-summary":{type:"string"}},required:["description"],extensionsPrefix:"x-"},AQe={properties:{operationRef:{type:"string"},operationId:{type:"string"},parameters:null,requestBody:null,description:{type:"string"},server:"Server"},extensionsPrefix:"x-"},IQe={properties:{externalDocs:"ExternalDocs",discriminator:"Discriminator",title:{type:"string"},multipleOf:{type:"number",minimum:0},maximum:{type:"number"},minimum:{type:"number"},exclusiveMaximum:{type:"boolean"},exclusiveMinimum:{type:"boolean"},maxLength:{type:"integer",minimum:0},minLength:{type:"integer",minimum:0},pattern:{type:"string"},maxItems:{type:"integer",minimum:0},minItems:{type:"integer",minimum:0},uniqueItems:{type:"boolean"},maxProperties:{type:"integer",minimum:0},minProperties:{type:"integer",minimum:0},required:{type:"array",items:{type:"string"}},enum:{type:"array"},type:{enum:["object","array","string","number","integer","boolean"]},allOf:Ke("Schema"),anyOf:Ke("Schema"),oneOf:Ke("Schema"),not:"Schema",properties:"SchemaProperties",items:t=>Array.isArray(t)?Ke("Schema"):"Schema",additionalProperties:t=>typeof t=="boolean"?{type:"boolean"}:"Schema",description:{type:"string"},format:{type:"string"},default:null,nullable:{type:"boolean"},readOnly:{type:"boolean"},writeOnly:{type:"boolean"},xml:"Xml",example:{isExample:!0},deprecated:{type:"boolean"},"x-tags":{type:"array",items:{type:"string"}},"x-additionalPropertiesName":{type:"string"},"x-explicitMappingOnly":{type:"boolean"}},extensionsPrefix:"x-"},m8={properties:{name:{type:"string"},namespace:{type:"string"},prefix:{type:"string"},attribute:{type:"boolean"},wrapped:{type:"boolean"}},extensionsPrefix:"x-"},TQe={properties:{},additionalProperties:"Schema"},y8={properties:{},additionalProperties:t=>c8(t)?{type:"string",directResolveAs:"Schema"}:{type:"string"}},v8={properties:{propertyName:{type:"string"},mapping:"DiscriminatorMapping"},required:["propertyName"],extensionsPrefix:"x-"},_Qe={properties:{parameters:"NamedParameters",schemas:"NamedSchemas",responses:"NamedResponses",examples:"NamedExamples",requestBodies:"NamedRequestBodies",headers:"NamedHeaders",securitySchemes:"NamedSecuritySchemes",links:"NamedLinks",callbacks:"NamedCallbacks"},extensionsPrefix:"x-"},b8={properties:{refreshUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},authorizationUrl:{type:"string"}},required:["authorizationUrl","scopes"],extensionsPrefix:"x-"},O8={properties:{refreshUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["tokenUrl","scopes"],extensionsPrefix:"x-"},x8={properties:{refreshUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["tokenUrl","scopes"],extensionsPrefix:"x-"},S8={properties:{refreshUrl:{type:"string"},authorizationUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"},"x-usePkce":t=>typeof t=="boolean"?{type:"boolean"}:"XUsePkce"},required:["authorizationUrl","tokenUrl","scopes"],extensionsPrefix:"x-"},w8={properties:{implicit:"ImplicitFlow",password:"PasswordFlow",clientCredentials:"ClientCredentials",authorizationCode:"AuthorizationCode"},extensionsPrefix:"x-"},RQe={properties:{type:{enum:["apiKey","http","oauth2","openIdConnect"]},description:{type:"string"},name:{type:"string"},in:{type:"string",enum:["query","header","cookie"]},scheme:{type:"string"},bearerFormat:{type:"string"},flows:"OAuth2Flows",openIdConnectUrl:{type:"string"},"x-defaultClientId":{type:"string"}},required(t){switch(t==null?void 0:t.type){case"apiKey":return["type","name","in"];case"http":return["type","scheme"];case"oauth2":return["type","flows"];case"openIdConnect":return["type","openIdConnectUrl"];default:return["type"]}},allowed(t){switch(t==null?void 0:t.type){case"apiKey":return["type","name","in","description"];case"http":return["type","scheme","bearerFormat","description"];case"oauth2":return["type","flows","description"];case"openIdConnect":return["type","openIdConnectUrl","description"];default:return["type","description"]}},extensionsPrefix:"x-"},jQe={properties:{disableManualConfiguration:{type:"boolean"},hideClientSecretInput:{type:"boolean"}}},C8={Root:iQe,Tag:oQe,TagList:Ke("Tag"),TagGroups:Ke("TagGroup"),TagGroup:sQe,ExternalDocs:g8,Server:aQe,ServerList:Ke("Server"),ServerVariable:lQe,ServerVariablesMap:Ge("ServerVariable"),SecurityRequirement:cQe,SecurityRequirementList:Ke("SecurityRequirement"),Info:uQe,Contact:fQe,License:hQe,Paths:pQe,PathItem:mQe,Parameter:yQe,ParameterList:Ke("Parameter"),Operation:vQe,Callback:Ge("PathItem"),CallbacksMap:Ge("Callback"),RequestBody:OQe,MediaTypesMap:xQe,MediaType:SQe,Example:wQe,ExamplesMap:Ge("Example"),Encoding:CQe,EncodingMap:Ge("Encoding"),EnumDescriptions:PQe,Header:kQe,HeadersMap:Ge("Header"),Responses:$Qe,Response:EQe,Link:AQe,Logo:dQe,Schema:IQe,Xml:m8,SchemaProperties:TQe,DiscriminatorMapping:y8,Discriminator:v8,Components:_Qe,LinksMap:Ge("Link"),NamedSchemas:Ge("Schema"),NamedResponses:Ge("Response"),NamedParameters:Ge("Parameter"),NamedExamples:Ge("Example"),NamedRequestBodies:Ge("RequestBody"),NamedHeaders:Ge("Header"),NamedSecuritySchemes:Ge("SecurityScheme"),NamedLinks:Ge("Link"),NamedCallbacks:Ge("Callback"),ImplicitFlow:b8,PasswordFlow:O8,ClientCredentials:x8,AuthorizationCode:S8,OAuth2Flows:w8,SecurityScheme:RQe,XCodeSample:bQe,XCodeSampleList:Ke("XCodeSample"),XUsePkce:jQe,WebhooksMap:gQe},DQe={properties:{openapi:null,info:"Info",servers:"ServerList",security:"SecurityRequirementList",tags:"TagList",externalDocs:"ExternalDocs",paths:"Paths",webhooks:"WebhooksMap",components:"Components",jsonSchemaDialect:{type:"string"}},required:["openapi","info"],requiredOneOf:["paths","components","webhooks"],extensionsPrefix:"x-"},MQe={properties:{name:{type:"string"},url:{type:"string"},identifier:{type:"string"}},required:["name"],extensionsPrefix:"x-"},NQe={properties:{title:{type:"string"},version:{type:"string"},description:{type:"string"},termsOfService:{type:"string"},summary:{type:"string"},contact:"Contact",license:"License","x-logo":"Logo"},required:["title","version"],extensionsPrefix:"x-"},LQe={properties:{parameters:"NamedParameters",schemas:"NamedSchemas",responses:"NamedResponses",examples:"NamedExamples",requestBodies:"NamedRequestBodies",headers:"NamedHeaders",securitySchemes:"NamedSecuritySchemes",links:"NamedLinks",callbacks:"NamedCallbacks",pathItems:"NamedPathItems"},extensionsPrefix:"x-"},QQe={properties:{tags:{type:"array",items:{type:"string"}},summary:{type:"string"},description:{type:"string"},externalDocs:"ExternalDocs",operationId:{type:"string"},parameters:"ParameterList",security:"SecurityRequirementList",servers:"ServerList",requestBody:"RequestBody",responses:"Responses",deprecated:{type:"boolean"},callbacks:"CallbacksMap","x-codeSamples":"XCodeSampleList","x-code-samples":"XCodeSampleList","x-hideTryItPanel":{type:"boolean"}},extensionsPrefix:"x-"},P8={properties:{$id:{type:"string"},$anchor:{type:"string"},id:{type:"string"},$schema:{type:"string"},definitions:"NamedSchemas",$defs:"NamedSchemas",$vocabulary:{type:"string"},externalDocs:"ExternalDocs",discriminator:"Discriminator",title:{type:"string"},multipleOf:{type:"number",minimum:0},maximum:{type:"number"},minimum:{type:"number"},exclusiveMaximum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{type:"integer",minimum:0},minLength:{type:"integer",minimum:0},pattern:{type:"string"},maxItems:{type:"integer",minimum:0},minItems:{type:"integer",minimum:0},uniqueItems:{type:"boolean"},maxProperties:{type:"integer",minimum:0},minProperties:{type:"integer",minimum:0},required:{type:"array",items:{type:"string"}},enum:{type:"array"},type:t=>Array.isArray(t)?{type:"array",items:{enum:["object","array","string","number","integer","boolean","null"]}}:{enum:["object","array","string","number","integer","boolean","null"]},allOf:Ke("Schema"),anyOf:Ke("Schema"),oneOf:Ke("Schema"),not:"Schema",if:"Schema",then:"Schema",else:"Schema",dependentSchemas:Ge("Schema"),dependentRequired:"DependentRequired",prefixItems:Ke("Schema"),contains:"Schema",minContains:{type:"integer",minimum:0},maxContains:{type:"integer",minimum:0},patternProperties:"PatternProperties",propertyNames:"Schema",unevaluatedItems:t=>typeof t=="boolean"?{type:"boolean"}:"Schema",unevaluatedProperties:t=>typeof t=="boolean"?{type:"boolean"}:"Schema",summary:{type:"string"},properties:"SchemaProperties",items:t=>typeof t=="boolean"?{type:"boolean"}:"Schema",additionalProperties:t=>typeof t=="boolean"?{type:"boolean"}:"Schema",description:{type:"string"},format:{type:"string"},contentEncoding:{type:"string"},contentMediaType:{type:"string"},contentSchema:"Schema",default:null,readOnly:{type:"boolean"},writeOnly:{type:"boolean"},xml:"Xml",examples:{type:"array"},example:{isExample:!0},deprecated:{type:"boolean"},const:null,$comment:{type:"string"},"x-tags":{type:"array",items:{type:"string"}},$dynamicAnchor:{type:"string"},$dynamicRef:{type:"string"}},extensionsPrefix:"x-"},E0={properties:{},additionalProperties:t=>typeof t=="boolean"?{type:"boolean"}:"Schema"},k8={properties:{type:{enum:["apiKey","http","oauth2","openIdConnect","mutualTLS"]},description:{type:"string"},name:{type:"string"},in:{type:"string",enum:["query","header","cookie"]},scheme:{type:"string"},bearerFormat:{type:"string"},flows:"OAuth2Flows",openIdConnectUrl:{type:"string"}},required(t){switch(t==null?void 0:t.type){case"apiKey":return["type","name","in"];case"http":return["type","scheme"];case"oauth2":return["type","flows"];case"openIdConnect":return["type","openIdConnectUrl"];default:return["type"]}},allowed(t){switch(t==null?void 0:t.type){case"apiKey":return["type","name","in","description"];case"http":return["type","scheme","bearerFormat","description"];case"oauth2":switch(t==null?void 0:t.flows){case"implicit":return["type","flows","authorizationUrl","refreshUrl","description","scopes"];case"password":case"clientCredentials":return["type","flows","tokenUrl","refreshUrl","description","scopes"];case"authorizationCode":return["type","flows","authorizationUrl","refreshUrl","tokenUrl","description","scopes"];default:return["type","flows","authorizationUrl","refreshUrl","tokenUrl","description","scopes"]}case"openIdConnect":return["type","openIdConnectUrl","description"];case"mutualTLS":return["type","description"];default:return["type","description"]}},extensionsPrefix:"x-"},$8={properties:{},additionalProperties:{type:"array",items:{type:"string"}}},VQe={...C8,Info:NQe,Root:DQe,Schema:P8,SchemaProperties:E0,PatternProperties:E0,License:MQe,Components:LQe,NamedPathItems:Ge("PathItem"),SecurityScheme:k8,Operation:QQe,DependentRequired:$8},zQe={properties:{arazzo:{type:"string"},info:"Info",sourceDescriptions:"SourceDescriptions",workflows:"Workflows",components:"Components"},required:["arazzo","info","sourceDescriptions","workflows"],extensionsPrefix:"x-"},BQe={properties:{},additionalProperties:"Parameter"},qQe={properties:{},additionalProperties:"SuccessActionObject"},FQe={properties:{},additionalProperties:"FailureActionObject"},WQe={properties:{inputs:"NamedInputs",parameters:"NamedParameters",successActions:"NamedSuccessActions",failureActions:"NamedFailureActions"},extensionsPrefix:"x-"},UQe=Ge("Schema"),XQe={properties:{title:{type:"string"},description:{type:"string"},summary:{type:"string"},version:{type:"string"}},required:["title","version"],extensionsPrefix:"x-"},ZQe={properties:{},items:t=>(t==null?void 0:t.type)==="openapi"?"OpenAPISourceDescription":"ArazzoSourceDescription"},GQe={properties:{name:{type:"string"},type:{type:"string",enum:["openapi"]},url:{type:"string"},"x-serverUrl":{type:"string"}},required:["name","type","url"],extensionsPrefix:"x-"},YQe={properties:{name:{type:"string"},type:{type:"string",enum:["arazzo"]},url:{type:"string"}},required:["name","type","url"],extensionsPrefix:"x-"},HQe={properties:{reference:{type:"string"},value:{}},required:["reference"],extensionsPrefix:"x-"},JQe={properties:{in:{type:"string",enum:["header","query","path","cookie"]},name:{type:"string"},value:{}},required:["name","value"],extensionsPrefix:"x-"},KQe={properties:{},items:t=>t!=null&&t.reference?"ReusableObject":"Parameter"},eVe={properties:{workflowId:{type:"string"},summary:{type:"string"},description:{type:"string"},parameters:"Parameters",dependsOn:{type:"array",items:{type:"string"}},inputs:"Schema",outputs:"Outputs",steps:"Steps",successActions:"OnSuccessActionList",failureActions:"OnFailureActionList","x-security":"ExtendedSecurityList"},required:["workflowId","steps"],extensionsPrefix:"x-"},tVe=Ke("Workflow"),rVe=Ke("Step"),nVe={properties:{stepId:{type:"string"},description:{type:"string"},operationId:{type:"string"},operationPath:{type:"string"},workflowId:{type:"string"},parameters:"Parameters",successCriteria:Ke("CriterionObject"),onSuccess:"OnSuccessActionList",onFailure:"OnFailureActionList",outputs:"Outputs","x-operation":"ExtendedOperation","x-security":"ExtendedSecurityList",requestBody:"RequestBody"},required:["stepId"],requiredOneOf:["x-operation","operationId","operationPath","workflowId"],extensionsPrefix:"x-"},iVe={properties:{},additionalProperties:{type:"string"}},oVe={properties:{contentType:{type:"string"},payload:{},replacements:Ke("Replacement")},required:["payload"],extensionsPrefix:"x-"},sVe={properties:{target:{type:"string"},value:{}},required:["target","value"],extensionsPrefix:"x-"},aVe={properties:{schemeName:{type:"string"},values:{},scheme:"SecurityScheme"},required:["values"],requiredOneOf:["schemeName","scheme"]},lVe={properties:{url:{type:"string"},method:{enum:["get","post","put","delete","patch","head","options","trace","connect","query","GET","POST","PUT","DELETE","PATCH","OPTIONS","HEAD","TRACE","CONNECT","QUERY"]}},required:["url","method"]},cVe={properties:{condition:{type:"string"},context:{type:"string"},type:t=>{if(t)return typeof t=="string"?{enum:["regex","jsonpath","simple","xpath"]}:(t==null?void 0:t.type)==="jsonpath"?"JSONPathCriterion":"XPathCriterion"}},required:["condition"]},uVe={properties:{type:{type:"string",enum:["jsonpath"]},version:{type:"string",enum:["draft-goessner-dispatch-jsonpath-00"]}}},dVe={properties:{type:{type:"string",enum:["xpath"]},version:{type:"string",enum:["xpath-30","xpath-20","xpath-10"]}}},fVe={properties:{name:{type:"string"},type:{type:"string",enum:["goto","end"]},stepId:{type:"string"},workflowId:{type:"string"},criteria:Ke("CriterionObject")},required:["type","name"]},hVe={properties:{},items:t=>t!=null&&t.type&&(t!=null&&t.name)?"SuccessActionObject":"ReusableObject"},pVe={properties:{name:{type:"string"},type:{type:"string",enum:["goto","retry","end"]},workflowId:{type:"string"},stepId:{type:"string"},retryAfter:{type:"number",minimum:0},retryLimit:{type:"number",minimum:0},criteria:Ke("CriterionObject")},required:["type","name"]},gVe={properties:{},items:t=>t!=null&&t.type&&(t!=null&&t.name)?"FailureActionObject":"ReusableObject"},mVe={Root:zQe,Info:XQe,SourceDescriptions:ZQe,OpenAPISourceDescription:GQe,ArazzoSourceDescription:YQe,Parameters:KQe,Parameter:JQe,ReusableObject:HQe,Workflows:tVe,Workflow:eVe,Steps:rVe,Step:nVe,RequestBody:oVe,Replacement:sVe,ExtendedOperation:lVe,ExtendedSecurityList:Ke("ExtendedSecurity"),ExtendedSecurity:aVe,Outputs:iVe,CriterionObject:cVe,XPathCriterion:dVe,JSONPathCriterion:uVe,SuccessActionObject:fVe,OnSuccessActionList:hVe,FailureActionObject:pVe,OnFailureActionList:gVe,Schema:P8,NamedSchemas:Ge("Schema"),ExternalDocs:g8,DiscriminatorMapping:y8,Discriminator:v8,DependentRequired:$8,SchemaProperties:E0,PatternProperties:E0,Components:WQe,NamedInputs:UQe,NamedParameters:BQe,NamedSuccessActions:qQe,NamedFailureActions:FQe,Xml:m8,SecurityScheme:k8,OAuth2Flows:w8,ImplicitFlow:b8,PasswordFlow:O8,ClientCredentials:x8,AuthorizationCode:S8},yVe=/^[0-9][0-9Xx]{2}$/,vVe={properties:{swagger:{type:"string"},info:"Info",host:{type:"string"},basePath:{type:"string"},schemes:{type:"array",items:{type:"string"}},consumes:{type:"array",items:{type:"string"}},produces:{type:"array",items:{type:"string"}},paths:"Paths",definitions:"NamedSchemas",parameters:"NamedParameters",responses:"NamedResponses",securityDefinitions:"NamedSecuritySchemes",security:"SecurityRequirementList",tags:"TagList",externalDocs:"ExternalDocs","x-servers":"XServerList","x-tagGroups":"TagGroups","x-ignoredHeaderParameters":{type:"array",items:{type:"string"}}},required:["swagger","paths","info"],extensionsPrefix:"x-"},bVe={properties:{title:{type:"string"},description:{type:"string"},termsOfService:{type:"string"},contact:"Contact",license:"License",version:{type:"string"},"x-logo":"Logo"},required:["title","version"],extensionsPrefix:"x-"},OVe={properties:{url:{type:"string"},altText:{type:"string"},backgroundColor:{type:"string"},href:{type:"string"}},extensionsPrefix:"x-"},xVe={properties:{name:{type:"string"},url:{type:"string"},email:{type:"string"}},extensionsPrefix:"x-"},SVe={properties:{name:{type:"string"},url:{type:"string"}},required:["name"],extensionsPrefix:"x-"},wVe={properties:{},additionalProperties:(t,e)=>e.startsWith("/")?"PathItem":void 0},CVe={properties:{$ref:{type:"string"},parameters:"ParameterList",get:"Operation",put:"Operation",post:"Operation",delete:"Operation",options:"Operation",head:"Operation",patch:"Operation"},extensionsPrefix:"x-"},PVe={properties:{tags:{type:"array",items:{type:"string"}},summary:{type:"string"},description:{type:"string"},externalDocs:"ExternalDocs",operationId:{type:"string"},consumes:{type:"array",items:{type:"string"}},produces:{type:"array",items:{type:"string"}},parameters:"ParameterList",responses:"Responses",schemes:{type:"array",items:{type:"string"}},deprecated:{type:"boolean"},security:"SecurityRequirementList","x-codeSamples":"XCodeSampleList","x-code-samples":"XCodeSampleList","x-hideTryItPanel":{type:"boolean"}},required:["responses"],extensionsPrefix:"x-"},kVe={properties:{lang:{type:"string"},label:{type:"string"},source:{type:"string"}}},$Ve={properties:{url:{type:"string"},description:{type:"string"}},required:["url"]},EVe={properties:{description:{type:"string"},url:{type:"string"}},required:["url"],extensionsPrefix:"x-"},AVe={properties:{name:{type:"string"},in:{type:"string",enum:["query","header","path","formData","body"]},description:{type:"string"},required:{type:"boolean"},schema:"Schema",type:{type:"string",enum:["string","number","integer","boolean","array","file"]},format:{type:"string"},allowEmptyValue:{type:"boolean"},items:"ParameterItems",collectionFormat:{type:"string",enum:["csv","ssv","tsv","pipes","multi"]},default:null,maximum:{type:"integer"},exclusiveMaximum:{type:"boolean"},minimum:{type:"integer"},exclusiveMinimum:{type:"boolean"},maxLength:{type:"integer"},minLength:{type:"integer"},pattern:{type:"string"},maxItems:{type:"integer"},minItems:{type:"integer"},uniqueItems:{type:"boolean"},enum:{type:"array"},multipleOf:{type:"number"},"x-example":{},"x-examples":"ExamplesMap"},required(t){return!t||!t.in?["name","in"]:t.in==="body"?["name","in","schema"]:t.type==="array"?["name","in","type","items"]:["name","in","type"]},extensionsPrefix:"x-"},IVe={properties:{type:{type:"string",enum:["string","number","integer","boolean","array"]},format:{type:"string"},items:"ParameterItems",collectionFormat:{type:"string",enum:["csv","ssv","tsv","pipes","multi"]},default:null,maximum:{type:"integer"},exclusiveMaximum:{type:"boolean"},minimum:{type:"integer"},exclusiveMinimum:{type:"boolean"},maxLength:{type:"integer"},minLength:{type:"integer"},pattern:{type:"string"},maxItems:{type:"integer"},minItems:{type:"integer"},uniqueItems:{type:"boolean"},enum:{type:"array"},multipleOf:{type:"number"}},required(t){return t&&t.type==="array"?["type","items"]:["type"]},extensionsPrefix:"x-"},TVe={properties:{default:"Response"},additionalProperties:(t,e)=>yVe.test(e)?"Response":void 0},_Ve={properties:{description:{type:"string"},schema:"Schema",headers:Ge("Header"),examples:"Examples","x-summary":{type:"string"}},required:["description"],extensionsPrefix:"x-"},RVe={properties:{},additionalProperties:{isExample:!0}},jVe={properties:{description:{type:"string"},type:{type:"string",enum:["string","number","integer","boolean","array"]},format:{type:"string"},items:"ParameterItems",collectionFormat:{type:"string",enum:["csv","ssv","tsv","pipes","multi"]},default:null,maximum:{type:"integer"},exclusiveMaximum:{type:"boolean"},minimum:{type:"integer"},exclusiveMinimum:{type:"boolean"},maxLength:{type:"integer"},minLength:{type:"integer"},pattern:{type:"string"},maxItems:{type:"integer"},minItems:{type:"integer"},uniqueItems:{type:"boolean"},enum:{type:"array"},multipleOf:{type:"number"}},required(t){return t&&t.type==="array"?["type","items"]:["type"]},extensionsPrefix:"x-"},DVe={properties:{name:{type:"string"},description:{type:"string"},externalDocs:"ExternalDocs","x-traitTag":{type:"boolean"},"x-displayName":{type:"string"}},required:["name"],extensionsPrefix:"x-"},MVe={properties:{name:{type:"string"},tags:{type:"array",items:{type:"string"}}}},NVe={properties:{format:{type:"string"},title:{type:"string"},description:{type:"string"},default:null,multipleOf:{type:"number"},maximum:{type:"number"},minimum:{type:"number"},exclusiveMaximum:{type:"boolean"},exclusiveMinimum:{type:"boolean"},maxLength:{type:"number"},minLength:{type:"number"},pattern:{type:"string"},maxItems:{type:"number"},minItems:{type:"number"},uniqueItems:{type:"boolean"},maxProperties:{type:"number"},minProperties:{type:"number"},required:{type:"array",items:{type:"string"}},enum:{type:"array"},type:{type:"string",enum:["object","array","string","number","integer","boolean","null"]},items:t=>Array.isArray(t)?Ke("Schema"):"Schema",allOf:Ke("Schema"),properties:"SchemaProperties",additionalProperties:t=>typeof t=="boolean"?{type:"boolean"}:"Schema",discriminator:{type:"string"},readOnly:{type:"boolean"},xml:"Xml",externalDocs:"ExternalDocs",example:{isExample:!0},"x-tags":{type:"array",items:{type:"string"}},"x-nullable":{type:"boolean"},"x-extendedDiscriminator":{type:"string"},"x-additionalPropertiesName":{type:"string"},"x-explicitMappingOnly":{type:"boolean"},"x-enumDescriptions":"EnumDescriptions"},extensionsPrefix:"x-"},LVe={properties:{},additionalProperties:{type:"string"}},QVe={properties:{},additionalProperties:"Schema"},VVe={properties:{name:{type:"string"},namespace:{type:"string"},prefix:{type:"string"},attribute:{type:"boolean"},wrapped:{type:"boolean"}},extensionsPrefix:"x-"},zVe={properties:{type:{enum:["basic","apiKey","oauth2"]},description:{type:"string"},name:{type:"string"},in:{type:"string",enum:["query","header"]},flow:{enum:["implicit","password","application","accessCode"]},authorizationUrl:{type:"string"},tokenUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},"x-defaultClientId":{type:"string"}},required(t){switch(t==null?void 0:t.type){case"apiKey":return["type","name","in"];case"oauth2":switch(t==null?void 0:t.flow){case"implicit":return["type","flow","authorizationUrl","scopes"];case"accessCode":return["type","flow","authorizationUrl","tokenUrl","scopes"];case"application":case"password":return["type","flow","tokenUrl","scopes"];default:return["type","flow","scopes"]}default:return["type"]}},allowed(t){switch(t==null?void 0:t.type){case"basic":return["type","description"];case"apiKey":return["type","name","in","description"];case"oauth2":switch(t==null?void 0:t.flow){case"implicit":return["type","flow","authorizationUrl","description","scopes"];case"accessCode":return["type","flow","authorizationUrl","tokenUrl","description","scopes"];case"application":case"password":return["type","flow","tokenUrl","description","scopes"];default:return["type","flow","tokenUrl","authorizationUrl","description","scopes"]}default:return["type","description"]}},extensionsPrefix:"x-"},BVe={properties:{},additionalProperties:{type:"array",items:{type:"string"}}},qVe={properties:{value:{isExample:!0},summary:{type:"string"},description:{type:"string"},externalValue:{type:"string"}},extensionsPrefix:"x-"},FVe={Root:vVe,Tag:DVe,TagList:Ke("Tag"),TagGroups:Ke("TagGroup"),TagGroup:MVe,ExternalDocs:EVe,Example:qVe,ExamplesMap:Ge("Example"),EnumDescriptions:LVe,SecurityRequirement:BVe,SecurityRequirementList:Ke("SecurityRequirement"),Info:bVe,Contact:xVe,License:SVe,Logo:OVe,Paths:wVe,PathItem:CVe,Parameter:AVe,ParameterItems:IVe,ParameterList:Ke("Parameter"),Operation:PVe,Examples:RVe,Header:jVe,Responses:TVe,Response:_Ve,Schema:NVe,Xml:VVe,SchemaProperties:QVe,NamedSchemas:Ge("Schema"),NamedResponses:Ge("Response"),NamedParameters:Ge("Parameter"),NamedSecuritySchemes:Ge("SecurityScheme"),SecurityScheme:zVe,XCodeSample:kVe,XCodeSampleList:Ke("XCodeSample"),XServerList:Ke("XServer"),XServer:$Ve},WVe={properties:{asyncapi:null,info:"Info",id:{type:"string"},servers:"ServerMap",channels:"ChannelMap",components:"Components",tags:"TagList",externalDocs:"ExternalDocs",defaultContentType:{type:"string"}},required:["asyncapi","channels","info"]},UVe={properties:{description:{type:"string"},subscribe:"Operation",publish:"Operation",parameters:"ParametersMap",bindings:"ChannelBindings",servers:{type:"array",items:{type:"string"}}}},XVe={properties:{},additionalProperties:"Channel"},Qn={properties:{},allowed(){return["http","ws","kafka","anypointmq","amqp","amqp1","mqtt","mqtt5","nats","jms","sns","solace","sqs","stomp","redis","mercure","ibmmq","googlepubsub","pulsar"]},additionalProperties:{type:"object"}},E8={properties:{name:{type:"string"},description:{type:"string"},externalDocs:"ExternalDocs"},required:["name"]},A8={properties:{description:{type:"string"},url:{type:"string"}},required:["url"]},ZVe={properties:{},additionalProperties:{type:"array",items:{type:"string"}}},Vn={properties:{},allowed(){return["http","ws","kafka","anypointmq","amqp","amqp1","mqtt","mqtt5","nats","jms","sns","solace","sqs","stomp","redis","mercure","ibmmq","googlepubsub","pulsar"]},additionalProperties:{type:"object"}},GVe={properties:{url:{type:"string"},protocol:{type:"string"},protocolVersion:{type:"string"},description:{type:"string"},variables:"ServerVariablesMap",security:"SecurityRequirementList",bindings:"ServerBindings",tags:"TagList"},required:["url","protocol"]},I8={properties:{},additionalProperties:(t,e)=>e.match(/^[A-Za-z0-9_\-]+$/)?"Server":void 0},T8={properties:{enum:{type:"array",items:{type:"string"}},default:{type:"string"},description:{type:"string"},examples:{type:"array",items:{type:"string"}}},required:[]},YVe={properties:{title:{type:"string"},version:{type:"string"},description:{type:"string"},termsOfService:{type:"string"},contact:"Contact",license:"License"},required:["title","version"]},_8={properties:{name:{type:"string"},url:{type:"string"},email:{type:"string"}}},R8={properties:{name:{type:"string"},url:{type:"string"}},required:["name"]},HVe={properties:{description:{type:"string"},schema:"Schema",location:{type:"string"}}},j8={properties:{description:{type:"string"},location:{type:"string"}},required:["location"]},JVe={properties:{messageId:{type:"string"},headers:"Schema",payload:"Schema",correlationId:"CorrelationId",schemaFormat:{type:"string"},contentType:{type:"string"},name:{type:"string"},title:{type:"string"},summary:{type:"string"},description:{type:"string"},tags:"TagList",externalDocs:"ExternalDocs",bindings:"MessageBindings",examples:"MessageExampleList",traits:"MessageTraitList"},additionalProperties:{}},Sn={properties:{},allowed(){return["http","ws","kafka","anypointmq","amqp","amqp1","mqtt","mqtt5","nats","jms","sns","solace","sqs","stomp","redis","mercure","ibmmq","googlepubsub","pulsar"]},additionalProperties:{type:"object"}},wn={properties:{},allowed(){return["http","ws","kafka","anypointmq","amqp","amqp1","mqtt","mqtt5","nats","jms","sns","solace","sqs","stomp","redis","mercure","ibmmq","googlepubsub","pulsar"]},additionalProperties:{type:"object"}},KVe={properties:{tags:"TagList",summary:{type:"string"},description:{type:"string"},externalDocs:"ExternalDocs",operationId:{type:"string"},security:"SecurityRequirementList",bindings:"OperationBindings"},required:[]},eze={properties:{messageId:{type:"string"},headers:"Schema",correlationId:"CorrelationId",schemaFormat:{type:"string"},contentType:{type:"string"},name:{type:"string"},title:{type:"string"},summary:{type:"string"},description:{type:"string"},tags:"TagList",externalDocs:"ExternalDocs",bindings:"MessageBindings",examples:"MessageExampleList"},additionalProperties:{}},tze={properties:{tags:"TagList",summary:{type:"string"},description:{type:"string"},externalDocs:"ExternalDocs",operationId:{type:"string"},security:"SecurityRequirementList",bindings:"OperationBindings",traits:"OperationTraitList",message:"Message"},required:[]},D8={properties:{payload:{isExample:!0},summary:{type:"string"},name:{type:"string"},headers:{type:"object"}}},M8={properties:{$id:{type:"string"},$schema:{type:"string"},definitions:"NamedSchemas",externalDocs:"ExternalDocs",discriminator:"Discriminator",myArbitraryKeyword:{type:"boolean"},title:{type:"string"},multipleOf:{type:"number",minimum:0},maximum:{type:"number"},minimum:{type:"number"},exclusiveMaximum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{type:"integer",minimum:0},minLength:{type:"integer",minimum:0},pattern:{type:"string"},maxItems:{type:"integer",minimum:0},minItems:{type:"integer",minimum:0},uniqueItems:{type:"boolean"},maxProperties:{type:"integer",minimum:0},minProperties:{type:"integer",minimum:0},required:{type:"array",items:{type:"string"}},enum:{type:"array"},type:t=>Array.isArray(t)?{type:"array",items:{enum:["object","array","string","number","integer","boolean","null"]}}:{enum:["object","array","string","number","integer","boolean","null"]},allOf:Ke("Schema"),anyOf:Ke("Schema"),oneOf:Ke("Schema"),not:"Schema",if:"Schema",then:"Schema",else:"Schema",contains:"Schema",patternProperties:{type:"object"},propertyNames:"Schema",properties:"SchemaProperties",items:t=>Array.isArray(t)?Ke("Schema"):"Schema",additionalProperties:t=>typeof t=="boolean"?{type:"boolean"}:"Schema",description:{type:"string"},format:{type:"string"},contentEncoding:{type:"string"},contentMediaType:{type:"string"},default:null,readOnly:{type:"boolean"},writeOnly:{type:"boolean"},examples:{type:"array"},example:{isExample:!0},deprecated:{type:"boolean"},const:null,$comment:{type:"string"},additionalItems:t=>typeof t=="boolean"?{type:"boolean"}:"Schema",dependencies:"Dependencies"}},N8={properties:{},additionalProperties:t=>typeof t=="boolean"?{type:"boolean"}:"Schema"},L8={properties:{},additionalProperties:t=>c8(t)?{type:"string",directResolveAs:"Schema"}:{type:"string"}},Q8={properties:{propertyName:{type:"string"},mapping:"DiscriminatorMapping"},required:["propertyName"]},rze={properties:{messages:"NamedMessages",parameters:"NamedParameters",schemas:"NamedSchemas",correlationIds:"NamedCorrelationIds",messageTraits:"NamedMessageTraits",operationTraits:"NamedOperationTraits",securitySchemes:"NamedSecuritySchemes",servers:"ServerMap",serverVariables:"ServerVariablesMap",channels:"ChannelMap",serverBindings:"ServerBindings",channelBindings:"ChannelBindings",operationBindings:"OperationBindings",messageBindings:"MessageBindings"}},nze={properties:{refreshUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},authorizationUrl:{type:"string"}},required:["authorizationUrl","scopes"]},ize={properties:{refreshUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["tokenUrl","scopes"]},oze={properties:{refreshUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["tokenUrl","scopes"]},sze={properties:{refreshUrl:{type:"string"},authorizationUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["authorizationUrl","tokenUrl","scopes"]},V8={properties:{implicit:"ImplicitFlow",password:"PasswordFlow",clientCredentials:"ClientCredentials",authorizationCode:"AuthorizationCode"}},aze={properties:{type:{enum:["userPassword","apiKey","X509","symmetricEncryption","asymmetricEncryption","httpApiKey","http","oauth2","openIdConnect","plain","scramSha256","scramSha512","gssapi"]},description:{type:"string"},name:{type:"string"},in:{type:"string",enum:["query","header","cookie","user","password"]},scheme:{type:"string"},bearerFormat:{type:"string"},flows:"SecuritySchemeFlows",openIdConnectUrl:{type:"string"}},required(t){switch(t==null?void 0:t.type){case"apiKey":return["type","in"];case"httpApiKey":return["type","name","in"];case"http":return["type","scheme"];case"oauth2":return["type","flows"];case"openIdConnect":return["type","openIdConnectUrl"];default:return["type"]}},allowed(t){switch(t==null?void 0:t.type){case"apiKey":return["type","in","description"];case"httpApiKey":return["type","name","in","description"];case"http":return["type","scheme","bearerFormat","description"];case"oauth2":return["type","flows","description"];case"openIdConnect":return["type","openIdConnectUrl","description"];default:return["type","description"]}},extensionsPrefix:"x-"},z8={properties:{},additionalProperties:t=>Array.isArray(t)?{type:"array",items:{type:"string"}}:"Schema"},B8={properties:{}};Qn.properties.http=B8;const q8={properties:{}};Vn.properties.http=q8;const F8={properties:{headers:"Schema",bindingVersion:{type:"string"}}};Sn.properties.http=F8;const W8={properties:{type:{type:"string"},method:{type:"string",enum:["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS","CONNECT","TRACE"]},headers:"Schema",bindingVersion:{type:"string"}}};wn.properties.http=W8;const U8={properties:{method:{type:"string"},query:"Schema",headers:"Schema",bindingVersion:{type:"string"}}};Qn.properties.ws=U8;const X8={properties:{}};Vn.properties.ws=X8;const Z8={properties:{}};Sn.properties.ws=Z8;const G8={properties:{}};wn.properties.ws=G8;const lze={properties:{"cleanup.policy":{type:"array",items:{enum:["delete","compact"]}},"retention.ms":{type:"integer"},"retention.bytes":{type:"integer"},"delete.retention.ms":{type:"integer"},"max.message.bytes":{type:"integer"}}},Y8={properties:{topic:{type:"string"},partitions:{type:"integer"},replicas:{type:"integer"},topicConfiguration:"KafkaTopicConfiguration",bindingVersion:{type:"string"}}};Qn.properties.kafka=Y8;const H8={properties:{}};Vn.properties.kafka=H8;const J8={properties:{key:"Schema",schemaIdLocation:{type:"string"},schemaIdPayloadEncoding:{type:"string"},schemaLookupStrategy:{type:"string"},bindingVersion:{type:"string"}}};Sn.properties.kafka=J8;const K8={properties:{groupId:"Schema",clientId:"Schema",bindingVersion:{type:"string"}}};wn.properties.kafka=K8;const e6={properties:{destination:{type:"string"},destinationType:{type:"string"},bindingVersion:{type:"string"}}};Qn.properties.anypointmq=e6;const t6={properties:{}};Vn.properties.anypointmq=t6;const r6={properties:{headers:"Schema",bindingVersion:{type:"string"}}};Sn.properties.anypointmq=r6;const n6={properties:{}};wn.properties.anypointmq=n6;const i6={properties:{}};Qn.properties.amqp=i6;const o6={properties:{}};Vn.properties.amqp=o6;const s6={properties:{contentEncoding:{type:"string"},messageType:{type:"string"},bindingVersion:{type:"string"}}};Sn.properties.amqp=s6;const a6={properties:{expiration:{type:"integer"},userId:{type:"string"},cc:{type:"array",items:{type:"string"}},priority:{type:"integer"},deliveryMode:{type:"integer"},mandatory:{type:"boolean"},bcc:{type:"array",items:{type:"string"}},replyTo:{type:"string"},timestamp:{type:"boolean"},ack:{type:"boolean"},bindingVersion:{type:"string"}}};wn.properties.amqp=a6;const l6={properties:{}};Qn.properties.amqp1=l6;const c6={properties:{}};Vn.properties.amqp1=c6;const u6={properties:{}};Sn.properties.amqp1=u6;const d6={properties:{}};wn.properties.amqp1=d6;const f6={properties:{qos:{type:"integer"},retain:{type:"boolean"},bindingVersion:{type:"string"}}};Qn.properties.mqtt=f6;const cze={properties:{topic:{type:"string"},qos:{type:"integer"},message:{type:"string"},retain:{type:"boolean"}}},h6={properties:{clientId:{type:"string"},cleanSession:{type:"boolean"},lastWill:"MqttServerBindingLastWill",keepAlive:{type:"integer"},bindingVersion:{type:"string"}}};Vn.properties.mqtt=h6;const p6={properties:{bindingVersion:{type:"string"}}};Sn.properties.mqtt=p6;const g6={properties:{qos:{type:"integer"},retain:{type:"boolean"},bindingVersion:{type:"string"}}};wn.properties.mqtt=g6;const m6={properties:{}};Qn.properties.mqtt5=m6;const y6={properties:{}};Vn.properties.mqtt5=y6;const v6={properties:{}};Sn.properties.mqtt5=v6;const b6={properties:{}};wn.properties.mqtt5=b6;const O6={properties:{}};Qn.properties.nats=O6;const x6={properties:{}};Vn.properties.nats=x6;const S6={properties:{}};Sn.properties.nats=S6;const w6={properties:{queue:{type:"string"},bindingVersion:{type:"string"}}};wn.properties.nats=w6;const C6={properties:{destination:{type:"string"},destinationType:{type:"string"},bindingVersion:{type:"string"}}};Qn.properties.jms=C6;const P6={properties:{}};Vn.properties.jms=P6;const k6={properties:{headers:"Schema",bindingVersion:{type:"string"}}};Sn.properties.jms=k6;const $6={properties:{headers:"Schema",bindingVersion:{type:"string"}}};wn.properties.jms=$6;const E6={properties:{}};Qn.properties.solace=E6;const A6={properties:{bindingVersion:{type:"string"},msgVpn:{type:"string"}}};Vn.properties.solace=A6;const I6={properties:{}};Sn.properties.solace=I6;const uze={properties:{destinationType:{type:"string",enum:["queue","topic"]},deliveryMode:{type:"string",enum:["direct","persistent"]},"queue.name":{type:"string"},"queue.topicSubscriptions":{type:"array",items:{type:"string"}},"queue.accessType":{type:"string",enum:["exclusive","nonexclusive"]},"queue.maxMsgSpoolSize":{type:"string"},"queue.maxTtl":{type:"string"},"topic.topicSubscriptions":{type:"array",items:{type:"string"}}}},T6={properties:{bindingVersion:{type:"string"},destinations:Ke("SolaceDestination")}};wn.properties.solace=T6;const _6={properties:{}};Qn.properties.stomp=_6;const R6={properties:{}};Vn.properties.stomp=R6;const j6={properties:{}};Sn.properties.stomp=j6;const D6={properties:{}};wn.properties.stomp=D6;const M6={properties:{}};Qn.properties.redis=M6;const N6={properties:{}};Vn.properties.redis=N6;const L6={properties:{}};Sn.properties.redis=L6;const Q6={properties:{}};wn.properties.redis=Q6;const V6={properties:{}};Qn.properties.mercure=V6;const z6={properties:{}};Vn.properties.mercure=z6;const B6={properties:{}};Sn.properties.mercure=B6;const q6={properties:{}};wn.properties.mercure=q6;const F6={HttpServerBinding:q8,HttpChannelBinding:B8,HttpMessageBinding:F8,HttpOperationBinding:W8,WsServerBinding:X8,WsChannelBinding:U8,WsMessageBinding:Z8,WsOperationBinding:G8,KafkaServerBinding:H8,KafkaTopicConfiguration:lze,KafkaChannelBinding:Y8,KafkaMessageBinding:J8,KafkaOperationBinding:K8,AnypointmqServerBinding:t6,AnypointmqChannelBinding:e6,AnypointmqMessageBinding:r6,AnypointmqOperationBinding:n6,AmqpServerBinding:o6,AmqpChannelBinding:i6,AmqpMessageBinding:s6,AmqpOperationBinding:a6,Amqp1ServerBinding:c6,Amqp1ChannelBinding:l6,Amqp1MessageBinding:u6,Amqp1OperationBinding:d6,MqttServerBindingLastWill:cze,MqttServerBinding:h6,MqttChannelBinding:f6,MqttMessageBinding:p6,MqttOperationBinding:g6,Mqtt5ServerBinding:y6,Mqtt5ChannelBinding:m6,Mqtt5MessageBinding:v6,Mqtt5OperationBinding:b6,NatsServerBinding:x6,NatsChannelBinding:O6,NatsMessageBinding:S6,NatsOperationBinding:w6,JmsServerBinding:P6,JmsChannelBinding:C6,JmsMessageBinding:k6,JmsOperationBinding:$6,SolaceServerBinding:A6,SolaceChannelBinding:E6,SolaceMessageBinding:I6,SolaceDestination:uze,SolaceOperationBinding:T6,StompServerBinding:R6,StompChannelBinding:_6,StompMessageBinding:j6,StompOperationBinding:D6,RedisServerBinding:N6,RedisChannelBinding:M6,RedisMessageBinding:L6,RedisOperationBinding:Q6,MercureServerBinding:z6,MercureChannelBinding:V6,MercureMessageBinding:B6,MercureOperationBinding:q6,ServerBindings:Vn,ChannelBindings:Qn,MessageBindings:Sn,OperationBindings:wn},dze={...F6,Root:WVe,Tag:E8,TagList:Ke("Tag"),ServerMap:I8,ExternalDocs:A8,Server:GVe,ServerVariable:T8,ServerVariablesMap:Ge("ServerVariable"),SecurityRequirement:ZVe,SecurityRequirementList:Ke("SecurityRequirement"),Info:YVe,Contact:_8,License:R8,ChannelMap:XVe,Channel:UVe,Parameter:HVe,ParametersMap:Ge("Parameter"),Operation:tze,Schema:M8,MessageExample:D8,SchemaProperties:N8,DiscriminatorMapping:L8,Discriminator:Q8,Components:rze,NamedSchemas:Ge("Schema"),NamedMessages:Ge("Message"),NamedMessageTraits:Ge("MessageTrait"),NamedOperationTraits:Ge("OperationTrait"),NamedParameters:Ge("Parameter"),NamedSecuritySchemes:Ge("SecurityScheme"),NamedCorrelationIds:Ge("CorrelationId"),ImplicitFlow:nze,PasswordFlow:ize,ClientCredentials:oze,AuthorizationCode:sze,SecuritySchemeFlows:V8,SecurityScheme:aze,Message:JVe,MessageBindings:Sn,OperationBindings:wn,OperationTrait:KVe,OperationTraitList:Ke("OperationTrait"),MessageTrait:eze,MessageTraitList:Ke("MessageTrait"),MessageExampleList:Ke("MessageExample"),CorrelationId:j8,Dependencies:z8},fze={properties:{asyncapi:{type:"string",enum:["3.0.0"]},info:"Info",id:{type:"string"},servers:"ServerMap",channels:"NamedChannels",components:"Components",operations:"NamedOperations",defaultContentType:{type:"string"}},required:["asyncapi","info"]},hze={properties:{address:{type:"string"},messages:"NamedMessages",title:{type:"string"},summary:{type:"string"},description:{type:"string"},servers:"ServerList",parameters:"ParametersMap",bindings:"ChannelBindings",tags:"TagList",externalDocs:"ExternalDocs"}},pze={properties:{host:{type:"string"},pathname:{type:"string"},protocol:{type:"string"},protocolVersion:{type:"string"},description:{type:"string"},variables:"ServerVariablesMap",security:"SecuritySchemeList",bindings:"ServerBindings",externalDocs:"ExternalDocs",tags:"TagList"},required:["host","protocol"]},gze={properties:{title:{type:"string"},version:{type:"string"},description:{type:"string"},termsOfService:{type:"string"},contact:"Contact",license:"License",tags:"TagList",externalDocs:"ExternalDocs"},required:["title","version"]},mze={properties:{description:{type:"string"},enum:{type:"array",items:{type:"string"}},default:{type:"string"},examples:{type:"array",items:{type:"string"}},location:{type:"string"}}},yze={properties:{headers:"Schema",payload:t=>t&&(t!=null&&t.schemaFormat)?{properties:{schema:"Schema",schemaFormat:{type:"string"}},required:["schema","schemaFormat"]}:"Schema",correlationId:"CorrelationId",contentType:{type:"string"},name:{type:"string"},title:{type:"string"},summary:{type:"string"},description:{type:"string"},tags:"TagList",externalDocs:"ExternalDocs",bindings:"MessageBindings",examples:"MessageExampleList",traits:"MessageTraitList"},additionalProperties:{}},vze={properties:{tags:"TagList",title:{type:"string"},summary:{type:"string"},description:{type:"string"},externalDocs:"ExternalDocs",security:"SecuritySchemeList",bindings:"OperationBindings"},required:[]},bze={properties:{headers:t=>typeof t=="function"||typeof t=="object"&&t?{properties:{schema:"Schema",schemaFormat:{type:"string"}}}:"Schema",correlationId:"CorrelationId",contentType:{type:"string"},name:{type:"string"},title:{type:"string"},summary:{type:"string"},description:{type:"string"},tags:"TagList",externalDocs:"ExternalDocs",bindings:"MessageBindings",examples:"MessageExampleList"},additionalProperties:{}},Oze={properties:{action:{type:"string",enum:["send","receive"]},channel:"Channel",title:{type:"string"},tags:"TagList",summary:{type:"string"},description:{type:"string"},externalDocs:"ExternalDocs",operationId:{type:"string"},security:"SecuritySchemeList",bindings:"OperationBindings",traits:"OperationTraitList",messages:"MessageList",reply:"OperationReply"},required:["action","channel"]},xze={properties:{channel:"Channel",messages:"MessageList",address:"OperationReplyAddress"}},Sze={properties:{location:{type:"string"},description:{type:"string"}},required:["location"]},wze={properties:{messages:"NamedMessages",parameters:"NamedParameters",schemas:"NamedSchemas",replies:"NamedOperationReplies",replyAddresses:"NamedOperationRelyAddresses",correlationIds:"NamedCorrelationIds",messageTraits:"NamedMessageTraits",operationTraits:"NamedOperationTraits",tags:"NamedTags",externalDocs:"NamedExternalDocs",securitySchemes:"NamedSecuritySchemes",servers:"ServerMap",serverVariables:"ServerVariablesMap",channels:"NamedChannels",operations:"NamedOperations",serverBindings:"ServerBindings",channelBindings:"ChannelBindings",operationBindings:"OperationBindings",messageBindings:"MessageBindings"}},Cze={properties:{refreshUrl:{type:"string"},availableScopes:{type:"object",additionalProperties:{type:"string"}},authorizationUrl:{type:"string"}},required:["authorizationUrl","availableScopes"]},Pze={properties:{refreshUrl:{type:"string"},availableScopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["tokenUrl","availableScopes"]},kze={properties:{refreshUrl:{type:"string"},availableScopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["tokenUrl","availableScopes"]},$ze={properties:{refreshUrl:{type:"string"},authorizationUrl:{type:"string"},availableScopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["authorizationUrl","tokenUrl","availableScopes"]},Eze={properties:{type:{enum:["userPassword","apiKey","X509","symmetricEncryption","asymmetricEncryption","httpApiKey","http","oauth2","openIdConnect","plain","scramSha256","scramSha512","gssapi"]},description:{type:"string"},name:{type:"string"},in:{type:"string",enum:["query","header","cookie","user","password"]},scheme:{type:"string"},bearerFormat:{type:"string"},flows:"SecuritySchemeFlows",openIdConnectUrl:{type:"string"},scopes:{type:"array",items:{type:"string"}}},required(t){switch(t==null?void 0:t.type){case"apiKey":return["type","in"];case"httpApiKey":return["type","name","in"];case"http":return["type","scheme"];case"oauth2":return["type","flows"];case"openIdConnect":return["type","openIdConnectUrl"];default:return["type"]}},allowed(t){switch(t==null?void 0:t.type){case"apiKey":return["type","in","description"];case"httpApiKey":return["type","name","in","description"];case"http":return["type","scheme","bearerFormat","description"];case"oauth2":return["type","flows","description","scopes"];case"openIdConnect":return["type","openIdConnectUrl","description","scopes"];default:return["type","description"]}},extensionsPrefix:"x-"},Aze={...F6,CorrelationId:j8,SecuritySchemeFlows:V8,ServerVariable:T8,Contact:_8,License:R8,MessageExample:D8,Tag:E8,Dependencies:z8,Schema:M8,Discriminator:Q8,DiscriminatorMapping:L8,SchemaProperties:N8,ServerMap:I8,ExternalDocs:A8,Root:fze,Channel:hze,Parameter:mze,Info:gze,Server:pze,MessageTrait:bze,Operation:Oze,OperationReply:xze,OperationReplyAddress:Sze,Components:wze,ImplicitFlow:Cze,PasswordFlow:Pze,ClientCredentials:kze,AuthorizationCode:$ze,SecurityScheme:Eze,Message:yze,OperationTrait:vze,ServerVariablesMap:Ge("ServerVariable"),NamedTags:Ge("Tag"),NamedExternalDocs:Ge("ExternalDocs"),NamedChannels:Ge("Channel"),ParametersMap:Ge("Parameter"),NamedOperations:Ge("Operation"),NamedOperationReplies:Ge("OperationReply"),NamedOperationRelyAddresses:Ge("OperationReplyAddress"),NamedSchemas:Ge("Schema"),NamedMessages:Ge("Message"),NamedMessageTraits:Ge("MessageTrait"),NamedOperationTraits:Ge("OperationTrait"),NamedParameters:Ge("Parameter"),NamedSecuritySchemes:Ge("SecurityScheme"),NamedCorrelationIds:Ge("CorrelationId"),ServerList:Ke("Server"),SecuritySchemeList:Ke("SecurityScheme"),MessageList:Ke("Message"),OperationTraitList:Ke("OperationTrait"),MessageTraitList:Ke("MessageTrait"),MessageExampleList:Ke("MessageExample"),TagList:Ke("Tag")},W6={hide:{type:"boolean",default:!1},component:{type:"string",enum:["radio","checkbox"],default:"checkbox"},label:{type:"string"},items:{type:"array",items:{type:"string"}}},_f={type:"object",properties:W6,additionalProperties:!1},Ize={type:"object",properties:{hide:{type:"boolean",default:!1},label:{type:"string"},placeholder:{type:"string"}},additionalProperties:!1},hS={type:"object",properties:{hide:{type:"boolean",default:!1},type:{type:"string",enum:["rating","sentiment","comment","reasons","mood","scale"],default:"sentiment"},settings:{type:"object",properties:{label:{type:"string"},submitText:{type:"string"},buttonText:{type:"string"},component:{type:"string",enum:["radio","checkbox"],default:"checkbox"},items:{type:"array",items:{type:"string"},minItems:1},leftScaleLabel:{type:"string"},rightScaleLabel:{type:"string"},reasons:{type:"object",properties:Object.assign(Object.assign({},W6),{like:_f,dislike:_f,satisfied:_f,neutral:_f,dissatisfied:_f}),additionalProperties:!1},comment:{type:"object",properties:{hide:{type:"boolean",default:!1},label:{type:"string"},likeLabel:{type:"string"},dislikeLabel:{type:"string"},satisfiedLabel:{type:"string"},neutralLabel:{type:"string"},dissatisfiedLabel:{type:"string"}},additionalProperties:!1},optionalEmail:Ize},additionalProperties:!1}},additionalProperties:!1},Tze={type:"object",properties:{languages:{type:"array",items:{type:"object",properties:{lang:{type:"string",examples:["curl","JavaScript","Node.js","Python","Java8+Apache","Java","C#","C#+Newtonsoft","PHP","Go","Ruby","R","Payload"]},label:{type:"string"},options:{type:"object",properties:{indent:{type:"string"},withImports:{type:"boolean"},withComments:{type:"boolean"},binary:{type:"boolean"},credentials:{type:"string",enum:["omit","same-origin","include"]}},additionalProperties:!1}},required:["lang"],additionalProperties:!1}},skipOptionalParameters:{type:"boolean"},withOAuth2Call:{type:"boolean"}},additionalProperties:!1},U6={type:"array",items:{type:"object",properties:{title:{type:"string"},url:{type:"string"}},required:["url"],additionalProperties:!1}},hV={type:"object",properties:{licenseKey:{type:"string"},hideLoading:{type:"boolean"},disableRouter:{type:"boolean"},hideSidebar:{type:"boolean"},feedback:hS,hideReplay:{type:"boolean"},oAuth2RedirectURI:{type:"string",nullable:!0},corsProxyUrl:{type:"string"},sortRequiredPropsFirst:{type:"boolean"},sanitize:{type:"boolean"},hideDownloadButtons:{type:"boolean"},downloadUrls:U6,onlyRequiredInSamples:{type:"boolean"},generatedSamplesMaxDepth:{oneOf:[{type:"number"},{type:"string"}]},showExtensions:{oneOf:[{type:"boolean"},{type:"string"},{type:"array",items:{type:"string"}}]},hideSchemaTitles:{type:"boolean"},jsonSamplesExpandLevel:{oneOf:[{type:"number"},{type:"string"}]},schemasExpansionLevel:{oneOf:[{type:"number"},{type:"string"}]},mockServer:{type:"object",properties:{url:{type:"string"},position:{type:"string",enum:["first","last","replace","off"]},description:{type:"string"}}},maxDisplayedEnumValues:{type:"number"},schemaDefinitionsTagName:{type:"string"},layout:{type:"string",enum:["stacked","three-panel"]},hideInfoMetadata:{type:"boolean"},events:{type:"object"},skipBundle:{type:"boolean"},routingBasePath:{type:"string"},codeSamples:Tze,ignoreNamedSchemas:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},hidePropertiesPrefix:{type:"boolean"},excludeFromSearch:{type:"boolean"}},additionalProperties:!1},Zc={type:"object",properties:{includeByName:{type:"array",items:{type:"string"}},excludeByName:{type:"array",items:{type:"string"}}},additionalProperties:!1},_ze={type:"object",properties:{name:{type:"string"},items:Zc,queries:Zc,mutations:Zc,subscriptions:Zc,types:Zc,directives:Zc},required:["name"],additionalProperties:!1},Rze={properties:{requireExactGroups:{type:"boolean"},groups:{type:"array",items:_ze},otherItemsGroupName:{type:"string"}}},A0={type:"object",properties:{menu:{type:"object",properties:Object.assign({},Rze.properties),additionalProperties:!1},sidebar:{type:"object",properties:{hide:{type:"boolean"}}},downloadUrls:U6,apiLogo:{type:"object",properties:{imageUrl:{type:"string"},href:{type:"string"},altText:{type:"string"},backgroundColor:{type:"string"}}},jsonSamplesDepth:{type:"number"},samplesMaxInlineArgs:{type:"number"},licenseKey:{type:"string"},fieldExpandLevel:{type:"number"},baseUrlPath:{type:"string"},metadata:{type:"object",properties:{apiId:{type:"string"}},additionalProperties:!0},feedback:hS},additionalProperties:!1},jze={type:"object",properties:{label:{type:"string"},lang:{enum:["curl","C#","Go","Java","Java8+Apache","JavaScript","Node.js","PHP","Python","R","Ruby"]}},required:["lang"]},Dze={type:"object",properties:{enum:{type:"string"},enumSingleValue:{type:"string"},enumArray:{type:"string"},default:{type:"string"},deprecated:{type:"string"},example:{type:"string"},examples:{type:"string"},nullable:{type:"string"},recursive:{type:"string"},arrayOf:{type:"string"},webhook:{type:"string"},authorizations:{type:"string"},tryItAuthBasicUsername:{type:"string"},tryItAuthBasicPassword:{type:"string"}}},pV={type:"object",properties:{label:{type:"string"},link:{type:"string"},target:{type:"string"}},required:["label","link"]},Mze={type:"object",properties:{beforeInfo:{type:"array",items:pV},end:{type:"array",items:pV}}},Nl={type:"object",properties:{main:{type:"string"},light:{type:"string"},dark:{type:"string"},contrastText:{type:"string"}}},Vm={type:"object",properties:{backgroundColor:{type:"string"},borderColor:{type:"string"},color:{type:"string"},tabTextColor:{type:"string"}}},Nze={type:"object",properties:pS(Nl.properties,["light","dark"])},Lze={type:"object",properties:{basic:{type:"string"},delete:{type:"string"},get:{type:"string"},head:{type:"string"},link:{type:"string"},options:{type:"string"},patch:{type:"string"},post:{type:"string"},put:{type:"string"}}},Qze={type:"object",properties:{error:Vm,info:Vm,redirect:Vm,success:Vm}},Vze={type:"object",properties:Ud(Nl.properties,["dark"])},zze={type:"object",properties:{primary:{type:"string"},secondary:{type:"string"},light:{type:"string"}}},Bze={type:"object",properties:{accent:Nl,border:Nze,error:Nl,http:Lze,primary:Nl,responses:Qze,secondary:Vze,success:Nl,text:zze,tonalOffset:{type:"number"},warning:Nl}},zm={type:"object",properties:{fontSize:{type:"string"},padding:{type:"string"},minWidth:{type:"string"}}},qze={type:"object",properties:{small:zm,medium:zm,large:zm,xlarge:zm}},ds={type:"object",properties:{fontFamily:{type:"string"},fontSize:{type:"string"},fontWeight:{type:"string"},lineHeight:{type:"string"}}},Fze={type:"object",properties:Object.assign(Object.assign({},Ud(ds.properties,["fontSize","lineHeight"])),{borderRadius:{type:"string"},hoverStyle:{type:"string"},boxShadow:{type:"string"},hoverBoxShadow:{type:"string"},sizes:qze})},gV={type:"object",properties:pS(ds.properties,["fontSize","lineHeight"])},Wze={type:"object",properties:{medium:gV,small:gV}},Uze={type:"object",properties:Object.assign(Object.assign({},Ud(ds.properties,["fontSize","lineHeight"])),{borderRadius:{type:"string"},color:{type:"string"},sizes:Wze})},Xze={type:"object",properties:{top:{type:"string"},width:{type:"string"},height:{type:"string"}}},Zze={type:"object",properties:{borderRadius:{type:"string"},backgroundColor:{type:"string"}}},mV={type:"object",properties:{fullWidth:{type:"boolean"}}},Gze={type:"object",properties:{buttons:Fze,httpBadges:Uze,layoutControls:Xze,panels:Zze,tryItButton:mV,tryItSendButton:mV}},I0={type:"object",properties:{small:{type:"string"},medium:{type:"string"},large:{type:"string"}}},Yze={type:"object",properties:{maxWidth:I0}},Hze={type:"object",properties:{maxWidth:I0,middlePanelMaxWidth:I0}},Jze={type:"object",properties:{showDarkRightPanel:{type:"boolean"},stacked:Yze,"three-panel":Hze}},yV={type:"object",properties:{backgroundColor:{type:"string"},border:{type:"string"}}},Kze={type:"object",properties:{breakFieldNames:{type:"boolean"},caretColor:{type:"string"},caretSize:{type:"string"},constraints:yV,defaultDetailsWidth:{type:"string"},examples:yV,labelsTextSize:{type:"string"},linesColor:{type:"string"},nestedBackground:{type:"string"},nestingSpacing:{type:"string"},requireLabelColor:{type:"string"},typeNameColor:{type:"string"},typeTitleColor:{type:"string"}}},X6={type:"object",properties:{subItemsColor:{type:"string"},textTransform:{type:"string"},fontWeight:{type:"string"}}},eBe={type:"object",properties:pS(X6.properties,["textTransform"])},tBe={type:"object",properties:{unit:{type:"number"},paddingHorizontal:{type:"string"},paddingVertical:{type:"string"},offsetTop:{type:"string"},offsetLeft:{type:"string"},offsetNesting:{type:"string"}}},rBe={type:"object",properties:Object.assign(Object.assign({},Ud(ds.properties,["fontWeight","lineHeight"])),{activeBgColor:{type:"string"},activeTextColor:{type:"string"},backgroundColor:{type:"string"},borderRadius:{type:"string"},breakPath:{type:"boolean"},caretColor:{type:"string"},caretSize:{type:"string"},groupItems:X6,level1items:eBe,rightLineColor:{type:"string"},separatorLabelColor:{type:"string"},showAtBreakpoint:{type:"string"},spacing:tBe,textColor:{type:"string"},width:{type:"string"}})},Bm={type:"object",properties:Object.assign(Object.assign({},ds.properties),{color:{type:"string"},transform:{type:"string"}})},nBe={type:"object",properties:Object.assign(Object.assign({},ds.properties),{backgroundColor:{type:"string"},color:{type:"string"},wordBreak:{type:"string",enum:["break-all","break-word","keep-all","normal","revert","unset","inherit","initial"]},wrap:{type:"boolean"}})},iBe={type:"object",properties:Ud(ds.properties,["fontSize"])},oBe={type:"object",properties:{color:{type:"string"},hover:{type:"string"},textDecoration:{type:"string"},hoverTextDecoration:{type:"string"},visited:{type:"string"}}},sBe={type:"object",properties:Object.assign(Object.assign({code:nBe,fieldName:ds},pS(ds.properties,["fontSize","fontFamily"])),{fontWeightBold:{type:"string"},fontWeightLight:{type:"string"},fontWeightRegular:{type:"string"},heading1:Bm,heading2:Bm,heading3:Bm,headings:iBe,lineHeight:{type:"string"},links:oBe,optimizeSpeed:{type:"boolean"},rightPanelHeading:Bm,smoothing:{type:"string",enum:["auto","none","antialiased","subpixel-antialiased","grayscale"]}})},aBe={type:"object",properties:Object.assign({color:{type:"string"}},Ud(ds.properties,["fontWeight"]))},lBe={type:"object",properties:{backgroundColor:{type:"string"},borderRadius:{type:"string"},tokens:aBe}},cBe={type:"object",properties:{gutter:{type:"string"},maxHeight:{type:"string"},maxWidth:{type:"string"}}},uBe={type:"object",properties:{backgroundColor:{type:"string"},color:{type:"string"}}},vV={type:"object",properties:{custom:{type:"string"}}},dBe={type:"object",properties:{DownloadButton:vV,NextSectionButton:vV}},fBe={type:"object",properties:{backgroundColor:{type:"string"},panelBackgroundColor:{type:"string"},panelControlsBackgroundColor:{type:"string"},showAtBreakpoint:{type:"string"},textColor:{type:"string"},width:{type:"string"}}},hBe={type:"object",properties:{borderRadius:{type:"string"}}},pBe={type:"object",properties:{sectionHorizontal:{type:"number"},sectionVertical:{type:"number"},unit:{type:"number"}}},gBe={type:"object",properties:{breakpoints:I0,codeBlock:lBe,colors:Bze,components:Gze,layout:Jze,logo:cBe,fab:uBe,overrides:dBe,rightPanel:fBe,schema:Kze,shape:hBe,sidebar:rBe,spacing:pBe,typography:sBe,links:{properties:{color:{type:"string"}}},codeSample:{properties:{backgroundColor:{type:"string"}}}}},mBe={type:"object",properties:{skipOptionalParameters:{type:"boolean"},languages:{type:"array",items:jze}},required:["languages"]},yBe={properties:{theme:gBe,ctrlFHijack:{type:"boolean"},defaultSampleLanguage:{type:"string"},disableDeepLinks:{type:"boolean"},disableSearch:{type:"boolean"},disableSidebar:{type:"boolean"},downloadDefinitionUrl:{type:"string"},expandDefaultServerVariables:{type:"boolean"},enumSkipQuotes:{type:"boolean"},expandDefaultRequest:{type:"boolean"},expandDefaultResponse:{type:"boolean"},expandResponses:{type:"string"},expandSingleSchemaField:{type:"boolean"},generateCodeSamples:mBe,generatedPayloadSamplesMaxDepth:{type:"number"},hideDownloadButton:{type:"boolean"},hideHostname:{type:"boolean"},hideInfoSection:{type:"boolean"},hideLogo:{type:"boolean"},hideRequestPayloadSample:{type:"boolean"},hideRightPanel:{type:"boolean"},hideSchemaPattern:{type:"boolean"},hideSingleRequestSampleTab:{type:"boolean"},hideSecuritySection:{type:"boolean"},hideTryItPanel:{type:"boolean"},hideFab:{type:"boolean"},hideOneOfDescription:{type:"boolean"},htmlTemplate:{type:"string"},jsonSampleExpandLevel:{oneOf:[{type:"number",minimum:1},{type:"string"}]},labels:Dze,menuToggle:{type:"boolean"},nativeScrollbars:{type:"boolean"},noAutoAuth:{type:"boolean"},onDeepLinkClick:{type:"object"},pagination:{enum:["none","section","item"]},pathInMiddlePanel:{type:"boolean"},payloadSampleIdx:{type:"number",minimum:0},requiredPropsFirst:{type:"boolean"},routingStrategy:{type:"string"},samplesTabsMaxCount:{type:"number"},schemaExpansionLevel:{oneOf:[{type:"number",minimum:0},{type:"string"}]},minCharacterLengthToInitSearch:{type:"number",minimum:1},maxResponseHeadersToShowInTryIt:{type:"number",minimum:0},scrollYOffset:{oneOf:[{type:"number"},{type:"string"}]},searchAutoExpand:{type:"boolean"},searchFieldLevelBoost:{type:"number",minimum:0},searchMaxDepth:{type:"number",minimum:1},searchMode:{type:"string",enum:["default","path-only"]},searchOperationTitleBoost:{type:"number"},searchTagTitleBoost:{type:"number"},sendXUserAgentInTryIt:{type:"boolean"},showChangeLayoutButton:{type:"boolean"},showConsole:{type:"boolean"},showNextButton:{type:"boolean"},showRightPanelToggle:{type:"boolean"},showSecuritySchemeType:{type:"boolean"},showWebhookVerb:{type:"boolean"},showObjectSchemaExamples:{type:"boolean"},disableTryItRequestUrlEncoding:{type:"boolean"},sidebarLinks:Mze,sideNavStyle:{type:"string",enum:["summary-only","path-first","id-only","path-only"]},simpleOneOfTypeLabel:{type:"boolean"},sortEnumValuesAlphabetically:{type:"boolean"},sortOperationsAlphabetically:{type:"boolean"},sortPropsAlphabetically:{type:"boolean"},sortTagsAlphabetically:{type:"boolean"},suppressWarnings:{type:"boolean"},unstable_externalDescription:{type:"boolean"},unstable_ignoreMimeParameters:{type:"boolean"},untrustedDefinition:{type:"boolean"},showAccessMode:{type:"boolean"},preserveOriginalExtensionsName:{type:"boolean"},markdownHeadingsAnchorLevel:{type:"number"}}};function pS(t,e){return Object.fromEntries(e.filter(r=>r in t).map(r=>[r,t[r]]))}function Ud(t,e){return Object.fromEntries(Object.entries(t).filter(([r])=>!e.includes(r)))}const ya={type:"object",additionalProperties:{oneOf:[{type:"string"},{type:"object"}]}},XT={rules:ya,oas2Rules:ya,oas3_0Rules:ya,oas3_1Rules:ya,async2Rules:ya,async3Rules:ya,arazzo1Rules:ya,overlay1Rules:ya},ZT={preprocessors:{type:"object",additionalProperties:!0},oas2Preprocessors:{type:"object",additionalProperties:!0},oas3_0Preprocessors:{type:"object",additionalProperties:!0},oas3_1Preprocessors:{type:"object",additionalProperties:!0},async2Preprocessors:{type:"object",additionalProperties:!0},async3Preprocessors:{type:"object",additionalProperties:!0},arazzo1Preprocessors:{type:"object",additionalProperties:!0},overlay1Preprocessors:{type:"object",additionalProperties:!0}},GT={decorators:{type:"object",additionalProperties:!0},oas2Decorators:{type:"object",additionalProperties:!0},oas3_0Decorators:{type:"object",additionalProperties:!0},oas3_1Decorators:{type:"object",additionalProperties:!0},async2Decorators:{type:"object",additionalProperties:!0},async3Decorators:{type:"object",additionalProperties:!0},arazzo1Decorators:{type:"object",additionalProperties:!0},overlay1Decorators:{type:"object",additionalProperties:!0}},Zr={type:"object",properties:{hide:{type:"boolean"}},additionalProperties:!1},bV={type:"object",properties:{src:{type:"string"},async:{type:"boolean"},crossorigin:{type:"string"},defer:{type:"boolean"},fetchpriority:{type:"string"},integrity:{type:"string"},module:{type:"boolean"},nomodule:{type:"boolean"},nonce:{type:"string"},referrerpolicy:{type:"string"},type:{type:"string"}},required:["src"],additionalProperties:!0},W1={type:"object",properties:{page:{type:"string"},directory:{type:"string"},disconnect:{type:"boolean",default:!1},group:{type:"string"},label:{type:"string"},href:{type:"string"},external:{type:"boolean"},labelTranslationKey:{type:"string"},groupTranslationKey:{type:"string"},icon:{oneOf:[{type:"string"},{type:"object",properties:{srcSet:{type:"string"}},required:["srcSet"]}]},separator:{type:"string"},separatorLine:{type:"boolean"},linePosition:{type:"string",enum:["top","bottom"],default:"top"},version:{type:"string"},menuStyle:{type:"string",enum:["drilldown"]},expanded:{type:"string",const:"always"},selectFirstItemOnExpand:{type:"boolean"},flatten:{type:"boolean"},linkedSidebars:{type:"array",items:{type:"string"}},items:{type:"array",items:{type:"object",additionalProperties:!0}},rbac:{type:"object",additionalProperties:{type:"string"}}}},YT={type:"array",items:Object.assign(Object.assign({},W1),{properties:Object.assign(Object.assign({},W1.properties),{items:{type:"array",items:W1}})})},vBe={type:"object",properties:{name:{type:"string"},icon:{type:"string"},folder:{type:"string"}},additionalProperties:!1,required:["name","folder"]},bBe={type:"object",properties:{hide:{type:"boolean",default:!1},suggestions:{default:[],type:"array",items:{type:"string"}},prompt:{type:"string"}},additionalProperties:!1},OBe={type:"array",items:{type:"object",required:["name","field","type"],properties:{name:{type:"string"},field:{type:"string"},type:{type:"string",enum:["multi-select","select","tags"]}},additionalProperties:!1}},xBe={type:"object",properties:Object.assign({facets:OBe},Zr.properties),additionalProperties:!1},SBe={type:"object",properties:{page:{type:"string"},label:{type:"string"},labelTranslationKey:{type:"string"}},required:["page"]},Z6={type:"object",properties:{image:{type:"string"},srcSet:{type:"string"},altText:{type:"string"},link:{type:"string"},favicon:{type:"string"}},additionalProperties:!1},G6={type:"object",properties:Object.assign({items:YT},Zr.properties),additionalProperties:!1},Y6={type:"object",additionalProperties:vBe},H6={type:"object",properties:Object.assign({items:YT,copyrightText:{type:"string"},logo:Zr},Zr.properties),additionalProperties:!1},J6={type:"object",properties:Object.assign({separatorLine:{type:"boolean"},linePosition:{type:"string",enum:["top","bottom"],default:"bottom"}},Zr.properties),additionalProperties:!1},K6={type:"object",properties:{head:{type:"array",items:bV},body:{type:"array",items:bV}},additionalProperties:!1},eJ={type:"array",items:{type:"object",properties:{href:{type:"string"},as:{type:"string"},crossorigin:{type:"string"},fetchpriority:{type:"string"},hreflang:{type:"string"},imagesizes:{type:"string"},imagesrcset:{type:"string"},integrity:{type:"string"},media:{type:"string"},prefetch:{type:"string"},referrerpolicy:{type:"string"},rel:{type:"string"},sizes:{type:"string"},title:{type:"string"},type:{type:"string"}},required:["href"],additionalProperties:!0}},tJ={type:"object",properties:Object.assign({engine:{type:"string",enum:["flexsearch","typesense"],default:"flexsearch"},ai:bBe,filters:xBe,placement:{type:"string",default:"navbar"},shortcuts:{type:"array",items:{type:"string"},default:["⌘+K,ctrl+K"]},suggestedPages:{type:"array",items:SBe}},Zr.properties),additionalProperties:!1},rJ={type:"object",properties:Object.assign({ignoreDetection:{type:"boolean"},modes:{type:"array",items:{type:"string"},default:["light","dark"]}},Zr.properties),additionalProperties:!1},wBe={type:"object",properties:Object.assign(Object.assign({},Zr.properties),{items:{type:"array",items:{type:"string",enum:["copy","view","chatgpt","claude"]},default:["copy","view","chatgpt","claude"]}}),additionalProperties:!1},nJ={type:"object",properties:{nextButton:{type:"object",properties:Object.assign({text:{type:"string"}},Zr.properties),additionalProperties:!1,default:{}},previousButton:{type:"object",properties:Object.assign({text:{type:"string"}},Zr.properties),additionalProperties:!1,default:{}},actions:wBe},additionalProperties:!1},iJ={type:"object",properties:{elementFormat:{type:"string",default:"icon"},copy:{type:"object",properties:Object.assign({},Zr.properties),additionalProperties:!1,default:{hide:!1}},report:{type:"object",properties:Object.assign({tooltipText:{type:"string"},buttonText:{type:"string"},label:{type:"string"}},Zr.properties),additionalProperties:!1,default:{hide:!1}},expand:{type:"object",properties:Object.assign({},Zr.properties),additionalProperties:!1,default:{hide:!1}},collapse:{type:"object",properties:Object.assign({},Zr.properties),additionalProperties:!1,default:{hide:!1}}},additionalProperties:!1},oJ={type:"object",properties:{frontMatterKeysToResolve:{type:"array",items:{type:"string"},default:["image","links"]},partialsFolders:{type:"array",items:{type:"string"},default:["_partials"]},lastUpdatedBlock:{type:"object",properties:Object.assign({format:{type:"string",enum:["timeago","iso","long","short"],default:"timeago"},locale:{type:"string"}},Zr.properties),additionalProperties:!1,default:{}},toc:{type:"object",properties:Object.assign({header:{type:"string",default:"On this page"},depth:{type:"integer",default:3,minimum:1}},Zr.properties),additionalProperties:!1,default:{}},editPage:{type:"object",properties:Object.assign({baseUrl:{type:"string"}},Zr.properties),additionalProperties:!1,default:{}}},additionalProperties:!1,default:{}},T0=Object.assign(Object.assign({},hV),{properties:Object.assign(Object.assign({},hV.properties),yBe.properties)}),CBe={type:"object",properties:{includeInDevelopment:{type:"boolean"},scriptUrl:{type:"string"},pageViewEventName:{type:"string"}},additionalProperties:!1,required:["scriptUrl"]},PBe={type:"object",properties:{includeInDevelopment:{type:"boolean"},apiKey:{type:"string"},head:{type:"boolean"},respectDNT:{type:"boolean"},exclude:{type:"array",items:{type:"string"}},outboundClickEventName:{type:"string"},pageViewEventName:{type:"string"},amplitudeConfig:{type:"object",additionalProperties:!0}},additionalProperties:!1,required:["apiKey"]},kBe={type:"object",properties:{includeInDevelopment:{type:"boolean"},orgId:{type:"string"}},additionalProperties:!1,required:["orgId"]},$Be={type:"object",properties:{includeInDevelopment:{type:"boolean"},appId:{type:"string"}},additionalProperties:!1,required:["appId"]},EBe={type:"object",properties:{includeInDevelopment:{type:"boolean"},writeKey:{type:"string",minLength:10},trackPage:{type:"boolean"},dataPlaneUrl:{type:"string"},controlPlaneUrl:{type:"string"},sdkUrl:{type:"string"},loadOptions:{type:"object",additionalProperties:!0}},additionalProperties:!1,required:["writeKey"]},ABe={type:"object",properties:{includeInDevelopment:{type:"boolean"},writeKey:{type:"string",minLength:10},trackPage:{type:"boolean"},includeTitleInPageCall:{type:"boolean"},host:{type:"string"}},additionalProperties:!1,required:["writeKey"]},IBe={type:"object",properties:{includeInDevelopment:{type:"boolean"},trackingId:{type:"string"},gtmAuth:{type:"string"},gtmPreview:{type:"string"},defaultDataLayer:{},dataLayerName:{type:"string"},enableWebVitalsTracking:{type:"boolean"},selfHostedOrigin:{type:"string"},pageViewEventName:{type:"string"}},additionalProperties:!1,required:["trackingId"]},sJ={type:"object",properties:{includeInDevelopment:{type:"boolean"},trackingId:{type:"string"},conversionId:{type:"string"},floodlightId:{type:"string"},optimizeId:{type:"string"},exclude:{type:"array",items:{type:"string"}}},additionalProperties:!1,required:["trackingId"]},TBe={type:"object",properties:{includeInDevelopment:{type:"boolean"},trackingId:{type:"string"},conversionId:{type:"string"},floodlightId:{type:"string"},head:{type:"boolean"},respectDNT:{type:"boolean"},exclude:{type:"array",items:{type:"string"}},optimizeId:{type:"string"},anonymizeIp:{type:"boolean"},cookieExpires:{type:"number"},trackers:{type:"object",additionalProperties:sJ}},additionalProperties:!1,required:["trackingId"]},aJ={type:"object",properties:{adobe:CBe,amplitude:PBe,fullstory:kBe,heap:$Be,rudderstack:EBe,segment:ABe,gtm:IBe,ga:TBe}},lJ={type:"object",properties:Object.assign({items:{type:"array",items:{type:"object",properties:{label:{type:"string"},external:{type:"boolean"},link:{type:"string"},separatorLine:{type:"boolean"}},additionalProperties:!0},default:[]},hideLoginButton:{type:"boolean"}},Zr.properties),additionalProperties:!1},cJ={type:"object",properties:{hide:{type:"boolean"},showForUnversioned:{type:"boolean"}}},uJ={type:"object",properties:{hide:{type:"boolean"},prefixItems:{type:"array",items:{type:"object",properties:{label:{type:"string"},labelTranslationKey:{type:"string"},page:{type:"string"},icon:{type:"string"}},additionalProperties:!1,default:{}}}},additionalProperties:!1},_Be={type:"object",additionalProperties:!1,required:["title","property"],properties:{type:{type:"string",enum:["select","checkboxes","date-range"],default:"checkboxes"},title:{type:"string"},titleTranslationKey:{type:"string"},property:{type:"string"},parentFilter:{type:"string"},valuesMapping:{type:"object",additionalProperties:{type:"string"}},missingCategoryName:{type:"string"},missingCategoryNameTranslationKey:{type:"string"},options:{type:"array",items:{type:"string"}}}},RBe={type:"object",additionalProperties:!0,required:["slug","items"],properties:{slug:{type:"string"},filters:{type:"array",items:_Be},groupByFirstFilter:{type:"boolean"},filterValuesCasing:{type:"string",enum:["sentence","original","lowercase","uppercase"]},items:YT,requiredPermission:{type:"string"},separateVersions:{type:"boolean"},title:{type:"string"},titleTranslationKey:{type:"string"},description:{type:"string"},descriptionTranslationKey:{type:"string"}}},_0={type:"object",patternProperties:{".*":RBe}},dJ={type:"object",additionalProperties:!0,required:[],properties:{ignoreNonCompliant:{type:"boolean",default:!1},teamMetadataProperty:{type:"object",properties:{property:{type:"string"},label:{type:"string"},default:{type:"string"}}},levels:{type:"array",items:{type:"object",required:["name"],properties:Object.assign(Object.assign(Object.assign({name:{type:"string"},color:{type:"string"},extends:{type:"array",items:{type:"string"}}},XT),ZT),GT),additionalProperties:!1}},targets:{type:"array",items:{type:"object",required:["where"],properties:{minimumLevel:{type:"string"},rules:{type:"object",additionalProperties:!0},where:{type:"object",required:["metadata"],properties:{metadata:{type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1}},additionalProperties:!1}},ignore:{type:"array",items:{type:"string"}},fromProjectUrl:{type:"string",format:"uri"}}},jBe={type:"object",required:["key"],properties:{key:{type:"string"}},additionalProperties:!1},DBe={type:"object",required:["type"],properties:{type:{type:"string"}},additionalProperties:!1},MBe={type:"object",required:["property","title"],properties:{property:{type:"string"},hide:{type:"boolean"},label:{type:"string"},options:{type:"array",items:{type:"string"}},type:{type:"string",enum:["select","checkboxes","date-range"],default:"checkboxes"},title:{type:"string"},titleTranslationKey:{type:"string"},parentFilter:{type:"string"},valuesMapping:{type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1},Os={type:"object",properties:{slug:{type:"string"},hide:{type:"boolean"},includes:{type:"array",items:DBe},excludes:{type:"array",items:jBe},filters:{type:"array",items:MBe},titleTranslationKey:{type:"string"},descriptionTranslationKey:{type:"string"},catalogSwitcherLabelTranslationKey:{type:"string"}},additionalProperties:!1},fJ={type:"object",properties:{catalogs:{type:"object",properties:{all:Os,services:Os,domains:Os,teams:Os,users:Os,apiDescriptions:Os,dataSchemas:Os,apiOperations:Os},additionalProperties:Os}},additionalProperties:!1},Mo={type:"object",properties:{imports:{type:"array",items:{type:"string"}},logo:Z6,navbar:G6,products:Y6,footer:H6,sidebar:J6,scripts:K6,links:eJ,feedback:hS,search:tJ,colorMode:rJ,navigation:nJ,codeSnippet:iJ,markdown:oJ,openapi:T0,graphql:A0,analytics:aJ,userMenu:lJ,versionPicker:cJ,breadcrumbs:uJ,catalog:_0,entitiesCatalog:fJ,catalogClassic:_0,scorecard:dJ},additionalProperties:!0},NBe="https://redocly.com/sso/teams";var R0;(function(t){t.OIDC="OIDC",t.SAML2="SAML2"})(R0||(R0={}));var j0;(function(t){t.SERVICE_ACCOUNT="SERVICE_ACCOUNT",t.OAUTH2="OAUTH2"})(j0||(j0={}));var OV;(function(t){t.STACKED="stacked",t.THREE_PANEL="three-panel"})(OV||(OV={}));function wE(t,e){return Object.fromEntries(Object.entries(t).map(([r,n])=>{if(r!==e)return typeof n!="object"||!n?[r,n]:Array.isArray(n)?[r,n.map(i=>typeof i=="object"?wE(i,e):i)]:[r,wE(n,e)]}).filter(Boolean))}const LBe={type:"object",additionalProperties:{type:"string"}},QBe={type:"object",additionalProperties:!1,patternProperties:{"^[a-zA-Z0-9_-]+$":{type:"string",pattern:"^https?://[^\\s/$.?#].[^\\s]*$"}}},qm={type:"string",enum:["error","warn","off"]},VBe={type:"object",additionalProperties:!1,properties:{schemaCheck:qm,statusCodeCheck:qm,contentTypeCheck:qm,successCriteriaCheck:qm}},zBe={type:"object",properties:{event:{type:"string",enum:["schedule"]},interval:{type:"string",enum:["1m","2m","5m","10m","15m","30m","1h","3h","6h","12h","1d","7d"]}},required:["event"],additionalProperties:!1},BBe={type:"object",properties:{event:{type:"string",enum:["build"]}},required:["event"],additionalProperties:!1},qBe={type:"object",properties:{ignoreLint:{oneOf:[{type:"boolean",default:!1},{type:"object",additionalProperties:{type:"boolean"}}]},ignoreLinkChecker:{type:"boolean"},ignoreMarkdocErrors:{type:"boolean"},ignoreRespectMonitoring:{type:"boolean"},jobs:{type:"array",items:{type:"object",properties:{path:{type:"string",pattern:"^(?!\\.\\./)(/[a-zA-Z0-9_\\-\\./]+|./[a-zA-Z0-9_\\-\\./]+|[a-zA-Z0-9_\\-\\./]+)$"},agent:{type:"string",enum:["respect"]},trigger:{oneOf:[zBe,BBe]},inputs:LBe,servers:QBe,severity:VBe},required:["path","trigger","agent"],additionalProperties:!1}}},additionalProperties:!1},FBe={type:"object",properties:{end_session_endpoint:{type:"string"},token_endpoint:{type:"string"},authorization_endpoint:{type:"string"},jwks_uri:{type:"string"}},required:["token_endpoint","authorization_endpoint"],additionalProperties:!0},WBe={type:"object",properties:{type:{type:"string",const:R0.OIDC},title:{type:"string"},pkce:{type:"boolean",default:!1},configurationUrl:{type:"string",minLength:1},configuration:FBe,clientId:{type:"string",minLength:1},clientSecret:{type:"string",minLength:0},teamsClaimName:{type:"string"},teamsClaimMap:{type:"object",additionalProperties:{type:"string"}},defaultTeams:{type:"array",items:{type:"string"}},scopes:{type:"array",items:{type:"string"}},tokenExpirationTime:{type:"number"},authorizationRequestCustomParams:{type:"object",additionalProperties:{type:"string"}},introspectEndpoint:{type:"string"},tokenRequestCustomParams:{type:"object",additionalProperties:{type:"string"}},audience:{type:"array",items:{type:"string"}}},required:["type","clientId"],oneOf:[{required:["configurationUrl"]},{required:["configuration"]}],additionalProperties:!1},UBe={type:"object",properties:{type:{type:"string",const:R0.SAML2},title:{type:"string"},issuerId:{type:"string"},entityId:{type:"string"},ssoUrl:{type:"string"},x509PublicCert:{type:"string"},teamsAttributeName:{type:"string",default:NBe},teamsAttributeMap:{type:"object",additionalProperties:{type:"string"}},defaultTeams:{type:"array",items:{type:"string"}}},additionalProperties:!1,required:["type","issuerId","ssoUrl","x509PublicCert"]},XBe={oneOf:[WBe,UBe],discriminator:{propertyName:"type"}},ZBe={type:"object",additionalProperties:XBe},GBe={oneOf:[{type:"array",items:{type:"string",enum:["REDOCLY","CORPORATE","GUEST"]},uniqueItems:!0},{type:"string",enum:["REDOCLY","CORPORATE","GUEST"]}]},YBe={type:"object",properties:{to:{type:"string"},type:{type:"number",default:301}},additionalProperties:!1},HBe={type:"object",additionalProperties:YBe,default:{}},hJ={type:"object",properties:Object.assign(Object.assign(Object.assign(Object.assign({root:{type:"string"},output:{type:"string",pattern:"(.ya?ml|.json)$"},rbac:{type:"object",additionalProperties:!0},openapi:T0,graphql:A0,theme:{type:"object",properties:{openapi:T0,graphql:A0},additionalProperties:!1},title:{type:"string"},metadata:{type:"object",additionalProperties:!0}},XT),ZT),GT),{extends:{type:"array",items:{type:"string"}}}),required:["root"]},JBe={type:"object",additionalProperties:!0},KBe={type:"object",additionalProperties:{type:"object",additionalProperties:!0}},xV={type:"object",properties:{hide:{type:"boolean",default:!1},title:{type:"string"},description:{type:"string"},details:{type:"object",properties:{path:{type:"string"},content:{type:"string"}},additionalProperties:!1},excludeFiles:{type:"array",items:{type:"string"},default:[]},sections:{type:"array",items:{type:"object",properties:{title:{type:"string"},description:{type:"string"},includeFiles:{type:"array",items:{type:"string"},default:[]},excludeFiles:{type:"array",items:{type:"string"},default:[]}},required:["title"],additionalProperties:!1}}},default:{hide:!1,title:void 0,description:void 0,details:void 0,sections:[{title:"Table of contents",includeFiles:["**/*"],excludeFiles:[]}]},additionalProperties:!1},SV={type:"object",properties:{title:{type:"string"},description:{type:"string"},siteUrl:{type:"string"},image:{type:"string"},keywords:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},lang:{type:"string"},jsonLd:{type:"object"},meta:{type:"array",items:{type:"object",properties:{name:{type:"string"},content:{type:"string"}},required:["name","content"],additionalProperties:!1}},llmstxt:xV},default:{llmstxt:xV.default},additionalProperties:!1},eqe={type:"object",properties:{folders:{type:"array",items:{type:"string"}}},additionalProperties:!1},xl={type:"object",additionalProperties:{type:"string"}},tqe={type:"object",properties:{teamNamePatterns:{type:"array",items:{type:"string"}},teamFolders:{type:"array",items:{type:"string"}},teamFoldersBaseRoles:xl,cms:xl,reunite:xl,features:{type:"object",properties:{aiSearch:xl},additionalProperties:!1},content:{type:"object",properties:{"**":xl},additionalProperties:xl}},additionalProperties:xl},rqe={type:"object",properties:{static:{type:"string"}},additionalProperties:!1,required:["static"]},nqe={type:"object",properties:{idp:{type:"string"}},additionalProperties:!1,required:["idp"]},iqe={type:"object",properties:{type:{type:"string",const:"GRAVITEE"},apiBaseUrl:{type:"string"},env:{type:"string"},allowApiProductsOutsideCatalog:{type:"boolean",default:!1},stage:{type:"string",default:"non-production"},auth:{oneOf:[rqe,nqe]}},additionalProperties:!1,required:["type","apiBaseUrl"]},oqe={type:"object",properties:{type:{type:"string",const:j0.OAUTH2},tokenEndpoint:{type:"string"},clientId:{type:"string"},clientSecret:{type:"string"}},additionalProperties:!1,required:["type","tokenEndpoint","clientId","clientSecret"]},sqe={type:"object",properties:{type:{type:"string",const:j0.SERVICE_ACCOUNT},serviceAccountEmail:{type:"string"},serviceAccountPrivateKey:{type:"string"}},additionalProperties:!1,required:["type","serviceAccountEmail","serviceAccountPrivateKey"]},CE={type:"object",properties:{type:{type:"string",const:"APIGEE_X"},apiUrl:{type:"string"},stage:{type:"string",default:"non-production"},organizationName:{type:"string"},ignoreApiProducts:{type:"array",items:{type:"string"}},allowApiProductsOutsideCatalog:{type:"boolean",default:!1},auth:{type:"object",oneOf:[oqe,sqe],discriminator:{propertyName:"type"}}},additionalProperties:!1,required:["type","organizationName","auth"]},aqe=Object.assign(Object.assign({},CE),{properties:Object.assign(Object.assign({},CE.properties),{type:{type:"string",const:"APIGEE_EDGE"}})}),lqe={type:"object",oneOf:[CE,aqe,iqe],discriminator:{propertyName:"type"}},cqe={type:"object",required:["adapters"],additionalProperties:!1,properties:{adapters:{type:"array",items:lqe}}},wV={type:"object",properties:{defaultLocale:{type:"string"},locales:{type:"array",items:{type:"object",properties:{code:{type:"string"},name:{type:"string"}},required:["code"]}}},additionalProperties:!1,required:["defaultLocale"]},uqe={type:"object",properties:{name:{type:"string"},value:{type:"string"}},additionalProperties:!1,required:["name","value"]},PE={type:"object",properties:Object.assign(Object.assign(Object.assign(Object.assign({imports:{type:"array",items:{type:"string"}},licenseKey:{type:"string"},redirects:HBe,seo:SV,rbac:tqe,apiFunctions:eqe,requiresLogin:{type:"boolean"},responseHeaders:{type:"object",additionalProperties:{type:"array",items:uqe}},mockServer:{type:"object",properties:{off:{type:"boolean",default:!1},position:{type:"string",enum:["first","last","replace","off"],default:"first"},strictExamples:{type:"boolean",default:!1},errorIfForcedExampleNotFound:{type:"boolean",default:!1},description:{type:"string"}}},apis:{type:"object",additionalProperties:hJ},extends:{type:"array",items:{type:"string"}}},XT),GT),ZT),{ssoDirect:ZBe,sso:GBe,residency:{type:"string"},developerOnboarding:cqe,removeAttribution:{type:"boolean"},i18n:wV,l10n:wV,metadata:JBe,metadataGlobs:KBe,ignore:{type:"array",items:{type:"string"}},theme:Mo,reunite:qBe,logo:Z6,navbar:G6,products:Y6,footer:H6,sidebar:J6,scripts:K6,links:eJ,feedback:hS,search:tJ,colorMode:rJ,navigation:nJ,codeSnippet:iJ,markdown:oJ,openapi:T0,graphql:A0,analytics:aJ,userMenu:lJ,versionPicker:cJ,breadcrumbs:uJ,catalog:_0,entitiesCatalog:fJ,catalogClassic:_0,scorecard:dJ}),default:{redirects:{},seo:SV.default},additionalProperties:!0},dqe=Object.assign(Object.assign({},wE(PE,"default")),{additionalProperties:!1}),HT=Object.assign(Object.assign({$id:"root-redocly-config"},PE),{properties:Object.assign(Object.assign({plugins:{type:"array",items:{type:"string"}}},PE.properties),{env:{type:"object",additionalProperties:dqe}}),default:{},additionalProperties:!1}),CV={type:"object",properties:{logo:Mo.properties.logo,navbar:Mo.properties.navbar,footer:Mo.properties.footer,sidebar:Mo.properties.sidebar,search:Mo.properties.search,codeSnippet:Mo.properties.codeSnippet,breadcrumbs:Mo.properties.breadcrumbs,openapi:Mo.properties.openapi,feedback:Mo.properties.feedback,analytics:{type:"object",properties:{ga:sJ}}},additionalProperties:!0,default:{}};Object.assign(Object.assign({},CV.properties),{apis:{type:"object",additionalProperties:hJ},theme:CV});const fqe={properties:{overlay:{type:"string"},info:"Info",extends:{type:"string"},actions:"Actions"},required:["overlay","info","actions"],extensionsPrefix:"x-"},hqe={properties:{title:{type:"string"},version:{type:"string"}},required:["title","version"],extensionsPrefix:"x-"},pqe=Ke("Action"),gqe={properties:{target:{type:"string"},description:{type:"string"},update:{},remove:{type:"boolean"}},required:["target"],extensionsPrefix:"x-"},mqe={Root:fqe,Info:hqe,Actions:pqe,Action:gqe},PV=/^1\.0\.\d+(-.+)?$/,U1=["1.0.1"],Pb=["oas2","oas3_0","oas3_1","async2","async3","arazzo1","overlay1"],yqe={oas2:FVe,oas3_0:C8,oas3_1:VQe,async2:dze,async3:Aze,arazzo1:mVe,overlay1:mqe};function JT(t){if(!ht(t))throw new Error(`Document must be JSON object, got ${typeof t}`);if(t.openapi&&typeof t.openapi!="string")throw new Error(`Invalid OpenAPI version: should be a string but got "${typeof t.openapi}"`);if(typeof t.openapi=="string"&&t.openapi.startsWith("3.0"))return"oas3_0";if(typeof t.openapi=="string"&&t.openapi.startsWith("3.1"))return"oas3_1";if(t.swagger&&t.swagger==="2.0")return"oas2";if(t.openapi||t.swagger)throw new Error(`Unsupported OpenAPI version: ${t.openapi||t.swagger}`);if(typeof t.asyncapi=="string"&&t.asyncapi.startsWith("2."))return"async2";if(typeof t.asyncapi=="string"&&t.asyncapi.startsWith("3."))return"async3";if(t.asyncapi)throw new Error(`Unsupported AsyncAPI version: ${t.asyncapi}`);if(typeof t.arazzo=="string"&&PV.test(t.arazzo))return"arazzo1";if(typeof t.overlay=="string"&&PV.test(t.overlay))return"overlay1";throw new Error("Unsupported specification")}function pJ(t){return t==="oas2"?"oas2":t==="async2"?"async2":t==="async3"?"async3":t==="arazzo1"?"arazzo1":t==="overlay1"?"overlay1":"oas3"}function KT(t){return yqe[t]}var Fm={exports:{}},X1={},Sl={},Rf={},Z1={},G1={},Y1={},kV;function D0(){return kV||(kV=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.nil=t._Code=t.Name=t.IDENTIFIER=t._CodeOrName=void 0,t._=i,t.str=s,t.addCodeArg=a,t.strConcat=u,t.stringify=f,t.safeStringify=h,t.getProperty=g,t.getEsmExportName=p,t.regexpCode=y;class e{}t._CodeOrName=e,t.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class r extends e{constructor(b){if(super(),!t.IDENTIFIER.test(b))throw new Error("CodeGen: name must be a valid identifier");this.str=b}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}t.Name=r;class n extends e{constructor(b){super(),this._items=typeof b=="string"?[b]:b}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const b=this._items[0];return b===""||b==='""'}get str(){var b;return(b=this._str)!==null&&b!==void 0?b:this._str=this._items.reduce((O,S)=>`${O}${S}`,"")}get names(){var b;return(b=this._names)!==null&&b!==void 0?b:this._names=this._items.reduce((O,S)=>(S instanceof r&&(O[S.str]=(O[S.str]||0)+1),O),{})}}t._Code=n,t.nil=new n("");function i(v,...b){const O=[v[0]];let S=0;for(;S<b.length;)a(O,b[S]),O.push(v[++S]);return new n(O)}const o=new n("+");function s(v,...b){const O=[h(v[0])];let S=0;for(;S<b.length;)O.push(o),a(O,b[S]),O.push(o,h(v[++S]));return l(O),new n(O)}function a(v,b){b instanceof n?v.push(...b._items):b instanceof r?v.push(b):v.push(d(b))}function l(v){let b=1;for(;b<v.length-1;){if(v[b]===o){const O=c(v[b-1],v[b+1]);if(O!==void 0){v.splice(b-1,3,O);continue}v[b++]="+"}b++}}function c(v,b){if(b==='""')return v;if(v==='""')return b;if(typeof v=="string")return b instanceof r||v[v.length-1]!=='"'?void 0:typeof b!="string"?`${v.slice(0,-1)}${b}"`:b[0]==='"'?v.slice(0,-1)+b.slice(1):void 0;if(typeof b=="string"&&b[0]==='"'&&!(v instanceof r))return`"${v}${b.slice(1)}`}function u(v,b){return b.emptyStr()?v:v.emptyStr()?b:s`${v}${b}`}function d(v){return typeof v=="number"||typeof v=="boolean"||v===null?v:h(Array.isArray(v)?v.join(","):v)}function f(v){return new n(h(v))}function h(v){return JSON.stringify(v).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}function g(v){return typeof v=="string"&&t.IDENTIFIER.test(v)?new n(`.${v}`):i`[${v}]`}function p(v){if(typeof v=="string"&&t.IDENTIFIER.test(v))return new n(`${v}`);throw new Error(`CodeGen: invalid export name: ${v}, use explicit $id name mapping`)}function y(v){return new n(v.toString())}})(Y1)),Y1}var H1={},$V;function EV(){return $V||($V=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.ValueScope=t.ValueScopeName=t.Scope=t.varKinds=t.UsedValueState=void 0;const e=D0();class r extends Error{constructor(c){super(`CodeGen: "code" for ${c} not defined`),this.value=c.value}}var n;(function(l){l[l.Started=0]="Started",l[l.Completed=1]="Completed"})(n||(t.UsedValueState=n={})),t.varKinds={const:new e.Name("const"),let:new e.Name("let"),var:new e.Name("var")};class i{constructor({prefixes:c,parent:u}={}){this._names={},this._prefixes=c,this._parent=u}toName(c){return c instanceof e.Name?c:this.name(c)}name(c){return new e.Name(this._newName(c))}_newName(c){const u=this._names[c]||this._nameGroup(c);return`${c}${u.index++}`}_nameGroup(c){var u,d;if(!((d=(u=this._parent)===null||u===void 0?void 0:u._prefixes)===null||d===void 0)&&d.has(c)||this._prefixes&&!this._prefixes.has(c))throw new Error(`CodeGen: prefix "${c}" is not allowed in this scope`);return this._names[c]={prefix:c,index:0}}}t.Scope=i;class o extends e.Name{constructor(c,u){super(u),this.prefix=c}setValue(c,{property:u,itemIndex:d}){this.value=c,this.scopePath=(0,e._)`.${new e.Name(u)}[${d}]`}}t.ValueScopeName=o;const s=(0,e._)`\n`;class a extends i{constructor(c){super(c),this._values={},this._scope=c.scope,this.opts={...c,_n:c.lines?s:e.nil}}get(){return this._scope}name(c){return new o(c,this._newName(c))}value(c,u){var d;if(u.ref===void 0)throw new Error("CodeGen: ref must be passed in value");const f=this.toName(c),{prefix:h}=f,g=(d=u.key)!==null&&d!==void 0?d:u.ref;let p=this._values[h];if(p){const b=p.get(g);if(b)return b}else p=this._values[h]=new Map;p.set(g,f);const y=this._scope[h]||(this._scope[h]=[]),v=y.length;return y[v]=u.ref,f.setValue(u,{property:h,itemIndex:v}),f}getValue(c,u){const d=this._values[c];if(d)return d.get(u)}scopeRefs(c,u=this._values){return this._reduceValues(u,d=>{if(d.scopePath===void 0)throw new Error(`CodeGen: name "${d}" has no value`);return(0,e._)`${c}${d.scopePath}`})}scopeCode(c=this._values,u,d){return this._reduceValues(c,f=>{if(f.value===void 0)throw new Error(`CodeGen: name "${f}" has no value`);return f.value.code},u,d)}_reduceValues(c,u,d={},f){let h=e.nil;for(const g in c){const p=c[g];if(!p)continue;const y=d[g]=d[g]||new Map;p.forEach(v=>{if(y.has(v))return;y.set(v,n.Started);let b=u(v);if(b){const O=this.opts.es5?t.varKinds.var:t.varKinds.const;h=(0,e._)`${h}${O} ${v} = ${b};${this.opts._n}`}else if(b=f==null?void 0:f(v))h=(0,e._)`${h}${b}${this.opts._n}`;else throw new r(v);y.set(v,n.Completed)})}return h}}t.ValueScope=a})(H1)),H1}var AV;function ct(){return AV||(AV=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.CodeGen=t.operators=t.varKinds=t.ValueScopeName=t.ValueScope=t.Scope=t.Name=t.regexpCode=t.stringify=t.getProperty=t.nil=t.strConcat=t.str=t._=void 0,t.not=oe,t.and=ie,t.or=L;const e=D0(),r=EV();var n=D0();Object.defineProperty(t,"_",{enumerable:!0,get:function(){return n._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return n.str}}),Object.defineProperty(t,"strConcat",{enumerable:!0,get:function(){return n.strConcat}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return n.nil}}),Object.defineProperty(t,"getProperty",{enumerable:!0,get:function(){return n.getProperty}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return n.stringify}}),Object.defineProperty(t,"regexpCode",{enumerable:!0,get:function(){return n.regexpCode}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return n.Name}});var i=EV();Object.defineProperty(t,"Scope",{enumerable:!0,get:function(){return i.Scope}}),Object.defineProperty(t,"ValueScope",{enumerable:!0,get:function(){return i.ValueScope}}),Object.defineProperty(t,"ValueScopeName",{enumerable:!0,get:function(){return i.ValueScopeName}}),Object.defineProperty(t,"varKinds",{enumerable:!0,get:function(){return i.varKinds}}),t.operators={GT:new e._Code(">"),GTE:new e._Code(">="),LT:new e._Code("<"),LTE:new e._Code("<="),EQ:new e._Code("==="),NEQ:new e._Code("!=="),NOT:new e._Code("!"),OR:new e._Code("||"),AND:new e._Code("&&"),ADD:new e._Code("+")};class o{optimizeNodes(){return this}optimizeNames(k,T){return this}}class s extends o{constructor(k,T,j){super(),this.varKind=k,this.name=T,this.rhs=j}render({es5:k,_n:T}){const j=k?r.varKinds.var:this.varKind,Z=this.rhs===void 0?"":` = ${this.rhs}`;return`${j} ${this.name}${Z};`+T}optimizeNames(k,T){if(k[this.name.str])return this.rhs&&(this.rhs=J(this.rhs,k,T)),this}get names(){return this.rhs instanceof e._CodeOrName?this.rhs.names:{}}}class a extends o{constructor(k,T,j){super(),this.lhs=k,this.rhs=T,this.sideEffects=j}render({_n:k}){return`${this.lhs} = ${this.rhs};`+k}optimizeNames(k,T){if(!(this.lhs instanceof e.Name&&!k[this.lhs.str]&&!this.sideEffects))return this.rhs=J(this.rhs,k,T),this}get names(){const k=this.lhs instanceof e.Name?{}:{...this.lhs.names};return X(k,this.rhs)}}class l extends a{constructor(k,T,j,Z){super(k,j,Z),this.op=T}render({_n:k}){return`${this.lhs} ${this.op}= ${this.rhs};`+k}}class c extends o{constructor(k){super(),this.label=k,this.names={}}render({_n:k}){return`${this.label}:`+k}}class u extends o{constructor(k){super(),this.label=k,this.names={}}render({_n:k}){return`break${this.label?` ${this.label}`:""};`+k}}class d extends o{constructor(k){super(),this.error=k}render({_n:k}){return`throw ${this.error};`+k}get names(){return this.error.names}}class f extends o{constructor(k){super(),this.code=k}render({_n:k}){return`${this.code};`+k}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(k,T){return this.code=J(this.code,k,T),this}get names(){return this.code instanceof e._CodeOrName?this.code.names:{}}}class h extends o{constructor(k=[]){super(),this.nodes=k}render(k){return this.nodes.reduce((T,j)=>T+j.render(k),"")}optimizeNodes(){const{nodes:k}=this;let T=k.length;for(;T--;){const j=k[T].optimizeNodes();Array.isArray(j)?k.splice(T,1,...j):j?k[T]=j:k.splice(T,1)}return k.length>0?this:void 0}optimizeNames(k,T){const{nodes:j}=this;let Z=j.length;for(;Z--;){const Y=j[Z];Y.optimizeNames(k,T)||(te(k,Y.names),j.splice(Z,1))}return j.length>0?this:void 0}get names(){return this.nodes.reduce((k,T)=>U(k,T.names),{})}}class g extends h{render(k){return"{"+k._n+super.render(k)+"}"+k._n}}class p extends h{}class y extends g{}y.kind="else";class v extends g{constructor(k,T){super(T),this.condition=k}render(k){let T=`if(${this.condition})`+super.render(k);return this.else&&(T+="else "+this.else.render(k)),T}optimizeNodes(){super.optimizeNodes();const k=this.condition;if(k===!0)return this.nodes;let T=this.else;if(T){const j=T.optimizeNodes();T=this.else=Array.isArray(j)?new y(j):j}if(T)return k===!1?T instanceof v?T:T.nodes:this.nodes.length?this:new v(oe(k),T instanceof v?[T]:T.nodes);if(!(k===!1||!this.nodes.length))return this}optimizeNames(k,T){var j;if(this.else=(j=this.else)===null||j===void 0?void 0:j.optimizeNames(k,T),!!(super.optimizeNames(k,T)||this.else))return this.condition=J(this.condition,k,T),this}get names(){const k=super.names;return X(k,this.condition),this.else&&U(k,this.else.names),k}}v.kind="if";class b extends g{}b.kind="for";class O extends b{constructor(k){super(),this.iteration=k}render(k){return`for(${this.iteration})`+super.render(k)}optimizeNames(k,T){if(super.optimizeNames(k,T))return this.iteration=J(this.iteration,k,T),this}get names(){return U(super.names,this.iteration.names)}}class S extends b{constructor(k,T,j,Z){super(),this.varKind=k,this.name=T,this.from=j,this.to=Z}render(k){const T=k.es5?r.varKinds.var:this.varKind,{name:j,from:Z,to:Y}=this;return`for(${T} ${j}=${Z}; ${j}<${Y}; ${j}++)`+super.render(k)}get names(){const k=X(super.names,this.from);return X(k,this.to)}}class x extends b{constructor(k,T,j,Z){super(),this.loop=k,this.varKind=T,this.name=j,this.iterable=Z}render(k){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(k)}optimizeNames(k,T){if(super.optimizeNames(k,T))return this.iterable=J(this.iterable,k,T),this}get names(){return U(super.names,this.iterable.names)}}class w extends g{constructor(k,T,j){super(),this.name=k,this.args=T,this.async=j}render(k){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(k)}}w.kind="func";class P extends h{render(k){return"return "+super.render(k)}}P.kind="return";class I extends g{render(k){let T="try"+super.render(k);return this.catch&&(T+=this.catch.render(k)),this.finally&&(T+=this.finally.render(k)),T}optimizeNodes(){var k,T;return super.optimizeNodes(),(k=this.catch)===null||k===void 0||k.optimizeNodes(),(T=this.finally)===null||T===void 0||T.optimizeNodes(),this}optimizeNames(k,T){var j,Z;return super.optimizeNames(k,T),(j=this.catch)===null||j===void 0||j.optimizeNames(k,T),(Z=this.finally)===null||Z===void 0||Z.optimizeNames(k,T),this}get names(){const k=super.names;return this.catch&&U(k,this.catch.names),this.finally&&U(k,this.finally.names),k}}class E extends g{constructor(k){super(),this.error=k}render(k){return`catch(${this.error})`+super.render(k)}}E.kind="catch";class M extends g{render(k){return"finally"+super.render(k)}}M.kind="finally";class V{constructor(k,T={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...T,_n:T.lines?`
|
|
2448
2448
|
`:""},this._extScope=k,this._scope=new r.Scope({parent:k}),this._nodes=[new p]}toString(){return this._root.render(this.opts)}name(k){return this._scope.name(k)}scopeName(k){return this._extScope.name(k)}scopeValue(k,T){const j=this._extScope.value(k,T);return(this._values[j.prefix]||(this._values[j.prefix]=new Set)).add(j),j}getScopeValue(k,T){return this._extScope.getValue(k,T)}scopeRefs(k){return this._extScope.scopeRefs(k,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(k,T,j,Z){const Y=this._scope.toName(T);return j!==void 0&&Z&&(this._constants[Y.str]=j),this._leafNode(new s(k,Y,j)),Y}const(k,T,j){return this._def(r.varKinds.const,k,T,j)}let(k,T,j){return this._def(r.varKinds.let,k,T,j)}var(k,T,j){return this._def(r.varKinds.var,k,T,j)}assign(k,T,j){return this._leafNode(new a(k,T,j))}add(k,T){return this._leafNode(new l(k,t.operators.ADD,T))}code(k){return typeof k=="function"?k():k!==e.nil&&this._leafNode(new f(k)),this}object(...k){const T=["{"];for(const[j,Z]of k)T.length>1&&T.push(","),T.push(j),(j!==Z||this.opts.es5)&&(T.push(":"),(0,e.addCodeArg)(T,Z));return T.push("}"),new e._Code(T)}if(k,T,j){if(this._blockNode(new v(k)),T&&j)this.code(T).else().code(j).endIf();else if(T)this.code(T).endIf();else if(j)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(k){return this._elseNode(new v(k))}else(){return this._elseNode(new y)}endIf(){return this._endBlockNode(v,y)}_for(k,T){return this._blockNode(k),T&&this.code(T).endFor(),this}for(k,T){return this._for(new O(k),T)}forRange(k,T,j,Z,Y=this.opts.es5?r.varKinds.var:r.varKinds.let){const ue=this._scope.toName(k);return this._for(new S(Y,ue,T,j),()=>Z(ue))}forOf(k,T,j,Z=r.varKinds.const){const Y=this._scope.toName(k);if(this.opts.es5){const ue=T instanceof e.Name?T:this.var("_arr",T);return this.forRange("_i",0,(0,e._)`${ue}.length`,G=>{this.var(Y,(0,e._)`${ue}[${G}]`),j(Y)})}return this._for(new x("of",Z,Y,T),()=>j(Y))}forIn(k,T,j,Z=this.opts.es5?r.varKinds.var:r.varKinds.const){if(this.opts.ownProperties)return this.forOf(k,(0,e._)`Object.keys(${T})`,j);const Y=this._scope.toName(k);return this._for(new x("in",Z,Y,T),()=>j(Y))}endFor(){return this._endBlockNode(b)}label(k){return this._leafNode(new c(k))}break(k){return this._leafNode(new u(k))}return(k){const T=new P;if(this._blockNode(T),this.code(k),T.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(P)}try(k,T,j){if(!T&&!j)throw new Error('CodeGen: "try" without "catch" and "finally"');const Z=new I;if(this._blockNode(Z),this.code(k),T){const Y=this.name("e");this._currNode=Z.catch=new E(Y),T(Y)}return j&&(this._currNode=Z.finally=new M,this.code(j)),this._endBlockNode(E,M)}throw(k){return this._leafNode(new d(k))}block(k,T){return this._blockStarts.push(this._nodes.length),k&&this.code(k).endBlock(T),this}endBlock(k){const T=this._blockStarts.pop();if(T===void 0)throw new Error("CodeGen: not in self-balancing block");const j=this._nodes.length-T;if(j<0||k!==void 0&&j!==k)throw new Error(`CodeGen: wrong number of nodes: ${j} vs ${k} expected`);return this._nodes.length=T,this}func(k,T=e.nil,j,Z){return this._blockNode(new w(k,T,j)),Z&&this.code(Z).endFunc(),this}endFunc(){return this._endBlockNode(w)}optimize(k=1){for(;k-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(k){return this._currNode.nodes.push(k),this}_blockNode(k){this._currNode.nodes.push(k),this._nodes.push(k)}_endBlockNode(k,T){const j=this._currNode;if(j instanceof k||T&&j instanceof T)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${T?`${k.kind}/${T.kind}`:k.kind}"`)}_elseNode(k){const T=this._currNode;if(!(T instanceof v))throw new Error('CodeGen: "else" without "if"');return this._currNode=T.else=k,this}get _root(){return this._nodes[0]}get _currNode(){const k=this._nodes;return k[k.length-1]}set _currNode(k){const T=this._nodes;T[T.length-1]=k}}t.CodeGen=V;function U(_,k){for(const T in k)_[T]=(_[T]||0)+(k[T]||0);return _}function X(_,k){return k instanceof e._CodeOrName?U(_,k.names):_}function J(_,k,T){if(_ instanceof e.Name)return j(_);if(!Z(_))return _;return new e._Code(_._items.reduce((Y,ue)=>(ue instanceof e.Name&&(ue=j(ue)),ue instanceof e._Code?Y.push(...ue._items):Y.push(ue),Y),[]));function j(Y){const ue=T[Y.str];return ue===void 0||k[Y.str]!==1?Y:(delete k[Y.str],ue)}function Z(Y){return Y instanceof e._Code&&Y._items.some(ue=>ue instanceof e.Name&&k[ue.str]===1&&T[ue.str]!==void 0)}}function te(_,k){for(const T in k)_[T]=(_[T]||0)-(k[T]||0)}function oe(_){return typeof _=="boolean"||typeof _=="number"||_===null?!_:(0,e._)`!${Q(_)}`}const ae=D(t.operators.AND);function ie(..._){return _.reduce(ae)}const he=D(t.operators.OR);function L(..._){return _.reduce(he)}function D(_){return(k,T)=>k===e.nil?T:T===e.nil?k:(0,e._)`${Q(k)} ${_} ${Q(T)}`}function Q(_){return _ instanceof e.Name?_:(0,e._)`(${_})`}})(G1)),G1}var gr={},IV;function Pt(){if(IV)return gr;IV=1,Object.defineProperty(gr,"__esModule",{value:!0}),gr.Type=gr.mergeEvaluated=void 0,gr.toHash=r,gr.alwaysValidSchema=n,gr.checkUnknownRules=i,gr.schemaHasRules=o,gr.schemaHasRulesButRef=s,gr.schemaRefOrVal=a,gr.unescapeFragment=l,gr.escapeFragment=c,gr.escapeJsonPointer=u,gr.unescapeJsonPointer=d,gr.eachItem=f,gr.evaluatedPropsToName=g,gr.setEvaluated=p,gr.useFunc=v,gr.getErrorPath=O,gr.checkStrictMode=S;const t=ct(),e=D0();function r(x){const w={};for(const P of x)w[P]=!0;return w}function n(x,w){return typeof w=="boolean"?w:Object.keys(w).length===0?!0:(i(x,w),!o(w,x.self.RULES.all))}function i(x,w=x.schema){const{opts:P,self:I}=x;if(!P.strictSchema||typeof w=="boolean")return;const E=I.RULES.keywords;for(const M in w)E[M]||S(x,`unknown keyword: "${M}"`)}function o(x,w){if(typeof x=="boolean")return!x;for(const P in x)if(w[P])return!0;return!1}function s(x,w){if(typeof x=="boolean")return!x;for(const P in x)if(P!=="$ref"&&w.all[P])return!0;return!1}function a({topSchemaRef:x,schemaPath:w},P,I,E){if(!E){if(typeof P=="number"||typeof P=="boolean")return P;if(typeof P=="string")return(0,t._)`${P}`}return(0,t._)`${x}${w}${(0,t.getProperty)(I)}`}function l(x){return d(decodeURIComponent(x))}function c(x){return encodeURIComponent(u(x))}function u(x){return typeof x=="number"?`${x}`:x.replace(/~/g,"~0").replace(/\//g,"~1")}function d(x){return x.replace(/~1/g,"/").replace(/~0/g,"~")}function f(x,w){if(Array.isArray(x))for(const P of x)w(P);else w(x)}function h({mergeNames:x,mergeToName:w,mergeValues:P,resultToName:I}){return(E,M,V,U)=>{const X=V===void 0?M:V instanceof t.Name?(M instanceof t.Name?x(E,M,V):w(E,M,V),V):M instanceof t.Name?(w(E,V,M),M):P(M,V);return U===t.Name&&!(X instanceof t.Name)?I(E,X):X}}gr.mergeEvaluated={props:h({mergeNames:(x,w,P)=>x.if((0,t._)`${P} !== true && ${w} !== undefined`,()=>{x.if((0,t._)`${w} === true`,()=>x.assign(P,!0),()=>x.assign(P,(0,t._)`${P} || {}`).code((0,t._)`Object.assign(${P}, ${w})`))}),mergeToName:(x,w,P)=>x.if((0,t._)`${P} !== true`,()=>{w===!0?x.assign(P,!0):(x.assign(P,(0,t._)`${P} || {}`),p(x,P,w))}),mergeValues:(x,w)=>x===!0?!0:{...x,...w},resultToName:g}),items:h({mergeNames:(x,w,P)=>x.if((0,t._)`${P} !== true && ${w} !== undefined`,()=>x.assign(P,(0,t._)`${w} === true ? true : ${P} > ${w} ? ${P} : ${w}`)),mergeToName:(x,w,P)=>x.if((0,t._)`${P} !== true`,()=>x.assign(P,w===!0?!0:(0,t._)`${P} > ${w} ? ${P} : ${w}`)),mergeValues:(x,w)=>x===!0?!0:Math.max(x,w),resultToName:(x,w)=>x.var("items",w)})};function g(x,w){if(w===!0)return x.var("props",!0);const P=x.var("props",(0,t._)`{}`);return w!==void 0&&p(x,P,w),P}function p(x,w,P){Object.keys(P).forEach(I=>x.assign((0,t._)`${w}${(0,t.getProperty)(I)}`,!0))}const y={};function v(x,w){return x.scopeValue("func",{ref:w,code:y[w.code]||(y[w.code]=new e._Code(w.code))})}var b;(function(x){x[x.Num=0]="Num",x[x.Str=1]="Str"})(b||(gr.Type=b={}));function O(x,w,P){if(x instanceof t.Name){const I=w===b.Num;return P?I?(0,t._)`"[" + ${x} + "]"`:(0,t._)`"['" + ${x} + "']"`:I?(0,t._)`"/" + ${x}`:(0,t._)`"/" + ${x}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return P?(0,t.getProperty)(x).toString():"/"+u(x)}function S(x,w,P=x.opts.strictSchema){if(P){if(w=`strict mode: ${w}`,P===!0)throw new Error(w);x.self.logger.warn(w)}}return gr}var Wm={},TV;function So(){if(TV)return Wm;TV=1,Object.defineProperty(Wm,"__esModule",{value:!0});const t=ct(),e={data:new t.Name("data"),valCxt:new t.Name("valCxt"),instancePath:new t.Name("instancePath"),parentData:new t.Name("parentData"),parentDataProperty:new t.Name("parentDataProperty"),rootData:new t.Name("rootData"),dynamicAnchors:new t.Name("dynamicAnchors"),isAllOfVariant:new t.Name("isAllOfVariant"),vErrors:new t.Name("vErrors"),errors:new t.Name("errors"),this:new t.Name("this"),self:new t.Name("self"),scope:new t.Name("scope"),json:new t.Name("json"),jsonPos:new t.Name("jsonPos"),jsonLen:new t.Name("jsonLen"),jsonPart:new t.Name("jsonPart")};return Wm.default=e,Wm}var _V;function gS(){return _V||(_V=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.keyword$DataError=t.keywordError=void 0,t.reportError=i,t.reportExtraError=o,t.resetErrorsCount=s,t.extendErrors=a;const e=ct(),r=Pt(),n=So();t.keywordError={message:({keyword:y})=>(0,e.str)`must pass "${y}" keyword validation`},t.keyword$DataError={message:({keyword:y,schemaType:v})=>v?(0,e.str)`"${y}" keyword must be ${v} ($data)`:(0,e.str)`"${y}" keyword is invalid ($data)`};function i(y,v=t.keywordError,b,O){const{it:S}=y,{gen:x,compositeRule:w,allErrors:P}=S,I=d(y,v,b);O??(w||P)?l(x,I):c(S,(0,e._)`[${I}]`)}function o(y,v=t.keywordError,b){const{it:O}=y,{gen:S,compositeRule:x,allErrors:w}=O,P=d(y,v,b);l(S,P),x||w||c(O,n.default.vErrors)}function s(y,v){y.assign(n.default.errors,v),y.if((0,e._)`${n.default.vErrors} !== null`,()=>y.if(v,()=>y.assign((0,e._)`${n.default.vErrors}.length`,v),()=>y.assign(n.default.vErrors,null)))}function a({gen:y,keyword:v,schemaValue:b,data:O,errsCount:S,it:x}){if(S===void 0)throw new Error("ajv implementation error");const w=y.name("err");y.forRange("i",S,n.default.errors,P=>{y.const(w,(0,e._)`${n.default.vErrors}[${P}]`),y.if((0,e._)`${w}.instancePath === undefined`,()=>y.assign((0,e._)`${w}.instancePath`,(0,e.strConcat)(n.default.instancePath,x.errorPath))),y.assign((0,e._)`${w}.schemaPath`,(0,e.str)`${x.errSchemaPath}/${v}`),x.opts.verbose&&(y.assign((0,e._)`${w}.schema`,b),y.assign((0,e._)`${w}.data`,O))})}function l(y,v){const b=y.const("err",v);y.if((0,e._)`${n.default.vErrors} === null`,()=>y.assign(n.default.vErrors,(0,e._)`[${b}]`),(0,e._)`${n.default.vErrors}.push(${b})`),y.code((0,e._)`${n.default.errors}++`)}function c(y,v){const{gen:b,validateName:O,schemaEnv:S}=y;S.$async?b.throw((0,e._)`new ${y.ValidationError}(${v})`):(b.assign((0,e._)`${O}.errors`,v),b.return(!1))}const u={keyword:new e.Name("keyword"),schemaPath:new e.Name("schemaPath"),params:new e.Name("params"),propertyName:new e.Name("propertyName"),message:new e.Name("message"),schema:new e.Name("schema"),parentSchema:new e.Name("parentSchema")};function d(y,v,b){const{createErrors:O}=y.it;return O===!1?(0,e._)`{}`:f(y,v,b)}function f(y,v,b={}){const{gen:O,it:S}=y,x=[h(S,b),g(y,b)];return p(y,v,x),O.object(...x)}function h({errorPath:y},{instancePath:v}){const b=v?(0,e.str)`${y}${(0,r.getErrorPath)(v,r.Type.Str)}`:y;return[n.default.instancePath,(0,e.strConcat)(n.default.instancePath,b)]}function g({keyword:y,it:{errSchemaPath:v}},{schemaPath:b,parentSchema:O}){let S=O?v:(0,e.str)`${v}/${y}`;return b&&(S=(0,e.str)`${S}${(0,r.getErrorPath)(b,r.Type.Str)}`),[u.schemaPath,S]}function p(y,{params:v,message:b},O){const{keyword:S,data:x,schemaValue:w,it:P}=y,{opts:I,propertyName:E,topSchemaRef:M,schemaPath:V}=P;O.push([u.keyword,S],[u.params,typeof v=="function"?v(y):v||(0,e._)`{}`]),I.messages&&O.push([u.message,typeof b=="function"?b(y):b]),I.verbose&&O.push([u.schema,w],[u.parentSchema,(0,e._)`${M}${V}`],[n.default.data,x]),E&&O.push([u.propertyName,E])}})(Z1)),Z1}var RV;function vqe(){if(RV)return Rf;RV=1,Object.defineProperty(Rf,"__esModule",{value:!0}),Rf.topBoolOrEmptySchema=i,Rf.boolOrEmptySchema=o;const t=gS(),e=ct(),r=So(),n={message:"boolean schema is false"};function i(a){const{gen:l,schema:c,validateName:u}=a;c===!1?s(a,!1):typeof c=="object"&&c.$async===!0?l.return(r.default.data):(l.assign((0,e._)`${u}.errors`,null),l.return(!0))}function o(a,l){const{gen:c,schema:u}=a;u===!1?(c.var(l,!1),s(a)):c.var(l,!0)}function s(a,l){const{gen:c,data:u}=a,d={gen:c,keyword:"false schema",data:u,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:a};(0,t.reportError)(d,n,void 0,l)}return Rf}var Gi={},jf={},jV;function gJ(){if(jV)return jf;jV=1,Object.defineProperty(jf,"__esModule",{value:!0}),jf.isJSONType=r,jf.getRules=n;const t=["string","number","integer","boolean","null","object","array"],e=new Set(t);function r(i){return typeof i=="string"&&e.has(i)}function n(){const i={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...i,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},i.number,i.string,i.array,i.object],post:{rules:[]},all:{},keywords:{}}}return jf}var Gc={},DV;function mJ(){if(DV)return Gc;DV=1,Object.defineProperty(Gc,"__esModule",{value:!0}),Gc.schemaHasRulesForType=t,Gc.shouldUseGroup=e,Gc.shouldUseRule=r;function t({schema:n,self:i},o){const s=i.RULES.types[o];return s&&s!==!0&&e(n,s)}function e(n,i){return i.rules.some(o=>r(n,o))}function r(n,i){var o;return n[i.keyword]!==void 0||((o=i.definition.implements)===null||o===void 0?void 0:o.some(s=>n[s]!==void 0))}return Gc}var MV;function M0(){if(MV)return Gi;MV=1,Object.defineProperty(Gi,"__esModule",{value:!0}),Gi.DataType=void 0,Gi.getSchemaTypes=s,Gi.getJSONTypes=a,Gi.coerceAndCheckDataType=l,Gi.checkDataType=h,Gi.checkDataTypes=g,Gi.reportTypeError=y;const t=gJ(),e=mJ(),r=gS(),n=ct(),i=Pt();var o;(function(b){b[b.Correct=0]="Correct",b[b.Wrong=1]="Wrong"})(o||(Gi.DataType=o={}));function s(b){const O=a(b.type);if(O.includes("null")){if(b.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!O.length&&b.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');b.nullable===!0&&O.push("null")}return O}function a(b){const O=Array.isArray(b)?b:b?[b]:[];if(O.every(t.isJSONType))return O;throw new Error("type must be JSONType or JSONType[]: "+O.join(","))}function l(b,O){const{gen:S,data:x,opts:w}=b,P=u(O,w.coerceTypes),I=O.length>0&&!(P.length===0&&O.length===1&&(0,e.schemaHasRulesForType)(b,O[0]));if(I){const E=g(O,x,w.strictNumbers,o.Wrong);S.if(E,()=>{P.length?d(b,O,P):y(b)})}return I}const c=new Set(["string","number","integer","boolean","null"]);function u(b,O){return O?b.filter(S=>c.has(S)||O==="array"&&S==="array"):[]}function d(b,O,S){const{gen:x,data:w,opts:P}=b,I=x.let("dataType",(0,n._)`typeof ${w}`),E=x.let("coerced",(0,n._)`undefined`);P.coerceTypes==="array"&&x.if((0,n._)`${I} == 'object' && Array.isArray(${w}) && ${w}.length == 1`,()=>x.assign(w,(0,n._)`${w}[0]`).assign(I,(0,n._)`typeof ${w}`).if(g(O,w,P.strictNumbers),()=>x.assign(E,w))),x.if((0,n._)`${E} !== undefined`);for(const V of S)(c.has(V)||V==="array"&&P.coerceTypes==="array")&&M(V);x.else(),y(b),x.endIf(),x.if((0,n._)`${E} !== undefined`,()=>{x.assign(w,E),f(b,E)});function M(V){switch(V){case"string":x.elseIf((0,n._)`${I} == "number" || ${I} == "boolean"`).assign(E,(0,n._)`"" + ${w}`).elseIf((0,n._)`${w} === null`).assign(E,(0,n._)`""`);return;case"number":x.elseIf((0,n._)`${I} == "boolean" || ${w} === null
|
|
2449
2449
|
|| (${I} == "string" && ${w} && ${w} == +${w})`).assign(E,(0,n._)`+${w}`);return;case"integer":x.elseIf((0,n._)`${I} === "boolean" || ${w} === null
|
|
2450
2450
|
|| (${I} === "string" && ${w} && ${w} == +${w} && !(${w} % 1))`).assign(E,(0,n._)`+${w}`);return;case"boolean":x.elseIf((0,n._)`${w} === "false" || ${w} === 0 || ${w} === null`).assign(E,!1).elseIf((0,n._)`${w} === "true" || ${w} === 1`).assign(E,!0);return;case"null":x.elseIf((0,n._)`${w} === "" || ${w} === 0 || ${w} === false`),x.assign(E,null);return;case"array":x.elseIf((0,n._)`${I} === "string" || ${I} === "number"
|
|
@@ -2475,7 +2475,7 @@ ${o.message}`})}}}}),hK=({filePath:t})=>({Info:{leave(e,{report:r,location:n,con
|
|
|
2475
2475
|
${o.message}`,location:n.child("description")})}}}}),pK=t=>({Info:{leave(e){if(typeof t!="object"||Array.isArray(t)||t===null)throw new Error('"info-override" decorator should be called with an object');const{severity:r,...n}=t;Object.assign(e,n)}}}),a4e="x-internal",gK=({internalFlagProperty:t=a4e})=>{function e(n,i,o){var c,u,d,f,h;const{parent:s,key:a}=i;let l=!1;if(Array.isArray(n))for(let g=0;g<n.length;g++){if(Tr(n[g])&&(c=i.resolve(n[g]).node)!=null&&c[t]){if(ht((u=s.discriminator)==null?void 0:u.mapping))for(const y in s.discriminator.mapping)(o==null?void 0:o[y])===n[g].$ref&&delete s.discriminator.mapping[y];n.splice(g,1),l=!0,g--}(d=n[g])!=null&&d[t]&&(n.splice(g,1),l=!0,g--)}else if(ht(n))for(const g of Object.keys(n)){if(Tr(n[g])){const p=i.resolve(n[g]);ht(p.node)&&((f=p.node)!=null&&f[t])&&(delete n[g],l=!0)}ht(n[g])&&((h=n[g])!=null&&h[t])&&(delete n[g],l=!0)}l&&(Ip(n)||u8(n))&&delete s[a]}let r={};return{DiscriminatorMapping:{enter:n=>{r=JSON.parse(JSON.stringify(n))}},any:{enter:(n,i)=>{e(n,i,r)}}}};function mK(t,e,r){const{parent:n,key:i}=e;let o=!1;if(Array.isArray(t))for(let s=0;s<t.length;s++){if(Tr(t[s])){const a=e.resolve(t[s]);r(a.node)&&(t.splice(s,1),o=!0,s--)}r(t[s])&&(t.splice(s,1),o=!0,s--)}else if(ht(t))for(const s of Object.keys(t)){if(t=t,Tr(t[s])){const a=e.resolve(t[s]);r(a.node)&&(delete t[s],o=!0)}r(t[s])&&(delete t[s],o=!0)}o&&(Ip(t)||u8(t))&&delete n[i]}function yK(t,e,r){return t===void 0||e===void 0?!1:!Array.isArray(e)&&!Array.isArray(t)?t===e:(e=xq(e),t=xq(t),r==="any"?e.some(n=>t.includes(n)):r==="all"?e.every(n=>t.includes(n)):!1)}function xq(t){return Array.isArray(t)?t:[t]}const l4e="any",vK=({property:t,value:e,matchStrategy:r})=>{const n=r||l4e,i=o=>(o==null?void 0:o[t])&&!yK(o==null?void 0:o[t],e,n);return{any:{enter:(o,s)=>{mK(o,s,i)}}}},c4e="any",bK=({property:t,value:e,matchStrategy:r})=>{const n=r||c4e,i=o=>yK(o==null?void 0:o[t],e,n);return{any:{enter:(o,s)=>{mK(o,s,i)}}}},u4e=({operationIds:t})=>({Operation:{enter(e,r){const n=e.operationId;if(!n)return;const i=t[n];if(i){if(i.responses&&e.responses)for(const o of Object.keys(i.responses)){const s=Sq(e.responses[o],r.resolve);s&&(s.content=s.content?s.content:{},Object.keys(i.responses[o]).forEach(a=>{var c;const l=i.responses[o][a];s.content[a]={...s.content[a],examples:fV(Tp(l,(c=r.config)==null?void 0:c.configPath))}}),e.responses[o]=s)}if(i.request&&e.requestBody){const o=Sq(e.requestBody,r.resolve);if(!o)return;o.content=o.content?o.content:{},Object.keys(i.request).forEach(s=>{var l;const a=i.request[s];o.content[s]={...o.content[s],examples:fV(Tp(a,(l=r.config)==null?void 0:l.configPath))}}),e.requestBody=o}}}}});function Sq(t,e){if(!Tr(t))return t;const r=e(t);return r.error?void 0:JSON.parse(JSON.stringify(r.node))}const d4e={"operation-description-override":dK,"tag-description-override":fK,"info-description-override":hK,"info-override":pK,"remove-x-internal":gK,"filter-in":vK,"filter-out":bK,"media-type-examples-override":u4e},f4e={"operation-description-override":dK,"tag-description-override":fK,"info-description-override":hK,"info-override":pK,"remove-x-internal":gK,"filter-in":vK,"filter-out":bK},h4e={},p4e={},g4e={},m4e={},y4e={recommended:vWe,"recommended-strict":bWe,minimal:xWe,all:OWe,spec:SWe},wq={id:"",rules:{oas3:CUe,oas2:IUe,async2:jUe,async3:LUe,arazzo1:n4e,overlay1:o4e},preprocessors:{oas3:PUe,oas2:TUe,async2:DUe,async3:QUe,arazzo1:i4e,overlay1:s4e},decorators:{oas3:d4e,oas2:f4e,async2:h4e,async3:p4e,arazzo1:g4e,overlay1:m4e},configs:y4e},v4e={Root:"DefinitionRoot",ServerVariablesMap:"ServerVariableMap",Paths:["PathMap","PathsMap"],CallbacksMap:"CallbackMap",MediaTypesMap:"MediaTypeMap",ExamplesMap:"ExampleMap",EncodingMap:"EncodingsMap",HeadersMap:"HeaderMap",LinksMap:"LinkMap",OAuth2Flows:"SecuritySchemeFlows",Responses:"ResponsesMap"};function kd(t,e){const r={};r.any={enter:[],leave:[]};for(const s of Object.keys(e))r[s]={enter:[],leave:[]};r.ref={enter:[],leave:[]};for(const{ruleId:s,severity:a,message:l,visitor:c}of t)o({ruleId:s,severity:a,message:l},c,null);for(const s of Object.keys(r))r[s].enter.sort((a,l)=>l.depth-a.depth),r[s].leave.sort((a,l)=>a.depth-l.depth);return r;function n(s,a,l,c,u=[]){if(u.includes(a))return;u=[...u,a];const d=new Set;for(const h of Object.values(a.properties)){if(h===l){f(s,u);continue}typeof h=="object"&&h!==null&&h.name&&d.add(h)}a.additionalProperties&&typeof a.additionalProperties!="function"&&(a.additionalProperties===l?f(s,u):a.additionalProperties.name!==void 0&&d.add(a.additionalProperties)),a.items&&typeof a.items!="function"&&(a.items===l?f(s,u):a.items.name!==void 0&&d.add(a.items)),a.extensionsPrefix&&d.add(Hl);for(const h of Array.from(d.values()))n(s,h,l,c,u);function f(h,g){for(const p of g.slice(1))r[p.name]=r[p.name]||{enter:[],leave:[]},r[p.name].enter.push({...h,visit:()=>{},depth:0,context:{isSkippedLevel:!0,seen:new Set,parent:c}})}}function i(s,a){if(Array.isArray(a)){const l=a.find(c=>s[c])||void 0;return l&&s[l]}return s[a]}function o(s,a,l,c=0){const u=Object.keys(e);if(c===0)u.push("any"),u.push("ref");else{if(a.any)throw new Error("any() is allowed only on top level");if(a.ref)throw new Error("ref() is allowed only on top level")}for(const d of u){const f=a[d]||i(a,v4e[d]),h=r[d];if(!f)continue;let g,p,y;const v=ht(f);if(d==="ref"&&v&&f.skip)throw new Error("ref() visitor does not support skip");typeof f=="function"?g=f:v&&(g=f.enter,p=f.leave,y=f.skip);const b=(g?1:0)+(p?1:0)+(y?1:0),O=v&&Object.keys(f).length>b,S={activatedOn:null,type:e[d],parent:l,isSkippedLevel:!1};if(O&&o(s,f,S,c+1),l&&n(s,l.type,e[d],l),g||v){if(g&&typeof g!="function")throw new Error("DEV: should be function");h.enter.push({...s,visit:g||(()=>{}),skip:y,depth:c,context:S})}if(p){if(typeof p!="function")throw new Error("DEV: should be function");h.leave.push({...s,visit:p,depth:c,context:S})}}}}function b4e(t){var r;const e={};for(;t.parent;)e[t.parent.type.name]=(r=t.parent.activatedOn)==null?void 0:r.value.node,t=t.parent;return e}function O4e(t){var r,n;const e={};for(;t.parent;)(r=t.parent.activatedOn)!=null&&r.value.location&&(e[t.parent.type.name]=(n=t.parent.activatedOn)==null?void 0:n.value.location),t=t.parent;return e}function $d(t){const{document:e,rootType:r,normalizedVisitors:n,resolvedRefMap:i,ctx:o}=t,s={},a=new Set;l(e.parsed,r,new qu(e.source,"#/"),void 0,"");function l(c,u,d,f,h){var I,E,M,V,U,X,J,te,oe,ae;const g=(ie,he=y.source.absoluteRef)=>{if(!Tr(ie))return{location:d,node:ie};const L=Qh(he,ie.$ref),D=i.get(L);if(!D)return{location:void 0,node:void 0};const{resolved:Q,node:_,document:k,nodePointer:T,error:j}=D;return{location:Q?new qu(k.source,T):j instanceof Zd?new qu(j.source,""):void 0,node:_,error:j}},p=d;let y=d;const{node:v,location:b,error:O}=g(c),S=new Set;if(Tr(c)){const ie=n.ref.enter;for(const{visit:he,ruleId:L,severity:D,message:Q,context:_}of ie){S.add(_);const k=w.bind(void 0,L,D,Q);he(c,{report:k,resolve:g,rawNode:c,rawLocation:p,location:d,type:u,parent:f,key:h,parentLocations:{},specVersion:o.specVersion,config:o.config,getVisitorData:P.bind(void 0,L)},{node:v,location:b,error:O}),b!=null&&b.source.absoluteRef&&o.refTypes&&o.refTypes.set(b==null?void 0:b.source.absoluteRef,u)}}if(v!==void 0&&b&&u.name!=="scalar"){y=b;const ie=(E=(I=s[u.name])==null?void 0:I.has)==null?void 0:E.call(I,v);let he=!1;const D=n.any.enter.concat(((M=n[u.name])==null?void 0:M.enter)||[]),Q=[];for(const{context:T,visit:j,skip:Z,ruleId:Y,severity:ue,message:G}of D){if(a.has(`${y.absolutePointer}${y.pointer}`))break;if(T.isSkippedLevel)T.parent.activatedOn&&!T.parent.activatedOn.value.nextLevelTypeActivated&&!T.seen.has(c)&&(T.seen.add(c),he=!0,Q.push(T));else if(T.parent&&T.parent.activatedOn&&((V=T.activatedOn)==null?void 0:V.value.withParentNode)!==T.parent.activatedOn.value.node&&((U=T.parent.activatedOn.value.nextLevelTypeActivated)==null?void 0:U.value)!==u||!T.parent&&!ie){Q.push(T);const B={node:v,location:b,nextLevelTypeActivated:null,withParentNode:(J=(X=T.parent)==null?void 0:X.activatedOn)==null?void 0:J.value.node,skipped:(((oe=(te=T.parent)==null?void 0:te.activatedOn)==null?void 0:oe.value.skipped)||(Z==null?void 0:Z(v,h,{location:d,rawLocation:p,resolve:g,rawNode:c})))??!1};T.activatedOn=uV(T.activatedOn,B);let z=T.parent;for(;z;)z.activatedOn.value.nextLevelTypeActivated=uV(z.activatedOn.value.nextLevelTypeActivated,u),z=z.parent;B.skipped||(he=!0,S.add(T),x(j,v,c,T,Y,ue,G))}}if(he||!ie){if(s[u.name]=s[u.name]||new Set,s[u.name].add(v),Array.isArray(v)){const T=u.items;if(T!==void 0){const j=typeof T=="function";for(let Z=0;Z<v.length;Z++){let Y=j?T(v[Z],b.child([Z]).absolutePointer):T,ue=v[Z];Y!=null&&Y.directResolveAs&&(Y=Y.directResolveAs,ue={$ref:ue}),Jl(Y)&&l(ue,Y,b.child([Z]),v,Z)}}}else if(typeof v=="object"&&v!==null){const T=Object.keys(u.properties);u.additionalProperties?T.push(...Object.keys(v).filter(j=>!T.includes(j))):u.extensionsPrefix&&T.push(...Object.keys(v).filter(j=>j.startsWith(u.extensionsPrefix))),Tr(c)&&T.push(...Object.keys(c).filter(j=>j!=="$ref"&&!T.includes(j)));for(const j of T){let Z=v[j],Y=b;Z===void 0&&(Z=c[j],Y=d);let ue=ig(u.properties,j);ue===void 0&&(ue=u.additionalProperties),typeof ue=="function"&&(ue=ue(Z,j)),ue===void 0&&u.extensionsPrefix&&j.startsWith(u.extensionsPrefix)&&(ue=Hl),!Jl(ue)&&(ue!=null&&ue.directResolveAs)&&(ue=ue.directResolveAs,Z={$ref:Z}),ue&&ue.name===void 0&&ue.resolvable!==!1&&(ue={name:"scalar",properties:{}}),!(!Jl(ue)||ue.name==="scalar"&&!Tr(Z))&&l(Z,ue,Y.child([j]),v,j)}}}const _=n.any.leave,k=(((ae=n[u.name])==null?void 0:ae.leave)||[]).concat(_);for(const T of Q.reverse())if(T.isSkippedLevel)T.seen.delete(v);else if(T.activatedOn=dV(T.activatedOn),T.parent){let j=T.parent;for(;j;)j.activatedOn.value.nextLevelTypeActivated=dV(j.activatedOn.value.nextLevelTypeActivated),j=j.parent}for(const{context:T,visit:j,ruleId:Z,severity:Y,message:ue}of k)!T.isSkippedLevel&&S.has(T)&&x(j,v,c,T,Z,Y,ue)}if(y=d,Tr(c)){const ie=n.ref.leave;for(const{visit:he,ruleId:L,severity:D,context:Q,message:_}of ie)if(S.has(Q)){const k=w.bind(void 0,L,D,_);he(c,{report:k,resolve:g,rawNode:c,rawLocation:p,location:d,type:u,parent:f,key:h,parentLocations:{},specVersion:o.specVersion,config:o.config,getVisitorData:P.bind(void 0,L)},{node:v,location:b,error:O})}}function x(ie,he,L,D,Q,_,k){const T=w.bind(void 0,Q,_,k);ie(he,{report:T,resolve:g,rawNode:L,location:y,rawLocation:p,type:u,parent:f,key:h,parentLocations:O4e(D),specVersion:o.specVersion,config:o.config,ignoreNextVisitorsOnNode:()=>{a.add(`${y.absolutePointer}${y.pointer}`)},getVisitorData:P.bind(void 0,Q)},b4e(D),D)}function w(ie,he,L,D){const _=(D.location?Array.isArray(D.location)?D.location:[D.location]:[{...y,reportOnKey:!1}]).map(T=>({...y,reportOnKey:!1,...T})),k=D.forceSeverity||he;k!=="off"&&o.problems.push({ruleId:D.ruleId||ie,severity:k,...D,message:L?L.replace("{{message}}",D.message):D.message,suggest:D.suggest||[],location:_})}function P(ie){return o.visitorsData[ie]=o.visitorsData[ie]||{},o.visitorsData[ie]}}}function q0(t,e,r,n){return t.flatMap(i=>Object.keys(i).map(o=>{const s=i[o],a=r==="rules"?e.getRuleSettings(o,n):r==="preprocessors"?e.getPreprocessorSettings(o,n):e.getDecoratorSettings(o,n);if(a.severity==="off")return;const l=a.severity,c=a.message,u=s(a);return Array.isArray(u)?u.map(d=>({severity:l,ruleId:o,message:c,visitor:d})):{severity:l,message:c,ruleId:o,visitor:u}})).flatMap(i=>i).filter(k0)}const x4e=()=>{const t=new Map;function e(n,i,o){var s;t.set(n.absolutePointer,{usedIn:((s=t.get(n.absolutePointer))==null?void 0:s.usedIn)??[],componentType:i,name:o})}function r(n,i){const o=i.length;for(const[s,{usedIn:a,name:l,componentType:c}]of t)!a.some(d=>!i.some(f=>d.absolutePointer.startsWith(f)&&(d.absolutePointer.length===f.length||d.absolutePointer[f.length]==="/")))&&c&&(i.push(s),delete n[c][l],t.delete(s),Ip(n[c])&&delete n[c]);return i.length>o?r(n,i):i.length}return{ref:{leave(n,{location:i,type:o,resolve:s,key:a}){if(["Schema","Parameter","Response","SecurityScheme"].includes(o.name)){const l=s(n);if(!l.location)return;const[c,u]=l.location.absolutePointer.split("#",2);if(!u)return;const d=u.split("/").slice(0,3).join("/"),f=`${c}#${d}`,h=t.get(f);h?h.usedIn.push(i):t.set(f,{usedIn:[i],name:a.toString()})}}},Root:{leave(n,i){const o=i.getVisitorData();o.removedCount=r(n,[])}},NamedSchemas:{Schema(n,{location:i,key:o}){n.allOf||e(i,"definitions",o.toString())}},NamedParameters:{Parameter(n,{location:i,key:o}){e(i,"parameters",o.toString())}},NamedResponses:{Response(n,{location:i,key:o}){e(i,"responses",o.toString())}},NamedSecuritySchemes:{SecurityScheme(n,{location:i,key:o}){e(i,"securityDefinitions",o.toString())}}}},S4e=()=>{const t=new Map;function e(n,i,o){var s;t.set(n.absolutePointer,{usedIn:((s=t.get(n.absolutePointer))==null?void 0:s.usedIn)??[],componentType:i,name:o})}function r(n,i){const o=i.length;for(const[s,{usedIn:a,name:l,componentType:c}]of t)if(!a.some(d=>!i.some(f=>d.absolutePointer.startsWith(f)&&(d.absolutePointer.length===f.length||d.absolutePointer[f.length]==="/")))&&c&&n.components){i.push(s);const d=n.components[c];delete d[l],t.delete(s),Ip(d)&&delete n.components[c]}return i.length>o?r(n,i):i.length}return{ref:{leave(n,{location:i,type:o,resolve:s,key:a}){if(["Schema","Header","Parameter","Response","Example","RequestBody"].includes(o.name)){const l=s(n);if(!l.location)return;const[c,u]=l.location.absolutePointer.split("#",2);if(!u)return;const d=u.split("/").slice(0,4).join("/"),f=`${c}#${d}`,h=t.get(f);h?h.usedIn.push(i):t.set(f,{usedIn:[i],name:a.toString()})}}},Root:{leave(n,i){const o=i.getVisitorData();o.removedCount=r(n,[]),Ip(n.components)&&delete n.components}},NamedSchemas:{Schema(n,{location:i,key:o}){n.allOf||e(i,"schemas",o.toString())}},NamedParameters:{Parameter(n,{location:i,key:o}){e(i,"parameters",o.toString())}},NamedResponses:{Response(n,{location:i,key:o}){e(i,"responses",o.toString())}},NamedExamples:{Example(n,{location:i,key:o}){e(i,"examples",o.toString())}},NamedRequestBodies:{RequestBody(n,{location:i,key:o}){e(i,"requestBodies",o.toString())}},NamedHeaders:{Header(n,{location:i,key:o}){e(i,"headers",o.toString())}}}};function OK({node:t,ctx:e,plugins:r}){if(!t.extends)return t;const n=(t.extends||[]).map(i=>{if(!Fr(i)&&!hc.extname(i))return N4e(i,r);const o=e.resolve({$ref:i});return o.location&&o.node!==void 0?o.node:null}).filter(Di);return kJ([...n.map(i=>OK({node:i,ctx:e,plugins:r})),{...t,extends:void 0}])}const w4e="redocly.yaml",C4e={extends:["recommended"]},Eb=".redocly.lint-ignore.yaml",P4e=`# This file instructs Redocly's linter to ignore the rules contained for specific parts of your API.
|
|
2476
2476
|
# See https://redocly.com/docs/cli/ for more information.
|
|
2477
2477
|
`,xK="configBundler",SK="pluginsCollector",k4e=["@theme/plugin.js","@theme/plugin.cjs","@theme/plugin.mjs"];function kv(t,e){if(ht(t)&&Array.isArray(t.plugins)){const{plugins:r,rootConfigDir:n}=e.getVisitorData();r.push(...t.plugins.map(i=>wK(i,e.location.source.absoluteRef.replace(/^file:\/\//,""),n)))}}const $4e=kd([{severity:"error",ruleId:SK,visitor:{ref:{},ConfigGovernance:{leave(t,e){kv(t,e)}},ConfigApisProperties:{leave(t,e){kv(t,e)}},"rootRedoclyConfigSchema.scorecard.levels_items":{leave(t,e){kv(t,e)}},ConfigRoot:{leave(t,e){kv(t,e)}}}}],og);function $v(t,e){if(ht(t)&&t.extends){const{plugins:r}=e.getVisitorData(),n=OK({node:t,ctx:e,plugins:r});Object.assign(t,n),delete t.extends}}const E4e=kd([{severity:"error",ruleId:xK,visitor:{ref:{leave(t,e,r){xE(t,r,e)}},ConfigGovernance:{leave(t,e){$v(t,e)}},ConfigApisProperties:{leave(t,e){$v(t,e)}},"rootRedoclyConfigSchema.scorecard.levels_items":{leave(t,e){$v(t,e)}},ConfigRoot:{leave(t,e){$v(t,e)}}}}],og);function A4e(t,e,r){const n={plugins:[],rootConfigDir:r},i={problems:[],specVersion:"oas3_0",refTypes:new Map,visitorsData:{[SK]:n}};return $d({document:t,rootType:og.ConfigRoot,normalizedVisitors:$4e,resolvedRefMap:e,ctx:i}),n.plugins}function I4e(t,e,r){const n={plugins:r},i={problems:[],specVersion:"oas3_0",refTypes:new Map,visitorsData:{[xK]:n}};return $d({document:t,rootType:og.ConfigRoot,normalizedVisitors:E4e,resolvedRefMap:e,ctx:i}),t.parsed??{}}async function T4e(t){var s;const{ref:e,doc:r,externalRefResolver:n=new bS(t.config.resolve),base:i=null}=t;if(!(e||r))throw new Error(`Document or reference is required.
|
|
2478
|
-
`);const o=r===void 0?await n.resolveDocument(i,e,!0):r;if(o instanceof Error)throw o;return(s=t.collectSpecData)==null||s.call(t,o.parsed),_4e({document:o,...t,externalRefResolver:n})}async function _4e(t){const{document:e,config:r,customTypes:n,externalRefResolver:i,dereference:o=!1,removeUnusedComponents:s=!1,keepUrlRefs:a=!1}=t,l=JT(e.parsed),c=pJ(l),u=r.getRulesForSpecVersion(c),d=UT(r.extendTypes(n??KT(l),l),r),f=q0(u,r,"preprocessors",l),h=q0(u,r,"decorators",l),g={problems:[],specVersion:l,config:r,refTypes:new Map,visitorsData:{}};s&&h.push({severity:"error",ruleId:"remove-unused-components",visitor:c==="oas2"?x4e():S4e()});let p=await Rp({rootDocument:e,rootType:d.Root,externalRefResolver:i});f.length>0&&($d({document:e,rootType:d.Root,normalizedVisitors:kd(f,d),resolvedRefMap:p,ctx:g}),p=await Rp({rootDocument:e,rootType:d.Root,externalRefResolver:i}));const y=kd([{severity:"error",ruleId:"bundler",visitor:R4e(c,o,e,p,a)},...h],d);return $d({document:e,rootType:d.Root,normalizedVisitors:y,resolvedRefMap:p,ctx:g}),{bundle:e,problems:g.problems.map(v=>r.addProblemToIgnore(v)),fileDependencies:i.getFiles(),rootType:d.Root,refTypes:g.refTypes,visitorsData:g.visitorsData}}function Cq(t,e){switch(e){case"oas3":switch(t){case"Schema":return"schemas";case"Parameter":return"parameters";case"Response":return"responses";case"Example":return"examples";case"RequestBody":return"requestBodies";case"Header":return"headers";case"SecuritySchema":return"securitySchemes";case"Link":return"links";case"Callback":return"callbacks";default:return null}case"oas2":switch(t){case"Schema":return"definitions";case"Parameter":return"parameters";case"Response":return"responses";default:return null}case"async2":switch(t){case"Schema":return"schemas";case"Parameter":return"parameters";default:return null}case"async3":switch(t){case"Schema":return"schemas";case"Parameter":return"parameters";default:return null}case"arazzo1":switch(t){case"Root.workflows_items.parameters_items":case"Root.workflows_items.steps_items.parameters_items":return"parameters";default:return null}case"overlay1":return null}}function R4e(t,e,r,n,i){let o,s;const a={ref:{leave(f,h,g){if(!g.location||g.node===void 0){Vh(g,h.report,h.location);return}if(g.location.source===r.source&&g.location.source===h.location.source&&h.type.name!=="scalar"&&!e||i&&Fr(f.$ref))return;const p=Cq(h.type.name,t);p?e?(c(p,g,h),xE(f,g,h)):(f.$ref=c(p,g,h),l(f,g,h)):xE(f,g,h)}},Example:{leave(f,h){if(a8(f)&&f.value===void 0){const g=h.resolve({$ref:f.externalValue});if(!g.location||g.node===void 0){Vh(g,h.report,h.location);return}if(i&&Fr(f.externalValue))return;f.value=h.resolve({$ref:f.externalValue}).node,delete f.externalValue}}},Root:{enter(f,h){s=h.location,t==="oas3"?o=f.components=f.components||{}:t==="oas2"?o=f:t==="async2"?o=f.components=f.components||{}:t==="async3"?o=f.components=f.components||{}:t==="arazzo1"&&(o=f.components=f.components||{})}}};t==="oas3"&&(a.DiscriminatorMapping={leave(f,h){for(const g of Object.keys(f)){const p=f[g],y=h.resolve({$ref:p});if(!y.location||y.node===void 0){Vh(y,h.report,h.location.child(g));return}const v=Cq("Schema",t);f[g]=c(v,y,h)}}});function l(f,h,g){const p=Qh(g.location.source.absoluteRef,f.$ref);n.set(p,{document:r,isRemote:!1,node:h.node,nodePointer:f.$ref,resolved:!0})}function c(f,h,g){o[f]=o[f]||{};const p=d(h,f,g);return o[f][p]=h.node,t==="oas3"||t==="async2"||t==="async3"?`#/components/${f}/${p}`:`#/${f}/${p}`}function u(f,h,g){var p;return Tr(f)&&((p=g.resolve(f,s.absolutePointer).location)==null?void 0:p.absolutePointer)===h.location.absolutePointer?!0:SE(f,h.node)}function d(f,h,g){const[p,y]=[f.location.source.absoluteRef,f.location.pointer],v=o[h];let b="";const O=y.slice(2).split("/").filter(Di);for(;O.length>0;)if(b=O.pop()+(b?`-${b}`:""),!v||!v[b]||u(v[b],f,g))return b;if(b=ULe(p)+(b?`_${b}`:""),!v[b]||u(v[b],f,g))return b;const S=b;let x=2;for(;v[b]&&!u(v[b],f,g);)b=`${S}-${x}`,x++;return v[b]||g.report({message:`Two schemas are referenced with the same name but different content. Renamed ${S} to ${b}.`,location:g.location,forceSeverity:"warn"}),b}return a}const uC=new Map;async function j4e({rawConfigDocument:t,configPath:e,externalRefResolver:r,customExtends:n}){var f;const i=t===void 0?C4e:t.parsed;if(n!==void 0&&ht(i)&&(i.extends=n),ht(i)&&((f=i==null?void 0:i.extends)!=null&&f.some(JLe)))throw new Error("Configuration format not detected in extends: values must be strings.");const o=t??{source:new Pd(e??"",JSON.stringify(i)),parsed:i},s=await Rp({rootDocument:o,rootType:og.ConfigRoot,externalRefResolver:r??new bS($J(i==null?void 0:i.resolve))});let a=[],l,c="";Zn?l=[...((i==null?void 0:i.plugins)||[]).filter(g=>!yi(g)),wq]:(c=It.dirname(e??""),a=A4e(o,s,c),l=[...await M4e(a.map(g=>Pq(g)?g.absolutePath:g),c),wq]);const u=I4e(o,fWe(s),l);u.apis&&(u.apis=Object.fromEntries(Object.entries(u.apis).map(([h,g])=>{const p=kJ([u,g]);return[h,{...g,...p}]})));const d=a.length?a.map(h=>Pq(h)&&h.isModule?h.rawPath:h.absolutePath&&It.relative(c,h.absolutePath)).filter(k0):void 0;return{resolvedConfig:{...u,plugins:d},resolvedRefMap:s,plugins:l}}function D4e(t){for(const e of k4e)(void 0)(It.resolve(t,e))}function Pq(t){return"isModule"in t}const wK=(t,e,r)=>{if(!yi(t))return t;const n=It.resolve(It.dirname(e),t);return(void 0)(n)?{absolutePath:n,rawPath:t,isModule:!1}:{absolutePath:U7.createRequire((typeof document>"u"?require("url").pathToFileURL(__filename).href:vs&&vs.tagName.toUpperCase()==="SCRIPT"&&vs.src||new URL("replay-index-
|
|
2478
|
+
`);const o=r===void 0?await n.resolveDocument(i,e,!0):r;if(o instanceof Error)throw o;return(s=t.collectSpecData)==null||s.call(t,o.parsed),_4e({document:o,...t,externalRefResolver:n})}async function _4e(t){const{document:e,config:r,customTypes:n,externalRefResolver:i,dereference:o=!1,removeUnusedComponents:s=!1,keepUrlRefs:a=!1}=t,l=JT(e.parsed),c=pJ(l),u=r.getRulesForSpecVersion(c),d=UT(r.extendTypes(n??KT(l),l),r),f=q0(u,r,"preprocessors",l),h=q0(u,r,"decorators",l),g={problems:[],specVersion:l,config:r,refTypes:new Map,visitorsData:{}};s&&h.push({severity:"error",ruleId:"remove-unused-components",visitor:c==="oas2"?x4e():S4e()});let p=await Rp({rootDocument:e,rootType:d.Root,externalRefResolver:i});f.length>0&&($d({document:e,rootType:d.Root,normalizedVisitors:kd(f,d),resolvedRefMap:p,ctx:g}),p=await Rp({rootDocument:e,rootType:d.Root,externalRefResolver:i}));const y=kd([{severity:"error",ruleId:"bundler",visitor:R4e(c,o,e,p,a)},...h],d);return $d({document:e,rootType:d.Root,normalizedVisitors:y,resolvedRefMap:p,ctx:g}),{bundle:e,problems:g.problems.map(v=>r.addProblemToIgnore(v)),fileDependencies:i.getFiles(),rootType:d.Root,refTypes:g.refTypes,visitorsData:g.visitorsData}}function Cq(t,e){switch(e){case"oas3":switch(t){case"Schema":return"schemas";case"Parameter":return"parameters";case"Response":return"responses";case"Example":return"examples";case"RequestBody":return"requestBodies";case"Header":return"headers";case"SecuritySchema":return"securitySchemes";case"Link":return"links";case"Callback":return"callbacks";default:return null}case"oas2":switch(t){case"Schema":return"definitions";case"Parameter":return"parameters";case"Response":return"responses";default:return null}case"async2":switch(t){case"Schema":return"schemas";case"Parameter":return"parameters";default:return null}case"async3":switch(t){case"Schema":return"schemas";case"Parameter":return"parameters";default:return null}case"arazzo1":switch(t){case"Root.workflows_items.parameters_items":case"Root.workflows_items.steps_items.parameters_items":return"parameters";default:return null}case"overlay1":return null}}function R4e(t,e,r,n,i){let o,s;const a={ref:{leave(f,h,g){if(!g.location||g.node===void 0){Vh(g,h.report,h.location);return}if(g.location.source===r.source&&g.location.source===h.location.source&&h.type.name!=="scalar"&&!e||i&&Fr(f.$ref))return;const p=Cq(h.type.name,t);p?e?(c(p,g,h),xE(f,g,h)):(f.$ref=c(p,g,h),l(f,g,h)):xE(f,g,h)}},Example:{leave(f,h){if(a8(f)&&f.value===void 0){const g=h.resolve({$ref:f.externalValue});if(!g.location||g.node===void 0){Vh(g,h.report,h.location);return}if(i&&Fr(f.externalValue))return;f.value=h.resolve({$ref:f.externalValue}).node,delete f.externalValue}}},Root:{enter(f,h){s=h.location,t==="oas3"?o=f.components=f.components||{}:t==="oas2"?o=f:t==="async2"?o=f.components=f.components||{}:t==="async3"?o=f.components=f.components||{}:t==="arazzo1"&&(o=f.components=f.components||{})}}};t==="oas3"&&(a.DiscriminatorMapping={leave(f,h){for(const g of Object.keys(f)){const p=f[g],y=h.resolve({$ref:p});if(!y.location||y.node===void 0){Vh(y,h.report,h.location.child(g));return}const v=Cq("Schema",t);f[g]=c(v,y,h)}}});function l(f,h,g){const p=Qh(g.location.source.absoluteRef,f.$ref);n.set(p,{document:r,isRemote:!1,node:h.node,nodePointer:f.$ref,resolved:!0})}function c(f,h,g){o[f]=o[f]||{};const p=d(h,f,g);return o[f][p]=h.node,t==="oas3"||t==="async2"||t==="async3"?`#/components/${f}/${p}`:`#/${f}/${p}`}function u(f,h,g){var p;return Tr(f)&&((p=g.resolve(f,s.absolutePointer).location)==null?void 0:p.absolutePointer)===h.location.absolutePointer?!0:SE(f,h.node)}function d(f,h,g){const[p,y]=[f.location.source.absoluteRef,f.location.pointer],v=o[h];let b="";const O=y.slice(2).split("/").filter(Di);for(;O.length>0;)if(b=O.pop()+(b?`-${b}`:""),!v||!v[b]||u(v[b],f,g))return b;if(b=ULe(p)+(b?`_${b}`:""),!v[b]||u(v[b],f,g))return b;const S=b;let x=2;for(;v[b]&&!u(v[b],f,g);)b=`${S}-${x}`,x++;return v[b]||g.report({message:`Two schemas are referenced with the same name but different content. Renamed ${S} to ${b}.`,location:g.location,forceSeverity:"warn"}),b}return a}const uC=new Map;async function j4e({rawConfigDocument:t,configPath:e,externalRefResolver:r,customExtends:n}){var f;const i=t===void 0?C4e:t.parsed;if(n!==void 0&&ht(i)&&(i.extends=n),ht(i)&&((f=i==null?void 0:i.extends)!=null&&f.some(JLe)))throw new Error("Configuration format not detected in extends: values must be strings.");const o=t??{source:new Pd(e??"",JSON.stringify(i)),parsed:i},s=await Rp({rootDocument:o,rootType:og.ConfigRoot,externalRefResolver:r??new bS($J(i==null?void 0:i.resolve))});let a=[],l,c="";Zn?l=[...((i==null?void 0:i.plugins)||[]).filter(g=>!yi(g)),wq]:(c=It.dirname(e??""),a=A4e(o,s,c),l=[...await M4e(a.map(g=>Pq(g)?g.absolutePath:g),c),wq]);const u=I4e(o,fWe(s),l);u.apis&&(u.apis=Object.fromEntries(Object.entries(u.apis).map(([h,g])=>{const p=kJ([u,g]);return[h,{...g,...p}]})));const d=a.length?a.map(h=>Pq(h)&&h.isModule?h.rawPath:h.absolutePath&&It.relative(c,h.absolutePath)).filter(k0):void 0;return{resolvedConfig:{...u,plugins:d},resolvedRefMap:s,plugins:l}}function D4e(t){for(const e of k4e)(void 0)(It.resolve(t,e))}function Pq(t){return"isModule"in t}const wK=(t,e,r)=>{if(!yi(t))return t;const n=It.resolve(It.dirname(e),t);return(void 0)(n)?{absolutePath:n,rawPath:t,isModule:!1}:{absolutePath:U7.createRequire((typeof document>"u"?require("url").pathToFileURL(__filename).href:vs&&vs.tagName.toUpperCase()==="SCRIPT"&&vs.src||new URL("replay-index-D1W9r9Rf.js",document.baseURI).href)??__dirname).resolve(t,{paths:[r,(typeof document>"u"?require("url").pathToFileURL(__filename).href:vs&&vs.tagName.toUpperCase()==="SCRIPT"&&vs.src||new URL("replay-index-D1W9r9Rf.js",document.baseURI).href)?It.dirname((void 0)(typeof document>"u"?require("url").pathToFileURL(__filename).href:vs&&vs.tagName.toUpperCase()==="SCRIPT"&&vs.src||new URL("replay-index-D1W9r9Rf.js",document.baseURI).href)):__dirname]}),isModule:!0,rawPath:t}};async function M4e(t,e){if(!t)return[];const r=async a=>{var l;if(!yi(a))return a;try{const c=It.isAbsolute(a)?a:wK(a,It.join(e,w4e),e).absolutePath;if(!uC.has(c)){let u;if(typeof __webpack_require__=="function")u=__non_webpack_require__(c);else{const p=await import((void 0)(c).pathname);u=p.default||p}const d={contentDir:e},f=Array.isArray(u)?u:[u];for(const p of f)p!=null&&p.id&&eB(p)&&Ut.info(`Deprecated plugin format detected: ${p.id}
|
|
2479
2479
|
`);const h=eB(u)?u:hWe(u)?await u(d):await((l=u==null?void 0:u.default)==null?void 0:l.call(u,d)),g=Array.isArray(h)?h:[h];h&&uC.set(c,g.map(p=>({...p,path:a,absolutePath:c})))}return uC.get(c)}catch(c){throw new Error(`Failed to load plugin "${a}": ${c.message}
|
|
2480
2480
|
|
|
2481
2481
|
${c.stack}`)}},n=new Map,i=D4e(e);i&&t.push(i);const o=new Set;return(await Promise.all(t.map(async a=>{if(yi(a)){if(Fr(a))throw new Error(St.red("We don't support remote plugins yet."));if(o.has(a))return;o.add(a)}const l=await r(a);if(!l)return;const c=Array.isArray(l)?l:[l];return(await Promise.all(c.map(async u=>{if(!u)return;const d=u.id;if(typeof d!="string")throw new Error(St.red(`Plugin must define \`id\` property in ${St.blue(a.toString())}.`));const f=u.absolutePath??a.toString(),h=n.get(d);if(h){if(f!==h)throw new Error(St.red(`Plugin "id" must be unique. Plugin ${St.blue(f)} uses id "${St.blue(d)}" already seen in ${St.blue(f)}`));return}n.set(d,f);const g={id:d,...u.configs?{configs:u.configs}:{},...u.typeExtension?{typeExtension:u.typeExtension}:{}};if(u.rules){if(!u.rules.oas3&&!u.rules.oas2&&!u.rules.async2&&!u.rules.async3&&!u.rules.arazzo1&&!u.rules.overlay1)throw new Error(`Plugin rules must have \`oas3\`, \`oas2\`, \`async2\`, \`async3\`, \`arazzo\`, or \`overlay1\` rules "${a}.`);g.rules={},u.rules.oas3&&(g.rules.oas3=Br(u.rules.oas3,d)),u.rules.oas2&&(g.rules.oas2=Br(u.rules.oas2,d)),u.rules.async2&&(g.rules.async2=Br(u.rules.async2,d)),u.rules.async3&&(g.rules.async3=Br(u.rules.async3,d)),u.rules.arazzo1&&(g.rules.arazzo1=Br(u.rules.arazzo1,d)),u.rules.overlay1&&(g.rules.overlay1=Br(u.rules.overlay1,d))}if(u.preprocessors){if(!u.preprocessors.oas3&&!u.preprocessors.oas2&&!u.preprocessors.async2&&!u.preprocessors.async3&&!u.preprocessors.arazzo1&&!u.preprocessors.overlay1)throw new Error(`Plugin \`preprocessors\` must have \`oas3\`, \`oas2\`, \`async2\`, \`async3\`, \`arazzo1\`, or \`overlay1\` preprocessors "${a}.`);g.preprocessors={},u.preprocessors.oas3&&(g.preprocessors.oas3=Br(u.preprocessors.oas3,d)),u.preprocessors.oas2&&(g.preprocessors.oas2=Br(u.preprocessors.oas2,d)),u.preprocessors.async2&&(g.preprocessors.async2=Br(u.preprocessors.async2,d)),u.preprocessors.async3&&(g.preprocessors.async3=Br(u.preprocessors.async3,d)),u.preprocessors.arazzo1&&(g.preprocessors.arazzo1=Br(u.preprocessors.arazzo1,d)),u.preprocessors.overlay1&&(g.preprocessors.overlay1=Br(u.preprocessors.overlay1,d))}if(u.decorators){if(!u.decorators.oas3&&!u.decorators.oas2&&!u.decorators.async2&&!u.decorators.async3&&!u.decorators.arazzo1&&!u.decorators.overlay1)throw new Error(`Plugin \`decorators\` must have \`oas3\`, \`oas2\`, \`async2\`, \`async3\`, \`arazzo1\`, or \`overlay1\` decorators "${a}.`);g.decorators={},u.decorators.oas3&&(g.decorators.oas3=Br(u.decorators.oas3,d)),u.decorators.oas2&&(g.decorators.oas2=Br(u.decorators.oas2,d)),u.decorators.async2&&(g.decorators.async2=Br(u.decorators.async2,d)),u.decorators.async3&&(g.decorators.async3=Br(u.decorators.async3,d)),u.decorators.arazzo1&&(g.decorators.arazzo1=Br(u.decorators.arazzo1,d)),u.decorators.overlay1&&(g.decorators.overlay1=Br(u.decorators.overlay1,d))}return u.assertions&&(g.assertions=u.assertions),{...u,...g}}))).filter(k0)}))).filter(k0).flat()}function N4e(t,e){var s;const{pluginId:r,configName:n}=dWe(t),i=e.find(a=>a.id===r);if(!i)throw new Error(`Invalid config ${St.red(t)}: plugin ${r} is not included.`);const o=(s=i.configs)==null?void 0:s[n];if(!o)throw new Error(r?`Invalid config ${St.red(t)}: plugin ${r} doesn't export config with name ${n}.`:`Invalid config ${St.red(t)}: there is no such built-in config.`);return o}function L4e(t,e){if(!t.rules)return{};const r={},n=[];for(const[i,o]of Object.entries(t.rules))if(i.startsWith("rule/")&&typeof o=="object"&&o!==null){const s=o;if(e){kq(e,s);for(const a of s.where||[])kq(e,a)}n.push({...s,assertionId:i})}else r[i]=o;return n.length>0&&(r.assertions=n),r}function kq(t,e){for(const r of p8(e.assertions)){const[n,i]=r.split("/");if(!n||!i)continue;const o=t.find(s=>s.id===n);if(!o)throw Error(St.red(`Plugin ${St.blue(n)} isn't found.`));if(!o.assertions||!o.assertions[i])throw Error(`Plugin ${St.red(n)} doesn't export assertions function with name ${St.red(i)}.`);z0[r]=z3e(o.assertions[i])}}function Q4e(t){return t?h8(t)?It.join(It.dirname(t),Eb):It.join(t,Eb):Zn?void 0:It.join(process.cwd(),Eb)}class d_{constructor(e,r={}){var i;this.ignore={},this._usedRules=new Set,this._usedVersions=new Set,this.resolvedConfig=e,this.configPath=r.configPath,this.document=r.document,this.resolvedRefMap=r.resolvedRefMap,this.resolve=$J(this.resolvedConfig.resolve),this._alias=r.alias,this.plugins=r.plugins||[],this.doNotResolveExamples=!!((i=e.resolve)!=null&&i.doNotResolveExamples);const n=o=>L4e({rules:o},this.plugins);this.rules={oas2:n({...e.rules,...e.oas2Rules}),oas3_0:n({...e.rules,...e.oas3_0Rules}),oas3_1:n({...e.rules,...e.oas3_1Rules}),async2:n({...e.rules,...e.async2Rules}),async3:n({...e.rules,...e.async3Rules}),arazzo1:n({...e.rules,...e.arazzo1Rules}),overlay1:n({...e.rules,...e.overlay1Rules})},this.preprocessors={oas2:{...e.preprocessors,...e.oas2Preprocessors},oas3_0:{...e.preprocessors,...e.oas3_0Preprocessors},oas3_1:{...e.preprocessors,...e.oas3_1Preprocessors},async2:{...e.preprocessors,...e.async2Preprocessors},async3:{...e.preprocessors,...e.async3Preprocessors},arazzo1:{...e.arazzo1Preprocessors},overlay1:{...e.preprocessors,...e.overlay1Preprocessors}},this.decorators={oas2:{...e.decorators,...e.oas2Decorators},oas3_0:{...e.decorators,...e.oas3_0Decorators},oas3_1:{...e.decorators,...e.oas3_1Decorators},async2:{...e.decorators,...e.async2Decorators},async3:{...e.decorators,...e.async3Decorators},arazzo1:{...e.arazzo1Decorators},overlay1:{...e.decorators,...e.overlay1Decorators}},this.resolveIgnore(Q4e(r.configPath))}forAlias(e){var a,l;if(e===void 0||!ht((l=(a=this.resolvedConfig)==null?void 0:a.apis)==null?void 0:l[e]))return this;const{apis:r,...n}=this.resolvedConfig,{root:i,output:o,...s}=r[e];return new d_({...n,...s},{configPath:this.configPath,document:this.document,resolvedRefMap:this.resolvedRefMap,alias:e,plugins:this.plugins})}resolveIgnore(e){!e||h8(e)}saveIgnore(){const e=this.configPath?It.dirname(this.configPath):process.cwd(),r=It.join(e,Eb),n={};for(const i of Object.keys(this.ignore)){const o=Fr(i)?i:HLe(It.relative(e,i)),s=n[o]=this.ignore[i];for(const a of Object.keys(s))s[a]=Array.from(s[a])}(void 0)(r,P4e+qLe(n))}addIgnore(e){const r=this.ignore,n=e.location[0];if(n.pointer===void 0)return;const i=r[n.source.absoluteRef]=r[n.source.absoluteRef]||{};(i[e.ruleId]=i[e.ruleId]||new Set).add(n.pointer)}addProblemToIgnore(e){const r=e.location[0];if(r.pointer===void 0)return e;const i=(this.ignore[r.source.absoluteRef]||{})[e.ruleId],o=i&&i.has(r.pointer);return o?{...e,ignored:o}:e}extendTypes(e,r){let n=e;for(const i of this.plugins)if(i.typeExtension!==void 0)switch(r){case"oas3_0":case"oas3_1":if(!i.typeExtension.oas3)continue;n=i.typeExtension.oas3(n,r);break;case"oas2":if(!i.typeExtension.oas2)continue;n=i.typeExtension.oas2(n,r);break;case"async2":if(!i.typeExtension.async2)continue;n=i.typeExtension.async2(n,r);break;case"async3":if(!i.typeExtension.async3)continue;n=i.typeExtension.async3(n,r);break;case"arazzo1":if(!i.typeExtension.arazzo1)continue;n=i.typeExtension.arazzo1(n,r);break;case"overlay1":if(!i.typeExtension.overlay1)continue;n=i.typeExtension.overlay1(n,r);break;default:throw new Error("Not implemented")}return n}getRuleSettings(e,r){this._usedRules.add(e),this._usedVersions.add(r);const n=this.rules[r][e]||"off";return typeof n=="string"?{severity:n}:{severity:"error",...n}}getPreprocessorSettings(e,r){this._usedRules.add(e),this._usedVersions.add(r);const n=this.preprocessors[r][e]||"off";return typeof n=="string"?{severity:n==="on"?"error":n}:{severity:"error",...n}}getDecoratorSettings(e,r){this._usedRules.add(e),this._usedVersions.add(r);const n=this.decorators[r][e]||"off";return typeof n=="string"?{severity:n==="on"?"error":n}:{severity:"error",...n}}getUnusedRules(){const e=[],r=[],n=[];for(const i of Array.from(this._usedVersions))e.push(...Object.keys(this.rules[i]).filter(o=>!this._usedRules.has(o))),r.push(...Object.keys(this.decorators[i]).filter(o=>!this._usedRules.has(o))),n.push(...Object.keys(this.preprocessors[i]).filter(o=>!this._usedRules.has(o)));return{rules:e,preprocessors:n,decorators:r}}getRulesForSpecVersion(e){switch(e){case"oas3":const r=[];return this.plugins.forEach(l=>{var c;return((c=l.preprocessors)==null?void 0:c.oas3)&&r.push(l.preprocessors.oas3)}),this.plugins.forEach(l=>{var c;return((c=l.rules)==null?void 0:c.oas3)&&r.push(l.rules.oas3)}),this.plugins.forEach(l=>{var c;return((c=l.decorators)==null?void 0:c.oas3)&&r.push(l.decorators.oas3)}),r;case"oas2":const n=[];return this.plugins.forEach(l=>{var c;return((c=l.preprocessors)==null?void 0:c.oas2)&&n.push(l.preprocessors.oas2)}),this.plugins.forEach(l=>{var c;return((c=l.rules)==null?void 0:c.oas2)&&n.push(l.rules.oas2)}),this.plugins.forEach(l=>{var c;return((c=l.decorators)==null?void 0:c.oas2)&&n.push(l.decorators.oas2)}),n;case"async2":const i=[];return this.plugins.forEach(l=>{var c;return((c=l.preprocessors)==null?void 0:c.async2)&&i.push(l.preprocessors.async2)}),this.plugins.forEach(l=>{var c;return((c=l.rules)==null?void 0:c.async2)&&i.push(l.rules.async2)}),this.plugins.forEach(l=>{var c;return((c=l.decorators)==null?void 0:c.async2)&&i.push(l.decorators.async2)}),i;case"async3":const o=[];return this.plugins.forEach(l=>{var c;return((c=l.preprocessors)==null?void 0:c.async3)&&o.push(l.preprocessors.async3)}),this.plugins.forEach(l=>{var c;return((c=l.rules)==null?void 0:c.async3)&&o.push(l.rules.async3)}),this.plugins.forEach(l=>{var c;return((c=l.decorators)==null?void 0:c.async3)&&o.push(l.decorators.async3)}),o;case"arazzo1":const s=[];return this.plugins.forEach(l=>{var c;return((c=l.preprocessors)==null?void 0:c.arazzo1)&&s.push(l.preprocessors.arazzo1)}),this.plugins.forEach(l=>{var c;return((c=l.rules)==null?void 0:c.arazzo1)&&s.push(l.rules.arazzo1)}),this.plugins.forEach(l=>{var c;return((c=l.decorators)==null?void 0:c.arazzo1)&&s.push(l.decorators.arazzo1)}),s;case"overlay1":const a=[];return this.plugins.forEach(l=>{var c;return((c=l.preprocessors)==null?void 0:c.overlay1)&&a.push(l.preprocessors.overlay1)}),this.plugins.forEach(l=>{var c;return((c=l.rules)==null?void 0:c.overlay1)&&a.push(l.rules.overlay1)}),this.plugins.forEach(l=>{var c;return((c=l.decorators)==null?void 0:c.overlay1)&&a.push(l.decorators.overlay1)}),a}}skipRules(e){for(const r of e||[])for(const n of Pb)if(this.rules[n][r])this.rules[n][r]="off";else if(Array.isArray(this.rules[n].assertions))for(const i of this.rules[n].assertions)i.assertionId===r&&(i.severity="off")}skipPreprocessors(e){for(const r of e||[])for(const n of Pb)this.preprocessors[n][r]&&(this.preprocessors[n][r]="off")}skipDecorators(e){for(const r of e||[])for(const n of Pb)this.decorators[n][r]&&(this.decorators[n][r]="off")}}async function CK(t,{configPath:e,externalRefResolver:r}={}){const i=gWe(typeof t=="string"?t:"",e??"");typeof t!="string"&&t&&(i.parsed=t);const{resolvedConfig:o,resolvedRefMap:s,plugins:a}=await j4e({rawConfigDocument:V4e(i),configPath:e,externalRefResolver:r});return new d_(o,{configPath:e,document:i,resolvedRefMap:s,plugins:a})}function V4e(t){if(!t.parsed)return t;const{plugins:e,resolve:r,...n}=t.parsed,i={...structuredClone(n),plugins:e==null?void 0:e.slice(),...r&&{resolve:{...r}}};return{...t,parsed:i}}var dC={},Hi={},fC={},$q;function ES(){return $q||($q=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0});var e;(function(l){l[l.SCALAR=0]="SCALAR",l[l.MAPPING=1]="MAPPING",l[l.MAP=2]="MAP",l[l.SEQ=3]="SEQ",l[l.ANCHOR_REF=4]="ANCHOR_REF",l[l.INCLUDE_REF=5]="INCLUDE_REF"})(e=t.Kind||(t.Kind={}));function r(l,c){var u=c?c.endPosition:l.endPosition+1,d={key:l,value:c,startPosition:l.startPosition,endPosition:u,kind:e.MAPPING,parent:null,errors:[]};return d}t.newMapping=r;function n(l,c,u,d){return{errors:[],referencesAnchor:l,value:d,startPosition:c,endPosition:u,kind:e.ANCHOR_REF,parent:null}}t.newAnchorRef=n;function i(l){l===void 0&&(l="");var c={errors:[],startPosition:-1,endPosition:-1,value:""+l,kind:e.SCALAR,parent:null,doubleQuoted:!1,rawValue:""+l};return typeof l!="string"&&(c.valueObject=l),c}t.newScalar=i;function o(){return{errors:[],startPosition:-1,endPosition:-1,items:[],kind:e.SEQ,parent:null}}t.newItems=o;function s(){return o()}t.newSeq=s;function a(l){return{errors:[],startPosition:-1,endPosition:-1,mappings:l||[],kind:e.MAP,parent:null}}t.newMap=a})(fC)),fC}var ks={},Eq;function Jd(){if(Eq)return ks;Eq=1,Object.defineProperty(ks,"__esModule",{value:!0});function t(s){return typeof s>"u"||s===null}ks.isNothing=t;function e(s){return typeof s=="object"&&s!==null}ks.isObject=e;function r(s){return Array.isArray(s)?s:t(s)?[]:[s]}ks.toArray=r;function n(s,a){var l,c,u,d;if(a)for(d=Object.keys(a),l=0,c=d.length;l<c;l+=1)u=d[l],s[u]=a[u];return s}ks.extend=n;function i(s,a){var l="",c;for(c=0;c<a;c+=1)l+=s;return l}ks.repeat=i;function o(s){return s===0&&Number.NEGATIVE_INFINITY===1/s}return ks.isNegativeZero=o,ks}var hC,Aq;function ug(){if(Aq)return hC;Aq=1;var t=(function(){function e(r,n,i){n===void 0&&(n=null),i===void 0&&(i=!1),this.name="YAMLException",this.reason=r,this.mark=n,this.message=this.toString(!1),this.isWarning=i}return e.isInstance=function(r){if(r!=null&&r.getClassIdentifier&&typeof r.getClassIdentifier=="function")for(var n=0,i=r.getClassIdentifier();n<i.length;n++){var o=i[n];if(o==e.CLASS_IDENTIFIER)return!0}return!1},e.prototype.getClassIdentifier=function(){var r=[];return r.concat(e.CLASS_IDENTIFIER)},e.prototype.toString=function(r){r===void 0&&(r=!1);var n;return n="JS-YAML: "+(this.reason||"(unknown reason)"),!r&&this.mark&&(n+=" "+this.mark.toString()),n},e.CLASS_IDENTIFIER="yaml-ast-parser.YAMLException",e})();return hC=t,hC}var pC,Iq;function z4e(){if(Iq)return pC;Iq=1;var t=Jd(),e=(function(){function r(n,i,o,s,a){this.name=n,this.buffer=i,this.position=o,this.line=s,this.column=a}return r.prototype.getSnippet=function(n,i){n===void 0&&(n=0),i===void 0&&(i=75);var o,s,a,l,c;if(!this.buffer)return null;for(n=n||4,i=i||75,o="",s=this.position;s>0&&`\0\r
|
|
@@ -2562,8 +2562,8 @@ ${v.message}
|
|
|
2562
2562
|
`}const NC=t=>{const e={};for(const r of t){const n=r.location[0].source.absoluteRef;e[n]=e[n]||{fileProblems:[],ruleIdPad:0,locationPad:0};const i={...r,location:r.location.map(Uu)};e[n].fileProblems.push(i),e[n].ruleIdPad=Math.max(r.ruleId.length,e[n].ruleIdPad),e[n].locationPad=Math.max(Math.max(...i.location.map(o=>`${o.start.line}:${o.start.col}`.length)),e[n].locationPad)}return e};function LC(t){return t.replace(/[<>&"'\x00-\x1F\x7F\u0080-\uFFFF]/gu,e=>{switch(e){case"<":return"<";case">":return">";case"&":return"&";case'"':return""";case"'":return"'";default:return`&#${e.charCodeAt(0)};`}})}function $Xe(t,e){var s,a;for(const l of t)for(const c of l.location.map(Uu)){let u;switch(l.severity){case"error":u="error";break;case"warn":u="warning";break}const d=EK(l),f=d!==""?l.message+`
|
|
2563
2563
|
|
|
2564
2564
|
`+d:l.message,h={title:l.ruleId,file:Fr(c.source.absoluteRef)?c.source.absoluteRef:It.relative(e,c.source.absoluteRef),line:c.start.line,col:c.start.col,endLine:(s=c.end)==null?void 0:s.line,endColumn:(a=c.end)==null?void 0:a.col};Ut.output(`::${u} ${r(h)}::${i(f)}
|
|
2565
|
-
`)}function r(l){return Object.entries(l).filter(([,c])=>c!=null).map(([c,u])=>`${c}=${o(u)}`).join(",")}function n(l){return l==null?"":typeof l=="string"||l instanceof String?l:JSON.stringify(l)}function i(l){return n(l).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function o(l){return n(l).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}}delete HT.properties.theme;async function EXe(t){var i;const{ref:e,externalRefResolver:r=new bS(t.config.resolve)}=t,n=await r.resolveDocument(null,e,!0);return(i=t.collectSpecData)==null||i.call(t,n.parsed),AXe({document:n,...t,externalRefResolver:r})}async function AXe(t){R3e();const{document:e,customTypes:r,externalRefResolver:n,config:i}=t,o=JT(e.parsed),s=pJ(o),a=i.getRulesForSpecVersion(s),l=UT(i.extendTypes(r??KT(o),o),i),c={problems:[],specVersion:o,config:i,visitorsData:{}},u=q0(a,i,"preprocessors",o),d=q0(a,i,"rules",o);let f=await Rp({rootDocument:e,rootType:l.Root,externalRefResolver:n});u.length>0&&($d({document:e,rootType:l.Root,normalizedVisitors:kd(u,l),resolvedRefMap:f,ctx:c}),f=await Rp({rootDocument:e,rootType:l.Root,externalRefResolver:n}));const h=kd(d,l);return $d({document:e,rootType:l.Root,normalizedVisitors:h,resolvedRefMap:f,ctx:c}),c.problems.map(g=>i.addProblemToIgnore(g))}const IXe={info:t=>{},error:t=>{},warn:t=>{},printNewLine:()=>{},printSeparator:()=>{},indent:(t,e)=>t,output:t=>t};class TXe extends bS{constructor(){super()}resolveExternalRef(e,r){return Ob(r)?r:e&&Ob(e)?new URL(r,e).href:e?hc.resolve(hc.dirname(e),r):r}async loadExternalRef(e){if(Ob(e)){const{body:r,mimeType:n}=await d8(e,{...this.config.http,customFetch:zs});return new Pd(e,r,n)}else{if(!await
|
|
2566
|
-
`))}}}async function _Xe({collectionId:t,workflowId:e,projectDir:r,inputsObject:n,serversObject:i,sourceDescriptions:o,severitySettings:s}){const a=`${r}/${t}`,l=new TXe,c=n.map(f=>JSON.stringify({[f.name]:f.value})),u=RXe(i,o),{run:d}=await Promise.resolve().then(()=>require("./replay-index-
|
|
2565
|
+
`)}function r(l){return Object.entries(l).filter(([,c])=>c!=null).map(([c,u])=>`${c}=${o(u)}`).join(",")}function n(l){return l==null?"":typeof l=="string"||l instanceof String?l:JSON.stringify(l)}function i(l){return n(l).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function o(l){return n(l).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}}delete HT.properties.theme;async function EXe(t){var i;const{ref:e,externalRefResolver:r=new bS(t.config.resolve)}=t,n=await r.resolveDocument(null,e,!0);return(i=t.collectSpecData)==null||i.call(t,n.parsed),AXe({document:n,...t,externalRefResolver:r})}async function AXe(t){R3e();const{document:e,customTypes:r,externalRefResolver:n,config:i}=t,o=JT(e.parsed),s=pJ(o),a=i.getRulesForSpecVersion(s),l=UT(i.extendTypes(r??KT(o),o),i),c={problems:[],specVersion:o,config:i,visitorsData:{}},u=q0(a,i,"preprocessors",o),d=q0(a,i,"rules",o);let f=await Rp({rootDocument:e,rootType:l.Root,externalRefResolver:n});u.length>0&&($d({document:e,rootType:l.Root,normalizedVisitors:kd(u,l),resolvedRefMap:f,ctx:c}),f=await Rp({rootDocument:e,rootType:l.Root,externalRefResolver:n}));const h=kd(d,l);return $d({document:e,rootType:l.Root,normalizedVisitors:h,resolvedRefMap:f,ctx:c}),c.problems.map(g=>i.addProblemToIgnore(g))}const IXe={info:t=>{},error:t=>{},warn:t=>{},printNewLine:()=>{},printSeparator:()=>{},indent:(t,e)=>t,output:t=>t};class TXe extends bS{constructor(){super()}resolveExternalRef(e,r){return Ob(r)?r:e&&Ob(e)?new URL(r,e).href:e?hc.resolve(hc.dirname(e),r):r}async loadExternalRef(e){if(Ob(e)){const{body:r,mimeType:n}=await d8(e,{...this.config.http,customFetch:zs});return new Pd(e,r,n)}else{if(!await H9(e))throw new Error(`File not found at ${e}.`);try{throw await Y9(e),new Error(`Expected a file but received a folder at ${e}.`)}catch(i){if(i instanceof Error&&i.message.includes("Expected a file but received a folder"))throw i}const n=await hI(e);return new Pd(e,n.replace(/\r\n/g,`
|
|
2566
|
+
`))}}}async function _Xe({collectionId:t,workflowId:e,projectDir:r,inputsObject:n,serversObject:i,sourceDescriptions:o,severitySettings:s}){const a=`${r}/${t}`,l=new TXe,c=n.map(f=>JSON.stringify({[f.name]:f.value})),u=RXe(i,o),{run:d}=await Promise.resolve().then(()=>require("./replay-index-CnafcWXu.js"));return await d({files:[a],workflow:e?[e]:[],fetch:zs,logger:IXe,maxSteps:500,maxFetchTimeout:4e4,requestFileLoader:{getFileBody:async f=>{if(!await H9(f))throw new Error(`File ${f} doesn't exist or isn't readable.`);try{const g=await hI(f),p=new TextEncoder().encode(g);return new File([p],await G9(f))}catch(g){throw new Error(`Failed to read file ${f}: ${g}`)}}},envVariables:{},config:await CK({}),externalRefResolver:l,input:c,server:u,severity:JSON.stringify(s),skipLint:!0})}function RXe(t,e){return e.map(r=>{const n=t.find(o=>o.apiId===r.apiId);if(!n)return null;let i=n.value;if(n.variables)for(const o of n.variables){const s=new RegExp(`\\{${o.name}\\}`,"g");i=i.replace(s,o.value)}return`${r.name}=${i}`}).filter(r=>r!==null)}function p_(t){return t==null?"N/A":t<1e3?`${t} ms`:t<1e4?`${(t/1e3).toFixed(1)} s`:`${Math.round(t/1e3)} s`}function AK({checks:t}){const e=t.filter(h=>h.severity!=="off"),r=e.filter(h=>h.passed).length,n=e.filter(h=>h.severity==="warn"&&!h.passed).length,i=e.length,o=i-r-n,s=r===i,a=r===0,[l,c]=ce.default.useState(o>0||n>0),u=()=>s?"All checks passed":a?"All checks failed":`Some ${i>1?"checks were":"check was"} not successful`,d=()=>s?m.jsx(q.CheckmarkFilledIcon,{color:"var(--color-success-base)"}):o>0?m.jsx(q.ErrorFilledIcon,{color:"var(--color-error-base)"}):m.jsx(q.WarningFilledIcon,{color:"var(--color-warning-base)"}),f=h=>{h.stopPropagation(),c(!l)};return!e||e.length===0?null:m.jsxs(jXe,{children:[m.jsxs(DXe,{onClick:f,children:[m.jsxs(MXe,{children:[m.jsx(NXe,{children:m.jsx(LXe,{children:d()})}),m.jsxs(QXe,{children:[m.jsx(VXe,{children:u()}),m.jsxs(zXe,{children:[r," successful",n>0&&m.jsxs(m.Fragment,{children:[", ",n," ",n===1?"warning":"warnings"]}),o>0&&m.jsxs(m.Fragment,{children:[", ",o," failed"]})]})]})]}),m.jsx(BXe,{isExpanded:l,children:l?m.jsx(q.ChevronDownIcon,{}):m.jsx(q.ChevronRightIcon,{})})]}),m.jsx(qXe,{isExpanded:l,children:e.map((h,g)=>m.jsxs(FXe,{children:[m.jsx(WXe,{children:h.passed?m.jsx(q.CheckmarkIcon,{color:"var(--color-success-base)",size:"14px"}):!h.passed&&["warn"].includes(h.severity)?m.jsx(q.WarningFilledIcon,{color:"var(--color-warning-base)",size:"14px"}):m.jsx(q.CloseOutlineIcon,{color:"var(--color-error-base)",size:"14px"})}),m.jsxs(UXe,{children:[m.jsx(XXe,{children:h.name}),h.message&&m.jsx(ZXe,{children:h.message})]})]},g))})]})}const jXe=R.div`
|
|
2567
2567
|
margin-bottom: 0;
|
|
2568
2568
|
margin-top: var(--spacing-xxs);
|
|
2569
2569
|
`,DXe=R.div`
|
|
@@ -2658,7 +2658,7 @@ ${v.message}
|
|
|
2658
2658
|
font-size: var(--font-size-base);
|
|
2659
2659
|
font-weight: var(--font-weight-regular);
|
|
2660
2660
|
line-height: var(--line-height-base);
|
|
2661
|
-
`;function U0({title:t,contentType:e=Wr.Text,data:r,apiOperation:n,onCopyClickEventSource:i}){const[o,s]=N.useState(e),{sendEvent:a}=bt(),l=Object.keys(Ma).map(f=>({element:m.jsx("div",{children:Ma[f].name}),label:Ma[f].name,value:f})),c=o===Wr.JSON?E7(typeof r=="string"?r:String(r)):typeof r=="string"?r:String(r),u=f=>{s(f)},d=()=>{a("content.copy",{source:i,section:"value"})};return N.useEffect(()=>{if(e){const f=A7(e);s(f)}else s(Wr.Text)},[e]),m.jsxs(YXe,{children:[m.jsxs(GXe,{children:[m.jsxs(HXe,{children:[m.jsx(
|
|
2661
|
+
`;function U0({title:t,contentType:e=Wr.Text,data:r,apiOperation:n,onCopyClickEventSource:i}){const[o,s]=N.useState(e),{sendEvent:a}=bt(),l=Object.keys(Ma).map(f=>({element:m.jsx("div",{children:Ma[f].name}),label:Ma[f].name,value:f})),c=o===Wr.JSON?E7(typeof r=="string"?r:String(r)):typeof r=="string"?r:String(r),u=f=>{s(f)},d=()=>{a("content.copy",{source:i,section:"value"})};return N.useEffect(()=>{if(e){const f=A7(e);s(f)}else s(Wr.Text)},[e]),m.jsxs(YXe,{children:[m.jsxs(GXe,{children:[m.jsxs(HXe,{children:[m.jsx(e9e,{children:t}),m.jsx(KXe,{options:l,value:{value:o,label:Ma[o].name},onChange:f=>u(f)})]}),m.jsx(JXe,{children:m.jsx(q.CopyButton,{toasterPlacement:"left",data:c,onCopyClick:d})})]}),m.jsx(tt,{}),ss[o]?m.jsx(fc,{readOnly:!0,isResponse:!0,dataTestId:"response-body-tab-codemirror",apiOperation:n,value:c,extensions:ss[o].extensions,stateExtensions:ss[o].stateExtensions}):o===J5.Image&&r instanceof ArrayBuffer?m.jsx(M7,{arrayBuffer:r}):o===Wr.HTML?m.jsx("iframe",{srcDoc:c,style:{width:"100%",height:"100%",border:"none"},title:"HTML Content",sandbox:"allow-same-origin"}):m.jsx("div",{children:"No content available"})]})}const GXe=R.div`
|
|
2662
2662
|
display: flex;
|
|
2663
2663
|
justify-content: space-between;
|
|
2664
2664
|
align-items: center;
|
|
@@ -2691,7 +2691,7 @@ ${v.message}
|
|
|
2691
2691
|
border-radius: var(--border-radius-md);
|
|
2692
2692
|
--select-border: none;
|
|
2693
2693
|
--select-input-padding: var(--select-input-padding-vertical) var(--spacing-xs);
|
|
2694
|
-
`,
|
|
2694
|
+
`,e9e=R.div`
|
|
2695
2695
|
font-size: var(--font-size-base);
|
|
2696
2696
|
font-weight: var(--font-weight-medium);
|
|
2697
2697
|
line-height: var(--line-height-base);
|
|
@@ -2724,7 +2724,7 @@ ${v.message}
|
|
|
2724
2724
|
min-width: 50px;
|
|
2725
2725
|
display: flex;
|
|
2726
2726
|
justify-content: flex-start;
|
|
2727
|
-
`,
|
|
2727
|
+
`,t9e=R(q.ArrowUpRightIcon)`
|
|
2728
2728
|
opacity: 0;
|
|
2729
2729
|
color: var(--text-color-secondary);
|
|
2730
2730
|
transition: opacity 0.2s;
|
|
@@ -2894,7 +2894,7 @@ ${v.message}
|
|
|
2894
2894
|
color: var(--text-color);
|
|
2895
2895
|
word-break: break-word;
|
|
2896
2896
|
flex: 1;
|
|
2897
|
-
`;function g_(t){return"type"in t&&t.type==="workflow"}function ZK(t){return"stepId"in t&&!("type"in t)}function GK(t){return t?"Success":"Failed"}function m_(t){var e;return((e=t.checks)==null?void 0:e.every(r=>r.passed||!r.passed&&["off","warn"].includes(r.severity)))??!0}function YK(t){return t.filter(e=>!e.passed&&["warn"].includes(e.severity))}function
|
|
2897
|
+
`;function g_(t){return"type"in t&&t.type==="workflow"}function ZK(t){return"stepId"in t&&!("type"in t)}function GK(t){return t?"Success":"Failed"}function m_(t){var e;return((e=t.checks)==null?void 0:e.every(r=>r.passed||!r.passed&&["off","warn"].includes(r.severity)))??!0}function YK(t){return t.filter(e=>!e.passed&&["warn"].includes(e.severity))}function r9e({collectionId:t,workflowId:e,step:r,isExpanded:n,onToggle:i}){var p,y,v,b,O,S,x,w,P,I,E;const{openStepTab:o}=Pi(),s=(p=r.verboseLog)==null?void 0:p.responseTime,a=(y=r.response)==null?void 0:y.statusCode,l=((v=r.request)==null?void 0:v.method)||((b=r["x-operation"])==null?void 0:b.method)||"N/A",c=r.verboseLog?`${r.verboseLog.host}${r.verboseLog.path}`:((O=r.request)==null?void 0:O.url)||((S=r["x-operation"])==null?void 0:S.url)||"No URL",u=r.stepId,d=m_(r),f=IT(Object.entries(((x=r.response)==null?void 0:x.header)||{}))||Wr.Text,h=YK(r.checks).length>0;function g(M,V){V.stopPropagation(),o({collectionId:t,workflowId:e,stepId:M})}return m.jsxs(RK,{children:[m.jsxs(jK,{onClick:i,children:[m.jsx(DK,{isExpanded:n,children:n?m.jsx(q.ChevronDownIcon,{size:"14px"}):m.jsx(q.ChevronRightIcon,{size:"14px"})}),m.jsx(MK,{children:m.jsx(NK,{passed:d,children:GK(d)})}),m.jsxs(IK,{onClick:M=>g(u,M),children:[m.jsxs(TK,{children:[m.jsx(_K,{children:m.jsx(yo,{value:l.toUpperCase()})}),m.jsx(LK,{children:u})]}),m.jsx(t9e,{size:"12px"})]}),m.jsxs(QK,{children:[h&&m.jsx(q.WarningFilledIcon,{size:"14px",color:"var(--color-warning-base)"}),s&&m.jsx(zK,{children:p_(s)}),a&&m.jsx(VK,{children:m.jsx(q.StatusCode,{tabIndex:-1,status:a.toString(),children:a})})]})]}),m.jsx(BK,{isExpanded:n,children:m.jsxs(qK,{children:[r.checks&&r.checks.length>0&&m.jsx(AK,{checks:r.checks}),m.jsxs(WK,{children:[m.jsx(yo,{value:l.toUpperCase()}),m.jsx(UK,{children:c})]}),((w=r.request)==null?void 0:w.header)&&Object.keys(r.request.header).length>0&&m.jsxs(G0,{children:[m.jsx(X0,{children:"Request headers"}),Object.entries(r.request.header).map(([M,V])=>m.jsxs(Y0,{children:[m.jsxs(H0,{children:['"',M,'":']}),m.jsx(J0,{children:String(V)})]},M))]}),((P=r.request)==null?void 0:P.body)&&m.jsx(Z0,{children:m.jsx(U0,{title:"Request body",onCopyClickEventSource:"request_body",apiOperation:null,contentType:f,data:r.request.body instanceof ArrayBuffer?r.request.body:JSON.stringify(r.request.body)})}),m.jsxs(XK,{children:[m.jsx(FK,{children:"Response status"}),a&&m.jsx(q.StatusCode,{tabIndex:-1,status:a.toString(),children:a})]}),((I=r.response)==null?void 0:I.header)&&Object.keys(r.response.header).length>0&&m.jsxs(G0,{children:[m.jsx(X0,{children:"Response headers"}),Object.entries(r.response.header).map(([M,V])=>m.jsxs(Y0,{children:[m.jsxs(H0,{children:['"',M,'":']}),m.jsx(J0,{children:String(V)})]},M))]}),((E=r.response)==null?void 0:E.body)&&m.jsx(Z0,{children:m.jsx(U0,{title:"Response body",onCopyClickEventSource:"response_body",apiOperation:null,contentType:f,data:r.response.body instanceof ArrayBuffer?r.response.body:JSON.stringify(r.response.body)})})]})})]})}function n9e({parentStepId:t,step:e,isExpanded:r,onToggle:n}){var d,f,h,g,p,y,v,b,O,S,x,w;const i=(d=e.verboseLog)==null?void 0:d.responseTime,o=(f=e.response)==null?void 0:f.statusCode,s=((h=e.request)==null?void 0:h.method)||((g=e["x-operation"])==null?void 0:g.method)||"N/A",a=e.stepId,l=m_(e),c=IT(Object.entries(((p=e.response)==null?void 0:p.header)||{}))||Wr.Text,u=YK(e.checks).length>0;return m.jsxs(RK,{children:[m.jsxs(jK,{onClick:n,children:[m.jsx(DK,{isExpanded:r,children:r?m.jsx(q.ChevronDownIcon,{size:"14px"}):m.jsx(q.ChevronRightIcon,{size:"14px"})}),m.jsx(MK,{children:m.jsx(NK,{passed:l,children:GK(l)})}),m.jsx(i9e,{children:m.jsxs(TK,{children:[m.jsx(_K,{children:m.jsx(yo,{value:s.toUpperCase()})}),m.jsx(LK,{children:t?m.jsxs(o9e,{children:[m.jsx(s9e,{children:t}),m.jsx(a9e,{children:m.jsx(q.ArrowRightIcon,{size:"14px"})}),m.jsx(l9e,{children:a})]}):a})]})}),m.jsxs(QK,{children:[u&&m.jsx(q.WarningFilledIcon,{size:"14px",color:"var(--color-warning-base)"}),i&&m.jsx(zK,{children:p_(i)}),o&&m.jsx(VK,{children:m.jsx(q.StatusCode,{tabIndex:-1,status:o.toString(),children:o})})]})]}),m.jsx(BK,{isExpanded:r,children:m.jsxs(qK,{children:[e.checks&&e.checks.length>0&&m.jsx(AK,{checks:e.checks}),m.jsxs(WK,{children:[m.jsx(yo,{value:s.toUpperCase()}),m.jsxs(UK,{children:[((y=e.request)==null?void 0:y.url)||((v=e["x-operation"])==null?void 0:v.url)||"No URL",((b=e.verboseLog)==null?void 0:b.path)??""]})]}),((O=e.request)==null?void 0:O.header)&&Object.keys(e.request.header).length>0&&m.jsxs(G0,{children:[m.jsx(X0,{children:"Request headers"}),Object.entries(e.request.header).map(([P,I])=>m.jsxs(Y0,{children:[m.jsxs(H0,{children:['"',P,'":']}),m.jsx(J0,{children:String(I)})]},P))]}),((S=e.request)==null?void 0:S.body)&&m.jsx(Z0,{children:m.jsx(U0,{title:"Request body",onCopyClickEventSource:"request_body",apiOperation:null,contentType:c,data:e.request.body instanceof ArrayBuffer?e.request.body:JSON.stringify(e.request.body)})}),m.jsxs(XK,{children:[m.jsx(FK,{children:"Response status"}),o&&m.jsx(q.StatusCode,{tabIndex:-1,status:o.toString(),children:o})]}),((x=e.response)==null?void 0:x.header)&&Object.keys(e.response.header).length>0&&m.jsxs(G0,{children:[m.jsx(X0,{children:"Response headers"}),Object.entries(e.response.header).map(([P,I])=>m.jsxs(Y0,{children:[m.jsxs(H0,{children:['"',P,'":']}),m.jsx(J0,{children:String(I)})]},P))]}),((w=e.response)==null?void 0:w.body)&&m.jsx(Z0,{children:m.jsx(U0,{title:"Response body",onCopyClickEventSource:"response_body",apiOperation:null,contentType:c,data:e.response.body instanceof ArrayBuffer?e.response.body:JSON.stringify(e.response.body)})})]})})]})}const i9e=R.div`
|
|
2898
2898
|
display: flex;
|
|
2899
2899
|
align-items: flex-start;
|
|
2900
2900
|
gap: var(--spacing-xxs);
|
|
@@ -2907,37 +2907,37 @@ ${v.message}
|
|
|
2907
2907
|
overflow: hidden;
|
|
2908
2908
|
text-overflow: ellipsis;
|
|
2909
2909
|
white-space: nowrap;
|
|
2910
|
-
`,
|
|
2910
|
+
`,o9e=R.div`
|
|
2911
2911
|
display: flex;
|
|
2912
2912
|
align-items: center;
|
|
2913
2913
|
gap: var(--spacing-xxs);
|
|
2914
2914
|
min-width: 0;
|
|
2915
2915
|
overflow: hidden;
|
|
2916
|
-
`,
|
|
2916
|
+
`,s9e=R.span`
|
|
2917
2917
|
color: var(--text-color-description);
|
|
2918
2918
|
overflow: hidden;
|
|
2919
2919
|
text-overflow: ellipsis;
|
|
2920
2920
|
white-space: nowrap;
|
|
2921
2921
|
min-width: 0;
|
|
2922
|
-
`,
|
|
2922
|
+
`,a9e=R.span`
|
|
2923
2923
|
display: flex;
|
|
2924
2924
|
align-items: center;
|
|
2925
2925
|
justify-content: center;
|
|
2926
2926
|
flex-shrink: 0;
|
|
2927
|
-
`,
|
|
2927
|
+
`,l9e=R.span`
|
|
2928
2928
|
overflow: hidden;
|
|
2929
2929
|
text-overflow: ellipsis;
|
|
2930
2930
|
white-space: nowrap;
|
|
2931
2931
|
min-width: 0;
|
|
2932
|
-
`;function
|
|
2932
|
+
`;function c9e({parentStepId:t,step:e,collectionId:r,expandedSteps:n,onToggle:i}){return g_(e)?m.jsx(HK,{collectionId:r,parentStepId:t,step:e,expandedSteps:n,onToggle:i},e.workflowId):ZK(e)?m.jsx(n9e,{parentStepId:t,step:e,isExpanded:n.has(e.stepId),onToggle:()=>i(e.stepId)},e.stepId):null}function HK({collectionId:t,parentStepId:e,step:r,onToggle:n,expandedSteps:i}){const{executedSteps:o}=r;return m.jsx(m.Fragment,{children:o.map(s=>c9e({parentStepId:e,step:s,collectionId:t,expandedSteps:i,onToggle:n}))})}function u9e(t,e,r,n,i){return g_(t)?m.jsx(HK,{collectionId:e,parentStepId:t.stepId,step:t,expandedSteps:n,onToggle:i},t.workflowId):ZK(t)?m.jsx(r9e,{collectionId:e,workflowId:r,step:t,isExpanded:n.has(t.stepId),onToggle:()=>i(t.stepId)},t.stepId):null}function d9e({executedWorkflow:t,collectionId:e}){var o;const[r,n]=N.useState(new Set),i=s=>{const a=new Set(r);a.has(s)?a.delete(s):a.add(s),n(a)};return(o=t==null?void 0:t.executedSteps)!=null&&o.length?m.jsx(f9e,{children:m.jsx(h9e,{children:t.executedSteps.map(s=>u9e(s,e,t.workflowId,r,i))})}):null}const f9e=R.div`
|
|
2933
2933
|
background: var(--bg-color);
|
|
2934
2934
|
border: var(--border-width) solid var(--border-color-secondary);
|
|
2935
2935
|
margin: var(--spacing-base);
|
|
2936
2936
|
overflow: hidden;
|
|
2937
2937
|
border-radius: var(--border-radius);
|
|
2938
|
-
`,
|
|
2938
|
+
`,h9e=R.div`
|
|
2939
2939
|
overflow-y: auto;
|
|
2940
|
-
`,$c=1300,JK=860;function
|
|
2940
|
+
`,$c=1300,JK=860;function p9e({executedWorkflow:t}){const{executedSteps:e,totalTimeMs:r}=t||{},n=f=>{const h=[];for(const g of f)g_(g)?h.push(...n(g.executedSteps)):h.push(g);return h},i=n(e?[...e]:[]),o=i.length,a=i.filter(f=>m_(f)).length,l=o-a||0,c=o>0?a/o:0,u=o>0?l/o:0;function d(){return new Date().toLocaleString("en-US",{year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1})}return m.jsx(y9e,{children:m.jsxs(v9e,{children:[m.jsxs(g9e,{children:[m.jsx(x9e,{successPercentage:c,failurePercentage:u,children:m.jsx(S9e,{})}),m.jsxs(w9e,{children:[m.jsxs(Xf,{children:[m.jsx(Zf,{children:"Total steps:"}),m.jsx(QC,{children:o||0})]}),m.jsxs(k9e,{children:[m.jsxs(Xf,{children:[m.jsx(cF,{color:"var(--color-success-base)"}),m.jsx(Zf,{children:"Success:"}),m.jsx(QC,{children:a})]}),m.jsxs(Xf,{children:[m.jsx(cF,{color:"var(--color-error-base)"}),m.jsx(Zf,{children:"Failed:"}),m.jsx(QC,{children:l})]})]})]})]}),m.jsx(b9e,{}),m.jsxs(m9e,{children:[m.jsxs(C9e,{children:[m.jsx(Xf,{children:m.jsx(Zf,{children:"Date"})}),m.jsx(uF,{children:d()})]}),m.jsx(O9e,{}),m.jsxs(P9e,{children:[m.jsx(Xf,{children:m.jsx(Zf,{children:"Duration"})}),m.jsx(uF,{children:p_(r)})]})]})]})})}const g9e=R.div`
|
|
2941
2941
|
display: flex;
|
|
2942
2942
|
align-items: center;
|
|
2943
2943
|
gap: var(--spacing-base);
|
|
@@ -2947,7 +2947,7 @@ ${v.message}
|
|
|
2947
2947
|
@media (max-width: ${$c}px) {
|
|
2948
2948
|
justify-content: flex-start;
|
|
2949
2949
|
}
|
|
2950
|
-
`,
|
|
2950
|
+
`,m9e=R.div`
|
|
2951
2951
|
display: flex;
|
|
2952
2952
|
align-items: center;
|
|
2953
2953
|
gap: var(--spacing-base);
|
|
@@ -2957,14 +2957,14 @@ ${v.message}
|
|
|
2957
2957
|
@media (max-width: ${$c}px) {
|
|
2958
2958
|
justify-content: flex-start;
|
|
2959
2959
|
}
|
|
2960
|
-
`,
|
|
2960
|
+
`,y9e=R.div`
|
|
2961
2961
|
background: var(--bg-color);
|
|
2962
2962
|
border: var(--border-width) solid var(--border-color-secondary);
|
|
2963
2963
|
border-top: none;
|
|
2964
2964
|
padding: var(--spacing-sm) var(--spacing-base);
|
|
2965
2965
|
color: var(--text-color);
|
|
2966
2966
|
border-right: none;
|
|
2967
|
-
`,
|
|
2967
|
+
`,v9e=R.div`
|
|
2968
2968
|
display: flex;
|
|
2969
2969
|
flex-direction: column;
|
|
2970
2970
|
gap: var(--spacing-xs);
|
|
@@ -2974,7 +2974,7 @@ ${v.message}
|
|
|
2974
2974
|
align-items: center;
|
|
2975
2975
|
gap: var(--spacing-base);
|
|
2976
2976
|
}
|
|
2977
|
-
`,
|
|
2977
|
+
`,b9e=R.div`
|
|
2978
2978
|
width: 1px;
|
|
2979
2979
|
height: 48px;
|
|
2980
2980
|
min-width: 1px;
|
|
@@ -2988,7 +2988,7 @@ ${v.message}
|
|
|
2988
2988
|
min-width: 100%;
|
|
2989
2989
|
min-height: 1px;
|
|
2990
2990
|
}
|
|
2991
|
-
`,
|
|
2991
|
+
`,O9e=R.div`
|
|
2992
2992
|
width: 1px;
|
|
2993
2993
|
height: 48px;
|
|
2994
2994
|
background: var(--border-color-secondary);
|
|
@@ -2996,7 +2996,7 @@ ${v.message}
|
|
|
2996
2996
|
@media (max-width: ${$c}px) {
|
|
2997
2997
|
height: 44px;
|
|
2998
2998
|
}
|
|
2999
|
-
`,
|
|
2999
|
+
`,x9e=R.div`
|
|
3000
3000
|
position: relative;
|
|
3001
3001
|
width: 48px;
|
|
3002
3002
|
height: 48px;
|
|
@@ -3012,17 +3012,17 @@ ${v.message}
|
|
|
3012
3012
|
align-items: center;
|
|
3013
3013
|
justify-content: center;
|
|
3014
3014
|
flex-shrink: 0;
|
|
3015
|
-
`,
|
|
3015
|
+
`,S9e=R.div`
|
|
3016
3016
|
width: 25px;
|
|
3017
3017
|
height: 25px;
|
|
3018
3018
|
border-radius: 50%;
|
|
3019
3019
|
background: var(--bg-color);
|
|
3020
|
-
`,
|
|
3020
|
+
`,w9e=R.div`
|
|
3021
3021
|
display: flex;
|
|
3022
3022
|
flex-direction: column;
|
|
3023
3023
|
gap: calc(var(--spacing-xxs) / 2);
|
|
3024
3024
|
min-width: 202px;
|
|
3025
|
-
`,
|
|
3025
|
+
`,C9e=R.div`
|
|
3026
3026
|
display: flex;
|
|
3027
3027
|
flex-direction: column;
|
|
3028
3028
|
gap: calc(var(--spacing-xxs) / 2);
|
|
@@ -3034,7 +3034,7 @@ ${v.message}
|
|
|
3034
3034
|
@media (max-width: ${JK}px) {
|
|
3035
3035
|
min-width: 0;
|
|
3036
3036
|
}
|
|
3037
|
-
`,
|
|
3037
|
+
`,P9e=R.div`
|
|
3038
3038
|
display: flex;
|
|
3039
3039
|
flex-direction: column;
|
|
3040
3040
|
gap: calc(var(--spacing-xxs) / 2);
|
|
@@ -3070,15 +3070,15 @@ ${v.message}
|
|
|
3070
3070
|
font-weight: var(--font-weight-medium);
|
|
3071
3071
|
color: var(--text-color);
|
|
3072
3072
|
line-height: var(--line-height-sm);
|
|
3073
|
-
`,
|
|
3073
|
+
`,k9e=R.div`
|
|
3074
3074
|
display: flex;
|
|
3075
3075
|
align-items: center;
|
|
3076
3076
|
gap: var(--spacing-sm);
|
|
3077
3077
|
overflow: hidden;
|
|
3078
|
-
`;function $
|
|
3078
|
+
`;function $9e({severitySettings:t,handleSeverityChange:e}){const r=[{value:"error",label:"Error"},{value:"warn",label:"Warn"},{value:"off",label:"Off"}],n=[{key:"STATUS_CODE_CHECK",label:"Status Code Check"},{key:"SCHEMA_CHECK",label:"Schema Check"},{key:"CONTENT_TYPE_CHECK",label:"Content Type Check"}];return m.jsx(E9e,{children:m.jsx(q.Dropdown,{trigger:m.jsx(q.Button,{variant:"text",size:"small",children:"Severity settings"}),withArrow:!0,placement:"bottom",alignment:"end",closeOnClick:!1,children:m.jsx(q.DropdownMenu,{children:n.map(i=>m.jsxs(A9e,{children:[m.jsx(I9e,{children:i.label}),m.jsx(q.Segmented,{options:r,value:t[i.key],onChange:({value:o})=>e(i.key,o),size:"small"})]},i.key))})})})}const E9e=R.div`
|
|
3079
3079
|
display: flex;
|
|
3080
3080
|
align-items: center;
|
|
3081
|
-
`,
|
|
3081
|
+
`,A9e=R.div`
|
|
3082
3082
|
display: flex;
|
|
3083
3083
|
align-items: center;
|
|
3084
3084
|
justify-content: space-between;
|
|
@@ -3089,12 +3089,12 @@ ${v.message}
|
|
|
3089
3089
|
&:last-child {
|
|
3090
3090
|
border-bottom: none;
|
|
3091
3091
|
}
|
|
3092
|
-
`,
|
|
3092
|
+
`,I9e=R.span`
|
|
3093
3093
|
font-size: var(--font-size-base);
|
|
3094
3094
|
color: var(--text-color-primary);
|
|
3095
3095
|
font-weight: var(--font-weight-regular);
|
|
3096
3096
|
flex-shrink: 0;
|
|
3097
|
-
`;function
|
|
3097
|
+
`;function T9e({workflowId:t,collectionId:e,tabData:r}){const[n,i]=N.useState(!1),[o,s]=N.useState(null),a=tr(),{project:{userFilesDir:l}}=Et(),{sendEvent:c}=bt(),{inputs:u,servers:d}=a.get(),f=l.get(),h=r.result.get(),g=r.severitySettings.get(),p=bT().getCollection(e),y=Cc({collectionId:e,workflowId:t}),v=(p==null?void 0:p.sourceDescriptions.get())??[];q.useMount(()=>{!h&&!n&&!o&&b()});async function b(){c("workflow.run.click",{workflow_id:t}),y&&BH(y,a),i(!0),s(null);try{const S=await _Xe({projectDir:f,collectionId:e,workflowId:t,inputsObject:u,serversObject:d,sourceDescriptions:v,severitySettings:g}),{executedWorkflows:x,hasProblems:w}=S[0],{ctx:P,...I}=x[0];r.result.set(I),c("workflow.run.result",{workflow_id:t,result:w?"failed":"success"})}catch(S){console.error("Workflow execution failed:",S),s(S instanceof Error?S.message:"Workflow execution failed"),c("workflow.run.result",{workflow_id:t,result:"failed",error:S instanceof Error?S.message:"Workflow execution failed"})}finally{i(!1)}}const O=(S,x)=>{r.severitySettings.set(w=>({...w,[S]:x}))};return m.jsxs(m.Fragment,{children:[m.jsx(YI,{children:m.jsxs(L9e,{children:[m.jsxs(N9e,{children:["Run Results - ",t]}),m.jsx(B9e,{children:(y==null?void 0:y.steps.length)&&h&&!o&&m.jsxs(m.Fragment,{children:[m.jsx($9e,{severitySettings:g,handleSeverityChange:O}),m.jsx(q9e,{}),m.jsx(q.Button,{variant:"text",onClick:b,disabled:n,icon:m.jsx(q.RestartIcon,{size:"14px"}),"data-testid":"run-again-button",size:"small",children:"Run Again"})]})})]})}),m.jsx(V9e,{children:m.jsx(z9e,{children:m.jsxs(D9e,{children:[n&&m.jsx(M9e,{children:m.jsxs(Q9e,{children:[m.jsx(iY,{size:"20px"}),m.jsxs("span",{children:["Running ",t," workflow"]})]})}),o&&m.jsxs(_9e,{children:[m.jsx(q.CloseFilledIcon,{size:"20px",color:"var(--color-error-base)"}),m.jsx(R9e,{children:"Oops! Something went wrong!"}),m.jsx(j9e,{variant:"ghost",onClick:b,disabled:n,icon:m.jsx(q.RestartIcon,{size:"14px"}),"data-testid":"run-again-button",children:"Run again"})]}),!n&&h&&!o&&m.jsxs("div",{children:[m.jsx(p9e,{executedWorkflow:h}),m.jsx(d9e,{executedWorkflow:h,collectionId:e})]})]})})})]})}const _9e=R.div`
|
|
3098
3098
|
display: flex;
|
|
3099
3099
|
flex-direction: column;
|
|
3100
3100
|
align-items: center;
|
|
@@ -3102,14 +3102,14 @@ ${v.message}
|
|
|
3102
3102
|
text-align: center;
|
|
3103
3103
|
padding: var(--spacing-xxl) var(--spacing-base);
|
|
3104
3104
|
height: 186px;
|
|
3105
|
-
`,
|
|
3105
|
+
`,R9e=R.div`
|
|
3106
3106
|
color: var(--text-color-primary);
|
|
3107
3107
|
text-align: center;
|
|
3108
3108
|
font-size: var(--font-size-base);
|
|
3109
3109
|
font-weight: var(--font-weight-medium);
|
|
3110
3110
|
line-height: var(--line-height-base);
|
|
3111
3111
|
margin: var(--spacing-sm) 0;
|
|
3112
|
-
`,
|
|
3112
|
+
`,j9e=R(q.Button)`
|
|
3113
3113
|
display: flex;
|
|
3114
3114
|
padding: calc(var(--spacing-unit) / 4) var(--spacing-sm);
|
|
3115
3115
|
flex-direction: row;
|
|
@@ -3124,14 +3124,14 @@ ${v.message}
|
|
|
3124
3124
|
&:hover {
|
|
3125
3125
|
background: var(--layer-color-hover);
|
|
3126
3126
|
}
|
|
3127
|
-
`,
|
|
3127
|
+
`,D9e=R.div`
|
|
3128
3128
|
width: 100%;
|
|
3129
|
-
`,
|
|
3129
|
+
`,M9e=R.div`
|
|
3130
3130
|
display: flex;
|
|
3131
3131
|
justify-content: center;
|
|
3132
3132
|
align-items: center;
|
|
3133
3133
|
min-height: 100px;
|
|
3134
|
-
`,
|
|
3134
|
+
`,N9e=R(HI)`
|
|
3135
3135
|
font-size: var(--font-size-lg);
|
|
3136
3136
|
font-weight: var(--font-weight-medium);
|
|
3137
3137
|
line-height: var(--line-height-lg);
|
|
@@ -3141,76 +3141,76 @@ ${v.message}
|
|
|
3141
3141
|
text-overflow: ellipsis;
|
|
3142
3142
|
white-space: nowrap;
|
|
3143
3143
|
display: block;
|
|
3144
|
-
`,
|
|
3144
|
+
`,L9e=R.div`
|
|
3145
3145
|
display: flex;
|
|
3146
3146
|
justify-content: space-between;
|
|
3147
3147
|
align-items: center;
|
|
3148
3148
|
width: 100%;
|
|
3149
|
-
`,
|
|
3149
|
+
`,Q9e=R.div`
|
|
3150
3150
|
display: flex;
|
|
3151
3151
|
flex-direction: column;
|
|
3152
3152
|
align-items: center;
|
|
3153
3153
|
gap: var(--spacing-xs);
|
|
3154
|
-
`,
|
|
3154
|
+
`,V9e=R.div`
|
|
3155
3155
|
display: flex;
|
|
3156
3156
|
flex-direction: column;
|
|
3157
3157
|
gap: 0;
|
|
3158
3158
|
min-width: 436px;
|
|
3159
3159
|
width: 100%;
|
|
3160
|
-
`,
|
|
3160
|
+
`,z9e=R.div`
|
|
3161
3161
|
display: flex;
|
|
3162
3162
|
flex-direction: column;
|
|
3163
3163
|
align-items: flex-start;
|
|
3164
3164
|
gap: var(--spacing-xs);
|
|
3165
3165
|
margin-bottom: var(--spacing-sm);
|
|
3166
|
-
`,
|
|
3166
|
+
`,B9e=R.div`
|
|
3167
3167
|
display: flex;
|
|
3168
3168
|
align-items: center;
|
|
3169
3169
|
gap: var(--spacing-xxs);
|
|
3170
|
-
`,
|
|
3170
|
+
`,q9e=R.div`
|
|
3171
3171
|
width: 1px;
|
|
3172
3172
|
height: var(--control-height-sm);
|
|
3173
3173
|
background: var(--border-color-secondary);
|
|
3174
|
-
`;function
|
|
3174
|
+
`;function F9e({data:t}){const{workflowId:e,collectionId:r}=t,n=r.get();return Cc({collectionId:n,workflowId:e.get()})?m.jsx(VT,{children:m.jsx(T9e,{workflowId:e.get(),collectionId:n,tabData:t})}):null}function y_(){const{tab:t}=Wd();if(!(t!=null&&t.get()))return m.jsx(TNe,{});const e=t.data;return yn(e.get(),Ue.Step)?m.jsx(CMe,{data:e}):yn(e.get(),Ue.Workflow)?m.jsx($Ne,{data:e}):yn(e.get(),Ue.WorkflowRun)?m.jsx(F9e,{data:e},t.id.get()):null}const W9e=({error:t})=>m.jsxs(U9e,{children:[m.jsx(X9e,{children:"An Error Has Occurred"}),m.jsx(Z9e,{children:t==null?void 0:t.message}),m.jsx(G9e,{children:t==null?void 0:t.stack})]}),U9e=R.div`
|
|
3175
3175
|
padding: var(--spacing-xs) var(--spacing-xl);
|
|
3176
|
-
`,
|
|
3176
|
+
`,X9e=R.h2`
|
|
3177
3177
|
color: var(--color-error-base);
|
|
3178
|
-
`,
|
|
3178
|
+
`,Z9e=R.h4`
|
|
3179
3179
|
color: var(--text-color-secondary);
|
|
3180
|
-
`,
|
|
3180
|
+
`,G9e=R.pre`
|
|
3181
3181
|
white-space: break-spaces;
|
|
3182
|
-
`;function
|
|
3182
|
+
`;function Y9e({className:t}){return m.jsx(H9e,{className:t,children:m.jsxs(J9e,{children:[m.jsx(q.CloseFilledIcon,{size:"24px",color:"--color-error-base"}),m.jsxs(K9e,{children:[m.jsx(eZe,{children:"Oops! Something went wrong."}),m.jsx(tZe,{children:"We're sorry. There's been an unexpected error. Our team has been notified and will investigate the issue."})]})]})})}const H9e=R.div`
|
|
3183
3183
|
display: flex;
|
|
3184
3184
|
justify-content: center;
|
|
3185
3185
|
align-items: center;
|
|
3186
3186
|
width: 80vw;
|
|
3187
3187
|
height: 100vh;
|
|
3188
3188
|
background-color: var(--bg-color);
|
|
3189
|
-
`,
|
|
3189
|
+
`,J9e=R.div`
|
|
3190
3190
|
display: flex;
|
|
3191
3191
|
flex-direction: column;
|
|
3192
3192
|
align-items: center;
|
|
3193
3193
|
gap: var(--spacing-base);
|
|
3194
|
-
`,
|
|
3194
|
+
`,K9e=R.div`
|
|
3195
3195
|
display: flex;
|
|
3196
3196
|
flex-direction: column;
|
|
3197
3197
|
align-items: center;
|
|
3198
3198
|
gap: var(--spacing-xxs);
|
|
3199
3199
|
width: 488px;
|
|
3200
|
-
`,
|
|
3200
|
+
`,eZe=R.div`
|
|
3201
3201
|
color: var(--text-color-primary);
|
|
3202
3202
|
font-size: var(--font-size-xl);
|
|
3203
3203
|
font-style: normal;
|
|
3204
3204
|
font-weight: var(--font-weight-semibold);
|
|
3205
3205
|
line-height: var(--line-height-xl);
|
|
3206
|
-
`,
|
|
3206
|
+
`,tZe=R.div`
|
|
3207
3207
|
color: var(--text-color-primary);
|
|
3208
3208
|
font-size: var(--font-size-lg);
|
|
3209
3209
|
font-style: normal;
|
|
3210
3210
|
font-weight: var(--font-weight-regular);
|
|
3211
3211
|
line-height: var(--line-height-lg);
|
|
3212
3212
|
text-align: center;
|
|
3213
|
-
`;class KK extends ce.Component{constructor(e){super(e),this.state={error:void 0},this.onUnhandledError=this.onUnhandledError.bind(this),this.onUnhandledPromiseRejection=this.onUnhandledPromiseRejection.bind(this)}onUnhandledError({error:e}){var r,n;(n=(r=this.props).onError)==null||n.call(r,e)}onUnhandledPromiseRejection(e){var r,n;(n=(r=this.props).onError)==null||n.call(r,e.reason)}componentDidMount(){window.addEventListener("error",this.onUnhandledError),window.addEventListener("unhandledrejection",this.onUnhandledPromiseRejection)}componentWillUnmount(){window.removeEventListener("error",this.onUnhandledError),window.removeEventListener("unhandledrejection",this.onUnhandledPromiseRejection)}componentDidCatch(e,r){var i,o;const n={error:{message:e.message,stack:r.componentStack??void 0}};this.setState(n),(o=(i=this.props).onError)==null||o.call(i,n.error)}render(){return this.state.error?process.env.NODE_ENV==="production"?m.jsx(
|
|
3213
|
+
`;class KK extends ce.Component{constructor(e){super(e),this.state={error:void 0},this.onUnhandledError=this.onUnhandledError.bind(this),this.onUnhandledPromiseRejection=this.onUnhandledPromiseRejection.bind(this)}onUnhandledError({error:e}){var r,n;(n=(r=this.props).onError)==null||n.call(r,e)}onUnhandledPromiseRejection(e){var r,n;(n=(r=this.props).onError)==null||n.call(r,e.reason)}componentDidMount(){window.addEventListener("error",this.onUnhandledError),window.addEventListener("unhandledrejection",this.onUnhandledPromiseRejection)}componentWillUnmount(){window.removeEventListener("error",this.onUnhandledError),window.removeEventListener("unhandledrejection",this.onUnhandledPromiseRejection)}componentDidCatch(e,r){var i,o;const n={error:{message:e.message,stack:r.componentStack??void 0}};this.setState(n),(o=(i=this.props).onError)==null||o.call(i,n.error)}render(){return this.state.error?process.env.NODE_ENV==="production"?m.jsx(Y9e,{}):m.jsx(W9e,{error:this.state.error}):this.props.children}}function eee(){const{sendEvent:t}=bt(),{environments:e,activeEnvironmentId:r}=Et(),n=N.useMemo(()=>e.get().map(o=>({label:m.jsx("div",{children:o.name}),value:o.name})),[e]),i=({value:o})=>{var s;r.set(o),t("environment.management",{action:"selected",name:(s=e.get().find(a=>a.name===o))==null?void 0:s.name})};return m.jsxs(nZe,{children:[m.jsx(Ve,{}),"Environment",m.jsx(rZe,{dataTestId:"environment-select",options:n,value:n.find(({value:o})=>o===r.get()),onChange:i,menuAlignment:"right"})]})}const rZe=R(ra)`
|
|
3214
3214
|
display: flex;
|
|
3215
3215
|
border-radius: var(--border-radius);
|
|
3216
3216
|
|
|
@@ -3246,7 +3246,7 @@ ${v.message}
|
|
|
3246
3246
|
width: 14px;
|
|
3247
3247
|
height: 14px;
|
|
3248
3248
|
}
|
|
3249
|
-
`,
|
|
3249
|
+
`,nZe=R.div`
|
|
3250
3250
|
display: flex;
|
|
3251
3251
|
align-items: center;
|
|
3252
3252
|
gap: var(--spacing-xs);
|
|
@@ -3255,7 +3255,7 @@ ${v.message}
|
|
|
3255
3255
|
@media (max-width: ${Mn}px) {
|
|
3256
3256
|
padding-left: var(--spacing-xs);
|
|
3257
3257
|
}
|
|
3258
|
-
`;function
|
|
3258
|
+
`;function iZe({projectPath:t}){return m.jsxs(oZe,{children:[m.jsx(iY,{size:"20px"}),m.jsxs("span",{children:["Opening",m.jsx(sZe,{children:t})]})]})}const oZe=R.div`
|
|
3259
3259
|
width: 100%;
|
|
3260
3260
|
height: 100%;
|
|
3261
3261
|
background-color: var(--color-background);
|
|
@@ -3266,23 +3266,23 @@ ${v.message}
|
|
|
3266
3266
|
gap: var(--spacing-xs);
|
|
3267
3267
|
padding-top: var(--spacing-lg);
|
|
3268
3268
|
font-size: var(--font-size-base);
|
|
3269
|
-
`,
|
|
3269
|
+
`,sZe=R.span`
|
|
3270
3270
|
display: inline-block;
|
|
3271
3271
|
color: var(--text-color-secondary);
|
|
3272
3272
|
margin-left: var(--spacing-xs);
|
|
3273
|
-
`,
|
|
3273
|
+
`,aZe=process.env.NODE_ENV==="development";function lZe(t){const e=t||"default";return{id:Fh(ox(e)),systemFilesDir:hc.join("/replay",e),userFilesDir:hc.join("/projects",e)}}async function cZe(t){if(!t)throw new Error("Tauri project: userFilesDir is required");const e=Fh(ox(t)),r=aZe?await Sve():await xve(),n=await Ih(r,"replay",e);return{id:e,systemFilesDir:n,userFilesDir:t}}function jE(t,e){const r=`apis/${t.info.title}`.replace(/\s+/g,"-").toLowerCase();let n;if(!e.some(i=>i.id===`${r}.yaml`))n=r;else{let i=1,o=`${r}-${i}`;for(;e.some(s=>s.id===o);)i++,o=`${r}-${i}`;n=o}return`${n}.yaml`}function uZe(t,e){return t.find(r=>r.name===e)}function dZe(t,e,r,n,i){const{servers:o,parameters:s}=e,a=s.filter(g=>g.in==="path"),l=fZe(e),c=i;let u=[...o];(i==null?void 0:i.position)==="first"?u.unshift(c):(i==null?void 0:i.position)==="last"?u.push(c):(i==null?void 0:i.position)==="replace"&&(u=[c]);const d=new Set,f=a.map(g=>{const p=g.example?String(g.example):"";return d.add(g.name),{name:g.name,value:p,isSecret:!1}}),h=g=>l.map(p=>{var b,O;const y=(b=e.security)==null?void 0:b.flat().find(S=>{const x=S.id;return p.name.startsWith(x)});let v="";if(y){const S=(O=y.serverValues)==null?void 0:O[g];S&&(S["x-defaultUsername"]&&p.name.endsWith(q.SecurityVariablesEnvSuffix.Username)?v=S["x-defaultUsername"]:S["x-defaultPassword"]&&p.name.endsWith(q.SecurityVariablesEnvSuffix.Password)?v=S["x-defaultPassword"]:S["x-defaultClientId"]&&p.name.endsWith(q.SecurityVariablesEnvSuffix.ClientId)?v=S["x-defaultClientId"]:S["x-defaultClientSecret"]&&p.name.endsWith(q.SecurityVariablesEnvSuffix.ClientSecret)?v=S["x-defaultClientSecret"]:S["x-defaultAccessToken"]&&(v=S["x-defaultAccessToken"])),v||(y["x-defaultUsername"]&&p.name.endsWith(q.SecurityVariablesEnvSuffix.Username)?v=y["x-defaultUsername"]:y["x-defaultPassword"]&&p.name.endsWith(q.SecurityVariablesEnvSuffix.Password)?v=y["x-defaultPassword"]:y["x-defaultClientId"]&&p.name.endsWith(q.SecurityVariablesEnvSuffix.ClientId)?v=y["x-defaultClientId"]:y["x-defaultClientSecret"]&&p.name.endsWith(q.SecurityVariablesEnvSuffix.ClientSecret)?v=y["x-defaultClientSecret"]:y["x-defaultAccessToken"]&&(v=y["x-defaultAccessToken"]))}return d.add(p.name),{name:p.name,value:p.value||v||"",isSecret:p.isSecret}});return{generatedInputs:d,environments:gZe(u).map(g=>{const p=g.description||g.url,y=Object.entries(g.variables||{}).map(([x,w])=>({name:x,value:w.default||""})),v=uZe(r,p),b=(v==null?void 0:v.inputs.filter(x=>x.value))||[],O=h(g.url),S=pZe(hZe(b,f,O),n==null?void 0:n[p]);return{name:p,inputs:S,servers:[{apiId:t,value:g.url,variables:y}],state:xt.Normal}})}}function fZe(t){var i;const e=[],r=((i=t.security)==null?void 0:i.flat())||[],n=new Set;return r.forEach(o=>{const s=Hx(o);if(n.has(s))return;const a=o.id;n.add(s),(s===ge.BasicAuth||s===ge.DigestAuth)&&(e.push(Ji(a+q.SecurityVariablesEnvSuffix.Username,!1)),e.push(Ji(a+q.SecurityVariablesEnvSuffix.Password))),s===ge.JWT&&e.push(Ji(a+q.SecurityVariablesEnvSuffix.JWTToken)),s===ge.APIKey&&e.push(Ji(a+q.SecurityVariablesEnvSuffix.APIKey)),s===ge.OAuth2&&(e.push(Ji(a+q.SecurityVariablesEnvSuffix.Token)),uT(o).forEach(c=>{e.push(Ji(a+q.SecurityVariablesEnvSuffix.ClientId)),[me.Implicit,me.ClientCredentialsWithJwtAssertion].includes(c)||e.push(Ji(a+q.SecurityVariablesEnvSuffix.ClientSecret)),c===me.ClientCredentialsWithJwtAssertion&&e.push(Ji(a+q.SecurityVariablesEnvSuffix.ClientAssertion))})),s===ge.OpenIDConnect&&(e.push(Ji(a+q.SecurityVariablesEnvSuffix.Token)),e.push(Ji(a+q.SecurityVariablesEnvSuffix.ClientId)),e.push(Ji(a+q.SecurityVariablesEnvSuffix.ClientSecret)))}),e}function Ji(t,e=!0){return{name:t,value:"",isSecret:e}}function hZe(...t){const e=new Map;for(const r of t)for(const n of r){const i=e.get(n.name);e.set(n.name,{name:n.name,value:n.value||(i==null?void 0:i.value)||"",isSecret:n.isSecret||(i==null?void 0:i.isSecret)||!1})}return Array.from(e.values())}function pZe(t,e){return e?t.map(r=>{const n=e[r.name];return n!==void 0?{...r,value:n}:r}):t}function gZe(t){const r=cIe(q.IS_BROWSER?window.location.href:globalThis.SSR_HOSTNAME||"");t.length===0&&(t=[{url:"/"}]);function n(i){return uIe(r,i)}return t.map(i=>({...i,url:n(i.url),description:i.description||""}))}function dF(t,e,r){if(!t||!t.paths||Object.keys(t.paths).length===0)return{operations:null,error:0};const{operations:n}=mZe(t,e,r);return{operations:n}}function mZe(t,e,r){const n=[];for(const[i,o]of Object.entries(t.paths))for(const[s,a]of Object.entries(o))s!=="parameters"&&s!=="servers"&&s!=="description"&&s!=="summary"&&(a.tags&&a.tags.length>0?a.tags:["Untagged"]).forEach(c=>{const{operation:u}=yZe(i,s,t,c,e,r);u&&n.push(u)});return{operations:n}}function yZe(t,e,r,n,i,o){if(!o)return{operation:null};const s=o(t,e,r);if(!s)return{operation:null};const a=`${r.info.title}/${n}/${s.name}`;return{operation:nIe(s,i,a)}}const fF=(t,e,r)=>t.find(n=>{if(e&&n.operationId===e)return!0;if(r&&n.apiPath){const{path:i,method:o}=LY(r);return n.apiPath.path===i&&n.apiPath.method===o}return!1}),v_=({children:t,settings:e,api:r,activeOperationId:n,activeOperationPointer:i})=>{const o=N.useContext(aT),s=N.useMemo(async()=>{var y,v,b;const a=Qd()?await cZe(e.storageKey):lZe(e.storageKey),{isInitialized:l}=await o.init(a,e.convertOperationToReplayValue);if(!l)return;if(!r){o.environments.length===0&&o.environments.set(n9);return}const c=jE(r,[]),{operations:u}=dF(r,c,e.convertOperationToReplayValue);if(!(u!=null&&u.length)||!((v=(y=u[0].collectionPath)==null?void 0:y.split("/"))==null?void 0:v[0])||(o.apis.set([{id:c,...r}]),o.predefinedApiId.set(c),!n&&!i))return;const f=fF(u,n,i),{path:h,method:g}=(f==null?void 0:f.apiPath)||{};if(!f||!h||!g)return;const p=(b=e.convertOperationToReplayValue)==null?void 0:b.call(e,h,g,r);p&&hF(o,c,p,e),bZe(o,{apiId:c,path:h,method:g,operationId:f.operationId},p)},[e.storageKey]);return N.useEffect(()=>{if(!r||!e.convertOperationToReplayValue)return;const a=jE(r,[]),{operations:l}=dF(r,a,e.convertOperationToReplayValue);if(!(l!=null&&l.length))return;const c=fF(l,n,i),{path:u,method:d}=(c==null?void 0:c.apiPath)||{};if(!c||!u||!d)return;const f=e.convertOperationToReplayValue(u,d,r);f&&hF(o,a,f,e)},[e.convertOperationToReplayValue,r,n,i,o,e]),m.jsx(N.Suspense,{fallback:m.jsx(iZe,{projectPath:e.storageKey}),children:m.jsx(vZe,{initStore:s,settings:e,api:r,children:t})})};function vZe({initStore:t,children:e,settings:r,api:n}){return N.use(t),Iwe(r,n),m.jsx(ce.default.Fragment,{children:e},r.storageKey)}const hF=(t,e,r,n)=>{var u,d,f,h,g,p;const i=t.environments.get({noproxy:!0}),{environments:o,generatedInputs:s}=dZe(e,r,i,n.predefinedEnvValues,n.mockServer);t.predefinedInputNames.set(s);let a,l,c;if((u=n.allowedEnvironments)!=null&&u.length){const y=o.filter(v=>{var b;return(b=n.allowedEnvironments)==null?void 0:b.includes(v.name)});a=new Set(y.map(v=>v.name)),l=y,c=((d=l.find(v=>v.name===n.selectedEnvironment))==null?void 0:d.name)||((f=l[0])==null?void 0:f.name)||""}else{a=new Set(o.map(v=>v.name)),l=[...o,...i.filter(v=>!a.has(v.name))];const y=t.activeEnvironmentId.get();c=((h=l.find(v=>v.name===y))==null?void 0:h.name)||((g=l.find(v=>v.name===n.selectedEnvironment))==null?void 0:g.name)||((p=l[0])==null?void 0:p.name)||""}t.predefinedEnvironmentNames.set(a),t.environments.set(l),t.activeEnvironmentId.set(c)},bZe=(t,e,r)=>{const n=t.tabsState.tabs.get().findIndex(({data:i})=>{var o,s,a;return yn(i,Ue.Step)&&((o=i.step.operation)==null?void 0:o.apiId)===e.apiId&&((s=i.step.operation)==null?void 0:s.path)===e.path&&((a=i.step.operation)==null?void 0:a.method)===e.method});if(n!==-1)t.tabsState.activeTabIdx.set(n);else{const i=LH(e,r);t.tabsState.tabs.merge([i]),t.tabsState.activeTabIdx.set(t.tabsState.tabs.length-1)}};function OZe(t){const e=N.useMemo(()=>YE(XY({defaultEnvironments:[]}),Q5(UY(!0))),[]);return m.jsx(m.Fragment,{children:m.jsx(FAe,{value:e,children:m.jsx(Bx.Provider,{value:t.settings,children:m.jsx(v_,{...t,children:m.jsx(KK,{onError:r=>console.error(r),children:m.jsx(xZe,{...t})})})})})})}function xZe(t){return t.settings.disableDraft=!0,m.jsx(N.StrictMode,{children:m.jsxs(SZe,{children:[m.jsx(wZe,{children:m.jsx(eee,{})}),m.jsx(y_,{})]})})}const SZe=R.div`
|
|
3274
3274
|
display: flex;
|
|
3275
3275
|
flex-direction: column;
|
|
3276
3276
|
max-height: 80vh;
|
|
3277
3277
|
height: 800px;
|
|
3278
3278
|
width: 100%;
|
|
3279
|
-
`,
|
|
3279
|
+
`,wZe=R.div`
|
|
3280
3280
|
display: flex;
|
|
3281
3281
|
justify-content: end;
|
|
3282
3282
|
border-bottom: 1px solid var(--border-color-secondary);
|
|
3283
3283
|
padding-right: 6px;
|
|
3284
3284
|
height: 40px;
|
|
3285
|
-
`;var Ab={exports:{}},
|
|
3285
|
+
`;var Ab={exports:{}},CZe=Ab.exports,pF;function PZe(){return pF||(pF=1,(function(t,e){(function(r,n){t.exports=n()})(CZe,(function(){var r=1e3,n=6e4,i=36e5,o="millisecond",s="second",a="minute",l="hour",c="day",u="week",d="month",f="quarter",h="year",g="date",p="Invalid Date",y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,v=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,b={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(J){var te=["th","st","nd","rd"],oe=J%100;return"["+J+(te[(oe-20)%10]||te[oe]||te[0])+"]"}},O=function(J,te,oe){var ae=String(J);return!ae||ae.length>=te?J:""+Array(te+1-ae.length).join(oe)+J},S={s:O,z:function(J){var te=-J.utcOffset(),oe=Math.abs(te),ae=Math.floor(oe/60),ie=oe%60;return(te<=0?"+":"-")+O(ae,2,"0")+":"+O(ie,2,"0")},m:function J(te,oe){if(te.date()<oe.date())return-J(oe,te);var ae=12*(oe.year()-te.year())+(oe.month()-te.month()),ie=te.clone().add(ae,d),he=oe-ie<0,L=te.clone().add(ae+(he?-1:1),d);return+(-(ae+(oe-ie)/(he?ie-L:L-ie))||0)},a:function(J){return J<0?Math.ceil(J)||0:Math.floor(J)},p:function(J){return{M:d,y:h,w:u,d:c,D:g,h:l,m:a,s,ms:o,Q:f}[J]||String(J||"").toLowerCase().replace(/s$/,"")},u:function(J){return J===void 0}},x="en",w={};w[x]=b;var P="$isDayjsObject",I=function(J){return J instanceof U||!(!J||!J[P])},E=function J(te,oe,ae){var ie;if(!te)return x;if(typeof te=="string"){var he=te.toLowerCase();w[he]&&(ie=he),oe&&(w[he]=oe,ie=he);var L=te.split("-");if(!ie&&L.length>1)return J(L[0])}else{var D=te.name;w[D]=te,ie=D}return!ae&&ie&&(x=ie),ie||!ae&&x},M=function(J,te){if(I(J))return J.clone();var oe=typeof te=="object"?te:{};return oe.date=J,oe.args=arguments,new U(oe)},V=S;V.l=E,V.i=I,V.w=function(J,te){return M(J,{locale:te.$L,utc:te.$u,x:te.$x,$offset:te.$offset})};var U=(function(){function J(oe){this.$L=E(oe.locale,null,!0),this.parse(oe),this.$x=this.$x||oe.x||{},this[P]=!0}var te=J.prototype;return te.parse=function(oe){this.$d=(function(ae){var ie=ae.date,he=ae.utc;if(ie===null)return new Date(NaN);if(V.u(ie))return new Date;if(ie instanceof Date)return new Date(ie);if(typeof ie=="string"&&!/Z$/i.test(ie)){var L=ie.match(y);if(L){var D=L[2]-1||0,Q=(L[7]||"0").substring(0,3);return he?new Date(Date.UTC(L[1],D,L[3]||1,L[4]||0,L[5]||0,L[6]||0,Q)):new Date(L[1],D,L[3]||1,L[4]||0,L[5]||0,L[6]||0,Q)}}return new Date(ie)})(oe),this.init()},te.init=function(){var oe=this.$d;this.$y=oe.getFullYear(),this.$M=oe.getMonth(),this.$D=oe.getDate(),this.$W=oe.getDay(),this.$H=oe.getHours(),this.$m=oe.getMinutes(),this.$s=oe.getSeconds(),this.$ms=oe.getMilliseconds()},te.$utils=function(){return V},te.isValid=function(){return this.$d.toString()!==p},te.isSame=function(oe,ae){var ie=M(oe);return this.startOf(ae)<=ie&&ie<=this.endOf(ae)},te.isAfter=function(oe,ae){return M(oe)<this.startOf(ae)},te.isBefore=function(oe,ae){return this.endOf(ae)<M(oe)},te.$g=function(oe,ae,ie){return V.u(oe)?this[ae]:this.set(ie,oe)},te.unix=function(){return Math.floor(this.valueOf()/1e3)},te.valueOf=function(){return this.$d.getTime()},te.startOf=function(oe,ae){var ie=this,he=!!V.u(ae)||ae,L=V.p(oe),D=function(ue,G){var B=V.w(ie.$u?Date.UTC(ie.$y,G,ue):new Date(ie.$y,G,ue),ie);return he?B:B.endOf(c)},Q=function(ue,G){return V.w(ie.toDate()[ue].apply(ie.toDate("s"),(he?[0,0,0,0]:[23,59,59,999]).slice(G)),ie)},_=this.$W,k=this.$M,T=this.$D,j="set"+(this.$u?"UTC":"");switch(L){case h:return he?D(1,0):D(31,11);case d:return he?D(1,k):D(0,k+1);case u:var Z=this.$locale().weekStart||0,Y=(_<Z?_+7:_)-Z;return D(he?T-Y:T+(6-Y),k);case c:case g:return Q(j+"Hours",0);case l:return Q(j+"Minutes",1);case a:return Q(j+"Seconds",2);case s:return Q(j+"Milliseconds",3);default:return this.clone()}},te.endOf=function(oe){return this.startOf(oe,!1)},te.$set=function(oe,ae){var ie,he=V.p(oe),L="set"+(this.$u?"UTC":""),D=(ie={},ie[c]=L+"Date",ie[g]=L+"Date",ie[d]=L+"Month",ie[h]=L+"FullYear",ie[l]=L+"Hours",ie[a]=L+"Minutes",ie[s]=L+"Seconds",ie[o]=L+"Milliseconds",ie)[he],Q=he===c?this.$D+(ae-this.$W):ae;if(he===d||he===h){var _=this.clone().set(g,1);_.$d[D](Q),_.init(),this.$d=_.set(g,Math.min(this.$D,_.daysInMonth())).$d}else D&&this.$d[D](Q);return this.init(),this},te.set=function(oe,ae){return this.clone().$set(oe,ae)},te.get=function(oe){return this[V.p(oe)]()},te.add=function(oe,ae){var ie,he=this;oe=Number(oe);var L=V.p(ae),D=function(k){var T=M(he);return V.w(T.date(T.date()+Math.round(k*oe)),he)};if(L===d)return this.set(d,this.$M+oe);if(L===h)return this.set(h,this.$y+oe);if(L===c)return D(1);if(L===u)return D(7);var Q=(ie={},ie[a]=n,ie[l]=i,ie[s]=r,ie)[L]||1,_=this.$d.getTime()+oe*Q;return V.w(_,this)},te.subtract=function(oe,ae){return this.add(-1*oe,ae)},te.format=function(oe){var ae=this,ie=this.$locale();if(!this.isValid())return ie.invalidDate||p;var he=oe||"YYYY-MM-DDTHH:mm:ssZ",L=V.z(this),D=this.$H,Q=this.$m,_=this.$M,k=ie.weekdays,T=ie.months,j=ie.meridiem,Z=function(G,B,z,ne){return G&&(G[B]||G(ae,he))||z[B].slice(0,ne)},Y=function(G){return V.s(D%12||12,G,"0")},ue=j||function(G,B,z){var ne=G<12?"AM":"PM";return z?ne.toLowerCase():ne};return he.replace(v,(function(G,B){return B||(function(z){switch(z){case"YY":return String(ae.$y).slice(-2);case"YYYY":return V.s(ae.$y,4,"0");case"M":return _+1;case"MM":return V.s(_+1,2,"0");case"MMM":return Z(ie.monthsShort,_,T,3);case"MMMM":return Z(T,_);case"D":return ae.$D;case"DD":return V.s(ae.$D,2,"0");case"d":return String(ae.$W);case"dd":return Z(ie.weekdaysMin,ae.$W,k,2);case"ddd":return Z(ie.weekdaysShort,ae.$W,k,3);case"dddd":return k[ae.$W];case"H":return String(D);case"HH":return V.s(D,2,"0");case"h":return Y(1);case"hh":return Y(2);case"a":return ue(D,Q,!0);case"A":return ue(D,Q,!1);case"m":return String(Q);case"mm":return V.s(Q,2,"0");case"s":return String(ae.$s);case"ss":return V.s(ae.$s,2,"0");case"SSS":return V.s(ae.$ms,3,"0");case"Z":return L}return null})(G)||L.replace(":","")}))},te.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},te.diff=function(oe,ae,ie){var he,L=this,D=V.p(ae),Q=M(oe),_=(Q.utcOffset()-this.utcOffset())*n,k=this-Q,T=function(){return V.m(L,Q)};switch(D){case h:he=T()/12;break;case d:he=T();break;case f:he=T()/3;break;case u:he=(k-_)/6048e5;break;case c:he=(k-_)/864e5;break;case l:he=k/i;break;case a:he=k/n;break;case s:he=k/r;break;default:he=k}return ie?he:V.a(he)},te.daysInMonth=function(){return this.endOf(d).$D},te.$locale=function(){return w[this.$L]},te.locale=function(oe,ae){if(!oe)return this.$L;var ie=this.clone(),he=E(oe,ae,!0);return he&&(ie.$L=he),ie},te.clone=function(){return V.w(this.$d,this)},te.toDate=function(){return new Date(this.valueOf())},te.toJSON=function(){return this.isValid()?this.toISOString():null},te.toISOString=function(){return this.$d.toISOString()},te.toString=function(){return this.$d.toUTCString()},J})(),X=U.prototype;return M.prototype=X,[["$ms",o],["$s",s],["$m",a],["$H",l],["$W",c],["$M",d],["$y",h],["$D",g]].forEach((function(J){X[J[1]]=function(te){return this.$g(te,J[0],J[1])}})),M.extend=function(J,te){return J.$i||(J(te,U,M),J.$i=!0),M},M.locale=E,M.isDayjs=I,M.unix=function(J){return M(1e3*J)},M.en=w[x],M.Ls=w,M.p={},M}))})(Ab)),Ab.exports}var kZe=PZe();const AS=ii(kZe);var Ib={exports:{}},$Ze=Ib.exports,gF;function EZe(){return gF||(gF=1,(function(t,e){(function(r,n){t.exports=n()})($Ze,(function(){return function(r,n,i){var o="h:mm A",s={lastDay:"[Yesterday at] "+o,sameDay:"[Today at] "+o,nextDay:"[Tomorrow at] "+o,nextWeek:"dddd [at] "+o,lastWeek:"[Last] dddd [at] "+o,sameElse:"MM/DD/YYYY"};n.prototype.calendar=function(a,l){var c=l||this.$locale().calendar||s,u=i(a||void 0).startOf("d"),d=this.diff(u,"d",!0),f="sameElse",h=d<-6?f:d<-1?"lastWeek":d<0?"lastDay":d<1?"sameDay":d<2?"nextDay":d<7?"nextWeek":f,g=c[h]||s[h];return typeof g=="function"?g.call(this,i()):this.format(g)}}}))})(Ib)),Ib.exports}var AZe=EZe();const IZe=ii(AZe);AS.extend(IZe);const mF=(t,e)=>AS(t).calendar(null,{sameDay:"[Today]",lastDay:"[Yesterday]",lastWeek:"DD MMM",sameElse:"DD MMM"});function TZe(t,e){return t.reduce((n,i)=>{const o=AS(i[e]).format("YYYY-MM-DD");return n[o]||(n[o]=[]),n[o].push(i),n},{})}function b_({children:t,controls:e,icon:r,title:n,defaultExpanded:i=!1,dataTestId:o,size:s="large",showControlsOnHover:a=!0,...l}){const[c,u]=N.useState(i);N.useEffect(()=>u(i),[i]);const d=h=>{(h.key===" "||h.key==="Enter")&&(h.preventDefault(),u(!c))},f=()=>{const h=!c;u(h),l.onToggle&&l.onToggle(h)};return m.jsxs(_Ze,{"data-testid":o,$size:s,children:[m.jsxs(DZe,{$size:s,onKeyDown:d,tabIndex:0,onClick:f,children:[m.jsxs(NZe,{children:[m.jsx(MZe,{children:r||(c?m.jsx(q.ChevronDownIcon,{size:"14px",color:"--text-color-secondary"}):m.jsx(q.ChevronRightIcon,{size:"14px",color:"--text-color-secondary"}))}),m.jsx(RZe,{children:n})]}),e&&m.jsx(tee,{showControlsOnHover:a,children:e})]}),m.jsx(jZe,{$isExpanded:c,children:c?t:null})]})}const _Ze=R.div`
|
|
3286
3286
|
display: flex;
|
|
3287
3287
|
width: 100%;
|
|
3288
3288
|
flex-direction: column;
|
|
@@ -3291,14 +3291,14 @@ ${v.message}
|
|
|
3291
3291
|
font-size: ${({$size:t})=>t==="small"?"var(--font-size-sm)":"var(--font-size-base)"};
|
|
3292
3292
|
line-height: ${({$size:t})=>t==="small"?"var(--line-height-sm)":"var(--line-height-base)"};
|
|
3293
3293
|
cursor: pointer;
|
|
3294
|
-
`,
|
|
3294
|
+
`,RZe=R.span`
|
|
3295
3295
|
display: -webkit-box;
|
|
3296
3296
|
-webkit-line-clamp: 2; /* Limit the text to 2 lines */
|
|
3297
3297
|
-webkit-box-orient: vertical;
|
|
3298
3298
|
overflow: hidden;
|
|
3299
3299
|
max-height: 3em;
|
|
3300
3300
|
text-overflow: ellipsis;
|
|
3301
|
-
`,
|
|
3301
|
+
`,jZe=R.div`
|
|
3302
3302
|
display: flex;
|
|
3303
3303
|
flex-direction: column;
|
|
3304
3304
|
margin-left: 23px;
|
|
@@ -3306,7 +3306,7 @@ ${v.message}
|
|
|
3306
3306
|
overflow-x: visible;
|
|
3307
3307
|
`,tee=R.div`
|
|
3308
3308
|
display: ${({showControlsOnHover:t})=>t?"none":"flex"};
|
|
3309
|
-
`,
|
|
3309
|
+
`,DZe=R.div`
|
|
3310
3310
|
width: 100%;
|
|
3311
3311
|
display: flex;
|
|
3312
3312
|
flex-direction: row;
|
|
@@ -3323,16 +3323,16 @@ ${v.message}
|
|
|
3323
3323
|
display: flex;
|
|
3324
3324
|
}
|
|
3325
3325
|
}
|
|
3326
|
-
`,
|
|
3326
|
+
`,MZe=R.div`
|
|
3327
3327
|
display: flex;
|
|
3328
3328
|
align-items: center;
|
|
3329
3329
|
min-width: 14px;
|
|
3330
|
-
`,
|
|
3330
|
+
`,NZe=R.div`
|
|
3331
3331
|
display: flex;
|
|
3332
3332
|
flex-direction: row;
|
|
3333
3333
|
align-items: center;
|
|
3334
3334
|
gap: var(--spacing-xs);
|
|
3335
|
-
`;function
|
|
3335
|
+
`;function LZe({onConfirm:t,onCancel:e,confirmText:r="Delete",cancelText:n="Cancel",description:i="Are you sure?"}){return m.jsxs(QZe,{children:[m.jsx(q.WarningFilledIcon,{size:"16px",color:"--color-warning-base"}),m.jsxs("div",{children:[m.jsx("div",{children:i}),m.jsxs(VZe,{children:[m.jsx(q.Button,{size:"small",variant:"text",onClick:e,"data-testid":"cancel-btn",children:n}),m.jsx(q.Button,{size:"small",variant:"primary",tone:"danger",onClick:t,"data-testid":"confirm-btn",children:r})]})]})]})}function ol({children:t,onConfirm:e,onCancel:r,trigger:n=["click"],placement:i="bottomRight",showArrow:o=!0,onVisibilityChange:s,...a}){const[l,c]=N.useState(!1),u=N.useRef(null),d=g=>{g.stopPropagation(),e==null||e(),c(!1),s==null||s(!1)},f=g=>{g==null||g.stopPropagation(),r==null||r(),c(!1),s==null||s(!1)},h=g=>{g.stopPropagation(),c(!l),s==null||s(!l)};return l?m.jsx(al,{ref:u,trigger:n,showArrow:o&&{content:m.jsx(zZe,{})},placement:i,visible:l,overlayStyle:{zIndex:"1000",position:"absolute"},overlay:m.jsx(ia,{onClickOutside:f,children:m.jsx(LZe,{...a,onCancel:f,onConfirm:d})}),children:m.jsx("div",{onClick:h,children:t})}):m.jsx("div",{onClick:h,children:t})}const QZe=R(na)`
|
|
3336
3336
|
display: flex;
|
|
3337
3337
|
gap: var(--spacing-xs);
|
|
3338
3338
|
width: 300px;
|
|
@@ -3340,11 +3340,11 @@ ${v.message}
|
|
|
3340
3340
|
border-radius: var(--border-radius-sm);
|
|
3341
3341
|
color: var(--text-color-secondary);
|
|
3342
3342
|
font-size: var(--font-size-base);
|
|
3343
|
-
`,
|
|
3343
|
+
`,VZe=R.div`
|
|
3344
3344
|
display: flex;
|
|
3345
3345
|
justify-content: flex-end;
|
|
3346
3346
|
gap: var(--spacing-xs);
|
|
3347
|
-
`,
|
|
3347
|
+
`,zZe=R(kke)`
|
|
3348
3348
|
left: -4px;
|
|
3349
3349
|
`,IS=R.div`
|
|
3350
3350
|
display: flex;
|
|
@@ -3369,7 +3369,7 @@ ${v.message}
|
|
|
3369
3369
|
height: 40px;
|
|
3370
3370
|
max-height: 40px;
|
|
3371
3371
|
flex-shrink: 0;
|
|
3372
|
-
`,
|
|
3372
|
+
`,BZe=R.div`
|
|
3373
3373
|
display: flex;
|
|
3374
3374
|
width: 100%;
|
|
3375
3375
|
flex-direction: row;
|
|
@@ -3414,19 +3414,19 @@ ${v.message}
|
|
|
3414
3414
|
line-height: var(--line-height-lg);
|
|
3415
3415
|
font-weight: var(--font-weight-semibold);
|
|
3416
3416
|
}
|
|
3417
|
-
`,
|
|
3417
|
+
`,qZe=R(yo)`
|
|
3418
3418
|
display: flex;
|
|
3419
3419
|
flex-shrink: 0;
|
|
3420
3420
|
width: 55px;
|
|
3421
3421
|
align-self: center;
|
|
3422
3422
|
justify-content: center;
|
|
3423
|
-
`;function
|
|
3423
|
+
`;function FZe(){var p,y;const[t,e]=N.useState(""),{openStepTabFromHistory:r}=Pi(),{history:n}=Et(),{sendEvent:i}=bt(),{MobileHeader:o,isMobile:s,setActiveTab:a}=Oo(),l=N.useMemo(()=>[...n.get()].sort((v,b)=>b.date-v.date),[n]),c=N.useMemo(()=>l.filter(v=>{const{url:b,method:O}=uc(v.step),S=b.toLowerCase().includes(t.toLowerCase()),x=O.toLowerCase().includes(t.toLowerCase());return S||x}),[l,t]),u=N.useMemo(()=>TZe(c,"date"),[c]),d=v=>{e(v)},f=N.useCallback(v=>{var b;(b=n.find(O=>O.get().id===v))==null||b.set(ot),i("history.management",{action:"item_removed"})},[n,i]),h=N.useCallback(()=>{n.set([]),i("history.management",{action:"all_items_removed"})},[n,i]),g=N.useCallback(v=>{r(v.id),i("history.management",{action:"item_clicked"}),a("Request")},[i,a,r]);return(p=n.get())!=null&&p.length?m.jsxs(IS,{children:[m.jsx(o,{}),m.jsxs(TS,{children:[m.jsx(Kp,{value:t,onSearch:d}),m.jsx(Ve,{}),m.jsx(nee,{children:m.jsx(ol,{description:"Are you sure to clear your whole history?",placement:"bottomRight",onConfirm:h,children:m.jsx(q.Button,{"data-testid":"clear-history-button",disabled:!((y=n.get())!=null&&y.length),variant:"text",size:"small",icon:m.jsx(q.CleanIcon,{})})})})]}),m.jsx(fg,{children:Object.entries(u).map((v,b)=>{const[O,S]=v;return m.jsx(b_,{title:mF(O),defaultExpanded:b===0,children:m.jsx(UZe,{children:S.map((x,w)=>{const{url:P,method:I}=uc(x.step);return m.jsx(WZe,{"data-testid":`history-item-${w}`,children:m.jsx(sS,{showControlsOnHover:!s,onClick:()=>g(x),staticLabels:x.response?m.jsx(HZe,{children:m.jsx(YZe,{tabIndex:-1,status:x.response.status.toString(),children:x.response.status})}):null,controls:m.jsx(m.Fragment,{children:m.jsx(ol,{description:"Are you sure you to delete this request?",placement:"bottomRight",onConfirm:()=>f(x.id),children:m.jsx(on,{icon:m.jsx(q.TrashCanIcon,{}),size:"small","data-testid":`remove-history-item-${w}`})})}),children:m.jsxs(XZe,{children:[m.jsx(qZe,{value:I}),m.jsx(ZZe,{mouseEnterDelay:1,placement:"bottom",content:AS(new Date(x.date)).format("MMM, DD, YYYY, hh:mm:ss A"),children:m.jsx(GZe,{children:P})})]},x.id)})},x.id)})})},mF(O))})})]}):m.jsxs(m.Fragment,{children:[m.jsx(o,{}),m.jsxs(iee,{children:[m.jsx("h3",{children:"You have not run any requests"}),"You'll see the full history of the request."]})]})}const WZe=R.div`
|
|
3424
3424
|
height: 32px;
|
|
3425
3425
|
padding-right: var(--spacing-sm);
|
|
3426
3426
|
--accordion-item-highlight-color: var(--bg-color-hover);
|
|
3427
|
-
`,
|
|
3427
|
+
`,UZe=R.div`
|
|
3428
3428
|
border-left: 1px solid var(--border-color-secondary);
|
|
3429
|
-
`,
|
|
3429
|
+
`,XZe=R.div`
|
|
3430
3430
|
max-width: 100%;
|
|
3431
3431
|
display: flex;
|
|
3432
3432
|
flex-direction: row;
|
|
@@ -3435,12 +3435,12 @@ ${v.message}
|
|
|
3435
3435
|
padding: var(--spacing-sm) 0 var(--spacing-sm) 0;
|
|
3436
3436
|
cursor: pointer;
|
|
3437
3437
|
min-width: 0;
|
|
3438
|
-
`,
|
|
3438
|
+
`,ZZe=R(Mt)`
|
|
3439
3439
|
max-width: 100%;
|
|
3440
3440
|
text-overflow: ellipsis;
|
|
3441
3441
|
overflow: hidden;
|
|
3442
3442
|
white-space: nowrap;
|
|
3443
|
-
`,
|
|
3443
|
+
`,GZe=R.div`
|
|
3444
3444
|
font-size: var(--font-size-base);
|
|
3445
3445
|
font-weight: var(--font-weight-regular);
|
|
3446
3446
|
line-height: var(--line-height-base);
|
|
@@ -3449,11 +3449,11 @@ ${v.message}
|
|
|
3449
3449
|
text-overflow: ellipsis;
|
|
3450
3450
|
overflow: hidden;
|
|
3451
3451
|
white-space: nowrap;
|
|
3452
|
-
`,
|
|
3452
|
+
`,YZe=R(q.StatusCode)`
|
|
3453
3453
|
font-size: var(--font-size-sm);
|
|
3454
3454
|
line-height: var(--line-height-sm);
|
|
3455
3455
|
font-weight: var(--font-weight-regular);
|
|
3456
|
-
`,
|
|
3456
|
+
`,HZe=R.span`
|
|
3457
3457
|
height: var(--line-height-sm);
|
|
3458
3458
|
background: var(--border-color-secondary);
|
|
3459
3459
|
padding: 0 var(--spacing-xxs);
|
|
@@ -3463,7 +3463,7 @@ ${v.message}
|
|
|
3463
3463
|
color: var(--text-color-secondary);
|
|
3464
3464
|
display: inline-flex;
|
|
3465
3465
|
word-break: var(--code-word-break);
|
|
3466
|
-
`;function
|
|
3466
|
+
`;function JZe({defaultName:t,onChange:e,onApplyNewName:r,onCancelEditing:n,icon:i,placeholder:o="New Folder"}){const[s,a]=N.useState(t),l=u=>{a(u.target.value),e==null||e(u)},c=s.trim();return m.jsx(ia,{onClickOutside:n,children:m.jsxs(BZe,{children:[i,m.jsx(tl,{"data-testid":"edit-item-header-input",autoFocus:!0,type:"text",placeholder:o,value:s,onChange:l}),m.jsxs(KZe,{children:[m.jsx(q.Button,{"data-testid":"edit-item-header-save-button",variant:"primary",onClick:()=>r(c),disabled:!c,children:m.jsx(q.CheckmarkIcon,{})}),m.jsx(q.Button,{variant:"text",onClick:n,icon:m.jsx(q.CloseIcon,{})})]})]})})}const KZe=R.div`
|
|
3467
3467
|
display: flex;
|
|
3468
3468
|
gap: var(--spacing-xs);
|
|
3469
3469
|
`,eGe="This environment was automatically created from the OpenAPI definition and cannot be edited.",tGe="This server was automatically created from the OpenAPI definition and cannot be deleted.",rGe="This input was automatically created from the OpenAPI definition and cannot be deleted.",nGe='Are you sure you want to delete "{name}" along with all its inputs?';function yF({availableApiIds:t,server:e,isPredefinedApi:r,isPredefinedEnvironment:n,environmentName:i}){const{sendEvent:o}=bt(),[s,a]=N.useState(!1),{apiId:l,value:c}=e.get(),{api:u}=YH(l),d=u==null?void 0:u.info.title.get(),f=y=>{e.set(y),a(!1),o("server.management",{action:"editing_finished",environment_name:i,api_id:l})},h=()=>{o("server.management",{action:"editing_cancelled",environment_name:i,api_id:l}),a(!1)},g=()=>{o("server.management",{action:"editing_started",environment_name:i,api_id:l}),a(!0)},p=()=>{o("server.management",{action:"removed",environment_name:i,api_id:l}),e.set(ot)};return m.jsxs(m.Fragment,{children:[s?m.jsx(CT,{server:e.get(),availableApiIds:t,isPredefinedApi:r,onSave:f,onCancel:h}):m.jsx(sS,{dataTestId:`environment-server-${l}`,showControlsOnHover:!0,controls:m.jsxs(m.Fragment,{children:[n&&r?null:m.jsx(fo,{"data-testid":`edit-server-btn-${l}`,size:"small",variant:"text",icon:m.jsx(q.EditIcon,{}),onClick:g}),r?m.jsx(Mt,{content:tGe,children:m.jsx(fo,{size:"small",variant:"text",icon:m.jsx(q.InformationIcon,{})})}):m.jsx(ol,{description:"Are you sure you to delete this environment server?",onConfirm:p,children:m.jsx(on,{"data-testid":`remove-server-btn-${l}`,icon:m.jsx(q.TrashCanIcon,{})})})]}),children:m.jsxs(iGe,{children:[r?null:m.jsx(aGe,{children:m.jsx(lGe,{children:d??l})}),m.jsx(cGe,{$isEmpty:!c,children:iT(c,YE([]),{highlightPatterns:[{pattern:Y5,component:({content:y})=>m.jsx(uGe,{children:y})}],withPopover:!1})||"No value"})]})}),e.variables.length>0&&m.jsxs(sGe,{children:[m.jsx(oGe,{children:"Server variables"}),e.variables.map(y=>m.jsx(GH,{input:y,server:e,showControlsOnHover:!0},y.name.get()))]})]})}const iGe=R.div`
|
|
@@ -3589,7 +3589,7 @@ ${v.message}
|
|
|
3589
3589
|
display: -webkit-box;
|
|
3590
3590
|
-webkit-line-clamp: 2;
|
|
3591
3591
|
-webkit-box-orient: vertical;
|
|
3592
|
-
`;function OGe({environment:t,predefinedInputs:e}){const[r,n]=N.useState(!1),{name:i}=t.get(),{sendEvent:o}=bt(),s=()=>{n(!0),o("input.management",{action:"creation_started",context:"environment",environment_name:i})},a=c=>{t.inputs.set(u=>[c,...u]),n(!1),o("input.management",{action:"creation_finished",context:"environment",environment_name:i,name:c.name,is_secret:c.isSecret})},l=()=>{n(!1),o("input.management",{action:"creation_cancelled",context:"environment",environment_name:i})};return m.jsxs(m.Fragment,{children:[m.jsxs(DE,{children:[m.jsx("span",{children:"Inputs"}),m.jsx(see,{icon:m.jsx(q.AddIcon,{}),variant:"text",onClick:s,iconPosition:"left",size:"small",children:"New Input"})]}),r&&m.jsx(Zp,{input:h0(),onSave:a,onCancel:l}),t.inputs.length===0&&m.jsx(ME,{children:"No inputs created."}),t.inputs.map(c=>m.jsx(N.Fragment,{children:m.jsx(gGe,{input:c,environment:t,isPredefinedInput:e==null?void 0:e.has(c.name.get())})},`${i}-${c.name.get()}`))]})}function xGe({environment:t}){const{environments:e,predefinedApiId:r,predefinedEnvironmentNames:n,predefinedInputNames:i,activeEnvironmentId:o}=Et(),{name:s,state:a}=t.get(),{sendEvent:l}=bt(),c=t.name.get()===o.get(),u=n.get().has(s),d=()=>{t.set(ot),l("environment.management",{action:"creation_cancelled"})},f=()=>{t.state.set(xt.Normal),l("environment.management",{action:"editing_cancelled",name:s})},h=()=>{t.state.set(xt.Edit),l("environment.management",{action:"editing_started",name:s})},g=()=>{if(t.set(ot),c){const y=e.find(v=>v.name.get()!==s);o.set((y==null?void 0:y.name.get())||"")}l("environment.management",{action:"removed",name:s})},p=y=>{a===xt.Draft?l("environment.management",{action:"creation_finished",name:y}):l("environment.management",{action:"edited",name:s,new_name:y}),t.state.set(xt.Normal),y.length&&(t.name.set(y),a===xt.Draft&&o.set(y))};return a===xt.Edit||a===xt.Draft?m.jsx(
|
|
3592
|
+
`;function OGe({environment:t,predefinedInputs:e}){const[r,n]=N.useState(!1),{name:i}=t.get(),{sendEvent:o}=bt(),s=()=>{n(!0),o("input.management",{action:"creation_started",context:"environment",environment_name:i})},a=c=>{t.inputs.set(u=>[c,...u]),n(!1),o("input.management",{action:"creation_finished",context:"environment",environment_name:i,name:c.name,is_secret:c.isSecret})},l=()=>{n(!1),o("input.management",{action:"creation_cancelled",context:"environment",environment_name:i})};return m.jsxs(m.Fragment,{children:[m.jsxs(DE,{children:[m.jsx("span",{children:"Inputs"}),m.jsx(see,{icon:m.jsx(q.AddIcon,{}),variant:"text",onClick:s,iconPosition:"left",size:"small",children:"New Input"})]}),r&&m.jsx(Zp,{input:h0(),onSave:a,onCancel:l}),t.inputs.length===0&&m.jsx(ME,{children:"No inputs created."}),t.inputs.map(c=>m.jsx(N.Fragment,{children:m.jsx(gGe,{input:c,environment:t,isPredefinedInput:e==null?void 0:e.has(c.name.get())})},`${i}-${c.name.get()}`))]})}function xGe({environment:t}){const{environments:e,predefinedApiId:r,predefinedEnvironmentNames:n,predefinedInputNames:i,activeEnvironmentId:o}=Et(),{name:s,state:a}=t.get(),{sendEvent:l}=bt(),c=t.name.get()===o.get(),u=n.get().has(s),d=()=>{t.set(ot),l("environment.management",{action:"creation_cancelled"})},f=()=>{t.state.set(xt.Normal),l("environment.management",{action:"editing_cancelled",name:s})},h=()=>{t.state.set(xt.Edit),l("environment.management",{action:"editing_started",name:s})},g=()=>{if(t.set(ot),c){const y=e.find(v=>v.name.get()!==s);o.set((y==null?void 0:y.name.get())||"")}l("environment.management",{action:"removed",name:s})},p=y=>{a===xt.Draft?l("environment.management",{action:"creation_finished",name:y}):l("environment.management",{action:"edited",name:s,new_name:y}),t.state.set(xt.Normal),y.length&&(t.name.set(y),a===xt.Draft&&o.set(y))};return a===xt.Edit||a===xt.Draft?m.jsx(JZe,{placeholder:"New Environment",defaultName:s,onApplyNewName:p,onCancelEditing:a===xt.Draft?d:f,icon:a===xt.Edit?m.jsx(q.ChevronRightIcon,{size:"14px",color:"--text-color-secondary"}):m.jsx(q.AddIcon,{})}):m.jsx(m.Fragment,{children:m.jsx(b_,{dataTestId:`environment-${s}`,title:m.jsx(oee,{children:s}),defaultExpanded:c,controls:m.jsx(SGe,{children:s!==kx&&(u?m.jsx(Mt,{content:eGe,children:m.jsx(fo,{size:"small",variant:"text",icon:m.jsx(q.InformationIcon,{})})}):m.jsxs(m.Fragment,{children:[m.jsx(fo,{size:"small",variant:"text",icon:m.jsx(q.EditIcon,{}),onClick:h,"data-testid":`edit-environment-${s}`}),m.jsx(ol,{description:nGe.replace("{name}",s),onConfirm:g,children:m.jsx(on,{variant:"text",icon:m.jsx(q.TrashCanIcon,{}),"data-testid":`remove-environment-${s}`})})]}))}),children:m.jsxs(wGe,{children:[m.jsx(dGe,{environment:t,predefinedApiId:r.get(),isPredefinedEnvironment:u}),m.jsx(OGe,{environment:t,predefinedInputs:i.get()})]})})})}const SGe=R.div`
|
|
3593
3593
|
display: flex;
|
|
3594
3594
|
flex-direction: row;
|
|
3595
3595
|
gap: var(--spacing-xxs);
|
|
@@ -4004,7 +4004,7 @@ Use the data prop if you want to provide your own handlers.`);if(t.initialData){
|
|
|
4004
4004
|
gap: var(--spacing-xs);
|
|
4005
4005
|
`,iKe=R.div`
|
|
4006
4006
|
color: var(--text-color-description);
|
|
4007
|
-
`;function oKe(){const{tabDataId:t}=Wd(),{openStepTab:e,openWorkflowTab:r,handleCloseByDataId:n}=Pi(),{getExistingTab:i}=qd(),{collections:o}=Et(),s=N.useRef(null),{sendEvent:a}=bt(),l=o.map(O=>{const S=O.id.get();return{id:S,collectionId:S,workflowId:null,stepId:null,name:O.info.title.get(),isDraft:O.state.get()===xt.Draft,type:"collection",collection:O,children:O.workflows.map(x=>{var P;const w=x.workflowId.get();return{id:`${S}/${w}`,collectionId:S,workflowId:w,stepId:null,name:((P=x.summary)==null?void 0:P.get())||"",isDraft:x.state.get()===xt.Draft,type:"workflow",workflow:x,children:x.steps.map(I=>{const E=I.stepId.get();return{id:`${S}/${w}/${E}`,collectionId:S,workflowId:w,stepId:E,name:I.stepId.get(),isDraft:I.state.get()===xt.Draft,type:"step",step:I}})}})}}),c=({dragNodes:O,parentNode:S,index:x})=>{var P,I;const w=O[0];if(w.data.type==="step"&&(S==null?void 0:S.data.type)==="workflow"){const E=w.data.step.get({noproxy:!0});if(((P=w.parent)==null?void 0:P.data.id)===S.data.id){const M=w.childIndex,V=M<x?x-1:x;S.data.workflow.steps.set(U=>(U.splice(M,1),U.splice(V,0,E),U))}else w.data.step.set(ot),S.data.workflow.steps.set(M=>(M.splice(x,0,E),M))}if(w.data.type==="workflow"&&(S==null?void 0:S.data.type)==="collection"){const E=w.data.workflow.get({noproxy:!0});if(((I=w.parent)==null?void 0:I.data.id)===S.data.id){const M=w.childIndex,V=M<x?x-1:x;S.data.collection.workflows.set(U=>(U.splice(M,1),U.splice(V,0,E),U))}else w.data.workflow.set(ot),S.data.collection.workflows.set(M=>(M.splice(x,0,E),M))}},u=({name:O,node:S})=>{var x;switch(S.data.type){case"collection":if(S.data.collection.info.title.set(O),S.data.isDraft){const I=VH({name:O,collections:o});S.data.collection.merge({id:I,state:xt.Normal}),a("node.management",{action:"creation_finished",node_type:"collection",name:O})}else a("node.management",{action:"editing_finished",node_type:"collection",name:O});break;case"workflow":if(S.data.workflow.summary.set(O),S.data.isDraft){const I=S.parent,E=zH({name:O,collection:I.data.collection}),M=i({type:Ue.Workflow,collectionId:S.data.collectionId,workflowId:S.data.workflowId});M&&M.data.workflowId.set(E),S.data.workflow.workflowId.set(E),S.data.workflow.state.set(xt.Normal),a("node.management",{action:"creation_finished",node_type:"workflow",name:O})}else a("node.management",{action:"editing_finished",node_type:"workflow",name:O});break;case"step":const w=(x=i({type:Ue.Step,collectionId:S.data.collectionId,workflowId:S.data.workflowId,stepId:S.data.stepId,historyId:null}))==null?void 0:x.data,P=O.replaceAll(" ","-");w&&(w.stepId.set(P),w.step.stepId.set(P)),S.data.step.stepId.set(P),S.data.isDraft?(S.data.step.state.set(xt.Normal),w==null||w.step.state.set(xt.Normal),a("node.management",{action:"creation_finished",node_type:"step",name:O})):a("node.management",{action:"editing_finished",node_type:"step",name:O});break}},d=({parentNode:O,index:S})=>{if(!O){const x=QH({collections:o,isDraft:!0});return o.set(w=>(w.splice(S,0,x),w)),{id:x.id}}if(O.data.type==="collection"){const x=cE({collection:O.data.collection,isDraft:!0});return O.data.collection.workflows.set(w=>(w.splice(S,0,x),w)),{id:`${O.data.collectionId}/${x.workflowId}`}}if(O.data.type==="workflow"){const x=Vu({workflow:O.data.workflow,isDraft:!0});return O.data.workflow.steps.set(w=>(w.splice(S,0,x),w)),{id:`${O.data.collectionId}/${O.data.workflowId}/${x.stepId}`}}return null};function f(O){n({collectionId:O.data.collectionId,workflowId:O.data.workflowId,stepId:O.data.stepId}),O.children&&O.children.forEach(f)}const h=({nodes:O})=>{for(const S of O)f(S),S.data.type==="collection"&&(S.data.collection.set(ot),a("node.management",{action:"removed",node_type:"collection",name:S.data.name})),S.data.type==="workflow"&&(S.data.workflow.set(ot),a("node.management",{action:"removed",node_type:"workflow",name:S.data.name})),S.data.type==="step"&&(S.data.step.set(ot),a("node.management",{action:"removed",node_type:"step",name:S.data.name}))};function g({index:O}){var S;(S=s.current)==null||S.create({parentId:null,index:O}),a("node.management",{action:"creation_started",node_type:"collection"})}function p(O){O.data.type==="workflow"&&r({collectionId:O.data.collectionId,workflowId:O.data.workflowId}),O.data.type==="step"&&e({collectionId:O.data.collectionId,workflowId:O.data.workflowId,stepId:O.data.stepId})}function y(O,S){var x;switch(O.data.type){case"collection":case"workflow":return S?"":"Please provide a name";case"step":return S?(x=O.parent.children)!=null&&x.some(w=>w.data.name===S&&w.data.id!==O.data.id)?"Step ID already exists":"":"Please provide a Step ID"}}function v(O){switch(O.node.data.type){case"collection":return m.jsx(rKe,{...O});case"workflow":return m.jsx(HJe,{...O});case"step":return m.jsx(qJe,{...O})}}function b(O){switch(O.node.data.type){case"collection":return m.jsx(zJe,{...O});case"workflow":return m.jsx(eKe,{...O});case"step":return m.jsx(GJe,{...O})}}return m.jsxs(IS,{children:[m.jsx(ree,{children:m.jsx(q.Button,{variant:"ghost",icon:m.jsx(q.AddIcon,{}),onClick:()=>g({index:l.length}),children:"Create new collection"})}),m.jsxs(fg,{children:[!o.length&&m.jsx(NJe,{onCreate:()=>g({index:0})}),m.jsx(ete,{treeRef:s,data:l,onCreate:d,onDelete:h,onMove:c,onRename:u,onActivate:p,renderName:v,renderControls:b,validateName:y,disableDrag:O=>O.type==="collection",selection:t})]})]})}const E_=(t,e=!1)=>{const{disableCollectionsTab:r}=gs().get(),n=[],i=Qd();return e&&n.push({key:"Request",label:"Request",children:m.jsx(y_,{})}),n.push({key:"History",label:"History",children:m.jsx(
|
|
4007
|
+
`;function oKe(){const{tabDataId:t}=Wd(),{openStepTab:e,openWorkflowTab:r,handleCloseByDataId:n}=Pi(),{getExistingTab:i}=qd(),{collections:o}=Et(),s=N.useRef(null),{sendEvent:a}=bt(),l=o.map(O=>{const S=O.id.get();return{id:S,collectionId:S,workflowId:null,stepId:null,name:O.info.title.get(),isDraft:O.state.get()===xt.Draft,type:"collection",collection:O,children:O.workflows.map(x=>{var P;const w=x.workflowId.get();return{id:`${S}/${w}`,collectionId:S,workflowId:w,stepId:null,name:((P=x.summary)==null?void 0:P.get())||"",isDraft:x.state.get()===xt.Draft,type:"workflow",workflow:x,children:x.steps.map(I=>{const E=I.stepId.get();return{id:`${S}/${w}/${E}`,collectionId:S,workflowId:w,stepId:E,name:I.stepId.get(),isDraft:I.state.get()===xt.Draft,type:"step",step:I}})}})}}),c=({dragNodes:O,parentNode:S,index:x})=>{var P,I;const w=O[0];if(w.data.type==="step"&&(S==null?void 0:S.data.type)==="workflow"){const E=w.data.step.get({noproxy:!0});if(((P=w.parent)==null?void 0:P.data.id)===S.data.id){const M=w.childIndex,V=M<x?x-1:x;S.data.workflow.steps.set(U=>(U.splice(M,1),U.splice(V,0,E),U))}else w.data.step.set(ot),S.data.workflow.steps.set(M=>(M.splice(x,0,E),M))}if(w.data.type==="workflow"&&(S==null?void 0:S.data.type)==="collection"){const E=w.data.workflow.get({noproxy:!0});if(((I=w.parent)==null?void 0:I.data.id)===S.data.id){const M=w.childIndex,V=M<x?x-1:x;S.data.collection.workflows.set(U=>(U.splice(M,1),U.splice(V,0,E),U))}else w.data.workflow.set(ot),S.data.collection.workflows.set(M=>(M.splice(x,0,E),M))}},u=({name:O,node:S})=>{var x;switch(S.data.type){case"collection":if(S.data.collection.info.title.set(O),S.data.isDraft){const I=VH({name:O,collections:o});S.data.collection.merge({id:I,state:xt.Normal}),a("node.management",{action:"creation_finished",node_type:"collection",name:O})}else a("node.management",{action:"editing_finished",node_type:"collection",name:O});break;case"workflow":if(S.data.workflow.summary.set(O),S.data.isDraft){const I=S.parent,E=zH({name:O,collection:I.data.collection}),M=i({type:Ue.Workflow,collectionId:S.data.collectionId,workflowId:S.data.workflowId});M&&M.data.workflowId.set(E),S.data.workflow.workflowId.set(E),S.data.workflow.state.set(xt.Normal),a("node.management",{action:"creation_finished",node_type:"workflow",name:O})}else a("node.management",{action:"editing_finished",node_type:"workflow",name:O});break;case"step":const w=(x=i({type:Ue.Step,collectionId:S.data.collectionId,workflowId:S.data.workflowId,stepId:S.data.stepId,historyId:null}))==null?void 0:x.data,P=O.replaceAll(" ","-");w&&(w.stepId.set(P),w.step.stepId.set(P)),S.data.step.stepId.set(P),S.data.isDraft?(S.data.step.state.set(xt.Normal),w==null||w.step.state.set(xt.Normal),a("node.management",{action:"creation_finished",node_type:"step",name:O})):a("node.management",{action:"editing_finished",node_type:"step",name:O});break}},d=({parentNode:O,index:S})=>{if(!O){const x=QH({collections:o,isDraft:!0});return o.set(w=>(w.splice(S,0,x),w)),{id:x.id}}if(O.data.type==="collection"){const x=cE({collection:O.data.collection,isDraft:!0});return O.data.collection.workflows.set(w=>(w.splice(S,0,x),w)),{id:`${O.data.collectionId}/${x.workflowId}`}}if(O.data.type==="workflow"){const x=Vu({workflow:O.data.workflow,isDraft:!0});return O.data.workflow.steps.set(w=>(w.splice(S,0,x),w)),{id:`${O.data.collectionId}/${O.data.workflowId}/${x.stepId}`}}return null};function f(O){n({collectionId:O.data.collectionId,workflowId:O.data.workflowId,stepId:O.data.stepId}),O.children&&O.children.forEach(f)}const h=({nodes:O})=>{for(const S of O)f(S),S.data.type==="collection"&&(S.data.collection.set(ot),a("node.management",{action:"removed",node_type:"collection",name:S.data.name})),S.data.type==="workflow"&&(S.data.workflow.set(ot),a("node.management",{action:"removed",node_type:"workflow",name:S.data.name})),S.data.type==="step"&&(S.data.step.set(ot),a("node.management",{action:"removed",node_type:"step",name:S.data.name}))};function g({index:O}){var S;(S=s.current)==null||S.create({parentId:null,index:O}),a("node.management",{action:"creation_started",node_type:"collection"})}function p(O){O.data.type==="workflow"&&r({collectionId:O.data.collectionId,workflowId:O.data.workflowId}),O.data.type==="step"&&e({collectionId:O.data.collectionId,workflowId:O.data.workflowId,stepId:O.data.stepId})}function y(O,S){var x;switch(O.data.type){case"collection":case"workflow":return S?"":"Please provide a name";case"step":return S?(x=O.parent.children)!=null&&x.some(w=>w.data.name===S&&w.data.id!==O.data.id)?"Step ID already exists":"":"Please provide a Step ID"}}function v(O){switch(O.node.data.type){case"collection":return m.jsx(rKe,{...O});case"workflow":return m.jsx(HJe,{...O});case"step":return m.jsx(qJe,{...O})}}function b(O){switch(O.node.data.type){case"collection":return m.jsx(zJe,{...O});case"workflow":return m.jsx(eKe,{...O});case"step":return m.jsx(GJe,{...O})}}return m.jsxs(IS,{children:[m.jsx(ree,{children:m.jsx(q.Button,{variant:"ghost",icon:m.jsx(q.AddIcon,{}),onClick:()=>g({index:l.length}),children:"Create new collection"})}),m.jsxs(fg,{children:[!o.length&&m.jsx(NJe,{onCreate:()=>g({index:0})}),m.jsx(ete,{treeRef:s,data:l,onCreate:d,onDelete:h,onMove:c,onRename:u,onActivate:p,renderName:v,renderControls:b,validateName:y,disableDrag:O=>O.type==="collection",selection:t})]})]})}const E_=(t,e=!1)=>{const{disableCollectionsTab:r}=gs().get(),n=[],i=Qd();return e&&n.push({key:"Request",label:"Request",children:m.jsx(y_,{})}),n.push({key:"History",label:"History",children:m.jsx(FZe,{}),flexDirection:"column"}),r||(n.push({key:"APIs",label:"APIs",children:m.jsx(MJe,{}),flexDirection:"column"}),n.push({key:"Collections",label:"Collections",children:m.jsx(oKe,{}),flexDirection:"column"})),n.push({key:"Environments",label:"Environments",children:m.jsx(CGe,{}),flexDirection:"column"}),t&&!i&&n.push({key:"Apps",label:"Apps",children:m.jsx(VGe,{}),flexDirection:"column"}),{tabsParams:n}},{Tab:sKe,TabContent:aKe,TabListContainer:lKe,Tabs:cKe,TabsSize:uKe}=q.markdoc.components;function dKe(){const{apps:{apiId:t}}=Et(),{sendEvent:e}=bt(),[r,n]=N.useState(!0),{tabsParams:i}=E_(t.get(),!1),o=N.useCallback(a=>{e("tab.change",{source:"side_panel",name:a})},[e]),s=()=>{n(!r),e("panel.toggle",{panel_type:"side_panel",expanded:!r})};return m.jsxs(fKe,{$expanded:r,children:[r&&m.jsx(hKe,{size:uKe.MEDIUM,children:i.map(({key:a,...l})=>N.createElement(gKe,{...l,key:a,onClick:()=>o(l.label)}))}),m.jsx(pKe,{variant:"text",onClick:s,children:r?m.jsx(q.SidePanelOpenIcon,{}):m.jsx(q.SidePanelCloseIcon,{})})]})}const fKe=R.div`
|
|
4008
4008
|
display: flex;
|
|
4009
4009
|
flex-direction: row;
|
|
4010
4010
|
border-left: 1px solid var(--border-color-secondary);
|
|
@@ -4305,4 +4305,4 @@ Use the data prop if you want to provide your own handlers.`);if(t.initialData){
|
|
|
4305
4305
|
@media (max-width: ${Mn}px) {
|
|
4306
4306
|
width: 100vw;
|
|
4307
4307
|
}
|
|
4308
|
-
`;exports.EmbeddedReplay=
|
|
4308
|
+
`;exports.EmbeddedReplay=OZe;exports.JsonPointer=pI;exports.Modal=Td;exports.Replay=uet;exports.ReplayOverlay=fet;exports.bundle=T4e;exports.bytesToHex=Fh;exports.createConfig=CK;exports.formatProblems=CXe;exports.getDefaultExportFromCjs=ii;exports.getTotals=$K;exports.invoke=oi;exports.isAbsolute=Cve;exports.isBrowser=Zn;exports.isPlainObject=ht;exports.join=Ih;exports.lint=EXe;exports.md5=ox;exports.pathBrowserifyExports=It;exports.requireDist=t_;exports.requireFastDeepEqual=Xd;exports.requireJsonSchemaTraverse=e_;exports.requireReactIs=nZ;exports.resolve=wve;exports.sep=Z9;exports.sha256=W5;exports.tty=X7;
|