@redocly/replay 0.20.0-next.3 → 0.20.0-next.4
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-BVftpAcJ.js → replay-index-7vtyjMP_.js} +1 -1
- package/dist/{replay-index-R5NlaWN3.js → replay-index-BAzGnZvK.js} +1 -1
- package/dist/{replay-index-DclYXgOW.js → replay-index-BJ_p67iw.js} +1 -1
- package/dist/{replay-index-Cwjjmq1w.js → replay-index-BSsZKK0_.js} +9 -9
- package/dist/{replay-index-DyEXLIyO.js → replay-index-CSeQ670v.js} +9 -9
- package/dist/{replay-index-3pb5zlzV.js → replay-index-D5WsuXyl.js} +1 -1
- package/dist/{replay-index-oKedMpZF.js → replay-index-DwFsTs5R.js} +1 -1
- package/dist/{replay-index-LGoPYEWu.js → replay-index-tgdv-amD.js} +1 -1
- package/dist/{replay-tauri-path-CETRdBlD.js → replay-tauri-path-D6aHMvNK.js} +2 -2
- package/dist/{replay-tauri-path-Be0EEZaU.js → replay-tauri-path-DAj_5f9i.js} +1 -1
- package/dist/replay.cjs +1 -1
- package/dist/replay.js +1 -1
- package/package.json +3 -3
|
@@ -112,7 +112,7 @@ See https://s-c.sh/2BAXzed for more info.`),window["__styled-components-init__"]
|
|
|
112
112
|
width: fit-content;
|
|
113
113
|
border-radius: var(--border-radius);
|
|
114
114
|
color: var(--replay-operators-color);
|
|
115
|
-
`;var BS,YR;function wie(){if(YR)return BS;YR=1;function t(i){if(typeof i!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(i))}function e(i,o){for(var s="",a=0,l=-1,c=0,u,d=0;d<=i.length;++d){if(d<i.length)u=i.charCodeAt(d);else{if(u===47)break;u=47}if(u===47){if(!(l===d-1||c===1))if(l!==d-1&&c===2){if(s.length<2||a!==2||s.charCodeAt(s.length-1)!==46||s.charCodeAt(s.length-2)!==46){if(s.length>2){var f=s.lastIndexOf("/");if(f!==s.length-1){f===-1?(s="",a=0):(s=s.slice(0,f),a=s.length-1-s.lastIndexOf("/")),l=d,c=0;continue}}else if(s.length===2||s.length===1){s="",a=0,l=d,c=0;continue}}o&&(s.length>0?s+="/..":s="..",a=2)}else s.length>0?s+="/"+i.slice(l+1,d):s=i.slice(l+1,d),a=d-l-1;l=d,c=0}else u===46&&c!==-1?++c:c=-1}return s}function r(i,o){var s=o.dir||o.root,a=o.base||(o.name||"")+(o.ext||"");return s?s===o.root?s+a:s+i+a:a}var n={resolve:function(){for(var o="",s=!1,a,l=arguments.length-1;l>=-1&&!s;l--){var c;l>=0?c=arguments[l]:(a===void 0&&(a=process.cwd()),c=a),t(c),c.length!==0&&(o=c+"/"+o,s=c.charCodeAt(0)===47)}return o=e(o,!s),s?o.length>0?"/"+o:"/":o.length>0?o:"."},normalize:function(o){if(t(o),o.length===0)return".";var s=o.charCodeAt(0)===47,a=o.charCodeAt(o.length-1)===47;return o=e(o,!s),o.length===0&&!s&&(o="."),o.length>0&&a&&(o+="/"),s?"/"+o:o},isAbsolute:function(o){return t(o),o.length>0&&o.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var o,s=0;s<arguments.length;++s){var a=arguments[s];t(a),a.length>0&&(o===void 0?o=a:o+="/"+a)}return o===void 0?".":n.normalize(o)},relative:function(o,s){if(t(o),t(s),o===s||(o=n.resolve(o),s=n.resolve(s),o===s))return"";for(var a=1;a<o.length&&o.charCodeAt(a)===47;++a);for(var l=o.length,c=l-a,u=1;u<s.length&&s.charCodeAt(u)===47;++u);for(var d=s.length,f=d-u,h=c<f?c:f,y=-1,m=0;m<=h;++m){if(m===h){if(f>h){if(s.charCodeAt(u+m)===47)return s.slice(u+m+1);if(m===0)return s.slice(u+m)}else c>h&&(o.charCodeAt(a+m)===47?y=m:m===0&&(y=0));break}var g=o.charCodeAt(a+m),v=s.charCodeAt(u+m);if(g!==v)break;g===47&&(y=m)}var O="";for(m=a+y+1;m<=l;++m)(m===l||o.charCodeAt(m)===47)&&(O.length===0?O+="..":O+="/..");return O.length>0?O+s.slice(u+y):(u+=y,s.charCodeAt(u)===47&&++u,s.slice(u))},_makeLong:function(o){return o},dirname:function(o){if(t(o),o.length===0)return".";for(var s=o.charCodeAt(0),a=s===47,l=-1,c=!0,u=o.length-1;u>=1;--u)if(s=o.charCodeAt(u),s===47){if(!c){l=u;break}}else c=!1;return l===-1?a?"/":".":a&&l===1?"//":o.slice(0,l)},basename:function(o,s){if(s!==void 0&&typeof s!="string")throw new TypeError('"ext" argument must be a string');t(o);var a=0,l=-1,c=!0,u;if(s!==void 0&&s.length>0&&s.length<=o.length){if(s.length===o.length&&s===o)return"";var d=s.length-1,f=-1;for(u=o.length-1;u>=0;--u){var h=o.charCodeAt(u);if(h===47){if(!c){a=u+1;break}}else f===-1&&(c=!1,f=u+1),d>=0&&(h===s.charCodeAt(d)?--d===-1&&(l=u):(d=-1,l=f))}return a===l?l=f:l===-1&&(l=o.length),o.slice(a,l)}else{for(u=o.length-1;u>=0;--u)if(o.charCodeAt(u)===47){if(!c){a=u+1;break}}else l===-1&&(c=!1,l=u+1);return l===-1?"":o.slice(a,l)}},extname:function(o){t(o);for(var s=-1,a=0,l=-1,c=!0,u=0,d=o.length-1;d>=0;--d){var f=o.charCodeAt(d);if(f===47){if(!c){a=d+1;break}continue}l===-1&&(c=!1,l=d+1),f===46?s===-1?s=d:u!==1&&(u=1):s!==-1&&(u=-1)}return s===-1||l===-1||u===0||u===1&&s===l-1&&s===a+1?"":o.slice(s,l)},format:function(o){if(o===null||typeof o!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof o);return r("/",o)},parse:function(o){t(o);var s={root:"",dir:"",base:"",ext:"",name:""};if(o.length===0)return s;var a=o.charCodeAt(0),l=a===47,c;l?(s.root="/",c=1):c=0;for(var u=-1,d=0,f=-1,h=!0,y=o.length-1,m=0;y>=c;--y){if(a=o.charCodeAt(y),a===47){if(!h){d=y+1;break}continue}f===-1&&(h=!1,f=y+1),a===46?u===-1?u=y:m!==1&&(m=1):u!==-1&&(m=-1)}return u===-1||f===-1||m===0||m===1&&u===f-1&&u===d+1?f!==-1&&(d===0&&l?s.base=s.name=o.slice(1,f):s.base=s.name=o.slice(d,f)):(d===0&&l?(s.name=o.slice(1,u),s.base=o.slice(1,f)):(s.name=o.slice(d,u),s.base=o.slice(d,f)),s.ext=o.slice(u,f)),d>0?s.dir=o.slice(0,d-1):l&&(s.dir="/"),s},sep:"/",delimiter:":",win32:null,posix:null};return n.posix=n,BS=n,BS}var Mt=wie();const Yc=li(Mt),Pie=Lre({__proto__:null,default:Yc},[Mt]),a7={},l7=Object.freeze(Object.defineProperty({__proto__:null,default:a7},Symbol.toStringTag,{value:"Module"}));function c7(t){return(Mt.extname(t)===".yaml"||Mt.extname(t)===".yml")&&!1}function O$(t,e){let r,n;if(t===e)return!0;if(t&&e&&(r=t.constructor)===e.constructor){if(r===Date)return t.getTime()===e.getTime();if(r===RegExp)return t.toString()===e.toString();if(r===Array){if((n=t.length)===e.length)for(;n--&&O$(t[n],e[n]););return n===-1}if(!r||typeof t=="object"){n=0;for(r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&++n&&!Object.prototype.hasOwnProperty.call(e,r)||!(r in e)||!O$(t[r],e[r]))return!1;return Object.keys(e).length===n}}return t!==t&&e!==e}function xt(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}function jh(t){return xt(t)&&Object.keys(t).length===0}function Vi(t){return typeof t=="string"}function oo(t){return!!t}function Cie(t){return t?Object.keys(t):[]}function $ie(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var wv={exports:{}},kie=wv.exports,GR;function Eie(){return GR||(GR=1,(function(t,e){(function(r,n){typeof $ie=="function"?t.exports=n():r.pluralize=n()})(kie,function(){var r=[],n=[],i={},o={},s={};function a(m){return typeof m=="string"?new RegExp("^"+m+"$","i"):m}function l(m,g){return m===g?g:m===m.toLowerCase()?g.toLowerCase():m===m.toUpperCase()?g.toUpperCase():m[0]===m[0].toUpperCase()?g.charAt(0).toUpperCase()+g.substr(1).toLowerCase():g.toLowerCase()}function c(m,g){return m.replace(/\$(\d{1,2})/g,function(v,O){return g[O]||""})}function u(m,g){return m.replace(g[0],function(v,O){var b=c(g[1],arguments);return l(v===""?m[O-1]:v,b)})}function d(m,g,v){if(!m.length||i.hasOwnProperty(m))return g;for(var O=v.length;O--;){var b=v[O];if(b[0].test(g))return u(g,b)}return g}function f(m,g,v){return function(O){var b=O.toLowerCase();return g.hasOwnProperty(b)?l(O,b):m.hasOwnProperty(b)?l(O,m[b]):d(b,O,v)}}function h(m,g,v,O){return function(b){var S=b.toLowerCase();return g.hasOwnProperty(S)?!0:m.hasOwnProperty(S)?!1:d(S,S,v)===S}}function y(m,g,v){var O=g===1?y.singular(m):y.plural(m);return(v?g+" ":"")+O}return y.plural=f(s,o,r),y.isPlural=h(s,o,r),y.singular=f(o,s,n),y.isSingular=h(o,s,n),y.addPluralRule=function(m,g){r.push([a(m),g])},y.addSingularRule=function(m,g){n.push([a(m),g])},y.addUncountableRule=function(m){if(typeof m=="string"){i[m.toLowerCase()]=!0;return}y.addPluralRule(m,"$0"),y.addSingularRule(m,"$0")},y.addIrregularRule=function(m,g){g=g.toLowerCase(),m=m.toLowerCase(),s[m]=g,o[g]=m},[["I","we"],["me","us"],["he","they"],["she","they"],["them","them"],["myself","ourselves"],["yourself","yourselves"],["itself","themselves"],["herself","themselves"],["himself","themselves"],["themself","themselves"],["is","are"],["was","were"],["has","have"],["this","these"],["that","those"],["echo","echoes"],["dingo","dingoes"],["volcano","volcanoes"],["tornado","tornadoes"],["torpedo","torpedoes"],["genus","genera"],["viscus","viscera"],["stigma","stigmata"],["stoma","stomata"],["dogma","dogmata"],["lemma","lemmata"],["schema","schemata"],["anathema","anathemata"],["ox","oxen"],["axe","axes"],["die","dice"],["yes","yeses"],["foot","feet"],["eave","eaves"],["goose","geese"],["tooth","teeth"],["quiz","quizzes"],["human","humans"],["proof","proofs"],["carve","carves"],["valve","valves"],["looey","looies"],["thief","thieves"],["groove","grooves"],["pickaxe","pickaxes"],["passerby","passersby"]].forEach(function(m){return y.addIrregularRule(m[0],m[1])}),[[/s?$/i,"s"],[/[^\u0000-\u007F]$/i,"$0"],[/([^aeiou]ese)$/i,"$1"],[/(ax|test)is$/i,"$1es"],[/(alias|[^aou]us|t[lm]as|gas|ris)$/i,"$1es"],[/(e[mn]u)s?$/i,"$1s"],[/([^l]ias|[aeiou]las|[ejzr]as|[iu]am)$/i,"$1"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1i"],[/(alumn|alg|vertebr)(?:a|ae)$/i,"$1ae"],[/(seraph|cherub)(?:im)?$/i,"$1im"],[/(her|at|gr)o$/i,"$1oes"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i,"$1a"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i,"$1a"],[/sis$/i,"ses"],[/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i,"$1$2ves"],[/([^aeiouy]|qu)y$/i,"$1ies"],[/([^ch][ieo][ln])ey$/i,"$1ies"],[/(x|ch|ss|sh|zz)$/i,"$1es"],[/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i,"$1ices"],[/\b((?:tit)?m|l)(?:ice|ouse)$/i,"$1ice"],[/(pe)(?:rson|ople)$/i,"$1ople"],[/(child)(?:ren)?$/i,"$1ren"],[/eaux$/i,"$0"],[/m[ae]n$/i,"men"],["thou","you"]].forEach(function(m){return y.addPluralRule(m[0],m[1])}),[[/s$/i,""],[/(ss)$/i,"$1"],[/(wi|kni|(?:after|half|high|low|mid|non|night|[^\w]|^)li)ves$/i,"$1fe"],[/(ar|(?:wo|[ae])l|[eo][ao])ves$/i,"$1f"],[/ies$/i,"y"],[/\b([pl]|zomb|(?:neck|cross)?t|coll|faer|food|gen|goon|group|lass|talk|goal|cut)ies$/i,"$1ie"],[/\b(mon|smil)ies$/i,"$1ey"],[/\b((?:tit)?m|l)ice$/i,"$1ouse"],[/(seraph|cherub)im$/i,"$1"],[/(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|t[lm]as|gas|(?:her|at|gr)o|[aeiou]ris)(?:es)?$/i,"$1"],[/(analy|diagno|parenthe|progno|synop|the|empha|cri|ne)(?:sis|ses)$/i,"$1sis"],[/(movie|twelve|abuse|e[mn]u)s$/i,"$1"],[/(test)(?:is|es)$/i,"$1is"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1us"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i,"$1um"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i,"$1on"],[/(alumn|alg|vertebr)ae$/i,"$1a"],[/(cod|mur|sil|vert|ind)ices$/i,"$1ex"],[/(matr|append)ices$/i,"$1ix"],[/(pe)(rson|ople)$/i,"$1rson"],[/(child)ren$/i,"$1"],[/(eau)x?$/i,"$1"],[/men$/i,"man"]].forEach(function(m){return y.addSingularRule(m[0],m[1])}),["adulthood","advice","agenda","aid","aircraft","alcohol","ammo","analytics","anime","athletics","audio","bison","blood","bream","buffalo","butter","carp","cash","chassis","chess","clothing","cod","commerce","cooperation","corps","debris","diabetes","digestion","elk","energy","equipment","excretion","expertise","firmware","flounder","fun","gallows","garbage","graffiti","hardware","headquarters","health","herpes","highjinks","homework","housework","information","jeans","justice","kudos","labour","literature","machinery","mackerel","mail","media","mews","moose","music","mud","manga","news","only","personnel","pike","plankton","pliers","police","pollution","premises","rain","research","rice","salmon","scissors","series","sewage","shambles","shrimp","software","species","staff","swine","tennis","traffic","transportation","trout","tuna","wealth","welfare","whiting","wildebeest","wildlife","you",/pok[eé]mon$/i,/[^aeiou]ese$/i,/deer$/i,/fish$/i,/measles$/i,/o[iu]s$/i,/pox$/i,/sheep$/i].forEach(y.addUncountableRule),y})})(wv)),wv.exports}var Tie=Eie();const u7=li(Tie);function d7(t,e,r){return t.split(" ").map(n=>u7(n,e,r)).join(" ")}var FS={},ZS,HR;function Ux(){if(HR)return ZS;HR=1;const t="\\\\/",e=`[^${t}]`,r="\\.",n="\\+",i="\\?",o="\\/",s="(?=.)",a="[^/]",l=`(?:${o}|$)`,c=`(?:^|${o})`,u=`${r}{1,2}${l}`,d=`(?!${r})`,f=`(?!${c}${u})`,h=`(?!${r}{0,1}${l})`,y=`(?!${u})`,m=`[^.${o}]`,g=`${a}*?`,O={DOT_LITERAL:r,PLUS_LITERAL:n,QMARK_LITERAL:i,SLASH_LITERAL:o,ONE_CHAR:s,QMARK:a,END_ANCHOR:l,DOTS_SLASH:u,NO_DOT:d,NO_DOTS:f,NO_DOT_SLASH:h,NO_DOTS_SLASH:y,QMARK_NO_DOT:m,STAR:g,START_ANCHOR:c,SEP:"/"},b={...O,SLASH_LITERAL:`[${t}]`,QMARK:e,STAR:`${e}*?`,DOTS_SLASH:`${r}{1,2}(?:[${t}]|$)`,NO_DOT:`(?!${r})`,NO_DOTS:`(?!(?:^|[${t}])${r}{1,2}(?:[${t}]|$))`,NO_DOT_SLASH:`(?!${r}{0,1}(?:[${t}]|$))`,NO_DOTS_SLASH:`(?!${r}{1,2}(?:[${t}]|$))`,QMARK_NO_DOT:`[^.${t}]`,START_ANCHOR:`(?:^|[${t}])`,END_ANCHOR:`(?:[${t}]|$)`,SEP:"\\"},S={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};return ZS={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:S,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{__proto__:null,"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,extglobChars(x){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${x.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(x){return x===!0?b:O}},ZS}var JR;function Wx(){return JR||(JR=1,(function(t){const{REGEX_BACKSLASH:e,REGEX_REMOVE_BACKSLASH:r,REGEX_SPECIAL_CHARS:n,REGEX_SPECIAL_CHARS_GLOBAL:i}=Ux();t.isObject=o=>o!==null&&typeof o=="object"&&!Array.isArray(o),t.hasRegexChars=o=>n.test(o),t.isRegexChar=o=>o.length===1&&t.hasRegexChars(o),t.escapeRegex=o=>o.replace(i,"\\$1"),t.toPosixSlashes=o=>o.replace(e,"/"),t.isWindows=()=>{if(typeof navigator<"u"&&navigator.platform){const o=navigator.platform.toLowerCase();return o==="win32"||o==="windows"}return typeof process<"u"&&process.platform?process.platform==="win32":!1},t.removeBackslashes=o=>o.replace(r,s=>s==="\\"?"":s),t.escapeLast=(o,s,a)=>{const l=o.lastIndexOf(s,a);return l===-1?o:o[l-1]==="\\"?t.escapeLast(o,s,l-1):`${o.slice(0,l)}\\${o.slice(l)}`},t.removePrefix=(o,s={})=>{let a=o;return a.startsWith("./")&&(a=a.slice(2),s.prefix="./"),a},t.wrapOutput=(o,s={},a={})=>{const l=a.contains?"":"^",c=a.contains?"":"$";let u=`${l}(?:${o})${c}`;return s.negated===!0&&(u=`(?:^(?!${u}).*$)`),u},t.basename=(o,{windows:s}={})=>{const a=o.split(s?/[\\/]/:"/"),l=a[a.length-1];return l===""?a[a.length-2]:l}})(FS)),FS}var YS,KR;function _ie(){if(KR)return YS;KR=1;const t=Wx(),{CHAR_ASTERISK:e,CHAR_AT:r,CHAR_BACKWARD_SLASH:n,CHAR_COMMA:i,CHAR_DOT:o,CHAR_EXCLAMATION_MARK:s,CHAR_FORWARD_SLASH:a,CHAR_LEFT_CURLY_BRACE:l,CHAR_LEFT_PARENTHESES:c,CHAR_LEFT_SQUARE_BRACKET:u,CHAR_PLUS:d,CHAR_QUESTION_MARK:f,CHAR_RIGHT_CURLY_BRACE:h,CHAR_RIGHT_PARENTHESES:y,CHAR_RIGHT_SQUARE_BRACKET:m}=Ux(),g=b=>b===a||b===n,v=b=>{b.isPrefix!==!0&&(b.depth=b.isGlobstar?1/0:1)};return YS=(b,S)=>{const x=S||{},w=b.length-1,C=x.parts===!0||x.scanToEnd===!0,k=[],R=[],N=[];let D=b,U=-1,B=0,G=0,H=!1,ne=!1,ce=!1,Z=!1,oe=!1,M=!1,j=!1,V=!1,Q=!1,$=!1,_=0,q,Y,ee={value:"",depth:0,isGlob:!1};const Oe=()=>U>=w,ge=()=>D.charCodeAt(U+1),W=()=>(q=Y,D.charCodeAt(++U));for(;U<w;){Y=W();let we;if(Y===n){j=ee.backslashes=!0,Y=W(),Y===l&&(M=!0);continue}if(M===!0||Y===l){for(_++;Oe()!==!0&&(Y=W());){if(Y===n){j=ee.backslashes=!0,W();continue}if(Y===l){_++;continue}if(M!==!0&&Y===o&&(Y=W())===o){if(H=ee.isBrace=!0,ce=ee.isGlob=!0,$=!0,C===!0)continue;break}if(M!==!0&&Y===i){if(H=ee.isBrace=!0,ce=ee.isGlob=!0,$=!0,C===!0)continue;break}if(Y===h&&(_--,_===0)){M=!1,H=ee.isBrace=!0,$=!0;break}}if(C===!0)continue;break}if(Y===a){if(k.push(U),R.push(ee),ee={value:"",depth:0,isGlob:!1},$===!0)continue;if(q===o&&U===B+1){B+=2;continue}G=U+1;continue}if(x.noext!==!0&&(Y===d||Y===r||Y===e||Y===f||Y===s)===!0&&ge()===c){if(ce=ee.isGlob=!0,Z=ee.isExtglob=!0,$=!0,Y===s&&U===B&&(Q=!0),C===!0){for(;Oe()!==!0&&(Y=W());){if(Y===n){j=ee.backslashes=!0,Y=W();continue}if(Y===y){ce=ee.isGlob=!0,$=!0;break}}continue}break}if(Y===e){if(q===e&&(oe=ee.isGlobstar=!0),ce=ee.isGlob=!0,$=!0,C===!0)continue;break}if(Y===f){if(ce=ee.isGlob=!0,$=!0,C===!0)continue;break}if(Y===u){for(;Oe()!==!0&&(we=W());){if(we===n){j=ee.backslashes=!0,W();continue}if(we===m){ne=ee.isBracket=!0,ce=ee.isGlob=!0,$=!0;break}}if(C===!0)continue;break}if(x.nonegate!==!0&&Y===s&&U===B){V=ee.negated=!0,B++;continue}if(x.noparen!==!0&&Y===c){if(ce=ee.isGlob=!0,C===!0){for(;Oe()!==!0&&(Y=W());){if(Y===c){j=ee.backslashes=!0,Y=W();continue}if(Y===y){$=!0;break}}continue}break}if(ce===!0){if($=!0,C===!0)continue;break}}x.noext===!0&&(Z=!1,ce=!1);let z=D,J="",te="";B>0&&(J=D.slice(0,B),D=D.slice(B),G-=B),z&&ce===!0&&G>0?(z=D.slice(0,G),te=D.slice(G)):ce===!0?(z="",te=D):z=D,z&&z!==""&&z!=="/"&&z!==D&&g(z.charCodeAt(z.length-1))&&(z=z.slice(0,-1)),x.unescape===!0&&(te&&(te=t.removeBackslashes(te)),z&&j===!0&&(z=t.removeBackslashes(z)));const ue={prefix:J,input:b,start:B,base:z,glob:te,isBrace:H,isBracket:ne,isGlob:ce,isExtglob:Z,isGlobstar:oe,negated:V,negatedExtglob:Q};if(x.tokens===!0&&(ue.maxDepth=0,g(Y)||R.push(ee),ue.tokens=R),x.parts===!0||x.tokens===!0){let we;for(let re=0;re<k.length;re++){const de=we?we+1:B,$e=k[re],fe=b.slice(de,$e);x.tokens&&(re===0&&B!==0?(R[re].isPrefix=!0,R[re].value=J):R[re].value=fe,v(R[re]),ue.maxDepth+=R[re].depth),(re!==0||fe!=="")&&N.push(fe),we=$e}if(we&&we+1<b.length){const re=b.slice(we+1);N.push(re),x.tokens&&(R[R.length-1].value=re,v(R[R.length-1]),ue.maxDepth+=R[R.length-1].depth)}ue.slashes=k,ue.parts=N}return ue},YS}var GS,e2;function Aie(){if(e2)return GS;e2=1;const t=Ux(),e=Wx(),{MAX_LENGTH:r,POSIX_REGEX_SOURCE:n,REGEX_NON_SPECIAL_CHARS:i,REGEX_SPECIAL_CHARS_BACKREF:o,REPLACEMENTS:s}=t,a=(u,d)=>{if(typeof d.expandRange=="function")return d.expandRange(...u,d);u.sort();const f=`[${u.join("-")}]`;try{new RegExp(f)}catch{return u.map(y=>e.escapeRegex(y)).join("..")}return f},l=(u,d)=>`Missing ${u}: "${d}" - use "\\\\${d}" to match literal characters`,c=(u,d)=>{if(typeof u!="string")throw new TypeError("Expected a string");u=s[u]||u;const f={...d},h=typeof f.maxLength=="number"?Math.min(r,f.maxLength):r;let y=u.length;if(y>h)throw new SyntaxError(`Input length: ${y}, exceeds maximum allowed length: ${h}`);const m={type:"bos",value:"",output:f.prepend||""},g=[m],v=f.capture?"":"?:",O=t.globChars(f.windows),b=t.extglobChars(O),{DOT_LITERAL:S,PLUS_LITERAL:x,SLASH_LITERAL:w,ONE_CHAR:C,DOTS_SLASH:k,NO_DOT:R,NO_DOT_SLASH:N,NO_DOTS_SLASH:D,QMARK:U,QMARK_NO_DOT:B,STAR:G,START_ANCHOR:H}=O,ne=de=>`(${v}(?:(?!${H}${de.dot?k:S}).)*?)`,ce=f.dot?"":R,Z=f.dot?U:B;let oe=f.bash===!0?ne(f):G;f.capture&&(oe=`(${oe})`),typeof f.noext=="boolean"&&(f.noextglob=f.noext);const M={input:u,index:-1,start:0,dot:f.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:g};u=e.removePrefix(u,M),y=u.length;const j=[],V=[],Q=[];let $=m,_;const q=()=>M.index===y-1,Y=M.peek=(de=1)=>u[M.index+de],ee=M.advance=()=>u[++M.index]||"",Oe=()=>u.slice(M.index+1),ge=(de="",$e=0)=>{M.consumed+=de,M.index+=$e},W=de=>{M.output+=de.output!=null?de.output:de.value,ge(de.value)},z=()=>{let de=1;for(;Y()==="!"&&(Y(2)!=="("||Y(3)==="?");)ee(),M.start++,de++;return de%2===0?!1:(M.negated=!0,M.start++,!0)},J=de=>{M[de]++,Q.push(de)},te=de=>{M[de]--,Q.pop()},ue=de=>{if($.type==="globstar"){const $e=M.braces>0&&(de.type==="comma"||de.type==="brace"),fe=de.extglob===!0||j.length&&(de.type==="pipe"||de.type==="paren");de.type!=="slash"&&de.type!=="paren"&&!$e&&!fe&&(M.output=M.output.slice(0,-$.output.length),$.type="star",$.value="*",$.output=oe,M.output+=$.output)}if(j.length&&de.type!=="paren"&&(j[j.length-1].inner+=de.value),(de.value||de.output)&&W(de),$&&$.type==="text"&&de.type==="text"){$.output=($.output||$.value)+de.value,$.value+=de.value;return}de.prev=$,g.push(de),$=de},we=(de,$e)=>{const fe={...b[$e],conditions:1,inner:""};fe.prev=$,fe.parens=M.parens,fe.output=M.output;const ye=(f.capture?"(":"")+fe.open;J("parens"),ue({type:de,value:$e,output:M.output?"":C}),ue({type:"paren",extglob:!0,value:ee(),output:ye}),j.push(fe)},re=de=>{let $e=de.close+(f.capture?")":""),fe;if(de.type==="negate"){let ye=oe;if(de.inner&&de.inner.length>1&&de.inner.includes("/")&&(ye=ne(f)),(ye!==oe||q()||/^\)+$/.test(Oe()))&&($e=de.close=`)$))${ye}`),de.inner.includes("*")&&(fe=Oe())&&/^\.[^\\/.]+$/.test(fe)){const ke=c(fe,{...d,fastpaths:!1}).output;$e=de.close=`)${ke})${ye})`}de.prev.type==="bos"&&(M.negatedExtglob=!0)}ue({type:"paren",extglob:!0,value:_,output:$e}),te("parens")};if(f.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(u)){let de=!1,$e=u.replace(o,(fe,ye,ke,me,ve,Ee)=>me==="\\"?(de=!0,fe):me==="?"?ye?ye+me+(ve?U.repeat(ve.length):""):Ee===0?Z+(ve?U.repeat(ve.length):""):U.repeat(ke.length):me==="."?S.repeat(ke.length):me==="*"?ye?ye+me+(ve?oe:""):oe:ye?fe:`\\${fe}`);return de===!0&&(f.unescape===!0?$e=$e.replace(/\\/g,""):$e=$e.replace(/\\+/g,fe=>fe.length%2===0?"\\\\":fe?"\\":"")),$e===u&&f.contains===!0?(M.output=u,M):(M.output=e.wrapOutput($e,M,d),M)}for(;!q();){if(_=ee(),_==="\0")continue;if(_==="\\"){const fe=Y();if(fe==="/"&&f.bash!==!0||fe==="."||fe===";")continue;if(!fe){_+="\\",ue({type:"text",value:_});continue}const ye=/^\\+/.exec(Oe());let ke=0;if(ye&&ye[0].length>2&&(ke=ye[0].length,M.index+=ke,ke%2!==0&&(_+="\\")),f.unescape===!0?_=ee():_+=ee(),M.brackets===0){ue({type:"text",value:_});continue}}if(M.brackets>0&&(_!=="]"||$.value==="["||$.value==="[^")){if(f.posix!==!1&&_===":"){const fe=$.value.slice(1);if(fe.includes("[")&&($.posix=!0,fe.includes(":"))){const ye=$.value.lastIndexOf("["),ke=$.value.slice(0,ye),me=$.value.slice(ye+2),ve=n[me];if(ve){$.value=ke+ve,M.backtrack=!0,ee(),!m.output&&g.indexOf($)===1&&(m.output=C);continue}}}(_==="["&&Y()!==":"||_==="-"&&Y()==="]")&&(_=`\\${_}`),_==="]"&&($.value==="["||$.value==="[^")&&(_=`\\${_}`),f.posix===!0&&_==="!"&&$.value==="["&&(_="^"),$.value+=_,W({value:_});continue}if(M.quotes===1&&_!=='"'){_=e.escapeRegex(_),$.value+=_,W({value:_});continue}if(_==='"'){M.quotes=M.quotes===1?0:1,f.keepQuotes===!0&&ue({type:"text",value:_});continue}if(_==="("){J("parens"),ue({type:"paren",value:_});continue}if(_===")"){if(M.parens===0&&f.strictBrackets===!0)throw new SyntaxError(l("opening","("));const fe=j[j.length-1];if(fe&&M.parens===fe.parens+1){re(j.pop());continue}ue({type:"paren",value:_,output:M.parens?")":"\\)"}),te("parens");continue}if(_==="["){if(f.nobracket===!0||!Oe().includes("]")){if(f.nobracket!==!0&&f.strictBrackets===!0)throw new SyntaxError(l("closing","]"));_=`\\${_}`}else J("brackets");ue({type:"bracket",value:_});continue}if(_==="]"){if(f.nobracket===!0||$&&$.type==="bracket"&&$.value.length===1){ue({type:"text",value:_,output:`\\${_}`});continue}if(M.brackets===0){if(f.strictBrackets===!0)throw new SyntaxError(l("opening","["));ue({type:"text",value:_,output:`\\${_}`});continue}te("brackets");const fe=$.value.slice(1);if($.posix!==!0&&fe[0]==="^"&&!fe.includes("/")&&(_=`/${_}`),$.value+=_,W({value:_}),f.literalBrackets===!1||e.hasRegexChars(fe))continue;const ye=e.escapeRegex($.value);if(M.output=M.output.slice(0,-$.value.length),f.literalBrackets===!0){M.output+=ye,$.value=ye;continue}$.value=`(${v}${ye}|${$.value})`,M.output+=$.value;continue}if(_==="{"&&f.nobrace!==!0){J("braces");const fe={type:"brace",value:_,output:"(",outputIndex:M.output.length,tokensIndex:M.tokens.length};V.push(fe),ue(fe);continue}if(_==="}"){const fe=V[V.length-1];if(f.nobrace===!0||!fe){ue({type:"text",value:_,output:_});continue}let ye=")";if(fe.dots===!0){const ke=g.slice(),me=[];for(let ve=ke.length-1;ve>=0&&(g.pop(),ke[ve].type!=="brace");ve--)ke[ve].type!=="dots"&&me.unshift(ke[ve].value);ye=a(me,f),M.backtrack=!0}if(fe.comma!==!0&&fe.dots!==!0){const ke=M.output.slice(0,fe.outputIndex),me=M.tokens.slice(fe.tokensIndex);fe.value=fe.output="\\{",_=ye="\\}",M.output=ke;for(const ve of me)M.output+=ve.output||ve.value}ue({type:"brace",value:_,output:ye}),te("braces"),V.pop();continue}if(_==="|"){j.length>0&&j[j.length-1].conditions++,ue({type:"text",value:_});continue}if(_===","){let fe=_;const ye=V[V.length-1];ye&&Q[Q.length-1]==="braces"&&(ye.comma=!0,fe="|"),ue({type:"comma",value:_,output:fe});continue}if(_==="/"){if($.type==="dot"&&M.index===M.start+1){M.start=M.index+1,M.consumed="",M.output="",g.pop(),$=m;continue}ue({type:"slash",value:_,output:w});continue}if(_==="."){if(M.braces>0&&$.type==="dot"){$.value==="."&&($.output=S);const fe=V[V.length-1];$.type="dots",$.output+=_,$.value+=_,fe.dots=!0;continue}if(M.braces+M.parens===0&&$.type!=="bos"&&$.type!=="slash"){ue({type:"text",value:_,output:S});continue}ue({type:"dot",value:_,output:S});continue}if(_==="?"){if(!($&&$.value==="(")&&f.noextglob!==!0&&Y()==="("&&Y(2)!=="?"){we("qmark",_);continue}if($&&$.type==="paren"){const ye=Y();let ke=_;($.value==="("&&!/[!=<:]/.test(ye)||ye==="<"&&!/<([!=]|\w+>)/.test(Oe()))&&(ke=`\\${_}`),ue({type:"text",value:_,output:ke});continue}if(f.dot!==!0&&($.type==="slash"||$.type==="bos")){ue({type:"qmark",value:_,output:B});continue}ue({type:"qmark",value:_,output:U});continue}if(_==="!"){if(f.noextglob!==!0&&Y()==="("&&(Y(2)!=="?"||!/[!=<:]/.test(Y(3)))){we("negate",_);continue}if(f.nonegate!==!0&&M.index===0){z();continue}}if(_==="+"){if(f.noextglob!==!0&&Y()==="("&&Y(2)!=="?"){we("plus",_);continue}if($&&$.value==="("||f.regex===!1){ue({type:"plus",value:_,output:x});continue}if($&&($.type==="bracket"||$.type==="paren"||$.type==="brace")||M.parens>0){ue({type:"plus",value:_});continue}ue({type:"plus",value:x});continue}if(_==="@"){if(f.noextglob!==!0&&Y()==="("&&Y(2)!=="?"){ue({type:"at",extglob:!0,value:_,output:""});continue}ue({type:"text",value:_});continue}if(_!=="*"){(_==="$"||_==="^")&&(_=`\\${_}`);const fe=i.exec(Oe());fe&&(_+=fe[0],M.index+=fe[0].length),ue({type:"text",value:_});continue}if($&&($.type==="globstar"||$.star===!0)){$.type="star",$.star=!0,$.value+=_,$.output=oe,M.backtrack=!0,M.globstar=!0,ge(_);continue}let de=Oe();if(f.noextglob!==!0&&/^\([^?]/.test(de)){we("star",_);continue}if($.type==="star"){if(f.noglobstar===!0){ge(_);continue}const fe=$.prev,ye=fe.prev,ke=fe.type==="slash"||fe.type==="bos",me=ye&&(ye.type==="star"||ye.type==="globstar");if(f.bash===!0&&(!ke||de[0]&&de[0]!=="/")){ue({type:"star",value:_,output:""});continue}const ve=M.braces>0&&(fe.type==="comma"||fe.type==="brace"),Ee=j.length&&(fe.type==="pipe"||fe.type==="paren");if(!ke&&fe.type!=="paren"&&!ve&&!Ee){ue({type:"star",value:_,output:""});continue}for(;de.slice(0,3)==="/**";){const qe=u[M.index+4];if(qe&&qe!=="/")break;de=de.slice(3),ge("/**",3)}if(fe.type==="bos"&&q()){$.type="globstar",$.value+=_,$.output=ne(f),M.output=$.output,M.globstar=!0,ge(_);continue}if(fe.type==="slash"&&fe.prev.type!=="bos"&&!me&&q()){M.output=M.output.slice(0,-(fe.output+$.output).length),fe.output=`(?:${fe.output}`,$.type="globstar",$.output=ne(f)+(f.strictSlashes?")":"|$)"),$.value+=_,M.globstar=!0,M.output+=fe.output+$.output,ge(_);continue}if(fe.type==="slash"&&fe.prev.type!=="bos"&&de[0]==="/"){const qe=de[1]!==void 0?"|$":"";M.output=M.output.slice(0,-(fe.output+$.output).length),fe.output=`(?:${fe.output}`,$.type="globstar",$.output=`${ne(f)}${w}|${w}${qe})`,$.value+=_,M.output+=fe.output+$.output,M.globstar=!0,ge(_+ee()),ue({type:"slash",value:"/",output:""});continue}if(fe.type==="bos"&&de[0]==="/"){$.type="globstar",$.value+=_,$.output=`(?:^|${w}|${ne(f)}${w})`,M.output=$.output,M.globstar=!0,ge(_+ee()),ue({type:"slash",value:"/",output:""});continue}M.output=M.output.slice(0,-$.output.length),$.type="globstar",$.output=ne(f),$.value+=_,M.output+=$.output,M.globstar=!0,ge(_);continue}const $e={type:"star",value:_,output:oe};if(f.bash===!0){$e.output=".*?",($.type==="bos"||$.type==="slash")&&($e.output=ce+$e.output),ue($e);continue}if($&&($.type==="bracket"||$.type==="paren")&&f.regex===!0){$e.output=_,ue($e);continue}(M.index===M.start||$.type==="slash"||$.type==="dot")&&($.type==="dot"?(M.output+=N,$.output+=N):f.dot===!0?(M.output+=D,$.output+=D):(M.output+=ce,$.output+=ce),Y()!=="*"&&(M.output+=C,$.output+=C)),ue($e)}for(;M.brackets>0;){if(f.strictBrackets===!0)throw new SyntaxError(l("closing","]"));M.output=e.escapeLast(M.output,"["),te("brackets")}for(;M.parens>0;){if(f.strictBrackets===!0)throw new SyntaxError(l("closing",")"));M.output=e.escapeLast(M.output,"("),te("parens")}for(;M.braces>0;){if(f.strictBrackets===!0)throw new SyntaxError(l("closing","}"));M.output=e.escapeLast(M.output,"{"),te("braces")}if(f.strictSlashes!==!0&&($.type==="star"||$.type==="bracket")&&ue({type:"maybe_slash",value:"",output:`${w}?`}),M.backtrack===!0){M.output="";for(const de of M.tokens)M.output+=de.output!=null?de.output:de.value,de.suffix&&(M.output+=de.suffix)}return M};return c.fastpaths=(u,d)=>{const f={...d},h=typeof f.maxLength=="number"?Math.min(r,f.maxLength):r,y=u.length;if(y>h)throw new SyntaxError(`Input length: ${y}, exceeds maximum allowed length: ${h}`);u=s[u]||u;const{DOT_LITERAL:m,SLASH_LITERAL:g,ONE_CHAR:v,DOTS_SLASH:O,NO_DOT:b,NO_DOTS:S,NO_DOTS_SLASH:x,STAR:w,START_ANCHOR:C}=t.globChars(f.windows),k=f.dot?S:b,R=f.dot?x:b,N=f.capture?"":"?:",D={negated:!1,prefix:""};let U=f.bash===!0?".*?":w;f.capture&&(U=`(${U})`);const B=ce=>ce.noglobstar===!0?U:`(${N}(?:(?!${C}${ce.dot?O:m}).)*?)`,G=ce=>{switch(ce){case"*":return`${k}${v}${U}`;case".*":return`${m}${v}${U}`;case"*.*":return`${k}${U}${m}${v}${U}`;case"*/*":return`${k}${U}${g}${v}${R}${U}`;case"**":return k+B(f);case"**/*":return`(?:${k}${B(f)}${g})?${R}${v}${U}`;case"**/*.*":return`(?:${k}${B(f)}${g})?${R}${U}${m}${v}${U}`;case"**/.*":return`(?:${k}${B(f)}${g})?${m}${v}${U}`;default:{const Z=/^(.*?)\.(\w+)$/.exec(ce);if(!Z)return;const oe=G(Z[1]);return oe?oe+m+Z[2]:void 0}}},H=e.removePrefix(u,D);let ne=G(H);return ne&&f.strictSlashes!==!0&&(ne+=`${g}?`),ne},GS=c,GS}var HS,t2;function Iie(){if(t2)return HS;t2=1;const t=_ie(),e=Aie(),r=Wx(),n=Ux(),i=s=>s&&typeof s=="object"&&!Array.isArray(s),o=(s,a,l=!1)=>{if(Array.isArray(s)){const g=s.map(O=>o(O,a,l));return O=>{for(const b of g){const S=b(O);if(S)return S}return!1}}const c=i(s)&&s.tokens&&s.input;if(s===""||typeof s!="string"&&!c)throw new TypeError("Expected pattern to be a non-empty string");const u=a||{},d=u.windows,f=c?o.compileRe(s,a):o.makeRe(s,a,!1,!0),h=f.state;delete f.state;let y=()=>!1;if(u.ignore){const g={...a,ignore:null,onMatch:null,onResult:null};y=o(u.ignore,g,l)}const m=(g,v=!1)=>{const{isMatch:O,match:b,output:S}=o.test(g,f,a,{glob:s,posix:d}),x={glob:s,state:h,regex:f,posix:d,input:g,output:S,match:b,isMatch:O};return typeof u.onResult=="function"&&u.onResult(x),O===!1?(x.isMatch=!1,v?x:!1):y(g)?(typeof u.onIgnore=="function"&&u.onIgnore(x),x.isMatch=!1,v?x:!1):(typeof u.onMatch=="function"&&u.onMatch(x),v?x:!0)};return l&&(m.state=h),m};return o.test=(s,a,l,{glob:c,posix:u}={})=>{if(typeof s!="string")throw new TypeError("Expected input to be a string");if(s==="")return{isMatch:!1,output:""};const d=l||{},f=d.format||(u?r.toPosixSlashes:null);let h=s===c,y=h&&f?f(s):s;return h===!1&&(y=f?f(s):s,h=y===c),(h===!1||d.capture===!0)&&(d.matchBase===!0||d.basename===!0?h=o.matchBase(s,a,l,u):h=a.exec(y)),{isMatch:!!h,match:h,output:y}},o.matchBase=(s,a,l)=>(a instanceof RegExp?a:o.makeRe(a,l)).test(r.basename(s)),o.isMatch=(s,a,l)=>o(a,l)(s),o.parse=(s,a)=>Array.isArray(s)?s.map(l=>o.parse(l,a)):e(s,{...a,fastpaths:!1}),o.scan=(s,a)=>t(s,a),o.compileRe=(s,a,l=!1,c=!1)=>{if(l===!0)return s.output;const u=a||{},d=u.contains?"":"^",f=u.contains?"":"$";let h=`${d}(?:${s.output})${f}`;s&&s.negated===!0&&(h=`^(?!${h}).*$`);const y=o.toRegex(h,a);return c===!0&&(y.state=s),y},o.makeRe=(s,a={},l=!1,c=!1)=>{if(!s||typeof s!="string")throw new TypeError("Expected a non-empty string");let u={negated:!1,fastpaths:!0};return a.fastpaths!==!1&&(s[0]==="."||s[0]==="*")&&(u.output=e.fastpaths(s,a)),u.output||(u=e(s,a)),o.compileRe(u,a,l,c)},o.toRegex=(s,a)=>{try{const l=a||{};return new RegExp(s,l.flags||(l.nocase?"i":""))}catch(l){if(a&&a.debug===!0)throw l;return/$^/}},o.constants=n,HS=o,HS}var JS,r2;function Rie(){if(r2)return JS;r2=1;const t=Iie(),e=Wx();function r(n,i,o=!1){return i&&(i.windows===null||i.windows===void 0)&&(i={...i,windows:e.isWindows()}),t(n,i,o)}return Object.assign(r,t),JS=r,JS}var jie=Rie();const hi=typeof window<"u"||typeof process>"u"||process?.platform==="browser",MT=hi?{}:process.env||{};async function f7(t,e){const r={};for(const i of e.headers)Qie(t,i.matches)&&(r[i.name]=i.envVariable!==void 0?MT[i.envVariable]||"":i.value);const n=await(e.customFetch||fetch)(t,{headers:r});if(!n.ok)throw new Error(`Failed to load ${t}: ${n.status} ${n.statusText}`);return{body:await n.text(),mimeType:n.headers.get("content-type")}}function Qie(t,e){return e.match(/^https?:\/\//)||(t=t.replace(/^https?:\/\//,"")),jie.isMatch(t,e)}function Die(t){return/^\\\\\?\\/.test(t)?t:t.replace(/\\/g,"/")}function et(t){return{name:`${t}List`,properties:{},items:t}}function Ye(t){return{name:`${t}Map`,properties:{},additionalProperties:()=>t}}const Lc={name:"SpecExtension",properties:{},additionalProperties:{resolvable:!0}};function qT(t,e={}){const r={};for(const o of Object.keys(t))r[o]={...t[o],name:o};for(const o of Object.values(r))n(o);return r.SpecExtension=Lc,r;function n(o){if(o.additionalProperties&&(o.additionalProperties=i(o.additionalProperties)),o.items&&(o.items=i(o.items)),o.properties){const s={};for(const[a,l]of Object.entries(o.properties))s[a]=i(l),e.doNotResolveExamples&&l&&l.isExample&&(s[a]={...l,resolvable:!1});o.properties=s}}function i(o){if(typeof o=="string"){if(!r[o])throw new Error(`Unknown type name found: ${o}`);return r[o]}else return typeof o=="function"?(s,a)=>i(o(s,a)):o&&o.name?(o={...o},n(o),o):o&&o.directResolveAs?{...o,directResolveAs:i(o.directResolveAs)}:o}}function Vc(t){return typeof t?.name=="string"}const Nie=/^[0-9][0-9Xx]{2}$/,Mie={properties:{swagger:{type:"string"},info:"Info",host:{type:"string"},basePath:{type:"string"},schemes:{type:"array",items:{type:"string"}},consumes:{type:"array",items:{type:"string"}},produces:{type:"array",items:{type:"string"}},paths:"Paths",definitions:"NamedSchemas",parameters:"NamedParameters",responses:"NamedResponses",securityDefinitions:"NamedSecuritySchemes",security:"SecurityRequirementList",tags:"TagList",externalDocs:"ExternalDocs","x-servers":"XServerList","x-tagGroups":"TagGroups","x-ignoredHeaderParameters":{type:"array",items:{type:"string"}}},required:["swagger","paths","info"],extensionsPrefix:"x-"},qie={properties:{title:{type:"string"},description:{type:"string"},termsOfService:{type:"string"},contact:"Contact",license:"License",version:{type:"string"},"x-logo":"Logo"},required:["title","version"],extensionsPrefix:"x-"},zie={properties:{url:{type:"string"},altText:{type:"string"},backgroundColor:{type:"string"},href:{type:"string"}},extensionsPrefix:"x-"},Lie={properties:{name:{type:"string"},url:{type:"string"},email:{type:"string"}},extensionsPrefix:"x-"},Vie={properties:{name:{type:"string"},url:{type:"string"}},required:["name"],extensionsPrefix:"x-"},Xie={properties:{},additionalProperties:(t,e)=>e.startsWith("/")?"PathItem":void 0},Uie={properties:{$ref:{type:"string"},parameters:"ParameterList",get:"Operation",put:"Operation",post:"Operation",delete:"Operation",options:"Operation",head:"Operation",patch:"Operation"},extensionsPrefix:"x-"},Wie={properties:{tags:{type:"array",items:{type:"string"}},summary:{type:"string"},description:{type:"string"},externalDocs:"ExternalDocs",operationId:{type:"string"},consumes:{type:"array",items:{type:"string"}},produces:{type:"array",items:{type:"string"}},parameters:"ParameterList",responses:"Responses",schemes:{type:"array",items:{type:"string"}},deprecated:{type:"boolean"},security:"SecurityRequirementList","x-codeSamples":"XCodeSampleList","x-code-samples":"XCodeSampleList","x-hideTryItPanel":{type:"boolean"}},required:["responses"],extensionsPrefix:"x-"},Bie={properties:{lang:{type:"string"},label:{type:"string"},source:{type:"string"}}},Fie={properties:{url:{type:"string"},description:{type:"string"}},required:["url"]},Zie={properties:{description:{type:"string"},url:{type:"string"}},required:["url"],extensionsPrefix:"x-"},Yie={properties:{name:{type:"string"},in:{type:"string",enum:["query","header","path","formData","body"]},description:{type:"string"},required:{type:"boolean"},schema:"Schema",type:{type:"string",enum:["string","number","integer","boolean","array","file"]},format:{type:"string"},allowEmptyValue:{type:"boolean"},items:"ParameterItems",collectionFormat:{type:"string",enum:["csv","ssv","tsv","pipes","multi"]},default:null,maximum:{type:"integer"},exclusiveMaximum:{type:"boolean"},minimum:{type:"integer"},exclusiveMinimum:{type:"boolean"},maxLength:{type:"integer"},minLength:{type:"integer"},pattern:{type:"string"},maxItems:{type:"integer"},minItems:{type:"integer"},uniqueItems:{type:"boolean"},enum:{type:"array"},multipleOf:{type:"number"},"x-example":{},"x-examples":"ExamplesMap"},required(t){return!t||!t.in?["name","in"]:t.in==="body"?["name","in","schema"]:t.type==="array"?["name","in","type","items"]:["name","in","type"]},extensionsPrefix:"x-"},Gie={properties:{type:{type:"string",enum:["string","number","integer","boolean","array"]},format:{type:"string"},items:"ParameterItems",collectionFormat:{type:"string",enum:["csv","ssv","tsv","pipes","multi"]},default:null,maximum:{type:"integer"},exclusiveMaximum:{type:"boolean"},minimum:{type:"integer"},exclusiveMinimum:{type:"boolean"},maxLength:{type:"integer"},minLength:{type:"integer"},pattern:{type:"string"},maxItems:{type:"integer"},minItems:{type:"integer"},uniqueItems:{type:"boolean"},enum:{type:"array"},multipleOf:{type:"number"}},required(t){return t&&t.type==="array"?["type","items"]:["type"]},extensionsPrefix:"x-"},Hie={properties:{default:"Response"},additionalProperties:(t,e)=>Nie.test(e)?"Response":void 0},Jie={properties:{description:{type:"string"},schema:"Schema",headers:Ye("Header"),examples:"Examples","x-summary":{type:"string"}},required:["description"],extensionsPrefix:"x-"},Kie={properties:{},additionalProperties:{isExample:!0}},eoe={properties:{description:{type:"string"},type:{type:"string",enum:["string","number","integer","boolean","array"]},format:{type:"string"},items:"ParameterItems",collectionFormat:{type:"string",enum:["csv","ssv","tsv","pipes","multi"]},default:null,maximum:{type:"integer"},exclusiveMaximum:{type:"boolean"},minimum:{type:"integer"},exclusiveMinimum:{type:"boolean"},maxLength:{type:"integer"},minLength:{type:"integer"},pattern:{type:"string"},maxItems:{type:"integer"},minItems:{type:"integer"},uniqueItems:{type:"boolean"},enum:{type:"array"},multipleOf:{type:"number"}},required(t){return t&&t.type==="array"?["type","items"]:["type"]},extensionsPrefix:"x-"},toe={properties:{name:{type:"string"},description:{type:"string"},externalDocs:"ExternalDocs","x-traitTag":{type:"boolean"},"x-displayName":{type:"string"}},required:["name"],extensionsPrefix:"x-"},roe={properties:{name:{type:"string"},tags:{type:"array",items:{type:"string"}}}},noe={properties:{format:{type:"string"},title:{type:"string"},description:{type:"string"},default:null,multipleOf:{type:"number"},maximum:{type:"number"},minimum:{type:"number"},exclusiveMaximum:{type:"boolean"},exclusiveMinimum:{type:"boolean"},maxLength:{type:"number"},minLength:{type:"number"},pattern:{type:"string"},maxItems:{type:"number"},minItems:{type:"number"},uniqueItems:{type:"boolean"},maxProperties:{type:"number"},minProperties:{type:"number"},required:{type:"array",items:{type:"string"}},enum:{type:"array"},type:{type:"string",enum:["object","array","string","number","integer","boolean","null"]},items:t=>Array.isArray(t)?et("Schema"):"Schema",allOf:et("Schema"),properties:"SchemaProperties",additionalProperties:t=>typeof t=="boolean"?{type:"boolean"}:"Schema",discriminator:{type:"string"},readOnly:{type:"boolean"},xml:"Xml",externalDocs:"ExternalDocs",example:{isExample:!0},"x-tags":{type:"array",items:{type:"string"}},"x-nullable":{type:"boolean"},"x-extendedDiscriminator":{type:"string"},"x-additionalPropertiesName":{type:"string"},"x-explicitMappingOnly":{type:"boolean"},"x-enumDescriptions":"EnumDescriptions"},extensionsPrefix:"x-"},ioe={properties:{},additionalProperties:{type:"string"}},ooe={properties:{},additionalProperties:"Schema"},soe={properties:{name:{type:"string"},namespace:{type:"string"},prefix:{type:"string"},attribute:{type:"boolean"},wrapped:{type:"boolean"}},extensionsPrefix:"x-"},aoe={properties:{type:{enum:["basic","apiKey","oauth2"]},description:{type:"string"},name:{type:"string"},in:{type:"string",enum:["query","header"]},flow:{enum:["implicit","password","application","accessCode"]},authorizationUrl:{type:"string"},tokenUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},"x-defaultClientId":{type:"string"}},required(t){switch(t?.type){case"apiKey":return["type","name","in"];case"oauth2":switch(t?.flow){case"implicit":return["type","flow","authorizationUrl","scopes"];case"accessCode":return["type","flow","authorizationUrl","tokenUrl","scopes"];case"application":case"password":return["type","flow","tokenUrl","scopes"];default:return["type","flow","scopes"]}default:return["type"]}},allowed(t){switch(t?.type){case"basic":return["type","description"];case"apiKey":return["type","name","in","description"];case"oauth2":switch(t?.flow){case"implicit":return["type","flow","authorizationUrl","description","scopes"];case"accessCode":return["type","flow","authorizationUrl","tokenUrl","description","scopes"];case"application":case"password":return["type","flow","tokenUrl","description","scopes"];default:return["type","flow","tokenUrl","authorizationUrl","description","scopes"]}default:return["type","description"]}},extensionsPrefix:"x-"},loe={properties:{},additionalProperties:{type:"array",items:{type:"string"}}},coe={properties:{value:{isExample:!0},summary:{type:"string"},description:{type:"string"},externalValue:{type:"string"}},extensionsPrefix:"x-"},uoe={Root:Mie,Tag:toe,TagList:et("Tag"),TagGroups:et("TagGroup"),TagGroup:roe,ExternalDocs:Zie,Example:coe,ExamplesMap:Ye("Example"),EnumDescriptions:ioe,SecurityRequirement:loe,SecurityRequirementList:et("SecurityRequirement"),Info:qie,Contact:Lie,License:Vie,Logo:zie,Paths:Xie,PathItem:Uie,Parameter:Yie,ParameterItems:Gie,ParameterList:et("Parameter"),Operation:Wie,Examples:Kie,Header:eoe,Responses:Hie,Response:Jie,Schema:noe,Xml:soe,SchemaProperties:ooe,NamedSchemas:Ye("Schema"),NamedResponses:Ye("Response"),NamedParameters:Ye("Parameter"),NamedSecuritySchemes:Ye("SecurityScheme"),SecurityScheme:aoe,XCodeSample:Bie,XCodeSampleList:et("XCodeSample"),XServerList:et("XServer"),XServer:Fie};function ad(t,e){return t===""&&(t="#/"),t[t.length-1]==="/"?t+e:t+"/"+e}function Xr(t){return xt(t)&&typeof t.$ref=="string"}function p7(t){return xt(t)&&typeof t.externalValue=="string"}let Pv=class h7{constructor(e,r){this.source=e,this.pointer=r}child(e){return new h7(this.source,ad(this.pointer,(Array.isArray(e)?e:[e]).map(sh).join("/")))}key(){return{...this,reportOnKey:!0}}get absolutePointer(){return this.source.absoluteRef+(this.pointer==="#/"?"":this.pointer)}};function doe(t){const e=t.replace(/~1/g,"/").replace(/~0/g,"~");try{return decodeURIComponent(e)}catch{return e}}function sh(t){return typeof t=="number"?t:t.replaceAll("~","~0").replaceAll("/","~1")}function foe(t){const[e,r=""]=t.split("#/");return{uri:(e.endsWith("#")?e.slice(0,-1):e)||null,pointer:m7(r)}}function m7(t){return t.split("/").map(doe).filter(oo)}function poe(t){const e=t.split(/[\/\\]/);return e[e.length-1].replace(/\.[^.]+$/,"")}function on(t){return t.startsWith("http://")||t.startsWith("https://")}function g7(t){return t.startsWith("#")||t.startsWith("https://")||t.startsWith("http://")||t.startsWith("./")||t.startsWith("../")||t.indexOf("/")>-1}function hoe(t){return/^#[A-Za-z][A-Za-z0-9\-_:.]*$/.test(t)}function v$(t,e,r){if(!xt(e.node))r.parent[r.key]=e.node;else{delete t.$ref;const n=Object.assign({},e.node,t);Object.assign(t,n)}}const moe=/^[0-9][0-9Xx]{2}$/,goe={properties:{openapi:null,info:"Info",servers:"ServerList",security:"SecurityRequirementList",tags:"TagList",externalDocs:"ExternalDocs",paths:"Paths",components:"Components","x-webhooks":"WebhooksMap","x-tagGroups":"TagGroups","x-ignoredHeaderParameters":{type:"array",items:{type:"string"}}},required:["openapi","paths","info"],extensionsPrefix:"x-"},yoe={properties:{name:{type:"string"},description:{type:"string"},externalDocs:"ExternalDocs","x-traitTag":{type:"boolean"},"x-displayName":{type:"string"}},required:["name"],extensionsPrefix:"x-"},Ooe={properties:{name:{type:"string"},tags:{type:"array",items:{type:"string"}}},extensionsPrefix:"x-"},voe={properties:{description:{type:"string"},url:{type:"string"}},required:["url"],extensionsPrefix:"x-"},boe={properties:{url:{type:"string"},description:{type:"string"},variables:"ServerVariablesMap"},required:["url"],extensionsPrefix:"x-"},xoe={properties:{enum:{type:"array",items:{type:"string"}},default:{type:"string"},description:{type:"string"}},required:["default"],extensionsPrefix:"x-"},Soe={properties:{},additionalProperties:{type:"array",items:{type:"string"}}},woe={properties:{title:{type:"string"},version:{type:"string"},description:{type:"string"},termsOfService:{type:"string"},contact:"Contact",license:"License","x-logo":"Logo"},required:["title","version"],extensionsPrefix:"x-"},Poe={properties:{url:{type:"string"},altText:{type:"string"},backgroundColor:{type:"string"},href:{type:"string"}}},Coe={properties:{name:{type:"string"},url:{type:"string"},email:{type:"string"}},extensionsPrefix:"x-"},$oe={properties:{name:{type:"string"},url:{type:"string"}},required:["name"],extensionsPrefix:"x-"},koe={properties:{},additionalProperties:(t,e)=>e.startsWith("/")?"PathItem":void 0},Eoe={properties:{},additionalProperties:()=>"PathItem"},Toe={properties:{$ref:{type:"string"},servers:"ServerList",parameters:"ParameterList",summary:{type:"string"},description:{type:"string"},get:"Operation",put:"Operation",post:"Operation",delete:"Operation",options:"Operation",head:"Operation",patch:"Operation",trace:"Operation"},extensionsPrefix:"x-"},_oe={properties:{name:{type:"string"},in:{enum:["query","header","path","cookie"]},description:{type:"string"},required:{type:"boolean"},deprecated:{type:"boolean"},allowEmptyValue:{type:"boolean"},style:{enum:["form","simple","label","matrix","spaceDelimited","pipeDelimited","deepObject"]},explode:{type:"boolean"},allowReserved:{type:"boolean"},schema:"Schema",example:{isExample:!0},examples:"ExamplesMap",content:"MediaTypesMap"},required:["name","in"],requiredOneOf:["schema","content"],extensionsPrefix:"x-"},Aoe={properties:{tags:{type:"array",items:{type:"string"}},summary:{type:"string"},description:{type:"string"},externalDocs:"ExternalDocs",operationId:{type:"string"},parameters:"ParameterList",security:"SecurityRequirementList",servers:"ServerList",requestBody:"RequestBody",responses:"Responses",deprecated:{type:"boolean"},callbacks:"CallbacksMap","x-codeSamples":"XCodeSampleList","x-code-samples":"XCodeSampleList","x-hideTryItPanel":{type:"boolean"}},required:["responses"],extensionsPrefix:"x-"},Ioe={properties:{lang:{type:"string"},label:{type:"string"},source:{type:"string"}}},Roe={properties:{description:{type:"string"},required:{type:"boolean"},content:"MediaTypesMap"},required:["content"],extensionsPrefix:"x-"},joe={properties:{},additionalProperties:"MediaType"},Qoe={properties:{schema:"Schema",example:{isExample:!0},examples:"ExamplesMap",encoding:"EncodingMap"},extensionsPrefix:"x-"},Doe={properties:{value:{resolvable:!1},summary:{type:"string"},description:{type:"string"},externalValue:{type:"string"}},extensionsPrefix:"x-"},Noe={properties:{contentType:{type:"string"},headers:"HeadersMap",style:{enum:["form","simple","label","matrix","spaceDelimited","pipeDelimited","deepObject"]},explode:{type:"boolean"},allowReserved:{type:"boolean"}},extensionsPrefix:"x-"},Moe={properties:{},additionalProperties:{type:"string"}},qoe={properties:{description:{type:"string"},required:{type:"boolean"},deprecated:{type:"boolean"},allowEmptyValue:{type:"boolean"},style:{enum:["form","simple","label","matrix","spaceDelimited","pipeDelimited","deepObject"]},explode:{type:"boolean"},allowReserved:{type:"boolean"},schema:"Schema",example:{isExample:!0},examples:"ExamplesMap",content:"MediaTypesMap"},requiredOneOf:["schema","content"],extensionsPrefix:"x-"},zoe={properties:{default:"Response"},additionalProperties:(t,e)=>moe.test(e)?"Response":void 0},Loe={properties:{description:{type:"string"},headers:"HeadersMap",content:"MediaTypesMap",links:"LinksMap","x-summary":{type:"string"}},required:["description"],extensionsPrefix:"x-"},Voe={properties:{operationRef:{type:"string"},operationId:{type:"string"},parameters:null,requestBody:null,description:{type:"string"},server:"Server"},extensionsPrefix:"x-"},Xoe={properties:{externalDocs:"ExternalDocs",discriminator:"Discriminator",title:{type:"string"},multipleOf:{type:"number",minimum:0},maximum:{type:"number"},minimum:{type:"number"},exclusiveMaximum:{type:"boolean"},exclusiveMinimum:{type:"boolean"},maxLength:{type:"integer",minimum:0},minLength:{type:"integer",minimum:0},pattern:{type:"string"},maxItems:{type:"integer",minimum:0},minItems:{type:"integer",minimum:0},uniqueItems:{type:"boolean"},maxProperties:{type:"integer",minimum:0},minProperties:{type:"integer",minimum:0},required:{type:"array",items:{type:"string"}},enum:{type:"array"},type:{enum:["object","array","string","number","integer","boolean"]},allOf:et("Schema"),anyOf:et("Schema"),oneOf:et("Schema"),not:"Schema",properties:"SchemaProperties",items:t=>Array.isArray(t)?et("Schema"):"Schema",additionalProperties:t=>typeof t=="boolean"?{type:"boolean"}:"Schema",description:{type:"string"},format:{type:"string"},default:null,nullable:{type:"boolean"},readOnly:{type:"boolean"},writeOnly:{type:"boolean"},xml:"Xml",example:{isExample:!0},deprecated:{type:"boolean"},"x-tags":{type:"array",items:{type:"string"}},"x-additionalPropertiesName":{type:"string"},"x-explicitMappingOnly":{type:"boolean"}},extensionsPrefix:"x-"},Uoe={properties:{name:{type:"string"},namespace:{type:"string"},prefix:{type:"string"},attribute:{type:"boolean"},wrapped:{type:"boolean"}},extensionsPrefix:"x-"},Woe={properties:{},additionalProperties:"Schema"},Boe={properties:{},additionalProperties:t=>g7(t)?{type:"string",directResolveAs:"Schema"}:{type:"string"}},Foe={properties:{propertyName:{type:"string"},mapping:"DiscriminatorMapping"},required:["propertyName"],extensionsPrefix:"x-"},Zoe={properties:{parameters:"NamedParameters",schemas:"NamedSchemas",responses:"NamedResponses",examples:"NamedExamples",requestBodies:"NamedRequestBodies",headers:"NamedHeaders",securitySchemes:"NamedSecuritySchemes",links:"NamedLinks",callbacks:"NamedCallbacks"},extensionsPrefix:"x-"},Yoe={properties:{refreshUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},authorizationUrl:{type:"string"}},required:["authorizationUrl","scopes"],extensionsPrefix:"x-"},Goe={properties:{refreshUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["tokenUrl","scopes"],extensionsPrefix:"x-"},Hoe={properties:{refreshUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["tokenUrl","scopes"],extensionsPrefix:"x-"},Joe={properties:{refreshUrl:{type:"string"},authorizationUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"},"x-usePkce":t=>typeof t=="boolean"?{type:"boolean"}:"XUsePkce"},required:["authorizationUrl","tokenUrl","scopes"],extensionsPrefix:"x-"},Koe={properties:{implicit:"ImplicitFlow",password:"PasswordFlow",clientCredentials:"ClientCredentials",authorizationCode:"AuthorizationCode"},extensionsPrefix:"x-"},ese={properties:{type:{enum:["apiKey","http","oauth2","openIdConnect"]},description:{type:"string"},name:{type:"string"},in:{type:"string",enum:["query","header","cookie"]},scheme:{type:"string"},bearerFormat:{type:"string"},flows:"OAuth2Flows",openIdConnectUrl:{type:"string"},"x-defaultClientId":{type:"string"}},required(t){switch(t?.type){case"apiKey":return["type","name","in"];case"http":return["type","scheme"];case"oauth2":return["type","flows"];case"openIdConnect":return["type","openIdConnectUrl"];default:return["type"]}},allowed(t){switch(t?.type){case"apiKey":return["type","name","in","description"];case"http":return["type","scheme","bearerFormat","description"];case"oauth2":return["type","flows","description"];case"openIdConnect":return["type","openIdConnectUrl","description"];default:return["type","description"]}},extensionsPrefix:"x-"},tse={properties:{disableManualConfiguration:{type:"boolean"},hideClientSecretInput:{type:"boolean"}}},_b={Root:goe,Tag:yoe,TagList:et("Tag"),TagGroups:et("TagGroup"),TagGroup:Ooe,ExternalDocs:voe,Server:boe,ServerList:et("Server"),ServerVariable:xoe,ServerVariablesMap:Ye("ServerVariable"),SecurityRequirement:Soe,SecurityRequirementList:et("SecurityRequirement"),Info:woe,Contact:Coe,License:$oe,Paths:koe,PathItem:Toe,Parameter:_oe,ParameterList:et("Parameter"),Operation:Aoe,Callback:Ye("PathItem"),CallbacksMap:Ye("Callback"),RequestBody:Roe,MediaTypesMap:joe,MediaType:Qoe,Example:Doe,ExamplesMap:Ye("Example"),Encoding:Noe,EncodingMap:Ye("Encoding"),EnumDescriptions:Moe,Header:qoe,HeadersMap:Ye("Header"),Responses:zoe,Response:Loe,Link:Voe,Logo:Poe,Schema:Xoe,Xml:Uoe,SchemaProperties:Woe,DiscriminatorMapping:Boe,Discriminator:Foe,Components:Zoe,LinksMap:Ye("Link"),NamedSchemas:Ye("Schema"),NamedResponses:Ye("Response"),NamedParameters:Ye("Parameter"),NamedExamples:Ye("Example"),NamedRequestBodies:Ye("RequestBody"),NamedHeaders:Ye("Header"),NamedSecuritySchemes:Ye("SecurityScheme"),NamedLinks:Ye("Link"),NamedCallbacks:Ye("Callback"),ImplicitFlow:Yoe,PasswordFlow:Goe,ClientCredentials:Hoe,AuthorizationCode:Joe,OAuth2Flows:Koe,SecurityScheme:ese,XCodeSample:Ioe,XCodeSampleList:et("XCodeSample"),XUsePkce:tse,WebhooksMap:Eoe},rse={properties:{openapi:null,info:"Info",servers:"ServerList",security:"SecurityRequirementList",tags:"TagList",externalDocs:"ExternalDocs",paths:"Paths",webhooks:"WebhooksMap",components:"Components",jsonSchemaDialect:{type:"string"}},required:["openapi","info"],requiredOneOf:["paths","components","webhooks"],extensionsPrefix:"x-"},nse={properties:{name:{type:"string"},url:{type:"string"},identifier:{type:"string"}},required:["name"],extensionsPrefix:"x-"},ise={properties:{title:{type:"string"},version:{type:"string"},description:{type:"string"},termsOfService:{type:"string"},summary:{type:"string"},contact:"Contact",license:"License","x-logo":"Logo"},required:["title","version"],extensionsPrefix:"x-"},ose={properties:{parameters:"NamedParameters",schemas:"NamedSchemas",responses:"NamedResponses",examples:"NamedExamples",requestBodies:"NamedRequestBodies",headers:"NamedHeaders",securitySchemes:"NamedSecuritySchemes",links:"NamedLinks",callbacks:"NamedCallbacks",pathItems:"NamedPathItems"},extensionsPrefix:"x-"},sse={properties:{tags:{type:"array",items:{type:"string"}},summary:{type:"string"},description:{type:"string"},externalDocs:"ExternalDocs",operationId:{type:"string"},parameters:"ParameterList",security:"SecurityRequirementList",servers:"ServerList",requestBody:"RequestBody",responses:"Responses",deprecated:{type:"boolean"},callbacks:"CallbacksMap","x-codeSamples":"XCodeSampleList","x-code-samples":"XCodeSampleList","x-hideTryItPanel":{type:"boolean"}},extensionsPrefix:"x-"},ase={properties:{$id:{type:"string"},$anchor:{type:"string"},id:{type:"string"},$schema:{type:"string"},definitions:"NamedSchemas",$defs:"NamedSchemas",$vocabulary:{type:"string"},externalDocs:"ExternalDocs",discriminator:"Discriminator",title:{type:"string"},multipleOf:{type:"number",minimum:0},maximum:{type:"number"},minimum:{type:"number"},exclusiveMaximum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{type:"integer",minimum:0},minLength:{type:"integer",minimum:0},pattern:{type:"string"},maxItems:{type:"integer",minimum:0},minItems:{type:"integer",minimum:0},uniqueItems:{type:"boolean"},maxProperties:{type:"integer",minimum:0},minProperties:{type:"integer",minimum:0},required:{type:"array",items:{type:"string"}},enum:{type:"array"},type:t=>Array.isArray(t)?{type:"array",items:{enum:["object","array","string","number","integer","boolean","null"]}}:{enum:["object","array","string","number","integer","boolean","null"]},allOf:et("Schema"),anyOf:et("Schema"),oneOf:et("Schema"),not:"Schema",if:"Schema",then:"Schema",else:"Schema",dependentSchemas:Ye("Schema"),dependentRequired:"DependentRequired",prefixItems:et("Schema"),contains:"Schema",minContains:{type:"integer",minimum:0},maxContains:{type:"integer",minimum:0},patternProperties:"PatternProperties",propertyNames:"Schema",unevaluatedItems:t=>typeof t=="boolean"?{type:"boolean"}:"Schema",unevaluatedProperties:t=>typeof t=="boolean"?{type:"boolean"}:"Schema",summary:{type:"string"},properties:"SchemaProperties",items:t=>typeof t=="boolean"?{type:"boolean"}:"Schema",additionalProperties:t=>typeof t=="boolean"?{type:"boolean"}:"Schema",description:{type:"string"},format:{type:"string"},contentEncoding:{type:"string"},contentMediaType:{type:"string"},contentSchema:"Schema",default:null,readOnly:{type:"boolean"},writeOnly:{type:"boolean"},xml:"Xml",examples:{type:"array"},example:{isExample:!0},deprecated:{type:"boolean"},const:null,$comment:{type:"string"},"x-tags":{type:"array",items:{type:"string"}},$dynamicAnchor:{type:"string"},$dynamicRef:{type:"string"}},extensionsPrefix:"x-"},n2={properties:{},additionalProperties:t=>typeof t=="boolean"?{type:"boolean"}:"Schema"},lse={properties:{type:{enum:["apiKey","http","oauth2","openIdConnect","mutualTLS"]},description:{type:"string"},name:{type:"string"},in:{type:"string",enum:["query","header","cookie"]},scheme:{type:"string"},bearerFormat:{type:"string"},flows:"OAuth2Flows",openIdConnectUrl:{type:"string"}},required(t){switch(t?.type){case"apiKey":return["type","name","in"];case"http":return["type","scheme"];case"oauth2":return["type","flows"];case"openIdConnect":return["type","openIdConnectUrl"];default:return["type"]}},allowed(t){switch(t?.type){case"apiKey":return["type","name","in","description"];case"http":return["type","scheme","bearerFormat","description"];case"oauth2":switch(t?.flows){case"implicit":return["type","flows","authorizationUrl","refreshUrl","description","scopes"];case"password":case"clientCredentials":return["type","flows","tokenUrl","refreshUrl","description","scopes"];case"authorizationCode":return["type","flows","authorizationUrl","refreshUrl","tokenUrl","description","scopes"];default:return["type","flows","authorizationUrl","refreshUrl","tokenUrl","description","scopes"]}case"openIdConnect":return["type","openIdConnectUrl","description"];case"mutualTLS":return["type","description"];default:return["type","description"]}},extensionsPrefix:"x-"},cse={properties:{},additionalProperties:{type:"array",items:{type:"string"}}},_r={..._b,Info:ise,Root:rse,Schema:ase,SchemaProperties:n2,PatternProperties:n2,License:nse,Components:ose,NamedPathItems:Ye("PathItem"),SecurityScheme:lse,Operation:sse,DependentRequired:cse},use={..._r.Root,properties:{..._r.Root.properties,$self:{type:"string"}}},dse={..._r.Tag,properties:{..._r.Tag.properties,kind:{type:"string"},parent:{type:"string"},summary:{type:"string"}}},fse={..._r.Server,properties:{..._r.Server.properties,name:{type:"string"}}},pse={..._r.SecurityScheme,properties:{..._r.SecurityScheme.properties,deprecated:{type:"boolean"},oauth2MetadataUrl:{type:"string"}},allowed(t){switch(t?.type){case"apiKey":return["type","name","in","description","deprecated"];case"http":return["type","scheme","bearerFormat","description","deprecated"];case"oauth2":switch(t?.flows){case"implicit":return["type","flows","authorizationUrl","refreshUrl","description","scopes","oauth2MetadataUrl","deprecated"];case"password":case"clientCredentials":return["type","flows","tokenUrl","refreshUrl","description","scopes","oauth2MetadataUrl","deprecated"];case"authorizationCode":return["type","flows","authorizationUrl","refreshUrl","tokenUrl","description","scopes","oauth2MetadataUrl","deprecated"];case"deviceAuthorization":return["type","flows","deviceAuthorizationUrl","tokenUrl"];default:return["type","flows","authorizationUrl","refreshUrl","tokenUrl","description","scopes","oauth2MetadataUrl","deprecated"]}case"openIdConnect":return["type","openIdConnectUrl","description","deprecated"];case"mutualTLS":return["type","description","deprecated"];default:return["type","description","deprecated"]}}},hse={..._r.OAuth2Flows,properties:{..._r.OAuth2Flows.properties,deviceAuthorization:"DeviceAuthorization"}},mse={properties:{deviceAuthorizationUrl:{type:"string"},tokenUrl:{type:"string"},refreshUrl:{type:"string"},scopes:Ye("string")},required:["deviceAuthorizationUrl","tokenUrl","scopes"],extensionsPrefix:"x-"},gse={..._b.PathItem,properties:{..._b.PathItem.properties,query:"Operation",additionalOperations:Ye("Operation")}},yse={..._r.Parameter,properties:{..._r.Parameter.properties,in:{enum:["query","header","path","cookie","querystring"]}}},Ose={..._r.Response,properties:{..._r.Response.properties,summary:{type:"string"}}},vse={..._r.MediaType,properties:{..._r.MediaType.properties,itemSchema:"Schema",prefixEncoding:et("Encoding"),itemEncoding:"Encoding"}},bse={..._r.Discriminator,properties:{..._r.Discriminator.properties,defaultMapping:{type:"string"}}},xse={..._r.Example,properties:{..._r.Example.properties,dataValue:{resolvable:!1},serializedValue:{type:"string"}}},Sse={properties:{nodeType:{type:"string",enum:["element","attribute","text","cdata","none"]},name:{type:"string"},namespace:{type:"string"},prefix:{type:"string"},attribute:{type:"boolean"},wrapped:{type:"boolean"}},extensionsPrefix:"x-"},wse={..._r.Schema,properties:{..._r.Schema.properties,xml:"Xml"}},Qn={..._r,Root:use,Tag:dse,Server:fse,SecurityScheme:pse,OAuth2Flows:hse,DeviceAuthorization:mse,PathItem:gse,Parameter:yse,Response:Ose,MediaType:vse,Discriminator:bse,Example:xse,Xml:Sse,Schema:wse},zT={properties:{$id:{type:"string"},$schema:{type:"string"},definitions:"NamedSchemas",externalDocs:"ExternalDocs",discriminator:"Discriminator",title:{type:"string"},multipleOf:{type:"number",minimum:0},maximum:{type:"number"},minimum:{type:"number"},exclusiveMaximum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{type:"integer",minimum:0},minLength:{type:"integer",minimum:0},pattern:{type:"string"},maxItems:{type:"integer",minimum:0},minItems:{type:"integer",minimum:0},uniqueItems:{type:"boolean"},maxProperties:{type:"integer",minimum:0},minProperties:{type:"integer",minimum:0},required:{type:"array",items:{type:"string"}},enum:{type:"array"},type:t=>Array.isArray(t)?{type:"array",items:{enum:["object","array","string","number","integer","boolean","null"]}}:{enum:["object","array","string","number","integer","boolean","null"]},allOf:et("Schema"),anyOf:et("Schema"),oneOf:et("Schema"),not:"Schema",if:"Schema",then:"Schema",else:"Schema",contains:"Schema",patternProperties:{type:"object"},propertyNames:"Schema",properties:"SchemaProperties",items:t=>Array.isArray(t)?et("Schema"):"Schema",additionalProperties:t=>typeof t=="boolean"?{type:"boolean"}:"Schema",description:{type:"string"},format:{type:"string"},contentEncoding:{type:"string"},contentMediaType:{type:"string"},default:null,readOnly:{type:"boolean"},writeOnly:{type:"boolean"},examples:{type:"array"},example:{isExample:!0},deprecated:{type:"boolean"},const:null,$comment:{type:"string"},additionalItems:t=>typeof t=="boolean"?{type:"boolean"}:"Schema",dependencies:"Dependencies"}},LT={properties:{},additionalProperties:t=>typeof t=="boolean"?{type:"boolean"}:"Schema"},VT={properties:{},additionalProperties:t=>Array.isArray(t)?{type:"array",items:{type:"string"}}:"Schema"},XT={properties:{},additionalProperties:t=>g7(t)?{type:"string",directResolveAs:"Schema"}:{type:"string"}},UT={properties:{propertyName:{type:"string"},mapping:"DiscriminatorMapping"},required:["propertyName"]},Pse={properties:{asyncapi:null,info:"Info",id:{type:"string"},servers:"ServerMap",channels:"ChannelMap",components:"Components",tags:"TagList",externalDocs:"ExternalDocs",defaultContentType:{type:"string"}},required:["asyncapi","channels","info"]},Cse={properties:{description:{type:"string"},subscribe:"Operation",publish:"Operation",parameters:"ParametersMap",bindings:"ChannelBindings",servers:{type:"array",items:{type:"string"}}}},$se={properties:{},additionalProperties:"Channel"},ci={properties:{},allowed(){return["http","ws","kafka","anypointmq","amqp","amqp1","mqtt","mqtt5","nats","jms","sns","solace","sqs","stomp","redis","mercure","ibmmq","googlepubsub","pulsar"]},additionalProperties:{type:"object"}},y7={properties:{name:{type:"string"},description:{type:"string"},externalDocs:"ExternalDocs"},required:["name"]},O7={properties:{description:{type:"string"},url:{type:"string"}},required:["url"]},kse={properties:{},additionalProperties:{type:"array",items:{type:"string"}}},ui={properties:{},allowed(){return["http","ws","kafka","anypointmq","amqp","amqp1","mqtt","mqtt5","nats","jms","sns","solace","sqs","stomp","redis","mercure","ibmmq","googlepubsub","pulsar"]},additionalProperties:{type:"object"}},Ese={properties:{url:{type:"string"},protocol:{type:"string"},protocolVersion:{type:"string"},description:{type:"string"},variables:"ServerVariablesMap",security:"SecurityRequirementList",bindings:"ServerBindings",tags:"TagList"},required:["url","protocol"]},v7={properties:{},additionalProperties:(t,e)=>e.match(/^[A-Za-z0-9_\-]+$/)?"Server":void 0},b7={properties:{enum:{type:"array",items:{type:"string"}},default:{type:"string"},description:{type:"string"},examples:{type:"array",items:{type:"string"}}},required:[]},Tse={properties:{title:{type:"string"},version:{type:"string"},description:{type:"string"},termsOfService:{type:"string"},contact:"Contact",license:"License"},required:["title","version"]},x7={properties:{name:{type:"string"},url:{type:"string"},email:{type:"string"}}},S7={properties:{name:{type:"string"},url:{type:"string"}},required:["name"]},_se={properties:{description:{type:"string"},schema:"Schema",location:{type:"string"}}},w7={properties:{description:{type:"string"},location:{type:"string"}},required:["location"]},Ase={properties:{messageId:{type:"string"},headers:"Schema",payload:"Schema",correlationId:"CorrelationId",schemaFormat:{type:"string"},contentType:{type:"string"},name:{type:"string"},title:{type:"string"},summary:{type:"string"},description:{type:"string"},tags:"TagList",externalDocs:"ExternalDocs",bindings:"MessageBindings",examples:"MessageExampleList",traits:"MessageTraitList"},additionalProperties:{}},Fn={properties:{},allowed(){return["http","ws","kafka","anypointmq","amqp","amqp1","mqtt","mqtt5","nats","jms","sns","solace","sqs","stomp","redis","mercure","ibmmq","googlepubsub","pulsar"]},additionalProperties:{type:"object"}},Zn={properties:{},allowed(){return["http","ws","kafka","anypointmq","amqp","amqp1","mqtt","mqtt5","nats","jms","sns","solace","sqs","stomp","redis","mercure","ibmmq","googlepubsub","pulsar"]},additionalProperties:{type:"object"}},Ise={properties:{tags:"TagList",summary:{type:"string"},description:{type:"string"},externalDocs:"ExternalDocs",operationId:{type:"string"},security:"SecurityRequirementList",bindings:"OperationBindings"},required:[]},Rse={properties:{messageId:{type:"string"},headers:"Schema",correlationId:"CorrelationId",schemaFormat:{type:"string"},contentType:{type:"string"},name:{type:"string"},title:{type:"string"},summary:{type:"string"},description:{type:"string"},tags:"TagList",externalDocs:"ExternalDocs",bindings:"MessageBindings",examples:"MessageExampleList"},additionalProperties:{}},jse={properties:{tags:"TagList",summary:{type:"string"},description:{type:"string"},externalDocs:"ExternalDocs",operationId:{type:"string"},security:"SecurityRequirementList",bindings:"OperationBindings",traits:"OperationTraitList",message:"Message"},required:[]},P7={properties:{payload:{isExample:!0},summary:{type:"string"},name:{type:"string"},headers:{type:"object"}}},Qse={properties:{messages:"NamedMessages",parameters:"NamedParameters",schemas:"NamedSchemas",correlationIds:"NamedCorrelationIds",messageTraits:"NamedMessageTraits",operationTraits:"NamedOperationTraits",securitySchemes:"NamedSecuritySchemes",servers:"ServerMap",serverVariables:"ServerVariablesMap",channels:"ChannelMap",serverBindings:"ServerBindings",channelBindings:"ChannelBindings",operationBindings:"OperationBindings",messageBindings:"MessageBindings"}},Dse={properties:{refreshUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},authorizationUrl:{type:"string"}},required:["authorizationUrl","scopes"]},Nse={properties:{refreshUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["tokenUrl","scopes"]},Mse={properties:{refreshUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["tokenUrl","scopes"]},qse={properties:{refreshUrl:{type:"string"},authorizationUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["authorizationUrl","tokenUrl","scopes"]},C7={properties:{implicit:"ImplicitFlow",password:"PasswordFlow",clientCredentials:"ClientCredentials",authorizationCode:"AuthorizationCode"}},zse={properties:{type:{enum:["userPassword","apiKey","X509","symmetricEncryption","asymmetricEncryption","httpApiKey","http","oauth2","openIdConnect","plain","scramSha256","scramSha512","gssapi"]},description:{type:"string"},name:{type:"string"},in:{type:"string",enum:["query","header","cookie","user","password"]},scheme:{type:"string"},bearerFormat:{type:"string"},flows:"SecuritySchemeFlows",openIdConnectUrl:{type:"string"}},required(t){switch(t?.type){case"apiKey":return["type","in"];case"httpApiKey":return["type","name","in"];case"http":return["type","scheme"];case"oauth2":return["type","flows"];case"openIdConnect":return["type","openIdConnectUrl"];default:return["type"]}},allowed(t){switch(t?.type){case"apiKey":return["type","in","description"];case"httpApiKey":return["type","name","in","description"];case"http":return["type","scheme","bearerFormat","description"];case"oauth2":return["type","flows","description"];case"openIdConnect":return["type","openIdConnectUrl","description"];default:return["type","description"]}},extensionsPrefix:"x-"},$7={properties:{}};ci.properties.http=$7;const k7={properties:{}};ui.properties.http=k7;const E7={properties:{headers:"Schema",bindingVersion:{type:"string"}}};Fn.properties.http=E7;const T7={properties:{type:{type:"string"},method:{type:"string",enum:["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS","CONNECT","TRACE"]},headers:"Schema",bindingVersion:{type:"string"}}};Zn.properties.http=T7;const _7={properties:{method:{type:"string"},query:"Schema",headers:"Schema",bindingVersion:{type:"string"}}};ci.properties.ws=_7;const A7={properties:{}};ui.properties.ws=A7;const I7={properties:{}};Fn.properties.ws=I7;const R7={properties:{}};Zn.properties.ws=R7;const Lse={properties:{"cleanup.policy":{type:"array",items:{enum:["delete","compact"]}},"retention.ms":{type:"integer"},"retention.bytes":{type:"integer"},"delete.retention.ms":{type:"integer"},"max.message.bytes":{type:"integer"}}},j7={properties:{topic:{type:"string"},partitions:{type:"integer"},replicas:{type:"integer"},topicConfiguration:"KafkaTopicConfiguration",bindingVersion:{type:"string"}}};ci.properties.kafka=j7;const Q7={properties:{}};ui.properties.kafka=Q7;const D7={properties:{key:"Schema",schemaIdLocation:{type:"string"},schemaIdPayloadEncoding:{type:"string"},schemaLookupStrategy:{type:"string"},bindingVersion:{type:"string"}}};Fn.properties.kafka=D7;const N7={properties:{groupId:"Schema",clientId:"Schema",bindingVersion:{type:"string"}}};Zn.properties.kafka=N7;const M7={properties:{destination:{type:"string"},destinationType:{type:"string"},bindingVersion:{type:"string"}}};ci.properties.anypointmq=M7;const q7={properties:{}};ui.properties.anypointmq=q7;const z7={properties:{headers:"Schema",bindingVersion:{type:"string"}}};Fn.properties.anypointmq=z7;const L7={properties:{}};Zn.properties.anypointmq=L7;const V7={properties:{}};ci.properties.amqp=V7;const X7={properties:{}};ui.properties.amqp=X7;const U7={properties:{contentEncoding:{type:"string"},messageType:{type:"string"},bindingVersion:{type:"string"}}};Fn.properties.amqp=U7;const W7={properties:{expiration:{type:"integer"},userId:{type:"string"},cc:{type:"array",items:{type:"string"}},priority:{type:"integer"},deliveryMode:{type:"integer"},mandatory:{type:"boolean"},bcc:{type:"array",items:{type:"string"}},replyTo:{type:"string"},timestamp:{type:"boolean"},ack:{type:"boolean"},bindingVersion:{type:"string"}}};Zn.properties.amqp=W7;const B7={properties:{}};ci.properties.amqp1=B7;const F7={properties:{}};ui.properties.amqp1=F7;const Z7={properties:{}};Fn.properties.amqp1=Z7;const Y7={properties:{}};Zn.properties.amqp1=Y7;const G7={properties:{qos:{type:"integer"},retain:{type:"boolean"},bindingVersion:{type:"string"}}};ci.properties.mqtt=G7;const Vse={properties:{topic:{type:"string"},qos:{type:"integer"},message:{type:"string"},retain:{type:"boolean"}}},H7={properties:{clientId:{type:"string"},cleanSession:{type:"boolean"},lastWill:"MqttServerBindingLastWill",keepAlive:{type:"integer"},bindingVersion:{type:"string"}}};ui.properties.mqtt=H7;const J7={properties:{bindingVersion:{type:"string"}}};Fn.properties.mqtt=J7;const K7={properties:{qos:{type:"integer"},retain:{type:"boolean"},bindingVersion:{type:"string"}}};Zn.properties.mqtt=K7;const eX={properties:{}};ci.properties.mqtt5=eX;const tX={properties:{}};ui.properties.mqtt5=tX;const rX={properties:{}};Fn.properties.mqtt5=rX;const nX={properties:{}};Zn.properties.mqtt5=nX;const iX={properties:{}};ci.properties.nats=iX;const oX={properties:{}};ui.properties.nats=oX;const sX={properties:{}};Fn.properties.nats=sX;const aX={properties:{queue:{type:"string"},bindingVersion:{type:"string"}}};Zn.properties.nats=aX;const lX={properties:{destination:{type:"string"},destinationType:{type:"string"},bindingVersion:{type:"string"}}};ci.properties.jms=lX;const cX={properties:{}};ui.properties.jms=cX;const uX={properties:{headers:"Schema",bindingVersion:{type:"string"}}};Fn.properties.jms=uX;const dX={properties:{headers:"Schema",bindingVersion:{type:"string"}}};Zn.properties.jms=dX;const fX={properties:{}};ci.properties.solace=fX;const pX={properties:{bindingVersion:{type:"string"},msgVpn:{type:"string"}}};ui.properties.solace=pX;const hX={properties:{}};Fn.properties.solace=hX;const Xse={properties:{destinationType:{type:"string",enum:["queue","topic"]},deliveryMode:{type:"string",enum:["direct","persistent"]},"queue.name":{type:"string"},"queue.topicSubscriptions":{type:"array",items:{type:"string"}},"queue.accessType":{type:"string",enum:["exclusive","nonexclusive"]},"queue.maxMsgSpoolSize":{type:"string"},"queue.maxTtl":{type:"string"},"topic.topicSubscriptions":{type:"array",items:{type:"string"}}}},mX={properties:{bindingVersion:{type:"string"},destinations:et("SolaceDestination")}};Zn.properties.solace=mX;const gX={properties:{}};ci.properties.stomp=gX;const yX={properties:{}};ui.properties.stomp=yX;const OX={properties:{}};Fn.properties.stomp=OX;const vX={properties:{}};Zn.properties.stomp=vX;const bX={properties:{}};ci.properties.redis=bX;const xX={properties:{}};ui.properties.redis=xX;const SX={properties:{}};Fn.properties.redis=SX;const wX={properties:{}};Zn.properties.redis=wX;const PX={properties:{}};ci.properties.mercure=PX;const CX={properties:{}};ui.properties.mercure=CX;const $X={properties:{}};Fn.properties.mercure=$X;const kX={properties:{}};Zn.properties.mercure=kX;const EX={HttpServerBinding:k7,HttpChannelBinding:$7,HttpMessageBinding:E7,HttpOperationBinding:T7,WsServerBinding:A7,WsChannelBinding:_7,WsMessageBinding:I7,WsOperationBinding:R7,KafkaServerBinding:Q7,KafkaTopicConfiguration:Lse,KafkaChannelBinding:j7,KafkaMessageBinding:D7,KafkaOperationBinding:N7,AnypointmqServerBinding:q7,AnypointmqChannelBinding:M7,AnypointmqMessageBinding:z7,AnypointmqOperationBinding:L7,AmqpServerBinding:X7,AmqpChannelBinding:V7,AmqpMessageBinding:U7,AmqpOperationBinding:W7,Amqp1ServerBinding:F7,Amqp1ChannelBinding:B7,Amqp1MessageBinding:Z7,Amqp1OperationBinding:Y7,MqttServerBindingLastWill:Vse,MqttServerBinding:H7,MqttChannelBinding:G7,MqttMessageBinding:J7,MqttOperationBinding:K7,Mqtt5ServerBinding:tX,Mqtt5ChannelBinding:eX,Mqtt5MessageBinding:rX,Mqtt5OperationBinding:nX,NatsServerBinding:oX,NatsChannelBinding:iX,NatsMessageBinding:sX,NatsOperationBinding:aX,JmsServerBinding:cX,JmsChannelBinding:lX,JmsMessageBinding:uX,JmsOperationBinding:dX,SolaceServerBinding:pX,SolaceChannelBinding:fX,SolaceMessageBinding:hX,SolaceDestination:Xse,SolaceOperationBinding:mX,StompServerBinding:yX,StompChannelBinding:gX,StompMessageBinding:OX,StompOperationBinding:vX,RedisServerBinding:xX,RedisChannelBinding:bX,RedisMessageBinding:SX,RedisOperationBinding:wX,MercureServerBinding:CX,MercureChannelBinding:PX,MercureMessageBinding:$X,MercureOperationBinding:kX,ServerBindings:ui,ChannelBindings:ci,MessageBindings:Fn,OperationBindings:Zn},Use={...EX,Root:Pse,Tag:y7,TagList:et("Tag"),ServerMap:v7,ExternalDocs:O7,Server:Ese,ServerVariable:b7,ServerVariablesMap:Ye("ServerVariable"),SecurityRequirement:kse,SecurityRequirementList:et("SecurityRequirement"),Info:Tse,Contact:x7,License:S7,ChannelMap:$se,Channel:Cse,Parameter:_se,ParametersMap:Ye("Parameter"),Operation:jse,Schema:zT,MessageExample:P7,SchemaProperties:LT,DiscriminatorMapping:XT,Discriminator:UT,Components:Qse,NamedSchemas:Ye("Schema"),NamedMessages:Ye("Message"),NamedMessageTraits:Ye("MessageTrait"),NamedOperationTraits:Ye("OperationTrait"),NamedParameters:Ye("Parameter"),NamedSecuritySchemes:Ye("SecurityScheme"),NamedCorrelationIds:Ye("CorrelationId"),ImplicitFlow:Dse,PasswordFlow:Nse,ClientCredentials:Mse,AuthorizationCode:qse,SecuritySchemeFlows:C7,SecurityScheme:zse,Message:Ase,MessageBindings:Fn,OperationBindings:Zn,OperationTrait:Ise,OperationTraitList:et("OperationTrait"),MessageTrait:Rse,MessageTraitList:et("MessageTrait"),MessageExampleList:et("MessageExample"),CorrelationId:w7,Dependencies:VT},Wse={properties:{asyncapi:{type:"string",enum:["3.0.0"]},info:"Info",id:{type:"string"},servers:"ServerMap",channels:"NamedChannels",components:"Components",operations:"NamedOperations",defaultContentType:{type:"string"}},required:["asyncapi","info"]},Bse={properties:{address:{type:"string"},messages:"NamedMessages",title:{type:"string"},summary:{type:"string"},description:{type:"string"},servers:"ServerList",parameters:"ParametersMap",bindings:"ChannelBindings",tags:"TagList",externalDocs:"ExternalDocs"}},Fse={properties:{host:{type:"string"},pathname:{type:"string"},protocol:{type:"string"},protocolVersion:{type:"string"},description:{type:"string"},variables:"ServerVariablesMap",security:"SecuritySchemeList",bindings:"ServerBindings",externalDocs:"ExternalDocs",tags:"TagList"},required:["host","protocol"]},Zse={properties:{title:{type:"string"},version:{type:"string"},description:{type:"string"},termsOfService:{type:"string"},contact:"Contact",license:"License",tags:"TagList",externalDocs:"ExternalDocs"},required:["title","version"]},Yse={properties:{description:{type:"string"},enum:{type:"array",items:{type:"string"}},default:{type:"string"},examples:{type:"array",items:{type:"string"}},location:{type:"string"}}},Gse={properties:{headers:"Schema",payload:t=>t&&t?.schemaFormat?{properties:{schema:"Schema",schemaFormat:{type:"string"}},required:["schema","schemaFormat"]}:"Schema",correlationId:"CorrelationId",contentType:{type:"string"},name:{type:"string"},title:{type:"string"},summary:{type:"string"},description:{type:"string"},tags:"TagList",externalDocs:"ExternalDocs",bindings:"MessageBindings",examples:"MessageExampleList",traits:"MessageTraitList"},additionalProperties:{}},Hse={properties:{tags:"TagList",title:{type:"string"},summary:{type:"string"},description:{type:"string"},externalDocs:"ExternalDocs",security:"SecuritySchemeList",bindings:"OperationBindings"},required:[]},Jse={properties:{headers:t=>typeof t=="function"||typeof t=="object"&&t?{properties:{schema:"Schema",schemaFormat:{type:"string"}}}:"Schema",correlationId:"CorrelationId",contentType:{type:"string"},name:{type:"string"},title:{type:"string"},summary:{type:"string"},description:{type:"string"},tags:"TagList",externalDocs:"ExternalDocs",bindings:"MessageBindings",examples:"MessageExampleList"},additionalProperties:{}},Kse={properties:{action:{type:"string",enum:["send","receive"]},channel:"Channel",title:{type:"string"},tags:"TagList",summary:{type:"string"},description:{type:"string"},externalDocs:"ExternalDocs",operationId:{type:"string"},security:"SecuritySchemeList",bindings:"OperationBindings",traits:"OperationTraitList",messages:"MessageList",reply:"OperationReply"},required:["action","channel"]},eae={properties:{channel:"Channel",messages:"MessageList",address:"OperationReplyAddress"}},tae={properties:{location:{type:"string"},description:{type:"string"}},required:["location"]},rae={properties:{messages:"NamedMessages",parameters:"NamedParameters",schemas:"NamedSchemas",replies:"NamedOperationReplies",replyAddresses:"NamedOperationRelyAddresses",correlationIds:"NamedCorrelationIds",messageTraits:"NamedMessageTraits",operationTraits:"NamedOperationTraits",tags:"NamedTags",externalDocs:"NamedExternalDocs",securitySchemes:"NamedSecuritySchemes",servers:"ServerMap",serverVariables:"ServerVariablesMap",channels:"NamedChannels",operations:"NamedOperations",serverBindings:"ServerBindings",channelBindings:"ChannelBindings",operationBindings:"OperationBindings",messageBindings:"MessageBindings"}},nae={properties:{refreshUrl:{type:"string"},availableScopes:{type:"object",additionalProperties:{type:"string"}},authorizationUrl:{type:"string"}},required:["authorizationUrl","availableScopes"]},iae={properties:{refreshUrl:{type:"string"},availableScopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["tokenUrl","availableScopes"]},oae={properties:{refreshUrl:{type:"string"},availableScopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["tokenUrl","availableScopes"]},sae={properties:{refreshUrl:{type:"string"},authorizationUrl:{type:"string"},availableScopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["authorizationUrl","tokenUrl","availableScopes"]},aae={properties:{type:{enum:["userPassword","apiKey","X509","symmetricEncryption","asymmetricEncryption","httpApiKey","http","oauth2","openIdConnect","plain","scramSha256","scramSha512","gssapi"]},description:{type:"string"},name:{type:"string"},in:{type:"string",enum:["query","header","cookie","user","password"]},scheme:{type:"string"},bearerFormat:{type:"string"},flows:"SecuritySchemeFlows",openIdConnectUrl:{type:"string"},scopes:{type:"array",items:{type:"string"}}},required(t){switch(t?.type){case"apiKey":return["type","in"];case"httpApiKey":return["type","name","in"];case"http":return["type","scheme"];case"oauth2":return["type","flows"];case"openIdConnect":return["type","openIdConnectUrl"];default:return["type"]}},allowed(t){switch(t?.type){case"apiKey":return["type","in","description"];case"httpApiKey":return["type","name","in","description"];case"http":return["type","scheme","bearerFormat","description"];case"oauth2":return["type","flows","description","scopes"];case"openIdConnect":return["type","openIdConnectUrl","description","scopes"];default:return["type","description"]}},extensionsPrefix:"x-"},lae={...EX,CorrelationId:w7,SecuritySchemeFlows:C7,ServerVariable:b7,Contact:x7,License:S7,MessageExample:P7,Tag:y7,Dependencies:VT,Schema:zT,Discriminator:UT,DiscriminatorMapping:XT,SchemaProperties:LT,ServerMap:v7,ExternalDocs:O7,Root:Wse,Channel:Bse,Parameter:Yse,Info:Zse,Server:Fse,MessageTrait:Jse,Operation:Kse,OperationReply:eae,OperationReplyAddress:tae,Components:rae,ImplicitFlow:nae,PasswordFlow:iae,ClientCredentials:oae,AuthorizationCode:sae,SecurityScheme:aae,Message:Gse,OperationTrait:Hse,ServerVariablesMap:Ye("ServerVariable"),NamedTags:Ye("Tag"),NamedExternalDocs:Ye("ExternalDocs"),NamedChannels:Ye("Channel"),ParametersMap:Ye("Parameter"),NamedOperations:Ye("Operation"),NamedOperationReplies:Ye("OperationReply"),NamedOperationRelyAddresses:Ye("OperationReplyAddress"),NamedSchemas:Ye("Schema"),NamedMessages:Ye("Message"),NamedMessageTraits:Ye("MessageTrait"),NamedOperationTraits:Ye("OperationTrait"),NamedParameters:Ye("Parameter"),NamedSecuritySchemes:Ye("SecurityScheme"),NamedCorrelationIds:Ye("CorrelationId"),ServerList:et("Server"),SecuritySchemeList:et("SecurityScheme"),MessageList:et("Message"),OperationTraitList:et("OperationTrait"),MessageTraitList:et("MessageTrait"),MessageExampleList:et("MessageExample"),TagList:et("Tag")},cae={properties:{arazzo:{type:"string"},info:"Info",sourceDescriptions:"SourceDescriptions",workflows:"Workflows",components:"Components"},required:["arazzo","info","sourceDescriptions","workflows"],extensionsPrefix:"x-"},uae={properties:{},additionalProperties:"Parameter"},dae={properties:{},additionalProperties:"SuccessActionObject"},fae={properties:{},additionalProperties:"FailureActionObject"},pae={properties:{inputs:"NamedInputs",parameters:"NamedParameters",successActions:"NamedSuccessActions",failureActions:"NamedFailureActions"},extensionsPrefix:"x-"},hae=Ye("Schema"),mae={properties:{title:{type:"string"},description:{type:"string"},summary:{type:"string"},version:{type:"string"}},required:["title","version"],extensionsPrefix:"x-"},gae={properties:{},items:t=>t?.type==="openapi"?"OpenAPISourceDescription":"ArazzoSourceDescription"},yae={properties:{name:{type:"string"},type:{type:"string",enum:["openapi"]},url:{type:"string"},"x-serverUrl":{type:"string"}},required:["name","type","url"],extensionsPrefix:"x-"},Oae={properties:{name:{type:"string"},type:{type:"string",enum:["arazzo"]},url:{type:"string"}},required:["name","type","url"],extensionsPrefix:"x-"},vae={properties:{reference:{type:"string"},value:{}},required:["reference"],extensionsPrefix:"x-"},bae={properties:{in:{type:"string",enum:["header","query","path","cookie"]},name:{type:"string"},value:{}},required:["name","value"],extensionsPrefix:"x-"},xae={properties:{},items:t=>t?.reference?"ReusableObject":"Parameter"},Sae={properties:{workflowId:{type:"string"},summary:{type:"string"},description:{type:"string"},parameters:"Parameters",dependsOn:{type:"array",items:{type:"string"}},inputs:"Schema",outputs:"Outputs",steps:"Steps",successActions:"OnSuccessActionList",failureActions:"OnFailureActionList","x-security":"ExtendedSecurityList"},required:["workflowId","steps"],extensionsPrefix:"x-"},wae=et("Workflow"),Pae=et("Step"),Cae={properties:{stepId:{type:"string"},description:{type:"string"},operationId:{type:"string"},operationPath:{type:"string"},workflowId:{type:"string"},parameters:"Parameters",successCriteria:et("CriterionObject"),onSuccess:"OnSuccessActionList",onFailure:"OnFailureActionList",outputs:"Outputs","x-operation":"ExtendedOperation","x-security":"ExtendedSecurityList",requestBody:"RequestBody"},required:["stepId"],requiredOneOf:["x-operation","operationId","operationPath","workflowId"],extensionsPrefix:"x-"},$ae={properties:{},additionalProperties:{type:"string"}},kae={properties:{contentType:{type:"string"},payload:{},replacements:et("Replacement")},required:["payload"],extensionsPrefix:"x-"},Eae={properties:{target:{type:"string"},value:{}},required:["target","value"],extensionsPrefix:"x-"},Tae={properties:{schemeName:{type:"string"},values:{},scheme:"SecurityScheme"},required:["values"],requiredOneOf:["schemeName","scheme"]},_ae={properties:{url:{type:"string"},method:{enum:["get","post","put","delete","patch","head","options","trace","connect","query","GET","POST","PUT","DELETE","PATCH","OPTIONS","HEAD","TRACE","CONNECT","QUERY"]}},required:["url","method"]},Aae={properties:{condition:{type:"string"},context:{type:"string"},type:t=>{if(t)return typeof t=="string"?{enum:["regex","jsonpath","simple","xpath"]}:t?.type==="jsonpath"?"JSONPathCriterion":"XPathCriterion"}},required:["condition"]},Iae={properties:{type:{type:"string",enum:["jsonpath"]},version:{type:"string",enum:["draft-goessner-dispatch-jsonpath-00"]}}},Rae={properties:{type:{type:"string",enum:["xpath"]},version:{type:"string",enum:["xpath-30","xpath-20","xpath-10"]}}},jae={properties:{name:{type:"string"},type:{type:"string",enum:["goto","end"]},stepId:{type:"string"},workflowId:{type:"string"},criteria:et("CriterionObject")},required:["type","name"]},Qae={properties:{},items:t=>t?.type&&t?.name?"SuccessActionObject":"ReusableObject"},Dae={properties:{name:{type:"string"},type:{type:"string",enum:["goto","retry","end"]},workflowId:{type:"string"},stepId:{type:"string"},retryAfter:{type:"number",minimum:0},retryLimit:{type:"number",minimum:0},criteria:et("CriterionObject")},required:["type","name"]},Nae={properties:{},items:t=>t?.type&&t?.name?"FailureActionObject":"ReusableObject"},Mae={Root:cae,Info:mae,SourceDescriptions:gae,OpenAPISourceDescription:yae,ArazzoSourceDescription:Oae,Parameters:xae,Parameter:bae,ReusableObject:vae,Workflows:wae,Workflow:Sae,Steps:Pae,Step:Cae,RequestBody:kae,Replacement:Eae,ExtendedOperation:_ae,ExtendedSecurityList:et("ExtendedSecurity"),ExtendedSecurity:Tae,Outputs:$ae,CriterionObject:Aae,XPathCriterion:Rae,JSONPathCriterion:Iae,SuccessActionObject:jae,OnSuccessActionList:Qae,FailureActionObject:Dae,OnFailureActionList:Nae,Schema:Qn.Schema,NamedSchemas:Ye("Schema"),ExternalDocs:Qn.ExternalDocs,DiscriminatorMapping:Qn.DiscriminatorMapping,Discriminator:Qn.Discriminator,DependentRequired:Qn.DependentRequired,SchemaProperties:Qn.SchemaProperties,PatternProperties:Qn.SchemaProperties,Components:pae,NamedInputs:hae,NamedParameters:uae,NamedSuccessActions:dae,NamedFailureActions:fae,Xml:Qn.Xml,SecurityScheme:Qn.SecurityScheme,OAuth2Flows:Qn.OAuth2Flows,ImplicitFlow:Qn.ImplicitFlow,PasswordFlow:Qn.PasswordFlow,ClientCredentials:Qn.ClientCredentials,AuthorizationCode:Qn.AuthorizationCode,DeviceAuthorization:Qn.DeviceAuthorization},qae={properties:{overlay:{type:"string"},info:"Info",extends:{type:"string"},actions:"Actions"},required:["overlay","info","actions"],extensionsPrefix:"x-"},zae={properties:{title:{type:"string"},version:{type:"string"}},required:["title","version"],extensionsPrefix:"x-"},Lae=et("Action"),Vae={properties:{target:{type:"string"},description:{type:"string"},update:{},remove:{type:"boolean"}},required:["target"],extensionsPrefix:"x-"},Xae={Root:qae,Info:zae,Actions:Lae,Action:Vae},Uae={properties:{openrpc:{type:"string"},info:"Info",servers:"ServerList",methods:"MethodList",components:"Components",externalDocs:"ExternalDocs"},required:["openrpc","info","methods"],extensionsPrefix:"x-"},Wae={properties:{title:{type:"string"},description:{type:"string"},termsOfService:{type:"string"},contact:"Contact",license:"License",version:{type:"string"}},required:["title","version"],extensionsPrefix:"x-"},Bae={properties:{name:{type:"string"},url:{type:"string"},email:{type:"string"}},extensionsPrefix:"x-"},Fae={properties:{name:{type:"string"},url:{type:"string"}},required:["name"],extensionsPrefix:"x-"},Zae={properties:{url:{type:"string"},name:{type:"string"},description:{type:"string"},summary:{type:"string"},variables:"ServerVariablesMap"},required:["url"],extensionsPrefix:"x-"},Yae={properties:{enum:{type:"array",items:{type:"string"}},default:{type:"string"},description:{type:"string"}},required:["default"],extensionsPrefix:"x-"},Gae={properties:{name:{type:"string"},tags:"TagList",summary:{type:"string"},description:{type:"string"},externalDocs:"ExternalDocs",params:"ContentDescriptorList",result:"ContentDescriptor",deprecated:{type:"boolean"},servers:"ServerList",errors:"ErrorList",links:"LinkList",paramStructure:{enum:["by-name","by-position","either"]},examples:"ExamplePairingList"},required:["name","params"],extensionsPrefix:"x-"},Hae={properties:{name:{type:"string"},summary:{type:"string"},description:{type:"string"},required:{type:"boolean"},schema:"Schema",deprecated:{type:"boolean"}},required:["name","schema"],extensionsPrefix:"x-"},Jae={properties:{name:{type:"string"},description:{type:"string"},summary:{type:"string"},params:"ExampleList",result:"Example"},extensionsPrefix:"x-"},Kae={properties:{name:{type:"string"},summary:{type:"string"},description:{type:"string"},value:{resolvable:!1},externalValue:{type:"string"}},extensionsPrefix:"x-"},ele={properties:{name:{type:"string"},description:{type:"string"},summary:{type:"string"},method:{type:"string"},params:{type:"object"},server:"Server"},required:["name"],extensionsPrefix:"x-"},tle={properties:{code:{type:"integer"},message:{type:"string"},data:{resolvable:!1}},required:["code","message"],extensionsPrefix:"x-"},rle={properties:{contentDescriptors:"NamedContentDescriptors",schemas:"NamedSchemas",examples:"NamedExamples",links:"NamedLinks",errors:"NamedErrors",examplePairingObjects:"NamedExamplePairingObjects",tags:"NamedTags"},extensionsPrefix:"x-"},nle={properties:{name:{type:"string"},summary:{type:"string"},description:{type:"string"},externalDocs:"ExternalDocs"},required:["name"],extensionsPrefix:"x-"},ile={properties:{description:{type:"string"},url:{type:"string"}},required:["url"],extensionsPrefix:"x-"},ole={Root:Uae,Info:Wae,Contact:Bae,License:Fae,Server:Zae,ServerList:et("Server"),ServerVariable:Yae,ServerVariablesMap:Ye("ServerVariable"),Method:Gae,MethodList:et("Method"),ContentDescriptor:Hae,ContentDescriptorList:et("ContentDescriptor"),ExamplePairing:Jae,ExamplePairingList:et("ExamplePairing"),Example:Kae,ExampleList:et("Example"),Link:ele,LinkList:et("Link"),ErrorObject:tle,ErrorList:et("ErrorObject"),Components:rle,Tag:nle,TagList:et("Tag"),ExternalDocs:ile,Schema:zT,SchemaProperties:LT,Dependencies:VT,DiscriminatorMapping:XT,Discriminator:UT,NamedContentDescriptors:Ye("ContentDescriptor"),NamedSchemas:Ye("Schema"),NamedExamples:Ye("Example"),NamedLinks:Ye("Link"),NamedErrors:Ye("ErrorObject"),NamedExamplePairingObjects:Ye("ExamplePairing"),NamedTags:Ye("Tag")},TX={hide:{type:"boolean",default:!1},component:{type:"string",enum:["radio","checkbox"],default:"checkbox"},label:{type:"string"},items:{type:"array",items:{type:"string"}}},ap={type:"object",properties:TX,additionalProperties:!1},sle={type:"object",properties:{hide:{type:"boolean",default:!1},label:{type:"string"},placeholder:{type:"string"}},additionalProperties:!1},Bx={type:"object",properties:{hide:{type:"boolean",default:!1},type:{type:"string",enum:["rating","sentiment","comment","reasons","mood","scale"],default:"sentiment"},settings:{type:"object",properties:{label:{type:"string"},submitText:{type:"string"},buttonText:{type:"string"},component:{type:"string",enum:["radio","checkbox"],default:"checkbox"},items:{type:"array",items:{type:"string"},minItems:1},leftScaleLabel:{type:"string"},rightScaleLabel:{type:"string"},reasons:{type:"object",properties:Object.assign(Object.assign({},TX),{like:ap,dislike:ap,satisfied:ap,neutral:ap,dissatisfied:ap}),additionalProperties:!1},comment:{type:"object",properties:{hide:{type:"boolean",default:!1},label:{type:"string"},likeLabel:{type:"string"},dislikeLabel:{type:"string"},satisfiedLabel:{type:"string"},neutralLabel:{type:"string"},dissatisfiedLabel:{type:"string"}},additionalProperties:!1},optionalEmail:sle},additionalProperties:!1}},additionalProperties:!1},ale={type:"object",properties:{languages:{type:"array",items:{type:"object",properties:{lang:{type:"string",examples:["curl","JavaScript","Node.js","Python","Java8+Apache","Java","C#","C#+Newtonsoft","PHP","Go","Ruby","R","Payload"]},label:{type:"string"},options:{type:"object",properties:{indent:{type:"string"},withImports:{type:"boolean"},withComments:{type:"boolean"},binary:{type:"boolean"},credentials:{type:"string",enum:["omit","same-origin","include"]}},additionalProperties:!1}},required:["lang"],additionalProperties:!1}},skipOptionalParameters:{type:"boolean"},withOAuth2Call:{type:"boolean"}},additionalProperties:!1},_X={type:"array",items:{type:"object",properties:{title:{type:"string"},url:{type:"string"}},required:["url"],additionalProperties:!1}},i2={type:"object",properties:{licenseKey:{type:"string"},hideLoading:{type:"boolean"},disableRouter:{type:"boolean"},hideSidebar:{type:"boolean"},feedback:Bx,hideReplay:{type:"boolean"},oAuth2RedirectURI:{type:"string",nullable:!0},corsProxyUrl:{type:"string"},sortRequiredPropsFirst:{type:"boolean"},sanitize:{type:"boolean"},hideDownloadButtons:{type:"boolean"},downloadUrls:_X,onlyRequiredInSamples:{type:"boolean"},generatedSamplesMaxDepth:{oneOf:[{type:"number"},{type:"string"}]},showExtensions:{oneOf:[{type:"boolean"},{type:"string"},{type:"array",items:{type:"string"}}]},hideSchemaTitles:{type:"boolean"},jsonSamplesExpandLevel:{oneOf:[{type:"number"},{type:"string"}]},schemasExpansionLevel:{oneOf:[{type:"number"},{type:"string"}]},mockServer:{type:"object",properties:{url:{type:"string"},position:{type:"string",enum:["first","last","replace","off"]},description:{type:"string"}}},maxDisplayedEnumValues:{type:"number"},schemaDefinitionsTagName:{type:"string"},layout:{type:"string",enum:["stacked","three-panel"]},hideInfoMetadata:{type:"boolean"},events:{type:"object"},skipBundle:{type:"boolean"},routingBasePath:{type:"string"},codeSamples:ale,ignoreNamedSchemas:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},hidePropertiesPrefix:{type:"boolean"},excludeFromSearch:{type:"boolean"},showSchemaCatalogLinks:{type:"boolean"}},additionalProperties:!1},Du={type:"object",properties:{includeByName:{type:"array",items:{type:"string"}},excludeByName:{type:"array",items:{type:"string"}}},additionalProperties:!1},lle={type:"object",properties:{name:{type:"string"},items:Du,queries:Du,mutations:Du,subscriptions:Du,types:Du,directives:Du},required:["name"],additionalProperties:!1},cle={properties:{requireExactGroups:{type:"boolean"},groups:{type:"array",items:lle},otherItemsGroupName:{type:"string"}}},ule={type:"object",properties:{name:{type:"string"},url:{type:"string",format:"uri"},email:{type:"string",format:"email"}},additionalProperties:!1},dle={type:"object",properties:{name:{type:"string"},url:{type:"string",format:"uri"},identifier:{type:"string"}},additionalProperties:!1},fle={type:"object",properties:{title:{type:"string"},version:{type:"string"},description:{type:"string"},termsOfService:{type:"string",format:"uri"},contact:ule,license:dle},additionalProperties:!1},Ab={type:"object",properties:{menu:{type:"object",properties:Object.assign({},cle.properties),additionalProperties:!1},sidebar:{type:"object",properties:{hide:{type:"boolean"}}},downloadUrls:_X,apiLogo:{type:"object",properties:{imageUrl:{type:"string"},href:{type:"string"},altText:{type:"string"},backgroundColor:{type:"string"}}},jsonSamplesDepth:{type:"number"},samplesMaxInlineArgs:{type:"number"},licenseKey:{type:"string"},fieldExpandLevel:{type:"number"},baseUrlPath:{type:"string"},metadata:{type:"object",properties:{apiId:{type:"string"}},additionalProperties:!0},feedback:Bx,layout:{type:"string",enum:["stacked","three-panel"]},showBuiltInScalars:{type:"boolean"},showBuiltInDirectives:{type:"boolean"},info:fle},additionalProperties:!1},ple={type:"object",properties:{label:{type:"string"},lang:{enum:["curl","C#","Go","Java","Java8+Apache","JavaScript","Node.js","PHP","Python","R","Ruby"]}},required:["lang"]},hle={type:"object",properties:{enum:{type:"string"},enumSingleValue:{type:"string"},enumArray:{type:"string"},default:{type:"string"},deprecated:{type:"string"},example:{type:"string"},examples:{type:"string"},nullable:{type:"string"},recursive:{type:"string"},arrayOf:{type:"string"},webhook:{type:"string"},authorizations:{type:"string"},tryItAuthBasicUsername:{type:"string"},tryItAuthBasicPassword:{type:"string"}}},o2={type:"object",properties:{label:{type:"string"},link:{type:"string"},target:{type:"string"}},required:["label","link"]},mle={type:"object",properties:{beforeInfo:{type:"array",items:o2},end:{type:"array",items:o2}}},Ec={type:"object",properties:{main:{type:"string"},light:{type:"string"},dark:{type:"string"},contrastText:{type:"string"}}},Cg={type:"object",properties:{backgroundColor:{type:"string"},borderColor:{type:"string"},color:{type:"string"},tabTextColor:{type:"string"}}},gle={type:"object",properties:Fx(Ec.properties,["light","dark"])},yle={type:"object",properties:{basic:{type:"string"},delete:{type:"string"},get:{type:"string"},head:{type:"string"},link:{type:"string"},options:{type:"string"},patch:{type:"string"},post:{type:"string"},put:{type:"string"}}},Ole={type:"object",properties:{error:Cg,info:Cg,redirect:Cg,success:Cg}},vle={type:"object",properties:_f(Ec.properties,["dark"])},ble={type:"object",properties:{primary:{type:"string"},secondary:{type:"string"},light:{type:"string"}}},xle={type:"object",properties:{accent:Ec,border:gle,error:Ec,http:yle,primary:Ec,responses:Ole,secondary:vle,success:Ec,text:ble,tonalOffset:{type:"number"},warning:Ec}},$g={type:"object",properties:{fontSize:{type:"string"},padding:{type:"string"},minWidth:{type:"string"}}},Sle={type:"object",properties:{small:$g,medium:$g,large:$g,xlarge:$g}},Ds={type:"object",properties:{fontFamily:{type:"string"},fontSize:{type:"string"},fontWeight:{type:"string"},lineHeight:{type:"string"}}},wle={type:"object",properties:Object.assign(Object.assign({},_f(Ds.properties,["fontSize","lineHeight"])),{borderRadius:{type:"string"},hoverStyle:{type:"string"},boxShadow:{type:"string"},hoverBoxShadow:{type:"string"},sizes:Sle})},s2={type:"object",properties:Fx(Ds.properties,["fontSize","lineHeight"])},Ple={type:"object",properties:{medium:s2,small:s2}},Cle={type:"object",properties:Object.assign(Object.assign({},_f(Ds.properties,["fontSize","lineHeight"])),{borderRadius:{type:"string"},color:{type:"string"},sizes:Ple})},$le={type:"object",properties:{top:{type:"string"},width:{type:"string"},height:{type:"string"}}},kle={type:"object",properties:{borderRadius:{type:"string"},backgroundColor:{type:"string"}}},a2={type:"object",properties:{fullWidth:{type:"boolean"}}},Ele={type:"object",properties:{buttons:wle,httpBadges:Cle,layoutControls:$le,panels:kle,tryItButton:a2,tryItSendButton:a2}},Ib={type:"object",properties:{small:{type:"string"},medium:{type:"string"},large:{type:"string"}}},Tle={type:"object",properties:{maxWidth:Ib}},_le={type:"object",properties:{maxWidth:Ib,middlePanelMaxWidth:Ib}},Ale={type:"object",properties:{showDarkRightPanel:{type:"boolean"},stacked:Tle,"three-panel":_le}},l2={type:"object",properties:{backgroundColor:{type:"string"},border:{type:"string"}}},Ile={type:"object",properties:{breakFieldNames:{type:"boolean"},caretColor:{type:"string"},caretSize:{type:"string"},constraints:l2,defaultDetailsWidth:{type:"string"},examples:l2,labelsTextSize:{type:"string"},linesColor:{type:"string"},nestedBackground:{type:"string"},nestingSpacing:{type:"string"},requireLabelColor:{type:"string"},typeNameColor:{type:"string"},typeTitleColor:{type:"string"}}},AX={type:"object",properties:{subItemsColor:{type:"string"},textTransform:{type:"string"},fontWeight:{type:"string"}}},Rle={type:"object",properties:Fx(AX.properties,["textTransform"])},jle={type:"object",properties:{unit:{type:"number"},paddingHorizontal:{type:"string"},paddingVertical:{type:"string"},offsetTop:{type:"string"},offsetLeft:{type:"string"},offsetNesting:{type:"string"}}},Qle={type:"object",properties:Object.assign(Object.assign({},_f(Ds.properties,["fontWeight","lineHeight"])),{activeBgColor:{type:"string"},activeTextColor:{type:"string"},backgroundColor:{type:"string"},borderRadius:{type:"string"},breakPath:{type:"boolean"},caretColor:{type:"string"},caretSize:{type:"string"},groupItems:AX,level1items:Rle,rightLineColor:{type:"string"},separatorLabelColor:{type:"string"},showAtBreakpoint:{type:"string"},spacing:jle,textColor:{type:"string"},width:{type:"string"}})},kg={type:"object",properties:Object.assign(Object.assign({},Ds.properties),{color:{type:"string"},transform:{type:"string"}})},Dle={type:"object",properties:Object.assign(Object.assign({},Ds.properties),{backgroundColor:{type:"string"},color:{type:"string"},wordBreak:{type:"string",enum:["break-all","break-word","keep-all","normal","revert","unset","inherit","initial"]},wrap:{type:"boolean"}})},Nle={type:"object",properties:_f(Ds.properties,["fontSize"])},Mle={type:"object",properties:{color:{type:"string"},hover:{type:"string"},textDecoration:{type:"string"},hoverTextDecoration:{type:"string"},visited:{type:"string"}}},qle={type:"object",properties:Object.assign(Object.assign({code:Dle,fieldName:Ds},Fx(Ds.properties,["fontSize","fontFamily"])),{fontWeightBold:{type:"string"},fontWeightLight:{type:"string"},fontWeightRegular:{type:"string"},heading1:kg,heading2:kg,heading3:kg,headings:Nle,lineHeight:{type:"string"},links:Mle,optimizeSpeed:{type:"boolean"},rightPanelHeading:kg,smoothing:{type:"string",enum:["auto","none","antialiased","subpixel-antialiased","grayscale"]}})},zle={type:"object",properties:Object.assign({color:{type:"string"}},_f(Ds.properties,["fontWeight"]))},Lle={type:"object",properties:{backgroundColor:{type:"string"},borderRadius:{type:"string"},tokens:zle}},Vle={type:"object",properties:{gutter:{type:"string"},maxHeight:{type:"string"},maxWidth:{type:"string"}}},Xle={type:"object",properties:{backgroundColor:{type:"string"},color:{type:"string"}}},c2={type:"object",properties:{custom:{type:"string"}}},Ule={type:"object",properties:{DownloadButton:c2,NextSectionButton:c2}},Wle={type:"object",properties:{backgroundColor:{type:"string"},panelBackgroundColor:{type:"string"},panelControlsBackgroundColor:{type:"string"},showAtBreakpoint:{type:"string"},textColor:{type:"string"},width:{type:"string"}}},Ble={type:"object",properties:{borderRadius:{type:"string"}}},Fle={type:"object",properties:{sectionHorizontal:{type:"number"},sectionVertical:{type:"number"},unit:{type:"number"}}},Zle={type:"object",properties:{breakpoints:Ib,codeBlock:Lle,colors:xle,components:Ele,layout:Ale,logo:Vle,fab:Xle,overrides:Ule,rightPanel:Wle,schema:Ile,shape:Ble,sidebar:Qle,spacing:Fle,typography:qle,links:{properties:{color:{type:"string"}}},codeSample:{properties:{backgroundColor:{type:"string"}}}}},Yle={type:"object",properties:{skipOptionalParameters:{type:"boolean"},languages:{type:"array",items:ple}},required:["languages"]},Gle={properties:{theme:Zle,ctrlFHijack:{type:"boolean"},defaultSampleLanguage:{type:"string"},disableDeepLinks:{type:"boolean"},disableSearch:{type:"boolean"},disableSidebar:{type:"boolean"},downloadDefinitionUrl:{type:"string"},expandDefaultServerVariables:{type:"boolean"},enumSkipQuotes:{type:"boolean"},expandDefaultRequest:{type:"boolean"},expandDefaultResponse:{type:"boolean"},expandResponses:{type:"string"},expandSingleSchemaField:{type:"boolean"},generateCodeSamples:Yle,generatedPayloadSamplesMaxDepth:{type:"number"},hideDownloadButton:{type:"boolean"},hideHostname:{type:"boolean"},hideInfoSection:{type:"boolean"},hideLogo:{type:"boolean"},hideRequestPayloadSample:{type:"boolean"},hideRightPanel:{type:"boolean"},hideSchemaPattern:{type:"boolean"},hideSingleRequestSampleTab:{type:"boolean"},hideSecuritySection:{type:"boolean"},hideTryItPanel:{type:"boolean"},hideFab:{type:"boolean"},hideOneOfDescription:{type:"boolean"},htmlTemplate:{type:"string"},jsonSampleExpandLevel:{oneOf:[{type:"number",minimum:1},{type:"string"}]},labels:hle,menuToggle:{type:"boolean"},nativeScrollbars:{type:"boolean"},noAutoAuth:{type:"boolean"},onDeepLinkClick:{type:"object"},pagination:{enum:["none","section","item"]},pathInMiddlePanel:{type:"boolean"},payloadSampleIdx:{type:"number",minimum:0},requiredPropsFirst:{type:"boolean"},routingStrategy:{type:"string"},samplesTabsMaxCount:{type:"number"},schemaExpansionLevel:{oneOf:[{type:"number",minimum:0},{type:"string"}]},minCharacterLengthToInitSearch:{type:"number",minimum:1},maxResponseHeadersToShowInTryIt:{type:"number",minimum:0},scrollYOffset:{oneOf:[{type:"number"},{type:"string"}]},searchAutoExpand:{type:"boolean"},searchFieldLevelBoost:{type:"number",minimum:0},searchMaxDepth:{type:"number",minimum:1},searchMode:{type:"string",enum:["default","path-only"]},searchOperationTitleBoost:{type:"number"},searchTagTitleBoost:{type:"number"},sendXUserAgentInTryIt:{type:"boolean"},showChangeLayoutButton:{type:"boolean"},showConsole:{type:"boolean"},showNextButton:{type:"boolean"},showRightPanelToggle:{type:"boolean"},showSecuritySchemeType:{type:"boolean"},showWebhookVerb:{type:"boolean"},showObjectSchemaExamples:{type:"boolean"},disableTryItRequestUrlEncoding:{type:"boolean"},sidebarLinks:mle,sideNavStyle:{type:"string",enum:["summary-only","path-first","id-only","path-only"]},simpleOneOfTypeLabel:{type:"boolean"},sortEnumValuesAlphabetically:{type:"boolean"},sortOperationsAlphabetically:{type:"boolean"},sortPropsAlphabetically:{type:"boolean"},sortTagsAlphabetically:{type:"boolean"},suppressWarnings:{type:"boolean"},unstable_externalDescription:{type:"boolean"},unstable_ignoreMimeParameters:{type:"boolean"},untrustedDefinition:{type:"boolean"},showAccessMode:{type:"boolean"},preserveOriginalExtensionsName:{type:"boolean"},markdownHeadingsAnchorLevel:{type:"number"}}};function Fx(t,e){return Object.fromEntries(e.filter(r=>r in t).map(r=>[r,t[r]]))}function _f(t,e){return Object.fromEntries(Object.entries(t).filter(([r])=>!e.includes(r)))}const is={type:"object",additionalProperties:{oneOf:[{type:"string"},{type:"object"}]}},WT={rules:is,oas2Rules:is,oas3_0Rules:is,oas3_1Rules:is,oas3_2Rules:is,async2Rules:is,async3Rules:is,arazzo1Rules:is,overlay1Rules:is,openrpc1Rules:is},os={type:"object",additionalProperties:!0},BT={preprocessors:os,oas2Preprocessors:os,oas3_0Preprocessors:os,oas3_1Preprocessors:os,oas3_2Preprocessors:os,async2Preprocessors:os,async3Preprocessors:os,arazzo1Preprocessors:os,overlay1Preprocessors:os,openrpc1Preprocessors:os},ss={type:"object",additionalProperties:!0},FT={decorators:ss,oas2Decorators:ss,oas3_0Decorators:ss,oas3_1Decorators:ss,oas3_2Decorators:ss,async2Decorators:ss,async3Decorators:ss,arazzo1Decorators:ss,overlay1Decorators:ss,openrpc1Decorators:ss},pn={type:"object",properties:{hide:{type:"boolean"}},additionalProperties:!1},u2={type:"object",properties:{src:{type:"string"},async:{type:"boolean"},crossorigin:{type:"string"},defer:{type:"boolean"},fetchpriority:{type:"string"},integrity:{type:"string"},module:{type:"boolean"},nomodule:{type:"boolean"},nonce:{type:"string"},referrerpolicy:{type:"string"},type:{type:"string"}},required:["src"],additionalProperties:!0},KS={type:"object",properties:{page:{type:"string"},directory:{type:"string"},disconnect:{type:"boolean",default:!1},group:{type:"string"},label:{type:"string"},href:{type:"string"},external:{type:"boolean"},labelTranslationKey:{type:"string"},groupTranslationKey:{type:"string"},icon:{oneOf:[{type:"string"},{type:"object",properties:{srcSet:{type:"string"}},required:["srcSet"]}]},separator:{type:"string"},separatorLine:{type:"boolean"},linePosition:{type:"string",enum:["top","bottom"],default:"top"},version:{type:"string"},menuStyle:{type:"string",enum:["drilldown"]},expanded:{type:"string",const:"always"},selectFirstItemOnExpand:{type:"boolean"},flatten:{type:"boolean"},linkedSidebars:{type:"array",items:{type:"string"}},items:{type:"array",items:{type:"object",additionalProperties:!0}},rbac:{type:"object",additionalProperties:{type:"string"}},additionalProps:{type:"object",additionalProperties:!0}}},ZT={type:"array",items:Object.assign(Object.assign({},KS),{properties:Object.assign(Object.assign({},KS.properties),{items:{type:"array",items:KS}})})},Hle={type:"object",properties:{name:{type:"string"},icon:{type:"string"},folder:{type:"string"}},additionalProperties:!1,required:["name","folder"]},Jle={type:"object",properties:{hide:{type:"boolean",default:!1},suggestions:{default:[],type:"array",items:{type:"string"}},prompt:{type:"string"}},additionalProperties:!1},Kle={type:"array",items:{type:"object",required:["name","field","type"],properties:{name:{type:"string"},field:{type:"string"},type:{type:"string",enum:["multi-select","select","tags"]}},additionalProperties:!1}},ece={type:"object",properties:Object.assign({facets:Kle},pn.properties),additionalProperties:!1},tce={type:"object",properties:{page:{type:"string"},label:{type:"string"},labelTranslationKey:{type:"string"}},required:["page"]},IX={type:"object",properties:{image:{type:"string"},srcSet:{type:"string"},altText:{type:"string"},link:{type:"string"},favicon:{type:"string"}},additionalProperties:!1},RX={type:"object",properties:Object.assign({items:ZT},pn.properties),additionalProperties:!1},jX={type:"object",additionalProperties:Hle},QX={type:"object",properties:Object.assign({items:ZT,copyrightText:{type:"string"},logo:pn},pn.properties),additionalProperties:!1},DX={type:"object",properties:Object.assign({separatorLine:{type:"boolean"},linePosition:{type:"string",enum:["top","bottom"],default:"bottom"}},pn.properties),additionalProperties:!1},NX={type:"object",properties:{head:{type:"array",items:u2},body:{type:"array",items:u2}},additionalProperties:!1},MX={type:"array",items:{type:"object",properties:{href:{type:"string"},as:{type:"string"},crossorigin:{type:"string"},fetchpriority:{type:"string"},hreflang:{type:"string"},imagesizes:{type:"string"},imagesrcset:{type:"string"},integrity:{type:"string"},media:{type:"string"},prefetch:{type:"string"},referrerpolicy:{type:"string"},rel:{type:"string"},sizes:{type:"string"},title:{type:"string"},type:{type:"string"}},required:["href"],additionalProperties:!0}},qX={type:"object",properties:Object.assign({engine:{type:"string",enum:["flexsearch","typesense"],default:"flexsearch"},ai:Jle,filters:ece,placement:{type:"string",default:"navbar"},shortcuts:{type:"array",items:{type:"string"},default:["⌘+K,ctrl+K"]},suggestedPages:{type:"array",items:tce}},pn.properties),additionalProperties:!1},zX={type:"object",properties:{hide:{type:"boolean"},suggestions:{default:[],type:"array",items:{type:"string"}},prompt:{type:"string"},trigger:{type:"object",properties:{hide:{type:"boolean",default:!1},inputType:{type:"string",enum:["button","icon"],default:"button"},inputIcon:{type:"string",enum:["chat","sparkles","redocly"],default:"sparkles"}},additionalProperties:!1}},additionalProperties:!1},LX={type:"object",properties:Object.assign({ignoreDetection:{type:"boolean"},modes:{type:"array",items:{type:"string"},default:["light","dark"]}},pn.properties),additionalProperties:!1},rce={type:"object",properties:Object.assign(Object.assign({},pn.properties),{items:{type:"array",items:{type:"string",enum:["copy","view","chatgpt","claude","docs-mcp-cursor","docs-mcp-vscode"]},default:["copy","view","chatgpt","claude","docs-mcp-cursor","docs-mcp-vscode"]}}),additionalProperties:!1},VX={type:"object",properties:{nextButton:{type:"object",properties:Object.assign({text:{type:"string"}},pn.properties),additionalProperties:!1,default:{}},previousButton:{type:"object",properties:Object.assign({text:{type:"string"}},pn.properties),additionalProperties:!1,default:{}},actions:rce},additionalProperties:!1},XX={type:"object",properties:{elementFormat:{type:"string",default:"icon"},copy:{type:"object",properties:Object.assign({},pn.properties),additionalProperties:!1,default:{hide:!1}},report:{type:"object",properties:Object.assign({tooltipText:{type:"string"},buttonText:{type:"string"},label:{type:"string"}},pn.properties),additionalProperties:!1,default:{hide:!1}},expand:{type:"object",properties:Object.assign({},pn.properties),additionalProperties:!1,default:{hide:!1}},collapse:{type:"object",properties:Object.assign({},pn.properties),additionalProperties:!1,default:{hide:!1}}},additionalProperties:!1},UX={type:"object",properties:{frontMatterKeysToResolve:{type:"array",items:{type:"string"},default:["image","links"]},partialsFolders:{type:"array",items:{type:"string"},default:["**/_partials/**"]},lastUpdatedBlock:{type:"object",properties:Object.assign({format:{type:"string",enum:["timeago","iso","long","short"],default:"timeago"},locale:{type:"string"}},pn.properties),additionalProperties:!1,default:{}},toc:{type:"object",properties:Object.assign({header:{type:"string",default:"On this page"},depth:{type:"integer",default:3,minimum:1}},pn.properties),additionalProperties:!1,default:{}},editPage:{type:"object",properties:Object.assign({baseUrl:{type:"string"}},pn.properties),additionalProperties:!1,default:{}}},additionalProperties:!1,default:{}},Rb=Object.assign(Object.assign({},i2),{properties:Object.assign(Object.assign({},i2.properties),Gle.properties)}),nce={type:"object",properties:{includeInDevelopment:{type:"boolean"},scriptUrl:{type:"string"},pageViewEventName:{type:"string"}},additionalProperties:!1,required:["scriptUrl"]},ice={type:"object",properties:{includeInDevelopment:{type:"boolean"},apiKey:{type:"string"},head:{type:"boolean"},respectDNT:{type:"boolean"},exclude:{type:"array",items:{type:"string"}},outboundClickEventName:{type:"string"},pageViewEventName:{type:"string"},amplitudeConfig:{type:"object",additionalProperties:!0}},additionalProperties:!1,required:["apiKey"]},oce={type:"object",properties:{includeInDevelopment:{type:"boolean"},orgId:{type:"string"}},additionalProperties:!1,required:["orgId"]},sce={type:"object",properties:{includeInDevelopment:{type:"boolean"},appId:{type:"string"}},additionalProperties:!1,required:["appId"]},ace={type:"object",properties:{includeInDevelopment:{type:"boolean"},writeKey:{type:"string",minLength:10},trackPage:{type:"boolean"},dataPlaneUrl:{type:"string"},controlPlaneUrl:{type:"string"},sdkUrl:{type:"string"},loadOptions:{type:"object",additionalProperties:!0}},additionalProperties:!1,required:["writeKey"]},lce={type:"object",properties:{includeInDevelopment:{type:"boolean"},writeKey:{type:"string",minLength:10},trackPage:{type:"boolean"},includeTitleInPageCall:{type:"boolean"},host:{type:"string"}},additionalProperties:!1,required:["writeKey"]},cce={type:"object",properties:{includeInDevelopment:{type:"boolean"},trackingId:{type:"string"},gtmAuth:{type:"string"},gtmPreview:{type:"string"},defaultDataLayer:{},dataLayerName:{type:"string"},enableWebVitalsTracking:{type:"boolean"},selfHostedOrigin:{type:"string"},pageViewEventName:{type:"string"}},additionalProperties:!1,required:["trackingId"]},WX={type:"object",properties:{includeInDevelopment:{type:"boolean"},trackingId:{type:"string"},conversionId:{type:"string"},floodlightId:{type:"string"},optimizeId:{type:"string"},exclude:{type:"array",items:{type:"string"}}},additionalProperties:!1,required:["trackingId"]},uce={type:"object",properties:{includeInDevelopment:{type:"boolean"},trackingId:{type:"string"},conversionId:{type:"string"},floodlightId:{type:"string"},head:{type:"boolean"},respectDNT:{type:"boolean"},exclude:{type:"array",items:{type:"string"}},optimizeId:{type:"string"},anonymizeIp:{type:"boolean"},cookieExpires:{type:"number"},trackers:{type:"object",additionalProperties:WX}},additionalProperties:!1,required:["trackingId"]},BX={type:"object",properties:{adobe:nce,amplitude:ice,fullstory:oce,heap:sce,rudderstack:ace,segment:lce,gtm:cce,ga:uce}},FX={type:"object",properties:Object.assign({items:{type:"array",items:{type:"object",properties:{label:{type:"string"},external:{type:"boolean"},link:{type:"string"},separatorLine:{type:"boolean"}},additionalProperties:!0},default:[]},hideLoginButton:{type:"boolean"}},pn.properties),additionalProperties:!1},ZX={type:"object",properties:{hide:{type:"boolean"},showForUnversioned:{type:"boolean"}}},YX={type:"object",properties:{hide:{type:"boolean"},prefixItems:{type:"array",items:{type:"object",properties:{label:{type:"string"},labelTranslationKey:{type:"string"},page:{type:"string"},icon:{type:"string"}},additionalProperties:!1,default:{}}}},additionalProperties:!1},dce={type:"object",additionalProperties:!1,required:["title","property"],properties:{type:{type:"string",enum:["select","checkboxes","date-range"],default:"checkboxes"},title:{type:"string"},titleTranslationKey:{type:"string"},property:{type:"string"},parentFilter:{type:"string"},valuesMapping:{type:"object",additionalProperties:{type:"string"}},missingCategoryName:{type:"string"},missingCategoryNameTranslationKey:{type:"string"},options:{type:"array",items:{type:"string"}}}},fce={type:"object",additionalProperties:!0,required:["slug","items"],properties:{show:{type:"boolean"},slug:{type:"string"},filters:{type:"array",items:dce},groupByFirstFilter:{type:"boolean"},filterValuesCasing:{type:"string",enum:["sentence","original","lowercase","uppercase"]},items:ZT,requiredPermission:{type:"string"},separateVersions:{type:"boolean"},title:{type:"string"},titleTranslationKey:{type:"string"},description:{type:"string"},descriptionTranslationKey:{type:"string"}}},jb={type:"object",patternProperties:{".*":fce}},Qb={type:"object",additionalProperties:!0,required:[],properties:{ignoreNonCompliant:{type:"boolean",default:!1},teamMetadataProperty:{type:"object",properties:{property:{type:"string"},label:{type:"string"},default:{type:"string"}}},levels:{type:"array",items:{type:"object",required:["name"],properties:Object.assign(Object.assign(Object.assign({name:{type:"string"},color:{type:"string"},extends:{type:"array",items:{type:"string"}}},WT),BT),FT),additionalProperties:!1}},targets:{type:"array",items:{type:"object",required:["where"],properties:{minimumLevel:{type:"string"},rules:{type:"object",additionalProperties:!0},where:{type:"object",required:["metadata"],properties:{metadata:{type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1}},additionalProperties:!1}},ignore:{type:"array",items:{type:"string"}},fromProjectUrl:{type:"string",format:"uri"}}},pce={type:"object",required:["key"],properties:{key:{type:"string"}},additionalProperties:!1},hce={type:"object",required:["type"],properties:{type:{type:"string"}},additionalProperties:!1},mce={type:"object",required:["property","title"],properties:{property:{type:"string"},hide:{type:"boolean"},label:{type:"string"},options:{type:"array",items:{type:"string"}},type:{type:"string",enum:["select","checkboxes","date-range"],default:"checkboxes"},title:{type:"string"},titleTranslationKey:{type:"string"},parentFilter:{type:"string"},valuesMapping:{type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1},na={type:"object",properties:{slug:{type:"string"},hide:{type:"boolean"},includes:{type:"array",items:hce},excludes:{type:"array",items:pce},filters:{type:"array",items:mce},titleTranslationKey:{type:"string"},descriptionTranslationKey:{type:"string"},catalogSwitcherLabelTranslationKey:{type:"string"}},additionalProperties:!1},gce={type:"object",properties:{type:{type:"string",enum:["string","number","boolean","array","object"]},description:{type:"string"},example:{oneOf:[{type:"string"},{type:"number"},{type:"boolean"},{type:"array"},{type:"object"}]},enum:{type:"array",items:{type:"string"}},pattern:{type:"string"},format:{type:"string"},minimum:{type:"number"},maximum:{type:"number"},items:{type:"object"}},additionalProperties:!0},yce={type:"object",required:["type","properties"],properties:{type:{type:"string",enum:["object"]},description:{type:"string"},properties:{type:"object",additionalProperties:gce},required:{type:"array",items:{type:"string"}},additionalProperties:{type:"boolean"}},additionalProperties:!0},Oce={type:"object",required:["name","description","metadataSchema"],properties:{name:{type:"string",description:"Display name of the entity type"},description:{type:"string",description:"Description of the entity type"},metadataSchema:yce,icon:{type:"object",properties:{src:{type:"string"},srcSet:{type:"string"}},additionalProperties:!1}},additionalProperties:!1},vce={type:"object",additionalProperties:Oce},GX={type:"object",properties:{show:{type:"boolean",default:!1},entityTypes:vce,catalogs:{type:"object",properties:{all:na,services:na,domains:na,teams:na,users:na,apiDescriptions:na,dataSchemas:na,apiOperations:na},additionalProperties:na}},additionalProperties:!1},Qh={type:"string",enum:["eq","in","gt","gte","lt","lte","contains","startsWith","endsWith","exists","isEmpty","between","matches","some","every","none","and","or","not"]},b$={type:"object",properties:{field:{type:"string"},operator:Qh,value:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"}]},match:{type:"array",items:{type:"object",properties:{field:{type:"string"},operator:Qh,value:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"}]}}}}}},bce={type:"object",properties:{operator:Qh,conditions:{type:"array",items:b$}},required:["operator","conditions"],additionalProperties:!1},d2={type:"array",items:{oneOf:[b$,{type:"object",properties:{operator:Qh,conditions:{type:"array",items:{oneOf:[b$,bce]}}},required:["operator","conditions"],additionalProperties:!1}]}},HX={type:"object",properties:{defined:{type:"boolean"},nonEmpty:{type:"boolean"},eq:{},gt:{type:"number"},gte:{type:"number"},lt:{type:"number"},lte:{type:"number"},const:{}},additionalProperties:!1},xce={type:"array",items:{type:"object",properties:{subject:{type:"object",properties:{type:{type:"string",enum:["Entity","EntityMetadata","EntityRelations","EntityRelation"]},property:{type:"string"}},required:["type","property"],additionalProperties:!1},assertions:HX},required:["subject","assertions"],additionalProperties:!1}},Sce={type:"object",properties:{title:{type:"string"},subject:{type:"object",properties:{type:{type:"string",enum:["Entity","EntityMetadata","EntityRelations","EntityRelation"]},property:{type:"string"}},required:["type","property"],additionalProperties:!1},severity:{type:"string",enum:["error","warn","off"]},message:{type:"string"},assertions:HX,where:xce,weight:{type:"number",default:1}},required:["subject","assertions"],additionalProperties:!1},wce={type:"object",additionalProperties:{oneOf:[{type:"string"},{type:"object",properties:{severity:{type:"string",enum:["error","warn","off"]},weight:{type:"number",default:1}},additionalProperties:!0},Sce]}},Pce={type:"object",properties:{name:{type:"string"},extends:{type:"array",items:{type:"string"}},rules:wce},required:["name"],additionalProperties:!1},f2={type:"object",properties:{event:{type:"string",enum:["runtime","manual"]}},required:["event"],additionalProperties:!1},Cce={oneOf:[f2,{type:"array",items:f2}]},$ce={type:"object",properties:{name:{type:"string"},description:{type:"string"},entities:{oneOf:[d2,{type:"object",properties:{operator:Qh,conditions:d2},required:["operator","conditions"],additionalProperties:!1}]},levels:{type:"array",items:Pce,minItems:1},trigger:Cce},required:["name","entities","levels"],additionalProperties:!1},JX={type:"array",items:$ce},hs={type:"object",properties:{imports:{type:"array",items:{type:"string"}},logo:IX,navbar:RX,products:jX,footer:QX,sidebar:DX,scripts:NX,links:MX,feedback:Bx,search:qX,aiAssistant:zX,colorMode:LX,navigation:VX,codeSnippet:XX,markdown:UX,openapi:Rb,graphql:Ab,analytics:BX,userMenu:FX,versionPicker:ZX,breadcrumbs:YX,catalog:jb,entitiesCatalog:GX,catalogClassic:jb,scorecard:Qb,scorecards:JX,scorecardClassic:Qb},additionalProperties:!0},kce="https://redocly.com/sso/teams";var Db;(function(t){t.OIDC="OIDC",t.SAML2="SAML2"})(Db||(Db={}));var Nb;(function(t){t.SERVICE_ACCOUNT="SERVICE_ACCOUNT",t.OAUTH2="OAUTH2"})(Nb||(Nb={}));var p2;(function(t){t.STACKED="stacked",t.THREE_PANEL="three-panel"})(p2||(p2={}));const Ece=["partOf","hasParts","creates","createdBy","owns","ownedBy","implements","implementedBy","dependsOn","dependencyOf","uses","usedBy","produces","consumes","linksTo","supersedes","supersededBy","compatibleWith","extends","extendedBy","relatesTo","hasMember","memberOf","triggers","triggeredBy","returns","returnedBy"];function x$(t,e){return Object.fromEntries(Object.entries(t).map(([r,n])=>{if(r!==e)return typeof n!="object"||!n?[r,n]:Array.isArray(n)?[r,n.map(i=>typeof i=="object"?x$(i,e):i)]:[r,x$(n,e)]}).filter(Boolean))}const Tce={type:"object",additionalProperties:{type:"string"}},_ce={type:"object",additionalProperties:!1,patternProperties:{"^[a-zA-Z0-9_-]+$":{type:"string",pattern:"^https?://[^\\s/$.?#].[^\\s]*$"}}},Eg={type:"string",enum:["error","warn","off"]},Ace={type:"object",additionalProperties:!1,properties:{schemaCheck:Eg,statusCodeCheck:Eg,contentTypeCheck:Eg,successCriteriaCheck:Eg}},Ice={type:"object",properties:{event:{type:"string",enum:["schedule"]},interval:{type:"string",enum:["1m","2m","5m","10m","15m","30m","1h","3h","6h","12h","1d","7d"]}},required:["event"],additionalProperties:!1},Rce={type:"object",properties:{event:{type:"string",enum:["build"]}},required:["event"],additionalProperties:!1},jce={type:"object",properties:{warn:{type:"number"},error:{type:"number"}},additionalProperties:!1},Qce={type:"object",properties:{ignoreLint:{oneOf:[{type:"boolean",default:!1},{type:"object",additionalProperties:{type:"boolean"}}]},ignoreLinkChecker:{type:"boolean"},ignoreMarkdocErrors:{type:"boolean"},ignoreRespectMonitoring:{type:"boolean"},jobs:{type:"array",items:{type:"object",properties:{path:{type:"string",pattern:"^(?!\\/|\\.\\./)"},agent:{type:"string",enum:["respect"]},trigger:{oneOf:[Ice,Rce]},inputs:Tce,servers:_ce,severity:Ace,slo:jce},required:["path","trigger","agent"],additionalProperties:!1}}},additionalProperties:!1},Dce={type:"object",properties:{end_session_endpoint:{type:"string"},token_endpoint:{type:"string"},authorization_endpoint:{type:"string"},jwks_uri:{type:"string"}},required:["token_endpoint","authorization_endpoint"],additionalProperties:!0},Nce={type:"object",properties:{type:{type:"string",const:Db.OIDC},title:{type:"string"},pkce:{type:"boolean",default:!1},configurationUrl:{type:"string",minLength:1},configuration:Dce,clientId:{type:"string",minLength:1},clientSecret:{type:"string",minLength:0},teamsClaimName:{type:"string"},teamsClaimMap:{type:"object",additionalProperties:{type:"string"}},defaultTeams:{type:"array",items:{type:"string"}},scopes:{type:"array",items:{type:"string"}},tokenExpirationTime:{type:"number"},authorizationRequestCustomParams:{type:"object",additionalProperties:{type:"string"}},introspectEndpoint:{type:"string"},tokenRequestCustomParams:{type:"object",additionalProperties:{type:"string"}},audience:{type:"array",items:{type:"string"}}},required:["type","clientId"],oneOf:[{required:["configurationUrl"]},{required:["configuration"]}],additionalProperties:!1},Mce={type:"object",properties:{type:{type:"string",const:Db.SAML2},title:{type:"string"},issuerId:{type:"string"},entityId:{type:"string"},ssoUrl:{type:"string"},x509PublicCert:{type:"string"},teamsAttributeName:{type:"string",default:kce},teamsAttributeMap:{type:"object",additionalProperties:{type:"string"}},defaultTeams:{type:"array",items:{type:"string"}}},additionalProperties:!1,required:["type","issuerId","ssoUrl","x509PublicCert"]},qce={oneOf:[Nce,Mce],discriminator:{propertyName:"type"}},zce={type:"object",additionalProperties:qce},Lce={oneOf:[{type:"array",items:{type:"string",enum:["REDOCLY","CORPORATE","GUEST"]},uniqueItems:!0},{type:"string",enum:["REDOCLY","CORPORATE","GUEST"]}]},Vce={type:"object",properties:{to:{type:"string"},type:{type:"number",default:301}},additionalProperties:!1},Xce={type:"object",additionalProperties:Vce,default:{}},Uce={type:"string",enum:["info","success","warning","error"],default:"info"},Wce={type:"object",properties:{content:{type:"string"},dismissible:{type:"boolean",default:!1},target:{type:"string"},color:Uce},required:["content"],additionalProperties:!1},Bce={type:"array",items:Wce,default:[]},KX={type:"object",properties:Object.assign(Object.assign(Object.assign(Object.assign({root:{type:"string"},output:{type:"string",pattern:"(.ya?ml|.json)$"},rbac:{type:"object",additionalProperties:!0},openapi:Rb,graphql:Ab,theme:{type:"object",properties:{openapi:Rb,graphql:Ab},additionalProperties:!1},title:{type:"string"},metadata:{type:"object",additionalProperties:!0}},WT),BT),FT),{extends:{type:"array",items:{type:"string"}}}),required:["root"]},Fce={type:"object",additionalProperties:!0},Zce={type:"object",additionalProperties:{type:"object",additionalProperties:!0}},h2={type:"object",properties:{hide:{type:"boolean",default:!1},title:{type:"string"},description:{type:"string"},details:{type:"object",properties:{path:{type:"string"},content:{type:"string"}},additionalProperties:!1},excludeFiles:{type:"array",items:{type:"string"},default:[]},sections:{type:"array",items:{type:"object",properties:{title:{type:"string"},description:{type:"string"},includeFiles:{type:"array",items:{type:"string"},default:[]},excludeFiles:{type:"array",items:{type:"string"},default:[]}},required:["title"],additionalProperties:!1}}},default:{hide:!1,title:void 0,description:void 0,details:void 0,sections:[{title:"Table of contents",includeFiles:["**/*"],excludeFiles:[]}]},additionalProperties:!1},m2={type:"object",properties:{title:{type:"string"},projectTitle:{type:"string"},description:{type:"string"},siteUrl:{type:"string"},image:{type:"string"},keywords:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},lang:{type:"string"},jsonLd:{type:"object"},meta:{type:"array",items:{type:"object",properties:{name:{type:"string"},content:{type:"string"}},required:["name","content"],additionalProperties:!1}},llmstxt:h2},default:{llmstxt:h2.default},additionalProperties:!1},Yce={type:"object",properties:{folders:{type:"array",items:{type:"string"}}},additionalProperties:!1},pc={type:"object",additionalProperties:{type:"string"}},Gce={type:"object",properties:{teamNamePatterns:{type:"array",items:{type:"string"}},teamFolders:{type:"array",items:{type:"string"}},teamFoldersBaseRoles:pc,cms:pc,reunite:pc,features:{type:"object",properties:{aiSearch:pc},additionalProperties:!1},content:{type:"object",properties:{"**":pc},additionalProperties:pc}},additionalProperties:pc},Hce={type:"object",properties:{static:{type:"string"}},additionalProperties:!1,required:["static"]},Jce={type:"object",properties:{idp:{type:"string"}},additionalProperties:!1,required:["idp"]},Kce={type:"object",properties:{type:{type:"string",const:"GRAVITEE"},apiBaseUrl:{type:"string"},env:{type:"string"},allowApiProductsOutsideCatalog:{type:"boolean",default:!1},stage:{type:"string",default:"non-production"},auth:{oneOf:[Hce,Jce]}},additionalProperties:!1,required:["type","apiBaseUrl"]},eue={type:"object",properties:{type:{type:"string",const:Nb.OAUTH2},tokenEndpoint:{type:"string"},clientId:{type:"string"},clientSecret:{type:"string"}},additionalProperties:!1,required:["type","tokenEndpoint","clientId","clientSecret"]},tue={type:"object",properties:{type:{type:"string",const:Nb.SERVICE_ACCOUNT},serviceAccountEmail:{type:"string"},serviceAccountPrivateKey:{type:"string"}},additionalProperties:!1,required:["type","serviceAccountEmail","serviceAccountPrivateKey"]},S$={type:"object",properties:{type:{type:"string",const:"APIGEE_X"},apiUrl:{type:"string"},stage:{type:"string",default:"non-production"},organizationName:{type:"string"},ignoreApiProducts:{type:"array",items:{type:"string"}},allowApiProductsOutsideCatalog:{type:"boolean",default:!1},auth:{type:"object",oneOf:[eue,tue],discriminator:{propertyName:"type"}}},additionalProperties:!1,required:["type","organizationName","auth"]},rue=Object.assign(Object.assign({},S$),{properties:Object.assign(Object.assign({},S$.properties),{type:{type:"string",const:"APIGEE_EDGE"}})}),nue={type:"object",oneOf:[S$,rue,Kce],discriminator:{propertyName:"type"}},iue={type:"object",required:["adapters"],additionalProperties:!1,properties:{adapters:{type:"array",items:nue}}},g2={type:"object",properties:{defaultLocale:{type:"string"},locales:{type:"array",items:{type:"object",properties:{code:{type:"string"},name:{type:"string"}},required:["code"]}}},additionalProperties:!1,required:["defaultLocale"]},oue={type:"object",properties:{name:{type:"string"},value:{type:"string"}},additionalProperties:!1,required:["name","value"]},sue={type:"object",properties:{hide:{type:"boolean",default:!1},docs:{type:"object",properties:{hide:{type:"boolean",default:!1},name:{type:"string",default:"Docs MCP server"},ignore:{type:"array",items:{type:"string"},default:[]}},additionalProperties:!1}},additionalProperties:!1,default:{hide:!1,docs:{hide:!1,name:"MCP server",ignore:[]}}},Mb={type:"object",properties:Object.assign(Object.assign(Object.assign(Object.assign({imports:{type:"array",items:{type:"string"}},licenseKey:{type:"string"},redirects:Xce,seo:m2,rbac:Gce,apiFunctions:Yce,requiresLogin:{type:"boolean"},responseHeaders:{type:"object",additionalProperties:{type:"array",items:oue}},mockServer:{type:"object",properties:{off:{type:"boolean",default:!1},position:{type:"string",enum:["first","last","replace","off"],default:"first"},strictExamples:{type:"boolean",default:!1},errorIfForcedExampleNotFound:{type:"boolean",default:!1},description:{type:"string"}}},apis:{type:"object",additionalProperties:KX},extends:{type:"array",items:{type:"string"}}},WT),FT),BT),{ssoDirect:zce,sso:Lce,residency:{type:"string",pattern:"^https?://.*"},developerOnboarding:iue,removeAttribution:{type:"boolean"},i18n:g2,l10n:g2,metadata:Fce,metadataGlobs:Zce,ignore:{type:"array",items:{type:"string"}},theme:hs,reunite:Qce,logo:IX,navbar:RX,products:jX,footer:QX,sidebar:DX,scripts:NX,links:MX,feedback:Bx,search:qX,aiAssistant:zX,colorMode:LX,navigation:VX,codeSnippet:XX,markdown:UX,openapi:Rb,graphql:Ab,analytics:BX,userMenu:FX,versionPicker:ZX,breadcrumbs:YX,catalog:jb,entitiesCatalog:GX,catalogClassic:jb,scorecard:Qb,scorecards:JX,scorecardClassic:Qb,mcp:sue,banner:Bce}),default:{redirects:{},seo:m2.default},additionalProperties:!0},aue=Object.assign(Object.assign({},x$(Mb,"default")),{additionalProperties:!1}),YT=Object.assign(Object.assign({$id:"root-redocly-config"},Mb),{properties:Object.assign(Object.assign({plugins:{type:"array",items:{type:"string"}}},Mb.properties),{env:{type:"object",additionalProperties:aue}}),default:{},additionalProperties:!1}),y2={type:"object",properties:{logo:hs.properties.logo,navbar:hs.properties.navbar,footer:hs.properties.footer,sidebar:hs.properties.sidebar,search:hs.properties.search,codeSnippet:hs.properties.codeSnippet,breadcrumbs:hs.properties.breadcrumbs,openapi:hs.properties.openapi,feedback:hs.properties.feedback,mockServer:Mb.properties.mockServer,analytics:{type:"object",properties:{ga:WX}}},additionalProperties:!0,default:{}};Object.assign(Object.assign({},y2.properties),{apis:{type:"object",additionalProperties:KX},theme:y2});const lue={type:"object",properties:{email:{type:"string",description:"Email of the user"}},required:["email"],additionalProperties:!0},cue={type:"object",properties:{specType:{type:"string",enum:["jsonschema","openapi","asyncapi","avro","zod","graphql","protobuf","arazzo"],description:"Type of the API description"},descriptionFile:{type:"string",description:"Path to the file containing the API description"}},required:["specType","descriptionFile"],additionalProperties:!0},uue={type:"object",properties:{method:{type:"string",enum:["GET","POST","PUT","DELETE","PATCH","MUTATION","QUERY","SUBSCRIBE","PUBLISH"],description:"HTTP method of the API operation"},path:{type:"string",description:"Path of the API operation"},payload:{type:"array",items:{type:"string",description:"Related dataSchema name"}},responses:{type:"array",items:{type:"string",description:"Related dataSchema name"}}},required:["method","path"],additionalProperties:!0},due={type:"object",properties:{specType:{type:"string",enum:["jsonschema","openapi","asyncapi","avro","zod","graphql","protobuf","arazzo"],description:"Specification type of the data schema"},schema:{type:"string",description:"Inline schema of the data structure"},sdl:{type:"string",description:"SDL of the data structure"}},required:["specType"],additionalProperties:!0},fue={type:"object",properties:{slack:{type:"object",properties:{channels:{type:"array",items:{type:"object",properties:{name:{type:"string",minLength:2,maxLength:150},url:{type:"string"}},required:["name"],additionalProperties:!1}}},required:["channels"],additionalProperties:!1}},additionalProperties:!1},pue={type:"object",properties:{label:{type:"string",minLength:2,maxLength:150},url:{type:"string"}},required:["label","url"],additionalProperties:!1},hue={type:"object",properties:{type:{type:"string",enum:Ece},key:{type:"string",minLength:2,maxLength:100},version:{type:"string"},revision:{type:"string"}},required:["type","key"],additionalProperties:!1},pl={version:{type:"string"},key:{type:"string",pattern:"^[a-z0-9]+(?:-[a-z0-9]+)*$",minLength:2,maxLength:150},type:{type:"string",enum:["user","data-schema","api-operation","api-description","service","domain","team"]},title:{type:"string",minLength:2,maxLength:200},summary:{type:"string",minLength:1,maxLength:500},tags:{type:"array",items:{type:"string",minLength:1,maxLength:50}},git:{type:"array",items:{type:"string"}},contact:fue,links:{type:"array",items:pue},relations:{type:"array",items:hue},metadata:{type:"object",additionalProperties:!0}};Object.assign(Object.assign({},pl),{type:{const:"user"},metadata:lue}),Object.assign(Object.assign({},pl),{type:{const:"api-operation"},metadata:uue}),Object.assign(Object.assign({},pl),{type:{const:"data-schema"},metadata:due}),Object.assign(Object.assign({},pl),{type:{const:"api-description"},metadata:cue}),Object.assign(Object.assign({},pl),{type:{const:"service"}}),Object.assign(Object.assign({},pl),{type:{const:"domain"}}),Object.assign(Object.assign({},pl),{type:{const:"team"}});Object.assign({},pl);const mue=["oas2","oas3_0","oas3_1","oas3_2","async2","async3","arazzo1","overlay1","openrpc1"],gue={oas2:uoe,oas3_0:_b,oas3_1:_r,oas3_2:Qn,async2:Use,async3:lae,arazzo1:Mae,overlay1:Xae,openrpc1:ole};function GT(t){return gue[t]}function yue(t){return t.includes("/")}function Oue(t,e){const r={...t};return e.forEach(n=>{delete r[n]}),r}var Tg={exports:{}},ew={},ia={},hc={},tw={},rw={},nw={},O2;function qb(){return O2||(O2=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.regexpCode=t.getEsmExportName=t.getProperty=t.safeStringify=t.stringify=t.strConcat=t.addCodeArg=t.str=t._=t.nil=t._Code=t.Name=t.IDENTIFIER=t._CodeOrName=void 0;class e{}t._CodeOrName=e,t.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class r extends e{constructor(O){if(super(),!t.IDENTIFIER.test(O))throw new Error("CodeGen: name must be a valid identifier");this.str=O}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}t.Name=r;class n extends e{constructor(O){super(),this._items=typeof O=="string"?[O]:O}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const O=this._items[0];return O===""||O==='""'}get str(){var O;return(O=this._str)!==null&&O!==void 0?O:this._str=this._items.reduce((b,S)=>`${b}${S}`,"")}get names(){var O;return(O=this._names)!==null&&O!==void 0?O:this._names=this._items.reduce((b,S)=>(S instanceof r&&(b[S.str]=(b[S.str]||0)+1),b),{})}}t._Code=n,t.nil=new n("");function i(v,...O){const b=[v[0]];let S=0;for(;S<O.length;)a(b,O[S]),b.push(v[++S]);return new n(b)}t._=i;const o=new n("+");function s(v,...O){const b=[h(v[0])];let S=0;for(;S<O.length;)b.push(o),a(b,O[S]),b.push(o,h(v[++S]));return l(b),new n(b)}t.str=s;function a(v,O){O instanceof n?v.push(...O._items):O instanceof r?v.push(O):v.push(d(O))}t.addCodeArg=a;function l(v){let O=1;for(;O<v.length-1;){if(v[O]===o){const b=c(v[O-1],v[O+1]);if(b!==void 0){v.splice(O-1,3,b);continue}v[O++]="+"}O++}}function c(v,O){if(O==='""')return v;if(v==='""')return O;if(typeof v=="string")return O instanceof r||v[v.length-1]!=='"'?void 0:typeof O!="string"?`${v.slice(0,-1)}${O}"`:O[0]==='"'?v.slice(0,-1)+O.slice(1):void 0;if(typeof O=="string"&&O[0]==='"'&&!(v instanceof r))return`"${v}${O.slice(1)}`}function u(v,O){return O.emptyStr()?v:v.emptyStr()?O:s`${v}${O}`}t.strConcat=u;function d(v){return typeof v=="number"||typeof v=="boolean"||v===null?v:h(Array.isArray(v)?v.join(","):v)}function f(v){return new n(h(v))}t.stringify=f;function h(v){return JSON.stringify(v).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}t.safeStringify=h;function y(v){return typeof v=="string"&&t.IDENTIFIER.test(v)?new n(`.${v}`):i`[${v}]`}t.getProperty=y;function m(v){if(typeof v=="string"&&t.IDENTIFIER.test(v))return new n(`${v}`);throw new Error(`CodeGen: invalid export name: ${v}, use explicit $id name mapping`)}t.getEsmExportName=m;function g(v){return new n(v.toString())}t.regexpCode=g})(nw)),nw}var iw={},v2;function b2(){return v2||(v2=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.ValueScope=t.ValueScopeName=t.Scope=t.varKinds=t.UsedValueState=void 0;const e=qb();class r extends Error{constructor(c){super(`CodeGen: "code" for ${c} not defined`),this.value=c.value}}var n;(function(l){l[l.Started=0]="Started",l[l.Completed=1]="Completed"})(n||(t.UsedValueState=n={})),t.varKinds={const:new e.Name("const"),let:new e.Name("let"),var:new e.Name("var")};class i{constructor({prefixes:c,parent:u}={}){this._names={},this._prefixes=c,this._parent=u}toName(c){return c instanceof e.Name?c:this.name(c)}name(c){return new e.Name(this._newName(c))}_newName(c){const u=this._names[c]||this._nameGroup(c);return`${c}${u.index++}`}_nameGroup(c){var u,d;if(!((d=(u=this._parent)===null||u===void 0?void 0:u._prefixes)===null||d===void 0)&&d.has(c)||this._prefixes&&!this._prefixes.has(c))throw new Error(`CodeGen: prefix "${c}" is not allowed in this scope`);return this._names[c]={prefix:c,index:0}}}t.Scope=i;class o extends e.Name{constructor(c,u){super(u),this.prefix=c}setValue(c,{property:u,itemIndex:d}){this.value=c,this.scopePath=(0,e._)`.${new e.Name(u)}[${d}]`}}t.ValueScopeName=o;const s=(0,e._)`\n`;class a extends i{constructor(c){super(c),this._values={},this._scope=c.scope,this.opts={...c,_n:c.lines?s:e.nil}}get(){return this._scope}name(c){return new o(c,this._newName(c))}value(c,u){var d;if(u.ref===void 0)throw new Error("CodeGen: ref must be passed in value");const f=this.toName(c),{prefix:h}=f,y=(d=u.key)!==null&&d!==void 0?d:u.ref;let m=this._values[h];if(m){const O=m.get(y);if(O)return O}else m=this._values[h]=new Map;m.set(y,f);const g=this._scope[h]||(this._scope[h]=[]),v=g.length;return g[v]=u.ref,f.setValue(u,{property:h,itemIndex:v}),f}getValue(c,u){const d=this._values[c];if(d)return d.get(u)}scopeRefs(c,u=this._values){return this._reduceValues(u,d=>{if(d.scopePath===void 0)throw new Error(`CodeGen: name "${d}" has no value`);return(0,e._)`${c}${d.scopePath}`})}scopeCode(c=this._values,u,d){return this._reduceValues(c,f=>{if(f.value===void 0)throw new Error(`CodeGen: name "${f}" has no value`);return f.value.code},u,d)}_reduceValues(c,u,d={},f){let h=e.nil;for(const y in c){const m=c[y];if(!m)continue;const g=d[y]=d[y]||new Map;m.forEach(v=>{if(g.has(v))return;g.set(v,n.Started);let O=u(v);if(O){const b=this.opts.es5?t.varKinds.var:t.varKinds.const;h=(0,e._)`${h}${b} ${v} = ${O};${this.opts._n}`}else if(O=f?.(v))h=(0,e._)`${h}${O}${this.opts._n}`;else throw new r(v);g.set(v,n.Completed)})}return h}}t.ValueScope=a})(iw)),iw}var x2;function gt(){return x2||(x2=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.or=t.and=t.not=t.CodeGen=t.operators=t.varKinds=t.ValueScopeName=t.ValueScope=t.Scope=t.Name=t.regexpCode=t.stringify=t.getProperty=t.nil=t.strConcat=t.str=t._=void 0;const e=qb(),r=b2();var n=qb();Object.defineProperty(t,"_",{enumerable:!0,get:function(){return n._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return n.str}}),Object.defineProperty(t,"strConcat",{enumerable:!0,get:function(){return n.strConcat}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return n.nil}}),Object.defineProperty(t,"getProperty",{enumerable:!0,get:function(){return n.getProperty}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return n.stringify}}),Object.defineProperty(t,"regexpCode",{enumerable:!0,get:function(){return n.regexpCode}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return n.Name}});var i=b2();Object.defineProperty(t,"Scope",{enumerable:!0,get:function(){return i.Scope}}),Object.defineProperty(t,"ValueScope",{enumerable:!0,get:function(){return i.ValueScope}}),Object.defineProperty(t,"ValueScopeName",{enumerable:!0,get:function(){return i.ValueScopeName}}),Object.defineProperty(t,"varKinds",{enumerable:!0,get:function(){return i.varKinds}}),t.operators={GT:new e._Code(">"),GTE:new e._Code(">="),LT:new e._Code("<"),LTE:new e._Code("<="),EQ:new e._Code("==="),NEQ:new e._Code("!=="),NOT:new e._Code("!"),OR:new e._Code("||"),AND:new e._Code("&&"),ADD:new e._Code("+")};class o{optimizeNodes(){return this}optimizeNames($,_){return this}}class s extends o{constructor($,_,q){super(),this.varKind=$,this.name=_,this.rhs=q}render({es5:$,_n:_}){const q=$?r.varKinds.var:this.varKind,Y=this.rhs===void 0?"":` = ${this.rhs}`;return`${q} ${this.name}${Y};`+_}optimizeNames($,_){if($[this.name.str])return this.rhs&&(this.rhs=G(this.rhs,$,_)),this}get names(){return this.rhs instanceof e._CodeOrName?this.rhs.names:{}}}class a extends o{constructor($,_,q){super(),this.lhs=$,this.rhs=_,this.sideEffects=q}render({_n:$}){return`${this.lhs} = ${this.rhs};`+$}optimizeNames($,_){if(!(this.lhs instanceof e.Name&&!$[this.lhs.str]&&!this.sideEffects))return this.rhs=G(this.rhs,$,_),this}get names(){const $=this.lhs instanceof e.Name?{}:{...this.lhs.names};return B($,this.rhs)}}class l extends a{constructor($,_,q,Y){super($,q,Y),this.op=_}render({_n:$}){return`${this.lhs} ${this.op}= ${this.rhs};`+$}}class c extends o{constructor($){super(),this.label=$,this.names={}}render({_n:$}){return`${this.label}:`+$}}class u extends o{constructor($){super(),this.label=$,this.names={}}render({_n:$}){return`break${this.label?` ${this.label}`:""};`+$}}class d extends o{constructor($){super(),this.error=$}render({_n:$}){return`throw ${this.error};`+$}get names(){return this.error.names}}class f extends o{constructor($){super(),this.code=$}render({_n:$}){return`${this.code};`+$}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames($,_){return this.code=G(this.code,$,_),this}get names(){return this.code instanceof e._CodeOrName?this.code.names:{}}}class h extends o{constructor($=[]){super(),this.nodes=$}render($){return this.nodes.reduce((_,q)=>_+q.render($),"")}optimizeNodes(){const{nodes:$}=this;let _=$.length;for(;_--;){const q=$[_].optimizeNodes();Array.isArray(q)?$.splice(_,1,...q):q?$[_]=q:$.splice(_,1)}return $.length>0?this:void 0}optimizeNames($,_){const{nodes:q}=this;let Y=q.length;for(;Y--;){const ee=q[Y];ee.optimizeNames($,_)||(H($,ee.names),q.splice(Y,1))}return q.length>0?this:void 0}get names(){return this.nodes.reduce(($,_)=>U($,_.names),{})}}class y extends h{render($){return"{"+$._n+super.render($)+"}"+$._n}}class m extends h{}class g extends y{}g.kind="else";class v extends y{constructor($,_){super(_),this.condition=$}render($){let _=`if(${this.condition})`+super.render($);return this.else&&(_+="else "+this.else.render($)),_}optimizeNodes(){super.optimizeNodes();const $=this.condition;if($===!0)return this.nodes;let _=this.else;if(_){const q=_.optimizeNodes();_=this.else=Array.isArray(q)?new g(q):q}if(_)return $===!1?_ instanceof v?_:_.nodes:this.nodes.length?this:new v(ne($),_ instanceof v?[_]:_.nodes);if(!($===!1||!this.nodes.length))return this}optimizeNames($,_){var q;if(this.else=(q=this.else)===null||q===void 0?void 0:q.optimizeNames($,_),!!(super.optimizeNames($,_)||this.else))return this.condition=G(this.condition,$,_),this}get names(){const $=super.names;return B($,this.condition),this.else&&U($,this.else.names),$}}v.kind="if";class O extends y{}O.kind="for";class b extends O{constructor($){super(),this.iteration=$}render($){return`for(${this.iteration})`+super.render($)}optimizeNames($,_){if(super.optimizeNames($,_))return this.iteration=G(this.iteration,$,_),this}get names(){return U(super.names,this.iteration.names)}}class S extends O{constructor($,_,q,Y){super(),this.varKind=$,this.name=_,this.from=q,this.to=Y}render($){const _=$.es5?r.varKinds.var:this.varKind,{name:q,from:Y,to:ee}=this;return`for(${_} ${q}=${Y}; ${q}<${ee}; ${q}++)`+super.render($)}get names(){const $=B(super.names,this.from);return B($,this.to)}}class x extends O{constructor($,_,q,Y){super(),this.loop=$,this.varKind=_,this.name=q,this.iterable=Y}render($){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render($)}optimizeNames($,_){if(super.optimizeNames($,_))return this.iterable=G(this.iterable,$,_),this}get names(){return U(super.names,this.iterable.names)}}class w extends y{constructor($,_,q){super(),this.name=$,this.args=_,this.async=q}render($){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render($)}}w.kind="func";class C extends h{render($){return"return "+super.render($)}}C.kind="return";class k extends y{render($){let _="try"+super.render($);return this.catch&&(_+=this.catch.render($)),this.finally&&(_+=this.finally.render($)),_}optimizeNodes(){var $,_;return super.optimizeNodes(),($=this.catch)===null||$===void 0||$.optimizeNodes(),(_=this.finally)===null||_===void 0||_.optimizeNodes(),this}optimizeNames($,_){var q,Y;return super.optimizeNames($,_),(q=this.catch)===null||q===void 0||q.optimizeNames($,_),(Y=this.finally)===null||Y===void 0||Y.optimizeNames($,_),this}get names(){const $=super.names;return this.catch&&U($,this.catch.names),this.finally&&U($,this.finally.names),$}}class R extends y{constructor($){super(),this.error=$}render($){return`catch(${this.error})`+super.render($)}}R.kind="catch";class N extends y{render($){return"finally"+super.render($)}}N.kind="finally";class D{constructor($,_={}){this._values={},this._blockStarts=[],this._constants={},this.opts={..._,_n:_.lines?`
|
|
115
|
+
`;var BS,YR;function wie(){if(YR)return BS;YR=1;function t(i){if(typeof i!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(i))}function e(i,o){for(var s="",a=0,l=-1,c=0,u,d=0;d<=i.length;++d){if(d<i.length)u=i.charCodeAt(d);else{if(u===47)break;u=47}if(u===47){if(!(l===d-1||c===1))if(l!==d-1&&c===2){if(s.length<2||a!==2||s.charCodeAt(s.length-1)!==46||s.charCodeAt(s.length-2)!==46){if(s.length>2){var f=s.lastIndexOf("/");if(f!==s.length-1){f===-1?(s="",a=0):(s=s.slice(0,f),a=s.length-1-s.lastIndexOf("/")),l=d,c=0;continue}}else if(s.length===2||s.length===1){s="",a=0,l=d,c=0;continue}}o&&(s.length>0?s+="/..":s="..",a=2)}else s.length>0?s+="/"+i.slice(l+1,d):s=i.slice(l+1,d),a=d-l-1;l=d,c=0}else u===46&&c!==-1?++c:c=-1}return s}function r(i,o){var s=o.dir||o.root,a=o.base||(o.name||"")+(o.ext||"");return s?s===o.root?s+a:s+i+a:a}var n={resolve:function(){for(var o="",s=!1,a,l=arguments.length-1;l>=-1&&!s;l--){var c;l>=0?c=arguments[l]:(a===void 0&&(a=process.cwd()),c=a),t(c),c.length!==0&&(o=c+"/"+o,s=c.charCodeAt(0)===47)}return o=e(o,!s),s?o.length>0?"/"+o:"/":o.length>0?o:"."},normalize:function(o){if(t(o),o.length===0)return".";var s=o.charCodeAt(0)===47,a=o.charCodeAt(o.length-1)===47;return o=e(o,!s),o.length===0&&!s&&(o="."),o.length>0&&a&&(o+="/"),s?"/"+o:o},isAbsolute:function(o){return t(o),o.length>0&&o.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var o,s=0;s<arguments.length;++s){var a=arguments[s];t(a),a.length>0&&(o===void 0?o=a:o+="/"+a)}return o===void 0?".":n.normalize(o)},relative:function(o,s){if(t(o),t(s),o===s||(o=n.resolve(o),s=n.resolve(s),o===s))return"";for(var a=1;a<o.length&&o.charCodeAt(a)===47;++a);for(var l=o.length,c=l-a,u=1;u<s.length&&s.charCodeAt(u)===47;++u);for(var d=s.length,f=d-u,h=c<f?c:f,y=-1,m=0;m<=h;++m){if(m===h){if(f>h){if(s.charCodeAt(u+m)===47)return s.slice(u+m+1);if(m===0)return s.slice(u+m)}else c>h&&(o.charCodeAt(a+m)===47?y=m:m===0&&(y=0));break}var g=o.charCodeAt(a+m),v=s.charCodeAt(u+m);if(g!==v)break;g===47&&(y=m)}var O="";for(m=a+y+1;m<=l;++m)(m===l||o.charCodeAt(m)===47)&&(O.length===0?O+="..":O+="/..");return O.length>0?O+s.slice(u+y):(u+=y,s.charCodeAt(u)===47&&++u,s.slice(u))},_makeLong:function(o){return o},dirname:function(o){if(t(o),o.length===0)return".";for(var s=o.charCodeAt(0),a=s===47,l=-1,c=!0,u=o.length-1;u>=1;--u)if(s=o.charCodeAt(u),s===47){if(!c){l=u;break}}else c=!1;return l===-1?a?"/":".":a&&l===1?"//":o.slice(0,l)},basename:function(o,s){if(s!==void 0&&typeof s!="string")throw new TypeError('"ext" argument must be a string');t(o);var a=0,l=-1,c=!0,u;if(s!==void 0&&s.length>0&&s.length<=o.length){if(s.length===o.length&&s===o)return"";var d=s.length-1,f=-1;for(u=o.length-1;u>=0;--u){var h=o.charCodeAt(u);if(h===47){if(!c){a=u+1;break}}else f===-1&&(c=!1,f=u+1),d>=0&&(h===s.charCodeAt(d)?--d===-1&&(l=u):(d=-1,l=f))}return a===l?l=f:l===-1&&(l=o.length),o.slice(a,l)}else{for(u=o.length-1;u>=0;--u)if(o.charCodeAt(u)===47){if(!c){a=u+1;break}}else l===-1&&(c=!1,l=u+1);return l===-1?"":o.slice(a,l)}},extname:function(o){t(o);for(var s=-1,a=0,l=-1,c=!0,u=0,d=o.length-1;d>=0;--d){var f=o.charCodeAt(d);if(f===47){if(!c){a=d+1;break}continue}l===-1&&(c=!1,l=d+1),f===46?s===-1?s=d:u!==1&&(u=1):s!==-1&&(u=-1)}return s===-1||l===-1||u===0||u===1&&s===l-1&&s===a+1?"":o.slice(s,l)},format:function(o){if(o===null||typeof o!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof o);return r("/",o)},parse:function(o){t(o);var s={root:"",dir:"",base:"",ext:"",name:""};if(o.length===0)return s;var a=o.charCodeAt(0),l=a===47,c;l?(s.root="/",c=1):c=0;for(var u=-1,d=0,f=-1,h=!0,y=o.length-1,m=0;y>=c;--y){if(a=o.charCodeAt(y),a===47){if(!h){d=y+1;break}continue}f===-1&&(h=!1,f=y+1),a===46?u===-1?u=y:m!==1&&(m=1):u!==-1&&(m=-1)}return u===-1||f===-1||m===0||m===1&&u===f-1&&u===d+1?f!==-1&&(d===0&&l?s.base=s.name=o.slice(1,f):s.base=s.name=o.slice(d,f)):(d===0&&l?(s.name=o.slice(1,u),s.base=o.slice(1,f)):(s.name=o.slice(d,u),s.base=o.slice(d,f)),s.ext=o.slice(u,f)),d>0?s.dir=o.slice(0,d-1):l&&(s.dir="/"),s},sep:"/",delimiter:":",win32:null,posix:null};return n.posix=n,BS=n,BS}var Mt=wie();const Yc=li(Mt),Pie=Lre({__proto__:null,default:Yc},[Mt]),a7={},l7=Object.freeze(Object.defineProperty({__proto__:null,default:a7},Symbol.toStringTag,{value:"Module"}));function c7(t){return(Mt.extname(t)===".yaml"||Mt.extname(t)===".yml")&&!1}function O$(t,e){let r,n;if(t===e)return!0;if(t&&e&&(r=t.constructor)===e.constructor){if(r===Date)return t.getTime()===e.getTime();if(r===RegExp)return t.toString()===e.toString();if(r===Array){if((n=t.length)===e.length)for(;n--&&O$(t[n],e[n]););return n===-1}if(!r||typeof t=="object"){n=0;for(r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&++n&&!Object.prototype.hasOwnProperty.call(e,r)||!(r in e)||!O$(t[r],e[r]))return!1;return Object.keys(e).length===n}}return t!==t&&e!==e}function xt(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}function jh(t){return xt(t)&&Object.keys(t).length===0}function Vi(t){return typeof t=="string"}function oo(t){return!!t}function Cie(t){return t?Object.keys(t):[]}function $ie(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var wv={exports:{}},kie=wv.exports,GR;function Eie(){return GR||(GR=1,(function(t,e){(function(r,n){typeof $ie=="function"?t.exports=n():r.pluralize=n()})(kie,function(){var r=[],n=[],i={},o={},s={};function a(m){return typeof m=="string"?new RegExp("^"+m+"$","i"):m}function l(m,g){return m===g?g:m===m.toLowerCase()?g.toLowerCase():m===m.toUpperCase()?g.toUpperCase():m[0]===m[0].toUpperCase()?g.charAt(0).toUpperCase()+g.substr(1).toLowerCase():g.toLowerCase()}function c(m,g){return m.replace(/\$(\d{1,2})/g,function(v,O){return g[O]||""})}function u(m,g){return m.replace(g[0],function(v,O){var b=c(g[1],arguments);return l(v===""?m[O-1]:v,b)})}function d(m,g,v){if(!m.length||i.hasOwnProperty(m))return g;for(var O=v.length;O--;){var b=v[O];if(b[0].test(g))return u(g,b)}return g}function f(m,g,v){return function(O){var b=O.toLowerCase();return g.hasOwnProperty(b)?l(O,b):m.hasOwnProperty(b)?l(O,m[b]):d(b,O,v)}}function h(m,g,v,O){return function(b){var S=b.toLowerCase();return g.hasOwnProperty(S)?!0:m.hasOwnProperty(S)?!1:d(S,S,v)===S}}function y(m,g,v){var O=g===1?y.singular(m):y.plural(m);return(v?g+" ":"")+O}return y.plural=f(s,o,r),y.isPlural=h(s,o,r),y.singular=f(o,s,n),y.isSingular=h(o,s,n),y.addPluralRule=function(m,g){r.push([a(m),g])},y.addSingularRule=function(m,g){n.push([a(m),g])},y.addUncountableRule=function(m){if(typeof m=="string"){i[m.toLowerCase()]=!0;return}y.addPluralRule(m,"$0"),y.addSingularRule(m,"$0")},y.addIrregularRule=function(m,g){g=g.toLowerCase(),m=m.toLowerCase(),s[m]=g,o[g]=m},[["I","we"],["me","us"],["he","they"],["she","they"],["them","them"],["myself","ourselves"],["yourself","yourselves"],["itself","themselves"],["herself","themselves"],["himself","themselves"],["themself","themselves"],["is","are"],["was","were"],["has","have"],["this","these"],["that","those"],["echo","echoes"],["dingo","dingoes"],["volcano","volcanoes"],["tornado","tornadoes"],["torpedo","torpedoes"],["genus","genera"],["viscus","viscera"],["stigma","stigmata"],["stoma","stomata"],["dogma","dogmata"],["lemma","lemmata"],["schema","schemata"],["anathema","anathemata"],["ox","oxen"],["axe","axes"],["die","dice"],["yes","yeses"],["foot","feet"],["eave","eaves"],["goose","geese"],["tooth","teeth"],["quiz","quizzes"],["human","humans"],["proof","proofs"],["carve","carves"],["valve","valves"],["looey","looies"],["thief","thieves"],["groove","grooves"],["pickaxe","pickaxes"],["passerby","passersby"]].forEach(function(m){return y.addIrregularRule(m[0],m[1])}),[[/s?$/i,"s"],[/[^\u0000-\u007F]$/i,"$0"],[/([^aeiou]ese)$/i,"$1"],[/(ax|test)is$/i,"$1es"],[/(alias|[^aou]us|t[lm]as|gas|ris)$/i,"$1es"],[/(e[mn]u)s?$/i,"$1s"],[/([^l]ias|[aeiou]las|[ejzr]as|[iu]am)$/i,"$1"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1i"],[/(alumn|alg|vertebr)(?:a|ae)$/i,"$1ae"],[/(seraph|cherub)(?:im)?$/i,"$1im"],[/(her|at|gr)o$/i,"$1oes"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i,"$1a"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i,"$1a"],[/sis$/i,"ses"],[/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i,"$1$2ves"],[/([^aeiouy]|qu)y$/i,"$1ies"],[/([^ch][ieo][ln])ey$/i,"$1ies"],[/(x|ch|ss|sh|zz)$/i,"$1es"],[/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i,"$1ices"],[/\b((?:tit)?m|l)(?:ice|ouse)$/i,"$1ice"],[/(pe)(?:rson|ople)$/i,"$1ople"],[/(child)(?:ren)?$/i,"$1ren"],[/eaux$/i,"$0"],[/m[ae]n$/i,"men"],["thou","you"]].forEach(function(m){return y.addPluralRule(m[0],m[1])}),[[/s$/i,""],[/(ss)$/i,"$1"],[/(wi|kni|(?:after|half|high|low|mid|non|night|[^\w]|^)li)ves$/i,"$1fe"],[/(ar|(?:wo|[ae])l|[eo][ao])ves$/i,"$1f"],[/ies$/i,"y"],[/\b([pl]|zomb|(?:neck|cross)?t|coll|faer|food|gen|goon|group|lass|talk|goal|cut)ies$/i,"$1ie"],[/\b(mon|smil)ies$/i,"$1ey"],[/\b((?:tit)?m|l)ice$/i,"$1ouse"],[/(seraph|cherub)im$/i,"$1"],[/(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|t[lm]as|gas|(?:her|at|gr)o|[aeiou]ris)(?:es)?$/i,"$1"],[/(analy|diagno|parenthe|progno|synop|the|empha|cri|ne)(?:sis|ses)$/i,"$1sis"],[/(movie|twelve|abuse|e[mn]u)s$/i,"$1"],[/(test)(?:is|es)$/i,"$1is"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1us"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i,"$1um"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i,"$1on"],[/(alumn|alg|vertebr)ae$/i,"$1a"],[/(cod|mur|sil|vert|ind)ices$/i,"$1ex"],[/(matr|append)ices$/i,"$1ix"],[/(pe)(rson|ople)$/i,"$1rson"],[/(child)ren$/i,"$1"],[/(eau)x?$/i,"$1"],[/men$/i,"man"]].forEach(function(m){return y.addSingularRule(m[0],m[1])}),["adulthood","advice","agenda","aid","aircraft","alcohol","ammo","analytics","anime","athletics","audio","bison","blood","bream","buffalo","butter","carp","cash","chassis","chess","clothing","cod","commerce","cooperation","corps","debris","diabetes","digestion","elk","energy","equipment","excretion","expertise","firmware","flounder","fun","gallows","garbage","graffiti","hardware","headquarters","health","herpes","highjinks","homework","housework","information","jeans","justice","kudos","labour","literature","machinery","mackerel","mail","media","mews","moose","music","mud","manga","news","only","personnel","pike","plankton","pliers","police","pollution","premises","rain","research","rice","salmon","scissors","series","sewage","shambles","shrimp","software","species","staff","swine","tennis","traffic","transportation","trout","tuna","wealth","welfare","whiting","wildebeest","wildlife","you",/pok[eé]mon$/i,/[^aeiou]ese$/i,/deer$/i,/fish$/i,/measles$/i,/o[iu]s$/i,/pox$/i,/sheep$/i].forEach(y.addUncountableRule),y})})(wv)),wv.exports}var Tie=Eie();const u7=li(Tie);function d7(t,e,r){return t.split(" ").map(n=>u7(n,e,r)).join(" ")}var FS={},ZS,HR;function Ux(){if(HR)return ZS;HR=1;const t="\\\\/",e=`[^${t}]`,r="\\.",n="\\+",i="\\?",o="\\/",s="(?=.)",a="[^/]",l=`(?:${o}|$)`,c=`(?:^|${o})`,u=`${r}{1,2}${l}`,d=`(?!${r})`,f=`(?!${c}${u})`,h=`(?!${r}{0,1}${l})`,y=`(?!${u})`,m=`[^.${o}]`,g=`${a}*?`,O={DOT_LITERAL:r,PLUS_LITERAL:n,QMARK_LITERAL:i,SLASH_LITERAL:o,ONE_CHAR:s,QMARK:a,END_ANCHOR:l,DOTS_SLASH:u,NO_DOT:d,NO_DOTS:f,NO_DOT_SLASH:h,NO_DOTS_SLASH:y,QMARK_NO_DOT:m,STAR:g,START_ANCHOR:c,SEP:"/"},b={...O,SLASH_LITERAL:`[${t}]`,QMARK:e,STAR:`${e}*?`,DOTS_SLASH:`${r}{1,2}(?:[${t}]|$)`,NO_DOT:`(?!${r})`,NO_DOTS:`(?!(?:^|[${t}])${r}{1,2}(?:[${t}]|$))`,NO_DOT_SLASH:`(?!${r}{0,1}(?:[${t}]|$))`,NO_DOTS_SLASH:`(?!${r}{1,2}(?:[${t}]|$))`,QMARK_NO_DOT:`[^.${t}]`,START_ANCHOR:`(?:^|[${t}])`,END_ANCHOR:`(?:[${t}]|$)`,SEP:"\\"},S={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};return ZS={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:S,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{__proto__:null,"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,extglobChars(x){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${x.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(x){return x===!0?b:O}},ZS}var JR;function Wx(){return JR||(JR=1,(function(t){const{REGEX_BACKSLASH:e,REGEX_REMOVE_BACKSLASH:r,REGEX_SPECIAL_CHARS:n,REGEX_SPECIAL_CHARS_GLOBAL:i}=Ux();t.isObject=o=>o!==null&&typeof o=="object"&&!Array.isArray(o),t.hasRegexChars=o=>n.test(o),t.isRegexChar=o=>o.length===1&&t.hasRegexChars(o),t.escapeRegex=o=>o.replace(i,"\\$1"),t.toPosixSlashes=o=>o.replace(e,"/"),t.isWindows=()=>{if(typeof navigator<"u"&&navigator.platform){const o=navigator.platform.toLowerCase();return o==="win32"||o==="windows"}return typeof process<"u"&&process.platform?process.platform==="win32":!1},t.removeBackslashes=o=>o.replace(r,s=>s==="\\"?"":s),t.escapeLast=(o,s,a)=>{const l=o.lastIndexOf(s,a);return l===-1?o:o[l-1]==="\\"?t.escapeLast(o,s,l-1):`${o.slice(0,l)}\\${o.slice(l)}`},t.removePrefix=(o,s={})=>{let a=o;return a.startsWith("./")&&(a=a.slice(2),s.prefix="./"),a},t.wrapOutput=(o,s={},a={})=>{const l=a.contains?"":"^",c=a.contains?"":"$";let u=`${l}(?:${o})${c}`;return s.negated===!0&&(u=`(?:^(?!${u}).*$)`),u},t.basename=(o,{windows:s}={})=>{const a=o.split(s?/[\\/]/:"/"),l=a[a.length-1];return l===""?a[a.length-2]:l}})(FS)),FS}var YS,KR;function _ie(){if(KR)return YS;KR=1;const t=Wx(),{CHAR_ASTERISK:e,CHAR_AT:r,CHAR_BACKWARD_SLASH:n,CHAR_COMMA:i,CHAR_DOT:o,CHAR_EXCLAMATION_MARK:s,CHAR_FORWARD_SLASH:a,CHAR_LEFT_CURLY_BRACE:l,CHAR_LEFT_PARENTHESES:c,CHAR_LEFT_SQUARE_BRACKET:u,CHAR_PLUS:d,CHAR_QUESTION_MARK:f,CHAR_RIGHT_CURLY_BRACE:h,CHAR_RIGHT_PARENTHESES:y,CHAR_RIGHT_SQUARE_BRACKET:m}=Ux(),g=b=>b===a||b===n,v=b=>{b.isPrefix!==!0&&(b.depth=b.isGlobstar?1/0:1)};return YS=(b,S)=>{const x=S||{},w=b.length-1,C=x.parts===!0||x.scanToEnd===!0,k=[],R=[],N=[];let D=b,U=-1,B=0,G=0,H=!1,ne=!1,ce=!1,Z=!1,oe=!1,M=!1,j=!1,V=!1,Q=!1,$=!1,_=0,q,Y,ee={value:"",depth:0,isGlob:!1};const Oe=()=>U>=w,ge=()=>D.charCodeAt(U+1),W=()=>(q=Y,D.charCodeAt(++U));for(;U<w;){Y=W();let we;if(Y===n){j=ee.backslashes=!0,Y=W(),Y===l&&(M=!0);continue}if(M===!0||Y===l){for(_++;Oe()!==!0&&(Y=W());){if(Y===n){j=ee.backslashes=!0,W();continue}if(Y===l){_++;continue}if(M!==!0&&Y===o&&(Y=W())===o){if(H=ee.isBrace=!0,ce=ee.isGlob=!0,$=!0,C===!0)continue;break}if(M!==!0&&Y===i){if(H=ee.isBrace=!0,ce=ee.isGlob=!0,$=!0,C===!0)continue;break}if(Y===h&&(_--,_===0)){M=!1,H=ee.isBrace=!0,$=!0;break}}if(C===!0)continue;break}if(Y===a){if(k.push(U),R.push(ee),ee={value:"",depth:0,isGlob:!1},$===!0)continue;if(q===o&&U===B+1){B+=2;continue}G=U+1;continue}if(x.noext!==!0&&(Y===d||Y===r||Y===e||Y===f||Y===s)===!0&&ge()===c){if(ce=ee.isGlob=!0,Z=ee.isExtglob=!0,$=!0,Y===s&&U===B&&(Q=!0),C===!0){for(;Oe()!==!0&&(Y=W());){if(Y===n){j=ee.backslashes=!0,Y=W();continue}if(Y===y){ce=ee.isGlob=!0,$=!0;break}}continue}break}if(Y===e){if(q===e&&(oe=ee.isGlobstar=!0),ce=ee.isGlob=!0,$=!0,C===!0)continue;break}if(Y===f){if(ce=ee.isGlob=!0,$=!0,C===!0)continue;break}if(Y===u){for(;Oe()!==!0&&(we=W());){if(we===n){j=ee.backslashes=!0,W();continue}if(we===m){ne=ee.isBracket=!0,ce=ee.isGlob=!0,$=!0;break}}if(C===!0)continue;break}if(x.nonegate!==!0&&Y===s&&U===B){V=ee.negated=!0,B++;continue}if(x.noparen!==!0&&Y===c){if(ce=ee.isGlob=!0,C===!0){for(;Oe()!==!0&&(Y=W());){if(Y===c){j=ee.backslashes=!0,Y=W();continue}if(Y===y){$=!0;break}}continue}break}if(ce===!0){if($=!0,C===!0)continue;break}}x.noext===!0&&(Z=!1,ce=!1);let z=D,J="",te="";B>0&&(J=D.slice(0,B),D=D.slice(B),G-=B),z&&ce===!0&&G>0?(z=D.slice(0,G),te=D.slice(G)):ce===!0?(z="",te=D):z=D,z&&z!==""&&z!=="/"&&z!==D&&g(z.charCodeAt(z.length-1))&&(z=z.slice(0,-1)),x.unescape===!0&&(te&&(te=t.removeBackslashes(te)),z&&j===!0&&(z=t.removeBackslashes(z)));const ue={prefix:J,input:b,start:B,base:z,glob:te,isBrace:H,isBracket:ne,isGlob:ce,isExtglob:Z,isGlobstar:oe,negated:V,negatedExtglob:Q};if(x.tokens===!0&&(ue.maxDepth=0,g(Y)||R.push(ee),ue.tokens=R),x.parts===!0||x.tokens===!0){let we;for(let re=0;re<k.length;re++){const de=we?we+1:B,$e=k[re],fe=b.slice(de,$e);x.tokens&&(re===0&&B!==0?(R[re].isPrefix=!0,R[re].value=J):R[re].value=fe,v(R[re]),ue.maxDepth+=R[re].depth),(re!==0||fe!=="")&&N.push(fe),we=$e}if(we&&we+1<b.length){const re=b.slice(we+1);N.push(re),x.tokens&&(R[R.length-1].value=re,v(R[R.length-1]),ue.maxDepth+=R[R.length-1].depth)}ue.slashes=k,ue.parts=N}return ue},YS}var GS,e2;function Aie(){if(e2)return GS;e2=1;const t=Ux(),e=Wx(),{MAX_LENGTH:r,POSIX_REGEX_SOURCE:n,REGEX_NON_SPECIAL_CHARS:i,REGEX_SPECIAL_CHARS_BACKREF:o,REPLACEMENTS:s}=t,a=(u,d)=>{if(typeof d.expandRange=="function")return d.expandRange(...u,d);u.sort();const f=`[${u.join("-")}]`;try{new RegExp(f)}catch{return u.map(y=>e.escapeRegex(y)).join("..")}return f},l=(u,d)=>`Missing ${u}: "${d}" - use "\\\\${d}" to match literal characters`,c=(u,d)=>{if(typeof u!="string")throw new TypeError("Expected a string");u=s[u]||u;const f={...d},h=typeof f.maxLength=="number"?Math.min(r,f.maxLength):r;let y=u.length;if(y>h)throw new SyntaxError(`Input length: ${y}, exceeds maximum allowed length: ${h}`);const m={type:"bos",value:"",output:f.prepend||""},g=[m],v=f.capture?"":"?:",O=t.globChars(f.windows),b=t.extglobChars(O),{DOT_LITERAL:S,PLUS_LITERAL:x,SLASH_LITERAL:w,ONE_CHAR:C,DOTS_SLASH:k,NO_DOT:R,NO_DOT_SLASH:N,NO_DOTS_SLASH:D,QMARK:U,QMARK_NO_DOT:B,STAR:G,START_ANCHOR:H}=O,ne=de=>`(${v}(?:(?!${H}${de.dot?k:S}).)*?)`,ce=f.dot?"":R,Z=f.dot?U:B;let oe=f.bash===!0?ne(f):G;f.capture&&(oe=`(${oe})`),typeof f.noext=="boolean"&&(f.noextglob=f.noext);const M={input:u,index:-1,start:0,dot:f.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:g};u=e.removePrefix(u,M),y=u.length;const j=[],V=[],Q=[];let $=m,_;const q=()=>M.index===y-1,Y=M.peek=(de=1)=>u[M.index+de],ee=M.advance=()=>u[++M.index]||"",Oe=()=>u.slice(M.index+1),ge=(de="",$e=0)=>{M.consumed+=de,M.index+=$e},W=de=>{M.output+=de.output!=null?de.output:de.value,ge(de.value)},z=()=>{let de=1;for(;Y()==="!"&&(Y(2)!=="("||Y(3)==="?");)ee(),M.start++,de++;return de%2===0?!1:(M.negated=!0,M.start++,!0)},J=de=>{M[de]++,Q.push(de)},te=de=>{M[de]--,Q.pop()},ue=de=>{if($.type==="globstar"){const $e=M.braces>0&&(de.type==="comma"||de.type==="brace"),fe=de.extglob===!0||j.length&&(de.type==="pipe"||de.type==="paren");de.type!=="slash"&&de.type!=="paren"&&!$e&&!fe&&(M.output=M.output.slice(0,-$.output.length),$.type="star",$.value="*",$.output=oe,M.output+=$.output)}if(j.length&&de.type!=="paren"&&(j[j.length-1].inner+=de.value),(de.value||de.output)&&W(de),$&&$.type==="text"&&de.type==="text"){$.output=($.output||$.value)+de.value,$.value+=de.value;return}de.prev=$,g.push(de),$=de},we=(de,$e)=>{const fe={...b[$e],conditions:1,inner:""};fe.prev=$,fe.parens=M.parens,fe.output=M.output;const ye=(f.capture?"(":"")+fe.open;J("parens"),ue({type:de,value:$e,output:M.output?"":C}),ue({type:"paren",extglob:!0,value:ee(),output:ye}),j.push(fe)},re=de=>{let $e=de.close+(f.capture?")":""),fe;if(de.type==="negate"){let ye=oe;if(de.inner&&de.inner.length>1&&de.inner.includes("/")&&(ye=ne(f)),(ye!==oe||q()||/^\)+$/.test(Oe()))&&($e=de.close=`)$))${ye}`),de.inner.includes("*")&&(fe=Oe())&&/^\.[^\\/.]+$/.test(fe)){const ke=c(fe,{...d,fastpaths:!1}).output;$e=de.close=`)${ke})${ye})`}de.prev.type==="bos"&&(M.negatedExtglob=!0)}ue({type:"paren",extglob:!0,value:_,output:$e}),te("parens")};if(f.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(u)){let de=!1,$e=u.replace(o,(fe,ye,ke,me,ve,Ee)=>me==="\\"?(de=!0,fe):me==="?"?ye?ye+me+(ve?U.repeat(ve.length):""):Ee===0?Z+(ve?U.repeat(ve.length):""):U.repeat(ke.length):me==="."?S.repeat(ke.length):me==="*"?ye?ye+me+(ve?oe:""):oe:ye?fe:`\\${fe}`);return de===!0&&(f.unescape===!0?$e=$e.replace(/\\/g,""):$e=$e.replace(/\\+/g,fe=>fe.length%2===0?"\\\\":fe?"\\":"")),$e===u&&f.contains===!0?(M.output=u,M):(M.output=e.wrapOutput($e,M,d),M)}for(;!q();){if(_=ee(),_==="\0")continue;if(_==="\\"){const fe=Y();if(fe==="/"&&f.bash!==!0||fe==="."||fe===";")continue;if(!fe){_+="\\",ue({type:"text",value:_});continue}const ye=/^\\+/.exec(Oe());let ke=0;if(ye&&ye[0].length>2&&(ke=ye[0].length,M.index+=ke,ke%2!==0&&(_+="\\")),f.unescape===!0?_=ee():_+=ee(),M.brackets===0){ue({type:"text",value:_});continue}}if(M.brackets>0&&(_!=="]"||$.value==="["||$.value==="[^")){if(f.posix!==!1&&_===":"){const fe=$.value.slice(1);if(fe.includes("[")&&($.posix=!0,fe.includes(":"))){const ye=$.value.lastIndexOf("["),ke=$.value.slice(0,ye),me=$.value.slice(ye+2),ve=n[me];if(ve){$.value=ke+ve,M.backtrack=!0,ee(),!m.output&&g.indexOf($)===1&&(m.output=C);continue}}}(_==="["&&Y()!==":"||_==="-"&&Y()==="]")&&(_=`\\${_}`),_==="]"&&($.value==="["||$.value==="[^")&&(_=`\\${_}`),f.posix===!0&&_==="!"&&$.value==="["&&(_="^"),$.value+=_,W({value:_});continue}if(M.quotes===1&&_!=='"'){_=e.escapeRegex(_),$.value+=_,W({value:_});continue}if(_==='"'){M.quotes=M.quotes===1?0:1,f.keepQuotes===!0&&ue({type:"text",value:_});continue}if(_==="("){J("parens"),ue({type:"paren",value:_});continue}if(_===")"){if(M.parens===0&&f.strictBrackets===!0)throw new SyntaxError(l("opening","("));const fe=j[j.length-1];if(fe&&M.parens===fe.parens+1){re(j.pop());continue}ue({type:"paren",value:_,output:M.parens?")":"\\)"}),te("parens");continue}if(_==="["){if(f.nobracket===!0||!Oe().includes("]")){if(f.nobracket!==!0&&f.strictBrackets===!0)throw new SyntaxError(l("closing","]"));_=`\\${_}`}else J("brackets");ue({type:"bracket",value:_});continue}if(_==="]"){if(f.nobracket===!0||$&&$.type==="bracket"&&$.value.length===1){ue({type:"text",value:_,output:`\\${_}`});continue}if(M.brackets===0){if(f.strictBrackets===!0)throw new SyntaxError(l("opening","["));ue({type:"text",value:_,output:`\\${_}`});continue}te("brackets");const fe=$.value.slice(1);if($.posix!==!0&&fe[0]==="^"&&!fe.includes("/")&&(_=`/${_}`),$.value+=_,W({value:_}),f.literalBrackets===!1||e.hasRegexChars(fe))continue;const ye=e.escapeRegex($.value);if(M.output=M.output.slice(0,-$.value.length),f.literalBrackets===!0){M.output+=ye,$.value=ye;continue}$.value=`(${v}${ye}|${$.value})`,M.output+=$.value;continue}if(_==="{"&&f.nobrace!==!0){J("braces");const fe={type:"brace",value:_,output:"(",outputIndex:M.output.length,tokensIndex:M.tokens.length};V.push(fe),ue(fe);continue}if(_==="}"){const fe=V[V.length-1];if(f.nobrace===!0||!fe){ue({type:"text",value:_,output:_});continue}let ye=")";if(fe.dots===!0){const ke=g.slice(),me=[];for(let ve=ke.length-1;ve>=0&&(g.pop(),ke[ve].type!=="brace");ve--)ke[ve].type!=="dots"&&me.unshift(ke[ve].value);ye=a(me,f),M.backtrack=!0}if(fe.comma!==!0&&fe.dots!==!0){const ke=M.output.slice(0,fe.outputIndex),me=M.tokens.slice(fe.tokensIndex);fe.value=fe.output="\\{",_=ye="\\}",M.output=ke;for(const ve of me)M.output+=ve.output||ve.value}ue({type:"brace",value:_,output:ye}),te("braces"),V.pop();continue}if(_==="|"){j.length>0&&j[j.length-1].conditions++,ue({type:"text",value:_});continue}if(_===","){let fe=_;const ye=V[V.length-1];ye&&Q[Q.length-1]==="braces"&&(ye.comma=!0,fe="|"),ue({type:"comma",value:_,output:fe});continue}if(_==="/"){if($.type==="dot"&&M.index===M.start+1){M.start=M.index+1,M.consumed="",M.output="",g.pop(),$=m;continue}ue({type:"slash",value:_,output:w});continue}if(_==="."){if(M.braces>0&&$.type==="dot"){$.value==="."&&($.output=S);const fe=V[V.length-1];$.type="dots",$.output+=_,$.value+=_,fe.dots=!0;continue}if(M.braces+M.parens===0&&$.type!=="bos"&&$.type!=="slash"){ue({type:"text",value:_,output:S});continue}ue({type:"dot",value:_,output:S});continue}if(_==="?"){if(!($&&$.value==="(")&&f.noextglob!==!0&&Y()==="("&&Y(2)!=="?"){we("qmark",_);continue}if($&&$.type==="paren"){const ye=Y();let ke=_;($.value==="("&&!/[!=<:]/.test(ye)||ye==="<"&&!/<([!=]|\w+>)/.test(Oe()))&&(ke=`\\${_}`),ue({type:"text",value:_,output:ke});continue}if(f.dot!==!0&&($.type==="slash"||$.type==="bos")){ue({type:"qmark",value:_,output:B});continue}ue({type:"qmark",value:_,output:U});continue}if(_==="!"){if(f.noextglob!==!0&&Y()==="("&&(Y(2)!=="?"||!/[!=<:]/.test(Y(3)))){we("negate",_);continue}if(f.nonegate!==!0&&M.index===0){z();continue}}if(_==="+"){if(f.noextglob!==!0&&Y()==="("&&Y(2)!=="?"){we("plus",_);continue}if($&&$.value==="("||f.regex===!1){ue({type:"plus",value:_,output:x});continue}if($&&($.type==="bracket"||$.type==="paren"||$.type==="brace")||M.parens>0){ue({type:"plus",value:_});continue}ue({type:"plus",value:x});continue}if(_==="@"){if(f.noextglob!==!0&&Y()==="("&&Y(2)!=="?"){ue({type:"at",extglob:!0,value:_,output:""});continue}ue({type:"text",value:_});continue}if(_!=="*"){(_==="$"||_==="^")&&(_=`\\${_}`);const fe=i.exec(Oe());fe&&(_+=fe[0],M.index+=fe[0].length),ue({type:"text",value:_});continue}if($&&($.type==="globstar"||$.star===!0)){$.type="star",$.star=!0,$.value+=_,$.output=oe,M.backtrack=!0,M.globstar=!0,ge(_);continue}let de=Oe();if(f.noextglob!==!0&&/^\([^?]/.test(de)){we("star",_);continue}if($.type==="star"){if(f.noglobstar===!0){ge(_);continue}const fe=$.prev,ye=fe.prev,ke=fe.type==="slash"||fe.type==="bos",me=ye&&(ye.type==="star"||ye.type==="globstar");if(f.bash===!0&&(!ke||de[0]&&de[0]!=="/")){ue({type:"star",value:_,output:""});continue}const ve=M.braces>0&&(fe.type==="comma"||fe.type==="brace"),Ee=j.length&&(fe.type==="pipe"||fe.type==="paren");if(!ke&&fe.type!=="paren"&&!ve&&!Ee){ue({type:"star",value:_,output:""});continue}for(;de.slice(0,3)==="/**";){const qe=u[M.index+4];if(qe&&qe!=="/")break;de=de.slice(3),ge("/**",3)}if(fe.type==="bos"&&q()){$.type="globstar",$.value+=_,$.output=ne(f),M.output=$.output,M.globstar=!0,ge(_);continue}if(fe.type==="slash"&&fe.prev.type!=="bos"&&!me&&q()){M.output=M.output.slice(0,-(fe.output+$.output).length),fe.output=`(?:${fe.output}`,$.type="globstar",$.output=ne(f)+(f.strictSlashes?")":"|$)"),$.value+=_,M.globstar=!0,M.output+=fe.output+$.output,ge(_);continue}if(fe.type==="slash"&&fe.prev.type!=="bos"&&de[0]==="/"){const qe=de[1]!==void 0?"|$":"";M.output=M.output.slice(0,-(fe.output+$.output).length),fe.output=`(?:${fe.output}`,$.type="globstar",$.output=`${ne(f)}${w}|${w}${qe})`,$.value+=_,M.output+=fe.output+$.output,M.globstar=!0,ge(_+ee()),ue({type:"slash",value:"/",output:""});continue}if(fe.type==="bos"&&de[0]==="/"){$.type="globstar",$.value+=_,$.output=`(?:^|${w}|${ne(f)}${w})`,M.output=$.output,M.globstar=!0,ge(_+ee()),ue({type:"slash",value:"/",output:""});continue}M.output=M.output.slice(0,-$.output.length),$.type="globstar",$.output=ne(f),$.value+=_,M.output+=$.output,M.globstar=!0,ge(_);continue}const $e={type:"star",value:_,output:oe};if(f.bash===!0){$e.output=".*?",($.type==="bos"||$.type==="slash")&&($e.output=ce+$e.output),ue($e);continue}if($&&($.type==="bracket"||$.type==="paren")&&f.regex===!0){$e.output=_,ue($e);continue}(M.index===M.start||$.type==="slash"||$.type==="dot")&&($.type==="dot"?(M.output+=N,$.output+=N):f.dot===!0?(M.output+=D,$.output+=D):(M.output+=ce,$.output+=ce),Y()!=="*"&&(M.output+=C,$.output+=C)),ue($e)}for(;M.brackets>0;){if(f.strictBrackets===!0)throw new SyntaxError(l("closing","]"));M.output=e.escapeLast(M.output,"["),te("brackets")}for(;M.parens>0;){if(f.strictBrackets===!0)throw new SyntaxError(l("closing",")"));M.output=e.escapeLast(M.output,"("),te("parens")}for(;M.braces>0;){if(f.strictBrackets===!0)throw new SyntaxError(l("closing","}"));M.output=e.escapeLast(M.output,"{"),te("braces")}if(f.strictSlashes!==!0&&($.type==="star"||$.type==="bracket")&&ue({type:"maybe_slash",value:"",output:`${w}?`}),M.backtrack===!0){M.output="";for(const de of M.tokens)M.output+=de.output!=null?de.output:de.value,de.suffix&&(M.output+=de.suffix)}return M};return c.fastpaths=(u,d)=>{const f={...d},h=typeof f.maxLength=="number"?Math.min(r,f.maxLength):r,y=u.length;if(y>h)throw new SyntaxError(`Input length: ${y}, exceeds maximum allowed length: ${h}`);u=s[u]||u;const{DOT_LITERAL:m,SLASH_LITERAL:g,ONE_CHAR:v,DOTS_SLASH:O,NO_DOT:b,NO_DOTS:S,NO_DOTS_SLASH:x,STAR:w,START_ANCHOR:C}=t.globChars(f.windows),k=f.dot?S:b,R=f.dot?x:b,N=f.capture?"":"?:",D={negated:!1,prefix:""};let U=f.bash===!0?".*?":w;f.capture&&(U=`(${U})`);const B=ce=>ce.noglobstar===!0?U:`(${N}(?:(?!${C}${ce.dot?O:m}).)*?)`,G=ce=>{switch(ce){case"*":return`${k}${v}${U}`;case".*":return`${m}${v}${U}`;case"*.*":return`${k}${U}${m}${v}${U}`;case"*/*":return`${k}${U}${g}${v}${R}${U}`;case"**":return k+B(f);case"**/*":return`(?:${k}${B(f)}${g})?${R}${v}${U}`;case"**/*.*":return`(?:${k}${B(f)}${g})?${R}${U}${m}${v}${U}`;case"**/.*":return`(?:${k}${B(f)}${g})?${m}${v}${U}`;default:{const Z=/^(.*?)\.(\w+)$/.exec(ce);if(!Z)return;const oe=G(Z[1]);return oe?oe+m+Z[2]:void 0}}},H=e.removePrefix(u,D);let ne=G(H);return ne&&f.strictSlashes!==!0&&(ne+=`${g}?`),ne},GS=c,GS}var HS,t2;function Iie(){if(t2)return HS;t2=1;const t=_ie(),e=Aie(),r=Wx(),n=Ux(),i=s=>s&&typeof s=="object"&&!Array.isArray(s),o=(s,a,l=!1)=>{if(Array.isArray(s)){const g=s.map(O=>o(O,a,l));return O=>{for(const b of g){const S=b(O);if(S)return S}return!1}}const c=i(s)&&s.tokens&&s.input;if(s===""||typeof s!="string"&&!c)throw new TypeError("Expected pattern to be a non-empty string");const u=a||{},d=u.windows,f=c?o.compileRe(s,a):o.makeRe(s,a,!1,!0),h=f.state;delete f.state;let y=()=>!1;if(u.ignore){const g={...a,ignore:null,onMatch:null,onResult:null};y=o(u.ignore,g,l)}const m=(g,v=!1)=>{const{isMatch:O,match:b,output:S}=o.test(g,f,a,{glob:s,posix:d}),x={glob:s,state:h,regex:f,posix:d,input:g,output:S,match:b,isMatch:O};return typeof u.onResult=="function"&&u.onResult(x),O===!1?(x.isMatch=!1,v?x:!1):y(g)?(typeof u.onIgnore=="function"&&u.onIgnore(x),x.isMatch=!1,v?x:!1):(typeof u.onMatch=="function"&&u.onMatch(x),v?x:!0)};return l&&(m.state=h),m};return o.test=(s,a,l,{glob:c,posix:u}={})=>{if(typeof s!="string")throw new TypeError("Expected input to be a string");if(s==="")return{isMatch:!1,output:""};const d=l||{},f=d.format||(u?r.toPosixSlashes:null);let h=s===c,y=h&&f?f(s):s;return h===!1&&(y=f?f(s):s,h=y===c),(h===!1||d.capture===!0)&&(d.matchBase===!0||d.basename===!0?h=o.matchBase(s,a,l,u):h=a.exec(y)),{isMatch:!!h,match:h,output:y}},o.matchBase=(s,a,l)=>(a instanceof RegExp?a:o.makeRe(a,l)).test(r.basename(s)),o.isMatch=(s,a,l)=>o(a,l)(s),o.parse=(s,a)=>Array.isArray(s)?s.map(l=>o.parse(l,a)):e(s,{...a,fastpaths:!1}),o.scan=(s,a)=>t(s,a),o.compileRe=(s,a,l=!1,c=!1)=>{if(l===!0)return s.output;const u=a||{},d=u.contains?"":"^",f=u.contains?"":"$";let h=`${d}(?:${s.output})${f}`;s&&s.negated===!0&&(h=`^(?!${h}).*$`);const y=o.toRegex(h,a);return c===!0&&(y.state=s),y},o.makeRe=(s,a={},l=!1,c=!1)=>{if(!s||typeof s!="string")throw new TypeError("Expected a non-empty string");let u={negated:!1,fastpaths:!0};return a.fastpaths!==!1&&(s[0]==="."||s[0]==="*")&&(u.output=e.fastpaths(s,a)),u.output||(u=e(s,a)),o.compileRe(u,a,l,c)},o.toRegex=(s,a)=>{try{const l=a||{};return new RegExp(s,l.flags||(l.nocase?"i":""))}catch(l){if(a&&a.debug===!0)throw l;return/$^/}},o.constants=n,HS=o,HS}var JS,r2;function Rie(){if(r2)return JS;r2=1;const t=Iie(),e=Wx();function r(n,i,o=!1){return i&&(i.windows===null||i.windows===void 0)&&(i={...i,windows:e.isWindows()}),t(n,i,o)}return Object.assign(r,t),JS=r,JS}var jie=Rie();const hi=typeof window<"u"||typeof process>"u"||process?.platform==="browser",MT=hi?{}:process.env||{};async function f7(t,e){const r={};for(const i of e.headers)Qie(t,i.matches)&&(r[i.name]=i.envVariable!==void 0?MT[i.envVariable]||"":i.value);const n=await(e.customFetch||fetch)(t,{headers:r});if(!n.ok)throw new Error(`Failed to load ${t}: ${n.status} ${n.statusText}`);return{body:await n.text(),mimeType:n.headers.get("content-type")}}function Qie(t,e){return e.match(/^https?:\/\//)||(t=t.replace(/^https?:\/\//,"")),jie.isMatch(t,e)}function Die(t){return/^\\\\\?\\/.test(t)?t:t.replace(/\\/g,"/")}function et(t){return{name:`${t}List`,properties:{},items:t}}function Ye(t){return{name:`${t}Map`,properties:{},additionalProperties:()=>t}}const Lc={name:"SpecExtension",properties:{},additionalProperties:{resolvable:!0}};function qT(t,e={}){const r={};for(const o of Object.keys(t))r[o]={...t[o],name:o};for(const o of Object.values(r))n(o);return r.SpecExtension=Lc,r;function n(o){if(o.additionalProperties&&(o.additionalProperties=i(o.additionalProperties)),o.items&&(o.items=i(o.items)),o.properties){const s={};for(const[a,l]of Object.entries(o.properties))s[a]=i(l),e.doNotResolveExamples&&l&&l.isExample&&(s[a]={...l,resolvable:!1});o.properties=s}}function i(o){if(typeof o=="string"){if(!r[o])throw new Error(`Unknown type name found: ${o}`);return r[o]}else return typeof o=="function"?(s,a)=>i(o(s,a)):o&&o.name?(o={...o},n(o),o):o&&o.directResolveAs?{...o,directResolveAs:i(o.directResolveAs)}:o}}function Vc(t){return typeof t?.name=="string"}const Nie=/^[0-9][0-9Xx]{2}$/,Mie={properties:{swagger:{type:"string"},info:"Info",host:{type:"string"},basePath:{type:"string"},schemes:{type:"array",items:{type:"string"}},consumes:{type:"array",items:{type:"string"}},produces:{type:"array",items:{type:"string"}},paths:"Paths",definitions:"NamedSchemas",parameters:"NamedParameters",responses:"NamedResponses",securityDefinitions:"NamedSecuritySchemes",security:"SecurityRequirementList",tags:"TagList",externalDocs:"ExternalDocs","x-servers":"XServerList","x-tagGroups":"TagGroups","x-ignoredHeaderParameters":{type:"array",items:{type:"string"}}},required:["swagger","paths","info"],extensionsPrefix:"x-"},qie={properties:{title:{type:"string"},description:{type:"string"},termsOfService:{type:"string"},contact:"Contact",license:"License",version:{type:"string"},"x-logo":"Logo"},required:["title","version"],extensionsPrefix:"x-"},zie={properties:{url:{type:"string"},altText:{type:"string"},backgroundColor:{type:"string"},href:{type:"string"}},extensionsPrefix:"x-"},Lie={properties:{name:{type:"string"},url:{type:"string"},email:{type:"string"}},extensionsPrefix:"x-"},Vie={properties:{name:{type:"string"},url:{type:"string"}},required:["name"],extensionsPrefix:"x-"},Xie={properties:{},additionalProperties:(t,e)=>e.startsWith("/")?"PathItem":void 0},Uie={properties:{$ref:{type:"string"},parameters:"ParameterList",get:"Operation",put:"Operation",post:"Operation",delete:"Operation",options:"Operation",head:"Operation",patch:"Operation"},extensionsPrefix:"x-"},Wie={properties:{tags:{type:"array",items:{type:"string"}},summary:{type:"string"},description:{type:"string"},externalDocs:"ExternalDocs",operationId:{type:"string"},consumes:{type:"array",items:{type:"string"}},produces:{type:"array",items:{type:"string"}},parameters:"ParameterList",responses:"Responses",schemes:{type:"array",items:{type:"string"}},deprecated:{type:"boolean"},security:"SecurityRequirementList","x-codeSamples":"XCodeSampleList","x-code-samples":"XCodeSampleList","x-hideTryItPanel":{type:"boolean"}},required:["responses"],extensionsPrefix:"x-"},Bie={properties:{lang:{type:"string"},label:{type:"string"},source:{type:"string"}}},Fie={properties:{url:{type:"string"},description:{type:"string"}},required:["url"]},Zie={properties:{description:{type:"string"},url:{type:"string"}},required:["url"],extensionsPrefix:"x-"},Yie={properties:{name:{type:"string"},in:{type:"string",enum:["query","header","path","formData","body"]},description:{type:"string"},required:{type:"boolean"},schema:"Schema",type:{type:"string",enum:["string","number","integer","boolean","array","file"]},format:{type:"string"},allowEmptyValue:{type:"boolean"},items:"ParameterItems",collectionFormat:{type:"string",enum:["csv","ssv","tsv","pipes","multi"]},default:null,maximum:{type:"integer"},exclusiveMaximum:{type:"boolean"},minimum:{type:"integer"},exclusiveMinimum:{type:"boolean"},maxLength:{type:"integer"},minLength:{type:"integer"},pattern:{type:"string"},maxItems:{type:"integer"},minItems:{type:"integer"},uniqueItems:{type:"boolean"},enum:{type:"array"},multipleOf:{type:"number"},"x-example":{},"x-examples":"ExamplesMap"},required(t){return!t||!t.in?["name","in"]:t.in==="body"?["name","in","schema"]:t.type==="array"?["name","in","type","items"]:["name","in","type"]},extensionsPrefix:"x-"},Gie={properties:{type:{type:"string",enum:["string","number","integer","boolean","array"]},format:{type:"string"},items:"ParameterItems",collectionFormat:{type:"string",enum:["csv","ssv","tsv","pipes","multi"]},default:null,maximum:{type:"integer"},exclusiveMaximum:{type:"boolean"},minimum:{type:"integer"},exclusiveMinimum:{type:"boolean"},maxLength:{type:"integer"},minLength:{type:"integer"},pattern:{type:"string"},maxItems:{type:"integer"},minItems:{type:"integer"},uniqueItems:{type:"boolean"},enum:{type:"array"},multipleOf:{type:"number"}},required(t){return t&&t.type==="array"?["type","items"]:["type"]},extensionsPrefix:"x-"},Hie={properties:{default:"Response"},additionalProperties:(t,e)=>Nie.test(e)?"Response":void 0},Jie={properties:{description:{type:"string"},schema:"Schema",headers:Ye("Header"),examples:"Examples","x-summary":{type:"string"}},required:["description"],extensionsPrefix:"x-"},Kie={properties:{},additionalProperties:{isExample:!0}},eoe={properties:{description:{type:"string"},type:{type:"string",enum:["string","number","integer","boolean","array"]},format:{type:"string"},items:"ParameterItems",collectionFormat:{type:"string",enum:["csv","ssv","tsv","pipes","multi"]},default:null,maximum:{type:"integer"},exclusiveMaximum:{type:"boolean"},minimum:{type:"integer"},exclusiveMinimum:{type:"boolean"},maxLength:{type:"integer"},minLength:{type:"integer"},pattern:{type:"string"},maxItems:{type:"integer"},minItems:{type:"integer"},uniqueItems:{type:"boolean"},enum:{type:"array"},multipleOf:{type:"number"}},required(t){return t&&t.type==="array"?["type","items"]:["type"]},extensionsPrefix:"x-"},toe={properties:{name:{type:"string"},description:{type:"string"},externalDocs:"ExternalDocs","x-traitTag":{type:"boolean"},"x-displayName":{type:"string"}},required:["name"],extensionsPrefix:"x-"},roe={properties:{name:{type:"string"},tags:{type:"array",items:{type:"string"}}}},noe={properties:{format:{type:"string"},title:{type:"string"},description:{type:"string"},default:null,multipleOf:{type:"number"},maximum:{type:"number"},minimum:{type:"number"},exclusiveMaximum:{type:"boolean"},exclusiveMinimum:{type:"boolean"},maxLength:{type:"number"},minLength:{type:"number"},pattern:{type:"string"},maxItems:{type:"number"},minItems:{type:"number"},uniqueItems:{type:"boolean"},maxProperties:{type:"number"},minProperties:{type:"number"},required:{type:"array",items:{type:"string"}},enum:{type:"array"},type:{type:"string",enum:["object","array","string","number","integer","boolean","null"]},items:t=>Array.isArray(t)?et("Schema"):"Schema",allOf:et("Schema"),properties:"SchemaProperties",additionalProperties:t=>typeof t=="boolean"?{type:"boolean"}:"Schema",discriminator:{type:"string"},readOnly:{type:"boolean"},xml:"Xml",externalDocs:"ExternalDocs",example:{isExample:!0},"x-tags":{type:"array",items:{type:"string"}},"x-nullable":{type:"boolean"},"x-extendedDiscriminator":{type:"string"},"x-additionalPropertiesName":{type:"string"},"x-explicitMappingOnly":{type:"boolean"},"x-enumDescriptions":"EnumDescriptions"},extensionsPrefix:"x-"},ioe={properties:{},additionalProperties:{type:"string"}},ooe={properties:{},additionalProperties:"Schema"},soe={properties:{name:{type:"string"},namespace:{type:"string"},prefix:{type:"string"},attribute:{type:"boolean"},wrapped:{type:"boolean"}},extensionsPrefix:"x-"},aoe={properties:{type:{enum:["basic","apiKey","oauth2"]},description:{type:"string"},name:{type:"string"},in:{type:"string",enum:["query","header"]},flow:{enum:["implicit","password","application","accessCode"]},authorizationUrl:{type:"string"},tokenUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},"x-defaultClientId":{type:"string"}},required(t){switch(t?.type){case"apiKey":return["type","name","in"];case"oauth2":switch(t?.flow){case"implicit":return["type","flow","authorizationUrl","scopes"];case"accessCode":return["type","flow","authorizationUrl","tokenUrl","scopes"];case"application":case"password":return["type","flow","tokenUrl","scopes"];default:return["type","flow","scopes"]}default:return["type"]}},allowed(t){switch(t?.type){case"basic":return["type","description"];case"apiKey":return["type","name","in","description"];case"oauth2":switch(t?.flow){case"implicit":return["type","flow","authorizationUrl","description","scopes"];case"accessCode":return["type","flow","authorizationUrl","tokenUrl","description","scopes"];case"application":case"password":return["type","flow","tokenUrl","description","scopes"];default:return["type","flow","tokenUrl","authorizationUrl","description","scopes"]}default:return["type","description"]}},extensionsPrefix:"x-"},loe={properties:{},additionalProperties:{type:"array",items:{type:"string"}}},coe={properties:{value:{isExample:!0},summary:{type:"string"},description:{type:"string"},externalValue:{type:"string"}},extensionsPrefix:"x-"},uoe={Root:Mie,Tag:toe,TagList:et("Tag"),TagGroups:et("TagGroup"),TagGroup:roe,ExternalDocs:Zie,Example:coe,ExamplesMap:Ye("Example"),EnumDescriptions:ioe,SecurityRequirement:loe,SecurityRequirementList:et("SecurityRequirement"),Info:qie,Contact:Lie,License:Vie,Logo:zie,Paths:Xie,PathItem:Uie,Parameter:Yie,ParameterItems:Gie,ParameterList:et("Parameter"),Operation:Wie,Examples:Kie,Header:eoe,Responses:Hie,Response:Jie,Schema:noe,Xml:soe,SchemaProperties:ooe,NamedSchemas:Ye("Schema"),NamedResponses:Ye("Response"),NamedParameters:Ye("Parameter"),NamedSecuritySchemes:Ye("SecurityScheme"),SecurityScheme:aoe,XCodeSample:Bie,XCodeSampleList:et("XCodeSample"),XServerList:et("XServer"),XServer:Fie};function ad(t,e){return t===""&&(t="#/"),t[t.length-1]==="/"?t+e:t+"/"+e}function Xr(t){return xt(t)&&typeof t.$ref=="string"}function p7(t){return xt(t)&&typeof t.externalValue=="string"}let Pv=class h7{constructor(e,r){this.source=e,this.pointer=r}child(e){return new h7(this.source,ad(this.pointer,(Array.isArray(e)?e:[e]).map(sh).join("/")))}key(){return{...this,reportOnKey:!0}}get absolutePointer(){return this.source.absoluteRef+(this.pointer==="#/"?"":this.pointer)}};function doe(t){const e=t.indexOf("~")===-1?t:t.replaceAll("~1","/").replaceAll("~0","~");try{return decodeURIComponent(e)}catch{return e}}function sh(t){return typeof t=="number"||t.indexOf("/")===-1&&t.indexOf("~")===-1?t:t.replaceAll("~","~0").replaceAll("/","~1")}function foe(t){const[e,r=""]=t.split("#/");return{uri:(e.endsWith("#")?e.slice(0,-1):e)||null,pointer:m7(r)}}function m7(t){return t.split("/").map(doe).filter(oo)}function poe(t){const e=t.split(/[\/\\]/);return e[e.length-1].replace(/\.[^.]+$/,"")}function on(t){return t.startsWith("http://")||t.startsWith("https://")}function g7(t){return t.startsWith("#")||t.startsWith("https://")||t.startsWith("http://")||t.startsWith("./")||t.startsWith("../")||t.indexOf("/")>-1}function hoe(t){return/^#[A-Za-z][A-Za-z0-9\-_:.]*$/.test(t)}function v$(t,e,r){if(!xt(e.node))r.parent[r.key]=e.node;else{delete t.$ref;const n=Object.assign({},e.node,t);Object.assign(t,n)}}const moe=/^[0-9][0-9Xx]{2}$/,goe={properties:{openapi:null,info:"Info",servers:"ServerList",security:"SecurityRequirementList",tags:"TagList",externalDocs:"ExternalDocs",paths:"Paths",components:"Components","x-webhooks":"WebhooksMap","x-tagGroups":"TagGroups","x-ignoredHeaderParameters":{type:"array",items:{type:"string"}}},required:["openapi","paths","info"],extensionsPrefix:"x-"},yoe={properties:{name:{type:"string"},description:{type:"string"},externalDocs:"ExternalDocs","x-traitTag":{type:"boolean"},"x-displayName":{type:"string"}},required:["name"],extensionsPrefix:"x-"},Ooe={properties:{name:{type:"string"},tags:{type:"array",items:{type:"string"}}},extensionsPrefix:"x-"},voe={properties:{description:{type:"string"},url:{type:"string"}},required:["url"],extensionsPrefix:"x-"},boe={properties:{url:{type:"string"},description:{type:"string"},variables:"ServerVariablesMap"},required:["url"],extensionsPrefix:"x-"},xoe={properties:{enum:{type:"array",items:{type:"string"}},default:{type:"string"},description:{type:"string"}},required:["default"],extensionsPrefix:"x-"},Soe={properties:{},additionalProperties:{type:"array",items:{type:"string"}}},woe={properties:{title:{type:"string"},version:{type:"string"},description:{type:"string"},termsOfService:{type:"string"},contact:"Contact",license:"License","x-logo":"Logo"},required:["title","version"],extensionsPrefix:"x-"},Poe={properties:{url:{type:"string"},altText:{type:"string"},backgroundColor:{type:"string"},href:{type:"string"}}},Coe={properties:{name:{type:"string"},url:{type:"string"},email:{type:"string"}},extensionsPrefix:"x-"},$oe={properties:{name:{type:"string"},url:{type:"string"}},required:["name"],extensionsPrefix:"x-"},koe={properties:{},additionalProperties:(t,e)=>e.startsWith("/")?"PathItem":void 0},Eoe={properties:{},additionalProperties:()=>"PathItem"},Toe={properties:{$ref:{type:"string"},servers:"ServerList",parameters:"ParameterList",summary:{type:"string"},description:{type:"string"},get:"Operation",put:"Operation",post:"Operation",delete:"Operation",options:"Operation",head:"Operation",patch:"Operation",trace:"Operation"},extensionsPrefix:"x-"},_oe={properties:{name:{type:"string"},in:{enum:["query","header","path","cookie"]},description:{type:"string"},required:{type:"boolean"},deprecated:{type:"boolean"},allowEmptyValue:{type:"boolean"},style:{enum:["form","simple","label","matrix","spaceDelimited","pipeDelimited","deepObject"]},explode:{type:"boolean"},allowReserved:{type:"boolean"},schema:"Schema",example:{isExample:!0},examples:"ExamplesMap",content:"MediaTypesMap"},required:["name","in"],requiredOneOf:["schema","content"],extensionsPrefix:"x-"},Aoe={properties:{tags:{type:"array",items:{type:"string"}},summary:{type:"string"},description:{type:"string"},externalDocs:"ExternalDocs",operationId:{type:"string"},parameters:"ParameterList",security:"SecurityRequirementList",servers:"ServerList",requestBody:"RequestBody",responses:"Responses",deprecated:{type:"boolean"},callbacks:"CallbacksMap","x-codeSamples":"XCodeSampleList","x-code-samples":"XCodeSampleList","x-hideTryItPanel":{type:"boolean"}},required:["responses"],extensionsPrefix:"x-"},Ioe={properties:{lang:{type:"string"},label:{type:"string"},source:{type:"string"}}},Roe={properties:{description:{type:"string"},required:{type:"boolean"},content:"MediaTypesMap"},required:["content"],extensionsPrefix:"x-"},joe={properties:{},additionalProperties:"MediaType"},Qoe={properties:{schema:"Schema",example:{isExample:!0},examples:"ExamplesMap",encoding:"EncodingMap"},extensionsPrefix:"x-"},Doe={properties:{value:{resolvable:!1},summary:{type:"string"},description:{type:"string"},externalValue:{type:"string"}},extensionsPrefix:"x-"},Noe={properties:{contentType:{type:"string"},headers:"HeadersMap",style:{enum:["form","simple","label","matrix","spaceDelimited","pipeDelimited","deepObject"]},explode:{type:"boolean"},allowReserved:{type:"boolean"}},extensionsPrefix:"x-"},Moe={properties:{},additionalProperties:{type:"string"}},qoe={properties:{description:{type:"string"},required:{type:"boolean"},deprecated:{type:"boolean"},allowEmptyValue:{type:"boolean"},style:{enum:["form","simple","label","matrix","spaceDelimited","pipeDelimited","deepObject"]},explode:{type:"boolean"},allowReserved:{type:"boolean"},schema:"Schema",example:{isExample:!0},examples:"ExamplesMap",content:"MediaTypesMap"},requiredOneOf:["schema","content"],extensionsPrefix:"x-"},zoe={properties:{default:"Response"},additionalProperties:(t,e)=>moe.test(e)?"Response":void 0},Loe={properties:{description:{type:"string"},headers:"HeadersMap",content:"MediaTypesMap",links:"LinksMap","x-summary":{type:"string"}},required:["description"],extensionsPrefix:"x-"},Voe={properties:{operationRef:{type:"string"},operationId:{type:"string"},parameters:null,requestBody:null,description:{type:"string"},server:"Server"},extensionsPrefix:"x-"},Xoe={properties:{externalDocs:"ExternalDocs",discriminator:"Discriminator",title:{type:"string"},multipleOf:{type:"number",minimum:0},maximum:{type:"number"},minimum:{type:"number"},exclusiveMaximum:{type:"boolean"},exclusiveMinimum:{type:"boolean"},maxLength:{type:"integer",minimum:0},minLength:{type:"integer",minimum:0},pattern:{type:"string"},maxItems:{type:"integer",minimum:0},minItems:{type:"integer",minimum:0},uniqueItems:{type:"boolean"},maxProperties:{type:"integer",minimum:0},minProperties:{type:"integer",minimum:0},required:{type:"array",items:{type:"string"}},enum:{type:"array"},type:{enum:["object","array","string","number","integer","boolean"]},allOf:et("Schema"),anyOf:et("Schema"),oneOf:et("Schema"),not:"Schema",properties:"SchemaProperties",items:t=>Array.isArray(t)?et("Schema"):"Schema",additionalProperties:t=>typeof t=="boolean"?{type:"boolean"}:"Schema",description:{type:"string"},format:{type:"string"},default:null,nullable:{type:"boolean"},readOnly:{type:"boolean"},writeOnly:{type:"boolean"},xml:"Xml",example:{isExample:!0},deprecated:{type:"boolean"},"x-tags":{type:"array",items:{type:"string"}},"x-additionalPropertiesName":{type:"string"},"x-explicitMappingOnly":{type:"boolean"}},extensionsPrefix:"x-"},Uoe={properties:{name:{type:"string"},namespace:{type:"string"},prefix:{type:"string"},attribute:{type:"boolean"},wrapped:{type:"boolean"}},extensionsPrefix:"x-"},Woe={properties:{},additionalProperties:"Schema"},Boe={properties:{},additionalProperties:t=>g7(t)?{type:"string",directResolveAs:"Schema"}:{type:"string"}},Foe={properties:{propertyName:{type:"string"},mapping:"DiscriminatorMapping"},required:["propertyName"],extensionsPrefix:"x-"},Zoe={properties:{parameters:"NamedParameters",schemas:"NamedSchemas",responses:"NamedResponses",examples:"NamedExamples",requestBodies:"NamedRequestBodies",headers:"NamedHeaders",securitySchemes:"NamedSecuritySchemes",links:"NamedLinks",callbacks:"NamedCallbacks"},extensionsPrefix:"x-"},Yoe={properties:{refreshUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},authorizationUrl:{type:"string"}},required:["authorizationUrl","scopes"],extensionsPrefix:"x-"},Goe={properties:{refreshUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["tokenUrl","scopes"],extensionsPrefix:"x-"},Hoe={properties:{refreshUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["tokenUrl","scopes"],extensionsPrefix:"x-"},Joe={properties:{refreshUrl:{type:"string"},authorizationUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"},"x-usePkce":t=>typeof t=="boolean"?{type:"boolean"}:"XUsePkce"},required:["authorizationUrl","tokenUrl","scopes"],extensionsPrefix:"x-"},Koe={properties:{implicit:"ImplicitFlow",password:"PasswordFlow",clientCredentials:"ClientCredentials",authorizationCode:"AuthorizationCode"},extensionsPrefix:"x-"},ese={properties:{type:{enum:["apiKey","http","oauth2","openIdConnect"]},description:{type:"string"},name:{type:"string"},in:{type:"string",enum:["query","header","cookie"]},scheme:{type:"string"},bearerFormat:{type:"string"},flows:"OAuth2Flows",openIdConnectUrl:{type:"string"},"x-defaultClientId":{type:"string"}},required(t){switch(t?.type){case"apiKey":return["type","name","in"];case"http":return["type","scheme"];case"oauth2":return["type","flows"];case"openIdConnect":return["type","openIdConnectUrl"];default:return["type"]}},allowed(t){switch(t?.type){case"apiKey":return["type","name","in","description"];case"http":return["type","scheme","bearerFormat","description"];case"oauth2":return["type","flows","description"];case"openIdConnect":return["type","openIdConnectUrl","description"];default:return["type","description"]}},extensionsPrefix:"x-"},tse={properties:{disableManualConfiguration:{type:"boolean"},hideClientSecretInput:{type:"boolean"}}},_b={Root:goe,Tag:yoe,TagList:et("Tag"),TagGroups:et("TagGroup"),TagGroup:Ooe,ExternalDocs:voe,Server:boe,ServerList:et("Server"),ServerVariable:xoe,ServerVariablesMap:Ye("ServerVariable"),SecurityRequirement:Soe,SecurityRequirementList:et("SecurityRequirement"),Info:woe,Contact:Coe,License:$oe,Paths:koe,PathItem:Toe,Parameter:_oe,ParameterList:et("Parameter"),Operation:Aoe,Callback:Ye("PathItem"),CallbacksMap:Ye("Callback"),RequestBody:Roe,MediaTypesMap:joe,MediaType:Qoe,Example:Doe,ExamplesMap:Ye("Example"),Encoding:Noe,EncodingMap:Ye("Encoding"),EnumDescriptions:Moe,Header:qoe,HeadersMap:Ye("Header"),Responses:zoe,Response:Loe,Link:Voe,Logo:Poe,Schema:Xoe,Xml:Uoe,SchemaProperties:Woe,DiscriminatorMapping:Boe,Discriminator:Foe,Components:Zoe,LinksMap:Ye("Link"),NamedSchemas:Ye("Schema"),NamedResponses:Ye("Response"),NamedParameters:Ye("Parameter"),NamedExamples:Ye("Example"),NamedRequestBodies:Ye("RequestBody"),NamedHeaders:Ye("Header"),NamedSecuritySchemes:Ye("SecurityScheme"),NamedLinks:Ye("Link"),NamedCallbacks:Ye("Callback"),ImplicitFlow:Yoe,PasswordFlow:Goe,ClientCredentials:Hoe,AuthorizationCode:Joe,OAuth2Flows:Koe,SecurityScheme:ese,XCodeSample:Ioe,XCodeSampleList:et("XCodeSample"),XUsePkce:tse,WebhooksMap:Eoe},rse={properties:{openapi:null,info:"Info",servers:"ServerList",security:"SecurityRequirementList",tags:"TagList",externalDocs:"ExternalDocs",paths:"Paths",webhooks:"WebhooksMap",components:"Components",jsonSchemaDialect:{type:"string"}},required:["openapi","info"],requiredOneOf:["paths","components","webhooks"],extensionsPrefix:"x-"},nse={properties:{name:{type:"string"},url:{type:"string"},identifier:{type:"string"}},required:["name"],extensionsPrefix:"x-"},ise={properties:{title:{type:"string"},version:{type:"string"},description:{type:"string"},termsOfService:{type:"string"},summary:{type:"string"},contact:"Contact",license:"License","x-logo":"Logo"},required:["title","version"],extensionsPrefix:"x-"},ose={properties:{parameters:"NamedParameters",schemas:"NamedSchemas",responses:"NamedResponses",examples:"NamedExamples",requestBodies:"NamedRequestBodies",headers:"NamedHeaders",securitySchemes:"NamedSecuritySchemes",links:"NamedLinks",callbacks:"NamedCallbacks",pathItems:"NamedPathItems"},extensionsPrefix:"x-"},sse={properties:{tags:{type:"array",items:{type:"string"}},summary:{type:"string"},description:{type:"string"},externalDocs:"ExternalDocs",operationId:{type:"string"},parameters:"ParameterList",security:"SecurityRequirementList",servers:"ServerList",requestBody:"RequestBody",responses:"Responses",deprecated:{type:"boolean"},callbacks:"CallbacksMap","x-codeSamples":"XCodeSampleList","x-code-samples":"XCodeSampleList","x-hideTryItPanel":{type:"boolean"}},extensionsPrefix:"x-"},ase={properties:{$id:{type:"string"},$anchor:{type:"string"},id:{type:"string"},$schema:{type:"string"},definitions:"NamedSchemas",$defs:"NamedSchemas",$vocabulary:{type:"string"},externalDocs:"ExternalDocs",discriminator:"Discriminator",title:{type:"string"},multipleOf:{type:"number",minimum:0},maximum:{type:"number"},minimum:{type:"number"},exclusiveMaximum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{type:"integer",minimum:0},minLength:{type:"integer",minimum:0},pattern:{type:"string"},maxItems:{type:"integer",minimum:0},minItems:{type:"integer",minimum:0},uniqueItems:{type:"boolean"},maxProperties:{type:"integer",minimum:0},minProperties:{type:"integer",minimum:0},required:{type:"array",items:{type:"string"}},enum:{type:"array"},type:t=>Array.isArray(t)?{type:"array",items:{enum:["object","array","string","number","integer","boolean","null"]}}:{enum:["object","array","string","number","integer","boolean","null"]},allOf:et("Schema"),anyOf:et("Schema"),oneOf:et("Schema"),not:"Schema",if:"Schema",then:"Schema",else:"Schema",dependentSchemas:Ye("Schema"),dependentRequired:"DependentRequired",prefixItems:et("Schema"),contains:"Schema",minContains:{type:"integer",minimum:0},maxContains:{type:"integer",minimum:0},patternProperties:"PatternProperties",propertyNames:"Schema",unevaluatedItems:t=>typeof t=="boolean"?{type:"boolean"}:"Schema",unevaluatedProperties:t=>typeof t=="boolean"?{type:"boolean"}:"Schema",summary:{type:"string"},properties:"SchemaProperties",items:t=>typeof t=="boolean"?{type:"boolean"}:"Schema",additionalProperties:t=>typeof t=="boolean"?{type:"boolean"}:"Schema",description:{type:"string"},format:{type:"string"},contentEncoding:{type:"string"},contentMediaType:{type:"string"},contentSchema:"Schema",default:null,readOnly:{type:"boolean"},writeOnly:{type:"boolean"},xml:"Xml",examples:{type:"array"},example:{isExample:!0},deprecated:{type:"boolean"},const:null,$comment:{type:"string"},"x-tags":{type:"array",items:{type:"string"}},$dynamicAnchor:{type:"string"},$dynamicRef:{type:"string"}},extensionsPrefix:"x-"},n2={properties:{},additionalProperties:t=>typeof t=="boolean"?{type:"boolean"}:"Schema"},lse={properties:{type:{enum:["apiKey","http","oauth2","openIdConnect","mutualTLS"]},description:{type:"string"},name:{type:"string"},in:{type:"string",enum:["query","header","cookie"]},scheme:{type:"string"},bearerFormat:{type:"string"},flows:"OAuth2Flows",openIdConnectUrl:{type:"string"}},required(t){switch(t?.type){case"apiKey":return["type","name","in"];case"http":return["type","scheme"];case"oauth2":return["type","flows"];case"openIdConnect":return["type","openIdConnectUrl"];default:return["type"]}},allowed(t){switch(t?.type){case"apiKey":return["type","name","in","description"];case"http":return["type","scheme","bearerFormat","description"];case"oauth2":switch(t?.flows){case"implicit":return["type","flows","authorizationUrl","refreshUrl","description","scopes"];case"password":case"clientCredentials":return["type","flows","tokenUrl","refreshUrl","description","scopes"];case"authorizationCode":return["type","flows","authorizationUrl","refreshUrl","tokenUrl","description","scopes"];default:return["type","flows","authorizationUrl","refreshUrl","tokenUrl","description","scopes"]}case"openIdConnect":return["type","openIdConnectUrl","description"];case"mutualTLS":return["type","description"];default:return["type","description"]}},extensionsPrefix:"x-"},cse={properties:{},additionalProperties:{type:"array",items:{type:"string"}}},_r={..._b,Info:ise,Root:rse,Schema:ase,SchemaProperties:n2,PatternProperties:n2,License:nse,Components:ose,NamedPathItems:Ye("PathItem"),SecurityScheme:lse,Operation:sse,DependentRequired:cse},use={..._r.Root,properties:{..._r.Root.properties,$self:{type:"string"}}},dse={..._r.Tag,properties:{..._r.Tag.properties,kind:{type:"string"},parent:{type:"string"},summary:{type:"string"}}},fse={..._r.Server,properties:{..._r.Server.properties,name:{type:"string"}}},pse={..._r.SecurityScheme,properties:{..._r.SecurityScheme.properties,deprecated:{type:"boolean"},oauth2MetadataUrl:{type:"string"}},allowed(t){switch(t?.type){case"apiKey":return["type","name","in","description","deprecated"];case"http":return["type","scheme","bearerFormat","description","deprecated"];case"oauth2":switch(t?.flows){case"implicit":return["type","flows","authorizationUrl","refreshUrl","description","scopes","oauth2MetadataUrl","deprecated"];case"password":case"clientCredentials":return["type","flows","tokenUrl","refreshUrl","description","scopes","oauth2MetadataUrl","deprecated"];case"authorizationCode":return["type","flows","authorizationUrl","refreshUrl","tokenUrl","description","scopes","oauth2MetadataUrl","deprecated"];case"deviceAuthorization":return["type","flows","deviceAuthorizationUrl","tokenUrl"];default:return["type","flows","authorizationUrl","refreshUrl","tokenUrl","description","scopes","oauth2MetadataUrl","deprecated"]}case"openIdConnect":return["type","openIdConnectUrl","description","deprecated"];case"mutualTLS":return["type","description","deprecated"];default:return["type","description","deprecated"]}}},hse={..._r.OAuth2Flows,properties:{..._r.OAuth2Flows.properties,deviceAuthorization:"DeviceAuthorization"}},mse={properties:{deviceAuthorizationUrl:{type:"string"},tokenUrl:{type:"string"},refreshUrl:{type:"string"},scopes:Ye("string")},required:["deviceAuthorizationUrl","tokenUrl","scopes"],extensionsPrefix:"x-"},gse={..._b.PathItem,properties:{..._b.PathItem.properties,query:"Operation",additionalOperations:Ye("Operation")}},yse={..._r.Parameter,properties:{..._r.Parameter.properties,in:{enum:["query","header","path","cookie","querystring"]}}},Ose={..._r.Response,properties:{..._r.Response.properties,summary:{type:"string"}}},vse={..._r.MediaType,properties:{..._r.MediaType.properties,itemSchema:"Schema",prefixEncoding:et("Encoding"),itemEncoding:"Encoding"}},bse={..._r.Discriminator,properties:{..._r.Discriminator.properties,defaultMapping:{type:"string"}}},xse={..._r.Example,properties:{..._r.Example.properties,dataValue:{resolvable:!1},serializedValue:{type:"string"}}},Sse={properties:{nodeType:{type:"string",enum:["element","attribute","text","cdata","none"]},name:{type:"string"},namespace:{type:"string"},prefix:{type:"string"},attribute:{type:"boolean"},wrapped:{type:"boolean"}},extensionsPrefix:"x-"},wse={..._r.Schema,properties:{..._r.Schema.properties,xml:"Xml"}},Qn={..._r,Root:use,Tag:dse,Server:fse,SecurityScheme:pse,OAuth2Flows:hse,DeviceAuthorization:mse,PathItem:gse,Parameter:yse,Response:Ose,MediaType:vse,Discriminator:bse,Example:xse,Xml:Sse,Schema:wse},zT={properties:{$id:{type:"string"},$schema:{type:"string"},definitions:"NamedSchemas",externalDocs:"ExternalDocs",discriminator:"Discriminator",title:{type:"string"},multipleOf:{type:"number",minimum:0},maximum:{type:"number"},minimum:{type:"number"},exclusiveMaximum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{type:"integer",minimum:0},minLength:{type:"integer",minimum:0},pattern:{type:"string"},maxItems:{type:"integer",minimum:0},minItems:{type:"integer",minimum:0},uniqueItems:{type:"boolean"},maxProperties:{type:"integer",minimum:0},minProperties:{type:"integer",minimum:0},required:{type:"array",items:{type:"string"}},enum:{type:"array"},type:t=>Array.isArray(t)?{type:"array",items:{enum:["object","array","string","number","integer","boolean","null"]}}:{enum:["object","array","string","number","integer","boolean","null"]},allOf:et("Schema"),anyOf:et("Schema"),oneOf:et("Schema"),not:"Schema",if:"Schema",then:"Schema",else:"Schema",contains:"Schema",patternProperties:{type:"object"},propertyNames:"Schema",properties:"SchemaProperties",items:t=>Array.isArray(t)?et("Schema"):"Schema",additionalProperties:t=>typeof t=="boolean"?{type:"boolean"}:"Schema",description:{type:"string"},format:{type:"string"},contentEncoding:{type:"string"},contentMediaType:{type:"string"},default:null,readOnly:{type:"boolean"},writeOnly:{type:"boolean"},examples:{type:"array"},example:{isExample:!0},deprecated:{type:"boolean"},const:null,$comment:{type:"string"},additionalItems:t=>typeof t=="boolean"?{type:"boolean"}:"Schema",dependencies:"Dependencies"}},LT={properties:{},additionalProperties:t=>typeof t=="boolean"?{type:"boolean"}:"Schema"},VT={properties:{},additionalProperties:t=>Array.isArray(t)?{type:"array",items:{type:"string"}}:"Schema"},XT={properties:{},additionalProperties:t=>g7(t)?{type:"string",directResolveAs:"Schema"}:{type:"string"}},UT={properties:{propertyName:{type:"string"},mapping:"DiscriminatorMapping"},required:["propertyName"]},Pse={properties:{asyncapi:null,info:"Info",id:{type:"string"},servers:"ServerMap",channels:"ChannelMap",components:"Components",tags:"TagList",externalDocs:"ExternalDocs",defaultContentType:{type:"string"}},required:["asyncapi","channels","info"]},Cse={properties:{description:{type:"string"},subscribe:"Operation",publish:"Operation",parameters:"ParametersMap",bindings:"ChannelBindings",servers:{type:"array",items:{type:"string"}}}},$se={properties:{},additionalProperties:"Channel"},ci={properties:{},allowed(){return["http","ws","kafka","anypointmq","amqp","amqp1","mqtt","mqtt5","nats","jms","sns","solace","sqs","stomp","redis","mercure","ibmmq","googlepubsub","pulsar"]},additionalProperties:{type:"object"}},y7={properties:{name:{type:"string"},description:{type:"string"},externalDocs:"ExternalDocs"},required:["name"]},O7={properties:{description:{type:"string"},url:{type:"string"}},required:["url"]},kse={properties:{},additionalProperties:{type:"array",items:{type:"string"}}},ui={properties:{},allowed(){return["http","ws","kafka","anypointmq","amqp","amqp1","mqtt","mqtt5","nats","jms","sns","solace","sqs","stomp","redis","mercure","ibmmq","googlepubsub","pulsar"]},additionalProperties:{type:"object"}},Ese={properties:{url:{type:"string"},protocol:{type:"string"},protocolVersion:{type:"string"},description:{type:"string"},variables:"ServerVariablesMap",security:"SecurityRequirementList",bindings:"ServerBindings",tags:"TagList"},required:["url","protocol"]},v7={properties:{},additionalProperties:(t,e)=>e.match(/^[A-Za-z0-9_\-]+$/)?"Server":void 0},b7={properties:{enum:{type:"array",items:{type:"string"}},default:{type:"string"},description:{type:"string"},examples:{type:"array",items:{type:"string"}}},required:[]},Tse={properties:{title:{type:"string"},version:{type:"string"},description:{type:"string"},termsOfService:{type:"string"},contact:"Contact",license:"License"},required:["title","version"]},x7={properties:{name:{type:"string"},url:{type:"string"},email:{type:"string"}}},S7={properties:{name:{type:"string"},url:{type:"string"}},required:["name"]},_se={properties:{description:{type:"string"},schema:"Schema",location:{type:"string"}}},w7={properties:{description:{type:"string"},location:{type:"string"}},required:["location"]},Ase={properties:{messageId:{type:"string"},headers:"Schema",payload:"Schema",correlationId:"CorrelationId",schemaFormat:{type:"string"},contentType:{type:"string"},name:{type:"string"},title:{type:"string"},summary:{type:"string"},description:{type:"string"},tags:"TagList",externalDocs:"ExternalDocs",bindings:"MessageBindings",examples:"MessageExampleList",traits:"MessageTraitList"},additionalProperties:{}},Fn={properties:{},allowed(){return["http","ws","kafka","anypointmq","amqp","amqp1","mqtt","mqtt5","nats","jms","sns","solace","sqs","stomp","redis","mercure","ibmmq","googlepubsub","pulsar"]},additionalProperties:{type:"object"}},Zn={properties:{},allowed(){return["http","ws","kafka","anypointmq","amqp","amqp1","mqtt","mqtt5","nats","jms","sns","solace","sqs","stomp","redis","mercure","ibmmq","googlepubsub","pulsar"]},additionalProperties:{type:"object"}},Ise={properties:{tags:"TagList",summary:{type:"string"},description:{type:"string"},externalDocs:"ExternalDocs",operationId:{type:"string"},security:"SecurityRequirementList",bindings:"OperationBindings"},required:[]},Rse={properties:{messageId:{type:"string"},headers:"Schema",correlationId:"CorrelationId",schemaFormat:{type:"string"},contentType:{type:"string"},name:{type:"string"},title:{type:"string"},summary:{type:"string"},description:{type:"string"},tags:"TagList",externalDocs:"ExternalDocs",bindings:"MessageBindings",examples:"MessageExampleList"},additionalProperties:{}},jse={properties:{tags:"TagList",summary:{type:"string"},description:{type:"string"},externalDocs:"ExternalDocs",operationId:{type:"string"},security:"SecurityRequirementList",bindings:"OperationBindings",traits:"OperationTraitList",message:"Message"},required:[]},P7={properties:{payload:{isExample:!0},summary:{type:"string"},name:{type:"string"},headers:{type:"object"}}},Qse={properties:{messages:"NamedMessages",parameters:"NamedParameters",schemas:"NamedSchemas",correlationIds:"NamedCorrelationIds",messageTraits:"NamedMessageTraits",operationTraits:"NamedOperationTraits",securitySchemes:"NamedSecuritySchemes",servers:"ServerMap",serverVariables:"ServerVariablesMap",channels:"ChannelMap",serverBindings:"ServerBindings",channelBindings:"ChannelBindings",operationBindings:"OperationBindings",messageBindings:"MessageBindings"}},Dse={properties:{refreshUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},authorizationUrl:{type:"string"}},required:["authorizationUrl","scopes"]},Nse={properties:{refreshUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["tokenUrl","scopes"]},Mse={properties:{refreshUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["tokenUrl","scopes"]},qse={properties:{refreshUrl:{type:"string"},authorizationUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["authorizationUrl","tokenUrl","scopes"]},C7={properties:{implicit:"ImplicitFlow",password:"PasswordFlow",clientCredentials:"ClientCredentials",authorizationCode:"AuthorizationCode"}},zse={properties:{type:{enum:["userPassword","apiKey","X509","symmetricEncryption","asymmetricEncryption","httpApiKey","http","oauth2","openIdConnect","plain","scramSha256","scramSha512","gssapi"]},description:{type:"string"},name:{type:"string"},in:{type:"string",enum:["query","header","cookie","user","password"]},scheme:{type:"string"},bearerFormat:{type:"string"},flows:"SecuritySchemeFlows",openIdConnectUrl:{type:"string"}},required(t){switch(t?.type){case"apiKey":return["type","in"];case"httpApiKey":return["type","name","in"];case"http":return["type","scheme"];case"oauth2":return["type","flows"];case"openIdConnect":return["type","openIdConnectUrl"];default:return["type"]}},allowed(t){switch(t?.type){case"apiKey":return["type","in","description"];case"httpApiKey":return["type","name","in","description"];case"http":return["type","scheme","bearerFormat","description"];case"oauth2":return["type","flows","description"];case"openIdConnect":return["type","openIdConnectUrl","description"];default:return["type","description"]}},extensionsPrefix:"x-"},$7={properties:{}};ci.properties.http=$7;const k7={properties:{}};ui.properties.http=k7;const E7={properties:{headers:"Schema",bindingVersion:{type:"string"}}};Fn.properties.http=E7;const T7={properties:{type:{type:"string"},method:{type:"string",enum:["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS","CONNECT","TRACE"]},headers:"Schema",bindingVersion:{type:"string"}}};Zn.properties.http=T7;const _7={properties:{method:{type:"string"},query:"Schema",headers:"Schema",bindingVersion:{type:"string"}}};ci.properties.ws=_7;const A7={properties:{}};ui.properties.ws=A7;const I7={properties:{}};Fn.properties.ws=I7;const R7={properties:{}};Zn.properties.ws=R7;const Lse={properties:{"cleanup.policy":{type:"array",items:{enum:["delete","compact"]}},"retention.ms":{type:"integer"},"retention.bytes":{type:"integer"},"delete.retention.ms":{type:"integer"},"max.message.bytes":{type:"integer"}}},j7={properties:{topic:{type:"string"},partitions:{type:"integer"},replicas:{type:"integer"},topicConfiguration:"KafkaTopicConfiguration",bindingVersion:{type:"string"}}};ci.properties.kafka=j7;const Q7={properties:{}};ui.properties.kafka=Q7;const D7={properties:{key:"Schema",schemaIdLocation:{type:"string"},schemaIdPayloadEncoding:{type:"string"},schemaLookupStrategy:{type:"string"},bindingVersion:{type:"string"}}};Fn.properties.kafka=D7;const N7={properties:{groupId:"Schema",clientId:"Schema",bindingVersion:{type:"string"}}};Zn.properties.kafka=N7;const M7={properties:{destination:{type:"string"},destinationType:{type:"string"},bindingVersion:{type:"string"}}};ci.properties.anypointmq=M7;const q7={properties:{}};ui.properties.anypointmq=q7;const z7={properties:{headers:"Schema",bindingVersion:{type:"string"}}};Fn.properties.anypointmq=z7;const L7={properties:{}};Zn.properties.anypointmq=L7;const V7={properties:{}};ci.properties.amqp=V7;const X7={properties:{}};ui.properties.amqp=X7;const U7={properties:{contentEncoding:{type:"string"},messageType:{type:"string"},bindingVersion:{type:"string"}}};Fn.properties.amqp=U7;const W7={properties:{expiration:{type:"integer"},userId:{type:"string"},cc:{type:"array",items:{type:"string"}},priority:{type:"integer"},deliveryMode:{type:"integer"},mandatory:{type:"boolean"},bcc:{type:"array",items:{type:"string"}},replyTo:{type:"string"},timestamp:{type:"boolean"},ack:{type:"boolean"},bindingVersion:{type:"string"}}};Zn.properties.amqp=W7;const B7={properties:{}};ci.properties.amqp1=B7;const F7={properties:{}};ui.properties.amqp1=F7;const Z7={properties:{}};Fn.properties.amqp1=Z7;const Y7={properties:{}};Zn.properties.amqp1=Y7;const G7={properties:{qos:{type:"integer"},retain:{type:"boolean"},bindingVersion:{type:"string"}}};ci.properties.mqtt=G7;const Vse={properties:{topic:{type:"string"},qos:{type:"integer"},message:{type:"string"},retain:{type:"boolean"}}},H7={properties:{clientId:{type:"string"},cleanSession:{type:"boolean"},lastWill:"MqttServerBindingLastWill",keepAlive:{type:"integer"},bindingVersion:{type:"string"}}};ui.properties.mqtt=H7;const J7={properties:{bindingVersion:{type:"string"}}};Fn.properties.mqtt=J7;const K7={properties:{qos:{type:"integer"},retain:{type:"boolean"},bindingVersion:{type:"string"}}};Zn.properties.mqtt=K7;const eX={properties:{}};ci.properties.mqtt5=eX;const tX={properties:{}};ui.properties.mqtt5=tX;const rX={properties:{}};Fn.properties.mqtt5=rX;const nX={properties:{}};Zn.properties.mqtt5=nX;const iX={properties:{}};ci.properties.nats=iX;const oX={properties:{}};ui.properties.nats=oX;const sX={properties:{}};Fn.properties.nats=sX;const aX={properties:{queue:{type:"string"},bindingVersion:{type:"string"}}};Zn.properties.nats=aX;const lX={properties:{destination:{type:"string"},destinationType:{type:"string"},bindingVersion:{type:"string"}}};ci.properties.jms=lX;const cX={properties:{}};ui.properties.jms=cX;const uX={properties:{headers:"Schema",bindingVersion:{type:"string"}}};Fn.properties.jms=uX;const dX={properties:{headers:"Schema",bindingVersion:{type:"string"}}};Zn.properties.jms=dX;const fX={properties:{}};ci.properties.solace=fX;const pX={properties:{bindingVersion:{type:"string"},msgVpn:{type:"string"}}};ui.properties.solace=pX;const hX={properties:{}};Fn.properties.solace=hX;const Xse={properties:{destinationType:{type:"string",enum:["queue","topic"]},deliveryMode:{type:"string",enum:["direct","persistent"]},"queue.name":{type:"string"},"queue.topicSubscriptions":{type:"array",items:{type:"string"}},"queue.accessType":{type:"string",enum:["exclusive","nonexclusive"]},"queue.maxMsgSpoolSize":{type:"string"},"queue.maxTtl":{type:"string"},"topic.topicSubscriptions":{type:"array",items:{type:"string"}}}},mX={properties:{bindingVersion:{type:"string"},destinations:et("SolaceDestination")}};Zn.properties.solace=mX;const gX={properties:{}};ci.properties.stomp=gX;const yX={properties:{}};ui.properties.stomp=yX;const OX={properties:{}};Fn.properties.stomp=OX;const vX={properties:{}};Zn.properties.stomp=vX;const bX={properties:{}};ci.properties.redis=bX;const xX={properties:{}};ui.properties.redis=xX;const SX={properties:{}};Fn.properties.redis=SX;const wX={properties:{}};Zn.properties.redis=wX;const PX={properties:{}};ci.properties.mercure=PX;const CX={properties:{}};ui.properties.mercure=CX;const $X={properties:{}};Fn.properties.mercure=$X;const kX={properties:{}};Zn.properties.mercure=kX;const EX={HttpServerBinding:k7,HttpChannelBinding:$7,HttpMessageBinding:E7,HttpOperationBinding:T7,WsServerBinding:A7,WsChannelBinding:_7,WsMessageBinding:I7,WsOperationBinding:R7,KafkaServerBinding:Q7,KafkaTopicConfiguration:Lse,KafkaChannelBinding:j7,KafkaMessageBinding:D7,KafkaOperationBinding:N7,AnypointmqServerBinding:q7,AnypointmqChannelBinding:M7,AnypointmqMessageBinding:z7,AnypointmqOperationBinding:L7,AmqpServerBinding:X7,AmqpChannelBinding:V7,AmqpMessageBinding:U7,AmqpOperationBinding:W7,Amqp1ServerBinding:F7,Amqp1ChannelBinding:B7,Amqp1MessageBinding:Z7,Amqp1OperationBinding:Y7,MqttServerBindingLastWill:Vse,MqttServerBinding:H7,MqttChannelBinding:G7,MqttMessageBinding:J7,MqttOperationBinding:K7,Mqtt5ServerBinding:tX,Mqtt5ChannelBinding:eX,Mqtt5MessageBinding:rX,Mqtt5OperationBinding:nX,NatsServerBinding:oX,NatsChannelBinding:iX,NatsMessageBinding:sX,NatsOperationBinding:aX,JmsServerBinding:cX,JmsChannelBinding:lX,JmsMessageBinding:uX,JmsOperationBinding:dX,SolaceServerBinding:pX,SolaceChannelBinding:fX,SolaceMessageBinding:hX,SolaceDestination:Xse,SolaceOperationBinding:mX,StompServerBinding:yX,StompChannelBinding:gX,StompMessageBinding:OX,StompOperationBinding:vX,RedisServerBinding:xX,RedisChannelBinding:bX,RedisMessageBinding:SX,RedisOperationBinding:wX,MercureServerBinding:CX,MercureChannelBinding:PX,MercureMessageBinding:$X,MercureOperationBinding:kX,ServerBindings:ui,ChannelBindings:ci,MessageBindings:Fn,OperationBindings:Zn},Use={...EX,Root:Pse,Tag:y7,TagList:et("Tag"),ServerMap:v7,ExternalDocs:O7,Server:Ese,ServerVariable:b7,ServerVariablesMap:Ye("ServerVariable"),SecurityRequirement:kse,SecurityRequirementList:et("SecurityRequirement"),Info:Tse,Contact:x7,License:S7,ChannelMap:$se,Channel:Cse,Parameter:_se,ParametersMap:Ye("Parameter"),Operation:jse,Schema:zT,MessageExample:P7,SchemaProperties:LT,DiscriminatorMapping:XT,Discriminator:UT,Components:Qse,NamedSchemas:Ye("Schema"),NamedMessages:Ye("Message"),NamedMessageTraits:Ye("MessageTrait"),NamedOperationTraits:Ye("OperationTrait"),NamedParameters:Ye("Parameter"),NamedSecuritySchemes:Ye("SecurityScheme"),NamedCorrelationIds:Ye("CorrelationId"),ImplicitFlow:Dse,PasswordFlow:Nse,ClientCredentials:Mse,AuthorizationCode:qse,SecuritySchemeFlows:C7,SecurityScheme:zse,Message:Ase,MessageBindings:Fn,OperationBindings:Zn,OperationTrait:Ise,OperationTraitList:et("OperationTrait"),MessageTrait:Rse,MessageTraitList:et("MessageTrait"),MessageExampleList:et("MessageExample"),CorrelationId:w7,Dependencies:VT},Wse={properties:{asyncapi:{type:"string",enum:["3.0.0"]},info:"Info",id:{type:"string"},servers:"ServerMap",channels:"NamedChannels",components:"Components",operations:"NamedOperations",defaultContentType:{type:"string"}},required:["asyncapi","info"]},Bse={properties:{address:{type:"string"},messages:"NamedMessages",title:{type:"string"},summary:{type:"string"},description:{type:"string"},servers:"ServerList",parameters:"ParametersMap",bindings:"ChannelBindings",tags:"TagList",externalDocs:"ExternalDocs"}},Fse={properties:{host:{type:"string"},pathname:{type:"string"},protocol:{type:"string"},protocolVersion:{type:"string"},description:{type:"string"},variables:"ServerVariablesMap",security:"SecuritySchemeList",bindings:"ServerBindings",externalDocs:"ExternalDocs",tags:"TagList"},required:["host","protocol"]},Zse={properties:{title:{type:"string"},version:{type:"string"},description:{type:"string"},termsOfService:{type:"string"},contact:"Contact",license:"License",tags:"TagList",externalDocs:"ExternalDocs"},required:["title","version"]},Yse={properties:{description:{type:"string"},enum:{type:"array",items:{type:"string"}},default:{type:"string"},examples:{type:"array",items:{type:"string"}},location:{type:"string"}}},Gse={properties:{headers:"Schema",payload:t=>t&&t?.schemaFormat?{properties:{schema:"Schema",schemaFormat:{type:"string"}},required:["schema","schemaFormat"]}:"Schema",correlationId:"CorrelationId",contentType:{type:"string"},name:{type:"string"},title:{type:"string"},summary:{type:"string"},description:{type:"string"},tags:"TagList",externalDocs:"ExternalDocs",bindings:"MessageBindings",examples:"MessageExampleList",traits:"MessageTraitList"},additionalProperties:{}},Hse={properties:{tags:"TagList",title:{type:"string"},summary:{type:"string"},description:{type:"string"},externalDocs:"ExternalDocs",security:"SecuritySchemeList",bindings:"OperationBindings"},required:[]},Jse={properties:{headers:t=>typeof t=="function"||typeof t=="object"&&t?{properties:{schema:"Schema",schemaFormat:{type:"string"}}}:"Schema",correlationId:"CorrelationId",contentType:{type:"string"},name:{type:"string"},title:{type:"string"},summary:{type:"string"},description:{type:"string"},tags:"TagList",externalDocs:"ExternalDocs",bindings:"MessageBindings",examples:"MessageExampleList"},additionalProperties:{}},Kse={properties:{action:{type:"string",enum:["send","receive"]},channel:"Channel",title:{type:"string"},tags:"TagList",summary:{type:"string"},description:{type:"string"},externalDocs:"ExternalDocs",operationId:{type:"string"},security:"SecuritySchemeList",bindings:"OperationBindings",traits:"OperationTraitList",messages:"MessageList",reply:"OperationReply"},required:["action","channel"]},eae={properties:{channel:"Channel",messages:"MessageList",address:"OperationReplyAddress"}},tae={properties:{location:{type:"string"},description:{type:"string"}},required:["location"]},rae={properties:{messages:"NamedMessages",parameters:"NamedParameters",schemas:"NamedSchemas",replies:"NamedOperationReplies",replyAddresses:"NamedOperationRelyAddresses",correlationIds:"NamedCorrelationIds",messageTraits:"NamedMessageTraits",operationTraits:"NamedOperationTraits",tags:"NamedTags",externalDocs:"NamedExternalDocs",securitySchemes:"NamedSecuritySchemes",servers:"ServerMap",serverVariables:"ServerVariablesMap",channels:"NamedChannels",operations:"NamedOperations",serverBindings:"ServerBindings",channelBindings:"ChannelBindings",operationBindings:"OperationBindings",messageBindings:"MessageBindings"}},nae={properties:{refreshUrl:{type:"string"},availableScopes:{type:"object",additionalProperties:{type:"string"}},authorizationUrl:{type:"string"}},required:["authorizationUrl","availableScopes"]},iae={properties:{refreshUrl:{type:"string"},availableScopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["tokenUrl","availableScopes"]},oae={properties:{refreshUrl:{type:"string"},availableScopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["tokenUrl","availableScopes"]},sae={properties:{refreshUrl:{type:"string"},authorizationUrl:{type:"string"},availableScopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["authorizationUrl","tokenUrl","availableScopes"]},aae={properties:{type:{enum:["userPassword","apiKey","X509","symmetricEncryption","asymmetricEncryption","httpApiKey","http","oauth2","openIdConnect","plain","scramSha256","scramSha512","gssapi"]},description:{type:"string"},name:{type:"string"},in:{type:"string",enum:["query","header","cookie","user","password"]},scheme:{type:"string"},bearerFormat:{type:"string"},flows:"SecuritySchemeFlows",openIdConnectUrl:{type:"string"},scopes:{type:"array",items:{type:"string"}}},required(t){switch(t?.type){case"apiKey":return["type","in"];case"httpApiKey":return["type","name","in"];case"http":return["type","scheme"];case"oauth2":return["type","flows"];case"openIdConnect":return["type","openIdConnectUrl"];default:return["type"]}},allowed(t){switch(t?.type){case"apiKey":return["type","in","description"];case"httpApiKey":return["type","name","in","description"];case"http":return["type","scheme","bearerFormat","description"];case"oauth2":return["type","flows","description","scopes"];case"openIdConnect":return["type","openIdConnectUrl","description","scopes"];default:return["type","description"]}},extensionsPrefix:"x-"},lae={...EX,CorrelationId:w7,SecuritySchemeFlows:C7,ServerVariable:b7,Contact:x7,License:S7,MessageExample:P7,Tag:y7,Dependencies:VT,Schema:zT,Discriminator:UT,DiscriminatorMapping:XT,SchemaProperties:LT,ServerMap:v7,ExternalDocs:O7,Root:Wse,Channel:Bse,Parameter:Yse,Info:Zse,Server:Fse,MessageTrait:Jse,Operation:Kse,OperationReply:eae,OperationReplyAddress:tae,Components:rae,ImplicitFlow:nae,PasswordFlow:iae,ClientCredentials:oae,AuthorizationCode:sae,SecurityScheme:aae,Message:Gse,OperationTrait:Hse,ServerVariablesMap:Ye("ServerVariable"),NamedTags:Ye("Tag"),NamedExternalDocs:Ye("ExternalDocs"),NamedChannels:Ye("Channel"),ParametersMap:Ye("Parameter"),NamedOperations:Ye("Operation"),NamedOperationReplies:Ye("OperationReply"),NamedOperationRelyAddresses:Ye("OperationReplyAddress"),NamedSchemas:Ye("Schema"),NamedMessages:Ye("Message"),NamedMessageTraits:Ye("MessageTrait"),NamedOperationTraits:Ye("OperationTrait"),NamedParameters:Ye("Parameter"),NamedSecuritySchemes:Ye("SecurityScheme"),NamedCorrelationIds:Ye("CorrelationId"),ServerList:et("Server"),SecuritySchemeList:et("SecurityScheme"),MessageList:et("Message"),OperationTraitList:et("OperationTrait"),MessageTraitList:et("MessageTrait"),MessageExampleList:et("MessageExample"),TagList:et("Tag")},cae={properties:{arazzo:{type:"string"},info:"Info",sourceDescriptions:"SourceDescriptions",workflows:"Workflows",components:"Components"},required:["arazzo","info","sourceDescriptions","workflows"],extensionsPrefix:"x-"},uae={properties:{},additionalProperties:"Parameter"},dae={properties:{},additionalProperties:"SuccessActionObject"},fae={properties:{},additionalProperties:"FailureActionObject"},pae={properties:{inputs:"NamedInputs",parameters:"NamedParameters",successActions:"NamedSuccessActions",failureActions:"NamedFailureActions"},extensionsPrefix:"x-"},hae=Ye("Schema"),mae={properties:{title:{type:"string"},description:{type:"string"},summary:{type:"string"},version:{type:"string"}},required:["title","version"],extensionsPrefix:"x-"},gae={properties:{},items:t=>t?.type==="openapi"?"OpenAPISourceDescription":"ArazzoSourceDescription"},yae={properties:{name:{type:"string"},type:{type:"string",enum:["openapi"]},url:{type:"string"},"x-serverUrl":{type:"string"}},required:["name","type","url"],extensionsPrefix:"x-"},Oae={properties:{name:{type:"string"},type:{type:"string",enum:["arazzo"]},url:{type:"string"}},required:["name","type","url"],extensionsPrefix:"x-"},vae={properties:{reference:{type:"string"},value:{}},required:["reference"],extensionsPrefix:"x-"},bae={properties:{in:{type:"string",enum:["header","query","path","cookie"]},name:{type:"string"},value:{}},required:["name","value"],extensionsPrefix:"x-"},xae={properties:{},items:t=>t?.reference?"ReusableObject":"Parameter"},Sae={properties:{workflowId:{type:"string"},summary:{type:"string"},description:{type:"string"},parameters:"Parameters",dependsOn:{type:"array",items:{type:"string"}},inputs:"Schema",outputs:"Outputs",steps:"Steps",successActions:"OnSuccessActionList",failureActions:"OnFailureActionList","x-security":"ExtendedSecurityList"},required:["workflowId","steps"],extensionsPrefix:"x-"},wae=et("Workflow"),Pae=et("Step"),Cae={properties:{stepId:{type:"string"},description:{type:"string"},operationId:{type:"string"},operationPath:{type:"string"},workflowId:{type:"string"},parameters:"Parameters",successCriteria:et("CriterionObject"),onSuccess:"OnSuccessActionList",onFailure:"OnFailureActionList",outputs:"Outputs","x-operation":"ExtendedOperation","x-security":"ExtendedSecurityList",requestBody:"RequestBody"},required:["stepId"],requiredOneOf:["x-operation","operationId","operationPath","workflowId"],extensionsPrefix:"x-"},$ae={properties:{},additionalProperties:{type:"string"}},kae={properties:{contentType:{type:"string"},payload:{},replacements:et("Replacement")},required:["payload"],extensionsPrefix:"x-"},Eae={properties:{target:{type:"string"},value:{}},required:["target","value"],extensionsPrefix:"x-"},Tae={properties:{schemeName:{type:"string"},values:{},scheme:"SecurityScheme"},required:["values"],requiredOneOf:["schemeName","scheme"]},_ae={properties:{url:{type:"string"},method:{enum:["get","post","put","delete","patch","head","options","trace","connect","query","GET","POST","PUT","DELETE","PATCH","OPTIONS","HEAD","TRACE","CONNECT","QUERY"]}},required:["url","method"]},Aae={properties:{condition:{type:"string"},context:{type:"string"},type:t=>{if(t)return typeof t=="string"?{enum:["regex","jsonpath","simple","xpath"]}:t?.type==="jsonpath"?"JSONPathCriterion":"XPathCriterion"}},required:["condition"]},Iae={properties:{type:{type:"string",enum:["jsonpath"]},version:{type:"string",enum:["draft-goessner-dispatch-jsonpath-00"]}}},Rae={properties:{type:{type:"string",enum:["xpath"]},version:{type:"string",enum:["xpath-30","xpath-20","xpath-10"]}}},jae={properties:{name:{type:"string"},type:{type:"string",enum:["goto","end"]},stepId:{type:"string"},workflowId:{type:"string"},criteria:et("CriterionObject")},required:["type","name"]},Qae={properties:{},items:t=>t?.type&&t?.name?"SuccessActionObject":"ReusableObject"},Dae={properties:{name:{type:"string"},type:{type:"string",enum:["goto","retry","end"]},workflowId:{type:"string"},stepId:{type:"string"},retryAfter:{type:"number",minimum:0},retryLimit:{type:"number",minimum:0},criteria:et("CriterionObject")},required:["type","name"]},Nae={properties:{},items:t=>t?.type&&t?.name?"FailureActionObject":"ReusableObject"},Mae={Root:cae,Info:mae,SourceDescriptions:gae,OpenAPISourceDescription:yae,ArazzoSourceDescription:Oae,Parameters:xae,Parameter:bae,ReusableObject:vae,Workflows:wae,Workflow:Sae,Steps:Pae,Step:Cae,RequestBody:kae,Replacement:Eae,ExtendedOperation:_ae,ExtendedSecurityList:et("ExtendedSecurity"),ExtendedSecurity:Tae,Outputs:$ae,CriterionObject:Aae,XPathCriterion:Rae,JSONPathCriterion:Iae,SuccessActionObject:jae,OnSuccessActionList:Qae,FailureActionObject:Dae,OnFailureActionList:Nae,Schema:Qn.Schema,NamedSchemas:Ye("Schema"),ExternalDocs:Qn.ExternalDocs,DiscriminatorMapping:Qn.DiscriminatorMapping,Discriminator:Qn.Discriminator,DependentRequired:Qn.DependentRequired,SchemaProperties:Qn.SchemaProperties,PatternProperties:Qn.SchemaProperties,Components:pae,NamedInputs:hae,NamedParameters:uae,NamedSuccessActions:dae,NamedFailureActions:fae,Xml:Qn.Xml,SecurityScheme:Qn.SecurityScheme,OAuth2Flows:Qn.OAuth2Flows,ImplicitFlow:Qn.ImplicitFlow,PasswordFlow:Qn.PasswordFlow,ClientCredentials:Qn.ClientCredentials,AuthorizationCode:Qn.AuthorizationCode,DeviceAuthorization:Qn.DeviceAuthorization},qae={properties:{overlay:{type:"string"},info:"Info",extends:{type:"string"},actions:"Actions"},required:["overlay","info","actions"],extensionsPrefix:"x-"},zae={properties:{title:{type:"string"},version:{type:"string"}},required:["title","version"],extensionsPrefix:"x-"},Lae=et("Action"),Vae={properties:{target:{type:"string"},description:{type:"string"},update:{},remove:{type:"boolean"}},required:["target"],extensionsPrefix:"x-"},Xae={Root:qae,Info:zae,Actions:Lae,Action:Vae},Uae={properties:{openrpc:{type:"string"},info:"Info",servers:"ServerList",methods:"MethodList",components:"Components",externalDocs:"ExternalDocs"},required:["openrpc","info","methods"],extensionsPrefix:"x-"},Wae={properties:{title:{type:"string"},description:{type:"string"},termsOfService:{type:"string"},contact:"Contact",license:"License",version:{type:"string"}},required:["title","version"],extensionsPrefix:"x-"},Bae={properties:{name:{type:"string"},url:{type:"string"},email:{type:"string"}},extensionsPrefix:"x-"},Fae={properties:{name:{type:"string"},url:{type:"string"}},required:["name"],extensionsPrefix:"x-"},Zae={properties:{url:{type:"string"},name:{type:"string"},description:{type:"string"},summary:{type:"string"},variables:"ServerVariablesMap"},required:["url"],extensionsPrefix:"x-"},Yae={properties:{enum:{type:"array",items:{type:"string"}},default:{type:"string"},description:{type:"string"}},required:["default"],extensionsPrefix:"x-"},Gae={properties:{name:{type:"string"},tags:"TagList",summary:{type:"string"},description:{type:"string"},externalDocs:"ExternalDocs",params:"ContentDescriptorList",result:"ContentDescriptor",deprecated:{type:"boolean"},servers:"ServerList",errors:"ErrorList",links:"LinkList",paramStructure:{enum:["by-name","by-position","either"]},examples:"ExamplePairingList"},required:["name","params"],extensionsPrefix:"x-"},Hae={properties:{name:{type:"string"},summary:{type:"string"},description:{type:"string"},required:{type:"boolean"},schema:"Schema",deprecated:{type:"boolean"}},required:["name","schema"],extensionsPrefix:"x-"},Jae={properties:{name:{type:"string"},description:{type:"string"},summary:{type:"string"},params:"ExampleList",result:"Example"},extensionsPrefix:"x-"},Kae={properties:{name:{type:"string"},summary:{type:"string"},description:{type:"string"},value:{resolvable:!1},externalValue:{type:"string"}},extensionsPrefix:"x-"},ele={properties:{name:{type:"string"},description:{type:"string"},summary:{type:"string"},method:{type:"string"},params:{type:"object"},server:"Server"},required:["name"],extensionsPrefix:"x-"},tle={properties:{code:{type:"integer"},message:{type:"string"},data:{resolvable:!1}},required:["code","message"],extensionsPrefix:"x-"},rle={properties:{contentDescriptors:"NamedContentDescriptors",schemas:"NamedSchemas",examples:"NamedExamples",links:"NamedLinks",errors:"NamedErrors",examplePairingObjects:"NamedExamplePairingObjects",tags:"NamedTags"},extensionsPrefix:"x-"},nle={properties:{name:{type:"string"},summary:{type:"string"},description:{type:"string"},externalDocs:"ExternalDocs"},required:["name"],extensionsPrefix:"x-"},ile={properties:{description:{type:"string"},url:{type:"string"}},required:["url"],extensionsPrefix:"x-"},ole={Root:Uae,Info:Wae,Contact:Bae,License:Fae,Server:Zae,ServerList:et("Server"),ServerVariable:Yae,ServerVariablesMap:Ye("ServerVariable"),Method:Gae,MethodList:et("Method"),ContentDescriptor:Hae,ContentDescriptorList:et("ContentDescriptor"),ExamplePairing:Jae,ExamplePairingList:et("ExamplePairing"),Example:Kae,ExampleList:et("Example"),Link:ele,LinkList:et("Link"),ErrorObject:tle,ErrorList:et("ErrorObject"),Components:rle,Tag:nle,TagList:et("Tag"),ExternalDocs:ile,Schema:zT,SchemaProperties:LT,Dependencies:VT,DiscriminatorMapping:XT,Discriminator:UT,NamedContentDescriptors:Ye("ContentDescriptor"),NamedSchemas:Ye("Schema"),NamedExamples:Ye("Example"),NamedLinks:Ye("Link"),NamedErrors:Ye("ErrorObject"),NamedExamplePairingObjects:Ye("ExamplePairing"),NamedTags:Ye("Tag")},TX={hide:{type:"boolean",default:!1},component:{type:"string",enum:["radio","checkbox"],default:"checkbox"},label:{type:"string"},items:{type:"array",items:{type:"string"}}},ap={type:"object",properties:TX,additionalProperties:!1},sle={type:"object",properties:{hide:{type:"boolean",default:!1},label:{type:"string"},placeholder:{type:"string"}},additionalProperties:!1},Bx={type:"object",properties:{hide:{type:"boolean",default:!1},type:{type:"string",enum:["rating","sentiment","comment","reasons","mood","scale"],default:"sentiment"},settings:{type:"object",properties:{label:{type:"string"},submitText:{type:"string"},buttonText:{type:"string"},component:{type:"string",enum:["radio","checkbox"],default:"checkbox"},items:{type:"array",items:{type:"string"},minItems:1},leftScaleLabel:{type:"string"},rightScaleLabel:{type:"string"},reasons:{type:"object",properties:Object.assign(Object.assign({},TX),{like:ap,dislike:ap,satisfied:ap,neutral:ap,dissatisfied:ap}),additionalProperties:!1},comment:{type:"object",properties:{hide:{type:"boolean",default:!1},label:{type:"string"},likeLabel:{type:"string"},dislikeLabel:{type:"string"},satisfiedLabel:{type:"string"},neutralLabel:{type:"string"},dissatisfiedLabel:{type:"string"}},additionalProperties:!1},optionalEmail:sle},additionalProperties:!1}},additionalProperties:!1},ale={type:"object",properties:{languages:{type:"array",items:{type:"object",properties:{lang:{type:"string",examples:["curl","JavaScript","Node.js","Python","Java8+Apache","Java","C#","C#+Newtonsoft","PHP","Go","Ruby","R","Payload"]},label:{type:"string"},options:{type:"object",properties:{indent:{type:"string"},withImports:{type:"boolean"},withComments:{type:"boolean"},binary:{type:"boolean"},credentials:{type:"string",enum:["omit","same-origin","include"]}},additionalProperties:!1}},required:["lang"],additionalProperties:!1}},skipOptionalParameters:{type:"boolean"},withOAuth2Call:{type:"boolean"}},additionalProperties:!1},_X={type:"array",items:{type:"object",properties:{title:{type:"string"},url:{type:"string"}},required:["url"],additionalProperties:!1}},i2={type:"object",properties:{licenseKey:{type:"string"},hideLoading:{type:"boolean"},disableRouter:{type:"boolean"},hideSidebar:{type:"boolean"},feedback:Bx,hideReplay:{type:"boolean"},oAuth2RedirectURI:{type:"string",nullable:!0},corsProxyUrl:{type:"string"},sortRequiredPropsFirst:{type:"boolean"},sanitize:{type:"boolean"},hideDownloadButtons:{type:"boolean"},downloadUrls:_X,onlyRequiredInSamples:{type:"boolean"},generatedSamplesMaxDepth:{oneOf:[{type:"number"},{type:"string"}]},showExtensions:{oneOf:[{type:"boolean"},{type:"string"},{type:"array",items:{type:"string"}}]},hideSchemaTitles:{type:"boolean"},jsonSamplesExpandLevel:{oneOf:[{type:"number"},{type:"string"}]},schemasExpansionLevel:{oneOf:[{type:"number"},{type:"string"}]},mockServer:{type:"object",properties:{url:{type:"string"},position:{type:"string",enum:["first","last","replace","off"]},description:{type:"string"}}},maxDisplayedEnumValues:{type:"number"},schemaDefinitionsTagName:{type:"string"},layout:{type:"string",enum:["stacked","three-panel"]},hideInfoMetadata:{type:"boolean"},events:{type:"object"},skipBundle:{type:"boolean"},routingBasePath:{type:"string"},codeSamples:ale,ignoreNamedSchemas:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},hidePropertiesPrefix:{type:"boolean"},excludeFromSearch:{type:"boolean"},showSchemaCatalogLinks:{type:"boolean"}},additionalProperties:!1},Du={type:"object",properties:{includeByName:{type:"array",items:{type:"string"}},excludeByName:{type:"array",items:{type:"string"}}},additionalProperties:!1},lle={type:"object",properties:{name:{type:"string"},items:Du,queries:Du,mutations:Du,subscriptions:Du,types:Du,directives:Du},required:["name"],additionalProperties:!1},cle={properties:{requireExactGroups:{type:"boolean"},groups:{type:"array",items:lle},otherItemsGroupName:{type:"string"}}},ule={type:"object",properties:{name:{type:"string"},url:{type:"string",format:"uri"},email:{type:"string",format:"email"}},additionalProperties:!1},dle={type:"object",properties:{name:{type:"string"},url:{type:"string",format:"uri"},identifier:{type:"string"}},additionalProperties:!1},fle={type:"object",properties:{title:{type:"string"},version:{type:"string"},description:{type:"string"},termsOfService:{type:"string",format:"uri"},contact:ule,license:dle},additionalProperties:!1},Ab={type:"object",properties:{menu:{type:"object",properties:Object.assign({},cle.properties),additionalProperties:!1},sidebar:{type:"object",properties:{hide:{type:"boolean"}}},downloadUrls:_X,apiLogo:{type:"object",properties:{imageUrl:{type:"string"},href:{type:"string"},altText:{type:"string"},backgroundColor:{type:"string"}}},jsonSamplesDepth:{type:"number"},samplesMaxInlineArgs:{type:"number"},licenseKey:{type:"string"},fieldExpandLevel:{type:"number"},baseUrlPath:{type:"string"},metadata:{type:"object",properties:{apiId:{type:"string"}},additionalProperties:!0},feedback:Bx,layout:{type:"string",enum:["stacked","three-panel"]},showBuiltInScalars:{type:"boolean"},showBuiltInDirectives:{type:"boolean"},info:fle},additionalProperties:!1},ple={type:"object",properties:{label:{type:"string"},lang:{enum:["curl","C#","Go","Java","Java8+Apache","JavaScript","Node.js","PHP","Python","R","Ruby"]}},required:["lang"]},hle={type:"object",properties:{enum:{type:"string"},enumSingleValue:{type:"string"},enumArray:{type:"string"},default:{type:"string"},deprecated:{type:"string"},example:{type:"string"},examples:{type:"string"},nullable:{type:"string"},recursive:{type:"string"},arrayOf:{type:"string"},webhook:{type:"string"},authorizations:{type:"string"},tryItAuthBasicUsername:{type:"string"},tryItAuthBasicPassword:{type:"string"}}},o2={type:"object",properties:{label:{type:"string"},link:{type:"string"},target:{type:"string"}},required:["label","link"]},mle={type:"object",properties:{beforeInfo:{type:"array",items:o2},end:{type:"array",items:o2}}},Ec={type:"object",properties:{main:{type:"string"},light:{type:"string"},dark:{type:"string"},contrastText:{type:"string"}}},Cg={type:"object",properties:{backgroundColor:{type:"string"},borderColor:{type:"string"},color:{type:"string"},tabTextColor:{type:"string"}}},gle={type:"object",properties:Fx(Ec.properties,["light","dark"])},yle={type:"object",properties:{basic:{type:"string"},delete:{type:"string"},get:{type:"string"},head:{type:"string"},link:{type:"string"},options:{type:"string"},patch:{type:"string"},post:{type:"string"},put:{type:"string"}}},Ole={type:"object",properties:{error:Cg,info:Cg,redirect:Cg,success:Cg}},vle={type:"object",properties:_f(Ec.properties,["dark"])},ble={type:"object",properties:{primary:{type:"string"},secondary:{type:"string"},light:{type:"string"}}},xle={type:"object",properties:{accent:Ec,border:gle,error:Ec,http:yle,primary:Ec,responses:Ole,secondary:vle,success:Ec,text:ble,tonalOffset:{type:"number"},warning:Ec}},$g={type:"object",properties:{fontSize:{type:"string"},padding:{type:"string"},minWidth:{type:"string"}}},Sle={type:"object",properties:{small:$g,medium:$g,large:$g,xlarge:$g}},Ds={type:"object",properties:{fontFamily:{type:"string"},fontSize:{type:"string"},fontWeight:{type:"string"},lineHeight:{type:"string"}}},wle={type:"object",properties:Object.assign(Object.assign({},_f(Ds.properties,["fontSize","lineHeight"])),{borderRadius:{type:"string"},hoverStyle:{type:"string"},boxShadow:{type:"string"},hoverBoxShadow:{type:"string"},sizes:Sle})},s2={type:"object",properties:Fx(Ds.properties,["fontSize","lineHeight"])},Ple={type:"object",properties:{medium:s2,small:s2}},Cle={type:"object",properties:Object.assign(Object.assign({},_f(Ds.properties,["fontSize","lineHeight"])),{borderRadius:{type:"string"},color:{type:"string"},sizes:Ple})},$le={type:"object",properties:{top:{type:"string"},width:{type:"string"},height:{type:"string"}}},kle={type:"object",properties:{borderRadius:{type:"string"},backgroundColor:{type:"string"}}},a2={type:"object",properties:{fullWidth:{type:"boolean"}}},Ele={type:"object",properties:{buttons:wle,httpBadges:Cle,layoutControls:$le,panels:kle,tryItButton:a2,tryItSendButton:a2}},Ib={type:"object",properties:{small:{type:"string"},medium:{type:"string"},large:{type:"string"}}},Tle={type:"object",properties:{maxWidth:Ib}},_le={type:"object",properties:{maxWidth:Ib,middlePanelMaxWidth:Ib}},Ale={type:"object",properties:{showDarkRightPanel:{type:"boolean"},stacked:Tle,"three-panel":_le}},l2={type:"object",properties:{backgroundColor:{type:"string"},border:{type:"string"}}},Ile={type:"object",properties:{breakFieldNames:{type:"boolean"},caretColor:{type:"string"},caretSize:{type:"string"},constraints:l2,defaultDetailsWidth:{type:"string"},examples:l2,labelsTextSize:{type:"string"},linesColor:{type:"string"},nestedBackground:{type:"string"},nestingSpacing:{type:"string"},requireLabelColor:{type:"string"},typeNameColor:{type:"string"},typeTitleColor:{type:"string"}}},AX={type:"object",properties:{subItemsColor:{type:"string"},textTransform:{type:"string"},fontWeight:{type:"string"}}},Rle={type:"object",properties:Fx(AX.properties,["textTransform"])},jle={type:"object",properties:{unit:{type:"number"},paddingHorizontal:{type:"string"},paddingVertical:{type:"string"},offsetTop:{type:"string"},offsetLeft:{type:"string"},offsetNesting:{type:"string"}}},Qle={type:"object",properties:Object.assign(Object.assign({},_f(Ds.properties,["fontWeight","lineHeight"])),{activeBgColor:{type:"string"},activeTextColor:{type:"string"},backgroundColor:{type:"string"},borderRadius:{type:"string"},breakPath:{type:"boolean"},caretColor:{type:"string"},caretSize:{type:"string"},groupItems:AX,level1items:Rle,rightLineColor:{type:"string"},separatorLabelColor:{type:"string"},showAtBreakpoint:{type:"string"},spacing:jle,textColor:{type:"string"},width:{type:"string"}})},kg={type:"object",properties:Object.assign(Object.assign({},Ds.properties),{color:{type:"string"},transform:{type:"string"}})},Dle={type:"object",properties:Object.assign(Object.assign({},Ds.properties),{backgroundColor:{type:"string"},color:{type:"string"},wordBreak:{type:"string",enum:["break-all","break-word","keep-all","normal","revert","unset","inherit","initial"]},wrap:{type:"boolean"}})},Nle={type:"object",properties:_f(Ds.properties,["fontSize"])},Mle={type:"object",properties:{color:{type:"string"},hover:{type:"string"},textDecoration:{type:"string"},hoverTextDecoration:{type:"string"},visited:{type:"string"}}},qle={type:"object",properties:Object.assign(Object.assign({code:Dle,fieldName:Ds},Fx(Ds.properties,["fontSize","fontFamily"])),{fontWeightBold:{type:"string"},fontWeightLight:{type:"string"},fontWeightRegular:{type:"string"},heading1:kg,heading2:kg,heading3:kg,headings:Nle,lineHeight:{type:"string"},links:Mle,optimizeSpeed:{type:"boolean"},rightPanelHeading:kg,smoothing:{type:"string",enum:["auto","none","antialiased","subpixel-antialiased","grayscale"]}})},zle={type:"object",properties:Object.assign({color:{type:"string"}},_f(Ds.properties,["fontWeight"]))},Lle={type:"object",properties:{backgroundColor:{type:"string"},borderRadius:{type:"string"},tokens:zle}},Vle={type:"object",properties:{gutter:{type:"string"},maxHeight:{type:"string"},maxWidth:{type:"string"}}},Xle={type:"object",properties:{backgroundColor:{type:"string"},color:{type:"string"}}},c2={type:"object",properties:{custom:{type:"string"}}},Ule={type:"object",properties:{DownloadButton:c2,NextSectionButton:c2}},Wle={type:"object",properties:{backgroundColor:{type:"string"},panelBackgroundColor:{type:"string"},panelControlsBackgroundColor:{type:"string"},showAtBreakpoint:{type:"string"},textColor:{type:"string"},width:{type:"string"}}},Ble={type:"object",properties:{borderRadius:{type:"string"}}},Fle={type:"object",properties:{sectionHorizontal:{type:"number"},sectionVertical:{type:"number"},unit:{type:"number"}}},Zle={type:"object",properties:{breakpoints:Ib,codeBlock:Lle,colors:xle,components:Ele,layout:Ale,logo:Vle,fab:Xle,overrides:Ule,rightPanel:Wle,schema:Ile,shape:Ble,sidebar:Qle,spacing:Fle,typography:qle,links:{properties:{color:{type:"string"}}},codeSample:{properties:{backgroundColor:{type:"string"}}}}},Yle={type:"object",properties:{skipOptionalParameters:{type:"boolean"},languages:{type:"array",items:ple}},required:["languages"]},Gle={properties:{theme:Zle,ctrlFHijack:{type:"boolean"},defaultSampleLanguage:{type:"string"},disableDeepLinks:{type:"boolean"},disableSearch:{type:"boolean"},disableSidebar:{type:"boolean"},downloadDefinitionUrl:{type:"string"},expandDefaultServerVariables:{type:"boolean"},enumSkipQuotes:{type:"boolean"},expandDefaultRequest:{type:"boolean"},expandDefaultResponse:{type:"boolean"},expandResponses:{type:"string"},expandSingleSchemaField:{type:"boolean"},generateCodeSamples:Yle,generatedPayloadSamplesMaxDepth:{type:"number"},hideDownloadButton:{type:"boolean"},hideHostname:{type:"boolean"},hideInfoSection:{type:"boolean"},hideLogo:{type:"boolean"},hideRequestPayloadSample:{type:"boolean"},hideRightPanel:{type:"boolean"},hideSchemaPattern:{type:"boolean"},hideSingleRequestSampleTab:{type:"boolean"},hideSecuritySection:{type:"boolean"},hideTryItPanel:{type:"boolean"},hideFab:{type:"boolean"},hideOneOfDescription:{type:"boolean"},htmlTemplate:{type:"string"},jsonSampleExpandLevel:{oneOf:[{type:"number",minimum:1},{type:"string"}]},labels:hle,menuToggle:{type:"boolean"},nativeScrollbars:{type:"boolean"},noAutoAuth:{type:"boolean"},onDeepLinkClick:{type:"object"},pagination:{enum:["none","section","item"]},pathInMiddlePanel:{type:"boolean"},payloadSampleIdx:{type:"number",minimum:0},requiredPropsFirst:{type:"boolean"},routingStrategy:{type:"string"},samplesTabsMaxCount:{type:"number"},schemaExpansionLevel:{oneOf:[{type:"number",minimum:0},{type:"string"}]},minCharacterLengthToInitSearch:{type:"number",minimum:1},maxResponseHeadersToShowInTryIt:{type:"number",minimum:0},scrollYOffset:{oneOf:[{type:"number"},{type:"string"}]},searchAutoExpand:{type:"boolean"},searchFieldLevelBoost:{type:"number",minimum:0},searchMaxDepth:{type:"number",minimum:1},searchMode:{type:"string",enum:["default","path-only"]},searchOperationTitleBoost:{type:"number"},searchTagTitleBoost:{type:"number"},sendXUserAgentInTryIt:{type:"boolean"},showChangeLayoutButton:{type:"boolean"},showConsole:{type:"boolean"},showNextButton:{type:"boolean"},showRightPanelToggle:{type:"boolean"},showSecuritySchemeType:{type:"boolean"},showWebhookVerb:{type:"boolean"},showObjectSchemaExamples:{type:"boolean"},disableTryItRequestUrlEncoding:{type:"boolean"},sidebarLinks:mle,sideNavStyle:{type:"string",enum:["summary-only","path-first","id-only","path-only"]},simpleOneOfTypeLabel:{type:"boolean"},sortEnumValuesAlphabetically:{type:"boolean"},sortOperationsAlphabetically:{type:"boolean"},sortPropsAlphabetically:{type:"boolean"},sortTagsAlphabetically:{type:"boolean"},suppressWarnings:{type:"boolean"},unstable_externalDescription:{type:"boolean"},unstable_ignoreMimeParameters:{type:"boolean"},untrustedDefinition:{type:"boolean"},showAccessMode:{type:"boolean"},preserveOriginalExtensionsName:{type:"boolean"},markdownHeadingsAnchorLevel:{type:"number"}}};function Fx(t,e){return Object.fromEntries(e.filter(r=>r in t).map(r=>[r,t[r]]))}function _f(t,e){return Object.fromEntries(Object.entries(t).filter(([r])=>!e.includes(r)))}const is={type:"object",additionalProperties:{oneOf:[{type:"string"},{type:"object"}]}},WT={rules:is,oas2Rules:is,oas3_0Rules:is,oas3_1Rules:is,oas3_2Rules:is,async2Rules:is,async3Rules:is,arazzo1Rules:is,overlay1Rules:is,openrpc1Rules:is},os={type:"object",additionalProperties:!0},BT={preprocessors:os,oas2Preprocessors:os,oas3_0Preprocessors:os,oas3_1Preprocessors:os,oas3_2Preprocessors:os,async2Preprocessors:os,async3Preprocessors:os,arazzo1Preprocessors:os,overlay1Preprocessors:os,openrpc1Preprocessors:os},ss={type:"object",additionalProperties:!0},FT={decorators:ss,oas2Decorators:ss,oas3_0Decorators:ss,oas3_1Decorators:ss,oas3_2Decorators:ss,async2Decorators:ss,async3Decorators:ss,arazzo1Decorators:ss,overlay1Decorators:ss,openrpc1Decorators:ss},pn={type:"object",properties:{hide:{type:"boolean"}},additionalProperties:!1},u2={type:"object",properties:{src:{type:"string"},async:{type:"boolean"},crossorigin:{type:"string"},defer:{type:"boolean"},fetchpriority:{type:"string"},integrity:{type:"string"},module:{type:"boolean"},nomodule:{type:"boolean"},nonce:{type:"string"},referrerpolicy:{type:"string"},type:{type:"string"}},required:["src"],additionalProperties:!0},KS={type:"object",properties:{page:{type:"string"},directory:{type:"string"},disconnect:{type:"boolean",default:!1},group:{type:"string"},label:{type:"string"},href:{type:"string"},external:{type:"boolean"},labelTranslationKey:{type:"string"},groupTranslationKey:{type:"string"},icon:{oneOf:[{type:"string"},{type:"object",properties:{srcSet:{type:"string"}},required:["srcSet"]}]},separator:{type:"string"},separatorLine:{type:"boolean"},linePosition:{type:"string",enum:["top","bottom"],default:"top"},version:{type:"string"},menuStyle:{type:"string",enum:["drilldown"]},expanded:{type:"string",const:"always"},selectFirstItemOnExpand:{type:"boolean"},flatten:{type:"boolean"},linkedSidebars:{type:"array",items:{type:"string"}},items:{type:"array",items:{type:"object",additionalProperties:!0}},rbac:{type:"object",additionalProperties:{type:"string"}},additionalProps:{type:"object",additionalProperties:!0}}},ZT={type:"array",items:Object.assign(Object.assign({},KS),{properties:Object.assign(Object.assign({},KS.properties),{items:{type:"array",items:KS}})})},Hle={type:"object",properties:{name:{type:"string"},icon:{type:"string"},folder:{type:"string"}},additionalProperties:!1,required:["name","folder"]},Jle={type:"object",properties:{hide:{type:"boolean",default:!1},suggestions:{default:[],type:"array",items:{type:"string"}},prompt:{type:"string"}},additionalProperties:!1},Kle={type:"array",items:{type:"object",required:["name","field","type"],properties:{name:{type:"string"},field:{type:"string"},type:{type:"string",enum:["multi-select","select","tags"]}},additionalProperties:!1}},ece={type:"object",properties:Object.assign({facets:Kle},pn.properties),additionalProperties:!1},tce={type:"object",properties:{page:{type:"string"},label:{type:"string"},labelTranslationKey:{type:"string"}},required:["page"]},IX={type:"object",properties:{image:{type:"string"},srcSet:{type:"string"},altText:{type:"string"},link:{type:"string"},favicon:{type:"string"}},additionalProperties:!1},RX={type:"object",properties:Object.assign({items:ZT},pn.properties),additionalProperties:!1},jX={type:"object",additionalProperties:Hle},QX={type:"object",properties:Object.assign({items:ZT,copyrightText:{type:"string"},logo:pn},pn.properties),additionalProperties:!1},DX={type:"object",properties:Object.assign({separatorLine:{type:"boolean"},linePosition:{type:"string",enum:["top","bottom"],default:"bottom"}},pn.properties),additionalProperties:!1},NX={type:"object",properties:{head:{type:"array",items:u2},body:{type:"array",items:u2}},additionalProperties:!1},MX={type:"array",items:{type:"object",properties:{href:{type:"string"},as:{type:"string"},crossorigin:{type:"string"},fetchpriority:{type:"string"},hreflang:{type:"string"},imagesizes:{type:"string"},imagesrcset:{type:"string"},integrity:{type:"string"},media:{type:"string"},prefetch:{type:"string"},referrerpolicy:{type:"string"},rel:{type:"string"},sizes:{type:"string"},title:{type:"string"},type:{type:"string"}},required:["href"],additionalProperties:!0}},qX={type:"object",properties:Object.assign({engine:{type:"string",enum:["flexsearch","typesense"],default:"flexsearch"},ai:Jle,filters:ece,placement:{type:"string",default:"navbar"},shortcuts:{type:"array",items:{type:"string"},default:["⌘+K,ctrl+K"]},suggestedPages:{type:"array",items:tce}},pn.properties),additionalProperties:!1},zX={type:"object",properties:{hide:{type:"boolean"},suggestions:{default:[],type:"array",items:{type:"string"}},prompt:{type:"string"},trigger:{type:"object",properties:{hide:{type:"boolean",default:!1},inputType:{type:"string",enum:["button","icon"],default:"button"},inputIcon:{type:"string",enum:["chat","sparkles","redocly"],default:"sparkles"}},additionalProperties:!1}},additionalProperties:!1},LX={type:"object",properties:Object.assign({ignoreDetection:{type:"boolean"},modes:{type:"array",items:{type:"string"},default:["light","dark"]}},pn.properties),additionalProperties:!1},rce={type:"object",properties:Object.assign(Object.assign({},pn.properties),{items:{type:"array",items:{type:"string",enum:["copy","view","chatgpt","claude","docs-mcp-cursor","docs-mcp-vscode"]},default:["copy","view","chatgpt","claude","docs-mcp-cursor","docs-mcp-vscode"]}}),additionalProperties:!1},VX={type:"object",properties:{nextButton:{type:"object",properties:Object.assign({text:{type:"string"}},pn.properties),additionalProperties:!1,default:{}},previousButton:{type:"object",properties:Object.assign({text:{type:"string"}},pn.properties),additionalProperties:!1,default:{}},actions:rce},additionalProperties:!1},XX={type:"object",properties:{elementFormat:{type:"string",default:"icon"},copy:{type:"object",properties:Object.assign({},pn.properties),additionalProperties:!1,default:{hide:!1}},report:{type:"object",properties:Object.assign({tooltipText:{type:"string"},buttonText:{type:"string"},label:{type:"string"}},pn.properties),additionalProperties:!1,default:{hide:!1}},expand:{type:"object",properties:Object.assign({},pn.properties),additionalProperties:!1,default:{hide:!1}},collapse:{type:"object",properties:Object.assign({},pn.properties),additionalProperties:!1,default:{hide:!1}}},additionalProperties:!1},UX={type:"object",properties:{frontMatterKeysToResolve:{type:"array",items:{type:"string"},default:["image","links"]},partialsFolders:{type:"array",items:{type:"string"},default:["**/_partials/**"]},lastUpdatedBlock:{type:"object",properties:Object.assign({format:{type:"string",enum:["timeago","iso","long","short"],default:"timeago"},locale:{type:"string"}},pn.properties),additionalProperties:!1,default:{}},toc:{type:"object",properties:Object.assign({header:{type:"string",default:"On this page"},depth:{type:"integer",default:3,minimum:1}},pn.properties),additionalProperties:!1,default:{}},editPage:{type:"object",properties:Object.assign({baseUrl:{type:"string"}},pn.properties),additionalProperties:!1,default:{}}},additionalProperties:!1,default:{}},Rb=Object.assign(Object.assign({},i2),{properties:Object.assign(Object.assign({},i2.properties),Gle.properties)}),nce={type:"object",properties:{includeInDevelopment:{type:"boolean"},scriptUrl:{type:"string"},pageViewEventName:{type:"string"}},additionalProperties:!1,required:["scriptUrl"]},ice={type:"object",properties:{includeInDevelopment:{type:"boolean"},apiKey:{type:"string"},head:{type:"boolean"},respectDNT:{type:"boolean"},exclude:{type:"array",items:{type:"string"}},outboundClickEventName:{type:"string"},pageViewEventName:{type:"string"},amplitudeConfig:{type:"object",additionalProperties:!0}},additionalProperties:!1,required:["apiKey"]},oce={type:"object",properties:{includeInDevelopment:{type:"boolean"},orgId:{type:"string"}},additionalProperties:!1,required:["orgId"]},sce={type:"object",properties:{includeInDevelopment:{type:"boolean"},appId:{type:"string"}},additionalProperties:!1,required:["appId"]},ace={type:"object",properties:{includeInDevelopment:{type:"boolean"},writeKey:{type:"string",minLength:10},trackPage:{type:"boolean"},dataPlaneUrl:{type:"string"},controlPlaneUrl:{type:"string"},sdkUrl:{type:"string"},loadOptions:{type:"object",additionalProperties:!0}},additionalProperties:!1,required:["writeKey"]},lce={type:"object",properties:{includeInDevelopment:{type:"boolean"},writeKey:{type:"string",minLength:10},trackPage:{type:"boolean"},includeTitleInPageCall:{type:"boolean"},host:{type:"string"}},additionalProperties:!1,required:["writeKey"]},cce={type:"object",properties:{includeInDevelopment:{type:"boolean"},trackingId:{type:"string"},gtmAuth:{type:"string"},gtmPreview:{type:"string"},defaultDataLayer:{},dataLayerName:{type:"string"},enableWebVitalsTracking:{type:"boolean"},selfHostedOrigin:{type:"string"},pageViewEventName:{type:"string"}},additionalProperties:!1,required:["trackingId"]},WX={type:"object",properties:{includeInDevelopment:{type:"boolean"},trackingId:{type:"string"},conversionId:{type:"string"},floodlightId:{type:"string"},optimizeId:{type:"string"},exclude:{type:"array",items:{type:"string"}}},additionalProperties:!1,required:["trackingId"]},uce={type:"object",properties:{includeInDevelopment:{type:"boolean"},trackingId:{type:"string"},conversionId:{type:"string"},floodlightId:{type:"string"},head:{type:"boolean"},respectDNT:{type:"boolean"},exclude:{type:"array",items:{type:"string"}},optimizeId:{type:"string"},anonymizeIp:{type:"boolean"},cookieExpires:{type:"number"},trackers:{type:"object",additionalProperties:WX}},additionalProperties:!1,required:["trackingId"]},BX={type:"object",properties:{adobe:nce,amplitude:ice,fullstory:oce,heap:sce,rudderstack:ace,segment:lce,gtm:cce,ga:uce}},FX={type:"object",properties:Object.assign({items:{type:"array",items:{type:"object",properties:{label:{type:"string"},external:{type:"boolean"},link:{type:"string"},separatorLine:{type:"boolean"}},additionalProperties:!0},default:[]},hideLoginButton:{type:"boolean"}},pn.properties),additionalProperties:!1},ZX={type:"object",properties:{hide:{type:"boolean"},showForUnversioned:{type:"boolean"}}},YX={type:"object",properties:{hide:{type:"boolean"},prefixItems:{type:"array",items:{type:"object",properties:{label:{type:"string"},labelTranslationKey:{type:"string"},page:{type:"string"},icon:{type:"string"}},additionalProperties:!1,default:{}}}},additionalProperties:!1},dce={type:"object",additionalProperties:!1,required:["title","property"],properties:{type:{type:"string",enum:["select","checkboxes","date-range"],default:"checkboxes"},title:{type:"string"},titleTranslationKey:{type:"string"},property:{type:"string"},parentFilter:{type:"string"},valuesMapping:{type:"object",additionalProperties:{type:"string"}},missingCategoryName:{type:"string"},missingCategoryNameTranslationKey:{type:"string"},options:{type:"array",items:{type:"string"}}}},fce={type:"object",additionalProperties:!0,required:["slug","items"],properties:{show:{type:"boolean"},slug:{type:"string"},filters:{type:"array",items:dce},groupByFirstFilter:{type:"boolean"},filterValuesCasing:{type:"string",enum:["sentence","original","lowercase","uppercase"]},items:ZT,requiredPermission:{type:"string"},separateVersions:{type:"boolean"},title:{type:"string"},titleTranslationKey:{type:"string"},description:{type:"string"},descriptionTranslationKey:{type:"string"}}},jb={type:"object",patternProperties:{".*":fce}},Qb={type:"object",additionalProperties:!0,required:[],properties:{ignoreNonCompliant:{type:"boolean",default:!1},teamMetadataProperty:{type:"object",properties:{property:{type:"string"},label:{type:"string"},default:{type:"string"}}},levels:{type:"array",items:{type:"object",required:["name"],properties:Object.assign(Object.assign(Object.assign({name:{type:"string"},color:{type:"string"},extends:{type:"array",items:{type:"string"}}},WT),BT),FT),additionalProperties:!1}},targets:{type:"array",items:{type:"object",required:["where"],properties:{minimumLevel:{type:"string"},rules:{type:"object",additionalProperties:!0},where:{type:"object",required:["metadata"],properties:{metadata:{type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1}},additionalProperties:!1}},ignore:{type:"array",items:{type:"string"}},fromProjectUrl:{type:"string",format:"uri"}}},pce={type:"object",required:["key"],properties:{key:{type:"string"}},additionalProperties:!1},hce={type:"object",required:["type"],properties:{type:{type:"string"}},additionalProperties:!1},mce={type:"object",required:["property","title"],properties:{property:{type:"string"},hide:{type:"boolean"},label:{type:"string"},options:{type:"array",items:{type:"string"}},type:{type:"string",enum:["select","checkboxes","date-range"],default:"checkboxes"},title:{type:"string"},titleTranslationKey:{type:"string"},parentFilter:{type:"string"},valuesMapping:{type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1},na={type:"object",properties:{slug:{type:"string"},hide:{type:"boolean"},includes:{type:"array",items:hce},excludes:{type:"array",items:pce},filters:{type:"array",items:mce},titleTranslationKey:{type:"string"},descriptionTranslationKey:{type:"string"},catalogSwitcherLabelTranslationKey:{type:"string"}},additionalProperties:!1},gce={type:"object",properties:{type:{type:"string",enum:["string","number","boolean","array","object"]},description:{type:"string"},example:{oneOf:[{type:"string"},{type:"number"},{type:"boolean"},{type:"array"},{type:"object"}]},enum:{type:"array",items:{type:"string"}},pattern:{type:"string"},format:{type:"string"},minimum:{type:"number"},maximum:{type:"number"},items:{type:"object"}},additionalProperties:!0},yce={type:"object",required:["type","properties"],properties:{type:{type:"string",enum:["object"]},description:{type:"string"},properties:{type:"object",additionalProperties:gce},required:{type:"array",items:{type:"string"}},additionalProperties:{type:"boolean"}},additionalProperties:!0},Oce={type:"object",required:["name","description","metadataSchema"],properties:{name:{type:"string",description:"Display name of the entity type"},description:{type:"string",description:"Description of the entity type"},metadataSchema:yce,icon:{type:"object",properties:{src:{type:"string"},srcSet:{type:"string"}},additionalProperties:!1}},additionalProperties:!1},vce={type:"object",additionalProperties:Oce},GX={type:"object",properties:{show:{type:"boolean",default:!1},entityTypes:vce,catalogs:{type:"object",properties:{all:na,services:na,domains:na,teams:na,users:na,apiDescriptions:na,dataSchemas:na,apiOperations:na},additionalProperties:na}},additionalProperties:!1},Qh={type:"string",enum:["eq","in","gt","gte","lt","lte","contains","startsWith","endsWith","exists","isEmpty","between","matches","some","every","none","and","or","not"]},b$={type:"object",properties:{field:{type:"string"},operator:Qh,value:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"}]},match:{type:"array",items:{type:"object",properties:{field:{type:"string"},operator:Qh,value:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"}]}}}}}},bce={type:"object",properties:{operator:Qh,conditions:{type:"array",items:b$}},required:["operator","conditions"],additionalProperties:!1},d2={type:"array",items:{oneOf:[b$,{type:"object",properties:{operator:Qh,conditions:{type:"array",items:{oneOf:[b$,bce]}}},required:["operator","conditions"],additionalProperties:!1}]}},HX={type:"object",properties:{defined:{type:"boolean"},nonEmpty:{type:"boolean"},eq:{},gt:{type:"number"},gte:{type:"number"},lt:{type:"number"},lte:{type:"number"},const:{}},additionalProperties:!1},xce={type:"array",items:{type:"object",properties:{subject:{type:"object",properties:{type:{type:"string",enum:["Entity","EntityMetadata","EntityRelations","EntityRelation"]},property:{type:"string"}},required:["type","property"],additionalProperties:!1},assertions:HX},required:["subject","assertions"],additionalProperties:!1}},Sce={type:"object",properties:{title:{type:"string"},subject:{type:"object",properties:{type:{type:"string",enum:["Entity","EntityMetadata","EntityRelations","EntityRelation"]},property:{type:"string"}},required:["type","property"],additionalProperties:!1},severity:{type:"string",enum:["error","warn","off"]},message:{type:"string"},assertions:HX,where:xce,weight:{type:"number",default:1}},required:["subject","assertions"],additionalProperties:!1},wce={type:"object",additionalProperties:{oneOf:[{type:"string"},{type:"object",properties:{severity:{type:"string",enum:["error","warn","off"]},weight:{type:"number",default:1}},additionalProperties:!0},Sce]}},Pce={type:"object",properties:{name:{type:"string"},extends:{type:"array",items:{type:"string"}},rules:wce},required:["name"],additionalProperties:!1},f2={type:"object",properties:{event:{type:"string",enum:["runtime","manual"]}},required:["event"],additionalProperties:!1},Cce={oneOf:[f2,{type:"array",items:f2}]},$ce={type:"object",properties:{name:{type:"string"},description:{type:"string"},entities:{oneOf:[d2,{type:"object",properties:{operator:Qh,conditions:d2},required:["operator","conditions"],additionalProperties:!1}]},levels:{type:"array",items:Pce,minItems:1},trigger:Cce},required:["name","entities","levels"],additionalProperties:!1},JX={type:"array",items:$ce},hs={type:"object",properties:{imports:{type:"array",items:{type:"string"}},logo:IX,navbar:RX,products:jX,footer:QX,sidebar:DX,scripts:NX,links:MX,feedback:Bx,search:qX,aiAssistant:zX,colorMode:LX,navigation:VX,codeSnippet:XX,markdown:UX,openapi:Rb,graphql:Ab,analytics:BX,userMenu:FX,versionPicker:ZX,breadcrumbs:YX,catalog:jb,entitiesCatalog:GX,catalogClassic:jb,scorecard:Qb,scorecards:JX,scorecardClassic:Qb},additionalProperties:!0},kce="https://redocly.com/sso/teams";var Db;(function(t){t.OIDC="OIDC",t.SAML2="SAML2"})(Db||(Db={}));var Nb;(function(t){t.SERVICE_ACCOUNT="SERVICE_ACCOUNT",t.OAUTH2="OAUTH2"})(Nb||(Nb={}));var p2;(function(t){t.STACKED="stacked",t.THREE_PANEL="three-panel"})(p2||(p2={}));const Ece=["partOf","hasParts","creates","createdBy","owns","ownedBy","implements","implementedBy","dependsOn","dependencyOf","uses","usedBy","produces","consumes","linksTo","supersedes","supersededBy","compatibleWith","extends","extendedBy","relatesTo","hasMember","memberOf","triggers","triggeredBy","returns","returnedBy"];function x$(t,e){return Object.fromEntries(Object.entries(t).map(([r,n])=>{if(r!==e)return typeof n!="object"||!n?[r,n]:Array.isArray(n)?[r,n.map(i=>typeof i=="object"?x$(i,e):i)]:[r,x$(n,e)]}).filter(Boolean))}const Tce={type:"object",additionalProperties:{type:"string"}},_ce={type:"object",additionalProperties:!1,patternProperties:{"^[a-zA-Z0-9_-]+$":{type:"string",pattern:"^https?://[^\\s/$.?#].[^\\s]*$"}}},Eg={type:"string",enum:["error","warn","off"]},Ace={type:"object",additionalProperties:!1,properties:{schemaCheck:Eg,statusCodeCheck:Eg,contentTypeCheck:Eg,successCriteriaCheck:Eg}},Ice={type:"object",properties:{event:{type:"string",enum:["schedule"]},interval:{type:"string",enum:["1m","2m","5m","10m","15m","30m","1h","3h","6h","12h","1d","7d"]}},required:["event"],additionalProperties:!1},Rce={type:"object",properties:{event:{type:"string",enum:["build"]}},required:["event"],additionalProperties:!1},jce={type:"object",properties:{warn:{type:"number"},error:{type:"number"}},additionalProperties:!1},Qce={type:"object",properties:{ignoreLint:{oneOf:[{type:"boolean",default:!1},{type:"object",additionalProperties:{type:"boolean"}}]},ignoreLinkChecker:{type:"boolean"},ignoreMarkdocErrors:{type:"boolean"},ignoreRespectMonitoring:{type:"boolean"},jobs:{type:"array",items:{type:"object",properties:{path:{type:"string",pattern:"^(?!\\/|\\.\\./)"},agent:{type:"string",enum:["respect"]},trigger:{oneOf:[Ice,Rce]},inputs:Tce,servers:_ce,severity:Ace,slo:jce},required:["path","trigger","agent"],additionalProperties:!1}}},additionalProperties:!1},Dce={type:"object",properties:{end_session_endpoint:{type:"string"},token_endpoint:{type:"string"},authorization_endpoint:{type:"string"},jwks_uri:{type:"string"}},required:["token_endpoint","authorization_endpoint"],additionalProperties:!0},Nce={type:"object",properties:{type:{type:"string",const:Db.OIDC},title:{type:"string"},pkce:{type:"boolean",default:!1},configurationUrl:{type:"string",minLength:1},configuration:Dce,clientId:{type:"string",minLength:1},clientSecret:{type:"string",minLength:0},teamsClaimName:{type:"string"},teamsClaimMap:{type:"object",additionalProperties:{type:"string"}},defaultTeams:{type:"array",items:{type:"string"}},scopes:{type:"array",items:{type:"string"}},tokenExpirationTime:{type:"number"},authorizationRequestCustomParams:{type:"object",additionalProperties:{type:"string"}},introspectEndpoint:{type:"string"},tokenRequestCustomParams:{type:"object",additionalProperties:{type:"string"}},audience:{type:"array",items:{type:"string"}}},required:["type","clientId"],oneOf:[{required:["configurationUrl"]},{required:["configuration"]}],additionalProperties:!1},Mce={type:"object",properties:{type:{type:"string",const:Db.SAML2},title:{type:"string"},issuerId:{type:"string"},entityId:{type:"string"},ssoUrl:{type:"string"},x509PublicCert:{type:"string"},teamsAttributeName:{type:"string",default:kce},teamsAttributeMap:{type:"object",additionalProperties:{type:"string"}},defaultTeams:{type:"array",items:{type:"string"}}},additionalProperties:!1,required:["type","issuerId","ssoUrl","x509PublicCert"]},qce={oneOf:[Nce,Mce],discriminator:{propertyName:"type"}},zce={type:"object",additionalProperties:qce},Lce={oneOf:[{type:"array",items:{type:"string",enum:["REDOCLY","CORPORATE","GUEST"]},uniqueItems:!0},{type:"string",enum:["REDOCLY","CORPORATE","GUEST"]}]},Vce={type:"object",properties:{to:{type:"string"},type:{type:"number",default:301}},additionalProperties:!1},Xce={type:"object",additionalProperties:Vce,default:{}},Uce={type:"string",enum:["info","success","warning","error"],default:"info"},Wce={type:"object",properties:{content:{type:"string"},dismissible:{type:"boolean",default:!1},target:{type:"string"},color:Uce},required:["content"],additionalProperties:!1},Bce={type:"array",items:Wce,default:[]},KX={type:"object",properties:Object.assign(Object.assign(Object.assign(Object.assign({root:{type:"string"},output:{type:"string",pattern:"(.ya?ml|.json)$"},rbac:{type:"object",additionalProperties:!0},openapi:Rb,graphql:Ab,theme:{type:"object",properties:{openapi:Rb,graphql:Ab},additionalProperties:!1},title:{type:"string"},metadata:{type:"object",additionalProperties:!0}},WT),BT),FT),{extends:{type:"array",items:{type:"string"}}}),required:["root"]},Fce={type:"object",additionalProperties:!0},Zce={type:"object",additionalProperties:{type:"object",additionalProperties:!0}},h2={type:"object",properties:{hide:{type:"boolean",default:!1},title:{type:"string"},description:{type:"string"},details:{type:"object",properties:{path:{type:"string"},content:{type:"string"}},additionalProperties:!1},excludeFiles:{type:"array",items:{type:"string"},default:[]},sections:{type:"array",items:{type:"object",properties:{title:{type:"string"},description:{type:"string"},includeFiles:{type:"array",items:{type:"string"},default:[]},excludeFiles:{type:"array",items:{type:"string"},default:[]}},required:["title"],additionalProperties:!1}}},default:{hide:!1,title:void 0,description:void 0,details:void 0,sections:[{title:"Table of contents",includeFiles:["**/*"],excludeFiles:[]}]},additionalProperties:!1},m2={type:"object",properties:{title:{type:"string"},projectTitle:{type:"string"},description:{type:"string"},siteUrl:{type:"string"},image:{type:"string"},keywords:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},lang:{type:"string"},jsonLd:{type:"object"},meta:{type:"array",items:{type:"object",properties:{name:{type:"string"},content:{type:"string"}},required:["name","content"],additionalProperties:!1}},llmstxt:h2},default:{llmstxt:h2.default},additionalProperties:!1},Yce={type:"object",properties:{folders:{type:"array",items:{type:"string"}}},additionalProperties:!1},pc={type:"object",additionalProperties:{type:"string"}},Gce={type:"object",properties:{teamNamePatterns:{type:"array",items:{type:"string"}},teamFolders:{type:"array",items:{type:"string"}},teamFoldersBaseRoles:pc,cms:pc,reunite:pc,features:{type:"object",properties:{aiSearch:pc},additionalProperties:!1},content:{type:"object",properties:{"**":pc},additionalProperties:pc}},additionalProperties:pc},Hce={type:"object",properties:{static:{type:"string"}},additionalProperties:!1,required:["static"]},Jce={type:"object",properties:{idp:{type:"string"}},additionalProperties:!1,required:["idp"]},Kce={type:"object",properties:{type:{type:"string",const:"GRAVITEE"},apiBaseUrl:{type:"string"},env:{type:"string"},allowApiProductsOutsideCatalog:{type:"boolean",default:!1},stage:{type:"string",default:"non-production"},auth:{oneOf:[Hce,Jce]}},additionalProperties:!1,required:["type","apiBaseUrl"]},eue={type:"object",properties:{type:{type:"string",const:Nb.OAUTH2},tokenEndpoint:{type:"string"},clientId:{type:"string"},clientSecret:{type:"string"}},additionalProperties:!1,required:["type","tokenEndpoint","clientId","clientSecret"]},tue={type:"object",properties:{type:{type:"string",const:Nb.SERVICE_ACCOUNT},serviceAccountEmail:{type:"string"},serviceAccountPrivateKey:{type:"string"}},additionalProperties:!1,required:["type","serviceAccountEmail","serviceAccountPrivateKey"]},S$={type:"object",properties:{type:{type:"string",const:"APIGEE_X"},apiUrl:{type:"string"},stage:{type:"string",default:"non-production"},organizationName:{type:"string"},ignoreApiProducts:{type:"array",items:{type:"string"}},allowApiProductsOutsideCatalog:{type:"boolean",default:!1},auth:{type:"object",oneOf:[eue,tue],discriminator:{propertyName:"type"}}},additionalProperties:!1,required:["type","organizationName","auth"]},rue=Object.assign(Object.assign({},S$),{properties:Object.assign(Object.assign({},S$.properties),{type:{type:"string",const:"APIGEE_EDGE"}})}),nue={type:"object",oneOf:[S$,rue,Kce],discriminator:{propertyName:"type"}},iue={type:"object",required:["adapters"],additionalProperties:!1,properties:{adapters:{type:"array",items:nue}}},g2={type:"object",properties:{defaultLocale:{type:"string"},locales:{type:"array",items:{type:"object",properties:{code:{type:"string"},name:{type:"string"}},required:["code"]}}},additionalProperties:!1,required:["defaultLocale"]},oue={type:"object",properties:{name:{type:"string"},value:{type:"string"}},additionalProperties:!1,required:["name","value"]},sue={type:"object",properties:{hide:{type:"boolean",default:!1},docs:{type:"object",properties:{hide:{type:"boolean",default:!1},name:{type:"string",default:"Docs MCP server"},ignore:{type:"array",items:{type:"string"},default:[]}},additionalProperties:!1}},additionalProperties:!1,default:{hide:!1,docs:{hide:!1,name:"MCP server",ignore:[]}}},Mb={type:"object",properties:Object.assign(Object.assign(Object.assign(Object.assign({imports:{type:"array",items:{type:"string"}},licenseKey:{type:"string"},redirects:Xce,seo:m2,rbac:Gce,apiFunctions:Yce,requiresLogin:{type:"boolean"},responseHeaders:{type:"object",additionalProperties:{type:"array",items:oue}},mockServer:{type:"object",properties:{off:{type:"boolean",default:!1},position:{type:"string",enum:["first","last","replace","off"],default:"first"},strictExamples:{type:"boolean",default:!1},errorIfForcedExampleNotFound:{type:"boolean",default:!1},description:{type:"string"}}},apis:{type:"object",additionalProperties:KX},extends:{type:"array",items:{type:"string"}}},WT),FT),BT),{ssoDirect:zce,sso:Lce,residency:{type:"string",pattern:"^https?://.*"},developerOnboarding:iue,removeAttribution:{type:"boolean"},i18n:g2,l10n:g2,metadata:Fce,metadataGlobs:Zce,ignore:{type:"array",items:{type:"string"}},theme:hs,reunite:Qce,logo:IX,navbar:RX,products:jX,footer:QX,sidebar:DX,scripts:NX,links:MX,feedback:Bx,search:qX,aiAssistant:zX,colorMode:LX,navigation:VX,codeSnippet:XX,markdown:UX,openapi:Rb,graphql:Ab,analytics:BX,userMenu:FX,versionPicker:ZX,breadcrumbs:YX,catalog:jb,entitiesCatalog:GX,catalogClassic:jb,scorecard:Qb,scorecards:JX,scorecardClassic:Qb,mcp:sue,banner:Bce}),default:{redirects:{},seo:m2.default},additionalProperties:!0},aue=Object.assign(Object.assign({},x$(Mb,"default")),{additionalProperties:!1}),YT=Object.assign(Object.assign({$id:"root-redocly-config"},Mb),{properties:Object.assign(Object.assign({plugins:{type:"array",items:{type:"string"}}},Mb.properties),{env:{type:"object",additionalProperties:aue}}),default:{},additionalProperties:!1}),y2={type:"object",properties:{logo:hs.properties.logo,navbar:hs.properties.navbar,footer:hs.properties.footer,sidebar:hs.properties.sidebar,search:hs.properties.search,codeSnippet:hs.properties.codeSnippet,breadcrumbs:hs.properties.breadcrumbs,openapi:hs.properties.openapi,feedback:hs.properties.feedback,mockServer:Mb.properties.mockServer,analytics:{type:"object",properties:{ga:WX}}},additionalProperties:!0,default:{}};Object.assign(Object.assign({},y2.properties),{apis:{type:"object",additionalProperties:KX},theme:y2});const lue={type:"object",properties:{email:{type:"string",description:"Email of the user"}},required:["email"],additionalProperties:!0},cue={type:"object",properties:{specType:{type:"string",enum:["jsonschema","openapi","asyncapi","avro","zod","graphql","protobuf","arazzo"],description:"Type of the API description"},descriptionFile:{type:"string",description:"Path to the file containing the API description"}},required:["specType","descriptionFile"],additionalProperties:!0},uue={type:"object",properties:{method:{type:"string",enum:["GET","POST","PUT","DELETE","PATCH","MUTATION","QUERY","SUBSCRIBE","PUBLISH"],description:"HTTP method of the API operation"},path:{type:"string",description:"Path of the API operation"},payload:{type:"array",items:{type:"string",description:"Related dataSchema name"}},responses:{type:"array",items:{type:"string",description:"Related dataSchema name"}}},required:["method","path"],additionalProperties:!0},due={type:"object",properties:{specType:{type:"string",enum:["jsonschema","openapi","asyncapi","avro","zod","graphql","protobuf","arazzo"],description:"Specification type of the data schema"},schema:{type:"string",description:"Inline schema of the data structure"},sdl:{type:"string",description:"SDL of the data structure"}},required:["specType"],additionalProperties:!0},fue={type:"object",properties:{slack:{type:"object",properties:{channels:{type:"array",items:{type:"object",properties:{name:{type:"string",minLength:2,maxLength:150},url:{type:"string"}},required:["name"],additionalProperties:!1}}},required:["channels"],additionalProperties:!1}},additionalProperties:!1},pue={type:"object",properties:{label:{type:"string",minLength:2,maxLength:150},url:{type:"string"}},required:["label","url"],additionalProperties:!1},hue={type:"object",properties:{type:{type:"string",enum:Ece},key:{type:"string",minLength:2,maxLength:100},version:{type:"string"},revision:{type:"string"}},required:["type","key"],additionalProperties:!1},pl={version:{type:"string"},key:{type:"string",pattern:"^[a-z0-9]+(?:-[a-z0-9]+)*$",minLength:2,maxLength:150},type:{type:"string",enum:["user","data-schema","api-operation","api-description","service","domain","team"]},title:{type:"string",minLength:2,maxLength:200},summary:{type:"string",minLength:1,maxLength:500},tags:{type:"array",items:{type:"string",minLength:1,maxLength:50}},git:{type:"array",items:{type:"string"}},contact:fue,links:{type:"array",items:pue},relations:{type:"array",items:hue},metadata:{type:"object",additionalProperties:!0}};Object.assign(Object.assign({},pl),{type:{const:"user"},metadata:lue}),Object.assign(Object.assign({},pl),{type:{const:"api-operation"},metadata:uue}),Object.assign(Object.assign({},pl),{type:{const:"data-schema"},metadata:due}),Object.assign(Object.assign({},pl),{type:{const:"api-description"},metadata:cue}),Object.assign(Object.assign({},pl),{type:{const:"service"}}),Object.assign(Object.assign({},pl),{type:{const:"domain"}}),Object.assign(Object.assign({},pl),{type:{const:"team"}});Object.assign({},pl);const mue=["oas2","oas3_0","oas3_1","oas3_2","async2","async3","arazzo1","overlay1","openrpc1"],gue={oas2:uoe,oas3_0:_b,oas3_1:_r,oas3_2:Qn,async2:Use,async3:lae,arazzo1:Mae,overlay1:Xae,openrpc1:ole};function GT(t){return gue[t]}function yue(t){return t.includes("/")}function Oue(t,e){const r={...t};return e.forEach(n=>{delete r[n]}),r}var Tg={exports:{}},ew={},ia={},hc={},tw={},rw={},nw={},O2;function qb(){return O2||(O2=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.regexpCode=t.getEsmExportName=t.getProperty=t.safeStringify=t.stringify=t.strConcat=t.addCodeArg=t.str=t._=t.nil=t._Code=t.Name=t.IDENTIFIER=t._CodeOrName=void 0;class e{}t._CodeOrName=e,t.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class r extends e{constructor(O){if(super(),!t.IDENTIFIER.test(O))throw new Error("CodeGen: name must be a valid identifier");this.str=O}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}t.Name=r;class n extends e{constructor(O){super(),this._items=typeof O=="string"?[O]:O}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const O=this._items[0];return O===""||O==='""'}get str(){var O;return(O=this._str)!==null&&O!==void 0?O:this._str=this._items.reduce((b,S)=>`${b}${S}`,"")}get names(){var O;return(O=this._names)!==null&&O!==void 0?O:this._names=this._items.reduce((b,S)=>(S instanceof r&&(b[S.str]=(b[S.str]||0)+1),b),{})}}t._Code=n,t.nil=new n("");function i(v,...O){const b=[v[0]];let S=0;for(;S<O.length;)a(b,O[S]),b.push(v[++S]);return new n(b)}t._=i;const o=new n("+");function s(v,...O){const b=[h(v[0])];let S=0;for(;S<O.length;)b.push(o),a(b,O[S]),b.push(o,h(v[++S]));return l(b),new n(b)}t.str=s;function a(v,O){O instanceof n?v.push(...O._items):O instanceof r?v.push(O):v.push(d(O))}t.addCodeArg=a;function l(v){let O=1;for(;O<v.length-1;){if(v[O]===o){const b=c(v[O-1],v[O+1]);if(b!==void 0){v.splice(O-1,3,b);continue}v[O++]="+"}O++}}function c(v,O){if(O==='""')return v;if(v==='""')return O;if(typeof v=="string")return O instanceof r||v[v.length-1]!=='"'?void 0:typeof O!="string"?`${v.slice(0,-1)}${O}"`:O[0]==='"'?v.slice(0,-1)+O.slice(1):void 0;if(typeof O=="string"&&O[0]==='"'&&!(v instanceof r))return`"${v}${O.slice(1)}`}function u(v,O){return O.emptyStr()?v:v.emptyStr()?O:s`${v}${O}`}t.strConcat=u;function d(v){return typeof v=="number"||typeof v=="boolean"||v===null?v:h(Array.isArray(v)?v.join(","):v)}function f(v){return new n(h(v))}t.stringify=f;function h(v){return JSON.stringify(v).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}t.safeStringify=h;function y(v){return typeof v=="string"&&t.IDENTIFIER.test(v)?new n(`.${v}`):i`[${v}]`}t.getProperty=y;function m(v){if(typeof v=="string"&&t.IDENTIFIER.test(v))return new n(`${v}`);throw new Error(`CodeGen: invalid export name: ${v}, use explicit $id name mapping`)}t.getEsmExportName=m;function g(v){return new n(v.toString())}t.regexpCode=g})(nw)),nw}var iw={},v2;function b2(){return v2||(v2=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.ValueScope=t.ValueScopeName=t.Scope=t.varKinds=t.UsedValueState=void 0;const e=qb();class r extends Error{constructor(c){super(`CodeGen: "code" for ${c} not defined`),this.value=c.value}}var n;(function(l){l[l.Started=0]="Started",l[l.Completed=1]="Completed"})(n||(t.UsedValueState=n={})),t.varKinds={const:new e.Name("const"),let:new e.Name("let"),var:new e.Name("var")};class i{constructor({prefixes:c,parent:u}={}){this._names={},this._prefixes=c,this._parent=u}toName(c){return c instanceof e.Name?c:this.name(c)}name(c){return new e.Name(this._newName(c))}_newName(c){const u=this._names[c]||this._nameGroup(c);return`${c}${u.index++}`}_nameGroup(c){var u,d;if(!((d=(u=this._parent)===null||u===void 0?void 0:u._prefixes)===null||d===void 0)&&d.has(c)||this._prefixes&&!this._prefixes.has(c))throw new Error(`CodeGen: prefix "${c}" is not allowed in this scope`);return this._names[c]={prefix:c,index:0}}}t.Scope=i;class o extends e.Name{constructor(c,u){super(u),this.prefix=c}setValue(c,{property:u,itemIndex:d}){this.value=c,this.scopePath=(0,e._)`.${new e.Name(u)}[${d}]`}}t.ValueScopeName=o;const s=(0,e._)`\n`;class a extends i{constructor(c){super(c),this._values={},this._scope=c.scope,this.opts={...c,_n:c.lines?s:e.nil}}get(){return this._scope}name(c){return new o(c,this._newName(c))}value(c,u){var d;if(u.ref===void 0)throw new Error("CodeGen: ref must be passed in value");const f=this.toName(c),{prefix:h}=f,y=(d=u.key)!==null&&d!==void 0?d:u.ref;let m=this._values[h];if(m){const O=m.get(y);if(O)return O}else m=this._values[h]=new Map;m.set(y,f);const g=this._scope[h]||(this._scope[h]=[]),v=g.length;return g[v]=u.ref,f.setValue(u,{property:h,itemIndex:v}),f}getValue(c,u){const d=this._values[c];if(d)return d.get(u)}scopeRefs(c,u=this._values){return this._reduceValues(u,d=>{if(d.scopePath===void 0)throw new Error(`CodeGen: name "${d}" has no value`);return(0,e._)`${c}${d.scopePath}`})}scopeCode(c=this._values,u,d){return this._reduceValues(c,f=>{if(f.value===void 0)throw new Error(`CodeGen: name "${f}" has no value`);return f.value.code},u,d)}_reduceValues(c,u,d={},f){let h=e.nil;for(const y in c){const m=c[y];if(!m)continue;const g=d[y]=d[y]||new Map;m.forEach(v=>{if(g.has(v))return;g.set(v,n.Started);let O=u(v);if(O){const b=this.opts.es5?t.varKinds.var:t.varKinds.const;h=(0,e._)`${h}${b} ${v} = ${O};${this.opts._n}`}else if(O=f?.(v))h=(0,e._)`${h}${O}${this.opts._n}`;else throw new r(v);g.set(v,n.Completed)})}return h}}t.ValueScope=a})(iw)),iw}var x2;function gt(){return x2||(x2=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.or=t.and=t.not=t.CodeGen=t.operators=t.varKinds=t.ValueScopeName=t.ValueScope=t.Scope=t.Name=t.regexpCode=t.stringify=t.getProperty=t.nil=t.strConcat=t.str=t._=void 0;const e=qb(),r=b2();var n=qb();Object.defineProperty(t,"_",{enumerable:!0,get:function(){return n._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return n.str}}),Object.defineProperty(t,"strConcat",{enumerable:!0,get:function(){return n.strConcat}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return n.nil}}),Object.defineProperty(t,"getProperty",{enumerable:!0,get:function(){return n.getProperty}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return n.stringify}}),Object.defineProperty(t,"regexpCode",{enumerable:!0,get:function(){return n.regexpCode}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return n.Name}});var i=b2();Object.defineProperty(t,"Scope",{enumerable:!0,get:function(){return i.Scope}}),Object.defineProperty(t,"ValueScope",{enumerable:!0,get:function(){return i.ValueScope}}),Object.defineProperty(t,"ValueScopeName",{enumerable:!0,get:function(){return i.ValueScopeName}}),Object.defineProperty(t,"varKinds",{enumerable:!0,get:function(){return i.varKinds}}),t.operators={GT:new e._Code(">"),GTE:new e._Code(">="),LT:new e._Code("<"),LTE:new e._Code("<="),EQ:new e._Code("==="),NEQ:new e._Code("!=="),NOT:new e._Code("!"),OR:new e._Code("||"),AND:new e._Code("&&"),ADD:new e._Code("+")};class o{optimizeNodes(){return this}optimizeNames($,_){return this}}class s extends o{constructor($,_,q){super(),this.varKind=$,this.name=_,this.rhs=q}render({es5:$,_n:_}){const q=$?r.varKinds.var:this.varKind,Y=this.rhs===void 0?"":` = ${this.rhs}`;return`${q} ${this.name}${Y};`+_}optimizeNames($,_){if($[this.name.str])return this.rhs&&(this.rhs=G(this.rhs,$,_)),this}get names(){return this.rhs instanceof e._CodeOrName?this.rhs.names:{}}}class a extends o{constructor($,_,q){super(),this.lhs=$,this.rhs=_,this.sideEffects=q}render({_n:$}){return`${this.lhs} = ${this.rhs};`+$}optimizeNames($,_){if(!(this.lhs instanceof e.Name&&!$[this.lhs.str]&&!this.sideEffects))return this.rhs=G(this.rhs,$,_),this}get names(){const $=this.lhs instanceof e.Name?{}:{...this.lhs.names};return B($,this.rhs)}}class l extends a{constructor($,_,q,Y){super($,q,Y),this.op=_}render({_n:$}){return`${this.lhs} ${this.op}= ${this.rhs};`+$}}class c extends o{constructor($){super(),this.label=$,this.names={}}render({_n:$}){return`${this.label}:`+$}}class u extends o{constructor($){super(),this.label=$,this.names={}}render({_n:$}){return`break${this.label?` ${this.label}`:""};`+$}}class d extends o{constructor($){super(),this.error=$}render({_n:$}){return`throw ${this.error};`+$}get names(){return this.error.names}}class f extends o{constructor($){super(),this.code=$}render({_n:$}){return`${this.code};`+$}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames($,_){return this.code=G(this.code,$,_),this}get names(){return this.code instanceof e._CodeOrName?this.code.names:{}}}class h extends o{constructor($=[]){super(),this.nodes=$}render($){return this.nodes.reduce((_,q)=>_+q.render($),"")}optimizeNodes(){const{nodes:$}=this;let _=$.length;for(;_--;){const q=$[_].optimizeNodes();Array.isArray(q)?$.splice(_,1,...q):q?$[_]=q:$.splice(_,1)}return $.length>0?this:void 0}optimizeNames($,_){const{nodes:q}=this;let Y=q.length;for(;Y--;){const ee=q[Y];ee.optimizeNames($,_)||(H($,ee.names),q.splice(Y,1))}return q.length>0?this:void 0}get names(){return this.nodes.reduce(($,_)=>U($,_.names),{})}}class y extends h{render($){return"{"+$._n+super.render($)+"}"+$._n}}class m extends h{}class g extends y{}g.kind="else";class v extends y{constructor($,_){super(_),this.condition=$}render($){let _=`if(${this.condition})`+super.render($);return this.else&&(_+="else "+this.else.render($)),_}optimizeNodes(){super.optimizeNodes();const $=this.condition;if($===!0)return this.nodes;let _=this.else;if(_){const q=_.optimizeNodes();_=this.else=Array.isArray(q)?new g(q):q}if(_)return $===!1?_ instanceof v?_:_.nodes:this.nodes.length?this:new v(ne($),_ instanceof v?[_]:_.nodes);if(!($===!1||!this.nodes.length))return this}optimizeNames($,_){var q;if(this.else=(q=this.else)===null||q===void 0?void 0:q.optimizeNames($,_),!!(super.optimizeNames($,_)||this.else))return this.condition=G(this.condition,$,_),this}get names(){const $=super.names;return B($,this.condition),this.else&&U($,this.else.names),$}}v.kind="if";class O extends y{}O.kind="for";class b extends O{constructor($){super(),this.iteration=$}render($){return`for(${this.iteration})`+super.render($)}optimizeNames($,_){if(super.optimizeNames($,_))return this.iteration=G(this.iteration,$,_),this}get names(){return U(super.names,this.iteration.names)}}class S extends O{constructor($,_,q,Y){super(),this.varKind=$,this.name=_,this.from=q,this.to=Y}render($){const _=$.es5?r.varKinds.var:this.varKind,{name:q,from:Y,to:ee}=this;return`for(${_} ${q}=${Y}; ${q}<${ee}; ${q}++)`+super.render($)}get names(){const $=B(super.names,this.from);return B($,this.to)}}class x extends O{constructor($,_,q,Y){super(),this.loop=$,this.varKind=_,this.name=q,this.iterable=Y}render($){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render($)}optimizeNames($,_){if(super.optimizeNames($,_))return this.iterable=G(this.iterable,$,_),this}get names(){return U(super.names,this.iterable.names)}}class w extends y{constructor($,_,q){super(),this.name=$,this.args=_,this.async=q}render($){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render($)}}w.kind="func";class C extends h{render($){return"return "+super.render($)}}C.kind="return";class k extends y{render($){let _="try"+super.render($);return this.catch&&(_+=this.catch.render($)),this.finally&&(_+=this.finally.render($)),_}optimizeNodes(){var $,_;return super.optimizeNodes(),($=this.catch)===null||$===void 0||$.optimizeNodes(),(_=this.finally)===null||_===void 0||_.optimizeNodes(),this}optimizeNames($,_){var q,Y;return super.optimizeNames($,_),(q=this.catch)===null||q===void 0||q.optimizeNames($,_),(Y=this.finally)===null||Y===void 0||Y.optimizeNames($,_),this}get names(){const $=super.names;return this.catch&&U($,this.catch.names),this.finally&&U($,this.finally.names),$}}class R extends y{constructor($){super(),this.error=$}render($){return`catch(${this.error})`+super.render($)}}R.kind="catch";class N extends y{render($){return"finally"+super.render($)}}N.kind="finally";class D{constructor($,_={}){this._values={},this._blockStarts=[],this._constants={},this.opts={..._,_n:_.lines?`
|
|
116
116
|
`:""},this._extScope=$,this._scope=new r.Scope({parent:$}),this._nodes=[new m]}toString(){return this._root.render(this.opts)}name($){return this._scope.name($)}scopeName($){return this._extScope.name($)}scopeValue($,_){const q=this._extScope.value($,_);return(this._values[q.prefix]||(this._values[q.prefix]=new Set)).add(q),q}getScopeValue($,_){return this._extScope.getValue($,_)}scopeRefs($){return this._extScope.scopeRefs($,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def($,_,q,Y){const ee=this._scope.toName(_);return q!==void 0&&Y&&(this._constants[ee.str]=q),this._leafNode(new s($,ee,q)),ee}const($,_,q){return this._def(r.varKinds.const,$,_,q)}let($,_,q){return this._def(r.varKinds.let,$,_,q)}var($,_,q){return this._def(r.varKinds.var,$,_,q)}assign($,_,q){return this._leafNode(new a($,_,q))}add($,_){return this._leafNode(new l($,t.operators.ADD,_))}code($){return typeof $=="function"?$():$!==e.nil&&this._leafNode(new f($)),this}object(...$){const _=["{"];for(const[q,Y]of $)_.length>1&&_.push(","),_.push(q),(q!==Y||this.opts.es5)&&(_.push(":"),(0,e.addCodeArg)(_,Y));return _.push("}"),new e._Code(_)}if($,_,q){if(this._blockNode(new v($)),_&&q)this.code(_).else().code(q).endIf();else if(_)this.code(_).endIf();else if(q)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf($){return this._elseNode(new v($))}else(){return this._elseNode(new g)}endIf(){return this._endBlockNode(v,g)}_for($,_){return this._blockNode($),_&&this.code(_).endFor(),this}for($,_){return this._for(new b($),_)}forRange($,_,q,Y,ee=this.opts.es5?r.varKinds.var:r.varKinds.let){const Oe=this._scope.toName($);return this._for(new S(ee,Oe,_,q),()=>Y(Oe))}forOf($,_,q,Y=r.varKinds.const){const ee=this._scope.toName($);if(this.opts.es5){const Oe=_ instanceof e.Name?_:this.var("_arr",_);return this.forRange("_i",0,(0,e._)`${Oe}.length`,ge=>{this.var(ee,(0,e._)`${Oe}[${ge}]`),q(ee)})}return this._for(new x("of",Y,ee,_),()=>q(ee))}forIn($,_,q,Y=this.opts.es5?r.varKinds.var:r.varKinds.const){if(this.opts.ownProperties)return this.forOf($,(0,e._)`Object.keys(${_})`,q);const ee=this._scope.toName($);return this._for(new x("in",Y,ee,_),()=>q(ee))}endFor(){return this._endBlockNode(O)}label($){return this._leafNode(new c($))}break($){return this._leafNode(new u($))}return($){const _=new C;if(this._blockNode(_),this.code($),_.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(C)}try($,_,q){if(!_&&!q)throw new Error('CodeGen: "try" without "catch" and "finally"');const Y=new k;if(this._blockNode(Y),this.code($),_){const ee=this.name("e");this._currNode=Y.catch=new R(ee),_(ee)}return q&&(this._currNode=Y.finally=new N,this.code(q)),this._endBlockNode(R,N)}throw($){return this._leafNode(new d($))}block($,_){return this._blockStarts.push(this._nodes.length),$&&this.code($).endBlock(_),this}endBlock($){const _=this._blockStarts.pop();if(_===void 0)throw new Error("CodeGen: not in self-balancing block");const q=this._nodes.length-_;if(q<0||$!==void 0&&q!==$)throw new Error(`CodeGen: wrong number of nodes: ${q} vs ${$} expected`);return this._nodes.length=_,this}func($,_=e.nil,q,Y){return this._blockNode(new w($,_,q)),Y&&this.code(Y).endFunc(),this}endFunc(){return this._endBlockNode(w)}optimize($=1){for(;$-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode($){return this._currNode.nodes.push($),this}_blockNode($){this._currNode.nodes.push($),this._nodes.push($)}_endBlockNode($,_){const q=this._currNode;if(q instanceof $||_&&q instanceof _)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${_?`${$.kind}/${_.kind}`:$.kind}"`)}_elseNode($){const _=this._currNode;if(!(_ instanceof v))throw new Error('CodeGen: "else" without "if"');return this._currNode=_.else=$,this}get _root(){return this._nodes[0]}get _currNode(){const $=this._nodes;return $[$.length-1]}set _currNode($){const _=this._nodes;_[_.length-1]=$}}t.CodeGen=D;function U(Q,$){for(const _ in $)Q[_]=(Q[_]||0)+($[_]||0);return Q}function B(Q,$){return $ instanceof e._CodeOrName?U(Q,$.names):Q}function G(Q,$,_){if(Q instanceof e.Name)return q(Q);if(!Y(Q))return Q;return new e._Code(Q._items.reduce((ee,Oe)=>(Oe instanceof e.Name&&(Oe=q(Oe)),Oe instanceof e._Code?ee.push(...Oe._items):ee.push(Oe),ee),[]));function q(ee){const Oe=_[ee.str];return Oe===void 0||$[ee.str]!==1?ee:(delete $[ee.str],Oe)}function Y(ee){return ee instanceof e._Code&&ee._items.some(Oe=>Oe instanceof e.Name&&$[Oe.str]===1&&_[Oe.str]!==void 0)}}function H(Q,$){for(const _ in $)Q[_]=(Q[_]||0)-($[_]||0)}function ne(Q){return typeof Q=="boolean"||typeof Q=="number"||Q===null?!Q:(0,e._)`!${V(Q)}`}t.not=ne;const ce=j(t.operators.AND);function Z(...Q){return Q.reduce(ce)}t.and=Z;const oe=j(t.operators.OR);function M(...Q){return Q.reduce(oe)}t.or=M;function j(Q){return($,_)=>$===e.nil?_:_===e.nil?$:(0,e._)`${V($)} ${Q} ${V(_)}`}function V(Q){return Q instanceof e.Name?Q:(0,e._)`(${Q})`}})(rw)),rw}var Ct={},S2;function At(){if(S2)return Ct;S2=1,Object.defineProperty(Ct,"__esModule",{value:!0}),Ct.checkStrictMode=Ct.getErrorPath=Ct.Type=Ct.useFunc=Ct.setEvaluated=Ct.evaluatedPropsToName=Ct.mergeEvaluated=Ct.eachItem=Ct.unescapeJsonPointer=Ct.escapeJsonPointer=Ct.escapeFragment=Ct.unescapeFragment=Ct.schemaRefOrVal=Ct.schemaHasRulesButRef=Ct.schemaHasRules=Ct.checkUnknownRules=Ct.alwaysValidSchema=Ct.toHash=void 0;const t=gt(),e=qb();function r(x){const w={};for(const C of x)w[C]=!0;return w}Ct.toHash=r;function n(x,w){return typeof w=="boolean"?w:Object.keys(w).length===0?!0:(i(x,w),!o(w,x.self.RULES.all))}Ct.alwaysValidSchema=n;function i(x,w=x.schema){const{opts:C,self:k}=x;if(!C.strictSchema||typeof w=="boolean")return;const R=k.RULES.keywords;for(const N in w)R[N]||S(x,`unknown keyword: "${N}"`)}Ct.checkUnknownRules=i;function o(x,w){if(typeof x=="boolean")return!x;for(const C in x)if(w[C])return!0;return!1}Ct.schemaHasRules=o;function s(x,w){if(typeof x=="boolean")return!x;for(const C in x)if(C!=="$ref"&&w.all[C])return!0;return!1}Ct.schemaHasRulesButRef=s;function a({topSchemaRef:x,schemaPath:w},C,k,R){if(!R){if(typeof C=="number"||typeof C=="boolean")return C;if(typeof C=="string")return(0,t._)`${C}`}return(0,t._)`${x}${w}${(0,t.getProperty)(k)}`}Ct.schemaRefOrVal=a;function l(x){return d(decodeURIComponent(x))}Ct.unescapeFragment=l;function c(x){return encodeURIComponent(u(x))}Ct.escapeFragment=c;function u(x){return typeof x=="number"?`${x}`:x.replace(/~/g,"~0").replace(/\//g,"~1")}Ct.escapeJsonPointer=u;function d(x){return x.replace(/~1/g,"/").replace(/~0/g,"~")}Ct.unescapeJsonPointer=d;function f(x,w){if(Array.isArray(x))for(const C of x)w(C);else w(x)}Ct.eachItem=f;function h({mergeNames:x,mergeToName:w,mergeValues:C,resultToName:k}){return(R,N,D,U)=>{const B=D===void 0?N:D instanceof t.Name?(N instanceof t.Name?x(R,N,D):w(R,N,D),D):N instanceof t.Name?(w(R,D,N),N):C(N,D);return U===t.Name&&!(B instanceof t.Name)?k(R,B):B}}Ct.mergeEvaluated={props:h({mergeNames:(x,w,C)=>x.if((0,t._)`${C} !== true && ${w} !== undefined`,()=>{x.if((0,t._)`${w} === true`,()=>x.assign(C,!0),()=>x.assign(C,(0,t._)`${C} || {}`).code((0,t._)`Object.assign(${C}, ${w})`))}),mergeToName:(x,w,C)=>x.if((0,t._)`${C} !== true`,()=>{w===!0?x.assign(C,!0):(x.assign(C,(0,t._)`${C} || {}`),m(x,C,w))}),mergeValues:(x,w)=>x===!0?!0:{...x,...w},resultToName:y}),items:h({mergeNames:(x,w,C)=>x.if((0,t._)`${C} !== true && ${w} !== undefined`,()=>x.assign(C,(0,t._)`${w} === true ? true : ${C} > ${w} ? ${C} : ${w}`)),mergeToName:(x,w,C)=>x.if((0,t._)`${C} !== true`,()=>x.assign(C,w===!0?!0:(0,t._)`${C} > ${w} ? ${C} : ${w}`)),mergeValues:(x,w)=>x===!0?!0:Math.max(x,w),resultToName:(x,w)=>x.var("items",w)})};function y(x,w){if(w===!0)return x.var("props",!0);const C=x.var("props",(0,t._)`{}`);return w!==void 0&&m(x,C,w),C}Ct.evaluatedPropsToName=y;function m(x,w,C){Object.keys(C).forEach(k=>x.assign((0,t._)`${w}${(0,t.getProperty)(k)}`,!0))}Ct.setEvaluated=m;const g={};function v(x,w){return x.scopeValue("func",{ref:w,code:g[w.code]||(g[w.code]=new e._Code(w.code))})}Ct.useFunc=v;var O;(function(x){x[x.Num=0]="Num",x[x.Str=1]="Str"})(O||(Ct.Type=O={}));function b(x,w,C){if(x instanceof t.Name){const k=w===O.Num;return C?k?(0,t._)`"[" + ${x} + "]"`:(0,t._)`"['" + ${x} + "']"`:k?(0,t._)`"/" + ${x}`:(0,t._)`"/" + ${x}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return C?(0,t.getProperty)(x).toString():"/"+u(x)}Ct.getErrorPath=b;function S(x,w,C=x.opts.strictSchema){if(C){if(w=`strict mode: ${w}`,C===!0)throw new Error(w);x.self.logger.warn(w)}}return Ct.checkStrictMode=S,Ct}var _g={},w2;function Bo(){if(w2)return _g;w2=1,Object.defineProperty(_g,"__esModule",{value:!0});const t=gt(),e={data:new t.Name("data"),valCxt:new t.Name("valCxt"),instancePath:new t.Name("instancePath"),parentData:new t.Name("parentData"),parentDataProperty:new t.Name("parentDataProperty"),rootData:new t.Name("rootData"),dynamicAnchors:new t.Name("dynamicAnchors"),isAllOfVariant:new t.Name("isAllOfVariant"),vErrors:new t.Name("vErrors"),errors:new t.Name("errors"),this:new t.Name("this"),self:new t.Name("self"),scope:new t.Name("scope"),json:new t.Name("json"),jsonPos:new t.Name("jsonPos"),jsonLen:new t.Name("jsonLen"),jsonPart:new t.Name("jsonPart")};return _g.default=e,_g}var P2;function Zx(){return P2||(P2=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.extendErrors=t.resetErrorsCount=t.reportExtraError=t.reportError=t.keyword$DataError=t.keywordError=void 0;const e=gt(),r=At(),n=Bo();t.keywordError={message:({keyword:g})=>(0,e.str)`must pass "${g}" keyword validation`},t.keyword$DataError={message:({keyword:g,schemaType:v})=>v?(0,e.str)`"${g}" keyword must be ${v} ($data)`:(0,e.str)`"${g}" keyword is invalid ($data)`};function i(g,v=t.keywordError,O,b){const{it:S}=g,{gen:x,compositeRule:w,allErrors:C}=S,k=d(g,v,O);b??(w||C)?l(x,k):c(S,(0,e._)`[${k}]`)}t.reportError=i;function o(g,v=t.keywordError,O){const{it:b}=g,{gen:S,compositeRule:x,allErrors:w}=b,C=d(g,v,O);l(S,C),x||w||c(b,n.default.vErrors)}t.reportExtraError=o;function s(g,v){g.assign(n.default.errors,v),g.if((0,e._)`${n.default.vErrors} !== null`,()=>g.if(v,()=>g.assign((0,e._)`${n.default.vErrors}.length`,v),()=>g.assign(n.default.vErrors,null)))}t.resetErrorsCount=s;function a({gen:g,keyword:v,schemaValue:O,data:b,errsCount:S,it:x}){if(S===void 0)throw new Error("ajv implementation error");const w=g.name("err");g.forRange("i",S,n.default.errors,C=>{g.const(w,(0,e._)`${n.default.vErrors}[${C}]`),g.if((0,e._)`${w}.instancePath === undefined`,()=>g.assign((0,e._)`${w}.instancePath`,(0,e.strConcat)(n.default.instancePath,x.errorPath))),g.assign((0,e._)`${w}.schemaPath`,(0,e.str)`${x.errSchemaPath}/${v}`),x.opts.verbose&&(g.assign((0,e._)`${w}.schema`,O),g.assign((0,e._)`${w}.data`,b))})}t.extendErrors=a;function l(g,v){const O=g.const("err",v);g.if((0,e._)`${n.default.vErrors} === null`,()=>g.assign(n.default.vErrors,(0,e._)`[${O}]`),(0,e._)`${n.default.vErrors}.push(${O})`),g.code((0,e._)`${n.default.errors}++`)}function c(g,v){const{gen:O,validateName:b,schemaEnv:S}=g;S.$async?O.throw((0,e._)`new ${g.ValidationError}(${v})`):(O.assign((0,e._)`${b}.errors`,v),O.return(!1))}const u={keyword:new e.Name("keyword"),schemaPath:new e.Name("schemaPath"),params:new e.Name("params"),propertyName:new e.Name("propertyName"),message:new e.Name("message"),schema:new e.Name("schema"),parentSchema:new e.Name("parentSchema")};function d(g,v,O){const{createErrors:b}=g.it;return b===!1?(0,e._)`{}`:f(g,v,O)}function f(g,v,O={}){const{gen:b,it:S}=g,x=[h(S,O),y(g,O)];return m(g,v,x),b.object(...x)}function h({errorPath:g},{instancePath:v}){const O=v?(0,e.str)`${g}${(0,r.getErrorPath)(v,r.Type.Str)}`:g;return[n.default.instancePath,(0,e.strConcat)(n.default.instancePath,O)]}function y({keyword:g,it:{errSchemaPath:v}},{schemaPath:O,parentSchema:b}){let S=b?v:(0,e.str)`${v}/${g}`;return O&&(S=(0,e.str)`${S}${(0,r.getErrorPath)(O,r.Type.Str)}`),[u.schemaPath,S]}function m(g,{params:v,message:O},b){const{keyword:S,data:x,schemaValue:w,it:C}=g,{opts:k,propertyName:R,topSchemaRef:N,schemaPath:D}=C;b.push([u.keyword,S],[u.params,typeof v=="function"?v(g):v||(0,e._)`{}`]),k.messages&&b.push([u.message,typeof O=="function"?O(g):O]),k.verbose&&b.push([u.schema,w],[u.parentSchema,(0,e._)`${N}${D}`],[n.default.data,x]),R&&b.push([u.propertyName,R])}})(tw)),tw}var C2;function vue(){if(C2)return hc;C2=1,Object.defineProperty(hc,"__esModule",{value:!0}),hc.boolOrEmptySchema=hc.topBoolOrEmptySchema=void 0;const t=Zx(),e=gt(),r=Bo(),n={message:"boolean schema is false"};function i(a){const{gen:l,schema:c,validateName:u}=a;c===!1?s(a,!1):typeof c=="object"&&c.$async===!0?l.return(r.default.data):(l.assign((0,e._)`${u}.errors`,null),l.return(!0))}hc.topBoolOrEmptySchema=i;function o(a,l){const{gen:c,schema:u}=a;u===!1?(c.var(l,!1),s(a)):c.var(l,!0)}hc.boolOrEmptySchema=o;function s(a,l){const{gen:c,data:u}=a,d={gen:c,keyword:"false schema",data:u,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:a};(0,t.reportError)(d,n,void 0,l)}return hc}var vn={},mc={},$2;function eU(){if($2)return mc;$2=1,Object.defineProperty(mc,"__esModule",{value:!0}),mc.getRules=mc.isJSONType=void 0;const t=["string","number","integer","boolean","null","object","array"],e=new Set(t);function r(i){return typeof i=="string"&&e.has(i)}mc.isJSONType=r;function n(){const i={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...i,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},i.number,i.string,i.array,i.object],post:{rules:[]},all:{},keywords:{}}}return mc.getRules=n,mc}var oa={},k2;function tU(){if(k2)return oa;k2=1,Object.defineProperty(oa,"__esModule",{value:!0}),oa.shouldUseRule=oa.shouldUseGroup=oa.schemaHasRulesForType=void 0;function t({schema:n,self:i},o){const s=i.RULES.types[o];return s&&s!==!0&&e(n,s)}oa.schemaHasRulesForType=t;function e(n,i){return i.rules.some(o=>r(n,o))}oa.shouldUseGroup=e;function r(n,i){var o;return n[i.keyword]!==void 0||((o=i.definition.implements)===null||o===void 0?void 0:o.some(s=>n[s]!==void 0))}return oa.shouldUseRule=r,oa}var E2;function zb(){if(E2)return vn;E2=1,Object.defineProperty(vn,"__esModule",{value:!0}),vn.reportTypeError=vn.checkDataTypes=vn.checkDataType=vn.coerceAndCheckDataType=vn.getJSONTypes=vn.getSchemaTypes=vn.DataType=void 0;const t=eU(),e=tU(),r=Zx(),n=gt(),i=At();var o;(function(O){O[O.Correct=0]="Correct",O[O.Wrong=1]="Wrong"})(o||(vn.DataType=o={}));function s(O){const b=a(O.type);if(b.includes("null")){if(O.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!b.length&&O.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');O.nullable===!0&&b.push("null")}return b}vn.getSchemaTypes=s;function a(O){const b=Array.isArray(O)?O:O?[O]:[];if(b.every(t.isJSONType))return b;throw new Error("type must be JSONType or JSONType[]: "+b.join(","))}vn.getJSONTypes=a;function l(O,b){const{gen:S,data:x,opts:w}=O,C=u(b,w.coerceTypes),k=b.length>0&&!(C.length===0&&b.length===1&&(0,e.schemaHasRulesForType)(O,b[0]));if(k){const R=y(b,x,w.strictNumbers,o.Wrong);S.if(R,()=>{C.length?d(O,b,C):g(O)})}return k}vn.coerceAndCheckDataType=l;const c=new Set(["string","number","integer","boolean","null"]);function u(O,b){return b?O.filter(S=>c.has(S)||b==="array"&&S==="array"):[]}function d(O,b,S){const{gen:x,data:w,opts:C}=O,k=x.let("dataType",(0,n._)`typeof ${w}`),R=x.let("coerced",(0,n._)`undefined`);C.coerceTypes==="array"&&x.if((0,n._)`${k} == 'object' && Array.isArray(${w}) && ${w}.length == 1`,()=>x.assign(w,(0,n._)`${w}[0]`).assign(k,(0,n._)`typeof ${w}`).if(y(b,w,C.strictNumbers),()=>x.assign(R,w))),x.if((0,n._)`${R} !== undefined`);for(const D of S)(c.has(D)||D==="array"&&C.coerceTypes==="array")&&N(D);x.else(),g(O),x.endIf(),x.if((0,n._)`${R} !== undefined`,()=>{x.assign(w,R),f(O,R)});function N(D){switch(D){case"string":x.elseIf((0,n._)`${k} == "number" || ${k} == "boolean"`).assign(R,(0,n._)`"" + ${w}`).elseIf((0,n._)`${w} === null`).assign(R,(0,n._)`""`);return;case"number":x.elseIf((0,n._)`${k} == "boolean" || ${w} === null
|
|
117
117
|
|| (${k} == "string" && ${w} && ${w} == +${w})`).assign(R,(0,n._)`+${w}`);return;case"integer":x.elseIf((0,n._)`${k} === "boolean" || ${w} === null
|
|
118
118
|
|| (${k} === "string" && ${w} && ${w} == +${w} && !(${w} % 1))`).assign(R,(0,n._)`+${w}`);return;case"boolean":x.elseIf((0,n._)`${w} === "false" || ${w} === 0 || ${w} === null`).assign(R,!1).elseIf((0,n._)`${w} === "true" || ${w} === 1`).assign(R,!0);return;case"null":x.elseIf((0,n._)`${w} === "" || ${w} === 0 || ${w} === false`),x.assign(R,null);return;case"array":x.elseIf((0,n._)`${k} === "string" || ${k} === "number"
|
|
@@ -174,7 +174,7 @@ ${o.message}`})}}}}),FW=({filePath:t})=>({Info:{leave(e,{report:r,location:n,con
|
|
|
174
174
|
${o.message}`,location:n.child("description")})}}}}),ZW=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)}}});function YW(t){return Array.isArray(t)&&t.length===0}const YOe="x-internal",GW=({internalFlagProperty:t=YOe})=>{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(Xr(n[c])&&i.resolve(n[c]).node?.[t]){if(xt(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(xt(n))for(const c of Object.keys(n)){if(Xr(n[c])){const u=i.resolve(n[c]);xt(u.node)&&u.node?.[t]&&(delete n[c],l=!0)}xt(n[c])&&n[c]?.[t]&&(delete n[c],l=!0)}l&&(jh(n)||YW(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 HW(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(Xr(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(xt(t))for(const s of Object.keys(t)){if(t=t,Xr(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&&(jh(t)||YW(t))&&delete n[i]}function JW(t,e,r){return t===void 0||e===void 0?!1:!Array.isArray(e)&&!Array.isArray(t)?t===e:(e=I5(e),t=I5(t),r==="any"?e.some(n=>t.includes(n)):r==="all"?e.every(n=>t.includes(n)):!1)}function I5(t){return Array.isArray(t)?t:[t]}const GOe="any",KW=({property:t,value:e,matchStrategy:r})=>{const n=r||GOe,i=o=>o?.[t]&&!JW(o?.[t],e,n);return{any:{enter:(o,s)=>{HW(o,s,i)}}}},HOe="any",e6=({property:t,value:e,matchStrategy:r})=>{const n=r||HOe,i=o=>JW(o?.[t],e,n);return{any:{enter:(o,s)=>{HW(o,s,i)}}}},JOe=({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=R5(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:A5(Vh(l,r.config?.configPath))}}),e.responses[o]=s)}if(i.request&&e.requestBody){const o=R5(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:A5(Vh(a,r.config?.configPath))}}),e.requestBody=o}}}}});function R5(t,e){if(!Xr(t))return t;const r=e(t);return r.error?void 0:JSON.parse(JSON.stringify(r.node))}const t6=()=>{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),jh(d)&&delete n.components[c]}return i.length>o?r(n,i):i.length}return{ref:{leave(n,{location:i,type:o,resolve:s,key:a}){if(["Schema","Header","Parameter","Response","Example","RequestBody"].includes(o.name)){const l=s(n);if(!l.location)return;const[c,u]=l.location.absolutePointer.split("#",2);if(!u)return;const d=u.split("/").slice(0,4).join("/"),f=`${c}#${d}`,h=t.get(f);h?h.usedIn.push(i):t.set(f,{usedIn:[i],name:a.toString()})}}},Root:{leave(n,i){const o=i.getVisitorData();o.removedCount=r(n,[]),jh(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())}}}},KOe={"operation-description-override":WW,"tag-description-override":BW,"info-description-override":FW,"info-override":ZW,"remove-x-internal":GW,"remove-unused-components":t6,"filter-in":KW,"filter-out":e6,"media-type-examples-override":JOe},r6=()=>{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),jh(n[c])&&delete n[c]);return i.length>o?r(n,i):i.length}return{ref:{leave(n,{location:i,type:o,resolve:s,key:a}){if(["Schema","Parameter","Response","SecurityScheme"].includes(o.name)){const l=s(n);if(!l.location)return;const[c,u]=l.location.absolutePointer.split("#",2);if(!u)return;const d=u.split("/").slice(0,3).join("/"),f=`${c}#${d}`,h=t.get(f);h?h.usedIn.push(i):t.set(f,{usedIn:[i],name:a.toString()})}}},Root:{leave(n,i){const o=i.getVisitorData();o.removedCount=r(n,[])}},NamedSchemas:{Schema(n,{location:i,key:o}){n.allOf||e(i,"definitions",o.toString())}},NamedParameters:{Parameter(n,{location:i,key:o}){e(i,"parameters",o.toString())}},NamedResponses:{Response(n,{location:i,key:o}){e(i,"responses",o.toString())}},NamedSecuritySchemes:{SecurityScheme(n,{location:i,key:o}){e(i,"securityDefinitions",o.toString())}}}},eve={"operation-description-override":WW,"tag-description-override":BW,"info-description-override":FW,"info-override":ZW,"remove-x-internal":GW,"remove-unused-components":r6,"filter-in":KW,"filter-out":e6},tve={},rve={},nve={},ive={},ove={},sve={recommended:Xme,"recommended-strict":Ume,minimal:Bme,all:Wme,spec:Fme},j5={id:"",rules:{oas3:sOe,oas2:fOe,async2:gOe,async3:bOe,arazzo1:zOe,overlay1:VOe,openrpc1:FOe},preprocessors:{oas3:aOe,oas2:pOe,async2:yOe,async3:xOe,arazzo1:LOe,overlay1:XOe,openrpc1:ZOe},decorators:{oas3:KOe,oas2:eve,async2:tve,async3:rve,arazzo1:nve,overlay1:ive,openrpc1:ove},configs:sve};function ave(t){return!Vi(t)}function lve(){return new Promise(t=>{setTimeout(t)})}function lh(t,e){return t+"::"+e}class Gd{constructor(e,r,n){this.absoluteRef=e,this.body=r,this.mimeType=n}getAst(e){return this._ast===void 0&&(this._ast=e(this.body,{filename:this.absoluteRef})??void 0,this._ast&&this._ast.kind===0&&this._ast.value===""&&this._ast.startPosition!==1&&(this._ast.startPosition=1,this._ast.endPosition=1)),this._ast}getLines(){return this._lines===void 0&&(this._lines=this.body.split(/\r\n|[\n\r]/g)),this._lines}}class g_ extends Error{constructor(e){super(e.message),this.originalError=e,Object.setPrototypeOf(this,g_.prototype)}}function cve(t,e){const r=new Gd(e,t);try{return{source:r,parsed:l_(t,{filename:e})}}catch(n){throw new If(n,r)}}class u1{constructor(e={http:{headers:[]}}){this.config=e,this.cache=new Map}getFiles(){return new Set(Array.from(this.cache.keys()))}resolveExternalRef(e,r){return on(r)?r:e&&on(e)?new URL(r,e).href:Mt.resolve(e?Mt.dirname(e):process.cwd(),r)}async loadExternalRef(e){try{if(on(e)){const{body:r,mimeType:n}=await f7(e,this.config.http);return new Gd(e,r,n)}else{if((void 0)(e).isDirectory())throw new Error(`Expected a file but received a folder at ${e}.`);const r=await(void 0).readFile(e,"utf-8");return new Gd(e,r.replace(/\r\n/g,`
|
|
175
175
|
`))}}catch(r){throw r.message=r.message.replace(", lstat",""),new g_(r)}}parseDocument(e,r=!1){const n=e.absoluteRef.substr(e.absoluteRef.lastIndexOf("."));if(![".json",".json",".yml",".yaml"].includes(n)&&!e.mimeType?.match(/(json|yaml|openapi)/)&&!r)return{source:e,parsed:e.body};try{return{source:e,parsed:l_(e.body,{filename:e.absoluteRef})}}catch(i){throw new If(i,e)}}async resolveDocument(e,r,n=!1){const i=this.resolveExternalRef(e,r),o=this.cache.get(i);if(o)return o;const s=this.loadExternalRef(i).then(a=>this.parseDocument(a,n));return this.cache.set(i,s),s}}function Q5(t,e){return{prev:t,node:e}}function uve(t,e){for(;t;){if(t.node===e)return!0;t=t.prev}return!1}const mp={name:"unknown",properties:{}},dve={name:"scalar",properties:{}};async function Xh(t){const{rootDocument:e,externalRefResolver:r,rootType:n}=t,i=new Map,o=new Set,s=[];l(e.parsed,e,"#/",n);let a;do a=await Promise.all(s);while(s.length!==a.length);return i;function l(c,u,d,f){const h=u.source.absoluteRef,y=new Map;m(c,f,h+d);function m(v,O,b){if(typeof v!="object"||v===null)return;const S=`${O.name}::${b}`;if(o.has(S))return;o.add(S);const[x,w]=Object.entries(v).find(([C])=>C==="$anchor")||[];if(w&&y.set(`#${w}`,v),Array.isArray(v)){const C=O.items;if(C===void 0&&O!==mp&&O!==Lc)return;const k=typeof C=="function";for(let R=0;R<v.length;R++){let N=k?C(v[R],ad(b,R)):C;if(N===void 0&&O!==mp&&O!==Lc)continue;const D=N?.directResolveAs?{$ref:v[R]}:v[R];N=N?.directResolveAs||N,m(D,Vc(N)?N:mp,ad(b,R))}return}for(const C of Object.keys(v)){let k=v[C],R=Ll(O.properties,C);R===void 0&&(R=O.additionalProperties),typeof R=="function"&&(R=R(k,C)),R===void 0&&(R=mp),O.extensionsPrefix&&C.startsWith(O.extensionsPrefix)&&R===mp&&(R=Lc),!Vc(R)&&R?.directResolveAs&&(R=R.directResolveAs,k={$ref:k}),R&&R.name===void 0&&R.resolvable!==!1&&(R=dve),!(!Vc(R)||typeof k!="object")&&m(k,R,ad(b,sh(C)))}if(Xr(v)){const C=g(u,v,{prev:null,node:v}).then(k=>{k.resolved&&l(k.node,k.document,k.nodePointer,O)});s.push(C)}if(p7(v)){const C=g(u,{$ref:v.externalValue},{prev:null,node:v}).then(k=>{k.resolved&&l(k.node,k.document,k.nodePointer,O)});s.push(C)}}async function g(v,O,b){if(uve(b.prev,O))throw new Error("Self-referencing circular pointer");if(hoe(O.$ref)){await lve();const U={resolved:!0,isRemote:!1,node:y.get(O.$ref),document:v,nodePointer:O.$ref},B=lh(v.source.absoluteRef,O.$ref);return i.set(B,U),U}const{uri:S,pointer:x}=foe(O.$ref),w=S!==null&&r.resolveExternalRef(v.source.absoluteRef,S)!==v.source.absoluteRef;let C;try{C=w?await r.resolveDocument(v.source.absoluteRef,S):v}catch(U){const B={resolved:!1,isRemote:w,document:void 0,error:U},G=lh(v.source.absoluteRef,O.$ref);return i.set(G,B),B}let k={resolved:!0,document:C,isRemote:w,node:v.parsed,nodePointer:"#/"},R=C.parsed;const N=x;for(const U of N)if(typeof R!="object"){R=void 0;break}else if(R[U]!==void 0)R=R[U],k.nodePointer=ad(k.nodePointer,sh(U));else if(Xr(R)){if(k=await g(C,R,Q5(b,R)),C=k.document||C,typeof k.node!="object"){R=void 0;break}R=k.node[U],k.nodePointer=ad(k.nodePointer,sh(U))}else{R=void 0;break}k.node=R,k.document=C;const D=lh(v.source.absoluteRef,O.$ref);return k.document&&Xr(R)&&(k=await g(k.document,R,Q5(b,R))),i.set(D,k),{...k}}}}const Ht=(t,e)=>{if(e)for(const r of Object.keys(e))xt(t[r])&&typeof e[r]=="string"?t[r]={...t[r],severity:e[r]}:t[r]=e[r]};function dr(t,e){if(e)for(const r of Object.keys(e))t.hasOwnProperty(r)&&(xt(t[r])&&typeof e[r]=="string"?t[r]={...t[r],severity:e[r]}:t[r]=e[r])}function fve(t){if(t.indexOf("/")>-1){const[e,r]=t.split("/");return{pluginId:e,configName:r}}else return{pluginId:"",configName:t}}function Mr(t,e){if(!e)return t;const r={};for(const n of Object.keys(t))r[`${e}/${n}`]=t[n];return r}function n6(t){const e={rules:{},oas2Rules:{},oas3_0Rules:{},oas3_1Rules:{},oas3_2Rules:{},async2Rules:{},async3Rules:{},arazzo1Rules:{},overlay1Rules:{},openrpc1Rules:{},preprocessors:{},oas2Preprocessors:{},oas3_0Preprocessors:{},oas3_1Preprocessors:{},oas3_2Preprocessors:{},async2Preprocessors:{},async3Preprocessors:{},arazzo1Preprocessors:{},overlay1Preprocessors:{},openrpc1Preprocessors:{},decorators:{},oas2Decorators:{},oas3_0Decorators:{},oas3_1Decorators:{},oas3_2Decorators:{},async2Decorators:{},async3Decorators:{},arazzo1Decorators:{},overlay1Decorators:{},openrpc1Decorators:{}};for(const r of t){if(xt(r)&&"extends"in r&&r.extends!==void 0)throw new Error(`'extends' is not supported in shared configs yet:
|
|
176
176
|
${JSON.stringify(r,null,2)}`);Ht(e.rules,r.rules),Ht(e.oas2Rules,r.oas2Rules),dr(e.oas2Rules,r.rules),Ht(e.oas3_0Rules,r.oas3_0Rules),dr(e.oas3_0Rules,r.rules),Ht(e.oas3_1Rules,r.oas3_1Rules),dr(e.oas3_1Rules,r.rules),Ht(e.oas3_2Rules,r.oas3_2Rules),dr(e.oas3_2Rules,r.rules),Ht(e.async2Rules,r.async2Rules),dr(e.async2Rules,r.rules),Ht(e.async3Rules,r.async3Rules),dr(e.async3Rules,r.rules),Ht(e.arazzo1Rules,r.arazzo1Rules),dr(e.arazzo1Rules,r.rules),Ht(e.overlay1Rules,r.overlay1Rules),dr(e.overlay1Rules,r.rules),Ht(e.openrpc1Rules,r.openrpc1Rules),dr(e.openrpc1Rules,r.rules),Ht(e.preprocessors,r.preprocessors),Ht(e.oas2Preprocessors,r.oas2Preprocessors),dr(e.oas2Preprocessors,r.preprocessors),Ht(e.oas3_0Preprocessors,r.oas3_0Preprocessors),dr(e.oas3_0Preprocessors,r.preprocessors),Ht(e.oas3_1Preprocessors,r.oas3_1Preprocessors),dr(e.oas3_1Preprocessors,r.preprocessors),Ht(e.oas3_2Preprocessors,r.oas3_2Preprocessors),dr(e.oas3_2Preprocessors,r.preprocessors),Ht(e.async2Preprocessors,r.async2Preprocessors),dr(e.async2Preprocessors,r.preprocessors),Ht(e.async3Preprocessors,r.async3Preprocessors),dr(e.async3Preprocessors,r.preprocessors),Ht(e.arazzo1Preprocessors,r.arazzo1Preprocessors),dr(e.arazzo1Preprocessors,r.preprocessors),Ht(e.overlay1Preprocessors,r.overlay1Preprocessors),dr(e.overlay1Preprocessors,r.preprocessors),Ht(e.openrpc1Preprocessors,r.openrpc1Preprocessors),dr(e.openrpc1Preprocessors,r.preprocessors),Ht(e.decorators,r.decorators),Ht(e.oas2Decorators,r.oas2Decorators),dr(e.oas2Decorators,r.decorators),Ht(e.oas3_0Decorators,r.oas3_0Decorators),dr(e.oas3_0Decorators,r.decorators),Ht(e.oas3_1Decorators,r.oas3_1Decorators),dr(e.oas3_1Decorators,r.decorators),Ht(e.oas3_2Decorators,r.oas3_2Decorators),dr(e.oas3_2Decorators,r.decorators),Ht(e.async2Decorators,r.async2Decorators),dr(e.async2Decorators,r.decorators),Ht(e.async3Decorators,r.async3Decorators),dr(e.async3Decorators,r.decorators),Ht(e.arazzo1Decorators,r.arazzo1Decorators),dr(e.arazzo1Decorators,r.decorators),Ht(e.overlay1Decorators,r.overlay1Decorators),dr(e.overlay1Decorators,r.decorators),Ht(e.openrpc1Decorators,r.openrpc1Decorators),dr(e.openrpc1Decorators,r.decorators)}return e}function pve(t){return new Map(JSON.parse(JSON.stringify([...t])))}function D5(t){return t!==void 0&&typeof t=="object"&&"id"in t}function hve(t){return typeof t=="function"}function N5(t,e){return{prev:t,value:e}}function M5(t){return t?.prev??null}function mve(t){const e={};for(;t.parent;)e[t.parent.type.name]=t.parent.activatedOn?.value.node,t=t.parent;return e}function gve(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 Hd(t){const{document:e,rootType:r,normalizedVisitors:n,resolvedRefMap:i,ctx:o}=t,s={},a=new Set;l(e.parsed,r,new Pv(e.source,"#/"),void 0,"");function l(c,u,d,f,h){const y=(k,R=g.source.absoluteRef)=>{if(!Xr(k))return{location:d,node:k};const N=lh(R,k.$ref),D=i.get(N);if(!D)return{location:void 0,node:void 0};const{resolved:U,node:B,document:G,nodePointer:H,error:ne}=D;return{location:U?new Pv(G.source,H):ne instanceof If?new Pv(ne.source,""):void 0,node:B,error:ne}},m=d;let g=d;const{node:v,location:O,error:b}=y(c),S=new Set;if(Xr(c)){const k=n.ref.enter;for(const{visit:R,ruleId:N,severity:D,message:U,context:B}of k){S.add(B);const G=w.bind(void 0,N,D,U);R(c,{report:G,resolve:y,rawNode:c,rawLocation:m,location:d,type:u,parent:f,key:h,parentLocations:{},specVersion:o.specVersion,config:o.config,getVisitorData:C.bind(void 0,N)},{node:v,location:O,error:b}),O?.source.absoluteRef&&o.refTypes&&o.refTypes.set(O?.source.absoluteRef,u)}}if(v!==void 0&&O&&u.name!=="scalar"){g=O;const k=s[u.name]?.has?.(v);let R=!1;const D=n.any.enter.concat(n[u.name]?.enter||[]),U=[];for(const{context:H,visit:ne,skip:ce,ruleId:Z,severity:oe,message:M}of D){if(a.has(`${g.absolutePointer}${g.pointer}`))break;if(H.isSkippedLevel)H.parent.activatedOn&&!H.parent.activatedOn.value.nextLevelTypeActivated&&!H.seen.has(c)&&(H.seen.add(c),R=!0,U.push(H));else if(H.parent&&H.parent.activatedOn&&H.activatedOn?.value.withParentNode!==H.parent.activatedOn.value.node&&H.parent.activatedOn.value.nextLevelTypeActivated?.value!==u||!H.parent&&!k){U.push(H);const j={node:v,location:O,nextLevelTypeActivated:null,withParentNode:H.parent?.activatedOn?.value.node,skipped:(H.parent?.activatedOn?.value.skipped||ce?.(v,h,{location:d,rawLocation:m,resolve:y,rawNode:c}))??!1};H.activatedOn=N5(H.activatedOn,j);let V=H.parent;for(;V;)V.activatedOn.value.nextLevelTypeActivated=N5(V.activatedOn.value.nextLevelTypeActivated,u),V=V.parent;j.skipped||(R=!0,S.add(H),x(ne,v,c,H,Z,oe,M))}}if(R||!k){if(s[u.name]=s[u.name]||new Set,s[u.name].add(v),Array.isArray(v)){const H=u.items;if(H!==void 0){const ne=typeof H=="function";for(let ce=0;ce<v.length;ce++){let Z=ne?H(v[ce],O.child([ce]).absolutePointer):H,oe=v[ce];Z?.directResolveAs&&(Z=Z.directResolveAs,oe={$ref:oe}),Vc(Z)&&l(oe,Z,O.child([ce]),v,ce)}}}else if(typeof v=="object"&&v!==null){const H=Object.keys(u.properties);u.additionalProperties?H.push(...Object.keys(v).filter(ne=>!H.includes(ne))):u.extensionsPrefix&&H.push(...Object.keys(v).filter(ne=>ne.startsWith(u.extensionsPrefix))),Xr(c)&&H.push(...Object.keys(c).filter(ne=>ne!=="$ref"&&!H.includes(ne)));for(const ne of H){let ce=v[ne],Z=O;ce===void 0&&(ce=c[ne],Z=d);let oe=Ll(u.properties,ne);if(oe===void 0&&(oe=u.additionalProperties),typeof oe=="function"&&(oe=oe(ce,ne)),oe===void 0&&u.extensionsPrefix&&ne.startsWith(u.extensionsPrefix)&&(oe=Lc),!Vc(oe)&&oe?.directResolveAs&&(oe=oe.directResolveAs,ce={$ref:ce}),oe&&oe.name===void 0&&oe.resolvable!==!1&&(oe={name:"scalar",properties:{}}),Xr(c[ne])&&oe?.name==="scalar"){l(c[ne],oe,d.child([ne]),c,ne);continue}!Vc(oe)||oe.name==="scalar"&&!Xr(ce)||l(ce,oe,Z.child([ne]),v,ne)}}}const B=n.any.leave,G=(n[u.name]?.leave||[]).concat(B);for(const H of U.reverse())if(H.isSkippedLevel)H.seen.delete(v);else if(H.activatedOn=M5(H.activatedOn),H.parent){let ne=H.parent;for(;ne;)ne.activatedOn.value.nextLevelTypeActivated=M5(ne.activatedOn.value.nextLevelTypeActivated),ne=ne.parent}for(const{context:H,visit:ne,ruleId:ce,severity:Z,message:oe}of G)!H.isSkippedLevel&&S.has(H)&&x(ne,v,c,H,ce,Z,oe)}if(g=d,Xr(c)){const k=n.ref.leave;for(const{visit:R,ruleId:N,severity:D,context:U,message:B}of k)if(S.has(U)){const G=w.bind(void 0,N,D,B);R(c,{report:G,resolve:y,rawNode:c,rawLocation:m,location:d,type:u,parent:f,key:h,parentLocations:{},specVersion:o.specVersion,config:o.config,getVisitorData:C.bind(void 0,N)},{node:v,location:O,error:b})}}function x(k,R,N,D,U,B,G){const H=w.bind(void 0,U,B,G);k(R,{report:H,resolve:y,rawNode:N,location:g,rawLocation:m,type:u,parent:f,key:h,parentLocations:gve(D),specVersion:o.specVersion,config:o.config,ignoreNextVisitorsOnNode:()=>{a.add(`${g.absolutePointer}${g.pointer}`)},getVisitorData:C.bind(void 0,U)},mve(D),D)}function w(k,R,N,D){const B=(D.location?Array.isArray(D.location)?D.location:[D.location]:[{...g,reportOnKey:!1}]).map(H=>({...g,reportOnKey:!1,...H})),G=D.forceSeverity||R;G!=="off"&&o.problems.push({ruleId:D.ruleId||k,severity:G,...D,message:N?N.replace("{{message}}",D.message):D.message,suggest:D.suggest||[],location:B})}function C(k){return o.visitorsData[k]=o.visitorsData[k]||{},o.visitorsData[k]}}}const yve={Root:"DefinitionRoot",ServerVariablesMap:"ServerVariableMap",Paths:["PathMap","PathsMap"],CallbacksMap:"CallbackMap",MediaTypesMap:"MediaTypeMap",ExamplesMap:"ExampleMap",EncodingMap:"EncodingsMap",HeadersMap:"HeaderMap",LinksMap:"LinkMap",OAuth2Flows:"SecuritySchemeFlows",Responses:"ResponsesMap"};function Jd(t,e){const r={};r.any={enter:[],leave:[]};for(const s of Object.keys(e))r[s]={enter:[],leave:[]};r.ref={enter:[],leave:[]};for(const{ruleId:s,severity:a,message:l,visitor:c}of t)o({ruleId:s,severity:a,message:l},c,null);for(const s of Object.keys(r))r[s].enter.sort((a,l)=>l.depth-a.depth),r[s].leave.sort((a,l)=>a.depth-l.depth);return r;function n(s,a,l,c,u=[]){if(u.includes(a))return;u=[...u,a];const d=new Set;for(const h of Object.values(a.properties)){if(h===l){f(s,u);continue}typeof h=="object"&&h!==null&&h.name&&d.add(h)}a.additionalProperties&&typeof a.additionalProperties!="function"&&(a.additionalProperties===l?f(s,u):a.additionalProperties.name!==void 0&&d.add(a.additionalProperties)),a.items&&typeof a.items!="function"&&(a.items===l?f(s,u):a.items.name!==void 0&&d.add(a.items)),a.extensionsPrefix&&d.add(Lc);for(const h of Array.from(d.values()))n(s,h,l,c,u);function f(h,y){for(const m of y.slice(1))r[m.name]=r[m.name]||{enter:[],leave:[]},r[m.name].enter.push({...h,visit:()=>{},depth:0,context:{isSkippedLevel:!0,seen:new Set,parent:c}})}}function i(s,a){if(Array.isArray(a)){const l=a.find(c=>s[c])||void 0;return l&&s[l]}return s[a]}function o(s,a,l,c=0){const u=Object.keys(e);if(c===0)u.push("any"),u.push("ref");else{if(a.any)throw new Error("any() is allowed only on top level");if(a.ref)throw new Error("ref() is allowed only on top level")}for(const d of u){const f=a[d]||i(a,yve[d]),h=r[d];if(!f)continue;let y,m,g;const v=xt(f);if(d==="ref"&&v&&f.skip)throw new Error("ref() visitor does not support skip");typeof f=="function"?y=f:v&&(y=f.enter,m=f.leave,g=f.skip);const O=(y?1:0)+(m?1:0)+(g?1:0),b=v&&Object.keys(f).length>O,S={activatedOn:null,type:e[d],parent:l,isSkippedLevel:!1};if(b&&o(s,f,S,c+1),l&&n(s,l.type,e[d],l),y||v){if(y&&typeof y!="function")throw new Error("DEV: should be function");h.enter.push({...s,visit:y||(()=>{}),skip:g,depth:c,context:S})}if(m){if(typeof m!="function")throw new Error("DEV: should be function");h.leave.push({...s,visit:m,depth:c,context:S})}}}}function i6({node:t,ctx:e,plugins:r}){if(!t.extends)return t;const n=(t.extends||[]).map(i=>{if(!on(i)&&!Yc.extname(i))return kve(i,r);const o=e.resolve({$ref:i});return o.location&&o.node!==void 0?o.node:null}).filter(oo);return n6([...n.map(i=>i6({node:i,ctx:e,plugins:r})),{...t,extends:void 0}])}function uO(t,e){if(xt(t)&&Array.isArray(t.plugins)){const{plugins:r,rootConfigDir:n}=e.getVisitorData();r.push(...t.plugins.map(i=>s6(i,e.location.source.absoluteRef.replace(/^file:\/\//,""),n)))}}const Ove=Jd([{severity:"error",ruleId:nW,visitor:{ref:{},ConfigGovernance:{leave(t,e){uO(t,e)}},ConfigApisProperties:{leave(t,e){uO(t,e)}},"rootRedoclyConfigSchema.scorecard.levels_items":{leave(t,e){uO(t,e)}},ConfigRoot:{leave(t,e){uO(t,e)}}}}],Mm);function dO(t,e){if(xt(t)&&t.extends){const{plugins:r}=e.getVisitorData(),n=i6({node:t,ctx:e,plugins:r});Object.assign(t,n),delete t.extends}}const vve=Jd([{severity:"error",ruleId:rW,visitor:{ref:{leave(t,e,r){v$(t,r,e)}},ConfigGovernance:{leave(t,e){dO(t,e)}},ConfigApisProperties:{leave(t,e){dO(t,e)}},"rootRedoclyConfigSchema.scorecard.levels_items":{leave(t,e){dO(t,e)}},ConfigRoot:{leave(t,e){dO(t,e)}}}}],Mm);function q5(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;case"openrpc1":switch(t){case"ContentDescriptor":return"contentDescriptors";case"Schema":return"schemas";case"Example":return"examples";case"Link":return"links";case"ErrorObject":return"errors";case"ExamplePairing":return"examplePairingObjects";case"Tag":return"tags";default:return null}}}function bve(t,e,r,n,i){let o,s;const a={ref:{leave(f,h,y){if(!y.location||y.node===void 0){ah(y,h.report,h.location);return}if(y.location.source===r.source&&y.location.source===h.location.source&&h.type.name!=="scalar"&&!e){f.$ref!==y.location.pointer&&(f.$ref=y.location.pointer);return}if(i&&on(f.$ref))return;const m=q5(h.type.name,t);m?e?(c(m,y,h),v$(f,y,h)):(f.$ref=c(m,y,h),l(f,y,h)):v$(f,y,h)}},Example:{leave(f,h){if(p7(f)&&f.value===void 0){const y=h.resolve({$ref:f.externalValue});if(!y.location||y.node===void 0){ah(y,h.report,h.location);return}if(i&&on(f.externalValue))return;f.value=h.resolve({$ref:f.externalValue}).node,delete f.externalValue}}},Root:{enter(f,h){s=h.location,t==="oas3"?o=f.components=f.components||{}:t==="oas2"?o=f:t==="async2"?o=f.components=f.components||{}:t==="async3"?o=f.components=f.components||{}:t==="arazzo1"?o=f.components=f.components||{}:t==="openrpc1"&&(o=f.components=f.components||{})}}};t==="oas3"&&(a.DiscriminatorMapping={leave(f,h){for(const y of Object.keys(f)){const m=f[y],g=h.resolve({$ref:m});if(!g.location||g.node===void 0){ah(g,h.report,h.location.child(y));return}const v=q5("Schema",t);f[y]=c(v,g,h)}}});function l(f,h,y){const m=lh(y.location.source.absoluteRef,f.$ref);n.set(m,{document:r,isRemote:!1,node:h.node,nodePointer:f.$ref,resolved:!0})}function c(f,h,y){o[f]=o[f]||{};const m=d(h,f,y);return o[f][m]=h.node,t==="oas3"||t==="async2"||t==="async3"||t==="openrpc1"?`#/components/${f}/${m}`:`#/${f}/${m}`}function u(f,h,y){return Xr(f)&&y.resolve(f,s.absolutePointer).location?.absolutePointer===h.location.absolutePointer?!0:O$(f,h.node)}function d(f,h,y){const[m,g]=[f.location.source.absoluteRef,f.location.pointer],v=o[h];let O="";const b=g.slice(2).split("/").filter(oo);for(;b.length>0;)if(O=b.pop()+(O?`-${O}`:""),!v||!v[O]||u(v[O],f,y))return O;if(O=poe(m)+(O?`_${O}`:""),!v[O]||u(v[O],f,y))return O;const S=O;let x=2;for(;v[O]&&!u(v[O],f,y);)O=`${S}-${x}`,x++;return v[O]||y.report({message:`Two schemas are referenced with the same name but different content. Renamed ${S} to ${O}.`,location:y.location,forceSeverity:"warn"}),O}return a}async function xve(t){const{document:e,config:r,types:n,externalRefResolver:i,dereference:o=!1,removeUnusedComponents:s=!1,keepUrlRefs:a=!1}=t,l=e1(e.parsed),c=eW(l),u=r.getRulesForSpecVersion(c),d=qT(r.extendTypes(n,l),r),f=Zb(u,r,"preprocessors",l),h=Zb(u,r,"decorators",l),y={problems:[],specVersion:l,config:r,refTypes:new Map,visitorsData:{}};s&&!h.some(v=>v.ruleId==="remove-unused-components")&&h.push({severity:"error",ruleId:"remove-unused-components",visitor:c==="oas2"?r6():t6()});let m=await Xh({rootDocument:e,rootType:d.Root,externalRefResolver:i});f.length>0&&(Hd({document:e,rootType:d.Root,normalizedVisitors:Jd(f,d),resolvedRefMap:m,ctx:y}),m=await Xh({rootDocument:e,rootType:d.Root,externalRefResolver:i}));const g=Jd([{severity:"error",ruleId:"bundler",visitor:bve(c,o,e,m,a)},...h],d);return Hd({document:e,rootType:d.Root,normalizedVisitors:g,resolvedRefMap:m,ctx:y}),{bundle:e,problems:y.problems.map(v=>r.addProblemToIgnore(v)),fileDependencies:i.getFiles(),rootType:d.Root,refTypes:y.refTypes,visitorsData:y.visitorsData}}function Sve(t,e,r){const n={plugins:[],rootConfigDir:r},i={problems:[],specVersion:"oas3_0",refTypes:new Map,visitorsData:{[nW]:n}};return Hd({document:t,rootType:Mm.ConfigRoot,normalizedVisitors:Ove,resolvedRefMap:e,ctx:i}),n.plugins}function wve(t,e,r){const n={plugins:r},i={problems:[],specVersion:"oas3_0",refTypes:new Map,visitorsData:{[rW]:n}};return Hd({document:t,rootType:Mm.ConfigRoot,normalizedVisitors:vve,resolvedRefMap:e,ctx:i}),t.parsed??{}}async function o6(t){const{ref:e,doc:r,externalRefResolver:n=new u1(t.config.resolve),base:i=null}=t;if(!(e||r))throw new Error(`Document or reference is required.
|
|
177
|
-
`);const o=r===void 0?await n.resolveDocument(i,e,!0):r;if(o instanceof Error)throw o;return t.collectSpecData?.(o.parsed),xve({document:o,...t,externalRefResolver:n,types:GT(e1(o.parsed))})}const Cw=new Map;async function Pve({rawConfigDocument:t,configPath:e,externalRefResolver:r,customExtends:n}){const i=t===void 0?qme:t.parsed;if(n!==void 0&&xt(i)&&(i.extends=n),xt(i)&&i?.extends?.some(ave))throw new Error("Configuration format not detected in extends: values must be strings.");const o=t??{source:new Gd(e??"",JSON.stringify(i)),parsed:i},s=await Xh({rootDocument:o,rootType:Mm.ConfigRoot,externalRefResolver:r??new u1(tW(i?.resolve))});let a=[],l,c="";hi?l=[...(i?.plugins||[]).filter(h=>!Vi(h)),j5]:(c=Mt.dirname(e??""),a=Sve(o,s,c),l=[...await $ve(a.map(h=>z5(h)?h.absolutePath:h),c),j5]);const u=wve(o,pve(s),l);u.apis&&(u.apis=Object.fromEntries(Object.entries(u.apis).map(([f,h])=>{const y=n6([u,h]);return[f,{...h,...y}]})));const d=a.length?a.map(f=>z5(f)&&f.isModule?f.rawPath:f.absolutePath&&Mt.relative(c,f.absolutePath)).filter(Fb):void 0;return{resolvedConfig:{...u,plugins:d},resolvedRefMap:s,plugins:l}}function Cve(t){for(const e of Lme)(void 0)(Mt.resolve(t,e))}function z5(t){return"isModule"in t}const s6=(t,e,r)=>{if(!Vi(t))return t;const n=Mt.resolve(Mt.dirname(e),t);return(void 0)(n)?{absolutePath:n,rawPath:t,isModule:!1}:{absolutePath:a7.createRequire((typeof document>"u"?require("url").pathToFileURL(__filename).href:ra&&ra.tagName.toUpperCase()==="SCRIPT"&&ra.src||new URL("replay-index-
|
|
177
|
+
`);const o=r===void 0?await n.resolveDocument(i,e,!0):r;if(o instanceof Error)throw o;return t.collectSpecData?.(o.parsed),xve({document:o,...t,externalRefResolver:n,types:GT(e1(o.parsed))})}const Cw=new Map;async function Pve({rawConfigDocument:t,configPath:e,externalRefResolver:r,customExtends:n}){const i=t===void 0?qme:t.parsed;if(n!==void 0&&xt(i)&&(i.extends=n),xt(i)&&i?.extends?.some(ave))throw new Error("Configuration format not detected in extends: values must be strings.");const o=t??{source:new Gd(e??"",JSON.stringify(i)),parsed:i},s=await Xh({rootDocument:o,rootType:Mm.ConfigRoot,externalRefResolver:r??new u1(tW(i?.resolve))});let a=[],l,c="";hi?l=[...(i?.plugins||[]).filter(h=>!Vi(h)),j5]:(c=Mt.dirname(e??""),a=Sve(o,s,c),l=[...await $ve(a.map(h=>z5(h)?h.absolutePath:h),c),j5]);const u=wve(o,pve(s),l);u.apis&&(u.apis=Object.fromEntries(Object.entries(u.apis).map(([f,h])=>{const y=n6([u,h]);return[f,{...h,...y}]})));const d=a.length?a.map(f=>z5(f)&&f.isModule?f.rawPath:f.absolutePath&&Mt.relative(c,f.absolutePath)).filter(Fb):void 0;return{resolvedConfig:{...u,plugins:d},resolvedRefMap:s,plugins:l}}function Cve(t){for(const e of Lme)(void 0)(Mt.resolve(t,e))}function z5(t){return"isModule"in t}const s6=(t,e,r)=>{if(!Vi(t))return t;const n=Mt.resolve(Mt.dirname(e),t);return(void 0)(n)?{absolutePath:n,rawPath:t,isModule:!1}:{absolutePath:a7.createRequire((typeof document>"u"?require("url").pathToFileURL(__filename).href:ra&&ra.tagName.toUpperCase()==="SCRIPT"&&ra.src||new URL("replay-index-CSeQ670v.js",document.baseURI).href)??__dirname).resolve(t,{paths:[r,(typeof document>"u"?require("url").pathToFileURL(__filename).href:ra&&ra.tagName.toUpperCase()==="SCRIPT"&&ra.src||new URL("replay-index-CSeQ670v.js",document.baseURI).href)?Mt.dirname((void 0)(typeof document>"u"?require("url").pathToFileURL(__filename).href:ra&&ra.tagName.toUpperCase()==="SCRIPT"&&ra.src||new URL("replay-index-CSeQ670v.js",document.baseURI).href)):__dirname]}),isModule:!0,rawPath:t}};async function $ve(t,e){if(!t)return[];const r=async a=>{if(!Vi(a))return a;try{const l=Mt.isAbsolute(a)?a:s6(a,Mt.join(e,Mme),e).absolutePath;if(!Cw.has(l)){let c;if(typeof __webpack_require__=="function")c=__non_webpack_require__(l);else{const y=await import((void 0)(l).pathname);c=y.default||y}const u={contentDir:e},d=Array.isArray(c)?c:[c];for(const y of d)y?.id&&D5(y)&&pr.info(`Deprecated plugin format detected: ${y.id}
|
|
178
178
|
`);const f=D5(c)?c:hve(c)?await c(u):await c?.default?.(u),h=Array.isArray(f)?f:[f];f&&Cw.set(l,h.map(y=>({...y,path:a,absolutePath:l})))}return Cw.get(l)}catch(l){throw new Error(`Failed to load plugin "${a}": ${l.message}
|
|
179
179
|
|
|
180
180
|
${l.stack}`)}},n=new Map,i=Cve(e);i&&t.push(i);const o=new Set;return(await Promise.all(t.map(async a=>{if(Vi(a)){if(on(a))throw new Error(qt.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(qt.red(`Plugin must define \`id\` property in ${qt.blue(a.toString())}.`));const f=u.absolutePath??a.toString(),h=n.get(d);if(h){if(f!==h)throw new Error(qt.red(`Plugin "id" must be unique. Plugin ${qt.blue(f)} uses id "${qt.blue(d)}" already seen in ${qt.blue(f)}`));return}n.set(d,f);const y={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&&!u.rules.openrpc1)throw new Error(`Plugin rules must have \`oas3\`, \`oas2\`, \`async2\`, \`async3\`, \`arazzo\`, \`overlay1\`, or \`openrpc1\` rules "${a}.`);y.rules={},u.rules.oas3&&(y.rules.oas3=Mr(u.rules.oas3,d)),u.rules.oas2&&(y.rules.oas2=Mr(u.rules.oas2,d)),u.rules.async2&&(y.rules.async2=Mr(u.rules.async2,d)),u.rules.async3&&(y.rules.async3=Mr(u.rules.async3,d)),u.rules.arazzo1&&(y.rules.arazzo1=Mr(u.rules.arazzo1,d)),u.rules.overlay1&&(y.rules.overlay1=Mr(u.rules.overlay1,d)),u.rules.openrpc1&&(y.rules.openrpc1=Mr(u.rules.openrpc1,d))}if(u.preprocessors){if(!u.preprocessors.oas3&&!u.preprocessors.oas2&&!u.preprocessors.async2&&!u.preprocessors.async3&&!u.preprocessors.arazzo1&&!u.preprocessors.overlay1&&!u.preprocessors.openrpc1)throw new Error(`Plugin \`preprocessors\` must have \`oas3\`, \`oas2\`, \`async2\`, \`async3\`, \`arazzo1\`, \`overlay1\`, or \`openrpc1\` preprocessors "${a}.`);y.preprocessors={},u.preprocessors.oas3&&(y.preprocessors.oas3=Mr(u.preprocessors.oas3,d)),u.preprocessors.oas2&&(y.preprocessors.oas2=Mr(u.preprocessors.oas2,d)),u.preprocessors.async2&&(y.preprocessors.async2=Mr(u.preprocessors.async2,d)),u.preprocessors.async3&&(y.preprocessors.async3=Mr(u.preprocessors.async3,d)),u.preprocessors.arazzo1&&(y.preprocessors.arazzo1=Mr(u.preprocessors.arazzo1,d)),u.preprocessors.overlay1&&(y.preprocessors.overlay1=Mr(u.preprocessors.overlay1,d)),u.preprocessors.openrpc1&&(y.preprocessors.openrpc1=Mr(u.preprocessors.openrpc1,d))}if(u.decorators){if(!u.decorators.oas3&&!u.decorators.oas2&&!u.decorators.async2&&!u.decorators.async3&&!u.decorators.arazzo1&&!u.decorators.overlay1&&!u.decorators.openrpc1)throw new Error(`Plugin \`decorators\` must have \`oas3\`, \`oas2\`, \`async2\`, \`async3\`, \`arazzo1\`, \`overlay1\`, or \`openrpc1\` decorators "${a}.`);y.decorators={},u.decorators.oas3&&(y.decorators.oas3=Mr(u.decorators.oas3,d)),u.decorators.oas2&&(y.decorators.oas2=Mr(u.decorators.oas2,d)),u.decorators.async2&&(y.decorators.async2=Mr(u.decorators.async2,d)),u.decorators.async3&&(y.decorators.async3=Mr(u.decorators.async3,d)),u.decorators.arazzo1&&(y.decorators.arazzo1=Mr(u.decorators.arazzo1,d)),u.decorators.overlay1&&(y.decorators.overlay1=Mr(u.decorators.overlay1,d)),u.decorators.openrpc1&&(y.decorators.openrpc1=Mr(u.decorators.openrpc1,d))}return u.assertions&&(y.assertions=u.assertions),{...u,...y}}))).filter(Fb)}))).filter(Fb).flat()}function kve(t,e){const{pluginId:r,configName:n}=fve(t),i=e.find(s=>s.id===r);if(!i)throw new Error(`Invalid config ${qt.red(t)}: plugin ${r} is not included.`);const o=i.configs?.[n];if(!o)throw new Error(r?`Invalid config ${qt.red(t)}: plugin ${r} doesn't export config with name ${n}.`:`Invalid config ${qt.red(t)}: there is no such built-in config.`);return o}async function a6(t,{configPath:e,externalRefResolver:r}={}){const i=cve(typeof t=="string"?t:"",e??"");typeof t!="string"&&t&&(i.parsed=t);const{resolvedConfig:o,resolvedRefMap:s,plugins:a}=await Pve({rawConfigDocument:Eve(i),configPath:e,externalRefResolver:r});return new t1(o,{configPath:e,document:i,resolvedRefMap:s,plugins:a})}function Eve(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 $w={},_o={},kw={},L5;function d1(){return L5||(L5=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})(kw)),kw}var ua={},V5;function Rf(){if(V5)return ua;V5=1,Object.defineProperty(ua,"__esModule",{value:!0});function t(s){return typeof s>"u"||s===null}ua.isNothing=t;function e(s){return typeof s=="object"&&s!==null}ua.isObject=e;function r(s){return Array.isArray(s)?s:t(s)?[]:[s]}ua.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}ua.extend=n;function i(s,a){var l="",c;for(c=0;c<a;c+=1)l+=s;return l}ua.repeat=i;function o(s){return s===0&&Number.NEGATIVE_INFINITY===1/s}return ua.isNegativeZero=o,ua}var Ew,X5;function Vm(){if(X5)return Ew;X5=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 Ew=t,Ew}var Tw,U5;function Tve(){if(U5)return Tw;U5=1;var t=Rf(),e=(function(){function r(n,i,o,s,a){this.name=n,this.buffer=i,this.position=o,this.line=s,this.column=a}return r.prototype.getSnippet=function(n,i){n===void 0&&(n=0),i===void 0&&(i=75);var o,s,a,l,c;if(!this.buffer)return null;for(n=n||4,i=i||75,o="",s=this.position;s>0&&`\0\r
|
|
@@ -340,7 +340,7 @@ html body {
|
|
|
340
340
|
align-self: flex-end;
|
|
341
341
|
padding-top: var(--spacing-xxs);
|
|
342
342
|
gap: var(--spacing-xs);
|
|
343
|
-
`;function k_({input:t,onSave:e,onCancel:r,...n}){const[i,o]=E.useState(!!t.isSecret),s=({name:a,value:l})=>{e({...t,name:a,value:l,isSecret:i})};return p.jsx(J6,{variable:t,onSave:s,onCancel:r,maskValue:i,...n,children:p.jsx(Zh,{children:p.jsx(H6,{value:i,onChange:a=>o(a),title:"Make it secret"})})})}const ek=()=>({name:"",value:"",isSecret:!1}),Er=t=>s7+"$inputs."+t+NT,K6=(t,e)=>e.inputs.find(r=>r.get().name===t.match(`^${Xx}$`)?.[1]);function Sxe({environments:t,activeEnvironmentId:e}){return t.get().find(n=>n.name===e.get())?.inputs||[]}function ul(t){const e=new RegExp(Xx,"g"),r=new Set;if(!t)return r;for(const[n,i,o]of t.matchAll(e)){const s=i||o;s&&r.add(s)}return r}function w1(t){const e=/^\{?\$inputs\.([^\}\s]+)\}?$/,r=t.match(e);return r?r[1]:null}function Tv(t){const e=new Error(t);return e.source="ulid",e}const E_="0123456789ABCDEFGHJKMNPQRSTVWXYZ",ch=E_.length,eN=Math.pow(2,48)-1,wxe=10,Pxe=16;function Cxe(t){let e=Math.floor(t()*ch);return e===ch&&(e=ch-1),E_.charAt(e)}function $xe(t,e){if(isNaN(t))throw new Error(t+" must be a number");if(t>eN)throw Tv("cannot encode time greater than "+eN);if(t<0)throw Tv("time must be positive");if(Number.isInteger(Number(t))===!1)throw Tv("time must be an integer");let r,n="";for(;e>0;e--)r=t%ch,n=E_.charAt(r)+n,t=(t-r)/ch;return n}function kxe(t,e){let r="";for(;t>0;t--)r=Cxe(e)+r;return r}function Exe(t=!1,e){e||(e=typeof window<"u"?window:null);const r=e&&(e.crypto||e.msCrypto);if(r)return()=>{const n=new Uint8Array(1);return r.getRandomValues(n),n[0]/255};try{const n=require("crypto");return()=>n.randomBytes(1).readUInt8()/255}catch{}if(t){try{console.error("secure crypto unusable, falling back to insecure Math.random()!")}catch{}return()=>Math.random()}throw Tv("secure crypto unusable, insecure Math.random not allowed")}function Txe(t){return t||(t=Exe()),function(r){return isNaN(r)&&(r=Date.now()),$xe(r,wxe)+kxe(Pxe,t)}}const u0=Txe();var _xe=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof global=="object"?global:{},Dc="1.9.0",tN=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;function Axe(t){var e=new Set([t]),r=new Set,n=t.match(tN);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(tN);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 Ixe=Axe(Dc),Rxe=Dc.split(".")[0],Gh=Symbol.for("opentelemetry.js.api."+Rxe),Hh=_xe;function Wm(t,e,r,n){var i;n===void 0&&(n=!1);var o=Hh[Gh]=(i=Hh[Gh])!==null&&i!==void 0?i:{version:Dc};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!==Dc){var s=new Error("@opentelemetry/api: Registration of version v"+o.version+" for "+t+" does not match previously registered API v"+Dc);return r.error(s.stack||s.message),!1}return o[t]=e,r.debug("@opentelemetry/api: Registered a global for "+t+" v"+Dc+"."),!0}function Gc(t){var e,r,n=(e=Hh[Gh])===null||e===void 0?void 0:e.version;if(!(!n||!Ixe(n)))return(r=Hh[Gh])===null||r===void 0?void 0:r[t]}function Bm(t,e){e.debug("@opentelemetry/api: Unregistering a global for "+t+" v"+Dc+".");var r=Hh[Gh];r&&delete r[t]}var jxe=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},Qxe=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))},Dxe=(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 vp("debug",this._namespace,e)},t.prototype.error=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return vp("error",this._namespace,e)},t.prototype.info=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return vp("info",this._namespace,e)},t.prototype.warn=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return vp("warn",this._namespace,e)},t.prototype.verbose=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return vp("verbose",this._namespace,e)},t})();function vp(t,e,r){var n=Gc("diag");if(n)return r.unshift(e),n[t].apply(n,Qxe([],jxe(r),!1))}var Mi;(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"})(Mi||(Mi={}));function Nxe(t,e){t<Mi.NONE?t=Mi.NONE:t>Mi.ALL&&(t=Mi.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",Mi.ERROR),warn:r("warn",Mi.WARN),info:r("info",Mi.INFO),debug:r("debug",Mi.DEBUG),verbose:r("verbose",Mi.VERBOSE)}}var Mxe=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},qxe=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))},zxe="diag",Ns=(function(){function t(){function e(i){return function(){for(var o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];var a=Gc("diag");if(a)return a[i].apply(a,qxe([],Mxe(o),!1))}}var r=this,n=function(i,o){var s,a,l;if(o===void 0&&(o={logLevel:Mi.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=Gc("diag"),d=Nxe((a=o.logLevel)!==null&&a!==void 0?a:Mi.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 Wm("diag",d,r,!0)};r.setLogger=n,r.disable=function(){Bm(zxe,r)},r.createComponentLogger=function(i){return new Dxe(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})(),Lxe=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},Vxe=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.")},Xxe=(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=Lxe(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=Vxe(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})(),Uxe=Symbol("BaggageEntryMetadata"),Wxe=Ns.instance();function Bxe(t){return t===void 0&&(t={}),new Xxe(new Map(Object.entries(t)))}function Fxe(t){return typeof t!="string"&&(Wxe.error("Cannot create baggage metadata from unknown type: "+typeof t),t=""),{__TYPE__:Uxe,toString:function(){return t}}}function T_(t){return Symbol.for(t)}var Zxe=(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})(),dd=new Zxe,pu=(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)}})(),Yxe=(function(){function t(){}return t.prototype.createGauge=function(e,r){return o1e},t.prototype.createHistogram=function(e,r){return s1e},t.prototype.createCounter=function(e,r){return i1e},t.prototype.createUpDownCounter=function(e,r){return a1e},t.prototype.createObservableGauge=function(e,r){return c1e},t.prototype.createObservableCounter=function(e,r){return l1e},t.prototype.createObservableUpDownCounter=function(e,r){return u1e},t.prototype.addBatchObservableCallback=function(e,r){},t.prototype.removeBatchObservableCallback=function(e){},t})(),P1=(function(){function t(){}return t})(),Gxe=(function(t){pu(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.add=function(r,n){},e})(P1),Hxe=(function(t){pu(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.add=function(r,n){},e})(P1),Jxe=(function(t){pu(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.record=function(r,n){},e})(P1),Kxe=(function(t){pu(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.record=function(r,n){},e})(P1),__=(function(){function t(){}return t.prototype.addCallback=function(e){},t.prototype.removeCallback=function(e){},t})(),e1e=(function(t){pu(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(__),t1e=(function(t){pu(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(__),r1e=(function(t){pu(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(__),n1e=new Yxe,i1e=new Gxe,o1e=new Jxe,s1e=new Kxe,a1e=new Hxe,l1e=new e1e,c1e=new t1e,u1e=new r1e,d1e={get:function(t,e){if(t!=null)return t[e]},keys:function(t){return t==null?[]:Object.keys(t)}},f1e={set:function(t,e,r){t!=null&&(t[e]=r)}},p1e=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},h1e=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))},m1e=(function(){function t(){}return t.prototype.active=function(){return dd},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,h1e([n],p1e(i),!1))},t.prototype.bind=function(e,r){return r},t.prototype.enable=function(){return this},t.prototype.disable=function(){return this},t})(),g1e=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},y1e=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))},oP="context",O1e=new m1e,C1=(function(){function t(){}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalContextManager=function(e){return Wm(oP,e,Ns.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,y1e([e,r,n],g1e(o),!1))},t.prototype.bind=function(e,r){return this._getContextManager().bind(e,r)},t.prototype._getContextManager=function(){return Gc(oP)||O1e},t.prototype.disable=function(){this._getContextManager().disable(),Bm(oP,Ns.instance())},t})(),Ma;(function(t){t[t.NONE=0]="NONE",t[t.SAMPLED=1]="SAMPLED"})(Ma||(Ma={}));var eB="0000000000000000",tB="00000000000000000000000000000000",rB={traceId:tB,spanId:eB,traceFlags:Ma.NONE},uh=(function(){function t(e){e===void 0&&(e=rB),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})(),A_=T_("OpenTelemetry Context Key SPAN");function I_(t){return t.getValue(A_)||void 0}function v1e(){return I_(C1.getInstance().active())}function R_(t,e){return t.setValue(A_,e)}function b1e(t){return t.deleteValue(A_)}function x1e(t,e){return R_(t,new uh(e))}function nB(t){var e;return(e=I_(t))===null||e===void 0?void 0:e.spanContext()}var S1e=/^([0-9a-f]{32})$/i,w1e=/^[0-9a-f]{16}$/i;function iB(t){return S1e.test(t)&&t!==tB}function P1e(t){return w1e.test(t)&&t!==eB}function $1(t){return iB(t.traceId)&&P1e(t.spanId)}function C1e(t){return new uh(t)}var sP=C1.getInstance(),oB=(function(){function t(){}return t.prototype.startSpan=function(e,r,n){n===void 0&&(n=sP.active());var i=!!r?.root;if(i)return new uh;var o=n&&nB(n);return $1e(o)&&$1(o)?new uh(o):new uh},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??sP.active(),c=this.startSpan(e,o,l),u=R_(l,c);return sP.with(u,a,void 0,c)}},t})();function $1e(t){return typeof t=="object"&&typeof t.spanId=="string"&&typeof t.traceId=="string"&&typeof t.traceFlags=="number"}var k1e=new oB,E1e=(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):k1e},t})(),T1e=(function(){function t(){}return t.prototype.getTracer=function(e,r,n){return new oB},t})(),_1e=new T1e,rN=(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 E1e(this,e,r,n)},t.prototype.getDelegate=function(){var e;return(e=this._delegate)!==null&&e!==void 0?e:_1e},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})(),d0;(function(t){t[t.NOT_RECORD=0]="NOT_RECORD",t[t.RECORD=1]="RECORD",t[t.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(d0||(d0={}));var tk;(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"})(tk||(tk={}));exports.SpanStatusCode=void 0;(function(t){t[t.UNSET=0]="UNSET",t[t.OK=1]="OK",t[t.ERROR=2]="ERROR"})(exports.SpanStatusCode||(exports.SpanStatusCode={}));var Ea=C1.getInstance(),Xt=Ns.instance(),A1e=(function(){function t(){}return t.prototype.getMeter=function(e,r,n){return n1e},t})(),I1e=new A1e,aP="metrics",R1e=(function(){function t(){}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalMeterProvider=function(e){return Wm(aP,e,Ns.instance())},t.prototype.getMeterProvider=function(){return Gc(aP)||I1e},t.prototype.getMeter=function(e,r,n){return this.getMeterProvider().getMeter(e,r,n)},t.prototype.disable=function(){Bm(aP,Ns.instance())},t})(),sB=R1e.getInstance(),j1e=(function(){function t(){}return t.prototype.inject=function(e,r){},t.prototype.extract=function(e,r){return e},t.prototype.fields=function(){return[]},t})(),j_=T_("OpenTelemetry Baggage Key");function aB(t){return t.getValue(j_)||void 0}function Q1e(){return aB(C1.getInstance().active())}function D1e(t,e){return t.setValue(j_,e)}function N1e(t){return t.deleteValue(j_)}var lP="propagation",M1e=new j1e,q1e=(function(){function t(){this.createBaggage=Bxe,this.getBaggage=aB,this.getActiveBaggage=Q1e,this.setBaggage=D1e,this.deleteBaggage=N1e}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalPropagator=function(e){return Wm(lP,e,Ns.instance())},t.prototype.inject=function(e,r,n){return n===void 0&&(n=f1e),this._getGlobalPropagator().inject(e,r,n)},t.prototype.extract=function(e,r,n){return n===void 0&&(n=d1e),this._getGlobalPropagator().extract(e,r,n)},t.prototype.fields=function(){return this._getGlobalPropagator().fields()},t.prototype.disable=function(){Bm(lP,Ns.instance())},t.prototype._getGlobalPropagator=function(){return Gc(lP)||M1e},t})(),dh=q1e.getInstance(),cP="trace",z1e=(function(){function t(){this._proxyTracerProvider=new rN,this.wrapSpanContext=C1e,this.isSpanContextValid=$1,this.deleteSpan=b1e,this.getSpan=I_,this.getActiveSpan=v1e,this.getSpanContext=nB,this.setSpan=R_,this.setSpanContext=x1e}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalTracerProvider=function(e){var r=Wm(cP,this._proxyTracerProvider,Ns.instance());return r&&this._proxyTracerProvider.setDelegate(e),r},t.prototype.getTracerProvider=function(){return Gc(cP)||this._proxyTracerProvider},t.prototype.getTracer=function(e,r){return this.getTracerProvider().getTracer(e,r)},t.prototype.disable=function(){Bm(cP,Ns.instance()),this._proxyTracerProvider=new rN},t})(),gi=z1e.getInstance();const lB=T_("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function L1e(t){return t.setValue(lB,!0)}function Q_(t){return t.getValue(lB)===!0}const V1e="=",rk=";",nk=",",uP="baggage",X1e=180,U1e=4096,W1e=8192;function B1e(t){return t.reduce((e,r)=>{const n=`${e}${e!==""?nk:""}${r}`;return n.length>W1e?e:n},"")}function F1e(t){return t.getAllEntries().map(([e,r])=>{let n=`${encodeURIComponent(e)}=${encodeURIComponent(r.value)}`;return r.metadata!==void 0&&(n+=rk+r.metadata.toString()),n})}function Z1e(t){const e=t.split(rk);if(e.length<=0)return;const r=e.shift();if(!r)return;const n=r.indexOf(V1e);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=Fxe(e.join(rk))),{key:i,value:o,metadata:s}}class Y1e{inject(e,r,n){const i=dh.getBaggage(e);if(!i||Q_(e))return;const o=F1e(i).filter(a=>a.length<=U1e).slice(0,X1e),s=B1e(o);s.length>0&&n.set(r,uP,s)}extract(e,r,n){const i=n.get(r,uP),o=Array.isArray(i)?i.join(nk):i;if(!o)return e;const s={};return o.length===0||(o.split(nk).forEach(l=>{const c=Z1e(l);if(c){const u={value:c.value};c.metadata&&(u.metadata=c.metadata),s[c.key]=u}}),Object.entries(s).length===0)?e:dh.setBaggage(e,dh.createBaggage(s))}fields(){return[uP]}}function _v(t){const e={};if(typeof t!="object"||t==null)return e;for(const[r,n]of Object.entries(t)){if(!G1e(r)){Xt.warn(`Invalid attribute key: ${r}`);continue}if(!cB(n)){Xt.warn(`Invalid attribute value set for key: ${r}`);continue}Array.isArray(n)?e[r]=n.slice():e[r]=n}return e}function G1e(t){return typeof t=="string"&&t.length>0}function cB(t){return t==null?!0:Array.isArray(t)?H1e(t):uB(t)}function H1e(t){let e;for(const r of t)if(r!=null){if(!e){if(uB(r)){e=typeof r;continue}return!1}if(typeof r!==e)return!1}return!0}function uB(t){switch(typeof t){case"number":case"boolean":case"string":return!0}return!1}function J1e(){return t=>{Xt.error(K1e(t))}}function K1e(t){return typeof t=="string"?t:JSON.stringify(eSe(t))}function eSe(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 tSe=J1e();function tf(t){try{tSe(t)}catch{}}const Ad=performance,rSe="2.0.1",dP="exception.message",nSe="exception.stacktrace",fP="exception.type",iSe="service.name",ik="telemetry.sdk.language",oSe="webjs",ok="telemetry.sdk.name",sk="telemetry.sdk.version",sSe="process.runtime.name",pP={[ok]:"opentelemetry",[sSe]:"browser",[ik]:oSe,[sk]:rSe};const aSe=9,lSe=6,cSe=Math.pow(10,lSe),f0=Math.pow(10,aSe);function xd(t){const e=t/1e3,r=Math.trunc(e),n=Math.round(t%1e3*cSe);return[r,n]}function dB(){let t=Ad.timeOrigin;if(typeof t!="number"){const e=Ad;t=e.timing&&e.timing.fetchStart}return t}function uSe(t){const e=xd(dB()),r=xd(typeof t=="number"?t:Ad.now());return pB(e,r)}function dSe(t,e){let r=e[0]-t[0],n=e[1]-t[1];return n<0&&(r-=1,n+=f0),[r,n]}function fSe(t){return t[0]*f0+t[1]}function fB(t){return Array.isArray(t)&&t.length===2&&typeof t[0]=="number"&&typeof t[1]=="number"}function nN(t){return fB(t)||typeof t=="number"||t instanceof Date}function pB(t,e){const r=[t[0]+e[0],t[1]+e[1]];return r[1]>=f0&&(r[1]-=f0,r[0]+=1),r}var vs;(function(t){t[t.SUCCESS=0]="SUCCESS",t[t.FAILED=1]="FAILED"})(vs||(vs={}));class pSe{_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){Xt.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){Xt.warn(`Failed to extract with ${o.constructor.name}. Err: ${s.message}`)}return i},e)}fields(){return this._fields.slice()}}const ak="[_0-9a-z-*/]",hSe=`[a-z]${ak}{0,255}`,mSe=`[a-z0-9]${ak}{0,240}@[a-z]${ak}{0,13}`,gSe=new RegExp(`^(?:${hSe}|${mSe})$`),ySe=/^[ -~]{0,255}[!-~]$/,OSe=/,|=/;function vSe(t){return gSe.test(t)}function bSe(t){return ySe.test(t)&&!OSe.test(t)}const iN=32,xSe=512,oN=",",sN="=";class D_{_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+sN+this.get(r)),e),[]).join(oN)}_parse(e){e.length>xSe||(this._internalState=e.split(oN).reverse().reduce((r,n)=>{const i=n.trim(),o=i.indexOf(sN);if(o!==-1){const s=i.slice(0,o),a=i.slice(o+1,n.length);vSe(s)&&bSe(a)&&r.set(s,a)}return r},new Map),this._internalState.size>iN&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,iN))))}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){const e=new D_;return e._internalState=new Map(this._internalState),e}}const hP="traceparent",mP="tracestate",SSe="00",wSe="(?!ff)[\\da-f]{2}",PSe="(?![0]{32})[\\da-f]{32}",CSe="(?![0]{16})[\\da-f]{16}",$Se="[\\da-f]{2}",kSe=new RegExp(`^\\s?(${wSe})-(${PSe})-(${CSe})-(${$Se})(-.*)?\\s?$`);function ESe(t){const e=kSe.exec(t);return!e||e[1]==="00"&&e[5]?null:{traceId:e[2],spanId:e[3],traceFlags:parseInt(e[4],16)}}class TSe{inject(e,r,n){const i=gi.getSpanContext(e);if(!i||Q_(e)||!$1(i))return;const o=`${SSe}-${i.traceId}-${i.spanId}-0${Number(i.traceFlags||Ma.NONE).toString(16)}`;n.set(r,hP,o),i.traceState&&n.set(r,mP,i.traceState.serialize())}extract(e,r,n){const i=n.get(r,hP);if(!i)return e;const o=Array.isArray(i)?i[0]:i;if(typeof o!="string")return e;const s=ESe(o);if(!s)return e;s.isRemote=!0;const a=n.get(r,mP);if(a){const l=Array.isArray(a)?a.join(","):a;s.traceState=new D_(typeof l=="string"?l:void 0)}return gi.setSpanContext(e,s)}fields(){return[hP,mP]}}const _Se="[object Object]",ASe="[object Null]",ISe="[object Undefined]",RSe=Function.prototype,hB=RSe.toString,jSe=hB.call(Object),QSe=Object.getPrototypeOf,mB=Object.prototype,gB=mB.hasOwnProperty,Tc=Symbol?Symbol.toStringTag:void 0,yB=mB.toString;function aN(t){if(!DSe(t)||NSe(t)!==_Se)return!1;const e=QSe(t);if(e===null)return!0;const r=gB.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&hB.call(r)===jSe}function DSe(t){return t!=null&&typeof t=="object"}function NSe(t){return t==null?t===void 0?ISe:ASe:Tc&&Tc in Object(t)?MSe(t):qSe(t)}function MSe(t){const e=gB.call(t,Tc),r=t[Tc];let n=!1;try{t[Tc]=void 0,n=!0}catch{}const i=yB.call(t);return n&&(e?t[Tc]=r:delete t[Tc]),i}function qSe(t){return yB.call(t)}const zSe=20;function LSe(...t){let e=t.shift();const r=new WeakMap;for(;t.length>0;)e=OB(e,t.shift(),0,r);return e}function gP(t){return p0(t)?t.slice():t}function OB(t,e,r=0,n){let i;if(!(r>zSe)){if(r++,Av(t)||Av(e)||vB(e))i=gP(e);else if(p0(t)){if(i=t.slice(),p0(e))for(let o=0,s=e.length;o<s;o++)i.push(gP(e[o]));else if(bp(e)){const o=Object.keys(e);for(let s=0,a=o.length;s<a;s++){const l=o[s];i[l]=gP(e[l])}}}else if(bp(t))if(bp(e)){if(!VSe(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(Av(c))typeof c>"u"?delete i[l]:i[l]=c;else{const u=i[l],d=c;if(lN(t,l,n)||lN(e,l,n))delete i[l];else{if(bp(u)&&bp(d)){const f=n.get(u)||[],h=n.get(d)||[];f.push({obj:t,key:l}),h.push({obj:e,key:l}),n.set(u,f),n.set(d,h)}i[l]=OB(i[l],c,r,n)}}}}else i=e;return i}}function lN(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 p0(t){return Array.isArray(t)}function vB(t){return typeof t=="function"}function bp(t){return!Av(t)&&!p0(t)&&!vB(t)&&typeof t=="object"}function Av(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t>"u"||t instanceof Date||t instanceof RegExp||t===null}function VSe(t,e){return!(!aN(t)||!aN(e))}class XSe{_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 USe{_callback;_that;_isCalled=!1;_deferred=new XSe;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 WSe(){return"unknown_service"}const Wp=t=>t!==null&&typeof t=="object"&&typeof t.then=="function";class h0{_rawAttributes;_asyncAttributesPending=!1;_memoizedAttributes;static FromAttributeList(e){const r=new h0({});return r._rawAttributes=cN(e),r._asyncAttributesPending=e.filter(([n,i])=>Wp(i)).length>0,r}constructor(e){const r=e.attributes??{};this._rawAttributes=Object.entries(r).map(([n,i])=>(Wp(i)&&(this._asyncAttributesPending=!0),[n,i])),this._rawAttributes=cN(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,Wp(n)?await n:n]}this._asyncAttributesPending=!1}}get attributes(){if(this.asyncAttributesPending&&Xt.error("Accessing resource attributes before async attributes settled"),this._memoizedAttributes)return this._memoizedAttributes;const e={};for(const[r,n]of this._rawAttributes){if(Wp(n)){Xt.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:h0.FromAttributeList([...e.getRawAttributes(),...this.getRawAttributes()])}}function bB(t){return h0.FromAttributeList(Object.entries(t))}function BSe(){return bB({[iSe]:WSe(),[ik]:pP[ik],[ok]:pP[ok],[sk]:pP[sk]})}function cN(t){return t.map(([e,r])=>Wp(r)?[e,r.catch(n=>{Xt.debug("promise rejection for resource attribute: %s - %s",e,n)})]:[e,r])}const FSe="exception";class ZSe{_spanContext;kind;parentSpanContext;attributes={};links=[];events=[];startTime;resource;instrumentationScope;_droppedAttributesCount=0;_droppedEventsCount=0;_droppedLinksCount=0;name;status={code:exports.SpanStatusCode.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=Ad.now(),this._performanceOffset=r-(this._performanceStartTime+dB()),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 Xt.warn(`Invalid attribute key: ${e}`),this;if(!cB(r))return Xt.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 Xt.warn("No events allowed."),this._droppedEventsCount++,this;i!==void 0&&this.events.length>=i&&(this._droppedEventsCount===0&&Xt.debug("Dropping extra events."),this.events.shift(),this._droppedEventsCount++),nN(r)&&(nN(n)||(n=r),r=void 0);const o=_v(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"&&(Xt.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()){Xt.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=dSe(this.startTime,this.endTime),this._duration[0]<0&&(Xt.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&&Xt.warn(`Dropped ${this._droppedEventsCount} events because eventCountLimit reached`),this._spanProcessor.onEnd(this)}_getTime(e){if(typeof e=="number"&&e<=Ad.now())return uSe(e+this._performanceOffset);if(typeof e=="number")return xd(e);if(e instanceof Date)return xd(e.getTime());if(fB(e))return e;if(this._startTimeProvided)return xd(Date.now());const r=Ad.now()-this._performanceStartTime;return pB(this.startTime,xd(r))}isRecording(){return this._ended===!1}recordException(e,r){const n={};typeof e=="string"?n[dP]=e:e&&(e.code?n[fP]=e.code.toString():e.name&&(n[fP]=e.name),e.message&&(n[dP]=e.message),e.stack&&(n[nSe]=e.stack)),n[fP]||n[dP]?this.addEvent(FSe,n,r):Xt.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}}`);Xt.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?(Xt.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 rf;(function(t){t[t.NOT_RECORD=0]="NOT_RECORD",t[t.RECORD=1]="RECORD",t[t.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(rf||(rf={}));class m0{shouldSample(){return{decision:rf.NOT_RECORD}}toString(){return"AlwaysOffSampler"}}class Id{shouldSample(){return{decision:rf.RECORD_AND_SAMPLED}}toString(){return"AlwaysOnSampler"}}class bO{_root;_remoteParentSampled;_remoteParentNotSampled;_localParentSampled;_localParentNotSampled;constructor(e){this._root=e.root,this._root||(tf(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new Id),this._remoteParentSampled=e.remoteParentSampled??new Id,this._remoteParentNotSampled=e.remoteParentNotSampled??new m0,this._localParentSampled=e.localParentSampled??new Id,this._localParentNotSampled=e.localParentNotSampled??new m0}shouldSample(e,r,n,i,o,s){const a=gi.getSpanContext(e);return!a||!$1(a)?this._root.shouldSample(e,r,n,i,o,s):a.isRemote?a.traceFlags&Ma.SAMPLED?this._remoteParentSampled.shouldSample(e,r,n,i,o,s):this._remoteParentNotSampled.shouldSample(e,r,n,i,o,s):a.traceFlags&Ma.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 uN{_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:iB(r)&&this._accumulate(r)<this._upperBound?rf.RECORD_AND_SAMPLED:rf.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 dN=1;function xB(){return{sampler:SB(),forceFlushTimeoutMillis:3e4,generalLimits:{attributeValueLengthLimit:1/0,attributeCountLimit:128},spanLimits:{attributeValueLengthLimit:1/0,attributeCountLimit:128,linkCountLimit:128,eventCountLimit:128,attributePerEventCountLimit:128,attributePerLinkCountLimit:128}}}function SB(){const t="parentbased_always_on";switch(t){case"always_on":return new Id;case"always_off":return new m0;case"parentbased_always_on":return new bO({root:new Id});case"parentbased_always_off":return new bO({root:new m0});case"traceidratio":return new uN(fN());case"parentbased_traceidratio":return new bO({root:new uN(fN())});default:return Xt.error(`OTEL_TRACES_SAMPLER value "${t}" invalid, defaulting to "parentbased_always_on".`),new bO({root:new Id})}}function fN(){return Xt.error(`OTEL_TRACES_SAMPLER_ARG is blank, defaulting to ${dN}.`),dN}const YSe=128,GSe=1/0;function HSe(t){const e={sampler:SB()},r=xB(),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 JSe(t){const e=Object.assign({},t.spanLimits);return e.attributeCountLimit=t.spanLimits?.attributeCountLimit??t.generalLimits?.attributeCountLimit??void 0??void 0??YSe,e.attributeValueLengthLimit=t.spanLimits?.attributeValueLengthLimit??t.generalLimits?.attributeValueLengthLimit??void 0??void 0??GSe,Object.assign({},t,{spanLimits:e})}class KSe{_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 USe(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize&&(Xt.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&Ma.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&&Xt.debug("maxQueueSize reached, dropping spans"),this._droppedSpansCount++;return}this._droppedSpansCount>0&&(Xt.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);Ea.with(L1e(Ea.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===vs.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=>{tf(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,tf(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 ewe extends KSe{_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=>{tf(r)})},this._pageHideListener=()=>{this.forceFlush().catch(r=>{tf(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 twe=8,rwe=16;class nwe{generateTraceId=pN(rwe);generateSpanId=pN(twe)}const xO=Array(32);function pN(t){return function(){for(let r=0;r<t*2;r++)xO[r]=Math.floor(Math.random()*16)+48,xO[r]>=58&&(xO[r]+=39);return String.fromCharCode.apply(null,xO.slice(0,t*2))}}class iwe{_sampler;_generalLimits;_spanLimits;_idGenerator;instrumentationScope;_resource;_spanProcessor;constructor(e,r,n,i){const o=HSe(r);this._sampler=o.sampler,this._generalLimits=o.generalLimits,this._spanLimits=o.spanLimits,this._idGenerator=r.idGenerator||new nwe,this._resource=n,this._spanProcessor=i,this.instrumentationScope=e}startSpan(e,r={},n=Ea.active()){r.root&&(n=gi.deleteSpan(n));const i=gi.getSpan(n);if(Q_(n))return Xt.debug("Instrumentation suppressed, returning Noop Span"),gi.wrapSpanContext(rB);const o=i?.spanContext(),s=this._idGenerator.generateSpanId();let a,l,c;!o||!gi.isSpanContextValid(o)?l=this._idGenerator.generateTraceId():(l=o.traceId,c=o.traceState,a=o);const u=r.kind??tk.INTERNAL,d=(r.links??[]).map(O=>({context:O.context,attributes:_v(O.attributes)})),f=_v(r.attributes),h=this._sampler.shouldSample(n,l,e,u,f,d);c=h.traceState??c;const y=h.decision===d0.RECORD_AND_SAMPLED?Ma.SAMPLED:Ma.NONE,m={traceId:l,spanId:s,traceFlags:y,traceState:c};if(h.decision===d0.NOT_RECORD)return Xt.debug("Recording is off, propagating context in a non-recording span"),gi.wrapSpanContext(m);const g=_v(Object.assign(f,h.attributes));return new ZSe({resource:this._resource,scope:this.instrumentationScope,context:n,spanContext:m,name:e,kind:u,links:d,parentSpanContext:a,attributes:g,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??Ea.active(),c=this.startSpan(e,o,l),u=gi.setSpan(l,c);return Ea.with(u,a,void 0,c)}getGeneralLimits(){return this._generalLimits}getSpanLimits(){return this._spanLimits}}class owe{_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=>{tf(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 _c;(function(t){t[t.resolved=0]="resolved",t[t.timeout=1]="timeout",t[t.error=2]="error",t[t.unresolved=3]="unresolved"})(_c||(_c={}));class swe{_config;_tracers=new Map;_resource;_activeSpanProcessor;constructor(e={}){const r=LSe({},xB(),JSe(e));this._resource=r.resource??BSe(),this._config=Object.assign({},r,{resource:this._resource});const n=[];e.spanProcessors?.length&&n.push(...e.spanProcessors),this._activeSpanProcessor=new owe(n)}getTracer(e,r,n){const i=`${e}@${r||""}:${n?.schemaUrl||""}`;return this._tracers.has(i)||this._tracers.set(i,new iwe({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=_c.timeout},e);n.forceFlush().then(()=>{clearTimeout(s),o!==_c.timeout&&(o=_c.resolved,i(o))}).catch(a=>{clearTimeout(s),o=_c.error,i(a)})}));return new Promise((n,i)=>{Promise.all(r).then(o=>{const s=o.filter(a=>a!==_c.resolved);s.length>0?i(s):n()}).catch(o=>i([o]))})}shutdown(){return this._activeSpanProcessor.shutdown()}}class awe{_enabled=!1;_currentContext=dd;_bindFunction(e=dd,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=dd,this._enabled=!1,this}enable(){return this._enabled?this:(this._enabled=!0,this._currentContext=dd,this)}with(e,r,n,...i){const o=this._currentContext;this._currentContext=e||dd;try{return r.call(n,...i)}finally{this._currentContext=o}}}function lwe(t){if(t!==null){if(t===void 0){const e=new awe;e.enable(),Ea.setGlobalContextManager(e);return}t.enable(),Ea.setGlobalContextManager(t)}}function cwe(t){if(t!==null){if(t===void 0){dh.setGlobalPropagator(new pSe({propagators:[new TSe,new Y1e]}));return}dh.setGlobalPropagator(t)}}class uwe extends swe{constructor(e={}){super(e)}register(e={}){gi.setGlobalTracerProvider(this),cwe(e.propagator),lwe(e.contextManager)}}class dwe{_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 hN extends Error{code;name="OTLPExporterError";data;constructor(e,r,n){super(e),this.data=n,this.code=r}}function fwe(t){if(Number.isFinite(t)&&t>0)return t;throw new Error(`Configuration: timeoutMillis is invalid, expected number greater than 0 (actual: '${t}')`)}function pwe(t){if(t!=null)return()=>t}function hwe(t,e,r){return{timeoutMillis:fwe(t.timeoutMillis??e.timeoutMillis??r.timeoutMillis),concurrencyLimit:t.concurrencyLimit??e.concurrencyLimit??r.concurrencyLimit,compression:t.compression??e.compression??r.compression}}function mwe(){return{timeoutMillis:1e4,concurrencyLimit:30,compression:"none"}}class gwe{_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 ywe(t){return new gwe(t.concurrencyLimit)}function Owe(t){return Object.prototype.hasOwnProperty.call(t,"partialSuccess")}function vwe(){return{handleResponse(t){t==null||!Owe(t)||t.partialSuccess==null||Object.keys(t.partialSuccess).length===0||Xt.warn("Received Partial Success response:",JSON.stringify(t.partialSuccess))}}}class bwe{_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=Xt.createComponentLogger({namespace:"OTLPExportDelegate"})}export(e,r){if(this._diagLogger.debug("items to be sent",e),this._promiseQueue.hasReachedLimit()){r({code:vs.FAILED,error:new Error("Concurrent export limit reached")});return}const n=this._serializer.serializeRequest(e);if(n==null){r({code:vs.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:vs.SUCCESS});return}else if(i.status==="failure"&&i.error){r({code:vs.FAILED,error:i.error});return}else i.status==="retryable"?r({code:vs.FAILED,error:new hN("Export failed with retryable status")}):r({code:vs.FAILED,error:new hN("Export failed with unknown error")})},i=>r({code:vs.FAILED,error:i})))}forceFlush(){return this._promiseQueue.awaitAll()}async shutdown(){this._diagLogger.debug("shutdown started"),await this.forceFlush(),this._transport.shutdown()}}function xwe(t,e){return new bwe(t.transport,t.serializer,vwe(),t.promiseHandler,e.timeout)}function wB(t,e,r){return xwe({transport:r,serializer:e,promiseHandler:ywe(t)},{timeout:t.timeoutMillis})}function mN(t){return t>=48&&t<=57?t-48:t>=97&&t<=102?t-87:t-55}function PB(t){const e=new Uint8Array(t.length/2);let r=0;for(let n=0;n<t.length;n+=2){const i=mN(t.charCodeAt(n)),o=mN(t.charCodeAt(n+1));e[r++]=i<<4|o}return e}function CB(t){const e=BigInt(1e9);return BigInt(t[0])*e+BigInt(t[1])}function Swe(t){const e=Number(BigInt.asUintN(32,t)),r=Number(BigInt.asUintN(32,t>>BigInt(32)));return{low:e,high:r}}function wwe(t){const e=CB(t);return Swe(e)}function Pwe(t){return CB(t).toString()}const Cwe=typeof BigInt<"u"?Pwe:fSe;function gN(t){return t}function $we(t){if(t!==void 0)return PB(t)}const kwe={encodeHrTime:wwe,encodeSpanContext:PB,encodeOptionalSpanContext:$we};function Ewe(t){return t===void 0?kwe:{encodeHrTime:Cwe,encodeSpanContext:gN,encodeOptionalSpanContext:gN}}function Twe(t){return{attributes:k1(t.attributes),droppedAttributesCount:0}}function _we(t){return{name:t.name,version:t.version}}function k1(t){return Object.keys(t).map(e=>$B(e,t[e]))}function $B(t,e){return{key:t,value:kB(e)}}function kB(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(kB)}}:e==="object"&&t!=null?{kvlistValue:{values:Object.entries(t).map(([r,n])=>$B(r,n))}}:{}}function Awe(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:k1(t.attributes),droppedAttributesCount:t.droppedAttributesCount,events:t.events.map(o=>Rwe(o,e)),droppedEventsCount:t.droppedEventsCount,status:{code:n.code,message:n.message},links:t.links.map(o=>Iwe(o,e)),droppedLinksCount:t.droppedLinksCount}}function Iwe(t,e){return{attributes:t.attributes?k1(t.attributes):[],spanId:e.encodeSpanContext(t.context.spanId),traceId:e.encodeSpanContext(t.context.traceId),traceState:t.context.traceState?.serialize(),droppedAttributesCount:t.droppedAttributesCount||0}}function Rwe(t,e){return{attributes:t.attributes?k1(t.attributes):[],name:t.name,timeUnixNano:e.encodeHrTime(t.time),droppedAttributesCount:t.droppedAttributesCount||0}}function jwe(t,e){const r=Ewe(e);return{resourceSpans:Dwe(t,r)}}function Qwe(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 Dwe(t,e){const r=Qwe(t),n=[],i=r.entries();let o=i.next();for(;!o.done;){const[s,a]=o.value,l=[],c=a.values();let u=c.next();for(;!u.done;){const f=u.value;if(f.length>0){const h=f.map(y=>Awe(y,e));l.push({scope:_we(f[0].instrumentationScope),spans:h,schemaUrl:f[0].instrumentationScope.schemaUrl})}u=c.next()}const d={resource:Twe(s),scopeSpans:l,schemaUrl:void 0};n.push(d),o=i.next()}return n}const Nwe={serializeRequest:t=>{const e=jwe(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))}},Mwe=5,qwe=1e3,zwe=5e3,Lwe=1.5,yN=.2;function Vwe(){return Math.random()*(2*yN)-yN}class Xwe{_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=Mwe,s=qwe;for(;i.status==="retryable"&&o>0;){o--;const a=Math.max(Math.min(s,zwe)+Vwe(),0);s=s*Lwe;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 EB(t){return new Xwe(t.transport)}function Uwe(t){return[429,502,503,504].includes(t)}function Wwe(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 Bwe{_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?(Xt.debug("XHR success"),n({status:"success"})):i.status&&Uwe(i.status)?n({status:"retryable",retryInMillis:Wwe(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 Fwe(t){return new Bwe(t)}class Zwe{_params;constructor(e){this._params=e}send(e){return new Promise(r=>{navigator.sendBeacon(this._params.url,new Blob([e],{type:this._params.blobType}))?(Xt.debug("SendBeacon success"),r({status:"success"})):r({status:"failure",error:new Error("SendBeacon failed")})})}shutdown(){}}function Ywe(t){return new Zwe(t)}function Gwe(t,e){return wB(t,e,EB({transport:Fwe(t)}))}function Hwe(t,e){return wB(t,e,EB({transport:Ywe({url:t.url,blobType:t.headers()["Content-Type"]})}))}function Jwe(t){return()=>{const e={};return Object.entries(t?.()??{}).forEach(([r,n])=>{typeof n<"u"?e[r]=String(n):Xt.warn(`Header "${r}" has invalid value (${n}) and will be ignored`)}),e}}function Kwe(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 ePe(t){if(t!=null)try{return new URL(t),t}catch{throw new Error(`Configuration: Could not parse user-provided export URL: '${t}'`)}}function tPe(t,e,r){return{...hwe(t,e,r),headers:Kwe(Jwe(t.headers),e.headers,r.headers),url:ePe(t.url)??e.url??r.url,agentOptions:t.agentOptions??e.agentOptions??r.agentOptions}}function rPe(t,e){return{...mwe(),headers:()=>t,url:"http://localhost:4318/"+e,agentOptions:{keepAlive:!0}}}function nPe(t,e,r){return tPe({url:t.url,timeoutMillis:t.timeoutMillis,headers:pwe(t.headers),concurrencyLimit:t.concurrencyLimit},{},rPe(r,e))}function iPe(t,e,r,n){const i=!!t.headers||typeof navigator.sendBeacon!="function",o=nPe(t,r,n);return i?Gwe(o,e):Hwe(o,e)}class oPe extends dwe{constructor(e={}){super(iPe(e,Nwe,"v1/traces",{"Content-Type":"application/json"}))}}const sPe="service.name",aPe="service.version";class TB{emit(e){}}const lPe=new TB;class cPe{getLogger(e,r,n){return new TB}}const _B=new cPe;class uPe{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):lPe}}class ON{getLogger(e,r,n){var i;return(i=this.getDelegateLogger(e,r,n))!==null&&i!==void 0?i:new uPe(this,e,r,n)}getDelegate(){var e;return(e=this._delegate)!==null&&e!==void 0?e:_B}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 dPe=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof global=="object"?global:{},SO=Symbol.for("io.opentelemetry.js.api.logs"),xp=dPe;function fPe(t,e,r){return n=>n===t?e:r}const vN=1;class N_{constructor(){this._proxyLoggerProvider=new ON}static getInstance(){return this._instance||(this._instance=new N_),this._instance}setGlobalLoggerProvider(e){return xp[SO]?this.getLoggerProvider():(xp[SO]=fPe(vN,e,_B),this._proxyLoggerProvider.setDelegate(e),e)}getLoggerProvider(){var e,r;return(r=(e=xp[SO])===null||e===void 0?void 0:e.call(xp,vN))!==null&&r!==void 0?r:this._proxyLoggerProvider}getLogger(e,r,n){return this.getLoggerProvider().getLogger(e,r,n)}disable(){delete xp[SO],this._proxyLoggerProvider=new ON}}const AB=N_.getInstance();function pPe(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 hPe(t){t.forEach(e=>e.disable())}function mPe(t){const e=t.tracerProvider||gi.getTracerProvider(),r=t.meterProvider||sB.getMeterProvider(),n=t.loggerProvider||AB.getLoggerProvider(),i=t.instrumentations?.flat()??[];return pPe(i,e,r,n),()=>{hPe(i)}}let Wi=console.error.bind(console);function Sp(t,e,r){const n=!!t[e]&&Object.prototype.propertyIsEnumerable.call(t,e);Object.defineProperty(t,e,{configurable:!0,enumerable:n,writable:!0,value:r})}const IB=(t,e,r)=>{if(!t||!t[e]){Wi("no original function "+String(e)+" to wrap");return}if(!r){Wi("no wrapper function"),Wi(new Error().stack);return}const n=t[e];if(typeof n!="function"||typeof r!="function"){Wi("original object and wrapper must be functions");return}const i=r(n,e);return Sp(i,"__original",n),Sp(i,"__unwrap",()=>{t[e]===i&&Sp(t,e,n)}),Sp(i,"__wrapped",!0),Sp(t,e,i),i},gPe=(t,e,r)=>{if(t)Array.isArray(t)||(t=[t]);else{Wi("must provide one or more modules to patch"),Wi(new Error().stack);return}if(!(e&&Array.isArray(e))){Wi("must provide one or more functions to wrap on modules");return}t.forEach(n=>{e.forEach(i=>{IB(n,i,r)})})},RB=(t,e)=>{if(!t||!t[e]){Wi("no function to unwrap."),Wi(new Error().stack);return}const r=t[e];if(!r.__unwrap)Wi("no original to unwrap to -- has "+String(e)+" already been unwrapped?");else{r.__unwrap();return}},yPe=(t,e)=>{if(t)Array.isArray(t)||(t=[t]);else{Wi("must provide one or more modules to patch"),Wi(new Error().stack);return}if(!(e&&Array.isArray(e))){Wi("must provide one or more functions to unwrap on modules");return}t.forEach(r=>{e.forEach(n=>{RB(r,n)})})};class OPe{instrumentationName;instrumentationVersion;_config={};_tracer;_meter;_logger;_diag;constructor(e,r,n){this.instrumentationName=e,this.instrumentationVersion=r,this.setConfig(n),this._diag=Xt.createComponentLogger({namespace:e}),this._tracer=gi.getTracer(e,r),this._meter=sB.getMeter(e,r),this._logger=AB.getLogger(e,r),this._updateMetricInstruments()}_wrap=IB;_unwrap=RB;_massWrap=gPe;_massUnwrap=yPe;get meter(){return this._meter}setMeterProvider(e){this._meter=e.getMeter(this.instrumentationName,this.instrumentationVersion),this._updateMetricInstruments()}get logger(){return this._logger}setLoggerProvider(e){this._logger=e.getLogger(this.instrumentationName,this.instrumentationVersion)}getModuleDefinitions(){const e=this.init()??[];return Array.isArray(e)?e:[e]}_updateMetricInstruments(){}getConfig(){return this._config}setConfig(e){this._config={enabled:!0,...e}}setTracerProvider(e){this._tracer=e.getTracer(this.instrumentationName,this.instrumentationVersion)}get tracer(){return this._tracer}_runSpanCustomizationHook(e,r,n,i){if(e)try{e(n,i)}catch(o){this._diag.error("Error running span customization hook due to exception in handler",{triggerName:r},o)}}}class vPe extends OPe{constructor(e,r,n){super(e,r,n),this._config.enabled&&this.enable()}}class bPe{span=void 0;constructor(e){this.span=e}get context(){return this.span?.context}error(e){this.span&&(this.span.setStatus(exports.SpanStatusCode.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(exports.SpanStatusCode.OK),this.span.end())}}class xPe{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":u0(),"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"&&!Array.isArray(e.data))for(const[o,s]of Object.entries(e.data)){const a=o.replace(/([A-Z])/g,"_$1").toLowerCase();if(s!==void 0)if(typeof s=="object"&&s!==null&&!Array.isArray(s))for(const[l,c]of Object.entries(s))c!==void 0&&(i[`cloudevents.event_data.${a}.${l}`]=c);else i[`cloudevents.event_data.${a}`]=s}if(e.data&&Array.isArray(e.data)){if(e.data.some(s=>s&&typeof s=="object"&&"object"in s)){const s=[],a=[];for(const l of e.data){if(!l||typeof l!="object")continue;const c=l.object;if(!c||typeof c!="string")continue;const u=l,d=a.find(f=>f.object===c);if(d){s.push(d,u);const f=a.indexOf(d);a.splice(f,1)}else s.some(h=>h.object===c)||a.push(u)}for(let l=0;l<s.length;l++){const c=s[l],u=l===0?"after.":"before.",d=`${c.object}.`;for(const[f,h]of Object.entries(c))if(h!==void 0){const y=f.replace(/([A-Z])/g,"_$1").toLowerCase();i[`cloudevents.event_data.${u}${d}${y}`]=h}}for(const l of a){const c=`${l.object}.`;for(const[u,d]of Object.entries(l))if(d!==void 0){const f=u.replace(/([A-Z])/g,"_$1").toLowerCase();i[`cloudevents.event_data.${c}${f}`]=d}}}else for(const s of e.data)if(s&&typeof s=="object"){for(const[a,l]of Object.entries(s))if(l!==void 0){const c=a.replace(/([A-Z])/g,"_$1").toLowerCase();i[`cloudevents.event_data.${c}`]=l}}}if("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=gi.setSpan(Ea.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);return}}startStepSpan(e){try{if(!this.tracer)return;const r=Ea.active(),n=e.time?new Date(e.time):new Date,i=this.tracer.startSpan(`event.${e.type}`,{attributes:this.processAttributes(e,n)},r),o=gi.setSpan(r,i);return{end:()=>i.end(),setAttribute:(s,a)=>{i.setAttribute(`cloudevents.event_data.${this.getKeySnakeValue(s)}`,a)},setStatus:(s,a)=>i.setStatus({code:s,message:a}),recordException:s=>i.recordException(s),context:o}}catch(r){this.config?.isProd||console.error("Event reporting failed:",r);return}}traceStep(e){const r=this.startStepSpan(e);if(r)return new bPe(r)}async forceFlush(){return this.tracerProvider?.forceFlush()}async shutdown(){return this.tracerProvider?.shutdown()}getKeySnakeValue=e=>e.replace(/([A-Z])/g,"_$1").toLowerCase()}class SPe extends xPe{tracerProvider=null;tracer=null;initialized=!1;constructor(){super()}initTracer(e){if(!e.collectorUrl&&!e.collectorTraceUrl)return;const r=`ses_${u0()}`,n=bB({[sPe]:e.serviceName,[aPe]:e.serviceVersion,session_id:r}),i=e.collectorTraceUrl||`${e.collectorUrl}/v1/traces`;this.tracerProvider=new uwe({resource:n,spanProcessors:[new ewe(new oPe({url:i,headers:{}}))]}),this.tracer=this.tracerProvider.getTracer(e.tracerName),this.tracerProvider.register(),mPe({instrumentations:e.instrumentations??[]}),this.initialized=!0}}class wa extends vPe{sendErrorEvent;originalConsoleError;constructor(e,r){super("errors","1.0",e||{}),this.sendErrorEvent=r}static toErrorEvent(e,r){return{type:"error",payload:{handler:r,errorType:wa.getErrorType(e),message:wa.getErrorMessage(e),stack:wa.getErrorStack(e)}}}enable(){window.addEventListener("error",this.onError),window.addEventListener("unhandledrejection",this.onUnhandledRejection),this.wrapConsoleError()}disable(){window.removeEventListener("error",this.onError),window.removeEventListener("unhandledrejection",this.onUnhandledRejection),this.unwrapConsoleError()}init(){}static getErrorMessage(e){return e?(typeof e=="object"&&"message"in e?String(e.message):String(e)).trim():void 0}static getErrorStack(e){if(!e||typeof e!="object"||!("stack"in e)||!e.stack)return;const r=String(e.stack);return r.length>4096?r.substring(0,4096):r}static getErrorType(e){return!e||typeof e!="object"?typeof e:"name"in e?String(e.name):"constructor"in e&&"name"in e.constructor?String(e.constructor.name):"Error"}static combineConsoleErrorArgs(e){const r=e.findIndex(i=>i instanceof Error),n=e.filter((i,o)=>o!==r).map(i=>String(i)).join(" ");if(r===-1)return n;{const i=e[r];return n&&(i.message=`${i.message} ${n}`),i}}onError=e=>{this.sendError(e.error,"window.onerror")};onUnhandledRejection=e=>{this.sendError(e.reason,"window.onunhandledrejection")};wrapConsoleError(){this.originalConsoleError=console.error,console.error=(...e)=>{try{const r=wa.combineConsoleErrorArgs(e);this.sendError(r,"console.error")}catch(r){process.env.NODE_ENV!=="production"&&this.originalConsoleError?.call(console,"Error reporting failed:",r)}this.originalConsoleError?.apply(console,e)}}unwrapConsoleError(){this.originalConsoleError&&(console.error=this.originalConsoleError,this.originalConsoleError=void 0)}sendError(e,r){this.sendErrorEvent(wa.toErrorEvent(e,r))}}class wPe{config=null;initialized=!1;useCloudEventData;otelClient;tracer;constructor(){this.useCloudEventData=()=>({organization:{id:"",slug:""},project:{id:"",slug:""},productType:"",sourceDetails:{user:"Anonymous",object:"user",uri:""},request:{source:""}}),this.otelClient=new SPe,this.tracer={traceStep:(e,r)=>{const n=this.constructCloudEvent(e,r);return this.otelClient.traceStep(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.enableErrorInstrumentation===!0?[new wa(void 0,r=>{this.sendErrorMessage(r.payload)})]:[],...e.otel.instrumentations||[]]}))}startSpan(e,r,n){if(this.config?.disabled)return;const i=this.constructCloudEvent(e,r);return this.otelClient.startSpan(i,n)}constructCloudEvent(e,r){const n=this.useCloudEventData();return{id:`evt_${u0()}`,type:e,source:n.request.source||"",specversion:"1.0",datacontenttype:"application/json",time:new Date().toISOString(),data:r,origin:n.origin||"ui",sourceDetails:{id:n.sourceDetails.user||`usr_${u0()}`,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()}shutdown(){return this.config?.disabled?Promise.resolve():this.otelClient.shutdown()}sendError(e,r){this.config?.disabled||this.send(wa.toErrorEvent(e,r).type,wa.toErrorEvent(e,r).payload)}sendTabChangeMessage(){this.send("tab.change")}sendButtonClickMessage(){this.send("button.click")}sendChangeMessage(){this.send("change")}sendContentCopyMessage(){this.send("content.copy")}sendRequestSendMessage(){this.send("request.send")}sendTokenGenerateMessage(){this.send("token.generate")}sendAppLifecycleMessage(){this.send("app.lifecycle")}sendEnvironmentManagementMessage(){this.send("environment.management")}sendServerManagementMessage(){this.send("server.management")}sendInputManagementMessage(){this.send("input.management")}sendNodeManagementMessage(){this.send("node.management")}sendHistoryManagementMessage(){this.send("history.management")}sendCredentialManagementMessage(){this.send("credential.management")}sendPanelToggleMessage(){this.send("panel.toggle")}sendWorkflowRunClickMessage(e){this.send("workflow.run.click",e)}sendWorkflowRunResultMessage(){this.send("workflow.run.result")}sendStorageReadMessage(){this.send("storage.read")}sendStorageLoadUserStateMessage(){this.send("storage.loadUserState")}sendStorageDetectFilesMessage(){this.send("storage.detectFiles")}sendStorageLoadApisMessage(){this.send("storage.loadApis")}sendStorageParseApisMessage(){this.send("storage.parseApis")}sendStorageParseCollectionsMessage(){this.send("storage.parseCollections")}sendUpdaterCheckMessage(){this.send("updater.check")}sendUpdaterDownloadMessage(){this.send("updater.download")}sendUpdaterInstallMessage(){this.send("updater.install")}sendUpdaterProcessMessage(){this.send("updater.process")}sendErrorMessage(e){this.send("error",e)}sendCodeEditorSearchMessage(e){this.send("code_editor.search",e)}}const E1=["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"],PPe="https://cors.redocly.com/";function CPe(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function bN(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 xN(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?bN(Object(r),!0).forEach(function(n){CPe(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):bN(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function wn(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var SN=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})(),yP=function(){return Math.random().toString(36).substring(7).split("").join(".")},Dl={INIT:"@@redux/INIT"+yP(),REPLACE:"@@redux/REPLACE"+yP(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+yP()}};function jB(t){if(typeof t!="object"||t===null)return!1;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function $Pe(t){if(t===void 0)return"undefined";if(t===null)return"null";var e=typeof t;switch(e){case"boolean":case"string":case"number":case"symbol":case"function":return e}if(Array.isArray(t))return"array";if(TPe(t))return"date";if(EPe(t))return"error";var r=kPe(t);switch(r){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return r}return e.slice(8,-1).toLowerCase().replace(/\s/g,"")}function kPe(t){return typeof t.constructor=="function"?t.constructor.name:null}function EPe(t){return t instanceof Error||typeof t.message=="string"&&t.constructor&&typeof t.constructor.stackTraceLimit=="number"}function TPe(t){return t instanceof Date?!0:typeof t.toDateString=="function"&&typeof t.getDate=="function"&&typeof t.setDate=="function"}function yl(t){var e=typeof t;return process.env.NODE_ENV!=="production"&&(e=$Pe(t)),e}function T1(t,e,r){var n;if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?wn(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(process.env.NODE_ENV==="production"?wn(1):"Expected the enhancer to be a function. Instead, received: '"+yl(r)+"'");return r(T1)(t,e)}if(typeof t!="function")throw new Error(process.env.NODE_ENV==="production"?wn(2):"Expected the root reducer to be a function. Instead, received: '"+yl(t)+"'");var i=t,o=e,s=[],a=s,l=!1;function c(){a===s&&(a=s.slice())}function u(){if(l)throw new Error(process.env.NODE_ENV==="production"?wn(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return o}function d(m){if(typeof m!="function")throw new Error(process.env.NODE_ENV==="production"?wn(4):"Expected the listener to be a function. Instead, received: '"+yl(m)+"'");if(l)throw new Error(process.env.NODE_ENV==="production"?wn(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");var g=!0;return c(),a.push(m),function(){if(g){if(l)throw new Error(process.env.NODE_ENV==="production"?wn(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");g=!1,c();var O=a.indexOf(m);a.splice(O,1),s=null}}}function f(m){if(!jB(m))throw new Error(process.env.NODE_ENV==="production"?wn(7):"Actions must be plain objects. Instead, the actual type was: '"+yl(m)+"'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.");if(typeof m.type>"u")throw new Error(process.env.NODE_ENV==="production"?wn(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(l)throw new Error(process.env.NODE_ENV==="production"?wn(9):"Reducers may not dispatch actions.");try{l=!0,o=i(o,m)}finally{l=!1}for(var g=s=a,v=0;v<g.length;v++){var O=g[v];O()}return m}function h(m){if(typeof m!="function")throw new Error(process.env.NODE_ENV==="production"?wn(10):"Expected the nextReducer to be a function. Instead, received: '"+yl(m));i=m,f({type:Dl.REPLACE})}function y(){var m,g=d;return m={subscribe:function(O){if(typeof O!="object"||O===null)throw new Error(process.env.NODE_ENV==="production"?wn(11):"Expected the observer to be an object. Instead, received: '"+yl(O)+"'");function b(){O.next&&O.next(u())}b();var S=g(b);return{unsubscribe:S}}},m[SN]=function(){return this},m}return f({type:Dl.INIT}),n={dispatch:f,subscribe:d,getState:u,replaceReducer:h},n[SN]=y,n}var _Pe=T1;function lk(t){typeof console<"u"&&typeof console.error=="function"&&console.error(t);try{throw new Error(t)}catch{}}function APe(t,e,r,n){var i=Object.keys(e),o=r&&r.type===Dl.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(i.length===0)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!jB(t))return"The "+o+' has unexpected type of "'+yl(t)+'". Expected argument to be an object with the following '+('keys: "'+i.join('", "')+'"');var s=Object.keys(t).filter(function(a){return!e.hasOwnProperty(a)&&!n[a]});if(s.forEach(function(a){n[a]=!0}),!(r&&r.type===Dl.REPLACE)&&s.length>0)return"Unexpected "+(s.length>1?"keys":"key")+" "+('"'+s.join('", "')+'" found in '+o+". ")+"Expected to find one of the known reducer keys instead: "+('"'+i.join('", "')+'". Unexpected keys will be ignored.')}function IPe(t){Object.keys(t).forEach(function(e){var r=t[e],n=r(void 0,{type:Dl.INIT});if(typeof n>"u")throw new Error(process.env.NODE_ENV==="production"?wn(12):'The slice reducer for key "'+e+`" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`);if(typeof r(void 0,{type:Dl.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(process.env.NODE_ENV==="production"?wn(13):'The slice reducer for key "'+e+'" returned undefined when probed with a random type. '+("Don't try to handle '"+Dl.INIT+`' or other actions in "redux/*" `)+"namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.")})}function RPe(t){for(var e=Object.keys(t),r={},n=0;n<e.length;n++){var i=e[n];process.env.NODE_ENV!=="production"&&typeof t[i]>"u"&&lk('No reducer provided for key "'+i+'"'),typeof t[i]=="function"&&(r[i]=t[i])}var o=Object.keys(r),s;process.env.NODE_ENV!=="production"&&(s={});var a;try{IPe(r)}catch(l){a=l}return function(c,u){if(c===void 0&&(c={}),a)throw a;if(process.env.NODE_ENV!=="production"){var d=APe(c,r,u,s);d&&lk(d)}for(var f=!1,h={},y=0;y<o.length;y++){var m=o[y],g=r[m],v=c[m],O=g(v,u);if(typeof O>"u"){var b=u&&u.type;throw new Error(process.env.NODE_ENV==="production"?wn(14):"When called with an action of type "+(b?'"'+String(b)+'"':"(unknown type)")+', the slice reducer for key "'+m+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.')}h[m]=O,f=f||O!==v}return f=f||o.length!==Object.keys(c).length,f?h:c}}function wN(t,e){return function(){return e(t.apply(this,arguments))}}function jPe(t,e){if(typeof t=="function")return wN(t,e);if(typeof t!="object"||t===null)throw new Error(process.env.NODE_ENV==="production"?wn(16):"bindActionCreators expected an object or a function, but instead received: '"+yl(t)+`'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?`);var r={};for(var n in t){var i=t[n];typeof i=="function"&&(r[n]=wN(i,e))}return r}function QB(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return e.length===0?function(n){return n}:e.length===1?e[0]:e.reduce(function(n,i){return function(){return n(i.apply(void 0,arguments))}})}function QPe(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(n){return function(){var i=n.apply(void 0,arguments),o=function(){throw new Error(process.env.NODE_ENV==="production"?wn(15):"Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},s={getState:i.getState,dispatch:function(){return o.apply(void 0,arguments)}},a=e.map(function(l){return l(s)});return o=QB.apply(void 0,a)(i.dispatch),xN(xN({},i),{},{dispatch:o})}}}function PN(){}process.env.NODE_ENV!=="production"&&typeof PN.name=="string"&&PN.name!=="isCrushed"&&lk('You are currently using minified code outside of NODE_ENV === "production". This means that you are running a slower development build of Redux. You can use loose-envify (https://github.com/zertosh/loose-envify) for browserify or setting mode to production in webpack (https://webpack.js.org/concepts/mode/) to ensure you have the correct code for your production build.');var DPe=Object.freeze({__proto__:null,__DO_NOT_USE__ActionTypes:Dl,applyMiddleware:QPe,bindActionCreators:jPe,combineReducers:RPe,compose:QB,createStore:T1,legacy_createStore:_Pe});function NPe(t){var e=t.default;if(typeof e=="function"){var r=function(){return e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(n){var i=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return t[n]}})}),r}var MPe=NPe(DPe);MPe.compose;var qPe=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function zPe(t,e,r){var n=!1,i=!1,o=T1(function(a,l){if(!i){var c=function(g){return Array.isArray(g)&&g.findIndex(function(v){return typeof v!="string"&&typeof v!="number"})===-1};if(l.type.startsWith("SET")){var u=function(g){try{n=!0,"value"in l?g.set(l.value):g.set(ft)}finally{n=!1}};if(l.path){if(c(l.path)){l.path.length===0&&u(t);for(var d=t,f=!0,h=0,y=l.path;h<y.length;h++){var m=y[h];d[m]?d=d[m]:f=!1}f&&u(d)}}else u(t)}else l.type==="BREAKPOINT"&&r()}return t.promised||t.error?ft:t.get({noproxy:!0})},qPe({name:"".concat(window.location.hostname,": ").concat(e),trace:!0,traceLimit:16,autoPause:!0,shouldHotReload:!1,features:{persist:!0,pause:!0,lock:!1,export:"custom",import:"custom",jump:!1,skip:!1,reorder:!1,dispatch:!0,test:!1}})),s=function(a,l){if(n)l&&l();else try{i=!0,o.dispatch(a)}finally{i=!1}};return s}function LPe(t){return function(){var e,r,n=!1;return{onInit:function(i,o){if(!(typeof window>"u"||!("__REDUX_DEVTOOLS_EXTENSION__"in window))){if(t?.key===void 0){if(o.identifier===void 0)throw Error("State is missing Identifiable extension or Devtools key option");e=o.identifier(i)}else e=t.key;r=zPe(i,e,function(){n=!n}),i.promise||r?.({type:"CREATE",state:i.get({noproxy:!0,stealth:!0})})}},onSet:function(i,o){if(r?.({type:"SET [".concat(i.path.join("/"),"]"),state:i.get({noproxy:!0,stealth:!0}),descriptor:o}),n)debugger},onDestroy:function(){r?.({type:"DESTROY"})}}}}var zt=(t=>(t.Normal="Normal",t.Edit="Edit",t.Draft="Draft",t))(zt||{});const Fm="default",DB=[{name:Fm,inputs:[],servers:[],state:zt.Normal}],NB={activeTabIdx:0,tabs:[]};var ys=(t=>(t.Idle="idle",t.Loading="loading",t.Success="success",t.Error="error",t))(ys||{});function Ta(t){const e=new WeakMap;function r(n){if(typeof n!="object"||n===null)return n;if(e.has(n))return e.get(n);const i=Array.isArray(n)?[]:{};e.set(n,i);for(const o in n)Object.prototype.hasOwnProperty.call(n,o)&&(i[o]=r(n[o]));return i}return r(t)}function ck(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return!1;for(let i=0;i<t.length;i++)if(!ck(t[i],e[i]))return!1;return!0}const r=Object.keys(t),n=Object.keys(e);if(r.length!==n.length)return!1;for(let i=0;i<r.length;i++){const o=r[i];if(!Object.prototype.hasOwnProperty.call(e,o)||!ck(t[o],e[o]))return!1}return!0}return t!==t&&e!==e}function CN(t){return Object.keys(t).forEach(e=>{t[e]===void 0&&delete t[e]}),t}function Ya(){return!!window?.__TAURI__}async function In(t,e={},r){return window.__TAURI_INTERNALS__.invoke(t,e,r)}async function $N(t,e,r){const n=[],i=[];for(const o of t){const s=Promise.resolve().then(()=>r(o,t));if(n.push(s),e<=t.length){const a=s.then(()=>i.splice(i.indexOf(a),1));i.push(a),i.length>=e&&await Promise.race(i)}}return Promise.all(n)}const ii={FS:"fs",WEB:"web"};var nf;(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"})(nf||(nf={}));async function MB(){return In("plugin:path|resolve_directory",{directory:nf.AppData})}async function qB(){return In("plugin:path|resolve_directory",{directory:nf.Desktop})}function M_(){return window.__TAURI_INTERNALS__.plugins.path.sep}async function zB(...t){return In("plugin:path|resolve",{paths:t})}async function Rd(...t){return In("plugin:path|join",{paths:t})}async function LB(t){return In("plugin:path|dirname",{path:t})}async function VB(t){return In("plugin:path|extname",{path:t})}async function q_(t,e){return In("plugin:path|basename",{path:t,ext:e})}async function XB(t){return In("plugin:path|is_absolute",{path:t})}const VPe=Object.freeze(Object.defineProperty({__proto__:null,get BaseDirectory(){return nf},appDataDir:MB,basename:q_,desktopDir:qB,dirname:LB,extname:VB,isAbsolute:XB,join:Rd,resolve:zB,sep:M_},Symbol.toStringTag,{value:"Module"}));var uk;(function(t){t[t.Start=0]="Start",t[t.Current=1]="Current",t[t.End=2]="End"})(uk||(uk={}));async function dk(t,e){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");await In("plugin:fs|mkdir",{path:t instanceof URL?t.toString():t,options:e})}async function z_(t,e){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");return await In("plugin:fs|read_dir",{path:t instanceof URL?t.toString():t,options:e})}async function UB(t,e){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");const r=await In("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 _1(t,e){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");return await In("plugin:fs|read_text_file",{path:t instanceof URL?t.toString():t,options:e})}async function WB(t,e){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");await In("plugin:fs|remove",{path:t instanceof URL?t.toString():t,options:e})}async function BB(t,e,r){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");await In("plugin:fs|write_text_file",{path:t instanceof URL?t.toString():t,data:e,options:r})}async function L_(t,e){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");return await In("plugin:fs|exists",{path:t instanceof URL?t.toString():t,options:e})}const XPe=Object.freeze(Object.defineProperty({__proto__:null,get BaseDirectory(){return nf},get SeekMode(){return uk},exists:L_,mkdir:dk,readDir:z_,readFile:UB,readTextFile:_1,remove:WB,writeTextFile:BB},Symbol.toStringTag,{value:"Module"}));class cr{static utils=null;static async getUtils(){return cr.utils||(cr.utils=Ya()?await Promise.resolve().then(()=>require("./replay-tauri-path-Be0EEZaU.js")):await Promise.resolve().then(()=>Pie)),cr.utils}static async dirname(e){return(await cr.getUtils()).dirname(e)}static async join(...e){return(await cr.getUtils()).join(...e)}static async resolve(e){return(await cr.getUtils()).resolve(e)}static async isAbsolute(e){return(await cr.getUtils()).isAbsolute(e)}static async relative(e,r){return(await cr.getUtils()).relative(e,r)}static async extname(e){return(await cr.getUtils()).extname(e)}}const UPe=new Set(["node_modules"]);class kN{constructor(e){this.baseDir=e,this.initializeDirectory(e)}async initializeDirectory(e){await dk(e,{recursive:!0})}async ls(e){const r=await this.getFullPath(e);return this.getDirEntryFilesRecursively(r)}async getDirEntryFilesRecursively(e){try{const r=[],n=await z_(e);for(const i of n)if(i.isDirectory){if(UPe.has(i.name))continue;const o=await Rd(e,i.name),s=await this.getDirEntryFilesRecursively(o);r.push(...s)}else{const o=await Rd(e,i.name),s=await cr.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 _1(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=M_(),o=n.split(i).slice(0,-1).join(i);await dk(o,{recursive:!0}),await BB(n,r)}async remove(e){const r=await this.getFullPath(e);try{await WB(r)}catch(n){!n.includes("No such file or directory")&&!n.includes("forbidden path")&&console.error(n)}}async getFullPath(e){return await Rd(this.baseDir,e??"")}}class WPe{baseDir="";async ls(e=""){return[]}async get(e){return null}async set(e,r){}async remove(e){}}class BPe{constructor(e){this.projectId=e}async get(){const e=this.getKey();return localStorage.getItem(e)??null}async set(e){const r=this.getKey();localStorage.setItem(r,e)}async remove(){const e=this.getKey();localStorage.removeItem(e)}getKey(){return`replay:secrets:${this.projectId}`}}class FB{constructor(e){this.storage=e}itemIds=[];async getAbsolutePath(e){return await cr.resolve(await cr.join(this.storage.baseDir,"/",e))}async parseMany(e,r){return(await Promise.all(e.map(async i=>{try{return await this.parse(i,r)}catch(o){return console.error(`Error parsing from ${i.type} ${i.uri}:`,o),null}}))).filter(i=>i!==null)}setItemIds(e){this.itemIds=e}async write(e){e.state===zt.Draft||e.srcType!==ii.FS||await this.storage.set(e.id,await this.stringify(e))}async remove(e){await this.storage.remove(e)}async updateRoot(e,r){const n=e.actions;if(n){for(const o in n){const s=parseInt(o);switch(n[o]){case"D":await this.remove(this.itemIds[s]);break;case"I":case"U":await this.write(r[s]);break}}return}const i=this.itemIds.filter(o=>!r.some(s=>s.id===o));await Promise.all([...r.map(o=>this.write(o)),...i.map(o=>this.remove(o))])}async update(e,r){const i={path:e.path.slice(1),actions:e.actions};if(i.path.length===0&&await this.updateRoot(i,r),i.path.length>0){const o=i.path[0];i.path.length===1&&i.actions&&i.actions.id==="U"&&await this.remove(this.itemIds[o]),i.path[1]&&i.path[1]==="id"&&await this.remove(this.itemIds[o]),await this.write(r[o])}this.itemIds=r.map(o=>o.id)}}class FPe extends FB{parse(e){return{...e.content,id:e.uri,srcType:e.type}}async stringify(e){const{id:r,srcType:n,...i}=e;return await cr.extname(r)===".json"?JSON.stringify(i,null,2):Na.dump(i)}}var zn=(t=>(t.SIMPLE="simple",t.REGEX="regex",t.JSONPATH="jsonpath",t.XPATH="xpath",t))(zn||{});function ZPe(t){return typeof t=="function"?t:Array.isArray(t)?e=>{for(const r of t)if(typeof r=="string"&&e===r||r instanceof RegExp&&r.test(e))return!0}:()=>!1}const YPe=`
|
|
343
|
+
`;function k_({input:t,onSave:e,onCancel:r,...n}){const[i,o]=E.useState(!!t.isSecret),s=({name:a,value:l})=>{e({...t,name:a,value:l,isSecret:i})};return p.jsx(J6,{variable:t,onSave:s,onCancel:r,maskValue:i,...n,children:p.jsx(Zh,{children:p.jsx(H6,{value:i,onChange:a=>o(a),title:"Make it secret"})})})}const ek=()=>({name:"",value:"",isSecret:!1}),Er=t=>s7+"$inputs."+t+NT,K6=(t,e)=>e.inputs.find(r=>r.get().name===t.match(`^${Xx}$`)?.[1]);function Sxe({environments:t,activeEnvironmentId:e}){return t.get().find(n=>n.name===e.get())?.inputs||[]}function ul(t){const e=new RegExp(Xx,"g"),r=new Set;if(!t)return r;for(const[n,i,o]of t.matchAll(e)){const s=i||o;s&&r.add(s)}return r}function w1(t){const e=/^\{?\$inputs\.([^\}\s]+)\}?$/,r=t.match(e);return r?r[1]:null}function Tv(t){const e=new Error(t);return e.source="ulid",e}const E_="0123456789ABCDEFGHJKMNPQRSTVWXYZ",ch=E_.length,eN=Math.pow(2,48)-1,wxe=10,Pxe=16;function Cxe(t){let e=Math.floor(t()*ch);return e===ch&&(e=ch-1),E_.charAt(e)}function $xe(t,e){if(isNaN(t))throw new Error(t+" must be a number");if(t>eN)throw Tv("cannot encode time greater than "+eN);if(t<0)throw Tv("time must be positive");if(Number.isInteger(Number(t))===!1)throw Tv("time must be an integer");let r,n="";for(;e>0;e--)r=t%ch,n=E_.charAt(r)+n,t=(t-r)/ch;return n}function kxe(t,e){let r="";for(;t>0;t--)r=Cxe(e)+r;return r}function Exe(t=!1,e){e||(e=typeof window<"u"?window:null);const r=e&&(e.crypto||e.msCrypto);if(r)return()=>{const n=new Uint8Array(1);return r.getRandomValues(n),n[0]/255};try{const n=require("crypto");return()=>n.randomBytes(1).readUInt8()/255}catch{}if(t){try{console.error("secure crypto unusable, falling back to insecure Math.random()!")}catch{}return()=>Math.random()}throw Tv("secure crypto unusable, insecure Math.random not allowed")}function Txe(t){return t||(t=Exe()),function(r){return isNaN(r)&&(r=Date.now()),$xe(r,wxe)+kxe(Pxe,t)}}const u0=Txe();var _xe=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof global=="object"?global:{},Dc="1.9.0",tN=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;function Axe(t){var e=new Set([t]),r=new Set,n=t.match(tN);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(tN);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 Ixe=Axe(Dc),Rxe=Dc.split(".")[0],Gh=Symbol.for("opentelemetry.js.api."+Rxe),Hh=_xe;function Wm(t,e,r,n){var i;n===void 0&&(n=!1);var o=Hh[Gh]=(i=Hh[Gh])!==null&&i!==void 0?i:{version:Dc};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!==Dc){var s=new Error("@opentelemetry/api: Registration of version v"+o.version+" for "+t+" does not match previously registered API v"+Dc);return r.error(s.stack||s.message),!1}return o[t]=e,r.debug("@opentelemetry/api: Registered a global for "+t+" v"+Dc+"."),!0}function Gc(t){var e,r,n=(e=Hh[Gh])===null||e===void 0?void 0:e.version;if(!(!n||!Ixe(n)))return(r=Hh[Gh])===null||r===void 0?void 0:r[t]}function Bm(t,e){e.debug("@opentelemetry/api: Unregistering a global for "+t+" v"+Dc+".");var r=Hh[Gh];r&&delete r[t]}var jxe=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},Qxe=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))},Dxe=(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 vp("debug",this._namespace,e)},t.prototype.error=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return vp("error",this._namespace,e)},t.prototype.info=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return vp("info",this._namespace,e)},t.prototype.warn=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return vp("warn",this._namespace,e)},t.prototype.verbose=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return vp("verbose",this._namespace,e)},t})();function vp(t,e,r){var n=Gc("diag");if(n)return r.unshift(e),n[t].apply(n,Qxe([],jxe(r),!1))}var Mi;(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"})(Mi||(Mi={}));function Nxe(t,e){t<Mi.NONE?t=Mi.NONE:t>Mi.ALL&&(t=Mi.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",Mi.ERROR),warn:r("warn",Mi.WARN),info:r("info",Mi.INFO),debug:r("debug",Mi.DEBUG),verbose:r("verbose",Mi.VERBOSE)}}var Mxe=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},qxe=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))},zxe="diag",Ns=(function(){function t(){function e(i){return function(){for(var o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];var a=Gc("diag");if(a)return a[i].apply(a,qxe([],Mxe(o),!1))}}var r=this,n=function(i,o){var s,a,l;if(o===void 0&&(o={logLevel:Mi.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=Gc("diag"),d=Nxe((a=o.logLevel)!==null&&a!==void 0?a:Mi.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 Wm("diag",d,r,!0)};r.setLogger=n,r.disable=function(){Bm(zxe,r)},r.createComponentLogger=function(i){return new Dxe(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})(),Lxe=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},Vxe=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.")},Xxe=(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=Lxe(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=Vxe(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})(),Uxe=Symbol("BaggageEntryMetadata"),Wxe=Ns.instance();function Bxe(t){return t===void 0&&(t={}),new Xxe(new Map(Object.entries(t)))}function Fxe(t){return typeof t!="string"&&(Wxe.error("Cannot create baggage metadata from unknown type: "+typeof t),t=""),{__TYPE__:Uxe,toString:function(){return t}}}function T_(t){return Symbol.for(t)}var Zxe=(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})(),dd=new Zxe,pu=(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)}})(),Yxe=(function(){function t(){}return t.prototype.createGauge=function(e,r){return o1e},t.prototype.createHistogram=function(e,r){return s1e},t.prototype.createCounter=function(e,r){return i1e},t.prototype.createUpDownCounter=function(e,r){return a1e},t.prototype.createObservableGauge=function(e,r){return c1e},t.prototype.createObservableCounter=function(e,r){return l1e},t.prototype.createObservableUpDownCounter=function(e,r){return u1e},t.prototype.addBatchObservableCallback=function(e,r){},t.prototype.removeBatchObservableCallback=function(e){},t})(),P1=(function(){function t(){}return t})(),Gxe=(function(t){pu(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.add=function(r,n){},e})(P1),Hxe=(function(t){pu(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.add=function(r,n){},e})(P1),Jxe=(function(t){pu(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.record=function(r,n){},e})(P1),Kxe=(function(t){pu(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.record=function(r,n){},e})(P1),__=(function(){function t(){}return t.prototype.addCallback=function(e){},t.prototype.removeCallback=function(e){},t})(),e1e=(function(t){pu(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(__),t1e=(function(t){pu(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(__),r1e=(function(t){pu(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(__),n1e=new Yxe,i1e=new Gxe,o1e=new Jxe,s1e=new Kxe,a1e=new Hxe,l1e=new e1e,c1e=new t1e,u1e=new r1e,d1e={get:function(t,e){if(t!=null)return t[e]},keys:function(t){return t==null?[]:Object.keys(t)}},f1e={set:function(t,e,r){t!=null&&(t[e]=r)}},p1e=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},h1e=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))},m1e=(function(){function t(){}return t.prototype.active=function(){return dd},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,h1e([n],p1e(i),!1))},t.prototype.bind=function(e,r){return r},t.prototype.enable=function(){return this},t.prototype.disable=function(){return this},t})(),g1e=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},y1e=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))},oP="context",O1e=new m1e,C1=(function(){function t(){}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalContextManager=function(e){return Wm(oP,e,Ns.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,y1e([e,r,n],g1e(o),!1))},t.prototype.bind=function(e,r){return this._getContextManager().bind(e,r)},t.prototype._getContextManager=function(){return Gc(oP)||O1e},t.prototype.disable=function(){this._getContextManager().disable(),Bm(oP,Ns.instance())},t})(),Ma;(function(t){t[t.NONE=0]="NONE",t[t.SAMPLED=1]="SAMPLED"})(Ma||(Ma={}));var eB="0000000000000000",tB="00000000000000000000000000000000",rB={traceId:tB,spanId:eB,traceFlags:Ma.NONE},uh=(function(){function t(e){e===void 0&&(e=rB),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})(),A_=T_("OpenTelemetry Context Key SPAN");function I_(t){return t.getValue(A_)||void 0}function v1e(){return I_(C1.getInstance().active())}function R_(t,e){return t.setValue(A_,e)}function b1e(t){return t.deleteValue(A_)}function x1e(t,e){return R_(t,new uh(e))}function nB(t){var e;return(e=I_(t))===null||e===void 0?void 0:e.spanContext()}var S1e=/^([0-9a-f]{32})$/i,w1e=/^[0-9a-f]{16}$/i;function iB(t){return S1e.test(t)&&t!==tB}function P1e(t){return w1e.test(t)&&t!==eB}function $1(t){return iB(t.traceId)&&P1e(t.spanId)}function C1e(t){return new uh(t)}var sP=C1.getInstance(),oB=(function(){function t(){}return t.prototype.startSpan=function(e,r,n){n===void 0&&(n=sP.active());var i=!!r?.root;if(i)return new uh;var o=n&&nB(n);return $1e(o)&&$1(o)?new uh(o):new uh},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??sP.active(),c=this.startSpan(e,o,l),u=R_(l,c);return sP.with(u,a,void 0,c)}},t})();function $1e(t){return typeof t=="object"&&typeof t.spanId=="string"&&typeof t.traceId=="string"&&typeof t.traceFlags=="number"}var k1e=new oB,E1e=(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):k1e},t})(),T1e=(function(){function t(){}return t.prototype.getTracer=function(e,r,n){return new oB},t})(),_1e=new T1e,rN=(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 E1e(this,e,r,n)},t.prototype.getDelegate=function(){var e;return(e=this._delegate)!==null&&e!==void 0?e:_1e},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})(),d0;(function(t){t[t.NOT_RECORD=0]="NOT_RECORD",t[t.RECORD=1]="RECORD",t[t.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(d0||(d0={}));var tk;(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"})(tk||(tk={}));exports.SpanStatusCode=void 0;(function(t){t[t.UNSET=0]="UNSET",t[t.OK=1]="OK",t[t.ERROR=2]="ERROR"})(exports.SpanStatusCode||(exports.SpanStatusCode={}));var Ea=C1.getInstance(),Xt=Ns.instance(),A1e=(function(){function t(){}return t.prototype.getMeter=function(e,r,n){return n1e},t})(),I1e=new A1e,aP="metrics",R1e=(function(){function t(){}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalMeterProvider=function(e){return Wm(aP,e,Ns.instance())},t.prototype.getMeterProvider=function(){return Gc(aP)||I1e},t.prototype.getMeter=function(e,r,n){return this.getMeterProvider().getMeter(e,r,n)},t.prototype.disable=function(){Bm(aP,Ns.instance())},t})(),sB=R1e.getInstance(),j1e=(function(){function t(){}return t.prototype.inject=function(e,r){},t.prototype.extract=function(e,r){return e},t.prototype.fields=function(){return[]},t})(),j_=T_("OpenTelemetry Baggage Key");function aB(t){return t.getValue(j_)||void 0}function Q1e(){return aB(C1.getInstance().active())}function D1e(t,e){return t.setValue(j_,e)}function N1e(t){return t.deleteValue(j_)}var lP="propagation",M1e=new j1e,q1e=(function(){function t(){this.createBaggage=Bxe,this.getBaggage=aB,this.getActiveBaggage=Q1e,this.setBaggage=D1e,this.deleteBaggage=N1e}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalPropagator=function(e){return Wm(lP,e,Ns.instance())},t.prototype.inject=function(e,r,n){return n===void 0&&(n=f1e),this._getGlobalPropagator().inject(e,r,n)},t.prototype.extract=function(e,r,n){return n===void 0&&(n=d1e),this._getGlobalPropagator().extract(e,r,n)},t.prototype.fields=function(){return this._getGlobalPropagator().fields()},t.prototype.disable=function(){Bm(lP,Ns.instance())},t.prototype._getGlobalPropagator=function(){return Gc(lP)||M1e},t})(),dh=q1e.getInstance(),cP="trace",z1e=(function(){function t(){this._proxyTracerProvider=new rN,this.wrapSpanContext=C1e,this.isSpanContextValid=$1,this.deleteSpan=b1e,this.getSpan=I_,this.getActiveSpan=v1e,this.getSpanContext=nB,this.setSpan=R_,this.setSpanContext=x1e}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalTracerProvider=function(e){var r=Wm(cP,this._proxyTracerProvider,Ns.instance());return r&&this._proxyTracerProvider.setDelegate(e),r},t.prototype.getTracerProvider=function(){return Gc(cP)||this._proxyTracerProvider},t.prototype.getTracer=function(e,r){return this.getTracerProvider().getTracer(e,r)},t.prototype.disable=function(){Bm(cP,Ns.instance()),this._proxyTracerProvider=new rN},t})(),gi=z1e.getInstance();const lB=T_("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function L1e(t){return t.setValue(lB,!0)}function Q_(t){return t.getValue(lB)===!0}const V1e="=",rk=";",nk=",",uP="baggage",X1e=180,U1e=4096,W1e=8192;function B1e(t){return t.reduce((e,r)=>{const n=`${e}${e!==""?nk:""}${r}`;return n.length>W1e?e:n},"")}function F1e(t){return t.getAllEntries().map(([e,r])=>{let n=`${encodeURIComponent(e)}=${encodeURIComponent(r.value)}`;return r.metadata!==void 0&&(n+=rk+r.metadata.toString()),n})}function Z1e(t){const e=t.split(rk);if(e.length<=0)return;const r=e.shift();if(!r)return;const n=r.indexOf(V1e);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=Fxe(e.join(rk))),{key:i,value:o,metadata:s}}class Y1e{inject(e,r,n){const i=dh.getBaggage(e);if(!i||Q_(e))return;const o=F1e(i).filter(a=>a.length<=U1e).slice(0,X1e),s=B1e(o);s.length>0&&n.set(r,uP,s)}extract(e,r,n){const i=n.get(r,uP),o=Array.isArray(i)?i.join(nk):i;if(!o)return e;const s={};return o.length===0||(o.split(nk).forEach(l=>{const c=Z1e(l);if(c){const u={value:c.value};c.metadata&&(u.metadata=c.metadata),s[c.key]=u}}),Object.entries(s).length===0)?e:dh.setBaggage(e,dh.createBaggage(s))}fields(){return[uP]}}function _v(t){const e={};if(typeof t!="object"||t==null)return e;for(const[r,n]of Object.entries(t)){if(!G1e(r)){Xt.warn(`Invalid attribute key: ${r}`);continue}if(!cB(n)){Xt.warn(`Invalid attribute value set for key: ${r}`);continue}Array.isArray(n)?e[r]=n.slice():e[r]=n}return e}function G1e(t){return typeof t=="string"&&t.length>0}function cB(t){return t==null?!0:Array.isArray(t)?H1e(t):uB(t)}function H1e(t){let e;for(const r of t)if(r!=null){if(!e){if(uB(r)){e=typeof r;continue}return!1}if(typeof r!==e)return!1}return!0}function uB(t){switch(typeof t){case"number":case"boolean":case"string":return!0}return!1}function J1e(){return t=>{Xt.error(K1e(t))}}function K1e(t){return typeof t=="string"?t:JSON.stringify(eSe(t))}function eSe(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 tSe=J1e();function tf(t){try{tSe(t)}catch{}}const Ad=performance,rSe="2.0.1",dP="exception.message",nSe="exception.stacktrace",fP="exception.type",iSe="service.name",ik="telemetry.sdk.language",oSe="webjs",ok="telemetry.sdk.name",sk="telemetry.sdk.version",sSe="process.runtime.name",pP={[ok]:"opentelemetry",[sSe]:"browser",[ik]:oSe,[sk]:rSe};const aSe=9,lSe=6,cSe=Math.pow(10,lSe),f0=Math.pow(10,aSe);function xd(t){const e=t/1e3,r=Math.trunc(e),n=Math.round(t%1e3*cSe);return[r,n]}function dB(){let t=Ad.timeOrigin;if(typeof t!="number"){const e=Ad;t=e.timing&&e.timing.fetchStart}return t}function uSe(t){const e=xd(dB()),r=xd(typeof t=="number"?t:Ad.now());return pB(e,r)}function dSe(t,e){let r=e[0]-t[0],n=e[1]-t[1];return n<0&&(r-=1,n+=f0),[r,n]}function fSe(t){return t[0]*f0+t[1]}function fB(t){return Array.isArray(t)&&t.length===2&&typeof t[0]=="number"&&typeof t[1]=="number"}function nN(t){return fB(t)||typeof t=="number"||t instanceof Date}function pB(t,e){const r=[t[0]+e[0],t[1]+e[1]];return r[1]>=f0&&(r[1]-=f0,r[0]+=1),r}var vs;(function(t){t[t.SUCCESS=0]="SUCCESS",t[t.FAILED=1]="FAILED"})(vs||(vs={}));class pSe{_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){Xt.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){Xt.warn(`Failed to extract with ${o.constructor.name}. Err: ${s.message}`)}return i},e)}fields(){return this._fields.slice()}}const ak="[_0-9a-z-*/]",hSe=`[a-z]${ak}{0,255}`,mSe=`[a-z0-9]${ak}{0,240}@[a-z]${ak}{0,13}`,gSe=new RegExp(`^(?:${hSe}|${mSe})$`),ySe=/^[ -~]{0,255}[!-~]$/,OSe=/,|=/;function vSe(t){return gSe.test(t)}function bSe(t){return ySe.test(t)&&!OSe.test(t)}const iN=32,xSe=512,oN=",",sN="=";class D_{_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+sN+this.get(r)),e),[]).join(oN)}_parse(e){e.length>xSe||(this._internalState=e.split(oN).reverse().reduce((r,n)=>{const i=n.trim(),o=i.indexOf(sN);if(o!==-1){const s=i.slice(0,o),a=i.slice(o+1,n.length);vSe(s)&&bSe(a)&&r.set(s,a)}return r},new Map),this._internalState.size>iN&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,iN))))}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){const e=new D_;return e._internalState=new Map(this._internalState),e}}const hP="traceparent",mP="tracestate",SSe="00",wSe="(?!ff)[\\da-f]{2}",PSe="(?![0]{32})[\\da-f]{32}",CSe="(?![0]{16})[\\da-f]{16}",$Se="[\\da-f]{2}",kSe=new RegExp(`^\\s?(${wSe})-(${PSe})-(${CSe})-(${$Se})(-.*)?\\s?$`);function ESe(t){const e=kSe.exec(t);return!e||e[1]==="00"&&e[5]?null:{traceId:e[2],spanId:e[3],traceFlags:parseInt(e[4],16)}}class TSe{inject(e,r,n){const i=gi.getSpanContext(e);if(!i||Q_(e)||!$1(i))return;const o=`${SSe}-${i.traceId}-${i.spanId}-0${Number(i.traceFlags||Ma.NONE).toString(16)}`;n.set(r,hP,o),i.traceState&&n.set(r,mP,i.traceState.serialize())}extract(e,r,n){const i=n.get(r,hP);if(!i)return e;const o=Array.isArray(i)?i[0]:i;if(typeof o!="string")return e;const s=ESe(o);if(!s)return e;s.isRemote=!0;const a=n.get(r,mP);if(a){const l=Array.isArray(a)?a.join(","):a;s.traceState=new D_(typeof l=="string"?l:void 0)}return gi.setSpanContext(e,s)}fields(){return[hP,mP]}}const _Se="[object Object]",ASe="[object Null]",ISe="[object Undefined]",RSe=Function.prototype,hB=RSe.toString,jSe=hB.call(Object),QSe=Object.getPrototypeOf,mB=Object.prototype,gB=mB.hasOwnProperty,Tc=Symbol?Symbol.toStringTag:void 0,yB=mB.toString;function aN(t){if(!DSe(t)||NSe(t)!==_Se)return!1;const e=QSe(t);if(e===null)return!0;const r=gB.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&hB.call(r)===jSe}function DSe(t){return t!=null&&typeof t=="object"}function NSe(t){return t==null?t===void 0?ISe:ASe:Tc&&Tc in Object(t)?MSe(t):qSe(t)}function MSe(t){const e=gB.call(t,Tc),r=t[Tc];let n=!1;try{t[Tc]=void 0,n=!0}catch{}const i=yB.call(t);return n&&(e?t[Tc]=r:delete t[Tc]),i}function qSe(t){return yB.call(t)}const zSe=20;function LSe(...t){let e=t.shift();const r=new WeakMap;for(;t.length>0;)e=OB(e,t.shift(),0,r);return e}function gP(t){return p0(t)?t.slice():t}function OB(t,e,r=0,n){let i;if(!(r>zSe)){if(r++,Av(t)||Av(e)||vB(e))i=gP(e);else if(p0(t)){if(i=t.slice(),p0(e))for(let o=0,s=e.length;o<s;o++)i.push(gP(e[o]));else if(bp(e)){const o=Object.keys(e);for(let s=0,a=o.length;s<a;s++){const l=o[s];i[l]=gP(e[l])}}}else if(bp(t))if(bp(e)){if(!VSe(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(Av(c))typeof c>"u"?delete i[l]:i[l]=c;else{const u=i[l],d=c;if(lN(t,l,n)||lN(e,l,n))delete i[l];else{if(bp(u)&&bp(d)){const f=n.get(u)||[],h=n.get(d)||[];f.push({obj:t,key:l}),h.push({obj:e,key:l}),n.set(u,f),n.set(d,h)}i[l]=OB(i[l],c,r,n)}}}}else i=e;return i}}function lN(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 p0(t){return Array.isArray(t)}function vB(t){return typeof t=="function"}function bp(t){return!Av(t)&&!p0(t)&&!vB(t)&&typeof t=="object"}function Av(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t>"u"||t instanceof Date||t instanceof RegExp||t===null}function VSe(t,e){return!(!aN(t)||!aN(e))}class XSe{_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 USe{_callback;_that;_isCalled=!1;_deferred=new XSe;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 WSe(){return"unknown_service"}const Wp=t=>t!==null&&typeof t=="object"&&typeof t.then=="function";class h0{_rawAttributes;_asyncAttributesPending=!1;_memoizedAttributes;static FromAttributeList(e){const r=new h0({});return r._rawAttributes=cN(e),r._asyncAttributesPending=e.filter(([n,i])=>Wp(i)).length>0,r}constructor(e){const r=e.attributes??{};this._rawAttributes=Object.entries(r).map(([n,i])=>(Wp(i)&&(this._asyncAttributesPending=!0),[n,i])),this._rawAttributes=cN(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,Wp(n)?await n:n]}this._asyncAttributesPending=!1}}get attributes(){if(this.asyncAttributesPending&&Xt.error("Accessing resource attributes before async attributes settled"),this._memoizedAttributes)return this._memoizedAttributes;const e={};for(const[r,n]of this._rawAttributes){if(Wp(n)){Xt.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:h0.FromAttributeList([...e.getRawAttributes(),...this.getRawAttributes()])}}function bB(t){return h0.FromAttributeList(Object.entries(t))}function BSe(){return bB({[iSe]:WSe(),[ik]:pP[ik],[ok]:pP[ok],[sk]:pP[sk]})}function cN(t){return t.map(([e,r])=>Wp(r)?[e,r.catch(n=>{Xt.debug("promise rejection for resource attribute: %s - %s",e,n)})]:[e,r])}const FSe="exception";class ZSe{_spanContext;kind;parentSpanContext;attributes={};links=[];events=[];startTime;resource;instrumentationScope;_droppedAttributesCount=0;_droppedEventsCount=0;_droppedLinksCount=0;name;status={code:exports.SpanStatusCode.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=Ad.now(),this._performanceOffset=r-(this._performanceStartTime+dB()),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 Xt.warn(`Invalid attribute key: ${e}`),this;if(!cB(r))return Xt.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 Xt.warn("No events allowed."),this._droppedEventsCount++,this;i!==void 0&&this.events.length>=i&&(this._droppedEventsCount===0&&Xt.debug("Dropping extra events."),this.events.shift(),this._droppedEventsCount++),nN(r)&&(nN(n)||(n=r),r=void 0);const o=_v(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"&&(Xt.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()){Xt.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=dSe(this.startTime,this.endTime),this._duration[0]<0&&(Xt.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&&Xt.warn(`Dropped ${this._droppedEventsCount} events because eventCountLimit reached`),this._spanProcessor.onEnd(this)}_getTime(e){if(typeof e=="number"&&e<=Ad.now())return uSe(e+this._performanceOffset);if(typeof e=="number")return xd(e);if(e instanceof Date)return xd(e.getTime());if(fB(e))return e;if(this._startTimeProvided)return xd(Date.now());const r=Ad.now()-this._performanceStartTime;return pB(this.startTime,xd(r))}isRecording(){return this._ended===!1}recordException(e,r){const n={};typeof e=="string"?n[dP]=e:e&&(e.code?n[fP]=e.code.toString():e.name&&(n[fP]=e.name),e.message&&(n[dP]=e.message),e.stack&&(n[nSe]=e.stack)),n[fP]||n[dP]?this.addEvent(FSe,n,r):Xt.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}}`);Xt.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?(Xt.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 rf;(function(t){t[t.NOT_RECORD=0]="NOT_RECORD",t[t.RECORD=1]="RECORD",t[t.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(rf||(rf={}));class m0{shouldSample(){return{decision:rf.NOT_RECORD}}toString(){return"AlwaysOffSampler"}}class Id{shouldSample(){return{decision:rf.RECORD_AND_SAMPLED}}toString(){return"AlwaysOnSampler"}}class bO{_root;_remoteParentSampled;_remoteParentNotSampled;_localParentSampled;_localParentNotSampled;constructor(e){this._root=e.root,this._root||(tf(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new Id),this._remoteParentSampled=e.remoteParentSampled??new Id,this._remoteParentNotSampled=e.remoteParentNotSampled??new m0,this._localParentSampled=e.localParentSampled??new Id,this._localParentNotSampled=e.localParentNotSampled??new m0}shouldSample(e,r,n,i,o,s){const a=gi.getSpanContext(e);return!a||!$1(a)?this._root.shouldSample(e,r,n,i,o,s):a.isRemote?a.traceFlags&Ma.SAMPLED?this._remoteParentSampled.shouldSample(e,r,n,i,o,s):this._remoteParentNotSampled.shouldSample(e,r,n,i,o,s):a.traceFlags&Ma.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 uN{_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:iB(r)&&this._accumulate(r)<this._upperBound?rf.RECORD_AND_SAMPLED:rf.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 dN=1;function xB(){return{sampler:SB(),forceFlushTimeoutMillis:3e4,generalLimits:{attributeValueLengthLimit:1/0,attributeCountLimit:128},spanLimits:{attributeValueLengthLimit:1/0,attributeCountLimit:128,linkCountLimit:128,eventCountLimit:128,attributePerEventCountLimit:128,attributePerLinkCountLimit:128}}}function SB(){const t="parentbased_always_on";switch(t){case"always_on":return new Id;case"always_off":return new m0;case"parentbased_always_on":return new bO({root:new Id});case"parentbased_always_off":return new bO({root:new m0});case"traceidratio":return new uN(fN());case"parentbased_traceidratio":return new bO({root:new uN(fN())});default:return Xt.error(`OTEL_TRACES_SAMPLER value "${t}" invalid, defaulting to "parentbased_always_on".`),new bO({root:new Id})}}function fN(){return Xt.error(`OTEL_TRACES_SAMPLER_ARG is blank, defaulting to ${dN}.`),dN}const YSe=128,GSe=1/0;function HSe(t){const e={sampler:SB()},r=xB(),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 JSe(t){const e=Object.assign({},t.spanLimits);return e.attributeCountLimit=t.spanLimits?.attributeCountLimit??t.generalLimits?.attributeCountLimit??void 0??void 0??YSe,e.attributeValueLengthLimit=t.spanLimits?.attributeValueLengthLimit??t.generalLimits?.attributeValueLengthLimit??void 0??void 0??GSe,Object.assign({},t,{spanLimits:e})}class KSe{_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 USe(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize&&(Xt.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&Ma.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&&Xt.debug("maxQueueSize reached, dropping spans"),this._droppedSpansCount++;return}this._droppedSpansCount>0&&(Xt.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);Ea.with(L1e(Ea.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===vs.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=>{tf(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,tf(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 ewe extends KSe{_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=>{tf(r)})},this._pageHideListener=()=>{this.forceFlush().catch(r=>{tf(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 twe=8,rwe=16;class nwe{generateTraceId=pN(rwe);generateSpanId=pN(twe)}const xO=Array(32);function pN(t){return function(){for(let r=0;r<t*2;r++)xO[r]=Math.floor(Math.random()*16)+48,xO[r]>=58&&(xO[r]+=39);return String.fromCharCode.apply(null,xO.slice(0,t*2))}}class iwe{_sampler;_generalLimits;_spanLimits;_idGenerator;instrumentationScope;_resource;_spanProcessor;constructor(e,r,n,i){const o=HSe(r);this._sampler=o.sampler,this._generalLimits=o.generalLimits,this._spanLimits=o.spanLimits,this._idGenerator=r.idGenerator||new nwe,this._resource=n,this._spanProcessor=i,this.instrumentationScope=e}startSpan(e,r={},n=Ea.active()){r.root&&(n=gi.deleteSpan(n));const i=gi.getSpan(n);if(Q_(n))return Xt.debug("Instrumentation suppressed, returning Noop Span"),gi.wrapSpanContext(rB);const o=i?.spanContext(),s=this._idGenerator.generateSpanId();let a,l,c;!o||!gi.isSpanContextValid(o)?l=this._idGenerator.generateTraceId():(l=o.traceId,c=o.traceState,a=o);const u=r.kind??tk.INTERNAL,d=(r.links??[]).map(O=>({context:O.context,attributes:_v(O.attributes)})),f=_v(r.attributes),h=this._sampler.shouldSample(n,l,e,u,f,d);c=h.traceState??c;const y=h.decision===d0.RECORD_AND_SAMPLED?Ma.SAMPLED:Ma.NONE,m={traceId:l,spanId:s,traceFlags:y,traceState:c};if(h.decision===d0.NOT_RECORD)return Xt.debug("Recording is off, propagating context in a non-recording span"),gi.wrapSpanContext(m);const g=_v(Object.assign(f,h.attributes));return new ZSe({resource:this._resource,scope:this.instrumentationScope,context:n,spanContext:m,name:e,kind:u,links:d,parentSpanContext:a,attributes:g,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??Ea.active(),c=this.startSpan(e,o,l),u=gi.setSpan(l,c);return Ea.with(u,a,void 0,c)}getGeneralLimits(){return this._generalLimits}getSpanLimits(){return this._spanLimits}}class owe{_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=>{tf(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 _c;(function(t){t[t.resolved=0]="resolved",t[t.timeout=1]="timeout",t[t.error=2]="error",t[t.unresolved=3]="unresolved"})(_c||(_c={}));class swe{_config;_tracers=new Map;_resource;_activeSpanProcessor;constructor(e={}){const r=LSe({},xB(),JSe(e));this._resource=r.resource??BSe(),this._config=Object.assign({},r,{resource:this._resource});const n=[];e.spanProcessors?.length&&n.push(...e.spanProcessors),this._activeSpanProcessor=new owe(n)}getTracer(e,r,n){const i=`${e}@${r||""}:${n?.schemaUrl||""}`;return this._tracers.has(i)||this._tracers.set(i,new iwe({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=_c.timeout},e);n.forceFlush().then(()=>{clearTimeout(s),o!==_c.timeout&&(o=_c.resolved,i(o))}).catch(a=>{clearTimeout(s),o=_c.error,i(a)})}));return new Promise((n,i)=>{Promise.all(r).then(o=>{const s=o.filter(a=>a!==_c.resolved);s.length>0?i(s):n()}).catch(o=>i([o]))})}shutdown(){return this._activeSpanProcessor.shutdown()}}class awe{_enabled=!1;_currentContext=dd;_bindFunction(e=dd,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=dd,this._enabled=!1,this}enable(){return this._enabled?this:(this._enabled=!0,this._currentContext=dd,this)}with(e,r,n,...i){const o=this._currentContext;this._currentContext=e||dd;try{return r.call(n,...i)}finally{this._currentContext=o}}}function lwe(t){if(t!==null){if(t===void 0){const e=new awe;e.enable(),Ea.setGlobalContextManager(e);return}t.enable(),Ea.setGlobalContextManager(t)}}function cwe(t){if(t!==null){if(t===void 0){dh.setGlobalPropagator(new pSe({propagators:[new TSe,new Y1e]}));return}dh.setGlobalPropagator(t)}}class uwe extends swe{constructor(e={}){super(e)}register(e={}){gi.setGlobalTracerProvider(this),cwe(e.propagator),lwe(e.contextManager)}}class dwe{_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 hN extends Error{code;name="OTLPExporterError";data;constructor(e,r,n){super(e),this.data=n,this.code=r}}function fwe(t){if(Number.isFinite(t)&&t>0)return t;throw new Error(`Configuration: timeoutMillis is invalid, expected number greater than 0 (actual: '${t}')`)}function pwe(t){if(t!=null)return()=>t}function hwe(t,e,r){return{timeoutMillis:fwe(t.timeoutMillis??e.timeoutMillis??r.timeoutMillis),concurrencyLimit:t.concurrencyLimit??e.concurrencyLimit??r.concurrencyLimit,compression:t.compression??e.compression??r.compression}}function mwe(){return{timeoutMillis:1e4,concurrencyLimit:30,compression:"none"}}class gwe{_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 ywe(t){return new gwe(t.concurrencyLimit)}function Owe(t){return Object.prototype.hasOwnProperty.call(t,"partialSuccess")}function vwe(){return{handleResponse(t){t==null||!Owe(t)||t.partialSuccess==null||Object.keys(t.partialSuccess).length===0||Xt.warn("Received Partial Success response:",JSON.stringify(t.partialSuccess))}}}class bwe{_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=Xt.createComponentLogger({namespace:"OTLPExportDelegate"})}export(e,r){if(this._diagLogger.debug("items to be sent",e),this._promiseQueue.hasReachedLimit()){r({code:vs.FAILED,error:new Error("Concurrent export limit reached")});return}const n=this._serializer.serializeRequest(e);if(n==null){r({code:vs.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:vs.SUCCESS});return}else if(i.status==="failure"&&i.error){r({code:vs.FAILED,error:i.error});return}else i.status==="retryable"?r({code:vs.FAILED,error:new hN("Export failed with retryable status")}):r({code:vs.FAILED,error:new hN("Export failed with unknown error")})},i=>r({code:vs.FAILED,error:i})))}forceFlush(){return this._promiseQueue.awaitAll()}async shutdown(){this._diagLogger.debug("shutdown started"),await this.forceFlush(),this._transport.shutdown()}}function xwe(t,e){return new bwe(t.transport,t.serializer,vwe(),t.promiseHandler,e.timeout)}function wB(t,e,r){return xwe({transport:r,serializer:e,promiseHandler:ywe(t)},{timeout:t.timeoutMillis})}function mN(t){return t>=48&&t<=57?t-48:t>=97&&t<=102?t-87:t-55}function PB(t){const e=new Uint8Array(t.length/2);let r=0;for(let n=0;n<t.length;n+=2){const i=mN(t.charCodeAt(n)),o=mN(t.charCodeAt(n+1));e[r++]=i<<4|o}return e}function CB(t){const e=BigInt(1e9);return BigInt(t[0])*e+BigInt(t[1])}function Swe(t){const e=Number(BigInt.asUintN(32,t)),r=Number(BigInt.asUintN(32,t>>BigInt(32)));return{low:e,high:r}}function wwe(t){const e=CB(t);return Swe(e)}function Pwe(t){return CB(t).toString()}const Cwe=typeof BigInt<"u"?Pwe:fSe;function gN(t){return t}function $we(t){if(t!==void 0)return PB(t)}const kwe={encodeHrTime:wwe,encodeSpanContext:PB,encodeOptionalSpanContext:$we};function Ewe(t){return t===void 0?kwe:{encodeHrTime:Cwe,encodeSpanContext:gN,encodeOptionalSpanContext:gN}}function Twe(t){return{attributes:k1(t.attributes),droppedAttributesCount:0}}function _we(t){return{name:t.name,version:t.version}}function k1(t){return Object.keys(t).map(e=>$B(e,t[e]))}function $B(t,e){return{key:t,value:kB(e)}}function kB(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(kB)}}:e==="object"&&t!=null?{kvlistValue:{values:Object.entries(t).map(([r,n])=>$B(r,n))}}:{}}function Awe(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:k1(t.attributes),droppedAttributesCount:t.droppedAttributesCount,events:t.events.map(o=>Rwe(o,e)),droppedEventsCount:t.droppedEventsCount,status:{code:n.code,message:n.message},links:t.links.map(o=>Iwe(o,e)),droppedLinksCount:t.droppedLinksCount}}function Iwe(t,e){return{attributes:t.attributes?k1(t.attributes):[],spanId:e.encodeSpanContext(t.context.spanId),traceId:e.encodeSpanContext(t.context.traceId),traceState:t.context.traceState?.serialize(),droppedAttributesCount:t.droppedAttributesCount||0}}function Rwe(t,e){return{attributes:t.attributes?k1(t.attributes):[],name:t.name,timeUnixNano:e.encodeHrTime(t.time),droppedAttributesCount:t.droppedAttributesCount||0}}function jwe(t,e){const r=Ewe(e);return{resourceSpans:Dwe(t,r)}}function Qwe(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 Dwe(t,e){const r=Qwe(t),n=[],i=r.entries();let o=i.next();for(;!o.done;){const[s,a]=o.value,l=[],c=a.values();let u=c.next();for(;!u.done;){const f=u.value;if(f.length>0){const h=f.map(y=>Awe(y,e));l.push({scope:_we(f[0].instrumentationScope),spans:h,schemaUrl:f[0].instrumentationScope.schemaUrl})}u=c.next()}const d={resource:Twe(s),scopeSpans:l,schemaUrl:void 0};n.push(d),o=i.next()}return n}const Nwe={serializeRequest:t=>{const e=jwe(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))}},Mwe=5,qwe=1e3,zwe=5e3,Lwe=1.5,yN=.2;function Vwe(){return Math.random()*(2*yN)-yN}class Xwe{_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=Mwe,s=qwe;for(;i.status==="retryable"&&o>0;){o--;const a=Math.max(Math.min(s,zwe)+Vwe(),0);s=s*Lwe;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 EB(t){return new Xwe(t.transport)}function Uwe(t){return[429,502,503,504].includes(t)}function Wwe(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 Bwe{_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?(Xt.debug("XHR success"),n({status:"success"})):i.status&&Uwe(i.status)?n({status:"retryable",retryInMillis:Wwe(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 Fwe(t){return new Bwe(t)}class Zwe{_params;constructor(e){this._params=e}send(e){return new Promise(r=>{navigator.sendBeacon(this._params.url,new Blob([e],{type:this._params.blobType}))?(Xt.debug("SendBeacon success"),r({status:"success"})):r({status:"failure",error:new Error("SendBeacon failed")})})}shutdown(){}}function Ywe(t){return new Zwe(t)}function Gwe(t,e){return wB(t,e,EB({transport:Fwe(t)}))}function Hwe(t,e){return wB(t,e,EB({transport:Ywe({url:t.url,blobType:t.headers()["Content-Type"]})}))}function Jwe(t){return()=>{const e={};return Object.entries(t?.()??{}).forEach(([r,n])=>{typeof n<"u"?e[r]=String(n):Xt.warn(`Header "${r}" has invalid value (${n}) and will be ignored`)}),e}}function Kwe(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 ePe(t){if(t!=null)try{return new URL(t),t}catch{throw new Error(`Configuration: Could not parse user-provided export URL: '${t}'`)}}function tPe(t,e,r){return{...hwe(t,e,r),headers:Kwe(Jwe(t.headers),e.headers,r.headers),url:ePe(t.url)??e.url??r.url,agentOptions:t.agentOptions??e.agentOptions??r.agentOptions}}function rPe(t,e){return{...mwe(),headers:()=>t,url:"http://localhost:4318/"+e,agentOptions:{keepAlive:!0}}}function nPe(t,e,r){return tPe({url:t.url,timeoutMillis:t.timeoutMillis,headers:pwe(t.headers),concurrencyLimit:t.concurrencyLimit},{},rPe(r,e))}function iPe(t,e,r,n){const i=!!t.headers||typeof navigator.sendBeacon!="function",o=nPe(t,r,n);return i?Gwe(o,e):Hwe(o,e)}class oPe extends dwe{constructor(e={}){super(iPe(e,Nwe,"v1/traces",{"Content-Type":"application/json"}))}}const sPe="service.name",aPe="service.version";class TB{emit(e){}}const lPe=new TB;class cPe{getLogger(e,r,n){return new TB}}const _B=new cPe;class uPe{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):lPe}}class ON{getLogger(e,r,n){var i;return(i=this.getDelegateLogger(e,r,n))!==null&&i!==void 0?i:new uPe(this,e,r,n)}getDelegate(){var e;return(e=this._delegate)!==null&&e!==void 0?e:_B}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 dPe=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof global=="object"?global:{},SO=Symbol.for("io.opentelemetry.js.api.logs"),xp=dPe;function fPe(t,e,r){return n=>n===t?e:r}const vN=1;class N_{constructor(){this._proxyLoggerProvider=new ON}static getInstance(){return this._instance||(this._instance=new N_),this._instance}setGlobalLoggerProvider(e){return xp[SO]?this.getLoggerProvider():(xp[SO]=fPe(vN,e,_B),this._proxyLoggerProvider.setDelegate(e),e)}getLoggerProvider(){var e,r;return(r=(e=xp[SO])===null||e===void 0?void 0:e.call(xp,vN))!==null&&r!==void 0?r:this._proxyLoggerProvider}getLogger(e,r,n){return this.getLoggerProvider().getLogger(e,r,n)}disable(){delete xp[SO],this._proxyLoggerProvider=new ON}}const AB=N_.getInstance();function pPe(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 hPe(t){t.forEach(e=>e.disable())}function mPe(t){const e=t.tracerProvider||gi.getTracerProvider(),r=t.meterProvider||sB.getMeterProvider(),n=t.loggerProvider||AB.getLoggerProvider(),i=t.instrumentations?.flat()??[];return pPe(i,e,r,n),()=>{hPe(i)}}let Wi=console.error.bind(console);function Sp(t,e,r){const n=!!t[e]&&Object.prototype.propertyIsEnumerable.call(t,e);Object.defineProperty(t,e,{configurable:!0,enumerable:n,writable:!0,value:r})}const IB=(t,e,r)=>{if(!t||!t[e]){Wi("no original function "+String(e)+" to wrap");return}if(!r){Wi("no wrapper function"),Wi(new Error().stack);return}const n=t[e];if(typeof n!="function"||typeof r!="function"){Wi("original object and wrapper must be functions");return}const i=r(n,e);return Sp(i,"__original",n),Sp(i,"__unwrap",()=>{t[e]===i&&Sp(t,e,n)}),Sp(i,"__wrapped",!0),Sp(t,e,i),i},gPe=(t,e,r)=>{if(t)Array.isArray(t)||(t=[t]);else{Wi("must provide one or more modules to patch"),Wi(new Error().stack);return}if(!(e&&Array.isArray(e))){Wi("must provide one or more functions to wrap on modules");return}t.forEach(n=>{e.forEach(i=>{IB(n,i,r)})})},RB=(t,e)=>{if(!t||!t[e]){Wi("no function to unwrap."),Wi(new Error().stack);return}const r=t[e];if(!r.__unwrap)Wi("no original to unwrap to -- has "+String(e)+" already been unwrapped?");else{r.__unwrap();return}},yPe=(t,e)=>{if(t)Array.isArray(t)||(t=[t]);else{Wi("must provide one or more modules to patch"),Wi(new Error().stack);return}if(!(e&&Array.isArray(e))){Wi("must provide one or more functions to unwrap on modules");return}t.forEach(r=>{e.forEach(n=>{RB(r,n)})})};class OPe{instrumentationName;instrumentationVersion;_config={};_tracer;_meter;_logger;_diag;constructor(e,r,n){this.instrumentationName=e,this.instrumentationVersion=r,this.setConfig(n),this._diag=Xt.createComponentLogger({namespace:e}),this._tracer=gi.getTracer(e,r),this._meter=sB.getMeter(e,r),this._logger=AB.getLogger(e,r),this._updateMetricInstruments()}_wrap=IB;_unwrap=RB;_massWrap=gPe;_massUnwrap=yPe;get meter(){return this._meter}setMeterProvider(e){this._meter=e.getMeter(this.instrumentationName,this.instrumentationVersion),this._updateMetricInstruments()}get logger(){return this._logger}setLoggerProvider(e){this._logger=e.getLogger(this.instrumentationName,this.instrumentationVersion)}getModuleDefinitions(){const e=this.init()??[];return Array.isArray(e)?e:[e]}_updateMetricInstruments(){}getConfig(){return this._config}setConfig(e){this._config={enabled:!0,...e}}setTracerProvider(e){this._tracer=e.getTracer(this.instrumentationName,this.instrumentationVersion)}get tracer(){return this._tracer}_runSpanCustomizationHook(e,r,n,i){if(e)try{e(n,i)}catch(o){this._diag.error("Error running span customization hook due to exception in handler",{triggerName:r},o)}}}class vPe extends OPe{constructor(e,r,n){super(e,r,n),this._config.enabled&&this.enable()}}class bPe{span=void 0;constructor(e){this.span=e}get context(){return this.span?.context}error(e){this.span&&(this.span.setStatus(exports.SpanStatusCode.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(exports.SpanStatusCode.OK),this.span.end())}}class xPe{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":u0(),"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"&&!Array.isArray(e.data))for(const[o,s]of Object.entries(e.data)){const a=o.replace(/([A-Z])/g,"_$1").toLowerCase();if(s!==void 0)if(typeof s=="object"&&s!==null&&!Array.isArray(s))for(const[l,c]of Object.entries(s))c!==void 0&&(i[`cloudevents.event_data.${a}.${l}`]=c);else i[`cloudevents.event_data.${a}`]=s}if(e.data&&Array.isArray(e.data)){if(e.data.some(s=>s&&typeof s=="object"&&"object"in s)){const s=[],a=[];for(const l of e.data){if(!l||typeof l!="object")continue;const c=l.object;if(!c||typeof c!="string")continue;const u=l,d=a.find(f=>f.object===c);if(d){s.push(d,u);const f=a.indexOf(d);a.splice(f,1)}else s.some(h=>h.object===c)||a.push(u)}for(let l=0;l<s.length;l++){const c=s[l],u=l===0?"after.":"before.",d=`${c.object}.`;for(const[f,h]of Object.entries(c))if(h!==void 0){const y=f.replace(/([A-Z])/g,"_$1").toLowerCase();i[`cloudevents.event_data.${u}${d}${y}`]=h}}for(const l of a){const c=`${l.object}.`;for(const[u,d]of Object.entries(l))if(d!==void 0){const f=u.replace(/([A-Z])/g,"_$1").toLowerCase();i[`cloudevents.event_data.${c}${f}`]=d}}}else for(const s of e.data)if(s&&typeof s=="object"){for(const[a,l]of Object.entries(s))if(l!==void 0){const c=a.replace(/([A-Z])/g,"_$1").toLowerCase();i[`cloudevents.event_data.${c}`]=l}}}if("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=gi.setSpan(Ea.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);return}}startStepSpan(e){try{if(!this.tracer)return;const r=Ea.active(),n=e.time?new Date(e.time):new Date,i=this.tracer.startSpan(`event.${e.type}`,{attributes:this.processAttributes(e,n)},r),o=gi.setSpan(r,i);return{end:()=>i.end(),setAttribute:(s,a)=>{i.setAttribute(`cloudevents.event_data.${this.getKeySnakeValue(s)}`,a)},setStatus:(s,a)=>i.setStatus({code:s,message:a}),recordException:s=>i.recordException(s),context:o}}catch(r){this.config?.isProd||console.error("Event reporting failed:",r);return}}traceStep(e){const r=this.startStepSpan(e);if(r)return new bPe(r)}async forceFlush(){return this.tracerProvider?.forceFlush()}async shutdown(){return this.tracerProvider?.shutdown()}getKeySnakeValue=e=>e.replace(/([A-Z])/g,"_$1").toLowerCase()}class SPe extends xPe{tracerProvider=null;tracer=null;initialized=!1;constructor(){super()}initTracer(e){if(!e.collectorUrl&&!e.collectorTraceUrl)return;const r=`ses_${u0()}`,n=bB({[sPe]:e.serviceName,[aPe]:e.serviceVersion,session_id:r}),i=e.collectorTraceUrl||`${e.collectorUrl}/v1/traces`;this.tracerProvider=new uwe({resource:n,spanProcessors:[new ewe(new oPe({url:i,headers:{}}))]}),this.tracer=this.tracerProvider.getTracer(e.tracerName),this.tracerProvider.register(),mPe({instrumentations:e.instrumentations??[]}),this.initialized=!0}}class wa extends vPe{sendErrorEvent;originalConsoleError;constructor(e,r){super("errors","1.0",e||{}),this.sendErrorEvent=r}static toErrorEvent(e,r){return{type:"error",payload:{handler:r,errorType:wa.getErrorType(e),message:wa.getErrorMessage(e),stack:wa.getErrorStack(e)}}}enable(){window.addEventListener("error",this.onError),window.addEventListener("unhandledrejection",this.onUnhandledRejection),this.wrapConsoleError()}disable(){window.removeEventListener("error",this.onError),window.removeEventListener("unhandledrejection",this.onUnhandledRejection),this.unwrapConsoleError()}init(){}static getErrorMessage(e){return e?(typeof e=="object"&&"message"in e?String(e.message):String(e)).trim():void 0}static getErrorStack(e){if(!e||typeof e!="object"||!("stack"in e)||!e.stack)return;const r=String(e.stack);return r.length>4096?r.substring(0,4096):r}static getErrorType(e){return!e||typeof e!="object"?typeof e:"name"in e?String(e.name):"constructor"in e&&"name"in e.constructor?String(e.constructor.name):"Error"}static combineConsoleErrorArgs(e){const r=e.findIndex(i=>i instanceof Error),n=e.filter((i,o)=>o!==r).map(i=>String(i)).join(" ");if(r===-1)return n;{const i=e[r];return n&&(i.message=`${i.message} ${n}`),i}}onError=e=>{this.sendError(e.error,"window.onerror")};onUnhandledRejection=e=>{this.sendError(e.reason,"window.onunhandledrejection")};wrapConsoleError(){this.originalConsoleError=console.error,console.error=(...e)=>{try{const r=wa.combineConsoleErrorArgs(e);this.sendError(r,"console.error")}catch(r){process.env.NODE_ENV!=="production"&&this.originalConsoleError?.call(console,"Error reporting failed:",r)}this.originalConsoleError?.apply(console,e)}}unwrapConsoleError(){this.originalConsoleError&&(console.error=this.originalConsoleError,this.originalConsoleError=void 0)}sendError(e,r){this.sendErrorEvent(wa.toErrorEvent(e,r))}}class wPe{config=null;initialized=!1;useCloudEventData;otelClient;tracer;constructor(){this.useCloudEventData=()=>({organization:{id:"",slug:""},project:{id:"",slug:""},productType:"",sourceDetails:{user:"Anonymous",object:"user",uri:""},request:{source:""}}),this.otelClient=new SPe,this.tracer={traceStep:(e,r)=>{const n=this.constructCloudEvent(e,r);return this.otelClient.traceStep(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.enableErrorInstrumentation===!0?[new wa(void 0,r=>{this.sendErrorMessage(r.payload)})]:[],...e.otel.instrumentations||[]]}))}startSpan(e,r,n){if(this.config?.disabled)return;const i=this.constructCloudEvent(e,r);return this.otelClient.startSpan(i,n)}constructCloudEvent(e,r){const n=this.useCloudEventData();return{id:`evt_${u0()}`,type:e,source:n.request.source||"",specversion:"1.0",datacontenttype:"application/json",time:new Date().toISOString(),data:r,origin:n.origin||"ui",sourceDetails:{id:n.sourceDetails.user||`usr_${u0()}`,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()}shutdown(){return this.config?.disabled?Promise.resolve():this.otelClient.shutdown()}sendError(e,r){this.config?.disabled||this.send(wa.toErrorEvent(e,r).type,wa.toErrorEvent(e,r).payload)}sendTabChangeMessage(){this.send("tab.change")}sendButtonClickMessage(){this.send("button.click")}sendChangeMessage(){this.send("change")}sendContentCopyMessage(){this.send("content.copy")}sendRequestSendMessage(){this.send("request.send")}sendTokenGenerateMessage(){this.send("token.generate")}sendAppLifecycleMessage(){this.send("app.lifecycle")}sendEnvironmentManagementMessage(){this.send("environment.management")}sendServerManagementMessage(){this.send("server.management")}sendInputManagementMessage(){this.send("input.management")}sendNodeManagementMessage(){this.send("node.management")}sendHistoryManagementMessage(){this.send("history.management")}sendCredentialManagementMessage(){this.send("credential.management")}sendPanelToggleMessage(){this.send("panel.toggle")}sendWorkflowRunClickMessage(e){this.send("workflow.run.click",e)}sendWorkflowRunResultMessage(){this.send("workflow.run.result")}sendStorageReadMessage(){this.send("storage.read")}sendStorageLoadUserStateMessage(){this.send("storage.loadUserState")}sendStorageDetectFilesMessage(){this.send("storage.detectFiles")}sendStorageLoadApisMessage(){this.send("storage.loadApis")}sendStorageParseApisMessage(){this.send("storage.parseApis")}sendStorageParseCollectionsMessage(){this.send("storage.parseCollections")}sendUpdaterCheckMessage(){this.send("updater.check")}sendUpdaterDownloadMessage(){this.send("updater.download")}sendUpdaterInstallMessage(){this.send("updater.install")}sendUpdaterProcessMessage(){this.send("updater.process")}sendErrorMessage(e){this.send("error",e)}sendCodeEditorSearchMessage(e){this.send("code_editor.search",e)}}const E1=["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"],PPe="https://cors.redocly.com/";function CPe(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function bN(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 xN(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?bN(Object(r),!0).forEach(function(n){CPe(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):bN(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function wn(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var SN=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})(),yP=function(){return Math.random().toString(36).substring(7).split("").join(".")},Dl={INIT:"@@redux/INIT"+yP(),REPLACE:"@@redux/REPLACE"+yP(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+yP()}};function jB(t){if(typeof t!="object"||t===null)return!1;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function $Pe(t){if(t===void 0)return"undefined";if(t===null)return"null";var e=typeof t;switch(e){case"boolean":case"string":case"number":case"symbol":case"function":return e}if(Array.isArray(t))return"array";if(TPe(t))return"date";if(EPe(t))return"error";var r=kPe(t);switch(r){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return r}return e.slice(8,-1).toLowerCase().replace(/\s/g,"")}function kPe(t){return typeof t.constructor=="function"?t.constructor.name:null}function EPe(t){return t instanceof Error||typeof t.message=="string"&&t.constructor&&typeof t.constructor.stackTraceLimit=="number"}function TPe(t){return t instanceof Date?!0:typeof t.toDateString=="function"&&typeof t.getDate=="function"&&typeof t.setDate=="function"}function yl(t){var e=typeof t;return process.env.NODE_ENV!=="production"&&(e=$Pe(t)),e}function T1(t,e,r){var n;if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?wn(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(process.env.NODE_ENV==="production"?wn(1):"Expected the enhancer to be a function. Instead, received: '"+yl(r)+"'");return r(T1)(t,e)}if(typeof t!="function")throw new Error(process.env.NODE_ENV==="production"?wn(2):"Expected the root reducer to be a function. Instead, received: '"+yl(t)+"'");var i=t,o=e,s=[],a=s,l=!1;function c(){a===s&&(a=s.slice())}function u(){if(l)throw new Error(process.env.NODE_ENV==="production"?wn(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return o}function d(m){if(typeof m!="function")throw new Error(process.env.NODE_ENV==="production"?wn(4):"Expected the listener to be a function. Instead, received: '"+yl(m)+"'");if(l)throw new Error(process.env.NODE_ENV==="production"?wn(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");var g=!0;return c(),a.push(m),function(){if(g){if(l)throw new Error(process.env.NODE_ENV==="production"?wn(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");g=!1,c();var O=a.indexOf(m);a.splice(O,1),s=null}}}function f(m){if(!jB(m))throw new Error(process.env.NODE_ENV==="production"?wn(7):"Actions must be plain objects. Instead, the actual type was: '"+yl(m)+"'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.");if(typeof m.type>"u")throw new Error(process.env.NODE_ENV==="production"?wn(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(l)throw new Error(process.env.NODE_ENV==="production"?wn(9):"Reducers may not dispatch actions.");try{l=!0,o=i(o,m)}finally{l=!1}for(var g=s=a,v=0;v<g.length;v++){var O=g[v];O()}return m}function h(m){if(typeof m!="function")throw new Error(process.env.NODE_ENV==="production"?wn(10):"Expected the nextReducer to be a function. Instead, received: '"+yl(m));i=m,f({type:Dl.REPLACE})}function y(){var m,g=d;return m={subscribe:function(O){if(typeof O!="object"||O===null)throw new Error(process.env.NODE_ENV==="production"?wn(11):"Expected the observer to be an object. Instead, received: '"+yl(O)+"'");function b(){O.next&&O.next(u())}b();var S=g(b);return{unsubscribe:S}}},m[SN]=function(){return this},m}return f({type:Dl.INIT}),n={dispatch:f,subscribe:d,getState:u,replaceReducer:h},n[SN]=y,n}var _Pe=T1;function lk(t){typeof console<"u"&&typeof console.error=="function"&&console.error(t);try{throw new Error(t)}catch{}}function APe(t,e,r,n){var i=Object.keys(e),o=r&&r.type===Dl.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(i.length===0)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!jB(t))return"The "+o+' has unexpected type of "'+yl(t)+'". Expected argument to be an object with the following '+('keys: "'+i.join('", "')+'"');var s=Object.keys(t).filter(function(a){return!e.hasOwnProperty(a)&&!n[a]});if(s.forEach(function(a){n[a]=!0}),!(r&&r.type===Dl.REPLACE)&&s.length>0)return"Unexpected "+(s.length>1?"keys":"key")+" "+('"'+s.join('", "')+'" found in '+o+". ")+"Expected to find one of the known reducer keys instead: "+('"'+i.join('", "')+'". Unexpected keys will be ignored.')}function IPe(t){Object.keys(t).forEach(function(e){var r=t[e],n=r(void 0,{type:Dl.INIT});if(typeof n>"u")throw new Error(process.env.NODE_ENV==="production"?wn(12):'The slice reducer for key "'+e+`" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`);if(typeof r(void 0,{type:Dl.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(process.env.NODE_ENV==="production"?wn(13):'The slice reducer for key "'+e+'" returned undefined when probed with a random type. '+("Don't try to handle '"+Dl.INIT+`' or other actions in "redux/*" `)+"namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.")})}function RPe(t){for(var e=Object.keys(t),r={},n=0;n<e.length;n++){var i=e[n];process.env.NODE_ENV!=="production"&&typeof t[i]>"u"&&lk('No reducer provided for key "'+i+'"'),typeof t[i]=="function"&&(r[i]=t[i])}var o=Object.keys(r),s;process.env.NODE_ENV!=="production"&&(s={});var a;try{IPe(r)}catch(l){a=l}return function(c,u){if(c===void 0&&(c={}),a)throw a;if(process.env.NODE_ENV!=="production"){var d=APe(c,r,u,s);d&&lk(d)}for(var f=!1,h={},y=0;y<o.length;y++){var m=o[y],g=r[m],v=c[m],O=g(v,u);if(typeof O>"u"){var b=u&&u.type;throw new Error(process.env.NODE_ENV==="production"?wn(14):"When called with an action of type "+(b?'"'+String(b)+'"':"(unknown type)")+', the slice reducer for key "'+m+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.')}h[m]=O,f=f||O!==v}return f=f||o.length!==Object.keys(c).length,f?h:c}}function wN(t,e){return function(){return e(t.apply(this,arguments))}}function jPe(t,e){if(typeof t=="function")return wN(t,e);if(typeof t!="object"||t===null)throw new Error(process.env.NODE_ENV==="production"?wn(16):"bindActionCreators expected an object or a function, but instead received: '"+yl(t)+`'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?`);var r={};for(var n in t){var i=t[n];typeof i=="function"&&(r[n]=wN(i,e))}return r}function QB(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return e.length===0?function(n){return n}:e.length===1?e[0]:e.reduce(function(n,i){return function(){return n(i.apply(void 0,arguments))}})}function QPe(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(n){return function(){var i=n.apply(void 0,arguments),o=function(){throw new Error(process.env.NODE_ENV==="production"?wn(15):"Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},s={getState:i.getState,dispatch:function(){return o.apply(void 0,arguments)}},a=e.map(function(l){return l(s)});return o=QB.apply(void 0,a)(i.dispatch),xN(xN({},i),{},{dispatch:o})}}}function PN(){}process.env.NODE_ENV!=="production"&&typeof PN.name=="string"&&PN.name!=="isCrushed"&&lk('You are currently using minified code outside of NODE_ENV === "production". This means that you are running a slower development build of Redux. You can use loose-envify (https://github.com/zertosh/loose-envify) for browserify or setting mode to production in webpack (https://webpack.js.org/concepts/mode/) to ensure you have the correct code for your production build.');var DPe=Object.freeze({__proto__:null,__DO_NOT_USE__ActionTypes:Dl,applyMiddleware:QPe,bindActionCreators:jPe,combineReducers:RPe,compose:QB,createStore:T1,legacy_createStore:_Pe});function NPe(t){var e=t.default;if(typeof e=="function"){var r=function(){return e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(n){var i=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return t[n]}})}),r}var MPe=NPe(DPe);MPe.compose;var qPe=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function zPe(t,e,r){var n=!1,i=!1,o=T1(function(a,l){if(!i){var c=function(g){return Array.isArray(g)&&g.findIndex(function(v){return typeof v!="string"&&typeof v!="number"})===-1};if(l.type.startsWith("SET")){var u=function(g){try{n=!0,"value"in l?g.set(l.value):g.set(ft)}finally{n=!1}};if(l.path){if(c(l.path)){l.path.length===0&&u(t);for(var d=t,f=!0,h=0,y=l.path;h<y.length;h++){var m=y[h];d[m]?d=d[m]:f=!1}f&&u(d)}}else u(t)}else l.type==="BREAKPOINT"&&r()}return t.promised||t.error?ft:t.get({noproxy:!0})},qPe({name:"".concat(window.location.hostname,": ").concat(e),trace:!0,traceLimit:16,autoPause:!0,shouldHotReload:!1,features:{persist:!0,pause:!0,lock:!1,export:"custom",import:"custom",jump:!1,skip:!1,reorder:!1,dispatch:!0,test:!1}})),s=function(a,l){if(n)l&&l();else try{i=!0,o.dispatch(a)}finally{i=!1}};return s}function LPe(t){return function(){var e,r,n=!1;return{onInit:function(i,o){if(!(typeof window>"u"||!("__REDUX_DEVTOOLS_EXTENSION__"in window))){if(t?.key===void 0){if(o.identifier===void 0)throw Error("State is missing Identifiable extension or Devtools key option");e=o.identifier(i)}else e=t.key;r=zPe(i,e,function(){n=!n}),i.promise||r?.({type:"CREATE",state:i.get({noproxy:!0,stealth:!0})})}},onSet:function(i,o){if(r?.({type:"SET [".concat(i.path.join("/"),"]"),state:i.get({noproxy:!0,stealth:!0}),descriptor:o}),n)debugger},onDestroy:function(){r?.({type:"DESTROY"})}}}}var zt=(t=>(t.Normal="Normal",t.Edit="Edit",t.Draft="Draft",t))(zt||{});const Fm="default",DB=[{name:Fm,inputs:[],servers:[],state:zt.Normal}],NB={activeTabIdx:0,tabs:[]};var ys=(t=>(t.Idle="idle",t.Loading="loading",t.Success="success",t.Error="error",t))(ys||{});function Ta(t){const e=new WeakMap;function r(n){if(typeof n!="object"||n===null)return n;if(e.has(n))return e.get(n);const i=Array.isArray(n)?[]:{};e.set(n,i);for(const o in n)Object.prototype.hasOwnProperty.call(n,o)&&(i[o]=r(n[o]));return i}return r(t)}function ck(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return!1;for(let i=0;i<t.length;i++)if(!ck(t[i],e[i]))return!1;return!0}const r=Object.keys(t),n=Object.keys(e);if(r.length!==n.length)return!1;for(let i=0;i<r.length;i++){const o=r[i];if(!Object.prototype.hasOwnProperty.call(e,o)||!ck(t[o],e[o]))return!1}return!0}return t!==t&&e!==e}function CN(t){return Object.keys(t).forEach(e=>{t[e]===void 0&&delete t[e]}),t}function Ya(){return!!window?.__TAURI__}async function In(t,e={},r){return window.__TAURI_INTERNALS__.invoke(t,e,r)}async function $N(t,e,r){const n=[],i=[];for(const o of t){const s=Promise.resolve().then(()=>r(o,t));if(n.push(s),e<=t.length){const a=s.then(()=>i.splice(i.indexOf(a),1));i.push(a),i.length>=e&&await Promise.race(i)}}return Promise.all(n)}const ii={FS:"fs",WEB:"web"};var nf;(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"})(nf||(nf={}));async function MB(){return In("plugin:path|resolve_directory",{directory:nf.AppData})}async function qB(){return In("plugin:path|resolve_directory",{directory:nf.Desktop})}function M_(){return window.__TAURI_INTERNALS__.plugins.path.sep}async function zB(...t){return In("plugin:path|resolve",{paths:t})}async function Rd(...t){return In("plugin:path|join",{paths:t})}async function LB(t){return In("plugin:path|dirname",{path:t})}async function VB(t){return In("plugin:path|extname",{path:t})}async function q_(t,e){return In("plugin:path|basename",{path:t,ext:e})}async function XB(t){return In("plugin:path|is_absolute",{path:t})}const VPe=Object.freeze(Object.defineProperty({__proto__:null,get BaseDirectory(){return nf},appDataDir:MB,basename:q_,desktopDir:qB,dirname:LB,extname:VB,isAbsolute:XB,join:Rd,resolve:zB,sep:M_},Symbol.toStringTag,{value:"Module"}));var uk;(function(t){t[t.Start=0]="Start",t[t.Current=1]="Current",t[t.End=2]="End"})(uk||(uk={}));async function dk(t,e){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");await In("plugin:fs|mkdir",{path:t instanceof URL?t.toString():t,options:e})}async function z_(t,e){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");return await In("plugin:fs|read_dir",{path:t instanceof URL?t.toString():t,options:e})}async function UB(t,e){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");const r=await In("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 _1(t,e){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");return await In("plugin:fs|read_text_file",{path:t instanceof URL?t.toString():t,options:e})}async function WB(t,e){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");await In("plugin:fs|remove",{path:t instanceof URL?t.toString():t,options:e})}async function BB(t,e,r){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");await In("plugin:fs|write_text_file",{path:t instanceof URL?t.toString():t,data:e,options:r})}async function L_(t,e){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");return await In("plugin:fs|exists",{path:t instanceof URL?t.toString():t,options:e})}const XPe=Object.freeze(Object.defineProperty({__proto__:null,get BaseDirectory(){return nf},get SeekMode(){return uk},exists:L_,mkdir:dk,readDir:z_,readFile:UB,readTextFile:_1,remove:WB,writeTextFile:BB},Symbol.toStringTag,{value:"Module"}));class cr{static utils=null;static async getUtils(){return cr.utils||(cr.utils=Ya()?await Promise.resolve().then(()=>require("./replay-tauri-path-DAj_5f9i.js")):await Promise.resolve().then(()=>Pie)),cr.utils}static async dirname(e){return(await cr.getUtils()).dirname(e)}static async join(...e){return(await cr.getUtils()).join(...e)}static async resolve(e){return(await cr.getUtils()).resolve(e)}static async isAbsolute(e){return(await cr.getUtils()).isAbsolute(e)}static async relative(e,r){return(await cr.getUtils()).relative(e,r)}static async extname(e){return(await cr.getUtils()).extname(e)}}const UPe=new Set(["node_modules"]);class kN{constructor(e){this.baseDir=e,this.initializeDirectory(e)}async initializeDirectory(e){await dk(e,{recursive:!0})}async ls(e){const r=await this.getFullPath(e);return this.getDirEntryFilesRecursively(r)}async getDirEntryFilesRecursively(e){try{const r=[],n=await z_(e);for(const i of n)if(i.isDirectory){if(UPe.has(i.name))continue;const o=await Rd(e,i.name),s=await this.getDirEntryFilesRecursively(o);r.push(...s)}else{const o=await Rd(e,i.name),s=await cr.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 _1(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=M_(),o=n.split(i).slice(0,-1).join(i);await dk(o,{recursive:!0}),await BB(n,r)}async remove(e){const r=await this.getFullPath(e);try{await WB(r)}catch(n){!n.includes("No such file or directory")&&!n.includes("forbidden path")&&console.error(n)}}async getFullPath(e){return await Rd(this.baseDir,e??"")}}class WPe{baseDir="";async ls(e=""){return[]}async get(e){return null}async set(e,r){}async remove(e){}}class BPe{constructor(e){this.projectId=e}async get(){const e=this.getKey();return localStorage.getItem(e)??null}async set(e){const r=this.getKey();localStorage.setItem(r,e)}async remove(){const e=this.getKey();localStorage.removeItem(e)}getKey(){return`replay:secrets:${this.projectId}`}}class FB{constructor(e){this.storage=e}itemIds=[];async getAbsolutePath(e){return await cr.resolve(await cr.join(this.storage.baseDir,"/",e))}async parseMany(e,r){return(await Promise.all(e.map(async i=>{try{return await this.parse(i,r)}catch(o){return console.error(`Error parsing from ${i.type} ${i.uri}:`,o),null}}))).filter(i=>i!==null)}setItemIds(e){this.itemIds=e}async write(e){e.state===zt.Draft||e.srcType!==ii.FS||await this.storage.set(e.id,await this.stringify(e))}async remove(e){await this.storage.remove(e)}async updateRoot(e,r){const n=e.actions;if(n){for(const o in n){const s=parseInt(o);switch(n[o]){case"D":await this.remove(this.itemIds[s]);break;case"I":case"U":await this.write(r[s]);break}}return}const i=this.itemIds.filter(o=>!r.some(s=>s.id===o));await Promise.all([...r.map(o=>this.write(o)),...i.map(o=>this.remove(o))])}async update(e,r){const i={path:e.path.slice(1),actions:e.actions};if(i.path.length===0&&await this.updateRoot(i,r),i.path.length>0){const o=i.path[0];i.path.length===1&&i.actions&&i.actions.id==="U"&&await this.remove(this.itemIds[o]),i.path[1]&&i.path[1]==="id"&&await this.remove(this.itemIds[o]),await this.write(r[o])}this.itemIds=r.map(o=>o.id)}}class FPe extends FB{parse(e){return{...e.content,id:e.uri,srcType:e.type}}async stringify(e){const{id:r,srcType:n,...i}=e;return await cr.extname(r)===".json"?JSON.stringify(i,null,2):Na.dump(i)}}var zn=(t=>(t.SIMPLE="simple",t.REGEX="regex",t.JSONPATH="jsonpath",t.XPATH="xpath",t))(zn||{});function ZPe(t){return typeof t=="function"?t:Array.isArray(t)?e=>{for(const r of t)if(typeof r=="string"&&e===r||r instanceof RegExp&&r.test(e))return!0}:()=>!1}const YPe=`
|
|
344
344
|
`;function GPe(t,e){let r="";return e.format&&e.indentBy.length>0&&(r=YPe),ZB(t,e,"",r)}function ZB(t,e,r,n){let i="",o=!1;for(let s=0;s<t.length;s++){const a=t[s],l=HPe(a);if(l===void 0)continue;let c="";if(r.length===0?c=l:c=`${r}.${l}`,l===e.textNodeName){let y=a[l];JPe(c,e)||(y=e.tagValueProcessor(l,y),y=YB(y,e)),o&&(i+=n),i+=y,o=!1;continue}else if(l===e.cdataPropName){o&&(i+=n),i+=`<![CDATA[${a[l][0][e.textNodeName]}]]>`,o=!1;continue}else if(l===e.commentPropName){i+=n+`<!--${a[l][0][e.textNodeName]}-->`,o=!0;continue}else if(l[0]==="?"){const y=EN(a[":@"],e),m=l==="?xml"?"":n;let g=a[l][0][e.textNodeName];g=g.length!==0?" "+g:"",i+=m+`<${l}${g}${y}?>`,o=!0;continue}let u=n;u!==""&&(u+=e.indentBy);const d=EN(a[":@"],e),f=n+`<${l}${d}`,h=ZB(a[l],e,c,u);e.unpairedTags.indexOf(l)!==-1?e.suppressUnpairedNode?i+=f+">":i+=f+"/>":(!h||h.length===0)&&e.suppressEmptyNode?i+=f+"/>":h&&h.endsWith(">")?i+=f+`>${h}${n}</${l}>`:(i+=f+">",h&&n!==""&&(h.includes("/>")||h.includes("</"))?i+=n+e.indentBy+h+n:i+=h,i+=`</${l}>`),o=!0}return i}function HPe(t){const e=Object.keys(t);for(let r=0;r<e.length;r++){const n=e[r];if(t.hasOwnProperty(n)&&n!==":@")return n}}function EN(t,e){let r="";if(t&&!e.ignoreAttributes)for(let n in t){if(!t.hasOwnProperty(n))continue;let i=e.attributeValueProcessor(n,t[n]);i=YB(i,e),i===!0&&e.suppressBooleanAttributes?r+=` ${n.substr(e.attributeNamePrefix.length)}`:r+=` ${n.substr(e.attributeNamePrefix.length)}="${i}"`}return r}function JPe(t,e){t=t.substr(0,t.length-e.textNodeName.length-1);let r=t.substr(t.lastIndexOf(".")+1);for(let n in e.stopNodes)if(e.stopNodes[n]===t||e.stopNodes[n]==="*."+r)return!0;return!1}function YB(t,e){if(t&&t.length>0&&e.processEntities)for(let r=0;r<e.entities.length;r++){const n=e.entities[r];t=t.replace(n.regex,n.val)}return t}const KPe={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(t,e){return e},attributeValueProcessor:function(t,e){return e},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&"},{regex:new RegExp(">","g"),val:">"},{regex:new RegExp("<","g"),val:"<"},{regex:new RegExp("'","g"),val:"'"},{regex:new RegExp('"',"g"),val:"""}],processEntities:!0,stopNodes:[],oneListGroup:!1};function ec(t){this.options=Object.assign({},KPe,t),this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn=ZPe(this.options.ignoreAttributes),this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=rCe),this.processTextOrObjNode=eCe,this.options.format?(this.indentate=tCe,this.tagEndChar=`>
|
|
345
345
|
`,this.newLine=`
|
|
346
346
|
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}ec.prototype.build=function(t){return this.options.preserveOrder?GPe(t,this.options):(Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t}),this.j2x(t,0,[]).val)};ec.prototype.j2x=function(t,e,r){let n="",i="";const o=r.join(".");for(let s in t)if(Object.prototype.hasOwnProperty.call(t,s))if(typeof t[s]>"u")this.isAttribute(s)&&(i+="");else if(t[s]===null)this.isAttribute(s)||s===this.options.cdataPropName?i+="":s[0]==="?"?i+=this.indentate(e)+"<"+s+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+s+"/"+this.tagEndChar;else if(t[s]instanceof Date)i+=this.buildTextValNode(t[s],s,"",e);else if(typeof t[s]!="object"){const a=this.isAttribute(s);if(a&&!this.ignoreAttributesFn(a,o))n+=this.buildAttrPairStr(a,""+t[s]);else if(!a)if(s===this.options.textNodeName){let l=this.options.tagValueProcessor(s,""+t[s]);i+=this.replaceEntitiesValue(l)}else i+=this.buildTextValNode(t[s],s,"",e)}else if(Array.isArray(t[s])){const a=t[s].length;let l="",c="";for(let u=0;u<a;u++){const d=t[s][u];if(!(typeof d>"u"))if(d===null)s[0]==="?"?i+=this.indentate(e)+"<"+s+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+s+"/"+this.tagEndChar;else if(typeof d=="object")if(this.options.oneListGroup){const f=this.j2x(d,e+1,r.concat(s));l+=f.val,this.options.attributesGroupName&&d.hasOwnProperty(this.options.attributesGroupName)&&(c+=f.attrStr)}else l+=this.processTextOrObjNode(d,s,e,r);else if(this.options.oneListGroup){let f=this.options.tagValueProcessor(s,d);f=this.replaceEntitiesValue(f),l+=f}else l+=this.buildTextValNode(d,s,"",e)}this.options.oneListGroup&&(l=this.buildObjectNode(l,s,c,e)),i+=l}else if(this.options.attributesGroupName&&s===this.options.attributesGroupName){const a=Object.keys(t[s]),l=a.length;for(let c=0;c<l;c++)n+=this.buildAttrPairStr(a[c],""+t[s][a[c]])}else i+=this.processTextOrObjNode(t[s],s,e,r);return{attrStr:n,val:i}};ec.prototype.buildAttrPairStr=function(t,e){return e=this.options.attributeValueProcessor(t,""+e),e=this.replaceEntitiesValue(e),this.options.suppressBooleanAttributes&&e==="true"?" "+t:" "+t+'="'+e+'"'};function eCe(t,e,r,n){const i=this.j2x(t,r+1,n.concat(e));return t[this.options.textNodeName]!==void 0&&Object.keys(t).length===1?this.buildTextValNode(t[this.options.textNodeName],e,i.attrStr,r):this.buildObjectNode(i.val,e,i.attrStr,r)}ec.prototype.buildObjectNode=function(t,e,r,n){if(t==="")return e[0]==="?"?this.indentate(n)+"<"+e+r+"?"+this.tagEndChar:this.indentate(n)+"<"+e+r+this.closeTag(e)+this.tagEndChar;{let i="</"+e+this.tagEndChar,o="";return e[0]==="?"&&(o="?",i=""),(r||r==="")&&t.indexOf("<")===-1?this.indentate(n)+"<"+e+r+o+">"+t+i:this.options.commentPropName!==!1&&e===this.options.commentPropName&&o.length===0?this.indentate(n)+`<!--${t}-->`+this.newLine:this.indentate(n)+"<"+e+r+o+this.tagEndChar+t+this.indentate(n)+i}};ec.prototype.closeTag=function(t){let e="";return this.options.unpairedTags.indexOf(t)!==-1?this.options.suppressUnpairedNode||(e="/"):this.options.suppressEmptyNode?e="/":e=`></${t}`,e};ec.prototype.buildTextValNode=function(t,e,r,n){if(this.options.cdataPropName!==!1&&e===this.options.cdataPropName)return this.indentate(n)+`<![CDATA[${t}]]>`+this.newLine;if(this.options.commentPropName!==!1&&e===this.options.commentPropName)return this.indentate(n)+`<!--${t}-->`+this.newLine;if(e[0]==="?")return this.indentate(n)+"<"+e+r+"?"+this.tagEndChar;{let i=this.options.tagValueProcessor(e,t);return i=this.replaceEntitiesValue(i),i===""?this.indentate(n)+"<"+e+r+this.closeTag(e)+this.tagEndChar:this.indentate(n)+"<"+e+r+">"+i+"</"+e+this.tagEndChar}};ec.prototype.replaceEntitiesValue=function(t){if(t&&t.length>0&&this.options.processEntities)for(let e=0;e<this.options.entities.length;e++){const r=this.options.entities[e];t=t.replace(r.regex,r.val)}return t};function tCe(t){return this.options.indentBy.repeat(t)}function rCe(t){return t.startsWith(this.options.attributeNamePrefix)&&t!==this.options.textNodeName?t.substr(this.attrPrefixLen):!1}const GB=1024;let nCe=0,co=class{constructor(e,r){this.from=e,this.to=r}};class mt{constructor(e={}){this.id=nCe++,this.perNode=!!e.perNode,this.deserialize=e.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")})}add(e){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return typeof e!="function"&&(e=Bn.match(e)),r=>{let n=e(r);return n===void 0?null:[this,n]}}}mt.closedBy=new mt({deserialize:t=>t.split(" ")});mt.openedBy=new mt({deserialize:t=>t.split(" ")});mt.group=new mt({deserialize:t=>t.split(" ")});mt.isolate=new mt({deserialize:t=>{if(t&&t!="rtl"&&t!="ltr"&&t!="auto")throw new RangeError("Invalid value for isolate: "+t);return t||"auto"}});mt.contextHash=new mt({perNode:!0});mt.lookAhead=new mt({perNode:!0});mt.mounted=new mt({perNode:!0});class Jh{constructor(e,r,n){this.tree=e,this.overlay=r,this.parser=n}static get(e){return e&&e.props&&e.props[mt.mounted.id]}}const iCe=Object.create(null);class Bn{constructor(e,r,n,i=0){this.name=e,this.props=r,this.id=n,this.flags=i}static define(e){let r=e.props&&e.props.length?Object.create(null):iCe,n=(e.top?1:0)|(e.skipped?2:0)|(e.error?4:0)|(e.name==null?8:0),i=new Bn(e.name||"",r,e.id,n);if(e.props){for(let o of e.props)if(Array.isArray(o)||(o=o(i)),o){if(o[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");r[o[0].id]=o[1]}}return i}prop(e){return this.props[e.id]}get isTop(){return(this.flags&1)>0}get isSkipped(){return(this.flags&2)>0}get isError(){return(this.flags&4)>0}get isAnonymous(){return(this.flags&8)>0}is(e){if(typeof e=="string"){if(this.name==e)return!0;let r=this.prop(mt.group);return r?r.indexOf(e)>-1:!1}return this.id==e}static match(e){let r=Object.create(null);for(let n in e)for(let i of n.split(" "))r[i]=e[n];return n=>{for(let i=n.prop(mt.group),o=-1;o<(i?i.length:0);o++){let s=r[o<0?n.name:i[o]];if(s)return s}}}}Bn.none=new Bn("",Object.create(null),0,8);class A1{constructor(e){this.types=e;for(let r=0;r<e.length;r++)if(e[r].id!=r)throw new RangeError("Node type ids should correspond to array positions when creating a node set")}extend(...e){let r=[];for(let n of this.types){let i=null;for(let o of e){let s=o(n);s&&(i||(i=Object.assign({},n.props)),i[s[0].id]=s[1])}r.push(i?new Bn(n.name,i,n.id,n.flags):n)}return new A1(r)}}const wO=new WeakMap,TN=new WeakMap;var gr;(function(t){t[t.ExcludeBuffers=1]="ExcludeBuffers",t[t.IncludeAnonymous=2]="IncludeAnonymous",t[t.IgnoreMounts=4]="IgnoreMounts",t[t.IgnoreOverlays=8]="IgnoreOverlays"})(gr||(gr={}));let Or=class fk{constructor(e,r,n,i,o){if(this.type=e,this.children=r,this.positions=n,this.length=i,this.props=null,o&&o.length){this.props=Object.create(null);for(let[s,a]of o)this.props[typeof s=="number"?s:s.id]=a}}toString(){let e=Jh.get(this);if(e&&!e.overlay)return e.tree.toString();let r="";for(let n of this.children){let i=n.toString();i&&(r&&(r+=","),r+=i)}return this.type.name?(/\W/.test(this.type.name)&&!this.type.isError?JSON.stringify(this.type.name):this.type.name)+(r.length?"("+r+")":""):r}cursor(e=0){return new g0(this.topNode,e)}cursorAt(e,r=0,n=0){let i=wO.get(this)||this.topNode,o=new g0(i);return o.moveTo(e,r),wO.set(this,o._tree),o}get topNode(){return new yo(this,0,0,null)}resolve(e,r=0){let n=Kh(wO.get(this)||this.topNode,e,r,!1);return wO.set(this,n),n}resolveInner(e,r=0){let n=Kh(TN.get(this)||this.topNode,e,r,!0);return TN.set(this,n),n}resolveStack(e,r=0){return aCe(this,e,r)}iterate(e){let{enter:r,leave:n,from:i=0,to:o=this.length}=e,s=e.mode||0,a=(s&gr.IncludeAnonymous)>0;for(let l=this.cursor(s|gr.IncludeAnonymous);;){let c=!1;if(l.from<=o&&l.to>=i&&(!a&&l.type.isAnonymous||r(l)!==!1)){if(l.firstChild())continue;c=!0}for(;c&&n&&(a||!l.type.isAnonymous)&&n(l),!l.nextSibling();){if(!l.parent())return;c=!0}}}prop(e){return e.perNode?this.props?this.props[e.id]:void 0:this.type.prop(e)}get propValues(){let e=[];if(this.props)for(let r in this.props)e.push([+r,this.props[r]]);return e}balance(e={}){return this.children.length<=8?this:U_(Bn.none,this.children,this.positions,0,this.children.length,0,this.length,(r,n,i)=>new fk(this.type,r,n,i,this.propValues),e.makeTree||((r,n,i)=>new fk(Bn.none,r,n,i)))}static build(e){return lCe(e)}};Or.empty=new Or(Bn.none,[],[],0);class V_{constructor(e,r){this.buffer=e,this.index=r}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new V_(this.buffer,this.index)}}class Xl{constructor(e,r,n){this.buffer=e,this.length=r,this.set=n}get type(){return Bn.none}toString(){let e=[];for(let r=0;r<this.buffer.length;)e.push(this.childString(r)),r=this.buffer[r+3];return e.join(",")}childString(e){let r=this.buffer[e],n=this.buffer[e+3],i=this.set.types[r],o=i.name;if(/\W/.test(o)&&!i.isError&&(o=JSON.stringify(o)),e+=4,n==e)return o;let s=[];for(;e<n;)s.push(this.childString(e)),e=this.buffer[e+3];return o+"("+s.join(",")+")"}findChild(e,r,n,i,o){let{buffer:s}=this,a=-1;for(let l=e;l!=r&&!(HB(o,i,s[l+1],s[l+2])&&(a=l,n>0));l=s[l+3]);return a}slice(e,r,n){let i=this.buffer,o=new Uint16Array(r-e),s=0;for(let a=e,l=0;a<r;){o[l++]=i[a++],o[l++]=i[a++]-n;let c=o[l++]=i[a++]-n;o[l++]=i[a++]-e,s=Math.max(s,c)}return new Xl(o,s,this.set)}}function HB(t,e,r,n){switch(t){case-2:return r<e;case-1:return n>=e&&r<e;case 0:return r<e&&n>e;case 1:return r<=e&&n>e;case 2:return n>e;case 4:return!0}}function Kh(t,e,r,n){for(var i;t.from==t.to||(r<1?t.from>=e:t.from>e)||(r>-1?t.to<=e:t.to<e);){let s=!n&&t instanceof yo&&t.index<0?null:t.parent;if(!s)return t;t=s}let o=n?0:gr.IgnoreOverlays;if(n)for(let s=t,a=s.parent;a;s=a,a=s.parent)s instanceof yo&&s.index<0&&((i=a.enter(e,r,o))===null||i===void 0?void 0:i.from)!=s.from&&(t=a);for(;;){let s=t.enter(e,r,o);if(!s)return t;t=s}}class JB{cursor(e=0){return new g0(this,e)}getChild(e,r=null,n=null){let i=_N(this,e,r,n);return i.length?i[0]:null}getChildren(e,r=null,n=null){return _N(this,e,r,n)}resolve(e,r=0){return Kh(this,e,r,!1)}resolveInner(e,r=0){return Kh(this,e,r,!0)}matchContext(e){return pk(this.parent,e)}enterUnfinishedNodesBefore(e){let r=this.childBefore(e),n=this;for(;r;){let i=r.lastChild;if(!i||i.to!=r.to)break;i.type.isError&&i.from==i.to?(n=r,r=i.prevSibling):r=i}return n}get node(){return this}get next(){return this.parent}}let yo=class Iv extends JB{constructor(e,r,n,i){super(),this._tree=e,this.from=r,this.index=n,this._parent=i}get type(){return this._tree.type}get name(){return this._tree.type.name}get to(){return this.from+this._tree.length}nextChild(e,r,n,i,o=0){for(let s=this;;){for(let{children:a,positions:l}=s._tree,c=r>0?a.length:-1;e!=c;e+=r){let u=a[e],d=l[e]+s.from;if(HB(i,n,d,d+u.length)){if(u instanceof Xl){if(o&gr.ExcludeBuffers)continue;let f=u.findChild(0,u.buffer.length,r,n-d,i);if(f>-1)return new Cs(new oCe(s,u,e,d),null,f)}else if(o&gr.IncludeAnonymous||!u.type.isAnonymous||X_(u)){let f;if(!(o&gr.IgnoreMounts)&&(f=Jh.get(u))&&!f.overlay)return new Iv(f.tree,d,e,s);let h=new Iv(u,d,e,s);return o&gr.IncludeAnonymous||!h.type.isAnonymous?h:h.nextChild(r<0?u.children.length-1:0,r,n,i)}}}if(o&gr.IncludeAnonymous||!s.type.isAnonymous||(s.index>=0?e=s.index+r:e=r<0?-1:s._parent._tree.children.length,s=s._parent,!s))return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(e){return this.nextChild(0,1,e,2)}childBefore(e){return this.nextChild(this._tree.children.length-1,-1,e,-2)}enter(e,r,n=0){let i;if(!(n&gr.IgnoreOverlays)&&(i=Jh.get(this._tree))&&i.overlay){let o=e-this.from;for(let{from:s,to:a}of i.overlay)if((r>0?s<=o:s<o)&&(r<0?a>=o:a>o))return new Iv(i.tree,i.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,e,r,n)}nextSignificantParent(){let e=this;for(;e.type.isAnonymous&&e._parent;)e=e._parent;return e}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}};function _N(t,e,r,n){let i=t.cursor(),o=[];if(!i.firstChild())return o;if(r!=null){for(let s=!1;!s;)if(s=i.type.is(r),!i.nextSibling())return o}for(;;){if(n!=null&&i.type.is(n))return o;if(i.type.is(e)&&o.push(i.node),!i.nextSibling())return n==null?o:[]}}function pk(t,e,r=e.length-1){for(let n=t;r>=0;n=n.parent){if(!n)return!1;if(!n.type.isAnonymous){if(e[r]&&e[r]!=n.name)return!1;r--}}return!0}class oCe{constructor(e,r,n,i){this.parent=e,this.buffer=r,this.index=n,this.start=i}}class Cs extends JB{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(e,r,n){super(),this.context=e,this._parent=r,this.index=n,this.type=e.buffer.set.types[e.buffer.buffer[n]]}child(e,r,n){let{buffer:i}=this.context,o=i.findChild(this.index+4,i.buffer[this.index+3],e,r-this.context.start,n);return o<0?null:new Cs(this.context,this,o)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(e){return this.child(1,e,2)}childBefore(e){return this.child(-1,e,-2)}enter(e,r,n=0){if(n&gr.ExcludeBuffers)return null;let{buffer:i}=this.context,o=i.findChild(this.index+4,i.buffer[this.index+3],r>0?1:-1,e-this.context.start,r);return o<0?null:new Cs(this.context,this,o)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(e){return this._parent?null:this.context.parent.nextChild(this.context.index+e,e,0,4)}get nextSibling(){let{buffer:e}=this.context,r=e.buffer[this.index+3];return r<(this._parent?e.buffer[this._parent.index+3]:e.buffer.length)?new Cs(this.context,this._parent,r):this.externalSibling(1)}get prevSibling(){let{buffer:e}=this.context,r=this._parent?this._parent.index+4:0;return this.index==r?this.externalSibling(-1):new Cs(this.context,this._parent,e.findChild(r,this.index,-1,0,4))}get tree(){return null}toTree(){let e=[],r=[],{buffer:n}=this.context,i=this.index+4,o=n.buffer[this.index+3];if(o>i){let s=n.buffer[this.index+1];e.push(n.slice(i,o,s)),r.push(0)}return new Or(this.type,e,r,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function KB(t){if(!t.length)return null;let e=0,r=t[0];for(let o=1;o<t.length;o++){let s=t[o];(s.from>r.from||s.to<r.to)&&(r=s,e=o)}let n=r instanceof yo&&r.index<0?null:r.parent,i=t.slice();return n?i[e]=n:i.splice(e,1),new sCe(i,r)}class sCe{constructor(e,r){this.heads=e,this.node=r}get next(){return KB(this.heads)}}function aCe(t,e,r){let n=t.resolveInner(e,r),i=null;for(let o=n instanceof yo?n:n.context.parent;o;o=o.parent)if(o.index<0){let s=o.parent;(i||(i=[n])).push(s.resolve(e,r)),o=s}else{let s=Jh.get(o.tree);if(s&&s.overlay&&s.overlay[0].from<=e&&s.overlay[s.overlay.length-1].to>=e){let a=new yo(s.tree,s.overlay[0].from+o.from,-1,o);(i||(i=[n])).push(Kh(a,e,r,!1))}}return i?KB(i):n}class g0{get name(){return this.type.name}constructor(e,r=0){if(this.mode=r,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,e instanceof yo)this.yieldNode(e);else{this._tree=e.context.parent,this.buffer=e.context;for(let n=e._parent;n;n=n._parent)this.stack.unshift(n.index);this.bufferNode=e,this.yieldBuf(e.index)}}yieldNode(e){return e?(this._tree=e,this.type=e.type,this.from=e.from,this.to=e.to,!0):!1}yieldBuf(e,r){this.index=e;let{start:n,buffer:i}=this.buffer;return this.type=r||i.set.types[i.buffer[e]],this.from=n+i.buffer[e+1],this.to=n+i.buffer[e+2],!0}yield(e){return e?e instanceof yo?(this.buffer=null,this.yieldNode(e)):(this.buffer=e.context,this.yieldBuf(e.index,e.type)):!1}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(e,r,n){if(!this.buffer)return this.yield(this._tree.nextChild(e<0?this._tree._tree.children.length-1:0,e,r,n,this.mode));let{buffer:i}=this.buffer,o=i.findChild(this.index+4,i.buffer[this.index+3],e,r-this.buffer.start,n);return o<0?!1:(this.stack.push(this.index),this.yieldBuf(o))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(e){return this.enterChild(1,e,2)}childBefore(e){return this.enterChild(-1,e,-2)}enter(e,r,n=this.mode){return this.buffer?n&gr.ExcludeBuffers?!1:this.enterChild(1,e,r):this.yield(this._tree.enter(e,r,n))}parent(){if(!this.buffer)return this.yieldNode(this.mode&gr.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let e=this.mode&gr.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(e)}sibling(e){if(!this.buffer)return this._tree._parent?this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+e,e,0,4,this.mode)):!1;let{buffer:r}=this.buffer,n=this.stack.length-1;if(e<0){let i=n<0?0:this.stack[n]+4;if(this.index!=i)return this.yieldBuf(r.findChild(i,this.index,-1,0,4))}else{let i=r.buffer[this.index+3];if(i<(n<0?r.buffer.length:r.buffer[this.stack[n]+3]))return this.yieldBuf(i)}return n<0?this.yield(this.buffer.parent.nextChild(this.buffer.index+e,e,0,4,this.mode)):!1}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(e){let r,n,{buffer:i}=this;if(i){if(e>0){if(this.index<i.buffer.buffer.length)return!1}else for(let o=0;o<this.index;o++)if(i.buffer.buffer[o+3]<this.index)return!1;({index:r,parent:n}=i)}else({index:r,_parent:n}=this._tree);for(;n;{index:r,_parent:n}=n)if(r>-1)for(let o=r+e,s=e<0?-1:n._tree.children.length;o!=s;o+=e){let a=n._tree.children[o];if(this.mode&gr.IncludeAnonymous||a instanceof Xl||!a.type.isAnonymous||X_(a))return!1}return!0}move(e,r){if(r&&this.enterChild(e,0,4))return!0;for(;;){if(this.sibling(e))return!0;if(this.atLastNode(e)||!this.parent())return!1}}next(e=!0){return this.move(1,e)}prev(e=!0){return this.move(-1,e)}moveTo(e,r=0){for(;(this.from==this.to||(r<1?this.from>=e:this.from>e)||(r>-1?this.to<=e:this.to<e))&&this.parent(););for(;this.enterChild(1,e,r););return this}get node(){if(!this.buffer)return this._tree;let e=this.bufferNode,r=null,n=0;if(e&&e.context==this.buffer)e:for(let i=this.index,o=this.stack.length;o>=0;){for(let s=e;s;s=s._parent)if(s.index==i){if(i==this.index)return s;r=s,n=o+1;break e}i=this.stack[--o]}for(let i=n;i<this.stack.length;i++)r=new Cs(this.buffer,r,this.stack[i]);return this.bufferNode=new Cs(this.buffer,r,this.index)}get tree(){return this.buffer?null:this._tree._tree}iterate(e,r){for(let n=0;;){let i=!1;if(this.type.isAnonymous||e(this)!==!1){if(this.firstChild()){n++;continue}this.type.isAnonymous||(i=!0)}for(;;){if(i&&r&&r(this),i=this.type.isAnonymous,!n)return;if(this.nextSibling())break;this.parent(),n--,i=!0}}}matchContext(e){if(!this.buffer)return pk(this.node.parent,e);let{buffer:r}=this.buffer,{types:n}=r.set;for(let i=e.length-1,o=this.stack.length-1;i>=0;o--){if(o<0)return pk(this._tree,e,i);let s=n[r.buffer[this.stack[o]]];if(!s.isAnonymous){if(e[i]&&e[i]!=s.name)return!1;i--}}return!0}}function X_(t){return t.children.some(e=>e instanceof Xl||!e.type.isAnonymous||X_(e))}function lCe(t){var e;let{buffer:r,nodeSet:n,maxBufferLength:i=GB,reused:o=[],minRepeatType:s=n.types.length}=t,a=Array.isArray(r)?new V_(r,r.length):r,l=n.types,c=0,u=0;function d(x,w,C,k,R,N){let{id:D,start:U,end:B,size:G}=a,H=u,ne=c;for(;G<0;)if(a.next(),G==-1){let j=o[D];C.push(j),k.push(U-x);return}else if(G==-3){c=D;return}else if(G==-4){u=D;return}else throw new RangeError(`Unrecognized record size: ${G}`);let ce=l[D],Z,oe,M=U-x;if(B-U<=i&&(oe=g(a.pos-w,R))){let j=new Uint16Array(oe.size-oe.skip),V=a.pos-oe.size,Q=j.length;for(;a.pos>V;)Q=v(oe.start,j,Q);Z=new Xl(j,B-oe.start,n),M=oe.start-x}else{let j=a.pos-G;a.next();let V=[],Q=[],$=D>=s?D:-1,_=0,q=B;for(;a.pos>j;)$>=0&&a.id==$&&a.size>=0?(a.end<=q-i&&(y(V,Q,U,_,a.end,q,$,H,ne),_=V.length,q=a.end),a.next()):N>2500?f(U,j,V,Q):d(U,j,V,Q,$,N+1);if($>=0&&_>0&&_<V.length&&y(V,Q,U,_,U,q,$,H,ne),V.reverse(),Q.reverse(),$>-1&&_>0){let Y=h(ce,ne);Z=U_(ce,V,Q,0,V.length,0,B-U,Y,Y)}else Z=m(ce,V,Q,B-U,H-B,ne)}C.push(Z),k.push(M)}function f(x,w,C,k){let R=[],N=0,D=-1;for(;a.pos>w;){let{id:U,start:B,end:G,size:H}=a;if(H>4)a.next();else{if(D>-1&&B<D)break;D<0&&(D=G-i),R.push(U,B,G),N++,a.next()}}if(N){let U=new Uint16Array(N*4),B=R[R.length-2];for(let G=R.length-3,H=0;G>=0;G-=3)U[H++]=R[G],U[H++]=R[G+1]-B,U[H++]=R[G+2]-B,U[H++]=H;C.push(new Xl(U,R[2]-B,n)),k.push(B-x)}}function h(x,w){return(C,k,R)=>{let N=0,D=C.length-1,U,B;if(D>=0&&(U=C[D])instanceof Or){if(!D&&U.type==x&&U.length==R)return U;(B=U.prop(mt.lookAhead))&&(N=k[D]+U.length+B)}return m(x,C,k,R,N,w)}}function y(x,w,C,k,R,N,D,U,B){let G=[],H=[];for(;x.length>k;)G.push(x.pop()),H.push(w.pop()+C-R);x.push(m(n.types[D],G,H,N-R,U-N,B)),w.push(R-C)}function m(x,w,C,k,R,N,D){if(N){let U=[mt.contextHash,N];D=D?[U].concat(D):[U]}if(R>25){let U=[mt.lookAhead,R];D=D?[U].concat(D):[U]}return new Or(x,w,C,k,D)}function g(x,w){let C=a.fork(),k=0,R=0,N=0,D=C.end-i,U={size:0,start:0,skip:0};e:for(let B=C.pos-x;C.pos>B;){let G=C.size;if(C.id==w&&G>=0){U.size=k,U.start=R,U.skip=N,N+=4,k+=4,C.next();continue}let H=C.pos-G;if(G<0||H<B||C.start<D)break;let ne=C.id>=s?4:0,ce=C.start;for(C.next();C.pos>H;){if(C.size<0)if(C.size==-3)ne+=4;else break e;else C.id>=s&&(ne+=4);C.next()}R=ce,k+=G,N+=ne}return(w<0||k==x)&&(U.size=k,U.start=R,U.skip=N),U.size>4?U:void 0}function v(x,w,C){let{id:k,start:R,end:N,size:D}=a;if(a.next(),D>=0&&k<s){let U=C;if(D>4){let B=a.pos-(D-4);for(;a.pos>B;)C=v(x,w,C)}w[--C]=U,w[--C]=N-x,w[--C]=R-x,w[--C]=k}else D==-3?c=k:D==-4&&(u=k);return C}let O=[],b=[];for(;a.pos>0;)d(t.start||0,t.bufferStart||0,O,b,-1,0);let S=(e=t.length)!==null&&e!==void 0?e:O.length?b[0]+O[0].length:0;return new Or(l[t.topID],O.reverse(),b.reverse(),S)}const AN=new WeakMap;function Rv(t,e){if(!t.isAnonymous||e instanceof Xl||e.type!=t)return 1;let r=AN.get(e);if(r==null){r=1;for(let n of e.children){if(n.type!=t||!(n instanceof Or)){r=1;break}r+=Rv(t,n)}AN.set(e,r)}return r}function U_(t,e,r,n,i,o,s,a,l){let c=0;for(let y=n;y<i;y++)c+=Rv(t,e[y]);let u=Math.ceil(c*1.5/8),d=[],f=[];function h(y,m,g,v,O){for(let b=g;b<v;){let S=b,x=m[b],w=Rv(t,y[b]);for(b++;b<v;b++){let C=Rv(t,y[b]);if(w+C>=u)break;w+=C}if(b==S+1){if(w>u){let C=y[S];h(C.children,C.positions,0,C.children.length,m[S]+O);continue}d.push(y[S])}else{let C=m[b-1]+y[b-1].length-x;d.push(U_(t,y,m,S,b,x,C,null,l))}f.push(x+O-o)}}return h(e,r,n,i,0),(a||l)(d,f,s)}class W_{constructor(){this.map=new WeakMap}setBuffer(e,r,n){let i=this.map.get(e);i||this.map.set(e,i=new Map),i.set(r,n)}getBuffer(e,r){let n=this.map.get(e);return n&&n.get(r)}set(e,r){e instanceof Cs?this.setBuffer(e.context.buffer,e.index,r):e instanceof yo&&this.map.set(e.tree,r)}get(e){return e instanceof Cs?this.getBuffer(e.context.buffer,e.index):e instanceof yo?this.map.get(e.tree):void 0}cursorSet(e,r){e.buffer?this.setBuffer(e.buffer.buffer,e.index,r):this.map.set(e.tree,r)}cursorGet(e){return e.buffer?this.getBuffer(e.buffer.buffer,e.index):this.map.get(e.tree)}}class _a{constructor(e,r,n,i,o=!1,s=!1){this.from=e,this.to=r,this.tree=n,this.offset=i,this.open=(o?1:0)|(s?2:0)}get openStart(){return(this.open&1)>0}get openEnd(){return(this.open&2)>0}static addTree(e,r=[],n=!1){let i=[new _a(0,e.length,e,0,!1,n)];for(let o of r)o.to>e.length&&i.push(o);return i}static applyChanges(e,r,n=128){if(!r.length)return e;let i=[],o=1,s=e.length?e[0]:null;for(let a=0,l=0,c=0;;a++){let u=a<r.length?r[a]:null,d=u?u.fromA:1e9;if(d-l>=n)for(;s&&s.from<d;){let f=s;if(l>=f.from||d<=f.to||c){let h=Math.max(f.from,l)-c,y=Math.min(f.to,d)-c;f=h>=y?null:new _a(h,y,f.tree,f.offset+c,a>0,!!u)}if(f&&i.push(f),s.to>d)break;s=o<e.length?e[o++]:null}if(!u)break;l=u.toA,c=u.toA-u.toB}return i}}let B_=class{startParse(e,r,n){return typeof e=="string"&&(e=new cCe(e)),n=n?n.length?n.map(i=>new co(i.from,i.to)):[new co(0,0)]:[new co(0,e.length)],this.createParse(e,r||[],n)}parse(e,r,n){let i=this.startParse(e,r,n);for(;;){let o=i.advance();if(o)return o}}};class cCe{constructor(e){this.string=e}get length(){return this.string.length}chunk(e){return this.string.slice(e)}get lineChunks(){return!1}read(e,r){return this.string.slice(e,r)}}function uCe(t){return(e,r,n,i)=>new fCe(e,t,r,n,i)}class IN{constructor(e,r,n,i,o){this.parser=e,this.parse=r,this.overlay=n,this.target=i,this.from=o}}function RN(t){if(!t.length||t.some(e=>e.from>=e.to))throw new RangeError("Invalid inner parse ranges given: "+JSON.stringify(t))}class dCe{constructor(e,r,n,i,o,s,a){this.parser=e,this.predicate=r,this.mounts=n,this.index=i,this.start=o,this.target=s,this.prev=a,this.depth=0,this.ranges=[]}}const hk=new mt({perNode:!0});class fCe{constructor(e,r,n,i,o){this.nest=r,this.input=n,this.fragments=i,this.ranges=o,this.inner=[],this.innerDone=0,this.baseTree=null,this.stoppedAt=null,this.baseParse=e}advance(){if(this.baseParse){let n=this.baseParse.advance();if(!n)return null;if(this.baseParse=null,this.baseTree=n,this.startInner(),this.stoppedAt!=null)for(let i of this.inner)i.parse.stopAt(this.stoppedAt)}if(this.innerDone==this.inner.length){let n=this.baseTree;return this.stoppedAt!=null&&(n=new Or(n.type,n.children,n.positions,n.length,n.propValues.concat([[hk,this.stoppedAt]]))),n}let e=this.inner[this.innerDone],r=e.parse.advance();if(r){this.innerDone++;let n=Object.assign(Object.create(null),e.target.props);n[mt.mounted.id]=new Jh(r,e.overlay,e.parser),e.target.props=n}return null}get parsedPos(){if(this.baseParse)return 0;let e=this.input.length;for(let r=this.innerDone;r<this.inner.length;r++)this.inner[r].from<e&&(e=Math.min(e,this.inner[r].parse.parsedPos));return e}stopAt(e){if(this.stoppedAt=e,this.baseParse)this.baseParse.stopAt(e);else for(let r=this.innerDone;r<this.inner.length;r++)this.inner[r].parse.stopAt(e)}startInner(){let e=new mCe(this.fragments),r=null,n=null,i=new g0(new yo(this.baseTree,this.ranges[0].from,0,null),gr.IncludeAnonymous|gr.IgnoreMounts);e:for(let o,s;;){let a=!0,l;if(this.stoppedAt!=null&&i.from>=this.stoppedAt)a=!1;else if(e.hasNode(i)){if(r){let c=r.mounts.find(u=>u.frag.from<=i.from&&u.frag.to>=i.to&&u.mount.overlay);if(c)for(let u of c.mount.overlay){let d=u.from+c.pos,f=u.to+c.pos;d>=i.from&&f<=i.to&&!r.ranges.some(h=>h.from<f&&h.to>d)&&r.ranges.push({from:d,to:f})}}a=!1}else if(n&&(s=pCe(n.ranges,i.from,i.to)))a=s!=2;else if(!i.type.isAnonymous&&(o=this.nest(i,this.input))&&(i.from<i.to||!o.overlay)){i.tree||hCe(i);let c=e.findMounts(i.from,o.parser);if(typeof o.overlay=="function")r=new dCe(o.parser,o.overlay,c,this.inner.length,i.from,i.tree,r);else{let u=DN(this.ranges,o.overlay||(i.from<i.to?[new co(i.from,i.to)]:[]));u.length&&RN(u),(u.length||!o.overlay)&&this.inner.push(new IN(o.parser,u.length?o.parser.startParse(this.input,NN(c,u),u):o.parser.startParse(""),o.overlay?o.overlay.map(d=>new co(d.from-i.from,d.to-i.from)):null,i.tree,u.length?u[0].from:i.from)),o.overlay?u.length&&(n={ranges:u,depth:0,prev:n}):a=!1}}else if(r&&(l=r.predicate(i))&&(l===!0&&(l=new co(i.from,i.to)),l.from<l.to)){let c=r.ranges.length-1;c>=0&&r.ranges[c].to==l.from?r.ranges[c]={from:r.ranges[c].from,to:l.to}:r.ranges.push(l)}if(a&&i.firstChild())r&&r.depth++,n&&n.depth++;else for(;!i.nextSibling();){if(!i.parent())break e;if(r&&!--r.depth){let c=DN(this.ranges,r.ranges);c.length&&(RN(c),this.inner.splice(r.index,0,new IN(r.parser,r.parser.startParse(this.input,NN(r.mounts,c),c),r.ranges.map(u=>new co(u.from-r.start,u.to-r.start)),r.target,c[0].from))),r=r.prev}n&&!--n.depth&&(n=n.prev)}}}}function pCe(t,e,r){for(let n of t){if(n.from>=r)break;if(n.to>e)return n.from<=e&&n.to>=r?2:1}return 0}function jN(t,e,r,n,i,o){if(e<r){let s=t.buffer[e+1];n.push(t.slice(e,r,s)),i.push(s-o)}}function hCe(t){let{node:e}=t,r=[],n=e.context.buffer;do r.push(t.index),t.parent();while(!t.tree);let i=t.tree,o=i.children.indexOf(n),s=i.children[o],a=s.buffer,l=[o];function c(u,d,f,h,y,m){let g=r[m],v=[],O=[];jN(s,u,g,v,O,h);let b=a[g+1],S=a[g+2];l.push(v.length);let x=m?c(g+4,a[g+3],s.set.types[a[g]],b,S-b,m-1):e.toTree();return v.push(x),O.push(b-h),jN(s,a[g+3],d,v,O,h),new Or(f,v,O,y)}i.children[o]=c(0,a.length,Bn.none,0,s.length,r.length-1);for(let u of l){let d=t.tree.children[u],f=t.tree.positions[u];t.yield(new yo(d,f+t.from,u,t._tree))}}class QN{constructor(e,r){this.offset=r,this.done=!1,this.cursor=e.cursor(gr.IncludeAnonymous|gr.IgnoreMounts)}moveTo(e){let{cursor:r}=this,n=e-this.offset;for(;!this.done&&r.from<n;)r.to>=e&&r.enter(n,1,gr.IgnoreOverlays|gr.ExcludeBuffers)||r.next(!1)||(this.done=!0)}hasNode(e){if(this.moveTo(e.from),!this.done&&this.cursor.from+this.offset==e.from&&this.cursor.tree)for(let r=this.cursor.tree;;){if(r==e.tree)return!0;if(r.children.length&&r.positions[0]==0&&r.children[0]instanceof Or)r=r.children[0];else break}return!1}}let mCe=class{constructor(e){var r;if(this.fragments=e,this.curTo=0,this.fragI=0,e.length){let n=this.curFrag=e[0];this.curTo=(r=n.tree.prop(hk))!==null&&r!==void 0?r:n.to,this.inner=new QN(n.tree,-n.offset)}else this.curFrag=this.inner=null}hasNode(e){for(;this.curFrag&&e.from>=this.curTo;)this.nextFrag();return this.curFrag&&this.curFrag.from<=e.from&&this.curTo>=e.to&&this.inner.hasNode(e)}nextFrag(){var e;if(this.fragI++,this.fragI==this.fragments.length)this.curFrag=this.inner=null;else{let r=this.curFrag=this.fragments[this.fragI];this.curTo=(e=r.tree.prop(hk))!==null&&e!==void 0?e:r.to,this.inner=new QN(r.tree,-r.offset)}}findMounts(e,r){var n;let i=[];if(this.inner){this.inner.cursor.moveTo(e,1);for(let o=this.inner.cursor.node;o;o=o.parent){let s=(n=o.tree)===null||n===void 0?void 0:n.prop(mt.mounted);if(s&&s.parser==r)for(let a=this.fragI;a<this.fragments.length;a++){let l=this.fragments[a];if(l.from>=o.to)break;l.tree==this.curFrag.tree&&i.push({frag:l,pos:o.from-l.offset,mount:s})}}}return i}};function DN(t,e){let r=null,n=e;for(let i=1,o=0;i<t.length;i++){let s=t[i-1].to,a=t[i].from;for(;o<n.length;o++){let l=n[o];if(l.from>=a)break;l.to<=s||(r||(n=r=e.slice()),l.from<s?(r[o]=new co(l.from,s),l.to>a&&r.splice(o+1,0,new co(a,l.to))):l.to>a?r[o--]=new co(a,l.to):r.splice(o--,1))}}return n}function gCe(t,e,r,n){let i=0,o=0,s=!1,a=!1,l=-1e9,c=[];for(;;){let u=i==t.length?1e9:s?t[i].to:t[i].from,d=o==e.length?1e9:a?e[o].to:e[o].from;if(s!=a){let f=Math.max(l,r),h=Math.min(u,d,n);f<h&&c.push(new co(f,h))}if(l=Math.min(u,d),l==1e9)break;u==l&&(s?(s=!1,i++):s=!0),d==l&&(a?(a=!1,o++):a=!0)}return c}function NN(t,e){let r=[];for(let{pos:n,mount:i,frag:o}of t){let s=n+(i.overlay?i.overlay[0].from:0),a=s+i.tree.length,l=Math.max(o.from,s),c=Math.min(o.to,a);if(i.overlay){let u=i.overlay.map(f=>new co(f.from+n,f.to+n)),d=gCe(e,u,l,c);for(let f=0,h=l;;f++){let y=f==d.length,m=y?c:d[f].from;if(m>h&&r.push(new _a(h,m,i.tree,-s,o.from>=h||o.openStart,o.to<=m||o.openEnd)),y)break;h=d[f].to}}else r.push(new _a(l,c,i.tree,-s,o.from>=s||o.openStart,o.to<=a||o.openEnd))}return r}class y0{constructor(e,r,n,i,o,s,a,l,c,u=0,d){this.p=e,this.stack=r,this.state=n,this.reducePos=i,this.pos=o,this.score=s,this.buffer=a,this.bufferBase=l,this.curContext=c,this.lookAhead=u,this.parent=d}toString(){return`[${this.stack.filter((e,r)=>r%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(e,r,n=0){let i=e.parser.context;return new y0(e,[],r,n,n,0,[],0,i?new MN(i,i.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(e,r){this.stack.push(this.state,r,this.bufferBase+this.buffer.length),this.state=e}reduce(e){var r;let n=e>>19,i=e&65535,{parser:o}=this.p,s=this.reducePos<this.pos-25;s&&this.setLookAhead(this.pos);let a=o.dynamicPrecedence(i);if(a&&(this.score+=a),n==0){this.pushState(o.getGoto(this.state,i,!0),this.reducePos),i<o.minRepeatTerm&&this.storeNode(i,this.reducePos,this.reducePos,s?8:4,!0),this.reduceContext(i,this.reducePos);return}let l=this.stack.length-(n-1)*3-(e&262144?6:0),c=l?this.stack[l-2]:this.p.ranges[0].from,u=this.reducePos-c;u>=2e3&&!(!((r=this.p.parser.nodeSet.types[i])===null||r===void 0)&&r.isAnonymous)&&(c==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=u):this.p.lastBigReductionSize<u&&(this.p.bigReductionCount=1,this.p.lastBigReductionStart=c,this.p.lastBigReductionSize=u));let d=l?this.stack[l-1]:0,f=this.bufferBase+this.buffer.length-d;if(i<o.minRepeatTerm||e&131072){let h=o.stateFlag(this.state,1)?this.pos:this.reducePos;this.storeNode(i,c,h,f+4,!0)}if(e&262144)this.state=this.stack[l];else{let h=this.stack[l-3];this.state=o.getGoto(h,i,!0)}for(;this.stack.length>l;)this.stack.pop();this.reduceContext(i,c)}storeNode(e,r,n,i=4,o=!1){if(e==0&&(!this.stack.length||this.stack[this.stack.length-1]<this.buffer.length+this.bufferBase)){let s=this,a=this.buffer.length;if(a==0&&s.parent&&(a=s.bufferBase-s.parent.bufferBase,s=s.parent),a>0&&s.buffer[a-4]==0&&s.buffer[a-1]>-1){if(r==n)return;if(s.buffer[a-2]>=r){s.buffer[a-2]=n;return}}}if(!o||this.pos==n)this.buffer.push(e,r,n,i);else{let s=this.buffer.length;if(s>0&&this.buffer[s-4]!=0){let a=!1;for(let l=s;l>0&&this.buffer[l-2]>n;l-=4)if(this.buffer[l-1]>=0){a=!0;break}if(a)for(;s>0&&this.buffer[s-2]>n;)this.buffer[s]=this.buffer[s-4],this.buffer[s+1]=this.buffer[s-3],this.buffer[s+2]=this.buffer[s-2],this.buffer[s+3]=this.buffer[s-1],s-=4,i>4&&(i-=4)}this.buffer[s]=e,this.buffer[s+1]=r,this.buffer[s+2]=n,this.buffer[s+3]=i}}shift(e,r,n,i){if(e&131072)this.pushState(e&65535,this.pos);else if((e&262144)==0){let o=e,{parser:s}=this.p;(i>this.pos||r<=s.maxNode)&&(this.pos=i,s.stateFlag(o,1)||(this.reducePos=i)),this.pushState(o,n),this.shiftContext(r,n),r<=s.maxNode&&this.buffer.push(r,n,i,4)}else this.pos=i,this.shiftContext(r,n),r<=this.p.parser.maxNode&&this.buffer.push(r,n,i,4)}apply(e,r,n,i){e&65536?this.reduce(e):this.shift(e,r,n,i)}useNode(e,r){let n=this.p.reused.length-1;(n<0||this.p.reused[n]!=e)&&(this.p.reused.push(e),n++);let i=this.pos;this.reducePos=this.pos=i+e.length,this.pushState(r,i),this.buffer.push(n,i,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,e,this,this.p.stream.reset(this.pos-e.length)))}split(){let e=this,r=e.buffer.length;for(;r>0&&e.buffer[r-2]>e.reducePos;)r-=4;let n=e.buffer.slice(r),i=e.bufferBase+r;for(;e&&i==e.bufferBase;)e=e.parent;return new y0(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,n,i,this.curContext,this.lookAhead,e)}recoverByDelete(e,r){let n=e<=this.p.parser.maxNode;n&&this.storeNode(e,this.pos,r,4),this.storeNode(0,this.pos,r,n?8:4),this.pos=this.reducePos=r,this.score-=190}canShift(e){for(let r=new yCe(this);;){let n=this.p.parser.stateSlot(r.state,4)||this.p.parser.hasAction(r.state,e);if(n==0)return!1;if((n&65536)==0)return!0;r.reduce(n)}}recoverByInsert(e){if(this.stack.length>=300)return[];let r=this.p.parser.nextStates(this.state);if(r.length>8||this.stack.length>=120){let i=[];for(let o=0,s;o<r.length;o+=2)(s=r[o+1])!=this.state&&this.p.parser.hasAction(s,e)&&i.push(r[o],s);if(this.stack.length<120)for(let o=0;i.length<8&&o<r.length;o+=2){let s=r[o+1];i.some((a,l)=>l&1&&a==s)||i.push(r[o],s)}r=i}let n=[];for(let i=0;i<r.length&&n.length<4;i+=2){let o=r[i+1];if(o==this.state)continue;let s=this.split();s.pushState(o,this.pos),s.storeNode(0,s.pos,s.pos,4,!0),s.shiftContext(r[i],this.pos),s.reducePos=this.pos,s.score-=200,n.push(s)}return n}forceReduce(){let{parser:e}=this.p,r=e.stateSlot(this.state,5);if((r&65536)==0)return!1;if(!e.validAction(this.state,r)){let n=r>>19,i=r&65535,o=this.stack.length-n*3;if(o<0||e.getGoto(this.stack[o],i,!1)<0){let s=this.findForcedReduction();if(s==null)return!1;r=s}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(r),!0}findForcedReduction(){let{parser:e}=this.p,r=[],n=(i,o)=>{if(!r.includes(i))return r.push(i),e.allActions(i,s=>{if(!(s&393216))if(s&65536){let a=(s>>19)-o;if(a>1){let l=s&65535,c=this.stack.length-a*3;if(c>=0&&e.getGoto(this.stack[c],l,!1)>=0)return a<<19|65536|l}}else{let a=n(s,o+1);if(a!=null)return a}})};return n(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(this.stack.length!=3)return!1;let{parser:e}=this.p;return e.data[e.stateSlot(this.state,1)]==65535&&!e.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(e){if(this.state!=e.state||this.stack.length!=e.stack.length)return!1;for(let r=0;r<this.stack.length;r+=3)if(this.stack[r]!=e.stack[r])return!1;return!0}get parser(){return this.p.parser}dialectEnabled(e){return this.p.parser.dialect.flags[e]}shiftContext(e,r){this.curContext&&this.updateContext(this.curContext.tracker.shift(this.curContext.context,e,this,this.p.stream.reset(r)))}reduceContext(e,r){this.curContext&&this.updateContext(this.curContext.tracker.reduce(this.curContext.context,e,this,this.p.stream.reset(r)))}emitContext(){let e=this.buffer.length-1;(e<0||this.buffer[e]!=-3)&&this.buffer.push(this.curContext.hash,this.pos,this.pos,-3)}emitLookAhead(){let e=this.buffer.length-1;(e<0||this.buffer[e]!=-4)&&this.buffer.push(this.lookAhead,this.pos,this.pos,-4)}updateContext(e){if(e!=this.curContext.context){let r=new MN(this.curContext.tracker,e);r.hash!=this.curContext.hash&&this.emitContext(),this.curContext=r}}setLookAhead(e){e>this.lookAhead&&(this.emitLookAhead(),this.lookAhead=e)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class MN{constructor(e,r){this.tracker=e,this.context=r,this.hash=e.strict?e.hash(r):0}}class yCe{constructor(e){this.start=e,this.state=e.state,this.stack=e.stack,this.base=this.stack.length}reduce(e){let r=e&65535,n=e>>19;n==0?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=(n-1)*3;let i=this.start.p.parser.getGoto(this.stack[this.base-3],r,!0);this.state=i}}class O0{constructor(e,r,n){this.stack=e,this.pos=r,this.index=n,this.buffer=e.buffer,this.index==0&&this.maybeNext()}static create(e,r=e.bufferBase+e.buffer.length){return new O0(e,r,r-e.bufferBase)}maybeNext(){let e=this.stack.parent;e!=null&&(this.index=this.stack.bufferBase-e.bufferBase,this.stack=e,this.buffer=e.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,this.index==0&&this.maybeNext()}fork(){return new O0(this.stack,this.pos,this.index)}}function Bp(t,e=Uint16Array){if(typeof t!="string")return t;let r=null;for(let n=0,i=0;n<t.length;){let o=0;for(;;){let s=t.charCodeAt(n++),a=!1;if(s==126){o=65535;break}s>=92&&s--,s>=34&&s--;let l=s-32;if(l>=46&&(l-=46,a=!0),o+=l,a)break;o*=46}r?r[i++]=o:r=new e(o)}return r}class jv{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const qN=new jv;class OCe{constructor(e,r){this.input=e,this.ranges=r,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=qN,this.rangeIndex=0,this.pos=this.chunkPos=r[0].from,this.range=r[0],this.end=r[r.length-1].to,this.readNext()}resolveOffset(e,r){let n=this.range,i=this.rangeIndex,o=this.pos+e;for(;o<n.from;){if(!i)return null;let s=this.ranges[--i];o-=n.from-s.to,n=s}for(;r<0?o>n.to:o>=n.to;){if(i==this.ranges.length-1)return null;let s=this.ranges[++i];o+=s.from-n.to,n=s}return o}clipPos(e){if(e>=this.range.from&&e<this.range.to)return e;for(let r of this.ranges)if(r.to>e)return Math.max(e,r.from);return this.end}peek(e){let r=this.chunkOff+e,n,i;if(r>=0&&r<this.chunk.length)n=this.pos+e,i=this.chunk.charCodeAt(r);else{let o=this.resolveOffset(e,1);if(o==null)return-1;if(n=o,n>=this.chunk2Pos&&n<this.chunk2Pos+this.chunk2.length)i=this.chunk2.charCodeAt(n-this.chunk2Pos);else{let s=this.rangeIndex,a=this.range;for(;a.to<=n;)a=this.ranges[++s];this.chunk2=this.input.chunk(this.chunk2Pos=n),n+this.chunk2.length>a.to&&(this.chunk2=this.chunk2.slice(0,a.to-n)),i=this.chunk2.charCodeAt(0)}}return n>=this.token.lookAhead&&(this.token.lookAhead=n+1),i}acceptToken(e,r=0){let n=r?this.resolveOffset(r,-1):this.pos;if(n==null||n<this.token.start)throw new RangeError("Token end out of bounds");this.token.value=e,this.token.end=n}acceptTokenTo(e,r){this.token.value=e,this.token.end=r}getChunk(){if(this.pos>=this.chunk2Pos&&this.pos<this.chunk2Pos+this.chunk2.length){let{chunk:e,chunkPos:r}=this;this.chunk=this.chunk2,this.chunkPos=this.chunk2Pos,this.chunk2=e,this.chunk2Pos=r,this.chunkOff=this.pos-this.chunkPos}else{this.chunk2=this.chunk,this.chunk2Pos=this.chunkPos;let e=this.input.chunk(this.pos),r=this.pos+e.length;this.chunk=r>this.range.to?e.slice(0,this.range.to-this.pos):e,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(e=1){for(this.chunkOff+=e;this.pos+e>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();e-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=e,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(e,r){if(r?(this.token=r,r.start=e,r.lookAhead=e+1,r.value=r.extended=-1):this.token=qN,this.pos!=e){if(this.pos=e,e==this.end)return this.setDone(),this;for(;e<this.range.from;)this.range=this.ranges[--this.rangeIndex];for(;e>=this.range.to;)this.range=this.ranges[++this.rangeIndex];e>=this.chunkPos&&e<this.chunkPos+this.chunk.length?this.chunkOff=e-this.chunkPos:(this.chunk="",this.chunkOff=0),this.readNext()}return this}read(e,r){if(e>=this.chunkPos&&r<=this.chunkPos+this.chunk.length)return this.chunk.slice(e-this.chunkPos,r-this.chunkPos);if(e>=this.chunk2Pos&&r<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(e-this.chunk2Pos,r-this.chunk2Pos);if(e>=this.range.from&&r<=this.range.to)return this.input.read(e,r);let n="";for(let i of this.ranges){if(i.from>=r)break;i.to>e&&(n+=this.input.read(Math.max(i.from,e),Math.min(i.to,r)))}return n}}class jd{constructor(e,r){this.data=e,this.id=r}token(e,r){let{parser:n}=r.p;eF(this.data,e,r,this.id,n.data,n.tokenPrecTable)}}jd.prototype.contextual=jd.prototype.fallback=jd.prototype.extend=!1;class v0{constructor(e,r,n){this.precTable=r,this.elseToken=n,this.data=typeof e=="string"?Bp(e):e}token(e,r){let n=e.pos,i=0;for(;;){let o=e.next<0,s=e.resolveOffset(1,1);if(eF(this.data,e,r,0,this.data,this.precTable),e.token.value>-1)break;if(this.elseToken==null)return;if(o||i++,s==null)break;e.reset(s,e.token)}i&&(e.reset(n,e.token),e.acceptToken(this.elseToken,i))}}v0.prototype.contextual=jd.prototype.fallback=jd.prototype.extend=!1;class Wr{constructor(e,r={}){this.token=e,this.contextual=!!r.contextual,this.fallback=!!r.fallback,this.extend=!!r.extend}}function eF(t,e,r,n,i,o){let s=0,a=1<<n,{dialect:l}=r.p.parser;e:for(;(a&t[s])!=0;){let c=t[s+1];for(let h=s+3;h<c;h+=2)if((t[h+1]&a)>0){let y=t[h];if(l.allows(y)&&(e.token.value==-1||e.token.value==y||vCe(y,e.token.value,i,o))){e.acceptToken(y);break}}let u=e.next,d=0,f=t[s+2];if(e.next<0&&f>d&&t[c+f*3-3]==65535){s=t[c+f*3-1];continue e}for(;d<f;){let h=d+f>>1,y=c+h+(h<<1),m=t[y],g=t[y+1]||65536;if(u<m)f=h;else if(u>=g)d=h+1;else{s=t[y+2],e.advance();continue e}}break}}function zN(t,e,r){for(let n=e,i;(i=t[n])!=65535;n++)if(i==r)return n-e;return-1}function vCe(t,e,r,n){let i=zN(r,n,e);return i<0||zN(r,n,t)<i}const Ii=typeof process<"u"&&process.env&&/\bparse\b/.test(process.env.LOG);let OP=null;function LN(t,e,r){let n=t.cursor(gr.IncludeAnonymous);for(n.moveTo(e);;)if(!(r<0?n.childBefore(e):n.childAfter(e)))for(;;){if((r<0?n.to<e:n.from>e)&&!n.type.isError)return r<0?Math.max(0,Math.min(n.to-1,e-25)):Math.min(t.length,Math.max(n.from+1,e+25));if(r<0?n.prevSibling():n.nextSibling())break;if(!n.parent())return r<0?0:t.length}}class bCe{constructor(e,r){this.fragments=e,this.nodeSet=r,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let e=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(e){for(this.safeFrom=e.openStart?LN(e.tree,e.from+e.offset,1)-e.offset:e.from,this.safeTo=e.openEnd?LN(e.tree,e.to+e.offset,-1)-e.offset:e.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(e.tree),this.start.push(-e.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(e){if(e<this.nextStart)return null;for(;this.fragment&&this.safeTo<=e;)this.nextFragment();if(!this.fragment)return null;for(;;){let r=this.trees.length-1;if(r<0)return this.nextFragment(),null;let n=this.trees[r],i=this.index[r];if(i==n.children.length){this.trees.pop(),this.start.pop(),this.index.pop();continue}let o=n.children[i],s=this.start[r]+n.positions[i];if(s>e)return this.nextStart=s,null;if(o instanceof Or){if(s==e){if(s<this.safeFrom)return null;let a=s+o.length;if(a<=this.safeTo){let l=o.prop(mt.lookAhead);if(!l||a+l<this.fragment.to)return o}}this.index[r]++,s+o.length>=Math.max(this.safeFrom,e)&&(this.trees.push(o),this.start.push(s),this.index.push(0))}else this.index[r]++,this.nextStart=s+o.length}}}class xCe{constructor(e,r){this.stream=r,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=e.tokenizers.map(n=>new jv)}getActions(e){let r=0,n=null,{parser:i}=e.p,{tokenizers:o}=i,s=i.stateSlot(e.state,3),a=e.curContext?e.curContext.hash:0,l=0;for(let c=0;c<o.length;c++){if((1<<c&s)==0)continue;let u=o[c],d=this.tokens[c];if(!(n&&!u.fallback)&&((u.contextual||d.start!=e.pos||d.mask!=s||d.context!=a)&&(this.updateCachedToken(d,u,e),d.mask=s,d.context=a),d.lookAhead>d.end+25&&(l=Math.max(d.lookAhead,l)),d.value!=0)){let f=r;if(d.extended>-1&&(r=this.addActions(e,d.extended,d.end,r)),r=this.addActions(e,d.value,d.end,r),!u.extend&&(n=d,r>f))break}}for(;this.actions.length>r;)this.actions.pop();return l&&e.setLookAhead(l),!n&&e.pos==this.stream.end&&(n=new jv,n.value=e.p.parser.eofTerm,n.start=n.end=e.pos,r=this.addActions(e,n.value,n.end,r)),this.mainToken=n,this.actions}getMainToken(e){if(this.mainToken)return this.mainToken;let r=new jv,{pos:n,p:i}=e;return r.start=n,r.end=Math.min(n+1,i.stream.end),r.value=n==i.stream.end?i.parser.eofTerm:0,r}updateCachedToken(e,r,n){let i=this.stream.clipPos(n.pos);if(r.token(this.stream.reset(i,e),n),e.value>-1){let{parser:o}=n.p;for(let s=0;s<o.specialized.length;s++)if(o.specialized[s]==e.value){let a=o.specializers[s](this.stream.read(e.start,e.end),n);if(a>=0&&n.p.parser.dialect.allows(a>>1)){(a&1)==0?e.value=a>>1:e.extended=a>>1;break}}}else e.value=0,e.end=this.stream.clipPos(i+1)}putAction(e,r,n,i){for(let o=0;o<i;o+=3)if(this.actions[o]==e)return i;return this.actions[i++]=e,this.actions[i++]=r,this.actions[i++]=n,i}addActions(e,r,n,i){let{state:o}=e,{parser:s}=e.p,{data:a}=s;for(let l=0;l<2;l++)for(let c=s.stateSlot(o,l?2:1);;c+=3){if(a[c]==65535)if(a[c+1]==1)c=ba(a,c+2);else{i==0&&a[c+1]==2&&(i=this.putAction(ba(a,c+2),r,n,i));break}a[c]==r&&(i=this.putAction(ba(a,c+1),r,n,i))}return i}}let SCe=class{constructor(e,r,n,i){this.parser=e,this.input=r,this.ranges=i,this.recovering=0,this.nextStackID=9812,this.minStackPos=0,this.reused=[],this.stoppedAt=null,this.lastBigReductionStart=-1,this.lastBigReductionSize=0,this.bigReductionCount=0,this.stream=new OCe(r,i),this.tokens=new xCe(e,this.stream),this.topTerm=e.top[1];let{from:o}=i[0];this.stacks=[y0.start(this,e.top[0],o)],this.fragments=n.length&&this.stream.end-o>e.bufferLength*4?new bCe(n,e.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let e=this.stacks,r=this.minStackPos,n=this.stacks=[],i,o;if(this.bigReductionCount>300&&e.length==1){let[s]=e;for(;s.forceReduce()&&s.stack.length&&s.stack[s.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let s=0;s<e.length;s++){let a=e[s];for(;;){if(this.tokens.mainToken=null,a.pos>r)n.push(a);else{if(this.advanceStack(a,n,e))continue;{i||(i=[],o=[]),i.push(a);let l=this.tokens.getMainToken(a);o.push(l.value,l.end)}}break}}if(!n.length){let s=i&&PCe(i);if(s)return Ii&&console.log("Finish with "+this.stackID(s)),this.stackToTree(s);if(this.parser.strict)throw Ii&&i&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+r);this.recovering||(this.recovering=5)}if(this.recovering&&i){let s=this.stoppedAt!=null&&i[0].pos>this.stoppedAt?i[0]:this.runRecovery(i,o,n);if(s)return Ii&&console.log("Force-finish "+this.stackID(s)),this.stackToTree(s.forceAll())}if(this.recovering){let s=this.recovering==1?1:this.recovering*3;if(n.length>s)for(n.sort((a,l)=>l.score-a.score);n.length>s;)n.pop();n.some(a=>a.reducePos>r)&&this.recovering--}else if(n.length>1){e:for(let s=0;s<n.length-1;s++){let a=n[s];for(let l=s+1;l<n.length;l++){let c=n[l];if(a.sameState(c)||a.buffer.length>500&&c.buffer.length>500)if((a.score-c.score||a.buffer.length-c.buffer.length)>0)n.splice(l--,1);else{n.splice(s--,1);continue e}}}n.length>12&&n.splice(12,n.length-12)}this.minStackPos=n[0].pos;for(let s=1;s<n.length;s++)n[s].pos<this.minStackPos&&(this.minStackPos=n[s].pos);return null}stopAt(e){if(this.stoppedAt!=null&&this.stoppedAt<e)throw new RangeError("Can't move stoppedAt forward");this.stoppedAt=e}advanceStack(e,r,n){let i=e.pos,{parser:o}=this,s=Ii?this.stackID(e)+" -> ":"";if(this.stoppedAt!=null&&i>this.stoppedAt)return e.forceReduce()?e:null;if(this.fragments){let c=e.curContext&&e.curContext.tracker.strict,u=c?e.curContext.hash:0;for(let d=this.fragments.nodeAt(i);d;){let f=this.parser.nodeSet.types[d.type.id]==d.type?o.getGoto(e.state,d.type.id):-1;if(f>-1&&d.length&&(!c||(d.prop(mt.contextHash)||0)==u))return e.useNode(d,f),Ii&&console.log(s+this.stackID(e)+` (via reuse of ${o.getName(d.type.id)})`),!0;if(!(d instanceof Or)||d.children.length==0||d.positions[0]>0)break;let h=d.children[0];if(h instanceof Or&&d.positions[0]==0)d=h;else break}}let a=o.stateSlot(e.state,4);if(a>0)return e.reduce(a),Ii&&console.log(s+this.stackID(e)+` (via always-reduce ${o.getName(a&65535)})`),!0;if(e.stack.length>=8400)for(;e.stack.length>6e3&&e.forceReduce(););let l=this.tokens.getActions(e);for(let c=0;c<l.length;){let u=l[c++],d=l[c++],f=l[c++],h=c==l.length||!n,y=h?e:e.split(),m=this.tokens.mainToken;if(y.apply(u,d,m?m.start:y.pos,f),Ii&&console.log(s+this.stackID(y)+` (via ${(u&65536)==0?"shift":`reduce of ${o.getName(u&65535)}`} for ${o.getName(d)} @ ${i}${y==e?"":", split"})`),h)return!0;y.pos>i?r.push(y):n.push(y)}return!1}advanceFully(e,r){let n=e.pos;for(;;){if(!this.advanceStack(e,null,null))return!1;if(e.pos>n)return VN(e,r),!0}}runRecovery(e,r,n){let i=null,o=!1;for(let s=0;s<e.length;s++){let a=e[s],l=r[s<<1],c=r[(s<<1)+1],u=Ii?this.stackID(a)+" -> ":"";if(a.deadEnd&&(o||(o=!0,a.restart(),Ii&&console.log(u+this.stackID(a)+" (restarted)"),this.advanceFully(a,n))))continue;let d=a.split(),f=u;for(let h=0;d.forceReduce()&&h<10&&(Ii&&console.log(f+this.stackID(d)+" (via force-reduce)"),!this.advanceFully(d,n));h++)Ii&&(f=this.stackID(d)+" -> ");for(let h of a.recoverByInsert(l))Ii&&console.log(u+this.stackID(h)+" (via recover-insert)"),this.advanceFully(h,n);this.stream.end>a.pos?(c==a.pos&&(c++,l=0),a.recoverByDelete(l,c),Ii&&console.log(u+this.stackID(a)+` (via recover-delete ${this.parser.getName(l)})`),VN(a,n)):(!i||i.score<a.score)&&(i=a)}return i}stackToTree(e){return e.close(),Or.build({buffer:O0.create(e),nodeSet:this.parser.nodeSet,topID:this.topTerm,maxBufferLength:this.parser.bufferLength,reused:this.reused,start:this.ranges[0].from,length:e.pos-this.ranges[0].from,minRepeatType:this.parser.minRepeatTerm})}stackID(e){let r=(OP||(OP=new WeakMap)).get(e);return r||OP.set(e,r=String.fromCodePoint(this.nextStackID++)),r+e}};function VN(t,e){for(let r=0;r<e.length;r++){let n=e[r];if(n.pos==t.pos&&n.sameState(t)){e[r].score<t.score&&(e[r]=t);return}}e.push(t)}class wCe{constructor(e,r,n){this.source=e,this.flags=r,this.disabled=n}allows(e){return!this.disabled||this.disabled[e]==0}}const vP=t=>t;class Zm{constructor(e){this.start=e.start,this.shift=e.shift||vP,this.reduce=e.reduce||vP,this.reuse=e.reuse||vP,this.hash=e.hash||(()=>0),this.strict=e.strict!==!1}}class Lo extends B_{constructor(e){if(super(),this.wrappers=[],e.version!=14)throw new RangeError(`Parser version (${e.version}) doesn't match runtime version (14)`);let r=e.nodeNames.split(" ");this.minRepeatTerm=r.length;for(let a=0;a<e.repeatNodeCount;a++)r.push("");let n=Object.keys(e.topRules).map(a=>e.topRules[a][1]),i=[];for(let a=0;a<r.length;a++)i.push([]);function o(a,l,c){i[a].push([l,l.deserialize(String(c))])}if(e.nodeProps)for(let a of e.nodeProps){let l=a[0];typeof l=="string"&&(l=mt[l]);for(let c=1;c<a.length;){let u=a[c++];if(u>=0)o(u,l,a[c++]);else{let d=a[c+-u];for(let f=-u;f>0;f--)o(a[c++],l,d);c++}}}this.nodeSet=new A1(r.map((a,l)=>Bn.define({name:l>=this.minRepeatTerm?void 0:a,id:l,props:i[l],top:n.indexOf(l)>-1,error:l==0,skipped:e.skippedNodes&&e.skippedNodes.indexOf(l)>-1}))),e.propSources&&(this.nodeSet=this.nodeSet.extend(...e.propSources)),this.strict=!1,this.bufferLength=GB;let s=Bp(e.tokenData);this.context=e.context,this.specializerSpecs=e.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let a=0;a<this.specializerSpecs.length;a++)this.specialized[a]=this.specializerSpecs[a].term;this.specializers=this.specializerSpecs.map(XN),this.states=Bp(e.states,Uint32Array),this.data=Bp(e.stateData),this.goto=Bp(e.goto),this.maxTerm=e.maxTerm,this.tokenizers=e.tokenizers.map(a=>typeof a=="number"?new jd(s,a):a),this.topRules=e.topRules,this.dialects=e.dialects||{},this.dynamicPrecedences=e.dynamicPrecedences||null,this.tokenPrecTable=e.tokenPrec,this.termNames=e.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(e,r,n){let i=new SCe(this,e,r,n);for(let o of this.wrappers)i=o(i,e,r,n);return i}getGoto(e,r,n=!1){let i=this.goto;if(r>=i[0])return-1;for(let o=i[r+1];;){let s=i[o++],a=s&1,l=i[o++];if(a&&n)return l;for(let c=o+(s>>1);o<c;o++)if(i[o]==e)return l;if(a)return-1}}hasAction(e,r){let n=this.data;for(let i=0;i<2;i++)for(let o=this.stateSlot(e,i?2:1),s;;o+=3){if((s=n[o])==65535)if(n[o+1]==1)s=n[o=ba(n,o+2)];else{if(n[o+1]==2)return ba(n,o+2);break}if(s==r||s==0)return ba(n,o+1)}return 0}stateSlot(e,r){return this.states[e*6+r]}stateFlag(e,r){return(this.stateSlot(e,0)&r)>0}validAction(e,r){return!!this.allActions(e,n=>n==r?!0:null)}allActions(e,r){let n=this.stateSlot(e,4),i=n?r(n):void 0;for(let o=this.stateSlot(e,1);i==null;o+=3){if(this.data[o]==65535)if(this.data[o+1]==1)o=ba(this.data,o+2);else break;i=r(ba(this.data,o+1))}return i}nextStates(e){let r=[];for(let n=this.stateSlot(e,1);;n+=3){if(this.data[n]==65535)if(this.data[n+1]==1)n=ba(this.data,n+2);else break;if((this.data[n+2]&1)==0){let i=this.data[n+1];r.some((o,s)=>s&1&&o==i)||r.push(this.data[n],i)}}return r}configure(e){let r=Object.assign(Object.create(Lo.prototype),this);if(e.props&&(r.nodeSet=this.nodeSet.extend(...e.props)),e.top){let n=this.topRules[e.top];if(!n)throw new RangeError(`Invalid top rule name ${e.top}`);r.top=n}return e.tokenizers&&(r.tokenizers=this.tokenizers.map(n=>{let i=e.tokenizers.find(o=>o.from==n);return i?i.to:n})),e.specializers&&(r.specializers=this.specializers.slice(),r.specializerSpecs=this.specializerSpecs.map((n,i)=>{let o=e.specializers.find(a=>a.from==n.external);if(!o)return n;let s=Object.assign(Object.assign({},n),{external:o.to});return r.specializers[i]=XN(s),s})),e.contextTracker&&(r.context=e.contextTracker),e.dialect&&(r.dialect=this.parseDialect(e.dialect)),e.strict!=null&&(r.strict=e.strict),e.wrap&&(r.wrappers=r.wrappers.concat(e.wrap)),e.bufferLength!=null&&(r.bufferLength=e.bufferLength),r}hasWrappers(){return this.wrappers.length>0}getName(e){return this.termNames?this.termNames[e]:String(e<=this.maxNode&&this.nodeSet.types[e].name||e)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(e){let r=this.dynamicPrecedences;return r==null?0:r[e]||0}parseDialect(e){let r=Object.keys(this.dialects),n=r.map(()=>!1);if(e)for(let o of e.split(" ")){let s=r.indexOf(o);s>=0&&(n[s]=!0)}let i=null;for(let o=0;o<r.length;o++)if(!n[o])for(let s=this.dialects[r[o]],a;(a=this.data[s++])!=65535;)(i||(i=new Uint8Array(this.maxTerm+1)))[a]=1;return new wCe(e,n,i)}static deserialize(e){return new Lo(e)}}function ba(t,e){return t[e]|t[e+1]<<16}function PCe(t){let e=null;for(let r of t){let n=r.p.stoppedAt;(r.pos==r.p.stream.end||n!=null&&r.pos>n)&&r.p.parser.stateFlag(r.state,2)&&(!e||e.score<r.score)&&(e=r)}return e}function XN(t){if(t.external){let e=t.extend?1:0;return(r,n)=>t.external(r,n)<<1|e}return t.get}let CCe=0,xa=class mk{constructor(e,r,n,i){this.name=e,this.set=r,this.base=n,this.modified=i,this.id=CCe++}toString(){let{name:e}=this;for(let r of this.modified)r.name&&(e=`${r.name}(${e})`);return e}static define(e,r){let n=typeof e=="string"?e:"?";if(e instanceof mk&&(r=e),r?.base)throw new Error("Can not derive from a modified tag");let i=new mk(n,[],null,[]);if(i.set.push(i),r)for(let o of r.set)i.set.push(o);return i}static defineModifier(e){let r=new b0(e);return n=>n.modified.indexOf(r)>-1?n:b0.get(n.base||n,n.modified.concat(r).sort((i,o)=>i.id-o.id))}},$Ce=0;class b0{constructor(e){this.name=e,this.instances=[],this.id=$Ce++}static get(e,r){if(!r.length)return e;let n=r[0].instances.find(a=>a.base==e&&kCe(r,a.modified));if(n)return n;let i=[],o=new xa(e.name,i,e,r);for(let a of r)a.instances.push(o);let s=ECe(r);for(let a of e.set)if(!a.modified.length)for(let l of s)i.push(b0.get(a,l));return o}}function kCe(t,e){return t.length==e.length&&t.every((r,n)=>r==e[n])}function ECe(t){let e=[[]];for(let r=0;r<t.length;r++)for(let n=0,i=e.length;n<i;n++)e.push(e[n].concat(t[r]));return e.sort((r,n)=>n.length-r.length)}function Ga(t){let e=Object.create(null);for(let r in t){let n=t[r];Array.isArray(n)||(n=[n]);for(let i of r.split(" "))if(i){let o=[],s=2,a=i;for(let d=0;;){if(a=="..."&&d>0&&d+3==i.length){s=1;break}let f=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(a);if(!f)throw new RangeError("Invalid path: "+i);if(o.push(f[0]=="*"?"":f[0][0]=='"'?JSON.parse(f[0]):f[0]),d+=f[0].length,d==i.length)break;let h=i[d++];if(d==i.length&&h=="!"){s=0;break}if(h!="/")throw new RangeError("Invalid path: "+i);a=i.slice(d)}let l=o.length-1,c=o[l];if(!c)throw new RangeError("Invalid path: "+i);let u=new x0(n,s,l>0?o.slice(0,l):null);e[c]=u.sort(e[c])}}return tF.add(e)}const tF=new mt;class x0{constructor(e,r,n,i){this.tags=e,this.mode=r,this.context=n,this.next=i}get opaque(){return this.mode==0}get inherit(){return this.mode==1}sort(e){return!e||e.depth<this.depth?(this.next=e,this):(e.next=this.sort(e.next),e)}get depth(){return this.context?this.context.length:0}}x0.empty=new x0([],2,null);function rF(t,e){let r=Object.create(null);for(let o of t)if(!Array.isArray(o.tag))r[o.tag.id]=o.class;else for(let s of o.tag)r[s.id]=o.class;let{scope:n,all:i=null}=e||{};return{style:o=>{let s=i;for(let a of o)for(let l of a.set){let c=r[l.id];if(c){s=s?s+" "+c:c;break}}return s},scope:n}}function TCe(t,e){let r=null;for(let n of t){let i=n.style(e);i&&(r=r?r+" "+i:i)}return r}function _Ce(t,e,r,n=0,i=t.length){let o=new ACe(n,Array.isArray(e)?e:[e],r);o.highlightRange(t.cursor(),n,i,"",o.highlighters),o.flush(i)}class ACe{constructor(e,r,n){this.at=e,this.highlighters=r,this.span=n,this.class=""}startSpan(e,r){r!=this.class&&(this.flush(e),e>this.at&&(this.at=e),this.class=r)}flush(e){e>this.at&&this.class&&this.span(this.at,e,this.class)}highlightRange(e,r,n,i,o){let{type:s,from:a,to:l}=e;if(a>=n||l<=r)return;s.isTop&&(o=this.highlighters.filter(h=>!h.scope||h.scope(s)));let c=i,u=ICe(e)||x0.empty,d=TCe(o,u.tags);if(d&&(c&&(c+=" "),c+=d,u.mode==1&&(i+=(i?" ":"")+d)),this.startSpan(Math.max(r,a),c),u.opaque)return;let f=e.tree&&e.tree.prop(mt.mounted);if(f&&f.overlay){let h=e.node.enter(f.overlay[0].from+a,1),y=this.highlighters.filter(g=>!g.scope||g.scope(f.tree.type)),m=e.firstChild();for(let g=0,v=a;;g++){let O=g<f.overlay.length?f.overlay[g]:null,b=O?O.from+a:l,S=Math.max(r,v),x=Math.min(n,b);if(S<x&&m)for(;e.from<x&&(this.highlightRange(e,S,x,i,o),this.startSpan(Math.min(x,e.to),c),!(e.to>=b||!e.nextSibling())););if(!O||b>n)break;v=O.to+a,v>r&&(this.highlightRange(h.cursor(),Math.max(r,O.from+a),Math.min(n,v),"",y),this.startSpan(Math.min(n,v),c))}m&&e.parent()}else if(e.firstChild()){f&&(i="");do if(!(e.to<=r)){if(e.from>=n)break;this.highlightRange(e,r,n,i,o),this.startSpan(Math.min(n,e.to),c)}while(e.nextSibling());e.parent()}}}function ICe(t){let e=t.type.prop(tF);for(;e&&e.context&&!t.matchContext(e.context);)e=e.next;return e||null}const Ne=xa.define,PO=Ne(),Ol=Ne(),UN=Ne(Ol),WN=Ne(Ol),vl=Ne(),CO=Ne(vl),bP=Ne(vl),ms=Ne(),Sc=Ne(ms),as=Ne(),ls=Ne(),gk=Ne(),wp=Ne(gk),$O=Ne(),X={comment:PO,lineComment:Ne(PO),blockComment:Ne(PO),docComment:Ne(PO),name:Ol,variableName:Ne(Ol),typeName:UN,tagName:Ne(UN),propertyName:WN,attributeName:Ne(WN),className:Ne(Ol),labelName:Ne(Ol),namespace:Ne(Ol),macroName:Ne(Ol),literal:vl,string:CO,docString:Ne(CO),character:Ne(CO),attributeValue:Ne(CO),number:bP,integer:Ne(bP),float:Ne(bP),bool:Ne(vl),regexp:Ne(vl),escape:Ne(vl),color:Ne(vl),url:Ne(vl),keyword:as,self:Ne(as),null:Ne(as),atom:Ne(as),unit:Ne(as),modifier:Ne(as),operatorKeyword:Ne(as),controlKeyword:Ne(as),definitionKeyword:Ne(as),moduleKeyword:Ne(as),operator:ls,derefOperator:Ne(ls),arithmeticOperator:Ne(ls),logicOperator:Ne(ls),bitwiseOperator:Ne(ls),compareOperator:Ne(ls),updateOperator:Ne(ls),definitionOperator:Ne(ls),typeOperator:Ne(ls),controlOperator:Ne(ls),punctuation:gk,separator:Ne(gk),bracket:wp,angleBracket:Ne(wp),squareBracket:Ne(wp),paren:Ne(wp),brace:Ne(wp),content:ms,heading:Sc,heading1:Ne(Sc),heading2:Ne(Sc),heading3:Ne(Sc),heading4:Ne(Sc),heading5:Ne(Sc),heading6:Ne(Sc),contentSeparator:Ne(ms),list:Ne(ms),quote:Ne(ms),emphasis:Ne(ms),strong:Ne(ms),link:Ne(ms),monospace:Ne(ms),strikethrough:Ne(ms),inserted:Ne(),deleted:Ne(),changed:Ne(),invalid:Ne(),meta:$O,documentMeta:Ne($O),annotation:Ne($O),processingInstruction:Ne($O),definition:xa.defineModifier("definition"),constant:xa.defineModifier("constant"),function:xa.defineModifier("function"),standard:xa.defineModifier("standard"),local:xa.defineModifier("local"),special:xa.defineModifier("special")};for(let t in X){let e=X[t];e instanceof xa&&(e.name=t)}rF([{tag:X.link,class:"tok-link"},{tag:X.heading,class:"tok-heading"},{tag:X.emphasis,class:"tok-emphasis"},{tag:X.strong,class:"tok-strong"},{tag:X.keyword,class:"tok-keyword"},{tag:X.atom,class:"tok-atom"},{tag:X.bool,class:"tok-bool"},{tag:X.url,class:"tok-url"},{tag:X.labelName,class:"tok-labelName"},{tag:X.inserted,class:"tok-inserted"},{tag:X.deleted,class:"tok-deleted"},{tag:X.literal,class:"tok-literal"},{tag:X.string,class:"tok-string"},{tag:X.number,class:"tok-number"},{tag:[X.regexp,X.escape,X.special(X.string)],class:"tok-string2"},{tag:X.variableName,class:"tok-variableName"},{tag:X.local(X.variableName),class:"tok-variableName tok-local"},{tag:X.definition(X.variableName),class:"tok-variableName tok-definition"},{tag:X.special(X.variableName),class:"tok-variableName2"},{tag:X.definition(X.propertyName),class:"tok-propertyName tok-definition"},{tag:X.typeName,class:"tok-typeName"},{tag:X.namespace,class:"tok-namespace"},{tag:X.className,class:"tok-className"},{tag:X.macroName,class:"tok-macroName"},{tag:X.propertyName,class:"tok-propertyName"},{tag:X.operator,class:"tok-operator"},{tag:X.comment,class:"tok-comment"},{tag:X.meta,class:"tok-meta"},{tag:X.invalid,class:"tok-invalid"},{tag:X.punctuation,class:"tok-punctuation"}]);const RCe=Ga({String:X.string,Number:X.number,"True False":X.bool,PropertyName:X.propertyName,Null:X.null,",":X.separator,"[ ]":X.squareBracket,"{ }":X.brace}),jCe=Lo.deserialize({version:14,states:"$bOVQPOOOOQO'#Cb'#CbOnQPO'#CeOvQPO'#CjOOQO'#Cp'#CpQOQPOOOOQO'#Cg'#CgO}QPO'#CfO!SQPO'#CrOOQO,59P,59PO![QPO,59PO!aQPO'#CuOOQO,59U,59UO!iQPO,59UOVQPO,59QOqQPO'#CkO!nQPO,59^OOQO1G.k1G.kOVQPO'#ClO!vQPO,59aOOQO1G.p1G.pOOQO1G.l1G.lOOQO,59V,59VOOQO-E6i-E6iOOQO,59W,59WOOQO-E6j-E6j",stateData:"#O~OcOS~OQSORSOSSOTSOWQO]ROePO~OVXOeUO~O[[O~PVOg^O~Oh_OVfX~OVaO~OhbO[iX~O[dO~Oh_OVfa~OhbO[ia~O",goto:"!kjPPPPPPkPPkqwPPk{!RPPP!XP!ePP!hXSOR^bQWQRf_TVQ_Q`WRg`QcZRicQTOQZRQe^RhbRYQR]R",nodeNames:"⚠ JsonText True False Null Number String } { Object Property PropertyName ] [ Array",maxTerm:25,nodeProps:[["openedBy",7,"{",12,"["],["closedBy",8,"}",13,"]"]],propSources:[RCe],skippedNodes:[0],repeatNodeCount:2,tokenData:"(|~RaXY!WYZ!W]^!Wpq!Wrs!]|}$u}!O$z!Q!R%T!R![&c![!]&t!}#O&y#P#Q'O#Y#Z'T#b#c'r#h#i(Z#o#p(r#q#r(w~!]Oc~~!`Wpq!]qr!]rs!xs#O!]#O#P!}#P;'S!];'S;=`$o<%lO!]~!}Oe~~#QXrs!]!P!Q!]#O#P!]#U#V!]#Y#Z!]#b#c!]#f#g!]#h#i!]#i#j#m~#pR!Q![#y!c!i#y#T#Z#y~#|R!Q![$V!c!i$V#T#Z$V~$YR!Q![$c!c!i$c#T#Z$c~$fR!Q![!]!c!i!]#T#Z!]~$rP;=`<%l!]~$zOh~~$}Q!Q!R%T!R![&c~%YRT~!O!P%c!g!h%w#X#Y%w~%fP!Q![%i~%nRT~!Q![%i!g!h%w#X#Y%w~%zR{|&T}!O&T!Q![&Z~&WP!Q![&Z~&`PT~!Q![&Z~&hST~!O!P%c!Q![&c!g!h%w#X#Y%w~&yOg~~'OO]~~'TO[~~'WP#T#U'Z~'^P#`#a'a~'dP#g#h'g~'jP#X#Y'm~'rOR~~'uP#i#j'x~'{P#`#a(O~(RP#`#a(U~(ZOS~~(^P#f#g(a~(dP#i#j(g~(jP#X#Y(m~(rOQ~~(wOW~~(|OV~",tokenizers:[0],topRules:{JsonText:[0,1]},tokenPrec:0});let yk=[],nF=[];(()=>{let t="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(e=>e?parseInt(e,36):1);for(let e=0,r=0;e<t.length;e++)(e%2?nF:yk).push(r=r+t[e])})();function QCe(t){if(t<768)return!1;for(let e=0,r=yk.length;;){let n=e+r>>1;if(t<yk[n])r=n;else if(t>=nF[n])e=n+1;else return!0;if(e==r)return!1}}function BN(t){return t>=127462&&t<=127487}const FN=8205;function DCe(t,e,r=!0,n=!0){return(r?iF:NCe)(t,e,n)}function iF(t,e,r){if(e==t.length)return e;e&&oF(t.charCodeAt(e))&&sF(t.charCodeAt(e-1))&&e--;let n=xP(t,e);for(e+=ZN(n);e<t.length;){let i=xP(t,e);if(n==FN||i==FN||r&&QCe(i))e+=ZN(i),n=i;else if(BN(i)){let o=0,s=e-2;for(;s>=0&&BN(xP(t,s));)o++,s-=2;if(o%2==0)break;e+=2}else break}return e}function NCe(t,e,r){for(;e>0;){let n=iF(t,e-2,r);if(n<e)return n;e--}return 0}function xP(t,e){let r=t.charCodeAt(e);if(!sF(r)||e+1==t.length)return r;let n=t.charCodeAt(e+1);return oF(n)?(r-55296<<10)+(n-56320)+65536:r}function oF(t){return t>=56320&&t<57344}function sF(t){return t>=55296&&t<56320}function ZN(t){return t<65536?1:2}class Dt{lineAt(e){if(e<0||e>this.length)throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,r,n){[e,r]=of(this,e,r);let i=[];return this.decompose(0,e,i,2),n.length&&n.decompose(0,n.length,i,3),this.decompose(r,this.length,i,1),Ss.from(i,this.length-(r-e)+n.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,r=this.length){[e,r]=of(this,e,r);let n=[];return this.decompose(e,r,n,0),Ss.from(n,r-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let r=this.scanIdentical(e,1),n=this.length-this.scanIdentical(e,-1),i=new fh(this),o=new fh(e);for(let s=r,a=r;;){if(i.next(s),o.next(s),s=0,i.lineBreak!=o.lineBreak||i.done!=o.done||i.value!=o.value)return!1;if(a+=i.value.length,i.done||a>=n)return!0}}iter(e=1){return new fh(this,e)}iterRange(e,r=this.length){return new aF(this,e,r)}iterLines(e,r){let n;if(e==null)n=this.iter();else{r==null&&(r=this.lines+1);let i=this.line(e).from;n=this.iterRange(i,Math.max(i,r==this.lines+1?this.length:r<=1?0:this.line(r-1).to))}return new lF(n)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}constructor(){}static of(e){if(e.length==0)throw new RangeError("A document must have at least one line");return e.length==1&&!e[0]?Dt.empty:e.length<=32?new Vr(e):Ss.from(Vr.split(e,[]))}}class Vr extends Dt{constructor(e,r=MCe(e)){super(),this.text=e,this.length=r}get lines(){return this.text.length}get children(){return null}lineInner(e,r,n,i){for(let o=0;;o++){let s=this.text[o],a=i+s.length;if((r?n:a)>=e)return new qCe(i,a,n,s);i=a+1,n++}}decompose(e,r,n,i){let o=e<=0&&r>=this.length?this:new Vr(YN(this.text,e,r),Math.min(r,this.length)-Math.max(0,e));if(i&1){let s=n.pop(),a=Qv(o.text,s.text.slice(),0,o.length);if(a.length<=32)n.push(new Vr(a,s.length+o.length));else{let l=a.length>>1;n.push(new Vr(a.slice(0,l)),new Vr(a.slice(l)))}}else n.push(o)}replace(e,r,n){if(!(n instanceof Vr))return super.replace(e,r,n);[e,r]=of(this,e,r);let i=Qv(this.text,Qv(n.text,YN(this.text,0,e)),r),o=this.length+n.length-(r-e);return i.length<=32?new Vr(i,o):Ss.from(Vr.split(i,[]),o)}sliceString(e,r=this.length,n=`
|
|
@@ -405,7 +405,7 @@ $3`);return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}}function Mje(t){return t.
|
|
|
405
405
|
`];let v=-1,O=0;for(const b of g){const S=t.indexOf(b,u);if(S!==-1&&S<l.start){v=S,O=b.length;break}}if(v!==-1)d=v+O;else{const b=[`
|
|
406
406
|
`,`\r
|
|
407
407
|
`];for(const S of b){const x=t.indexOf(S,u);if(x!==-1&&x<l.start){d=x+S.length;break}}}}const m=l.start;e.push({boundaryStart:a.start,boundaryEnd:a.end,headersStart:c,headersEnd:u,bodyStart:d,bodyEnd:m,contentType:f})}return e}const SQe=()=>vr.fromClass(class{decorations;constructor(t){this.decorations=this.buildDecorations(t)}update(t){(t.docChanged||t.viewportChanged)&&(this.decorations=this.buildDecorations(t.view))}buildDecorations(t){const e=t.state.doc.toString(),r=[],n=Me.mark({attributes:{style:"color: var(--color-carrot-8); font-weight: var(--font-weight-semibold);"}}),i=Me.mark({attributes:{style:"color: var(--color-blue-8);"}}),o=Me.mark({attributes:{style:"color: var(--color-purple-8);"}}),s=xQe(e),a=/^--[a-zA-Z0-9_\-\.]+(?:--)?(?:\r?\n|$)/gm,l=[];let c;for(;(c=a.exec(e))!==null;)l.push({start:c.index,end:c.index+c[0].length});for(const y of l)t.visibleRanges.some(g=>Math.max(g.from,y.start)<Math.min(g.to,y.end))&&r.push({from:y.start,to:y.end,value:n});const u=/^([a-zA-Z0-9\-]+):\s*(.+?)(?:\r?\n|$)/gm;for(const y of s){u.lastIndex=y.headersStart;let m;for(;(m=u.exec(e))!==null&&m.index<y.headersEnd;){const v=m.index+m[1].length+1+(m[2].match(/^\s*/)?.[0]?.length||0),O=m.index+m[0].length-(m[0].match(/\r?\n$/)?.[0]?.length||0);t.visibleRanges.some(S=>Math.max(S.from,v)<Math.min(S.to,O))&&O>v&&r.push({from:v,to:O,value:i})}}const d=/\[Binary\s+Data\]/gi;let f;for(;(f=d.exec(e))!==null;){const y=f.index,m=f[0].length;t.visibleRanges.some(v=>Math.max(v.from,y)<Math.min(v.to,y+m))&&r.push({from:y,to:y+m,value:o})}const h=Me.mark({attributes:{style:"color: var(--color-blue-8);"}});for(const y of s)if(y.contentType?.includes("json")){const m=e.slice(y.bodyStart,y.bodyEnd),g=m.trim();if(!g)continue;const v=m.length-m.trimStart().length,O=y.bodyStart+v;let b;try{const x=bf.create("inmemory://model.json","json",0,g),C=OQe.parseJSONDocument(x)?.root;b=vQe(C)?C:void 0}catch{b=void 0}if(!b)continue;const S=bQe(b);for(const x of S){const w=O+x.from,C=O+x.to;if(!t.visibleRanges.some(D=>Math.max(D.from,w)<Math.min(D.to,C))||!(e[w]==='"'&&e[C-1]==='"'))continue;const R=w+1,N=C-1;N<=R||r.push({from:R,to:N,value:h})}}return Me.set(r,!0)}},{decorations:t=>t.decorations}),wQe=()=>vr.fromClass(class{decorations;constructor(t){this.decorations=this.buildDecorations(t)}update(t){(t.docChanged||t.viewportChanged)&&(this.decorations=this.buildDecorations(t.view))}buildDecorations(t){const e=t.state.doc.toString(),r=[],n=Me.mark({attributes:{style:"color: var(--color-blue-8);"}}),i=/^([a-zA-Z0-9\-]+):\s*(.+?)(?:\r?\n|$)/gm;let o;for(;(o=i.exec(e))!==null;){let l=o.index+o[1].length+1;for(;l<e.length&&/\s/.test(e[l]);)l++;const u=o.index+o[0].length-(o[0].match(/\r?\n$/)?.[0]?.length||0);u<=l||!t.visibleRanges.some(f=>Math.max(f.from,l)<Math.min(f.to,u))||r.push({from:l,to:u,value:n})}return Me.set(r,!0)}},{decorations:t=>t.decorations}),PQe=W1({});function CQe(t){if(!t||typeof t!="object")return!1;const e=t;return typeof e.type=="string"&&typeof e.offset=="number"&&typeof e.length=="number"}function $Qe(t){const e=[];if(!t)return e;const r=[t];for(;r.length>0;){const n=r.pop();if(n.type==="property"){n.valueNode&&r.push(n.valueNode);continue}if(n.type==="string"){const i=n.offset,o=n.offset+n.length;o>i&&e.push({from:i,to:o})}if(n.children&&n.children.length)for(const i of n.children)r.push(i)}return e}const sC=()=>vr.fromClass(class{decorations;constructor(t){this.decorations=this.buildDecorations(t)}update(t){(t.docChanged||t.viewportChanged)&&(this.decorations=this.buildDecorations(t.view))}buildDecorations(t){const e=t.state.doc.toString(),r=[],n=Me.mark({attributes:{style:"color: var(--color-blue-8);"}}),i=Me.mark({attributes:{style:"color: var(--code-block-tokens-keyword-color); font-weight: var(--font-weight-bold);"}}),o=e.split(/\r?\n/);let s=0;for(let a=0;a<o.length;a++){const l=o[a],c=s,u=s+l.length;if(!l.trim()){s=u+(e[s+l.length]==="\r"?2:1);continue}let d=c,f=l;l.startsWith("0x1E")?(d=c+4,f=l.substring(4),r.push({from:c,to:c+4,value:i})):l.charCodeAt(0)===30&&(d=c+1,f=l.substring(1),r.push({from:c,to:c+1,value:i})),l.endsWith("0x0A")?(f=f.substring(0,f.length-4),r.push({from:u-4,to:u,value:i})):l.charCodeAt(l.length-1)===10&&(f=f.substring(0,f.length-1),r.push({from:u-1,to:u,value:i}));let h;try{const m=bf.create("inmemory://model.json","json",0,f),v=PQe.parseJSONDocument(m)?.root;h=CQe(v)?v:void 0}catch{h=void 0}if(!h){s=u+(e[s+l.length]==="\r"?2:1);continue}const y=$Qe(h);for(const m of y){const g=d+m.from,v=d+m.to;if(!t.visibleRanges.some(x=>Math.max(x.from,g)<Math.min(x.to,v))||!(e[g]==='"'&&e[v-1]==='"'))continue;const b=g+1,S=v-1;S<=b||r.push({from:b,to:S,value:n})}s=u+(e[s+l.length]==="\r"?2:1)}return Me.set(r,!0)}},{decorations:t=>t.decorations}),zf={[Ur.Text]:{name:"Text",extensions:[Qe.lineWrapping],stateExtensions:[LE]},[Ur.JSON]:{name:"JSON",extensions:[K8(),JIe(cQe(),{delay:0,needsRefresh:t=>t.transactions.some(e=>e.effects.some(r=>r.is(tG)))}),J8.data.of({autocomplete:dQe()}),uQe],stateExtensions:[lQe,yQe]},[Ur.XML]:{name:"XML",extensions:[zIe()],stateExtensions:[LE]}},rG={[Ur.MultipartMixed]:{name:"Multipart Mixed",extensions:[Qe.lineWrapping],stateExtensions:[SQe]},[Ur.JSONL]:{name:"JSON Lines",extensions:[Qe.lineWrapping],stateExtensions:[sC]},[Ur.NDJSON]:{name:"NDJSON",extensions:[K8(),Qe.lineWrapping],stateExtensions:[sC]},[Ur.JSONSeq]:{name:"JSON Sequence",extensions:[Qe.lineWrapping],stateExtensions:[sC]},[Ur.TextStream]:{name:"SSE",extensions:[Qe.lineWrapping],stateExtensions:[wQe]}},nG={[Ur.Image]:{name:"Image",extensions:[],stateExtensions:[]}},iG={[Ur.HTML]:{name:"HTML",extensions:[gIe()],stateExtensions:[LE]}},Hp={...zf,...nG,...iG,...rG},qA={...zf,...nG,...iG},qc={...zf,...rG},oG={[Ur.FormData]:{name:"form-data",extensions:void 0},[Ur["application/x-www-form-urlencoded"]]:{name:"x-www-form-urlencoded",extensions:void 0}},sG={[Ur.Binary]:{name:"Binary",extensions:void 0}},iu={...zf,...oG,...sG},kQe=Object.keys(zf),Y0=Object.keys(oG),aG=Object.keys(sG);function lG(t=[],e){const r={};return t.forEach(n=>{const i=String(n[e]);r[i]||(r[i]=[]),r[i].push(n)}),r}const ig={active:!0,key:"",value:""};function Al(t,e){return[...t.map(n=>({id:crypto.randomUUID(),key:n.name,value:e.initializeWithInputs?`$inputs.${n.name}`:n.example?String(n.example):"",active:e.initializeWithInputs?!0:!!n.example,in:n.in})),Sr(e.in)]}function og(t,e){const[r]=t.split("?"),n=e.slice(0,-1).filter(i=>i.active).map(i=>`${i.key}=${i.value}`).join("&");return`${r}${n?`?${n}`:""}`}function ho(){return{id:crypto.randomUUID(),...ig}}function xi(){return{id:crypto.randomUUID(),...ig,description:""}}function Sr(t){return{...ig,id:crypto.randomUUID(),in:t}}function ja(){return{id:crypto.randomUUID(),...ig,type:"text",files:null}}function zA(){return{id:crypto.randomUUID(),...ig,sendIn:Xn.URL}}function aC(t){return t.map(e=>({id:crypto.randomUUID(),key:"",value:e,active:!0}))}function F1(t,e){return t.filter(r=>r.active&&r.value).map(({value:r})=>(e?sr(r,e):r).trim())}function ql(t,e){const n=e.filter(i=>!!i).flatMap(i=>i).filter(i=>i.key&&i.active);return["path","header"].includes(t)?Array.from(new Map(n.map(i=>[i.key,i])).values()):n}function EQe(t,e){return t.map(({value:r,...n})=>({...n,value:sr(r,e)}))}function TQe(t,e){if(!t.startsWith("$components.parameters."))return null;const r=t.replace("$components.parameters.","");return r&&e[r]||null}function Rr(t=[],e={}){const r=[];for(const n of t)if(Rl(n)){const i=TQe(n.reference,e);i&&r.push({...i,active:n.active,value:n.value||i.value})}else r.push(n);return r}function bl(t){return Object.entries(t).map(([e,r])=>({id:crypto.randomUUID(),key:"",value:e,active:!0,description:r}))}function _Qe(t){return t.replace(/{/g,"{{").replace(/}/g,"}}")}const pq={documentedOAuth2Types:[],grantType:Se.ClientCredentials,authRequestExtraParams:[ho()],tokenRequestExtraParams:[zA()],[Se.ClientCredentials]:{clientId:"",clientSecret:"",clientAssertion:"",tokenUrl:"",scopes:[xi()],accessToken:""},[Se.ClientCredentialsWithJwtAssertion]:{clientId:"",clientSecret:"",clientAssertion:"",tokenUrl:"",scopes:[xi()],accessToken:""},[Se.AuthorizationCode]:{clientId:"",clientSecret:"",tokenUrl:"",authorizationUrl:"",callbackUrl:"",availableScopes:[],scopes:[xi()],codeVerifier:"",codeChallenge:"",accessToken:""},[Se.AuthorizationCodeWithPkce]:{clientId:"",clientSecret:"",tokenUrl:"",authorizationUrl:"",callbackUrl:"",availableScopes:[],scopes:[xi()],codeVerifier:"",codeChallenge:"",accessToken:""},[Se.Implicit]:{clientId:"",authorizationUrl:"",callbackUrl:"",availableScopes:[],scopes:[xi()],accessToken:""},[Se.Password]:{username:"",password:"",clientId:"",clientSecret:"",tokenUrl:"",accessToken:"",scopes:[xi()]}},AQe={securityType:be.NoAuth,securitySchemeId:null,[be.BasicAuth]:{username:"",password:""},[be.JWT]:{token:""},[be.DigestAuth]:{username:"",password:"",nc:"00000001",realm:"",nonce:"",opaque:"",qop:"",algorithm:"",cnonce:""},[be.APIKey]:{location:Ui.Header,name:"",key:""},[be.OAuth2]:pq,[be.OpenIDConnect]:{...pq,openIdConnectUrl:"",userInfoUrl:""}},VE="urn:ietf:params:oauth:client-assertion-type:jwt-bearer",IQe={[zn.SIMPLE]:{condition:"",type:zn.SIMPLE},[zn.REGEX]:{condition:"",type:zn.REGEX,context:""},[zn.JSONPATH]:{condition:"",type:zn.JSONPATH,context:""},[zn.XPATH]:{condition:"",type:zn.XPATH,context:""}};function G0(){return structuredClone({type:cn.Text,content:"",activeExampleName:"",formData:{"multipart/form-data":[ja()],"application/x-www-form-urlencoded":[ja()]},binary:null})}const RQe={method:"GET",url:"",security:[Ho()],body:G0(),queryParameters:[ho()],headers:[ho()],cookies:[ho()],pathParameters:[ho()]};function cG(){return structuredClone(RQe)}function Ho(){return Ta(AQe)}function jQe(t){return Ta({id:crypto.randomUUID(),...IQe[t]})}function uG(t,e,r){for(const n of r){const i=hq(t,n),o=hq(e,n);if(typeof i=="object"&&typeof o=="object"){if(!uG(i,o,r))return!1}else if(i!==o)return!1}return!0}function hq(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}function QQe(t,e){return t.length===e.length&&t.sort().join()===e.sort().join()}function DQe(t,e){return t.every(r=>e.includes(r))}function NQe(t){switch(t){case"query":return Ui.Query;case"cookie":return Ui.Cookie;case"header":return Ui.Header;default:return}}function MQe(t,e,r){const{security:n}=e,i=Sxe(t);if(!r)return!1;const o=LA(r),s=o.map(u=>u.securityType),a=n.map(u=>u.securityType);if(!QQe(s,a))return!0;let c=[];return n.forEach(u=>{const d=u.securityType,f=u[be.OAuth2]?.grantType,h=s.includes(d),y=o.find(O=>O.securityType===d),m=!y||uG(u,y,zQe(d,f)),g=qQe(u,d,u[be.OAuth2]?.grantType,i),v=!!(h&&y&&m&&g);c.push(!r.security?.length||v)}),c.includes(!1)}function qQe(t,e,r,n){if(e===be.OAuth2&&(r===Se.AuthorizationCode||r===Se.AuthorizationCodeWithPkce||r===Se.Implicit)){const i=t[be.OAuth2][r]?.availableScopes,o=F1(t[be.OAuth2][r]?.scopes,n);return DQe(o,i)}return!0}function zQe(t,e){return t===be.APIKey?[`${be.APIKey}/name`,`${be.APIKey}/location`]:t===be.OAuth2?[`${be.OAuth2}/grantType`,...LQe(e)]:t===be.OpenIDConnect?[`${be.OpenIDConnect}/openIdConnectUrl`]:[]}function LQe(t){return t===Se.ClientCredentials?[`${be.OAuth2}/${Se.ClientCredentials}/tokenUrl`]:t===Se.Password?[`${be.OAuth2}/${Se.Password}/tokenUrl`]:t===Se.Implicit?[`${be.OAuth2}/${Se.Implicit}/authorizationUrl`]:t===Se.AuthorizationCode?[`${be.OAuth2}/${Se.AuthorizationCode}/tokenUrl`,`${be.OAuth2}/${Se.AuthorizationCode}/authorizationUrl`]:t===Se.AuthorizationCodeWithPkce?[`${be.OAuth2}/${Se.AuthorizationCodeWithPkce}/tokenUrl`,`${be.OAuth2}/${Se.AuthorizationCodeWithPkce}/authorizationUrl`]:[]}function VQe(t){return t.map(e=>{const r=e.map(n=>n.id).join("_");return e.map(n=>({...n,schemeId:r}))})}function XQe(t){const e=t.security||[],r=e.map(n=>{let i="";const o=[];return n.forEach((s,a)=>{i=a===0?`${s.id}`:`${i}_${s.id}`,o.push(VA(s))}),{id:i,security:o}});return e.length?r:[]}function UQe(t,e){const r=t.security||[];return r?.length?hG(r).map((n,i)=>VA(n)):[]}function LA(t){const r=(t.security||[])[0];return r?r.map(n=>VA(n)):[Ho()]}function VA(t,e){const r={...Ho(),securitySchemeId:t.id},n=Z1(t);r.securityType=n;const i=t.id;if(t.id&&n!==be.NoAuth&&(r[n].schemeName=t.id),n===be.BasicAuth&&(r[be.BasicAuth].username||(r[be.BasicAuth].username=Er(i+L.SecurityVariablesEnvSuffix.Username)),r[be.BasicAuth].password||(r[be.BasicAuth].password=Er(i+L.SecurityVariablesEnvSuffix.Password))),n===be.DigestAuth&&(r[be.DigestAuth].username||(r[be.DigestAuth].username=Er(i+L.SecurityVariablesEnvSuffix.Username)),r[be.DigestAuth].password||(r[be.DigestAuth].password=Er(i+L.SecurityVariablesEnvSuffix.Password))),n===be.JWT&&!r[be.JWT].token&&(r[be.JWT].token=Er(i+L.SecurityVariablesEnvSuffix.JWTToken)),n===be.APIKey&&!r[be.APIKey].key){r[be.APIKey].name=t.name||"",r[be.APIKey].key=Er(i+L.SecurityVariablesEnvSuffix.APIKey);const o=NQe(t.in);o&&(r[be.APIKey].location=o)}if(n===be.OAuth2){const o=UA(t),s=Er(i+L.SecurityVariablesEnvSuffix.Token),a=r[be.OAuth2];a.grantType=o[0],o.forEach(l=>{l===Se.AuthorizationCode&&!a[Se.AuthorizationCode].accessToken&&(a[Se.AuthorizationCode].accessToken=s,a[Se.AuthorizationCode].clientId=Er(i+L.SecurityVariablesEnvSuffix.ClientId),a[Se.AuthorizationCode].authorizationUrl=t.flows?.authorizationCode?.authorizationUrl||"",a[Se.AuthorizationCode].tokenUrl=t.flows?.authorizationCode?.tokenUrl||"",a[Se.AuthorizationCode].clientSecret=Er(i+L.SecurityVariablesEnvSuffix.ClientSecret),a[Se.AuthorizationCode].availableScopes=Object.keys(t.flows?.authorizationCode?.scopes||{})||[],a[Se.AuthorizationCode].scopes=[...bl(t.flows?.authorizationCode?.scopes||{})||[],xi()]),l===Se.AuthorizationCodeWithPkce&&!a[Se.AuthorizationCodeWithPkce].accessToken&&(a[Se.AuthorizationCodeWithPkce].accessToken=s,a[Se.AuthorizationCodeWithPkce].clientId=Er(i+L.SecurityVariablesEnvSuffix.ClientId),a[Se.AuthorizationCodeWithPkce].authorizationUrl=t.flows?.authorizationCode?.authorizationUrl||"",a[Se.AuthorizationCodeWithPkce].tokenUrl=t.flows?.authorizationCode?.tokenUrl||"",a[Se.AuthorizationCodeWithPkce].clientSecret=Er(i+L.SecurityVariablesEnvSuffix.ClientSecret),a[Se.AuthorizationCodeWithPkce].availableScopes=Object.keys(t.flows?.authorizationCode?.scopes||{})||[],a[Se.AuthorizationCodeWithPkce].scopes=[...bl(t.flows?.authorizationCode?.scopes||{}),xi()]),l===Se.ClientCredentials&&!a[Se.ClientCredentials].accessToken&&(a[Se.ClientCredentials].accessToken=s,a[Se.ClientCredentials].clientId=Er(i+L.SecurityVariablesEnvSuffix.ClientId),a[Se.ClientCredentials].clientSecret=Er(i+L.SecurityVariablesEnvSuffix.ClientSecret),a[Se.ClientCredentials].tokenUrl=t.flows?.clientCredentials?.tokenUrl||"",a[Se.ClientCredentials].scopes=[...bl(t.flows?.clientCredentials?.scopes||{}),xi()]),l===Se.ClientCredentialsWithJwtAssertion&&!a[Se.ClientCredentialsWithJwtAssertion].accessToken&&(a[Se.ClientCredentialsWithJwtAssertion].accessToken=s,a[Se.ClientCredentialsWithJwtAssertion].clientId=Er(i+L.SecurityVariablesEnvSuffix.ClientId),a[Se.ClientCredentialsWithJwtAssertion].clientAssertion=Er(i+L.SecurityVariablesEnvSuffix.ClientAssertion),a[Se.ClientCredentialsWithJwtAssertion].scopes=[...bl(t.flows?.clientCredentials?.scopes||{}),xi()]),l===Se.Implicit&&!a[Se.Implicit].accessToken&&(a[Se.Implicit].accessToken=s,a[Se.Implicit].clientId=Er(i+L.SecurityVariablesEnvSuffix.ClientId),a[Se.Implicit].authorizationUrl=t.flows?.implicit?.authorizationUrl||"",a[Se.Implicit].availableScopes=Object.keys(t.flows?.implicit?.scopes||{})||[],a[Se.Implicit].scopes=[...bl(t.flows?.implicit?.scopes||{}),xi()]),l===Se.Password&&!a[Se.Password].accessToken&&(a[Se.Password].accessToken=s,a[Se.Password].clientId=Er(i+L.SecurityVariablesEnvSuffix.ClientId),a[Se.Password].clientSecret=Er(i+L.SecurityVariablesEnvSuffix.ClientSecret),a[Se.Password].tokenUrl=t.flows?.password?.tokenUrl||"",a[Se.Password].scopes=[...bl(t.flows?.password?.scopes||{}),xi()])})}if(n===be.OpenIDConnect){const o=Er(i+L.SecurityVariablesEnvSuffix.Token),s=r[be.OpenIDConnect];s[Se.AuthorizationCode].accessToken||(s[Se.AuthorizationCode].accessToken=o,s[Se.AuthorizationCode].clientId=Er(i+L.SecurityVariablesEnvSuffix.ClientId),s[Se.AuthorizationCode].clientSecret=Er(i+L.SecurityVariablesEnvSuffix.ClientSecret),s[Se.AuthorizationCode].tokenUrl=t.flows?.authorizationCode?.tokenUrl||""),s[Se.AuthorizationCodeWithPkce].accessToken||(s[Se.AuthorizationCodeWithPkce].accessToken=o,s[Se.AuthorizationCodeWithPkce].clientId=Er(i+L.SecurityVariablesEnvSuffix.ClientId),s[Se.AuthorizationCodeWithPkce].clientSecret=Er(i+L.SecurityVariablesEnvSuffix.ClientSecret),s[Se.AuthorizationCodeWithPkce].tokenUrl=t.flows?.authorizationCode?.tokenUrl||""),s[Se.Implicit].accessToken||(s[Se.Implicit].accessToken=o,s[Se.Implicit].clientId=Er(i+L.SecurityVariablesEnvSuffix.ClientId))}return r}function dG(t){try{const e=JSON.parse(t);return JSON.stringify(e,null,2)}catch(e){return console.error({error:e}),t}}function WQe(t,e=!1,r="",n){const i=lG(t.parameters,"in"),o=fG(t),s=LA(t),a=Al(i.query||[],{in:"query"});return{id:crypto.randomUUID(),name:t.name,operationId:t.operationId,collectionPath:n,apiPath:{path:t.path,method:t.method},apiId:r,isAdditionalOperation:e,request:{pathParameters:Al(i.path||[],{in:"path"}),method:t.method.toLocaleUpperCase(),url:og(_Qe(t.path),a),headers:Al(i.header||[],{in:"header"}),queryParameters:a,cookies:Al(i.cookie||[],{in:"cookie"}),body:o,security:s},response:null}}function XA(t){const e=lG(t.parameters,"in"),r=fG(t),n=LA(t);return{parameters:{queryParameters:Al(e.query||[],{in:"query"}),headers:Al(e.header||[],{in:"header"}),cookies:Al(e.cookie||[],{in:"cookie"}),pathParameters:Al(e.path||[],{initializeWithInputs:!0,in:"path"})},requestBody:r,security:n}}function BQe(t,e){const r=new ec({format:!0});if(typeof t=="string")return e?.includes("json")?dG(t):t;if(typeof t=="object"&&t!==null&&e?.includes("xml")){const i=Array.isArray(t)?t:{root:t};return r.build(i)}return JSON.stringify(t,null,2)}function fG(t){const e=t.body?.mediaTypes;if(!e||!Object.keys(e).length)return G0();const r=FQe(e,t),n=r?.name||"",i=!Y0.includes(n)&&!aG.includes(n),o=XE(r),a=o.find(({key:c})=>c===t.body?.activeExampleName)?.value??o[0]?.value,l=i&&a?BQe(a,n):"";return{...G0(),activeExampleName:t.body?.activeExampleName||o[0]?.key||"",...r&&{type:r.name},content:l,formData:{"multipart/form-data":mq(e[Ur.FormData]),"application/x-www-form-urlencoded":mq(e[Ur["application/x-www-form-urlencoded"]])}}}function pG(t){return t?{...(Object.keys(t?.body?.mediaTypes||{})||[]).reduce((r,n)=>(r[n]={name:n,extensions:void 0},r),{}),...iu}:iu}function mq(t){if(!t)return[ja()];if(!t.parameters)return[ja()];const e=t.parameters.map(r=>({id:crypto.randomUUID(),key:r.name,value:String(r.example)||"",active:!0,type:r.inputType,files:null}));return e.push(ja()),e}function XE(t){const e=t?.examples;return Object.keys(e||{}).map(r=>{const n=e?.[r];return{name:L.isString(n?.summary)?n?.summary:n?.summary?.raw||r,key:r,value:e?.[r].value}})}function FQe(t,e){const r=pG(e),n=Object.keys(t).find(i=>!!r[i]);return n?t[n]:null}function ZQe(t){return!t?.security?.length||!t?[]:UQe(t)}function hG(t){const e=new Set;return t.flat().filter(r=>e.has(r.id)?!1:(e.add(r.id),!0))}function Z1(t){if(t.type==="http"){if(t.scheme==="bearer")return be.JWT;if(t.scheme==="basic")return be.BasicAuth;if(t.scheme==="digest")return be.DigestAuth}else{if(t.type==="apiKey")return be.APIKey;if(t.type==="oauth2")return be.OAuth2;if(t.type==="openIdConnect")return be.OpenIDConnect}return be.NoAuth}function YQe(t,e){if(t==="clientCredentials"&&e&&"x-assertionType"in e&&e["x-assertionType"]===VE)return Se.ClientCredentialsWithJwtAssertion;if(t==="authorizationCode"&&e&&"x-usePkce"in e&&e["x-usePkce"])return Se.AuthorizationCodeWithPkce;switch(t){case"implicit":return Se.Implicit;case"password":return Se.Password;case"clientCredentials":return Se.ClientCredentials;case"authorizationCode":return Se.AuthorizationCode;default:return Se.AuthorizationCode}}function GQe(t,e){const r=t?.security;if(!r?.length)return[];const o=VQe(r).flat().filter(s=>s.schemeId===e).find(s=>Z1(s)===be.OAuth2);return UA(o)}function UA(t){return Object.entries(t?.flows||{}).map(([e,r])=>YQe(e,r)).filter(Boolean)}async function sg(t){try{const e=await UB(t),r=await q_(t);return{absolutePath:t,file:new File([e],r)}}catch(e){return console.error("Failed to init replay file",e),null}}async function mG(t){return(await Promise.allSettled(t.map(r=>sg(r)))).map(r=>r.status==="fulfilled"?r.value:null).filter(r=>r!==null)}function Zv(t){return/(?:^[a-z][a-z0-9+.-]*:|\/\/)/i.test(t)}function UE(t){return t.endsWith("/")?t.substring(0,t.length-1):t}function HQe(t){try{const e=new URL(t);return e.search="",e.hash="",e.toString()}catch{return t}}function Y1(t){return/^https?:\/\//i.test(t)}function JQe(t,e){let r;if(e.startsWith("//")){const{protocol:n}=new URL(t);r=`${n||"https:"}${e}`}else if(Zv(e))r=e;else if(!e.startsWith("/"))r=UE(t)+"/"+e;else{const n=new URL(t);n.pathname=e,r=n.toString()}return UE(r)}function gq(t,e){let r=t;return e.forEach(({key:n,value:i,active:o})=>{i&&o&&(r=r.replaceAll(`{${n}}`,i))}),r}function gG(t,e){let r=t;return e.forEach(({name:n,value:i})=>{i&&(r=r.replaceAll(`{${n}}`,i))}),r}function KQe(t){return t.startsWith("http://")||t.startsWith("https://")}function YO({url:t,serverUrl:e,corsProxyUrl:r}){let n;if(KQe(t)||!e)n=t;else{const i=new URL(e);i.pathname=t,i.search="",i.hash="",n=i.toString()}return r?`${r}${n}`:n}async function e5e(t,e,r,n,i,o){const s=await Promise.all(t.sourceDescriptions?.map(async l=>({...l,apiId:await yG({projectPath:n,apiUrl:l.url,collectionId:e})}))),a={inputs:t.components?.inputs||{},parameters:Object.fromEntries(Object.entries(t.components?.parameters||{}).map(([l,c])=>[l,{...c,key:c.name,value:c.value,id:crypto.randomUUID(),active:!0}]))};return{...t,id:e,srcType:r,state:zt.Normal,sourceDescriptions:s,components:a,workflows:await Promise.all(t.workflows.map(async l=>({...l,state:zt.Normal,parameters:Cq(l.parameters,l["x-replay-disabled-parameters"],t.components?.parameters),outputs:wq(l.outputs),security:bq(l["x-security"]),steps:await Promise.all(l.steps.map(async c=>{const u=Cq(c.parameters,c["x-replay-disabled-parameters"],t.components?.parameters),d=c["x-operation"]??null;d&&(d.url=og(d.url,u.queryParameters.filter(t7)));const f=t5e(c,s,i);let h;if(f&&o){const m=i?.find(g=>g.id===f.apiId);try{h=o(f.path,f.method,m)}catch(g){console.error("Failed to convert operation to replay value",g),h=void 0}}delete c.operationId,delete c["x-operation"];const y=await a5e(c.requestBody,n);return{...c,state:zt.Normal,parameters:u,outputs:wq(c.outputs),successCriteria:c.successCriteria?.map(m=>({...m,type:m.type??zn.SIMPLE}))||[],requestBody:y,xOperation:d,security:bq(c["x-security"],h),operation:f}}))})))}}async function yG({projectPath:t,apiUrl:e,collectionId:r}){if(Y1(e))return e;if(await cr.isAbsolute(e))return await cr.relative(t,e);const n=await cr.resolve(await cr.join(t,r,"..",e));return await cr.relative(t,n)}function t5e(t,e,r){if(t["x-operation"])return null;const{path:n,method:i,apiId:o,isAdditionalOperation:s}=OG({operationPath:t.operationPath,parsedSourceDescriptions:e}),{operationId:a,apiId:l}=r5e({operationId:t.operationId,parsedSourceDescriptions:e}),c=l||o||e[0]?.apiId||"",u=r?.find(d=>d.id===c);if(a&&u&&!n&&!i){const d=c5e(a,u);return{apiId:c,path:d?.path??"",method:d?.method??"",operationId:a,isAdditionalOperation:d?.isAdditionalOperation??!1}}return{apiId:c,path:n??"",method:i??"",operationId:a,isAdditionalOperation:s}}function r5e({operationId:t,parsedSourceDescriptions:e}){if(!t)return{operationId:"",apiId:null};const r=t.split(".");if(r.length===1)return{operationId:t,apiId:e[0]?.apiId??""};const[,n,i=""]=r,o=e.find(({name:s})=>s===n);return{operationId:i,apiId:o?.apiId??""}}function yq(t){return"reference"in t&&typeof t.reference=="string"}function OG({operationPath:t,parsedSourceDescriptions:e}){if(!t)return{apiId:null,path:"",method:"",isAdditionalOperation:!1};try{const r=t.split("#"),n=r.length>1?r[1]:r[0],i=r.length>1?r[0]:"";if(!n)return{path:"",method:"",apiId:null,isAdditionalOperation:!1};let o=null,s=null;const a=/\$sourceDescriptions\.(.+)\.url/,l=i.match(a);if(l&&(o=l[1]),o){const h=e.find(({name:y})=>y===o);h&&(s=h.apiId)}const c=n.split("/"),u=c.pop()||"",d=c[c.length-1]==="additionalOperations";return d&&c.pop(),{path:n0.unescape(c.pop()||""),method:u.toLowerCase(),apiId:s,isAdditionalOperation:d}}catch{return{path:"",method:"",apiId:null,isAdditionalOperation:!1}}}function n5e(t){switch(t.type){case"apiKey":return be.APIKey;case"oauth2":return be.OAuth2;case"openIdConnect":return be.OpenIDConnect;case"http":return t.scheme==="basic"?be.BasicAuth:t.scheme==="digest"?be.DigestAuth:t.scheme==="bearer"?be.JWT:be.NoAuth;default:return be.NoAuth}}function vG(t,e){const r={clientCredentials:Se.ClientCredentials,authorizationCode:Se.AuthorizationCode,implicit:Se.Implicit,password:Se.Password,clientCredentialsWithJwtAssertion:Se.ClientCredentialsWithJwtAssertion,authorizationCodeWithPkce:Se.AuthorizationCodeWithPkce};return t==="clientCredentials"&&e["x-assertionType"]==="urn:ietf:params:oauth:client-assertion-type:jwt-bearer"?Se.ClientCredentialsWithJwtAssertion:t==="authorizationCode"&&e["x-usePkce"]?Se.AuthorizationCodeWithPkce:r[t]??null}function i5e(t){return{query:Ui.Query,header:Ui.Header,cookie:Ui.Cookie}[t.toLowerCase()]||Ui.Header}function o5e(t){return{body:Xn.Body,header:Xn.Header,url:Xn.URL}[t.toLowerCase()]||Xn.URL}function Oq(t,e,r){return Object.keys(t).reduce((n,i)=>{const o=vG(i,t[i]);if(!o)return n;switch(o){case Se.ClientCredentials:n[o]={...r[o],clientId:e.clientId??"",clientSecret:e.clientSecret??"",clientAssertion:e.clientAssertion??"",tokenUrl:t[i].tokenUrl??"",scopes:wc(t[i].scopes,t[i]["x-replay-disabled-scopes"]),accessToken:e.accessToken??""};break;case Se.AuthorizationCode:n[o]={...r[o],clientId:e.clientId??"",clientSecret:e.clientSecret??"",tokenUrl:t[i].tokenUrl??"",authorizationUrl:t[i].authorizationUrl??"",callbackUrl:e.callbackUrl??"",availableScopes:t[i].availableScopes??[],scopes:wc(t[i].scopes,t[i]["x-replay-disabled-scopes"]),accessToken:e.accessToken??""};break;case Se.Implicit:n[o]={...r[o],clientId:e.clientId??"",authorizationUrl:t[i].authorizationUrl??"",callbackUrl:e.callbackUrl??"",availableScopes:wc(t[i].availableScopes),scopes:wc(t[i].scopes,t[i]["x-replay-disabled-scopes"]),accessToken:e.accessToken??""};break;case Se.Password:n[o]={...r[o],tokenUrl:t[i].tokenUrl??"",username:e.username??"",password:e.password??"",clientId:e.clientId??"",clientSecret:e.clientSecret??"",accessToken:e.accessToken??""};break;case Se.ClientCredentialsWithJwtAssertion:n[o]={...r[o],clientAssertion:e.clientAssertion??"",tokenUrl:t[i].tokenUrl??"",scopes:wc(t[i].scopes,t[i]["x-replay-disabled-scopes"]),clientId:e.clientId??"",clientSecret:e.clientSecret??"",accessToken:e.accessToken??""};break;case Se.AuthorizationCodeWithPkce:n[o]={...r[o],tokenUrl:t[i].tokenUrl??"",authorizationUrl:t[i].authorizationUrl??"",callbackUrl:e.callbackUrl??"",availableScopes:wc(t[i].availableScopes),scopes:wc(t[i].scopes,t[i]["x-replay-disabled-scopes"]),codeVerifier:e.codeVerifier??"",codeChallenge:e.codeChallenge??"",clientId:e.clientId??"",clientSecret:e.clientSecret??"",accessToken:e.accessToken??""};break}return n},r)}function vq(t,e,r){const i={...Ho(),securityType:t},o=Object.keys(e.flows||{})[0],s=vG(o,e.flows?.[o])??Se.ClientCredentials;switch(t){case be.BasicAuth:return{...i,[be.BasicAuth]:{username:r.username,password:r.password,schemeName:e.id}};case be.JWT:return{...i,[be.JWT]:{token:r.token,schemeName:e.id}};case be.DigestAuth:return{...i,[be.DigestAuth]:{...i[be.DigestAuth],username:r.username,password:r.password,schemeName:e.id}};case be.APIKey:return{...i,[be.APIKey]:{location:i5e(e.in),name:e.name,key:r.apiKey,schemeName:e.id}};case be.OAuth2:return{...i,[be.OAuth2]:{...i[be.OAuth2],...Oq(e.flows||{},r||{},i[be.OAuth2]),authRequestExtraParams:xq(r.authRequestExtraParams),tokenRequestExtraParams:Sq(r.tokenRequestExtraParams),grantType:s,schemeName:e.id}};case be.OpenIDConnect:return{...i,[be.OpenIDConnect]:{...i[be.OpenIDConnect],...Oq(r.flows||{},r||{},i[be.OpenIDConnect]),openIdConnectUrl:r.openIdConnectUrl,userInfoUrl:r.userInfoUrl,authRequestExtraParams:xq(r.authRequestExtraParams),tokenRequestExtraParams:Sq(r.tokenRequestExtraParams),grantType:s,schemeName:e.id}};default:return i}}function s5e(t,e){return[...t.map(n=>{if("scheme"in n){const o=n5e(n.scheme);return vq(o,n.scheme,n.values)}const i=e.find(o=>o.id===n.schemeName);if(i){const o=Z1(i),s=vq(o,i,n.values);return s.securitySchemeId=i.id,s}return Ho()})]}function bq(t=[],e){const r=hG(e?.security||[]);return t.length?s5e(t,r):[Ho()]}function wc(t,e){const r=bl(t||{}),n=bl(e||{});return[...r,...n,xi()]}function xq(t){return(t||[]).map(e=>({id:crypto.randomUUID(),key:e.key??"",value:e.value??"",active:e.active??!0})).concat(ho())}function Sq(t){return(t||[]).map(e=>({id:crypto.randomUUID(),key:e.key??"",value:e.value??"",active:e.active??!0,sendIn:o5e(e.in)})).concat(zA())}function wq(t){if(!t)return[ho()];const e=[];for(const r in t)e.push({id:crypto.randomUUID(),key:r,value:t[r],active:!0});return e.push(ho()),e}const Gu={query:"queryParameters",path:"pathParameters",header:"headers",cookie:"cookies"};function Pq(t,e){const r="$components.parameters.";if(t.reference.startsWith(r)){const n=t.reference.replace(r,"");return e?.[n]}}function Cq(t,e,r){if(!t&&!e)return{pathParameters:[Sr("path")],queryParameters:[Sr("query")],headers:[Sr("header")],cookies:[Sr("cookie")]};const n={pathParameters:[],queryParameters:[],headers:[],cookies:[]};if(t)for(const i of t)if(yq(i)){const o=Pq(i,r),s=Gu[o?.in];s&&n[s].push({reference:i.reference,active:!0,value:i.value})}else Gu[i.in]&&n[Gu[i.in]].push({id:crypto.randomUUID(),key:i.name,value:i.value,active:!0,in:i.in});if(e)for(const i of e)if(yq(i)){const o=Pq(i,r),s=Gu[o?.in];s&&n[s].push({reference:i.reference,active:!1,value:i.value})}else Gu[i.in]&&n[Gu[i.in]].push({id:crypto.randomUUID(),key:i.name,value:i.value,active:!1,in:i.in});return n.pathParameters.push(Sr("path")),n.queryParameters.push(Sr("query")),n.headers.push(Sr("header")),n.cookies.push(Sr("cookie")),n}async function a5e(t,e){const r=cG().body;if(!t)return r;switch(t.contentType){case"application/x-www-form-urlencoded":case"multipart/form-data":return{...r,type:t.contentType,formData:await l5e(t,e)};case"application/octet-stream":const n=t.payload?await bG(t.payload,e):[],i=n.length>0?await sg(n[0]):null;return{...r,type:t.contentType,binary:i};case"application/json":case"application/ld+json":return{...r,type:t.contentType,content:kq(t.payload)};default:{const o=typeof t.payload=="string",s=t.contentType||(o?"text/plain":"application/json");return{...r,type:s,content:o?t.payload:kq(t.payload)}}}}async function $q(t,e,r,n){const i=await bG(e,n),o=i.length>0||Array.isArray(e),s=o?await mG(i):void 0;return{id:crypto.randomUUID(),key:t,value:o?"":e,type:o?"file":"text",active:r,files:s}}async function l5e(t,e){const r=cG().body.formData,n=t.contentType,i=t.payload?await Promise.all(Object.entries(t.payload).map(([a,l])=>$q(a,l,!0,e))):[],o=t["x-replay-disabled-payload"]?await Promise.all(Object.entries(t["x-replay-disabled-payload"]||{}).map(([a,l])=>$q(a,l,!1,e))):[];return{...r,[n]:[...i,...o,ja()]}}function kq(t){return t?JSON.stringify(t,null,2):""}function c5e(t,e){for(const r of Object.keys(e.paths)){const n=e.paths[r];for(const i of Object.keys(n)){const o=i.toLowerCase();if(["get","put","post","delete","options","head","patch","trace"].includes(o)&&n[o]?.operationId===t)return{method:o,path:r,isAdditionalOperation:!1}}if(n.additionalOperations){for(const[i,o]of Object.entries(n.additionalOperations))if(o?.operationId===t)return{method:i.toLowerCase(),path:r,isAdditionalOperation:!0}}}return null}async function bG(t,e){return Array.isArray(t)?(await Promise.all(t.map(r=>Eq(r,e)))).flat():typeof t=="string"?await Eq(t,e):[]}async function Eq(t,e){const r=/\$file\(['"](.+?)['"]\)/g,n=Array.from(t.matchAll(r));return Promise.all(n.map(i=>u5e(i[1],e)))}async function u5e(t,e){return await cr.isAbsolute(t)?t:await cr.resolve(await cr.join(e,t))}const ai=t=>!t||typeof t=="boolean"?{type:"object",properties:{}}:t.type?t:{...t,type:"object"},Tq=(t,e,r)=>{if(!t.properties)return t;const n=t.properties[e],i=ai(n);return{...t,properties:{...t.properties,[e]:{...i,...r}}}},d5e=(t,e,r)=>{if(!t.properties||e===r||!r.trim())return null;const n={...t.properties};return n[r]?null:(n[r]=n[e],delete n[e],{...t,properties:n})},f5e=(t,e)=>{if(!t.properties)return t;const r={...t.properties};return delete r[e],{...t,properties:r}},p5e=(t,e,r={type:"string"})=>{const n=t.properties||{};return{...t,type:"object",properties:{...n,[e]:r}}};function _q(t){const e=Object.assign({},...(t||[]).filter(({key:r,active:n})=>r&&n).map(r=>({[r.key]:r.value})));if(Object.keys(e).length!==0)return e}function Aq(t){if(!t)return{};const e={queryParameters:"query",headers:"header",cookies:"cookie",pathParameters:"path"},r=[],n=[];return Object.keys(e).forEach(i=>{const o=i;t[o].forEach(s=>{if(Rl(s)){const a={reference:s.reference,value:s.value||void 0};s.active?r.push(a):n.push(a)}else{if(!s.key)return;const a={name:s.key,in:e[o],value:s.value};s.active?r.push(a):n.push(a)}})}),{parameters:r.length>0?r:void 0,"x-replay-disabled-parameters":n.length>0?n:void 0}}function h5e(t){const e=t?.map(r=>({condition:r.condition,context:r.context,type:r.type==zn.SIMPLE?void 0:r.type}));if(e?.length!==0)return e}function m5e(t){if(!(!t||t.length===0))return[...t]}async function xG(t,e){return t.absolutePath?`$file('${await cr.relative(e,t.absolutePath)}')`:null}async function g5e(t,e){const{type:r,value:n,files:i}=t;switch(r){case"text":return n;case"file":let o=[];return i&&(o=(await Promise.all(Object.values(i).map(s=>xG(s,e)))).filter(s=>s!==null)),o.length===0?"":o.length===1?o[0]:o}}async function y5e(t,e){const r=t.type,n=t.formData[r],i={},o={};return await Promise.all(n.map(async s=>{const{key:a,active:l}=s;if(!a)return;const c=await g5e(s,e);l?i[a]=c:o[a]=c})),{payload:Object.keys(i).length>0?i:void 0,"x-replay-disabled-payload":Object.keys(o).length>0?o:void 0}}function O5e(t){if(!t)return t;try{const e=JSON.parse(t);return typeof e=="object"?e:t}catch{return t}}async function v5e(t,e){if(t)switch(t.type){case"application/x-www-form-urlencoded":case"multipart/form-data":return{contentType:t.type,...await y5e(t,e)};case"application/octet-stream":return{contentType:t.type,payload:t.binary?await xG(t.binary,e):null};case"application/json":case"application/ld+json":return t.content?{contentType:t.type,payload:O5e(t.content)}:void 0;default:return t.content?{contentType:t.type,payload:t.content}:void 0}}function b5e(t){return{...t.schemeName?{schemeName:t.schemeName}:{scheme:{type:"http",scheme:"basic"}},values:{username:t.username,password:t.password}}}function x5e(t){return{...t.schemeName?{schemeName:t.schemeName}:{scheme:{type:"apiKey",name:t.name,in:t.location.toLowerCase()}},values:{apiKey:t.key}}}function S5e(t){return{...t.schemeName?{schemeName:t.schemeName}:{scheme:{type:"http",scheme:"bearer"}},values:{token:t.token}}}function w5e(t){return{...t.schemeName?{schemeName:t.schemeName}:{scheme:{type:"http",scheme:"digest"}},values:{username:t.username,password:t.password}}}function P5e(t){const{flows:e,values:r}=PG(t);return{...t.schemeName?{schemeName:t.schemeName}:{scheme:{type:"openIdConnect",flows:e}},values:{...r,openIdConnectUrl:t.openIdConnectUrl,userInfoUrl:t.userInfoUrl,authRequestExtraParams:SG(t.authRequestExtraParams),tokenRequestExtraParams:wG(t.tokenRequestExtraParams)}}}function C5e(t){const{flows:e,values:r}=PG(t);return{...t.schemeName?{schemeName:t.schemeName}:{scheme:{type:"oauth2",flows:e}},values:{...r,authRequestExtraParams:SG(t.authRequestExtraParams),tokenRequestExtraParams:wG(t.tokenRequestExtraParams)}}}function Hu(t){const e={},r={};return t.forEach(n=>{n.value&&(n.active?e[n.value]=n.description:r[n.value]=n.description)}),{scopes:e,"x-replay-disabled-scopes":Object.keys(r).length>0?r:void 0}}function SG(t){return t.filter(e=>e.value||e.key).map(e=>({key:e.key,value:e.value,active:e.active}))}function wG(t){return t.filter(e=>e.value||e.key).map(e=>({key:e.key,value:e.value,active:e.active,in:e.sendIn.toLowerCase()}))}function PG(t){let e;switch(t.grantType){case Se.ClientCredentials:return e=t[Se.ClientCredentials],{flows:{clientCredentials:{tokenUrl:e.tokenUrl,...Hu(e.scopes)}},values:{clientId:e.clientId,clientSecret:e.clientSecret,accessToken:e.accessToken}};case Se.Implicit:return e=t[Se.Implicit],{flows:{implicit:{authorizationUrl:e.authorizationUrl,...Hu(e.scopes)}},values:{clientId:e.clientId,accessToken:e.accessToken,callbackUrl:e.callbackUrl}};case Se.Password:return e=t[Se.Password],{flows:{password:{tokenUrl:e.tokenUrl,...Hu(e.scopes)}},values:{clientId:e.clientId,clientSecret:e.clientSecret,username:e.username,password:e.password,accessToken:e.accessToken}};case Se.AuthorizationCode:return e=t[Se.AuthorizationCode],{flows:{authorizationCode:{tokenUrl:e.tokenUrl,authorizationUrl:e.authorizationUrl,...Hu(e.scopes)}},values:{accessToken:e.accessToken,clientId:e.clientId,callbackUrl:e.callbackUrl}};case Se.ClientCredentialsWithJwtAssertion:return e=t[Se.ClientCredentialsWithJwtAssertion],{flows:{clientCredentials:{tokenUrl:e.tokenUrl,...Hu(e.scopes),"x-assertionType":"urn:ietf:params:oauth:client-assertion-type:jwt-bearer"}},values:{clientId:e.clientId,clientAssertion:e.clientAssertion,accessToken:e.accessToken}};case Se.AuthorizationCodeWithPkce:return e=t[Se.AuthorizationCodeWithPkce],{flows:{authorizationCode:{tokenUrl:e.tokenUrl,authorizationUrl:e.authorizationUrl,...Hu(e.scopes),"x-usePkce":!0}},values:{clientId:e.clientId,clientSecret:e.clientSecret,accessToken:e.accessToken,codeVerifier:e.codeVerifier,codeChallenge:e.codeChallenge,callbackUrl:e.callbackUrl}}}}function Iq(t){const e=t.map(r=>{switch(r.securityType){case be.OpenIDConnect:{const i=r[be.OpenIDConnect];return P5e(i)}case be.OAuth2:{const i=r[be.OAuth2];return C5e(i)}case be.APIKey:{const i=r[be.APIKey];return x5e(i)}case be.BasicAuth:{const i=r[be.BasicAuth];return b5e(i)}case be.DigestAuth:{const i=r[be.DigestAuth];return w5e(i)}case be.JWT:{const i=r[be.JWT];return S5e(i)}default:return null}}).filter(r=>r!==null);return{"x-security":e.length?e:void 0}}function $5e(t){const{inputs:e,parameters:r,...n}=t;let i=n;return Object.keys(e).length&&(i.inputs=e),Object.keys(r).length&&(i.parameters=Object.fromEntries(Object.entries(r).map(([o,{id:s,active:a,key:l,...c}])=>[o,{...c,name:l}]))),Object.keys(i).length||(i=void 0),i}async function k5e(t,e){const{id:r,state:n,srcType:i,sourceDescriptions:o,workflows:s,components:a,...l}=t;return{arazzoObject:{...l,sourceDescriptions:o.map(c=>({...c,name:c.name,url:c.url,type:c.type||"openapi",apiId:void 0})),components:$5e(a),workflows:await Promise.all(s.map(async({parameters:c,security:u,dependsOn:d,outputs:f,state:h,steps:y,inputs:m,...g})=>({...g,dependsOn:m5e(d),outputs:_q(f),inputs:m?ai(m):void 0,...Iq(u),...Aq(c),steps:await Promise.all(y.map(async({parameters:v,security:O,operation:b,requestBody:S,successCriteria:x,outputs:w,state:C,xOperation:k,...R})=>{const N={operationId:void 0,operationPath:void 0,"x-operation":void 0};if(b){const D=t.sourceDescriptions.find(({apiId:U})=>U===b.apiId)||t.sourceDescriptions[0];if(b.operationId){const U=t.sourceDescriptions.length<=1;N.operationId=U?b.operationId:`$sourceDescriptions.${D.name}.${b.operationId}`}else N.operationPath=b.isAdditionalOperation?`{$sourceDescriptions.${D.name}.url}#/paths/${n0.escape(b.path)}/additionalOperations/${b.method}`:`{$sourceDescriptions.${D.name}.url}#/paths/${n0.escape(b.path)}/${b.method}`}else k&&(N["x-operation"]={...k,url:k.url.split("?")[0]});return{...R,...N,...Iq(O),...Aq(v),requestBody:await v5e(S,e),successCriteria:h5e(x),outputs:_q(w)}}))})))}}}class E5e extends FB{constructor(e,r){super(e),this.convertOperationToReplayValue=r}parse(e,r){return e5e(e.content,e.uri,e.type,this.storage.baseDir,r,this.convertOperationToReplayValue)}async stringify(e){const{arazzoObject:r}=await k5e(e,this.storage.baseDir);return await cr.extname(e.id)===".json"?JSON.stringify(r,null,2):Na.dump(r)}}class T5e{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=Na.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:zt.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",Na.dump(i))}}class _5e{constructor(e,r,n){this.storage=e,this.filePath=r,this.defaultValue=n}async parse(e){return JSON.parse(e)}stringify(e){return JSON.stringify(e)}async read(){const e=await this.storage.get(this.filePath);return e?await this.parse(e):this.defaultValue}async write(e){return this.storage.set(this.filePath,this.stringify(e))}}const A5e=(t,e)=>({data:t,version:e});class WA extends _5e{constructor(e,r,n,i){super(e,r,n),this.version=i}migrationMap={};migrate(e){if(!this.migrationMap[e.version])return this.defaultValue;const r=this.migrationMap[e.version](e);return r.version===this.version?r:this.migrate(r)}async parse(e){const r=JSON.parse(e);if(r.version!==this.version){const n=this.migrate(r);return await this.write(n.data),n.data}return r.data}stringify(e){return JSON.stringify(A5e(e,this.version))}}function I5e(t){return{data:{...t.data,tabs:t.data.tabs.map(e=>e.data.type===Ge.Step?{...e,data:{...e.data,draftStep:{...e.data.step,security:e.data.step.security.securities},step:void 0,hasUnsavedChanges:void 0,showUnsavedChangesModal:void 0}}:e)},version:2}}const Rq=2,R5e="tabs.json";class j5e extends WA{migrationMap={1:I5e};constructor(e){super(e,R5e,Ta(NB),Rq)}async parse(e){let r=JSON.parse(e);r.version!==Rq&&(r=this.migrate(r));const n=await Promise.all(r.data.tabs.map(async i=>{if(i.data.type===Ge.Step&&i.data.draftStep){const o=i.data.draftStep.requestBody.formData;o["multipart/form-data"]=await jq(o["multipart/form-data"]),o["application/x-www-form-urlencoded"]=await jq(o["application/x-www-form-urlencoded"]),i.data.draftStep.requestBody.binary&&i.data.draftStep.requestBody.binary.absolutePath&&(i.data.draftStep.requestBody.binary=await sg(i.data.draftStep.requestBody.binary.absolutePath))}return i}));return{...r.data,tabs:n}}stringify(e){return super.stringify({...e,tabs:e.tabs.map(r=>r.data.type===Ge.Step?{...r,data:{...r.data,response:null}}:r.data.type===Ge.WorkflowRun?{...r,data:{...r.data,result:null}}:r)})}}async function jq(t){return Promise.all(t.map(async e=>{const r={...e};if(e.files){const n=e.files.map(i=>i.absolutePath).filter(i=>i!==null);r.files=await mG(n)}return r}))}function Q5e(t){return{data:t.data.map(e=>({...e,step:{...e.step,security:e.step.security.securities}})),version:2}}const D5e=2,N5e="history.json";class M5e extends WA{migrationMap={1:Q5e};constructor(e){super(e,N5e,[],D5e)}}const q5e=1;class CG{constructor(e,r,n,i,o,s){this.systemFilesStorage=e,this.userFilesStorage=r,this.project=n,this.isApiPersisted=i,this.convertOperationToReplayValue=o,this.telemetry=s,this.localStorageSecretsProvider=new BPe(this.project.id);const a=new WPe;this.historyStorage=new M5e(this.systemFilesStorage),this.activeEnvironmentIdStorage=new WA(this.systemFilesStorage,"active_environment_id.json",Fm,q5e),this.tabsStateStorage=new j5e(this.systemFilesStorage),this.environmentsStorage=new T5e(this.userFilesStorage,this.localStorageSecretsProvider),this.collectionsStorage=new E5e(this.userFilesStorage,this.convertOperationToReplayValue),this.apisStorage=new FPe(this.isApiPersisted?this.userFilesStorage:a)}historyStorage;activeEnvironmentIdStorage;tabsStateStorage;environmentsStorage;collectionsStorage;apisStorage;localStorageSecretsProvider;async update(e,r){switch(e.path[0]){case"history":this.historyStorage.write(r.history.get());break;case"activeEnvironmentId":this.activeEnvironmentIdStorage.write(r.activeEnvironmentId.get());break;case"tabsState":this.tabsStateStorage.write(r.tabsState.get());break;case"environments":this.environmentsStorage.write(r.environments.get());break;case"apis":this.isApiPersisted&&await this.apisStorage.update(e,r.apis.get());break;case"collections":await this.collectionsStorage.update(e,r.collections.get());break}}}var lC={exports:{}},Qq;function z5e(){return Qq||(Qq=1,(function(t){var e=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function i(l,c,u){this.fn=l,this.context=c,this.once=u||!1}function o(l,c,u,d,f){if(typeof u!="function")throw new TypeError("The listener must be a function");var h=new i(u,d||l,f),y=r?r+c:c;return l._events[y]?l._events[y].fn?l._events[y]=[l._events[y],h]:l._events[y].push(h):(l._events[y]=h,l._eventsCount++),l}function s(l,c){--l._eventsCount===0?l._events=new n:delete l._events[c]}function a(){this._events=new n,this._eventsCount=0}a.prototype.eventNames=function(){var c=[],u,d;if(this._eventsCount===0)return c;for(d in u=this._events)e.call(u,d)&&c.push(r?d.slice(1):d);return Object.getOwnPropertySymbols?c.concat(Object.getOwnPropertySymbols(u)):c},a.prototype.listeners=function(c){var u=r?r+c:c,d=this._events[u];if(!d)return[];if(d.fn)return[d.fn];for(var f=0,h=d.length,y=new Array(h);f<h;f++)y[f]=d[f].fn;return y},a.prototype.listenerCount=function(c){var u=r?r+c:c,d=this._events[u];return d?d.fn?1:d.length:0},a.prototype.emit=function(c,u,d,f,h,y){var m=r?r+c:c;if(!this._events[m])return!1;var g=this._events[m],v=arguments.length,O,b;if(g.fn){switch(g.once&&this.removeListener(c,g.fn,void 0,!0),v){case 1:return g.fn.call(g.context),!0;case 2:return g.fn.call(g.context,u),!0;case 3:return g.fn.call(g.context,u,d),!0;case 4:return g.fn.call(g.context,u,d,f),!0;case 5:return g.fn.call(g.context,u,d,f,h),!0;case 6:return g.fn.call(g.context,u,d,f,h,y),!0}for(b=1,O=new Array(v-1);b<v;b++)O[b-1]=arguments[b];g.fn.apply(g.context,O)}else{var S=g.length,x;for(b=0;b<S;b++)switch(g[b].once&&this.removeListener(c,g[b].fn,void 0,!0),v){case 1:g[b].fn.call(g[b].context);break;case 2:g[b].fn.call(g[b].context,u);break;case 3:g[b].fn.call(g[b].context,u,d);break;case 4:g[b].fn.call(g[b].context,u,d,f);break;default:if(!O)for(x=1,O=new Array(v-1);x<v;x++)O[x-1]=arguments[x];g[b].fn.apply(g[b].context,O)}}return!0},a.prototype.on=function(c,u,d){return o(this,c,u,d,!1)},a.prototype.once=function(c,u,d){return o(this,c,u,d,!0)},a.prototype.removeListener=function(c,u,d,f){var h=r?r+c:c;if(!this._events[h])return this;if(!u)return s(this,h),this;var y=this._events[h];if(y.fn)y.fn===u&&(!f||y.once)&&(!d||y.context===d)&&s(this,h);else{for(var m=0,g=[],v=y.length;m<v;m++)(y[m].fn!==u||f&&!y[m].once||d&&y[m].context!==d)&&g.push(y[m]);g.length?this._events[h]=g.length===1?g[0]:g:s(this,h)}return this},a.prototype.removeAllListeners=function(c){var u;return c?(u=r?r+c:c,this._events[u]&&s(this,u)):(this._events=new n,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prefixed=r,a.EventEmitter=a,t.exports=a})(lC)),lC.exports}var L5e=z5e();const V5e=li(L5e);class $G extends Error{constructor(e){super(e),this.name="TimeoutError"}}let X5e=class extends Error{constructor(e){super(),this.name="AbortError",this.message=e}};const Dq=t=>globalThis.DOMException===void 0?new X5e(t):new DOMException(t),Nq=t=>{const e=t.reason===void 0?Dq("This operation was aborted."):t.reason;return e instanceof Error?e:Dq(e)};function U5e(t,e,r,n){let i;const o=new Promise((s,a)=>{if(typeof e!="number"||Math.sign(e)!==1)throw new TypeError(`Expected \`milliseconds\` to be a positive number, got \`${e}\``);if(e===Number.POSITIVE_INFINITY){s(t);return}if(n={customTimers:{setTimeout,clearTimeout},...n},n.signal){const{signal:l}=n;l.aborted&&a(Nq(l)),l.addEventListener("abort",()=>{a(Nq(l))})}i=n.customTimers.setTimeout.call(void 0,()=>{const l=`Promise timed out after ${e} milliseconds`,c=r instanceof Error?r:new $G(l);typeof t.cancel=="function"&&t.cancel(),a(c)},e),(async()=>{try{s(await t)}catch(l){a(l)}finally{n.customTimers.clearTimeout.call(void 0,i)}})()});return o.clear=()=>{clearTimeout(i),i=void 0},o}function W5e(t,e,r){let n=0,i=t.length;for(;i>0;){const o=Math.trunc(i/2);let s=n+o;r(t[s],e)<=0?(n=++s,i-=o+1):i=o}return n}var Pc=function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},ha;class B5e{constructor(){ha.set(this,[])}enqueue(e,r){r={priority:0,...r};const n={priority:r.priority,run:e};if(this.size&&Pc(this,ha,"f")[this.size-1].priority>=r.priority){Pc(this,ha,"f").push(n);return}const i=W5e(Pc(this,ha,"f"),n,(o,s)=>s.priority-o.priority);Pc(this,ha,"f").splice(i,0,n)}dequeue(){const e=Pc(this,ha,"f").shift();return e?.run}filter(e){return Pc(this,ha,"f").filter(r=>r.priority===e.priority).map(r=>r.run)}get size(){return Pc(this,ha,"f").length}}ha=new WeakMap;var Ar=function(t,e,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(t,r):i?i.value=r:e.set(t,r),r},Fe=function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},Lr,bh,xh,Pl,H0,Sh,Yv,jo,Jp,Ni,Gv,zi,wh,xl,Hv,Mq,qq,kG,zq,Lq,Jv,cC,uC,J0,EG,Kv;class TG extends Error{}class F5e extends V5e{constructor(e){var r,n,i,o;if(super(),Lr.add(this),bh.set(this,void 0),xh.set(this,void 0),Pl.set(this,0),H0.set(this,void 0),Sh.set(this,void 0),Yv.set(this,0),jo.set(this,void 0),Jp.set(this,void 0),Ni.set(this,void 0),Gv.set(this,void 0),zi.set(this,0),wh.set(this,void 0),xl.set(this,void 0),Hv.set(this,void 0),Object.defineProperty(this,"timeout",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),e={carryoverConcurrencyCount:!1,intervalCap:Number.POSITIVE_INFINITY,interval:0,concurrency:Number.POSITIVE_INFINITY,autoStart:!0,queueClass:B5e,...e},!(typeof e.intervalCap=="number"&&e.intervalCap>=1))throw new TypeError(`Expected \`intervalCap\` to be a number from 1 and up, got \`${(n=(r=e.intervalCap)===null||r===void 0?void 0:r.toString())!==null&&n!==void 0?n:""}\` (${typeof e.intervalCap})`);if(e.interval===void 0||!(Number.isFinite(e.interval)&&e.interval>=0))throw new TypeError(`Expected \`interval\` to be a finite number >= 0, got \`${(o=(i=e.interval)===null||i===void 0?void 0:i.toString())!==null&&o!==void 0?o:""}\` (${typeof e.interval})`);Ar(this,bh,e.carryoverConcurrencyCount,"f"),Ar(this,xh,e.intervalCap===Number.POSITIVE_INFINITY||e.interval===0,"f"),Ar(this,H0,e.intervalCap,"f"),Ar(this,Sh,e.interval,"f"),Ar(this,Ni,new e.queueClass,"f"),Ar(this,Gv,e.queueClass,"f"),this.concurrency=e.concurrency,this.timeout=e.timeout,Ar(this,Hv,e.throwOnTimeout===!0,"f"),Ar(this,xl,e.autoStart===!1,"f")}get concurrency(){return Fe(this,wh,"f")}set concurrency(e){if(!(typeof e=="number"&&e>=1))throw new TypeError(`Expected \`concurrency\` to be a number from 1 and up, got \`${e}\` (${typeof e})`);Ar(this,wh,e,"f"),Fe(this,Lr,"m",J0).call(this)}async add(e,r={}){return r={timeout:this.timeout,throwOnTimeout:Fe(this,Hv,"f"),...r},new Promise((n,i)=>{Fe(this,Ni,"f").enqueue(async()=>{var o,s,a;Ar(this,zi,(s=Fe(this,zi,"f"),s++,s),"f"),Ar(this,Pl,(a=Fe(this,Pl,"f"),a++,a),"f");try{if(!((o=r.signal)===null||o===void 0)&&o.aborted)throw new TG("The task was aborted.");let l=e({signal:r.signal});r.timeout&&(l=U5e(Promise.resolve(l),r.timeout)),r.signal&&(l=Promise.race([l,Fe(this,Lr,"m",EG).call(this,r.signal)]));const c=await l;n(c),this.emit("completed",c)}catch(l){if(l instanceof $G&&!r.throwOnTimeout){n();return}i(l),this.emit("error",l)}finally{Fe(this,Lr,"m",kG).call(this)}},r),this.emit("add"),Fe(this,Lr,"m",Jv).call(this)})}async addAll(e,r){return Promise.all(e.map(async n=>this.add(n,r)))}start(){return Fe(this,xl,"f")?(Ar(this,xl,!1,"f"),Fe(this,Lr,"m",J0).call(this),this):this}pause(){Ar(this,xl,!0,"f")}clear(){Ar(this,Ni,new(Fe(this,Gv,"f")),"f")}async onEmpty(){Fe(this,Ni,"f").size!==0&&await Fe(this,Lr,"m",Kv).call(this,"empty")}async onSizeLessThan(e){Fe(this,Ni,"f").size<e||await Fe(this,Lr,"m",Kv).call(this,"next",()=>Fe(this,Ni,"f").size<e)}async onIdle(){Fe(this,zi,"f")===0&&Fe(this,Ni,"f").size===0||await Fe(this,Lr,"m",Kv).call(this,"idle")}get size(){return Fe(this,Ni,"f").size}sizeBy(e){return Fe(this,Ni,"f").filter(e).length}get pending(){return Fe(this,zi,"f")}get isPaused(){return Fe(this,xl,"f")}}bh=new WeakMap,xh=new WeakMap,Pl=new WeakMap,H0=new WeakMap,Sh=new WeakMap,Yv=new WeakMap,jo=new WeakMap,Jp=new WeakMap,Ni=new WeakMap,Gv=new WeakMap,zi=new WeakMap,wh=new WeakMap,xl=new WeakMap,Hv=new WeakMap,Lr=new WeakSet,Mq=function(){return Fe(this,xh,"f")||Fe(this,Pl,"f")<Fe(this,H0,"f")},qq=function(){return Fe(this,zi,"f")<Fe(this,wh,"f")},kG=function(){var e;Ar(this,zi,(e=Fe(this,zi,"f"),e--,e),"f"),Fe(this,Lr,"m",Jv).call(this),this.emit("next")},zq=function(){Fe(this,Lr,"m",uC).call(this),Fe(this,Lr,"m",cC).call(this),Ar(this,Jp,void 0,"f")},Lq=function(){const e=Date.now();if(Fe(this,jo,"f")===void 0){const r=Fe(this,Yv,"f")-e;if(r<0)Ar(this,Pl,Fe(this,bh,"f")?Fe(this,zi,"f"):0,"f");else return Fe(this,Jp,"f")===void 0&&Ar(this,Jp,setTimeout(()=>{Fe(this,Lr,"m",zq).call(this)},r),"f"),!0}return!1},Jv=function(){if(Fe(this,Ni,"f").size===0)return Fe(this,jo,"f")&&clearInterval(Fe(this,jo,"f")),Ar(this,jo,void 0,"f"),this.emit("empty"),Fe(this,zi,"f")===0&&this.emit("idle"),!1;if(!Fe(this,xl,"f")){const e=!Fe(this,Lr,"a",Lq);if(Fe(this,Lr,"a",Mq)&&Fe(this,Lr,"a",qq)){const r=Fe(this,Ni,"f").dequeue();return r?(this.emit("active"),r(),e&&Fe(this,Lr,"m",cC).call(this),!0):!1}}return!1},cC=function(){Fe(this,xh,"f")||Fe(this,jo,"f")!==void 0||(Ar(this,jo,setInterval(()=>{Fe(this,Lr,"m",uC).call(this)},Fe(this,Sh,"f")),"f"),Ar(this,Yv,Date.now()+Fe(this,Sh,"f"),"f"))},uC=function(){Fe(this,Pl,"f")===0&&Fe(this,zi,"f")===0&&Fe(this,jo,"f")&&(clearInterval(Fe(this,jo,"f")),Ar(this,jo,void 0,"f")),Ar(this,Pl,Fe(this,bh,"f")?Fe(this,zi,"f"):0,"f"),Fe(this,Lr,"m",J0).call(this)},J0=function(){for(;Fe(this,Lr,"m",Jv).call(this););},EG=async function(e){return new Promise((r,n)=>{e.addEventListener("abort",()=>{n(new TG("The task was aborted."))},{once:!0})})},Kv=async function(e,r){return new Promise(n=>{const i=()=>{r&&!r()||(this.off(e,i),n())};this.on(e,i)})};const Qa=window.__TAURI__?.http.fetch??globalThis.fetch;class _G extends u1{constructor(){super()}resolveExternalRef(e,r){return Zv(r)?r:e&&Zv(e)?new URL(r,e).href:e?Yc.resolve(Yc.dirname(e),r):r}async loadExternalRef(e){if(Zv(e)){const{body:r,mimeType:n}=await f7(e,{...this.config.http,customFetch:Qa});return new Gd(e,r,n)}else{if(!await L_(e))throw new Error(`File not found at ${e}.`);try{throw await z_(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 _1(e);return new Gd(e,n.replace(/\r\n/g,`
|
|
408
|
-
`))}}}async function WE(t,e){const r=new t1({});r.getRulesForSpecVersion=()=>[];const n=await cr.dirname(t),i={config:r,base:n,externalRefResolver:new _G,dereference:!0};e?i.doc={source:{absoluteRef:t},parsed:e}:i.ref=t;const{bundle:{parsed:o}}=await o6(i);return o}class Z5e{constructor(e){this.apisStorage=e}data=new Map;loading=new Set;pQueue=new F5e({concurrency:20});async get(e){return this.data.has(e)?this.data.get(e):(await this.loadAndParse(e),this.data.get(e))}async load(e){this.data.has(e)||await this.loadAndParse(e)}async loadAndParse(e){if(this.loading.has(e))return await this.pQueue.add(()=>this.get(e));this.loading.add(e),await this.pQueue.add(async()=>{const r=Y1(e)?ii.WEB:ii.FS,n=r===ii.WEB?e:await this.apisStorage.getAbsolutePath(e);try{const i=await WE(n);if(!i){this.data.set(e,void 0);return}const o=this.apisStorage.parse({uri:e,type:r,content:i});this.data.set(e,o)}catch(i){console.error("Error loading api "+e,i),this.data.set(e,void 0);return}}),this.loading.delete(e)}get size(){return this.data.size}delete(e){this.data.delete(e)}getAll(){return Array.from(this.data.values()).filter(e=>e!==void 0)}clear(){this.data.clear(),this.loading.clear()}}class Y5e extends CG{apiLoader;constructor(e,r,n){const i=new kN(e.systemFilesDir),o=new kN(e.userFilesDir);super(i,o,e,!0,r,n),this.apiLoader=new Z5e(this.apisStorage)}async read(){const e=this.telemetry?.startSpan("storage.read",void 0,void 0),r=this.telemetry?.startSpan("storage.loadUserState",{},e?.parentCtx),[n,i,o,s]=await Promise.all([this.historyStorage.read(),this.activeEnvironmentIdStorage.read(),this.tabsStateStorage.read(),this.environmentsStorage.read()]);r?.setAttribute("status","completed"),r?.setAttribute("historyCount",n.length),r?.setAttribute("environmentCount",s.length),r?.setStatus(exports.SpanStatusCode.OK),r?.end();const{apiFiles:a,collectionFiles:l}=await this.detectProjectFiles(e);await this.loadAndParseApis(a,e);const c=await this.loadAndParseCollections(l,e);this.collectionsStorage.setItemIds(c.map(d=>d.id));const u=this.apiLoader.getAll();return this.apisStorage.setItemIds(u.map(d=>d.id)),this.apiLoader.clear(),e?.setAttribute("status","completed"),e?.setStatus(exports.SpanStatusCode.OK),e?.end(),{project:this.project,history:n,activeEnvironmentId:i,tabsState:o,environments:s,apis:u,collections:c}}async detectProjectFiles(e){const r=this.telemetry?.startSpan("storage.detectFiles",{},e?.parentCtx),{api_files:n,collection_files:i}=await In("fs_scan",{dir:this.project.userFilesDir});return r?.setAttribute("status","completed"),r?.setAttribute("filesCount",n.length+i.length),r?.setAttribute("apiFilesCount",n.length),r?.setAttribute("collectionFilesCount",i.length),r?.setStatus(exports.SpanStatusCode.OK),r?.end(),{apiFiles:n,collectionFiles:i}}async loadAndParseApis(e,r){const n=this.telemetry?.startSpan("storage.parseApis",{apisCount:e.length},r?.parentCtx);await $N(e,20,async i=>{try{await this.apiLoader.load(i.relative_path)}catch(o){return console.error(`Error parsing YAML/JSON file ${i.absolute_path}:`,o),null}}),n?.setAttribute("status","completed"),n?.setAttribute("parsedApisCount",this.apiLoader.size),n?.setStatus(exports.SpanStatusCode.OK),n?.end()}async loadAndParseCollections(e,r){const n=this.telemetry?.startSpan("storage.parseCollections",{collectionsCount:e.length},r?.parentCtx),i=await $N(e,20,async o=>{try{const s=await this.userFilesStorage.get(o.relative_path);if(!s)return null;const a=Na.load(s??"");if(typeof a!="object"||a===null||typeof a.arazzo!="string")return null;const l=[];return await Promise.all(a.sourceDescriptions?.map(async c=>{const u=c.type,d=c.url,f=!u||u==="openapi",h=await yG({projectPath:this.project.userFilesDir,apiUrl:d,collectionId:o.relative_path});if(f){const y=await this.apiLoader.get(h);y&&l.push(y)}})),await this.collectionsStorage.parse({uri:o.relative_path,type:ii.FS,content:a},l)}catch(s){return console.error(`Error parsing Arazzo file ${o.relative_path}:`,s),null}});return n?.setAttribute("status","completed"),n?.setAttribute("parsedCollectionsCount",i.length),n?.setStatus(exports.SpanStatusCode.OK),n?.end(),i.filter(o=>o!==null)}}class Vq{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}`}}class G5e extends CG{constructor(e,r,n){const i=new Vq(e.systemFilesDir),o=new Vq(e.userFilesDir);super(i,o,e,!1,r,n)}async detectProjectFiles(e){const r=this.telemetry?.startSpan("storage.detectFiles",{},e?.parentCtx),i=(await this.userFilesStorage.ls()).filter(l=>/\.(ya?ml|json)$/.test(l)),o=[],s=[],a=new Set;return await Promise.all(i.map(async l=>{const c=await this.userFilesStorage.get(l);if(c)try{const u=Na.load(c);if(typeof u=="object"&&u!==null)if(typeof u.openapi=="string"){const d=await cr.resolve(await cr.join(this.userFilesStorage.baseDir,l)),f=await WE(d,u);o.push({uri:l,type:ii.FS,content:f})}else typeof u.arazzo=="string"&&(s.push({uri:l,type:ii.FS,content:u}),u.sourceDescriptions?.forEach(d=>{const f=d.type,h=d.url,y=!f||f==="openapi",m=typeof h=="string"&&Y1(h);y&&m&&a.add(h)}))}catch(u){console.error(`Error parsing YAML/JSON file ${l}:`,u)}})),r?.setAttribute("status","completed"),r?.setAttribute("filesCount",i.length),r?.setAttribute("apiFilesCount",o.length),r?.setAttribute("collectionFilesCount",s.length),r?.setAttribute("apiUrlsCount",a.size),r?.setStatus(exports.SpanStatusCode.OK),r?.end(),{apiFiles:o,collectionFiles:s,apiUrls:a}}async loadApis(e,r){const n=this.telemetry?.startSpan("storage.loadApis",{apiUrlsCount:e.size},r?.parentCtx),i=[];return await Promise.all(Array.from(e).map(async o=>{try{const s=await WE(o);i.push({uri:o,type:ii.WEB,content:s})}catch(s){console.error(`Error parsing YAML from ${o}:`,s)}})),n?.setAttribute("status","completed"),n?.setStatus(exports.SpanStatusCode.OK),n?.end(),i}async parseApis(e,r){const n=this.telemetry?.startSpan("storage.parseApis",{apisCount:e.length},r?.parentCtx),i=await this.apisStorage.parseMany(e);return n?.setAttribute("status","completed"),n?.setAttribute("parsedApisCount",i.length),n?.setStatus(exports.SpanStatusCode.OK),n?.end(),i}async parseCollections(e,r,n){const i=this.telemetry?.startSpan("storage.parseCollections",{collectionsCount:e.length},n?.parentCtx),o=await this.collectionsStorage.parseMany(e,r);return i?.setAttribute("status","completed"),i?.setAttribute("parsedCollectionsCount",o.length),i?.setStatus(exports.SpanStatusCode.OK),i?.end(),o}async read(){const e=this.telemetry?.startSpan("storage.read",void 0,void 0),r=this.telemetry?.startSpan("storage.loadUserState",{},e?.parentCtx),[n,i,o,s]=await Promise.all([this.historyStorage.read(),this.activeEnvironmentIdStorage.read(),this.tabsStateStorage.read(),this.environmentsStorage.read()]);r?.setAttribute("status","completed"),r?.setAttribute("historyCount",n.length),r?.setAttribute("environmentCount",s.length),r?.setStatus(exports.SpanStatusCode.OK),r?.end();const{apiFiles:a,collectionFiles:l,apiUrls:c}=await this.detectProjectFiles(e),u=await this.loadApis(c,e),d=await this.parseApis([...a,...u],e);this.apisStorage.setItemIds(d.map(h=>h.id));const f=await this.parseCollections(l,d,e);return this.collectionsStorage.setItemIds(f.map(h=>h.id)),e?.setAttribute("status","completed"),e?.setStatus(exports.SpanStatusCode.OK),e?.end(),{project:this.project,history:n,activeEnvironmentId:i,tabsState:o,environments:s,apis:d,collections:f}}}function AG(t=!1){let e,r=!1;return()=>({id:"RootStoragePlugin",onCreate:()=>({init:n=>async(i,o,s)=>{if(r||n.path.length>0)return{isInitialized:!1};if(r=!0,!t){e=Ya()?new Y5e(i,o,s):new G5e(i,o,s);const a=await e.read();n.merge(a)}return r=!1,{isInitialized:!0}}}),onSet(n,i,o){r||t||e.update(i,o)}})}function IG({defaultEnvironments:t}={}){return structuredClone({project:{id:"default",userFilesDir:"default",systemFilesDir:"default"},history:[],tabsState:Ta(NB),activeEnvironmentId:Fm,environments:t||DB,collections:[],apis:[],requestController:null,apps:{apps:[],appsLoadingState:ys.Idle},predefinedApiId:null,predefinedEnvironmentNames:new Set,predefinedInputNames:new Set})}const H5e=HV(IG(),JV(LPe({key:"replay-root-store"}),AG())),BA=E.createContext(H5e),J5e=BA.Provider;function ht(){const t=E.useContext(BA);return KV(t)}function K5e(){return{theme:"light",disableCollectionsTab:!1,oAuth2RedirectURI:null,corsProxyUrl:void 0,mockServer:void 0,certificates:[],isApiBased:!1,generatedEnvironments:[],generatedInputs:[],hideOtherSecuritySchemes:!1}}const eDe=K5e(),tDe=E.createContext(eDe);function Jo(){const t=E.useContext(tDe);return KV(t)}function rDe(t,e){const{apps:{apiId:r}}=ht(),{corsProxyUrl:n,disableCollectionsTab:i,mockServer:o,oAuth2RedirectURI:s,certificates:a,storageKey:l,isApiBased:c}=Jo();n.set(t?.corsProxyUrl??PPe),o.set(t?.mockServer),r.set(t?.apiId),s.set(t?.oAuth2RedirectURI),i.set(!!t?.disableCollectionsTab),l.set(t?.storageKey),c.set(!!e),E.useEffect(()=>{a.set(t?.certificates||[])},[t?.certificates])}const G1=E.createContext({});function vu(){return E.useContext(G1)||{}}const nDe="0.20.0-next.3",iDe={version:nDe};class RG{_client;_isInitialized=!1;_initResolve=null;_initPromise=new Promise(e=>{this._initResolve=e});_globalAttributes={platform:"",deviceId:""};constructor(){this._client=new wPe}get isInitialized(){return this._isInitialized}get client(){return this._client}awaitInit(){return this._initPromise}updateCloudEventData(e){this._client.updateCloudEventData(e)}enrichGlobalAttributes(e){this._globalAttributes={...this._globalAttributes,...e}}getGlobalAttributes(){return{...this._globalAttributes}}clearGlobalAttributes(){this._globalAttributes={platform:"",deviceId:""}}init(e){if(this.isInitialized)return;const r=!0,n=e?.tracerName||"desktop",i=e?.enableErrorInstrumentation??n==="desktop",o={serviceName:"replay",serviceVersion:iDe.version,version:"1.0.0",tracerName:n,collectorUrl:"",isProd:r,enableErrorInstrumentation:i};this._client.init({otel:{...o,...e}}),this._initResolve?.(this),this._isInitialized=!0}sendEvent(e,r){if(!this.isInitialized){console.warn("Telemetry client not initialized. Call init() first.");return}const n={...this._globalAttributes,...r};try{this.client.send(e,n)}catch(i){console.error("Failed to send telemetry event:",i)}}startSpan(e,r,n){if(!this.isInitialized){console.warn("Telemetry client not initialized. Call init() first.");return}try{return this._client.startSpan(e,{...this._globalAttributes,...r},n)}catch(i){console.error("Failed to start telemetry span:",i);return}}}const $d=new RG;function st(){const{telemetry:t}=vu();return $d.isInitialized||$d.init(t),{sendEvent:(e,r)=>{$d.sendEvent(e,r)},startSpan:(e,r,n)=>$d.startSpan(e,r,n)}}const oDe=({awaitInit:t=!0}={})=>{const[e,r]=E.useState(void 0);return E.useEffect(()=>{(async()=>{const i=t?await $d.awaitInit():$d;r(i)})()},[t]),e},Wn=800;var sDe=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function aDe(t){var e=t.defaultInputValue,r=e===void 0?"":e,n=t.defaultMenuIsOpen,i=n===void 0?!1:n,o=t.defaultValue,s=o===void 0?null:o,a=t.inputValue,l=t.menuIsOpen,c=t.onChange,u=t.onInputChange,d=t.onMenuClose,f=t.onMenuOpen,h=t.value,y=Zi(t,sDe),m=E.useState(a!==void 0?a:r),g=dt(m,2),v=g[0],O=g[1],b=E.useState(l!==void 0?l:i),S=dt(b,2),x=S[0],w=S[1],C=E.useState(h!==void 0?h:s),k=dt(C,2),R=k[0],N=k[1],D=E.useCallback(function(Z,oe){typeof c=="function"&&c(Z,oe),N(Z)},[c]),U=E.useCallback(function(Z,oe){var M;typeof u=="function"&&(M=u(Z,oe)),O(M!==void 0?M:Z)},[u]),B=E.useCallback(function(){typeof f=="function"&&f(),w(!0)},[f]),G=E.useCallback(function(){typeof d=="function"&&d(),w(!1)},[d]),H=a!==void 0?a:v,ne=l!==void 0?l:x,ce=h!==void 0?h:R;return Ie(Ie({},y),{},{inputValue:H,menuIsOpen:ne,onChange:D,onInputChange:U,onMenuClose:G,onMenuOpen:B,value:ce})}function lDe(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 cDe(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 uDe=(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(cDe(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:
|
|
408
|
+
`))}}}async function WE(t,e){const r=new t1({});r.getRulesForSpecVersion=()=>[];const n=await cr.dirname(t),i={config:r,base:n,externalRefResolver:new _G,dereference:!0};e?i.doc={source:{absoluteRef:t},parsed:e}:i.ref=t;const{bundle:{parsed:o}}=await o6(i);return o}class Z5e{constructor(e){this.apisStorage=e}data=new Map;loading=new Set;pQueue=new F5e({concurrency:20});async get(e){return this.data.has(e)?this.data.get(e):(await this.loadAndParse(e),this.data.get(e))}async load(e){this.data.has(e)||await this.loadAndParse(e)}async loadAndParse(e){if(this.loading.has(e))return await this.pQueue.add(()=>this.get(e));this.loading.add(e),await this.pQueue.add(async()=>{const r=Y1(e)?ii.WEB:ii.FS,n=r===ii.WEB?e:await this.apisStorage.getAbsolutePath(e);try{const i=await WE(n);if(!i){this.data.set(e,void 0);return}const o=this.apisStorage.parse({uri:e,type:r,content:i});this.data.set(e,o)}catch(i){console.error("Error loading api "+e,i),this.data.set(e,void 0);return}}),this.loading.delete(e)}get size(){return this.data.size}delete(e){this.data.delete(e)}getAll(){return Array.from(this.data.values()).filter(e=>e!==void 0)}clear(){this.data.clear(),this.loading.clear()}}class Y5e extends CG{apiLoader;constructor(e,r,n){const i=new kN(e.systemFilesDir),o=new kN(e.userFilesDir);super(i,o,e,!0,r,n),this.apiLoader=new Z5e(this.apisStorage)}async read(){const e=this.telemetry?.startSpan("storage.read",void 0,void 0),r=this.telemetry?.startSpan("storage.loadUserState",{},e?.parentCtx),[n,i,o,s]=await Promise.all([this.historyStorage.read(),this.activeEnvironmentIdStorage.read(),this.tabsStateStorage.read(),this.environmentsStorage.read()]);r?.setAttribute("status","completed"),r?.setAttribute("historyCount",n.length),r?.setAttribute("environmentCount",s.length),r?.setStatus(exports.SpanStatusCode.OK),r?.end();const{apiFiles:a,collectionFiles:l}=await this.detectProjectFiles(e);await this.loadAndParseApis(a,e);const c=await this.loadAndParseCollections(l,e);this.collectionsStorage.setItemIds(c.map(d=>d.id));const u=this.apiLoader.getAll();return this.apisStorage.setItemIds(u.map(d=>d.id)),this.apiLoader.clear(),e?.setAttribute("status","completed"),e?.setStatus(exports.SpanStatusCode.OK),e?.end(),{project:this.project,history:n,activeEnvironmentId:i,tabsState:o,environments:s,apis:u,collections:c}}async detectProjectFiles(e){const r=this.telemetry?.startSpan("storage.detectFiles",{},e?.parentCtx),{api_files:n,collection_files:i}=await In("fs_scan",{dir:this.project.userFilesDir});return r?.setAttribute("status","completed"),r?.setAttribute("filesCount",n.length+i.length),r?.setAttribute("apiFilesCount",n.length),r?.setAttribute("collectionFilesCount",i.length),r?.setStatus(exports.SpanStatusCode.OK),r?.end(),{apiFiles:n,collectionFiles:i}}async loadAndParseApis(e,r){const n=this.telemetry?.startSpan("storage.parseApis",{apisCount:e.length},r?.parentCtx);await $N(e,20,async i=>{try{await this.apiLoader.load(i.relative_path)}catch(o){return console.error(`Error parsing YAML/JSON file ${i.absolute_path}:`,o),null}}),n?.setAttribute("status","completed"),n?.setAttribute("parsedApisCount",this.apiLoader.size),n?.setStatus(exports.SpanStatusCode.OK),n?.end()}async loadAndParseCollections(e,r){const n=this.telemetry?.startSpan("storage.parseCollections",{collectionsCount:e.length},r?.parentCtx),i=await $N(e,20,async o=>{try{const s=await this.userFilesStorage.get(o.relative_path);if(!s)return null;const a=Na.load(s??"");if(typeof a!="object"||a===null||typeof a.arazzo!="string")return null;const l=[];return await Promise.all(a.sourceDescriptions?.map(async c=>{const u=c.type,d=c.url,f=!u||u==="openapi",h=await yG({projectPath:this.project.userFilesDir,apiUrl:d,collectionId:o.relative_path});if(f){const y=await this.apiLoader.get(h);y&&l.push(y)}})),await this.collectionsStorage.parse({uri:o.relative_path,type:ii.FS,content:a},l)}catch(s){return console.error(`Error parsing Arazzo file ${o.relative_path}:`,s),null}});return n?.setAttribute("status","completed"),n?.setAttribute("parsedCollectionsCount",i.length),n?.setStatus(exports.SpanStatusCode.OK),n?.end(),i.filter(o=>o!==null)}}class Vq{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}`}}class G5e extends CG{constructor(e,r,n){const i=new Vq(e.systemFilesDir),o=new Vq(e.userFilesDir);super(i,o,e,!1,r,n)}async detectProjectFiles(e){const r=this.telemetry?.startSpan("storage.detectFiles",{},e?.parentCtx),i=(await this.userFilesStorage.ls()).filter(l=>/\.(ya?ml|json)$/.test(l)),o=[],s=[],a=new Set;return await Promise.all(i.map(async l=>{const c=await this.userFilesStorage.get(l);if(c)try{const u=Na.load(c);if(typeof u=="object"&&u!==null)if(typeof u.openapi=="string"){const d=await cr.resolve(await cr.join(this.userFilesStorage.baseDir,l)),f=await WE(d,u);o.push({uri:l,type:ii.FS,content:f})}else typeof u.arazzo=="string"&&(s.push({uri:l,type:ii.FS,content:u}),u.sourceDescriptions?.forEach(d=>{const f=d.type,h=d.url,y=!f||f==="openapi",m=typeof h=="string"&&Y1(h);y&&m&&a.add(h)}))}catch(u){console.error(`Error parsing YAML/JSON file ${l}:`,u)}})),r?.setAttribute("status","completed"),r?.setAttribute("filesCount",i.length),r?.setAttribute("apiFilesCount",o.length),r?.setAttribute("collectionFilesCount",s.length),r?.setAttribute("apiUrlsCount",a.size),r?.setStatus(exports.SpanStatusCode.OK),r?.end(),{apiFiles:o,collectionFiles:s,apiUrls:a}}async loadApis(e,r){const n=this.telemetry?.startSpan("storage.loadApis",{apiUrlsCount:e.size},r?.parentCtx),i=[];return await Promise.all(Array.from(e).map(async o=>{try{const s=await WE(o);i.push({uri:o,type:ii.WEB,content:s})}catch(s){console.error(`Error parsing YAML from ${o}:`,s)}})),n?.setAttribute("status","completed"),n?.setStatus(exports.SpanStatusCode.OK),n?.end(),i}async parseApis(e,r){const n=this.telemetry?.startSpan("storage.parseApis",{apisCount:e.length},r?.parentCtx),i=await this.apisStorage.parseMany(e);return n?.setAttribute("status","completed"),n?.setAttribute("parsedApisCount",i.length),n?.setStatus(exports.SpanStatusCode.OK),n?.end(),i}async parseCollections(e,r,n){const i=this.telemetry?.startSpan("storage.parseCollections",{collectionsCount:e.length},n?.parentCtx),o=await this.collectionsStorage.parseMany(e,r);return i?.setAttribute("status","completed"),i?.setAttribute("parsedCollectionsCount",o.length),i?.setStatus(exports.SpanStatusCode.OK),i?.end(),o}async read(){const e=this.telemetry?.startSpan("storage.read",void 0,void 0),r=this.telemetry?.startSpan("storage.loadUserState",{},e?.parentCtx),[n,i,o,s]=await Promise.all([this.historyStorage.read(),this.activeEnvironmentIdStorage.read(),this.tabsStateStorage.read(),this.environmentsStorage.read()]);r?.setAttribute("status","completed"),r?.setAttribute("historyCount",n.length),r?.setAttribute("environmentCount",s.length),r?.setStatus(exports.SpanStatusCode.OK),r?.end();const{apiFiles:a,collectionFiles:l,apiUrls:c}=await this.detectProjectFiles(e),u=await this.loadApis(c,e),d=await this.parseApis([...a,...u],e);this.apisStorage.setItemIds(d.map(h=>h.id));const f=await this.parseCollections(l,d,e);return this.collectionsStorage.setItemIds(f.map(h=>h.id)),e?.setAttribute("status","completed"),e?.setStatus(exports.SpanStatusCode.OK),e?.end(),{project:this.project,history:n,activeEnvironmentId:i,tabsState:o,environments:s,apis:d,collections:f}}}function AG(t=!1){let e,r=!1;return()=>({id:"RootStoragePlugin",onCreate:()=>({init:n=>async(i,o,s)=>{if(r||n.path.length>0)return{isInitialized:!1};if(r=!0,!t){e=Ya()?new Y5e(i,o,s):new G5e(i,o,s);const a=await e.read();n.merge(a)}return r=!1,{isInitialized:!0}}}),onSet(n,i,o){r||t||e.update(i,o)}})}function IG({defaultEnvironments:t}={}){return structuredClone({project:{id:"default",userFilesDir:"default",systemFilesDir:"default"},history:[],tabsState:Ta(NB),activeEnvironmentId:Fm,environments:t||DB,collections:[],apis:[],requestController:null,apps:{apps:[],appsLoadingState:ys.Idle},predefinedApiId:null,predefinedEnvironmentNames:new Set,predefinedInputNames:new Set})}const H5e=HV(IG(),JV(LPe({key:"replay-root-store"}),AG())),BA=E.createContext(H5e),J5e=BA.Provider;function ht(){const t=E.useContext(BA);return KV(t)}function K5e(){return{theme:"light",disableCollectionsTab:!1,oAuth2RedirectURI:null,corsProxyUrl:void 0,mockServer:void 0,certificates:[],isApiBased:!1,generatedEnvironments:[],generatedInputs:[],hideOtherSecuritySchemes:!1}}const eDe=K5e(),tDe=E.createContext(eDe);function Jo(){const t=E.useContext(tDe);return KV(t)}function rDe(t,e){const{apps:{apiId:r}}=ht(),{corsProxyUrl:n,disableCollectionsTab:i,mockServer:o,oAuth2RedirectURI:s,certificates:a,storageKey:l,isApiBased:c}=Jo();n.set(t?.corsProxyUrl??PPe),o.set(t?.mockServer),r.set(t?.apiId),s.set(t?.oAuth2RedirectURI),i.set(!!t?.disableCollectionsTab),l.set(t?.storageKey),c.set(!!e),E.useEffect(()=>{a.set(t?.certificates||[])},[t?.certificates])}const G1=E.createContext({});function vu(){return E.useContext(G1)||{}}const nDe="0.20.0-next.4",iDe={version:nDe};class RG{_client;_isInitialized=!1;_initResolve=null;_initPromise=new Promise(e=>{this._initResolve=e});_globalAttributes={platform:"",deviceId:""};constructor(){this._client=new wPe}get isInitialized(){return this._isInitialized}get client(){return this._client}awaitInit(){return this._initPromise}updateCloudEventData(e){this._client.updateCloudEventData(e)}enrichGlobalAttributes(e){this._globalAttributes={...this._globalAttributes,...e}}getGlobalAttributes(){return{...this._globalAttributes}}clearGlobalAttributes(){this._globalAttributes={platform:"",deviceId:""}}init(e){if(this.isInitialized)return;const r=!0,n=e?.tracerName||"desktop",i=e?.enableErrorInstrumentation??n==="desktop",o={serviceName:"replay",serviceVersion:iDe.version,version:"1.0.0",tracerName:n,collectorUrl:"",isProd:r,enableErrorInstrumentation:i};this._client.init({otel:{...o,...e}}),this._initResolve?.(this),this._isInitialized=!0}sendEvent(e,r){if(!this.isInitialized){console.warn("Telemetry client not initialized. Call init() first.");return}const n={...this._globalAttributes,...r};try{this.client.send(e,n)}catch(i){console.error("Failed to send telemetry event:",i)}}startSpan(e,r,n){if(!this.isInitialized){console.warn("Telemetry client not initialized. Call init() first.");return}try{return this._client.startSpan(e,{...this._globalAttributes,...r},n)}catch(i){console.error("Failed to start telemetry span:",i);return}}}const $d=new RG;function st(){const{telemetry:t}=vu();return $d.isInitialized||$d.init(t),{sendEvent:(e,r)=>{$d.sendEvent(e,r)},startSpan:(e,r,n)=>$d.startSpan(e,r,n)}}const oDe=({awaitInit:t=!0}={})=>{const[e,r]=E.useState(void 0);return E.useEffect(()=>{(async()=>{const i=t?await $d.awaitInit():$d;r(i)})()},[t]),e},Wn=800;var sDe=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function aDe(t){var e=t.defaultInputValue,r=e===void 0?"":e,n=t.defaultMenuIsOpen,i=n===void 0?!1:n,o=t.defaultValue,s=o===void 0?null:o,a=t.inputValue,l=t.menuIsOpen,c=t.onChange,u=t.onInputChange,d=t.onMenuClose,f=t.onMenuOpen,h=t.value,y=Zi(t,sDe),m=E.useState(a!==void 0?a:r),g=dt(m,2),v=g[0],O=g[1],b=E.useState(l!==void 0?l:i),S=dt(b,2),x=S[0],w=S[1],C=E.useState(h!==void 0?h:s),k=dt(C,2),R=k[0],N=k[1],D=E.useCallback(function(Z,oe){typeof c=="function"&&c(Z,oe),N(Z)},[c]),U=E.useCallback(function(Z,oe){var M;typeof u=="function"&&(M=u(Z,oe)),O(M!==void 0?M:Z)},[u]),B=E.useCallback(function(){typeof f=="function"&&f(),w(!0)},[f]),G=E.useCallback(function(){typeof d=="function"&&d(),w(!1)},[d]),H=a!==void 0?a:v,ne=l!==void 0?l:x,ce=h!==void 0?h:R;return Ie(Ie({},y),{},{inputValue:H,menuIsOpen:ne,onChange:D,onInputChange:U,onMenuClose:G,onMenuOpen:B,value:ce})}function lDe(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 cDe(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 uDe=(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(cDe(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:
|
|
409
409
|
`+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=lDe(i);try{s.insertRule(n,s.cssRules.length)}catch(a){process.env.NODE_ENV!=="production"&&!/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(n)&&console.error('There was a problem inserting the following rule: "'+n+'"',a)}}else i.appendChild(document.createTextNode(n));this.ctr++},e.flush=function(){this.tags.forEach(function(n){return n.parentNode&&n.parentNode.removeChild(n)}),this.tags=[],this.ctr=0,process.env.NODE_ENV!=="production"&&(this._alreadyInsertedOrderInsensitiveRule=!1)},t})(),Dn="-ms-",K0="-moz-",Bt="-webkit-",FA="comm",ZA="rule",YA="decl",dDe="@import",jG="@keyframes",fDe=Math.abs,H1=String.fromCharCode,pDe=Object.assign;function hDe(t,e){return Cn(t,0)^45?(((e<<2^Cn(t,0))<<2^Cn(t,1))<<2^Cn(t,2))<<2^Cn(t,3):0}function QG(t){return t.trim()}function mDe(t,e){return(t=e.exec(t))?t[0]:t}function er(t,e,r){return t.replace(e,r)}function BE(t,e){return t.indexOf(e)}function Cn(t,e){return t.charCodeAt(e)|0}function bm(t,e,r){return t.slice(e,r)}function xs(t){return t.length}function GA(t){return t.length}function GO(t,e){return e.push(t),t}function gDe(t,e){return t.map(e).join("")}var J1=1,xf=1,DG=0,Ci=0,Yr=0,Lf="";function K1(t,e,r,n,i,o,s){return{value:t,root:e,parent:r,type:n,props:i,children:o,line:J1,column:xf,length:s,return:""}}function Ip(t,e){return pDe(K1("",null,null,"",null,null,0),t,{length:-t.length},e)}function yDe(){return Yr}function ODe(){return Yr=Ci>0?Cn(Lf,--Ci):0,xf--,Yr===10&&(xf=1,J1--),Yr}function Fi(){return Yr=Ci<DG?Cn(Lf,Ci++):0,xf++,Yr===10&&(xf=1,J1++),Yr}function Qs(){return Cn(Lf,Ci)}function eb(){return Ci}function ag(t,e){return bm(Lf,t,e)}function xm(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 NG(t){return J1=xf=1,DG=xs(Lf=t),Ci=0,[]}function MG(t){return Lf="",t}function tb(t){return QG(ag(Ci-1,FE(t===91?t+2:t===40?t+1:t)))}function vDe(t){for(;(Yr=Qs())&&Yr<33;)Fi();return xm(t)>2||xm(Yr)>3?"":" "}function bDe(t,e){for(;--e&&Fi()&&!(Yr<48||Yr>102||Yr>57&&Yr<65||Yr>70&&Yr<97););return ag(t,eb()+(e<6&&Qs()==32&&Fi()==32))}function FE(t){for(;Fi();)switch(Yr){case t:return Ci;case 34:case 39:t!==34&&t!==39&&FE(Yr);break;case 40:t===41&&FE(t);break;case 92:Fi();break}return Ci}function xDe(t,e){for(;Fi()&&t+Yr!==57;)if(t+Yr===84&&Qs()===47)break;return"/*"+ag(e,Ci-1)+"*"+H1(t===47?t:Fi())}function SDe(t){for(;!xm(Qs());)Fi();return ag(t,Ci)}function wDe(t){return MG(rb("",null,null,null,[""],t=NG(t),0,[0],t))}function rb(t,e,r,n,i,o,s,a,l){for(var c=0,u=0,d=s,f=0,h=0,y=0,m=1,g=1,v=1,O=0,b="",S=i,x=o,w=n,C=b;g;)switch(y=O,O=Fi()){case 40:if(y!=108&&Cn(C,d-1)==58){BE(C+=er(tb(O),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:C+=tb(O);break;case 9:case 10:case 13:case 32:C+=vDe(y);break;case 92:C+=bDe(eb()-1,7);continue;case 47:switch(Qs()){case 42:case 47:GO(PDe(xDe(Fi(),eb()),e,r),l);break;default:C+="/"}break;case 123*m:a[c++]=xs(C)*v;case 125*m:case 59:case 0:switch(O){case 0:case 125:g=0;case 59+u:h>0&&xs(C)-d&&GO(h>32?Uq(C+";",n,r,d-1):Uq(er(C," ","")+";",n,r,d-2),l);break;case 59:C+=";";default:if(GO(w=Xq(C,e,r,c,u,i,a,b,S=[],x=[],d),o),O===123)if(u===0)rb(C,e,w,w,S,o,d,a,x);else switch(f===99&&Cn(C,3)===110?100:f){case 100:case 109:case 115:rb(t,w,w,n&&GO(Xq(t,w,w,0,0,i,a,b,i,S=[],d),x),i,x,d,a,n?S:x);break;default:rb(C,w,w,w,[""],x,0,a,x)}}c=u=h=0,m=v=1,b=C="",d=s;break;case 58:d=1+xs(C),h=y;default:if(m<1){if(O==123)--m;else if(O==125&&m++==0&&ODe()==125)continue}switch(C+=H1(O),O*m){case 38:v=u>0?1:(C+="\f",-1);break;case 44:a[c++]=(xs(C)-1)*v,v=1;break;case 64:Qs()===45&&(C+=tb(Fi())),f=Qs(),u=d=xs(b=C+=SDe(eb())),O++;break;case 45:y===45&&xs(C)==2&&(m=0)}}return o}function Xq(t,e,r,n,i,o,s,a,l,c,u){for(var d=i-1,f=i===0?o:[""],h=GA(f),y=0,m=0,g=0;y<n;++y)for(var v=0,O=bm(t,d+1,d=fDe(m=s[y])),b=t;v<h;++v)(b=QG(m>0?f[v]+" "+O:er(O,/&\f/g,f[v])))&&(l[g++]=b);return K1(t,e,r,i===0?ZA:a,l,c,u)}function PDe(t,e,r){return K1(t,e,r,FA,H1(yDe()),bm(t,2,-2),0)}function Uq(t,e,r,n){return K1(t,e,r,YA,bm(t,0,n),bm(t,n+1,-1),n)}function Ld(t,e){for(var r="",n=GA(t),i=0;i<n;i++)r+=e(t[i],i,t,e)||"";return r}function CDe(t,e,r,n){switch(t.type){case dDe:case YA:return t.return=t.return||t.value;case FA:return"";case jG:return t.return=t.value+"{"+Ld(t.children,n)+"}";case ZA:t.value=t.props.join(",")}return xs(r=Ld(t.children,n))?t.return=t.value+"{"+r+"}":""}function $De(t){var e=GA(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 kDe(t){return function(e){e.root||(e=e.return)&&t(e)}}function EDe(t){var e=Object.create(null);return function(r){return e[r]===void 0&&(e[r]=t(r)),e[r]}}var TDe=function(e,r,n){for(var i=0,o=0;i=o,o=Qs(),i===38&&o===12&&(r[n]=1),!xm(o);)Fi();return ag(e,Ci)},_De=function(e,r){var n=-1,i=44;do switch(xm(i)){case 0:i===38&&Qs()===12&&(r[n]=1),e[n]+=TDe(Ci-1,r,n);break;case 2:e[n]+=tb(i);break;case 4:if(i===44){e[++n]=Qs()===58?"&\f":"",r[n]=e[n].length;break}default:e[n]+=H1(i)}while(i=Fi());return e},ADe=function(e,r){return MG(_De(NG(e),r))},Wq=new WeakMap,IDe=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&&!Wq.get(n))&&!i){Wq.set(e,!0);for(var o=[],s=ADe(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]}}},RDe=function(e){if(e.type==="decl"){var r=e.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(e.return="",e.value="")}},jDe="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",QDe=function(e){return e.type==="comm"&&e.children.indexOf(jDe)>-1},DDe=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(QDe(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".')})}}}},qG=function(e){return e.type.charCodeAt(1)===105&&e.type.charCodeAt(0)===64},NDe=function(e,r){for(var n=e-1;n>=0;n--)if(!qG(r[n]))return!0;return!1},Bq=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},MDe=function(e,r,n){qG(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."),Bq(e)):NDe(r,n)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),Bq(e)))};function zG(t,e){switch(hDe(t,e)){case 5103:return Bt+"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 Bt+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return Bt+t+K0+t+Dn+t+t;case 6828:case 4268:return Bt+t+Dn+t+t;case 6165:return Bt+t+Dn+"flex-"+t+t;case 5187:return Bt+t+er(t,/(\w+).+(:[^]+)/,Bt+"box-$1$2"+Dn+"flex-$1$2")+t;case 5443:return Bt+t+Dn+"flex-item-"+er(t,/flex-|-self/,"")+t;case 4675:return Bt+t+Dn+"flex-line-pack"+er(t,/align-content|flex-|-self/,"")+t;case 5548:return Bt+t+Dn+er(t,"shrink","negative")+t;case 5292:return Bt+t+Dn+er(t,"basis","preferred-size")+t;case 6060:return Bt+"box-"+er(t,"-grow","")+Bt+t+Dn+er(t,"grow","positive")+t;case 4554:return Bt+er(t,/([^-])(transform)/g,"$1"+Bt+"$2")+t;case 6187:return er(er(er(t,/(zoom-|grab)/,Bt+"$1"),/(image-set)/,Bt+"$1"),t,"")+t;case 5495:case 3959:return er(t,/(image-set\([^]*)/,Bt+"$1$`$1");case 4968:return er(er(t,/(.+:)(flex-)?(.*)/,Bt+"box-pack:$3"+Dn+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Bt+t+t;case 4095:case 3583:case 4068:case 2532:return er(t,/(.+)-inline(.+)/,Bt+"$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(xs(t)-1-e>6)switch(Cn(t,e+1)){case 109:if(Cn(t,e+4)!==45)break;case 102:return er(t,/(.+:)(.+)-([^]+)/,"$1"+Bt+"$2-$3$1"+K0+(Cn(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~BE(t,"stretch")?zG(er(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(Cn(t,e+1)!==115)break;case 6444:switch(Cn(t,xs(t)-3-(~BE(t,"!important")&&10))){case 107:return er(t,":",":"+Bt)+t;case 101:return er(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Bt+(Cn(t,14)===45?"inline-":"")+"box$3$1"+Bt+"$2$3$1"+Dn+"$2box$3")+t}break;case 5936:switch(Cn(t,e+11)){case 114:return Bt+t+Dn+er(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return Bt+t+Dn+er(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return Bt+t+Dn+er(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return Bt+t+Dn+t+t}return t}var qDe=function(e,r,n,i){if(e.length>-1&&!e.return)switch(e.type){case YA:e.return=zG(e.value,e.length);break;case jG:return Ld([Ip(e,{value:er(e.value,"@","@"+Bt)})],i);case ZA:if(e.length)return gDe(e.props,function(o){switch(mDe(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ld([Ip(e,{props:[er(o,/:(read-\w+)/,":"+K0+"$1")]})],i);case"::placeholder":return Ld([Ip(e,{props:[er(o,/:(plac\w+)/,":"+Bt+"input-$1")]}),Ip(e,{props:[er(o,/:(plac\w+)/,":"+K0+"$1")]}),Ip(e,{props:[er(o,/:(plac\w+)/,Dn+"input-$1")]})],i)}return""})}},zDe=[qDe],LDe=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.
|
|
410
410
|
If multiple caches share the same key they might "fight" for each other's style elements.`);if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(m){var g=m.getAttribute("data-emotion");g.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var i=e.stylisPlugins||zDe;if(process.env.NODE_ENV!=="production"&&/[^a-z-]/.test(r))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+r+'" was passed');var o={},s,a=[];s=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(m){for(var g=m.getAttribute("data-emotion").split(" "),v=1;v<g.length;v++)o[g[v]]=!0;a.push(m)});var l,c=[IDe,RDe];process.env.NODE_ENV!=="production"&&c.push(DDe({get compat(){return y.compat}}),MDe);{var u,d=[CDe,process.env.NODE_ENV!=="production"?function(m){m.root||(m.return?u.insert(m.return):m.value&&m.type!==FA&&u.insert(m.value+"{}"))}:kDe(function(m){u.insert(m)})],f=$De(c.concat(i,d)),h=function(g){return Ld(wDe(g),f)};l=function(g,v,O,b){u=O,process.env.NODE_ENV!=="production"&&v.map!==void 0&&(u={insert:function(x){O.insert(x+v.map)}}),h(g?g+"{"+v.styles+"}":v.styles),b&&(y.inserted[v.name]=!0)}}var y={key:r,sheet:new uDe({key:r,container:s,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:o,registered:{},insert:l};return y.sheet.hydrate(a),y},VDe=!0;function LG(t,e,r){var n="";return r.split(" ").forEach(function(i){t[i]!==void 0?e.push(t[i]+";"):n+=i+" "}),n}var HA=function(e,r,n){var i=e.key+"-"+r.name;(n===!1||VDe===!1)&&e.registered[i]===void 0&&(e.registered[i]=r.styles)},JA=function(e,r,n){HA(e,r,n);var i=e.key+"-"+r.name;if(e.inserted[r.name]===void 0){var o=r;do e.insert(r===o?"."+i:"",o,e.sheet,!0),o=o.next;while(o!==void 0)}};function XDe(t){for(var e=0,r,n=0,i=t.length;i>=4;++n,i-=4)r=t.charCodeAt(n)&255|(t.charCodeAt(++n)&255)<<8|(t.charCodeAt(++n)&255)<<16|(t.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,e=(r&65535)*1540483477+((r>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(i){case 3:e^=(t.charCodeAt(n+2)&255)<<16;case 2:e^=(t.charCodeAt(n+1)&255)<<8;case 1:e^=t.charCodeAt(n)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var UDe={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Fq=`You have illegal escape sequence in your template literal, most likely inside content's property value.
|
|
411
411
|
Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';".
|
|
@@ -2570,7 +2570,7 @@ Please report this to https://github.com/markedjs/marked.`,t){const i="<p>An err
|
|
|
2570
2570
|
gap: var(--spacing-xs);
|
|
2571
2571
|
`,Sb={[zn.SIMPLE]:{label:"Simple",tooltipContent:"Success criteria conditions in the form of basic literals, operators, and loose comparisons"},[zn.REGEX]:{label:"Regex",tooltipContent:"Regex patterns used as success criteria conditions"},[zn.JSONPATH]:{label:"JSONPath",tooltipContent:"JSONPath expressions as success criteria conditions"},[zn.XPATH]:{label:"XPath",tooltipContent:"XPath expressions as success criteria conditions"}},FHe=Object.keys(Sb);function ZHe({successCriteria:t}){const{sendEvent:e}=st(),r=o=>{e("button.click",{source:"workflow",action:"add_success_criteria",success_criteria_type:o}),t.set(s=>[...s||[],{...jQe(o)}])},n=E.useMemo(()=>t.filter(o=>o.get()!==void 0),[t]),i=o=>{e("button.click",{source:"workflow",action:"remove_success_criteria",success_criteria_type:o.get().type,condition:o.get().condition}),o.set(ft)};return p.jsxs(p.Fragment,{children:[p.jsxs(Wa,{children:["Success criteria",p.jsx(mo,{content:"List of conditions required to complete the step."})]}),n.map(o=>p.jsx(E.Fragment,{children:p.jsx(VHe,{successCriteria:o,label:Sb[o.get().type].label,tooltipContent:Sb[o.get().type].tooltipContent,additionalActions:p.jsx($i,{"data-testid":"remove-success-criteria-button",variant:"text",icon:p.jsx(L.TrashCanIcon,{}),onClick:()=>i(o)})})},o.get().id)),p.jsx(YHe,{renderInput:()=>p.jsx(L.Button,{variant:"outlined",icon:p.jsx(L.AddIcon,{}),iconPosition:"left",size:"small",children:"Add success criteria"}),dataTestId:"workflow-step-success-criteria-select",options:FHe.map(o=>({element:Sb[o].label,label:o,value:o})),onChange:o=>{r(o)},placement:"top",hideCheckmarkIcon:!0})]})}const YHe=I(L.Select)`
|
|
2572
2572
|
border-radius: var(--border-radius-md);
|
|
2573
|
-
`;function GHe({step:t,workflowId:e,collectionId:r}){const{handleIdChange:n}=Ou(),i=t.stepId.get();return p.jsx(p.Fragment,{children:p.jsxs(pte,{children:[p.jsx(Wa,{children:"Info"}),p.jsxs(Vt,{children:[p.jsxs(Vt.Row,{children:[p.jsx(Vt.Cell,{children:p.jsxs(Bc,{children:["Step ID",p.jsx(mo,{content:"This step's unique identifier"})]})}),p.jsx(Vt.Cell,{$readonly:!0,children:p.jsx(bT,{attribute:t.stepId,editorTitle:"Change step ID",placeholder:"Add step ID",onSave:o=>{r&&e&&n({collectionId:r,workflowId:e,stepId:i},{collectionId:r,workflowId:e,stepId:o})}})})]}),p.jsxs(Vt.Row,{children:[p.jsx(Vt.Cell,{children:p.jsxs(Bc,{children:["Description",p.jsx(mo,{content:"The step's purpose in the workflow."})]})}),p.jsx(Vt.Cell,{children:p.jsx(TI,{state:t.description,placeholder:"Add description"})})]})]}),p.jsxs(Ud,{children:[p.jsx(Wa,{children:"Operation"}),p.jsx(MHe,{step:t,collectionId:r})]}),p.jsx(Ud,{children:p.jsx(fte,{outputs:t.outputs,tooltipText:"Data generated in this step that can be used in the next steps."})}),p.jsx(Ud,{children:p.jsx(ZHe,{successCriteria:t.successCriteria})})]})})}function HHe({onParameterChange:t,files:e}){const r=E.useRef(null),n=a=>{a.target.files?.length&&t(Array.from(a.target.files).map(l=>({absolutePath:null,file:l})))},i=async()=>{if(Ya())try{const{open:a}=await Promise.resolve().then(()=>require("./replay-index-
|
|
2573
|
+
`;function GHe({step:t,workflowId:e,collectionId:r}){const{handleIdChange:n}=Ou(),i=t.stepId.get();return p.jsx(p.Fragment,{children:p.jsxs(pte,{children:[p.jsx(Wa,{children:"Info"}),p.jsxs(Vt,{children:[p.jsxs(Vt.Row,{children:[p.jsx(Vt.Cell,{children:p.jsxs(Bc,{children:["Step ID",p.jsx(mo,{content:"This step's unique identifier"})]})}),p.jsx(Vt.Cell,{$readonly:!0,children:p.jsx(bT,{attribute:t.stepId,editorTitle:"Change step ID",placeholder:"Add step ID",onSave:o=>{r&&e&&n({collectionId:r,workflowId:e,stepId:i},{collectionId:r,workflowId:e,stepId:o})}})})]}),p.jsxs(Vt.Row,{children:[p.jsx(Vt.Cell,{children:p.jsxs(Bc,{children:["Description",p.jsx(mo,{content:"The step's purpose in the workflow."})]})}),p.jsx(Vt.Cell,{children:p.jsx(TI,{state:t.description,placeholder:"Add description"})})]})]}),p.jsxs(Ud,{children:[p.jsx(Wa,{children:"Operation"}),p.jsx(MHe,{step:t,collectionId:r})]}),p.jsx(Ud,{children:p.jsx(fte,{outputs:t.outputs,tooltipText:"Data generated in this step that can be used in the next steps."})}),p.jsx(Ud,{children:p.jsx(ZHe,{successCriteria:t.successCriteria})})]})})}function HHe({onParameterChange:t,files:e}){const r=E.useRef(null),n=a=>{a.target.files?.length&&t(Array.from(a.target.files).map(l=>({absolutePath:null,file:l})))},i=async()=>{if(Ya())try{const{open:a}=await Promise.resolve().then(()=>require("./replay-index-D5WsuXyl.js")),l=await a({multiple:!0});if(!l)return;const u=(Array.isArray(l)?l:[l]).map(sg),f=(await Promise.all(u)).filter(h=>h!==null);t(f)}catch(a){console.error("Failed to open file dialog or read file:",a)}else r.current?.click()},o=E.useCallback(()=>{t(null)},[t]),s=E.useMemo(()=>{if(!e)return null;if(e.length===1)return p.jsx(XL,{icon:p.jsx(L.CloseIcon,{}),variant:"secondary",onClick:o,iconPosition:"right",size:"small",children:p.jsx(UL,{children:e[0].file.name})});if(e.length>1)return p.jsx(XL,{icon:p.jsx(L.CloseIcon,{}),variant:"secondary",onClick:o,iconPosition:"right",size:"small",children:p.jsxs(UL,{children:[e.length," files"]})})},[e,o]);return p.jsx(JHe,{children:p.jsxs(KHe,{children:[p.jsx(eJe,{children:s||p.jsx(rJe,{children:"Add files here"})}),p.jsxs(tJe,{children:[p.jsx(H3e,{onClick:i,variant:"text","data-testid":"add-button",icon:p.jsx(L.AddIcon,{color:"--text-color-secondary"})}),p.jsx("input",{"data-testid":"file-input",hidden:!0,ref:r,type:"file",multiple:!0,accept:"files/*",onChange:n})]})]})})}const JHe=I.div`
|
|
2574
2574
|
position: relative;
|
|
2575
2575
|
display: flex;
|
|
2576
2576
|
flex-grow: 1;
|
|
@@ -2697,7 +2697,7 @@ Please report this to https://github.com/markedjs/marked.`,t){const i="<p>An err
|
|
|
2697
2697
|
`,gJe=I.div`
|
|
2698
2698
|
display: flex;
|
|
2699
2699
|
justify-content: center;
|
|
2700
|
-
`;function yJe({data:t,type:e}){const r=rr(),n=t[e];function i(s,a){a&&n.merge([ja()])}function o(s){n[s].set(ft)}return p.jsx(iJe,{keyName:"Param",formElements:n,onParameterChange:i,environment:r,enableInputTypeSelection:e!==Ur["application/x-www-form-urlencoded"],actions:s=>p.jsx($i,{onClick:()=>o(s),variant:"text",icon:p.jsx(L.TrashCanIcon,{})})})}const OJe=({data:t})=>{const e=t.get(),[r,n]=E.useState(!1),i=E.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(),Ya())try{const{open:u}=await Promise.resolve().then(()=>require("./replay-index-
|
|
2700
|
+
`;function yJe({data:t,type:e}){const r=rr(),n=t[e];function i(s,a){a&&n.merge([ja()])}function o(s){n[s].set(ft)}return p.jsx(iJe,{keyName:"Param",formElements:n,onParameterChange:i,environment:r,enableInputTypeSelection:e!==Ur["application/x-www-form-urlencoded"],actions:s=>p.jsx($i,{onClick:()=>o(s),variant:"text",icon:p.jsx(L.TrashCanIcon,{})})})}const OJe=({data:t})=>{const e=t.get(),[r,n]=E.useState(!1),i=E.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(),Ya())try{const{open:u}=await Promise.resolve().then(()=>require("./replay-index-D5WsuXyl.js")),d=await u();if(!d)return;const f=await sg(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?p.jsxs(vJe,{children:[p.jsx(L.SpinnerIcon,{}),"Loading..."]}):e&&e.file?.name?p.jsxs(bJe,{children:[p.jsxs(xJe,{children:[p.jsx(L.DocumentBlankIcon,{size:"16px"}),p.jsx(SJe,{children:e.file?.name})]}),p.jsx($i,{onClick:l,icon:p.jsx(L.TrashCanIcon,{})})]}):p.jsx(hte,{children:!e&&p.jsxs(wJe,{tabIndex:0,role:"button",onKeyDown:a,onClick:s,children:[p.jsx("input",{type:"file",onChange:o,ref:i}),p.jsx(L.CloudUploadIcon,{}),"Upload file"]})})},hte=I.div`
|
|
2701
2701
|
display: flex;
|
|
2702
2702
|
align-items: center;
|
|
2703
2703
|
justify-content: flex-start;
|
|
@@ -2861,7 +2861,7 @@ Please report this to https://github.com/markedjs/marked.`,t){const i="<p>An err
|
|
|
2861
2861
|
font-size: var(--font-size-base);
|
|
2862
2862
|
font-weight: var(--font-weight-medium);
|
|
2863
2863
|
padding: var(--spacing-xs);
|
|
2864
|
-
`;function eKe(t=32){let e="";for(;e.length<t;)e+=Math.random().toString(32).substring(2);return e.substring(0,t)}async function tKe(t){const e=new TextEncoder().encode(t);return crypto?.subtle.digest("SHA-256",e)}function rKe(t){if(t)return btoa(String.fromCharCode.apply(null,new Uint8Array(t))).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function BL(t,e,r){const n=typeof t=="string"?t:t.toString();if(Ya()){const{openUrl:i}=await Promise.resolve().then(()=>require("./replay-index-
|
|
2864
|
+
`;function eKe(t=32){let e="";for(;e.length<t;)e+=Math.random().toString(32).substring(2);return e.substring(0,t)}async function tKe(t){const e=new TextEncoder().encode(t);return crypto?.subtle.digest("SHA-256",e)}function rKe(t){if(t)return btoa(String.fromCharCode.apply(null,new Uint8Array(t))).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function BL(t,e,r){const n=typeof t=="string"?t:t.toString();if(Ya()){const{openUrl:i}=await Promise.resolve().then(()=>require("./replay-index-BAzGnZvK.js"));await i(n);return}window.open(n,e,r)}const FL="/_auth/oauth2-redirect.html";let _S=class nh{static async authorizeImplicit({authorizationUrl:e,clientId:r,scopes:n,extraAuthParams:i={},routingBasePath:o="/",redirectUri:s,successCallback:a,errorCallback:l}){const c=ZL({date:new Date().toString()});try{const u=new URL(e),d=o==="/"?"":o,f=`${window.location.origin}${d}${FL}`;u.searchParams.set("client_id",r),u.searchParams.set("redirect_uri",s||f),u.searchParams.set("response_type","token"),u.searchParams.set("state",c),Array.isArray(n)&&u.searchParams.set("scope",n.join(" "));for(const h in i)u.searchParams.set(h,i[h]);window.redirectOAuth2={flow:"implicit",data:{authorizationUrl:e,clientId:r,scopes:n},state:c,successCallback:h=>{a(h),nh.clearRedirectData("implicit")},errorCallback:h=>{l(h),nh.clearRedirectData("implicit")}},await BL(u.toString())}catch(u){l(va.OAuth2Error.fromError(u))}}static async authorizeAuthorizationCode({authorizationUrl:e,tokenUrl:r,serverUrl:n,clientId:i,clientSecret:o,codeVerifier:s,codeChallenge:a,scopes:l,extraAuthParams:c={},extraTokenHeaders:u={},extraTokenBody:d={},extraTokenParams:f={},routingBasePath:h="/",redirectUri:y,withPkce:m,successCallback:g,errorCallback:v}){try{const O=YO({url:e,serverUrl:n}),b=new URL(O),S=YO({url:r,serverUrl:n}),x=new URL(S),w=h==="/"?"":h,C=`${window.location.origin}${w}${FL}`,k=ZL({date:new Date().toString()});b.searchParams.set("client_id",i),b.searchParams.set("redirect_uri",y||C),b.searchParams.set("response_type","code"),b.searchParams.set("state",k),Array.isArray(l)&&b.searchParams.set("scope",l.join(" ")),m&&(!a&&!s&&(s=oKe(),a=await nKe(s)),a&&(b.searchParams.set("code_challenge",a),b.searchParams.set("code_challenge_method","S256")));for(const R in c)b.searchParams.set(R,c[R]);for(const R in f)x.searchParams.set(R,f[R]);window.redirectOAuth2={flow:"authorizationCode",data:{authorizationUrl:e,clientId:i,scopes:l},state:k,successCallback:async({auth_code:R})=>{const N=Ta({client_id:i,client_secret:o,...s&&{code_verifier:s},code:R,grant_type:"authorization_code",redirect_uri:y||C,...d});try{const D=await Qa(x,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8",Accept:"application/json",...u},body:new URLSearchParams(N).toString()});await t$(D,g,v)}catch(D){v(va.OAuth2Error.fromError(D))}nh.clearRedirectData("authorizationCode")},errorCallback:R=>{v(va.OAuth2Error.fromError(R)),nh.clearRedirectData("authorizationCode")}},await BL(b.toString())}catch(O){v(va.OAuth2Error.fromError(O))}}static clearRedirectData(e){window.redirectOAuth2={flow:e,data:{authorizationUrl:"",clientId:"",scopes:[]},state:"",successCallback:()=>{},errorCallback:()=>{}}}static async authorizeClientCredentials({tokenUrl:e,clientId:r,clientSecret:n,scopes:i=[],extraTokenParams:o={},extraTokenHeaders:s={},extraTokenBody:a={},corsProxyUrl:l,serverUrl:c,assertionType:u,clientAssertion:d,successCallback:f,errorCallback:h}){try{const y={client_id:r,client_secret:n,grant_type:"client_credentials",scope:Array.isArray(i)&&i.length?i.join(" "):void 0,client_assertion_type:u,client_assertion:d,...a},m=YO({url:e,serverUrl:c,corsProxyUrl:l}),g=new URL(m);for(const O in o)g.searchParams.set(O,o[O]);const v=await Qa(m,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8",Accept:"application/json",...s},body:new URLSearchParams(CN(y)).toString()});await t$(v,f,h)}catch(y){h(va.OAuth2Error.fromError(y))}}static async authorizePasswordGrant({username:e,password:r,tokenUrl:n,clientId:i,clientSecret:o,scopes:s=[],extraTokenParams:a={},extraTokenHeaders:l={},extraTokenBody:c={},corsProxyUrl:u,serverUrl:d,successCallback:f,errorCallback:h}){try{const y={client_id:i,client_secret:o,grant_type:"password",username:e,password:r,scope:Array.isArray(s)&&s.length?s.join(" "):void 0,...c},m=YO({url:n,serverUrl:d,corsProxyUrl:u}),g=new URL(m);for(const O in a)g.searchParams.set(O,a[O]);const v=await Qa(m,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8",Accept:"application/json",...l},body:new URLSearchParams(CN(y)).toString()});await t$(v,f,h)}catch(y){h(va.OAuth2Error.fromError(y))}}};function ZL(t){const e={randomStr:eKe(),...t};return btoa(encodeURIComponent(JSON.stringify(e)))}async function t$(t,e,r){if(t.ok){const n=await t.json();if(n.error){r(va.OAuth2Error.fromJsonData(n));return}e(n)}else{if((t.headers.get("Content-Type")||"").indexOf("json")>-1){const o=await t.json();r(va.OAuth2Error.fromJsonData(o));return}r(va.OAuth2Error.fromTextData(await t.text()))}}async function nKe(t){return rKe(await tKe(t))}function iKe(t){return("0"+t.toString(16)).substring(-2)}function oKe(){const t=new Uint32Array(28);return crypto.getRandomValues(t),Array.from(t,iKe).join("")}function AS({scopes:t,environment:e}){const r=(i,o)=>{o&&t.merge([xi()])},n=i=>{t[i].set(ft)};return p.jsx(sKe,{children:p.jsx(aKe,{keyName:"Scopes",elements:t,onParameterChange:r,environment:e,actions:i=>p.jsx($i,{onClick:()=>n(i),variant:"text",icon:p.jsx(L.TrashCanIcon,{})}),singleValue:!0,hideOuterBorders:!0,valuePlaceholder:"New scope item"})})}const sKe=I.div`
|
|
2865
2865
|
width: 100%;
|
|
2866
2866
|
|
|
2867
2867
|
> div {
|
|
@@ -3496,7 +3496,7 @@ Please report this to https://github.com/markedjs/marked.`,t){const i="<p>An err
|
|
|
3496
3496
|
@media (max-width: ${Wn}px) {
|
|
3497
3497
|
padding: var(--spacing-xs) var(--spacing-sm);
|
|
3498
3498
|
}
|
|
3499
|
-
`,_tt={info:t=>{},error:t=>{},warn:t=>{},printNewLine:()=>{},printSeparator:()=>{},indent:(t,e)=>t,output:t=>t},Att=t=>t instanceof URL?t.toString():t instanceof Request?t.url:t;function Itt({collectionId:t,workflowId:e}){const{project:{userFilesDir:r}}=ht(),{certificates:n}=Jo(),i=rr(),{getCollection:o}=fg(),s=o(t),a=r.get(),{inputs:l,servers:c}=i.get(),u=s?.sourceDescriptions.get()??[];return{execute:async f=>{const h=`${a}/${t}`,y=new _G,m=l.map(O=>JSON.stringify({[O.name]:O.value})),g=Rtt(c,u),{run:v}=await Promise.resolve().then(()=>require("./replay-index-
|
|
3499
|
+
`,_tt={info:t=>{},error:t=>{},warn:t=>{},printNewLine:()=>{},printSeparator:()=>{},indent:(t,e)=>t,output:t=>t},Att=t=>t instanceof URL?t.toString():t instanceof Request?t.url:t;function Itt({collectionId:t,workflowId:e}){const{project:{userFilesDir:r}}=ht(),{certificates:n}=Jo(),i=rr(),{getCollection:o}=fg(),s=o(t),a=r.get(),{inputs:l,servers:c}=i.get(),u=s?.sourceDescriptions.get()??[];return{execute:async f=>{const h=`${a}/${t}`,y=new _G,m=l.map(O=>JSON.stringify({[O.name]:O.value})),g=Rtt(c,u),{run:v}=await Promise.resolve().then(()=>require("./replay-index-BJ_p67iw.js"));return await v({files:[h],workflow:e?[e]:[],fetch:(O,b)=>{const S=Att(O),{clientCert:x,clientKey:w}=sJ(S,n?n.get({noproxy:!0}):[]);return Qa(S,{...b,clientCert:x,clientKey:w})},logger:_tt,maxSteps:500,maxFetchTimeout:4e4,requestFileLoader:{getFileBody:async O=>{if(!await L_(O))throw new Error(`File ${O} doesn't exist or isn't readable.`);try{const S=await _1(O),x=new TextEncoder().encode(S);return new File([x],await q_(O))}catch(S){throw new Error(`Failed to read file ${O}: ${S}`)}}},envVariables:{},config:await a6({}),externalRefResolver:y,input:m,server:g,severity:JSON.stringify(f),skipLint:!0,noSecretsMasking:!0})}}}function Rtt(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 uR(t){return t==null?"N/A":t<1e3?`${t} ms`:t<1e4?`${(t/1e3).toFixed(1)} s`:`${Math.round(t/1e3)} s`}function Rte({checks:t}){const e=t.filter(h=>h.severity!=="off"),r=e.filter(h=>h.passed).length,n=e.filter(h=>h.severity==="warn"&&!h.passed).length,i=e.length,o=i-r-n,s=r===i,a=r===0,[l,c]=pe.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?p.jsx(L.CheckmarkFilledIcon,{color:"var(--color-success-base)"}):o>0?p.jsx(L.ErrorFilledIcon,{color:"var(--color-error-base)"}):p.jsx(L.WarningFilledIcon,{color:"var(--color-warning-base)"}),f=h=>{h.stopPropagation(),c(!l)};return!e||e.length===0?null:p.jsxs(jtt,{children:[p.jsxs(Qtt,{onClick:f,children:[p.jsxs(Dtt,{children:[p.jsx(Ntt,{children:p.jsx(Mtt,{children:d()})}),p.jsxs(qtt,{children:[p.jsx(ztt,{children:u()}),p.jsxs(Ltt,{children:[r," successful",n>0&&p.jsxs(p.Fragment,{children:[", ",n," ",n===1?"warning":"warnings"]}),o>0&&p.jsxs(p.Fragment,{children:[", ",o," failed"]})]})]})]}),p.jsx(Vtt,{isExpanded:l,children:l?p.jsx(L.ChevronDownIcon,{}):p.jsx(L.ChevronRightIcon,{})})]}),p.jsx(Xtt,{isExpanded:l,children:e.map((h,y)=>p.jsxs(Utt,{children:[p.jsx(Wtt,{children:h.passed?p.jsx(L.CheckmarkIcon,{color:"var(--color-success-base)",size:"14px"}):!h.passed&&["warn"].includes(h.severity)?p.jsx(L.WarningFilledIcon,{color:"var(--color-warning-base)",size:"14px"}):p.jsx(L.CloseOutlineIcon,{color:"var(--color-error-base)",size:"14px"})}),p.jsxs(Btt,{children:[p.jsx(Ftt,{children:h.name}),h.message&&p.jsx(Ztt,{children:h.message})]})]},y))})]})}const jtt=I.div`
|
|
3500
3500
|
margin-bottom: 0;
|
|
3501
3501
|
margin-top: var(--spacing-xxs);
|
|
3502
3502
|
`,Qtt=I.div`
|
|
@@ -5270,7 +5270,7 @@ Please report this to https://github.com/markedjs/marked.`,t){const i="<p>An err
|
|
|
5270
5270
|
`,Jst=I.div`
|
|
5271
5271
|
display: flex;
|
|
5272
5272
|
gap: var(--spacing-xs);
|
|
5273
|
-
`;async function Cre(t,e,r){try{const{join:n,dirname:i}=await Promise.resolve().then(()=>VPe),{exists:o}=await Promise.resolve().then(()=>XPe),{revealItemInDir:s,openPath:a}=await Promise.resolve().then(()=>require("./replay-index-
|
|
5273
|
+
`;async function Cre(t,e,r){try{const{join:n,dirname:i}=await Promise.resolve().then(()=>VPe),{exists:o}=await Promise.resolve().then(()=>XPe),{revealItemInDir:s,openPath:a}=await Promise.resolve().then(()=>require("./replay-index-BAzGnZvK.js")),l=await n(t,e);if(r||!await o(l)){const c=await i(l);await a(c);return}await s(l)}catch(n){throw console.error("Failed to reveal item in folder:",n),n}}function Kst({node:t}){const e=t.data.type==="api"&&t.data.api.srcType.get()===ii.WEB,{project:r}=ht(),n=E.useMemo(()=>Ya(),[]),{sendEvent:i}=st();if(e)return null;const o=()=>{t.tree.delete(t.id)},s=async a=>{a.stopPropagation();try{if(t.data.type==="api"){const l=t.data.api.id.get({noproxy:!0}),c=r.userFilesDir.get({noproxy:!0});await Cre(c,l),i("node.management",{action:"reveal_in_folder",node_type:"api"})}}catch(l){console.error("Failed to reveal API in folder:",l)}};return p.jsx(eat,{children:p.jsx(ur,{content:"More actions",placement:"topRight",children:p.jsx(L.Dropdown,{trigger:p.jsx(L.Button,{variant:"text",size:"small",icon:p.jsx(L.OverflowMenuVerticalIcon,{})}),alignment:"end",children:p.jsxs(L.DropdownMenu,{children:[n&&p.jsxs(Un,{onClick:s,children:[p.jsx(L.FolderIcon,{size:"14px"}),"Reveal in folder"]}),p.jsxs(Un,{onClick:o,children:[p.jsx(L.TrashCanIcon,{size:"14px"}),"Delete"]})]})})})})}const eat=I.div`
|
|
5274
5274
|
display: flex;
|
|
5275
5275
|
gap: var(--spacing-xxs);
|
|
5276
5276
|
`;function tat({onImport:t}){return p.jsxs(rat,{children:[p.jsx(nat,{children:"No OpenAPI files were imported yet"}),p.jsx(iat,{children:p.jsx(L.Button,{icon:p.jsx(L.DownloadIcon,{}),onClick:t,children:"Import OpenAPI file"})})]})}const rat=I.div`
|