@5minds/processcube_app_sdk 6.2.0-develop-631baa-m28nf5fo → 6.2.0-develop-32452d-m2ee0twu

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. package/build/client/actions-52TN7J4J.mjs +1 -0
  2. package/build/client/components/BPMNViewer.css +1 -1
  3. package/build/client/components/BPMNViewer.d.ts +5 -2
  4. package/build/client/components/DiagramDocumentationInspector.css +1 -1
  5. package/build/client/components/DiagramDocumentationInspector.d.ts +16 -6
  6. package/build/client/components/DocumentationViewer.css +1 -1
  7. package/build/client/components/DropdownMenu.css +1 -1
  8. package/build/client/components/DynamicUi/DynamicUi.css +1 -1
  9. package/build/client/components/ProcessInstanceInspector/CommandPalette.css +1 -0
  10. package/build/client/components/ProcessInstanceInspector/CommandPalette.d.ts +13 -0
  11. package/build/client/components/ProcessInstanceInspector/FlowNodeButton.d.ts +8 -0
  12. package/build/client/components/ProcessInstanceInspector/FlowNodeButtonsContainer.d.ts +6 -0
  13. package/build/client/components/ProcessInstanceInspector/GoToButton.d.ts +4 -0
  14. package/build/client/components/ProcessInstanceInspector/ListButton.d.ts +3 -0
  15. package/build/client/components/ProcessInstanceInspector/PlayButton.d.ts +15 -0
  16. package/build/client/components/ProcessInstanceInspector/ProcessButton.d.ts +7 -0
  17. package/build/client/components/ProcessInstanceInspector/ProcessButtonSeparator.d.ts +1 -0
  18. package/build/client/components/ProcessInstanceInspector/ProcessButtonsContainer.d.ts +2 -0
  19. package/build/client/components/ProcessInstanceInspector/ProcessInstanceInspector.css +1 -0
  20. package/build/client/components/ProcessInstanceInspector/ProcessInstanceInspector.d.ts +28 -0
  21. package/build/client/components/ProcessInstanceInspector/RefreshProcessButton.d.ts +5 -0
  22. package/build/client/components/ProcessInstanceInspector/RetryButton.d.ts +5 -0
  23. package/build/client/components/ProcessInstanceInspector/RetryDialog.css +1 -0
  24. package/build/client/components/ProcessInstanceInspector/RetryDialog.d.ts +8 -0
  25. package/build/client/components/ProcessInstanceInspector/RetryProcessButton.d.ts +6 -0
  26. package/build/client/components/ProcessInstanceInspector/TerminateProcessButton.d.ts +6 -0
  27. package/build/client/components/ProcessInstanceInspector/TokenInspector.d.ts +7 -0
  28. package/build/client/components/ProcessInstanceInspector/TokenInspectorButton.d.ts +8 -0
  29. package/build/client/components/ProcessInstanceInspector/index.d.ts +1 -0
  30. package/build/client/components/SplitterLayout.css +1 -1
  31. package/build/client/components/bpmnViewerComponent/bpmnViewer.d.ts +3 -0
  32. package/build/client/components/bpmnViewerComponent/bpmnViewerOverlayCreator.d.ts +3 -0
  33. package/build/client/components/bpmnViewerComponent/executionCount.d.ts +3 -0
  34. package/build/client/components/bpmnViewerComponent/flowNodeButtonArea.d.ts +3 -0
  35. package/build/client/components/bpmnViewerComponent/flowNodeColorArea.d.ts +3 -0
  36. package/build/client/components/bpmnViewerComponent/flowNodeInfoComponent.d.ts +3 -0
  37. package/build/client/components/bpmnViewerComponent/flowNodeOverlay.d.ts +3 -0
  38. package/build/client/components/bpmnViewerComponent/gotoButton.d.ts +3 -0
  39. package/build/client/components/bpmnViewerComponent/playButton.d.ts +3 -0
  40. package/build/client/components/bpmnViewerComponent/retryButton.d.ts +3 -0
  41. package/build/client/index.cjs +14 -12
  42. package/build/client/index.d.ts +1 -0
  43. package/build/client/index.mjs +14 -12
  44. package/build/client/root.css +1 -1
  45. package/build/client/utils/warnOnceForDeprecation.d.ts +1 -0
  46. package/build/server/actions.d.ts +7 -0
  47. package/build/server/index.cjs +1 -1
  48. package/build/server/index.d.ts +1 -0
  49. package/build/server/index.mjs +2 -2
  50. package/build/server/lib/ProcessInstanceFunctions.d.ts +46 -7
  51. package/build/server/server-actions/ManualTaskActions.d.ts +2 -0
  52. package/build/server/server-actions/UntypedTaskActions.d.ts +2 -0
  53. package/build/server/server-actions/index.d.ts +2 -0
  54. package/package.json +8 -5
