@seed-ship/mcp-ui-solid 2.1.0 → 2.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/DraggableGridItem.cjs +2 -2
- package/dist/components/DraggableGridItem.cjs.map +1 -1
- package/dist/components/DraggableGridItem.d.ts +1 -1
- package/dist/components/DraggableGridItem.d.ts.map +1 -1
- package/dist/components/DraggableGridItem.js +2 -2
- package/dist/components/DraggableGridItem.js.map +1 -1
- package/dist/components/EditableUIResourceRenderer.cjs +2 -6
- package/dist/components/EditableUIResourceRenderer.cjs.map +1 -1
- package/dist/components/EditableUIResourceRenderer.d.ts.map +1 -1
- package/dist/components/EditableUIResourceRenderer.js +2 -6
- package/dist/components/EditableUIResourceRenderer.js.map +1 -1
- package/dist/components/ResizeHandle.cjs +6 -2
- package/dist/components/ResizeHandle.cjs.map +1 -1
- package/dist/components/ResizeHandle.d.ts +1 -1
- package/dist/components/ResizeHandle.d.ts.map +1 -1
- package/dist/components/ResizeHandle.js +6 -2
- package/dist/components/ResizeHandle.js.map +1 -1
- package/dist/components/UIResourceRenderer.cjs +1 -1
- package/dist/components/UIResourceRenderer.js +1 -1
- package/dist/hooks/useAutocomplete.cjs +8 -0
- package/dist/hooks/useAutocomplete.cjs.map +1 -1
- package/dist/hooks/useAutocomplete.d.ts.map +1 -1
- package/dist/hooks/useAutocomplete.js +8 -0
- package/dist/hooks/useAutocomplete.js.map +1 -1
- package/dist/node_modules/.pnpm/{@tanstack_solid-virtual@3.13.18_solid-js@1.9.10 → @tanstack_solid-virtual@3.13.18_solid-js@1.9.11}/node_modules/@tanstack/solid-virtual/dist/esm/index.cjs.map +1 -1
- package/dist/node_modules/.pnpm/{@tanstack_solid-virtual@3.13.18_solid-js@1.9.10 → @tanstack_solid-virtual@3.13.18_solid-js@1.9.11}/node_modules/@tanstack/solid-virtual/dist/esm/index.js.map +1 -1
- package/esbuild-why-Full bundle (with deps).html +51 -0
- package/esbuild-why-Hooks only.html +51 -0
- package/esbuild-why-Streaming renderer.html +51 -0
- package/package.json +2 -2
- package/src/components/DraggableGridItem.tsx +3 -3
- package/src/components/EditableUIResourceRenderer.tsx +2 -7
- package/src/components/ResizeHandle.tsx +8 -3
- package/src/hooks/useAutocomplete.ts +16 -0
- package/tsconfig.tsbuildinfo +1 -1
- /package/dist/node_modules/.pnpm/{@tanstack_solid-virtual@3.13.18_solid-js@1.9.10 → @tanstack_solid-virtual@3.13.18_solid-js@1.9.11}/node_modules/@tanstack/solid-virtual/dist/esm/index.cjs +0 -0
- /package/dist/node_modules/.pnpm/{@tanstack_solid-virtual@3.13.18_solid-js@1.9.10 → @tanstack_solid-virtual@3.13.18_solid-js@1.9.11}/node_modules/@tanstack/solid-virtual/dist/esm/index.js +0 -0
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
|
|
2
|
+
<!DOCTYPE html>
|
|
3
|
+
<html lang="en">
|
|
4
|
+
<head>
|
|
5
|
+
<meta charset="UTF-8" />
|
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
7
|
+
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
|
|
8
|
+
<title>EsBuild Visualizer</title>
|
|
9
|
+
<style>
|
|
10
|
+
:root{--font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--background-color: #2b2d42;--text-color: #edf2f4}html{box-sizing:border-box}*,*:before,*:after{box-sizing:inherit}html{background-color:var(--background-color);color:var(--text-color);font-family:var(--font-family)}body{padding:0;margin:0}html,body{height:100%;width:100%;overflow:hidden}body{display:flex;flex-direction:column}svg{vertical-align:middle;width:100%;height:100%;max-height:100vh}main{flex-grow:1;height:100vh;padding:20px}.tooltip{position:absolute;z-index:1070;border:2px solid;border-radius:5px;padding:5px;font-size:.875rem;background-color:var(--background-color);color:var(--text-color)}.tooltip-hidden{visibility:hidden;opacity:0}.sidebar{position:fixed;top:0;left:0;right:0;display:flex;flex-direction:row;font-size:.7rem;align-items:center;margin:0 50px;height:20px}.size-selectors{display:flex;flex-direction:row;align-items:center}.size-selector{display:flex;flex-direction:row;align-items:center;justify-content:center;margin-right:1rem}.size-selector input{margin:0 .3rem 0 0}.filters{flex:1;display:flex;flex-direction:row;align-items:center}.module-filters{display:flex;flex-grow:1}.module-filter{display:flex;flex-direction:row;align-items:center;justify-content:center;flex:1}.module-filter input{flex:1;height:1rem;padding:.01rem;font-size:.7rem;margin-left:.3rem}.module-filter+.module-filter{margin-left:.5rem}.node{cursor:pointer}
|
|
11
|
+
|
|
12
|
+
</style>
|
|
13
|
+
</head>
|
|
14
|
+
<body>
|
|
15
|
+
<main></main>
|
|
16
|
+
<script>
|
|
17
|
+
/*<!--*/
|
|
18
|
+
"use strict";var drawChart=(()=>{var ai=Object.create;var Oe=Object.defineProperty,ui=Object.defineProperties,si=Object.getOwnPropertyDescriptor,li=Object.getOwnPropertyDescriptors,fi=Object.getOwnPropertyNames,Ir=Object.getOwnPropertySymbols,ci=Object.getPrototypeOf,Or=Object.prototype.hasOwnProperty,pi=Object.prototype.propertyIsEnumerable;var Pr=(e,t,r)=>t in e?Oe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,X=(e,t)=>{for(var r in t||(t={}))Or.call(t,r)&&Pr(e,r,t[r]);if(Ir)for(var r of Ir(t))pi.call(t,r)&&Pr(e,r,t[r]);return e},re=(e,t)=>ui(e,li(t));var ve=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),di=(e,t)=>{for(var r in t)Oe(e,r,{get:t[r],enumerable:!0})},Dr=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of fi(t))!Or.call(e,o)&&o!==r&&Oe(e,o,{get:()=>t[o],enumerable:!(n=si(t,o))||n.enumerable});return e};var Fr=(e,t,r)=>(r=e!=null?ai(ci(e)):{},Dr(t||!e||!e.__esModule?Oe(r,"default",{value:e,enumerable:!0}):r,e)),mi=e=>Dr(Oe({},"__esModule",{value:!0}),e);var Ue=ve((ms,Dn)=>{"use strict";var oe="\\\\/",$n=`[^${oe}]`,fe="\\.",Hi="\\+",$i="\\?",mt="\\/",Ii="(?=.)",In="[^/]",Jt=`(?:${mt}|$)`,Pn=`(?:^|${mt})`,er=`${fe}{1,2}${Jt}`,Pi=`(?!${fe})`,Oi=`(?!${Pn}${er})`,Di=`(?!${fe}{0,1}${Jt})`,Fi=`(?!${er})`,Bi=`[^.${mt}]`,zi=`${In}*?`,qi="/",On={DOT_LITERAL:fe,PLUS_LITERAL:Hi,QMARK_LITERAL:$i,SLASH_LITERAL:mt,ONE_CHAR:Ii,QMARK:In,END_ANCHOR:Jt,DOTS_SLASH:er,NO_DOT:Pi,NO_DOTS:Oi,NO_DOT_SLASH:Di,NO_DOTS_SLASH:Fi,QMARK_NO_DOT:Bi,STAR:zi,START_ANCHOR:Pn,SEP:qi},Ui=re(X({},On),{SLASH_LITERAL:`[${oe}]`,QMARK:$n,STAR:`${$n}*?`,DOTS_SLASH:`${fe}{1,2}(?:[${oe}]|$)`,NO_DOT:`(?!${fe})`,NO_DOTS:`(?!(?:^|[${oe}])${fe}{1,2}(?:[${oe}]|$))`,NO_DOT_SLASH:`(?!${fe}{0,1}(?:[${oe}]|$))`,NO_DOTS_SLASH:`(?!${fe}{1,2}(?:[${oe}]|$))`,QMARK_NO_DOT:`[^.${oe}]`,START_ANCHOR:`(?:^|[${oe}])`,END_ANCHOR:`(?:[${oe}]|$)`,SEP:"\\"}),Gi={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"};Dn.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:Gi,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,extglobChars(e){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${e.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(e){return e===!0?Ui:On}}});var Ge=ve(Z=>{"use strict";var{REGEX_BACKSLASH:Ki,REGEX_REMOVE_BACKSLASH:ji,REGEX_SPECIAL_CHARS:Wi,REGEX_SPECIAL_CHARS_GLOBAL:Vi}=Ue();Z.isObject=e=>e!==null&&typeof e=="object"&&!Array.isArray(e);Z.hasRegexChars=e=>Wi.test(e);Z.isRegexChar=e=>e.length===1&&Z.hasRegexChars(e);Z.escapeRegex=e=>e.replace(Vi,"\\$1");Z.toPosixSlashes=e=>e.replace(Ki,"/");Z.isWindows=()=>{if(typeof navigator!="undefined"&&navigator.platform){let e=navigator.platform.toLowerCase();return e==="win32"||e==="windows"}return typeof process!="undefined"&&process.platform?process.platform==="win32":!1};Z.removeBackslashes=e=>e.replace(ji,t=>t==="\\"?"":t);Z.escapeLast=(e,t,r)=>{let n=e.lastIndexOf(t,r);return n===-1?e:e[n-1]==="\\"?Z.escapeLast(e,t,n-1):`${e.slice(0,n)}\\${e.slice(n)}`};Z.removePrefix=(e,t={})=>{let r=e;return r.startsWith("./")&&(r=r.slice(2),t.prefix="./"),r};Z.wrapOutput=(e,t={},r={})=>{let n=r.contains?"":"^",o=r.contains?"":"$",a=`${n}(?:${e})${o}`;return t.negated===!0&&(a=`(?:^(?!${a}).*$)`),a};Z.basename=(e,{windows:t}={})=>{let r=e.split(t?/[\\/]/:"/"),n=r[r.length-1];return n===""?r[r.length-2]:n}});var jn=ve((gs,Kn)=>{"use strict";var Fn=Ge(),{CHAR_ASTERISK:tr,CHAR_AT:Xi,CHAR_BACKWARD_SLASH:Ke,CHAR_COMMA:Qi,CHAR_DOT:rr,CHAR_EXCLAMATION_MARK:nr,CHAR_FORWARD_SLASH:Gn,CHAR_LEFT_CURLY_BRACE:or,CHAR_LEFT_PARENTHESES:ir,CHAR_LEFT_SQUARE_BRACKET:Zi,CHAR_PLUS:Yi,CHAR_QUESTION_MARK:Bn,CHAR_RIGHT_CURLY_BRACE:Ji,CHAR_RIGHT_PARENTHESES:zn,CHAR_RIGHT_SQUARE_BRACKET:ea}=Ue(),qn=e=>e===Gn||e===Ke,Un=e=>{e.isPrefix!==!0&&(e.depth=e.isGlobstar?1/0:1)},ta=(e,t)=>{let r=t||{},n=e.length-1,o=r.parts===!0||r.scanToEnd===!0,a=[],i=[],u=[],f=e,s=-1,p=0,l=0,c=!1,d=!1,g=!1,y=!1,b=!1,M=!1,x=!1,N=!1,D=!1,E=!1,$=0,j,C,w={value:"",depth:0,isGlob:!1},_=()=>s>=n,R=()=>f.charCodeAt(s+1),L=()=>(j=C,f.charCodeAt(++s));for(;s<n;){C=L();let I;if(C===Ke){x=w.backslashes=!0,C=L(),C===or&&(M=!0);continue}if(M===!0||C===or){for($++;_()!==!0&&(C=L());){if(C===Ke){x=w.backslashes=!0,L();continue}if(C===or){$++;continue}if(M!==!0&&C===rr&&(C=L())===rr){if(c=w.isBrace=!0,g=w.isGlob=!0,E=!0,o===!0)continue;break}if(M!==!0&&C===Qi){if(c=w.isBrace=!0,g=w.isGlob=!0,E=!0,o===!0)continue;break}if(C===Ji&&($--,$===0)){M=!1,c=w.isBrace=!0,E=!0;break}}if(o===!0)continue;break}if(C===Gn){if(a.push(s),i.push(w),w={value:"",depth:0,isGlob:!1},E===!0)continue;if(j===rr&&s===p+1){p+=2;continue}l=s+1;continue}if(r.noext!==!0&&(C===Yi||C===Xi||C===tr||C===Bn||C===nr)===!0&&R()===ir){if(g=w.isGlob=!0,y=w.isExtglob=!0,E=!0,C===nr&&s===p&&(D=!0),o===!0){for(;_()!==!0&&(C=L());){if(C===Ke){x=w.backslashes=!0,C=L();continue}if(C===zn){g=w.isGlob=!0,E=!0;break}}continue}break}if(C===tr){if(j===tr&&(b=w.isGlobstar=!0),g=w.isGlob=!0,E=!0,o===!0)continue;break}if(C===Bn){if(g=w.isGlob=!0,E=!0,o===!0)continue;break}if(C===Zi){for(;_()!==!0&&(I=L());){if(I===Ke){x=w.backslashes=!0,L();continue}if(I===ea){d=w.isBracket=!0,g=w.isGlob=!0,E=!0;break}}if(o===!0)continue;break}if(r.nonegate!==!0&&C===nr&&s===p){N=w.negated=!0,p++;continue}if(r.noparen!==!0&&C===ir){if(g=w.isGlob=!0,o===!0){for(;_()!==!0&&(C=L());){if(C===ir){x=w.backslashes=!0,C=L();continue}if(C===zn){E=!0;break}}continue}break}if(g===!0){if(E=!0,o===!0)continue;break}}r.noext===!0&&(y=!1,g=!1);let H=f,m="",h="";p>0&&(m=f.slice(0,p),f=f.slice(p),l-=p),H&&g===!0&&l>0?(H=f.slice(0,l),h=f.slice(l)):g===!0?(H="",h=f):H=f,H&&H!==""&&H!=="/"&&H!==f&&qn(H.charCodeAt(H.length-1))&&(H=H.slice(0,-1)),r.unescape===!0&&(h&&(h=Fn.removeBackslashes(h)),H&&x===!0&&(H=Fn.removeBackslashes(H)));let W={prefix:m,input:e,start:p,base:H,glob:h,isBrace:c,isBracket:d,isGlob:g,isExtglob:y,isGlobstar:b,negated:N,negatedExtglob:D};if(r.tokens===!0&&(W.maxDepth=0,qn(C)||i.push(w),W.tokens=i),r.parts===!0||r.tokens===!0){let I;for(let O=0;O<a.length;O++){let G=I?I+1:p,te=a[O],de=e.slice(G,te);r.tokens&&(O===0&&p!==0?(i[O].isPrefix=!0,i[O].value=m):i[O].value=de,Un(i[O]),W.maxDepth+=i[O].depth),(O!==0||de!=="")&&u.push(de),I=te}if(I&&I+1<e.length){let O=e.slice(I+1);u.push(O),r.tokens&&(i[i.length-1].value=O,Un(i[i.length-1]),W.maxDepth+=i[i.length-1].depth)}W.slashes=a,W.parts=u}return W};Kn.exports=ta});var Xn=ve((xs,Vn)=>{"use strict";var ht=Ue(),ie=Ge(),{MAX_LENGTH:_t,POSIX_REGEX_SOURCE:ra,REGEX_NON_SPECIAL_CHARS:na,REGEX_SPECIAL_CHARS_BACKREF:oa,REPLACEMENTS:Wn}=ht,ia=(e,t)=>{if(typeof t.expandRange=="function")return t.expandRange(...e,t);e.sort();let r=`[${e.join("-")}]`;try{new RegExp(r)}catch(n){return e.map(o=>ie.escapeRegex(o)).join("..")}return r},He=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,ar=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");e=Wn[e]||e;let r=X({},t),n=typeof r.maxLength=="number"?Math.min(_t,r.maxLength):_t,o=e.length;if(o>n)throw new SyntaxError(`Input length: ${o}, exceeds maximum allowed length: ${n}`);let a={type:"bos",value:"",output:r.prepend||""},i=[a],u=r.capture?"":"?:",f=ht.globChars(r.windows),s=ht.extglobChars(f),{DOT_LITERAL:p,PLUS_LITERAL:l,SLASH_LITERAL:c,ONE_CHAR:d,DOTS_SLASH:g,NO_DOT:y,NO_DOT_SLASH:b,NO_DOTS_SLASH:M,QMARK:x,QMARK_NO_DOT:N,STAR:D,START_ANCHOR:E}=f,$=S=>`(${u}(?:(?!${E}${S.dot?g:p}).)*?)`,j=r.dot?"":y,C=r.dot?x:N,w=r.bash===!0?$(r):D;r.capture&&(w=`(${w})`),typeof r.noext=="boolean"&&(r.noextglob=r.noext);let _={input:e,index:-1,start:0,dot:r.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:i};e=ie.removePrefix(e,_),o=e.length;let R=[],L=[],H=[],m=a,h,W=()=>_.index===o-1,I=_.peek=(S=1)=>e[_.index+S],O=_.advance=()=>e[++_.index]||"",G=()=>e.slice(_.index+1),te=(S="",F=0)=>{_.consumed+=S,_.index+=F},de=S=>{_.output+=S.output!=null?S.output:S.value,te(S.value)},oi=()=>{let S=1;for(;I()==="!"&&(I(2)!=="("||I(3)==="?");)O(),_.start++,S++;return S%2===0?!1:(_.negated=!0,_.start++,!0)},rt=S=>{_[S]++,H.push(S)},be=S=>{_[S]--,H.pop()},k=S=>{if(m.type==="globstar"){let F=_.braces>0&&(S.type==="comma"||S.type==="brace"),v=S.extglob===!0||R.length&&(S.type==="pipe"||S.type==="paren");S.type!=="slash"&&S.type!=="paren"&&!F&&!v&&(_.output=_.output.slice(0,-m.output.length),m.type="star",m.value="*",m.output=w,_.output+=m.output)}if(R.length&&S.type!=="paren"&&(R[R.length-1].inner+=S.value),(S.value||S.output)&&de(S),m&&m.type==="text"&&S.type==="text"){m.output=(m.output||m.value)+S.value,m.value+=S.value;return}S.prev=m,i.push(S),m=S},nt=(S,F)=>{let v=re(X({},s[F]),{conditions:1,inner:""});v.prev=m,v.parens=_.parens,v.output=_.output;let T=(r.capture?"(":"")+v.open;rt("parens"),k({type:S,value:F,output:_.output?"":d}),k({type:"paren",extglob:!0,value:O(),output:T}),R.push(v)},ii=S=>{let F=S.close+(r.capture?")":""),v;if(S.type==="negate"){let T=w;if(S.inner&&S.inner.length>1&&S.inner.includes("/")&&(T=$(r)),(T!==w||W()||/^\)+$/.test(G()))&&(F=S.close=`)$))${T}`),S.inner.includes("*")&&(v=G())&&/^\.[^\\/.]+$/.test(v)){let z=ar(v,re(X({},t),{fastpaths:!1})).output;F=S.close=`)${z})${T})`}S.prev.type==="bos"&&(_.negatedExtglob=!0)}k({type:"paren",extglob:!0,value:h,output:F}),be("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(e)){let S=!1,F=e.replace(oa,(v,T,z,V,K,$t)=>V==="\\"?(S=!0,v):V==="?"?T?T+V+(K?x.repeat(K.length):""):$t===0?C+(K?x.repeat(K.length):""):x.repeat(z.length):V==="."?p.repeat(z.length):V==="*"?T?T+V+(K?w:""):w:T?v:`\\${v}`);return S===!0&&(r.unescape===!0?F=F.replace(/\\/g,""):F=F.replace(/\\+/g,v=>v.length%2===0?"\\\\":v?"\\":"")),F===e&&r.contains===!0?(_.output=e,_):(_.output=ie.wrapOutput(F,_,t),_)}for(;!W();){if(h=O(),h==="\0")continue;if(h==="\\"){let v=I();if(v==="/"&&r.bash!==!0||v==="."||v===";")continue;if(!v){h+="\\",k({type:"text",value:h});continue}let T=/^\\+/.exec(G()),z=0;if(T&&T[0].length>2&&(z=T[0].length,_.index+=z,z%2!==0&&(h+="\\")),r.unescape===!0?h=O():h+=O(),_.brackets===0){k({type:"text",value:h});continue}}if(_.brackets>0&&(h!=="]"||m.value==="["||m.value==="[^")){if(r.posix!==!1&&h===":"){let v=m.value.slice(1);if(v.includes("[")&&(m.posix=!0,v.includes(":"))){let T=m.value.lastIndexOf("["),z=m.value.slice(0,T),V=m.value.slice(T+2),K=ra[V];if(K){m.value=z+K,_.backtrack=!0,O(),!a.output&&i.indexOf(m)===1&&(a.output=d);continue}}}(h==="["&&I()!==":"||h==="-"&&I()==="]")&&(h=`\\${h}`),h==="]"&&(m.value==="["||m.value==="[^")&&(h=`\\${h}`),r.posix===!0&&h==="!"&&m.value==="["&&(h="^"),m.value+=h,de({value:h});continue}if(_.quotes===1&&h!=='"'){h=ie.escapeRegex(h),m.value+=h,de({value:h});continue}if(h==='"'){_.quotes=_.quotes===1?0:1,r.keepQuotes===!0&&k({type:"text",value:h});continue}if(h==="("){rt("parens"),k({type:"paren",value:h});continue}if(h===")"){if(_.parens===0&&r.strictBrackets===!0)throw new SyntaxError(He("opening","("));let v=R[R.length-1];if(v&&_.parens===v.parens+1){ii(R.pop());continue}k({type:"paren",value:h,output:_.parens?")":"\\)"}),be("parens");continue}if(h==="["){if(r.nobracket===!0||!G().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(He("closing","]"));h=`\\${h}`}else rt("brackets");k({type:"bracket",value:h});continue}if(h==="]"){if(r.nobracket===!0||m&&m.type==="bracket"&&m.value.length===1){k({type:"text",value:h,output:`\\${h}`});continue}if(_.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(He("opening","["));k({type:"text",value:h,output:`\\${h}`});continue}be("brackets");let v=m.value.slice(1);if(m.posix!==!0&&v[0]==="^"&&!v.includes("/")&&(h=`/${h}`),m.value+=h,de({value:h}),r.literalBrackets===!1||ie.hasRegexChars(v))continue;let T=ie.escapeRegex(m.value);if(_.output=_.output.slice(0,-m.value.length),r.literalBrackets===!0){_.output+=T,m.value=T;continue}m.value=`(${u}${T}|${m.value})`,_.output+=m.value;continue}if(h==="{"&&r.nobrace!==!0){rt("braces");let v={type:"brace",value:h,output:"(",outputIndex:_.output.length,tokensIndex:_.tokens.length};L.push(v),k(v);continue}if(h==="}"){let v=L[L.length-1];if(r.nobrace===!0||!v){k({type:"text",value:h,output:h});continue}let T=")";if(v.dots===!0){let z=i.slice(),V=[];for(let K=z.length-1;K>=0&&(i.pop(),z[K].type!=="brace");K--)z[K].type!=="dots"&&V.unshift(z[K].value);T=ia(V,r),_.backtrack=!0}if(v.comma!==!0&&v.dots!==!0){let z=_.output.slice(0,v.outputIndex),V=_.tokens.slice(v.tokensIndex);v.value=v.output="\\{",h=T="\\}",_.output=z;for(let K of V)_.output+=K.output||K.value}k({type:"brace",value:h,output:T}),be("braces"),L.pop();continue}if(h==="|"){R.length>0&&R[R.length-1].conditions++,k({type:"text",value:h});continue}if(h===","){let v=h,T=L[L.length-1];T&&H[H.length-1]==="braces"&&(T.comma=!0,v="|"),k({type:"comma",value:h,output:v});continue}if(h==="/"){if(m.type==="dot"&&_.index===_.start+1){_.start=_.index+1,_.consumed="",_.output="",i.pop(),m=a;continue}k({type:"slash",value:h,output:c});continue}if(h==="."){if(_.braces>0&&m.type==="dot"){m.value==="."&&(m.output=p);let v=L[L.length-1];m.type="dots",m.output+=h,m.value+=h,v.dots=!0;continue}if(_.braces+_.parens===0&&m.type!=="bos"&&m.type!=="slash"){k({type:"text",value:h,output:p});continue}k({type:"dot",value:h,output:p});continue}if(h==="?"){if(!(m&&m.value==="(")&&r.noextglob!==!0&&I()==="("&&I(2)!=="?"){nt("qmark",h);continue}if(m&&m.type==="paren"){let T=I(),z=h;(m.value==="("&&!/[!=<:]/.test(T)||T==="<"&&!/<([!=]|\w+>)/.test(G()))&&(z=`\\${h}`),k({type:"text",value:h,output:z});continue}if(r.dot!==!0&&(m.type==="slash"||m.type==="bos")){k({type:"qmark",value:h,output:N});continue}k({type:"qmark",value:h,output:x});continue}if(h==="!"){if(r.noextglob!==!0&&I()==="("&&(I(2)!=="?"||!/[!=<:]/.test(I(3)))){nt("negate",h);continue}if(r.nonegate!==!0&&_.index===0){oi();continue}}if(h==="+"){if(r.noextglob!==!0&&I()==="("&&I(2)!=="?"){nt("plus",h);continue}if(m&&m.value==="("||r.regex===!1){k({type:"plus",value:h,output:l});continue}if(m&&(m.type==="bracket"||m.type==="paren"||m.type==="brace")||_.parens>0){k({type:"plus",value:h});continue}k({type:"plus",value:l});continue}if(h==="@"){if(r.noextglob!==!0&&I()==="("&&I(2)!=="?"){k({type:"at",extglob:!0,value:h,output:""});continue}k({type:"text",value:h});continue}if(h!=="*"){(h==="$"||h==="^")&&(h=`\\${h}`);let v=na.exec(G());v&&(h+=v[0],_.index+=v[0].length),k({type:"text",value:h});continue}if(m&&(m.type==="globstar"||m.star===!0)){m.type="star",m.star=!0,m.value+=h,m.output=w,_.backtrack=!0,_.globstar=!0,te(h);continue}let S=G();if(r.noextglob!==!0&&/^\([^?]/.test(S)){nt("star",h);continue}if(m.type==="star"){if(r.noglobstar===!0){te(h);continue}let v=m.prev,T=v.prev,z=v.type==="slash"||v.type==="bos",V=T&&(T.type==="star"||T.type==="globstar");if(r.bash===!0&&(!z||S[0]&&S[0]!=="/")){k({type:"star",value:h,output:""});continue}let K=_.braces>0&&(v.type==="comma"||v.type==="brace"),$t=R.length&&(v.type==="pipe"||v.type==="paren");if(!z&&v.type!=="paren"&&!K&&!$t){k({type:"star",value:h,output:""});continue}for(;S.slice(0,3)==="/**";){let ot=e[_.index+4];if(ot&&ot!=="/")break;S=S.slice(3),te("/**",3)}if(v.type==="bos"&&W()){m.type="globstar",m.value+=h,m.output=$(r),_.output=m.output,_.globstar=!0,te(h);continue}if(v.type==="slash"&&v.prev.type!=="bos"&&!V&&W()){_.output=_.output.slice(0,-(v.output+m.output).length),v.output=`(?:${v.output}`,m.type="globstar",m.output=$(r)+(r.strictSlashes?")":"|$)"),m.value+=h,_.globstar=!0,_.output+=v.output+m.output,te(h);continue}if(v.type==="slash"&&v.prev.type!=="bos"&&S[0]==="/"){let ot=S[1]!==void 0?"|$":"";_.output=_.output.slice(0,-(v.output+m.output).length),v.output=`(?:${v.output}`,m.type="globstar",m.output=`${$(r)}${c}|${c}${ot})`,m.value+=h,_.output+=v.output+m.output,_.globstar=!0,te(h+O()),k({type:"slash",value:"/",output:""});continue}if(v.type==="bos"&&S[0]==="/"){m.type="globstar",m.value+=h,m.output=`(?:^|${c}|${$(r)}${c})`,_.output=m.output,_.globstar=!0,te(h+O()),k({type:"slash",value:"/",output:""});continue}_.output=_.output.slice(0,-m.output.length),m.type="globstar",m.output=$(r),m.value+=h,_.output+=m.output,_.globstar=!0,te(h);continue}let F={type:"star",value:h,output:w};if(r.bash===!0){F.output=".*?",(m.type==="bos"||m.type==="slash")&&(F.output=j+F.output),k(F);continue}if(m&&(m.type==="bracket"||m.type==="paren")&&r.regex===!0){F.output=h,k(F);continue}(_.index===_.start||m.type==="slash"||m.type==="dot")&&(m.type==="dot"?(_.output+=b,m.output+=b):r.dot===!0?(_.output+=M,m.output+=M):(_.output+=j,m.output+=j),I()!=="*"&&(_.output+=d,m.output+=d)),k(F)}for(;_.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(He("closing","]"));_.output=ie.escapeLast(_.output,"["),be("brackets")}for(;_.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(He("closing",")"));_.output=ie.escapeLast(_.output,"("),be("parens")}for(;_.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(He("closing","}"));_.output=ie.escapeLast(_.output,"{"),be("braces")}if(r.strictSlashes!==!0&&(m.type==="star"||m.type==="bracket")&&k({type:"maybe_slash",value:"",output:`${c}?`}),_.backtrack===!0){_.output="";for(let S of _.tokens)_.output+=S.output!=null?S.output:S.value,S.suffix&&(_.output+=S.suffix)}return _};ar.fastpaths=(e,t)=>{let r=X({},t),n=typeof r.maxLength=="number"?Math.min(_t,r.maxLength):_t,o=e.length;if(o>n)throw new SyntaxError(`Input length: ${o}, exceeds maximum allowed length: ${n}`);e=Wn[e]||e;let{DOT_LITERAL:a,SLASH_LITERAL:i,ONE_CHAR:u,DOTS_SLASH:f,NO_DOT:s,NO_DOTS:p,NO_DOTS_SLASH:l,STAR:c,START_ANCHOR:d}=ht.globChars(r.windows),g=r.dot?p:s,y=r.dot?l:s,b=r.capture?"":"?:",M={negated:!1,prefix:""},x=r.bash===!0?".*?":c;r.capture&&(x=`(${x})`);let N=j=>j.noglobstar===!0?x:`(${b}(?:(?!${d}${j.dot?f:a}).)*?)`,D=j=>{switch(j){case"*":return`${g}${u}${x}`;case".*":return`${a}${u}${x}`;case"*.*":return`${g}${x}${a}${u}${x}`;case"*/*":return`${g}${x}${i}${u}${y}${x}`;case"**":return g+N(r);case"**/*":return`(?:${g}${N(r)}${i})?${y}${u}${x}`;case"**/*.*":return`(?:${g}${N(r)}${i})?${y}${x}${a}${u}${x}`;case"**/.*":return`(?:${g}${N(r)}${i})?${a}${u}${x}`;default:{let C=/^(.*?)\.(\w+)$/.exec(j);if(!C)return;let w=D(C[1]);return w?w+a+C[2]:void 0}}},E=ie.removePrefix(e,M),$=D(E);return $&&r.strictSlashes!==!0&&($+=`${i}?`),$};Vn.exports=ar});var Yn=ve((bs,Zn)=>{"use strict";var aa=jn(),ur=Xn(),Qn=Ge(),ua=Ue(),sa=e=>e&&typeof e=="object"&&!Array.isArray(e),U=(e,t,r=!1)=>{if(Array.isArray(e)){let p=e.map(c=>U(c,t,r));return c=>{for(let d of p){let g=d(c);if(g)return g}return!1}}let n=sa(e)&&e.tokens&&e.input;if(e===""||typeof e!="string"&&!n)throw new TypeError("Expected pattern to be a non-empty string");let o=t||{},a=o.windows,i=n?U.compileRe(e,t):U.makeRe(e,t,!1,!0),u=i.state;delete i.state;let f=()=>!1;if(o.ignore){let p=re(X({},t),{ignore:null,onMatch:null,onResult:null});f=U(o.ignore,p,r)}let s=(p,l=!1)=>{let{isMatch:c,match:d,output:g}=U.test(p,i,t,{glob:e,posix:a}),y={glob:e,state:u,regex:i,posix:a,input:p,output:g,match:d,isMatch:c};return typeof o.onResult=="function"&&o.onResult(y),c===!1?(y.isMatch=!1,l?y:!1):f(p)?(typeof o.onIgnore=="function"&&o.onIgnore(y),y.isMatch=!1,l?y:!1):(typeof o.onMatch=="function"&&o.onMatch(y),l?y:!0)};return r&&(s.state=u),s};U.test=(e,t,r,{glob:n,posix:o}={})=>{if(typeof e!="string")throw new TypeError("Expected input to be a string");if(e==="")return{isMatch:!1,output:""};let a=r||{},i=a.format||(o?Qn.toPosixSlashes:null),u=e===n,f=u&&i?i(e):e;return u===!1&&(f=i?i(e):e,u=f===n),(u===!1||a.capture===!0)&&(a.matchBase===!0||a.basename===!0?u=U.matchBase(e,t,r,o):u=t.exec(f)),{isMatch:!!u,match:u,output:f}};U.matchBase=(e,t,r)=>(t instanceof RegExp?t:U.makeRe(t,r)).test(Qn.basename(e));U.isMatch=(e,t,r)=>U(t,r)(e);U.parse=(e,t)=>Array.isArray(e)?e.map(r=>U.parse(r,t)):ur(e,re(X({},t),{fastpaths:!1}));U.scan=(e,t)=>aa(e,t);U.compileRe=(e,t,r=!1,n=!1)=>{if(r===!0)return e.output;let o=t||{},a=o.contains?"":"^",i=o.contains?"":"$",u=`${a}(?:${e.output})${i}`;e&&e.negated===!0&&(u=`^(?!${u}).*$`);let f=U.toRegex(u,t);return n===!0&&(f.state=e),f};U.makeRe=(e,t={},r=!1,n=!1)=>{if(!e||typeof e!="string")throw new TypeError("Expected a non-empty string");let o={negated:!1,fastpaths:!0};return t.fastpaths!==!1&&(e[0]==="."||e[0]==="*")&&(o.output=ur.fastpaths(e,t)),o.output||(o=ur(e,t)),U.compileRe(o,t,r,n)};U.toRegex=(e,t)=>{try{let r=t||{};return new RegExp(e,r.flags||(r.nocase?"i":""))}catch(r){if(t&&t.debug===!0)throw r;return/$^/}};U.constants=ua;Zn.exports=U});var ro=ve((Ms,to)=>{"use strict";var Jn=Yn(),la=Ge();function eo(e,t,r=!1){return t&&(t.windows===null||t.windows===void 0)&&(t=re(X({},t),{windows:la.isWindows()})),Jn(e,t,r)}Object.assign(eo,Jn);to.exports=eo});var bo=ve((ml,St)=>{"use strict";St.exports=Aa;St.exports.format=xo;St.exports.parse=yo;var va=/\B(?=(\d{3})+(?!\d))/g,Ma=/(?:\.0*|(\.[^0]+)0+)$/,_e={b:1,kb:1024,mb:1<<20,gb:1<<30,tb:Math.pow(1024,4),pb:Math.pow(1024,5)},Sa=/^((-|\+)?(\d+(?:\.\d+)?)) *(kb|mb|gb|tb|pb)$/i;function Aa(e,t){return typeof e=="string"?yo(e):typeof e=="number"?xo(e,t):null}function xo(e,t){if(!Number.isFinite(e))return null;var r=Math.abs(e),n=t&&t.thousandsSeparator||"",o=t&&t.unitSeparator||"",a=t&&t.decimalPlaces!==void 0?t.decimalPlaces:2,i=!!(t&&t.fixedDecimals),u=t&&t.unit||"";(!u||!_e[u.toLowerCase()])&&(r>=_e.pb?u="PB":r>=_e.tb?u="TB":r>=_e.gb?u="GB":r>=_e.mb?u="MB":r>=_e.kb?u="KB":u="B");var f=e/_e[u.toLowerCase()],s=f.toFixed(a);return i||(s=s.replace(Ma,"$1")),n&&(s=s.split(".").map(function(p,l){return l===0?p.replace(va,n):p}).join(".")),s+o+u}function yo(e){if(typeof e=="number"&&!isNaN(e))return e;if(typeof e!="string")return null;var t=Sa.exec(e),r,n="b";return t?(r=parseFloat(t[1]),n=t[4].toLowerCase()):(r=parseInt(e,10),n="b"),isNaN(r)?null:Math.floor(_e[n]*r)}});var ou={};di(ou,{StaticContext:()=>ae,default:()=>nu});var lt,P,Ur,hi,Me,Br,Gr,It,Kr,Ft,Pt,Ot,jr,De={},Wr=[],_i=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Bt=Array.isArray;function me(e,t){for(var r in t)e[r]=t[r];return e}function zt(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function gi(e,t,r){var n,o,a,i={};for(a in t)a=="key"?n=t[a]:a=="ref"?o=t[a]:i[a]=t[a];if(arguments.length>2&&(i.children=arguments.length>3?lt.call(arguments,2):r),typeof e=="function"&&e.defaultProps!=null)for(a in e.defaultProps)i[a]===void 0&&(i[a]=e.defaultProps[a]);return at(e,i,n,o,null)}function at(e,t,r,n,o){var a={type:e,props:t,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:o==null?++Ur:o,__i:-1,__u:0};return o==null&&P.vnode!=null&&P.vnode(a),a}function J(e){return e.children}function ut(e,t){this.props=e,this.context=t}function Te(e,t){if(t==null)return e.__?Te(e.__,e.__i+1):null;for(var r;t<e.__k.length;t++)if((r=e.__k[t])!=null&&r.__e!=null)return r.__e;return typeof e.type=="function"?Te(e):null}function Vr(e){var t,r;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((r=e.__k[t])!=null&&r.__e!=null){e.__e=e.__c.base=r.__e;break}return Vr(e)}}function Dt(e){(!e.__d&&(e.__d=!0)&&Me.push(e)&&!st.__r++||Br!==P.debounceRendering)&&((Br=P.debounceRendering)||Gr)(st)}function st(){var e,t,r,n,o,a,i,u;for(Me.sort(It);e=Me.shift();)e.__d&&(t=Me.length,n=void 0,a=(o=(r=e).__v).__e,i=[],u=[],r.__P&&((n=me({},o)).__v=o.__v+1,P.vnode&&P.vnode(n),qt(r.__P,n,o,r.__n,r.__P.namespaceURI,32&o.__u?[a]:null,i,a==null?Te(o):a,!!(32&o.__u),u),n.__v=o.__v,n.__.__k[n.__i]=n,Zr(i,n,u),n.__e!=a&&Vr(n)),Me.length>t&&Me.sort(It));st.__r=0}function Xr(e,t,r,n,o,a,i,u,f,s,p){var l,c,d,g,y,b,M=n&&n.__k||Wr,x=t.length;for(f=xi(r,t,M,f,x),l=0;l<x;l++)(d=r.__k[l])!=null&&(c=d.__i===-1?De:M[d.__i]||De,d.__i=l,b=qt(e,d,c,o,a,i,u,f,s,p),g=d.__e,d.ref&&c.ref!=d.ref&&(c.ref&&Ut(c.ref,null,d),p.push(d.ref,d.__c||g,d)),y==null&&g!=null&&(y=g),4&d.__u||c.__k===d.__k?f=Qr(d,f,e):typeof d.type=="function"&&b!==void 0?f=b:g&&(f=g.nextSibling),d.__u&=-7);return r.__e=y,f}function xi(e,t,r,n,o){var a,i,u,f,s,p=r.length,l=p,c=0;for(e.__k=new Array(o),a=0;a<o;a++)(i=t[a])!=null&&typeof i!="boolean"&&typeof i!="function"?(f=a+c,(i=e.__k[a]=typeof i=="string"||typeof i=="number"||typeof i=="bigint"||i.constructor==String?at(null,i,null,null,null):Bt(i)?at(J,{children:i},null,null,null):i.constructor===void 0&&i.__b>0?at(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):i).__=e,i.__b=e.__b+1,u=null,(s=i.__i=yi(i,r,f,l))!==-1&&(l--,(u=r[s])&&(u.__u|=2)),u==null||u.__v===null?(s==-1&&c--,typeof i.type!="function"&&(i.__u|=4)):s!=f&&(s==f-1?c--:s==f+1?c++:(s>f?c--:c++,i.__u|=4))):e.__k[a]=null;if(l)for(a=0;a<p;a++)(u=r[a])!=null&&!(2&u.__u)&&(u.__e==n&&(n=Te(u)),Yr(u,u));return n}function Qr(e,t,r){var n,o;if(typeof e.type=="function"){for(n=e.__k,o=0;n&&o<n.length;o++)n[o]&&(n[o].__=e,t=Qr(n[o],t,r));return t}e.__e!=t&&(t&&e.type&&!r.contains(t)&&(t=Te(e)),r.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function yi(e,t,r,n){var o,a,i=e.key,u=e.type,f=t[r];if(f===null||f&&i==f.key&&u===f.type&&!(2&f.__u))return r;if(n>(f!=null&&!(2&f.__u)?1:0))for(o=r-1,a=r+1;o>=0||a<t.length;){if(o>=0){if((f=t[o])&&!(2&f.__u)&&i==f.key&&u===f.type)return o;o--}if(a<t.length){if((f=t[a])&&!(2&f.__u)&&i==f.key&&u===f.type)return a;a++}}return-1}function zr(e,t,r){t[0]=="-"?e.setProperty(t,r==null?"":r):e[t]=r==null?"":typeof r!="number"||_i.test(t)?r:r+"px"}function it(e,t,r,n,o){var a;e:if(t=="style")if(typeof r=="string")e.style.cssText=r;else{if(typeof n=="string"&&(e.style.cssText=n=""),n)for(t in n)r&&t in r||zr(e.style,t,"");if(r)for(t in r)n&&r[t]===n[t]||zr(e.style,t,r[t])}else if(t[0]=="o"&&t[1]=="n")a=t!=(t=t.replace(Kr,"$1")),t=t.toLowerCase()in e||t=="onFocusOut"||t=="onFocusIn"?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+a]=r,r?n?r.u=n.u:(r.u=Ft,e.addEventListener(t,a?Ot:Pt,a)):e.removeEventListener(t,a?Ot:Pt,a);else{if(o=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=r==null?"":r;break e}catch(i){}typeof r=="function"||(r==null||r===!1&&t[4]!="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&r==1?"":r))}}function qr(e){return function(t){if(this.l){var r=this.l[t.type+e];if(t.t==null)t.t=Ft++;else if(t.t<r.u)return;return r(P.event?P.event(t):t)}}}function qt(e,t,r,n,o,a,i,u,f,s){var p,l,c,d,g,y,b,M,x,N,D,E,$,j,C,w,_,R=t.type;if(t.constructor!==void 0)return null;128&r.__u&&(f=!!(32&r.__u),a=[u=t.__e=r.__e]),(p=P.__b)&&p(t);e:if(typeof R=="function")try{if(M=t.props,x="prototype"in R&&R.prototype.render,N=(p=R.contextType)&&n[p.__c],D=p?N?N.props.value:p.__:n,r.__c?b=(l=t.__c=r.__c).__=l.__E:(x?t.__c=l=new R(M,D):(t.__c=l=new ut(M,D),l.constructor=R,l.render=vi),N&&N.sub(l),l.props=M,l.state||(l.state={}),l.context=D,l.__n=n,c=l.__d=!0,l.__h=[],l._sb=[]),x&&l.__s==null&&(l.__s=l.state),x&&R.getDerivedStateFromProps!=null&&(l.__s==l.state&&(l.__s=me({},l.__s)),me(l.__s,R.getDerivedStateFromProps(M,l.__s))),d=l.props,g=l.state,l.__v=t,c)x&&R.getDerivedStateFromProps==null&&l.componentWillMount!=null&&l.componentWillMount(),x&&l.componentDidMount!=null&&l.__h.push(l.componentDidMount);else{if(x&&R.getDerivedStateFromProps==null&&M!==d&&l.componentWillReceiveProps!=null&&l.componentWillReceiveProps(M,D),!l.__e&&(l.shouldComponentUpdate!=null&&l.shouldComponentUpdate(M,l.__s,D)===!1||t.__v==r.__v)){for(t.__v!=r.__v&&(l.props=M,l.state=l.__s,l.__d=!1),t.__e=r.__e,t.__k=r.__k,t.__k.some(function(L){L&&(L.__=t)}),E=0;E<l._sb.length;E++)l.__h.push(l._sb[E]);l._sb=[],l.__h.length&&i.push(l);break e}l.componentWillUpdate!=null&&l.componentWillUpdate(M,l.__s,D),x&&l.componentDidUpdate!=null&&l.__h.push(function(){l.componentDidUpdate(d,g,y)})}if(l.context=D,l.props=M,l.__P=e,l.__e=!1,$=P.__r,j=0,x){for(l.state=l.__s,l.__d=!1,$&&$(t),p=l.render(l.props,l.state,l.context),C=0;C<l._sb.length;C++)l.__h.push(l._sb[C]);l._sb=[]}else do l.__d=!1,$&&$(t),p=l.render(l.props,l.state,l.context),l.state=l.__s;while(l.__d&&++j<25);l.state=l.__s,l.getChildContext!=null&&(n=me(me({},n),l.getChildContext())),x&&!c&&l.getSnapshotBeforeUpdate!=null&&(y=l.getSnapshotBeforeUpdate(d,g)),u=Xr(e,Bt(w=p!=null&&p.type===J&&p.key==null?p.props.children:p)?w:[w],t,r,n,o,a,i,u,f,s),l.base=t.__e,t.__u&=-161,l.__h.length&&i.push(l),b&&(l.__E=l.__=null)}catch(L){if(t.__v=null,f||a!=null)if(L.then){for(t.__u|=f?160:128;u&&u.nodeType==8&&u.nextSibling;)u=u.nextSibling;a[a.indexOf(u)]=null,t.__e=u}else for(_=a.length;_--;)zt(a[_]);else t.__e=r.__e,t.__k=r.__k;P.__e(L,t,r)}else a==null&&t.__v==r.__v?(t.__k=r.__k,t.__e=r.__e):u=t.__e=bi(r.__e,t,r,n,o,a,i,f,s);return(p=P.diffed)&&p(t),128&t.__u?void 0:u}function Zr(e,t,r){for(var n=0;n<r.length;n++)Ut(r[n],r[++n],r[++n]);P.__c&&P.__c(t,e),e.some(function(o){try{e=o.__h,o.__h=[],e.some(function(a){a.call(o)})}catch(a){P.__e(a,o.__v)}})}function bi(e,t,r,n,o,a,i,u,f){var s,p,l,c,d,g,y,b=r.props,M=t.props,x=t.type;if(x=="svg"?o="http://www.w3.org/2000/svg":x=="math"?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),a!=null){for(s=0;s<a.length;s++)if((d=a[s])&&"setAttribute"in d==!!x&&(x?d.localName==x:d.nodeType==3)){e=d,a[s]=null;break}}if(e==null){if(x==null)return document.createTextNode(M);e=document.createElementNS(o,x,M.is&&M),u&&(P.__m&&P.__m(t,a),u=!1),a=null}if(x===null)b===M||u&&e.data===M||(e.data=M);else{if(a=a&<.call(e.childNodes),b=r.props||De,!u&&a!=null)for(b={},s=0;s<e.attributes.length;s++)b[(d=e.attributes[s]).name]=d.value;for(s in b)if(d=b[s],s!="children"){if(s=="dangerouslySetInnerHTML")l=d;else if(!(s in M)){if(s=="value"&&"defaultValue"in M||s=="checked"&&"defaultChecked"in M)continue;it(e,s,null,d,o)}}for(s in M)d=M[s],s=="children"?c=d:s=="dangerouslySetInnerHTML"?p=d:s=="value"?g=d:s=="checked"?y=d:u&&typeof d!="function"||b[s]===d||it(e,s,d,b[s],o);if(p)u||l&&(p.__html===l.__html||p.__html===e.innerHTML)||(e.innerHTML=p.__html),t.__k=[];else if(l&&(e.innerHTML=""),Xr(e,Bt(c)?c:[c],t,r,n,x=="foreignObject"?"http://www.w3.org/1999/xhtml":o,a,i,a?a[0]:r.__k&&Te(r,0),u,f),a!=null)for(s=a.length;s--;)zt(a[s]);u||(s="value",x=="progress"&&g==null?e.removeAttribute("value"):g!==void 0&&(g!==e[s]||x=="progress"&&!g||x=="option"&&g!==b[s])&&it(e,s,g,b[s],o),s="checked",y!==void 0&&y!==e[s]&&it(e,s,y,b[s],o))}return e}function Ut(e,t,r){try{if(typeof e=="function"){var n=typeof e.__u=="function";n&&e.__u(),n&&t==null||(e.__u=e(t))}else e.current=t}catch(o){P.__e(o,r)}}function Yr(e,t,r){var n,o;if(P.unmount&&P.unmount(e),(n=e.ref)&&(n.current&&n.current!==e.__e||Ut(n,null,t)),(n=e.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(a){P.__e(a,t)}n.base=n.__P=null}if(n=e.__k)for(o=0;o<n.length;o++)n[o]&&Yr(n[o],t,r||typeof e.type!="function");r||zt(e.__e),e.__c=e.__=e.__e=void 0}function vi(e,t,r){return this.constructor(e,r)}function Jr(e,t,r){var n,o,a,i;t==document&&(t=document.documentElement),P.__&&P.__(e,t),o=(n=typeof r=="function")?null:r&&r.__k||t.__k,a=[],i=[],qt(t,e=(!n&&r||t).__k=gi(J,null,[e]),o||De,De,t.namespaceURI,!n&&r?[r]:o?null:t.firstChild?lt.call(t.childNodes):null,a,!n&&r?r:o?o.__e:t.firstChild,n,i),Zr(a,e,i)}function en(e,t){var r={__c:t="__cC"+jr++,__:e,Consumer:function(n,o){return n.children(o)},Provider:function(n){var o,a;return this.getChildContext||(o=new Set,(a={})[t]=this,this.getChildContext=function(){return a},this.componentWillUnmount=function(){o=null},this.shouldComponentUpdate=function(i){this.props.value!==i.value&&o.forEach(function(u){u.__e=!0,Dt(u)})},this.sub=function(i){o.add(i);var u=i.componentWillUnmount;i.componentWillUnmount=function(){o&&o.delete(i),u&&u.call(i)}}),n.children}};return r.Provider.__=r.Consumer.contextType=r}lt=Wr.slice,P={__e:function(e,t,r,n){for(var o,a,i;t=t.__;)if((o=t.__c)&&!o.__)try{if((a=o.constructor)&&a.getDerivedStateFromError!=null&&(o.setState(a.getDerivedStateFromError(e)),i=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(e,n||{}),i=o.__d),i)return o.__E=o}catch(u){e=u}throw e}},Ur=0,hi=function(e){return e!=null&&e.constructor==null},ut.prototype.setState=function(e,t){var r;r=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=me({},this.state),typeof e=="function"&&(e=e(me({},r),this.props)),e&&me(r,e),e!=null&&this.__v&&(t&&this._sb.push(t),Dt(this))},ut.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Dt(this))},ut.prototype.render=J,Me=[],Gr=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,It=function(e,t){return e.__v.__b-t.__v.__b},st.__r=0,Kr=/(PointerCapture)$|Capture$/i,Ft=0,Pt=qr(!1),Ot=qr(!0),jr=0;function Mi(e){var t=0,r=e.children,n=r&&r.length;if(!n)t=1;else for(;--n>=0;)t+=r[n].value;e.value=t}function tn(){return this.eachAfter(Mi)}function rn(e,t){let r=-1;for(let n of this)e.call(t,n,++r,this);return this}function nn(e,t){for(var r=this,n=[r],o,a,i=-1;r=n.pop();)if(e.call(t,r,++i,this),o=r.children)for(a=o.length-1;a>=0;--a)n.push(o[a]);return this}function on(e,t){for(var r=this,n=[r],o=[],a,i,u,f=-1;r=n.pop();)if(o.push(r),a=r.children)for(i=0,u=a.length;i<u;++i)n.push(a[i]);for(;r=o.pop();)e.call(t,r,++f,this);return this}function an(e,t){let r=-1;for(let n of this)if(e.call(t,n,++r,this))return n}function un(e){return this.eachAfter(function(t){for(var r=+e(t.data)||0,n=t.children,o=n&&n.length;--o>=0;)r+=n[o].value;t.value=r})}function sn(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})}function ln(e){for(var t=this,r=Si(t,e),n=[t];t!==r;)t=t.parent,n.push(t);for(var o=n.length;e!==r;)n.splice(o,0,e),e=e.parent;return n}function Si(e,t){if(e===t)return e;var r=e.ancestors(),n=t.ancestors(),o=null;for(e=r.pop(),t=n.pop();e===t;)o=e,e=r.pop(),t=n.pop();return o}function fn(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t}function cn(){return Array.from(this)}function pn(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e}function dn(){var e=this,t=[];return e.each(function(r){r!==e&&t.push({source:r.parent,target:r})}),t}function*mn(){var e=this,t,r=[e],n,o,a;do for(t=r.reverse(),r=[];e=t.pop();)if(yield e,n=e.children)for(o=0,a=n.length;o<a;++o)r.push(n[o]);while(r.length)}function Ne(e,t){e instanceof Map?(e=[void 0,e],t===void 0&&(t=Ci)):t===void 0&&(t=Ri);for(var r=new Fe(e),n,o=[r],a,i,u,f;n=o.pop();)if((i=t(n.data))&&(f=(i=Array.from(i)).length))for(n.children=i,u=f-1;u>=0;--u)o.push(a=i[u]=new Fe(i[u])),a.parent=n,a.depth=n.depth+1;return r.eachBefore(Ei)}function Ai(){return Ne(this).eachBefore(wi)}function Ri(e){return e.children}function Ci(e){return Array.isArray(e)?e[1]:null}function wi(e){e.data.value!==void 0&&(e.value=e.data.value),e.data=e.data.data}function Ei(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function Fe(e){this.data=e,this.depth=this.height=0,this.parent=null}Fe.prototype=Ne.prototype={constructor:Fe,count:tn,each:rn,eachAfter:on,eachBefore:nn,find:an,sum:un,sort:sn,path:ln,ancestors:fn,descendants:cn,leaves:pn,links:dn,copy:Ai,[Symbol.iterator]:mn};function hn(e){if(typeof e!="function")throw new Error;return e}function ke(){return 0}function Le(e){return function(){return e}}function _n(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)}function ft(e,t,r,n,o){for(var a=e.children,i,u=-1,f=a.length,s=e.value&&(n-t)/e.value;++u<f;)i=a[u],i.y0=r,i.y1=o,i.x0=t,i.x1=t+=i.value*s}function ct(e,t,r,n,o){for(var a=e.children,i,u=-1,f=a.length,s=e.value&&(o-r)/e.value;++u<f;)i=a[u],i.x0=t,i.x1=n,i.y0=r,i.y1=r+=i.value*s}var Gt=(1+Math.sqrt(5))/2;function Kt(e,t,r,n,o,a){for(var i=[],u=t.children,f,s,p=0,l=0,c=u.length,d,g,y=t.value,b,M,x,N,D,E,$;p<c;){d=o-r,g=a-n;do b=u[l++].value;while(!b&&l<c);for(M=x=b,E=Math.max(g/d,d/g)/(y*e),$=b*b*E,D=Math.max(x/$,$/M);l<c;++l){if(b+=s=u[l].value,s<M&&(M=s),s>x&&(x=s),$=b*b*E,N=Math.max(x/$,$/M),N>D){b-=s;break}D=N}i.push(f={value:b,dice:d<g,children:u.slice(p,l)}),f.dice?ft(f,r,n,o,y?n+=g*b/y:a):ct(f,r,n,y?r+=d*b/y:o,a),y-=b,p=l}return i}var gn=function e(t){function r(n,o,a,i,u){Kt(t,n,o,a,i,u)}return r.ratio=function(n){return e((n=+n)>1?n:1)},r}(Gt);function jt(){var e=gn,t=!1,r=1,n=1,o=[0],a=ke,i=ke,u=ke,f=ke,s=ke;function p(c){return c.x0=c.y0=0,c.x1=r,c.y1=n,c.eachBefore(l),o=[0],t&&c.eachBefore(_n),c}function l(c){var d=o[c.depth],g=c.x0+d,y=c.y0+d,b=c.x1-d,M=c.y1-d;b<g&&(g=b=(g+b)/2),M<y&&(y=M=(y+M)/2),c.x0=g,c.y0=y,c.x1=b,c.y1=M,c.children&&(d=o[c.depth+1]=a(c)/2,g+=s(c)-d,y+=i(c)-d,b-=u(c)-d,M-=f(c)-d,b<g&&(g=b=(g+b)/2),M<y&&(y=M=(y+M)/2),e(c,g,y,b,M))}return p.round=function(c){return arguments.length?(t=!!c,p):t},p.size=function(c){return arguments.length?(r=+c[0],n=+c[1],p):[r,n]},p.tile=function(c){return arguments.length?(e=hn(c),p):e},p.padding=function(c){return arguments.length?p.paddingInner(c).paddingOuter(c):p.paddingInner()},p.paddingInner=function(c){return arguments.length?(a=typeof c=="function"?c:Le(+c),p):a},p.paddingOuter=function(c){return arguments.length?p.paddingTop(c).paddingRight(c).paddingBottom(c).paddingLeft(c):p.paddingTop()},p.paddingTop=function(c){return arguments.length?(i=typeof c=="function"?c:Le(+c),p):i},p.paddingRight=function(c){return arguments.length?(u=typeof c=="function"?c:Le(+c),p):u},p.paddingBottom=function(c){return arguments.length?(f=typeof c=="function"?c:Le(+c),p):f},p.paddingLeft=function(c){return arguments.length?(s=typeof c=="function"?c:Le(+c),p):s},p}var Wt=function e(t){function r(n,o,a,i,u){if((f=n._squarify)&&f.ratio===t)for(var f,s,p,l,c=-1,d,g=f.length,y=n.value;++c<g;){for(s=f[c],p=s.children,l=s.value=0,d=p.length;l<d;++l)s.value+=p[l].value;s.dice?ft(s,o,a,i,y?a+=(u-a)*s.value/y:u):ct(s,o,a,y?o+=(i-o)*s.value/y:i,u),y-=s.value}else n._squarify=f=Kt(t,n,o,a,i,u),f.ratio=t}return r.ratio=function(n){return e((n=+n)>1?n:1)},r}(Gt);var Se=e=>"children"in e;var xn=0,Vt=class{constructor(t){this._id=t;let r=new URL(window.location.href);r.hash=t,this._href=r.toString()}get id(){return this._id}get href(){return this._href}toString(){return`url(${this.href})`}};function Xt(e){xn+=1;let t=["O",e,xn].filter(Boolean).join("-");return new Vt(t)}var le={renderedLength:"Rendered",gzipLength:"Gzip",brotliLength:"Brotli"},yn=e=>{let t=["renderedLength"];return e.gzip&&t.push("gzipLength"),e.brotli&&t.push("brotliLength"),t};var Ae,B,Qt,bn,Be=0,En=[],q=P,vn=q.__b,Mn=q.__r,Sn=q.diffed,An=q.__c,Rn=q.unmount,Cn=q.__;function ze(e,t){q.__h&&q.__h(B,e,Be||t),Be=0;var r=B.__H||(B.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function Q(e){return Be=1,Ti(kn,e)}function Ti(e,t,r){var n=ze(Ae++,2);if(n.t=e,!n.__c&&(n.__=[r?r(t):kn(void 0,t),function(u){var f=n.__N?n.__N[0]:n.__[0],s=n.t(f,u);f!==s&&(n.__N=[s,n.__[1]],n.__c.setState({}))}],n.__c=B,!B.u)){var o=function(u,f,s){if(!n.__c.__H)return!0;var p=n.__c.__H.__.filter(function(c){return!!c.__c});if(p.every(function(c){return!c.__N}))return!a||a.call(this,u,f,s);var l=n.__c.props!==u;return p.forEach(function(c){if(c.__N){var d=c.__[0];c.__=c.__N,c.__N=void 0,d!==c.__[0]&&(l=!0)}}),a&&a.call(this,u,f,s)||l};B.u=!0;var a=B.shouldComponentUpdate,i=B.componentWillUpdate;B.componentWillUpdate=function(u,f,s){if(this.__e){var p=a;a=void 0,o(u,f,s),a=p}i&&i.call(this,u,f,s)},B.shouldComponentUpdate=o}return n.__N||n.__}function dt(e,t){var r=ze(Ae++,3);!q.__s&&Yt(r.__H,t)&&(r.__=e,r.i=t,B.__H.__h.push(r))}function Tn(e,t){var r=ze(Ae++,4);!q.__s&&Yt(r.__H,t)&&(r.__=e,r.i=t,B.__h.push(r))}function qe(e){return Be=5,ee(function(){return{current:e}},[])}function ee(e,t){var r=ze(Ae++,7);return Yt(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function Nn(e,t){return Be=8,ee(function(){return e},t)}function he(e){var t=B.context[e.__c],r=ze(Ae++,9);return r.c=e,t?(r.__==null&&(r.__=!0,t.sub(B)),t.props.value):e.__}function Ni(){for(var e;e=En.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(pt),e.__H.__h.forEach(Zt),e.__H.__h=[]}catch(t){e.__H.__h=[],q.__e(t,e.__v)}}q.__b=function(e){B=null,vn&&vn(e)},q.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Cn&&Cn(e,t)},q.__r=function(e){Mn&&Mn(e),Ae=0;var t=(B=e.__c).__H;t&&(Qt===B?(t.__h=[],B.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.i=r.__N=void 0})):(t.__h.forEach(pt),t.__h.forEach(Zt),t.__h=[],Ae=0)),Qt=B},q.diffed=function(e){Sn&&Sn(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(En.push(t)!==1&&bn===q.requestAnimationFrame||((bn=q.requestAnimationFrame)||ki)(Ni)),t.__H.__.forEach(function(r){r.i&&(r.__H=r.i),r.i=void 0})),Qt=B=null},q.__c=function(e,t){t.some(function(r){try{r.__h.forEach(pt),r.__h=r.__h.filter(function(n){return!n.__||Zt(n)})}catch(n){t.some(function(o){o.__h&&(o.__h=[])}),t=[],q.__e(n,r.__v)}}),An&&An(e,t)},q.unmount=function(e){Rn&&Rn(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{pt(n)}catch(o){t=o}}),r.__H=void 0,t&&q.__e(t,r.__v))};var wn=typeof requestAnimationFrame=="function";function ki(e){var t,r=function(){clearTimeout(n),wn&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);wn&&(t=requestAnimationFrame(r))}function pt(e){var t=B,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),B=t}function Zt(e){var t=B;e.__c=e.__(),B=t}function Yt(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function kn(e,t){return typeof t=="function"?t(e):t}var Li=0,us=Array.isArray;function A(e,t,r,n,o,a){t||(t={});var i,u,f=t;if("ref"in f)for(u in f={},t)u=="ref"?i=t[u]:f[u]=t[u];var s={type:e,props:f,key:r,ref:i,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--Li,__i:-1,__u:0,__source:o,__self:a};if(typeof e=="function"&&(i=e.defaultProps))for(u in i)f[u]===void 0&&(f[u]=i[u]);return P.vnode&&P.vnode(s),s}var Ln="*/**/file.js",Hn=({availableSizeProperties:e,sizeProperty:t,setSizeProperty:r,onExcludeChange:n,onIncludeChange:o})=>{let[a,i]=Q(""),[u,f]=Q(""),s=c=>()=>{c!==t&&r(c)},p=c=>{let d=c.currentTarget.value;i(d),o(d)},l=c=>{let d=c.currentTarget.value;f(d),n(d)};return A("aside",{className:"sidebar",children:[A("div",{className:"size-selectors",children:e.length>1&&e.map(c=>{let d=`selector-${c}`;return A("div",{className:"size-selector",children:[A("input",{type:"radio",id:d,checked:c===t,onChange:s(c)}),A("label",{htmlFor:d,children:le[c]})]},c)})}),A("div",{className:"module-filters",children:[A("div",{className:"module-filter",children:[A("label",{htmlFor:"module-filter-exclude",children:"Exclude"}),A("input",{type:"text",id:"module-filter-exclude",value:u,onInput:l,placeholder:Ln})]}),A("div",{className:"module-filter",children:[A("label",{htmlFor:"module-filter-include",children:"Include"}),A("input",{type:"text",id:"module-filter-include",value:a,onInput:p,placeholder:Ln})]})]})]})};var uo=Fr(ro());function fa(e){return Array.isArray(e)}function no(e){return fa(e)?e:e==null?[]:[e]}var oo=e=>{let r=(0,uo.default)(e,{dot:!0});return{test:n=>r(n)}};var io={test:()=>!0},ao=e=>{let t="bundle"in e&&e.bundle!=null?oo(e.bundle):io,r="file"in e&&e.file!=null?oo(e.file):io;return{bundleTest:t,fileTest:r}},so=(e,t)=>{let r=no(e).map(ao),n=no(t).map(ao);return(o,a)=>{for(let i=0;i<n.length;++i){let{bundleTest:u,fileTest:f}=n[i];if(u.test(o)&&f.test(a))return!1}for(let i=0;i<r.length;++i){let{bundleTest:u,fileTest:f}=r[i];if(u.test(o)&&f.test(a))return!0}return!r.length}};var lo=(e,t)=>{let r=!1;return n=>{r||(e(n),r=!0,setTimeout(()=>{r=!1},t))}},fo=e=>e===""?[]:e.split(",").map(t=>t.trim()).map(t=>t.startsWith('"')&&t.endsWith('"')?t.substring(1,t.length-1):t).map(t=>t.startsWith("'")&&t.endsWith("'")?t.substring(1,t.length-1):t).filter(t=>t).map(t=>t.split(":")).flatMap(t=>{if(t.length===0)return[];let r=null,n=null;return t.length===1&&t[0]?(n=t[0],[{file:n,bundle:r}]):(r=t[0]||null,n=t.slice(1).join(":")||null,[{bundle:r,file:n}])}),co=()=>{let[e,t]=Q(""),[r,n]=Q(""),o=ee(()=>lo(t,200),[]),a=ee(()=>lo(n,200),[]),i=ee(()=>so(fo(e),fo(r)),[e,r]);return{getModuleFilterMultiplier:Nn((f,s)=>i(f,s.id)?1:0,[i]),includeFilter:e,excludeFilter:r,setExcludeFilter:a,setIncludeFilter:o}};function Re(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function sr(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function gt(e){let t,r,n;e.length!==2?(t=Re,r=(u,f)=>Re(e(u),f),n=(u,f)=>e(u)-f):(t=e===Re||e===sr?e:ca,r=e,n=e);function o(u,f,s=0,p=u.length){if(s<p){if(t(f,f)!==0)return p;do{let l=s+p>>>1;r(u[l],f)<0?s=l+1:p=l}while(s<p)}return s}function a(u,f,s=0,p=u.length){if(s<p){if(t(f,f)!==0)return p;do{let l=s+p>>>1;r(u[l],f)<=0?s=l+1:p=l}while(s<p)}return s}function i(u,f,s=0,p=u.length){let l=o(u,f,s,p-1);return l>s&&n(u[l-1],f)>-n(u[l],f)?l-1:l}return{left:o,center:i,right:a}}function ca(){return 0}function lr(e){return e===null?NaN:+e}var po=gt(Re),mo=po.right,pa=po.left,da=gt(lr).center,fr=mo;var xt=class extends Map{constructor(t,r=_a){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(let[n,o]of t)this.set(n,o)}get(t){return super.get(ho(this,t))}has(t){return super.has(ho(this,t))}set(t,r){return super.set(ma(this,t),r)}delete(t){return super.delete(ha(this,t))}};function ho({_intern:e,_key:t},r){let n=t(r);return e.has(n)?e.get(n):r}function ma({_intern:e,_key:t},r){let n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function ha({_intern:e,_key:t},r){let n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function _a(e){return e!==null&&typeof e=="object"?e.valueOf():e}function yt(e){return e}function bt(e,...t){return ga(e,yt,yt,t)}function ga(e,t,r,n){return function o(a,i){if(i>=n.length)return r(a);let u=new xt,f=n[i++],s=-1;for(let p of a){let l=f(p,++s,a),c=u.get(l);c?c.push(p):u.set(l,[p])}for(let[p,l]of u)u.set(p,o(l,i));return t(u)}(e,0)}var xa=Math.sqrt(50),ya=Math.sqrt(10),ba=Math.sqrt(2);function vt(e,t,r){let n=(t-e)/Math.max(0,r),o=Math.floor(Math.log10(n)),a=n/Math.pow(10,o),i=a>=xa?10:a>=ya?5:a>=ba?2:1,u,f,s;return o<0?(s=Math.pow(10,-o)/i,u=Math.round(e*s),f=Math.round(t*s),u/s<e&&++u,f/s>t&&--f,s=-s):(s=Math.pow(10,o)*i,u=Math.round(e/s),f=Math.round(t/s),u*s<e&&++u,f*s>t&&--f),f<u&&.5<=r&&r<2?vt(e,t,r*2):[u,f,s]}function Mt(e,t,r){if(t=+t,e=+e,r=+r,!(r>0))return[];if(e===t)return[e];let n=t<e,[o,a,i]=n?vt(t,e,r):vt(e,t,r);if(!(a>=o))return[];let u=a-o+1,f=new Array(u);if(n)if(i<0)for(let s=0;s<u;++s)f[s]=(a-s)/-i;else for(let s=0;s<u;++s)f[s]=(a-s)*i;else if(i<0)for(let s=0;s<u;++s)f[s]=(o+s)/-i;else for(let s=0;s<u;++s)f[s]=(o+s)*i;return f}function je(e,t,r){return t=+t,e=+e,r=+r,vt(e,t,r)[2]}function cr(e,t,r){t=+t,e=+e,r=+r;let n=t<e,o=n?je(t,e,r):je(e,t,r);return(n?-1:1)*(o<0?1/-o:o)}var _o=({node:e,onMouseOver:t,onClick:r,selected:n})=>{let{getModuleColor:o}=he(ae),{backgroundColor:a,fontColor:i}=o(e),{x0:u,x1:f,y1:s,y0:p,data:l,children:c=null}=e,d=qe(null),g=qe(),y=f-u,b=s-p,M={"font-size":"0.7em","dominant-baseline":"middle","text-anchor":"middle",x:y/2};return c!=null?M.y=22/2:M.y=b/2,Tn(()=>{if(y==0||b==0||!d.current)return;g.current==null&&(g.current=d.current.getBoundingClientRect());let x=1;c!=null?(x=Math.min(y*.9/g.current.width,Math.min(b,22)/g.current.height),x=Math.min(1,x),d.current.setAttribute("y",String(Math.min(22,b)/2/x)),d.current.setAttribute("x",String(y/2/x))):(x=Math.min(y*.9/g.current.width,b*.9/g.current.height),x=Math.min(1,x),d.current.setAttribute("y",String(b/2/x)),d.current.setAttribute("x",String(y/2/x))),d.current.setAttribute("transform",`scale(${x.toFixed(2)})`)},[c,b,y]),y==0||b==0?null:A("g",{className:"node",transform:`translate(${u},${p})`,onClick:x=>{x.stopPropagation(),r(e)},onMouseOver:x=>{x.stopPropagation(),t(e)},children:[A("rect",{fill:a,rx:2,ry:2,width:f-u,height:s-p,stroke:n?"#fff":void 0,"stroke-width":n?2:void 0}),A("text",re(X({ref:d,fill:i,onClick:x=>{var N;((N=window.getSelection())==null?void 0:N.toString())!==""&&x.stopPropagation()}},M),{children:l.name}))]})};var go=({root:e,onNodeHover:t,selectedNode:r,onNodeClick:n})=>{let{width:o,height:a,getModuleIds:i}=he(ae);console.time("layering");let u=ee(()=>{let f=bt(e.descendants(),p=>p.height),s=Array.from(f,([p,l])=>({key:p,values:l}));return s.sort((p,l)=>l.key-p.key),s},[e]);return console.timeEnd("layering"),A("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:`0 0 ${o} ${a}`,children:u.map(({key:f,values:s})=>A("g",{className:"layer",children:s.map(p=>A(_o,{node:p,onMouseOver:t,selected:r===p,onClick:n},i(p.data).nodeUid.id))},f))})};var pr=Fr(bo());var Ra=10,vo=30,Ca=A("span",{children:[" ",A("b",{children:le.renderedLength})," is a number of characters in the file after individual and ",A("br",{})," whole bundle transformations according to sourcemap."]}),wa=A("span",{children:[A("b",{children:le.renderedLength})," is a byte size of individual file after transformations and treeshake."]}),Ea=A("span",{children:[A("b",{children:le.gzipLength})," and ",A("b",{children:le.brotliLength})," is a byte size of individual file after individual transformations,",A("br",{})," treeshake and compression."]}),Mo=({node:e,visible:t,root:r,sizeProperty:n})=>{let{availableSizeProperties:o,getModuleSize:a,data:i}=he(ae),u=qe(null),[f,s]=Q({}),p=ee(()=>{if(!e)return null;let c=a(e.data,n),y=(100*c/a(r.data,n)).toFixed(2)+"%",b=e.ancestors().reverse().map(x=>x.data.name).join("/"),M=null;if(!Se(e.data)){let x=i.nodeParts[e.data.uid].metaUid;M=i.nodeMetas[x]}return A(J,{children:[A("div",{children:b}),o.map(x=>x===n?A("div",{children:[A("b",{children:[le[x],": ",(0,pr.format)(c)]})," ","(",y,")"]},x):A("div",{children:[le[x],": ",(0,pr.format)(a(e.data,x))]},x)),A("br",{}),M&&M.importedBy.length>0&&A("div",{children:[A("div",{children:[A("b",{children:"Imported By"}),":"]}),M.importedBy.map(({uid:x})=>{let N=i.nodeMetas[x].id;return A("div",{children:N},N)})]}),A("br",{}),A("small",{children:i.options.sourcemap?Ca:wa}),(i.options.gzip||i.options.brotli)&&A(J,{children:[A("br",{}),A("small",{children:Ea})]})]})},[o,i,a,e,r.data,n]),l=c=>{if(!u.current)return;let d={left:c.x+Ra,top:c.y+vo},g=u.current.getBoundingClientRect();d.left+g.width>window.innerWidth&&(d.left=Math.max(0,window.innerWidth-g.width)),d.top+g.height>window.innerHeight&&(d.top=Math.max(0,c.y-vo-g.height)),s(d)};return dt(()=>{let c=d=>{l({x:d.pageX,y:d.pageY})};return document.addEventListener("mousemove",c,!0),()=>{document.removeEventListener("mousemove",c,!0)}},[]),A("div",{className:`tooltip ${t?"":"tooltip-hidden"}`,ref:u,style:f,children:p})};var So=({root:e,sizeProperty:t,selectedNode:r,setSelectedNode:n})=>{let[o,a]=Q(!1),[i,u]=Q(void 0);return dt(()=>{let f=()=>{a(!1)};return document.addEventListener("mouseover",f),()=>{document.removeEventListener("mouseover",f)}},[]),A(J,{children:[A(go,{root:e,onNodeHover:f=>{u(f),a(!0)},selectedNode:r,onNodeClick:f=>{n(r===f?void 0:f)}}),A(Mo,{visible:o,node:i,root:e,sizeProperty:t})]})};var Ao=()=>{let{availableSizeProperties:e,rawHierarchy:t,getModuleSize:r,layout:n,data:o}=he(ae),[a,i]=Q(e[0]),[u,f]=Q(void 0),{getModuleFilterMultiplier:s,setExcludeFilter:p,setIncludeFilter:l}=co();console.time("getNodeSizeMultiplier");let c=ee(()=>{if(u===void 0)return()=>1;if(Se(u.data)){let b=new Set(u.leaves().map(M=>M.data));return M=>b.has(M)?1:0}else return b=>b===u.data?1:0},[r,t.data,u,a]);console.timeEnd("getNodeSizeMultiplier"),console.time("root hierarchy compute");let d=ee(()=>{let g=t.sum(y=>{var E;if(Se(y))return 0;let b=o.nodeMetas[o.nodeParts[y.uid].metaUid],M=(E=Object.entries(b.moduleParts).find(([,$])=>$==y.uid))==null?void 0:E[0],x=r(y,a),N=c(y),D=s(M,b);return x*N*D}).sort((y,b)=>r(y.data,a)-r(b.data,a));return n(g)},[o,s,r,c,n,t,a]);return console.timeEnd("root hierarchy compute"),A(J,{children:[A(Hn,{sizeProperty:a,availableSizeProperties:e,setSizeProperty:i,onExcludeChange:p,onIncludeChange:l}),A(So,{root:d,sizeProperty:a,selectedNode:u,setSelectedNode:f})]})};function Ro(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function Co(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}function At(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function dr(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Qe(){}var Ve=.7,wt=1/Ve,Ie="\\s*([+-]?\\d+)\\s*",Xe="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",ue="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Ta=/^#([0-9a-f]{3,8})$/,Na=new RegExp(`^rgb\\(${Ie},${Ie},${Ie}\\)$`),ka=new RegExp(`^rgb\\(${ue},${ue},${ue}\\)$`),La=new RegExp(`^rgba\\(${Ie},${Ie},${Ie},${Xe}\\)$`),Ha=new RegExp(`^rgba\\(${ue},${ue},${ue},${Xe}\\)$`),$a=new RegExp(`^hsl\\(${Xe},${ue},${ue}\\)$`),Ia=new RegExp(`^hsla\\(${Xe},${ue},${ue},${Xe}\\)$`),wo={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};At(Qe,ge,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Eo,formatHex:Eo,formatHex8:Pa,formatHsl:Oa,formatRgb:To,toString:To});function Eo(){return this.rgb().formatHex()}function Pa(){return this.rgb().formatHex8()}function Oa(){return Io(this).formatHsl()}function To(){return this.rgb().formatRgb()}function ge(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Ta.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?No(t):r===3?new Y(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?Rt(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?Rt(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=Na.exec(e))?new Y(t[1],t[2],t[3],1):(t=ka.exec(e))?new Y(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=La.exec(e))?Rt(t[1],t[2],t[3],t[4]):(t=Ha.exec(e))?Rt(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=$a.exec(e))?Ho(t[1],t[2]/100,t[3]/100,1):(t=Ia.exec(e))?Ho(t[1],t[2]/100,t[3]/100,t[4]):wo.hasOwnProperty(e)?No(wo[e]):e==="transparent"?new Y(NaN,NaN,NaN,0):null}function No(e){return new Y(e>>16&255,e>>8&255,e&255,1)}function Rt(e,t,r,n){return n<=0&&(e=t=r=NaN),new Y(e,t,r,n)}function Da(e){return e instanceof Qe||(e=ge(e)),e?(e=e.rgb(),new Y(e.r,e.g,e.b,e.opacity)):new Y}function Pe(e,t,r,n){return arguments.length===1?Da(e):new Y(e,t,r,n==null?1:n)}function Y(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}At(Y,Pe,dr(Qe,{brighter(e){return e=e==null?wt:Math.pow(wt,e),new Y(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Ve:Math.pow(Ve,e),new Y(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Y(we(this.r),we(this.g),we(this.b),Et(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:ko,formatHex:ko,formatHex8:Fa,formatRgb:Lo,toString:Lo}));function ko(){return`#${Ce(this.r)}${Ce(this.g)}${Ce(this.b)}`}function Fa(){return`#${Ce(this.r)}${Ce(this.g)}${Ce(this.b)}${Ce((isNaN(this.opacity)?1:this.opacity)*255)}`}function Lo(){let e=Et(this.opacity);return`${e===1?"rgb(":"rgba("}${we(this.r)}, ${we(this.g)}, ${we(this.b)}${e===1?")":`, ${e})`}`}function Et(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function we(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Ce(e){return e=we(e),(e<16?"0":"")+e.toString(16)}function Ho(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new ne(e,t,r,n)}function Io(e){if(e instanceof ne)return new ne(e.h,e.s,e.l,e.opacity);if(e instanceof Qe||(e=ge(e)),!e)return new ne;if(e instanceof ne)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,o=Math.min(t,r,n),a=Math.max(t,r,n),i=NaN,u=a-o,f=(a+o)/2;return u?(t===a?i=(r-n)/u+(r<n)*6:r===a?i=(n-t)/u+2:i=(t-r)/u+4,u/=f<.5?a+o:2-a-o,i*=60):u=f>0&&f<1?0:i,new ne(i,u,f,e.opacity)}function Ze(e,t,r,n){return arguments.length===1?Io(e):new ne(e,t,r,n==null?1:n)}function ne(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}At(ne,Ze,dr(Qe,{brighter(e){return e=e==null?wt:Math.pow(wt,e),new ne(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Ve:Math.pow(Ve,e),new ne(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,o=2*r-n;return new Y(mr(e>=240?e-240:e+120,o,n),mr(e,o,n),mr(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new ne($o(this.h),Ct(this.s),Ct(this.l),Et(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=Et(this.opacity);return`${e===1?"hsl(":"hsla("}${$o(this.h)}, ${Ct(this.s)*100}%, ${Ct(this.l)*100}%${e===1?")":`, ${e})`}`}}));function $o(e){return e=(e||0)%360,e<0?e+360:e}function Ct(e){return Math.max(0,Math.min(1,e||0))}function mr(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}function hr(e,t,r,n,o){var a=e*e,i=a*e;return((1-3*e+3*a-i)*t+(4-6*a+3*i)*r+(1+3*e+3*a-3*i)*n+i*o)/6}function Po(e){var t=e.length-1;return function(r){var n=r<=0?r=0:r>=1?(r=1,t-1):Math.floor(r*t),o=e[n],a=e[n+1],i=n>0?e[n-1]:2*o-a,u=n<t-1?e[n+2]:2*a-o;return hr((r-n/t)*t,i,o,a,u)}}function Oo(e){var t=e.length;return function(r){var n=Math.floor(((r%=1)<0?++r:r)*t),o=e[(n+t-1)%t],a=e[n%t],i=e[(n+1)%t],u=e[(n+2)%t];return hr((r-n/t)*t,o,a,i,u)}}var Ye=e=>()=>e;function Ba(e,t){return function(r){return e+r*t}}function za(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function Do(e){return(e=+e)==1?Tt:function(t,r){return r-t?za(t,r,e):Ye(isNaN(t)?r:t)}}function Tt(e,t){var r=t-e;return r?Ba(e,r):Ye(isNaN(e)?t:e)}var _r=function e(t){var r=Do(t);function n(o,a){var i=r((o=Pe(o)).r,(a=Pe(a)).r),u=r(o.g,a.g),f=r(o.b,a.b),s=Tt(o.opacity,a.opacity);return function(p){return o.r=i(p),o.g=u(p),o.b=f(p),o.opacity=s(p),o+""}}return n.gamma=e,n}(1);function Fo(e){return function(t){var r=t.length,n=new Array(r),o=new Array(r),a=new Array(r),i,u;for(i=0;i<r;++i)u=Pe(t[i]),n[i]=u.r||0,o[i]=u.g||0,a[i]=u.b||0;return n=e(n),o=e(o),a=e(a),u.opacity=1,function(f){return u.r=n(f),u.g=o(f),u.b=a(f),u+""}}}var rf=Fo(Po),nf=Fo(Oo);function Bo(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),o;return function(a){for(o=0;o<r;++o)n[o]=e[o]*(1-a)+t[o]*a;return n}}function zo(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function qo(e,t){var r=t?t.length:0,n=e?Math.min(r,e.length):0,o=new Array(n),a=new Array(r),i;for(i=0;i<n;++i)o[i]=ce(e[i],t[i]);for(;i<r;++i)a[i]=t[i];return function(u){for(i=0;i<n;++i)a[i]=o[i](u);return a}}function Uo(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function xe(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function Go(e,t){var r={},n={},o;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(o in t)o in e?r[o]=ce(e[o],t[o]):n[o]=t[o];return function(a){for(o in r)n[o]=r[o](a);return n}}var xr=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,gr=new RegExp(xr.source,"g");function qa(e){return function(){return e}}function Ua(e){return function(t){return e(t)+""}}function Ko(e,t){var r=xr.lastIndex=gr.lastIndex=0,n,o,a,i=-1,u=[],f=[];for(e=e+"",t=t+"";(n=xr.exec(e))&&(o=gr.exec(t));)(a=o.index)>r&&(a=t.slice(r,a),u[i]?u[i]+=a:u[++i]=a),(n=n[0])===(o=o[0])?u[i]?u[i]+=o:u[++i]=o:(u[++i]=null,f.push({i,x:xe(n,o)})),r=gr.lastIndex;return r<t.length&&(a=t.slice(r),u[i]?u[i]+=a:u[++i]=a),u.length<2?f[0]?Ua(f[0].x):qa(t):(t=f.length,function(s){for(var p=0,l;p<t;++p)u[(l=f[p]).i]=l.x(s);return u.join("")})}function ce(e,t){var r=typeof t,n;return t==null||r==="boolean"?Ye(t):(r==="number"?xe:r==="string"?(n=ge(t))?(t=n,_r):Ko:t instanceof ge?_r:t instanceof Date?Uo:zo(t)?Bo:Array.isArray(t)?qo:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?Go:xe)(e,t)}function Je(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}function yr(e){return function(){return e}}function br(e){return+e}var jo=[0,1];function pe(e){return e}function vr(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:yr(isNaN(t)?NaN:.5)}function Ga(e,t){var r;return e>t&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function Ka(e,t,r){var n=e[0],o=e[1],a=t[0],i=t[1];return o<n?(n=vr(o,n),a=r(i,a)):(n=vr(n,o),a=r(a,i)),function(u){return a(n(u))}}function ja(e,t,r){var n=Math.min(e.length,t.length)-1,o=new Array(n),a=new Array(n),i=-1;for(e[n]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++i<n;)o[i]=vr(e[i],e[i+1]),a[i]=r(t[i],t[i+1]);return function(u){var f=fr(e,u,1,n)-1;return a[f](o[f](u))}}function Wo(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Wa(){var e=jo,t=jo,r=ce,n,o,a,i=pe,u,f,s;function p(){var c=Math.min(e.length,t.length);return i!==pe&&(i=Ga(e[0],e[c-1])),u=c>2?ja:Ka,f=s=null,l}function l(c){return c==null||isNaN(c=+c)?a:(f||(f=u(e.map(n),t,r)))(n(i(c)))}return l.invert=function(c){return i(o((s||(s=u(t,e.map(n),xe)))(c)))},l.domain=function(c){return arguments.length?(e=Array.from(c,br),p()):e.slice()},l.range=function(c){return arguments.length?(t=Array.from(c),p()):t.slice()},l.rangeRound=function(c){return t=Array.from(c),r=Je,p()},l.clamp=function(c){return arguments.length?(i=c?!0:pe,p()):i!==pe},l.interpolate=function(c){return arguments.length?(r=c,p()):r},l.unknown=function(c){return arguments.length?(a=c,l):a},function(c,d){return n=c,o=d,p()}}function Mr(){return Wa()(pe,pe)}function Vo(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Ee(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function se(e){return e=Ee(Math.abs(e)),e?e[1]:NaN}function Xo(e,t){return function(r,n){for(var o=r.length,a=[],i=0,u=e[0],f=0;o>0&&u>0&&(f+u+1>n&&(u=Math.max(1,n-f)),a.push(r.substring(o-=u,o+u)),!((f+=u+1)>n));)u=e[i=(i+1)%e.length];return a.reverse().join(t)}}function Qo(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var Va=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function ye(e){if(!(t=Va.exec(e)))throw new Error("invalid format: "+e);var t;return new Nt({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}ye.prototype=Nt.prototype;function Nt(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}Nt.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function Zo(e){e:for(var t=e.length,r=1,n=-1,o;r<t;++r)switch(e[r]){case".":n=o=r;break;case"0":n===0&&(n=r),o=r;break;default:if(!+e[r])break e;n>0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(o+1):e}var Sr;function Yo(e,t){var r=Ee(e,t);if(!r)return e+"";var n=r[0],o=r[1],a=o-(Sr=Math.max(-8,Math.min(8,Math.floor(o/3)))*3)+1,i=n.length;return a===i?n:a>i?n+new Array(a-i+1).join("0"):a>0?n.slice(0,a)+"."+n.slice(a):"0."+new Array(1-a).join("0")+Ee(e,Math.max(0,t+a-1))[0]}function Ar(e,t){var r=Ee(e,t);if(!r)return e+"";var n=r[0],o=r[1];return o<0?"0."+new Array(-o).join("0")+n:n.length>o+1?n.slice(0,o+1)+"."+n.slice(o+1):n+new Array(o-n.length+2).join("0")}var Rr={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:Vo,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>Ar(e*100,t),r:Ar,s:Yo,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function Cr(e){return e}var Jo=Array.prototype.map,ei=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function ti(e){var t=e.grouping===void 0||e.thousands===void 0?Cr:Xo(Jo.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",o=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?Cr:Qo(Jo.call(e.numerals,String)),i=e.percent===void 0?"%":e.percent+"",u=e.minus===void 0?"\u2212":e.minus+"",f=e.nan===void 0?"NaN":e.nan+"";function s(l){l=ye(l);var c=l.fill,d=l.align,g=l.sign,y=l.symbol,b=l.zero,M=l.width,x=l.comma,N=l.precision,D=l.trim,E=l.type;E==="n"?(x=!0,E="g"):Rr[E]||(N===void 0&&(N=12),D=!0,E="g"),(b||c==="0"&&d==="=")&&(b=!0,c="0",d="=");var $=y==="$"?r:y==="#"&&/[boxX]/.test(E)?"0"+E.toLowerCase():"",j=y==="$"?n:/[%p]/.test(E)?i:"",C=Rr[E],w=/[defgprs%]/.test(E);N=N===void 0?6:/[gprs]/.test(E)?Math.max(1,Math.min(21,N)):Math.max(0,Math.min(20,N));function _(R){var L=$,H=j,m,h,W;if(E==="c")H=C(R)+H,R="";else{R=+R;var I=R<0||1/R<0;if(R=isNaN(R)?f:C(Math.abs(R),N),D&&(R=Zo(R)),I&&+R==0&&g!=="+"&&(I=!1),L=(I?g==="("?g:u:g==="-"||g==="("?"":g)+L,H=(E==="s"?ei[8+Sr/3]:"")+H+(I&&g==="("?")":""),w){for(m=-1,h=R.length;++m<h;)if(W=R.charCodeAt(m),48>W||W>57){H=(W===46?o+R.slice(m+1):R.slice(m))+H,R=R.slice(0,m);break}}}x&&!b&&(R=t(R,1/0));var O=L.length+R.length+H.length,G=O<M?new Array(M-O+1).join(c):"";switch(x&&b&&(R=t(G+R,G.length?M-H.length:1/0),G=""),d){case"<":R=L+R+H+G;break;case"=":R=L+G+R+H;break;case"^":R=G.slice(0,O=G.length>>1)+L+R+H+G.slice(O);break;default:R=G+L+R+H;break}return a(R)}return _.toString=function(){return l+""},_}function p(l,c){var d=s((l=ye(l),l.type="f",l)),g=Math.max(-8,Math.min(8,Math.floor(se(c)/3)))*3,y=Math.pow(10,-g),b=ei[8+g/3];return function(M){return d(y*M)+b}}return{format:s,formatPrefix:p}}var kt,Lt,Ht;wr({thousands:",",grouping:[3],currency:["$",""]});function wr(e){return kt=ti(e),Lt=kt.format,Ht=kt.formatPrefix,kt}function Er(e){return Math.max(0,-se(Math.abs(e)))}function Tr(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(se(t)/3)))*3-se(Math.abs(e)))}function Nr(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,se(t)-se(e))+1}function kr(e,t,r,n){var o=cr(e,t,r),a;switch(n=ye(n==null?",f":n),n.type){case"s":{var i=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(a=Tr(o,i))&&(n.precision=a),Ht(n,i)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(a=Nr(o,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=a-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(a=Er(o))&&(n.precision=a-(n.type==="%")*2);break}}return Lt(n)}function Lr(e){var t=e.domain;return e.ticks=function(r){var n=t();return Mt(n[0],n[n.length-1],r==null?10:r)},e.tickFormat=function(r,n){var o=t();return kr(o[0],o[o.length-1],r==null?10:r,n)},e.nice=function(r){r==null&&(r=10);var n=t(),o=0,a=n.length-1,i=n[o],u=n[a],f,s,p=10;for(u<i&&(s=i,i=u,u=s,s=o,o=a,a=s);p-- >0;){if(s=je(i,u,r),s===f)return n[o]=i,n[a]=u,t(n);if(s>0)i=Math.floor(i/s)*s,u=Math.ceil(u/s)*s;else if(s<0)i=Math.ceil(i*s)/s,u=Math.floor(u*s)/s;else break;f=s}return e},e}function et(){var e=Mr();return e.copy=function(){return Wo(e,et())},Ro.apply(e,arguments),Lr(e)}function Xa(){var e=0,t=1,r,n,o,a,i=pe,u=!1,f;function s(l){return l==null||isNaN(l=+l)?f:i(o===0?.5:(l=(a(l)-r)*o,u?Math.max(0,Math.min(1,l)):l))}s.domain=function(l){return arguments.length?([e,t]=l,r=a(e=+e),n=a(t=+t),o=r===n?0:1/(n-r),s):[e,t]},s.clamp=function(l){return arguments.length?(u=!!l,s):u},s.interpolator=function(l){return arguments.length?(i=l,s):i};function p(l){return function(c){var d,g;return arguments.length?([d,g]=c,i=l(d,g),s):[i(0),i(1)]}}return s.range=p(ce),s.rangeRound=p(Je),s.unknown=function(l){return arguments.length?(f=l,s):f},function(l){return a=l,r=l(e),n=l(t),o=r===n?0:1/(n-r),s}}function Qa(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function tt(){var e=Lr(Xa()(pe));return e.copy=function(){return Qa(e,tt())},Co.apply(e,arguments)}var ri="#cecece";var Za=.2126,Ya=.7152,Ja=.0722,Hr=1/12.92;function $r(e){return Math.pow((e+.055)/1.055,2.4)}function eu(e){let t=e.r/255,r=e.g/255,n=e.b/255,o=t<=.03928?t*Hr:$r(t),a=r<=.03928?r*Hr:$r(r),i=n<=.03928?n*Hr:$r(n);return o*Za+a*Ya+i*Ja}var tu=e=>{let t=new Map;if(t.set(e,ri),e.children!=null){let a=tt([0,e.children.length],i=>Ze(360*i,.3,.85));e.children.forEach((i,u)=>{t.set(i,a(u).toString())})}let r=new Map,n=et().domain([0,e.height]).range([.9,.3]),o=a=>{let i=a.ancestors(),u=i.length===1?t.get(i[0]):t.get(i[i.length-2]),f=Ze(u);return f.l=n(a.depth),f};return a=>{if(!r.has(a)){let i=o(a),f=eu(i.rgb())>.19?"#000":"#fff";r.set(a,{backgroundColor:i.toString(),fontColor:f})}return r.get(a)}},ni=tu;var ae=en({}),ru=(e,t,r,n)=>{let o=yn(t.options);console.time("layout create");let a=jt().size([r,n]).paddingOuter(2).paddingTop(20).paddingInner(2).round(!0).tile(Wt);console.timeEnd("layout create"),console.time("rawHierarchy create");let i=Ne(t.tree);console.timeEnd("rawHierarchy create");let u=new Map,f=new Map,s=(c,d)=>{var g,y;return(y=(g=u.get(c))==null?void 0:g[d])!=null?y:0};console.time("rawHierarchy eachAfter cache"),i.eachAfter(c=>{var y;let d=c.data;f.set(d,{nodeUid:Xt("node"),clipUid:Xt("clip")});let g={renderedLength:0,gzipLength:0,brotliLength:0};if(Se(d))for(let b of o)g[b]=d.children.reduce((M,x)=>s(x,b)+M,0);else for(let b of o)g[b]=(y=t.nodeParts[d.uid][b])!=null?y:0;u.set(d,g)}),console.timeEnd("rawHierarchy eachAfter cache");let p=c=>f.get(c);console.time("color");let l=ni(i);console.timeEnd("color"),Jr(A(ae.Provider,{value:{data:t,availableSizeProperties:o,width:r,height:n,getModuleSize:s,getModuleIds:p,getModuleColor:l,rawHierarchy:i,layout:a},children:A(Ao,{})}),e)},nu=ru;return mi(ou);})();
|
|
19
|
+
/*! Bundled license information:
|
|
20
|
+
|
|
21
|
+
bytes/index.js:
|
|
22
|
+
(*!
|
|
23
|
+
* bytes
|
|
24
|
+
* Copyright(c) 2012-2014 TJ Holowaychuk
|
|
25
|
+
* Copyright(c) 2015 Jed Watson
|
|
26
|
+
* MIT Licensed
|
|
27
|
+
*)
|
|
28
|
+
*/
|
|
29
|
+
|
|
30
|
+
/*-->*/
|
|
31
|
+
</script>
|
|
32
|
+
<script>
|
|
33
|
+
/*<!--*/
|
|
34
|
+
const data = {"version":2,"tree":{"name":"root","children":[{"name":"index.js","children":[{"name":"../../../../../../tmp/size-limit-HcE7d-gMJvS-FFYhBfwex/index.js","uid":"78ca4d4c-1"}]}],"isRoot":true},"nodeParts":{"78ca4d4c-1":{"renderedLength":74020,"gzipLength":0,"brotliLength":0,"metaUid":"78ca4d4c-0"}},"nodeMetas":{"78ca4d4c-0":{"id":"../../../../../../tmp/size-limit-HcE7d-gMJvS-FFYhBfwex/index.js","moduleParts":{"index.js":"78ca4d4c-1"},"imported":[{"uid":"78ca4d4c-2"}],"importedBy":[],"isEntry":true},"78ca4d4c-2":{"id":"<runtime>","moduleParts":{},"imported":[],"importedBy":[{"uid":"78ca4d4c-0"}]}},"env":{},"options":{"gzip":false,"brotli":false,"sourcemap":false}};
|
|
35
|
+
|
|
36
|
+
const run = () => {
|
|
37
|
+
const width = window.innerWidth;
|
|
38
|
+
const height = window.innerHeight;
|
|
39
|
+
|
|
40
|
+
const chartNode = document.querySelector("main");
|
|
41
|
+
drawChart.default(chartNode, data, width, height);
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
window.addEventListener('resize', run);
|
|
45
|
+
|
|
46
|
+
document.addEventListener('DOMContentLoaded', run);
|
|
47
|
+
/*-->*/
|
|
48
|
+
</script>
|
|
49
|
+
</body>
|
|
50
|
+
</html>
|
|
51
|
+
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
|
|
2
|
+
<!DOCTYPE html>
|
|
3
|
+
<html lang="en">
|
|
4
|
+
<head>
|
|
5
|
+
<meta charset="UTF-8" />
|
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
7
|
+
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
|
|
8
|
+
<title>EsBuild Visualizer</title>
|
|
9
|
+
<style>
|
|
10
|
+
:root{--font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--background-color: #2b2d42;--text-color: #edf2f4}html{box-sizing:border-box}*,*:before,*:after{box-sizing:inherit}html{background-color:var(--background-color);color:var(--text-color);font-family:var(--font-family)}body{padding:0;margin:0}html,body{height:100%;width:100%;overflow:hidden}body{display:flex;flex-direction:column}svg{vertical-align:middle;width:100%;height:100%;max-height:100vh}main{flex-grow:1;height:100vh;padding:20px}.tooltip{position:absolute;z-index:1070;border:2px solid;border-radius:5px;padding:5px;font-size:.875rem;background-color:var(--background-color);color:var(--text-color)}.tooltip-hidden{visibility:hidden;opacity:0}.sidebar{position:fixed;top:0;left:0;right:0;display:flex;flex-direction:row;font-size:.7rem;align-items:center;margin:0 50px;height:20px}.size-selectors{display:flex;flex-direction:row;align-items:center}.size-selector{display:flex;flex-direction:row;align-items:center;justify-content:center;margin-right:1rem}.size-selector input{margin:0 .3rem 0 0}.filters{flex:1;display:flex;flex-direction:row;align-items:center}.module-filters{display:flex;flex-grow:1}.module-filter{display:flex;flex-direction:row;align-items:center;justify-content:center;flex:1}.module-filter input{flex:1;height:1rem;padding:.01rem;font-size:.7rem;margin-left:.3rem}.module-filter+.module-filter{margin-left:.5rem}.node{cursor:pointer}
|
|
11
|
+
|
|
12
|
+
</style>
|
|
13
|
+
</head>
|
|
14
|
+
<body>
|
|
15
|
+
<main></main>
|
|
16
|
+
<script>
|
|
17
|
+
/*<!--*/
|
|
18
|
+
"use strict";var drawChart=(()=>{var ai=Object.create;var Oe=Object.defineProperty,ui=Object.defineProperties,si=Object.getOwnPropertyDescriptor,li=Object.getOwnPropertyDescriptors,fi=Object.getOwnPropertyNames,Ir=Object.getOwnPropertySymbols,ci=Object.getPrototypeOf,Or=Object.prototype.hasOwnProperty,pi=Object.prototype.propertyIsEnumerable;var Pr=(e,t,r)=>t in e?Oe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,X=(e,t)=>{for(var r in t||(t={}))Or.call(t,r)&&Pr(e,r,t[r]);if(Ir)for(var r of Ir(t))pi.call(t,r)&&Pr(e,r,t[r]);return e},re=(e,t)=>ui(e,li(t));var ve=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),di=(e,t)=>{for(var r in t)Oe(e,r,{get:t[r],enumerable:!0})},Dr=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of fi(t))!Or.call(e,o)&&o!==r&&Oe(e,o,{get:()=>t[o],enumerable:!(n=si(t,o))||n.enumerable});return e};var Fr=(e,t,r)=>(r=e!=null?ai(ci(e)):{},Dr(t||!e||!e.__esModule?Oe(r,"default",{value:e,enumerable:!0}):r,e)),mi=e=>Dr(Oe({},"__esModule",{value:!0}),e);var Ue=ve((ms,Dn)=>{"use strict";var oe="\\\\/",$n=`[^${oe}]`,fe="\\.",Hi="\\+",$i="\\?",mt="\\/",Ii="(?=.)",In="[^/]",Jt=`(?:${mt}|$)`,Pn=`(?:^|${mt})`,er=`${fe}{1,2}${Jt}`,Pi=`(?!${fe})`,Oi=`(?!${Pn}${er})`,Di=`(?!${fe}{0,1}${Jt})`,Fi=`(?!${er})`,Bi=`[^.${mt}]`,zi=`${In}*?`,qi="/",On={DOT_LITERAL:fe,PLUS_LITERAL:Hi,QMARK_LITERAL:$i,SLASH_LITERAL:mt,ONE_CHAR:Ii,QMARK:In,END_ANCHOR:Jt,DOTS_SLASH:er,NO_DOT:Pi,NO_DOTS:Oi,NO_DOT_SLASH:Di,NO_DOTS_SLASH:Fi,QMARK_NO_DOT:Bi,STAR:zi,START_ANCHOR:Pn,SEP:qi},Ui=re(X({},On),{SLASH_LITERAL:`[${oe}]`,QMARK:$n,STAR:`${$n}*?`,DOTS_SLASH:`${fe}{1,2}(?:[${oe}]|$)`,NO_DOT:`(?!${fe})`,NO_DOTS:`(?!(?:^|[${oe}])${fe}{1,2}(?:[${oe}]|$))`,NO_DOT_SLASH:`(?!${fe}{0,1}(?:[${oe}]|$))`,NO_DOTS_SLASH:`(?!${fe}{1,2}(?:[${oe}]|$))`,QMARK_NO_DOT:`[^.${oe}]`,START_ANCHOR:`(?:^|[${oe}])`,END_ANCHOR:`(?:[${oe}]|$)`,SEP:"\\"}),Gi={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"};Dn.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:Gi,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,extglobChars(e){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${e.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(e){return e===!0?Ui:On}}});var Ge=ve(Z=>{"use strict";var{REGEX_BACKSLASH:Ki,REGEX_REMOVE_BACKSLASH:ji,REGEX_SPECIAL_CHARS:Wi,REGEX_SPECIAL_CHARS_GLOBAL:Vi}=Ue();Z.isObject=e=>e!==null&&typeof e=="object"&&!Array.isArray(e);Z.hasRegexChars=e=>Wi.test(e);Z.isRegexChar=e=>e.length===1&&Z.hasRegexChars(e);Z.escapeRegex=e=>e.replace(Vi,"\\$1");Z.toPosixSlashes=e=>e.replace(Ki,"/");Z.isWindows=()=>{if(typeof navigator!="undefined"&&navigator.platform){let e=navigator.platform.toLowerCase();return e==="win32"||e==="windows"}return typeof process!="undefined"&&process.platform?process.platform==="win32":!1};Z.removeBackslashes=e=>e.replace(ji,t=>t==="\\"?"":t);Z.escapeLast=(e,t,r)=>{let n=e.lastIndexOf(t,r);return n===-1?e:e[n-1]==="\\"?Z.escapeLast(e,t,n-1):`${e.slice(0,n)}\\${e.slice(n)}`};Z.removePrefix=(e,t={})=>{let r=e;return r.startsWith("./")&&(r=r.slice(2),t.prefix="./"),r};Z.wrapOutput=(e,t={},r={})=>{let n=r.contains?"":"^",o=r.contains?"":"$",a=`${n}(?:${e})${o}`;return t.negated===!0&&(a=`(?:^(?!${a}).*$)`),a};Z.basename=(e,{windows:t}={})=>{let r=e.split(t?/[\\/]/:"/"),n=r[r.length-1];return n===""?r[r.length-2]:n}});var jn=ve((gs,Kn)=>{"use strict";var Fn=Ge(),{CHAR_ASTERISK:tr,CHAR_AT:Xi,CHAR_BACKWARD_SLASH:Ke,CHAR_COMMA:Qi,CHAR_DOT:rr,CHAR_EXCLAMATION_MARK:nr,CHAR_FORWARD_SLASH:Gn,CHAR_LEFT_CURLY_BRACE:or,CHAR_LEFT_PARENTHESES:ir,CHAR_LEFT_SQUARE_BRACKET:Zi,CHAR_PLUS:Yi,CHAR_QUESTION_MARK:Bn,CHAR_RIGHT_CURLY_BRACE:Ji,CHAR_RIGHT_PARENTHESES:zn,CHAR_RIGHT_SQUARE_BRACKET:ea}=Ue(),qn=e=>e===Gn||e===Ke,Un=e=>{e.isPrefix!==!0&&(e.depth=e.isGlobstar?1/0:1)},ta=(e,t)=>{let r=t||{},n=e.length-1,o=r.parts===!0||r.scanToEnd===!0,a=[],i=[],u=[],f=e,s=-1,p=0,l=0,c=!1,d=!1,g=!1,y=!1,b=!1,M=!1,x=!1,N=!1,D=!1,E=!1,$=0,j,C,w={value:"",depth:0,isGlob:!1},_=()=>s>=n,R=()=>f.charCodeAt(s+1),L=()=>(j=C,f.charCodeAt(++s));for(;s<n;){C=L();let I;if(C===Ke){x=w.backslashes=!0,C=L(),C===or&&(M=!0);continue}if(M===!0||C===or){for($++;_()!==!0&&(C=L());){if(C===Ke){x=w.backslashes=!0,L();continue}if(C===or){$++;continue}if(M!==!0&&C===rr&&(C=L())===rr){if(c=w.isBrace=!0,g=w.isGlob=!0,E=!0,o===!0)continue;break}if(M!==!0&&C===Qi){if(c=w.isBrace=!0,g=w.isGlob=!0,E=!0,o===!0)continue;break}if(C===Ji&&($--,$===0)){M=!1,c=w.isBrace=!0,E=!0;break}}if(o===!0)continue;break}if(C===Gn){if(a.push(s),i.push(w),w={value:"",depth:0,isGlob:!1},E===!0)continue;if(j===rr&&s===p+1){p+=2;continue}l=s+1;continue}if(r.noext!==!0&&(C===Yi||C===Xi||C===tr||C===Bn||C===nr)===!0&&R()===ir){if(g=w.isGlob=!0,y=w.isExtglob=!0,E=!0,C===nr&&s===p&&(D=!0),o===!0){for(;_()!==!0&&(C=L());){if(C===Ke){x=w.backslashes=!0,C=L();continue}if(C===zn){g=w.isGlob=!0,E=!0;break}}continue}break}if(C===tr){if(j===tr&&(b=w.isGlobstar=!0),g=w.isGlob=!0,E=!0,o===!0)continue;break}if(C===Bn){if(g=w.isGlob=!0,E=!0,o===!0)continue;break}if(C===Zi){for(;_()!==!0&&(I=L());){if(I===Ke){x=w.backslashes=!0,L();continue}if(I===ea){d=w.isBracket=!0,g=w.isGlob=!0,E=!0;break}}if(o===!0)continue;break}if(r.nonegate!==!0&&C===nr&&s===p){N=w.negated=!0,p++;continue}if(r.noparen!==!0&&C===ir){if(g=w.isGlob=!0,o===!0){for(;_()!==!0&&(C=L());){if(C===ir){x=w.backslashes=!0,C=L();continue}if(C===zn){E=!0;break}}continue}break}if(g===!0){if(E=!0,o===!0)continue;break}}r.noext===!0&&(y=!1,g=!1);let H=f,m="",h="";p>0&&(m=f.slice(0,p),f=f.slice(p),l-=p),H&&g===!0&&l>0?(H=f.slice(0,l),h=f.slice(l)):g===!0?(H="",h=f):H=f,H&&H!==""&&H!=="/"&&H!==f&&qn(H.charCodeAt(H.length-1))&&(H=H.slice(0,-1)),r.unescape===!0&&(h&&(h=Fn.removeBackslashes(h)),H&&x===!0&&(H=Fn.removeBackslashes(H)));let W={prefix:m,input:e,start:p,base:H,glob:h,isBrace:c,isBracket:d,isGlob:g,isExtglob:y,isGlobstar:b,negated:N,negatedExtglob:D};if(r.tokens===!0&&(W.maxDepth=0,qn(C)||i.push(w),W.tokens=i),r.parts===!0||r.tokens===!0){let I;for(let O=0;O<a.length;O++){let G=I?I+1:p,te=a[O],de=e.slice(G,te);r.tokens&&(O===0&&p!==0?(i[O].isPrefix=!0,i[O].value=m):i[O].value=de,Un(i[O]),W.maxDepth+=i[O].depth),(O!==0||de!=="")&&u.push(de),I=te}if(I&&I+1<e.length){let O=e.slice(I+1);u.push(O),r.tokens&&(i[i.length-1].value=O,Un(i[i.length-1]),W.maxDepth+=i[i.length-1].depth)}W.slashes=a,W.parts=u}return W};Kn.exports=ta});var Xn=ve((xs,Vn)=>{"use strict";var ht=Ue(),ie=Ge(),{MAX_LENGTH:_t,POSIX_REGEX_SOURCE:ra,REGEX_NON_SPECIAL_CHARS:na,REGEX_SPECIAL_CHARS_BACKREF:oa,REPLACEMENTS:Wn}=ht,ia=(e,t)=>{if(typeof t.expandRange=="function")return t.expandRange(...e,t);e.sort();let r=`[${e.join("-")}]`;try{new RegExp(r)}catch(n){return e.map(o=>ie.escapeRegex(o)).join("..")}return r},He=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,ar=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");e=Wn[e]||e;let r=X({},t),n=typeof r.maxLength=="number"?Math.min(_t,r.maxLength):_t,o=e.length;if(o>n)throw new SyntaxError(`Input length: ${o}, exceeds maximum allowed length: ${n}`);let a={type:"bos",value:"",output:r.prepend||""},i=[a],u=r.capture?"":"?:",f=ht.globChars(r.windows),s=ht.extglobChars(f),{DOT_LITERAL:p,PLUS_LITERAL:l,SLASH_LITERAL:c,ONE_CHAR:d,DOTS_SLASH:g,NO_DOT:y,NO_DOT_SLASH:b,NO_DOTS_SLASH:M,QMARK:x,QMARK_NO_DOT:N,STAR:D,START_ANCHOR:E}=f,$=S=>`(${u}(?:(?!${E}${S.dot?g:p}).)*?)`,j=r.dot?"":y,C=r.dot?x:N,w=r.bash===!0?$(r):D;r.capture&&(w=`(${w})`),typeof r.noext=="boolean"&&(r.noextglob=r.noext);let _={input:e,index:-1,start:0,dot:r.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:i};e=ie.removePrefix(e,_),o=e.length;let R=[],L=[],H=[],m=a,h,W=()=>_.index===o-1,I=_.peek=(S=1)=>e[_.index+S],O=_.advance=()=>e[++_.index]||"",G=()=>e.slice(_.index+1),te=(S="",F=0)=>{_.consumed+=S,_.index+=F},de=S=>{_.output+=S.output!=null?S.output:S.value,te(S.value)},oi=()=>{let S=1;for(;I()==="!"&&(I(2)!=="("||I(3)==="?");)O(),_.start++,S++;return S%2===0?!1:(_.negated=!0,_.start++,!0)},rt=S=>{_[S]++,H.push(S)},be=S=>{_[S]--,H.pop()},k=S=>{if(m.type==="globstar"){let F=_.braces>0&&(S.type==="comma"||S.type==="brace"),v=S.extglob===!0||R.length&&(S.type==="pipe"||S.type==="paren");S.type!=="slash"&&S.type!=="paren"&&!F&&!v&&(_.output=_.output.slice(0,-m.output.length),m.type="star",m.value="*",m.output=w,_.output+=m.output)}if(R.length&&S.type!=="paren"&&(R[R.length-1].inner+=S.value),(S.value||S.output)&&de(S),m&&m.type==="text"&&S.type==="text"){m.output=(m.output||m.value)+S.value,m.value+=S.value;return}S.prev=m,i.push(S),m=S},nt=(S,F)=>{let v=re(X({},s[F]),{conditions:1,inner:""});v.prev=m,v.parens=_.parens,v.output=_.output;let T=(r.capture?"(":"")+v.open;rt("parens"),k({type:S,value:F,output:_.output?"":d}),k({type:"paren",extglob:!0,value:O(),output:T}),R.push(v)},ii=S=>{let F=S.close+(r.capture?")":""),v;if(S.type==="negate"){let T=w;if(S.inner&&S.inner.length>1&&S.inner.includes("/")&&(T=$(r)),(T!==w||W()||/^\)+$/.test(G()))&&(F=S.close=`)$))${T}`),S.inner.includes("*")&&(v=G())&&/^\.[^\\/.]+$/.test(v)){let z=ar(v,re(X({},t),{fastpaths:!1})).output;F=S.close=`)${z})${T})`}S.prev.type==="bos"&&(_.negatedExtglob=!0)}k({type:"paren",extglob:!0,value:h,output:F}),be("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(e)){let S=!1,F=e.replace(oa,(v,T,z,V,K,$t)=>V==="\\"?(S=!0,v):V==="?"?T?T+V+(K?x.repeat(K.length):""):$t===0?C+(K?x.repeat(K.length):""):x.repeat(z.length):V==="."?p.repeat(z.length):V==="*"?T?T+V+(K?w:""):w:T?v:`\\${v}`);return S===!0&&(r.unescape===!0?F=F.replace(/\\/g,""):F=F.replace(/\\+/g,v=>v.length%2===0?"\\\\":v?"\\":"")),F===e&&r.contains===!0?(_.output=e,_):(_.output=ie.wrapOutput(F,_,t),_)}for(;!W();){if(h=O(),h==="\0")continue;if(h==="\\"){let v=I();if(v==="/"&&r.bash!==!0||v==="."||v===";")continue;if(!v){h+="\\",k({type:"text",value:h});continue}let T=/^\\+/.exec(G()),z=0;if(T&&T[0].length>2&&(z=T[0].length,_.index+=z,z%2!==0&&(h+="\\")),r.unescape===!0?h=O():h+=O(),_.brackets===0){k({type:"text",value:h});continue}}if(_.brackets>0&&(h!=="]"||m.value==="["||m.value==="[^")){if(r.posix!==!1&&h===":"){let v=m.value.slice(1);if(v.includes("[")&&(m.posix=!0,v.includes(":"))){let T=m.value.lastIndexOf("["),z=m.value.slice(0,T),V=m.value.slice(T+2),K=ra[V];if(K){m.value=z+K,_.backtrack=!0,O(),!a.output&&i.indexOf(m)===1&&(a.output=d);continue}}}(h==="["&&I()!==":"||h==="-"&&I()==="]")&&(h=`\\${h}`),h==="]"&&(m.value==="["||m.value==="[^")&&(h=`\\${h}`),r.posix===!0&&h==="!"&&m.value==="["&&(h="^"),m.value+=h,de({value:h});continue}if(_.quotes===1&&h!=='"'){h=ie.escapeRegex(h),m.value+=h,de({value:h});continue}if(h==='"'){_.quotes=_.quotes===1?0:1,r.keepQuotes===!0&&k({type:"text",value:h});continue}if(h==="("){rt("parens"),k({type:"paren",value:h});continue}if(h===")"){if(_.parens===0&&r.strictBrackets===!0)throw new SyntaxError(He("opening","("));let v=R[R.length-1];if(v&&_.parens===v.parens+1){ii(R.pop());continue}k({type:"paren",value:h,output:_.parens?")":"\\)"}),be("parens");continue}if(h==="["){if(r.nobracket===!0||!G().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(He("closing","]"));h=`\\${h}`}else rt("brackets");k({type:"bracket",value:h});continue}if(h==="]"){if(r.nobracket===!0||m&&m.type==="bracket"&&m.value.length===1){k({type:"text",value:h,output:`\\${h}`});continue}if(_.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(He("opening","["));k({type:"text",value:h,output:`\\${h}`});continue}be("brackets");let v=m.value.slice(1);if(m.posix!==!0&&v[0]==="^"&&!v.includes("/")&&(h=`/${h}`),m.value+=h,de({value:h}),r.literalBrackets===!1||ie.hasRegexChars(v))continue;let T=ie.escapeRegex(m.value);if(_.output=_.output.slice(0,-m.value.length),r.literalBrackets===!0){_.output+=T,m.value=T;continue}m.value=`(${u}${T}|${m.value})`,_.output+=m.value;continue}if(h==="{"&&r.nobrace!==!0){rt("braces");let v={type:"brace",value:h,output:"(",outputIndex:_.output.length,tokensIndex:_.tokens.length};L.push(v),k(v);continue}if(h==="}"){let v=L[L.length-1];if(r.nobrace===!0||!v){k({type:"text",value:h,output:h});continue}let T=")";if(v.dots===!0){let z=i.slice(),V=[];for(let K=z.length-1;K>=0&&(i.pop(),z[K].type!=="brace");K--)z[K].type!=="dots"&&V.unshift(z[K].value);T=ia(V,r),_.backtrack=!0}if(v.comma!==!0&&v.dots!==!0){let z=_.output.slice(0,v.outputIndex),V=_.tokens.slice(v.tokensIndex);v.value=v.output="\\{",h=T="\\}",_.output=z;for(let K of V)_.output+=K.output||K.value}k({type:"brace",value:h,output:T}),be("braces"),L.pop();continue}if(h==="|"){R.length>0&&R[R.length-1].conditions++,k({type:"text",value:h});continue}if(h===","){let v=h,T=L[L.length-1];T&&H[H.length-1]==="braces"&&(T.comma=!0,v="|"),k({type:"comma",value:h,output:v});continue}if(h==="/"){if(m.type==="dot"&&_.index===_.start+1){_.start=_.index+1,_.consumed="",_.output="",i.pop(),m=a;continue}k({type:"slash",value:h,output:c});continue}if(h==="."){if(_.braces>0&&m.type==="dot"){m.value==="."&&(m.output=p);let v=L[L.length-1];m.type="dots",m.output+=h,m.value+=h,v.dots=!0;continue}if(_.braces+_.parens===0&&m.type!=="bos"&&m.type!=="slash"){k({type:"text",value:h,output:p});continue}k({type:"dot",value:h,output:p});continue}if(h==="?"){if(!(m&&m.value==="(")&&r.noextglob!==!0&&I()==="("&&I(2)!=="?"){nt("qmark",h);continue}if(m&&m.type==="paren"){let T=I(),z=h;(m.value==="("&&!/[!=<:]/.test(T)||T==="<"&&!/<([!=]|\w+>)/.test(G()))&&(z=`\\${h}`),k({type:"text",value:h,output:z});continue}if(r.dot!==!0&&(m.type==="slash"||m.type==="bos")){k({type:"qmark",value:h,output:N});continue}k({type:"qmark",value:h,output:x});continue}if(h==="!"){if(r.noextglob!==!0&&I()==="("&&(I(2)!=="?"||!/[!=<:]/.test(I(3)))){nt("negate",h);continue}if(r.nonegate!==!0&&_.index===0){oi();continue}}if(h==="+"){if(r.noextglob!==!0&&I()==="("&&I(2)!=="?"){nt("plus",h);continue}if(m&&m.value==="("||r.regex===!1){k({type:"plus",value:h,output:l});continue}if(m&&(m.type==="bracket"||m.type==="paren"||m.type==="brace")||_.parens>0){k({type:"plus",value:h});continue}k({type:"plus",value:l});continue}if(h==="@"){if(r.noextglob!==!0&&I()==="("&&I(2)!=="?"){k({type:"at",extglob:!0,value:h,output:""});continue}k({type:"text",value:h});continue}if(h!=="*"){(h==="$"||h==="^")&&(h=`\\${h}`);let v=na.exec(G());v&&(h+=v[0],_.index+=v[0].length),k({type:"text",value:h});continue}if(m&&(m.type==="globstar"||m.star===!0)){m.type="star",m.star=!0,m.value+=h,m.output=w,_.backtrack=!0,_.globstar=!0,te(h);continue}let S=G();if(r.noextglob!==!0&&/^\([^?]/.test(S)){nt("star",h);continue}if(m.type==="star"){if(r.noglobstar===!0){te(h);continue}let v=m.prev,T=v.prev,z=v.type==="slash"||v.type==="bos",V=T&&(T.type==="star"||T.type==="globstar");if(r.bash===!0&&(!z||S[0]&&S[0]!=="/")){k({type:"star",value:h,output:""});continue}let K=_.braces>0&&(v.type==="comma"||v.type==="brace"),$t=R.length&&(v.type==="pipe"||v.type==="paren");if(!z&&v.type!=="paren"&&!K&&!$t){k({type:"star",value:h,output:""});continue}for(;S.slice(0,3)==="/**";){let ot=e[_.index+4];if(ot&&ot!=="/")break;S=S.slice(3),te("/**",3)}if(v.type==="bos"&&W()){m.type="globstar",m.value+=h,m.output=$(r),_.output=m.output,_.globstar=!0,te(h);continue}if(v.type==="slash"&&v.prev.type!=="bos"&&!V&&W()){_.output=_.output.slice(0,-(v.output+m.output).length),v.output=`(?:${v.output}`,m.type="globstar",m.output=$(r)+(r.strictSlashes?")":"|$)"),m.value+=h,_.globstar=!0,_.output+=v.output+m.output,te(h);continue}if(v.type==="slash"&&v.prev.type!=="bos"&&S[0]==="/"){let ot=S[1]!==void 0?"|$":"";_.output=_.output.slice(0,-(v.output+m.output).length),v.output=`(?:${v.output}`,m.type="globstar",m.output=`${$(r)}${c}|${c}${ot})`,m.value+=h,_.output+=v.output+m.output,_.globstar=!0,te(h+O()),k({type:"slash",value:"/",output:""});continue}if(v.type==="bos"&&S[0]==="/"){m.type="globstar",m.value+=h,m.output=`(?:^|${c}|${$(r)}${c})`,_.output=m.output,_.globstar=!0,te(h+O()),k({type:"slash",value:"/",output:""});continue}_.output=_.output.slice(0,-m.output.length),m.type="globstar",m.output=$(r),m.value+=h,_.output+=m.output,_.globstar=!0,te(h);continue}let F={type:"star",value:h,output:w};if(r.bash===!0){F.output=".*?",(m.type==="bos"||m.type==="slash")&&(F.output=j+F.output),k(F);continue}if(m&&(m.type==="bracket"||m.type==="paren")&&r.regex===!0){F.output=h,k(F);continue}(_.index===_.start||m.type==="slash"||m.type==="dot")&&(m.type==="dot"?(_.output+=b,m.output+=b):r.dot===!0?(_.output+=M,m.output+=M):(_.output+=j,m.output+=j),I()!=="*"&&(_.output+=d,m.output+=d)),k(F)}for(;_.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(He("closing","]"));_.output=ie.escapeLast(_.output,"["),be("brackets")}for(;_.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(He("closing",")"));_.output=ie.escapeLast(_.output,"("),be("parens")}for(;_.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(He("closing","}"));_.output=ie.escapeLast(_.output,"{"),be("braces")}if(r.strictSlashes!==!0&&(m.type==="star"||m.type==="bracket")&&k({type:"maybe_slash",value:"",output:`${c}?`}),_.backtrack===!0){_.output="";for(let S of _.tokens)_.output+=S.output!=null?S.output:S.value,S.suffix&&(_.output+=S.suffix)}return _};ar.fastpaths=(e,t)=>{let r=X({},t),n=typeof r.maxLength=="number"?Math.min(_t,r.maxLength):_t,o=e.length;if(o>n)throw new SyntaxError(`Input length: ${o}, exceeds maximum allowed length: ${n}`);e=Wn[e]||e;let{DOT_LITERAL:a,SLASH_LITERAL:i,ONE_CHAR:u,DOTS_SLASH:f,NO_DOT:s,NO_DOTS:p,NO_DOTS_SLASH:l,STAR:c,START_ANCHOR:d}=ht.globChars(r.windows),g=r.dot?p:s,y=r.dot?l:s,b=r.capture?"":"?:",M={negated:!1,prefix:""},x=r.bash===!0?".*?":c;r.capture&&(x=`(${x})`);let N=j=>j.noglobstar===!0?x:`(${b}(?:(?!${d}${j.dot?f:a}).)*?)`,D=j=>{switch(j){case"*":return`${g}${u}${x}`;case".*":return`${a}${u}${x}`;case"*.*":return`${g}${x}${a}${u}${x}`;case"*/*":return`${g}${x}${i}${u}${y}${x}`;case"**":return g+N(r);case"**/*":return`(?:${g}${N(r)}${i})?${y}${u}${x}`;case"**/*.*":return`(?:${g}${N(r)}${i})?${y}${x}${a}${u}${x}`;case"**/.*":return`(?:${g}${N(r)}${i})?${a}${u}${x}`;default:{let C=/^(.*?)\.(\w+)$/.exec(j);if(!C)return;let w=D(C[1]);return w?w+a+C[2]:void 0}}},E=ie.removePrefix(e,M),$=D(E);return $&&r.strictSlashes!==!0&&($+=`${i}?`),$};Vn.exports=ar});var Yn=ve((bs,Zn)=>{"use strict";var aa=jn(),ur=Xn(),Qn=Ge(),ua=Ue(),sa=e=>e&&typeof e=="object"&&!Array.isArray(e),U=(e,t,r=!1)=>{if(Array.isArray(e)){let p=e.map(c=>U(c,t,r));return c=>{for(let d of p){let g=d(c);if(g)return g}return!1}}let n=sa(e)&&e.tokens&&e.input;if(e===""||typeof e!="string"&&!n)throw new TypeError("Expected pattern to be a non-empty string");let o=t||{},a=o.windows,i=n?U.compileRe(e,t):U.makeRe(e,t,!1,!0),u=i.state;delete i.state;let f=()=>!1;if(o.ignore){let p=re(X({},t),{ignore:null,onMatch:null,onResult:null});f=U(o.ignore,p,r)}let s=(p,l=!1)=>{let{isMatch:c,match:d,output:g}=U.test(p,i,t,{glob:e,posix:a}),y={glob:e,state:u,regex:i,posix:a,input:p,output:g,match:d,isMatch:c};return typeof o.onResult=="function"&&o.onResult(y),c===!1?(y.isMatch=!1,l?y:!1):f(p)?(typeof o.onIgnore=="function"&&o.onIgnore(y),y.isMatch=!1,l?y:!1):(typeof o.onMatch=="function"&&o.onMatch(y),l?y:!0)};return r&&(s.state=u),s};U.test=(e,t,r,{glob:n,posix:o}={})=>{if(typeof e!="string")throw new TypeError("Expected input to be a string");if(e==="")return{isMatch:!1,output:""};let a=r||{},i=a.format||(o?Qn.toPosixSlashes:null),u=e===n,f=u&&i?i(e):e;return u===!1&&(f=i?i(e):e,u=f===n),(u===!1||a.capture===!0)&&(a.matchBase===!0||a.basename===!0?u=U.matchBase(e,t,r,o):u=t.exec(f)),{isMatch:!!u,match:u,output:f}};U.matchBase=(e,t,r)=>(t instanceof RegExp?t:U.makeRe(t,r)).test(Qn.basename(e));U.isMatch=(e,t,r)=>U(t,r)(e);U.parse=(e,t)=>Array.isArray(e)?e.map(r=>U.parse(r,t)):ur(e,re(X({},t),{fastpaths:!1}));U.scan=(e,t)=>aa(e,t);U.compileRe=(e,t,r=!1,n=!1)=>{if(r===!0)return e.output;let o=t||{},a=o.contains?"":"^",i=o.contains?"":"$",u=`${a}(?:${e.output})${i}`;e&&e.negated===!0&&(u=`^(?!${u}).*$`);let f=U.toRegex(u,t);return n===!0&&(f.state=e),f};U.makeRe=(e,t={},r=!1,n=!1)=>{if(!e||typeof e!="string")throw new TypeError("Expected a non-empty string");let o={negated:!1,fastpaths:!0};return t.fastpaths!==!1&&(e[0]==="."||e[0]==="*")&&(o.output=ur.fastpaths(e,t)),o.output||(o=ur(e,t)),U.compileRe(o,t,r,n)};U.toRegex=(e,t)=>{try{let r=t||{};return new RegExp(e,r.flags||(r.nocase?"i":""))}catch(r){if(t&&t.debug===!0)throw r;return/$^/}};U.constants=ua;Zn.exports=U});var ro=ve((Ms,to)=>{"use strict";var Jn=Yn(),la=Ge();function eo(e,t,r=!1){return t&&(t.windows===null||t.windows===void 0)&&(t=re(X({},t),{windows:la.isWindows()})),Jn(e,t,r)}Object.assign(eo,Jn);to.exports=eo});var bo=ve((ml,St)=>{"use strict";St.exports=Aa;St.exports.format=xo;St.exports.parse=yo;var va=/\B(?=(\d{3})+(?!\d))/g,Ma=/(?:\.0*|(\.[^0]+)0+)$/,_e={b:1,kb:1024,mb:1<<20,gb:1<<30,tb:Math.pow(1024,4),pb:Math.pow(1024,5)},Sa=/^((-|\+)?(\d+(?:\.\d+)?)) *(kb|mb|gb|tb|pb)$/i;function Aa(e,t){return typeof e=="string"?yo(e):typeof e=="number"?xo(e,t):null}function xo(e,t){if(!Number.isFinite(e))return null;var r=Math.abs(e),n=t&&t.thousandsSeparator||"",o=t&&t.unitSeparator||"",a=t&&t.decimalPlaces!==void 0?t.decimalPlaces:2,i=!!(t&&t.fixedDecimals),u=t&&t.unit||"";(!u||!_e[u.toLowerCase()])&&(r>=_e.pb?u="PB":r>=_e.tb?u="TB":r>=_e.gb?u="GB":r>=_e.mb?u="MB":r>=_e.kb?u="KB":u="B");var f=e/_e[u.toLowerCase()],s=f.toFixed(a);return i||(s=s.replace(Ma,"$1")),n&&(s=s.split(".").map(function(p,l){return l===0?p.replace(va,n):p}).join(".")),s+o+u}function yo(e){if(typeof e=="number"&&!isNaN(e))return e;if(typeof e!="string")return null;var t=Sa.exec(e),r,n="b";return t?(r=parseFloat(t[1]),n=t[4].toLowerCase()):(r=parseInt(e,10),n="b"),isNaN(r)?null:Math.floor(_e[n]*r)}});var ou={};di(ou,{StaticContext:()=>ae,default:()=>nu});var lt,P,Ur,hi,Me,Br,Gr,It,Kr,Ft,Pt,Ot,jr,De={},Wr=[],_i=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Bt=Array.isArray;function me(e,t){for(var r in t)e[r]=t[r];return e}function zt(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function gi(e,t,r){var n,o,a,i={};for(a in t)a=="key"?n=t[a]:a=="ref"?o=t[a]:i[a]=t[a];if(arguments.length>2&&(i.children=arguments.length>3?lt.call(arguments,2):r),typeof e=="function"&&e.defaultProps!=null)for(a in e.defaultProps)i[a]===void 0&&(i[a]=e.defaultProps[a]);return at(e,i,n,o,null)}function at(e,t,r,n,o){var a={type:e,props:t,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:o==null?++Ur:o,__i:-1,__u:0};return o==null&&P.vnode!=null&&P.vnode(a),a}function J(e){return e.children}function ut(e,t){this.props=e,this.context=t}function Te(e,t){if(t==null)return e.__?Te(e.__,e.__i+1):null;for(var r;t<e.__k.length;t++)if((r=e.__k[t])!=null&&r.__e!=null)return r.__e;return typeof e.type=="function"?Te(e):null}function Vr(e){var t,r;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((r=e.__k[t])!=null&&r.__e!=null){e.__e=e.__c.base=r.__e;break}return Vr(e)}}function Dt(e){(!e.__d&&(e.__d=!0)&&Me.push(e)&&!st.__r++||Br!==P.debounceRendering)&&((Br=P.debounceRendering)||Gr)(st)}function st(){var e,t,r,n,o,a,i,u;for(Me.sort(It);e=Me.shift();)e.__d&&(t=Me.length,n=void 0,a=(o=(r=e).__v).__e,i=[],u=[],r.__P&&((n=me({},o)).__v=o.__v+1,P.vnode&&P.vnode(n),qt(r.__P,n,o,r.__n,r.__P.namespaceURI,32&o.__u?[a]:null,i,a==null?Te(o):a,!!(32&o.__u),u),n.__v=o.__v,n.__.__k[n.__i]=n,Zr(i,n,u),n.__e!=a&&Vr(n)),Me.length>t&&Me.sort(It));st.__r=0}function Xr(e,t,r,n,o,a,i,u,f,s,p){var l,c,d,g,y,b,M=n&&n.__k||Wr,x=t.length;for(f=xi(r,t,M,f,x),l=0;l<x;l++)(d=r.__k[l])!=null&&(c=d.__i===-1?De:M[d.__i]||De,d.__i=l,b=qt(e,d,c,o,a,i,u,f,s,p),g=d.__e,d.ref&&c.ref!=d.ref&&(c.ref&&Ut(c.ref,null,d),p.push(d.ref,d.__c||g,d)),y==null&&g!=null&&(y=g),4&d.__u||c.__k===d.__k?f=Qr(d,f,e):typeof d.type=="function"&&b!==void 0?f=b:g&&(f=g.nextSibling),d.__u&=-7);return r.__e=y,f}function xi(e,t,r,n,o){var a,i,u,f,s,p=r.length,l=p,c=0;for(e.__k=new Array(o),a=0;a<o;a++)(i=t[a])!=null&&typeof i!="boolean"&&typeof i!="function"?(f=a+c,(i=e.__k[a]=typeof i=="string"||typeof i=="number"||typeof i=="bigint"||i.constructor==String?at(null,i,null,null,null):Bt(i)?at(J,{children:i},null,null,null):i.constructor===void 0&&i.__b>0?at(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):i).__=e,i.__b=e.__b+1,u=null,(s=i.__i=yi(i,r,f,l))!==-1&&(l--,(u=r[s])&&(u.__u|=2)),u==null||u.__v===null?(s==-1&&c--,typeof i.type!="function"&&(i.__u|=4)):s!=f&&(s==f-1?c--:s==f+1?c++:(s>f?c--:c++,i.__u|=4))):e.__k[a]=null;if(l)for(a=0;a<p;a++)(u=r[a])!=null&&!(2&u.__u)&&(u.__e==n&&(n=Te(u)),Yr(u,u));return n}function Qr(e,t,r){var n,o;if(typeof e.type=="function"){for(n=e.__k,o=0;n&&o<n.length;o++)n[o]&&(n[o].__=e,t=Qr(n[o],t,r));return t}e.__e!=t&&(t&&e.type&&!r.contains(t)&&(t=Te(e)),r.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function yi(e,t,r,n){var o,a,i=e.key,u=e.type,f=t[r];if(f===null||f&&i==f.key&&u===f.type&&!(2&f.__u))return r;if(n>(f!=null&&!(2&f.__u)?1:0))for(o=r-1,a=r+1;o>=0||a<t.length;){if(o>=0){if((f=t[o])&&!(2&f.__u)&&i==f.key&&u===f.type)return o;o--}if(a<t.length){if((f=t[a])&&!(2&f.__u)&&i==f.key&&u===f.type)return a;a++}}return-1}function zr(e,t,r){t[0]=="-"?e.setProperty(t,r==null?"":r):e[t]=r==null?"":typeof r!="number"||_i.test(t)?r:r+"px"}function it(e,t,r,n,o){var a;e:if(t=="style")if(typeof r=="string")e.style.cssText=r;else{if(typeof n=="string"&&(e.style.cssText=n=""),n)for(t in n)r&&t in r||zr(e.style,t,"");if(r)for(t in r)n&&r[t]===n[t]||zr(e.style,t,r[t])}else if(t[0]=="o"&&t[1]=="n")a=t!=(t=t.replace(Kr,"$1")),t=t.toLowerCase()in e||t=="onFocusOut"||t=="onFocusIn"?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+a]=r,r?n?r.u=n.u:(r.u=Ft,e.addEventListener(t,a?Ot:Pt,a)):e.removeEventListener(t,a?Ot:Pt,a);else{if(o=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=r==null?"":r;break e}catch(i){}typeof r=="function"||(r==null||r===!1&&t[4]!="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&r==1?"":r))}}function qr(e){return function(t){if(this.l){var r=this.l[t.type+e];if(t.t==null)t.t=Ft++;else if(t.t<r.u)return;return r(P.event?P.event(t):t)}}}function qt(e,t,r,n,o,a,i,u,f,s){var p,l,c,d,g,y,b,M,x,N,D,E,$,j,C,w,_,R=t.type;if(t.constructor!==void 0)return null;128&r.__u&&(f=!!(32&r.__u),a=[u=t.__e=r.__e]),(p=P.__b)&&p(t);e:if(typeof R=="function")try{if(M=t.props,x="prototype"in R&&R.prototype.render,N=(p=R.contextType)&&n[p.__c],D=p?N?N.props.value:p.__:n,r.__c?b=(l=t.__c=r.__c).__=l.__E:(x?t.__c=l=new R(M,D):(t.__c=l=new ut(M,D),l.constructor=R,l.render=vi),N&&N.sub(l),l.props=M,l.state||(l.state={}),l.context=D,l.__n=n,c=l.__d=!0,l.__h=[],l._sb=[]),x&&l.__s==null&&(l.__s=l.state),x&&R.getDerivedStateFromProps!=null&&(l.__s==l.state&&(l.__s=me({},l.__s)),me(l.__s,R.getDerivedStateFromProps(M,l.__s))),d=l.props,g=l.state,l.__v=t,c)x&&R.getDerivedStateFromProps==null&&l.componentWillMount!=null&&l.componentWillMount(),x&&l.componentDidMount!=null&&l.__h.push(l.componentDidMount);else{if(x&&R.getDerivedStateFromProps==null&&M!==d&&l.componentWillReceiveProps!=null&&l.componentWillReceiveProps(M,D),!l.__e&&(l.shouldComponentUpdate!=null&&l.shouldComponentUpdate(M,l.__s,D)===!1||t.__v==r.__v)){for(t.__v!=r.__v&&(l.props=M,l.state=l.__s,l.__d=!1),t.__e=r.__e,t.__k=r.__k,t.__k.some(function(L){L&&(L.__=t)}),E=0;E<l._sb.length;E++)l.__h.push(l._sb[E]);l._sb=[],l.__h.length&&i.push(l);break e}l.componentWillUpdate!=null&&l.componentWillUpdate(M,l.__s,D),x&&l.componentDidUpdate!=null&&l.__h.push(function(){l.componentDidUpdate(d,g,y)})}if(l.context=D,l.props=M,l.__P=e,l.__e=!1,$=P.__r,j=0,x){for(l.state=l.__s,l.__d=!1,$&&$(t),p=l.render(l.props,l.state,l.context),C=0;C<l._sb.length;C++)l.__h.push(l._sb[C]);l._sb=[]}else do l.__d=!1,$&&$(t),p=l.render(l.props,l.state,l.context),l.state=l.__s;while(l.__d&&++j<25);l.state=l.__s,l.getChildContext!=null&&(n=me(me({},n),l.getChildContext())),x&&!c&&l.getSnapshotBeforeUpdate!=null&&(y=l.getSnapshotBeforeUpdate(d,g)),u=Xr(e,Bt(w=p!=null&&p.type===J&&p.key==null?p.props.children:p)?w:[w],t,r,n,o,a,i,u,f,s),l.base=t.__e,t.__u&=-161,l.__h.length&&i.push(l),b&&(l.__E=l.__=null)}catch(L){if(t.__v=null,f||a!=null)if(L.then){for(t.__u|=f?160:128;u&&u.nodeType==8&&u.nextSibling;)u=u.nextSibling;a[a.indexOf(u)]=null,t.__e=u}else for(_=a.length;_--;)zt(a[_]);else t.__e=r.__e,t.__k=r.__k;P.__e(L,t,r)}else a==null&&t.__v==r.__v?(t.__k=r.__k,t.__e=r.__e):u=t.__e=bi(r.__e,t,r,n,o,a,i,f,s);return(p=P.diffed)&&p(t),128&t.__u?void 0:u}function Zr(e,t,r){for(var n=0;n<r.length;n++)Ut(r[n],r[++n],r[++n]);P.__c&&P.__c(t,e),e.some(function(o){try{e=o.__h,o.__h=[],e.some(function(a){a.call(o)})}catch(a){P.__e(a,o.__v)}})}function bi(e,t,r,n,o,a,i,u,f){var s,p,l,c,d,g,y,b=r.props,M=t.props,x=t.type;if(x=="svg"?o="http://www.w3.org/2000/svg":x=="math"?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),a!=null){for(s=0;s<a.length;s++)if((d=a[s])&&"setAttribute"in d==!!x&&(x?d.localName==x:d.nodeType==3)){e=d,a[s]=null;break}}if(e==null){if(x==null)return document.createTextNode(M);e=document.createElementNS(o,x,M.is&&M),u&&(P.__m&&P.__m(t,a),u=!1),a=null}if(x===null)b===M||u&&e.data===M||(e.data=M);else{if(a=a&<.call(e.childNodes),b=r.props||De,!u&&a!=null)for(b={},s=0;s<e.attributes.length;s++)b[(d=e.attributes[s]).name]=d.value;for(s in b)if(d=b[s],s!="children"){if(s=="dangerouslySetInnerHTML")l=d;else if(!(s in M)){if(s=="value"&&"defaultValue"in M||s=="checked"&&"defaultChecked"in M)continue;it(e,s,null,d,o)}}for(s in M)d=M[s],s=="children"?c=d:s=="dangerouslySetInnerHTML"?p=d:s=="value"?g=d:s=="checked"?y=d:u&&typeof d!="function"||b[s]===d||it(e,s,d,b[s],o);if(p)u||l&&(p.__html===l.__html||p.__html===e.innerHTML)||(e.innerHTML=p.__html),t.__k=[];else if(l&&(e.innerHTML=""),Xr(e,Bt(c)?c:[c],t,r,n,x=="foreignObject"?"http://www.w3.org/1999/xhtml":o,a,i,a?a[0]:r.__k&&Te(r,0),u,f),a!=null)for(s=a.length;s--;)zt(a[s]);u||(s="value",x=="progress"&&g==null?e.removeAttribute("value"):g!==void 0&&(g!==e[s]||x=="progress"&&!g||x=="option"&&g!==b[s])&&it(e,s,g,b[s],o),s="checked",y!==void 0&&y!==e[s]&&it(e,s,y,b[s],o))}return e}function Ut(e,t,r){try{if(typeof e=="function"){var n=typeof e.__u=="function";n&&e.__u(),n&&t==null||(e.__u=e(t))}else e.current=t}catch(o){P.__e(o,r)}}function Yr(e,t,r){var n,o;if(P.unmount&&P.unmount(e),(n=e.ref)&&(n.current&&n.current!==e.__e||Ut(n,null,t)),(n=e.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(a){P.__e(a,t)}n.base=n.__P=null}if(n=e.__k)for(o=0;o<n.length;o++)n[o]&&Yr(n[o],t,r||typeof e.type!="function");r||zt(e.__e),e.__c=e.__=e.__e=void 0}function vi(e,t,r){return this.constructor(e,r)}function Jr(e,t,r){var n,o,a,i;t==document&&(t=document.documentElement),P.__&&P.__(e,t),o=(n=typeof r=="function")?null:r&&r.__k||t.__k,a=[],i=[],qt(t,e=(!n&&r||t).__k=gi(J,null,[e]),o||De,De,t.namespaceURI,!n&&r?[r]:o?null:t.firstChild?lt.call(t.childNodes):null,a,!n&&r?r:o?o.__e:t.firstChild,n,i),Zr(a,e,i)}function en(e,t){var r={__c:t="__cC"+jr++,__:e,Consumer:function(n,o){return n.children(o)},Provider:function(n){var o,a;return this.getChildContext||(o=new Set,(a={})[t]=this,this.getChildContext=function(){return a},this.componentWillUnmount=function(){o=null},this.shouldComponentUpdate=function(i){this.props.value!==i.value&&o.forEach(function(u){u.__e=!0,Dt(u)})},this.sub=function(i){o.add(i);var u=i.componentWillUnmount;i.componentWillUnmount=function(){o&&o.delete(i),u&&u.call(i)}}),n.children}};return r.Provider.__=r.Consumer.contextType=r}lt=Wr.slice,P={__e:function(e,t,r,n){for(var o,a,i;t=t.__;)if((o=t.__c)&&!o.__)try{if((a=o.constructor)&&a.getDerivedStateFromError!=null&&(o.setState(a.getDerivedStateFromError(e)),i=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(e,n||{}),i=o.__d),i)return o.__E=o}catch(u){e=u}throw e}},Ur=0,hi=function(e){return e!=null&&e.constructor==null},ut.prototype.setState=function(e,t){var r;r=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=me({},this.state),typeof e=="function"&&(e=e(me({},r),this.props)),e&&me(r,e),e!=null&&this.__v&&(t&&this._sb.push(t),Dt(this))},ut.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Dt(this))},ut.prototype.render=J,Me=[],Gr=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,It=function(e,t){return e.__v.__b-t.__v.__b},st.__r=0,Kr=/(PointerCapture)$|Capture$/i,Ft=0,Pt=qr(!1),Ot=qr(!0),jr=0;function Mi(e){var t=0,r=e.children,n=r&&r.length;if(!n)t=1;else for(;--n>=0;)t+=r[n].value;e.value=t}function tn(){return this.eachAfter(Mi)}function rn(e,t){let r=-1;for(let n of this)e.call(t,n,++r,this);return this}function nn(e,t){for(var r=this,n=[r],o,a,i=-1;r=n.pop();)if(e.call(t,r,++i,this),o=r.children)for(a=o.length-1;a>=0;--a)n.push(o[a]);return this}function on(e,t){for(var r=this,n=[r],o=[],a,i,u,f=-1;r=n.pop();)if(o.push(r),a=r.children)for(i=0,u=a.length;i<u;++i)n.push(a[i]);for(;r=o.pop();)e.call(t,r,++f,this);return this}function an(e,t){let r=-1;for(let n of this)if(e.call(t,n,++r,this))return n}function un(e){return this.eachAfter(function(t){for(var r=+e(t.data)||0,n=t.children,o=n&&n.length;--o>=0;)r+=n[o].value;t.value=r})}function sn(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})}function ln(e){for(var t=this,r=Si(t,e),n=[t];t!==r;)t=t.parent,n.push(t);for(var o=n.length;e!==r;)n.splice(o,0,e),e=e.parent;return n}function Si(e,t){if(e===t)return e;var r=e.ancestors(),n=t.ancestors(),o=null;for(e=r.pop(),t=n.pop();e===t;)o=e,e=r.pop(),t=n.pop();return o}function fn(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t}function cn(){return Array.from(this)}function pn(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e}function dn(){var e=this,t=[];return e.each(function(r){r!==e&&t.push({source:r.parent,target:r})}),t}function*mn(){var e=this,t,r=[e],n,o,a;do for(t=r.reverse(),r=[];e=t.pop();)if(yield e,n=e.children)for(o=0,a=n.length;o<a;++o)r.push(n[o]);while(r.length)}function Ne(e,t){e instanceof Map?(e=[void 0,e],t===void 0&&(t=Ci)):t===void 0&&(t=Ri);for(var r=new Fe(e),n,o=[r],a,i,u,f;n=o.pop();)if((i=t(n.data))&&(f=(i=Array.from(i)).length))for(n.children=i,u=f-1;u>=0;--u)o.push(a=i[u]=new Fe(i[u])),a.parent=n,a.depth=n.depth+1;return r.eachBefore(Ei)}function Ai(){return Ne(this).eachBefore(wi)}function Ri(e){return e.children}function Ci(e){return Array.isArray(e)?e[1]:null}function wi(e){e.data.value!==void 0&&(e.value=e.data.value),e.data=e.data.data}function Ei(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function Fe(e){this.data=e,this.depth=this.height=0,this.parent=null}Fe.prototype=Ne.prototype={constructor:Fe,count:tn,each:rn,eachAfter:on,eachBefore:nn,find:an,sum:un,sort:sn,path:ln,ancestors:fn,descendants:cn,leaves:pn,links:dn,copy:Ai,[Symbol.iterator]:mn};function hn(e){if(typeof e!="function")throw new Error;return e}function ke(){return 0}function Le(e){return function(){return e}}function _n(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)}function ft(e,t,r,n,o){for(var a=e.children,i,u=-1,f=a.length,s=e.value&&(n-t)/e.value;++u<f;)i=a[u],i.y0=r,i.y1=o,i.x0=t,i.x1=t+=i.value*s}function ct(e,t,r,n,o){for(var a=e.children,i,u=-1,f=a.length,s=e.value&&(o-r)/e.value;++u<f;)i=a[u],i.x0=t,i.x1=n,i.y0=r,i.y1=r+=i.value*s}var Gt=(1+Math.sqrt(5))/2;function Kt(e,t,r,n,o,a){for(var i=[],u=t.children,f,s,p=0,l=0,c=u.length,d,g,y=t.value,b,M,x,N,D,E,$;p<c;){d=o-r,g=a-n;do b=u[l++].value;while(!b&&l<c);for(M=x=b,E=Math.max(g/d,d/g)/(y*e),$=b*b*E,D=Math.max(x/$,$/M);l<c;++l){if(b+=s=u[l].value,s<M&&(M=s),s>x&&(x=s),$=b*b*E,N=Math.max(x/$,$/M),N>D){b-=s;break}D=N}i.push(f={value:b,dice:d<g,children:u.slice(p,l)}),f.dice?ft(f,r,n,o,y?n+=g*b/y:a):ct(f,r,n,y?r+=d*b/y:o,a),y-=b,p=l}return i}var gn=function e(t){function r(n,o,a,i,u){Kt(t,n,o,a,i,u)}return r.ratio=function(n){return e((n=+n)>1?n:1)},r}(Gt);function jt(){var e=gn,t=!1,r=1,n=1,o=[0],a=ke,i=ke,u=ke,f=ke,s=ke;function p(c){return c.x0=c.y0=0,c.x1=r,c.y1=n,c.eachBefore(l),o=[0],t&&c.eachBefore(_n),c}function l(c){var d=o[c.depth],g=c.x0+d,y=c.y0+d,b=c.x1-d,M=c.y1-d;b<g&&(g=b=(g+b)/2),M<y&&(y=M=(y+M)/2),c.x0=g,c.y0=y,c.x1=b,c.y1=M,c.children&&(d=o[c.depth+1]=a(c)/2,g+=s(c)-d,y+=i(c)-d,b-=u(c)-d,M-=f(c)-d,b<g&&(g=b=(g+b)/2),M<y&&(y=M=(y+M)/2),e(c,g,y,b,M))}return p.round=function(c){return arguments.length?(t=!!c,p):t},p.size=function(c){return arguments.length?(r=+c[0],n=+c[1],p):[r,n]},p.tile=function(c){return arguments.length?(e=hn(c),p):e},p.padding=function(c){return arguments.length?p.paddingInner(c).paddingOuter(c):p.paddingInner()},p.paddingInner=function(c){return arguments.length?(a=typeof c=="function"?c:Le(+c),p):a},p.paddingOuter=function(c){return arguments.length?p.paddingTop(c).paddingRight(c).paddingBottom(c).paddingLeft(c):p.paddingTop()},p.paddingTop=function(c){return arguments.length?(i=typeof c=="function"?c:Le(+c),p):i},p.paddingRight=function(c){return arguments.length?(u=typeof c=="function"?c:Le(+c),p):u},p.paddingBottom=function(c){return arguments.length?(f=typeof c=="function"?c:Le(+c),p):f},p.paddingLeft=function(c){return arguments.length?(s=typeof c=="function"?c:Le(+c),p):s},p}var Wt=function e(t){function r(n,o,a,i,u){if((f=n._squarify)&&f.ratio===t)for(var f,s,p,l,c=-1,d,g=f.length,y=n.value;++c<g;){for(s=f[c],p=s.children,l=s.value=0,d=p.length;l<d;++l)s.value+=p[l].value;s.dice?ft(s,o,a,i,y?a+=(u-a)*s.value/y:u):ct(s,o,a,y?o+=(i-o)*s.value/y:i,u),y-=s.value}else n._squarify=f=Kt(t,n,o,a,i,u),f.ratio=t}return r.ratio=function(n){return e((n=+n)>1?n:1)},r}(Gt);var Se=e=>"children"in e;var xn=0,Vt=class{constructor(t){this._id=t;let r=new URL(window.location.href);r.hash=t,this._href=r.toString()}get id(){return this._id}get href(){return this._href}toString(){return`url(${this.href})`}};function Xt(e){xn+=1;let t=["O",e,xn].filter(Boolean).join("-");return new Vt(t)}var le={renderedLength:"Rendered",gzipLength:"Gzip",brotliLength:"Brotli"},yn=e=>{let t=["renderedLength"];return e.gzip&&t.push("gzipLength"),e.brotli&&t.push("brotliLength"),t};var Ae,B,Qt,bn,Be=0,En=[],q=P,vn=q.__b,Mn=q.__r,Sn=q.diffed,An=q.__c,Rn=q.unmount,Cn=q.__;function ze(e,t){q.__h&&q.__h(B,e,Be||t),Be=0;var r=B.__H||(B.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function Q(e){return Be=1,Ti(kn,e)}function Ti(e,t,r){var n=ze(Ae++,2);if(n.t=e,!n.__c&&(n.__=[r?r(t):kn(void 0,t),function(u){var f=n.__N?n.__N[0]:n.__[0],s=n.t(f,u);f!==s&&(n.__N=[s,n.__[1]],n.__c.setState({}))}],n.__c=B,!B.u)){var o=function(u,f,s){if(!n.__c.__H)return!0;var p=n.__c.__H.__.filter(function(c){return!!c.__c});if(p.every(function(c){return!c.__N}))return!a||a.call(this,u,f,s);var l=n.__c.props!==u;return p.forEach(function(c){if(c.__N){var d=c.__[0];c.__=c.__N,c.__N=void 0,d!==c.__[0]&&(l=!0)}}),a&&a.call(this,u,f,s)||l};B.u=!0;var a=B.shouldComponentUpdate,i=B.componentWillUpdate;B.componentWillUpdate=function(u,f,s){if(this.__e){var p=a;a=void 0,o(u,f,s),a=p}i&&i.call(this,u,f,s)},B.shouldComponentUpdate=o}return n.__N||n.__}function dt(e,t){var r=ze(Ae++,3);!q.__s&&Yt(r.__H,t)&&(r.__=e,r.i=t,B.__H.__h.push(r))}function Tn(e,t){var r=ze(Ae++,4);!q.__s&&Yt(r.__H,t)&&(r.__=e,r.i=t,B.__h.push(r))}function qe(e){return Be=5,ee(function(){return{current:e}},[])}function ee(e,t){var r=ze(Ae++,7);return Yt(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function Nn(e,t){return Be=8,ee(function(){return e},t)}function he(e){var t=B.context[e.__c],r=ze(Ae++,9);return r.c=e,t?(r.__==null&&(r.__=!0,t.sub(B)),t.props.value):e.__}function Ni(){for(var e;e=En.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(pt),e.__H.__h.forEach(Zt),e.__H.__h=[]}catch(t){e.__H.__h=[],q.__e(t,e.__v)}}q.__b=function(e){B=null,vn&&vn(e)},q.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Cn&&Cn(e,t)},q.__r=function(e){Mn&&Mn(e),Ae=0;var t=(B=e.__c).__H;t&&(Qt===B?(t.__h=[],B.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.i=r.__N=void 0})):(t.__h.forEach(pt),t.__h.forEach(Zt),t.__h=[],Ae=0)),Qt=B},q.diffed=function(e){Sn&&Sn(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(En.push(t)!==1&&bn===q.requestAnimationFrame||((bn=q.requestAnimationFrame)||ki)(Ni)),t.__H.__.forEach(function(r){r.i&&(r.__H=r.i),r.i=void 0})),Qt=B=null},q.__c=function(e,t){t.some(function(r){try{r.__h.forEach(pt),r.__h=r.__h.filter(function(n){return!n.__||Zt(n)})}catch(n){t.some(function(o){o.__h&&(o.__h=[])}),t=[],q.__e(n,r.__v)}}),An&&An(e,t)},q.unmount=function(e){Rn&&Rn(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{pt(n)}catch(o){t=o}}),r.__H=void 0,t&&q.__e(t,r.__v))};var wn=typeof requestAnimationFrame=="function";function ki(e){var t,r=function(){clearTimeout(n),wn&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);wn&&(t=requestAnimationFrame(r))}function pt(e){var t=B,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),B=t}function Zt(e){var t=B;e.__c=e.__(),B=t}function Yt(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function kn(e,t){return typeof t=="function"?t(e):t}var Li=0,us=Array.isArray;function A(e,t,r,n,o,a){t||(t={});var i,u,f=t;if("ref"in f)for(u in f={},t)u=="ref"?i=t[u]:f[u]=t[u];var s={type:e,props:f,key:r,ref:i,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--Li,__i:-1,__u:0,__source:o,__self:a};if(typeof e=="function"&&(i=e.defaultProps))for(u in i)f[u]===void 0&&(f[u]=i[u]);return P.vnode&&P.vnode(s),s}var Ln="*/**/file.js",Hn=({availableSizeProperties:e,sizeProperty:t,setSizeProperty:r,onExcludeChange:n,onIncludeChange:o})=>{let[a,i]=Q(""),[u,f]=Q(""),s=c=>()=>{c!==t&&r(c)},p=c=>{let d=c.currentTarget.value;i(d),o(d)},l=c=>{let d=c.currentTarget.value;f(d),n(d)};return A("aside",{className:"sidebar",children:[A("div",{className:"size-selectors",children:e.length>1&&e.map(c=>{let d=`selector-${c}`;return A("div",{className:"size-selector",children:[A("input",{type:"radio",id:d,checked:c===t,onChange:s(c)}),A("label",{htmlFor:d,children:le[c]})]},c)})}),A("div",{className:"module-filters",children:[A("div",{className:"module-filter",children:[A("label",{htmlFor:"module-filter-exclude",children:"Exclude"}),A("input",{type:"text",id:"module-filter-exclude",value:u,onInput:l,placeholder:Ln})]}),A("div",{className:"module-filter",children:[A("label",{htmlFor:"module-filter-include",children:"Include"}),A("input",{type:"text",id:"module-filter-include",value:a,onInput:p,placeholder:Ln})]})]})]})};var uo=Fr(ro());function fa(e){return Array.isArray(e)}function no(e){return fa(e)?e:e==null?[]:[e]}var oo=e=>{let r=(0,uo.default)(e,{dot:!0});return{test:n=>r(n)}};var io={test:()=>!0},ao=e=>{let t="bundle"in e&&e.bundle!=null?oo(e.bundle):io,r="file"in e&&e.file!=null?oo(e.file):io;return{bundleTest:t,fileTest:r}},so=(e,t)=>{let r=no(e).map(ao),n=no(t).map(ao);return(o,a)=>{for(let i=0;i<n.length;++i){let{bundleTest:u,fileTest:f}=n[i];if(u.test(o)&&f.test(a))return!1}for(let i=0;i<r.length;++i){let{bundleTest:u,fileTest:f}=r[i];if(u.test(o)&&f.test(a))return!0}return!r.length}};var lo=(e,t)=>{let r=!1;return n=>{r||(e(n),r=!0,setTimeout(()=>{r=!1},t))}},fo=e=>e===""?[]:e.split(",").map(t=>t.trim()).map(t=>t.startsWith('"')&&t.endsWith('"')?t.substring(1,t.length-1):t).map(t=>t.startsWith("'")&&t.endsWith("'")?t.substring(1,t.length-1):t).filter(t=>t).map(t=>t.split(":")).flatMap(t=>{if(t.length===0)return[];let r=null,n=null;return t.length===1&&t[0]?(n=t[0],[{file:n,bundle:r}]):(r=t[0]||null,n=t.slice(1).join(":")||null,[{bundle:r,file:n}])}),co=()=>{let[e,t]=Q(""),[r,n]=Q(""),o=ee(()=>lo(t,200),[]),a=ee(()=>lo(n,200),[]),i=ee(()=>so(fo(e),fo(r)),[e,r]);return{getModuleFilterMultiplier:Nn((f,s)=>i(f,s.id)?1:0,[i]),includeFilter:e,excludeFilter:r,setExcludeFilter:a,setIncludeFilter:o}};function Re(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function sr(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function gt(e){let t,r,n;e.length!==2?(t=Re,r=(u,f)=>Re(e(u),f),n=(u,f)=>e(u)-f):(t=e===Re||e===sr?e:ca,r=e,n=e);function o(u,f,s=0,p=u.length){if(s<p){if(t(f,f)!==0)return p;do{let l=s+p>>>1;r(u[l],f)<0?s=l+1:p=l}while(s<p)}return s}function a(u,f,s=0,p=u.length){if(s<p){if(t(f,f)!==0)return p;do{let l=s+p>>>1;r(u[l],f)<=0?s=l+1:p=l}while(s<p)}return s}function i(u,f,s=0,p=u.length){let l=o(u,f,s,p-1);return l>s&&n(u[l-1],f)>-n(u[l],f)?l-1:l}return{left:o,center:i,right:a}}function ca(){return 0}function lr(e){return e===null?NaN:+e}var po=gt(Re),mo=po.right,pa=po.left,da=gt(lr).center,fr=mo;var xt=class extends Map{constructor(t,r=_a){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(let[n,o]of t)this.set(n,o)}get(t){return super.get(ho(this,t))}has(t){return super.has(ho(this,t))}set(t,r){return super.set(ma(this,t),r)}delete(t){return super.delete(ha(this,t))}};function ho({_intern:e,_key:t},r){let n=t(r);return e.has(n)?e.get(n):r}function ma({_intern:e,_key:t},r){let n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function ha({_intern:e,_key:t},r){let n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function _a(e){return e!==null&&typeof e=="object"?e.valueOf():e}function yt(e){return e}function bt(e,...t){return ga(e,yt,yt,t)}function ga(e,t,r,n){return function o(a,i){if(i>=n.length)return r(a);let u=new xt,f=n[i++],s=-1;for(let p of a){let l=f(p,++s,a),c=u.get(l);c?c.push(p):u.set(l,[p])}for(let[p,l]of u)u.set(p,o(l,i));return t(u)}(e,0)}var xa=Math.sqrt(50),ya=Math.sqrt(10),ba=Math.sqrt(2);function vt(e,t,r){let n=(t-e)/Math.max(0,r),o=Math.floor(Math.log10(n)),a=n/Math.pow(10,o),i=a>=xa?10:a>=ya?5:a>=ba?2:1,u,f,s;return o<0?(s=Math.pow(10,-o)/i,u=Math.round(e*s),f=Math.round(t*s),u/s<e&&++u,f/s>t&&--f,s=-s):(s=Math.pow(10,o)*i,u=Math.round(e/s),f=Math.round(t/s),u*s<e&&++u,f*s>t&&--f),f<u&&.5<=r&&r<2?vt(e,t,r*2):[u,f,s]}function Mt(e,t,r){if(t=+t,e=+e,r=+r,!(r>0))return[];if(e===t)return[e];let n=t<e,[o,a,i]=n?vt(t,e,r):vt(e,t,r);if(!(a>=o))return[];let u=a-o+1,f=new Array(u);if(n)if(i<0)for(let s=0;s<u;++s)f[s]=(a-s)/-i;else for(let s=0;s<u;++s)f[s]=(a-s)*i;else if(i<0)for(let s=0;s<u;++s)f[s]=(o+s)/-i;else for(let s=0;s<u;++s)f[s]=(o+s)*i;return f}function je(e,t,r){return t=+t,e=+e,r=+r,vt(e,t,r)[2]}function cr(e,t,r){t=+t,e=+e,r=+r;let n=t<e,o=n?je(t,e,r):je(e,t,r);return(n?-1:1)*(o<0?1/-o:o)}var _o=({node:e,onMouseOver:t,onClick:r,selected:n})=>{let{getModuleColor:o}=he(ae),{backgroundColor:a,fontColor:i}=o(e),{x0:u,x1:f,y1:s,y0:p,data:l,children:c=null}=e,d=qe(null),g=qe(),y=f-u,b=s-p,M={"font-size":"0.7em","dominant-baseline":"middle","text-anchor":"middle",x:y/2};return c!=null?M.y=22/2:M.y=b/2,Tn(()=>{if(y==0||b==0||!d.current)return;g.current==null&&(g.current=d.current.getBoundingClientRect());let x=1;c!=null?(x=Math.min(y*.9/g.current.width,Math.min(b,22)/g.current.height),x=Math.min(1,x),d.current.setAttribute("y",String(Math.min(22,b)/2/x)),d.current.setAttribute("x",String(y/2/x))):(x=Math.min(y*.9/g.current.width,b*.9/g.current.height),x=Math.min(1,x),d.current.setAttribute("y",String(b/2/x)),d.current.setAttribute("x",String(y/2/x))),d.current.setAttribute("transform",`scale(${x.toFixed(2)})`)},[c,b,y]),y==0||b==0?null:A("g",{className:"node",transform:`translate(${u},${p})`,onClick:x=>{x.stopPropagation(),r(e)},onMouseOver:x=>{x.stopPropagation(),t(e)},children:[A("rect",{fill:a,rx:2,ry:2,width:f-u,height:s-p,stroke:n?"#fff":void 0,"stroke-width":n?2:void 0}),A("text",re(X({ref:d,fill:i,onClick:x=>{var N;((N=window.getSelection())==null?void 0:N.toString())!==""&&x.stopPropagation()}},M),{children:l.name}))]})};var go=({root:e,onNodeHover:t,selectedNode:r,onNodeClick:n})=>{let{width:o,height:a,getModuleIds:i}=he(ae);console.time("layering");let u=ee(()=>{let f=bt(e.descendants(),p=>p.height),s=Array.from(f,([p,l])=>({key:p,values:l}));return s.sort((p,l)=>l.key-p.key),s},[e]);return console.timeEnd("layering"),A("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:`0 0 ${o} ${a}`,children:u.map(({key:f,values:s})=>A("g",{className:"layer",children:s.map(p=>A(_o,{node:p,onMouseOver:t,selected:r===p,onClick:n},i(p.data).nodeUid.id))},f))})};var pr=Fr(bo());var Ra=10,vo=30,Ca=A("span",{children:[" ",A("b",{children:le.renderedLength})," is a number of characters in the file after individual and ",A("br",{})," whole bundle transformations according to sourcemap."]}),wa=A("span",{children:[A("b",{children:le.renderedLength})," is a byte size of individual file after transformations and treeshake."]}),Ea=A("span",{children:[A("b",{children:le.gzipLength})," and ",A("b",{children:le.brotliLength})," is a byte size of individual file after individual transformations,",A("br",{})," treeshake and compression."]}),Mo=({node:e,visible:t,root:r,sizeProperty:n})=>{let{availableSizeProperties:o,getModuleSize:a,data:i}=he(ae),u=qe(null),[f,s]=Q({}),p=ee(()=>{if(!e)return null;let c=a(e.data,n),y=(100*c/a(r.data,n)).toFixed(2)+"%",b=e.ancestors().reverse().map(x=>x.data.name).join("/"),M=null;if(!Se(e.data)){let x=i.nodeParts[e.data.uid].metaUid;M=i.nodeMetas[x]}return A(J,{children:[A("div",{children:b}),o.map(x=>x===n?A("div",{children:[A("b",{children:[le[x],": ",(0,pr.format)(c)]})," ","(",y,")"]},x):A("div",{children:[le[x],": ",(0,pr.format)(a(e.data,x))]},x)),A("br",{}),M&&M.importedBy.length>0&&A("div",{children:[A("div",{children:[A("b",{children:"Imported By"}),":"]}),M.importedBy.map(({uid:x})=>{let N=i.nodeMetas[x].id;return A("div",{children:N},N)})]}),A("br",{}),A("small",{children:i.options.sourcemap?Ca:wa}),(i.options.gzip||i.options.brotli)&&A(J,{children:[A("br",{}),A("small",{children:Ea})]})]})},[o,i,a,e,r.data,n]),l=c=>{if(!u.current)return;let d={left:c.x+Ra,top:c.y+vo},g=u.current.getBoundingClientRect();d.left+g.width>window.innerWidth&&(d.left=Math.max(0,window.innerWidth-g.width)),d.top+g.height>window.innerHeight&&(d.top=Math.max(0,c.y-vo-g.height)),s(d)};return dt(()=>{let c=d=>{l({x:d.pageX,y:d.pageY})};return document.addEventListener("mousemove",c,!0),()=>{document.removeEventListener("mousemove",c,!0)}},[]),A("div",{className:`tooltip ${t?"":"tooltip-hidden"}`,ref:u,style:f,children:p})};var So=({root:e,sizeProperty:t,selectedNode:r,setSelectedNode:n})=>{let[o,a]=Q(!1),[i,u]=Q(void 0);return dt(()=>{let f=()=>{a(!1)};return document.addEventListener("mouseover",f),()=>{document.removeEventListener("mouseover",f)}},[]),A(J,{children:[A(go,{root:e,onNodeHover:f=>{u(f),a(!0)},selectedNode:r,onNodeClick:f=>{n(r===f?void 0:f)}}),A(Mo,{visible:o,node:i,root:e,sizeProperty:t})]})};var Ao=()=>{let{availableSizeProperties:e,rawHierarchy:t,getModuleSize:r,layout:n,data:o}=he(ae),[a,i]=Q(e[0]),[u,f]=Q(void 0),{getModuleFilterMultiplier:s,setExcludeFilter:p,setIncludeFilter:l}=co();console.time("getNodeSizeMultiplier");let c=ee(()=>{if(u===void 0)return()=>1;if(Se(u.data)){let b=new Set(u.leaves().map(M=>M.data));return M=>b.has(M)?1:0}else return b=>b===u.data?1:0},[r,t.data,u,a]);console.timeEnd("getNodeSizeMultiplier"),console.time("root hierarchy compute");let d=ee(()=>{let g=t.sum(y=>{var E;if(Se(y))return 0;let b=o.nodeMetas[o.nodeParts[y.uid].metaUid],M=(E=Object.entries(b.moduleParts).find(([,$])=>$==y.uid))==null?void 0:E[0],x=r(y,a),N=c(y),D=s(M,b);return x*N*D}).sort((y,b)=>r(y.data,a)-r(b.data,a));return n(g)},[o,s,r,c,n,t,a]);return console.timeEnd("root hierarchy compute"),A(J,{children:[A(Hn,{sizeProperty:a,availableSizeProperties:e,setSizeProperty:i,onExcludeChange:p,onIncludeChange:l}),A(So,{root:d,sizeProperty:a,selectedNode:u,setSelectedNode:f})]})};function Ro(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function Co(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}function At(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function dr(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Qe(){}var Ve=.7,wt=1/Ve,Ie="\\s*([+-]?\\d+)\\s*",Xe="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",ue="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Ta=/^#([0-9a-f]{3,8})$/,Na=new RegExp(`^rgb\\(${Ie},${Ie},${Ie}\\)$`),ka=new RegExp(`^rgb\\(${ue},${ue},${ue}\\)$`),La=new RegExp(`^rgba\\(${Ie},${Ie},${Ie},${Xe}\\)$`),Ha=new RegExp(`^rgba\\(${ue},${ue},${ue},${Xe}\\)$`),$a=new RegExp(`^hsl\\(${Xe},${ue},${ue}\\)$`),Ia=new RegExp(`^hsla\\(${Xe},${ue},${ue},${Xe}\\)$`),wo={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};At(Qe,ge,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Eo,formatHex:Eo,formatHex8:Pa,formatHsl:Oa,formatRgb:To,toString:To});function Eo(){return this.rgb().formatHex()}function Pa(){return this.rgb().formatHex8()}function Oa(){return Io(this).formatHsl()}function To(){return this.rgb().formatRgb()}function ge(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Ta.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?No(t):r===3?new Y(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?Rt(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?Rt(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=Na.exec(e))?new Y(t[1],t[2],t[3],1):(t=ka.exec(e))?new Y(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=La.exec(e))?Rt(t[1],t[2],t[3],t[4]):(t=Ha.exec(e))?Rt(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=$a.exec(e))?Ho(t[1],t[2]/100,t[3]/100,1):(t=Ia.exec(e))?Ho(t[1],t[2]/100,t[3]/100,t[4]):wo.hasOwnProperty(e)?No(wo[e]):e==="transparent"?new Y(NaN,NaN,NaN,0):null}function No(e){return new Y(e>>16&255,e>>8&255,e&255,1)}function Rt(e,t,r,n){return n<=0&&(e=t=r=NaN),new Y(e,t,r,n)}function Da(e){return e instanceof Qe||(e=ge(e)),e?(e=e.rgb(),new Y(e.r,e.g,e.b,e.opacity)):new Y}function Pe(e,t,r,n){return arguments.length===1?Da(e):new Y(e,t,r,n==null?1:n)}function Y(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}At(Y,Pe,dr(Qe,{brighter(e){return e=e==null?wt:Math.pow(wt,e),new Y(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Ve:Math.pow(Ve,e),new Y(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Y(we(this.r),we(this.g),we(this.b),Et(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:ko,formatHex:ko,formatHex8:Fa,formatRgb:Lo,toString:Lo}));function ko(){return`#${Ce(this.r)}${Ce(this.g)}${Ce(this.b)}`}function Fa(){return`#${Ce(this.r)}${Ce(this.g)}${Ce(this.b)}${Ce((isNaN(this.opacity)?1:this.opacity)*255)}`}function Lo(){let e=Et(this.opacity);return`${e===1?"rgb(":"rgba("}${we(this.r)}, ${we(this.g)}, ${we(this.b)}${e===1?")":`, ${e})`}`}function Et(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function we(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Ce(e){return e=we(e),(e<16?"0":"")+e.toString(16)}function Ho(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new ne(e,t,r,n)}function Io(e){if(e instanceof ne)return new ne(e.h,e.s,e.l,e.opacity);if(e instanceof Qe||(e=ge(e)),!e)return new ne;if(e instanceof ne)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,o=Math.min(t,r,n),a=Math.max(t,r,n),i=NaN,u=a-o,f=(a+o)/2;return u?(t===a?i=(r-n)/u+(r<n)*6:r===a?i=(n-t)/u+2:i=(t-r)/u+4,u/=f<.5?a+o:2-a-o,i*=60):u=f>0&&f<1?0:i,new ne(i,u,f,e.opacity)}function Ze(e,t,r,n){return arguments.length===1?Io(e):new ne(e,t,r,n==null?1:n)}function ne(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}At(ne,Ze,dr(Qe,{brighter(e){return e=e==null?wt:Math.pow(wt,e),new ne(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Ve:Math.pow(Ve,e),new ne(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,o=2*r-n;return new Y(mr(e>=240?e-240:e+120,o,n),mr(e,o,n),mr(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new ne($o(this.h),Ct(this.s),Ct(this.l),Et(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=Et(this.opacity);return`${e===1?"hsl(":"hsla("}${$o(this.h)}, ${Ct(this.s)*100}%, ${Ct(this.l)*100}%${e===1?")":`, ${e})`}`}}));function $o(e){return e=(e||0)%360,e<0?e+360:e}function Ct(e){return Math.max(0,Math.min(1,e||0))}function mr(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}function hr(e,t,r,n,o){var a=e*e,i=a*e;return((1-3*e+3*a-i)*t+(4-6*a+3*i)*r+(1+3*e+3*a-3*i)*n+i*o)/6}function Po(e){var t=e.length-1;return function(r){var n=r<=0?r=0:r>=1?(r=1,t-1):Math.floor(r*t),o=e[n],a=e[n+1],i=n>0?e[n-1]:2*o-a,u=n<t-1?e[n+2]:2*a-o;return hr((r-n/t)*t,i,o,a,u)}}function Oo(e){var t=e.length;return function(r){var n=Math.floor(((r%=1)<0?++r:r)*t),o=e[(n+t-1)%t],a=e[n%t],i=e[(n+1)%t],u=e[(n+2)%t];return hr((r-n/t)*t,o,a,i,u)}}var Ye=e=>()=>e;function Ba(e,t){return function(r){return e+r*t}}function za(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function Do(e){return(e=+e)==1?Tt:function(t,r){return r-t?za(t,r,e):Ye(isNaN(t)?r:t)}}function Tt(e,t){var r=t-e;return r?Ba(e,r):Ye(isNaN(e)?t:e)}var _r=function e(t){var r=Do(t);function n(o,a){var i=r((o=Pe(o)).r,(a=Pe(a)).r),u=r(o.g,a.g),f=r(o.b,a.b),s=Tt(o.opacity,a.opacity);return function(p){return o.r=i(p),o.g=u(p),o.b=f(p),o.opacity=s(p),o+""}}return n.gamma=e,n}(1);function Fo(e){return function(t){var r=t.length,n=new Array(r),o=new Array(r),a=new Array(r),i,u;for(i=0;i<r;++i)u=Pe(t[i]),n[i]=u.r||0,o[i]=u.g||0,a[i]=u.b||0;return n=e(n),o=e(o),a=e(a),u.opacity=1,function(f){return u.r=n(f),u.g=o(f),u.b=a(f),u+""}}}var rf=Fo(Po),nf=Fo(Oo);function Bo(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),o;return function(a){for(o=0;o<r;++o)n[o]=e[o]*(1-a)+t[o]*a;return n}}function zo(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function qo(e,t){var r=t?t.length:0,n=e?Math.min(r,e.length):0,o=new Array(n),a=new Array(r),i;for(i=0;i<n;++i)o[i]=ce(e[i],t[i]);for(;i<r;++i)a[i]=t[i];return function(u){for(i=0;i<n;++i)a[i]=o[i](u);return a}}function Uo(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function xe(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function Go(e,t){var r={},n={},o;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(o in t)o in e?r[o]=ce(e[o],t[o]):n[o]=t[o];return function(a){for(o in r)n[o]=r[o](a);return n}}var xr=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,gr=new RegExp(xr.source,"g");function qa(e){return function(){return e}}function Ua(e){return function(t){return e(t)+""}}function Ko(e,t){var r=xr.lastIndex=gr.lastIndex=0,n,o,a,i=-1,u=[],f=[];for(e=e+"",t=t+"";(n=xr.exec(e))&&(o=gr.exec(t));)(a=o.index)>r&&(a=t.slice(r,a),u[i]?u[i]+=a:u[++i]=a),(n=n[0])===(o=o[0])?u[i]?u[i]+=o:u[++i]=o:(u[++i]=null,f.push({i,x:xe(n,o)})),r=gr.lastIndex;return r<t.length&&(a=t.slice(r),u[i]?u[i]+=a:u[++i]=a),u.length<2?f[0]?Ua(f[0].x):qa(t):(t=f.length,function(s){for(var p=0,l;p<t;++p)u[(l=f[p]).i]=l.x(s);return u.join("")})}function ce(e,t){var r=typeof t,n;return t==null||r==="boolean"?Ye(t):(r==="number"?xe:r==="string"?(n=ge(t))?(t=n,_r):Ko:t instanceof ge?_r:t instanceof Date?Uo:zo(t)?Bo:Array.isArray(t)?qo:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?Go:xe)(e,t)}function Je(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}function yr(e){return function(){return e}}function br(e){return+e}var jo=[0,1];function pe(e){return e}function vr(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:yr(isNaN(t)?NaN:.5)}function Ga(e,t){var r;return e>t&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function Ka(e,t,r){var n=e[0],o=e[1],a=t[0],i=t[1];return o<n?(n=vr(o,n),a=r(i,a)):(n=vr(n,o),a=r(a,i)),function(u){return a(n(u))}}function ja(e,t,r){var n=Math.min(e.length,t.length)-1,o=new Array(n),a=new Array(n),i=-1;for(e[n]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++i<n;)o[i]=vr(e[i],e[i+1]),a[i]=r(t[i],t[i+1]);return function(u){var f=fr(e,u,1,n)-1;return a[f](o[f](u))}}function Wo(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Wa(){var e=jo,t=jo,r=ce,n,o,a,i=pe,u,f,s;function p(){var c=Math.min(e.length,t.length);return i!==pe&&(i=Ga(e[0],e[c-1])),u=c>2?ja:Ka,f=s=null,l}function l(c){return c==null||isNaN(c=+c)?a:(f||(f=u(e.map(n),t,r)))(n(i(c)))}return l.invert=function(c){return i(o((s||(s=u(t,e.map(n),xe)))(c)))},l.domain=function(c){return arguments.length?(e=Array.from(c,br),p()):e.slice()},l.range=function(c){return arguments.length?(t=Array.from(c),p()):t.slice()},l.rangeRound=function(c){return t=Array.from(c),r=Je,p()},l.clamp=function(c){return arguments.length?(i=c?!0:pe,p()):i!==pe},l.interpolate=function(c){return arguments.length?(r=c,p()):r},l.unknown=function(c){return arguments.length?(a=c,l):a},function(c,d){return n=c,o=d,p()}}function Mr(){return Wa()(pe,pe)}function Vo(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Ee(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function se(e){return e=Ee(Math.abs(e)),e?e[1]:NaN}function Xo(e,t){return function(r,n){for(var o=r.length,a=[],i=0,u=e[0],f=0;o>0&&u>0&&(f+u+1>n&&(u=Math.max(1,n-f)),a.push(r.substring(o-=u,o+u)),!((f+=u+1)>n));)u=e[i=(i+1)%e.length];return a.reverse().join(t)}}function Qo(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var Va=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function ye(e){if(!(t=Va.exec(e)))throw new Error("invalid format: "+e);var t;return new Nt({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}ye.prototype=Nt.prototype;function Nt(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}Nt.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function Zo(e){e:for(var t=e.length,r=1,n=-1,o;r<t;++r)switch(e[r]){case".":n=o=r;break;case"0":n===0&&(n=r),o=r;break;default:if(!+e[r])break e;n>0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(o+1):e}var Sr;function Yo(e,t){var r=Ee(e,t);if(!r)return e+"";var n=r[0],o=r[1],a=o-(Sr=Math.max(-8,Math.min(8,Math.floor(o/3)))*3)+1,i=n.length;return a===i?n:a>i?n+new Array(a-i+1).join("0"):a>0?n.slice(0,a)+"."+n.slice(a):"0."+new Array(1-a).join("0")+Ee(e,Math.max(0,t+a-1))[0]}function Ar(e,t){var r=Ee(e,t);if(!r)return e+"";var n=r[0],o=r[1];return o<0?"0."+new Array(-o).join("0")+n:n.length>o+1?n.slice(0,o+1)+"."+n.slice(o+1):n+new Array(o-n.length+2).join("0")}var Rr={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:Vo,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>Ar(e*100,t),r:Ar,s:Yo,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function Cr(e){return e}var Jo=Array.prototype.map,ei=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function ti(e){var t=e.grouping===void 0||e.thousands===void 0?Cr:Xo(Jo.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",o=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?Cr:Qo(Jo.call(e.numerals,String)),i=e.percent===void 0?"%":e.percent+"",u=e.minus===void 0?"\u2212":e.minus+"",f=e.nan===void 0?"NaN":e.nan+"";function s(l){l=ye(l);var c=l.fill,d=l.align,g=l.sign,y=l.symbol,b=l.zero,M=l.width,x=l.comma,N=l.precision,D=l.trim,E=l.type;E==="n"?(x=!0,E="g"):Rr[E]||(N===void 0&&(N=12),D=!0,E="g"),(b||c==="0"&&d==="=")&&(b=!0,c="0",d="=");var $=y==="$"?r:y==="#"&&/[boxX]/.test(E)?"0"+E.toLowerCase():"",j=y==="$"?n:/[%p]/.test(E)?i:"",C=Rr[E],w=/[defgprs%]/.test(E);N=N===void 0?6:/[gprs]/.test(E)?Math.max(1,Math.min(21,N)):Math.max(0,Math.min(20,N));function _(R){var L=$,H=j,m,h,W;if(E==="c")H=C(R)+H,R="";else{R=+R;var I=R<0||1/R<0;if(R=isNaN(R)?f:C(Math.abs(R),N),D&&(R=Zo(R)),I&&+R==0&&g!=="+"&&(I=!1),L=(I?g==="("?g:u:g==="-"||g==="("?"":g)+L,H=(E==="s"?ei[8+Sr/3]:"")+H+(I&&g==="("?")":""),w){for(m=-1,h=R.length;++m<h;)if(W=R.charCodeAt(m),48>W||W>57){H=(W===46?o+R.slice(m+1):R.slice(m))+H,R=R.slice(0,m);break}}}x&&!b&&(R=t(R,1/0));var O=L.length+R.length+H.length,G=O<M?new Array(M-O+1).join(c):"";switch(x&&b&&(R=t(G+R,G.length?M-H.length:1/0),G=""),d){case"<":R=L+R+H+G;break;case"=":R=L+G+R+H;break;case"^":R=G.slice(0,O=G.length>>1)+L+R+H+G.slice(O);break;default:R=G+L+R+H;break}return a(R)}return _.toString=function(){return l+""},_}function p(l,c){var d=s((l=ye(l),l.type="f",l)),g=Math.max(-8,Math.min(8,Math.floor(se(c)/3)))*3,y=Math.pow(10,-g),b=ei[8+g/3];return function(M){return d(y*M)+b}}return{format:s,formatPrefix:p}}var kt,Lt,Ht;wr({thousands:",",grouping:[3],currency:["$",""]});function wr(e){return kt=ti(e),Lt=kt.format,Ht=kt.formatPrefix,kt}function Er(e){return Math.max(0,-se(Math.abs(e)))}function Tr(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(se(t)/3)))*3-se(Math.abs(e)))}function Nr(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,se(t)-se(e))+1}function kr(e,t,r,n){var o=cr(e,t,r),a;switch(n=ye(n==null?",f":n),n.type){case"s":{var i=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(a=Tr(o,i))&&(n.precision=a),Ht(n,i)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(a=Nr(o,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=a-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(a=Er(o))&&(n.precision=a-(n.type==="%")*2);break}}return Lt(n)}function Lr(e){var t=e.domain;return e.ticks=function(r){var n=t();return Mt(n[0],n[n.length-1],r==null?10:r)},e.tickFormat=function(r,n){var o=t();return kr(o[0],o[o.length-1],r==null?10:r,n)},e.nice=function(r){r==null&&(r=10);var n=t(),o=0,a=n.length-1,i=n[o],u=n[a],f,s,p=10;for(u<i&&(s=i,i=u,u=s,s=o,o=a,a=s);p-- >0;){if(s=je(i,u,r),s===f)return n[o]=i,n[a]=u,t(n);if(s>0)i=Math.floor(i/s)*s,u=Math.ceil(u/s)*s;else if(s<0)i=Math.ceil(i*s)/s,u=Math.floor(u*s)/s;else break;f=s}return e},e}function et(){var e=Mr();return e.copy=function(){return Wo(e,et())},Ro.apply(e,arguments),Lr(e)}function Xa(){var e=0,t=1,r,n,o,a,i=pe,u=!1,f;function s(l){return l==null||isNaN(l=+l)?f:i(o===0?.5:(l=(a(l)-r)*o,u?Math.max(0,Math.min(1,l)):l))}s.domain=function(l){return arguments.length?([e,t]=l,r=a(e=+e),n=a(t=+t),o=r===n?0:1/(n-r),s):[e,t]},s.clamp=function(l){return arguments.length?(u=!!l,s):u},s.interpolator=function(l){return arguments.length?(i=l,s):i};function p(l){return function(c){var d,g;return arguments.length?([d,g]=c,i=l(d,g),s):[i(0),i(1)]}}return s.range=p(ce),s.rangeRound=p(Je),s.unknown=function(l){return arguments.length?(f=l,s):f},function(l){return a=l,r=l(e),n=l(t),o=r===n?0:1/(n-r),s}}function Qa(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function tt(){var e=Lr(Xa()(pe));return e.copy=function(){return Qa(e,tt())},Co.apply(e,arguments)}var ri="#cecece";var Za=.2126,Ya=.7152,Ja=.0722,Hr=1/12.92;function $r(e){return Math.pow((e+.055)/1.055,2.4)}function eu(e){let t=e.r/255,r=e.g/255,n=e.b/255,o=t<=.03928?t*Hr:$r(t),a=r<=.03928?r*Hr:$r(r),i=n<=.03928?n*Hr:$r(n);return o*Za+a*Ya+i*Ja}var tu=e=>{let t=new Map;if(t.set(e,ri),e.children!=null){let a=tt([0,e.children.length],i=>Ze(360*i,.3,.85));e.children.forEach((i,u)=>{t.set(i,a(u).toString())})}let r=new Map,n=et().domain([0,e.height]).range([.9,.3]),o=a=>{let i=a.ancestors(),u=i.length===1?t.get(i[0]):t.get(i[i.length-2]),f=Ze(u);return f.l=n(a.depth),f};return a=>{if(!r.has(a)){let i=o(a),f=eu(i.rgb())>.19?"#000":"#fff";r.set(a,{backgroundColor:i.toString(),fontColor:f})}return r.get(a)}},ni=tu;var ae=en({}),ru=(e,t,r,n)=>{let o=yn(t.options);console.time("layout create");let a=jt().size([r,n]).paddingOuter(2).paddingTop(20).paddingInner(2).round(!0).tile(Wt);console.timeEnd("layout create"),console.time("rawHierarchy create");let i=Ne(t.tree);console.timeEnd("rawHierarchy create");let u=new Map,f=new Map,s=(c,d)=>{var g,y;return(y=(g=u.get(c))==null?void 0:g[d])!=null?y:0};console.time("rawHierarchy eachAfter cache"),i.eachAfter(c=>{var y;let d=c.data;f.set(d,{nodeUid:Xt("node"),clipUid:Xt("clip")});let g={renderedLength:0,gzipLength:0,brotliLength:0};if(Se(d))for(let b of o)g[b]=d.children.reduce((M,x)=>s(x,b)+M,0);else for(let b of o)g[b]=(y=t.nodeParts[d.uid][b])!=null?y:0;u.set(d,g)}),console.timeEnd("rawHierarchy eachAfter cache");let p=c=>f.get(c);console.time("color");let l=ni(i);console.timeEnd("color"),Jr(A(ae.Provider,{value:{data:t,availableSizeProperties:o,width:r,height:n,getModuleSize:s,getModuleIds:p,getModuleColor:l,rawHierarchy:i,layout:a},children:A(Ao,{})}),e)},nu=ru;return mi(ou);})();
|
|
19
|
+
/*! Bundled license information:
|
|
20
|
+
|
|
21
|
+
bytes/index.js:
|
|
22
|
+
(*!
|
|
23
|
+
* bytes
|
|
24
|
+
* Copyright(c) 2012-2014 TJ Holowaychuk
|
|
25
|
+
* Copyright(c) 2015 Jed Watson
|
|
26
|
+
* MIT Licensed
|
|
27
|
+
*)
|
|
28
|
+
*/
|
|
29
|
+
|
|
30
|
+
/*-->*/
|
|
31
|
+
</script>
|
|
32
|
+
<script>
|
|
33
|
+
/*<!--*/
|
|
34
|
+
const data = {"version":2,"tree":{"name":"root","children":[{"name":"index.js","children":[{"name":"../../../../../../tmp/size-limit-Mf7W_YO6yLLMIskafMrkp/index.js","uid":"cfcf9c76-1"}]}],"isRoot":true},"nodeParts":{"cfcf9c76-1":{"renderedLength":89944,"gzipLength":0,"brotliLength":0,"metaUid":"cfcf9c76-0"}},"nodeMetas":{"cfcf9c76-0":{"id":"../../../../../../tmp/size-limit-Mf7W_YO6yLLMIskafMrkp/index.js","moduleParts":{"index.js":"cfcf9c76-1"},"imported":[{"uid":"cfcf9c76-2"}],"importedBy":[],"isEntry":true},"cfcf9c76-2":{"id":"<runtime>","moduleParts":{},"imported":[],"importedBy":[{"uid":"cfcf9c76-0"}]}},"env":{},"options":{"gzip":false,"brotli":false,"sourcemap":false}};
|
|
35
|
+
|
|
36
|
+
const run = () => {
|
|
37
|
+
const width = window.innerWidth;
|
|
38
|
+
const height = window.innerHeight;
|
|
39
|
+
|
|
40
|
+
const chartNode = document.querySelector("main");
|
|
41
|
+
drawChart.default(chartNode, data, width, height);
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
window.addEventListener('resize', run);
|
|
45
|
+
|
|
46
|
+
document.addEventListener('DOMContentLoaded', run);
|
|
47
|
+
/*-->*/
|
|
48
|
+
</script>
|
|
49
|
+
</body>
|
|
50
|
+
</html>
|
|
51
|
+
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seed-ship/mcp-ui-solid",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.2",
|
|
4
4
|
"description": "SolidJS components for rendering MCP-generated UI resources",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -157,7 +157,7 @@
|
|
|
157
157
|
"jsdom": "^27.2.0",
|
|
158
158
|
"leaflet.markercluster": "^1.5.3",
|
|
159
159
|
"size-limit": "^12.0.0",
|
|
160
|
-
"solid-js": "^1.9.
|
|
160
|
+
"solid-js": "^1.9.11",
|
|
161
161
|
"typescript": "^5.3.3",
|
|
162
162
|
"vite": "^6.3.6",
|
|
163
163
|
"vite-plugin-solid": "^2.11.8",
|
|
@@ -69,7 +69,7 @@ export interface DraggableGridItemProps {
|
|
|
69
69
|
/**
|
|
70
70
|
* Callback when resize starts
|
|
71
71
|
*/
|
|
72
|
-
onResizeStart?: (edge: 'left' | 'right' | 'top' | 'bottom') => void
|
|
72
|
+
onResizeStart?: (edge: 'left' | 'right' | 'top' | 'bottom', event: PointerEvent) => void
|
|
73
73
|
|
|
74
74
|
/**
|
|
75
75
|
* Callback for resize preview
|
|
@@ -190,8 +190,8 @@ export const DraggableGridItem: Component<DraggableGridItemProps> = (props) => {
|
|
|
190
190
|
})
|
|
191
191
|
|
|
192
192
|
// Handle resize start
|
|
193
|
-
const handleResizeStart = (edge: 'left' | 'right' | 'top' | 'bottom') => {
|
|
194
|
-
props.onResizeStart?.(edge)
|
|
193
|
+
const handleResizeStart = (edge: 'left' | 'right' | 'top' | 'bottom', event: PointerEvent) => {
|
|
194
|
+
props.onResizeStart?.(edge, event)
|
|
195
195
|
}
|
|
196
196
|
|
|
197
197
|
return (
|
|
@@ -246,14 +246,9 @@ export const EditableUIResourceRenderer: Component<EditableUIResourceRendererPro
|
|
|
246
246
|
isResizing={activeResizeId() === component.id}
|
|
247
247
|
previewPosition={previewPositions().get(component.id) || null}
|
|
248
248
|
dragProps={dragDrop.getDragProps(component.id)}
|
|
249
|
-
onResizeStart={(edge) => {
|
|
249
|
+
onResizeStart={(edge, event) => {
|
|
250
250
|
setActiveResizeId(component.id)
|
|
251
|
-
|
|
252
|
-
const syntheticEvent = new PointerEvent('pointerdown', {
|
|
253
|
-
clientX: 0,
|
|
254
|
-
clientY: 0
|
|
255
|
-
})
|
|
256
|
-
resize.handleResizeStart(syntheticEvent, edge as ResizeEdge)
|
|
251
|
+
resize.handleResizeStart(event, edge as ResizeEdge)
|
|
257
252
|
}}
|
|
258
253
|
>
|
|
259
254
|
{/* Render component using UIResourceRenderer for single component */}
|
|
@@ -24,7 +24,7 @@ export interface ResizeHandleProps {
|
|
|
24
24
|
/**
|
|
25
25
|
* Callback when resize starts
|
|
26
26
|
*/
|
|
27
|
-
onResizeStart?: (edge: ResizeEdge) => void
|
|
27
|
+
onResizeStart?: (edge: ResizeEdge, event: PointerEvent) => void
|
|
28
28
|
|
|
29
29
|
/**
|
|
30
30
|
* Whether the handle is disabled
|
|
@@ -195,7 +195,7 @@ export const ResizeHandle: Component<ResizeHandleProps> = (props) => {
|
|
|
195
195
|
e.preventDefault()
|
|
196
196
|
e.stopPropagation()
|
|
197
197
|
|
|
198
|
-
props.onResizeStart?.(props.edge)
|
|
198
|
+
props.onResizeStart?.(props.edge, e)
|
|
199
199
|
}
|
|
200
200
|
|
|
201
201
|
// Container styles
|
|
@@ -246,7 +246,12 @@ export const ResizeHandle: Component<ResizeHandleProps> = (props) => {
|
|
|
246
246
|
if (merged.disabled) return
|
|
247
247
|
if (e.key === 'Enter' || e.key === ' ') {
|
|
248
248
|
e.preventDefault()
|
|
249
|
-
|
|
249
|
+
// Create synthetic pointer event for keyboard activation
|
|
250
|
+
const syntheticEvent = new PointerEvent('pointerdown', {
|
|
251
|
+
clientX: window.innerWidth / 2,
|
|
252
|
+
clientY: window.innerHeight / 2
|
|
253
|
+
})
|
|
254
|
+
props.onResizeStart?.(props.edge, syntheticEvent)
|
|
250
255
|
}
|
|
251
256
|
}}
|
|
252
257
|
>
|