@openapi-studio/core 0.2.0 → 0.3.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.
@@ -1,4 +1,4 @@
1
- import{_ as aN}from"./app-jfWpanfK.js";function Ng(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var vj={},mj;function lN(){return mj||(mj=1,(function(t){(function(e){function n(E){return E!==null?Object.prototype.toString.call(E)==="[object Array]":!1}function r(E){return E!==null?Object.prototype.toString.call(E)==="[object Object]":!1}function o(E,D){if(E===D)return!0;var F=Object.prototype.toString.call(E);if(F!==Object.prototype.toString.call(D))return!1;if(n(E)===!0){if(E.length!==D.length)return!1;for(var ee=0;ee<E.length;ee++)if(o(E[ee],D[ee])===!1)return!1;return!0}if(r(E)===!0){var xe={};for(var Ne in E)if(hasOwnProperty.call(E,Ne)){if(o(E[Ne],D[Ne])===!1)return!1;xe[Ne]=!0}for(var Be in D)if(hasOwnProperty.call(D,Be)&&xe[Be]!==!0)return!1;return!0}return!1}function i(E){if(E===""||E===!1||E===null||n(E)&&E.length===0)return!0;if(r(E)){for(var D in E)if(E.hasOwnProperty(D))return!1;return!0}else return!1}function s(E){for(var D=Object.keys(E),F=[],ee=0;ee<D.length;ee++)F.push(E[D[ee]]);return F}var a;typeof String.prototype.trimLeft=="function"?a=function(E){return E.trimLeft()}:a=function(E){return E.match(/^\s*(.*)/)[1]};var l=0,u=1,h=2,d=3,f=4,p=5,v=6,g=7,m=8,b=9,y={0:"number",1:"any",2:"string",3:"array",4:"object",5:"boolean",6:"expression",7:"null",8:"Array<number>",9:"Array<string>"},w="EOF",j="UnquotedIdentifier",x="QuotedIdentifier",k="Rbracket",$="Rparen",T="Comma",M="Colon",z="Rbrace",V="Number",I="Current",J="Expref",he="Pipe",re="Or",Se="And",de="EQ",we="GT",ie="LT",X="GTE",W="LTE",ce="NE",N="Flatten",_="Star",P="Filter",oe="Dot",Ae="Not",ae="Lbrace",Y="Lbracket",ye="Lparen",A="Literal",q={".":oe,"*":_,",":T,":":M,"{":ae,"}":z,"]":k,"(":ye,")":$,"@":I},U={"<":!0,">":!0,"=":!0,"!":!0},fe={" ":!0," ":!0,"\n":!0};function Z(E){return E>="a"&&E<="z"||E>="A"&&E<="Z"||E==="_"}function H(E){return E>="0"&&E<="9"||E==="-"}function at(E){return E>="a"&&E<="z"||E>="A"&&E<="Z"||E>="0"&&E<="9"||E==="_"}function ct(){}ct.prototype={tokenize:function(E){var D=[];this._current=0;for(var F,ee,xe;this._current<E.length;)if(Z(E[this._current]))F=this._current,ee=this._consumeUnquotedIdentifier(E),D.push({type:j,value:ee,start:F});else if(q[E[this._current]]!==void 0)D.push({type:q[E[this._current]],value:E[this._current],start:this._current}),this._current++;else if(H(E[this._current]))xe=this._consumeNumber(E),D.push(xe);else if(E[this._current]==="[")xe=this._consumeLBracket(E),D.push(xe);else if(E[this._current]==='"')F=this._current,ee=this._consumeQuotedIdentifier(E),D.push({type:x,value:ee,start:F});else if(E[this._current]==="'")F=this._current,ee=this._consumeRawStringLiteral(E),D.push({type:A,value:ee,start:F});else if(E[this._current]==="`"){F=this._current;var Ne=this._consumeLiteral(E);D.push({type:A,value:Ne,start:F})}else if(U[E[this._current]]!==void 0)D.push(this._consumeOperator(E));else if(fe[E[this._current]]!==void 0)this._current++;else if(E[this._current]==="&")F=this._current,this._current++,E[this._current]==="&"?(this._current++,D.push({type:Se,value:"&&",start:F})):D.push({type:J,value:"&",start:F});else if(E[this._current]==="|")F=this._current,this._current++,E[this._current]==="|"?(this._current++,D.push({type:re,value:"||",start:F})):D.push({type:he,value:"|",start:F});else{var Be=new Error("Unknown character:"+E[this._current]);throw Be.name="LexerError",Be}return D},_consumeUnquotedIdentifier:function(E){var D=this._current;for(this._current++;this._current<E.length&&at(E[this._current]);)this._current++;return E.slice(D,this._current)},_consumeQuotedIdentifier:function(E){var D=this._current;this._current++;for(var F=E.length;E[this._current]!=='"'&&this._current<F;){var ee=this._current;E[ee]==="\\"&&(E[ee+1]==="\\"||E[ee+1]==='"')?ee+=2:ee++,this._current=ee}return this._current++,JSON.parse(E.slice(D,this._current))},_consumeRawStringLiteral:function(E){var D=this._current;this._current++;for(var F=E.length;E[this._current]!=="'"&&this._current<F;){var ee=this._current;E[ee]==="\\"&&(E[ee+1]==="\\"||E[ee+1]==="'")?ee+=2:ee++,this._current=ee}this._current++;var xe=E.slice(D+1,this._current-1);return xe.replace("\\'","'")},_consumeNumber:function(E){var D=this._current;this._current++;for(var F=E.length;H(E[this._current])&&this._current<F;)this._current++;var ee=parseInt(E.slice(D,this._current));return{type:V,value:ee,start:D}},_consumeLBracket:function(E){var D=this._current;return this._current++,E[this._current]==="?"?(this._current++,{type:P,value:"[?",start:D}):E[this._current]==="]"?(this._current++,{type:N,value:"[]",start:D}):{type:Y,value:"[",start:D}},_consumeOperator:function(E){var D=this._current,F=E[D];if(this._current++,F==="!")return E[this._current]==="="?(this._current++,{type:ce,value:"!=",start:D}):{type:Ae,value:"!",start:D};if(F==="<")return E[this._current]==="="?(this._current++,{type:W,value:"<=",start:D}):{type:ie,value:"<",start:D};if(F===">")return E[this._current]==="="?(this._current++,{type:X,value:">=",start:D}):{type:we,value:">",start:D};if(F==="="&&E[this._current]==="=")return this._current++,{type:de,value:"==",start:D}},_consumeLiteral:function(E){this._current++;for(var D=this._current,F=E.length,ee;E[this._current]!=="`"&&this._current<F;){var xe=this._current;E[xe]==="\\"&&(E[xe+1]==="\\"||E[xe+1]==="`")?xe+=2:xe++,this._current=xe}var Ne=a(E.slice(D,this._current));return Ne=Ne.replace("\\`","`"),this._looksLikeJSON(Ne)?ee=JSON.parse(Ne):ee=JSON.parse('"'+Ne+'"'),this._current++,ee},_looksLikeJSON:function(E){var D='[{"',F=["true","false","null"],ee="-0123456789";if(E==="")return!1;if(D.indexOf(E[0])>=0||F.indexOf(E)>=0)return!0;if(ee.indexOf(E[0])>=0)try{return JSON.parse(E),!0}catch{return!1}else return!1}};var Ee={};Ee[w]=0,Ee[j]=0,Ee[x]=0,Ee[k]=0,Ee[$]=0,Ee[T]=0,Ee[z]=0,Ee[V]=0,Ee[I]=0,Ee[J]=0,Ee[he]=1,Ee[re]=2,Ee[Se]=3,Ee[de]=5,Ee[we]=5,Ee[ie]=5,Ee[X]=5,Ee[W]=5,Ee[ce]=5,Ee[N]=9,Ee[_]=20,Ee[P]=21,Ee[oe]=40,Ee[Ae]=45,Ee[ae]=50,Ee[Y]=55,Ee[ye]=60;function pt(){}pt.prototype={parse:function(E){this._loadTokens(E),this.index=0;var D=this.expression(0);if(this._lookahead(0)!==w){var F=this._lookaheadToken(0),ee=new Error("Unexpected token type: "+F.type+", value: "+F.value);throw ee.name="ParserError",ee}return D},_loadTokens:function(E){var D=new ct,F=D.tokenize(E);F.push({type:w,value:"",start:E.length}),this.tokens=F},expression:function(E){var D=this._lookaheadToken(0);this._advance();for(var F=this.nud(D),ee=this._lookahead(0);E<Ee[ee];)this._advance(),F=this.led(ee,F),ee=this._lookahead(0);return F},_lookahead:function(E){return this.tokens[this.index+E].type},_lookaheadToken:function(E){return this.tokens[this.index+E]},_advance:function(){this.index++},nud:function(E){var D,F,ee;switch(E.type){case A:return{type:"Literal",value:E.value};case j:return{type:"Field",name:E.value};case x:var xe={type:"Field",name:E.value};if(this._lookahead(0)===ye)throw new Error("Quoted identifier not allowed for function names.");return xe;case Ae:return F=this.expression(Ee.Not),{type:"NotExpression",children:[F]};case _:return D={type:"Identity"},F=null,this._lookahead(0)===k?F={type:"Identity"}:F=this._parseProjectionRHS(Ee.Star),{type:"ValueProjection",children:[D,F]};case P:return this.led(E.type,{type:"Identity"});case ae:return this._parseMultiselectHash();case N:return D={type:N,children:[{type:"Identity"}]},F=this._parseProjectionRHS(Ee.Flatten),{type:"Projection",children:[D,F]};case Y:return this._lookahead(0)===V||this._lookahead(0)===M?(F=this._parseIndexExpression(),this._projectIfSlice({type:"Identity"},F)):this._lookahead(0)===_&&this._lookahead(1)===k?(this._advance(),this._advance(),F=this._parseProjectionRHS(Ee.Star),{type:"Projection",children:[{type:"Identity"},F]}):this._parseMultiselectList();case I:return{type:I};case J:return ee=this.expression(Ee.Expref),{type:"ExpressionReference",children:[ee]};case ye:for(var Ne=[];this._lookahead(0)!==$;)this._lookahead(0)===I?(ee={type:I},this._advance()):ee=this.expression(0),Ne.push(ee);return this._match($),Ne[0];default:this._errorToken(E)}},led:function(E,D){var F;switch(E){case oe:var ee=Ee.Dot;return this._lookahead(0)!==_?(F=this._parseDotRHS(ee),{type:"Subexpression",children:[D,F]}):(this._advance(),F=this._parseProjectionRHS(ee),{type:"ValueProjection",children:[D,F]});case he:return F=this.expression(Ee.Pipe),{type:he,children:[D,F]};case re:return F=this.expression(Ee.Or),{type:"OrExpression",children:[D,F]};case Se:return F=this.expression(Ee.And),{type:"AndExpression",children:[D,F]};case ye:for(var xe=D.name,Ne=[],Be,ge;this._lookahead(0)!==$;)this._lookahead(0)===I?(Be={type:I},this._advance()):Be=this.expression(0),this._lookahead(0)===T&&this._match(T),Ne.push(Be);return this._match($),ge={type:"Function",name:xe,children:Ne},ge;case P:var je=this.expression(0);return this._match(k),this._lookahead(0)===N?F={type:"Identity"}:F=this._parseProjectionRHS(Ee.Filter),{type:"FilterProjection",children:[D,F,je]};case N:var wt={type:N,children:[D]},ut=this._parseProjectionRHS(Ee.Flatten);return{type:"Projection",children:[wt,ut]};case de:case ce:case we:case X:case ie:case W:return this._parseComparator(D,E);case Y:var Ye=this._lookaheadToken(0);return Ye.type===V||Ye.type===M?(F=this._parseIndexExpression(),this._projectIfSlice(D,F)):(this._match(_),this._match(k),F=this._parseProjectionRHS(Ee.Star),{type:"Projection",children:[D,F]});default:this._errorToken(this._lookaheadToken(0))}},_match:function(E){if(this._lookahead(0)===E)this._advance();else{var D=this._lookaheadToken(0),F=new Error("Expected "+E+", got: "+D.type);throw F.name="ParserError",F}},_errorToken:function(E){var D=new Error("Invalid token ("+E.type+'): "'+E.value+'"');throw D.name="ParserError",D},_parseIndexExpression:function(){if(this._lookahead(0)===M||this._lookahead(1)===M)return this._parseSliceExpression();var E={type:"Index",value:this._lookaheadToken(0).value};return this._advance(),this._match(k),E},_projectIfSlice:function(E,D){var F={type:"IndexExpression",children:[E,D]};return D.type==="Slice"?{type:"Projection",children:[F,this._parseProjectionRHS(Ee.Star)]}:F},_parseSliceExpression:function(){for(var E=[null,null,null],D=0,F=this._lookahead(0);F!==k&&D<3;){if(F===M)D++,this._advance();else if(F===V)E[D]=this._lookaheadToken(0).value,this._advance();else{var ee=this._lookahead(0),xe=new Error("Syntax error, unexpected token: "+ee.value+"("+ee.type+")");throw xe.name="Parsererror",xe}F=this._lookahead(0)}return this._match(k),{type:"Slice",children:E}},_parseComparator:function(E,D){var F=this.expression(Ee[D]);return{type:"Comparator",name:D,children:[E,F]}},_parseDotRHS:function(E){var D=this._lookahead(0),F=[j,x,_];if(F.indexOf(D)>=0)return this.expression(E);if(D===Y)return this._match(Y),this._parseMultiselectList();if(D===ae)return this._match(ae),this._parseMultiselectHash()},_parseProjectionRHS:function(E){var D;if(Ee[this._lookahead(0)]<10)D={type:"Identity"};else if(this._lookahead(0)===Y)D=this.expression(E);else if(this._lookahead(0)===P)D=this.expression(E);else if(this._lookahead(0)===oe)this._match(oe),D=this._parseDotRHS(E);else{var F=this._lookaheadToken(0),ee=new Error("Sytanx error, unexpected token: "+F.value+"("+F.type+")");throw ee.name="ParserError",ee}return D},_parseMultiselectList:function(){for(var E=[];this._lookahead(0)!==k;){var D=this.expression(0);if(E.push(D),this._lookahead(0)===T&&(this._match(T),this._lookahead(0)===k))throw new Error("Unexpected token Rbracket")}return this._match(k),{type:"MultiSelectList",children:E}},_parseMultiselectHash:function(){for(var E=[],D=[j,x],F,ee,xe,Ne;;){if(F=this._lookaheadToken(0),D.indexOf(F.type)<0)throw new Error("Expecting an identifier token, got: "+F.type);if(ee=F.value,this._advance(),this._match(M),xe=this.expression(0),Ne={type:"KeyValuePair",name:ee,value:xe},E.push(Ne),this._lookahead(0)===T)this._match(T);else if(this._lookahead(0)===z){this._match(z);break}}return{type:"MultiSelectHash",children:E}}};function Le(E){this.runtime=E}Le.prototype={search:function(E,D){return this.visit(E,D)},visit:function(E,D){var F,ee,xe,Ne,Be,ge,je,wt,ut,Ye;switch(E.type){case"Field":return D!==null&&r(D)?(ge=D[E.name],ge===void 0?null:ge):null;case"Subexpression":for(xe=this.visit(E.children[0],D),Ye=1;Ye<E.children.length;Ye++)if(xe=this.visit(E.children[1],xe),xe===null)return null;return xe;case"IndexExpression":return je=this.visit(E.children[0],D),wt=this.visit(E.children[1],je),wt;case"Index":if(!n(D))return null;var Xe=E.value;return Xe<0&&(Xe=D.length+Xe),xe=D[Xe],xe===void 0&&(xe=null),xe;case"Slice":if(!n(D))return null;var Jt=E.children.slice(0),Un=this.computeSliceParams(D.length,Jt),Jn=Un[0],Kt=Un[1],Nn=Un[2];if(xe=[],Nn>0)for(Ye=Jn;Ye<Kt;Ye+=Nn)xe.push(D[Ye]);else for(Ye=Jn;Ye>Kt;Ye+=Nn)xe.push(D[Ye]);return xe;case"Projection":var rn=this.visit(E.children[0],D);if(!n(rn))return null;for(ut=[],Ye=0;Ye<rn.length;Ye++)ee=this.visit(E.children[1],rn[Ye]),ee!==null&&ut.push(ee);return ut;case"ValueProjection":if(rn=this.visit(E.children[0],D),!r(rn))return null;ut=[];var ln=s(rn);for(Ye=0;Ye<ln.length;Ye++)ee=this.visit(E.children[1],ln[Ye]),ee!==null&&ut.push(ee);return ut;case"FilterProjection":if(rn=this.visit(E.children[0],D),!n(rn))return null;var Sn=[],St=[];for(Ye=0;Ye<rn.length;Ye++)F=this.visit(E.children[2],rn[Ye]),i(F)||Sn.push(rn[Ye]);for(var Mn=0;Mn<Sn.length;Mn++)ee=this.visit(E.children[1],Sn[Mn]),ee!==null&&St.push(ee);return St;case"Comparator":switch(Ne=this.visit(E.children[0],D),Be=this.visit(E.children[1],D),E.name){case de:xe=o(Ne,Be);break;case ce:xe=!o(Ne,Be);break;case we:xe=Ne>Be;break;case X:xe=Ne>=Be;break;case ie:xe=Ne<Be;break;case W:xe=Ne<=Be;break;default:throw new Error("Unknown comparator: "+E.name)}return xe;case N:var Dt=this.visit(E.children[0],D);if(!n(Dt))return null;var nt=[];for(Ye=0;Ye<Dt.length;Ye++)ee=Dt[Ye],n(ee)?nt.push.apply(nt,ee):nt.push(ee);return nt;case"Identity":return D;case"MultiSelectList":if(D===null)return null;for(ut=[],Ye=0;Ye<E.children.length;Ye++)ut.push(this.visit(E.children[Ye],D));return ut;case"MultiSelectHash":if(D===null)return null;ut={};var cn;for(Ye=0;Ye<E.children.length;Ye++)cn=E.children[Ye],ut[cn.name]=this.visit(cn.value,D);return ut;case"OrExpression":return F=this.visit(E.children[0],D),i(F)&&(F=this.visit(E.children[1],D)),F;case"AndExpression":return Ne=this.visit(E.children[0],D),i(Ne)===!0?Ne:this.visit(E.children[1],D);case"NotExpression":return Ne=this.visit(E.children[0],D),i(Ne);case"Literal":return E.value;case he:return je=this.visit(E.children[0],D),this.visit(E.children[1],je);case I:return D;case"Function":var Gt=[];for(Ye=0;Ye<E.children.length;Ye++)Gt.push(this.visit(E.children[Ye],D));return this.runtime.callFunction(E.name,Gt);case"ExpressionReference":var ir=E.children[0];return ir.jmespathType=J,ir;default:throw new Error("Unknown node type: "+E.type)}},computeSliceParams:function(E,D){var F=D[0],ee=D[1],xe=D[2],Ne=[null,null,null];if(xe===null)xe=1;else if(xe===0){var Be=new Error("Invalid slice, step cannot be 0");throw Be.name="RuntimeError",Be}var ge=xe<0;return F===null?F=ge?E-1:0:F=this.capSliceRange(E,F,xe),ee===null?ee=ge?-1:E:ee=this.capSliceRange(E,ee,xe),Ne[0]=F,Ne[1]=ee,Ne[2]=xe,Ne},capSliceRange:function(E,D,F){return D<0?(D+=E,D<0&&(D=F<0?-1:0)):D>=E&&(D=F<0?E-1:E),D}};function Ke(E){this._interpreter=E,this.functionTable={abs:{_func:this._functionAbs,_signature:[{types:[l]}]},avg:{_func:this._functionAvg,_signature:[{types:[m]}]},ceil:{_func:this._functionCeil,_signature:[{types:[l]}]},contains:{_func:this._functionContains,_signature:[{types:[h,d]},{types:[u]}]},ends_with:{_func:this._functionEndsWith,_signature:[{types:[h]},{types:[h]}]},floor:{_func:this._functionFloor,_signature:[{types:[l]}]},length:{_func:this._functionLength,_signature:[{types:[h,d,f]}]},map:{_func:this._functionMap,_signature:[{types:[v]},{types:[d]}]},max:{_func:this._functionMax,_signature:[{types:[m,b]}]},merge:{_func:this._functionMerge,_signature:[{types:[f],variadic:!0}]},max_by:{_func:this._functionMaxBy,_signature:[{types:[d]},{types:[v]}]},sum:{_func:this._functionSum,_signature:[{types:[m]}]},starts_with:{_func:this._functionStartsWith,_signature:[{types:[h]},{types:[h]}]},min:{_func:this._functionMin,_signature:[{types:[m,b]}]},min_by:{_func:this._functionMinBy,_signature:[{types:[d]},{types:[v]}]},type:{_func:this._functionType,_signature:[{types:[u]}]},keys:{_func:this._functionKeys,_signature:[{types:[f]}]},values:{_func:this._functionValues,_signature:[{types:[f]}]},sort:{_func:this._functionSort,_signature:[{types:[b,m]}]},sort_by:{_func:this._functionSortBy,_signature:[{types:[d]},{types:[v]}]},join:{_func:this._functionJoin,_signature:[{types:[h]},{types:[b]}]},reverse:{_func:this._functionReverse,_signature:[{types:[h,d]}]},to_array:{_func:this._functionToArray,_signature:[{types:[u]}]},to_string:{_func:this._functionToString,_signature:[{types:[u]}]},to_number:{_func:this._functionToNumber,_signature:[{types:[u]}]},not_null:{_func:this._functionNotNull,_signature:[{types:[u],variadic:!0}]}}}Ke.prototype={callFunction:function(E,D){var F=this.functionTable[E];if(F===void 0)throw new Error("Unknown function: "+E+"()");return this._validateArgs(E,D,F._signature),F._func.call(this,D)},_validateArgs:function(E,D,F){var ee;if(F[F.length-1].variadic){if(D.length<F.length)throw ee=F.length===1?" argument":" arguments",new Error("ArgumentError: "+E+"() takes at least"+F.length+ee+" but received "+D.length)}else if(D.length!==F.length)throw ee=F.length===1?" argument":" arguments",new Error("ArgumentError: "+E+"() takes "+F.length+ee+" but received "+D.length);for(var xe,Ne,Be,ge=0;ge<F.length;ge++){Be=!1,xe=F[ge].types,Ne=this._getTypeName(D[ge]);for(var je=0;je<xe.length;je++)if(this._typeMatches(Ne,xe[je],D[ge])){Be=!0;break}if(!Be){var wt=xe.map(function(ut){return y[ut]}).join(",");throw new Error("TypeError: "+E+"() expected argument "+(ge+1)+" to be type "+wt+" but received type "+y[Ne]+" instead.")}}},_typeMatches:function(E,D,F){if(D===u)return!0;if(D===b||D===m||D===d){if(D===d)return E===d;if(E===d){var ee;D===m?ee=l:D===b&&(ee=h);for(var xe=0;xe<F.length;xe++)if(!this._typeMatches(this._getTypeName(F[xe]),ee,F[xe]))return!1;return!0}}else return E===D},_getTypeName:function(E){switch(Object.prototype.toString.call(E)){case"[object String]":return h;case"[object Number]":return l;case"[object Array]":return d;case"[object Boolean]":return p;case"[object Null]":return g;case"[object Object]":return E.jmespathType===J?v:f}},_functionStartsWith:function(E){return E[0].lastIndexOf(E[1])===0},_functionEndsWith:function(E){var D=E[0],F=E[1];return D.indexOf(F,D.length-F.length)!==-1},_functionReverse:function(E){var D=this._getTypeName(E[0]);if(D===h){for(var F=E[0],ee="",xe=F.length-1;xe>=0;xe--)ee+=F[xe];return ee}else{var Ne=E[0].slice(0);return Ne.reverse(),Ne}},_functionAbs:function(E){return Math.abs(E[0])},_functionCeil:function(E){return Math.ceil(E[0])},_functionAvg:function(E){for(var D=0,F=E[0],ee=0;ee<F.length;ee++)D+=F[ee];return D/F.length},_functionContains:function(E){return E[0].indexOf(E[1])>=0},_functionFloor:function(E){return Math.floor(E[0])},_functionLength:function(E){return r(E[0])?Object.keys(E[0]).length:E[0].length},_functionMap:function(E){for(var D=[],F=this._interpreter,ee=E[0],xe=E[1],Ne=0;Ne<xe.length;Ne++)D.push(F.visit(ee,xe[Ne]));return D},_functionMerge:function(E){for(var D={},F=0;F<E.length;F++){var ee=E[F];for(var xe in ee)D[xe]=ee[xe]}return D},_functionMax:function(E){if(E[0].length>0){var D=this._getTypeName(E[0][0]);if(D===l)return Math.max.apply(Math,E[0]);for(var F=E[0],ee=F[0],xe=1;xe<F.length;xe++)ee.localeCompare(F[xe])<0&&(ee=F[xe]);return ee}else return null},_functionMin:function(E){if(E[0].length>0){var D=this._getTypeName(E[0][0]);if(D===l)return Math.min.apply(Math,E[0]);for(var F=E[0],ee=F[0],xe=1;xe<F.length;xe++)F[xe].localeCompare(ee)<0&&(ee=F[xe]);return ee}else return null},_functionSum:function(E){for(var D=0,F=E[0],ee=0;ee<F.length;ee++)D+=F[ee];return D},_functionType:function(E){switch(this._getTypeName(E[0])){case l:return"number";case h:return"string";case d:return"array";case f:return"object";case p:return"boolean";case v:return"expref";case g:return"null"}},_functionKeys:function(E){return Object.keys(E[0])},_functionValues:function(E){for(var D=E[0],F=Object.keys(D),ee=[],xe=0;xe<F.length;xe++)ee.push(D[F[xe]]);return ee},_functionJoin:function(E){var D=E[0],F=E[1];return F.join(D)},_functionToArray:function(E){return this._getTypeName(E[0])===d?E[0]:[E[0]]},_functionToString:function(E){return this._getTypeName(E[0])===h?E[0]:JSON.stringify(E[0])},_functionToNumber:function(E){var D=this._getTypeName(E[0]),F;return D===l?E[0]:D===h&&(F=+E[0],!isNaN(F))?F:null},_functionNotNull:function(E){for(var D=0;D<E.length;D++)if(this._getTypeName(E[D])!==g)return E[D];return null},_functionSort:function(E){var D=E[0].slice(0);return D.sort(),D},_functionSortBy:function(E){var D=E[0].slice(0);if(D.length===0)return D;var F=this._interpreter,ee=E[1],xe=this._getTypeName(F.visit(ee,D[0]));if([l,h].indexOf(xe)<0)throw new Error("TypeError");for(var Ne=this,Be=[],ge=0;ge<D.length;ge++)Be.push([ge,D[ge]]);Be.sort(function(wt,ut){var Ye=F.visit(ee,wt[1]),Xe=F.visit(ee,ut[1]);if(Ne._getTypeName(Ye)!==xe)throw new Error("TypeError: expected "+xe+", received "+Ne._getTypeName(Ye));if(Ne._getTypeName(Xe)!==xe)throw new Error("TypeError: expected "+xe+", received "+Ne._getTypeName(Xe));return Ye>Xe?1:Ye<Xe?-1:wt[0]-ut[0]});for(var je=0;je<Be.length;je++)D[je]=Be[je][1];return D},_functionMaxBy:function(E){for(var D=E[1],F=E[0],ee=this.createKeyFunction(D,[l,h]),xe=-1/0,Ne,Be,ge=0;ge<F.length;ge++)Be=ee(F[ge]),Be>xe&&(xe=Be,Ne=F[ge]);return Ne},_functionMinBy:function(E){for(var D=E[1],F=E[0],ee=this.createKeyFunction(D,[l,h]),xe=1/0,Ne,Be,ge=0;ge<F.length;ge++)Be=ee(F[ge]),Be<xe&&(xe=Be,Ne=F[ge]);return Ne},createKeyFunction:function(E,D){var F=this,ee=this._interpreter,xe=function(Ne){var Be=ee.visit(E,Ne);if(D.indexOf(F._getTypeName(Be))<0){var ge="TypeError: expected one of "+D+", received "+F._getTypeName(Be);throw new Error(ge)}return Be};return xe}};function ft(E){var D=new pt,F=D.parse(E);return F}function We(E){var D=new ct;return D.tokenize(E)}function Nt(E,D){var F=new pt,ee=new Ke,xe=new Le(ee);ee._interpreter=xe;var Ne=F.parse(D);return xe.search(Ne,E)}e.tokenize=We,e.compile=ft,e.search=Nt,e.strictDeepEqual=o})(t)})(vj)),vj}var cN=lN();const uN=Ng(cN);var Tp={},gj;function hN(){if(gj)return Tp;gj=1;var t={b:"\b",f:"\f",n:`
1
+ import{_ as aN}from"./app-DBSHy7TS.js";function Ng(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var vj={},mj;function lN(){return mj||(mj=1,(function(t){(function(e){function n(E){return E!==null?Object.prototype.toString.call(E)==="[object Array]":!1}function r(E){return E!==null?Object.prototype.toString.call(E)==="[object Object]":!1}function o(E,D){if(E===D)return!0;var F=Object.prototype.toString.call(E);if(F!==Object.prototype.toString.call(D))return!1;if(n(E)===!0){if(E.length!==D.length)return!1;for(var ee=0;ee<E.length;ee++)if(o(E[ee],D[ee])===!1)return!1;return!0}if(r(E)===!0){var xe={};for(var Ne in E)if(hasOwnProperty.call(E,Ne)){if(o(E[Ne],D[Ne])===!1)return!1;xe[Ne]=!0}for(var Be in D)if(hasOwnProperty.call(D,Be)&&xe[Be]!==!0)return!1;return!0}return!1}function i(E){if(E===""||E===!1||E===null||n(E)&&E.length===0)return!0;if(r(E)){for(var D in E)if(E.hasOwnProperty(D))return!1;return!0}else return!1}function s(E){for(var D=Object.keys(E),F=[],ee=0;ee<D.length;ee++)F.push(E[D[ee]]);return F}var a;typeof String.prototype.trimLeft=="function"?a=function(E){return E.trimLeft()}:a=function(E){return E.match(/^\s*(.*)/)[1]};var l=0,u=1,h=2,d=3,f=4,p=5,v=6,g=7,m=8,b=9,y={0:"number",1:"any",2:"string",3:"array",4:"object",5:"boolean",6:"expression",7:"null",8:"Array<number>",9:"Array<string>"},w="EOF",j="UnquotedIdentifier",x="QuotedIdentifier",k="Rbracket",$="Rparen",T="Comma",M="Colon",z="Rbrace",V="Number",I="Current",J="Expref",he="Pipe",re="Or",Se="And",de="EQ",we="GT",ie="LT",X="GTE",W="LTE",ce="NE",N="Flatten",_="Star",P="Filter",oe="Dot",Ae="Not",ae="Lbrace",Y="Lbracket",ye="Lparen",A="Literal",q={".":oe,"*":_,",":T,":":M,"{":ae,"}":z,"]":k,"(":ye,")":$,"@":I},U={"<":!0,">":!0,"=":!0,"!":!0},fe={" ":!0," ":!0,"\n":!0};function Z(E){return E>="a"&&E<="z"||E>="A"&&E<="Z"||E==="_"}function H(E){return E>="0"&&E<="9"||E==="-"}function at(E){return E>="a"&&E<="z"||E>="A"&&E<="Z"||E>="0"&&E<="9"||E==="_"}function ct(){}ct.prototype={tokenize:function(E){var D=[];this._current=0;for(var F,ee,xe;this._current<E.length;)if(Z(E[this._current]))F=this._current,ee=this._consumeUnquotedIdentifier(E),D.push({type:j,value:ee,start:F});else if(q[E[this._current]]!==void 0)D.push({type:q[E[this._current]],value:E[this._current],start:this._current}),this._current++;else if(H(E[this._current]))xe=this._consumeNumber(E),D.push(xe);else if(E[this._current]==="[")xe=this._consumeLBracket(E),D.push(xe);else if(E[this._current]==='"')F=this._current,ee=this._consumeQuotedIdentifier(E),D.push({type:x,value:ee,start:F});else if(E[this._current]==="'")F=this._current,ee=this._consumeRawStringLiteral(E),D.push({type:A,value:ee,start:F});else if(E[this._current]==="`"){F=this._current;var Ne=this._consumeLiteral(E);D.push({type:A,value:Ne,start:F})}else if(U[E[this._current]]!==void 0)D.push(this._consumeOperator(E));else if(fe[E[this._current]]!==void 0)this._current++;else if(E[this._current]==="&")F=this._current,this._current++,E[this._current]==="&"?(this._current++,D.push({type:Se,value:"&&",start:F})):D.push({type:J,value:"&",start:F});else if(E[this._current]==="|")F=this._current,this._current++,E[this._current]==="|"?(this._current++,D.push({type:re,value:"||",start:F})):D.push({type:he,value:"|",start:F});else{var Be=new Error("Unknown character:"+E[this._current]);throw Be.name="LexerError",Be}return D},_consumeUnquotedIdentifier:function(E){var D=this._current;for(this._current++;this._current<E.length&&at(E[this._current]);)this._current++;return E.slice(D,this._current)},_consumeQuotedIdentifier:function(E){var D=this._current;this._current++;for(var F=E.length;E[this._current]!=='"'&&this._current<F;){var ee=this._current;E[ee]==="\\"&&(E[ee+1]==="\\"||E[ee+1]==='"')?ee+=2:ee++,this._current=ee}return this._current++,JSON.parse(E.slice(D,this._current))},_consumeRawStringLiteral:function(E){var D=this._current;this._current++;for(var F=E.length;E[this._current]!=="'"&&this._current<F;){var ee=this._current;E[ee]==="\\"&&(E[ee+1]==="\\"||E[ee+1]==="'")?ee+=2:ee++,this._current=ee}this._current++;var xe=E.slice(D+1,this._current-1);return xe.replace("\\'","'")},_consumeNumber:function(E){var D=this._current;this._current++;for(var F=E.length;H(E[this._current])&&this._current<F;)this._current++;var ee=parseInt(E.slice(D,this._current));return{type:V,value:ee,start:D}},_consumeLBracket:function(E){var D=this._current;return this._current++,E[this._current]==="?"?(this._current++,{type:P,value:"[?",start:D}):E[this._current]==="]"?(this._current++,{type:N,value:"[]",start:D}):{type:Y,value:"[",start:D}},_consumeOperator:function(E){var D=this._current,F=E[D];if(this._current++,F==="!")return E[this._current]==="="?(this._current++,{type:ce,value:"!=",start:D}):{type:Ae,value:"!",start:D};if(F==="<")return E[this._current]==="="?(this._current++,{type:W,value:"<=",start:D}):{type:ie,value:"<",start:D};if(F===">")return E[this._current]==="="?(this._current++,{type:X,value:">=",start:D}):{type:we,value:">",start:D};if(F==="="&&E[this._current]==="=")return this._current++,{type:de,value:"==",start:D}},_consumeLiteral:function(E){this._current++;for(var D=this._current,F=E.length,ee;E[this._current]!=="`"&&this._current<F;){var xe=this._current;E[xe]==="\\"&&(E[xe+1]==="\\"||E[xe+1]==="`")?xe+=2:xe++,this._current=xe}var Ne=a(E.slice(D,this._current));return Ne=Ne.replace("\\`","`"),this._looksLikeJSON(Ne)?ee=JSON.parse(Ne):ee=JSON.parse('"'+Ne+'"'),this._current++,ee},_looksLikeJSON:function(E){var D='[{"',F=["true","false","null"],ee="-0123456789";if(E==="")return!1;if(D.indexOf(E[0])>=0||F.indexOf(E)>=0)return!0;if(ee.indexOf(E[0])>=0)try{return JSON.parse(E),!0}catch{return!1}else return!1}};var Ee={};Ee[w]=0,Ee[j]=0,Ee[x]=0,Ee[k]=0,Ee[$]=0,Ee[T]=0,Ee[z]=0,Ee[V]=0,Ee[I]=0,Ee[J]=0,Ee[he]=1,Ee[re]=2,Ee[Se]=3,Ee[de]=5,Ee[we]=5,Ee[ie]=5,Ee[X]=5,Ee[W]=5,Ee[ce]=5,Ee[N]=9,Ee[_]=20,Ee[P]=21,Ee[oe]=40,Ee[Ae]=45,Ee[ae]=50,Ee[Y]=55,Ee[ye]=60;function pt(){}pt.prototype={parse:function(E){this._loadTokens(E),this.index=0;var D=this.expression(0);if(this._lookahead(0)!==w){var F=this._lookaheadToken(0),ee=new Error("Unexpected token type: "+F.type+", value: "+F.value);throw ee.name="ParserError",ee}return D},_loadTokens:function(E){var D=new ct,F=D.tokenize(E);F.push({type:w,value:"",start:E.length}),this.tokens=F},expression:function(E){var D=this._lookaheadToken(0);this._advance();for(var F=this.nud(D),ee=this._lookahead(0);E<Ee[ee];)this._advance(),F=this.led(ee,F),ee=this._lookahead(0);return F},_lookahead:function(E){return this.tokens[this.index+E].type},_lookaheadToken:function(E){return this.tokens[this.index+E]},_advance:function(){this.index++},nud:function(E){var D,F,ee;switch(E.type){case A:return{type:"Literal",value:E.value};case j:return{type:"Field",name:E.value};case x:var xe={type:"Field",name:E.value};if(this._lookahead(0)===ye)throw new Error("Quoted identifier not allowed for function names.");return xe;case Ae:return F=this.expression(Ee.Not),{type:"NotExpression",children:[F]};case _:return D={type:"Identity"},F=null,this._lookahead(0)===k?F={type:"Identity"}:F=this._parseProjectionRHS(Ee.Star),{type:"ValueProjection",children:[D,F]};case P:return this.led(E.type,{type:"Identity"});case ae:return this._parseMultiselectHash();case N:return D={type:N,children:[{type:"Identity"}]},F=this._parseProjectionRHS(Ee.Flatten),{type:"Projection",children:[D,F]};case Y:return this._lookahead(0)===V||this._lookahead(0)===M?(F=this._parseIndexExpression(),this._projectIfSlice({type:"Identity"},F)):this._lookahead(0)===_&&this._lookahead(1)===k?(this._advance(),this._advance(),F=this._parseProjectionRHS(Ee.Star),{type:"Projection",children:[{type:"Identity"},F]}):this._parseMultiselectList();case I:return{type:I};case J:return ee=this.expression(Ee.Expref),{type:"ExpressionReference",children:[ee]};case ye:for(var Ne=[];this._lookahead(0)!==$;)this._lookahead(0)===I?(ee={type:I},this._advance()):ee=this.expression(0),Ne.push(ee);return this._match($),Ne[0];default:this._errorToken(E)}},led:function(E,D){var F;switch(E){case oe:var ee=Ee.Dot;return this._lookahead(0)!==_?(F=this._parseDotRHS(ee),{type:"Subexpression",children:[D,F]}):(this._advance(),F=this._parseProjectionRHS(ee),{type:"ValueProjection",children:[D,F]});case he:return F=this.expression(Ee.Pipe),{type:he,children:[D,F]};case re:return F=this.expression(Ee.Or),{type:"OrExpression",children:[D,F]};case Se:return F=this.expression(Ee.And),{type:"AndExpression",children:[D,F]};case ye:for(var xe=D.name,Ne=[],Be,ge;this._lookahead(0)!==$;)this._lookahead(0)===I?(Be={type:I},this._advance()):Be=this.expression(0),this._lookahead(0)===T&&this._match(T),Ne.push(Be);return this._match($),ge={type:"Function",name:xe,children:Ne},ge;case P:var je=this.expression(0);return this._match(k),this._lookahead(0)===N?F={type:"Identity"}:F=this._parseProjectionRHS(Ee.Filter),{type:"FilterProjection",children:[D,F,je]};case N:var wt={type:N,children:[D]},ut=this._parseProjectionRHS(Ee.Flatten);return{type:"Projection",children:[wt,ut]};case de:case ce:case we:case X:case ie:case W:return this._parseComparator(D,E);case Y:var Ye=this._lookaheadToken(0);return Ye.type===V||Ye.type===M?(F=this._parseIndexExpression(),this._projectIfSlice(D,F)):(this._match(_),this._match(k),F=this._parseProjectionRHS(Ee.Star),{type:"Projection",children:[D,F]});default:this._errorToken(this._lookaheadToken(0))}},_match:function(E){if(this._lookahead(0)===E)this._advance();else{var D=this._lookaheadToken(0),F=new Error("Expected "+E+", got: "+D.type);throw F.name="ParserError",F}},_errorToken:function(E){var D=new Error("Invalid token ("+E.type+'): "'+E.value+'"');throw D.name="ParserError",D},_parseIndexExpression:function(){if(this._lookahead(0)===M||this._lookahead(1)===M)return this._parseSliceExpression();var E={type:"Index",value:this._lookaheadToken(0).value};return this._advance(),this._match(k),E},_projectIfSlice:function(E,D){var F={type:"IndexExpression",children:[E,D]};return D.type==="Slice"?{type:"Projection",children:[F,this._parseProjectionRHS(Ee.Star)]}:F},_parseSliceExpression:function(){for(var E=[null,null,null],D=0,F=this._lookahead(0);F!==k&&D<3;){if(F===M)D++,this._advance();else if(F===V)E[D]=this._lookaheadToken(0).value,this._advance();else{var ee=this._lookahead(0),xe=new Error("Syntax error, unexpected token: "+ee.value+"("+ee.type+")");throw xe.name="Parsererror",xe}F=this._lookahead(0)}return this._match(k),{type:"Slice",children:E}},_parseComparator:function(E,D){var F=this.expression(Ee[D]);return{type:"Comparator",name:D,children:[E,F]}},_parseDotRHS:function(E){var D=this._lookahead(0),F=[j,x,_];if(F.indexOf(D)>=0)return this.expression(E);if(D===Y)return this._match(Y),this._parseMultiselectList();if(D===ae)return this._match(ae),this._parseMultiselectHash()},_parseProjectionRHS:function(E){var D;if(Ee[this._lookahead(0)]<10)D={type:"Identity"};else if(this._lookahead(0)===Y)D=this.expression(E);else if(this._lookahead(0)===P)D=this.expression(E);else if(this._lookahead(0)===oe)this._match(oe),D=this._parseDotRHS(E);else{var F=this._lookaheadToken(0),ee=new Error("Sytanx error, unexpected token: "+F.value+"("+F.type+")");throw ee.name="ParserError",ee}return D},_parseMultiselectList:function(){for(var E=[];this._lookahead(0)!==k;){var D=this.expression(0);if(E.push(D),this._lookahead(0)===T&&(this._match(T),this._lookahead(0)===k))throw new Error("Unexpected token Rbracket")}return this._match(k),{type:"MultiSelectList",children:E}},_parseMultiselectHash:function(){for(var E=[],D=[j,x],F,ee,xe,Ne;;){if(F=this._lookaheadToken(0),D.indexOf(F.type)<0)throw new Error("Expecting an identifier token, got: "+F.type);if(ee=F.value,this._advance(),this._match(M),xe=this.expression(0),Ne={type:"KeyValuePair",name:ee,value:xe},E.push(Ne),this._lookahead(0)===T)this._match(T);else if(this._lookahead(0)===z){this._match(z);break}}return{type:"MultiSelectHash",children:E}}};function Le(E){this.runtime=E}Le.prototype={search:function(E,D){return this.visit(E,D)},visit:function(E,D){var F,ee,xe,Ne,Be,ge,je,wt,ut,Ye;switch(E.type){case"Field":return D!==null&&r(D)?(ge=D[E.name],ge===void 0?null:ge):null;case"Subexpression":for(xe=this.visit(E.children[0],D),Ye=1;Ye<E.children.length;Ye++)if(xe=this.visit(E.children[1],xe),xe===null)return null;return xe;case"IndexExpression":return je=this.visit(E.children[0],D),wt=this.visit(E.children[1],je),wt;case"Index":if(!n(D))return null;var Xe=E.value;return Xe<0&&(Xe=D.length+Xe),xe=D[Xe],xe===void 0&&(xe=null),xe;case"Slice":if(!n(D))return null;var Jt=E.children.slice(0),Un=this.computeSliceParams(D.length,Jt),Jn=Un[0],Kt=Un[1],Nn=Un[2];if(xe=[],Nn>0)for(Ye=Jn;Ye<Kt;Ye+=Nn)xe.push(D[Ye]);else for(Ye=Jn;Ye>Kt;Ye+=Nn)xe.push(D[Ye]);return xe;case"Projection":var rn=this.visit(E.children[0],D);if(!n(rn))return null;for(ut=[],Ye=0;Ye<rn.length;Ye++)ee=this.visit(E.children[1],rn[Ye]),ee!==null&&ut.push(ee);return ut;case"ValueProjection":if(rn=this.visit(E.children[0],D),!r(rn))return null;ut=[];var ln=s(rn);for(Ye=0;Ye<ln.length;Ye++)ee=this.visit(E.children[1],ln[Ye]),ee!==null&&ut.push(ee);return ut;case"FilterProjection":if(rn=this.visit(E.children[0],D),!n(rn))return null;var Sn=[],St=[];for(Ye=0;Ye<rn.length;Ye++)F=this.visit(E.children[2],rn[Ye]),i(F)||Sn.push(rn[Ye]);for(var Mn=0;Mn<Sn.length;Mn++)ee=this.visit(E.children[1],Sn[Mn]),ee!==null&&St.push(ee);return St;case"Comparator":switch(Ne=this.visit(E.children[0],D),Be=this.visit(E.children[1],D),E.name){case de:xe=o(Ne,Be);break;case ce:xe=!o(Ne,Be);break;case we:xe=Ne>Be;break;case X:xe=Ne>=Be;break;case ie:xe=Ne<Be;break;case W:xe=Ne<=Be;break;default:throw new Error("Unknown comparator: "+E.name)}return xe;case N:var Dt=this.visit(E.children[0],D);if(!n(Dt))return null;var nt=[];for(Ye=0;Ye<Dt.length;Ye++)ee=Dt[Ye],n(ee)?nt.push.apply(nt,ee):nt.push(ee);return nt;case"Identity":return D;case"MultiSelectList":if(D===null)return null;for(ut=[],Ye=0;Ye<E.children.length;Ye++)ut.push(this.visit(E.children[Ye],D));return ut;case"MultiSelectHash":if(D===null)return null;ut={};var cn;for(Ye=0;Ye<E.children.length;Ye++)cn=E.children[Ye],ut[cn.name]=this.visit(cn.value,D);return ut;case"OrExpression":return F=this.visit(E.children[0],D),i(F)&&(F=this.visit(E.children[1],D)),F;case"AndExpression":return Ne=this.visit(E.children[0],D),i(Ne)===!0?Ne:this.visit(E.children[1],D);case"NotExpression":return Ne=this.visit(E.children[0],D),i(Ne);case"Literal":return E.value;case he:return je=this.visit(E.children[0],D),this.visit(E.children[1],je);case I:return D;case"Function":var Gt=[];for(Ye=0;Ye<E.children.length;Ye++)Gt.push(this.visit(E.children[Ye],D));return this.runtime.callFunction(E.name,Gt);case"ExpressionReference":var ir=E.children[0];return ir.jmespathType=J,ir;default:throw new Error("Unknown node type: "+E.type)}},computeSliceParams:function(E,D){var F=D[0],ee=D[1],xe=D[2],Ne=[null,null,null];if(xe===null)xe=1;else if(xe===0){var Be=new Error("Invalid slice, step cannot be 0");throw Be.name="RuntimeError",Be}var ge=xe<0;return F===null?F=ge?E-1:0:F=this.capSliceRange(E,F,xe),ee===null?ee=ge?-1:E:ee=this.capSliceRange(E,ee,xe),Ne[0]=F,Ne[1]=ee,Ne[2]=xe,Ne},capSliceRange:function(E,D,F){return D<0?(D+=E,D<0&&(D=F<0?-1:0)):D>=E&&(D=F<0?E-1:E),D}};function Ke(E){this._interpreter=E,this.functionTable={abs:{_func:this._functionAbs,_signature:[{types:[l]}]},avg:{_func:this._functionAvg,_signature:[{types:[m]}]},ceil:{_func:this._functionCeil,_signature:[{types:[l]}]},contains:{_func:this._functionContains,_signature:[{types:[h,d]},{types:[u]}]},ends_with:{_func:this._functionEndsWith,_signature:[{types:[h]},{types:[h]}]},floor:{_func:this._functionFloor,_signature:[{types:[l]}]},length:{_func:this._functionLength,_signature:[{types:[h,d,f]}]},map:{_func:this._functionMap,_signature:[{types:[v]},{types:[d]}]},max:{_func:this._functionMax,_signature:[{types:[m,b]}]},merge:{_func:this._functionMerge,_signature:[{types:[f],variadic:!0}]},max_by:{_func:this._functionMaxBy,_signature:[{types:[d]},{types:[v]}]},sum:{_func:this._functionSum,_signature:[{types:[m]}]},starts_with:{_func:this._functionStartsWith,_signature:[{types:[h]},{types:[h]}]},min:{_func:this._functionMin,_signature:[{types:[m,b]}]},min_by:{_func:this._functionMinBy,_signature:[{types:[d]},{types:[v]}]},type:{_func:this._functionType,_signature:[{types:[u]}]},keys:{_func:this._functionKeys,_signature:[{types:[f]}]},values:{_func:this._functionValues,_signature:[{types:[f]}]},sort:{_func:this._functionSort,_signature:[{types:[b,m]}]},sort_by:{_func:this._functionSortBy,_signature:[{types:[d]},{types:[v]}]},join:{_func:this._functionJoin,_signature:[{types:[h]},{types:[b]}]},reverse:{_func:this._functionReverse,_signature:[{types:[h,d]}]},to_array:{_func:this._functionToArray,_signature:[{types:[u]}]},to_string:{_func:this._functionToString,_signature:[{types:[u]}]},to_number:{_func:this._functionToNumber,_signature:[{types:[u]}]},not_null:{_func:this._functionNotNull,_signature:[{types:[u],variadic:!0}]}}}Ke.prototype={callFunction:function(E,D){var F=this.functionTable[E];if(F===void 0)throw new Error("Unknown function: "+E+"()");return this._validateArgs(E,D,F._signature),F._func.call(this,D)},_validateArgs:function(E,D,F){var ee;if(F[F.length-1].variadic){if(D.length<F.length)throw ee=F.length===1?" argument":" arguments",new Error("ArgumentError: "+E+"() takes at least"+F.length+ee+" but received "+D.length)}else if(D.length!==F.length)throw ee=F.length===1?" argument":" arguments",new Error("ArgumentError: "+E+"() takes "+F.length+ee+" but received "+D.length);for(var xe,Ne,Be,ge=0;ge<F.length;ge++){Be=!1,xe=F[ge].types,Ne=this._getTypeName(D[ge]);for(var je=0;je<xe.length;je++)if(this._typeMatches(Ne,xe[je],D[ge])){Be=!0;break}if(!Be){var wt=xe.map(function(ut){return y[ut]}).join(",");throw new Error("TypeError: "+E+"() expected argument "+(ge+1)+" to be type "+wt+" but received type "+y[Ne]+" instead.")}}},_typeMatches:function(E,D,F){if(D===u)return!0;if(D===b||D===m||D===d){if(D===d)return E===d;if(E===d){var ee;D===m?ee=l:D===b&&(ee=h);for(var xe=0;xe<F.length;xe++)if(!this._typeMatches(this._getTypeName(F[xe]),ee,F[xe]))return!1;return!0}}else return E===D},_getTypeName:function(E){switch(Object.prototype.toString.call(E)){case"[object String]":return h;case"[object Number]":return l;case"[object Array]":return d;case"[object Boolean]":return p;case"[object Null]":return g;case"[object Object]":return E.jmespathType===J?v:f}},_functionStartsWith:function(E){return E[0].lastIndexOf(E[1])===0},_functionEndsWith:function(E){var D=E[0],F=E[1];return D.indexOf(F,D.length-F.length)!==-1},_functionReverse:function(E){var D=this._getTypeName(E[0]);if(D===h){for(var F=E[0],ee="",xe=F.length-1;xe>=0;xe--)ee+=F[xe];return ee}else{var Ne=E[0].slice(0);return Ne.reverse(),Ne}},_functionAbs:function(E){return Math.abs(E[0])},_functionCeil:function(E){return Math.ceil(E[0])},_functionAvg:function(E){for(var D=0,F=E[0],ee=0;ee<F.length;ee++)D+=F[ee];return D/F.length},_functionContains:function(E){return E[0].indexOf(E[1])>=0},_functionFloor:function(E){return Math.floor(E[0])},_functionLength:function(E){return r(E[0])?Object.keys(E[0]).length:E[0].length},_functionMap:function(E){for(var D=[],F=this._interpreter,ee=E[0],xe=E[1],Ne=0;Ne<xe.length;Ne++)D.push(F.visit(ee,xe[Ne]));return D},_functionMerge:function(E){for(var D={},F=0;F<E.length;F++){var ee=E[F];for(var xe in ee)D[xe]=ee[xe]}return D},_functionMax:function(E){if(E[0].length>0){var D=this._getTypeName(E[0][0]);if(D===l)return Math.max.apply(Math,E[0]);for(var F=E[0],ee=F[0],xe=1;xe<F.length;xe++)ee.localeCompare(F[xe])<0&&(ee=F[xe]);return ee}else return null},_functionMin:function(E){if(E[0].length>0){var D=this._getTypeName(E[0][0]);if(D===l)return Math.min.apply(Math,E[0]);for(var F=E[0],ee=F[0],xe=1;xe<F.length;xe++)F[xe].localeCompare(ee)<0&&(ee=F[xe]);return ee}else return null},_functionSum:function(E){for(var D=0,F=E[0],ee=0;ee<F.length;ee++)D+=F[ee];return D},_functionType:function(E){switch(this._getTypeName(E[0])){case l:return"number";case h:return"string";case d:return"array";case f:return"object";case p:return"boolean";case v:return"expref";case g:return"null"}},_functionKeys:function(E){return Object.keys(E[0])},_functionValues:function(E){for(var D=E[0],F=Object.keys(D),ee=[],xe=0;xe<F.length;xe++)ee.push(D[F[xe]]);return ee},_functionJoin:function(E){var D=E[0],F=E[1];return F.join(D)},_functionToArray:function(E){return this._getTypeName(E[0])===d?E[0]:[E[0]]},_functionToString:function(E){return this._getTypeName(E[0])===h?E[0]:JSON.stringify(E[0])},_functionToNumber:function(E){var D=this._getTypeName(E[0]),F;return D===l?E[0]:D===h&&(F=+E[0],!isNaN(F))?F:null},_functionNotNull:function(E){for(var D=0;D<E.length;D++)if(this._getTypeName(E[D])!==g)return E[D];return null},_functionSort:function(E){var D=E[0].slice(0);return D.sort(),D},_functionSortBy:function(E){var D=E[0].slice(0);if(D.length===0)return D;var F=this._interpreter,ee=E[1],xe=this._getTypeName(F.visit(ee,D[0]));if([l,h].indexOf(xe)<0)throw new Error("TypeError");for(var Ne=this,Be=[],ge=0;ge<D.length;ge++)Be.push([ge,D[ge]]);Be.sort(function(wt,ut){var Ye=F.visit(ee,wt[1]),Xe=F.visit(ee,ut[1]);if(Ne._getTypeName(Ye)!==xe)throw new Error("TypeError: expected "+xe+", received "+Ne._getTypeName(Ye));if(Ne._getTypeName(Xe)!==xe)throw new Error("TypeError: expected "+xe+", received "+Ne._getTypeName(Xe));return Ye>Xe?1:Ye<Xe?-1:wt[0]-ut[0]});for(var je=0;je<Be.length;je++)D[je]=Be[je][1];return D},_functionMaxBy:function(E){for(var D=E[1],F=E[0],ee=this.createKeyFunction(D,[l,h]),xe=-1/0,Ne,Be,ge=0;ge<F.length;ge++)Be=ee(F[ge]),Be>xe&&(xe=Be,Ne=F[ge]);return Ne},_functionMinBy:function(E){for(var D=E[1],F=E[0],ee=this.createKeyFunction(D,[l,h]),xe=1/0,Ne,Be,ge=0;ge<F.length;ge++)Be=ee(F[ge]),Be<xe&&(xe=Be,Ne=F[ge]);return Ne},createKeyFunction:function(E,D){var F=this,ee=this._interpreter,xe=function(Ne){var Be=ee.visit(E,Ne);if(D.indexOf(F._getTypeName(Be))<0){var ge="TypeError: expected one of "+D+", received "+F._getTypeName(Be);throw new Error(ge)}return Be};return xe}};function ft(E){var D=new pt,F=D.parse(E);return F}function We(E){var D=new ct;return D.tokenize(E)}function Nt(E,D){var F=new pt,ee=new Ke,xe=new Le(ee);ee._interpreter=xe;var Ne=F.parse(D);return xe.search(Ne,E)}e.tokenize=We,e.compile=ft,e.search=Nt,e.strictDeepEqual=o})(t)})(vj)),vj}var cN=lN();const uN=Ng(cN);var Tp={},gj;function hN(){if(gj)return Tp;gj=1;var t={b:"\b",f:"\f",n:`
2
2
  `,r:"\r",t:" ",'"':'"',"/":"/","\\":"\\"},e=97;Tp.parse=function(v,g,m){var b={},y=0,w=0,j=0,x=m&&m.bigint&&typeof BigInt<"u";return{data:k("",!0),pointers:b};function k(N,_){$();var P;de(N,"value");var oe=J();switch(oe){case"t":I("rue"),P=!0;break;case"f":I("alse"),P=!1;break;case"n":I("ull"),P=null;break;case'"':P=T();break;case"[":P=z(N);break;case"{":P=V(N);break;default:he(),"-0123456789".indexOf(oe)>=0?P=M():X()}return de(N,"valueEnd"),$(),_&&j<v.length&&X(),P}function $(){e:for(;j<v.length;){switch(v[j]){case" ":w++;break;case" ":w+=4;break;case"\r":w=0;break;case`
3
3
  `:w=0,y++;break;default:break e}j++}}function T(){for(var N="",_;_=J(),_!='"';)_=="\\"?(_=J(),_ in t?N+=t[_]:_=="u"?N+=re():W()):N+=_;return N}function M(){var N="",_=!0;v[j]=="-"&&(N+=J()),N+=v[j]=="0"?J():Se(),v[j]=="."&&(N+=J()+Se(),_=!1),(v[j]=="e"||v[j]=="E")&&(N+=J(),(v[j]=="+"||v[j]=="-")&&(N+=J()),N+=Se(),_=!1);var P=+N;return x&&_&&(P>Number.MAX_SAFE_INTEGER||P<Number.MIN_SAFE_INTEGER)?BigInt(N):P}function z(N){$();var _=[],P=0;if(J()=="]")return _;for(he();;){var oe=N+"/"+P;_.push(k(oe)),$();var Ae=J();if(Ae=="]")break;Ae!=","&&W(),$(),P++}return _}function V(N){$();var _={};if(J()=="}")return _;for(he();;){var P=ie();J()!='"'&&W();var oe=T(),Ae=N+"/"+p(oe);we(Ae,"key",P),de(Ae,"keyEnd"),$(),J()!=":"&&W(),$(),_[oe]=k(Ae),$();var ae=J();if(ae=="}")break;ae!=","&&W(),$()}return _}function I(N){for(var _=0;_<N.length;_++)J()!==N[_]&&W()}function J(){ce();var N=v[j];return j++,w++,N}function he(){j--,w--}function re(){for(var N=4,_=0;N--;){_<<=4;var P=J().toLowerCase();P>="a"&&P<="f"?_+=P.charCodeAt()-e+10:P>="0"&&P<="9"?_+=+P:W()}return String.fromCharCode(_)}function Se(){for(var N="";v[j]>="0"&&v[j]<="9";)N+=J();if(N.length)return N;ce(),X()}function de(N,_){we(N,_,ie())}function we(N,_,P){b[N]=b[N]||{},b[N][_]=P}function ie(){return{line:y,column:w,pos:j}}function X(){throw new SyntaxError("Unexpected token "+v[j]+" in JSON at position "+j)}function W(){he(),X()}function ce(){if(j>=v.length)throw new SyntaxError("Unexpected end of JSON input")}},Tp.stringify=function(v,g,m){if(!r(v))return;var b=0,y,w,j=typeof m=="object"?m.space:m;switch(typeof j){case"number":var x=j>10?10:j<0?0:Math.floor(j);j=x&&we(x," "),y=x,w=x;break;case"string":j=j.slice(0,10),y=0,w=0;for(var k=0;k<j.length;k++){var $=j[k];switch($){case" ":w++;break;case" ":w+=4;break;case"\r":w=0;break;case`
4
4
  `:w=0,b++;break;default:throw new Error("whitespace characters not allowed in JSON")}y++}break;default:j=void 0}var T="",M={},z=0,V=0,I=0,J=m&&m.es6&&typeof Map=="function";return he(v,0,""),{json:T,pointers:M};function he(ie,X,W){switch(de(W,"value"),typeof ie){case"number":case"bigint":case"boolean":re(""+ie);break;case"string":re(h(ie));break;case"object":ie===null?re("null"):typeof ie.toJSON=="function"?re(h(ie.toJSON())):Array.isArray(ie)?ce():J?ie.constructor.BYTES_PER_ELEMENT?ce():ie instanceof Map?_():ie instanceof Set?_(!0):N():N()}de(W,"valueEnd");function ce(){if(ie.length){re("[");for(var P=X+1,oe=0;oe<ie.length;oe++){oe&&re(","),Se(P);var Ae=r(ie[oe])?ie[oe]:null,ae=W+"/"+oe;he(Ae,P,ae)}Se(X),re("]")}else re("[]")}function N(){var P=Object.keys(ie);if(P.length){re("{");for(var oe=X+1,Ae=0;Ae<P.length;Ae++){var ae=P[Ae],Y=ie[ae];if(r(Y)){Ae&&re(",");var ye=W+"/"+p(ae);Se(oe),de(ye,"key"),re(h(ae)),de(ye,"keyEnd"),re(":"),j&&re(" "),he(Y,oe,ye)}}Se(X),re("}")}else re("{}")}function _(P){if(ie.size){re("{");for(var oe=X+1,Ae=!0,ae=ie.entries(),Y=ae.next();!Y.done;){var ye=Y.value,A=ye[0],q=P?!0:ye[1];if(r(q)){Ae||re(","),Ae=!1;var U=W+"/"+p(A);Se(oe),de(U,"key"),re(h(A)),de(U,"keyEnd"),re(":"),j&&re(" "),he(q,oe,U)}Y=ae.next()}Se(X),re("}")}else re("{}")}}function re(ie){V+=ie.length,I+=ie.length,T+=ie}function Se(ie){if(j){for(T+=`
package/dist/index.html CHANGED
@@ -14,7 +14,7 @@
14
14
  type="module"
15
15
  async
16
16
  crossorigin
17
- src="/assets/app-jfWpanfK.js"
17
+ src="/assets/app-DBSHy7TS.js"
18
18
  ></script>
19
19
  <style>
20
20
  @font-face {
@@ -201,6 +201,7 @@
201
201
  color: hsl(var(--foreground));
202
202
  line-height: 1.5;
203
203
  }
204
+ input,
204
205
  button {
205
206
  background-color: hsl(var(--background));
206
207
  color: hsl(var(--foreground));
@@ -219,6 +220,106 @@
219
220
  display: flex;
220
221
  flex-direction: column;
221
222
  }
223
+ .service-host-dropdown-wrapper[data-v-2eb02fe1] {
224
+ position: relative;
225
+ margin-left: auto;
226
+ }
227
+ .service-host-dropdown[data-v-2eb02fe1] {
228
+ display: flex;
229
+ align-items: center;
230
+ gap: 0.5rem;
231
+ padding: 0.375rem 0.75rem;
232
+ border: 1px solid hsl(var(--border));
233
+ border-radius: var(--radius);
234
+ background: hsl(var(--background));
235
+ color: hsl(var(--foreground));
236
+ font-size: 0.875rem;
237
+ min-width: 200px;
238
+ height: 2rem;
239
+ cursor: pointer;
240
+ transition: border-color 0.2s;
241
+ }
242
+ .service-host-dropdown[data-v-2eb02fe1]:hover {
243
+ border-color: hsl(var(--ring));
244
+ }
245
+ .service-host-dropdown .service-host-placeholder[data-v-2eb02fe1] {
246
+ flex: 1;
247
+ color: hsl(var(--muted-foreground));
248
+ }
249
+ .service-host-dropdown .service-host-chevron[data-v-2eb02fe1] {
250
+ color: hsl(var(--muted-foreground));
251
+ transition: transform 0.2s;
252
+ flex-shrink: 0;
253
+ }
254
+ .welcome-description[data-v-d0cf2fc7] {
255
+ font-size: 1.125rem;
256
+ color: hsl(var(--muted-foreground));
257
+ margin: 0 0 2.5rem;
258
+ line-height: 1.6;
259
+ }
260
+ .service-host-input-section[data-v-d0cf2fc7] {
261
+ margin: 2rem 0;
262
+ }
263
+ .service-host-direct-form[data-v-d0cf2fc7] {
264
+ margin-top: 1.5rem;
265
+ }
266
+ .service-host-direct-form .service-host-input-wrapper[data-v-d0cf2fc7] {
267
+ display: flex;
268
+ flex-direction: column;
269
+ gap: 0.75rem;
270
+ align-items: stretch;
271
+ justify-content: center;
272
+ max-width: 500px;
273
+ margin: 0 auto;
274
+ }
275
+ .service-host-input-wrapper[data-v-d0cf2fc7] {
276
+ display: flex;
277
+ gap: 0.75rem;
278
+ align-items: center;
279
+ justify-content: center;
280
+ margin-top: 1.5rem;
281
+ }
282
+ .service-host-input[data-v-d0cf2fc7] {
283
+ padding: 0.75rem 1rem;
284
+ border: 1px solid hsl(var(--border));
285
+ border-radius: var(--radius);
286
+ background: hsl(var(--background));
287
+ color: hsl(var(--foreground));
288
+ font-size: 1rem;
289
+ min-width: 300px;
290
+ transition: border-color 0.2s;
291
+ }
292
+ .service-host-input[data-v-d0cf2fc7]:hover {
293
+ border-color: hsl(var(--accent));
294
+ }
295
+ .service-host-input[data-v-d0cf2fc7]:focus {
296
+ outline: none;
297
+ border-color: hsl(var(--ring));
298
+ }
299
+ .service-host-input[data-v-d0cf2fc7]::placeholder {
300
+ color: hsl(var(--muted-foreground));
301
+ }
302
+ .service-host-submit-btn[data-v-d0cf2fc7] {
303
+ padding: 0.75rem 1.5rem;
304
+ border: 1px solid hsl(var(--border));
305
+ border-radius: var(--radius);
306
+ background: hsl(var(--primary));
307
+ color: hsl(var(--primary-foreground));
308
+ font-size: 1rem;
309
+ font-weight: 500;
310
+ cursor: pointer;
311
+ transition: background 0.2s;
312
+ }
313
+ .service-host-submit-btn[data-v-d0cf2fc7]:hover:not(:disabled) {
314
+ background: hsl(var(--primary) / 0.9);
315
+ }
316
+ .service-host-submit-btn[data-v-d0cf2fc7]:disabled {
317
+ opacity: 0.5;
318
+ cursor: not-allowed;
319
+ }
320
+ .service-host-direct-form .service-host-submit-btn[data-v-d0cf2fc7] {
321
+ width: 100%;
322
+ }
222
323
  .openapi-test {
223
324
  height: 100vh;
224
325
  display: flex;
@@ -253,16 +354,24 @@
253
354
  flex-wrap: wrap;
254
355
  }
255
356
  .header-title-section {
357
+ display: flex;
358
+ flex-direction: row;
359
+ align-items: center;
360
+ gap: 0.75rem;
361
+ flex: 1;
362
+ min-width: 0;
363
+ }
364
+ .title-section-content {
256
365
  display: flex;
257
366
  flex-direction: column;
258
367
  gap: 0.25rem;
259
- flex: 1;
260
368
  min-width: 0;
261
369
  }
262
370
  .title-row {
263
371
  display: flex;
264
372
  align-items: baseline;
265
373
  gap: 0.75rem;
374
+ flex-wrap: wrap;
266
375
  }
267
376
  .logo {
268
377
  font-size: 1.5rem;
@@ -322,94 +431,7 @@
322
431
  overflow: hidden;
323
432
  min-height: 0;
324
433
  }
325
- .endpoints-sidebar {
326
- background: hsl(var(--card));
327
- display: flex;
328
- flex-direction: column;
329
- flex-shrink: 0;
330
- overflow: hidden;
331
- transition: width 0.3s ease;
332
- }
333
- .endpoints-sidebar .sidebar-header {
334
- display: flex;
335
- justify-content: space-between;
336
- align-items: center;
337
- padding: 1rem;
338
- flex-shrink: 0;
339
- }
340
- .endpoints-sidebar .sidebar-header h2 {
341
- font-size: 1rem;
342
- margin: 0;
343
- font-weight: 600;
344
- white-space: nowrap;
345
- overflow: hidden;
346
- text-overflow: ellipsis;
347
- }
348
- .sidebar-toggle {
349
- padding: 0.25rem 0.5rem;
350
- background: hsl(var(--muted));
351
- color: hsl(var(--foreground));
352
- border: 1px solid hsl(var(--border));
353
- border-radius: calc(var(--radius) - 2px);
354
- cursor: pointer;
355
- line-height: 1;
356
- transition: all 0.2s;
357
- flex-shrink: 0;
358
- display: flex;
359
- align-items: center;
360
- justify-content: center;
361
- }
362
- .sidebar-toggle:hover {
363
- background: hsl(var(--accent));
364
- opacity: 0.9;
365
- }
366
- .sidebar-toggle:active {
367
- transform: scale(0.95);
368
- }
369
- .sidebar-content {
370
- flex: 1;
371
- overflow-y: auto;
372
- overflow-x: hidden;
373
- min-height: 0;
374
- padding-left: 1rem;
375
- padding-bottom: 1rem;
376
- }
377
- .resize-handle {
378
- width: 8px;
379
- background: hsl(var(--card));
380
- cursor: col-resize;
381
- flex-shrink: 0;
382
- position: relative;
383
- -webkit-user-select: none;
384
- user-select: none;
385
- display: flex;
386
- justify-content: center;
387
- align-items: stretch;
388
- }
389
- .resize-handle:before {
390
- content: "";
391
- position: absolute;
392
- left: 50%;
393
- transform: translate(-50%);
394
- width: 8px;
395
- top: 0;
396
- bottom: 0;
397
- cursor: col-resize;
398
- transition: background-color 0.2s;
399
- }
400
- .resize-handle:hover:before {
401
- background: hsl(var(--accent));
402
- }
403
- .resize-handle-endpoints {
404
- border-right: 1px solid hsl(var(--border));
405
- }
406
- .loading {
407
- padding: 0.75rem;
408
- text-align: center;
409
- color: hsl(var(--muted-foreground));
410
- font-size: 0.875rem;
411
- }
412
- .endpoint-tester {
434
+ .endpoint-tester.empty {
413
435
  flex: 1;
414
436
  padding: 1.5rem;
415
437
  overflow-y: auto;
@@ -426,8 +448,6 @@
426
448
  border-right: 1px solid hsl(var(--border));
427
449
  display: flex;
428
450
  flex-direction: column;
429
- }
430
- .endpoint-tester.empty {
431
451
  align-items: center;
432
452
  justify-content: center;
433
453
  }
@@ -472,31 +492,6 @@
472
492
  margin: 0 0 2.5rem;
473
493
  line-height: 1.6;
474
494
  }
475
- .welcome-tips {
476
- display: flex;
477
- flex-direction: column;
478
- gap: 1rem;
479
- margin-top: 2rem;
480
- text-align: left;
481
- }
482
- .tip-item {
483
- display: flex;
484
- align-items: center;
485
- gap: 0.75rem;
486
- padding: 0.75rem 1rem;
487
- background: hsl(var(--card));
488
- border: 1px solid hsl(var(--border));
489
- border-radius: 6px;
490
- color: hsl(var(--foreground));
491
- font-size: 0.9375rem;
492
- cursor: default;
493
- -webkit-user-select: none;
494
- user-select: none;
495
- }
496
- .tip-icon {
497
- flex-shrink: 0;
498
- color: hsl(var(--muted-foreground));
499
- }
500
495
  </style>
501
496
  <link
502
497
  rel="preload"
@@ -504,8 +499,8 @@
504
499
  href="/assets/app-Dzrp8B7R.css"
505
500
  as="style"
506
501
  />
507
- <link rel="modulepreload" crossorigin href="/assets/Main-CWVVijRK.js" />
508
- <link rel="preload" href="/assets/Main-B4YDXfN4.css" as="style" />
502
+ <link rel="modulepreload" crossorigin href="/assets/Main-BD4o1zjI.js" />
503
+ <link rel="preload" href="/assets/Main-Cy83ExML.css" as="style" />
509
504
  <link
510
505
  rel="preload"
511
506
  as="font"
@@ -592,15 +587,40 @@
592
587
  <header class="test-header">
593
588
  <div class="header-content">
594
589
  <div class="header-title-section">
595
- <div class="title-row">
596
- <h1 class="logo">OpenAPI Studio</h1>
590
+ <div class="title-section-content">
591
+ <div class="title-row">
592
+ <h1 class="logo">OpenAPI Studio</h1>
593
+ <!---->
594
+ </div>
597
595
  <!---->
598
596
  </div>
599
597
  <!---->
600
598
  </div>
601
599
  <div class="header-actions">
600
+ <div class="service-host-dropdown-wrapper" data-v-2eb02fe1>
601
+ <div class="service-host-dropdown" data-v-2eb02fe1>
602
+ <span class="service-host-placeholder" data-v-2eb02fe1
603
+ >Select service host</span
604
+ ><svg
605
+ xmlns="http://www.w3.org/2000/svg"
606
+ width="16"
607
+ height="16"
608
+ viewBox="0 0 24 24"
609
+ fill="none"
610
+ stroke="currentColor"
611
+ stroke-width="2"
612
+ stroke-linecap="round"
613
+ stroke-linejoin="round"
614
+ class="lucide service-host-chevron lucide-chevron-down-icon lucide-chevron-down service-host-chevron"
615
+ data-v-2eb02fe1=""
616
+ >
617
+ <path d="m6 9 6 6 6-6" />
618
+ </svg>
619
+ </div>
620
+ <!---->
621
+ </div>
602
622
  <a
603
- href="openapi.json"
623
+ href
604
624
  target="_blank"
605
625
  rel="noopener noreferrer"
606
626
  class="openapi-spec-link"
@@ -668,31 +688,7 @@
668
688
  </header>
669
689
  <!---->
670
690
  <div class="test-container">
671
- <aside class="endpoints-sidebar" style="width: 500px">
672
- <div class="sidebar-header">
673
- <h2>Endpoints</h2>
674
- <button class="sidebar-toggle" title="Collapse sidebar">
675
- <svg
676
- xmlns="http://www.w3.org/2000/svg"
677
- width="16"
678
- height="16"
679
- viewBox="0 0 24 24"
680
- fill="none"
681
- stroke="currentColor"
682
- stroke-width="2"
683
- stroke-linecap="round"
684
- stroke-linejoin="round"
685
- class="lucide lucide-chevron-left-icon lucide-chevron-left"
686
- >
687
- <path d="m15 18-6-6 6-6" />
688
- </svg>
689
- </button>
690
- </div>
691
- <div class="sidebar-content" style>
692
- <div class="loading">Loading OpenAPI spec...</div>
693
- </div>
694
- </aside>
695
- <div class="resize-handle resize-handle-endpoints"></div>
691
+ <!----><!---->
696
692
  <main class="endpoint-tester empty">
697
693
  <div class="empty-state">
698
694
  <div class="welcome-content">
@@ -720,70 +716,36 @@
720
716
  </svg>
721
717
  </div>
722
718
  <h1 class="welcome-title">Welcome to OpenAPI Studio</h1>
723
- <p class="welcome-description">
724
- Select an endpoint from the sidebar to start testing your API
725
- endpoints.
726
- </p>
727
- <div class="welcome-tips">
728
- <div class="tip-item">
729
- <svg
730
- xmlns="http://www.w3.org/2000/svg"
731
- width="20"
732
- height="20"
733
- viewBox="0 0 24 24"
734
- fill="none"
735
- stroke="currentColor"
736
- stroke-width="2"
737
- stroke-linecap="round"
738
- stroke-linejoin="round"
739
- class="lucide tip-icon lucide-file-text-icon lucide-file-text tip-icon"
740
- >
741
- <path
742
- d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"
743
- />
744
- <path d="M14 2v5a1 1 0 0 0 1 1h5" />
745
- <path d="M10 9H8" />
746
- <path d="M16 13H8" />
747
- <path d="M16 17H8" /></svg
748
- ><span>Browse available endpoints in the sidebar</span>
749
- </div>
750
- <div class="tip-item">
751
- <svg
752
- xmlns="http://www.w3.org/2000/svg"
753
- width="20"
754
- height="20"
755
- viewBox="0 0 24 24"
756
- fill="none"
757
- stroke="currentColor"
758
- stroke-width="2"
759
- stroke-linecap="round"
760
- stroke-linejoin="round"
761
- class="lucide tip-icon lucide-zap-icon lucide-zap tip-icon"
762
- >
763
- <path
764
- d="M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z"
765
- /></svg
766
- ><span>Test requests with custom parameters</span>
767
- </div>
768
- <div class="tip-item">
769
- <svg
770
- xmlns="http://www.w3.org/2000/svg"
771
- width="20"
772
- height="20"
773
- viewBox="0 0 24 24"
774
- fill="none"
775
- stroke="currentColor"
776
- stroke-width="2"
777
- stroke-linecap="round"
778
- stroke-linejoin="round"
779
- class="lucide tip-icon lucide-chart-no-axes-column-increasing-icon lucide-chart-no-axes-column-increasing tip-icon"
780
- >
781
- <path d="M5 21v-6" />
782
- <path d="M12 21V9" />
783
- <path d="M19 21V3" /></svg
784
- ><span>View responses and schema documentation</span>
719
+ <!---->
720
+ <div class="service-host-input-section" data-v-d0cf2fc7>
721
+ <p class="welcome-description" data-v-d0cf2fc7>
722
+ Please enter your service host URL to get started.
723
+ </p>
724
+ <div class="service-host-direct-form" data-v-d0cf2fc7>
725
+ <div class="service-host-input-wrapper" data-v-d0cf2fc7>
726
+ <input
727
+ value
728
+ type="text"
729
+ placeholder="Base URL (e.g., https://api.example.com)"
730
+ class="service-host-input"
731
+ data-v-d0cf2fc7
732
+ /><input
733
+ value
734
+ type="text"
735
+ placeholder="OpenAPI Path (optional, e.g., /openapi.json)"
736
+ class="service-host-input"
737
+ data-v-d0cf2fc7
738
+ /><button
739
+ class="service-host-submit-btn"
740
+ disabled
741
+ data-v-d0cf2fc7
742
+ >
743
+ Connect
744
+ </button>
745
+ </div>
785
746
  </div>
786
747
  </div>
748
+ <!---->
787
749
  </div>
788
750
  </div>
789
751
  <footer class="app-footer"><p>© 2026 Gamja Labs</p></footer>
@@ -794,7 +756,7 @@
794
756
 
795
757
  <link rel="stylesheet" crossorigin href="/assets/app-Dzrp8B7R.css" /><link
796
758
  rel="stylesheet"
797
- href="/assets/Main-B4YDXfN4.css"
759
+ href="/assets/Main-Cy83ExML.css"
798
760
  />
799
761
  </body>
800
762
  </html>
@@ -0,0 +1 @@
1
+ {"version":"0.3.1","build_id":"1e44a6cf23aa136fda69c192a099bcb6decb88ff"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openapi-studio/core",
3
- "version": "0.2.0",
3
+ "version": "0.3.1",
4
4
  "type": "module",
5
5
  "engines": {
6
6
  "node": "^20.19.0 || >=22.12.0"