@@ -1,5 +1,5 @@
1
- var xn=Object.create;var fs=Object.defineProperty;var bn=Object.getOwnPropertyDescriptor;var vn=Object.getOwnPropertyNames;var kn=Object.getPrototypeOf,Nn=Object.prototype.hasOwnProperty;var L=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,s)=>(typeof require<"u"?require:e)[s]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var b=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Pn=(t,e,s,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of vn(e))!Nn.call(t,n)&&n!==s&&fs(t,n,{get:()=>e[n],enumerable:!(r=bn(e,n))||r.enumerable});return t};var On=(t,e,s)=>(s=t!=null?xn(kn(t)):{},Pn(e||!t||!t.__esModule?fs(s,"default",{value:t,enumerable:!0}):s,t));var Re=b((hc,Es)=>{"use strict";var Ln=L("path"),re="\\\\/",ds=`[^${re}]`,ne="\\.",Hn="\\+",Dn="\\?",$e="\\/",Fn="(?=.)",hs="[^/]",ct=`(?:${$e}|$)`,ps=`(?:^|${$e})`,lt=`${ne}{1,2}${ct}`,$n=`(?!${ne})`,Mn=`(?!${ps}${lt})`,Un=`(?!${ne}{0,1}${ct})`,Bn=`(?!${lt})`,Wn=`[^.${$e}]`,Gn=`${hs}*?`,_s={DOT_LITERAL:ne,PLUS_LITERAL:Hn,QMARK_LITERAL:Dn,SLASH_LITERAL:$e,ONE_CHAR:Fn,QMARK:hs,END_ANCHOR:ct,DOTS_SLASH:lt,NO_DOT:$n,NO_DOTS:Mn,NO_DOT_SLASH:Un,NO_DOTS_SLASH:Bn,QMARK_NO_DOT:Wn,STAR:Gn,START_ANCHOR:ps},qn={..._s,SLASH_LITERAL:`[${re}]`,QMARK:ds,STAR:`${ds}*?`,DOTS_SLASH:`${ne}{1,2}(?:[${re}]|$)`,NO_DOT:`(?!${ne})`,NO_DOTS:`(?!(?:^|[${re}])${ne}{1,2}(?:[${re}]|$))`,NO_DOT_SLASH:`(?!${ne}{0,1}(?:[${re}]|$))`,NO_DOTS_SLASH:`(?!${ne}{1,2}(?:[${re}]|$))`,QMARK_NO_DOT:`[^.${re}]`,START_ANCHOR:`(?:^|[${re}])`,END_ANCHOR:`(?:[${re}]|$)`},Kn={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};Es.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:Kn,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:Ln.sep,extglobChars(t){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${t.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(t){return t===!0?qn:_s}}});var Me=b(Y=>{"use strict";var jn=L("path"),Vn=process.platform==="win32",{REGEX_BACKSLASH:Yn,REGEX_REMOVE_BACKSLASH:zn,REGEX_SPECIAL_CHARS:Xn,REGEX_SPECIAL_CHARS_GLOBAL:Qn}=Re();Y.isObject=t=>t!==null&&typeof t=="object"&&!Array.isArray(t);Y.hasRegexChars=t=>Xn.test(t);Y.isRegexChar=t=>t.length===1&&Y.hasRegexChars(t);Y.escapeRegex=t=>t.replace(Qn,"\\$1");Y.toPosixSlashes=t=>t.replace(Yn,"/");Y.removeBackslashes=t=>t.replace(zn,e=>e==="\\"?"":e);Y.supportsLookbehinds=()=>{let t=process.version.slice(1).split(".").map(Number);return t.length===3&&t[0]>=9||t[0]===8&&t[1]>=10};Y.isWindows=t=>t&&typeof t.windows=="boolean"?t.windows:Vn===!0||jn.sep==="\\";Y.escapeLast=(t,e,s)=>{let r=t.lastIndexOf(e,s);return r===-1?t:t[r-1]==="\\"?Y.escapeLast(t,e,r-1):`${t.slice(0,r)}\\${t.slice(r)}`};Y.removePrefix=(t,e={})=>{let s=t;return s.startsWith("./")&&(s=s.slice(2),e.prefix="./"),s};Y.wrapOutput=(t,e={},s={})=>{let r=s.contains?"":"^",n=s.contains?"":"$",o=`${r}(?:${t})${n}`;return e.negated===!0&&(o=`(?:^(?!${o}).*$)`),o}});var Ss=b((_c,Ts)=>{"use strict";var gs=Me(),{CHAR_ASTERISK:ut,CHAR_AT:Zn,CHAR_BACKWARD_SLASH:Ae,CHAR_COMMA:Jn,CHAR_DOT:ft,CHAR_EXCLAMATION_MARK:dt,CHAR_FORWARD_SLASH:As,CHAR_LEFT_CURLY_BRACE:ht,CHAR_LEFT_PARENTHESES:pt,CHAR_LEFT_SQUARE_BRACKET:ei,CHAR_PLUS:ti,CHAR_QUESTION_MARK:ms,CHAR_RIGHT_CURLY_BRACE:si,CHAR_RIGHT_PARENTHESES:ys,CHAR_RIGHT_SQUARE_BRACKET:ri}=Re(),ws=t=>t===As||t===Ae,Rs=t=>{t.isPrefix!==!0&&(t.depth=t.isGlobstar?1/0:1)},ni=(t,e)=>{let s=e||{},r=t.length-1,n=s.parts===!0||s.scanToEnd===!0,o=[],i=[],a=[],c=t,u=-1,f=0,d=0,l=!1,m=!1,g=!1,w=!1,k=!1,D=!1,V=!1,F=!1,ee=!1,G=!1,ae=0,q,A,x={value:"",depth:0,isGlob:!1},W=()=>u>=r,_=()=>c.charCodeAt(u+1),O=()=>(q=A,c.charCodeAt(++u));for(;u<r;){A=O();let K;if(A===Ae){V=x.backslashes=!0,A=O(),A===ht&&(D=!0);continue}if(D===!0||A===ht){for(ae++;W()!==!0&&(A=O());){if(A===Ae){V=x.backslashes=!0,O();continue}if(A===ht){ae++;continue}if(D!==!0&&A===ft&&(A=O())===ft){if(l=x.isBrace=!0,g=x.isGlob=!0,G=!0,n===!0)continue;break}if(D!==!0&&A===Jn){if(l=x.isBrace=!0,g=x.isGlob=!0,G=!0,n===!0)continue;break}if(A===si&&(ae--,ae===0)){D=!1,l=x.isBrace=!0,G=!0;break}}if(n===!0)continue;break}if(A===As){if(o.push(u),i.push(x),x={value:"",depth:0,isGlob:!1},G===!0)continue;if(q===ft&&u===f+1){f+=2;continue}d=u+1;continue}if(s.noext!==!0&&(A===ti||A===Zn||A===ut||A===ms||A===dt)===!0&&_()===pt){if(g=x.isGlob=!0,w=x.isExtglob=!0,G=!0,A===dt&&u===f&&(ee=!0),n===!0){for(;W()!==!0&&(A=O());){if(A===Ae){V=x.backslashes=!0,A=O();continue}if(A===ys){g=x.isGlob=!0,G=!0;break}}continue}break}if(A===ut){if(q===ut&&(k=x.isGlobstar=!0),g=x.isGlob=!0,G=!0,n===!0)continue;break}if(A===ms){if(g=x.isGlob=!0,G=!0,n===!0)continue;break}if(A===ei){for(;W()!==!0&&(K=O());){if(K===Ae){V=x.backslashes=!0,O();continue}if(K===ri){m=x.isBracket=!0,g=x.isGlob=!0,G=!0;break}}if(n===!0)continue;break}if(s.nonegate!==!0&&A===dt&&u===f){F=x.negated=!0,f++;continue}if(s.noparen!==!0&&A===pt){if(g=x.isGlob=!0,n===!0){for(;W()!==!0&&(A=O());){if(A===pt){V=x.backslashes=!0,A=O();continue}if(A===ys){G=!0;break}}continue}break}if(g===!0){if(G=!0,n===!0)continue;break}}s.noext===!0&&(w=!1,g=!1);let N=c,ce="",h="";f>0&&(ce=c.slice(0,f),c=c.slice(f),d-=f),N&&g===!0&&d>0?(N=c.slice(0,d),h=c.slice(d)):g===!0?(N="",h=c):N=c,N&&N!==""&&N!=="/"&&N!==c&&ws(N.charCodeAt(N.length-1))&&(N=N.slice(0,-1)),s.unescape===!0&&(h&&(h=gs.removeBackslashes(h)),N&&V===!0&&(N=gs.removeBackslashes(N)));let p={prefix:ce,input:t,start:f,base:N,glob:h,isBrace:l,isBracket:m,isGlob:g,isExtglob:w,isGlobstar:k,negated:F,negatedExtglob:ee};if(s.tokens===!0&&(p.maxDepth=0,ws(A)||i.push(x),p.tokens=i),s.parts===!0||s.tokens===!0){let K;for(let I=0;I<o.length;I++){let te=K?K+1:f,se=o[I],z=t.slice(te,se);s.tokens&&(I===0&&f!==0?(i[I].isPrefix=!0,i[I].value=ce):i[I].value=z,Rs(i[I]),p.maxDepth+=i[I].depth),(I!==0||z!=="")&&a.push(z),K=se}if(K&&K+1<t.length){let I=t.slice(K+1);a.push(I),s.tokens&&(i[i.length-1].value=I,Rs(i[i.length-1]),p.maxDepth+=i[i.length-1].depth)}p.slashes=o,p.parts=a}return p};Ts.exports=ni});var xs=b((Ec,Is)=>{"use strict";var Ue=Re(),X=Me(),{MAX_LENGTH:Be,POSIX_REGEX_SOURCE:ii,REGEX_NON_SPECIAL_CHARS:oi,REGEX_SPECIAL_CHARS_BACKREF:ai,REPLACEMENTS:Cs}=Ue,ci=(t,e)=>{if(typeof e.expandRange=="function")return e.expandRange(...t,e);t.sort();let s=`[${t.join("-")}]`;try{new RegExp(s)}catch{return t.map(n=>X.escapeRegex(n)).join("..")}return s},Ee=(t,e)=>`Missing ${t}: "${e}" - use "\\\\${e}" to match literal characters`,_t=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");t=Cs[t]||t;let s={...e},r=typeof s.maxLength=="number"?Math.min(Be,s.maxLength):Be,n=t.length;if(n>r)throw new SyntaxError(`Input length: ${n}, exceeds maximum allowed length: ${r}`);let o={type:"bos",value:"",output:s.prepend||""},i=[o],a=s.capture?"":"?:",c=X.isWindows(e),u=Ue.globChars(c),f=Ue.extglobChars(u),{DOT_LITERAL:d,PLUS_LITERAL:l,SLASH_LITERAL:m,ONE_CHAR:g,DOTS_SLASH:w,NO_DOT:k,NO_DOT_SLASH:D,NO_DOTS_SLASH:V,QMARK:F,QMARK_NO_DOT:ee,STAR:G,START_ANCHOR:ae}=u,q=y=>`(${a}(?:(?!${ae}${y.dot?w:d}).)*?)`,A=s.dot?"":k,x=s.dot?F:ee,W=s.bash===!0?q(s):G;s.capture&&(W=`(${W})`),typeof s.noext=="boolean"&&(s.noextglob=s.noext);let _={input:t,index:-1,start:0,dot:s.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:i};t=X.removePrefix(t,_),n=t.length;let O=[],N=[],ce=[],h=o,p,K=()=>_.index===n-1,I=_.peek=(y=1)=>t[_.index+y],te=_.advance=()=>t[++_.index]||"",se=()=>t.slice(_.index+1),z=(y="",P=0)=>{_.consumed+=y,_.index+=P},Le=y=>{_.output+=y.output!=null?y.output:y.value,z(y.value)},Cn=()=>{let y=1;for(;I()==="!"&&(I(2)!=="("||I(3)==="?");)te(),_.start++,y++;return y%2===0?!1:(_.negated=!0,_.start++,!0)},He=y=>{_[y]++,ce.push(y)},le=y=>{_[y]--,ce.pop()},S=y=>{if(h.type==="globstar"){let P=_.braces>0&&(y.type==="comma"||y.type==="brace"),E=y.extglob===!0||O.length&&(y.type==="pipe"||y.type==="paren");y.type!=="slash"&&y.type!=="paren"&&!P&&!E&&(_.output=_.output.slice(0,-h.output.length),h.type="star",h.value="*",h.output=W,_.output+=h.output)}if(O.length&&y.type!=="paren"&&(O[O.length-1].inner+=y.value),(y.value||y.output)&&Le(y),h&&h.type==="text"&&y.type==="text"){h.value+=y.value,h.output=(h.output||"")+y.value;return}y.prev=h,i.push(y),h=y},De=(y,P)=>{let E={...f[P],conditions:1,inner:""};E.prev=h,E.parens=_.parens,E.output=_.output;let T=(s.capture?"(":"")+E.open;He("parens"),S({type:y,value:P,output:_.output?"":g}),S({type:"paren",extglob:!0,value:te(),output:T}),O.push(E)},In=y=>{let P=y.close+(s.capture?")":""),E;if(y.type==="negate"){let T=W;if(y.inner&&y.inner.length>1&&y.inner.includes("/")&&(T=q(s)),(T!==W||K()||/^\)+$/.test(se()))&&(P=y.close=`)$))${T}`),y.inner.includes("*")&&(E=se())&&/^\.[^\\/.]+$/.test(E)){let H=_t(E,{...e,fastpaths:!1}).output;P=y.close=`)${H})${T})`}y.prev.type==="bos"&&(_.negatedExtglob=!0)}S({type:"paren",extglob:!0,value:p,output:P}),le("parens")};if(s.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(t)){let y=!1,P=t.replace(ai,(E,T,H,j,M,at)=>j==="\\"?(y=!0,E):j==="?"?T?T+j+(M?F.repeat(M.length):""):at===0?x+(M?F.repeat(M.length):""):F.repeat(H.length):j==="."?d.repeat(H.length):j==="*"?T?T+j+(M?W:""):W:T?E:`\\${E}`);return y===!0&&(s.unescape===!0?P=P.replace(/\\/g,""):P=P.replace(/\\+/g,E=>E.length%2===0?"\\\\":E?"\\":"")),P===t&&s.contains===!0?(_.output=t,_):(_.output=X.wrapOutput(P,_,e),_)}for(;!K();){if(p=te(),p==="\0")continue;if(p==="\\"){let E=I();if(E==="/"&&s.bash!==!0||E==="."||E===";")continue;if(!E){p+="\\",S({type:"text",value:p});continue}let T=/^\\+/.exec(se()),H=0;if(T&&T[0].length>2&&(H=T[0].length,_.index+=H,H%2!==0&&(p+="\\")),s.unescape===!0?p=te():p+=te(),_.brackets===0){S({type:"text",value:p});continue}}if(_.brackets>0&&(p!=="]"||h.value==="["||h.value==="[^")){if(s.posix!==!1&&p===":"){let E=h.value.slice(1);if(E.includes("[")&&(h.posix=!0,E.includes(":"))){let T=h.value.lastIndexOf("["),H=h.value.slice(0,T),j=h.value.slice(T+2),M=ii[j];if(M){h.value=H+M,_.backtrack=!0,te(),!o.output&&i.indexOf(h)===1&&(o.output=g);continue}}}(p==="["&&I()!==":"||p==="-"&&I()==="]")&&(p=`\\${p}`),p==="]"&&(h.value==="["||h.value==="[^")&&(p=`\\${p}`),s.posix===!0&&p==="!"&&h.value==="["&&(p="^"),h.value+=p,Le({value:p});continue}if(_.quotes===1&&p!=='"'){p=X.escapeRegex(p),h.value+=p,Le({value:p});continue}if(p==='"'){_.quotes=_.quotes===1?0:1,s.keepQuotes===!0&&S({type:"text",value:p});continue}if(p==="("){He("parens"),S({type:"paren",value:p});continue}if(p===")"){if(_.parens===0&&s.strictBrackets===!0)throw new SyntaxError(Ee("opening","("));let E=O[O.length-1];if(E&&_.parens===E.parens+1){In(O.pop());continue}S({type:"paren",value:p,output:_.parens?")":"\\)"}),le("parens");continue}if(p==="["){if(s.nobracket===!0||!se().includes("]")){if(s.nobracket!==!0&&s.strictBrackets===!0)throw new SyntaxError(Ee("closing","]"));p=`\\${p}`}else He("brackets");S({type:"bracket",value:p});continue}if(p==="]"){if(s.nobracket===!0||h&&h.type==="bracket"&&h.value.length===1){S({type:"text",value:p,output:`\\${p}`});continue}if(_.brackets===0){if(s.strictBrackets===!0)throw new SyntaxError(Ee("opening","["));S({type:"text",value:p,output:`\\${p}`});continue}le("brackets");let E=h.value.slice(1);if(h.posix!==!0&&E[0]==="^"&&!E.includes("/")&&(p=`/${p}`),h.value+=p,Le({value:p}),s.literalBrackets===!1||X.hasRegexChars(E))continue;let T=X.escapeRegex(h.value);if(_.output=_.output.slice(0,-h.value.length),s.literalBrackets===!0){_.output+=T,h.value=T;continue}h.value=`(${a}${T}|${h.value})`,_.output+=h.value;continue}if(p==="{"&&s.nobrace!==!0){He("braces");let E={type:"brace",value:p,output:"(",outputIndex:_.output.length,tokensIndex:_.tokens.length};N.push(E),S(E);continue}if(p==="}"){let E=N[N.length-1];if(s.nobrace===!0||!E){S({type:"text",value:p,output:p});continue}let T=")";if(E.dots===!0){let H=i.slice(),j=[];for(let M=H.length-1;M>=0&&(i.pop(),H[M].type!=="brace");M--)H[M].type!=="dots"&&j.unshift(H[M].value);T=ci(j,s),_.backtrack=!0}if(E.comma!==!0&&E.dots!==!0){let H=_.output.slice(0,E.outputIndex),j=_.tokens.slice(E.tokensIndex);E.value=E.output="\\{",p=T="\\}",_.output=H;for(let M of j)_.output+=M.output||M.value}S({type:"brace",value:p,output:T}),le("braces"),N.pop();continue}if(p==="|"){O.length>0&&O[O.length-1].conditions++,S({type:"text",value:p});continue}if(p===","){let E=p,T=N[N.length-1];T&&ce[ce.length-1]==="braces"&&(T.comma=!0,E="|"),S({type:"comma",value:p,output:E});continue}if(p==="/"){if(h.type==="dot"&&_.index===_.start+1){_.start=_.index+1,_.consumed="",_.output="",i.pop(),h=o;continue}S({type:"slash",value:p,output:m});continue}if(p==="."){if(_.braces>0&&h.type==="dot"){h.value==="."&&(h.output=d);let E=N[N.length-1];h.type="dots",h.output+=p,h.value+=p,E.dots=!0;continue}if(_.braces+_.parens===0&&h.type!=="bos"&&h.type!=="slash"){S({type:"text",value:p,output:d});continue}S({type:"dot",value:p,output:d});continue}if(p==="?"){if(!(h&&h.value==="(")&&s.noextglob!==!0&&I()==="("&&I(2)!=="?"){De("qmark",p);continue}if(h&&h.type==="paren"){let T=I(),H=p;if(T==="<"&&!X.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(h.value==="("&&!/[!=<:]/.test(T)||T==="<"&&!/<([!=]|\w+>)/.test(se()))&&(H=`\\${p}`),S({type:"text",value:p,output:H});continue}if(s.dot!==!0&&(h.type==="slash"||h.type==="bos")){S({type:"qmark",value:p,output:ee});continue}S({type:"qmark",value:p,output:F});continue}if(p==="!"){if(s.noextglob!==!0&&I()==="("&&(I(2)!=="?"||!/[!=<:]/.test(I(3)))){De("negate",p);continue}if(s.nonegate!==!0&&_.index===0){Cn();continue}}if(p==="+"){if(s.noextglob!==!0&&I()==="("&&I(2)!=="?"){De("plus",p);continue}if(h&&h.value==="("||s.regex===!1){S({type:"plus",value:p,output:l});continue}if(h&&(h.type==="bracket"||h.type==="paren"||h.type==="brace")||_.parens>0){S({type:"plus",value:p});continue}S({type:"plus",value:l});continue}if(p==="@"){if(s.noextglob!==!0&&I()==="("&&I(2)!=="?"){S({type:"at",extglob:!0,value:p,output:""});continue}S({type:"text",value:p});continue}if(p!=="*"){(p==="$"||p==="^")&&(p=`\\${p}`);let E=oi.exec(se());E&&(p+=E[0],_.index+=E[0].length),S({type:"text",value:p});continue}if(h&&(h.type==="globstar"||h.star===!0)){h.type="star",h.star=!0,h.value+=p,h.output=W,_.backtrack=!0,_.globstar=!0,z(p);continue}let y=se();if(s.noextglob!==!0&&/^\([^?]/.test(y)){De("star",p);continue}if(h.type==="star"){if(s.noglobstar===!0){z(p);continue}let E=h.prev,T=E.prev,H=E.type==="slash"||E.type==="bos",j=T&&(T.type==="star"||T.type==="globstar");if(s.bash===!0&&(!H||y[0]&&y[0]!=="/")){S({type:"star",value:p,output:""});continue}let M=_.braces>0&&(E.type==="comma"||E.type==="brace"),at=O.length&&(E.type==="pipe"||E.type==="paren");if(!H&&E.type!=="paren"&&!M&&!at){S({type:"star",value:p,output:""});continue}for(;y.slice(0,3)==="/**";){let Fe=t[_.index+4];if(Fe&&Fe!=="/")break;y=y.slice(3),z("/**",3)}if(E.type==="bos"&&K()){h.type="globstar",h.value+=p,h.output=q(s),_.output=h.output,_.globstar=!0,z(p);continue}if(E.type==="slash"&&E.prev.type!=="bos"&&!j&&K()){_.output=_.output.slice(0,-(E.output+h.output).length),E.output=`(?:${E.output}`,h.type="globstar",h.output=q(s)+(s.strictSlashes?")":"|$)"),h.value+=p,_.globstar=!0,_.output+=E.output+h.output,z(p);continue}if(E.type==="slash"&&E.prev.type!=="bos"&&y[0]==="/"){let Fe=y[1]!==void 0?"|$":"";_.output=_.output.slice(0,-(E.output+h.output).length),E.output=`(?:${E.output}`,h.type="globstar",h.output=`${q(s)}${m}|${m}${Fe})`,h.value+=p,_.output+=E.output+h.output,_.globstar=!0,z(p+te()),S({type:"slash",value:"/",output:""});continue}if(E.type==="bos"&&y[0]==="/"){h.type="globstar",h.value+=p,h.output=`(?:^|${m}|${q(s)}${m})`,_.output=h.output,_.globstar=!0,z(p+te()),S({type:"slash",value:"/",output:""});continue}_.output=_.output.slice(0,-h.output.length),h.type="globstar",h.output=q(s),h.value+=p,_.output+=h.output,_.globstar=!0,z(p);continue}let P={type:"star",value:p,output:W};if(s.bash===!0){P.output=".*?",(h.type==="bos"||h.type==="slash")&&(P.output=A+P.output),S(P);continue}if(h&&(h.type==="bracket"||h.type==="paren")&&s.regex===!0){P.output=p,S(P);continue}(_.index===_.start||h.type==="slash"||h.type==="dot")&&(h.type==="dot"?(_.output+=D,h.output+=D):s.dot===!0?(_.output+=V,h.output+=V):(_.output+=A,h.output+=A),I()!=="*"&&(_.output+=g,h.output+=g)),S(P)}for(;_.brackets>0;){if(s.strictBrackets===!0)throw new SyntaxError(Ee("closing","]"));_.output=X.escapeLast(_.output,"["),le("brackets")}for(;_.parens>0;){if(s.strictBrackets===!0)throw new SyntaxError(Ee("closing",")"));_.output=X.escapeLast(_.output,"("),le("parens")}for(;_.braces>0;){if(s.strictBrackets===!0)throw new SyntaxError(Ee("closing","}"));_.output=X.escapeLast(_.output,"{"),le("braces")}if(s.strictSlashes!==!0&&(h.type==="star"||h.type==="bracket")&&S({type:"maybe_slash",value:"",output:`${m}?`}),_.backtrack===!0){_.output="";for(let y of _.tokens)_.output+=y.output!=null?y.output:y.value,y.suffix&&(_.output+=y.suffix)}return _};_t.fastpaths=(t,e)=>{let s={...e},r=typeof s.maxLength=="number"?Math.min(Be,s.maxLength):Be,n=t.length;if(n>r)throw new SyntaxError(`Input length: ${n}, exceeds maximum allowed length: ${r}`);t=Cs[t]||t;let o=X.isWindows(e),{DOT_LITERAL:i,SLASH_LITERAL:a,ONE_CHAR:c,DOTS_SLASH:u,NO_DOT:f,NO_DOTS:d,NO_DOTS_SLASH:l,STAR:m,START_ANCHOR:g}=Ue.globChars(o),w=s.dot?d:f,k=s.dot?l:f,D=s.capture?"":"?:",V={negated:!1,prefix:""},F=s.bash===!0?".*?":m;s.capture&&(F=`(${F})`);let ee=A=>A.noglobstar===!0?F:`(${D}(?:(?!${g}${A.dot?u:i}).)*?)`,G=A=>{switch(A){case"*":return`${w}${c}${F}`;case".*":return`${i}${c}${F}`;case"*.*":return`${w}${F}${i}${c}${F}`;case"*/*":return`${w}${F}${a}${c}${k}${F}`;case"**":return w+ee(s);case"**/*":return`(?:${w}${ee(s)}${a})?${k}${c}${F}`;case"**/*.*":return`(?:${w}${ee(s)}${a})?${k}${F}${i}${c}${F}`;case"**/.*":return`(?:${w}${ee(s)}${a})?${i}${c}${F}`;default:{let x=/^(.*?)\.(\w+)$/.exec(A);if(!x)return;let W=G(x[1]);return W?W+i+x[2]:void 0}}},ae=X.removePrefix(t,V),q=G(ae);return q&&s.strictSlashes!==!0&&(q+=`${a}?`),q};Is.exports=_t});var vs=b((gc,bs)=>{"use strict";var li=L("path"),ui=Ss(),Et=xs(),gt=Me(),fi=Re(),di=t=>t&&typeof t=="object"&&!Array.isArray(t),$=(t,e,s=!1)=>{if(Array.isArray(t)){let f=t.map(l=>$(l,e,s));return l=>{for(let m of f){let g=m(l);if(g)return g}return!1}}let r=di(t)&&t.tokens&&t.input;if(t===""||typeof t!="string"&&!r)throw new TypeError("Expected pattern to be a non-empty string");let n=e||{},o=gt.isWindows(e),i=r?$.compileRe(t,e):$.makeRe(t,e,!1,!0),a=i.state;delete i.state;let c=()=>!1;if(n.ignore){let f={...e,ignore:null,onMatch:null,onResult:null};c=$(n.ignore,f,s)}let u=(f,d=!1)=>{let{isMatch:l,match:m,output:g}=$.test(f,i,e,{glob:t,posix:o}),w={glob:t,state:a,regex:i,posix:o,input:f,output:g,match:m,isMatch:l};return typeof n.onResult=="function"&&n.onResult(w),l===!1?(w.isMatch=!1,d?w:!1):c(f)?(typeof n.onIgnore=="function"&&n.onIgnore(w),w.isMatch=!1,d?w:!1):(typeof n.onMatch=="function"&&n.onMatch(w),d?w:!0)};return s&&(u.state=a),u};$.test=(t,e,s,{glob:r,posix:n}={})=>{if(typeof t!="string")throw new TypeError("Expected input to be a string");if(t==="")return{isMatch:!1,output:""};let o=s||{},i=o.format||(n?gt.toPosixSlashes:null),a=t===r,c=a&&i?i(t):t;return a===!1&&(c=i?i(t):t,a=c===r),(a===!1||o.capture===!0)&&(o.matchBase===!0||o.basename===!0?a=$.matchBase(t,e,s,n):a=e.exec(c)),{isMatch:!!a,match:a,output:c}};$.matchBase=(t,e,s,r=gt.isWindows(s))=>(e instanceof RegExp?e:$.makeRe(e,s)).test(li.basename(t));$.isMatch=(t,e,s)=>$(e,s)(t);$.parse=(t,e)=>Array.isArray(t)?t.map(s=>$.parse(s,e)):Et(t,{...e,fastpaths:!1});$.scan=(t,e)=>ui(t,e);$.compileRe=(t,e,s=!1,r=!1)=>{if(s===!0)return t.output;let n=e||{},o=n.contains?"":"^",i=n.contains?"":"$",a=`${o}(?:${t.output})${i}`;t&&t.negated===!0&&(a=`^(?!${a}).*$`);let c=$.toRegex(a,e);return r===!0&&(c.state=t),c};$.makeRe=(t,e={},s=!1,r=!1)=>{if(!t||typeof t!="string")throw new TypeError("Expected a non-empty string");let n={negated:!1,fastpaths:!0};return e.fastpaths!==!1&&(t[0]==="."||t[0]==="*")&&(n.output=Et.fastpaths(t,e)),n.output||(n=Et(t,e)),$.compileRe(n,e,s,r)};$.toRegex=(t,e)=>{try{let s=e||{};return new RegExp(t,s.flags||(s.nocase?"i":""))}catch(s){if(e&&e.debug===!0)throw s;return/$^/}};$.constants=fi;bs.exports=$});var mt=b((mc,ks)=>{"use strict";ks.exports=vs()});var $s=b((yc,Fs)=>{"use strict";var Se=L("fs"),{Readable:hi}=L("stream"),Te=L("path"),{promisify:Ke}=L("util"),yt=mt(),pi=Ke(Se.readdir),_i=Ke(Se.stat),Ns=Ke(Se.lstat),Ei=Ke(Se.realpath),gi="!",Hs="READDIRP_RECURSIVE_ERROR",mi=new Set(["ENOENT","EPERM","EACCES","ELOOP",Hs]),wt="files",Ds="directories",Ge="files_directories",We="all",Ps=[wt,Ds,Ge,We],yi=t=>mi.has(t.code),[Os,wi]=process.versions.node.split(".").slice(0,2).map(t=>Number.parseInt(t,10)),Ri=process.platform==="win32"&&(Os>10||Os===10&&wi>=5),Ls=t=>{if(t!==void 0){if(typeof t=="function")return t;if(typeof t=="string"){let e=yt(t.trim());return s=>e(s.basename)}if(Array.isArray(t)){let e=[],s=[];for(let r of t){let n=r.trim();n.charAt(0)===gi?s.push(yt(n.slice(1))):e.push(yt(n))}return s.length>0?e.length>0?r=>e.some(n=>n(r.basename))&&!s.some(n=>n(r.basename)):r=>!s.some(n=>n(r.basename)):r=>e.some(n=>n(r.basename))}}},qe=class t extends hi{static get defaultOptions(){return{root:".",fileFilter:e=>!0,directoryFilter:e=>!0,type:wt,lstat:!1,depth:2147483648,alwaysStat:!1}}constructor(e={}){super({objectMode:!0,autoDestroy:!0,highWaterMark:e.highWaterMark||4096});let s={...t.defaultOptions,...e},{root:r,type:n}=s;this._fileFilter=Ls(s.fileFilter),this._directoryFilter=Ls(s.directoryFilter);let o=s.lstat?Ns:_i;Ri?this._stat=i=>o(i,{bigint:!0}):this._stat=o,this._maxDepth=s.depth,this._wantsDir=[Ds,Ge,We].includes(n),this._wantsFile=[wt,Ge,We].includes(n),this._wantsEverything=n===We,this._root=Te.resolve(r),this._isDirent="Dirent"in Se&&!s.alwaysStat,this._statsProp=this._isDirent?"dirent":"stats",this._rdOptions={encoding:"utf8",withFileTypes:this._isDirent},this.parents=[this._exploreDir(r,1)],this.reading=!1,this.parent=void 0}async _read(e){if(!this.reading){this.reading=!0;try{for(;!this.destroyed&&e>0;){let{path:s,depth:r,files:n=[]}=this.parent||{};if(n.length>0){let o=n.splice(0,e).map(i=>this._formatEntry(i,s));for(let i of await Promise.all(o)){if(this.destroyed)return;let a=await this._getEntryType(i);a==="directory"&&this._directoryFilter(i)?(r<=this._maxDepth&&this.parents.push(this._exploreDir(i.fullPath,r+1)),this._wantsDir&&(this.push(i),e--)):(a==="file"||this._includeAsFile(i))&&this._fileFilter(i)&&this._wantsFile&&(this.push(i),e--)}}else{let o=this.parents.pop();if(!o){this.push(null);break}if(this.parent=await o,this.destroyed)return}}}catch(s){this.destroy(s)}finally{this.reading=!1}}}async _exploreDir(e,s){let r;try{r=await pi(e,this._rdOptions)}catch(n){this._onError(n)}return{files:r,depth:s,path:e}}async _formatEntry(e,s){let r;try{let n=this._isDirent?e.name:e,o=Te.resolve(Te.join(s,n));r={path:Te.relative(this._root,o),fullPath:o,basename:n},r[this._statsProp]=this._isDirent?e:await this._stat(o)}catch(n){this._onError(n)}return r}_onError(e){yi(e)&&!this.destroyed?this.emit("warn",e):this.destroy(e)}async _getEntryType(e){let s=e&&e[this._statsProp];if(s){if(s.isFile())return"file";if(s.isDirectory())return"directory";if(s&&s.isSymbolicLink()){let r=e.fullPath;try{let n=await Ei(r),o=await Ns(n);if(o.isFile())return"file";if(o.isDirectory()){let i=n.length;if(r.startsWith(n)&&r.substr(i,1)===Te.sep){let a=new Error(`Circular symlink detected: "${r}" points to "${n}"`);return a.code=Hs,this._onError(a)}return"directory"}}catch(n){this._onError(n)}}}}_includeAsFile(e){let s=e&&e[this._statsProp];return s&&this._wantsEverything&&!s.isDirectory()}},ge=(t,e={})=>{let s=e.entryType||e.type;if(s==="both"&&(s=Ge),s&&(e.type=s),t){if(typeof t!="string")throw new TypeError("readdirp: root argument must be a string. Usage: readdirp(root, options)");if(s&&!Ps.includes(s))throw new Error(`readdirp: Invalid type passed. Use one of ${Ps.join(", ")}`)}else throw new Error("readdirp: root argument is required. Usage: readdirp(root, options)");return e.root=t,new qe(e)},Ai=(t,e={})=>new Promise((s,r)=>{let n=[];ge(t,e).on("data",o=>n.push(o)).on("end",()=>s(n)).on("error",o=>r(o))});ge.promise=Ai;ge.ReaddirpStream=qe;ge.default=ge;Fs.exports=ge});var Rt=b((wc,Ms)=>{Ms.exports=function(t,e){if(typeof t!="string")throw new TypeError("expected path to be a string");if(t==="\\"||t==="/")return"/";var s=t.length;if(s<=1)return t;var r="";if(s>4&&t[3]==="\\"){var n=t[2];(n==="?"||n===".")&&t.slice(0,2)==="\\\\"&&(t=t.slice(2),r="//")}var o=t.split(/[/\\]+/);return e!==!1&&o[o.length-1]===""&&o.pop(),r+o.join("/")}});var Ks=b((Gs,qs)=>{"use strict";Object.defineProperty(Gs,"__esModule",{value:!0});var Ws=mt(),Ti=Rt(),Us="!",Si={returnIndex:!1},Ci=t=>Array.isArray(t)?t:[t],Ii=(t,e)=>{if(typeof t=="function")return t;if(typeof t=="string"){let s=Ws(t,e);return r=>t===r||s(r)}return t instanceof RegExp?s=>t.test(s):s=>!1},Bs=(t,e,s,r)=>{let n=Array.isArray(s),o=n?s[0]:s;if(!n&&typeof o!="string")throw new TypeError("anymatch: second argument must be a string: got "+Object.prototype.toString.call(o));let i=Ti(o,!1);for(let c=0;c<e.length;c++){let u=e[c];if(u(i))return r?-1:!1}let a=n&&[i].concat(s.slice(1));for(let c=0;c<t.length;c++){let u=t[c];if(n?u(...a):u(i))return r?c:!0}return r?-1:!1},At=(t,e,s=Si)=>{if(t==null)throw new TypeError("anymatch: specify first argument");let r=typeof s=="boolean"?{returnIndex:s}:s,n=r.returnIndex||!1,o=Ci(t),i=o.filter(c=>typeof c=="string"&&c.charAt(0)===Us).map(c=>c.slice(1)).map(c=>Ws(c,r)),a=o.filter(c=>typeof c!="string"||typeof c=="string"&&c.charAt(0)!==Us).map(c=>Ii(c,r));return e==null?(c,u=!1)=>Bs(a,i,c,typeof u=="boolean"?u:!1):Bs(a,i,e,n)};At.default=At;qs.exports=At});var Vs=b((Rc,js)=>{js.exports=function(e){if(typeof e!="string"||e==="")return!1;for(var s;s=/(\\).|([@?!+*]\(.*\))/g.exec(e);){if(s[2])return!0;e=e.slice(s.index+s[0].length)}return!1}});var Tt=b((Ac,zs)=>{var xi=Vs(),Ys={"{":"}","(":")","[":"]"},bi=function(t){if(t[0]==="!")return!0;for(var e=0,s=-2,r=-2,n=-2,o=-2,i=-2;e<t.length;){if(t[e]==="*"||t[e+1]==="?"&&/[\].+)]/.test(t[e])||r!==-1&&t[e]==="["&&t[e+1]!=="]"&&(r<e&&(r=t.indexOf("]",e)),r>e&&(i===-1||i>r||(i=t.indexOf("\\",e),i===-1||i>r)))||n!==-1&&t[e]==="{"&&t[e+1]!=="}"&&(n=t.indexOf("}",e),n>e&&(i=t.indexOf("\\",e),i===-1||i>n))||o!==-1&&t[e]==="("&&t[e+1]==="?"&&/[:!=]/.test(t[e+2])&&t[e+3]!==")"&&(o=t.indexOf(")",e),o>e&&(i=t.indexOf("\\",e),i===-1||i>o))||s!==-1&&t[e]==="("&&t[e+1]!=="|"&&(s<e&&(s=t.indexOf("|",e)),s!==-1&&t[s+1]!==")"&&(o=t.indexOf(")",s),o>s&&(i=t.indexOf("\\",s),i===-1||i>o))))return!0;if(t[e]==="\\"){var a=t[e+1];e+=2;var c=Ys[a];if(c){var u=t.indexOf(c,e);u!==-1&&(e=u+1)}if(t[e]==="!")return!0}else e++}return!1},vi=function(t){if(t[0]==="!")return!0;for(var e=0;e<t.length;){if(/[*?{}()[\]]/.test(t[e]))return!0;if(t[e]==="\\"){var s=t[e+1];e+=2;var r=Ys[s];if(r){var n=t.indexOf(r,e);n!==-1&&(e=n+1)}if(t[e]==="!")return!0}else e++}return!1};zs.exports=function(e,s){if(typeof e!="string"||e==="")return!1;if(xi(e))return!0;var r=bi;return s&&s.strict===!1&&(r=vi),r(e)}});var Qs=b((Tc,Xs)=>{"use strict";var ki=Tt(),Ni=L("path").posix.dirname,Pi=L("os").platform()==="win32",St="/",Oi=/\\/g,Li=/[\{\[].*[\}\]]$/,Hi=/(^|[^\\])([\{\[]|\([^\)]+$)/,Di=/\\([\!\*\?\|\[\]\(\)\{\}])/g;Xs.exports=function(e,s){var r=Object.assign({flipBackslashes:!0},s);r.flipBackslashes&&Pi&&e.indexOf(St)<0&&(e=e.replace(Oi,St)),Li.test(e)&&(e+=St),e+="a";do e=Ni(e);while(ki(e)||Hi.test(e));return e.replace(Di,"$1")}});var je=b(Z=>{"use strict";Z.isInteger=t=>typeof t=="number"?Number.isInteger(t):typeof t=="string"&&t.trim()!==""?Number.isInteger(Number(t)):!1;Z.find=(t,e)=>t.nodes.find(s=>s.type===e);Z.exceedsLimit=(t,e,s=1,r)=>r===!1||!Z.isInteger(t)||!Z.isInteger(e)?!1:(Number(e)-Number(t))/Number(s)>=r;Z.escapeNode=(t,e=0,s)=>{let r=t.nodes[e];r&&(s&&r.type===s||r.type==="open"||r.type==="close")&&r.escaped!==!0&&(r.value="\\"+r.value,r.escaped=!0)};Z.encloseBrace=t=>t.type!=="brace"||t.commas>>0+t.ranges>>0?!1:(t.invalid=!0,!0);Z.isInvalidBrace=t=>t.type!=="brace"?!1:t.invalid===!0||t.dollar?!0:!(t.commas>>0+t.ranges>>0)||t.open!==!0||t.close!==!0?(t.invalid=!0,!0):!1;Z.isOpenOrClose=t=>t.type==="open"||t.type==="close"?!0:t.open===!0||t.close===!0;Z.reduce=t=>t.reduce((e,s)=>(s.type==="text"&&e.push(s.value),s.type==="range"&&(s.type="text"),e),[]);Z.flatten=(...t)=>{let e=[],s=r=>{for(let n=0;n<r.length;n++){let o=r[n];if(Array.isArray(o)){s(o);continue}o!==void 0&&e.push(o)}return e};return s(t),e}});var Ve=b((Cc,Js)=>{"use strict";var Zs=je();Js.exports=(t,e={})=>{let s=(r,n={})=>{let o=e.escapeInvalid&&Zs.isInvalidBrace(n),i=r.invalid===!0&&e.escapeInvalid===!0,a="";if(r.value)return(o||i)&&Zs.isOpenOrClose(r)?"\\"+r.value:r.value;if(r.value)return r.value;if(r.nodes)for(let c of r.nodes)a+=s(c);return a};return s(t)}});var tr=b((Ic,er)=>{"use strict";er.exports=function(t){return typeof t=="number"?t-t===0:typeof t=="string"&&t.trim()!==""?Number.isFinite?Number.isFinite(+t):isFinite(+t):!1}});var ur=b((xc,lr)=>{"use strict";var sr=tr(),ue=(t,e,s)=>{if(sr(t)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(e===void 0||t===e)return String(t);if(sr(e)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let r={relaxZeros:!0,...s};typeof r.strictZeros=="boolean"&&(r.relaxZeros=r.strictZeros===!1);let n=String(r.relaxZeros),o=String(r.shorthand),i=String(r.capture),a=String(r.wrap),c=t+":"+e+"="+n+o+i+a;if(ue.cache.hasOwnProperty(c))return ue.cache[c].result;let u=Math.min(t,e),f=Math.max(t,e);if(Math.abs(u-f)===1){let w=t+"|"+e;return r.capture?`(${w})`:r.wrap===!1?w:`(?:${w})`}let d=cr(t)||cr(e),l={min:t,max:e,a:u,b:f},m=[],g=[];if(d&&(l.isPadded=d,l.maxLen=String(l.max).length),u<0){let w=f<0?Math.abs(f):1;g=rr(w,Math.abs(u),l,r),u=l.a=0}return f>=0&&(m=rr(u,f,l,r)),l.negatives=g,l.positives=m,l.result=Fi(g,m,r),r.capture===!0?l.result=`(${l.result})`:r.wrap!==!1&&m.length+g.length>1&&(l.result=`(?:${l.result})`),ue.cache[c]=l,l.result};function Fi(t,e,s){let r=Ct(t,e,"-",!1,s)||[],n=Ct(e,t,"",!1,s)||[],o=Ct(t,e,"-?",!0,s)||[];return r.concat(o).concat(n).join("|")}function $i(t,e){let s=1,r=1,n=ir(t,s),o=new Set([e]);for(;t<=n&&n<=e;)o.add(n),s+=1,n=ir(t,s);for(n=or(e+1,r)-1;t<n&&n<=e;)o.add(n),r+=1,n=or(e+1,r)-1;return o=[...o],o.sort(Bi),o}function Mi(t,e,s){if(t===e)return{pattern:t,count:[],digits:0};let r=Ui(t,e),n=r.length,o="",i=0;for(let a=0;a<n;a++){let[c,u]=r[a];c===u?o+=c:c!=="0"||u!=="9"?o+=Wi(c,u,s):i++}return i&&(o+=s.shorthand===!0?"\\d":"[0-9]"),{pattern:o,count:[i],digits:n}}function rr(t,e,s,r){let n=$i(t,e),o=[],i=t,a;for(let c=0;c<n.length;c++){let u=n[c],f=Mi(String(i),String(u),r),d="";if(!s.isPadded&&a&&a.pattern===f.pattern){a.count.length>1&&a.count.pop(),a.count.push(f.count[0]),a.string=a.pattern+ar(a.count),i=u+1;continue}s.isPadded&&(d=Gi(u,s,r)),f.string=d+f.pattern+ar(f.count),o.push(f),i=u+1,a=f}return o}function Ct(t,e,s,r,n){let o=[];for(let i of t){let{string:a}=i;!r&&!nr(e,"string",a)&&o.push(s+a),r&&nr(e,"string",a)&&o.push(s+a)}return o}function Ui(t,e){let s=[];for(let r=0;r<t.length;r++)s.push([t[r],e[r]]);return s}function Bi(t,e){return t>e?1:e>t?-1:0}function nr(t,e,s){return t.some(r=>r[e]===s)}function ir(t,e){return Number(String(t).slice(0,-e)+"9".repeat(e))}function or(t,e){return t-t%Math.pow(10,e)}function ar(t){let[e=0,s=""]=t;return s||e>1?`{${e+(s?","+s:"")}}`:""}function Wi(t,e,s){return`[${t}${e-t===1?"":"-"}${e}]`}function cr(t){return/^-?(0+)\d/.test(t)}function Gi(t,e,s){if(!e.isPadded)return t;let r=Math.abs(e.maxLen-String(t).length),n=s.relaxZeros!==!1;switch(r){case 0:return"";case 1:return n?"0?":"0";case 2:return n?"0{0,2}":"00";default:return n?`0{0,${r}}`:`0{${r}}`}}ue.cache={};ue.clearCache=()=>ue.cache={};lr.exports=ue});var bt=b((bc,gr)=>{"use strict";var qi=L("util"),dr=ur(),fr=t=>t!==null&&typeof t=="object"&&!Array.isArray(t),Ki=t=>e=>t===!0?Number(e):String(e),It=t=>typeof t=="number"||typeof t=="string"&&t!=="",Ce=t=>Number.isInteger(+t),xt=t=>{let e=`${t}`,s=-1;if(e[0]==="-"&&(e=e.slice(1)),e==="0")return!1;for(;e[++s]==="0";);return s>0},ji=(t,e,s)=>typeof t=="string"||typeof e=="string"?!0:s.stringify===!0,Vi=(t,e,s)=>{if(e>0){let r=t[0]==="-"?"-":"";r&&(t=t.slice(1)),t=r+t.padStart(r?e-1:e,"0")}return s===!1?String(t):t},ze=(t,e)=>{let s=t[0]==="-"?"-":"";for(s&&(t=t.slice(1),e--);t.length<e;)t="0"+t;return s?"-"+t:t},Yi=(t,e,s)=>{t.negatives.sort((a,c)=>a<c?-1:a>c?1:0),t.positives.sort((a,c)=>a<c?-1:a>c?1:0);let r=e.capture?"":"?:",n="",o="",i;return t.positives.length&&(n=t.positives.map(a=>ze(String(a),s)).join("|")),t.negatives.length&&(o=`-(${r}${t.negatives.map(a=>ze(String(a),s)).join("|")})`),n&&o?i=`${n}|${o}`:i=n||o,e.wrap?`(${r}${i})`:i},hr=(t,e,s,r)=>{if(s)return dr(t,e,{wrap:!1,...r});let n=String.fromCharCode(t);if(t===e)return n;let o=String.fromCharCode(e);return`[${n}-${o}]`},pr=(t,e,s)=>{if(Array.isArray(t)){let r=s.wrap===!0,n=s.capture?"":"?:";return r?`(${n}${t.join("|")})`:t.join("|")}return dr(t,e,s)},_r=(...t)=>new RangeError("Invalid range arguments: "+qi.inspect(...t)),Er=(t,e,s)=>{if(s.strictRanges===!0)throw _r([t,e]);return[]},zi=(t,e)=>{if(e.strictRanges===!0)throw new TypeError(`Expected step "${t}" to be a number`);return[]},Xi=(t,e,s=1,r={})=>{let n=Number(t),o=Number(e);if(!Number.isInteger(n)||!Number.isInteger(o)){if(r.strictRanges===!0)throw _r([t,e]);return[]}n===0&&(n=0),o===0&&(o=0);let i=n>o,a=String(t),c=String(e),u=String(s);s=Math.max(Math.abs(s),1);let f=xt(a)||xt(c)||xt(u),d=f?Math.max(a.length,c.length,u.length):0,l=f===!1&&ji(t,e,r)===!1,m=r.transform||Ki(l);if(r.toRegex&&s===1)return hr(ze(t,d),ze(e,d),!0,r);let g={negatives:[],positives:[]},w=V=>g[V<0?"negatives":"positives"].push(Math.abs(V)),k=[],D=0;for(;i?n>=o:n<=o;)r.toRegex===!0&&s>1?w(n):k.push(Vi(m(n,D),d,l)),n=i?n-s:n+s,D++;return r.toRegex===!0?s>1?Yi(g,r,d):pr(k,null,{wrap:!1,...r}):k},Qi=(t,e,s=1,r={})=>{if(!Ce(t)&&t.length>1||!Ce(e)&&e.length>1)return Er(t,e,r);let n=r.transform||(l=>String.fromCharCode(l)),o=`${t}`.charCodeAt(0),i=`${e}`.charCodeAt(0),a=o>i,c=Math.min(o,i),u=Math.max(o,i);if(r.toRegex&&s===1)return hr(c,u,!1,r);let f=[],d=0;for(;a?o>=i:o<=i;)f.push(n(o,d)),o=a?o-s:o+s,d++;return r.toRegex===!0?pr(f,null,{wrap:!1,options:r}):f},Ye=(t,e,s,r={})=>{if(e==null&&It(t))return[t];if(!It(t)||!It(e))return Er(t,e,r);if(typeof s=="function")return Ye(t,e,1,{transform:s});if(fr(s))return Ye(t,e,0,s);let n={...r};return n.capture===!0&&(n.wrap=!0),s=s||n.step||1,Ce(s)?Ce(t)&&Ce(e)?Xi(t,e,s,n):Qi(t,e,Math.max(Math.abs(s),1),n):s!=null&&!fr(s)?zi(s,n):Ye(t,e,1,s)};gr.exports=Ye});var wr=b((vc,yr)=>{"use strict";var Zi=bt(),mr=je(),Ji=(t,e={})=>{let s=(r,n={})=>{let o=mr.isInvalidBrace(n),i=r.invalid===!0&&e.escapeInvalid===!0,a=o===!0||i===!0,c=e.escapeInvalid===!0?"\\":"",u="";if(r.isOpen===!0)return c+r.value;if(r.isClose===!0)return console.log("node.isClose",c,r.value),c+r.value;if(r.type==="open")return a?c+r.value:"(";if(r.type==="close")return a?c+r.value:")";if(r.type==="comma")return r.prev.type==="comma"?"":a?r.value:"|";if(r.value)return r.value;if(r.nodes&&r.ranges>0){let f=mr.reduce(r.nodes),d=Zi(...f,{...e,wrap:!1,toRegex:!0,strictZeros:!0});if(d.length!==0)return f.length>1&&d.length>1?`(${d})`:d}if(r.nodes)for(let f of r.nodes)u+=s(f,r);return u};return s(t)};yr.exports=Ji});var Tr=b((kc,Ar)=>{"use strict";var eo=bt(),Rr=Ve(),me=je(),fe=(t="",e="",s=!1)=>{let r=[];if(t=[].concat(t),e=[].concat(e),!e.length)return t;if(!t.length)return s?me.flatten(e).map(n=>`{${n}}`):e;for(let n of t)if(Array.isArray(n))for(let o of n)r.push(fe(o,e,s));else for(let o of e)s===!0&&typeof o=="string"&&(o=`{${o}}`),r.push(Array.isArray(o)?fe(n,o,s):n+o);return me.flatten(r)},to=(t,e={})=>{let s=e.rangeLimit===void 0?1e3:e.rangeLimit,r=(n,o={})=>{n.queue=[];let i=o,a=o.queue;for(;i.type!=="brace"&&i.type!=="root"&&i.parent;)i=i.parent,a=i.queue;if(n.invalid||n.dollar){a.push(fe(a.pop(),Rr(n,e)));return}if(n.type==="brace"&&n.invalid!==!0&&n.nodes.length===2){a.push(fe(a.pop(),["{}"]));return}if(n.nodes&&n.ranges>0){let d=me.reduce(n.nodes);if(me.exceedsLimit(...d,e.step,s))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let l=eo(...d,e);l.length===0&&(l=Rr(n,e)),a.push(fe(a.pop(),l)),n.nodes=[];return}let c=me.encloseBrace(n),u=n.queue,f=n;for(;f.type!=="brace"&&f.type!=="root"&&f.parent;)f=f.parent,u=f.queue;for(let d=0;d<n.nodes.length;d++){let l=n.nodes[d];if(l.type==="comma"&&n.type==="brace"){d===1&&u.push(""),u.push("");continue}if(l.type==="close"){a.push(fe(a.pop(),u,c));continue}if(l.value&&l.type!=="open"){u.push(fe(u.pop(),l.value));continue}l.nodes&&r(l,n)}return u};return me.flatten(r(t))};Ar.exports=to});var Cr=b((Nc,Sr)=>{"use strict";Sr.exports={MAX_LENGTH:1e4,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
2
- `,CHAR_NO_BREAK_SPACE:"\xA0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}});var kr=b((Pc,vr)=>{"use strict";var so=Ve(),{MAX_LENGTH:Ir,CHAR_BACKSLASH:vt,CHAR_BACKTICK:ro,CHAR_COMMA:no,CHAR_DOT:io,CHAR_LEFT_PARENTHESES:oo,CHAR_RIGHT_PARENTHESES:ao,CHAR_LEFT_CURLY_BRACE:co,CHAR_RIGHT_CURLY_BRACE:lo,CHAR_LEFT_SQUARE_BRACKET:xr,CHAR_RIGHT_SQUARE_BRACKET:br,CHAR_DOUBLE_QUOTE:uo,CHAR_SINGLE_QUOTE:fo,CHAR_NO_BREAK_SPACE:ho,CHAR_ZERO_WIDTH_NOBREAK_SPACE:po}=Cr(),_o=(t,e={})=>{if(typeof t!="string")throw new TypeError("Expected a string");let s=e||{},r=typeof s.maxLength=="number"?Math.min(Ir,s.maxLength):Ir;if(t.length>r)throw new SyntaxError(`Input length (${t.length}), exceeds max characters (${r})`);let n={type:"root",input:t,nodes:[]},o=[n],i=n,a=n,c=0,u=t.length,f=0,d=0,l,m=()=>t[f++],g=w=>{if(w.type==="text"&&a.type==="dot"&&(a.type="text"),a&&a.type==="text"&&w.type==="text"){a.value+=w.value;return}return i.nodes.push(w),w.parent=i,w.prev=a,a=w,w};for(g({type:"bos"});f<u;)if(i=o[o.length-1],l=m(),!(l===po||l===ho)){if(l===vt){g({type:"text",value:(e.keepEscaping?l:"")+m()});continue}if(l===br){g({type:"text",value:"\\"+l});continue}if(l===xr){c++;let w;for(;f<u&&(w=m());){if(l+=w,w===xr){c++;continue}if(w===vt){l+=m();continue}if(w===br&&(c--,c===0))break}g({type:"text",value:l});continue}if(l===oo){i=g({type:"paren",nodes:[]}),o.push(i),g({type:"text",value:l});continue}if(l===ao){if(i.type!=="paren"){g({type:"text",value:l});continue}i=o.pop(),g({type:"text",value:l}),i=o[o.length-1];continue}if(l===uo||l===fo||l===ro){let w=l,k;for(e.keepQuotes!==!0&&(l="");f<u&&(k=m());){if(k===vt){l+=k+m();continue}if(k===w){e.keepQuotes===!0&&(l+=k);break}l+=k}g({type:"text",value:l});continue}if(l===co){d++;let k={type:"brace",open:!0,close:!1,dollar:a.value&&a.value.slice(-1)==="$"||i.dollar===!0,depth:d,commas:0,ranges:0,nodes:[]};i=g(k),o.push(i),g({type:"open",value:l});continue}if(l===lo){if(i.type!=="brace"){g({type:"text",value:l});continue}let w="close";i=o.pop(),i.close=!0,g({type:w,value:l}),d--,i=o[o.length-1];continue}if(l===no&&d>0){if(i.ranges>0){i.ranges=0;let w=i.nodes.shift();i.nodes=[w,{type:"text",value:so(i)}]}g({type:"comma",value:l}),i.commas++;continue}if(l===io&&d>0&&i.commas===0){let w=i.nodes;if(d===0||w.length===0){g({type:"text",value:l});continue}if(a.type==="dot"){if(i.range=[],a.value+=l,a.type="range",i.nodes.length!==3&&i.nodes.length!==5){i.invalid=!0,i.ranges=0,a.type="text";continue}i.ranges++,i.args=[];continue}if(a.type==="range"){w.pop();let k=w[w.length-1];k.value+=a.value+l,a=k,i.ranges--;continue}g({type:"dot",value:l});continue}g({type:"text",value:l})}do if(i=o.pop(),i.type!=="root"){i.nodes.forEach(D=>{D.nodes||(D.type==="open"&&(D.isOpen=!0),D.type==="close"&&(D.isClose=!0),D.nodes||(D.type="text"),D.invalid=!0)});let w=o[o.length-1],k=w.nodes.indexOf(i);w.nodes.splice(k,1,...i.nodes)}while(o.length>0);return g({type:"eos"}),n};vr.exports=_o});var Or=b((Oc,Pr)=>{"use strict";var Nr=Ve(),Eo=wr(),go=Tr(),mo=kr(),Q=(t,e={})=>{let s=[];if(Array.isArray(t))for(let r of t){let n=Q.create(r,e);Array.isArray(n)?s.push(...n):s.push(n)}else s=[].concat(Q.create(t,e));return e&&e.expand===!0&&e.nodupes===!0&&(s=[...new Set(s)]),s};Q.parse=(t,e={})=>mo(t,e);Q.stringify=(t,e={})=>Nr(typeof t=="string"?Q.parse(t,e):t,e);Q.compile=(t,e={})=>(typeof t=="string"&&(t=Q.parse(t,e)),Eo(t,e));Q.expand=(t,e={})=>{typeof t=="string"&&(t=Q.parse(t,e));let s=go(t,e);return e.noempty===!0&&(s=s.filter(Boolean)),e.nodupes===!0&&(s=[...new Set(s)]),s};Q.create=(t,e={})=>t===""||t.length<3?[t]:e.expand!==!0?Q.compile(t,e):Q.expand(t,e);Pr.exports=Q});var Lr=b((Lc,yo)=>{yo.exports=["3dm","3ds","3g2","3gp","7z","a","aac","adp","afdesign","afphoto","afpub","ai","aif","aiff","alz","ape","apk","appimage","ar","arj","asf","au","avi","bak","baml","bh","bin","bk","bmp","btif","bz2","bzip2","cab","caf","cgm","class","cmx","cpio","cr2","cur","dat","dcm","deb","dex","djvu","dll","dmg","dng","doc","docm","docx","dot","dotm","dra","DS_Store","dsk","dts","dtshd","dvb","dwg","dxf","ecelp4800","ecelp7470","ecelp9600","egg","eol","eot","epub","exe","f4v","fbs","fh","fla","flac","flatpak","fli","flv","fpx","fst","fvt","g3","gh","gif","graffle","gz","gzip","h261","h263","h264","icns","ico","ief","img","ipa","iso","jar","jpeg","jpg","jpgv","jpm","jxr","key","ktx","lha","lib","lvp","lz","lzh","lzma","lzo","m3u","m4a","m4v","mar","mdi","mht","mid","midi","mj2","mka","mkv","mmr","mng","mobi","mov","movie","mp3","mp4","mp4a","mpeg","mpg","mpga","mxu","nef","npx","numbers","nupkg","o","odp","ods","odt","oga","ogg","ogv","otf","ott","pages","pbm","pcx","pdb","pdf","pea","pgm","pic","png","pnm","pot","potm","potx","ppa","ppam","ppm","pps","ppsm","ppsx","ppt","pptm","pptx","psd","pya","pyc","pyo","pyv","qt","rar","ras","raw","resources","rgb","rip","rlc","rmf","rmvb","rpm","rtf","rz","s3m","s7z","scpt","sgi","shar","snap","sil","sketch","slk","smv","snk","so","stl","suo","sub","swf","tar","tbz","tbz2","tga","tgz","thmx","tif","tiff","tlz","ttc","ttf","txz","udf","uvh","uvi","uvm","uvp","uvs","uvu","viv","vob","war","wav","wax","wbmp","wdp","weba","webm","webp","whl","wim","wm","wma","wmv","wmx","woff","woff2","wrm","wvx","xbm","xif","xla","xlam","xls","xlsb","xlsm","xlsx","xlt","xltm","xltx","xm","xmind","xpi","xpm","xwd","xz","z","zip","zipx"]});var Dr=b((Hc,Hr)=>{Hr.exports=Lr()});var $r=b((Dc,Fr)=>{"use strict";var wo=L("path"),Ro=Dr(),Ao=new Set(Ro);Fr.exports=t=>Ao.has(wo.extname(t).slice(1).toLowerCase())});var Xe=b(R=>{"use strict";var{sep:To}=L("path"),{platform:kt}=process,So=L("os");R.EV_ALL="all";R.EV_READY="ready";R.EV_ADD="add";R.EV_CHANGE="change";R.EV_ADD_DIR="addDir";R.EV_UNLINK="unlink";R.EV_UNLINK_DIR="unlinkDir";R.EV_RAW="raw";R.EV_ERROR="error";R.STR_DATA="data";R.STR_END="end";R.STR_CLOSE="close";R.FSEVENT_CREATED="created";R.FSEVENT_MODIFIED="modified";R.FSEVENT_DELETED="deleted";R.FSEVENT_MOVED="moved";R.FSEVENT_CLONED="cloned";R.FSEVENT_UNKNOWN="unknown";R.FSEVENT_FLAG_MUST_SCAN_SUBDIRS=1;R.FSEVENT_TYPE_FILE="file";R.FSEVENT_TYPE_DIRECTORY="directory";R.FSEVENT_TYPE_SYMLINK="symlink";R.KEY_LISTENERS="listeners";R.KEY_ERR="errHandlers";R.KEY_RAW="rawEmitters";R.HANDLER_KEYS=[R.KEY_LISTENERS,R.KEY_ERR,R.KEY_RAW];R.DOT_SLASH=`.${To}`;R.BACK_SLASH_RE=/\\/g;R.DOUBLE_SLASH_RE=/\/\//;R.SLASH_OR_BACK_SLASH_RE=/[/\\]/;R.DOT_RE=/\..*\.(sw[px])$|~$|\.subl.*\.tmp/;R.REPLACER_RE=/^\.[/\\]/;R.SLASH="/";R.SLASH_SLASH="//";R.BRACE_START="{";R.BANG="!";R.ONE_DOT=".";R.TWO_DOTS="..";R.STAR="*";R.GLOBSTAR="**";R.ROOT_GLOBSTAR="/**/*";R.SLASH_GLOBSTAR="/**";R.DIR_SUFFIX="Dir";R.ANYMATCH_OPTS={dot:!0};R.STRING_TYPE="string";R.FUNCTION_TYPE="function";R.EMPTY_STR="";R.EMPTY_FN=()=>{};R.IDENTITY_FN=t=>t;R.isWindows=kt==="win32";R.isMacos=kt==="darwin";R.isLinux=kt==="linux";R.isIBMi=So.type()==="OS400"});var qr=b(($c,Gr)=>{"use strict";var ie=L("fs"),U=L("path"),{promisify:ve}=L("util"),Co=$r(),{isWindows:Io,isLinux:xo,EMPTY_FN:bo,EMPTY_STR:vo,KEY_LISTENERS:ye,KEY_ERR:Nt,KEY_RAW:Ie,HANDLER_KEYS:ko,EV_CHANGE:Ze,EV_ADD:Qe,EV_ADD_DIR:No,EV_ERROR:Ur,STR_DATA:Po,STR_END:Oo,BRACE_START:Lo,STAR:Ho}=Xe(),Do="watch",Fo=ve(ie.open),Br=ve(ie.stat),$o=ve(ie.lstat),Mo=ve(ie.close),Pt=ve(ie.realpath),Uo={lstat:$o,stat:Br},Lt=(t,e)=>{t instanceof Set?t.forEach(e):e(t)},xe=(t,e,s)=>{let r=t[e];r instanceof Set||(t[e]=r=new Set([r])),r.add(s)},Bo=t=>e=>{let s=t[e];s instanceof Set?s.clear():delete t[e]},be=(t,e,s)=>{let r=t[e];r instanceof Set?r.delete(s):r===s&&delete t[e]},Wr=t=>t instanceof Set?t.size===0:!t,Je=new Map;function Mr(t,e,s,r,n){let o=(i,a)=>{s(t),n(i,a,{watchedPath:t}),a&&t!==a&&et(U.resolve(t,a),ye,U.join(t,a))};try{return ie.watch(t,e,o)}catch(i){r(i)}}var et=(t,e,s,r,n)=>{let o=Je.get(t);o&&Lt(o[e],i=>{i(s,r,n)})},Wo=(t,e,s,r)=>{let{listener:n,errHandler:o,rawEmitter:i}=r,a=Je.get(e),c;if(!s.persistent)return c=Mr(t,s,n,o,i),c.close.bind(c);if(a)xe(a,ye,n),xe(a,Nt,o),xe(a,Ie,i);else{if(c=Mr(t,s,et.bind(null,e,ye),o,et.bind(null,e,Ie)),!c)return;c.on(Ur,async u=>{let f=et.bind(null,e,Nt);if(a.watcherUnusable=!0,Io&&u.code==="EPERM")try{let d=await Fo(t,"r");await Mo(d),f(u)}catch{}else f(u)}),a={listeners:n,errHandlers:o,rawEmitters:i,watcher:c},Je.set(e,a)}return()=>{be(a,ye,n),be(a,Nt,o),be(a,Ie,i),Wr(a.listeners)&&(a.watcher.close(),Je.delete(e),ko.forEach(Bo(a)),a.watcher=void 0,Object.freeze(a))}},Ot=new Map,Go=(t,e,s,r)=>{let{listener:n,rawEmitter:o}=r,i=Ot.get(e),a=new Set,c=new Set,u=i&&i.options;return u&&(u.persistent<s.persistent||u.interval>s.interval)&&(a=i.listeners,c=i.rawEmitters,ie.unwatchFile(e),i=void 0),i?(xe(i,ye,n),xe(i,Ie,o)):(i={listeners:n,rawEmitters:o,options:s,watcher:ie.watchFile(e,s,(f,d)=>{Lt(i.rawEmitters,m=>{m(Ze,e,{curr:f,prev:d})});let l=f.mtimeMs;(f.size!==d.size||l>d.mtimeMs||l===0)&&Lt(i.listeners,m=>m(t,f))})},Ot.set(e,i)),()=>{be(i,ye,n),be(i,Ie,o),Wr(i.listeners)&&(Ot.delete(e),ie.unwatchFile(e),i.options=i.watcher=void 0,Object.freeze(i))}},Ht=class{constructor(e){this.fsw=e,this._boundHandleError=s=>e._handleError(s)}_watchWithNodeFs(e,s){let r=this.fsw.options,n=U.dirname(e),o=U.basename(e);this.fsw._getWatchedDir(n).add(o);let a=U.resolve(e),c={persistent:r.persistent};s||(s=bo);let u;return r.usePolling?(c.interval=r.enableBinaryInterval&&Co(o)?r.binaryInterval:r.interval,u=Go(e,a,c,{listener:s,rawEmitter:this.fsw._emitRaw})):u=Wo(e,a,c,{listener:s,errHandler:this._boundHandleError,rawEmitter:this.fsw._emitRaw}),u}_handleFile(e,s,r){if(this.fsw.closed)return;let n=U.dirname(e),o=U.basename(e),i=this.fsw._getWatchedDir(n),a=s;if(i.has(o))return;let c=async(f,d)=>{if(this.fsw._throttle(Do,e,5)){if(!d||d.mtimeMs===0)try{let l=await Br(e);if(this.fsw.closed)return;let m=l.atimeMs,g=l.mtimeMs;(!m||m<=g||g!==a.mtimeMs)&&this.fsw._emit(Ze,e,l),xo&&a.ino!==l.ino?(this.fsw._closeFile(f),a=l,this.fsw._addPathCloser(f,this._watchWithNodeFs(e,c))):a=l}catch{this.fsw._remove(n,o)}else if(i.has(o)){let l=d.atimeMs,m=d.mtimeMs;(!l||l<=m||m!==a.mtimeMs)&&this.fsw._emit(Ze,e,d),a=d}}},u=this._watchWithNodeFs(e,c);if(!(r&&this.fsw.options.ignoreInitial)&&this.fsw._isntIgnored(e)){if(!this.fsw._throttle(Qe,e,0))return;this.fsw._emit(Qe,e,s)}return u}async _handleSymlink(e,s,r,n){if(this.fsw.closed)return;let o=e.fullPath,i=this.fsw._getWatchedDir(s);if(!this.fsw.options.followSymlinks){this.fsw._incrReadyCount();let a;try{a=await Pt(r)}catch{return this.fsw._emitReady(),!0}return this.fsw.closed?void 0:(i.has(n)?this.fsw._symlinkPaths.get(o)!==a&&(this.fsw._symlinkPaths.set(o,a),this.fsw._emit(Ze,r,e.stats)):(i.add(n),this.fsw._symlinkPaths.set(o,a),this.fsw._emit(Qe,r,e.stats)),this.fsw._emitReady(),!0)}if(this.fsw._symlinkPaths.has(o))return!0;this.fsw._symlinkPaths.set(o,!0)}_handleRead(e,s,r,n,o,i,a){if(e=U.join(e,vo),!r.hasGlob&&(a=this.fsw._throttle("readdir",e,1e3),!a))return;let c=this.fsw._getWatchedDir(r.path),u=new Set,f=this.fsw._readdirp(e,{fileFilter:d=>r.filterPath(d),directoryFilter:d=>r.filterDir(d),depth:0}).on(Po,async d=>{if(this.fsw.closed){f=void 0;return}let l=d.path,m=U.join(e,l);if(u.add(l),!(d.stats.isSymbolicLink()&&await this._handleSymlink(d,e,m,l))){if(this.fsw.closed){f=void 0;return}(l===n||!n&&!c.has(l))&&(this.fsw._incrReadyCount(),m=U.join(o,U.relative(o,m)),this._addToNodeFs(m,s,r,i+1))}}).on(Ur,this._boundHandleError);return new Promise(d=>f.once(Oo,()=>{if(this.fsw.closed){f=void 0;return}let l=a?a.clear():!1;d(),c.getChildren().filter(m=>m!==e&&!u.has(m)&&(!r.hasGlob||r.filterPath({fullPath:U.resolve(e,m)}))).forEach(m=>{this.fsw._remove(e,m)}),f=void 0,l&&this._handleRead(e,!1,r,n,o,i,a)}))}async _handleDir(e,s,r,n,o,i,a){let c=this.fsw._getWatchedDir(U.dirname(e)),u=c.has(U.basename(e));!(r&&this.fsw.options.ignoreInitial)&&!o&&!u&&(!i.hasGlob||i.globFilter(e))&&this.fsw._emit(No,e,s),c.add(U.basename(e)),this.fsw._getWatchedDir(e);let f,d,l=this.fsw.options.depth;if((l==null||n<=l)&&!this.fsw._symlinkPaths.has(a)){if(!o&&(await this._handleRead(e,r,i,o,e,n,f),this.fsw.closed))return;d=this._watchWithNodeFs(e,(m,g)=>{g&&g.mtimeMs===0||this._handleRead(m,!1,i,o,e,n,f)})}return d}async _addToNodeFs(e,s,r,n,o){let i=this.fsw._emitReady;if(this.fsw._isIgnored(e)||this.fsw.closed)return i(),!1;let a=this.fsw._getWatchHelpers(e,n);!a.hasGlob&&r&&(a.hasGlob=r.hasGlob,a.globFilter=r.globFilter,a.filterPath=c=>r.filterPath(c),a.filterDir=c=>r.filterDir(c));try{let c=await Uo[a.statMethod](a.watchPath);if(this.fsw.closed)return;if(this.fsw._isIgnored(a.watchPath,c))return i(),!1;let u=this.fsw.options.followSymlinks&&!e.includes(Ho)&&!e.includes(Lo),f;if(c.isDirectory()){let d=U.resolve(e),l=u?await Pt(e):e;if(this.fsw.closed||(f=await this._handleDir(a.watchPath,c,s,n,o,a,l),this.fsw.closed))return;d!==l&&l!==void 0&&this.fsw._symlinkPaths.set(d,l)}else if(c.isSymbolicLink()){let d=u?await Pt(e):e;if(this.fsw.closed)return;let l=U.dirname(a.watchPath);if(this.fsw._getWatchedDir(l).add(a.watchPath),this.fsw._emit(Qe,a.watchPath,c),f=await this._handleDir(l,c,s,n,e,a,d),this.fsw.closed)return;d!==void 0&&this.fsw._symlinkPaths.set(U.resolve(e),d)}else f=this._handleFile(a.watchPath,c,s);return i(),this.fsw._addPathCloser(e,f),!1}catch(c){if(this.fsw._handleError(c))return i(),e}}};Gr.exports=Ht});var Qr=b((Mc,Gt)=>{"use strict";var Bt=L("fs"),B=L("path"),{promisify:Wt}=L("util"),we;try{we=L("fsevents")}catch(t){process.env.CHOKIDAR_PRINT_FSEVENTS_REQUIRE_ERROR&&console.error(t)}if(we){let t=process.version.match(/v(\d+)\.(\d+)/);if(t&&t[1]&&t[2]){let e=Number.parseInt(t[1],10),s=Number.parseInt(t[2],10);e===8&&s<16&&(we=void 0)}}var{EV_ADD:Dt,EV_CHANGE:qo,EV_ADD_DIR:Kr,EV_UNLINK:tt,EV_ERROR:Ko,STR_DATA:jo,STR_END:Vo,FSEVENT_CREATED:Yo,FSEVENT_MODIFIED:zo,FSEVENT_DELETED:Xo,FSEVENT_MOVED:Qo,FSEVENT_UNKNOWN:Zo,FSEVENT_FLAG_MUST_SCAN_SUBDIRS:Jo,FSEVENT_TYPE_FILE:ea,FSEVENT_TYPE_DIRECTORY:ke,FSEVENT_TYPE_SYMLINK:Xr,ROOT_GLOBSTAR:jr,DIR_SUFFIX:ta,DOT_SLASH:Vr,FUNCTION_TYPE:Ft,EMPTY_FN:sa,IDENTITY_FN:ra}=Xe(),na=t=>isNaN(t)?{}:{depth:t},Mt=Wt(Bt.stat),ia=Wt(Bt.lstat),Yr=Wt(Bt.realpath),oa={stat:Mt,lstat:ia},de=new Map,aa=10,ca=new Set([69888,70400,71424,72704,73472,131328,131840,262912]),la=(t,e)=>({stop:we.watch(t,e)});function ua(t,e,s,r){let n=B.extname(e)?B.dirname(e):e,o=B.dirname(n),i=de.get(n);fa(o)&&(n=o);let a=B.resolve(t),c=a!==e,u=(d,l,m)=>{c&&(d=d.replace(e,a)),(d===a||!d.indexOf(a+B.sep))&&s(d,l,m)},f=!1;for(let d of de.keys())if(e.indexOf(B.resolve(d)+B.sep)===0){n=d,i=de.get(n),f=!0;break}return i||f?i.listeners.add(u):(i={listeners:new Set([u]),rawEmitter:r,watcher:la(n,(d,l)=>{if(!i.listeners.size||l&Jo)return;let m=we.getInfo(d,l);i.listeners.forEach(g=>{g(d,l,m)}),i.rawEmitter(m.event,d,m)})},de.set(n,i)),()=>{let d=i.listeners;if(d.delete(u),!d.size&&(de.delete(n),i.watcher))return i.watcher.stop().then(()=>{i.rawEmitter=i.watcher=void 0,Object.freeze(i)})}}var fa=t=>{let e=0;for(let s of de.keys())if(s.indexOf(t)===0&&(e++,e>=aa))return!0;return!1},da=()=>we&&de.size<128,$t=(t,e)=>{let s=0;for(;!t.indexOf(e)&&(t=B.dirname(t))!==e;)s++;return s},zr=(t,e)=>t.type===ke&&e.isDirectory()||t.type===Xr&&e.isSymbolicLink()||t.type===ea&&e.isFile(),Ut=class{constructor(e){this.fsw=e}checkIgnored(e,s){let r=this.fsw._ignoredPaths;if(this.fsw._isIgnored(e,s))return r.add(e),s&&s.isDirectory()&&r.add(e+jr),!0;r.delete(e),r.delete(e+jr)}addOrChange(e,s,r,n,o,i,a,c){let u=o.has(i)?qo:Dt;this.handleEvent(u,e,s,r,n,o,i,a,c)}async checkExists(e,s,r,n,o,i,a,c){try{let u=await Mt(e);if(this.fsw.closed)return;zr(a,u)?this.addOrChange(e,s,r,n,o,i,a,c):this.handleEvent(tt,e,s,r,n,o,i,a,c)}catch(u){u.code==="EACCES"?this.addOrChange(e,s,r,n,o,i,a,c):this.handleEvent(tt,e,s,r,n,o,i,a,c)}}handleEvent(e,s,r,n,o,i,a,c,u){if(!(this.fsw.closed||this.checkIgnored(s)))if(e===tt){let f=c.type===ke;(f||i.has(a))&&this.fsw._remove(o,a,f)}else{if(e===Dt){if(c.type===ke&&this.fsw._getWatchedDir(s),c.type===Xr&&u.followSymlinks){let d=u.depth===void 0?void 0:$t(r,n)+1;return this._addToFsEvents(s,!1,!0,d)}this.fsw._getWatchedDir(o).add(a)}let f=c.type===ke?e+ta:e;this.fsw._emit(f,s),f===Kr&&this._addToFsEvents(s,!1,!0)}}_watchWithFsEvents(e,s,r,n){if(this.fsw.closed||this.fsw._isIgnored(e))return;let o=this.fsw.options,a=ua(e,s,async(c,u,f)=>{if(this.fsw.closed||o.depth!==void 0&&$t(c,s)>o.depth)return;let d=r(B.join(e,B.relative(e,c)));if(n&&!n(d))return;let l=B.dirname(d),m=B.basename(d),g=this.fsw._getWatchedDir(f.type===ke?d:l);if(ca.has(u)||f.event===Zo)if(typeof o.ignored===Ft){let w;try{w=await Mt(d)}catch{}if(this.fsw.closed||this.checkIgnored(d,w))return;zr(f,w)?this.addOrChange(d,c,s,l,g,m,f,o):this.handleEvent(tt,d,c,s,l,g,m,f,o)}else this.checkExists(d,c,s,l,g,m,f,o);else switch(f.event){case Yo:case zo:return this.addOrChange(d,c,s,l,g,m,f,o);case Xo:case Qo:return this.checkExists(d,c,s,l,g,m,f,o)}},this.fsw._emitRaw);return this.fsw._emitReady(),a}async _handleFsEventsSymlink(e,s,r,n){if(!(this.fsw.closed||this.fsw._symlinkPaths.has(s))){this.fsw._symlinkPaths.set(s,!0),this.fsw._incrReadyCount();try{let o=await Yr(e);if(this.fsw.closed)return;if(this.fsw._isIgnored(o))return this.fsw._emitReady();this.fsw._incrReadyCount(),this._addToFsEvents(o||e,i=>{let a=e;return o&&o!==Vr?a=i.replace(o,e):i!==Vr&&(a=B.join(e,i)),r(a)},!1,n)}catch(o){if(this.fsw._handleError(o))return this.fsw._emitReady()}}}emitAdd(e,s,r,n,o){let i=r(e),a=s.isDirectory(),c=this.fsw._getWatchedDir(B.dirname(i)),u=B.basename(i);a&&this.fsw._getWatchedDir(i),!c.has(u)&&(c.add(u),(!n.ignoreInitial||o===!0)&&this.fsw._emit(a?Kr:Dt,i,s))}initWatch(e,s,r,n){if(this.fsw.closed)return;let o=this._watchWithFsEvents(r.watchPath,B.resolve(e||r.watchPath),n,r.globFilter);this.fsw._addPathCloser(s,o)}async _addToFsEvents(e,s,r,n){if(this.fsw.closed)return;let o=this.fsw.options,i=typeof s===Ft?s:ra,a=this.fsw._getWatchHelpers(e);try{let c=await oa[a.statMethod](a.watchPath);if(this.fsw.closed)return;if(this.fsw._isIgnored(a.watchPath,c))throw null;if(c.isDirectory()){if(a.globFilter||this.emitAdd(i(e),c,i,o,r),n&&n>o.depth)return;this.fsw._readdirp(a.watchPath,{fileFilter:u=>a.filterPath(u),directoryFilter:u=>a.filterDir(u),...na(o.depth-(n||0))}).on(jo,u=>{if(this.fsw.closed||u.stats.isDirectory()&&!a.filterPath(u))return;let f=B.join(a.watchPath,u.path),{fullPath:d}=u;if(a.followSymlinks&&u.stats.isSymbolicLink()){let l=o.depth===void 0?void 0:$t(f,B.resolve(a.watchPath))+1;this._handleFsEventsSymlink(f,d,i,l)}else this.emitAdd(f,u.stats,i,o,r)}).on(Ko,sa).on(Vo,()=>{this.fsw._emitReady()})}else this.emitAdd(a.watchPath,c,i,o,r),this.fsw._emitReady()}catch(c){(!c||this.fsw._handleError(c))&&(this.fsw._emitReady(),this.fsw._emitReady())}if(o.persistent&&r!==!0)if(typeof s===Ft)this.initWatch(void 0,e,a,i);else{let c;try{c=await Yr(a.watchPath)}catch{}this.initWatch(c,e,a,i)}}};Gt.exports=Ut;Gt.exports.canUse=da});var ln=b(ns=>{"use strict";var{EventEmitter:ha}=L("events"),ss=L("fs"),v=L("path"),{promisify:nn}=L("util"),pa=$s(),zt=Ks().default,_a=Qs(),qt=Tt(),Ea=Or(),ga=Rt(),ma=qr(),Zr=Qr(),{EV_ALL:Kt,EV_READY:ya,EV_ADD:st,EV_CHANGE:Ne,EV_UNLINK:Jr,EV_ADD_DIR:wa,EV_UNLINK_DIR:Ra,EV_RAW:Aa,EV_ERROR:jt,STR_CLOSE:Ta,STR_END:Sa,BACK_SLASH_RE:Ca,DOUBLE_SLASH_RE:en,SLASH_OR_BACK_SLASH_RE:Ia,DOT_RE:xa,REPLACER_RE:ba,SLASH:Vt,SLASH_SLASH:va,BRACE_START:ka,BANG:Xt,ONE_DOT:on,TWO_DOTS:Na,GLOBSTAR:Pa,SLASH_GLOBSTAR:Yt,ANYMATCH_OPTS:Qt,STRING_TYPE:rs,FUNCTION_TYPE:Oa,EMPTY_STR:Zt,EMPTY_FN:La,isWindows:Ha,isMacos:Da,isIBMi:Fa}=Xe(),$a=nn(ss.stat),Ma=nn(ss.readdir),Jt=(t=[])=>Array.isArray(t)?t:[t],an=(t,e=[])=>(t.forEach(s=>{Array.isArray(s)?an(s,e):e.push(s)}),e),tn=t=>{let e=an(Jt(t));if(!e.every(s=>typeof s===rs))throw new TypeError(`Non-string provided as watch path: ${e}`);return e.map(cn)},sn=t=>{let e=t.replace(Ca,Vt),s=!1;for(e.startsWith(va)&&(s=!0);e.match(en);)e=e.replace(en,Vt);return s&&(e=Vt+e),e},cn=t=>sn(v.normalize(sn(t))),rn=(t=Zt)=>e=>typeof e!==rs?e:cn(v.isAbsolute(e)?e:v.join(t,e)),Ua=(t,e)=>v.isAbsolute(t)?t:t.startsWith(Xt)?Xt+v.join(e,t.slice(1)):v.join(e,t),J=(t,e)=>t[e]===void 0,es=class{constructor(e,s){this.path=e,this._removeWatcher=s,this.items=new Set}add(e){let{items:s}=this;s&&e!==on&&e!==Na&&s.add(e)}async remove(e){let{items:s}=this;if(!s||(s.delete(e),s.size>0))return;let r=this.path;try{await Ma(r)}catch{this._removeWatcher&&this._removeWatcher(v.dirname(r),v.basename(r))}}has(e){let{items:s}=this;if(s)return s.has(e)}getChildren(){let{items:e}=this;if(e)return[...e.values()]}dispose(){this.items.clear(),delete this.path,delete this._removeWatcher,delete this.items,Object.freeze(this)}},Ba="stat",Wa="lstat",ts=class{constructor(e,s,r,n){this.fsw=n,this.path=e=e.replace(ba,Zt),this.watchPath=s,this.fullWatchPath=v.resolve(s),this.hasGlob=s!==e,e===Zt&&(this.hasGlob=!1),this.globSymlink=this.hasGlob&&r?void 0:!1,this.globFilter=this.hasGlob?zt(e,void 0,Qt):!1,this.dirParts=this.getDirParts(e),this.dirParts.forEach(o=>{o.length>1&&o.pop()}),this.followSymlinks=r,this.statMethod=r?Ba:Wa}checkGlobSymlink(e){return this.globSymlink===void 0&&(this.globSymlink=e.fullParentDir===this.fullWatchPath?!1:{realPath:e.fullParentDir,linkPath:this.fullWatchPath}),this.globSymlink?e.fullPath.replace(this.globSymlink.realPath,this.globSymlink.linkPath):e.fullPath}entryPath(e){return v.join(this.watchPath,v.relative(this.watchPath,this.checkGlobSymlink(e)))}filterPath(e){let{stats:s}=e;if(s&&s.isSymbolicLink())return this.filterDir(e);let r=this.entryPath(e);return(this.hasGlob&&typeof this.globFilter===Oa?this.globFilter(r):!0)&&this.fsw._isntIgnored(r,s)&&this.fsw._hasReadPermissions(s)}getDirParts(e){if(!this.hasGlob)return[];let s=[];return(e.includes(ka)?Ea.expand(e):[e]).forEach(n=>{s.push(v.relative(this.watchPath,n).split(Ia))}),s}filterDir(e){if(this.hasGlob){let s=this.getDirParts(this.checkGlobSymlink(e)),r=!1;this.unmatchedGlob=!this.dirParts.some(n=>n.every((o,i)=>(o===Pa&&(r=!0),r||!s[0][i]||zt(o,s[0][i],Qt))))}return!this.unmatchedGlob&&this.fsw._isntIgnored(this.entryPath(e),e.stats)}},rt=class extends ha{constructor(e){super();let s={};e&&Object.assign(s,e),this._watched=new Map,this._closers=new Map,this._ignoredPaths=new Set,this._throttled=new Map,this._symlinkPaths=new Map,this._streams=new Set,this.closed=!1,J(s,"persistent")&&(s.persistent=!0),J(s,"ignoreInitial")&&(s.ignoreInitial=!1),J(s,"ignorePermissionErrors")&&(s.ignorePermissionErrors=!1),J(s,"interval")&&(s.interval=100),J(s,"binaryInterval")&&(s.binaryInterval=300),J(s,"disableGlobbing")&&(s.disableGlobbing=!1),s.enableBinaryInterval=s.binaryInterval!==s.interval,J(s,"useFsEvents")&&(s.useFsEvents=!s.usePolling),Zr.canUse()||(s.useFsEvents=!1),J(s,"usePolling")&&!s.useFsEvents&&(s.usePolling=Da),Fa&&(s.usePolling=!0);let n=process.env.CHOKIDAR_USEPOLLING;if(n!==void 0){let c=n.toLowerCase();c==="false"||c==="0"?s.usePolling=!1:c==="true"||c==="1"?s.usePolling=!0:s.usePolling=!!c}let o=process.env.CHOKIDAR_INTERVAL;o&&(s.interval=Number.parseInt(o,10)),J(s,"atomic")&&(s.atomic=!s.usePolling&&!s.useFsEvents),s.atomic&&(this._pendingUnlinks=new Map),J(s,"followSymlinks")&&(s.followSymlinks=!0),J(s,"awaitWriteFinish")&&(s.awaitWriteFinish=!1),s.awaitWriteFinish===!0&&(s.awaitWriteFinish={});let i=s.awaitWriteFinish;i&&(i.stabilityThreshold||(i.stabilityThreshold=2e3),i.pollInterval||(i.pollInterval=100),this._pendingWrites=new Map),s.ignored&&(s.ignored=Jt(s.ignored));let a=0;this._emitReady=()=>{a++,a>=this._readyCount&&(this._emitReady=La,this._readyEmitted=!0,process.nextTick(()=>this.emit(ya)))},this._emitRaw=(...c)=>this.emit(Aa,...c),this._readyEmitted=!1,this.options=s,s.useFsEvents?this._fsEventsHandler=new Zr(this):this._nodeFsHandler=new ma(this),Object.freeze(s)}add(e,s,r){let{cwd:n,disableGlobbing:o}=this.options;this.closed=!1;let i=tn(e);return n&&(i=i.map(a=>{let c=Ua(a,n);return o||!qt(a)?c:ga(c)})),i=i.filter(a=>a.startsWith(Xt)?(this._ignoredPaths.add(a.slice(1)),!1):(this._ignoredPaths.delete(a),this._ignoredPaths.delete(a+Yt),this._userIgnored=void 0,!0)),this.options.useFsEvents&&this._fsEventsHandler?(this._readyCount||(this._readyCount=i.length),this.options.persistent&&(this._readyCount+=i.length),i.forEach(a=>this._fsEventsHandler._addToFsEvents(a))):(this._readyCount||(this._readyCount=0),this._readyCount+=i.length,Promise.all(i.map(async a=>{let c=await this._nodeFsHandler._addToNodeFs(a,!r,0,0,s);return c&&this._emitReady(),c})).then(a=>{this.closed||a.filter(c=>c).forEach(c=>{this.add(v.dirname(c),v.basename(s||c))})})),this}unwatch(e){if(this.closed)return this;let s=tn(e),{cwd:r}=this.options;return s.forEach(n=>{!v.isAbsolute(n)&&!this._closers.has(n)&&(r&&(n=v.join(r,n)),n=v.resolve(n)),this._closePath(n),this._ignoredPaths.add(n),this._watched.has(n)&&this._ignoredPaths.add(n+Yt),this._userIgnored=void 0}),this}close(){if(this.closed)return this._closePromise;this.closed=!0,this.removeAllListeners();let e=[];return this._closers.forEach(s=>s.forEach(r=>{let n=r();n instanceof Promise&&e.push(n)})),this._streams.forEach(s=>s.destroy()),this._userIgnored=void 0,this._readyCount=0,this._readyEmitted=!1,this._watched.forEach(s=>s.dispose()),["closers","watched","streams","symlinkPaths","throttled"].forEach(s=>{this[`_${s}`].clear()}),this._closePromise=e.length?Promise.all(e).then(()=>{}):Promise.resolve(),this._closePromise}getWatched(){let e={};return this._watched.forEach((s,r)=>{let n=this.options.cwd?v.relative(this.options.cwd,r):r;e[n||on]=s.getChildren().sort()}),e}emitWithAll(e,s){this.emit(...s),e!==jt&&this.emit(Kt,...s)}async _emit(e,s,r,n,o){if(this.closed)return;let i=this.options;Ha&&(s=v.normalize(s)),i.cwd&&(s=v.relative(i.cwd,s));let a=[e,s];o!==void 0?a.push(r,n,o):n!==void 0?a.push(r,n):r!==void 0&&a.push(r);let c=i.awaitWriteFinish,u;if(c&&(u=this._pendingWrites.get(s)))return u.lastChange=new Date,this;if(i.atomic){if(e===Jr)return this._pendingUnlinks.set(s,a),setTimeout(()=>{this._pendingUnlinks.forEach((f,d)=>{this.emit(...f),this.emit(Kt,...f),this._pendingUnlinks.delete(d)})},typeof i.atomic=="number"?i.atomic:100),this;e===st&&this._pendingUnlinks.has(s)&&(e=a[0]=Ne,this._pendingUnlinks.delete(s))}if(c&&(e===st||e===Ne)&&this._readyEmitted){let f=(d,l)=>{d?(e=a[0]=jt,a[1]=d,this.emitWithAll(e,a)):l&&(a.length>2?a[2]=l:a.push(l),this.emitWithAll(e,a))};return this._awaitWriteFinish(s,c.stabilityThreshold,e,f),this}if(e===Ne&&!this._throttle(Ne,s,50))return this;if(i.alwaysStat&&r===void 0&&(e===st||e===wa||e===Ne)){let f=i.cwd?v.join(i.cwd,s):s,d;try{d=await $a(f)}catch{}if(!d||this.closed)return;a.push(d)}return this.emitWithAll(e,a),this}_handleError(e){let s=e&&e.code;return e&&s!=="ENOENT"&&s!=="ENOTDIR"&&(!this.options.ignorePermissionErrors||s!=="EPERM"&&s!=="EACCES")&&this.emit(jt,e),e||this.closed}_throttle(e,s,r){this._throttled.has(e)||this._throttled.set(e,new Map);let n=this._throttled.get(e),o=n.get(s);if(o)return o.count++,!1;let i,a=()=>{let u=n.get(s),f=u?u.count:0;return n.delete(s),clearTimeout(i),u&&clearTimeout(u.timeoutObject),f};i=setTimeout(a,r);let c={timeoutObject:i,clear:a,count:0};return n.set(s,c),c}_incrReadyCount(){return this._readyCount++}_awaitWriteFinish(e,s,r,n){let o,i=e;this.options.cwd&&!v.isAbsolute(e)&&(i=v.join(this.options.cwd,e));let a=new Date,c=u=>{ss.stat(i,(f,d)=>{if(f||!this._pendingWrites.has(e)){f&&f.code!=="ENOENT"&&n(f);return}let l=Number(new Date);u&&d.size!==u.size&&(this._pendingWrites.get(e).lastChange=l);let m=this._pendingWrites.get(e);l-m.lastChange>=s?(this._pendingWrites.delete(e),n(void 0,d)):o=setTimeout(c,this.options.awaitWriteFinish.pollInterval,d)})};this._pendingWrites.has(e)||(this._pendingWrites.set(e,{lastChange:a,cancelWait:()=>(this._pendingWrites.delete(e),clearTimeout(o),r)}),o=setTimeout(c,this.options.awaitWriteFinish.pollInterval))}_getGlobIgnored(){return[...this._ignoredPaths.values()]}_isIgnored(e,s){if(this.options.atomic&&xa.test(e))return!0;if(!this._userIgnored){let{cwd:r}=this.options,n=this.options.ignored,o=n&&n.map(rn(r)),i=Jt(o).filter(c=>typeof c===rs&&!qt(c)).map(c=>c+Yt),a=this._getGlobIgnored().map(rn(r)).concat(o,i);this._userIgnored=zt(a,void 0,Qt)}return this._userIgnored([e,s])}_isntIgnored(e,s){return!this._isIgnored(e,s)}_getWatchHelpers(e,s){let r=s||this.options.disableGlobbing||!qt(e)?e:_a(e),n=this.options.followSymlinks;return new ts(e,r,n,this)}_getWatchedDir(e){this._boundRemove||(this._boundRemove=this._remove.bind(this));let s=v.resolve(e);return this._watched.has(s)||this._watched.set(s,new es(s,this._boundRemove)),this._watched.get(s)}_hasReadPermissions(e){if(this.options.ignorePermissionErrors)return!0;let r=(e&&Number.parseInt(e.mode,10))&511;return!!(4&Number.parseInt(r.toString(8)[0],10))}_remove(e,s,r){let n=v.join(e,s),o=v.resolve(n);if(r=r??(this._watched.has(n)||this._watched.has(o)),!this._throttle("remove",n,100))return;!r&&!this.options.useFsEvents&&this._watched.size===1&&this.add(e,s,!0),this._getWatchedDir(n).getChildren().forEach(l=>this._remove(n,l));let c=this._getWatchedDir(e),u=c.has(s);c.remove(s),this._symlinkPaths.has(o)&&this._symlinkPaths.delete(o);let f=n;if(this.options.cwd&&(f=v.relative(this.options.cwd,n)),this.options.awaitWriteFinish&&this._pendingWrites.has(f)&&this._pendingWrites.get(f).cancelWait()===st)return;this._watched.delete(n),this._watched.delete(o);let d=r?Ra:Jr;u&&!this._isIgnored(n)&&this._emit(d,n),this.options.useFsEvents||this._closePath(n)}_closePath(e){this._closeFile(e);let s=v.dirname(e);this._getWatchedDir(s).remove(v.basename(e))}_closeFile(e){let s=this._closers.get(e);s&&(s.forEach(r=>r()),this._closers.delete(e))}_addPathCloser(e,s){if(!s)return;let r=this._closers.get(e);r||(r=[],this._closers.set(e,r)),r.push(s)}_readdirp(e,s){if(this.closed)return;let r={type:Kt,alwaysStat:!0,lstat:!0,...s},n=pa(e,r);return this._streams.add(n),n.once(Ta,()=>{n=void 0}),n.once(Sa,()=>{n&&(this._streams.delete(n),n=void 0)}),n}};ns.FSWatcher=rt;var Ga=(t,e)=>{let s=new rt(e);return s.add(t),s};ns.watch=Ga});import"only-server";import"../common/index.mjs";var dn=On(ln(),1);import{fork as Ka}from"node:child_process";import{existsSync as un,promises as ja}from"node:fs";import{basename as os,dirname as cs,join as as,relative as fn}from"node:path";import{build as Va}from"esbuild";import{jwtDecode as Ya}from"jwt-decode";import{Issuer as za,custom as Xa}from"openid-client";import{Logger as Qa}from"@5minds/processcube_engine_sdk";import{EngineClient as qa}from"@5minds/processcube_engine_client";var is=process.env.PROCESSCUBE_ENGINE_URL??"http://localhost:10560",C=new qa(is);var Za={token:"ZHVtbXlfdG9rZW4=",userId:"dummy_token"},Ja=.85,nt=["external_task.ts","external_task.js"],ls=process.env.PROCESSCUBE_AUTHORITY_URL!==void 0,pe=new Qa("processcube_app_sdk:external_task_adapter"),he={},Pe;async function hn(t){if(t&&!un(t))throw new Error(`Invalid customExternalTasksDirPath. The given path '${t}' does not exist`);Xa.setHttpOptionsDefaults({timeout:1e5});let e=await En();Pe=await gn(e),await tc(e);let s=rc(t);(0,dn.watch)(s).on("add",async r=>{if(nt.includes(os(r)))return pn(r,s)}).on("change",async r=>{if(nt.includes(os(r)))return ec(r,s)}).on("unlink",async r=>{nt.includes(os(r))&&_n(r)}).on("error",r=>pe.error(`Watcher error: ${r}`))}async function pn(t,e){let s=cs(t);if((await ja.readdir(s)).filter(f=>nt.includes(f)).length>1){pe.error(`Multiple external task files found in directory ${s}. Stopping all external task workers for this directory.`),he[s]&&_n(t);return}let o=await mn(t),i=fn(e,s),a=yn(i),c=as(__dirname,"lib/ExternalTaskWorkerProcess.cjs"),u=Ka(c,{env:{...process.env,PROCESSCUBE_ENGINE_URL:is}});he[s]=u,u.once("disconnect",()=>{delete he[s]}),u.send({action:"create",payload:{topic:a,identity:Pe,moduleString:o,workerPath:t}})}async function ec(t,e){let s=cs(t),r=he[s];if(!r)return pn(t,e);let n=await mn(t),o=fn(e,s),i=yn(o);r.send({action:"restart",payload:{topic:i,identity:Pe,moduleString:n,workerPath:t}})}function _n(t){let e=cs(t),s=he[e];s&&s.kill()}async function En(){if(!ls)return null;if(!process.env.PROCESSCUBE_EXTERNAL_TASK_WORKER_CLIENT_ID||!process.env.PROCESSCUBE_EXTERNAL_TASK_WORKER_CLIENT_SECRET){let r=new Error("Required environment variables PROCESSCUBE_EXTERNAL_TASK_WORKER_CLIENT_ID and PROCESSCUBE_EXTERNAL_TASK_WORKER_CLIENT_SECRET are missing. For help, please refer to our documentation on environment variables at: https://processcube.io/docs/app-sdk/samples/nextjs/external-task-adapter-with-nextjs#authority");throw pe.error("Required environment variables PROCESSCUBE_EXTERNAL_TASK_WORKER_CLIENT_ID and PROCESSCUBE_EXTERNAL_TASK_WORKER_CLIENT_SECRET are missing",{err:r}),r}let t=await za.discover(process.env.PROCESSCUBE_AUTHORITY_URL);return await new t.Client({client_id:process.env.PROCESSCUBE_EXTERNAL_TASK_WORKER_CLIENT_ID,client_secret:process.env.PROCESSCUBE_EXTERNAL_TASK_WORKER_CLIENT_SECRET}).grant({grant_type:"client_credentials",scope:"engine_etw"})}function gn(t){if(!ls||t===null)return Za;let e=t.access_token,s=Ya(e);return{token:t.access_token,userId:s.sub}}async function tc(t){let e=5;if(!ls||t===null)return;let r=await sc(t)*Ja*1e3,n=async()=>{try{let o=await En();Pe=gn(o);for(let i of Object.values(he))i.send({action:"updateIdentity",payload:{identity:Pe}});e=5,setTimeout(n,r)}catch(o){if(e===0){pe.error("Could not refresh identity for external task worker processes. Stopping all external task workers.",{error:o});for(let a of Object.values(he))a.kill();return}pe.error("Could not refresh identity for external task worker processes.",{error:o,retryCount:e}),e--;let i=2*1e3;setTimeout(n,i)}};setTimeout(n,r)}async function mn(t){let e=await Va({entryPoints:[t],write:!1,bundle:!0,platform:"node",target:"node18",format:"cjs",external:["@opentelemetry/api"]});if(e.errors.length>0)throw pe.error(`Could not transpile file at '${t}'`,{errors:e.errors}),new Error(`Could not transpile file at '${t}'`);return e.warnings.length>0&&pe.warn(`Transpiled file at '${t}' with warnings`,{warnings:e.warnings}),e.outputFiles[0].text}async function sc(t){let e=t.expires_in;if(!e&&t.expires_at&&(e=Math.floor(t.expires_at-Date.now()/1e3)),e===void 0)throw new Error("Could not determine the time until the access token for external task workers expires");return e}function yn(t){return t.replace(/^\.\/+|\([^)]+\)|^\/*|\/*$/g,"").replace(/[\/]{2,}/g,"/")}function rc(t){let e,s=[t,as(process.cwd(),"app"),as(process.cwd(),"src","app")];for(let r of s)if(r&&un(r)){e=r;break}if(!e)throw new Error("Could not find external tasks directory");return e}function sl(){return C}import{getToken as wn}from"next-auth/jwt";import{ResponseCookies as nc}from"next/dist/compiled/@edge-runtime/cookies";import{cookies as it,headers as Rn}from"next/headers";async function An(){let t=await wn({req:{cookies:it(),headers:Rn()}});if(t?.expiresAt&&Date.now()>=t.expiresAt*1e3){let s=await fetch(`${process.env.NEXTAUTH_URL}/api/auth/session`,{method:"GET",headers:{"Content-Type":"application/json",cookie:it().toString()}}),r=new nc(s.headers);if(r.getAll().length){let n=!1;try{for(let o of r.getAll())it().set(o.name,o.value,{...o})}catch{n=!0}if(t=await wn({req:{cookies:n?r:it(),headers:Rn()}}),t?.error)throw t.error}}if(!t?.accessToken||!t?.sub)throw new Error("AccessToken or Sub could not be determined!");return{token:t?.accessToken,userId:t?.sub}}import{DataModels as Oe}from"@5minds/processcube_engine_client";async function fl(t){return await C.processInstances.query({...t?.query,state:Oe.ProcessInstances.ProcessInstanceState.running},t?.options)}async function dl(t){let e=await ot();return(await C.processInstances.query({processInstanceId:t},{identity:e})).processInstances[0]}async function hl(t){let e=await ot();return(await C.flowNodeInstances.query({processInstanceId:t},{sortSettings:{sortBy:Oe.FlowNodeInstances.FlowNodeInstanceSortableColumns.createdAt,sortDir:"ASC"},identity:e})).flowNodeInstances}async function pl(t){let e=await ot(),s=await C.flowNodeInstances.query({triggeredByFlowNodeInstance:t},{identity:e});return s.totalCount>0?s.flowNodeInstances:[]}async function _l(t,e,s){let r=await ot();await C.processInstances.retryProcessInstance(t,{flowNodeInstanceId:e,newStartToken:s,identity:r})}async function ot(){try{return await An()}catch{return}}async function El(t,e){let{processInstanceId:s}=t;return new Promise(async(r,n)=>{let o=[],i=async a=>{if(s!==void 0&&a.processInstanceId!==s)return;let u=await C.processInstances.query({processInstanceId:a.processInstanceId},{identity:e});for(let f of o)C.notification.removeSubscription(f,e);return u.totalCount===0?n(new Error(`Process with instance ID "${a.processInstanceId}" does not exist.`)):r(u.processInstances[0])};if(o.push(await C.notification.onProcessEnded(i,{identity:e})),o.push(await C.notification.onProcessError(i,{identity:e})),o.push(await C.notification.onProcessTerminated(i,{identity:e})),s){let a=await C.processInstances.query({processInstanceId:s,state:[Oe.ProcessInstances.ProcessInstanceState.finished,Oe.ProcessInstances.ProcessInstanceState.terminated,Oe.ProcessInstances.ProcessInstanceState.error]},{identity:e});if(a.totalCount>0){for(let c of o)C.notification.removeSubscription(c,e);r(a.processInstances[0])}}})}import{DataModels as oe}from"@5minds/processcube_engine_client";import{mapUserTask as Tn,mapUserTaskList as _e}from"../common/index.mjs";async function Tl(t={},e){let{correlationId:s,processInstanceId:r,flowNodeId:n}=t;return new Promise(async(o,i)=>{let a=await C.userTasks.onUserTaskWaiting(async u=>{let f=s!==void 0&&u.correlationId!==s,d=u.flowNodeInstanceId===void 0,l=r!==void 0&&u.processInstanceId!==r,m=n!==void 0&&u.flowNodeId!==n;if(f||d||l||m)return;let g=await oc(u.flowNodeInstanceId,{identity:e});return C.notification.removeSubscription(a,e),g===null?i(new Error(`UserTask with instance ID "${u.flowNodeInstanceId}" does not exist.`)):o(g)},{identity:e}),c=await ic({correlationId:s,processInstanceId:r,flowNodeId:n,state:oe.FlowNodeInstances.FlowNodeInstanceState.suspended},{identity:e});c.userTasks.length>0&&(C.notification.removeSubscription(a,e),o(c.userTasks[0]))})}async function Sl(t,e={},s={},r){await C.userTasks.finishUserTask(t,s,r);let n={state:oe.FlowNodeInstances.FlowNodeInstanceState.suspended,...e},o=await C.userTasks.query(n,{identity:r});return Tn(o.userTasks[0])}async function ic(...t){let e=await C.userTasks.query(...t);return _e(e)}async function Cl(t){let e=await C.userTasks.query({state:oe.FlowNodeInstances.FlowNodeInstanceState.suspended},t);return _e(e)}async function Il(t,e){let s=await C.userTasks.query({processInstanceId:t,state:oe.FlowNodeInstances.FlowNodeInstanceState.suspended},e);return _e(s)}async function xl(t,e){let s=await C.userTasks.query({flowNodeId:t,state:oe.FlowNodeInstances.FlowNodeInstanceState.suspended},e);return _e(s)}async function oc(t,e){let s=await C.userTasks.query({flowNodeInstanceId:t,state:oe.FlowNodeInstances.FlowNodeInstanceState.suspended},{...e,limit:1});return s.userTasks.length===0?null:Tn(s.userTasks[0])}async function bl(t,e){let s=await C.userTasks.query({correlationId:t,state:oe.FlowNodeInstances.FlowNodeInstanceState.suspended},e);return _e(s)}async function vl(t,e){let s=await C.userTasks.query({state:oe.FlowNodeInstances.FlowNodeInstanceState.suspended},{identity:t,...e}),r=s.userTasks.filter(n=>n.actualOwnerId===t.userId);return s.userTasks=r,_e(s)}async function kl(t,e,s){await C.userTasks.reserveUserTaskInstance(t,e,s||t.userId)}async function Nl(t,e){await C.userTasks.cancelUserTaskInstanceReservation(t,e)}async function Pl(t,e){let s=await C.userTasks.query({state:oe.FlowNodeInstances.FlowNodeInstanceState.suspended},{identity:t,...e}),r=s.userTasks.filter(n=>n.assignedUserIds?.includes(t.userId));return s.userTasks=r,_e(s)}import{PHASE_DEVELOPMENT_SERVER as ac,PHASE_PRODUCTION_BUILD as cc,PHASE_PRODUCTION_SERVER as lc}from"next/dist/shared/lib/constants";var Sn=!1,us=!1;function Dl(t={}){let{applicationSdk:e,...s}=t;return async(r,n)=>{us=us||r===cc;let o=r===ac||r===lc;return e?.useExternalTasks&&o&&!Sn&&!us&&(Sn=!0,await hn(e?.customExternalTasksDirPath)),{...s,experimental:{...s.experimental,serverComponentsExternalPackages:[...s.experimental?.serverComponentsExternalPackages||[],"esbuild"]}}}}import{revalidatePath as uc}from"next/cache";import{redirect as fc}from"next/navigation";function Ul(t){uc(t),fc(t)}async function Gl(...t){return await C.processModels.startProcessInstance(...t)}async function jl(...t){await C.userTasks.finishUserTask(...t)}export{Nl as cancelReservedUserTask,jl as finishUserTask,Sl as finishUserTaskAndGetNext,fl as getActiveProcessInstances,Pl as getAssignedUserTasksByIdentity,sl as getEngineClient,hl as getFlowNodeInstancesByProcessInstanceId,pl as getFlowNodeInstancesTriggeredByFlowNodeInstanceIds,An as getIdentity,dl as getProcessInstanceById,vl as getReservedUserTasksByIdentity,ic as getUserTasks,oc as getWaitingUserTaskByFlowNodeInstanceId,Cl as getWaitingUserTasks,bl as getWaitingUserTasksByCorrelationId,xl as getWaitingUserTasksByFlowNodeId,Il as getWaitingUserTasksByProcessInstanceId,Ul as navigateToUrl,kl as reserveUserTask,_l as retryProcessInstance,Gl as startProcess,El as waitForProcessEnd,Tl as waitForUserTask,Dl as withApplicationSdk};
1
+ var Hn=Object.create;var ds=Object.defineProperty;var Dn=Object.getOwnPropertyDescriptor;var Fn=Object.getOwnPropertyNames;var $n=Object.getPrototypeOf,Mn=Object.prototype.hasOwnProperty;var L=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,s)=>(typeof require<"u"?require:e)[s]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var b=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Un=(t,e,s,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Fn(e))!Mn.call(t,n)&&n!==s&&ds(t,n,{get:()=>e[n],enumerable:!(r=Dn(e,n))||r.enumerable});return t};var Bn=(t,e,s)=>(s=t!=null?Hn($n(t)):{},Un(e||!t||!t.__esModule?ds(s,"default",{value:t,enumerable:!0}):s,t));var Re=b((Tc,Es)=>{"use strict";var Wn=L("path"),re="\\\\/",hs=`[^${re}]`,ne="\\.",Gn="\\+",qn="\\?",Me="\\/",Kn="(?=.)",ps="[^/]",lt=`(?:${Me}|$)`,_s=`(?:^|${Me})`,ut=`${ne}{1,2}${lt}`,jn=`(?!${ne})`,Vn=`(?!${_s}${ut})`,Yn=`(?!${ne}{0,1}${lt})`,zn=`(?!${ut})`,Xn=`[^.${Me}]`,Qn=`${ps}*?`,gs={DOT_LITERAL:ne,PLUS_LITERAL:Gn,QMARK_LITERAL:qn,SLASH_LITERAL:Me,ONE_CHAR:Kn,QMARK:ps,END_ANCHOR:lt,DOTS_SLASH:ut,NO_DOT:jn,NO_DOTS:Vn,NO_DOT_SLASH:Yn,NO_DOTS_SLASH:zn,QMARK_NO_DOT:Xn,STAR:Qn,START_ANCHOR:_s},Zn={...gs,SLASH_LITERAL:`[${re}]`,QMARK:hs,STAR:`${hs}*?`,DOTS_SLASH:`${ne}{1,2}(?:[${re}]|$)`,NO_DOT:`(?!${ne})`,NO_DOTS:`(?!(?:^|[${re}])${ne}{1,2}(?:[${re}]|$))`,NO_DOT_SLASH:`(?!${ne}{0,1}(?:[${re}]|$))`,NO_DOTS_SLASH:`(?!${ne}{1,2}(?:[${re}]|$))`,QMARK_NO_DOT:`[^.${re}]`,START_ANCHOR:`(?:^|[${re}])`,END_ANCHOR:`(?:[${re}]|$)`},Jn={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};Es.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:Jn,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:Wn.sep,extglobChars(t){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${t.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(t){return t===!0?Zn:gs}}});var Ue=b(Y=>{"use strict";var ei=L("path"),ti=process.platform==="win32",{REGEX_BACKSLASH:si,REGEX_REMOVE_BACKSLASH:ri,REGEX_SPECIAL_CHARS:ni,REGEX_SPECIAL_CHARS_GLOBAL:ii}=Re();Y.isObject=t=>t!==null&&typeof t=="object"&&!Array.isArray(t);Y.hasRegexChars=t=>ni.test(t);Y.isRegexChar=t=>t.length===1&&Y.hasRegexChars(t);Y.escapeRegex=t=>t.replace(ii,"\\$1");Y.toPosixSlashes=t=>t.replace(si,"/");Y.removeBackslashes=t=>t.replace(ri,e=>e==="\\"?"":e);Y.supportsLookbehinds=()=>{let t=process.version.slice(1).split(".").map(Number);return t.length===3&&t[0]>=9||t[0]===8&&t[1]>=10};Y.isWindows=t=>t&&typeof t.windows=="boolean"?t.windows:ti===!0||ei.sep==="\\";Y.escapeLast=(t,e,s)=>{let r=t.lastIndexOf(e,s);return r===-1?t:t[r-1]==="\\"?Y.escapeLast(t,e,r-1):`${t.slice(0,r)}\\${t.slice(r)}`};Y.removePrefix=(t,e={})=>{let s=t;return s.startsWith("./")&&(s=s.slice(2),e.prefix="./"),s};Y.wrapOutput=(t,e={},s={})=>{let r=s.contains?"":"^",n=s.contains?"":"$",o=`${r}(?:${t})${n}`;return e.negated===!0&&(o=`(?:^(?!${o}).*$)`),o}});var Cs=b((Cc,Ss)=>{"use strict";var ms=Ue(),{CHAR_ASTERISK:ft,CHAR_AT:oi,CHAR_BACKWARD_SLASH:Ae,CHAR_COMMA:ai,CHAR_DOT:dt,CHAR_EXCLAMATION_MARK:ht,CHAR_FORWARD_SLASH:Ts,CHAR_LEFT_CURLY_BRACE:pt,CHAR_LEFT_PARENTHESES:_t,CHAR_LEFT_SQUARE_BRACKET:ci,CHAR_PLUS:li,CHAR_QUESTION_MARK:ys,CHAR_RIGHT_CURLY_BRACE:ui,CHAR_RIGHT_PARENTHESES:ws,CHAR_RIGHT_SQUARE_BRACKET:fi}=Re(),Rs=t=>t===Ts||t===Ae,As=t=>{t.isPrefix!==!0&&(t.depth=t.isGlobstar?1/0:1)},di=(t,e)=>{let s=e||{},r=t.length-1,n=s.parts===!0||s.scanToEnd===!0,o=[],i=[],a=[],c=t,u=-1,f=0,d=0,l=!1,m=!1,E=!1,w=!1,v=!1,D=!1,V=!1,F=!1,ee=!1,G=!1,ae=0,q,A,x={value:"",depth:0,isGlob:!1},W=()=>u>=r,_=()=>c.charCodeAt(u+1),O=()=>(q=A,c.charCodeAt(++u));for(;u<r;){A=O();let K;if(A===Ae){V=x.backslashes=!0,A=O(),A===pt&&(D=!0);continue}if(D===!0||A===pt){for(ae++;W()!==!0&&(A=O());){if(A===Ae){V=x.backslashes=!0,O();continue}if(A===pt){ae++;continue}if(D!==!0&&A===dt&&(A=O())===dt){if(l=x.isBrace=!0,E=x.isGlob=!0,G=!0,n===!0)continue;break}if(D!==!0&&A===ai){if(l=x.isBrace=!0,E=x.isGlob=!0,G=!0,n===!0)continue;break}if(A===ui&&(ae--,ae===0)){D=!1,l=x.isBrace=!0,G=!0;break}}if(n===!0)continue;break}if(A===Ts){if(o.push(u),i.push(x),x={value:"",depth:0,isGlob:!1},G===!0)continue;if(q===dt&&u===f+1){f+=2;continue}d=u+1;continue}if(s.noext!==!0&&(A===li||A===oi||A===ft||A===ys||A===ht)===!0&&_()===_t){if(E=x.isGlob=!0,w=x.isExtglob=!0,G=!0,A===ht&&u===f&&(ee=!0),n===!0){for(;W()!==!0&&(A=O());){if(A===Ae){V=x.backslashes=!0,A=O();continue}if(A===ws){E=x.isGlob=!0,G=!0;break}}continue}break}if(A===ft){if(q===ft&&(v=x.isGlobstar=!0),E=x.isGlob=!0,G=!0,n===!0)continue;break}if(A===ys){if(E=x.isGlob=!0,G=!0,n===!0)continue;break}if(A===ci){for(;W()!==!0&&(K=O());){if(K===Ae){V=x.backslashes=!0,O();continue}if(K===fi){m=x.isBracket=!0,E=x.isGlob=!0,G=!0;break}}if(n===!0)continue;break}if(s.nonegate!==!0&&A===ht&&u===f){F=x.negated=!0,f++;continue}if(s.noparen!==!0&&A===_t){if(E=x.isGlob=!0,n===!0){for(;W()!==!0&&(A=O());){if(A===_t){V=x.backslashes=!0,A=O();continue}if(A===ws){G=!0;break}}continue}break}if(E===!0){if(G=!0,n===!0)continue;break}}s.noext===!0&&(w=!1,E=!1);let P=c,ce="",h="";f>0&&(ce=c.slice(0,f),c=c.slice(f),d-=f),P&&E===!0&&d>0?(P=c.slice(0,d),h=c.slice(d)):E===!0?(P="",h=c):P=c,P&&P!==""&&P!=="/"&&P!==c&&Rs(P.charCodeAt(P.length-1))&&(P=P.slice(0,-1)),s.unescape===!0&&(h&&(h=ms.removeBackslashes(h)),P&&V===!0&&(P=ms.removeBackslashes(P)));let p={prefix:ce,input:t,start:f,base:P,glob:h,isBrace:l,isBracket:m,isGlob:E,isExtglob:w,isGlobstar:v,negated:F,negatedExtglob:ee};if(s.tokens===!0&&(p.maxDepth=0,Rs(A)||i.push(x),p.tokens=i),s.parts===!0||s.tokens===!0){let K;for(let I=0;I<o.length;I++){let te=K?K+1:f,se=o[I],z=t.slice(te,se);s.tokens&&(I===0&&f!==0?(i[I].isPrefix=!0,i[I].value=ce):i[I].value=z,As(i[I]),p.maxDepth+=i[I].depth),(I!==0||z!=="")&&a.push(z),K=se}if(K&&K+1<t.length){let I=t.slice(K+1);a.push(I),s.tokens&&(i[i.length-1].value=I,As(i[i.length-1]),p.maxDepth+=i[i.length-1].depth)}p.slashes=o,p.parts=a}return p};Ss.exports=di});var bs=b((Ic,xs)=>{"use strict";var Be=Re(),X=Ue(),{MAX_LENGTH:We,POSIX_REGEX_SOURCE:hi,REGEX_NON_SPECIAL_CHARS:pi,REGEX_SPECIAL_CHARS_BACKREF:_i,REPLACEMENTS:Is}=Be,gi=(t,e)=>{if(typeof e.expandRange=="function")return e.expandRange(...t,e);t.sort();let s=`[${t.join("-")}]`;try{new RegExp(s)}catch{return t.map(n=>X.escapeRegex(n)).join("..")}return s},ge=(t,e)=>`Missing ${t}: "${e}" - use "\\\\${e}" to match literal characters`,gt=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");t=Is[t]||t;let s={...e},r=typeof s.maxLength=="number"?Math.min(We,s.maxLength):We,n=t.length;if(n>r)throw new SyntaxError(`Input length: ${n}, exceeds maximum allowed length: ${r}`);let o={type:"bos",value:"",output:s.prepend||""},i=[o],a=s.capture?"":"?:",c=X.isWindows(e),u=Be.globChars(c),f=Be.extglobChars(u),{DOT_LITERAL:d,PLUS_LITERAL:l,SLASH_LITERAL:m,ONE_CHAR:E,DOTS_SLASH:w,NO_DOT:v,NO_DOT_SLASH:D,NO_DOTS_SLASH:V,QMARK:F,QMARK_NO_DOT:ee,STAR:G,START_ANCHOR:ae}=u,q=y=>`(${a}(?:(?!${ae}${y.dot?w:d}).)*?)`,A=s.dot?"":v,x=s.dot?F:ee,W=s.bash===!0?q(s):G;s.capture&&(W=`(${W})`),typeof s.noext=="boolean"&&(s.noextglob=s.noext);let _={input:t,index:-1,start:0,dot:s.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:i};t=X.removePrefix(t,_),n=t.length;let O=[],P=[],ce=[],h=o,p,K=()=>_.index===n-1,I=_.peek=(y=1)=>t[_.index+y],te=_.advance=()=>t[++_.index]||"",se=()=>t.slice(_.index+1),z=(y="",N=0)=>{_.consumed+=y,_.index+=N},He=y=>{_.output+=y.output!=null?y.output:y.value,z(y.value)},On=()=>{let y=1;for(;I()==="!"&&(I(2)!=="("||I(3)==="?");)te(),_.start++,y++;return y%2===0?!1:(_.negated=!0,_.start++,!0)},De=y=>{_[y]++,ce.push(y)},le=y=>{_[y]--,ce.pop()},C=y=>{if(h.type==="globstar"){let N=_.braces>0&&(y.type==="comma"||y.type==="brace"),g=y.extglob===!0||O.length&&(y.type==="pipe"||y.type==="paren");y.type!=="slash"&&y.type!=="paren"&&!N&&!g&&(_.output=_.output.slice(0,-h.output.length),h.type="star",h.value="*",h.output=W,_.output+=h.output)}if(O.length&&y.type!=="paren"&&(O[O.length-1].inner+=y.value),(y.value||y.output)&&He(y),h&&h.type==="text"&&y.type==="text"){h.value+=y.value,h.output=(h.output||"")+y.value;return}y.prev=h,i.push(y),h=y},Fe=(y,N)=>{let g={...f[N],conditions:1,inner:""};g.prev=h,g.parens=_.parens,g.output=_.output;let S=(s.capture?"(":"")+g.open;De("parens"),C({type:y,value:N,output:_.output?"":E}),C({type:"paren",extglob:!0,value:te(),output:S}),O.push(g)},Ln=y=>{let N=y.close+(s.capture?")":""),g;if(y.type==="negate"){let S=W;if(y.inner&&y.inner.length>1&&y.inner.includes("/")&&(S=q(s)),(S!==W||K()||/^\)+$/.test(se()))&&(N=y.close=`)$))${S}`),y.inner.includes("*")&&(g=se())&&/^\.[^\\/.]+$/.test(g)){let H=gt(g,{...e,fastpaths:!1}).output;N=y.close=`)${H})${S})`}y.prev.type==="bos"&&(_.negatedExtglob=!0)}C({type:"paren",extglob:!0,value:p,output:N}),le("parens")};if(s.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(t)){let y=!1,N=t.replace(_i,(g,S,H,j,M,ct)=>j==="\\"?(y=!0,g):j==="?"?S?S+j+(M?F.repeat(M.length):""):ct===0?x+(M?F.repeat(M.length):""):F.repeat(H.length):j==="."?d.repeat(H.length):j==="*"?S?S+j+(M?W:""):W:S?g:`\\${g}`);return y===!0&&(s.unescape===!0?N=N.replace(/\\/g,""):N=N.replace(/\\+/g,g=>g.length%2===0?"\\\\":g?"\\":"")),N===t&&s.contains===!0?(_.output=t,_):(_.output=X.wrapOutput(N,_,e),_)}for(;!K();){if(p=te(),p==="\0")continue;if(p==="\\"){let g=I();if(g==="/"&&s.bash!==!0||g==="."||g===";")continue;if(!g){p+="\\",C({type:"text",value:p});continue}let S=/^\\+/.exec(se()),H=0;if(S&&S[0].length>2&&(H=S[0].length,_.index+=H,H%2!==0&&(p+="\\")),s.unescape===!0?p=te():p+=te(),_.brackets===0){C({type:"text",value:p});continue}}if(_.brackets>0&&(p!=="]"||h.value==="["||h.value==="[^")){if(s.posix!==!1&&p===":"){let g=h.value.slice(1);if(g.includes("[")&&(h.posix=!0,g.includes(":"))){let S=h.value.lastIndexOf("["),H=h.value.slice(0,S),j=h.value.slice(S+2),M=hi[j];if(M){h.value=H+M,_.backtrack=!0,te(),!o.output&&i.indexOf(h)===1&&(o.output=E);continue}}}(p==="["&&I()!==":"||p==="-"&&I()==="]")&&(p=`\\${p}`),p==="]"&&(h.value==="["||h.value==="[^")&&(p=`\\${p}`),s.posix===!0&&p==="!"&&h.value==="["&&(p="^"),h.value+=p,He({value:p});continue}if(_.quotes===1&&p!=='"'){p=X.escapeRegex(p),h.value+=p,He({value:p});continue}if(p==='"'){_.quotes=_.quotes===1?0:1,s.keepQuotes===!0&&C({type:"text",value:p});continue}if(p==="("){De("parens"),C({type:"paren",value:p});continue}if(p===")"){if(_.parens===0&&s.strictBrackets===!0)throw new SyntaxError(ge("opening","("));let g=O[O.length-1];if(g&&_.parens===g.parens+1){Ln(O.pop());continue}C({type:"paren",value:p,output:_.parens?")":"\\)"}),le("parens");continue}if(p==="["){if(s.nobracket===!0||!se().includes("]")){if(s.nobracket!==!0&&s.strictBrackets===!0)throw new SyntaxError(ge("closing","]"));p=`\\${p}`}else De("brackets");C({type:"bracket",value:p});continue}if(p==="]"){if(s.nobracket===!0||h&&h.type==="bracket"&&h.value.length===1){C({type:"text",value:p,output:`\\${p}`});continue}if(_.brackets===0){if(s.strictBrackets===!0)throw new SyntaxError(ge("opening","["));C({type:"text",value:p,output:`\\${p}`});continue}le("brackets");let g=h.value.slice(1);if(h.posix!==!0&&g[0]==="^"&&!g.includes("/")&&(p=`/${p}`),h.value+=p,He({value:p}),s.literalBrackets===!1||X.hasRegexChars(g))continue;let S=X.escapeRegex(h.value);if(_.output=_.output.slice(0,-h.value.length),s.literalBrackets===!0){_.output+=S,h.value=S;continue}h.value=`(${a}${S}|${h.value})`,_.output+=h.value;continue}if(p==="{"&&s.nobrace!==!0){De("braces");let g={type:"brace",value:p,output:"(",outputIndex:_.output.length,tokensIndex:_.tokens.length};P.push(g),C(g);continue}if(p==="}"){let g=P[P.length-1];if(s.nobrace===!0||!g){C({type:"text",value:p,output:p});continue}let S=")";if(g.dots===!0){let H=i.slice(),j=[];for(let M=H.length-1;M>=0&&(i.pop(),H[M].type!=="brace");M--)H[M].type!=="dots"&&j.unshift(H[M].value);S=gi(j,s),_.backtrack=!0}if(g.comma!==!0&&g.dots!==!0){let H=_.output.slice(0,g.outputIndex),j=_.tokens.slice(g.tokensIndex);g.value=g.output="\\{",p=S="\\}",_.output=H;for(let M of j)_.output+=M.output||M.value}C({type:"brace",value:p,output:S}),le("braces"),P.pop();continue}if(p==="|"){O.length>0&&O[O.length-1].conditions++,C({type:"text",value:p});continue}if(p===","){let g=p,S=P[P.length-1];S&&ce[ce.length-1]==="braces"&&(S.comma=!0,g="|"),C({type:"comma",value:p,output:g});continue}if(p==="/"){if(h.type==="dot"&&_.index===_.start+1){_.start=_.index+1,_.consumed="",_.output="",i.pop(),h=o;continue}C({type:"slash",value:p,output:m});continue}if(p==="."){if(_.braces>0&&h.type==="dot"){h.value==="."&&(h.output=d);let g=P[P.length-1];h.type="dots",h.output+=p,h.value+=p,g.dots=!0;continue}if(_.braces+_.parens===0&&h.type!=="bos"&&h.type!=="slash"){C({type:"text",value:p,output:d});continue}C({type:"dot",value:p,output:d});continue}if(p==="?"){if(!(h&&h.value==="(")&&s.noextglob!==!0&&I()==="("&&I(2)!=="?"){Fe("qmark",p);continue}if(h&&h.type==="paren"){let S=I(),H=p;if(S==="<"&&!X.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(h.value==="("&&!/[!=<:]/.test(S)||S==="<"&&!/<([!=]|\w+>)/.test(se()))&&(H=`\\${p}`),C({type:"text",value:p,output:H});continue}if(s.dot!==!0&&(h.type==="slash"||h.type==="bos")){C({type:"qmark",value:p,output:ee});continue}C({type:"qmark",value:p,output:F});continue}if(p==="!"){if(s.noextglob!==!0&&I()==="("&&(I(2)!=="?"||!/[!=<:]/.test(I(3)))){Fe("negate",p);continue}if(s.nonegate!==!0&&_.index===0){On();continue}}if(p==="+"){if(s.noextglob!==!0&&I()==="("&&I(2)!=="?"){Fe("plus",p);continue}if(h&&h.value==="("||s.regex===!1){C({type:"plus",value:p,output:l});continue}if(h&&(h.type==="bracket"||h.type==="paren"||h.type==="brace")||_.parens>0){C({type:"plus",value:p});continue}C({type:"plus",value:l});continue}if(p==="@"){if(s.noextglob!==!0&&I()==="("&&I(2)!=="?"){C({type:"at",extglob:!0,value:p,output:""});continue}C({type:"text",value:p});continue}if(p!=="*"){(p==="$"||p==="^")&&(p=`\\${p}`);let g=pi.exec(se());g&&(p+=g[0],_.index+=g[0].length),C({type:"text",value:p});continue}if(h&&(h.type==="globstar"||h.star===!0)){h.type="star",h.star=!0,h.value+=p,h.output=W,_.backtrack=!0,_.globstar=!0,z(p);continue}let y=se();if(s.noextglob!==!0&&/^\([^?]/.test(y)){Fe("star",p);continue}if(h.type==="star"){if(s.noglobstar===!0){z(p);continue}let g=h.prev,S=g.prev,H=g.type==="slash"||g.type==="bos",j=S&&(S.type==="star"||S.type==="globstar");if(s.bash===!0&&(!H||y[0]&&y[0]!=="/")){C({type:"star",value:p,output:""});continue}let M=_.braces>0&&(g.type==="comma"||g.type==="brace"),ct=O.length&&(g.type==="pipe"||g.type==="paren");if(!H&&g.type!=="paren"&&!M&&!ct){C({type:"star",value:p,output:""});continue}for(;y.slice(0,3)==="/**";){let $e=t[_.index+4];if($e&&$e!=="/")break;y=y.slice(3),z("/**",3)}if(g.type==="bos"&&K()){h.type="globstar",h.value+=p,h.output=q(s),_.output=h.output,_.globstar=!0,z(p);continue}if(g.type==="slash"&&g.prev.type!=="bos"&&!j&&K()){_.output=_.output.slice(0,-(g.output+h.output).length),g.output=`(?:${g.output}`,h.type="globstar",h.output=q(s)+(s.strictSlashes?")":"|$)"),h.value+=p,_.globstar=!0,_.output+=g.output+h.output,z(p);continue}if(g.type==="slash"&&g.prev.type!=="bos"&&y[0]==="/"){let $e=y[1]!==void 0?"|$":"";_.output=_.output.slice(0,-(g.output+h.output).length),g.output=`(?:${g.output}`,h.type="globstar",h.output=`${q(s)}${m}|${m}${$e})`,h.value+=p,_.output+=g.output+h.output,_.globstar=!0,z(p+te()),C({type:"slash",value:"/",output:""});continue}if(g.type==="bos"&&y[0]==="/"){h.type="globstar",h.value+=p,h.output=`(?:^|${m}|${q(s)}${m})`,_.output=h.output,_.globstar=!0,z(p+te()),C({type:"slash",value:"/",output:""});continue}_.output=_.output.slice(0,-h.output.length),h.type="globstar",h.output=q(s),h.value+=p,_.output+=h.output,_.globstar=!0,z(p);continue}let N={type:"star",value:p,output:W};if(s.bash===!0){N.output=".*?",(h.type==="bos"||h.type==="slash")&&(N.output=A+N.output),C(N);continue}if(h&&(h.type==="bracket"||h.type==="paren")&&s.regex===!0){N.output=p,C(N);continue}(_.index===_.start||h.type==="slash"||h.type==="dot")&&(h.type==="dot"?(_.output+=D,h.output+=D):s.dot===!0?(_.output+=V,h.output+=V):(_.output+=A,h.output+=A),I()!=="*"&&(_.output+=E,h.output+=E)),C(N)}for(;_.brackets>0;){if(s.strictBrackets===!0)throw new SyntaxError(ge("closing","]"));_.output=X.escapeLast(_.output,"["),le("brackets")}for(;_.parens>0;){if(s.strictBrackets===!0)throw new SyntaxError(ge("closing",")"));_.output=X.escapeLast(_.output,"("),le("parens")}for(;_.braces>0;){if(s.strictBrackets===!0)throw new SyntaxError(ge("closing","}"));_.output=X.escapeLast(_.output,"{"),le("braces")}if(s.strictSlashes!==!0&&(h.type==="star"||h.type==="bracket")&&C({type:"maybe_slash",value:"",output:`${m}?`}),_.backtrack===!0){_.output="";for(let y of _.tokens)_.output+=y.output!=null?y.output:y.value,y.suffix&&(_.output+=y.suffix)}return _};gt.fastpaths=(t,e)=>{let s={...e},r=typeof s.maxLength=="number"?Math.min(We,s.maxLength):We,n=t.length;if(n>r)throw new SyntaxError(`Input length: ${n}, exceeds maximum allowed length: ${r}`);t=Is[t]||t;let o=X.isWindows(e),{DOT_LITERAL:i,SLASH_LITERAL:a,ONE_CHAR:c,DOTS_SLASH:u,NO_DOT:f,NO_DOTS:d,NO_DOTS_SLASH:l,STAR:m,START_ANCHOR:E}=Be.globChars(o),w=s.dot?d:f,v=s.dot?l:f,D=s.capture?"":"?:",V={negated:!1,prefix:""},F=s.bash===!0?".*?":m;s.capture&&(F=`(${F})`);let ee=A=>A.noglobstar===!0?F:`(${D}(?:(?!${E}${A.dot?u:i}).)*?)`,G=A=>{switch(A){case"*":return`${w}${c}${F}`;case".*":return`${i}${c}${F}`;case"*.*":return`${w}${F}${i}${c}${F}`;case"*/*":return`${w}${F}${a}${c}${v}${F}`;case"**":return w+ee(s);case"**/*":return`(?:${w}${ee(s)}${a})?${v}${c}${F}`;case"**/*.*":return`(?:${w}${ee(s)}${a})?${v}${F}${i}${c}${F}`;case"**/.*":return`(?:${w}${ee(s)}${a})?${i}${c}${F}`;default:{let x=/^(.*?)\.(\w+)$/.exec(A);if(!x)return;let W=G(x[1]);return W?W+i+x[2]:void 0}}},ae=X.removePrefix(t,V),q=G(ae);return q&&s.strictSlashes!==!0&&(q+=`${a}?`),q};xs.exports=gt});var vs=b((xc,ks)=>{"use strict";var Ei=L("path"),mi=Cs(),Et=bs(),mt=Ue(),yi=Re(),wi=t=>t&&typeof t=="object"&&!Array.isArray(t),$=(t,e,s=!1)=>{if(Array.isArray(t)){let f=t.map(l=>$(l,e,s));return l=>{for(let m of f){let E=m(l);if(E)return E}return!1}}let r=wi(t)&&t.tokens&&t.input;if(t===""||typeof t!="string"&&!r)throw new TypeError("Expected pattern to be a non-empty string");let n=e||{},o=mt.isWindows(e),i=r?$.compileRe(t,e):$.makeRe(t,e,!1,!0),a=i.state;delete i.state;let c=()=>!1;if(n.ignore){let f={...e,ignore:null,onMatch:null,onResult:null};c=$(n.ignore,f,s)}let u=(f,d=!1)=>{let{isMatch:l,match:m,output:E}=$.test(f,i,e,{glob:t,posix:o}),w={glob:t,state:a,regex:i,posix:o,input:f,output:E,match:m,isMatch:l};return typeof n.onResult=="function"&&n.onResult(w),l===!1?(w.isMatch=!1,d?w:!1):c(f)?(typeof n.onIgnore=="function"&&n.onIgnore(w),w.isMatch=!1,d?w:!1):(typeof n.onMatch=="function"&&n.onMatch(w),d?w:!0)};return s&&(u.state=a),u};$.test=(t,e,s,{glob:r,posix:n}={})=>{if(typeof t!="string")throw new TypeError("Expected input to be a string");if(t==="")return{isMatch:!1,output:""};let o=s||{},i=o.format||(n?mt.toPosixSlashes:null),a=t===r,c=a&&i?i(t):t;return a===!1&&(c=i?i(t):t,a=c===r),(a===!1||o.capture===!0)&&(o.matchBase===!0||o.basename===!0?a=$.matchBase(t,e,s,n):a=e.exec(c)),{isMatch:!!a,match:a,output:c}};$.matchBase=(t,e,s,r=mt.isWindows(s))=>(e instanceof RegExp?e:$.makeRe(e,s)).test(Ei.basename(t));$.isMatch=(t,e,s)=>$(e,s)(t);$.parse=(t,e)=>Array.isArray(t)?t.map(s=>$.parse(s,e)):Et(t,{...e,fastpaths:!1});$.scan=(t,e)=>mi(t,e);$.compileRe=(t,e,s=!1,r=!1)=>{if(s===!0)return t.output;let n=e||{},o=n.contains?"":"^",i=n.contains?"":"$",a=`${o}(?:${t.output})${i}`;t&&t.negated===!0&&(a=`^(?!${a}).*$`);let c=$.toRegex(a,e);return r===!0&&(c.state=t),c};$.makeRe=(t,e={},s=!1,r=!1)=>{if(!t||typeof t!="string")throw new TypeError("Expected a non-empty string");let n={negated:!1,fastpaths:!0};return e.fastpaths!==!1&&(t[0]==="."||t[0]==="*")&&(n.output=Et.fastpaths(t,e)),n.output||(n=Et(t,e)),$.compileRe(n,e,s,r)};$.toRegex=(t,e)=>{try{let s=e||{};return new RegExp(t,s.flags||(s.nocase?"i":""))}catch(s){if(e&&e.debug===!0)throw s;return/$^/}};$.constants=yi;ks.exports=$});var yt=b((bc,Ps)=>{"use strict";Ps.exports=vs()});var Ms=b((kc,$s)=>{"use strict";var Se=L("fs"),{Readable:Ri}=L("stream"),Te=L("path"),{promisify:je}=L("util"),wt=yt(),Ai=je(Se.readdir),Ti=je(Se.stat),Ns=je(Se.lstat),Si=je(Se.realpath),Ci="!",Ds="READDIRP_RECURSIVE_ERROR",Ii=new Set(["ENOENT","EPERM","EACCES","ELOOP",Ds]),Rt="files",Fs="directories",qe="files_directories",Ge="all",Os=[Rt,Fs,qe,Ge],xi=t=>Ii.has(t.code),[Ls,bi]=process.versions.node.split(".").slice(0,2).map(t=>Number.parseInt(t,10)),ki=process.platform==="win32"&&(Ls>10||Ls===10&&bi>=5),Hs=t=>{if(t!==void 0){if(typeof t=="function")return t;if(typeof t=="string"){let e=wt(t.trim());return s=>e(s.basename)}if(Array.isArray(t)){let e=[],s=[];for(let r of t){let n=r.trim();n.charAt(0)===Ci?s.push(wt(n.slice(1))):e.push(wt(n))}return s.length>0?e.length>0?r=>e.some(n=>n(r.basename))&&!s.some(n=>n(r.basename)):r=>!s.some(n=>n(r.basename)):r=>e.some(n=>n(r.basename))}}},Ke=class t extends Ri{static get defaultOptions(){return{root:".",fileFilter:e=>!0,directoryFilter:e=>!0,type:Rt,lstat:!1,depth:2147483648,alwaysStat:!1}}constructor(e={}){super({objectMode:!0,autoDestroy:!0,highWaterMark:e.highWaterMark||4096});let s={...t.defaultOptions,...e},{root:r,type:n}=s;this._fileFilter=Hs(s.fileFilter),this._directoryFilter=Hs(s.directoryFilter);let o=s.lstat?Ns:Ti;ki?this._stat=i=>o(i,{bigint:!0}):this._stat=o,this._maxDepth=s.depth,this._wantsDir=[Fs,qe,Ge].includes(n),this._wantsFile=[Rt,qe,Ge].includes(n),this._wantsEverything=n===Ge,this._root=Te.resolve(r),this._isDirent="Dirent"in Se&&!s.alwaysStat,this._statsProp=this._isDirent?"dirent":"stats",this._rdOptions={encoding:"utf8",withFileTypes:this._isDirent},this.parents=[this._exploreDir(r,1)],this.reading=!1,this.parent=void 0}async _read(e){if(!this.reading){this.reading=!0;try{for(;!this.destroyed&&e>0;){let{path:s,depth:r,files:n=[]}=this.parent||{};if(n.length>0){let o=n.splice(0,e).map(i=>this._formatEntry(i,s));for(let i of await Promise.all(o)){if(this.destroyed)return;let a=await this._getEntryType(i);a==="directory"&&this._directoryFilter(i)?(r<=this._maxDepth&&this.parents.push(this._exploreDir(i.fullPath,r+1)),this._wantsDir&&(this.push(i),e--)):(a==="file"||this._includeAsFile(i))&&this._fileFilter(i)&&this._wantsFile&&(this.push(i),e--)}}else{let o=this.parents.pop();if(!o){this.push(null);break}if(this.parent=await o,this.destroyed)return}}}catch(s){this.destroy(s)}finally{this.reading=!1}}}async _exploreDir(e,s){let r;try{r=await Ai(e,this._rdOptions)}catch(n){this._onError(n)}return{files:r,depth:s,path:e}}async _formatEntry(e,s){let r;try{let n=this._isDirent?e.name:e,o=Te.resolve(Te.join(s,n));r={path:Te.relative(this._root,o),fullPath:o,basename:n},r[this._statsProp]=this._isDirent?e:await this._stat(o)}catch(n){this._onError(n)}return r}_onError(e){xi(e)&&!this.destroyed?this.emit("warn",e):this.destroy(e)}async _getEntryType(e){let s=e&&e[this._statsProp];if(s){if(s.isFile())return"file";if(s.isDirectory())return"directory";if(s&&s.isSymbolicLink()){let r=e.fullPath;try{let n=await Si(r),o=await Ns(n);if(o.isFile())return"file";if(o.isDirectory()){let i=n.length;if(r.startsWith(n)&&r.substr(i,1)===Te.sep){let a=new Error(`Circular symlink detected: "${r}" points to "${n}"`);return a.code=Ds,this._onError(a)}return"directory"}}catch(n){this._onError(n)}}}}_includeAsFile(e){let s=e&&e[this._statsProp];return s&&this._wantsEverything&&!s.isDirectory()}},Ee=(t,e={})=>{let s=e.entryType||e.type;if(s==="both"&&(s=qe),s&&(e.type=s),t){if(typeof t!="string")throw new TypeError("readdirp: root argument must be a string. Usage: readdirp(root, options)");if(s&&!Os.includes(s))throw new Error(`readdirp: Invalid type passed. Use one of ${Os.join(", ")}`)}else throw new Error("readdirp: root argument is required. Usage: readdirp(root, options)");return e.root=t,new Ke(e)},vi=(t,e={})=>new Promise((s,r)=>{let n=[];Ee(t,e).on("data",o=>n.push(o)).on("end",()=>s(n)).on("error",o=>r(o))});Ee.promise=vi;Ee.ReaddirpStream=Ke;Ee.default=Ee;$s.exports=Ee});var At=b((vc,Us)=>{Us.exports=function(t,e){if(typeof t!="string")throw new TypeError("expected path to be a string");if(t==="\\"||t==="/")return"/";var s=t.length;if(s<=1)return t;var r="";if(s>4&&t[3]==="\\"){var n=t[2];(n==="?"||n===".")&&t.slice(0,2)==="\\\\"&&(t=t.slice(2),r="//")}var o=t.split(/[/\\]+/);return e!==!1&&o[o.length-1]===""&&o.pop(),r+o.join("/")}});var js=b((qs,Ks)=>{"use strict";Object.defineProperty(qs,"__esModule",{value:!0});var Gs=yt(),Pi=At(),Bs="!",Ni={returnIndex:!1},Oi=t=>Array.isArray(t)?t:[t],Li=(t,e)=>{if(typeof t=="function")return t;if(typeof t=="string"){let s=Gs(t,e);return r=>t===r||s(r)}return t instanceof RegExp?s=>t.test(s):s=>!1},Ws=(t,e,s,r)=>{let n=Array.isArray(s),o=n?s[0]:s;if(!n&&typeof o!="string")throw new TypeError("anymatch: second argument must be a string: got "+Object.prototype.toString.call(o));let i=Pi(o,!1);for(let c=0;c<e.length;c++){let u=e[c];if(u(i))return r?-1:!1}let a=n&&[i].concat(s.slice(1));for(let c=0;c<t.length;c++){let u=t[c];if(n?u(...a):u(i))return r?c:!0}return r?-1:!1},Tt=(t,e,s=Ni)=>{if(t==null)throw new TypeError("anymatch: specify first argument");let r=typeof s=="boolean"?{returnIndex:s}:s,n=r.returnIndex||!1,o=Oi(t),i=o.filter(c=>typeof c=="string"&&c.charAt(0)===Bs).map(c=>c.slice(1)).map(c=>Gs(c,r)),a=o.filter(c=>typeof c!="string"||typeof c=="string"&&c.charAt(0)!==Bs).map(c=>Li(c,r));return e==null?(c,u=!1)=>Ws(a,i,c,typeof u=="boolean"?u:!1):Ws(a,i,e,n)};Tt.default=Tt;Ks.exports=Tt});var Ys=b((Pc,Vs)=>{Vs.exports=function(e){if(typeof e!="string"||e==="")return!1;for(var s;s=/(\\).|([@?!+*]\(.*\))/g.exec(e);){if(s[2])return!0;e=e.slice(s.index+s[0].length)}return!1}});var St=b((Nc,Xs)=>{var Hi=Ys(),zs={"{":"}","(":")","[":"]"},Di=function(t){if(t[0]==="!")return!0;for(var e=0,s=-2,r=-2,n=-2,o=-2,i=-2;e<t.length;){if(t[e]==="*"||t[e+1]==="?"&&/[\].+)]/.test(t[e])||r!==-1&&t[e]==="["&&t[e+1]!=="]"&&(r<e&&(r=t.indexOf("]",e)),r>e&&(i===-1||i>r||(i=t.indexOf("\\",e),i===-1||i>r)))||n!==-1&&t[e]==="{"&&t[e+1]!=="}"&&(n=t.indexOf("}",e),n>e&&(i=t.indexOf("\\",e),i===-1||i>n))||o!==-1&&t[e]==="("&&t[e+1]==="?"&&/[:!=]/.test(t[e+2])&&t[e+3]!==")"&&(o=t.indexOf(")",e),o>e&&(i=t.indexOf("\\",e),i===-1||i>o))||s!==-1&&t[e]==="("&&t[e+1]!=="|"&&(s<e&&(s=t.indexOf("|",e)),s!==-1&&t[s+1]!==")"&&(o=t.indexOf(")",s),o>s&&(i=t.indexOf("\\",s),i===-1||i>o))))return!0;if(t[e]==="\\"){var a=t[e+1];e+=2;var c=zs[a];if(c){var u=t.indexOf(c,e);u!==-1&&(e=u+1)}if(t[e]==="!")return!0}else e++}return!1},Fi=function(t){if(t[0]==="!")return!0;for(var e=0;e<t.length;){if(/[*?{}()[\]]/.test(t[e]))return!0;if(t[e]==="\\"){var s=t[e+1];e+=2;var r=zs[s];if(r){var n=t.indexOf(r,e);n!==-1&&(e=n+1)}if(t[e]==="!")return!0}else e++}return!1};Xs.exports=function(e,s){if(typeof e!="string"||e==="")return!1;if(Hi(e))return!0;var r=Di;return s&&s.strict===!1&&(r=Fi),r(e)}});var Zs=b((Oc,Qs)=>{"use strict";var $i=St(),Mi=L("path").posix.dirname,Ui=L("os").platform()==="win32",Ct="/",Bi=/\\/g,Wi=/[\{\[].*[\}\]]$/,Gi=/(^|[^\\])([\{\[]|\([^\)]+$)/,qi=/\\([\!\*\?\|\[\]\(\)\{\}])/g;Qs.exports=function(e,s){var r=Object.assign({flipBackslashes:!0},s);r.flipBackslashes&&Ui&&e.indexOf(Ct)<0&&(e=e.replace(Bi,Ct)),Wi.test(e)&&(e+=Ct),e+="a";do e=Mi(e);while($i(e)||Gi.test(e));return e.replace(qi,"$1")}});var Ve=b(Z=>{"use strict";Z.isInteger=t=>typeof t=="number"?Number.isInteger(t):typeof t=="string"&&t.trim()!==""?Number.isInteger(Number(t)):!1;Z.find=(t,e)=>t.nodes.find(s=>s.type===e);Z.exceedsLimit=(t,e,s=1,r)=>r===!1||!Z.isInteger(t)||!Z.isInteger(e)?!1:(Number(e)-Number(t))/Number(s)>=r;Z.escapeNode=(t,e=0,s)=>{let r=t.nodes[e];r&&(s&&r.type===s||r.type==="open"||r.type==="close")&&r.escaped!==!0&&(r.value="\\"+r.value,r.escaped=!0)};Z.encloseBrace=t=>t.type!=="brace"||t.commas>>0+t.ranges>>0?!1:(t.invalid=!0,!0);Z.isInvalidBrace=t=>t.type!=="brace"?!1:t.invalid===!0||t.dollar?!0:!(t.commas>>0+t.ranges>>0)||t.open!==!0||t.close!==!0?(t.invalid=!0,!0):!1;Z.isOpenOrClose=t=>t.type==="open"||t.type==="close"?!0:t.open===!0||t.close===!0;Z.reduce=t=>t.reduce((e,s)=>(s.type==="text"&&e.push(s.value),s.type==="range"&&(s.type="text"),e),[]);Z.flatten=(...t)=>{let e=[],s=r=>{for(let n=0;n<r.length;n++){let o=r[n];if(Array.isArray(o)){s(o);continue}o!==void 0&&e.push(o)}return e};return s(t),e}});var Ye=b((Hc,er)=>{"use strict";var Js=Ve();er.exports=(t,e={})=>{let s=(r,n={})=>{let o=e.escapeInvalid&&Js.isInvalidBrace(n),i=r.invalid===!0&&e.escapeInvalid===!0,a="";if(r.value)return(o||i)&&Js.isOpenOrClose(r)?"\\"+r.value:r.value;if(r.value)return r.value;if(r.nodes)for(let c of r.nodes)a+=s(c);return a};return s(t)}});var sr=b((Dc,tr)=>{"use strict";tr.exports=function(t){return typeof t=="number"?t-t===0:typeof t=="string"&&t.trim()!==""?Number.isFinite?Number.isFinite(+t):isFinite(+t):!1}});var fr=b((Fc,ur)=>{"use strict";var rr=sr(),ue=(t,e,s)=>{if(rr(t)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(e===void 0||t===e)return String(t);if(rr(e)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let r={relaxZeros:!0,...s};typeof r.strictZeros=="boolean"&&(r.relaxZeros=r.strictZeros===!1);let n=String(r.relaxZeros),o=String(r.shorthand),i=String(r.capture),a=String(r.wrap),c=t+":"+e+"="+n+o+i+a;if(ue.cache.hasOwnProperty(c))return ue.cache[c].result;let u=Math.min(t,e),f=Math.max(t,e);if(Math.abs(u-f)===1){let w=t+"|"+e;return r.capture?`(${w})`:r.wrap===!1?w:`(?:${w})`}let d=lr(t)||lr(e),l={min:t,max:e,a:u,b:f},m=[],E=[];if(d&&(l.isPadded=d,l.maxLen=String(l.max).length),u<0){let w=f<0?Math.abs(f):1;E=nr(w,Math.abs(u),l,r),u=l.a=0}return f>=0&&(m=nr(u,f,l,r)),l.negatives=E,l.positives=m,l.result=Ki(E,m,r),r.capture===!0?l.result=`(${l.result})`:r.wrap!==!1&&m.length+E.length>1&&(l.result=`(?:${l.result})`),ue.cache[c]=l,l.result};function Ki(t,e,s){let r=It(t,e,"-",!1,s)||[],n=It(e,t,"",!1,s)||[],o=It(t,e,"-?",!0,s)||[];return r.concat(o).concat(n).join("|")}function ji(t,e){let s=1,r=1,n=or(t,s),o=new Set([e]);for(;t<=n&&n<=e;)o.add(n),s+=1,n=or(t,s);for(n=ar(e+1,r)-1;t<n&&n<=e;)o.add(n),r+=1,n=ar(e+1,r)-1;return o=[...o],o.sort(zi),o}function Vi(t,e,s){if(t===e)return{pattern:t,count:[],digits:0};let r=Yi(t,e),n=r.length,o="",i=0;for(let a=0;a<n;a++){let[c,u]=r[a];c===u?o+=c:c!=="0"||u!=="9"?o+=Xi(c,u,s):i++}return i&&(o+=s.shorthand===!0?"\\d":"[0-9]"),{pattern:o,count:[i],digits:n}}function nr(t,e,s,r){let n=ji(t,e),o=[],i=t,a;for(let c=0;c<n.length;c++){let u=n[c],f=Vi(String(i),String(u),r),d="";if(!s.isPadded&&a&&a.pattern===f.pattern){a.count.length>1&&a.count.pop(),a.count.push(f.count[0]),a.string=a.pattern+cr(a.count),i=u+1;continue}s.isPadded&&(d=Qi(u,s,r)),f.string=d+f.pattern+cr(f.count),o.push(f),i=u+1,a=f}return o}function It(t,e,s,r,n){let o=[];for(let i of t){let{string:a}=i;!r&&!ir(e,"string",a)&&o.push(s+a),r&&ir(e,"string",a)&&o.push(s+a)}return o}function Yi(t,e){let s=[];for(let r=0;r<t.length;r++)s.push([t[r],e[r]]);return s}function zi(t,e){return t>e?1:e>t?-1:0}function ir(t,e,s){return t.some(r=>r[e]===s)}function or(t,e){return Number(String(t).slice(0,-e)+"9".repeat(e))}function ar(t,e){return t-t%Math.pow(10,e)}function cr(t){let[e=0,s=""]=t;return s||e>1?`{${e+(s?","+s:"")}}`:""}function Xi(t,e,s){return`[${t}${e-t===1?"":"-"}${e}]`}function lr(t){return/^-?(0+)\d/.test(t)}function Qi(t,e,s){if(!e.isPadded)return t;let r=Math.abs(e.maxLen-String(t).length),n=s.relaxZeros!==!1;switch(r){case 0:return"";case 1:return n?"0?":"0";case 2:return n?"0{0,2}":"00";default:return n?`0{0,${r}}`:`0{${r}}`}}ue.cache={};ue.clearCache=()=>ue.cache={};ur.exports=ue});var kt=b(($c,mr)=>{"use strict";var Zi=L("util"),hr=fr(),dr=t=>t!==null&&typeof t=="object"&&!Array.isArray(t),Ji=t=>e=>t===!0?Number(e):String(e),xt=t=>typeof t=="number"||typeof t=="string"&&t!=="",Ce=t=>Number.isInteger(+t),bt=t=>{let e=`${t}`,s=-1;if(e[0]==="-"&&(e=e.slice(1)),e==="0")return!1;for(;e[++s]==="0";);return s>0},eo=(t,e,s)=>typeof t=="string"||typeof e=="string"?!0:s.stringify===!0,to=(t,e,s)=>{if(e>0){let r=t[0]==="-"?"-":"";r&&(t=t.slice(1)),t=r+t.padStart(r?e-1:e,"0")}return s===!1?String(t):t},Xe=(t,e)=>{let s=t[0]==="-"?"-":"";for(s&&(t=t.slice(1),e--);t.length<e;)t="0"+t;return s?"-"+t:t},so=(t,e,s)=>{t.negatives.sort((a,c)=>a<c?-1:a>c?1:0),t.positives.sort((a,c)=>a<c?-1:a>c?1:0);let r=e.capture?"":"?:",n="",o="",i;return t.positives.length&&(n=t.positives.map(a=>Xe(String(a),s)).join("|")),t.negatives.length&&(o=`-(${r}${t.negatives.map(a=>Xe(String(a),s)).join("|")})`),n&&o?i=`${n}|${o}`:i=n||o,e.wrap?`(${r}${i})`:i},pr=(t,e,s,r)=>{if(s)return hr(t,e,{wrap:!1,...r});let n=String.fromCharCode(t);if(t===e)return n;let o=String.fromCharCode(e);return`[${n}-${o}]`},_r=(t,e,s)=>{if(Array.isArray(t)){let r=s.wrap===!0,n=s.capture?"":"?:";return r?`(${n}${t.join("|")})`:t.join("|")}return hr(t,e,s)},gr=(...t)=>new RangeError("Invalid range arguments: "+Zi.inspect(...t)),Er=(t,e,s)=>{if(s.strictRanges===!0)throw gr([t,e]);return[]},ro=(t,e)=>{if(e.strictRanges===!0)throw new TypeError(`Expected step "${t}" to be a number`);return[]},no=(t,e,s=1,r={})=>{let n=Number(t),o=Number(e);if(!Number.isInteger(n)||!Number.isInteger(o)){if(r.strictRanges===!0)throw gr([t,e]);return[]}n===0&&(n=0),o===0&&(o=0);let i=n>o,a=String(t),c=String(e),u=String(s);s=Math.max(Math.abs(s),1);let f=bt(a)||bt(c)||bt(u),d=f?Math.max(a.length,c.length,u.length):0,l=f===!1&&eo(t,e,r)===!1,m=r.transform||Ji(l);if(r.toRegex&&s===1)return pr(Xe(t,d),Xe(e,d),!0,r);let E={negatives:[],positives:[]},w=V=>E[V<0?"negatives":"positives"].push(Math.abs(V)),v=[],D=0;for(;i?n>=o:n<=o;)r.toRegex===!0&&s>1?w(n):v.push(to(m(n,D),d,l)),n=i?n-s:n+s,D++;return r.toRegex===!0?s>1?so(E,r,d):_r(v,null,{wrap:!1,...r}):v},io=(t,e,s=1,r={})=>{if(!Ce(t)&&t.length>1||!Ce(e)&&e.length>1)return Er(t,e,r);let n=r.transform||(l=>String.fromCharCode(l)),o=`${t}`.charCodeAt(0),i=`${e}`.charCodeAt(0),a=o>i,c=Math.min(o,i),u=Math.max(o,i);if(r.toRegex&&s===1)return pr(c,u,!1,r);let f=[],d=0;for(;a?o>=i:o<=i;)f.push(n(o,d)),o=a?o-s:o+s,d++;return r.toRegex===!0?_r(f,null,{wrap:!1,options:r}):f},ze=(t,e,s,r={})=>{if(e==null&&xt(t))return[t];if(!xt(t)||!xt(e))return Er(t,e,r);if(typeof s=="function")return ze(t,e,1,{transform:s});if(dr(s))return ze(t,e,0,s);let n={...r};return n.capture===!0&&(n.wrap=!0),s=s||n.step||1,Ce(s)?Ce(t)&&Ce(e)?no(t,e,s,n):io(t,e,Math.max(Math.abs(s),1),n):s!=null&&!dr(s)?ro(s,n):ze(t,e,1,s)};mr.exports=ze});var Rr=b((Mc,wr)=>{"use strict";var oo=kt(),yr=Ve(),ao=(t,e={})=>{let s=(r,n={})=>{let o=yr.isInvalidBrace(n),i=r.invalid===!0&&e.escapeInvalid===!0,a=o===!0||i===!0,c=e.escapeInvalid===!0?"\\":"",u="";if(r.isOpen===!0)return c+r.value;if(r.isClose===!0)return console.log("node.isClose",c,r.value),c+r.value;if(r.type==="open")return a?c+r.value:"(";if(r.type==="close")return a?c+r.value:")";if(r.type==="comma")return r.prev.type==="comma"?"":a?r.value:"|";if(r.value)return r.value;if(r.nodes&&r.ranges>0){let f=yr.reduce(r.nodes),d=oo(...f,{...e,wrap:!1,toRegex:!0,strictZeros:!0});if(d.length!==0)return f.length>1&&d.length>1?`(${d})`:d}if(r.nodes)for(let f of r.nodes)u+=s(f,r);return u};return s(t)};wr.exports=ao});var Sr=b((Uc,Tr)=>{"use strict";var co=kt(),Ar=Ye(),me=Ve(),fe=(t="",e="",s=!1)=>{let r=[];if(t=[].concat(t),e=[].concat(e),!e.length)return t;if(!t.length)return s?me.flatten(e).map(n=>`{${n}}`):e;for(let n of t)if(Array.isArray(n))for(let o of n)r.push(fe(o,e,s));else for(let o of e)s===!0&&typeof o=="string"&&(o=`{${o}}`),r.push(Array.isArray(o)?fe(n,o,s):n+o);return me.flatten(r)},lo=(t,e={})=>{let s=e.rangeLimit===void 0?1e3:e.rangeLimit,r=(n,o={})=>{n.queue=[];let i=o,a=o.queue;for(;i.type!=="brace"&&i.type!=="root"&&i.parent;)i=i.parent,a=i.queue;if(n.invalid||n.dollar){a.push(fe(a.pop(),Ar(n,e)));return}if(n.type==="brace"&&n.invalid!==!0&&n.nodes.length===2){a.push(fe(a.pop(),["{}"]));return}if(n.nodes&&n.ranges>0){let d=me.reduce(n.nodes);if(me.exceedsLimit(...d,e.step,s))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let l=co(...d,e);l.length===0&&(l=Ar(n,e)),a.push(fe(a.pop(),l)),n.nodes=[];return}let c=me.encloseBrace(n),u=n.queue,f=n;for(;f.type!=="brace"&&f.type!=="root"&&f.parent;)f=f.parent,u=f.queue;for(let d=0;d<n.nodes.length;d++){let l=n.nodes[d];if(l.type==="comma"&&n.type==="brace"){d===1&&u.push(""),u.push("");continue}if(l.type==="close"){a.push(fe(a.pop(),u,c));continue}if(l.value&&l.type!=="open"){u.push(fe(u.pop(),l.value));continue}l.nodes&&r(l,n)}return u};return me.flatten(r(t))};Tr.exports=lo});var Ir=b((Bc,Cr)=>{"use strict";Cr.exports={MAX_LENGTH:1e4,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
2
+ `,CHAR_NO_BREAK_SPACE:"\xA0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}});var Pr=b((Wc,vr)=>{"use strict";var uo=Ye(),{MAX_LENGTH:xr,CHAR_BACKSLASH:vt,CHAR_BACKTICK:fo,CHAR_COMMA:ho,CHAR_DOT:po,CHAR_LEFT_PARENTHESES:_o,CHAR_RIGHT_PARENTHESES:go,CHAR_LEFT_CURLY_BRACE:Eo,CHAR_RIGHT_CURLY_BRACE:mo,CHAR_LEFT_SQUARE_BRACKET:br,CHAR_RIGHT_SQUARE_BRACKET:kr,CHAR_DOUBLE_QUOTE:yo,CHAR_SINGLE_QUOTE:wo,CHAR_NO_BREAK_SPACE:Ro,CHAR_ZERO_WIDTH_NOBREAK_SPACE:Ao}=Ir(),To=(t,e={})=>{if(typeof t!="string")throw new TypeError("Expected a string");let s=e||{},r=typeof s.maxLength=="number"?Math.min(xr,s.maxLength):xr;if(t.length>r)throw new SyntaxError(`Input length (${t.length}), exceeds max characters (${r})`);let n={type:"root",input:t,nodes:[]},o=[n],i=n,a=n,c=0,u=t.length,f=0,d=0,l,m=()=>t[f++],E=w=>{if(w.type==="text"&&a.type==="dot"&&(a.type="text"),a&&a.type==="text"&&w.type==="text"){a.value+=w.value;return}return i.nodes.push(w),w.parent=i,w.prev=a,a=w,w};for(E({type:"bos"});f<u;)if(i=o[o.length-1],l=m(),!(l===Ao||l===Ro)){if(l===vt){E({type:"text",value:(e.keepEscaping?l:"")+m()});continue}if(l===kr){E({type:"text",value:"\\"+l});continue}if(l===br){c++;let w;for(;f<u&&(w=m());){if(l+=w,w===br){c++;continue}if(w===vt){l+=m();continue}if(w===kr&&(c--,c===0))break}E({type:"text",value:l});continue}if(l===_o){i=E({type:"paren",nodes:[]}),o.push(i),E({type:"text",value:l});continue}if(l===go){if(i.type!=="paren"){E({type:"text",value:l});continue}i=o.pop(),E({type:"text",value:l}),i=o[o.length-1];continue}if(l===yo||l===wo||l===fo){let w=l,v;for(e.keepQuotes!==!0&&(l="");f<u&&(v=m());){if(v===vt){l+=v+m();continue}if(v===w){e.keepQuotes===!0&&(l+=v);break}l+=v}E({type:"text",value:l});continue}if(l===Eo){d++;let v={type:"brace",open:!0,close:!1,dollar:a.value&&a.value.slice(-1)==="$"||i.dollar===!0,depth:d,commas:0,ranges:0,nodes:[]};i=E(v),o.push(i),E({type:"open",value:l});continue}if(l===mo){if(i.type!=="brace"){E({type:"text",value:l});continue}let w="close";i=o.pop(),i.close=!0,E({type:w,value:l}),d--,i=o[o.length-1];continue}if(l===ho&&d>0){if(i.ranges>0){i.ranges=0;let w=i.nodes.shift();i.nodes=[w,{type:"text",value:uo(i)}]}E({type:"comma",value:l}),i.commas++;continue}if(l===po&&d>0&&i.commas===0){let w=i.nodes;if(d===0||w.length===0){E({type:"text",value:l});continue}if(a.type==="dot"){if(i.range=[],a.value+=l,a.type="range",i.nodes.length!==3&&i.nodes.length!==5){i.invalid=!0,i.ranges=0,a.type="text";continue}i.ranges++,i.args=[];continue}if(a.type==="range"){w.pop();let v=w[w.length-1];v.value+=a.value+l,a=v,i.ranges--;continue}E({type:"dot",value:l});continue}E({type:"text",value:l})}do if(i=o.pop(),i.type!=="root"){i.nodes.forEach(D=>{D.nodes||(D.type==="open"&&(D.isOpen=!0),D.type==="close"&&(D.isClose=!0),D.nodes||(D.type="text"),D.invalid=!0)});let w=o[o.length-1],v=w.nodes.indexOf(i);w.nodes.splice(v,1,...i.nodes)}while(o.length>0);return E({type:"eos"}),n};vr.exports=To});var Lr=b((Gc,Or)=>{"use strict";var Nr=Ye(),So=Rr(),Co=Sr(),Io=Pr(),Q=(t,e={})=>{let s=[];if(Array.isArray(t))for(let r of t){let n=Q.create(r,e);Array.isArray(n)?s.push(...n):s.push(n)}else s=[].concat(Q.create(t,e));return e&&e.expand===!0&&e.nodupes===!0&&(s=[...new Set(s)]),s};Q.parse=(t,e={})=>Io(t,e);Q.stringify=(t,e={})=>Nr(typeof t=="string"?Q.parse(t,e):t,e);Q.compile=(t,e={})=>(typeof t=="string"&&(t=Q.parse(t,e)),So(t,e));Q.expand=(t,e={})=>{typeof t=="string"&&(t=Q.parse(t,e));let s=Co(t,e);return e.noempty===!0&&(s=s.filter(Boolean)),e.nodupes===!0&&(s=[...new Set(s)]),s};Q.create=(t,e={})=>t===""||t.length<3?[t]:e.expand!==!0?Q.compile(t,e):Q.expand(t,e);Or.exports=Q});var Hr=b((qc,xo)=>{xo.exports=["3dm","3ds","3g2","3gp","7z","a","aac","adp","afdesign","afphoto","afpub","ai","aif","aiff","alz","ape","apk","appimage","ar","arj","asf","au","avi","bak","baml","bh","bin","bk","bmp","btif","bz2","bzip2","cab","caf","cgm","class","cmx","cpio","cr2","cur","dat","dcm","deb","dex","djvu","dll","dmg","dng","doc","docm","docx","dot","dotm","dra","DS_Store","dsk","dts","dtshd","dvb","dwg","dxf","ecelp4800","ecelp7470","ecelp9600","egg","eol","eot","epub","exe","f4v","fbs","fh","fla","flac","flatpak","fli","flv","fpx","fst","fvt","g3","gh","gif","graffle","gz","gzip","h261","h263","h264","icns","ico","ief","img","ipa","iso","jar","jpeg","jpg","jpgv","jpm","jxr","key","ktx","lha","lib","lvp","lz","lzh","lzma","lzo","m3u","m4a","m4v","mar","mdi","mht","mid","midi","mj2","mka","mkv","mmr","mng","mobi","mov","movie","mp3","mp4","mp4a","mpeg","mpg","mpga","mxu","nef","npx","numbers","nupkg","o","odp","ods","odt","oga","ogg","ogv","otf","ott","pages","pbm","pcx","pdb","pdf","pea","pgm","pic","png","pnm","pot","potm","potx","ppa","ppam","ppm","pps","ppsm","ppsx","ppt","pptm","pptx","psd","pya","pyc","pyo","pyv","qt","rar","ras","raw","resources","rgb","rip","rlc","rmf","rmvb","rpm","rtf","rz","s3m","s7z","scpt","sgi","shar","snap","sil","sketch","slk","smv","snk","so","stl","suo","sub","swf","tar","tbz","tbz2","tga","tgz","thmx","tif","tiff","tlz","ttc","ttf","txz","udf","uvh","uvi","uvm","uvp","uvs","uvu","viv","vob","war","wav","wax","wbmp","wdp","weba","webm","webp","whl","wim","wm","wma","wmv","wmx","woff","woff2","wrm","wvx","xbm","xif","xla","xlam","xls","xlsb","xlsm","xlsx","xlt","xltm","xltx","xm","xmind","xpi","xpm","xwd","xz","z","zip","zipx"]});var Fr=b((Kc,Dr)=>{Dr.exports=Hr()});var Mr=b((jc,$r)=>{"use strict";var bo=L("path"),ko=Fr(),vo=new Set(ko);$r.exports=t=>vo.has(bo.extname(t).slice(1).toLowerCase())});var Qe=b(R=>{"use strict";var{sep:Po}=L("path"),{platform:Pt}=process,No=L("os");R.EV_ALL="all";R.EV_READY="ready";R.EV_ADD="add";R.EV_CHANGE="change";R.EV_ADD_DIR="addDir";R.EV_UNLINK="unlink";R.EV_UNLINK_DIR="unlinkDir";R.EV_RAW="raw";R.EV_ERROR="error";R.STR_DATA="data";R.STR_END="end";R.STR_CLOSE="close";R.FSEVENT_CREATED="created";R.FSEVENT_MODIFIED="modified";R.FSEVENT_DELETED="deleted";R.FSEVENT_MOVED="moved";R.FSEVENT_CLONED="cloned";R.FSEVENT_UNKNOWN="unknown";R.FSEVENT_FLAG_MUST_SCAN_SUBDIRS=1;R.FSEVENT_TYPE_FILE="file";R.FSEVENT_TYPE_DIRECTORY="directory";R.FSEVENT_TYPE_SYMLINK="symlink";R.KEY_LISTENERS="listeners";R.KEY_ERR="errHandlers";R.KEY_RAW="rawEmitters";R.HANDLER_KEYS=[R.KEY_LISTENERS,R.KEY_ERR,R.KEY_RAW];R.DOT_SLASH=`.${Po}`;R.BACK_SLASH_RE=/\\/g;R.DOUBLE_SLASH_RE=/\/\//;R.SLASH_OR_BACK_SLASH_RE=/[/\\]/;R.DOT_RE=/\..*\.(sw[px])$|~$|\.subl.*\.tmp/;R.REPLACER_RE=/^\.[/\\]/;R.SLASH="/";R.SLASH_SLASH="//";R.BRACE_START="{";R.BANG="!";R.ONE_DOT=".";R.TWO_DOTS="..";R.STAR="*";R.GLOBSTAR="**";R.ROOT_GLOBSTAR="/**/*";R.SLASH_GLOBSTAR="/**";R.DIR_SUFFIX="Dir";R.ANYMATCH_OPTS={dot:!0};R.STRING_TYPE="string";R.FUNCTION_TYPE="function";R.EMPTY_STR="";R.EMPTY_FN=()=>{};R.IDENTITY_FN=t=>t;R.isWindows=Pt==="win32";R.isMacos=Pt==="darwin";R.isLinux=Pt==="linux";R.isIBMi=No.type()==="OS400"});var Kr=b((Yc,qr)=>{"use strict";var ie=L("fs"),U=L("path"),{promisify:ke}=L("util"),Oo=Mr(),{isWindows:Lo,isLinux:Ho,EMPTY_FN:Do,EMPTY_STR:Fo,KEY_LISTENERS:ye,KEY_ERR:Nt,KEY_RAW:Ie,HANDLER_KEYS:$o,EV_CHANGE:Je,EV_ADD:Ze,EV_ADD_DIR:Mo,EV_ERROR:Br,STR_DATA:Uo,STR_END:Bo,BRACE_START:Wo,STAR:Go}=Qe(),qo="watch",Ko=ke(ie.open),Wr=ke(ie.stat),jo=ke(ie.lstat),Vo=ke(ie.close),Ot=ke(ie.realpath),Yo={lstat:jo,stat:Wr},Ht=(t,e)=>{t instanceof Set?t.forEach(e):e(t)},xe=(t,e,s)=>{let r=t[e];r instanceof Set||(t[e]=r=new Set([r])),r.add(s)},zo=t=>e=>{let s=t[e];s instanceof Set?s.clear():delete t[e]},be=(t,e,s)=>{let r=t[e];r instanceof Set?r.delete(s):r===s&&delete t[e]},Gr=t=>t instanceof Set?t.size===0:!t,et=new Map;function Ur(t,e,s,r,n){let o=(i,a)=>{s(t),n(i,a,{watchedPath:t}),a&&t!==a&&tt(U.resolve(t,a),ye,U.join(t,a))};try{return ie.watch(t,e,o)}catch(i){r(i)}}var tt=(t,e,s,r,n)=>{let o=et.get(t);o&&Ht(o[e],i=>{i(s,r,n)})},Xo=(t,e,s,r)=>{let{listener:n,errHandler:o,rawEmitter:i}=r,a=et.get(e),c;if(!s.persistent)return c=Ur(t,s,n,o,i),c.close.bind(c);if(a)xe(a,ye,n),xe(a,Nt,o),xe(a,Ie,i);else{if(c=Ur(t,s,tt.bind(null,e,ye),o,tt.bind(null,e,Ie)),!c)return;c.on(Br,async u=>{let f=tt.bind(null,e,Nt);if(a.watcherUnusable=!0,Lo&&u.code==="EPERM")try{let d=await Ko(t,"r");await Vo(d),f(u)}catch{}else f(u)}),a={listeners:n,errHandlers:o,rawEmitters:i,watcher:c},et.set(e,a)}return()=>{be(a,ye,n),be(a,Nt,o),be(a,Ie,i),Gr(a.listeners)&&(a.watcher.close(),et.delete(e),$o.forEach(zo(a)),a.watcher=void 0,Object.freeze(a))}},Lt=new Map,Qo=(t,e,s,r)=>{let{listener:n,rawEmitter:o}=r,i=Lt.get(e),a=new Set,c=new Set,u=i&&i.options;return u&&(u.persistent<s.persistent||u.interval>s.interval)&&(a=i.listeners,c=i.rawEmitters,ie.unwatchFile(e),i=void 0),i?(xe(i,ye,n),xe(i,Ie,o)):(i={listeners:n,rawEmitters:o,options:s,watcher:ie.watchFile(e,s,(f,d)=>{Ht(i.rawEmitters,m=>{m(Je,e,{curr:f,prev:d})});let l=f.mtimeMs;(f.size!==d.size||l>d.mtimeMs||l===0)&&Ht(i.listeners,m=>m(t,f))})},Lt.set(e,i)),()=>{be(i,ye,n),be(i,Ie,o),Gr(i.listeners)&&(Lt.delete(e),ie.unwatchFile(e),i.options=i.watcher=void 0,Object.freeze(i))}},Dt=class{constructor(e){this.fsw=e,this._boundHandleError=s=>e._handleError(s)}_watchWithNodeFs(e,s){let r=this.fsw.options,n=U.dirname(e),o=U.basename(e);this.fsw._getWatchedDir(n).add(o);let a=U.resolve(e),c={persistent:r.persistent};s||(s=Do);let u;return r.usePolling?(c.interval=r.enableBinaryInterval&&Oo(o)?r.binaryInterval:r.interval,u=Qo(e,a,c,{listener:s,rawEmitter:this.fsw._emitRaw})):u=Xo(e,a,c,{listener:s,errHandler:this._boundHandleError,rawEmitter:this.fsw._emitRaw}),u}_handleFile(e,s,r){if(this.fsw.closed)return;let n=U.dirname(e),o=U.basename(e),i=this.fsw._getWatchedDir(n),a=s;if(i.has(o))return;let c=async(f,d)=>{if(this.fsw._throttle(qo,e,5)){if(!d||d.mtimeMs===0)try{let l=await Wr(e);if(this.fsw.closed)return;let m=l.atimeMs,E=l.mtimeMs;(!m||m<=E||E!==a.mtimeMs)&&this.fsw._emit(Je,e,l),Ho&&a.ino!==l.ino?(this.fsw._closeFile(f),a=l,this.fsw._addPathCloser(f,this._watchWithNodeFs(e,c))):a=l}catch{this.fsw._remove(n,o)}else if(i.has(o)){let l=d.atimeMs,m=d.mtimeMs;(!l||l<=m||m!==a.mtimeMs)&&this.fsw._emit(Je,e,d),a=d}}},u=this._watchWithNodeFs(e,c);if(!(r&&this.fsw.options.ignoreInitial)&&this.fsw._isntIgnored(e)){if(!this.fsw._throttle(Ze,e,0))return;this.fsw._emit(Ze,e,s)}return u}async _handleSymlink(e,s,r,n){if(this.fsw.closed)return;let o=e.fullPath,i=this.fsw._getWatchedDir(s);if(!this.fsw.options.followSymlinks){this.fsw._incrReadyCount();let a;try{a=await Ot(r)}catch{return this.fsw._emitReady(),!0}return this.fsw.closed?void 0:(i.has(n)?this.fsw._symlinkPaths.get(o)!==a&&(this.fsw._symlinkPaths.set(o,a),this.fsw._emit(Je,r,e.stats)):(i.add(n),this.fsw._symlinkPaths.set(o,a),this.fsw._emit(Ze,r,e.stats)),this.fsw._emitReady(),!0)}if(this.fsw._symlinkPaths.has(o))return!0;this.fsw._symlinkPaths.set(o,!0)}_handleRead(e,s,r,n,o,i,a){if(e=U.join(e,Fo),!r.hasGlob&&(a=this.fsw._throttle("readdir",e,1e3),!a))return;let c=this.fsw._getWatchedDir(r.path),u=new Set,f=this.fsw._readdirp(e,{fileFilter:d=>r.filterPath(d),directoryFilter:d=>r.filterDir(d),depth:0}).on(Uo,async d=>{if(this.fsw.closed){f=void 0;return}let l=d.path,m=U.join(e,l);if(u.add(l),!(d.stats.isSymbolicLink()&&await this._handleSymlink(d,e,m,l))){if(this.fsw.closed){f=void 0;return}(l===n||!n&&!c.has(l))&&(this.fsw._incrReadyCount(),m=U.join(o,U.relative(o,m)),this._addToNodeFs(m,s,r,i+1))}}).on(Br,this._boundHandleError);return new Promise(d=>f.once(Bo,()=>{if(this.fsw.closed){f=void 0;return}let l=a?a.clear():!1;d(),c.getChildren().filter(m=>m!==e&&!u.has(m)&&(!r.hasGlob||r.filterPath({fullPath:U.resolve(e,m)}))).forEach(m=>{this.fsw._remove(e,m)}),f=void 0,l&&this._handleRead(e,!1,r,n,o,i,a)}))}async _handleDir(e,s,r,n,o,i,a){let c=this.fsw._getWatchedDir(U.dirname(e)),u=c.has(U.basename(e));!(r&&this.fsw.options.ignoreInitial)&&!o&&!u&&(!i.hasGlob||i.globFilter(e))&&this.fsw._emit(Mo,e,s),c.add(U.basename(e)),this.fsw._getWatchedDir(e);let f,d,l=this.fsw.options.depth;if((l==null||n<=l)&&!this.fsw._symlinkPaths.has(a)){if(!o&&(await this._handleRead(e,r,i,o,e,n,f),this.fsw.closed))return;d=this._watchWithNodeFs(e,(m,E)=>{E&&E.mtimeMs===0||this._handleRead(m,!1,i,o,e,n,f)})}return d}async _addToNodeFs(e,s,r,n,o){let i=this.fsw._emitReady;if(this.fsw._isIgnored(e)||this.fsw.closed)return i(),!1;let a=this.fsw._getWatchHelpers(e,n);!a.hasGlob&&r&&(a.hasGlob=r.hasGlob,a.globFilter=r.globFilter,a.filterPath=c=>r.filterPath(c),a.filterDir=c=>r.filterDir(c));try{let c=await Yo[a.statMethod](a.watchPath);if(this.fsw.closed)return;if(this.fsw._isIgnored(a.watchPath,c))return i(),!1;let u=this.fsw.options.followSymlinks&&!e.includes(Go)&&!e.includes(Wo),f;if(c.isDirectory()){let d=U.resolve(e),l=u?await Ot(e):e;if(this.fsw.closed||(f=await this._handleDir(a.watchPath,c,s,n,o,a,l),this.fsw.closed))return;d!==l&&l!==void 0&&this.fsw._symlinkPaths.set(d,l)}else if(c.isSymbolicLink()){let d=u?await Ot(e):e;if(this.fsw.closed)return;let l=U.dirname(a.watchPath);if(this.fsw._getWatchedDir(l).add(a.watchPath),this.fsw._emit(Ze,a.watchPath,c),f=await this._handleDir(l,c,s,n,e,a,d),this.fsw.closed)return;d!==void 0&&this.fsw._symlinkPaths.set(U.resolve(e),d)}else f=this._handleFile(a.watchPath,c,s);return i(),this.fsw._addPathCloser(e,f),!1}catch(c){if(this.fsw._handleError(c))return i(),e}}};qr.exports=Dt});var Zr=b((zc,qt)=>{"use strict";var Wt=L("fs"),B=L("path"),{promisify:Gt}=L("util"),we;try{we=L("fsevents")}catch(t){process.env.CHOKIDAR_PRINT_FSEVENTS_REQUIRE_ERROR&&console.error(t)}if(we){let t=process.version.match(/v(\d+)\.(\d+)/);if(t&&t[1]&&t[2]){let e=Number.parseInt(t[1],10),s=Number.parseInt(t[2],10);e===8&&s<16&&(we=void 0)}}var{EV_ADD:Ft,EV_CHANGE:Zo,EV_ADD_DIR:jr,EV_UNLINK:st,EV_ERROR:Jo,STR_DATA:ea,STR_END:ta,FSEVENT_CREATED:sa,FSEVENT_MODIFIED:ra,FSEVENT_DELETED:na,FSEVENT_MOVED:ia,FSEVENT_UNKNOWN:oa,FSEVENT_FLAG_MUST_SCAN_SUBDIRS:aa,FSEVENT_TYPE_FILE:ca,FSEVENT_TYPE_DIRECTORY:ve,FSEVENT_TYPE_SYMLINK:Qr,ROOT_GLOBSTAR:Vr,DIR_SUFFIX:la,DOT_SLASH:Yr,FUNCTION_TYPE:$t,EMPTY_FN:ua,IDENTITY_FN:fa}=Qe(),da=t=>isNaN(t)?{}:{depth:t},Ut=Gt(Wt.stat),ha=Gt(Wt.lstat),zr=Gt(Wt.realpath),pa={stat:Ut,lstat:ha},de=new Map,_a=10,ga=new Set([69888,70400,71424,72704,73472,131328,131840,262912]),Ea=(t,e)=>({stop:we.watch(t,e)});function ma(t,e,s,r){let n=B.extname(e)?B.dirname(e):e,o=B.dirname(n),i=de.get(n);ya(o)&&(n=o);let a=B.resolve(t),c=a!==e,u=(d,l,m)=>{c&&(d=d.replace(e,a)),(d===a||!d.indexOf(a+B.sep))&&s(d,l,m)},f=!1;for(let d of de.keys())if(e.indexOf(B.resolve(d)+B.sep)===0){n=d,i=de.get(n),f=!0;break}return i||f?i.listeners.add(u):(i={listeners:new Set([u]),rawEmitter:r,watcher:Ea(n,(d,l)=>{if(!i.listeners.size||l&aa)return;let m=we.getInfo(d,l);i.listeners.forEach(E=>{E(d,l,m)}),i.rawEmitter(m.event,d,m)})},de.set(n,i)),()=>{let d=i.listeners;if(d.delete(u),!d.size&&(de.delete(n),i.watcher))return i.watcher.stop().then(()=>{i.rawEmitter=i.watcher=void 0,Object.freeze(i)})}}var ya=t=>{let e=0;for(let s of de.keys())if(s.indexOf(t)===0&&(e++,e>=_a))return!0;return!1},wa=()=>we&&de.size<128,Mt=(t,e)=>{let s=0;for(;!t.indexOf(e)&&(t=B.dirname(t))!==e;)s++;return s},Xr=(t,e)=>t.type===ve&&e.isDirectory()||t.type===Qr&&e.isSymbolicLink()||t.type===ca&&e.isFile(),Bt=class{constructor(e){this.fsw=e}checkIgnored(e,s){let r=this.fsw._ignoredPaths;if(this.fsw._isIgnored(e,s))return r.add(e),s&&s.isDirectory()&&r.add(e+Vr),!0;r.delete(e),r.delete(e+Vr)}addOrChange(e,s,r,n,o,i,a,c){let u=o.has(i)?Zo:Ft;this.handleEvent(u,e,s,r,n,o,i,a,c)}async checkExists(e,s,r,n,o,i,a,c){try{let u=await Ut(e);if(this.fsw.closed)return;Xr(a,u)?this.addOrChange(e,s,r,n,o,i,a,c):this.handleEvent(st,e,s,r,n,o,i,a,c)}catch(u){u.code==="EACCES"?this.addOrChange(e,s,r,n,o,i,a,c):this.handleEvent(st,e,s,r,n,o,i,a,c)}}handleEvent(e,s,r,n,o,i,a,c,u){if(!(this.fsw.closed||this.checkIgnored(s)))if(e===st){let f=c.type===ve;(f||i.has(a))&&this.fsw._remove(o,a,f)}else{if(e===Ft){if(c.type===ve&&this.fsw._getWatchedDir(s),c.type===Qr&&u.followSymlinks){let d=u.depth===void 0?void 0:Mt(r,n)+1;return this._addToFsEvents(s,!1,!0,d)}this.fsw._getWatchedDir(o).add(a)}let f=c.type===ve?e+la:e;this.fsw._emit(f,s),f===jr&&this._addToFsEvents(s,!1,!0)}}_watchWithFsEvents(e,s,r,n){if(this.fsw.closed||this.fsw._isIgnored(e))return;let o=this.fsw.options,a=ma(e,s,async(c,u,f)=>{if(this.fsw.closed||o.depth!==void 0&&Mt(c,s)>o.depth)return;let d=r(B.join(e,B.relative(e,c)));if(n&&!n(d))return;let l=B.dirname(d),m=B.basename(d),E=this.fsw._getWatchedDir(f.type===ve?d:l);if(ga.has(u)||f.event===oa)if(typeof o.ignored===$t){let w;try{w=await Ut(d)}catch{}if(this.fsw.closed||this.checkIgnored(d,w))return;Xr(f,w)?this.addOrChange(d,c,s,l,E,m,f,o):this.handleEvent(st,d,c,s,l,E,m,f,o)}else this.checkExists(d,c,s,l,E,m,f,o);else switch(f.event){case sa:case ra:return this.addOrChange(d,c,s,l,E,m,f,o);case na:case ia:return this.checkExists(d,c,s,l,E,m,f,o)}},this.fsw._emitRaw);return this.fsw._emitReady(),a}async _handleFsEventsSymlink(e,s,r,n){if(!(this.fsw.closed||this.fsw._symlinkPaths.has(s))){this.fsw._symlinkPaths.set(s,!0),this.fsw._incrReadyCount();try{let o=await zr(e);if(this.fsw.closed)return;if(this.fsw._isIgnored(o))return this.fsw._emitReady();this.fsw._incrReadyCount(),this._addToFsEvents(o||e,i=>{let a=e;return o&&o!==Yr?a=i.replace(o,e):i!==Yr&&(a=B.join(e,i)),r(a)},!1,n)}catch(o){if(this.fsw._handleError(o))return this.fsw._emitReady()}}}emitAdd(e,s,r,n,o){let i=r(e),a=s.isDirectory(),c=this.fsw._getWatchedDir(B.dirname(i)),u=B.basename(i);a&&this.fsw._getWatchedDir(i),!c.has(u)&&(c.add(u),(!n.ignoreInitial||o===!0)&&this.fsw._emit(a?jr:Ft,i,s))}initWatch(e,s,r,n){if(this.fsw.closed)return;let o=this._watchWithFsEvents(r.watchPath,B.resolve(e||r.watchPath),n,r.globFilter);this.fsw._addPathCloser(s,o)}async _addToFsEvents(e,s,r,n){if(this.fsw.closed)return;let o=this.fsw.options,i=typeof s===$t?s:fa,a=this.fsw._getWatchHelpers(e);try{let c=await pa[a.statMethod](a.watchPath);if(this.fsw.closed)return;if(this.fsw._isIgnored(a.watchPath,c))throw null;if(c.isDirectory()){if(a.globFilter||this.emitAdd(i(e),c,i,o,r),n&&n>o.depth)return;this.fsw._readdirp(a.watchPath,{fileFilter:u=>a.filterPath(u),directoryFilter:u=>a.filterDir(u),...da(o.depth-(n||0))}).on(ea,u=>{if(this.fsw.closed||u.stats.isDirectory()&&!a.filterPath(u))return;let f=B.join(a.watchPath,u.path),{fullPath:d}=u;if(a.followSymlinks&&u.stats.isSymbolicLink()){let l=o.depth===void 0?void 0:Mt(f,B.resolve(a.watchPath))+1;this._handleFsEventsSymlink(f,d,i,l)}else this.emitAdd(f,u.stats,i,o,r)}).on(Jo,ua).on(ta,()=>{this.fsw._emitReady()})}else this.emitAdd(a.watchPath,c,i,o,r),this.fsw._emitReady()}catch(c){(!c||this.fsw._handleError(c))&&(this.fsw._emitReady(),this.fsw._emitReady())}if(o.persistent&&r!==!0)if(typeof s===$t)this.initWatch(void 0,e,a,i);else{let c;try{c=await zr(a.watchPath)}catch{}this.initWatch(c,e,a,i)}}};qt.exports=Bt;qt.exports.canUse=wa});var un=b(is=>{"use strict";var{EventEmitter:Ra}=L("events"),rs=L("fs"),k=L("path"),{promisify:on}=L("util"),Aa=Ms(),Xt=js().default,Ta=Zs(),Kt=St(),Sa=Lr(),Ca=At(),Ia=Kr(),Jr=Zr(),{EV_ALL:jt,EV_READY:xa,EV_ADD:rt,EV_CHANGE:Pe,EV_UNLINK:en,EV_ADD_DIR:ba,EV_UNLINK_DIR:ka,EV_RAW:va,EV_ERROR:Vt,STR_CLOSE:Pa,STR_END:Na,BACK_SLASH_RE:Oa,DOUBLE_SLASH_RE:tn,SLASH_OR_BACK_SLASH_RE:La,DOT_RE:Ha,REPLACER_RE:Da,SLASH:Yt,SLASH_SLASH:Fa,BRACE_START:$a,BANG:Qt,ONE_DOT:an,TWO_DOTS:Ma,GLOBSTAR:Ua,SLASH_GLOBSTAR:zt,ANYMATCH_OPTS:Zt,STRING_TYPE:ns,FUNCTION_TYPE:Ba,EMPTY_STR:Jt,EMPTY_FN:Wa,isWindows:Ga,isMacos:qa,isIBMi:Ka}=Qe(),ja=on(rs.stat),Va=on(rs.readdir),es=(t=[])=>Array.isArray(t)?t:[t],cn=(t,e=[])=>(t.forEach(s=>{Array.isArray(s)?cn(s,e):e.push(s)}),e),sn=t=>{let e=cn(es(t));if(!e.every(s=>typeof s===ns))throw new TypeError(`Non-string provided as watch path: ${e}`);return e.map(ln)},rn=t=>{let e=t.replace(Oa,Yt),s=!1;for(e.startsWith(Fa)&&(s=!0);e.match(tn);)e=e.replace(tn,Yt);return s&&(e=Yt+e),e},ln=t=>rn(k.normalize(rn(t))),nn=(t=Jt)=>e=>typeof e!==ns?e:ln(k.isAbsolute(e)?e:k.join(t,e)),Ya=(t,e)=>k.isAbsolute(t)?t:t.startsWith(Qt)?Qt+k.join(e,t.slice(1)):k.join(e,t),J=(t,e)=>t[e]===void 0,ts=class{constructor(e,s){this.path=e,this._removeWatcher=s,this.items=new Set}add(e){let{items:s}=this;s&&e!==an&&e!==Ma&&s.add(e)}async remove(e){let{items:s}=this;if(!s||(s.delete(e),s.size>0))return;let r=this.path;try{await Va(r)}catch{this._removeWatcher&&this._removeWatcher(k.dirname(r),k.basename(r))}}has(e){let{items:s}=this;if(s)return s.has(e)}getChildren(){let{items:e}=this;if(e)return[...e.values()]}dispose(){this.items.clear(),delete this.path,delete this._removeWatcher,delete this.items,Object.freeze(this)}},za="stat",Xa="lstat",ss=class{constructor(e,s,r,n){this.fsw=n,this.path=e=e.replace(Da,Jt),this.watchPath=s,this.fullWatchPath=k.resolve(s),this.hasGlob=s!==e,e===Jt&&(this.hasGlob=!1),this.globSymlink=this.hasGlob&&r?void 0:!1,this.globFilter=this.hasGlob?Xt(e,void 0,Zt):!1,this.dirParts=this.getDirParts(e),this.dirParts.forEach(o=>{o.length>1&&o.pop()}),this.followSymlinks=r,this.statMethod=r?za:Xa}checkGlobSymlink(e){return this.globSymlink===void 0&&(this.globSymlink=e.fullParentDir===this.fullWatchPath?!1:{realPath:e.fullParentDir,linkPath:this.fullWatchPath}),this.globSymlink?e.fullPath.replace(this.globSymlink.realPath,this.globSymlink.linkPath):e.fullPath}entryPath(e){return k.join(this.watchPath,k.relative(this.watchPath,this.checkGlobSymlink(e)))}filterPath(e){let{stats:s}=e;if(s&&s.isSymbolicLink())return this.filterDir(e);let r=this.entryPath(e);return(this.hasGlob&&typeof this.globFilter===Ba?this.globFilter(r):!0)&&this.fsw._isntIgnored(r,s)&&this.fsw._hasReadPermissions(s)}getDirParts(e){if(!this.hasGlob)return[];let s=[];return(e.includes($a)?Sa.expand(e):[e]).forEach(n=>{s.push(k.relative(this.watchPath,n).split(La))}),s}filterDir(e){if(this.hasGlob){let s=this.getDirParts(this.checkGlobSymlink(e)),r=!1;this.unmatchedGlob=!this.dirParts.some(n=>n.every((o,i)=>(o===Ua&&(r=!0),r||!s[0][i]||Xt(o,s[0][i],Zt))))}return!this.unmatchedGlob&&this.fsw._isntIgnored(this.entryPath(e),e.stats)}},nt=class extends Ra{constructor(e){super();let s={};e&&Object.assign(s,e),this._watched=new Map,this._closers=new Map,this._ignoredPaths=new Set,this._throttled=new Map,this._symlinkPaths=new Map,this._streams=new Set,this.closed=!1,J(s,"persistent")&&(s.persistent=!0),J(s,"ignoreInitial")&&(s.ignoreInitial=!1),J(s,"ignorePermissionErrors")&&(s.ignorePermissionErrors=!1),J(s,"interval")&&(s.interval=100),J(s,"binaryInterval")&&(s.binaryInterval=300),J(s,"disableGlobbing")&&(s.disableGlobbing=!1),s.enableBinaryInterval=s.binaryInterval!==s.interval,J(s,"useFsEvents")&&(s.useFsEvents=!s.usePolling),Jr.canUse()||(s.useFsEvents=!1),J(s,"usePolling")&&!s.useFsEvents&&(s.usePolling=qa),Ka&&(s.usePolling=!0);let n=process.env.CHOKIDAR_USEPOLLING;if(n!==void 0){let c=n.toLowerCase();c==="false"||c==="0"?s.usePolling=!1:c==="true"||c==="1"?s.usePolling=!0:s.usePolling=!!c}let o=process.env.CHOKIDAR_INTERVAL;o&&(s.interval=Number.parseInt(o,10)),J(s,"atomic")&&(s.atomic=!s.usePolling&&!s.useFsEvents),s.atomic&&(this._pendingUnlinks=new Map),J(s,"followSymlinks")&&(s.followSymlinks=!0),J(s,"awaitWriteFinish")&&(s.awaitWriteFinish=!1),s.awaitWriteFinish===!0&&(s.awaitWriteFinish={});let i=s.awaitWriteFinish;i&&(i.stabilityThreshold||(i.stabilityThreshold=2e3),i.pollInterval||(i.pollInterval=100),this._pendingWrites=new Map),s.ignored&&(s.ignored=es(s.ignored));let a=0;this._emitReady=()=>{a++,a>=this._readyCount&&(this._emitReady=Wa,this._readyEmitted=!0,process.nextTick(()=>this.emit(xa)))},this._emitRaw=(...c)=>this.emit(va,...c),this._readyEmitted=!1,this.options=s,s.useFsEvents?this._fsEventsHandler=new Jr(this):this._nodeFsHandler=new Ia(this),Object.freeze(s)}add(e,s,r){let{cwd:n,disableGlobbing:o}=this.options;this.closed=!1;let i=sn(e);return n&&(i=i.map(a=>{let c=Ya(a,n);return o||!Kt(a)?c:Ca(c)})),i=i.filter(a=>a.startsWith(Qt)?(this._ignoredPaths.add(a.slice(1)),!1):(this._ignoredPaths.delete(a),this._ignoredPaths.delete(a+zt),this._userIgnored=void 0,!0)),this.options.useFsEvents&&this._fsEventsHandler?(this._readyCount||(this._readyCount=i.length),this.options.persistent&&(this._readyCount+=i.length),i.forEach(a=>this._fsEventsHandler._addToFsEvents(a))):(this._readyCount||(this._readyCount=0),this._readyCount+=i.length,Promise.all(i.map(async a=>{let c=await this._nodeFsHandler._addToNodeFs(a,!r,0,0,s);return c&&this._emitReady(),c})).then(a=>{this.closed||a.filter(c=>c).forEach(c=>{this.add(k.dirname(c),k.basename(s||c))})})),this}unwatch(e){if(this.closed)return this;let s=sn(e),{cwd:r}=this.options;return s.forEach(n=>{!k.isAbsolute(n)&&!this._closers.has(n)&&(r&&(n=k.join(r,n)),n=k.resolve(n)),this._closePath(n),this._ignoredPaths.add(n),this._watched.has(n)&&this._ignoredPaths.add(n+zt),this._userIgnored=void 0}),this}close(){if(this.closed)return this._closePromise;this.closed=!0,this.removeAllListeners();let e=[];return this._closers.forEach(s=>s.forEach(r=>{let n=r();n instanceof Promise&&e.push(n)})),this._streams.forEach(s=>s.destroy()),this._userIgnored=void 0,this._readyCount=0,this._readyEmitted=!1,this._watched.forEach(s=>s.dispose()),["closers","watched","streams","symlinkPaths","throttled"].forEach(s=>{this[`_${s}`].clear()}),this._closePromise=e.length?Promise.all(e).then(()=>{}):Promise.resolve(),this._closePromise}getWatched(){let e={};return this._watched.forEach((s,r)=>{let n=this.options.cwd?k.relative(this.options.cwd,r):r;e[n||an]=s.getChildren().sort()}),e}emitWithAll(e,s){this.emit(...s),e!==Vt&&this.emit(jt,...s)}async _emit(e,s,r,n,o){if(this.closed)return;let i=this.options;Ga&&(s=k.normalize(s)),i.cwd&&(s=k.relative(i.cwd,s));let a=[e,s];o!==void 0?a.push(r,n,o):n!==void 0?a.push(r,n):r!==void 0&&a.push(r);let c=i.awaitWriteFinish,u;if(c&&(u=this._pendingWrites.get(s)))return u.lastChange=new Date,this;if(i.atomic){if(e===en)return this._pendingUnlinks.set(s,a),setTimeout(()=>{this._pendingUnlinks.forEach((f,d)=>{this.emit(...f),this.emit(jt,...f),this._pendingUnlinks.delete(d)})},typeof i.atomic=="number"?i.atomic:100),this;e===rt&&this._pendingUnlinks.has(s)&&(e=a[0]=Pe,this._pendingUnlinks.delete(s))}if(c&&(e===rt||e===Pe)&&this._readyEmitted){let f=(d,l)=>{d?(e=a[0]=Vt,a[1]=d,this.emitWithAll(e,a)):l&&(a.length>2?a[2]=l:a.push(l),this.emitWithAll(e,a))};return this._awaitWriteFinish(s,c.stabilityThreshold,e,f),this}if(e===Pe&&!this._throttle(Pe,s,50))return this;if(i.alwaysStat&&r===void 0&&(e===rt||e===ba||e===Pe)){let f=i.cwd?k.join(i.cwd,s):s,d;try{d=await ja(f)}catch{}if(!d||this.closed)return;a.push(d)}return this.emitWithAll(e,a),this}_handleError(e){let s=e&&e.code;return e&&s!=="ENOENT"&&s!=="ENOTDIR"&&(!this.options.ignorePermissionErrors||s!=="EPERM"&&s!=="EACCES")&&this.emit(Vt,e),e||this.closed}_throttle(e,s,r){this._throttled.has(e)||this._throttled.set(e,new Map);let n=this._throttled.get(e),o=n.get(s);if(o)return o.count++,!1;let i,a=()=>{let u=n.get(s),f=u?u.count:0;return n.delete(s),clearTimeout(i),u&&clearTimeout(u.timeoutObject),f};i=setTimeout(a,r);let c={timeoutObject:i,clear:a,count:0};return n.set(s,c),c}_incrReadyCount(){return this._readyCount++}_awaitWriteFinish(e,s,r,n){let o,i=e;this.options.cwd&&!k.isAbsolute(e)&&(i=k.join(this.options.cwd,e));let a=new Date,c=u=>{rs.stat(i,(f,d)=>{if(f||!this._pendingWrites.has(e)){f&&f.code!=="ENOENT"&&n(f);return}let l=Number(new Date);u&&d.size!==u.size&&(this._pendingWrites.get(e).lastChange=l);let m=this._pendingWrites.get(e);l-m.lastChange>=s?(this._pendingWrites.delete(e),n(void 0,d)):o=setTimeout(c,this.options.awaitWriteFinish.pollInterval,d)})};this._pendingWrites.has(e)||(this._pendingWrites.set(e,{lastChange:a,cancelWait:()=>(this._pendingWrites.delete(e),clearTimeout(o),r)}),o=setTimeout(c,this.options.awaitWriteFinish.pollInterval))}_getGlobIgnored(){return[...this._ignoredPaths.values()]}_isIgnored(e,s){if(this.options.atomic&&Ha.test(e))return!0;if(!this._userIgnored){let{cwd:r}=this.options,n=this.options.ignored,o=n&&n.map(nn(r)),i=es(o).filter(c=>typeof c===ns&&!Kt(c)).map(c=>c+zt),a=this._getGlobIgnored().map(nn(r)).concat(o,i);this._userIgnored=Xt(a,void 0,Zt)}return this._userIgnored([e,s])}_isntIgnored(e,s){return!this._isIgnored(e,s)}_getWatchHelpers(e,s){let r=s||this.options.disableGlobbing||!Kt(e)?e:Ta(e),n=this.options.followSymlinks;return new ss(e,r,n,this)}_getWatchedDir(e){this._boundRemove||(this._boundRemove=this._remove.bind(this));let s=k.resolve(e);return this._watched.has(s)||this._watched.set(s,new ts(s,this._boundRemove)),this._watched.get(s)}_hasReadPermissions(e){if(this.options.ignorePermissionErrors)return!0;let r=(e&&Number.parseInt(e.mode,10))&511;return!!(4&Number.parseInt(r.toString(8)[0],10))}_remove(e,s,r){let n=k.join(e,s),o=k.resolve(n);if(r=r??(this._watched.has(n)||this._watched.has(o)),!this._throttle("remove",n,100))return;!r&&!this.options.useFsEvents&&this._watched.size===1&&this.add(e,s,!0),this._getWatchedDir(n).getChildren().forEach(l=>this._remove(n,l));let c=this._getWatchedDir(e),u=c.has(s);c.remove(s),this._symlinkPaths.has(o)&&this._symlinkPaths.delete(o);let f=n;if(this.options.cwd&&(f=k.relative(this.options.cwd,n)),this.options.awaitWriteFinish&&this._pendingWrites.has(f)&&this._pendingWrites.get(f).cancelWait()===rt)return;this._watched.delete(n),this._watched.delete(o);let d=r?ka:en;u&&!this._isIgnored(n)&&this._emit(d,n),this.options.useFsEvents||this._closePath(n)}_closePath(e){this._closeFile(e);let s=k.dirname(e);this._getWatchedDir(s).remove(k.basename(e))}_closeFile(e){let s=this._closers.get(e);s&&(s.forEach(r=>r()),this._closers.delete(e))}_addPathCloser(e,s){if(!s)return;let r=this._closers.get(e);r||(r=[],this._closers.set(e,r)),r.push(s)}_readdirp(e,s){if(this.closed)return;let r={type:jt,alwaysStat:!0,lstat:!0,...s},n=Aa(e,r);return this._streams.add(n),n.once(Pa,()=>{n=void 0}),n.once(Na,()=>{n&&(this._streams.delete(n),n=void 0)}),n}};is.FSWatcher=nt;var Qa=(t,e)=>{let s=new nt(e);return s.add(t),s};is.watch=Qa});import"only-server";import"../common/index.mjs";var hn=Bn(un(),1);import{fork as Ja}from"node:child_process";import{existsSync as fn,promises as ec}from"node:fs";import{basename as as,dirname as ls,join as cs,relative as dn}from"node:path";import{build as tc}from"esbuild";import{jwtDecode as sc}from"jwt-decode";import{Issuer as rc,custom as nc}from"openid-client";import{Logger as ic}from"@5minds/processcube_engine_sdk";import{EngineClient as Za}from"@5minds/processcube_engine_client";var os=process.env.PROCESSCUBE_ENGINE_URL??"http://localhost:10560",T=new Za(os);var oc={token:"ZHVtbXlfdG9rZW4=",userId:"dummy_token"},ac=.85,it=["external_task.ts","external_task.js"],us=process.env.PROCESSCUBE_AUTHORITY_URL!==void 0,pe=new ic("processcube_app_sdk:external_task_adapter"),he={},Ne;async function pn(t){if(t&&!fn(t))throw new Error(`Invalid customExternalTasksDirPath. The given path '${t}' does not exist`);nc.setHttpOptionsDefaults({timeout:1e5});let e=await En();Ne=await mn(e),await lc(e);let s=fc(t);(0,hn.watch)(s).on("add",async r=>{if(it.includes(as(r)))return _n(r,s)}).on("change",async r=>{if(it.includes(as(r)))return cc(r,s)}).on("unlink",async r=>{it.includes(as(r))&&gn(r)}).on("error",r=>pe.error(`Watcher error: ${r}`))}async function _n(t,e){let s=ls(t);if((await ec.readdir(s)).filter(f=>it.includes(f)).length>1){pe.error(`Multiple external task files found in directory ${s}. Stopping all external task workers for this directory.`),he[s]&&gn(t);return}let o=await yn(t),i=dn(e,s),a=wn(i),c=cs(__dirname,"lib/ExternalTaskWorkerProcess.cjs"),u=Ja(c,{env:{...process.env,PROCESSCUBE_ENGINE_URL:os}});he[s]=u,u.once("disconnect",()=>{delete he[s]}),u.send({action:"create",payload:{topic:a,identity:Ne,moduleString:o,workerPath:t}})}async function cc(t,e){let s=ls(t),r=he[s];if(!r)return _n(t,e);let n=await yn(t),o=dn(e,s),i=wn(o);r.send({action:"restart",payload:{topic:i,identity:Ne,moduleString:n,workerPath:t}})}function gn(t){let e=ls(t),s=he[e];s&&s.kill()}async function En(){if(!us)return null;if(!process.env.PROCESSCUBE_EXTERNAL_TASK_WORKER_CLIENT_ID||!process.env.PROCESSCUBE_EXTERNAL_TASK_WORKER_CLIENT_SECRET){let r=new Error("Required environment variables PROCESSCUBE_EXTERNAL_TASK_WORKER_CLIENT_ID and PROCESSCUBE_EXTERNAL_TASK_WORKER_CLIENT_SECRET are missing. For help, please refer to our documentation on environment variables at: https://processcube.io/docs/app-sdk/samples/nextjs/external-task-adapter-with-nextjs#authority");throw pe.error("Required environment variables PROCESSCUBE_EXTERNAL_TASK_WORKER_CLIENT_ID and PROCESSCUBE_EXTERNAL_TASK_WORKER_CLIENT_SECRET are missing",{err:r}),r}let t=await rc.discover(process.env.PROCESSCUBE_AUTHORITY_URL);return await new t.Client({client_id:process.env.PROCESSCUBE_EXTERNAL_TASK_WORKER_CLIENT_ID,client_secret:process.env.PROCESSCUBE_EXTERNAL_TASK_WORKER_CLIENT_SECRET}).grant({grant_type:"client_credentials",scope:"engine_etw"})}function mn(t){if(!us||t===null)return oc;let e=t.access_token,s=sc(e);return{token:t.access_token,userId:s.sub}}async function lc(t){let e=5;if(!us||t===null)return;let r=await uc(t)*ac*1e3,n=async()=>{try{let o=await En();Ne=mn(o);for(let i of Object.values(he))i.send({action:"updateIdentity",payload:{identity:Ne}});e=5,setTimeout(n,r)}catch(o){if(e===0){pe.error("Could not refresh identity for external task worker processes. Stopping all external task workers.",{error:o});for(let a of Object.values(he))a.kill();return}pe.error("Could not refresh identity for external task worker processes.",{error:o,retryCount:e}),e--;let i=2*1e3;setTimeout(n,i)}};setTimeout(n,r)}async function yn(t){let e=await tc({entryPoints:[t],write:!1,bundle:!0,platform:"node",target:"node18",format:"cjs",external:["@opentelemetry/api"]});if(e.errors.length>0)throw pe.error(`Could not transpile file at '${t}'`,{errors:e.errors}),new Error(`Could not transpile file at '${t}'`);return e.warnings.length>0&&pe.warn(`Transpiled file at '${t}' with warnings`,{warnings:e.warnings}),e.outputFiles[0].text}async function uc(t){let e=t.expires_in;if(!e&&t.expires_at&&(e=Math.floor(t.expires_at-Date.now()/1e3)),e===void 0)throw new Error("Could not determine the time until the access token for external task workers expires");return e}function wn(t){return t.replace(/^\.\/+|\([^)]+\)|^\/*|\/*$/g,"").replace(/[\/]{2,}/g,"/")}function fc(t){let e,s=[t,cs(process.cwd(),"app"),cs(process.cwd(),"src","app")];for(let r of s)if(r&&fn(r)){e=r;break}if(!e)throw new Error("Could not find external tasks directory");return e}function dl(){return T}import{getToken as Rn}from"next-auth/jwt";import{ResponseCookies as dc}from"next/dist/compiled/@edge-runtime/cookies";import{cookies as ot,headers as An}from"next/headers";async function at(){let t=await Rn({req:{cookies:ot(),headers:An()}});if(t?.expiresAt&&Date.now()>=t.expiresAt*1e3){let s=await fetch(`${process.env.NEXTAUTH_URL}/api/auth/session`,{method:"GET",headers:{"Content-Type":"application/json",cookie:ot().toString()}}),r=new dc(s.headers);if(r.getAll().length){let n=!1;try{for(let o of r.getAll())ot().set(o.name,o.value,{...o})}catch{n=!0}if(t=await Rn({req:{cookies:n?r:ot(),headers:An()}}),t?.error)throw t.error}}if(!t?.accessToken||!t?.sub)throw new Error("AccessToken or Sub could not be determined!");return{token:t?.accessToken,userId:t?.sub}}import{DataModels as Oe}from"@5minds/processcube_engine_client";async function Le(){try{return at()}catch{return}}async function Tn(t){let e=await Le();return(await T.processInstances.query({processInstanceId:t},{identity:e})).processInstances[0]}async function Sn(t,e={sortSettings:{sortBy:Oe.FlowNodeInstances.FlowNodeInstanceSortableColumns.createdAt,sortDir:"ASC"}}){return(await T.flowNodeInstances.query({processInstanceId:t},{...e,identity:e.identity??await Le()})).flowNodeInstances}async function Cn(t){let e=await Le();return(await T.flowNodeInstances.query({triggeredByFlowNodeInstance:t},{identity:e})).flowNodeInstances}async function In(t,e,s){let r=await Le();await T.processInstances.retryProcessInstance(t,{flowNodeInstanceId:e,newStartToken:s,identity:r})}async function xn(t){let e=await Le();await T.processInstances.terminateProcessInstance(t,e)}async function Rl(t){return await T.processInstances.query({...t?.query,state:Oe.ProcessInstances.ProcessInstanceState.running},t?.options)}async function Al(t,e){let{processInstanceId:s}=t;return new Promise(async(r,n)=>{let o=[],i=async a=>{if(s!==void 0&&a.processInstanceId!==s)return;let u=await T.processInstances.query({processInstanceId:a.processInstanceId},{identity:e});for(let f of o)T.notification.removeSubscription(f,e);return u.totalCount===0?n(new Error(`Process with instance ID "${a.processInstanceId}" does not exist.`)):r(u.processInstances[0])};if(o.push(await T.notification.onProcessEnded(i,{identity:e})),o.push(await T.notification.onProcessError(i,{identity:e})),o.push(await T.notification.onProcessTerminated(i,{identity:e})),s){let a=await T.processInstances.query({processInstanceId:s,state:[Oe.ProcessInstances.ProcessInstanceState.finished,Oe.ProcessInstances.ProcessInstanceState.terminated,Oe.ProcessInstances.ProcessInstanceState.error]},{identity:e});if(a.totalCount>0){for(let c of o)T.notification.removeSubscription(c,e);r(a.processInstances[0])}}})}import{DataModels as oe}from"@5minds/processcube_engine_client";import{mapUserTask as bn,mapUserTaskList as _e}from"../common/index.mjs";async function kl(t={},e){let{correlationId:s,processInstanceId:r,flowNodeId:n}=t;return new Promise(async(o,i)=>{let a=await T.userTasks.onUserTaskWaiting(async u=>{let f=s!==void 0&&u.correlationId!==s,d=u.flowNodeInstanceId===void 0,l=r!==void 0&&u.processInstanceId!==r,m=n!==void 0&&u.flowNodeId!==n;if(f||d||l||m)return;let E=await pc(u.flowNodeInstanceId,{identity:e});return T.notification.removeSubscription(a,e),E===null?i(new Error(`UserTask with instance ID "${u.flowNodeInstanceId}" does not exist.`)):o(E)},{identity:e}),c=await hc({correlationId:s,processInstanceId:r,flowNodeId:n,state:oe.FlowNodeInstances.FlowNodeInstanceState.suspended},{identity:e});c.userTasks.length>0&&(T.notification.removeSubscription(a,e),o(c.userTasks[0]))})}async function vl(t,e={},s={},r){await T.userTasks.finishUserTask(t,s,r);let n={state:oe.FlowNodeInstances.FlowNodeInstanceState.suspended,...e},o=await T.userTasks.query(n,{identity:r});return bn(o.userTasks[0])}async function hc(...t){let e=await T.userTasks.query(...t);return _e(e)}async function Pl(t){let e=await T.userTasks.query({state:oe.FlowNodeInstances.FlowNodeInstanceState.suspended},t);return _e(e)}async function Nl(t,e){let s=await T.userTasks.query({processInstanceId:t,state:oe.FlowNodeInstances.FlowNodeInstanceState.suspended},e);return _e(s)}async function Ol(t,e){let s=await T.userTasks.query({flowNodeId:t,state:oe.FlowNodeInstances.FlowNodeInstanceState.suspended},e);return _e(s)}async function pc(t,e){let s=await T.userTasks.query({flowNodeInstanceId:t,state:oe.FlowNodeInstances.FlowNodeInstanceState.suspended},{...e,limit:1});return s.userTasks.length===0?null:bn(s.userTasks[0])}async function Ll(t,e){let s=await T.userTasks.query({correlationId:t,state:oe.FlowNodeInstances.FlowNodeInstanceState.suspended},e);return _e(s)}async function Hl(t,e){let s=await T.userTasks.query({state:oe.FlowNodeInstances.FlowNodeInstanceState.suspended},{identity:t,...e}),r=s.userTasks.filter(n=>n.actualOwnerId===t.userId);return s.userTasks=r,_e(s)}async function Dl(t,e,s){await T.userTasks.reserveUserTaskInstance(t,e,s||t.userId)}async function Fl(t,e){await T.userTasks.cancelUserTaskInstanceReservation(t,e)}async function $l(t,e){let s=await T.userTasks.query({state:oe.FlowNodeInstances.FlowNodeInstanceState.suspended},{identity:t,...e}),r=s.userTasks.filter(n=>n.assignedUserIds?.includes(t.userId));return s.userTasks=r,_e(s)}import{PHASE_DEVELOPMENT_SERVER as _c,PHASE_PRODUCTION_BUILD as gc,PHASE_PRODUCTION_SERVER as Ec}from"next/dist/shared/lib/constants";var kn=!1,fs=!1;function Wl(t={}){let{applicationSdk:e,...s}=t;return async(r,n)=>{fs=fs||r===gc;let o=r===_c||r===Ec;return e?.useExternalTasks&&o&&!kn&&!fs&&(kn=!0,await pn(e?.customExternalTasksDirPath)),{...s,experimental:{...s.experimental,serverComponentsExternalPackages:[...s.experimental?.serverComponentsExternalPackages||[],"esbuild"]}}}}import{revalidatePath as mc}from"next/cache";import{redirect as yc}from"next/navigation";function jl(t){mc(t),yc(t)}async function zl(...t){return await T.processModels.startProcessInstance(...t)}async function vn(...t){await T.manualTasks.finishManualTask(...t)}async function Pn(...t){await T.userTasks.finishUserTask(...t)}async function Nn(...t){await T.untypedTasks.finishTask(...t)}import{DataModels as wc}from"@5minds/processcube_engine_client";async function Rc(){try{return at()}catch{return}}var au=async(t,e)=>{let s=await Rc();e==="bpmn:UserTask"?await Pn(t,{},s):e==="bpmn:ManualTask"?await vn(t,s):e==="bpmn:Task"?await Nn(t,s):console.error(`[@5minds/processcube_app_sdk:handlePlay] Unsupported flow node type: ${e}`)},cu=async t=>{await xn(t)},lu=async(t,e,s)=>{await In(t,e,s)},uu=async t=>Tn(t),fu=async t=>Sn(t,{sortSettings:{sortBy:wc.FlowNodeInstances.FlowNodeInstanceSortableColumns.createdAt,sortDir:"DESC"}}),du=async t=>Cn(t);export{Fl as cancelReservedUserTask,vn as finishManualTask,au as finishTask,Nn as finishUntypedTask,Pn as finishUserTask,vl as finishUserTaskAndGetNext,Rl as getActiveProcessInstances,$l as getAssignedUserTasksByIdentity,dl as getEngineClient,fu as getFlowNodeInstances,Sn as getFlowNodeInstancesByProcessInstanceId,Cn as getFlowNodeInstancesTriggeredByFlowNodeInstanceIds,at as getIdentity,uu as getProcessInstance,Tn as getProcessInstanceById,Hl as getReservedUserTasksByIdentity,du as getTriggeredFlowNodeInstances,hc as getUserTasks,pc as getWaitingUserTaskByFlowNodeInstanceId,Pl as getWaitingUserTasks,Ll as getWaitingUserTasksByCorrelationId,Ol as getWaitingUserTasksByFlowNodeId,Nl as getWaitingUserTasksByProcessInstanceId,jl as navigateToUrl,Dl as reserveUserTask,lu as retryProcess,In as retryProcessInstance,zl as startProcess,cu as terminateProcess,xn as terminateProcessInstance,Al as waitForProcessEnd,kl as waitForUserTask,Wl as withApplicationSdk};
3
3
  /*! Bundled license information:
4
4
 
5
5
  normalize-path/index.js:
@@ -2,6 +2,49 @@ import { DataModels } from '@5minds/processcube_engine_client';
2
2
  import type { Identity } from '@5minds/processcube_engine_sdk';
3
3
  import { Client } from './internal/EngineClient';
4
4
  /**
5
+ * This function will return the ProcessInstance with the given ID.
6
+ *
7
+ * @param processInstanceId The ID of the ProcessInstance
8
+ * @returns {Promise<DataModels.ProcessInstances.ProcessInstance>} The {@link DataModels.ProcessInstances.ProcessInstance}
9
+ */
10
+ export declare function getProcessInstanceById(processInstanceId: string): Promise<DataModels.ProcessInstances.ProcessInstance>;
11
+ /**
12
+ * This function will return the FlowNodeInstances of the ProcessInstance with the given ID.
13
+ *
14
+ * @param processInstanceId The ID of the {@link DataModels.ProcessInstances.ProcessInstance}
15
+ * @param options The options for the {@link Client.flowNodeInstances.query}
16
+ * @returns {Promise<DataModels.FlowNodeInstances.FlowNodeInstance[]>} The list of {@link DataModels.FlowNodeInstances.FlowNodeInstance}
17
+ */
18
+ export declare function getFlowNodeInstancesByProcessInstanceId(processInstanceId: string, options?: Parameters<typeof Client.flowNodeInstances.query>[1]): Promise<DataModels.FlowNodeInstances.FlowNodeInstance[]>;
19
+ /**
20
+ * This function will return the FlowNodeInstances that are triggered by the FlowNodeInstances with the given IDs.
21
+ *
22
+ * @param flowNodeInstanceIds The IDs of the FlowNodeInstances
23
+ * @returns {Promise<DataModels.FlowNodeInstances.FlowNodeInstance[]>} The list of {@link DataModels.FlowNodeInstances.FlowNodeInstance}
24
+ */
25
+ export declare function getFlowNodeInstancesTriggeredByFlowNodeInstanceIds(flowNodeInstanceIds: string[]): Promise<DataModels.FlowNodeInstances.FlowNodeInstance[]>;
26
+ /**
27
+ * This function will retry the ProcessInstance with the given ID.
28
+ * If the `flowNodeInstanceId` is given, the ProcessInstance will be retried from this FlowNodeInstance.
29
+ * If the `newStartToken` is given, the ProcessInstance will be retried with this StartToken.
30
+ *
31
+ * @param processInstanceId The ID of the ProcessInstance
32
+ * @param flowNodeInstanceId The ID of the FlowNodeInstance
33
+ * @param newStartToken The new StartToken
34
+ */
35
+ export declare function retryProcessInstance(processInstanceId: string, flowNodeInstanceId?: string, newStartToken?: any): Promise<void>;
36
+ /**
37
+ * This function will terminate the ProcessInstance with the given ID.
38
+ *
39
+ * @param processInstanceId The ID of the ProcessInstance
40
+ * @param identity The Identity to use for the request
41
+ */
42
+ export declare function terminateProcessInstance(processInstanceId: string): Promise<void>;
43
+ /**
44
+ * This function will return the running ProcessInstances.
45
+ * If `query` is given, the ProcessInstances will be filtered by this query.
46
+ * If `options` are given, the ProcessInstances will be queried with these options.
47
+ *
5
48
  * @param query.query The query of {@link Client.processInstances.query}
6
49
  * @param query.options The options of {@link Client.processInstances.query}
7
50
  * @returns The list of active process instances as promise {@link DataModels.ProcessInstances.ProcessInstanceList}
@@ -10,18 +53,14 @@ export declare function getActiveProcessInstances(query?: {
10
53
  query?: Omit<DataModels.ProcessInstances.ProcessInstanceQuery, 'state'>;
11
54
  options?: Parameters<typeof Client.processInstances.query>[1];
12
55
  }): Promise<DataModels.ProcessInstances.ProcessInstanceList>;
13
- export declare function getProcessInstanceById(processInstanceId: string): Promise<DataModels.ProcessInstances.ProcessInstance>;
14
- export declare function getFlowNodeInstancesByProcessInstanceId(processInstanceId: string): Promise<DataModels.FlowNodeInstances.FlowNodeInstance[]>;
15
- export declare function getFlowNodeInstancesTriggeredByFlowNodeInstanceIds(flowNodeInstanceIds: string[]): Promise<DataModels.FlowNodeInstances.FlowNodeInstance[]>;
16
- export declare function retryProcessInstance(processInstanceId: string, flowNodeInstanceId?: string, newStartToken?: any): Promise<void>;
17
56
  /**
18
57
  * This function will wait until a ProcessInstance is finished, terminated or errored.
19
- * If the processInstance is already finished, it will instantly be returned.
58
+ * If the ProcessInstance is already finished, it will instantly be returned.
20
59
  *
21
60
  * @param filterBy Additional filter options
22
61
  * @param filterBy.processInstanceId The ID of the ProcessInstance to wait for
23
- * @param identity The Identity of the User
24
- * @returns {Promise<DataModels.ProcessInstances.ProcessInstance>} The ProcessInstance.
62
+ * @param identity The Identity to use for the request
63
+ * @returns {Promise<DataModels.ProcessInstances.ProcessInstance>} The {@link DataModels.ProcessInstances.ProcessInstance}
25
64
  */
26
65
  export declare function waitForProcessEnd(filterBy: {
27
66
  processInstanceId?: string;
@@ -0,0 +1,2 @@
1
+ import type { EngineClient } from '@5minds/processcube_engine_client';
2
+ export declare function finishManualTask(...args: Parameters<typeof EngineClient.prototype.manualTasks.finishManualTask>): ReturnType<typeof EngineClient.prototype.manualTasks.finishManualTask>;
@@ -0,0 +1,2 @@
1
+ import type { EngineClient } from '@5minds/processcube_engine_client';
2
+ export declare function finishUntypedTask(...args: Parameters<typeof EngineClient.prototype.untypedTasks.finishTask>): ReturnType<typeof EngineClient.prototype.untypedTasks.finishTask>;
@@ -1,3 +1,5 @@
1
1
  export * from './NavigationActions';
2
2
  export * from './ProcessInstanceActions';
3
+ export * from './ManualTaskActions';
3
4
  export * from './UserTaskActions';
5
+ export * from './UntypedTaskActions';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@5minds/processcube_app_sdk",
3
- "version": "6.2.0-develop-631baa-m28nf5fo",
3
+ "version": "6.2.0-develop-32452d-m2ee0twu",
4
4
  "description": "The SDK for ProcessCube Apps",
5
5
  "type": "module",
6
6
  "main": "build/common/index.cjs",
@@ -96,20 +96,23 @@
96
96
  "react": ">=18.0.0"
97
97
  },
98
98
  "dependencies": {
99
- "@5minds/processcube_engine_client": "5.1.0",
100
- "@5minds/processcube_engine_sdk": "6.0.0",
101
- "@headlessui/react": "^2.0.0",
102
- "bpmn-js": "^17.6.0",
99
+ "@5minds/processcube_engine_client": "2024-2",
100
+ "@5minds/processcube_engine_sdk": "2024-2",
101
+ "@headlessui/react": "^2.1.1",
102
+ "@heroicons/react": "^2.1.4",
103
103
  "@monaco-editor/react": "^4.6.0",
104
104
  "@nextui-org/react": "^2.2.9",
105
+ "bpmn-js": "^17.6.0",
105
106
  "chokidar": "^3.5.3",
106
107
  "client-only": "^0.0.1",
107
108
  "esbuild": "^0.24.0",
108
109
  "isomorphic-dompurify": "^2.0.0",
109
110
  "jwt-decode": "^4.0.0",
111
+ "lodash": "^4.17.21",
110
112
  "marked": "^14.0.0",
111
113
  "only-server": "^0.0.1",
112
114
  "openid-client": "^5.5.0",
115
+ "react-dom": "^18.3.1",
113
116
  "react-is": "^18.2.0",
114
117
  "react-markdown": "^9.0.1",
115
118
  "rehype-autolink-headings": "^7.1.0",