@redocly/replay 0.18.0-next.1 → 0.18.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/oauth2-redirect.d.ts +0 -10
- package/dist/{replay-index-D-GwImOJ.js → replay-index-C5RFKL30.js} +72 -6
- package/dist/{replay-index-DPVVIR4i.js → replay-index-CcSQr1lX.js} +1 -1
- package/dist/{replay-index-y3pvXgBP.js → replay-index-DWsTFLqj.js} +1 -1
- package/dist/{replay-index-DM4kGyuL.js → replay-index-Dmx2baN3.js} +3561 -3519
- package/dist/{replay-index-hXC9mqMj.js → replay-index-HXp30geC.js} +7 -7
- package/dist/replay-index-noFNoVUf.js +134 -0
- package/dist/{replay-tauri-path-sMFxMpbK.js → replay-tauri-path-o2Kra6WZ.js} +1 -1
- package/dist/{replay-tauri-path-CturJpPH.js → replay-tauri-path-tgSuA8pV.js} +2 -2
- package/dist/replay.cjs +1 -1
- package/dist/replay.d.ts +0 -10
- package/dist/replay.js +1 -1
- package/package.json +6 -6
- package/dist/replay-index-CfH4WmU1.js +0 -134
|
@@ -241,7 +241,7 @@ $3`);return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}}function gme(t){return t.
|
|
|
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
243
|
`+t.slice(s+1):l+=t.slice(i),l.slice(1)}function tve(t){for(var e="",r=0,n,i=0;i<t.length;r>=65536?i+=2:i++)r=fh(t,i),n=Sn[r],!n&&vp(r)?(e+=t[i],r>=65536&&(e+=t[i+1])):e+=n||Uye(r);return e}function rve(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)),(ra(t,e,a,!1,!1)||typeof a>"u"&&ra(t,e,null,!1,!1))&&(n!==""&&(n+=","+(t.condenseFlow?"":" ")),n+=t.dump);t.tag=i,t.dump="["+n+"]"}function WM(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)),(ra(t,e+1,l,!0,!0,!1,!0)||typeof l>"u"&&ra(t,e+1,null,!0,!0,!1,!0))&&((!n||i!=="")&&(i+=E$(t,e)),t.dump&&gp===t.dump.charCodeAt(0)?i+="-":i+="- ",i+=t.dump);t.tag=o,t.dump=i||"[]"}function nve(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)),ra(t,e,l,!1,!1)&&(t.dump.length>1024&&(u+="? "),u+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),ra(t,e,c,!1,!1)&&(u+=t.dump,n+=u));t.tag=i,t.dump="{"+n+"}"}function ive(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 Rn("sortKeys must be a boolean or a function");for(a=0,l=s.length;a<l;a+=1)f="",(!n||i!=="")&&(f+=E$(t,e)),c=s[a],u=r[c],t.replacer&&(u=t.replacer.call(r,c,u)),ra(t,e+1,c,!0,!0,!0)&&(d=t.tag!==null&&t.tag!=="?"||t.dump&&t.dump.length>1024,d&&(t.dump&&gp===t.dump.charCodeAt(0)?f+="?":f+="? "),f+=t.dump,d&&(f+=E$(t,e)),ra(t,e+1,u,!0,d)&&(t.dump&&gp===t.dump.charCodeAt(0)?f+=":":f+=": ",f+=t.dump,i+=f));t.tag=o,t.dump=i||"{}"}function UM(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,V9.call(a.represent)==="[object Function]")n=a.represent(e,l);else if(z9.call(a.represent,l))n=a.represent[l](e,l);else throw new Rn("!<"+a.tag+'> tag resolver accepts not "'+l+'" style');t.dump=n}return!0}return!1}function ra(t,e,r,n,i,o,s){t.tag=null,t.dump=r,UM(t,r,!1)||UM(t,r,!0);var a=V9.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?(ive(t,e,t.dump,i),f&&(t.dump="&ref_"+d+t.dump)):(nve(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?WM(t,e-1,t.dump,i):WM(t,e,t.dump,i),f&&(t.dump="&ref_"+d+t.dump)):(rve(t,e,t.dump),f&&(t.dump="&ref_"+d+" "+t.dump));else if(a==="[object String]")t.tag!=="?"&&Kye(t,t.dump,e,o,l);else{if(a==="[object Undefined]")return!1;if(t.skipInvalid)return!1;throw new Rn("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 ove(t,e){var r=[],n=[],i,o;for(I$(t,r,n),i=0,o=n.length;i<o;i+=1)e.duplicates.push(r[n[i]]);e.usedDuplicates=new Array(o)}function I$(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)I$(t[i],e,r);else for(n=Object.keys(t),i=0,o=n.length;i<o;i+=1)I$(t[n[i]],e,r)}function sve(t,e){e=e||{};var r=new Zye(e);r.noRefs||ove(t,r);var n=t;return r.replacer&&(n=r.replacer.call({"":n},"",n)),ra(r,0,n,!0,!0)?r.dump+`
|
|
244
|
-
`:""}var ave=sve,lve={dump:ave};function vI(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 cve=on,uve=f9,dve=g9,H9=x9,fve=w9,hve=pI,J9=Q9.load,pve=Q9.loadAll,K9=lve.dump,mve=Rn,hu={binary:$9,float:O9,map:m9,null:y9,pairs:A9,set:I9,timestamp:P9,bool:v9,int:b9,merge:k9,omap:E9,seq:p9,str:h9},gve=vI("safeLoad","load"),yve=vI("safeLoadAll","loadAll"),vve=vI("safeDump","dump"),il={Type:cve,Schema:uve,FAILSAFE_SCHEMA:dve,JSON_SCHEMA:H9,CORE_SCHEMA:fve,DEFAULT_SCHEMA:hve,load:J9,loadAll:pve,dump:K9,YAMLException:mve,types:hu,safeLoad:gve,safeLoadAll:yve,safeDump:vve};class XM{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 ai(t,e={},r){return window.__TAURI_INTERNALS__.invoke(t,e,r)}var WO;(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"})(WO||(WO={}));async function bve(){return ai("plugin:path|resolve_directory",{directory:WO.AppData})}async function Ove(){return ai("plugin:path|resolve_directory",{directory:WO.Desktop})}function eZ(){return window.__TAURI_INTERNALS__.plugins.path.sep}async function xve(...t){return ai("plugin:path|resolve",{paths:t})}async function jh(...t){return ai("plugin:path|join",{paths:t})}async function tZ(t,e){return ai("plugin:path|basename",{path:t,ext:e})}async function wve(t){return ai("plugin:path|is_absolute",{path:t})}var ZM;(function(t){t[t.Start=0]="Start",t[t.Current=1]="Current",t[t.End=2]="End"})(ZM||(ZM={}));async function GM(t,e){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");await ai("plugin:fs|mkdir",{path:t instanceof URL?t.toString():t,options:e})}async function rZ(t,e){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");return await ai("plugin:fs|read_dir",{path:t instanceof URL?t.toString():t,options:e})}async function Sve(t,e){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");const r=await ai("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 bI(t,e){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");return await ai("plugin:fs|read_text_file",{path:t instanceof URL?t.toString():t,options:e})}async function Cve(t,e){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");await ai("plugin:fs|remove",{path:t instanceof URL?t.toString():t,options:e})}async function Pve(t,e,r){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");await ai("plugin:fs|write_text_file",{path:t instanceof URL?t.toString():t,data:e,options:r})}async function nZ(t,e){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");return await ai("plugin:fs|exists",{path:t instanceof URL?t.toString():t,options:e})}function qd(){return!!(window!=null&&window.__TAURI__)}const Bo=class Bo{static async getUtils(){return Bo.utils||(Bo.utils=qd()?await Promise.resolve().then(()=>require("./replay-tauri-path-
|
|
244
|
+
`:""}var ave=sve,lve={dump:ave};function vI(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 cve=on,uve=f9,dve=g9,H9=x9,fve=w9,hve=pI,J9=Q9.load,pve=Q9.loadAll,K9=lve.dump,mve=Rn,hu={binary:$9,float:O9,map:m9,null:y9,pairs:A9,set:I9,timestamp:P9,bool:v9,int:b9,merge:k9,omap:E9,seq:p9,str:h9},gve=vI("safeLoad","load"),yve=vI("safeLoadAll","loadAll"),vve=vI("safeDump","dump"),il={Type:cve,Schema:uve,FAILSAFE_SCHEMA:dve,JSON_SCHEMA:H9,CORE_SCHEMA:fve,DEFAULT_SCHEMA:hve,load:J9,loadAll:pve,dump:K9,YAMLException:mve,types:hu,safeLoad:gve,safeLoadAll:yve,safeDump:vve};class XM{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 ai(t,e={},r){return window.__TAURI_INTERNALS__.invoke(t,e,r)}var WO;(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"})(WO||(WO={}));async function bve(){return ai("plugin:path|resolve_directory",{directory:WO.AppData})}async function Ove(){return ai("plugin:path|resolve_directory",{directory:WO.Desktop})}function eZ(){return window.__TAURI_INTERNALS__.plugins.path.sep}async function xve(...t){return ai("plugin:path|resolve",{paths:t})}async function jh(...t){return ai("plugin:path|join",{paths:t})}async function tZ(t,e){return ai("plugin:path|basename",{path:t,ext:e})}async function wve(t){return ai("plugin:path|is_absolute",{path:t})}var ZM;(function(t){t[t.Start=0]="Start",t[t.Current=1]="Current",t[t.End=2]="End"})(ZM||(ZM={}));async function GM(t,e){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");await ai("plugin:fs|mkdir",{path:t instanceof URL?t.toString():t,options:e})}async function rZ(t,e){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");return await ai("plugin:fs|read_dir",{path:t instanceof URL?t.toString():t,options:e})}async function Sve(t,e){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");const r=await ai("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 bI(t,e){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");return await ai("plugin:fs|read_text_file",{path:t instanceof URL?t.toString():t,options:e})}async function Cve(t,e){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");await ai("plugin:fs|remove",{path:t instanceof URL?t.toString():t,options:e})}async function Pve(t,e,r){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");await ai("plugin:fs|write_text_file",{path:t instanceof URL?t.toString():t,data:e,options:r})}async function nZ(t,e){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");return await ai("plugin:fs|exists",{path:t instanceof URL?t.toString():t,options:e})}function qd(){return!!(window!=null&&window.__TAURI__)}const Bo=class Bo{static async getUtils(){return Bo.utils||(Bo.utils=qd()?await Promise.resolve().then(()=>require("./replay-tauri-path-o2Kra6WZ.js")):await Promise.resolve().then(()=>zNe)),Bo.utils}static async join(...e){return(await Bo.getUtils()).join(...e)}static async resolve(e){return(await Bo.getUtils()).resolve(e)}static async isAbsolute(e){return(await Bo.getUtils()).isAbsolute(e)}static async relative(e,r){return(await Bo.getUtils()).relative(e,r)}};xe(Bo,"utils",null);let wi=Bo;class YM{constructor(e){this.baseDir=e,this.initializeDirectory(e)}async initializeDirectory(e){await GM(e,{recursive:!0})}async ls(e){const r=await this.getFullPath(e);return this.getDirEntryFilesRecursively(r)}async getDirEntryFilesRecursively(e){try{const r=[],n=await rZ(e);for(const i of n)if(i.isDirectory){const o=await jh(e,i.name),s=await this.getDirEntryFilesRecursively(o);r.push(...s)}else{const o=await jh(e,i.name),s=await wi.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 bI(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=eZ(),o=n.split(i).slice(0,-1).join(i);await GM(o,{recursive:!0}),await Pve(n,r)}async remove(e){const r=await this.getFullPath(e);try{await Cve(r)}catch(n){!n.includes("No such file or directory")&&!n.includes("forbidden path")&&console.error(n)}}async getFullPath(e){return await jh(this.baseDir,e??"")}}class kve{constructor(){xe(this,"baseDir","")}async ls(e=""){return[]}async get(e){return null}async set(e,r){}async remove(e){}}class $ve{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=il.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",il.dump(i))}}var p1,HM;function Eve(){if(HM)return p1;HM=1;var t=Object.prototype.hasOwnProperty,e=Object.prototype.toString;return p1=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)},p1}var m1,JM;function Ave(){if(JM)return m1;JM=1;var t=Eve();m1=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("/")},m1}var Ive=Ave();const OI=si(Ive);async function Hp(t){try{const e=await Sve(t),r=await tZ(t);return{absolutePath:t,file:new File([e],r)}}catch(e){return console.error("Failed to init replay file",e),null}}async function iZ(t){return(await Promise.allSettled(t.map(r=>Hp(r)))).map(r=>r.status==="fulfilled"?r.value:null).filter(r=>r!==null)}function oZ(t,e,r){for(const n of r){const i=KM(t,n),o=KM(e,n);if(typeof i=="object"&&typeof o=="object"){if(!oZ(i,o,r))return!1}else if(i!==o)return!1}return!0}function KM(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 g1={exports:{}};/*!
|
|
245
245
|
Copyright (c) 2018 Jed Watson.
|
|
246
246
|
Licensed under the MIT License (MIT), see
|
|
247
247
|
http://jedwatson.github.io/classnames
|
|
@@ -346,7 +346,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
346
346
|
align-self: flex-end;
|
|
347
347
|
padding-top: var(--spacing-xxs);
|
|
348
348
|
gap: var(--spacing-xs);
|
|
349
|
-
`;function Kp({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 g.jsx(WZ,{variable:t,onSave:s,onCancel:r,...n,children:g.jsx(Sp,{children:g.jsx(AOe,{value:i,onChange:a=>o(a),title:"Make it secret"})})})}function mb(t){var e=new Error(t);return e.source="ulid",e}var AI="0123456789ABCDEFGHJKMNPQRSTVWXYZ",Dh=AI.length,EN=Math.pow(2,48)-1,MOe=10,NOe=16;function LOe(t){var e=Math.floor(t()*Dh);return e===Dh&&(e=Dh-1),AI.charAt(e)}function QOe(t,e){if(isNaN(t))throw new Error(t+" must be a number");if(t>EN)throw mb("cannot encode time greater than "+EN);if(t<0)throw mb("time must be positive");if(Number.isInteger(t)===!1)throw mb("time must be an integer");for(var r=void 0,n="";e>0;e--)r=t%Dh,n=AI.charAt(r)+n,t=(t-r)/Dh;return n}function VOe(t,e){for(var r="";t>0;t--)r=LOe(e)+r;return r}function zOe(){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 mb("secure crypto unusable, insecure Math.random not allowed")}function BOe(t){return t||(t=zOe()),function(r){return isNaN(r)&&(r=Date.now()),QOe(r,MOe)+VOe(NOe,t)}}var JO=BOe(),qOe=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof global=="object"?global:{},Wl="1.9.0",AN=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;function FOe(t){var e=new Set([t]),r=new Set,n=t.match(AN);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(AN);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 WOe=FOe(Wl),UOe=Wl.split(".")[0],Cp=Symbol.for("opentelemetry.js.api."+UOe),Pp=qOe;function em(t,e,r,n){var i;n===void 0&&(n=!1);var o=Pp[Cp]=(i=Pp[Cp])!==null&&i!==void 0?i:{version:Wl};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!==Wl){var s=new Error("@opentelemetry/api: Registration of version v"+o.version+" for "+t+" does not match previously registered API v"+Wl);return r.error(s.stack||s.message),!1}return o[t]=e,r.debug("@opentelemetry/api: Registered a global for "+t+" v"+Wl+"."),!0}function fc(t){var e,r,n=(e=Pp[Cp])===null||e===void 0?void 0:e.version;if(!(!n||!WOe(n)))return(r=Pp[Cp])===null||r===void 0?void 0:r[t]}function tm(t,e){e.debug("@opentelemetry/api: Unregistering a global for "+t+" v"+Wl+".");var r=Pp[Cp];r&&delete r[t]}var XOe=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},ZOe=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))},GOe=(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 Cf("debug",this._namespace,e)},t.prototype.error=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return Cf("error",this._namespace,e)},t.prototype.info=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return Cf("info",this._namespace,e)},t.prototype.warn=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return Cf("warn",this._namespace,e)},t.prototype.verbose=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return Cf("verbose",this._namespace,e)},t})();function Cf(t,e,r){var n=fc("diag");if(n)return r.unshift(e),n[t].apply(n,ZOe([],XOe(r),!1))}var pi;(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"})(pi||(pi={}));function YOe(t,e){t<pi.NONE?t=pi.NONE:t>pi.ALL&&(t=pi.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",pi.ERROR),warn:r("warn",pi.WARN),info:r("info",pi.INFO),debug:r("debug",pi.DEBUG),verbose:r("verbose",pi.VERBOSE)}}var HOe=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},JOe=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))},KOe="diag",ds=(function(){function t(){function e(i){return function(){for(var o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];var a=fc("diag");if(a)return a[i].apply(a,JOe([],HOe(o),!1))}}var r=this,n=function(i,o){var s,a,l;if(o===void 0&&(o={logLevel:pi.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=fc("diag"),d=YOe((a=o.logLevel)!==null&&a!==void 0?a:pi.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 em("diag",d,r,!0)};r.setLogger=n,r.disable=function(){tm(KOe,r)},r.createComponentLogger=function(i){return new GOe(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})(),e0e=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},t0e=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.")},r0e=(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=e0e(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=t0e(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})(),n0e=Symbol("BaggageEntryMetadata"),i0e=ds.instance();function o0e(t){return t===void 0&&(t={}),new r0e(new Map(Object.entries(t)))}function s0e(t){return typeof t!="string"&&(i0e.error("Cannot create baggage metadata from unknown type: "+typeof t),t=""),{__TYPE__:n0e,toString:function(){return t}}}function II(t){return Symbol.for(t)}var a0e=(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})(),pu=new a0e,$c=(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)}})(),l0e=(function(){function t(){}return t.prototype.createGauge=function(e,r){return v0e},t.prototype.createHistogram=function(e,r){return b0e},t.prototype.createCounter=function(e,r){return y0e},t.prototype.createUpDownCounter=function(e,r){return O0e},t.prototype.createObservableGauge=function(e,r){return w0e},t.prototype.createObservableCounter=function(e,r){return x0e},t.prototype.createObservableUpDownCounter=function(e,r){return S0e},t.prototype.addBatchObservableCallback=function(e,r){},t.prototype.removeBatchObservableCallback=function(e){},t})(),qx=(function(){function t(){}return t})(),c0e=(function(t){$c(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.add=function(r,n){},e})(qx),u0e=(function(t){$c(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.add=function(r,n){},e})(qx),d0e=(function(t){$c(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.record=function(r,n){},e})(qx),f0e=(function(t){$c(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.record=function(r,n){},e})(qx),TI=(function(){function t(){}return t.prototype.addCallback=function(e){},t.prototype.removeCallback=function(e){},t})(),h0e=(function(t){$c(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(TI),p0e=(function(t){$c(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(TI),m0e=(function(t){$c(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(TI),g0e=new l0e,y0e=new c0e,v0e=new d0e,b0e=new f0e,O0e=new u0e,x0e=new h0e,w0e=new p0e,S0e=new m0e,C0e={get:function(t,e){if(t!=null)return t[e]},keys:function(t){return t==null?[]:Object.keys(t)}},P0e={set:function(t,e,r){t!=null&&(t[e]=r)}},k0e=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},$0e=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))},E0e=(function(){function t(){}return t.prototype.active=function(){return pu},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,$0e([n],k0e(i),!1))},t.prototype.bind=function(e,r){return r},t.prototype.enable=function(){return this},t.prototype.disable=function(){return this},t})(),A0e=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},I0e=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))},b1="context",T0e=new E0e,Fx=(function(){function t(){}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalContextManager=function(e){return em(b1,e,ds.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,I0e([e,r,n],A0e(o),!1))},t.prototype.bind=function(e,r){return this._getContextManager().bind(e,r)},t.prototype._getContextManager=function(){return fc(b1)||T0e},t.prototype.disable=function(){this._getContextManager().disable(),tm(b1,ds.instance())},t})(),na;(function(t){t[t.NONE=0]="NONE",t[t.SAMPLED=1]="SAMPLED"})(na||(na={}));var UZ="0000000000000000",XZ="00000000000000000000000000000000",ZZ={traceId:XZ,spanId:UZ,traceFlags:na.NONE},Mh=(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})(),_I=II("OpenTelemetry Context Key SPAN");function RI(t){return t.getValue(_I)||void 0}function _0e(){return RI(Fx.getInstance().active())}function jI(t,e){return t.setValue(_I,e)}function R0e(t){return t.deleteValue(_I)}function j0e(t,e){return jI(t,new Mh(e))}function GZ(t){var e;return(e=RI(t))===null||e===void 0?void 0:e.spanContext()}var D0e=/^([0-9a-f]{32})$/i,M0e=/^[0-9a-f]{16}$/i;function YZ(t){return D0e.test(t)&&t!==XZ}function N0e(t){return M0e.test(t)&&t!==UZ}function Wx(t){return YZ(t.traceId)&&N0e(t.spanId)}function L0e(t){return new Mh(t)}var O1=Fx.getInstance(),HZ=(function(){function t(){}return t.prototype.startSpan=function(e,r,n){n===void 0&&(n=O1.active());var i=!!(r!=null&&r.root);if(i)return new Mh;var o=n&&GZ(n);return Q0e(o)&&Wx(o)?new Mh(o):new Mh},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??O1.active(),c=this.startSpan(e,o,l),u=jI(l,c);return O1.with(u,a,void 0,c)}},t})();function Q0e(t){return typeof t=="object"&&typeof t.spanId=="string"&&typeof t.traceId=="string"&&typeof t.traceFlags=="number"}var V0e=new HZ,z0e=(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):V0e},t})(),B0e=(function(){function t(){}return t.prototype.getTracer=function(e,r,n){return new HZ},t})(),q0e=new B0e,IN=(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 z0e(this,e,r,n)},t.prototype.getDelegate=function(){var e;return(e=this._delegate)!==null&&e!==void 0?e:q0e},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})(),KO;(function(t){t[t.NOT_RECORD=0]="NOT_RECORD",t[t.RECORD=1]="RECORD",t[t.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(KO||(KO={}));var U$;(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"})(U$||(U$={}));var kp;(function(t){t[t.UNSET=0]="UNSET",t[t.OK=1]="OK",t[t.ERROR=2]="ERROR"})(kp||(kp={}));var co=Fx.getInstance(),jt=ds.instance(),F0e=(function(){function t(){}return t.prototype.getMeter=function(e,r,n){return g0e},t})(),W0e=new F0e,x1="metrics",U0e=(function(){function t(){}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalMeterProvider=function(e){return em(x1,e,ds.instance())},t.prototype.getMeterProvider=function(){return fc(x1)||W0e},t.prototype.getMeter=function(e,r,n){return this.getMeterProvider().getMeter(e,r,n)},t.prototype.disable=function(){tm(x1,ds.instance())},t})(),X0e=U0e.getInstance(),Z0e=(function(){function t(){}return t.prototype.inject=function(e,r){},t.prototype.extract=function(e,r){return e},t.prototype.fields=function(){return[]},t})(),DI=II("OpenTelemetry Baggage Key");function JZ(t){return t.getValue(DI)||void 0}function G0e(){return JZ(Fx.getInstance().active())}function Y0e(t,e){return t.setValue(DI,e)}function H0e(t){return t.deleteValue(DI)}var w1="propagation",J0e=new Z0e,K0e=(function(){function t(){this.createBaggage=o0e,this.getBaggage=JZ,this.getActiveBaggage=G0e,this.setBaggage=Y0e,this.deleteBaggage=H0e}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalPropagator=function(e){return em(w1,e,ds.instance())},t.prototype.inject=function(e,r,n){return n===void 0&&(n=P0e),this._getGlobalPropagator().inject(e,r,n)},t.prototype.extract=function(e,r,n){return n===void 0&&(n=C0e),this._getGlobalPropagator().extract(e,r,n)},t.prototype.fields=function(){return this._getGlobalPropagator().fields()},t.prototype.disable=function(){tm(w1,ds.instance())},t.prototype._getGlobalPropagator=function(){return fc(w1)||J0e},t})(),Nh=K0e.getInstance(),S1="trace",exe=(function(){function t(){this._proxyTracerProvider=new IN,this.wrapSpanContext=L0e,this.isSpanContextValid=Wx,this.deleteSpan=R0e,this.getSpan=RI,this.getActiveSpan=_0e,this.getSpanContext=GZ,this.setSpan=jI,this.setSpanContext=j0e}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalTracerProvider=function(e){var r=em(S1,this._proxyTracerProvider,ds.instance());return r&&this._proxyTracerProvider.setDelegate(e),r},t.prototype.getTracerProvider=function(){return fc(S1)||this._proxyTracerProvider},t.prototype.getTracer=function(e,r){return this.getTracerProvider().getTracer(e,r)},t.prototype.disable=function(){tm(S1,ds.instance()),this._proxyTracerProvider=new IN},t})(),bi=exe.getInstance();const KZ=II("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function txe(t){return t.setValue(KZ,!0)}function MI(t){return t.getValue(KZ)===!0}const rxe="=",X$=";",Z$=",",C1="baggage",nxe=180,ixe=4096,oxe=8192;function sxe(t){return t.reduce((e,r)=>{const n=`${e}${e!==""?Z$:""}${r}`;return n.length>oxe?e:n},"")}function axe(t){return t.getAllEntries().map(([e,r])=>{let n=`${encodeURIComponent(e)}=${encodeURIComponent(r.value)}`;return r.metadata!==void 0&&(n+=X$+r.metadata.toString()),n})}function lxe(t){const e=t.split(X$);if(e.length<=0)return;const r=e.shift();if(!r)return;const n=r.indexOf(rxe);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=s0e(e.join(X$))),{key:i,value:o,metadata:s}}class cxe{inject(e,r,n){const i=Nh.getBaggage(e);if(!i||MI(e))return;const o=axe(i).filter(a=>a.length<=ixe).slice(0,nxe),s=sxe(o);s.length>0&&n.set(r,C1,s)}extract(e,r,n){const i=n.get(r,C1),o=Array.isArray(i)?i.join(Z$):i;if(!o)return e;const s={};return o.length===0||(o.split(Z$).forEach(l=>{const c=lxe(l);if(c){const u={value:c.value};c.metadata&&(u.metadata=c.metadata),s[c.key]=u}}),Object.entries(s).length===0)?e:Nh.setBaggage(e,Nh.createBaggage(s))}fields(){return[C1]}}function gb(t){const e={};if(typeof t!="object"||t==null)return e;for(const[r,n]of Object.entries(t)){if(!uxe(r)){jt.warn(`Invalid attribute key: ${r}`);continue}if(!eG(n)){jt.warn(`Invalid attribute value set for key: ${r}`);continue}Array.isArray(n)?e[r]=n.slice():e[r]=n}return e}function uxe(t){return typeof t=="string"&&t.length>0}function eG(t){return t==null?!0:Array.isArray(t)?dxe(t):tG(t)}function dxe(t){let e;for(const r of t)if(r!=null){if(!e){if(tG(r)){e=typeof r;continue}return!1}if(typeof r!==e)return!1}return!0}function tG(t){switch(typeof t){case"number":case"boolean":case"string":return!0}return!1}function fxe(){return t=>{jt.error(hxe(t))}}function hxe(t){return typeof t=="string"?t:JSON.stringify(pxe(t))}function pxe(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 mxe=fxe();function wd(t){try{mxe(t)}catch{}}const Bu=performance,gxe="2.0.1",P1="exception.message",yxe="exception.stacktrace",k1="exception.type",rG="service.name",vxe="service.version",G$="telemetry.sdk.language",bxe="webjs",Y$="telemetry.sdk.name",H$="telemetry.sdk.version",Oxe="process.runtime.name",$1={[Y$]:"opentelemetry",[Oxe]:"browser",[G$]:bxe,[H$]:gxe};const xxe=9,wxe=6,Sxe=Math.pow(10,wxe),e0=Math.pow(10,xxe);function Eu(t){const e=t/1e3,r=Math.trunc(e),n=Math.round(t%1e3*Sxe);return[r,n]}function nG(){let t=Bu.timeOrigin;if(typeof t!="number"){const e=Bu;t=e.timing&&e.timing.fetchStart}return t}function Cxe(t){const e=Eu(nG()),r=Eu(typeof t=="number"?t:Bu.now());return oG(e,r)}function Pxe(t,e){let r=e[0]-t[0],n=e[1]-t[1];return n<0&&(r-=1,n+=e0),[r,n]}function kxe(t){return t[0]*e0+t[1]}function iG(t){return Array.isArray(t)&&t.length===2&&typeof t[0]=="number"&&typeof t[1]=="number"}function TN(t){return iG(t)||typeof t=="number"||t instanceof Date}function oG(t,e){const r=[t[0]+e[0],t[1]+e[1]];return r[1]>=e0&&(r[1]-=e0,r[0]+=1),r}var qo;(function(t){t[t.SUCCESS=0]="SUCCESS",t[t.FAILED=1]="FAILED"})(qo||(qo={}));class $xe{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 J$="[_0-9a-z-*/]",Exe=`[a-z]${J$}{0,255}`,Axe=`[a-z0-9]${J$}{0,240}@[a-z]${J$}{0,13}`,Ixe=new RegExp(`^(?:${Exe}|${Axe})$`),Txe=/^[ -~]{0,255}[!-~]$/,_xe=/,|=/;function Rxe(t){return Ixe.test(t)}function jxe(t){return Txe.test(t)&&!_xe.test(t)}const _N=32,Dxe=512,RN=",",jN="=";class NI{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+jN+this.get(r)),e),[]).join(RN)}_parse(e){e.length>Dxe||(this._internalState=e.split(RN).reverse().reduce((r,n)=>{const i=n.trim(),o=i.indexOf(jN);if(o!==-1){const s=i.slice(0,o),a=i.slice(o+1,n.length);Rxe(s)&&jxe(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 NI;return e._internalState=new Map(this._internalState),e}}const E1="traceparent",A1="tracestate",Mxe="00",Nxe="(?!ff)[\\da-f]{2}",Lxe="(?![0]{32})[\\da-f]{32}",Qxe="(?![0]{16})[\\da-f]{16}",Vxe="[\\da-f]{2}",zxe=new RegExp(`^\\s?(${Nxe})-(${Lxe})-(${Qxe})-(${Vxe})(-.*)?\\s?$`);function Bxe(t){const e=zxe.exec(t);return!e||e[1]==="00"&&e[5]?null:{traceId:e[2],spanId:e[3],traceFlags:parseInt(e[4],16)}}class qxe{inject(e,r,n){const i=bi.getSpanContext(e);if(!i||MI(e)||!Wx(i))return;const o=`${Mxe}-${i.traceId}-${i.spanId}-0${Number(i.traceFlags||na.NONE).toString(16)}`;n.set(r,E1,o),i.traceState&&n.set(r,A1,i.traceState.serialize())}extract(e,r,n){const i=n.get(r,E1);if(!i)return e;const o=Array.isArray(i)?i[0]:i;if(typeof o!="string")return e;const s=Bxe(o);if(!s)return e;s.isRemote=!0;const a=n.get(r,A1);if(a){const l=Array.isArray(a)?a.join(","):a;s.traceState=new NI(typeof l=="string"?l:void 0)}return bi.setSpanContext(e,s)}fields(){return[E1,A1]}}const Fxe="[object Object]",Wxe="[object Null]",Uxe="[object Undefined]",Xxe=Function.prototype,sG=Xxe.toString,Zxe=sG.call(Object),Gxe=Object.getPrototypeOf,aG=Object.prototype,lG=aG.hasOwnProperty,Nl=Symbol?Symbol.toStringTag:void 0,cG=aG.toString;function DN(t){if(!Yxe(t)||Hxe(t)!==Fxe)return!1;const e=Gxe(t);if(e===null)return!0;const r=lG.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&sG.call(r)===Zxe}function Yxe(t){return t!=null&&typeof t=="object"}function Hxe(t){return t==null?t===void 0?Uxe:Wxe:Nl&&Nl in Object(t)?Jxe(t):Kxe(t)}function Jxe(t){const e=lG.call(t,Nl),r=t[Nl];let n=!1;try{t[Nl]=void 0,n=!0}catch{}const i=cG.call(t);return n&&(e?t[Nl]=r:delete t[Nl]),i}function Kxe(t){return cG.call(t)}const ewe=20;function twe(...t){let e=t.shift();const r=new WeakMap;for(;t.length>0;)e=uG(e,t.shift(),0,r);return e}function I1(t){return t0(t)?t.slice():t}function uG(t,e,r=0,n){let i;if(!(r>ewe)){if(r++,yb(t)||yb(e)||dG(e))i=I1(e);else if(t0(t)){if(i=t.slice(),t0(e))for(let o=0,s=e.length;o<s;o++)i.push(I1(e[o]));else if(Pf(e)){const o=Object.keys(e);for(let s=0,a=o.length;s<a;s++){const l=o[s];i[l]=I1(e[l])}}}else if(Pf(t))if(Pf(e)){if(!rwe(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(yb(c))typeof c>"u"?delete i[l]:i[l]=c;else{const u=i[l],d=c;if(MN(t,l,n)||MN(e,l,n))delete i[l];else{if(Pf(u)&&Pf(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]=uG(i[l],c,r,n)}}}}else i=e;return i}}function MN(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 t0(t){return Array.isArray(t)}function dG(t){return typeof t=="function"}function Pf(t){return!yb(t)&&!t0(t)&&!dG(t)&&typeof t=="object"}function yb(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t>"u"||t instanceof Date||t instanceof RegExp||t===null}function rwe(t,e){return!(!DN(t)||!DN(e))}class nwe{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 iwe{constructor(e,r){xe(this,"_callback");xe(this,"_that");xe(this,"_isCalled",!1);xe(this,"_deferred",new nwe);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 owe(){return"unknown_service"}const hh=t=>t!==null&&typeof t=="object"&&typeof t.then=="function";class r0{constructor(e){xe(this,"_rawAttributes");xe(this,"_asyncAttributesPending",!1);xe(this,"_memoizedAttributes");const r=e.attributes??{};this._rawAttributes=Object.entries(r).map(([n,i])=>(hh(i)&&(this._asyncAttributesPending=!0),[n,i])),this._rawAttributes=NN(this._rawAttributes)}static FromAttributeList(e){const r=new r0({});return r._rawAttributes=NN(e),r._asyncAttributesPending=e.filter(([n,i])=>hh(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,hh(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(hh(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:r0.FromAttributeList([...e.getRawAttributes(),...this.getRawAttributes()])}}function fG(t){return r0.FromAttributeList(Object.entries(t))}function swe(){return fG({[rG]:owe(),[G$]:$1[G$],[Y$]:$1[Y$],[H$]:$1[H$]})}function NN(t){return t.map(([e,r])=>hh(r)?[e,r.catch(n=>{jt.debug("promise rejection for resource attribute: %s - %s",e,n)})]:[e,r])}const awe="exception";class lwe{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:kp.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=Bu.now(),this._performanceOffset=r-(this._performanceStartTime+nG()),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(!eG(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++),TN(r)&&(TN(n)||(n=r),r=void 0);const o=gb(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=Pxe(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<=Bu.now())return Cxe(e+this._performanceOffset);if(typeof e=="number")return Eu(e);if(e instanceof Date)return Eu(e.getTime());if(iG(e))return e;if(this._startTimeProvided)return Eu(Date.now());const r=Bu.now()-this._performanceStartTime;return oG(this.startTime,Eu(r))}isRecording(){return this._ended===!1}recordException(e,r){const n={};typeof e=="string"?n[P1]=e:e&&(e.code?n[k1]=e.code.toString():e.name&&(n[k1]=e.name),e.message&&(n[P1]=e.message),e.stack&&(n[yxe]=e.stack)),n[k1]||n[P1]?this.addEvent(awe,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 Sd;(function(t){t[t.NOT_RECORD=0]="NOT_RECORD",t[t.RECORD=1]="RECORD",t[t.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(Sd||(Sd={}));class n0{shouldSample(){return{decision:Sd.NOT_RECORD}}toString(){return"AlwaysOffSampler"}}class qu{shouldSample(){return{decision:Sd.RECORD_AND_SAMPLED}}toString(){return"AlwaysOnSampler"}}class Ag{constructor(e){xe(this,"_root");xe(this,"_remoteParentSampled");xe(this,"_remoteParentNotSampled");xe(this,"_localParentSampled");xe(this,"_localParentNotSampled");this._root=e.root,this._root||(wd(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new qu),this._remoteParentSampled=e.remoteParentSampled??new qu,this._remoteParentNotSampled=e.remoteParentNotSampled??new n0,this._localParentSampled=e.localParentSampled??new qu,this._localParentNotSampled=e.localParentNotSampled??new n0}shouldSample(e,r,n,i,o,s){const a=bi.getSpanContext(e);return!a||!Wx(a)?this._root.shouldSample(e,r,n,i,o,s):a.isRemote?a.traceFlags&na.SAMPLED?this._remoteParentSampled.shouldSample(e,r,n,i,o,s):this._remoteParentNotSampled.shouldSample(e,r,n,i,o,s):a.traceFlags&na.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 LN{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:YZ(r)&&this._accumulate(r)<this._upperBound?Sd.RECORD_AND_SAMPLED:Sd.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 QN=1;function hG(){return{sampler:pG(),forceFlushTimeoutMillis:3e4,generalLimits:{attributeValueLengthLimit:1/0,attributeCountLimit:128},spanLimits:{attributeValueLengthLimit:1/0,attributeCountLimit:128,linkCountLimit:128,eventCountLimit:128,attributePerEventCountLimit:128,attributePerLinkCountLimit:128}}}function pG(){const t="parentbased_always_on";switch(t){case"always_on":return new qu;case"always_off":return new n0;case"parentbased_always_on":return new Ag({root:new qu});case"parentbased_always_off":return new Ag({root:new n0});case"traceidratio":return new LN(VN());case"parentbased_traceidratio":return new Ag({root:new LN(VN())});default:return jt.error(`OTEL_TRACES_SAMPLER value "${t}" invalid, defaulting to "parentbased_always_on".`),new Ag({root:new qu})}}function VN(){return jt.error(`OTEL_TRACES_SAMPLER_ARG is blank, defaulting to ${QN}.`),QN}const cwe=128,uwe=1/0;function dwe(t){const e={sampler:pG()},r=hG(),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 fwe(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??cwe,e.attributeValueLengthLimit=((i=t.spanLimits)==null?void 0:i.attributeValueLengthLimit)??((o=t.generalLimits)==null?void 0:o.attributeValueLengthLimit)??void 0??void 0??uwe,Object.assign({},t,{spanLimits:e})}class hwe{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 iwe(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&na.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);co.with(txe(co.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===qo.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=>{wd(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,wd(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 pwe extends hwe{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=>{wd(n)})},this._pageHideListener=()=>{this.forceFlush().catch(n=>{wd(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 mwe=8,gwe=16;class ywe{constructor(){xe(this,"generateTraceId",zN(gwe));xe(this,"generateSpanId",zN(mwe))}}const Ig=Array(32);function zN(t){return function(){for(let r=0;r<t*2;r++)Ig[r]=Math.floor(Math.random()*16)+48,Ig[r]>=58&&(Ig[r]+=39);return String.fromCharCode.apply(null,Ig.slice(0,t*2))}}class vwe{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=dwe(r);this._sampler=o.sampler,this._generalLimits=o.generalLimits,this._spanLimits=o.spanLimits,this._idGenerator=r.idGenerator||new ywe,this._resource=n,this._spanProcessor=i,this.instrumentationScope=e}startSpan(e,r={},n=co.active()){r.root&&(n=bi.deleteSpan(n));const i=bi.getSpan(n);if(MI(n))return jt.debug("Instrumentation suppressed, returning Noop Span"),bi.wrapSpanContext(ZZ);const o=i==null?void 0:i.spanContext(),s=this._idGenerator.generateSpanId();let a,l,c;!o||!bi.isSpanContextValid(o)?l=this._idGenerator.generateTraceId():(l=o.traceId,c=o.traceState,a=o);const u=r.kind??U$.INTERNAL,d=(r.links??[]).map(b=>({context:b.context,attributes:gb(b.attributes)})),f=gb(r.attributes),h=this._sampler.shouldSample(n,l,e,u,f,d);c=h.traceState??c;const m=h.decision===KO.RECORD_AND_SAMPLED?na.SAMPLED:na.NONE,p={traceId:l,spanId:s,traceFlags:m,traceState:c};if(h.decision===KO.NOT_RECORD)return jt.debug("Recording is off, propagating context in a non-recording span"),bi.wrapSpanContext(p);const y=gb(Object.assign(f,h.attributes));return new lwe({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??co.active(),c=this.startSpan(e,o,l),u=bi.setSpan(l,c);return co.with(u,a,void 0,c)}getGeneralLimits(){return this._generalLimits}getSpanLimits(){return this._spanLimits}}class bwe{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=>{wd(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 Ll;(function(t){t[t.resolved=0]="resolved",t[t.timeout=1]="timeout",t[t.error=2]="error",t[t.unresolved=3]="unresolved"})(Ll||(Ll={}));class Owe{constructor(e={}){xe(this,"_config");xe(this,"_tracers",new Map);xe(this,"_resource");xe(this,"_activeSpanProcessor");var i;const r=twe({},hG(),fwe(e));this._resource=r.resource??swe(),this._config=Object.assign({},r,{resource:this._resource});const n=[];(i=e.spanProcessors)!=null&&i.length&&n.push(...e.spanProcessors),this._activeSpanProcessor=new bwe(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 vwe({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=Ll.timeout},e);n.forceFlush().then(()=>{clearTimeout(s),o!==Ll.timeout&&(o=Ll.resolved,i(o))}).catch(a=>{clearTimeout(s),o=Ll.error,i(a)})}));return new Promise((n,i)=>{Promise.all(r).then(o=>{const s=o.filter(a=>a!==Ll.resolved);s.length>0?i(s):n()}).catch(o=>i([o]))})}shutdown(){return this._activeSpanProcessor.shutdown()}}class xwe{constructor(){xe(this,"_enabled",!1);xe(this,"_currentContext",pu)}_bindFunction(e=pu,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=pu,this._enabled=!1,this}enable(){return this._enabled?this:(this._enabled=!0,this._currentContext=pu,this)}with(e,r,n,...i){const o=this._currentContext;this._currentContext=e||pu;try{return r.call(n,...i)}finally{this._currentContext=o}}}function wwe(t){if(t!==null){if(t===void 0){const e=new xwe;e.enable(),co.setGlobalContextManager(e);return}t.enable(),co.setGlobalContextManager(t)}}function Swe(t){if(t!==null){if(t===void 0){Nh.setGlobalPropagator(new $xe({propagators:[new qxe,new cxe]}));return}Nh.setGlobalPropagator(t)}}class Cwe extends Owe{constructor(e={}){super(e)}register(e={}){bi.setGlobalTracerProvider(this),Swe(e.propagator),wwe(e.contextManager)}}class Pwe{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 BN 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 kwe(t){if(Number.isFinite(t)&&t>0)return t;throw new Error(`Configuration: timeoutMillis is invalid, expected number greater than 0 (actual: '${t}')`)}function $we(t){if(t!=null)return()=>t}function Ewe(t,e,r){return{timeoutMillis:kwe(t.timeoutMillis??e.timeoutMillis??r.timeoutMillis),concurrencyLimit:t.concurrencyLimit??e.concurrencyLimit??r.concurrencyLimit,compression:t.compression??e.compression??r.compression}}function Awe(){return{timeoutMillis:1e4,concurrencyLimit:30,compression:"none"}}class Iwe{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 Twe(t){return new Iwe(t.concurrencyLimit)}function _we(t){return Object.prototype.hasOwnProperty.call(t,"partialSuccess")}function Rwe(){return{handleResponse(t){t==null||!_we(t)||t.partialSuccess==null||Object.keys(t.partialSuccess).length===0||jt.warn("Received Partial Success response:",JSON.stringify(t.partialSuccess))}}}class jwe{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:qo.FAILED,error:new Error("Concurrent export limit reached")});return}const n=this._serializer.serializeRequest(e);if(n==null){r({code:qo.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:qo.SUCCESS});return}else if(i.status==="failure"&&i.error){r({code:qo.FAILED,error:i.error});return}else i.status==="retryable"?r({code:qo.FAILED,error:new BN("Export failed with retryable status")}):r({code:qo.FAILED,error:new BN("Export failed with unknown error")})},i=>r({code:qo.FAILED,error:i})))}forceFlush(){return this._promiseQueue.awaitAll()}async shutdown(){this._diagLogger.debug("shutdown started"),await this.forceFlush(),this._transport.shutdown()}}function Dwe(t,e){return new jwe(t.transport,t.serializer,Rwe(),t.promiseHandler,e.timeout)}function mG(t,e,r){return Dwe({transport:r,serializer:e,promiseHandler:Twe(t)},{timeout:t.timeoutMillis})}function qN(t){return t>=48&&t<=57?t-48:t>=97&&t<=102?t-87:t-55}function gG(t){const e=new Uint8Array(t.length/2);let r=0;for(let n=0;n<t.length;n+=2){const i=qN(t.charCodeAt(n)),o=qN(t.charCodeAt(n+1));e[r++]=i<<4|o}return e}function yG(t){const e=BigInt(1e9);return BigInt(t[0])*e+BigInt(t[1])}function Mwe(t){const e=Number(BigInt.asUintN(32,t)),r=Number(BigInt.asUintN(32,t>>BigInt(32)));return{low:e,high:r}}function Nwe(t){const e=yG(t);return Mwe(e)}function Lwe(t){return yG(t).toString()}const Qwe=typeof BigInt<"u"?Lwe:kxe;function FN(t){return t}function Vwe(t){if(t!==void 0)return gG(t)}const zwe={encodeHrTime:Nwe,encodeSpanContext:gG,encodeOptionalSpanContext:Vwe};function Bwe(t){return t===void 0?zwe:{encodeHrTime:Qwe,encodeSpanContext:FN,encodeOptionalSpanContext:FN}}function qwe(t){return{attributes:Ux(t.attributes),droppedAttributesCount:0}}function Fwe(t){return{name:t.name,version:t.version}}function Ux(t){return Object.keys(t).map(e=>vG(e,t[e]))}function vG(t,e){return{key:t,value:bG(e)}}function bG(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(bG)}}:e==="object"&&t!=null?{kvlistValue:{values:Object.entries(t).map(([r,n])=>vG(r,n))}}:{}}function Wwe(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:Ux(t.attributes),droppedAttributesCount:t.droppedAttributesCount,events:t.events.map(l=>Xwe(l,e)),droppedEventsCount:t.droppedEventsCount,status:{code:n.code,message:n.message},links:t.links.map(l=>Uwe(l,e)),droppedLinksCount:t.droppedLinksCount}}function Uwe(t,e){var r;return{attributes:t.attributes?Ux(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 Xwe(t,e){return{attributes:t.attributes?Ux(t.attributes):[],name:t.name,timeUnixNano:e.encodeHrTime(t.time),droppedAttributesCount:t.droppedAttributesCount||0}}function Zwe(t,e){const r=Bwe(e);return{resourceSpans:Ywe(t,r)}}function Gwe(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 Ywe(t,e){const r=Gwe(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(m=>Wwe(m,e));l.push({scope:Fwe(f[0].instrumentationScope),spans:h,schemaUrl:f[0].instrumentationScope.schemaUrl})}u=c.next()}const d={resource:qwe(s),scopeSpans:l,schemaUrl:void 0};n.push(d),o=i.next()}return n}const Hwe={serializeRequest:t=>{const e=Zwe(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))}},Jwe=5,Kwe=1e3,eSe=5e3,tSe=1.5,WN=.2;function rSe(){return Math.random()*(2*WN)-WN}class nSe{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=Jwe,s=Kwe;for(;i.status==="retryable"&&o>0;){o--;const a=Math.max(Math.min(s,eSe)+rSe(),0);s=s*tSe;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 OG(t){return new nSe(t.transport)}function iSe(t){return[429,502,503,504].includes(t)}function oSe(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 sSe{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&&iSe(i.status)?n({status:"retryable",retryInMillis:oSe(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 aSe(t){return new sSe(t)}class lSe{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 cSe(t){return new lSe(t)}function uSe(t,e){return mG(t,e,OG({transport:aSe(t)}))}function dSe(t,e){return mG(t,e,OG({transport:cSe({url:t.url,blobType:t.headers()["Content-Type"]})}))}function fSe(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 hSe(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 pSe(t){if(t!=null)try{return new URL(t),t}catch{throw new Error(`Configuration: Could not parse user-provided export URL: '${t}'`)}}function mSe(t,e,r){return{...Ewe(t,e,r),headers:hSe(fSe(t.headers),e.headers,r.headers),url:pSe(t.url)??e.url??r.url,agentOptions:t.agentOptions??e.agentOptions??r.agentOptions}}function gSe(t,e){return{...Awe(),headers:()=>t,url:"http://localhost:4318/"+e,agentOptions:{keepAlive:!0}}}function ySe(t,e,r){return mSe({url:t.url,timeoutMillis:t.timeoutMillis,headers:$we(t.headers),concurrencyLimit:t.concurrencyLimit},{},gSe(r,e))}function vSe(t,e,r,n){const i=!!t.headers||typeof navigator.sendBeacon!="function",o=ySe(t,r,n);return i?uSe(o,e):dSe(o,e)}class bSe extends Pwe{constructor(e={}){super(vSe(e,Hwe,"v1/traces",{"Content-Type":"application/json"}))}}class xG{emit(e){}}const OSe=new xG;class xSe{getLogger(e,r,n){return new xG}}const wG=new xSe;class wSe{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):OSe}}class UN{getLogger(e,r,n){var i;return(i=this.getDelegateLogger(e,r,n))!==null&&i!==void 0?i:new wSe(this,e,r,n)}getDelegate(){var e;return(e=this._delegate)!==null&&e!==void 0?e:wG}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 SSe=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof global=="object"?global:{},Tg=Symbol.for("io.opentelemetry.js.api.logs"),kf=SSe;function CSe(t,e,r){return n=>n===t?e:r}const XN=1;class LI{constructor(){this._proxyLoggerProvider=new UN}static getInstance(){return this._instance||(this._instance=new LI),this._instance}setGlobalLoggerProvider(e){return kf[Tg]?this.getLoggerProvider():(kf[Tg]=CSe(XN,e,wG),this._proxyLoggerProvider.setDelegate(e),e)}getLoggerProvider(){var e,r;return(r=(e=kf[Tg])===null||e===void 0?void 0:e.call(kf,XN))!==null&&r!==void 0?r:this._proxyLoggerProvider}getLogger(e,r,n){return this.getLoggerProvider().getLogger(e,r,n)}disable(){delete kf[Tg],this._proxyLoggerProvider=new UN}}const PSe=LI.getInstance();function kSe(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 $Se(t){t.forEach(e=>e.disable())}function ESe(t){var o;const e=t.tracerProvider||bi.getTracerProvider(),r=t.meterProvider||X0e.getMeterProvider(),n=t.loggerProvider||PSe.getLoggerProvider(),i=((o=t.instrumentations)==null?void 0:o.flat())??[];return kSe(i,e,r,n),()=>{$Se(i)}}class ZN{constructor(e){xe(this,"span");this.span=e}error(e){this.span&&(this.span.setStatus(kp.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(kp.OK),this.span.end())}}class ASe{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":JO(),"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 m=d.notUpdated.find(({object:p})=>p===h);return m?(d.updated=[m,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.",m=`${d.object}.`;Object.entries(d).forEach(([p,y])=>{y!==void 0&&(i[`cloudevents.subjects.${h}${m}${p}`]=y)})}),u.notUpdated.forEach(d=>{const f=`${d.object}.`;Object.entries(d).forEach(([h,m])=>{m!==void 0&&(i[`cloudevents.subjects.${f}${h}`]=m)})})}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=bi.setSpan(co.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},co.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)},co.active()),o=bi.setSpan(co.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 ZN(r)}startRootTrace(e){const r=this.startRootSpan(e);if(r)return{traceApi:new ZN(r),context:r.context}}async forceFlush(){var e;return(e=this.tracerProvider)==null?void 0:e.forceFlush()}}class ISe extends ASe{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_${JO()}`,i=fG({[rG]:r.serviceName,[vxe]:r.serviceVersion,session_id:n}),o=r.collectorTraceUrl||`${r.collectorUrl}/v1/traces`;this.tracerProvider=new Cwe({resource:i,spanProcessors:[new pwe(new bSe({url:o,headers:{}}))]}),this.tracer=this.tracerProvider.getTracer(r.tracerName),this.tracerProvider.register(),ESe({instrumentations:r.instrumentations??[]}),this.initialized=!0}}class TSe{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 ISe,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_${JO()}`,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_${JO()}`,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 _Se(){return{theme:"light",disableCollectionsTab:!1,oAuth2RedirectURI:null,corsProxyUrl:void 0,mockServer:void 0,certificates:[],isApiBased:!1,generatedEnvironments:[],generatedInputs:[]}}const RSe=_Se(),jSe=N.createContext(RSe);function ys(){const t=N.useContext(jSe);return U5(t)}function DSe(t,e){const{apps:{apiId:r}}=Et(),{corsProxyUrl:n,disableCollectionsTab:i,mockServer:o,oAuth2RedirectURI:s,certificates:a,storageKey:l,isApiBased:c}=ys();n.set((t==null?void 0:t.corsProxyUrl)??Zre),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 Xx=N.createContext({});function QI(){return N.useContext(Xx)||{}}const MSe="0.18.0-next.1",NSe={version:MSe};class LSe{constructor(){xe(this,"client");xe(this,"_isInitialized",!1);this.client=new TSe}get isInitialized(){return this._isInitialized}init(e){if(this.isInitialized)return;const n={serviceName:"replay",serviceVersion:NSe.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 T1=new LSe;function vt(){const{telemetry:t}=QI();return T1.isInitialized||T1.init({tracerName:t==null?void 0:t.tracerName,collectorUrl:t==null?void 0:t.collectorUrl}),{sendEvent:(e,r)=>{T1.sendEvent(e,r)}}}const Ln=800;var QSe=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function VSe(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,m=ki(t,QSe),p=N.useState(a!==void 0?a:r),y=Ot(p,2),v=y[0],b=y[1],O=N.useState(l!==void 0?l:i),w=Ot(O,2),x=w[0],S=w[1],P=N.useState(h!==void 0?h:s),I=Ot(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(),S(!0)},[f]),J=N.useCallback(function(){typeof d=="function"&&d(),S(!1)},[d]),te=a!==void 0?a:v,oe=l!==void 0?l:x,ae=h!==void 0?h:E;return $e($e({},m),{},{inputValue:te,menuIsOpen:oe,onChange:V,onInputChange:U,onMenuClose:J,onMenuOpen:X,value:ae})}function zSe(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 BSe(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 qSe=(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(BSe(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:
|
|
349
|
+
`;function Kp({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 g.jsx(WZ,{variable:t,onSave:s,onCancel:r,...n,children:g.jsx(Sp,{children:g.jsx(AOe,{value:i,onChange:a=>o(a),title:"Make it secret"})})})}function mb(t){var e=new Error(t);return e.source="ulid",e}var AI="0123456789ABCDEFGHJKMNPQRSTVWXYZ",Dh=AI.length,EN=Math.pow(2,48)-1,MOe=10,NOe=16;function LOe(t){var e=Math.floor(t()*Dh);return e===Dh&&(e=Dh-1),AI.charAt(e)}function QOe(t,e){if(isNaN(t))throw new Error(t+" must be a number");if(t>EN)throw mb("cannot encode time greater than "+EN);if(t<0)throw mb("time must be positive");if(Number.isInteger(t)===!1)throw mb("time must be an integer");for(var r=void 0,n="";e>0;e--)r=t%Dh,n=AI.charAt(r)+n,t=(t-r)/Dh;return n}function VOe(t,e){for(var r="";t>0;t--)r=LOe(e)+r;return r}function zOe(){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 mb("secure crypto unusable, insecure Math.random not allowed")}function BOe(t){return t||(t=zOe()),function(r){return isNaN(r)&&(r=Date.now()),QOe(r,MOe)+VOe(NOe,t)}}var JO=BOe(),qOe=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof global=="object"?global:{},Wl="1.9.0",AN=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;function FOe(t){var e=new Set([t]),r=new Set,n=t.match(AN);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(AN);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 WOe=FOe(Wl),UOe=Wl.split(".")[0],Cp=Symbol.for("opentelemetry.js.api."+UOe),Pp=qOe;function em(t,e,r,n){var i;n===void 0&&(n=!1);var o=Pp[Cp]=(i=Pp[Cp])!==null&&i!==void 0?i:{version:Wl};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!==Wl){var s=new Error("@opentelemetry/api: Registration of version v"+o.version+" for "+t+" does not match previously registered API v"+Wl);return r.error(s.stack||s.message),!1}return o[t]=e,r.debug("@opentelemetry/api: Registered a global for "+t+" v"+Wl+"."),!0}function fc(t){var e,r,n=(e=Pp[Cp])===null||e===void 0?void 0:e.version;if(!(!n||!WOe(n)))return(r=Pp[Cp])===null||r===void 0?void 0:r[t]}function tm(t,e){e.debug("@opentelemetry/api: Unregistering a global for "+t+" v"+Wl+".");var r=Pp[Cp];r&&delete r[t]}var XOe=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},ZOe=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))},GOe=(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 Cf("debug",this._namespace,e)},t.prototype.error=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return Cf("error",this._namespace,e)},t.prototype.info=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return Cf("info",this._namespace,e)},t.prototype.warn=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return Cf("warn",this._namespace,e)},t.prototype.verbose=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return Cf("verbose",this._namespace,e)},t})();function Cf(t,e,r){var n=fc("diag");if(n)return r.unshift(e),n[t].apply(n,ZOe([],XOe(r),!1))}var pi;(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"})(pi||(pi={}));function YOe(t,e){t<pi.NONE?t=pi.NONE:t>pi.ALL&&(t=pi.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",pi.ERROR),warn:r("warn",pi.WARN),info:r("info",pi.INFO),debug:r("debug",pi.DEBUG),verbose:r("verbose",pi.VERBOSE)}}var HOe=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},JOe=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))},KOe="diag",ds=(function(){function t(){function e(i){return function(){for(var o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];var a=fc("diag");if(a)return a[i].apply(a,JOe([],HOe(o),!1))}}var r=this,n=function(i,o){var s,a,l;if(o===void 0&&(o={logLevel:pi.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=fc("diag"),d=YOe((a=o.logLevel)!==null&&a!==void 0?a:pi.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 em("diag",d,r,!0)};r.setLogger=n,r.disable=function(){tm(KOe,r)},r.createComponentLogger=function(i){return new GOe(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})(),e0e=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},t0e=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.")},r0e=(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=e0e(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=t0e(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})(),n0e=Symbol("BaggageEntryMetadata"),i0e=ds.instance();function o0e(t){return t===void 0&&(t={}),new r0e(new Map(Object.entries(t)))}function s0e(t){return typeof t!="string"&&(i0e.error("Cannot create baggage metadata from unknown type: "+typeof t),t=""),{__TYPE__:n0e,toString:function(){return t}}}function II(t){return Symbol.for(t)}var a0e=(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})(),pu=new a0e,$c=(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)}})(),l0e=(function(){function t(){}return t.prototype.createGauge=function(e,r){return v0e},t.prototype.createHistogram=function(e,r){return b0e},t.prototype.createCounter=function(e,r){return y0e},t.prototype.createUpDownCounter=function(e,r){return O0e},t.prototype.createObservableGauge=function(e,r){return w0e},t.prototype.createObservableCounter=function(e,r){return x0e},t.prototype.createObservableUpDownCounter=function(e,r){return S0e},t.prototype.addBatchObservableCallback=function(e,r){},t.prototype.removeBatchObservableCallback=function(e){},t})(),qx=(function(){function t(){}return t})(),c0e=(function(t){$c(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.add=function(r,n){},e})(qx),u0e=(function(t){$c(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.add=function(r,n){},e})(qx),d0e=(function(t){$c(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.record=function(r,n){},e})(qx),f0e=(function(t){$c(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.record=function(r,n){},e})(qx),TI=(function(){function t(){}return t.prototype.addCallback=function(e){},t.prototype.removeCallback=function(e){},t})(),h0e=(function(t){$c(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(TI),p0e=(function(t){$c(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(TI),m0e=(function(t){$c(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(TI),g0e=new l0e,y0e=new c0e,v0e=new d0e,b0e=new f0e,O0e=new u0e,x0e=new h0e,w0e=new p0e,S0e=new m0e,C0e={get:function(t,e){if(t!=null)return t[e]},keys:function(t){return t==null?[]:Object.keys(t)}},P0e={set:function(t,e,r){t!=null&&(t[e]=r)}},k0e=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},$0e=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))},E0e=(function(){function t(){}return t.prototype.active=function(){return pu},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,$0e([n],k0e(i),!1))},t.prototype.bind=function(e,r){return r},t.prototype.enable=function(){return this},t.prototype.disable=function(){return this},t})(),A0e=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},I0e=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))},b1="context",T0e=new E0e,Fx=(function(){function t(){}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalContextManager=function(e){return em(b1,e,ds.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,I0e([e,r,n],A0e(o),!1))},t.prototype.bind=function(e,r){return this._getContextManager().bind(e,r)},t.prototype._getContextManager=function(){return fc(b1)||T0e},t.prototype.disable=function(){this._getContextManager().disable(),tm(b1,ds.instance())},t})(),na;(function(t){t[t.NONE=0]="NONE",t[t.SAMPLED=1]="SAMPLED"})(na||(na={}));var UZ="0000000000000000",XZ="00000000000000000000000000000000",ZZ={traceId:XZ,spanId:UZ,traceFlags:na.NONE},Mh=(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})(),_I=II("OpenTelemetry Context Key SPAN");function RI(t){return t.getValue(_I)||void 0}function _0e(){return RI(Fx.getInstance().active())}function jI(t,e){return t.setValue(_I,e)}function R0e(t){return t.deleteValue(_I)}function j0e(t,e){return jI(t,new Mh(e))}function GZ(t){var e;return(e=RI(t))===null||e===void 0?void 0:e.spanContext()}var D0e=/^([0-9a-f]{32})$/i,M0e=/^[0-9a-f]{16}$/i;function YZ(t){return D0e.test(t)&&t!==XZ}function N0e(t){return M0e.test(t)&&t!==UZ}function Wx(t){return YZ(t.traceId)&&N0e(t.spanId)}function L0e(t){return new Mh(t)}var O1=Fx.getInstance(),HZ=(function(){function t(){}return t.prototype.startSpan=function(e,r,n){n===void 0&&(n=O1.active());var i=!!(r!=null&&r.root);if(i)return new Mh;var o=n&&GZ(n);return Q0e(o)&&Wx(o)?new Mh(o):new Mh},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??O1.active(),c=this.startSpan(e,o,l),u=jI(l,c);return O1.with(u,a,void 0,c)}},t})();function Q0e(t){return typeof t=="object"&&typeof t.spanId=="string"&&typeof t.traceId=="string"&&typeof t.traceFlags=="number"}var V0e=new HZ,z0e=(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):V0e},t})(),B0e=(function(){function t(){}return t.prototype.getTracer=function(e,r,n){return new HZ},t})(),q0e=new B0e,IN=(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 z0e(this,e,r,n)},t.prototype.getDelegate=function(){var e;return(e=this._delegate)!==null&&e!==void 0?e:q0e},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})(),KO;(function(t){t[t.NOT_RECORD=0]="NOT_RECORD",t[t.RECORD=1]="RECORD",t[t.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(KO||(KO={}));var U$;(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"})(U$||(U$={}));var kp;(function(t){t[t.UNSET=0]="UNSET",t[t.OK=1]="OK",t[t.ERROR=2]="ERROR"})(kp||(kp={}));var co=Fx.getInstance(),jt=ds.instance(),F0e=(function(){function t(){}return t.prototype.getMeter=function(e,r,n){return g0e},t})(),W0e=new F0e,x1="metrics",U0e=(function(){function t(){}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalMeterProvider=function(e){return em(x1,e,ds.instance())},t.prototype.getMeterProvider=function(){return fc(x1)||W0e},t.prototype.getMeter=function(e,r,n){return this.getMeterProvider().getMeter(e,r,n)},t.prototype.disable=function(){tm(x1,ds.instance())},t})(),X0e=U0e.getInstance(),Z0e=(function(){function t(){}return t.prototype.inject=function(e,r){},t.prototype.extract=function(e,r){return e},t.prototype.fields=function(){return[]},t})(),DI=II("OpenTelemetry Baggage Key");function JZ(t){return t.getValue(DI)||void 0}function G0e(){return JZ(Fx.getInstance().active())}function Y0e(t,e){return t.setValue(DI,e)}function H0e(t){return t.deleteValue(DI)}var w1="propagation",J0e=new Z0e,K0e=(function(){function t(){this.createBaggage=o0e,this.getBaggage=JZ,this.getActiveBaggage=G0e,this.setBaggage=Y0e,this.deleteBaggage=H0e}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalPropagator=function(e){return em(w1,e,ds.instance())},t.prototype.inject=function(e,r,n){return n===void 0&&(n=P0e),this._getGlobalPropagator().inject(e,r,n)},t.prototype.extract=function(e,r,n){return n===void 0&&(n=C0e),this._getGlobalPropagator().extract(e,r,n)},t.prototype.fields=function(){return this._getGlobalPropagator().fields()},t.prototype.disable=function(){tm(w1,ds.instance())},t.prototype._getGlobalPropagator=function(){return fc(w1)||J0e},t})(),Nh=K0e.getInstance(),S1="trace",exe=(function(){function t(){this._proxyTracerProvider=new IN,this.wrapSpanContext=L0e,this.isSpanContextValid=Wx,this.deleteSpan=R0e,this.getSpan=RI,this.getActiveSpan=_0e,this.getSpanContext=GZ,this.setSpan=jI,this.setSpanContext=j0e}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalTracerProvider=function(e){var r=em(S1,this._proxyTracerProvider,ds.instance());return r&&this._proxyTracerProvider.setDelegate(e),r},t.prototype.getTracerProvider=function(){return fc(S1)||this._proxyTracerProvider},t.prototype.getTracer=function(e,r){return this.getTracerProvider().getTracer(e,r)},t.prototype.disable=function(){tm(S1,ds.instance()),this._proxyTracerProvider=new IN},t})(),bi=exe.getInstance();const KZ=II("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function txe(t){return t.setValue(KZ,!0)}function MI(t){return t.getValue(KZ)===!0}const rxe="=",X$=";",Z$=",",C1="baggage",nxe=180,ixe=4096,oxe=8192;function sxe(t){return t.reduce((e,r)=>{const n=`${e}${e!==""?Z$:""}${r}`;return n.length>oxe?e:n},"")}function axe(t){return t.getAllEntries().map(([e,r])=>{let n=`${encodeURIComponent(e)}=${encodeURIComponent(r.value)}`;return r.metadata!==void 0&&(n+=X$+r.metadata.toString()),n})}function lxe(t){const e=t.split(X$);if(e.length<=0)return;const r=e.shift();if(!r)return;const n=r.indexOf(rxe);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=s0e(e.join(X$))),{key:i,value:o,metadata:s}}class cxe{inject(e,r,n){const i=Nh.getBaggage(e);if(!i||MI(e))return;const o=axe(i).filter(a=>a.length<=ixe).slice(0,nxe),s=sxe(o);s.length>0&&n.set(r,C1,s)}extract(e,r,n){const i=n.get(r,C1),o=Array.isArray(i)?i.join(Z$):i;if(!o)return e;const s={};return o.length===0||(o.split(Z$).forEach(l=>{const c=lxe(l);if(c){const u={value:c.value};c.metadata&&(u.metadata=c.metadata),s[c.key]=u}}),Object.entries(s).length===0)?e:Nh.setBaggage(e,Nh.createBaggage(s))}fields(){return[C1]}}function gb(t){const e={};if(typeof t!="object"||t==null)return e;for(const[r,n]of Object.entries(t)){if(!uxe(r)){jt.warn(`Invalid attribute key: ${r}`);continue}if(!eG(n)){jt.warn(`Invalid attribute value set for key: ${r}`);continue}Array.isArray(n)?e[r]=n.slice():e[r]=n}return e}function uxe(t){return typeof t=="string"&&t.length>0}function eG(t){return t==null?!0:Array.isArray(t)?dxe(t):tG(t)}function dxe(t){let e;for(const r of t)if(r!=null){if(!e){if(tG(r)){e=typeof r;continue}return!1}if(typeof r!==e)return!1}return!0}function tG(t){switch(typeof t){case"number":case"boolean":case"string":return!0}return!1}function fxe(){return t=>{jt.error(hxe(t))}}function hxe(t){return typeof t=="string"?t:JSON.stringify(pxe(t))}function pxe(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 mxe=fxe();function wd(t){try{mxe(t)}catch{}}const Bu=performance,gxe="2.0.1",P1="exception.message",yxe="exception.stacktrace",k1="exception.type",rG="service.name",vxe="service.version",G$="telemetry.sdk.language",bxe="webjs",Y$="telemetry.sdk.name",H$="telemetry.sdk.version",Oxe="process.runtime.name",$1={[Y$]:"opentelemetry",[Oxe]:"browser",[G$]:bxe,[H$]:gxe};const xxe=9,wxe=6,Sxe=Math.pow(10,wxe),e0=Math.pow(10,xxe);function Eu(t){const e=t/1e3,r=Math.trunc(e),n=Math.round(t%1e3*Sxe);return[r,n]}function nG(){let t=Bu.timeOrigin;if(typeof t!="number"){const e=Bu;t=e.timing&&e.timing.fetchStart}return t}function Cxe(t){const e=Eu(nG()),r=Eu(typeof t=="number"?t:Bu.now());return oG(e,r)}function Pxe(t,e){let r=e[0]-t[0],n=e[1]-t[1];return n<0&&(r-=1,n+=e0),[r,n]}function kxe(t){return t[0]*e0+t[1]}function iG(t){return Array.isArray(t)&&t.length===2&&typeof t[0]=="number"&&typeof t[1]=="number"}function TN(t){return iG(t)||typeof t=="number"||t instanceof Date}function oG(t,e){const r=[t[0]+e[0],t[1]+e[1]];return r[1]>=e0&&(r[1]-=e0,r[0]+=1),r}var qo;(function(t){t[t.SUCCESS=0]="SUCCESS",t[t.FAILED=1]="FAILED"})(qo||(qo={}));class $xe{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 J$="[_0-9a-z-*/]",Exe=`[a-z]${J$}{0,255}`,Axe=`[a-z0-9]${J$}{0,240}@[a-z]${J$}{0,13}`,Ixe=new RegExp(`^(?:${Exe}|${Axe})$`),Txe=/^[ -~]{0,255}[!-~]$/,_xe=/,|=/;function Rxe(t){return Ixe.test(t)}function jxe(t){return Txe.test(t)&&!_xe.test(t)}const _N=32,Dxe=512,RN=",",jN="=";class NI{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+jN+this.get(r)),e),[]).join(RN)}_parse(e){e.length>Dxe||(this._internalState=e.split(RN).reverse().reduce((r,n)=>{const i=n.trim(),o=i.indexOf(jN);if(o!==-1){const s=i.slice(0,o),a=i.slice(o+1,n.length);Rxe(s)&&jxe(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 NI;return e._internalState=new Map(this._internalState),e}}const E1="traceparent",A1="tracestate",Mxe="00",Nxe="(?!ff)[\\da-f]{2}",Lxe="(?![0]{32})[\\da-f]{32}",Qxe="(?![0]{16})[\\da-f]{16}",Vxe="[\\da-f]{2}",zxe=new RegExp(`^\\s?(${Nxe})-(${Lxe})-(${Qxe})-(${Vxe})(-.*)?\\s?$`);function Bxe(t){const e=zxe.exec(t);return!e||e[1]==="00"&&e[5]?null:{traceId:e[2],spanId:e[3],traceFlags:parseInt(e[4],16)}}class qxe{inject(e,r,n){const i=bi.getSpanContext(e);if(!i||MI(e)||!Wx(i))return;const o=`${Mxe}-${i.traceId}-${i.spanId}-0${Number(i.traceFlags||na.NONE).toString(16)}`;n.set(r,E1,o),i.traceState&&n.set(r,A1,i.traceState.serialize())}extract(e,r,n){const i=n.get(r,E1);if(!i)return e;const o=Array.isArray(i)?i[0]:i;if(typeof o!="string")return e;const s=Bxe(o);if(!s)return e;s.isRemote=!0;const a=n.get(r,A1);if(a){const l=Array.isArray(a)?a.join(","):a;s.traceState=new NI(typeof l=="string"?l:void 0)}return bi.setSpanContext(e,s)}fields(){return[E1,A1]}}const Fxe="[object Object]",Wxe="[object Null]",Uxe="[object Undefined]",Xxe=Function.prototype,sG=Xxe.toString,Zxe=sG.call(Object),Gxe=Object.getPrototypeOf,aG=Object.prototype,lG=aG.hasOwnProperty,Nl=Symbol?Symbol.toStringTag:void 0,cG=aG.toString;function DN(t){if(!Yxe(t)||Hxe(t)!==Fxe)return!1;const e=Gxe(t);if(e===null)return!0;const r=lG.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&sG.call(r)===Zxe}function Yxe(t){return t!=null&&typeof t=="object"}function Hxe(t){return t==null?t===void 0?Uxe:Wxe:Nl&&Nl in Object(t)?Jxe(t):Kxe(t)}function Jxe(t){const e=lG.call(t,Nl),r=t[Nl];let n=!1;try{t[Nl]=void 0,n=!0}catch{}const i=cG.call(t);return n&&(e?t[Nl]=r:delete t[Nl]),i}function Kxe(t){return cG.call(t)}const ewe=20;function twe(...t){let e=t.shift();const r=new WeakMap;for(;t.length>0;)e=uG(e,t.shift(),0,r);return e}function I1(t){return t0(t)?t.slice():t}function uG(t,e,r=0,n){let i;if(!(r>ewe)){if(r++,yb(t)||yb(e)||dG(e))i=I1(e);else if(t0(t)){if(i=t.slice(),t0(e))for(let o=0,s=e.length;o<s;o++)i.push(I1(e[o]));else if(Pf(e)){const o=Object.keys(e);for(let s=0,a=o.length;s<a;s++){const l=o[s];i[l]=I1(e[l])}}}else if(Pf(t))if(Pf(e)){if(!rwe(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(yb(c))typeof c>"u"?delete i[l]:i[l]=c;else{const u=i[l],d=c;if(MN(t,l,n)||MN(e,l,n))delete i[l];else{if(Pf(u)&&Pf(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]=uG(i[l],c,r,n)}}}}else i=e;return i}}function MN(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 t0(t){return Array.isArray(t)}function dG(t){return typeof t=="function"}function Pf(t){return!yb(t)&&!t0(t)&&!dG(t)&&typeof t=="object"}function yb(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t>"u"||t instanceof Date||t instanceof RegExp||t===null}function rwe(t,e){return!(!DN(t)||!DN(e))}class nwe{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 iwe{constructor(e,r){xe(this,"_callback");xe(this,"_that");xe(this,"_isCalled",!1);xe(this,"_deferred",new nwe);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 owe(){return"unknown_service"}const hh=t=>t!==null&&typeof t=="object"&&typeof t.then=="function";class r0{constructor(e){xe(this,"_rawAttributes");xe(this,"_asyncAttributesPending",!1);xe(this,"_memoizedAttributes");const r=e.attributes??{};this._rawAttributes=Object.entries(r).map(([n,i])=>(hh(i)&&(this._asyncAttributesPending=!0),[n,i])),this._rawAttributes=NN(this._rawAttributes)}static FromAttributeList(e){const r=new r0({});return r._rawAttributes=NN(e),r._asyncAttributesPending=e.filter(([n,i])=>hh(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,hh(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(hh(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:r0.FromAttributeList([...e.getRawAttributes(),...this.getRawAttributes()])}}function fG(t){return r0.FromAttributeList(Object.entries(t))}function swe(){return fG({[rG]:owe(),[G$]:$1[G$],[Y$]:$1[Y$],[H$]:$1[H$]})}function NN(t){return t.map(([e,r])=>hh(r)?[e,r.catch(n=>{jt.debug("promise rejection for resource attribute: %s - %s",e,n)})]:[e,r])}const awe="exception";class lwe{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:kp.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=Bu.now(),this._performanceOffset=r-(this._performanceStartTime+nG()),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(!eG(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++),TN(r)&&(TN(n)||(n=r),r=void 0);const o=gb(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=Pxe(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<=Bu.now())return Cxe(e+this._performanceOffset);if(typeof e=="number")return Eu(e);if(e instanceof Date)return Eu(e.getTime());if(iG(e))return e;if(this._startTimeProvided)return Eu(Date.now());const r=Bu.now()-this._performanceStartTime;return oG(this.startTime,Eu(r))}isRecording(){return this._ended===!1}recordException(e,r){const n={};typeof e=="string"?n[P1]=e:e&&(e.code?n[k1]=e.code.toString():e.name&&(n[k1]=e.name),e.message&&(n[P1]=e.message),e.stack&&(n[yxe]=e.stack)),n[k1]||n[P1]?this.addEvent(awe,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 Sd;(function(t){t[t.NOT_RECORD=0]="NOT_RECORD",t[t.RECORD=1]="RECORD",t[t.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(Sd||(Sd={}));class n0{shouldSample(){return{decision:Sd.NOT_RECORD}}toString(){return"AlwaysOffSampler"}}class qu{shouldSample(){return{decision:Sd.RECORD_AND_SAMPLED}}toString(){return"AlwaysOnSampler"}}class Ag{constructor(e){xe(this,"_root");xe(this,"_remoteParentSampled");xe(this,"_remoteParentNotSampled");xe(this,"_localParentSampled");xe(this,"_localParentNotSampled");this._root=e.root,this._root||(wd(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new qu),this._remoteParentSampled=e.remoteParentSampled??new qu,this._remoteParentNotSampled=e.remoteParentNotSampled??new n0,this._localParentSampled=e.localParentSampled??new qu,this._localParentNotSampled=e.localParentNotSampled??new n0}shouldSample(e,r,n,i,o,s){const a=bi.getSpanContext(e);return!a||!Wx(a)?this._root.shouldSample(e,r,n,i,o,s):a.isRemote?a.traceFlags&na.SAMPLED?this._remoteParentSampled.shouldSample(e,r,n,i,o,s):this._remoteParentNotSampled.shouldSample(e,r,n,i,o,s):a.traceFlags&na.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 LN{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:YZ(r)&&this._accumulate(r)<this._upperBound?Sd.RECORD_AND_SAMPLED:Sd.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 QN=1;function hG(){return{sampler:pG(),forceFlushTimeoutMillis:3e4,generalLimits:{attributeValueLengthLimit:1/0,attributeCountLimit:128},spanLimits:{attributeValueLengthLimit:1/0,attributeCountLimit:128,linkCountLimit:128,eventCountLimit:128,attributePerEventCountLimit:128,attributePerLinkCountLimit:128}}}function pG(){const t="parentbased_always_on";switch(t){case"always_on":return new qu;case"always_off":return new n0;case"parentbased_always_on":return new Ag({root:new qu});case"parentbased_always_off":return new Ag({root:new n0});case"traceidratio":return new LN(VN());case"parentbased_traceidratio":return new Ag({root:new LN(VN())});default:return jt.error(`OTEL_TRACES_SAMPLER value "${t}" invalid, defaulting to "parentbased_always_on".`),new Ag({root:new qu})}}function VN(){return jt.error(`OTEL_TRACES_SAMPLER_ARG is blank, defaulting to ${QN}.`),QN}const cwe=128,uwe=1/0;function dwe(t){const e={sampler:pG()},r=hG(),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 fwe(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??cwe,e.attributeValueLengthLimit=((i=t.spanLimits)==null?void 0:i.attributeValueLengthLimit)??((o=t.generalLimits)==null?void 0:o.attributeValueLengthLimit)??void 0??void 0??uwe,Object.assign({},t,{spanLimits:e})}class hwe{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 iwe(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&na.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);co.with(txe(co.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===qo.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=>{wd(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,wd(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 pwe extends hwe{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=>{wd(n)})},this._pageHideListener=()=>{this.forceFlush().catch(n=>{wd(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 mwe=8,gwe=16;class ywe{constructor(){xe(this,"generateTraceId",zN(gwe));xe(this,"generateSpanId",zN(mwe))}}const Ig=Array(32);function zN(t){return function(){for(let r=0;r<t*2;r++)Ig[r]=Math.floor(Math.random()*16)+48,Ig[r]>=58&&(Ig[r]+=39);return String.fromCharCode.apply(null,Ig.slice(0,t*2))}}class vwe{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=dwe(r);this._sampler=o.sampler,this._generalLimits=o.generalLimits,this._spanLimits=o.spanLimits,this._idGenerator=r.idGenerator||new ywe,this._resource=n,this._spanProcessor=i,this.instrumentationScope=e}startSpan(e,r={},n=co.active()){r.root&&(n=bi.deleteSpan(n));const i=bi.getSpan(n);if(MI(n))return jt.debug("Instrumentation suppressed, returning Noop Span"),bi.wrapSpanContext(ZZ);const o=i==null?void 0:i.spanContext(),s=this._idGenerator.generateSpanId();let a,l,c;!o||!bi.isSpanContextValid(o)?l=this._idGenerator.generateTraceId():(l=o.traceId,c=o.traceState,a=o);const u=r.kind??U$.INTERNAL,d=(r.links??[]).map(b=>({context:b.context,attributes:gb(b.attributes)})),f=gb(r.attributes),h=this._sampler.shouldSample(n,l,e,u,f,d);c=h.traceState??c;const m=h.decision===KO.RECORD_AND_SAMPLED?na.SAMPLED:na.NONE,p={traceId:l,spanId:s,traceFlags:m,traceState:c};if(h.decision===KO.NOT_RECORD)return jt.debug("Recording is off, propagating context in a non-recording span"),bi.wrapSpanContext(p);const y=gb(Object.assign(f,h.attributes));return new lwe({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??co.active(),c=this.startSpan(e,o,l),u=bi.setSpan(l,c);return co.with(u,a,void 0,c)}getGeneralLimits(){return this._generalLimits}getSpanLimits(){return this._spanLimits}}class bwe{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=>{wd(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 Ll;(function(t){t[t.resolved=0]="resolved",t[t.timeout=1]="timeout",t[t.error=2]="error",t[t.unresolved=3]="unresolved"})(Ll||(Ll={}));class Owe{constructor(e={}){xe(this,"_config");xe(this,"_tracers",new Map);xe(this,"_resource");xe(this,"_activeSpanProcessor");var i;const r=twe({},hG(),fwe(e));this._resource=r.resource??swe(),this._config=Object.assign({},r,{resource:this._resource});const n=[];(i=e.spanProcessors)!=null&&i.length&&n.push(...e.spanProcessors),this._activeSpanProcessor=new bwe(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 vwe({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=Ll.timeout},e);n.forceFlush().then(()=>{clearTimeout(s),o!==Ll.timeout&&(o=Ll.resolved,i(o))}).catch(a=>{clearTimeout(s),o=Ll.error,i(a)})}));return new Promise((n,i)=>{Promise.all(r).then(o=>{const s=o.filter(a=>a!==Ll.resolved);s.length>0?i(s):n()}).catch(o=>i([o]))})}shutdown(){return this._activeSpanProcessor.shutdown()}}class xwe{constructor(){xe(this,"_enabled",!1);xe(this,"_currentContext",pu)}_bindFunction(e=pu,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=pu,this._enabled=!1,this}enable(){return this._enabled?this:(this._enabled=!0,this._currentContext=pu,this)}with(e,r,n,...i){const o=this._currentContext;this._currentContext=e||pu;try{return r.call(n,...i)}finally{this._currentContext=o}}}function wwe(t){if(t!==null){if(t===void 0){const e=new xwe;e.enable(),co.setGlobalContextManager(e);return}t.enable(),co.setGlobalContextManager(t)}}function Swe(t){if(t!==null){if(t===void 0){Nh.setGlobalPropagator(new $xe({propagators:[new qxe,new cxe]}));return}Nh.setGlobalPropagator(t)}}class Cwe extends Owe{constructor(e={}){super(e)}register(e={}){bi.setGlobalTracerProvider(this),Swe(e.propagator),wwe(e.contextManager)}}class Pwe{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 BN 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 kwe(t){if(Number.isFinite(t)&&t>0)return t;throw new Error(`Configuration: timeoutMillis is invalid, expected number greater than 0 (actual: '${t}')`)}function $we(t){if(t!=null)return()=>t}function Ewe(t,e,r){return{timeoutMillis:kwe(t.timeoutMillis??e.timeoutMillis??r.timeoutMillis),concurrencyLimit:t.concurrencyLimit??e.concurrencyLimit??r.concurrencyLimit,compression:t.compression??e.compression??r.compression}}function Awe(){return{timeoutMillis:1e4,concurrencyLimit:30,compression:"none"}}class Iwe{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 Twe(t){return new Iwe(t.concurrencyLimit)}function _we(t){return Object.prototype.hasOwnProperty.call(t,"partialSuccess")}function Rwe(){return{handleResponse(t){t==null||!_we(t)||t.partialSuccess==null||Object.keys(t.partialSuccess).length===0||jt.warn("Received Partial Success response:",JSON.stringify(t.partialSuccess))}}}class jwe{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:qo.FAILED,error:new Error("Concurrent export limit reached")});return}const n=this._serializer.serializeRequest(e);if(n==null){r({code:qo.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:qo.SUCCESS});return}else if(i.status==="failure"&&i.error){r({code:qo.FAILED,error:i.error});return}else i.status==="retryable"?r({code:qo.FAILED,error:new BN("Export failed with retryable status")}):r({code:qo.FAILED,error:new BN("Export failed with unknown error")})},i=>r({code:qo.FAILED,error:i})))}forceFlush(){return this._promiseQueue.awaitAll()}async shutdown(){this._diagLogger.debug("shutdown started"),await this.forceFlush(),this._transport.shutdown()}}function Dwe(t,e){return new jwe(t.transport,t.serializer,Rwe(),t.promiseHandler,e.timeout)}function mG(t,e,r){return Dwe({transport:r,serializer:e,promiseHandler:Twe(t)},{timeout:t.timeoutMillis})}function qN(t){return t>=48&&t<=57?t-48:t>=97&&t<=102?t-87:t-55}function gG(t){const e=new Uint8Array(t.length/2);let r=0;for(let n=0;n<t.length;n+=2){const i=qN(t.charCodeAt(n)),o=qN(t.charCodeAt(n+1));e[r++]=i<<4|o}return e}function yG(t){const e=BigInt(1e9);return BigInt(t[0])*e+BigInt(t[1])}function Mwe(t){const e=Number(BigInt.asUintN(32,t)),r=Number(BigInt.asUintN(32,t>>BigInt(32)));return{low:e,high:r}}function Nwe(t){const e=yG(t);return Mwe(e)}function Lwe(t){return yG(t).toString()}const Qwe=typeof BigInt<"u"?Lwe:kxe;function FN(t){return t}function Vwe(t){if(t!==void 0)return gG(t)}const zwe={encodeHrTime:Nwe,encodeSpanContext:gG,encodeOptionalSpanContext:Vwe};function Bwe(t){return t===void 0?zwe:{encodeHrTime:Qwe,encodeSpanContext:FN,encodeOptionalSpanContext:FN}}function qwe(t){return{attributes:Ux(t.attributes),droppedAttributesCount:0}}function Fwe(t){return{name:t.name,version:t.version}}function Ux(t){return Object.keys(t).map(e=>vG(e,t[e]))}function vG(t,e){return{key:t,value:bG(e)}}function bG(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(bG)}}:e==="object"&&t!=null?{kvlistValue:{values:Object.entries(t).map(([r,n])=>vG(r,n))}}:{}}function Wwe(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:Ux(t.attributes),droppedAttributesCount:t.droppedAttributesCount,events:t.events.map(l=>Xwe(l,e)),droppedEventsCount:t.droppedEventsCount,status:{code:n.code,message:n.message},links:t.links.map(l=>Uwe(l,e)),droppedLinksCount:t.droppedLinksCount}}function Uwe(t,e){var r;return{attributes:t.attributes?Ux(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 Xwe(t,e){return{attributes:t.attributes?Ux(t.attributes):[],name:t.name,timeUnixNano:e.encodeHrTime(t.time),droppedAttributesCount:t.droppedAttributesCount||0}}function Zwe(t,e){const r=Bwe(e);return{resourceSpans:Ywe(t,r)}}function Gwe(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 Ywe(t,e){const r=Gwe(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(m=>Wwe(m,e));l.push({scope:Fwe(f[0].instrumentationScope),spans:h,schemaUrl:f[0].instrumentationScope.schemaUrl})}u=c.next()}const d={resource:qwe(s),scopeSpans:l,schemaUrl:void 0};n.push(d),o=i.next()}return n}const Hwe={serializeRequest:t=>{const e=Zwe(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))}},Jwe=5,Kwe=1e3,eSe=5e3,tSe=1.5,WN=.2;function rSe(){return Math.random()*(2*WN)-WN}class nSe{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=Jwe,s=Kwe;for(;i.status==="retryable"&&o>0;){o--;const a=Math.max(Math.min(s,eSe)+rSe(),0);s=s*tSe;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 OG(t){return new nSe(t.transport)}function iSe(t){return[429,502,503,504].includes(t)}function oSe(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 sSe{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&&iSe(i.status)?n({status:"retryable",retryInMillis:oSe(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 aSe(t){return new sSe(t)}class lSe{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 cSe(t){return new lSe(t)}function uSe(t,e){return mG(t,e,OG({transport:aSe(t)}))}function dSe(t,e){return mG(t,e,OG({transport:cSe({url:t.url,blobType:t.headers()["Content-Type"]})}))}function fSe(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 hSe(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 pSe(t){if(t!=null)try{return new URL(t),t}catch{throw new Error(`Configuration: Could not parse user-provided export URL: '${t}'`)}}function mSe(t,e,r){return{...Ewe(t,e,r),headers:hSe(fSe(t.headers),e.headers,r.headers),url:pSe(t.url)??e.url??r.url,agentOptions:t.agentOptions??e.agentOptions??r.agentOptions}}function gSe(t,e){return{...Awe(),headers:()=>t,url:"http://localhost:4318/"+e,agentOptions:{keepAlive:!0}}}function ySe(t,e,r){return mSe({url:t.url,timeoutMillis:t.timeoutMillis,headers:$we(t.headers),concurrencyLimit:t.concurrencyLimit},{},gSe(r,e))}function vSe(t,e,r,n){const i=!!t.headers||typeof navigator.sendBeacon!="function",o=ySe(t,r,n);return i?uSe(o,e):dSe(o,e)}class bSe extends Pwe{constructor(e={}){super(vSe(e,Hwe,"v1/traces",{"Content-Type":"application/json"}))}}class xG{emit(e){}}const OSe=new xG;class xSe{getLogger(e,r,n){return new xG}}const wG=new xSe;class wSe{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):OSe}}class UN{getLogger(e,r,n){var i;return(i=this.getDelegateLogger(e,r,n))!==null&&i!==void 0?i:new wSe(this,e,r,n)}getDelegate(){var e;return(e=this._delegate)!==null&&e!==void 0?e:wG}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 SSe=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof global=="object"?global:{},Tg=Symbol.for("io.opentelemetry.js.api.logs"),kf=SSe;function CSe(t,e,r){return n=>n===t?e:r}const XN=1;class LI{constructor(){this._proxyLoggerProvider=new UN}static getInstance(){return this._instance||(this._instance=new LI),this._instance}setGlobalLoggerProvider(e){return kf[Tg]?this.getLoggerProvider():(kf[Tg]=CSe(XN,e,wG),this._proxyLoggerProvider.setDelegate(e),e)}getLoggerProvider(){var e,r;return(r=(e=kf[Tg])===null||e===void 0?void 0:e.call(kf,XN))!==null&&r!==void 0?r:this._proxyLoggerProvider}getLogger(e,r,n){return this.getLoggerProvider().getLogger(e,r,n)}disable(){delete kf[Tg],this._proxyLoggerProvider=new UN}}const PSe=LI.getInstance();function kSe(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 $Se(t){t.forEach(e=>e.disable())}function ESe(t){var o;const e=t.tracerProvider||bi.getTracerProvider(),r=t.meterProvider||X0e.getMeterProvider(),n=t.loggerProvider||PSe.getLoggerProvider(),i=((o=t.instrumentations)==null?void 0:o.flat())??[];return kSe(i,e,r,n),()=>{$Se(i)}}class ZN{constructor(e){xe(this,"span");this.span=e}error(e){this.span&&(this.span.setStatus(kp.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(kp.OK),this.span.end())}}class ASe{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":JO(),"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 m=d.notUpdated.find(({object:p})=>p===h);return m?(d.updated=[m,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.",m=`${d.object}.`;Object.entries(d).forEach(([p,y])=>{y!==void 0&&(i[`cloudevents.subjects.${h}${m}${p}`]=y)})}),u.notUpdated.forEach(d=>{const f=`${d.object}.`;Object.entries(d).forEach(([h,m])=>{m!==void 0&&(i[`cloudevents.subjects.${f}${h}`]=m)})})}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=bi.setSpan(co.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},co.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)},co.active()),o=bi.setSpan(co.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 ZN(r)}startRootTrace(e){const r=this.startRootSpan(e);if(r)return{traceApi:new ZN(r),context:r.context}}async forceFlush(){var e;return(e=this.tracerProvider)==null?void 0:e.forceFlush()}}class ISe extends ASe{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_${JO()}`,i=fG({[rG]:r.serviceName,[vxe]:r.serviceVersion,session_id:n}),o=r.collectorTraceUrl||`${r.collectorUrl}/v1/traces`;this.tracerProvider=new Cwe({resource:i,spanProcessors:[new pwe(new bSe({url:o,headers:{}}))]}),this.tracer=this.tracerProvider.getTracer(r.tracerName),this.tracerProvider.register(),ESe({instrumentations:r.instrumentations??[]}),this.initialized=!0}}class TSe{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 ISe,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_${JO()}`,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_${JO()}`,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 _Se(){return{theme:"light",disableCollectionsTab:!1,oAuth2RedirectURI:null,corsProxyUrl:void 0,mockServer:void 0,certificates:[],isApiBased:!1,generatedEnvironments:[],generatedInputs:[]}}const RSe=_Se(),jSe=N.createContext(RSe);function ys(){const t=N.useContext(jSe);return U5(t)}function DSe(t,e){const{apps:{apiId:r}}=Et(),{corsProxyUrl:n,disableCollectionsTab:i,mockServer:o,oAuth2RedirectURI:s,certificates:a,storageKey:l,isApiBased:c}=ys();n.set((t==null?void 0:t.corsProxyUrl)??Zre),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 Xx=N.createContext({});function QI(){return N.useContext(Xx)||{}}const MSe="0.18.0-rc.1",NSe={version:MSe};class LSe{constructor(){xe(this,"client");xe(this,"_isInitialized",!1);this.client=new TSe}get isInitialized(){return this._isInitialized}init(e){if(this.isInitialized)return;const n={serviceName:"replay",serviceVersion:NSe.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 T1=new LSe;function vt(){const{telemetry:t}=QI();return T1.isInitialized||T1.init({tracerName:t==null?void 0:t.tracerName,collectorUrl:t==null?void 0:t.collectorUrl}),{sendEvent:(e,r)=>{T1.sendEvent(e,r)}}}const Ln=800;var QSe=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function VSe(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,m=ki(t,QSe),p=N.useState(a!==void 0?a:r),y=Ot(p,2),v=y[0],b=y[1],O=N.useState(l!==void 0?l:i),w=Ot(O,2),x=w[0],S=w[1],P=N.useState(h!==void 0?h:s),I=Ot(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(),S(!0)},[f]),J=N.useCallback(function(){typeof d=="function"&&d(),S(!1)},[d]),te=a!==void 0?a:v,oe=l!==void 0?l:x,ae=h!==void 0?h:E;return $e($e({},m),{},{inputValue:te,menuIsOpen:oe,onChange:V,onInputChange:U,onMenuClose:J,onMenuOpen:X,value:ae})}function zSe(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 BSe(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 qSe=(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(BSe(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:
|
|
350
350
|
`+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=zSe(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})(),dn="-ms-",i0="-moz-",Rt="-webkit-",VI="comm",zI="rule",BI="decl",FSe="@import",SG="@keyframes",WSe=Math.abs,Zx=String.fromCharCode,USe=Object.assign;function XSe(t,e){return rn(t,0)^45?(((e<<2^rn(t,0))<<2^rn(t,1))<<2^rn(t,2))<<2^rn(t,3):0}function CG(t){return t.trim()}function ZSe(t,e){return(t=e.exec(t))?t[0]:t}function zt(t,e,r){return t.replace(e,r)}function K$(t,e){return t.indexOf(e)}function rn(t,e){return t.charCodeAt(e)|0}function $p(t,e,r){return t.slice(e,r)}function Uo(t){return t.length}function qI(t){return t.length}function _g(t,e){return e.push(t),t}function GSe(t,e){return t.map(e).join("")}var Gx=1,Cd=1,PG=0,oi=0,Ir=0,Fd="";function Yx(t,e,r,n,i,o,s){return{value:t,root:e,parent:r,type:n,props:i,children:o,line:Gx,column:Cd,length:s,return:""}}function $f(t,e){return USe(Yx("",null,null,"",null,null,0),t,{length:-t.length},e)}function YSe(){return Ir}function HSe(){return Ir=oi>0?rn(Fd,--oi):0,Cd--,Ir===10&&(Cd=1,Gx--),Ir}function Pi(){return Ir=oi<PG?rn(Fd,oi++):0,Cd++,Ir===10&&(Cd=1,Gx++),Ir}function as(){return rn(Fd,oi)}function vb(){return oi}function rm(t,e){return $p(Fd,t,e)}function Ep(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 kG(t){return Gx=Cd=1,PG=Uo(Fd=t),oi=0,[]}function $G(t){return Fd="",t}function bb(t){return CG(rm(oi-1,eE(t===91?t+2:t===40?t+1:t)))}function JSe(t){for(;(Ir=as())&&Ir<33;)Pi();return Ep(t)>2||Ep(Ir)>3?"":" "}function KSe(t,e){for(;--e&&Pi()&&!(Ir<48||Ir>102||Ir>57&&Ir<65||Ir>70&&Ir<97););return rm(t,vb()+(e<6&&as()==32&&Pi()==32))}function eE(t){for(;Pi();)switch(Ir){case t:return oi;case 34:case 39:t!==34&&t!==39&&eE(Ir);break;case 40:t===41&&eE(t);break;case 92:Pi();break}return oi}function e1e(t,e){for(;Pi()&&t+Ir!==57;)if(t+Ir===84&&as()===47)break;return"/*"+rm(e,oi-1)+"*"+Zx(t===47?t:Pi())}function t1e(t){for(;!Ep(as());)Pi();return rm(t,oi)}function r1e(t){return $G(Ob("",null,null,null,[""],t=kG(t),0,[0],t))}function Ob(t,e,r,n,i,o,s,a,l){for(var c=0,u=0,d=s,f=0,h=0,m=0,p=1,y=1,v=1,b=0,O="",w=i,x=o,S=n,P=O;y;)switch(m=b,b=Pi()){case 40:if(m!=108&&rn(P,d-1)==58){K$(P+=zt(bb(b),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:P+=bb(b);break;case 9:case 10:case 13:case 32:P+=JSe(m);break;case 92:P+=KSe(vb()-1,7);continue;case 47:switch(as()){case 42:case 47:_g(n1e(e1e(Pi(),vb()),e,r),l);break;default:P+="/"}break;case 123*p:a[c++]=Uo(P)*v;case 125*p:case 59:case 0:switch(b){case 0:case 125:y=0;case 59+u:h>0&&Uo(P)-d&&_g(h>32?YN(P+";",n,r,d-1):YN(zt(P," ","")+";",n,r,d-2),l);break;case 59:P+=";";default:if(_g(S=GN(P,e,r,c,u,i,a,O,w=[],x=[],d),o),b===123)if(u===0)Ob(P,e,S,S,w,o,d,a,x);else switch(f===99&&rn(P,3)===110?100:f){case 100:case 109:case 115:Ob(t,S,S,n&&_g(GN(t,S,S,0,0,i,a,O,i,w=[],d),x),i,x,d,a,n?w:x);break;default:Ob(P,S,S,S,[""],x,0,a,x)}}c=u=h=0,p=v=1,O=P="",d=s;break;case 58:d=1+Uo(P),h=m;default:if(p<1){if(b==123)--p;else if(b==125&&p++==0&&HSe()==125)continue}switch(P+=Zx(b),b*p){case 38:v=u>0?1:(P+="\f",-1);break;case 44:a[c++]=(Uo(P)-1)*v,v=1;break;case 64:as()===45&&(P+=bb(Pi())),f=as(),u=d=Uo(O=P+=t1e(vb())),b++;break;case 45:m===45&&Uo(P)==2&&(p=0)}}return o}function GN(t,e,r,n,i,o,s,a,l,c,u){for(var d=i-1,f=i===0?o:[""],h=qI(f),m=0,p=0,y=0;m<n;++m)for(var v=0,b=$p(t,d+1,d=WSe(p=s[m])),O=t;v<h;++v)(O=CG(p>0?f[v]+" "+b:zt(b,/&\f/g,f[v])))&&(l[y++]=O);return Yx(t,e,r,i===0?zI:a,l,c,u)}function n1e(t,e,r){return Yx(t,e,r,VI,Zx(YSe()),$p(t,2,-2),0)}function YN(t,e,r,n){return Yx(t,e,r,BI,$p(t,0,n),$p(t,n+1,-1),n)}function Fu(t,e){for(var r="",n=qI(t),i=0;i<n;i++)r+=e(t[i],i,t,e)||"";return r}function i1e(t,e,r,n){switch(t.type){case FSe:case BI:return t.return=t.return||t.value;case VI:return"";case SG:return t.return=t.value+"{"+Fu(t.children,n)+"}";case zI:t.value=t.props.join(",")}return Uo(r=Fu(t.children,n))?t.return=t.value+"{"+r+"}":""}function o1e(t){var e=qI(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 s1e(t){return function(e){e.root||(e=e.return)&&t(e)}}function a1e(t){var e=Object.create(null);return function(r){return e[r]===void 0&&(e[r]=t(r)),e[r]}}var l1e=function(e,r,n){for(var i=0,o=0;i=o,o=as(),i===38&&o===12&&(r[n]=1),!Ep(o);)Pi();return rm(e,oi)},c1e=function(e,r){var n=-1,i=44;do switch(Ep(i)){case 0:i===38&&as()===12&&(r[n]=1),e[n]+=l1e(oi-1,r,n);break;case 2:e[n]+=bb(i);break;case 4:if(i===44){e[++n]=as()===58?"&\f":"",r[n]=e[n].length;break}default:e[n]+=Zx(i)}while(i=Pi());return e},u1e=function(e,r){return $G(c1e(kG(e),r))},HN=new WeakMap,d1e=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&&!HN.get(n))&&!i){HN.set(e,!0);for(var o=[],s=u1e(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]}}},f1e=function(e){if(e.type==="decl"){var r=e.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(e.return="",e.value="")}},h1e="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",p1e=function(e){return e.type==="comm"&&e.children.indexOf(h1e)>-1},m1e=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(p1e(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".')})}}}},EG=function(e){return e.type.charCodeAt(1)===105&&e.type.charCodeAt(0)===64},g1e=function(e,r){for(var n=e-1;n>=0;n--)if(!EG(r[n]))return!0;return!1},JN=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},y1e=function(e,r,n){EG(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."),JN(e)):g1e(r,n)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),JN(e)))};function AG(t,e){switch(XSe(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+i0+t+dn+t+t;case 6828:case 4268:return Rt+t+dn+t+t;case 6165:return Rt+t+dn+"flex-"+t+t;case 5187:return Rt+t+zt(t,/(\w+).+(:[^]+)/,Rt+"box-$1$2"+dn+"flex-$1$2")+t;case 5443:return Rt+t+dn+"flex-item-"+zt(t,/flex-|-self/,"")+t;case 4675:return Rt+t+dn+"flex-line-pack"+zt(t,/align-content|flex-|-self/,"")+t;case 5548:return Rt+t+dn+zt(t,"shrink","negative")+t;case 5292:return Rt+t+dn+zt(t,"basis","preferred-size")+t;case 6060:return Rt+"box-"+zt(t,"-grow","")+Rt+t+dn+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"+dn+"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(Uo(t)-1-e>6)switch(rn(t,e+1)){case 109:if(rn(t,e+4)!==45)break;case 102:return zt(t,/(.+:)(.+)-([^]+)/,"$1"+Rt+"$2-$3$1"+i0+(rn(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~K$(t,"stretch")?AG(zt(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(rn(t,e+1)!==115)break;case 6444:switch(rn(t,Uo(t)-3-(~K$(t,"!important")&&10))){case 107:return zt(t,":",":"+Rt)+t;case 101:return zt(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Rt+(rn(t,14)===45?"inline-":"")+"box$3$1"+Rt+"$2$3$1"+dn+"$2box$3")+t}break;case 5936:switch(rn(t,e+11)){case 114:return Rt+t+dn+zt(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return Rt+t+dn+zt(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return Rt+t+dn+zt(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return Rt+t+dn+t+t}return t}var v1e=function(e,r,n,i){if(e.length>-1&&!e.return)switch(e.type){case BI:e.return=AG(e.value,e.length);break;case SG:return Fu([$f(e,{value:zt(e.value,"@","@"+Rt)})],i);case zI:if(e.length)return GSe(e.props,function(o){switch(ZSe(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Fu([$f(e,{props:[zt(o,/:(read-\w+)/,":"+i0+"$1")]})],i);case"::placeholder":return Fu([$f(e,{props:[zt(o,/:(plac\w+)/,":"+Rt+"input-$1")]}),$f(e,{props:[zt(o,/:(plac\w+)/,":"+i0+"$1")]}),$f(e,{props:[zt(o,/:(plac\w+)/,dn+"input-$1")]})],i)}return""})}},b1e=[v1e],O1e=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.
|
|
351
351
|
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||b1e;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=[d1e,f1e];process.env.NODE_ENV!=="production"&&c.push(m1e({get compat(){return m.compat}}),y1e);{var u,d=[i1e,process.env.NODE_ENV!=="production"?function(p){p.root||(p.return?u.insert(p.return):p.value&&p.type!==VI&&u.insert(p.value+"{}"))}:s1e(function(p){u.insert(p)})],f=o1e(c.concat(i,d)),h=function(y){return Fu(r1e(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&&(m.inserted[v.name]=!0)}}var m={key:r,sheet:new qSe({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 m.sheet.hydrate(a),m},x1e=!0;function IG(t,e,r){var n="";return r.split(" ").forEach(function(i){t[i]!==void 0?e.push(t[i]+";"):n+=i+" "}),n}var FI=function(e,r,n){var i=e.key+"-"+r.name;(n===!1||x1e===!1)&&e.registered[i]===void 0&&(e.registered[i]=r.styles)},WI=function(e,r,n){FI(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 w1e(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 S1e={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},KN=`You have illegal escape sequence in your template literal, most likely inside content's property value.
|
|
352
352
|
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';".
|
|
@@ -512,7 +512,7 @@ You should wrap it with \`css\` like this:
|
|
|
512
512
|
color: var(--loading-spinner-color);
|
|
513
513
|
`,fY=R(q.Admonition)`
|
|
514
514
|
margin: 0;
|
|
515
|
-
`;var Q1,AL;function Dke(){return AL||(AL=1,Q1=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()}}),Q1}var V1,IL;function Mke(){if(IL)return V1;IL=1;var t=Dke(),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 m=document.execCommand("copy");if(!m)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 V1=i,V1}var Nke=Mke();const Lke=si(Nke);class hY{static copyCustom(e){return Lke(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 iT=(t,e="currentColor")=>t!=null&&t.startsWith("--")?`var(${t})`:t||e,pY={hide:{type:"boolean",default:!1},component:{type:"string",enum:["radio","checkbox"],default:"checkbox"},label:{type:"string"},items:{type:"array",items:{type:"string"}}},Af={type:"object",properties:pY,additionalProperties:!1},Qke={type:"object",properties:{hide:{type:"boolean",default:!1},label:{type:"string"},placeholder:{type:"string"}},additionalProperties:!1},Kx={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({},pY),{like:Af,dislike:Af,satisfied:Af,neutral:Af,dissatisfied:Af}),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:Qke},additionalProperties:!1}},additionalProperties:!1},Vke={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},mY={type:"array",items:{type:"object",properties:{title:{type:"string"},url:{type:"string"}},required:["url"],additionalProperties:!1}},TL={type:"object",properties:{licenseKey:{type:"string"},hideLoading:{type:"boolean"},disableRouter:{type:"boolean"},hideSidebar:{type:"boolean"},feedback:Kx,hideReplay:{type:"boolean"},oAuth2RedirectURI:{type:"string",nullable:!0},corsProxyUrl:{type:"string"},sortRequiredPropsFirst:{type:"boolean"},sanitize:{type:"boolean"},hideDownloadButtons:{type:"boolean"},downloadUrls:mY,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:Vke,ignoreNamedSchemas:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},hidePropertiesPrefix:{type:"boolean"},excludeFromSearch:{type:"boolean"},showSchemaCatalogLinks:{type:"boolean"}},additionalProperties:!1},Gc={type:"object",properties:{includeByName:{type:"array",items:{type:"string"}},excludeByName:{type:"array",items:{type:"string"}}},additionalProperties:!1},zke={type:"object",properties:{name:{type:"string"},items:Gc,queries:Gc,mutations:Gc,subscriptions:Gc,types:Gc,directives:Gc},required:["name"],additionalProperties:!1},Bke={properties:{requireExactGroups:{type:"boolean"},groups:{type:"array",items:zke},otherItemsGroupName:{type:"string"}}},f0={type:"object",properties:{menu:{type:"object",properties:Object.assign({},Bke.properties),additionalProperties:!1},sidebar:{type:"object",properties:{hide:{type:"boolean"}}},downloadUrls:mY,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:Kx,layout:{type:"string",enum:["stacked","three-panel"]},showBuiltInScalars:{type:"boolean"},showBuiltInDirectives:{type:"boolean"}},additionalProperties:!1},qke={type:"object",properties:{label:{type:"string"},lang:{enum:["curl","C#","Go","Java","Java8+Apache","JavaScript","Node.js","PHP","Python","R","Ruby"]}},required:["lang"]},Fke={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"]},Wke={type:"object",properties:{beforeInfo:{type:"array",items:_L},end:{type:"array",items:_L}}},Ql={type:"object",properties:{main:{type:"string"},light:{type:"string"},dark:{type:"string"},contrastText:{type:"string"}}},Ng={type:"object",properties:{backgroundColor:{type:"string"},borderColor:{type:"string"},color:{type:"string"},tabTextColor:{type:"string"}}},Uke={type:"object",properties:ew(Ql.properties,["light","dark"])},Xke={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"}}},Zke={type:"object",properties:{error:Ng,info:Ng,redirect:Ng,success:Ng}},Gke={type:"object",properties:Wd(Ql.properties,["dark"])},Yke={type:"object",properties:{primary:{type:"string"},secondary:{type:"string"},light:{type:"string"}}},Hke={type:"object",properties:{accent:Ql,border:Uke,error:Ql,http:Xke,primary:Ql,responses:Zke,secondary:Gke,success:Ql,text:Yke,tonalOffset:{type:"number"},warning:Ql}},Lg={type:"object",properties:{fontSize:{type:"string"},padding:{type:"string"},minWidth:{type:"string"}}},Jke={type:"object",properties:{small:Lg,medium:Lg,large:Lg,xlarge:Lg}},fs={type:"object",properties:{fontFamily:{type:"string"},fontSize:{type:"string"},fontWeight:{type:"string"},lineHeight:{type:"string"}}},Kke={type:"object",properties:Object.assign(Object.assign({},Wd(fs.properties,["fontSize","lineHeight"])),{borderRadius:{type:"string"},hoverStyle:{type:"string"},boxShadow:{type:"string"},hoverBoxShadow:{type:"string"},sizes:Jke})},RL={type:"object",properties:ew(fs.properties,["fontSize","lineHeight"])},e$e={type:"object",properties:{medium:RL,small:RL}},t$e={type:"object",properties:Object.assign(Object.assign({},Wd(fs.properties,["fontSize","lineHeight"])),{borderRadius:{type:"string"},color:{type:"string"},sizes:e$e})},r$e={type:"object",properties:{top:{type:"string"},width:{type:"string"},height:{type:"string"}}},n$e={type:"object",properties:{borderRadius:{type:"string"},backgroundColor:{type:"string"}}},jL={type:"object",properties:{fullWidth:{type:"boolean"}}},i$e={type:"object",properties:{buttons:Kke,httpBadges:t$e,layoutControls:r$e,panels:n$e,tryItButton:jL,tryItSendButton:jL}},h0={type:"object",properties:{small:{type:"string"},medium:{type:"string"},large:{type:"string"}}},o$e={type:"object",properties:{maxWidth:h0}},s$e={type:"object",properties:{maxWidth:h0,middlePanelMaxWidth:h0}},a$e={type:"object",properties:{showDarkRightPanel:{type:"boolean"},stacked:o$e,"three-panel":s$e}},DL={type:"object",properties:{backgroundColor:{type:"string"},border:{type:"string"}}},l$e={type:"object",properties:{breakFieldNames:{type:"boolean"},caretColor:{type:"string"},caretSize:{type:"string"},constraints:DL,defaultDetailsWidth:{type:"string"},examples:DL,labelsTextSize:{type:"string"},linesColor:{type:"string"},nestedBackground:{type:"string"},nestingSpacing:{type:"string"},requireLabelColor:{type:"string"},typeNameColor:{type:"string"},typeTitleColor:{type:"string"}}},gY={type:"object",properties:{subItemsColor:{type:"string"},textTransform:{type:"string"},fontWeight:{type:"string"}}},c$e={type:"object",properties:ew(gY.properties,["textTransform"])},u$e={type:"object",properties:{unit:{type:"number"},paddingHorizontal:{type:"string"},paddingVertical:{type:"string"},offsetTop:{type:"string"},offsetLeft:{type:"string"},offsetNesting:{type:"string"}}},d$e={type:"object",properties:Object.assign(Object.assign({},Wd(fs.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:gY,level1items:c$e,rightLineColor:{type:"string"},separatorLabelColor:{type:"string"},showAtBreakpoint:{type:"string"},spacing:u$e,textColor:{type:"string"},width:{type:"string"}})},Qg={type:"object",properties:Object.assign(Object.assign({},fs.properties),{color:{type:"string"},transform:{type:"string"}})},f$e={type:"object",properties:Object.assign(Object.assign({},fs.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"}})},h$e={type:"object",properties:Wd(fs.properties,["fontSize"])},p$e={type:"object",properties:{color:{type:"string"},hover:{type:"string"},textDecoration:{type:"string"},hoverTextDecoration:{type:"string"},visited:{type:"string"}}},m$e={type:"object",properties:Object.assign(Object.assign({code:f$e,fieldName:fs},ew(fs.properties,["fontSize","fontFamily"])),{fontWeightBold:{type:"string"},fontWeightLight:{type:"string"},fontWeightRegular:{type:"string"},heading1:Qg,heading2:Qg,heading3:Qg,headings:h$e,lineHeight:{type:"string"},links:p$e,optimizeSpeed:{type:"boolean"},rightPanelHeading:Qg,smoothing:{type:"string",enum:["auto","none","antialiased","subpixel-antialiased","grayscale"]}})},g$e={type:"object",properties:Object.assign({color:{type:"string"}},Wd(fs.properties,["fontWeight"]))},y$e={type:"object",properties:{backgroundColor:{type:"string"},borderRadius:{type:"string"},tokens:g$e}},v$e={type:"object",properties:{gutter:{type:"string"},maxHeight:{type:"string"},maxWidth:{type:"string"}}},b$e={type:"object",properties:{backgroundColor:{type:"string"},color:{type:"string"}}},ML={type:"object",properties:{custom:{type:"string"}}},O$e={type:"object",properties:{DownloadButton:ML,NextSectionButton:ML}},x$e={type:"object",properties:{backgroundColor:{type:"string"},panelBackgroundColor:{type:"string"},panelControlsBackgroundColor:{type:"string"},showAtBreakpoint:{type:"string"},textColor:{type:"string"},width:{type:"string"}}},w$e={type:"object",properties:{borderRadius:{type:"string"}}},S$e={type:"object",properties:{sectionHorizontal:{type:"number"},sectionVertical:{type:"number"},unit:{type:"number"}}},C$e={type:"object",properties:{breakpoints:h0,codeBlock:y$e,colors:Hke,components:i$e,layout:a$e,logo:v$e,fab:b$e,overrides:O$e,rightPanel:x$e,schema:l$e,shape:w$e,sidebar:d$e,spacing:S$e,typography:m$e,links:{properties:{color:{type:"string"}}},codeSample:{properties:{backgroundColor:{type:"string"}}}}},P$e={type:"object",properties:{skipOptionalParameters:{type:"boolean"},languages:{type:"array",items:qke}},required:["languages"]},k$e={properties:{theme:C$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:P$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:Fke,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:Wke,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 ew(t,e){return Object.fromEntries(e.filter(r=>r in t).map(r=>[r,t[r]]))}function Wd(t,e){return Object.fromEntries(Object.entries(t).filter(([r])=>!e.includes(r)))}const xs={type:"object",additionalProperties:{oneOf:[{type:"string"},{type:"object"}]}},oT={rules:xs,oas2Rules:xs,oas3_0Rules:xs,oas3_1Rules:xs,oas3_2Rules:xs,async2Rules:xs,async3Rules:xs,arazzo1Rules:xs,overlay1Rules:xs},ws={type:"object",additionalProperties:!0},sT={preprocessors:ws,oas2Preprocessors:ws,oas3_0Preprocessors:ws,oas3_1Preprocessors:ws,oas3_2Preprocessors:ws,async2Preprocessors:ws,async3Preprocessors:ws,arazzo1Preprocessors:ws,overlay1Preprocessors:ws},Ss={type:"object",additionalProperties:!0},aT={decorators:Ss,oas2Decorators:Ss,oas3_0Decorators:Ss,oas3_1Decorators:Ss,oas3_2Decorators:Ss,async2Decorators:Ss,async3Decorators:Ss,arazzo1Decorators:Ss,overlay1Decorators:Ss},Zr={type:"object",properties:{hide:{type:"boolean"}},additionalProperties:!1},NL={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},z1={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"}}}},lT={type:"array",items:Object.assign(Object.assign({},z1),{properties:Object.assign(Object.assign({},z1.properties),{items:{type:"array",items:z1}})})},$$e={type:"object",properties:{name:{type:"string"},icon:{type:"string"},folder:{type:"string"}},additionalProperties:!1,required:["name","folder"]},E$e={type:"object",properties:{hide:{type:"boolean",default:!1},suggestions:{default:[],type:"array",items:{type:"string"}},prompt:{type:"string"}},additionalProperties:!1},A$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}},I$e={type:"object",properties:Object.assign({facets:A$e},Zr.properties),additionalProperties:!1},T$e={type:"object",properties:{page:{type:"string"},label:{type:"string"},labelTranslationKey:{type:"string"}},required:["page"]},yY={type:"object",properties:{image:{type:"string"},srcSet:{type:"string"},altText:{type:"string"},link:{type:"string"},favicon:{type:"string"}},additionalProperties:!1},vY={type:"object",properties:Object.assign({items:lT},Zr.properties),additionalProperties:!1},bY={type:"object",additionalProperties:$$e},OY={type:"object",properties:Object.assign({items:lT,copyrightText:{type:"string"},logo:Zr},Zr.properties),additionalProperties:!1},xY={type:"object",properties:Object.assign({separatorLine:{type:"boolean"},linePosition:{type:"string",enum:["top","bottom"],default:"bottom"}},Zr.properties),additionalProperties:!1},wY={type:"object",properties:{head:{type:"array",items:NL},body:{type:"array",items:NL}},additionalProperties:!1},SY={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}},CY={type:"object",properties:Object.assign({engine:{type:"string",enum:["flexsearch","typesense"],default:"flexsearch"},ai:E$e,filters:I$e,placement:{type:"string",default:"navbar"},shortcuts:{type:"array",items:{type:"string"},default:["⌘+K,ctrl+K"]},suggestedPages:{type:"array",items:T$e}},Zr.properties),additionalProperties:!1},PY={type:"object",properties:{hide:{type:"boolean"},suggestions:{default:[],type:"array",items:{type:"string"}},prompt:{type:"string"},trigger:{type:"object",properties:{hide:{type:"boolean",default:!1},inputType:{type:"string",enum:["button","icon"],default:"button"},inputIcon:{type:"string",enum:["chat","sparkles","redocly"],default:"redocly"}},additionalProperties:!1}},additionalProperties:!1},kY={type:"object",properties:Object.assign({ignoreDetection:{type:"boolean"},modes:{type:"array",items:{type:"string"},default:["light","dark"]}},Zr.properties),additionalProperties:!1},_$e={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},$Y={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:_$e},additionalProperties:!1},EY={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},AY={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:{}},p0=Object.assign(Object.assign({},TL),{properties:Object.assign(Object.assign({},TL.properties),k$e.properties)}),R$e={type:"object",properties:{includeInDevelopment:{type:"boolean"},scriptUrl:{type:"string"},pageViewEventName:{type:"string"}},additionalProperties:!1,required:["scriptUrl"]},j$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"]},D$e={type:"object",properties:{includeInDevelopment:{type:"boolean"},orgId:{type:"string"}},additionalProperties:!1,required:["orgId"]},M$e={type:"object",properties:{includeInDevelopment:{type:"boolean"},appId:{type:"string"}},additionalProperties:!1,required:["appId"]},N$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"]},L$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"]},Q$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"]},IY={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"]},V$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:IY}},additionalProperties:!1,required:["trackingId"]},TY={type:"object",properties:{adobe:R$e,amplitude:j$e,fullstory:D$e,heap:M$e,rudderstack:N$e,segment:L$e,gtm:Q$e,ga:V$e}},_Y={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},RY={type:"object",properties:{hide:{type:"boolean"},showForUnversioned:{type:"boolean"}}},jY={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},z$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"}}}},B$e={type:"object",additionalProperties:!0,required:["slug","items"],properties:{slug:{type:"string"},filters:{type:"array",items:z$e},groupByFirstFilter:{type:"boolean"},filterValuesCasing:{type:"string",enum:["sentence","original","lowercase","uppercase"]},items:lT,requiredPermission:{type:"string"},separateVersions:{type:"boolean"},title:{type:"string"},titleTranslationKey:{type:"string"},description:{type:"string"},descriptionTranslationKey:{type:"string"}}},m0={type:"object",patternProperties:{".*":B$e}},DY={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"}}},oT),sT),aT),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"}}},q$e={type:"object",required:["key"],properties:{key:{type:"string"}},additionalProperties:!1},F$e={type:"object",required:["type"],properties:{type:{type:"string"}},additionalProperties:!1},W$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},Cs={type:"object",properties:{slug:{type:"string"},hide:{type:"boolean"},includes:{type:"array",items:F$e},excludes:{type:"array",items:q$e},filters:{type:"array",items:W$e},titleTranslationKey:{type:"string"},descriptionTranslationKey:{type:"string"},catalogSwitcherLabelTranslationKey:{type:"string"}},additionalProperties:!1},U$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},X$e={type:"object",required:["type","properties"],properties:{type:{type:"string",enum:["object"]},description:{type:"string"},properties:{type:"object",additionalProperties:U$e},required:{type:"array",items:{type:"string"}},additionalProperties:{type:"boolean"}},additionalProperties:!0},Z$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:X$e,icon:{type:"object",properties:{src:{type:"string"},srcSet:{type:"string"}},additionalProperties:!1}},additionalProperties:!1},G$e={type:"object",additionalProperties:Z$e},MY={type:"object",properties:{entityTypes:G$e,catalogs:{type:"object",properties:{all:Cs,services:Cs,domains:Cs,teams:Cs,users:Cs,apiDescriptions:Cs,dataSchemas:Cs,apiOperations:Cs},additionalProperties:Cs}},additionalProperties:!1},No={type:"object",properties:{imports:{type:"array",items:{type:"string"}},logo:yY,navbar:vY,products:bY,footer:OY,sidebar:xY,scripts:wY,links:SY,feedback:Kx,search:CY,aiAssistant:PY,colorMode:kY,navigation:$Y,codeSnippet:EY,markdown:AY,openapi:p0,graphql:f0,analytics:TY,userMenu:_Y,versionPicker:RY,breadcrumbs:jY,catalog:m0,entitiesCatalog:MY,catalogClassic:m0,scorecard:DY},additionalProperties:!0},Y$e="https://redocly.com/sso/teams";var g0;(function(t){t.OIDC="OIDC",t.SAML2="SAML2"})(g0||(g0={}));var y0;(function(t){t.SERVICE_ACCOUNT="SERVICE_ACCOUNT",t.OAUTH2="OAUTH2"})(y0||(y0={}));var LL;(function(t){t.STACKED="stacked",t.THREE_PANEL="three-panel"})(LL||(LL={}));const H$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","returns","returnedBy"];function oE(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"?oE(i,e):i)]:[r,oE(n,e)]}).filter(Boolean))}const J$e={type:"object",additionalProperties:{type:"string"}},K$e={type:"object",additionalProperties:!1,patternProperties:{"^[a-zA-Z0-9_-]+$":{type:"string",pattern:"^https?://[^\\s/$.?#].[^\\s]*$"}}},Vg={type:"string",enum:["error","warn","off"]},eEe={type:"object",additionalProperties:!1,properties:{schemaCheck:Vg,statusCodeCheck:Vg,contentTypeCheck:Vg,successCriteriaCheck:Vg}},tEe={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},rEe={type:"object",properties:{event:{type:"string",enum:["build"]}},required:["event"],additionalProperties:!1},nEe={type:"object",properties:{warn:{type:"number"},error:{type:"number"}},additionalProperties:!1},iEe={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:[tEe,rEe]},inputs:J$e,servers:K$e,severity:eEe,slo:nEe},required:["path","trigger","agent"],additionalProperties:!1}}},additionalProperties:!1},oEe={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},sEe={type:"object",properties:{type:{type:"string",const:g0.OIDC},title:{type:"string"},pkce:{type:"boolean",default:!1},configurationUrl:{type:"string",minLength:1},configuration:oEe,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},aEe={type:"object",properties:{type:{type:"string",const:g0.SAML2},title:{type:"string"},issuerId:{type:"string"},entityId:{type:"string"},ssoUrl:{type:"string"},x509PublicCert:{type:"string"},teamsAttributeName:{type:"string",default:Y$e},teamsAttributeMap:{type:"object",additionalProperties:{type:"string"}},defaultTeams:{type:"array",items:{type:"string"}}},additionalProperties:!1,required:["type","issuerId","ssoUrl","x509PublicCert"]},lEe={oneOf:[sEe,aEe],discriminator:{propertyName:"type"}},cEe={type:"object",additionalProperties:lEe},uEe={oneOf:[{type:"array",items:{type:"string",enum:["REDOCLY","CORPORATE","GUEST"]},uniqueItems:!0},{type:"string",enum:["REDOCLY","CORPORATE","GUEST"]}]},dEe={type:"object",properties:{to:{type:"string"},type:{type:"number",default:301}},additionalProperties:!1},fEe={type:"object",additionalProperties:dEe,default:{}},NY={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:p0,graphql:f0,theme:{type:"object",properties:{openapi:p0,graphql:f0},additionalProperties:!1},title:{type:"string"},metadata:{type:"object",additionalProperties:!0}},oT),sT),aT),{extends:{type:"array",items:{type:"string"}}}),required:["root"]},hEe={type:"object",additionalProperties:!0},pEe={type:"object",additionalProperties:{type:"object",additionalProperties:!0}},QL={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},VL={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:QL},default:{llmstxt:QL.default},additionalProperties:!1},mEe={type:"object",properties:{folders:{type:"array",items:{type:"string"}}},additionalProperties:!1},wl={type:"object",additionalProperties:{type:"string"}},gEe={type:"object",properties:{teamNamePatterns:{type:"array",items:{type:"string"}},teamFolders:{type:"array",items:{type:"string"}},teamFoldersBaseRoles:wl,cms:wl,reunite:wl,features:{type:"object",properties:{aiSearch:wl},additionalProperties:!1},content:{type:"object",properties:{"**":wl},additionalProperties:wl}},additionalProperties:wl},yEe={type:"object",properties:{static:{type:"string"}},additionalProperties:!1,required:["static"]},vEe={type:"object",properties:{idp:{type:"string"}},additionalProperties:!1,required:["idp"]},bEe={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:[yEe,vEe]}},additionalProperties:!1,required:["type","apiBaseUrl"]},OEe={type:"object",properties:{type:{type:"string",const:y0.OAUTH2},tokenEndpoint:{type:"string"},clientId:{type:"string"},clientSecret:{type:"string"}},additionalProperties:!1,required:["type","tokenEndpoint","clientId","clientSecret"]},xEe={type:"object",properties:{type:{type:"string",const:y0.SERVICE_ACCOUNT},serviceAccountEmail:{type:"string"},serviceAccountPrivateKey:{type:"string"}},additionalProperties:!1,required:["type","serviceAccountEmail","serviceAccountPrivateKey"]},sE={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:[OEe,xEe],discriminator:{propertyName:"type"}}},additionalProperties:!1,required:["type","organizationName","auth"]},wEe=Object.assign(Object.assign({},sE),{properties:Object.assign(Object.assign({},sE.properties),{type:{type:"string",const:"APIGEE_EDGE"}})}),SEe={type:"object",oneOf:[sE,wEe,bEe],discriminator:{propertyName:"type"}},CEe={type:"object",required:["adapters"],additionalProperties:!1,properties:{adapters:{type:"array",items:SEe}}},zL={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"]},PEe={type:"object",properties:{name:{type:"string"},value:{type:"string"}},additionalProperties:!1,required:["name","value"]},kEe={type:"object",properties:{hide:{type:"boolean",default:!1},docs:{type:"object",properties:{hide:{type:"boolean",default:!1},name:{type:"string",default:"Docs MCP server"},ignore:{type:"array",items:{type:"string"},default:[]}},additionalProperties:!1}},additionalProperties:!1,default:{hide:!1,docs:{hide:!1,name:"MCP server",ignore:[]}}},aE={type:"object",properties:Object.assign(Object.assign(Object.assign(Object.assign({imports:{type:"array",items:{type:"string"}},licenseKey:{type:"string"},redirects:fEe,seo:VL,rbac:gEe,apiFunctions:mEe,requiresLogin:{type:"boolean"},responseHeaders:{type:"object",additionalProperties:{type:"array",items:PEe}},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:NY},extends:{type:"array",items:{type:"string"}}},oT),aT),sT),{ssoDirect:cEe,sso:uEe,residency:{type:"string",pattern:"^https?://.*"},developerOnboarding:CEe,removeAttribution:{type:"boolean"},i18n:zL,l10n:zL,metadata:hEe,metadataGlobs:pEe,ignore:{type:"array",items:{type:"string"}},theme:No,reunite:iEe,logo:yY,navbar:vY,products:bY,footer:OY,sidebar:xY,scripts:wY,links:SY,feedback:Kx,search:CY,aiAssistant:PY,colorMode:kY,navigation:$Y,codeSnippet:EY,markdown:AY,openapi:p0,graphql:f0,analytics:TY,userMenu:_Y,versionPicker:RY,breadcrumbs:jY,catalog:m0,entitiesCatalog:MY,catalogClassic:m0,scorecard:DY,mcp:kEe}),default:{redirects:{},seo:VL.default},additionalProperties:!0},$Ee=Object.assign(Object.assign({},oE(aE,"default")),{additionalProperties:!1});Object.assign(Object.assign({$id:"root-redocly-config"},aE),{properties:Object.assign(Object.assign({plugins:{type:"array",items:{type:"string"}}},aE.properties),{env:{type:"object",additionalProperties:$Ee}}),default:{},additionalProperties:!1});const BL={type:"object",properties:{logo:No.properties.logo,navbar:No.properties.navbar,footer:No.properties.footer,sidebar:No.properties.sidebar,search:No.properties.search,codeSnippet:No.properties.codeSnippet,breadcrumbs:No.properties.breadcrumbs,openapi:No.properties.openapi,feedback:No.properties.feedback,analytics:{type:"object",properties:{ga:IY}}},additionalProperties:!0,default:{}};Object.assign(Object.assign({},BL.properties),{apis:{type:"object",additionalProperties:NY},theme:BL});const EEe={type:"object",properties:{email:{type:"string",description:"Email of the user"}},required:["email"],additionalProperties:!0},AEe={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},IEe={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},TEe={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"},sdl:{type:"string",description:"SDL of the data structure"}},anyOf:[{required:["schema"]},{required:["sdl"]}],required:["specType"],additionalProperties:!0},_Ee={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},REe={type:"object",properties:{label:{type:"string",minLength:2,maxLength:150},url:{type:"string"}},required:["label","url"],additionalProperties:!1},jEe={type:"object",properties:{type:{type:"string",enum:H$e},key:{type:"string",minLength:2,maxLength:100}},required:["type","key"],additionalProperties:!1},If={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"},_Ee]},links:{anyOf:[{type:"null"},{type:"array",items:REe}]},relations:{anyOf:[{type:"null"},{type:"array",items:jEe}]}};Object.assign(Object.assign({},If),{type:{const:"user"},metadata:EEe}),Object.assign(Object.assign({},If),{type:{const:"api-operation"},metadata:IEe}),Object.assign(Object.assign({},If),{type:{const:"data-schema"},metadata:TEe}),Object.assign(Object.assign({},If),{type:{const:"api-description"},metadata:AEe}),Object.assign(Object.assign({},If),{type:{enum:["service","domain","team"]},metadata:{type:["object","null"],additionalProperties:!0}});const DEe={"font-awesome":"https://cdn.redocly.com/icons/fa/7.0.0",code:"https://cdn.redocly.com/icons/code/5.24.0"};var Sb={exports:{}};/* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress
|
|
515
|
+
`;var Q1,AL;function Dke(){return AL||(AL=1,Q1=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()}}),Q1}var V1,IL;function Mke(){if(IL)return V1;IL=1;var t=Dke(),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 m=document.execCommand("copy");if(!m)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 V1=i,V1}var Nke=Mke();const Lke=si(Nke);class hY{static copyCustom(e){return Lke(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 iT=(t,e="currentColor")=>t!=null&&t.startsWith("--")?`var(${t})`:t||e,pY={hide:{type:"boolean",default:!1},component:{type:"string",enum:["radio","checkbox"],default:"checkbox"},label:{type:"string"},items:{type:"array",items:{type:"string"}}},Af={type:"object",properties:pY,additionalProperties:!1},Qke={type:"object",properties:{hide:{type:"boolean",default:!1},label:{type:"string"},placeholder:{type:"string"}},additionalProperties:!1},Kx={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({},pY),{like:Af,dislike:Af,satisfied:Af,neutral:Af,dissatisfied:Af}),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:Qke},additionalProperties:!1}},additionalProperties:!1},Vke={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},mY={type:"array",items:{type:"object",properties:{title:{type:"string"},url:{type:"string"}},required:["url"],additionalProperties:!1}},TL={type:"object",properties:{licenseKey:{type:"string"},hideLoading:{type:"boolean"},disableRouter:{type:"boolean"},hideSidebar:{type:"boolean"},feedback:Kx,hideReplay:{type:"boolean"},oAuth2RedirectURI:{type:"string",nullable:!0},corsProxyUrl:{type:"string"},sortRequiredPropsFirst:{type:"boolean"},sanitize:{type:"boolean"},hideDownloadButtons:{type:"boolean"},downloadUrls:mY,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:Vke,ignoreNamedSchemas:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},hidePropertiesPrefix:{type:"boolean"},excludeFromSearch:{type:"boolean"},showSchemaCatalogLinks:{type:"boolean"}},additionalProperties:!1},Gc={type:"object",properties:{includeByName:{type:"array",items:{type:"string"}},excludeByName:{type:"array",items:{type:"string"}}},additionalProperties:!1},zke={type:"object",properties:{name:{type:"string"},items:Gc,queries:Gc,mutations:Gc,subscriptions:Gc,types:Gc,directives:Gc},required:["name"],additionalProperties:!1},Bke={properties:{requireExactGroups:{type:"boolean"},groups:{type:"array",items:zke},otherItemsGroupName:{type:"string"}}},f0={type:"object",properties:{menu:{type:"object",properties:Object.assign({},Bke.properties),additionalProperties:!1},servers:{type:"array",items:{type:"object",properties:{url:{type:"string"},description:{type:"string"},variables:{type:"object",additionalProperties:!0}},required:["url"]}},info:{type:"object",properties:{title:{type:"string"},description:{type:"string"},summary:{type:"string"},version:{type:"string"},termsOfService:{type:"string"},contact:{type:"object",properties:{name:{type:"string"},email:{type:"string"},url:{type:"string"}}},license:{type:"object",properties:{name:{type:"string"},url:{type:"string"}}}}},sidebar:{type:"object",properties:{hide:{type:"boolean"}}},downloadUrls:mY,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:Kx,layout:{type:"string",enum:["stacked","three-panel"]},showBuiltInScalars:{type:"boolean"},showBuiltInDirectives:{type:"boolean"}},additionalProperties:!1},qke={type:"object",properties:{label:{type:"string"},lang:{enum:["curl","C#","Go","Java","Java8+Apache","JavaScript","Node.js","PHP","Python","R","Ruby"]}},required:["lang"]},Fke={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"]},Wke={type:"object",properties:{beforeInfo:{type:"array",items:_L},end:{type:"array",items:_L}}},Ql={type:"object",properties:{main:{type:"string"},light:{type:"string"},dark:{type:"string"},contrastText:{type:"string"}}},Ng={type:"object",properties:{backgroundColor:{type:"string"},borderColor:{type:"string"},color:{type:"string"},tabTextColor:{type:"string"}}},Uke={type:"object",properties:ew(Ql.properties,["light","dark"])},Xke={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"}}},Zke={type:"object",properties:{error:Ng,info:Ng,redirect:Ng,success:Ng}},Gke={type:"object",properties:Wd(Ql.properties,["dark"])},Yke={type:"object",properties:{primary:{type:"string"},secondary:{type:"string"},light:{type:"string"}}},Hke={type:"object",properties:{accent:Ql,border:Uke,error:Ql,http:Xke,primary:Ql,responses:Zke,secondary:Gke,success:Ql,text:Yke,tonalOffset:{type:"number"},warning:Ql}},Lg={type:"object",properties:{fontSize:{type:"string"},padding:{type:"string"},minWidth:{type:"string"}}},Jke={type:"object",properties:{small:Lg,medium:Lg,large:Lg,xlarge:Lg}},fs={type:"object",properties:{fontFamily:{type:"string"},fontSize:{type:"string"},fontWeight:{type:"string"},lineHeight:{type:"string"}}},Kke={type:"object",properties:Object.assign(Object.assign({},Wd(fs.properties,["fontSize","lineHeight"])),{borderRadius:{type:"string"},hoverStyle:{type:"string"},boxShadow:{type:"string"},hoverBoxShadow:{type:"string"},sizes:Jke})},RL={type:"object",properties:ew(fs.properties,["fontSize","lineHeight"])},e$e={type:"object",properties:{medium:RL,small:RL}},t$e={type:"object",properties:Object.assign(Object.assign({},Wd(fs.properties,["fontSize","lineHeight"])),{borderRadius:{type:"string"},color:{type:"string"},sizes:e$e})},r$e={type:"object",properties:{top:{type:"string"},width:{type:"string"},height:{type:"string"}}},n$e={type:"object",properties:{borderRadius:{type:"string"},backgroundColor:{type:"string"}}},jL={type:"object",properties:{fullWidth:{type:"boolean"}}},i$e={type:"object",properties:{buttons:Kke,httpBadges:t$e,layoutControls:r$e,panels:n$e,tryItButton:jL,tryItSendButton:jL}},h0={type:"object",properties:{small:{type:"string"},medium:{type:"string"},large:{type:"string"}}},o$e={type:"object",properties:{maxWidth:h0}},s$e={type:"object",properties:{maxWidth:h0,middlePanelMaxWidth:h0}},a$e={type:"object",properties:{showDarkRightPanel:{type:"boolean"},stacked:o$e,"three-panel":s$e}},DL={type:"object",properties:{backgroundColor:{type:"string"},border:{type:"string"}}},l$e={type:"object",properties:{breakFieldNames:{type:"boolean"},caretColor:{type:"string"},caretSize:{type:"string"},constraints:DL,defaultDetailsWidth:{type:"string"},examples:DL,labelsTextSize:{type:"string"},linesColor:{type:"string"},nestedBackground:{type:"string"},nestingSpacing:{type:"string"},requireLabelColor:{type:"string"},typeNameColor:{type:"string"},typeTitleColor:{type:"string"}}},gY={type:"object",properties:{subItemsColor:{type:"string"},textTransform:{type:"string"},fontWeight:{type:"string"}}},c$e={type:"object",properties:ew(gY.properties,["textTransform"])},u$e={type:"object",properties:{unit:{type:"number"},paddingHorizontal:{type:"string"},paddingVertical:{type:"string"},offsetTop:{type:"string"},offsetLeft:{type:"string"},offsetNesting:{type:"string"}}},d$e={type:"object",properties:Object.assign(Object.assign({},Wd(fs.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:gY,level1items:c$e,rightLineColor:{type:"string"},separatorLabelColor:{type:"string"},showAtBreakpoint:{type:"string"},spacing:u$e,textColor:{type:"string"},width:{type:"string"}})},Qg={type:"object",properties:Object.assign(Object.assign({},fs.properties),{color:{type:"string"},transform:{type:"string"}})},f$e={type:"object",properties:Object.assign(Object.assign({},fs.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"}})},h$e={type:"object",properties:Wd(fs.properties,["fontSize"])},p$e={type:"object",properties:{color:{type:"string"},hover:{type:"string"},textDecoration:{type:"string"},hoverTextDecoration:{type:"string"},visited:{type:"string"}}},m$e={type:"object",properties:Object.assign(Object.assign({code:f$e,fieldName:fs},ew(fs.properties,["fontSize","fontFamily"])),{fontWeightBold:{type:"string"},fontWeightLight:{type:"string"},fontWeightRegular:{type:"string"},heading1:Qg,heading2:Qg,heading3:Qg,headings:h$e,lineHeight:{type:"string"},links:p$e,optimizeSpeed:{type:"boolean"},rightPanelHeading:Qg,smoothing:{type:"string",enum:["auto","none","antialiased","subpixel-antialiased","grayscale"]}})},g$e={type:"object",properties:Object.assign({color:{type:"string"}},Wd(fs.properties,["fontWeight"]))},y$e={type:"object",properties:{backgroundColor:{type:"string"},borderRadius:{type:"string"},tokens:g$e}},v$e={type:"object",properties:{gutter:{type:"string"},maxHeight:{type:"string"},maxWidth:{type:"string"}}},b$e={type:"object",properties:{backgroundColor:{type:"string"},color:{type:"string"}}},ML={type:"object",properties:{custom:{type:"string"}}},O$e={type:"object",properties:{DownloadButton:ML,NextSectionButton:ML}},x$e={type:"object",properties:{backgroundColor:{type:"string"},panelBackgroundColor:{type:"string"},panelControlsBackgroundColor:{type:"string"},showAtBreakpoint:{type:"string"},textColor:{type:"string"},width:{type:"string"}}},w$e={type:"object",properties:{borderRadius:{type:"string"}}},S$e={type:"object",properties:{sectionHorizontal:{type:"number"},sectionVertical:{type:"number"},unit:{type:"number"}}},C$e={type:"object",properties:{breakpoints:h0,codeBlock:y$e,colors:Hke,components:i$e,layout:a$e,logo:v$e,fab:b$e,overrides:O$e,rightPanel:x$e,schema:l$e,shape:w$e,sidebar:d$e,spacing:S$e,typography:m$e,links:{properties:{color:{type:"string"}}},codeSample:{properties:{backgroundColor:{type:"string"}}}}},P$e={type:"object",properties:{skipOptionalParameters:{type:"boolean"},languages:{type:"array",items:qke}},required:["languages"]},k$e={properties:{theme:C$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:P$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:Fke,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:Wke,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 ew(t,e){return Object.fromEntries(e.filter(r=>r in t).map(r=>[r,t[r]]))}function Wd(t,e){return Object.fromEntries(Object.entries(t).filter(([r])=>!e.includes(r)))}const xs={type:"object",additionalProperties:{oneOf:[{type:"string"},{type:"object"}]}},oT={rules:xs,oas2Rules:xs,oas3_0Rules:xs,oas3_1Rules:xs,oas3_2Rules:xs,async2Rules:xs,async3Rules:xs,arazzo1Rules:xs,overlay1Rules:xs},ws={type:"object",additionalProperties:!0},sT={preprocessors:ws,oas2Preprocessors:ws,oas3_0Preprocessors:ws,oas3_1Preprocessors:ws,oas3_2Preprocessors:ws,async2Preprocessors:ws,async3Preprocessors:ws,arazzo1Preprocessors:ws,overlay1Preprocessors:ws},Ss={type:"object",additionalProperties:!0},aT={decorators:Ss,oas2Decorators:Ss,oas3_0Decorators:Ss,oas3_1Decorators:Ss,oas3_2Decorators:Ss,async2Decorators:Ss,async3Decorators:Ss,arazzo1Decorators:Ss,overlay1Decorators:Ss},Zr={type:"object",properties:{hide:{type:"boolean"}},additionalProperties:!1},NL={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},z1={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"}}}},lT={type:"array",items:Object.assign(Object.assign({},z1),{properties:Object.assign(Object.assign({},z1.properties),{items:{type:"array",items:z1}})})},$$e={type:"object",properties:{name:{type:"string"},icon:{type:"string"},folder:{type:"string"}},additionalProperties:!1,required:["name","folder"]},E$e={type:"object",properties:{hide:{type:"boolean",default:!1},suggestions:{default:[],type:"array",items:{type:"string"}},prompt:{type:"string"}},additionalProperties:!1},A$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}},I$e={type:"object",properties:Object.assign({facets:A$e},Zr.properties),additionalProperties:!1},T$e={type:"object",properties:{page:{type:"string"},label:{type:"string"},labelTranslationKey:{type:"string"}},required:["page"]},yY={type:"object",properties:{image:{type:"string"},srcSet:{type:"string"},altText:{type:"string"},link:{type:"string"},favicon:{type:"string"}},additionalProperties:!1},vY={type:"object",properties:Object.assign({items:lT},Zr.properties),additionalProperties:!1},bY={type:"object",additionalProperties:$$e},OY={type:"object",properties:Object.assign({items:lT,copyrightText:{type:"string"},logo:Zr},Zr.properties),additionalProperties:!1},xY={type:"object",properties:Object.assign({separatorLine:{type:"boolean"},linePosition:{type:"string",enum:["top","bottom"],default:"bottom"}},Zr.properties),additionalProperties:!1},wY={type:"object",properties:{head:{type:"array",items:NL},body:{type:"array",items:NL}},additionalProperties:!1},SY={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}},CY={type:"object",properties:Object.assign({engine:{type:"string",enum:["flexsearch","typesense"],default:"flexsearch"},ai:E$e,filters:I$e,placement:{type:"string",default:"navbar"},shortcuts:{type:"array",items:{type:"string"},default:["⌘+K,ctrl+K"]},suggestedPages:{type:"array",items:T$e}},Zr.properties),additionalProperties:!1},PY={type:"object",properties:{hide:{type:"boolean"},suggestions:{default:[],type:"array",items:{type:"string"}},prompt:{type:"string"},trigger:{type:"object",properties:{hide:{type:"boolean",default:!1},inputType:{type:"string",enum:["button","icon"],default:"button"},inputIcon:{type:"string",enum:["chat","sparkles","redocly"],default:"redocly"}},additionalProperties:!1}},additionalProperties:!1},kY={type:"object",properties:Object.assign({ignoreDetection:{type:"boolean"},modes:{type:"array",items:{type:"string"},default:["light","dark"]}},Zr.properties),additionalProperties:!1},_$e={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},$Y={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:_$e},additionalProperties:!1},EY={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},AY={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:{}},p0=Object.assign(Object.assign({},TL),{properties:Object.assign(Object.assign({},TL.properties),k$e.properties)}),R$e={type:"object",properties:{includeInDevelopment:{type:"boolean"},scriptUrl:{type:"string"},pageViewEventName:{type:"string"}},additionalProperties:!1,required:["scriptUrl"]},j$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"]},D$e={type:"object",properties:{includeInDevelopment:{type:"boolean"},orgId:{type:"string"}},additionalProperties:!1,required:["orgId"]},M$e={type:"object",properties:{includeInDevelopment:{type:"boolean"},appId:{type:"string"}},additionalProperties:!1,required:["appId"]},N$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"]},L$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"]},Q$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"]},IY={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"]},V$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:IY}},additionalProperties:!1,required:["trackingId"]},TY={type:"object",properties:{adobe:R$e,amplitude:j$e,fullstory:D$e,heap:M$e,rudderstack:N$e,segment:L$e,gtm:Q$e,ga:V$e}},_Y={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},RY={type:"object",properties:{hide:{type:"boolean"},showForUnversioned:{type:"boolean"}}},jY={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},z$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"}}}},B$e={type:"object",additionalProperties:!0,required:["slug","items"],properties:{slug:{type:"string"},filters:{type:"array",items:z$e},groupByFirstFilter:{type:"boolean"},filterValuesCasing:{type:"string",enum:["sentence","original","lowercase","uppercase"]},items:lT,requiredPermission:{type:"string"},separateVersions:{type:"boolean"},title:{type:"string"},titleTranslationKey:{type:"string"},description:{type:"string"},descriptionTranslationKey:{type:"string"}}},m0={type:"object",patternProperties:{".*":B$e}},DY={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"}}},oT),sT),aT),additionalProperties:!1}},targets:{type:"array",items:{type:"object",required:["where"],properties:{minimumLevel:{type:"string"},rules:{type:"object",additionalProperties:!0},ignore:{type:"boolean"},where:{type:"object",required:["metadata"],properties:{metadata:{type:"object",additionalProperties:{}}},additionalProperties:!1}},additionalProperties:!1}},ignore:{type:"array",items:{type:"string"}},fromProjectUrl:{type:"string",format:"uri"}}},q$e={type:"object",required:["key"],properties:{key:{type:"string"}},additionalProperties:!1},F$e={type:"object",required:["type"],properties:{type:{type:"string"}},additionalProperties:!1},W$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},Cs={type:"object",properties:{slug:{type:"string"},hide:{type:"boolean"},includes:{type:"array",items:F$e},excludes:{type:"array",items:q$e},filters:{type:"array",items:W$e},titleTranslationKey:{type:"string"},descriptionTranslationKey:{type:"string"},catalogSwitcherLabelTranslationKey:{type:"string"}},additionalProperties:!1},U$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},X$e={type:"object",required:["type","properties"],properties:{type:{type:"string",enum:["object"]},description:{type:"string"},properties:{type:"object",additionalProperties:U$e},required:{type:"array",items:{type:"string"}},additionalProperties:{type:"boolean"}},additionalProperties:!0},Z$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:X$e,icon:{type:"object",properties:{src:{type:"string"},srcSet:{type:"string"}},additionalProperties:!1}},additionalProperties:!1},G$e={type:"object",additionalProperties:Z$e},MY={type:"object",properties:{show:{type:"boolean",default:!1},entityTypes:G$e,catalogs:{type:"object",properties:{all:Cs,services:Cs,domains:Cs,teams:Cs,users:Cs,apiDescriptions:Cs,dataSchemas:Cs,apiOperations:Cs},additionalProperties:Cs}},additionalProperties:!1},No={type:"object",properties:{imports:{type:"array",items:{type:"string"}},logo:yY,navbar:vY,products:bY,footer:OY,sidebar:xY,scripts:wY,links:SY,feedback:Kx,search:CY,aiAssistant:PY,colorMode:kY,navigation:$Y,codeSnippet:EY,markdown:AY,openapi:p0,graphql:f0,analytics:TY,userMenu:_Y,versionPicker:RY,breadcrumbs:jY,catalog:m0,entitiesCatalog:MY,catalogClassic:m0,scorecard:DY},additionalProperties:!0},Y$e="https://redocly.com/sso/teams";var g0;(function(t){t.OIDC="OIDC",t.SAML2="SAML2"})(g0||(g0={}));var y0;(function(t){t.SERVICE_ACCOUNT="SERVICE_ACCOUNT",t.OAUTH2="OAUTH2"})(y0||(y0={}));var LL;(function(t){t.STACKED="stacked",t.THREE_PANEL="three-panel"})(LL||(LL={}));const H$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","returns","returnedBy"];function oE(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"?oE(i,e):i)]:[r,oE(n,e)]}).filter(Boolean))}const J$e={type:"object",additionalProperties:{type:"string"}},K$e={type:"object",additionalProperties:!1,patternProperties:{"^[a-zA-Z0-9_-]+$":{type:"string",pattern:"^https?://[^\\s/$.?#].[^\\s]*$"}}},Vg={type:"string",enum:["error","warn","off"]},eEe={type:"object",additionalProperties:!1,properties:{schemaCheck:Vg,statusCodeCheck:Vg,contentTypeCheck:Vg,successCriteriaCheck:Vg}},tEe={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},rEe={type:"object",properties:{event:{type:"string",enum:["build"]}},required:["event"],additionalProperties:!1},nEe={type:"object",properties:{warn:{type:"number"},error:{type:"number"}},additionalProperties:!1},iEe={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:[tEe,rEe]},inputs:J$e,servers:K$e,severity:eEe,slo:nEe},required:["path","trigger","agent"],additionalProperties:!1}}},additionalProperties:!1},oEe={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},sEe={type:"object",properties:{type:{type:"string",const:g0.OIDC},title:{type:"string"},pkce:{type:"boolean",default:!1},configurationUrl:{type:"string",minLength:1},configuration:oEe,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},aEe={type:"object",properties:{type:{type:"string",const:g0.SAML2},title:{type:"string"},issuerId:{type:"string"},entityId:{type:"string"},ssoUrl:{type:"string"},x509PublicCert:{type:"string"},teamsAttributeName:{type:"string",default:Y$e},teamsAttributeMap:{type:"object",additionalProperties:{type:"string"}},defaultTeams:{type:"array",items:{type:"string"}}},additionalProperties:!1,required:["type","issuerId","ssoUrl","x509PublicCert"]},lEe={oneOf:[sEe,aEe],discriminator:{propertyName:"type"}},cEe={type:"object",additionalProperties:lEe},uEe={oneOf:[{type:"array",items:{type:"string",enum:["REDOCLY","CORPORATE","GUEST"]},uniqueItems:!0},{type:"string",enum:["REDOCLY","CORPORATE","GUEST"]}]},dEe={type:"object",properties:{to:{type:"string"},type:{type:"number",default:301}},additionalProperties:!1},fEe={type:"object",additionalProperties:dEe,default:{}},NY={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:p0,graphql:f0,theme:{type:"object",properties:{openapi:p0,graphql:f0},additionalProperties:!1},title:{type:"string"},metadata:{type:"object",additionalProperties:!0}},oT),sT),aT),{extends:{type:"array",items:{type:"string"}}}),required:["root"]},hEe={type:"object",additionalProperties:!0},pEe={type:"object",additionalProperties:{type:"object",additionalProperties:!0}},QL={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},VL={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:QL},default:{llmstxt:QL.default},additionalProperties:!1},mEe={type:"object",properties:{folders:{type:"array",items:{type:"string"}}},additionalProperties:!1},wl={type:"object",additionalProperties:{type:"string"}},gEe={type:"object",properties:{teamNamePatterns:{type:"array",items:{type:"string"}},teamFolders:{type:"array",items:{type:"string"}},teamFoldersBaseRoles:wl,cms:wl,reunite:wl,features:{type:"object",properties:{aiSearch:wl},additionalProperties:!1},content:{type:"object",properties:{"**":wl},additionalProperties:wl}},additionalProperties:wl},yEe={type:"object",properties:{static:{type:"string"}},additionalProperties:!1,required:["static"]},vEe={type:"object",properties:{idp:{type:"string"}},additionalProperties:!1,required:["idp"]},bEe={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:[yEe,vEe]}},additionalProperties:!1,required:["type","apiBaseUrl"]},OEe={type:"object",properties:{type:{type:"string",const:y0.OAUTH2},tokenEndpoint:{type:"string"},clientId:{type:"string"},clientSecret:{type:"string"}},additionalProperties:!1,required:["type","tokenEndpoint","clientId","clientSecret"]},xEe={type:"object",properties:{type:{type:"string",const:y0.SERVICE_ACCOUNT},serviceAccountEmail:{type:"string"},serviceAccountPrivateKey:{type:"string"}},additionalProperties:!1,required:["type","serviceAccountEmail","serviceAccountPrivateKey"]},sE={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:[OEe,xEe],discriminator:{propertyName:"type"}}},additionalProperties:!1,required:["type","organizationName","auth"]},wEe=Object.assign(Object.assign({},sE),{properties:Object.assign(Object.assign({},sE.properties),{type:{type:"string",const:"APIGEE_EDGE"}})}),SEe={type:"object",oneOf:[sE,wEe,bEe],discriminator:{propertyName:"type"}},CEe={type:"object",required:["adapters"],additionalProperties:!1,properties:{adapters:{type:"array",items:SEe}}},zL={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"]},PEe={type:"object",properties:{name:{type:"string"},value:{type:"string"}},additionalProperties:!1,required:["name","value"]},kEe={type:"object",properties:{hide:{type:"boolean",default:!1},docs:{type:"object",properties:{hide:{type:"boolean",default:!1},name:{type:"string",default:"Docs MCP server"},ignore:{type:"array",items:{type:"string"},default:[]}},additionalProperties:!1}},additionalProperties:!1,default:{hide:!1,docs:{hide:!1,name:"MCP server",ignore:[]}}},aE={type:"object",properties:Object.assign(Object.assign(Object.assign(Object.assign({imports:{type:"array",items:{type:"string"}},licenseKey:{type:"string"},redirects:fEe,seo:VL,rbac:gEe,apiFunctions:mEe,requiresLogin:{type:"boolean"},responseHeaders:{type:"object",additionalProperties:{type:"array",items:PEe}},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:NY},extends:{type:"array",items:{type:"string"}}},oT),aT),sT),{ssoDirect:cEe,sso:uEe,residency:{type:"string",pattern:"^https?://.*"},developerOnboarding:CEe,removeAttribution:{type:"boolean"},i18n:zL,l10n:zL,metadata:hEe,metadataGlobs:pEe,ignore:{type:"array",items:{type:"string"}},theme:No,reunite:iEe,logo:yY,navbar:vY,products:bY,footer:OY,sidebar:xY,scripts:wY,links:SY,feedback:Kx,search:CY,aiAssistant:PY,colorMode:kY,navigation:$Y,codeSnippet:EY,markdown:AY,openapi:p0,graphql:f0,analytics:TY,userMenu:_Y,versionPicker:RY,breadcrumbs:jY,catalog:m0,entitiesCatalog:MY,catalogClassic:m0,scorecard:DY,mcp:kEe}),default:{redirects:{},seo:VL.default},additionalProperties:!0},$Ee=Object.assign(Object.assign({},oE(aE,"default")),{additionalProperties:!1});Object.assign(Object.assign({$id:"root-redocly-config"},aE),{properties:Object.assign(Object.assign({plugins:{type:"array",items:{type:"string"}}},aE.properties),{env:{type:"object",additionalProperties:$Ee}}),default:{},additionalProperties:!1});const BL={type:"object",properties:{logo:No.properties.logo,navbar:No.properties.navbar,footer:No.properties.footer,sidebar:No.properties.sidebar,search:No.properties.search,codeSnippet:No.properties.codeSnippet,breadcrumbs:No.properties.breadcrumbs,openapi:No.properties.openapi,feedback:No.properties.feedback,analytics:{type:"object",properties:{ga:IY}}},additionalProperties:!0,default:{}};Object.assign(Object.assign({},BL.properties),{apis:{type:"object",additionalProperties:NY},theme:BL});const EEe={type:"object",properties:{email:{type:"string",description:"Email of the user"}},required:["email"],additionalProperties:!0},AEe={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},IEe={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},TEe={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"},sdl:{type:"string",description:"SDL of the data structure"}},anyOf:[{required:["schema"]},{required:["sdl"]}],required:["specType"],additionalProperties:!0},_Ee={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},REe={type:"object",properties:{label:{type:"string",minLength:2,maxLength:150},url:{type:"string"}},required:["label","url"],additionalProperties:!1},jEe={type:"object",properties:{type:{type:"string",enum:H$e},key:{type:"string",minLength:2,maxLength:100}},required:["type","key"],additionalProperties:!1},If={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"},_Ee]},links:{anyOf:[{type:"null"},{type:"array",items:REe}]},relations:{anyOf:[{type:"null"},{type:"array",items:jEe}]}};Object.assign(Object.assign({},If),{type:{const:"user"},metadata:EEe}),Object.assign(Object.assign({},If),{type:{const:"api-operation"},metadata:IEe}),Object.assign(Object.assign({},If),{type:{const:"data-schema"},metadata:TEe}),Object.assign(Object.assign({},If),{type:{const:"api-description"},metadata:AEe}),Object.assign(Object.assign({},If),{type:{enum:["service","domain","team"]},metadata:{type:["object","null"],additionalProperties:!0}});const DEe={"font-awesome":"https://cdn.redocly.com/icons/fa/7.0.0",code:"https://cdn.redocly.com/icons/code/5.24.0"};var Sb={exports:{}};/* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress
|
|
516
516
|
* @license MIT */var MEe=Sb.exports,qL;function NEe(){return qL||(qL=1,(function(t,e){(function(r,n){t.exports=n()})(MEe,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(m){var p,y;for(p in m)y=m[p],y!==void 0&&m.hasOwnProperty(p)&&(n[p]=y);return this},r.status=null,r.set=function(m){var p=r.isStarted();m=i(m,n.minimum,1),r.status=m===1?null:m;var y=r.render(!p),v=y.querySelector(n.barSelector),b=n.speed,O=n.easing;return y.offsetWidth,a(function(w){n.positionUsing===""&&(n.positionUsing=r.getPositioningCSS()),l(v,s(m,b,O)),m===1?(l(y,{transition:"none",opacity:1}),y.offsetWidth,setTimeout(function(){l(y,{transition:"all "+b+"ms linear",opacity:0}),setTimeout(function(){r.remove(),w()},b)},b)):setTimeout(w,b)}),this},r.isStarted=function(){return typeof r.status=="number"},r.start=function(){r.status||r.set(0);var m=function(){setTimeout(function(){r.status&&(r.trickle(),m())},n.trickleSpeed)};return n.trickle&&m(),this},r.done=function(m){return!m&&!r.status?this:r.inc(.3+.5*Math.random()).set(1)},r.inc=function(m){var p=r.status;return p?(typeof m!="number"&&(m=(1-p)*i(Math.random()*p,.1,.95)),p=i(p+m,0,.994),r.set(p)):r.start()},r.trickle=function(){return r.inc(Math.random()*n.trickleRate)},(function(){var m=0,p=0;r.promise=function(y){return!y||y.state()==="resolved"?this:(p===0&&r.start(),m++,p++,y.always(function(){p--,p===0?(m=0,r.done()):r.set((m-p)/m)}),this)}})(),r.render=function(m){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=m?"-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 m=document.getElementById("nprogress");m&&h(m)},r.isRendered=function(){return!!document.getElementById("nprogress")},r.getPositioningCSS=function(){var m=document.body.style,p="WebkitTransform"in m?"Webkit":"MozTransform"in m?"Moz":"msTransform"in m?"ms":"OTransform"in m?"O":"";return p+"Perspective"in m?"translate3d":p+"Transform"in m?"translate":"margin"};function i(m,p,y){return m<p?p:m>y?y:m}function o(m){return(-1+m)*100}function s(m,p,y){var v;return n.positionUsing==="translate3d"?v={transform:"translate3d("+o(m)+"%,0,0)"}:n.positionUsing==="translate"?v={transform:"translate("+o(m)+"%,0)"}:v={"margin-left":o(m)+"%"},v.transition="all "+p+"ms "+y,v}var a=(function(){var m=[];function p(){var y=m.shift();y&&y(p)}return function(y){m.push(y),m.length==1&&p()}})(),l=(function(){var m=["Webkit","O","Moz","ms"],p={};function y(w){return w.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(x,S){return S.toUpperCase()})}function v(w){var x=document.body.style;if(w in x)return w;for(var S=m.length,P=w.charAt(0).toUpperCase()+w.slice(1),I;S--;)if(I=m[S]+P,I in x)return I;return w}function b(w){return w=y(w),p[w]||(p[w]=v(w))}function O(w,x,S){x=b(x),w.style[x]=S}return function(w,x){var S=arguments,P,I;if(S.length==2)for(P in x)I=x[P],I!==void 0&&x.hasOwnProperty(P)&&O(w,P,I);else O(w,S[1],S[2])}})();function c(m,p){var y=typeof m=="string"?m:f(m);return y.indexOf(" "+p+" ")>=0}function u(m,p){var y=f(m),v=y+p;c(y,p)||(m.className=v.substring(1))}function d(m,p){var y=f(m),v;c(m,p)&&(v=y.replace(" "+p+" "," "),m.className=v.substring(1,v.length-1))}function f(m){return(" "+(m.className||"")+" ").replace(/\s+/gi," ")}function h(m){m&&m.parentNode&&m.parentNode.removeChild(m)}return r})})(Sb)),Sb.exports}var LEe=NEe();const QEe=si(LEe);QEe.configure({trickleSpeed:100,template:'<div class="bar" role="bar"><div class="peg"></div></div>'});var Cb={exports:{}},VEe=Cb.exports,FL;function zEe(){return FL||(FL=1,(function(t,e){(function(r,n){n()})(VEe,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 Da=="object"&&Da.global===Da?Da: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",m=/constructor/i.test(s.HTMLElement)||s.safari,p=/CriOS\/[\d]+/.test(navigator.userAgent);if((p||h&&m||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})})(Cb)),Cb.exports}zEe();const BEe=t=>{const{name:e,type:r,pack:n,mode:i,color:o,...s}=t,a=DEe[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?iT(o):"currentColor",maskImage:`url(${a}/${l}${e}.svg)`,maskRepeat:"no-repeat",maskPosition:"center",maskSize:"contain"};return g.jsx("svg",{...s,style:{...c,display:"inline-block",verticalAlign:"middle"}})};R(BEe).attrs(()=>({"data-component-name":"icons/CDNIcon/CDNIcon"}))`
|
|
517
517
|
height: ${({size:t})=>t||"var(--icon-height, 1em)"};
|
|
518
518
|
width: ${({size:t})=>t||"var(--icon-width, 1em)"};
|
|
@@ -1463,7 +1463,7 @@ Please report this to https://github.com/markedjs/marked.`,t){const i="<p>An err
|
|
|
1463
1463
|
&:hover {
|
|
1464
1464
|
background-color: var(--bg-color-hover);
|
|
1465
1465
|
}
|
|
1466
|
-
`;function aje({step:t}){function e(r){t.description.set(r.target.value)}return g.jsx(g.Fragment,{children:g.jsxs(O7,{children:[g.jsxs(za,{children:[g.jsx(vE,{name:g.jsxs(g.Fragment,{children:["Step ID",g.jsx(es,{tooltipProps:{content:"This step's unique identifier",placement:"right"}})]}),editorTitle:"Change step ID",attribute:t.stepId}),g.jsx(KRe,{step:t})]}),g.jsxs(za,{children:[g.jsxs(kd,{children:["Description",g.jsx(es,{tooltipProps:{content:"A brief explanation of the purpose and function of this step in workflow.",placement:"right"}})]}),g.jsx(x7,{"data-testid":"step-description-input",rows:3,value:t.description.get()||"",onChange:e})]}),g.jsx(za,{children:g.jsx(w7,{outputs:t.outputs,tooltipText:"Data generated in this step that can be used in the next steps."})}),g.jsx(za,{children:g.jsx(BRe,{successCriteria:t.successCriteria})})]})})}function lje({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-
|
|
1466
|
+
`;function aje({step:t}){function e(r){t.description.set(r.target.value)}return g.jsx(g.Fragment,{children:g.jsxs(O7,{children:[g.jsxs(za,{children:[g.jsx(vE,{name:g.jsxs(g.Fragment,{children:["Step ID",g.jsx(es,{tooltipProps:{content:"This step's unique identifier",placement:"right"}})]}),editorTitle:"Change step ID",attribute:t.stepId}),g.jsx(KRe,{step:t})]}),g.jsxs(za,{children:[g.jsxs(kd,{children:["Description",g.jsx(es,{tooltipProps:{content:"A brief explanation of the purpose and function of this step in workflow.",placement:"right"}})]}),g.jsx(x7,{"data-testid":"step-description-input",rows:3,value:t.description.get()||"",onChange:e})]}),g.jsx(za,{children:g.jsx(w7,{outputs:t.outputs,tooltipText:"Data generated in this step that can be used in the next steps."})}),g.jsx(za,{children:g.jsx(BRe,{successCriteria:t.successCriteria})})]})})}function lje({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-CcSQr1lX.js")),c=await l({multiple:!0});if(!c)return;const d=(Array.isArray(c)?c:[c]).map(Hp),h=(await Promise.all(d)).filter(m=>m!==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 g.jsx(QQ,{icon:g.jsx(q.CloseIcon,{}),variant:"secondary",onClick:o,iconPosition:"right",size:"small",children:g.jsx(VQ,{children:e[0].file.name})});if(e.length>1)return g.jsx(QQ,{icon:g.jsx(q.CloseIcon,{}),variant:"secondary",onClick:o,iconPosition:"right",size:"small",children:g.jsxs(VQ,{children:[e.length," files"]})})},[e,o]);return g.jsx(cje,{children:g.jsxs(uje,{children:[g.jsx(dje,{children:s||g.jsx(hje,{children:"Add files here"})}),g.jsxs(fje,{children:[g.jsx(Ike,{onClick:i,variant:"text","data-testid":"add-button",icon:g.jsx(q.AddIcon,{color:"--text-color-secondary"})}),g.jsx("input",{"data-testid":"file-input",hidden:!0,ref:r,type:"file",multiple:!0,accept:"files/*",onChange:n})]})]})})}const cje=R.div`
|
|
1467
1467
|
position: relative;
|
|
1468
1468
|
display: flex;
|
|
1469
1469
|
flex-grow: 1;
|
|
@@ -1588,7 +1588,7 @@ Please report this to https://github.com/markedjs/marked.`,t){const i="<p>An err
|
|
|
1588
1588
|
`,$je=R.div`
|
|
1589
1589
|
display: flex;
|
|
1590
1590
|
justify-content: center;
|
|
1591
|
-
`;function Eje({data:t,type:e,editable:r}){const n=rr(),i=t[e];function o(a,l){l&&i.merge([Yl()])}function s(a){i[a].set(it)}return g.jsx(mje,{keyName:"Param",formElements:i,onParameterChange:o,environment:n,enableInputTypeSelection:e!==On["application/x-www-form-urlencoded"],editable:r,actions:a=>g.jsx(sn,{onClick:()=>s(a),variant:"text",icon:g.jsx(q.TrashCanIcon,{})})})}const Aje=({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 m=new FileReader;m.onload=()=>{n(!1),t.set({absolutePath:null,file:f})},m.readAsDataURL(f)}},s=async d=>{var f;if(d==null||d.preventDefault(),qd())try{const{open:h}=await Promise.resolve().then(()=>require("./replay-index-
|
|
1591
|
+
`;function Eje({data:t,type:e,editable:r}){const n=rr(),i=t[e];function o(a,l){l&&i.merge([Yl()])}function s(a){i[a].set(it)}return g.jsx(mje,{keyName:"Param",formElements:i,onParameterChange:o,environment:n,enableInputTypeSelection:e!==On["application/x-www-form-urlencoded"],editable:r,actions:a=>g.jsx(sn,{onClick:()=>s(a),variant:"text",icon:g.jsx(q.TrashCanIcon,{})})})}const Aje=({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 m=new FileReader;m.onload=()=>{n(!1),t.set({absolutePath:null,file:f})},m.readAsDataURL(f)}},s=async d=>{var f;if(d==null||d.preventDefault(),qd())try{const{open:h}=await Promise.resolve().then(()=>require("./replay-index-CcSQr1lX.js")),m=await h();if(!m)return;const p=await Hp(m);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?g.jsxs(Ije,{children:[g.jsx(q.SpinnerIcon,{}),"Loading..."]}):e&&((c=e.file)!=null&&c.name)?g.jsxs(Tje,{children:[g.jsxs(_je,{children:[g.jsx(q.DocumentBlankIcon,{size:"16px"}),g.jsx(Rje,{children:(u=e.file)==null?void 0:u.name})]}),g.jsx(sn,{onClick:l,icon:g.jsx(q.TrashCanIcon,{})})]}):g.jsx(P7,{children:!e&&g.jsxs(jje,{tabIndex:0,role:"button",onKeyDown:a,onClick:s,children:[g.jsx("input",{type:"file",onChange:o,ref:i}),g.jsx(q.CloudUploadIcon,{}),"Upload file"]})})},P7=R.div`
|
|
1592
1592
|
display: flex;
|
|
1593
1593
|
align-items: center;
|
|
1594
1594
|
justify-content: flex-start;
|
|
@@ -2477,7 +2477,7 @@ ${o.message}`})}}}}),cK=({filePath:t})=>({Info:{leave(e,{report:r,location:n,con
|
|
|
2477
2477
|
${o.message}`,location:n.child("description")})}}}}),uK=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)}}}),M4e="x-internal",dK=({internalFlagProperty:t=M4e})=>{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 m=0;m<n.length;m++){if(_r(n[m])&&(c=i.resolve(n[m]).node)!=null&&c[t]){if(ft((u=s.discriminator)==null?void 0:u.mapping))for(const y in s.discriminator.mapping)(o==null?void 0:o[y])===n[m].$ref&&delete s.discriminator.mapping[y];n.splice(m,1),l=!0,m--}(d=n[m])!=null&&d[t]&&(n.splice(m,1),l=!0,m--)}else if(ft(n))for(const m of Object.keys(n)){if(_r(n[m])){const p=i.resolve(n[m]);ft(p.node)&&((f=p.node)!=null&&f[t])&&(delete n[m],l=!0)}ft(n[m])&&((h=n[m])!=null&&h[t])&&(delete n[m],l=!0)}l&&(Dp(n)||b8(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 fK(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(_r(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(ft(t))for(const s of Object.keys(t)){if(t=t,_r(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&&(Dp(t)||b8(t))&&delete n[i]}function hK(t,e,r){return t===void 0||e===void 0?!1:!Array.isArray(e)&&!Array.isArray(t)?t===e:(e=$q(e),t=$q(t),r==="any"?e.some(n=>t.includes(n)):r==="all"?e.every(n=>t.includes(n)):!1)}function $q(t){return Array.isArray(t)?t:[t]}const N4e="any",pK=({property:t,value:e,matchStrategy:r})=>{const n=r||N4e,i=o=>(o==null?void 0:o[t])&&!hK(o==null?void 0:o[t],e,n);return{any:{enter:(o,s)=>{fK(o,s,i)}}}},L4e="any",mK=({property:t,value:e,matchStrategy:r})=>{const n=r||L4e,i=o=>hK(o==null?void 0:o[t],e,n);return{any:{enter:(o,s)=>{fK(o,s,i)}}}},Q4e=({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=Eq(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:yV(Mp(l,(c=r.config)==null?void 0:c.configPath))}}),e.responses[o]=s)}if(i.request&&e.requestBody){const o=Eq(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:yV(Mp(a,(l=r.config)==null?void 0:l.configPath))}}),e.requestBody=o}}}}});function Eq(t,e){if(!_r(t))return t;const r=e(t);return r.error?void 0:JSON.parse(JSON.stringify(r.node))}const gK=()=>{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),Dp(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,[]),Dp(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())}}}},V4e={"operation-description-override":aK,"tag-description-override":lK,"info-description-override":cK,"info-override":uK,"remove-x-internal":dK,"remove-unused-components":gK,"filter-in":pK,"filter-out":mK,"media-type-examples-override":Q4e},yK=()=>{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),Dp(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())}}}},z4e={"operation-description-override":aK,"tag-description-override":lK,"info-description-override":cK,"info-override":uK,"remove-x-internal":dK,"remove-unused-components":yK,"filter-in":pK,"filter-out":mK},B4e={},q4e={},F4e={},W4e={},U4e={recommended:ZWe,"recommended-strict":GWe,minimal:HWe,all:YWe,spec:JWe},Aq={id:"",rules:{oas3:KUe,oas2:o4e,async2:c4e,async3:h4e,arazzo1:_4e,overlay1:j4e},preprocessors:{oas3:e4e,oas2:s4e,async2:u4e,async3:p4e,arazzo1:R4e,overlay1:D4e},decorators:{oas3:V4e,oas2:z4e,async2:B4e,async3:q4e,arazzo1:F4e,overlay1:W4e},configs:U4e},X4e={Root:"DefinitionRoot",ServerVariablesMap:"ServerVariableMap",Paths:["PathMap","PathsMap"],CallbacksMap:"CallbackMap",MediaTypesMap:"MediaTypeMap",ExamplesMap:"ExampleMap",EncodingMap:"EncodingsMap",HeadersMap:"HeaderMap",LinksMap:"LinkMap",OAuth2Flows:"SecuritySchemeFlows",Responses:"ResponsesMap"};function Id(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(tc);for(const h of Array.from(d.values()))n(s,h,l,c,u);function f(h,m){for(const p of m.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,X4e[d]),h=r[d];if(!f)continue;let m,p,y;const v=ft(f);if(d==="ref"&&v&&f.skip)throw new Error("ref() visitor does not support skip");typeof f=="function"?m=f:v&&(m=f.enter,p=f.leave,y=f.skip);const b=(m?1:0)+(p?1:0)+(y?1:0),O=v&&Object.keys(f).length>b,w={activatedOn:null,type:e[d],parent:l,isSkippedLevel:!1};if(O&&o(s,f,w,c+1),l&&n(s,l.type,e[d],l),m||v){if(m&&typeof m!="function")throw new Error("DEV: should be function");h.enter.push({...s,visit:m||(()=>{}),skip:y,depth:c,context:w})}if(p){if(typeof p!="function")throw new Error("DEV: should be function");h.leave.push({...s,visit:p,depth:c,context:w})}}}}function Z4e(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 G4e(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 Td(t){const{document:e,rootType:r,normalizedVisitors:n,resolvedRefMap:i,ctx:o}=t,s={},a=new Set;l(e.parsed,r,new Zu(e.source,"#/"),void 0,"");function l(c,u,d,f,h){var I,E,M,V,U,X,J,te,oe,ae;const m=(ie,he=y.source.absoluteRef)=>{if(!_r(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 Zu(k.source,T):j instanceof Jd?new Zu(j.source,""):void 0,node:_,error:j}},p=d;let y=d;const{node:v,location:b,error:O}=m(c),w=new Set;if(_r(c)){const ie=n.ref.enter;for(const{visit:he,ruleId:L,severity:D,message:Q,context:_}of ie){w.add(_);const k=S.bind(void 0,L,D,Q);he(c,{report:k,resolve:m,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:m,rawNode:c})))??!1};T.activatedOn=mV(T.activatedOn,B);let z=T.parent;for(;z;)z.activatedOn.value.nextLevelTypeActivated=mV(z.activatedOn.value.nextLevelTypeActivated,u),z=z.parent;B.skipped||(he=!0,w.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}),rc(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))),_r(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=cm(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=tc),!rc(ue)&&(ue!=null&&ue.directResolveAs)&&(ue=ue.directResolveAs,Z={$ref:Z}),ue&&ue.name===void 0&&ue.resolvable!==!1&&(ue={name:"scalar",properties:{}}),!(!rc(ue)||ue.name==="scalar"&&!_r(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=gV(T.activatedOn),T.parent){let j=T.parent;for(;j;)j.activatedOn.value.nextLevelTypeActivated=gV(j.activatedOn.value.nextLevelTypeActivated),j=j.parent}for(const{context:T,visit:j,ruleId:Z,severity:Y,message:ue}of k)!T.isSkippedLevel&&w.has(T)&&x(j,v,c,T,Z,Y,ue)}if(y=d,_r(c)){const ie=n.ref.leave;for(const{visit:he,ruleId:L,severity:D,context:Q,message:_}of ie)if(w.has(Q)){const k=S.bind(void 0,L,D,_);he(c,{report:k,resolve:m,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=S.bind(void 0,Q,_,k);ie(he,{report:T,resolve:m,rawNode:L,location:y,rawLocation:p,type:u,parent:f,key:h,parentLocations:G4e(D),specVersion:o.specVersion,config:o.config,ignoreNextVisitorsOnNode:()=>{a.add(`${y.absolutePointer}${y.pointer}`)},getVisitorData:P.bind(void 0,Q)},Z4e(D),D)}function S(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 Z0(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(T0)}function vK({node:t,ctx:e,plugins:r}){if(!t.extends)return t;const n=(t.extends||[]).map(i=>{if(!Wr(i)&&!yc.extname(i))return uXe(i,r);const o=e.resolve({$ref:i});return o.location&&o.node!==void 0?o.node:null}).filter(Ni);return wJ([...n.map(i=>vK({node:i,ctx:e,plugins:r})),{...t,extends:void 0}])}const Y4e="redocly.yaml",H4e={extends:["recommended"]},Rb=".redocly.lint-ignore.yaml",J4e=`# This file instructs Redocly's linter to ignore the rules contained for specific parts of your API.
|
|
2478
2478
|
# See https://redocly.com/docs/cli/ for more information.
|
|
2479
2479
|
`,bK="configBundler",OK="pluginsCollector",K4e=["@theme/plugin.js","@theme/plugin.cjs","@theme/plugin.mjs"];function Tv(t,e){if(ft(t)&&Array.isArray(t.plugins)){const{plugins:r,rootConfigDir:n}=e.getVisitorData();r.push(...t.plugins.map(i=>xK(i,e.location.source.absoluteRef.replace(/^file:\/\//,""),n)))}}const eXe=Id([{severity:"error",ruleId:OK,visitor:{ref:{},ConfigGovernance:{leave(t,e){Tv(t,e)}},ConfigApisProperties:{leave(t,e){Tv(t,e)}},"rootRedoclyConfigSchema.scorecard.levels_items":{leave(t,e){Tv(t,e)}},ConfigRoot:{leave(t,e){Tv(t,e)}}}}],um);function _v(t,e){if(ft(t)&&t.extends){const{plugins:r}=e.getVisitorData(),n=vK({node:t,ctx:e,plugins:r});Object.assign(t,n),delete t.extends}}const tXe=Id([{severity:"error",ruleId:bK,visitor:{ref:{leave(t,e,r){$E(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)}}}}],um);function rXe(t,e,r){const n={plugins:[],rootConfigDir:r},i={problems:[],specVersion:"oas3_0",refTypes:new Map,visitorsData:{[OK]:n}};return Td({document:t,rootType:um.ConfigRoot,normalizedVisitors:eXe,resolvedRefMap:e,ctx:i}),n.plugins}function nXe(t,e,r){const n={plugins:r},i={problems:[],specVersion:"oas3_0",refTypes:new Map,visitorsData:{[bK]:n}};return Td({document:t,rootType:um.ConfigRoot,normalizedVisitors:tXe,resolvedRefMap:e,ctx:i}),t.parsed??{}}async function iXe(t){var s;const{ref:e,doc:r,externalRefResolver:n=new Cw(t.config.resolve),base:i=null}=t;if(!(e||r))throw new Error(`Document or reference is required.
|
|
2480
|
-
`);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),oXe({document:o,...t,externalRefResolver:n})}async function oXe(t){const{document:e,config:r,customTypes:n,externalRefResolver:i,dereference:o=!1,removeUnusedComponents:s=!1,keepUrlRefs:a=!1}=t,l=n_(e.parsed),c=uJ(l),u=r.getRulesForSpecVersion(c),d=HT(r.extendTypes(n??i_(l),l),r),f=Z0(u,r,"preprocessors",l),h=Z0(u,r,"decorators",l),m={problems:[],specVersion:l,config:r,refTypes:new Map,visitorsData:{}};s&&!h.some(v=>v.ruleId==="remove-unused-components")&&h.push({severity:"error",ruleId:"remove-unused-components",visitor:c==="oas2"?yK():gK()});let p=await Lp({rootDocument:e,rootType:d.Root,externalRefResolver:i});f.length>0&&(Td({document:e,rootType:d.Root,normalizedVisitors:Id(f,d),resolvedRefMap:p,ctx:m}),p=await Lp({rootDocument:e,rootType:d.Root,externalRefResolver:i}));const y=Id([{severity:"error",ruleId:"bundler",visitor:sXe(c,o,e,p,a)},...h],d);return Td({document:e,rootType:d.Root,normalizedVisitors:y,resolvedRefMap:p,ctx:m}),{bundle:e,problems:m.problems.map(v=>r.addProblemToIgnore(v)),fileDependencies:i.getFiles(),rootType:d.Root,refTypes:m.refTypes,visitorsData:m.visitorsData}}function Iq(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 sXe(t,e,r,n,i){let o,s;const a={ref:{leave(f,h,m){if(!m.location||m.node===void 0){Fh(m,h.report,h.location);return}if(m.location.source===r.source&&m.location.source===h.location.source&&h.type.name!=="scalar"&&!e||i&&Wr(f.$ref))return;const p=Iq(h.type.name,t);p?e?(c(p,m,h),$E(f,m,h)):(f.$ref=c(p,m,h),l(f,m,h)):$E(f,m,h)}},Example:{leave(f,h){if(g8(f)&&f.value===void 0){const m=h.resolve({$ref:f.externalValue});if(!m.location||m.node===void 0){Fh(m,h.report,h.location);return}if(i&&Wr(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 m of Object.keys(f)){const p=f[m],y=h.resolve({$ref:p});if(!y.location||y.node===void 0){Fh(y,h.report,h.location.child(m));return}const v=Iq("Schema",t);f[m]=c(v,y,h)}}});function l(f,h,m){const p=qh(m.location.source.absoluteRef,f.$ref);n.set(p,{document:r,isRemote:!1,node:h.node,nodePointer:f.$ref,resolved:!0})}function c(f,h,m){o[f]=o[f]||{};const p=d(h,f,m);return o[f][p]=h.node,t==="oas3"||t==="async2"||t==="async3"?`#/components/${f}/${p}`:`#/${f}/${p}`}function u(f,h,m){var p;return _r(f)&&((p=m.resolve(f,s.absolutePointer).location)==null?void 0:p.absolutePointer)===h.location.absolutePointer?!0:EE(f,h.node)}function d(f,h,m){const[p,y]=[f.location.source.absoluteRef,f.location.pointer],v=o[h];let b="";const O=y.slice(2).split("/").filter(Ni);for(;O.length>0;)if(b=O.pop()+(b?`-${b}`:""),!v||!v[b]||u(v[b],f,m))return b;if(b=KLe(p)+(b?`_${b}`:""),!v[b]||u(v[b],f,m))return b;const w=b;let x=2;for(;v[b]&&!u(v[b],f,m);)b=`${w}-${x}`,x++;return v[b]||m.report({message:`Two schemas are referenced with the same name but different content. Renamed ${w} to ${b}.`,location:m.location,forceSeverity:"warn"}),b}return a}const mC=new Map;async function aXe({rawConfigDocument:t,configPath:e,externalRefResolver:r,customExtends:n}){var f;const i=t===void 0?H4e:t.parsed;if(n!==void 0&&ft(i)&&(i.extends=n),ft(i)&&((f=i==null?void 0:i.extends)!=null&&f.some(oQe)))throw new Error("Configuration format not detected in extends: values must be strings.");const o=t??{source:new Ad(e??"",JSON.stringify(i)),parsed:i},s=await Lp({rootDocument:o,rootType:um.ConfigRoot,externalRefResolver:r??new Cw(SJ(i==null?void 0:i.resolve))});let a=[],l,c="";Yn?l=[...((i==null?void 0:i.plugins)||[]).filter(m=>!Oi(m)),Aq]:(c=It.dirname(e??""),a=rXe(o,s,c),l=[...await cXe(a.map(m=>Tq(m)?m.absolutePath:m),c),Aq]);const u=nXe(o,BWe(s),l);u.apis&&(u.apis=Object.fromEntries(Object.entries(u.apis).map(([h,m])=>{const p=wJ([u,m]);return[h,{...m,...p}]})));const d=a.length?a.map(h=>Tq(h)&&h.isModule?h.rawPath:h.absolutePath&&It.relative(c,h.absolutePath)).filter(T0):void 0;return{resolvedConfig:{...u,plugins:d},resolvedRefMap:s,plugins:l}}function lXe(t){for(const e of K4e)(void 0)(It.resolve(t,e))}function Tq(t){return"isModule"in t}const xK=(t,e,r)=>{if(!Oi(t))return t;const n=It.resolve(It.dirname(e),t);return(void 0)(n)?{absolutePath:n,rawPath:t,isModule:!1}:{absolutePath:e8.createRequire((typeof document>"u"?require("url").pathToFileURL(__filename).href:Os&&Os.tagName.toUpperCase()==="SCRIPT"&&Os.src||new URL("replay-index-
|
|
2480
|
+
`);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),oXe({document:o,...t,externalRefResolver:n})}async function oXe(t){const{document:e,config:r,customTypes:n,externalRefResolver:i,dereference:o=!1,removeUnusedComponents:s=!1,keepUrlRefs:a=!1}=t,l=n_(e.parsed),c=uJ(l),u=r.getRulesForSpecVersion(c),d=HT(r.extendTypes(n??i_(l),l),r),f=Z0(u,r,"preprocessors",l),h=Z0(u,r,"decorators",l),m={problems:[],specVersion:l,config:r,refTypes:new Map,visitorsData:{}};s&&!h.some(v=>v.ruleId==="remove-unused-components")&&h.push({severity:"error",ruleId:"remove-unused-components",visitor:c==="oas2"?yK():gK()});let p=await Lp({rootDocument:e,rootType:d.Root,externalRefResolver:i});f.length>0&&(Td({document:e,rootType:d.Root,normalizedVisitors:Id(f,d),resolvedRefMap:p,ctx:m}),p=await Lp({rootDocument:e,rootType:d.Root,externalRefResolver:i}));const y=Id([{severity:"error",ruleId:"bundler",visitor:sXe(c,o,e,p,a)},...h],d);return Td({document:e,rootType:d.Root,normalizedVisitors:y,resolvedRefMap:p,ctx:m}),{bundle:e,problems:m.problems.map(v=>r.addProblemToIgnore(v)),fileDependencies:i.getFiles(),rootType:d.Root,refTypes:m.refTypes,visitorsData:m.visitorsData}}function Iq(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 sXe(t,e,r,n,i){let o,s;const a={ref:{leave(f,h,m){if(!m.location||m.node===void 0){Fh(m,h.report,h.location);return}if(m.location.source===r.source&&m.location.source===h.location.source&&h.type.name!=="scalar"&&!e||i&&Wr(f.$ref))return;const p=Iq(h.type.name,t);p?e?(c(p,m,h),$E(f,m,h)):(f.$ref=c(p,m,h),l(f,m,h)):$E(f,m,h)}},Example:{leave(f,h){if(g8(f)&&f.value===void 0){const m=h.resolve({$ref:f.externalValue});if(!m.location||m.node===void 0){Fh(m,h.report,h.location);return}if(i&&Wr(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 m of Object.keys(f)){const p=f[m],y=h.resolve({$ref:p});if(!y.location||y.node===void 0){Fh(y,h.report,h.location.child(m));return}const v=Iq("Schema",t);f[m]=c(v,y,h)}}});function l(f,h,m){const p=qh(m.location.source.absoluteRef,f.$ref);n.set(p,{document:r,isRemote:!1,node:h.node,nodePointer:f.$ref,resolved:!0})}function c(f,h,m){o[f]=o[f]||{};const p=d(h,f,m);return o[f][p]=h.node,t==="oas3"||t==="async2"||t==="async3"?`#/components/${f}/${p}`:`#/${f}/${p}`}function u(f,h,m){var p;return _r(f)&&((p=m.resolve(f,s.absolutePointer).location)==null?void 0:p.absolutePointer)===h.location.absolutePointer?!0:EE(f,h.node)}function d(f,h,m){const[p,y]=[f.location.source.absoluteRef,f.location.pointer],v=o[h];let b="";const O=y.slice(2).split("/").filter(Ni);for(;O.length>0;)if(b=O.pop()+(b?`-${b}`:""),!v||!v[b]||u(v[b],f,m))return b;if(b=KLe(p)+(b?`_${b}`:""),!v[b]||u(v[b],f,m))return b;const w=b;let x=2;for(;v[b]&&!u(v[b],f,m);)b=`${w}-${x}`,x++;return v[b]||m.report({message:`Two schemas are referenced with the same name but different content. Renamed ${w} to ${b}.`,location:m.location,forceSeverity:"warn"}),b}return a}const mC=new Map;async function aXe({rawConfigDocument:t,configPath:e,externalRefResolver:r,customExtends:n}){var f;const i=t===void 0?H4e:t.parsed;if(n!==void 0&&ft(i)&&(i.extends=n),ft(i)&&((f=i==null?void 0:i.extends)!=null&&f.some(oQe)))throw new Error("Configuration format not detected in extends: values must be strings.");const o=t??{source:new Ad(e??"",JSON.stringify(i)),parsed:i},s=await Lp({rootDocument:o,rootType:um.ConfigRoot,externalRefResolver:r??new Cw(SJ(i==null?void 0:i.resolve))});let a=[],l,c="";Yn?l=[...((i==null?void 0:i.plugins)||[]).filter(m=>!Oi(m)),Aq]:(c=It.dirname(e??""),a=rXe(o,s,c),l=[...await cXe(a.map(m=>Tq(m)?m.absolutePath:m),c),Aq]);const u=nXe(o,BWe(s),l);u.apis&&(u.apis=Object.fromEntries(Object.entries(u.apis).map(([h,m])=>{const p=wJ([u,m]);return[h,{...m,...p}]})));const d=a.length?a.map(h=>Tq(h)&&h.isModule?h.rawPath:h.absolutePath&&It.relative(c,h.absolutePath)).filter(T0):void 0;return{resolvedConfig:{...u,plugins:d},resolvedRefMap:s,plugins:l}}function lXe(t){for(const e of K4e)(void 0)(It.resolve(t,e))}function Tq(t){return"isModule"in t}const xK=(t,e,r)=>{if(!Oi(t))return t;const n=It.resolve(It.dirname(e),t);return(void 0)(n)?{absolutePath:n,rawPath:t,isModule:!1}:{absolutePath:e8.createRequire((typeof document>"u"?require("url").pathToFileURL(__filename).href:Os&&Os.tagName.toUpperCase()==="SCRIPT"&&Os.src||new URL("replay-index-HXp30geC.js",document.baseURI).href)??__dirname).resolve(t,{paths:[r,(typeof document>"u"?require("url").pathToFileURL(__filename).href:Os&&Os.tagName.toUpperCase()==="SCRIPT"&&Os.src||new URL("replay-index-HXp30geC.js",document.baseURI).href)?It.dirname((void 0)(typeof document>"u"?require("url").pathToFileURL(__filename).href:Os&&Os.tagName.toUpperCase()==="SCRIPT"&&Os.src||new URL("replay-index-HXp30geC.js",document.baseURI).href)):__dirname]}),isModule:!0,rawPath:t}};async function cXe(t,e){if(!t)return[];const r=async a=>{var l;if(!Oi(a))return a;try{const c=It.isAbsolute(a)?a:xK(a,It.join(e,Y4e),e).absolutePath;if(!mC.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&&sB(p)&&Xt.info(`Deprecated plugin format detected: ${p.id}
|
|
2481
2481
|
`);const h=sB(u)?u:qWe(u)?await u(d):await((l=u==null?void 0:u.default)==null?void 0:l.call(u,d)),m=Array.isArray(h)?h:[h];h&&mC.set(c,m.map(p=>({...p,path:a,absolutePath:c})))}return mC.get(c)}catch(c){throw new Error(`Failed to load plugin "${a}": ${c.message}
|
|
2482
2482
|
|
|
2483
2483
|
${c.stack}`)}},n=new Map,i=lXe(e);i&&t.push(i);const o=new Set;return(await Promise.all(t.map(async a=>{if(Oi(a)){if(Wr(a))throw new Error(wt.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(wt.red(`Plugin must define \`id\` property in ${wt.blue(a.toString())}.`));const f=u.absolutePath??a.toString(),h=n.get(d);if(h){if(f!==h)throw new Error(wt.red(`Plugin "id" must be unique. Plugin ${wt.blue(f)} uses id "${wt.blue(d)}" already seen in ${wt.blue(f)}`));return}n.set(d,f);const m={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}.`);m.rules={},u.rules.oas3&&(m.rules.oas3=qr(u.rules.oas3,d)),u.rules.oas2&&(m.rules.oas2=qr(u.rules.oas2,d)),u.rules.async2&&(m.rules.async2=qr(u.rules.async2,d)),u.rules.async3&&(m.rules.async3=qr(u.rules.async3,d)),u.rules.arazzo1&&(m.rules.arazzo1=qr(u.rules.arazzo1,d)),u.rules.overlay1&&(m.rules.overlay1=qr(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}.`);m.preprocessors={},u.preprocessors.oas3&&(m.preprocessors.oas3=qr(u.preprocessors.oas3,d)),u.preprocessors.oas2&&(m.preprocessors.oas2=qr(u.preprocessors.oas2,d)),u.preprocessors.async2&&(m.preprocessors.async2=qr(u.preprocessors.async2,d)),u.preprocessors.async3&&(m.preprocessors.async3=qr(u.preprocessors.async3,d)),u.preprocessors.arazzo1&&(m.preprocessors.arazzo1=qr(u.preprocessors.arazzo1,d)),u.preprocessors.overlay1&&(m.preprocessors.overlay1=qr(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}.`);m.decorators={},u.decorators.oas3&&(m.decorators.oas3=qr(u.decorators.oas3,d)),u.decorators.oas2&&(m.decorators.oas2=qr(u.decorators.oas2,d)),u.decorators.async2&&(m.decorators.async2=qr(u.decorators.async2,d)),u.decorators.async3&&(m.decorators.async3=qr(u.decorators.async3,d)),u.decorators.arazzo1&&(m.decorators.arazzo1=qr(u.decorators.arazzo1,d)),u.decorators.overlay1&&(m.decorators.overlay1=qr(u.decorators.overlay1,d))}return u.assertions&&(m.assertions=u.assertions),{...u,...m}}))).filter(T0)}))).filter(T0).flat()}function uXe(t,e){var s;const{pluginId:r,configName:n}=zWe(t),i=e.find(a=>a.id===r);if(!i)throw new Error(`Invalid config ${wt.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 ${wt.red(t)}: plugin ${r} doesn't export config with name ${n}.`:`Invalid config ${wt.red(t)}: there is no such built-in config.`);return o}function dXe(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){_q(e,s);for(const a of s.where||[])_q(e,a)}n.push({...s,assertionId:i})}else r[i]=o;return n.length>0&&(r.assertions=n),r}function _q(t,e){for(const r of S8(e.assertions)){const[n,i]=r.split("/");if(!n||!i)continue;const o=t.find(s=>s.id===n);if(!o)throw Error(wt.red(`Plugin ${wt.blue(n)} isn't found.`));if(!o.assertions||!o.assertions[i])throw Error(`Plugin ${wt.red(n)} doesn't export assertions function with name ${wt.red(i)}.`);U0[r]=yUe(o.assertions[i])}}function fXe(t){return t?w8(t)?It.join(It.dirname(t),Rb):It.join(t,Rb):Yn?void 0:It.join(process.cwd(),Rb)}class g_{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=SJ(this.resolvedConfig.resolve),this._alias=r.alias,this.plugins=r.plugins||[],this.doNotResolveExamples=!!((i=e.resolve)!=null&&i.doNotResolveExamples);const n=o=>dXe({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}),oas3_2:n({...e.rules,...e.oas3_2Rules}),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},oas3_2:{...e.preprocessors,...e.oas3_2Preprocessors},async2:{...e.preprocessors,...e.async2Preprocessors},async3:{...e.preprocessors,...e.async3Preprocessors},arazzo1:{...e.preprocessors,...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},oas3_2:{...e.decorators,...e.oas3_2Decorators},async2:{...e.decorators,...e.async2Decorators},async3:{...e.decorators,...e.async3Decorators},arazzo1:{...e.decorators,...e.arazzo1Decorators},overlay1:{...e.decorators,...e.overlay1Decorators}},this.resolveIgnore(fXe(r.configPath))}forAlias(e){var a,l;if(e===void 0||!ft((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 g_({...n,...s},{configPath:this.configPath,document:this.document,resolvedRefMap:this.resolvedRefMap,alias:e,plugins:this.plugins})}resolveIgnore(e){!e||w8(e)}saveIgnore(){const e=this.configPath?It.dirname(this.configPath):process.cwd(),r=It.join(e,Rb),n={};for(const i of Object.keys(this.ignore)){const o=Wr(i)?i:iQe(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,J4e+YLe(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":case"oas3_2":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 Ib)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 Ib)this.preprocessors[n][r]&&(this.preprocessors[n][r]="off")}skipDecorators(e){for(const r of e||[])for(const n of Ib)this.decorators[n][r]&&(this.decorators[n][r]="off")}}async function wK(t,{configPath:e,externalRefResolver:r}={}){const i=WWe(typeof t=="string"?t:"",e??"");typeof t!="string"&&t&&(i.parsed=t);const{resolvedConfig:o,resolvedRefMap:s,plugins:a}=await aXe({rawConfigDocument:hXe(i),configPath:e,externalRefResolver:r});return new g_(o,{configPath:e,document:i,resolvedRefMap:s,plugins:a})}function hXe(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 gC={},Ki={},yC={},Rq;function Rw(){return Rq||(Rq=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})(yC)),yC}var Ts={},jq;function rf(){if(jq)return Ts;jq=1,Object.defineProperty(Ts,"__esModule",{value:!0});function t(s){return typeof s>"u"||s===null}Ts.isNothing=t;function e(s){return typeof s=="object"&&s!==null}Ts.isObject=e;function r(s){return Array.isArray(s)?s:t(s)?[]:[s]}Ts.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}Ts.extend=n;function i(s,a){var l="",c;for(c=0;c<a;c+=1)l+=s;return l}Ts.repeat=i;function o(s){return s===0&&Number.NEGATIVE_INFINITY===1/s}return Ts.isNegativeZero=o,Ts}var vC,Dq;function mm(){if(Dq)return vC;Dq=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 vC=t,vC}var bC,Mq;function pXe(){if(Mq)return bC;Mq=1;var t=rf(),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
|
|
@@ -2565,7 +2565,7 @@ ${v.message}
|
|
|
2565
2565
|
|
|
2566
2566
|
`+d:l.message,h={title:l.ruleId,file:Wr(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};Xt.output(`::${u} ${r(h)}::${i(f)}
|
|
2567
2567
|
`)}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 r_.properties.theme;async function t9e(t){var i;const{ref:e,externalRefResolver:r=new Cw(t.config.resolve)}=t,n=await r.resolveDocument(null,e,!0);return(i=t.collectSpecData)==null||i.call(t,n.parsed),r9e({document:n,...t,externalRefResolver:r})}async function r9e(t){cUe();const{document:e,customTypes:r,externalRefResolver:n,config:i}=t,o=n_(e.parsed),s=uJ(o),a=i.getRulesForSpecVersion(s),l=HT(i.extendTypes(r??i_(o),o),i),c={problems:[],specVersion:o,config:i,visitorsData:{}},u=Z0(a,i,"preprocessors",o),d=Z0(a,i,"rules",o);let f=await Lp({rootDocument:e,rootType:l.Root,externalRefResolver:n});u.length>0&&(Td({document:e,rootType:l.Root,normalizedVisitors:Id(u,l),resolvedRefMap:f,ctx:c}),f=await Lp({rootDocument:e,rootType:l.Root,externalRefResolver:n}));const h=Id(d,l);return Td({document:e,rootType:l.Root,normalizedVisitors:h,resolvedRefMap:f,ctx:c}),c.problems.map(m=>i.addProblemToIgnore(m))}const n9e={info:t=>{},error:t=>{},warn:t=>{},printNewLine:()=>{},printSeparator:()=>{},indent:(t,e)=>t,output:t=>t};class i9e extends Cw{constructor(){super()}resolveExternalRef(e,r){return Pb(r)?r:e&&Pb(e)?new URL(r,e).href:e?yc.resolve(yc.dirname(e),r):r}async loadExternalRef(e){if(Pb(e)){const{body:r,mimeType:n}=await O8(e,{...this.config.http,customFetch:Us});return new Ad(e,r,n)}else{if(!await nZ(e))throw new Error(`File not found at ${e}.`);try{throw await rZ(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 bI(e);return new Ad(e,n.replace(/\r\n/g,`
|
|
2568
|
-
`))}}}async function o9e({collectionId:t,workflowId:e,projectDir:r,inputsObject:n,serversObject:i,sourceDescriptions:o,severitySettings:s}){const a=`${r}/${t}`,l=new i9e,c=n.map(f=>JSON.stringify({[f.name]:f.value})),u=s9e(i,o),{run:d}=await Promise.resolve().then(()=>require("./replay-index-
|
|
2568
|
+
`))}}}async function o9e({collectionId:t,workflowId:e,projectDir:r,inputsObject:n,serversObject:i,sourceDescriptions:o,severitySettings:s}){const a=`${r}/${t}`,l=new i9e,c=n.map(f=>JSON.stringify({[f.name]:f.value})),u=s9e(i,o),{run:d}=await Promise.resolve().then(()=>require("./replay-index-noFNoVUf.js"));return await d({files:[a],workflow:e?[e]:[],fetch:Us,logger:n9e,maxSteps:500,maxFetchTimeout:4e4,requestFileLoader:{getFileBody:async f=>{if(!await nZ(f))throw new Error(`File ${f} doesn't exist or isn't readable.`);try{const m=await bI(f),p=new TextEncoder().encode(m);return new File([p],await tZ(f))}catch(m){throw new Error(`Failed to read file ${f}: ${m}`)}}},envVariables:{},config:await wK({}),externalRefResolver:l,input:c,server:u,severity:JSON.stringify(s),skipLint:!0})}function s9e(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 b_(t){return t==null?"N/A":t<1e3?`${t} ms`:t<1e4?`${(t/1e3).toFixed(1)} s`:`${Math.round(t/1e3)} s`}function $K({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?g.jsx(q.CheckmarkFilledIcon,{color:"var(--color-success-base)"}):o>0?g.jsx(q.ErrorFilledIcon,{color:"var(--color-error-base)"}):g.jsx(q.WarningFilledIcon,{color:"var(--color-warning-base)"}),f=h=>{h.stopPropagation(),c(!l)};return!e||e.length===0?null:g.jsxs(a9e,{children:[g.jsxs(l9e,{onClick:f,children:[g.jsxs(c9e,{children:[g.jsx(u9e,{children:g.jsx(d9e,{children:d()})}),g.jsxs(f9e,{children:[g.jsx(h9e,{children:u()}),g.jsxs(p9e,{children:[r," successful",n>0&&g.jsxs(g.Fragment,{children:[", ",n," ",n===1?"warning":"warnings"]}),o>0&&g.jsxs(g.Fragment,{children:[", ",o," failed"]})]})]})]}),g.jsx(m9e,{isExpanded:l,children:l?g.jsx(q.ChevronDownIcon,{}):g.jsx(q.ChevronRightIcon,{})})]}),g.jsx(g9e,{isExpanded:l,children:e.map((h,m)=>g.jsxs(y9e,{children:[g.jsx(v9e,{children:h.passed?g.jsx(q.CheckmarkIcon,{color:"var(--color-success-base)",size:"14px"}):!h.passed&&["warn"].includes(h.severity)?g.jsx(q.WarningFilledIcon,{color:"var(--color-warning-base)",size:"14px"}):g.jsx(q.CloseOutlineIcon,{color:"var(--color-error-base)",size:"14px"})}),g.jsxs(b9e,{children:[g.jsx(O9e,{children:h.name}),h.message&&g.jsx(x9e,{children:h.message})]})]},m))})]})}const a9e=R.div`
|
|
2569
2569
|
margin-bottom: 0;
|
|
2570
2570
|
margin-top: var(--spacing-xxs);
|
|
2571
2571
|
`,l9e=R.div`
|