@redocly/replay 0.18.0-next.2 → 0.18.0-next.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{replay-index-DNb38j2-.js → replay-index-CZaE-pRR.js} +1 -1
- package/dist/{replay-index-CRzk09u4.js → replay-index-DBXFZneT.js} +1 -1
- package/dist/{replay-index-D7qrgD-z.js → replay-index-DXfrp-OC.js} +1 -1
- package/dist/{replay-index-DARvEA2K.js → replay-index-DlQPih5l.js} +1 -1
- package/dist/{replay-index-Df5kUNWn.js → replay-index-lM29rXxS.js} +6 -6
- package/dist/{replay-index-CAT87qYc.js → replay-index-wO1crrTZ.js} +5 -5
- package/dist/{replay-tauri-path-BgmHzH3r.js → replay-tauri-path-CKOyn3xQ.js} +1 -1
- package/dist/{replay-tauri-path-BDCipwDu.js → replay-tauri-path-D5kjpgEq.js} +2 -2
- package/dist/replay.cjs +1 -1
- package/dist/replay.js +1 -1
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const bu=require("./replay-index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const bu=require("./replay-index-lM29rXxS.js");async function v3(u){const{descriptionPath:a,externalRefResolver:e,base:r}=u,i=await bu.bundle({base:r,ref:a,config:u.config,dereference:!0,externalRefResolver:e});if(!i)throw new Error(`Could not find source description file '${a}'.`);return i.bundle.parsed}function G4(u){if(typeof u!="object")return;const a=Object.keys(u)[0];return a?u[a]?.value:void 0}const{env:ee={},argv:_4=[],platform:b3=""}=typeof process>"u"?{}:process,B3="NO_COLOR"in ee||_4.includes("--no-color"),A3="FORCE_COLOR"in ee||_4.includes("--color"),f3=b3==="win32",y3=ee.TERM==="dumb",z3=bu.tty&&void 0,S3="CI"in ee&&("GITHUB_ACTIONS"in ee||"GITLAB_CI"in ee||"CIRCLECI"in ee),M3=!B3&&(A3||f3&&!y3||z3||S3),$4=(u,a,e,r,i=a.substring(0,u)+r,o=a.substring(u+e.length),n=o.indexOf(e))=>i+(n<0?o:$4(n,o,e,r)),j3=(u,a,e,r,i)=>u<0?e+a+r:e+$4(u,a,r,i)+r,P3=(u,a,e=u,r=u.length+1)=>i=>i||!(i===""||i===void 0)?j3((""+i).indexOf(a,r),i,u,a,e):"",Su=(u,a,e)=>P3(`\x1B[${u}m`,`\x1B[${a}m`,e),zo={reset:Su(0,0),bold:Su(1,22,"\x1B[22m\x1B[1m"),dim:Su(2,22,"\x1B[22m\x1B[2m"),italic:Su(3,23),underline:Su(4,24),inverse:Su(7,27),hidden:Su(8,28),strikethrough:Su(9,29),black:Su(30,39),red:Su(31,39),green:Su(32,39),yellow:Su(33,39),blue:Su(34,39),magenta:Su(35,39),cyan:Su(36,39),white:Su(37,39),gray:Su(90,39),bgBlack:Su(40,49),bgRed:Su(41,49),bgGreen:Su(42,49),bgYellow:Su(43,49),bgBlue:Su(44,49),bgMagenta:Su(45,49),bgCyan:Su(46,49),bgWhite:Su(47,49),blackBright:Su(90,39),redBright:Su(91,39),greenBright:Su(92,39),yellowBright:Su(93,39),blueBright:Su(94,39),magentaBright:Su(95,39),cyanBright:Su(96,39),whiteBright:Su(97,39),bgBlackBright:Su(100,49),bgRedBright:Su(101,49),bgGreenBright:Su(102,49),bgYellowBright:Su(103,49),bgBlueBright:Su(104,49),bgMagentaBright:Su(105,49),bgCyanBright:Su(106,49),bgWhiteBright:Su(107,49)},w3=({useColor:u=M3}={})=>u?zo:Object.keys(zo).reduce((a,e)=>({...a,[e]:String}),{}),{reset:pru,bold:P0,dim:K3,italic:gru,underline:T3,inverse:V4,hidden:Cru,strikethrough:vru,black:bru,red:Ku,green:Fe,yellow:w0,blue:Gu,magenta:Bru,cyan:Aru,white:So,gray:_u,bgBlack:fru,bgRed:Nr,bgGreen:yru,bgYellow:zru,bgBlue:Sru,bgMagenta:Mru,bgCyan:jru,bgWhite:Pru,blackBright:wru,redBright:Kru,greenBright:Tru,yellowBright:Lru,blueBright:Nru,magentaBright:Rru,cyanBright:Hru,whiteBright:Gru,bgBlackBright:_ru,bgRedBright:$ru,bgGreenBright:Vru,bgYellowBright:Jru,bgBlueBright:Oru,bgMagentaBright:Iru,bgCyanBright:qru,bgWhiteBright:Wru}=w3(),L3=u=>/\{.*?\}/.test(u);function b0({value:u,ctx:a,logger:e}){if(!u)return u;if(typeof u=="object"){for(const r in u)u[r]=b0({value:u[r],ctx:a,logger:e});return u}return typeof u=="number"||typeof u=="boolean"?u:u.toString().startsWith("$faker.")?Ue({pointer:u.slice(1),ctx:a,logger:e}):L3(u)?H3(u,a,e):_3(u,a,e)}function N3(u,a,e){const r=u.indexOf("{");if(r!==-1){const o=u.substring(r+1).slice(0,-1),n=Ue({pointer:o.slice(1),ctx:a,logger:e});return n&&u.replace(/{(.*)}/,n)}else return u}function R3(u,a){const e=Object.keys(a),r=Object.values(a);return new Function(...e,`return ${u}`)(...r)}function H3(u,a,e){const r=/\{\$(\{[^{}]*\}|[^{}])*\}/g;let i=u;return i=i.replace(r,(o,n)=>G3(o,a,e)),i}function G3(u,a,e){if(!u.includes("$"))return u;if(u.includes("$faker."))return N3(u,a,e);const r=Ie(a)($3(u));return r!==void 0?r:""}const _3=(u,a,e)=>{if(!u)return u;const r=u.toString();if(!r.includes("$"))return u;if(r.startsWith("$file(")&&r.endsWith(")"))return r.slice(7,-2);if(r.startsWith("$sourceDescriptions.")&&r.includes(".workflows.")){const i=r.split("."),o=i[1],n=i[3];if(!o||!n)return;const s=Ie(a)("$sourceDescriptions");return s[o]?s[o].workflows.find(t=>t.workflowId===n):void 0}return r&&r.trim().startsWith("faker.")?Ue({pointer:r,ctx:a,logger:e}):r?Ie(a)(Mo(r)):r.replace(/\$\{([^}]+)}/g,(i,o)=>Ie(a)(Mo(o)))};function $3(u){return u.replace(/\{(.*)\}/,"$1")}function Mo(u){return u.replace(/\['(.*?)'\]/g,".$1")}const Ie=(u,a="")=>e=>{if(a||(a=e),!e)return u;const[r,...i]=e.split(".");if(!u)throw Error(`Cannot get ${Ku(r)} from ${Ku(a)}`);if(u?.[r]===void 0){const o=` Undefined ${Ku(r)} at ${Ku(a)}.`,n=Object.keys(u).length?`Did you mean to use another key? Available keys:
|
|
2
2
|
${Object.keys(u).join(", ")}.
|
|
3
3
|
`:"",s=`${o} ${n}`;throw Error(s)}return Ie(u[r],a)(i.join("."))};function Ue({pointer:u,ctx:a,logger:e}){const r=u.split("."),i={ctx:{faker:a.$faker}};try{const o=r.map(n=>n.trim()).map((n,s)=>n.endsWith(")")?`${s==0?"":"."}${n}`:`["${n}"]`).join("");return R3(`ctx${o}`,i)}catch(o){e.error(Ku(o.toString()));return}}function J4(u,a,e){if(typeof u=="string"&&u)return b0({value:u,ctx:a,logger:e});if(!(typeof u=="string"||typeof u=="number"||typeof u=="boolean"||typeof u>"u"||u instanceof Blob||u===null))for(const r in u)typeof u[r]=="string"?u[r]&&(u[r]=b0({value:u[r],ctx:a,logger:e})):J4(u[r],a,e)}function jo(u,a,e){return J4(u,a,e)||u}function Po(u,a){if(!u)return;const e={};for(const r in a)e[`{${r}}`]=String(a[r]);return u.split(/(\{[a-zA-Z0-9_.-]+\}+)/g).map(r=>e[r]?e[r]:r).join("")}function V3(u){return typeof u=="object"&&u!==null&&"name"in u&&"value"in u&&!("in"in u)}function Vn(u){return typeof u=="object"&&u!==null&&"in"in u&&["header","query","path","cookie"].includes(u.in)}const J3=/^image\/(png|jpeg|gif|bmp|webp|svg\+xml)|application\/pdf$/;function O4(u){return u.startsWith("$file(")&&u.endsWith(")")?u.substring(7,u.length-2):u}const wo=async(u,a,e,r,i)=>{const o=bu.pathBrowserifyExports.dirname(r),n=bu.pathBrowserifyExports.resolve(o,O4(e));u.append(a,await i.options.requestFileLoader.getFileBody(n))},I4=(u,a,e,r,i,o)=>{Object.entries(e).forEach(([n,s])=>{const t=o?`${o}[${n}]`:n;typeof s=="string"&&s.startsWith("$file(")&&s.endsWith(")")?u.push(wo(a,t,s,r,i)):Array.isArray(s)?s.forEach(l=>{typeof l=="string"&&l.startsWith("$file(")&&l.endsWith(")")?u.push(wo(a,t,l,r,i)):a.append(t,l.toString())}):typeof s=="object"&&s!==null?I4(u,a,s,r,i,t):(typeof s=="string"||typeof s=="number"||typeof s=="boolean")&&a.append(t,s.toString())})},O3=async(u,a,e,r)=>{if(u&&typeof u=="object"&&!Array.isArray(u)){const i=[];I4(i,a,u,e,r),await Promise.all(i)}},I3=async(u,a)=>{if(typeof u=="string"&&u.startsWith("$file(")&&u.endsWith(")")){const e=bu.pathBrowserifyExports.resolve(bu.pathBrowserifyExports.dirname(a.options.filePath),O4(u));return a.options.requestFileLoader.getFileBody(e)}else return u};async function q3(u,a){if(!u)return{payload:void 0,contentType:void 0,encoding:void 0,replacements:void 0};const{payload:e,contentType:r}=u;if(r==="multipart/form-data"){const i=new FormData,o=bu.pathBrowserifyExports.resolve(a.options.filePath);return await O3(e,i,o,a),{...u,payload:i}}else{if(r==="application/octet-stream"||typeof r=="string"&&J3.test(r))return{...u,payload:await I3(e,a),contentType:"application/octet-stream"};if(r==="application/x-www-form-urlencoded"&&typeof e=="string")return{...u,payload:Object.fromEntries(new URLSearchParams(e).entries()),contentType:"application/x-www-form-urlencoded"}}return u}function W3(u,a){function e(){this.constructor=u}e.prototype=a.prototype,u.prototype=new e}function Ze(u,a,e,r){this.message=u,this.expected=a,this.found=e,this.location=r,this.name="SyntaxError",typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,Ze)}W3(Ze,Error);Ze.buildMessage=function(u,a,e){var r={literal:function(E){return'"'+o(E.text)+'"'},class:function(E){var D=E.parts.map(function(x){return Array.isArray(x)?n(x[0])+"-"+n(x[1]):n(x)});return"["+(E.inverted?"^":"")+D+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(E){return E.description},not:function(E){return"not "+s(E.expected)}};function i(E){return E.charCodeAt(0).toString(16).toUpperCase()}function o(E){return E.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(D){return"\\x0"+i(D)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(D){return"\\x"+i(D)})}function n(E){return E.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(D){return"\\x0"+i(D)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(D){return"\\x"+i(D)})}function s(E){return r[E.type](E)}function t(E){var D=E.map(s),x,c;if(D.sort(),D.length>0){for(x=1,c=1;x<D.length;x++)D[x-1]!==D[x]&&(D[c]=D[x],c++);D.length=c}switch(D.length){case 1:return D[0];case 2:return D[0]+" or "+D[1];default:return D.slice(0,-1).join(", ")+", or "+D[D.length-1]}}function l(E){return E?'"'+o(E)+'"':"end of input"}return"Expected "+t(u)+" but "+l(a)+" found."};function U3(u,a){a=a!==void 0?a:{};var e={},r={Start:Fa},i=Fa,o="&&",n="||",s="!",t="==",l="!=",E="<=",D="<",x=">=",c=">",B="{",h="}",g="$url",d="$method",F="$statusCode",v="$request.",b="$response.",k="$inputs.",p="$steps.",C="$workflows.",M="$sourceDescriptions.",T="$components.",H="$components.parameters.",J="$outputs.",_=".",N="outputs.",Z="header.",Y="query.",tu="path.",su="body",Du="#",mu="/",X="~",O="0",Q="1",q="[",f="]",P='"',$="'",au="true",ou="false",V="null",w="undefined",S=/^[!-.0-9A-Z_a-z]/,G=/^[a-zA-Z]/,I=/^[a-zA-Z0-9_\-]/,uu=/^[!#$%&'*+\-.\^_`|~a-zA-Z0-9\-]/,lu=/^[1-9]/,du=/^[0-9]/,yu=/^[^"]/,Au=/^[^']/,zu=/^[ \t\r\n]/,hu=fu("&&",!1),eu=fu("||",!1),iu=fu("!",!1),Fu=fu("==",!1),gu=fu("!=",!1),$u=fu("<=",!1),Yu=fu("<",!1),T0=fu(">=",!1),L0=fu(">",!1),B0=fu("{",!1),N0=fu("}",!1),oi=fu("$url",!1),ti=fu("$method",!1),ie=fu("$statusCode",!1),ne=fu("$request.",!1),si=fu("$response.",!1),li=fu("$inputs.",!1),Ei=fu("$steps.",!1),Xe=fu("$workflows.",!1),Di=fu("$sourceDescriptions.",!1),ua=fu("$components.",!1),xi=fu("$components.parameters.",!1),ea=fu("$outputs.",!1),A0=fu(".",!1),aa=fu("outputs.",!1),ve=fu("header.",!1),ci=fu("query.",!1),di=fu("path.",!1),mi=fu("body",!1),Fi=fu("#",!1),ra=fu("/",!1),ia=Qu([["!","."],["0","9"],["A","Z"],"_",["a","z"]],!1,!1),ki=fu("~",!1),na=fu("0",!1),hi=fu("1",!1),pi=Qu([["a","z"],["A","Z"]],!1,!1),oa=Qu([["a","z"],["A","Z"],["0","9"],"_","-"],!1,!1),ta=Qu(["!","#","$","%","&","'","*","+","-",".","^","_","`","|","~",["a","z"],["A","Z"],["0","9"],"-"],!1,!1),gi=fu("[",!1),Ci=fu("]",!1),vi=Qu([["1","9"]],!1,!1),oe=Qu([["0","9"]],!1,!1),sa=fu('"',!1),la=Qu(['"'],!0,!1),Ea=fu("'",!1),Da=Qu(["'"],!0,!1),bi=fu("true",!1),Bi=fu("false",!1),Ai=fu("null",!1),xa=fu("undefined",!1),ca=Qu([" "," ","\r",`
|
|
4
4
|
`],!1,!1),K=0,te=[{line:1,column:1}],R0=[],se;if("startRule"in a){if(!(a.startRule in r))throw new Error(`Can't start parsing from rule "`+a.startRule+'".');i=r[a.startRule]}function fu(z,j){return{type:"literal",text:z,ignoreCase:j}}function Qu(z,j,W){return{type:"class",parts:z,inverted:j,ignoreCase:W}}function fi(){return{type:"end"}}function da(z){var j=te[z],W;if(j)return j;for(W=z-1;!te[W];)W--;for(j=te[W],j={line:j.line,column:j.column};W<z;)u.charCodeAt(W)===10?(j.line++,j.column=1):j.column++,W++;return te[z]=j,j}var yi=typeof a.filename=="string"&&a.filename.length>0;function ma(z,j){var W={};yi&&(W.filename=a.filename);var R=da(z);W.start={offset:z,line:R.line,column:R.column};var nu=da(j);return W.end={offset:j,line:nu.line,column:nu.column},W}function zi(){R0.push({pos:K,variants:[]})}function wu(z){var j=R0[R0.length-1];K<j.pos||(K>j.pos&&(j.pos=K,j.variants=[]),j.variants.push(z))}function Si(z,j,W){return new Ze(Ze.buildMessage(z,j,W),z,j,W)}function Mi(){var z=R0[0],j=z.pos;return Si(z.variants,j<u.length?u.charAt(j):null,j<u.length?ma(j,j+1):ma(j,j))}function Fa(){var z;return z=ka(),z}function ka(){var z,j,W,R,nu,pu,ku,Cu;if(z=K,j=be(),j!==e){for(W=[],R=K,nu=cu(),pu=ha(),pu!==e?(ku=cu(),Cu=be(),Cu!==e?(nu=[nu,pu,ku,Cu],R=nu):(K=R,R=e)):(K=R,R=e);R!==e;)W.push(R),R=K,nu=cu(),pu=ha(),pu!==e?(ku=cu(),Cu=be(),Cu!==e?(nu=[nu,pu,ku,Cu],R=nu):(K=R,R=e)):(K=R,R=e);j=[j,W],z=j}else K=z,z=e;return z}function ha(){var z,j=function(W){wu(W)};return j(hu),u.substr(K,2)===o?(z=o,K+=2):z=e,z===e&&(j(eu),u.substr(K,2)===n?(z=n,K+=2):z=e,z===e&&(j(iu),u.charCodeAt(K)===33?(z=s,K++):z=e)),z}function pa(){var z,j=function(W){wu(W)};return j(Fu),u.substr(K,2)===t?(z=t,K+=2):z=e,z===e&&(j(gu),u.substr(K,2)===l?(z=l,K+=2):z=e,z===e&&(j($u),u.substr(K,2)===E?(z=E,K+=2):z=e,z===e&&(j(Yu),u.charCodeAt(K)===60?(z=D,K++):z=e,z===e&&(j(T0),u.substr(K,2)===x?(z=x,K+=2):z=e,z===e&&(j(L0),u.charCodeAt(K)===62?(z=c,K++):z=e))))),z}function be(){var z,j,W,R,nu,pu,ku,Cu;if(z=K,j=Be(),j===e&&(j=H0(),j===e&&(j=ye())),j!==e){for(W=cu(),R=[],nu=K,pu=pa(),pu!==e?(ku=cu(),Cu=Be(),Cu===e&&(Cu=H0(),Cu===e&&(Cu=ye())),Cu!==e?(pu=[pu,ku,Cu],nu=pu):(K=nu,nu=e)):(K=nu,nu=e);nu!==e;)R.push(nu),nu=K,pu=pa(),pu!==e?(ku=cu(),Cu=Be(),Cu===e&&(Cu=H0(),Cu===e&&(Cu=ye())),Cu!==e?(pu=[pu,ku,Cu],nu=pu):(K=nu,nu=e)):(K=nu,nu=e);j=[j,W,R],z=j}else K=z,z=e;return z}function Be(){var z,j,W,R,nu,pu,ku=function(Cu){wu(Cu)};return z=K,ku(B0),u.charCodeAt(K)===123?(j=B,K++):j=e,j!==e?(W=cu(),R=H0(),R!==e?(nu=cu(),ku(N0),u.charCodeAt(K)===125?(pu=h,K++):pu=e,pu!==e?(j=[j,W,R,nu,pu],z=j):(K=z,z=e)):(K=z,z=e)):(K=z,z=e),z===e&&(z=K,ku(B0),u.charCodeAt(K)===123?(j=B,K++):j=e,j!==e?(W=cu(),R=ka(),R!==e?(nu=cu(),ku(N0),u.charCodeAt(K)===125?(pu=h,K++):pu=e,pu!==e?(j=[j,W,R,nu,pu],z=j):(K=z,z=e)):(K=z,z=e)):(K=z,z=e)),z}function H0(){var z,j,W,R=function(nu){wu(nu)};return R(oi),u.substr(K,4)===g?(z=g,K+=4):z=e,z===e&&(R(ti),u.substr(K,7)===d?(z=d,K+=7):z=e,z===e&&(R(ie),u.substr(K,11)===F?(z=F,K+=11):z=e,z===e&&(z=K,R(ne),u.substr(K,9)===v?(j=v,K+=9):j=e,j!==e?(W=Ca(),W!==e?(j=[j,W],z=j):(K=z,z=e)):(K=z,z=e),z===e&&(z=K,R(si),u.substr(K,10)===b?(j=b,K+=10):j=e,j!==e?(W=Ca(),W!==e?(j=[j,W],z=j):(K=z,z=e)):(K=z,z=e),z===e&&(z=K,R(li),u.substr(K,8)===k?(j=k,K+=8):j=e,j!==e?(W=D0(),W!==e?(j=[j,W],z=j):(K=z,z=e)):(K=z,z=e),z===e&&(z=ji(),z===e&&(z=K,R(Ei),u.substr(K,7)===p?(j=p,K+=7):j=e,j!==e?(W=ga(),W!==e?(j=[j,W],z=j):(K=z,z=e)):(K=z,z=e),z===e&&(z=K,R(Xe),u.substr(K,11)===C?(j=C,K+=11):j=e,j!==e?(W=Pi(),W!==e?(j=[j,W],z=j):(K=z,z=e)):(K=z,z=e),z===e&&(z=K,R(Di),u.substr(K,20)===M?(j=M,K+=20):j=e,j!==e?(W=D0(),W!==e?(j=[j,W],z=j):(K=z,z=e)):(K=z,z=e),z===e&&(z=K,R(ua),u.substr(K,12)===T?(j=T,K+=12):j=e,j!==e?(W=D0(),W!==e?(j=[j,W],z=j):(K=z,z=e)):(K=z,z=e),z===e&&(z=K,R(xi),u.substr(K,23)===H?(j=H,K+=23):j=e,j!==e?(W=D0(),W!==e?(j=[j,W],z=j):(K=z,z=e)):(K=z,z=e)))))))))))),z}function ji(){var z,j,W,R,nu,pu=function(ku){wu(ku)};return z=K,pu(ea),u.substr(K,9)===J?(j=J,K+=9):j=e,j!==e?(W=K,R=D0(),R!==e?(nu=le(),nu===e&&(nu=null),R=[R,nu],W=R):(K=W,W=e),W===e&&(W=Ae()),W!==e?(j=[j,W],z=j):(K=z,z=e)):(K=z,z=e),z}function ga(){var z,j,W,R,nu,pu,ku=function(Cu){wu(Cu)};return z=K,j=f0(),j!==e?(ku(A0),u.charCodeAt(K)===46?(W=_,K++):W=e,W!==e?(R=K,ku(aa),u.substr(K,8)===N?(nu=N,K+=8):nu=e,nu!==e?(pu=Ae(),pu!==e?(nu=[nu,pu],R=nu):(K=R,R=e)):(K=R,R=e),R===e&&(R=D0()),R!==e?(j=[j,W,R],z=j):(K=z,z=e)):(K=z,z=e)):(K=z,z=e),z}function Pi(){var z,j,W,R,nu,pu,ku=function(Cu){wu(Cu)};return z=K,j=f0(),j!==e?(ku(A0),u.charCodeAt(K)===46?(W=_,K++):W=e,W!==e?(R=K,ku(aa),u.substr(K,8)===N?(nu=N,K+=8):nu=e,nu!==e?(pu=Ae(),pu!==e?(nu=[nu,pu],R=nu):(K=R,R=e)):(K=R,R=e),R===e&&(R=D0()),R!==e?(j=[j,W,R],z=j):(K=z,z=e)):(K=z,z=e)):(K=z,z=e),z}function Ae(){var z,j,W;return z=K,j=f0(),j!==e?(W=le(),W!==e?(j=[j,W],z=j):(K=z,z=e)):(K=z,z=e),z}function D0(){var z,j,W,R,nu,pu,ku,Cu=function(Oi){wu(Oi)};if(z=K,j=f0(),j!==e){for(W=[],R=K,Cu(A0),u.charCodeAt(K)===46?(nu=_,K++):nu=e,nu!==e?(pu=cu(),ku=f0(),ku!==e?(nu=[nu,pu,ku],R=nu):(K=R,R=e)):(K=R,R=e);R!==e;)W.push(R),R=K,Cu(A0),u.charCodeAt(K)===46?(nu=_,K++):nu=e,nu!==e?(pu=cu(),ku=f0(),ku!==e?(nu=[nu,pu,ku],R=nu):(K=R,R=e)):(K=R,R=e);j=[j,W],z=j}else K=z,z=e;return z}function f0(){var z;return z=fe(),z===e&&(z=Aa()),z}function Ca(){var z;return z=wi(),z===e&&(z=Ki(),z===e&&(z=Ti(),z===e&&(z=Li()))),z}function wi(){var z,j,W,R=function(nu){wu(nu)};return z=K,R(ve),u.substr(K,7)===Z?(j=Z,K+=7):j=e,j!==e?(W=Ni(),W!==e?(j=[j,W],z=j):(K=z,z=e)):(K=z,z=e),z}function Ki(){var z,j,W,R=function(nu){wu(nu)};return z=K,R(ci),u.substr(K,6)===Y?(j=Y,K+=6):j=e,j!==e?(W=fe(),W!==e?(j=[j,W],z=j):(K=z,z=e)):(K=z,z=e),z}function Ti(){var z,j,W,R=function(nu){wu(nu)};return z=K,R(di),u.substr(K,5)===tu?(j=tu,K+=5):j=e,j!==e?(W=fe(),W!==e?(j=[j,W],z=j):(K=z,z=e)):(K=z,z=e),z}function Li(){var z,j,W,R=function(nu){wu(nu)};return z=K,R(mi),u.substr(K,4)===su?(j=su,K+=4):j=e,j!==e?(W=le(),W===e&&(W=null),j=[j,W],z=j):(K=z,z=e),z}function le(){var z,j,W,R,nu=function(pu){wu(pu)};if(z=K,nu(Fi),u.charCodeAt(K)===35?(j=Du,K++):j=e,j!==e){for(W=[],R=va();R!==e;)W.push(R),R=va();j=[j,W],z=j}else K=z,z=e;return z}function va(){var z,j,W,R,nu=function(pu){wu(pu)};if(z=K,nu(ra),u.charCodeAt(K)===47?(j=mu,K++):j=e,j!==e){for(W=[],R=ba(),R===e&&(R=Ba());R!==e;)W.push(R),R=ba(),R===e&&(R=Ba());j=[j,W],z=j}else K=z,z=e;return z}function ba(){var z,j=function(W){wu(W)};return j(ia),S.test(u.charAt(K))?(z=u.charAt(K),K++):z=e,z}function Ba(){var z,j,W,R=function(nu){wu(nu)};return z=K,R(ki),u.charCodeAt(K)===126?(j=X,K++):j=e,j!==e?(R(na),u.charCodeAt(K)===48?(W=O,K++):W=e,W===e&&(R(hi),u.charCodeAt(K)===49?(W=Q,K++):W=e),W!==e?(j=[j,W],z=j):(K=z,z=e)):(K=z,z=e),z}function fe(){var z,j,W,R,nu=function(pu){wu(pu)};if(z=K,nu(pi),G.test(u.charAt(K))?(j=u.charAt(K),K++):j=e,j!==e){for(W=[],nu(oa),I.test(u.charAt(K))?(R=u.charAt(K),K++):R=e;R!==e;)W.push(R),nu(oa),I.test(u.charAt(K))?(R=u.charAt(K),K++):R=e;j=[j,W],z=j}else K=z,z=e;return z}function Ni(){var z,j,W=function(R){wu(R)};if(z=[],W(ta),uu.test(u.charAt(K))?(j=u.charAt(K),K++):j=e,j!==e)for(;j!==e;)z.push(j),W(ta),uu.test(u.charAt(K))?(j=u.charAt(K),K++):j=e;else z=e;return z}function ye(){var z;return z=Ri(),z===e&&(z=Aa(),z===e&&(z=fa(),z===e&&(z=Vi(),z===e&&(z=Ji(),z===e&&(z=y()))))),z}function Ri(){var z,j,W,R,nu=function(pu){wu(pu)};return z=K,nu(gi),u.charCodeAt(K)===91?(j=q,K++):j=e,j!==e?(W=cu(),nu(Ci),u.charCodeAt(K)===93?(R=f,K++):R=e,R!==e?(j=[j,W,R],z=j):(K=z,z=e)):(K=z,z=e),z}function Aa(){var z,j,W,R,nu,pu=function(ku){wu(ku)};return z=K,j=Hi(),j!==e?(W=K,pu(A0),u.charCodeAt(K)===46?(R=_,K++):R=e,R!==e?(nu=Gi(),nu!==e?(R=[R,nu],W=R):(K=W,W=e)):(K=W,W=e),W===e&&(W=null),j=[j,W],z=j):(K=z,z=e),z}function Hi(){var z,j,W,R,nu=function(pu){wu(pu)};if(nu(na),u.charCodeAt(K)===48?(z=O,K++):z=e,z===e)if(z=K,nu(vi),lu.test(u.charAt(K))?(j=u.charAt(K),K++):j=e,j!==e){for(W=[],nu(oe),du.test(u.charAt(K))?(R=u.charAt(K),K++):R=e;R!==e;)W.push(R),nu(oe),du.test(u.charAt(K))?(R=u.charAt(K),K++):R=e;j=[j,W],z=j}else K=z,z=e;return z}function Gi(){var z,j,W=function(R){wu(R)};if(z=[],W(oe),du.test(u.charAt(K))?(j=u.charAt(K),K++):j=e,j!==e)for(;j!==e;)z.push(j),W(oe),du.test(u.charAt(K))?(j=u.charAt(K),K++):j=e;else z=e;return z}function fa(){var z;return z=_i(),z===e&&(z=$i()),z}function _i(){var z,j,W,R,nu=function(pu){wu(pu)};if(z=K,nu(sa),u.charCodeAt(K)===34?(j=P,K++):j=e,j!==e){for(W=[],nu(la),yu.test(u.charAt(K))?(R=u.charAt(K),K++):R=e;R!==e;)W.push(R),nu(la),yu.test(u.charAt(K))?(R=u.charAt(K),K++):R=e;nu(sa),u.charCodeAt(K)===34?(R=P,K++):R=e,R!==e?(j=[j,W,R],z=j):(K=z,z=e)}else K=z,z=e;return z}function $i(){var z,j,W,R,nu=function(pu){wu(pu)};if(z=K,nu(Ea),u.charCodeAt(K)===39?(j=$,K++):j=e,j!==e){for(W=[],nu(Da),Au.test(u.charAt(K))?(R=u.charAt(K),K++):R=e;R!==e;)W.push(R),nu(Da),Au.test(u.charAt(K))?(R=u.charAt(K),K++):R=e;nu(Ea),u.charCodeAt(K)===39?(R=$,K++):R=e,R!==e?(j=[j,W,R],z=j):(K=z,z=e)}else K=z,z=e;return z}function Vi(){var z,j=function(W){wu(W)};return j(bi),u.substr(K,4)===au?(z=au,K+=4):z=e,z===e&&(j(Bi),u.substr(K,5)===ou?(z=ou,K+=5):z=e),z}function Ji(){var z,j=function(W){wu(W)};return j(Ai),u.substr(K,4)===V?(z=V,K+=4):z=e,z}function y(){var z,j=function(W){wu(W)};return j(xa),u.substr(K,9)===w?(z=w,K+=9):z=e,z}function cu(){var z,j,W=function(R){wu(R)};for(z=[],W(ca),zu.test(u.charAt(K))?(j=u.charAt(K),K++):j=e;j!==e;)z.push(j),W(ca),zu.test(u.charAt(K))?(j=u.charAt(K),K++):j=e;return z}if(zi(),se=i(),se!==e&&K===u.length)return se;throw se!==e&&K<u.length&&wu(fi()),Mi()}function Z3(u){try{return W4(u)}catch{throw new Error(`Runtime expression is not valid: ${u}`)}}function Y3(u,a){const e=[{pattern:/\$response\.body#\/([\w/]+)/g,ctxFunction:(i,o)=>Se(a.$response?.body,o,i)},{pattern:/\$request\.body#\/([\w/]+)/g,ctxFunction:(i,o)=>Se(a.$request?.body,o,i)},{pattern:/\$outputs\.([\w-]+)#\/([\w/]+)/g,ctxFunction:(i,o,n)=>Se(a.$outputs?.[o],n,i)},{pattern:/\$workflows\.([\w-]+)\.outputs\.([\w-]+)#\/([\w/]+)/g,ctxFunction:(i,o,n,s)=>Se(a.$workflows?.[o]?.outputs?.[n],s,i)},{pattern:/\$steps\.([\w-]+)\.outputs\.([\w-]+)#\/([\w/]+)/g,ctxFunction:(i,o,n,s)=>Se(a.$steps?.[o]?.outputs?.[n],s,i)}];let r=u;for(const{pattern:i,ctxFunction:o}of e)r=r.replaceAll(i,o);return r}function Se(u,a,e){if(u)try{const r=bu.JsonPointer.get(u,`/${a}`);return typeof r=="string"||Array.isArray(r)||typeof r=="object"?JSON.stringify(r):r!==void 0?r:e}catch{return e}return e}function E0({payload:u,context:a,contentType:e,logger:r}){if(e?.includes("application/octet-stream"))return jo(u,a,r);if(e?.includes("multipart/form-data")){if(u instanceof FormData){const i=new FormData;for(const[o,n]of u.entries())if(n instanceof File)i.append(o,n);else{const s=E0({payload:n,context:a,logger:r});i.append(o,s)}return i}return jo(u,a,r)}return typeof u=="string"?nE(u)?ae(u,a,r):iE(u,a,r):bu.isPlainObject(u)?Object.entries(u).reduce((i,[o,n])=>(i[o]=E0({payload:n,context:a,logger:r}),i),{}):Array.isArray(u)?u.map(i=>E0({payload:i,context:a,logger:r})):u}function ae(u,a,e){return typeof u=="string"?Q3(u,a,e):bu.isPlainObject(u)?Object.entries(u).reduce((r,[i,o])=>(r[i]=o&&ae(o,a,e),r),{}):Array.isArray(u)?u.map(r=>ae(r,a,e)):u}function Q3(u,a,e){if(/^\$faker\.[a-zA-Z0-9._-]+(\([^\\)]*\))?$/.test(u))return Ue({pointer:u.slice(1),ctx:a,logger:e});if(u.includes("$faker.")){const o=/\$faker\.[a-zA-Z0-9._-]+(\([^\\)]*\))?/g;u=u.replace(o,n=>Ue({pointer:n.slice(1),ctx:a,logger:e})).replace(/{(.*?)}/g,"$1")}if(!u.includes("$")&&!/[=<>]/.test(u))return u;Z3(u);const r=uE(u,a),i=eE(a);try{return new Function(...Object.keys(i),`return ${r};`)(...Object.values(i))}catch{throw new Error(`Error in resolving runtime expression '${u}'.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as O4, t as y3, p as Zu, J as j0, i as Xr, a as qe, r as z3, c as Po, m as S3, s as M3, d as I4, e as j3, f as P3, g as ui, h as w3, l as K3, j as T3, k as L3 } from "./replay-index-
|
|
1
|
+
import { b as O4, t as y3, p as Zu, J as j0, i as Xr, a as qe, r as z3, c as Po, m as S3, s as M3, d as I4, e as j3, f as P3, g as ui, h as w3, l as K3, j as T3, k as L3 } from "./replay-index-wO1crrTZ.js";
|
|
2
2
|
async function N3(u) {
|
|
3
3
|
const { descriptionPath: a, externalRefResolver: e, base: r } = u, i = await O4({
|
|
4
4
|
base: r,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./replay-index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./replay-index-lM29rXxS.js");async function n(e={}){return typeof e=="object"&&Object.freeze(e),await t.invoke("plugin:dialog|open",{options:e})}exports.open=n;
|
|
@@ -238,7 +238,7 @@ $3`);return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}}function mce(t){return t.
|
|
|
238
238
|
`+t.slice(i,o),i=o+1),s=a;return l+=`
|
|
239
239
|
`,t.length-i>e&&s>i?l+=t.slice(i,s)+`
|
|
240
240
|
`+t.slice(s+1):l+=t.slice(i),l.slice(1)}function efe(t){for(var e="",r=0,n,i=0;i<t.length;r>=65536?i+=2:i++)r=af(t,i),n=dn[r],!n&&fp(r)?(e+=t[i],r>=65536&&(e+=t[i+1])):e+=n||Wde(r);return e}function tfe(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)),(Cs(t,e,a,!1,!1)||typeof a>"u"&&Cs(t,e,null,!1,!1))&&(n!==""&&(n+=","+(t.condenseFlow?"":" ")),n+=t.dump);t.tag=i,t.dump="["+n+"]"}function Nj(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)),(Cs(t,e+1,l,!0,!0,!1,!0)||typeof l>"u"&&Cs(t,e+1,null,!0,!0,!1,!0))&&((!n||i!=="")&&(i+=aP(t,e)),t.dump&&up===t.dump.charCodeAt(0)?i+="-":i+="- ",i+=t.dump);t.tag=o,t.dump=i||"[]"}function rfe(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)),Cs(t,e,l,!1,!1)&&(t.dump.length>1024&&(u+="? "),u+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),Cs(t,e,c,!1,!1)&&(u+=t.dump,n+=u));t.tag=i,t.dump="{"+n+"}"}function nfe(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 On("sortKeys must be a boolean or a function");for(a=0,l=s.length;a<l;a+=1)f="",(!n||i!=="")&&(f+=aP(t,e)),c=s[a],u=r[c],t.replacer&&(u=t.replacer.call(r,c,u)),Cs(t,e+1,c,!0,!0,!0)&&(d=t.tag!==null&&t.tag!=="?"||t.dump&&t.dump.length>1024,d&&(t.dump&&up===t.dump.charCodeAt(0)?f+="?":f+="? "),f+=t.dump,d&&(f+=aP(t,e)),Cs(t,e+1,u,!0,d)&&(t.dump&&up===t.dump.charCodeAt(0)?f+=":":f+=": ",f+=t.dump,i+=f));t.tag=o,t.dump=i||"{}"}function Dj(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,kW.call(a.represent)==="[object Function]")n=a.represent(e,l);else if($W.call(a.represent,l))n=a.represent[l](e,l);else throw new On("!<"+a.tag+'> tag resolver accepts not "'+l+'" style');t.dump=n}return!0}return!1}function Cs(t,e,r,n,i,o,s){t.tag=null,t.dump=r,Dj(t,r,!1)||Dj(t,r,!0);var a=kW.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?(nfe(t,e,t.dump,i),f&&(t.dump="&ref_"+d+t.dump)):(rfe(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?Nj(t,e-1,t.dump,i):Nj(t,e,t.dump,i),f&&(t.dump="&ref_"+d+t.dump)):(tfe(t,e,t.dump),f&&(t.dump="&ref_"+d+" "+t.dump));else if(a==="[object String]")t.tag!=="?"&&Jde(t,t.dump,e,o,l);else{if(a==="[object Undefined]")return!1;if(t.skipInvalid)return!1;throw new On("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 ife(t,e){var r=[],n=[],i,o;for(cP(t,r,n),i=0,o=n.length;i<o;i+=1)e.duplicates.push(r[n[i]]);e.usedDuplicates=new Array(o)}function cP(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)cP(t[i],e,r);else for(n=Object.keys(t),i=0,o=n.length;i<o;i+=1)cP(t[n[i]],e,r)}function ofe(t,e){e=e||{};var r=new Xde(e);r.noRefs||ife(t,r);var n=t;return r.replacer&&(n=r.replacer.call({"":n},"",n)),Cs(r,0,n,!0,!0)?r.dump+`
|
|
241
|
-
`:""}var sfe=ofe,afe={dump:sfe};function q$(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 lfe=Ur,cfe=J3,ufe=rW,MW=aW,dfe=lW,ffe=L$,LW=PW.load,pfe=PW.loadAll,QW=afe.dump,hfe=On,Sc={binary:pW,float:sW,map:tW,null:nW,pairs:mW,set:gW,timestamp:dW,bool:iW,int:oW,merge:fW,omap:hW,seq:eW,str:K3},mfe=q$("safeLoad","load"),gfe=q$("safeLoadAll","loadAll"),yfe=q$("safeDump","dump"),Oa={Type:lfe,Schema:cfe,FAILSAFE_SCHEMA:ufe,JSON_SCHEMA:MW,CORE_SCHEMA:dfe,DEFAULT_SCHEMA:ffe,load:LW,loadAll:pfe,dump:QW,YAMLException:hfe,types:Sc,safeLoad:mfe,safeLoadAll:gfe,safeDump:yfe};class Mj{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 Fn(t,e={},r){return window.__TAURI_INTERNALS__.invoke(t,e,r)}var pb;(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"})(pb||(pb={}));async function vfe(){return Fn("plugin:path|resolve_directory",{directory:pb.AppData})}async function bfe(){return Fn("plugin:path|resolve_directory",{directory:pb.Desktop})}function zW(){return window.__TAURI_INTERNALS__.plugins.path.sep}async function Ofe(...t){return Fn("plugin:path|resolve",{paths:t})}async function Ef(...t){return Fn("plugin:path|join",{paths:t})}async function VW(t,e){return Fn("plugin:path|basename",{path:t,ext:e})}async function xfe(t){return Fn("plugin:path|is_absolute",{path:t})}var Lj;(function(t){t[t.Start=0]="Start",t[t.Current=1]="Current",t[t.End=2]="End"})(Lj||(Lj={}));async function Qj(t,e){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");await Fn("plugin:fs|mkdir",{path:t instanceof URL?t.toString():t,options:e})}async function qW(t,e){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");return await Fn("plugin:fs|read_dir",{path:t instanceof URL?t.toString():t,options:e})}async function wfe(t,e){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");const r=await Fn("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 B$(t,e){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");return await Fn("plugin:fs|read_text_file",{path:t instanceof URL?t.toString():t,options:e})}async function Sfe(t,e){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");await Fn("plugin:fs|remove",{path:t instanceof URL?t.toString():t,options:e})}async function Cfe(t,e,r){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");await Fn("plugin:fs|write_text_file",{path:t instanceof URL?t.toString():t,data:e,options:r})}async function BW(t,e){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");return await Fn("plugin:fs|exists",{path:t instanceof URL?t.toString():t,options:e})}function Fu(){return!!window?.__TAURI__}class kr{static utils=null;static async getUtils(){return kr.utils||(kr.utils=Fu()?await Promise.resolve().then(()=>require("./replay-tauri-path-
|
|
241
|
+
`:""}var sfe=ofe,afe={dump:sfe};function q$(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 lfe=Ur,cfe=J3,ufe=rW,MW=aW,dfe=lW,ffe=L$,LW=PW.load,pfe=PW.loadAll,QW=afe.dump,hfe=On,Sc={binary:pW,float:sW,map:tW,null:nW,pairs:mW,set:gW,timestamp:dW,bool:iW,int:oW,merge:fW,omap:hW,seq:eW,str:K3},mfe=q$("safeLoad","load"),gfe=q$("safeLoadAll","loadAll"),yfe=q$("safeDump","dump"),Oa={Type:lfe,Schema:cfe,FAILSAFE_SCHEMA:ufe,JSON_SCHEMA:MW,CORE_SCHEMA:dfe,DEFAULT_SCHEMA:ffe,load:LW,loadAll:pfe,dump:QW,YAMLException:hfe,types:Sc,safeLoad:mfe,safeLoadAll:gfe,safeDump:yfe};class Mj{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 Fn(t,e={},r){return window.__TAURI_INTERNALS__.invoke(t,e,r)}var pb;(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"})(pb||(pb={}));async function vfe(){return Fn("plugin:path|resolve_directory",{directory:pb.AppData})}async function bfe(){return Fn("plugin:path|resolve_directory",{directory:pb.Desktop})}function zW(){return window.__TAURI_INTERNALS__.plugins.path.sep}async function Ofe(...t){return Fn("plugin:path|resolve",{paths:t})}async function Ef(...t){return Fn("plugin:path|join",{paths:t})}async function VW(t,e){return Fn("plugin:path|basename",{path:t,ext:e})}async function xfe(t){return Fn("plugin:path|is_absolute",{path:t})}var Lj;(function(t){t[t.Start=0]="Start",t[t.Current=1]="Current",t[t.End=2]="End"})(Lj||(Lj={}));async function Qj(t,e){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");await Fn("plugin:fs|mkdir",{path:t instanceof URL?t.toString():t,options:e})}async function qW(t,e){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");return await Fn("plugin:fs|read_dir",{path:t instanceof URL?t.toString():t,options:e})}async function wfe(t,e){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");const r=await Fn("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 B$(t,e){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");return await Fn("plugin:fs|read_text_file",{path:t instanceof URL?t.toString():t,options:e})}async function Sfe(t,e){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");await Fn("plugin:fs|remove",{path:t instanceof URL?t.toString():t,options:e})}async function Cfe(t,e,r){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");await Fn("plugin:fs|write_text_file",{path:t instanceof URL?t.toString():t,data:e,options:r})}async function BW(t,e){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");return await Fn("plugin:fs|exists",{path:t instanceof URL?t.toString():t,options:e})}function Fu(){return!!window?.__TAURI__}class kr{static utils=null;static async getUtils(){return kr.utils||(kr.utils=Fu()?await Promise.resolve().then(()=>require("./replay-tauri-path-CKOyn3xQ.js")):await Promise.resolve().then(()=>U_e)),kr.utils}static async join(...e){return(await kr.getUtils()).join(...e)}static async resolve(e){return(await kr.getUtils()).resolve(e)}static async isAbsolute(e){return(await kr.getUtils()).isAbsolute(e)}static async relative(e,r){return(await kr.getUtils()).relative(e,r)}}class zj{constructor(e){this.baseDir=e,this.initializeDirectory(e)}async initializeDirectory(e){await Qj(e,{recursive:!0})}async ls(e){const r=await this.getFullPath(e);return this.getDirEntryFilesRecursively(r)}async getDirEntryFilesRecursively(e){try{const r=[],n=await qW(e);for(const i of n)if(i.isDirectory){const o=await Ef(e,i.name),s=await this.getDirEntryFilesRecursively(o);r.push(...s)}else{const o=await Ef(e,i.name),s=await kr.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 B$(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=zW(),o=n.split(i).slice(0,-1).join(i);await Qj(o,{recursive:!0}),await Cfe(n,r)}async remove(e){const r=await this.getFullPath(e);try{await Sfe(r)}catch(n){!n.includes("No such file or directory")&&!n.includes("forbidden path")&&console.error(n)}}async getFullPath(e){return await Ef(this.baseDir,e??"")}}class Pfe{baseDir="";async ls(e=""){return[]}async get(e){return null}async set(e,r){}async remove(e){}}class kfe{constructor(e,r){this.storage=e,this.localStorageSecretsProvider=r}default=[];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=Oa.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])=>{if(typeof c=="string")return{name:l,value:c,isSecret:!1};const u=i?.[a]?.[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:ht.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",Oa.dump(i))}}var xw,Vj;function $fe(){if(Vj)return xw;Vj=1;var t=Object.prototype.hasOwnProperty,e=Object.prototype.toString;return xw=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)},xw}var ww,qj;function Efe(){if(qj)return ww;qj=1;var t=$fe();ww=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("/")},ww}var Ife=Efe();const F$=Bn(Ife);async function Bp(t){try{const e=await wfe(t),r=await VW(t);return{absolutePath:t,file:new File([e],r)}}catch(e){return console.error("Failed to init replay file",e),null}}async function FW(t){return(await Promise.allSettled(t.map(r=>Bp(r)))).map(r=>r.status==="fulfilled"?r.value:null).filter(r=>r!==null)}function WW(t,e,r){for(const n of r){const i=Bj(t,n),o=Bj(e,n);if(typeof i=="object"&&typeof o=="object"){if(!WW(i,o,r))return!1}else if(i!==o)return!1}return!0}function Bj(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 Sw={exports:{}};/*!
|
|
242
242
|
Copyright (c) 2018 Jed Watson.
|
|
243
243
|
Licensed under the MIT License (MIT), see
|
|
244
244
|
http://jedwatson.github.io/classnames
|
|
@@ -341,7 +341,7 @@ html body {
|
|
|
341
341
|
align-self: flex-end;
|
|
342
342
|
padding-top: var(--spacing-xxs);
|
|
343
343
|
gap: var(--spacing-xs);
|
|
344
|
-
`;function Wp({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 h.jsx(AU,{variable:t,onSave:s,onCancel:r,...n,children:h.jsx(gp,{children:h.jsx(Ohe,{value:i,onChange:a=>o(a),title:"Make it secret"})})})}function Fy(t){var e=new Error(t);return e.source="ulid",e}var nE="0123456789ABCDEFGHJKMNPQRSTVWXYZ",If=nE.length,v2=Math.pow(2,48)-1,$he=10,Ehe=16;function Ihe(t){var e=Math.floor(t()*If);return e===If&&(e=If-1),nE.charAt(e)}function Ahe(t,e){if(isNaN(t))throw new Error(t+" must be a number");if(t>v2)throw Fy("cannot encode time greater than "+v2);if(t<0)throw Fy("time must be positive");if(Number.isInteger(t)===!1)throw Fy("time must be an integer");for(var r=void 0,n="";e>0;e--)r=t%If,n=nE.charAt(r)+n,t=(t-r)/If;return n}function The(t,e){for(var r="";t>0;t--)r=Ihe(e)+r;return r}function _he(){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 Fy("secure crypto unusable, insecure Math.random not allowed")}function Rhe(t){return t||(t=_he()),function(r){return isNaN(r)&&(r=Date.now()),Ahe(r,$he)+The(Ehe,t)}}var xb=Rhe(),jhe=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof global=="object"?global:{},sl="1.9.0",b2=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;function Nhe(t){var e=new Set([t]),r=new Set,n=t.match(b2);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(b2);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 Dhe=Nhe(sl),Mhe=sl.split(".")[0],yp=Symbol.for("opentelemetry.js.api."+Mhe),vp=jhe;function Up(t,e,r,n){var i;n===void 0&&(n=!1);var o=vp[yp]=(i=vp[yp])!==null&&i!==void 0?i:{version:sl};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!==sl){var s=new Error("@opentelemetry/api: Registration of version v"+o.version+" for "+t+" does not match previously registered API v"+sl);return r.error(s.stack||s.message),!1}return o[t]=e,r.debug("@opentelemetry/api: Registered a global for "+t+" v"+sl+"."),!0}function Sl(t){var e,r,n=(e=vp[yp])===null||e===void 0?void 0:e.version;if(!(!n||!Dhe(n)))return(r=vp[yp])===null||r===void 0?void 0:r[t]}function Xp(t,e){e.debug("@opentelemetry/api: Unregistering a global for "+t+" v"+sl+".");var r=vp[yp];r&&delete r[t]}var Lhe=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},Qhe=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))},zhe=(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 Cd("debug",this._namespace,e)},t.prototype.error=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return Cd("error",this._namespace,e)},t.prototype.info=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return Cd("info",this._namespace,e)},t.prototype.warn=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return Cd("warn",this._namespace,e)},t.prototype.verbose=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return Cd("verbose",this._namespace,e)},t})();function Cd(t,e,r){var n=Sl("diag");if(n)return r.unshift(e),n[t].apply(n,Qhe([],Lhe(r),!1))}var Hn;(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"})(Hn||(Hn={}));function Vhe(t,e){t<Hn.NONE?t=Hn.NONE:t>Hn.ALL&&(t=Hn.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",Hn.ERROR),warn:r("warn",Hn.WARN),info:r("info",Hn.INFO),debug:r("debug",Hn.DEBUG),verbose:r("verbose",Hn.VERBOSE)}}var qhe=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},Bhe=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))},Fhe="diag",jo=(function(){function t(){function e(i){return function(){for(var o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];var a=Sl("diag");if(a)return a[i].apply(a,Bhe([],qhe(o),!1))}}var r=this,n=function(i,o){var s,a,l;if(o===void 0&&(o={logLevel:Hn.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=Sl("diag"),d=Vhe((a=o.logLevel)!==null&&a!==void 0?a:Hn.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 Up("diag",d,r,!0)};r.setLogger=n,r.disable=function(){Xp(Fhe,r)},r.createComponentLogger=function(i){return new zhe(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})(),Whe=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},Uhe=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.")},Xhe=(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=Whe(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=Uhe(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})(),Zhe=Symbol("BaggageEntryMetadata"),Ghe=jo.instance();function Yhe(t){return t===void 0&&(t={}),new Xhe(new Map(Object.entries(t)))}function Hhe(t){return typeof t!="string"&&(Ghe.error("Cannot create baggage metadata from unknown type: "+typeof t),t=""),{__TYPE__:Zhe,toString:function(){return t}}}function iE(t){return Symbol.for(t)}var Jhe=(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})(),Cc=new Jhe,Ll=(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)}})(),Khe=(function(){function t(){}return t.prototype.createGauge=function(e,r){return cme},t.prototype.createHistogram=function(e,r){return ume},t.prototype.createCounter=function(e,r){return lme},t.prototype.createUpDownCounter=function(e,r){return dme},t.prototype.createObservableGauge=function(e,r){return pme},t.prototype.createObservableCounter=function(e,r){return fme},t.prototype.createObservableUpDownCounter=function(e,r){return hme},t.prototype.addBatchObservableCallback=function(e,r){},t.prototype.removeBatchObservableCallback=function(e){},t})(),i0=(function(){function t(){}return t})(),eme=(function(t){Ll(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.add=function(r,n){},e})(i0),tme=(function(t){Ll(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.add=function(r,n){},e})(i0),rme=(function(t){Ll(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.record=function(r,n){},e})(i0),nme=(function(t){Ll(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.record=function(r,n){},e})(i0),oE=(function(){function t(){}return t.prototype.addCallback=function(e){},t.prototype.removeCallback=function(e){},t})(),ime=(function(t){Ll(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(oE),ome=(function(t){Ll(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(oE),sme=(function(t){Ll(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(oE),ame=new Khe,lme=new eme,cme=new rme,ume=new nme,dme=new tme,fme=new ime,pme=new ome,hme=new sme,mme={get:function(t,e){if(t!=null)return t[e]},keys:function(t){return t==null?[]:Object.keys(t)}},gme={set:function(t,e,r){t!=null&&(t[e]=r)}},yme=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},vme=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))},bme=(function(){function t(){}return t.prototype.active=function(){return Cc},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,vme([n],yme(i),!1))},t.prototype.bind=function(e,r){return r},t.prototype.enable=function(){return this},t.prototype.disable=function(){return this},t})(),Ome=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},xme=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))},kw="context",wme=new bme,o0=(function(){function t(){}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalContextManager=function(e){return Up(kw,e,jo.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,xme([e,r,n],Ome(o),!1))},t.prototype.bind=function(e,r){return this._getContextManager().bind(e,r)},t.prototype._getContextManager=function(){return Sl(kw)||wme},t.prototype.disable=function(){this._getContextManager().disable(),Xp(kw,jo.instance())},t})(),Ps;(function(t){t[t.NONE=0]="NONE",t[t.SAMPLED=1]="SAMPLED"})(Ps||(Ps={}));var TU="0000000000000000",_U="00000000000000000000000000000000",RU={traceId:_U,spanId:TU,traceFlags:Ps.NONE},Af=(function(){function t(e){e===void 0&&(e=RU),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})(),sE=iE("OpenTelemetry Context Key SPAN");function aE(t){return t.getValue(sE)||void 0}function Sme(){return aE(o0.getInstance().active())}function lE(t,e){return t.setValue(sE,e)}function Cme(t){return t.deleteValue(sE)}function Pme(t,e){return lE(t,new Af(e))}function jU(t){var e;return(e=aE(t))===null||e===void 0?void 0:e.spanContext()}var kme=/^([0-9a-f]{32})$/i,$me=/^[0-9a-f]{16}$/i;function NU(t){return kme.test(t)&&t!==_U}function Eme(t){return $me.test(t)&&t!==TU}function s0(t){return NU(t.traceId)&&Eme(t.spanId)}function Ime(t){return new Af(t)}var $w=o0.getInstance(),DU=(function(){function t(){}return t.prototype.startSpan=function(e,r,n){n===void 0&&(n=$w.active());var i=!!r?.root;if(i)return new Af;var o=n&&jU(n);return Ame(o)&&s0(o)?new Af(o):new Af},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??$w.active(),c=this.startSpan(e,o,l),u=lE(l,c);return $w.with(u,a,void 0,c)}},t})();function Ame(t){return typeof t=="object"&&typeof t.spanId=="string"&&typeof t.traceId=="string"&&typeof t.traceFlags=="number"}var Tme=new DU,_me=(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):Tme},t})(),Rme=(function(){function t(){}return t.prototype.getTracer=function(e,r,n){return new DU},t})(),jme=new Rme,O2=(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 _me(this,e,r,n)},t.prototype.getDelegate=function(){var e;return(e=this._delegate)!==null&&e!==void 0?e:jme},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})(),wb;(function(t){t[t.NOT_RECORD=0]="NOT_RECORD",t[t.RECORD=1]="RECORD",t[t.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(wb||(wb={}));var PP;(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"})(PP||(PP={}));var bp;(function(t){t[t.UNSET=0]="UNSET",t[t.OK=1]="OK",t[t.ERROR=2]="ERROR"})(bp||(bp={}));var zi=o0.getInstance(),Tt=jo.instance(),Nme=(function(){function t(){}return t.prototype.getMeter=function(e,r,n){return ame},t})(),Dme=new Nme,Ew="metrics",Mme=(function(){function t(){}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalMeterProvider=function(e){return Up(Ew,e,jo.instance())},t.prototype.getMeterProvider=function(){return Sl(Ew)||Dme},t.prototype.getMeter=function(e,r,n){return this.getMeterProvider().getMeter(e,r,n)},t.prototype.disable=function(){Xp(Ew,jo.instance())},t})(),Lme=Mme.getInstance(),Qme=(function(){function t(){}return t.prototype.inject=function(e,r){},t.prototype.extract=function(e,r){return e},t.prototype.fields=function(){return[]},t})(),cE=iE("OpenTelemetry Baggage Key");function MU(t){return t.getValue(cE)||void 0}function zme(){return MU(o0.getInstance().active())}function Vme(t,e){return t.setValue(cE,e)}function qme(t){return t.deleteValue(cE)}var Iw="propagation",Bme=new Qme,Fme=(function(){function t(){this.createBaggage=Yhe,this.getBaggage=MU,this.getActiveBaggage=zme,this.setBaggage=Vme,this.deleteBaggage=qme}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalPropagator=function(e){return Up(Iw,e,jo.instance())},t.prototype.inject=function(e,r,n){return n===void 0&&(n=gme),this._getGlobalPropagator().inject(e,r,n)},t.prototype.extract=function(e,r,n){return n===void 0&&(n=mme),this._getGlobalPropagator().extract(e,r,n)},t.prototype.fields=function(){return this._getGlobalPropagator().fields()},t.prototype.disable=function(){Xp(Iw,jo.instance())},t.prototype._getGlobalPropagator=function(){return Sl(Iw)||Bme},t})(),Tf=Fme.getInstance(),Aw="trace",Wme=(function(){function t(){this._proxyTracerProvider=new O2,this.wrapSpanContext=Ime,this.isSpanContextValid=s0,this.deleteSpan=Cme,this.getSpan=aE,this.getActiveSpan=Sme,this.getSpanContext=jU,this.setSpan=lE,this.setSpanContext=Pme}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalTracerProvider=function(e){var r=Up(Aw,this._proxyTracerProvider,jo.instance());return r&&this._proxyTracerProvider.setDelegate(e),r},t.prototype.getTracerProvider=function(){return Sl(Aw)||this._proxyTracerProvider},t.prototype.getTracer=function(e,r){return this.getTracerProvider().getTracer(e,r)},t.prototype.disable=function(){Xp(Aw,jo.instance()),this._proxyTracerProvider=new O2},t})(),ti=Wme.getInstance();const LU=iE("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function Ume(t){return t.setValue(LU,!0)}function uE(t){return t.getValue(LU)===!0}const Xme="=",kP=";",$P=",",Tw="baggage",Zme=180,Gme=4096,Yme=8192;function Hme(t){return t.reduce((e,r)=>{const n=`${e}${e!==""?$P:""}${r}`;return n.length>Yme?e:n},"")}function Jme(t){return t.getAllEntries().map(([e,r])=>{let n=`${encodeURIComponent(e)}=${encodeURIComponent(r.value)}`;return r.metadata!==void 0&&(n+=kP+r.metadata.toString()),n})}function Kme(t){const e=t.split(kP);if(e.length<=0)return;const r=e.shift();if(!r)return;const n=r.indexOf(Xme);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=Hhe(e.join(kP))),{key:i,value:o,metadata:s}}class ege{inject(e,r,n){const i=Tf.getBaggage(e);if(!i||uE(e))return;const o=Jme(i).filter(a=>a.length<=Gme).slice(0,Zme),s=Hme(o);s.length>0&&n.set(r,Tw,s)}extract(e,r,n){const i=n.get(r,Tw),o=Array.isArray(i)?i.join($P):i;if(!o)return e;const s={};return o.length===0||(o.split($P).forEach(l=>{const c=Kme(l);if(c){const u={value:c.value};c.metadata&&(u.metadata=c.metadata),s[c.key]=u}}),Object.entries(s).length===0)?e:Tf.setBaggage(e,Tf.createBaggage(s))}fields(){return[Tw]}}function Wy(t){const e={};if(typeof t!="object"||t==null)return e;for(const[r,n]of Object.entries(t)){if(!tge(r)){Tt.warn(`Invalid attribute key: ${r}`);continue}if(!QU(n)){Tt.warn(`Invalid attribute value set for key: ${r}`);continue}Array.isArray(n)?e[r]=n.slice():e[r]=n}return e}function tge(t){return typeof t=="string"&&t.length>0}function QU(t){return t==null?!0:Array.isArray(t)?rge(t):zU(t)}function rge(t){let e;for(const r of t)if(r!=null){if(!e){if(zU(r)){e=typeof r;continue}return!1}if(typeof r!==e)return!1}return!0}function zU(t){switch(typeof t){case"number":case"boolean":case"string":return!0}return!1}function nge(){return t=>{Tt.error(ige(t))}}function ige(t){return typeof t=="string"?t:JSON.stringify(oge(t))}function oge(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 sge=nge();function Su(t){try{sge(t)}catch{}}const Gc=performance,age="2.0.1",_w="exception.message",lge="exception.stacktrace",Rw="exception.type",VU="service.name",cge="service.version",EP="telemetry.sdk.language",uge="webjs",IP="telemetry.sdk.name",AP="telemetry.sdk.version",dge="process.runtime.name",jw={[IP]:"opentelemetry",[dge]:"browser",[EP]:uge,[AP]:age};const fge=9,pge=6,hge=Math.pow(10,pge),Sb=Math.pow(10,fge);function Lc(t){const e=t/1e3,r=Math.trunc(e),n=Math.round(t%1e3*hge);return[r,n]}function qU(){let t=Gc.timeOrigin;if(typeof t!="number"){const e=Gc;t=e.timing&&e.timing.fetchStart}return t}function mge(t){const e=Lc(qU()),r=Lc(typeof t=="number"?t:Gc.now());return FU(e,r)}function gge(t,e){let r=e[0]-t[0],n=e[1]-t[1];return n<0&&(r-=1,n+=Sb),[r,n]}function yge(t){return t[0]*Sb+t[1]}function BU(t){return Array.isArray(t)&&t.length===2&&typeof t[0]=="number"&&typeof t[1]=="number"}function x2(t){return BU(t)||typeof t=="number"||t instanceof Date}function FU(t,e){const r=[t[0]+e[0],t[1]+e[1]];return r[1]>=Sb&&(r[1]-=Sb,r[0]+=1),r}var ho;(function(t){t[t.SUCCESS=0]="SUCCESS",t[t.FAILED=1]="FAILED"})(ho||(ho={}));class vge{_propagators;_fields;constructor(e={}){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){Tt.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){Tt.warn(`Failed to extract with ${o.constructor.name}. Err: ${s.message}`)}return i},e)}fields(){return this._fields.slice()}}const TP="[_0-9a-z-*/]",bge=`[a-z]${TP}{0,255}`,Oge=`[a-z0-9]${TP}{0,240}@[a-z]${TP}{0,13}`,xge=new RegExp(`^(?:${bge}|${Oge})$`),wge=/^[ -~]{0,255}[!-~]$/,Sge=/,|=/;function Cge(t){return xge.test(t)}function Pge(t){return wge.test(t)&&!Sge.test(t)}const w2=32,kge=512,S2=",",C2="=";class dE{_internalState=new Map;constructor(e){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+C2+this.get(r)),e),[]).join(S2)}_parse(e){e.length>kge||(this._internalState=e.split(S2).reverse().reduce((r,n)=>{const i=n.trim(),o=i.indexOf(C2);if(o!==-1){const s=i.slice(0,o),a=i.slice(o+1,n.length);Cge(s)&&Pge(a)&&r.set(s,a)}return r},new Map),this._internalState.size>w2&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,w2))))}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){const e=new dE;return e._internalState=new Map(this._internalState),e}}const Nw="traceparent",Dw="tracestate",$ge="00",Ege="(?!ff)[\\da-f]{2}",Ige="(?![0]{32})[\\da-f]{32}",Age="(?![0]{16})[\\da-f]{16}",Tge="[\\da-f]{2}",_ge=new RegExp(`^\\s?(${Ege})-(${Ige})-(${Age})-(${Tge})(-.*)?\\s?$`);function Rge(t){const e=_ge.exec(t);return!e||e[1]==="00"&&e[5]?null:{traceId:e[2],spanId:e[3],traceFlags:parseInt(e[4],16)}}class jge{inject(e,r,n){const i=ti.getSpanContext(e);if(!i||uE(e)||!s0(i))return;const o=`${$ge}-${i.traceId}-${i.spanId}-0${Number(i.traceFlags||Ps.NONE).toString(16)}`;n.set(r,Nw,o),i.traceState&&n.set(r,Dw,i.traceState.serialize())}extract(e,r,n){const i=n.get(r,Nw);if(!i)return e;const o=Array.isArray(i)?i[0]:i;if(typeof o!="string")return e;const s=Rge(o);if(!s)return e;s.isRemote=!0;const a=n.get(r,Dw);if(a){const l=Array.isArray(a)?a.join(","):a;s.traceState=new dE(typeof l=="string"?l:void 0)}return ti.setSpanContext(e,s)}fields(){return[Nw,Dw]}}const Nge="[object Object]",Dge="[object Null]",Mge="[object Undefined]",Lge=Function.prototype,WU=Lge.toString,Qge=WU.call(Object),zge=Object.getPrototypeOf,UU=Object.prototype,XU=UU.hasOwnProperty,Ka=Symbol?Symbol.toStringTag:void 0,ZU=UU.toString;function P2(t){if(!Vge(t)||qge(t)!==Nge)return!1;const e=zge(t);if(e===null)return!0;const r=XU.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&WU.call(r)===Qge}function Vge(t){return t!=null&&typeof t=="object"}function qge(t){return t==null?t===void 0?Mge:Dge:Ka&&Ka in Object(t)?Bge(t):Fge(t)}function Bge(t){const e=XU.call(t,Ka),r=t[Ka];let n=!1;try{t[Ka]=void 0,n=!0}catch{}const i=ZU.call(t);return n&&(e?t[Ka]=r:delete t[Ka]),i}function Fge(t){return ZU.call(t)}const Wge=20;function Uge(...t){let e=t.shift();const r=new WeakMap;for(;t.length>0;)e=GU(e,t.shift(),0,r);return e}function Mw(t){return Cb(t)?t.slice():t}function GU(t,e,r=0,n){let i;if(!(r>Wge)){if(r++,Uy(t)||Uy(e)||YU(e))i=Mw(e);else if(Cb(t)){if(i=t.slice(),Cb(e))for(let o=0,s=e.length;o<s;o++)i.push(Mw(e[o]));else if(Pd(e)){const o=Object.keys(e);for(let s=0,a=o.length;s<a;s++){const l=o[s];i[l]=Mw(e[l])}}}else if(Pd(t))if(Pd(e)){if(!Xge(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(Uy(c))typeof c>"u"?delete i[l]:i[l]=c;else{const u=i[l],d=c;if(k2(t,l,n)||k2(e,l,n))delete i[l];else{if(Pd(u)&&Pd(d)){const f=n.get(u)||[],p=n.get(d)||[];f.push({obj:t,key:l}),p.push({obj:e,key:l}),n.set(u,f),n.set(d,p)}i[l]=GU(i[l],c,r,n)}}}}else i=e;return i}}function k2(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 Cb(t){return Array.isArray(t)}function YU(t){return typeof t=="function"}function Pd(t){return!Uy(t)&&!Cb(t)&&!YU(t)&&typeof t=="object"}function Uy(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t>"u"||t instanceof Date||t instanceof RegExp||t===null}function Xge(t,e){return!(!P2(t)||!P2(e))}class Zge{_promise;_resolve;_reject;constructor(){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 Gge{_callback;_that;_isCalled=!1;_deferred=new Zge;constructor(e,r){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 Yge(){return"unknown_service"}const lf=t=>t!==null&&typeof t=="object"&&typeof t.then=="function";class Pb{_rawAttributes;_asyncAttributesPending=!1;_memoizedAttributes;static FromAttributeList(e){const r=new Pb({});return r._rawAttributes=$2(e),r._asyncAttributesPending=e.filter(([n,i])=>lf(i)).length>0,r}constructor(e){const r=e.attributes??{};this._rawAttributes=Object.entries(r).map(([n,i])=>(lf(i)&&(this._asyncAttributesPending=!0),[n,i])),this._rawAttributes=$2(this._rawAttributes)}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,lf(n)?await n:n]}this._asyncAttributesPending=!1}}get attributes(){if(this.asyncAttributesPending&&Tt.error("Accessing resource attributes before async attributes settled"),this._memoizedAttributes)return this._memoizedAttributes;const e={};for(const[r,n]of this._rawAttributes){if(lf(n)){Tt.debug(`Unsettled resource attribute ${r} skipped`);continue}n!=null&&(e[r]??=n)}return this._asyncAttributesPending||(this._memoizedAttributes=e),e}getRawAttributes(){return this._rawAttributes}merge(e){return e==null?this:Pb.FromAttributeList([...e.getRawAttributes(),...this.getRawAttributes()])}}function HU(t){return Pb.FromAttributeList(Object.entries(t))}function Hge(){return HU({[VU]:Yge(),[EP]:jw[EP],[IP]:jw[IP],[AP]:jw[AP]})}function $2(t){return t.map(([e,r])=>lf(r)?[e,r.catch(n=>{Tt.debug("promise rejection for resource attribute: %s - %s",e,n)})]:[e,r])}const Jge="exception";class Kge{_spanContext;kind;parentSpanContext;attributes={};links=[];events=[];startTime;resource;instrumentationScope;_droppedAttributesCount=0;_droppedEventsCount=0;_droppedLinksCount=0;name;status={code:bp.UNSET};endTime=[0,0];_ended=!1;_duration=[-1,-1];_spanProcessor;_spanLimits;_attributeValueLengthLimit;_performanceStartTime;_performanceOffset;_startTimeProvided;constructor(e){const r=Date.now();this._spanContext=e.spanContext,this._performanceStartTime=Gc.now(),this._performanceOffset=r-(this._performanceStartTime+qU()),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 Tt.warn(`Invalid attribute key: ${e}`),this;if(!QU(r))return Tt.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 Tt.warn("No events allowed."),this._droppedEventsCount++,this;i!==void 0&&this.events.length>=i&&(this._droppedEventsCount===0&&Tt.debug("Dropping extra events."),this.events.shift(),this._droppedEventsCount++),x2(r)&&(x2(n)||(n=r),r=void 0);const o=Wy(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"&&(Tt.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()){Tt.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=gge(this.startTime,this.endTime),this._duration[0]<0&&(Tt.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&&Tt.warn(`Dropped ${this._droppedEventsCount} events because eventCountLimit reached`),this._spanProcessor.onEnd(this)}_getTime(e){if(typeof e=="number"&&e<=Gc.now())return mge(e+this._performanceOffset);if(typeof e=="number")return Lc(e);if(e instanceof Date)return Lc(e.getTime());if(BU(e))return e;if(this._startTimeProvided)return Lc(Date.now());const r=Gc.now()-this._performanceStartTime;return FU(this.startTime,Lc(r))}isRecording(){return this._ended===!1}recordException(e,r){const n={};typeof e=="string"?n[_w]=e:e&&(e.code?n[Rw]=e.code.toString():e.name&&(n[Rw]=e.name),e.message&&(n[_w]=e.message),e.stack&&(n[lge]=e.stack)),n[Rw]||n[_w]?this.addEvent(Jge,n,r):Tt.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}}`);Tt.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?(Tt.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 Cu;(function(t){t[t.NOT_RECORD=0]="NOT_RECORD",t[t.RECORD=1]="RECORD",t[t.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(Cu||(Cu={}));class kb{shouldSample(){return{decision:Cu.NOT_RECORD}}toString(){return"AlwaysOffSampler"}}class Yc{shouldSample(){return{decision:Cu.RECORD_AND_SAMPLED}}toString(){return"AlwaysOnSampler"}}class dm{_root;_remoteParentSampled;_remoteParentNotSampled;_localParentSampled;_localParentNotSampled;constructor(e){this._root=e.root,this._root||(Su(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new Yc),this._remoteParentSampled=e.remoteParentSampled??new Yc,this._remoteParentNotSampled=e.remoteParentNotSampled??new kb,this._localParentSampled=e.localParentSampled??new Yc,this._localParentNotSampled=e.localParentNotSampled??new kb}shouldSample(e,r,n,i,o,s){const a=ti.getSpanContext(e);return!a||!s0(a)?this._root.shouldSample(e,r,n,i,o,s):a.isRemote?a.traceFlags&Ps.SAMPLED?this._remoteParentSampled.shouldSample(e,r,n,i,o,s):this._remoteParentNotSampled.shouldSample(e,r,n,i,o,s):a.traceFlags&Ps.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 E2{_ratio;_upperBound;constructor(e=0){this._ratio=e,this._ratio=this._normalize(e),this._upperBound=Math.floor(this._ratio*4294967295)}shouldSample(e,r){return{decision:NU(r)&&this._accumulate(r)<this._upperBound?Cu.RECORD_AND_SAMPLED:Cu.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 I2=1;function JU(){return{sampler:KU(),forceFlushTimeoutMillis:3e4,generalLimits:{attributeValueLengthLimit:1/0,attributeCountLimit:128},spanLimits:{attributeValueLengthLimit:1/0,attributeCountLimit:128,linkCountLimit:128,eventCountLimit:128,attributePerEventCountLimit:128,attributePerLinkCountLimit:128}}}function KU(){const t="parentbased_always_on";switch(t){case"always_on":return new Yc;case"always_off":return new kb;case"parentbased_always_on":return new dm({root:new Yc});case"parentbased_always_off":return new dm({root:new kb});case"traceidratio":return new E2(A2());case"parentbased_traceidratio":return new dm({root:new E2(A2())});default:return Tt.error(`OTEL_TRACES_SAMPLER value "${t}" invalid, defaulting to "parentbased_always_on".`),new dm({root:new Yc})}}function A2(){return Tt.error(`OTEL_TRACES_SAMPLER_ARG is blank, defaulting to ${I2}.`),I2}const eye=128,tye=1/0;function rye(t){const e={sampler:KU()},r=JU(),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 nye(t){const e=Object.assign({},t.spanLimits);return e.attributeCountLimit=t.spanLimits?.attributeCountLimit??t.generalLimits?.attributeCountLimit??void 0??void 0??eye,e.attributeValueLengthLimit=t.spanLimits?.attributeValueLengthLimit??t.generalLimits?.attributeValueLengthLimit??void 0??void 0??tye,Object.assign({},t,{spanLimits:e})}class iye{_exporter;_maxExportBatchSize;_maxQueueSize;_scheduledDelayMillis;_exportTimeoutMillis;_isExporting=!1;_finishedSpans=[];_timer;_shutdownOnce;_droppedSpansCount=0;constructor(e,r){this._exporter=e,this._maxExportBatchSize=typeof r?.maxExportBatchSize=="number"?r.maxExportBatchSize:512,this._maxQueueSize=typeof r?.maxQueueSize=="number"?r.maxQueueSize:2048,this._scheduledDelayMillis=typeof r?.scheduledDelayMillis=="number"?r.scheduledDelayMillis:5e3,this._exportTimeoutMillis=typeof r?.exportTimeoutMillis=="number"?r.exportTimeoutMillis:3e4,this._shutdownOnce=new Gge(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize&&(Tt.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&Ps.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&&Tt.debug("maxQueueSize reached, dropping spans"),this._droppedSpansCount++;return}this._droppedSpansCount>0&&(Tt.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);zi.with(Ume(zi.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===ho.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.push(c.resource.waitForAsyncAttributes()))}s===null?o():Promise.all(s).then(o,a=>{Su(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,Su(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 oye extends iye{_visibilityChangeListener;_pageHideListener;constructor(e,r){super(e,r),this.onInit(r)}onInit(e){e?.disableAutoFlushOnDocumentHide!==!0&&typeof document<"u"&&(this._visibilityChangeListener=()=>{document.visibilityState==="hidden"&&this.forceFlush().catch(r=>{Su(r)})},this._pageHideListener=()=>{this.forceFlush().catch(r=>{Su(r)})},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 sye=8,aye=16;class lye{generateTraceId=T2(aye);generateSpanId=T2(sye)}const fm=Array(32);function T2(t){return function(){for(let r=0;r<t*2;r++)fm[r]=Math.floor(Math.random()*16)+48,fm[r]>=58&&(fm[r]+=39);return String.fromCharCode.apply(null,fm.slice(0,t*2))}}class cye{_sampler;_generalLimits;_spanLimits;_idGenerator;instrumentationScope;_resource;_spanProcessor;constructor(e,r,n,i){const o=rye(r);this._sampler=o.sampler,this._generalLimits=o.generalLimits,this._spanLimits=o.spanLimits,this._idGenerator=r.idGenerator||new lye,this._resource=n,this._spanProcessor=i,this.instrumentationScope=e}startSpan(e,r={},n=zi.active()){r.root&&(n=ti.deleteSpan(n));const i=ti.getSpan(n);if(uE(n))return Tt.debug("Instrumentation suppressed, returning Noop Span"),ti.wrapSpanContext(RU);const o=i?.spanContext(),s=this._idGenerator.generateSpanId();let a,l,c;!o||!ti.isSpanContextValid(o)?l=this._idGenerator.generateTraceId():(l=o.traceId,c=o.traceState,a=o);const u=r.kind??PP.INTERNAL,d=(r.links??[]).map(b=>({context:b.context,attributes:Wy(b.attributes)})),f=Wy(r.attributes),p=this._sampler.shouldSample(n,l,e,u,f,d);c=p.traceState??c;const g=p.decision===wb.RECORD_AND_SAMPLED?Ps.SAMPLED:Ps.NONE,m={traceId:l,spanId:s,traceFlags:g,traceState:c};if(p.decision===wb.NOT_RECORD)return Tt.debug("Recording is off, propagating context in a non-recording span"),ti.wrapSpanContext(m);const y=Wy(Object.assign(f,p.attributes));return new Kge({resource:this._resource,scope:this.instrumentationScope,context:n,spanContext:m,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??zi.active(),c=this.startSpan(e,o,l),u=ti.setSpan(l,c);return zi.with(u,a,void 0,c)}getGeneralLimits(){return this._generalLimits}getSpanLimits(){return this._spanLimits}}class uye{_spanProcessors;constructor(e){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=>{Su(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 el;(function(t){t[t.resolved=0]="resolved",t[t.timeout=1]="timeout",t[t.error=2]="error",t[t.unresolved=3]="unresolved"})(el||(el={}));class dye{_config;_tracers=new Map;_resource;_activeSpanProcessor;constructor(e={}){const r=Uge({},JU(),nye(e));this._resource=r.resource??Hge(),this._config=Object.assign({},r,{resource:this._resource});const n=[];e.spanProcessors?.length&&n.push(...e.spanProcessors),this._activeSpanProcessor=new uye(n)}getTracer(e,r,n){const i=`${e}@${r||""}:${n?.schemaUrl||""}`;return this._tracers.has(i)||this._tracers.set(i,new cye({name:e,version:r,schemaUrl: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=el.timeout},e);n.forceFlush().then(()=>{clearTimeout(s),o!==el.timeout&&(o=el.resolved,i(o))}).catch(a=>{clearTimeout(s),o=el.error,i(a)})}));return new Promise((n,i)=>{Promise.all(r).then(o=>{const s=o.filter(a=>a!==el.resolved);s.length>0?i(s):n()}).catch(o=>i([o]))})}shutdown(){return this._activeSpanProcessor.shutdown()}}class fye{_enabled=!1;_currentContext=Cc;_bindFunction(e=Cc,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=Cc,this._enabled=!1,this}enable(){return this._enabled?this:(this._enabled=!0,this._currentContext=Cc,this)}with(e,r,n,...i){const o=this._currentContext;this._currentContext=e||Cc;try{return r.call(n,...i)}finally{this._currentContext=o}}}function pye(t){if(t!==null){if(t===void 0){const e=new fye;e.enable(),zi.setGlobalContextManager(e);return}t.enable(),zi.setGlobalContextManager(t)}}function hye(t){if(t!==null){if(t===void 0){Tf.setGlobalPropagator(new vge({propagators:[new jge,new ege]}));return}Tf.setGlobalPropagator(t)}}class mye extends dye{constructor(e={}){super(e)}register(e={}){ti.setGlobalTracerProvider(this),hye(e.propagator),pye(e.contextManager)}}class gye{_delegate;constructor(e){this._delegate=e}export(e,r){this._delegate.export(e,r)}forceFlush(){return this._delegate.forceFlush()}shutdown(){return this._delegate.shutdown()}}class _2 extends Error{code;name="OTLPExporterError";data;constructor(e,r,n){super(e),this.data=n,this.code=r}}function yye(t){if(Number.isFinite(t)&&t>0)return t;throw new Error(`Configuration: timeoutMillis is invalid, expected number greater than 0 (actual: '${t}')`)}function vye(t){if(t!=null)return()=>t}function bye(t,e,r){return{timeoutMillis:yye(t.timeoutMillis??e.timeoutMillis??r.timeoutMillis),concurrencyLimit:t.concurrencyLimit??e.concurrencyLimit??r.concurrencyLimit,compression:t.compression??e.compression??r.compression}}function Oye(){return{timeoutMillis:1e4,concurrencyLimit:30,compression:"none"}}class xye{_concurrencyLimit;_sendingPromises=[];constructor(e){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 wye(t){return new xye(t.concurrencyLimit)}function Sye(t){return Object.prototype.hasOwnProperty.call(t,"partialSuccess")}function Cye(){return{handleResponse(t){t==null||!Sye(t)||t.partialSuccess==null||Object.keys(t.partialSuccess).length===0||Tt.warn("Received Partial Success response:",JSON.stringify(t.partialSuccess))}}}class Pye{_transport;_serializer;_responseHandler;_promiseQueue;_timeout;_diagLogger;constructor(e,r,n,i,o){this._transport=e,this._serializer=r,this._responseHandler=n,this._promiseQueue=i,this._timeout=o,this._diagLogger=Tt.createComponentLogger({namespace:"OTLPExportDelegate"})}export(e,r){if(this._diagLogger.debug("items to be sent",e),this._promiseQueue.hasReachedLimit()){r({code:ho.FAILED,error:new Error("Concurrent export limit reached")});return}const n=this._serializer.serializeRequest(e);if(n==null){r({code:ho.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:ho.SUCCESS});return}else if(i.status==="failure"&&i.error){r({code:ho.FAILED,error:i.error});return}else i.status==="retryable"?r({code:ho.FAILED,error:new _2("Export failed with retryable status")}):r({code:ho.FAILED,error:new _2("Export failed with unknown error")})},i=>r({code:ho.FAILED,error:i})))}forceFlush(){return this._promiseQueue.awaitAll()}async shutdown(){this._diagLogger.debug("shutdown started"),await this.forceFlush(),this._transport.shutdown()}}function kye(t,e){return new Pye(t.transport,t.serializer,Cye(),t.promiseHandler,e.timeout)}function e4(t,e,r){return kye({transport:r,serializer:e,promiseHandler:wye(t)},{timeout:t.timeoutMillis})}function R2(t){return t>=48&&t<=57?t-48:t>=97&&t<=102?t-87:t-55}function t4(t){const e=new Uint8Array(t.length/2);let r=0;for(let n=0;n<t.length;n+=2){const i=R2(t.charCodeAt(n)),o=R2(t.charCodeAt(n+1));e[r++]=i<<4|o}return e}function r4(t){const e=BigInt(1e9);return BigInt(t[0])*e+BigInt(t[1])}function $ye(t){const e=Number(BigInt.asUintN(32,t)),r=Number(BigInt.asUintN(32,t>>BigInt(32)));return{low:e,high:r}}function Eye(t){const e=r4(t);return $ye(e)}function Iye(t){return r4(t).toString()}const Aye=typeof BigInt<"u"?Iye:yge;function j2(t){return t}function Tye(t){if(t!==void 0)return t4(t)}const _ye={encodeHrTime:Eye,encodeSpanContext:t4,encodeOptionalSpanContext:Tye};function Rye(t){return t===void 0?_ye:{encodeHrTime:Aye,encodeSpanContext:j2,encodeOptionalSpanContext:j2}}function jye(t){return{attributes:a0(t.attributes),droppedAttributesCount:0}}function Nye(t){return{name:t.name,version:t.version}}function a0(t){return Object.keys(t).map(e=>n4(e,t[e]))}function n4(t,e){return{key:t,value:i4(e)}}function i4(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(i4)}}:e==="object"&&t!=null?{kvlistValue:{values:Object.entries(t).map(([r,n])=>n4(r,n))}}:{}}function Dye(t,e){const r=t.spanContext(),n=t.status,i=t.parentSpanContext?.spanId?e.encodeSpanContext(t.parentSpanContext?.spanId):void 0;return{traceId:e.encodeSpanContext(r.traceId),spanId:e.encodeSpanContext(r.spanId),parentSpanId:i,traceState:r.traceState?.serialize(),name:t.name,kind:t.kind==null?0:t.kind+1,startTimeUnixNano:e.encodeHrTime(t.startTime),endTimeUnixNano:e.encodeHrTime(t.endTime),attributes:a0(t.attributes),droppedAttributesCount:t.droppedAttributesCount,events:t.events.map(o=>Lye(o,e)),droppedEventsCount:t.droppedEventsCount,status:{code:n.code,message:n.message},links:t.links.map(o=>Mye(o,e)),droppedLinksCount:t.droppedLinksCount}}function Mye(t,e){return{attributes:t.attributes?a0(t.attributes):[],spanId:e.encodeSpanContext(t.context.spanId),traceId:e.encodeSpanContext(t.context.traceId),traceState:t.context.traceState?.serialize(),droppedAttributesCount:t.droppedAttributesCount||0}}function Lye(t,e){return{attributes:t.attributes?a0(t.attributes):[],name:t.name,timeUnixNano:e.encodeHrTime(t.time),droppedAttributesCount:t.droppedAttributesCount||0}}function Qye(t,e){const r=Rye(e);return{resourceSpans:Vye(t,r)}}function zye(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 Vye(t,e){const r=zye(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 p=f.map(g=>Dye(g,e));l.push({scope:Nye(f[0].instrumentationScope),spans:p,schemaUrl:f[0].instrumentationScope.schemaUrl})}u=c.next()}const d={resource:jye(s),scopeSpans:l,schemaUrl:void 0};n.push(d),o=i.next()}return n}const qye={serializeRequest:t=>{const e=Qye(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))}},Bye=5,Fye=1e3,Wye=5e3,Uye=1.5,N2=.2;function Xye(){return Math.random()*(2*N2)-N2}class Zye{_transport;constructor(e){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=Bye,s=Fye;for(;i.status==="retryable"&&o>0;){o--;const a=Math.max(Math.min(s,Wye)+Xye(),0);s=s*Uye;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 o4(t){return new Zye(t.transport)}function Gye(t){return[429,502,503,504].includes(t)}function Yye(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 Hye{_parameters;constructor(e){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?(Tt.debug("XHR success"),n({status:"success"})):i.status&&Gye(i.status)?n({status:"retryable",retryInMillis:Yye(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 Jye(t){return new Hye(t)}class Kye{_params;constructor(e){this._params=e}send(e){return new Promise(r=>{navigator.sendBeacon(this._params.url,new Blob([e],{type:this._params.blobType}))?(Tt.debug("SendBeacon success"),r({status:"success"})):r({status:"failure",error:new Error("SendBeacon failed")})})}shutdown(){}}function eve(t){return new Kye(t)}function tve(t,e){return e4(t,e,o4({transport:Jye(t)}))}function rve(t,e){return e4(t,e,o4({transport:eve({url:t.url,blobType:t.headers()["Content-Type"]})}))}function nve(t){return()=>{const e={};return Object.entries(t?.()??{}).forEach(([r,n])=>{typeof n<"u"?e[r]=String(n):Tt.warn(`Header "${r}" has invalid value (${n}) and will be ignored`)}),e}}function ive(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 ove(t){if(t!=null)try{return new URL(t),t}catch{throw new Error(`Configuration: Could not parse user-provided export URL: '${t}'`)}}function sve(t,e,r){return{...bye(t,e,r),headers:ive(nve(t.headers),e.headers,r.headers),url:ove(t.url)??e.url??r.url,agentOptions:t.agentOptions??e.agentOptions??r.agentOptions}}function ave(t,e){return{...Oye(),headers:()=>t,url:"http://localhost:4318/"+e,agentOptions:{keepAlive:!0}}}function lve(t,e,r){return sve({url:t.url,timeoutMillis:t.timeoutMillis,headers:vye(t.headers),concurrencyLimit:t.concurrencyLimit},{},ave(r,e))}function cve(t,e,r,n){const i=!!t.headers||typeof navigator.sendBeacon!="function",o=lve(t,r,n);return i?tve(o,e):rve(o,e)}class uve extends gye{constructor(e={}){super(cve(e,qye,"v1/traces",{"Content-Type":"application/json"}))}}class s4{emit(e){}}const dve=new s4;class fve{getLogger(e,r,n){return new s4}}const a4=new fve;class pve{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):dve}}class D2{getLogger(e,r,n){var i;return(i=this.getDelegateLogger(e,r,n))!==null&&i!==void 0?i:new pve(this,e,r,n)}getDelegate(){var e;return(e=this._delegate)!==null&&e!==void 0?e:a4}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 hve=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof global=="object"?global:{},pm=Symbol.for("io.opentelemetry.js.api.logs"),kd=hve;function mve(t,e,r){return n=>n===t?e:r}const M2=1;class fE{constructor(){this._proxyLoggerProvider=new D2}static getInstance(){return this._instance||(this._instance=new fE),this._instance}setGlobalLoggerProvider(e){return kd[pm]?this.getLoggerProvider():(kd[pm]=mve(M2,e,a4),this._proxyLoggerProvider.setDelegate(e),e)}getLoggerProvider(){var e,r;return(r=(e=kd[pm])===null||e===void 0?void 0:e.call(kd,M2))!==null&&r!==void 0?r:this._proxyLoggerProvider}getLogger(e,r,n){return this.getLoggerProvider().getLogger(e,r,n)}disable(){delete kd[pm],this._proxyLoggerProvider=new D2}}const gve=fE.getInstance();function yve(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 vve(t){t.forEach(e=>e.disable())}function bve(t){const e=t.tracerProvider||ti.getTracerProvider(),r=t.meterProvider||Lme.getMeterProvider(),n=t.loggerProvider||gve.getLoggerProvider(),i=t.instrumentations?.flat()??[];return yve(i,e,r,n),()=>{vve(i)}}class L2{span=void 0;constructor(e){this.span=e}error(e){this.span&&(this.span.setStatus(bp.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(bp.OK),this.span.end())}}class Ove{config=null;tracer=null;tracerProvider=null;initialized=!1;initTracer(e){throw new Error("initTracer must be implemented by the environment-specific client")}init(e){this.config=e,this.initTracer(e)}send(e){try{if(!this.tracer||!this.config)return;const r=e.time?new Date(e.time):new Date;this.tracer.startSpan(`event.${e.type}`,{attributes:this.processAttributes(e,r),startTime:r}).end(r)}catch(r){this.config?.isProd||console.error("Event reporting failed:",r)}}processAttributes(e,r){const i={"cloudevents.event_id":xb(),"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":this.config?.version,"cloudevents.event_origin":this.config?.serviceName,"cloudevents.event_source_details.id":e.sourceDetails?.id??"anonymous","cloudevents.event_source_details.object":e.sourceDetails?.object??"anonymous","cloudevents.event_source_details.uri":e.sourceDetails?.uri};if(e.data&&typeof e.data=="object"&&Object.entries(e.data).forEach(([o,s])=>{const a=o.replace(/([A-Z])/g,"_$1").toLowerCase();s!==void 0&&(i[`cloudevents.event_data.${a}`]=s)}),"subjects"in e&&Array.isArray(e.subjects)){const o=e.subjects.reduce((s,a)=>{if(!a||typeof a!="object")return s;const l=a.object;if(!l||typeof l!="string")return s;const c=s.notUpdated.find(({object:u})=>u===l);return c?(s.updated=[c,a],s.notUpdated=s.notUpdated.filter(({object:u})=>u!==l)):s.updated.some(({object:u})=>u===l)||s.notUpdated.push(a),s},{updated:[],notUpdated:[]});o.updated.forEach((s,a)=>{const l=a===0?"after.":"before.",c=`${s.object}.`;Object.entries(s).forEach(([u,d])=>{d!==void 0&&(i[`cloudevents.subjects.${l}${c}${u}`]=d)})}),o.notUpdated.forEach(s=>{const a=`${s.object}.`;Object.entries(s).forEach(([l,c])=>{c!==void 0&&(i[`cloudevents.subjects.${a}${l}`]=c)})})}return Object.entries(e).forEach(([o,s])=>{["id","source","type","specversion","time","datacontenttype","data","subject","sourceDetails","analyticsMetadata","context"].includes(o)||s!==void 0&&(s instanceof Object?Object.entries(s).forEach(([a,l])=>{l!==void 0&&(i[`cloudevents.${o}.${a}`]=l)}):i[`cloudevents.${o}`]=s)}),i}startSpan(e,r){try{if(!this.tracer)return;let n;const i=e.time?new Date(e.time):new Date,o=this.tracer.startSpan(`event.${e.type}`,{attributes:this.processAttributes(e,i),root:!r},r);return r||(n=ti.setSpan(zi.active(),o)),{end:()=>o.end(),setAttribute:(s,a)=>{o.setAttribute(`cloudevents.event_data.${this.getKeySnakeValue(s)}`,a)},setStatus:(s,a)=>o.setStatus({code:s,message:a}),parentCtx:n}}catch(n){this.config?.isProd||console.error("Event reporting failed:",n)}}startStepSpan(e){try{if(!this.tracer)return;const r=e.time?new Date(e.time):new Date,n=this.tracer.startSpan(`event.${e.type}`,{attributes:this.processAttributes(e,r),root:!1},zi.active());return{end:()=>n.end(),setAttribute:(i,o)=>{n.setAttribute(`cloudevents.event_data.${this.getKeySnakeValue(i)}`,o)},setStatus:(i,o)=>n.setStatus({code:i,message:o}),recordException:i=>n.recordException(i)}}catch(r){this.config?.isProd||console.error("Event reporting failed:",r)}}startRootSpan(e){try{if(!this.tracer)return;const r=e.time?new Date(e.time):new Date,n=this.tracer.startSpan(`event.${e.type}`,{attributes:this.processAttributes(e,r)},zi.active()),i=ti.setSpan(zi.active(),n);return{end:()=>n.end(),setAttribute:(o,s)=>{n.setAttribute(`cloudevents.event_data.${this.getKeySnakeValue(o)}`,s)},setStatus:(o,s)=>n.setStatus({code:o,message:s}),recordException:o=>n.recordException(o),context:i}}catch(r){this.config?.isProd||console.error("Event reporting failed:",r)}}startTrace(e){const r=this.startStepSpan(e);if(r)return new L2(r)}startRootTrace(e){const r=this.startRootSpan(e);if(r)return{traceApi:new L2(r),context:r.context}}async forceFlush(){return this.tracerProvider?.forceFlush()}getKeySnakeValue=e=>e.replace(/([A-Z])/g,"_$1").toLowerCase()}class xve extends Ove{tracerProvider=null;tracer=null;initialized=!1;constructor(){super()}initTracer(e){if(!e.collectorUrl&&!e.collectorTraceUrl)return;const r=`ses_${xb()}`,n=HU({[VU]:e.serviceName,[cge]:e.serviceVersion,session_id:r}),i=e.collectorTraceUrl||`${e.collectorUrl}/v1/traces`;this.tracerProvider=new mye({resource:n,spanProcessors:[new oye(new uve({url:i,headers:{}}))]}),this.tracer=this.tracerProvider.getTracer(e.tracerName),this.tracerProvider.register(),bve({instrumentations:e.instrumentations??[]}),this.initialized=!0}}class wve{config=null;initialized=!1;useCloudEventData;otelClient;traceApi;constructor(){this.useCloudEventData=()=>({organization:{id:"",slug:""},project:{id:"",slug:""},productType:"",sourceDetails:{user:"Anonymous",object:"user",uri:""},request:{source:""}}),this.otelClient=new xve,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)}}}updateCloudEventData=e=>{this.config?.disabled||(this.useCloudEventData=e)};send(e,r){try{if(!this.config?.otel.isProd)return;const n=this.constructCloudEvent(e,r);this.sendToOtelService(n)}catch(n){this.config?.otel.isProd||console.error("Event reporting failed:",n)}}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){if(this.config?.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_${xb()}`,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_${xb()}`,object:n.sourceDetails.object||"user",uri:n.sourceDetails.uri||""},organization:n.organization,project:n.project,productType:n.productType}}sendToOtelService(e){this.config?.otel.isProd||console.log("CloudEvent to be sent to OTEL service:",e),this.otelClient.send(e)}forceFlush(){return this.config?.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 Sve(){return{theme:"light",disableCollectionsTab:!1,oAuth2RedirectURI:null,corsProxyUrl:void 0,mockServer:void 0,certificates:[],isApiBased:!1,generatedEnvironments:[],generatedInputs:[]}}const Cve=Sve(),Pve=N.createContext(Cve);function qo(){const t=N.useContext(Pve);return Mq(t)}function kve(t,e){const{apps:{apiId:r}}=Ct(),{corsProxyUrl:n,disableCollectionsTab:i,mockServer:o,oAuth2RedirectURI:s,certificates:a,storageKey:l,isApiBased:c}=qo();n.set(t?.corsProxyUrl??_J),o.set(t?.mockServer),r.set(t?.apiId),s.set(t?.oAuth2RedirectURI),i.set(!!t?.disableCollectionsTab),l.set(t?.storageKey),c.set(!!e),N.useEffect(()=>{a.set(t?.certificates||[])},[t?.certificates])}const l0=N.createContext({});function pE(){return N.useContext(l0)||{}}const $ve="0.18.0-next.2",Eve={version:$ve};class Ive{client;_isInitialized=!1;constructor(){this.client=new wve}get isInitialized(){return this._isInitialized}init(e){if(this.isInitialized)return;const n={serviceName:"replay",serviceVersion:Eve.version,version:"1.0.0",tracerName:e?.tracerName||"desktop",collectorUrl: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 Lw=new Ive;function ft(){const{telemetry:t}=pE();return Lw.isInitialized||Lw.init({tracerName:t?.tracerName,collectorUrl:t?.collectorUrl}),{sendEvent:(e,r)=>{Lw.sendEvent(e,r)}}}const Cn=800;function Cl(t){"@babel/helpers - typeof";return Cl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Cl(t)}function Ave(t,e){if(Cl(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Cl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function l4(t){var e=Ave(t,"string");return Cl(e)=="symbol"?e:e+""}function cf(t,e,r){return(e=l4(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Q2(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function We(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Q2(Object(r),!0).forEach(function(n){cf(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Q2(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Tve(t){if(Array.isArray(t))return t}function _ve(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,i,o,s,a=[],l=!0,c=!1;try{if(o=(r=r.call(t)).next,e===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(a.push(n.value),a.length!==e);l=!0);}catch(u){c=!0,i=u}finally{try{if(!l&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(c)throw i}}return a}}function _P(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function c4(t,e){if(t){if(typeof t=="string")return _P(t,e);var r={}.toString.call(t).slice(8,-1);return r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set"?Array.from(t):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_P(t,e):void 0}}function Rve(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
344
|
+
`;function Wp({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 h.jsx(AU,{variable:t,onSave:s,onCancel:r,...n,children:h.jsx(gp,{children:h.jsx(Ohe,{value:i,onChange:a=>o(a),title:"Make it secret"})})})}function Fy(t){var e=new Error(t);return e.source="ulid",e}var nE="0123456789ABCDEFGHJKMNPQRSTVWXYZ",If=nE.length,v2=Math.pow(2,48)-1,$he=10,Ehe=16;function Ihe(t){var e=Math.floor(t()*If);return e===If&&(e=If-1),nE.charAt(e)}function Ahe(t,e){if(isNaN(t))throw new Error(t+" must be a number");if(t>v2)throw Fy("cannot encode time greater than "+v2);if(t<0)throw Fy("time must be positive");if(Number.isInteger(t)===!1)throw Fy("time must be an integer");for(var r=void 0,n="";e>0;e--)r=t%If,n=nE.charAt(r)+n,t=(t-r)/If;return n}function The(t,e){for(var r="";t>0;t--)r=Ihe(e)+r;return r}function _he(){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 Fy("secure crypto unusable, insecure Math.random not allowed")}function Rhe(t){return t||(t=_he()),function(r){return isNaN(r)&&(r=Date.now()),Ahe(r,$he)+The(Ehe,t)}}var xb=Rhe(),jhe=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof global=="object"?global:{},sl="1.9.0",b2=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;function Nhe(t){var e=new Set([t]),r=new Set,n=t.match(b2);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(b2);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 Dhe=Nhe(sl),Mhe=sl.split(".")[0],yp=Symbol.for("opentelemetry.js.api."+Mhe),vp=jhe;function Up(t,e,r,n){var i;n===void 0&&(n=!1);var o=vp[yp]=(i=vp[yp])!==null&&i!==void 0?i:{version:sl};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!==sl){var s=new Error("@opentelemetry/api: Registration of version v"+o.version+" for "+t+" does not match previously registered API v"+sl);return r.error(s.stack||s.message),!1}return o[t]=e,r.debug("@opentelemetry/api: Registered a global for "+t+" v"+sl+"."),!0}function Sl(t){var e,r,n=(e=vp[yp])===null||e===void 0?void 0:e.version;if(!(!n||!Dhe(n)))return(r=vp[yp])===null||r===void 0?void 0:r[t]}function Xp(t,e){e.debug("@opentelemetry/api: Unregistering a global for "+t+" v"+sl+".");var r=vp[yp];r&&delete r[t]}var Lhe=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},Qhe=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))},zhe=(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 Cd("debug",this._namespace,e)},t.prototype.error=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return Cd("error",this._namespace,e)},t.prototype.info=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return Cd("info",this._namespace,e)},t.prototype.warn=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return Cd("warn",this._namespace,e)},t.prototype.verbose=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return Cd("verbose",this._namespace,e)},t})();function Cd(t,e,r){var n=Sl("diag");if(n)return r.unshift(e),n[t].apply(n,Qhe([],Lhe(r),!1))}var Hn;(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"})(Hn||(Hn={}));function Vhe(t,e){t<Hn.NONE?t=Hn.NONE:t>Hn.ALL&&(t=Hn.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",Hn.ERROR),warn:r("warn",Hn.WARN),info:r("info",Hn.INFO),debug:r("debug",Hn.DEBUG),verbose:r("verbose",Hn.VERBOSE)}}var qhe=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},Bhe=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))},Fhe="diag",jo=(function(){function t(){function e(i){return function(){for(var o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];var a=Sl("diag");if(a)return a[i].apply(a,Bhe([],qhe(o),!1))}}var r=this,n=function(i,o){var s,a,l;if(o===void 0&&(o={logLevel:Hn.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=Sl("diag"),d=Vhe((a=o.logLevel)!==null&&a!==void 0?a:Hn.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 Up("diag",d,r,!0)};r.setLogger=n,r.disable=function(){Xp(Fhe,r)},r.createComponentLogger=function(i){return new zhe(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})(),Whe=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},Uhe=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.")},Xhe=(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=Whe(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=Uhe(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})(),Zhe=Symbol("BaggageEntryMetadata"),Ghe=jo.instance();function Yhe(t){return t===void 0&&(t={}),new Xhe(new Map(Object.entries(t)))}function Hhe(t){return typeof t!="string"&&(Ghe.error("Cannot create baggage metadata from unknown type: "+typeof t),t=""),{__TYPE__:Zhe,toString:function(){return t}}}function iE(t){return Symbol.for(t)}var Jhe=(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})(),Cc=new Jhe,Ll=(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)}})(),Khe=(function(){function t(){}return t.prototype.createGauge=function(e,r){return cme},t.prototype.createHistogram=function(e,r){return ume},t.prototype.createCounter=function(e,r){return lme},t.prototype.createUpDownCounter=function(e,r){return dme},t.prototype.createObservableGauge=function(e,r){return pme},t.prototype.createObservableCounter=function(e,r){return fme},t.prototype.createObservableUpDownCounter=function(e,r){return hme},t.prototype.addBatchObservableCallback=function(e,r){},t.prototype.removeBatchObservableCallback=function(e){},t})(),i0=(function(){function t(){}return t})(),eme=(function(t){Ll(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.add=function(r,n){},e})(i0),tme=(function(t){Ll(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.add=function(r,n){},e})(i0),rme=(function(t){Ll(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.record=function(r,n){},e})(i0),nme=(function(t){Ll(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.record=function(r,n){},e})(i0),oE=(function(){function t(){}return t.prototype.addCallback=function(e){},t.prototype.removeCallback=function(e){},t})(),ime=(function(t){Ll(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(oE),ome=(function(t){Ll(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(oE),sme=(function(t){Ll(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(oE),ame=new Khe,lme=new eme,cme=new rme,ume=new nme,dme=new tme,fme=new ime,pme=new ome,hme=new sme,mme={get:function(t,e){if(t!=null)return t[e]},keys:function(t){return t==null?[]:Object.keys(t)}},gme={set:function(t,e,r){t!=null&&(t[e]=r)}},yme=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},vme=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))},bme=(function(){function t(){}return t.prototype.active=function(){return Cc},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,vme([n],yme(i),!1))},t.prototype.bind=function(e,r){return r},t.prototype.enable=function(){return this},t.prototype.disable=function(){return this},t})(),Ome=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},xme=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))},kw="context",wme=new bme,o0=(function(){function t(){}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalContextManager=function(e){return Up(kw,e,jo.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,xme([e,r,n],Ome(o),!1))},t.prototype.bind=function(e,r){return this._getContextManager().bind(e,r)},t.prototype._getContextManager=function(){return Sl(kw)||wme},t.prototype.disable=function(){this._getContextManager().disable(),Xp(kw,jo.instance())},t})(),Ps;(function(t){t[t.NONE=0]="NONE",t[t.SAMPLED=1]="SAMPLED"})(Ps||(Ps={}));var TU="0000000000000000",_U="00000000000000000000000000000000",RU={traceId:_U,spanId:TU,traceFlags:Ps.NONE},Af=(function(){function t(e){e===void 0&&(e=RU),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})(),sE=iE("OpenTelemetry Context Key SPAN");function aE(t){return t.getValue(sE)||void 0}function Sme(){return aE(o0.getInstance().active())}function lE(t,e){return t.setValue(sE,e)}function Cme(t){return t.deleteValue(sE)}function Pme(t,e){return lE(t,new Af(e))}function jU(t){var e;return(e=aE(t))===null||e===void 0?void 0:e.spanContext()}var kme=/^([0-9a-f]{32})$/i,$me=/^[0-9a-f]{16}$/i;function NU(t){return kme.test(t)&&t!==_U}function Eme(t){return $me.test(t)&&t!==TU}function s0(t){return NU(t.traceId)&&Eme(t.spanId)}function Ime(t){return new Af(t)}var $w=o0.getInstance(),DU=(function(){function t(){}return t.prototype.startSpan=function(e,r,n){n===void 0&&(n=$w.active());var i=!!r?.root;if(i)return new Af;var o=n&&jU(n);return Ame(o)&&s0(o)?new Af(o):new Af},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??$w.active(),c=this.startSpan(e,o,l),u=lE(l,c);return $w.with(u,a,void 0,c)}},t})();function Ame(t){return typeof t=="object"&&typeof t.spanId=="string"&&typeof t.traceId=="string"&&typeof t.traceFlags=="number"}var Tme=new DU,_me=(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):Tme},t})(),Rme=(function(){function t(){}return t.prototype.getTracer=function(e,r,n){return new DU},t})(),jme=new Rme,O2=(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 _me(this,e,r,n)},t.prototype.getDelegate=function(){var e;return(e=this._delegate)!==null&&e!==void 0?e:jme},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})(),wb;(function(t){t[t.NOT_RECORD=0]="NOT_RECORD",t[t.RECORD=1]="RECORD",t[t.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(wb||(wb={}));var PP;(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"})(PP||(PP={}));var bp;(function(t){t[t.UNSET=0]="UNSET",t[t.OK=1]="OK",t[t.ERROR=2]="ERROR"})(bp||(bp={}));var zi=o0.getInstance(),Tt=jo.instance(),Nme=(function(){function t(){}return t.prototype.getMeter=function(e,r,n){return ame},t})(),Dme=new Nme,Ew="metrics",Mme=(function(){function t(){}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalMeterProvider=function(e){return Up(Ew,e,jo.instance())},t.prototype.getMeterProvider=function(){return Sl(Ew)||Dme},t.prototype.getMeter=function(e,r,n){return this.getMeterProvider().getMeter(e,r,n)},t.prototype.disable=function(){Xp(Ew,jo.instance())},t})(),Lme=Mme.getInstance(),Qme=(function(){function t(){}return t.prototype.inject=function(e,r){},t.prototype.extract=function(e,r){return e},t.prototype.fields=function(){return[]},t})(),cE=iE("OpenTelemetry Baggage Key");function MU(t){return t.getValue(cE)||void 0}function zme(){return MU(o0.getInstance().active())}function Vme(t,e){return t.setValue(cE,e)}function qme(t){return t.deleteValue(cE)}var Iw="propagation",Bme=new Qme,Fme=(function(){function t(){this.createBaggage=Yhe,this.getBaggage=MU,this.getActiveBaggage=zme,this.setBaggage=Vme,this.deleteBaggage=qme}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalPropagator=function(e){return Up(Iw,e,jo.instance())},t.prototype.inject=function(e,r,n){return n===void 0&&(n=gme),this._getGlobalPropagator().inject(e,r,n)},t.prototype.extract=function(e,r,n){return n===void 0&&(n=mme),this._getGlobalPropagator().extract(e,r,n)},t.prototype.fields=function(){return this._getGlobalPropagator().fields()},t.prototype.disable=function(){Xp(Iw,jo.instance())},t.prototype._getGlobalPropagator=function(){return Sl(Iw)||Bme},t})(),Tf=Fme.getInstance(),Aw="trace",Wme=(function(){function t(){this._proxyTracerProvider=new O2,this.wrapSpanContext=Ime,this.isSpanContextValid=s0,this.deleteSpan=Cme,this.getSpan=aE,this.getActiveSpan=Sme,this.getSpanContext=jU,this.setSpan=lE,this.setSpanContext=Pme}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalTracerProvider=function(e){var r=Up(Aw,this._proxyTracerProvider,jo.instance());return r&&this._proxyTracerProvider.setDelegate(e),r},t.prototype.getTracerProvider=function(){return Sl(Aw)||this._proxyTracerProvider},t.prototype.getTracer=function(e,r){return this.getTracerProvider().getTracer(e,r)},t.prototype.disable=function(){Xp(Aw,jo.instance()),this._proxyTracerProvider=new O2},t})(),ti=Wme.getInstance();const LU=iE("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function Ume(t){return t.setValue(LU,!0)}function uE(t){return t.getValue(LU)===!0}const Xme="=",kP=";",$P=",",Tw="baggage",Zme=180,Gme=4096,Yme=8192;function Hme(t){return t.reduce((e,r)=>{const n=`${e}${e!==""?$P:""}${r}`;return n.length>Yme?e:n},"")}function Jme(t){return t.getAllEntries().map(([e,r])=>{let n=`${encodeURIComponent(e)}=${encodeURIComponent(r.value)}`;return r.metadata!==void 0&&(n+=kP+r.metadata.toString()),n})}function Kme(t){const e=t.split(kP);if(e.length<=0)return;const r=e.shift();if(!r)return;const n=r.indexOf(Xme);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=Hhe(e.join(kP))),{key:i,value:o,metadata:s}}class ege{inject(e,r,n){const i=Tf.getBaggage(e);if(!i||uE(e))return;const o=Jme(i).filter(a=>a.length<=Gme).slice(0,Zme),s=Hme(o);s.length>0&&n.set(r,Tw,s)}extract(e,r,n){const i=n.get(r,Tw),o=Array.isArray(i)?i.join($P):i;if(!o)return e;const s={};return o.length===0||(o.split($P).forEach(l=>{const c=Kme(l);if(c){const u={value:c.value};c.metadata&&(u.metadata=c.metadata),s[c.key]=u}}),Object.entries(s).length===0)?e:Tf.setBaggage(e,Tf.createBaggage(s))}fields(){return[Tw]}}function Wy(t){const e={};if(typeof t!="object"||t==null)return e;for(const[r,n]of Object.entries(t)){if(!tge(r)){Tt.warn(`Invalid attribute key: ${r}`);continue}if(!QU(n)){Tt.warn(`Invalid attribute value set for key: ${r}`);continue}Array.isArray(n)?e[r]=n.slice():e[r]=n}return e}function tge(t){return typeof t=="string"&&t.length>0}function QU(t){return t==null?!0:Array.isArray(t)?rge(t):zU(t)}function rge(t){let e;for(const r of t)if(r!=null){if(!e){if(zU(r)){e=typeof r;continue}return!1}if(typeof r!==e)return!1}return!0}function zU(t){switch(typeof t){case"number":case"boolean":case"string":return!0}return!1}function nge(){return t=>{Tt.error(ige(t))}}function ige(t){return typeof t=="string"?t:JSON.stringify(oge(t))}function oge(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 sge=nge();function Su(t){try{sge(t)}catch{}}const Gc=performance,age="2.0.1",_w="exception.message",lge="exception.stacktrace",Rw="exception.type",VU="service.name",cge="service.version",EP="telemetry.sdk.language",uge="webjs",IP="telemetry.sdk.name",AP="telemetry.sdk.version",dge="process.runtime.name",jw={[IP]:"opentelemetry",[dge]:"browser",[EP]:uge,[AP]:age};const fge=9,pge=6,hge=Math.pow(10,pge),Sb=Math.pow(10,fge);function Lc(t){const e=t/1e3,r=Math.trunc(e),n=Math.round(t%1e3*hge);return[r,n]}function qU(){let t=Gc.timeOrigin;if(typeof t!="number"){const e=Gc;t=e.timing&&e.timing.fetchStart}return t}function mge(t){const e=Lc(qU()),r=Lc(typeof t=="number"?t:Gc.now());return FU(e,r)}function gge(t,e){let r=e[0]-t[0],n=e[1]-t[1];return n<0&&(r-=1,n+=Sb),[r,n]}function yge(t){return t[0]*Sb+t[1]}function BU(t){return Array.isArray(t)&&t.length===2&&typeof t[0]=="number"&&typeof t[1]=="number"}function x2(t){return BU(t)||typeof t=="number"||t instanceof Date}function FU(t,e){const r=[t[0]+e[0],t[1]+e[1]];return r[1]>=Sb&&(r[1]-=Sb,r[0]+=1),r}var ho;(function(t){t[t.SUCCESS=0]="SUCCESS",t[t.FAILED=1]="FAILED"})(ho||(ho={}));class vge{_propagators;_fields;constructor(e={}){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){Tt.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){Tt.warn(`Failed to extract with ${o.constructor.name}. Err: ${s.message}`)}return i},e)}fields(){return this._fields.slice()}}const TP="[_0-9a-z-*/]",bge=`[a-z]${TP}{0,255}`,Oge=`[a-z0-9]${TP}{0,240}@[a-z]${TP}{0,13}`,xge=new RegExp(`^(?:${bge}|${Oge})$`),wge=/^[ -~]{0,255}[!-~]$/,Sge=/,|=/;function Cge(t){return xge.test(t)}function Pge(t){return wge.test(t)&&!Sge.test(t)}const w2=32,kge=512,S2=",",C2="=";class dE{_internalState=new Map;constructor(e){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+C2+this.get(r)),e),[]).join(S2)}_parse(e){e.length>kge||(this._internalState=e.split(S2).reverse().reduce((r,n)=>{const i=n.trim(),o=i.indexOf(C2);if(o!==-1){const s=i.slice(0,o),a=i.slice(o+1,n.length);Cge(s)&&Pge(a)&&r.set(s,a)}return r},new Map),this._internalState.size>w2&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,w2))))}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){const e=new dE;return e._internalState=new Map(this._internalState),e}}const Nw="traceparent",Dw="tracestate",$ge="00",Ege="(?!ff)[\\da-f]{2}",Ige="(?![0]{32})[\\da-f]{32}",Age="(?![0]{16})[\\da-f]{16}",Tge="[\\da-f]{2}",_ge=new RegExp(`^\\s?(${Ege})-(${Ige})-(${Age})-(${Tge})(-.*)?\\s?$`);function Rge(t){const e=_ge.exec(t);return!e||e[1]==="00"&&e[5]?null:{traceId:e[2],spanId:e[3],traceFlags:parseInt(e[4],16)}}class jge{inject(e,r,n){const i=ti.getSpanContext(e);if(!i||uE(e)||!s0(i))return;const o=`${$ge}-${i.traceId}-${i.spanId}-0${Number(i.traceFlags||Ps.NONE).toString(16)}`;n.set(r,Nw,o),i.traceState&&n.set(r,Dw,i.traceState.serialize())}extract(e,r,n){const i=n.get(r,Nw);if(!i)return e;const o=Array.isArray(i)?i[0]:i;if(typeof o!="string")return e;const s=Rge(o);if(!s)return e;s.isRemote=!0;const a=n.get(r,Dw);if(a){const l=Array.isArray(a)?a.join(","):a;s.traceState=new dE(typeof l=="string"?l:void 0)}return ti.setSpanContext(e,s)}fields(){return[Nw,Dw]}}const Nge="[object Object]",Dge="[object Null]",Mge="[object Undefined]",Lge=Function.prototype,WU=Lge.toString,Qge=WU.call(Object),zge=Object.getPrototypeOf,UU=Object.prototype,XU=UU.hasOwnProperty,Ka=Symbol?Symbol.toStringTag:void 0,ZU=UU.toString;function P2(t){if(!Vge(t)||qge(t)!==Nge)return!1;const e=zge(t);if(e===null)return!0;const r=XU.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&WU.call(r)===Qge}function Vge(t){return t!=null&&typeof t=="object"}function qge(t){return t==null?t===void 0?Mge:Dge:Ka&&Ka in Object(t)?Bge(t):Fge(t)}function Bge(t){const e=XU.call(t,Ka),r=t[Ka];let n=!1;try{t[Ka]=void 0,n=!0}catch{}const i=ZU.call(t);return n&&(e?t[Ka]=r:delete t[Ka]),i}function Fge(t){return ZU.call(t)}const Wge=20;function Uge(...t){let e=t.shift();const r=new WeakMap;for(;t.length>0;)e=GU(e,t.shift(),0,r);return e}function Mw(t){return Cb(t)?t.slice():t}function GU(t,e,r=0,n){let i;if(!(r>Wge)){if(r++,Uy(t)||Uy(e)||YU(e))i=Mw(e);else if(Cb(t)){if(i=t.slice(),Cb(e))for(let o=0,s=e.length;o<s;o++)i.push(Mw(e[o]));else if(Pd(e)){const o=Object.keys(e);for(let s=0,a=o.length;s<a;s++){const l=o[s];i[l]=Mw(e[l])}}}else if(Pd(t))if(Pd(e)){if(!Xge(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(Uy(c))typeof c>"u"?delete i[l]:i[l]=c;else{const u=i[l],d=c;if(k2(t,l,n)||k2(e,l,n))delete i[l];else{if(Pd(u)&&Pd(d)){const f=n.get(u)||[],p=n.get(d)||[];f.push({obj:t,key:l}),p.push({obj:e,key:l}),n.set(u,f),n.set(d,p)}i[l]=GU(i[l],c,r,n)}}}}else i=e;return i}}function k2(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 Cb(t){return Array.isArray(t)}function YU(t){return typeof t=="function"}function Pd(t){return!Uy(t)&&!Cb(t)&&!YU(t)&&typeof t=="object"}function Uy(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t>"u"||t instanceof Date||t instanceof RegExp||t===null}function Xge(t,e){return!(!P2(t)||!P2(e))}class Zge{_promise;_resolve;_reject;constructor(){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 Gge{_callback;_that;_isCalled=!1;_deferred=new Zge;constructor(e,r){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 Yge(){return"unknown_service"}const lf=t=>t!==null&&typeof t=="object"&&typeof t.then=="function";class Pb{_rawAttributes;_asyncAttributesPending=!1;_memoizedAttributes;static FromAttributeList(e){const r=new Pb({});return r._rawAttributes=$2(e),r._asyncAttributesPending=e.filter(([n,i])=>lf(i)).length>0,r}constructor(e){const r=e.attributes??{};this._rawAttributes=Object.entries(r).map(([n,i])=>(lf(i)&&(this._asyncAttributesPending=!0),[n,i])),this._rawAttributes=$2(this._rawAttributes)}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,lf(n)?await n:n]}this._asyncAttributesPending=!1}}get attributes(){if(this.asyncAttributesPending&&Tt.error("Accessing resource attributes before async attributes settled"),this._memoizedAttributes)return this._memoizedAttributes;const e={};for(const[r,n]of this._rawAttributes){if(lf(n)){Tt.debug(`Unsettled resource attribute ${r} skipped`);continue}n!=null&&(e[r]??=n)}return this._asyncAttributesPending||(this._memoizedAttributes=e),e}getRawAttributes(){return this._rawAttributes}merge(e){return e==null?this:Pb.FromAttributeList([...e.getRawAttributes(),...this.getRawAttributes()])}}function HU(t){return Pb.FromAttributeList(Object.entries(t))}function Hge(){return HU({[VU]:Yge(),[EP]:jw[EP],[IP]:jw[IP],[AP]:jw[AP]})}function $2(t){return t.map(([e,r])=>lf(r)?[e,r.catch(n=>{Tt.debug("promise rejection for resource attribute: %s - %s",e,n)})]:[e,r])}const Jge="exception";class Kge{_spanContext;kind;parentSpanContext;attributes={};links=[];events=[];startTime;resource;instrumentationScope;_droppedAttributesCount=0;_droppedEventsCount=0;_droppedLinksCount=0;name;status={code:bp.UNSET};endTime=[0,0];_ended=!1;_duration=[-1,-1];_spanProcessor;_spanLimits;_attributeValueLengthLimit;_performanceStartTime;_performanceOffset;_startTimeProvided;constructor(e){const r=Date.now();this._spanContext=e.spanContext,this._performanceStartTime=Gc.now(),this._performanceOffset=r-(this._performanceStartTime+qU()),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 Tt.warn(`Invalid attribute key: ${e}`),this;if(!QU(r))return Tt.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 Tt.warn("No events allowed."),this._droppedEventsCount++,this;i!==void 0&&this.events.length>=i&&(this._droppedEventsCount===0&&Tt.debug("Dropping extra events."),this.events.shift(),this._droppedEventsCount++),x2(r)&&(x2(n)||(n=r),r=void 0);const o=Wy(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"&&(Tt.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()){Tt.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=gge(this.startTime,this.endTime),this._duration[0]<0&&(Tt.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&&Tt.warn(`Dropped ${this._droppedEventsCount} events because eventCountLimit reached`),this._spanProcessor.onEnd(this)}_getTime(e){if(typeof e=="number"&&e<=Gc.now())return mge(e+this._performanceOffset);if(typeof e=="number")return Lc(e);if(e instanceof Date)return Lc(e.getTime());if(BU(e))return e;if(this._startTimeProvided)return Lc(Date.now());const r=Gc.now()-this._performanceStartTime;return FU(this.startTime,Lc(r))}isRecording(){return this._ended===!1}recordException(e,r){const n={};typeof e=="string"?n[_w]=e:e&&(e.code?n[Rw]=e.code.toString():e.name&&(n[Rw]=e.name),e.message&&(n[_w]=e.message),e.stack&&(n[lge]=e.stack)),n[Rw]||n[_w]?this.addEvent(Jge,n,r):Tt.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}}`);Tt.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?(Tt.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 Cu;(function(t){t[t.NOT_RECORD=0]="NOT_RECORD",t[t.RECORD=1]="RECORD",t[t.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(Cu||(Cu={}));class kb{shouldSample(){return{decision:Cu.NOT_RECORD}}toString(){return"AlwaysOffSampler"}}class Yc{shouldSample(){return{decision:Cu.RECORD_AND_SAMPLED}}toString(){return"AlwaysOnSampler"}}class dm{_root;_remoteParentSampled;_remoteParentNotSampled;_localParentSampled;_localParentNotSampled;constructor(e){this._root=e.root,this._root||(Su(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new Yc),this._remoteParentSampled=e.remoteParentSampled??new Yc,this._remoteParentNotSampled=e.remoteParentNotSampled??new kb,this._localParentSampled=e.localParentSampled??new Yc,this._localParentNotSampled=e.localParentNotSampled??new kb}shouldSample(e,r,n,i,o,s){const a=ti.getSpanContext(e);return!a||!s0(a)?this._root.shouldSample(e,r,n,i,o,s):a.isRemote?a.traceFlags&Ps.SAMPLED?this._remoteParentSampled.shouldSample(e,r,n,i,o,s):this._remoteParentNotSampled.shouldSample(e,r,n,i,o,s):a.traceFlags&Ps.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 E2{_ratio;_upperBound;constructor(e=0){this._ratio=e,this._ratio=this._normalize(e),this._upperBound=Math.floor(this._ratio*4294967295)}shouldSample(e,r){return{decision:NU(r)&&this._accumulate(r)<this._upperBound?Cu.RECORD_AND_SAMPLED:Cu.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 I2=1;function JU(){return{sampler:KU(),forceFlushTimeoutMillis:3e4,generalLimits:{attributeValueLengthLimit:1/0,attributeCountLimit:128},spanLimits:{attributeValueLengthLimit:1/0,attributeCountLimit:128,linkCountLimit:128,eventCountLimit:128,attributePerEventCountLimit:128,attributePerLinkCountLimit:128}}}function KU(){const t="parentbased_always_on";switch(t){case"always_on":return new Yc;case"always_off":return new kb;case"parentbased_always_on":return new dm({root:new Yc});case"parentbased_always_off":return new dm({root:new kb});case"traceidratio":return new E2(A2());case"parentbased_traceidratio":return new dm({root:new E2(A2())});default:return Tt.error(`OTEL_TRACES_SAMPLER value "${t}" invalid, defaulting to "parentbased_always_on".`),new dm({root:new Yc})}}function A2(){return Tt.error(`OTEL_TRACES_SAMPLER_ARG is blank, defaulting to ${I2}.`),I2}const eye=128,tye=1/0;function rye(t){const e={sampler:KU()},r=JU(),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 nye(t){const e=Object.assign({},t.spanLimits);return e.attributeCountLimit=t.spanLimits?.attributeCountLimit??t.generalLimits?.attributeCountLimit??void 0??void 0??eye,e.attributeValueLengthLimit=t.spanLimits?.attributeValueLengthLimit??t.generalLimits?.attributeValueLengthLimit??void 0??void 0??tye,Object.assign({},t,{spanLimits:e})}class iye{_exporter;_maxExportBatchSize;_maxQueueSize;_scheduledDelayMillis;_exportTimeoutMillis;_isExporting=!1;_finishedSpans=[];_timer;_shutdownOnce;_droppedSpansCount=0;constructor(e,r){this._exporter=e,this._maxExportBatchSize=typeof r?.maxExportBatchSize=="number"?r.maxExportBatchSize:512,this._maxQueueSize=typeof r?.maxQueueSize=="number"?r.maxQueueSize:2048,this._scheduledDelayMillis=typeof r?.scheduledDelayMillis=="number"?r.scheduledDelayMillis:5e3,this._exportTimeoutMillis=typeof r?.exportTimeoutMillis=="number"?r.exportTimeoutMillis:3e4,this._shutdownOnce=new Gge(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize&&(Tt.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&Ps.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&&Tt.debug("maxQueueSize reached, dropping spans"),this._droppedSpansCount++;return}this._droppedSpansCount>0&&(Tt.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);zi.with(Ume(zi.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===ho.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.push(c.resource.waitForAsyncAttributes()))}s===null?o():Promise.all(s).then(o,a=>{Su(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,Su(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 oye extends iye{_visibilityChangeListener;_pageHideListener;constructor(e,r){super(e,r),this.onInit(r)}onInit(e){e?.disableAutoFlushOnDocumentHide!==!0&&typeof document<"u"&&(this._visibilityChangeListener=()=>{document.visibilityState==="hidden"&&this.forceFlush().catch(r=>{Su(r)})},this._pageHideListener=()=>{this.forceFlush().catch(r=>{Su(r)})},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 sye=8,aye=16;class lye{generateTraceId=T2(aye);generateSpanId=T2(sye)}const fm=Array(32);function T2(t){return function(){for(let r=0;r<t*2;r++)fm[r]=Math.floor(Math.random()*16)+48,fm[r]>=58&&(fm[r]+=39);return String.fromCharCode.apply(null,fm.slice(0,t*2))}}class cye{_sampler;_generalLimits;_spanLimits;_idGenerator;instrumentationScope;_resource;_spanProcessor;constructor(e,r,n,i){const o=rye(r);this._sampler=o.sampler,this._generalLimits=o.generalLimits,this._spanLimits=o.spanLimits,this._idGenerator=r.idGenerator||new lye,this._resource=n,this._spanProcessor=i,this.instrumentationScope=e}startSpan(e,r={},n=zi.active()){r.root&&(n=ti.deleteSpan(n));const i=ti.getSpan(n);if(uE(n))return Tt.debug("Instrumentation suppressed, returning Noop Span"),ti.wrapSpanContext(RU);const o=i?.spanContext(),s=this._idGenerator.generateSpanId();let a,l,c;!o||!ti.isSpanContextValid(o)?l=this._idGenerator.generateTraceId():(l=o.traceId,c=o.traceState,a=o);const u=r.kind??PP.INTERNAL,d=(r.links??[]).map(b=>({context:b.context,attributes:Wy(b.attributes)})),f=Wy(r.attributes),p=this._sampler.shouldSample(n,l,e,u,f,d);c=p.traceState??c;const g=p.decision===wb.RECORD_AND_SAMPLED?Ps.SAMPLED:Ps.NONE,m={traceId:l,spanId:s,traceFlags:g,traceState:c};if(p.decision===wb.NOT_RECORD)return Tt.debug("Recording is off, propagating context in a non-recording span"),ti.wrapSpanContext(m);const y=Wy(Object.assign(f,p.attributes));return new Kge({resource:this._resource,scope:this.instrumentationScope,context:n,spanContext:m,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??zi.active(),c=this.startSpan(e,o,l),u=ti.setSpan(l,c);return zi.with(u,a,void 0,c)}getGeneralLimits(){return this._generalLimits}getSpanLimits(){return this._spanLimits}}class uye{_spanProcessors;constructor(e){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=>{Su(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 el;(function(t){t[t.resolved=0]="resolved",t[t.timeout=1]="timeout",t[t.error=2]="error",t[t.unresolved=3]="unresolved"})(el||(el={}));class dye{_config;_tracers=new Map;_resource;_activeSpanProcessor;constructor(e={}){const r=Uge({},JU(),nye(e));this._resource=r.resource??Hge(),this._config=Object.assign({},r,{resource:this._resource});const n=[];e.spanProcessors?.length&&n.push(...e.spanProcessors),this._activeSpanProcessor=new uye(n)}getTracer(e,r,n){const i=`${e}@${r||""}:${n?.schemaUrl||""}`;return this._tracers.has(i)||this._tracers.set(i,new cye({name:e,version:r,schemaUrl: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=el.timeout},e);n.forceFlush().then(()=>{clearTimeout(s),o!==el.timeout&&(o=el.resolved,i(o))}).catch(a=>{clearTimeout(s),o=el.error,i(a)})}));return new Promise((n,i)=>{Promise.all(r).then(o=>{const s=o.filter(a=>a!==el.resolved);s.length>0?i(s):n()}).catch(o=>i([o]))})}shutdown(){return this._activeSpanProcessor.shutdown()}}class fye{_enabled=!1;_currentContext=Cc;_bindFunction(e=Cc,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=Cc,this._enabled=!1,this}enable(){return this._enabled?this:(this._enabled=!0,this._currentContext=Cc,this)}with(e,r,n,...i){const o=this._currentContext;this._currentContext=e||Cc;try{return r.call(n,...i)}finally{this._currentContext=o}}}function pye(t){if(t!==null){if(t===void 0){const e=new fye;e.enable(),zi.setGlobalContextManager(e);return}t.enable(),zi.setGlobalContextManager(t)}}function hye(t){if(t!==null){if(t===void 0){Tf.setGlobalPropagator(new vge({propagators:[new jge,new ege]}));return}Tf.setGlobalPropagator(t)}}class mye extends dye{constructor(e={}){super(e)}register(e={}){ti.setGlobalTracerProvider(this),hye(e.propagator),pye(e.contextManager)}}class gye{_delegate;constructor(e){this._delegate=e}export(e,r){this._delegate.export(e,r)}forceFlush(){return this._delegate.forceFlush()}shutdown(){return this._delegate.shutdown()}}class _2 extends Error{code;name="OTLPExporterError";data;constructor(e,r,n){super(e),this.data=n,this.code=r}}function yye(t){if(Number.isFinite(t)&&t>0)return t;throw new Error(`Configuration: timeoutMillis is invalid, expected number greater than 0 (actual: '${t}')`)}function vye(t){if(t!=null)return()=>t}function bye(t,e,r){return{timeoutMillis:yye(t.timeoutMillis??e.timeoutMillis??r.timeoutMillis),concurrencyLimit:t.concurrencyLimit??e.concurrencyLimit??r.concurrencyLimit,compression:t.compression??e.compression??r.compression}}function Oye(){return{timeoutMillis:1e4,concurrencyLimit:30,compression:"none"}}class xye{_concurrencyLimit;_sendingPromises=[];constructor(e){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 wye(t){return new xye(t.concurrencyLimit)}function Sye(t){return Object.prototype.hasOwnProperty.call(t,"partialSuccess")}function Cye(){return{handleResponse(t){t==null||!Sye(t)||t.partialSuccess==null||Object.keys(t.partialSuccess).length===0||Tt.warn("Received Partial Success response:",JSON.stringify(t.partialSuccess))}}}class Pye{_transport;_serializer;_responseHandler;_promiseQueue;_timeout;_diagLogger;constructor(e,r,n,i,o){this._transport=e,this._serializer=r,this._responseHandler=n,this._promiseQueue=i,this._timeout=o,this._diagLogger=Tt.createComponentLogger({namespace:"OTLPExportDelegate"})}export(e,r){if(this._diagLogger.debug("items to be sent",e),this._promiseQueue.hasReachedLimit()){r({code:ho.FAILED,error:new Error("Concurrent export limit reached")});return}const n=this._serializer.serializeRequest(e);if(n==null){r({code:ho.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:ho.SUCCESS});return}else if(i.status==="failure"&&i.error){r({code:ho.FAILED,error:i.error});return}else i.status==="retryable"?r({code:ho.FAILED,error:new _2("Export failed with retryable status")}):r({code:ho.FAILED,error:new _2("Export failed with unknown error")})},i=>r({code:ho.FAILED,error:i})))}forceFlush(){return this._promiseQueue.awaitAll()}async shutdown(){this._diagLogger.debug("shutdown started"),await this.forceFlush(),this._transport.shutdown()}}function kye(t,e){return new Pye(t.transport,t.serializer,Cye(),t.promiseHandler,e.timeout)}function e4(t,e,r){return kye({transport:r,serializer:e,promiseHandler:wye(t)},{timeout:t.timeoutMillis})}function R2(t){return t>=48&&t<=57?t-48:t>=97&&t<=102?t-87:t-55}function t4(t){const e=new Uint8Array(t.length/2);let r=0;for(let n=0;n<t.length;n+=2){const i=R2(t.charCodeAt(n)),o=R2(t.charCodeAt(n+1));e[r++]=i<<4|o}return e}function r4(t){const e=BigInt(1e9);return BigInt(t[0])*e+BigInt(t[1])}function $ye(t){const e=Number(BigInt.asUintN(32,t)),r=Number(BigInt.asUintN(32,t>>BigInt(32)));return{low:e,high:r}}function Eye(t){const e=r4(t);return $ye(e)}function Iye(t){return r4(t).toString()}const Aye=typeof BigInt<"u"?Iye:yge;function j2(t){return t}function Tye(t){if(t!==void 0)return t4(t)}const _ye={encodeHrTime:Eye,encodeSpanContext:t4,encodeOptionalSpanContext:Tye};function Rye(t){return t===void 0?_ye:{encodeHrTime:Aye,encodeSpanContext:j2,encodeOptionalSpanContext:j2}}function jye(t){return{attributes:a0(t.attributes),droppedAttributesCount:0}}function Nye(t){return{name:t.name,version:t.version}}function a0(t){return Object.keys(t).map(e=>n4(e,t[e]))}function n4(t,e){return{key:t,value:i4(e)}}function i4(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(i4)}}:e==="object"&&t!=null?{kvlistValue:{values:Object.entries(t).map(([r,n])=>n4(r,n))}}:{}}function Dye(t,e){const r=t.spanContext(),n=t.status,i=t.parentSpanContext?.spanId?e.encodeSpanContext(t.parentSpanContext?.spanId):void 0;return{traceId:e.encodeSpanContext(r.traceId),spanId:e.encodeSpanContext(r.spanId),parentSpanId:i,traceState:r.traceState?.serialize(),name:t.name,kind:t.kind==null?0:t.kind+1,startTimeUnixNano:e.encodeHrTime(t.startTime),endTimeUnixNano:e.encodeHrTime(t.endTime),attributes:a0(t.attributes),droppedAttributesCount:t.droppedAttributesCount,events:t.events.map(o=>Lye(o,e)),droppedEventsCount:t.droppedEventsCount,status:{code:n.code,message:n.message},links:t.links.map(o=>Mye(o,e)),droppedLinksCount:t.droppedLinksCount}}function Mye(t,e){return{attributes:t.attributes?a0(t.attributes):[],spanId:e.encodeSpanContext(t.context.spanId),traceId:e.encodeSpanContext(t.context.traceId),traceState:t.context.traceState?.serialize(),droppedAttributesCount:t.droppedAttributesCount||0}}function Lye(t,e){return{attributes:t.attributes?a0(t.attributes):[],name:t.name,timeUnixNano:e.encodeHrTime(t.time),droppedAttributesCount:t.droppedAttributesCount||0}}function Qye(t,e){const r=Rye(e);return{resourceSpans:Vye(t,r)}}function zye(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 Vye(t,e){const r=zye(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 p=f.map(g=>Dye(g,e));l.push({scope:Nye(f[0].instrumentationScope),spans:p,schemaUrl:f[0].instrumentationScope.schemaUrl})}u=c.next()}const d={resource:jye(s),scopeSpans:l,schemaUrl:void 0};n.push(d),o=i.next()}return n}const qye={serializeRequest:t=>{const e=Qye(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))}},Bye=5,Fye=1e3,Wye=5e3,Uye=1.5,N2=.2;function Xye(){return Math.random()*(2*N2)-N2}class Zye{_transport;constructor(e){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=Bye,s=Fye;for(;i.status==="retryable"&&o>0;){o--;const a=Math.max(Math.min(s,Wye)+Xye(),0);s=s*Uye;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 o4(t){return new Zye(t.transport)}function Gye(t){return[429,502,503,504].includes(t)}function Yye(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 Hye{_parameters;constructor(e){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?(Tt.debug("XHR success"),n({status:"success"})):i.status&&Gye(i.status)?n({status:"retryable",retryInMillis:Yye(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 Jye(t){return new Hye(t)}class Kye{_params;constructor(e){this._params=e}send(e){return new Promise(r=>{navigator.sendBeacon(this._params.url,new Blob([e],{type:this._params.blobType}))?(Tt.debug("SendBeacon success"),r({status:"success"})):r({status:"failure",error:new Error("SendBeacon failed")})})}shutdown(){}}function eve(t){return new Kye(t)}function tve(t,e){return e4(t,e,o4({transport:Jye(t)}))}function rve(t,e){return e4(t,e,o4({transport:eve({url:t.url,blobType:t.headers()["Content-Type"]})}))}function nve(t){return()=>{const e={};return Object.entries(t?.()??{}).forEach(([r,n])=>{typeof n<"u"?e[r]=String(n):Tt.warn(`Header "${r}" has invalid value (${n}) and will be ignored`)}),e}}function ive(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 ove(t){if(t!=null)try{return new URL(t),t}catch{throw new Error(`Configuration: Could not parse user-provided export URL: '${t}'`)}}function sve(t,e,r){return{...bye(t,e,r),headers:ive(nve(t.headers),e.headers,r.headers),url:ove(t.url)??e.url??r.url,agentOptions:t.agentOptions??e.agentOptions??r.agentOptions}}function ave(t,e){return{...Oye(),headers:()=>t,url:"http://localhost:4318/"+e,agentOptions:{keepAlive:!0}}}function lve(t,e,r){return sve({url:t.url,timeoutMillis:t.timeoutMillis,headers:vye(t.headers),concurrencyLimit:t.concurrencyLimit},{},ave(r,e))}function cve(t,e,r,n){const i=!!t.headers||typeof navigator.sendBeacon!="function",o=lve(t,r,n);return i?tve(o,e):rve(o,e)}class uve extends gye{constructor(e={}){super(cve(e,qye,"v1/traces",{"Content-Type":"application/json"}))}}class s4{emit(e){}}const dve=new s4;class fve{getLogger(e,r,n){return new s4}}const a4=new fve;class pve{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):dve}}class D2{getLogger(e,r,n){var i;return(i=this.getDelegateLogger(e,r,n))!==null&&i!==void 0?i:new pve(this,e,r,n)}getDelegate(){var e;return(e=this._delegate)!==null&&e!==void 0?e:a4}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 hve=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof global=="object"?global:{},pm=Symbol.for("io.opentelemetry.js.api.logs"),kd=hve;function mve(t,e,r){return n=>n===t?e:r}const M2=1;class fE{constructor(){this._proxyLoggerProvider=new D2}static getInstance(){return this._instance||(this._instance=new fE),this._instance}setGlobalLoggerProvider(e){return kd[pm]?this.getLoggerProvider():(kd[pm]=mve(M2,e,a4),this._proxyLoggerProvider.setDelegate(e),e)}getLoggerProvider(){var e,r;return(r=(e=kd[pm])===null||e===void 0?void 0:e.call(kd,M2))!==null&&r!==void 0?r:this._proxyLoggerProvider}getLogger(e,r,n){return this.getLoggerProvider().getLogger(e,r,n)}disable(){delete kd[pm],this._proxyLoggerProvider=new D2}}const gve=fE.getInstance();function yve(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 vve(t){t.forEach(e=>e.disable())}function bve(t){const e=t.tracerProvider||ti.getTracerProvider(),r=t.meterProvider||Lme.getMeterProvider(),n=t.loggerProvider||gve.getLoggerProvider(),i=t.instrumentations?.flat()??[];return yve(i,e,r,n),()=>{vve(i)}}class L2{span=void 0;constructor(e){this.span=e}error(e){this.span&&(this.span.setStatus(bp.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(bp.OK),this.span.end())}}class Ove{config=null;tracer=null;tracerProvider=null;initialized=!1;initTracer(e){throw new Error("initTracer must be implemented by the environment-specific client")}init(e){this.config=e,this.initTracer(e)}send(e){try{if(!this.tracer||!this.config)return;const r=e.time?new Date(e.time):new Date;this.tracer.startSpan(`event.${e.type}`,{attributes:this.processAttributes(e,r),startTime:r}).end(r)}catch(r){this.config?.isProd||console.error("Event reporting failed:",r)}}processAttributes(e,r){const i={"cloudevents.event_id":xb(),"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":this.config?.version,"cloudevents.event_origin":this.config?.serviceName,"cloudevents.event_source_details.id":e.sourceDetails?.id??"anonymous","cloudevents.event_source_details.object":e.sourceDetails?.object??"anonymous","cloudevents.event_source_details.uri":e.sourceDetails?.uri};if(e.data&&typeof e.data=="object"&&Object.entries(e.data).forEach(([o,s])=>{const a=o.replace(/([A-Z])/g,"_$1").toLowerCase();s!==void 0&&(i[`cloudevents.event_data.${a}`]=s)}),"subjects"in e&&Array.isArray(e.subjects)){const o=e.subjects.reduce((s,a)=>{if(!a||typeof a!="object")return s;const l=a.object;if(!l||typeof l!="string")return s;const c=s.notUpdated.find(({object:u})=>u===l);return c?(s.updated=[c,a],s.notUpdated=s.notUpdated.filter(({object:u})=>u!==l)):s.updated.some(({object:u})=>u===l)||s.notUpdated.push(a),s},{updated:[],notUpdated:[]});o.updated.forEach((s,a)=>{const l=a===0?"after.":"before.",c=`${s.object}.`;Object.entries(s).forEach(([u,d])=>{d!==void 0&&(i[`cloudevents.subjects.${l}${c}${u}`]=d)})}),o.notUpdated.forEach(s=>{const a=`${s.object}.`;Object.entries(s).forEach(([l,c])=>{c!==void 0&&(i[`cloudevents.subjects.${a}${l}`]=c)})})}return Object.entries(e).forEach(([o,s])=>{["id","source","type","specversion","time","datacontenttype","data","subject","sourceDetails","analyticsMetadata","context"].includes(o)||s!==void 0&&(s instanceof Object?Object.entries(s).forEach(([a,l])=>{l!==void 0&&(i[`cloudevents.${o}.${a}`]=l)}):i[`cloudevents.${o}`]=s)}),i}startSpan(e,r){try{if(!this.tracer)return;let n;const i=e.time?new Date(e.time):new Date,o=this.tracer.startSpan(`event.${e.type}`,{attributes:this.processAttributes(e,i),root:!r},r);return r||(n=ti.setSpan(zi.active(),o)),{end:()=>o.end(),setAttribute:(s,a)=>{o.setAttribute(`cloudevents.event_data.${this.getKeySnakeValue(s)}`,a)},setStatus:(s,a)=>o.setStatus({code:s,message:a}),parentCtx:n}}catch(n){this.config?.isProd||console.error("Event reporting failed:",n)}}startStepSpan(e){try{if(!this.tracer)return;const r=e.time?new Date(e.time):new Date,n=this.tracer.startSpan(`event.${e.type}`,{attributes:this.processAttributes(e,r),root:!1},zi.active());return{end:()=>n.end(),setAttribute:(i,o)=>{n.setAttribute(`cloudevents.event_data.${this.getKeySnakeValue(i)}`,o)},setStatus:(i,o)=>n.setStatus({code:i,message:o}),recordException:i=>n.recordException(i)}}catch(r){this.config?.isProd||console.error("Event reporting failed:",r)}}startRootSpan(e){try{if(!this.tracer)return;const r=e.time?new Date(e.time):new Date,n=this.tracer.startSpan(`event.${e.type}`,{attributes:this.processAttributes(e,r)},zi.active()),i=ti.setSpan(zi.active(),n);return{end:()=>n.end(),setAttribute:(o,s)=>{n.setAttribute(`cloudevents.event_data.${this.getKeySnakeValue(o)}`,s)},setStatus:(o,s)=>n.setStatus({code:o,message:s}),recordException:o=>n.recordException(o),context:i}}catch(r){this.config?.isProd||console.error("Event reporting failed:",r)}}startTrace(e){const r=this.startStepSpan(e);if(r)return new L2(r)}startRootTrace(e){const r=this.startRootSpan(e);if(r)return{traceApi:new L2(r),context:r.context}}async forceFlush(){return this.tracerProvider?.forceFlush()}getKeySnakeValue=e=>e.replace(/([A-Z])/g,"_$1").toLowerCase()}class xve extends Ove{tracerProvider=null;tracer=null;initialized=!1;constructor(){super()}initTracer(e){if(!e.collectorUrl&&!e.collectorTraceUrl)return;const r=`ses_${xb()}`,n=HU({[VU]:e.serviceName,[cge]:e.serviceVersion,session_id:r}),i=e.collectorTraceUrl||`${e.collectorUrl}/v1/traces`;this.tracerProvider=new mye({resource:n,spanProcessors:[new oye(new uve({url:i,headers:{}}))]}),this.tracer=this.tracerProvider.getTracer(e.tracerName),this.tracerProvider.register(),bve({instrumentations:e.instrumentations??[]}),this.initialized=!0}}class wve{config=null;initialized=!1;useCloudEventData;otelClient;traceApi;constructor(){this.useCloudEventData=()=>({organization:{id:"",slug:""},project:{id:"",slug:""},productType:"",sourceDetails:{user:"Anonymous",object:"user",uri:""},request:{source:""}}),this.otelClient=new xve,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)}}}updateCloudEventData=e=>{this.config?.disabled||(this.useCloudEventData=e)};send(e,r){try{if(!this.config?.otel.isProd)return;const n=this.constructCloudEvent(e,r);this.sendToOtelService(n)}catch(n){this.config?.otel.isProd||console.error("Event reporting failed:",n)}}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){if(this.config?.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_${xb()}`,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_${xb()}`,object:n.sourceDetails.object||"user",uri:n.sourceDetails.uri||""},organization:n.organization,project:n.project,productType:n.productType}}sendToOtelService(e){this.config?.otel.isProd||console.log("CloudEvent to be sent to OTEL service:",e),this.otelClient.send(e)}forceFlush(){return this.config?.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 Sve(){return{theme:"light",disableCollectionsTab:!1,oAuth2RedirectURI:null,corsProxyUrl:void 0,mockServer:void 0,certificates:[],isApiBased:!1,generatedEnvironments:[],generatedInputs:[]}}const Cve=Sve(),Pve=N.createContext(Cve);function qo(){const t=N.useContext(Pve);return Mq(t)}function kve(t,e){const{apps:{apiId:r}}=Ct(),{corsProxyUrl:n,disableCollectionsTab:i,mockServer:o,oAuth2RedirectURI:s,certificates:a,storageKey:l,isApiBased:c}=qo();n.set(t?.corsProxyUrl??_J),o.set(t?.mockServer),r.set(t?.apiId),s.set(t?.oAuth2RedirectURI),i.set(!!t?.disableCollectionsTab),l.set(t?.storageKey),c.set(!!e),N.useEffect(()=>{a.set(t?.certificates||[])},[t?.certificates])}const l0=N.createContext({});function pE(){return N.useContext(l0)||{}}const $ve="0.18.0-next.3",Eve={version:$ve};class Ive{client;_isInitialized=!1;constructor(){this.client=new wve}get isInitialized(){return this._isInitialized}init(e){if(this.isInitialized)return;const n={serviceName:"replay",serviceVersion:Eve.version,version:"1.0.0",tracerName:e?.tracerName||"desktop",collectorUrl: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 Lw=new Ive;function ft(){const{telemetry:t}=pE();return Lw.isInitialized||Lw.init({tracerName:t?.tracerName,collectorUrl:t?.collectorUrl}),{sendEvent:(e,r)=>{Lw.sendEvent(e,r)}}}const Cn=800;function Cl(t){"@babel/helpers - typeof";return Cl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Cl(t)}function Ave(t,e){if(Cl(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Cl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function l4(t){var e=Ave(t,"string");return Cl(e)=="symbol"?e:e+""}function cf(t,e,r){return(e=l4(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Q2(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function We(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Q2(Object(r),!0).forEach(function(n){cf(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Q2(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Tve(t){if(Array.isArray(t))return t}function _ve(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,i,o,s,a=[],l=!0,c=!1;try{if(o=(r=r.call(t)).next,e===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(a.push(n.value),a.length!==e);l=!0);}catch(u){c=!0,i=u}finally{try{if(!l&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(c)throw i}}return a}}function _P(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function c4(t,e){if(t){if(typeof t=="string")return _P(t,e);var r={}.toString.call(t).slice(8,-1);return r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set"?Array.from(t):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_P(t,e):void 0}}function Rve(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
345
345
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function hs(t,e){return Tve(t)||_ve(t,e)||c4(t,e)||Rve()}function jve(t,e){if(t==null)return{};var r={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(e.indexOf(n)!==-1)continue;r[n]=t[n]}return r}function Is(t,e){if(t==null)return{};var r,n,i=jve(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)===-1&&{}.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}var Nve=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function Dve(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,p=t.value,g=Is(t,Nve),m=N.useState(a!==void 0?a:r),y=hs(m,2),v=y[0],b=y[1],O=N.useState(l!==void 0?l:i),w=hs(O,2),x=w[0],C=w[1],P=N.useState(p!==void 0?p:s),A=hs(P,2),E=A[0],M=A[1],Q=N.useCallback(function(oe,de){typeof c=="function"&&c(oe,de),M(oe)},[c]),U=N.useCallback(function(oe,de){var L;typeof u=="function"&&(L=u(oe,de)),b(L!==void 0?L:oe)},[u]),X=N.useCallback(function(){typeof f=="function"&&f(),C(!0)},[f]),J=N.useCallback(function(){typeof d=="function"&&d(),C(!1)},[d]),Z=a!==void 0?a:v,re=l!==void 0?l:x,se=p!==void 0?p:E;return We(We({},g),{},{inputValue:Z,menuIsOpen:re,onChange:Q,onInputChange:U,onMenuClose:J,onMenuOpen:X,value:se})}function Ge(){return Ge=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)({}).hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Ge.apply(null,arguments)}function Mve(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function z2(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,l4(n.key),n)}}function Lve(t,e,r){return e&&z2(t.prototype,e),r&&z2(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function RP(t,e){return RP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},RP(t,e)}function Qve(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&RP(t,e)}function $b(t){return $b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},$b(t)}function u4(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(u4=function(){return!!t})()}function zve(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Vve(t,e){if(e&&(Cl(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return zve(t)}function qve(t){var e=u4();return function(){var r,n=$b(t);if(e){var i=$b(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Vve(this,r)}}function Bve(t){if(Array.isArray(t))return _P(t)}function Fve(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Wve(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
346
346
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function hE(t){return Bve(t)||Fve(t)||c4(t)||Wve()}function Uve(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 Xve(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 Zve=(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(Xve(this));var i=this.tags[this.tags.length-1];if(process.env.NODE_ENV!=="production"){var o=n.charCodeAt(0)===64&&n.charCodeAt(1)===105;o&&this._alreadyInsertedOrderInsensitiveRule&&console.error(`You're attempting to insert the following rule:
|
|
347
347
|
`+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=Uve(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})(),Jr="-ms-",Eb="-moz-",At="-webkit-",mE="comm",gE="rule",yE="decl",Gve="@import",d4="@keyframes",Yve=Math.abs,c0=String.fromCharCode,Hve=Object.assign;function Jve(t,e){return qr(t,0)^45?(((e<<2^qr(t,0))<<2^qr(t,1))<<2^qr(t,2))<<2^qr(t,3):0}function f4(t){return t.trim()}function Kve(t,e){return(t=e.exec(t))?t[0]:t}function Lt(t,e,r){return t.replace(e,r)}function jP(t,e){return t.indexOf(e)}function qr(t,e){return t.charCodeAt(e)|0}function Op(t,e,r){return t.slice(e,r)}function go(t){return t.length}function vE(t){return t.length}function hm(t,e){return e.push(t),t}function ebe(t,e){return t.map(e).join("")}var u0=1,Pu=1,p4=0,qn=0,yr=0,Wu="";function d0(t,e,r,n,i,o,s){return{value:t,root:e,parent:r,type:n,props:i,children:o,line:u0,column:Pu,length:s,return:""}}function $d(t,e){return Hve(d0("",null,null,"",null,null,0),t,{length:-t.length},e)}function tbe(){return yr}function rbe(){return yr=qn>0?qr(Wu,--qn):0,Pu--,yr===10&&(Pu=1,u0--),yr}function oi(){return yr=qn<p4?qr(Wu,qn++):0,Pu++,yr===10&&(Pu=1,u0++),yr}function To(){return qr(Wu,qn)}function Xy(){return qn}function Zp(t,e){return Op(Wu,t,e)}function xp(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 h4(t){return u0=Pu=1,p4=go(Wu=t),qn=0,[]}function m4(t){return Wu="",t}function Zy(t){return f4(Zp(qn-1,NP(t===91?t+2:t===40?t+1:t)))}function nbe(t){for(;(yr=To())&&yr<33;)oi();return xp(t)>2||xp(yr)>3?"":" "}function ibe(t,e){for(;--e&&oi()&&!(yr<48||yr>102||yr>57&&yr<65||yr>70&&yr<97););return Zp(t,Xy()+(e<6&&To()==32&&oi()==32))}function NP(t){for(;oi();)switch(yr){case t:return qn;case 34:case 39:t!==34&&t!==39&&NP(yr);break;case 40:t===41&&NP(t);break;case 92:oi();break}return qn}function obe(t,e){for(;oi()&&t+yr!==57;)if(t+yr===84&&To()===47)break;return"/*"+Zp(e,qn-1)+"*"+c0(t===47?t:oi())}function sbe(t){for(;!xp(To());)oi();return Zp(t,qn)}function abe(t){return m4(Gy("",null,null,null,[""],t=h4(t),0,[0],t))}function Gy(t,e,r,n,i,o,s,a,l){for(var c=0,u=0,d=s,f=0,p=0,g=0,m=1,y=1,v=1,b=0,O="",w=i,x=o,C=n,P=O;y;)switch(g=b,b=oi()){case 40:if(g!=108&&qr(P,d-1)==58){jP(P+=Lt(Zy(b),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:P+=Zy(b);break;case 9:case 10:case 13:case 32:P+=nbe(g);break;case 92:P+=ibe(Xy()-1,7);continue;case 47:switch(To()){case 42:case 47:hm(lbe(obe(oi(),Xy()),e,r),l);break;default:P+="/"}break;case 123*m:a[c++]=go(P)*v;case 125*m:case 59:case 0:switch(b){case 0:case 125:y=0;case 59+u:p>0&&go(P)-d&&hm(p>32?q2(P+";",n,r,d-1):q2(Lt(P," ","")+";",n,r,d-2),l);break;case 59:P+=";";default:if(hm(C=V2(P,e,r,c,u,i,a,O,w=[],x=[],d),o),b===123)if(u===0)Gy(P,e,C,C,w,o,d,a,x);else switch(f===99&&qr(P,3)===110?100:f){case 100:case 109:case 115:Gy(t,C,C,n&&hm(V2(t,C,C,0,0,i,a,O,i,w=[],d),x),i,x,d,a,n?w:x);break;default:Gy(P,C,C,C,[""],x,0,a,x)}}c=u=p=0,m=v=1,O=P="",d=s;break;case 58:d=1+go(P),p=g;default:if(m<1){if(b==123)--m;else if(b==125&&m++==0&&rbe()==125)continue}switch(P+=c0(b),b*m){case 38:v=u>0?1:(P+="\f",-1);break;case 44:a[c++]=(go(P)-1)*v,v=1;break;case 64:To()===45&&(P+=Zy(oi())),f=To(),u=d=go(O=P+=sbe(Xy())),b++;break;case 45:g===45&&go(P)==2&&(m=0)}}return o}function V2(t,e,r,n,i,o,s,a,l,c,u){for(var d=i-1,f=i===0?o:[""],p=vE(f),g=0,m=0,y=0;g<n;++g)for(var v=0,b=Op(t,d+1,d=Yve(m=s[g])),O=t;v<p;++v)(O=f4(m>0?f[v]+" "+b:Lt(b,/&\f/g,f[v])))&&(l[y++]=O);return d0(t,e,r,i===0?gE:a,l,c,u)}function lbe(t,e,r){return d0(t,e,r,mE,c0(tbe()),Op(t,2,-2),0)}function q2(t,e,r,n){return d0(t,e,r,yE,Op(t,0,n),Op(t,n+1,-1),n)}function Hc(t,e){for(var r="",n=vE(t),i=0;i<n;i++)r+=e(t[i],i,t,e)||"";return r}function cbe(t,e,r,n){switch(t.type){case Gve:case yE:return t.return=t.return||t.value;case mE:return"";case d4:return t.return=t.value+"{"+Hc(t.children,n)+"}";case gE:t.value=t.props.join(",")}return go(r=Hc(t.children,n))?t.return=t.value+"{"+r+"}":""}function ube(t){var e=vE(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 dbe(t){return function(e){e.root||(e=e.return)&&t(e)}}function fbe(t){var e=Object.create(null);return function(r){return e[r]===void 0&&(e[r]=t(r)),e[r]}}var pbe=function(e,r,n){for(var i=0,o=0;i=o,o=To(),i===38&&o===12&&(r[n]=1),!xp(o);)oi();return Zp(e,qn)},hbe=function(e,r){var n=-1,i=44;do switch(xp(i)){case 0:i===38&&To()===12&&(r[n]=1),e[n]+=pbe(qn-1,r,n);break;case 2:e[n]+=Zy(i);break;case 4:if(i===44){e[++n]=To()===58?"&\f":"",r[n]=e[n].length;break}default:e[n]+=c0(i)}while(i=oi());return e},mbe=function(e,r){return m4(hbe(h4(e),r))},B2=new WeakMap,gbe=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&&!B2.get(n))&&!i){B2.set(e,!0);for(var o=[],s=mbe(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]}}},ybe=function(e){if(e.type==="decl"){var r=e.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(e.return="",e.value="")}},vbe="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",bbe=function(e){return e.type==="comm"&&e.children.indexOf(vbe)>-1},Obe=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(bbe(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".')})}}}},g4=function(e){return e.type.charCodeAt(1)===105&&e.type.charCodeAt(0)===64},xbe=function(e,r){for(var n=e-1;n>=0;n--)if(!g4(r[n]))return!0;return!1},F2=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},wbe=function(e,r,n){g4(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."),F2(e)):xbe(r,n)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),F2(e)))};function y4(t,e){switch(Jve(t,e)){case 5103:return At+"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 At+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return At+t+Eb+t+Jr+t+t;case 6828:case 4268:return At+t+Jr+t+t;case 6165:return At+t+Jr+"flex-"+t+t;case 5187:return At+t+Lt(t,/(\w+).+(:[^]+)/,At+"box-$1$2"+Jr+"flex-$1$2")+t;case 5443:return At+t+Jr+"flex-item-"+Lt(t,/flex-|-self/,"")+t;case 4675:return At+t+Jr+"flex-line-pack"+Lt(t,/align-content|flex-|-self/,"")+t;case 5548:return At+t+Jr+Lt(t,"shrink","negative")+t;case 5292:return At+t+Jr+Lt(t,"basis","preferred-size")+t;case 6060:return At+"box-"+Lt(t,"-grow","")+At+t+Jr+Lt(t,"grow","positive")+t;case 4554:return At+Lt(t,/([^-])(transform)/g,"$1"+At+"$2")+t;case 6187:return Lt(Lt(Lt(t,/(zoom-|grab)/,At+"$1"),/(image-set)/,At+"$1"),t,"")+t;case 5495:case 3959:return Lt(t,/(image-set\([^]*)/,At+"$1$`$1");case 4968:return Lt(Lt(t,/(.+:)(flex-)?(.*)/,At+"box-pack:$3"+Jr+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+At+t+t;case 4095:case 3583:case 4068:case 2532:return Lt(t,/(.+)-inline(.+)/,At+"$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(go(t)-1-e>6)switch(qr(t,e+1)){case 109:if(qr(t,e+4)!==45)break;case 102:return Lt(t,/(.+:)(.+)-([^]+)/,"$1"+At+"$2-$3$1"+Eb+(qr(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~jP(t,"stretch")?y4(Lt(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(qr(t,e+1)!==115)break;case 6444:switch(qr(t,go(t)-3-(~jP(t,"!important")&&10))){case 107:return Lt(t,":",":"+At)+t;case 101:return Lt(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+At+(qr(t,14)===45?"inline-":"")+"box$3$1"+At+"$2$3$1"+Jr+"$2box$3")+t}break;case 5936:switch(qr(t,e+11)){case 114:return At+t+Jr+Lt(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return At+t+Jr+Lt(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return At+t+Jr+Lt(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return At+t+Jr+t+t}return t}var Sbe=function(e,r,n,i){if(e.length>-1&&!e.return)switch(e.type){case yE:e.return=y4(e.value,e.length);break;case d4:return Hc([$d(e,{value:Lt(e.value,"@","@"+At)})],i);case gE:if(e.length)return ebe(e.props,function(o){switch(Kve(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Hc([$d(e,{props:[Lt(o,/:(read-\w+)/,":"+Eb+"$1")]})],i);case"::placeholder":return Hc([$d(e,{props:[Lt(o,/:(plac\w+)/,":"+At+"input-$1")]}),$d(e,{props:[Lt(o,/:(plac\w+)/,":"+Eb+"$1")]}),$d(e,{props:[Lt(o,/:(plac\w+)/,Jr+"input-$1")]})],i)}return""})}},Cbe=[Sbe],Pbe=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.
|
|
@@ -1460,7 +1460,7 @@ Please report this to https://github.com/markedjs/marked.`,t){const i="<p>An err
|
|
|
1460
1460
|
&:hover {
|
|
1461
1461
|
background-color: var(--bg-color-hover);
|
|
1462
1462
|
}
|
|
1463
|
-
`;function fEe({step:t}){function e(r){t.description.set(r.target.value)}return h.jsx(h.Fragment,{children:h.jsxs(l9,{children:[h.jsxs(oa,{children:[h.jsx(ek,{name:h.jsxs(h.Fragment,{children:["Step ID",h.jsx(Po,{tooltipProps:{content:"This step's unique identifier",placement:"right"}})]}),editorTitle:"Change step ID",attribute:t.stepId}),h.jsx(iEe,{step:t})]}),h.jsxs(oa,{children:[h.jsxs($u,{children:["Description",h.jsx(Po,{tooltipProps:{content:"A brief explanation of the purpose and function of this step in workflow.",placement:"right"}})]}),h.jsx(c9,{"data-testid":"step-description-input",rows:3,value:t.description.get()||"",onChange:e})]}),h.jsx(oa,{children:h.jsx(u9,{outputs:t.outputs,tooltipText:"Data generated in this step that can be used in the next steps."})}),h.jsx(oa,{children:h.jsx(X$e,{successCriteria:t.successCriteria})})]})})}function pEe({onParameterChange:t,files:e}){const r=N.useRef(null),n=a=>{a.target.files?.length&&t(Array.from(a.target.files).map(l=>({absolutePath:null,file:l})))},i=async()=>{if(Fu())try{const{open:a}=await Promise.resolve().then(()=>require("./replay-index-
|
|
1463
|
+
`;function fEe({step:t}){function e(r){t.description.set(r.target.value)}return h.jsx(h.Fragment,{children:h.jsxs(l9,{children:[h.jsxs(oa,{children:[h.jsx(ek,{name:h.jsxs(h.Fragment,{children:["Step ID",h.jsx(Po,{tooltipProps:{content:"This step's unique identifier",placement:"right"}})]}),editorTitle:"Change step ID",attribute:t.stepId}),h.jsx(iEe,{step:t})]}),h.jsxs(oa,{children:[h.jsxs($u,{children:["Description",h.jsx(Po,{tooltipProps:{content:"A brief explanation of the purpose and function of this step in workflow.",placement:"right"}})]}),h.jsx(c9,{"data-testid":"step-description-input",rows:3,value:t.description.get()||"",onChange:e})]}),h.jsx(oa,{children:h.jsx(u9,{outputs:t.outputs,tooltipText:"Data generated in this step that can be used in the next steps."})}),h.jsx(oa,{children:h.jsx(X$e,{successCriteria:t.successCriteria})})]})})}function pEe({onParameterChange:t,files:e}){const r=N.useRef(null),n=a=>{a.target.files?.length&&t(Array.from(a.target.files).map(l=>({absolutePath:null,file:l})))},i=async()=>{if(Fu())try{const{open:a}=await Promise.resolve().then(()=>require("./replay-index-DlQPih5l.js")),l=await a({multiple:!0});if(!l)return;const u=(Array.isArray(l)?l:[l]).map(Bp),f=(await Promise.all(u)).filter(p=>p!==null);t(f)}catch(a){console.error("Failed to open file dialog or read file:",a)}else r.current?.click()},o=N.useCallback(()=>{t(null)},[t]),s=N.useMemo(()=>{if(!e)return null;if(e.length===1)return h.jsx(TD,{icon:h.jsx(B.CloseIcon,{}),variant:"secondary",onClick:o,iconPosition:"right",size:"small",children:h.jsx(_D,{children:e[0].file.name})});if(e.length>1)return h.jsx(TD,{icon:h.jsx(B.CloseIcon,{}),variant:"secondary",onClick:o,iconPosition:"right",size:"small",children:h.jsxs(_D,{children:[e.length," files"]})})},[e,o]);return h.jsx(hEe,{children:h.jsxs(mEe,{children:[h.jsx(gEe,{children:s||h.jsx(vEe,{children:"Add files here"})}),h.jsxs(yEe,{children:[h.jsx(Nxe,{onClick:i,variant:"text","data-testid":"add-button",icon:h.jsx(B.AddIcon,{color:"--text-color-secondary"})}),h.jsx("input",{"data-testid":"file-input",hidden:!0,ref:r,type:"file",multiple:!0,accept:"files/*",onChange:n})]})]})})}const hEe=R.div`
|
|
1464
1464
|
position: relative;
|
|
1465
1465
|
display: flex;
|
|
1466
1466
|
flex-grow: 1;
|
|
@@ -1585,7 +1585,7 @@ Please report this to https://github.com/markedjs/marked.`,t){const i="<p>An err
|
|
|
1585
1585
|
`,_Ee=R.div`
|
|
1586
1586
|
display: flex;
|
|
1587
1587
|
justify-content: center;
|
|
1588
|
-
`;function REe({data:t,type:e,editable:r}){const n=Ht(),i=t[e];function o(a,l){l&&i.merge([cl()])}function s(a){i[a].set(tt)}return h.jsx(OEe,{keyName:"Param",formElements:i,onParameterChange:o,environment:n,enableInputTypeSelection:e!==ln["application/x-www-form-urlencoded"],editable:r,actions:a=>h.jsx(Xr,{onClick:()=>s(a),variant:"text",icon:h.jsx(B.TrashCanIcon,{})})})}const jEe=({data:t})=>{const e=t.get(),[r,n]=N.useState(!1),i=N.useRef(null),o=c=>{const u=c.target.files?.[0];if(u){n(!0);const d=new FileReader;d.onload=()=>{n(!1),t.set({absolutePath:null,file:u})},d.readAsDataURL(u)}},s=async c=>{if(c?.preventDefault(),Fu())try{const{open:u}=await Promise.resolve().then(()=>require("./replay-index-
|
|
1588
|
+
`;function REe({data:t,type:e,editable:r}){const n=Ht(),i=t[e];function o(a,l){l&&i.merge([cl()])}function s(a){i[a].set(tt)}return h.jsx(OEe,{keyName:"Param",formElements:i,onParameterChange:o,environment:n,enableInputTypeSelection:e!==ln["application/x-www-form-urlencoded"],editable:r,actions:a=>h.jsx(Xr,{onClick:()=>s(a),variant:"text",icon:h.jsx(B.TrashCanIcon,{})})})}const jEe=({data:t})=>{const e=t.get(),[r,n]=N.useState(!1),i=N.useRef(null),o=c=>{const u=c.target.files?.[0];if(u){n(!0);const d=new FileReader;d.onload=()=>{n(!1),t.set({absolutePath:null,file:u})},d.readAsDataURL(u)}},s=async c=>{if(c?.preventDefault(),Fu())try{const{open:u}=await Promise.resolve().then(()=>require("./replay-index-DlQPih5l.js")),d=await u();if(!d)return;const f=await Bp(d);t.set(f)}catch(u){console.error("Failed to open file dialog or read file:",u)}else i.current?.click()},a=c=>{c.key==="Enter"&&(c.preventDefault(),s())},l=()=>{t.set(null)};return r?h.jsxs(NEe,{children:[h.jsx(B.SpinnerIcon,{}),"Loading..."]}):e&&e.file?.name?h.jsxs(DEe,{children:[h.jsxs(MEe,{children:[h.jsx(B.DocumentBlankIcon,{size:"16px"}),h.jsx(LEe,{children:e.file?.name})]}),h.jsx(Xr,{onClick:l,icon:h.jsx(B.TrashCanIcon,{})})]}):h.jsx(p9,{children:!e&&h.jsxs(QEe,{tabIndex:0,role:"button",onKeyDown:a,onClick:s,children:[h.jsx("input",{type:"file",onChange:o,ref:i}),h.jsx(B.CloudUploadIcon,{}),"Upload file"]})})},p9=R.div`
|
|
1589
1589
|
display: flex;
|
|
1590
1590
|
align-items: center;
|
|
1591
1591
|
justify-content: flex-start;
|
|
@@ -2474,7 +2474,7 @@ ${o.message}`})}}}}),GH=({filePath:t})=>({Info:{leave(e,{report:r,location:n,con
|
|
|
2474
2474
|
${o.message}`,location:n.child("description")})}}}}),YH=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)}}}),VBe="x-internal",HH=({internalFlagProperty:t=VBe})=>{function e(n,i,o){const{parent:s,key:a}=i;let l=!1;if(Array.isArray(n))for(let c=0;c<n.length;c++){if(br(n[c])&&i.resolve(n[c]).node?.[t]){if(at(s.discriminator?.mapping))for(const d in s.discriminator.mapping)o?.[d]===n[c].$ref&&delete s.discriminator.mapping[d];n.splice(c,1),l=!0,c--}n[c]?.[t]&&(n.splice(c,1),l=!0,c--)}else if(at(n))for(const c of Object.keys(n)){if(br(n[c])){const u=i.resolve(n[c]);at(u.node)&&u.node?.[t]&&(delete n[c],l=!0)}at(n[c])&&n[c]?.[t]&&(delete n[c],l=!0)}l&&(Ep(n)||oG(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 JH(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(br(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(at(t))for(const s of Object.keys(t)){if(t=t,br(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&&(Ep(t)||oG(t))&&delete n[i]}function KH(t,e,r){return t===void 0||e===void 0?!1:!Array.isArray(e)&&!Array.isArray(t)?t===e:(e=bz(e),t=bz(t),r==="any"?e.some(n=>t.includes(n)):r==="all"?e.every(n=>t.includes(n)):!1)}function bz(t){return Array.isArray(t)?t:[t]}const qBe="any",e7=({property:t,value:e,matchStrategy:r})=>{const n=r||qBe,i=o=>o?.[t]&&!KH(o?.[t],e,n);return{any:{enter:(o,s)=>{JH(o,s,i)}}}},BBe="any",t7=({property:t,value:e,matchStrategy:r})=>{const n=r||BBe,i=o=>KH(o?.[t],e,n);return{any:{enter:(o,s)=>{JH(o,s,i)}}}},FBe=({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=Oz(e.responses[o],r.resolve);s&&(s.content=s.content?s.content:{},Object.keys(i.responses[o]).forEach(a=>{const l=i.responses[o][a];s.content[a]={...s.content[a],examples:cM(Ip(l,r.config?.configPath))}}),e.responses[o]=s)}if(i.request&&e.requestBody){const o=Oz(e.requestBody,r.resolve);if(!o)return;o.content=o.content?o.content:{},Object.keys(i.request).forEach(s=>{const a=i.request[s];o.content[s]={...o.content[s],examples:cM(Ip(a,r.config?.configPath))}}),e.requestBody=o}}}}});function Oz(t,e){if(!br(t))return t;const r=e(t);return r.error?void 0:JSON.parse(JSON.stringify(r.node))}const r7=()=>{const t=new Map;function e(n,i,o){t.set(n.absolutePointer,{usedIn:t.get(n.absolutePointer)?.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),Ep(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}`,p=t.get(f);p?p.usedIn.push(i):t.set(f,{usedIn:[i],name:a.toString()})}}},Root:{leave(n,i){const o=i.getVisitorData();o.removedCount=r(n,[]),Ep(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())}}}},WBe={"operation-description-override":XH,"tag-description-override":ZH,"info-description-override":GH,"info-override":YH,"remove-x-internal":HH,"remove-unused-components":r7,"filter-in":e7,"filter-out":t7,"media-type-examples-override":FBe},n7=()=>{const t=new Map;function e(n,i,o){t.set(n.absolutePointer,{usedIn:t.get(n.absolutePointer)?.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),Ep(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}`,p=t.get(f);p?p.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())}}}},UBe={"operation-description-override":XH,"tag-description-override":ZH,"info-description-override":GH,"info-override":YH,"remove-x-internal":HH,"remove-unused-components":n7,"filter-in":e7,"filter-out":t7},XBe={},ZBe={},GBe={},YBe={},HBe={recommended:Kze,"recommended-strict":eVe,minimal:rVe,all:tVe,spec:nVe},xz={id:"",rules:{oas3:iBe,oas2:uBe,async2:hBe,async3:vBe,arazzo1:MBe,overlay1:QBe},preprocessors:{oas3:oBe,oas2:dBe,async2:mBe,async3:bBe,arazzo1:LBe,overlay1:zBe},decorators:{oas3:WBe,oas2:UBe,async2:XBe,async3:ZBe,arazzo1:GBe,overlay1:YBe},configs:HBe},JBe={Root:"DefinitionRoot",ServerVariablesMap:"ServerVariableMap",Paths:["PathMap","PathsMap"],CallbacksMap:"CallbackMap",MediaTypesMap:"MediaTypeMap",ExamplesMap:"ExampleMap",EncodingMap:"EncodingsMap",HeadersMap:"HeaderMap",LinksMap:"LinkMap",OAuth2Flows:"SecuritySchemeFlows",Responses:"ResponsesMap"};function Tu(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 p of Object.values(a.properties)){if(p===l){f(s,u);continue}typeof p=="object"&&p!==null&&p.name&&d.add(p)}a.additionalProperties&&typeof a.additionalProperties!="function"&&(a.additionalProperties===l?f(s,u):a.additionalProperties.name!==void 0&&d.add(a.additionalProperties)),a.items&&typeof a.items!="function"&&(a.items===l?f(s,u):a.items.name!==void 0&&d.add(a.items)),a.extensionsPrefix&&d.add(hl);for(const p of Array.from(d.values()))n(s,p,l,c,u);function f(p,g){for(const m of g.slice(1))r[m.name]=r[m.name]||{enter:[],leave:[]},r[m.name].enter.push({...p,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,JBe[d]),p=r[d];if(!f)continue;let g,m,y;const v=at(f);if(d==="ref"&&v&&f.skip)throw new Error("ref() visitor does not support skip");typeof f=="function"?g=f:v&&(g=f.enter,m=f.leave,y=f.skip);const b=(g?1:0)+(m?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),g||v){if(g&&typeof g!="function")throw new Error("DEV: should be function");p.enter.push({...s,visit:g||(()=>{}),skip:y,depth:c,context:w})}if(m){if(typeof m!="function")throw new Error("DEV: should be function");p.leave.push({...s,visit:m,depth:c,context:w})}}}}function KBe(t){const e={};for(;t.parent;)e[t.parent.type.name]=t.parent.activatedOn?.value.node,t=t.parent;return e}function eFe(t){const e={};for(;t.parent;)t.parent.activatedOn?.value.location&&(e[t.parent.type.name]=t.parent.activatedOn?.value.location),t=t.parent;return e}function _u(t){const{document:e,rootType:r,normalizedVisitors:n,resolvedRefMap:i,ctx:o}=t,s={},a=new Set;l(e.parsed,r,new tu(e.source,"#/"),void 0,"");function l(c,u,d,f,p){const g=(A,E=y.source.absoluteRef)=>{if(!br(A))return{location:d,node:A};const M=Mf(E,A.$ref),Q=i.get(M);if(!Q)return{location:void 0,node:void 0};const{resolved:U,node:X,document:J,nodePointer:Z,error:re}=Q;return{location:U?new tu(J.source,Z):re instanceof Ku?new tu(re.source,""):void 0,node:X,error:re}},m=d;let y=d;const{node:v,location:b,error:O}=g(c),w=new Set;if(br(c)){const A=n.ref.enter;for(const{visit:E,ruleId:M,severity:Q,message:U,context:X}of A){w.add(X);const J=C.bind(void 0,M,Q,U);E(c,{report:J,resolve:g,rawNode:c,rawLocation:m,location:d,type:u,parent:f,key:p,parentLocations:{},specVersion:o.specVersion,config:o.config,getVisitorData:P.bind(void 0,M)},{node:v,location:b,error:O}),b?.source.absoluteRef&&o.refTypes&&o.refTypes.set(b?.source.absoluteRef,u)}}if(v!==void 0&&b&&u.name!=="scalar"){y=b;const A=s[u.name]?.has?.(v);let E=!1;const Q=n.any.enter.concat(n[u.name]?.enter||[]),U=[];for(const{context:Z,visit:re,skip:se,ruleId:oe,severity:de,message:L}of Q){if(a.has(`${y.absolutePointer}${y.pointer}`))break;if(Z.isSkippedLevel)Z.parent.activatedOn&&!Z.parent.activatedOn.value.nextLevelTypeActivated&&!Z.seen.has(c)&&(Z.seen.add(c),E=!0,U.push(Z));else if(Z.parent&&Z.parent.activatedOn&&Z.activatedOn?.value.withParentNode!==Z.parent.activatedOn.value.node&&Z.parent.activatedOn.value.nextLevelTypeActivated?.value!==u||!Z.parent&&!A){U.push(Z);const j={node:v,location:b,nextLevelTypeActivated:null,withParentNode:Z.parent?.activatedOn?.value.node,skipped:(Z.parent?.activatedOn?.value.skipped||se?.(v,p,{location:d,rawLocation:m,resolve:g,rawNode:c}))??!1};Z.activatedOn=aM(Z.activatedOn,j);let z=Z.parent;for(;z;)z.activatedOn.value.nextLevelTypeActivated=aM(z.activatedOn.value.nextLevelTypeActivated,u),z=z.parent;j.skipped||(E=!0,w.add(Z),x(re,v,c,Z,oe,de,L))}}if(E||!A){if(s[u.name]=s[u.name]||new Set,s[u.name].add(v),Array.isArray(v)){const Z=u.items;if(Z!==void 0){const re=typeof Z=="function";for(let se=0;se<v.length;se++){let oe=re?Z(v[se],b.child([se]).absolutePointer):Z,de=v[se];oe?.directResolveAs&&(oe=oe.directResolveAs,de={$ref:de}),ml(oe)&&l(de,oe,b.child([se]),v,se)}}}else if(typeof v=="object"&&v!==null){const Z=Object.keys(u.properties);u.additionalProperties?Z.push(...Object.keys(v).filter(re=>!Z.includes(re))):u.extensionsPrefix&&Z.push(...Object.keys(v).filter(re=>re.startsWith(u.extensionsPrefix))),br(c)&&Z.push(...Object.keys(c).filter(re=>re!=="$ref"&&!Z.includes(re)));for(const re of Z){let se=v[re],oe=b;se===void 0&&(se=c[re],oe=d);let de=th(u.properties,re);de===void 0&&(de=u.additionalProperties),typeof de=="function"&&(de=de(se,re)),de===void 0&&u.extensionsPrefix&&re.startsWith(u.extensionsPrefix)&&(de=hl),!ml(de)&&de?.directResolveAs&&(de=de.directResolveAs,se={$ref:se}),de&&de.name===void 0&&de.resolvable!==!1&&(de={name:"scalar",properties:{}}),!(!ml(de)||de.name==="scalar"&&!br(se))&&l(se,de,oe.child([re]),v,re)}}}const X=n.any.leave,J=(n[u.name]?.leave||[]).concat(X);for(const Z of U.reverse())if(Z.isSkippedLevel)Z.seen.delete(v);else if(Z.activatedOn=lM(Z.activatedOn),Z.parent){let re=Z.parent;for(;re;)re.activatedOn.value.nextLevelTypeActivated=lM(re.activatedOn.value.nextLevelTypeActivated),re=re.parent}for(const{context:Z,visit:re,ruleId:se,severity:oe,message:de}of J)!Z.isSkippedLevel&&w.has(Z)&&x(re,v,c,Z,se,oe,de)}if(y=d,br(c)){const A=n.ref.leave;for(const{visit:E,ruleId:M,severity:Q,context:U,message:X}of A)if(w.has(U)){const J=C.bind(void 0,M,Q,X);E(c,{report:J,resolve:g,rawNode:c,rawLocation:m,location:d,type:u,parent:f,key:p,parentLocations:{},specVersion:o.specVersion,config:o.config,getVisitorData:P.bind(void 0,M)},{node:v,location:b,error:O})}}function x(A,E,M,Q,U,X,J){const Z=C.bind(void 0,U,X,J);A(E,{report:Z,resolve:g,rawNode:M,location:y,rawLocation:m,type:u,parent:f,key:p,parentLocations:eFe(Q),specVersion:o.specVersion,config:o.config,ignoreNextVisitorsOnNode:()=>{a.add(`${y.absolutePointer}${y.pointer}`)},getVisitorData:P.bind(void 0,U)},KBe(Q),Q)}function C(A,E,M,Q){const X=(Q.location?Array.isArray(Q.location)?Q.location:[Q.location]:[{...y,reportOnKey:!1}]).map(Z=>({...y,reportOnKey:!1,...Z})),J=Q.forceSeverity||E;J!=="off"&&o.problems.push({ruleId:Q.ruleId||A,severity:J,...Q,message:M?M.replace("{{message}}",Q.message):Q.message,suggest:Q.suggest||[],location:X})}function P(A){return o.visitorsData[A]=o.visitorsData[A]||{},o.visitorsData[A]}}}function gO(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(Kb)}function i7({node:t,ctx:e,plugins:r}){if(!t.extends)return t;const n=(t.extends||[]).map(i=>{if(!Tr(i)&&!Il.extname(i))return mFe(i,r);const o=e.resolve({$ref:i});return o.location&&o.node!==void 0?o.node:null}).filter(yi);return lH([...n.map(i=>i7({node:i,ctx:e,plugins:r})),{...t,extends:void 0}])}const tFe="redocly.yaml",rFe={extends:["recommended"]},av=".redocly.lint-ignore.yaml",nFe=`# This file instructs Redocly's linter to ignore the rules contained for specific parts of your API.
|
|
2475
2475
|
# See https://redocly.com/docs/cli/ for more information.
|
|
2476
2476
|
`,o7="configBundler",s7="pluginsCollector",iFe=["@theme/plugin.js","@theme/plugin.cjs","@theme/plugin.mjs"];function py(t,e){if(at(t)&&Array.isArray(t.plugins)){const{plugins:r,rootConfigDir:n}=e.getVisitorData();r.push(...t.plugins.map(i=>a7(i,e.location.source.absoluteRef.replace(/^file:\/\//,""),n)))}}const oFe=Tu([{severity:"error",ruleId:s7,visitor:{ref:{},ConfigGovernance:{leave(t,e){py(t,e)}},ConfigApisProperties:{leave(t,e){py(t,e)}},"rootRedoclyConfigSchema.scorecard.levels_items":{leave(t,e){py(t,e)}},ConfigRoot:{leave(t,e){py(t,e)}}}}],rh);function hy(t,e){if(at(t)&&t.extends){const{plugins:r}=e.getVisitorData(),n=i7({node:t,ctx:e,plugins:r});Object.assign(t,n),delete t.extends}}const sFe=Tu([{severity:"error",ruleId:o7,visitor:{ref:{leave(t,e,r){lk(t,r,e)}},ConfigGovernance:{leave(t,e){hy(t,e)}},ConfigApisProperties:{leave(t,e){hy(t,e)}},"rootRedoclyConfigSchema.scorecard.levels_items":{leave(t,e){hy(t,e)}},ConfigRoot:{leave(t,e){hy(t,e)}}}}],rh);function aFe(t,e,r){const n={plugins:[],rootConfigDir:r},i={problems:[],specVersion:"oas3_0",refTypes:new Map,visitorsData:{[s7]:n}};return _u({document:t,rootType:rh.ConfigRoot,normalizedVisitors:oFe,resolvedRefMap:e,ctx:i}),n.plugins}function lFe(t,e,r){const n={plugins:r},i={problems:[],specVersion:"oas3_0",refTypes:new Map,visitorsData:{[o7]:n}};return _u({document:t,rootType:rh.ConfigRoot,normalizedVisitors:sFe,resolvedRefMap:e,ctx:i}),t.parsed??{}}async function cFe(t){const{ref:e,doc:r,externalRefResolver:n=new Q0(t.config.resolve),base:i=null}=t;if(!(e||r))throw new Error(`Document or reference is required.
|
|
2477
|
-
`);const o=r===void 0?await n.resolveDocument(i,e,!0):r;if(o instanceof Error)throw o;return t.collectSpecData?.(o.parsed),uFe({document:o,...t,externalRefResolver:n})}async function uFe(t){const{document:e,config:r,customTypes:n,externalRefResolver:i,dereference:o=!1,removeUnusedComponents:s=!1,keepUrlRefs:a=!1}=t,l=_I(e.parsed),c=YY(l),u=r.getRulesForSpecVersion(c),d=kI(r.extendTypes(n??RI(l),l),r),f=gO(u,r,"preprocessors",l),p=gO(u,r,"decorators",l),g={problems:[],specVersion:l,config:r,refTypes:new Map,visitorsData:{}};s&&!p.some(v=>v.ruleId==="remove-unused-components")&&p.push({severity:"error",ruleId:"remove-unused-components",visitor:c==="oas2"?n7():r7()});let m=await Tp({rootDocument:e,rootType:d.Root,externalRefResolver:i});f.length>0&&(_u({document:e,rootType:d.Root,normalizedVisitors:Tu(f,d),resolvedRefMap:m,ctx:g}),m=await Tp({rootDocument:e,rootType:d.Root,externalRefResolver:i}));const y=Tu([{severity:"error",ruleId:"bundler",visitor:dFe(c,o,e,m,a)},...p],d);return _u({document:e,rootType:d.Root,normalizedVisitors:y,resolvedRefMap:m,ctx:g}),{bundle:e,problems:g.problems.map(v=>r.addProblemToIgnore(v)),fileDependencies:i.getFiles(),rootType:d.Root,refTypes:g.refTypes,visitorsData:g.visitorsData}}function wz(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 dFe(t,e,r,n,i){let o,s;const a={ref:{leave(f,p,g){if(!g.location||g.node===void 0){Lf(g,p.report,p.location);return}if(g.location.source===r.source&&g.location.source===p.location.source&&p.type.name!=="scalar"&&!e||i&&Tr(f.$ref))return;const m=wz(p.type.name,t);m?e?(c(m,g,p),lk(f,g,p)):(f.$ref=c(m,g,p),l(f,g,p)):lk(f,g,p)}},Example:{leave(f,p){if(rG(f)&&f.value===void 0){const g=p.resolve({$ref:f.externalValue});if(!g.location||g.node===void 0){Lf(g,p.report,p.location);return}if(i&&Tr(f.externalValue))return;f.value=p.resolve({$ref:f.externalValue}).node,delete f.externalValue}}},Root:{enter(f,p){s=p.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,p){for(const g of Object.keys(f)){const m=f[g],y=p.resolve({$ref:m});if(!y.location||y.node===void 0){Lf(y,p.report,p.location.child(g));return}const v=wz("Schema",t);f[g]=c(v,y,p)}}});function l(f,p,g){const m=Mf(g.location.source.absoluteRef,f.$ref);n.set(m,{document:r,isRemote:!1,node:p.node,nodePointer:f.$ref,resolved:!0})}function c(f,p,g){o[f]=o[f]||{};const m=d(p,f,g);return o[f][m]=p.node,t==="oas3"||t==="async2"||t==="async3"?`#/components/${f}/${m}`:`#/${f}/${m}`}function u(f,p,g){return br(f)&&g.resolve(f,s.absolutePointer).location?.absolutePointer===p.location.absolutePointer?!0:ck(f,p.node)}function d(f,p,g){const[m,y]=[f.location.source.absoluteRef,f.location.pointer],v=o[p];let b="";const O=y.slice(2).split("/").filter(yi);for(;O.length>0;)if(b=O.pop()+(b?`-${b}`:""),!v||!v[b]||u(v[b],f,g))return b;if(b=ije(m)+(b?`_${b}`:""),!v[b]||u(v[b],f,g))return b;const w=b;let x=2;for(;v[b]&&!u(v[b],f,g);)b=`${w}-${x}`,x++;return v[b]||g.report({message:`Two schemas are referenced with the same name but different content. Renamed ${w} to ${b}.`,location:g.location,forceSeverity:"warn"}),b}return a}const wS=new Map;async function fFe({rawConfigDocument:t,configPath:e,externalRefResolver:r,customExtends:n}){const i=t===void 0?rFe:t.parsed;if(n!==void 0&&at(i)&&(i.extends=n),at(i)&&i?.extends?.some(uje))throw new Error("Configuration format not detected in extends: values must be strings.");const o=t??{source:new Au(e??"",JSON.stringify(i)),parsed:i},s=await Tp({rootDocument:o,rootType:rh.ConfigRoot,externalRefResolver:r??new Q0(cH(i?.resolve))});let a=[],l,c="";Nn?l=[...(i?.plugins||[]).filter(p=>!ri(p)),xz]:(c=$t.dirname(e??""),a=aFe(o,s,c),l=[...await hFe(a.map(p=>Sz(p)?p.absolutePath:p),c),xz]);const u=lFe(o,Xze(s),l);u.apis&&(u.apis=Object.fromEntries(Object.entries(u.apis).map(([f,p])=>{const g=lH([u,p]);return[f,{...p,...g}]})));const d=a.length?a.map(f=>Sz(f)&&f.isModule?f.rawPath:f.absolutePath&&$t.relative(c,f.absolutePath)).filter(Kb):void 0;return{resolvedConfig:{...u,plugins:d},resolvedRefMap:s,plugins:l}}function pFe(t){for(const e of iFe)(void 0)($t.resolve(t,e))}function Sz(t){return"isModule"in t}const a7=(t,e,r)=>{if(!ri(t))return t;const n=$t.resolve($t.dirname(e),t);return(void 0)(n)?{absolutePath:n,rawPath:t,isModule:!1}:{absolutePath:q9.createRequire((typeof document>"u"?require("url").pathToFileURL(__filename).href:Wo&&Wo.tagName.toUpperCase()==="SCRIPT"&&Wo.src||new URL("replay-index-
|
|
2477
|
+
`);const o=r===void 0?await n.resolveDocument(i,e,!0):r;if(o instanceof Error)throw o;return t.collectSpecData?.(o.parsed),uFe({document:o,...t,externalRefResolver:n})}async function uFe(t){const{document:e,config:r,customTypes:n,externalRefResolver:i,dereference:o=!1,removeUnusedComponents:s=!1,keepUrlRefs:a=!1}=t,l=_I(e.parsed),c=YY(l),u=r.getRulesForSpecVersion(c),d=kI(r.extendTypes(n??RI(l),l),r),f=gO(u,r,"preprocessors",l),p=gO(u,r,"decorators",l),g={problems:[],specVersion:l,config:r,refTypes:new Map,visitorsData:{}};s&&!p.some(v=>v.ruleId==="remove-unused-components")&&p.push({severity:"error",ruleId:"remove-unused-components",visitor:c==="oas2"?n7():r7()});let m=await Tp({rootDocument:e,rootType:d.Root,externalRefResolver:i});f.length>0&&(_u({document:e,rootType:d.Root,normalizedVisitors:Tu(f,d),resolvedRefMap:m,ctx:g}),m=await Tp({rootDocument:e,rootType:d.Root,externalRefResolver:i}));const y=Tu([{severity:"error",ruleId:"bundler",visitor:dFe(c,o,e,m,a)},...p],d);return _u({document:e,rootType:d.Root,normalizedVisitors:y,resolvedRefMap:m,ctx:g}),{bundle:e,problems:g.problems.map(v=>r.addProblemToIgnore(v)),fileDependencies:i.getFiles(),rootType:d.Root,refTypes:g.refTypes,visitorsData:g.visitorsData}}function wz(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 dFe(t,e,r,n,i){let o,s;const a={ref:{leave(f,p,g){if(!g.location||g.node===void 0){Lf(g,p.report,p.location);return}if(g.location.source===r.source&&g.location.source===p.location.source&&p.type.name!=="scalar"&&!e||i&&Tr(f.$ref))return;const m=wz(p.type.name,t);m?e?(c(m,g,p),lk(f,g,p)):(f.$ref=c(m,g,p),l(f,g,p)):lk(f,g,p)}},Example:{leave(f,p){if(rG(f)&&f.value===void 0){const g=p.resolve({$ref:f.externalValue});if(!g.location||g.node===void 0){Lf(g,p.report,p.location);return}if(i&&Tr(f.externalValue))return;f.value=p.resolve({$ref:f.externalValue}).node,delete f.externalValue}}},Root:{enter(f,p){s=p.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,p){for(const g of Object.keys(f)){const m=f[g],y=p.resolve({$ref:m});if(!y.location||y.node===void 0){Lf(y,p.report,p.location.child(g));return}const v=wz("Schema",t);f[g]=c(v,y,p)}}});function l(f,p,g){const m=Mf(g.location.source.absoluteRef,f.$ref);n.set(m,{document:r,isRemote:!1,node:p.node,nodePointer:f.$ref,resolved:!0})}function c(f,p,g){o[f]=o[f]||{};const m=d(p,f,g);return o[f][m]=p.node,t==="oas3"||t==="async2"||t==="async3"?`#/components/${f}/${m}`:`#/${f}/${m}`}function u(f,p,g){return br(f)&&g.resolve(f,s.absolutePointer).location?.absolutePointer===p.location.absolutePointer?!0:ck(f,p.node)}function d(f,p,g){const[m,y]=[f.location.source.absoluteRef,f.location.pointer],v=o[p];let b="";const O=y.slice(2).split("/").filter(yi);for(;O.length>0;)if(b=O.pop()+(b?`-${b}`:""),!v||!v[b]||u(v[b],f,g))return b;if(b=ije(m)+(b?`_${b}`:""),!v[b]||u(v[b],f,g))return b;const w=b;let x=2;for(;v[b]&&!u(v[b],f,g);)b=`${w}-${x}`,x++;return v[b]||g.report({message:`Two schemas are referenced with the same name but different content. Renamed ${w} to ${b}.`,location:g.location,forceSeverity:"warn"}),b}return a}const wS=new Map;async function fFe({rawConfigDocument:t,configPath:e,externalRefResolver:r,customExtends:n}){const i=t===void 0?rFe:t.parsed;if(n!==void 0&&at(i)&&(i.extends=n),at(i)&&i?.extends?.some(uje))throw new Error("Configuration format not detected in extends: values must be strings.");const o=t??{source:new Au(e??"",JSON.stringify(i)),parsed:i},s=await Tp({rootDocument:o,rootType:rh.ConfigRoot,externalRefResolver:r??new Q0(cH(i?.resolve))});let a=[],l,c="";Nn?l=[...(i?.plugins||[]).filter(p=>!ri(p)),xz]:(c=$t.dirname(e??""),a=aFe(o,s,c),l=[...await hFe(a.map(p=>Sz(p)?p.absolutePath:p),c),xz]);const u=lFe(o,Xze(s),l);u.apis&&(u.apis=Object.fromEntries(Object.entries(u.apis).map(([f,p])=>{const g=lH([u,p]);return[f,{...p,...g}]})));const d=a.length?a.map(f=>Sz(f)&&f.isModule?f.rawPath:f.absolutePath&&$t.relative(c,f.absolutePath)).filter(Kb):void 0;return{resolvedConfig:{...u,plugins:d},resolvedRefMap:s,plugins:l}}function pFe(t){for(const e of iFe)(void 0)($t.resolve(t,e))}function Sz(t){return"isModule"in t}const a7=(t,e,r)=>{if(!ri(t))return t;const n=$t.resolve($t.dirname(e),t);return(void 0)(n)?{absolutePath:n,rawPath:t,isModule:!1}:{absolutePath:q9.createRequire((typeof document>"u"?require("url").pathToFileURL(__filename).href:Wo&&Wo.tagName.toUpperCase()==="SCRIPT"&&Wo.src||new URL("replay-index-lM29rXxS.js",document.baseURI).href)??__dirname).resolve(t,{paths:[r,(typeof document>"u"?require("url").pathToFileURL(__filename).href:Wo&&Wo.tagName.toUpperCase()==="SCRIPT"&&Wo.src||new URL("replay-index-lM29rXxS.js",document.baseURI).href)?$t.dirname((void 0)(typeof document>"u"?require("url").pathToFileURL(__filename).href:Wo&&Wo.tagName.toUpperCase()==="SCRIPT"&&Wo.src||new URL("replay-index-lM29rXxS.js",document.baseURI).href)):__dirname]}),isModule:!0,rawPath:t}};async function hFe(t,e){if(!t)return[];const r=async a=>{if(!ri(a))return a;try{const l=$t.isAbsolute(a)?a:a7(a,$t.join(e,tFe),e).absolutePath;if(!wS.has(l)){let c;if(typeof __webpack_require__=="function")c=__non_webpack_require__(l);else{const g=await import((void 0)(l).pathname);c=g.default||g}const u={contentDir:e},d=Array.isArray(c)?c:[c];for(const g of d)g?.id&&JL(g)&&Ft.info(`Deprecated plugin format detected: ${g.id}
|
|
2478
2478
|
`);const f=JL(c)?c:Zze(c)?await c(u):await c?.default?.(u),p=Array.isArray(f)?f:[f];f&&wS.set(l,p.map(g=>({...g,path:a,absolutePath:l})))}return wS.get(l)}catch(l){throw new Error(`Failed to load plugin "${a}": ${l.message}
|
|
2479
2479
|
|
|
2480
2480
|
${l.stack}`)}},n=new Map,i=pFe(e);i&&t.push(i);const o=new Set;return(await Promise.all(t.map(async a=>{if(ri(a)){if(Tr(a))throw new Error(mt.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(mt.red(`Plugin must define \`id\` property in ${mt.blue(a.toString())}.`));const f=u.absolutePath??a.toString(),p=n.get(d);if(p){if(f!==p)throw new Error(mt.red(`Plugin "id" must be unique. Plugin ${mt.blue(f)} uses id "${mt.blue(d)}" already seen in ${mt.blue(f)}`));return}n.set(d,f);const g={id:d,...u.configs?{configs:u.configs}:{},...u.typeExtension?{typeExtension:u.typeExtension}:{}};if(u.rules){if(!u.rules.oas3&&!u.rules.oas2&&!u.rules.async2&&!u.rules.async3&&!u.rules.arazzo1&&!u.rules.overlay1)throw new Error(`Plugin rules must have \`oas3\`, \`oas2\`, \`async2\`, \`async3\`, \`arazzo\`, or \`overlay1\` rules "${a}.`);g.rules={},u.rules.oas3&&(g.rules.oas3=Ar(u.rules.oas3,d)),u.rules.oas2&&(g.rules.oas2=Ar(u.rules.oas2,d)),u.rules.async2&&(g.rules.async2=Ar(u.rules.async2,d)),u.rules.async3&&(g.rules.async3=Ar(u.rules.async3,d)),u.rules.arazzo1&&(g.rules.arazzo1=Ar(u.rules.arazzo1,d)),u.rules.overlay1&&(g.rules.overlay1=Ar(u.rules.overlay1,d))}if(u.preprocessors){if(!u.preprocessors.oas3&&!u.preprocessors.oas2&&!u.preprocessors.async2&&!u.preprocessors.async3&&!u.preprocessors.arazzo1&&!u.preprocessors.overlay1)throw new Error(`Plugin \`preprocessors\` must have \`oas3\`, \`oas2\`, \`async2\`, \`async3\`, \`arazzo1\`, or \`overlay1\` preprocessors "${a}.`);g.preprocessors={},u.preprocessors.oas3&&(g.preprocessors.oas3=Ar(u.preprocessors.oas3,d)),u.preprocessors.oas2&&(g.preprocessors.oas2=Ar(u.preprocessors.oas2,d)),u.preprocessors.async2&&(g.preprocessors.async2=Ar(u.preprocessors.async2,d)),u.preprocessors.async3&&(g.preprocessors.async3=Ar(u.preprocessors.async3,d)),u.preprocessors.arazzo1&&(g.preprocessors.arazzo1=Ar(u.preprocessors.arazzo1,d)),u.preprocessors.overlay1&&(g.preprocessors.overlay1=Ar(u.preprocessors.overlay1,d))}if(u.decorators){if(!u.decorators.oas3&&!u.decorators.oas2&&!u.decorators.async2&&!u.decorators.async3&&!u.decorators.arazzo1&&!u.decorators.overlay1)throw new Error(`Plugin \`decorators\` must have \`oas3\`, \`oas2\`, \`async2\`, \`async3\`, \`arazzo1\`, or \`overlay1\` decorators "${a}.`);g.decorators={},u.decorators.oas3&&(g.decorators.oas3=Ar(u.decorators.oas3,d)),u.decorators.oas2&&(g.decorators.oas2=Ar(u.decorators.oas2,d)),u.decorators.async2&&(g.decorators.async2=Ar(u.decorators.async2,d)),u.decorators.async3&&(g.decorators.async3=Ar(u.decorators.async3,d)),u.decorators.arazzo1&&(g.decorators.arazzo1=Ar(u.decorators.arazzo1,d)),u.decorators.overlay1&&(g.decorators.overlay1=Ar(u.decorators.overlay1,d))}return u.assertions&&(g.assertions=u.assertions),{...u,...g}}))).filter(Kb)}))).filter(Kb).flat()}function mFe(t,e){const{pluginId:r,configName:n}=Uze(t),i=e.find(s=>s.id===r);if(!i)throw new Error(`Invalid config ${mt.red(t)}: plugin ${r} is not included.`);const o=i.configs?.[n];if(!o)throw new Error(r?`Invalid config ${mt.red(t)}: plugin ${r} doesn't export config with name ${n}.`:`Invalid config ${mt.red(t)}: there is no such built-in config.`);return o}function gFe(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){Cz(e,s);for(const a of s.where||[])Cz(e,a)}n.push({...s,assertionId:i})}else r[i]=o;return n.length>0&&(r.assertions=n),r}function Cz(t,e){for(const r of cG(e.assertions)){const[n,i]=r.split("/");if(!n||!i)continue;const o=t.find(s=>s.id===n);if(!o)throw Error(mt.red(`Plugin ${mt.blue(n)} isn't found.`));if(!o.assertions||!o.assertions[i])throw Error(`Plugin ${mt.red(n)} doesn't export assertions function with name ${mt.red(i)}.`);hO[r]=wqe(o.assertions[i])}}function yFe(t){return t?lG(t)?$t.join($t.dirname(t),av):$t.join(t,av):Nn?void 0:$t.join(process.cwd(),av)}class WI{constructor(e,r={}){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=cH(this.resolvedConfig.resolve),this._alias=r.alias,this.plugins=r.plugins||[],this.doNotResolveExamples=!!e.resolve?.doNotResolveExamples;const n=i=>gFe({rules:i},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(yFe(r.configPath))}forAlias(e){if(e===void 0||!at(this.resolvedConfig?.apis?.[e]))return this;const{apis:r,...n}=this.resolvedConfig,{root:i,output:o,...s}=r[e];return new WI({...n,...s},{configPath:this.configPath,document:this.document,resolvedRefMap:this.resolvedRefMap,alias:e,plugins:this.plugins})}resolveIgnore(e){!e||lG(e)}saveIgnore(){const e=this.configPath?$t.dirname(this.configPath):process.cwd(),r=$t.join(e,av),n={};for(const i of Object.keys(this.ignore)){const o=Tr(i)?i:cje($t.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,nFe+tje(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=>l.preprocessors?.oas3&&r.push(l.preprocessors.oas3)),this.plugins.forEach(l=>l.rules?.oas3&&r.push(l.rules.oas3)),this.plugins.forEach(l=>l.decorators?.oas3&&r.push(l.decorators.oas3)),r;case"oas2":const n=[];return this.plugins.forEach(l=>l.preprocessors?.oas2&&n.push(l.preprocessors.oas2)),this.plugins.forEach(l=>l.rules?.oas2&&n.push(l.rules.oas2)),this.plugins.forEach(l=>l.decorators?.oas2&&n.push(l.decorators.oas2)),n;case"async2":const i=[];return this.plugins.forEach(l=>l.preprocessors?.async2&&i.push(l.preprocessors.async2)),this.plugins.forEach(l=>l.rules?.async2&&i.push(l.rules.async2)),this.plugins.forEach(l=>l.decorators?.async2&&i.push(l.decorators.async2)),i;case"async3":const o=[];return this.plugins.forEach(l=>l.preprocessors?.async3&&o.push(l.preprocessors.async3)),this.plugins.forEach(l=>l.rules?.async3&&o.push(l.rules.async3)),this.plugins.forEach(l=>l.decorators?.async3&&o.push(l.decorators.async3)),o;case"arazzo1":const s=[];return this.plugins.forEach(l=>l.preprocessors?.arazzo1&&s.push(l.preprocessors.arazzo1)),this.plugins.forEach(l=>l.rules?.arazzo1&&s.push(l.rules.arazzo1)),this.plugins.forEach(l=>l.decorators?.arazzo1&&s.push(l.decorators.arazzo1)),s;case"overlay1":const a=[];return this.plugins.forEach(l=>l.preprocessors?.overlay1&&a.push(l.preprocessors.overlay1)),this.plugins.forEach(l=>l.rules?.overlay1&&a.push(l.rules.overlay1)),this.plugins.forEach(l=>l.decorators?.overlay1&&a.push(l.decorators.overlay1)),a}}skipRules(e){for(const r of e||[])for(const n of iv)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 iv)this.preprocessors[n][r]&&(this.preprocessors[n][r]="off")}skipDecorators(e){for(const r of e||[])for(const n of iv)this.decorators[n][r]&&(this.decorators[n][r]="off")}}async function l7(t,{configPath:e,externalRefResolver:r}={}){const i=Yze(typeof t=="string"?t:"",e??"");typeof t!="string"&&t&&(i.parsed=t);const{resolvedConfig:o,resolvedRefMap:s,plugins:a}=await fFe({rawConfigDocument:vFe(i),configPath:e,externalRefResolver:r});return new WI(o,{configPath:e,document:i,resolvedRefMap:s,plugins:a})}function vFe(t){if(!t.parsed)return t;const{plugins:e,resolve:r,...n}=t.parsed,i={...structuredClone(n),plugins:e?.slice(),...r&&{resolve:{...r}}};return{...t,parsed:i}}var SS={},_i={},CS={},Pz;function Z0(){return Pz||(Pz=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})(CS)),CS}var rs={},kz;function nd(){if(kz)return rs;kz=1,Object.defineProperty(rs,"__esModule",{value:!0});function t(s){return typeof s>"u"||s===null}rs.isNothing=t;function e(s){return typeof s=="object"&&s!==null}rs.isObject=e;function r(s){return Array.isArray(s)?s:t(s)?[]:[s]}rs.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}rs.extend=n;function i(s,a){var l="",c;for(c=0;c<a;c+=1)l+=s;return l}rs.repeat=i;function o(s){return s===0&&Number.NEGATIVE_INFINITY===1/s}return rs.isNegativeZero=o,rs}var PS,$z;function ah(){if($z)return PS;$z=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 PS=t,PS}var kS,Ez;function bFe(){if(Ez)return kS;Ez=1;var t=nd(),e=(function(){function r(n,i,o,s,a){this.name=n,this.buffer=i,this.position=o,this.line=s,this.column=a}return r.prototype.getSnippet=function(n,i){n===void 0&&(n=0),i===void 0&&(i=75);var o,s,a,l,c;if(!this.buffer)return null;for(n=n||4,i=i||75,o="",s=this.position;s>0&&`\0\r
|
|
@@ -2562,7 +2562,7 @@ ${v.message}
|
|
|
2562
2562
|
|
|
2563
2563
|
`+c:s.message,d={title:s.ruleId,file:Tr(a.source.absoluteRef)?a.source.absoluteRef:$t.relative(e,a.source.absoluteRef),line:a.start.line,col:a.start.col,endLine:a.end?.line,endColumn:a.end?.col};Ft.output(`::${l} ${r(d)}::${i(u)}
|
|
2564
2564
|
`)}function r(s){return Object.entries(s).filter(([,a])=>a!=null).map(([a,l])=>`${a}=${o(l)}`).join(",")}function n(s){return s==null?"":typeof s=="string"||s instanceof String?s:JSON.stringify(s)}function i(s){return n(s).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function o(s){return n(s).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}}delete TI.properties.theme;async function s5e(t){const{ref:e,externalRefResolver:r=new Q0(t.config.resolve)}=t,n=await r.resolveDocument(null,e,!0);return t.collectSpecData?.(n.parsed),a5e({document:n,...t,externalRefResolver:r})}async function a5e(t){hqe();const{document:e,customTypes:r,externalRefResolver:n,config:i}=t,o=_I(e.parsed),s=YY(o),a=i.getRulesForSpecVersion(s),l=kI(i.extendTypes(r??RI(o),o),i),c={problems:[],specVersion:o,config:i,visitorsData:{}},u=gO(a,i,"preprocessors",o),d=gO(a,i,"rules",o);let f=await Tp({rootDocument:e,rootType:l.Root,externalRefResolver:n});u.length>0&&(_u({document:e,rootType:l.Root,normalizedVisitors:Tu(u,l),resolvedRefMap:f,ctx:c}),f=await Tp({rootDocument:e,rootType:l.Root,externalRefResolver:n}));const p=Tu(d,l);return _u({document:e,rootType:l.Root,normalizedVisitors:p,resolvedRefMap:f,ctx:c}),c.problems.map(g=>i.addProblemToIgnore(g))}const l5e={info:t=>{},error:t=>{},warn:t=>{},printNewLine:()=>{},printSeparator:()=>{},indent:(t,e)=>t,output:t=>t};class c5e extends Q0{constructor(){super()}resolveExternalRef(e,r){return ev(r)?r:e&&ev(e)?new URL(r,e).href:e?Il.resolve(Il.dirname(e),r):r}async loadExternalRef(e){if(ev(e)){const{body:r,mimeType:n}=await sG(e,{...this.config.http,customFetch:ms});return new Au(e,r,n)}else{if(!await BW(e))throw new Error(`File not found at ${e}.`);try{throw await qW(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 B$(e);return new Au(e,n.replace(/\r\n/g,`
|
|
2565
|
-
`))}}}async function u5e({collectionId:t,workflowId:e,projectDir:r,inputsObject:n,serversObject:i,sourceDescriptions:o,severitySettings:s}){const a=`${r}/${t}`,l=new c5e,c=n.map(f=>JSON.stringify({[f.name]:f.value})),u=d5e(i,o),{run:d}=await Promise.resolve().then(()=>require("./replay-index-
|
|
2565
|
+
`))}}}async function u5e({collectionId:t,workflowId:e,projectDir:r,inputsObject:n,serversObject:i,sourceDescriptions:o,severitySettings:s}){const a=`${r}/${t}`,l=new c5e,c=n.map(f=>JSON.stringify({[f.name]:f.value})),u=d5e(i,o),{run:d}=await Promise.resolve().then(()=>require("./replay-index-CZaE-pRR.js"));return await d({files:[a],workflow:e?[e]:[],fetch:ms,logger:l5e,maxSteps:500,maxFetchTimeout:4e4,requestFileLoader:{getFileBody:async f=>{if(!await BW(f))throw new Error(`File ${f} doesn't exist or isn't readable.`);try{const g=await B$(f),m=new TextEncoder().encode(g);return new File([m],await VW(f))}catch(g){throw new Error(`Failed to read file ${f}: ${g}`)}}},envVariables:{},config:await l7({}),externalRefResolver:l,input:c,server:u,severity:JSON.stringify(s),skipLint:!0})}function d5e(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 ZI(t){return t==null?"N/A":t<1e3?`${t} ms`:t<1e4?`${(t/1e3).toFixed(1)} s`:`${Math.round(t/1e3)} s`}function p7({checks:t}){const e=t.filter(p=>p.severity!=="off"),r=e.filter(p=>p.passed).length,n=e.filter(p=>p.severity==="warn"&&!p.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?h.jsx(B.CheckmarkFilledIcon,{color:"var(--color-success-base)"}):o>0?h.jsx(B.ErrorFilledIcon,{color:"var(--color-error-base)"}):h.jsx(B.WarningFilledIcon,{color:"var(--color-warning-base)"}),f=p=>{p.stopPropagation(),c(!l)};return!e||e.length===0?null:h.jsxs(f5e,{children:[h.jsxs(p5e,{onClick:f,children:[h.jsxs(h5e,{children:[h.jsx(m5e,{children:h.jsx(g5e,{children:d()})}),h.jsxs(y5e,{children:[h.jsx(v5e,{children:u()}),h.jsxs(b5e,{children:[r," successful",n>0&&h.jsxs(h.Fragment,{children:[", ",n," ",n===1?"warning":"warnings"]}),o>0&&h.jsxs(h.Fragment,{children:[", ",o," failed"]})]})]})]}),h.jsx(O5e,{isExpanded:l,children:l?h.jsx(B.ChevronDownIcon,{}):h.jsx(B.ChevronRightIcon,{})})]}),h.jsx(x5e,{isExpanded:l,children:e.map((p,g)=>h.jsxs(w5e,{children:[h.jsx(S5e,{children:p.passed?h.jsx(B.CheckmarkIcon,{color:"var(--color-success-base)",size:"14px"}):!p.passed&&["warn"].includes(p.severity)?h.jsx(B.WarningFilledIcon,{color:"var(--color-warning-base)",size:"14px"}):h.jsx(B.CloseOutlineIcon,{color:"var(--color-error-base)",size:"14px"})}),h.jsxs(C5e,{children:[h.jsx(P5e,{children:p.name}),p.message&&h.jsx(k5e,{children:p.message})]})]},g))})]})}const f5e=R.div`
|
|
2566
2566
|
margin-bottom: 0;
|
|
2567
2567
|
margin-top: var(--spacing-xxs);
|
|
2568
2568
|
`,p5e=R.div`
|
|
@@ -30840,7 +30840,7 @@ function hd() {
|
|
|
30840
30840
|
class jr {
|
|
30841
30841
|
static utils = null;
|
|
30842
30842
|
static async getUtils() {
|
|
30843
|
-
return jr.utils || (jr.utils = hd() ? await import("./replay-tauri-path-
|
|
30843
|
+
return jr.utils || (jr.utils = hd() ? await import("./replay-tauri-path-D5kjpgEq.js") : await Promise.resolve().then(() => RRe)), jr.utils;
|
|
30844
30844
|
}
|
|
30845
30845
|
static async join(...e) {
|
|
30846
30846
|
return (await jr.getUtils()).join(...e);
|
|
@@ -36749,7 +36749,7 @@ const z0 = yi({});
|
|
|
36749
36749
|
function eA() {
|
|
36750
36750
|
return Dr(z0) || {};
|
|
36751
36751
|
}
|
|
36752
|
-
const hOe = "0.18.0-next.
|
|
36752
|
+
const hOe = "0.18.0-next.3", mOe = {
|
|
36753
36753
|
version: hOe
|
|
36754
36754
|
};
|
|
36755
36755
|
class gOe {
|
|
@@ -54184,7 +54184,7 @@ function eIe({
|
|
|
54184
54184
|
}, i = async () => {
|
|
54185
54185
|
if (hd())
|
|
54186
54186
|
try {
|
|
54187
|
-
const { open: a } = await import("./replay-index-
|
|
54187
|
+
const { open: a } = await import("./replay-index-DXfrp-OC.js"), l = await a({
|
|
54188
54188
|
multiple: !0
|
|
54189
54189
|
});
|
|
54190
54190
|
if (!l)
|
|
@@ -54518,7 +54518,7 @@ const xIe = ({ data: t }) => {
|
|
|
54518
54518
|
}, s = async (c) => {
|
|
54519
54519
|
if (c?.preventDefault(), hd())
|
|
54520
54520
|
try {
|
|
54521
|
-
const { open: u } = await import("./replay-index-
|
|
54521
|
+
const { open: u } = await import("./replay-index-DXfrp-OC.js"), d = await u();
|
|
54522
54522
|
if (!d)
|
|
54523
54523
|
return;
|
|
54524
54524
|
const f = await mh(d);
|
|
@@ -84052,7 +84052,7 @@ async function H3e({
|
|
|
84052
84052
|
sourceDescriptions: o,
|
|
84053
84053
|
severitySettings: s
|
|
84054
84054
|
}) {
|
|
84055
|
-
const a = `${r}/${t}`, l = new Y3e(), c = n.map((f) => JSON.stringify({ [f.name]: f.value })), u = J3e(i, o), { run: d } = await import("./replay-index-
|
|
84055
|
+
const a = `${r}/${t}`, l = new Y3e(), c = n.map((f) => JSON.stringify({ [f.name]: f.value })), u = J3e(i, o), { run: d } = await import("./replay-index-DBXFZneT.js");
|
|
84056
84056
|
return await d({
|
|
84057
84057
|
files: [a],
|
|
84058
84058
|
workflow: e ? [e] : [],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./replay-index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./replay-index-lM29rXxS.js");async function v(i,l){const t=e.sep(),a=await e.resolve(i),c=await e.resolve(l),r=a.replace(new RegExp(`^${t}+`),"").split(t).filter(Boolean),n=c.replace(new RegExp(`^${t}+`),"").split(t).filter(Boolean),p=Math.min(r.length,n.length);let s=0;for(let o=0;o<p&&r[o]===n[o];o++)s++;const f=r.slice(s).map(()=>".."),g=n.slice(s);return[...f,...g].join(t)}exports.isAbsolute=e.isAbsolute;exports.join=e.join;exports.resolve=e.resolve;exports.relative=v;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as h, o as r } from "./replay-index-
|
|
2
|
-
import { u as w, q as b } from "./replay-index-
|
|
1
|
+
import { n as h, o as r } from "./replay-index-wO1crrTZ.js";
|
|
2
|
+
import { u as w, q as b } from "./replay-index-wO1crrTZ.js";
|
|
3
3
|
async function x(s, i) {
|
|
4
4
|
const t = h(), l = await r(s), c = await r(i), o = l.replace(new RegExp(`^${t}+`), "").split(t).filter(Boolean), n = c.replace(new RegExp(`^${t}+`), "").split(t).filter(Boolean), p = Math.min(o.length, n.length);
|
|
5
5
|
let a = 0;
|
package/dist/replay.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./replay-index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./replay-index-lM29rXxS.js");exports.EmbeddedReplay=e.EmbeddedReplay;exports.Modal=e.Modal;exports.Replay=e.Replay;exports.ReplayOverlay=e.ReplayOverlay;
|
package/dist/replay.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@redocly/replay",
|
|
3
|
-
"version": "0.18.0-next.
|
|
3
|
+
"version": "0.18.0-next.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/replay.cjs",
|
|
6
6
|
"module": "./dist/replay.js",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"react-dom": "^19.1.0",
|
|
20
20
|
"react-router-dom": "^6.21.1",
|
|
21
21
|
"styled-components": "^5.3.11",
|
|
22
|
-
"@redocly/theme": "0.59.0-next.
|
|
22
|
+
"@redocly/theme": "0.59.0-next.2"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@codemirror/autocomplete": "^6.15.0",
|