@redocly/replay 0.27.0 → 0.27.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{replay-AiChatProvider-LQhrLIDL.js → replay-AiChatProvider-Cdve_kxz.js} +6 -6
- package/dist/{replay-AiChatProvider-Oms5CFgT.js → replay-AiChatProvider-IuOVaWMC.js} +1 -1
- package/dist/{replay-AiChatSqliteDBStorage-3-p1mthX.js → replay-AiChatSqliteDBStorage-B3aaY0Uo.js} +1 -1
- package/dist/{replay-AiChatSqliteDBStorage-GZibdHOQ.js → replay-AiChatSqliteDBStorage-jEhfZgK3.js} +1 -1
- package/dist/{replay-AiPanel-BvwwBTh1.js → replay-AiPanel-0GXuobhF.js} +1 -1
- package/dist/{replay-AiPanel-lcDNvgo0.js → replay-AiPanel-BT_RLVeR.js} +4 -4
- package/dist/{replay-FileWatcher-DR-wJLe2.js → replay-FileWatcher-CtHVgewC.js} +2 -2
- package/dist/{replay-FileWatcher-ClVd_wG0.js → replay-FileWatcher-NkpXJA-C.js} +1 -1
- package/dist/{replay-SemanticSearchService-CCqwCRo6.js → replay-SemanticSearchService--QXHzf7_.js} +1 -1
- package/dist/{replay-SemanticSearchService-U1eXQGfF.js → replay-SemanticSearchService-DJ_jBUyi.js} +1 -1
- package/dist/{replay-SqliteDBStorage-Dn6DoVWW.js → replay-SqliteDBStorage-0JYq0UPY.js} +1 -1
- package/dist/{replay-SqliteDBStorage-d_ZK6ScA.js → replay-SqliteDBStorage-ClD7MBeX.js} +1 -1
- package/dist/{replay-TauriFileSystemAdapter-CpiUuG3T.js → replay-TauriFileSystemAdapter-BnSXgnQc.js} +1 -1
- package/dist/{replay-TauriFileSystemAdapter-dwJ0xBYr.js → replay-TauriFileSystemAdapter-BuHbmM-L.js} +1 -1
- package/dist/{replay-TauriRootStorage-DhzbAahU.js → replay-TauriRootStorage-B1vFT2Rg.js} +1 -1
- package/dist/{replay-TauriRootStorage-CuVbYMXX.js → replay-TauriRootStorage-D6K0MuWv.js} +2 -2
- package/dist/{replay-agent-loop-BLSu4v_O.js → replay-agent-loop-X2MrvEk-.js} +1 -1
- package/dist/{replay-agent-loop-DgEHdXUt.js → replay-agent-loop-jUYXZfye.js} +3 -3
- package/dist/{replay-ai-chat-mappers-BvfcEubB.js → replay-ai-chat-mappers-B0Ay6VKi.js} +1 -1
- package/dist/{replay-ai-chat-mappers-Dy2kJ7ZG.js → replay-ai-chat-mappers-sgE5XiwA.js} +1 -1
- package/dist/{replay-create-model-bOIDB-e8.js → replay-create-model-DB6xE5Ap.js} +3 -3
- package/dist/{replay-create-model-DNPFcOIp.js → replay-create-model-NrGYVueM.js} +3 -3
- package/dist/{replay-db-BQGv3PGw.js → replay-db-BZNR8xEd.js} +1 -1
- package/dist/{replay-db-CMXZZs9v.js → replay-db-BiP6dME4.js} +1 -1
- package/dist/{replay-external-resolver-mrykFC2h.js → replay-external-resolver-DPAdPRks.js} +2 -2
- package/dist/{replay-external-resolver-n5OvQMRF.js → replay-external-resolver-PLyV0HZs.js} +1 -1
- package/dist/{replay-index-Bc5RHu5L.js → replay-index-B2RZCGOF.js} +21 -21
- package/dist/{replay-index-CepJ5Z0m.js → replay-index-D85qPcEF.js} +11 -11
- package/dist/{replay-index-CFLu-XMV.js → replay-index-DDUSidTx.js} +2 -2
- package/dist/{replay-index-QXosJxRc.js → replay-index-DKNhWzy4.js} +5 -5
- package/dist/{replay-index-CgCGhu4l.js → replay-index-DTD47ryK.js} +1 -1
- package/dist/{replay-index-DDjmUXWm.js → replay-index-DmAVD_C4.js} +1 -1
- package/dist/{replay-index-CSR_qlua.js → replay-index-HHtp5T42.js} +1 -1
- package/dist/{replay-index-CHGVyIdG.js → replay-index-yAV5TCua.js} +1 -1
- package/dist/{replay-lint-PWaLESz5.js → replay-lint-Bico-a-1.js} +3 -3
- package/dist/{replay-lint-DoHQIATV.js → replay-lint-DyUeemr_.js} +3 -3
- package/dist/{replay-lint-graphql-xh8VoAwd.js → replay-lint-graphql-D_p-TkyV.js} +1 -1
- package/dist/{replay-lint-graphql-zO8zunug.js → replay-lint-graphql-pt1vf5MX.js} +1 -1
- package/dist/{replay-resolve-B0AjmaE9.js → replay-resolve-CQzlNcS2.js} +1 -1
- package/dist/{replay-resolve-MVe_8Ube.js → replay-resolve-IKJYgmPW.js} +1 -1
- package/dist/{replay-respect-run-X4PSO6Fj.js → replay-respect-run-CtDn7oS8.js} +3 -3
- package/dist/{replay-respect-run-BJsR4a4m.js → replay-respect-run-rx_nPWZM.js} +1 -1
- package/dist/{replay-tauri-path-CkGiQWsb.js → replay-tauri-path-DrwBKGJP.js} +2 -2
- package/dist/{replay-tauri-path-D8FJsoZb.js → replay-tauri-path-iA6pF5e0.js} +1 -1
- package/dist/{replay-useAiChatQueries-BXL-_N2Q.js → replay-useAiChatQueries-BIZfilWh.js} +1 -1
- package/dist/{replay-useAiChatQueries-D7sHNAfV.js → replay-useAiChatQueries-PECgHJpT.js} +4 -4
- package/dist/{replay-validate-key-CmzSfORv.js → replay-validate-key-CTJn216O.js} +1 -1
- package/dist/{replay-validate-key-CtZEJRP7.js → replay-validate-key-CvZaTfXj.js} +2 -2
- package/dist/replay.cjs +1 -1
- package/dist/replay.js +1 -1
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { aa as R, ab as L, ac as k, ad as g, ae as B, af as M, ag as A, ah as U, ai as V, aj as a, ak as T, al as K, am as G, an as v, ao as $, ap as Y, aq as j } from "./replay-lint-
|
|
1
|
+
import { aa as R, ab as L, ac as k, ad as g, ae as B, af as M, ag as A, ah as U, ai as V, aj as a, ak as T, al as K, am as G, an as v, ao as $, ap as Y, aq as j } from "./replay-lint-Bico-a-1.js";
|
|
2
2
|
function u(n, t, e) {
|
|
3
3
|
return new R(`Syntax Error: ${e}`, {
|
|
4
4
|
source: n,
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./replay-lint-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./replay-lint-DyUeemr_.js");function u(i,t,e){return new a.GraphQLError(`Syntax Error: ${e}`,{source:i,positions:[t]})}var r;(function(i){i.SOF="<SOF>",i.EOF="<EOF>",i.BANG="!",i.DOLLAR="$",i.AMP="&",i.PAREN_L="(",i.PAREN_R=")",i.DOT=".",i.SPREAD="...",i.COLON=":",i.EQUALS="=",i.AT="@",i.BRACKET_L="[",i.BRACKET_R="]",i.BRACE_L="{",i.PIPE="|",i.BRACE_R="}",i.NAME="Name",i.INT="Int",i.FLOAT="Float",i.STRING="String",i.BLOCK_STRING="BlockString",i.COMMENT="Comment"})(r||(r={}));class R{constructor(t){const e=new a.Token(r.SOF,0,0,0,0);this.source=t,this.lastToken=e,this.token=e,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let t=this.token;if(t.kind!==r.EOF)do if(t.next)t=t.next;else{const e=S(this,t.end);t.next=e,e.prev=t,t=e}while(t.kind===r.COMMENT);return t}}function g(i){return i===r.BANG||i===r.DOLLAR||i===r.AMP||i===r.PAREN_L||i===r.PAREN_R||i===r.DOT||i===r.SPREAD||i===r.COLON||i===r.EQUALS||i===r.AT||i===r.BRACKET_L||i===r.BRACKET_R||i===r.BRACE_L||i===r.PIPE||i===r.BRACE_R}function E(i){return i>=0&&i<=55295||i>=57344&&i<=1114111}function N(i,t){return O(i.charCodeAt(t))&&v(i.charCodeAt(t+1))}function O(i){return i>=55296&&i<=56319}function v(i){return i>=56320&&i<=57343}function x(i,t){const e=i.source.body.codePointAt(t);if(e===void 0)return r.EOF;if(e>=32&&e<=126){const s=String.fromCodePoint(e);return s==='"'?`'"'`:`"${s}"`}return"U+"+e.toString(16).toUpperCase().padStart(4,"0")}function h(i,t,e,s,n){const o=i.line,c=1+e-i.lineStart;return new a.Token(t,e,s,o,c,n)}function S(i,t){const e=i.source.body,s=e.length;let n=t;for(;n<s;){const o=e.charCodeAt(n);switch(o){case 65279:case 9:case 32:case 44:++n;continue;case 10:++n,++i.line,i.lineStart=n;continue;case 13:e.charCodeAt(n+1)===10?n+=2:++n,++i.line,i.lineStart=n;continue;case 35:return w(i,n);case 33:return h(i,r.BANG,n,n+1);case 36:return h(i,r.DOLLAR,n,n+1);case 38:return h(i,r.AMP,n,n+1);case 40:return h(i,r.PAREN_L,n,n+1);case 41:return h(i,r.PAREN_R,n,n+1);case 46:if(e.charCodeAt(n+1)===46&&e.charCodeAt(n+2)===46)return h(i,r.SPREAD,n,n+3);break;case 58:return h(i,r.COLON,n,n+1);case 61:return h(i,r.EQUALS,n,n+1);case 64:return h(i,r.AT,n,n+1);case 91:return h(i,r.BRACKET_L,n,n+1);case 93:return h(i,r.BRACKET_R,n,n+1);case 123:return h(i,r.BRACE_L,n,n+1);case 124:return h(i,r.PIPE,n,n+1);case 125:return h(i,r.BRACE_R,n,n+1);case 34:return e.charCodeAt(n+1)===34&&e.charCodeAt(n+2)===34?M(i,n):K(i,n)}if(a.isDigit(o)||o===45)return b(i,n,o);if(a.isNameStart(o))return U(i,n);throw u(i.source,n,o===39?`Unexpected single quote character ('), did you mean to use a double quote (")?`:E(o)||N(e,n)?`Unexpected character: ${x(i,n)}.`:`Invalid character: ${x(i,n)}.`)}return h(i,r.EOF,s,s)}function w(i,t){const e=i.source.body,s=e.length;let n=t+1;for(;n<s;){const o=e.charCodeAt(n);if(o===10||o===13)break;if(E(o))++n;else if(N(e,n))n+=2;else break}return h(i,r.COMMENT,t,n,e.slice(t+1,n))}function b(i,t,e){const s=i.source.body;let n=t,o=e,c=!1;if(o===45&&(o=s.charCodeAt(++n)),o===48){if(o=s.charCodeAt(++n),a.isDigit(o))throw u(i.source,n,`Invalid number, unexpected digit after 0: ${x(i,n)}.`)}else n=k(i,n,o),o=s.charCodeAt(n);if(o===46&&(c=!0,o=s.charCodeAt(++n),n=k(i,n,o),o=s.charCodeAt(n)),(o===69||o===101)&&(c=!0,o=s.charCodeAt(++n),(o===43||o===45)&&(o=s.charCodeAt(++n)),n=k(i,n,o),o=s.charCodeAt(n)),o===46||a.isNameStart(o))throw u(i.source,n,`Invalid number, expected digit but got: ${x(i,n)}.`);return h(i,c?r.FLOAT:r.INT,t,n,s.slice(t,n))}function k(i,t,e){if(!a.isDigit(e))throw u(i.source,t,`Invalid number, expected digit but got: ${x(i,t)}.`);const s=i.source.body;let n=t+1;for(;a.isDigit(s.charCodeAt(n));)++n;return n}function K(i,t){const e=i.source.body,s=e.length;let n=t+1,o=n,c="";for(;n<s;){const p=e.charCodeAt(n);if(p===34)return c+=e.slice(o,n),h(i,r.STRING,t,n+1,c);if(p===92){c+=e.slice(o,n);const d=e.charCodeAt(n+1)===117?e.charCodeAt(n+2)===123?P(i,n):F(i,n):B(i,n);c+=d.value,n+=d.size,o=n;continue}if(p===10||p===13)break;if(E(p))++n;else if(N(e,n))n+=2;else throw u(i.source,n,`Invalid character within String: ${x(i,n)}.`)}throw u(i.source,n,"Unterminated string.")}function P(i,t){const e=i.source.body;let s=0,n=3;for(;n<12;){const o=e.charCodeAt(t+n++);if(o===125){if(n<5||!E(s))break;return{value:String.fromCodePoint(s),size:n}}if(s=s<<4|m(o),s<0)break}throw u(i.source,t,`Invalid Unicode escape sequence: "${e.slice(t,t+n)}".`)}function F(i,t){const e=i.source.body,s=D(e,t+2);if(E(s))return{value:String.fromCodePoint(s),size:6};if(O(s)&&e.charCodeAt(t+6)===92&&e.charCodeAt(t+7)===117){const n=D(e,t+8);if(v(n))return{value:String.fromCodePoint(s,n),size:12}}throw u(i.source,t,`Invalid Unicode escape sequence: "${e.slice(t,t+6)}".`)}function D(i,t){return m(i.charCodeAt(t))<<12|m(i.charCodeAt(t+1))<<8|m(i.charCodeAt(t+2))<<4|m(i.charCodeAt(t+3))}function m(i){return i>=48&&i<=57?i-48:i>=65&&i<=70?i-55:i>=97&&i<=102?i-87:-1}function B(i,t){const e=i.source.body;switch(e.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:`
|
|
2
2
|
`,size:2};case 114:return{value:"\r",size:2};case 116:return{value:" ",size:2}}throw u(i.source,t,`Invalid character escape sequence: "${e.slice(t,t+2)}".`)}function M(i,t){const e=i.source.body,s=e.length;let n=i.lineStart,o=t+3,c=o,p="";const d=[];for(;o<s;){const f=e.charCodeAt(o);if(f===34&&e.charCodeAt(o+1)===34&&e.charCodeAt(o+2)===34){p+=e.slice(c,o),d.push(p);const l=h(i,r.BLOCK_STRING,t,o+3,a.dedentBlockStringLines(d).join(`
|
|
3
3
|
`));return i.line+=d.length-1,i.lineStart=n,l}if(f===92&&e.charCodeAt(o+1)===34&&e.charCodeAt(o+2)===34&&e.charCodeAt(o+3)===34){p+=e.slice(c,o),c=o+1,o+=4;continue}if(f===10||f===13){p+=e.slice(c,o),d.push(p),f===13&&e.charCodeAt(o+1)===10?o+=2:++o,p="",c=o,n=o;continue}if(E(f))++o;else if(N(e,o))o+=2;else throw u(i.source,o,`Invalid character within String: ${x(i,o)}.`)}throw u(i.source,o,"Unterminated string.")}function U(i,t){const e=i.source.body,s=e.length;let n=t+1;for(;n<s;){const o=e.charCodeAt(n);if(a.isNameContinue(o))++n;else break}return h(i,r.NAME,t,n,e.slice(t,n))}class _{constructor(t,e="GraphQL request",s={line:1,column:1}){typeof t=="string"||a.devAssert(!1,`Body must be a string. Received: ${a.inspect(t)}.`),this.body=t,this.name=e,this.locationOffset=s,this.locationOffset.line>0||a.devAssert(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||a.devAssert(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}function V(i){return a.instanceOf(i,_)}function G(i,t){const e=new $(i,t),s=e.parseDocument();return Object.defineProperty(s,"tokenCount",{enumerable:!1,value:e.tokenCount}),s}class ${constructor(t,e={}){const{lexer:s,...n}=e;if(s)this._lexer=s;else{const o=V(t)?t:new _(t);this._lexer=new R(o)}this._options=n,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){const t=this.expectToken(r.NAME);return this.node(t,{kind:a.Kind.NAME,value:t.value})}parseDocument(){return this.node(this._lexer.token,{kind:a.Kind.DOCUMENT,definitions:this.many(r.SOF,this.parseDefinition,r.EOF)})}parseDefinition(){if(this.peek(r.BRACE_L))return this.parseOperationDefinition();const t=this.peekDescription(),e=t?this._lexer.lookahead():this._lexer.token;if(t&&e.kind===r.BRACE_L)throw u(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are not supported on shorthand queries.");if(e.kind===r.NAME){switch(e.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}switch(e.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition()}if(t)throw u(this._lexer.source,this._lexer.token.start,"Unexpected description, only GraphQL definitions support descriptions.");if(e.value==="extend")return this.parseTypeSystemExtension()}throw this.unexpected(e)}parseOperationDefinition(){const t=this._lexer.token;if(this.peek(r.BRACE_L))return this.node(t,{kind:a.Kind.OPERATION_DEFINITION,operation:a.OperationTypeNode.QUERY,description:void 0,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const e=this.parseDescription(),s=this.parseOperationType();let n;return this.peek(r.NAME)&&(n=this.parseName()),this.node(t,{kind:a.Kind.OPERATION_DEFINITION,operation:s,description:e,name:n,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const t=this.expectToken(r.NAME);switch(t.value){case"query":return a.OperationTypeNode.QUERY;case"mutation":return a.OperationTypeNode.MUTATION;case"subscription":return a.OperationTypeNode.SUBSCRIPTION}throw this.unexpected(t)}parseVariableDefinitions(){return this.optionalMany(r.PAREN_L,this.parseVariableDefinition,r.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:a.Kind.VARIABLE_DEFINITION,description:this.parseDescription(),variable:this.parseVariable(),type:(this.expectToken(r.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(r.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const t=this._lexer.token;return this.expectToken(r.DOLLAR),this.node(t,{kind:a.Kind.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:a.Kind.SELECTION_SET,selections:this.many(r.BRACE_L,this.parseSelection,r.BRACE_R)})}parseSelection(){return this.peek(r.SPREAD)?this.parseFragment():this.parseField()}parseField(){const t=this._lexer.token,e=this.parseName();let s,n;return this.expectOptionalToken(r.COLON)?(s=e,n=this.parseName()):n=e,this.node(t,{kind:a.Kind.FIELD,alias:s,name:n,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(r.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(t){const e=t?this.parseConstArgument:this.parseArgument;return this.optionalMany(r.PAREN_L,e,r.PAREN_R)}parseArgument(t=!1){const e=this._lexer.token,s=this.parseName();return this.expectToken(r.COLON),this.node(e,{kind:a.Kind.ARGUMENT,name:s,value:this.parseValueLiteral(t)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const t=this._lexer.token;this.expectToken(r.SPREAD);const e=this.expectOptionalKeyword("on");return!e&&this.peek(r.NAME)?this.node(t,{kind:a.Kind.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(t,{kind:a.Kind.INLINE_FRAGMENT,typeCondition:e?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const t=this._lexer.token,e=this.parseDescription();return this.expectKeyword("fragment"),this._options.allowLegacyFragmentVariables===!0?this.node(t,{kind:a.Kind.FRAGMENT_DEFINITION,description:e,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(t,{kind:a.Kind.FRAGMENT_DEFINITION,description:e,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if(this._lexer.token.value==="on")throw this.unexpected();return this.parseName()}parseValueLiteral(t){const e=this._lexer.token;switch(e.kind){case r.BRACKET_L:return this.parseList(t);case r.BRACE_L:return this.parseObject(t);case r.INT:return this.advanceLexer(),this.node(e,{kind:a.Kind.INT,value:e.value});case r.FLOAT:return this.advanceLexer(),this.node(e,{kind:a.Kind.FLOAT,value:e.value});case r.STRING:case r.BLOCK_STRING:return this.parseStringLiteral();case r.NAME:switch(this.advanceLexer(),e.value){case"true":return this.node(e,{kind:a.Kind.BOOLEAN,value:!0});case"false":return this.node(e,{kind:a.Kind.BOOLEAN,value:!1});case"null":return this.node(e,{kind:a.Kind.NULL});default:return this.node(e,{kind:a.Kind.ENUM,value:e.value})}case r.DOLLAR:if(t)if(this.expectToken(r.DOLLAR),this._lexer.token.kind===r.NAME){const s=this._lexer.token.value;throw u(this._lexer.source,e.start,`Unexpected variable "$${s}" in constant value.`)}else throw this.unexpected(e);return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const t=this._lexer.token;return this.advanceLexer(),this.node(t,{kind:a.Kind.STRING,value:t.value,block:t.kind===r.BLOCK_STRING})}parseList(t){const e=()=>this.parseValueLiteral(t);return this.node(this._lexer.token,{kind:a.Kind.LIST,values:this.any(r.BRACKET_L,e,r.BRACKET_R)})}parseObject(t){const e=()=>this.parseObjectField(t);return this.node(this._lexer.token,{kind:a.Kind.OBJECT,fields:this.any(r.BRACE_L,e,r.BRACE_R)})}parseObjectField(t){const e=this._lexer.token,s=this.parseName();return this.expectToken(r.COLON),this.node(e,{kind:a.Kind.OBJECT_FIELD,name:s,value:this.parseValueLiteral(t)})}parseDirectives(t){const e=[];for(;this.peek(r.AT);)e.push(this.parseDirective(t));return e}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(t){const e=this._lexer.token;return this.expectToken(r.AT),this.node(e,{kind:a.Kind.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(t)})}parseTypeReference(){const t=this._lexer.token;let e;if(this.expectOptionalToken(r.BRACKET_L)){const s=this.parseTypeReference();this.expectToken(r.BRACKET_R),e=this.node(t,{kind:a.Kind.LIST_TYPE,type:s})}else e=this.parseNamedType();return this.expectOptionalToken(r.BANG)?this.node(t,{kind:a.Kind.NON_NULL_TYPE,type:e}):e}parseNamedType(){return this.node(this._lexer.token,{kind:a.Kind.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(r.STRING)||this.peek(r.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const t=this._lexer.token,e=this.parseDescription();this.expectKeyword("schema");const s=this.parseConstDirectives(),n=this.many(r.BRACE_L,this.parseOperationTypeDefinition,r.BRACE_R);return this.node(t,{kind:a.Kind.SCHEMA_DEFINITION,description:e,directives:s,operationTypes:n})}parseOperationTypeDefinition(){const t=this._lexer.token,e=this.parseOperationType();this.expectToken(r.COLON);const s=this.parseNamedType();return this.node(t,{kind:a.Kind.OPERATION_TYPE_DEFINITION,operation:e,type:s})}parseScalarTypeDefinition(){const t=this._lexer.token,e=this.parseDescription();this.expectKeyword("scalar");const s=this.parseName(),n=this.parseConstDirectives();return this.node(t,{kind:a.Kind.SCALAR_TYPE_DEFINITION,description:e,name:s,directives:n})}parseObjectTypeDefinition(){const t=this._lexer.token,e=this.parseDescription();this.expectKeyword("type");const s=this.parseName(),n=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),c=this.parseFieldsDefinition();return this.node(t,{kind:a.Kind.OBJECT_TYPE_DEFINITION,description:e,name:s,interfaces:n,directives:o,fields:c})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(r.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(r.BRACE_L,this.parseFieldDefinition,r.BRACE_R)}parseFieldDefinition(){const t=this._lexer.token,e=this.parseDescription(),s=this.parseName(),n=this.parseArgumentDefs();this.expectToken(r.COLON);const o=this.parseTypeReference(),c=this.parseConstDirectives();return this.node(t,{kind:a.Kind.FIELD_DEFINITION,description:e,name:s,arguments:n,type:o,directives:c})}parseArgumentDefs(){return this.optionalMany(r.PAREN_L,this.parseInputValueDef,r.PAREN_R)}parseInputValueDef(){const t=this._lexer.token,e=this.parseDescription(),s=this.parseName();this.expectToken(r.COLON);const n=this.parseTypeReference();let o;this.expectOptionalToken(r.EQUALS)&&(o=this.parseConstValueLiteral());const c=this.parseConstDirectives();return this.node(t,{kind:a.Kind.INPUT_VALUE_DEFINITION,description:e,name:s,type:n,defaultValue:o,directives:c})}parseInterfaceTypeDefinition(){const t=this._lexer.token,e=this.parseDescription();this.expectKeyword("interface");const s=this.parseName(),n=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),c=this.parseFieldsDefinition();return this.node(t,{kind:a.Kind.INTERFACE_TYPE_DEFINITION,description:e,name:s,interfaces:n,directives:o,fields:c})}parseUnionTypeDefinition(){const t=this._lexer.token,e=this.parseDescription();this.expectKeyword("union");const s=this.parseName(),n=this.parseConstDirectives(),o=this.parseUnionMemberTypes();return this.node(t,{kind:a.Kind.UNION_TYPE_DEFINITION,description:e,name:s,directives:n,types:o})}parseUnionMemberTypes(){return this.expectOptionalToken(r.EQUALS)?this.delimitedMany(r.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const t=this._lexer.token,e=this.parseDescription();this.expectKeyword("enum");const s=this.parseName(),n=this.parseConstDirectives(),o=this.parseEnumValuesDefinition();return this.node(t,{kind:a.Kind.ENUM_TYPE_DEFINITION,description:e,name:s,directives:n,values:o})}parseEnumValuesDefinition(){return this.optionalMany(r.BRACE_L,this.parseEnumValueDefinition,r.BRACE_R)}parseEnumValueDefinition(){const t=this._lexer.token,e=this.parseDescription(),s=this.parseEnumValueName(),n=this.parseConstDirectives();return this.node(t,{kind:a.Kind.ENUM_VALUE_DEFINITION,description:e,name:s,directives:n})}parseEnumValueName(){if(this._lexer.token.value==="true"||this._lexer.token.value==="false"||this._lexer.token.value==="null")throw u(this._lexer.source,this._lexer.token.start,`${T(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const t=this._lexer.token,e=this.parseDescription();this.expectKeyword("input");const s=this.parseName(),n=this.parseConstDirectives(),o=this.parseInputFieldsDefinition();return this.node(t,{kind:a.Kind.INPUT_OBJECT_TYPE_DEFINITION,description:e,name:s,directives:n,fields:o})}parseInputFieldsDefinition(){return this.optionalMany(r.BRACE_L,this.parseInputValueDef,r.BRACE_R)}parseTypeSystemExtension(){const t=this._lexer.lookahead();if(t.kind===r.NAME)switch(t.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension();case"directive":if(this._options.experimentalDirectivesOnDirectiveDefinitions)return this.parseDirectiveDefinitionExtension();break}throw this.unexpected(t)}parseSchemaExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const e=this.parseConstDirectives(),s=this.optionalMany(r.BRACE_L,this.parseOperationTypeDefinition,r.BRACE_R);if(e.length===0&&s.length===0)throw this.unexpected();return this.node(t,{kind:a.Kind.SCHEMA_EXTENSION,directives:e,operationTypes:s})}parseScalarTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const e=this.parseName(),s=this.parseConstDirectives();if(s.length===0)throw this.unexpected();return this.node(t,{kind:a.Kind.SCALAR_TYPE_EXTENSION,name:e,directives:s})}parseObjectTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const e=this.parseName(),s=this.parseImplementsInterfaces(),n=this.parseConstDirectives(),o=this.parseFieldsDefinition();if(s.length===0&&n.length===0&&o.length===0)throw this.unexpected();return this.node(t,{kind:a.Kind.OBJECT_TYPE_EXTENSION,name:e,interfaces:s,directives:n,fields:o})}parseInterfaceTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const e=this.parseName(),s=this.parseImplementsInterfaces(),n=this.parseConstDirectives(),o=this.parseFieldsDefinition();if(s.length===0&&n.length===0&&o.length===0)throw this.unexpected();return this.node(t,{kind:a.Kind.INTERFACE_TYPE_EXTENSION,name:e,interfaces:s,directives:n,fields:o})}parseUnionTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const e=this.parseName(),s=this.parseConstDirectives(),n=this.parseUnionMemberTypes();if(s.length===0&&n.length===0)throw this.unexpected();return this.node(t,{kind:a.Kind.UNION_TYPE_EXTENSION,name:e,directives:s,types:n})}parseEnumTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const e=this.parseName(),s=this.parseConstDirectives(),n=this.parseEnumValuesDefinition();if(s.length===0&&n.length===0)throw this.unexpected();return this.node(t,{kind:a.Kind.ENUM_TYPE_EXTENSION,name:e,directives:s,values:n})}parseInputObjectTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const e=this.parseName(),s=this.parseConstDirectives(),n=this.parseInputFieldsDefinition();if(s.length===0&&n.length===0)throw this.unexpected();return this.node(t,{kind:a.Kind.INPUT_OBJECT_TYPE_EXTENSION,name:e,directives:s,fields:n})}parseDirectiveDefinitionExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("directive"),this.expectToken(r.AT);const e=this.parseName(),s=this.parseConstDirectives();if(s.length===0)throw this.unexpected();return this.node(t,{kind:a.Kind.DIRECTIVE_EXTENSION,name:e,directives:s})}parseDirectiveDefinition(){const t=this._lexer.token,e=this.parseDescription();this.expectKeyword("directive"),this.expectToken(r.AT);const s=this.parseName(),n=this.parseArgumentDefs(),o=this._options.experimentalDirectivesOnDirectiveDefinitions?this.parseConstDirectives():[],c=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const p=this.parseDirectiveLocations();return this.node(t,{kind:a.Kind.DIRECTIVE_DEFINITION,description:e,name:s,arguments:n,directives:o,repeatable:c,locations:p})}parseDirectiveLocations(){return this.delimitedMany(r.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const t=this._lexer.token,e=this.parseName();if(Object.prototype.hasOwnProperty.call(a.DirectiveLocation,e.value))return e;throw this.unexpected(t)}parseSchemaCoordinate(){const t=this._lexer.token,e=this.expectOptionalToken(r.AT),s=this.parseName();let n;!e&&this.expectOptionalToken(r.DOT)&&(n=this.parseName());let o;return(e||n)&&this.expectOptionalToken(r.PAREN_L)&&(o=this.parseName(),this.expectToken(r.COLON),this.expectToken(r.PAREN_R)),e?o?this.node(t,{kind:a.Kind.DIRECTIVE_ARGUMENT_COORDINATE,name:s,argumentName:o}):this.node(t,{kind:a.Kind.DIRECTIVE_COORDINATE,name:s}):n?o?this.node(t,{kind:a.Kind.ARGUMENT_COORDINATE,name:s,fieldName:n,argumentName:o}):this.node(t,{kind:a.Kind.MEMBER_COORDINATE,name:s,memberName:n}):this.node(t,{kind:a.Kind.TYPE_COORDINATE,name:s})}node(t,e){return this._options.noLocation!==!0&&(e.loc=new a.Location(t,this._lexer.lastToken,this._lexer.source)),e}peek(t){return this._lexer.token.kind===t}expectToken(t){const e=this._lexer.token;if(e.kind===t)return this.advanceLexer(),e;throw u(this._lexer.source,e.start,`Expected ${C(t)}, found ${T(e)}.`)}expectOptionalToken(t){return this._lexer.token.kind===t?(this.advanceLexer(),!0):!1}expectKeyword(t){const e=this._lexer.token;if(e.kind===r.NAME&&e.value===t)this.advanceLexer();else throw u(this._lexer.source,e.start,`Expected "${t}", found ${T(e)}.`)}expectOptionalKeyword(t){const e=this._lexer.token;return e.kind===r.NAME&&e.value===t?(this.advanceLexer(),!0):!1}unexpected(t){const e=t??this._lexer.token;return u(this._lexer.source,e.start,`Unexpected ${T(e)}.`)}any(t,e,s){this.expectToken(t);const n=[];for(;!this.expectOptionalToken(s);)n.push(e.call(this));return n}optionalMany(t,e,s){if(this.expectOptionalToken(t)){const n=[];do n.push(e.call(this));while(!this.expectOptionalToken(s));return n}return[]}many(t,e,s){this.expectToken(t);const n=[];do n.push(e.call(this));while(!this.expectOptionalToken(s));return n}delimitedMany(t,e){this.expectOptionalToken(t);const s=[];do s.push(e.call(this));while(this.expectOptionalToken(t));return s}advanceLexer(){const{maxTokens:t}=this._options,e=this._lexer.advance();if(e.kind!==r.EOF&&(++this._tokenCounter,t!==void 0&&this._tokenCounter>t))throw u(this._lexer.source,e.start,`Document contains more that ${t} tokens. Parsing aborted.`)}}function T(i){const t=i.value;return C(i.kind)+(t!=null?` "${t}"`:"")}function C(i){return g(i)?`"${i}"`:i}function Y(i,t){const e={};for(const s of Object.keys(i)){const n=i[s];if(!n)continue;const o=typeof n=="function"?n:n.enter,c=typeof n=="function"?void 0:n.leave;e[s]={...o?{enter:y(o,t)}:{},...c?{leave:y(c,t)}:{}}}return e}function y(i,t){return(e,s,n,o,c)=>{i(e,j(e,t,c))}}function j(i,t,e=[]){const{ruleId:s,severity:n,message:o,source:c,config:p,problems:d}=t,f=e.filter(l=>!Array.isArray(l));return{source:c,config:p,ancestors:f,report(l){const I=l.node??i,A=l.loc??q(I),L={source:c,pointer:void 0,start:A?.start??{line:1,col:1},end:A?.end};d.push({ruleId:l.ruleId??s,severity:l.severity??n,message:o?o.replace("{{message}}",l.message):l.message,suggest:l.suggest??[],location:[L]})}}}function q(i){if(!i?.loc)return;const t=a.getLocation(i.loc.source,i.loc.start),e=a.getLocation(i.loc.source,i.loc.end);return{start:{line:t.line,col:t.column},end:{line:e.line,col:e.column}}}function Q(i){const{document:t,config:e}=i,s=t.source;if(s.body.trim()==="")return[{ruleId:"struct",severity:"error",message:"The GraphQL document is empty. Expected at least one type definition.",suggest:[],location:[{source:s,pointer:void 0,start:{line:1,col:1}}]}];let n;try{n=G(new _(s.body,s.absoluteRef))}catch(d){if(d instanceof a.GraphQLError)return[z(d,s)];throw d}const o=e.getRulesForSpecVersion("graphql")??[],c=a.initRules(o,e,"rules","graphql");return X({ast:n,source:s,config:e,rules:c}).map(d=>e.addProblemToIgnore(d))}function z(i,t){const e=i.locations?.[0];return{ruleId:"struct",severity:"error",message:i.message,suggest:[],location:[{source:t,pointer:void 0,start:e?{line:e.line,col:e.column}:{line:1,col:1}}]}}function X(i){const{ast:t,source:e,config:s,rules:n}=i,o=[],c=n.map(({ruleId:p,severity:d,message:f,visitor:l})=>Y(l,{ruleId:p,severity:d,message:f,source:e,config:s,problems:o}));return c.length>0&&a.visit(t,a.visitInParallel(c)),o}exports.lintGraphqlDocument=Q;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const se=require("./replay-index-CepJ5Z0m.js");function Hn(e){return!!e}var bt={},vt,fn;function ht(){if(fn)return vt;fn=1;const e="\\\\/",t=`[^${e}]`,n=0,r="\\.",i="\\+",o="\\?",a="\\/",s="(?=.)",l="[^/]",u=`(?:${a}|$)`,c=`(?:^|${a})`,E=`${r}{1,2}${u}`,m=`(?!${r})`,C=`(?!${c}${E})`,S=`(?!${r}{0,1}${u})`,w=`(?!${E})`,M=`[^.${a}]`,N=`${l}*?`,y={DOT_LITERAL:r,PLUS_LITERAL:i,QMARK_LITERAL:o,SLASH_LITERAL:a,ONE_CHAR:s,QMARK:l,END_ANCHOR:u,DOTS_SLASH:E,NO_DOT:m,NO_DOTS:C,NO_DOT_SLASH:S,NO_DOTS_SLASH:w,QMARK_NO_DOT:M,STAR:N,START_ANCHOR:c,SEP:"/"},R={...y,SLASH_LITERAL:`[${e}]`,QMARK:t,STAR:`${t}*?`,DOTS_SLASH:`${r}{1,2}(?:[${e}]|$)`,NO_DOT:`(?!${r})`,NO_DOTS:`(?!(?:^|[${e}])${r}{1,2}(?:[${e}]|$))`,NO_DOT_SLASH:`(?!${r}{0,1}(?:[${e}]|$))`,NO_DOTS_SLASH:`(?!${r}{1,2}(?:[${e}]|$))`,QMARK_NO_DOT:`[^.${e}]`,START_ANCHOR:`(?:^|[${e}])`,END_ANCHOR:`(?:[${e}]|$)`,SEP:"\\"},f={__proto__:null,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 vt={DEFAULT_MAX_EXTGLOB_RECURSION:n,MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:f,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(I){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${I.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(I){return I===!0?R:y}},vt}var pn;function gt(){return pn||(pn=1,(function(e){const{REGEX_BACKSLASH:t,REGEX_REMOVE_BACKSLASH:n,REGEX_SPECIAL_CHARS:r,REGEX_SPECIAL_CHARS_GLOBAL:i}=ht();e.isObject=o=>o!==null&&typeof o=="object"&&!Array.isArray(o),e.hasRegexChars=o=>r.test(o),e.isRegexChar=o=>o.length===1&&e.hasRegexChars(o),e.escapeRegex=o=>o.replace(i,"\\$1"),e.toPosixSlashes=o=>o.replace(t,"/"),e.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},e.removeBackslashes=o=>o.replace(n,a=>a==="\\"?"":a),e.escapeLast=(o,a,s)=>{const l=o.lastIndexOf(a,s);return l===-1?o:o[l-1]==="\\"?e.escapeLast(o,a,l-1):`${o.slice(0,l)}\\${o.slice(l)}`},e.removePrefix=(o,a={})=>{let s=o;return s.startsWith("./")&&(s=s.slice(2),a.prefix="./"),s},e.wrapOutput=(o,a={},s={})=>{const l=s.contains?"":"^",u=s.contains?"":"$";let c=`${l}(?:${o})${u}`;return a.negated===!0&&(c=`(?:^(?!${c}).*$)`),c},e.basename=(o,{windows:a}={})=>{const s=o.split(a?/[\\/]/:"/"),l=s[s.length-1];return l===""?s[s.length-2]:l}})(bt)),bt}var Rt,dn;function vr(){if(dn)return Rt;dn=1;const e=gt(),{CHAR_ASTERISK:t,CHAR_AT:n,CHAR_BACKWARD_SLASH:r,CHAR_COMMA:i,CHAR_DOT:o,CHAR_EXCLAMATION_MARK:a,CHAR_FORWARD_SLASH:s,CHAR_LEFT_CURLY_BRACE:l,CHAR_LEFT_PARENTHESES:u,CHAR_LEFT_SQUARE_BRACKET:c,CHAR_PLUS:E,CHAR_QUESTION_MARK:m,CHAR_RIGHT_CURLY_BRACE:C,CHAR_RIGHT_PARENTHESES:S,CHAR_RIGHT_SQUARE_BRACKET:w}=ht(),M=y=>y===s||y===r,N=y=>{y.isPrefix!==!0&&(y.depth=y.isGlobstar?1/0:1)};return Rt=(y,R)=>{const f=R||{},I=y.length-1,v=f.parts===!0||f.scanToEnd===!0,A=[],g=[],_=[];let j=y,k=-1,K=0,ue=0,le=!1,he=!1,W=!1,Ee=!1,_e=!1,ge=!1,U=!1,me=!1,we=!1,ne=!1,J=0,ce,O,F={value:"",depth:0,isGlob:!1};const h=()=>k>=I,ae=()=>j.charCodeAt(k+1),z=()=>(ce=O,j.charCodeAt(++k));for(;k<I;){O=z();let D;if(O===r){U=F.backslashes=!0,O=z(),O===l&&(ge=!0);continue}if(ge===!0||O===l){for(J++;h()!==!0&&(O=z());){if(O===r){U=F.backslashes=!0,z();continue}if(O===l){J++;continue}if(ge!==!0&&O===o&&(O=z())===o){if(le=F.isBrace=!0,W=F.isGlob=!0,ne=!0,v===!0)continue;break}if(ge!==!0&&O===i){if(le=F.isBrace=!0,W=F.isGlob=!0,ne=!0,v===!0)continue;break}if(O===C&&(J--,J===0)){ge=!1,le=F.isBrace=!0,ne=!0;break}}if(v===!0)continue;break}if(O===s){if(A.push(k),g.push(F),F={value:"",depth:0,isGlob:!1},ne===!0)continue;if(ce===o&&k===K+1){K+=2;continue}ue=k+1;continue}if(f.noext!==!0&&(O===E||O===n||O===t||O===m||O===a)===!0&&ae()===u){if(W=F.isGlob=!0,Ee=F.isExtglob=!0,ne=!0,O===a&&k===K&&(we=!0),v===!0){for(;h()!==!0&&(O=z());){if(O===r){U=F.backslashes=!0,O=z();continue}if(O===S){W=F.isGlob=!0,ne=!0;break}}continue}break}if(O===t){if(ce===t&&(_e=F.isGlobstar=!0),W=F.isGlob=!0,ne=!0,v===!0)continue;break}if(O===m){if(W=F.isGlob=!0,ne=!0,v===!0)continue;break}if(O===c){for(;h()!==!0&&(D=z());){if(D===r){U=F.backslashes=!0,z();continue}if(D===w){he=F.isBracket=!0,W=F.isGlob=!0,ne=!0;break}}if(v===!0)continue;break}if(f.nonegate!==!0&&O===a&&k===K){me=F.negated=!0,K++;continue}if(f.noparen!==!0&&O===u){if(W=F.isGlob=!0,v===!0){for(;h()!==!0&&(O=z());){if(O===u){U=F.backslashes=!0,O=z();continue}if(O===S){ne=!0;break}}continue}break}if(W===!0){if(ne=!0,v===!0)continue;break}}f.noext===!0&&(Ee=!1,W=!1);let X=j,d="",p="";K>0&&(d=j.slice(0,K),j=j.slice(K),ue-=K),X&&W===!0&&ue>0?(X=j.slice(0,ue),p=j.slice(ue)):W===!0?(X="",p=j):X=j,X&&X!==""&&X!=="/"&&X!==j&&M(X.charCodeAt(X.length-1))&&(X=X.slice(0,-1)),f.unescape===!0&&(p&&(p=e.removeBackslashes(p)),X&&U===!0&&(X=e.removeBackslashes(X)));const fe={prefix:d,input:y,start:K,base:X,glob:p,isBrace:le,isBracket:he,isGlob:W,isExtglob:Ee,isGlobstar:_e,negated:me,negatedExtglob:we};if(f.tokens===!0&&(fe.maxDepth=0,M(O)||g.push(F),fe.tokens=g),f.parts===!0||f.tokens===!0){let D;for(let V=0;V<A.length;V++){const Se=D?D+1:K,pe=A[V],be=y.slice(Se,pe);f.tokens&&(V===0&&K!==0?(g[V].isPrefix=!0,g[V].value=d):g[V].value=be,N(g[V]),fe.maxDepth+=g[V].depth),(V!==0||be!=="")&&_.push(be),D=pe}if(D&&D+1<y.length){const V=y.slice(D+1);_.push(V),f.tokens&&(g[g.length-1].value=V,N(g[g.length-1]),fe.maxDepth+=g[g.length-1].depth)}fe.slashes=A,fe.parts=_}return fe},Rt}var xt,hn;function Rr(){if(hn)return xt;hn=1;const e=ht(),t=gt(),{MAX_LENGTH:n,POSIX_REGEX_SOURCE:r,REGEX_NON_SPECIAL_CHARS:i,REGEX_SPECIAL_CHARS_BACKREF:o,REPLACEMENTS:a}=e,s=(y,R)=>{if(typeof R.expandRange=="function")return R.expandRange(...y,R);y.sort();const f=`[${y.join("-")}]`;try{new RegExp(f)}catch{return y.map(v=>t.escapeRegex(v)).join("..")}return f},l=(y,R)=>`Missing ${y}: "${R}" - use "\\\\${R}" to match literal characters`,u=y=>{const R=[];let f=0,I=0,v=0,A="",g=!1;for(const _ of y){if(g===!0){A+=_,g=!1;continue}if(_==="\\"){A+=_,g=!0;continue}if(_==='"'){v=v===1?0:1,A+=_;continue}if(v===0){if(_==="[")f++;else if(_==="]"&&f>0)f--;else if(f===0){if(_==="(")I++;else if(_===")"&&I>0)I--;else if(_==="|"&&I===0){R.push(A),A="";continue}}}A+=_}return R.push(A),R},c=y=>{let R=!1;for(const f of y){if(R===!0){R=!1;continue}if(f==="\\"){R=!0;continue}if(/[?*+@!()[\]{}]/.test(f))return!1}return!0},E=y=>{let R=y.trim(),f=!0;for(;f===!0;)f=!1,/^@\([^\\()[\]{}|]+\)$/.test(R)&&(R=R.slice(2,-1),f=!0);if(c(R))return R.replace(/\\(.)/g,"$1")},m=y=>{const R=y.map(E).filter(Boolean);for(let f=0;f<R.length;f++)for(let I=f+1;I<R.length;I++){const v=R[f],A=R[I],g=v[0];if(!(!g||v!==g.repeat(v.length)||A!==g.repeat(A.length))&&(v===A||v.startsWith(A)||A.startsWith(v)))return!0}return!1},C=(y,R=!0)=>{if(y[0]!=="+"&&y[0]!=="*"||y[1]!=="(")return;let f=0,I=0,v=0,A=!1;for(let g=1;g<y.length;g++){const _=y[g];if(A===!0){A=!1;continue}if(_==="\\"){A=!0;continue}if(_==='"'){v=v===1?0:1;continue}if(v!==1){if(_==="["){f++;continue}if(_==="]"&&f>0){f--;continue}if(!(f>0)){if(_==="("){I++;continue}if(_===")"&&(I--,I===0))return R===!0&&g!==y.length-1?void 0:{type:y[0],body:y.slice(2,g),end:g}}}}},S=y=>`${y.length===1?t.escapeRegex(y[0]):`[${y.map(f=>t.escapeRegex(f)).join("")}]`}*`,w=y=>{let R=0;const f=[];for(;R<y.length;){const I=C(y.slice(R),!1);if(!I||I.type!=="*")return;const v=u(I.body).map(g=>g.trim());if(v.length!==1)return;const A=E(v[0]);if(!A||A.length!==1)return;f.push(A),R+=I.end+1}if(!(f.length<1))return f},M=y=>{let R=0,f=y.trim(),I=C(f);for(;I;)R++,f=I.body.trim(),I=C(f);return R},N=(y,R)=>{if(R.maxExtglobRecursion===!1)return{risky:!1};const f=typeof R.maxExtglobRecursion=="number"?R.maxExtglobRecursion:e.DEFAULT_MAX_EXTGLOB_RECURSION,I=u(y).map(_=>_.trim());if(I.length>1&&(I.some(_=>_==="")||I.some(_=>/^[*?]+$/.test(_))||m(I)))return{risky:!0};const v=[];let A=!1,g=!0;for(const _ of I){const j=w(_);if(j){A=!0,v.push(...j);continue}const k=E(_);if(k&&k.length===1){v.push(k);continue}if(g=!1,M(_)>f)return{risky:!0}}return A?g?{risky:!0,safeOutput:S([...new Set(v)])}:{risky:!0}:{risky:!1}},$=(y,R)=>{if(typeof y!="string")throw new TypeError("Expected a string");y=a[y]||y;const f={...R},I=typeof f.maxLength=="number"?Math.min(n,f.maxLength):n;let v=y.length;if(v>I)throw new SyntaxError(`Input length: ${v}, exceeds maximum allowed length: ${I}`);const A={type:"bos",value:"",output:f.prepend||""},g=[A],_=f.capture?"":"?:",j=e.globChars(f.windows),k=e.extglobChars(j),{DOT_LITERAL:K,PLUS_LITERAL:ue,SLASH_LITERAL:le,ONE_CHAR:he,DOTS_SLASH:W,NO_DOT:Ee,NO_DOT_SLASH:_e,NO_DOTS_SLASH:ge,QMARK:U,QMARK_NO_DOT:me,STAR:we,START_ANCHOR:ne}=j,J=b=>`(${_}(?:(?!${ne}${b.dot?W:K}).)*?)`,ce=f.dot?"":Ee,O=f.dot?U:me;let F=f.bash===!0?J(f):we;f.capture&&(F=`(${F})`),typeof f.noext=="boolean"&&(f.noextglob=f.noext);const h={input:y,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};y=t.removePrefix(y,h),v=y.length;const ae=[],z=[],X=[];let d=A,p;const fe=()=>h.index===v-1,D=h.peek=(b=1)=>y[h.index+b],V=h.advance=()=>y[++h.index]||"",Se=()=>y.slice(h.index+1),pe=(b="",Y=0)=>{h.consumed+=b,h.index+=Y},be=b=>{h.output+=b.output!=null?b.output:b.value,pe(b.value)},Tr=()=>{let b=1;for(;D()==="!"&&(D(2)!=="("||D(3)==="?");)V(),h.start++,b++;return b%2===0?!1:(h.negated=!0,h.start++,!0)},rt=b=>{h[b]++,X.push(b)},ve=b=>{h[b]--,X.pop()},L=b=>{if(d.type==="globstar"){const Y=h.braces>0&&(b.type==="comma"||b.type==="brace"),T=b.extglob===!0||ae.length&&(b.type==="pipe"||b.type==="paren");b.type!=="slash"&&b.type!=="paren"&&!Y&&!T&&(h.output=h.output.slice(0,-d.output.length),d.type="star",d.value="*",d.output=F,h.output+=d.output)}if(ae.length&&b.type!=="paren"&&(ae[ae.length-1].inner+=b.value),(b.value||b.output)&&be(b),d&&d.type==="text"&&b.type==="text"){d.output=(d.output||d.value)+b.value,d.value+=b.value;return}b.prev=d,g.push(b),d=b},it=(b,Y)=>{const T={...k[Y],conditions:1,inner:""};T.prev=d,T.parens=h.parens,T.output=h.output,T.startIndex=h.index,T.tokensIndex=g.length;const P=(f.capture?"(":"")+T.open;rt("parens"),L({type:b,value:Y,output:h.output?"":he}),L({type:"paren",extglob:!0,value:V(),output:P}),ae.push(T)},br=b=>{const Y=y.slice(b.startIndex,h.index+1),T=y.slice(b.startIndex+2,h.index),P=N(T,f);if((b.type==="plus"||b.type==="star")&&P.risky){const q=P.safeOutput?(b.output?"":he)+(f.capture?`(${P.safeOutput})`:P.safeOutput):void 0,Ae=g[b.tokensIndex];Ae.type="text",Ae.value=Y,Ae.output=q||t.escapeRegex(Y);for(let ye=b.tokensIndex+1;ye<g.length;ye++)g[ye].value="",g[ye].output="",delete g[ye].suffix;h.output=b.output+Ae.output,h.backtrack=!0,L({type:"paren",extglob:!0,value:p,output:""}),ve("parens");return}let G=b.close+(f.capture?")":""),Q;if(b.type==="negate"){let q=F;if(b.inner&&b.inner.length>1&&b.inner.includes("/")&&(q=J(f)),(q!==F||fe()||/^\)+$/.test(Se()))&&(G=b.close=`)$))${q}`),b.inner.includes("*")&&(Q=Se())&&/^\.[^\\/.]+$/.test(Q)){const Ae=$(Q,{...R,fastpaths:!1}).output;G=b.close=`)${Ae})${q})`}b.prev.type==="bos"&&(h.negatedExtglob=!0)}L({type:"paren",extglob:!0,value:p,output:G}),ve("parens")};if(f.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(y)){let b=!1,Y=y.replace(o,(T,P,G,Q,q,Ae)=>Q==="\\"?(b=!0,T):Q==="?"?P?P+Q+(q?U.repeat(q.length):""):Ae===0?O+(q?U.repeat(q.length):""):U.repeat(G.length):Q==="."?K.repeat(G.length):Q==="*"?P?P+Q+(q?F:""):F:P?T:`\\${T}`);return b===!0&&(f.unescape===!0?Y=Y.replace(/\\/g,""):Y=Y.replace(/\\+/g,T=>T.length%2===0?"\\\\":T?"\\":"")),Y===y&&f.contains===!0?(h.output=y,h):(h.output=t.wrapOutput(Y,h,R),h)}for(;!fe();){if(p=V(),p==="\0")continue;if(p==="\\"){const T=D();if(T==="/"&&f.bash!==!0||T==="."||T===";")continue;if(!T){p+="\\",L({type:"text",value:p});continue}const P=/^\\+/.exec(Se());let G=0;if(P&&P[0].length>2&&(G=P[0].length,h.index+=G,G%2!==0&&(p+="\\")),f.unescape===!0?p=V():p+=V(),h.brackets===0){L({type:"text",value:p});continue}}if(h.brackets>0&&(p!=="]"||d.value==="["||d.value==="[^")){if(f.posix!==!1&&p===":"){const T=d.value.slice(1);if(T.includes("[")&&(d.posix=!0,T.includes(":"))){const P=d.value.lastIndexOf("["),G=d.value.slice(0,P),Q=d.value.slice(P+2),q=r[Q];if(q){d.value=G+q,h.backtrack=!0,V(),!A.output&&g.indexOf(d)===1&&(A.output=he);continue}}}(p==="["&&D()!==":"||p==="-"&&D()==="]")&&(p=`\\${p}`),p==="]"&&(d.value==="["||d.value==="[^")&&(p=`\\${p}`),f.posix===!0&&p==="!"&&d.value==="["&&(p="^"),d.value+=p,be({value:p});continue}if(h.quotes===1&&p!=='"'){p=t.escapeRegex(p),d.value+=p,be({value:p});continue}if(p==='"'){h.quotes=h.quotes===1?0:1,f.keepQuotes===!0&&L({type:"text",value:p});continue}if(p==="("){rt("parens"),L({type:"paren",value:p});continue}if(p===")"){if(h.parens===0&&f.strictBrackets===!0)throw new SyntaxError(l("opening","("));const T=ae[ae.length-1];if(T&&h.parens===T.parens+1){br(ae.pop());continue}L({type:"paren",value:p,output:h.parens?")":"\\)"}),ve("parens");continue}if(p==="["){if(f.nobracket===!0||!Se().includes("]")){if(f.nobracket!==!0&&f.strictBrackets===!0)throw new SyntaxError(l("closing","]"));p=`\\${p}`}else rt("brackets");L({type:"bracket",value:p});continue}if(p==="]"){if(f.nobracket===!0||d&&d.type==="bracket"&&d.value.length===1){L({type:"text",value:p,output:`\\${p}`});continue}if(h.brackets===0){if(f.strictBrackets===!0)throw new SyntaxError(l("opening","["));L({type:"text",value:p,output:`\\${p}`});continue}ve("brackets");const T=d.value.slice(1);if(d.posix!==!0&&T[0]==="^"&&!T.includes("/")&&(p=`/${p}`),d.value+=p,be({value:p}),f.literalBrackets===!1||t.hasRegexChars(T))continue;const P=t.escapeRegex(d.value);if(h.output=h.output.slice(0,-d.value.length),f.literalBrackets===!0){h.output+=P,d.value=P;continue}d.value=`(${_}${P}|${d.value})`,h.output+=d.value;continue}if(p==="{"&&f.nobrace!==!0){rt("braces");const T={type:"brace",value:p,output:"(",outputIndex:h.output.length,tokensIndex:h.tokens.length};z.push(T),L(T);continue}if(p==="}"){const T=z[z.length-1];if(f.nobrace===!0||!T){L({type:"text",value:p,output:p});continue}let P=")";if(T.dots===!0){const G=g.slice(),Q=[];for(let q=G.length-1;q>=0&&(g.pop(),G[q].type!=="brace");q--)G[q].type!=="dots"&&Q.unshift(G[q].value);P=s(Q,f),h.backtrack=!0}if(T.comma!==!0&&T.dots!==!0){const G=h.output.slice(0,T.outputIndex),Q=h.tokens.slice(T.tokensIndex);T.value=T.output="\\{",p=P="\\}",h.output=G;for(const q of Q)h.output+=q.output||q.value}L({type:"brace",value:p,output:P}),ve("braces"),z.pop();continue}if(p==="|"){ae.length>0&&ae[ae.length-1].conditions++,L({type:"text",value:p});continue}if(p===","){let T=p;const P=z[z.length-1];P&&X[X.length-1]==="braces"&&(P.comma=!0,T="|"),L({type:"comma",value:p,output:T});continue}if(p==="/"){if(d.type==="dot"&&h.index===h.start+1){h.start=h.index+1,h.consumed="",h.output="",g.pop(),d=A;continue}L({type:"slash",value:p,output:le});continue}if(p==="."){if(h.braces>0&&d.type==="dot"){d.value==="."&&(d.output=K);const T=z[z.length-1];d.type="dots",d.output+=p,d.value+=p,T.dots=!0;continue}if(h.braces+h.parens===0&&d.type!=="bos"&&d.type!=="slash"){L({type:"text",value:p,output:K});continue}L({type:"dot",value:p,output:K});continue}if(p==="?"){if(!(d&&d.value==="(")&&f.noextglob!==!0&&D()==="("&&D(2)!=="?"){it("qmark",p);continue}if(d&&d.type==="paren"){const P=D();let G=p;(d.value==="("&&!/[!=<:]/.test(P)||P==="<"&&!/<([!=]|\w+>)/.test(Se()))&&(G=`\\${p}`),L({type:"text",value:p,output:G});continue}if(f.dot!==!0&&(d.type==="slash"||d.type==="bos")){L({type:"qmark",value:p,output:me});continue}L({type:"qmark",value:p,output:U});continue}if(p==="!"){if(f.noextglob!==!0&&D()==="("&&(D(2)!=="?"||!/[!=<:]/.test(D(3)))){it("negate",p);continue}if(f.nonegate!==!0&&h.index===0){Tr();continue}}if(p==="+"){if(f.noextglob!==!0&&D()==="("&&D(2)!=="?"){it("plus",p);continue}if(d&&d.value==="("||f.regex===!1){L({type:"plus",value:p,output:ue});continue}if(d&&(d.type==="bracket"||d.type==="paren"||d.type==="brace")||h.parens>0){L({type:"plus",value:p});continue}L({type:"plus",value:ue});continue}if(p==="@"){if(f.noextglob!==!0&&D()==="("&&D(2)!=="?"){L({type:"at",extglob:!0,value:p,output:""});continue}L({type:"text",value:p});continue}if(p!=="*"){(p==="$"||p==="^")&&(p=`\\${p}`);const T=i.exec(Se());T&&(p+=T[0],h.index+=T[0].length),L({type:"text",value:p});continue}if(d&&(d.type==="globstar"||d.star===!0)){d.type="star",d.star=!0,d.value+=p,d.output=F,h.backtrack=!0,h.globstar=!0,pe(p);continue}let b=Se();if(f.noextglob!==!0&&/^\([^?]/.test(b)){it("star",p);continue}if(d.type==="star"){if(f.noglobstar===!0){pe(p);continue}const T=d.prev,P=T.prev,G=T.type==="slash"||T.type==="bos",Q=P&&(P.type==="star"||P.type==="globstar");if(f.bash===!0&&(!G||b[0]&&b[0]!=="/")){L({type:"star",value:p,output:""});continue}const q=h.braces>0&&(T.type==="comma"||T.type==="brace"),Ae=ae.length&&(T.type==="pipe"||T.type==="paren");if(!G&&T.type!=="paren"&&!q&&!Ae){L({type:"star",value:p,output:""});continue}for(;b.slice(0,3)==="/**";){const ye=y[h.index+4];if(ye&&ye!=="/")break;b=b.slice(3),pe("/**",3)}if(T.type==="bos"&&fe()){d.type="globstar",d.value+=p,d.output=J(f),h.output=d.output,h.globstar=!0,pe(p);continue}if(T.type==="slash"&&T.prev.type!=="bos"&&!Q&&fe()){h.output=h.output.slice(0,-(T.output+d.output).length),T.output=`(?:${T.output}`,d.type="globstar",d.output=J(f)+(f.strictSlashes?")":"|$)"),d.value+=p,h.globstar=!0,h.output+=T.output+d.output,pe(p);continue}if(T.type==="slash"&&T.prev.type!=="bos"&&b[0]==="/"){const ye=b[1]!==void 0?"|$":"";h.output=h.output.slice(0,-(T.output+d.output).length),T.output=`(?:${T.output}`,d.type="globstar",d.output=`${J(f)}${le}|${le}${ye})`,d.value+=p,h.output+=T.output+d.output,h.globstar=!0,pe(p+V()),L({type:"slash",value:"/",output:""});continue}if(T.type==="bos"&&b[0]==="/"){d.type="globstar",d.value+=p,d.output=`(?:^|${le}|${J(f)}${le})`,h.output=d.output,h.globstar=!0,pe(p+V()),L({type:"slash",value:"/",output:""});continue}h.output=h.output.slice(0,-d.output.length),d.type="globstar",d.output=J(f),d.value+=p,h.output+=d.output,h.globstar=!0,pe(p);continue}const Y={type:"star",value:p,output:F};if(f.bash===!0){Y.output=".*?",(d.type==="bos"||d.type==="slash")&&(Y.output=ce+Y.output),L(Y);continue}if(d&&(d.type==="bracket"||d.type==="paren")&&f.regex===!0){Y.output=p,L(Y);continue}(h.index===h.start||d.type==="slash"||d.type==="dot")&&(d.type==="dot"?(h.output+=_e,d.output+=_e):f.dot===!0?(h.output+=ge,d.output+=ge):(h.output+=ce,d.output+=ce),D()!=="*"&&(h.output+=he,d.output+=he)),L(Y)}for(;h.brackets>0;){if(f.strictBrackets===!0)throw new SyntaxError(l("closing","]"));h.output=t.escapeLast(h.output,"["),ve("brackets")}for(;h.parens>0;){if(f.strictBrackets===!0)throw new SyntaxError(l("closing",")"));h.output=t.escapeLast(h.output,"("),ve("parens")}for(;h.braces>0;){if(f.strictBrackets===!0)throw new SyntaxError(l("closing","}"));h.output=t.escapeLast(h.output,"{"),ve("braces")}if(f.strictSlashes!==!0&&(d.type==="star"||d.type==="bracket")&&L({type:"maybe_slash",value:"",output:`${le}?`}),h.backtrack===!0){h.output="";for(const b of h.tokens)h.output+=b.output!=null?b.output:b.value,b.suffix&&(h.output+=b.suffix)}return h};return $.fastpaths=(y,R)=>{const f={...R},I=typeof f.maxLength=="number"?Math.min(n,f.maxLength):n,v=y.length;if(v>I)throw new SyntaxError(`Input length: ${v}, exceeds maximum allowed length: ${I}`);y=a[y]||y;const{DOT_LITERAL:A,SLASH_LITERAL:g,ONE_CHAR:_,DOTS_SLASH:j,NO_DOT:k,NO_DOTS:K,NO_DOTS_SLASH:ue,STAR:le,START_ANCHOR:he}=e.globChars(f.windows),W=f.dot?K:k,Ee=f.dot?ue:k,_e=f.capture?"":"?:",ge={negated:!1,prefix:""};let U=f.bash===!0?".*?":le;f.capture&&(U=`(${U})`);const me=ce=>ce.noglobstar===!0?U:`(${_e}(?:(?!${he}${ce.dot?j:A}).)*?)`,we=ce=>{switch(ce){case"*":return`${W}${_}${U}`;case".*":return`${A}${_}${U}`;case"*.*":return`${W}${U}${A}${_}${U}`;case"*/*":return`${W}${U}${g}${_}${Ee}${U}`;case"**":return W+me(f);case"**/*":return`(?:${W}${me(f)}${g})?${Ee}${_}${U}`;case"**/*.*":return`(?:${W}${me(f)}${g})?${Ee}${U}${A}${_}${U}`;case"**/.*":return`(?:${W}${me(f)}${g})?${A}${_}${U}`;default:{const O=/^(.*?)\.(\w+)$/.exec(ce);if(!O)return;const F=we(O[1]);return F?F+A+O[2]:void 0}}},ne=t.removePrefix(y,ge);let J=we(ne);return J&&f.strictSlashes!==!0&&(J+=`${g}?`),J},xt=$,xt}var _t,gn;function xr(){if(gn)return _t;gn=1;const e=vr(),t=Rr(),n=gt(),r=ht(),i=a=>a&&typeof a=="object"&&!Array.isArray(a),o=(a,s,l=!1)=>{if(Array.isArray(a)){const M=a.map($=>o($,s,l));return $=>{for(const y of M){const R=y($);if(R)return R}return!1}}const u=i(a)&&a.tokens&&a.input;if(a===""||typeof a!="string"&&!u)throw new TypeError("Expected pattern to be a non-empty string");const c=s||{},E=c.windows,m=u?o.compileRe(a,s):o.makeRe(a,s,!1,!0),C=m.state;delete m.state;let S=()=>!1;if(c.ignore){const M={...s,ignore:null,onMatch:null,onResult:null};S=o(c.ignore,M,l)}const w=(M,N=!1)=>{const{isMatch:$,match:y,output:R}=o.test(M,m,s,{glob:a,posix:E}),f={glob:a,state:C,regex:m,posix:E,input:M,output:R,match:y,isMatch:$};return typeof c.onResult=="function"&&c.onResult(f),$===!1?(f.isMatch=!1,N?f:!1):S(M)?(typeof c.onIgnore=="function"&&c.onIgnore(f),f.isMatch=!1,N?f:!1):(typeof c.onMatch=="function"&&c.onMatch(f),N?f:!0)};return l&&(w.state=C),w};return o.test=(a,s,l,{glob:u,posix:c}={})=>{if(typeof a!="string")throw new TypeError("Expected input to be a string");if(a==="")return{isMatch:!1,output:""};const E=l||{},m=E.format||(c?n.toPosixSlashes:null);let C=a===u,S=C&&m?m(a):a;return C===!1&&(S=m?m(a):a,C=S===u),(C===!1||E.capture===!0)&&(E.matchBase===!0||E.basename===!0?C=o.matchBase(a,s,l,c):C=s.exec(S)),{isMatch:!!C,match:C,output:S}},o.matchBase=(a,s,l,u=l&&l.windows)=>(s instanceof RegExp?s:o.makeRe(s,l)).test(n.basename(a,{windows:u})),o.isMatch=(a,s,l)=>o(s,l)(a),o.parse=(a,s)=>Array.isArray(a)?a.map(l=>o.parse(l,s)):t(a,{...s,fastpaths:!1}),o.scan=(a,s)=>e(a,s),o.compileRe=(a,s,l=!1,u=!1)=>{if(l===!0)return a.output;const c=s||{},E=c.contains?"":"^",m=c.contains?"":"$";let C=`${E}(?:${a.output})${m}`;a&&a.negated===!0&&(C=`^(?!${C}).*$`);const S=o.toRegex(C,s);return u===!0&&(S.state=a),S},o.makeRe=(a,s={},l=!1,u=!1)=>{if(!a||typeof a!="string")throw new TypeError("Expected a non-empty string");let c={negated:!1,fastpaths:!0};return s.fastpaths!==!1&&(a[0]==="."||a[0]==="*")&&(c.output=t.fastpaths(a,s)),c.output||(c=t(a,s)),o.compileRe(c,s,l,u)},o.toRegex=(a,s)=>{try{const l=s||{};return new RegExp(a,l.flags||(l.nocase?"i":""))}catch(l){if(s&&s.debug===!0)throw l;return/$^/}},o.constants=r,_t=o,_t}var wt,mn;function _r(){if(mn)return wt;mn=1;const e=xr(),t=gt();function n(r,i,o=!1){return i&&(i.windows===null||i.windows===void 0)&&(i={...i,windows:t.isWindows()}),e(r,i,o)}return Object.assign(n,e),wt=n,wt}var wr=_r();const Ir=se.getDefaultExportFromCjs(wr),Mn=typeof window<"u"||typeof process>"u"||process?.platform==="browser",Bn=Mn?{}:process.env||{};async function Dn(e,t){const n={};for(const i of t.headers)Nr(e,i.matches)&&(n[i.name]=i.envVariable!==void 0?Bn[i.envVariable]||"":i.value);const r=await(t.customFetch||fetch)(e,{headers:n});if(!r.ok)throw new Error(`Failed to load ${e}: ${r.status} ${r.statusText}`);return{body:await r.text(),mimeType:r.headers.get("content-type")}}function Nr(e,t){return t.match(/^https?:\/\//)||(e=e.replace(/^https?:\/\//,"")),Ir.isMatch(e,t)}function Or(e,t={}){return{name:`${e}List`,properties:{},items:e,...t}}function $r(e,t={}){return{name:`${e}Map`,properties:{},additionalProperties:()=>e,...t}}const We={name:"SpecExtension",properties:{},additionalProperties:{resolvable:!0}};function kr(e,t={}){const n={};for(const o of Object.keys(e))n[o]={...e[o],name:o};for(const o of Object.values(n))r(o);return n.SpecExtension=We,n;function r(o){if(o.additionalProperties&&(o.additionalProperties=i(o.additionalProperties)),o.items&&(o.items=i(o.items)),o.properties){const a={};for(const[s,l]of Object.entries(o.properties))a[s]=i(l),t.doNotResolveExamples&&l&&l.isExample&&(a[s]={...l,resolvable:!1});o.properties=a}}function i(o){if(typeof o=="string"){if(!n[o])throw new Error(`Unknown type name found: ${o}`);return n[o]}else return typeof o=="function"?(a,s)=>i(o(a,s)):Ve(o)?(o={...o},r(o),o):o?.directResolveAs!==void 0?{...o,directResolveAs:i(o.directResolveAs)??void 0}:o}}function Ve(e){return typeof e?.name=="string"}function Re(e,t){return e===""&&(e="#/"),e[e.length-1]==="/"?e+t:e+"/"+t}function Xe(e){return se.isPlainObject(e)&&typeof e.$ref=="string"}function Un(e){return Xe(e)&&Object.keys(e).length>1}function qn(e){return se.isPlainObject(e)&&typeof e.externalValue=="string"}class mt{source;pointer;constructor(t,n){this.source=t,this.pointer=n}child(t){return new mt(this.source,Re(this.pointer,(Array.isArray(t)?t:[t]).map(Ne).join("/")))}key(){return{...this,reportOnKey:!0}}get absolutePointer(){return this.source.absoluteRef+(this.pointer==="#/"?"":this.pointer)}}function Kn(e){const t=e.indexOf("~")===-1?e:e.replaceAll("~1","/").replaceAll("~0","~");try{return decodeURIComponent(t)}catch{return t}}function Ne(e){return typeof e=="number"||e.indexOf("/")===-1&&e.indexOf("~")===-1?e:e.replaceAll("~","~0").replaceAll("/","~1")}function Gn(e){const[t,n=""]=e.split("#/");return{uri:(t.endsWith("#")?t.slice(0,-1):t)||null,pointer:Yn(n)}}function Yn(e){return e.split("/").map(Kn).filter(Hn)}function Lr(e){const t=e.split("/");return t[t.length-1]}function Pr(e){const t=e.split(/[\/\\]/);return t[t.length-1].replace(/\.[^.]+$/,"")}function Oe(e){return e.startsWith("http://")||e.startsWith("https://")||e.startsWith("file://")||e.startsWith("data:")}function Fr(e){return se.pathBrowserifyExports.extname(e)?Oe(e)?e.substring(0,e.lastIndexOf("/")):se.pathBrowserifyExports.dirname(e):e}function Hr(e,t){return Oe(e)?new URL(t,e.endsWith("/")?e:`${e}/`).href:se.pathBrowserifyExports.resolve(e,t)}function Mr(e){return typeof e=="string"&&(e.startsWith("#")||Oe(e)||e.startsWith("./")||e.startsWith("../")||e.indexOf("/")>-1||/\.(ya?ml|json)$/i.test(e))}function Br(e){return/^#[A-Za-z][A-Za-z0-9\-_:.]*$/.test(e)}function Dr(e,t,n){if(!se.isPlainObject(t.node)&&n.parent){n.parent[n.key]=t.node;return}delete e.$ref,se.isPlainObject(t.node)&&Object.assign(e,{...t.node,...e})}var H=Symbol("NOT_RESOLVED"),Qt=Symbol("MERGE_KEY");function ee(e,t){return{tagName:e,nodeKind:"scalar",implicit:t.implicit??!1,matchByTagPrefix:t.matchByTagPrefix??!1,implicitFirstChars:t.implicitFirstChars??null,resolve:t.resolve,identify:t.identify??null,represent:t.represent??(n=>String(n)),representTagName:t.representTagName??null}}function Zt(e,t){const n=t.finalize===void 0;return{tagName:e,nodeKind:"sequence",implicit:!1,matchByTagPrefix:t.matchByTagPrefix??!1,create:t.create,addItem:t.addItem,finalize:t.finalize??(r=>r),carrierIsResult:n,identify:t.identify??null,represent:t.represent??(r=>r),representTagName:t.representTagName??null}}function At(e,t){const n=t.finalize===void 0;return{tagName:e,nodeKind:"mapping",implicit:!1,matchByTagPrefix:t.matchByTagPrefix??!1,create:t.create,addPair:t.addPair,has:t.has,keys:t.keys,get:t.get,finalize:t.finalize??(r=>r),carrierIsResult:n,identify:t.identify??null,represent:t.represent??(r=>r),representTagName:t.representTagName??null}}var Ur=ee("tag:yaml.org,2002:str",{resolve:e=>e,identify:e=>typeof e=="string"}),qr=["","~","null","Null","NULL"],Kr=ee("tag:yaml.org,2002:null",{implicit:!0,implicitFirstChars:["","~","n","N"],resolve:e=>qr.indexOf(e)!==-1?null:H,identify:e=>e===null,represent:()=>"null"}),Gr=ee("tag:yaml.org,2002:null",{implicit:!0,implicitFirstChars:["n"],resolve:(e,t)=>e==="null"||t&&e===""?null:H,identify:e=>e===null,represent:()=>"null"}),Yr=["","~","null","Null","NULL"],jr=ee("tag:yaml.org,2002:null",{implicit:!0,implicitFirstChars:["","~","n","N"],resolve:e=>Yr.indexOf(e)!==-1?null:H,identify:e=>e===null,represent:()=>"null"}),Wr=["true","True","TRUE"],Vr=["false","False","FALSE"],Xr=ee("tag:yaml.org,2002:bool",{implicit:!0,implicitFirstChars:["t","T","f","F"],resolve:e=>Wr.indexOf(e)!==-1?!0:Vr.indexOf(e)!==-1?!1:H,identify:e=>Object.prototype.toString.call(e)==="[object Boolean]",represent:e=>e?"true":"false"}),zr=["true"],Qr=["false"],Zr=ee("tag:yaml.org,2002:bool",{implicit:!0,implicitFirstChars:["t","f"],resolve:e=>zr.indexOf(e)!==-1?!0:Qr.indexOf(e)!==-1?!1:H,identify:e=>Object.prototype.toString.call(e)==="[object Boolean]",represent:e=>e?"true":"false"}),Jr=["true","True","TRUE","y","Y","yes","Yes","YES","on","On","ON"],ei=["false","False","FALSE","n","N","no","No","NO","off","Off","OFF"],ti=ee("tag:yaml.org,2002:bool",{implicit:!0,implicitFirstChars:["y","Y","n","N","t","T","f","F","o","O"],resolve:e=>Jr.indexOf(e)!==-1?!0:ei.indexOf(e)!==-1?!1:H,identify:e=>Object.prototype.toString.call(e)==="[object Boolean]",represent:e=>e?"true":"false"}),ni=new RegExp("^(?:0o[0-7]+|0x[0-9a-fA-F]+|[-+]?[0-9]+)$"),ri=new RegExp("^(?:[-+]?0b[0-1]+|[-+]?0o[0-7]+|[-+]?0x[0-9a-fA-F]+|[-+]?[0-9]+)$");function ii(e){let t=e,n=1;return(t[0]==="-"||t[0]==="+")&&(t[0]==="-"&&(n=-1),t=t.slice(1)),t.startsWith("0b")?n*parseInt(t.slice(2),2):t.startsWith("0o")?n*parseInt(t.slice(2),8):t.startsWith("0x")?n*parseInt(t.slice(2),16):n*parseInt(t,10)}function oi(e,t){if(t){if(!ri.test(e))return H}else if(!ni.test(e))return H;const n=ii(e);return Number.isFinite(n)?n:H}var jn=ee("tag:yaml.org,2002:int",{implicit:!0,implicitFirstChars:["-","+",..."0123456789"],resolve:oi,identify:e=>Number.isInteger(e)&&!Object.is(e,-0)&&e.toString(10).indexOf("e")<0,represent:e=>e.toString(10)}),ai=new RegExp("^-?(?:0|[1-9][0-9]*)$"),si=new RegExp("^(?:[-+]?0b[0-1]+|[-+]?0o[0-7]+|[-+]?0x[0-9a-fA-F]+|[-+]?[0-9]+)$");function li(e){let t=e,n=1;return(t[0]==="-"||t[0]==="+")&&(t[0]==="-"&&(n=-1),t=t.slice(1)),t.startsWith("0b")?n*parseInt(t.slice(2),2):t.startsWith("0o")?n*parseInt(t.slice(2),8):t.startsWith("0x")?n*parseInt(t.slice(2),16):n*parseInt(t,10)}function ci(e,t){if(t){if(!si.test(e))return H}else if(!ai.test(e))return H;const n=li(e);return Number.isFinite(n)?n:H}var ui=ee("tag:yaml.org,2002:int",{implicit:!0,implicitFirstChars:["-",..."0123456789"],resolve:ci,identify:e=>Number.isInteger(e)&&!Object.is(e,-0)&&e.toString(10).indexOf("e")<0,represent:e=>e.toString(10)}),fi=new RegExp("^(?:[-+]?0b[0-1_]+|[-+]?0[0-7_]+|[-+]?0x[0-9a-fA-F_]+|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+|[-+]?(?:0|[1-9][0-9_]*))$");function pi(e){let t=e.replace(/_/g,""),n=1;if((t[0]==="-"||t[0]==="+")&&(t[0]==="-"&&(n=-1),t=t.slice(1)),t.startsWith("0b"))return n*parseInt(t.slice(2),2);if(t.startsWith("0x"))return n*parseInt(t.slice(2),16);if(t.includes(":")){let r=0;for(const i of t.split(":"))r=r*60+Number(i);return n*r}return t!=="0"&&t[0]==="0"?n*parseInt(t,8):n*parseInt(t,10)}function di(e){if(!fi.test(e))return H;const t=pi(e);return Number.isFinite(t)?t:H}var Pt=ee("tag:yaml.org,2002:int",{implicit:!0,implicitFirstChars:["-","+",..."0123456789"],resolve:di,identify:e=>Number.isInteger(e)&&!Object.is(e,-0)&&e.toString(10).indexOf("e")<0,represent:e=>e.toString(10)}),hi=new RegExp("^(?:[-+]?[0-9]+(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|[-+]?\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),gi=new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function mi(e){if(!hi.test(e))return H;let t=e.toLowerCase();const n=t[0]==="-"?-1:1;if("+-".includes(t[0])&&(t=t.slice(1)),t===".inf")return n===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY;if(t===".nan")return NaN;const r=n*parseFloat(t);return Number.isFinite(r)||gi.test(e)?r:H}function Ai(e){if(isNaN(e))return".nan";if(e===Number.POSITIVE_INFINITY)return".inf";if(e===Number.NEGATIVE_INFINITY)return"-.inf";if(Object.is(e,-0))return"-0.0";const t=e.toString(10);return/^[-+]?[0-9]+e/.test(t)?t.replace("e",".e"):t}var Wn=ee("tag:yaml.org,2002:float",{implicit:!0,implicitFirstChars:["-","+",".",..."0123456789"],resolve:mi,identify:e=>typeof e=="number"&&(!Number.isInteger(e)||Object.is(e,-0)||e.toString(10).indexOf("e")>=0),represent:Ai}),yi=new RegExp("^-?(?:0|[1-9][0-9]*)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$"),Ei=new RegExp("^(?:[-+]?[0-9]+(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|[-+]?\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function Si(e,t){if(t){if(!Ei.test(e))return H;let r=e.toLowerCase();const i=r[0]==="-"?-1:1;if("+-".includes(r[0])&&(r=r.slice(1)),r===".inf")return i===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY;if(r===".nan")return NaN;const o=i*parseFloat(r);return Number.isFinite(o)?o:H}if(!yi.test(e))return H;const n=Number(e);return Number.isFinite(n)?n:H}function Ci(e){if(isNaN(e))return".nan";if(e===Number.POSITIVE_INFINITY)return".inf";if(e===Number.NEGATIVE_INFINITY)return"-.inf";if(Object.is(e,-0))return"-0.0";const t=e.toString(10);return/^[-+]?[0-9]+e/.test(t)?t.replace("e",".e"):t}var Ti=ee("tag:yaml.org,2002:float",{implicit:!0,implicitFirstChars:["-",..."0123456789"],resolve:Si,identify:e=>typeof e=="number"&&(!Number.isInteger(e)||Object.is(e,-0)||e.toString(10).indexOf("e")>=0),represent:Ci}),bi=new RegExp("^(?:[-+]?(?:(?:[0-9][0-9_]*)?\\.[0-9_]*)(?:[eE][-+][0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),vi=new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function Ri(e){if(!bi.test(e))return H;let t=e.toLowerCase().replace(/_/g,"");const n=t[0]==="-"?-1:1;if("+-".includes(t[0])&&(t=t.slice(1)),t===".inf")return n===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY;if(t===".nan")return NaN;let r=0;if(t.includes(":")){for(const i of t.split(":"))r=r*60+Number(i);r*=n}else r=n*parseFloat(t);return Number.isFinite(r)||vi.test(e)?r:H}function xi(e){if(isNaN(e))return".nan";if(e===Number.POSITIVE_INFINITY)return".inf";if(e===Number.NEGATIVE_INFINITY)return"-.inf";if(Object.is(e,-0))return"-0.0";const t=e.toString(10);return/^[-+]?[0-9]+e/.test(t)?t.replace("e",".e"):t}var Ft=ee("tag:yaml.org,2002:float",{implicit:!0,implicitFirstChars:["-","+",".",..."0123456789"],resolve:Ri,identify:e=>typeof e=="number"&&(!Number.isInteger(e)||Object.is(e,-0)||e.toString(10).indexOf("e")>=0),represent:xi}),Vn=ee("tag:yaml.org,2002:merge",{implicit:!0,implicitFirstChars:["<"],resolve:(e,t)=>e==="<<"||t&&e===""?Qt:H}),_i=/^[A-Za-z0-9+/]*={0,2}$/;function wi(e){const t=e.replace(/\s/g,"");if(t.length%4!==0||!_i.test(t))return H;const n=atob(t),r=new Uint8Array(n.length);for(let i=0;i<n.length;i++)r[i]=n.charCodeAt(i);return r}function Ii(e){let t="";for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return btoa(t)}var Xn=ee("tag:yaml.org,2002:binary",{resolve:wi,identify:e=>Object.prototype.toString.call(e)==="[object Uint8Array]",represent:Ii}),Ni=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Oi=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function An(e,t,n,r=0,i=0,o=0,a=0){const s=new Date(Date.UTC(e,t,n,r,i,o,a));return s.setUTCFullYear(e,t,n),s}function $i(e){let t=Ni.exec(e);if(t===null&&(t=Oi.exec(e)),t===null)return H;const n=+t[1],r=+t[2]-1,i=+t[3];if(!t[4]){const c=An(n,r,i);return c.getUTCFullYear()!==n||c.getUTCMonth()!==r||c.getUTCDate()!==i?H:c}const o=+t[4],a=+t[5],s=+t[6];let l=0;if(o>23||a>59||s>59)return H;if(t[7]){let c=t[7].slice(0,3);for(;c.length<3;)c+="0";l=+c}const u=An(n,r,i,o,a,s,l);if(u.getUTCFullYear()!==n||u.getUTCMonth()!==r||u.getUTCDate()!==i)return H;if(t[9]){const c=+t[10],E=+(t[11]||0);if(c>23||E>59)return H;const m=(c*60+E)*6e4;u.setTime(u.getTime()-(t[9]==="-"?-m:m))}return u}var ki=ee("tag:yaml.org,2002:timestamp",{implicit:!0,implicitFirstChars:[..."0123456789"],resolve:$i,identify:e=>e instanceof Date,represent:e=>e.toISOString()}),Li=Zt("tag:yaml.org,2002:seq",{create:()=>[],addItem:(e,t)=>{e.push(t)},identify:Array.isArray});function yt(e){if(e===null||typeof e!="object"||Array.isArray(e))return!1;const t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function Ht(e,t){const n={};for(const r of t)e[r]!==void 0&&(n[r]=e[r]);return n}var zn=Zt("tag:yaml.org,2002:omap",{create:()=>({list:[],seen:new Set}),addItem:(e,t)=>{let n;if(t instanceof Map){if(t.size!==1)return"cannot resolve an ordered map item";n=t.keys().next().value}else if(yt(t)){const r=Object.keys(t);if(r.length!==1)return"cannot resolve an ordered map item";n=r[0]}else return"cannot resolve an ordered map item";return e.seen.has(n)?"duplicate key in ordered map":(e.seen.add(n),e.list.push(t),"")},finalize:e=>e.list}),Qn=Zt("tag:yaml.org,2002:pairs",{create:()=>[],addItem:(e,t)=>{if(t instanceof Map)return t.size!==1?"cannot resolve a pairs item":(e.push(t.entries().next().value),"");if(Object.prototype.toString.call(t)!=="[object Object]")return"cannot resolve a pairs item";const n=t,r=Object.keys(n);return r.length!==1?"cannot resolve a pairs item":(e.push([r[0],n[r[0]]]),"")}}),Pi=At("tag:yaml.org,2002:map",{create:()=>({}),identify:yt,represent:e=>{const t=new Map;for(const n of Object.keys(e))t.set(n,e[n]);return t},addPair:(e,t,n)=>{if(t!==null&&typeof t=="object")return"object-based map does not support complex keys";const r=String(t);return r==="__proto__"?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,""},has:(e,t)=>t!==null&&typeof t=="object"?!1:Object.prototype.hasOwnProperty.call(e,String(t)),keys:e=>Object.keys(e),get:(e,t)=>{const n=String(t);return Object.prototype.hasOwnProperty.call(e,n)?e[n]:null}}),Zn=At("tag:yaml.org,2002:set",{create:()=>new Set,identify:e=>e instanceof Set,represent:e=>{const t=new Map;for(const n of e)t.set(n,null);return t},addPair:(e,t,n)=>n!==null?"cannot resolve a set item":(e.add(t),""),has:(e,t)=>e.has(t),keys:e=>e.keys(),get:()=>null});function Fi(){return{scalar:Object.create(null),sequence:Object.create(null),mapping:Object.create(null)}}function Hi(){return{scalar:[],sequence:[],mapping:[]}}function Mi(e){const t=[];for(const n of e){let r=t.length;for(let i=0;i<t.length;i++){const o=t[i];if(o.nodeKind===n.nodeKind&&o.tagName===n.tagName&&o.matchByTagPrefix===n.matchByTagPrefix){r=i;break}}t[r]=n}return t}var Et=class Jn{tags;implicitScalarTags;implicitScalarByFirstChar;implicitScalarAnyFirstChar;defaultScalarTag;defaultSequenceTag;defaultMappingTag;exact;prefix;constructor(t){const n=Mi(t),r=[],i=Fi(),o=Hi();for(const c of n){if(c.nodeKind==="scalar"&&c.implicit){if(c.matchByTagPrefix)throw new Error("Implicit scalar tags cannot match by tag prefix");r.push(c)}switch(c.nodeKind){case"scalar":c.matchByTagPrefix?o.scalar.push(c):i.scalar[c.tagName]=c;break;case"sequence":c.matchByTagPrefix?o.sequence.push(c):i.sequence[c.tagName]=c;break;case"mapping":c.matchByTagPrefix?o.mapping.push(c):i.mapping[c.tagName]=c;break}}const a=r.filter(c=>c.implicitFirstChars===null),s=new Set;for(const c of r)if(c.implicitFirstChars!==null)for(const E of c.implicitFirstChars)s.add(E);const l=new Map;for(const c of s)l.set(c,r.filter(E=>E.implicitFirstChars===null||E.implicitFirstChars.indexOf(c)!==-1));const u=i.scalar["tag:yaml.org,2002:str"];if(!u)throw new Error("schema does not define the default scalar tag (tag:yaml.org,2002:str)");this.tags=n,this.implicitScalarTags=r,this.implicitScalarByFirstChar=l,this.implicitScalarAnyFirstChar=a,this.defaultScalarTag=u,this.defaultSequenceTag=i.sequence["tag:yaml.org,2002:seq"],this.defaultMappingTag=i.mapping["tag:yaml.org,2002:map"],this.exact=i,this.prefix=o}withTags(...t){let n=[];for(const r of t)n=n.concat(r);return new Jn([...this.tags,...n])}},Jt=new Et([Ur,Li,Pi]);new Et([...Jt.tags,Gr,Zr,ui,Ti]);var er=new Et([...Jt.tags,Kr,Xr,jn,Wn]),Bi=new Et([...Jt.tags,jr,ti,Pt,Ft,ki,Vn,Xn,zn,Qn,Zn]);At("tag:yaml.org,2002:map",{create:()=>new Map,addPair:(e,t,n)=>(e.set(t,n),""),has:(e,t)=>e.has(t),keys:e=>e.keys(),get:(e,t)=>e.get(t),identify:e=>e instanceof Map||yt(e),represent:e=>{if(e instanceof Map)return e;const t=new Map,n=e;for(const r of Object.keys(n))t.set(r,n[r]);return t}});function yn(e){if(Array.isArray(e)){const t=Array.prototype.slice.call(e);for(let n=0;n<t.length;n++){if(Array.isArray(t[n]))return null;typeof t[n]=="object"&&Object.prototype.toString.call(t[n])==="[object Object]"&&(t[n]="[object Object]")}return String(t)}return typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"?"[object Object]":String(e)}At("tag:yaml.org,2002:map",{create:()=>({}),identify:yt,represent:e=>{const t=new Map;for(const n of Object.keys(e))t.set(n,e[n]);return t},addPair:(e,t,n)=>{const r=yn(t);return r===null?"nested arrays are not supported inside keys":(r==="__proto__"?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,"")},has:(e,t)=>{const n=yn(t);return n!==null&&Object.prototype.hasOwnProperty.call(e,n)},keys:e=>Object.keys(e),get:(e,t)=>{const n=String(t);return Object.prototype.hasOwnProperty.call(e,n)?e[n]:null}});var Di={maxLength:79,indent:1,linesBefore:3,linesAfter:2};function It(e,t,n,r,i){let o="",a="";const s=Math.floor(i/2)-1;return r-t>s&&(o=" ... ",t=r-s+o.length),n-r>s&&(a=" ...",n=r+s-a.length),{str:o+e.slice(t,n).replace(/\t/g,"→")+a,pos:r-t+o.length}}function Nt(e,t){return" ".repeat(Math.max(t-e.length,0))+e}function Ui(e,t){if(!e.buffer)return null;const n={...Di,...t},r=/\r?\n|\r|\0/g,i=[0],o=[];let a,s=-1;for(;a=r.exec(e.buffer);)o.push(a.index),i.push(a.index+a[0].length),e.position<=a.index&&s<0&&(s=i.length-2);s<0&&(s=i.length-1);let l="";const u=Math.min(e.line+n.linesAfter,o.length).toString().length,c=n.maxLength-(n.indent+u+3);for(let m=1;m<=n.linesBefore&&!(s-m<0);m++){const C=It(e.buffer,i[s-m],o[s-m],e.position-(i[s]-i[s-m]),c);l=`${" ".repeat(n.indent)}${Nt((e.line-m+1).toString(),u)} | ${C.str}
|
|
1
|
+
"use strict";const se=require("./replay-index-D85qPcEF.js");function Hn(e){return!!e}var bt={},vt,fn;function ht(){if(fn)return vt;fn=1;const e="\\\\/",t=`[^${e}]`,n=0,r="\\.",i="\\+",o="\\?",a="\\/",s="(?=.)",l="[^/]",u=`(?:${a}|$)`,c=`(?:^|${a})`,E=`${r}{1,2}${u}`,m=`(?!${r})`,C=`(?!${c}${E})`,S=`(?!${r}{0,1}${u})`,w=`(?!${E})`,M=`[^.${a}]`,N=`${l}*?`,y={DOT_LITERAL:r,PLUS_LITERAL:i,QMARK_LITERAL:o,SLASH_LITERAL:a,ONE_CHAR:s,QMARK:l,END_ANCHOR:u,DOTS_SLASH:E,NO_DOT:m,NO_DOTS:C,NO_DOT_SLASH:S,NO_DOTS_SLASH:w,QMARK_NO_DOT:M,STAR:N,START_ANCHOR:c,SEP:"/"},R={...y,SLASH_LITERAL:`[${e}]`,QMARK:t,STAR:`${t}*?`,DOTS_SLASH:`${r}{1,2}(?:[${e}]|$)`,NO_DOT:`(?!${r})`,NO_DOTS:`(?!(?:^|[${e}])${r}{1,2}(?:[${e}]|$))`,NO_DOT_SLASH:`(?!${r}{0,1}(?:[${e}]|$))`,NO_DOTS_SLASH:`(?!${r}{1,2}(?:[${e}]|$))`,QMARK_NO_DOT:`[^.${e}]`,START_ANCHOR:`(?:^|[${e}])`,END_ANCHOR:`(?:[${e}]|$)`,SEP:"\\"},f={__proto__:null,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 vt={DEFAULT_MAX_EXTGLOB_RECURSION:n,MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:f,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(I){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${I.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(I){return I===!0?R:y}},vt}var pn;function gt(){return pn||(pn=1,(function(e){const{REGEX_BACKSLASH:t,REGEX_REMOVE_BACKSLASH:n,REGEX_SPECIAL_CHARS:r,REGEX_SPECIAL_CHARS_GLOBAL:i}=ht();e.isObject=o=>o!==null&&typeof o=="object"&&!Array.isArray(o),e.hasRegexChars=o=>r.test(o),e.isRegexChar=o=>o.length===1&&e.hasRegexChars(o),e.escapeRegex=o=>o.replace(i,"\\$1"),e.toPosixSlashes=o=>o.replace(t,"/"),e.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},e.removeBackslashes=o=>o.replace(n,a=>a==="\\"?"":a),e.escapeLast=(o,a,s)=>{const l=o.lastIndexOf(a,s);return l===-1?o:o[l-1]==="\\"?e.escapeLast(o,a,l-1):`${o.slice(0,l)}\\${o.slice(l)}`},e.removePrefix=(o,a={})=>{let s=o;return s.startsWith("./")&&(s=s.slice(2),a.prefix="./"),s},e.wrapOutput=(o,a={},s={})=>{const l=s.contains?"":"^",u=s.contains?"":"$";let c=`${l}(?:${o})${u}`;return a.negated===!0&&(c=`(?:^(?!${c}).*$)`),c},e.basename=(o,{windows:a}={})=>{const s=o.split(a?/[\\/]/:"/"),l=s[s.length-1];return l===""?s[s.length-2]:l}})(bt)),bt}var Rt,dn;function vr(){if(dn)return Rt;dn=1;const e=gt(),{CHAR_ASTERISK:t,CHAR_AT:n,CHAR_BACKWARD_SLASH:r,CHAR_COMMA:i,CHAR_DOT:o,CHAR_EXCLAMATION_MARK:a,CHAR_FORWARD_SLASH:s,CHAR_LEFT_CURLY_BRACE:l,CHAR_LEFT_PARENTHESES:u,CHAR_LEFT_SQUARE_BRACKET:c,CHAR_PLUS:E,CHAR_QUESTION_MARK:m,CHAR_RIGHT_CURLY_BRACE:C,CHAR_RIGHT_PARENTHESES:S,CHAR_RIGHT_SQUARE_BRACKET:w}=ht(),M=y=>y===s||y===r,N=y=>{y.isPrefix!==!0&&(y.depth=y.isGlobstar?1/0:1)};return Rt=(y,R)=>{const f=R||{},I=y.length-1,v=f.parts===!0||f.scanToEnd===!0,A=[],g=[],_=[];let j=y,k=-1,K=0,ue=0,le=!1,he=!1,W=!1,Ee=!1,_e=!1,ge=!1,U=!1,me=!1,we=!1,ne=!1,J=0,ce,O,F={value:"",depth:0,isGlob:!1};const h=()=>k>=I,ae=()=>j.charCodeAt(k+1),z=()=>(ce=O,j.charCodeAt(++k));for(;k<I;){O=z();let D;if(O===r){U=F.backslashes=!0,O=z(),O===l&&(ge=!0);continue}if(ge===!0||O===l){for(J++;h()!==!0&&(O=z());){if(O===r){U=F.backslashes=!0,z();continue}if(O===l){J++;continue}if(ge!==!0&&O===o&&(O=z())===o){if(le=F.isBrace=!0,W=F.isGlob=!0,ne=!0,v===!0)continue;break}if(ge!==!0&&O===i){if(le=F.isBrace=!0,W=F.isGlob=!0,ne=!0,v===!0)continue;break}if(O===C&&(J--,J===0)){ge=!1,le=F.isBrace=!0,ne=!0;break}}if(v===!0)continue;break}if(O===s){if(A.push(k),g.push(F),F={value:"",depth:0,isGlob:!1},ne===!0)continue;if(ce===o&&k===K+1){K+=2;continue}ue=k+1;continue}if(f.noext!==!0&&(O===E||O===n||O===t||O===m||O===a)===!0&&ae()===u){if(W=F.isGlob=!0,Ee=F.isExtglob=!0,ne=!0,O===a&&k===K&&(we=!0),v===!0){for(;h()!==!0&&(O=z());){if(O===r){U=F.backslashes=!0,O=z();continue}if(O===S){W=F.isGlob=!0,ne=!0;break}}continue}break}if(O===t){if(ce===t&&(_e=F.isGlobstar=!0),W=F.isGlob=!0,ne=!0,v===!0)continue;break}if(O===m){if(W=F.isGlob=!0,ne=!0,v===!0)continue;break}if(O===c){for(;h()!==!0&&(D=z());){if(D===r){U=F.backslashes=!0,z();continue}if(D===w){he=F.isBracket=!0,W=F.isGlob=!0,ne=!0;break}}if(v===!0)continue;break}if(f.nonegate!==!0&&O===a&&k===K){me=F.negated=!0,K++;continue}if(f.noparen!==!0&&O===u){if(W=F.isGlob=!0,v===!0){for(;h()!==!0&&(O=z());){if(O===u){U=F.backslashes=!0,O=z();continue}if(O===S){ne=!0;break}}continue}break}if(W===!0){if(ne=!0,v===!0)continue;break}}f.noext===!0&&(Ee=!1,W=!1);let X=j,d="",p="";K>0&&(d=j.slice(0,K),j=j.slice(K),ue-=K),X&&W===!0&&ue>0?(X=j.slice(0,ue),p=j.slice(ue)):W===!0?(X="",p=j):X=j,X&&X!==""&&X!=="/"&&X!==j&&M(X.charCodeAt(X.length-1))&&(X=X.slice(0,-1)),f.unescape===!0&&(p&&(p=e.removeBackslashes(p)),X&&U===!0&&(X=e.removeBackslashes(X)));const fe={prefix:d,input:y,start:K,base:X,glob:p,isBrace:le,isBracket:he,isGlob:W,isExtglob:Ee,isGlobstar:_e,negated:me,negatedExtglob:we};if(f.tokens===!0&&(fe.maxDepth=0,M(O)||g.push(F),fe.tokens=g),f.parts===!0||f.tokens===!0){let D;for(let V=0;V<A.length;V++){const Se=D?D+1:K,pe=A[V],be=y.slice(Se,pe);f.tokens&&(V===0&&K!==0?(g[V].isPrefix=!0,g[V].value=d):g[V].value=be,N(g[V]),fe.maxDepth+=g[V].depth),(V!==0||be!=="")&&_.push(be),D=pe}if(D&&D+1<y.length){const V=y.slice(D+1);_.push(V),f.tokens&&(g[g.length-1].value=V,N(g[g.length-1]),fe.maxDepth+=g[g.length-1].depth)}fe.slashes=A,fe.parts=_}return fe},Rt}var xt,hn;function Rr(){if(hn)return xt;hn=1;const e=ht(),t=gt(),{MAX_LENGTH:n,POSIX_REGEX_SOURCE:r,REGEX_NON_SPECIAL_CHARS:i,REGEX_SPECIAL_CHARS_BACKREF:o,REPLACEMENTS:a}=e,s=(y,R)=>{if(typeof R.expandRange=="function")return R.expandRange(...y,R);y.sort();const f=`[${y.join("-")}]`;try{new RegExp(f)}catch{return y.map(v=>t.escapeRegex(v)).join("..")}return f},l=(y,R)=>`Missing ${y}: "${R}" - use "\\\\${R}" to match literal characters`,u=y=>{const R=[];let f=0,I=0,v=0,A="",g=!1;for(const _ of y){if(g===!0){A+=_,g=!1;continue}if(_==="\\"){A+=_,g=!0;continue}if(_==='"'){v=v===1?0:1,A+=_;continue}if(v===0){if(_==="[")f++;else if(_==="]"&&f>0)f--;else if(f===0){if(_==="(")I++;else if(_===")"&&I>0)I--;else if(_==="|"&&I===0){R.push(A),A="";continue}}}A+=_}return R.push(A),R},c=y=>{let R=!1;for(const f of y){if(R===!0){R=!1;continue}if(f==="\\"){R=!0;continue}if(/[?*+@!()[\]{}]/.test(f))return!1}return!0},E=y=>{let R=y.trim(),f=!0;for(;f===!0;)f=!1,/^@\([^\\()[\]{}|]+\)$/.test(R)&&(R=R.slice(2,-1),f=!0);if(c(R))return R.replace(/\\(.)/g,"$1")},m=y=>{const R=y.map(E).filter(Boolean);for(let f=0;f<R.length;f++)for(let I=f+1;I<R.length;I++){const v=R[f],A=R[I],g=v[0];if(!(!g||v!==g.repeat(v.length)||A!==g.repeat(A.length))&&(v===A||v.startsWith(A)||A.startsWith(v)))return!0}return!1},C=(y,R=!0)=>{if(y[0]!=="+"&&y[0]!=="*"||y[1]!=="(")return;let f=0,I=0,v=0,A=!1;for(let g=1;g<y.length;g++){const _=y[g];if(A===!0){A=!1;continue}if(_==="\\"){A=!0;continue}if(_==='"'){v=v===1?0:1;continue}if(v!==1){if(_==="["){f++;continue}if(_==="]"&&f>0){f--;continue}if(!(f>0)){if(_==="("){I++;continue}if(_===")"&&(I--,I===0))return R===!0&&g!==y.length-1?void 0:{type:y[0],body:y.slice(2,g),end:g}}}}},S=y=>`${y.length===1?t.escapeRegex(y[0]):`[${y.map(f=>t.escapeRegex(f)).join("")}]`}*`,w=y=>{let R=0;const f=[];for(;R<y.length;){const I=C(y.slice(R),!1);if(!I||I.type!=="*")return;const v=u(I.body).map(g=>g.trim());if(v.length!==1)return;const A=E(v[0]);if(!A||A.length!==1)return;f.push(A),R+=I.end+1}if(!(f.length<1))return f},M=y=>{let R=0,f=y.trim(),I=C(f);for(;I;)R++,f=I.body.trim(),I=C(f);return R},N=(y,R)=>{if(R.maxExtglobRecursion===!1)return{risky:!1};const f=typeof R.maxExtglobRecursion=="number"?R.maxExtglobRecursion:e.DEFAULT_MAX_EXTGLOB_RECURSION,I=u(y).map(_=>_.trim());if(I.length>1&&(I.some(_=>_==="")||I.some(_=>/^[*?]+$/.test(_))||m(I)))return{risky:!0};const v=[];let A=!1,g=!0;for(const _ of I){const j=w(_);if(j){A=!0,v.push(...j);continue}const k=E(_);if(k&&k.length===1){v.push(k);continue}if(g=!1,M(_)>f)return{risky:!0}}return A?g?{risky:!0,safeOutput:S([...new Set(v)])}:{risky:!0}:{risky:!1}},$=(y,R)=>{if(typeof y!="string")throw new TypeError("Expected a string");y=a[y]||y;const f={...R},I=typeof f.maxLength=="number"?Math.min(n,f.maxLength):n;let v=y.length;if(v>I)throw new SyntaxError(`Input length: ${v}, exceeds maximum allowed length: ${I}`);const A={type:"bos",value:"",output:f.prepend||""},g=[A],_=f.capture?"":"?:",j=e.globChars(f.windows),k=e.extglobChars(j),{DOT_LITERAL:K,PLUS_LITERAL:ue,SLASH_LITERAL:le,ONE_CHAR:he,DOTS_SLASH:W,NO_DOT:Ee,NO_DOT_SLASH:_e,NO_DOTS_SLASH:ge,QMARK:U,QMARK_NO_DOT:me,STAR:we,START_ANCHOR:ne}=j,J=b=>`(${_}(?:(?!${ne}${b.dot?W:K}).)*?)`,ce=f.dot?"":Ee,O=f.dot?U:me;let F=f.bash===!0?J(f):we;f.capture&&(F=`(${F})`),typeof f.noext=="boolean"&&(f.noextglob=f.noext);const h={input:y,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};y=t.removePrefix(y,h),v=y.length;const ae=[],z=[],X=[];let d=A,p;const fe=()=>h.index===v-1,D=h.peek=(b=1)=>y[h.index+b],V=h.advance=()=>y[++h.index]||"",Se=()=>y.slice(h.index+1),pe=(b="",Y=0)=>{h.consumed+=b,h.index+=Y},be=b=>{h.output+=b.output!=null?b.output:b.value,pe(b.value)},Tr=()=>{let b=1;for(;D()==="!"&&(D(2)!=="("||D(3)==="?");)V(),h.start++,b++;return b%2===0?!1:(h.negated=!0,h.start++,!0)},rt=b=>{h[b]++,X.push(b)},ve=b=>{h[b]--,X.pop()},L=b=>{if(d.type==="globstar"){const Y=h.braces>0&&(b.type==="comma"||b.type==="brace"),T=b.extglob===!0||ae.length&&(b.type==="pipe"||b.type==="paren");b.type!=="slash"&&b.type!=="paren"&&!Y&&!T&&(h.output=h.output.slice(0,-d.output.length),d.type="star",d.value="*",d.output=F,h.output+=d.output)}if(ae.length&&b.type!=="paren"&&(ae[ae.length-1].inner+=b.value),(b.value||b.output)&&be(b),d&&d.type==="text"&&b.type==="text"){d.output=(d.output||d.value)+b.value,d.value+=b.value;return}b.prev=d,g.push(b),d=b},it=(b,Y)=>{const T={...k[Y],conditions:1,inner:""};T.prev=d,T.parens=h.parens,T.output=h.output,T.startIndex=h.index,T.tokensIndex=g.length;const P=(f.capture?"(":"")+T.open;rt("parens"),L({type:b,value:Y,output:h.output?"":he}),L({type:"paren",extglob:!0,value:V(),output:P}),ae.push(T)},br=b=>{const Y=y.slice(b.startIndex,h.index+1),T=y.slice(b.startIndex+2,h.index),P=N(T,f);if((b.type==="plus"||b.type==="star")&&P.risky){const q=P.safeOutput?(b.output?"":he)+(f.capture?`(${P.safeOutput})`:P.safeOutput):void 0,Ae=g[b.tokensIndex];Ae.type="text",Ae.value=Y,Ae.output=q||t.escapeRegex(Y);for(let ye=b.tokensIndex+1;ye<g.length;ye++)g[ye].value="",g[ye].output="",delete g[ye].suffix;h.output=b.output+Ae.output,h.backtrack=!0,L({type:"paren",extglob:!0,value:p,output:""}),ve("parens");return}let G=b.close+(f.capture?")":""),Q;if(b.type==="negate"){let q=F;if(b.inner&&b.inner.length>1&&b.inner.includes("/")&&(q=J(f)),(q!==F||fe()||/^\)+$/.test(Se()))&&(G=b.close=`)$))${q}`),b.inner.includes("*")&&(Q=Se())&&/^\.[^\\/.]+$/.test(Q)){const Ae=$(Q,{...R,fastpaths:!1}).output;G=b.close=`)${Ae})${q})`}b.prev.type==="bos"&&(h.negatedExtglob=!0)}L({type:"paren",extglob:!0,value:p,output:G}),ve("parens")};if(f.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(y)){let b=!1,Y=y.replace(o,(T,P,G,Q,q,Ae)=>Q==="\\"?(b=!0,T):Q==="?"?P?P+Q+(q?U.repeat(q.length):""):Ae===0?O+(q?U.repeat(q.length):""):U.repeat(G.length):Q==="."?K.repeat(G.length):Q==="*"?P?P+Q+(q?F:""):F:P?T:`\\${T}`);return b===!0&&(f.unescape===!0?Y=Y.replace(/\\/g,""):Y=Y.replace(/\\+/g,T=>T.length%2===0?"\\\\":T?"\\":"")),Y===y&&f.contains===!0?(h.output=y,h):(h.output=t.wrapOutput(Y,h,R),h)}for(;!fe();){if(p=V(),p==="\0")continue;if(p==="\\"){const T=D();if(T==="/"&&f.bash!==!0||T==="."||T===";")continue;if(!T){p+="\\",L({type:"text",value:p});continue}const P=/^\\+/.exec(Se());let G=0;if(P&&P[0].length>2&&(G=P[0].length,h.index+=G,G%2!==0&&(p+="\\")),f.unescape===!0?p=V():p+=V(),h.brackets===0){L({type:"text",value:p});continue}}if(h.brackets>0&&(p!=="]"||d.value==="["||d.value==="[^")){if(f.posix!==!1&&p===":"){const T=d.value.slice(1);if(T.includes("[")&&(d.posix=!0,T.includes(":"))){const P=d.value.lastIndexOf("["),G=d.value.slice(0,P),Q=d.value.slice(P+2),q=r[Q];if(q){d.value=G+q,h.backtrack=!0,V(),!A.output&&g.indexOf(d)===1&&(A.output=he);continue}}}(p==="["&&D()!==":"||p==="-"&&D()==="]")&&(p=`\\${p}`),p==="]"&&(d.value==="["||d.value==="[^")&&(p=`\\${p}`),f.posix===!0&&p==="!"&&d.value==="["&&(p="^"),d.value+=p,be({value:p});continue}if(h.quotes===1&&p!=='"'){p=t.escapeRegex(p),d.value+=p,be({value:p});continue}if(p==='"'){h.quotes=h.quotes===1?0:1,f.keepQuotes===!0&&L({type:"text",value:p});continue}if(p==="("){rt("parens"),L({type:"paren",value:p});continue}if(p===")"){if(h.parens===0&&f.strictBrackets===!0)throw new SyntaxError(l("opening","("));const T=ae[ae.length-1];if(T&&h.parens===T.parens+1){br(ae.pop());continue}L({type:"paren",value:p,output:h.parens?")":"\\)"}),ve("parens");continue}if(p==="["){if(f.nobracket===!0||!Se().includes("]")){if(f.nobracket!==!0&&f.strictBrackets===!0)throw new SyntaxError(l("closing","]"));p=`\\${p}`}else rt("brackets");L({type:"bracket",value:p});continue}if(p==="]"){if(f.nobracket===!0||d&&d.type==="bracket"&&d.value.length===1){L({type:"text",value:p,output:`\\${p}`});continue}if(h.brackets===0){if(f.strictBrackets===!0)throw new SyntaxError(l("opening","["));L({type:"text",value:p,output:`\\${p}`});continue}ve("brackets");const T=d.value.slice(1);if(d.posix!==!0&&T[0]==="^"&&!T.includes("/")&&(p=`/${p}`),d.value+=p,be({value:p}),f.literalBrackets===!1||t.hasRegexChars(T))continue;const P=t.escapeRegex(d.value);if(h.output=h.output.slice(0,-d.value.length),f.literalBrackets===!0){h.output+=P,d.value=P;continue}d.value=`(${_}${P}|${d.value})`,h.output+=d.value;continue}if(p==="{"&&f.nobrace!==!0){rt("braces");const T={type:"brace",value:p,output:"(",outputIndex:h.output.length,tokensIndex:h.tokens.length};z.push(T),L(T);continue}if(p==="}"){const T=z[z.length-1];if(f.nobrace===!0||!T){L({type:"text",value:p,output:p});continue}let P=")";if(T.dots===!0){const G=g.slice(),Q=[];for(let q=G.length-1;q>=0&&(g.pop(),G[q].type!=="brace");q--)G[q].type!=="dots"&&Q.unshift(G[q].value);P=s(Q,f),h.backtrack=!0}if(T.comma!==!0&&T.dots!==!0){const G=h.output.slice(0,T.outputIndex),Q=h.tokens.slice(T.tokensIndex);T.value=T.output="\\{",p=P="\\}",h.output=G;for(const q of Q)h.output+=q.output||q.value}L({type:"brace",value:p,output:P}),ve("braces"),z.pop();continue}if(p==="|"){ae.length>0&&ae[ae.length-1].conditions++,L({type:"text",value:p});continue}if(p===","){let T=p;const P=z[z.length-1];P&&X[X.length-1]==="braces"&&(P.comma=!0,T="|"),L({type:"comma",value:p,output:T});continue}if(p==="/"){if(d.type==="dot"&&h.index===h.start+1){h.start=h.index+1,h.consumed="",h.output="",g.pop(),d=A;continue}L({type:"slash",value:p,output:le});continue}if(p==="."){if(h.braces>0&&d.type==="dot"){d.value==="."&&(d.output=K);const T=z[z.length-1];d.type="dots",d.output+=p,d.value+=p,T.dots=!0;continue}if(h.braces+h.parens===0&&d.type!=="bos"&&d.type!=="slash"){L({type:"text",value:p,output:K});continue}L({type:"dot",value:p,output:K});continue}if(p==="?"){if(!(d&&d.value==="(")&&f.noextglob!==!0&&D()==="("&&D(2)!=="?"){it("qmark",p);continue}if(d&&d.type==="paren"){const P=D();let G=p;(d.value==="("&&!/[!=<:]/.test(P)||P==="<"&&!/<([!=]|\w+>)/.test(Se()))&&(G=`\\${p}`),L({type:"text",value:p,output:G});continue}if(f.dot!==!0&&(d.type==="slash"||d.type==="bos")){L({type:"qmark",value:p,output:me});continue}L({type:"qmark",value:p,output:U});continue}if(p==="!"){if(f.noextglob!==!0&&D()==="("&&(D(2)!=="?"||!/[!=<:]/.test(D(3)))){it("negate",p);continue}if(f.nonegate!==!0&&h.index===0){Tr();continue}}if(p==="+"){if(f.noextglob!==!0&&D()==="("&&D(2)!=="?"){it("plus",p);continue}if(d&&d.value==="("||f.regex===!1){L({type:"plus",value:p,output:ue});continue}if(d&&(d.type==="bracket"||d.type==="paren"||d.type==="brace")||h.parens>0){L({type:"plus",value:p});continue}L({type:"plus",value:ue});continue}if(p==="@"){if(f.noextglob!==!0&&D()==="("&&D(2)!=="?"){L({type:"at",extglob:!0,value:p,output:""});continue}L({type:"text",value:p});continue}if(p!=="*"){(p==="$"||p==="^")&&(p=`\\${p}`);const T=i.exec(Se());T&&(p+=T[0],h.index+=T[0].length),L({type:"text",value:p});continue}if(d&&(d.type==="globstar"||d.star===!0)){d.type="star",d.star=!0,d.value+=p,d.output=F,h.backtrack=!0,h.globstar=!0,pe(p);continue}let b=Se();if(f.noextglob!==!0&&/^\([^?]/.test(b)){it("star",p);continue}if(d.type==="star"){if(f.noglobstar===!0){pe(p);continue}const T=d.prev,P=T.prev,G=T.type==="slash"||T.type==="bos",Q=P&&(P.type==="star"||P.type==="globstar");if(f.bash===!0&&(!G||b[0]&&b[0]!=="/")){L({type:"star",value:p,output:""});continue}const q=h.braces>0&&(T.type==="comma"||T.type==="brace"),Ae=ae.length&&(T.type==="pipe"||T.type==="paren");if(!G&&T.type!=="paren"&&!q&&!Ae){L({type:"star",value:p,output:""});continue}for(;b.slice(0,3)==="/**";){const ye=y[h.index+4];if(ye&&ye!=="/")break;b=b.slice(3),pe("/**",3)}if(T.type==="bos"&&fe()){d.type="globstar",d.value+=p,d.output=J(f),h.output=d.output,h.globstar=!0,pe(p);continue}if(T.type==="slash"&&T.prev.type!=="bos"&&!Q&&fe()){h.output=h.output.slice(0,-(T.output+d.output).length),T.output=`(?:${T.output}`,d.type="globstar",d.output=J(f)+(f.strictSlashes?")":"|$)"),d.value+=p,h.globstar=!0,h.output+=T.output+d.output,pe(p);continue}if(T.type==="slash"&&T.prev.type!=="bos"&&b[0]==="/"){const ye=b[1]!==void 0?"|$":"";h.output=h.output.slice(0,-(T.output+d.output).length),T.output=`(?:${T.output}`,d.type="globstar",d.output=`${J(f)}${le}|${le}${ye})`,d.value+=p,h.output+=T.output+d.output,h.globstar=!0,pe(p+V()),L({type:"slash",value:"/",output:""});continue}if(T.type==="bos"&&b[0]==="/"){d.type="globstar",d.value+=p,d.output=`(?:^|${le}|${J(f)}${le})`,h.output=d.output,h.globstar=!0,pe(p+V()),L({type:"slash",value:"/",output:""});continue}h.output=h.output.slice(0,-d.output.length),d.type="globstar",d.output=J(f),d.value+=p,h.output+=d.output,h.globstar=!0,pe(p);continue}const Y={type:"star",value:p,output:F};if(f.bash===!0){Y.output=".*?",(d.type==="bos"||d.type==="slash")&&(Y.output=ce+Y.output),L(Y);continue}if(d&&(d.type==="bracket"||d.type==="paren")&&f.regex===!0){Y.output=p,L(Y);continue}(h.index===h.start||d.type==="slash"||d.type==="dot")&&(d.type==="dot"?(h.output+=_e,d.output+=_e):f.dot===!0?(h.output+=ge,d.output+=ge):(h.output+=ce,d.output+=ce),D()!=="*"&&(h.output+=he,d.output+=he)),L(Y)}for(;h.brackets>0;){if(f.strictBrackets===!0)throw new SyntaxError(l("closing","]"));h.output=t.escapeLast(h.output,"["),ve("brackets")}for(;h.parens>0;){if(f.strictBrackets===!0)throw new SyntaxError(l("closing",")"));h.output=t.escapeLast(h.output,"("),ve("parens")}for(;h.braces>0;){if(f.strictBrackets===!0)throw new SyntaxError(l("closing","}"));h.output=t.escapeLast(h.output,"{"),ve("braces")}if(f.strictSlashes!==!0&&(d.type==="star"||d.type==="bracket")&&L({type:"maybe_slash",value:"",output:`${le}?`}),h.backtrack===!0){h.output="";for(const b of h.tokens)h.output+=b.output!=null?b.output:b.value,b.suffix&&(h.output+=b.suffix)}return h};return $.fastpaths=(y,R)=>{const f={...R},I=typeof f.maxLength=="number"?Math.min(n,f.maxLength):n,v=y.length;if(v>I)throw new SyntaxError(`Input length: ${v}, exceeds maximum allowed length: ${I}`);y=a[y]||y;const{DOT_LITERAL:A,SLASH_LITERAL:g,ONE_CHAR:_,DOTS_SLASH:j,NO_DOT:k,NO_DOTS:K,NO_DOTS_SLASH:ue,STAR:le,START_ANCHOR:he}=e.globChars(f.windows),W=f.dot?K:k,Ee=f.dot?ue:k,_e=f.capture?"":"?:",ge={negated:!1,prefix:""};let U=f.bash===!0?".*?":le;f.capture&&(U=`(${U})`);const me=ce=>ce.noglobstar===!0?U:`(${_e}(?:(?!${he}${ce.dot?j:A}).)*?)`,we=ce=>{switch(ce){case"*":return`${W}${_}${U}`;case".*":return`${A}${_}${U}`;case"*.*":return`${W}${U}${A}${_}${U}`;case"*/*":return`${W}${U}${g}${_}${Ee}${U}`;case"**":return W+me(f);case"**/*":return`(?:${W}${me(f)}${g})?${Ee}${_}${U}`;case"**/*.*":return`(?:${W}${me(f)}${g})?${Ee}${U}${A}${_}${U}`;case"**/.*":return`(?:${W}${me(f)}${g})?${A}${_}${U}`;default:{const O=/^(.*?)\.(\w+)$/.exec(ce);if(!O)return;const F=we(O[1]);return F?F+A+O[2]:void 0}}},ne=t.removePrefix(y,ge);let J=we(ne);return J&&f.strictSlashes!==!0&&(J+=`${g}?`),J},xt=$,xt}var _t,gn;function xr(){if(gn)return _t;gn=1;const e=vr(),t=Rr(),n=gt(),r=ht(),i=a=>a&&typeof a=="object"&&!Array.isArray(a),o=(a,s,l=!1)=>{if(Array.isArray(a)){const M=a.map($=>o($,s,l));return $=>{for(const y of M){const R=y($);if(R)return R}return!1}}const u=i(a)&&a.tokens&&a.input;if(a===""||typeof a!="string"&&!u)throw new TypeError("Expected pattern to be a non-empty string");const c=s||{},E=c.windows,m=u?o.compileRe(a,s):o.makeRe(a,s,!1,!0),C=m.state;delete m.state;let S=()=>!1;if(c.ignore){const M={...s,ignore:null,onMatch:null,onResult:null};S=o(c.ignore,M,l)}const w=(M,N=!1)=>{const{isMatch:$,match:y,output:R}=o.test(M,m,s,{glob:a,posix:E}),f={glob:a,state:C,regex:m,posix:E,input:M,output:R,match:y,isMatch:$};return typeof c.onResult=="function"&&c.onResult(f),$===!1?(f.isMatch=!1,N?f:!1):S(M)?(typeof c.onIgnore=="function"&&c.onIgnore(f),f.isMatch=!1,N?f:!1):(typeof c.onMatch=="function"&&c.onMatch(f),N?f:!0)};return l&&(w.state=C),w};return o.test=(a,s,l,{glob:u,posix:c}={})=>{if(typeof a!="string")throw new TypeError("Expected input to be a string");if(a==="")return{isMatch:!1,output:""};const E=l||{},m=E.format||(c?n.toPosixSlashes:null);let C=a===u,S=C&&m?m(a):a;return C===!1&&(S=m?m(a):a,C=S===u),(C===!1||E.capture===!0)&&(E.matchBase===!0||E.basename===!0?C=o.matchBase(a,s,l,c):C=s.exec(S)),{isMatch:!!C,match:C,output:S}},o.matchBase=(a,s,l,u=l&&l.windows)=>(s instanceof RegExp?s:o.makeRe(s,l)).test(n.basename(a,{windows:u})),o.isMatch=(a,s,l)=>o(s,l)(a),o.parse=(a,s)=>Array.isArray(a)?a.map(l=>o.parse(l,s)):t(a,{...s,fastpaths:!1}),o.scan=(a,s)=>e(a,s),o.compileRe=(a,s,l=!1,u=!1)=>{if(l===!0)return a.output;const c=s||{},E=c.contains?"":"^",m=c.contains?"":"$";let C=`${E}(?:${a.output})${m}`;a&&a.negated===!0&&(C=`^(?!${C}).*$`);const S=o.toRegex(C,s);return u===!0&&(S.state=a),S},o.makeRe=(a,s={},l=!1,u=!1)=>{if(!a||typeof a!="string")throw new TypeError("Expected a non-empty string");let c={negated:!1,fastpaths:!0};return s.fastpaths!==!1&&(a[0]==="."||a[0]==="*")&&(c.output=t.fastpaths(a,s)),c.output||(c=t(a,s)),o.compileRe(c,s,l,u)},o.toRegex=(a,s)=>{try{const l=s||{};return new RegExp(a,l.flags||(l.nocase?"i":""))}catch(l){if(s&&s.debug===!0)throw l;return/$^/}},o.constants=r,_t=o,_t}var wt,mn;function _r(){if(mn)return wt;mn=1;const e=xr(),t=gt();function n(r,i,o=!1){return i&&(i.windows===null||i.windows===void 0)&&(i={...i,windows:t.isWindows()}),e(r,i,o)}return Object.assign(n,e),wt=n,wt}var wr=_r();const Ir=se.getDefaultExportFromCjs(wr),Mn=typeof window<"u"||typeof process>"u"||process?.platform==="browser",Bn=Mn?{}:process.env||{};async function Dn(e,t){const n={};for(const i of t.headers)Nr(e,i.matches)&&(n[i.name]=i.envVariable!==void 0?Bn[i.envVariable]||"":i.value);const r=await(t.customFetch||fetch)(e,{headers:n});if(!r.ok)throw new Error(`Failed to load ${e}: ${r.status} ${r.statusText}`);return{body:await r.text(),mimeType:r.headers.get("content-type")}}function Nr(e,t){return t.match(/^https?:\/\//)||(e=e.replace(/^https?:\/\//,"")),Ir.isMatch(e,t)}function Or(e,t={}){return{name:`${e}List`,properties:{},items:e,...t}}function $r(e,t={}){return{name:`${e}Map`,properties:{},additionalProperties:()=>e,...t}}const We={name:"SpecExtension",properties:{},additionalProperties:{resolvable:!0}};function kr(e,t={}){const n={};for(const o of Object.keys(e))n[o]={...e[o],name:o};for(const o of Object.values(n))r(o);return n.SpecExtension=We,n;function r(o){if(o.additionalProperties&&(o.additionalProperties=i(o.additionalProperties)),o.items&&(o.items=i(o.items)),o.properties){const a={};for(const[s,l]of Object.entries(o.properties))a[s]=i(l),t.doNotResolveExamples&&l&&l.isExample&&(a[s]={...l,resolvable:!1});o.properties=a}}function i(o){if(typeof o=="string"){if(!n[o])throw new Error(`Unknown type name found: ${o}`);return n[o]}else return typeof o=="function"?(a,s)=>i(o(a,s)):Ve(o)?(o={...o},r(o),o):o?.directResolveAs!==void 0?{...o,directResolveAs:i(o.directResolveAs)??void 0}:o}}function Ve(e){return typeof e?.name=="string"}function Re(e,t){return e===""&&(e="#/"),e[e.length-1]==="/"?e+t:e+"/"+t}function Xe(e){return se.isPlainObject(e)&&typeof e.$ref=="string"}function Un(e){return Xe(e)&&Object.keys(e).length>1}function qn(e){return se.isPlainObject(e)&&typeof e.externalValue=="string"}class mt{source;pointer;constructor(t,n){this.source=t,this.pointer=n}child(t){return new mt(this.source,Re(this.pointer,(Array.isArray(t)?t:[t]).map(Ne).join("/")))}key(){return{...this,reportOnKey:!0}}get absolutePointer(){return this.source.absoluteRef+(this.pointer==="#/"?"":this.pointer)}}function Kn(e){const t=e.indexOf("~")===-1?e:e.replaceAll("~1","/").replaceAll("~0","~");try{return decodeURIComponent(t)}catch{return t}}function Ne(e){return typeof e=="number"||e.indexOf("/")===-1&&e.indexOf("~")===-1?e:e.replaceAll("~","~0").replaceAll("/","~1")}function Gn(e){const[t,n=""]=e.split("#/");return{uri:(t.endsWith("#")?t.slice(0,-1):t)||null,pointer:Yn(n)}}function Yn(e){return e.split("/").map(Kn).filter(Hn)}function Lr(e){const t=e.split("/");return t[t.length-1]}function Pr(e){const t=e.split(/[\/\\]/);return t[t.length-1].replace(/\.[^.]+$/,"")}function Oe(e){return e.startsWith("http://")||e.startsWith("https://")||e.startsWith("file://")||e.startsWith("data:")}function Fr(e){return se.pathBrowserifyExports.extname(e)?Oe(e)?e.substring(0,e.lastIndexOf("/")):se.pathBrowserifyExports.dirname(e):e}function Hr(e,t){return Oe(e)?new URL(t,e.endsWith("/")?e:`${e}/`).href:se.pathBrowserifyExports.resolve(e,t)}function Mr(e){return typeof e=="string"&&(e.startsWith("#")||Oe(e)||e.startsWith("./")||e.startsWith("../")||e.indexOf("/")>-1||/\.(ya?ml|json)$/i.test(e))}function Br(e){return/^#[A-Za-z][A-Za-z0-9\-_:.]*$/.test(e)}function Dr(e,t,n){if(!se.isPlainObject(t.node)&&n.parent){n.parent[n.key]=t.node;return}delete e.$ref,se.isPlainObject(t.node)&&Object.assign(e,{...t.node,...e})}var H=Symbol("NOT_RESOLVED"),Qt=Symbol("MERGE_KEY");function ee(e,t){return{tagName:e,nodeKind:"scalar",implicit:t.implicit??!1,matchByTagPrefix:t.matchByTagPrefix??!1,implicitFirstChars:t.implicitFirstChars??null,resolve:t.resolve,identify:t.identify??null,represent:t.represent??(n=>String(n)),representTagName:t.representTagName??null}}function Zt(e,t){const n=t.finalize===void 0;return{tagName:e,nodeKind:"sequence",implicit:!1,matchByTagPrefix:t.matchByTagPrefix??!1,create:t.create,addItem:t.addItem,finalize:t.finalize??(r=>r),carrierIsResult:n,identify:t.identify??null,represent:t.represent??(r=>r),representTagName:t.representTagName??null}}function At(e,t){const n=t.finalize===void 0;return{tagName:e,nodeKind:"mapping",implicit:!1,matchByTagPrefix:t.matchByTagPrefix??!1,create:t.create,addPair:t.addPair,has:t.has,keys:t.keys,get:t.get,finalize:t.finalize??(r=>r),carrierIsResult:n,identify:t.identify??null,represent:t.represent??(r=>r),representTagName:t.representTagName??null}}var Ur=ee("tag:yaml.org,2002:str",{resolve:e=>e,identify:e=>typeof e=="string"}),qr=["","~","null","Null","NULL"],Kr=ee("tag:yaml.org,2002:null",{implicit:!0,implicitFirstChars:["","~","n","N"],resolve:e=>qr.indexOf(e)!==-1?null:H,identify:e=>e===null,represent:()=>"null"}),Gr=ee("tag:yaml.org,2002:null",{implicit:!0,implicitFirstChars:["n"],resolve:(e,t)=>e==="null"||t&&e===""?null:H,identify:e=>e===null,represent:()=>"null"}),Yr=["","~","null","Null","NULL"],jr=ee("tag:yaml.org,2002:null",{implicit:!0,implicitFirstChars:["","~","n","N"],resolve:e=>Yr.indexOf(e)!==-1?null:H,identify:e=>e===null,represent:()=>"null"}),Wr=["true","True","TRUE"],Vr=["false","False","FALSE"],Xr=ee("tag:yaml.org,2002:bool",{implicit:!0,implicitFirstChars:["t","T","f","F"],resolve:e=>Wr.indexOf(e)!==-1?!0:Vr.indexOf(e)!==-1?!1:H,identify:e=>Object.prototype.toString.call(e)==="[object Boolean]",represent:e=>e?"true":"false"}),zr=["true"],Qr=["false"],Zr=ee("tag:yaml.org,2002:bool",{implicit:!0,implicitFirstChars:["t","f"],resolve:e=>zr.indexOf(e)!==-1?!0:Qr.indexOf(e)!==-1?!1:H,identify:e=>Object.prototype.toString.call(e)==="[object Boolean]",represent:e=>e?"true":"false"}),Jr=["true","True","TRUE","y","Y","yes","Yes","YES","on","On","ON"],ei=["false","False","FALSE","n","N","no","No","NO","off","Off","OFF"],ti=ee("tag:yaml.org,2002:bool",{implicit:!0,implicitFirstChars:["y","Y","n","N","t","T","f","F","o","O"],resolve:e=>Jr.indexOf(e)!==-1?!0:ei.indexOf(e)!==-1?!1:H,identify:e=>Object.prototype.toString.call(e)==="[object Boolean]",represent:e=>e?"true":"false"}),ni=new RegExp("^(?:0o[0-7]+|0x[0-9a-fA-F]+|[-+]?[0-9]+)$"),ri=new RegExp("^(?:[-+]?0b[0-1]+|[-+]?0o[0-7]+|[-+]?0x[0-9a-fA-F]+|[-+]?[0-9]+)$");function ii(e){let t=e,n=1;return(t[0]==="-"||t[0]==="+")&&(t[0]==="-"&&(n=-1),t=t.slice(1)),t.startsWith("0b")?n*parseInt(t.slice(2),2):t.startsWith("0o")?n*parseInt(t.slice(2),8):t.startsWith("0x")?n*parseInt(t.slice(2),16):n*parseInt(t,10)}function oi(e,t){if(t){if(!ri.test(e))return H}else if(!ni.test(e))return H;const n=ii(e);return Number.isFinite(n)?n:H}var jn=ee("tag:yaml.org,2002:int",{implicit:!0,implicitFirstChars:["-","+",..."0123456789"],resolve:oi,identify:e=>Number.isInteger(e)&&!Object.is(e,-0)&&e.toString(10).indexOf("e")<0,represent:e=>e.toString(10)}),ai=new RegExp("^-?(?:0|[1-9][0-9]*)$"),si=new RegExp("^(?:[-+]?0b[0-1]+|[-+]?0o[0-7]+|[-+]?0x[0-9a-fA-F]+|[-+]?[0-9]+)$");function li(e){let t=e,n=1;return(t[0]==="-"||t[0]==="+")&&(t[0]==="-"&&(n=-1),t=t.slice(1)),t.startsWith("0b")?n*parseInt(t.slice(2),2):t.startsWith("0o")?n*parseInt(t.slice(2),8):t.startsWith("0x")?n*parseInt(t.slice(2),16):n*parseInt(t,10)}function ci(e,t){if(t){if(!si.test(e))return H}else if(!ai.test(e))return H;const n=li(e);return Number.isFinite(n)?n:H}var ui=ee("tag:yaml.org,2002:int",{implicit:!0,implicitFirstChars:["-",..."0123456789"],resolve:ci,identify:e=>Number.isInteger(e)&&!Object.is(e,-0)&&e.toString(10).indexOf("e")<0,represent:e=>e.toString(10)}),fi=new RegExp("^(?:[-+]?0b[0-1_]+|[-+]?0[0-7_]+|[-+]?0x[0-9a-fA-F_]+|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+|[-+]?(?:0|[1-9][0-9_]*))$");function pi(e){let t=e.replace(/_/g,""),n=1;if((t[0]==="-"||t[0]==="+")&&(t[0]==="-"&&(n=-1),t=t.slice(1)),t.startsWith("0b"))return n*parseInt(t.slice(2),2);if(t.startsWith("0x"))return n*parseInt(t.slice(2),16);if(t.includes(":")){let r=0;for(const i of t.split(":"))r=r*60+Number(i);return n*r}return t!=="0"&&t[0]==="0"?n*parseInt(t,8):n*parseInt(t,10)}function di(e){if(!fi.test(e))return H;const t=pi(e);return Number.isFinite(t)?t:H}var Pt=ee("tag:yaml.org,2002:int",{implicit:!0,implicitFirstChars:["-","+",..."0123456789"],resolve:di,identify:e=>Number.isInteger(e)&&!Object.is(e,-0)&&e.toString(10).indexOf("e")<0,represent:e=>e.toString(10)}),hi=new RegExp("^(?:[-+]?[0-9]+(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|[-+]?\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),gi=new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function mi(e){if(!hi.test(e))return H;let t=e.toLowerCase();const n=t[0]==="-"?-1:1;if("+-".includes(t[0])&&(t=t.slice(1)),t===".inf")return n===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY;if(t===".nan")return NaN;const r=n*parseFloat(t);return Number.isFinite(r)||gi.test(e)?r:H}function Ai(e){if(isNaN(e))return".nan";if(e===Number.POSITIVE_INFINITY)return".inf";if(e===Number.NEGATIVE_INFINITY)return"-.inf";if(Object.is(e,-0))return"-0.0";const t=e.toString(10);return/^[-+]?[0-9]+e/.test(t)?t.replace("e",".e"):t}var Wn=ee("tag:yaml.org,2002:float",{implicit:!0,implicitFirstChars:["-","+",".",..."0123456789"],resolve:mi,identify:e=>typeof e=="number"&&(!Number.isInteger(e)||Object.is(e,-0)||e.toString(10).indexOf("e")>=0),represent:Ai}),yi=new RegExp("^-?(?:0|[1-9][0-9]*)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$"),Ei=new RegExp("^(?:[-+]?[0-9]+(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|[-+]?\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function Si(e,t){if(t){if(!Ei.test(e))return H;let r=e.toLowerCase();const i=r[0]==="-"?-1:1;if("+-".includes(r[0])&&(r=r.slice(1)),r===".inf")return i===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY;if(r===".nan")return NaN;const o=i*parseFloat(r);return Number.isFinite(o)?o:H}if(!yi.test(e))return H;const n=Number(e);return Number.isFinite(n)?n:H}function Ci(e){if(isNaN(e))return".nan";if(e===Number.POSITIVE_INFINITY)return".inf";if(e===Number.NEGATIVE_INFINITY)return"-.inf";if(Object.is(e,-0))return"-0.0";const t=e.toString(10);return/^[-+]?[0-9]+e/.test(t)?t.replace("e",".e"):t}var Ti=ee("tag:yaml.org,2002:float",{implicit:!0,implicitFirstChars:["-",..."0123456789"],resolve:Si,identify:e=>typeof e=="number"&&(!Number.isInteger(e)||Object.is(e,-0)||e.toString(10).indexOf("e")>=0),represent:Ci}),bi=new RegExp("^(?:[-+]?(?:(?:[0-9][0-9_]*)?\\.[0-9_]*)(?:[eE][-+][0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),vi=new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function Ri(e){if(!bi.test(e))return H;let t=e.toLowerCase().replace(/_/g,"");const n=t[0]==="-"?-1:1;if("+-".includes(t[0])&&(t=t.slice(1)),t===".inf")return n===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY;if(t===".nan")return NaN;let r=0;if(t.includes(":")){for(const i of t.split(":"))r=r*60+Number(i);r*=n}else r=n*parseFloat(t);return Number.isFinite(r)||vi.test(e)?r:H}function xi(e){if(isNaN(e))return".nan";if(e===Number.POSITIVE_INFINITY)return".inf";if(e===Number.NEGATIVE_INFINITY)return"-.inf";if(Object.is(e,-0))return"-0.0";const t=e.toString(10);return/^[-+]?[0-9]+e/.test(t)?t.replace("e",".e"):t}var Ft=ee("tag:yaml.org,2002:float",{implicit:!0,implicitFirstChars:["-","+",".",..."0123456789"],resolve:Ri,identify:e=>typeof e=="number"&&(!Number.isInteger(e)||Object.is(e,-0)||e.toString(10).indexOf("e")>=0),represent:xi}),Vn=ee("tag:yaml.org,2002:merge",{implicit:!0,implicitFirstChars:["<"],resolve:(e,t)=>e==="<<"||t&&e===""?Qt:H}),_i=/^[A-Za-z0-9+/]*={0,2}$/;function wi(e){const t=e.replace(/\s/g,"");if(t.length%4!==0||!_i.test(t))return H;const n=atob(t),r=new Uint8Array(n.length);for(let i=0;i<n.length;i++)r[i]=n.charCodeAt(i);return r}function Ii(e){let t="";for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return btoa(t)}var Xn=ee("tag:yaml.org,2002:binary",{resolve:wi,identify:e=>Object.prototype.toString.call(e)==="[object Uint8Array]",represent:Ii}),Ni=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Oi=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function An(e,t,n,r=0,i=0,o=0,a=0){const s=new Date(Date.UTC(e,t,n,r,i,o,a));return s.setUTCFullYear(e,t,n),s}function $i(e){let t=Ni.exec(e);if(t===null&&(t=Oi.exec(e)),t===null)return H;const n=+t[1],r=+t[2]-1,i=+t[3];if(!t[4]){const c=An(n,r,i);return c.getUTCFullYear()!==n||c.getUTCMonth()!==r||c.getUTCDate()!==i?H:c}const o=+t[4],a=+t[5],s=+t[6];let l=0;if(o>23||a>59||s>59)return H;if(t[7]){let c=t[7].slice(0,3);for(;c.length<3;)c+="0";l=+c}const u=An(n,r,i,o,a,s,l);if(u.getUTCFullYear()!==n||u.getUTCMonth()!==r||u.getUTCDate()!==i)return H;if(t[9]){const c=+t[10],E=+(t[11]||0);if(c>23||E>59)return H;const m=(c*60+E)*6e4;u.setTime(u.getTime()-(t[9]==="-"?-m:m))}return u}var ki=ee("tag:yaml.org,2002:timestamp",{implicit:!0,implicitFirstChars:[..."0123456789"],resolve:$i,identify:e=>e instanceof Date,represent:e=>e.toISOString()}),Li=Zt("tag:yaml.org,2002:seq",{create:()=>[],addItem:(e,t)=>{e.push(t)},identify:Array.isArray});function yt(e){if(e===null||typeof e!="object"||Array.isArray(e))return!1;const t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function Ht(e,t){const n={};for(const r of t)e[r]!==void 0&&(n[r]=e[r]);return n}var zn=Zt("tag:yaml.org,2002:omap",{create:()=>({list:[],seen:new Set}),addItem:(e,t)=>{let n;if(t instanceof Map){if(t.size!==1)return"cannot resolve an ordered map item";n=t.keys().next().value}else if(yt(t)){const r=Object.keys(t);if(r.length!==1)return"cannot resolve an ordered map item";n=r[0]}else return"cannot resolve an ordered map item";return e.seen.has(n)?"duplicate key in ordered map":(e.seen.add(n),e.list.push(t),"")},finalize:e=>e.list}),Qn=Zt("tag:yaml.org,2002:pairs",{create:()=>[],addItem:(e,t)=>{if(t instanceof Map)return t.size!==1?"cannot resolve a pairs item":(e.push(t.entries().next().value),"");if(Object.prototype.toString.call(t)!=="[object Object]")return"cannot resolve a pairs item";const n=t,r=Object.keys(n);return r.length!==1?"cannot resolve a pairs item":(e.push([r[0],n[r[0]]]),"")}}),Pi=At("tag:yaml.org,2002:map",{create:()=>({}),identify:yt,represent:e=>{const t=new Map;for(const n of Object.keys(e))t.set(n,e[n]);return t},addPair:(e,t,n)=>{if(t!==null&&typeof t=="object")return"object-based map does not support complex keys";const r=String(t);return r==="__proto__"?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,""},has:(e,t)=>t!==null&&typeof t=="object"?!1:Object.prototype.hasOwnProperty.call(e,String(t)),keys:e=>Object.keys(e),get:(e,t)=>{const n=String(t);return Object.prototype.hasOwnProperty.call(e,n)?e[n]:null}}),Zn=At("tag:yaml.org,2002:set",{create:()=>new Set,identify:e=>e instanceof Set,represent:e=>{const t=new Map;for(const n of e)t.set(n,null);return t},addPair:(e,t,n)=>n!==null?"cannot resolve a set item":(e.add(t),""),has:(e,t)=>e.has(t),keys:e=>e.keys(),get:()=>null});function Fi(){return{scalar:Object.create(null),sequence:Object.create(null),mapping:Object.create(null)}}function Hi(){return{scalar:[],sequence:[],mapping:[]}}function Mi(e){const t=[];for(const n of e){let r=t.length;for(let i=0;i<t.length;i++){const o=t[i];if(o.nodeKind===n.nodeKind&&o.tagName===n.tagName&&o.matchByTagPrefix===n.matchByTagPrefix){r=i;break}}t[r]=n}return t}var Et=class Jn{tags;implicitScalarTags;implicitScalarByFirstChar;implicitScalarAnyFirstChar;defaultScalarTag;defaultSequenceTag;defaultMappingTag;exact;prefix;constructor(t){const n=Mi(t),r=[],i=Fi(),o=Hi();for(const c of n){if(c.nodeKind==="scalar"&&c.implicit){if(c.matchByTagPrefix)throw new Error("Implicit scalar tags cannot match by tag prefix");r.push(c)}switch(c.nodeKind){case"scalar":c.matchByTagPrefix?o.scalar.push(c):i.scalar[c.tagName]=c;break;case"sequence":c.matchByTagPrefix?o.sequence.push(c):i.sequence[c.tagName]=c;break;case"mapping":c.matchByTagPrefix?o.mapping.push(c):i.mapping[c.tagName]=c;break}}const a=r.filter(c=>c.implicitFirstChars===null),s=new Set;for(const c of r)if(c.implicitFirstChars!==null)for(const E of c.implicitFirstChars)s.add(E);const l=new Map;for(const c of s)l.set(c,r.filter(E=>E.implicitFirstChars===null||E.implicitFirstChars.indexOf(c)!==-1));const u=i.scalar["tag:yaml.org,2002:str"];if(!u)throw new Error("schema does not define the default scalar tag (tag:yaml.org,2002:str)");this.tags=n,this.implicitScalarTags=r,this.implicitScalarByFirstChar=l,this.implicitScalarAnyFirstChar=a,this.defaultScalarTag=u,this.defaultSequenceTag=i.sequence["tag:yaml.org,2002:seq"],this.defaultMappingTag=i.mapping["tag:yaml.org,2002:map"],this.exact=i,this.prefix=o}withTags(...t){let n=[];for(const r of t)n=n.concat(r);return new Jn([...this.tags,...n])}},Jt=new Et([Ur,Li,Pi]);new Et([...Jt.tags,Gr,Zr,ui,Ti]);var er=new Et([...Jt.tags,Kr,Xr,jn,Wn]),Bi=new Et([...Jt.tags,jr,ti,Pt,Ft,ki,Vn,Xn,zn,Qn,Zn]);At("tag:yaml.org,2002:map",{create:()=>new Map,addPair:(e,t,n)=>(e.set(t,n),""),has:(e,t)=>e.has(t),keys:e=>e.keys(),get:(e,t)=>e.get(t),identify:e=>e instanceof Map||yt(e),represent:e=>{if(e instanceof Map)return e;const t=new Map,n=e;for(const r of Object.keys(n))t.set(r,n[r]);return t}});function yn(e){if(Array.isArray(e)){const t=Array.prototype.slice.call(e);for(let n=0;n<t.length;n++){if(Array.isArray(t[n]))return null;typeof t[n]=="object"&&Object.prototype.toString.call(t[n])==="[object Object]"&&(t[n]="[object Object]")}return String(t)}return typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"?"[object Object]":String(e)}At("tag:yaml.org,2002:map",{create:()=>({}),identify:yt,represent:e=>{const t=new Map;for(const n of Object.keys(e))t.set(n,e[n]);return t},addPair:(e,t,n)=>{const r=yn(t);return r===null?"nested arrays are not supported inside keys":(r==="__proto__"?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,"")},has:(e,t)=>{const n=yn(t);return n!==null&&Object.prototype.hasOwnProperty.call(e,n)},keys:e=>Object.keys(e),get:(e,t)=>{const n=String(t);return Object.prototype.hasOwnProperty.call(e,n)?e[n]:null}});var Di={maxLength:79,indent:1,linesBefore:3,linesAfter:2};function It(e,t,n,r,i){let o="",a="";const s=Math.floor(i/2)-1;return r-t>s&&(o=" ... ",t=r-s+o.length),n-r>s&&(a=" ...",n=r+s-a.length),{str:o+e.slice(t,n).replace(/\t/g,"→")+a,pos:r-t+o.length}}function Nt(e,t){return" ".repeat(Math.max(t-e.length,0))+e}function Ui(e,t){if(!e.buffer)return null;const n={...Di,...t},r=/\r?\n|\r|\0/g,i=[0],o=[];let a,s=-1;for(;a=r.exec(e.buffer);)o.push(a.index),i.push(a.index+a[0].length),e.position<=a.index&&s<0&&(s=i.length-2);s<0&&(s=i.length-1);let l="";const u=Math.min(e.line+n.linesAfter,o.length).toString().length,c=n.maxLength-(n.indent+u+3);for(let m=1;m<=n.linesBefore&&!(s-m<0);m++){const C=It(e.buffer,i[s-m],o[s-m],e.position-(i[s]-i[s-m]),c);l=`${" ".repeat(n.indent)}${Nt((e.line-m+1).toString(),u)} | ${C.str}
|
|
2
2
|
${l}`}const E=It(e.buffer,i[s],o[s],e.position,c);l+=`${" ".repeat(n.indent)}${Nt((e.line+1).toString(),u)} | ${E.str}
|
|
3
3
|
`,l+=`${"-".repeat(n.indent+u+3+E.pos)}^
|
|
4
4
|
`;for(let m=1;m<=n.linesAfter&&!(s+m>=o.length);m++){const C=It(e.buffer,i[s+m],o[s+m],e.position-(i[s]-i[s+m]),c);l+=`${" ".repeat(n.indent)}${Nt((e.line+m+1).toString(),u)} | ${C.str}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { aS as su, aR as Su, aZ as s0, a_ as Wu, a$ as He, b0 as mo, b1 as I0, b2 as eu, b3 as d0, b4 as Du, b5 as cu, b6 as qu, b7 as Zu, b8 as Bi, b9 as Fo, aP as Pa, aQ as ko, ba as Co, bb as wa, g as Ge, bc as ho, bd as O0, be as je, bf as Ka } from "./replay-index-
|
|
2
|
-
import { a as f0 } from "./replay-resolve-
|
|
3
|
-
import { y as Ai, a4 as Ta, c as go, Z as po, U as vo, J as bo, a9 as yi } from "./replay-lint-
|
|
1
|
+
import { aS as su, aR as Su, aZ as s0, a_ as Wu, a$ as He, b0 as mo, b1 as I0, b2 as eu, b3 as d0, b4 as Du, b5 as cu, b6 as qu, b7 as Zu, b8 as Bi, b9 as Fo, aP as Pa, aQ as ko, ba as Co, bb as wa, g as Ge, bc as ho, bd as O0, be as je, bf as Ka } from "./replay-index-B2RZCGOF.js";
|
|
2
|
+
import { a as f0 } from "./replay-resolve-IKJYgmPW.js";
|
|
3
|
+
import { y as Ai, a4 as Ta, c as go, Z as po, U as vo, J as bo, a9 as yi } from "./replay-lint-Bico-a-1.js";
|
|
4
4
|
function Bo(u) {
|
|
5
5
|
return su(u) && "name" in u && "value" in u && !("in" in u);
|
|
6
6
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("./replay-index-CepJ5Z0m.js"),h0=require("./replay-resolve-B0AjmaE9.js"),wu=require("./replay-lint-DoHQIATV.js");function q1(u){return C.isPlainObject(u)&&"name"in u&&"value"in u&&!("in"in u)}function ze(u){return C.isPlainObject(u)&&"in"in u&&typeof u.in=="string"&&["header","query","path","cookie"].includes(u.in)}const Z1=/^image\/(png|jpeg|gif|bmp|webp|svg\+xml)|application\/pdf$/;function ti(u){return u.startsWith("$file(")&&u.endsWith(")")?u.substring(7,u.length-2):u}const ha=async(u,a,e,r,i)=>{const n=C.pathBrowserifyExports.dirname(r),o=C.pathBrowserifyExports.resolve(n,ti(e));u.append(a,await i.options.requestFileLoader.getFileBody(o))},si=(u,a,e,r,i,n)=>{Object.entries(e).forEach(([o,s])=>{const E=n?`${n}[${o}]`:o;typeof s=="string"&&s.startsWith("$file(")&&s.endsWith(")")?u.push(ha(a,E,s,r,i)):Array.isArray(s)?s.forEach(l=>{typeof l=="string"&&l.startsWith("$file(")&&l.endsWith(")")?u.push(ha(a,E,l,r,i)):a.append(E,l.toString())}):C.isPlainObject(s)?si(u,a,s,r,i,E):(typeof s=="string"||typeof s=="number"||typeof s=="boolean")&&a.append(E,s.toString())})},U1=async(u,a,e,r)=>{if(C.isPlainObject(u)){const i=[];si(i,a,u,e,r),await Promise.all(i)}},Y1=async(u,a)=>{if(typeof u=="string"&&u.startsWith("$file(")&&u.endsWith(")")){const e=C.pathBrowserifyExports.resolve(C.pathBrowserifyExports.dirname(a.options.filePath),ti(u));return a.options.requestFileLoader.getFileBody(e)}else return u};async function Q1(u,a){if(!u)return{payload:void 0,contentType:void 0,encoding:void 0,replacements:void 0};const{payload:e,contentType:r}=u;if(r==="multipart/form-data"){const i=new FormData,n=C.pathBrowserifyExports.resolve(a.options.filePath);return await U1(e,i,n,a),{...u,payload:i}}else{if(r==="application/octet-stream"||typeof r=="string"&&Z1.test(r))return{...u,payload:await Y1(e,a),contentType:"application/octet-stream"};if(r==="application/x-www-form-urlencoded"&&typeof e=="string")return{...u,payload:Object.fromEntries(new URLSearchParams(e).entries()),contentType:"application/x-www-form-urlencoded"}}return u}function X1({payload:u,replacements:a,expressionContext:e,logger:r}){for(const i of a){const{target:n,value:o}=i;if(typeof n!="string")throw new Error(`Invalid JSON Pointer: ${n}`);try{const s=C.JsonPointerLib.get(u,n),E=C.evaluateRuntimeExpressionPayload({payload:o,context:e,logger:r});s!==void 0&&C.JsonPointerLib.set(u,n,E)}catch{throw new Error(`Invalid JSON Pointer: ${n}`)}}}const uo=["parameters","failureActions","successActions"];function eo(u,a){const{reference:e,value:r}=u;if(!uo.some(n=>e.includes(`$components.${n}`)))throw new Error("Invalid reference: available components are $components.parameters, $components.failureActions, or $components.successActions");const i=C.getValueFromContext({value:e,ctx:a,logger:a.options.logger});return C.isPlainObject(i)&&"value"in i&&r?{...i,value:r}:i}function k0(u,a){return"reference"in u?eo(u,a):u}const ru={SUCCESS_CRITERIA_CHECK:"success criteria check",STATUS_CODE_CHECK:"status code check",SCHEMA_CHECK:"schema check",CONTENT_TYPE_CHECK:"content-type check",GLOBAL_TIMEOUT_ERROR:"global timeout error",MAX_STEPS_REACHED_ERROR:"maximum steps reached",NETWORK_ERROR:"failed network request",UNEXPECTED_ERROR:"unexpected error"};class li extends Error{}class Ei extends li{}class Di extends li{}async function ao(u){const{descriptionPath:a,externalRefResolver:e,base:r}=u,i=await wu.bundle({base:r,ref:a,config:u.config,dereference:!0,externalRefResolver:e});if(!i)throw new Error(`Could not find source description file '${a}'.`);return i.bundle.parsed}const io={title:"[REPLACE WITH API title]",version:"[REPLACE WITH API version]"},pe=Symbol("skip");function c0(u){return u<10?"0"+u:u}function ro(u,a,e,r){var i=e?"":u.getUTCFullYear()+"-"+c0(u.getUTCMonth()+1)+"-"+c0(u.getUTCDate());return a||(i+="T"+c0(u.getUTCHours())+":"+c0(u.getUTCMinutes())+":"+c0(u.getUTCSeconds())+"Z"),i}function xi(u,a){return a>u.length?u.repeat(Math.trunc(a/u.length)+1).substring(0,a):u}function V0(...u){const a=e=>e&&typeof e=="object";return u.reduce((e,r)=>(Object.keys(r||{}).forEach(i=>{const n=e[i],o=r[i];a(n)&&a(o)?e[i]=V0(n,o):e[i]=o}),e),Array.isArray(u[u.length-1])?[]:{})}function no(u){var a=so(u),e=lo(a,a,a,a),r="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,i=>{var n=e()*16%16|0;return(i=="x"?n:n&3|8).toString(16)});return r}function te(u){return{value:u==="object"?{}:u==="array"?[]:void 0}}function Vu(u,a){a&&u.pop()}function oo(u){return{name:u?.xml?.name||"",prefix:u?.xml?.prefix||"",namespace:u?.xml?.namespace||null,attribute:u?.xml?.attribute??!1,wrapped:u?.xml?.wrapped??!1}}function to(u){const a=u?.xml;return a?.nodeType?a.nodeType:a?.attribute===!0?"attribute":a?.wrapped===!0&&u?.type==="array"?"element":u?.$ref||u?.$dynamicRef||u?.type==="array"||u?.oneOf||u?.anyOf||u?.allOf?"none":"element"}function J0(u,a={},e={}){const{value:r}=u,{propertyName:i}=e,{name:n,prefix:o,namespace:s}=oo(a),E=to(a);let l=n||i?`${o?o+":":""}${n||i}`:null,D=typeof r=="object"?Array.isArray(r)?[...r]:{...r}:r;switch(E){case"attribute":l&&(l=`$${l}`);break;case"text":l="#text";break;case"cdata":l="#cdata";break;case"none":a.type==="array"?(l=null,a.example!==void 0&&(l=a.items?.xml?.name||l)):l=null;break;default:a.type==="array"&&Array.isArray(D)&&(D={[l]:[...D]});break}return s&&E!=="text"&&E!=="cdata"&&E!=="none"&&(typeof D=="object"?D[`$xmlns${o?":"+o:""}`]=s:D={[`$xmlns${o?":"+o:""}`]:s,"#text":D}),{propertyName:l,value:D}}function so(u){var a=0;if(u.length==0)return a;for(var e=0;e<u.length;e++){var r=u.charCodeAt(e);a=(a<<5)-a+r,a=a&a}return a}function lo(u,a,e,r){return function(){u|=0,a|=0,e|=0,r|=0;var i=u-(a<<27|a>>>5)|0;return u=a^(e<<17|e>>>15),a=e+r|0,e=r+i|0,r=u+i|0,(r>>>0)/4294967296}}function Eo(u,a,e,r,i){let n=Su(u,e,r);const o=[];for(let s of a){const{type:E,readOnly:l,writeOnly:D,value:d}=Su({type:n.type,...s},e,r,{...i,isAllOfChild:!0});n.type&&E&&E!==n.type&&(console.warn("allOf: schemas with different types can't be merged"),n.type=E),n.type=n.type||E,n.readOnly=n.readOnly||l,n.writeOnly=n.writeOnly||D,d!=null&&o.push(d)}if(n.type==="object"){n.value=V0(n.value||{},...o.filter(s=>typeof s=="object"));for(const s in n.value)n.value[s]===pe&&delete n.value[s];return n}else{n.type==="array"&&(e.quiet||console.warn('OpenAPI Sampler: found allOf with "array" type. Result may be incorrect'));const s=o[o.length-1];return n.value=s??n.value,n}}const ga={multipleOf:"number",maximum:"number",exclusiveMaximum:"number",minimum:"number",exclusiveMinimum:"number",maxLength:"string",minLength:"string",pattern:"string",items:"array",maxItems:"array",minItems:"array",uniqueItems:"array",additionalItems:"array",maxProperties:"object",minProperties:"object",required:"object",additionalProperties:"object",properties:"object",patternProperties:"object",dependencies:"object"};function z0(u){if(u.type!==void 0)return Array.isArray(u.type)?u.type.length===0?null:u.type[0]:u.type;const a=Object.keys(ga);for(var e=0;e<a.length;e++){let r=a[e],i=ga[r];if(u[r]!==void 0)return i}return null}let N0={},zu=[];function Do(){N0={},zu=[]}function ci(u){let a;return u.const!==void 0?a=u.const:u.examples!==void 0&&u.examples.length?a=u.examples[0]:u.enum!==void 0&&u.enum.length?a=u.enum[0]:u.default!==void 0&&(a=u.default),a}function pa(u){const a=ci(u);if(a!==void 0)return{value:a,readOnly:u.readOnly,writeOnly:u.writeOnly,type:null}}function Su(u,a,e,r){if(r){if(zu.includes(u))return te(z0(u));zu.push(u)}if(r&&r.depth>a.maxSampleDepth)return Vu(zu,r),te(z0(u));if(u.$ref){if(!e)throw new Error("Your schema contains $ref. You must provide full specification in the third parameter.");let s=decodeURIComponent(u.$ref);s.startsWith("#")&&(s=s.substring(1));const E=C.JsonPointerLib.get(e,s);let l;if(N0[s]!==!0){N0[s]=!0;const D=Su(E,a,e,r);if(a.format==="xml"){const d=s.split("/").pop(),F={...r,propertyName:r?.propertyName||d},{propertyName:k,value:B}=J0(D,E,F);l={...D,value:{[k||"root"]:B}}}else l=D;N0[s]=!1}else{const D=z0(E);l=te(D)}return Vu(zu,r),l}if(u.example!==void 0)return Vu(zu,r),{value:u.example,readOnly:u.readOnly,writeOnly:u.writeOnly,type:u.type};if(u.allOf!==void 0)return Vu(zu,r),pa(u)||Eo({...u,allOf:void 0},u.allOf,a,e,r);if(u.oneOf&&u.oneOf.length){u.anyOf&&(a.quiet||console.warn("oneOf and anyOf are not supported on the same level. Skipping anyOf")),Vu(zu,r);const s=Object.assign({readOnly:u.readOnly,writeOnly:u.writeOnly},u.oneOf[0]);return o(u,s)}if(u.anyOf&&u.anyOf.length){Vu(zu,r);const s=Object.assign({readOnly:u.readOnly,writeOnly:u.writeOnly},u.anyOf[0]);return o(u,s)}if(u.if&&u.then){Vu(zu,r);const{if:s,then:E,...l}=u;return Su(V0(l,s,E),a,e,r)}let i=ci(u),n=null;if(i===void 0){i=null,n=u.type,Array.isArray(n)&&u.type.length>0&&(n=u.type[0]),n||(n=z0(u));let s=Fi[n];s&&(i=s(u,a,e,r))}return Vu(zu,r),{value:i,readOnly:u.readOnly,writeOnly:u.writeOnly,type:n};function o(s,E){const l=pa(s);if(l!==void 0)return l;const D=Su({...s,oneOf:void 0,anyOf:void 0},a,e,r),d=Su(E,a,e,r);if(typeof D.value=="object"&&typeof d.value=="object"){const F=V0(D.value,d.value);return{...d,value:F}}return d}}function xo(u,a={},e,r){const i=r&&r.depth||1;let n=Math.min(u.maxItems!=null?u.maxItems:1/0,u.minItems||1);const o=u.prefixItems||u.items||u.contains;Array.isArray(o)&&(n=Math.max(n,o.length));let s=l=>Array.isArray(o)?o[l]||{}:o||{},E=[];if(!o)return E;for(let l=0;l<n;l++){let D=s(l),{value:d}=Su(D,a,e,{depth:i+1});if(a?.format==="xml"){const{value:F,propertyName:k}=J0({value:d},D,r);k?(E?.[k]||(E={...E,[k]:[]}),E[k].push(F)):E={...E,...F}}else E.push(d)}if(a?.format==="xml"&&i===1){const{value:l,propertyName:D}=J0({value:null},u,r);D&&(l?E=Array.isArray(E)?{[D]:{...l,...E.map(d=>({"#text":{...d}}))}}:{[D]:{...E,...l}}:E={[D]:E})}return E}function co(u){return!0}function di(u){let a=0;if(u.type==="number"&&(u.format==="float"||u.format==="double")&&(a=.1),typeof u.exclusiveMinimum=="boolean"||typeof u.exclusiveMaximum=="boolean"){if(u.maximum&&u.minimum)return a=u.exclusiveMinimum?Math.floor(u.minimum)+1:u.minimum,(u.exclusiveMaximum&&a>=u.maximum||!u.exclusiveMaximum&&a>u.maximum)&&(a=(u.maximum+u.minimum)/2),a;if(u.minimum)return u.exclusiveMinimum?Math.floor(u.minimum)+1:u.minimum;if(u.maximum)return u.exclusiveMaximum?u.maximum>0?0:Math.floor(u.maximum)-1:u.maximum>0?0:u.maximum}else{if(u.minimum)return u.minimum;u.exclusiveMinimum?(a=Math.floor(u.exclusiveMinimum)+1,a===u.exclusiveMaximum&&(a=(a+Math.floor(u.exclusiveMaximum)-1)/2)):u.exclusiveMaximum?a=Math.floor(u.exclusiveMaximum)-1:u.maximum&&(a=u.maximum)}return a}function mo(u,a={},e,r){let i={};const n=r&&r.depth||1;if(u&&typeof u.properties=="object"){const o=Array.isArray(u.required)?u.required:[],s={};for(const E of o)s[E]=!0;Object.keys(u.properties).forEach(E=>{if(a.skipNonRequired&&!s.hasOwnProperty(E))return;const l=Su(u.properties[E],a,e,{propertyName:E,depth:n+1});if(a.skipReadOnly&&l.readOnly){r?.isAllOfChild&&(i[E]=pe);return}if(a.skipWriteOnly&&l.writeOnly){r?.isAllOfChild&&(i[E]=pe);return}if(a?.format==="xml"){const{propertyName:D,value:d}=J0(l,u.properties[E],{propertyName:E});D?i[D]=d:d!==null&&typeof d=="object"&&(i={...i,...d})}else i[E]=l.value})}if(u&&typeof u.additionalProperties=="object"){const o=u.additionalProperties["x-additionalPropertiesName"]||"property";i[`${String(o)}1`]=Su(u.additionalProperties,a,e,{depth:n+1}).value,i[`${String(o)}2`]=Su(u.additionalProperties,a,e,{depth:n+1}).value}if(u&&typeof u.properties=="object"&&u.maxProperties!==void 0&&Object.keys(i).length>u.maxProperties){const o={};let s=0;(Array.isArray(u.required)?u.required:[]).forEach(l=>{i[l]!==void 0&&(o[l]=i[l],s++)}),Object.keys(i).forEach(l=>{s<u.maxProperties&&!o.hasOwnProperty(l)&&(o[l]=i[l],s++)}),i=o}return i}function g0(u,a){return u}function va(u,a,e){let r=1;if(u)switch(u){case"?":{r=0;break}case"*":{r=g0(0);break}case"+":{r=g0(1);break}default:throw new Error("Unknown quantifier symbol provided.")}else a!=null&&e!=null?r=g0(parseInt(a)):a!=null&&e==null&&(r=parseInt(a));return r}function Fo(u){let a=!1;u instanceof RegExp&&(a=u.flags.includes("i"),u=u.toString(),u=u.match(/\/(.+?)\//)?.[1]??""),u=u.replace(/^(\^)?(.*?)(\$)?$/,"$2");let e,r,i;const n=/([.A-Za-z0-9])(?:\{(\d+)(?:\,(\d+)|)\}|(\?|\*|\+))(?![^[]*]|[^{]*})/;let o=u.match(n);for(;o!=null;){const d=o[2],F=o[3],k=o[4];i=va(k,d,F),u=u.slice(0,o.index)+o[1].repeat(i)+u.slice(o.index+o[0].length),o=u.match(n)}const s=/(\d-\d|\w-\w|\d|\w|[-!@#$&()`.+,/"])/,E=/\[(\^|)(-|)(.+?)\](?:\{(\d+)(?:\,(\d+)|)\}|(\?|\*|\+)|)/;for(o=u.match(E);o!=null;){const d=o[1]==="^",F=o[2]==="-",k=o[4],B=o[5],y=o[6],K=[];let V=o[3],H=V.match(s);for(F&&K.push(45);H!=null;){if(H[0].indexOf("-")===-1)a&&isNaN(Number(H[0]))?(K.push(H[0].toUpperCase().charCodeAt(0)),K.push(H[0].toLowerCase().charCodeAt(0))):K.push(H[0].charCodeAt(0));else{const v=H[0].split("-").map(h=>h.charCodeAt(0));if(e=v[0],r=v[1],e>r)throw new Error("Character range provided is out of order.");for(let h=e;h<=r;h++)if(a&&isNaN(Number(String.fromCharCode(h)))){const z=String.fromCharCode(h);K.push(z.toUpperCase().charCodeAt(0)),K.push(z.toLowerCase().charCodeAt(0))}else K.push(h)}V=V.substring(H[0].length),H=V.match(s)}if(i=va(y,k,B),d){let v=-1;for(let h=48;h<=57;h++){if(v=K.indexOf(h),v>-1){K.splice(v,1);continue}K.push(h)}for(let h=65;h<=90;h++){if(v=K.indexOf(h),v>-1){K.splice(v,1);continue}K.push(h)}for(let h=97;h<=122;h++){if(v=K.indexOf(h),v>-1){K.splice(v,1);continue}K.push(h)}}const G=Array.from({length:i},()=>String.fromCharCode(K[g0(0)])).join("");u=u.slice(0,o.index)+G+u.slice(o.index+o[0].length),o=u.match(E)}const l=/(.)\{(\d+)\,(\d+)\}/;for(o=u.match(l);o!=null;){if(e=parseInt(o[2]),r=parseInt(o[3]),e>r)throw new Error("Numbers out of order in {} quantifier.");i=g0(e),u=u.slice(0,o.index)+o[1].repeat(i)+u.slice(o.index+o[0].length),o=u.match(l)}const D=/(.)\{(\d+)\}/;for(o=u.match(D);o!=null;)i=parseInt(o[2]),u=u.slice(0,o.index)+o[1].repeat(i)+u.slice(o.index+o[0].length),o=u.match(D);return u}const ko="qwerty!@#$%^123456";function Co(){return"user@example.com"}function ho(){return"пошта@укр.нет"}function go(u,a){let e="pa$$word";return u>e.length&&(e+="_",e+=xi(ko,u-e.length).substring(0,u-e.length)),e}function Se({min:u,max:a,omitTime:e,omitDate:r}){let i=ro(new Date("2019-08-24T14:15:22.123Z"),e,r);return i.length<u&&console.warn(`Using minLength = ${u} is incorrect with format "date-time"`),a&&i.length>a&&console.warn(`Using maxLength = ${a} is incorrect with format "date-time"`),i}function po(u,a){return Se({min:u,max:a,omitTime:!1,omitDate:!1})}function vo(u,a){return Se({min:u,max:a,omitTime:!0,omitDate:!1})}function bo(u,a){return Se({min:u,max:a,omitTime:!1,omitDate:!0}).slice(1)}function mi(u,a,e,r,i=!1){if(r&&i)return Fo(r);let n=xi("string",u);return a&&n.length>a&&(n=n.substring(0,a)),n}function Bo(){return"192.168.0.1"}function Ao(){return"2001:0db8:85a3:0000:0000:8a2e:0370:7334"}function yo(){return"example.com"}function fo(){return"приклад.укр"}function zo(){return"http://example.com"}function So(){return"../dictionary"}function Mo(){return"http://example.com/{endpoint}"}function jo(){return"http://example.com/entity/1"}function Po(){return"/entity/1"}function wo(u,a,e){return no(e||"id")}function Ko(){return"/json/pointer"}function To(){return"1/relative/json/pointer"}function Lo(){return"/regex/"}const No={email:Co,"idn-email":ho,password:go,"date-time":po,date:vo,time:bo,ipv4:Bo,ipv6:Ao,hostname:yo,"idn-hostname":fo,iri:jo,"iri-reference":Po,uri:zo,"uri-reference":So,"uri-template":Mo,uuid:wo,default:mi,"json-pointer":Ko,"relative-json-pointer":To,regex:Lo};function Ro(u,a,e,r){let i=u.format||"default",n=No[i]||mi,o=r&&r.propertyName;return n(u.minLength||0,u.maxLength,o,u.pattern,a?.enablePatterns)}var Fi={};const Ho={skipReadOnly:!1,maxSampleDepth:15};function Go(u,a){if(!u)throw new Error("Unknown format output for building XML.");return(Array.isArray(u)||Object.keys(u).length>1)&&(u={[a?.xml?.name||"root"]:u}),new C.Builder({ignoreAttributes:!1,format:!0,attributeNamePrefix:"$",textNodeName:"#text",cdataPropName:"#cdata"}).build(u)}function Vo(u,a,e){let r=Object.assign({},Ho,a);Do();let i=Su(u,r,e).value;return r?.format==="xml"?Go(i,u):i}function l0(u,a){Fi[u]=a}l0("array",xo);l0("boolean",co);l0("integer",di);l0("number",di);l0("object",mo);l0("string",Ro);function ki(u,a){if(u)try{return Vo(u,{skipReadOnly:!0,skipNonRequired:!1,quiet:!0})}catch(e){a.error(C.bgRed(" Error while generating test data from JSON Schema ")+`
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("./replay-index-D85qPcEF.js"),h0=require("./replay-resolve-CQzlNcS2.js"),wu=require("./replay-lint-DyUeemr_.js");function q1(u){return C.isPlainObject(u)&&"name"in u&&"value"in u&&!("in"in u)}function ze(u){return C.isPlainObject(u)&&"in"in u&&typeof u.in=="string"&&["header","query","path","cookie"].includes(u.in)}const Z1=/^image\/(png|jpeg|gif|bmp|webp|svg\+xml)|application\/pdf$/;function ti(u){return u.startsWith("$file(")&&u.endsWith(")")?u.substring(7,u.length-2):u}const ha=async(u,a,e,r,i)=>{const n=C.pathBrowserifyExports.dirname(r),o=C.pathBrowserifyExports.resolve(n,ti(e));u.append(a,await i.options.requestFileLoader.getFileBody(o))},si=(u,a,e,r,i,n)=>{Object.entries(e).forEach(([o,s])=>{const E=n?`${n}[${o}]`:o;typeof s=="string"&&s.startsWith("$file(")&&s.endsWith(")")?u.push(ha(a,E,s,r,i)):Array.isArray(s)?s.forEach(l=>{typeof l=="string"&&l.startsWith("$file(")&&l.endsWith(")")?u.push(ha(a,E,l,r,i)):a.append(E,l.toString())}):C.isPlainObject(s)?si(u,a,s,r,i,E):(typeof s=="string"||typeof s=="number"||typeof s=="boolean")&&a.append(E,s.toString())})},U1=async(u,a,e,r)=>{if(C.isPlainObject(u)){const i=[];si(i,a,u,e,r),await Promise.all(i)}},Y1=async(u,a)=>{if(typeof u=="string"&&u.startsWith("$file(")&&u.endsWith(")")){const e=C.pathBrowserifyExports.resolve(C.pathBrowserifyExports.dirname(a.options.filePath),ti(u));return a.options.requestFileLoader.getFileBody(e)}else return u};async function Q1(u,a){if(!u)return{payload:void 0,contentType:void 0,encoding:void 0,replacements:void 0};const{payload:e,contentType:r}=u;if(r==="multipart/form-data"){const i=new FormData,n=C.pathBrowserifyExports.resolve(a.options.filePath);return await U1(e,i,n,a),{...u,payload:i}}else{if(r==="application/octet-stream"||typeof r=="string"&&Z1.test(r))return{...u,payload:await Y1(e,a),contentType:"application/octet-stream"};if(r==="application/x-www-form-urlencoded"&&typeof e=="string")return{...u,payload:Object.fromEntries(new URLSearchParams(e).entries()),contentType:"application/x-www-form-urlencoded"}}return u}function X1({payload:u,replacements:a,expressionContext:e,logger:r}){for(const i of a){const{target:n,value:o}=i;if(typeof n!="string")throw new Error(`Invalid JSON Pointer: ${n}`);try{const s=C.JsonPointerLib.get(u,n),E=C.evaluateRuntimeExpressionPayload({payload:o,context:e,logger:r});s!==void 0&&C.JsonPointerLib.set(u,n,E)}catch{throw new Error(`Invalid JSON Pointer: ${n}`)}}}const uo=["parameters","failureActions","successActions"];function eo(u,a){const{reference:e,value:r}=u;if(!uo.some(n=>e.includes(`$components.${n}`)))throw new Error("Invalid reference: available components are $components.parameters, $components.failureActions, or $components.successActions");const i=C.getValueFromContext({value:e,ctx:a,logger:a.options.logger});return C.isPlainObject(i)&&"value"in i&&r?{...i,value:r}:i}function k0(u,a){return"reference"in u?eo(u,a):u}const ru={SUCCESS_CRITERIA_CHECK:"success criteria check",STATUS_CODE_CHECK:"status code check",SCHEMA_CHECK:"schema check",CONTENT_TYPE_CHECK:"content-type check",GLOBAL_TIMEOUT_ERROR:"global timeout error",MAX_STEPS_REACHED_ERROR:"maximum steps reached",NETWORK_ERROR:"failed network request",UNEXPECTED_ERROR:"unexpected error"};class li extends Error{}class Ei extends li{}class Di extends li{}async function ao(u){const{descriptionPath:a,externalRefResolver:e,base:r}=u,i=await wu.bundle({base:r,ref:a,config:u.config,dereference:!0,externalRefResolver:e});if(!i)throw new Error(`Could not find source description file '${a}'.`);return i.bundle.parsed}const io={title:"[REPLACE WITH API title]",version:"[REPLACE WITH API version]"},pe=Symbol("skip");function c0(u){return u<10?"0"+u:u}function ro(u,a,e,r){var i=e?"":u.getUTCFullYear()+"-"+c0(u.getUTCMonth()+1)+"-"+c0(u.getUTCDate());return a||(i+="T"+c0(u.getUTCHours())+":"+c0(u.getUTCMinutes())+":"+c0(u.getUTCSeconds())+"Z"),i}function xi(u,a){return a>u.length?u.repeat(Math.trunc(a/u.length)+1).substring(0,a):u}function V0(...u){const a=e=>e&&typeof e=="object";return u.reduce((e,r)=>(Object.keys(r||{}).forEach(i=>{const n=e[i],o=r[i];a(n)&&a(o)?e[i]=V0(n,o):e[i]=o}),e),Array.isArray(u[u.length-1])?[]:{})}function no(u){var a=so(u),e=lo(a,a,a,a),r="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,i=>{var n=e()*16%16|0;return(i=="x"?n:n&3|8).toString(16)});return r}function te(u){return{value:u==="object"?{}:u==="array"?[]:void 0}}function Vu(u,a){a&&u.pop()}function oo(u){return{name:u?.xml?.name||"",prefix:u?.xml?.prefix||"",namespace:u?.xml?.namespace||null,attribute:u?.xml?.attribute??!1,wrapped:u?.xml?.wrapped??!1}}function to(u){const a=u?.xml;return a?.nodeType?a.nodeType:a?.attribute===!0?"attribute":a?.wrapped===!0&&u?.type==="array"?"element":u?.$ref||u?.$dynamicRef||u?.type==="array"||u?.oneOf||u?.anyOf||u?.allOf?"none":"element"}function J0(u,a={},e={}){const{value:r}=u,{propertyName:i}=e,{name:n,prefix:o,namespace:s}=oo(a),E=to(a);let l=n||i?`${o?o+":":""}${n||i}`:null,D=typeof r=="object"?Array.isArray(r)?[...r]:{...r}:r;switch(E){case"attribute":l&&(l=`$${l}`);break;case"text":l="#text";break;case"cdata":l="#cdata";break;case"none":a.type==="array"?(l=null,a.example!==void 0&&(l=a.items?.xml?.name||l)):l=null;break;default:a.type==="array"&&Array.isArray(D)&&(D={[l]:[...D]});break}return s&&E!=="text"&&E!=="cdata"&&E!=="none"&&(typeof D=="object"?D[`$xmlns${o?":"+o:""}`]=s:D={[`$xmlns${o?":"+o:""}`]:s,"#text":D}),{propertyName:l,value:D}}function so(u){var a=0;if(u.length==0)return a;for(var e=0;e<u.length;e++){var r=u.charCodeAt(e);a=(a<<5)-a+r,a=a&a}return a}function lo(u,a,e,r){return function(){u|=0,a|=0,e|=0,r|=0;var i=u-(a<<27|a>>>5)|0;return u=a^(e<<17|e>>>15),a=e+r|0,e=r+i|0,r=u+i|0,(r>>>0)/4294967296}}function Eo(u,a,e,r,i){let n=Su(u,e,r);const o=[];for(let s of a){const{type:E,readOnly:l,writeOnly:D,value:d}=Su({type:n.type,...s},e,r,{...i,isAllOfChild:!0});n.type&&E&&E!==n.type&&(console.warn("allOf: schemas with different types can't be merged"),n.type=E),n.type=n.type||E,n.readOnly=n.readOnly||l,n.writeOnly=n.writeOnly||D,d!=null&&o.push(d)}if(n.type==="object"){n.value=V0(n.value||{},...o.filter(s=>typeof s=="object"));for(const s in n.value)n.value[s]===pe&&delete n.value[s];return n}else{n.type==="array"&&(e.quiet||console.warn('OpenAPI Sampler: found allOf with "array" type. Result may be incorrect'));const s=o[o.length-1];return n.value=s??n.value,n}}const ga={multipleOf:"number",maximum:"number",exclusiveMaximum:"number",minimum:"number",exclusiveMinimum:"number",maxLength:"string",minLength:"string",pattern:"string",items:"array",maxItems:"array",minItems:"array",uniqueItems:"array",additionalItems:"array",maxProperties:"object",minProperties:"object",required:"object",additionalProperties:"object",properties:"object",patternProperties:"object",dependencies:"object"};function z0(u){if(u.type!==void 0)return Array.isArray(u.type)?u.type.length===0?null:u.type[0]:u.type;const a=Object.keys(ga);for(var e=0;e<a.length;e++){let r=a[e],i=ga[r];if(u[r]!==void 0)return i}return null}let N0={},zu=[];function Do(){N0={},zu=[]}function ci(u){let a;return u.const!==void 0?a=u.const:u.examples!==void 0&&u.examples.length?a=u.examples[0]:u.enum!==void 0&&u.enum.length?a=u.enum[0]:u.default!==void 0&&(a=u.default),a}function pa(u){const a=ci(u);if(a!==void 0)return{value:a,readOnly:u.readOnly,writeOnly:u.writeOnly,type:null}}function Su(u,a,e,r){if(r){if(zu.includes(u))return te(z0(u));zu.push(u)}if(r&&r.depth>a.maxSampleDepth)return Vu(zu,r),te(z0(u));if(u.$ref){if(!e)throw new Error("Your schema contains $ref. You must provide full specification in the third parameter.");let s=decodeURIComponent(u.$ref);s.startsWith("#")&&(s=s.substring(1));const E=C.JsonPointerLib.get(e,s);let l;if(N0[s]!==!0){N0[s]=!0;const D=Su(E,a,e,r);if(a.format==="xml"){const d=s.split("/").pop(),F={...r,propertyName:r?.propertyName||d},{propertyName:k,value:B}=J0(D,E,F);l={...D,value:{[k||"root"]:B}}}else l=D;N0[s]=!1}else{const D=z0(E);l=te(D)}return Vu(zu,r),l}if(u.example!==void 0)return Vu(zu,r),{value:u.example,readOnly:u.readOnly,writeOnly:u.writeOnly,type:u.type};if(u.allOf!==void 0)return Vu(zu,r),pa(u)||Eo({...u,allOf:void 0},u.allOf,a,e,r);if(u.oneOf&&u.oneOf.length){u.anyOf&&(a.quiet||console.warn("oneOf and anyOf are not supported on the same level. Skipping anyOf")),Vu(zu,r);const s=Object.assign({readOnly:u.readOnly,writeOnly:u.writeOnly},u.oneOf[0]);return o(u,s)}if(u.anyOf&&u.anyOf.length){Vu(zu,r);const s=Object.assign({readOnly:u.readOnly,writeOnly:u.writeOnly},u.anyOf[0]);return o(u,s)}if(u.if&&u.then){Vu(zu,r);const{if:s,then:E,...l}=u;return Su(V0(l,s,E),a,e,r)}let i=ci(u),n=null;if(i===void 0){i=null,n=u.type,Array.isArray(n)&&u.type.length>0&&(n=u.type[0]),n||(n=z0(u));let s=Fi[n];s&&(i=s(u,a,e,r))}return Vu(zu,r),{value:i,readOnly:u.readOnly,writeOnly:u.writeOnly,type:n};function o(s,E){const l=pa(s);if(l!==void 0)return l;const D=Su({...s,oneOf:void 0,anyOf:void 0},a,e,r),d=Su(E,a,e,r);if(typeof D.value=="object"&&typeof d.value=="object"){const F=V0(D.value,d.value);return{...d,value:F}}return d}}function xo(u,a={},e,r){const i=r&&r.depth||1;let n=Math.min(u.maxItems!=null?u.maxItems:1/0,u.minItems||1);const o=u.prefixItems||u.items||u.contains;Array.isArray(o)&&(n=Math.max(n,o.length));let s=l=>Array.isArray(o)?o[l]||{}:o||{},E=[];if(!o)return E;for(let l=0;l<n;l++){let D=s(l),{value:d}=Su(D,a,e,{depth:i+1});if(a?.format==="xml"){const{value:F,propertyName:k}=J0({value:d},D,r);k?(E?.[k]||(E={...E,[k]:[]}),E[k].push(F)):E={...E,...F}}else E.push(d)}if(a?.format==="xml"&&i===1){const{value:l,propertyName:D}=J0({value:null},u,r);D&&(l?E=Array.isArray(E)?{[D]:{...l,...E.map(d=>({"#text":{...d}}))}}:{[D]:{...E,...l}}:E={[D]:E})}return E}function co(u){return!0}function di(u){let a=0;if(u.type==="number"&&(u.format==="float"||u.format==="double")&&(a=.1),typeof u.exclusiveMinimum=="boolean"||typeof u.exclusiveMaximum=="boolean"){if(u.maximum&&u.minimum)return a=u.exclusiveMinimum?Math.floor(u.minimum)+1:u.minimum,(u.exclusiveMaximum&&a>=u.maximum||!u.exclusiveMaximum&&a>u.maximum)&&(a=(u.maximum+u.minimum)/2),a;if(u.minimum)return u.exclusiveMinimum?Math.floor(u.minimum)+1:u.minimum;if(u.maximum)return u.exclusiveMaximum?u.maximum>0?0:Math.floor(u.maximum)-1:u.maximum>0?0:u.maximum}else{if(u.minimum)return u.minimum;u.exclusiveMinimum?(a=Math.floor(u.exclusiveMinimum)+1,a===u.exclusiveMaximum&&(a=(a+Math.floor(u.exclusiveMaximum)-1)/2)):u.exclusiveMaximum?a=Math.floor(u.exclusiveMaximum)-1:u.maximum&&(a=u.maximum)}return a}function mo(u,a={},e,r){let i={};const n=r&&r.depth||1;if(u&&typeof u.properties=="object"){const o=Array.isArray(u.required)?u.required:[],s={};for(const E of o)s[E]=!0;Object.keys(u.properties).forEach(E=>{if(a.skipNonRequired&&!s.hasOwnProperty(E))return;const l=Su(u.properties[E],a,e,{propertyName:E,depth:n+1});if(a.skipReadOnly&&l.readOnly){r?.isAllOfChild&&(i[E]=pe);return}if(a.skipWriteOnly&&l.writeOnly){r?.isAllOfChild&&(i[E]=pe);return}if(a?.format==="xml"){const{propertyName:D,value:d}=J0(l,u.properties[E],{propertyName:E});D?i[D]=d:d!==null&&typeof d=="object"&&(i={...i,...d})}else i[E]=l.value})}if(u&&typeof u.additionalProperties=="object"){const o=u.additionalProperties["x-additionalPropertiesName"]||"property";i[`${String(o)}1`]=Su(u.additionalProperties,a,e,{depth:n+1}).value,i[`${String(o)}2`]=Su(u.additionalProperties,a,e,{depth:n+1}).value}if(u&&typeof u.properties=="object"&&u.maxProperties!==void 0&&Object.keys(i).length>u.maxProperties){const o={};let s=0;(Array.isArray(u.required)?u.required:[]).forEach(l=>{i[l]!==void 0&&(o[l]=i[l],s++)}),Object.keys(i).forEach(l=>{s<u.maxProperties&&!o.hasOwnProperty(l)&&(o[l]=i[l],s++)}),i=o}return i}function g0(u,a){return u}function va(u,a,e){let r=1;if(u)switch(u){case"?":{r=0;break}case"*":{r=g0(0);break}case"+":{r=g0(1);break}default:throw new Error("Unknown quantifier symbol provided.")}else a!=null&&e!=null?r=g0(parseInt(a)):a!=null&&e==null&&(r=parseInt(a));return r}function Fo(u){let a=!1;u instanceof RegExp&&(a=u.flags.includes("i"),u=u.toString(),u=u.match(/\/(.+?)\//)?.[1]??""),u=u.replace(/^(\^)?(.*?)(\$)?$/,"$2");let e,r,i;const n=/([.A-Za-z0-9])(?:\{(\d+)(?:\,(\d+)|)\}|(\?|\*|\+))(?![^[]*]|[^{]*})/;let o=u.match(n);for(;o!=null;){const d=o[2],F=o[3],k=o[4];i=va(k,d,F),u=u.slice(0,o.index)+o[1].repeat(i)+u.slice(o.index+o[0].length),o=u.match(n)}const s=/(\d-\d|\w-\w|\d|\w|[-!@#$&()`.+,/"])/,E=/\[(\^|)(-|)(.+?)\](?:\{(\d+)(?:\,(\d+)|)\}|(\?|\*|\+)|)/;for(o=u.match(E);o!=null;){const d=o[1]==="^",F=o[2]==="-",k=o[4],B=o[5],y=o[6],K=[];let V=o[3],H=V.match(s);for(F&&K.push(45);H!=null;){if(H[0].indexOf("-")===-1)a&&isNaN(Number(H[0]))?(K.push(H[0].toUpperCase().charCodeAt(0)),K.push(H[0].toLowerCase().charCodeAt(0))):K.push(H[0].charCodeAt(0));else{const v=H[0].split("-").map(h=>h.charCodeAt(0));if(e=v[0],r=v[1],e>r)throw new Error("Character range provided is out of order.");for(let h=e;h<=r;h++)if(a&&isNaN(Number(String.fromCharCode(h)))){const z=String.fromCharCode(h);K.push(z.toUpperCase().charCodeAt(0)),K.push(z.toLowerCase().charCodeAt(0))}else K.push(h)}V=V.substring(H[0].length),H=V.match(s)}if(i=va(y,k,B),d){let v=-1;for(let h=48;h<=57;h++){if(v=K.indexOf(h),v>-1){K.splice(v,1);continue}K.push(h)}for(let h=65;h<=90;h++){if(v=K.indexOf(h),v>-1){K.splice(v,1);continue}K.push(h)}for(let h=97;h<=122;h++){if(v=K.indexOf(h),v>-1){K.splice(v,1);continue}K.push(h)}}const G=Array.from({length:i},()=>String.fromCharCode(K[g0(0)])).join("");u=u.slice(0,o.index)+G+u.slice(o.index+o[0].length),o=u.match(E)}const l=/(.)\{(\d+)\,(\d+)\}/;for(o=u.match(l);o!=null;){if(e=parseInt(o[2]),r=parseInt(o[3]),e>r)throw new Error("Numbers out of order in {} quantifier.");i=g0(e),u=u.slice(0,o.index)+o[1].repeat(i)+u.slice(o.index+o[0].length),o=u.match(l)}const D=/(.)\{(\d+)\}/;for(o=u.match(D);o!=null;)i=parseInt(o[2]),u=u.slice(0,o.index)+o[1].repeat(i)+u.slice(o.index+o[0].length),o=u.match(D);return u}const ko="qwerty!@#$%^123456";function Co(){return"user@example.com"}function ho(){return"пошта@укр.нет"}function go(u,a){let e="pa$$word";return u>e.length&&(e+="_",e+=xi(ko,u-e.length).substring(0,u-e.length)),e}function Se({min:u,max:a,omitTime:e,omitDate:r}){let i=ro(new Date("2019-08-24T14:15:22.123Z"),e,r);return i.length<u&&console.warn(`Using minLength = ${u} is incorrect with format "date-time"`),a&&i.length>a&&console.warn(`Using maxLength = ${a} is incorrect with format "date-time"`),i}function po(u,a){return Se({min:u,max:a,omitTime:!1,omitDate:!1})}function vo(u,a){return Se({min:u,max:a,omitTime:!0,omitDate:!1})}function bo(u,a){return Se({min:u,max:a,omitTime:!1,omitDate:!0}).slice(1)}function mi(u,a,e,r,i=!1){if(r&&i)return Fo(r);let n=xi("string",u);return a&&n.length>a&&(n=n.substring(0,a)),n}function Bo(){return"192.168.0.1"}function Ao(){return"2001:0db8:85a3:0000:0000:8a2e:0370:7334"}function yo(){return"example.com"}function fo(){return"приклад.укр"}function zo(){return"http://example.com"}function So(){return"../dictionary"}function Mo(){return"http://example.com/{endpoint}"}function jo(){return"http://example.com/entity/1"}function Po(){return"/entity/1"}function wo(u,a,e){return no(e||"id")}function Ko(){return"/json/pointer"}function To(){return"1/relative/json/pointer"}function Lo(){return"/regex/"}const No={email:Co,"idn-email":ho,password:go,"date-time":po,date:vo,time:bo,ipv4:Bo,ipv6:Ao,hostname:yo,"idn-hostname":fo,iri:jo,"iri-reference":Po,uri:zo,"uri-reference":So,"uri-template":Mo,uuid:wo,default:mi,"json-pointer":Ko,"relative-json-pointer":To,regex:Lo};function Ro(u,a,e,r){let i=u.format||"default",n=No[i]||mi,o=r&&r.propertyName;return n(u.minLength||0,u.maxLength,o,u.pattern,a?.enablePatterns)}var Fi={};const Ho={skipReadOnly:!1,maxSampleDepth:15};function Go(u,a){if(!u)throw new Error("Unknown format output for building XML.");return(Array.isArray(u)||Object.keys(u).length>1)&&(u={[a?.xml?.name||"root"]:u}),new C.Builder({ignoreAttributes:!1,format:!0,attributeNamePrefix:"$",textNodeName:"#text",cdataPropName:"#cdata"}).build(u)}function Vo(u,a,e){let r=Object.assign({},Ho,a);Do();let i=Su(u,r,e).value;return r?.format==="xml"?Go(i,u):i}function l0(u,a){Fi[u]=a}l0("array",xo);l0("boolean",co);l0("integer",di);l0("number",di);l0("object",mo);l0("string",Ro);function ki(u,a){if(u)try{return Vo(u,{skipReadOnly:!0,skipNonRequired:!1,quiet:!0})}catch(e){a.error(C.bgRed(" Error while generating test data from JSON Schema ")+`
|
|
2
2
|
`+e);return}}function Jo(u,a){if(u?.example)return u.example;if(C.isPlainObject(u?.examples))return Ci(u.examples);if(u?.schema)return ki(u.schema,a)}function Ci(u){if(C.isPlainObject(u)){const a=Object.keys(u)[0];return a?u[a]?.value:void 0}else return}function _o(u,a){const e=u?.requestBody?.content||{},[r,i]=Object.entries(e)[0]||[],n=i?.example||Ci(i?.examples)||ki(i?.schema,a),o=$o(u);return{parameters:Io([...ba(u.pathParameters,a),...ba(u.parameters,a)]).filter(({value:E})=>E),contentTypeParameters:[...r?[{name:"content-type",in:"header",value:r}]:[],...o?[{name:"accept",in:"header",value:o}]:[]],requestBody:n,contentType:r}}function $o(u){return u?.responses?Array.from(new Set(Object.values(u.responses).flatMap(a=>C.isPlainObject(a)&&"content"in a?Object.keys(a.content||{}):[]))).join(", "):void 0}function ba(u,a){return(u||[]).filter(e=>e?.required===!0).map(e=>{if(ze(e))return{name:e.name,in:e.in,value:Jo(e,a),...e.allowReserved&&{allowReserved:e.allowReserved}}}).filter(e=>e!==void 0)}function Io(u){const a={};for(const e of u)ze(e)&&(a[(e.name+":"+e.in).toLowerCase()]=e);return Object.values(a)}function Oo(u,a){let e,r;if(u.includes("$sourceDescriptions.")){const[,E,l]=u.split(".");e=E,r=l}else u.includes(".")?[e,r]=u.split("."):(r=u,e=Object.keys(a)[0]);const i=Object.keys(a);if(!a[e])throw new Error(`Unknown description name ${C.red(e)} at ${C.red(u)}. Available descriptions: ${i.join(", ")}.`);const n=a[e],o=n?.components?.securitySchemes,s=n.servers;for(const[E,l]of Object.entries(a[e].paths)){if(!l)return;for(const[D,d]of Object.entries(l))if(d.operationId===r)return{servers:l.servers||s,...d,pathParameters:d.parameters||[],path:E,method:D,descriptionName:e,securitySchemes:o}}throw new Error(`Unknown operationId ${C.red(r)} at ${C.red(u)}.`)}function Wo(u,a){const{$sourceDescriptions:e,sourceDescriptions:r}=a,[i,n]=u.split("#");if(!r)throw new Error("Missing described sourceDescriptions");const o=r.find(y=>{if(["openapi","arazzo"].includes(y.type)){if(i.includes("$sourceDescriptions.")){const[,K]=i.split(".");return y.name===K}return"url"in y&&y.url===i}return!1})?.name;if(!o)throw new Error(`Unknown operationPath ${C.red(u)}. API description ${C.red(i)} is not listed in 'sourceDescriptions' workflow section.`);const s=e[o]||{},E=s?.components?.securitySchemes,[l,D,d]=C.JsonPointerLib.parse(n);if(l!=="paths")throw new Error(`Invalid fragment identifier: ${n} at operationPath ${C.red(u)}.`);const{servers:F}=s,k=C.JsonPointerLib.get(s,n)||{},B=C.JsonPointerLib.get(s,C.JsonPointerLib.compile(["paths",D]))||{};return{servers:B.servers||F,...k,pathParameters:B.parameters||[],path:D,method:d,descriptionName:o,securitySchemes:E}}function qo(u,a){if(!u.operationId&&!u.operationPath)return;const{$sourceDescriptions:e,sourceDescriptions:r}=a,{operationId:i,operationPath:n}=u;return i?Oo(i,e):n?Wo(n,{$sourceDescriptions:e,sourceDescriptions:r}):void 0}function Zo({statusCode:u,contentType:a,descriptionResponses:e}){return e?(e[u]||e.default)?.content?.[a]?.schema:void 0}function Uo(u,a){if(!a)return;const r=a.requestBody?.content;return r&&r[u]?.schema||void 0}function hi({ctx:u,security:a,operation:e}){const{scheme:r,schemeName:i}=a;if(r)return a.scheme;if(i){if(typeof i=="string"&&i.startsWith("$sourceDescriptions.")){const[n,o,s]=i.split("."),l=(o&&u.$sourceDescriptions[o])?.components?.securitySchemes;return s&&l?l[s]:void 0}return e?.securitySchemes?.[i]}}function S0(){}function Ba(){return typeof WeakMap<"u"?new WeakMap:Yo()}function Yo(){return{add:S0,delete:S0,get:S0,set:S0,has:function(u){return!1}}}var Qo=Object.prototype.hasOwnProperty,ve=function(u,a){return Qo.call(u,a)};function se(u,a){for(var e in a)ve(a,e)&&(u[e]=a[e]);return u}var Xo=/^[ \t]*(?:\r\n|\r|\n)/,u4=/(?:\r\n|\r|\n)[ \t]*$/,e4=/^(?:[\r\n]|$)/,a4=/(?:\r\n|\r|\n)([ \t]*)(?:[^ \t\r\n]|$)/,i4=/^[ \t]*[\r\n][ \t\r\n]*$/;function Aa(u,a,e){var r=0,i=u[0].match(a4);i&&(r=i[1].length);var n="(\\r\\n|\\r|\\n).{0,"+r+"}",o=new RegExp(n,"g");a&&(u=u.slice(1));var s=e.newline,E=e.trimLeadingNewline,l=e.trimTrailingNewline,D=typeof s=="string",d=u.length,F=u.map(function(k,B){return k=k.replace(o,"$1"),B===0&&E&&(k=k.replace(Xo,"")),B===d-1&&l&&(k=k.replace(u4,"")),D&&(k=k.replace(/\r\n|\n|\r/g,function(y){return s})),k});return F}function r4(u,a){for(var e="",r=0,i=u.length;r<i;r++)e+=u[r],r<i-1&&(e+=a[r]);return e}function n4(u){return ve(u,"raw")&&ve(u,"length")}function gi(u){var a=Ba(),e=Ba();function r(n){for(var o=[],s=1;s<arguments.length;s++)o[s-1]=arguments[s];if(n4(n)){var E=n,l=(o[0]===r||o[0]===Pu)&&i4.test(E[0])&&e4.test(E[1]),D=l?e:a,d=D.get(E);if(d||(d=Aa(E,l,u),D.set(E,d)),o.length===0)return d[0];var F=r4(d,l?o.slice(1):o);return F}else return gi(se(se({},u),n||{}))}var i=se(r,{string:function(n){return Aa([n],!1,u)[0]}});return i}var Pu=gi({trimLeadingNewline:!0,trimTrailingNewline:!0});if(typeof module<"u")try{module.exports=Pu,Object.defineProperty(Pu,"__esModule",{value:!0}),Pu.default=Pu,Pu.outdent=Pu}catch{}function o4(u){return!h0.isBrowser&&process.env.NODE_ENV==="test"?"<test>ms":`${Math.ceil(performance.now()-u)}ms`}function W0(u){const a=u.length;let e=0,r=0,i=0,n=0,o=0,s=0,E=0;const l=new Set;let D=0;const d=new Set,F=new Set;for(const k of u){const B=pi(k.executedSteps);let y=!1;for(const K of B){if(n++,K.retriesLeft&&K.retriesLeft!==0)continue;i++;let V=!1;for(const H of K.checks)if(r++,!H.passed)switch(H.severity){case"warn":o++,l.add(k.workflowId),F.add(k.workflowId+":"+K.stepId);break;case"off":s++,d.add(k.workflowId+":"+K.stepId);break;default:e++,V=!0}V&&(D++,y=!0)}y&&E++}return{workflows:{passed:a-E,failed:E,warnings:l.size,skipped:0,total:a},steps:{passed:i-D,failed:D,warnings:F.size,skipped:d.size,total:i},checks:{passed:r-e,failed:e,warnings:o,skipped:s,total:r},totalRequests:n}}function pi(u){return u.flatMap(a=>"executedSteps"in a?pi(a.executedSteps):[a])}function t4(u){try{return JSON.parse(u),!0}catch{return!1}}function s4(u,a){const e=u.endsWith("/")?u.slice(0,-1):u,r=a.startsWith("/")?a.slice(1):a;return`${e}/${r}`}const ya=50;function vi({testNameToDisplay:u,checks:a,verboseLogs:e,verboseResponseLogs:r,logger:i}){const n=a.every(({passed:o})=>o);i.output(` ${n?C.green("✓"):C.red("✗")} ${C.blue(u)}`),e&&(i.output(`${hu}
|
|
3
3
|
`+(fa({logs:e,logger:i})||"")),i.printNewLine()),r&&(i.output(`${hu}
|
|
4
4
|
`+(fa({logs:r,type:"response",logger:i})||"")),i.printNewLine()),i.printNewLine();for(const o of a)i.output(`${au(l4(o,o.severity),4)}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { aV as h, $ as x, aW as i } from "./replay-index-
|
|
2
|
-
import { aX as b, aY as j, Y as y } from "./replay-index-
|
|
1
|
+
import { aV as h, $ as x, aW as i } from "./replay-index-B2RZCGOF.js";
|
|
2
|
+
import { aX as b, aY as j, Y as y } from "./replay-index-B2RZCGOF.js";
|
|
3
3
|
async function u(n, e) {
|
|
4
4
|
const t = x(), l = await i(n), c = await i(e), o = l.replace(new RegExp(`^${t}+`), "").split(t).filter(Boolean), r = c.replace(new RegExp(`^${t}+`), "").split(t).filter(Boolean), m = Math.min(o.length, r.length);
|
|
5
5
|
let s = 0;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./replay-index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./replay-index-D85qPcEF.js");async function u(r,n){const t=e.sep(),l=await e.resolve(r),c=await e.resolve(n),a=l.replace(new RegExp(`^${t}+`),"").split(t).filter(Boolean),i=c.replace(new RegExp(`^${t}+`),"").split(t).filter(Boolean),m=Math.min(a.length,i.length);let s=0;for(let o=0;o<m&&a[o]===i[o];o++)s++;const p=a.slice(s).map(()=>".."),f=i.slice(s);return[...p,...f].join(t)}async function g(r){const n=await e.extname(r);return n?`.${n}`:""}exports.dirname=e.dirname;exports.isAbsolute=e.isAbsolute;exports.join=e.join;exports.resolve=e.resolve;exports.extname=g;exports.relative=u;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const ge=require("react"),d=require("./replay-index-
|
|
1
|
+
"use strict";const ge=require("react"),d=require("./replay-index-D85qPcEF.js"),m=require("./replay-db-BZNR8xEd.js"),n=require("./replay-create-model-DB6xE5Ap.js"),S=require("./replay-SemanticSearchService--QXHzf7_.js"),we=require("@tanstack/react-query"),$={path:"pathParameters",query:"queryParameters",header:"headers",cookie:"cookies"},rt={run_request:{approveLabel:"Run",denyLabel:"Skip"},update_step:{approveLabel:"Apply",denyLabel:"Dismiss"},update_security:{approveLabel:"Apply",denyLabel:"Dismiss"}},st={set_active_environment:{approveLabel:"Switch",denyLabel:"Cancel"},add_environment:{approveLabel:"Add",denyLabel:"Cancel"},upsert_input:{approveLabel:"Set",denyLabel:"Cancel"},upsert_server:{approveLabel:"Set",denyLabel:"Cancel"},remove_input:{approveLabel:"Remove",denyLabel:"Cancel"},remove_server:{approveLabel:"Remove",denyLabel:"Cancel"},create_collection:{approveLabel:"Create",denyLabel:"Cancel"},create_workflow:{approveLabel:"Create",denyLabel:"Cancel"},create_step:{approveLabel:"Create",denyLabel:"Cancel"},move_step:{approveLabel:"Move",denyLabel:"Cancel"},delete_collection:{approveLabel:"Delete",denyLabel:"Cancel"},delete_workflow:{approveLabel:"Delete",denyLabel:"Cancel"},delete_step:{approveLabel:"Delete",denyLabel:"Cancel"},save_tab_to_collection:{approveLabel:"Save",denyLabel:"Cancel"}},it={CHAT:"chat",HISTORY:"history"},at="report_status",ct="run_workflow",q={WEB_SEARCH:"web_search"};function lt(e){switch(e.provider){case d.AI_PROVIDERS.GEMINI:return{[q.WEB_SEARCH]:n.google.tools.googleSearch({})};case d.AI_PROVIDERS.OPENAI:return{[q.WEB_SEARCH]:n.openai.tools.webSearch({})};case d.AI_PROVIDERS.ANTHROPIC:return{[q.WEB_SEARCH]:n.anthropic.tools.webFetch_20250910()};case d.REUNITE_AI_PROVIDER:return{[q.WEB_SEARCH]:{type:"provider",id:"reunite.web_search",name:"web_search",args:{}}};default:return{}}}const dt=["info","workflows","sourceDescriptions"];function ut(e){const t=[];return e.collectionId&&t.push(`Collection ID: ${e.collectionId}`),e.collection?.info?.title&&t.push(`Title: ${e.collection.info.title}`),e.collection?.info?.summary&&t.push(`Summary: ${e.collection.info.summary}`),e.collection?.info?.description&&t.push(`Description: ${e.collection.info.description}`),m.buildMessageFromArray(t,`
|
|
2
2
|
`)}function pt(e){const t=[];if(e.collection?.workflows?.length){t.push("Workflows:");for(const o of e.collection.workflows)t.push(` workflowId=${o.workflowId} ${o.summary??""}`)}return m.buildMessageFromArray(t,`
|
|
3
3
|
`)}function ft(e){const t=[];if(e.collection?.sourceDescriptions?.length){t.push("Source descriptions:");for(const o of e.collection.sourceDescriptions)t.push(` name=${o.name} url=${o.url}`)}return m.buildMessageFromArray(t,`
|
|
4
4
|
`)}function mt(e,t){const o=["Current tab (collection)"];for(const r of t)switch(r){case"info":o.push(ut(e));break;case"workflows":o.push(pt(e));break;case"sourceDescriptions":o.push(ft(e));break}return m.buildMessageFromArray(o,`
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { useContext as Et, createContext as $t } from "react";
|
|
2
|
-
import { F as _t, V as ae, aj as H, ak as Rt, al as qt, am as Pt, h as O, ab as D, an as Je, ao as ue, aa as pe, ap as Qe, aq as fe, ar as me, as as Nt, at as j, au as X, av as Xe, aw as Ze, n as he, ax as Ut, ay as Dt, az as Lt, I as Wt, aA as Mt, aB as et, aC as tt, aD as Ft, a4 as Z, aE as jt, T as ot, a3 as nt, aF as Bt, a8 as g, aG as Oe, aH as Yt, aI as Ae, aJ as zt, aK as Ht, aL as Gt, A as rt, f as st } from "./replay-index-
|
|
3
|
-
import { b as k, f as at, a as it, c as ct, d as ee, e as lt, i as xe, h as Ie, R as L, j as Vt, k as Kt, p as Jt, s as Ee, l as Qt } from "./replay-db-
|
|
4
|
-
import { b as Xt, o as Zt, d as eo, e as p, u as te, f as i, h as E, j as T, n as S, k as U, m as I, q as b, r as we, t as B, v as oe, Z as W, w as to, x as $e, c as oo, s as no, y as ro } from "./replay-create-model-
|
|
5
|
-
import { g as so, c as _e, d as ao, f as io, h as Re, i as co, j as lo } from "./replay-SemanticSearchService-
|
|
2
|
+
import { F as _t, V as ae, aj as H, ak as Rt, al as qt, am as Pt, h as O, ab as D, an as Je, ao as ue, aa as pe, ap as Qe, aq as fe, ar as me, as as Nt, at as j, au as X, av as Xe, aw as Ze, n as he, ax as Ut, ay as Dt, az as Lt, I as Wt, aA as Mt, aB as et, aC as tt, aD as Ft, a4 as Z, aE as jt, T as ot, a3 as nt, aF as Bt, a8 as g, aG as Oe, aH as Yt, aI as Ae, aJ as zt, aK as Ht, aL as Gt, A as rt, f as st } from "./replay-index-B2RZCGOF.js";
|
|
3
|
+
import { b as k, f as at, a as it, c as ct, d as ee, e as lt, i as xe, h as Ie, R as L, j as Vt, k as Kt, p as Jt, s as Ee, l as Qt } from "./replay-db-BiP6dME4.js";
|
|
4
|
+
import { b as Xt, o as Zt, d as eo, e as p, u as te, f as i, h as E, j as T, n as S, k as U, m as I, q as b, r as we, t as B, v as oe, Z as W, w as to, x as $e, c as oo, s as no, y as ro } from "./replay-create-model-NrGYVueM.js";
|
|
5
|
+
import { g as so, c as _e, d as ao, f as io, h as Re, i as co, j as lo } from "./replay-SemanticSearchService-DJ_jBUyi.js";
|
|
6
6
|
import { useInfiniteQuery as uo, useQuery as po } from "@tanstack/react-query";
|
|
7
7
|
const G = {
|
|
8
8
|
path: "pathParameters",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./replay-create-model-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./replay-create-model-DB6xE5Ap.js"),n=require("./replay-index-D85qPcEF.js"),l=require("./replay-defaults-DVvOnvnR.js");async function s(t,a,o,i){try{const e=r.createModel({provider:t,modelId:o,apiKey:a});return await r.generateText({model:e,prompt:l.VALIDATION_PROMPT,maxOutputTokens:n.MAX_OUTPUT_TOKENS_FOR_VALIDATION,abortSignal:i?.abortSignal}),{valid:!0}}catch(e){if(e instanceof Error&&e.name==="AbortError")throw e;return{valid:!1,error:e instanceof Error&&e.message.length>0?e.message:"Validation failed. Please try again."}}}exports.validateApiKey=s;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as i, g as n } from "./replay-create-model-
|
|
2
|
-
import { M as s } from "./replay-index-
|
|
1
|
+
import { c as i, g as n } from "./replay-create-model-NrGYVueM.js";
|
|
2
|
+
import { M as s } from "./replay-index-B2RZCGOF.js";
|
|
3
3
|
import { V as l } from "./replay-defaults-CzR6jw9a.js";
|
|
4
4
|
async function g(a, e, t, o) {
|
|
5
5
|
try {
|
package/dist/replay.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./replay-index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./replay-index-D85qPcEF.js"),t=require("./replay-oauth2-redirect-handler-Bqw5UUvl.js");exports.AI_PROVIDERS=e.AI_PROVIDERS;exports.AiPanelContext=e.AiPanelContext;exports.EmbeddedReplay=e.EmbeddedReplay;exports.Modal=e.Modal;exports.REUNITE_AI_PROVIDER=e.REUNITE_AI_PROVIDER;exports.Replay=e.Replay;exports.ReplayOverlay=e.ReplayOverlay;Object.defineProperty(exports,"SpanStatusCode",{enumerable:!0,get:()=>e.SpanStatusCode});exports.TelemetryClient=e.TelemetryClient;exports.applyThemeToDOM=e.applyThemeToDOM;exports.createResource=e.createResource;exports.getCurrentTheme=e.getCurrentTheme;exports.loadAgentLoop=e.loadAgentLoop;exports.makeProviderRecord=e.makeProviderRecord;exports.resolveTheme=e.resolveTheme;exports.useAiPanel=e.useAiPanel;exports.useTelemetry=e.useTelemetry;exports.useTelemetryClient=e.useTelemetryClient;exports.validateApiKey=e.validateApiKey;exports.OAuth2Error=t.OAuth2Error;exports.handleOAuth2Redirect=t.handleOAuth2Redirect;
|
package/dist/replay.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { V as s, G as r, bj as t, bk as l, F as o, bl as b, bm as d, d as m, bn as p, bo as R, b as n, bp as u, bq as y, br as i, bs as A, C as T, B as h, bt as O, bu as C } from "./replay-index-
|
|
1
|
+
import { V as s, G as r, bj as t, bk as l, F as o, bl as b, bm as d, d as m, bn as p, bo as R, b as n, bp as u, bq as y, br as i, bs as A, C as T, B as h, bt as O, bu as C } from "./replay-index-B2RZCGOF.js";
|
|
2
2
|
import { O as I, h as P } from "./replay-oauth2-redirect-handler-CqKZB3aV.js";
|
|
3
3
|
export {
|
|
4
4
|
s as AI_PROVIDERS,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@redocly/replay",
|
|
3
|
-
"version": "0.27.
|
|
3
|
+
"version": "0.27.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/replay.cjs",
|
|
6
6
|
"module": "./dist/replay.js",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"react-dom": "^19.2.7",
|
|
22
22
|
"react-router": "^8.3.0",
|
|
23
23
|
"styled-components": "^6.4.2",
|
|
24
|
-
"@redocly/theme": "0.68.
|
|
24
|
+
"@redocly/theme": "0.68.1"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@ai-sdk/anthropic": "4.0.4",
|