@ag-grid-devtools/cli
Advanced tools
Sorry, the diff of this file is too big to display
| #!/usr/bin/env node | ||
| "use strict";require("./index.cjs"); |
| export { } |
| #!/usr/bin/env node | ||
| export * from './index.cjs'; |
| "use strict";var re=Object.defineProperty;var ne=(t,e,s)=>e in t?re(t,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[e]=s;var vt=(t,e,s)=>ne(t,typeof e!="symbol"?e+"":e,s);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var ae=Object.defineProperty,Tt=t=>{throw TypeError(t)},Lt=(t,e)=>{for(var s in e)ae(t,s,{get:e[s],enumerable:!0})},pt=(t,e,s)=>e.has(t)||Tt("Cannot "+s),I=(t,e,s)=>(pt(t,e,"read from private field"),s?s.call(t):e.get(t)),B=(t,e,s)=>e.has(t)?Tt("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,s),q=(t,e,s,i)=>(pt(t,e,"write to private field"),e.set(t,s),s),h=(t,e,s)=>(pt(t,e,"access private method"),s),_t={};Lt(_t,{parsers:()=>ut});var ut={};Lt(ut,{__ng_action:()=>ts,__ng_binding:()=>es,__ng_directive:()=>is,__ng_interpolation:()=>ss});var et=class{constructor(t,e,s,i){this.input=e,this.errLocation=s,this.ctxLocation=i,this.message=`Parser Error: ${t} ${s} [${e}] in ${i}`}},V=class{constructor(t,e){this.start=t,this.end=e}toAbsolute(t){return new T(t+this.start,t+this.end)}},g=class{constructor(t,e){this.span=t,this.sourceSpan=e}toString(){return"AST"}},D=class extends g{constructor(t,e,s){super(t,e),this.nameSpan=s}},P=class extends g{visit(t,e=null){}},z=class extends g{visit(t,e=null){return t.visitImplicitReceiver(this,e)}},he=class extends z{visit(t,e=null){var s;return(s=t.visitThisReceiver)==null?void 0:s.call(t,this,e)}},$t=class extends g{constructor(t,e,s){super(t,e),this.expressions=s}visit(t,e=null){return t.visitChain(this,e)}},Mt=class extends g{constructor(t,e,s,i,r){super(t,e),this.condition=s,this.trueExp=i,this.falseExp=r}visit(t,e=null){return t.visitConditional(this,e)}},st=class extends D{constructor(t,e,s,i,r){super(t,e,s),this.receiver=i,this.name=r}visit(t,e=null){return t.visitPropertyRead(this,e)}},Bt=class extends D{constructor(t,e,s,i,r,n){super(t,e,s),this.receiver=i,this.name=r,this.value=n}visit(t,e=null){return t.visitPropertyWrite(this,e)}},it=class extends D{constructor(t,e,s,i,r){super(t,e,s),this.receiver=i,this.name=r}visit(t,e=null){return t.visitSafePropertyRead(this,e)}},Wt=class extends g{constructor(t,e,s,i){super(t,e),this.receiver=s,this.key=i}visit(t,e=null){return t.visitKeyedRead(this,e)}},rt=class extends g{constructor(t,e,s,i){super(t,e),this.receiver=s,this.key=i}visit(t,e=null){return t.visitSafeKeyedRead(this,e)}},Ut=class extends g{constructor(t,e,s,i,r){super(t,e),this.receiver=s,this.key=i,this.value=r}visit(t,e=null){return t.visitKeyedWrite(this,e)}},Rt=class extends D{constructor(t,e,s,i,r,n){super(t,e,n),this.exp=s,this.name=i,this.args=r}visit(t,e=null){return t.visitPipe(this,e)}},O=class extends g{constructor(t,e,s){super(t,e),this.value=s}visit(t,e=null){return t.visitLiteralPrimitive(this,e)}},Gt=class extends g{constructor(t,e,s){super(t,e),this.expressions=s}visit(t,e=null){return t.visitLiteralArray(this,e)}},Vt=class extends g{constructor(t,e,s,i){super(t,e),this.keys=s,this.values=i}visit(t,e=null){return t.visitLiteralMap(this,e)}},Ft=class extends g{constructor(t,e,s,i){super(t,e),this.strings=s,this.expressions=i}visit(t,e=null){return t.visitInterpolation(this,e)}},E=class extends g{constructor(t,e,s,i,r){super(t,e),this.operation=s,this.left=i,this.right=r}visit(t,e=null){return t.visitBinary(this,e)}},nt=class at extends E{static createMinus(e,s,i){return new at(e,s,"-",i,"-",new O(e,s,0),i)}static createPlus(e,s,i){return new at(e,s,"+",i,"-",i,new O(e,s,0))}constructor(e,s,i,r,n,a,l){super(e,s,n,a,l),this.operator=i,this.expr=r,this.left=null,this.right=null,this.operation=null}visit(e,s=null){return e.visitUnary!==void 0?e.visitUnary(this,s):e.visitBinary(this,s)}},jt=class extends g{constructor(t,e,s){super(t,e),this.expression=s}visit(t,e=null){return t.visitPrefixNot(this,e)}},qt=class extends g{constructor(t,e,s){super(t,e),this.expression=s}visit(t,e=null){return t.visitNonNullAssert(this,e)}},zt=class extends g{constructor(t,e,s,i,r){super(t,e),this.receiver=s,this.args=i,this.argumentSpan=r}visit(t,e=null){return t.visitCall(this,e)}},ht=class extends g{constructor(t,e,s,i,r){super(t,e),this.receiver=s,this.args=i,this.argumentSpan=r}visit(t,e=null){return t.visitSafeCall(this,e)}},T=class{constructor(t,e){this.start=t,this.end=e}},L=class extends g{constructor(t,e,s,i,r){super(new V(0,e===null?0:e.length),new T(i,e===null?i:i+e.length)),this.ast=t,this.source=e,this.location=s,this.errors=r}visit(t,e=null){return t.visitASTWithSource?t.visitASTWithSource(this,e):this.ast.visit(t,e)}toString(){return`${this.source} in ${this.location}`}},ot=class{constructor(t,e,s){this.sourceSpan=t,this.key=e,this.value=s}},Dt=class{constructor(t,e,s){this.sourceSpan=t,this.key=e,this.value=s}},oe=class{visit(t,e){t.visit(this,e)}visitUnary(t,e){this.visit(t.expr,e)}visitBinary(t,e){this.visit(t.left,e),this.visit(t.right,e)}visitChain(t,e){this.visitAll(t.expressions,e)}visitConditional(t,e){this.visit(t.condition,e),this.visit(t.trueExp,e),this.visit(t.falseExp,e)}visitPipe(t,e){this.visit(t.exp,e),this.visitAll(t.args,e)}visitImplicitReceiver(t,e){}visitThisReceiver(t,e){}visitInterpolation(t,e){this.visitAll(t.expressions,e)}visitKeyedRead(t,e){this.visit(t.receiver,e),this.visit(t.key,e)}visitKeyedWrite(t,e){this.visit(t.receiver,e),this.visit(t.key,e),this.visit(t.value,e)}visitLiteralArray(t,e){this.visitAll(t.expressions,e)}visitLiteralMap(t,e){this.visitAll(t.values,e)}visitLiteralPrimitive(t,e){}visitPrefixNot(t,e){this.visit(t.expression,e)}visitNonNullAssert(t,e){this.visit(t.expression,e)}visitPropertyRead(t,e){this.visit(t.receiver,e)}visitPropertyWrite(t,e){this.visit(t.receiver,e),this.visit(t.value,e)}visitSafePropertyRead(t,e){this.visit(t.receiver,e)}visitSafeKeyedRead(t,e){this.visit(t.receiver,e),this.visit(t.key,e)}visitCall(t,e){this.visit(t.receiver,e),this.visitAll(t.args,e)}visitSafeCall(t,e){this.visit(t.receiver,e),this.visitAll(t.args,e)}visitAll(t,e){for(let s of t)this.visit(s,e)}},yt;(function(t){t[t.DEFAULT=0]="DEFAULT",t[t.LITERAL_ATTR=1]="LITERAL_ATTR",t[t.ANIMATION=2]="ANIMATION",t[t.TWO_WAY=3]="TWO_WAY"})(yt||(yt={}));var gt;(function(t){t[t.Regular=0]="Regular",t[t.Animation=1]="Animation",t[t.TwoWay=2]="TwoWay"})(gt||(gt={}));var mt;(function(t){t[t.Property=0]="Property",t[t.Attribute=1]="Attribute",t[t.Class=2]="Class",t[t.Style=3]="Style",t[t.Animation=4]="Animation",t[t.TwoWay=5]="TwoWay"})(mt||(mt={}));function le(t){return t>=9&&t<=32||t==160}function K(t){return 48<=t&&t<=57}function ce(t){return t>=97&&t<=122||t>=65&&t<=90}function wt(t){return t===39||t===34||t===96}var p;(function(t){t[t.Character=0]="Character",t[t.Identifier=1]="Identifier",t[t.PrivateIdentifier=2]="PrivateIdentifier",t[t.Keyword=3]="Keyword",t[t.String=4]="String",t[t.Operator=5]="Operator",t[t.Number=6]="Number",t[t.Error=7]="Error"})(p||(p={}));var pe=["var","let","as","null","undefined","true","false","if","else","this"],ue=class{tokenize(t){let e=new me(t),s=[],i=e.scanToken();for(;i!=null;)s.push(i),i=e.scanToken();return s}},b=class{constructor(t,e,s,i,r){this.index=t,this.end=e,this.type=s,this.numValue=i,this.strValue=r}isCharacter(t){return this.type==p.Character&&this.numValue==t}isNumber(){return this.type==p.Number}isString(){return this.type==p.String}isOperator(t){return this.type==p.Operator&&this.strValue==t}isIdentifier(){return this.type==p.Identifier}isPrivateIdentifier(){return this.type==p.PrivateIdentifier}isKeyword(){return this.type==p.Keyword}isKeywordLet(){return this.type==p.Keyword&&this.strValue=="let"}isKeywordAs(){return this.type==p.Keyword&&this.strValue=="as"}isKeywordNull(){return this.type==p.Keyword&&this.strValue=="null"}isKeywordUndefined(){return this.type==p.Keyword&&this.strValue=="undefined"}isKeywordTrue(){return this.type==p.Keyword&&this.strValue=="true"}isKeywordFalse(){return this.type==p.Keyword&&this.strValue=="false"}isKeywordThis(){return this.type==p.Keyword&&this.strValue=="this"}isError(){return this.type==p.Error}toNumber(){return this.type==p.Number?this.numValue:-1}toString(){switch(this.type){case p.Character:case p.Identifier:case p.Keyword:case p.Operator:case p.PrivateIdentifier:case p.String:case p.Error:return this.strValue;case p.Number:return this.numValue.toString();default:return null}}};function St(t,e,s){return new b(t,e,p.Character,s,String.fromCharCode(s))}function de(t,e,s){return new b(t,e,p.Identifier,0,s)}function fe(t,e,s){return new b(t,e,p.PrivateIdentifier,0,s)}function xe(t,e,s){return new b(t,e,p.Keyword,0,s)}function Q(t,e,s){return new b(t,e,p.Operator,0,s)}function ve(t,e,s){return new b(t,e,p.String,0,s)}function ye(t,e,s){return new b(t,e,p.Number,s,"")}function ge(t,e,s){return new b(t,e,p.Error,0,s)}var Y=new b(-1,-1,p.Character,0,""),me=class{constructor(t){this.input=t,this.peek=0,this.index=-1,this.length=t.length,this.advance()}advance(){this.peek=++this.index>=this.length?0:this.input.charCodeAt(this.index)}scanToken(){let t=this.input,e=this.length,s=this.peek,i=this.index;for(;s<=32;)if(++i>=e){s=0;break}else s=t.charCodeAt(i);if(this.peek=s,this.index=i,i>=e)return null;if(Ct(s))return this.scanIdentifier();if(K(s))return this.scanNumber(i);let r=i;switch(s){case 46:return this.advance(),K(this.peek)?this.scanNumber(r):St(r,this.index,46);case 40:case 41:case 123:case 125:case 91:case 93:case 44:case 58:case 59:return this.scanCharacter(r,s);case 39:case 34:return this.scanString();case 35:return this.scanPrivateIdentifier();case 43:case 45:case 42:case 47:case 37:case 94:return this.scanOperator(r,String.fromCharCode(s));case 63:return this.scanQuestion(r);case 60:case 62:return this.scanComplexOperator(r,String.fromCharCode(s),61,"=");case 33:case 61:return this.scanComplexOperator(r,String.fromCharCode(s),61,"=",61,"=");case 38:return this.scanComplexOperator(r,"&",38,"&");case 124:return this.scanComplexOperator(r,"|",124,"|");case 160:for(;le(this.peek);)this.advance();return this.scanToken()}return this.advance(),this.error(`Unexpected character [${String.fromCharCode(s)}]`,0)}scanCharacter(t,e){return this.advance(),St(t,this.index,e)}scanOperator(t,e){return this.advance(),Q(t,this.index,e)}scanComplexOperator(t,e,s,i,r,n){this.advance();let a=e;return this.peek==s&&(this.advance(),a+=i),r!=null&&this.peek==r&&(this.advance(),a+=n),Q(t,this.index,a)}scanIdentifier(){let t=this.index;for(this.advance();kt(this.peek);)this.advance();let e=this.input.substring(t,this.index);return pe.indexOf(e)>-1?xe(t,this.index,e):de(t,this.index,e)}scanPrivateIdentifier(){let t=this.index;if(this.advance(),!Ct(this.peek))return this.error("Invalid character [#]",-1);for(;kt(this.peek);)this.advance();let e=this.input.substring(t,this.index);return fe(t,this.index,e)}scanNumber(t){let e=this.index===t,s=!1;for(this.advance();;){if(!K(this.peek))if(this.peek===95){if(!K(this.input.charCodeAt(this.index-1))||!K(this.input.charCodeAt(this.index+1)))return this.error("Invalid numeric separator",0);s=!0}else if(this.peek===46)e=!1;else if(we(this.peek)){if(this.advance(),Se(this.peek)&&this.advance(),!K(this.peek))return this.error("Invalid exponent",-1);e=!1}else break;this.advance()}let i=this.input.substring(t,this.index);s&&(i=i.replace(/_/g,""));let r=e?ke(i):parseFloat(i);return ye(t,this.index,r)}scanString(){let t=this.index,e=this.peek;this.advance();let s="",i=this.index,r=this.input;for(;this.peek!=e;)if(this.peek==92){s+=r.substring(i,this.index);let a;if(this.advance(),this.peek==117){let l=r.substring(this.index+1,this.index+5);if(/^[0-9a-f]+$/i.test(l))a=parseInt(l,16);else return this.error(`Invalid unicode escape [\\u${l}]`,0);for(let c=0;c<5;c++)this.advance()}else a=Ce(this.peek),this.advance();s+=String.fromCharCode(a),i=this.index}else{if(this.peek==0)return this.error("Unterminated quote",0);this.advance()}let n=r.substring(i,this.index);return this.advance(),ve(t,this.index,s+n)}scanQuestion(t){this.advance();let e="?";return(this.peek===63||this.peek===46)&&(e+=this.peek===46?".":"?",this.advance()),Q(t,this.index,e)}error(t,e){let s=this.index+e;return ge(s,this.index,`Lexer Error: ${t} at column ${s} in expression [${this.input}]`)}};function Ct(t){return 97<=t&&t<=122||65<=t&&t<=90||t==95||t==36}function kt(t){return ce(t)||K(t)||t==95||t==36}function we(t){return t==101||t==69}function Se(t){return t==45||t==43}function Ce(t){switch(t){case 110:return 10;case 102:return 12;case 114:return 13;case 116:return 9;case 118:return 11;default:return t}}function ke(t){let e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e}var Pe=[/@/,/^\s*$/,/[<>]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//];function Oe(t,e){if(e!=null&&!(Array.isArray(e)&&e.length==2))throw new Error(`Expected '${t}' to be an array, [start, end].`);if(e!=null){let s=e[0],i=e[1];Pe.forEach(r=>{if(r.test(s)||r.test(i))throw new Error(`['${s}', '${i}'] contains unusable interpolation symbol.`)})}}var Ee=class Ht{static fromArray(e){return e?(Oe("interpolation",e),new Ht(e[0],e[1])):_}constructor(e,s){this.start=e,this.end=s}},_=new Ee("{{","}}"),Ie=class{constructor(t,e,s){this.strings=t,this.expressions=e,this.offsets=s}},be=class{constructor(t,e,s){this.templateBindings=t,this.warnings=e,this.errors=s}},Jt=class{constructor(t){this._lexer=t,this.errors=[]}parseAction(t,e,s,i=_){this._checkNoInterpolation(t,e,i);let r=this._stripComments(t),n=this._lexer.tokenize(r),a=new W(t,e,s,n,1,this.errors,0).parseChain();return new L(a,t,e,s,this.errors)}parseBinding(t,e,s,i=_){let r=this._parseBindingAst(t,e,s,i);return new L(r,t,e,s,this.errors)}checkSimpleExpression(t){let e=new Ae;return t.visit(e),e.errors}parseSimpleBinding(t,e,s,i=_){let r=this._parseBindingAst(t,e,s,i),n=this.checkSimpleExpression(r);return n.length>0&&this._reportError(`Host binding expression cannot contain ${n.join(" ")}`,t,e),new L(r,t,e,s,this.errors)}_reportError(t,e,s,i){this.errors.push(new et(t,e,s,i))}_parseBindingAst(t,e,s,i){this._checkNoInterpolation(t,e,i);let r=this._stripComments(t),n=this._lexer.tokenize(r);return new W(t,e,s,n,0,this.errors,0).parseChain()}parseTemplateBindings(t,e,s,i,r){let n=this._lexer.tokenize(e);return new W(e,s,r,n,0,this.errors,0).parseTemplateBindings({source:t,span:new T(i,i+t.length)})}parseInterpolation(t,e,s,i,r=_){let{strings:n,expressions:a,offsets:l}=this.splitInterpolation(t,e,i,r);if(a.length===0)return null;let c=[];for(let d=0;d<a.length;++d){let v=a[d].text,y=this._stripComments(v),k=this._lexer.tokenize(y),m=new W(t,e,s,k,0,this.errors,l[d]).parseChain();c.push(m)}return this.createInterpolationAst(n.map(d=>d.text),c,t,e,s)}parseInterpolationExpression(t,e,s){let i=this._stripComments(t),r=this._lexer.tokenize(i),n=new W(t,e,s,r,0,this.errors,0).parseChain(),a=["",""];return this.createInterpolationAst(a,[n],t,e,s)}createInterpolationAst(t,e,s,i,r){let n=new V(0,s.length),a=new Ft(n,n.toAbsolute(r),t,e);return new L(a,s,i,r,this.errors)}splitInterpolation(t,e,s,i=_){let r=[],n=[],a=[],l=s?Ne(s):null,c=0,d=!1,v=!1,{start:y,end:k}=i;for(;c<t.length;)if(d){let m=c,N=m+y.length,A=this._getInterpolationEndIndex(t,k,N);if(A===-1){d=!1,v=!0;break}let F=A+k.length,xt=t.substring(N,A);xt.trim().length===0&&this._reportError("Blank expressions are not allowed in interpolated strings",t,`at column ${c} in`,e),n.push({text:xt,start:m,end:F});let ie=((l==null?void 0:l.get(m))??m)+y.length;a.push(ie),c=F,d=!1}else{let m=c;c=t.indexOf(y,c),c===-1&&(c=t.length);let N=t.substring(m,c);r.push({text:N,start:m,end:c}),d=!0}if(!d)if(v){let m=r[r.length-1];m.text+=t.substring(c),m.end=t.length}else r.push({text:t.substring(c),start:c,end:t.length});return new Ie(r,n,a)}wrapLiteralPrimitive(t,e,s){let i=new V(0,t==null?0:t.length);return new L(new O(i,i.toAbsolute(s),t),t,e,s,this.errors)}_stripComments(t){let e=this._commentStart(t);return e!=null?t.substring(0,e):t}_commentStart(t){let e=null;for(let s=0;s<t.length-1;s++){let i=t.charCodeAt(s),r=t.charCodeAt(s+1);if(i===47&&r==47&&e==null)return s;e===i?e=null:e==null&&wt(i)&&(e=i)}return null}_checkNoInterpolation(t,e,{start:s,end:i}){let r=-1,n=-1;for(let a of this._forEachUnquotedChar(t,0))if(r===-1)t.startsWith(s)&&(r=a);else if(n=this._getInterpolationEndIndex(t,i,a),n>-1)break;r>-1&&n>-1&&this._reportError(`Got interpolation (${s}${i}) where expression was expected`,t,`at column ${r} in`,e)}_getInterpolationEndIndex(t,e,s){for(let i of this._forEachUnquotedChar(t,s)){if(t.startsWith(e,i))return i;if(t.startsWith("//",i))return t.indexOf(e,i)}return-1}*_forEachUnquotedChar(t,e){let s=null,i=0;for(let r=e;r<t.length;r++){let n=t[r];wt(t.charCodeAt(r))&&(s===null||s===n)&&i%2===0?s=s===null?n:null:s===null&&(yield r),i=n==="\\"?i+1:0}}},$;(function(t){t[t.None=0]="None",t[t.Writable=1]="Writable"})($||($={}));var W=class{constructor(t,e,s,i,r,n,a){this.input=t,this.location=e,this.absoluteOffset=s,this.tokens=i,this.parseFlags=r,this.errors=n,this.offset=a,this.rparensExpected=0,this.rbracketsExpected=0,this.rbracesExpected=0,this.context=$.None,this.sourceSpanCache=new Map,this.index=0}peek(t){let e=this.index+t;return e<this.tokens.length?this.tokens[e]:Y}get next(){return this.peek(0)}get atEOF(){return this.index>=this.tokens.length}get inputIndex(){return this.atEOF?this.currentEndIndex:this.next.index+this.offset}get currentEndIndex(){return this.index>0?this.peek(-1).end+this.offset:this.tokens.length===0?this.input.length+this.offset:this.next.index+this.offset}get currentAbsoluteOffset(){return this.absoluteOffset+this.inputIndex}span(t,e){let s=this.currentEndIndex;if(e!==void 0&&e>this.currentEndIndex&&(s=e),t>s){let i=s;s=t,t=i}return new V(t,s)}sourceSpan(t,e){let s=`${t}@${this.inputIndex}:${e}`;return this.sourceSpanCache.has(s)||this.sourceSpanCache.set(s,this.span(t,e).toAbsolute(this.absoluteOffset)),this.sourceSpanCache.get(s)}advance(){this.index++}withContext(t,e){this.context|=t;let s=e();return this.context^=t,s}consumeOptionalCharacter(t){return this.next.isCharacter(t)?(this.advance(),!0):!1}peekKeywordLet(){return this.next.isKeywordLet()}peekKeywordAs(){return this.next.isKeywordAs()}expectCharacter(t){this.consumeOptionalCharacter(t)||this.error(`Missing expected ${String.fromCharCode(t)}`)}consumeOptionalOperator(t){return this.next.isOperator(t)?(this.advance(),!0):!1}expectOperator(t){this.consumeOptionalOperator(t)||this.error(`Missing expected operator ${t}`)}prettyPrintToken(t){return t===Y?"end of input":`token ${t}`}expectIdentifierOrKeyword(){let t=this.next;return!t.isIdentifier()&&!t.isKeyword()?(t.isPrivateIdentifier()?this._reportErrorForPrivateIdentifier(t,"expected identifier or keyword"):this.error(`Unexpected ${this.prettyPrintToken(t)}, expected identifier or keyword`),null):(this.advance(),t.toString())}expectIdentifierOrKeywordOrString(){let t=this.next;return!t.isIdentifier()&&!t.isKeyword()&&!t.isString()?(t.isPrivateIdentifier()?this._reportErrorForPrivateIdentifier(t,"expected identifier, keyword or string"):this.error(`Unexpected ${this.prettyPrintToken(t)}, expected identifier, keyword, or string`),""):(this.advance(),t.toString())}parseChain(){let t=[],e=this.inputIndex;for(;this.index<this.tokens.length;){let s=this.parsePipe();if(t.push(s),this.consumeOptionalCharacter(59))for(this.parseFlags&1||this.error("Binding expression cannot contain chained expression");this.consumeOptionalCharacter(59););else if(this.index<this.tokens.length){let i=this.index;if(this.error(`Unexpected token '${this.next}'`),this.index===i)break}}if(t.length===0){let s=this.offset,i=this.offset+this.input.length;return new P(this.span(s,i),this.sourceSpan(s,i))}return t.length==1?t[0]:new $t(this.span(e),this.sourceSpan(e),t)}parsePipe(){let t=this.inputIndex,e=this.parseExpression();if(this.consumeOptionalOperator("|")){this.parseFlags&1&&this.error("Cannot have a pipe in an action expression");do{let s=this.inputIndex,i=this.expectIdentifierOrKeyword(),r,n;i!==null?r=this.sourceSpan(s):(i="",n=this.next.index!==-1?this.next.index:this.input.length+this.offset,r=new V(n,n).toAbsolute(this.absoluteOffset));let a=[];for(;this.consumeOptionalCharacter(58);)a.push(this.parseExpression());e=new Rt(this.span(t),this.sourceSpan(t,n),e,i,a,r)}while(this.consumeOptionalOperator("|"))}return e}parseExpression(){return this.parseConditional()}parseConditional(){let t=this.inputIndex,e=this.parseLogicalOr();if(this.consumeOptionalOperator("?")){let s=this.parsePipe(),i;if(this.consumeOptionalCharacter(58))i=this.parsePipe();else{let r=this.inputIndex,n=this.input.substring(t,r);this.error(`Conditional expression ${n} requires all 3 expressions`),i=new P(this.span(t),this.sourceSpan(t))}return new Mt(this.span(t),this.sourceSpan(t),e,s,i)}else return e}parseLogicalOr(){let t=this.inputIndex,e=this.parseLogicalAnd();for(;this.consumeOptionalOperator("||");){let s=this.parseLogicalAnd();e=new E(this.span(t),this.sourceSpan(t),"||",e,s)}return e}parseLogicalAnd(){let t=this.inputIndex,e=this.parseNullishCoalescing();for(;this.consumeOptionalOperator("&&");){let s=this.parseNullishCoalescing();e=new E(this.span(t),this.sourceSpan(t),"&&",e,s)}return e}parseNullishCoalescing(){let t=this.inputIndex,e=this.parseEquality();for(;this.consumeOptionalOperator("??");){let s=this.parseEquality();e=new E(this.span(t),this.sourceSpan(t),"??",e,s)}return e}parseEquality(){let t=this.inputIndex,e=this.parseRelational();for(;this.next.type==p.Operator;){let s=this.next.strValue;switch(s){case"==":case"===":case"!=":case"!==":this.advance();let i=this.parseRelational();e=new E(this.span(t),this.sourceSpan(t),s,e,i);continue}break}return e}parseRelational(){let t=this.inputIndex,e=this.parseAdditive();for(;this.next.type==p.Operator;){let s=this.next.strValue;switch(s){case"<":case">":case"<=":case">=":this.advance();let i=this.parseAdditive();e=new E(this.span(t),this.sourceSpan(t),s,e,i);continue}break}return e}parseAdditive(){let t=this.inputIndex,e=this.parseMultiplicative();for(;this.next.type==p.Operator;){let s=this.next.strValue;switch(s){case"+":case"-":this.advance();let i=this.parseMultiplicative();e=new E(this.span(t),this.sourceSpan(t),s,e,i);continue}break}return e}parseMultiplicative(){let t=this.inputIndex,e=this.parsePrefix();for(;this.next.type==p.Operator;){let s=this.next.strValue;switch(s){case"*":case"%":case"/":this.advance();let i=this.parsePrefix();e=new E(this.span(t),this.sourceSpan(t),s,e,i);continue}break}return e}parsePrefix(){if(this.next.type==p.Operator){let t=this.inputIndex,e=this.next.strValue,s;switch(e){case"+":return this.advance(),s=this.parsePrefix(),nt.createPlus(this.span(t),this.sourceSpan(t),s);case"-":return this.advance(),s=this.parsePrefix(),nt.createMinus(this.span(t),this.sourceSpan(t),s);case"!":return this.advance(),s=this.parsePrefix(),new jt(this.span(t),this.sourceSpan(t),s)}}return this.parseCallChain()}parseCallChain(){let t=this.inputIndex,e=this.parsePrimary();for(;;)if(this.consumeOptionalCharacter(46))e=this.parseAccessMember(e,t,!1);else if(this.consumeOptionalOperator("?."))this.consumeOptionalCharacter(40)?e=this.parseCall(e,t,!0):e=this.consumeOptionalCharacter(91)?this.parseKeyedReadOrWrite(e,t,!0):this.parseAccessMember(e,t,!0);else if(this.consumeOptionalCharacter(91))e=this.parseKeyedReadOrWrite(e,t,!1);else if(this.consumeOptionalCharacter(40))e=this.parseCall(e,t,!1);else if(this.consumeOptionalOperator("!"))e=new qt(this.span(t),this.sourceSpan(t),e);else return e}parsePrimary(){let t=this.inputIndex;if(this.consumeOptionalCharacter(40)){this.rparensExpected++;let e=this.parsePipe();return this.rparensExpected--,this.expectCharacter(41),e}else{if(this.next.isKeywordNull())return this.advance(),new O(this.span(t),this.sourceSpan(t),null);if(this.next.isKeywordUndefined())return this.advance(),new O(this.span(t),this.sourceSpan(t),void 0);if(this.next.isKeywordTrue())return this.advance(),new O(this.span(t),this.sourceSpan(t),!0);if(this.next.isKeywordFalse())return this.advance(),new O(this.span(t),this.sourceSpan(t),!1);if(this.next.isKeywordThis())return this.advance(),new he(this.span(t),this.sourceSpan(t));if(this.consumeOptionalCharacter(91)){this.rbracketsExpected++;let e=this.parseExpressionList(93);return this.rbracketsExpected--,this.expectCharacter(93),new Gt(this.span(t),this.sourceSpan(t),e)}else{if(this.next.isCharacter(123))return this.parseLiteralMap();if(this.next.isIdentifier())return this.parseAccessMember(new z(this.span(t),this.sourceSpan(t)),t,!1);if(this.next.isNumber()){let e=this.next.toNumber();return this.advance(),new O(this.span(t),this.sourceSpan(t),e)}else if(this.next.isString()){let e=this.next.toString();return this.advance(),new O(this.span(t),this.sourceSpan(t),e)}else return this.next.isPrivateIdentifier()?(this._reportErrorForPrivateIdentifier(this.next,null),new P(this.span(t),this.sourceSpan(t))):this.index>=this.tokens.length?(this.error(`Unexpected end of expression: ${this.input}`),new P(this.span(t),this.sourceSpan(t))):(this.error(`Unexpected token ${this.next}`),new P(this.span(t),this.sourceSpan(t)))}}}parseExpressionList(t){let e=[];do if(!this.next.isCharacter(t))e.push(this.parsePipe());else break;while(this.consumeOptionalCharacter(44));return e}parseLiteralMap(){let t=[],e=[],s=this.inputIndex;if(this.expectCharacter(123),!this.consumeOptionalCharacter(125)){this.rbracesExpected++;do{let i=this.inputIndex,r=this.next.isString(),n=this.expectIdentifierOrKeywordOrString(),a={key:n,quoted:r};if(t.push(a),r)this.expectCharacter(58),e.push(this.parsePipe());else if(this.consumeOptionalCharacter(58))e.push(this.parsePipe());else{a.isShorthandInitialized=!0;let l=this.span(i),c=this.sourceSpan(i);e.push(new st(l,c,c,new z(l,c),n))}}while(this.consumeOptionalCharacter(44)&&!this.next.isCharacter(125));this.rbracesExpected--,this.expectCharacter(125)}return new Vt(this.span(s),this.sourceSpan(s),t,e)}parseAccessMember(t,e,s){let i=this.inputIndex,r=this.withContext($.Writable,()=>{let l=this.expectIdentifierOrKeyword()??"";return l.length===0&&this.error("Expected identifier for property access",t.span.end),l}),n=this.sourceSpan(i),a;if(s)this.consumeOptionalOperator("=")?(this.error("The '?.' operator cannot be used in the assignment"),a=new P(this.span(e),this.sourceSpan(e))):a=new it(this.span(e),this.sourceSpan(e),n,t,r);else if(this.consumeOptionalOperator("=")){if(!(this.parseFlags&1))return this.error("Bindings cannot contain assignments"),new P(this.span(e),this.sourceSpan(e));let l=this.parseConditional();a=new Bt(this.span(e),this.sourceSpan(e),n,t,r,l)}else a=new st(this.span(e),this.sourceSpan(e),n,t,r);return a}parseCall(t,e,s){let i=this.inputIndex;this.rparensExpected++;let r=this.parseCallArguments(),n=this.span(i,this.inputIndex).toAbsolute(this.absoluteOffset);this.expectCharacter(41),this.rparensExpected--;let a=this.span(e),l=this.sourceSpan(e);return s?new ht(a,l,t,r,n):new zt(a,l,t,r,n)}parseCallArguments(){if(this.next.isCharacter(41))return[];let t=[];do t.push(this.parsePipe());while(this.consumeOptionalCharacter(44));return t}expectTemplateBindingKey(){let t="",e=!1,s=this.currentAbsoluteOffset;do t+=this.expectIdentifierOrKeywordOrString(),e=this.consumeOptionalOperator("-"),e&&(t+="-");while(e);return{source:t,span:new T(s,s+t.length)}}parseTemplateBindings(t){let e=[];for(e.push(...this.parseDirectiveKeywordBindings(t));this.index<this.tokens.length;){let s=this.parseLetBinding();if(s)e.push(s);else{let i=this.expectTemplateBindingKey(),r=this.parseAsBinding(i);r?e.push(r):(i.source=t.source+i.source.charAt(0).toUpperCase()+i.source.substring(1),e.push(...this.parseDirectiveKeywordBindings(i)))}this.consumeStatementTerminator()}return new be(e,[],this.errors)}parseKeyedReadOrWrite(t,e,s){return this.withContext($.Writable,()=>{this.rbracketsExpected++;let i=this.parsePipe();if(i instanceof P&&this.error("Key access cannot be empty"),this.rbracketsExpected--,this.expectCharacter(93),this.consumeOptionalOperator("="))if(s)this.error("The '?.' operator cannot be used in the assignment");else{let r=this.parseConditional();return new Ut(this.span(e),this.sourceSpan(e),t,i,r)}else return s?new rt(this.span(e),this.sourceSpan(e),t,i):new Wt(this.span(e),this.sourceSpan(e),t,i);return new P(this.span(e),this.sourceSpan(e))})}parseDirectiveKeywordBindings(t){let e=[];this.consumeOptionalCharacter(58);let s=this.getDirectiveBoundTarget(),i=this.currentAbsoluteOffset,r=this.parseAsBinding(t);r||(this.consumeStatementTerminator(),i=this.currentAbsoluteOffset);let n=new T(t.span.start,i);return e.push(new Dt(n,t,s)),r&&e.push(r),e}getDirectiveBoundTarget(){if(this.next===Y||this.peekKeywordAs()||this.peekKeywordLet())return null;let t=this.parsePipe(),{start:e,end:s}=t.span,i=this.input.substring(e,s);return new L(t,i,this.location,this.absoluteOffset+e,this.errors)}parseAsBinding(t){if(!this.peekKeywordAs())return null;this.advance();let e=this.expectTemplateBindingKey();this.consumeStatementTerminator();let s=new T(t.span.start,this.currentAbsoluteOffset);return new ot(s,e,t)}parseLetBinding(){if(!this.peekKeywordLet())return null;let t=this.currentAbsoluteOffset;this.advance();let e=this.expectTemplateBindingKey(),s=null;this.consumeOptionalOperator("=")&&(s=this.expectTemplateBindingKey()),this.consumeStatementTerminator();let i=new T(t,this.currentAbsoluteOffset);return new ot(i,e,s)}consumeStatementTerminator(){this.consumeOptionalCharacter(59)||this.consumeOptionalCharacter(44)}error(t,e=null){this.errors.push(new et(t,this.input,this.locationText(e),this.location)),this.skip()}locationText(t=null){return t==null&&(t=this.index),t<this.tokens.length?`at column ${this.tokens[t].index+1} in`:"at the end of the expression"}_reportErrorForPrivateIdentifier(t,e){let s=`Private identifiers are not supported. Unexpected private identifier: ${t}`;e!==null&&(s+=`, ${e}`),this.error(s)}skip(){let t=this.next;for(;this.index<this.tokens.length&&!t.isCharacter(59)&&!t.isOperator("|")&&(this.rparensExpected<=0||!t.isCharacter(41))&&(this.rbracesExpected<=0||!t.isCharacter(125))&&(this.rbracketsExpected<=0||!t.isCharacter(93))&&(!(this.context&$.Writable)||!t.isOperator("="));)this.next.isError()&&this.errors.push(new et(this.next.toString(),this.input,this.locationText(),this.location)),this.advance(),t=this.next}},Ae=class extends oe{constructor(){super(...arguments),this.errors=[]}visitPipe(){this.errors.push("pipes")}};function Ne(t){let e=new Map,s=0,i=0,r=0;for(;r<t.length;){let n=t[r];if(n.type===9){let[a,l]=n.parts;s+=l.length,i+=a.length}else{let a=n.parts.reduce((l,c)=>l+c.length,0);i+=a,s+=a}e.set(i,s),r++}return e}function Pt({start:t,end:e},s){let i=t,r=e;for(;r!==i&&/\s/.test(s[r-1]);)r--;for(;i!==r&&/\s/.test(s[i]);)i++;return{start:i,end:r}}function Ke({start:t,end:e},s){let i=t,r=e;for(;r!==s.length&&/\s/.test(s[r]);)r++;for(;i!==0&&/\s/.test(s[i-1]);)i--;return{start:i,end:r}}function Te(t,e){return e[t.start-1]==="("&&e[t.end]===")"?{start:t.start-1,end:t.end+1}:t}function Le(t,e,s){let i=0,r={start:t.start,end:t.end};for(;;){let n=Ke(r,e),a=Te(n,e);if(n.start===a.start&&n.end===a.end)break;r.start=a.start,r.end=a.end,i++}return{hasParens:(s?i-1:i)!==0,outerSpan:Pt(s?{start:r.start+1,end:r.end-1}:r,e),innerSpan:Pt(t,e)}}function Qt(t){return typeof t=="string"?e=>e===t:e=>t.test(e)}function _e(t,e,s){let i=Qt(e);for(let r=s;r>=0;r--){let n=t[r];if(i(n))return r}throw new Error(`Cannot find front char ${e} from index ${s} in ${JSON.stringify(t)}`)}function $e(t,e,s){let i=Qt(e);for(let r=s;r<t.length;r++){let n=t[r];if(i(n))return r}throw new Error(`Cannot find character ${e} from index ${s} in ${JSON.stringify(t)}`)}function Me(t){return t.slice(0,1).toLowerCase()+t.slice(1)}function lt(t){let{start:e,end:s}=t;return{start:e,end:s,range:[e,s]}}var Be=t=>Jt.prototype._commentStart(t);function We(t,e){let s=e?Be(t):null;if(s===null)return{text:t,comments:[]};let i={type:"CommentLine",value:t.slice(s+2),...lt({start:s,end:t.length})};return{text:t.slice(0,s),comments:[i]}}function H(t,e=!0){return s=>{let i=new ue,r=new Jt(i),{text:n,comments:a}=We(s,e),l=t(n,r);if(l.errors.length!==0){let[{message:c}]=l.errors;throw new SyntaxError(c.replace(/^Parser Error: | at column \d+ in [^]*$/g,""))}return{result:l,comments:a,text:n}}}var Ue=H((t,e)=>e.parseBinding(t,"",0)),Re=H((t,e)=>e.parseAction(t,"",0)),Ge=H((t,e)=>e.parseInterpolationExpression(t,"",0)),Ve=H((t,e)=>e.parseTemplateBindings("",t,"",0,0),!1),Fe=(t,e,s)=>{if(!(t&&e==null))return Array.isArray(e)||typeof e=="string"?e[s<0?e.length+s:s]:e.at(s)},Yt=Fe,je=class{constructor(t){vt(this,"text");this.text=t}getCharacterIndex(t,e){return $e(this.text,t,e)}getCharacterLastIndex(t,e){return _e(this.text,t,e)}transformSpan(t,{stripSpaces:e=!1,hasParentParens:s=!1}={}){if(!e)return lt(t);let{outerSpan:i,innerSpan:r,hasParens:n}=Le(t,this.text,s),a=lt(r);return n&&(a.extra={parenthesized:!0,parenStart:i.start,parenEnd:i.end}),a}createNode(t,{stripSpaces:e=!0,hasParentParens:s=!1}={}){let{type:i,start:r,end:n}=t,a={...t,...this.transformSpan({start:r,end:n},{stripSpaces:e,hasParentParens:s})};switch(i){case"NumericLiteral":case"StringLiteral":{let l=this.text.slice(a.start,a.end),{value:c}=a;a.extra={...a.extra,raw:l,rawValue:c};break}case"ObjectProperty":{let{shorthand:l}=a;l&&(a.extra={...a.extra,shorthand:l});break}}return a}},qe=je;function dt(t){var e;return!!((e=t.extra)!=null&&e.parenthesized)}function S(t){return dt(t)?t.extra.parenStart:t.start}function C(t){return dt(t)?t.extra.parenEnd:t.end}function Ot(t){return(t.type==="OptionalCallExpression"||t.type==="OptionalMemberExpression")&&!dt(t)}function Et(t,e){let{start:s,end:i}=t.sourceSpan;return s>=i||/^\s+$/.test(e.slice(s,i))}var j,R,o,u,U,x,ct,Zt=class extends qe{constructor(t,e){super(e),B(this,o),B(this,j),B(this,R),q(this,j,t),q(this,R,e)}get node(){return h(this,o,x).call(this,I(this,j))}transformNode(t){return h(this,o,ct).call(this,t)}};j=new WeakMap,R=new WeakMap,o=new WeakSet,u=function(t,{stripSpaces:e=!0,hasParentParens:s=!1}={}){return this.createNode(t,{stripSpaces:e,hasParentParens:s})},U=function(t,e,{computed:s,optional:i,end:r=C(e),hasParentParens:n=!1}){if(Et(t,I(this,R))||t.sourceSpan.start===e.start)return e;let a=h(this,o,x).call(this,t),l=Ot(a);return h(this,o,u).call(this,{type:i||l?"OptionalMemberExpression":"MemberExpression",object:a,property:e,computed:s,...i?{optional:!0}:l?{optional:!1}:void 0,start:S(a),end:r},{hasParentParens:n})},x=function(t,e=!1){return h(this,o,ct).call(this,t,e)},ct=function(t,e=!1){if(t instanceof Ft){let{expressions:s}=t;if(s.length!==1)throw new Error("Unexpected 'Interpolation'");return h(this,o,x).call(this,s[0])}if(t instanceof nt)return h(this,o,u).call(this,{type:"UnaryExpression",prefix:!0,argument:h(this,o,x).call(this,t.expr),operator:t.operator,...t.sourceSpan},{hasParentParens:e});if(t instanceof E){let{left:s,operation:i,right:r}=t,n=h(this,o,x).call(this,s),a=h(this,o,x).call(this,r),l=S(n),c=C(a),d={left:n,right:a,start:l,end:c};return i==="&&"||i==="||"||i==="??"?h(this,o,u).call(this,{...d,type:"LogicalExpression",operator:i},{hasParentParens:e}):h(this,o,u).call(this,{...d,type:"BinaryExpression",operator:i},{hasParentParens:e})}if(t instanceof Rt){let{exp:s,name:i,args:r}=t,n=h(this,o,x).call(this,s),a=S(n),l=C(n),c=this.getCharacterIndex(/\S/,this.getCharacterIndex("|",l)+1),d=h(this,o,u).call(this,{type:"Identifier",name:i,start:c,end:c+i.length}),v=r.map(y=>h(this,o,x).call(this,y));return h(this,o,u).call(this,{type:"NGPipeExpression",left:n,right:d,arguments:v,start:a,end:C(v.length===0?d:Yt(!1,v,-1))},{hasParentParens:e})}if(t instanceof $t)return h(this,o,u).call(this,{type:"NGChainedExpression",expressions:t.expressions.map(s=>h(this,o,x).call(this,s)),...t.sourceSpan},{hasParentParens:e});if(t instanceof Mt){let{condition:s,trueExp:i,falseExp:r}=t,n=h(this,o,x).call(this,s),a=h(this,o,x).call(this,i),l=h(this,o,x).call(this,r);return h(this,o,u).call(this,{type:"ConditionalExpression",test:n,consequent:a,alternate:l,start:S(n),end:C(l)},{hasParentParens:e})}if(t instanceof P)return h(this,o,u).call(this,{type:"NGEmptyExpression",...t.sourceSpan},{hasParentParens:e});if(t instanceof z)return h(this,o,u).call(this,{type:"ThisExpression",...t.sourceSpan},{hasParentParens:e});if(t instanceof Wt||t instanceof rt)return h(this,o,U).call(this,t.receiver,h(this,o,x).call(this,t.key),{computed:!0,optional:t instanceof rt,end:t.sourceSpan.end,hasParentParens:e});if(t instanceof Gt)return h(this,o,u).call(this,{type:"ArrayExpression",elements:t.expressions.map(s=>h(this,o,x).call(this,s)),...t.sourceSpan},{hasParentParens:e});if(t instanceof Vt){let{keys:s,values:i}=t,r=i.map(a=>h(this,o,x).call(this,a)),n=s.map(({key:a,quoted:l},c)=>{let d=r[c],v=S(d),y=C(d),k=this.getCharacterIndex(/\S/,c===0?t.sourceSpan.start+1:this.getCharacterIndex(",",C(r[c-1]))+1),m=v===k?y:this.getCharacterLastIndex(/\S/,this.getCharacterLastIndex(":",v-1)-1)+1,N={start:k,end:m},A=l?h(this,o,u).call(this,{type:"StringLiteral",value:a,...N}):h(this,o,u).call(this,{type:"Identifier",name:a,...N}),F=A.end<A.start||k===v;return h(this,o,u).call(this,{type:"ObjectProperty",key:A,value:d,shorthand:F,computed:!1,start:S(A),end:y})});return h(this,o,u).call(this,{type:"ObjectExpression",properties:n,...t.sourceSpan},{hasParentParens:e})}if(t instanceof O){let{value:s}=t;switch(typeof s){case"boolean":return h(this,o,u).call(this,{type:"BooleanLiteral",value:s,...t.sourceSpan},{hasParentParens:e});case"number":return h(this,o,u).call(this,{type:"NumericLiteral",value:s,...t.sourceSpan},{hasParentParens:e});case"object":return h(this,o,u).call(this,{type:"NullLiteral",...t.sourceSpan},{hasParentParens:e});case"string":return h(this,o,u).call(this,{type:"StringLiteral",value:s,...t.sourceSpan},{hasParentParens:e});case"undefined":return h(this,o,u).call(this,{type:"Identifier",name:"undefined",...t.sourceSpan},{hasParentParens:e});default:throw new Error(`Unexpected LiteralPrimitive value type ${typeof s}`)}}if(t instanceof zt||t instanceof ht){let s=t instanceof ht,{receiver:i,args:r}=t,n=r.length===1?[h(this,o,x).call(this,r[0],!0)]:r.map(d=>h(this,o,x).call(this,d)),a=h(this,o,x).call(this,i),l=Ot(a),c=s||l?"OptionalCallExpression":"CallExpression";return h(this,o,u).call(this,{type:c,callee:a,arguments:n,optional:c==="OptionalCallExpression"?s:void 0,start:S(a),end:t.sourceSpan.end},{hasParentParens:e})}if(t instanceof qt){let s=h(this,o,x).call(this,t.expression);return h(this,o,u).call(this,{type:"TSNonNullExpression",expression:s,start:S(s),end:t.sourceSpan.end},{hasParentParens:e})}if(t instanceof jt){let s=h(this,o,x).call(this,t.expression);return h(this,o,u).call(this,{type:"UnaryExpression",prefix:!0,operator:"!",argument:s,start:t.sourceSpan.start,end:C(s)},{hasParentParens:e})}if(t instanceof st||t instanceof it){let{receiver:s,name:i}=t,r=this.getCharacterLastIndex(/\S/,t.sourceSpan.end-1)+1,n=h(this,o,u).call(this,{type:"Identifier",name:i,start:r-i.length,end:r},Et(s,I(this,R))?{hasParentParens:e}:{});return h(this,o,U).call(this,s,n,{computed:!1,optional:t instanceof it,hasParentParens:e})}if(t instanceof Ut){let s=h(this,o,x).call(this,t.key),i=h(this,o,x).call(this,t.value),r=h(this,o,U).call(this,t.receiver,s,{computed:!0,optional:!1,end:this.getCharacterIndex("]",C(s))+1});return h(this,o,u).call(this,{type:"AssignmentExpression",left:r,operator:"=",right:i,start:S(r),end:C(i)},{hasParentParens:e})}if(t instanceof Bt){let{receiver:s,name:i,value:r}=t,n=h(this,o,x).call(this,r),a=this.getCharacterLastIndex(/\S/,this.getCharacterLastIndex("=",S(n)-1)-1)+1,l=h(this,o,u).call(this,{type:"Identifier",name:i,start:a-i.length,end:a}),c=h(this,o,U).call(this,s,l,{computed:!1,optional:!1});return h(this,o,u).call(this,{type:"AssignmentExpression",left:c,operator:"=",right:n,start:S(c),end:C(n)},{hasParentParens:e})}throw Object.assign(new Error("Unexpected node"),{node:t})};function ze(t,e){return new Zt(t,e).node}function It(t){return t instanceof Dt}function bt(t){return t instanceof ot}var G,M,f,At,w,Z,X,tt,Xt,Nt,te,Kt,De=class extends Zt{constructor(t,e){super(void 0,e),B(this,f),B(this,G),B(this,M),q(this,G,t),q(this,M,e);for(let s of t)h(this,f,Xt).call(this,s)}get expressions(){return h(this,f,te).call(this)}};G=new WeakMap,M=new WeakMap,f=new WeakSet,At=function(){return I(this,G)[0].key},w=function(t,{stripSpaces:e=!0}={}){return this.createNode(t,{stripSpaces:e})},Z=function(t){return this.transformNode(t)},X=function(t){return Me(t.slice(I(this,f,At).source.length))},tt=function(t){let e=I(this,M);if(e[t.start]!=='"'&&e[t.start]!=="'")return;let s=e[t.start],i=!1;for(let r=t.start+1;r<e.length;r++)switch(e[r]){case s:if(!i){t.end=r+1;return}default:i=!1;break;case"\\":i=!i;break}},Xt=function(t){h(this,f,tt).call(this,t.key.span),bt(t)&&t.value&&h(this,f,tt).call(this,t.value.span)},Nt=function(t){if(!t.value||t.value.source)return t.value;let e=this.getCharacterIndex(/\S/,t.sourceSpan.start);return{source:"$implicit",span:{start:e,end:e}}},te=function(){let t=I(this,G),[e]=t,s=I(this,M).slice(e.sourceSpan.start,e.sourceSpan.end).trim().length===0?t.slice(1):t,i=[],r=null;for(let[n,a]of s.entries()){if(r&&It(r)&&bt(a)&&a.value&&a.value.source===r.key.source){let l=h(this,f,w).call(this,{type:"NGMicrosyntaxKey",name:a.key.source,...a.key.span}),c=(y,k)=>({...y,...this.transformSpan({start:y.start,end:k})}),d=y=>({...c(y,l.end),alias:l}),v=i.pop();if(v.type==="NGMicrosyntaxExpression")i.push(d(v));else if(v.type==="NGMicrosyntaxKeyedExpression"){let y=d(v.expression);i.push(c({...v,expression:y},y.end))}else throw new Error(`Unexpected type ${v.type}`)}else i.push(h(this,f,Kt).call(this,a,n));r=a}return h(this,f,w).call(this,{type:"NGMicrosyntax",body:i,...i.length===0?t[0].sourceSpan:{start:i[0].start,end:Yt(!1,i,-1).end}})},Kt=function(t,e){if(It(t)){let{key:s,value:i}=t;return i?e===0?h(this,f,w).call(this,{type:"NGMicrosyntaxExpression",expression:h(this,f,Z).call(this,i.ast),alias:null,...i.sourceSpan}):h(this,f,w).call(this,{type:"NGMicrosyntaxKeyedExpression",key:h(this,f,w).call(this,{type:"NGMicrosyntaxKey",name:h(this,f,X).call(this,s.source),...s.span}),expression:h(this,f,w).call(this,{type:"NGMicrosyntaxExpression",expression:h(this,f,Z).call(this,i.ast),alias:null,...i.sourceSpan}),start:s.span.start,end:i.sourceSpan.end}):h(this,f,w).call(this,{type:"NGMicrosyntaxKey",name:h(this,f,X).call(this,s.source),...s.span})}else{let{key:s,sourceSpan:i}=t;if(/^let\s$/.test(I(this,M).slice(i.start,i.start+4))){let{value:r}=t;return h(this,f,w).call(this,{type:"NGMicrosyntaxLet",key:h(this,f,w).call(this,{type:"NGMicrosyntaxKey",name:s.source,...s.span}),value:r?h(this,f,w).call(this,{type:"NGMicrosyntaxKey",name:r.source,...r.span}):null,start:i.start,end:r?r.span.end:s.span.end})}else{let r=h(this,f,Nt).call(this,t);return h(this,f,w).call(this,{type:"NGMicrosyntaxAs",key:h(this,f,w).call(this,{type:"NGMicrosyntaxKey",name:r.source,...r.span}),alias:h(this,f,w).call(this,{type:"NGMicrosyntaxKey",name:s.source,...s.span}),start:r.span.start,end:s.span.end})}}};function He(t,e){return new De(t,e).expressions}function ft({result:{ast:t},text:e,comments:s}){return Object.assign(ze(t,e),{comments:s})}function Je({result:{templateBindings:t},text:e}){return He(t,e)}var Qe=t=>ft(Ue(t)),Ye=t=>ft(Ge(t)),ee=t=>ft(Re(t)),Ze=t=>Je(Ve(t));function se(t){var e,s,i;let r=((e=t.range)==null?void 0:e[0])??t.start,n=(i=((s=t.declaration)==null?void 0:s.decorators)??t.decorators)==null?void 0:i[0];return n?Math.min(se(n),r):r}function Xe(t){var e;return((e=t.range)==null?void 0:e[1])??t.end}function J(t){return{astFormat:"estree",parse(e){let s=t(e);return{type:"NGRoot",node:t===ee&&s.type!=="NGChainedExpression"?{...s,type:"NGChainedExpression",expressions:[s]}:s}},locStart:se,locEnd:Xe}}var ts=J(ee),es=J(Qe),ss=J(Ye),is=J(Ze),rs=_t;exports.default=rs;exports.parsers=ut; |
Sorry, the diff of this file is too big to display
| export { } |
| "use strict";const s={name:"Migrate legacy Column API",description:"Transform `.columnApi` usages to `.api`"},o={name:"Migrate legacy JavaScript Grid API",description:"Transform `new Grid()` usages to `createGrid()`"},n={name:"Transform Grid API methods",description:"Transform deprecated Grid API method invocations"},r={name:"Transform Grid options",description:"Transform deprecated Grid options"},t=[o,s,n,r],e={version:"31.0.0",codemodPath:"versions/31.0.0",transforms:t},i={name:"Transform Grid API methods v31.1",description:"Transform deprecated Grid API method invocations"},a={name:"Transform Grid options v31.1",description:"Transform deprecated Grid options"},m=[i,a],d={version:"31.1.0",codemodPath:"versions/31.1.0",transforms:m},c={name:"Transform Grid options v31.2",description:"Transform deprecated Grid options"},f=[c],p={version:"31.2.0",codemodPath:"versions/31.2.0",transforms:f},v={name:"Transform Grid API methods v31.3",description:"Transform deprecated Grid API method invocations"},G={name:"Transform Grid options v31.3",description:"Transform deprecated Grid options"},T=[v,G],$={version:"31.3.0",codemodPath:"versions/31.3.0",transforms:T},P={name:"Transform Grid options v32.0",description:"Transform deprecated Grid options"},h={name:"Transform Grid API methods v32.0",description:"Transform deprecated Grid API method invocations"},A=[P,h],I={version:"32.0.0",codemodPath:"versions/32.0.0",transforms:A},g=[e,d,p,$,I],u={name:"AG Grid migration packages",versions:g};module.exports=u; |
| export {} |
| "use strict";const e=require("../../../transform-grid-options-1lkC5igv.cjs");require("node:fs");require("node:path");const t=require("../../../transform-grid-api-methods-DEMHKeI3.cjs");require("../../../module-ATX1OK1I.cjs");const P=require("../../../index-DyEknPh-.cjs");function k(l){const r=t.createTypedPlaceholder("Identifier",e.libExports.identifier("_")),o=j(l);return t.createPatternPlaceholder(r,o)}function j(l){return r=>{if(!r.isIdentifier())return!1;const o=r.node.name;return l instanceof RegExp?l.test(o):!0}}const h=e.AgGridExportNames.Grid,B="api",U="columnApi",M=Symbol(),q=t.matchNode(({constructorClass:l,element:r,options:o})=>t.statement` | ||
| new ${l}(${r}, ${o}); | ||
| `,{constructorClass:t.expression(),element:t.expression(),options:k()}),W=t.template(l=>{const{instanceName:r,constructorClass:o,element:s,options:a}=l;return t.statement` | ||
| const ${r} = ${o}(${s}, ${a}); | ||
| `}),K=function(r){const{types:o}=r;return{visitor:{Statement(s,a){var x,I;const p=q.match(s);if(!p)return;const{constructorClass:u,options:V,element:_}=p,D=V.node.name,v=e.getNamedModuleImportExpression(u,e.AG_GRID_JS_PACKAGE_NAME_MATCHER,h,a);if(!v)return;const b=v.importMatcherResult.fromUserConfig,g=b&&((I=(x=a.opts.userConfig)==null?void 0:x.getCreateGridName)==null?void 0:I.call(x,b))||e.AgGridExportNames.createGrid,H=P.match(v.binding,{Module:({declaration:C,accessor:n})=>P.match(n,{Named:({})=>{const i=e.findNamedModuleImport(C.node,g);return i?i.local:e.insertNamedModuleImport(C,o.importSpecifier(e.generateUniqueScopeBinding(s.scope,g),o.identifier(g)))},Namespaced:({accessor:i,local:c})=>{const f=o.identifier(g),d=!1,[w]=i.replaceWith(o.memberExpression(i.node.object,f,d));return c?c.node:w.node}}),CommonJs:({accessor:C})=>P.match(C,{Destructured:({accessors:n})=>{const i=T(n,g);if(i)return i.node;const c=o.identifier(g),m=e.generateUniqueScopeBinding(s.scope,c.name),f=c,d=m,w=!1,y=f.name===d.name;return F(n,o.objectProperty(f,d,w,y)),m},Namespaced:({accessor:n,local:i})=>{const m=o.identifier(g),f=!1,[d]=n.replaceWith(o.memberExpression(n.node.object,m,f));return i?i.node:d.node}}),UmdGlobal:({accessor:C})=>P.match(C,{Destructured:({accessors:n})=>{const i=T(n,g);if(i)return i.node;const c=o.identifier(g),m=e.generateUniqueScopeBinding(s.scope,c.name),f=c,d=m,w=!1,y=f.name===d.name;return F(n,o.objectProperty(f,d,w,y)),m},Namespaced:({accessor:n,local:i})=>{const m=o.identifier(g),f=!1,[d]=n.replaceWith(o.memberExpression(n.node.object,m,f));return i?i.node:d.node}})}),E=e.generateUniqueScopeBinding(s.scope,`${D.replace(/Options$/,"")}Api`),O=W.render({instanceName:E,constructorClass:H,element:_.node,options:V.node}),[L]=s.replaceWith(O);s=L,a.set(M,!0);const N=s.scope.getBinding(D)||null,G=N?N.referencePaths.map(C=>{const n=C.parentPath;if(!n||!n.isMemberExpression()&&!n.isOptionalMemberExpression())return null;const i=n.get("object"),c=n.get("property"),m=n.node.computed;if(i.node!==C.node)return null;const f=e.matchNamedPropertyKeyExpression(B,c,m),d=e.matchNamedPropertyKeyExpression(U,c,m);return f||d?n:null}).filter(P.nonNull):null;G&&G.forEach(C=>{C.replaceWith(E)})},Program:{exit:(s,a)=>{a.get(M)&&(s.scope.crawl(),Object.values(s.scope.bindings).forEach(p=>{if(p.kind!=="module"||p.referenced)return;const u=p.path;if(!u.isImportSpecifier()||!u.parentPath.isImportDeclaration())return null;e.matchModuleImportName(u.parentPath.node,u.node,e.AG_GRID_JS_PACKAGE_NAME_MATCHER,h,a)&&u.remove()}))}}}}};function T(l,r){const o=e.getNamedObjectLiteralStaticProperty(l,r);if(!o||!o.isObjectProperty())return null;const s=o.get("value");return s.isIdentifier()?s:null}function F(l,r){l.pushContainer("properties",r)}const A="columnApi",R="api",Q=function(r){const{types:o}=r;return{visitor:{MemberExpression(s,a){const p=s.get("object"),u=s.get("property"),V=s.node.computed;p.isThisExpression()||$(A,u,V)&&e.isColumnApiReference(s,a)&&u.replaceWith(o.identifier(R))},OptionalMemberExpression(s,a){const p=s.get("object"),u=s.get("property"),V=s.node.computed;p.isThisExpression()||$(A,u,V)&&e.isColumnApiReference(s,a)&&u.replaceWith(o.identifier(R))},ObjectProperty(s,a){if(!s.parentPath.isObjectPattern())return;const p=s.get("key"),u=s.node.computed;if(!$(A,p,u))return;const V=s.get("value");!V.isExpression()&&!V.isIdentifier()||e.isColumnApiReference(V,a)&&s.replaceWith(o.objectProperty(o.identifier(R),V.node))}}}};function $(l,r,o){return!o&&r.isIdentifier()?r.node.name===l:r.isLiteral()?e.getLiteralPropertyKey(r.node)===l:!1}const J=[...["","?","!"].map(l=>[t.replace(t.matchNode(({api:r})=>t.expression$1`${r}${l}.refreshServerSideStore()`,{api:t.expression()}),t.template(({api:r})=>t.expression$1`${r}${l}.refreshServerSide()`)),t.replace(t.matchNode(({api:r,params:o})=>t.expression$1`${r}${l}.refreshServerSideStore(${o})`,{api:t.expression(),params:t.expression()}),t.template(({api:r,params:o})=>t.expression$1`${r}${l}.refreshServerSide(${o})`)),t.replace(t.matchNode(({api:r})=>t.expression$1`${r}${l}.getServerSideStoreState()`,{api:t.expression()}),t.template(({api:r})=>t.expression$1`${r}${l}.getServerSideGroupLevelState()`)),t.replace(t.matchNode(({api:r,value:o})=>t.expression$1`${r}${l}.setProcessSecondaryColDef(${o})`,{api:t.expression(),value:t.expression()}),t.template(({api:r,value:o})=>t.expression$1`${r}${l}.setGridOption('processPivotResultColDef', ${o})`)),t.replace(t.matchNode(({api:r,value:o})=>t.expression$1`${r}${l}.setProcessSecondaryColGroupDef(${o})`,{api:t.expression(),value:t.expression()}),t.template(({api:r,value:o})=>t.expression$1`${r}${l}.setGridOption('processPivotResultColGroupDef', ${o})`)),t.replace(t.matchNode(({api:r,value:o})=>t.expression$1`${r}${l}.setGetServerSideStoreParams(${o})`,{api:t.expression(),value:t.expression()}),t.template(({api:r,value:o})=>t.expression$1`${r}${l}.setGridOption('getServerSideGroupLevelParams', ${o})`))]).flat()],z=[...["","?","!"].map(l=>t.matchNode(({api:r})=>t.expression$1`${r}${l}.setGetRowId()`,{api:t.expression()}))],Y=[...["","?","!"].map(l=>[t.replace(t.matchNode(({api:r})=>t.expression$1`${r}${l}.getAllColumns()`,{api:t.expression()}),t.template(({api:r})=>t.expression$1`${r}${l}.getColumns()`)),t.replace(t.matchNode(({api:r})=>t.expression$1`${r}${l}.getPrimaryColumns()`,{api:t.expression()}),t.template(({api:r})=>t.expression$1`${r}${l}.getColumns()`)),t.replace(t.matchNode(({api:r})=>t.expression$1`${r}${l}.getSecondaryColumns()`,{api:t.expression()}),t.template(({api:r})=>t.expression$1`${r}${l}.getPivotResultColumns()`)),t.replace(t.matchNode(({api:r,colDefs:o})=>t.expression$1`${r}${l}.setSecondaryColumns(${o})`,{api:t.expression(),colDefs:t.expression()}),t.template(({api:r,colDefs:o})=>t.expression$1`${r}${l}.setPivotResultColumns(${o})`)),t.replace(t.matchNode(({api:r,pivotKeys:o,valueColKey:s})=>t.expression$1`${r}${l}.getSecondaryPivotColumn(${o}, ${s})`,{api:t.expression(),pivotKeys:t.expression(),valueColKey:t.expression()}),t.template(({api:r,pivotKeys:o,valueColKey:s})=>t.expression$1`${r}${l}.getPivotResultColumn(${o}, ${s})`))]).flat()],X=t.getGridOptionSetterReplacements({paginationSetPageSize:{option:"paginationPageSize",optionalValue:!0,transformValue:null,allowCustomSource:!1},setAdvancedFilterBuilderParams:{option:"advancedFilterBuilderParams",optionalValue:!0,transformValue:null,allowCustomSource:!1},setAdvancedFilterParent:{option:"advancedFilterParent",optionalValue:!1,transformValue:null,allowCustomSource:!1},setAlwaysShowHorizontalScroll:{option:"alwaysShowHorizontalScroll",optionalValue:!1,transformValue:null,allowCustomSource:!1},setAlwaysShowVerticalScroll:{option:"alwaysShowVerticalScroll",optionalValue:!1,transformValue:null,allowCustomSource:!1},setAnimateRows:{option:"animateRows",optionalValue:!1,transformValue:null,allowCustomSource:!1},setAutoGroupColumnDef:{option:"autoGroupColumnDef",optionalValue:!1,transformValue:null,allowCustomSource:!0},setCacheBlockSize:{option:"cacheBlockSize",optionalValue:!1,transformValue:null,allowCustomSource:!1},setColumnDefs:{option:"columnDefs",optionalValue:!1,transformValue:null,allowCustomSource:!0},setColumnTypes:{option:"columnTypes",optionalValue:!1,transformValue:null,allowCustomSource:!0},setDatasource:{option:"datasource",optionalValue:!1,transformValue:null,allowCustomSource:!1},setDataTypeDefinitions:{option:"dataTypeDefinitions",optionalValue:!1,transformValue:null,allowCustomSource:!1},setDefaultColDef:{option:"defaultColDef",optionalValue:!1,transformValue:null,allowCustomSource:!0},setDeltaSort:{option:"deltaSort",optionalValue:!1,transformValue:null,allowCustomSource:!1},setDoesExternalFilterPass:{option:"doesExternalFilterPass",optionalValue:!1,transformValue:null,allowCustomSource:!1},setDomLayout:{option:"domLayout",optionalValue:!0,transformValue:null,allowCustomSource:!1},setEnableAdvancedFilter:{option:"enableAdvancedFilter",optionalValue:!1,transformValue:null,allowCustomSource:!1},setEnableCellTextSelection:{option:"enableCellTextSelection",optionalValue:!1,transformValue:null,allowCustomSource:!1},setExcludeHiddenColumnsFromQuickFilter:{option:"includeHiddenColumnsInQuickFilter",optionalValue:!1,transformValue:t.invertBooleanValue,allowCustomSource:!0},setFillHandleDirection:{option:"fillHandleDirection",optionalValue:!1,transformValue:null,allowCustomSource:!1},setFloatingFiltersHeight:{option:"floatingFiltersHeight",optionalValue:!0,transformValue:null,allowCustomSource:!1},setFunctionsReadOnly:{option:"functionsReadOnly",optionalValue:!1,transformValue:null,allowCustomSource:!1},setGetBusinessKeyForNode:{option:"getBusinessKeyForNode",optionalValue:!1,transformValue:null,allowCustomSource:!1},setGetChartToolbarItems:{option:"getChartToolbarItems",optionalValue:!1,transformValue:null,allowCustomSource:!1},setGetChildCount:{option:"getChildCount",optionalValue:!1,transformValue:null,allowCustomSource:!1},setGetContextMenuItems:{option:"getContextMenuItems",optionalValue:!1,transformValue:null,allowCustomSource:!1},setGetDocument:{option:"getDocument",optionalValue:!1,transformValue:null,allowCustomSource:!1},setGetGroupRowAgg:{option:"getGroupRowAgg",optionalValue:!1,transformValue:null,allowCustomSource:!1},setGetMainMenuItems:{option:"getMainMenuItems",optionalValue:!1,transformValue:null,allowCustomSource:!1},setGetRowClass:{option:"getRowClass",optionalValue:!1,transformValue:null,allowCustomSource:!1},setGetRowHeight:{option:"getRowHeight",optionalValue:!1,transformValue:null,allowCustomSource:!1},setGetRowStyle:{option:"getRowStyle",optionalValue:!1,transformValue:null,allowCustomSource:!1},setGetServerSideGroupKey:{option:"getServerSideGroupKey",optionalValue:!1,transformValue:null,allowCustomSource:!1},setGetServerSideGroupLevelParams:{option:"getServerSideGroupLevelParams",optionalValue:!1,transformValue:null,allowCustomSource:!1},setGroupDisplayType:{option:"groupDisplayType",optionalValue:!1,transformValue:null,allowCustomSource:!1},setGroupHeaderHeight:{option:"groupHeaderHeight",optionalValue:!0,transformValue:null,allowCustomSource:!1},setGroupIncludeFooter:{option:"groupIncludeFooter",optionalValue:!1,transformValue:null,allowCustomSource:!1},setGroupIncludeTotalFooter:{option:"groupIncludeTotalFooter",optionalValue:!1,transformValue:null,allowCustomSource:!1},setGroupRemoveLowestSingleChildren:{option:"groupRemoveLowestSingleChildren",optionalValue:!1,transformValue:null,allowCustomSource:!1},setGroupRemoveSingleChildren:{option:"groupRemoveSingleChildren",optionalValue:!1,transformValue:null,allowCustomSource:!1},setHeaderHeight:{option:"headerHeight",optionalValue:!0,transformValue:null,allowCustomSource:!1},setIncludeHiddenColumnsInAdvancedFilter:{option:"includeHiddenColumnsInAdvancedFilter",optionalValue:!1,transformValue:null,allowCustomSource:!1},setIncludeHiddenColumnsInQuickFilter:{option:"includeHiddenColumnsInQuickFilter",optionalValue:!1,transformValue:null,allowCustomSource:!1},setInitialGroupOrderComparator:{option:"initialGroupOrderComparator",optionalValue:!1,transformValue:null,allowCustomSource:!1},setIsApplyServerSideTransaction:{option:"isApplyServerSideTransaction",optionalValue:!1,transformValue:null,allowCustomSource:!1},setIsExternalFilterPresent:{option:"isExternalFilterPresent",optionalValue:!1,transformValue:null,allowCustomSource:!1},setIsFullWidthRow:{option:"isFullWidthRow",optionalValue:!1,transformValue:null,allowCustomSource:!1},setIsRowMaster:{option:"isRowMaster",optionalValue:!1,transformValue:null,allowCustomSource:!1},setIsRowSelectable:{option:"isRowSelectable",optionalValue:!1,transformValue:null,allowCustomSource:!1},setIsServerSideGroup:{option:"isServerSideGroup",optionalValue:!1,transformValue:null,allowCustomSource:!1},setIsServerSideGroupOpenByDefault:{option:"isServerSideGroupOpenByDefault",optionalValue:!1,transformValue:null,allowCustomSource:!1},setNavigateToNextCell:{option:"navigateToNextCell",optionalValue:!1,transformValue:null,allowCustomSource:!1},setNavigateToNextHeader:{option:"navigateToNextHeader",optionalValue:!1,transformValue:null,allowCustomSource:!1},setPagination:{option:"pagination",optionalValue:!1,transformValue:null,allowCustomSource:!1},setPaginationNumberFormatter:{option:"paginationNumberFormatter",optionalValue:!1,transformValue:null,allowCustomSource:!1},setPinnedBottomRowData:{option:"pinnedBottomRowData",optionalValue:!0,transformValue:null,allowCustomSource:!1},setPinnedTopRowData:{option:"pinnedTopRowData",optionalValue:!0,transformValue:null,allowCustomSource:!1},setPivotGroupHeaderHeight:{option:"pivotGroupHeaderHeight",optionalValue:!0,transformValue:null,allowCustomSource:!1},setPivotHeaderHeight:{option:"pivotHeaderHeight",optionalValue:!0,transformValue:null,allowCustomSource:!1},setPivotMode:{option:"pivotMode",optionalValue:!1,transformValue:null,allowCustomSource:!1},setPopupParent:{option:"popupParent",optionalValue:!1,transformValue:null,allowCustomSource:!1},setPostProcessPopup:{option:"postProcessPopup",optionalValue:!1,transformValue:null,allowCustomSource:!1},setPostSortRows:{option:"postSortRows",optionalValue:!1,transformValue:null,allowCustomSource:!1},setProcessCellForClipboard:{option:"processCellForClipboard",optionalValue:!1,transformValue:null,allowCustomSource:!1},setProcessCellFromClipboard:{option:"processCellFromClipboard",optionalValue:!1,transformValue:null,allowCustomSource:!1},setProcessPivotResultColDef:{option:"processPivotResultColDef",optionalValue:!1,transformValue:null,allowCustomSource:!1},setProcessPivotResultColGroupDef:{option:"processPivotResultColGroupDef",optionalValue:!1,transformValue:null,allowCustomSource:!1},setProcessRowPostCreate:{option:"processRowPostCreate",optionalValue:!1,transformValue:null,allowCustomSource:!1},setQuickFilter:{option:"quickFilterText",optionalValue:!1,transformValue:null,allowCustomSource:!1},setQuickFilterMatcher:{option:"quickFilterMatcher",optionalValue:!0,transformValue:null,allowCustomSource:!1},setQuickFilterParser:{option:"quickFilterParser",optionalValue:!0,transformValue:null,allowCustomSource:!1},setRowClass:{option:"rowClass",optionalValue:!1,transformValue:null,allowCustomSource:!1},setRowData:{option:"rowData",optionalValue:!1,transformValue:null,allowCustomSource:!1},setRowGroupPanelShow:{option:"rowGroupPanelShow",optionalValue:!1,transformValue:null,allowCustomSource:!1},setSendToClipboard:{option:"sendToClipboard",optionalValue:!1,transformValue:null,allowCustomSource:!1},setServerSideDatasource:{option:"serverSideDatasource",optionalValue:!1,transformValue:null,allowCustomSource:!1},setSideBar:{option:"sideBar",optionalValue:!1,transformValue:null,allowCustomSource:!1},setSuppressClipboardPaste:{option:"suppressClipboardPaste",optionalValue:!1,transformValue:null,allowCustomSource:!1},setSuppressModelUpdateAfterUpdateTransaction:{option:"suppressModelUpdateAfterUpdateTransaction",optionalValue:!1,transformValue:null,allowCustomSource:!1},setSuppressMoveWhenRowDragging:{option:"suppressMoveWhenRowDragging",optionalValue:!1,transformValue:null,allowCustomSource:!1},setSuppressRowClickSelection:{option:"suppressRowClickSelection",optionalValue:!1,transformValue:null,allowCustomSource:!1},setSuppressRowDrag:{option:"suppressRowDrag",optionalValue:!1,transformValue:null,allowCustomSource:!1},setTabToNextCell:{option:"tabToNextCell",optionalValue:!1,transformValue:null,allowCustomSource:!1},setTabToNextHeader:{option:"tabToNextHeader",optionalValue:!1,transformValue:null,allowCustomSource:!1},setTreeData:{option:"treeData",optionalValue:!1,transformValue:null,allowCustomSource:!1},setViewportDatasource:{option:"viewportDatasource",optionalValue:!1,transformValue:null,allowCustomSource:!1}}),Z=[...J,...Y,...X],ee=z,oe=t.transformGridApiMethods({replacements:Z,deprecations:ee}),te=function(r){return oe(r)},S="https://ag-grid.com/javascript-data-grid/upgrading-to-ag-grid-31/",re=e.transformObjectProperties({advancedFilterModel:e.migrateProperty("initialState",e.transformOptionalValue((()=>{const l=e.frameworkWarning(e.getManualInterventionMessage("advancedFilterModel",S));return{property(o){return r(o)},jsxAttribute(o){return e.isNonNullJsxPropertyValue(o)?r(o):null},angularAttribute:l.angularAttribute,vueAttribute:l.vueAttribute};function r(o){return t.expression$1`{ filter: { advancedFilterModel: ${o.node} }}`}})())),defaultExcelExportParams:e.transformPropertyValue(e.transformOptionalValue((()=>{const l=e.frameworkWarning(e.getManualInterventionMessage("defaultExcelExportParams",S));return{property(o){return o.isExpression()?r(o):o.node},jsxAttribute(o){return e.isNonNullJsxPropertyValue(o)?r(o):null},angularAttribute:l.angularAttribute,vueAttribute:l.vueAttribute};function r(o){if(!o.isObjectExpression())return o.node;const s=e.getNamedObjectLiteralStaticProperty(o,"exportMode"),a=e.getNamedObjectLiteralStaticProperty(o,"suppressTextAsCDATA");return!s&&!a?o.node:e.libExports.objectExpression(o.node.properties.filter(p=>!(s&&p===s.node||a&&p===a.node)))}})())),enableChartToolPanelsButton:e.migrateProperty("suppressChartToolPanelsButton",e.invertOptionalBooleanValue()),enterMovesDown:e.migrateProperty("enterNavigatesVertically",e.migrateOptionalValue()),enterMovesDownAfterEdit:e.migrateProperty("enterNavigatesVerticallyAfterEdit",e.migrateOptionalValue()),excludeHiddenColumnsFromQuickFilter:e.migrateProperty("includeHiddenColumnsInQuickFilter",e.invertOptionalBooleanValue()),functionsPassive:e.removeProperty(e.getDeprecationMessage("functionsPassive",S)),getServerSideStoreParams:e.migrateProperty("getServerSideGroupLevelParams",e.migrateOptionalValue()),processSecondaryColDef:e.migrateProperty("processPivotResultColDef",e.migrateOptionalValue()),processSecondaryColGroupDef:e.migrateProperty("processPivotResultColGroupDef",e.migrateOptionalValue()),rememberGroupStateWhenNewData:e.removeProperty(e.getDeprecationMessage("rememberGroupStateWhenNewData",S)),rowDataChangeDetectionStrategy:e.removeProperty(e.getDeprecationMessage("rowDataChangeDetectionStrategy",S)),serverSideFilterAllLevels:e.migrateProperty("serverSideOnlyRefreshFilteredGroups",e.invertOptionalBooleanValue()),serverSideFilteringAlwaysResets:e.migrateProperty("serverSideOnlyRefreshFilteredGroups",e.migrateOptionalValue()),serverSideSortingAlwaysResets:e.migrateProperty("serverSideSortAllLevels",e.migrateOptionalValue()),serverSideStoreType:e.migrateProperty("suppressServerSideInfiniteScroll",e.transformOptionalValue((()=>{const l=e.frameworkWarning(e.getManualInterventionMessage("suppressServerSideInfiniteScroll",S));return{property(o){return r(o.node)},jsxAttribute(o,s,a,p){if(o===!0)return null;const{node:u}=o;return e.libExports.isJSXEmptyExpression(u)?null:r(u)},angularAttribute:l.angularAttribute,vueAttribute:l.vueAttribute};function r(o){return e.libExports.isStringLiteral(o)?e.libExports.booleanLiteral(o.value!=="partial"):e.libExports.isExpression(o)?e.libExports.binaryExpression("!==",o,e.libExports.stringLiteral("partial")):e.libExports.booleanLiteral(!1)}})())),suppressAggAtRootLevel:e.migrateProperty("alwaysAggregateAtRootLevel",e.invertOptionalBooleanValue()),suppressAsyncEvents:e.removeProperty(e.getDeprecationMessage("suppressAsyncEvents",S)),suppressParentsInRowNodes:e.removeProperty(e.getDeprecationMessage("suppressParentsInRowNodes",S)),suppressReactUi:e.removeProperty(e.getDeprecationMessage("suppressReactUi",S)),...e.frameworkEvent("columnRowGroupChangeRequest",l=>e.removeProperty(e.getDeprecationMessage(l,S))),...e.frameworkEvent("columnPivotChangeRequest",l=>e.removeProperty(e.getDeprecationMessage(l,S))),...e.frameworkEvent("columnValueChangeRequest",l=>e.removeProperty(e.getDeprecationMessage(l,S))),...e.frameworkEvent("columnAggFuncChangeRequest",l=>e.removeProperty(e.getDeprecationMessage(l,S))),...e.frameworkEvent("rowDataChanged",l=>e.migrateProperty(l.replace(/changed$/,"updated").replace(/Changed$/,"Updated"),e.migrateOptionalValue()))}),le=e.transformGridOptions(re),se=function(r){return le(r)},ae=[K,Q,te,se],ne=function(r,o){const{path:s,source:a}=r,{fs:p,userConfig:u}=o;return e.transformFileAst(a,ae,{filename:s,fs:p,userConfig:u})};module.exports=ne; |
| export {} |
| "use strict";const $=require("../../../transform-grid-options-1lkC5igv.cjs");require("node:fs");require("node:path");const e=require("../../../transform-grid-api-methods-DEMHKeI3.cjs");require("../../../module-ATX1OK1I.cjs");const c=[...["","?","!"].map(o=>[e.replace(e.matchNode(({api:s,index:r})=>e.expression$1`${s}${o}.getModel().getRow(${r})`,{api:e.expression(),index:e.expression()}),e.template(({api:s,index:r})=>e.expression$1`${s}${o}.getDisplayedRowAtIndex(${r})`)),e.replace(e.matchNode(({api:s,id:r})=>e.expression$1`${s}${o}.getModel().getRowNode(${r})`,{api:e.expression(),id:e.expression()}),e.template(({api:s,id:r})=>e.expression$1`${s}${o}.getRowNode(${r})`)),e.replace(e.matchNode(({api:s})=>e.expression$1`${s}${o}.getModel().getRowCount()`,{api:e.expression()}),e.template(({api:s})=>e.expression$1`${s}${o}.getDisplayedRowCount()`)),e.replace(e.matchNode(({api:s})=>e.expression$1`${s}${o}.getModel().isEmpty()`,{api:e.expression()}),e.template(({api:s})=>e.expression$1`${s}${o}.getDisplayedRowCount() === 0`)),e.replace(e.matchNode(({api:s,callback:r})=>e.expression$1`${s}${o}.getModel().forEachNode(${r})`,{api:e.expression(),callback:e.expression()}),e.template(({api:s,callback:r})=>e.expression$1`${s}${o}.forEachNode(${r})`)),e.replace(e.matchNode(({api:s,callback:r,includeFooterNodes:t})=>e.expression$1`${s}${o}.getModel().forEachNode(${r}, ${t})`,{api:e.expression(),callback:e.expression(),includeFooterNodes:e.expression()}),e.template(({api:s,callback:r,includeFooterNodes:t})=>e.expression$1`${s}${o}.forEachNode(${r}, ${t})`)),e.replace(e.matchNode(({api:s})=>e.expression$1`${s}${o}.getFirstDisplayedRow()`,{api:e.expression()}),e.template(({api:s})=>e.expression$1`${s}${o}.getFirstDisplayedRowIndex()`)),e.replace(e.matchNode(({api:s})=>e.expression$1`${s}${o}.getLastDisplayedRow()`,{api:e.expression()}),e.template(({api:s})=>e.expression$1`${s}${o}.getLastDisplayedRowIndex()`)),e.replace(e.matchNode(({api:s,key:r})=>e.expression$1`${s}${o}.getFilterInstance(${r})`,{api:e.expression(),key:e.expression()}),e.template(({api:s,key:r})=>e.expression$1`${s}${o}.getColumnFilterInstance(${r})`)),e.replace(e.matchNode(({api:s,key:r,callback:t})=>e.expression$1`${s}${o}.getFilterInstance(${r}, ${t})`,{api:e.expression(),key:e.expression(),callback:e.expression()}),e.template(({api:s,key:r,callback:t})=>e.expression$1`${s}${o}.getColumnFilterInstance(${r}, ${t})`)),e.replace(e.matchNode(({api:s,params:r})=>e.expression$1`${s}${o}.flashCells(${r})`,{api:e.expression(),params:e.expression()}),e.template(({api:s,params:r})=>{const t=x(r);return e.expression$1`${s}${o}.flashCells(${t})`})),e.replace(e.matchNode(({api:s,colKey:r})=>e.expression$1`${s}${o}.removeRowGroupColumn(${r})`,{api:e.expression(),colKey:e.expression()}),e.template(({api:s,colKey:r})=>e.expression$1`${s}${o}.removeRowGroupColumns([${r}])`)),e.replace(e.matchNode(({api:s,colKey:r})=>e.expression$1`${s}${o}.addRowGroupColumn(${r})`,{api:e.expression(),colKey:e.expression()}),e.template(({api:s,colKey:r})=>e.expression$1`${s}${o}.addRowGroupColumns([${r}])`)),e.replace(e.matchNode(({api:s,colKey:r,pinned:t})=>e.expression$1`${s}${o}.setColumnPinned(${r}, ${t})`,{api:e.expression(),colKey:e.expression(),pinned:e.expression()}),e.template(({api:s,colKey:r,pinned:t})=>e.expression$1`${s}${o}.setColumnsPinned([${r}], ${t})`)),e.replace(e.matchNode(({api:s,colKey:r})=>e.expression$1`${s}${o}.removePivotColumn(${r})`,{api:e.expression(),colKey:e.expression()}),e.template(({api:s,colKey:r})=>e.expression$1`${s}${o}.removePivotColumns([${r}])`)),e.replace(e.matchNode(({api:s,colKey:r})=>e.expression$1`${s}${o}.addPivotColumn(${r})`,{api:e.expression(),colKey:e.expression()}),e.template(({api:s,colKey:r})=>e.expression$1`${s}${o}.addPivotColumns([${r}])`)),e.replace(e.matchNode(({api:s,key:r,aggFunc:t})=>e.expression$1`${s}${o}.addAggFunc(${r}, ${t})`,{api:e.expression(),key:e.expression(),aggFunc:e.expression()}),e.template(({api:s,key:r,aggFunc:t})=>{const{key:p,computed:m}=$.libExports.isStringLiteral(r)?{key:d(r.value),computed:!1}:{key:r,computed:!0};return e.expression$1`${s}${o}.addAggFunc(${$.libExports.objectExpression([$.libExports.objectProperty(p,t,m)])})`})),e.replace(e.matchNode(({api:s,colKey:r})=>e.expression$1`${s}${o}.removeValueColumn(${r})`,{api:e.expression(),colKey:e.expression()}),e.template(({api:s,colKey:r})=>e.expression$1`${s}${o}.removeValueColumns([${r}])`)),e.replace(e.matchNode(({api:s,colKey:r})=>e.expression$1`${s}${o}.addValueColumn(${r})`,{api:e.expression(),colKey:e.expression()}),e.template(({api:s,colKey:r})=>e.expression$1`${s}${o}.addValueColumns([${r}])`)),e.replace(e.matchNode(({api:s,key:r})=>e.expression$1`${s}${o}.autoSizeColumn(${r})`,{api:e.expression(),key:e.expression()}),e.template(({api:s,key:r})=>e.expression$1`${s}${o}.autoSizeColumns([${r}])`)),e.replace(e.matchNode(({api:s,key:r,skipHeader:t})=>e.expression$1`${s}${o}.autoSizeColumn(${r}, ${t})`,{api:e.expression(),key:e.expression(),skipHeader:e.expression()}),e.template(({api:s,key:r,skipHeader:t})=>e.expression$1`${s}${o}.autoSizeColumns([${r}], ${t})`)),e.replace(e.matchNode(({api:s,key:r,toIndex:t})=>e.expression$1`${s}${o}.moveColumn(${r}, ${t})`,{api:e.expression(),key:e.expression(),toIndex:e.expression()}),e.template(({api:s,key:r,toIndex:t})=>e.expression$1`${s}${o}.moveColumns([${r}], ${t})`)),e.replace(e.matchNode(({api:s,key:r,newWidth:t})=>e.expression$1`${s}${o}.setColumnWidth(${r}, ${t})`,{api:e.expression(),key:e.expression(),newWidth:e.expression()}),e.template(({api:s,key:r,newWidth:t})=>e.expression$1`${s}${o}.setColumnWidths([${r}], ${t})`)),e.replace(e.matchNode(({api:s,key:r,newWidth:t,finished:p})=>e.expression$1`${s}${o}.setColumnWidth(${r}, ${t}, ${p})`,{api:e.expression(),key:e.expression(),newWidth:e.expression(),finished:e.expression()}),e.template(({api:s,key:r,newWidth:t,finished:p})=>e.expression$1`${s}${o}.setColumnWidths([${r}], ${t}, ${p})`)),e.replace(e.matchNode(({api:s,key:r,newWidth:t,finished:p,source:m})=>e.expression$1`${s}${o}.setColumnWidth(${r}, ${t}, ${p}, ${m})`,{api:e.expression(),key:e.expression(),newWidth:e.expression(),finished:e.expression(),source:e.expression()}),e.template(({api:s,key:r,newWidth:t,finished:p,source:m})=>e.expression$1`${s}${o}.setColumnWidths([${r}], ${t}, ${p}, ${m})`)),e.replace(e.matchNode(({api:s,key:r,newWidth:t})=>e.expression$1`${s}${o}.setColumnVisible(${r}, ${t})`,{api:e.expression(),key:e.expression(),newWidth:e.expression()}),e.template(({api:s,key:r,newWidth:t})=>e.expression$1`${s}${o}.setColumnsVisible([${r}], ${t})`))]).flat()],l=[...["","?","!"].map(o=>[e.matchNode(({api:s,colKey:r,buttonElement:t})=>e.expression$1`${s}${o}.showColumnMenuAfterButtonClick(${r}, ${t})`,{api:e.expression(),colKey:e.expression(),buttonElement:e.expression()}),e.matchNode(({api:s,colKey:r,mouseEvent:t})=>e.expression$1`${s}${o}.showColumnMenuAfterMouseEvent(${r}, ${t})`,{api:e.expression(),colKey:e.expression(),mouseEvent:e.expression()})]).flat()];function x(o){return o.type!=="ObjectExpression"?o:u(o,[{from:"flashDelay",to:"flashDuration"},{from:"fadeDelay",to:"fadeDuration"}])}function u(o,s){const{properties:r}=o;return s.length===0?o:$.libExports.objectExpression(s.reduce((t,p)=>{const m=t.find(n=>n.type==="ObjectProperty"&&$.getStaticPropertyKey(n.key,n.computed)===p.from);return m&&(t[t.indexOf(m)]=$.libExports.objectProperty($.libExports.identifier(p.to),m.value)),t},[...r]))}function d(o){return/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(o)?$.libExports.identifier(o):$.libExports.stringLiteral(o)}const a=e.transformGridApiMethods({replacements:c,deprecations:l}),i=function(s){return a(s)},f="https://ag-grid.com/javascript-data-grid/upgrading-to-ag-grid-31-1/",y=$.transformObjectProperties({cellFlashDelay:$.migrateProperty("cellFlashDuration",$.migrateOptionalValue()),cellFadeDelay:$.migrateProperty("cellFadeDuration",$.migrateOptionalValue()),columnDefs:$.transformPropertyValue($.transformOptionalValue($.transformObjectListValue($.transformObjectProperties({suppressMenu:$.migrateProperty("suppressHeaderMenuButton",$.migrateOptionalValue()),columnsMenuParams:$.migrateProperty("columnChooserParams",$.migrateOptionalValue()),floatingFilterComponentParams:$.transformPropertyValue($.transformOptionalValue($.transformObjectValue($.transformObjectProperties({suppressFilterButton:$.removeProperty($.getDeprecationMessage("columnDefs[..].floatingFilterComponentParams.suppressFilterButton",f))}))))}))))}),N=$.transformGridOptions(y),P=function(s){return N(s)},b=[i,P],w=function(s,r){const{path:t,source:p}=s,{fs:m,userConfig:n}=r;return $.transformFileAst(p,b,{filename:t,fs:m,userConfig:n})};module.exports=w; |
| export {} |
| "use strict";const r=require("../../../transform-grid-options-1lkC5igv.cjs");require("node:fs");require("node:path");const l="https://ag-grid.com/javascript-data-grid/upgrading-to-ag-grid-31-2/",c=r.transformObjectProperties({enableCellChangeFlash:r.removeProperty(r.getManualInterventionMessage("enableCellChangeFlash",l)),columnDefs:r.transformPropertyValue(r.transformOptionalValue(r.transformObjectListValue(r.transformObjectProperties({suppressCellFlash:r.migrateProperty("enableCellChangeFlash",r.invertOptionalBooleanValue())}))))}),m=r.transformGridOptions(c),p=function(e){return m(e)},u=[p],f=function(e,n){const{path:s,source:o}=e,{fs:a,userConfig:i}=n;return r.transformFileAst(o,u,{filename:s,fs:a,userConfig:i})};module.exports=f; |
| export {} |
| "use strict";const e=require("../../../transform-grid-options-1lkC5igv.cjs");require("node:fs");require("node:path");const o=require("../../../transform-grid-api-methods-DEMHKeI3.cjs");require("../../../module-ATX1OK1I.cjs");const d=[...["","?","!"].map(t=>o.replace(o.matchNode(({api:r,colKey:s,rowNode:n})=>o.expression$1`${r}${t}.getValue(${s}, ${n})`,{api:o.expression(),colKey:o.expression(),rowNode:o.expression()}),o.template(({api:r,colKey:s,rowNode:n})=>o.expression$1`${r}${t}.getCellValue(${e.libExports.objectExpression([e.libExports.objectProperty(e.libExports.identifier("colKey"),s),e.libExports.objectProperty(e.libExports.identifier("rowNode"),n)])})`)))],u=[],l=o.transformGridApiMethods({replacements:d,deprecations:u}),m=function(r){return l(r)},i="https://ag-grid.com/javascript-data-grid/upgrading-to-ag-grid-31-3/",f=e.transformObjectProperties({groupIncludeFooter:e.removeProperty(e.getDeprecationMessage("groupIncludeFooter",i)),groupIncludeTotalFooter:e.removeProperty(e.getDeprecationMessage("groupIncludeTotalFooter",i))}),g=e.transformGridOptions(f),x=function(r){return g(r)},$=[m,x],b=function(r,s){const{path:n,source:c}=r,{fs:p,userConfig:a}=s;return e.transformFileAst(c,$,{filename:n,fs:p,userConfig:a})};module.exports=b; |
| export {} |
| "use strict";const s=require("../../../transform-grid-options-1lkC5igv.cjs");require("node:fs");require("node:path");const o=require("../../../transform-grid-api-methods-DEMHKeI3.cjs");require("../../../module-ATX1OK1I.cjs");const p="https://ag-grid.com/javascript-data-grid/upgrading-to-ag-grid-32/",d=s.transformObjectProperties({suppressLoadingOverlay:s.removeProperty(s.getDeprecationMessage("suppressLoadingOverlay",p))}),m=s.transformGridOptions(d),u=function(r){return m(r)},f=[],g=[...["","?","!"].map(t=>o.matchNode(({api:r})=>o.expression$1`${r}${t}.showLoadingOverlay()`,{api:o.expression()}))],l=o.transformGridApiMethods({replacements:f,deprecations:g}),O=function(r){return l(r)},h=[u,O],G=function(r,e){const{path:n,source:i}=r,{fs:a,userConfig:c}=e;return s.transformFileAst(i,h,{filename:n,fs:a,userConfig:c})};module.exports=G; |
| export {} |
| "use strict";const s=require("node:worker_threads"),i=require("../fs-D1uyzWY8.cjs"),d=require("../module-ATX1OK1I.cjs");var a=typeof document<"u"?document.currentScript:null;function l(r,e){const{main:t,worker:n}=e;return Object.create(r,{parseEnvironment:{value:t},parseIncomingMessage:{value:n}})}function p(r,e){const t=s.parentPort;s.isMainThread||!t?h(r,process,e).then(n=>process.stdout.write(`${JSON.stringify(n)} | ||
| `,()=>process.exit(0)),n=>{console.error(n),process.exit(1)}):t.on("message",n=>{m(r,n,e).then(o=>({success:!0,value:o}),o=>({success:!1,error:w(o)})).then(o=>t.postMessage(o))})}function h(r,e,t){try{const{argv:n,env:o}=e,f=r.parseEnvironment({argv:n,env:o});return r.run(f,t)}catch(n){return Promise.reject(n)}}function m(r,e,t){try{const n=r.parseIncomingMessage(e);return r.run(n,t)}catch(n){return Promise.reject(n)}}function w(r){if(r instanceof Error){if(g(r))return r;const{name:e,message:t,stack:n,...o}=r;return Object.assign(new Error(t),{name:e,stack:n,...o})}return new Error(String(r))}function g(r){try{return structuredClone(r),!0}catch{return!1}}function y(r,e){const{fs:t=i.createFsHelpers(),userConfig:n}=e,o=l(r,{main:k,worker:v});p(o,{fs:t,userConfig:n})}function k(r){const{env:{INPUT_FILE:e,DRY_RUN:t}}=r;if(!e)throw new Error("Missing INPUT_FILE environment variable");const n=e,o=T(t);return{inputFilePath:n,dryRun:o}}function v(r){if(!r||typeof r!="object")throw new Error("Invalid task input");let{inputFilePath:e,userConfigPath:t,dryRun:n}=r;if(typeof e!="string")throw new Error(`Invalid inputFilePath field value: ${JSON.stringify(e)}`);if(typeof t!="string"&&t!==void 0)throw new Error(`Invalid userConfigPath field value: ${JSON.stringify(t)}`);if(typeof n!="boolean")throw new Error(`Invalid dryRun field value: ${JSON.stringify(n)}`);return{inputFilePath:e,dryRun:!!n}}function T(r){if(!r)return!1;switch(r.toLowerCase()){case"0":case"false":return!1;default:return!0}}if(s.isMainThread)throw new Error("This module must be run in a worker thread");const u=s.workerData.codemodPaths;if(!P(u))throw new Error("Invalid worker data");const E=u.map(r=>{let e=d.dynamicRequire.requireDefault(r,{url:typeof document>"u"?require("url").pathToFileURL(__filename).href:a&&a.src||new URL("codemods/worker.cjs",document.baseURI).href});if(typeof e!="function")throw new Error(`Invalid codemod path: ${JSON.stringify(r)}`);return e}),c=i.loadUserConfig(s.workerData.userConfigPath),I=i.createCodemodTask(i.composeCodemods(E),c);y(I,{userConfig:c});function P(r){return C(r,e=>typeof e=="string")}function C(r,e){return Array.isArray(r)&&r.every(e)} |
| export {} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
| "use strict";const W=require("./module-ATX1OK1I.cjs"),re=require("fs"),ie=require("constants"),oe=require("stream"),ue=require("util"),ce=require("assert"),H=require("node:util");var z=typeof document<"u"?document.currentScript:null;function ae(e){return(c,y)=>{const{path:F,source:l}=c,f={result:{source:l,updated:null},errors:[],warnings:[]},{result:p,errors:O,warnings:T}=e.reduce((_,t)=>{const{result:o,errors:i,warnings:n}=_,{source:r,updated:h}=o,a=t({path:F,source:h??r},y),S=a.source!=null?{source:r,updated:a.source??o.updated}:o,P=[...i,...a.errors],$=[...n,...a.warnings];return{result:S,errors:P,warnings:$}},f);return{source:p.updated,errors:O,warnings:T}}}function le(e,c){return{run(y,F){const{fs:l}=F,{readFile:f,writeFile:p}=l,{inputFilePath:O,dryRun:T}=y;return f(O,"utf-8").catch(_=>Promise.reject(fe("ENOENT",_)?new Error(`File not found: ${O}`):_)).then(_=>{const{source:t,errors:o,warnings:i}=e({path:O,source:_},{fs:l,userConfig:c}),n=t===_,r={source:_,updated:n?null:t};return T||!t||n?{result:r,errors:o,warnings:i}:p(O,t).then(()=>({result:r,errors:o,warnings:i}))})}}}function fe(e,c){return e instanceof Error&&e.code===c}function se(e){return e?W.dynamicRequire.requireDefault(e,{url:typeof document>"u"?require("url").pathToFileURL(__filename).href:z&&z.src||new URL("fs-D1uyzWY8.cjs",document.baseURI).href}):void 0}var D=ie,de=process.cwd,U=null,pe=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return U||(U=de.call(process)),U};try{process.cwd()}catch{}if(typeof process.chdir=="function"){var V=process.chdir;process.chdir=function(e){U=null,V.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,V)}var he=ye;function ye(e){D.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&c(e),e.lutimes||y(e),e.chown=f(e.chown),e.fchown=f(e.fchown),e.lchown=f(e.lchown),e.chmod=F(e.chmod),e.fchmod=F(e.fchmod),e.lchmod=F(e.lchmod),e.chownSync=p(e.chownSync),e.fchownSync=p(e.fchownSync),e.lchownSync=p(e.lchownSync),e.chmodSync=l(e.chmodSync),e.fchmodSync=l(e.fchmodSync),e.lchmodSync=l(e.lchmodSync),e.stat=O(e.stat),e.fstat=O(e.fstat),e.lstat=O(e.lstat),e.statSync=T(e.statSync),e.fstatSync=T(e.fstatSync),e.lstatSync=T(e.lstatSync),e.chmod&&!e.lchmod&&(e.lchmod=function(t,o,i){i&&process.nextTick(i)},e.lchmodSync=function(){}),e.chown&&!e.lchown&&(e.lchown=function(t,o,i,n){n&&process.nextTick(n)},e.lchownSync=function(){}),pe==="win32"&&(e.rename=typeof e.rename!="function"?e.rename:function(t){function o(i,n,r){var h=Date.now(),a=0;t(i,n,function S(P){if(P&&(P.code==="EACCES"||P.code==="EPERM"||P.code==="EBUSY")&&Date.now()-h<6e4){setTimeout(function(){e.stat(n,function($,M){$&&$.code==="ENOENT"?t(i,n,S):r(P)})},a),a<100&&(a+=10);return}r&&r(P)})}return Object.setPrototypeOf&&Object.setPrototypeOf(o,t),o}(e.rename)),e.read=typeof e.read!="function"?e.read:function(t){function o(i,n,r,h,a,S){var P;if(S&&typeof S=="function"){var $=0;P=function(M,B,Q){if(M&&M.code==="EAGAIN"&&$<10)return $++,t.call(e,i,n,r,h,a,P);S.apply(this,arguments)}}return t.call(e,i,n,r,h,a,P)}return Object.setPrototypeOf&&Object.setPrototypeOf(o,t),o}(e.read),e.readSync=typeof e.readSync!="function"?e.readSync:function(t){return function(o,i,n,r,h){for(var a=0;;)try{return t.call(e,o,i,n,r,h)}catch(S){if(S.code==="EAGAIN"&&a<10){a++;continue}throw S}}}(e.readSync);function c(t){t.lchmod=function(o,i,n){t.open(o,D.O_WRONLY|D.O_SYMLINK,i,function(r,h){if(r){n&&n(r);return}t.fchmod(h,i,function(a){t.close(h,function(S){n&&n(a||S)})})})},t.lchmodSync=function(o,i){var n=t.openSync(o,D.O_WRONLY|D.O_SYMLINK,i),r=!0,h;try{h=t.fchmodSync(n,i),r=!1}finally{if(r)try{t.closeSync(n)}catch{}else t.closeSync(n)}return h}}function y(t){D.hasOwnProperty("O_SYMLINK")&&t.futimes?(t.lutimes=function(o,i,n,r){t.open(o,D.O_SYMLINK,function(h,a){if(h){r&&r(h);return}t.futimes(a,i,n,function(S){t.close(a,function(P){r&&r(S||P)})})})},t.lutimesSync=function(o,i,n){var r=t.openSync(o,D.O_SYMLINK),h,a=!0;try{h=t.futimesSync(r,i,n),a=!1}finally{if(a)try{t.closeSync(r)}catch{}else t.closeSync(r)}return h}):t.futimes&&(t.lutimes=function(o,i,n,r){r&&process.nextTick(r)},t.lutimesSync=function(){})}function F(t){return t&&function(o,i,n){return t.call(e,o,i,function(r){_(r)&&(r=null),n&&n.apply(this,arguments)})}}function l(t){return t&&function(o,i){try{return t.call(e,o,i)}catch(n){if(!_(n))throw n}}}function f(t){return t&&function(o,i,n,r){return t.call(e,o,i,n,function(h){_(h)&&(h=null),r&&r.apply(this,arguments)})}}function p(t){return t&&function(o,i,n){try{return t.call(e,o,i,n)}catch(r){if(!_(r))throw r}}}function O(t){return t&&function(o,i,n){typeof i=="function"&&(n=i,i=null);function r(h,a){a&&(a.uid<0&&(a.uid+=4294967296),a.gid<0&&(a.gid+=4294967296)),n&&n.apply(this,arguments)}return i?t.call(e,o,i,r):t.call(e,o,r)}}function T(t){return t&&function(o,i){var n=i?t.call(e,o,i):t.call(e,o);return n&&(n.uid<0&&(n.uid+=4294967296),n.gid<0&&(n.gid+=4294967296)),n}}function _(t){if(!t||t.code==="ENOSYS")return!0;var o=!process.getuid||process.getuid()!==0;return!!(o&&(t.code==="EINVAL"||t.code==="EPERM"))}}var J=oe.Stream,me=Se;function Se(e){return{ReadStream:c,WriteStream:y};function c(F,l){if(!(this instanceof c))return new c(F,l);J.call(this);var f=this;this.path=F,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,l=l||{};for(var p=Object.keys(l),O=0,T=p.length;O<T;O++){var _=p[O];this[_]=l[_]}if(this.encoding&&this.setEncoding(this.encoding),this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!="number")throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){f._read()});return}e.open(this.path,this.flags,this.mode,function(t,o){if(t){f.emit("error",t),f.readable=!1;return}f.fd=o,f.emit("open",o),f._read()})}function y(F,l){if(!(this instanceof y))return new y(F,l);J.call(this),this.path=F,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,l=l||{};for(var f=Object.keys(l),p=0,O=f.length;p<O;p++){var T=f[p];this[T]=l[T]}if(this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=e.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}var ve=ge,we=Object.getPrototypeOf||function(e){return e.__proto__};function ge(e){if(e===null||typeof e!="object")return e;if(e instanceof Object)var c={__proto__:we(e)};else var c=Object.create(null);return Object.getOwnPropertyNames(e).forEach(function(y){Object.defineProperty(c,y,Object.getOwnPropertyDescriptor(e,y))}),c}var g=re,Fe=he,Ee=me,Oe=ve,C=ue,j,G;typeof Symbol=="function"&&typeof Symbol.for=="function"?(j=Symbol.for("graceful-fs.queue"),G=Symbol.for("graceful-fs.previous")):(j="___graceful-fs.queue",G="___graceful-fs.previous");function _e(){}function ee(e,c){Object.defineProperty(e,j,{get:function(){return c}})}var I=_e;C.debuglog?I=C.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(I=function(){var e=C.format.apply(C,arguments);e="GFS4: "+e.split(/\n/).join(` | ||
| GFS4: `),console.error(e)});if(!g[j]){var Re=W.commonjsGlobal[j]||[];ee(g,Re),g.close=function(e){function c(y,F){return e.call(g,y,function(l){l||X(),typeof F=="function"&&F.apply(this,arguments)})}return Object.defineProperty(c,G,{value:e}),c}(g.close),g.closeSync=function(e){function c(y){e.apply(g,arguments),X()}return Object.defineProperty(c,G,{value:e}),c}(g.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){I(g[j]),ce.equal(g[j].length,0)})}W.commonjsGlobal[j]||ee(W.commonjsGlobal,g[j]);var te=k(Oe(g));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!g.__patched&&(te=k(g),g.__patched=!0);function k(e){Fe(e),e.gracefulify=k,e.createReadStream=B,e.createWriteStream=Q;var c=e.readFile;e.readFile=y;function y(u,d,s){return typeof d=="function"&&(s=d,d=null),b(u,d,s);function b(L,R,w,E){return c(L,R,function(m){m&&(m.code==="EMFILE"||m.code==="ENFILE")?q([b,[L,R,w],m,E||Date.now(),Date.now()]):typeof w=="function"&&w.apply(this,arguments)})}}var F=e.writeFile;e.writeFile=l;function l(u,d,s,b){return typeof s=="function"&&(b=s,s=null),L(u,d,s,b);function L(R,w,E,m,N){return F(R,w,E,function(v){v&&(v.code==="EMFILE"||v.code==="ENFILE")?q([L,[R,w,E,m],v,N||Date.now(),Date.now()]):typeof m=="function"&&m.apply(this,arguments)})}}var f=e.appendFile;f&&(e.appendFile=p);function p(u,d,s,b){return typeof s=="function"&&(b=s,s=null),L(u,d,s,b);function L(R,w,E,m,N){return f(R,w,E,function(v){v&&(v.code==="EMFILE"||v.code==="ENFILE")?q([L,[R,w,E,m],v,N||Date.now(),Date.now()]):typeof m=="function"&&m.apply(this,arguments)})}}var O=e.copyFile;O&&(e.copyFile=T);function T(u,d,s,b){return typeof s=="function"&&(b=s,s=0),L(u,d,s,b);function L(R,w,E,m,N){return O(R,w,E,function(v){v&&(v.code==="EMFILE"||v.code==="ENFILE")?q([L,[R,w,E,m],v,N||Date.now(),Date.now()]):typeof m=="function"&&m.apply(this,arguments)})}}var _=e.readdir;e.readdir=o;var t=/^v[0-5]\./;function o(u,d,s){typeof d=="function"&&(s=d,d=null);var b=t.test(process.version)?function(w,E,m,N){return _(w,L(w,E,m,N))}:function(w,E,m,N){return _(w,E,L(w,E,m,N))};return b(u,d,s);function L(R,w,E,m){return function(N,v){N&&(N.code==="EMFILE"||N.code==="ENFILE")?q([b,[R,w,E],N,m||Date.now(),Date.now()]):(v&&v.sort&&v.sort(),typeof E=="function"&&E.call(this,N,v))}}}if(process.version.substr(0,4)==="v0.8"){var i=Ee(e);S=i.ReadStream,$=i.WriteStream}var n=e.ReadStream;n&&(S.prototype=Object.create(n.prototype),S.prototype.open=P);var r=e.WriteStream;r&&($.prototype=Object.create(r.prototype),$.prototype.open=M),Object.defineProperty(e,"ReadStream",{get:function(){return S},set:function(u){S=u},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return $},set:function(u){$=u},enumerable:!0,configurable:!0});var h=S;Object.defineProperty(e,"FileReadStream",{get:function(){return h},set:function(u){h=u},enumerable:!0,configurable:!0});var a=$;Object.defineProperty(e,"FileWriteStream",{get:function(){return a},set:function(u){a=u},enumerable:!0,configurable:!0});function S(u,d){return this instanceof S?(n.apply(this,arguments),this):S.apply(Object.create(S.prototype),arguments)}function P(){var u=this;Y(u.path,u.flags,u.mode,function(d,s){d?(u.autoClose&&u.destroy(),u.emit("error",d)):(u.fd=s,u.emit("open",s),u.read())})}function $(u,d){return this instanceof $?(r.apply(this,arguments),this):$.apply(Object.create($.prototype),arguments)}function M(){var u=this;Y(u.path,u.flags,u.mode,function(d,s){d?(u.destroy(),u.emit("error",d)):(u.fd=s,u.emit("open",s))})}function B(u,d){return new e.ReadStream(u,d)}function Q(u,d){return new e.WriteStream(u,d)}var ne=e.open;e.open=Y;function Y(u,d,s,b){return typeof s=="function"&&(b=s,s=null),L(u,d,s,b);function L(R,w,E,m,N){return ne(R,w,E,function(v,be){v&&(v.code==="EMFILE"||v.code==="ENFILE")?q([L,[R,w,E,m],v,N||Date.now(),Date.now()]):typeof m=="function"&&m.apply(this,arguments)})}}return e}function q(e){I("ENQUEUE",e[0].name,e[1]),g[j].push(e),K()}var x;function X(){for(var e=Date.now(),c=0;c<g[j].length;++c)g[j][c].length>2&&(g[j][c][3]=e,g[j][c][4]=e);K()}function K(){if(clearTimeout(x),x=void 0,g[j].length!==0){var e=g[j].shift(),c=e[0],y=e[1],F=e[2],l=e[3],f=e[4];if(l===void 0)I("RETRY",c.name,y),c.apply(null,y);else if(Date.now()-l>=6e4){I("TIMEOUT",c.name,y);var p=y.pop();typeof p=="function"&&p.call(null,F)}else{var O=Date.now()-f,T=Math.max(f-l,1),_=Math.min(T*1.2,100);O>=_?(I("RETRY",c.name,y),c.apply(null,y.concat([l]))):g[j].push(e)}x===void 0&&(x=setTimeout(K,0))}}const A=W.getDefaultExportFromCjs(te),Z={readFile:H.promisify(A.readFile),writeFile:H.promisify(A.writeFile)};function $e(e=A){return{readFile:c,readFileSync:y,writeFile:F,writeFileSync:l};function c(f,p){return Z.readFile(f,p)}function y(f,p){return e.readFileSync(f,p)}function F(f,p){return Z.writeFile(f,p)}function l(f,p){return e.writeFileSync(f,p)}}exports.composeCodemods=ae;exports.createCodemodTask=le;exports.createFsHelpers=$e;exports.loadUserConfig=se; |
Sorry, the diff of this file is too big to display
| "use strict";var ye=Object.defineProperty;var Oe=(e,t,n)=>t in e?ye(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Q=(e,t,n)=>Oe(e,typeof t!="symbol"?t+"":t,n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var Ae=Object.defineProperty,Z=(e,t)=>{for(var n in t)Ae(e,n,{get:t[n],enumerable:!0})},ee={};Z(ee,{languages:()=>ce,options:()=>ue,parsers:()=>q,printers:()=>ve});var De=(e,t,n,r)=>{if(!(e&&t==null))return t.replaceAll?t.replaceAll(n,r):n.global?t.replace(n,r):t.split(n).join(r)},B=De,xe="indent",ge="group",_e="if-break",Y="line",ke="break-parent",Se=()=>{},Ce=Se;function v(e){return{type:xe,contents:e}}function y(e,t={}){return Ce(t.expandedStates),{type:ge,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function A(e,t="",n={}){return{type:_e,breakContents:e,flatContents:t,groupId:n.groupId}}var be={type:ke},Le={type:Y,hard:!0},C={type:Y},p={type:Y,soft:!0},h=[Le,be];function E(e,t){let n=[];for(let r=0;r<t.length;r++)r!==0&&n.push(e),n.push(t[r]);return n}function J(e){return(t,n,r)=>{let i=!!(r!=null&&r.backwards);if(n===!1)return!1;let{length:s}=t,o=n;for(;o>=0&&o<s;){let c=t.charAt(o);if(e instanceof RegExp){if(!e.test(c))return o}else if(!e.includes(c))return o;i?o--:o++}return o===-1||o===s?o:!1}}var te=J(" "),Re=J(",; "),Fe=J(/[^\n\r]/u);function we(e,t,n){let r=!!(n!=null&&n.backwards);if(t===!1)return!1;let i=e.charAt(t);if(r){if(e.charAt(t-1)==="\r"&&i===` | ||
| `)return t-2;if(i===` | ||
| `||i==="\r"||i==="\u2028"||i==="\u2029")return t-1}else{if(i==="\r"&&e.charAt(t+1)===` | ||
| `)return t+2;if(i===` | ||
| `||i==="\r"||i==="\u2028"||i==="\u2029")return t+1}return t}var ne=we;function Pe(e,t,n={}){let r=te(e,n.backwards?t-1:t,n),i=ne(e,r,n);return r!==i}var Ue=Pe;function Ve(e,t){if(t===!1)return!1;if(e.charAt(t)==="/"&&e.charAt(t+1)==="*"){for(let n=t+2;n<e.length;++n)if(e.charAt(n)==="*"&&e.charAt(n+1)==="/")return n+2}return t}var Me=Ve;function Be(e,t){return t===!1?!1:e.charAt(t)==="/"&&e.charAt(t+1)==="/"?Fe(e,t):t}var je=Be;function Ke(e,t){let n=null,r=t;for(;r!==n;)n=r,r=Re(e,r),r=Me(e,r),r=te(e,r);return r=je(e,r),r=ne(e,r),r!==!1&&Ue(e,r)}var $e=Ke;function Ge(e){return Array.isArray(e)&&e.length>0}var ie=Ge,Ye=class extends Error{constructor(t,n,r="type"){super(`Unexpected ${n} node ${r}: ${JSON.stringify(t[r])}.`);Q(this,"name","UnexpectedNodeError");this.node=t}},Je=Ye,L=null;function F(e){if(L!==null&&typeof L.property){let t=L;return L=F.prototype=null,t}return L=F.prototype=e??Object.create(null),new F}var qe=10;for(let e=0;e<=qe;e++)F();function Qe(e){return F(e)}function Xe(e,t="type"){Qe(e);function n(r){let i=r[t],s=e[i];if(!Array.isArray(s))throw Object.assign(new Error(`Missing visitor keys for '${i}'.`),{node:r});return s}return n}var ze=Xe,He=class{constructor(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}},re=class{constructor(e,t,n,r,i,s){this.kind=e,this.start=t,this.end=n,this.line=r,this.column=i,this.value=s,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}},se={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]};new Set(Object.keys(se));var S;(function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"})(S||(S={}));var We=ze(se,"kind"),Ze=We;function ae(e){return e.loc.start}function oe(e){return e.loc.end}function et(e){return/^\s*#[^\S\n]*@(?:format|prettier)\s*(?:\n|$)/u.test(e)}function tt(e){return`# @format | ||
| `+e}function nt(e,t,n){let{node:r}=e;if(!r.description)return"";let i=[n("description")];return r.kind==="InputValueDefinition"&&!r.description.block?i.push(C):i.push(h),i}var x=nt;function it(e,t,n){let{node:r}=e;switch(r.kind){case"Document":return[...E(h,O(e,t,n,"definitions")),h];case"OperationDefinition":{let i=t.originalText[ae(r)]!=="{",s=!!r.name;return[i?r.operation:"",i&&s?[" ",n("name")]:"",i&&!s&&ie(r.variableDefinitions)?" ":"",X(e,n),N(e,n,r),!i&&!s?"":" ",n("selectionSet")]}case"FragmentDefinition":return["fragment ",n("name"),X(e,n)," on ",n("typeCondition"),N(e,n,r)," ",n("selectionSet")];case"SelectionSet":return["{",v([h,E(h,O(e,t,n,"selections"))]),h,"}"];case"Field":return y([r.alias?[n("alias"),": "]:"",n("name"),r.arguments.length>0?y(["(",v([p,E([A("",", "),p],O(e,t,n,"arguments"))]),p,")"]):"",N(e,n,r),r.selectionSet?" ":"",n("selectionSet")]);case"Name":return r.value;case"StringValue":if(r.block){let i=B(!1,r.value,'"""',String.raw`\"""`).split(` | ||
| `);return i.length===1&&(i[0]=i[0].trim()),i.every(s=>s==="")&&(i.length=0),E(h,['"""',...i,'"""'])}return['"',B(!1,B(!1,r.value,/["\\]/gu,String.raw`\$&`),` | ||
| `,String.raw`\n`),'"'];case"IntValue":case"FloatValue":case"EnumValue":return r.value;case"BooleanValue":return r.value?"true":"false";case"NullValue":return"null";case"Variable":return["$",n("name")];case"ListValue":return y(["[",v([p,E([A("",", "),p],e.map(n,"values"))]),p,"]"]);case"ObjectValue":{let i=t.bracketSpacing&&r.fields.length>0?" ":"";return y(["{",i,v([p,E([A("",", "),p],e.map(n,"fields"))]),p,A("",i),"}"])}case"ObjectField":case"Argument":return[n("name"),": ",n("value")];case"Directive":return["@",n("name"),r.arguments.length>0?y(["(",v([p,E([A("",", "),p],O(e,t,n,"arguments"))]),p,")"]):""];case"NamedType":return n("name");case"VariableDefinition":return[n("variable"),": ",n("type"),r.defaultValue?[" = ",n("defaultValue")]:"",N(e,n,r)];case"ObjectTypeExtension":case"ObjectTypeDefinition":case"InputObjectTypeExtension":case"InputObjectTypeDefinition":case"InterfaceTypeExtension":case"InterfaceTypeDefinition":{let{kind:i}=r,s=[];return i.endsWith("TypeDefinition")?s.push(x(e,t,n)):s.push("extend "),i.startsWith("ObjectType")?s.push("type"):i.startsWith("InputObjectType")?s.push("input"):s.push("interface"),s.push(" ",n("name")),!i.startsWith("InputObjectType")&&r.interfaces.length>0&&s.push(" implements ",...at(e,t,n)),s.push(N(e,n,r)),r.fields.length>0&&s.push([" {",v([h,E(h,O(e,t,n,"fields"))]),h,"}"]),s}case"FieldDefinition":return[x(e,t,n),n("name"),r.arguments.length>0?y(["(",v([p,E([A("",", "),p],O(e,t,n,"arguments"))]),p,")"]):"",": ",n("type"),N(e,n,r)];case"DirectiveDefinition":return[x(e,t,n),"directive ","@",n("name"),r.arguments.length>0?y(["(",v([p,E([A("",", "),p],O(e,t,n,"arguments"))]),p,")"]):"",r.repeatable?" repeatable":""," on ",...E(" | ",e.map(n,"locations"))];case"EnumTypeExtension":case"EnumTypeDefinition":return[x(e,t,n),r.kind==="EnumTypeExtension"?"extend ":"","enum ",n("name"),N(e,n,r),r.values.length>0?[" {",v([h,E(h,O(e,t,n,"values"))]),h,"}"]:""];case"EnumValueDefinition":return[x(e,t,n),n("name"),N(e,n,r)];case"InputValueDefinition":return[x(e,t,n),n("name"),": ",n("type"),r.defaultValue?[" = ",n("defaultValue")]:"",N(e,n,r)];case"SchemaExtension":return["extend schema",N(e,n,r),...r.operationTypes.length>0?[" {",v([h,E(h,O(e,t,n,"operationTypes"))]),h,"}"]:[]];case"SchemaDefinition":return[x(e,t,n),"schema",N(e,n,r)," {",r.operationTypes.length>0?v([h,E(h,O(e,t,n,"operationTypes"))]):"",h,"}"];case"OperationTypeDefinition":return[r.operation,": ",n("type")];case"FragmentSpread":return["...",n("name"),N(e,n,r)];case"InlineFragment":return["...",r.typeCondition?[" on ",n("typeCondition")]:"",N(e,n,r)," ",n("selectionSet")];case"UnionTypeExtension":case"UnionTypeDefinition":return y([x(e,t,n),y([r.kind==="UnionTypeExtension"?"extend ":"","union ",n("name"),N(e,n,r),r.types.length>0?[" =",A(""," "),v([A([C,"| "]),E([C,"| "],e.map(n,"types"))])]:""])]);case"ScalarTypeExtension":case"ScalarTypeDefinition":return[x(e,t,n),r.kind==="ScalarTypeExtension"?"extend ":"","scalar ",n("name"),N(e,n,r)];case"NonNullType":return[n("type"),"!"];case"ListType":return["[",n("type"),"]"];default:throw new Je(r,"Graphql","kind")}}function N(e,t,n){if(n.directives.length===0)return"";let r=E(C,e.map(t,"directives"));return n.kind==="FragmentDefinition"||n.kind==="OperationDefinition"?y([C,r]):[" ",y(v([p,r]))]}function O(e,t,n,r){return e.map(({isLast:i,node:s})=>{let o=n();return!i&&$e(t.originalText,oe(s))?[o,h]:o},r)}function rt(e){return e.kind!=="Comment"}function st(e){let t=e.node;if(t.kind==="Comment")return"#"+t.value.trimEnd();throw new Error("Not a comment: "+JSON.stringify(t))}function at(e,t,n){let{node:r}=e,i=[],{interfaces:s}=r,o=e.map(n,"interfaces");for(let c=0;c<s.length;c++){let u=s[c];i.push(o[c]);let I=s[c+1];if(I){let m=t.originalText.slice(u.loc.end,I.loc.start).includes("#");i.push(" &",m?C:" ")}}return i}function X(e,t){let{node:n}=e;return ie(n.variableDefinitions)?y(["(",v([p,E([A("",", "),p],e.map(t,"variableDefinitions"))]),p,")"]):""}function le(e,t){e.kind==="StringValue"&&e.block&&!e.value.includes(` | ||
| `)&&(t.value=e.value.trim())}le.ignoredProperties=new Set(["loc","comments"]);function ot(e){var t;let{node:n}=e;return(t=n==null?void 0:n.comments)==null?void 0:t.some(r=>r.value.trim()==="prettier-ignore")}var lt={print:it,massageAstNode:le,hasPrettierIgnore:ot,insertPragma:tt,printComment:st,canAttachComment:rt,getVisitorKeys:Ze},ct=lt,ce=[{linguistLanguageId:139,name:"GraphQL",type:"data",color:"#e10098",extensions:[".graphql",".gql",".graphqls"],tmScope:"source.graphql",aceMode:"text",parsers:["graphql"],vscodeLanguageIds:["graphql"]}],ut={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}},pt={bracketSpacing:ut.bracketSpacing},ue=pt,q={};Z(q,{graphql:()=>Xt});function ht(e){return typeof e=="object"&&e!==null}function dt(e,t){throw new Error("Unexpected invariant triggered.")}var ft=/\r\n|[\n\r]/g;function $(e,t){let n=0,r=1;for(let i of e.body.matchAll(ft)){if(typeof i.index=="number"||dt(),i.index>=t)break;n=i.index+i[0].length,r+=1}return{line:r,column:t+1-n}}function Et(e){return pe(e.source,$(e.source,e.start))}function pe(e,t){let n=e.locationOffset.column-1,r="".padStart(n)+e.body,i=t.line-1,s=e.locationOffset.line-1,o=t.line+s,c=t.line===1?n:0,u=t.column+c,I=`${e.name}:${o}:${u} | ||
| `,m=r.split(/\r\n|[\n\r]/g),_=m[i];if(_.length>120){let D=Math.floor(u/80),M=u%80,T=[];for(let k=0;k<_.length;k+=80)T.push(_.slice(k,k+80));return I+z([[`${o} |`,T[0]],...T.slice(1,D+1).map(k=>["|",k]),["|","^".padStart(M)],["|",T[D+1]]])}return I+z([[`${o-1} |`,m[i-1]],[`${o} |`,_],["|","^".padStart(u)],[`${o+1} |`,m[i+1]]])}function z(e){let t=e.filter(([r,i])=>i!==void 0),n=Math.max(...t.map(([r])=>r.length));return t.map(([r,i])=>r.padStart(n)+(i?" "+i:"")).join(` | ||
| `)}function mt(e){let t=e[0];return t==null||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}var Tt=class he extends Error{constructor(t,...n){var r,i,s;let{nodes:o,source:c,positions:u,path:I,originalError:m,extensions:_}=mt(n);super(t),this.name="GraphQLError",this.path=I??void 0,this.originalError=m??void 0,this.nodes=H(Array.isArray(o)?o:o?[o]:void 0);let D=H((r=this.nodes)===null||r===void 0?void 0:r.map(T=>T.loc).filter(T=>T!=null));this.source=c??(D==null||(i=D[0])===null||i===void 0?void 0:i.source),this.positions=u??(D==null?void 0:D.map(T=>T.start)),this.locations=u&&c?u.map(T=>$(c,T)):D==null?void 0:D.map(T=>$(T.source,T.start));let M=ht(m==null?void 0:m.extensions)?m==null?void 0:m.extensions:void 0;this.extensions=(s=_??M)!==null&&s!==void 0?s:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),m!=null&&m.stack?Object.defineProperty(this,"stack",{value:m.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,he):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let t=this.message;if(this.nodes)for(let n of this.nodes)n.loc&&(t+=` | ||
| `+Et(n.loc));else if(this.source&&this.locations)for(let n of this.locations)t+=` | ||
| `+pe(this.source,n);return t}toJSON(){let t={message:this.message};return this.locations!=null&&(t.locations=this.locations),this.path!=null&&(t.path=this.path),this.extensions!=null&&Object.keys(this.extensions).length>0&&(t.extensions=this.extensions),t}};function H(e){return e===void 0||e.length===0?void 0:e}function f(e,t,n){return new Tt(`Syntax Error: ${n}`,{source:e,positions:[t]})}var G;(function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"})(G||(G={}));var l;(function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"})(l||(l={}));function Nt(e){return e===9||e===32}function w(e){return e>=48&&e<=57}function de(e){return e>=97&&e<=122||e>=65&&e<=90}function fe(e){return de(e)||e===95}function It(e){return de(e)||w(e)||e===95}function vt(e){var t;let n=Number.MAX_SAFE_INTEGER,r=null,i=-1;for(let o=0;o<e.length;++o){var s;let c=e[o],u=yt(c);u!==c.length&&(r=(s=r)!==null&&s!==void 0?s:o,i=o,o!==0&&u<n&&(n=u))}return e.map((o,c)=>c===0?o:o.slice(n)).slice((t=r)!==null&&t!==void 0?t:0,i+1)}function yt(e){let t=0;for(;t<e.length&&Nt(e.charCodeAt(t));)++t;return t}var a;(function(e){e.SOF="<SOF>",e.EOF="<EOF>",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}",e.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment"})(a||(a={}));var Ot=class{constructor(e){let t=new re(a.SOF,0,0,0,0);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==a.EOF)do if(e.next)e=e.next;else{let t=Dt(this,e.end);e.next=t,t.prev=e,e=t}while(e.kind===a.COMMENT);return e}};function At(e){return e===a.BANG||e===a.DOLLAR||e===a.AMP||e===a.PAREN_L||e===a.PAREN_R||e===a.SPREAD||e===a.COLON||e===a.EQUALS||e===a.AT||e===a.BRACKET_L||e===a.BRACKET_R||e===a.BRACE_L||e===a.PIPE||e===a.BRACE_R}function b(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function U(e,t){return Ee(e.charCodeAt(t))&&me(e.charCodeAt(t+1))}function Ee(e){return e>=55296&&e<=56319}function me(e){return e>=56320&&e<=57343}function g(e,t){let n=e.source.body.codePointAt(t);if(n===void 0)return a.EOF;if(n>=32&&n<=126){let r=String.fromCodePoint(n);return r==='"'?`'"'`:`"${r}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function d(e,t,n,r,i){let s=e.line,o=1+n-e.lineStart;return new re(t,n,r,s,o,i)}function Dt(e,t){let n=e.source.body,r=n.length,i=t;for(;i<r;){let s=n.charCodeAt(i);switch(s){case 65279:case 9:case 32:case 44:++i;continue;case 10:++i,++e.line,e.lineStart=i;continue;case 13:n.charCodeAt(i+1)===10?i+=2:++i,++e.line,e.lineStart=i;continue;case 35:return xt(e,i);case 33:return d(e,a.BANG,i,i+1);case 36:return d(e,a.DOLLAR,i,i+1);case 38:return d(e,a.AMP,i,i+1);case 40:return d(e,a.PAREN_L,i,i+1);case 41:return d(e,a.PAREN_R,i,i+1);case 46:if(n.charCodeAt(i+1)===46&&n.charCodeAt(i+2)===46)return d(e,a.SPREAD,i,i+3);break;case 58:return d(e,a.COLON,i,i+1);case 61:return d(e,a.EQUALS,i,i+1);case 64:return d(e,a.AT,i,i+1);case 91:return d(e,a.BRACKET_L,i,i+1);case 93:return d(e,a.BRACKET_R,i,i+1);case 123:return d(e,a.BRACE_L,i,i+1);case 124:return d(e,a.PIPE,i,i+1);case 125:return d(e,a.BRACE_R,i,i+1);case 34:return n.charCodeAt(i+1)===34&&n.charCodeAt(i+2)===34?bt(e,i):_t(e,i)}if(w(s)||s===45)return gt(e,i,s);if(fe(s))return Lt(e,i);throw f(e.source,i,s===39?`Unexpected single quote character ('), did you mean to use a double quote (")?`:b(s)||U(n,i)?`Unexpected character: ${g(e,i)}.`:`Invalid character: ${g(e,i)}.`)}return d(e,a.EOF,r,r)}function xt(e,t){let n=e.source.body,r=n.length,i=t+1;for(;i<r;){let s=n.charCodeAt(i);if(s===10||s===13)break;if(b(s))++i;else if(U(n,i))i+=2;else break}return d(e,a.COMMENT,t,i,n.slice(t+1,i))}function gt(e,t,n){let r=e.source.body,i=t,s=n,o=!1;if(s===45&&(s=r.charCodeAt(++i)),s===48){if(s=r.charCodeAt(++i),w(s))throw f(e.source,i,`Invalid number, unexpected digit after 0: ${g(e,i)}.`)}else i=j(e,i,s),s=r.charCodeAt(i);if(s===46&&(o=!0,s=r.charCodeAt(++i),i=j(e,i,s),s=r.charCodeAt(i)),(s===69||s===101)&&(o=!0,s=r.charCodeAt(++i),(s===43||s===45)&&(s=r.charCodeAt(++i)),i=j(e,i,s),s=r.charCodeAt(i)),s===46||fe(s))throw f(e.source,i,`Invalid number, expected digit but got: ${g(e,i)}.`);return d(e,o?a.FLOAT:a.INT,t,i,r.slice(t,i))}function j(e,t,n){if(!w(n))throw f(e.source,t,`Invalid number, expected digit but got: ${g(e,t)}.`);let r=e.source.body,i=t+1;for(;w(r.charCodeAt(i));)++i;return i}function _t(e,t){let n=e.source.body,r=n.length,i=t+1,s=i,o="";for(;i<r;){let c=n.charCodeAt(i);if(c===34)return o+=n.slice(s,i),d(e,a.STRING,t,i+1,o);if(c===92){o+=n.slice(s,i);let u=n.charCodeAt(i+1)===117?n.charCodeAt(i+2)===123?kt(e,i):St(e,i):Ct(e,i);o+=u.value,i+=u.size,s=i;continue}if(c===10||c===13)break;if(b(c))++i;else if(U(n,i))i+=2;else throw f(e.source,i,`Invalid character within String: ${g(e,i)}.`)}throw f(e.source,i,"Unterminated string.")}function kt(e,t){let n=e.source.body,r=0,i=3;for(;i<12;){let s=n.charCodeAt(t+i++);if(s===125){if(i<5||!b(r))break;return{value:String.fromCodePoint(r),size:i}}if(r=r<<4|R(s),r<0)break}throw f(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+i)}".`)}function St(e,t){let n=e.source.body,r=W(n,t+2);if(b(r))return{value:String.fromCodePoint(r),size:6};if(Ee(r)&&n.charCodeAt(t+6)===92&&n.charCodeAt(t+7)===117){let i=W(n,t+8);if(me(i))return{value:String.fromCodePoint(r,i),size:12}}throw f(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+6)}".`)}function W(e,t){return R(e.charCodeAt(t))<<12|R(e.charCodeAt(t+1))<<8|R(e.charCodeAt(t+2))<<4|R(e.charCodeAt(t+3))}function R(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function Ct(e,t){let n=e.source.body;switch(n.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:` | ||
| `,size:2};case 114:return{value:"\r",size:2};case 116:return{value:" ",size:2}}throw f(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}function bt(e,t){let n=e.source.body,r=n.length,i=e.lineStart,s=t+3,o=s,c="",u=[];for(;s<r;){let I=n.charCodeAt(s);if(I===34&&n.charCodeAt(s+1)===34&&n.charCodeAt(s+2)===34){c+=n.slice(o,s),u.push(c);let m=d(e,a.BLOCK_STRING,t,s+3,vt(u).join(` | ||
| `));return e.line+=u.length-1,e.lineStart=i,m}if(I===92&&n.charCodeAt(s+1)===34&&n.charCodeAt(s+2)===34&&n.charCodeAt(s+3)===34){c+=n.slice(o,s),o=s+1,s+=4;continue}if(I===10||I===13){c+=n.slice(o,s),u.push(c),I===13&&n.charCodeAt(s+1)===10?s+=2:++s,c="",o=s,i=s;continue}if(b(I))++s;else if(U(n,s))s+=2;else throw f(e.source,s,`Invalid character within String: ${g(e,s)}.`)}throw f(e.source,s,"Unterminated string.")}function Lt(e,t){let n=e.source.body,r=n.length,i=t+1;for(;i<r;){let s=n.charCodeAt(i);if(It(s))++i;else break}return d(e,a.NAME,t,i,n.slice(t,i))}function K(e,t){throw new Error(t)}function Te(e){return V(e,[])}function V(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return Rt(e,t);default:return String(e)}}function Rt(e,t){if(e===null)return"null";if(t.includes(e))return"[Circular]";let n=[...t,e];if(Ft(e)){let r=e.toJSON();if(r!==e)return typeof r=="string"?r:V(r,n)}else if(Array.isArray(e))return Pt(e,n);return wt(e,n)}function Ft(e){return typeof e.toJSON=="function"}function wt(e,t){let n=Object.entries(e);return n.length===0?"{}":t.length>2?"["+Ut(e)+"]":"{ "+n.map(([r,i])=>r+": "+V(i,t)).join(", ")+" }"}function Pt(e,t){if(e.length===0)return"[]";if(t.length>2)return"[Array]";let n=Math.min(10,e.length),r=e.length-n,i=[];for(let s=0;s<n;++s)i.push(V(e[s],t));return r===1?i.push("... 1 more item"):r>1&&i.push(`... ${r} more items`),"["+i.join(", ")+"]"}function Ut(e){let t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if(t==="Object"&&typeof e.constructor=="function"){let n=e.constructor.name;if(typeof n=="string"&&n!=="")return n}return t}var Vt=globalThis.process&&!0,Mt=Vt?function(e,t){return e instanceof t}:function(e,t){if(e instanceof t)return!0;if(typeof e=="object"&&e!==null){var n;let r=t.prototype[Symbol.toStringTag],i=Symbol.toStringTag in e?e[Symbol.toStringTag]:(n=e.constructor)===null||n===void 0?void 0:n.name;if(r===i){let s=Te(e);throw new Error(`Cannot use ${r} "${s}" from another module or realm. | ||
| Ensure that there is only one instance of "graphql" in the node_modules | ||
| directory. If different versions of "graphql" are the dependencies of other | ||
| relied on modules, use "resolutions" to ensure only one version is installed. | ||
| https://yarnpkg.com/en/docs/selective-version-resolutions | ||
| Duplicate "graphql" modules cannot be used at the same time since different | ||
| versions may have different capabilities and behavior. The data from one | ||
| version used in the function from another could produce confusing and | ||
| spurious results.`)}}return!1},Ne=class{constructor(e,t="GraphQL request",n={line:1,column:1}){typeof e=="string"||K(!1,`Body must be a string. Received: ${Te(e)}.`),this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||K(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||K(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}};function Bt(e){return Mt(e,Ne)}function jt(e,t){return new Kt(e,t).parseDocument()}var Kt=class{constructor(e,t={}){let n=Bt(e)?e:new Ne(e);this._lexer=new Ot(n),this._options=t,this._tokenCounter=0}parseName(){let e=this.expectToken(a.NAME);return this.node(e,{kind:l.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:l.DOCUMENT,definitions:this.many(a.SOF,this.parseDefinition,a.EOF)})}parseDefinition(){if(this.peek(a.BRACE_L))return this.parseOperationDefinition();let e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(t.kind===a.NAME){switch(t.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()}if(e)throw f(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(t.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(t)}parseOperationDefinition(){let e=this._lexer.token;if(this.peek(a.BRACE_L))return this.node(e,{kind:l.OPERATION_DEFINITION,operation:S.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});let t=this.parseOperationType(),n;return this.peek(a.NAME)&&(n=this.parseName()),this.node(e,{kind:l.OPERATION_DEFINITION,operation:t,name:n,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){let e=this.expectToken(a.NAME);switch(e.value){case"query":return S.QUERY;case"mutation":return S.MUTATION;case"subscription":return S.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(a.PAREN_L,this.parseVariableDefinition,a.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:l.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(a.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(a.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){let e=this._lexer.token;return this.expectToken(a.DOLLAR),this.node(e,{kind:l.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:l.SELECTION_SET,selections:this.many(a.BRACE_L,this.parseSelection,a.BRACE_R)})}parseSelection(){return this.peek(a.SPREAD)?this.parseFragment():this.parseField()}parseField(){let e=this._lexer.token,t=this.parseName(),n,r;return this.expectOptionalToken(a.COLON)?(n=t,r=this.parseName()):r=t,this.node(e,{kind:l.FIELD,alias:n,name:r,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(a.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){let t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(a.PAREN_L,t,a.PAREN_R)}parseArgument(e=!1){let t=this._lexer.token,n=this.parseName();return this.expectToken(a.COLON),this.node(t,{kind:l.ARGUMENT,name:n,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){let e=this._lexer.token;this.expectToken(a.SPREAD);let t=this.expectOptionalKeyword("on");return!t&&this.peek(a.NAME)?this.node(e,{kind:l.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:l.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){let e=this._lexer.token;return this.expectKeyword("fragment"),this._options.allowLegacyFragmentVariables===!0?this.node(e,{kind:l.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(e,{kind:l.FRAGMENT_DEFINITION,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(e){let t=this._lexer.token;switch(t.kind){case a.BRACKET_L:return this.parseList(e);case a.BRACE_L:return this.parseObject(e);case a.INT:return this.advanceLexer(),this.node(t,{kind:l.INT,value:t.value});case a.FLOAT:return this.advanceLexer(),this.node(t,{kind:l.FLOAT,value:t.value});case a.STRING:case a.BLOCK_STRING:return this.parseStringLiteral();case a.NAME:switch(this.advanceLexer(),t.value){case"true":return this.node(t,{kind:l.BOOLEAN,value:!0});case"false":return this.node(t,{kind:l.BOOLEAN,value:!1});case"null":return this.node(t,{kind:l.NULL});default:return this.node(t,{kind:l.ENUM,value:t.value})}case a.DOLLAR:if(e)if(this.expectToken(a.DOLLAR),this._lexer.token.kind===a.NAME){let n=this._lexer.token.value;throw f(this._lexer.source,t.start,`Unexpected variable "$${n}" in constant value.`)}else throw this.unexpected(t);return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){let e=this._lexer.token;return this.advanceLexer(),this.node(e,{kind:l.STRING,value:e.value,block:e.kind===a.BLOCK_STRING})}parseList(e){let t=()=>this.parseValueLiteral(e);return this.node(this._lexer.token,{kind:l.LIST,values:this.any(a.BRACKET_L,t,a.BRACKET_R)})}parseObject(e){let t=()=>this.parseObjectField(e);return this.node(this._lexer.token,{kind:l.OBJECT,fields:this.any(a.BRACE_L,t,a.BRACE_R)})}parseObjectField(e){let t=this._lexer.token,n=this.parseName();return this.expectToken(a.COLON),this.node(t,{kind:l.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e)})}parseDirectives(e){let t=[];for(;this.peek(a.AT);)t.push(this.parseDirective(e));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){let t=this._lexer.token;return this.expectToken(a.AT),this.node(t,{kind:l.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){let e=this._lexer.token,t;if(this.expectOptionalToken(a.BRACKET_L)){let n=this.parseTypeReference();this.expectToken(a.BRACKET_R),t=this.node(e,{kind:l.LIST_TYPE,type:n})}else t=this.parseNamedType();return this.expectOptionalToken(a.BANG)?this.node(e,{kind:l.NON_NULL_TYPE,type:t}):t}parseNamedType(){return this.node(this._lexer.token,{kind:l.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(a.STRING)||this.peek(a.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");let n=this.parseConstDirectives(),r=this.many(a.BRACE_L,this.parseOperationTypeDefinition,a.BRACE_R);return this.node(e,{kind:l.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:r})}parseOperationTypeDefinition(){let e=this._lexer.token,t=this.parseOperationType();this.expectToken(a.COLON);let n=this.parseNamedType();return this.node(e,{kind:l.OPERATION_TYPE_DEFINITION,operation:t,type:n})}parseScalarTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");let n=this.parseName(),r=this.parseConstDirectives();return this.node(e,{kind:l.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:r})}parseObjectTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");let n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),s=this.parseFieldsDefinition();return this.node(e,{kind:l.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:s})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(a.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(a.BRACE_L,this.parseFieldDefinition,a.BRACE_R)}parseFieldDefinition(){let e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseArgumentDefs();this.expectToken(a.COLON);let i=this.parseTypeReference(),s=this.parseConstDirectives();return this.node(e,{kind:l.FIELD_DEFINITION,description:t,name:n,arguments:r,type:i,directives:s})}parseArgumentDefs(){return this.optionalMany(a.PAREN_L,this.parseInputValueDef,a.PAREN_R)}parseInputValueDef(){let e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(a.COLON);let r=this.parseTypeReference(),i;this.expectOptionalToken(a.EQUALS)&&(i=this.parseConstValueLiteral());let s=this.parseConstDirectives();return this.node(e,{kind:l.INPUT_VALUE_DEFINITION,description:t,name:n,type:r,defaultValue:i,directives:s})}parseInterfaceTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");let n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),s=this.parseFieldsDefinition();return this.node(e,{kind:l.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:s})}parseUnionTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");let n=this.parseName(),r=this.parseConstDirectives(),i=this.parseUnionMemberTypes();return this.node(e,{kind:l.UNION_TYPE_DEFINITION,description:t,name:n,directives:r,types:i})}parseUnionMemberTypes(){return this.expectOptionalToken(a.EQUALS)?this.delimitedMany(a.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");let n=this.parseName(),r=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();return this.node(e,{kind:l.ENUM_TYPE_DEFINITION,description:t,name:n,directives:r,values:i})}parseEnumValuesDefinition(){return this.optionalMany(a.BRACE_L,this.parseEnumValueDefinition,a.BRACE_R)}parseEnumValueDefinition(){let e=this._lexer.token,t=this.parseDescription(),n=this.parseEnumValueName(),r=this.parseConstDirectives();return this.node(e,{kind:l.ENUM_VALUE_DEFINITION,description:t,name:n,directives:r})}parseEnumValueName(){if(this._lexer.token.value==="true"||this._lexer.token.value==="false"||this._lexer.token.value==="null")throw f(this._lexer.source,this._lexer.token.start,`${P(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");let n=this.parseName(),r=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();return this.node(e,{kind:l.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:r,fields:i})}parseInputFieldsDefinition(){return this.optionalMany(a.BRACE_L,this.parseInputValueDef,a.BRACE_R)}parseTypeSystemExtension(){let e=this._lexer.lookahead();if(e.kind===a.NAME)switch(e.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()}throw this.unexpected(e)}parseSchemaExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");let t=this.parseConstDirectives(),n=this.optionalMany(a.BRACE_L,this.parseOperationTypeDefinition,a.BRACE_R);if(t.length===0&&n.length===0)throw this.unexpected();return this.node(e,{kind:l.SCHEMA_EXTENSION,directives:t,operationTypes:n})}parseScalarTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");let t=this.parseName(),n=this.parseConstDirectives();if(n.length===0)throw this.unexpected();return this.node(e,{kind:l.SCALAR_TYPE_EXTENSION,name:t,directives:n})}parseObjectTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");let t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(n.length===0&&r.length===0&&i.length===0)throw this.unexpected();return this.node(e,{kind:l.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i})}parseInterfaceTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");let t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(n.length===0&&r.length===0&&i.length===0)throw this.unexpected();return this.node(e,{kind:l.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i})}parseUnionTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");let t=this.parseName(),n=this.parseConstDirectives(),r=this.parseUnionMemberTypes();if(n.length===0&&r.length===0)throw this.unexpected();return this.node(e,{kind:l.UNION_TYPE_EXTENSION,name:t,directives:n,types:r})}parseEnumTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");let t=this.parseName(),n=this.parseConstDirectives(),r=this.parseEnumValuesDefinition();if(n.length===0&&r.length===0)throw this.unexpected();return this.node(e,{kind:l.ENUM_TYPE_EXTENSION,name:t,directives:n,values:r})}parseInputObjectTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");let t=this.parseName(),n=this.parseConstDirectives(),r=this.parseInputFieldsDefinition();if(n.length===0&&r.length===0)throw this.unexpected();return this.node(e,{kind:l.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:r})}parseDirectiveDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(a.AT);let n=this.parseName(),r=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");let s=this.parseDirectiveLocations();return this.node(e,{kind:l.DIRECTIVE_DEFINITION,description:t,name:n,arguments:r,repeatable:i,locations:s})}parseDirectiveLocations(){return this.delimitedMany(a.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){let e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(G,t.value))return t;throw this.unexpected(e)}node(e,t){return this._options.noLocation!==!0&&(t.loc=new He(e,this._lexer.lastToken,this._lexer.source)),t}peek(e){return this._lexer.token.kind===e}expectToken(e){let t=this._lexer.token;if(t.kind===e)return this.advanceLexer(),t;throw f(this._lexer.source,t.start,`Expected ${Ie(e)}, found ${P(t)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e?(this.advanceLexer(),!0):!1}expectKeyword(e){let t=this._lexer.token;if(t.kind===a.NAME&&t.value===e)this.advanceLexer();else throw f(this._lexer.source,t.start,`Expected "${e}", found ${P(t)}.`)}expectOptionalKeyword(e){let t=this._lexer.token;return t.kind===a.NAME&&t.value===e?(this.advanceLexer(),!0):!1}unexpected(e){let t=e??this._lexer.token;return f(this._lexer.source,t.start,`Unexpected ${P(t)}.`)}any(e,t,n){this.expectToken(e);let r=[];for(;!this.expectOptionalToken(n);)r.push(t.call(this));return r}optionalMany(e,t,n){if(this.expectOptionalToken(e)){let r=[];do r.push(t.call(this));while(!this.expectOptionalToken(n));return r}return[]}many(e,t,n){this.expectToken(e);let r=[];do r.push(t.call(this));while(!this.expectOptionalToken(n));return r}delimitedMany(e,t){this.expectOptionalToken(e);let n=[];do n.push(t.call(this));while(this.expectOptionalToken(e));return n}advanceLexer(){let{maxTokens:e}=this._options,t=this._lexer.advance();if(e!==void 0&&t.kind!==a.EOF&&(++this._tokenCounter,this._tokenCounter>e))throw f(this._lexer.source,t.start,`Document contains more that ${e} tokens. Parsing aborted.`)}};function P(e){let t=e.value;return Ie(e.kind)+(t!=null?` "${t}"`:"")}function Ie(e){return At(e)?`"${e}"`:e}function $t(e,t){let n=new SyntaxError(e+" ("+t.loc.start.line+":"+t.loc.start.column+")");return Object.assign(n,t)}var Gt=$t;function Yt(e){let t=[],{startToken:n,endToken:r}=e.loc;for(let i=n;i!==r;i=i.next)i.kind==="Comment"&&t.push({...i,loc:{start:i.start,end:i.end}});return t}var Jt={allowLegacyFragmentVariables:!0};function qt(e){if((e==null?void 0:e.name)==="GraphQLError"){let{message:t,locations:[n]}=e;return Gt(t,{loc:{start:n},cause:e})}return e}function Qt(e){let t;try{t=jt(e,Jt)}catch(n){throw qt(n)}return t.comments=Yt(t),t}var Xt={parse:Qt,astFormat:"graphql",hasPragma:et,locStart:ae,locEnd:oe},ve={graphql:ct},zt=ee;exports.default=zt;exports.languages=ce;exports.options=ue;exports.parsers=q;exports.printers=ve; |
Sorry, the diff of this file is too big to display
| "use strict";const ke=require("./module-ATX1OK1I.cjs"),Y=Symbol(),mt={create:It,match:Ye};function Me(r,e){return{[Y]:r,...e}}function qe(r,e){return r[Y]===e}function It(r){const t=Object.keys(r).map(s=>[s,dt(s)]);return Object.fromEntries(t)}function dt(r){return e.is=t,e;function e(s){return Me(r,s)}function t(s){return qe(s,r)}}function Ye(r,e){return e[r[Y]](r)}function Lt(r){return r!=null}function Nt(r){throw null}var ae={exports:{}};const gt="2.0.0",Be=256,At=Number.MAX_SAFE_INTEGER||9007199254740991,Ot=16,vt=Be-6,St=["major","premajor","minor","preminor","patch","prepatch","prerelease"];var B={MAX_LENGTH:Be,MAX_SAFE_COMPONENT_LENGTH:Ot,MAX_SAFE_BUILD_LENGTH:vt,MAX_SAFE_INTEGER:At,RELEASE_TYPES:St,SEMVER_SPEC_VERSION:gt,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2};const Tt=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...r)=>console.error("SEMVER",...r):()=>{};var W=Tt;(function(r,e){const{MAX_SAFE_COMPONENT_LENGTH:t,MAX_SAFE_BUILD_LENGTH:s,MAX_LENGTH:a}=B,o=W;e=r.exports={};const c=e.re=[],d=e.safeRe=[],n=e.src=[],i=e.t={};let u=0;const $="[a-zA-Z0-9-]",A=[["\\s",1],["\\d",a],[$,s]],p=D=>{for(const[w,F]of A)D=D.split(`${w}*`).join(`${w}{0,${F}}`).split(`${w}+`).join(`${w}{1,${F}}`);return D},m=(D,w,F)=>{const J=p(w),v=u++;o(D,v,w),i[D]=v,n[v]=w,c[v]=new RegExp(w,F?"g":void 0),d[v]=new RegExp(J,F?"g":void 0)};m("NUMERICIDENTIFIER","0|[1-9]\\d*"),m("NUMERICIDENTIFIERLOOSE","\\d+"),m("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${$}*`),m("MAINVERSION",`(${n[i.NUMERICIDENTIFIER]})\\.(${n[i.NUMERICIDENTIFIER]})\\.(${n[i.NUMERICIDENTIFIER]})`),m("MAINVERSIONLOOSE",`(${n[i.NUMERICIDENTIFIERLOOSE]})\\.(${n[i.NUMERICIDENTIFIERLOOSE]})\\.(${n[i.NUMERICIDENTIFIERLOOSE]})`),m("PRERELEASEIDENTIFIER",`(?:${n[i.NUMERICIDENTIFIER]}|${n[i.NONNUMERICIDENTIFIER]})`),m("PRERELEASEIDENTIFIERLOOSE",`(?:${n[i.NUMERICIDENTIFIERLOOSE]}|${n[i.NONNUMERICIDENTIFIER]})`),m("PRERELEASE",`(?:-(${n[i.PRERELEASEIDENTIFIER]}(?:\\.${n[i.PRERELEASEIDENTIFIER]})*))`),m("PRERELEASELOOSE",`(?:-?(${n[i.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${n[i.PRERELEASEIDENTIFIERLOOSE]})*))`),m("BUILDIDENTIFIER",`${$}+`),m("BUILD",`(?:\\+(${n[i.BUILDIDENTIFIER]}(?:\\.${n[i.BUILDIDENTIFIER]})*))`),m("FULLPLAIN",`v?${n[i.MAINVERSION]}${n[i.PRERELEASE]}?${n[i.BUILD]}?`),m("FULL",`^${n[i.FULLPLAIN]}$`),m("LOOSEPLAIN",`[v=\\s]*${n[i.MAINVERSIONLOOSE]}${n[i.PRERELEASELOOSE]}?${n[i.BUILD]}?`),m("LOOSE",`^${n[i.LOOSEPLAIN]}$`),m("GTLT","((?:<|>)?=?)"),m("XRANGEIDENTIFIERLOOSE",`${n[i.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),m("XRANGEIDENTIFIER",`${n[i.NUMERICIDENTIFIER]}|x|X|\\*`),m("XRANGEPLAIN",`[v=\\s]*(${n[i.XRANGEIDENTIFIER]})(?:\\.(${n[i.XRANGEIDENTIFIER]})(?:\\.(${n[i.XRANGEIDENTIFIER]})(?:${n[i.PRERELEASE]})?${n[i.BUILD]}?)?)?`),m("XRANGEPLAINLOOSE",`[v=\\s]*(${n[i.XRANGEIDENTIFIERLOOSE]})(?:\\.(${n[i.XRANGEIDENTIFIERLOOSE]})(?:\\.(${n[i.XRANGEIDENTIFIERLOOSE]})(?:${n[i.PRERELEASELOOSE]})?${n[i.BUILD]}?)?)?`),m("XRANGE",`^${n[i.GTLT]}\\s*${n[i.XRANGEPLAIN]}$`),m("XRANGELOOSE",`^${n[i.GTLT]}\\s*${n[i.XRANGEPLAINLOOSE]}$`),m("COERCEPLAIN",`(^|[^\\d])(\\d{1,${t}})(?:\\.(\\d{1,${t}}))?(?:\\.(\\d{1,${t}}))?`),m("COERCE",`${n[i.COERCEPLAIN]}(?:$|[^\\d])`),m("COERCEFULL",n[i.COERCEPLAIN]+`(?:${n[i.PRERELEASE]})?(?:${n[i.BUILD]})?(?:$|[^\\d])`),m("COERCERTL",n[i.COERCE],!0),m("COERCERTLFULL",n[i.COERCEFULL],!0),m("LONETILDE","(?:~>?)"),m("TILDETRIM",`(\\s*)${n[i.LONETILDE]}\\s+`,!0),e.tildeTrimReplace="$1~",m("TILDE",`^${n[i.LONETILDE]}${n[i.XRANGEPLAIN]}$`),m("TILDELOOSE",`^${n[i.LONETILDE]}${n[i.XRANGEPLAINLOOSE]}$`),m("LONECARET","(?:\\^)"),m("CARETTRIM",`(\\s*)${n[i.LONECARET]}\\s+`,!0),e.caretTrimReplace="$1^",m("CARET",`^${n[i.LONECARET]}${n[i.XRANGEPLAIN]}$`),m("CARETLOOSE",`^${n[i.LONECARET]}${n[i.XRANGEPLAINLOOSE]}$`),m("COMPARATORLOOSE",`^${n[i.GTLT]}\\s*(${n[i.LOOSEPLAIN]})$|^$`),m("COMPARATOR",`^${n[i.GTLT]}\\s*(${n[i.FULLPLAIN]})$|^$`),m("COMPARATORTRIM",`(\\s*)${n[i.GTLT]}\\s*(${n[i.LOOSEPLAIN]}|${n[i.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace="$1$2$3",m("HYPHENRANGE",`^\\s*(${n[i.XRANGEPLAIN]})\\s+-\\s+(${n[i.XRANGEPLAIN]})\\s*$`),m("HYPHENRANGELOOSE",`^\\s*(${n[i.XRANGEPLAINLOOSE]})\\s+-\\s+(${n[i.XRANGEPLAINLOOSE]})\\s*$`),m("STAR","(<|>)?=?\\s*\\*"),m("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),m("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(ae,ae.exports);var b=ae.exports;const _t=Object.freeze({loose:!0}),wt=Object.freeze({}),Ct=r=>r?typeof r!="object"?_t:r:wt;var ce=Ct;const me=/^[0-9]+$/,We=(r,e)=>{const t=me.test(r),s=me.test(e);return t&&s&&(r=+r,e=+e),r===e?0:t&&!s?-1:s&&!t?1:r<e?-1:1},Pt=(r,e)=>We(e,r);var ze={compareIdentifiers:We,rcompareIdentifiers:Pt};const U=W,{MAX_LENGTH:Ie,MAX_SAFE_INTEGER:H}=B,{safeRe:de,t:Le}=b,Gt=ce,{compareIdentifiers:j}=ze;let Dt=class G{constructor(e,t){if(t=Gt(t),e instanceof G){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if(typeof e!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>Ie)throw new TypeError(`version is longer than ${Ie} characters`);U("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const s=e.trim().match(t.loose?de[Le.LOOSE]:de[Le.FULL]);if(!s)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+s[1],this.minor=+s[2],this.patch=+s[3],this.major>H||this.major<0)throw new TypeError("Invalid major version");if(this.minor>H||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>H||this.patch<0)throw new TypeError("Invalid patch version");s[4]?this.prerelease=s[4].split(".").map(a=>{if(/^[0-9]+$/.test(a)){const o=+a;if(o>=0&&o<H)return o}return a}):this.prerelease=[],this.build=s[5]?s[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(U("SemVer.compare",this.version,this.options,e),!(e instanceof G)){if(typeof e=="string"&&e===this.version)return 0;e=new G(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof G||(e=new G(e,this.options)),j(this.major,e.major)||j(this.minor,e.minor)||j(this.patch,e.patch)}comparePre(e){if(e instanceof G||(e=new G(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{const s=this.prerelease[t],a=e.prerelease[t];if(U("prerelease compare",t,s,a),s===void 0&&a===void 0)return 0;if(a===void 0)return 1;if(s===void 0)return-1;if(s===a)continue;return j(s,a)}while(++t)}compareBuild(e){e instanceof G||(e=new G(e,this.options));let t=0;do{const s=this.build[t],a=e.build[t];if(U("build compare",t,s,a),s===void 0&&a===void 0)return 0;if(a===void 0)return 1;if(s===void 0)return-1;if(s===a)continue;return j(s,a)}while(++t)}inc(e,t,s){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,s);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,s);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,s),this.inc("pre",t,s);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",t,s),this.inc("pre",t,s);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{const a=Number(s)?1:0;if(!t&&s===!1)throw new Error("invalid increment argument: identifier is empty");if(this.prerelease.length===0)this.prerelease=[a];else{let o=this.prerelease.length;for(;--o>=0;)typeof this.prerelease[o]=="number"&&(this.prerelease[o]++,o=-2);if(o===-1){if(t===this.prerelease.join(".")&&s===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(a)}}if(t){let o=[t,a];s===!1&&(o=[t]),j(this.prerelease[0],t)===0?isNaN(this.prerelease[1])&&(this.prerelease=o):this.prerelease=o}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};var T=Dt;const Ne=T,yt=(r,e,t=!1)=>{if(r instanceof Ne)return r;try{return new Ne(r,e)}catch(s){if(!t)return null;throw s}};var X=yt;const Ft=X,jt=(r,e)=>{const t=Ft(r,e);return t?t.version:null};var Xt=jt;const xt=X,Vt=(r,e)=>{const t=xt(r.trim().replace(/^[=v]+/,""),e);return t?t.version:null};var bt=Vt;const ge=T,Ut=(r,e,t,s,a)=>{typeof t=="string"&&(a=s,s=t,t=void 0);try{return new ge(r instanceof ge?r.version:r,t).inc(e,s,a).version}catch{return null}};var Ht=Ut;const Ae=X,kt=(r,e)=>{const t=Ae(r,null,!0),s=Ae(e,null,!0),a=t.compare(s);if(a===0)return null;const o=a>0,c=o?t:s,d=o?s:t,n=!!c.prerelease.length;if(!!d.prerelease.length&&!n)return!d.patch&&!d.minor?"major":c.patch?"patch":c.minor?"minor":"major";const u=n?"pre":"";return t.major!==s.major?u+"major":t.minor!==s.minor?u+"minor":t.patch!==s.patch?u+"patch":"prerelease"};var Mt=kt;const qt=T,Yt=(r,e)=>new qt(r,e).major;var Bt=Yt;const Wt=T,zt=(r,e)=>new Wt(r,e).minor;var Kt=zt;const Zt=T,Jt=(r,e)=>new Zt(r,e).patch;var Qt=Jt;const er=X,tr=(r,e)=>{const t=er(r,e);return t&&t.prerelease.length?t.prerelease:null};var rr=tr;const Oe=T,sr=(r,e,t)=>new Oe(r,t).compare(new Oe(e,t));var C=sr;const nr=C,ir=(r,e,t)=>nr(e,r,t);var ar=ir;const or=C,cr=(r,e)=>or(r,e,!0);var lr=cr;const ve=T,ur=(r,e,t)=>{const s=new ve(r,t),a=new ve(e,t);return s.compare(a)||s.compareBuild(a)};var le=ur;const fr=le,Er=(r,e)=>r.sort((t,s)=>fr(t,s,e));var hr=Er;const $r=le,pr=(r,e)=>r.sort((t,s)=>$r(s,t,e));var Rr=pr;const mr=C,Ir=(r,e,t)=>mr(r,e,t)>0;var z=Ir;const dr=C,Lr=(r,e,t)=>dr(r,e,t)<0;var ue=Lr;const Nr=C,gr=(r,e,t)=>Nr(r,e,t)===0;var Ke=gr;const Ar=C,Or=(r,e,t)=>Ar(r,e,t)!==0;var Ze=Or;const vr=C,Sr=(r,e,t)=>vr(r,e,t)>=0;var fe=Sr;const Tr=C,_r=(r,e,t)=>Tr(r,e,t)<=0;var Ee=_r;const wr=Ke,Cr=Ze,Pr=z,Gr=fe,Dr=ue,yr=Ee,Fr=(r,e,t,s)=>{switch(e){case"===":return typeof r=="object"&&(r=r.version),typeof t=="object"&&(t=t.version),r===t;case"!==":return typeof r=="object"&&(r=r.version),typeof t=="object"&&(t=t.version),r!==t;case"":case"=":case"==":return wr(r,t,s);case"!=":return Cr(r,t,s);case">":return Pr(r,t,s);case">=":return Gr(r,t,s);case"<":return Dr(r,t,s);case"<=":return yr(r,t,s);default:throw new TypeError(`Invalid operator: ${e}`)}};var Je=Fr;const jr=T,Xr=X,{safeRe:k,t:M}=b,xr=(r,e)=>{if(r instanceof jr)return r;if(typeof r=="number"&&(r=String(r)),typeof r!="string")return null;e=e||{};let t=null;if(!e.rtl)t=r.match(e.includePrerelease?k[M.COERCEFULL]:k[M.COERCE]);else{const n=e.includePrerelease?k[M.COERCERTLFULL]:k[M.COERCERTL];let i;for(;(i=n.exec(r))&&(!t||t.index+t[0].length!==r.length);)(!t||i.index+i[0].length!==t.index+t[0].length)&&(t=i),n.lastIndex=i.index+i[1].length+i[2].length;n.lastIndex=-1}if(t===null)return null;const s=t[2],a=t[3]||"0",o=t[4]||"0",c=e.includePrerelease&&t[5]?`-${t[5]}`:"",d=e.includePrerelease&&t[6]?`+${t[6]}`:"";return Xr(`${s}.${a}.${o}${c}${d}`,e)};var Vr=xr;class br{constructor(){this.max=1e3,this.map=new Map}get(e){const t=this.map.get(e);if(t!==void 0)return this.map.delete(e),this.map.set(e,t),t}delete(e){return this.map.delete(e)}set(e,t){if(!this.delete(e)&&t!==void 0){if(this.map.size>=this.max){const a=this.map.keys().next().value;this.delete(a)}this.map.set(e,t)}return this}}var Ur=br,Q,Se;function P(){if(Se)return Q;Se=1;const r=/\s+/g;class e{constructor(l,R){if(R=a(R),l instanceof e)return l.loose===!!R.loose&&l.includePrerelease===!!R.includePrerelease?l:new e(l.raw,R);if(l instanceof o)return this.raw=l.value,this.set=[[l]],this.formatted=void 0,this;if(this.options=R,this.loose=!!R.loose,this.includePrerelease=!!R.includePrerelease,this.raw=l.trim().replace(r," "),this.set=this.raw.split("||").map(E=>this.parseRange(E.trim())).filter(E=>E.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const E=this.set[0];if(this.set=this.set.filter(I=>!D(I[0])),this.set.length===0)this.set=[E];else if(this.set.length>1){for(const I of this.set)if(I.length===1&&w(I[0])){this.set=[I];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let l=0;l<this.set.length;l++){l>0&&(this.formatted+="||");const R=this.set[l];for(let E=0;E<R.length;E++)E>0&&(this.formatted+=" "),this.formatted+=R[E].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(l){const E=((this.options.includePrerelease&&p)|(this.options.loose&&m))+":"+l,I=s.get(E);if(I)return I;const h=this.options.loose,L=h?n[i.HYPHENRANGELOOSE]:n[i.HYPHENRANGE];l=l.replace(L,pt(this.options.includePrerelease)),c("hyphen replace",l),l=l.replace(n[i.COMPARATORTRIM],u),c("comparator trim",l),l=l.replace(n[i.TILDETRIM],$),c("tilde trim",l),l=l.replace(n[i.CARETTRIM],A),c("caret trim",l);let g=l.split(" ").map(S=>J(S,this.options)).join(" ").split(/\s+/).map(S=>$t(S,this.options));h&&(g=g.filter(S=>(c("loose invalid filter",S,this.options),!!S.match(n[i.COMPARATORLOOSE])))),c("range list",g);const N=new Map,O=g.map(S=>new o(S,this.options));for(const S of O){if(D(S))return[S];N.set(S.value,S)}N.size>1&&N.has("")&&N.delete("");const _=[...N.values()];return s.set(E,_),_}intersects(l,R){if(!(l instanceof e))throw new TypeError("a Range is required");return this.set.some(E=>F(E,R)&&l.set.some(I=>F(I,R)&&E.every(h=>I.every(L=>h.intersects(L,R)))))}test(l){if(!l)return!1;if(typeof l=="string")try{l=new d(l,this.options)}catch{return!1}for(let R=0;R<this.set.length;R++)if(Rt(this.set[R],l,this.options))return!0;return!1}}Q=e;const t=Ur,s=new t,a=ce,o=K(),c=W,d=T,{safeRe:n,t:i,comparatorTrimReplace:u,tildeTrimReplace:$,caretTrimReplace:A}=b,{FLAG_INCLUDE_PRERELEASE:p,FLAG_LOOSE:m}=B,D=f=>f.value==="<0.0.0-0",w=f=>f.value==="",F=(f,l)=>{let R=!0;const E=f.slice();let I=E.pop();for(;R&&E.length;)R=E.every(h=>I.intersects(h,l)),I=E.pop();return R},J=(f,l)=>(c("comp",f,l),f=lt(f,l),c("caret",f),f=ot(f,l),c("tildes",f),f=ft(f,l),c("xrange",f),f=ht(f,l),c("stars",f),f),v=f=>!f||f.toLowerCase()==="x"||f==="*",ot=(f,l)=>f.trim().split(/\s+/).map(R=>ct(R,l)).join(" "),ct=(f,l)=>{const R=l.loose?n[i.TILDELOOSE]:n[i.TILDE];return f.replace(R,(E,I,h,L,g)=>{c("tilde",f,E,I,h,L,g);let N;return v(I)?N="":v(h)?N=`>=${I}.0.0 <${+I+1}.0.0-0`:v(L)?N=`>=${I}.${h}.0 <${I}.${+h+1}.0-0`:g?(c("replaceTilde pr",g),N=`>=${I}.${h}.${L}-${g} <${I}.${+h+1}.0-0`):N=`>=${I}.${h}.${L} <${I}.${+h+1}.0-0`,c("tilde return",N),N})},lt=(f,l)=>f.trim().split(/\s+/).map(R=>ut(R,l)).join(" "),ut=(f,l)=>{c("caret",f,l);const R=l.loose?n[i.CARETLOOSE]:n[i.CARET],E=l.includePrerelease?"-0":"";return f.replace(R,(I,h,L,g,N)=>{c("caret",f,I,h,L,g,N);let O;return v(h)?O="":v(L)?O=`>=${h}.0.0${E} <${+h+1}.0.0-0`:v(g)?h==="0"?O=`>=${h}.${L}.0${E} <${h}.${+L+1}.0-0`:O=`>=${h}.${L}.0${E} <${+h+1}.0.0-0`:N?(c("replaceCaret pr",N),h==="0"?L==="0"?O=`>=${h}.${L}.${g}-${N} <${h}.${L}.${+g+1}-0`:O=`>=${h}.${L}.${g}-${N} <${h}.${+L+1}.0-0`:O=`>=${h}.${L}.${g}-${N} <${+h+1}.0.0-0`):(c("no pr"),h==="0"?L==="0"?O=`>=${h}.${L}.${g}${E} <${h}.${L}.${+g+1}-0`:O=`>=${h}.${L}.${g}${E} <${h}.${+L+1}.0-0`:O=`>=${h}.${L}.${g} <${+h+1}.0.0-0`),c("caret return",O),O})},ft=(f,l)=>(c("replaceXRanges",f,l),f.split(/\s+/).map(R=>Et(R,l)).join(" ")),Et=(f,l)=>{f=f.trim();const R=l.loose?n[i.XRANGELOOSE]:n[i.XRANGE];return f.replace(R,(E,I,h,L,g,N)=>{c("xRange",f,E,I,h,L,g,N);const O=v(h),_=O||v(L),S=_||v(g),x=S;return I==="="&&x&&(I=""),N=l.includePrerelease?"-0":"",O?I===">"||I==="<"?E="<0.0.0-0":E="*":I&&x?(_&&(L=0),g=0,I===">"?(I=">=",_?(h=+h+1,L=0,g=0):(L=+L+1,g=0)):I==="<="&&(I="<",_?h=+h+1:L=+L+1),I==="<"&&(N="-0"),E=`${I+h}.${L}.${g}${N}`):_?E=`>=${h}.0.0${N} <${+h+1}.0.0-0`:S&&(E=`>=${h}.${L}.0${N} <${h}.${+L+1}.0-0`),c("xRange return",E),E})},ht=(f,l)=>(c("replaceStars",f,l),f.trim().replace(n[i.STAR],"")),$t=(f,l)=>(c("replaceGTE0",f,l),f.trim().replace(n[l.includePrerelease?i.GTE0PRE:i.GTE0],"")),pt=f=>(l,R,E,I,h,L,g,N,O,_,S,x)=>(v(E)?R="":v(I)?R=`>=${E}.0.0${f?"-0":""}`:v(h)?R=`>=${E}.${I}.0${f?"-0":""}`:L?R=`>=${R}`:R=`>=${R}${f?"-0":""}`,v(O)?N="":v(_)?N=`<${+O+1}.0.0-0`:v(S)?N=`<${O}.${+_+1}.0-0`:x?N=`<=${O}.${_}.${S}-${x}`:f?N=`<${O}.${_}.${+S+1}-0`:N=`<=${N}`,`${R} ${N}`.trim()),Rt=(f,l,R)=>{for(let E=0;E<f.length;E++)if(!f[E].test(l))return!1;if(l.prerelease.length&&!R.includePrerelease){for(let E=0;E<f.length;E++)if(c(f[E].semver),f[E].semver!==o.ANY&&f[E].semver.prerelease.length>0){const I=f[E].semver;if(I.major===l.major&&I.minor===l.minor&&I.patch===l.patch)return!0}return!1}return!0};return Q}var ee,Te;function K(){if(Te)return ee;Te=1;const r=Symbol("SemVer ANY");class e{static get ANY(){return r}constructor(u,$){if($=t($),u instanceof e){if(u.loose===!!$.loose)return u;u=u.value}u=u.trim().split(/\s+/).join(" "),c("comparator",u,$),this.options=$,this.loose=!!$.loose,this.parse(u),this.semver===r?this.value="":this.value=this.operator+this.semver.version,c("comp",this)}parse(u){const $=this.options.loose?s[a.COMPARATORLOOSE]:s[a.COMPARATOR],A=u.match($);if(!A)throw new TypeError(`Invalid comparator: ${u}`);this.operator=A[1]!==void 0?A[1]:"",this.operator==="="&&(this.operator=""),A[2]?this.semver=new d(A[2],this.options.loose):this.semver=r}toString(){return this.value}test(u){if(c("Comparator.test",u,this.options.loose),this.semver===r||u===r)return!0;if(typeof u=="string")try{u=new d(u,this.options)}catch{return!1}return o(u,this.operator,this.semver,this.options)}intersects(u,$){if(!(u instanceof e))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new n(u.value,$).test(this.value):u.operator===""?u.value===""?!0:new n(this.value,$).test(u.semver):($=t($),$.includePrerelease&&(this.value==="<0.0.0-0"||u.value==="<0.0.0-0")||!$.includePrerelease&&(this.value.startsWith("<0.0.0")||u.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&u.operator.startsWith(">")||this.operator.startsWith("<")&&u.operator.startsWith("<")||this.semver.version===u.semver.version&&this.operator.includes("=")&&u.operator.includes("=")||o(this.semver,"<",u.semver,$)&&this.operator.startsWith(">")&&u.operator.startsWith("<")||o(this.semver,">",u.semver,$)&&this.operator.startsWith("<")&&u.operator.startsWith(">")))}}ee=e;const t=ce,{safeRe:s,t:a}=b,o=Je,c=W,d=T,n=P();return ee}const Hr=P(),kr=(r,e,t)=>{try{e=new Hr(e,t)}catch{return!1}return e.test(r)};var Z=kr;const Mr=P(),qr=(r,e)=>new Mr(r,e).set.map(t=>t.map(s=>s.value).join(" ").trim().split(" "));var Yr=qr;const Br=T,Wr=P(),zr=(r,e,t)=>{let s=null,a=null,o=null;try{o=new Wr(e,t)}catch{return null}return r.forEach(c=>{o.test(c)&&(!s||a.compare(c)===-1)&&(s=c,a=new Br(s,t))}),s};var Kr=zr;const Zr=T,Jr=P(),Qr=(r,e,t)=>{let s=null,a=null,o=null;try{o=new Jr(e,t)}catch{return null}return r.forEach(c=>{o.test(c)&&(!s||a.compare(c)===1)&&(s=c,a=new Zr(s,t))}),s};var es=Qr;const te=T,ts=P(),_e=z,rs=(r,e)=>{r=new ts(r,e);let t=new te("0.0.0");if(r.test(t)||(t=new te("0.0.0-0"),r.test(t)))return t;t=null;for(let s=0;s<r.set.length;++s){const a=r.set[s];let o=null;a.forEach(c=>{const d=new te(c.semver.version);switch(c.operator){case">":d.prerelease.length===0?d.patch++:d.prerelease.push(0),d.raw=d.format();case"":case">=":(!o||_e(d,o))&&(o=d);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${c.operator}`)}}),o&&(!t||_e(t,o))&&(t=o)}return t&&r.test(t)?t:null};var ss=rs;const ns=P(),is=(r,e)=>{try{return new ns(r,e).range||"*"}catch{return null}};var as=is;const os=T,Qe=K(),{ANY:cs}=Qe,ls=P(),us=Z,we=z,Ce=ue,fs=Ee,Es=fe,hs=(r,e,t,s)=>{r=new os(r,s),e=new ls(e,s);let a,o,c,d,n;switch(t){case">":a=we,o=fs,c=Ce,d=">",n=">=";break;case"<":a=Ce,o=Es,c=we,d="<",n="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(us(r,e,s))return!1;for(let i=0;i<e.set.length;++i){const u=e.set[i];let $=null,A=null;if(u.forEach(p=>{p.semver===cs&&(p=new Qe(">=0.0.0")),$=$||p,A=A||p,a(p.semver,$.semver,s)?$=p:c(p.semver,A.semver,s)&&(A=p)}),$.operator===d||$.operator===n||(!A.operator||A.operator===d)&&o(r,A.semver))return!1;if(A.operator===n&&c(r,A.semver))return!1}return!0};var he=hs;const $s=he,ps=(r,e,t)=>$s(r,e,">",t);var Rs=ps;const ms=he,Is=(r,e,t)=>ms(r,e,"<",t);var ds=Is;const Pe=P(),Ls=(r,e,t)=>(r=new Pe(r,t),e=new Pe(e,t),r.intersects(e,t));var Ns=Ls;const gs=Z,As=C;var Os=(r,e,t)=>{const s=[];let a=null,o=null;const c=r.sort((u,$)=>As(u,$,t));for(const u of c)gs(u,e,t)?(o=u,a||(a=u)):(o&&s.push([a,o]),o=null,a=null);a&&s.push([a,null]);const d=[];for(const[u,$]of s)u===$?d.push(u):!$&&u===c[0]?d.push("*"):$?u===c[0]?d.push(`<=${$}`):d.push(`${u} - ${$}`):d.push(`>=${u}`);const n=d.join(" || "),i=typeof e.raw=="string"?e.raw:String(e);return n.length<i.length?n:e};const Ge=P(),$e=K(),{ANY:re}=$e,V=Z,pe=C,vs=(r,e,t={})=>{if(r===e)return!0;r=new Ge(r,t),e=new Ge(e,t);let s=!1;e:for(const a of r.set){for(const o of e.set){const c=Ts(a,o,t);if(s=s||c!==null,c)continue e}if(s)return!1}return!0},Ss=[new $e(">=0.0.0-0")],De=[new $e(">=0.0.0")],Ts=(r,e,t)=>{if(r===e)return!0;if(r.length===1&&r[0].semver===re){if(e.length===1&&e[0].semver===re)return!0;t.includePrerelease?r=Ss:r=De}if(e.length===1&&e[0].semver===re){if(t.includePrerelease)return!0;e=De}const s=new Set;let a,o;for(const p of r)p.operator===">"||p.operator===">="?a=ye(a,p,t):p.operator==="<"||p.operator==="<="?o=Fe(o,p,t):s.add(p.semver);if(s.size>1)return null;let c;if(a&&o){if(c=pe(a.semver,o.semver,t),c>0)return null;if(c===0&&(a.operator!==">="||o.operator!=="<="))return null}for(const p of s){if(a&&!V(p,String(a),t)||o&&!V(p,String(o),t))return null;for(const m of e)if(!V(p,String(m),t))return!1;return!0}let d,n,i,u,$=o&&!t.includePrerelease&&o.semver.prerelease.length?o.semver:!1,A=a&&!t.includePrerelease&&a.semver.prerelease.length?a.semver:!1;$&&$.prerelease.length===1&&o.operator==="<"&&$.prerelease[0]===0&&($=!1);for(const p of e){if(u=u||p.operator===">"||p.operator===">=",i=i||p.operator==="<"||p.operator==="<=",a){if(A&&p.semver.prerelease&&p.semver.prerelease.length&&p.semver.major===A.major&&p.semver.minor===A.minor&&p.semver.patch===A.patch&&(A=!1),p.operator===">"||p.operator===">="){if(d=ye(a,p,t),d===p&&d!==a)return!1}else if(a.operator===">="&&!V(a.semver,String(p),t))return!1}if(o){if($&&p.semver.prerelease&&p.semver.prerelease.length&&p.semver.major===$.major&&p.semver.minor===$.minor&&p.semver.patch===$.patch&&($=!1),p.operator==="<"||p.operator==="<="){if(n=Fe(o,p,t),n===p&&n!==o)return!1}else if(o.operator==="<="&&!V(o.semver,String(p),t))return!1}if(!p.operator&&(o||a)&&c!==0)return!1}return!(a&&i&&!o&&c!==0||o&&u&&!a&&c!==0||A||$)},ye=(r,e,t)=>{if(!r)return e;const s=pe(r.semver,e.semver,t);return s>0?r:s<0||e.operator===">"&&r.operator===">="?e:r},Fe=(r,e,t)=>{if(!r)return e;const s=pe(r.semver,e.semver,t);return s<0?r:s>0||e.operator==="<"&&r.operator==="<="?e:r};var _s=vs;const se=b,je=B,ws=T,Xe=ze,Cs=X,Ps=Xt,Gs=bt,Ds=Ht,ys=Mt,Fs=Bt,js=Kt,Xs=Qt,xs=rr,Vs=C,bs=ar,Us=lr,Hs=le,ks=hr,Ms=Rr,qs=z,Ys=ue,Bs=Ke,Ws=Ze,zs=fe,Ks=Ee,Zs=Je,Js=Vr,Qs=K(),en=P(),tn=Z,rn=Yr,sn=Kr,nn=es,an=ss,on=as,cn=he,ln=Rs,un=ds,fn=Ns,En=Os,hn=_s;var et={parse:Cs,valid:Ps,clean:Gs,inc:Ds,diff:ys,major:Fs,minor:js,patch:Xs,prerelease:xs,compare:Vs,rcompare:bs,compareLoose:Us,compareBuild:Hs,sort:ks,rsort:Ms,gt:qs,lt:Ys,eq:Bs,neq:Ws,gte:zs,lte:Ks,cmp:Zs,coerce:Js,Comparator:Qs,Range:en,satisfies:tn,toComparators:rn,maxSatisfying:sn,minSatisfying:nn,minVersion:an,validRange:on,outside:cn,gtr:ln,ltr:un,intersects:fn,simplifyRange:En,subset:hn,SemVer:ws,re:se.re,src:se.src,tokens:se.t,SEMVER_SPEC_VERSION:je.SEMVER_SPEC_VERSION,RELEASE_TYPES:je.RELEASE_TYPES,compareIdentifiers:Xe.compareIdentifiers,rcompareIdentifiers:Xe.rcompareIdentifiers};const $n=ke.getDefaultExportFromCjs(et);var pn=tt;function tt(r,e,t){r instanceof RegExp&&(r=xe(r,t)),e instanceof RegExp&&(e=xe(e,t));var s=rt(r,e,t);return s&&{start:s[0],end:s[1],pre:t.slice(0,s[0]),body:t.slice(s[0]+r.length,s[1]),post:t.slice(s[1]+e.length)}}function xe(r,e){var t=e.match(r);return t?t[0]:null}tt.range=rt;function rt(r,e,t){var s,a,o,c,d,n=t.indexOf(r),i=t.indexOf(e,n+1),u=n;if(n>=0&&i>0){if(r===e)return[n,i];for(s=[],o=t.length;u>=0&&!d;)u==n?(s.push(u),n=t.indexOf(r,u+1)):s.length==1?d=[s.pop(),i]:(a=s.pop(),a<o&&(o=a,c=i),i=t.indexOf(e,u+1)),u=n<i&&n>=0?n:i;s.length&&(d=[o,c])}return d}function Ve(r){return Array.isArray(r)?r:[r]}const oe="",be=" ",ne="\\",Rn=/^\s+$/,mn=/(?:[^\\]|^)\\$/,In=/^\\!/,dn=/^\\#/,Ln=/\r?\n/g,Nn=/^\.*\/|^\.+$/,ie="/";let st="node-ignore";typeof Symbol<"u"&&(st=Symbol.for("node-ignore"));const Ue=st,gn=(r,e,t)=>Object.defineProperty(r,e,{value:t}),An=/([0-z])-([0-z])/g,nt=()=>!1,On=r=>r.replace(An,(e,t,s)=>t.charCodeAt(0)<=s.charCodeAt(0)?e:oe),vn=r=>{const{length:e}=r;return r.slice(0,e-e%2)},Sn=[[/^\uFEFF/,()=>oe],[/((?:\\\\)*?)(\\?\s+)$/,(r,e,t)=>e+(t.indexOf("\\")===0?be:oe)],[/(\\+?)\s/g,(r,e)=>{const{length:t}=e;return e.slice(0,t-t%2)+be}],[/[\\$.|*+(){^]/g,r=>`\\${r}`],[/(?!\\)\?/g,()=>"[^/]"],[/^\//,()=>"^"],[/\//g,()=>"\\/"],[/^\^*\\\*\\\*\\\//,()=>"^(?:.*\\/)?"],[/^(?=[^^])/,function(){return/\/(?!$)/.test(this)?"^":"(?:^|\\/)"}],[/\\\/\\\*\\\*(?=\\\/|$)/g,(r,e,t)=>e+6<t.length?"(?:\\/[^\\/]+)*":"\\/.+"],[/(^|[^\\]+)(\\\*)+(?=.+)/g,(r,e,t)=>{const s=t.replace(/\\\*/g,"[^\\/]*");return e+s}],[/\\\\\\(?=[$.|*+(){^])/g,()=>ne],[/\\\\/g,()=>ne],[/(\\)?\[([^\]/]*?)(\\*)($|\])/g,(r,e,t,s,a)=>e===ne?`\\[${t}${vn(s)}${a}`:a==="]"&&s.length%2===0?`[${On(t)}${s}]`:"[]"],[/(?:[^*])$/,r=>/\/$/.test(r)?`${r}$`:`${r}(?=$|\\/$)`],[/(\^|\\\/)?\\\*$/,(r,e)=>`${e?`${e}[^/]+`:"[^/]*"}(?=$|\\/$)`]],He=Object.create(null),Tn=(r,e)=>{let t=He[r];return t||(t=Sn.reduce((s,[a,o])=>s.replace(a,o.bind(r)),r),He[r]=t),e?new RegExp(t,"i"):new RegExp(t)},Re=r=>typeof r=="string",_n=r=>r&&Re(r)&&!Rn.test(r)&&!mn.test(r)&&r.indexOf("#")!==0,wn=r=>r.split(Ln);class Cn{constructor(e,t,s,a){this.origin=e,this.pattern=t,this.negative=s,this.regex=a}}const Pn=(r,e)=>{const t=r;let s=!1;r.indexOf("!")===0&&(s=!0,r=r.substr(1)),r=r.replace(In,"!").replace(dn,"#");const a=Tn(r,e);return new Cn(t,r,s,a)},Gn=(r,e)=>{throw new e(r)},y=(r,e,t)=>Re(r)?r?y.isNotRelative(r)?t(`path should be a \`path.relative()\`d string, but got "${e}"`,RangeError):!0:t("path must not be empty",TypeError):t(`path must be a string, but got \`${e}\``,TypeError),it=r=>Nn.test(r);y.isNotRelative=it;y.convert=r=>r;class Dn{constructor({ignorecase:e=!0,ignoreCase:t=e,allowRelativePaths:s=!1}={}){gn(this,Ue,!0),this._rules=[],this._ignoreCase=t,this._allowRelativePaths=s,this._initCache()}_initCache(){this._ignoreCache=Object.create(null),this._testCache=Object.create(null)}_addPattern(e){if(e&&e[Ue]){this._rules=this._rules.concat(e._rules),this._added=!0;return}if(_n(e)){const t=Pn(e,this._ignoreCase);this._added=!0,this._rules.push(t)}}add(e){return this._added=!1,Ve(Re(e)?wn(e):e).forEach(this._addPattern,this),this._added&&this._initCache(),this}addPattern(e){return this.add(e)}_testOne(e,t){let s=!1,a=!1;return this._rules.forEach(o=>{const{negative:c}=o;if(a===c&&s!==a||c&&!s&&!a&&!t)return;o.regex.test(e)&&(s=!c,a=c)}),{ignored:s,unignored:a}}_test(e,t,s,a){const o=e&&y.convert(e);return y(o,e,this._allowRelativePaths?nt:Gn),this._t(o,t,s,a)}_t(e,t,s,a){if(e in t)return t[e];if(a||(a=e.split(ie)),a.pop(),!a.length)return t[e]=this._testOne(e,s);const o=this._t(a.join(ie)+ie,t,s,a);return t[e]=o.ignored?o:this._testOne(e,s)}ignores(e){return this._test(e,this._ignoreCache,!1).ignored}createFilter(){return e=>!this.ignores(e)}filter(e){return Ve(e).filter(this.createFilter())}test(e){return this._test(e,this._testCache,!0)}}const q=r=>new Dn(r),yn=r=>y(r&&y.convert(r),r,nt);q.isPathValid=yn;q.default=q;var at=q;if(typeof process<"u"&&(process.env&&process.env.IGNORE_TEST_WIN32||process.platform==="win32")){const r=t=>/^\\\\\?\\/.test(t)||/["<>|\u0000-\u001F]+/u.test(t)?t:t.replace(/\\/g,"/");y.convert=r;const e=/^[a-z]:\//i;y.isNotRelative=t=>e.test(t)||it(t)}const Fn=ke.getDefaultExportFromCjs(at);exports.Enum=mt;exports.VARIANT=Y;exports.balancedMatch=pn;exports.createIgnore=Fn;exports.ignore=at;exports.instantiateEnum=Me;exports.isEnumVariant=qe;exports.match=Ye;exports.nonNull=Lt;exports.semver=$n;exports.semver$1=et;exports.unreachable=Nt; |
+1
| export { } |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
| "use strict";const g=require("node:url"),m=require("node:module"),O=require("node:fs"),x=require("module"),M=require("path"),a=require("node:path");var f=typeof document<"u"?document.currentScript:null,D=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function U(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function z(e){if(e.__esModule)return e;var r=e.default;if(typeof r=="function"){var n=function o(){return this instanceof o?Reflect.construct(r,arguments,this.constructor):r.apply(this,arguments)};n.prototype=r.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(o){var l=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(n,o,l.get?l:{enumerable:!0,get:function(){return e[o]}})}),n}var p={exports:{}};(function(e,r){var n=x.Module,o=M,l=[],j=n._nodeModulePaths,v={};function w(t){for(var i=t;i;){if(v[i])return!0;var u=o.basename(i);if(u==="node_modules")return!1;var d=o.dirname(i);if(d===i)break;i=d}return!0}n._nodeModulePaths=function(t){var i=j.call(this,t);return w(t)&&(i=i.concat(l)),i};function _(t){v[t]=!0}function P(t,i){_(t);function u(d){t=o.normalize(t),d&&d.indexOf(t)===-1&&d.push(t)}if(t=o.normalize(t),l.indexOf(t)===-1)for(l.push(t),require.main&&u(require.main.paths),i=i||e.parent;i&&i!==require.main;)u(i.paths),i=i.parent}function R(t){function i(c){if(t=o.normalize(t),!!c){var q=c.indexOf(t);q!==-1&&c.splice(q,1)}}var u;t=o.normalize(t);var d=l.indexOf(t);if(d>-1)for(l.splice(d,1),require.main&&i(require.main.paths),u=e.parent;u&&u!==require.main;)i(u.paths),u=u.parent}r.addPath=P,r.removePath=R,r.enableForDir=_})(p,p.exports);var F=p.exports;let b=!1;const h=a.resolve((typeof document>"u"?require("url").pathToFileURL(__filename).href:f&&f.src||new URL("module-ATX1OK1I.cjs",document.baseURI).href)?a.dirname(g.fileURLToPath(typeof document>"u"?require("url").pathToFileURL(__filename).href:f&&f.src||new URL("module-ATX1OK1I.cjs",document.baseURI).href)):typeof __dirname<"u"?__dirname:process.cwd()),s={initialize(){if(b)return;b=!0;let e=h;for(;e;){if(e.endsWith("node_modules")){y(e);break}y(a.join(e,"node_modules"));let n=a.dirname(e);if(n===e)break;e=n}try{s.require("tsx/cjs",{url:typeof document>"u"?require("url").pathToFileURL(__filename).href:f&&f.src||new URL("module-ATX1OK1I.cjs",document.baseURI).href})}catch{}const r=m.Module._extensions;r&&!(".cjs"in r)&&(r[".cjs"]=r[".js"]),r&&!(".cts"in r)&&".ts"in r&&(r[".cts"]=r[".ts"])},tryResolveOneOf(e,r){let n;for(const o of e)try{return s.resolve(o,r)}catch(l){n=n||l}throw n},resolve(e,r){return s.initialize(),m.createRequire(r.url||a.resolve(h,"index.js")).resolve(e)},require(e,r){return s.initialize(),m.createRequire(r.url||a.resolve(h,"index.js"))(e)},requireDefault(e,r){const n=s.require(e,r);return typeof n=="object"&&n!==null&&"default"in n&&("__esModule"in n||n[Symbol.toStringTag]==="Module")?n.default:n}};function y(e){try{O.existsSync(e)&&F.addPath(e)}catch{}}exports.commonjsGlobal=D;exports.dynamicRequire=s;exports.getAugmentedNamespace=z;exports.getDefaultExportFromCjs=U; |
Sorry, the diff of this file is too big to display
| "use strict";const l=require("./transform-grid-options-1lkC5igv.cjs");require("./module-ATX1OK1I.cjs");require("node:fs");require("node:path");const x={plugins:["jsx","typescript","decorators-legacy"]};function d(e,...r){if(r.some(n=>typeof n=="string")){const n=[],t=[];t.raw=n;const o=[];let s=e[0];for(let u=0;u<r.length;u++){const a=r[u];typeof a=="string"?s+=a+e[u+1]:(n.push(s),t.push(s),o.push(a),s=e[u+1])}n.push(s),t.push(s),e=t,r=o}return j(l.default_1.expression(x).ast(e,...r))}function g(e,...r){return l.default_1.statement(x).ast(e,...r)}function j(e){return e.extra&&(delete e.extra.parenthesized,delete e.extra.parenStart),e}function y(e,r){const n=N(r),t=G(n),o=e(t);return{match:s,find:u};function s(a){const c=L(n),i=b(a,o,c);return!i||Array.from(i.values()).some(({value:p})=>p===null)?null:Object.fromEntries(Array.from(i.values()).map(({key:p,value:P})=>[p,P]))}function u(a){const c=s(a);return c?{node:a,refs:c}:l.getNodeChildEntries(a).map(([,i])=>i).reduce(function i(f,p){return f||(p?Array.isArray(p)?p.reduce(i,f):u(p):null)},null)}}function N(e){return new Map(Object.entries(e).map(([r,{placeholder:n,matcher:t}])=>[{...n},{key:r,matcher:t}]))}function G(e){return Object.fromEntries(Array.from(e.entries()).map(([r,{key:n}])=>[n,r]))}function L(e){return new Map(Array.from(e.entries()).map(([r,{key:n,matcher:t}])=>[r,{key:n,matcher:t,value:null}]))}function b(e,r,n){const t=l.libExports.isPlaceholder(r)?n.get(r):null;return t?t.matcher(e)?(t.value=e,n):null:M(e,r,n)}function M(e,r,n){return e.type!==r.type||!C(e.node,r)?null:T(e,r,n)}function C(e,r){return e.type!==r.type?!1:l.getNodePropertyFieldNames(e).every(n=>$(e[n],r[n]))}function T(e,r,n){return l.getNodeChildEntries(e).map(([t,o])=>{const s=r[t];return[o,s||null]}).reduce((t,[o,s])=>t?w(o,s,t):null,n)}function w(e,r,n){return!e||!r?e===r?n:null:Array.isArray(e)||Array.isArray(r)?Array.isArray(e)&&Array.isArray(r)?v(e,r,n):null:b(e,r,n)}function v(e,r,n){return e.length!==r.length?null:e.reduce((t,o,s)=>t?b(o,r[s],t):null,n)}function $(e,r){if(!e||!r)return e===r;if(Array.isArray(e)||Array.isArray(r))return!Array.isArray(e)||!Array.isArray(r)||e.length!==r.length?!1:e.every((n,t)=>$(n,r[t]));if(typeof e=="object"||typeof r=="object"){if(typeof e!="object"||typeof r!="object")return!1;const n=Object.keys(e);return Object.keys(r).length!==n.length?!1:n.every(t=>$(e[t],r[t]))}return e===r}function m(){const e=O("Expression",l.libExports.identifier("_")),r=R();return E(e,r)}function R(){return e=>!!e.isExpression()}function E(e,r){return{placeholder:e,matcher:r}}function O(e,r){return l.libExports.placeholder(e,r)}function h(e,r){return{replace(t){const o=n(t);return o?o.node:null},exec:n};function n(t){const o=e.match(t);if(!o)return null;const s=Object.fromEntries(Object.entries(o).map(([a,c])=>[a,c.node]));return{node:r.render(s),refs:o}}}function A(e){return{render:e}}function q(e){const{replacements:r,deprecations:n}=e;return function(o){function s(u,a){for(const c of r){const i=c.exec(u);if(!i)continue;const{node:f,refs:p}=i;if(l.isGridApiReference(p.api,a)){u.replaceWith(f),u.skip();return}}for(const c of n){const i=c.match(u);if(!i)continue;const{api:f}=i;l.isGridApiReference(f,a)&&(a.opts.fail(u,"This method has been deprecated"),u.skip())}}return{visitor:{CallExpression:s,OptionalCallExpression:s}}}}function V(e){return Object.entries(e).flatMap(([r,{option:n,optionalValue:t,transformValue:o,allowCustomSource:s}])=>{const u=[],a=o||(c=>c);for(const c of["","?","!"])t&&u.push(h(y(({api:i})=>d`${i}${c}.${l.libExports.identifier(r)}()`,{api:m()}),A(({api:i})=>d`${i}${c}.setGridOption(${l.libExports.stringLiteral(n)}, undefined)`))),u.push(h(y(({api:i,value:f})=>d`${i}${c}.${l.libExports.identifier(r)}(${f})`,{api:m(),value:m()}),A(({api:i,value:f})=>d`${i}${c}.setGridOption(${l.libExports.stringLiteral(n)}, ${a(f)})`))),s&&u.push(h(y(({api:i,value:f,source:p})=>d`${i}${c}.${l.libExports.identifier(r)}(${f}, ${p})`,{api:m(),value:m(),source:m()}),A(({api:i,value:f,source:p})=>d`${i}${c}.updateGridOptions({ options: { ${l.libExports.identifier(n)}: ${a(f)} }, source: ${p} })`)));return u})}function S(e){return l.libExports.isBooleanLiteral(e)?l.libExports.booleanLiteral(!e.value):d`!${e}`}exports.createPatternPlaceholder=E;exports.createTypedPlaceholder=O;exports.expression=m;exports.expression$1=d;exports.getGridOptionSetterReplacements=V;exports.invertBooleanValue=S;exports.matchNode=y;exports.replace=h;exports.statement=g;exports.template=A;exports.transformGridApiMethods=q; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
| export { } |
Sorry, the diff of this file is too big to display
+26
-7
| { | ||
| "name": "@ag-grid-devtools/cli", | ||
| "version": "32.0.6", | ||
| "version": "32.0.7", | ||
| "license": "MIT", | ||
@@ -20,7 +20,6 @@ "description": "AG Grid developer toolkit", | ||
| }, | ||
| "bundleDependencies": [ | ||
| "@ag-grid-devtools/codemods" | ||
| ], | ||
| "main": "./index.cjs", | ||
| "bin": "./index.cjs", | ||
| "bin": { | ||
| "ag-grid-devtools-cli": "./ag-grid-devtools-cli.cjs" | ||
| }, | ||
| "exports": { | ||
@@ -37,3 +36,7 @@ ".": { | ||
| }, | ||
| "./index.js": "./index.mjs", | ||
| "./index.js": { | ||
| "import": "./index.mjs", | ||
| "require": "./index.cjs", | ||
| "default": "./index.mjs" | ||
| }, | ||
| "./index.mjs": "./index.mjs", | ||
@@ -46,7 +49,23 @@ "./index.cjs": "./index.cjs", | ||
| }, | ||
| "./user-config.js": "./user-config.mjs", | ||
| "./user-config.js": { | ||
| "import": "./user-config.mjs", | ||
| "require": "./user-config.cjs", | ||
| "default": "./user-config.mjs" | ||
| }, | ||
| "./user-config.mjs": "./user-config.mjs", | ||
| "./user-config.cjs": "./user-config.cjs", | ||
| "./ag-grid-devtools-cli": { | ||
| "import": "./ag-grid-devtools-cli.mjs", | ||
| "require": "./ag-grid-devtools-cli.cjs", | ||
| "default": "./ag-grid-devtools-cli.mjs" | ||
| }, | ||
| "./ag-grid-devtools-cli.js": { | ||
| "import": "./ag-grid-devtools-cli.mjs", | ||
| "require": "./ag-grid-devtools-cli.cjs", | ||
| "default": "./ag-grid-devtools-cli.mjs" | ||
| }, | ||
| "./ag-grid-devtools-cli.cjs": "./ag-grid-devtools-cli.cjs", | ||
| "./ag-grid-devtools-cli.mjs": "./ag-grid-devtools-cli.mjs", | ||
| "./package.json": "./package.json" | ||
| } | ||
| } |
| export * from './user-config.cjs'; |
Sorry, the diff of this file is too big to display
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
High entropy strings
Supply chain riskContains high entropy strings. This could be a sign of encrypted data, leaked secrets or obfuscated code.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 3 instances in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
8667808
5121.54%45
462.5%13792
1652.48%25
2400%38
80.95%