From aa9beeab70b4ff01f2fd111e83a8c4e3cdf21a3e Mon Sep 17 00:00:00 2001 From: Luiz Bills Date: Mon, 6 May 2024 10:21:34 -0300 Subject: [PATCH] update engine --- package-lock.json | 24 +++--- public/about.html | 37 ++++---- public/app.js | 201 +++++++++++++++++++++---------------------- public/litecanvas.js | 4 +- public/sw.js | 2 +- src/completions.js | 28 +++--- 6 files changed, 152 insertions(+), 144 deletions(-) diff --git a/package-lock.json b/package-lock.json index 3cb03b1..3c27fb2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -505,9 +505,9 @@ } }, "node_modules/@lezer/javascript": { - "version": "1.4.15", - "resolved": "https://registry.npmjs.org/@lezer/javascript/-/javascript-1.4.15.tgz", - "integrity": "sha512-B082ZdjI0vo2AgLqD834GlRTE9gwRX8NzHzKq5uDwEnQ9Dq+A/CEhd3nf68tiNA2f9O+8jS1NeSTUYT9IAqcTw==", + "version": "1.4.16", + "resolved": "https://registry.npmjs.org/@lezer/javascript/-/javascript-1.4.16.tgz", + "integrity": "sha512-84UXR3N7s11MPQHWgMnjb9571fr19MmXnr5zTv2XX0gHXXUvW3uPJ8GCjKrfTXmSdfktjRK0ayKklw+A13rk4g==", "dependencies": { "@lezer/common": "^1.2.0", "@lezer/highlight": "^1.1.3", @@ -523,14 +523,14 @@ } }, "node_modules/@litecanvas/litecanvas": { - "version": "0.25.0", - "resolved": "https://registry.npmjs.org/@litecanvas/litecanvas/-/litecanvas-0.25.0.tgz", - "integrity": "sha512-TdeUrv4ePIMLLl/zmPVP2M4fj882Xjdgl1PhqxhdCU/KtPDgm5mNTfKf1cj7yscbWew/fHU98+d8MKqRfn1/oA==" + "version": "0.26.0", + "resolved": "https://registry.npmjs.org/@litecanvas/litecanvas/-/litecanvas-0.26.0.tgz", + "integrity": "sha512-2PmcaMJG0x4pTi02Uo6K/7iKt8K911Rcs5Ouz/kAMtzgQT+juD0WZOmjvqF0PQAEsAsUAM3frips7d+wZV5Uqw==" }, "node_modules/@litecanvas/plugin-asset-loader": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/@litecanvas/plugin-asset-loader/-/plugin-asset-loader-0.3.0.tgz", - "integrity": "sha512-UaVqijTfX2Ivc8/OjABrtaqbDCbIZJbRsr7f8zOcq3CCFGv60iKiQCzDrbjRm882U6VU17xCXUo8HAgvm4Sunw==" + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/@litecanvas/plugin-asset-loader/-/plugin-asset-loader-0.3.1.tgz", + "integrity": "sha512-M+VMSSt8Dw0/+5BH3vms2ra5gFXvYnltpqs2CnLjltGZu2+woa3zx5ClPbKynvZeXKqq1pv522BA+PIekJDPwQ==" }, "node_modules/codemirror": { "version": "6.0.1", @@ -590,9 +590,9 @@ } }, "node_modules/eslint-linter-browserify": { - "version": "9.1.1", - "resolved": "https://registry.npmjs.org/eslint-linter-browserify/-/eslint-linter-browserify-9.1.1.tgz", - "integrity": "sha512-loRpCYRRm66WOBGqmLkPALg6Tmyvk67Nd1X+iZKLSfjf7QNbirPIukvwUAqte+uK8AFOZcOD7Jqyn+pUk4FxsA==" + "version": "9.2.0", + "resolved": "https://registry.npmjs.org/eslint-linter-browserify/-/eslint-linter-browserify-9.2.0.tgz", + "integrity": "sha512-y6b2CN2rVTNnc6tYspFt61thfS14E3TPUyxFWJGvPxqNdXXOOlGBI8rM8pTIWlVzUhnHpY9tglk7X14Rj3/yMg==" }, "node_modules/pako": { "version": "2.1.0", diff --git a/public/about.html b/public/about.html index dbface8..9efda72 100644 --- a/public/about.html +++ b/public/about.html @@ -139,7 +139,7 @@

Game Configuration

litecanvas(settings = {}); // the game loop callbacks -// if loop = undefined, will use these functions: +// if loop = undefined, will use these functions: // window.init(), window.update(dt), window.draw(), window.resized() settings.loop = { init: function, @@ -229,21 +229,28 @@

Functions for Drawing

// draw a text // alias: print(...) -text(x, y, text, color, size = 32): void +text(x, y, text, color = 3): void // set the text alignment and baseline +// default values: align = 'start', baseline = 'top' // see: https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/textAlign // see: https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/textBaseline -textalign(align = 'start', baseline = 'top'): void +textalign(align: string, baseline: string): void // set the default font family +// default: 'sans-serif' textfont(fontName: string): void +// set the font size +// default: 32 +textsize(size: number): void + // used to draw a text as 'bold' or 'italic' -textstyle(style:string) +textstyle(style: string) // returns the text dimensions like width and height -textmetrics(text:string, size = 32) +// when size is omitted, it will use the current font size defined by textsize() +textmetrics(text: string, size:number) /** * IMAGE DRAWING-RELATED FUNCTIONS @@ -279,13 +286,13 @@

Functions for Drawing

// and later, you restore the context using pop() // Adds a translation transformation to the current matrix -translate(x = 0, y = 0): void +translate(x: number, y: number): void // Adds a scaling transformation to the canvas units horizontally and/or vertically -scale(x = 1, y = 1): void +scale(x: number, y: number): void // Adds a rotation to the transformation matrix -rotate(radians = 0): void +rotate(radians: number): void // update the transformation matrix // when `resetFirst = true` uses `context.setTransform()` @@ -296,11 +303,11 @@

Functions for Drawing

// update the alpha (transparency) // see: https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/globalAlpha -alpha(value = 1): void +alpha(value: number): void // update the type of compositing operation // see: https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/globalCompositeOperation -blendmode(value = 'source-over'): void +blendmode(value: string): void // Provides filter effects such as blurring and grayscaling. // It is similar to the CSS filter property and accepts the same values. @@ -336,7 +343,7 @@

Math

// Returns `true` or `false` based on random chance (p) // example: chance(0.25) ? '25% true' : '75% false' -chance(p = 0.5): boolean +chance(p: number): boolean // Choose a random item from a Array choose(arr: Array): any @@ -380,7 +387,7 @@

Math

// Returns the tangent of a number in radians. tan(angle: number): number -// Returns the angle between the positive x-axis +// Returns the angle between the positive x-axis // and the origin (0, 0) to the point (x, y) atan2(y:number, x: number): number @@ -405,12 +412,12 @@

Math

// Returns the fractional part of a number fract(n: number): number -// Returns the smallest of the numbers given as input parameters, +// Returns the smallest of the numbers given as input parameters, // or `Infinity` if there are no parameters. // example: min(-10, 15, -1) returns -10 min(...ns: number): number -// Returns the largest of the numbers given as input parameters, +// Returns the largest of the numbers given as input parameters, // or `-Infinity` if there are no parameters. // example: max(-10, 15, -1) returns 15 max(...ns: number): number @@ -476,7 +483,7 @@

Globals Variables

// Math constants PI: number // approximately 3.14159 radians (180º) -TWO_PI: number // approximately 6.28318 radians (360º) +TWO_PI: number // approximately 6.28318 radians (360º) HALF_PI: number // approximately 1.57079 radians (90º) diff --git a/public/app.js b/public/app.js index f8a4719..75c530c 100644 --- a/public/app.js +++ b/public/app.js @@ -1,59 +1,59 @@ -(()=>{var EN=(r=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(r,{get:(e,t)=>(typeof require<"u"?require:e)[t]}):r)(function(r){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+r+'" is not supported')});function Di(r){let e=r.length;for(;--e>=0;)r[e]=0}var CN=0,D1=1,wN=2,kN=3,AN=258,Hc=29,$a=256,Da=$a+1+Hc,Ai=30,Kc=19,_1=2*Da+1,qs=15,Pc=16,PN=7,Jc=256,I1=16,F1=17,R1=18,Qc=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),el=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),TN=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),B1=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),DN=512,ts=new Array((Da+2)*2);Di(ts);var Aa=new Array(Ai*2);Di(Aa);var _a=new Array(DN);Di(_a);var Ia=new Array(AN-kN+1);Di(Ia);var ef=new Array(Hc);Di(ef);var tl=new Array(Ai);Di(tl);function Tc(r,e,t,s,n){this.static_tree=r,this.extra_bits=e,this.extra_base=t,this.elems=s,this.max_length=n,this.has_stree=r&&r.length}var N1,L1,$1;function Dc(r,e){this.dyn_tree=r,this.max_code=0,this.stat_desc=e}var M1=r=>r<256?_a[r]:_a[256+(r>>>7)],Fa=(r,e)=>{r.pending_buf[r.pending++]=e&255,r.pending_buf[r.pending++]=e>>>8&255},Lr=(r,e,t)=>{r.bi_valid>Pc-t?(r.bi_buf|=e<>Pc-r.bi_valid,r.bi_valid+=t-Pc):(r.bi_buf|=e<{Lr(r,t[e*2],t[e*2+1])},j1=(r,e)=>{let t=0;do t|=r&1,r>>>=1,t<<=1;while(--e>0);return t>>>1},_N=r=>{r.bi_valid===16?(Fa(r,r.bi_buf),r.bi_buf=0,r.bi_valid=0):r.bi_valid>=8&&(r.pending_buf[r.pending++]=r.bi_buf&255,r.bi_buf>>=8,r.bi_valid-=8)},IN=(r,e)=>{let t=e.dyn_tree,s=e.max_code,n=e.stat_desc.static_tree,i=e.stat_desc.has_stree,a=e.stat_desc.extra_bits,l=e.stat_desc.extra_base,o=e.stat_desc.max_length,u,c,p,h,f,d,m=0;for(h=0;h<=qs;h++)r.bl_count[h]=0;for(t[r.heap[r.heap_max]*2+1]=0,u=r.heap_max+1;u<_1;u++)c=r.heap[u],h=t[t[c*2+1]*2+1]+1,h>o&&(h=o,m++),t[c*2+1]=h,!(c>s)&&(r.bl_count[h]++,f=0,c>=l&&(f=a[c-l]),d=t[c*2],r.opt_len+=d*(h+f),i&&(r.static_len+=d*(n[c*2+1]+f)));if(m!==0){do{for(h=o-1;r.bl_count[h]===0;)h--;r.bl_count[h]--,r.bl_count[h+1]+=2,r.bl_count[o]--,m-=2}while(m>0);for(h=o;h!==0;h--)for(c=r.bl_count[h];c!==0;)p=r.heap[--u],!(p>s)&&(t[p*2+1]!==h&&(r.opt_len+=(h-t[p*2+1])*t[p*2],t[p*2+1]=h),c--)}},q1=(r,e,t)=>{let s=new Array(qs+1),n=0,i,a;for(i=1;i<=qs;i++)n=n+t[i-1]<<1,s[i]=n;for(a=0;a<=e;a++){let l=r[a*2+1];l!==0&&(r[a*2]=j1(s[l]++,l))}},FN=()=>{let r,e,t,s,n,i=new Array(qs+1);for(t=0,s=0;s>=7;s{let e;for(e=0;e{r.bi_valid>8?Fa(r,r.bi_buf):r.bi_valid>0&&(r.pending_buf[r.pending++]=r.bi_buf),r.bi_buf=0,r.bi_valid=0},ZO=(r,e,t,s)=>{let n=e*2,i=t*2;return r[n]{let s=r.heap[t],n=t<<1;for(;n<=r.heap_len&&(n{let s,n,i=0,a,l;if(r.sym_next!==0)do s=r.pending_buf[r.sym_buf+i++]&255,s+=(r.pending_buf[r.sym_buf+i++]&255)<<8,n=r.pending_buf[r.sym_buf+i++],s===0?Tn(r,n,e):(a=Ia[n],Tn(r,a+$a+1,e),l=Qc[a],l!==0&&(n-=ef[a],Lr(r,n,l)),s--,a=M1(s),Tn(r,a,t),l=el[a],l!==0&&(s-=tl[a],Lr(r,s,l)));while(i{let t=e.dyn_tree,s=e.stat_desc.static_tree,n=e.stat_desc.has_stree,i=e.stat_desc.elems,a,l,o=-1,u;for(r.heap_len=0,r.heap_max=_1,a=0;a>1;a>=1;a--)_c(r,t,a);u=i;do a=r.heap[1],r.heap[1]=r.heap[r.heap_len--],_c(r,t,1),l=r.heap[1],r.heap[--r.heap_max]=a,r.heap[--r.heap_max]=l,t[u*2]=t[a*2]+t[l*2],r.depth[u]=(r.depth[a]>=r.depth[l]?r.depth[a]:r.depth[l])+1,t[a*2+1]=t[l*2+1]=u,r.heap[1]=u++,_c(r,t,1);while(r.heap_len>=2);r.heap[--r.heap_max]=r.heap[1],IN(r,e),q1(t,o,r.bl_count)},XO=(r,e,t)=>{let s,n=-1,i,a=e[0*2+1],l=0,o=7,u=4;for(a===0&&(o=138,u=3),e[(t+1)*2+1]=65535,s=0;s<=t;s++)i=a,a=e[(s+1)*2+1],!(++l{let s,n=-1,i,a=e[0*2+1],l=0,o=7,u=4;for(a===0&&(o=138,u=3),s=0;s<=t;s++)if(i=a,a=e[(s+1)*2+1],!(++l{let e;for(XO(r,r.dyn_ltree,r.l_desc.max_code),XO(r,r.dyn_dtree,r.d_desc.max_code),Uc(r,r.bl_desc),e=Kc-1;e>=3&&r.bl_tree[B1[e]*2+1]===0;e--);return r.opt_len+=3*(e+1)+5+5+4,e},BN=(r,e,t,s)=>{let n;for(Lr(r,e-257,5),Lr(r,t-1,5),Lr(r,s-4,4),n=0;n{let e=4093624447,t;for(t=0;t<=31;t++,e>>>=1)if(e&1&&r.dyn_ltree[t*2]!==0)return 0;if(r.dyn_ltree[9*2]!==0||r.dyn_ltree[10*2]!==0||r.dyn_ltree[13*2]!==0)return 1;for(t=32;t<$a;t++)if(r.dyn_ltree[t*2]!==0)return 1;return 0},YO=!1,LN=r=>{YO||(FN(),YO=!0),r.l_desc=new Dc(r.dyn_ltree,N1),r.d_desc=new Dc(r.dyn_dtree,L1),r.bl_desc=new Dc(r.bl_tree,$1),r.bi_buf=0,r.bi_valid=0,Q1(r)},V1=(r,e,t,s)=>{Lr(r,(CN<<1)+(s?1:0),3),U1(r),Fa(r,t),Fa(r,~t),t&&r.pending_buf.set(r.window.subarray(e,e+t),r.pending),r.pending+=t},$N=r=>{Lr(r,D1<<1,3),Tn(r,Jc,ts),_N(r)},MN=(r,e,t,s)=>{let n,i,a=0;r.level>0?(r.strm.data_type===2&&(r.strm.data_type=NN(r)),Uc(r,r.l_desc),Uc(r,r.d_desc),a=RN(r),n=r.opt_len+3+7>>>3,i=r.static_len+3+7>>>3,i<=n&&(n=i)):n=i=t+5,t+4<=n&&e!==-1?V1(r,e,t,s):r.strategy===4||i===n?(Lr(r,(D1<<1)+(s?1:0),3),zO(r,ts,Aa)):(Lr(r,(wN<<1)+(s?1:0),3),BN(r,r.l_desc.max_code+1,r.d_desc.max_code+1,a+1),zO(r,r.dyn_ltree,r.dyn_dtree)),Q1(r),s&&U1(r)},jN=(r,e,t)=>(r.pending_buf[r.sym_buf+r.sym_next++]=e,r.pending_buf[r.sym_buf+r.sym_next++]=e>>8,r.pending_buf[r.sym_buf+r.sym_next++]=t,e===0?r.dyn_ltree[t*2]++:(r.matches++,e--,r.dyn_ltree[(Ia[t]+$a+1)*2]++,r.dyn_dtree[M1(e)*2]++),r.sym_next===r.sym_end),qN=LN,QN=V1,UN=MN,VN=jN,WN=$N,ZN={_tr_init:qN,_tr_stored_block:QN,_tr_flush_block:UN,_tr_tally:VN,_tr_align:WN},zN=(r,e,t,s)=>{let n=r&65535|0,i=r>>>16&65535|0,a=0;for(;t!==0;){a=t>2e3?2e3:t,t-=a;do n=n+e[s++]|0,i=i+n|0;while(--a);n%=65521,i%=65521}return n|i<<16|0},Ra=zN,XN=()=>{let r,e=[];for(var t=0;t<256;t++){r=t;for(var s=0;s<8;s++)r=r&1?3988292384^r>>>1:r>>>1;e[t]=r}return e},GN=new Uint32Array(XN()),YN=(r,e,t,s)=>{let n=GN,i=s+t;r^=-1;for(let a=s;a>>8^n[(r^e[a])&255];return r^-1},mr=YN,Vs={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},zs={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8},{_tr_init:HN,_tr_stored_block:Vc,_tr_flush_block:KN,_tr_tally:xs,_tr_align:JN}=ZN,{Z_NO_FLUSH:bs,Z_PARTIAL_FLUSH:eL,Z_FULL_FLUSH:tL,Z_FINISH:en,Z_BLOCK:HO,Z_OK:vr,Z_STREAM_END:KO,Z_STREAM_ERROR:Dn,Z_DATA_ERROR:rL,Z_BUF_ERROR:Ic,Z_DEFAULT_COMPRESSION:nL,Z_FILTERED:sL,Z_HUFFMAN_ONLY:Go,Z_RLE:iL,Z_FIXED:aL,Z_DEFAULT_STRATEGY:oL,Z_UNKNOWN:lL,Z_DEFLATED:sl}=zs,uL=9,cL=15,fL=8,pL=29,hL=256,Wc=hL+1+pL,dL=30,mL=19,gL=2*Wc+1,yL=15,It=3,ys=258,_n=ys+It+1,xL=32,Pi=42,tf=57,Zc=69,zc=73,Xc=91,Gc=103,Qs=113,wa=666,Tr=1,_i=2,Ws=3,Ii=4,bL=3,Us=(r,e)=>(r.msg=Vs[e],e),JO=r=>r*2-(r>4?9:0),gs=r=>{let e=r.length;for(;--e>=0;)r[e]=0},vL=r=>{let e,t,s,n=r.w_size;e=r.hash_size,s=e;do t=r.head[--s],r.head[s]=t>=n?t-n:0;while(--e);e=n,s=e;do t=r.prev[--s],r.prev[s]=t>=n?t-n:0;while(--e)},OL=(r,e,t)=>(e<{let e=r.state,t=e.pending;t>r.avail_out&&(t=r.avail_out),t!==0&&(r.output.set(e.pending_buf.subarray(e.pending_out,e.pending_out+t),r.next_out),r.next_out+=t,e.pending_out+=t,r.total_out+=t,r.avail_out-=t,e.pending-=t,e.pending===0&&(e.pending_out=0))},Wr=(r,e)=>{KN(r,r.block_start>=0?r.block_start:-1,r.strstart-r.block_start,e),r.block_start=r.strstart,Vr(r.strm)},$t=(r,e)=>{r.pending_buf[r.pending++]=e},Ca=(r,e)=>{r.pending_buf[r.pending++]=e>>>8&255,r.pending_buf[r.pending++]=e&255},Yc=(r,e,t,s)=>{let n=r.avail_in;return n>s&&(n=s),n===0?0:(r.avail_in-=n,e.set(r.input.subarray(r.next_in,r.next_in+n),t),r.state.wrap===1?r.adler=Ra(r.adler,e,n,t):r.state.wrap===2&&(r.adler=mr(r.adler,e,n,t)),r.next_in+=n,r.total_in+=n,n)},W1=(r,e)=>{let t=r.max_chain_length,s=r.strstart,n,i,a=r.prev_length,l=r.nice_match,o=r.strstart>r.w_size-_n?r.strstart-(r.w_size-_n):0,u=r.window,c=r.w_mask,p=r.prev,h=r.strstart+ys,f=u[s+a-1],d=u[s+a];r.prev_length>=r.good_match&&(t>>=2),l>r.lookahead&&(l=r.lookahead);do if(n=e,!(u[n+a]!==d||u[n+a-1]!==f||u[n]!==u[s]||u[++n]!==u[s+1])){s+=2,n++;do;while(u[++s]===u[++n]&&u[++s]===u[++n]&&u[++s]===u[++n]&&u[++s]===u[++n]&&u[++s]===u[++n]&&u[++s]===u[++n]&&u[++s]===u[++n]&&u[++s]===u[++n]&&sa){if(r.match_start=e,a=i,i>=l)break;f=u[s+a-1],d=u[s+a]}}while((e=p[e&c])>o&&--t!==0);return a<=r.lookahead?a:r.lookahead},Ti=r=>{let e=r.w_size,t,s,n;do{if(s=r.window_size-r.lookahead-r.strstart,r.strstart>=e+(e-_n)&&(r.window.set(r.window.subarray(e,e+e-s),0),r.match_start-=e,r.strstart-=e,r.block_start-=e,r.insert>r.strstart&&(r.insert=r.strstart),vL(r),s+=e),r.strm.avail_in===0)break;if(t=Yc(r.strm,r.window,r.strstart+r.lookahead,s),r.lookahead+=t,r.lookahead+r.insert>=It)for(n=r.strstart-r.insert,r.ins_h=r.window[n],r.ins_h=vs(r,r.ins_h,r.window[n+1]);r.insert&&(r.ins_h=vs(r,r.ins_h,r.window[n+It-1]),r.prev[n&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=n,n++,r.insert--,!(r.lookahead+r.insert{let t=r.pending_buf_size-5>r.w_size?r.w_size:r.pending_buf_size-5,s,n,i,a=0,l=r.strm.avail_in;do{if(s=65535,i=r.bi_valid+42>>3,r.strm.avail_outn+r.strm.avail_in&&(s=n+r.strm.avail_in),s>i&&(s=i),s>8,r.pending_buf[r.pending-2]=~s,r.pending_buf[r.pending-1]=~s>>8,Vr(r.strm),n&&(n>s&&(n=s),r.strm.output.set(r.window.subarray(r.block_start,r.block_start+n),r.strm.next_out),r.strm.next_out+=n,r.strm.avail_out-=n,r.strm.total_out+=n,r.block_start+=n,s-=n),s&&(Yc(r.strm,r.strm.output,r.strm.next_out,s),r.strm.next_out+=s,r.strm.avail_out-=s,r.strm.total_out+=s)}while(a===0);return l-=r.strm.avail_in,l&&(l>=r.w_size?(r.matches=2,r.window.set(r.strm.input.subarray(r.strm.next_in-r.w_size,r.strm.next_in),0),r.strstart=r.w_size,r.insert=r.strstart):(r.window_size-r.strstart<=l&&(r.strstart-=r.w_size,r.window.set(r.window.subarray(r.w_size,r.w_size+r.strstart),0),r.matches<2&&r.matches++,r.insert>r.strstart&&(r.insert=r.strstart)),r.window.set(r.strm.input.subarray(r.strm.next_in-l,r.strm.next_in),r.strstart),r.strstart+=l,r.insert+=l>r.w_size-r.insert?r.w_size-r.insert:l),r.block_start=r.strstart),r.high_wateri&&r.block_start>=r.w_size&&(r.block_start-=r.w_size,r.strstart-=r.w_size,r.window.set(r.window.subarray(r.w_size,r.w_size+r.strstart),0),r.matches<2&&r.matches++,i+=r.w_size,r.insert>r.strstart&&(r.insert=r.strstart)),i>r.strm.avail_in&&(i=r.strm.avail_in),i&&(Yc(r.strm,r.window,r.strstart,i),r.strstart+=i,r.insert+=i>r.w_size-r.insert?r.w_size-r.insert:i),r.high_water>3,i=r.pending_buf_size-i>65535?65535:r.pending_buf_size-i,t=i>r.w_size?r.w_size:i,n=r.strstart-r.block_start,(n>=t||(n||e===en)&&e!==bs&&r.strm.avail_in===0&&n<=i)&&(s=n>i?i:n,a=e===en&&r.strm.avail_in===0&&s===n?1:0,Vc(r,r.block_start,s,a),r.block_start+=s,Vr(r.strm)),a?Ws:Tr)},Fc=(r,e)=>{let t,s;for(;;){if(r.lookahead<_n){if(Ti(r),r.lookahead<_n&&e===bs)return Tr;if(r.lookahead===0)break}if(t=0,r.lookahead>=It&&(r.ins_h=vs(r,r.ins_h,r.window[r.strstart+It-1]),t=r.prev[r.strstart&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=r.strstart),t!==0&&r.strstart-t<=r.w_size-_n&&(r.match_length=W1(r,t)),r.match_length>=It)if(s=xs(r,r.strstart-r.match_start,r.match_length-It),r.lookahead-=r.match_length,r.match_length<=r.max_lazy_match&&r.lookahead>=It){r.match_length--;do r.strstart++,r.ins_h=vs(r,r.ins_h,r.window[r.strstart+It-1]),t=r.prev[r.strstart&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=r.strstart;while(--r.match_length!==0);r.strstart++}else r.strstart+=r.match_length,r.match_length=0,r.ins_h=r.window[r.strstart],r.ins_h=vs(r,r.ins_h,r.window[r.strstart+1]);else s=xs(r,0,r.window[r.strstart]),r.lookahead--,r.strstart++;if(s&&(Wr(r,!1),r.strm.avail_out===0))return Tr}return r.insert=r.strstart{let t,s,n;for(;;){if(r.lookahead<_n){if(Ti(r),r.lookahead<_n&&e===bs)return Tr;if(r.lookahead===0)break}if(t=0,r.lookahead>=It&&(r.ins_h=vs(r,r.ins_h,r.window[r.strstart+It-1]),t=r.prev[r.strstart&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=r.strstart),r.prev_length=r.match_length,r.prev_match=r.match_start,r.match_length=It-1,t!==0&&r.prev_length4096)&&(r.match_length=It-1)),r.prev_length>=It&&r.match_length<=r.prev_length){n=r.strstart+r.lookahead-It,s=xs(r,r.strstart-1-r.prev_match,r.prev_length-It),r.lookahead-=r.prev_length-1,r.prev_length-=2;do++r.strstart<=n&&(r.ins_h=vs(r,r.ins_h,r.window[r.strstart+It-1]),t=r.prev[r.strstart&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=r.strstart);while(--r.prev_length!==0);if(r.match_available=0,r.match_length=It-1,r.strstart++,s&&(Wr(r,!1),r.strm.avail_out===0))return Tr}else if(r.match_available){if(s=xs(r,0,r.window[r.strstart-1]),s&&Wr(r,!1),r.strstart++,r.lookahead--,r.strm.avail_out===0)return Tr}else r.match_available=1,r.strstart++,r.lookahead--}return r.match_available&&(s=xs(r,0,r.window[r.strstart-1]),r.match_available=0),r.insert=r.strstart{let t,s,n,i,a=r.window;for(;;){if(r.lookahead<=ys){if(Ti(r),r.lookahead<=ys&&e===bs)return Tr;if(r.lookahead===0)break}if(r.match_length=0,r.lookahead>=It&&r.strstart>0&&(n=r.strstart-1,s=a[n],s===a[++n]&&s===a[++n]&&s===a[++n])){i=r.strstart+ys;do;while(s===a[++n]&&s===a[++n]&&s===a[++n]&&s===a[++n]&&s===a[++n]&&s===a[++n]&&s===a[++n]&&s===a[++n]&&nr.lookahead&&(r.match_length=r.lookahead)}if(r.match_length>=It?(t=xs(r,1,r.match_length-It),r.lookahead-=r.match_length,r.strstart+=r.match_length,r.match_length=0):(t=xs(r,0,r.window[r.strstart]),r.lookahead--,r.strstart++),t&&(Wr(r,!1),r.strm.avail_out===0))return Tr}return r.insert=0,e===en?(Wr(r,!0),r.strm.avail_out===0?Ws:Ii):r.sym_next&&(Wr(r,!1),r.strm.avail_out===0)?Tr:_i},EL=(r,e)=>{let t;for(;;){if(r.lookahead===0&&(Ti(r),r.lookahead===0)){if(e===bs)return Tr;break}if(r.match_length=0,t=xs(r,0,r.window[r.strstart]),r.lookahead--,r.strstart++,t&&(Wr(r,!1),r.strm.avail_out===0))return Tr}return r.insert=0,e===en?(Wr(r,!0),r.strm.avail_out===0?Ws:Ii):r.sym_next&&(Wr(r,!1),r.strm.avail_out===0)?Tr:_i};function Pn(r,e,t,s,n){this.good_length=r,this.max_lazy=e,this.nice_length=t,this.max_chain=s,this.func=n}var ka=[new Pn(0,0,0,0,Z1),new Pn(4,4,8,4,Fc),new Pn(4,5,16,8,Fc),new Pn(4,6,32,32,Fc),new Pn(4,4,16,16,wi),new Pn(8,16,32,32,wi),new Pn(8,16,128,128,wi),new Pn(8,32,128,256,wi),new Pn(32,128,258,1024,wi),new Pn(32,258,258,4096,wi)],CL=r=>{r.window_size=2*r.w_size,gs(r.head),r.max_lazy_match=ka[r.level].max_lazy,r.good_match=ka[r.level].good_length,r.nice_match=ka[r.level].nice_length,r.max_chain_length=ka[r.level].max_chain,r.strstart=0,r.block_start=0,r.lookahead=0,r.insert=0,r.match_length=r.prev_length=It-1,r.match_available=0,r.ins_h=0};function wL(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=sl,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(gL*2),this.dyn_dtree=new Uint16Array((2*dL+1)*2),this.bl_tree=new Uint16Array((2*mL+1)*2),gs(this.dyn_ltree),gs(this.dyn_dtree),gs(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(yL+1),this.heap=new Uint16Array(2*Wc+1),gs(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*Wc+1),gs(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}var Ma=r=>{if(!r)return 1;let e=r.state;return!e||e.strm!==r||e.status!==Pi&&e.status!==tf&&e.status!==Zc&&e.status!==zc&&e.status!==Xc&&e.status!==Gc&&e.status!==Qs&&e.status!==wa?1:0},z1=r=>{if(Ma(r))return Us(r,Dn);r.total_in=r.total_out=0,r.data_type=lL;let e=r.state;return e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap===2?tf:e.wrap?Pi:Qs,r.adler=e.wrap===2?0:1,e.last_flush=-2,HN(e),vr},X1=r=>{let e=z1(r);return e===vr&&CL(r.state),e},kL=(r,e)=>Ma(r)||r.state.wrap!==2?Dn:(r.state.gzhead=e,vr),G1=(r,e,t,s,n,i)=>{if(!r)return Dn;let a=1;if(e===nL&&(e=6),s<0?(a=0,s=-s):s>15&&(a=2,s-=16),n<1||n>uL||t!==sl||s<8||s>15||e<0||e>9||i<0||i>aL||s===8&&a!==1)return Us(r,Dn);s===8&&(s=9);let l=new wL;return r.state=l,l.strm=r,l.status=Pi,l.wrap=a,l.gzhead=null,l.w_bits=s,l.w_size=1<G1(r,e,sl,cL,fL,oL),PL=(r,e)=>{if(Ma(r)||e>HO||e<0)return r?Us(r,Dn):Dn;let t=r.state;if(!r.output||r.avail_in!==0&&!r.input||t.status===wa&&e!==en)return Us(r,r.avail_out===0?Ic:Dn);let s=t.last_flush;if(t.last_flush=e,t.pending!==0){if(Vr(r),r.avail_out===0)return t.last_flush=-1,vr}else if(r.avail_in===0&&JO(e)<=JO(s)&&e!==en)return Us(r,Ic);if(t.status===wa&&r.avail_in!==0)return Us(r,Ic);if(t.status===Pi&&t.wrap===0&&(t.status=Qs),t.status===Pi){let n=sl+(t.w_bits-8<<4)<<8,i=-1;if(t.strategy>=Go||t.level<2?i=0:t.level<6?i=1:t.level===6?i=2:i=3,n|=i<<6,t.strstart!==0&&(n|=xL),n+=31-n%31,Ca(t,n),t.strstart!==0&&(Ca(t,r.adler>>>16),Ca(t,r.adler&65535)),r.adler=1,t.status=Qs,Vr(r),t.pending!==0)return t.last_flush=-1,vr}if(t.status===tf){if(r.adler=0,$t(t,31),$t(t,139),$t(t,8),t.gzhead)$t(t,(t.gzhead.text?1:0)+(t.gzhead.hcrc?2:0)+(t.gzhead.extra?4:0)+(t.gzhead.name?8:0)+(t.gzhead.comment?16:0)),$t(t,t.gzhead.time&255),$t(t,t.gzhead.time>>8&255),$t(t,t.gzhead.time>>16&255),$t(t,t.gzhead.time>>24&255),$t(t,t.level===9?2:t.strategy>=Go||t.level<2?4:0),$t(t,t.gzhead.os&255),t.gzhead.extra&&t.gzhead.extra.length&&($t(t,t.gzhead.extra.length&255),$t(t,t.gzhead.extra.length>>8&255)),t.gzhead.hcrc&&(r.adler=mr(r.adler,t.pending_buf,t.pending,0)),t.gzindex=0,t.status=Zc;else if($t(t,0),$t(t,0),$t(t,0),$t(t,0),$t(t,0),$t(t,t.level===9?2:t.strategy>=Go||t.level<2?4:0),$t(t,bL),t.status=Qs,Vr(r),t.pending!==0)return t.last_flush=-1,vr}if(t.status===Zc){if(t.gzhead.extra){let n=t.pending,i=(t.gzhead.extra.length&65535)-t.gzindex;for(;t.pending+i>t.pending_buf_size;){let l=t.pending_buf_size-t.pending;if(t.pending_buf.set(t.gzhead.extra.subarray(t.gzindex,t.gzindex+l),t.pending),t.pending=t.pending_buf_size,t.gzhead.hcrc&&t.pending>n&&(r.adler=mr(r.adler,t.pending_buf,t.pending-n,n)),t.gzindex+=l,Vr(r),t.pending!==0)return t.last_flush=-1,vr;n=0,i-=l}let a=new Uint8Array(t.gzhead.extra);t.pending_buf.set(a.subarray(t.gzindex,t.gzindex+i),t.pending),t.pending+=i,t.gzhead.hcrc&&t.pending>n&&(r.adler=mr(r.adler,t.pending_buf,t.pending-n,n)),t.gzindex=0}t.status=zc}if(t.status===zc){if(t.gzhead.name){let n=t.pending,i;do{if(t.pending===t.pending_buf_size){if(t.gzhead.hcrc&&t.pending>n&&(r.adler=mr(r.adler,t.pending_buf,t.pending-n,n)),Vr(r),t.pending!==0)return t.last_flush=-1,vr;n=0}t.gzindexn&&(r.adler=mr(r.adler,t.pending_buf,t.pending-n,n)),t.gzindex=0}t.status=Xc}if(t.status===Xc){if(t.gzhead.comment){let n=t.pending,i;do{if(t.pending===t.pending_buf_size){if(t.gzhead.hcrc&&t.pending>n&&(r.adler=mr(r.adler,t.pending_buf,t.pending-n,n)),Vr(r),t.pending!==0)return t.last_flush=-1,vr;n=0}t.gzindexn&&(r.adler=mr(r.adler,t.pending_buf,t.pending-n,n))}t.status=Gc}if(t.status===Gc){if(t.gzhead.hcrc){if(t.pending+2>t.pending_buf_size&&(Vr(r),t.pending!==0))return t.last_flush=-1,vr;$t(t,r.adler&255),$t(t,r.adler>>8&255),r.adler=0}if(t.status=Qs,Vr(r),t.pending!==0)return t.last_flush=-1,vr}if(r.avail_in!==0||t.lookahead!==0||e!==bs&&t.status!==wa){let n=t.level===0?Z1(t,e):t.strategy===Go?EL(t,e):t.strategy===iL?SL(t,e):ka[t.level].func(t,e);if((n===Ws||n===Ii)&&(t.status=wa),n===Tr||n===Ws)return r.avail_out===0&&(t.last_flush=-1),vr;if(n===_i&&(e===eL?JN(t):e!==HO&&(Vc(t,0,0,!1),e===tL&&(gs(t.head),t.lookahead===0&&(t.strstart=0,t.block_start=0,t.insert=0))),Vr(r),r.avail_out===0))return t.last_flush=-1,vr}return e!==en?vr:t.wrap<=0?KO:(t.wrap===2?($t(t,r.adler&255),$t(t,r.adler>>8&255),$t(t,r.adler>>16&255),$t(t,r.adler>>24&255),$t(t,r.total_in&255),$t(t,r.total_in>>8&255),$t(t,r.total_in>>16&255),$t(t,r.total_in>>24&255)):(Ca(t,r.adler>>>16),Ca(t,r.adler&65535)),Vr(r),t.wrap>0&&(t.wrap=-t.wrap),t.pending!==0?vr:KO)},TL=r=>{if(Ma(r))return Dn;let e=r.state.status;return r.state=null,e===Qs?Us(r,rL):vr},DL=(r,e)=>{let t=e.length;if(Ma(r))return Dn;let s=r.state,n=s.wrap;if(n===2||n===1&&s.status!==Pi||s.lookahead)return Dn;if(n===1&&(r.adler=Ra(r.adler,e,t,0)),s.wrap=0,t>=s.w_size){n===0&&(gs(s.head),s.strstart=0,s.block_start=0,s.insert=0);let o=new Uint8Array(s.w_size);o.set(e.subarray(t-s.w_size,t),0),e=o,t=s.w_size}let i=r.avail_in,a=r.next_in,l=r.input;for(r.avail_in=t,r.next_in=0,r.input=e,Ti(s);s.lookahead>=It;){let o=s.strstart,u=s.lookahead-(It-1);do s.ins_h=vs(s,s.ins_h,s.window[o+It-1]),s.prev[o&s.w_mask]=s.head[s.ins_h],s.head[s.ins_h]=o,o++;while(--u);s.strstart=o,s.lookahead=It-1,Ti(s)}return s.strstart+=s.lookahead,s.block_start=s.strstart,s.insert=s.lookahead,s.lookahead=0,s.match_length=s.prev_length=It-1,s.match_available=0,r.next_in=a,r.input=l,r.avail_in=i,s.wrap=n,vr},_L=AL,IL=G1,FL=X1,RL=z1,BL=kL,NL=PL,LL=TL,$L=DL,ML="pako deflate (from Nodeca project)",Pa={deflateInit:_L,deflateInit2:IL,deflateReset:FL,deflateResetKeep:RL,deflateSetHeader:BL,deflate:NL,deflateEnd:LL,deflateSetDictionary:$L,deflateInfo:ML},jL=(r,e)=>Object.prototype.hasOwnProperty.call(r,e),qL=function(r){let e=Array.prototype.slice.call(arguments,1);for(;e.length;){let t=e.shift();if(t){if(typeof t!="object")throw new TypeError(t+"must be non-object");for(let s in t)jL(t,s)&&(r[s]=t[s])}}return r},QL=r=>{let e=0;for(let s=0,n=r.length;s=252?6:r>=248?5:r>=240?4:r>=224?3:r>=192?2:1;Ba[254]=Ba[254]=1;var UL=r=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(r);let e,t,s,n,i,a=r.length,l=0;for(n=0;n>>6,e[i++]=128|t&63):t<65536?(e[i++]=224|t>>>12,e[i++]=128|t>>>6&63,e[i++]=128|t&63):(e[i++]=240|t>>>18,e[i++]=128|t>>>12&63,e[i++]=128|t>>>6&63,e[i++]=128|t&63);return e},VL=(r,e)=>{if(e<65534&&r.subarray&&Y1)return String.fromCharCode.apply(null,r.length===e?r:r.subarray(0,e));let t="";for(let s=0;s{let t=e||r.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(r.subarray(0,e));let s,n,i=new Array(t*2);for(n=0,s=0;s4){i[n++]=65533,s+=l-1;continue}for(a&=l===2?31:l===3?15:7;l>1&&s1){i[n++]=65533;continue}a<65536?i[n++]=a:(a-=65536,i[n++]=55296|a>>10&1023,i[n++]=56320|a&1023)}return VL(i,n)},ZL=(r,e)=>{e=e||r.length,e>r.length&&(e=r.length);let t=e-1;for(;t>=0&&(r[t]&192)===128;)t--;return t<0||t===0?e:t+Ba[r[t]]>e?t:e},Na={string2buf:UL,buf2string:WL,utf8border:ZL};function zL(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var H1=zL,K1=Object.prototype.toString,{Z_NO_FLUSH:XL,Z_SYNC_FLUSH:GL,Z_FULL_FLUSH:YL,Z_FINISH:HL,Z_OK:rl,Z_STREAM_END:KL,Z_DEFAULT_COMPRESSION:JL,Z_DEFAULT_STRATEGY:e$,Z_DEFLATED:t$}=zs;function ja(r){this.options=il.assign({level:JL,method:t$,chunkSize:16384,windowBits:15,memLevel:8,strategy:e$},r||{});let e=this.options;e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new H1,this.strm.avail_out=0;let t=Pa.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(t!==rl)throw new Error(Vs[t]);if(e.header&&Pa.deflateSetHeader(this.strm,e.header),e.dictionary){let s;if(typeof e.dictionary=="string"?s=Na.string2buf(e.dictionary):K1.call(e.dictionary)==="[object ArrayBuffer]"?s=new Uint8Array(e.dictionary):s=e.dictionary,t=Pa.deflateSetDictionary(this.strm,s),t!==rl)throw new Error(Vs[t]);this._dict_set=!0}}ja.prototype.push=function(r,e){let t=this.strm,s=this.options.chunkSize,n,i;if(this.ended)return!1;for(e===~~e?i=e:i=e===!0?HL:XL,typeof r=="string"?t.input=Na.string2buf(r):K1.call(r)==="[object ArrayBuffer]"?t.input=new Uint8Array(r):t.input=r,t.next_in=0,t.avail_in=t.input.length;;){if(t.avail_out===0&&(t.output=new Uint8Array(s),t.next_out=0,t.avail_out=s),(i===GL||i===YL)&&t.avail_out<=6){this.onData(t.output.subarray(0,t.next_out)),t.avail_out=0;continue}if(n=Pa.deflate(t,i),n===KL)return t.next_out>0&&this.onData(t.output.subarray(0,t.next_out)),n=Pa.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===rl;if(t.avail_out===0){this.onData(t.output);continue}if(i>0&&t.next_out>0){this.onData(t.output.subarray(0,t.next_out)),t.avail_out=0;continue}if(t.avail_in===0)break}return!0};ja.prototype.onData=function(r){this.chunks.push(r)};ja.prototype.onEnd=function(r){r===rl&&(this.result=il.flattenChunks(this.chunks)),this.chunks=[],this.err=r,this.msg=this.strm.msg};function rf(r,e){let t=new ja(e);if(t.push(r,!0),t.err)throw t.msg||Vs[t.err];return t.result}function r$(r,e){return e=e||{},e.raw=!0,rf(r,e)}function n$(r,e){return e=e||{},e.gzip=!0,rf(r,e)}var s$=ja,i$=rf,a$=r$,o$=n$,l$=zs,u$={Deflate:s$,deflate:i$,deflateRaw:a$,gzip:o$,constants:l$},Yo=16209,c$=16191,f$=function(e,t){let s,n,i,a,l,o,u,c,p,h,f,d,m,g,y,b,v,S,C,O,w,E,k,A,D=e.state;s=e.next_in,k=e.input,n=s+(e.avail_in-5),i=e.next_out,A=e.output,a=i-(t-e.avail_out),l=i+(e.avail_out-257),o=D.dmax,u=D.wsize,c=D.whave,p=D.wnext,h=D.window,f=D.hold,d=D.bits,m=D.lencode,g=D.distcode,y=(1<>>24,f>>>=S,d-=S,S=v>>>16&255,S===0)A[i++]=v&65535;else if(S&16){C=v&65535,S&=15,S&&(d>>=S,d-=S),d<15&&(f+=k[s++]<>>24,f>>>=S,d-=S,S=v>>>16&255,S&16){if(O=v&65535,S&=15,do){e.msg="invalid distance too far back",D.mode=Yo;break e}if(f>>>=S,d-=S,S=i-a,O>S){if(S=O-S,S>c&&D.sane){e.msg="invalid distance too far back",D.mode=Yo;break e}if(w=0,E=h,p===0){if(w+=u-S,S2;)A[i++]=E[w++],A[i++]=E[w++],A[i++]=E[w++],C-=3;C&&(A[i++]=E[w++],C>1&&(A[i++]=E[w++]))}else{w=i-O;do A[i++]=A[w++],A[i++]=A[w++],A[i++]=A[w++],C-=3;while(C>2);C&&(A[i++]=A[w++],C>1&&(A[i++]=A[w++]))}}else if(S&64){e.msg="invalid distance code",D.mode=Yo;break e}else{v=g[(v&65535)+(f&(1<>3,s-=C,d-=C<<3,f&=(1<{let o=l.bits,u=0,c=0,p=0,h=0,f=0,d=0,m=0,g=0,y=0,b=0,v,S,C,O,w,E=null,k,A=new Uint16Array(ki+1),D=new Uint16Array(ki+1),_=null,B,T,F;for(u=0;u<=ki;u++)A[u]=0;for(c=0;c=1&&A[h]===0;h--);if(f>h&&(f=h),h===0)return n[i++]=1<<24|64<<16|0,n[i++]=1<<24|64<<16|0,l.bits=1,0;for(p=1;p0&&(r===r1||h!==1))return-1;for(D[1]=0,u=1;ue1||r===n1&&y>t1)return 1;for(;;){B=u-m,a[c]+1=k?(T=_[a[c]-k],F=E[a[c]-k]):(T=96,F=0),v=1<>m)+S]=B<<24|T<<16|F|0;while(S!==0);for(v=1<>=1;if(v!==0?(b&=v-1,b+=v):b=0,c++,--A[u]===0){if(u===h)break;u=e[t+a[c]]}if(u>f&&(b&O)!==C){for(m===0&&(m=f),w+=p,d=u-m,g=1<e1||r===n1&&y>t1)return 1;C=b&O,n[C]=f<<24|d<<16|w-i|0}}return b!==0&&(n[w+b]=u-m<<24|64<<16|0),l.bits=f,0},Ta=g$,y$=0,J1=1,eS=2,{Z_FINISH:s1,Z_BLOCK:x$,Z_TREES:Ho,Z_OK:Zs,Z_STREAM_END:b$,Z_NEED_DICT:v$,Z_STREAM_ERROR:tn,Z_DATA_ERROR:tS,Z_MEM_ERROR:rS,Z_BUF_ERROR:O$,Z_DEFLATED:i1}=zs,al=16180,a1=16181,o1=16182,l1=16183,u1=16184,c1=16185,f1=16186,p1=16187,h1=16188,d1=16189,nl=16190,es=16191,Bc=16192,m1=16193,Nc=16194,g1=16195,y1=16196,x1=16197,b1=16198,Ko=16199,Jo=16200,v1=16201,O1=16202,S1=16203,E1=16204,C1=16205,Lc=16206,w1=16207,k1=16208,tr=16209,nS=16210,sS=16211,S$=852,E$=592,C$=15,w$=C$,A1=r=>(r>>>24&255)+(r>>>8&65280)+((r&65280)<<8)+((r&255)<<24);function k$(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}var Xs=r=>{if(!r)return 1;let e=r.state;return!e||e.strm!==r||e.modesS?1:0},iS=r=>{if(Xs(r))return tn;let e=r.state;return r.total_in=r.total_out=e.total=0,r.msg="",e.wrap&&(r.adler=e.wrap&1),e.mode=al,e.last=0,e.havedict=0,e.flags=-1,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new Int32Array(S$),e.distcode=e.distdyn=new Int32Array(E$),e.sane=1,e.back=-1,Zs},aS=r=>{if(Xs(r))return tn;let e=r.state;return e.wsize=0,e.whave=0,e.wnext=0,iS(r)},oS=(r,e)=>{let t;if(Xs(r))return tn;let s=r.state;return e<0?(t=0,e=-e):(t=(e>>4)+5,e<48&&(e&=15)),e&&(e<8||e>15)?tn:(s.window!==null&&s.wbits!==e&&(s.window=null),s.wrap=t,s.wbits=e,aS(r))},lS=(r,e)=>{if(!r)return tn;let t=new k$;r.state=t,t.strm=r,t.window=null,t.mode=al;let s=oS(r,e);return s!==Zs&&(r.state=null),s},A$=r=>lS(r,w$),P1=!0,$c,Mc,P$=r=>{if(P1){$c=new Int32Array(512),Mc=new Int32Array(32);let e=0;for(;e<144;)r.lens[e++]=8;for(;e<256;)r.lens[e++]=9;for(;e<280;)r.lens[e++]=7;for(;e<288;)r.lens[e++]=8;for(Ta(J1,r.lens,0,288,$c,0,r.work,{bits:9}),e=0;e<32;)r.lens[e++]=5;Ta(eS,r.lens,0,32,Mc,0,r.work,{bits:5}),P1=!1}r.lencode=$c,r.lenbits=9,r.distcode=Mc,r.distbits=5},uS=(r,e,t,s)=>{let n,i=r.state;return i.window===null&&(i.wsize=1<=i.wsize?(i.window.set(e.subarray(t-i.wsize,t),0),i.wnext=0,i.whave=i.wsize):(n=i.wsize-i.wnext,n>s&&(n=s),i.window.set(e.subarray(t-s,t-s+n),i.wnext),s-=n,s?(i.window.set(e.subarray(t-s,t),0),i.wnext=s,i.whave=i.wsize):(i.wnext+=n,i.wnext===i.wsize&&(i.wnext=0),i.whave{let t,s,n,i,a,l,o,u,c,p,h,f,d,m,g=0,y,b,v,S,C,O,w,E,k=new Uint8Array(4),A,D,_=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(Xs(r)||!r.output||!r.input&&r.avail_in!==0)return tn;t=r.state,t.mode===es&&(t.mode=Bc),a=r.next_out,n=r.output,o=r.avail_out,i=r.next_in,s=r.input,l=r.avail_in,u=t.hold,c=t.bits,p=l,h=o,E=Zs;e:for(;;)switch(t.mode){case al:if(t.wrap===0){t.mode=Bc;break}for(;c<16;){if(l===0)break e;l--,u+=s[i++]<>>8&255,t.check=mr(t.check,k,2,0),u=0,c=0,t.mode=a1;break}if(t.head&&(t.head.done=!1),!(t.wrap&1)||(((u&255)<<8)+(u>>8))%31){r.msg="incorrect header check",t.mode=tr;break}if((u&15)!==i1){r.msg="unknown compression method",t.mode=tr;break}if(u>>>=4,c-=4,w=(u&15)+8,t.wbits===0&&(t.wbits=w),w>15||w>t.wbits){r.msg="invalid window size",t.mode=tr;break}t.dmax=1<>8&1),t.flags&512&&t.wrap&4&&(k[0]=u&255,k[1]=u>>>8&255,t.check=mr(t.check,k,2,0)),u=0,c=0,t.mode=o1;case o1:for(;c<32;){if(l===0)break e;l--,u+=s[i++]<>>8&255,k[2]=u>>>16&255,k[3]=u>>>24&255,t.check=mr(t.check,k,4,0)),u=0,c=0,t.mode=l1;case l1:for(;c<16;){if(l===0)break e;l--,u+=s[i++]<>8),t.flags&512&&t.wrap&4&&(k[0]=u&255,k[1]=u>>>8&255,t.check=mr(t.check,k,2,0)),u=0,c=0,t.mode=u1;case u1:if(t.flags&1024){for(;c<16;){if(l===0)break e;l--,u+=s[i++]<>>8&255,t.check=mr(t.check,k,2,0)),u=0,c=0}else t.head&&(t.head.extra=null);t.mode=c1;case c1:if(t.flags&1024&&(f=t.length,f>l&&(f=l),f&&(t.head&&(w=t.head.extra_len-t.length,t.head.extra||(t.head.extra=new Uint8Array(t.head.extra_len)),t.head.extra.set(s.subarray(i,i+f),w)),t.flags&512&&t.wrap&4&&(t.check=mr(t.check,s,f,i)),l-=f,i+=f,t.length-=f),t.length))break e;t.length=0,t.mode=f1;case f1:if(t.flags&2048){if(l===0)break e;f=0;do w=s[i+f++],t.head&&w&&t.length<65536&&(t.head.name+=String.fromCharCode(w));while(w&&f>9&1,t.head.done=!0),r.adler=t.check=0,t.mode=es;break;case d1:for(;c<32;){if(l===0)break e;l--,u+=s[i++]<>>=c&7,c-=c&7,t.mode=Lc;break}for(;c<3;){if(l===0)break e;l--,u+=s[i++]<>>=1,c-=1,u&3){case 0:t.mode=m1;break;case 1:if(P$(t),t.mode=Ko,e===Ho){u>>>=2,c-=2;break e}break;case 2:t.mode=y1;break;case 3:r.msg="invalid block type",t.mode=tr}u>>>=2,c-=2;break;case m1:for(u>>>=c&7,c-=c&7;c<32;){if(l===0)break e;l--,u+=s[i++]<>>16^65535)){r.msg="invalid stored block lengths",t.mode=tr;break}if(t.length=u&65535,u=0,c=0,t.mode=Nc,e===Ho)break e;case Nc:t.mode=g1;case g1:if(f=t.length,f){if(f>l&&(f=l),f>o&&(f=o),f===0)break e;n.set(s.subarray(i,i+f),a),l-=f,i+=f,o-=f,a+=f,t.length-=f;break}t.mode=es;break;case y1:for(;c<14;){if(l===0)break e;l--,u+=s[i++]<>>=5,c-=5,t.ndist=(u&31)+1,u>>>=5,c-=5,t.ncode=(u&15)+4,u>>>=4,c-=4,t.nlen>286||t.ndist>30){r.msg="too many length or distance symbols",t.mode=tr;break}t.have=0,t.mode=x1;case x1:for(;t.have>>=3,c-=3}for(;t.have<19;)t.lens[_[t.have++]]=0;if(t.lencode=t.lendyn,t.lenbits=7,A={bits:t.lenbits},E=Ta(y$,t.lens,0,19,t.lencode,0,t.work,A),t.lenbits=A.bits,E){r.msg="invalid code lengths set",t.mode=tr;break}t.have=0,t.mode=b1;case b1:for(;t.have>>24,b=g>>>16&255,v=g&65535,!(y<=c);){if(l===0)break e;l--,u+=s[i++]<>>=y,c-=y,t.lens[t.have++]=v;else{if(v===16){for(D=y+2;c>>=y,c-=y,t.have===0){r.msg="invalid bit length repeat",t.mode=tr;break}w=t.lens[t.have-1],f=3+(u&3),u>>>=2,c-=2}else if(v===17){for(D=y+3;c>>=y,c-=y,w=0,f=3+(u&7),u>>>=3,c-=3}else{for(D=y+7;c>>=y,c-=y,w=0,f=11+(u&127),u>>>=7,c-=7}if(t.have+f>t.nlen+t.ndist){r.msg="invalid bit length repeat",t.mode=tr;break}for(;f--;)t.lens[t.have++]=w}}if(t.mode===tr)break;if(t.lens[256]===0){r.msg="invalid code -- missing end-of-block",t.mode=tr;break}if(t.lenbits=9,A={bits:t.lenbits},E=Ta(J1,t.lens,0,t.nlen,t.lencode,0,t.work,A),t.lenbits=A.bits,E){r.msg="invalid literal/lengths set",t.mode=tr;break}if(t.distbits=6,t.distcode=t.distdyn,A={bits:t.distbits},E=Ta(eS,t.lens,t.nlen,t.ndist,t.distcode,0,t.work,A),t.distbits=A.bits,E){r.msg="invalid distances set",t.mode=tr;break}if(t.mode=Ko,e===Ho)break e;case Ko:t.mode=Jo;case Jo:if(l>=6&&o>=258){r.next_out=a,r.avail_out=o,r.next_in=i,r.avail_in=l,t.hold=u,t.bits=c,f$(r,h),a=r.next_out,n=r.output,o=r.avail_out,i=r.next_in,s=r.input,l=r.avail_in,u=t.hold,c=t.bits,t.mode===es&&(t.back=-1);break}for(t.back=0;g=t.lencode[u&(1<>>24,b=g>>>16&255,v=g&65535,!(y<=c);){if(l===0)break e;l--,u+=s[i++]<>S)],y=g>>>24,b=g>>>16&255,v=g&65535,!(S+y<=c);){if(l===0)break e;l--,u+=s[i++]<>>=S,c-=S,t.back+=S}if(u>>>=y,c-=y,t.back+=y,t.length=v,b===0){t.mode=C1;break}if(b&32){t.back=-1,t.mode=es;break}if(b&64){r.msg="invalid literal/length code",t.mode=tr;break}t.extra=b&15,t.mode=v1;case v1:if(t.extra){for(D=t.extra;c>>=t.extra,c-=t.extra,t.back+=t.extra}t.was=t.length,t.mode=O1;case O1:for(;g=t.distcode[u&(1<>>24,b=g>>>16&255,v=g&65535,!(y<=c);){if(l===0)break e;l--,u+=s[i++]<>S)],y=g>>>24,b=g>>>16&255,v=g&65535,!(S+y<=c);){if(l===0)break e;l--,u+=s[i++]<>>=S,c-=S,t.back+=S}if(u>>>=y,c-=y,t.back+=y,b&64){r.msg="invalid distance code",t.mode=tr;break}t.offset=v,t.extra=b&15,t.mode=S1;case S1:if(t.extra){for(D=t.extra;c>>=t.extra,c-=t.extra,t.back+=t.extra}if(t.offset>t.dmax){r.msg="invalid distance too far back",t.mode=tr;break}t.mode=E1;case E1:if(o===0)break e;if(f=h-o,t.offset>f){if(f=t.offset-f,f>t.whave&&t.sane){r.msg="invalid distance too far back",t.mode=tr;break}f>t.wnext?(f-=t.wnext,d=t.wsize-f):d=t.wnext-f,f>t.length&&(f=t.length),m=t.window}else m=n,d=a-t.offset,f=t.length;f>o&&(f=o),o-=f,t.length-=f;do n[a++]=m[d++];while(--f);t.length===0&&(t.mode=Jo);break;case C1:if(o===0)break e;n[a++]=t.length,o--,t.mode=Jo;break;case Lc:if(t.wrap){for(;c<32;){if(l===0)break e;l--,u|=s[i++]<{if(Xs(r))return tn;let e=r.state;return e.window&&(e.window=null),r.state=null,Zs},_$=(r,e)=>{if(Xs(r))return tn;let t=r.state;return t.wrap&2?(t.head=e,e.done=!1,Zs):tn},I$=(r,e)=>{let t=e.length,s,n,i;return Xs(r)||(s=r.state,s.wrap!==0&&s.mode!==nl)?tn:s.mode===nl&&(n=1,n=Ra(n,e,t,0),n!==s.check)?tS:(i=uS(r,e,t,t),i?(s.mode=nS,rS):(s.havedict=1,Zs))},F$=aS,R$=oS,B$=iS,N$=A$,L$=lS,$$=T$,M$=D$,j$=_$,q$=I$,Q$="pako inflate (from Nodeca project)",rs={inflateReset:F$,inflateReset2:R$,inflateResetKeep:B$,inflateInit:N$,inflateInit2:L$,inflate:$$,inflateEnd:M$,inflateGetHeader:j$,inflateSetDictionary:q$,inflateInfo:Q$};function U$(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var V$=U$,cS=Object.prototype.toString,{Z_NO_FLUSH:W$,Z_FINISH:Z$,Z_OK:La,Z_STREAM_END:jc,Z_NEED_DICT:qc,Z_STREAM_ERROR:z$,Z_DATA_ERROR:T1,Z_MEM_ERROR:X$}=zs;function qa(r){this.options=il.assign({chunkSize:1024*64,windowBits:15,to:""},r||{});let e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,e.windowBits===0&&(e.windowBits=-15)),e.windowBits>=0&&e.windowBits<16&&!(r&&r.windowBits)&&(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&(e.windowBits&15||(e.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new H1,this.strm.avail_out=0;let t=rs.inflateInit2(this.strm,e.windowBits);if(t!==La)throw new Error(Vs[t]);if(this.header=new V$,rs.inflateGetHeader(this.strm,this.header),e.dictionary&&(typeof e.dictionary=="string"?e.dictionary=Na.string2buf(e.dictionary):cS.call(e.dictionary)==="[object ArrayBuffer]"&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(t=rs.inflateSetDictionary(this.strm,e.dictionary),t!==La)))throw new Error(Vs[t])}qa.prototype.push=function(r,e){let t=this.strm,s=this.options.chunkSize,n=this.options.dictionary,i,a,l;if(this.ended)return!1;for(e===~~e?a=e:a=e===!0?Z$:W$,cS.call(r)==="[object ArrayBuffer]"?t.input=new Uint8Array(r):t.input=r,t.next_in=0,t.avail_in=t.input.length;;){for(t.avail_out===0&&(t.output=new Uint8Array(s),t.next_out=0,t.avail_out=s),i=rs.inflate(t,a),i===qc&&n&&(i=rs.inflateSetDictionary(t,n),i===La?i=rs.inflate(t,a):i===T1&&(i=qc));t.avail_in>0&&i===jc&&t.state.wrap>0&&r[t.next_in]!==0;)rs.inflateReset(t),i=rs.inflate(t,a);switch(i){case z$:case T1:case qc:case X$:return this.onEnd(i),this.ended=!0,!1}if(l=t.avail_out,t.next_out&&(t.avail_out===0||i===jc))if(this.options.to==="string"){let o=Na.utf8border(t.output,t.next_out),u=t.next_out-o,c=Na.buf2string(t.output,o);t.next_out=u,t.avail_out=s-u,u&&t.output.set(t.output.subarray(o,o+u),0),this.onData(c)}else this.onData(t.output.length===t.next_out?t.output:t.output.subarray(0,t.next_out));if(!(i===La&&l===0)){if(i===jc)return i=rs.inflateEnd(this.strm),this.onEnd(i),this.ended=!0,!0;if(t.avail_in===0)break}}return!0};qa.prototype.onData=function(r){this.chunks.push(r)};qa.prototype.onEnd=function(r){r===La&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=il.flattenChunks(this.chunks)),this.chunks=[],this.err=r,this.msg=this.strm.msg};function nf(r,e){let t=new qa(e);if(t.push(r),t.err)throw t.msg||Vs[t.err];return t.result}function G$(r,e){return e=e||{},e.raw=!0,nf(r,e)}var Y$=qa,H$=nf,K$=G$,J$=nf,e3=zs,t3={Inflate:Y$,inflate:H$,inflateRaw:K$,ungzip:J$,constants:e3},{Deflate:r3,deflate:n3,deflateRaw:s3,gzip:i3}=u$,{Inflate:a3,inflate:o3,inflateRaw:l3,ungzip:u3}=t3,c3=r3,f3=n3,p3=s3,h3=i3,d3=a3,m3=o3,g3=l3,y3=u3,x3=zs,sf={Deflate:c3,deflate:f3,deflateRaw:p3,gzip:h3,Inflate:d3,inflate:m3,inflateRaw:g3,ungzip:y3,constants:x3};var Ft=class r{lineAt(e){if(e<0||e>this.length)throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,t,s){[e,t]=$i(this,e,t);let n=[];return this.decompose(0,e,n,2),s.length&&s.decompose(0,s.length,n,3),this.decompose(t,this.length,n,1),Ri.from(n,this.length-(t-e)+s.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,t=this.length){[e,t]=$i(this,e,t);let s=[];return this.decompose(e,t,s,0),Ri.from(s,t-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let t=this.scanIdentical(e,1),s=this.length-this.scanIdentical(e,-1),n=new Hs(this),i=new Hs(e);for(let a=t,l=t;;){if(n.next(a),i.next(a),a=0,n.lineBreak!=i.lineBreak||n.done!=i.done||n.value!=i.value)return!1;if(l+=n.value.length,n.done||l>=s)return!0}}iter(e=1){return new Hs(this,e)}iterRange(e,t=this.length){return new cl(this,e,t)}iterLines(e,t){let s;if(e==null)s=this.iter();else{t==null&&(t=this.lines+1);let n=this.line(e).from;s=this.iterRange(n,Math.max(n,t==this.lines+1?this.length:t<=1?0:this.line(t-1).to))}return new fl(s)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}constructor(){}static of(e){if(e.length==0)throw new RangeError("A document must have at least one line");return e.length==1&&!e[0]?r.empty:e.length<=32?new Zr(e):Ri.from(Zr.split(e,[]))}},Zr=class r extends Ft{constructor(e,t=b3(e)){super(),this.text=e,this.length=t}get lines(){return this.text.length}get children(){return null}lineInner(e,t,s,n){for(let i=0;;i++){let a=this.text[i],l=n+a.length;if((t?s:l)>=e)return new of(n,l,s,a);n=l+1,s++}}decompose(e,t,s,n){let i=e<=0&&t>=this.length?this:new r(fS(this.text,e,t),Math.min(t,this.length)-Math.max(0,e));if(n&1){let a=s.pop(),l=ul(i.text,a.text.slice(),0,i.length);if(l.length<=32)s.push(new r(l,a.length+i.length));else{let o=l.length>>1;s.push(new r(l.slice(0,o)),new r(l.slice(o)))}}else s.push(i)}replace(e,t,s){if(!(s instanceof r))return super.replace(e,t,s);[e,t]=$i(this,e,t);let n=ul(this.text,ul(s.text,fS(this.text,0,e)),t),i=this.length+s.length-(t-e);return n.length<=32?new r(n,i):Ri.from(r.split(n,[]),i)}sliceString(e,t=this.length,s=` -`){[e,t]=$i(this,e,t);let n="";for(let i=0,a=0;i<=t&&ae&&a&&(n+=s),ei&&(n+=l.slice(Math.max(0,e-i),t-i)),i=o+1}return n}flatten(e){for(let t of this.text)e.push(t)}scanIdentical(){return 0}static split(e,t){let s=[],n=-1;for(let i of e)s.push(i),n+=i.length+1,s.length==32&&(t.push(new r(s,n)),s=[],n=-1);return n>-1&&t.push(new r(s,n)),t}},Ri=class r extends Ft{constructor(e,t){super(),this.children=e,this.length=t,this.lines=0;for(let s of e)this.lines+=s.lines}lineInner(e,t,s,n){for(let i=0;;i++){let a=this.children[i],l=n+a.length,o=s+a.lines-1;if((t?o:l)>=e)return a.lineInner(e,t,s,n);n=l+1,s=o+1}}decompose(e,t,s,n){for(let i=0,a=0;a<=t&&i=a){let u=n&((a<=e?1:0)|(o>=t?2:0));a>=e&&o<=t&&!u?s.push(l):l.decompose(e-a,t-a,s,u)}a=o+1}}replace(e,t,s){if([e,t]=$i(this,e,t),s.lines=i&&t<=l){let o=a.replace(e-i,t-i,s),u=this.lines-a.lines+o.lines;if(o.lines>4&&o.lines>u>>6){let c=this.children.slice();return c[n]=o,new r(c,this.length-(t-e)+s.length)}return super.replace(i,l,o)}i=l+1}return super.replace(e,t,s)}sliceString(e,t=this.length,s=` -`){[e,t]=$i(this,e,t);let n="";for(let i=0,a=0;ie&&i&&(n+=s),ea&&(n+=l.sliceString(e-a,t-a,s)),a=o+1}return n}flatten(e){for(let t of this.children)t.flatten(e)}scanIdentical(e,t){if(!(e instanceof r))return 0;let s=0,[n,i,a,l]=t>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;n+=t,i+=t){if(n==a||i==l)return s;let o=this.children[n],u=e.children[i];if(o!=u)return s+o.scanIdentical(u,t);s+=o.length+1}}static from(e,t=e.reduce((s,n)=>s+n.length+1,-1)){let s=0;for(let f of e)s+=f.lines;if(s<32){let f=[];for(let d of e)d.flatten(f);return new Zr(f,t)}let n=Math.max(32,s>>5),i=n<<1,a=n>>1,l=[],o=0,u=-1,c=[];function p(f){let d;if(f.lines>i&&f instanceof r)for(let m of f.children)p(m);else f.lines>a&&(o>a||!o)?(h(),l.push(f)):f instanceof Zr&&o&&(d=c[c.length-1])instanceof Zr&&f.lines+d.lines<=32?(o+=f.lines,u+=f.length+1,c[c.length-1]=new Zr(d.text.concat(f.text),d.length+1+f.length)):(o+f.lines>n&&h(),o+=f.lines,u+=f.length+1,c.push(f))}function h(){o!=0&&(l.push(c.length==1?c[0]:r.from(c,u)),u=-1,o=c.length=0)}for(let f of e)p(f);return h(),l.length==1?l[0]:new r(l,t)}};Ft.empty=new Zr([""],0);function b3(r){let e=-1;for(let t of r)e+=t.length+1;return e}function ul(r,e,t=0,s=1e9){for(let n=0,i=0,a=!0;i=t&&(o>s&&(l=l.slice(0,s-n)),n0?1:(e instanceof Zr?e.text.length:e.children.length)<<1]}nextInner(e,t){for(this.done=this.lineBreak=!1;;){let s=this.nodes.length-1,n=this.nodes[s],i=this.offsets[s],a=i>>1,l=n instanceof Zr?n.text.length:n.children.length;if(a==(t>0?l:0)){if(s==0)return this.done=!0,this.value="",this;t>0&&this.offsets[s-1]++,this.nodes.pop(),this.offsets.pop()}else if((i&1)==(t>0?0:1)){if(this.offsets[s]+=t,e==0)return this.lineBreak=!0,this.value=` -`,this;e--}else if(n instanceof Zr){let o=n.text[a+(t<0?-1:0)];if(this.offsets[s]+=t,o.length>Math.max(0,e))return this.value=e==0?o:t>0?o.slice(e):o.slice(0,o.length-e),this;e-=o.length}else{let o=n.children[a+(t<0?-1:0)];e>o.length?(e-=o.length,this.offsets[s]+=t):(t<0&&this.offsets[s]--,this.nodes.push(o),this.offsets.push(t>0?1:(o instanceof Zr?o.text.length:o.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}},cl=class{constructor(e,t,s){this.value="",this.done=!1,this.cursor=new Hs(e,t>s?-1:1),this.pos=t>s?e.length:0,this.from=Math.min(t,s),this.to=Math.max(t,s)}nextInner(e,t){if(t<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,t<0?this.pos-this.to:this.from-this.pos);let s=t<0?this.pos-this.from:this.to-this.pos;e>s&&(e=s),s-=e;let{value:n}=this.cursor.next(e);return this.pos+=(n.length+e)*t,this.value=n.length<=s?n:t<0?n.slice(n.length-s):n.slice(0,s),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&this.value!=""}},fl=class{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(e=0){let{done:t,lineBreak:s,value:n}=this.inner.next(e);return t&&this.afterBreak?(this.value="",this.afterBreak=!1):t?(this.done=!0,this.value=""):s?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=n,this.afterBreak=!1),this}get lineBreak(){return!1}};typeof Symbol<"u"&&(Ft.prototype[Symbol.iterator]=function(){return this.iter()},Hs.prototype[Symbol.iterator]=cl.prototype[Symbol.iterator]=fl.prototype[Symbol.iterator]=function(){return this});var of=class{constructor(e,t,s,n){this.from=e,this.to=t,this.number=s,this.text=n}get length(){return this.to-this.from}};function $i(r,e,t){return e=Math.max(0,Math.min(r.length,e)),[e,Math.max(e,Math.min(r.length,t))]}var Bi="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(r=>r?parseInt(r,36):1);for(let r=1;rr)return Bi[e-1]<=r;return!1}function pS(r){return r>=127462&&r<=127487}var hS=8205;function ur(r,e,t=!0,s=!0){return(t?bS:O3)(r,e,s)}function bS(r,e,t){if(e==r.length)return e;e&&vS(r.charCodeAt(e))&&OS(r.charCodeAt(e-1))&&e--;let s=gr(r,e);for(e+=$r(s);e=0&&pS(gr(r,a));)i++,a-=2;if(i%2==0)break;e+=2}else break}return e}function O3(r,e,t){for(;e>0;){let s=bS(r,e-2,t);if(s=56320&&r<57344}function OS(r){return r>=55296&&r<56320}function gr(r,e){let t=r.charCodeAt(e);if(!OS(t)||e+1==r.length)return t;let s=r.charCodeAt(e+1);return vS(s)?(t-55296<<10)+(s-56320)+65536:t}function za(r){return r<=65535?String.fromCharCode(r):(r-=65536,String.fromCharCode((r>>10)+55296,(r&1023)+56320))}function $r(r){return r<65536?1:2}var lf=/\r\n?|\n/,fr=function(r){return r[r.Simple=0]="Simple",r[r.TrackDel=1]="TrackDel",r[r.TrackBefore=2]="TrackBefore",r[r.TrackAfter=3]="TrackAfter",r}(fr||(fr={})),ns=class r{constructor(e){this.sections=e}get length(){let e=0;for(let t=0;te)return i+(e-n);i+=l}else{if(s!=fr.Simple&&u>=e&&(s==fr.TrackDel&&ne||s==fr.TrackBefore&&ne))return null;if(u>e||u==e&&t<0&&!l)return e==n||t<0?i:i+o;i+=o}n=u}if(e>n)throw new RangeError(`Position ${e} is out of range for changeset of length ${n}`);return i}touchesRange(e,t=e){for(let s=0,n=0;s=0&&n<=t&&l>=e)return nt?"cover":!0;n=l}return!1}toString(){let e="";for(let t=0;t=0?":"+n:"")}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some(t=>typeof t!="number"))throw new RangeError("Invalid JSON representation of ChangeDesc");return new r(e)}static create(e){return new r(e)}},Dr=class r extends ns{constructor(e,t){super(e),this.inserted=t}apply(e){if(this.length!=e.length)throw new RangeError("Applying change set to a document with the wrong length");return uf(this,(t,s,n,i,a)=>e=e.replace(n,n+(s-t),a),!1),e}mapDesc(e,t=!1){return cf(this,e,t,!0)}invert(e){let t=this.sections.slice(),s=[];for(let n=0,i=0;n=0){t[n]=l,t[n+1]=a;let o=n>>1;for(;s.length0&&Os(s,t,i.text),i.forward(c),l+=c}let u=e[a++];for(;l>1].toJSON()))}return e}static of(e,t,s){let n=[],i=[],a=0,l=null;function o(c=!1){if(!c&&!n.length)return;ah||p<0||h>t)throw new RangeError(`Invalid change range ${p} to ${h} (in doc of length ${t})`);let d=f?typeof f=="string"?Ft.of(f.split(s||lf)):f:Ft.empty,m=d.length;if(p==h&&m==0)return;pa&&wr(n,p-a,-1),wr(n,h-p,m),Os(i,n,d),a=h}}return u(e),o(!l),l}static empty(e){return new r(e?[e,-1]:[],[])}static fromJSON(e){if(!Array.isArray(e))throw new RangeError("Invalid JSON representation of ChangeSet");let t=[],s=[];for(let n=0;nl&&typeof a!="string"))throw new RangeError("Invalid JSON representation of ChangeSet");if(i.length==1)t.push(i[0],0);else{for(;s.length=0&&t<=0&&t==r[n+1]?r[n]+=e:e==0&&r[n]==0?r[n+1]+=t:s?(r[n]+=e,r[n+1]+=t):r.push(e,t)}function Os(r,e,t){if(t.length==0)return;let s=e.length-2>>1;if(s>1])),!(t||a==r.sections.length||r.sections[a+1]<0);)l=r.sections[a++],o=r.sections[a++];e(n,u,i,c,p),n=u,i=c}}}function cf(r,e,t,s=!1){let n=[],i=s?[]:null,a=new Ks(r),l=new Ks(e);for(let o=-1;;)if(a.ins==-1&&l.ins==-1){let u=Math.min(a.len,l.len);wr(n,u,-1),a.forward(u),l.forward(u)}else if(l.ins>=0&&(a.ins<0||o==a.i||a.off==0&&(l.len=0&&o=0){let u=0,c=a.len;for(;c;)if(l.ins==-1){let p=Math.min(c,l.len);u+=p,c-=p,l.forward(p)}else if(l.ins==0&&l.leno||a.ins>=0&&a.len>o)&&(l||s.length>u),i.forward2(o),a.forward(o)}}}}var Ks=class{constructor(e){this.set=e,this.i=0,this.next()}next(){let{sections:e}=this.set;this.i>1;return t>=e.length?Ft.empty:e[t]}textBit(e){let{inserted:t}=this.set,s=this.i-2>>1;return s>=t.length&&!e?Ft.empty:t[s].slice(this.off,e==null?void 0:this.off+e)}forward(e){e==this.len?this.next():(this.len-=e,this.off+=e)}forward2(e){this.ins==-1?this.forward(e):e==this.ins?this.next():(this.ins-=e,this.off+=e)}},Fi=class r{constructor(e,t,s){this.from=e,this.to=t,this.flags=s}get anchor(){return this.flags&32?this.to:this.from}get head(){return this.flags&32?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return this.flags&8?-1:this.flags&16?1:0}get bidiLevel(){let e=this.flags&7;return e==7?null:e}get goalColumn(){let e=this.flags>>6;return e==16777215?void 0:e}map(e,t=-1){let s,n;return this.empty?s=n=e.mapPos(this.from,t):(s=e.mapPos(this.from,1),n=e.mapPos(this.to,-1)),s==this.from&&n==this.to?this:new r(s,n,this.flags)}extend(e,t=e){if(e<=this.anchor&&t>=this.anchor)return Ze.range(e,t);let s=Math.abs(e-this.anchor)>Math.abs(t-this.anchor)?e:t;return Ze.range(this.anchor,s)}eq(e,t=!1){return this.anchor==e.anchor&&this.head==e.head&&(!t||!this.empty||this.assoc==e.assoc)}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(e){if(!e||typeof e.anchor!="number"||typeof e.head!="number")throw new RangeError("Invalid JSON representation for SelectionRange");return Ze.range(e.anchor,e.head)}static create(e,t,s){return new r(e,t,s)}},Ze=class r{constructor(e,t){this.ranges=e,this.mainIndex=t}map(e,t=-1){return e.empty?this:r.create(this.ranges.map(s=>s.map(e,t)),this.mainIndex)}eq(e,t=!1){if(this.ranges.length!=e.ranges.length||this.mainIndex!=e.mainIndex)return!1;for(let s=0;se.toJSON()),main:this.mainIndex}}static fromJSON(e){if(!e||!Array.isArray(e.ranges)||typeof e.main!="number"||e.main>=e.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new r(e.ranges.map(t=>Fi.fromJSON(t)),e.main)}static single(e,t=e){return new r([r.range(e,t)],0)}static create(e,t=0){if(e.length==0)throw new RangeError("A selection needs at least one range");for(let s=0,n=0;ne?8:0)|i)}static normalized(e,t=0){let s=e[t];e.sort((n,i)=>n.from-i.from),t=e.indexOf(s);for(let n=1;ni.head?r.range(o,l):r.range(l,o))}}return new r(e,t)}};function ES(r,e){for(let t of r.ranges)if(t.to>e)throw new RangeError("Selection points outside of document")}var vf=0,ct=class r{constructor(e,t,s,n,i){this.combine=e,this.compareInput=t,this.compare=s,this.isStatic=n,this.id=vf++,this.default=e([]),this.extensions=typeof i=="function"?i(this):i}get reader(){return this}static define(e={}){return new r(e.combine||(t=>t),e.compareInput||((t,s)=>t===s),e.compare||(e.combine?(t,s)=>t===s:Of),!!e.static,e.enables)}of(e){return new Ni([],this,0,e)}compute(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new Ni(e,this,1,t)}computeN(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new Ni(e,this,2,t)}from(e,t){return t||(t=s=>s),this.compute([e],s=>t(s.field(e)))}};function Of(r,e){return r==e||r.length==e.length&&r.every((t,s)=>t===e[s])}var Ni=class{constructor(e,t,s,n){this.dependencies=e,this.facet=t,this.type=s,this.value=n,this.id=vf++}dynamicSlot(e){var t;let s=this.value,n=this.facet.compareInput,i=this.id,a=e[i]>>1,l=this.type==2,o=!1,u=!1,c=[];for(let p of this.dependencies)p=="doc"?o=!0:p=="selection"?u=!0:((t=e[p.id])!==null&&t!==void 0?t:1)&1||c.push(e[p.id]);return{create(p){return p.values[a]=s(p),1},update(p,h){if(o&&h.docChanged||u&&(h.docChanged||h.selection)||ff(p,c)){let f=s(p);if(l?!dS(f,p.values[a],n):!n(f,p.values[a]))return p.values[a]=f,1}return 0},reconfigure:(p,h)=>{let f,d=h.config.address[i];if(d!=null){let m=ml(h,d);if(this.dependencies.every(g=>g instanceof ct?h.facet(g)===p.facet(g):g instanceof Yt?h.field(g,!1)==p.field(g,!1):!0)||(l?dS(f=s(p),m,n):n(f=s(p),m)))return p.values[a]=m,0}else f=s(p);return p.values[a]=f,1}}}};function dS(r,e,t){if(r.length!=e.length)return!1;for(let s=0;sr[o.id]),n=t.map(o=>o.type),i=s.filter(o=>!(o&1)),a=r[e.id]>>1;function l(o){let u=[];for(let c=0;cs===n),e);return e.provide&&(t.provides=e.provide(t)),t}create(e){let t=e.facet(mS).find(s=>s.field==this);return(t?.create||this.createF)(e)}slot(e){let t=e[this.id]>>1;return{create:s=>(s.values[t]=this.create(s),1),update:(s,n)=>{let i=s.values[t],a=this.updateF(i,n);return this.compareF(i,a)?0:(s.values[t]=a,1)},reconfigure:(s,n)=>n.config.address[this.id]!=null?(s.values[t]=n.field(this),0):(s.values[t]=this.create(s),1)}}init(e){return[this,mS.of({field:this,create:e})]}get extension(){return this}},Gs={lowest:4,low:3,default:2,high:1,highest:0};function Qa(r){return e=>new pl(e,r)}var rn={highest:Qa(Gs.highest),high:Qa(Gs.high),default:Qa(Gs.default),low:Qa(Gs.low),lowest:Qa(Gs.lowest)},pl=class{constructor(e,t){this.inner=e,this.prec=t}},hl=class r{of(e){return new Va(this,e)}reconfigure(e){return r.reconfigure.of({compartment:this,extension:e})}get(e){return e.config.compartments.get(this)}},Va=class{constructor(e,t){this.compartment=e,this.inner=t}},dl=class r{constructor(e,t,s,n,i,a){for(this.base=e,this.compartments=t,this.dynamicSlots=s,this.address=n,this.staticValues=i,this.facets=a,this.statusTemplate=[];this.statusTemplate.length>1]}static resolve(e,t,s){let n=[],i=Object.create(null),a=new Map;for(let h of E3(e,t,a))h instanceof Yt?n.push(h):(i[h.facet.id]||(i[h.facet.id]=[])).push(h);let l=Object.create(null),o=[],u=[];for(let h of n)l[h.id]=u.length<<1,u.push(f=>h.slot(f));let c=s?.config.facets;for(let h in i){let f=i[h],d=f[0].facet,m=c&&c[h]||[];if(f.every(g=>g.type==0))if(l[d.id]=o.length<<1|1,Of(m,f))o.push(s.facet(d));else{let g=d.combine(f.map(y=>y.value));o.push(s&&d.compare(g,s.facet(d))?s.facet(d):g)}else{for(let g of f)g.type==0?(l[g.id]=o.length<<1|1,o.push(g.value)):(l[g.id]=u.length<<1,u.push(y=>g.dynamicSlot(y)));l[d.id]=u.length<<1,u.push(g=>S3(g,d,f))}}let p=u.map(h=>h(l));return new r(e,a,p,l,o,i)}};function E3(r,e,t){let s=[[],[],[],[],[]],n=new Map;function i(a,l){let o=n.get(a);if(o!=null){if(o<=l)return;let u=s[o].indexOf(a);u>-1&&s[o].splice(u,1),a instanceof Va&&t.delete(a.compartment)}if(n.set(a,l),Array.isArray(a))for(let u of a)i(u,l);else if(a instanceof Va){if(t.has(a.compartment))throw new RangeError("Duplicate use of compartment in extensions");let u=e.get(a.compartment)||a.inner;t.set(a.compartment,u),i(u,l)}else if(a instanceof pl)i(a.inner,a.prec);else if(a instanceof Yt)s[l].push(a),a.provides&&i(a.provides,l);else if(a instanceof Ni)s[l].push(a),a.facet.extensions&&i(a.facet.extensions,Gs.default);else{let u=a.extension;if(!u)throw new Error(`Unrecognized extension value in extension set (${a}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);i(u,l)}}return i(r,Gs.default),s.reduce((a,l)=>a.concat(l))}function Ua(r,e){if(e&1)return 2;let t=e>>1,s=r.status[t];if(s==4)throw new Error("Cyclic dependency between fields and/or facets");if(s&2)return s;r.status[t]=4;let n=r.computeSlot(r,r.config.dynamicSlots[t]);return r.status[t]=2|n}function ml(r,e){return e&1?r.config.staticValues[e>>1]:r.values[e>>1]}var CS=ct.define(),pf=ct.define({combine:r=>r.some(e=>e),static:!0}),wS=ct.define({combine:r=>r.length?r[0]:void 0,static:!0}),kS=ct.define(),AS=ct.define(),PS=ct.define(),TS=ct.define({combine:r=>r.length?r[0]:!1}),Mr=class{constructor(e,t){this.type=e,this.value=t}static define(){return new hf}},hf=class{of(e){return new Mr(this,e)}},df=class{constructor(e){this.map=e}of(e){return new wt(this,e)}},wt=class r{constructor(e,t){this.type=e,this.value=t}map(e){let t=this.type.map(this.value,e);return t===void 0?void 0:t==this.value?this:new r(this.type,t)}is(e){return this.type==e}static define(e={}){return new df(e.map||(t=>t))}static mapEffects(e,t){if(!e.length)return e;let s=[];for(let n of e){let i=n.map(t);i&&s.push(i)}return s}};wt.reconfigure=wt.define();wt.appendConfig=wt.define();var lr=class r{constructor(e,t,s,n,i,a){this.startState=e,this.changes=t,this.selection=s,this.effects=n,this.annotations=i,this.scrollIntoView=a,this._doc=null,this._state=null,s&&ES(s,t.newLength),i.some(l=>l.type==r.time)||(this.annotations=i.concat(r.time.of(Date.now())))}static create(e,t,s,n,i,a){return new r(e,t,s,n,i,a)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(e){for(let t of this.annotations)if(t.type==e)return t.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(e){let t=this.annotation(r.userEvent);return!!(t&&(t==e||t.length>e.length&&t.slice(0,e.length)==e&&t[e.length]=="."))}};lr.time=Mr.define();lr.userEvent=Mr.define();lr.addToHistory=Mr.define();lr.remote=Mr.define();function C3(r,e){let t=[];for(let s=0,n=0;;){let i,a;if(s=r[s]))i=r[s++],a=r[s++];else if(n=0;n--){let i=s[n](r);i instanceof lr?r=i:Array.isArray(i)&&i.length==1&&i[0]instanceof lr?r=i[0]:r=_S(e,Li(i),!1)}return r}function k3(r){let e=r.startState,t=e.facet(PS),s=r;for(let n=t.length-1;n>=0;n--){let i=t[n](r);i&&Object.keys(i).length&&(s=DS(s,mf(e,i,r.changes.newLength),!0))}return s==r?r:lr.create(e,r.changes,r.selection,s.effects,s.annotations,s.scrollIntoView)}var A3=[];function Li(r){return r==null?A3:Array.isArray(r)?r:[r]}var Wt=function(r){return r[r.Word=0]="Word",r[r.Space=1]="Space",r[r.Other=2]="Other",r}(Wt||(Wt={})),P3=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/,gf;try{gf=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}function T3(r){if(gf)return gf.test(r);for(let e=0;e"\x80"&&(t.toUpperCase()!=t.toLowerCase()||P3.test(t)))return!0}return!1}function D3(r){return e=>{if(!/\S/.test(e))return Wt.Space;if(T3(e))return Wt.Word;for(let t=0;t-1)return Wt.Word;return Wt.Other}}var Ut=class r{constructor(e,t,s,n,i,a){this.config=e,this.doc=t,this.selection=s,this.values=n,this.status=e.statusTemplate.slice(),this.computeSlot=i,a&&(a._state=this);for(let l=0;ln.set(u,o)),t=null),n.set(l.value.compartment,l.value.extension)):l.is(wt.reconfigure)?(t=null,s=l.value):l.is(wt.appendConfig)&&(t=null,s=Li(s).concat(l.value));let i;t?i=e.startState.values.slice():(t=dl.resolve(s,n,this),i=new r(t,this.doc,this.selection,t.dynamicSlots.map(()=>null),(o,u)=>u.reconfigure(o,this),null).values);let a=e.startState.facet(pf)?e.newSelection:e.newSelection.asSingle();new r(t,e.newDoc,a,i,(l,o)=>o.update(l,e),e)}replaceSelection(e){return typeof e=="string"&&(e=this.toText(e)),this.changeByRange(t=>({changes:{from:t.from,to:t.to,insert:e},range:Ze.cursor(t.from+e.length)}))}changeByRange(e){let t=this.selection,s=e(t.ranges[0]),n=this.changes(s.changes),i=[s.range],a=Li(s.effects);for(let l=1;la.spec.fromJSON(l,o)))}}return r.create({doc:e.doc,selection:Ze.fromJSON(e.selection),extensions:t.extensions?n.concat([t.extensions]):n})}static create(e={}){let t=dl.resolve(e.extensions||[],new Map),s=e.doc instanceof Ft?e.doc:Ft.of((e.doc||"").split(t.staticFacet(r.lineSeparator)||lf)),n=e.selection?e.selection instanceof Ze?e.selection:Ze.single(e.selection.anchor,e.selection.head):Ze.single(0);return ES(n,s.length),t.staticFacet(pf)||(n=n.asSingle()),new r(t,s,n,t.dynamicSlots.map(()=>null),(i,a)=>a.create(i),null)}get tabSize(){return this.facet(r.tabSize)}get lineBreak(){return this.facet(r.lineSeparator)||` -`}get readOnly(){return this.facet(TS)}phrase(e,...t){for(let s of this.facet(r.phrases))if(Object.prototype.hasOwnProperty.call(s,e)){e=s[e];break}return t.length&&(e=e.replace(/\$(\$|\d*)/g,(s,n)=>{if(n=="$")return"$";let i=+(n||1);return!i||i>t.length?s:t[i-1]})),e}languageDataAt(e,t,s=-1){let n=[];for(let i of this.facet(CS))for(let a of i(this,t,s))Object.prototype.hasOwnProperty.call(a,e)&&n.push(a[e]);return n}charCategorizer(e){return D3(this.languageDataAt("wordChars",e).join(""))}wordAt(e){let{text:t,from:s,length:n}=this.doc.lineAt(e),i=this.charCategorizer(e),a=e-s,l=e-s;for(;a>0;){let o=ur(t,a,!1);if(i(t.slice(o,a))!=Wt.Word)break;a=o}for(;lr.length?r[0]:4});Ut.lineSeparator=wS;Ut.readOnly=TS;Ut.phrases=ct.define({compare(r,e){let t=Object.keys(r),s=Object.keys(e);return t.length==s.length&&t.every(n=>r[n]==e[n])}});Ut.languageData=CS;Ut.changeFilter=kS;Ut.transactionFilter=AS;Ut.transactionExtender=PS;hl.reconfigure=wt.define();function kr(r,e,t={}){let s={};for(let n of r)for(let i of Object.keys(n)){let a=n[i],l=s[i];if(l===void 0)s[i]=a;else if(!(l===a||a===void 0))if(Object.hasOwnProperty.call(t,i))s[i]=t[i](l,a);else throw new Error("Config merge conflict for field "+i)}for(let n in e)s[n]===void 0&&(s[n]=e[n]);return s}var yn=class{eq(e){return this==e}range(e,t=e){return Wa.create(e,t,this)}};yn.prototype.startSide=yn.prototype.endSide=0;yn.prototype.point=!1;yn.prototype.mapMode=fr.TrackDel;var Wa=class r{constructor(e,t,s){this.from=e,this.to=t,this.value=s}static create(e,t,s){return new r(e,t,s)}};function yf(r,e){return r.from-e.from||r.value.startSide-e.value.startSide}var xf=class r{constructor(e,t,s,n){this.from=e,this.to=t,this.value=s,this.maxPoint=n}get length(){return this.to[this.to.length-1]}findIndex(e,t,s,n=0){let i=s?this.to:this.from;for(let a=n,l=i.length;;){if(a==l)return a;let o=a+l>>1,u=i[o]-e||(s?this.value[o].endSide:this.value[o].startSide)-t;if(o==a)return u>=0?a:l;u>=0?l=o:a=o+1}}between(e,t,s,n){for(let i=this.findIndex(t,-1e9,!0),a=this.findIndex(s,1e9,!1,i);if||h==f&&u.startSide>0&&u.endSide<=0)continue;(f-h||u.endSide-u.startSide)<0||(a<0&&(a=h),u.point&&(l=Math.max(l,f-h)),s.push(u),n.push(h-a),i.push(f-a))}return{mapped:s.length?new r(n,i,s,l):null,pos:a}}},Mt=class r{constructor(e,t,s,n){this.chunkPos=e,this.chunk=t,this.nextLayer=s,this.maxPoint=n}static create(e,t,s,n){return new r(e,t,s,n)}get length(){let e=this.chunk.length-1;return e<0?0:Math.max(this.chunkEnd(e),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let e=this.nextLayer.size;for(let t of this.chunk)e+=t.value.length;return e}chunkEnd(e){return this.chunkPos[e]+this.chunk[e].length}update(e){let{add:t=[],sort:s=!1,filterFrom:n=0,filterTo:i=this.length}=e,a=e.filter;if(t.length==0&&!a)return this;if(s&&(t=t.slice().sort(yf)),this.isEmpty)return t.length?r.of(t):this;let l=new gl(this,null,-1).goto(0),o=0,u=[],c=new In;for(;l.value||o=0){let p=t[o++];c.addInner(p.from,p.to,p.value)||u.push(p)}else l.rangeIndex==1&&l.chunkIndexthis.chunkEnd(l.chunkIndex)||il.to||i=i&&e<=i+a.length&&a.between(i,e-i,t-i,s)===!1)return}this.nextLayer.between(e,t,s)}}iter(e=0){return Za.from([this]).goto(e)}get isEmpty(){return this.nextLayer==this}static iter(e,t=0){return Za.from(e).goto(t)}static compare(e,t,s,n,i=-1){let a=e.filter(p=>p.maxPoint>0||!p.isEmpty&&p.maxPoint>=i),l=t.filter(p=>p.maxPoint>0||!p.isEmpty&&p.maxPoint>=i),o=gS(a,l,s),u=new Ys(a,o,i),c=new Ys(l,o,i);s.iterGaps((p,h,f)=>yS(u,p,c,h,f,n)),s.empty&&s.length==0&&yS(u,0,c,0,0,n)}static eq(e,t,s=0,n){n==null&&(n=999999999);let i=e.filter(c=>!c.isEmpty&&t.indexOf(c)<0),a=t.filter(c=>!c.isEmpty&&e.indexOf(c)<0);if(i.length!=a.length)return!1;if(!i.length)return!0;let l=gS(i,a),o=new Ys(i,l,0).goto(s),u=new Ys(a,l,0).goto(s);for(;;){if(o.to!=u.to||!bf(o.active,u.active)||o.point&&(!u.point||!o.point.eq(u.point)))return!1;if(o.to>n)return!0;o.next(),u.next()}}static spans(e,t,s,n,i=-1){let a=new Ys(e,null,i).goto(t),l=t,o=a.openStart;for(;;){let u=Math.min(a.to,s);if(a.point){let c=a.activeForPoint(a.to),p=a.pointFroml&&(n.span(l,u,a.active,o),o=a.openEnd(u));if(a.to>s)return o+(a.point&&a.to>s?1:0);l=a.to,a.next()}}static of(e,t=!1){let s=new In;for(let n of e instanceof Wa?[e]:t?_3(e):e)s.add(n.from,n.to,n.value);return s.finish()}static join(e){if(!e.length)return r.empty;let t=e[e.length-1];for(let s=e.length-2;s>=0;s--)for(let n=e[s];n!=r.empty;n=n.nextLayer)t=new r(n.chunkPos,n.chunk,t,Math.max(n.maxPoint,t.maxPoint));return t}};Mt.empty=new Mt([],[],null,-1);function _3(r){if(r.length>1)for(let e=r[0],t=1;t0)return r.slice().sort(yf);e=s}return r}Mt.empty.nextLayer=Mt.empty;var In=class r{finishChunk(e){this.chunks.push(new xf(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,e&&(this.from=[],this.to=[],this.value=[])}constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}add(e,t,s){this.addInner(e,t,s)||(this.nextLayer||(this.nextLayer=new r)).add(e,t,s)}addInner(e,t,s){let n=e-this.lastTo||s.startSide-this.last.endSide;if(n<=0&&(e-this.lastFrom||s.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return n<0?!1:(this.from.length==250&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=e),this.from.push(e-this.chunkStart),this.to.push(t-this.chunkStart),this.last=s,this.lastFrom=e,this.lastTo=t,this.value.push(s),s.point&&(this.maxPoint=Math.max(this.maxPoint,t-e)),!0)}addChunk(e,t){if((e-this.lastTo||t.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,t.maxPoint),this.chunks.push(t),this.chunkPos.push(e);let s=t.value.length-1;return this.last=t.value[s],this.lastFrom=t.from[s]+e,this.lastTo=t.to[s]+e,!0}finish(){return this.finishInner(Mt.empty)}finishInner(e){if(this.from.length&&this.finishChunk(!1),this.chunks.length==0)return e;let t=Mt.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(e):e,this.setMaxPoint);return this.from=null,t}};function gS(r,e,t){let s=new Map;for(let i of r)for(let a=0;a=this.minPoint)break}}setRangeIndex(e){if(e==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex=s&&n.push(new gl(a,t,s,i));return n.length==1?n[0]:new r(n)}get startSide(){return this.value?this.value.startSide:0}goto(e,t=-1e9){for(let s of this.heap)s.goto(e,t);for(let s=this.heap.length>>1;s>=0;s--)af(this.heap,s);return this.next(),this}forward(e,t){for(let s of this.heap)s.forward(e,t);for(let s=this.heap.length>>1;s>=0;s--)af(this.heap,s);(this.to-e||this.value.endSide-t)<0&&this.next()}next(){if(this.heap.length==0)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let e=this.heap[0];this.from=e.from,this.to=e.to,this.value=e.value,this.rank=e.rank,e.value&&e.next(),af(this.heap,0)}}};function af(r,e){for(let t=r[e];;){let s=(e<<1)+1;if(s>=r.length)break;let n=r[s];if(s+1=0&&(n=r[s+1],s++),t.compare(n)<0)break;r[s]=t,r[e]=n,e=s}}var Ys=class{constructor(e,t,s){this.minPoint=s,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=Za.from(e,t,s)}goto(e,t=-1e9){return this.cursor.goto(e,t),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=e,this.endSide=t,this.openStart=-1,this.next(),this}forward(e,t){for(;this.minActive>-1&&(this.activeTo[this.minActive]-e||this.active[this.minActive].endSide-t)<0;)this.removeActive(this.minActive);this.cursor.forward(e,t)}removeActive(e){ol(this.active,e),ol(this.activeTo,e),ol(this.activeRank,e),this.minActive=xS(this.active,this.activeTo)}addActive(e){let t=0,{value:s,to:n,rank:i}=this.cursor;for(;t0;)t++;ll(this.active,t,s),ll(this.activeTo,t,n),ll(this.activeRank,t,i),e&&ll(e,t,this.cursor.from),this.minActive=xS(this.active,this.activeTo)}next(){let e=this.to,t=this.point;this.point=null;let s=this.openStart<0?[]:null;for(;;){let n=this.minActive;if(n>-1&&(this.activeTo[n]-this.cursor.from||this.active[n].endSide-this.cursor.startSide)<0){if(this.activeTo[n]>e){this.to=this.activeTo[n],this.endSide=this.active[n].endSide;break}this.removeActive(n),s&&ol(s,n)}else if(this.cursor.value)if(this.cursor.from>e){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}else{let i=this.cursor.value;if(!i.point)this.addActive(s),this.cursor.next();else if(t&&this.cursor.to==this.to&&this.cursor.from=0&&s[n]=0&&!(this.activeRank[s]e||this.activeTo[s]==e&&this.active[s].endSide>=this.point.endSide)&&t.push(this.active[s]);return t.reverse()}openEnd(e){let t=0;for(let s=this.activeTo.length-1;s>=0&&this.activeTo[s]>e;s--)t++;return t}};function yS(r,e,t,s,n,i){r.goto(e),t.goto(s);let a=s+n,l=s,o=s-e;for(;;){let u=r.to+o-t.to||r.endSide-t.endSide,c=u<0?r.to+o:t.to,p=Math.min(c,a);if(r.point||t.point?r.point&&t.point&&(r.point==t.point||r.point.eq(t.point))&&bf(r.activeForPoint(r.to),t.activeForPoint(t.to))||i.comparePoint(l,p,r.point,t.point):p>l&&!bf(r.active,t.active)&&i.compareRange(l,p,r.active,t.active),c>a)break;l=c,u<=0&&r.next(),u>=0&&t.next()}}function bf(r,e){if(r.length!=e.length)return!1;for(let t=0;t=e;s--)r[s+1]=r[s];r[e]=t}function xS(r,e){let t=-1,s=1e9;for(let n=0;n=e)return n;if(n==r.length)break;i+=r.charCodeAt(n)==9?t-i%t:1,n=ur(r,n)}return s===!0?-1:r.length}var Sf="\u037C",IS=typeof Symbol>"u"?"__"+Sf:Symbol.for(Sf),Ef=typeof Symbol>"u"?"__styleSet"+Math.floor(Math.random()*1e8):Symbol("styleSet"),FS=typeof globalThis<"u"?globalThis:typeof window<"u"?window:{},nn=class{constructor(e,t){this.rules=[];let{finish:s}=t||{};function n(a){return/^@/.test(a)?[a]:a.split(/,\s*/)}function i(a,l,o,u){let c=[],p=/^@(\w+)\b/.exec(a[0]),h=p&&p[1]=="keyframes";if(p&&l==null)return o.push(a[0]+";");for(let f in l){let d=l[f];if(/&/.test(f))i(f.split(/,\s*/).map(m=>a.map(g=>m.replace(/&/,g))).reduce((m,g)=>m.concat(g)),d,o);else if(d&&typeof d=="object"){if(!p)throw new RangeError("The value of a property ("+f+") should be a primitive value.");i(n(f),d,c,h)}else d!=null&&c.push(f.replace(/_.*/,"").replace(/[A-Z]/g,m=>"-"+m.toLowerCase())+": "+d+";")}(c.length||h)&&o.push((s&&!p&&!u?a.map(s):a).join(", ")+" {"+c.join(" ")+"}")}for(let a in e)i(n(a),e[a],this.rules)}getRules(){return this.rules.join(` -`)}static newName(){let e=FS[IS]||1;return FS[IS]=e+1,Sf+e.toString(36)}static mount(e,t,s){let n=e[Ef],i=s&&s.nonce;n?i&&n.setNonce(i):n=new Cf(e,i),n.mount(Array.isArray(t)?t:[t],e)}},RS=new Map,Cf=class{constructor(e,t){let s=e.ownerDocument||e,n=s.defaultView;if(!e.head&&e.adoptedStyleSheets&&n.CSSStyleSheet){let i=RS.get(s);if(i)return e[Ef]=i;this.sheet=new n.CSSStyleSheet,RS.set(s,this)}else this.styleTag=s.createElement("style"),t&&this.styleTag.setAttribute("nonce",t);this.modules=[],e[Ef]=this}mount(e,t){let s=this.sheet,n=0,i=0;for(let a=0;a-1&&(this.modules.splice(o,1),i--,o=-1),o==-1){if(this.modules.splice(i++,0,l),s)for(let u=0;u",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},I3=typeof navigator<"u"&&/Mac/.test(navigator.platform),F3=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(cr=0;cr<10;cr++)is[48+cr]=is[96+cr]=String(cr);var cr;for(cr=1;cr<=24;cr++)is[cr+111]="F"+cr;var cr;for(cr=65;cr<=90;cr++)is[cr]=String.fromCharCode(cr+32),Mi[cr]=String.fromCharCode(cr);var cr;for(xl in is)Mi.hasOwnProperty(xl)||(Mi[xl]=is[xl]);var xl;function BS(r){var e=I3&&r.metaKey&&r.shiftKey&&!r.ctrlKey&&!r.altKey||F3&&r.shiftKey&&r.key&&r.key.length==1||r.key=="Unidentified",t=!e&&r.key||(r.shiftKey?Mi:is)[r.keyCode]||r.key||"Unidentified";return t=="Esc"&&(t="Escape"),t=="Del"&&(t="Delete"),t=="Left"&&(t="ArrowLeft"),t=="Up"&&(t="ArrowUp"),t=="Right"&&(t="ArrowRight"),t=="Down"&&(t="ArrowDown"),t}function Rl(r){let e;return r.nodeType==11?e=r.getSelection?r:r.ownerDocument:e=r,e.getSelection()}function If(r,e){return e?r==e||r.contains(e.nodeType!=1?e.parentNode:e):!1}function R3(r){let e=r.activeElement;for(;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;return e}function Pl(r,e){if(!e.anchorNode)return!1;try{return If(r,e.anchorNode)}catch{return!1}}function oo(r){return r.nodeType==3?ei(r,0,r.nodeValue.length).getClientRects():r.nodeType==1?r.getClientRects():[]}function eo(r,e,t,s){return t?NS(r,e,t,s,-1)||NS(r,e,t,s,1):!1}function Js(r){for(var e=0;;e++)if(r=r.previousSibling,!r)return e}function Bl(r){return r.nodeType==1&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(r.nodeName)}function NS(r,e,t,s,n){for(;;){if(r==t&&e==s)return!0;if(e==(n<0?0:as(r))){if(r.nodeName=="DIV")return!1;let i=r.parentNode;if(!i||i.nodeType!=1)return!1;e=Js(r)+(n<0?0:1),r=i}else if(r.nodeType==1){if(r=r.childNodes[e+(n<0?-1:0)],r.nodeType==1&&r.contentEditable=="false")return!1;e=n<0?as(r):0}else return!1}}function as(r){return r.nodeType==3?r.nodeValue.length:r.childNodes.length}function bp(r,e){let t=e?r.left:r.right;return{left:t,right:t,top:r.top,bottom:r.bottom}}function B3(r){let e=r.visualViewport;return e?{left:0,right:e.width,top:0,bottom:e.height}:{left:0,right:r.innerWidth,top:0,bottom:r.innerHeight}}function SE(r,e){let t=e.width/r.offsetWidth,s=e.height/r.offsetHeight;return(t>.995&&t<1.005||!isFinite(t)||Math.abs(e.width-r.offsetWidth)<1)&&(t=1),(s>.995&&s<1.005||!isFinite(s)||Math.abs(e.height-r.offsetHeight)<1)&&(s=1),{scaleX:t,scaleY:s}}function N3(r,e,t,s,n,i,a,l){let o=r.ownerDocument,u=o.defaultView||window;for(let c=r,p=!1;c&&!p;)if(c.nodeType==1){let h,f=c==o.body,d=1,m=1;if(f)h=B3(u);else{if(/^(fixed|sticky)$/.test(getComputedStyle(c).position)&&(p=!0),c.scrollHeight<=c.clientHeight&&c.scrollWidth<=c.clientWidth){c=c.assignedSlot||c.parentNode;continue}let b=c.getBoundingClientRect();({scaleX:d,scaleY:m}=SE(c,b)),h={left:b.left,right:b.left+c.clientWidth*d,top:b.top,bottom:b.top+c.clientHeight*m}}let g=0,y=0;if(n=="nearest")e.top0&&e.bottom>h.bottom+y&&(y=e.bottom-h.bottom+y+a)):e.bottom>h.bottom&&(y=e.bottom-h.bottom+a,t<0&&e.top-y0&&e.right>h.right+g&&(g=e.right-h.right+g+i)):e.right>h.right&&(g=e.right-h.right+i,t<0&&e.leftt.clientHeight||t.scrollWidth>t.clientWidth)return t;t=t.assignedSlot||t.parentNode}else if(t.nodeType==11)t=t.host;else break;return null}var Ff=class{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(e){return this.anchorNode==e.anchorNode&&this.anchorOffset==e.anchorOffset&&this.focusNode==e.focusNode&&this.focusOffset==e.focusOffset}setRange(e){let{anchorNode:t,focusNode:s}=e;this.set(t,Math.min(e.anchorOffset,t?as(t):0),s,Math.min(e.focusOffset,s?as(s):0))}set(e,t,s,n){this.anchorNode=e,this.anchorOffset=t,this.focusNode=s,this.focusOffset=n}},ji=null;function EE(r){if(r.setActive)return r.setActive();if(ji)return r.focus(ji);let e=[];for(let t=r;t&&(e.push(t,t.scrollTop,t.scrollLeft),t!=t.ownerDocument);t=t.parentNode);if(r.focus(ji==null?{get preventScroll(){return ji={preventScroll:!0},!0}}:void 0),!ji){ji=!1;for(let t=0;tMath.max(1,r.scrollHeight-r.clientHeight-4)}function kE(r,e){for(let t=r,s=e;;){if(t.nodeType==3&&s>0)return{node:t,offset:s};if(t.nodeType==1&&s>0){if(t.contentEditable=="false")return null;t=t.childNodes[s-1],s=as(t)}else if(t.parentNode&&!Bl(t))s=Js(t),t=t.parentNode;else return null}}function AE(r,e){for(let t=r,s=e;;){if(t.nodeType==3&&st)return p.domBoundsAround(e,t,u);if(h>=e&&n==-1&&(n=o,i=u),u>t&&p.dom.parentNode==this.dom){a=o,l=c;break}c=h,u=h+p.breakAfter}return{from:i,to:l<0?s+this.length:l,startDOM:(n?this.children[n-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:a=0?this.children[a].dom:null}}markDirty(e=!1){this.flags|=2,this.markParentsDirty(e)}markParentsDirty(e){for(let t=this.parent;t;t=t.parent){if(e&&(t.flags|=2),t.flags&1)return;t.flags|=1,e=!1}}setParent(e){this.parent!=e&&(this.parent=e,this.flags&7&&this.markParentsDirty(!0))}setDOM(e){this.dom!=e&&(this.dom&&(this.dom.cmView=null),this.dom=e,e.cmView=this)}get rootView(){for(let e=this;;){let t=e.parent;if(!t)return e;e=t}}replaceChildren(e,t,s=vp){this.markDirty();for(let n=e;nthis.pos||e==this.pos&&(t>0||this.i==0||this.children[this.i-1].breakAfter))return this.off=e-this.pos,this;let s=this.children[--this.i];this.pos-=s.length+s.breakAfter}}};function PE(r,e,t,s,n,i,a,l,o){let{children:u}=r,c=u.length?u[e]:null,p=i.length?i[i.length-1]:null,h=p?p.breakAfter:a;if(!(e==s&&c&&!a&&!h&&i.length<2&&c.merge(t,n,i.length?p:null,t==0,l,o))){if(s0&&(!a&&i.length&&c.merge(t,c.length,i[0],!1,l,0)?c.breakAfter=i.shift().breakAfter:(t2),ft={mac:qS||/Mac/.test(zr.platform),windows:/Win/.test(zr.platform),linux:/Linux|X11/.test(zr.platform),ie:Gl,ie_version:DE?Rf.documentMode||6:Nf?+Nf[1]:Bf?+Bf[1]:0,gecko:MS,gecko_version:MS?+(/Firefox\/(\d+)/.exec(zr.userAgent)||[0,0])[1]:0,chrome:!!wf,chrome_version:wf?+wf[1]:0,ios:qS,android:/Android\b/.test(zr.userAgent),webkit:jS,safari:_E,webkit_version:jS?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0,tabSize:Rf.documentElement.style.tabSize!=null?"tab-size":"-moz-tab-size"},j3=256,Ln=class r extends Gt{constructor(e){super(),this.text=e}get length(){return this.text.length}createDOM(e){this.setDOM(e||document.createTextNode(this.text))}sync(e,t){this.dom||this.createDOM(),this.dom.nodeValue!=this.text&&(t&&t.node==this.dom&&(t.written=!0),this.dom.nodeValue=this.text)}reuseDOM(e){e.nodeType==3&&this.createDOM(e)}merge(e,t,s){return this.flags&8||s&&(!(s instanceof r)||this.length-(t-e)+s.length>j3||s.flags&8)?!1:(this.text=this.text.slice(0,e)+(s?s.text:"")+this.text.slice(t),this.markDirty(),!0)}split(e){let t=new r(this.text.slice(e));return this.text=this.text.slice(0,e),this.markDirty(),t.flags|=this.flags&8,t}localPosFromDOM(e,t){return e==this.dom?t:t?this.text.length:0}domAtPos(e){return new _r(this.dom,e)}domBoundsAround(e,t,s){return{from:s,to:s+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}coordsAt(e,t){return q3(this.dom,e,t)}},Cs=class r extends Gt{constructor(e,t=[],s=0){super(),this.mark=e,this.children=t,this.length=s;for(let n of t)n.setParent(this)}setAttrs(e){if(CE(e),this.mark.class&&(e.className=this.mark.class),this.mark.attrs)for(let t in this.mark.attrs)e.setAttribute(t,this.mark.attrs[t]);return e}canReuseDOM(e){return super.canReuseDOM(e)&&!((this.flags|e.flags)&8)}reuseDOM(e){e.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(e),this.flags|=6)}sync(e,t){this.dom?this.flags&4&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),super.sync(e,t)}merge(e,t,s,n,i,a){return s&&(!(s instanceof r&&s.mark.eq(this.mark))||e&&i<=0||te&&t.push(s=e&&(n=i),s=o,i++}let a=this.length-e;return this.length=e,n>-1&&(this.children.length=n,this.markDirty()),new r(this.mark,t,a)}domAtPos(e){return IE(this,e)}coordsAt(e,t){return RE(this,e,t)}};function q3(r,e,t){let s=r.nodeValue.length;e>s&&(e=s);let n=e,i=e,a=0;e==0&&t<0||e==s&&t>=0?ft.chrome||ft.gecko||(e?(n--,a=1):i=0)?0:l.length-1];return ft.safari&&!a&&o.width==0&&(o=Array.prototype.find.call(l,u=>u.width)||o),a?bp(o,a<0):o||null}var lo=class r extends Gt{static create(e,t,s){return new r(e,t,s)}constructor(e,t,s){super(),this.widget=e,this.length=t,this.side=s,this.prevWidget=null}split(e){let t=r.create(this.widget,this.length-e,this.side);return this.length-=e,t}sync(e){(!this.dom||!this.widget.updateDOM(this.dom,e))&&(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(e)),this.widget.editable||(this.dom.contentEditable="false"))}getSide(){return this.side}merge(e,t,s,n,i,a){return s&&(!(s instanceof r)||!this.widget.compare(s.widget)||e>0&&i<=0||t0)?_r.before(this.dom):_r.after(this.dom,e==this.length)}domBoundsAround(){return null}coordsAt(e,t){let s=this.widget.coordsAt(this.dom,e,t);if(s)return s;let n=this.dom.getClientRects(),i=null;if(!n.length)return null;let a=this.side?this.side<0:e>0;for(let l=a?n.length-1:0;i=n[l],!(e>0?l==0:l==n.length-1||i.top0?_r.before(this.dom):_r.after(this.dom)}localPosFromDOM(){return 0}domBoundsAround(){return null}coordsAt(e){return this.dom.getBoundingClientRect()}get overrideDOMText(){return Ft.empty}get isHidden(){return!0}};Ln.prototype.children=lo.prototype.children=uo.prototype.children=vp;function IE(r,e){let t=r.dom,{children:s}=r,n=0;for(let i=0;ni&&e0;i--){let a=s[i-1];if(a.dom.parentNode==t)return a.domAtPos(a.length)}for(let i=n;i0&&e instanceof Cs&&n.length&&(s=n[n.length-1])instanceof Cs&&s.mark.eq(e.mark)?FE(s,e.children[0],t-1):(n.push(e),e.setParent(r)),r.length+=e.length}function RE(r,e,t){let s=null,n=-1,i=null,a=-1;function l(u,c){for(let p=0,h=0;p=c&&(f.children.length?l(f,c-h):(!i||i.isHidden&&t>0)&&(d>c||h==d&&f.getSide()>0)?(i=f,a=c-h):(h-1?1:0)!=n.length-(t&&n.indexOf(t)>-1?1:0))return!1;for(let i of s)if(i!=t&&(n.indexOf(i)==-1||r[i]!==e[i]))return!1;return!0}function $f(r,e,t){let s=!1;if(e)for(let n in e)t&&n in t||(s=!0,n=="style"?r.style.cssText="":r.removeAttribute(n));if(t)for(let n in t)e&&e[n]==t[n]||(s=!0,n=="style"?r.style.cssText=t[n]:r.setAttribute(n,t[n]));return s}function U3(r){let e=Object.create(null);for(let t=0;t0&&this.children[s-1].length==0;)this.children[--s].destroy();return this.children.length=s,this.markDirty(),this.length=e,t}transferDOM(e){this.dom&&(this.markDirty(),e.setDOM(this.dom),e.prevAttrs=this.prevAttrs===void 0?this.attrs:this.prevAttrs,this.prevAttrs=void 0,this.dom=null)}setDeco(e){Op(this.attrs,e)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=e)}append(e,t){FE(this,e,t)}addLineDeco(e){let t=e.spec.attributes,s=e.spec.class;t&&(this.attrs=Lf(t,this.attrs||{})),s&&(this.attrs=Lf({class:s},this.attrs||{}))}domAtPos(e){return IE(this,e)}reuseDOM(e){e.nodeName=="DIV"&&(this.setDOM(e),this.flags|=6)}sync(e,t){var s;this.dom?this.flags&4&&(CE(this.dom),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0):(this.setDOM(document.createElement("div")),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0),this.prevAttrs!==void 0&&($f(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add("cm-line"),this.prevAttrs=void 0),super.sync(e,t);let n=this.dom.lastChild;for(;n&&Gt.get(n)instanceof Cs;)n=n.lastChild;if(!n||!this.length||n.nodeName!="BR"&&((s=Gt.get(n))===null||s===void 0?void 0:s.isEditable)==!1&&(!ft.ios||!this.children.some(i=>i instanceof Ln))){let i=document.createElement("BR");i.cmIgnore=!0,this.dom.appendChild(i)}}measureTextSize(){if(this.children.length==0||this.length>20)return null;let e=0,t;for(let s of this.children){if(!(s instanceof Ln)||/[^ -~]/.test(s.text))return null;let n=oo(s.dom);if(n.length!=1)return null;e+=n[0].width,t=n[0].height}return e?{lineHeight:this.dom.getBoundingClientRect().height,charWidth:e/this.length,textHeight:t}:null}coordsAt(e,t){let s=RE(this,e,t);if(!this.children.length&&s&&this.parent){let{heightOracle:n}=this.parent.view.viewState,i=s.bottom-s.top;if(Math.abs(i-n.lineHeight)<2&&n.textHeight=t){if(i instanceof r)return i;if(a>t)break}n=a+i.breakAfter}return null}},Wi=class r extends Gt{constructor(e,t,s){super(),this.widget=e,this.length=t,this.deco=s,this.breakAfter=0,this.prevWidget=null}merge(e,t,s,n,i,a){return s&&(!(s instanceof r)||!this.widget.compare(s.widget)||e>0&&i<=0||t0}},an=class{eq(e){return!1}updateDOM(e,t){return!1}compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}get estimatedHeight(){return-1}get lineBreaks(){return 0}ignoreEvent(e){return!0}coordsAt(e,t,s){return null}get isHidden(){return!1}get editable(){return!1}destroy(e){}},Ir=function(r){return r[r.Text=0]="Text",r[r.WidgetBefore=1]="WidgetBefore",r[r.WidgetAfter=2]="WidgetAfter",r[r.WidgetRange=3]="WidgetRange",r}(Ir||(Ir={})),yt=class extends yn{constructor(e,t,s,n){super(),this.startSide=e,this.endSide=t,this.widget=s,this.spec=n}get heightRelevant(){return!1}static mark(e){return new co(e)}static widget(e){let t=Math.max(-1e4,Math.min(1e4,e.side||0)),s=!!e.block;return t+=s&&!e.inlineOrder?t>0?3e8:-4e8:t>0?1e8:-1e8,new ws(e,t,t,s,e.widget||null,!1)}static replace(e){let t=!!e.block,s,n;if(e.isBlockGap)s=-5e8,n=4e8;else{let{start:i,end:a}=BE(e,t);s=(i?t?-3e8:-1:5e8)-1,n=(a?t?2e8:1:-6e8)+1}return new ws(e,s,n,t,e.widget||null,!0)}static line(e){return new fo(e)}static set(e,t=!1){return Mt.of(e,t)}hasHeight(){return this.widget?this.widget.estimatedHeight>-1:!1}};yt.none=Mt.empty;var co=class r extends yt{constructor(e){let{start:t,end:s}=BE(e);super(t?-1:5e8,s?1:-6e8,null,e),this.tagName=e.tagName||"span",this.class=e.class||"",this.attrs=e.attributes||null}eq(e){var t,s;return this==e||e instanceof r&&this.tagName==e.tagName&&(this.class||((t=this.attrs)===null||t===void 0?void 0:t.class))==(e.class||((s=e.attrs)===null||s===void 0?void 0:s.class))&&Op(this.attrs,e.attrs,"class")}range(e,t=e){if(e>=t)throw new RangeError("Mark decorations may not be empty");return super.range(e,t)}};co.prototype.point=!1;var fo=class r extends yt{constructor(e){super(-2e8,-2e8,null,e)}eq(e){return e instanceof r&&this.spec.class==e.spec.class&&Op(this.spec.attributes,e.spec.attributes)}range(e,t=e){if(t!=e)throw new RangeError("Line decoration ranges must be zero-length");return super.range(e,t)}};fo.prototype.mapMode=fr.TrackBefore;fo.prototype.point=!0;var ws=class r extends yt{constructor(e,t,s,n,i,a){super(t,s,i,e),this.block=n,this.isReplace=a,this.mapMode=n?t<=0?fr.TrackBefore:fr.TrackAfter:fr.TrackDel}get type(){return this.startSide!=this.endSide?Ir.WidgetRange:this.startSide<=0?Ir.WidgetBefore:Ir.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(e){return e instanceof r&&V3(this.widget,e.widget)&&this.block==e.block&&this.startSide==e.startSide&&this.endSide==e.endSide}range(e,t=e){if(this.isReplace&&(e>t||e==t&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&t!=e)throw new RangeError("Widget decorations can only have zero-length ranges");return super.range(e,t)}};ws.prototype.point=!0;function BE(r,e=!1){let{inclusiveStart:t,inclusiveEnd:s}=r;return t==null&&(t=r.inclusive),s==null&&(s=r.inclusive),{start:t??e,end:s??e}}function V3(r,e){return r==e||!!(r&&e&&r.compare(e))}function Mf(r,e,t,s=0){let n=t.length-1;n>=0&&t[n]+s>=r?t[n]=Math.max(t[n],e):t.push(r,e)}var to=class r{constructor(e,t,s,n){this.doc=e,this.pos=t,this.end=s,this.disallowBlockEffectsFor=n,this.content=[],this.curLine=null,this.breakAtStart=0,this.pendingBuffer=0,this.bufferMarks=[],this.atCursorPos=!0,this.openStart=-1,this.openEnd=-1,this.text="",this.textOff=0,this.cursor=e.iter(),this.skip=t}posCovered(){if(this.content.length==0)return!this.breakAtStart&&this.doc.lineAt(this.pos).from!=this.pos;let e=this.content[this.content.length-1];return!(e.breakAfter||e instanceof Wi&&e.deco.endSide<0)}getLine(){return this.curLine||(this.content.push(this.curLine=new Or),this.atCursorPos=!0),this.curLine}flushBuffer(e=this.bufferMarks){this.pendingBuffer&&(this.curLine.append(bl(new uo(-1),e),e.length),this.pendingBuffer=0)}addBlockWidget(e){this.flushBuffer(),this.curLine=null,this.content.push(e)}finish(e){this.pendingBuffer&&e<=this.bufferMarks.length?this.flushBuffer():this.pendingBuffer=0,!this.posCovered()&&!(e&&this.content.length&&this.content[this.content.length-1]instanceof Wi)&&this.getLine()}buildText(e,t,s){for(;e>0;){if(this.textOff==this.text.length){let{value:i,lineBreak:a,done:l}=this.cursor.next(this.skip);if(this.skip=0,l)throw new Error("Ran out of text content when drawing inline views");if(a){this.posCovered()||this.getLine(),this.content.length?this.content[this.content.length-1].breakAfter=1:this.breakAtStart=1,this.flushBuffer(),this.curLine=null,this.atCursorPos=!0,e--;continue}else this.text=i,this.textOff=0}let n=Math.min(this.text.length-this.textOff,e,512);this.flushBuffer(t.slice(t.length-s)),this.getLine().append(bl(new Ln(this.text.slice(this.textOff,this.textOff+n)),t),s),this.atCursorPos=!0,this.textOff+=n,e-=n,s=0}}span(e,t,s,n){this.buildText(t-e,s,n),this.pos=t,this.openStart<0&&(this.openStart=n)}point(e,t,s,n,i,a){if(this.disallowBlockEffectsFor[a]&&s instanceof ws){if(s.block)throw new RangeError("Block decorations may not be specified via plugins");if(t>this.doc.lineAt(this.pos).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}let l=t-e;if(s instanceof ws)if(s.block)s.startSide>0&&!this.posCovered()&&this.getLine(),this.addBlockWidget(new Wi(s.widget||ks.block,l,s));else{let o=lo.create(s.widget||ks.inline,l,l?0:s.startSide),u=this.atCursorPos&&!o.isEditable&&i<=n.length&&(e0),c=!o.isEditable&&(en.length||s.startSide<=0),p=this.getLine();this.pendingBuffer==2&&!u&&!o.isEditable&&(this.pendingBuffer=0),this.flushBuffer(n),u&&(p.append(bl(new uo(1),n),i),i=n.length+Math.max(0,i-n.length)),p.append(bl(o,n),i),this.atCursorPos=c,this.pendingBuffer=c?en.length?1:2:0,this.pendingBuffer&&(this.bufferMarks=n.slice())}else this.doc.lineAt(this.pos).from==this.pos&&this.getLine().addLineDeco(s);l&&(this.textOff+l<=this.text.length?this.textOff+=l:(this.skip+=l-(this.text.length-this.textOff),this.text="",this.textOff=0),this.pos=t),this.openStart<0&&(this.openStart=i)}static build(e,t,s,n,i){let a=new r(e,t,s,i);return a.openEnd=Mt.spans(n,t,s,a),a.openStart<0&&(a.openStart=a.openEnd),a.finish(a.openEnd),a}};function bl(r,e){for(let t of e)r=new Cs(t,[r],r.length);return r}var ks=class extends an{constructor(e){super(),this.tag=e}eq(e){return e.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(e){return e.nodeName.toLowerCase()==this.tag}get isHidden(){return!0}};ks.inline=new ks("span");ks.block=new ks("div");var Zt=function(r){return r[r.LTR=0]="LTR",r[r.RTL=1]="RTL",r}(Zt||(Zt={})),ti=Zt.LTR,Sp=Zt.RTL;function NE(r){let e=[];for(let t=0;t=t){if(l.level==s)return a;(i<0||(n!=0?n<0?l.fromt:e[i].level>l.level))&&(i=a)}}if(i<0)throw new RangeError("Index out of range");return i}};function $E(r,e){if(r.length!=e.length)return!1;for(let t=0;t=0;m-=3)if(Fn[m+1]==-f){let g=Fn[m+2],y=g&2?n:g&4?g&1?i:n:0;y&&(Xt[p]=Xt[Fn[m]]=y),l=m;break}}else{if(Fn.length==189)break;Fn[l++]=p,Fn[l++]=h,Fn[l++]=o}else if((d=Xt[p])==2||d==1){let m=d==n;o=m?0:1;for(let g=l-3;g>=0;g-=3){let y=Fn[g+2];if(y&2)break;if(m)Fn[g+2]|=2;else{if(y&4)break;Fn[g+2]|=4}}}}}function Y3(r,e,t,s){for(let n=0,i=s;n<=t.length;n++){let a=n?t[n-1].to:r,l=no;)d==g&&(d=t[--m].from,g=m?t[m-1].to:r),Xt[--d]=f;o=c}else i=u,o++}}}function qf(r,e,t,s,n,i,a){let l=s%2?2:1;if(s%2==n%2)for(let o=e,u=0;oo&&a.push(new Bn(o,m.from,f));let g=m.direction==ti!=!(f%2);Qf(r,g?s+1:s,n,m.inner,m.from,m.to,a),o=m.to}d=m.to}else{if(d==t||(c?Xt[d]!=l:Xt[d]==l))break;d++}h?qf(r,o,d,s+1,n,h,a):oe;){let c=!0,p=!1;if(!u||o>i[u-1].to){let m=Xt[o-1];m!=l&&(c=!1,p=m==16)}let h=!c&&l==1?[]:null,f=c?s:s+1,d=o;e:for(;;)if(u&&d==i[u-1].to){if(p)break e;let m=i[--u];if(!c)for(let g=m.from,y=u;;){if(g==e)break e;if(y&&i[y-1].to==g)g=i[--y].from;else{if(Xt[g-1]==l)break e;break}}if(h)h.push(m);else{m.toXt.length;)Xt[Xt.length]=256;let s=[],n=e==ti?0:1;return Qf(r,n,n,t,0,r.length,s),s}function ME(r){return[new Bn(0,r,0)]}var jE="";function K3(r,e,t,s,n){var i;let a=s.head-r.from,l=Bn.find(e,a,(i=s.bidiLevel)!==null&&i!==void 0?i:-1,s.assoc),o=e[l],u=o.side(n,t);if(a==u){let h=l+=n?1:-1;if(h<0||h>=e.length)return null;o=e[l=h],a=o.side(!n,t),u=o.side(n,t)}let c=ur(r.text,a,o.forward(n,t));(co.to)&&(c=u),jE=r.text.slice(Math.min(a,c),Math.max(a,c));let p=l==(n?e.length-1:0)?null:e[l+(n?1:-1)];return p&&c==u&&p.level+(n?0:1)r.some(e=>e)}),XE=ct.define({combine:r=>r.some(e=>e)}),GE=ct.define(),ro=class r{constructor(e,t="nearest",s="nearest",n=5,i=5,a=!1){this.range=e,this.y=t,this.x=s,this.yMargin=n,this.xMargin=i,this.isSnapshot=a}map(e){return e.empty?this:new r(this.range.map(e),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}clip(e){return this.range.to<=e.doc.length?this:new r(Ze.cursor(e.doc.length),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}},vl=wt.define({map:(r,e)=>r.map(e)});function yr(r,e,t){let s=r.facet(VE);s.length?s[0](e):window.onerror?window.onerror(String(e),t,void 0,void 0,e):t?console.error(t+":",e):console.error(e)}var Yl=ct.define({combine:r=>r.length?r[0]:!0}),eM=0,Ga=ct.define(),rr=class r{constructor(e,t,s,n,i){this.id=e,this.create=t,this.domEventHandlers=s,this.domEventObservers=n,this.extension=i(this)}static define(e,t){let{eventHandlers:s,eventObservers:n,provide:i,decorations:a}=t||{};return new r(eM++,e,s,n,l=>{let o=[Ga.of(l)];return a&&o.push(po.of(u=>{let c=u.plugin(l);return c?a(c):yt.none})),i&&o.push(i(l)),o})}static fromClass(e,t){return r.define(s=>new e(s),t)}},no=class{constructor(e){this.spec=e,this.mustUpdate=null,this.value=null}update(e){if(this.value){if(this.mustUpdate){let t=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(t)}catch(s){if(yr(t.state,s,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch{}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.create(e)}catch(t){yr(e.state,t,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(e){var t;if(!((t=this.value)===null||t===void 0)&&t.destroy)try{this.value.destroy()}catch(s){yr(e.state,s,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}},YE=ct.define(),Ep=ct.define(),po=ct.define(),HE=ct.define(),Cp=ct.define(),KE=ct.define();function US(r,e){let t=r.state.facet(KE);if(!t.length)return t;let s=t.map(i=>i instanceof Function?i(r):i),n=[];return Mt.spans(s,e.from,e.to,{point(){},span(i,a,l,o){let u=i-e.from,c=a-e.from,p=n;for(let h=l.length-1;h>=0;h--,o--){let f=l[h].spec.bidiIsolate,d;if(f==null&&(f=J3(e.text,u,c)),o>0&&p.length&&(d=p[p.length-1]).to==u&&d.direction==f)d.to=c,p=d.inner;else{let m={from:u,to:c,direction:f,inner:[]};p.push(m),p=m.inner}}}}),n}var JE=ct.define();function eC(r){let e=0,t=0,s=0,n=0;for(let i of r.state.facet(JE)){let a=i(r);a&&(a.left!=null&&(e=Math.max(e,a.left)),a.right!=null&&(t=Math.max(t,a.right)),a.top!=null&&(s=Math.max(s,a.top)),a.bottom!=null&&(n=Math.max(n,a.bottom)))}return{left:e,right:t,top:s,bottom:n}}var Ya=ct.define(),Nn=class r{constructor(e,t,s,n){this.fromA=e,this.toA=t,this.fromB=s,this.toB=n}join(e){return new r(Math.min(this.fromA,e.fromA),Math.max(this.toA,e.toA),Math.min(this.fromB,e.fromB),Math.max(this.toB,e.toB))}addToSet(e){let t=e.length,s=this;for(;t>0;t--){let n=e[t-1];if(!(n.fromA>s.toA)){if(n.toAc)break;i+=2}if(!o)return s;new r(o.fromA,o.toA,o.fromB,o.toB).addToSet(s),a=o.toA,l=o.toB}}},Ll=class r{constructor(e,t,s){this.view=e,this.state=t,this.transactions=s,this.flags=0,this.startState=e.state,this.changes=Dr.empty(this.startState.doc.length);for(let i of s)this.changes=this.changes.compose(i.changes);let n=[];this.changes.iterChangedRanges((i,a,l,o)=>n.push(new Nn(i,a,l,o))),this.changedRanges=n}static create(e,t,s){return new r(e,t,s)}get viewportChanged(){return(this.flags&4)>0}get heightChanged(){return(this.flags&2)>0}get geometryChanged(){return this.docChanged||(this.flags&10)>0}get focusChanged(){return(this.flags&1)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some(e=>e.selection)}get empty(){return this.flags==0&&this.transactions.length==0}},$l=class extends Gt{get length(){return this.view.state.doc.length}constructor(e){super(),this.view=e,this.decorations=[],this.dynamicDecorationMap=[],this.domChanged=null,this.hasComposition=null,this.markedForComposition=new Set,this.lastCompositionAfterCursor=!1,this.minWidth=0,this.minWidthFrom=0,this.minWidthTo=0,this.impreciseAnchor=null,this.impreciseHead=null,this.forceSelection=!1,this.lastUpdate=Date.now(),this.setDOM(e.contentDOM),this.children=[new Or],this.children[0].setParent(this),this.updateDeco(),this.updateInner([new Nn(0,0,0,e.state.doc.length)],0,null)}update(e){var t;let s=e.changedRanges;this.minWidth>0&&s.length&&(s.every(({fromA:u,toA:c})=>cthis.minWidthTo)?(this.minWidthFrom=e.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=e.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0);let n=-1;this.view.inputState.composing>=0&&(!((t=this.domChanged)===null||t===void 0)&&t.newSel?n=this.domChanged.newSel.head:!oM(e.changes,this.hasComposition)&&!e.selectionSet&&(n=e.state.selection.main.head));let i=n>-1?rM(this.view,e.changes,n):null;if(this.domChanged=null,this.hasComposition){this.markedForComposition.clear();let{from:u,to:c}=this.hasComposition;s=new Nn(u,c,e.changes.mapPos(u,-1),e.changes.mapPos(c,1)).addToSet(s.slice())}this.hasComposition=i?{from:i.range.fromB,to:i.range.toB}:null,(ft.ie||ft.chrome)&&!i&&e&&e.state.doc.lines!=e.startState.doc.lines&&(this.forceSelection=!0);let a=this.decorations,l=this.updateDeco(),o=iM(a,l,e.changes);return s=Nn.extendWithRanges(s,o),!(this.flags&7)&&s.length==0?!1:(this.updateInner(s,e.startState.doc.length,i),e.transactions.length&&(this.lastUpdate=Date.now()),!0)}updateInner(e,t,s){this.view.viewState.mustMeasureContent=!0,this.updateChildren(e,t,s);let{observer:n}=this.view;n.ignore(()=>{this.dom.style.height=this.view.viewState.contentHeight/this.view.scaleY+"px",this.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let a=ft.chrome||ft.ios?{node:n.selectionRange.focusNode,written:!1}:void 0;this.sync(this.view,a),this.flags&=-8,a&&(a.written||n.selectionRange.focusNode!=a.node)&&(this.forceSelection=!0),this.dom.style.height=""}),this.markedForComposition.forEach(a=>a.flags&=-9);let i=[];if(this.view.viewport.from||this.view.viewport.to=0?n[a]:null;if(!l)break;let{fromA:o,toA:u,fromB:c,toB:p}=l,h,f,d,m;if(s&&s.range.fromBc){let S=to.build(this.view.state.doc,c,s.range.fromB,this.decorations,this.dynamicDecorationMap),C=to.build(this.view.state.doc,s.range.toB,p,this.decorations,this.dynamicDecorationMap);f=S.breakAtStart,d=S.openStart,m=C.openEnd;let O=this.compositionView(s);C.breakAtStart?O.breakAfter=1:C.content.length&&O.merge(O.length,O.length,C.content[0],!1,C.openStart,0)&&(O.breakAfter=C.content[0].breakAfter,C.content.shift()),S.content.length&&O.merge(0,0,S.content[S.content.length-1],!0,0,S.openEnd)&&S.content.pop(),h=S.content.concat(O).concat(C.content)}else({content:h,breakAtStart:f,openStart:d,openEnd:m}=to.build(this.view.state.doc,c,p,this.decorations,this.dynamicDecorationMap));let{i:g,off:y}=i.findPos(u,1),{i:b,off:v}=i.findPos(o,-1);PE(this,b,v,g,y,h,f,d,m)}s&&this.fixCompositionDOM(s)}compositionView(e){let t=new Ln(e.text.nodeValue);t.flags|=8;for(let{deco:n}of e.marks)t=new Cs(n,[t],t.length);let s=new Or;return s.append(t,0),s}fixCompositionDOM(e){let t=(i,a)=>{a.flags|=8|(a.children.some(o=>o.flags&7)?1:0),this.markedForComposition.add(a);let l=Gt.get(i);l&&l!=a&&(l.dom=null),a.setDOM(i)},s=this.childPos(e.range.fromB,1),n=this.children[s.i];t(e.line,n);for(let i=e.marks.length-1;i>=-1;i--)s=n.childPos(s.off,1),n=n.children[s.i],t(i>=0?e.marks[i].node:e.text,n)}updateSelection(e=!1,t=!1){(e||!this.view.observer.selectionRange.focusNode)&&this.view.observer.readSelectionRange();let s=this.view.root.activeElement,n=s==this.dom,i=!n&&Pl(this.dom,this.view.observer.selectionRange)&&!(s&&this.dom.contains(s));if(!(n||t||i))return;let a=this.forceSelection;this.forceSelection=!1;let l=this.view.state.selection.main,o=this.moveToLine(this.domAtPos(l.anchor)),u=l.empty?o:this.moveToLine(this.domAtPos(l.head));if(ft.gecko&&l.empty&&!this.hasComposition&&tM(o)){let p=document.createTextNode("");this.view.observer.ignore(()=>o.node.insertBefore(p,o.node.childNodes[o.offset]||null)),o=u=new _r(p,0),a=!0}let c=this.view.observer.selectionRange;(a||!c.focusNode||(!eo(o.node,o.offset,c.anchorNode,c.anchorOffset)||!eo(u.node,u.offset,c.focusNode,c.focusOffset))&&!this.suppressWidgetCursorChange(c,l))&&(this.view.observer.ignore(()=>{ft.android&&ft.chrome&&this.dom.contains(c.focusNode)&&aM(c.focusNode,this.dom)&&(this.dom.blur(),this.dom.focus({preventScroll:!0}));let p=Rl(this.view.root);if(p)if(l.empty){if(ft.gecko){let h=nM(o.node,o.offset);if(h&&h!=3){let f=(h==1?kE:AE)(o.node,o.offset);f&&(o=new _r(f.node,f.offset))}}p.collapse(o.node,o.offset),l.bidiLevel!=null&&p.caretBidiLevel!==void 0&&(p.caretBidiLevel=l.bidiLevel)}else if(p.extend){p.collapse(o.node,o.offset);try{p.extend(u.node,u.offset)}catch{}}else{let h=document.createRange();l.anchor>l.head&&([o,u]=[u,o]),h.setEnd(u.node,u.offset),h.setStart(o.node,o.offset),p.removeAllRanges(),p.addRange(h)}i&&this.view.root.activeElement==this.dom&&(this.dom.blur(),s&&s.focus())}),this.view.observer.setSelectionRange(o,u)),this.impreciseAnchor=o.precise?null:new _r(c.anchorNode,c.anchorOffset),this.impreciseHead=u.precise?null:new _r(c.focusNode,c.focusOffset)}suppressWidgetCursorChange(e,t){return this.hasComposition&&t.empty&&eo(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)&&this.posFromDOM(e.focusNode,e.focusOffset)==t.head}enforceCursorAssoc(){if(this.hasComposition)return;let{view:e}=this,t=e.state.selection.main,s=Rl(e.root),{anchorNode:n,anchorOffset:i}=e.observer.selectionRange;if(!s||!t.empty||!t.assoc||!s.modify)return;let a=Or.find(this,t.head);if(!a)return;let l=a.posAtStart;if(t.head==l||t.head==l+a.length)return;let o=this.coordsAt(t.head,-1),u=this.coordsAt(t.head,1);if(!o||!u||o.bottom>u.top)return;let c=this.domAtPos(t.head+t.assoc);s.collapse(c.node,c.offset),s.modify("move",t.assoc<0?"forward":"backward","lineboundary"),e.observer.readSelectionRange();let p=e.observer.selectionRange;e.docView.posFromDOM(p.anchorNode,p.anchorOffset)!=t.from&&s.collapse(n,i)}moveToLine(e){let t=this.dom,s;if(e.node!=t)return e;for(let n=e.offset;!s&&n=0;n--){let i=Gt.get(t.childNodes[n]);i instanceof Or&&(s=i.domAtPos(i.length))}return s?new _r(s.node,s.offset,!0):e}nearest(e){for(let t=e;t;){let s=Gt.get(t);if(s&&s.rootView==this)return s;t=t.parentNode}return null}posFromDOM(e,t){let s=this.nearest(e);if(!s)throw new RangeError("Trying to find position for a DOM position outside of the document");return s.localPosFromDOM(e,t)+s.posAtStart}domAtPos(e){let{i:t,off:s}=this.childCursor().findPos(e,-1);for(;t=0;a--){let l=this.children[a],o=i-l.breakAfter,u=o-l.length;if(oe||l.covers(1))&&(!s||l instanceof Or&&!(s instanceof Or&&t>=0))&&(s=l,n=u),i=u}return s?s.coordsAt(e-n,t):null}coordsForChar(e){let{i:t,off:s}=this.childPos(e,1),n=this.children[t];if(!(n instanceof Or))return null;for(;n.children.length;){let{i:l,off:o}=n.childPos(s,1);for(;;l++){if(l==n.children.length)return null;if((n=n.children[l]).length)break}s=o}if(!(n instanceof Ln))return null;let i=ur(n.text,s);if(i==s)return null;let a=ei(n.dom,s,i).getClientRects();for(let l=0;lMath.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,l=-1,o=this.view.textDirection==Zt.LTR;for(let u=0,c=0;cn)break;if(u>=s){let f=p.dom.getBoundingClientRect();if(t.push(f.height),a){let d=p.dom.lastChild,m=d?oo(d):[];if(m.length){let g=m[m.length-1],y=o?g.right-f.left:f.right-g.left;y>l&&(l=y,this.minWidth=i,this.minWidthFrom=u,this.minWidthTo=h)}}}u=h+p.breakAfter}return t}textDirectionAt(e){let{i:t}=this.childPos(e,1);return getComputedStyle(this.children[t].dom).direction=="rtl"?Zt.RTL:Zt.LTR}measureTextSize(){for(let i of this.children)if(i instanceof Or){let a=i.measureTextSize();if(a)return a}let e=document.createElement("div"),t,s,n;return e.className="cm-line",e.style.width="99999px",e.style.position="absolute",e.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore(()=>{this.dom.appendChild(e);let i=oo(e.firstChild)[0];t=e.getBoundingClientRect().height,s=i?i.width/27:7,n=i?i.height:t,e.remove()}),{lineHeight:t,charWidth:s,textHeight:n}}childCursor(e=this.length){let t=this.children.length;return t&&(e-=this.children[--t].length),new Nl(this.children,e,t)}computeBlockGapDeco(){let e=[],t=this.view.viewState;for(let s=0,n=0;;n++){let i=n==t.viewports.length?null:t.viewports[n],a=i?i.from-1:this.length;if(a>s){let l=(t.lineBlockAt(a).bottom-t.lineBlockAt(s).top)/this.view.scaleY;e.push(yt.replace({widget:new Ml(l),block:!0,inclusive:!0,isBlockGap:!0}).range(s,a))}if(!i)break;s=i.to+1}return yt.set(e)}updateDeco(){let e=0,t=this.view.state.facet(po).map(i=>(this.dynamicDecorationMap[e++]=typeof i=="function")?i(this.view):i),s=!1,n=this.view.state.facet(HE).map((i,a)=>{let l=typeof i=="function";return l&&(s=!0),l?i(this.view):i});for(n.length&&(this.dynamicDecorationMap[e++]=s,t.push(Mt.join(n))),this.decorations=[...t,this.computeBlockGapDeco(),this.view.viewState.lineGapDeco];et.anchor?-1:1),n;if(!s)return;!t.empty&&(n=this.coordsAt(t.anchor,t.anchor>t.head?-1:1))&&(s={left:Math.min(s.left,n.left),top:Math.min(s.top,n.top),right:Math.max(s.right,n.right),bottom:Math.max(s.bottom,n.bottom)});let i=eC(this.view),a={left:s.left-i.left,top:s.top-i.top,right:s.right+i.right,bottom:s.bottom+i.bottom},{offsetWidth:l,offsetHeight:o}=this.view.scrollDOM;N3(this.view.scrollDOM,a,t.head{se.from&&(t=!0)}),t}function lM(r,e,t=1){let s=r.charCategorizer(e),n=r.doc.lineAt(e),i=e-n.from;if(n.length==0)return Ze.cursor(e);i==0?t=1:i==n.length&&(t=-1);let a=i,l=i;t<0?a=ur(n.text,i,!1):l=ur(n.text,i);let o=s(n.text.slice(a,l));for(;a>0;){let u=ur(n.text,a,!1);if(s(n.text.slice(u,a))!=o)break;a=u}for(;lr?e.left-r:Math.max(0,r-e.right)}function cM(r,e){return e.top>r?e.top-r:Math.max(0,r-e.bottom)}function kf(r,e){return r.tope.top+1}function VS(r,e){return er.bottom?{top:r.top,left:r.left,right:r.right,bottom:e}:r}function Vf(r,e,t){let s,n,i,a,l=!1,o,u,c,p;for(let d=r.firstChild;d;d=d.nextSibling){let m=oo(d);for(let g=0;gv||a==v&&i>b){s=d,n=y,i=b,a=v;let S=v?t0?g0)}b==0?t>y.bottom&&(!c||c.bottomy.top)&&(u=d,p=y):c&&kf(c,y)?c=WS(c,y.bottom):p&&kf(p,y)&&(p=VS(p,y.top))}}if(c&&c.bottom>=t?(s=o,n=c):p&&p.top<=t&&(s=u,n=p),!s)return{node:r,offset:0};let h=Math.max(n.left,Math.min(n.right,e));if(s.nodeType==3)return ZS(s,h,t);if(l&&s.contentEditable!="false")return Vf(s,h,t);let f=Array.prototype.indexOf.call(r.childNodes,s)+(e>=(n.left+n.right)/2?1:0);return{node:r,offset:f}}function ZS(r,e,t){let s=r.nodeValue.length,n=-1,i=1e9,a=0;for(let l=0;lt?c.top-t:t-c.bottom)-1;if(c.left-1<=e&&c.right+1>=e&&p=(c.left+c.right)/2,f=h;if((ft.chrome||ft.gecko)&&ei(r,l).getBoundingClientRect().left==c.right&&(f=!h),p<=0)return{node:r,offset:l+(f?1:0)};n=l+(f?1:0),i=p}}}return{node:r,offset:n>-1?n:a>0?r.nodeValue.length:0}}function rC(r,e,t,s=-1){var n,i;let a=r.contentDOM.getBoundingClientRect(),l=a.top+r.viewState.paddingTop,o,{docHeight:u}=r.viewState,{x:c,y:p}=e,h=p-l;if(h<0)return 0;if(h>u)return r.state.doc.length;for(let S=r.viewState.heightOracle.textHeight/2,C=!1;o=r.elementAtHeight(h),o.type!=Ir.Text;)for(;h=s>0?o.bottom+S:o.top-S,!(h>=0&&h<=u);){if(C)return t?null:0;C=!0,s=-s}p=l+h;let f=o.from;if(fr.viewport.to)return r.viewport.to==r.state.doc.length?r.state.doc.length:t?null:zS(r,a,o,c,p);let d=r.dom.ownerDocument,m=r.root.elementFromPoint?r.root:d,g=m.elementFromPoint(c,p);g&&!r.contentDOM.contains(g)&&(g=null),g||(c=Math.max(a.left+1,Math.min(a.right-1,c)),g=m.elementFromPoint(c,p),g&&!r.contentDOM.contains(g)&&(g=null));let y,b=-1;if(g&&((n=r.docView.nearest(g))===null||n===void 0?void 0:n.isEditable)!=!1){if(d.caretPositionFromPoint){let S=d.caretPositionFromPoint(c,p);S&&({offsetNode:y,offset:b}=S)}else if(d.caretRangeFromPoint){let S=d.caretRangeFromPoint(c,p);S&&({startContainer:y,startOffset:b}=S,(!r.contentDOM.contains(y)||ft.safari&&fM(y,b,c)||ft.chrome&&pM(y,b,c))&&(y=void 0))}}if(!y||!r.docView.dom.contains(y)){let S=Or.find(r.docView,f);if(!S)return h>o.top+o.height/2?o.to:o.from;({node:y,offset:b}=Vf(S.dom,c,p))}let v=r.docView.nearest(y);if(!v)return null;if(v.isWidget&&((i=v.dom)===null||i===void 0?void 0:i.nodeType)==1){let S=v.dom.getBoundingClientRect();return e.yr.defaultLineHeight*1.5){let l=r.viewState.heightOracle.textHeight,o=Math.floor((n-t.top-(r.defaultLineHeight-l)*.5)/l);i+=o*r.viewState.heightOracle.lineLength}let a=r.state.sliceDoc(t.from,t.to);return t.from+yl(a,i,r.state.tabSize)}function fM(r,e,t){let s;if(r.nodeType!=3||e!=(s=r.nodeValue.length))return!1;for(let n=r.nextSibling;n;n=n.nextSibling)if(n.nodeType!=1||n.nodeName!="BR")return!1;return ei(r,s-1,s).getBoundingClientRect().left>t}function pM(r,e,t){if(e!=0)return!1;for(let n=r;;){let i=n.parentNode;if(!i||i.nodeType!=1||i.firstChild!=n)return!1;if(i.classList.contains("cm-line"))break;n=i}let s=r.nodeType==1?r.getBoundingClientRect():ei(r,0,Math.max(r.nodeValue.length,1)).getBoundingClientRect();return t-s.left>5}function Wf(r,e){let t=r.lineBlockAt(e);if(Array.isArray(t.type)){for(let s of t.type)if(s.to>e||s.to==e&&(s.to==t.to||s.type==Ir.Text))return s}return t}function hM(r,e,t,s){let n=Wf(r,e.head),i=!s||n.type!=Ir.Text||!(r.lineWrapping||n.widgetLineBreaks)?null:r.coordsAtPos(e.assoc<0&&e.head>n.from?e.head-1:e.head);if(i){let a=r.dom.getBoundingClientRect(),l=r.textDirectionAt(n.from),o=r.posAtCoords({x:t==(l==Zt.LTR)?a.right-1:a.left+1,y:(i.top+i.bottom)/2});if(o!=null)return Ze.cursor(o,t?-1:1)}return Ze.cursor(t?n.to:n.from,t?-1:1)}function XS(r,e,t,s){let n=r.state.doc.lineAt(e.head),i=r.bidiSpans(n),a=r.textDirectionAt(n.from);for(let l=e,o=null;;){let u=K3(n,i,a,l,t),c=jE;if(!u){if(n.number==(t?r.state.doc.lines:1))return l;c=` -`,n=r.state.doc.line(n.number+(t?1:-1)),i=r.bidiSpans(n),u=r.visualLineSide(n,!t)}if(o){if(!o(c))return l}else{if(!s)return u;o=s(c)}l=u}}function dM(r,e,t){let s=r.state.charCategorizer(e),n=s(t);return i=>{let a=s(i);return n==Wt.Space&&(n=a),n==a}}function mM(r,e,t,s){let n=e.head,i=t?1:-1;if(n==(t?r.state.doc.length:0))return Ze.cursor(n,e.assoc);let a=e.goalColumn,l,o=r.contentDOM.getBoundingClientRect(),u=r.coordsAtPos(n,e.assoc||-1),c=r.documentTop;if(u)a==null&&(a=u.left-o.left),l=i<0?u.top:u.bottom;else{let f=r.viewState.lineBlockAt(n);a==null&&(a=Math.min(o.right-o.left,r.defaultCharacterWidth*(n-f.from))),l=(i<0?f.top:f.bottom)+c}let p=o.left+a,h=s??r.viewState.heightOracle.textHeight>>1;for(let f=0;;f+=10){let d=l+(h+f)*i,m=rC(r,{x:p,y:d},!1,i);if(do.bottom||(i<0?mn)){let g=r.docView.coordsForChar(m),y=!g||d{if(e>i&&en(r)),t.from,e.head>t.from?-1:1);return s==t.from?t:Ze.cursor(s,snull),ft.gecko&&DM(e.contentDOM.ownerDocument)}handleEvent(e){!SM(this.view,e)||this.ignoreDuringComposition(e)||e.type=="keydown"&&this.keydown(e)||this.runHandlers(e.type,e)}runHandlers(e,t){let s=this.handlers[e];if(s){for(let n of s.observers)n(this.view,t);for(let n of s.handlers){if(t.defaultPrevented)break;if(n(this.view,t)){t.preventDefault();break}}}}ensureHandlers(e){let t=gM(e),s=this.handlers,n=this.view.contentDOM;for(let i in t)if(i!="scroll"){let a=!t[i].handlers.length,l=s[i];l&&a!=!l.handlers.length&&(n.removeEventListener(i,this.handleEvent),l=null),l||n.addEventListener(i,this.handleEvent,{passive:a})}for(let i in s)i!="scroll"&&!t[i]&&n.removeEventListener(i,this.handleEvent);this.handlers=t}keydown(e){if(this.lastKeyCode=e.keyCode,this.lastKeyTime=Date.now(),e.keyCode==9&&Date.now()s.keyCode==e.keyCode))&&!e.ctrlKey||yM.indexOf(e.key)>-1&&e.ctrlKey&&!e.shiftKey)?(this.pendingIOSKey=t||e,setTimeout(()=>this.flushIOSKey(),250),!0):(e.keyCode!=229&&this.view.observer.forceFlush(),!1)}flushIOSKey(e){let t=this.pendingIOSKey;return!t||t.key=="Enter"&&e&&e.from0?!0:ft.safari&&!ft.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100?(this.compositionPendingKey=!1,!0):!1:!1}startMouseSelection(e){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=e}update(e){this.mouseSelection&&this.mouseSelection.update(e),this.draggedContent&&e.docChanged&&(this.draggedContent=this.draggedContent.map(e.changes)),e.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}};function GS(r,e){return(t,s)=>{try{return e.call(r,s,t)}catch(n){yr(t.state,n)}}}function gM(r){let e=Object.create(null);function t(s){return e[s]||(e[s]={observers:[],handlers:[]})}for(let s of r){let n=s.spec;if(n&&n.domEventHandlers)for(let i in n.domEventHandlers){let a=n.domEventHandlers[i];a&&t(i).handlers.push(GS(s.value,a))}if(n&&n.domEventObservers)for(let i in n.domEventObservers){let a=n.domEventObservers[i];a&&t(i).observers.push(GS(s.value,a))}}for(let s in xn)t(s).handlers.push(xn[s]);for(let s in on)t(s).observers.push(on[s]);return e}var nC=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],yM="dthko",sC=[16,17,18,20,91,92,224,225],Ol=6;function Sl(r){return Math.max(0,r)*.7+8}function xM(r,e){return Math.max(Math.abs(r.clientX-e.clientX),Math.abs(r.clientY-e.clientY))}var zf=class{constructor(e,t,s,n){this.view=e,this.startEvent=t,this.style=s,this.mustSelect=n,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=t,this.scrollParent=L3(e.contentDOM),this.atoms=e.state.facet(Cp).map(a=>a(e));let i=e.contentDOM.ownerDocument;i.addEventListener("mousemove",this.move=this.move.bind(this)),i.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=t.shiftKey,this.multiple=e.state.facet(Ut.allowMultipleSelections)&&bM(e,t),this.dragging=OM(e,t)&&lC(t)==1?null:!1}start(e){this.dragging===!1&&this.select(e)}move(e){var t;if(e.buttons==0)return this.destroy();if(this.dragging||this.dragging==null&&xM(this.startEvent,e)<10)return;this.select(this.lastEvent=e);let s=0,n=0,i=((t=this.scrollParent)===null||t===void 0?void 0:t.getBoundingClientRect())||{left:0,top:0,right:this.view.win.innerWidth,bottom:this.view.win.innerHeight},a=eC(this.view);e.clientX-a.left<=i.left+Ol?s=-Sl(i.left-e.clientX):e.clientX+a.right>=i.right-Ol&&(s=Sl(e.clientX-i.right)),e.clientY-a.top<=i.top+Ol?n=-Sl(i.top-e.clientY):e.clientY+a.bottom>=i.bottom-Ol&&(n=Sl(e.clientY-i.bottom)),this.setScrollSpeed(s,n)}up(e){this.dragging==null&&this.select(this.lastEvent),this.dragging||e.preventDefault(),this.destroy()}destroy(){this.setScrollSpeed(0,0);let e=this.view.contentDOM.ownerDocument;e.removeEventListener("mousemove",this.move),e.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=this.view.inputState.draggedContent=null}setScrollSpeed(e,t){this.scrollSpeed={x:e,y:t},e||t?this.scrolling<0&&(this.scrolling=setInterval(()=>this.scroll(),50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}scroll(){this.scrollParent?(this.scrollParent.scrollLeft+=this.scrollSpeed.x,this.scrollParent.scrollTop+=this.scrollSpeed.y):this.view.win.scrollBy(this.scrollSpeed.x,this.scrollSpeed.y),this.dragging===!1&&this.select(this.lastEvent)}skipAtoms(e){let t=null;for(let s=0;sthis.select(this.lastEvent),20)}};function bM(r,e){let t=r.state.facet(qE);return t.length?t[0](e):ft.mac?e.metaKey:e.ctrlKey}function vM(r,e){let t=r.state.facet(QE);return t.length?t[0](e):ft.mac?!e.altKey:!e.ctrlKey}function OM(r,e){let{main:t}=r.state.selection;if(t.empty)return!1;let s=Rl(r.root);if(!s||s.rangeCount==0)return!0;let n=s.getRangeAt(0).getClientRects();for(let i=0;i=e.clientX&&a.top<=e.clientY&&a.bottom>=e.clientY)return!0}return!1}function SM(r,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let t=e.target,s;t!=r.contentDOM;t=t.parentNode)if(!t||t.nodeType==11||(s=Gt.get(t))&&s.ignoreEvent(e))return!1;return!0}var xn=Object.create(null),on=Object.create(null),iC=ft.ie&&ft.ie_version<15||ft.ios&&ft.webkit_version<604;function EM(r){let e=r.dom.parentNode;if(!e)return;let t=e.appendChild(document.createElement("textarea"));t.style.cssText="position: fixed; left: -10000px; top: 10px",t.focus(),setTimeout(()=>{r.focus(),t.remove(),aC(r,t.value)},50)}function aC(r,e){let{state:t}=r,s,n=1,i=t.toText(e),a=i.lines==t.selection.ranges.length;if(Xf!=null&&t.selection.ranges.every(o=>o.empty)&&Xf==i.toString()){let o=-1;s=t.changeByRange(u=>{let c=t.doc.lineAt(u.from);if(c.from==o)return{range:u};o=c.from;let p=t.toText((a?i.line(n++).text:e)+t.lineBreak);return{changes:{from:c.from,insert:p},range:Ze.cursor(u.from+p.length)}})}else a?s=t.changeByRange(o=>{let u=i.line(n++);return{changes:{from:o.from,to:o.to,insert:u.text},range:Ze.cursor(o.from+u.length)}}):s=t.replaceSelection(i);r.dispatch(s,{userEvent:"input.paste",scrollIntoView:!0})}on.scroll=r=>{r.inputState.lastScrollTop=r.scrollDOM.scrollTop,r.inputState.lastScrollLeft=r.scrollDOM.scrollLeft};xn.keydown=(r,e)=>(r.inputState.setSelectionOrigin("select"),e.keyCode==27&&(r.inputState.lastEscPress=Date.now()),!1);on.touchstart=(r,e)=>{r.inputState.lastTouchTime=Date.now(),r.inputState.setSelectionOrigin("select.pointer")};on.touchmove=r=>{r.inputState.setSelectionOrigin("select.pointer")};xn.mousedown=(r,e)=>{if(r.observer.flush(),r.inputState.lastTouchTime>Date.now()-2e3)return!1;let t=null;for(let s of r.state.facet(UE))if(t=s(r,e),t)break;if(!t&&e.button==0&&(t=kM(r,e)),t){let s=!r.hasFocus;r.inputState.startMouseSelection(new zf(r,e,t,s)),s&&r.observer.ignore(()=>EE(r.contentDOM));let n=r.inputState.mouseSelection;if(n)return n.start(e),n.dragging===!1}return!1};function YS(r,e,t,s){if(s==1)return Ze.cursor(e,t);if(s==2)return lM(r.state,e,t);{let n=Or.find(r.docView,e),i=r.state.doc.lineAt(n?n.posAtEnd:e),a=n?n.posAtStart:i.from,l=n?n.posAtEnd:i.to;return lr>=e.top&&r<=e.bottom,HS=(r,e,t)=>oC(e,t)&&r>=t.left&&r<=t.right;function CM(r,e,t,s){let n=Or.find(r.docView,e);if(!n)return 1;let i=e-n.posAtStart;if(i==0)return 1;if(i==n.length)return-1;let a=n.coordsAt(i,-1);if(a&&HS(t,s,a))return-1;let l=n.coordsAt(i,1);return l&&HS(t,s,l)?1:a&&oC(s,a)?-1:1}function KS(r,e){let t=r.posAtCoords({x:e.clientX,y:e.clientY},!1);return{pos:t,bias:CM(r,t,e.clientX,e.clientY)}}var wM=ft.ie&&ft.ie_version<=11,JS=null,eE=0,tE=0;function lC(r){if(!wM)return r.detail;let e=JS,t=tE;return JS=r,tE=Date.now(),eE=!e||t>Date.now()-400&&Math.abs(e.clientX-r.clientX)<2&&Math.abs(e.clientY-r.clientY)<2?(eE+1)%3:1}function kM(r,e){let t=KS(r,e),s=lC(e),n=r.state.selection;return{update(i){i.docChanged&&(t.pos=i.changes.mapPos(t.pos),n=n.map(i.changes))},get(i,a,l){let o=KS(r,i),u,c=YS(r,o.pos,o.bias,s);if(t.pos!=o.pos&&!a){let p=YS(r,t.pos,t.bias,s),h=Math.min(p.from,c.from),f=Math.max(p.to,c.to);c=h1&&(u=AM(n,o.pos))?u:l?n.addRange(c):Ze.create([c])}}}function AM(r,e){for(let t=0;t=e)return Ze.create(r.ranges.slice(0,t).concat(r.ranges.slice(t+1)),r.mainIndex==t?0:r.mainIndex-(r.mainIndex>t?1:0))}return null}xn.dragstart=(r,e)=>{let{selection:{main:t}}=r.state;if(e.target.draggable){let n=r.docView.nearest(e.target);if(n&&n.isWidget){let i=n.posAtStart,a=i+n.length;(i>=t.to||a<=t.from)&&(t=Ze.range(i,a))}}let{inputState:s}=r;return s.mouseSelection&&(s.mouseSelection.dragging=!0),s.draggedContent=t,e.dataTransfer&&(e.dataTransfer.setData("Text",r.state.sliceDoc(t.from,t.to)),e.dataTransfer.effectAllowed="copyMove"),!1};xn.dragend=r=>(r.inputState.draggedContent=null,!1);function rE(r,e,t,s){if(!t)return;let n=r.posAtCoords({x:e.clientX,y:e.clientY},!1),{draggedContent:i}=r.inputState,a=s&&i&&vM(r,e)?{from:i.from,to:i.to}:null,l={from:n,insert:t},o=r.state.changes(a?[a,l]:l);r.focus(),r.dispatch({changes:o,selection:{anchor:o.mapPos(n,-1),head:o.mapPos(n,1)},userEvent:a?"move.drop":"input.drop"}),r.inputState.draggedContent=null}xn.drop=(r,e)=>{if(!e.dataTransfer)return!1;if(r.state.readOnly)return!0;let t=e.dataTransfer.files;if(t&&t.length){let s=Array(t.length),n=0,i=()=>{++n==t.length&&rE(r,e,s.filter(a=>a!=null).join(r.state.lineBreak),!1)};for(let a=0;a{/[\x00-\x08\x0e-\x1f]{2}/.test(l.result)||(s[a]=l.result),i()},l.readAsText(t[a])}return!0}else{let s=e.dataTransfer.getData("Text");if(s)return rE(r,e,s,!0),!0}return!1};xn.paste=(r,e)=>{if(r.state.readOnly)return!0;r.observer.flush();let t=iC?null:e.clipboardData;return t?(aC(r,t.getData("text/plain")||t.getData("text/uri-list")),!0):(EM(r),!1)};function PM(r,e){let t=r.dom.parentNode;if(!t)return;let s=t.appendChild(document.createElement("textarea"));s.style.cssText="position: fixed; left: -10000px; top: 10px",s.value=e,s.focus(),s.selectionEnd=e.length,s.selectionStart=0,setTimeout(()=>{s.remove(),r.focus()},50)}function TM(r){let e=[],t=[],s=!1;for(let n of r.selection.ranges)n.empty||(e.push(r.sliceDoc(n.from,n.to)),t.push(n));if(!e.length){let n=-1;for(let{from:i}of r.selection.ranges){let a=r.doc.lineAt(i);a.number>n&&(e.push(a.text),t.push({from:a.from,to:Math.min(r.doc.length,a.to+1)})),n=a.number}s=!0}return{text:e.join(r.lineBreak),ranges:t,linewise:s}}var Xf=null;xn.copy=xn.cut=(r,e)=>{let{text:t,ranges:s,linewise:n}=TM(r.state);if(!t&&!n)return!1;Xf=n?t:null,e.type=="cut"&&!r.state.readOnly&&r.dispatch({changes:s,scrollIntoView:!0,userEvent:"delete.cut"});let i=iC?null:e.clipboardData;return i?(i.clearData(),i.setData("text/plain",t),!0):(PM(r,t),!1)};var uC=Mr.define();function cC(r,e){let t=[];for(let s of r.facet(ZE)){let n=s(r,e);n&&t.push(n)}return t?r.update({effects:t,annotations:uC.of(!0)}):null}function fC(r){setTimeout(()=>{let e=r.hasFocus;if(e!=r.inputState.notifiedFocused){let t=cC(r.state,e);t?r.dispatch(t):r.update([])}},10)}on.focus=r=>{r.inputState.lastFocusTime=Date.now(),!r.scrollDOM.scrollTop&&(r.inputState.lastScrollTop||r.inputState.lastScrollLeft)&&(r.scrollDOM.scrollTop=r.inputState.lastScrollTop,r.scrollDOM.scrollLeft=r.inputState.lastScrollLeft),fC(r)};on.blur=r=>{r.observer.clearSelectionRange(),fC(r)};on.compositionstart=on.compositionupdate=r=>{r.inputState.compositionFirstChange==null&&(r.inputState.compositionFirstChange=!0),r.inputState.composing<0&&(r.inputState.composing=0)};on.compositionend=r=>{r.inputState.composing=-1,r.inputState.compositionEndedAt=Date.now(),r.inputState.compositionPendingKey=!0,r.inputState.compositionPendingChange=r.observer.pendingRecords().length>0,r.inputState.compositionFirstChange=null,ft.chrome&&ft.android?r.observer.flushSoon():r.inputState.compositionPendingChange?Promise.resolve().then(()=>r.observer.flush()):setTimeout(()=>{r.inputState.composing<0&&r.docView.hasComposition&&r.update([])},50)};on.contextmenu=r=>{r.inputState.lastContextMenu=Date.now()};xn.beforeinput=(r,e)=>{var t;let s;if(ft.chrome&&ft.android&&(s=nC.find(n=>n.inputType==e.inputType))&&(r.observer.delayAndroidKey(s.key,s.keyCode),s.key=="Backspace"||s.key=="Delete")){let n=((t=window.visualViewport)===null||t===void 0?void 0:t.height)||0;setTimeout(()=>{var i;(((i=window.visualViewport)===null||i===void 0?void 0:i.height)||0)>n+10&&r.hasFocus&&(r.contentDOM.blur(),r.focus())},100)}return ft.ios&&e.inputType=="deleteContentForward"&&r.observer.flushSoon(),ft.safari&&e.inputType=="insertText"&&r.inputState.composing>=0&&setTimeout(()=>on.compositionend(r,e),20),!1};var nE=new Set;function DM(r){nE.has(r)||(nE.add(r),r.addEventListener("copy",()=>{}),r.addEventListener("cut",()=>{}))}var sE=["pre-wrap","normal","pre-line","break-spaces"],Gf=class{constructor(e){this.lineWrapping=e,this.doc=Ft.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.textHeight=14,this.lineLength=30,this.heightChanged=!1}heightForGap(e,t){let s=this.doc.lineAt(t).number-this.doc.lineAt(e).number+1;return this.lineWrapping&&(s+=Math.max(0,Math.ceil((t-e-s*this.lineLength*.5)/this.lineLength))),this.lineHeight*s}heightForLine(e){return this.lineWrapping?(1+Math.max(0,Math.ceil((e-this.lineLength)/(this.lineLength-5))))*this.lineHeight:this.lineHeight}setDoc(e){return this.doc=e,this}mustRefreshForWrapping(e){return sE.indexOf(e)>-1!=this.lineWrapping}mustRefreshForHeights(e){let t=!1;for(let s=0;s-1,o=Math.round(t)!=Math.round(this.lineHeight)||this.lineWrapping!=l;if(this.lineWrapping=l,this.lineHeight=t,this.charWidth=s,this.textHeight=n,this.lineLength=i,o){this.heightSamples={};for(let u=0;u0}set outdated(e){this.flags=(e?2:0)|this.flags&-3}setHeight(e,t){this.height!=t&&(Math.abs(this.height-t)>Dl&&(e.heightChanged=!0),this.height=t)}replace(e,t,s){return r.of(s)}decomposeLeft(e,t){t.push(this)}decomposeRight(e,t){t.push(this)}applyChanges(e,t,s,n){let i=this,a=s.doc;for(let l=n.length-1;l>=0;l--){let{fromA:o,toA:u,fromB:c,toB:p}=n[l],h=i.lineAt(o,Ht.ByPosNoHeight,s.setDoc(t),0,0),f=h.to>=u?h:i.lineAt(u,Ht.ByPosNoHeight,s,0,0);for(p+=f.to-u,u=f.to;l>0&&h.from<=n[l-1].toA;)o=n[l-1].fromA,c=n[l-1].fromB,l--,oi*2){let l=e[t-1];l.break?e.splice(--t,1,l.left,null,l.right):e.splice(--t,1,l.left,l.right),s+=1+l.break,n-=l.size}else if(i>n*2){let l=e[s];l.break?e.splice(s,1,l.left,null,l.right):e.splice(s,1,l.left,l.right),s+=2+l.break,i-=l.size}else break;else if(n=i&&a(this.blockAt(0,s,n,i))}updateHeight(e,t=0,s=!1,n){return n&&n.from<=t&&n.more&&this.setHeight(e,n.heights[n.index++]),this.outdated=!1,this}toString(){return`block(${this.length})`}},sn=class r extends jl{constructor(e,t){super(e,t,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0}blockAt(e,t,s,n){return new Rn(n,this.length,s,this.height,this.breaks)}replace(e,t,s){let n=s[0];return s.length==1&&(n instanceof r||n instanceof Es&&n.flags&4)&&Math.abs(this.length-n.length)<10?(n instanceof Es?n=new r(n.length,this.height):n.height=this.height,this.outdated||(n.outdated=!1),n):Xr.of(s)}updateHeight(e,t=0,s=!1,n){return n&&n.from<=t&&n.more?this.setHeight(e,n.heights[n.index++]):(s||this.outdated)&&this.setHeight(e,Math.max(this.widgetHeight,e.heightForLine(this.length-this.collapsed))+this.breaks*e.lineHeight),this.outdated=!1,this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}},Es=class r extends Xr{constructor(e){super(e,0)}heightMetrics(e,t){let s=e.doc.lineAt(t).number,n=e.doc.lineAt(t+this.length).number,i=n-s+1,a,l=0;if(e.lineWrapping){let o=Math.min(this.height,e.lineHeight*i);a=o/i,this.length>i+1&&(l=(this.height-o)/(this.length-i-1))}else a=this.height/i;return{firstLine:s,lastLine:n,perLine:a,perChar:l}}blockAt(e,t,s,n){let{firstLine:i,lastLine:a,perLine:l,perChar:o}=this.heightMetrics(t,n);if(t.lineWrapping){let u=n+(e0){let i=s[s.length-1];i instanceof r?s[s.length-1]=new r(i.length+n):s.push(null,new r(n-1))}if(e>0){let i=s[0];i instanceof r?s[0]=new r(e+i.length):s.unshift(new r(e-1),null)}return Xr.of(s)}decomposeLeft(e,t){t.push(new r(e-1),null)}decomposeRight(e,t){t.push(null,new r(this.length-e-1))}updateHeight(e,t=0,s=!1,n){let i=t+this.length;if(n&&n.from<=t+this.length&&n.more){let a=[],l=Math.max(t,n.from),o=-1;for(n.from>t&&a.push(new r(n.from-t-1).updateHeight(e,t));l<=i&&n.more;){let c=e.doc.lineAt(l).length;a.length&&a.push(null);let p=n.heights[n.index++];o==-1?o=p:Math.abs(p-o)>=Dl&&(o=-2);let h=new sn(c,p);h.outdated=!1,a.push(h),l+=c+1}l<=i&&a.push(null,new r(i-l).updateHeight(e,l));let u=Xr.of(a);return(o<0||Math.abs(u.height-this.height)>=Dl||Math.abs(o-this.heightMetrics(e,t).perLine)>=Dl)&&(e.heightChanged=!0),u}else(s||this.outdated)&&(this.setHeight(e,e.heightForGap(t,t+this.length)),this.outdated=!1);return this}toString(){return`gap(${this.length})`}},Hf=class extends Xr{constructor(e,t,s){super(e.length+t+s.length,e.height+s.height,t|(e.outdated||s.outdated?2:0)),this.left=e,this.right=s,this.size=e.size+s.size}get break(){return this.flags&1}blockAt(e,t,s,n){let i=s+this.left.height;return el))return u;let c=t==Ht.ByPosNoHeight?Ht.ByPosNoHeight:Ht.ByPos;return o?u.join(this.right.lineAt(l,c,s,a,l)):this.left.lineAt(l,c,s,n,i).join(u)}forEachLine(e,t,s,n,i,a){let l=n+this.left.height,o=i+this.left.length+this.break;if(this.break)e=o&&this.right.forEachLine(e,t,s,l,o,a);else{let u=this.lineAt(o,Ht.ByPos,s,n,i);e=e&&u.from<=t&&a(u),t>u.to&&this.right.forEachLine(u.to+1,t,s,l,o,a)}}replace(e,t,s){let n=this.left.length+this.break;if(tthis.left.length)return this.balanced(this.left,this.right.replace(e-n,t-n,s));let i=[];e>0&&this.decomposeLeft(e,i);let a=i.length;for(let l of s)i.push(l);if(e>0&&iE(i,a-1),t=s&&t.push(null)),e>s&&this.right.decomposeLeft(e-s,t)}decomposeRight(e,t){let s=this.left.length,n=s+this.break;if(e>=n)return this.right.decomposeRight(e-n,t);e2*t.size||t.size>2*e.size?Xr.of(this.break?[e,null,t]:[e,t]):(this.left=e,this.right=t,this.height=e.height+t.height,this.outdated=e.outdated||t.outdated,this.size=e.size+t.size,this.length=e.length+this.break+t.length,this)}updateHeight(e,t=0,s=!1,n){let{left:i,right:a}=this,l=t+i.length+this.break,o=null;return n&&n.from<=t+i.length&&n.more?o=i=i.updateHeight(e,t,s,n):i.updateHeight(e,t,s),n&&n.from<=l+a.length&&n.more?o=a=a.updateHeight(e,l,s,n):a.updateHeight(e,l,s),o?this.balanced(i,a):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}};function iE(r,e){let t,s;r[e]==null&&(t=r[e-1])instanceof Es&&(s=r[e+1])instanceof Es&&r.splice(e-1,3,new Es(t.length+1+s.length))}var _M=5,Kf=class r{constructor(e,t){this.pos=e,this.oracle=t,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=e}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(e,t){if(this.lineStart>-1){let s=Math.min(t,this.lineEnd),n=this.nodes[this.nodes.length-1];n instanceof sn?n.length+=s-this.pos:(s>this.pos||!this.isCovered)&&this.nodes.push(new sn(s-this.pos,-1)),this.writtenTo=s,t>s&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=t}point(e,t,s){if(e=_M)&&this.addLineDeco(n,i,a)}else t>e&&this.span(e,t);this.lineEnd>-1&&this.lineEnd-1)return;let{from:e,to:t}=this.oracle.doc.lineAt(this.pos);this.lineStart=e,this.lineEnd=t,this.writtenToe&&this.nodes.push(new sn(this.pos-e,-1)),this.writtenTo=this.pos}blankContent(e,t){let s=new Es(t-e);return this.oracle.doc.lineAt(e).to==t&&(s.flags|=4),s}ensureLine(){this.enterLine();let e=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(e instanceof sn)return e;let t=new sn(0,-1);return this.nodes.push(t),t}addBlock(e){this.enterLine();let t=e.deco;t&&t.startSide>0&&!this.isCovered&&this.ensureLine(),this.nodes.push(e),this.writtenTo=this.pos=this.pos+e.length,t&&t.endSide>0&&(this.covering=e)}addLineDeco(e,t,s){let n=this.ensureLine();n.length+=s,n.collapsed+=s,n.widgetHeight=Math.max(n.widgetHeight,e),n.breaks+=t,this.writtenTo=this.pos=this.pos+s}finish(e){let t=this.nodes.length==0?null:this.nodes[this.nodes.length-1];this.lineStart>-1&&!(t instanceof sn)&&!this.isCovered?this.nodes.push(new sn(0,-1)):(this.writtenToc.clientHeight||c.scrollWidth>c.clientWidth)&&p.overflow!="visible"){let h=c.getBoundingClientRect();i=Math.max(i,h.left),a=Math.min(a,h.right),l=Math.max(l,h.top),o=u==r.parentNode?h.bottom:Math.min(o,h.bottom)}u=p.position=="absolute"||p.position=="fixed"?c.offsetParent:c.parentNode}else if(u.nodeType==11)u=u.host;else break;return{left:i-t.left,right:Math.max(i,a)-t.left,top:l-(t.top+e),bottom:Math.max(l,o)-(t.top+e)}}function RM(r,e){let t=r.getBoundingClientRect();return{left:0,right:t.right-t.left,top:e,bottom:t.bottom-(t.top+e)}}var so=class{constructor(e,t,s){this.from=e,this.to=t,this.size=s}static same(e,t){if(e.length!=t.length)return!1;for(let s=0;stypeof s!="function"&&s.class=="cm-lineWrapping");this.heightOracle=new Gf(t),this.stateDeco=e.facet(po).filter(s=>typeof s!="function"),this.heightMap=Xr.empty().applyChanges(this.stateDeco,Ft.empty,this.heightOracle.setDoc(e.doc),[new Nn(0,0,0,e.doc.length)]),this.viewport=this.getViewport(0,null),this.updateViewportLines(),this.updateForViewport(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=yt.set(this.lineGaps.map(s=>s.draw(this,!1))),this.computeVisibleRanges()}updateForViewport(){let e=[this.viewport],{main:t}=this.state.selection;for(let s=0;s<=1;s++){let n=s?t.head:t.anchor;if(!e.some(({from:i,to:a})=>n>=i&&n<=a)){let{from:i,to:a}=this.lineBlockAt(n);e.push(new qi(i,a))}}this.viewports=e.sort((s,n)=>s.from-n.from),this.scaler=this.heightMap.height<=7e6?aE:new tp(this.heightOracle,this.heightMap,this.viewports)}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,e=>{this.viewportLines.push(this.scaler.scale==1?e:Ha(e,this.scaler))})}update(e,t=null){this.state=e.state;let s=this.stateDeco;this.stateDeco=this.state.facet(po).filter(c=>typeof c!="function");let n=e.changedRanges,i=Nn.extendWithRanges(n,IM(s,this.stateDeco,e?e.changes:Dr.empty(this.state.doc.length))),a=this.heightMap.height,l=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollTop);this.heightMap=this.heightMap.applyChanges(this.stateDeco,e.startState.doc,this.heightOracle.setDoc(this.state.doc),i),this.heightMap.height!=a&&(e.flags|=2),l?(this.scrollAnchorPos=e.changes.mapPos(l.from,-1),this.scrollAnchorHeight=l.top):(this.scrollAnchorPos=-1,this.scrollAnchorHeight=this.heightMap.height);let o=i.length?this.mapViewport(this.viewport,e.changes):this.viewport;(t&&(t.range.heado.to)||!this.viewportIsAppropriate(o))&&(o=this.getViewport(0,t));let u=!e.changes.empty||e.flags&2||o.from!=this.viewport.from||o.to!=this.viewport.to;this.viewport=o,this.updateForViewport(),u&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,e.changes))),e.flags|=this.computeVisibleRanges(),t&&(this.scrollTarget=t),!this.mustEnforceCursorAssoc&&e.selectionSet&&e.view.lineWrapping&&e.state.selection.main.empty&&e.state.selection.main.assoc&&!e.state.facet(XE)&&(this.mustEnforceCursorAssoc=!0)}measure(e){let t=e.contentDOM,s=window.getComputedStyle(t),n=this.heightOracle,i=s.whiteSpace;this.defaultTextDirection=s.direction=="rtl"?Zt.RTL:Zt.LTR;let a=this.heightOracle.mustRefreshForWrapping(i),l=t.getBoundingClientRect(),o=a||this.mustMeasureContent||this.contentDOMHeight!=l.height;this.contentDOMHeight=l.height,this.mustMeasureContent=!1;let u=0,c=0;if(l.width&&l.height){let{scaleX:S,scaleY:C}=SE(t,l);(S>.005&&Math.abs(this.scaleX-S)>.005||C>.005&&Math.abs(this.scaleY-C)>.005)&&(this.scaleX=S,this.scaleY=C,u|=8,a=o=!0)}let p=(parseInt(s.paddingTop)||0)*this.scaleY,h=(parseInt(s.paddingBottom)||0)*this.scaleY;(this.paddingTop!=p||this.paddingBottom!=h)&&(this.paddingTop=p,this.paddingBottom=h,u|=10),this.editorWidth!=e.scrollDOM.clientWidth&&(n.lineWrapping&&(o=!0),this.editorWidth=e.scrollDOM.clientWidth,u|=8);let f=e.scrollDOM.scrollTop*this.scaleY;this.scrollTop!=f&&(this.scrollAnchorHeight=-1,this.scrollTop=f),this.scrolledToBottom=wE(e.scrollDOM);let d=(this.printing?RM:FM)(t,this.paddingTop),m=d.top-this.pixelViewport.top,g=d.bottom-this.pixelViewport.bottom;this.pixelViewport=d;let y=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(y!=this.inView&&(this.inView=y,y&&(o=!0)),!this.inView&&!this.scrollTarget)return 0;let b=l.width;if((this.contentDOMWidth!=b||this.editorHeight!=e.scrollDOM.clientHeight)&&(this.contentDOMWidth=l.width,this.editorHeight=e.scrollDOM.clientHeight,u|=8),o){let S=e.docView.measureVisibleLineHeights(this.viewport);if(n.mustRefreshForHeights(S)&&(a=!0),a||n.lineWrapping&&Math.abs(b-this.contentDOMWidth)>n.charWidth){let{lineHeight:C,charWidth:O,textHeight:w}=e.docView.measureTextSize();a=C>0&&n.refresh(i,C,O,w,b/O,S),a&&(e.docView.minWidth=0,u|=8)}m>0&&g>0?c=Math.max(m,g):m<0&&g<0&&(c=Math.min(m,g)),n.heightChanged=!1;for(let C of this.viewports){let O=C.from==this.viewport.from?S:e.docView.measureVisibleLineHeights(C);this.heightMap=(a?Xr.empty().applyChanges(this.stateDeco,Ft.empty,this.heightOracle,[new Nn(0,0,0,e.state.doc.length)]):this.heightMap).updateHeight(n,0,a,new Yf(C.from,O))}n.heightChanged&&(u|=2)}let v=!this.viewportIsAppropriate(this.viewport,c)||this.scrollTarget&&(this.scrollTarget.range.headthis.viewport.to);return v&&(this.viewport=this.getViewport(c,this.scrollTarget)),this.updateForViewport(),(u&2||v)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(a?[]:this.lineGaps,e)),u|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,e.docView.enforceCursorAssoc()),u}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(e,t){let s=.5-Math.max(-.5,Math.min(.5,e/1e3/2)),n=this.heightMap,i=this.heightOracle,{visibleTop:a,visibleBottom:l}=this,o=new qi(n.lineAt(a-s*1e3,Ht.ByHeight,i,0,0).from,n.lineAt(l+(1-s)*1e3,Ht.ByHeight,i,0,0).to);if(t){let{head:u}=t.range;if(uo.to){let c=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),p=n.lineAt(u,Ht.ByPos,i,0,0),h;t.y=="center"?h=(p.top+p.bottom)/2-c/2:t.y=="start"||t.y=="nearest"&&u=l+Math.max(10,Math.min(s,250)))&&n>a-2*1e3&&i>1,a=n<<1;if(this.defaultTextDirection!=Zt.LTR&&!s)return[];let l=[],o=(u,c,p,h)=>{if(c-uu&&gg.from>=p.from&&g.to<=p.to&&Math.abs(g.from-u)g.fromy));if(!m){if(cg.from<=c&&g.to>=c)){let g=t.moveToLineBoundary(Ze.cursor(c),!1,!0).head;g>u&&(c=g)}m=new so(u,c,this.gapSize(p,u,c,h))}l.push(m)};for(let u of this.viewportLines){if(u.lengthu.from&&o(u.from,h,u,c),ft.draw(this,this.heightOracle.lineWrapping))))}computeVisibleRanges(){let e=this.stateDeco;this.lineGaps.length&&(e=e.concat(this.lineGapDeco));let t=[];Mt.spans(e,this.viewport.from,this.viewport.to,{span(n,i){t.push({from:n,to:i})},point(){}},20);let s=t.length!=this.visibleRanges.length||this.visibleRanges.some((n,i)=>n.from!=t[i].from||n.to!=t[i].to);return this.visibleRanges=t,s?4:0}lineBlockAt(e){return e>=this.viewport.from&&e<=this.viewport.to&&this.viewportLines.find(t=>t.from<=e&&t.to>=e)||Ha(this.heightMap.lineAt(e,Ht.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(e){return Ha(this.heightMap.lineAt(this.scaler.fromDOM(e),Ht.ByHeight,this.heightOracle,0,0),this.scaler)}scrollAnchorAt(e){let t=this.lineBlockAtHeight(e+8);return t.from>=this.viewport.from||this.viewportLines[0].top-e>200?t:this.viewportLines[0]}elementAtHeight(e){return Ha(this.heightMap.blockAt(this.scaler.fromDOM(e),this.heightOracle,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}},qi=class{constructor(e,t){this.from=e,this.to=t}};function BM(r,e,t){let s=[],n=r,i=0;return Mt.spans(t,r,e,{span(){},point(a,l){a>n&&(s.push({from:n,to:a}),i+=a-n),n=l}},20),n=1)return e[e.length-1].to;let s=Math.floor(r*t);for(let n=0;;n++){let{from:i,to:a}=e[n],l=a-i;if(s<=l)return i+s;s-=l}}function Cl(r,e){let t=0;for(let{from:s,to:n}of r.ranges){if(e<=n){t+=e-s;break}t+=n-s}return t/r.total}function NM(r,e){for(let t of r)if(e(t))return t}var aE={toDOM(r){return r},fromDOM(r){return r},scale:1},tp=class{constructor(e,t,s){let n=0,i=0,a=0;this.viewports=s.map(({from:l,to:o})=>{let u=t.lineAt(l,Ht.ByPos,e,0,0).top,c=t.lineAt(o,Ht.ByPos,e,0,0).bottom;return n+=c-u,{from:l,to:o,top:u,bottom:c,domTop:0,domBottom:0}}),this.scale=(7e6-n)/(t.height-n);for(let l of this.viewports)l.domTop=a+(l.top-i)*this.scale,a=l.domBottom=l.domTop+(l.bottom-l.top),i=l.bottom}toDOM(e){for(let t=0,s=0,n=0;;t++){let i=tHa(n,e)):r._content)}var wl=ct.define({combine:r=>r.join(" ")}),rp=ct.define({combine:r=>r.indexOf(!0)>-1}),np=nn.newName(),pC=nn.newName(),hC=nn.newName(),dC={"&light":"."+pC,"&dark":"."+hC};function sp(r,e,t){return new nn(e,{finish(s){return/&/.test(s)?s.replace(/&\w*/,n=>{if(n=="&")return r;if(!t||!t[n])throw new RangeError(`Unsupported selector: ${n}`);return t[n]}):r+" "+s}})}var LM=sp("."+np,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",minHeight:"100%",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{position:"absolute",left:0,top:0,contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused > .cm-scroller > .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#444"},".cm-dropCursor":{position:"absolute"},"&.cm-focused > .cm-scroller > .cm-cursorLayer .cm-cursor":{display:"block"},".cm-iso":{unicodeBidi:"isolate"},".cm-announced":{position:"fixed",top:"-10000px"},"@media print":{".cm-announced":{display:"none"}},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",insetInlineStart:0,zIndex:200},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",borderRight:"1px solid #ddd"},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top"},".cm-highlightSpace:before":{content:"attr(data-display)",position:"absolute",pointerEvents:"none",color:"#888"},".cm-highlightTab":{backgroundImage:`url('data:image/svg+xml,')`,backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},dC),Ka="\uFFFF",ip=class{constructor(e,t){this.points=e,this.text="",this.lineSeparator=t.facet(Ut.lineSeparator)}append(e){this.text+=e}lineBreak(){this.text+=Ka}readRange(e,t){if(!e)return this;let s=e.parentNode;for(let n=e;;){this.findPointBefore(s,n);let i=this.text.length;this.readNode(n);let a=n.nextSibling;if(a==t)break;let l=Gt.get(n),o=Gt.get(a);(l&&o?l.breakAfter:(l?l.breakAfter:Bl(n))||Bl(a)&&(n.nodeName!="BR"||n.cmIgnore)&&this.text.length>i)&&this.lineBreak(),n=a}return this.findPointBefore(s,t),this}readTextNode(e){let t=e.nodeValue;for(let s of this.points)s.node==e&&(s.pos=this.text.length+Math.min(s.offset,t.length));for(let s=0,n=this.lineSeparator?null:/\r\n?|\n/g;;){let i=-1,a=1,l;if(this.lineSeparator?(i=t.indexOf(this.lineSeparator,s),a=this.lineSeparator.length):(l=n.exec(t))&&(i=l.index,a=l[0].length),this.append(t.slice(s,i<0?t.length:i)),i<0)break;if(this.lineBreak(),a>1)for(let o of this.points)o.node==e&&o.pos>this.text.length&&(o.pos-=a-1);s=i+a}}readNode(e){if(e.cmIgnore)return;let t=Gt.get(e),s=t&&t.overrideDOMText;if(s!=null){this.findPointInside(e,s.length);for(let n=s.iter();!n.next().done;)n.lineBreak?this.lineBreak():this.append(n.value)}else e.nodeType==3?this.readTextNode(e):e.nodeName=="BR"?e.nextSibling&&this.lineBreak():e.nodeType==1&&this.readRange(e.firstChild,null)}findPointBefore(e,t){for(let s of this.points)s.node==e&&e.childNodes[s.offset]==t&&(s.pos=this.text.length)}findPointInside(e,t){for(let s of this.points)(e.nodeType==3?s.node==e:e.contains(s.node))&&(s.pos=this.text.length+($M(e,s.node,s.offset)?t:0))}};function $M(r,e,t){for(;;){if(!e||t-1)this.newSel=null;else if(t>-1&&(this.bounds=e.docView.domBoundsAround(t,s,0))){let l=i||a?[]:qM(e),o=new ip(l,e.state);o.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=o.text,this.newSel=QM(l,this.bounds.from)}else{let l=e.observer.selectionRange,o=i&&i.node==l.focusNode&&i.offset==l.focusOffset||!If(e.contentDOM,l.focusNode)?e.state.selection.main.head:e.docView.posFromDOM(l.focusNode,l.focusOffset),u=a&&a.node==l.anchorNode&&a.offset==l.anchorOffset||!If(e.contentDOM,l.anchorNode)?e.state.selection.main.anchor:e.docView.posFromDOM(l.anchorNode,l.anchorOffset),c=e.viewport;if((ft.ios||ft.chrome)&&e.state.selection.main.empty&&o!=u&&(c.from>0||c.toDate.now()-100?r.inputState.lastKeyCode:-1;if(e.bounds){let{from:a,to:l}=e.bounds,o=n.from,u=null;(i===8||ft.android&&e.text.length=n.from&&t.to<=n.to&&(t.from!=n.from||t.to!=n.to)&&n.to-n.from-(t.to-t.from)<=4?t={from:n.from,to:n.to,insert:r.state.doc.slice(n.from,t.from).append(t.insert).append(r.state.doc.slice(t.to,n.to))}:(ft.mac||ft.android)&&t&&t.from==t.to&&t.from==n.head-1&&/^\. ?$/.test(t.insert.toString())&&r.contentDOM.getAttribute("autocorrect")=="off"?(s&&t.insert.length==2&&(s=Ze.single(s.main.anchor-1,s.main.head-1)),t={from:n.from,to:n.to,insert:Ft.of([" "])}):ft.chrome&&t&&t.from==t.to&&t.from==n.head&&t.insert.toString()==` - `&&r.lineWrapping&&(s&&(s=Ze.single(s.main.anchor-1,s.main.head-1)),t={from:n.from,to:n.to,insert:Ft.of([" "])}),t){if(ft.ios&&r.inputState.flushIOSKey(t)||ft.android&&(t.to==n.to&&(t.from==n.from||t.from==n.from-1&&r.state.sliceDoc(t.from,n.from)==" ")&&t.insert.length==1&&t.insert.lines==2&&Vi(r.contentDOM,"Enter",13)||(t.from==n.from-1&&t.to==n.to&&t.insert.length==0||i==8&&t.insert.lengthn.head)&&Vi(r.contentDOM,"Backspace",8)||t.from==n.from&&t.to==n.to+1&&t.insert.length==0&&Vi(r.contentDOM,"Delete",46)))return!0;let a=t.insert.toString();r.inputState.composing>=0&&r.inputState.composing++;let l,o=()=>l||(l=MM(r,t,s));return r.state.facet(WE).some(u=>u(r,t.from,t.to,a,o))||r.dispatch(o()),!0}else if(s&&!s.main.eq(n)){let a=!1,l="select";return r.inputState.lastSelectionTime>Date.now()-50&&(r.inputState.lastSelectionOrigin=="select"&&(a=!0),l=r.inputState.lastSelectionOrigin),r.dispatch({selection:s,scrollIntoView:a,userEvent:l}),!0}else return!1}function MM(r,e,t){let s,n=r.state,i=n.selection.main;if(e.from>=i.from&&e.to<=i.to&&e.to-e.from>=(i.to-i.from)/3&&(!t||t.main.empty&&t.main.from==e.from+e.insert.length)&&r.inputState.composing<0){let l=i.frome.to?n.sliceDoc(e.to,i.to):"";s=n.replaceSelection(r.state.toText(l+e.insert.sliceString(0,void 0,r.state.lineBreak)+o))}else{let l=n.changes(e),o=t&&t.main.to<=l.newLength?t.main:void 0;if(n.selection.ranges.length>1&&r.inputState.composing>=0&&e.to<=i.to&&e.to>=i.to-10){let u=r.state.sliceDoc(e.from,e.to),c,p=t&&tC(r,t.main.head);if(p){let d=e.insert.length-(e.to-e.from);c={from:p.from,to:p.to-d}}else c=r.state.doc.lineAt(i.head);let h=i.to-e.to,f=i.to-i.from;s=n.changeByRange(d=>{if(d.from==i.from&&d.to==i.to)return{changes:l,range:o||d.map(l)};let m=d.to-h,g=m-u.length;if(d.to-d.from!=f||r.state.sliceDoc(g,m)!=u||d.to>=c.from&&d.from<=c.to)return{range:d};let y=n.changes({from:g,to:m,insert:e.insert}),b=d.to-i.to;return{changes:y,range:o?Ze.range(Math.max(0,o.anchor+b),Math.max(0,o.head+b)):d.map(y)}})}else s={changes:l,selection:o&&n.selection.replaceRange(o)}}let a="input.type";return(r.composing||r.inputState.compositionPendingChange&&r.inputState.compositionEndedAt>Date.now()-50)&&(r.inputState.compositionPendingChange=!1,a+=".compose",r.inputState.compositionFirstChange&&(a+=".start",r.inputState.compositionFirstChange=!1)),n.update(s,{userEvent:a,scrollIntoView:!0})}function jM(r,e,t,s){let n=Math.min(r.length,e.length),i=0;for(;i0&&l>0&&r.charCodeAt(a-1)==e.charCodeAt(l-1);)a--,l--;if(s=="end"){let o=Math.max(0,i-Math.min(a,l));t-=a+o-i}if(a=a?i-t:0;i-=o,l=i+(l-a),a=i}else if(l=l?i-t:0;i-=o,a=i+(a-l),l=i}return{from:i,toA:a,toB:l}}function qM(r){let e=[];if(r.root.activeElement!=r.contentDOM)return e;let{anchorNode:t,anchorOffset:s,focusNode:n,focusOffset:i}=r.observer.selectionRange;return t&&(e.push(new Ql(t,s)),(n!=t||i!=s)&&e.push(new Ql(n,i))),e}function QM(r,e){if(r.length==0)return null;let t=r[0].pos,s=r.length==2?r[1].pos:t;return t>-1&&s>-1?Ze.single(t+e,s+e):null}var UM={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},Pf=ft.ie&&ft.ie_version<=11,op=class{constructor(e){this.view=e,this.active=!1,this.selectionRange=new Ff,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.printQuery=null,this.parentCheck=-1,this.dom=e.contentDOM,this.observer=new MutationObserver(t=>{for(let s of t)this.queue.push(s);(ft.ie&&ft.ie_version<=11||ft.ios&&e.composing)&&t.some(s=>s.type=="childList"&&s.removedNodes.length||s.type=="characterData"&&s.oldValue.length>s.target.nodeValue.length)?this.flushSoon():this.flush()}),Pf&&(this.onCharData=t=>{this.queue.push({target:t.target,type:"characterData",oldValue:t.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),window.matchMedia&&(this.printQuery=window.matchMedia("print")),typeof ResizeObserver=="function"&&(this.resizeScroll=new ResizeObserver(()=>{var t;((t=this.view.docView)===null||t===void 0?void 0:t.lastUpdate){this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),t.length>0&&t[t.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent("Event")))},{threshold:[0,.001]}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver(t=>{t.length>0&&t[t.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))},{})),this.listenForScroll(),this.readSelectionRange()}onScrollChanged(e){this.view.inputState.runHandlers("scroll",e),this.intersecting&&this.view.measure()}onScroll(e){this.intersecting&&this.flush(!1),this.onScrollChanged(e)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout(()=>{this.resizeTimeout=-1,this.view.requestMeasure()},50))}onPrint(e){e.type=="change"&&!e.matches||(this.view.viewState.printing=!0,this.view.measure(),setTimeout(()=>{this.view.viewState.printing=!1,this.view.requestMeasure()},500))}updateGaps(e){if(this.gapIntersection&&(e.length!=this.gaps.length||this.gaps.some((t,s)=>t!=e[s]))){this.gapIntersection.disconnect();for(let t of e)this.gapIntersection.observe(t);this.gaps=e}}onSelectionChange(e){let t=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:s}=this,n=this.selectionRange;if(s.state.facet(Yl)?s.root.activeElement!=this.dom:!Pl(s.dom,n))return;let i=n.anchorNode&&s.docView.nearest(n.anchorNode);if(i&&i.ignoreEvent(e)){t||(this.selectionChanged=!1);return}(ft.ie&&ft.ie_version<=11||ft.android&&ft.chrome)&&!s.state.selection.main.empty&&n.focusNode&&eo(n.focusNode,n.focusOffset,n.anchorNode,n.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:e}=this,t=Rl(e.root);if(!t)return!1;let s=ft.safari&&e.root.nodeType==11&&R3(this.dom.ownerDocument)==this.dom&&VM(this.view,t)||t;if(!s||this.selectionRange.eq(s))return!1;let n=Pl(this.dom,s);return n&&!this.selectionChanged&&e.inputState.lastFocusTime>Date.now()-200&&e.inputState.lastTouchTime{let i=this.delayedAndroidKey;i&&(this.clearDelayedAndroidKey(),this.view.inputState.lastKeyCode=i.keyCode,this.view.inputState.lastKeyTime=Date.now(),!this.flush()&&i.force&&Vi(this.dom,i.key,i.keyCode))};this.flushingAndroidKey=this.view.win.requestAnimationFrame(n)}(!this.delayedAndroidKey||e=="Enter")&&(this.delayedAndroidKey={key:e,keyCode:t,force:this.lastChange{this.delayedFlush=-1,this.flush()}))}forceFlush(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}pendingRecords(){for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}processRecords(){let e=this.pendingRecords();e.length&&(this.queue=[]);let t=-1,s=-1,n=!1;for(let i of e){let a=this.readMutation(i);a&&(a.typeOver&&(n=!0),t==-1?{from:t,to:s}=a:(t=Math.min(a.from,t),s=Math.max(a.to,s)))}return{from:t,to:s,typeOver:n}}readChange(){let{from:e,to:t,typeOver:s}=this.processRecords(),n=this.selectionChanged&&Pl(this.dom,this.selectionRange);if(e<0&&!n)return null;e>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1;let i=new ap(this.view,e,t,s);return this.view.docView.domChanged={newSel:i.newSel?i.newSel.main:null},i}flush(e=!0){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;e&&this.readSelectionRange();let t=this.readChange();if(!t)return this.view.requestMeasure(),!1;let s=this.view.state,n=mC(this.view,t);return this.view.state==s&&this.view.update([]),n}readMutation(e){let t=this.view.docView.nearest(e.target);if(!t||t.ignoreMutation(e))return null;if(t.markDirty(e.type=="attributes"),e.type=="attributes"&&(t.flags|=4),e.type=="childList"){let s=oE(t,e.previousSibling||e.target.previousSibling,-1),n=oE(t,e.nextSibling||e.target.nextSibling,1);return{from:s?t.posAfter(s):t.posAtStart,to:n?t.posBefore(n):t.posAtEnd,typeOver:!1}}else return e.type=="characterData"?{from:t.posAtStart,to:t.posAtEnd,typeOver:e.target.nodeValue==e.oldValue}:null}setWindow(e){e!=this.win&&(this.removeWindowListeners(this.win),this.win=e,this.addWindowListeners(this.win))}addWindowListeners(e){e.addEventListener("resize",this.onResize),this.printQuery?this.printQuery.addEventListener("change",this.onPrint):e.addEventListener("beforeprint",this.onPrint),e.addEventListener("scroll",this.onScroll),e.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(e){e.removeEventListener("scroll",this.onScroll),e.removeEventListener("resize",this.onResize),this.printQuery?this.printQuery.removeEventListener("change",this.onPrint):e.removeEventListener("beforeprint",this.onPrint),e.document.removeEventListener("selectionchange",this.onSelectionChange)}destroy(){var e,t,s;this.stop(),(e=this.intersection)===null||e===void 0||e.disconnect(),(t=this.gapIntersection)===null||t===void 0||t.disconnect(),(s=this.resizeScroll)===null||s===void 0||s.disconnect();for(let n of this.scrollTargets)n.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey)}};function oE(r,e,t){for(;e;){let s=Gt.get(e);if(s&&s.parent==r)return s;let n=e.parentNode;e=n!=r.dom?n:t>0?e.nextSibling:e.previousSibling}return null}function lE(r,e){let t=e.startContainer,s=e.startOffset,n=e.endContainer,i=e.endOffset,a=r.docView.domAtPos(r.state.selection.main.anchor);return eo(a.node,a.offset,n,i)&&([t,s,n,i]=[n,i,t,s]),{anchorNode:t,anchorOffset:s,focusNode:n,focusOffset:i}}function VM(r,e){if(e.getComposedRanges){let n=e.getComposedRanges(r.root)[0];if(n)return lE(r,n)}let t=null;function s(n){n.preventDefault(),n.stopImmediatePropagation(),t=n.getTargetRanges()[0]}return r.contentDOM.addEventListener("beforeinput",s,!0),r.dom.ownerDocument.execCommand("indent"),r.contentDOM.removeEventListener("beforeinput",s,!0),t?lE(r,t):null}var at=class r{get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return this.inputState.composing>0}get compositionStarted(){return this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}constructor(e={}){this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.className="cm-announced",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM),e.parent&&e.parent.appendChild(this.dom);let{dispatch:t}=e;this.dispatchTransactions=e.dispatchTransactions||t&&(s=>s.forEach(n=>t(n,this)))||(s=>this.update(s)),this.dispatch=this.dispatch.bind(this),this._root=e.root||$3(e.parent)||document,this.viewState=new ql(e.state||Ut.create(e)),e.scrollTo&&e.scrollTo.is(vl)&&(this.viewState.scrollTarget=e.scrollTo.value.clip(this.viewState.state)),this.plugins=this.state.facet(Ga).map(s=>new no(s));for(let s of this.plugins)s.update(this);this.observer=new op(this),this.inputState=new Zf(this),this.inputState.ensureHandlers(this.plugins),this.docView=new $l(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure()}dispatch(...e){let t=e.length==1&&e[0]instanceof lr?e:e.length==1&&Array.isArray(e[0])?e[0]:[this.state.update(...e)];this.dispatchTransactions(t,this)}update(e){if(this.updateState!=0)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");let t=!1,s=!1,n,i=this.state;for(let h of e){if(h.startState!=i)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");i=h.state}if(this.destroyed){this.viewState.state=i;return}let a=this.hasFocus,l=0,o=null;e.some(h=>h.annotation(uC))?(this.inputState.notifiedFocused=a,l=1):a!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=a,o=cC(i,a),o||(l=1));let u=this.observer.delayedAndroidKey,c=null;if(u?(this.observer.clearDelayedAndroidKey(),c=this.observer.readChange(),(c&&!this.state.doc.eq(i.doc)||!this.state.selection.eq(i.selection))&&(c=null)):this.observer.clear(),i.facet(Ut.phrases)!=this.state.facet(Ut.phrases))return this.setState(i);n=Ll.create(this,i,e),n.flags|=l;let p=this.viewState.scrollTarget;try{this.updateState=2;for(let h of e){if(p&&(p=p.map(h.changes)),h.scrollIntoView){let{main:f}=h.state.selection;p=new ro(f.empty?f:Ze.cursor(f.head,f.head>f.anchor?-1:1))}for(let f of h.effects)f.is(vl)&&(p=f.value.clip(this.state))}this.viewState.update(n,p),this.bidiCache=Ul.update(this.bidiCache,n.changes),n.empty||(this.updatePlugins(n),this.inputState.update(n)),t=this.docView.update(n),this.state.facet(Ya)!=this.styleModules&&this.mountStyles(),s=this.updateAttrs(),this.showAnnouncements(e),this.docView.updateSelection(t,e.some(h=>h.isUserEvent("select.pointer")))}finally{this.updateState=0}if(n.startState.facet(wl)!=n.state.facet(wl)&&(this.viewState.mustMeasureContent=!0),(t||s||p||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),t&&this.docViewUpdate(),!n.empty)for(let h of this.state.facet(Uf))try{h(n)}catch(f){yr(this.state,f,"update listener")}(o||c)&&Promise.resolve().then(()=>{o&&this.state==o.startState&&this.dispatch(o),c&&!mC(this,c)&&u.force&&Vi(this.contentDOM,u.key,u.keyCode)})}setState(e){if(this.updateState!=0)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed){this.viewState.state=e;return}this.updateState=2;let t=this.hasFocus;try{for(let s of this.plugins)s.destroy(this);this.viewState=new ql(e),this.plugins=e.facet(Ga).map(s=>new no(s)),this.pluginMap.clear();for(let s of this.plugins)s.update(this);this.docView.destroy(),this.docView=new $l(this),this.inputState.ensureHandlers(this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}t&&this.focus(),this.requestMeasure()}updatePlugins(e){let t=e.startState.facet(Ga),s=e.state.facet(Ga);if(t!=s){let n=[];for(let i of s){let a=t.indexOf(i);if(a<0)n.push(new no(i));else{let l=this.plugins[a];l.mustUpdate=e,n.push(l)}}for(let i of this.plugins)i.mustUpdate!=e&&i.destroy(this);this.plugins=n,this.pluginMap.clear()}else for(let n of this.plugins)n.mustUpdate=e;for(let n=0;n-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.observer.delayedAndroidKey){this.measureScheduled=-1,this.requestMeasure();return}this.measureScheduled=0,e&&this.observer.forceFlush();let t=null,s=this.scrollDOM,n=s.scrollTop*this.scaleY,{scrollAnchorPos:i,scrollAnchorHeight:a}=this.viewState;Math.abs(n-this.viewState.scrollTop)>1&&(a=-1),this.viewState.scrollAnchorHeight=-1;try{for(let l=0;;l++){if(a<0)if(wE(s))i=-1,a=this.viewState.heightMap.height;else{let f=this.viewState.scrollAnchorAt(n);i=f.from,a=f.top}this.updateState=1;let o=this.viewState.measure(this);if(!o&&!this.measureRequests.length&&this.viewState.scrollTarget==null)break;if(l>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let u=[];o&4||([this.measureRequests,u]=[u,this.measureRequests]);let c=u.map(f=>{try{return f.read(this)}catch(d){return yr(this.state,d),uE}}),p=Ll.create(this,this.state,[]),h=!1;p.flags|=o,t?t.flags|=o:t=p,this.updateState=2,p.empty||(this.updatePlugins(p),this.inputState.update(p),this.updateAttrs(),h=this.docView.update(p),h&&this.docViewUpdate());for(let f=0;f1||d<-1){n=n+d,s.scrollTop=n/this.scaleY,a=-1;continue}}break}}}finally{this.updateState=0,this.measureScheduled=-1}if(t&&!t.empty)for(let l of this.state.facet(Uf))l(t)}get themeClasses(){return np+" "+(this.state.facet(rp)?hC:pC)+" "+this.state.facet(wl)}updateAttrs(){let e=cE(this,YE,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),t={spellcheck:"false",autocorrect:"off",autocapitalize:"off",translate:"no",contenteditable:this.state.facet(Yl)?"true":"false",class:"cm-content",style:`${ft.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(t["aria-readonly"]="true"),cE(this,Ep,t);let s=this.observer.ignore(()=>{let n=$f(this.contentDOM,this.contentAttrs,t),i=$f(this.dom,this.editorAttrs,e);return n||i});return this.editorAttrs=e,this.contentAttrs=t,s}showAnnouncements(e){let t=!0;for(let s of e)for(let n of s.effects)if(n.is(r.announce)){t&&(this.announceDOM.textContent=""),t=!1;let i=this.announceDOM.appendChild(document.createElement("div"));i.textContent=n.value}}mountStyles(){this.styleModules=this.state.facet(Ya);let e=this.state.facet(r.cspNonce);nn.mount(this.root,this.styleModules.concat(LM).reverse(),e?{nonce:e}:void 0)}readMeasured(){if(this.updateState==2)throw new Error("Reading the editor layout isn't allowed during an update");this.updateState==0&&this.measureScheduled>-1&&this.measure(!1)}requestMeasure(e){if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame(()=>this.measure())),e){if(this.measureRequests.indexOf(e)>-1)return;if(e.key!=null){for(let t=0;ts.spec==e)||null),t&&t.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}get scaleX(){return this.viewState.scaleX}get scaleY(){return this.viewState.scaleY}elementAtHeight(e){return this.readMeasured(),this.viewState.elementAtHeight(e)}lineBlockAtHeight(e){return this.readMeasured(),this.viewState.lineBlockAtHeight(e)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(e){return this.viewState.lineBlockAt(e)}get contentHeight(){return this.viewState.contentHeight}moveByChar(e,t,s){return Af(this,e,XS(this,e,t,s))}moveByGroup(e,t){return Af(this,e,XS(this,e,t,s=>dM(this,e.head,s)))}visualLineSide(e,t){let s=this.bidiSpans(e),n=this.textDirectionAt(e.from),i=s[t?s.length-1:0];return Ze.cursor(i.side(t,n)+e.from,i.forward(!t,n)?1:-1)}moveToLineBoundary(e,t,s=!0){return hM(this,e,t,s)}moveVertically(e,t,s){return Af(this,e,mM(this,e,t,s))}domAtPos(e){return this.docView.domAtPos(e)}posAtDOM(e,t=0){return this.docView.posFromDOM(e,t)}posAtCoords(e,t=!0){return this.readMeasured(),rC(this,e,t)}coordsAtPos(e,t=1){this.readMeasured();let s=this.docView.coordsAt(e,t);if(!s||s.left==s.right)return s;let n=this.state.doc.lineAt(e),i=this.bidiSpans(n),a=i[Bn.find(i,e-n.from,-1,t)];return bp(s,a.dir==Zt.LTR==t>0)}coordsForChar(e){return this.readMeasured(),this.docView.coordsForChar(e)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(e){return!this.state.facet(zE)||ethis.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(e))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(e){if(e.length>WM)return ME(e.length);let t=this.textDirectionAt(e.from),s;for(let i of this.bidiCache)if(i.from==e.from&&i.dir==t&&(i.fresh||$E(i.isolates,s=US(this,e))))return i.order;s||(s=US(this,e));let n=H3(e.text,t,s);return this.bidiCache.push(new Ul(e.from,e.to,t,s,!0,n)),n}get hasFocus(){var e;return(this.dom.ownerDocument.hasFocus()||ft.safari&&((e=this.inputState)===null||e===void 0?void 0:e.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore(()=>{EE(this.contentDOM),this.docView.updateSelection()})}setRoot(e){this._root!=e&&(this._root=e,this.observer.setWindow((e.nodeType==9?e:e.ownerDocument).defaultView||window),this.mountStyles())}destroy(){for(let e of this.plugins)e.destroy(this);this.plugins=[],this.inputState.destroy(),this.docView.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(e,t={}){return vl.of(new ro(typeof e=="number"?Ze.cursor(e):e,t.y,t.x,t.yMargin,t.xMargin))}scrollSnapshot(){let{scrollTop:e,scrollLeft:t}=this.scrollDOM,s=this.viewState.scrollAnchorAt(e);return vl.of(new ro(Ze.cursor(s.from),"start","start",s.top-e,t,!0))}static domEventHandlers(e){return rr.define(()=>({}),{eventHandlers:e})}static domEventObservers(e){return rr.define(()=>({}),{eventObservers:e})}static theme(e,t){let s=nn.newName(),n=[wl.of(s),Ya.of(sp(`.${s}`,e))];return t&&t.dark&&n.push(rp.of(!0)),n}static baseTheme(e){return rn.lowest(Ya.of(sp("."+np,e,dC)))}static findFromDOM(e){var t;let s=e.querySelector(".cm-content"),n=s&&Gt.get(s)||Gt.get(e);return((t=n?.rootView)===null||t===void 0?void 0:t.view)||null}};at.styleModule=Ya;at.inputHandler=WE;at.scrollHandler=GE;at.focusChangeEffect=ZE;at.perLineTextDirection=zE;at.exceptionSink=VE;at.updateListener=Uf;at.editable=Yl;at.mouseSelectionStyle=UE;at.dragMovesSelection=QE;at.clickAddsSelectionRange=qE;at.decorations=po;at.outerDecorations=HE;at.atomicRanges=Cp;at.bidiIsolatedRanges=KE;at.scrollMargins=JE;at.darkTheme=rp;at.cspNonce=ct.define({combine:r=>r.length?r[0]:""});at.contentAttributes=Ep;at.editorAttributes=YE;at.lineWrapping=at.contentAttributes.of({class:"cm-lineWrapping"});at.announce=wt.define();var WM=4096,uE={},Ul=class r{constructor(e,t,s,n,i,a){this.from=e,this.to=t,this.dir=s,this.isolates=n,this.fresh=i,this.order=a}static update(e,t){if(t.empty&&!e.some(i=>i.fresh))return e;let s=[],n=e.length?e[e.length-1].dir:Zt.LTR;for(let i=Math.max(0,e.length-10);i=0;n--){let i=s[n],a=typeof i=="function"?i(r):i;a&&Lf(a,t)}return t}var ZM=ft.mac?"mac":ft.windows?"win":ft.linux?"linux":"key";function zM(r,e){let t=r.split(/-(?!$)/),s=t[t.length-1];s=="Space"&&(s=" ");let n,i,a,l;for(let o=0;os.concat(n),[]))),t}function yC(r,e,t){return xC(gC(r.state),e,r,t)}var Ss=null,GM=4e3;function YM(r,e=ZM){let t=Object.create(null),s=Object.create(null),n=(a,l)=>{let o=s[a];if(o==null)s[a]=l;else if(o!=l)throw new Error("Key binding "+a+" is used both as a regular binding and as a multi-stroke prefix")},i=(a,l,o,u,c)=>{var p,h;let f=t[a]||(t[a]=Object.create(null)),d=l.split(/ (?!$)/).map(y=>zM(y,e));for(let y=1;y{let S=Ss={view:v,prefix:b,scope:a};return setTimeout(()=>{Ss==S&&(Ss=null)},GM),!0}]})}let m=d.join(" ");n(m,!1);let g=f[m]||(f[m]={preventDefault:!1,stopPropagation:!1,run:((h=(p=f._any)===null||p===void 0?void 0:p.run)===null||h===void 0?void 0:h.slice())||[]});o&&g.run.push(o),u&&(g.preventDefault=!0),c&&(g.stopPropagation=!0)};for(let a of r){let l=a.scope?a.scope.split(" "):["editor"];if(a.any)for(let u of l){let c=t[u]||(t[u]=Object.create(null));c._any||(c._any={preventDefault:!1,stopPropagation:!1,run:[]});for(let p in c)c[p].run.push(a.any)}let o=a[e]||a.key;if(o)for(let u of l)i(u,o,a.run,a.preventDefault,a.stopPropagation),a.shift&&i(u,"Shift-"+o,a.shift,a.preventDefault,a.stopPropagation)}return t}function xC(r,e,t,s){let n=BS(e),i=gr(n,0),a=$r(i)==n.length&&n!=" ",l="",o=!1,u=!1,c=!1;Ss&&Ss.view==t&&Ss.scope==s&&(l=Ss.prefix+" ",sC.indexOf(e.keyCode)<0&&(u=!0,Ss=null));let p=new Set,h=g=>{if(g){for(let y of g.run)if(!p.has(y)&&(p.add(y),y(t,e)))return g.stopPropagation&&(c=!0),!0;g.preventDefault&&(g.stopPropagation&&(c=!0),u=!0)}return!1},f=r[s],d,m;return f&&(h(f[l+kl(n,e,!a)])?o=!0:a&&(e.altKey||e.metaKey||e.ctrlKey)&&!(ft.windows&&e.ctrlKey&&e.altKey)&&(d=is[e.keyCode])&&d!=n?(h(f[l+kl(d,e,!0)])||e.shiftKey&&(m=Mi[e.keyCode])!=n&&m!=d&&h(f[l+kl(m,e,!1)]))&&(o=!0):a&&e.shiftKey&&h(f[l+kl(n,e,!0)])&&(o=!0),!o&&h(f._any)&&(o=!0)),u&&(o=!0),o&&c&&e.stopPropagation(),o}var ho=class r{constructor(e,t,s,n,i){this.className=e,this.left=t,this.top=s,this.width=n,this.height=i}draw(){let e=document.createElement("div");return e.className=this.className,this.adjust(e),e}update(e,t){return t.className!=this.className?!1:(this.adjust(e),!0)}adjust(e){e.style.left=this.left+"px",e.style.top=this.top+"px",this.width!=null&&(e.style.width=this.width+"px"),e.style.height=this.height+"px"}eq(e){return this.left==e.left&&this.top==e.top&&this.width==e.width&&this.height==e.height&&this.className==e.className}static forRange(e,t,s){if(s.empty){let n=e.coordsAtPos(s.head,s.assoc||1);if(!n)return[];let i=bC(e);return[new r(t,n.left-i.left,n.top-i.top,null,n.bottom-n.top)]}else return HM(e,t,s)}};function bC(r){let e=r.scrollDOM.getBoundingClientRect();return{left:(r.textDirection==Zt.LTR?e.left:e.right-r.scrollDOM.clientWidth*r.scaleX)-r.scrollDOM.scrollLeft*r.scaleX,top:e.top-r.scrollDOM.scrollTop*r.scaleY}}function pE(r,e,t){let s=Ze.cursor(e);return{from:Math.max(t.from,r.moveToLineBoundary(s,!1,!0).from),to:Math.min(t.to,r.moveToLineBoundary(s,!0,!0).from),type:Ir.Text}}function HM(r,e,t){if(t.to<=r.viewport.from||t.from>=r.viewport.to)return[];let s=Math.max(t.from,r.viewport.from),n=Math.min(t.to,r.viewport.to),i=r.textDirection==Zt.LTR,a=r.contentDOM,l=a.getBoundingClientRect(),o=bC(r),u=a.querySelector(".cm-line"),c=u&&window.getComputedStyle(u),p=l.left+(c?parseInt(c.paddingLeft)+Math.min(0,parseInt(c.textIndent)):0),h=l.right-(c?parseInt(c.paddingRight):0),f=Wf(r,s),d=Wf(r,n),m=f.type==Ir.Text?f:null,g=d.type==Ir.Text?d:null;if(m&&(r.lineWrapping||f.widgetLineBreaks)&&(m=pE(r,s,m)),g&&(r.lineWrapping||d.widgetLineBreaks)&&(g=pE(r,n,g)),m&&g&&m.from==g.from)return b(v(t.from,t.to,m));{let C=m?v(t.from,null,m):S(f,!1),O=g?v(null,t.to,g):S(d,!0),w=[];return(m||f).to<(g||d).from-(m&&g?1:0)||f.widgetLineBreaks>1&&C.bottom+r.defaultLineHeight/2_&&T.from=j)break;R>F&&D(Math.max(N,F),C==null&&N<=_,Math.min(R,j),O==null&&R>=B,I.dir)}if(F=Q.to+1,F>=j)break}return A.length==0&&D(_,C==null,B,O==null,r.textDirection),{top:E,bottom:k,horizontal:A}}function S(C,O){let w=l.top+(O?C.top:C.bottom);return{top:w,bottom:w,horizontal:[]}}}function KM(r,e){return r.constructor==e.constructor&&r.eq(e)}var lp=class{constructor(e,t){this.view=e,this.layer=t,this.drawn=[],this.scaleX=1,this.scaleY=1,this.measureReq={read:this.measure.bind(this),write:this.draw.bind(this)},this.dom=e.scrollDOM.appendChild(document.createElement("div")),this.dom.classList.add("cm-layer"),t.above&&this.dom.classList.add("cm-layer-above"),t.class&&this.dom.classList.add(t.class),this.scale(),this.dom.setAttribute("aria-hidden","true"),this.setOrder(e.state),e.requestMeasure(this.measureReq),t.mount&&t.mount(this.dom,e)}update(e){e.startState.facet(_l)!=e.state.facet(_l)&&this.setOrder(e.state),(this.layer.update(e,this.dom)||e.geometryChanged)&&(this.scale(),e.view.requestMeasure(this.measureReq))}docViewUpdate(e){this.layer.updateOnDocViewUpdate!==!1&&e.requestMeasure(this.measureReq)}setOrder(e){let t=0,s=e.facet(_l);for(;t!KM(t,this.drawn[s]))){let t=this.dom.firstChild,s=0;for(let n of e)n.update&&t&&n.constructor&&this.drawn[s].constructor&&n.update(t,this.drawn[s])?(t=t.nextSibling,s++):this.dom.insertBefore(n.draw(),t);for(;t;){let n=t.nextSibling;t.remove(),t=n}this.drawn=e}}destroy(){this.layer.destroy&&this.layer.destroy(this.dom,this.view),this.dom.remove()}},_l=ct.define();function vC(r){return[rr.define(e=>new lp(e,r)),_l.of(r)]}var OC=!ft.ios,mo=ct.define({combine(r){return kr(r,{cursorBlinkRate:1200,drawRangeCursor:!0},{cursorBlinkRate:(e,t)=>Math.min(e,t),drawRangeCursor:(e,t)=>e||t})}});function SC(r={}){return[mo.of(r),JM,ej,tj,XE.of(!0)]}function EC(r){return r.startState.facet(mo)!=r.state.facet(mo)}var JM=vC({above:!0,markers(r){let{state:e}=r,t=e.facet(mo),s=[];for(let n of e.selection.ranges){let i=n==e.selection.main;if(n.empty?!i||OC:t.drawRangeCursor){let a=i?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary",l=n.empty?n:Ze.cursor(n.head,n.head>n.anchor?-1:1);for(let o of ho.forRange(r,a,l))s.push(o)}}return s},update(r,e){r.transactions.some(s=>s.selection)&&(e.style.animationName=e.style.animationName=="cm-blink"?"cm-blink2":"cm-blink");let t=EC(r);return t&&hE(r.state,e),r.docChanged||r.selectionSet||t},mount(r,e){hE(e.state,r)},class:"cm-cursorLayer"});function hE(r,e){e.style.animationDuration=r.facet(mo).cursorBlinkRate+"ms"}var ej=vC({above:!1,markers(r){return r.state.selection.ranges.map(e=>e.empty?[]:ho.forRange(r,"cm-selectionBackground",e)).reduce((e,t)=>e.concat(t))},update(r,e){return r.docChanged||r.selectionSet||r.viewportChanged||EC(r)},class:"cm-selectionLayer"}),up={".cm-line":{"& ::selection":{backgroundColor:"transparent !important"},"&::selection":{backgroundColor:"transparent !important"}}};OC&&(up[".cm-line"].caretColor="transparent !important",up[".cm-content"]={caretColor:"transparent !important"});var tj=rn.highest(at.theme(up)),CC=wt.define({map(r,e){return r==null?null:e.mapPos(r)}}),Ja=Yt.define({create(){return null},update(r,e){return r!=null&&(r=e.changes.mapPos(r)),e.effects.reduce((t,s)=>s.is(CC)?s.value:t,r)}}),rj=rr.fromClass(class{constructor(r){this.view=r,this.cursor=null,this.measureReq={read:this.readPos.bind(this),write:this.drawCursor.bind(this)}}update(r){var e;let t=r.state.field(Ja);t==null?this.cursor!=null&&((e=this.cursor)===null||e===void 0||e.remove(),this.cursor=null):(this.cursor||(this.cursor=this.view.scrollDOM.appendChild(document.createElement("div")),this.cursor.className="cm-dropCursor"),(r.startState.field(Ja)!=t||r.docChanged||r.geometryChanged)&&this.view.requestMeasure(this.measureReq))}readPos(){let{view:r}=this,e=r.state.field(Ja),t=e!=null&&r.coordsAtPos(e);if(!t)return null;let s=r.scrollDOM.getBoundingClientRect();return{left:t.left-s.left+r.scrollDOM.scrollLeft*r.scaleX,top:t.top-s.top+r.scrollDOM.scrollTop*r.scaleY,height:t.bottom-t.top}}drawCursor(r){if(this.cursor){let{scaleX:e,scaleY:t}=this.view;r?(this.cursor.style.left=r.left/e+"px",this.cursor.style.top=r.top/t+"px",this.cursor.style.height=r.height/t+"px"):this.cursor.style.left="-100000px"}}destroy(){this.cursor&&this.cursor.remove()}setDropPos(r){this.view.state.field(Ja)!=r&&this.view.dispatch({effects:CC.of(r)})}},{eventObservers:{dragover(r){this.setDropPos(this.view.posAtCoords({x:r.clientX,y:r.clientY}))},dragleave(r){(r.target==this.view.contentDOM||!this.view.contentDOM.contains(r.relatedTarget))&&this.setDropPos(null)},dragend(){this.setDropPos(null)},drop(){this.setDropPos(null)}}});function wC(){return[Ja,rj]}function dE(r,e,t,s,n){e.lastIndex=0;for(let i=r.iterRange(t,s),a=t,l;!i.next().done;a+=i.value.length)if(!i.lineBreak)for(;l=e.exec(i.value);)n(a+l.index,l)}function nj(r,e){let t=r.visibleRanges;if(t.length==1&&t[0].from==r.viewport.from&&t[0].to==r.viewport.to)return t;let s=[];for(let{from:n,to:i}of t)n=Math.max(r.state.doc.lineAt(n).from,n-e),i=Math.min(r.state.doc.lineAt(i).to,i+e),s.length&&s[s.length-1].to>=n?s[s.length-1].to=i:s.push({from:n,to:i});return s}var cp=class{constructor(e){let{regexp:t,decoration:s,decorate:n,boundary:i,maxLength:a=1e3}=e;if(!t.global)throw new RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");if(this.regexp=t,n)this.addMatch=(l,o,u,c)=>n(c,u,u+l[0].length,l,o);else if(typeof s=="function")this.addMatch=(l,o,u,c)=>{let p=s(l,o,u);p&&c(u,u+l[0].length,p)};else if(s)this.addMatch=(l,o,u,c)=>c(u,u+l[0].length,s);else throw new RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");this.boundary=i,this.maxLength=a}createDeco(e){let t=new In,s=t.add.bind(t);for(let{from:n,to:i}of nj(e,this.maxLength))dE(e.state.doc,this.regexp,n,i,(a,l)=>this.addMatch(l,e,a,s));return t.finish()}updateDeco(e,t){let s=1e9,n=-1;return e.docChanged&&e.changes.iterChanges((i,a,l,o)=>{o>e.view.viewport.from&&l1e3?this.createDeco(e.view):n>-1?this.updateRange(e.view,t.map(e.changes),s,n):t}updateRange(e,t,s,n){for(let i of e.visibleRanges){let a=Math.max(i.from,s),l=Math.min(i.to,n);if(l>a){let o=e.state.doc.lineAt(a),u=o.too.from;a--)if(this.boundary.test(o.text[a-1-o.from])){c=a;break}for(;lh.push(y.range(m,g));if(o==u)for(this.regexp.lastIndex=c-o.from;(f=this.regexp.exec(o.text))&&f.indexthis.addMatch(g,e,m,d));t=t.update({filterFrom:c,filterTo:p,filter:(m,g)=>mp,add:h})}}return t}},fp=/x/.unicode!=null?"gu":"g",sj=new RegExp(`[\0-\b --\x7F-\x9F\xAD\u061C\u200B\u200E\u200F\u2028\u2029\u202D\u202E\u2066\u2067\u2069\uFEFF\uFFF9-\uFFFC]`,fp),ij={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"},Tf=null;function aj(){var r;if(Tf==null&&typeof document<"u"&&document.body){let e=document.body.style;Tf=((r=e.tabSize)!==null&&r!==void 0?r:e.MozTabSize)!=null}return Tf||!1}var Il=ct.define({combine(r){let e=kr(r,{render:null,specialChars:sj,addSpecialChars:null});return(e.replaceTabs=!aj())&&(e.specialChars=new RegExp(" |"+e.specialChars.source,fp)),e.addSpecialChars&&(e.specialChars=new RegExp(e.specialChars.source+"|"+e.addSpecialChars.source,fp)),e}});function kC(r={}){return[Il.of(r),oj()]}var mE=null;function oj(){return mE||(mE=rr.fromClass(class{constructor(r){this.view=r,this.decorations=yt.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(r.state.facet(Il)),this.decorations=this.decorator.createDeco(r)}makeDecorator(r){return new cp({regexp:r.specialChars,decoration:(e,t,s)=>{let{doc:n}=t.state,i=gr(e[0],0);if(i==9){let a=n.lineAt(s),l=t.state.tabSize,o=ss(a.text,l,s-a.from);return yt.replace({widget:new hp((l-o%l)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[i]||(this.decorationCache[i]=yt.replace({widget:new pp(r,i)}))},boundary:r.replaceTabs?void 0:/[^]/})}update(r){let e=r.state.facet(Il);r.startState.facet(Il)!=e?(this.decorator=this.makeDecorator(e),this.decorations=this.decorator.createDeco(r.view)):this.decorations=this.decorator.updateDeco(r,this.decorations)}},{decorations:r=>r.decorations}))}var lj="\u2022";function uj(r){return r>=32?lj:r==10?"\u2424":String.fromCharCode(9216+r)}var pp=class extends an{constructor(e,t){super(),this.options=e,this.code=t}eq(e){return e.code==this.code}toDOM(e){let t=uj(this.code),s=e.state.phrase("Control character")+" "+(ij[this.code]||"0x"+this.code.toString(16)),n=this.options.render&&this.options.render(this.code,s,t);if(n)return n;let i=document.createElement("span");return i.textContent=t,i.title=s,i.setAttribute("aria-label",s),i.className="cm-specialChar",i}ignoreEvent(){return!1}},hp=class extends an{constructor(e){super(),this.width=e}eq(e){return e.width==this.width}toDOM(){let e=document.createElement("span");return e.textContent=" ",e.className="cm-tab",e.style.width=this.width+"px",e}ignoreEvent(){return!1}};function AC(){return fj}var cj=yt.line({class:"cm-activeLine"}),fj=rr.fromClass(class{constructor(r){this.decorations=this.getDeco(r)}update(r){(r.docChanged||r.selectionSet)&&(this.decorations=this.getDeco(r.view))}getDeco(r){let e=-1,t=[];for(let s of r.state.selection.ranges){let n=r.lineBlockAt(s.head);n.from>e&&(t.push(cj.range(n.from)),e=n.from)}return yt.set(t)}},{decorations:r=>r.decorations});var dp=2e3;function pj(r,e,t){let s=Math.min(e.line,t.line),n=Math.max(e.line,t.line),i=[];if(e.off>dp||t.off>dp||e.col<0||t.col<0){let a=Math.min(e.off,t.off),l=Math.max(e.off,t.off);for(let o=s;o<=n;o++){let u=r.doc.line(o);u.length<=l&&i.push(Ze.range(u.from+a,u.to+l))}}else{let a=Math.min(e.col,t.col),l=Math.max(e.col,t.col);for(let o=s;o<=n;o++){let u=r.doc.line(o),c=yl(u.text,a,r.tabSize,!0);if(c<0)i.push(Ze.cursor(u.to));else{let p=yl(u.text,l,r.tabSize);i.push(Ze.range(u.from+c,u.from+p))}}}return i}function hj(r,e){let t=r.coordsAtPos(r.viewport.from);return t?Math.round(Math.abs((t.left-e)/r.defaultCharacterWidth)):-1}function gE(r,e){let t=r.posAtCoords({x:e.clientX,y:e.clientY},!1),s=r.state.doc.lineAt(t),n=t-s.from,i=n>dp?-1:n==s.length?hj(r,e.clientX):ss(s.text,r.state.tabSize,t-s.from);return{line:s.number,col:i,off:n}}function dj(r,e){let t=gE(r,e),s=r.state.selection;return t?{update(n){if(n.docChanged){let i=n.changes.mapPos(n.startState.doc.line(t.line).from),a=n.state.doc.lineAt(i);t={line:a.number,col:t.col,off:Math.min(t.off,a.length)},s=s.map(n.changes)}},get(n,i,a){let l=gE(r,n);if(!l)return s;let o=pj(r.state,t,l);return o.length?a?Ze.create(o.concat(s.ranges)):Ze.create(o):s}}:null}function PC(r){let e=r?.eventFilter||(t=>t.altKey&&t.button==0);return at.mouseSelectionStyle.of((t,s)=>e(s)?dj(t,s):null)}var mj={Alt:[18,r=>!!r.altKey],Control:[17,r=>!!r.ctrlKey],Shift:[16,r=>!!r.shiftKey],Meta:[91,r=>!!r.metaKey]},gj={style:"cursor: crosshair"};function TC(r={}){let[e,t]=mj[r.key||"Alt"],s=rr.fromClass(class{constructor(n){this.view=n,this.isDown=!1}set(n){this.isDown!=n&&(this.isDown=n,this.view.update([]))}},{eventObservers:{keydown(n){this.set(n.keyCode==e||t(n))},keyup(n){(n.keyCode==e||!t(n))&&this.set(!1)},mousemove(n){this.set(t(n))}}});return[s,at.contentAttributes.of(n=>{var i;return!((i=n.plugin(s))===null||i===void 0)&&i.isDown?gj:null})]}var Xa="-10000px",Vl=class{constructor(e,t,s,n){this.facet=t,this.createTooltipView=s,this.removeTooltipView=n,this.input=e.state.facet(t),this.tooltips=this.input.filter(a=>a);let i=null;this.tooltipViews=this.tooltips.map(a=>i=s(a,i))}update(e,t){var s;let n=e.state.facet(this.facet),i=n.filter(o=>o);if(n===this.input){for(let o of this.tooltipViews)o.update&&o.update(e);return!1}let a=[],l=t?[]:null;for(let o=0;ot[u]=o),t.length=l.length),this.input=n,this.tooltips=i,this.tooltipViews=a,!0}};function yj(r){let{win:e}=r;return{top:0,left:0,bottom:e.innerHeight,right:e.innerWidth}}var Df=ct.define({combine:r=>{var e,t,s;return{position:ft.ios?"absolute":((e=r.find(n=>n.position))===null||e===void 0?void 0:e.position)||"fixed",parent:((t=r.find(n=>n.parent))===null||t===void 0?void 0:t.parent)||null,tooltipSpace:((s=r.find(n=>n.tooltipSpace))===null||s===void 0?void 0:s.tooltipSpace)||yj}}}),yE=new WeakMap,wp=rr.fromClass(class{constructor(r){this.view=r,this.above=[],this.inView=!0,this.madeAbsolute=!1,this.lastTransaction=0,this.measureTimeout=-1;let e=r.state.facet(Df);this.position=e.position,this.parent=e.parent,this.classes=r.themeClasses,this.createContainer(),this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this},this.resizeObserver=typeof ResizeObserver=="function"?new ResizeObserver(()=>this.measureSoon()):null,this.manager=new Vl(r,Zi,(t,s)=>this.createTooltip(t,s),t=>{this.resizeObserver&&this.resizeObserver.unobserve(t.dom),t.dom.remove()}),this.above=this.manager.tooltips.map(t=>!!t.above),this.intersectionObserver=typeof IntersectionObserver=="function"?new IntersectionObserver(t=>{Date.now()>this.lastTransaction-50&&t.length>0&&t[t.length-1].intersectionRatio<1&&this.measureSoon()},{threshold:[1]}):null,this.observeIntersection(),r.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}createContainer(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}observeIntersection(){if(this.intersectionObserver){this.intersectionObserver.disconnect();for(let r of this.manager.tooltipViews)this.intersectionObserver.observe(r.dom)}}measureSoon(){this.measureTimeout<0&&(this.measureTimeout=setTimeout(()=>{this.measureTimeout=-1,this.maybeMeasure()},50))}update(r){r.transactions.length&&(this.lastTransaction=Date.now());let e=this.manager.update(r,this.above);e&&this.observeIntersection();let t=e||r.geometryChanged,s=r.state.facet(Df);if(s.position!=this.position&&!this.madeAbsolute){this.position=s.position;for(let n of this.manager.tooltipViews)n.dom.style.position=this.position;t=!0}if(s.parent!=this.parent){this.parent&&this.container.remove(),this.parent=s.parent,this.createContainer();for(let n of this.manager.tooltipViews)this.container.appendChild(n.dom);t=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);t&&this.maybeMeasure()}createTooltip(r,e){let t=r.create(this.view),s=e?e.dom:null;if(t.dom.classList.add("cm-tooltip"),r.arrow&&!t.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){let n=document.createElement("div");n.className="cm-tooltip-arrow",t.dom.appendChild(n)}return t.dom.style.position=this.position,t.dom.style.top=Xa,t.dom.style.left="0px",this.container.insertBefore(t.dom,s),t.mount&&t.mount(this.view),this.resizeObserver&&this.resizeObserver.observe(t.dom),t}destroy(){var r,e,t;this.view.win.removeEventListener("resize",this.measureSoon);for(let s of this.manager.tooltipViews)s.dom.remove(),(r=s.destroy)===null||r===void 0||r.call(s);this.parent&&this.container.remove(),(e=this.resizeObserver)===null||e===void 0||e.disconnect(),(t=this.intersectionObserver)===null||t===void 0||t.disconnect(),clearTimeout(this.measureTimeout)}readMeasure(){let r=this.view.dom.getBoundingClientRect(),e=1,t=1,s=!1;if(this.position=="fixed"&&this.manager.tooltipViews.length){let{dom:n}=this.manager.tooltipViews[0];if(ft.gecko)s=n.offsetParent!=this.container.ownerDocument.body;else if(n.style.top==Xa&&n.style.left=="0px"){let i=n.getBoundingClientRect();s=Math.abs(i.top+1e4)>1||Math.abs(i.left)>1}}if(s||this.position=="absolute")if(this.parent){let n=this.parent.getBoundingClientRect();n.width&&n.height&&(e=n.width/this.parent.offsetWidth,t=n.height/this.parent.offsetHeight)}else({scaleX:e,scaleY:t}=this.view.viewState);return{editor:r,parent:this.parent?this.container.getBoundingClientRect():r,pos:this.manager.tooltips.map((n,i)=>{let a=this.manager.tooltipViews[i];return a.getCoords?a.getCoords(n.pos):this.view.coordsAtPos(n.pos)}),size:this.manager.tooltipViews.map(({dom:n})=>n.getBoundingClientRect()),space:this.view.state.facet(Df).tooltipSpace(this.view),scaleX:e,scaleY:t,makeAbsolute:s}}writeMeasure(r){var e;if(r.makeAbsolute){this.madeAbsolute=!0,this.position="absolute";for(let l of this.manager.tooltipViews)l.dom.style.position="absolute"}let{editor:t,space:s,scaleX:n,scaleY:i}=r,a=[];for(let l=0;l=Math.min(t.bottom,s.bottom)||p.rightMath.min(t.right,s.right)+.1){c.style.top=Xa;continue}let f=o.arrow?u.dom.querySelector(".cm-tooltip-arrow"):null,d=f?7:0,m=h.right-h.left,g=(e=yE.get(u))!==null&&e!==void 0?e:h.bottom-h.top,y=u.offset||bj,b=this.view.textDirection==Zt.LTR,v=h.width>s.right-s.left?b?s.left:s.right-h.width:b?Math.min(p.left-(f?14:0)+y.x,s.right-m):Math.max(s.left,p.left-m+(f?14:0)-y.x),S=this.above[l];!o.strictSide&&(S?p.top-(h.bottom-h.top)-y.ys.bottom)&&S==s.bottom-p.bottom>p.top-s.top&&(S=this.above[l]=!S);let C=(S?p.top-s.top:s.bottom-p.bottom)-d;if(Cv&&E.topO&&(O=S?E.top-g-2-d:E.bottom+d+2);if(this.position=="absolute"?(c.style.top=(O-r.parent.top)/i+"px",c.style.left=(v-r.parent.left)/n+"px"):(c.style.top=O/i+"px",c.style.left=v/n+"px"),f){let E=p.left+(b?y.x:-y.x)-(v+14-7);f.style.left=E/n+"px"}u.overlap!==!0&&a.push({left:v,top:O,right:w,bottom:O+g}),c.classList.toggle("cm-tooltip-above",S),c.classList.toggle("cm-tooltip-below",!S),u.positioned&&u.positioned(r.space)}}maybeMeasure(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView&&(this.inView=this.view.inView,!this.inView)))for(let r of this.manager.tooltipViews)r.dom.style.top=Xa}},{eventObservers:{scroll(){this.maybeMeasure()}}}),xj=at.baseTheme({".cm-tooltip":{zIndex:100,boxSizing:"border-box"},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:"7px",width:`${7*2}px`,position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:"7px solid transparent",borderRight:"7px solid transparent"},".cm-tooltip-above &":{bottom:"-7px","&:before":{borderTop:"7px solid #bbb"},"&:after":{borderTop:"7px solid #f5f5f5",bottom:"1px"}},".cm-tooltip-below &":{top:"-7px","&:before":{borderBottom:"7px solid #bbb"},"&:after":{borderBottom:"7px solid #f5f5f5",top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}}),bj={x:0,y:0},Zi=ct.define({enables:[wp,xj]}),Wl=ct.define({combine:r=>r.reduce((e,t)=>e.concat(t),[])}),Zl=class r{static create(e){return new r(e)}constructor(e){this.view=e,this.mounted=!1,this.dom=document.createElement("div"),this.dom.classList.add("cm-tooltip-hover"),this.manager=new Vl(e,Wl,(t,s)=>this.createHostedView(t,s),t=>t.dom.remove())}createHostedView(e,t){let s=e.create(this.view);return s.dom.classList.add("cm-tooltip-section"),this.dom.insertBefore(s.dom,t?t.dom.nextSibling:this.dom.firstChild),this.mounted&&s.mount&&s.mount(this.view),s}mount(e){for(let t of this.manager.tooltipViews)t.mount&&t.mount(e);this.mounted=!0}positioned(e){for(let t of this.manager.tooltipViews)t.positioned&&t.positioned(e)}update(e){this.manager.update(e)}destroy(){var e;for(let t of this.manager.tooltipViews)(e=t.destroy)===null||e===void 0||e.call(t)}passProp(e){let t;for(let s of this.manager.tooltipViews){let n=s[e];if(n!==void 0){if(t===void 0)t=n;else if(t!==n)return}}return t}get offset(){return this.passProp("offset")}get getCoords(){return this.passProp("getCoords")}get overlap(){return this.passProp("overlap")}get resize(){return this.passProp("resize")}},vj=Zi.compute([Wl],r=>{let e=r.facet(Wl);return e.length===0?null:{pos:Math.min(...e.map(t=>t.pos)),end:Math.max(...e.map(t=>{var s;return(s=t.end)!==null&&s!==void 0?s:t.pos})),create:Zl.create,above:e[0].above,arrow:e.some(t=>t.arrow)}}),mp=class{constructor(e,t,s,n,i){this.view=e,this.source=t,this.field=s,this.setHover=n,this.hoverTime=i,this.hoverTimeout=-1,this.restartTimeout=-1,this.pending=null,this.lastMove={x:0,y:0,target:e.dom,time:0},this.checkHover=this.checkHover.bind(this),e.dom.addEventListener("mouseleave",this.mouseleave=this.mouseleave.bind(this)),e.dom.addEventListener("mousemove",this.mousemove=this.mousemove.bind(this))}update(){this.pending&&(this.pending=null,clearTimeout(this.restartTimeout),this.restartTimeout=setTimeout(()=>this.startHover(),20))}get active(){return this.view.state.field(this.field)}checkHover(){if(this.hoverTimeout=-1,this.active.length)return;let e=Date.now()-this.lastMove.time;el.bottom||t.xl.right+e.defaultCharacterWidth)return;let o=e.bidiSpans(e.state.doc.lineAt(n)).find(c=>c.from<=n&&c.to>=n),u=o&&o.dir==Zt.RTL?-1:1;i=t.x{this.pending==l&&(this.pending=null,o&&!(Array.isArray(o)&&!o.length)&&e.dispatch({effects:this.setHover.of(Array.isArray(o)?o:[o])}))},o=>yr(e.state,o,"hover tooltip"))}else a&&!(Array.isArray(a)&&!a.length)&&e.dispatch({effects:this.setHover.of(Array.isArray(a)?a:[a])})}get tooltip(){let e=this.view.plugin(wp),t=e?e.manager.tooltips.findIndex(s=>s.create==Zl.create):-1;return t>-1?e.manager.tooltipViews[t]:null}mousemove(e){var t,s;this.lastMove={x:e.clientX,y:e.clientY,target:e.target,time:Date.now()},this.hoverTimeout<0&&(this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime));let{active:n,tooltip:i}=this;if(n.length&&i&&!Oj(i.dom,e)||this.pending){let{pos:a}=n[0]||this.pending,l=(s=(t=n[0])===null||t===void 0?void 0:t.end)!==null&&s!==void 0?s:a;(a==l?this.view.posAtCoords(this.lastMove)!=a:!Sj(this.view,a,l,e.clientX,e.clientY))&&(this.view.dispatch({effects:this.setHover.of([])}),this.pending=null)}}mouseleave(e){clearTimeout(this.hoverTimeout),this.hoverTimeout=-1;let{active:t}=this;if(t.length){let{tooltip:s}=this;s&&s.dom.contains(e.relatedTarget)?this.watchTooltipLeave(s.dom):this.view.dispatch({effects:this.setHover.of([])})}}watchTooltipLeave(e){let t=s=>{e.removeEventListener("mouseleave",t),this.active.length&&!this.view.dom.contains(s.relatedTarget)&&this.view.dispatch({effects:this.setHover.of([])})};e.addEventListener("mouseleave",t)}destroy(){clearTimeout(this.hoverTimeout),this.view.dom.removeEventListener("mouseleave",this.mouseleave),this.view.dom.removeEventListener("mousemove",this.mousemove)}},Al=4;function Oj(r,e){let t=r.getBoundingClientRect();return e.clientX>=t.left-Al&&e.clientX<=t.right+Al&&e.clientY>=t.top-Al&&e.clientY<=t.bottom+Al}function Sj(r,e,t,s,n,i){let a=r.scrollDOM.getBoundingClientRect(),l=r.documentTop+r.documentPadding.top+r.contentHeight;if(a.left>s||a.rightn||Math.min(a.bottom,l)=e&&o<=t}function DC(r,e={}){let t=wt.define(),s=Yt.define({create(){return[]},update(n,i){if(n.length&&(e.hideOnChange&&(i.docChanged||i.selection)?n=[]:e.hideOn&&(n=n.filter(a=>!e.hideOn(i,a))),i.docChanged)){let a=[];for(let l of n){let o=i.changes.mapPos(l.pos,-1,fr.TrackDel);if(o!=null){let u=Object.assign(Object.create(null),l);u.pos=o,u.end!=null&&(u.end=i.changes.mapPos(u.end)),a.push(u)}}n=a}for(let a of i.effects)a.is(t)&&(n=a.value),a.is(Ej)&&(n=[]);return n},provide:n=>Wl.from(n)});return[s,rr.define(n=>new mp(n,r,s,t,e.hoverTime||300)),vj]}function kp(r,e){let t=r.plugin(wp);if(!t)return null;let s=t.manager.tooltips.indexOf(e);return s<0?null:t.manager.tooltipViews[s]}var Ej=wt.define();var xE=ct.define({combine(r){let e,t;for(let s of r)e=e||s.topContainer,t=t||s.bottomContainer;return{topContainer:e,bottomContainer:t}}});function zi(r,e){let t=r.plugin(_C),s=t?t.specs.indexOf(e):-1;return s>-1?t.panels[s]:null}var _C=rr.fromClass(class{constructor(r){this.input=r.state.facet(ri),this.specs=this.input.filter(t=>t),this.panels=this.specs.map(t=>t(r));let e=r.state.facet(xE);this.top=new Qi(r,!0,e.topContainer),this.bottom=new Qi(r,!1,e.bottomContainer),this.top.sync(this.panels.filter(t=>t.top)),this.bottom.sync(this.panels.filter(t=>!t.top));for(let t of this.panels)t.dom.classList.add("cm-panel"),t.mount&&t.mount()}update(r){let e=r.state.facet(xE);this.top.container!=e.topContainer&&(this.top.sync([]),this.top=new Qi(r.view,!0,e.topContainer)),this.bottom.container!=e.bottomContainer&&(this.bottom.sync([]),this.bottom=new Qi(r.view,!1,e.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();let t=r.state.facet(ri);if(t!=this.input){let s=t.filter(o=>o),n=[],i=[],a=[],l=[];for(let o of s){let u=this.specs.indexOf(o),c;u<0?(c=o(r.view),l.push(c)):(c=this.panels[u],c.update&&c.update(r)),n.push(c),(c.top?i:a).push(c)}this.specs=s,this.panels=n,this.top.sync(i),this.bottom.sync(a);for(let o of l)o.dom.classList.add("cm-panel"),o.mount&&o.mount()}else for(let s of this.panels)s.update&&s.update(r)}destroy(){this.top.sync([]),this.bottom.sync([])}},{provide:r=>at.scrollMargins.of(e=>{let t=e.plugin(r);return t&&{top:t.top.scrollMargin(),bottom:t.bottom.scrollMargin()}})}),Qi=class{constructor(e,t,s){this.view=e,this.top=t,this.container=s,this.dom=void 0,this.classes="",this.panels=[],this.syncClasses()}sync(e){for(let t of this.panels)t.destroy&&e.indexOf(t)<0&&t.destroy();this.panels=e,this.syncDOM()}syncDOM(){if(this.panels.length==0){this.dom&&(this.dom.remove(),this.dom=void 0);return}if(!this.dom){this.dom=document.createElement("div"),this.dom.className=this.top?"cm-panels cm-panels-top":"cm-panels cm-panels-bottom",this.dom.style[this.top?"top":"bottom"]="0";let t=this.container||this.view.dom;t.insertBefore(this.dom,this.top?t.firstChild:null)}let e=this.dom.firstChild;for(let t of this.panels)if(t.dom.parentNode==this.dom){for(;e!=t.dom;)e=bE(e);e=e.nextSibling}else this.dom.insertBefore(t.dom,e);for(;e;)e=bE(e)}scrollMargin(){return!this.dom||this.container?0:Math.max(0,this.top?this.dom.getBoundingClientRect().bottom-Math.max(0,this.view.scrollDOM.getBoundingClientRect().top):Math.min(innerHeight,this.view.scrollDOM.getBoundingClientRect().bottom)-this.dom.getBoundingClientRect().top)}syncClasses(){if(!(!this.container||this.classes==this.view.themeClasses)){for(let e of this.classes.split(" "))e&&this.container.classList.remove(e);for(let e of(this.classes=this.view.themeClasses).split(" "))e&&this.container.classList.add(e)}}};function bE(r){let e=r.nextSibling;return r.remove(),e}var ri=ct.define({enables:_C}),Gr=class extends yn{compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}eq(e){return!1}destroy(e){}};Gr.prototype.elementClass="";Gr.prototype.toDOM=void 0;Gr.prototype.mapMode=fr.TrackBefore;Gr.prototype.startSide=Gr.prototype.endSide=-1;Gr.prototype.point=!0;var Fl=ct.define(),Cj={class:"",renderEmptyElements:!1,elementStyle:"",markers:()=>Mt.empty,lineMarker:()=>null,widgetMarker:()=>null,lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{}},io=ct.define();function Ap(r){return[IC(),io.of(Object.assign(Object.assign({},Cj),r))]}var gp=ct.define({combine:r=>r.some(e=>e)});function IC(r){let e=[wj];return r&&r.fixed===!1&&e.push(gp.of(!0)),e}var wj=rr.fromClass(class{constructor(r){this.view=r,this.prevViewport=r.viewport,this.dom=document.createElement("div"),this.dom.className="cm-gutters",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.gutters=r.state.facet(io).map(e=>new zl(r,e));for(let e of this.gutters)this.dom.appendChild(e.dom);this.fixed=!r.state.facet(gp),this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),r.scrollDOM.insertBefore(this.dom,r.contentDOM)}update(r){if(this.updateGutters(r)){let e=this.prevViewport,t=r.view.viewport,s=Math.min(e.to,t.to)-Math.max(e.from,t.from);this.syncGutters(s<(t.to-t.from)*.8)}r.geometryChanged&&(this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px"),this.view.state.facet(gp)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":""),this.prevViewport=r.view.viewport}syncGutters(r){let e=this.dom.nextSibling;r&&this.dom.remove();let t=Mt.iter(this.view.state.facet(Fl),this.view.viewport.from),s=[],n=this.gutters.map(i=>new xp(i,this.view.viewport,-this.view.documentPadding.top));for(let i of this.view.viewportLineBlocks)if(s.length&&(s=[]),Array.isArray(i.type)){let a=!0;for(let l of i.type)if(l.type==Ir.Text&&a){yp(t,s,l.from);for(let o of n)o.line(this.view,l,s);a=!1}else if(l.widget)for(let o of n)o.widget(this.view,l)}else if(i.type==Ir.Text){yp(t,s,i.from);for(let a of n)a.line(this.view,i,s)}else if(i.widget)for(let a of n)a.widget(this.view,i);for(let i of n)i.finish();r&&this.view.scrollDOM.insertBefore(this.dom,e)}updateGutters(r){let e=r.startState.facet(io),t=r.state.facet(io),s=r.docChanged||r.heightChanged||r.viewportChanged||!Mt.eq(r.startState.facet(Fl),r.state.facet(Fl),r.view.viewport.from,r.view.viewport.to);if(e==t)for(let n of this.gutters)n.update(r)&&(s=!0);else{s=!0;let n=[];for(let i of t){let a=e.indexOf(i);a<0?n.push(new zl(this.view,i)):(this.gutters[a].update(r),n.push(this.gutters[a]))}for(let i of this.gutters)i.dom.remove(),n.indexOf(i)<0&&i.destroy();for(let i of n)this.dom.appendChild(i.dom);this.gutters=n}return s}destroy(){for(let r of this.gutters)r.destroy();this.dom.remove()}},{provide:r=>at.scrollMargins.of(e=>{let t=e.plugin(r);return!t||t.gutters.length==0||!t.fixed?null:e.textDirection==Zt.LTR?{left:t.dom.offsetWidth*e.scaleX}:{right:t.dom.offsetWidth*e.scaleX}})});function vE(r){return Array.isArray(r)?r:[r]}function yp(r,e,t){for(;r.value&&r.from<=t;)r.from==t&&e.push(r.value),r.next()}var xp=class{constructor(e,t,s){this.gutter=e,this.height=s,this.i=0,this.cursor=Mt.iter(e.markers,t.from)}addElement(e,t,s){let{gutter:n}=this,i=(t.top-this.height)/e.scaleY,a=t.height/e.scaleY;if(this.i==n.elements.length){let l=new Xl(e,a,i,s);n.elements.push(l),n.dom.appendChild(l.dom)}else n.elements[this.i].update(e,a,i,s);this.height=t.bottom,this.i++}line(e,t,s){let n=[];yp(this.cursor,n,t.from),s.length&&(n=n.concat(s));let i=this.gutter.config.lineMarker(e,t,n);i&&n.unshift(i);let a=this.gutter;n.length==0&&!a.config.renderEmptyElements||this.addElement(e,t,n)}widget(e,t){let s=this.gutter.config.widgetMarker(e,t.widget,t);s&&this.addElement(e,t,[s])}finish(){let e=this.gutter;for(;e.elements.length>this.i;){let t=e.elements.pop();e.dom.removeChild(t.dom),t.destroy()}}},zl=class{constructor(e,t){this.view=e,this.config=t,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");for(let s in t.domEventHandlers)this.dom.addEventListener(s,n=>{let i=n.target,a;if(i!=this.dom&&this.dom.contains(i)){for(;i.parentNode!=this.dom;)i=i.parentNode;let o=i.getBoundingClientRect();a=(o.top+o.bottom)/2}else a=n.clientY;let l=e.lineBlockAtHeight(a-e.documentTop);t.domEventHandlers[s](e,l,n)&&n.preventDefault()});this.markers=vE(t.markers(e)),t.initialSpacer&&(this.spacer=new Xl(e,0,0,[t.initialSpacer(e)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}update(e){let t=this.markers;if(this.markers=vE(this.config.markers(e.view)),this.spacer&&this.config.updateSpacer){let n=this.config.updateSpacer(this.spacer.markers[0],e);n!=this.spacer.markers[0]&&this.spacer.update(e.view,0,0,[n])}let s=e.view.viewport;return!Mt.eq(this.markers,t,s.from,s.to)||(this.config.lineMarkerChange?this.config.lineMarkerChange(e):!1)}destroy(){for(let e of this.elements)e.destroy()}},Xl=class{constructor(e,t,s,n){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(e,t,s,n)}update(e,t,s,n){this.height!=t&&(this.height=t,this.dom.style.height=t+"px"),this.above!=s&&(this.dom.style.marginTop=(this.above=s)?s+"px":""),kj(this.markers,n)||this.setMarkers(e,n)}setMarkers(e,t){let s="cm-gutterElement",n=this.dom.firstChild;for(let i=0,a=0;;){let l=a,o=ii(l,o,u)||a(l,o,u):a}return s}})}}),ao=class extends Gr{constructor(e){super(),this.number=e}eq(e){return this.number==e.number}toDOM(){return document.createTextNode(this.number)}};function _f(r,e){return r.state.facet(Ui).formatNumber(e,r.state)}var Pj=io.compute([Ui],r=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers(e){return e.state.facet(Aj)},lineMarker(e,t,s){return s.some(n=>n.toDOM)?null:new ao(_f(e,e.state.doc.lineAt(t.from).number))},widgetMarker:()=>null,lineMarkerChange:e=>e.startState.facet(Ui)!=e.state.facet(Ui),initialSpacer(e){return new ao(_f(e,OE(e.state.doc.lines)))},updateSpacer(e,t){let s=_f(t.view,OE(t.view.state.doc.lines));return s==e.number?e:new ao(s)},domEventHandlers:r.facet(Ui).domEventHandlers}));function FC(r={}){return[Ui.of(r),IC(),Pj]}function OE(r){let e=9;for(;e{let e=[],t=-1;for(let s of r.selection.ranges){let n=r.doc.lineAt(s.head).from;n>t&&(t=n,e.push(Tj.range(n)))}return Mt.of(e)});function RC(){return Dj}var _j=0,go=class{constructor(e,t){this.from=e,this.to=t}},kt=class{constructor(e={}){this.id=_j++,this.perNode=!!e.perNode,this.deserialize=e.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")})}add(e){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return typeof e!="function"&&(e=Ar.match(e)),t=>{let s=e(t);return s===void 0?null:[this,s]}}};kt.closedBy=new kt({deserialize:r=>r.split(" ")});kt.openedBy=new kt({deserialize:r=>r.split(" ")});kt.group=new kt({deserialize:r=>r.split(" ")});kt.isolate=new kt({deserialize:r=>{if(r&&r!="rtl"&&r!="ltr"&&r!="auto")throw new RangeError("Invalid value for isolate: "+r);return r||"auto"}});kt.contextHash=new kt({perNode:!0});kt.lookAhead=new kt({perNode:!0});kt.mounted=new kt({perNode:!0});var Xi=class{constructor(e,t,s){this.tree=e,this.overlay=t,this.parser=s}static get(e){return e&&e.props&&e.props[kt.mounted.id]}},Ij=Object.create(null),Ar=class r{constructor(e,t,s,n=0){this.name=e,this.props=t,this.id=s,this.flags=n}static define(e){let t=e.props&&e.props.length?Object.create(null):Ij,s=(e.top?1:0)|(e.skipped?2:0)|(e.error?4:0)|(e.name==null?8:0),n=new r(e.name||"",t,e.id,s);if(e.props){for(let i of e.props)if(Array.isArray(i)||(i=i(n)),i){if(i[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");t[i[0].id]=i[1]}}return n}prop(e){return this.props[e.id]}get isTop(){return(this.flags&1)>0}get isSkipped(){return(this.flags&2)>0}get isError(){return(this.flags&4)>0}get isAnonymous(){return(this.flags&8)>0}is(e){if(typeof e=="string"){if(this.name==e)return!0;let t=this.prop(kt.group);return t?t.indexOf(e)>-1:!1}return this.id==e}static match(e){let t=Object.create(null);for(let s in e)for(let n of s.split(" "))t[n]=e[s];return s=>{for(let n=s.prop(kt.group),i=-1;i<(n?n.length:0);i++){let a=t[i<0?s.name:n[i]];if(a)return a}}}};Ar.none=new Ar("",Object.create(null),0,8);var yo=class r{constructor(e){this.types=e;for(let t=0;t0;for(let o=this.cursor(a|nr.IncludeAnonymous);;){let u=!1;if(o.from<=i&&o.to>=n&&(!l&&o.type.isAnonymous||t(o)!==!1)){if(o.firstChild())continue;u=!0}for(;u&&s&&(l||!o.type.isAnonymous)&&s(o),!o.nextSibling();){if(!o.parent())return;u=!0}}}prop(e){return e.perNode?this.props?this.props[e.id]:void 0:this.type.prop(e)}get propValues(){let e=[];if(this.props)for(let t in this.props)e.push([+t,this.props[t]]);return e}balance(e={}){return this.children.length<=8?this:Rp(Ar.none,this.children,this.positions,0,this.children.length,0,this.length,(t,s,n)=>new r(this.type,t,s,n,this.propValues),e.makeTree||((t,s,n)=>new r(Ar.none,t,s,n)))}static build(e){return Rj(e)}};or.empty=new or(Ar.none,[],[],0);var Pp=class r{constructor(e,t){this.buffer=e,this.index=t}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new r(this.buffer,this.index)}},Ps=class r{constructor(e,t,s){this.buffer=e,this.length=t,this.set=s}get type(){return Ar.none}toString(){let e=[];for(let t=0;t0));o=a[o+3]);return l}slice(e,t,s){let n=this.buffer,i=new Uint16Array(t-e),a=0;for(let l=e,o=0;l=e&&te;case 1:return t<=e&&s>e;case 2:return s>e;case 4:return!0}}function xo(r,e,t,s){for(var n;r.from==r.to||(t<1?r.from>=e:r.from>e)||(t>-1?r.to<=e:r.to0?l.length:-1;e!=u;e+=t){let c=l[e],p=o[e]+a.from;if($C(n,s,p,p+c.length)){if(c instanceof Ps){if(i&nr.ExcludeBuffers)continue;let h=c.findChild(0,c.buffer.length,t,s-p,n);if(h>-1)return new ni(new Dp(a,c,e,p),null,h)}else if(i&nr.IncludeAnonymous||!c.type.isAnonymous||Fp(c)){let h;if(!(i&nr.IgnoreMounts)&&(h=Xi.get(c))&&!h.overlay)return new r(h.tree,p,e,a);let f=new r(c,p,e,a);return i&nr.IncludeAnonymous||!f.type.isAnonymous?f:f.nextChild(t<0?c.children.length-1:0,t,s,n)}}}if(i&nr.IncludeAnonymous||!a.type.isAnonymous||(a.index>=0?e=a.index+t:e=t<0?-1:a._parent._tree.children.length,a=a._parent,!a))return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(e){return this.nextChild(0,1,e,2)}childBefore(e){return this.nextChild(this._tree.children.length-1,-1,e,-2)}enter(e,t,s=0){let n;if(!(s&nr.IgnoreOverlays)&&(n=Xi.get(this._tree))&&n.overlay){let i=e-this.from;for(let{from:a,to:l}of n.overlay)if((t>0?a<=i:a=i:l>i))return new r(n.tree,n.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,e,t,s)}nextSignificantParent(){let e=this;for(;e.type.isAnonymous&&e._parent;)e=e._parent;return e}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}};function NC(r,e,t,s){let n=r.cursor(),i=[];if(!n.firstChild())return i;if(t!=null){for(let a=!1;!a;)if(a=n.type.is(t),!n.nextSibling())return i}for(;;){if(s!=null&&n.type.is(s))return i;if(n.type.is(e)&&i.push(n.node),!n.nextSibling())return s==null?i:[]}}function Tp(r,e,t=e.length-1){for(let s=r.parent;t>=0;s=s.parent){if(!s)return!1;if(!s.type.isAnonymous){if(e[t]&&e[t]!=s.name)return!1;t--}}return!0}var Dp=class{constructor(e,t,s,n){this.parent=e,this.buffer=t,this.index=s,this.start=n}},ni=class r extends Jl{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(e,t,s){super(),this.context=e,this._parent=t,this.index=s,this.type=e.buffer.set.types[e.buffer.buffer[s]]}child(e,t,s){let{buffer:n}=this.context,i=n.findChild(this.index+4,n.buffer[this.index+3],e,t-this.context.start,s);return i<0?null:new r(this.context,this,i)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(e){return this.child(1,e,2)}childBefore(e){return this.child(-1,e,-2)}enter(e,t,s=0){if(s&nr.ExcludeBuffers)return null;let{buffer:n}=this.context,i=n.findChild(this.index+4,n.buffer[this.index+3],t>0?1:-1,e-this.context.start,t);return i<0?null:new r(this.context,this,i)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(e){return this._parent?null:this.context.parent.nextChild(this.context.index+e,e,0,4)}get nextSibling(){let{buffer:e}=this.context,t=e.buffer[this.index+3];return t<(this._parent?e.buffer[this._parent.index+3]:e.buffer.length)?new r(this.context,this._parent,t):this.externalSibling(1)}get prevSibling(){let{buffer:e}=this.context,t=this._parent?this._parent.index+4:0;return this.index==t?this.externalSibling(-1):new r(this.context,this._parent,e.findChild(t,this.index,-1,0,4))}get tree(){return null}toTree(){let e=[],t=[],{buffer:s}=this.context,n=this.index+4,i=s.buffer[this.index+3];if(i>n){let a=s.buffer[this.index+1];e.push(s.slice(n,i,a)),t.push(0)}return new or(this.type,e,t,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}};function MC(r){if(!r.length)return null;let e=0,t=r[0];for(let i=1;it.from||a.to=e){let l=new ln(a.tree,a.overlay[0].from+i.from,-1,i);(n||(n=[s])).push(xo(l,e,t,!1))}}return n?MC(n):s}var bo=class{get name(){return this.type.name}constructor(e,t=0){if(this.mode=t,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,e instanceof ln)this.yieldNode(e);else{this._tree=e.context.parent,this.buffer=e.context;for(let s=e._parent;s;s=s._parent)this.stack.unshift(s.index);this.bufferNode=e,this.yieldBuf(e.index)}}yieldNode(e){return e?(this._tree=e,this.type=e.type,this.from=e.from,this.to=e.to,!0):!1}yieldBuf(e,t){this.index=e;let{start:s,buffer:n}=this.buffer;return this.type=t||n.set.types[n.buffer[e]],this.from=s+n.buffer[e+1],this.to=s+n.buffer[e+2],!0}yield(e){return e?e instanceof ln?(this.buffer=null,this.yieldNode(e)):(this.buffer=e.context,this.yieldBuf(e.index,e.type)):!1}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(e,t,s){if(!this.buffer)return this.yield(this._tree.nextChild(e<0?this._tree._tree.children.length-1:0,e,t,s,this.mode));let{buffer:n}=this.buffer,i=n.findChild(this.index+4,n.buffer[this.index+3],e,t-this.buffer.start,s);return i<0?!1:(this.stack.push(this.index),this.yieldBuf(i))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(e){return this.enterChild(1,e,2)}childBefore(e){return this.enterChild(-1,e,-2)}enter(e,t,s=this.mode){return this.buffer?s&nr.ExcludeBuffers?!1:this.enterChild(1,e,t):this.yield(this._tree.enter(e,t,s))}parent(){if(!this.buffer)return this.yieldNode(this.mode&nr.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let e=this.mode&nr.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(e)}sibling(e){if(!this.buffer)return this._tree._parent?this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+e,e,0,4,this.mode)):!1;let{buffer:t}=this.buffer,s=this.stack.length-1;if(e<0){let n=s<0?0:this.stack[s]+4;if(this.index!=n)return this.yieldBuf(t.findChild(n,this.index,-1,0,4))}else{let n=t.buffer[this.index+3];if(n<(s<0?t.buffer.length:t.buffer[this.stack[s]+3]))return this.yieldBuf(n)}return s<0?this.yield(this.buffer.parent.nextChild(this.buffer.index+e,e,0,4,this.mode)):!1}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(e){let t,s,{buffer:n}=this;if(n){if(e>0){if(this.index-1)for(let i=t+e,a=e<0?-1:s._tree.children.length;i!=a;i+=e){let l=s._tree.children[i];if(this.mode&nr.IncludeAnonymous||l instanceof Ps||!l.type.isAnonymous||Fp(l))return!1}return!0}move(e,t){if(t&&this.enterChild(e,0,4))return!0;for(;;){if(this.sibling(e))return!0;if(this.atLastNode(e)||!this.parent())return!1}}next(e=!0){return this.move(1,e)}prev(e=!0){return this.move(-1,e)}moveTo(e,t=0){for(;(this.from==this.to||(t<1?this.from>=e:this.from>e)||(t>-1?this.to<=e:this.to=0;){for(let a=e;a;a=a._parent)if(a.index==n){if(n==this.index)return a;t=a,s=i+1;break e}n=this.stack[--i]}for(let n=s;n=0;i--){if(i<0)return Tp(this.node,e,n);let a=s[t.buffer[this.stack[i]]];if(!a.isAnonymous){if(e[n]&&e[n]!=a.name)return!1;n--}}return!0}};function Fp(r){return r.children.some(e=>e instanceof Ps||!e.type.isAnonymous||Fp(e))}function Rj(r){var e;let{buffer:t,nodeSet:s,maxBufferLength:n=1024,reused:i=[],minRepeatType:a=s.types.length}=r,l=Array.isArray(t)?new Pp(t,t.length):t,o=s.types,u=0,c=0;function p(C,O,w,E,k,A){let{id:D,start:_,end:B,size:T}=l,F=c;for(;T<0;)if(l.next(),T==-1){let R=i[D];w.push(R),E.push(_-C);return}else if(T==-3){u=D;return}else if(T==-4){c=D;return}else throw new RangeError(`Unrecognized record size: ${T}`);let j=o[D],Q,I,N=_-C;if(B-_<=n&&(I=g(l.pos-O,k))){let R=new Uint16Array(I.size-I.skip),U=l.pos-I.size,V=R.length;for(;l.pos>U;)V=y(I.start,R,V);Q=new Ps(R,B-I.start,s),N=I.start-C}else{let R=l.pos-T;l.next();let U=[],V=[],ae=D>=a?D:-1,se=0,ve=B;for(;l.pos>R;)ae>=0&&l.id==ae&&l.size>=0?(l.end<=ve-n&&(d(U,V,_,se,l.end,ve,ae,F),se=U.length,ve=l.end),l.next()):A>2500?h(_,R,U,V):p(_,R,U,V,ae,A+1);if(ae>=0&&se>0&&se-1&&se>0){let H=f(j);Q=Rp(j,U,V,0,U.length,0,B-_,H,H)}else Q=m(j,U,V,B-_,F-B)}w.push(Q),E.push(N)}function h(C,O,w,E){let k=[],A=0,D=-1;for(;l.pos>O;){let{id:_,start:B,end:T,size:F}=l;if(F>4)l.next();else{if(D>-1&&B=0;T-=3)_[F++]=k[T],_[F++]=k[T+1]-B,_[F++]=k[T+2]-B,_[F++]=F;w.push(new Ps(_,k[2]-B,s)),E.push(B-C)}}function f(C){return(O,w,E)=>{let k=0,A=O.length-1,D,_;if(A>=0&&(D=O[A])instanceof or){if(!A&&D.type==C&&D.length==E)return D;(_=D.prop(kt.lookAhead))&&(k=w[A]+D.length+_)}return m(C,O,w,E,k)}}function d(C,O,w,E,k,A,D,_){let B=[],T=[];for(;C.length>E;)B.push(C.pop()),T.push(O.pop()+w-k);C.push(m(s.types[D],B,T,A-k,_-A)),O.push(k-w)}function m(C,O,w,E,k=0,A){if(u){let D=[kt.contextHash,u];A=A?[D].concat(A):[D]}if(k>25){let D=[kt.lookAhead,k];A=A?[D].concat(A):[D]}return new or(C,O,w,E,A)}function g(C,O){let w=l.fork(),E=0,k=0,A=0,D=w.end-n,_={size:0,start:0,skip:0};e:for(let B=w.pos-C;w.pos>B;){let T=w.size;if(w.id==O&&T>=0){_.size=E,_.start=k,_.skip=A,A+=4,E+=4,w.next();continue}let F=w.pos-T;if(T<0||F=a?4:0,Q=w.start;for(w.next();w.pos>F;){if(w.size<0)if(w.size==-3)j+=4;else break e;else w.id>=a&&(j+=4);w.next()}k=Q,E+=T,A+=j}return(O<0||E==C)&&(_.size=E,_.start=k,_.skip=A),_.size>4?_:void 0}function y(C,O,w){let{id:E,start:k,end:A,size:D}=l;if(l.next(),D>=0&&E4){let B=l.pos-(D-4);for(;l.pos>B;)w=y(C,O,w)}O[--w]=_,O[--w]=A-C,O[--w]=k-C,O[--w]=E}else D==-3?u=E:D==-4&&(c=E);return w}let b=[],v=[];for(;l.pos>0;)p(r.start||0,r.bufferStart||0,b,v,-1,0);let S=(e=r.length)!==null&&e!==void 0?e:b.length?v[0]+b[0].length:0;return new or(o[r.topID],b.reverse(),v.reverse(),S)}var LC=new WeakMap;function Kl(r,e){if(!r.isAnonymous||e instanceof Ps||e.type!=r)return 1;let t=LC.get(e);if(t==null){t=1;for(let s of e.children){if(s.type!=r||!(s instanceof or)){t=1;break}t+=Kl(r,s)}LC.set(e,t)}return t}function Rp(r,e,t,s,n,i,a,l,o){let u=0;for(let d=s;d=c)break;O+=w}if(v==S+1){if(O>c){let w=d[S];f(w.children,w.positions,0,w.children.length,m[S]+b);continue}p.push(d[S])}else{let w=m[v-1]+d[v-1].length-C;p.push(Rp(r,d,m,S,v,C,w,null,o))}h.push(C+b-i)}}return f(e,t,s,n,0),(l||o)(p,h,a)}var eu=class{constructor(){this.map=new WeakMap}setBuffer(e,t,s){let n=this.map.get(e);n||this.map.set(e,n=new Map),n.set(t,s)}getBuffer(e,t){let s=this.map.get(e);return s&&s.get(t)}set(e,t){e instanceof ni?this.setBuffer(e.context.buffer,e.index,t):e instanceof ln&&this.map.set(e.tree,t)}get(e){return e instanceof ni?this.getBuffer(e.context.buffer,e.index):e instanceof ln?this.map.get(e.tree):void 0}cursorSet(e,t){e.buffer?this.setBuffer(e.buffer.buffer,e.index,t):this.map.set(e.tree,t)}cursorGet(e){return e.buffer?this.getBuffer(e.buffer.buffer,e.index):this.map.get(e.tree)}},si=class r{constructor(e,t,s,n,i=!1,a=!1){this.from=e,this.to=t,this.tree=s,this.offset=n,this.open=(i?1:0)|(a?2:0)}get openStart(){return(this.open&1)>0}get openEnd(){return(this.open&2)>0}static addTree(e,t=[],s=!1){let n=[new r(0,e.length,e,0,!1,s)];for(let i of t)i.to>e.length&&n.push(i);return n}static applyChanges(e,t,s=128){if(!t.length)return e;let n=[],i=1,a=e.length?e[0]:null;for(let l=0,o=0,u=0;;l++){let c=l=s)for(;a&&a.from=h.from||p<=h.to||u){let f=Math.max(h.from,o)-u,d=Math.min(h.to,p)-u;h=f>=d?null:new r(f,d,h.tree,h.offset+u,l>0,!!c)}if(h&&n.push(h),a.to>p)break;a=inew go(n.from,n.to)):[new go(0,0)]:[new go(0,e.length)],this.createParse(e,t||[],s)}parse(e,t,s){let n=this.startParse(e,t,s);for(;;){let i=n.advance();if(i)return i}}},Ip=class{constructor(e){this.string=e}get length(){return this.string.length}chunk(e){return this.string.slice(e)}get lineChunks(){return!1}read(e,t){return this.string.slice(e,t)}};var IG=new kt({perNode:!0});var Bj=0,qn=class r{constructor(e,t,s){this.set=e,this.base=t,this.modified=s,this.id=Bj++}static define(e){if(e?.base)throw new Error("Can not derive from a modified tag");let t=new r([],null,[]);if(t.set.push(t),e)for(let s of e.set)t.set.push(s);return t}static defineModifier(){let e=new su;return t=>t.modified.indexOf(e)>-1?t:su.get(t.base||t,t.modified.concat(e).sort((s,n)=>s.id-n.id))}},Nj=0,su=class r{constructor(){this.instances=[],this.id=Nj++}static get(e,t){if(!t.length)return e;let s=t[0].instances.find(l=>l.base==e&&Lj(t,l.modified));if(s)return s;let n=[],i=new qn(n,e,t);for(let l of t)l.instances.push(i);let a=$j(t);for(let l of e.set)if(!l.modified.length)for(let o of a)n.push(r.get(l,o));return i}};function Lj(r,e){return r.length==e.length&&r.every((t,s)=>t==e[s])}function $j(r){let e=[[]];for(let t=0;ts.length-t.length)}function iu(r){let e=Object.create(null);for(let t in r){let s=r[t];Array.isArray(s)||(s=[s]);for(let n of t.split(" "))if(n){let i=[],a=2,l=n;for(let p=0;;){if(l=="..."&&p>0&&p+3==n.length){a=1;break}let h=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(l);if(!h)throw new RangeError("Invalid path: "+n);if(i.push(h[0]=="*"?"":h[0][0]=='"'?JSON.parse(h[0]):h[0]),p+=h[0].length,p==n.length)break;let f=n[p++];if(p==n.length&&f=="!"){a=0;break}if(f!="/")throw new RangeError("Invalid path: "+n);l=n.slice(p)}let o=i.length-1,u=i[o];if(!u)throw new RangeError("Invalid path: "+n);let c=new Yi(s,a,o>0?i.slice(0,o):null);e[u]=c.sort(e[u])}}return QC.add(e)}var QC=new kt,Yi=class{constructor(e,t,s,n){this.tags=e,this.mode=t,this.context=s,this.next=n}get opaque(){return this.mode==0}get inherit(){return this.mode==1}sort(e){return!e||e.depth{let a=n;for(let l of i)for(let o of l.set){let u=t[o.id];if(u){a=a?a+" "+u:u;break}}return a},scope:s}}function Mj(r,e){let t=null;for(let s of r){let n=s.style(e);n&&(t=t?t+" "+n:n)}return t}function UC(r,e,t,s=0,n=r.length){let i=new Np(s,Array.isArray(e)?e:[e],t);i.highlightRange(r.cursor(),s,n,"",i.highlighters),i.flush(n)}var Np=class{constructor(e,t,s){this.at=e,this.highlighters=t,this.span=s,this.class=""}startSpan(e,t){t!=this.class&&(this.flush(e),e>this.at&&(this.at=e),this.class=t)}flush(e){e>this.at&&this.class&&this.span(this.at,e,this.class)}highlightRange(e,t,s,n,i){let{type:a,from:l,to:o}=e;if(l>=s||o<=t)return;a.isTop&&(i=this.highlighters.filter(f=>!f.scope||f.scope(a)));let u=n,c=jj(e)||Yi.empty,p=Mj(i,c.tags);if(p&&(u&&(u+=" "),u+=p,c.mode==1&&(n+=(n?" ":"")+p)),this.startSpan(Math.max(t,l),u),c.opaque)return;let h=e.tree&&e.tree.prop(kt.mounted);if(h&&h.overlay){let f=e.node.enter(h.overlay[0].from+l,1),d=this.highlighters.filter(g=>!g.scope||g.scope(h.tree.type)),m=e.firstChild();for(let g=0,y=l;;g++){let b=g=v||!e.nextSibling())););if(!b||v>s)break;y=b.to+l,y>t&&(this.highlightRange(f.cursor(),Math.max(t,b.from+l),Math.min(s,y),"",d),this.startSpan(Math.min(s,y),u))}m&&e.parent()}else if(e.firstChild()){h&&(n="");do if(!(e.to<=t)){if(e.from>=s)break;this.highlightRange(e,t,s,n,i),this.startSpan(Math.min(s,e.to),u)}while(e.nextSibling());e.parent()}}};function jj(r){let e=r.type.prop(QC);for(;e&&e.context&&!r.matchContext(e.context);)e=e.next;return e||null}var lt=qn.define,tu=lt(),Ts=lt(),jC=lt(Ts),qC=lt(Ts),Ds=lt(),ru=lt(Ds),Bp=lt(Ds),jn=lt(),ii=lt(jn),$n=lt(),Mn=lt(),Lp=lt(),vo=lt(Lp),nu=lt(),ke={comment:tu,lineComment:lt(tu),blockComment:lt(tu),docComment:lt(tu),name:Ts,variableName:lt(Ts),typeName:jC,tagName:lt(jC),propertyName:qC,attributeName:lt(qC),className:lt(Ts),labelName:lt(Ts),namespace:lt(Ts),macroName:lt(Ts),literal:Ds,string:ru,docString:lt(ru),character:lt(ru),attributeValue:lt(ru),number:Bp,integer:lt(Bp),float:lt(Bp),bool:lt(Ds),regexp:lt(Ds),escape:lt(Ds),color:lt(Ds),url:lt(Ds),keyword:$n,self:lt($n),null:lt($n),atom:lt($n),unit:lt($n),modifier:lt($n),operatorKeyword:lt($n),controlKeyword:lt($n),definitionKeyword:lt($n),moduleKeyword:lt($n),operator:Mn,derefOperator:lt(Mn),arithmeticOperator:lt(Mn),logicOperator:lt(Mn),bitwiseOperator:lt(Mn),compareOperator:lt(Mn),updateOperator:lt(Mn),definitionOperator:lt(Mn),typeOperator:lt(Mn),controlOperator:lt(Mn),punctuation:Lp,separator:lt(Lp),bracket:vo,angleBracket:lt(vo),squareBracket:lt(vo),paren:lt(vo),brace:lt(vo),content:jn,heading:ii,heading1:lt(ii),heading2:lt(ii),heading3:lt(ii),heading4:lt(ii),heading5:lt(ii),heading6:lt(ii),contentSeparator:lt(jn),list:lt(jn),quote:lt(jn),emphasis:lt(jn),strong:lt(jn),link:lt(jn),monospace:lt(jn),strikethrough:lt(jn),inserted:lt(),deleted:lt(),changed:lt(),invalid:lt(),meta:nu,documentMeta:lt(nu),annotation:lt(nu),processingInstruction:lt(nu),definition:qn.defineModifier(),constant:qn.defineModifier(),function:qn.defineModifier(),standard:qn.defineModifier(),local:qn.defineModifier(),special:qn.defineModifier()},BG=$p([{tag:ke.link,class:"tok-link"},{tag:ke.heading,class:"tok-heading"},{tag:ke.emphasis,class:"tok-emphasis"},{tag:ke.strong,class:"tok-strong"},{tag:ke.keyword,class:"tok-keyword"},{tag:ke.atom,class:"tok-atom"},{tag:ke.bool,class:"tok-bool"},{tag:ke.url,class:"tok-url"},{tag:ke.labelName,class:"tok-labelName"},{tag:ke.inserted,class:"tok-inserted"},{tag:ke.deleted,class:"tok-deleted"},{tag:ke.literal,class:"tok-literal"},{tag:ke.string,class:"tok-string"},{tag:ke.number,class:"tok-number"},{tag:[ke.regexp,ke.escape,ke.special(ke.string)],class:"tok-string2"},{tag:ke.variableName,class:"tok-variableName"},{tag:ke.local(ke.variableName),class:"tok-variableName tok-local"},{tag:ke.definition(ke.variableName),class:"tok-variableName tok-definition"},{tag:ke.special(ke.variableName),class:"tok-variableName2"},{tag:ke.definition(ke.propertyName),class:"tok-propertyName tok-definition"},{tag:ke.typeName,class:"tok-typeName"},{tag:ke.namespace,class:"tok-namespace"},{tag:ke.className,class:"tok-className"},{tag:ke.macroName,class:"tok-macroName"},{tag:ke.propertyName,class:"tok-propertyName"},{tag:ke.operator,class:"tok-operator"},{tag:ke.comment,class:"tok-comment"},{tag:ke.meta,class:"tok-meta"},{tag:ke.invalid,class:"tok-invalid"},{tag:ke.punctuation,class:"tok-punctuation"}]);var Mp,Hi=new kt;function Yp(r){return ct.define({combine:r?e=>e.concat(r):void 0})}var lu=new kt,Yr=class{constructor(e,t,s=[],n=""){this.data=e,this.name=n,Ut.prototype.hasOwnProperty("tree")||Object.defineProperty(Ut.prototype,"tree",{get(){return pr(this)}}),this.parser=t,this.extension=[Ki.of(this),Ut.languageData.of((i,a,l)=>{let o=VC(i,a,l),u=o.type.prop(Hi);if(!u)return[];let c=i.facet(u),p=o.type.prop(lu);if(p){let h=o.resolve(a-o.from,l);for(let f of p)if(f.test(h,i)){let d=i.facet(f.facet);return f.type=="replace"?d:d.concat(c)}}return c})].concat(s)}isActiveAt(e,t,s=-1){return VC(e,t,s).type.prop(Hi)==this.data}findRegions(e){let t=e.facet(Ki);if(t?.data==this.data)return[{from:0,to:e.doc.length}];if(!t||!t.allowsNesting)return[];let s=[],n=(i,a)=>{if(i.prop(Hi)==this.data){s.push({from:a,to:a+i.length});return}let l=i.prop(kt.mounted);if(l){if(l.tree.prop(Hi)==this.data){if(l.overlay)for(let o of l.overlay)s.push({from:o.from+a,to:o.to+a});else s.push({from:a,to:a+i.length});return}else if(l.overlay){let o=s.length;if(n(l.tree,l.overlay[0].from+a),s.length>o)return}}for(let o=0;os.isTop?t:void 0)]}),e.name)}configure(e,t){return new r(this.data,this.parser.configure(e),t||this.name)}get allowsNesting(){return this.parser.hasWrappers()}};function pr(r){let e=r.field(Yr.state,!1);return e?e.tree:or.empty}var Up=class{constructor(e){this.doc=e,this.cursorPos=0,this.string="",this.cursor=e.iter()}get length(){return this.doc.length}syncTo(e){return this.string=this.cursor.next(e-this.cursorPos).value,this.cursorPos=e+this.string.length,this.cursorPos-this.string.length}chunk(e){return this.syncTo(e),this.string}get lineChunks(){return!0}read(e,t){let s=this.cursorPos-this.string.length;return e=this.cursorPos?this.doc.sliceString(e,t):this.string.slice(e-s,t-s)}},Oo=null,Vp=class r{constructor(e,t,s=[],n,i,a,l,o){this.parser=e,this.state=t,this.fragments=s,this.tree=n,this.treeLen=i,this.viewport=a,this.skipped=l,this.scheduleOn=o,this.parse=null,this.tempSkipped=[]}static create(e,t,s){return new r(e,t,[],or.empty,0,s,[],null)}startParse(){return this.parser.startParse(new Up(this.state.doc),this.fragments)}work(e,t){return t!=null&&t>=this.state.doc.length&&(t=void 0),this.tree!=or.empty&&this.isDone(t??this.state.doc.length)?(this.takeTree(),!0):this.withContext(()=>{var s;if(typeof e=="number"){let n=Date.now()+e;e=()=>Date.now()>n}for(this.parse||(this.parse=this.startParse()),t!=null&&(this.parse.stoppedAt==null||this.parse.stoppedAt>t)&&t=this.treeLen&&((this.parse.stoppedAt==null||this.parse.stoppedAt>e)&&this.parse.stopAt(e),this.withContext(()=>{for(;!(t=this.parse.advance()););}),this.treeLen=e,this.tree=t,this.fragments=this.withoutTempSkipped(si.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(e){let t=Oo;Oo=this;try{return e()}finally{Oo=t}}withoutTempSkipped(e){for(let t;t=this.tempSkipped.pop();)e=WC(e,t.from,t.to);return e}changes(e,t){let{fragments:s,tree:n,treeLen:i,viewport:a,skipped:l}=this;if(this.takeTree(),!e.empty){let o=[];if(e.iterChangedRanges((u,c,p,h)=>o.push({fromA:u,toA:c,fromB:p,toB:h})),s=si.applyChanges(s,o),n=or.empty,i=0,a={from:e.mapPos(a.from,-1),to:e.mapPos(a.to,1)},this.skipped.length){l=[];for(let u of this.skipped){let c=e.mapPos(u.from,1),p=e.mapPos(u.to,-1);ce.from&&(this.fragments=WC(this.fragments,n,i),this.skipped.splice(s--,1))}return this.skipped.length>=t?!1:(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(e,t){this.skipped.push({from:e,to:t})}static getSkippingParser(e){return new class extends Gi{createParse(t,s,n){let i=n[0].from,a=n[n.length-1].to;return{parsedPos:i,advance(){let o=Oo;if(o){for(let u of n)o.tempSkipped.push(u);e&&(o.scheduleOn=o.scheduleOn?Promise.all([o.scheduleOn,e]):e)}return this.parsedPos=a,new or(Ar.none,[],[],a-i)},stoppedAt:null,stopAt(){}}}}}isDone(e){e=Math.min(e,this.state.doc.length);let t=this.fragments;return this.treeLen>=e&&t.length&&t[0].from==0&&t[0].to>=e}static get(){return Oo}};function WC(r,e,t){return si.applyChanges(r,[{fromA:e,toA:t,fromB:e,toB:t}])}var So=class r{constructor(e){this.context=e,this.tree=e.tree}apply(e){if(!e.docChanged&&this.tree==this.context.tree)return this;let t=this.context.changes(e.changes,e.state),s=this.context.treeLen==e.startState.doc.length?void 0:Math.max(e.changes.mapPos(this.context.treeLen),t.viewport.to);return t.work(20,s)||t.takeTree(),new r(t)}static init(e){let t=Math.min(3e3,e.doc.length),s=Vp.create(e.facet(Ki).parser,e,{from:0,to:t});return s.work(20,t)||s.takeTree(),new r(s)}};Yr.state=Yt.define({create:So.init,update(r,e){for(let t of e.effects)if(t.is(Yr.setState))return t.value;return e.startState.facet(Ki)!=e.state.facet(Ki)?So.init(e.state):r.apply(e)}});var GC=r=>{let e=setTimeout(()=>r(),500);return()=>clearTimeout(e)};typeof requestIdleCallback<"u"&&(GC=r=>{let e=-1,t=setTimeout(()=>{e=requestIdleCallback(r,{timeout:400})},100);return()=>e<0?clearTimeout(t):cancelIdleCallback(e)});var jp=typeof navigator<"u"&&(!((Mp=navigator.scheduling)===null||Mp===void 0)&&Mp.isInputPending)?()=>navigator.scheduling.isInputPending():null,qj=rr.fromClass(class{constructor(e){this.view=e,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(e){let t=this.view.state.field(Yr.state).context;(t.updateViewport(e.view.viewport)||this.view.viewport.to>t.treeLen)&&this.scheduleWork(),(e.docChanged||e.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(t)}scheduleWork(){if(this.working)return;let{state:e}=this.view,t=e.field(Yr.state);(t.tree!=t.context.tree||!t.context.isDone(e.doc.length))&&(this.working=GC(this.work))}work(e){this.working=null;let t=Date.now();if(this.chunkEndn+1e3,o=i.context.work(()=>jp&&jp()||Date.now()>a,n+(l?0:1e5));this.chunkBudget-=Date.now()-t,(o||this.chunkBudget<=0)&&(i.context.takeTree(),this.view.dispatch({effects:Yr.setState.of(new So(i.context))})),this.chunkBudget>0&&!(o&&!l)&&this.scheduleWork(),this.checkAsyncSchedule(i.context)}checkAsyncSchedule(e){e.scheduleOn&&(this.workScheduled++,e.scheduleOn.then(()=>this.scheduleWork()).catch(t=>yr(this.view.state,t)).then(()=>this.workScheduled--),e.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),Ki=ct.define({combine(r){return r.length?r[0]:null},enables:r=>[Yr.state,qj,at.contentAttributes.compute([r],e=>{let t=e.facet(r);return t&&t.name?{"data-language":t.name}:{}})]}),ou=class{constructor(e,t=[]){this.language=e,this.support=t,this.extension=[e,t]}};var Qj=ct.define(),ea=ct.define({combine:r=>{if(!r.length)return" ";let e=r[0];if(!e||/\S/.test(e)||Array.from(e).some(t=>t!=e[0]))throw new Error("Invalid indent unit: "+JSON.stringify(r[0]));return e}});function Eo(r){let e=r.facet(ea);return e.charCodeAt(0)==9?r.tabSize*e.length:e.length}function ta(r,e){let t="",s=r.tabSize,n=r.facet(ea)[0];if(n==" "){for(;e>=s;)t+=" ",e-=s;n=" "}for(let i=0;i=e?Uj(r,t,e):null}var ai=class{constructor(e,t={}){this.state=e,this.options=t,this.unit=Eo(e)}lineAt(e,t=1){let s=this.state.doc.lineAt(e),{simulateBreak:n,simulateDoubleBreak:i}=this.options;return n!=null&&n>=s.from&&n<=s.to?i&&n==e?{text:"",from:e}:(t<0?n-1&&(i+=a-this.countColumn(s,s.search(/\S|$/))),i}countColumn(e,t=e.length){return ss(e,this.state.tabSize,t)}lineIndent(e,t=1){let{text:s,from:n}=this.lineAt(e,t),i=this.options.overrideIndentation;if(i){let a=i(n);if(a>-1)return a}return this.countColumn(s,s.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}},Hp=new kt;function Uj(r,e,t){let s=e.resolveStack(t),n=s.node.enterUnfinishedNodesBefore(t);if(n!=s.node){let i=[];for(let a=n;a!=s.node;a=a.parent)i.push(a);for(let a=i.length-1;a>=0;a--)s={node:i[a],next:s}}return YC(s,r,t)}function YC(r,e,t){for(let s=r;s;s=s.next){let n=Wj(s.node);if(n)return n(Wp.create(e,t,s))}return 0}function Vj(r){return r.pos==r.options.simulateBreak&&r.options.simulateDoubleBreak}function Wj(r){let e=r.type.prop(Hp);if(e)return e;let t=r.firstChild,s;if(t&&(s=t.type.prop(kt.closedBy))){let n=r.lastChild,i=n&&s.indexOf(n.name)>-1;return a=>KC(a,!0,1,void 0,i&&!Vj(a)?n.from:void 0)}return r.parent==null?Zj:null}function Zj(){return 0}var Wp=class r extends ai{constructor(e,t,s){super(e.state,e.options),this.base=e,this.pos=t,this.context=s}get node(){return this.context.node}static create(e,t,s){return new r(e,t,s)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(e){let t=this.state.doc.lineAt(e.from);for(;;){let s=e.resolve(t.from);for(;s.parent&&s.parent.from==s.from;)s=s.parent;if(zj(s,e))break;t=this.state.doc.lineAt(s.from)}return this.lineIndent(t.from)}continue(){return YC(this.context.next,this.base,this.pos)}};function zj(r,e){for(let t=e;t;t=t.parent)if(r==t)return!0;return!1}function Xj(r){let e=r.node,t=e.childAfter(e.from),s=e.lastChild;if(!t)return null;let n=r.options.simulateBreak,i=r.state.doc.lineAt(t.from),a=n==null||n<=i.from?i.to:Math.min(i.to,n);for(let l=t.to;;){let o=e.childAfter(l);if(!o||o==s)return null;if(!o.type.isSkipped)return o.fromKC(s,e,t,r)}function KC(r,e,t,s,n){let i=r.textAfter,a=i.match(/^\s*/)[0].length,l=s&&i.slice(a,a+s.length)==s||n==r.pos+a,o=e?Xj(r):null;return o?l?r.column(o.from):r.column(o.to):r.baseIndent+(l?0:r.unit*t)}var JC=r=>r.baseIndent;function cu({except:r,units:e=1}={}){return t=>{let s=r&&r.test(t.textAfter);return t.baseIndent+(s?0:e*t.unit)}}var Gj=200;function ew(){return Ut.transactionFilter.of(r=>{if(!r.docChanged||!r.isUserEvent("input.type")&&!r.isUserEvent("input.complete"))return r;let e=r.startState.languageDataAt("indentOnInput",r.startState.selection.main.head);if(!e.length)return r;let t=r.newDoc,{head:s}=r.newSelection.main,n=t.lineAt(s);if(s>n.from+Gj)return r;let i=t.sliceString(n.from,s);if(!e.some(u=>u.test(i)))return r;let{state:a}=r,l=-1,o=[];for(let{head:u}of a.selection.ranges){let c=a.doc.lineAt(u);if(c.from==l)continue;l=c.from;let p=uu(a,c.from);if(p==null)continue;let h=/^\s*/.exec(c.text)[0],f=ta(a,p);h!=f&&o.push({from:c.from,to:c.from+h.length,insert:f})}return o.length?[r,{changes:o,sequential:!0}]:r})}var tw=new kt;function rw(r){let e=r.firstChild,t=r.lastChild;return e&&e.tol.prop(Hi)==a.data:a?l=>l==a:void 0,this.style=$p(e.map(l=>({tag:l.tag,class:l.class||n(Object.assign({},l,{tag:null}))})),{all:i}).style,this.module=s?new nn(s):null,this.themeType=t.themeType}static define(e,t){return new r(e,t||{})}},Zp=ct.define(),nw=ct.define({combine(r){return r.length?[r[0]]:null}});function qp(r){let e=r.facet(Zp);return e.length?e:r.facet(nw)}function fu(r,e){let t=[Yj],s;return r instanceof Ji&&(r.module&&t.push(at.styleModule.of(r.module)),s=r.themeType),e?.fallback?t.push(nw.of(r)):s?t.push(Zp.computeN([at.darkTheme],n=>n.facet(at.darkTheme)==(s=="dark")?[r]:[])):t.push(Zp.of(r)),t}var zp=class{constructor(e){this.markCache=Object.create(null),this.tree=pr(e.state),this.decorations=this.buildDeco(e,qp(e.state)),this.decoratedTo=e.viewport.to}update(e){let t=pr(e.state),s=qp(e.state),n=s!=qp(e.startState),{viewport:i}=e.view,a=e.changes.mapPos(this.decoratedTo,1);t.length=i.to?(this.decorations=this.decorations.map(e.changes),this.decoratedTo=a):(t!=this.tree||e.viewportChanged||n)&&(this.tree=t,this.decorations=this.buildDeco(e.view,s),this.decoratedTo=i.to)}buildDeco(e,t){if(!t||!this.tree.length)return yt.none;let s=new In;for(let{from:n,to:i}of e.visibleRanges)UC(this.tree,t,(a,l,o)=>{s.add(a,l,this.markCache[o]||(this.markCache[o]=yt.mark({class:o})))},n,i);return s.finish()}},Yj=rn.high(rr.fromClass(zp,{decorations:r=>r.decorations})),sw=Ji.define([{tag:ke.meta,color:"#404740"},{tag:ke.link,textDecoration:"underline"},{tag:ke.heading,textDecoration:"underline",fontWeight:"bold"},{tag:ke.emphasis,fontStyle:"italic"},{tag:ke.strong,fontWeight:"bold"},{tag:ke.strikethrough,textDecoration:"line-through"},{tag:ke.keyword,color:"#708"},{tag:[ke.atom,ke.bool,ke.url,ke.contentSeparator,ke.labelName],color:"#219"},{tag:[ke.literal,ke.inserted],color:"#164"},{tag:[ke.string,ke.deleted],color:"#a11"},{tag:[ke.regexp,ke.escape,ke.special(ke.string)],color:"#e40"},{tag:ke.definition(ke.variableName),color:"#00f"},{tag:ke.local(ke.variableName),color:"#30a"},{tag:[ke.typeName,ke.namespace],color:"#085"},{tag:ke.className,color:"#167"},{tag:[ke.special(ke.variableName),ke.macroName],color:"#256"},{tag:ke.definition(ke.propertyName),color:"#00c"},{tag:ke.comment,color:"#940"},{tag:ke.invalid,color:"#f00"}]),Hj=at.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),iw=1e4,aw="()[]{}",ow=ct.define({combine(r){return kr(r,{afterCursor:!0,brackets:aw,maxScanDistance:iw,renderMatch:eq})}}),Kj=yt.mark({class:"cm-matchingBracket"}),Jj=yt.mark({class:"cm-nonmatchingBracket"});function eq(r){let e=[],t=r.matched?Kj:Jj;return e.push(t.range(r.start.from,r.start.to)),r.end&&e.push(t.range(r.end.from,r.end.to)),e}var tq=Yt.define({create(){return yt.none},update(r,e){if(!e.docChanged&&!e.selection)return r;let t=[],s=e.state.facet(ow);for(let n of e.state.selection.ranges){if(!n.empty)continue;let i=bn(e.state,n.head,-1,s)||n.head>0&&bn(e.state,n.head-1,1,s)||s.afterCursor&&(bn(e.state,n.head,1,s)||n.headat.decorations.from(r)}),rq=[tq,Hj];function lw(r={}){return[ow.of(r),rq]}var nq=new kt;function Xp(r,e,t){let s=r.prop(e<0?kt.openedBy:kt.closedBy);if(s)return s;if(r.name.length==1){let n=t.indexOf(r.name);if(n>-1&&n%2==(e<0?1:0))return[t[n+e]]}return null}function Gp(r){let e=r.type.prop(nq);return e?e(r.node):r}function bn(r,e,t,s={}){let n=s.maxScanDistance||iw,i=s.brackets||aw,a=pr(r),l=a.resolveInner(e,t);for(let o=l;o;o=o.parent){let u=Xp(o.type,t,i);if(u&&o.from0?e>=c.from&&ec.from&&e<=c.to))return sq(r,e,t,o,c,u,i)}}return iq(r,e,t,a,l.type,n,i)}function sq(r,e,t,s,n,i,a){let l=s.parent,o={from:n.from,to:n.to},u=0,c=l?.cursor();if(c&&(t<0?c.childBefore(s.from):c.childAfter(s.to)))do if(t<0?c.to<=s.from:c.from>=s.to){if(u==0&&i.indexOf(c.type.name)>-1&&c.from0)return null;let u={from:t<0?e-1:e,to:t>0?e+1:e},c=r.doc.iterRange(e,t>0?r.doc.length:0),p=0;for(let h=0;!c.next().done&&h<=i;){let f=c.value;t<0&&(h+=f.length);let d=e+h*t;for(let m=t>0?0:f.length-1,g=t>0?f.length:-1;m!=g;m+=t){let y=a.indexOf(f[m]);if(!(y<0||s.resolveInner(d+m,1).type!=n))if(y%2==0==t>0)p++;else{if(p==1)return{start:u,end:{from:d+m,to:d+m+1},matched:y>>1==o>>1};p--}}t>0&&(h+=f.length)}return c.done?{start:u,matched:!1}:null}var aq=Object.create(null),ZC=[Ar.none];var zC=[],XC=Object.create(null),oq=Object.create(null);for(let[r,e]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])oq[r]=lq(aq,e);function Qp(r,e){zC.indexOf(r)>-1||(zC.push(r),console.warn(e))}function lq(r,e){let t=[];for(let l of e.split(" ")){let o=[];for(let u of l.split(".")){let c=r[u]||ke[u];c?typeof c=="function"?o.length?o=o.map(c):Qp(u,`Modifier ${u} used at start of tag`):o.length?Qp(u,`Tag ${u} used as modifier`):o=Array.isArray(c)?c:[c]:Qp(u,`Unknown highlighting tag ${u}`)}for(let u of o)t.push(u)}if(!t.length)return 0;let s=e.replace(/ /g,"_"),n=s+" "+t.map(l=>l.id),i=XC[n];if(i)return i.id;let a=XC[n]=Ar.define({id:ZC.length,name:s,props:[iu({[s]:t})]});return ZC.push(a),a.id}var UG={rtl:yt.mark({class:"cm-iso",inclusive:!0,attributes:{dir:"rtl"},bidiIsolate:Zt.RTL}),ltr:yt.mark({class:"cm-iso",inclusive:!0,attributes:{dir:"ltr"},bidiIsolate:Zt.LTR}),auto:yt.mark({class:"cm-iso",inclusive:!0,attributes:{dir:"auto"},bidiIsolate:null})};var rh=r=>{let{state:e}=r,t=e.doc.lineAt(e.selection.main.from),s=sh(r.state,t.from);return s.line?uq(r):s.block?fq(r):!1};function nh(r,e){return({state:t,dispatch:s})=>{if(t.readOnly)return!1;let n=r(e,t);return n?(s(t.update(n)),!0):!1}}var uq=nh(dq,0);var cq=nh(gw,0);var fq=nh((r,e)=>gw(r,e,hq(e)),0);function sh(r,e){let t=r.languageDataAt("commentTokens",e);return t.length?t[0]:{}}var Co=50;function pq(r,{open:e,close:t},s,n){let i=r.sliceDoc(s-Co,s),a=r.sliceDoc(n,n+Co),l=/\s*$/.exec(i)[0].length,o=/^\s*/.exec(a)[0].length,u=i.length-l;if(i.slice(u-e.length,u)==e&&a.slice(o,o+t.length)==t)return{open:{pos:s-l,margin:l&&1},close:{pos:n+o,margin:o&&1}};let c,p;n-s<=2*Co?c=p=r.sliceDoc(s,n):(c=r.sliceDoc(s,s+Co),p=r.sliceDoc(n-Co,n));let h=/^\s*/.exec(c)[0].length,f=/\s*$/.exec(p)[0].length,d=p.length-f-t.length;return c.slice(h,h+e.length)==e&&p.slice(d,d+t.length)==t?{open:{pos:s+h+e.length,margin:/\s/.test(c.charAt(h+e.length))?1:0},close:{pos:n-f-t.length,margin:/\s/.test(p.charAt(d-1))?1:0}}:null}function hq(r){let e=[];for(let t of r.selection.ranges){let s=r.doc.lineAt(t.from),n=t.to<=s.to?s:r.doc.lineAt(t.to),i=e.length-1;i>=0&&e[i].to>s.from?e[i].to=n.to:e.push({from:s.from+/^\s*/.exec(s.text)[0].length,to:n.to})}return e}function gw(r,e,t=e.selection.ranges){let s=t.map(i=>sh(e,i.from).block);if(!s.every(i=>i))return null;let n=t.map((i,a)=>pq(e,s[a],i.from,i.to));if(r!=2&&!n.every(i=>i))return{changes:e.changes(t.map((i,a)=>n[a]?[]:[{from:i.from,insert:s[a].open+" "},{from:i.to,insert:" "+s[a].close}]))};if(r!=1&&n.some(i=>i)){let i=[];for(let a=0,l;an&&(i==a||a>p.from)){n=p.from;let h=/^\s*/.exec(p.text)[0].length,f=h==p.length,d=p.text.slice(h,h+u.length)==u?h:-1;hi.comment<0&&(!i.empty||i.single))){let i=[];for(let{line:l,token:o,indent:u,empty:c,single:p}of s)(p||!c)&&i.push({from:l.from+u,insert:o+" "});let a=e.changes(i);return{changes:a,selection:e.selection.map(a,1)}}else if(r!=1&&s.some(i=>i.comment>=0)){let i=[];for(let{line:a,comment:l,token:o}of s)if(l>=0){let u=a.from+l,c=u+o.length;a.text[c-a.from]==" "&&c++,i.push({from:u,to:c})}return{changes:i}}return null}var Jp=Mr.define(),mq=Mr.define(),gq=ct.define(),yw=ct.define({combine(r){return kr(r,{minDepth:100,newGroupDelay:500,joinToEvent:(e,t)=>t},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(e,t)=>(s,n)=>e(s,n)||t(s,n)})}}),xw=Yt.define({create(){return oi.empty},update(r,e){let t=e.state.facet(yw),s=e.annotation(Jp);if(s){let o=vn.fromTransaction(e,s.selection),u=s.side,c=u==0?r.undone:r.done;return o?c=hu(c,c.length,t.minDepth,o):c=Ow(c,e.startState.selection),new oi(u==0?s.rest:c,u==0?c:s.rest)}let n=e.annotation(mq);if((n=="full"||n=="before")&&(r=r.isolate()),e.annotation(lr.addToHistory)===!1)return e.changes.empty?r:r.addMapping(e.changes.desc);let i=vn.fromTransaction(e),a=e.annotation(lr.time),l=e.annotation(lr.userEvent);return i?r=r.addChanges(i,a,l,t,e):e.selection&&(r=r.addSelection(e.startState.selection,a,l,t.newGroupDelay)),(n=="full"||n=="after")&&(r=r.isolate()),r},toJSON(r){return{done:r.done.map(e=>e.toJSON()),undone:r.undone.map(e=>e.toJSON())}},fromJSON(r){return new oi(r.done.map(vn.fromJSON),r.undone.map(vn.fromJSON))}});function bw(r={}){return[xw,yw.of(r),at.domEventHandlers({beforeinput(e,t){let s=e.inputType=="historyUndo"?mu:e.inputType=="historyRedo"?wo:null;return s?(e.preventDefault(),s(t)):!1}})]}function du(r,e){return function({state:t,dispatch:s}){if(!e&&t.readOnly)return!1;let n=t.field(xw,!1);if(!n)return!1;let i=n.pop(r,t,e);return i?(s(i),!0):!1}}var mu=du(0,!1),wo=du(1,!1),yq=du(0,!0),xq=du(1,!0);var vn=class r{constructor(e,t,s,n,i){this.changes=e,this.effects=t,this.mapped=s,this.startSelection=n,this.selectionsAfter=i}setSelAfter(e){return new r(this.changes,this.effects,this.mapped,this.startSelection,e)}toJSON(){var e,t,s;return{changes:(e=this.changes)===null||e===void 0?void 0:e.toJSON(),mapped:(t=this.mapped)===null||t===void 0?void 0:t.toJSON(),startSelection:(s=this.startSelection)===null||s===void 0?void 0:s.toJSON(),selectionsAfter:this.selectionsAfter.map(n=>n.toJSON())}}static fromJSON(e){return new r(e.changes&&Dr.fromJSON(e.changes),[],e.mapped&&ns.fromJSON(e.mapped),e.startSelection&&Ze.fromJSON(e.startSelection),e.selectionsAfter.map(Ze.fromJSON))}static fromTransaction(e,t){let s=un;for(let n of e.startState.facet(gq)){let i=n(e);i.length&&(s=s.concat(i))}return!s.length&&e.changes.empty?null:new r(e.changes.invert(e.startState.doc),s,void 0,t||e.startState.selection,un)}static selection(e){return new r(void 0,un,void 0,void 0,e)}};function hu(r,e,t,s){let n=e+1>t+20?e-t-1:0,i=r.slice(n,e);return i.push(s),i}function bq(r,e){let t=[],s=!1;return r.iterChangedRanges((n,i)=>t.push(n,i)),e.iterChangedRanges((n,i,a,l)=>{for(let o=0;o=u&&a<=c&&(s=!0)}}),s}function vq(r,e){return r.ranges.length==e.ranges.length&&r.ranges.filter((t,s)=>t.empty!=e.ranges[s].empty).length===0}function vw(r,e){return r.length?e.length?r.concat(e):r:e}var un=[],Oq=200;function Ow(r,e){if(r.length){let t=r[r.length-1],s=t.selectionsAfter.slice(Math.max(0,t.selectionsAfter.length-Oq));return s.length&&s[s.length-1].eq(e)?r:(s.push(e),hu(r,r.length-1,1e9,t.setSelAfter(s)))}else return[vn.selection([e])]}function Sq(r){let e=r[r.length-1],t=r.slice();return t[r.length-1]=e.setSelAfter(e.selectionsAfter.slice(0,e.selectionsAfter.length-1)),t}function Kp(r,e){if(!r.length)return r;let t=r.length,s=un;for(;t;){let n=Eq(r[t-1],e,s);if(n.changes&&!n.changes.empty||n.effects.length){let i=r.slice(0,t);return i[t-1]=n,i}else e=n.mapped,t--,s=n.selectionsAfter}return s.length?[vn.selection(s)]:un}function Eq(r,e,t){let s=vw(r.selectionsAfter.length?r.selectionsAfter.map(l=>l.map(e)):un,t);if(!r.changes)return vn.selection(s);let n=r.changes.map(e),i=e.mapDesc(r.changes,!0),a=r.mapped?r.mapped.composeDesc(i):i;return new vn(n,wt.mapEffects(r.effects,e),a,r.startSelection.map(i),s)}var Cq=/^(input\.type|delete)($|\.)/,oi=class r{constructor(e,t,s=0,n=void 0){this.done=e,this.undone=t,this.prevTime=s,this.prevUserEvent=n}isolate(){return this.prevTime?new r(this.done,this.undone):this}addChanges(e,t,s,n,i){let a=this.done,l=a[a.length-1];return l&&l.changes&&!l.changes.empty&&e.changes&&(!s||Cq.test(s))&&(!l.selectionsAfter.length&&t-this.prevTime0&&t-this.prevTimet.empty?r.moveByChar(t,e):gu(t,e))}function Pr(r){return r.textDirectionAt(r.state.selection.main.head)==Zt.LTR}var Cw=r=>Ew(r,!Pr(r)),ww=r=>Ew(r,Pr(r));function kw(r,e){return On(r,t=>t.empty?r.moveByGroup(t,e):gu(t,e))}var wq=r=>kw(r,!Pr(r)),kq=r=>kw(r,Pr(r));var YG=typeof Intl<"u"&&Intl.Segmenter?new Intl.Segmenter(void 0,{granularity:"word"}):null;function Aq(r,e,t){if(e.type.prop(t))return!0;let s=e.to-e.from;return s&&(s>2||/[^\s,.;:]/.test(r.sliceDoc(e.from,e.to)))||e.firstChild}function yu(r,e,t){let s=pr(r).resolveInner(e.head),n=t?kt.closedBy:kt.openedBy;for(let o=e.head;;){let u=t?s.childAfter(o):s.childBefore(o);if(!u)break;Aq(r,u,n)?s=u:o=t?u.to:u.from}let i=s.type.prop(n),a,l;return i&&(a=t?bn(r,s.from,1):bn(r,s.to,-1))&&a.matched?l=t?a.end.to:a.end.from:l=t?s.to:s.from,Ze.cursor(l,t?-1:1)}var Pq=r=>On(r,e=>yu(r.state,e,!Pr(r))),Tq=r=>On(r,e=>yu(r.state,e,Pr(r)));function Aw(r,e){return On(r,t=>{if(!t.empty)return gu(t,e);let s=r.moveVertically(t,e);return s.head!=t.head?s:r.moveToLineBoundary(t,e)})}var Pw=r=>Aw(r,!1),Tw=r=>Aw(r,!0);function Dw(r){let e=r.scrollDOM.clientHeighta.empty?r.moveVertically(a,e,t.height):gu(a,e));if(n.eq(s.selection))return!1;let i;if(t.selfScroll){let a=r.coordsAtPos(s.selection.main.head),l=r.scrollDOM.getBoundingClientRect(),o=l.top+t.marginTop,u=l.bottom-t.marginBottom;a&&a.top>o&&a.bottom_w(r,!1),eh=r=>_w(r,!0);function _s(r,e,t){let s=r.lineBlockAt(e.head),n=r.moveToLineBoundary(e,t);if(n.head==e.head&&n.head!=(t?s.to:s.from)&&(n=r.moveToLineBoundary(e,t,!1)),!t&&n.head==s.from&&s.length){let i=/^\s*/.exec(r.state.sliceDoc(s.from,Math.min(s.from+100,s.to)))[0].length;i&&e.head!=s.from+i&&(n=Ze.cursor(s.from+i))}return n}var Dq=r=>On(r,e=>_s(r,e,!0)),_q=r=>On(r,e=>_s(r,e,!1)),Iq=r=>On(r,e=>_s(r,e,!Pr(r))),Fq=r=>On(r,e=>_s(r,e,Pr(r))),Rq=r=>On(r,e=>Ze.cursor(r.lineBlockAt(e.head).from,1)),Bq=r=>On(r,e=>Ze.cursor(r.lineBlockAt(e.head).to,-1));function Nq(r,e,t){let s=!1,n=ra(r.selection,i=>{let a=bn(r,i.head,-1)||bn(r,i.head,1)||i.head>0&&bn(r,i.head-1,1)||i.headNq(r,e,!1);function cn(r,e){let t=ra(r.state.selection,s=>{let n=e(s);return Ze.range(s.anchor,n.head,n.goalColumn,n.bidiLevel||void 0)});return t.eq(r.state.selection)?!1:(r.dispatch(Qn(r.state,t)),!0)}function Iw(r,e){return cn(r,t=>r.moveByChar(t,e))}var Fw=r=>Iw(r,!Pr(r)),Rw=r=>Iw(r,Pr(r));function Bw(r,e){return cn(r,t=>r.moveByGroup(t,e))}var $q=r=>Bw(r,!Pr(r)),Mq=r=>Bw(r,Pr(r));var jq=r=>cn(r,e=>yu(r.state,e,!Pr(r))),qq=r=>cn(r,e=>yu(r.state,e,Pr(r)));function Nw(r,e){return cn(r,t=>r.moveVertically(t,e))}var Lw=r=>Nw(r,!1),$w=r=>Nw(r,!0);function Mw(r,e){return cn(r,t=>r.moveVertically(t,e,Dw(r).height))}var cw=r=>Mw(r,!1),fw=r=>Mw(r,!0),Qq=r=>cn(r,e=>_s(r,e,!0)),Uq=r=>cn(r,e=>_s(r,e,!1)),Vq=r=>cn(r,e=>_s(r,e,!Pr(r))),Wq=r=>cn(r,e=>_s(r,e,Pr(r))),Zq=r=>cn(r,e=>Ze.cursor(r.lineBlockAt(e.head).from)),zq=r=>cn(r,e=>Ze.cursor(r.lineBlockAt(e.head).to)),pw=({state:r,dispatch:e})=>(e(Qn(r,{anchor:0})),!0),hw=({state:r,dispatch:e})=>(e(Qn(r,{anchor:r.doc.length})),!0),dw=({state:r,dispatch:e})=>(e(Qn(r,{anchor:r.selection.main.anchor,head:0})),!0),mw=({state:r,dispatch:e})=>(e(Qn(r,{anchor:r.selection.main.anchor,head:r.doc.length})),!0),Xq=({state:r,dispatch:e})=>(e(r.update({selection:{anchor:0,head:r.doc.length},userEvent:"select"})),!0),Gq=({state:r,dispatch:e})=>{let t=xu(r).map(({from:s,to:n})=>Ze.range(s,Math.min(n+1,r.doc.length)));return e(r.update({selection:Ze.create(t),userEvent:"select"})),!0},Yq=({state:r,dispatch:e})=>{let t=ra(r.selection,s=>{var n;let i=pr(r).resolveStack(s.from,1);for(let a=i;a;a=a.next){let{node:l}=a;if((l.from=s.to||l.to>s.to&&l.from<=s.from)&&(!((n=l.parent)===null||n===void 0)&&n.parent))return Ze.range(l.to,l.from)}return s});return e(Qn(r,t)),!0},Hq=({state:r,dispatch:e})=>{let t=r.selection,s=null;return t.ranges.length>1?s=Ze.create([t.main]):t.main.empty||(s=Ze.create([Ze.cursor(t.main.head)])),s?(e(Qn(r,s)),!0):!1};function ko(r,e){if(r.state.readOnly)return!1;let t="delete.selection",{state:s}=r,n=s.changeByRange(i=>{let{from:a,to:l}=i;if(a==l){let o=e(i);oa&&(t="delete.forward",o=pu(r,o,!0)),a=Math.min(a,o),l=Math.max(l,o)}else a=pu(r,a,!1),l=pu(r,l,!0);return a==l?{range:i}:{changes:{from:a,to:l},range:Ze.cursor(a,an(r)))s.between(e,e,(n,i)=>{ne&&(e=t?i:n)});return e}var jw=(r,e,t)=>ko(r,s=>{let n=s.from,{state:i}=r,a=i.doc.lineAt(n),l,o;if(t&&!e&&n>a.from&&njw(r,!1,!0);var qw=r=>jw(r,!0,!1),Qw=(r,e)=>ko(r,t=>{let s=t.head,{state:n}=r,i=n.doc.lineAt(s),a=n.charCategorizer(s);for(let l=null;;){if(s==(e?i.to:i.from)){s==t.head&&i.number!=(e?n.doc.lines:1)&&(s+=e?1:-1);break}let o=ur(i.text,s-i.from,e)+i.from,u=i.text.slice(Math.min(s,o)-i.from,Math.max(s,o)-i.from),c=a(u);if(l!=null&&c!=l)break;(u!=" "||s!=t.head)&&(l=c),s=o}return s}),Uw=r=>Qw(r,!1),Kq=r=>Qw(r,!0),Jq=r=>ko(r,e=>{let t=r.lineBlockAt(e.head).to;return e.headko(r,e=>{let t=r.moveToLineBoundary(e,!1).head;return e.head>t?t:Math.max(0,e.head-1)}),t5=r=>ko(r,e=>{let t=r.moveToLineBoundary(e,!0).head;return e.head{if(r.readOnly)return!1;let t=r.changeByRange(s=>({changes:{from:s.from,to:s.to,insert:Ft.of(["",""])},range:Ze.cursor(s.from)}));return e(r.update(t,{scrollIntoView:!0,userEvent:"input"})),!0},n5=({state:r,dispatch:e})=>{if(r.readOnly)return!1;let t=r.changeByRange(s=>{if(!s.empty||s.from==0||s.from==r.doc.length)return{range:s};let n=s.from,i=r.doc.lineAt(n),a=n==i.from?n-1:ur(i.text,n-i.from,!1)+i.from,l=n==i.to?n+1:ur(i.text,n-i.from,!0)+i.from;return{changes:{from:a,to:l,insert:r.doc.slice(n,l).append(r.doc.slice(a,n))},range:Ze.cursor(l)}});return t.changes.empty?!1:(e(r.update(t,{scrollIntoView:!0,userEvent:"move.character"})),!0)};function xu(r){let e=[],t=-1;for(let s of r.selection.ranges){let n=r.doc.lineAt(s.from),i=r.doc.lineAt(s.to);if(!s.empty&&s.to==i.from&&(i=r.doc.lineAt(s.to-1)),t>=n.number){let a=e[e.length-1];a.to=i.to,a.ranges.push(s)}else e.push({from:n.from,to:i.to,ranges:[s]});t=i.number+1}return e}function Vw(r,e,t){if(r.readOnly)return!1;let s=[],n=[];for(let i of xu(r)){if(t?i.to==r.doc.length:i.from==0)continue;let a=r.doc.lineAt(t?i.to+1:i.from-1),l=a.length+1;if(t){s.push({from:i.to,to:a.to},{from:i.from,insert:a.text+r.lineBreak});for(let o of i.ranges)n.push(Ze.range(Math.min(r.doc.length,o.anchor+l),Math.min(r.doc.length,o.head+l)))}else{s.push({from:a.from,to:i.from},{from:i.to,insert:r.lineBreak+a.text});for(let o of i.ranges)n.push(Ze.range(o.anchor-l,o.head-l))}}return s.length?(e(r.update({changes:s,scrollIntoView:!0,selection:Ze.create(n,r.selection.mainIndex),userEvent:"move.line"})),!0):!1}var s5=({state:r,dispatch:e})=>Vw(r,e,!1),i5=({state:r,dispatch:e})=>Vw(r,e,!0);function Ww(r,e,t){if(r.readOnly)return!1;let s=[];for(let n of xu(r))t?s.push({from:n.from,insert:r.doc.slice(n.from,n.to)+r.lineBreak}):s.push({from:n.to,insert:r.lineBreak+r.doc.slice(n.from,n.to)});return e(r.update({changes:s,scrollIntoView:!0,userEvent:"input.copyline"})),!0}var a5=({state:r,dispatch:e})=>Ww(r,e,!1),o5=({state:r,dispatch:e})=>Ww(r,e,!0),l5=r=>{if(r.state.readOnly)return!1;let{state:e}=r,t=e.changes(xu(e).map(({from:n,to:i})=>(n>0?n--:i{let i;if(r.lineWrapping){let a=r.lineBlockAt(n.head),l=r.coordsAtPos(n.head,n.assoc||1);l&&(i=a.bottom+r.documentTop-l.bottom+r.defaultLineHeight/2)}return r.moveVertically(n,!0,i)}).map(t);return r.dispatch({changes:t,selection:s,scrollIntoView:!0,userEvent:"delete.line"}),!0};function u5(r,e){if(/\(\)|\[\]|\{\}/.test(r.sliceDoc(e-1,e+1)))return{from:e,to:e};let t=pr(r).resolveInner(e),s=t.childBefore(e),n=t.childAfter(e),i;return s&&n&&s.to<=e&&n.from>=e&&(i=s.type.prop(kt.closedBy))&&i.indexOf(n.name)>-1&&r.doc.lineAt(s.to).from==r.doc.lineAt(n.from).from&&!/\S/.test(r.sliceDoc(s.to,n.from))?{from:s.to,to:n.from}:null}var c5=Zw(!1),f5=Zw(!0);function Zw(r){return({state:e,dispatch:t})=>{if(e.readOnly)return!1;let s=e.changeByRange(n=>{let{from:i,to:a}=n,l=e.doc.lineAt(i),o=!r&&i==a&&u5(e,i);r&&(i=a=(a<=l.to?l:e.doc.lineAt(a)).to);let u=new ai(e,{simulateBreak:i,simulateDoubleBreak:!!o}),c=uu(u,i);for(c==null&&(c=ss(/^\s*/.exec(e.doc.lineAt(i).text)[0],e.tabSize));al.from&&i{let n=[];for(let a=s.from;a<=s.to;){let l=r.doc.lineAt(a);l.number>t&&(s.empty||s.to>l.from)&&(e(l,n,s),t=l.number),a=l.to+1}let i=r.changes(n);return{changes:n,range:Ze.range(i.mapPos(s.anchor,1),i.mapPos(s.head,1))}})}var p5=({state:r,dispatch:e})=>{if(r.readOnly)return!1;let t=Object.create(null),s=new ai(r,{overrideIndentation:i=>{let a=t[i];return a??-1}}),n=ih(r,(i,a,l)=>{let o=uu(s,i.from);if(o==null)return;/\S/.test(i.text)||(o=0);let u=/^\s*/.exec(i.text)[0],c=ta(r,o);(u!=c||l.fromr.readOnly?!1:(e(r.update(ih(r,(t,s)=>{s.push({from:t.from,insert:r.facet(ea)})}),{userEvent:"input.indent"})),!0),zw=({state:r,dispatch:e})=>r.readOnly?!1:(e(r.update(ih(r,(t,s)=>{let n=/^\s*/.exec(t.text)[0];if(!n)return;let i=ss(n,r.tabSize),a=0,l=ta(r,Math.max(0,i-Eo(r)));for(;a({mac:r.key,run:r.run,shift:r.shift}))),Xw=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:Pq,shift:jq},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:Tq,shift:qq},{key:"Alt-ArrowUp",run:s5},{key:"Shift-Alt-ArrowUp",run:a5},{key:"Alt-ArrowDown",run:i5},{key:"Shift-Alt-ArrowDown",run:o5},{key:"Escape",run:Hq},{key:"Mod-Enter",run:f5},{key:"Alt-l",mac:"Ctrl-l",run:Gq},{key:"Mod-i",run:Yq,preventDefault:!0},{key:"Mod-[",run:zw},{key:"Mod-]",run:bu},{key:"Mod-Alt-\\",run:p5},{key:"Shift-Mod-k",run:l5},{key:"Shift-Mod-\\",run:Lq},{key:"Mod-/",run:rh},{key:"Alt-A",run:cq}].concat(d5),Gw={key:"Tab",run:bu,shift:zw};function Vt(){var r=arguments[0];typeof r=="string"&&(r=document.createElement(r));var e=1,t=arguments[1];if(t&&typeof t=="object"&&t.nodeType==null&&!Array.isArray(t)){for(var s in t)if(Object.prototype.hasOwnProperty.call(t,s)){var n=t[s];typeof n=="string"?r.setAttribute(s,n):n!=null&&(r[s]=n)}e++}for(;er.normalize("NFKD"):r=>r,Fs=class{constructor(e,t,s=0,n=e.length,i,a){this.test=a,this.value={from:0,to:0},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=e.iterRange(s,n),this.bufferStart=s,this.normalize=i?l=>i(Hw(l)):Hw,this.query=this.normalize(t)}peek(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return-1;this.bufferPos=0,this.buffer=this.iter.value}return gr(this.buffer,this.bufferPos)}next(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}nextOverlapping(){for(;;){let e=this.peek();if(e<0)return this.done=!0,this;let t=za(e),s=this.bufferStart+this.bufferPos;this.bufferPos+=$r(e);let n=this.normalize(t);for(let i=0,a=s;;i++){let l=n.charCodeAt(i),o=this.match(l,a,this.bufferPos+this.bufferStart);if(i==n.length-1){if(o)return this.value=o,this;break}a==s&&ithis.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}nextLine(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}next(){for(let e=this.matchPos-this.curLineStart;;){this.re.lastIndex=e;let t=this.matchPos<=this.to&&this.re.exec(this.curLine);if(t){let s=this.curLineStart+t.index,n=s+t[0].length;if(this.matchPos=wu(this.text,n+(s==n?1:0)),s==this.curLineStart+this.curLine.length&&this.nextLine(),(sthis.value.to)&&(!this.test||this.test(s,n,t)))return this.value={from:s,to:n,match:t},this;e=this.matchPos-this.curLineStart}else if(this.curLineStart+this.curLine.length=s||n.to<=t){let l=new r(t,e.sliceString(t,s));return ah.set(e,l),l}if(n.from==t&&n.to==s)return n;let{text:i,from:a}=n;return a>t&&(i=e.sliceString(t,a)+i,a=t),n.to=this.to?this.to:this.text.lineAt(e).to}next(){for(;;){let e=this.re.lastIndex=this.matchPos-this.flat.from,t=this.re.exec(this.flat.text);if(t&&!t[0]&&t.index==e&&(this.re.lastIndex=e+1,t=this.re.exec(this.flat.text)),t){let s=this.flat.from+t.index,n=s+t[0].length;if((this.flat.to>=this.to||t.index+t[0].length<=this.flat.text.length-10)&&(!this.test||this.test(s,n,t)))return this.value={from:s,to:n,match:t},this.matchPos=wu(this.text,n+(s==n?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=Eu.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+this.flat.text.length*2))}}};typeof Symbol<"u"&&(Su.prototype[Symbol.iterator]=Cu.prototype[Symbol.iterator]=function(){return this});function m5(r){try{return new RegExp(r,ph),!0}catch{return!1}}function wu(r,e){if(e>=r.length)return e;let t=r.lineAt(e),s;for(;e=56320&&s<57344;)e++;return e}function oh(r){let e=String(r.state.doc.lineAt(r.state.selection.main.head).number),t=Vt("input",{class:"cm-textfield",name:"line",value:e}),s=Vt("form",{class:"cm-gotoLine",onkeydown:i=>{i.keyCode==27?(i.preventDefault(),r.dispatch({effects:ku.of(!1)}),r.focus()):i.keyCode==13&&(i.preventDefault(),n())},onsubmit:i=>{i.preventDefault(),n()}},Vt("label",r.state.phrase("Go to line"),": ",t)," ",Vt("button",{class:"cm-button",type:"submit"},r.state.phrase("go")));function n(){let i=/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(t.value);if(!i)return;let{state:a}=r,l=a.doc.lineAt(a.selection.main.head),[,o,u,c,p]=i,h=c?+c.slice(1):0,f=u?+u:l.number;if(u&&p){let g=f/100;o&&(g=g*(o=="-"?-1:1)+l.number/a.doc.lines),f=Math.round(a.doc.lines*g)}else u&&o&&(f=f*(o=="-"?-1:1)+l.number);let d=a.doc.line(Math.max(1,Math.min(a.doc.lines,f))),m=Ze.cursor(d.from+Math.max(0,Math.min(h,d.length)));r.dispatch({effects:[ku.of(!1),at.scrollIntoView(m.from,{y:"center"})],selection:m}),r.focus()}return{dom:s}}var ku=wt.define(),Kw=Yt.define({create(){return!0},update(r,e){for(let t of e.effects)t.is(ku)&&(r=t.value);return r},provide:r=>ri.from(r,e=>e?oh:null)}),g5=r=>{let e=zi(r,oh);if(!e){let t=[ku.of(!0)];r.state.field(Kw,!1)==null&&t.push(wt.appendConfig.of([Kw,y5])),r.dispatch({effects:t}),e=zi(r,oh)}return e&&e.dom.querySelector("input").select(),!0},y5=at.baseTheme({".cm-panel.cm-gotoLine":{padding:"2px 6px 4px","& label":{fontSize:"80%"}}}),x5={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},rk=ct.define({combine(r){return kr(r,x5,{highlightWordAroundCursor:(e,t)=>e||t,minSelectionLength:Math.min,maxMatches:Math.min})}});function nk(r){let e=[E5,S5];return r&&e.push(rk.of(r)),e}var b5=yt.mark({class:"cm-selectionMatch"}),v5=yt.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function Jw(r,e,t,s){return(t==0||r(e.sliceDoc(t-1,t))!=Wt.Word)&&(s==e.doc.length||r(e.sliceDoc(s,s+1))!=Wt.Word)}function O5(r,e,t,s){return r(e.sliceDoc(t,t+1))==Wt.Word&&r(e.sliceDoc(s-1,s))==Wt.Word}var S5=rr.fromClass(class{constructor(r){this.decorations=this.getDeco(r)}update(r){(r.selectionSet||r.docChanged||r.viewportChanged)&&(this.decorations=this.getDeco(r.view))}getDeco(r){let e=r.state.facet(rk),{state:t}=r,s=t.selection;if(s.ranges.length>1)return yt.none;let n=s.main,i,a=null;if(n.empty){if(!e.highlightWordAroundCursor)return yt.none;let o=t.wordAt(n.head);if(!o)return yt.none;a=t.charCategorizer(n.head),i=t.sliceDoc(o.from,o.to)}else{let o=n.to-n.from;if(o200)return yt.none;if(e.wholeWords){if(i=t.sliceDoc(n.from,n.to),a=t.charCategorizer(n.head),!(Jw(a,t,n.from,n.to)&&O5(a,t,n.from,n.to)))return yt.none}else if(i=t.sliceDoc(n.from,n.to),!i)return yt.none}let l=[];for(let o of r.visibleRanges){let u=new Fs(t.doc,i,o.from,o.to);for(;!u.next().done;){let{from:c,to:p}=u.value;if((!a||Jw(a,t,c,p))&&(n.empty&&c<=n.from&&p>=n.to?l.push(v5.range(c,p)):(c>=n.to||p<=n.from)&&l.push(b5.range(c,p)),l.length>e.maxMatches))return yt.none}}return yt.set(l)}},{decorations:r=>r.decorations}),E5=at.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}}),C5=({state:r,dispatch:e})=>{let{selection:t}=r,s=Ze.create(t.ranges.map(n=>r.wordAt(n.head)||Ze.cursor(n.head)),t.mainIndex);return s.eq(t)?!1:(e(r.update({selection:s})),!0)};function w5(r,e){let{main:t,ranges:s}=r.selection,n=r.wordAt(t.head),i=n&&n.from==t.from&&n.to==t.to;for(let a=!1,l=new Fs(r.doc,e,s[s.length-1].to);;)if(l.next(),l.done){if(a)return null;l=new Fs(r.doc,e,0,Math.max(0,s[s.length-1].from-1)),a=!0}else{if(a&&s.some(o=>o.from==l.value.from))continue;if(i){let o=r.wordAt(l.value.from);if(!o||o.from!=l.value.from||o.to!=l.value.to)continue}return l.value}}var k5=({state:r,dispatch:e})=>{let{ranges:t}=r.selection;if(t.some(i=>i.from===i.to))return C5({state:r,dispatch:e});let s=r.sliceDoc(t[0].from,t[0].to);if(r.selection.ranges.some(i=>r.sliceDoc(i.from,i.to)!=s))return!1;let n=w5(r,s);return n?(e(r.update({selection:r.selection.addRange(Ze.range(n.from,n.to),!1),effects:at.scrollIntoView(n.to)})),!0):!1},ia=ct.define({combine(r){return kr(r,{top:!1,caseSensitive:!1,literal:!1,regexp:!1,wholeWord:!1,createPanel:e=>new fh(e),scrollToMatch:e=>at.scrollIntoView(e)})}});var Au=class{constructor(e){this.search=e.search,this.caseSensitive=!!e.caseSensitive,this.literal=!!e.literal,this.regexp=!!e.regexp,this.replace=e.replace||"",this.valid=!!this.search&&(!this.regexp||m5(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!e.wholeWord}unquote(e){return this.literal?e:e.replace(/\\([nrt\\])/g,(t,s)=>s=="n"?` -`:s=="r"?"\r":s=="t"?" ":"\\")}eq(e){return this.search==e.search&&this.replace==e.replace&&this.caseSensitive==e.caseSensitive&&this.regexp==e.regexp&&this.wholeWord==e.wholeWord}create(){return this.regexp?new uh(this):new lh(this)}getCursor(e,t=0,s){let n=e.doc?e:Ut.create({doc:e});return s==null&&(s=n.doc.length),this.regexp?sa(this,n,t,s):na(this,n,t,s)}},Pu=class{constructor(e){this.spec=e}};function na(r,e,t,s){return new Fs(e.doc,r.unquoted,t,s,r.caseSensitive?void 0:n=>n.toLowerCase(),r.wholeWord?A5(e.doc,e.charCategorizer(e.selection.main.head)):void 0)}function A5(r,e){return(t,s,n,i)=>((i>t||i+n.length=t)return null;n.push(s.value)}return n}highlight(e,t,s,n){let i=na(this.spec,e,Math.max(0,t-this.spec.unquoted.length),Math.min(s+this.spec.unquoted.length,e.doc.length));for(;!i.next().done;)n(i.value.from,i.value.to)}};function sa(r,e,t,s){return new Su(e.doc,r.search,{ignoreCase:!r.caseSensitive,test:r.wholeWord?P5(e.charCategorizer(e.selection.main.head)):void 0},t,s)}function Tu(r,e){return r.slice(ur(r,e,!1),e)}function Du(r,e){return r.slice(e,ur(r,e))}function P5(r){return(e,t,s)=>!s[0].length||(r(Tu(s.input,s.index))!=Wt.Word||r(Du(s.input,s.index))!=Wt.Word)&&(r(Du(s.input,s.index+s[0].length))!=Wt.Word||r(Tu(s.input,s.index+s[0].length))!=Wt.Word)}var uh=class extends Pu{nextMatch(e,t,s){let n=sa(this.spec,e,s,e.doc.length).next();return n.done&&(n=sa(this.spec,e,0,t).next()),n.done?null:n.value}prevMatchInRange(e,t,s){for(let n=1;;n++){let i=Math.max(t,s-n*1e4),a=sa(this.spec,e,i,s),l=null;for(;!a.next().done;)l=a.value;if(l&&(i==t||l.from>i+10))return l;if(i==t)return null}}prevMatch(e,t,s){return this.prevMatchInRange(e,0,t)||this.prevMatchInRange(e,s,e.doc.length)}getReplacement(e){return this.spec.unquote(this.spec.replace).replace(/\$([$&\d+])/g,(t,s)=>s=="$"?"$":s=="&"?e.match[0]:s!="0"&&+s=t)return null;n.push(s.value)}return n}highlight(e,t,s,n){let i=sa(this.spec,e,Math.max(0,t-250),Math.min(s+250,e.doc.length));for(;!i.next().done;)n(i.value.from,i.value.to)}},Po=wt.define(),hh=wt.define(),Is=Yt.define({create(r){return new Ao(ch(r).create(),null)},update(r,e){for(let t of e.effects)t.is(Po)?r=new Ao(t.value.create(),r.panel):t.is(hh)&&(r=new Ao(r.query,t.value?dh:null));return r},provide:r=>ri.from(r,e=>e.panel)});var Ao=class{constructor(e,t){this.query=e,this.panel=t}},T5=yt.mark({class:"cm-searchMatch"}),D5=yt.mark({class:"cm-searchMatch cm-searchMatch-selected"}),_5=rr.fromClass(class{constructor(r){this.view=r,this.decorations=this.highlight(r.state.field(Is))}update(r){let e=r.state.field(Is);(e!=r.startState.field(Is)||r.docChanged||r.selectionSet||r.viewportChanged)&&(this.decorations=this.highlight(e))}highlight({query:r,panel:e}){if(!e||!r.spec.valid)return yt.none;let{view:t}=this,s=new In;for(let n=0,i=t.visibleRanges,a=i.length;ni[n+1].from-2*250;)o=i[++n].to;r.highlight(t.state,l,o,(u,c)=>{let p=t.state.selection.ranges.some(h=>h.from==u&&h.to==c);s.add(u,c,p?D5:T5)})}return s.finish()}},{decorations:r=>r.decorations});function To(r){return e=>{let t=e.state.field(Is,!1);return t&&t.query.spec.valid?r(e,t):ak(e)}}var _u=To((r,{query:e})=>{let{to:t}=r.state.selection.main,s=e.nextMatch(r.state,t,t);if(!s)return!1;let n=Ze.single(s.from,s.to),i=r.state.facet(ia);return r.dispatch({selection:n,effects:[mh(r,s),i.scrollToMatch(n.main,r)],userEvent:"select.search"}),ik(r),!0}),Iu=To((r,{query:e})=>{let{state:t}=r,{from:s}=t.selection.main,n=e.prevMatch(t,s,s);if(!n)return!1;let i=Ze.single(n.from,n.to),a=r.state.facet(ia);return r.dispatch({selection:i,effects:[mh(r,n),a.scrollToMatch(i.main,r)],userEvent:"select.search"}),ik(r),!0}),I5=To((r,{query:e})=>{let t=e.matchAll(r.state,1e3);return!t||!t.length?!1:(r.dispatch({selection:Ze.create(t.map(s=>Ze.range(s.from,s.to))),userEvent:"select.search.matches"}),!0)}),F5=({state:r,dispatch:e})=>{let t=r.selection;if(t.ranges.length>1||t.main.empty)return!1;let{from:s,to:n}=t.main,i=[],a=0;for(let l=new Fs(r.doc,r.sliceDoc(s,n));!l.next().done;){if(i.length>1e3)return!1;l.value.from==s&&(a=i.length),i.push(Ze.range(l.value.from,l.value.to))}return e(r.update({selection:Ze.create(i,a),userEvent:"select.search.matches"})),!0},ek=To((r,{query:e})=>{let{state:t}=r,{from:s,to:n}=t.selection.main;if(t.readOnly)return!1;let i=e.nextMatch(t,s,s);if(!i)return!1;let a=[],l,o,u=[];if(i.from==s&&i.to==n&&(o=t.toText(e.getReplacement(i)),a.push({from:i.from,to:i.to,insert:o}),i=e.nextMatch(t,i.from,i.to),u.push(at.announce.of(t.phrase("replaced match on line $",t.doc.lineAt(s).number)+"."))),i){let c=a.length==0||a[0].from>=i.to?0:i.to-i.from-o.length;l=Ze.single(i.from-c,i.to-c),u.push(mh(r,i)),u.push(t.facet(ia).scrollToMatch(l.main,r))}return r.dispatch({changes:a,selection:l,effects:u,userEvent:"input.replace"}),!0}),R5=To((r,{query:e})=>{if(r.state.readOnly)return!1;let t=e.matchAll(r.state,1e9).map(n=>{let{from:i,to:a}=n;return{from:i,to:a,insert:e.getReplacement(n)}});if(!t.length)return!1;let s=r.state.phrase("replaced $ matches",t.length)+".";return r.dispatch({changes:t,effects:at.announce.of(s),userEvent:"input.replace.all"}),!0});function dh(r){return r.state.facet(ia).createPanel(r)}function ch(r,e){var t,s,n,i,a;let l=r.selection.main,o=l.empty||l.to>l.from+100?"":r.sliceDoc(l.from,l.to);if(e&&!o)return e;let u=r.facet(ia);return new Au({search:((t=e?.literal)!==null&&t!==void 0?t:u.literal)?o:o.replace(/\n/g,"\\n"),caseSensitive:(s=e?.caseSensitive)!==null&&s!==void 0?s:u.caseSensitive,literal:(n=e?.literal)!==null&&n!==void 0?n:u.literal,regexp:(i=e?.regexp)!==null&&i!==void 0?i:u.regexp,wholeWord:(a=e?.wholeWord)!==null&&a!==void 0?a:u.wholeWord})}function sk(r){let e=zi(r,dh);return e&&e.dom.querySelector("[main-field]")}function ik(r){let e=sk(r);e&&e==r.root.activeElement&&e.select()}var ak=r=>{let e=r.state.field(Is,!1);if(e&&e.panel){let t=sk(r);if(t&&t!=r.root.activeElement){let s=ch(r.state,e.query.spec);s.valid&&r.dispatch({effects:Po.of(s)}),t.focus(),t.select()}}else r.dispatch({effects:[hh.of(!0),e?Po.of(ch(r.state,e.query.spec)):wt.appendConfig.of(N5)]});return!0},ok=r=>{let e=r.state.field(Is,!1);if(!e||!e.panel)return!1;let t=zi(r,dh);return t&&t.dom.contains(r.root.activeElement)&&r.focus(),r.dispatch({effects:hh.of(!1)}),!0},lk=[{key:"Mod-f",run:ak,scope:"editor search-panel"},{key:"F3",run:_u,shift:Iu,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:_u,shift:Iu,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:ok,scope:"editor search-panel"},{key:"Mod-Shift-l",run:F5},{key:"Mod-Alt-g",run:g5},{key:"Mod-d",run:k5,preventDefault:!0}],fh=class{constructor(e){this.view=e;let t=this.query=e.state.field(Is).query.spec;this.commit=this.commit.bind(this),this.searchField=Vt("input",{value:t.search,placeholder:Hr(e,"Find"),"aria-label":Hr(e,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=Vt("input",{value:t.replace,placeholder:Hr(e,"Replace"),"aria-label":Hr(e,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=Vt("input",{type:"checkbox",name:"case",form:"",checked:t.caseSensitive,onchange:this.commit}),this.reField=Vt("input",{type:"checkbox",name:"re",form:"",checked:t.regexp,onchange:this.commit}),this.wordField=Vt("input",{type:"checkbox",name:"word",form:"",checked:t.wholeWord,onchange:this.commit});function s(n,i,a){return Vt("button",{class:"cm-button",name:n,onclick:i,type:"button"},a)}this.dom=Vt("div",{onkeydown:n=>this.keydown(n),class:"cm-search"},[this.searchField,s("next",()=>_u(e),[Hr(e,"next")]),s("prev",()=>Iu(e),[Hr(e,"previous")]),s("select",()=>I5(e),[Hr(e,"all")]),Vt("label",null,[this.caseField,Hr(e,"match case")]),Vt("label",null,[this.reField,Hr(e,"regexp")]),Vt("label",null,[this.wordField,Hr(e,"by word")]),...e.state.readOnly?[]:[Vt("br"),this.replaceField,s("replace",()=>ek(e),[Hr(e,"replace")]),s("replaceAll",()=>R5(e),[Hr(e,"replace all")])],Vt("button",{name:"close",onclick:()=>ok(e),"aria-label":Hr(e,"close"),type:"button"},["\xD7"])])}commit(){let e=new Au({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});e.eq(this.query)||(this.query=e,this.view.dispatch({effects:Po.of(e)}))}keydown(e){yC(this.view,e,"search-panel")?e.preventDefault():e.keyCode==13&&e.target==this.searchField?(e.preventDefault(),(e.shiftKey?Iu:_u)(this.view)):e.keyCode==13&&e.target==this.replaceField&&(e.preventDefault(),ek(this.view))}update(e){for(let t of e.transactions)for(let s of t.effects)s.is(Po)&&!s.value.eq(this.query)&&this.setQuery(s.value)}setQuery(e){this.query=e,this.searchField.value=e.search,this.replaceField.value=e.replace,this.caseField.checked=e.caseSensitive,this.reField.checked=e.regexp,this.wordField.checked=e.wholeWord}mount(){this.searchField.select()}get pos(){return 80}get top(){return this.view.state.facet(ia).top}};function Hr(r,e){return r.state.phrase(e)}var vu=30,Ou=/[\s\.,:;?!]/;function mh(r,{from:e,to:t}){let s=r.state.doc.lineAt(e),n=r.state.doc.lineAt(t).to,i=Math.max(s.from,e-vu),a=Math.min(n,t+vu),l=r.state.sliceDoc(i,a);if(i!=s.from){for(let o=0;ol.length-vu;o--)if(!Ou.test(l[o-1])&&Ou.test(l[o])){l=l.slice(0,o);break}}return at.announce.of(`${r.state.phrase("current match")}. ${l} ${r.state.phrase("on line")} ${s.number}.`)}var B5=at.baseTheme({".cm-panel.cm-search":{padding:"2px 6px 4px",position:"relative","& [name=close]":{position:"absolute",top:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:0,margin:0},"& input, & button, & label":{margin:".2em .6em .2em 0"},"& input[type=checkbox]":{marginRight:".2em"},"& label":{fontSize:"80%",whiteSpace:"pre"}},"&light .cm-searchMatch":{backgroundColor:"#ffff0054"},"&dark .cm-searchMatch":{backgroundColor:"#00ffff8a"},"&light .cm-searchMatch-selected":{backgroundColor:"#ff6a0054"},"&dark .cm-searchMatch-selected":{backgroundColor:"#ff00ff8a"}}),N5=[Is,rn.low(_5),B5];var Ru=class{constructor(e,t,s){this.state=e,this.pos=t,this.explicit=s,this.abortListeners=[]}tokenBefore(e){let t=pr(this.state).resolveInner(this.pos,-1);for(;t&&e.indexOf(t.name)<0;)t=t.parent;return t?{from:t.from,to:this.pos,text:this.state.sliceDoc(t.from,this.pos),type:t.type}:null}matchBefore(e){let t=this.state.doc.lineAt(this.pos),s=Math.max(t.from,this.pos-250),n=t.text.slice(s-t.from,this.pos-t.from),i=n.search(xk(e,!1));return i<0?null:{from:s+i,to:this.pos,text:n.slice(i)}}get aborted(){return this.abortListeners==null}addEventListener(e,t){e=="abort"&&this.abortListeners&&this.abortListeners.push(t)}};function uk(r){let e=Object.keys(r).join(""),t=/\w/.test(e);return t&&(e=e.replace(/\w/g,"")),`[${t?"\\w":""}${e.replace(/[^\w\s]/g,"\\$&")}]`}function L5(r){let e=Object.create(null),t=Object.create(null);for(let{label:n}of r){e[n[0]]=!0;for(let i=1;itypeof n=="string"?{label:n}:n),[t,s]=e.every(n=>/^\w+$/.test(n.label))?[/\w*$/,/\w+$/]:L5(e);return n=>{let i=n.matchBefore(s);return i||n.explicit?{from:i?i.from:n.pos,options:e,validFor:t}:null}}function yk(r,e){return t=>{for(let s=pr(t.state).resolveInner(t.pos,-1);s;s=s.parent){if(r.indexOf(s.name)>-1)return null;if(s.type.isTop)break}return e(t)}}var Bu=class{constructor(e,t,s,n){this.completion=e,this.source=t,this.match=s,this.score=n}};function Rs(r){return r.selection.main.from}function xk(r,e){var t;let{source:s}=r,n=e&&s[0]!="^",i=s[s.length-1]!="$";return!n&&!i?r:new RegExp(`${n?"^":""}(?:${s})${i?"$":""}`,(t=r.flags)!==null&&t!==void 0?t:r.ignoreCase?"i":"")}var Th=Mr.define();function $5(r,e,t,s){let{main:n}=r.selection,i=t-n.from,a=s-n.from;return Object.assign(Object.assign({},r.changeByRange(l=>l!=n&&t!=s&&r.sliceDoc(l.from+i,l.from+a)!=r.sliceDoc(t,s)?{range:l}:{changes:{from:l.from+i,to:s==n.from?l.to:l.from+a,insert:e},range:Ze.cursor(l.from+i+e.length)})),{scrollIntoView:!0,userEvent:"input.complete"})}var ck=new WeakMap;function M5(r){if(!Array.isArray(r))return r;let e=ck.get(r);return e||ck.set(r,e=Ph(r)),e}var Nu=wt.define(),Do=wt.define(),xh=class{constructor(e){this.pattern=e,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[],this.score=0,this.matched=[];for(let t=0;t=48&&C<=57||C>=97&&C<=122?2:C>=65&&C<=90?1:0:(O=za(C))!=O.toLowerCase()?1:O!=O.toUpperCase()?2:0;(!b||w==1&&g||S==0&&w!=0)&&(t[p]==C||s[p]==C&&(h=!0)?a[p++]=b:a.length&&(y=!1)),S=w,b+=$r(C)}return p==o&&a[0]==0&&y?this.result(-100+(h?-200:0),a,e):f==o&&d==0?this.ret(-200-e.length+(m==e.length?0:-100),[0,m]):l>-1?this.ret(-700-e.length,[l,l+this.pattern.length]):f==o?this.ret(-900-e.length,[d,m]):p==o?this.result(-100+(h?-200:0)+-700+(y?0:-1100),a,e):t.length==2?null:this.result((n[0]?-700:0)+-200+-1100,n,e)}result(e,t,s){let n=[],i=0;for(let a of t){let l=a+(this.astral?$r(gr(s,a)):1);i&&n[i-1]==a?n[i-1]=l:(n[i++]=a,n[i++]=l)}return this.ret(e-s.length,n)}},bh=class{constructor(e){this.pattern=e,this.matched=[],this.score=0,this.folded=e.toLowerCase()}match(e){if(e.length!1,activateOnTypingDelay:100,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,tooltipClass:()=>"",optionClass:()=>"",aboveCursor:!1,icons:!0,addToOptions:[],positionInfo:j5,filterStrict:!1,compareCompletions:(e,t)=>e.label.localeCompare(t.label),interactionDelay:75,updateSyncTime:100},{defaultKeymap:(e,t)=>e&&t,closeOnBlur:(e,t)=>e&&t,icons:(e,t)=>e&&t,tooltipClass:(e,t)=>s=>fk(e(s),t(s)),optionClass:(e,t)=>s=>fk(e(s),t(s)),addToOptions:(e,t)=>e.concat(t),filterStrict:(e,t)=>e||t})}});function fk(r,e){return r?e?r+" "+e:r:e}function j5(r,e,t,s,n,i){let a=r.textDirection==Zt.RTL,l=a,o=!1,u="top",c,p,h=e.left-n.left,f=n.right-e.right,d=s.right-s.left,m=s.bottom-s.top;if(l&&h=m||b>e.top?c=t.bottom-e.top:(u="bottom",c=e.bottom-t.top)}let g=(e.bottom-e.top)/i.offsetHeight,y=(e.right-e.left)/i.offsetWidth;return{style:`${u}: ${c/g}px; max-width: ${p/y}px`,class:"cm-completionInfo-"+(o?a?"left-narrow":"right-narrow":l?"left":"right")}}function q5(r){let e=r.addToOptions.slice();return r.icons&&e.push({render(t){let s=document.createElement("div");return s.classList.add("cm-completionIcon"),t.type&&s.classList.add(...t.type.split(/\s+/g).map(n=>"cm-completionIcon-"+n)),s.setAttribute("aria-hidden","true"),s},position:20}),e.push({render(t,s,n,i){let a=document.createElement("span");a.className="cm-completionLabel";let l=t.displayLabel||t.label,o=0;for(let u=0;uo&&a.appendChild(document.createTextNode(l.slice(o,c)));let h=a.appendChild(document.createElement("span"));h.appendChild(document.createTextNode(l.slice(c,p))),h.className="cm-completionMatchedText",o=p}return ot.position-s.position).map(t=>t.render)}function gh(r,e,t){if(r<=t)return{from:0,to:r};if(e<0&&(e=0),e<=r>>1){let n=Math.floor(e/t);return{from:n*t,to:(n+1)*t}}let s=Math.floor((r-e)/t);return{from:r-(s+1)*t,to:r-s*t}}var vh=class{constructor(e,t,s){this.view=e,this.stateField=t,this.applyCompletion=s,this.info=null,this.infoDestroy=null,this.placeInfoReq={read:()=>this.measureInfo(),write:o=>this.placeInfo(o),key:this},this.space=null,this.currentClass="";let n=e.state.field(t),{options:i,selected:a}=n.open,l=e.state.facet(Sr);this.optionContent=q5(l),this.optionClass=l.optionClass,this.tooltipClass=l.tooltipClass,this.range=gh(i.length,a,l.maxRenderedOptions),this.dom=document.createElement("div"),this.dom.className="cm-tooltip-autocomplete",this.updateTooltipClass(e.state),this.dom.addEventListener("mousedown",o=>{let{options:u}=e.state.field(t).open;for(let c=o.target,p;c&&c!=this.dom;c=c.parentNode)if(c.nodeName=="LI"&&(p=/-(\d+)$/.exec(c.id))&&+p[1]{let u=e.state.field(this.stateField,!1);u&&u.tooltip&&e.state.facet(Sr).closeOnBlur&&o.relatedTarget!=e.contentDOM&&e.dispatch({effects:Do.of(null)})}),this.showOptions(i,n.id)}mount(){this.updateSel()}showOptions(e,t){this.list&&this.list.remove(),this.list=this.dom.appendChild(this.createListBox(e,t,this.range)),this.list.addEventListener("scroll",()=>{this.info&&this.view.requestMeasure(this.placeInfoReq)})}update(e){var t;let s=e.state.field(this.stateField),n=e.startState.field(this.stateField);if(this.updateTooltipClass(e.state),s!=n){let{options:i,selected:a,disabled:l}=s.open;(!n.open||n.open.options!=i)&&(this.range=gh(i.length,a,e.state.facet(Sr).maxRenderedOptions),this.showOptions(i,s.id)),this.updateSel(),l!=((t=n.open)===null||t===void 0?void 0:t.disabled)&&this.dom.classList.toggle("cm-tooltip-autocomplete-disabled",!!l)}}updateTooltipClass(e){let t=this.tooltipClass(e);if(t!=this.currentClass){for(let s of this.currentClass.split(" "))s&&this.dom.classList.remove(s);for(let s of t.split(" "))s&&this.dom.classList.add(s);this.currentClass=t}}positioned(e){this.space=e,this.info&&this.view.requestMeasure(this.placeInfoReq)}updateSel(){let e=this.view.state.field(this.stateField),t=e.open;if((t.selected>-1&&t.selected=this.range.to)&&(this.range=gh(t.options.length,t.selected,this.view.state.facet(Sr).maxRenderedOptions),this.showOptions(t.options,e.id)),this.updateSelectedOption(t.selected)){this.destroyInfo();let{completion:s}=t.options[t.selected],{info:n}=s;if(!n)return;let i=typeof n=="string"?document.createTextNode(n):n(s);if(!i)return;"then"in i?i.then(a=>{a&&this.view.state.field(this.stateField,!1)==e&&this.addInfoPane(a,s)}).catch(a=>yr(this.view.state,a,"completion info")):this.addInfoPane(i,s)}}addInfoPane(e,t){this.destroyInfo();let s=this.info=document.createElement("div");if(s.className="cm-tooltip cm-completionInfo",e.nodeType!=null)s.appendChild(e),this.infoDestroy=null;else{let{dom:n,destroy:i}=e;s.appendChild(n),this.infoDestroy=i||null}this.dom.appendChild(s),this.view.requestMeasure(this.placeInfoReq)}updateSelectedOption(e){let t=null;for(let s=this.list.firstChild,n=this.range.from;s;s=s.nextSibling,n++)s.nodeName!="LI"||!s.id?n--:n==e?s.hasAttribute("aria-selected")||(s.setAttribute("aria-selected","true"),t=s):s.hasAttribute("aria-selected")&&s.removeAttribute("aria-selected");return t&&U5(this.list,t),t}measureInfo(){let e=this.dom.querySelector("[aria-selected]");if(!e||!this.info)return null;let t=this.dom.getBoundingClientRect(),s=this.info.getBoundingClientRect(),n=e.getBoundingClientRect(),i=this.space;if(!i){let a=this.dom.ownerDocument.defaultView||window;i={left:0,top:0,right:a.innerWidth,bottom:a.innerHeight}}return n.top>Math.min(i.bottom,t.bottom)-10||n.bottoms.from||s.from==0))if(i=h,typeof u!="string"&&u.header)n.appendChild(u.header(u));else{let f=n.appendChild(document.createElement("completion-section"));f.textContent=h}}let c=n.appendChild(document.createElement("li"));c.id=t+"-"+a,c.setAttribute("role","option");let p=this.optionClass(l);p&&(c.className=p);for(let h of this.optionContent){let f=h(l,this.view.state,this.view,o);f&&c.appendChild(f)}}return s.from&&n.classList.add("cm-completionListIncompleteTop"),s.tonew vh(t,r,e)}function U5(r,e){let t=r.getBoundingClientRect(),s=e.getBoundingClientRect(),n=t.height/r.offsetHeight;s.topt.bottom&&(r.scrollTop+=(s.bottom-t.bottom)/n)}function pk(r){return(r.boost||0)*100+(r.apply?10:0)+(r.info?5:0)+(r.type?1:0)}function V5(r,e){let t=[],s=null,n=u=>{t.push(u);let{section:c}=u.completion;if(c){s||(s=[]);let p=typeof c=="string"?c:c.name;s.some(h=>h.name==p)||s.push(typeof c=="string"?{name:p}:c)}},i=e.facet(Sr);for(let u of r)if(u.hasResult()){let c=u.result.getMatch;if(u.result.filter===!1)for(let p of u.result.options)n(new Bu(p,u.source,c?c(p):[],1e9-t.length));else{let p=e.sliceDoc(u.from,u.to),h,f=i.filterStrict?new bh(p):new xh(p);for(let d of u.result.options)if(h=f.match(d.label)){let m=d.displayLabel?c?c(d,h.matched):[]:h.matched;n(new Bu(d,u.source,m,h.score+(d.boost||0)))}}}if(s){let u=Object.create(null),c=0,p=(h,f)=>{var d,m;return((d=h.rank)!==null&&d!==void 0?d:1e9)-((m=f.rank)!==null&&m!==void 0?m:1e9)||(h.namep.score-c.score||o(c.completion,p.completion))){let c=u.completion;!l||l.label!=c.label||l.detail!=c.detail||l.type!=null&&c.type!=null&&l.type!=c.type||l.apply!=c.apply||l.boost!=c.boost?a.push(u):pk(u.completion)>pk(l)&&(a[a.length-1]=u),l=u.completion}return a}var Oh=class r{constructor(e,t,s,n,i,a){this.options=e,this.attrs=t,this.tooltip=s,this.timestamp=n,this.selected=i,this.disabled=a}setSelected(e,t){return e==this.selected||e>=this.options.length?this:new r(this.options,hk(t,e),this.tooltip,this.timestamp,e,this.disabled)}static build(e,t,s,n,i){let a=V5(e,t);if(!a.length)return n&&e.some(o=>o.state==1)?new r(n.options,n.attrs,n.tooltip,n.timestamp,n.selected,!0):null;let l=t.facet(Sr).selectOnOpen?0:-1;if(n&&n.selected!=l&&n.selected!=-1){let o=n.options[n.selected].completion;for(let u=0;uu.hasResult()?Math.min(o,u.from):o,1e8),create:G5,above:i.aboveCursor},n?n.timestamp:Date.now(),l,!1)}map(e){return new r(this.options,this.attrs,Object.assign(Object.assign({},this.tooltip),{pos:e.mapPos(this.tooltip.pos)}),this.timestamp,this.selected,this.disabled)}},Sh=class r{constructor(e,t,s){this.active=e,this.id=t,this.open=s}static start(){return new r(z5,"cm-ac-"+Math.floor(Math.random()*2e6).toString(36),null)}update(e){let{state:t}=e,s=t.facet(Sr),i=(s.override||t.languageDataAt("autocomplete",Rs(t)).map(M5)).map(l=>(this.active.find(u=>u.source==l)||new Un(l,this.active.some(u=>u.state!=0)?1:0)).update(e,s));i.length==this.active.length&&i.every((l,o)=>l==this.active[o])&&(i=this.active);let a=this.open;a&&e.docChanged&&(a=a.map(e.changes)),e.selection||i.some(l=>l.hasResult()&&e.changes.touchesRange(l.from,l.to))||!W5(i,this.active)?a=Oh.build(i,t,this.id,a,s):a&&a.disabled&&!i.some(l=>l.state==1)&&(a=null),!a&&i.every(l=>l.state!=1)&&i.some(l=>l.hasResult())&&(i=i.map(l=>l.hasResult()?new Un(l.source,0):l));for(let l of e.effects)l.is(vk)&&(a=a&&a.setSelected(l.value,this.id));return i==this.active&&a==this.open?this:new r(i,this.id,a)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:Z5}};function W5(r,e){if(r==e)return!0;for(let t=0,s=0;;){for(;t-1&&(t["aria-activedescendant"]=r+"-"+e),t}var z5=[];function Eh(r,e){if(r.isUserEvent("input.complete")){let t=r.annotation(Th);if(t&&e.activateOnCompletion(t))return"input"}return r.isUserEvent("input.type")?"input":r.isUserEvent("delete.backward")?"delete":null}var Un=class r{constructor(e,t,s=-1){this.source=e,this.state=t,this.explicitPos=s}hasResult(){return!1}update(e,t){let s=Eh(e,t),n=this;s?n=n.handleUserEvent(e,s,t):e.docChanged?n=n.handleChange(e):e.selection&&n.state!=0&&(n=new r(n.source,0));for(let i of e.effects)if(i.is(Nu))n=new r(n.source,1,i.value?Rs(e.state):-1);else if(i.is(Do))n=new r(n.source,0);else if(i.is(bk))for(let a of i.value)a.source==n.source&&(n=a);return n}handleUserEvent(e,t,s){return t=="delete"||!s.activateOnTyping?this.map(e.changes):new r(this.source,1)}handleChange(e){return e.changes.touchesRange(Rs(e.startState))?new r(this.source,0):this.map(e.changes)}map(e){return e.empty||this.explicitPos<0?this:new r(this.source,this.state,e.mapPos(this.explicitPos))}},Lu=class r extends Un{constructor(e,t,s,n,i){super(e,2,t),this.result=s,this.from=n,this.to=i}hasResult(){return!0}handleUserEvent(e,t,s){var n;let i=this.result;i.map&&!e.changes.empty&&(i=i.map(i,e.changes));let a=e.changes.mapPos(this.from),l=e.changes.mapPos(this.to,1),o=Rs(e.state);if((this.explicitPos<0?o<=a:ol||!i||t=="delete"&&Rs(e.startState)==this.from)return new Un(this.source,t=="input"&&s.activateOnTyping?1:0);let u=this.explicitPos<0?-1:e.changes.mapPos(this.explicitPos);return X5(i.validFor,e.state,a,l)?new r(this.source,u,i,a,l):i.update&&(i=i.update(i,a,l,new Ru(e.state,o,u>=0)))?new r(this.source,u,i,i.from,(n=i.to)!==null&&n!==void 0?n:Rs(e.state)):new Un(this.source,1,u)}handleChange(e){return e.changes.touchesRange(this.from,this.to)?new Un(this.source,0):this.map(e.changes)}map(e){return e.empty?this:(this.result.map?this.result.map(this.result,e):this.result)?new r(this.source,this.explicitPos<0?-1:e.mapPos(this.explicitPos),this.result,e.mapPos(this.from),e.mapPos(this.to,1)):new Un(this.source,0)}};function X5(r,e,t,s){if(!r)return!1;let n=e.sliceDoc(t,s);return typeof r=="function"?r(n,t,s,e):xk(r,!0).test(n)}var bk=wt.define({map(r,e){return r.map(t=>t.map(e))}}),vk=wt.define(),jr=Yt.define({create(){return Sh.start()},update(r,e){return r.update(e)},provide:r=>[Zi.from(r,e=>e.tooltip),at.contentAttributes.from(r,e=>e.attrs)]});function Dh(r,e){let t=e.completion.apply||e.completion.label,s=r.state.field(jr).active.find(n=>n.source==e.source);return s instanceof Lu?(typeof t=="string"?r.dispatch(Object.assign(Object.assign({},$5(r.state,t,s.from,s.to)),{annotations:Th.of(e.completion)})):t(r,e.completion,s.from,s.to),!0):!1}var G5=Q5(jr,Dh);function Fu(r,e="option"){return t=>{let s=t.state.field(jr,!1);if(!s||!s.open||s.open.disabled||Date.now()-s.open.timestamp-1?s.open.selected+n*(r?1:-1):r?0:a-1;return l<0?l=e=="page"?0:a-1:l>=a&&(l=e=="page"?a-1:0),t.dispatch({effects:vk.of(l)}),!0}}var Y5=r=>{let e=r.state.field(jr,!1);return r.state.readOnly||!e||!e.open||e.open.selected<0||e.open.disabled||Date.now()-e.open.timestampr.state.field(jr,!1)?(r.dispatch({effects:Nu.of(!0)}),!0):!1,K5=r=>{let e=r.state.field(jr,!1);return!e||!e.active.some(t=>t.state!=0)?!1:(r.dispatch({effects:Do.of(null)}),!0)},Ch=class{constructor(e,t){this.active=e,this.context=t,this.time=Date.now(),this.updates=[],this.done=void 0}},J5=50,e8=1e3,t8=rr.fromClass(class{constructor(r){this.view=r,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.pendingStart=!1,this.composing=0;for(let e of r.state.field(jr).active)e.state==1&&this.startQuery(e)}update(r){let e=r.state.field(jr),t=r.state.facet(Sr);if(!r.selectionSet&&!r.docChanged&&r.startState.field(jr)==e)return;let s=r.transactions.some(i=>(i.selection||i.docChanged)&&!Eh(i,t));for(let i=0;iJ5&&Date.now()-a.time>e8){for(let l of a.context.abortListeners)try{l()}catch(o){yr(this.view.state,o)}a.context.abortListeners=null,this.running.splice(i--,1)}else a.updates.push(...r.transactions)}this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),r.transactions.some(i=>i.effects.some(a=>a.is(Nu)))&&(this.pendingStart=!0);let n=this.pendingStart?50:t.activateOnTypingDelay;if(this.debounceUpdate=e.active.some(i=>i.state==1&&!this.running.some(a=>a.active.source==i.source))?setTimeout(()=>this.startUpdate(),n):-1,this.composing!=0)for(let i of r.transactions)Eh(i,t)=="input"?this.composing=2:this.composing==2&&i.selection&&(this.composing=3)}startUpdate(){this.debounceUpdate=-1,this.pendingStart=!1;let{state:r}=this.view,e=r.field(jr);for(let t of e.active)t.state==1&&!this.running.some(s=>s.active.source==t.source)&&this.startQuery(t)}startQuery(r){let{state:e}=this.view,t=Rs(e),s=new Ru(e,t,r.explicitPos==t),n=new Ch(r,s);this.running.push(n),Promise.resolve(r.source(s)).then(i=>{n.context.aborted||(n.done=i||null,this.scheduleAccept())},i=>{this.view.dispatch({effects:Do.of(null)}),yr(this.view.state,i)})}scheduleAccept(){this.running.every(r=>r.done!==void 0)?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(Sr).updateSyncTime))}accept(){var r;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let e=[],t=this.view.state.facet(Sr);for(let s=0;sa.source==n.active.source);if(i&&i.state==1)if(n.done==null){let a=new Un(n.active.source,0);for(let l of n.updates)a=a.update(l,t);a.state!=1&&e.push(a)}else this.startQuery(i)}e.length&&this.view.dispatch({effects:bk.of(e)})}},{eventHandlers:{blur(r){let e=this.view.state.field(jr,!1);if(e&&e.tooltip&&this.view.state.facet(Sr).closeOnBlur){let t=e.open&&kp(this.view,e.open.tooltip);(!t||!t.dom.contains(r.relatedTarget))&&setTimeout(()=>this.view.dispatch({effects:Do.of(null)}),10)}},compositionstart(){this.composing=1},compositionend(){this.composing==3&&setTimeout(()=>this.view.dispatch({effects:Nu.of(!1)}),20),this.composing=0}}}),r8=typeof navigator=="object"&&/Win/.test(navigator.platform),n8=rn.highest(at.domEventHandlers({keydown(r,e){let t=e.state.field(jr,!1);if(!t||!t.open||t.open.disabled||t.open.selected<0||r.key.length>1||r.ctrlKey&&!(r8&&r.altKey)||r.metaKey)return!1;let s=t.open.options[t.open.selected],n=t.active.find(a=>a.source==s.source),i=s.completion.commitCharacters||n.result.commitCharacters;return i&&i.indexOf(r.key)>-1&&Dh(e,s),!1}})),Ok=at.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",height:"100%",listStyle:"none",margin:0,padding:0,"& > li, & > completion-section":{padding:"1px 3px",lineHeight:1.2},"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer"},"& > completion-section":{display:"list-item",borderBottom:"1px solid silver",paddingLeft:"0.5em",opacity:.7}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#777"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#444"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"\xB7\xB7\xB7"',opacity:.5,display:"block",textAlign:"center"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"400px",boxSizing:"border-box"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},".cm-completionInfo.cm-completionInfo-left-narrow":{right:"30px"},".cm-completionInfo.cm-completionInfo-right-narrow":{left:"30px"},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",display:"inline-block",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6",boxSizing:"content-box"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'\u0192'"}},".cm-completionIcon-class":{"&:after":{content:"'\u25CB'"}},".cm-completionIcon-interface":{"&:after":{content:"'\u25CC'"}},".cm-completionIcon-variable":{"&:after":{content:"'\u{1D465}'"}},".cm-completionIcon-constant":{"&:after":{content:"'\u{1D436}'"}},".cm-completionIcon-type":{"&:after":{content:"'\u{1D461}'"}},".cm-completionIcon-enum":{"&:after":{content:"'\u222A'"}},".cm-completionIcon-property":{"&:after":{content:"'\u25A1'"}},".cm-completionIcon-keyword":{"&:after":{content:"'\u{1F511}\uFE0E'"}},".cm-completionIcon-namespace":{"&:after":{content:"'\u25A2'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}}),wh=class{constructor(e,t,s,n){this.field=e,this.line=t,this.from=s,this.to=n}},kh=class r{constructor(e,t,s){this.field=e,this.from=t,this.to=s}map(e){let t=e.mapPos(this.from,-1,fr.TrackDel),s=e.mapPos(this.to,1,fr.TrackDel);return t==null||s==null?null:new r(this.field,t,s)}},Ah=class r{constructor(e,t){this.lines=e,this.fieldPositions=t}instantiate(e,t){let s=[],n=[t],i=e.doc.lineAt(t),a=/^\s*/.exec(i.text)[0];for(let o of this.lines){if(s.length){let u=a,c=/^\t*/.exec(o)[0].length;for(let p=0;pnew kh(o.field,n[o.line]+o.from,n[o.line]+o.to));return{text:s,ranges:l}}static parse(e){let t=[],s=[],n=[],i;for(let a of e.split(/\r\n?|\n/)){for(;i=/[#$]\{(?:(\d+)(?::([^}]*))?|([^}]*))\}/.exec(a);){let l=i[1]?+i[1]:null,o=i[2]||i[3]||"",u=-1;for(let c=0;c=u&&p.field++}n.push(new wh(u,s.length,i.index,i.index+o.length)),a=a.slice(0,i.index)+o+a.slice(i.index+i[0].length)}for(let l;l=/\\([{}])/.exec(a);){a=a.slice(0,l.index)+l[1]+a.slice(l.index+l[0].length);for(let o of n)o.line==s.length&&o.from>l.index&&(o.from--,o.to--)}s.push(a)}return new r(s,n)}},s8=yt.widget({widget:new class extends an{toDOM(){let r=document.createElement("span");return r.className="cm-snippetFieldPosition",r}ignoreEvent(){return!1}}}),i8=yt.mark({class:"cm-snippetField"}),aa=class r{constructor(e,t){this.ranges=e,this.active=t,this.deco=yt.set(e.map(s=>(s.from==s.to?s8:i8).range(s.from,s.to)))}map(e){let t=[];for(let s of this.ranges){let n=s.map(e);if(!n)return null;t.push(n)}return new r(t,this.active)}selectionInsideField(e){return e.ranges.every(t=>this.ranges.some(s=>s.field==this.active&&s.from<=t.from&&s.to>=t.to))}},Io=wt.define({map(r,e){return r&&r.map(e)}}),a8=wt.define(),_o=Yt.define({create(){return null},update(r,e){for(let t of e.effects){if(t.is(Io))return t.value;if(t.is(a8)&&r)return new aa(r.ranges,t.value)}return r&&e.docChanged&&(r=r.map(e.changes)),r&&e.selection&&!r.selectionInsideField(e.selection)&&(r=null),r},provide:r=>at.decorations.from(r,e=>e?e.deco:yt.none)});function _h(r,e){return Ze.create(r.filter(t=>t.field==e).map(t=>Ze.range(t.from,t.to)))}function o8(r){let e=Ah.parse(r);return(t,s,n,i)=>{let{text:a,ranges:l}=e.instantiate(t.state,n),o={changes:{from:n,to:i,insert:Ft.of(a)},scrollIntoView:!0,annotations:s?[Th.of(s),lr.userEvent.of("input.complete")]:void 0};if(l.length&&(o.selection=_h(l,0)),l.some(u=>u.field>0)){let u=new aa(l,0),c=o.effects=[Io.of(u)];t.state.field(_o,!1)===void 0&&c.push(wt.appendConfig.of([_o,p8,h8,Ok]))}t.dispatch(t.state.update(o))}}function Sk(r){return({state:e,dispatch:t})=>{let s=e.field(_o,!1);if(!s||r<0&&s.active==0)return!1;let n=s.active+r,i=r>0&&!s.ranges.some(a=>a.field==n+r);return t(e.update({selection:_h(s.ranges,n),effects:Io.of(i?null:new aa(s.ranges,n)),scrollIntoView:!0})),!0}}var l8=({state:r,dispatch:e})=>r.field(_o,!1)?(e(r.update({effects:Io.of(null)})),!0):!1,u8=Sk(1),c8=Sk(-1);var f8=[{key:"Tab",run:u8,shift:c8},{key:"Escape",run:l8}],dk=ct.define({combine(r){return r.length?r[0]:f8}}),p8=rn.highest(As.compute([dk],r=>r.facet(dk)));function Fr(r,e){return Object.assign(Object.assign({},e),{apply:o8(r)})}var h8=at.domEventHandlers({mousedown(r,e){let t=e.state.field(_o,!1),s;if(!t||(s=e.posAtCoords({x:r.clientX,y:r.clientY}))==null)return!1;let n=t.ranges.find(i=>i.from<=s&&i.to>=s);return!n||n.field==t.active?!1:(e.dispatch({selection:_h(t.ranges,n.field),effects:Io.of(t.ranges.some(i=>i.field>n.field)?new aa(t.ranges,n.field):null),scrollIntoView:!0}),!0)}});var $u={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},li=wt.define({map(r,e){let t=e.mapPos(r,-1,fr.TrackAfter);return t??void 0}}),Ih=new class extends yn{};Ih.startSide=1;Ih.endSide=-1;var Ek=Yt.define({create(){return Mt.empty},update(r,e){if(r=r.map(e.changes),e.selection){let t=e.state.doc.lineAt(e.selection.main.head);r=r.update({filter:s=>s>=t.from&&s<=t.to})}for(let t of e.effects)t.is(li)&&(r=r.update({add:[Ih.range(t.value,t.value+1)]}));return r}});function Ck(){return[y8,Ek]}var yh="()[]{}<>";function d8(r){for(let e=0;e{if((g8?r.composing:r.compositionStarted)||r.state.readOnly)return!1;let n=r.state.selection.main;if(s.length>2||s.length==2&&$r(gr(s,0))==1||e!=n.from||t!=n.to)return!1;let i=x8(r.state,s);return i?(r.dispatch(i),!0):!1});function x8(r,e){let t=m8(r,r.selection.main.head),s=t.brackets||$u.brackets;for(let n of s){let i=d8(gr(n,0));if(e==n)return i==n?O8(r,n,s.indexOf(n+n+n)>-1,t):b8(r,n,i,t.before||$u.before);if(e==i&&wk(r,r.selection.main.from))return v8(r,n,i)}return null}function wk(r,e){let t=!1;return r.field(Ek).between(0,r.doc.length,s=>{s==e&&(t=!0)}),t}function Fh(r,e){let t=r.sliceString(e,e+2);return t.slice(0,$r(gr(t,0)))}function b8(r,e,t,s){let n=null,i=r.changeByRange(a=>{if(!a.empty)return{changes:[{insert:e,from:a.from},{insert:t,from:a.to}],effects:li.of(a.to+e.length),range:Ze.range(a.anchor+e.length,a.head+e.length)};let l=Fh(r.doc,a.head);return!l||/\s/.test(l)||s.indexOf(l)>-1?{changes:{insert:e+t,from:a.head},effects:li.of(a.head+e.length),range:Ze.cursor(a.head+e.length)}:{range:n=a}});return n?null:r.update(i,{scrollIntoView:!0,userEvent:"input.type"})}function v8(r,e,t){let s=null,n=r.changeByRange(i=>i.empty&&Fh(r.doc,i.head)==t?{changes:{from:i.head,to:i.head+t.length,insert:t},range:Ze.cursor(i.head+t.length)}:s={range:i});return s?null:r.update(n,{scrollIntoView:!0,userEvent:"input.type"})}function O8(r,e,t,s){let n=s.stringPrefixes||$u.stringPrefixes,i=null,a=r.changeByRange(l=>{if(!l.empty)return{changes:[{insert:e,from:l.from},{insert:e,from:l.to}],effects:li.of(l.to+e.length),range:Ze.range(l.anchor+e.length,l.head+e.length)};let o=l.head,u=Fh(r.doc,o),c;if(u==e){if(mk(r,o))return{changes:{insert:e+e,from:o},effects:li.of(o+e.length),range:Ze.cursor(o+e.length)};if(wk(r,o)){let h=t&&r.sliceDoc(o,o+e.length*3)==e+e+e?e+e+e:e;return{changes:{from:o,to:o+h.length,insert:h},range:Ze.cursor(o+h.length)}}}else{if(t&&r.sliceDoc(o-2*e.length,o)==e+e&&(c=gk(r,o-2*e.length,n))>-1&&mk(r,c))return{changes:{insert:e+e+e+e,from:o},effects:li.of(o+e.length),range:Ze.cursor(o+e.length)};if(r.charCategorizer(o)(u)!=Wt.Word&&gk(r,o,n)>-1&&!S8(r,o,e,n))return{changes:{insert:e+e,from:o},effects:li.of(o+e.length),range:Ze.cursor(o+e.length)}}return{range:i=l}});return i?null:r.update(a,{scrollIntoView:!0,userEvent:"input.type"})}function mk(r,e){let t=pr(r).resolveInner(e+1);return t.parent&&t.from==e}function S8(r,e,t,s){let n=pr(r).resolveInner(e,-1),i=s.reduce((a,l)=>Math.max(a,l.length),0);for(let a=0;a<5;a++){let l=r.sliceDoc(n.from,Math.min(n.to,n.from+t.length+i)),o=l.indexOf(t);if(!o||o>-1&&s.indexOf(l.slice(0,o))>-1){let c=n.firstChild;for(;c&&c.from==n.from&&c.to-c.from>t.length+o;){if(r.sliceDoc(c.to-t.length,c.to)==t)return!1;c=c.firstChild}return!0}let u=n.to==e&&n.parent;if(!u)break;n=u}return!1}function gk(r,e,t){let s=r.charCategorizer(e);if(s(r.sliceDoc(e-1,e))!=Wt.Word)return e;for(let n of t){let i=e-n.length;if(r.sliceDoc(i,e)==n&&s(r.sliceDoc(i-1,i))!=Wt.Word)return i}return-1}function kk(r={}){return[n8,jr,Sr.of(r),t8,C8,Ok]}var E8=[{key:"Ctrl-Space",run:H5},{key:"Escape",run:K5},{key:"ArrowDown",run:Fu(!0)},{key:"ArrowUp",run:Fu(!1)},{key:"PageDown",run:Fu(!0,"page")},{key:"PageUp",run:Fu(!1,"page")},{key:"Enter",run:Y5}],C8=rn.highest(As.computeN([Sr],r=>r.facet(Sr).defaultKeymap?[E8]:[]));var Rh=class{constructor(e,t,s){this.from=e,this.to=t,this.diagnostic=s}},ui=class r{constructor(e,t,s){this.diagnostics=e,this.panel=t,this.selected=s}static init(e,t,s){let n=e,i=s.facet(Bs).markerFilter;i&&(n=i(n,s));let a=yt.set(n.map(l=>l.from==l.to||l.from==l.to-1&&s.doc.lineAt(l.from).to==l.from?yt.widget({widget:new Bh(l),diagnostic:l}).range(l.from):yt.mark({attributes:{class:"cm-lintRange cm-lintRange-"+l.severity+(l.markClass?" "+l.markClass:"")},diagnostic:l,inclusive:!0}).range(l.from,l.to)),!0);return new r(a,t,oa(a))}};function oa(r,e=null,t=0){let s=null;return r.between(t,1e9,(n,i,{spec:a})=>{if(!(e&&a.diagnostic!=e))return s=new Rh(n,i,a.diagnostic),!1}),s}function Tk(r,e){let t=e.pos,s=e.end||t,n=r.state.facet(Bs).hideOn(r,t,s);if(n!=null)return n;let i=r.startState.doc.lineAt(e.pos);return!!(r.effects.some(a=>a.is(Qu))||r.changes.touchesRange(i.from,Math.max(i.to,s)))}function w8(r,e){return r.field(Sn,!1)?e:e.concat(wt.appendConfig.of($k))}function k8(r,e){return{effects:w8(r,[Qu.of(e)])}}var Qu=wt.define(),Dk=wt.define(),_k=wt.define(),Sn=Yt.define({create(){return new ui(yt.none,null,null)},update(r,e){if(e.docChanged){let t=r.diagnostics.map(e.changes),s=null;if(r.selected){let n=e.changes.mapPos(r.selected.from,1);s=oa(t,r.selected.diagnostic,n)||oa(t,null,n)}r=new ui(t,r.panel,s)}for(let t of e.effects)t.is(Qu)?r=ui.init(t.value,r.panel,e.state):t.is(Dk)?r=new ui(r.diagnostics,t.value?Nh.open:null,r.selected):t.is(_k)&&(r=new ui(r.diagnostics,r.panel,t.value));return r},provide:r=>[ri.from(r,e=>e.panel),at.decorations.from(r,e=>e.diagnostics)]});var A8=yt.mark({class:"cm-lintRange cm-lintRange-active",inclusive:!0});function P8(r,e,t){let{diagnostics:s}=r.state.field(Sn),n=[],i=2e8,a=0;s.between(e-(t<0?1:0),e+(t>0?1:0),(o,u,{spec:c})=>{e>=o&&e<=u&&(o==u||(e>o||t>0)&&(eBk(r,t,!1)))}var Ak=r=>{let e=r.state.field(Sn,!1);return!e||!e.panel?!1:(r.dispatch({effects:Dk.of(!1)}),!0)};var T8=rr.fromClass(class{constructor(r){this.view=r,this.timeout=-1,this.set=!0;let{delay:e}=r.state.facet(Bs);this.lintTime=Date.now()+e,this.run=this.run.bind(this),this.timeout=setTimeout(this.run,e)}run(){let r=Date.now();if(rPromise.resolve(s(this.view)))).then(s=>{let n=s.reduce((i,a)=>i.concat(a));this.view.state.doc==e.doc&&this.view.dispatch(k8(this.view.state,n))},s=>{yr(this.view.state,s)})}}update(r){let e=r.state.facet(Bs);(r.docChanged||e!=r.startState.facet(Bs)||e.needsRefresh&&e.needsRefresh(r))&&(this.lintTime=Date.now()+e.delay,this.set||(this.set=!0,this.timeout=setTimeout(this.run,e.delay)))}force(){this.set&&(this.lintTime=Date.now(),this.run())}destroy(){clearTimeout(this.timeout)}}),Bs=ct.define({combine(r){return Object.assign({sources:r.map(e=>e.source).filter(e=>e!=null)},kr(r.map(e=>e.config),{delay:750,markerFilter:null,tooltipFilter:null,needsRefresh:null,hideOn:()=>null},{needsRefresh:(e,t)=>e?t?s=>e(s)||t(s):e:t}))}});function Fk(r,e={}){return[Bs.of({source:r,config:e}),T8,$k]}function Rk(r){let e=[];if(r)e:for(let{name:t}of r){for(let s=0;si.toLowerCase()==n.toLowerCase())){e.push(n);continue e}}e.push("")}return e}function Bk(r,e,t){var s;let n=t?Rk(e.actions):[];return Vt("li",{class:"cm-diagnostic cm-diagnostic-"+e.severity},Vt("span",{class:"cm-diagnosticText"},e.renderMessage?e.renderMessage(r):e.message),(s=e.actions)===null||s===void 0?void 0:s.map((i,a)=>{let l=!1,o=h=>{if(h.preventDefault(),l)return;l=!0;let f=oa(r.state.field(Sn).diagnostics,e);f&&i.apply(r,f.from,f.to)},{name:u}=i,c=n[a]?u.indexOf(n[a]):-1,p=c<0?u:[u.slice(0,c),Vt("u",u.slice(c,c+1)),u.slice(c+1)];return Vt("button",{type:"button",class:"cm-diagnosticAction",onclick:o,onmousedown:o,"aria-label":` Action: ${u}${c<0?"":` (access key "${n[a]})"`}.`},p)}),e.source&&Vt("div",{class:"cm-diagnosticSource"},e.source))}var Bh=class extends an{constructor(e){super(),this.diagnostic=e}eq(e){return e.diagnostic==this.diagnostic}toDOM(){return Vt("span",{class:"cm-lintPoint cm-lintPoint-"+this.diagnostic.severity})}},qu=class{constructor(e,t){this.diagnostic=t,this.id="item_"+Math.floor(Math.random()*4294967295).toString(16),this.dom=Bk(e,t,!0),this.dom.id=this.id,this.dom.setAttribute("role","option")}},Nh=class r{constructor(e){this.view=e,this.items=[];let t=n=>{if(n.keyCode==27)Ak(this.view),this.view.focus();else if(n.keyCode==38||n.keyCode==33)this.moveSelection((this.selectedIndex-1+this.items.length)%this.items.length);else if(n.keyCode==40||n.keyCode==34)this.moveSelection((this.selectedIndex+1)%this.items.length);else if(n.keyCode==36)this.moveSelection(0);else if(n.keyCode==35)this.moveSelection(this.items.length-1);else if(n.keyCode==13)this.view.focus();else if(n.keyCode>=65&&n.keyCode<=90&&this.selectedIndex>=0){let{diagnostic:i}=this.items[this.selectedIndex],a=Rk(i.actions);for(let l=0;l{for(let i=0;iAk(this.view)},"\xD7")),this.update()}get selectedIndex(){let e=this.view.state.field(Sn).selected;if(!e)return-1;for(let t=0;t{let u=-1,c;for(let p=s;ps&&(this.items.splice(s,u-s),n=!0)),t&&c.diagnostic==t.diagnostic?c.dom.hasAttribute("aria-selected")||(c.dom.setAttribute("aria-selected","true"),i=c):c.dom.hasAttribute("aria-selected")&&c.dom.removeAttribute("aria-selected"),s++});s({sel:i.dom.getBoundingClientRect(),panel:this.list.getBoundingClientRect()}),write:({sel:a,panel:l})=>{let o=l.height/this.list.offsetHeight;a.topl.bottom&&(this.list.scrollTop+=(a.bottom-l.bottom)/o)}})):this.selectedIndex<0&&this.list.removeAttribute("aria-activedescendant"),n&&this.sync()}sync(){let e=this.list.firstChild;function t(){let s=e;e=s.nextSibling,s.remove()}for(let s of this.items)if(s.dom.parentNode==this.list){for(;e!=s.dom;)t();e=s.dom.nextSibling}else this.list.insertBefore(s.dom,e);for(;e;)t()}moveSelection(e){if(this.selectedIndex<0)return;let t=this.view.state.field(Sn),s=oa(t.diagnostics,this.items[e].diagnostic);s&&this.view.dispatch({selection:{anchor:s.from,head:s.to},scrollIntoView:!0,effects:_k.of(s)})}static open(e){return new r(e)}};function ju(r,e='viewBox="0 0 40 40"'){return`url('data:image/svg+xml,${encodeURIComponent(r)}')`}function Mu(r){return ju(``,'width="6" height="3"')}var D8=at.baseTheme({".cm-diagnostic":{padding:"3px 6px 3px 8px",marginLeft:"-1px",display:"block",whiteSpace:"pre-wrap"},".cm-diagnostic-error":{borderLeft:"5px solid #d11"},".cm-diagnostic-warning":{borderLeft:"5px solid orange"},".cm-diagnostic-info":{borderLeft:"5px solid #999"},".cm-diagnostic-hint":{borderLeft:"5px solid #66d"},".cm-diagnosticAction":{font:"inherit",border:"none",padding:"2px 4px",backgroundColor:"#444",color:"white",borderRadius:"3px",marginLeft:"8px",cursor:"pointer"},".cm-diagnosticSource":{fontSize:"70%",opacity:.7},".cm-lintRange":{backgroundPosition:"left bottom",backgroundRepeat:"repeat-x",paddingBottom:"0.7px"},".cm-lintRange-error":{backgroundImage:Mu("#d11")},".cm-lintRange-warning":{backgroundImage:Mu("orange")},".cm-lintRange-info":{backgroundImage:Mu("#999")},".cm-lintRange-hint":{backgroundImage:Mu("#66d")},".cm-lintRange-active":{backgroundColor:"#ffdd9980"},".cm-tooltip-lint":{padding:0,margin:0},".cm-lintPoint":{position:"relative","&:after":{content:'""',position:"absolute",bottom:0,left:"-2px",borderLeft:"3px solid transparent",borderRight:"3px solid transparent",borderBottom:"4px solid #d11"}},".cm-lintPoint-warning":{"&:after":{borderBottomColor:"orange"}},".cm-lintPoint-info":{"&:after":{borderBottomColor:"#999"}},".cm-lintPoint-hint":{"&:after":{borderBottomColor:"#66d"}},".cm-panel.cm-panel-lint":{position:"relative","& ul":{maxHeight:"100px",overflowY:"auto","& [aria-selected]":{backgroundColor:"#ddd","& u":{textDecoration:"underline"}},"&:focus [aria-selected]":{background_fallback:"#bdf",backgroundColor:"Highlight",color_fallback:"white",color:"HighlightText"},"& u":{textDecoration:"none"},padding:0,margin:0},"& [name=close]":{position:"absolute",top:"0",right:"2px",background:"inherit",border:"none",font:"inherit",padding:0,margin:0}}});function Pk(r){return r=="error"?4:r=="warning"?3:r=="info"?2:1}var Lh=class extends Gr{constructor(e){super(),this.diagnostics=e,this.severity=e.reduce((t,s)=>Pk(t)I8(e,t,s)),t}};function _8(r,e){let t=s=>{let n=e.getBoundingClientRect();if(!(s.clientX>n.left-10&&s.clientXn.top-10&&s.clientYe.getBoundingClientRect()}}})}),e.onmouseout=e.onmousemove=null,_8(r,e)}let{hoverTime:n}=r.state.facet(Uu),i=setTimeout(s,n);e.onmouseout=()=>{clearTimeout(i),e.onmouseout=e.onmousemove=null},e.onmousemove=()=>{clearTimeout(i),i=setTimeout(s,n)}}function F8(r,e){let t=Object.create(null);for(let n of e){let i=r.lineAt(n.from);(t[i.from]||(t[i.from]=[])).push(n)}let s=[];for(let n in t)s.push(new Lh(t[n]).range(+n));return Mt.of(s,!0)}var R8=Ap({class:"cm-gutter-lint",markers:r=>r.state.field(Nk)}),Nk=Yt.define({create(){return Mt.empty},update(r,e){r=r.map(e.changes);let t=e.state.facet(Uu).markerFilter;for(let s of e.effects)if(s.is(Qu)){let n=s.value;t&&(n=t(n||[],e.state)),r=F8(e.state.doc,n.slice(0))}return r}}),$h=wt.define(),Lk=Yt.define({create(){return null},update(r,e){return r&&e.docChanged&&(r=Tk(e,r)?null:Object.assign(Object.assign({},r),{pos:e.changes.mapPos(r.pos)})),e.effects.reduce((t,s)=>s.is($h)?s.value:t,r)},provide:r=>Zi.from(r)}),B8=at.baseTheme({".cm-gutter-lint":{width:"1.4em","& .cm-gutterElement":{padding:".2em"}},".cm-lint-marker":{width:"1em",height:"1em"},".cm-lint-marker-info":{content:ju('')},".cm-lint-marker-warning":{content:ju('')},".cm-lint-marker-error":{content:ju('')}}),$k=[Sn,at.decorations.compute([Sn],r=>{let{selected:e,panel:t}=r.field(Sn);return!e||!t||e.from==e.to?yt.none:yt.set([A8.range(e.from,e.to)])}),DC(P8,{hideOn:Tk}),D8],Uu=ct.define({combine(r){return kr(r,{hoverTime:300,markerFilter:null,tooltipFilter:null})}});function Mk(r={}){return[Uu.of(r),Nk,R8,B8,Lk]}var qh=class r{constructor(e,t,s,n,i,a,l,o,u,c=0,p){this.p=e,this.stack=t,this.state=s,this.reducePos=n,this.pos=i,this.score=a,this.buffer=l,this.bufferBase=o,this.curContext=u,this.lookAhead=c,this.parent=p}toString(){return`[${this.stack.filter((e,t)=>t%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(e,t,s=0){let n=e.parser.context;return new r(e,[],t,s,s,0,[],0,n?new Vu(n,n.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(e,t){this.stack.push(this.state,t,this.bufferBase+this.buffer.length),this.state=e}reduce(e){var t;let s=e>>19,n=e&65535,{parser:i}=this.p,a=i.dynamicPrecedence(n);if(a&&(this.score+=a),s==0){this.pushState(i.getGoto(this.state,n,!0),this.reducePos),n=2e3&&!(!((t=this.p.parser.nodeSet.types[n])===null||t===void 0)&&t.isAnonymous)&&(o==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=u):this.p.lastBigReductionSizel;)this.stack.pop();this.reduceContext(n,o)}storeNode(e,t,s,n=4,i=!1){if(e==0&&(!this.stack.length||this.stack[this.stack.length-1]0&&a.buffer[l-4]==0&&a.buffer[l-1]>-1){if(t==s)return;if(a.buffer[l-2]>=t){a.buffer[l-2]=s;return}}}if(!i||this.pos==s)this.buffer.push(e,t,s,n);else{let a=this.buffer.length;if(a>0&&this.buffer[a-4]!=0)for(;a>0&&this.buffer[a-2]>s;)this.buffer[a]=this.buffer[a-4],this.buffer[a+1]=this.buffer[a-3],this.buffer[a+2]=this.buffer[a-2],this.buffer[a+3]=this.buffer[a-1],a-=4,n>4&&(n-=4);this.buffer[a]=e,this.buffer[a+1]=t,this.buffer[a+2]=s,this.buffer[a+3]=n}}shift(e,t,s,n){if(e&131072)this.pushState(e&65535,this.pos);else if(e&262144)this.pos=n,this.shiftContext(t,s),t<=this.p.parser.maxNode&&this.buffer.push(t,s,n,4);else{let i=e,{parser:a}=this.p;(n>this.pos||t<=a.maxNode)&&(this.pos=n,a.stateFlag(i,1)||(this.reducePos=n)),this.pushState(i,s),this.shiftContext(t,s),t<=a.maxNode&&this.buffer.push(t,s,n,4)}}apply(e,t,s,n){e&65536?this.reduce(e):this.shift(e,t,s,n)}useNode(e,t){let s=this.p.reused.length-1;(s<0||this.p.reused[s]!=e)&&(this.p.reused.push(e),s++);let n=this.pos;this.reducePos=this.pos=n+e.length,this.pushState(t,n),this.buffer.push(s,n,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,e,this,this.p.stream.reset(this.pos-e.length)))}split(){let e=this,t=e.buffer.length;for(;t>0&&e.buffer[t-2]>e.reducePos;)t-=4;let s=e.buffer.slice(t),n=e.bufferBase+t;for(;e&&n==e.bufferBase;)e=e.parent;return new r(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,s,n,this.curContext,this.lookAhead,e)}recoverByDelete(e,t){let s=e<=this.p.parser.maxNode;s&&this.storeNode(e,this.pos,t,4),this.storeNode(0,this.pos,t,s?8:4),this.pos=this.reducePos=t,this.score-=190}canShift(e){for(let t=new Qh(this);;){let s=this.p.parser.stateSlot(t.state,4)||this.p.parser.hasAction(t.state,e);if(s==0)return!1;if(!(s&65536))return!0;t.reduce(s)}}recoverByInsert(e){if(this.stack.length>=300)return[];let t=this.p.parser.nextStates(this.state);if(t.length>8||this.stack.length>=120){let n=[];for(let i=0,a;io&1&&l==a)||n.push(t[i],a)}t=n}let s=[];for(let n=0;n>19,n=t&65535,i=this.stack.length-s*3;if(i<0||e.getGoto(this.stack[i],n,!1)<0){let a=this.findForcedReduction();if(a==null)return!1;t=a}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(t),!0}findForcedReduction(){let{parser:e}=this.p,t=[],s=(n,i)=>{if(!t.includes(n))return t.push(n),e.allActions(n,a=>{if(!(a&393216))if(a&65536){let l=(a>>19)-i;if(l>1){let o=a&65535,u=this.stack.length-l*3;if(u>=0&&e.getGoto(this.stack[u],o,!1)>=0)return l<<19|65536|o}}else{let l=s(a,i+1);if(l!=null)return l}})};return s(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(this.stack.length!=3)return!1;let{parser:e}=this.p;return e.data[e.stateSlot(this.state,1)]==65535&&!e.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(e){if(this.state!=e.state||this.stack.length!=e.stack.length)return!1;for(let t=0;tthis.lookAhead&&(this.emitLookAhead(),this.lookAhead=e)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}},Vu=class{constructor(e,t){this.tracker=e,this.context=t,this.hash=e.strict?e.hash(t):0}},Qh=class{constructor(e){this.start=e,this.state=e.state,this.stack=e.stack,this.base=this.stack.length}reduce(e){let t=e&65535,s=e>>19;s==0?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=(s-1)*3;let n=this.start.p.parser.getGoto(this.stack[this.base-3],t,!0);this.state=n}},Uh=class r{constructor(e,t,s){this.stack=e,this.pos=t,this.index=s,this.buffer=e.buffer,this.index==0&&this.maybeNext()}static create(e,t=e.bufferBase+e.buffer.length){return new r(e,t,t-e.bufferBase)}maybeNext(){let e=this.stack.parent;e!=null&&(this.index=this.stack.bufferBase-e.bufferBase,this.stack=e,this.buffer=e.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,this.index==0&&this.maybeNext()}fork(){return new r(this.stack,this.pos,this.index)}};function Fo(r,e=Uint16Array){if(typeof r!="string")return r;let t=null;for(let s=0,n=0;s=92&&a--,a>=34&&a--;let o=a-32;if(o>=46&&(o-=46,l=!0),i+=o,l)break;i*=46}t?t[n++]=i:t=new e(i)}return t}var la=class{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}},jk=new la,Vh=class{constructor(e,t){this.input=e,this.ranges=t,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=jk,this.rangeIndex=0,this.pos=this.chunkPos=t[0].from,this.range=t[0],this.end=t[t.length-1].to,this.readNext()}resolveOffset(e,t){let s=this.range,n=this.rangeIndex,i=this.pos+e;for(;is.to:i>=s.to;){if(n==this.ranges.length-1)return null;let a=this.ranges[++n];i+=a.from-s.to,s=a}return i}clipPos(e){if(e>=this.range.from&&ee)return Math.max(e,t.from);return this.end}peek(e){let t=this.chunkOff+e,s,n;if(t>=0&&t=this.chunk2Pos&&sl.to&&(this.chunk2=this.chunk2.slice(0,l.to-s)),n=this.chunk2.charCodeAt(0)}}return s>=this.token.lookAhead&&(this.token.lookAhead=s+1),n}acceptToken(e,t=0){let s=t?this.resolveOffset(t,-1):this.pos;if(s==null||s=this.chunk2Pos&&this.posthis.range.to?e.slice(0,this.range.to-this.pos):e,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(e=1){for(this.chunkOff+=e;this.pos+e>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();e-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=e,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(e,t){if(t?(this.token=t,t.start=e,t.lookAhead=e+1,t.value=t.extended=-1):this.token=jk,this.pos!=e){if(this.pos=e,e==this.end)return this.setDone(),this;for(;e=this.range.to;)this.range=this.ranges[++this.rangeIndex];e>=this.chunkPos&&e=this.chunkPos&&t<=this.chunkPos+this.chunk.length)return this.chunk.slice(e-this.chunkPos,t-this.chunkPos);if(e>=this.chunk2Pos&&t<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(e-this.chunk2Pos,t-this.chunk2Pos);if(e>=this.range.from&&t<=this.range.to)return this.input.read(e,t);let s="";for(let n of this.ranges){if(n.from>=t)break;n.to>e&&(s+=this.input.read(Math.max(n.from,e),Math.min(n.to,t)))}return s}},Ns=class{constructor(e,t){this.data=e,this.id=t}token(e,t){let{parser:s}=t.p;Wk(this.data,e,t,this.id,s.data,s.tokenPrecTable)}};Ns.prototype.contextual=Ns.prototype.fallback=Ns.prototype.extend=!1;var ua=class{constructor(e,t,s){this.precTable=t,this.elseToken=s,this.data=typeof e=="string"?Fo(e):e}token(e,t){let s=e.pos,n=0;for(;;){let i=e.next<0,a=e.resolveOffset(1,1);if(Wk(this.data,e,t,0,this.data,this.precTable),e.token.value>-1)break;if(this.elseToken==null)return;if(i||n++,a==null)break;e.reset(a,e.token)}n&&(e.reset(s,e.token),e.acceptToken(this.elseToken,n))}};ua.prototype.contextual=Ns.prototype.fallback=Ns.prototype.extend=!1;var ci=class{constructor(e,t={}){this.token=e,this.contextual=!!t.contextual,this.fallback=!!t.fallback,this.extend=!!t.extend}};function Wk(r,e,t,s,n,i){let a=0,l=1<0){let d=r[f];if(o.allows(d)&&(e.token.value==-1||e.token.value==d||L8(d,e.token.value,n,i))){e.acceptToken(d);break}}let c=e.next,p=0,h=r[a+2];if(e.next<0&&h>p&&r[u+h*3-3]==65535){a=r[u+h*3-1];continue e}for(;p>1,d=u+f+(f<<1),m=r[d],g=r[d+1]||65536;if(c=g)p=f+1;else{a=r[d+2],e.advance();continue e}}break}}function qk(r,e,t){for(let s=e,n;(n=r[s])!=65535;s++)if(n==t)return s-e;return-1}function L8(r,e,t,s){let n=qk(t,s,e);return n<0||qk(t,s,r)e)&&!s.type.isError)return t<0?Math.max(0,Math.min(s.to-1,e-25)):Math.min(r.length,Math.max(s.from+1,e+25));if(t<0?s.prevSibling():s.nextSibling())break;if(!s.parent())return t<0?0:r.length}}var Wh=class{constructor(e,t){this.fragments=e,this.nodeSet=t,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let e=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(e){for(this.safeFrom=e.openStart?Qk(e.tree,e.from+e.offset,1)-e.offset:e.from,this.safeTo=e.openEnd?Qk(e.tree,e.to+e.offset,-1)-e.offset:e.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(e.tree),this.start.push(-e.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(e){if(ee)return this.nextStart=a,null;if(i instanceof or){if(a==e){if(a=Math.max(this.safeFrom,e)&&(this.trees.push(i),this.start.push(a),this.index.push(0))}else this.index[t]++,this.nextStart=a+i.length}}},Zh=class{constructor(e,t){this.stream=t,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=e.tokenizers.map(s=>new la)}getActions(e){let t=0,s=null,{parser:n}=e.p,{tokenizers:i}=n,a=n.stateSlot(e.state,3),l=e.curContext?e.curContext.hash:0,o=0;for(let u=0;up.end+25&&(o=Math.max(p.lookAhead,o)),p.value!=0)){let h=t;if(p.extended>-1&&(t=this.addActions(e,p.extended,p.end,t)),t=this.addActions(e,p.value,p.end,t),!c.extend&&(s=p,t>h))break}}for(;this.actions.length>t;)this.actions.pop();return o&&e.setLookAhead(o),!s&&e.pos==this.stream.end&&(s=new la,s.value=e.p.parser.eofTerm,s.start=s.end=e.pos,t=this.addActions(e,s.value,s.end,t)),this.mainToken=s,this.actions}getMainToken(e){if(this.mainToken)return this.mainToken;let t=new la,{pos:s,p:n}=e;return t.start=s,t.end=Math.min(s+1,n.stream.end),t.value=s==n.stream.end?n.parser.eofTerm:0,t}updateCachedToken(e,t,s){let n=this.stream.clipPos(s.pos);if(t.token(this.stream.reset(n,e),s),e.value>-1){let{parser:i}=s.p;for(let a=0;a=0&&s.p.parser.dialect.allows(l>>1)){l&1?e.extended=l>>1:e.value=l>>1;break}}}else e.value=0,e.end=this.stream.clipPos(n+1)}putAction(e,t,s,n){for(let i=0;ie.bufferLength*4?new Wh(s,e.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let e=this.stacks,t=this.minStackPos,s=this.stacks=[],n,i;if(this.bigReductionCount>300&&e.length==1){let[a]=e;for(;a.forceReduce()&&a.stack.length&&a.stack[a.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let a=0;at)s.push(l);else{if(this.advanceStack(l,s,e))continue;{n||(n=[],i=[]),n.push(l);let o=this.tokens.getMainToken(l);i.push(o.value,o.end)}}break}}if(!s.length){let a=n&&$8(n);if(a)return Kr&&console.log("Finish with "+this.stackID(a)),this.stackToTree(a);if(this.parser.strict)throw Kr&&n&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+t);this.recovering||(this.recovering=5)}if(this.recovering&&n){let a=this.stoppedAt!=null&&n[0].pos>this.stoppedAt?n[0]:this.runRecovery(n,i,s);if(a)return Kr&&console.log("Force-finish "+this.stackID(a)),this.stackToTree(a.forceAll())}if(this.recovering){let a=this.recovering==1?1:this.recovering*3;if(s.length>a)for(s.sort((l,o)=>o.score-l.score);s.length>a;)s.pop();s.some(l=>l.reducePos>t)&&this.recovering--}else if(s.length>1){e:for(let a=0;a500&&u.buffer.length>500)if((l.score-u.score||l.buffer.length-u.buffer.length)>0)s.splice(o--,1);else{s.splice(a--,1);continue e}}}s.length>12&&s.splice(12,s.length-12)}this.minStackPos=s[0].pos;for(let a=1;a ":"";if(this.stoppedAt!=null&&n>this.stoppedAt)return e.forceReduce()?e:null;if(this.fragments){let u=e.curContext&&e.curContext.tracker.strict,c=u?e.curContext.hash:0;for(let p=this.fragments.nodeAt(n);p;){let h=this.parser.nodeSet.types[p.type.id]==p.type?i.getGoto(e.state,p.type.id):-1;if(h>-1&&p.length&&(!u||(p.prop(kt.contextHash)||0)==c))return e.useNode(p,h),Kr&&console.log(a+this.stackID(e)+` (via reuse of ${i.getName(p.type.id)})`),!0;if(!(p instanceof or)||p.children.length==0||p.positions[0]>0)break;let f=p.children[0];if(f instanceof or&&p.positions[0]==0)p=f;else break}}let l=i.stateSlot(e.state,4);if(l>0)return e.reduce(l),Kr&&console.log(a+this.stackID(e)+` (via always-reduce ${i.getName(l&65535)})`),!0;if(e.stack.length>=8400)for(;e.stack.length>6e3&&e.forceReduce(););let o=this.tokens.getActions(e);for(let u=0;un?t.push(d):s.push(d)}return!1}advanceFully(e,t){let s=e.pos;for(;;){if(!this.advanceStack(e,null,null))return!1;if(e.pos>s)return Uk(e,t),!0}}runRecovery(e,t,s){let n=null,i=!1;for(let a=0;a ":"";if(l.deadEnd&&(i||(i=!0,l.restart(),Kr&&console.log(c+this.stackID(l)+" (restarted)"),this.advanceFully(l,s))))continue;let p=l.split(),h=c;for(let f=0;p.forceReduce()&&f<10&&(Kr&&console.log(h+this.stackID(p)+" (via force-reduce)"),!this.advanceFully(p,s));f++)Kr&&(h=this.stackID(p)+" -> ");for(let f of l.recoverByInsert(o))Kr&&console.log(c+this.stackID(f)+" (via recover-insert)"),this.advanceFully(f,s);this.stream.end>l.pos?(u==l.pos&&(u++,o=0),l.recoverByDelete(o,u),Kr&&console.log(c+this.stackID(l)+` (via recover-delete ${this.parser.getName(o)})`),Uk(l,s)):(!n||n.scorer,Wu=class{constructor(e){this.start=e.start,this.shift=e.shift||jh,this.reduce=e.reduce||jh,this.reuse=e.reuse||jh,this.hash=e.hash||(()=>0),this.strict=e.strict!==!1}},Zu=class r extends Gi{constructor(e){if(super(),this.wrappers=[],e.version!=14)throw new RangeError(`Parser version (${e.version}) doesn't match runtime version (14)`);let t=e.nodeNames.split(" ");this.minRepeatTerm=t.length;for(let l=0;le.topRules[l][1]),n=[];for(let l=0;l=0)i(c,o,l[u++]);else{let p=l[u+-c];for(let h=-c;h>0;h--)i(l[u++],o,p);u++}}}this.nodeSet=new yo(t.map((l,o)=>Ar.define({name:o>=this.minRepeatTerm?void 0:l,id:o,props:n[o],top:s.indexOf(o)>-1,error:o==0,skipped:e.skippedNodes&&e.skippedNodes.indexOf(o)>-1}))),e.propSources&&(this.nodeSet=this.nodeSet.extend(...e.propSources)),this.strict=!1,this.bufferLength=1024;let a=Fo(e.tokenData);this.context=e.context,this.specializerSpecs=e.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let l=0;ltypeof l=="number"?new Ns(a,l):l),this.topRules=e.topRules,this.dialects=e.dialects||{},this.dynamicPrecedences=e.dynamicPrecedences||null,this.tokenPrecTable=e.tokenPrec,this.termNames=e.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(e,t,s){let n=new zh(this,e,t,s);for(let i of this.wrappers)n=i(n,e,t,s);return n}getGoto(e,t,s=!1){let n=this.goto;if(t>=n[0])return-1;for(let i=n[t+1];;){let a=n[i++],l=a&1,o=n[i++];if(l&&s)return o;for(let u=i+(a>>1);i0}validAction(e,t){return!!this.allActions(e,s=>s==t?!0:null)}allActions(e,t){let s=this.stateSlot(e,4),n=s?t(s):void 0;for(let i=this.stateSlot(e,1);n==null;i+=3){if(this.data[i]==65535)if(this.data[i+1]==1)i=os(this.data,i+2);else break;n=t(os(this.data,i+1))}return n}nextStates(e){let t=[];for(let s=this.stateSlot(e,1);;s+=3){if(this.data[s]==65535)if(this.data[s+1]==1)s=os(this.data,s+2);else break;if(!(this.data[s+2]&1)){let n=this.data[s+1];t.some((i,a)=>a&1&&i==n)||t.push(this.data[s],n)}}return t}configure(e){let t=Object.assign(Object.create(r.prototype),this);if(e.props&&(t.nodeSet=this.nodeSet.extend(...e.props)),e.top){let s=this.topRules[e.top];if(!s)throw new RangeError(`Invalid top rule name ${e.top}`);t.top=s}return e.tokenizers&&(t.tokenizers=this.tokenizers.map(s=>{let n=e.tokenizers.find(i=>i.from==s);return n?n.to:s})),e.specializers&&(t.specializers=this.specializers.slice(),t.specializerSpecs=this.specializerSpecs.map((s,n)=>{let i=e.specializers.find(l=>l.from==s.external);if(!i)return s;let a=Object.assign(Object.assign({},s),{external:i.to});return t.specializers[n]=Vk(a),a})),e.contextTracker&&(t.context=e.contextTracker),e.dialect&&(t.dialect=this.parseDialect(e.dialect)),e.strict!=null&&(t.strict=e.strict),e.wrap&&(t.wrappers=t.wrappers.concat(e.wrap)),e.bufferLength!=null&&(t.bufferLength=e.bufferLength),t}hasWrappers(){return this.wrappers.length>0}getName(e){return this.termNames?this.termNames[e]:String(e<=this.maxNode&&this.nodeSet.types[e].name||e)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(e){let t=this.dynamicPrecedences;return t==null?0:t[e]||0}parseDialect(e){let t=Object.keys(this.dialects),s=t.map(()=>!1);if(e)for(let i of e.split(" ")){let a=t.indexOf(i);a>=0&&(s[a]=!0)}let n=null;for(let i=0;is)&&t.p.parser.stateFlag(t.state,2)&&(!e||e.scorer.external(t,s)<<1|e}return r.get}var M8=310,Zk=1,j8=2,q8=3,Q8=311,U8=313,V8=314,W8=4,Z8=5,z8=0,Yh=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],zk=125,X8=59,Hh=47,G8=42,Y8=43,H8=45,K8=60,J8=44,e6=new Wu({start:!1,shift(r,e){return e==W8||e==Z8||e==U8?r:e==V8},strict:!1}),t6=new ci((r,e)=>{let{next:t}=r;(t==zk||t==-1||e.context)&&r.acceptToken(Q8)},{contextual:!0,fallback:!0}),r6=new ci((r,e)=>{let{next:t}=r,s;Yh.indexOf(t)>-1||t==Hh&&((s=r.peek(1))==Hh||s==G8)||t!=zk&&t!=X8&&t!=-1&&!e.context&&r.acceptToken(M8)},{contextual:!0}),n6=new ci((r,e)=>{let{next:t}=r;if((t==Y8||t==H8)&&(r.advance(),t==r.next)){r.advance();let s=!e.context&&e.canShift(Zk);r.acceptToken(s?Zk:j8)}},{contextual:!0});function Gh(r,e){return r>=65&&r<=90||r>=97&&r<=122||r==95||r>=192||!e&&r>=48&&r<=57}var s6=new ci((r,e)=>{if(r.next!=K8||!e.dialectEnabled(z8)||(r.advance(),r.next==Hh))return;let t=0;for(;Yh.indexOf(r.next)>-1;)r.advance(),t++;if(Gh(r.next,!0)){for(r.advance(),t++;Gh(r.next,!1);)r.advance(),t++;for(;Yh.indexOf(r.next)>-1;)r.advance(),t++;if(r.next==J8)return;for(let s=0;;s++){if(s==7){if(!Gh(r.next,!0))return;break}if(r.next!="extends".charCodeAt(s))break;r.advance(),t++}}r.acceptToken(q8,-t)}),i6=iu({"get set async static":ke.modifier,"for while do if else switch try catch finally return throw break continue default case":ke.controlKeyword,"in of await yield void typeof delete instanceof":ke.operatorKeyword,"let var const using function class extends":ke.definitionKeyword,"import export from":ke.moduleKeyword,"with debugger as new":ke.keyword,TemplateString:ke.special(ke.string),super:ke.atom,BooleanLiteral:ke.bool,this:ke.self,null:ke.null,Star:ke.modifier,VariableName:ke.variableName,"CallExpression/VariableName TaggedTemplateExpression/VariableName":ke.function(ke.variableName),VariableDefinition:ke.definition(ke.variableName),Label:ke.labelName,PropertyName:ke.propertyName,PrivatePropertyName:ke.special(ke.propertyName),"CallExpression/MemberExpression/PropertyName":ke.function(ke.propertyName),"FunctionDeclaration/VariableDefinition":ke.function(ke.definition(ke.variableName)),"ClassDeclaration/VariableDefinition":ke.definition(ke.className),PropertyDefinition:ke.definition(ke.propertyName),PrivatePropertyDefinition:ke.definition(ke.special(ke.propertyName)),UpdateOp:ke.updateOperator,"LineComment Hashbang":ke.lineComment,BlockComment:ke.blockComment,Number:ke.number,String:ke.string,Escape:ke.escape,ArithOp:ke.arithmeticOperator,LogicOp:ke.logicOperator,BitOp:ke.bitwiseOperator,CompareOp:ke.compareOperator,RegExp:ke.regexp,Equals:ke.definitionOperator,Arrow:ke.function(ke.punctuation),": Spread":ke.punctuation,"( )":ke.paren,"[ ]":ke.squareBracket,"{ }":ke.brace,"InterpolationStart InterpolationEnd":ke.special(ke.brace),".":ke.derefOperator,", ;":ke.separator,"@":ke.meta,TypeName:ke.typeName,TypeDefinition:ke.definition(ke.typeName),"type enum interface implements namespace module declare":ke.definitionKeyword,"abstract global Privacy readonly override":ke.modifier,"is keyof unique infer":ke.operatorKeyword,JSXAttributeValue:ke.attributeValue,JSXText:ke.content,"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":ke.angleBracket,"JSXIdentifier JSXNameSpacedName":ke.tagName,"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":ke.attributeName,"JSXBuiltin/JSXIdentifier":ke.standard(ke.tagName)}),a6={__proto__:null,export:18,as:23,from:31,default:34,async:39,function:40,extends:52,this:56,true:64,false:64,null:76,void:80,typeof:84,super:102,new:136,delete:154,yield:163,await:167,class:172,public:229,private:229,protected:229,readonly:231,instanceof:250,satisfies:253,in:254,const:256,import:288,keyof:341,unique:345,infer:351,is:387,abstract:407,implements:409,type:411,let:414,var:416,using:419,interface:425,enum:429,namespace:435,module:437,declare:441,global:445,for:464,of:473,while:476,with:480,do:484,if:488,else:490,switch:494,case:500,try:506,catch:510,finally:514,return:518,throw:522,break:526,continue:530,debugger:534},o6={__proto__:null,async:123,get:125,set:127,declare:189,public:191,private:191,protected:191,static:193,abstract:195,override:197,readonly:203,accessor:205,new:391},l6={__proto__:null,"<":145},Xk=Zu.deserialize({version:14,states:"$=dO%TQ^OOO%[Q^OOO'_Q`OOP(lOWOOO*zQ?NdO'#ChO+RO!bO'#CiO+aO#tO'#CiO+oO!0LbO'#D^O.QQ^O'#DdO.bQ^O'#DoO%[Q^O'#DzO0fQ^O'#ESOOQ?Mr'#E['#E[O1PQWO'#EXOOQO'#Em'#EmOOQO'#If'#IfO1XQWO'#GnO1dQWO'#ElO1iQWO'#ElO3kQ?NdO'#JjO6[Q?NdO'#JkO6xQWO'#F[O6}Q&jO'#FrOOQ?Mr'#Fd'#FdO7YO,YO'#FdO7hQ7[O'#FyO9UQWO'#FxOOQ?Mr'#Jk'#JkOOQ?Mp'#Jj'#JjO9ZQWO'#GrOOQU'#KW'#KWO9fQWO'#ISO9kQ?MxO'#ITOOQU'#JX'#JXOOQU'#IX'#IXQ`Q^OOO`Q^OOO9sQMnO'#DsO9zQ^O'#EOO:RQ^O'#EQO9aQWO'#GnO:YQ7[O'#CnO:hQWO'#EkO:sQWO'#EvO:xQ7[O'#FcO;gQWO'#GnOOQO'#KX'#KXO;lQWO'#KXO;zQWO'#GvO;zQWO'#GwO;zQWO'#GyO9aQWO'#G|OYQWO'#CdO>jQWO'#H]O>rQWO'#HcO>rQWO'#HeO`Q^O'#HgO>rQWO'#HiO>rQWO'#HlO>wQWO'#HrO>|Q?MyO'#HxO%[Q^O'#HzO?XQ?MyO'#H|O?dQ?MyO'#IOO9kQ?MxO'#IQO?oQ?NdO'#ChO@qQ`O'#DiQOQWOOO%[Q^O'#EQOAXQWO'#ETO:YQ7[O'#EkOAdQWO'#EkOAoQpO'#FcOOQU'#Cf'#CfOOQ?Mp'#Dn'#DnOOQ?Mp'#Jn'#JnO%[Q^O'#JnOOQO'#Jr'#JrOOQO'#Ic'#IcOBoQ`O'#EdOOQ?Mp'#Ec'#EcOOQ?Mp'#Ju'#JuOCkQ?NQO'#EdOCuQ`O'#EWOOQO'#Jq'#JqODZQ`O'#JrOEhQ`O'#EWOCuQ`O'#EdPEuO#@ItO'#CaPOOO)CDv)CDvOOOO'#IY'#IYOFQO!bO,59TOOQ?Mr,59T,59TOOOO'#IZ'#IZOF`O#tO,59TO%[Q^O'#D`OOOO'#I]'#I]OFnO!0LbO,59xOOQ?Mr,59x,59xOF|Q^O'#I^OGaQWO'#JlOIcQrO'#JlO+}Q^O'#JlOIjQWO,5:OOJQQWO'#EmOJ_QWO'#J{OJjQWO'#JzOJjQWO'#JzOJrQWO,5;ZOJwQWO'#JyOOQ?Mv,5:Z,5:ZOKOQ^O,5:ZOMPQ?NdO,5:fOMpQWO,5:nONZQ?MxO'#JxONbQWO'#JwO9ZQWO'#JwONvQWO'#JwO! OQWO,5;YO! TQWO'#JwO!#]QrO'#JkOOQ?Mr'#Ch'#ChO%[Q^O'#ESO!#{QpO,5:sOOQO'#Js'#JsOOQO-EnOOQU'#Ja'#JaOOQU,5>o,5>oOOQU-EfQ?NdO,5:jO%[Q^O,5:jO!APQ?NdO,5:lOOQO,5@s,5@sO!ApQ7[O,5=YO!BOQ?MxO'#JbO9UQWO'#JbO!BaQ?MxO,59YO!BlQ`O,59YO!BtQ7[O,59YO:YQ7[O,59YO!CPQWO,5;WO!CXQWO'#H[O!CmQWO'#K]O%[Q^O,5;{O!9jQ`O,5;}O!CuQWO,5=uO!CzQWO,5=uO!DPQWO,5=uO9kQ?MxO,5=uO;zQWO,5=eOOQO'#Cu'#CuO!D_Q`O,5=bO!DgQ7[O,5=cO!DrQWO,5=eO!DwQpO,5=hO!EPQWO'#KXO>wQWO'#HRO9aQWO'#HTO!EUQWO'#HTO:YQ7[O'#HVO!EZQWO'#HVOOQU,5=k,5=kO!E`QWO'#HWO!EqQWO'#CnO!EvQWO,59OO!FQQWO,59OO!HVQ^O,59OOOQU,59O,59OO!HgQ?MxO,59OO%[Q^O,59OO!JrQ^O'#H_OOQU'#H`'#H`OOQU'#Ha'#HaO`Q^O,5=wO!KYQWO,5=wO`Q^O,5=}O`Q^O,5>PO!K_QWO,5>RO`Q^O,5>TO!KdQWO,5>WO!KiQ^O,5>^OOQU,5>d,5>dO%[Q^O,5>dO9kQ?MxO,5>fOOQU,5>h,5>hO# sQWO,5>hOOQU,5>j,5>jO# sQWO,5>jOOQU,5>l,5>lO#!aQ`O'#D[O%[Q^O'#JnO#!kQ`O'#JnO##YQ`O'#DjO##kQ`O'#DjO#%|Q^O'#DjO#&TQWO'#JmO#&]QWO,5:TO#&bQWO'#EqO#&pQWO'#J|O#&xQWO,5;[O#&}Q`O'#DjO#'[Q`O'#EVOOQ?Mr,5:o,5:oO%[Q^O,5:oO#'cQWO,5:oO>wQWO,5;VO!BlQ`O,5;VO!BtQ7[O,5;VO:YQ7[O,5;VO#'kQWO,5@YO#'pQ(CWO,5:sOOQO-ExO+}Q^O,5>xOOQO,5?O,5?OO#*xQ^O'#I^OOQO-E<[-E<[O#+VQWO,5@WO#+_QrO,5@WO#+fQWO,5@fOOQ?Mr1G/j1G/jO%[Q^O,5@gO#+nQWO'#IdOOQO-ErQWO1G3mO$5xQ^O1G3oO$9|Q^O'#HnOOQU1G3r1G3rO$:ZQWO'#HtO>wQWO'#HvOOQU1G3x1G3xO$:cQ^O1G3xO9kQ?MxO1G4OOOQU1G4Q1G4QOOQ?Mp'#GZ'#GZO9kQ?MxO1G4SO9kQ?MxO1G4UO$>jQWO,5@YO!*mQ^O,5;]O9ZQWO,5;]O>wQWO,5:UO!*mQ^O,5:UO!BlQ`O,5:UO$>oQ07bO,5:UOOQO,5;],5;]O$>yQ`O'#I_O$?aQWO,5@XOOQ?Mr1G/o1G/oO$?iQ`O'#IeO$?sQWO,5@hOOQ?Mp1G0v1G0vO##kQ`O,5:UOOQO'#Ib'#IbO$?{Q`O,5:qOOQ?Mv,5:q,5:qO#'fQWO1G0ZOOQ?Mr1G0Z1G0ZO%[Q^O1G0ZOOQ?Mr1G0q1G0qO>wQWO1G0qO!BlQ`O1G0qO!BtQ7[O1G0qOOQ?Mp1G5t1G5tO!BaQ?MxO1G0^OOQO1G0j1G0jO%[Q^O1G0jO$@SQ?MxO1G0jO$@_Q?MxO1G0jO!BlQ`O1G0^OCuQ`O1G0^O$@mQ?MxO1G0jOOQO1G0^1G0^O$ARQ?NdO1G0jPOOO-ExO$AoQWO1G5rO$AwQWO1G6QO$BPQrO1G6RO9ZQWO,5?OO$BZQ?NdO1G6OO%[Q^O1G6OO$BkQ?MxO1G6OO$B|QWO1G5}O$B|QWO1G5}O9ZQWO1G5}O$CUQWO,5?RO9ZQWO,5?ROOQO,5?R,5?RO$CjQWO,5?RO$*oQWO,5?ROOQO-EYOOQU,5>Y,5>YO%[Q^O'#HoO%;tQWO'#HqOOQU,5>`,5>`O9ZQWO,5>`OOQU,5>b,5>bOOQU7+)d7+)dOOQU7+)j7+)jOOQU7+)n7+)nOOQU7+)p7+)pO%;yQ`O1G5tO%<_Q07bO1G0wO%wQWO1G/pO!*mQ^O'#DjOOQO,5>y,5>yOOQO-E<]-E<]OOQO,5?P,5?POOQO-EwQWO7+&]O!BlQ`O7+&]OOQO7+%x7+%xO$ARQ?NdO7+&UOOQO7+&U7+&UO%[Q^O7+&UO%=OQ?MxO7+&UO!BaQ?MxO7+%xO!BlQ`O7+%xO%=ZQ?MxO7+&UO%=iQ?NdO7++jO%[Q^O7++jO%=yQWO7++iO%=yQWO7++iOOQO1G4m1G4mO9ZQWO1G4mO%>RQWO1G4mOOQO7+%}7+%}O#'fQWO<aQWO<iQWO<tQ?NdO,5?ZO%APQ?NdO,5?]O%C[Q?NdO1G2[O%EmQ?NdO1G2nO%GxQ?NdO1G2pO%JTQ7[O,5>zOOQO-E<^-E<^O%J_QrO,5>{O%[Q^O,5>{OOQO-E<_-E<_O%JiQWO1G5vOOQ?Mr<ZOOQU,5>],5>]O&wQWO7+%[OOQ?Mr<wQWO<wQWO7+)fO'*yQWO<PO#w$WO(q#}O(r$OO~P#>POP$^OZ$eOn$RO|#zO}#{O!P#|O!i$TO!j#xO!l#yO!p$^O#k$PO#l$QO#m$QO#n$QO#o$SO#p$TO#q$TO#r$dO#s$TO#u$UO#w$WO#y$YO(YVO(q#}O(r$OO~O`#ji!Y#ji#z#ji's#ji(j#ji'q#ji!V#ji!k#jir#ji![#ji%d#ji!d#ji~P#@wOP[XZ[Xn[X|[X}[X!P[X!i[X!j[X!l[X!p[X#][X#heX#k[X#l[X#m[X#n[X#o[X#p[X#q[X#r[X#s[X#u[X#w[X#y[X#z[X$P[X(Y[X(j[X(q[X(r[X!Y[X!Z[X~O#}[X~P#CbOP$^OZ;SOn:vO|#zO}#{O!P#|O!i:xO!j#xO!l#yO!p$^O#k:tO#l:uO#m:uO#n:uO#o:wO#p:xO#q:xO#r;RO#s:xO#u:yO#w:{O#y:}O#z;OO(YVO(j$[O(q#}O(r$OO~O#}.xO~P#EoO#];TO$P;TO#}(_X!Z(_X~P! cO`'^a!Y'^a's'^a'q'^a!k'^a!V'^ar'^a!['^a%d'^a!d'^a~P!:ROP#jiZ#ji`#jin#ji}#ji!Y#ji!i#ji!j#ji!l#ji!p#ji#k#ji#l#ji#m#ji#n#ji#o#ji#p#ji#q#ji#r#ji#s#ji#u#ji#w#ji#y#ji#z#ji's#ji(Y#ji(j#ji'q#ji!V#ji!k#jir#ji![#ji%d#ji!d#ji~P#/OO`$Oi!Y$Oi's$Oi'q$Oi!V$Oi!k$Oir$Oi![$Oi%d$Oi!d$Oi~P!:RO$Z.}O$].}O~O$Z/OO$]/OO~O!d)eO#]/PO![$aX$X$aX$Z$aX$]$aX$d$aX~O!X/QO~O![)hO$X/SO$Z)gO$])gO$d/TO~O!Y;PO!Z(^X~P#EoO!Z/UO~O!d)eO$d(sX~O$d/WO~Ot)wO(Z)xO([/ZO~O!V/_O~P!&kO(q%OOj%[a|%[a!P%[a(r%[a!Y%[a#]%[a~Of%[a#}%[a~P#NPO(r%QOj%^a|%^a!P%^a(q%^a!Y%^a#]%^a~Of%^a#}%^a~P#NrO!YeX!deX!keX!k$vX(jeX~P!/{O!X/hO!Y(YO'|/gO!V(nP!V(xP~P!1sOn*pO!_*nO!`*gO!a*gO!l*_O#X*oO%Z*jO'}!lO~Oo'XO!P/iO!X+VO!Z*mO(OTO(RUO(];cO!Z(pP~P$!]O!k/jO~P#/OO!Y/kO!d#vO(j'mO!k(wX~O!k/pO~O!P%fO!X*[O![%gO'|%eO!k(wP~O#h/rO~O!V$vX!Y$vX!d$}X~P!/{O!Y/sO!V(xX~P#/OO!d/uO~O!V/wO~Og%WOn/{O!d#vO!l%cO(j'mO~O'|/}O~O!d+eO~O`%lO!Y0RO's%lO~O!Z0TO~P!5gO!`0UO!a0UO'}!lO(]!mO~O!P0WO(]!mO~O#X0XO~Of%[a!Y%[a#]%[a#}%[a~P!1UOf%^a!Y%^a#]%^a#}%^a~P!1UO'|&WOf'gX!Y'gX~O!Y*vOf(Va~Of0bO~O|0cO}0cO!P0dOjya(qya(rya!Yya#]ya~Ofya#}ya~P$(OO|)|O!P)}Oj$oa(q$oa(r$oa!Y$oa#]$oa~Of$oa#}$oa~P$(tO|)|O!P)}Oj$qa(q$qa(r$qa!Y$qa#]$qa~Of$qa#}$qa~P$)gO#h0fO~Of%Pa!Y%Pa#]%Pa#}%Pa~P!1UO!d#vO~O#h0iO~O!Y+XO`(|a's(|a~O|#zO}#{O!P#|O!j#xO!l#yO(YVOP!riZ!rin!ri!Y!ri!i!ri!p!ri#k!ri#l!ri#m!ri#n!ri#o!ri#p!ri#q!ri#r!ri#s!ri#u!ri#w!ri#y!ri#z!ri(j!ri(q!ri(r!ri~O`!ri's!ri'q!ri!V!ri!k!rir!ri![!ri%d!ri!d!ri~P$+UOg%WOn$uOo$tOp$tOv%YOx%ZOz;YO!P$|O![$}O!fX#>_#>e#>s#?Y#@w#AV#A^#Br#CQ#Dl#Dz#EQ#EW#E^#Eh#En#Et#FO#Fb#FhPPPPPPPPPP#FnPPPPPPP#Gc#Jj#Ky#LQ#LYPPPP$#`$&W$,p$,s$,v$-c$-f$-i$-p$-xP$.OP$.l$.p$/h$0v$0{$1cPP$1h$1n$1rP$1u$1y$1}$2s$3[$3s$3w$3z$3}$4T$4W$4[$4`R!|RoqOXst!Z#d%k&o&q&r&t,m,r2P2SY!vQ']-_1d5fQ%rvQ%zyQ&R|Q&g!VS'T!e-VQ'c!iS'i!r!yU*g$}*X*lQ+k%{Q+x&TQ,^&aQ-]'[Q-g'dQ-o'jQ0U*nQ1n,_R;b:o%QdOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#y#|$P$Q$R$S$T$U$V$W$X$Y$Z$b$f%k%r&P&h&k&o&q&r&t&x'Q'_'o(P(R(X(`(t(x(|){+S+W,j,m,r-c-k-y.P.q.x/i0d0i0y1g1w1x1z1|2P2S2U2u2{3c5c5m5}6O6R6f8P8U8e8oS#q]:l!r)^$]$n'U)p-O-R/Q2e3x5a6]9`9q:k:n:o:r:s:t:u:v:w:x:y:z:{:|:};O;P;T;b;d;e;g;o;p;y;z < TypeParamList TypeDefinition extends ThisType this LiteralType ArithOp Number BooleanLiteral TemplateType InterpolationEnd Interpolation InterpolationStart NullType null VoidType void TypeofType typeof MemberExpression . ?. PropertyName [ TemplateString Escape Interpolation super RegExp ] ArrayExpression Spread , } { ObjectExpression Property async get set PropertyDefinition Block : NewTarget new NewExpression TypeArgList CompareOp < ) ( ArgList UnaryExpression delete LogicOp BitOp YieldExpression yield AwaitExpression await ParenthesizedExpression ClassExpression class ClassBody MethodDeclaration Decorator @ MemberExpression PrivatePropertyName CallExpression declare Privacy static abstract override PrivatePropertyDefinition PropertyDeclaration readonly accessor Optional TypeAnnotation Equals StaticBlock FunctionExpression ArrowFunction ParamList ParamList ArrayPattern ObjectPattern PatternProperty Privacy readonly Arrow MemberExpression BinaryExpression ArithOp ArithOp ArithOp ArithOp BitOp CompareOp instanceof satisfies in const CompareOp BitOp BitOp BitOp LogicOp LogicOp ConditionalExpression LogicOp LogicOp AssignmentExpression UpdateOp PostfixExpression CallExpression TaggedTemplateExpression DynamicImport import ImportMeta JSXElement JSXSelfCloseEndTag JSXSelfClosingTag JSXIdentifier JSXBuiltin JSXIdentifier JSXNamespacedName JSXMemberExpression JSXSpreadAttribute JSXAttribute JSXAttributeValue JSXEscape JSXEndTag JSXOpenTag JSXFragmentTag JSXText JSXEscape JSXStartCloseTag JSXCloseTag PrefixCast ArrowFunction TypeParamList SequenceExpression KeyofType keyof UniqueType unique ImportType InferredType infer TypeName ParenthesizedType FunctionSignature ParamList NewSignature IndexedType TupleType Label ArrayType ReadonlyType ObjectType MethodType PropertyType IndexSignature PropertyDefinition CallSignature TypePredicate is NewSignature new UnionType LogicOp IntersectionType LogicOp ConditionalType ParameterizedType ClassDeclaration abstract implements type VariableDeclaration let var using TypeAliasDeclaration InterfaceDeclaration interface EnumDeclaration enum EnumBody NamespaceDeclaration namespace module AmbientDeclaration declare GlobalDeclaration global ClassDeclaration ClassBody AmbientFunctionDeclaration ExportGroup VariableName VariableName ImportDeclaration ImportGroup ForStatement for ForSpec ForInSpec ForOfSpec of WhileStatement while WithStatement with DoStatement do IfStatement if else SwitchStatement switch SwitchBody CaseLabel case DefaultLabel TryStatement try CatchClause catch FinallyClause finally ReturnStatement return ThrowStatement throw BreakStatement break ContinueStatement continue DebuggerStatement debugger LabeledStatement ExpressionStatement SingleExpression SingleClassItem",maxTerm:373,context:e6,nodeProps:[["isolate",-8,4,5,13,33,35,48,50,52,""],["group",-26,8,16,18,65,202,206,210,211,213,216,219,229,231,237,239,241,243,246,252,258,260,262,264,266,268,269,"Statement",-33,12,13,28,31,32,38,48,51,52,54,59,67,69,76,80,82,84,85,107,108,117,118,135,138,140,141,142,143,145,146,165,166,168,"Expression",-23,27,29,33,37,39,41,169,171,173,174,176,177,178,180,181,182,184,185,186,196,198,200,201,"Type",-3,88,100,106,"ClassItem"],["openedBy",22,"<",34,"InterpolationStart",53,"[",57,"{",73,"(",158,"JSXStartCloseTag"],["closedBy",23,">",36,"InterpolationEnd",47,"]",58,"}",74,")",163,"JSXEndTag"]],propSources:[i6],skippedNodes:[0,4,5,272],repeatNodeCount:37,tokenData:"$HR07[R!bOX%ZXY+gYZ-yZ[+g[]%Z]^.c^p%Zpq+gqr/mrs3cst:_tuEruvJSvwLkwx! Yxy!'iyz!(sz{!)}{|!,q|}!.O}!O!,q!O!P!/Y!P!Q!9j!Q!R#:O!R![#<_![!]#I_!]!^#Jk!^!_#Ku!_!`$![!`!a$$v!a!b$*T!b!c$.S!c!}Er!}#O$/^#O#P$0h#P#Q$6P#Q#R$7Z#R#SEr#S#T$8h#T#o$9r#o#p$>S#p#q$>x#q#r$@Y#r#s$Af#s$f%Z$f$g+g$g#BYEr#BY#BZ$Bp#BZ$ISEr$IS$I_$Bp$I_$I|Er$I|$I}$E{$I}$JO$E{$JO$JTEr$JT$JU$Bp$JU$KVEr$KV$KW$Bp$KW&FUEr&FU&FV$Bp&FV;'SEr;'S;=`I|<%l?HTEr?HT?HU$Bp?HUOEr(n%d_$g&j(Pp(S!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z&j&hT$g&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c&j&zP;=`<%l&c'|'U]$g&j(S!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!b(SU(S!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}!b(iP;=`<%l'}'|(oP;=`<%l&}'[(y]$g&j(PpOY(rYZ&cZr(rrs&cs!^(r!^!_)r!_#O(r#O#P&c#P#o(r#o#p)r#p;'S(r;'S;=`*a<%lO(rp)wU(PpOY)rZr)rs#O)r#P;'S)r;'S;=`*Z<%lO)rp*^P;=`<%l)r'[*dP;=`<%l(r#S*nX(Pp(S!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g#S+^P;=`<%l*g(n+dP;=`<%l%Z07[+rq$g&j(Pp(S!b'u0/lOX%ZXY+gYZ&cZ[+g[p%Zpq+gqr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p$f%Z$f$g+g$g#BY%Z#BY#BZ+g#BZ$IS%Z$IS$I_+g$I_$JT%Z$JT$JU+g$JU$KV%Z$KV$KW+g$KW&FU%Z&FU&FV+g&FV;'S%Z;'S;=`+a<%l?HT%Z?HT?HU+g?HUO%Z07[.ST(Q#S$g&j'v0/lO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c07[.n_$g&j(Pp(S!b'v0/lOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z)3p/x`$g&j!p),Q(Pp(S!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`0z!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW1V`#u(Ch$g&j(Pp(S!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`2X!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW2d_#u(Ch$g&j(Pp(S!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'At3l_(O':f$g&j(S!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k(^4r_$g&j(S!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k&z5vX$g&jOr5qrs6cs!^5q!^!_6y!_#o5q#o#p6y#p;'S5q;'S;=`7h<%lO5q&z6jT$b`$g&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c`6|TOr6yrs7]s;'S6y;'S;=`7b<%lO6y`7bO$b``7eP;=`<%l6y&z7kP;=`<%l5q(^7w]$b`$g&j(S!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!r8uZ(S!bOY8pYZ6yZr8prs9hsw8pwx6yx#O8p#O#P6y#P;'S8p;'S;=`:R<%lO8p!r9oU$b`(S!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}!r:UP;=`<%l8p(^:[P;=`<%l4k%9[:hh$g&j(Pp(S!bOY%ZYZ&cZq%Zqr`#P#o`x!^=^!^!_?q!_#O=^#O#P>`#P#o=^#o#p?q#p;'S=^;'S;=`@h<%lO=^&n>gXVS$g&jOY>`YZ&cZ!^>`!^!_?S!_#o>`#o#p?S#p;'S>`;'S;=`?k<%lO>`S?XSVSOY?SZ;'S?S;'S;=`?e<%lO?SS?hP;=`<%l?S&n?nP;=`<%l>`!f?xWVS(S!bOY?qZw?qwx?Sx#O?q#O#P?S#P;'S?q;'S;=`@b<%lO?q!f@eP;=`<%l?q(Q@kP;=`<%l=^'`@w]VS$g&j(PpOY@nYZ&cZr@nrs>`s!^@n!^!_Ap!_#O@n#O#P>`#P#o@n#o#pAp#p;'S@n;'S;=`Bg<%lO@ntAwWVS(PpOYApZrAprs?Ss#OAp#O#P?S#P;'SAp;'S;=`Ba<%lOAptBdP;=`<%lAp'`BjP;=`<%l@n#WBvYVS(Pp(S!bOYBmZrBmrs?qswBmwxApx#OBm#O#P?S#P;'SBm;'S;=`Cf<%lOBm#WCiP;=`<%lBm(rCoP;=`<%l^!Q^$g&j!U7`OY!=yYZ&cZ!P!=y!P!Q!>|!Q!^!=y!^!_!@c!_!}!=y!}#O!CW#O#P!Dy#P#o!=y#o#p!@c#p;'S!=y;'S;=`!Ek<%lO!=y|#X#Z&c#Z#[!>|#[#]&c#]#^!>|#^#a&c#a#b!>|#b#g&c#g#h!>|#h#i&c#i#j!>|#j#k!>|#k#m&c#m#n!>|#n#o&c#p;'S&c;'S;=`&w<%lO&c7`!@hX!U7`OY!@cZ!P!@c!P!Q!AT!Q!}!@c!}#O!Ar#O#P!Bq#P;'S!@c;'S;=`!CQ<%lO!@c7`!AYW!U7`#W#X!AT#Z#[!AT#]#^!AT#a#b!AT#g#h!AT#i#j!AT#j#k!AT#m#n!AT7`!AuVOY!ArZ#O!Ar#O#P!B[#P#Q!@c#Q;'S!Ar;'S;=`!Bk<%lO!Ar7`!B_SOY!ArZ;'S!Ar;'S;=`!Bk<%lO!Ar7`!BnP;=`<%l!Ar7`!BtSOY!@cZ;'S!@c;'S;=`!CQ<%lO!@c7`!CTP;=`<%l!@c^!Ezl$g&j(S!b!U7`OY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#W&}#W#X!Eq#X#Z&}#Z#[!Eq#[#]&}#]#^!Eq#^#a&}#a#b!Eq#b#g&}#g#h!Eq#h#i&}#i#j!Eq#j#k!Eq#k#m&}#m#n!Eq#n#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}8r!GyZ(S!b!U7`OY!GrZw!Grwx!@cx!P!Gr!P!Q!Hl!Q!}!Gr!}#O!JU#O#P!Bq#P;'S!Gr;'S;=`!J|<%lO!Gr8r!Hse(S!b!U7`OY'}Zw'}x#O'}#P#W'}#W#X!Hl#X#Z'}#Z#[!Hl#[#]'}#]#^!Hl#^#a'}#a#b!Hl#b#g'}#g#h!Hl#h#i'}#i#j!Hl#j#k!Hl#k#m'}#m#n!Hl#n;'S'};'S;=`(f<%lO'}8r!JZX(S!bOY!JUZw!JUwx!Arx#O!JU#O#P!B[#P#Q!Gr#Q;'S!JU;'S;=`!Jv<%lO!JU8r!JyP;=`<%l!JU8r!KPP;=`<%l!Gr>^!KZ^$g&j(S!bOY!KSYZ&cZw!KSwx!CWx!^!KS!^!_!JU!_#O!KS#O#P!DR#P#Q!^!LYP;=`<%l!KS>^!L`P;=`<%l!_#c#d#Bq#d#l%Z#l#m#Es#m#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#_#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#>j_$g&j(Pp(S!bo'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#?rd$g&j(Pp(S!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#AQ!R!S#AQ!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#AQ#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#A]f$g&j(Pp(S!bo'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#AQ!R!S#AQ!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#AQ#S#b%Z#b#c#>_#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#Bzc$g&j(Pp(S!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!Y#DV!Y!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#DV#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#Dbe$g&j(Pp(S!bo'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!Y#DV!Y!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#DV#S#b%Z#b#c#>_#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#E|g$g&j(Pp(S!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![#Ge![!^%Z!^!_*g!_!c%Z!c!i#Ge!i#O%Z#O#P&c#P#R%Z#R#S#Ge#S#T%Z#T#Z#Ge#Z#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#Gpi$g&j(Pp(S!bo'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![#Ge![!^%Z!^!_*g!_!c%Z!c!i#Ge!i#O%Z#O#P&c#P#R%Z#R#S#Ge#S#T%Z#T#Z#Ge#Z#b%Z#b#c#>_#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z*)x#Il_!d$b$g&j#})Lv(Pp(S!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z)[#Jv_`l$g&j(Pp(S!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z04f#LS^g#)`!i-PP;=`<%l$9r#Jf$>]X![#Hb(Pp(S!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g,#x$?Ta(q+JY$g&j(Pp(S!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p#q$,u#q;'S%Z;'S;=`+a<%lO%Z(Kd$@g_!Z(Cdr`$g&j(Pp(S!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z?O$Aq_!q7`$g&j(Pp(S!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z07[$CR|$g&j(Pp(S!b'u0/l$Z#t'|,2j(]$I[OX%ZXY+gYZ&cZ[+g[p%Zpq+gqr%Zrs&}st%ZtuEruw%Zwx(rx}%Z}!OGv!O!Q%Z!Q![Er![!^%Z!^!_*g!_!c%Z!c!}Er!}#O%Z#O#P&c#P#R%Z#R#SEr#S#T%Z#T#oEr#o#p*g#p$f%Z$f$g+g$g#BYEr#BY#BZ$Bp#BZ$ISEr$IS$I_$Bp$I_$JTEr$JT$JU$Bp$JU$KVEr$KV$KW$Bp$KW&FUEr&FU&FV$Bp&FV;'SEr;'S;=`I|<%l?HTEr?HT?HU$Bp?HUOEr07[$F^k$g&j(Pp(S!b'v0/l$Z#t'|,2j(]$I[OY%ZYZ&cZr%Zrs&}st%ZtuEruw%Zwx(rx}%Z}!OGv!O!Q%Z!Q![Er![!^%Z!^!_*g!_!c%Z!c!}Er!}#O%Z#O#P&c#P#R%Z#R#SEr#S#T%Z#T#oEr#o#p*g#p$g%Z$g;'SEr;'S;=`I|<%lOEr",tokenizers:[r6,n6,s6,2,3,4,5,6,7,8,9,10,11,12,13,14,t6,new ua("$S~RRtu[#O#Pg#S#T#|~_P#o#pb~gOt~~jVO#i!P#i#j!U#j#l!P#l#m!q#m;'S!P;'S;=`#v<%lO!P~!UO!R~~!XS!Q![!e!c!i!e#T#Z!e#o#p#Z~!hR!Q![!q!c!i!q#T#Z!q~!tR!Q![!}!c!i!}#T#Z!}~#QR!Q![!P!c!i!P#T#Z!P~#^R!Q![#g!c!i#g#T#Z#g~#jS!Q![#g!c!i#g#T#Z#g#q#r!P~#yP;=`<%l!P~$RO([~~",141,333),new ua("j~RQYZXz{^~^O'y~~aP!P!Qd~iO'z~~",25,316)],topRules:{Script:[0,6],SingleExpression:[1,270],SingleClassItem:[2,271]},dialects:{jsx:0,ts:14840},dynamicPrecedences:{70:1,80:1,82:1,166:1,194:1},specialized:[{term:320,get:r=>a6[r]||-1},{term:335,get:r=>o6[r]||-1},{term:71,get:r=>l6[r]||-1}],tokenPrec:14864});var Jk=[Fr("function ${name}(${params}) {\n ${}\n}",{label:"function",detail:"definition",type:"keyword"}),Fr("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n ${}\n}",{label:"for",detail:"loop",type:"keyword"}),Fr("for (let ${name} of ${collection}) {\n ${}\n}",{label:"for",detail:"of loop",type:"keyword"}),Fr("do {\n ${}\n} while (${})",{label:"do",detail:"loop",type:"keyword"}),Fr("while (${}) {\n ${}\n}",{label:"while",detail:"loop",type:"keyword"}),Fr(`try { +(()=>{var ON=(r=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(r,{get:(e,t)=>(typeof require<"u"?require:e)[t]}):r)(function(r){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+r+'" is not supported')});function Di(r){let e=r.length;for(;--e>=0;)r[e]=0}var SN=0,T1=1,EN=2,wN=3,CN=258,Hc=29,$a=256,Da=$a+1+Hc,Ai=30,Kc=19,D1=2*Da+1,qs=15,Pc=16,kN=7,Jc=256,_1=16,I1=17,R1=18,Qc=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),el=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),AN=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),F1=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),PN=512,ts=new Array((Da+2)*2);Di(ts);var Aa=new Array(Ai*2);Di(Aa);var _a=new Array(PN);Di(_a);var Ia=new Array(CN-wN+1);Di(Ia);var ef=new Array(Hc);Di(ef);var tl=new Array(Ai);Di(tl);function Tc(r,e,t,s,n){this.static_tree=r,this.extra_bits=e,this.extra_base=t,this.elems=s,this.max_length=n,this.has_stree=r&&r.length}var B1,N1,L1;function Dc(r,e){this.dyn_tree=r,this.max_code=0,this.stat_desc=e}var $1=r=>r<256?_a[r]:_a[256+(r>>>7)],Ra=(r,e)=>{r.pending_buf[r.pending++]=e&255,r.pending_buf[r.pending++]=e>>>8&255},Lr=(r,e,t)=>{r.bi_valid>Pc-t?(r.bi_buf|=e<>Pc-r.bi_valid,r.bi_valid+=t-Pc):(r.bi_buf|=e<{Lr(r,t[e*2],t[e*2+1])},M1=(r,e)=>{let t=0;do t|=r&1,r>>>=1,t<<=1;while(--e>0);return t>>>1},TN=r=>{r.bi_valid===16?(Ra(r,r.bi_buf),r.bi_buf=0,r.bi_valid=0):r.bi_valid>=8&&(r.pending_buf[r.pending++]=r.bi_buf&255,r.bi_buf>>=8,r.bi_valid-=8)},DN=(r,e)=>{let t=e.dyn_tree,s=e.max_code,n=e.stat_desc.static_tree,i=e.stat_desc.has_stree,a=e.stat_desc.extra_bits,l=e.stat_desc.extra_base,o=e.stat_desc.max_length,u,c,p,h,f,d,m=0;for(h=0;h<=qs;h++)r.bl_count[h]=0;for(t[r.heap[r.heap_max]*2+1]=0,u=r.heap_max+1;uo&&(h=o,m++),t[c*2+1]=h,!(c>s)&&(r.bl_count[h]++,f=0,c>=l&&(f=a[c-l]),d=t[c*2],r.opt_len+=d*(h+f),i&&(r.static_len+=d*(n[c*2+1]+f)));if(m!==0){do{for(h=o-1;r.bl_count[h]===0;)h--;r.bl_count[h]--,r.bl_count[h+1]+=2,r.bl_count[o]--,m-=2}while(m>0);for(h=o;h!==0;h--)for(c=r.bl_count[h];c!==0;)p=r.heap[--u],!(p>s)&&(t[p*2+1]!==h&&(r.opt_len+=(h-t[p*2+1])*t[p*2],t[p*2+1]=h),c--)}},j1=(r,e,t)=>{let s=new Array(qs+1),n=0,i,a;for(i=1;i<=qs;i++)n=n+t[i-1]<<1,s[i]=n;for(a=0;a<=e;a++){let l=r[a*2+1];l!==0&&(r[a*2]=M1(s[l]++,l))}},_N=()=>{let r,e,t,s,n,i=new Array(qs+1);for(t=0,s=0;s>=7;s{let e;for(e=0;e{r.bi_valid>8?Ra(r,r.bi_buf):r.bi_valid>0&&(r.pending_buf[r.pending++]=r.bi_buf),r.bi_buf=0,r.bi_valid=0},WO=(r,e,t,s)=>{let n=e*2,i=t*2;return r[n]{let s=r.heap[t],n=t<<1;for(;n<=r.heap_len&&(n{let s,n,i=0,a,l;if(r.sym_next!==0)do s=r.pending_buf[r.sym_buf+i++]&255,s+=(r.pending_buf[r.sym_buf+i++]&255)<<8,n=r.pending_buf[r.sym_buf+i++],s===0?Tn(r,n,e):(a=Ia[n],Tn(r,a+$a+1,e),l=Qc[a],l!==0&&(n-=ef[a],Lr(r,n,l)),s--,a=$1(s),Tn(r,a,t),l=el[a],l!==0&&(s-=tl[a],Lr(r,s,l)));while(i{let t=e.dyn_tree,s=e.stat_desc.static_tree,n=e.stat_desc.has_stree,i=e.stat_desc.elems,a,l,o=-1,u;for(r.heap_len=0,r.heap_max=D1,a=0;a>1;a>=1;a--)_c(r,t,a);u=i;do a=r.heap[1],r.heap[1]=r.heap[r.heap_len--],_c(r,t,1),l=r.heap[1],r.heap[--r.heap_max]=a,r.heap[--r.heap_max]=l,t[u*2]=t[a*2]+t[l*2],r.depth[u]=(r.depth[a]>=r.depth[l]?r.depth[a]:r.depth[l])+1,t[a*2+1]=t[l*2+1]=u,r.heap[1]=u++,_c(r,t,1);while(r.heap_len>=2);r.heap[--r.heap_max]=r.heap[1],DN(r,e),j1(t,o,r.bl_count)},ZO=(r,e,t)=>{let s,n=-1,i,a=e[0*2+1],l=0,o=7,u=4;for(a===0&&(o=138,u=3),e[(t+1)*2+1]=65535,s=0;s<=t;s++)i=a,a=e[(s+1)*2+1],!(++l{let s,n=-1,i,a=e[0*2+1],l=0,o=7,u=4;for(a===0&&(o=138,u=3),s=0;s<=t;s++)if(i=a,a=e[(s+1)*2+1],!(++l{let e;for(ZO(r,r.dyn_ltree,r.l_desc.max_code),ZO(r,r.dyn_dtree,r.d_desc.max_code),Uc(r,r.bl_desc),e=Kc-1;e>=3&&r.bl_tree[F1[e]*2+1]===0;e--);return r.opt_len+=3*(e+1)+5+5+4,e},RN=(r,e,t,s)=>{let n;for(Lr(r,e-257,5),Lr(r,t-1,5),Lr(r,s-4,4),n=0;n{let e=4093624447,t;for(t=0;t<=31;t++,e>>>=1)if(e&1&&r.dyn_ltree[t*2]!==0)return 0;if(r.dyn_ltree[9*2]!==0||r.dyn_ltree[10*2]!==0||r.dyn_ltree[13*2]!==0)return 1;for(t=32;t<$a;t++)if(r.dyn_ltree[t*2]!==0)return 1;return 0},XO=!1,BN=r=>{XO||(_N(),XO=!0),r.l_desc=new Dc(r.dyn_ltree,B1),r.d_desc=new Dc(r.dyn_dtree,N1),r.bl_desc=new Dc(r.bl_tree,L1),r.bi_buf=0,r.bi_valid=0,q1(r)},U1=(r,e,t,s)=>{Lr(r,(SN<<1)+(s?1:0),3),Q1(r),Ra(r,t),Ra(r,~t),t&&r.pending_buf.set(r.window.subarray(e,e+t),r.pending),r.pending+=t},NN=r=>{Lr(r,T1<<1,3),Tn(r,Jc,ts),TN(r)},LN=(r,e,t,s)=>{let n,i,a=0;r.level>0?(r.strm.data_type===2&&(r.strm.data_type=FN(r)),Uc(r,r.l_desc),Uc(r,r.d_desc),a=IN(r),n=r.opt_len+3+7>>>3,i=r.static_len+3+7>>>3,i<=n&&(n=i)):n=i=t+5,t+4<=n&&e!==-1?U1(r,e,t,s):r.strategy===4||i===n?(Lr(r,(T1<<1)+(s?1:0),3),zO(r,ts,Aa)):(Lr(r,(EN<<1)+(s?1:0),3),RN(r,r.l_desc.max_code+1,r.d_desc.max_code+1,a+1),zO(r,r.dyn_ltree,r.dyn_dtree)),q1(r),s&&Q1(r)},$N=(r,e,t)=>(r.pending_buf[r.sym_buf+r.sym_next++]=e,r.pending_buf[r.sym_buf+r.sym_next++]=e>>8,r.pending_buf[r.sym_buf+r.sym_next++]=t,e===0?r.dyn_ltree[t*2]++:(r.matches++,e--,r.dyn_ltree[(Ia[t]+$a+1)*2]++,r.dyn_dtree[$1(e)*2]++),r.sym_next===r.sym_end),MN=BN,jN=U1,qN=LN,QN=$N,UN=NN,VN={_tr_init:MN,_tr_stored_block:jN,_tr_flush_block:qN,_tr_tally:QN,_tr_align:UN},WN=(r,e,t,s)=>{let n=r&65535|0,i=r>>>16&65535|0,a=0;for(;t!==0;){a=t>2e3?2e3:t,t-=a;do n=n+e[s++]|0,i=i+n|0;while(--a);n%=65521,i%=65521}return n|i<<16|0},Fa=WN,zN=()=>{let r,e=[];for(var t=0;t<256;t++){r=t;for(var s=0;s<8;s++)r=r&1?3988292384^r>>>1:r>>>1;e[t]=r}return e},ZN=new Uint32Array(zN()),GN=(r,e,t,s)=>{let n=ZN,i=s+t;r^=-1;for(let a=s;a>>8^n[(r^e[a])&255];return r^-1},mr=GN,Vs={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},Zs={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8},{_tr_init:XN,_tr_stored_block:Vc,_tr_flush_block:YN,_tr_tally:bs,_tr_align:HN}=VN,{Z_NO_FLUSH:vs,Z_PARTIAL_FLUSH:KN,Z_FULL_FLUSH:JN,Z_FINISH:en,Z_BLOCK:YO,Z_OK:xr,Z_STREAM_END:HO,Z_STREAM_ERROR:Dn,Z_DATA_ERROR:eL,Z_BUF_ERROR:Ic,Z_DEFAULT_COMPRESSION:tL,Z_FILTERED:rL,Z_HUFFMAN_ONLY:Xo,Z_RLE:nL,Z_FIXED:sL,Z_DEFAULT_STRATEGY:iL,Z_UNKNOWN:aL,Z_DEFLATED:sl}=Zs,oL=9,lL=15,uL=8,cL=29,fL=256,Wc=fL+1+cL,pL=30,hL=19,dL=2*Wc+1,mL=15,It=3,ys=258,_n=ys+It+1,gL=32,Pi=42,tf=57,zc=69,Zc=73,Gc=91,Xc=103,Qs=113,Ca=666,Tr=1,_i=2,Ws=3,Ii=4,yL=3,Us=(r,e)=>(r.msg=Vs[e],e),KO=r=>r*2-(r>4?9:0),gs=r=>{let e=r.length;for(;--e>=0;)r[e]=0},bL=r=>{let e,t,s,n=r.w_size;e=r.hash_size,s=e;do t=r.head[--s],r.head[s]=t>=n?t-n:0;while(--e);e=n,s=e;do t=r.prev[--s],r.prev[s]=t>=n?t-n:0;while(--e)},vL=(r,e,t)=>(e<{let e=r.state,t=e.pending;t>r.avail_out&&(t=r.avail_out),t!==0&&(r.output.set(e.pending_buf.subarray(e.pending_out,e.pending_out+t),r.next_out),r.next_out+=t,e.pending_out+=t,r.total_out+=t,r.avail_out-=t,e.pending-=t,e.pending===0&&(e.pending_out=0))},Wr=(r,e)=>{YN(r,r.block_start>=0?r.block_start:-1,r.strstart-r.block_start,e),r.block_start=r.strstart,Vr(r.strm)},$t=(r,e)=>{r.pending_buf[r.pending++]=e},wa=(r,e)=>{r.pending_buf[r.pending++]=e>>>8&255,r.pending_buf[r.pending++]=e&255},Yc=(r,e,t,s)=>{let n=r.avail_in;return n>s&&(n=s),n===0?0:(r.avail_in-=n,e.set(r.input.subarray(r.next_in,r.next_in+n),t),r.state.wrap===1?r.adler=Fa(r.adler,e,n,t):r.state.wrap===2&&(r.adler=mr(r.adler,e,n,t)),r.next_in+=n,r.total_in+=n,n)},V1=(r,e)=>{let t=r.max_chain_length,s=r.strstart,n,i,a=r.prev_length,l=r.nice_match,o=r.strstart>r.w_size-_n?r.strstart-(r.w_size-_n):0,u=r.window,c=r.w_mask,p=r.prev,h=r.strstart+ys,f=u[s+a-1],d=u[s+a];r.prev_length>=r.good_match&&(t>>=2),l>r.lookahead&&(l=r.lookahead);do if(n=e,!(u[n+a]!==d||u[n+a-1]!==f||u[n]!==u[s]||u[++n]!==u[s+1])){s+=2,n++;do;while(u[++s]===u[++n]&&u[++s]===u[++n]&&u[++s]===u[++n]&&u[++s]===u[++n]&&u[++s]===u[++n]&&u[++s]===u[++n]&&u[++s]===u[++n]&&u[++s]===u[++n]&&sa){if(r.match_start=e,a=i,i>=l)break;f=u[s+a-1],d=u[s+a]}}while((e=p[e&c])>o&&--t!==0);return a<=r.lookahead?a:r.lookahead},Ti=r=>{let e=r.w_size,t,s,n;do{if(s=r.window_size-r.lookahead-r.strstart,r.strstart>=e+(e-_n)&&(r.window.set(r.window.subarray(e,e+e-s),0),r.match_start-=e,r.strstart-=e,r.block_start-=e,r.insert>r.strstart&&(r.insert=r.strstart),bL(r),s+=e),r.strm.avail_in===0)break;if(t=Yc(r.strm,r.window,r.strstart+r.lookahead,s),r.lookahead+=t,r.lookahead+r.insert>=It)for(n=r.strstart-r.insert,r.ins_h=r.window[n],r.ins_h=xs(r,r.ins_h,r.window[n+1]);r.insert&&(r.ins_h=xs(r,r.ins_h,r.window[n+It-1]),r.prev[n&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=n,n++,r.insert--,!(r.lookahead+r.insert{let t=r.pending_buf_size-5>r.w_size?r.w_size:r.pending_buf_size-5,s,n,i,a=0,l=r.strm.avail_in;do{if(s=65535,i=r.bi_valid+42>>3,r.strm.avail_outn+r.strm.avail_in&&(s=n+r.strm.avail_in),s>i&&(s=i),s>8,r.pending_buf[r.pending-2]=~s,r.pending_buf[r.pending-1]=~s>>8,Vr(r.strm),n&&(n>s&&(n=s),r.strm.output.set(r.window.subarray(r.block_start,r.block_start+n),r.strm.next_out),r.strm.next_out+=n,r.strm.avail_out-=n,r.strm.total_out+=n,r.block_start+=n,s-=n),s&&(Yc(r.strm,r.strm.output,r.strm.next_out,s),r.strm.next_out+=s,r.strm.avail_out-=s,r.strm.total_out+=s)}while(a===0);return l-=r.strm.avail_in,l&&(l>=r.w_size?(r.matches=2,r.window.set(r.strm.input.subarray(r.strm.next_in-r.w_size,r.strm.next_in),0),r.strstart=r.w_size,r.insert=r.strstart):(r.window_size-r.strstart<=l&&(r.strstart-=r.w_size,r.window.set(r.window.subarray(r.w_size,r.w_size+r.strstart),0),r.matches<2&&r.matches++,r.insert>r.strstart&&(r.insert=r.strstart)),r.window.set(r.strm.input.subarray(r.strm.next_in-l,r.strm.next_in),r.strstart),r.strstart+=l,r.insert+=l>r.w_size-r.insert?r.w_size-r.insert:l),r.block_start=r.strstart),r.high_wateri&&r.block_start>=r.w_size&&(r.block_start-=r.w_size,r.strstart-=r.w_size,r.window.set(r.window.subarray(r.w_size,r.w_size+r.strstart),0),r.matches<2&&r.matches++,i+=r.w_size,r.insert>r.strstart&&(r.insert=r.strstart)),i>r.strm.avail_in&&(i=r.strm.avail_in),i&&(Yc(r.strm,r.window,r.strstart,i),r.strstart+=i,r.insert+=i>r.w_size-r.insert?r.w_size-r.insert:i),r.high_water>3,i=r.pending_buf_size-i>65535?65535:r.pending_buf_size-i,t=i>r.w_size?r.w_size:i,n=r.strstart-r.block_start,(n>=t||(n||e===en)&&e!==vs&&r.strm.avail_in===0&&n<=i)&&(s=n>i?i:n,a=e===en&&r.strm.avail_in===0&&s===n?1:0,Vc(r,r.block_start,s,a),r.block_start+=s,Vr(r.strm)),a?Ws:Tr)},Rc=(r,e)=>{let t,s;for(;;){if(r.lookahead<_n){if(Ti(r),r.lookahead<_n&&e===vs)return Tr;if(r.lookahead===0)break}if(t=0,r.lookahead>=It&&(r.ins_h=xs(r,r.ins_h,r.window[r.strstart+It-1]),t=r.prev[r.strstart&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=r.strstart),t!==0&&r.strstart-t<=r.w_size-_n&&(r.match_length=V1(r,t)),r.match_length>=It)if(s=bs(r,r.strstart-r.match_start,r.match_length-It),r.lookahead-=r.match_length,r.match_length<=r.max_lazy_match&&r.lookahead>=It){r.match_length--;do r.strstart++,r.ins_h=xs(r,r.ins_h,r.window[r.strstart+It-1]),t=r.prev[r.strstart&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=r.strstart;while(--r.match_length!==0);r.strstart++}else r.strstart+=r.match_length,r.match_length=0,r.ins_h=r.window[r.strstart],r.ins_h=xs(r,r.ins_h,r.window[r.strstart+1]);else s=bs(r,0,r.window[r.strstart]),r.lookahead--,r.strstart++;if(s&&(Wr(r,!1),r.strm.avail_out===0))return Tr}return r.insert=r.strstart{let t,s,n;for(;;){if(r.lookahead<_n){if(Ti(r),r.lookahead<_n&&e===vs)return Tr;if(r.lookahead===0)break}if(t=0,r.lookahead>=It&&(r.ins_h=xs(r,r.ins_h,r.window[r.strstart+It-1]),t=r.prev[r.strstart&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=r.strstart),r.prev_length=r.match_length,r.prev_match=r.match_start,r.match_length=It-1,t!==0&&r.prev_length4096)&&(r.match_length=It-1)),r.prev_length>=It&&r.match_length<=r.prev_length){n=r.strstart+r.lookahead-It,s=bs(r,r.strstart-1-r.prev_match,r.prev_length-It),r.lookahead-=r.prev_length-1,r.prev_length-=2;do++r.strstart<=n&&(r.ins_h=xs(r,r.ins_h,r.window[r.strstart+It-1]),t=r.prev[r.strstart&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=r.strstart);while(--r.prev_length!==0);if(r.match_available=0,r.match_length=It-1,r.strstart++,s&&(Wr(r,!1),r.strm.avail_out===0))return Tr}else if(r.match_available){if(s=bs(r,0,r.window[r.strstart-1]),s&&Wr(r,!1),r.strstart++,r.lookahead--,r.strm.avail_out===0)return Tr}else r.match_available=1,r.strstart++,r.lookahead--}return r.match_available&&(s=bs(r,0,r.window[r.strstart-1]),r.match_available=0),r.insert=r.strstart{let t,s,n,i,a=r.window;for(;;){if(r.lookahead<=ys){if(Ti(r),r.lookahead<=ys&&e===vs)return Tr;if(r.lookahead===0)break}if(r.match_length=0,r.lookahead>=It&&r.strstart>0&&(n=r.strstart-1,s=a[n],s===a[++n]&&s===a[++n]&&s===a[++n])){i=r.strstart+ys;do;while(s===a[++n]&&s===a[++n]&&s===a[++n]&&s===a[++n]&&s===a[++n]&&s===a[++n]&&s===a[++n]&&s===a[++n]&&nr.lookahead&&(r.match_length=r.lookahead)}if(r.match_length>=It?(t=bs(r,1,r.match_length-It),r.lookahead-=r.match_length,r.strstart+=r.match_length,r.match_length=0):(t=bs(r,0,r.window[r.strstart]),r.lookahead--,r.strstart++),t&&(Wr(r,!1),r.strm.avail_out===0))return Tr}return r.insert=0,e===en?(Wr(r,!0),r.strm.avail_out===0?Ws:Ii):r.sym_next&&(Wr(r,!1),r.strm.avail_out===0)?Tr:_i},OL=(r,e)=>{let t;for(;;){if(r.lookahead===0&&(Ti(r),r.lookahead===0)){if(e===vs)return Tr;break}if(r.match_length=0,t=bs(r,0,r.window[r.strstart]),r.lookahead--,r.strstart++,t&&(Wr(r,!1),r.strm.avail_out===0))return Tr}return r.insert=0,e===en?(Wr(r,!0),r.strm.avail_out===0?Ws:Ii):r.sym_next&&(Wr(r,!1),r.strm.avail_out===0)?Tr:_i};function Pn(r,e,t,s,n){this.good_length=r,this.max_lazy=e,this.nice_length=t,this.max_chain=s,this.func=n}var ka=[new Pn(0,0,0,0,W1),new Pn(4,4,8,4,Rc),new Pn(4,5,16,8,Rc),new Pn(4,6,32,32,Rc),new Pn(4,4,16,16,Ci),new Pn(8,16,32,32,Ci),new Pn(8,16,128,128,Ci),new Pn(8,32,128,256,Ci),new Pn(32,128,258,1024,Ci),new Pn(32,258,258,4096,Ci)],SL=r=>{r.window_size=2*r.w_size,gs(r.head),r.max_lazy_match=ka[r.level].max_lazy,r.good_match=ka[r.level].good_length,r.nice_match=ka[r.level].nice_length,r.max_chain_length=ka[r.level].max_chain,r.strstart=0,r.block_start=0,r.lookahead=0,r.insert=0,r.match_length=r.prev_length=It-1,r.match_available=0,r.ins_h=0};function EL(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=sl,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(dL*2),this.dyn_dtree=new Uint16Array((2*pL+1)*2),this.bl_tree=new Uint16Array((2*hL+1)*2),gs(this.dyn_ltree),gs(this.dyn_dtree),gs(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(mL+1),this.heap=new Uint16Array(2*Wc+1),gs(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*Wc+1),gs(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}var Ma=r=>{if(!r)return 1;let e=r.state;return!e||e.strm!==r||e.status!==Pi&&e.status!==tf&&e.status!==zc&&e.status!==Zc&&e.status!==Gc&&e.status!==Xc&&e.status!==Qs&&e.status!==Ca?1:0},z1=r=>{if(Ma(r))return Us(r,Dn);r.total_in=r.total_out=0,r.data_type=aL;let e=r.state;return e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap===2?tf:e.wrap?Pi:Qs,r.adler=e.wrap===2?0:1,e.last_flush=-2,XN(e),xr},Z1=r=>{let e=z1(r);return e===xr&&SL(r.state),e},wL=(r,e)=>Ma(r)||r.state.wrap!==2?Dn:(r.state.gzhead=e,xr),G1=(r,e,t,s,n,i)=>{if(!r)return Dn;let a=1;if(e===tL&&(e=6),s<0?(a=0,s=-s):s>15&&(a=2,s-=16),n<1||n>oL||t!==sl||s<8||s>15||e<0||e>9||i<0||i>sL||s===8&&a!==1)return Us(r,Dn);s===8&&(s=9);let l=new EL;return r.state=l,l.strm=r,l.status=Pi,l.wrap=a,l.gzhead=null,l.w_bits=s,l.w_size=1<G1(r,e,sl,lL,uL,iL),kL=(r,e)=>{if(Ma(r)||e>YO||e<0)return r?Us(r,Dn):Dn;let t=r.state;if(!r.output||r.avail_in!==0&&!r.input||t.status===Ca&&e!==en)return Us(r,r.avail_out===0?Ic:Dn);let s=t.last_flush;if(t.last_flush=e,t.pending!==0){if(Vr(r),r.avail_out===0)return t.last_flush=-1,xr}else if(r.avail_in===0&&KO(e)<=KO(s)&&e!==en)return Us(r,Ic);if(t.status===Ca&&r.avail_in!==0)return Us(r,Ic);if(t.status===Pi&&t.wrap===0&&(t.status=Qs),t.status===Pi){let n=sl+(t.w_bits-8<<4)<<8,i=-1;if(t.strategy>=Xo||t.level<2?i=0:t.level<6?i=1:t.level===6?i=2:i=3,n|=i<<6,t.strstart!==0&&(n|=gL),n+=31-n%31,wa(t,n),t.strstart!==0&&(wa(t,r.adler>>>16),wa(t,r.adler&65535)),r.adler=1,t.status=Qs,Vr(r),t.pending!==0)return t.last_flush=-1,xr}if(t.status===tf){if(r.adler=0,$t(t,31),$t(t,139),$t(t,8),t.gzhead)$t(t,(t.gzhead.text?1:0)+(t.gzhead.hcrc?2:0)+(t.gzhead.extra?4:0)+(t.gzhead.name?8:0)+(t.gzhead.comment?16:0)),$t(t,t.gzhead.time&255),$t(t,t.gzhead.time>>8&255),$t(t,t.gzhead.time>>16&255),$t(t,t.gzhead.time>>24&255),$t(t,t.level===9?2:t.strategy>=Xo||t.level<2?4:0),$t(t,t.gzhead.os&255),t.gzhead.extra&&t.gzhead.extra.length&&($t(t,t.gzhead.extra.length&255),$t(t,t.gzhead.extra.length>>8&255)),t.gzhead.hcrc&&(r.adler=mr(r.adler,t.pending_buf,t.pending,0)),t.gzindex=0,t.status=zc;else if($t(t,0),$t(t,0),$t(t,0),$t(t,0),$t(t,0),$t(t,t.level===9?2:t.strategy>=Xo||t.level<2?4:0),$t(t,yL),t.status=Qs,Vr(r),t.pending!==0)return t.last_flush=-1,xr}if(t.status===zc){if(t.gzhead.extra){let n=t.pending,i=(t.gzhead.extra.length&65535)-t.gzindex;for(;t.pending+i>t.pending_buf_size;){let l=t.pending_buf_size-t.pending;if(t.pending_buf.set(t.gzhead.extra.subarray(t.gzindex,t.gzindex+l),t.pending),t.pending=t.pending_buf_size,t.gzhead.hcrc&&t.pending>n&&(r.adler=mr(r.adler,t.pending_buf,t.pending-n,n)),t.gzindex+=l,Vr(r),t.pending!==0)return t.last_flush=-1,xr;n=0,i-=l}let a=new Uint8Array(t.gzhead.extra);t.pending_buf.set(a.subarray(t.gzindex,t.gzindex+i),t.pending),t.pending+=i,t.gzhead.hcrc&&t.pending>n&&(r.adler=mr(r.adler,t.pending_buf,t.pending-n,n)),t.gzindex=0}t.status=Zc}if(t.status===Zc){if(t.gzhead.name){let n=t.pending,i;do{if(t.pending===t.pending_buf_size){if(t.gzhead.hcrc&&t.pending>n&&(r.adler=mr(r.adler,t.pending_buf,t.pending-n,n)),Vr(r),t.pending!==0)return t.last_flush=-1,xr;n=0}t.gzindexn&&(r.adler=mr(r.adler,t.pending_buf,t.pending-n,n)),t.gzindex=0}t.status=Gc}if(t.status===Gc){if(t.gzhead.comment){let n=t.pending,i;do{if(t.pending===t.pending_buf_size){if(t.gzhead.hcrc&&t.pending>n&&(r.adler=mr(r.adler,t.pending_buf,t.pending-n,n)),Vr(r),t.pending!==0)return t.last_flush=-1,xr;n=0}t.gzindexn&&(r.adler=mr(r.adler,t.pending_buf,t.pending-n,n))}t.status=Xc}if(t.status===Xc){if(t.gzhead.hcrc){if(t.pending+2>t.pending_buf_size&&(Vr(r),t.pending!==0))return t.last_flush=-1,xr;$t(t,r.adler&255),$t(t,r.adler>>8&255),r.adler=0}if(t.status=Qs,Vr(r),t.pending!==0)return t.last_flush=-1,xr}if(r.avail_in!==0||t.lookahead!==0||e!==vs&&t.status!==Ca){let n=t.level===0?W1(t,e):t.strategy===Xo?OL(t,e):t.strategy===nL?xL(t,e):ka[t.level].func(t,e);if((n===Ws||n===Ii)&&(t.status=Ca),n===Tr||n===Ws)return r.avail_out===0&&(t.last_flush=-1),xr;if(n===_i&&(e===KN?HN(t):e!==YO&&(Vc(t,0,0,!1),e===JN&&(gs(t.head),t.lookahead===0&&(t.strstart=0,t.block_start=0,t.insert=0))),Vr(r),r.avail_out===0))return t.last_flush=-1,xr}return e!==en?xr:t.wrap<=0?HO:(t.wrap===2?($t(t,r.adler&255),$t(t,r.adler>>8&255),$t(t,r.adler>>16&255),$t(t,r.adler>>24&255),$t(t,r.total_in&255),$t(t,r.total_in>>8&255),$t(t,r.total_in>>16&255),$t(t,r.total_in>>24&255)):(wa(t,r.adler>>>16),wa(t,r.adler&65535)),Vr(r),t.wrap>0&&(t.wrap=-t.wrap),t.pending!==0?xr:HO)},AL=r=>{if(Ma(r))return Dn;let e=r.state.status;return r.state=null,e===Qs?Us(r,eL):xr},PL=(r,e)=>{let t=e.length;if(Ma(r))return Dn;let s=r.state,n=s.wrap;if(n===2||n===1&&s.status!==Pi||s.lookahead)return Dn;if(n===1&&(r.adler=Fa(r.adler,e,t,0)),s.wrap=0,t>=s.w_size){n===0&&(gs(s.head),s.strstart=0,s.block_start=0,s.insert=0);let o=new Uint8Array(s.w_size);o.set(e.subarray(t-s.w_size,t),0),e=o,t=s.w_size}let i=r.avail_in,a=r.next_in,l=r.input;for(r.avail_in=t,r.next_in=0,r.input=e,Ti(s);s.lookahead>=It;){let o=s.strstart,u=s.lookahead-(It-1);do s.ins_h=xs(s,s.ins_h,s.window[o+It-1]),s.prev[o&s.w_mask]=s.head[s.ins_h],s.head[s.ins_h]=o,o++;while(--u);s.strstart=o,s.lookahead=It-1,Ti(s)}return s.strstart+=s.lookahead,s.block_start=s.strstart,s.insert=s.lookahead,s.lookahead=0,s.match_length=s.prev_length=It-1,s.match_available=0,r.next_in=a,r.input=l,r.avail_in=i,s.wrap=n,xr},TL=CL,DL=G1,_L=Z1,IL=z1,RL=wL,FL=kL,BL=AL,NL=PL,LL="pako deflate (from Nodeca project)",Pa={deflateInit:TL,deflateInit2:DL,deflateReset:_L,deflateResetKeep:IL,deflateSetHeader:RL,deflate:FL,deflateEnd:BL,deflateSetDictionary:NL,deflateInfo:LL},$L=(r,e)=>Object.prototype.hasOwnProperty.call(r,e),ML=function(r){let e=Array.prototype.slice.call(arguments,1);for(;e.length;){let t=e.shift();if(t){if(typeof t!="object")throw new TypeError(t+"must be non-object");for(let s in t)$L(t,s)&&(r[s]=t[s])}}return r},jL=r=>{let e=0;for(let s=0,n=r.length;s=252?6:r>=248?5:r>=240?4:r>=224?3:r>=192?2:1;Ba[254]=Ba[254]=1;var qL=r=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(r);let e,t,s,n,i,a=r.length,l=0;for(n=0;n>>6,e[i++]=128|t&63):t<65536?(e[i++]=224|t>>>12,e[i++]=128|t>>>6&63,e[i++]=128|t&63):(e[i++]=240|t>>>18,e[i++]=128|t>>>12&63,e[i++]=128|t>>>6&63,e[i++]=128|t&63);return e},QL=(r,e)=>{if(e<65534&&r.subarray&&X1)return String.fromCharCode.apply(null,r.length===e?r:r.subarray(0,e));let t="";for(let s=0;s{let t=e||r.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(r.subarray(0,e));let s,n,i=new Array(t*2);for(n=0,s=0;s4){i[n++]=65533,s+=l-1;continue}for(a&=l===2?31:l===3?15:7;l>1&&s1){i[n++]=65533;continue}a<65536?i[n++]=a:(a-=65536,i[n++]=55296|a>>10&1023,i[n++]=56320|a&1023)}return QL(i,n)},VL=(r,e)=>{e=e||r.length,e>r.length&&(e=r.length);let t=e-1;for(;t>=0&&(r[t]&192)===128;)t--;return t<0||t===0?e:t+Ba[r[t]]>e?t:e},Na={string2buf:qL,buf2string:UL,utf8border:VL};function WL(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var Y1=WL,H1=Object.prototype.toString,{Z_NO_FLUSH:zL,Z_SYNC_FLUSH:ZL,Z_FULL_FLUSH:GL,Z_FINISH:XL,Z_OK:rl,Z_STREAM_END:YL,Z_DEFAULT_COMPRESSION:HL,Z_DEFAULT_STRATEGY:KL,Z_DEFLATED:JL}=Zs;function ja(r){this.options=il.assign({level:HL,method:JL,chunkSize:16384,windowBits:15,memLevel:8,strategy:KL},r||{});let e=this.options;e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Y1,this.strm.avail_out=0;let t=Pa.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(t!==rl)throw new Error(Vs[t]);if(e.header&&Pa.deflateSetHeader(this.strm,e.header),e.dictionary){let s;if(typeof e.dictionary=="string"?s=Na.string2buf(e.dictionary):H1.call(e.dictionary)==="[object ArrayBuffer]"?s=new Uint8Array(e.dictionary):s=e.dictionary,t=Pa.deflateSetDictionary(this.strm,s),t!==rl)throw new Error(Vs[t]);this._dict_set=!0}}ja.prototype.push=function(r,e){let t=this.strm,s=this.options.chunkSize,n,i;if(this.ended)return!1;for(e===~~e?i=e:i=e===!0?XL:zL,typeof r=="string"?t.input=Na.string2buf(r):H1.call(r)==="[object ArrayBuffer]"?t.input=new Uint8Array(r):t.input=r,t.next_in=0,t.avail_in=t.input.length;;){if(t.avail_out===0&&(t.output=new Uint8Array(s),t.next_out=0,t.avail_out=s),(i===ZL||i===GL)&&t.avail_out<=6){this.onData(t.output.subarray(0,t.next_out)),t.avail_out=0;continue}if(n=Pa.deflate(t,i),n===YL)return t.next_out>0&&this.onData(t.output.subarray(0,t.next_out)),n=Pa.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===rl;if(t.avail_out===0){this.onData(t.output);continue}if(i>0&&t.next_out>0){this.onData(t.output.subarray(0,t.next_out)),t.avail_out=0;continue}if(t.avail_in===0)break}return!0};ja.prototype.onData=function(r){this.chunks.push(r)};ja.prototype.onEnd=function(r){r===rl&&(this.result=il.flattenChunks(this.chunks)),this.chunks=[],this.err=r,this.msg=this.strm.msg};function rf(r,e){let t=new ja(e);if(t.push(r,!0),t.err)throw t.msg||Vs[t.err];return t.result}function e$(r,e){return e=e||{},e.raw=!0,rf(r,e)}function t$(r,e){return e=e||{},e.gzip=!0,rf(r,e)}var r$=ja,n$=rf,s$=e$,i$=t$,a$=Zs,o$={Deflate:r$,deflate:n$,deflateRaw:s$,gzip:i$,constants:a$},Yo=16209,l$=16191,u$=function(e,t){let s,n,i,a,l,o,u,c,p,h,f,d,m,g,y,v,x,S,w,O,C,E,k,A,D=e.state;s=e.next_in,k=e.input,n=s+(e.avail_in-5),i=e.next_out,A=e.output,a=i-(t-e.avail_out),l=i+(e.avail_out-257),o=D.dmax,u=D.wsize,c=D.whave,p=D.wnext,h=D.window,f=D.hold,d=D.bits,m=D.lencode,g=D.distcode,y=(1<>>24,f>>>=S,d-=S,S=x>>>16&255,S===0)A[i++]=x&65535;else if(S&16){w=x&65535,S&=15,S&&(d>>=S,d-=S),d<15&&(f+=k[s++]<>>24,f>>>=S,d-=S,S=x>>>16&255,S&16){if(O=x&65535,S&=15,do){e.msg="invalid distance too far back",D.mode=Yo;break e}if(f>>>=S,d-=S,S=i-a,O>S){if(S=O-S,S>c&&D.sane){e.msg="invalid distance too far back",D.mode=Yo;break e}if(C=0,E=h,p===0){if(C+=u-S,S2;)A[i++]=E[C++],A[i++]=E[C++],A[i++]=E[C++],w-=3;w&&(A[i++]=E[C++],w>1&&(A[i++]=E[C++]))}else{C=i-O;do A[i++]=A[C++],A[i++]=A[C++],A[i++]=A[C++],w-=3;while(w>2);w&&(A[i++]=A[C++],w>1&&(A[i++]=A[C++]))}}else if(S&64){e.msg="invalid distance code",D.mode=Yo;break e}else{x=g[(x&65535)+(f&(1<>3,s-=w,d-=w<<3,f&=(1<{let o=l.bits,u=0,c=0,p=0,h=0,f=0,d=0,m=0,g=0,y=0,v=0,x,S,w,O,C,E=null,k,A=new Uint16Array(ki+1),D=new Uint16Array(ki+1),_=null,B,T,R;for(u=0;u<=ki;u++)A[u]=0;for(c=0;c=1&&A[h]===0;h--);if(f>h&&(f=h),h===0)return n[i++]=1<<24|64<<16|0,n[i++]=1<<24|64<<16|0,l.bits=1,0;for(p=1;p0&&(r===t1||h!==1))return-1;for(D[1]=0,u=1;uJO||r===r1&&y>e1)return 1;for(;;){B=u-m,a[c]+1=k?(T=_[a[c]-k],R=E[a[c]-k]):(T=96,R=0),x=1<>m)+S]=B<<24|T<<16|R|0;while(S!==0);for(x=1<>=1;if(x!==0?(v&=x-1,v+=x):v=0,c++,--A[u]===0){if(u===h)break;u=e[t+a[c]]}if(u>f&&(v&O)!==w){for(m===0&&(m=f),C+=p,d=u-m,g=1<JO||r===r1&&y>e1)return 1;w=v&O,n[w]=f<<24|d<<16|C-i|0}}return v!==0&&(n[C+v]=u-m<<24|64<<16|0),l.bits=f,0},Ta=d$,m$=0,K1=1,J1=2,{Z_FINISH:n1,Z_BLOCK:g$,Z_TREES:Ho,Z_OK:zs,Z_STREAM_END:y$,Z_NEED_DICT:b$,Z_STREAM_ERROR:tn,Z_DATA_ERROR:eS,Z_MEM_ERROR:tS,Z_BUF_ERROR:v$,Z_DEFLATED:s1}=Zs,al=16180,i1=16181,a1=16182,o1=16183,l1=16184,u1=16185,c1=16186,f1=16187,p1=16188,h1=16189,nl=16190,es=16191,Bc=16192,d1=16193,Nc=16194,m1=16195,g1=16196,y1=16197,b1=16198,Ko=16199,Jo=16200,v1=16201,x1=16202,O1=16203,S1=16204,E1=16205,Lc=16206,w1=16207,C1=16208,tr=16209,rS=16210,nS=16211,x$=852,O$=592,S$=15,E$=S$,k1=r=>(r>>>24&255)+(r>>>8&65280)+((r&65280)<<8)+((r&255)<<24);function w$(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}var Gs=r=>{if(!r)return 1;let e=r.state;return!e||e.strm!==r||e.modenS?1:0},sS=r=>{if(Gs(r))return tn;let e=r.state;return r.total_in=r.total_out=e.total=0,r.msg="",e.wrap&&(r.adler=e.wrap&1),e.mode=al,e.last=0,e.havedict=0,e.flags=-1,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new Int32Array(x$),e.distcode=e.distdyn=new Int32Array(O$),e.sane=1,e.back=-1,zs},iS=r=>{if(Gs(r))return tn;let e=r.state;return e.wsize=0,e.whave=0,e.wnext=0,sS(r)},aS=(r,e)=>{let t;if(Gs(r))return tn;let s=r.state;return e<0?(t=0,e=-e):(t=(e>>4)+5,e<48&&(e&=15)),e&&(e<8||e>15)?tn:(s.window!==null&&s.wbits!==e&&(s.window=null),s.wrap=t,s.wbits=e,iS(r))},oS=(r,e)=>{if(!r)return tn;let t=new w$;r.state=t,t.strm=r,t.window=null,t.mode=al;let s=aS(r,e);return s!==zs&&(r.state=null),s},C$=r=>oS(r,E$),A1=!0,$c,Mc,k$=r=>{if(A1){$c=new Int32Array(512),Mc=new Int32Array(32);let e=0;for(;e<144;)r.lens[e++]=8;for(;e<256;)r.lens[e++]=9;for(;e<280;)r.lens[e++]=7;for(;e<288;)r.lens[e++]=8;for(Ta(K1,r.lens,0,288,$c,0,r.work,{bits:9}),e=0;e<32;)r.lens[e++]=5;Ta(J1,r.lens,0,32,Mc,0,r.work,{bits:5}),A1=!1}r.lencode=$c,r.lenbits=9,r.distcode=Mc,r.distbits=5},lS=(r,e,t,s)=>{let n,i=r.state;return i.window===null&&(i.wsize=1<=i.wsize?(i.window.set(e.subarray(t-i.wsize,t),0),i.wnext=0,i.whave=i.wsize):(n=i.wsize-i.wnext,n>s&&(n=s),i.window.set(e.subarray(t-s,t-s+n),i.wnext),s-=n,s?(i.window.set(e.subarray(t-s,t),0),i.wnext=s,i.whave=i.wsize):(i.wnext+=n,i.wnext===i.wsize&&(i.wnext=0),i.whave{let t,s,n,i,a,l,o,u,c,p,h,f,d,m,g=0,y,v,x,S,w,O,C,E,k=new Uint8Array(4),A,D,_=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(Gs(r)||!r.output||!r.input&&r.avail_in!==0)return tn;t=r.state,t.mode===es&&(t.mode=Bc),a=r.next_out,n=r.output,o=r.avail_out,i=r.next_in,s=r.input,l=r.avail_in,u=t.hold,c=t.bits,p=l,h=o,E=zs;e:for(;;)switch(t.mode){case al:if(t.wrap===0){t.mode=Bc;break}for(;c<16;){if(l===0)break e;l--,u+=s[i++]<>>8&255,t.check=mr(t.check,k,2,0),u=0,c=0,t.mode=i1;break}if(t.head&&(t.head.done=!1),!(t.wrap&1)||(((u&255)<<8)+(u>>8))%31){r.msg="incorrect header check",t.mode=tr;break}if((u&15)!==s1){r.msg="unknown compression method",t.mode=tr;break}if(u>>>=4,c-=4,C=(u&15)+8,t.wbits===0&&(t.wbits=C),C>15||C>t.wbits){r.msg="invalid window size",t.mode=tr;break}t.dmax=1<>8&1),t.flags&512&&t.wrap&4&&(k[0]=u&255,k[1]=u>>>8&255,t.check=mr(t.check,k,2,0)),u=0,c=0,t.mode=a1;case a1:for(;c<32;){if(l===0)break e;l--,u+=s[i++]<>>8&255,k[2]=u>>>16&255,k[3]=u>>>24&255,t.check=mr(t.check,k,4,0)),u=0,c=0,t.mode=o1;case o1:for(;c<16;){if(l===0)break e;l--,u+=s[i++]<>8),t.flags&512&&t.wrap&4&&(k[0]=u&255,k[1]=u>>>8&255,t.check=mr(t.check,k,2,0)),u=0,c=0,t.mode=l1;case l1:if(t.flags&1024){for(;c<16;){if(l===0)break e;l--,u+=s[i++]<>>8&255,t.check=mr(t.check,k,2,0)),u=0,c=0}else t.head&&(t.head.extra=null);t.mode=u1;case u1:if(t.flags&1024&&(f=t.length,f>l&&(f=l),f&&(t.head&&(C=t.head.extra_len-t.length,t.head.extra||(t.head.extra=new Uint8Array(t.head.extra_len)),t.head.extra.set(s.subarray(i,i+f),C)),t.flags&512&&t.wrap&4&&(t.check=mr(t.check,s,f,i)),l-=f,i+=f,t.length-=f),t.length))break e;t.length=0,t.mode=c1;case c1:if(t.flags&2048){if(l===0)break e;f=0;do C=s[i+f++],t.head&&C&&t.length<65536&&(t.head.name+=String.fromCharCode(C));while(C&&f>9&1,t.head.done=!0),r.adler=t.check=0,t.mode=es;break;case h1:for(;c<32;){if(l===0)break e;l--,u+=s[i++]<>>=c&7,c-=c&7,t.mode=Lc;break}for(;c<3;){if(l===0)break e;l--,u+=s[i++]<>>=1,c-=1,u&3){case 0:t.mode=d1;break;case 1:if(k$(t),t.mode=Ko,e===Ho){u>>>=2,c-=2;break e}break;case 2:t.mode=g1;break;case 3:r.msg="invalid block type",t.mode=tr}u>>>=2,c-=2;break;case d1:for(u>>>=c&7,c-=c&7;c<32;){if(l===0)break e;l--,u+=s[i++]<>>16^65535)){r.msg="invalid stored block lengths",t.mode=tr;break}if(t.length=u&65535,u=0,c=0,t.mode=Nc,e===Ho)break e;case Nc:t.mode=m1;case m1:if(f=t.length,f){if(f>l&&(f=l),f>o&&(f=o),f===0)break e;n.set(s.subarray(i,i+f),a),l-=f,i+=f,o-=f,a+=f,t.length-=f;break}t.mode=es;break;case g1:for(;c<14;){if(l===0)break e;l--,u+=s[i++]<>>=5,c-=5,t.ndist=(u&31)+1,u>>>=5,c-=5,t.ncode=(u&15)+4,u>>>=4,c-=4,t.nlen>286||t.ndist>30){r.msg="too many length or distance symbols",t.mode=tr;break}t.have=0,t.mode=y1;case y1:for(;t.have>>=3,c-=3}for(;t.have<19;)t.lens[_[t.have++]]=0;if(t.lencode=t.lendyn,t.lenbits=7,A={bits:t.lenbits},E=Ta(m$,t.lens,0,19,t.lencode,0,t.work,A),t.lenbits=A.bits,E){r.msg="invalid code lengths set",t.mode=tr;break}t.have=0,t.mode=b1;case b1:for(;t.have>>24,v=g>>>16&255,x=g&65535,!(y<=c);){if(l===0)break e;l--,u+=s[i++]<>>=y,c-=y,t.lens[t.have++]=x;else{if(x===16){for(D=y+2;c>>=y,c-=y,t.have===0){r.msg="invalid bit length repeat",t.mode=tr;break}C=t.lens[t.have-1],f=3+(u&3),u>>>=2,c-=2}else if(x===17){for(D=y+3;c>>=y,c-=y,C=0,f=3+(u&7),u>>>=3,c-=3}else{for(D=y+7;c>>=y,c-=y,C=0,f=11+(u&127),u>>>=7,c-=7}if(t.have+f>t.nlen+t.ndist){r.msg="invalid bit length repeat",t.mode=tr;break}for(;f--;)t.lens[t.have++]=C}}if(t.mode===tr)break;if(t.lens[256]===0){r.msg="invalid code -- missing end-of-block",t.mode=tr;break}if(t.lenbits=9,A={bits:t.lenbits},E=Ta(K1,t.lens,0,t.nlen,t.lencode,0,t.work,A),t.lenbits=A.bits,E){r.msg="invalid literal/lengths set",t.mode=tr;break}if(t.distbits=6,t.distcode=t.distdyn,A={bits:t.distbits},E=Ta(J1,t.lens,t.nlen,t.ndist,t.distcode,0,t.work,A),t.distbits=A.bits,E){r.msg="invalid distances set",t.mode=tr;break}if(t.mode=Ko,e===Ho)break e;case Ko:t.mode=Jo;case Jo:if(l>=6&&o>=258){r.next_out=a,r.avail_out=o,r.next_in=i,r.avail_in=l,t.hold=u,t.bits=c,u$(r,h),a=r.next_out,n=r.output,o=r.avail_out,i=r.next_in,s=r.input,l=r.avail_in,u=t.hold,c=t.bits,t.mode===es&&(t.back=-1);break}for(t.back=0;g=t.lencode[u&(1<>>24,v=g>>>16&255,x=g&65535,!(y<=c);){if(l===0)break e;l--,u+=s[i++]<>S)],y=g>>>24,v=g>>>16&255,x=g&65535,!(S+y<=c);){if(l===0)break e;l--,u+=s[i++]<>>=S,c-=S,t.back+=S}if(u>>>=y,c-=y,t.back+=y,t.length=x,v===0){t.mode=E1;break}if(v&32){t.back=-1,t.mode=es;break}if(v&64){r.msg="invalid literal/length code",t.mode=tr;break}t.extra=v&15,t.mode=v1;case v1:if(t.extra){for(D=t.extra;c>>=t.extra,c-=t.extra,t.back+=t.extra}t.was=t.length,t.mode=x1;case x1:for(;g=t.distcode[u&(1<>>24,v=g>>>16&255,x=g&65535,!(y<=c);){if(l===0)break e;l--,u+=s[i++]<>S)],y=g>>>24,v=g>>>16&255,x=g&65535,!(S+y<=c);){if(l===0)break e;l--,u+=s[i++]<>>=S,c-=S,t.back+=S}if(u>>>=y,c-=y,t.back+=y,v&64){r.msg="invalid distance code",t.mode=tr;break}t.offset=x,t.extra=v&15,t.mode=O1;case O1:if(t.extra){for(D=t.extra;c>>=t.extra,c-=t.extra,t.back+=t.extra}if(t.offset>t.dmax){r.msg="invalid distance too far back",t.mode=tr;break}t.mode=S1;case S1:if(o===0)break e;if(f=h-o,t.offset>f){if(f=t.offset-f,f>t.whave&&t.sane){r.msg="invalid distance too far back",t.mode=tr;break}f>t.wnext?(f-=t.wnext,d=t.wsize-f):d=t.wnext-f,f>t.length&&(f=t.length),m=t.window}else m=n,d=a-t.offset,f=t.length;f>o&&(f=o),o-=f,t.length-=f;do n[a++]=m[d++];while(--f);t.length===0&&(t.mode=Jo);break;case E1:if(o===0)break e;n[a++]=t.length,o--,t.mode=Jo;break;case Lc:if(t.wrap){for(;c<32;){if(l===0)break e;l--,u|=s[i++]<{if(Gs(r))return tn;let e=r.state;return e.window&&(e.window=null),r.state=null,zs},T$=(r,e)=>{if(Gs(r))return tn;let t=r.state;return t.wrap&2?(t.head=e,e.done=!1,zs):tn},D$=(r,e)=>{let t=e.length,s,n,i;return Gs(r)||(s=r.state,s.wrap!==0&&s.mode!==nl)?tn:s.mode===nl&&(n=1,n=Fa(n,e,t,0),n!==s.check)?eS:(i=lS(r,e,t,t),i?(s.mode=rS,tS):(s.havedict=1,zs))},_$=iS,I$=aS,R$=sS,F$=C$,B$=oS,N$=A$,L$=P$,$$=T$,M$=D$,j$="pako inflate (from Nodeca project)",rs={inflateReset:_$,inflateReset2:I$,inflateResetKeep:R$,inflateInit:F$,inflateInit2:B$,inflate:N$,inflateEnd:L$,inflateGetHeader:$$,inflateSetDictionary:M$,inflateInfo:j$};function q$(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var Q$=q$,uS=Object.prototype.toString,{Z_NO_FLUSH:U$,Z_FINISH:V$,Z_OK:La,Z_STREAM_END:jc,Z_NEED_DICT:qc,Z_STREAM_ERROR:W$,Z_DATA_ERROR:P1,Z_MEM_ERROR:z$}=Zs;function qa(r){this.options=il.assign({chunkSize:1024*64,windowBits:15,to:""},r||{});let e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,e.windowBits===0&&(e.windowBits=-15)),e.windowBits>=0&&e.windowBits<16&&!(r&&r.windowBits)&&(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&(e.windowBits&15||(e.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Y1,this.strm.avail_out=0;let t=rs.inflateInit2(this.strm,e.windowBits);if(t!==La)throw new Error(Vs[t]);if(this.header=new Q$,rs.inflateGetHeader(this.strm,this.header),e.dictionary&&(typeof e.dictionary=="string"?e.dictionary=Na.string2buf(e.dictionary):uS.call(e.dictionary)==="[object ArrayBuffer]"&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(t=rs.inflateSetDictionary(this.strm,e.dictionary),t!==La)))throw new Error(Vs[t])}qa.prototype.push=function(r,e){let t=this.strm,s=this.options.chunkSize,n=this.options.dictionary,i,a,l;if(this.ended)return!1;for(e===~~e?a=e:a=e===!0?V$:U$,uS.call(r)==="[object ArrayBuffer]"?t.input=new Uint8Array(r):t.input=r,t.next_in=0,t.avail_in=t.input.length;;){for(t.avail_out===0&&(t.output=new Uint8Array(s),t.next_out=0,t.avail_out=s),i=rs.inflate(t,a),i===qc&&n&&(i=rs.inflateSetDictionary(t,n),i===La?i=rs.inflate(t,a):i===P1&&(i=qc));t.avail_in>0&&i===jc&&t.state.wrap>0&&r[t.next_in]!==0;)rs.inflateReset(t),i=rs.inflate(t,a);switch(i){case W$:case P1:case qc:case z$:return this.onEnd(i),this.ended=!0,!1}if(l=t.avail_out,t.next_out&&(t.avail_out===0||i===jc))if(this.options.to==="string"){let o=Na.utf8border(t.output,t.next_out),u=t.next_out-o,c=Na.buf2string(t.output,o);t.next_out=u,t.avail_out=s-u,u&&t.output.set(t.output.subarray(o,o+u),0),this.onData(c)}else this.onData(t.output.length===t.next_out?t.output:t.output.subarray(0,t.next_out));if(!(i===La&&l===0)){if(i===jc)return i=rs.inflateEnd(this.strm),this.onEnd(i),this.ended=!0,!0;if(t.avail_in===0)break}}return!0};qa.prototype.onData=function(r){this.chunks.push(r)};qa.prototype.onEnd=function(r){r===La&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=il.flattenChunks(this.chunks)),this.chunks=[],this.err=r,this.msg=this.strm.msg};function nf(r,e){let t=new qa(e);if(t.push(r),t.err)throw t.msg||Vs[t.err];return t.result}function Z$(r,e){return e=e||{},e.raw=!0,nf(r,e)}var G$=qa,X$=nf,Y$=Z$,H$=nf,K$=Zs,J$={Inflate:G$,inflate:X$,inflateRaw:Y$,ungzip:H$,constants:K$},{Deflate:eM,deflate:tM,deflateRaw:rM,gzip:nM}=o$,{Inflate:sM,inflate:iM,inflateRaw:aM,ungzip:oM}=J$,lM=eM,uM=tM,cM=rM,fM=nM,pM=sM,hM=iM,dM=aM,mM=oM,gM=Zs,sf={Deflate:lM,deflate:uM,deflateRaw:cM,gzip:fM,Inflate:pM,inflate:hM,inflateRaw:dM,ungzip:mM,constants:gM};var Rt=class r{lineAt(e){if(e<0||e>this.length)throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,t,s){[e,t]=$i(this,e,t);let n=[];return this.decompose(0,e,n,2),s.length&&s.decompose(0,s.length,n,3),this.decompose(t,this.length,n,1),Fi.from(n,this.length-(t-e)+s.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,t=this.length){[e,t]=$i(this,e,t);let s=[];return this.decompose(e,t,s,0),Fi.from(s,t-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let t=this.scanIdentical(e,1),s=this.length-this.scanIdentical(e,-1),n=new Hs(this),i=new Hs(e);for(let a=t,l=t;;){if(n.next(a),i.next(a),a=0,n.lineBreak!=i.lineBreak||n.done!=i.done||n.value!=i.value)return!1;if(l+=n.value.length,n.done||l>=s)return!0}}iter(e=1){return new Hs(this,e)}iterRange(e,t=this.length){return new cl(this,e,t)}iterLines(e,t){let s;if(e==null)s=this.iter();else{t==null&&(t=this.lines+1);let n=this.line(e).from;s=this.iterRange(n,Math.max(n,t==this.lines+1?this.length:t<=1?0:this.line(t-1).to))}return new fl(s)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}constructor(){}static of(e){if(e.length==0)throw new RangeError("A document must have at least one line");return e.length==1&&!e[0]?r.empty:e.length<=32?new zr(e):Fi.from(zr.split(e,[]))}},zr=class r extends Rt{constructor(e,t=yM(e)){super(),this.text=e,this.length=t}get lines(){return this.text.length}get children(){return null}lineInner(e,t,s,n){for(let i=0;;i++){let a=this.text[i],l=n+a.length;if((t?s:l)>=e)return new of(n,l,s,a);n=l+1,s++}}decompose(e,t,s,n){let i=e<=0&&t>=this.length?this:new r(cS(this.text,e,t),Math.min(t,this.length)-Math.max(0,e));if(n&1){let a=s.pop(),l=ul(i.text,a.text.slice(),0,i.length);if(l.length<=32)s.push(new r(l,a.length+i.length));else{let o=l.length>>1;s.push(new r(l.slice(0,o)),new r(l.slice(o)))}}else s.push(i)}replace(e,t,s){if(!(s instanceof r))return super.replace(e,t,s);[e,t]=$i(this,e,t);let n=ul(this.text,ul(s.text,cS(this.text,0,e)),t),i=this.length+s.length-(t-e);return n.length<=32?new r(n,i):Fi.from(r.split(n,[]),i)}sliceString(e,t=this.length,s=` +`){[e,t]=$i(this,e,t);let n="";for(let i=0,a=0;i<=t&&ae&&a&&(n+=s),ei&&(n+=l.slice(Math.max(0,e-i),t-i)),i=o+1}return n}flatten(e){for(let t of this.text)e.push(t)}scanIdentical(){return 0}static split(e,t){let s=[],n=-1;for(let i of e)s.push(i),n+=i.length+1,s.length==32&&(t.push(new r(s,n)),s=[],n=-1);return n>-1&&t.push(new r(s,n)),t}},Fi=class r extends Rt{constructor(e,t){super(),this.children=e,this.length=t,this.lines=0;for(let s of e)this.lines+=s.lines}lineInner(e,t,s,n){for(let i=0;;i++){let a=this.children[i],l=n+a.length,o=s+a.lines-1;if((t?o:l)>=e)return a.lineInner(e,t,s,n);n=l+1,s=o+1}}decompose(e,t,s,n){for(let i=0,a=0;a<=t&&i=a){let u=n&((a<=e?1:0)|(o>=t?2:0));a>=e&&o<=t&&!u?s.push(l):l.decompose(e-a,t-a,s,u)}a=o+1}}replace(e,t,s){if([e,t]=$i(this,e,t),s.lines=i&&t<=l){let o=a.replace(e-i,t-i,s),u=this.lines-a.lines+o.lines;if(o.lines>4&&o.lines>u>>6){let c=this.children.slice();return c[n]=o,new r(c,this.length-(t-e)+s.length)}return super.replace(i,l,o)}i=l+1}return super.replace(e,t,s)}sliceString(e,t=this.length,s=` +`){[e,t]=$i(this,e,t);let n="";for(let i=0,a=0;ie&&i&&(n+=s),ea&&(n+=l.sliceString(e-a,t-a,s)),a=o+1}return n}flatten(e){for(let t of this.children)t.flatten(e)}scanIdentical(e,t){if(!(e instanceof r))return 0;let s=0,[n,i,a,l]=t>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;n+=t,i+=t){if(n==a||i==l)return s;let o=this.children[n],u=e.children[i];if(o!=u)return s+o.scanIdentical(u,t);s+=o.length+1}}static from(e,t=e.reduce((s,n)=>s+n.length+1,-1)){let s=0;for(let f of e)s+=f.lines;if(s<32){let f=[];for(let d of e)d.flatten(f);return new zr(f,t)}let n=Math.max(32,s>>5),i=n<<1,a=n>>1,l=[],o=0,u=-1,c=[];function p(f){let d;if(f.lines>i&&f instanceof r)for(let m of f.children)p(m);else f.lines>a&&(o>a||!o)?(h(),l.push(f)):f instanceof zr&&o&&(d=c[c.length-1])instanceof zr&&f.lines+d.lines<=32?(o+=f.lines,u+=f.length+1,c[c.length-1]=new zr(d.text.concat(f.text),d.length+1+f.length)):(o+f.lines>n&&h(),o+=f.lines,u+=f.length+1,c.push(f))}function h(){o!=0&&(l.push(c.length==1?c[0]:r.from(c,u)),u=-1,o=c.length=0)}for(let f of e)p(f);return h(),l.length==1?l[0]:new r(l,t)}};Rt.empty=new zr([""],0);function yM(r){let e=-1;for(let t of r)e+=t.length+1;return e}function ul(r,e,t=0,s=1e9){for(let n=0,i=0,a=!0;i=t&&(o>s&&(l=l.slice(0,s-n)),n0?1:(e instanceof zr?e.text.length:e.children.length)<<1]}nextInner(e,t){for(this.done=this.lineBreak=!1;;){let s=this.nodes.length-1,n=this.nodes[s],i=this.offsets[s],a=i>>1,l=n instanceof zr?n.text.length:n.children.length;if(a==(t>0?l:0)){if(s==0)return this.done=!0,this.value="",this;t>0&&this.offsets[s-1]++,this.nodes.pop(),this.offsets.pop()}else if((i&1)==(t>0?0:1)){if(this.offsets[s]+=t,e==0)return this.lineBreak=!0,this.value=` +`,this;e--}else if(n instanceof zr){let o=n.text[a+(t<0?-1:0)];if(this.offsets[s]+=t,o.length>Math.max(0,e))return this.value=e==0?o:t>0?o.slice(e):o.slice(0,o.length-e),this;e-=o.length}else{let o=n.children[a+(t<0?-1:0)];e>o.length?(e-=o.length,this.offsets[s]+=t):(t<0&&this.offsets[s]--,this.nodes.push(o),this.offsets.push(t>0?1:(o instanceof zr?o.text.length:o.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}},cl=class{constructor(e,t,s){this.value="",this.done=!1,this.cursor=new Hs(e,t>s?-1:1),this.pos=t>s?e.length:0,this.from=Math.min(t,s),this.to=Math.max(t,s)}nextInner(e,t){if(t<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,t<0?this.pos-this.to:this.from-this.pos);let s=t<0?this.pos-this.from:this.to-this.pos;e>s&&(e=s),s-=e;let{value:n}=this.cursor.next(e);return this.pos+=(n.length+e)*t,this.value=n.length<=s?n:t<0?n.slice(n.length-s):n.slice(0,s),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&this.value!=""}},fl=class{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(e=0){let{done:t,lineBreak:s,value:n}=this.inner.next(e);return t&&this.afterBreak?(this.value="",this.afterBreak=!1):t?(this.done=!0,this.value=""):s?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=n,this.afterBreak=!1),this}get lineBreak(){return!1}};typeof Symbol<"u"&&(Rt.prototype[Symbol.iterator]=function(){return this.iter()},Hs.prototype[Symbol.iterator]=cl.prototype[Symbol.iterator]=fl.prototype[Symbol.iterator]=function(){return this});var of=class{constructor(e,t,s,n){this.from=e,this.to=t,this.number=s,this.text=n}get length(){return this.to-this.from}};function $i(r,e,t){return e=Math.max(0,Math.min(r.length,e)),[e,Math.max(e,Math.min(r.length,t))]}var Bi="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(r=>r?parseInt(r,36):1);for(let r=1;rr)return Bi[e-1]<=r;return!1}function fS(r){return r>=127462&&r<=127487}var pS=8205;function ur(r,e,t=!0,s=!0){return(t?bS:vM)(r,e,s)}function bS(r,e,t){if(e==r.length)return e;e&&vS(r.charCodeAt(e))&&xS(r.charCodeAt(e-1))&&e--;let s=gr(r,e);for(e+=$r(s);e=0&&fS(gr(r,a));)i++,a-=2;if(i%2==0)break;e+=2}else break}return e}function vM(r,e,t){for(;e>0;){let s=bS(r,e-2,t);if(s=56320&&r<57344}function xS(r){return r>=55296&&r<56320}function gr(r,e){let t=r.charCodeAt(e);if(!xS(t)||e+1==r.length)return t;let s=r.charCodeAt(e+1);return vS(s)?(t-55296<<10)+(s-56320)+65536:t}function Za(r){return r<=65535?String.fromCharCode(r):(r-=65536,String.fromCharCode((r>>10)+55296,(r&1023)+56320))}function $r(r){return r<65536?1:2}var lf=/\r\n?|\n/,fr=function(r){return r[r.Simple=0]="Simple",r[r.TrackDel=1]="TrackDel",r[r.TrackBefore=2]="TrackBefore",r[r.TrackAfter=3]="TrackAfter",r}(fr||(fr={})),ns=class r{constructor(e){this.sections=e}get length(){let e=0;for(let t=0;te)return i+(e-n);i+=l}else{if(s!=fr.Simple&&u>=e&&(s==fr.TrackDel&&ne||s==fr.TrackBefore&&ne))return null;if(u>e||u==e&&t<0&&!l)return e==n||t<0?i:i+o;i+=o}n=u}if(e>n)throw new RangeError(`Position ${e} is out of range for changeset of length ${n}`);return i}touchesRange(e,t=e){for(let s=0,n=0;s=0&&n<=t&&l>=e)return nt?"cover":!0;n=l}return!1}toString(){let e="";for(let t=0;t=0?":"+n:"")}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some(t=>typeof t!="number"))throw new RangeError("Invalid JSON representation of ChangeDesc");return new r(e)}static create(e){return new r(e)}},Dr=class r extends ns{constructor(e,t){super(e),this.inserted=t}apply(e){if(this.length!=e.length)throw new RangeError("Applying change set to a document with the wrong length");return uf(this,(t,s,n,i,a)=>e=e.replace(n,n+(s-t),a),!1),e}mapDesc(e,t=!1){return cf(this,e,t,!0)}invert(e){let t=this.sections.slice(),s=[];for(let n=0,i=0;n=0){t[n]=l,t[n+1]=a;let o=n>>1;for(;s.length0&&Os(s,t,i.text),i.forward(c),l+=c}let u=e[a++];for(;l>1].toJSON()))}return e}static of(e,t,s){let n=[],i=[],a=0,l=null;function o(c=!1){if(!c&&!n.length)return;ah||p<0||h>t)throw new RangeError(`Invalid change range ${p} to ${h} (in doc of length ${t})`);let d=f?typeof f=="string"?Rt.of(f.split(s||lf)):f:Rt.empty,m=d.length;if(p==h&&m==0)return;pa&&Cr(n,p-a,-1),Cr(n,h-p,m),Os(i,n,d),a=h}}return u(e),o(!l),l}static empty(e){return new r(e?[e,-1]:[],[])}static fromJSON(e){if(!Array.isArray(e))throw new RangeError("Invalid JSON representation of ChangeSet");let t=[],s=[];for(let n=0;nl&&typeof a!="string"))throw new RangeError("Invalid JSON representation of ChangeSet");if(i.length==1)t.push(i[0],0);else{for(;s.length=0&&t<=0&&t==r[n+1]?r[n]+=e:e==0&&r[n]==0?r[n+1]+=t:s?(r[n]+=e,r[n+1]+=t):r.push(e,t)}function Os(r,e,t){if(t.length==0)return;let s=e.length-2>>1;if(s>1])),!(t||a==r.sections.length||r.sections[a+1]<0);)l=r.sections[a++],o=r.sections[a++];e(n,u,i,c,p),n=u,i=c}}}function cf(r,e,t,s=!1){let n=[],i=s?[]:null,a=new Ks(r),l=new Ks(e);for(let o=-1;;)if(a.ins==-1&&l.ins==-1){let u=Math.min(a.len,l.len);Cr(n,u,-1),a.forward(u),l.forward(u)}else if(l.ins>=0&&(a.ins<0||o==a.i||a.off==0&&(l.len=0&&o=0){let u=0,c=a.len;for(;c;)if(l.ins==-1){let p=Math.min(c,l.len);u+=p,c-=p,l.forward(p)}else if(l.ins==0&&l.leno||a.ins>=0&&a.len>o)&&(l||s.length>u),i.forward2(o),a.forward(o)}}}}var Ks=class{constructor(e){this.set=e,this.i=0,this.next()}next(){let{sections:e}=this.set;this.i>1;return t>=e.length?Rt.empty:e[t]}textBit(e){let{inserted:t}=this.set,s=this.i-2>>1;return s>=t.length&&!e?Rt.empty:t[s].slice(this.off,e==null?void 0:this.off+e)}forward(e){e==this.len?this.next():(this.len-=e,this.off+=e)}forward2(e){this.ins==-1?this.forward(e):e==this.ins?this.next():(this.ins-=e,this.off+=e)}},Ri=class r{constructor(e,t,s){this.from=e,this.to=t,this.flags=s}get anchor(){return this.flags&32?this.to:this.from}get head(){return this.flags&32?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return this.flags&8?-1:this.flags&16?1:0}get bidiLevel(){let e=this.flags&7;return e==7?null:e}get goalColumn(){let e=this.flags>>6;return e==16777215?void 0:e}map(e,t=-1){let s,n;return this.empty?s=n=e.mapPos(this.from,t):(s=e.mapPos(this.from,1),n=e.mapPos(this.to,-1)),s==this.from&&n==this.to?this:new r(s,n,this.flags)}extend(e,t=e){if(e<=this.anchor&&t>=this.anchor)return ze.range(e,t);let s=Math.abs(e-this.anchor)>Math.abs(t-this.anchor)?e:t;return ze.range(this.anchor,s)}eq(e,t=!1){return this.anchor==e.anchor&&this.head==e.head&&(!t||!this.empty||this.assoc==e.assoc)}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(e){if(!e||typeof e.anchor!="number"||typeof e.head!="number")throw new RangeError("Invalid JSON representation for SelectionRange");return ze.range(e.anchor,e.head)}static create(e,t,s){return new r(e,t,s)}},ze=class r{constructor(e,t){this.ranges=e,this.mainIndex=t}map(e,t=-1){return e.empty?this:r.create(this.ranges.map(s=>s.map(e,t)),this.mainIndex)}eq(e,t=!1){if(this.ranges.length!=e.ranges.length||this.mainIndex!=e.mainIndex)return!1;for(let s=0;se.toJSON()),main:this.mainIndex}}static fromJSON(e){if(!e||!Array.isArray(e.ranges)||typeof e.main!="number"||e.main>=e.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new r(e.ranges.map(t=>Ri.fromJSON(t)),e.main)}static single(e,t=e){return new r([r.range(e,t)],0)}static create(e,t=0){if(e.length==0)throw new RangeError("A selection needs at least one range");for(let s=0,n=0;ne?8:0)|i)}static normalized(e,t=0){let s=e[t];e.sort((n,i)=>n.from-i.from),t=e.indexOf(s);for(let n=1;ni.head?r.range(o,l):r.range(l,o))}}return new r(e,t)}};function SS(r,e){for(let t of r.ranges)if(t.to>e)throw new RangeError("Selection points outside of document")}var xf=0,ct=class r{constructor(e,t,s,n,i){this.combine=e,this.compareInput=t,this.compare=s,this.isStatic=n,this.id=xf++,this.default=e([]),this.extensions=typeof i=="function"?i(this):i}get reader(){return this}static define(e={}){return new r(e.combine||(t=>t),e.compareInput||((t,s)=>t===s),e.compare||(e.combine?(t,s)=>t===s:Of),!!e.static,e.enables)}of(e){return new Ni([],this,0,e)}compute(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new Ni(e,this,1,t)}computeN(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new Ni(e,this,2,t)}from(e,t){return t||(t=s=>s),this.compute([e],s=>t(s.field(e)))}};function Of(r,e){return r==e||r.length==e.length&&r.every((t,s)=>t===e[s])}var Ni=class{constructor(e,t,s,n){this.dependencies=e,this.facet=t,this.type=s,this.value=n,this.id=xf++}dynamicSlot(e){var t;let s=this.value,n=this.facet.compareInput,i=this.id,a=e[i]>>1,l=this.type==2,o=!1,u=!1,c=[];for(let p of this.dependencies)p=="doc"?o=!0:p=="selection"?u=!0:((t=e[p.id])!==null&&t!==void 0?t:1)&1||c.push(e[p.id]);return{create(p){return p.values[a]=s(p),1},update(p,h){if(o&&h.docChanged||u&&(h.docChanged||h.selection)||ff(p,c)){let f=s(p);if(l?!hS(f,p.values[a],n):!n(f,p.values[a]))return p.values[a]=f,1}return 0},reconfigure:(p,h)=>{let f,d=h.config.address[i];if(d!=null){let m=ml(h,d);if(this.dependencies.every(g=>g instanceof ct?h.facet(g)===p.facet(g):g instanceof Yt?h.field(g,!1)==p.field(g,!1):!0)||(l?hS(f=s(p),m,n):n(f=s(p),m)))return p.values[a]=m,0}else f=s(p);return p.values[a]=f,1}}}};function hS(r,e,t){if(r.length!=e.length)return!1;for(let s=0;sr[o.id]),n=t.map(o=>o.type),i=s.filter(o=>!(o&1)),a=r[e.id]>>1;function l(o){let u=[];for(let c=0;cs===n),e);return e.provide&&(t.provides=e.provide(t)),t}create(e){let t=e.facet(dS).find(s=>s.field==this);return(t?.create||this.createF)(e)}slot(e){let t=e[this.id]>>1;return{create:s=>(s.values[t]=this.create(s),1),update:(s,n)=>{let i=s.values[t],a=this.updateF(i,n);return this.compareF(i,a)?0:(s.values[t]=a,1)},reconfigure:(s,n)=>n.config.address[this.id]!=null?(s.values[t]=n.field(this),0):(s.values[t]=this.create(s),1)}}init(e){return[this,dS.of({field:this,create:e})]}get extension(){return this}},Xs={lowest:4,low:3,default:2,high:1,highest:0};function Qa(r){return e=>new pl(e,r)}var rn={highest:Qa(Xs.highest),high:Qa(Xs.high),default:Qa(Xs.default),low:Qa(Xs.low),lowest:Qa(Xs.lowest)},pl=class{constructor(e,t){this.inner=e,this.prec=t}},hl=class r{of(e){return new Va(this,e)}reconfigure(e){return r.reconfigure.of({compartment:this,extension:e})}get(e){return e.config.compartments.get(this)}},Va=class{constructor(e,t){this.compartment=e,this.inner=t}},dl=class r{constructor(e,t,s,n,i,a){for(this.base=e,this.compartments=t,this.dynamicSlots=s,this.address=n,this.staticValues=i,this.facets=a,this.statusTemplate=[];this.statusTemplate.length>1]}static resolve(e,t,s){let n=[],i=Object.create(null),a=new Map;for(let h of OM(e,t,a))h instanceof Yt?n.push(h):(i[h.facet.id]||(i[h.facet.id]=[])).push(h);let l=Object.create(null),o=[],u=[];for(let h of n)l[h.id]=u.length<<1,u.push(f=>h.slot(f));let c=s?.config.facets;for(let h in i){let f=i[h],d=f[0].facet,m=c&&c[h]||[];if(f.every(g=>g.type==0))if(l[d.id]=o.length<<1|1,Of(m,f))o.push(s.facet(d));else{let g=d.combine(f.map(y=>y.value));o.push(s&&d.compare(g,s.facet(d))?s.facet(d):g)}else{for(let g of f)g.type==0?(l[g.id]=o.length<<1|1,o.push(g.value)):(l[g.id]=u.length<<1,u.push(y=>g.dynamicSlot(y)));l[d.id]=u.length<<1,u.push(g=>xM(g,d,f))}}let p=u.map(h=>h(l));return new r(e,a,p,l,o,i)}};function OM(r,e,t){let s=[[],[],[],[],[]],n=new Map;function i(a,l){let o=n.get(a);if(o!=null){if(o<=l)return;let u=s[o].indexOf(a);u>-1&&s[o].splice(u,1),a instanceof Va&&t.delete(a.compartment)}if(n.set(a,l),Array.isArray(a))for(let u of a)i(u,l);else if(a instanceof Va){if(t.has(a.compartment))throw new RangeError("Duplicate use of compartment in extensions");let u=e.get(a.compartment)||a.inner;t.set(a.compartment,u),i(u,l)}else if(a instanceof pl)i(a.inner,a.prec);else if(a instanceof Yt)s[l].push(a),a.provides&&i(a.provides,l);else if(a instanceof Ni)s[l].push(a),a.facet.extensions&&i(a.facet.extensions,Xs.default);else{let u=a.extension;if(!u)throw new Error(`Unrecognized extension value in extension set (${a}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);i(u,l)}}return i(r,Xs.default),s.reduce((a,l)=>a.concat(l))}function Ua(r,e){if(e&1)return 2;let t=e>>1,s=r.status[t];if(s==4)throw new Error("Cyclic dependency between fields and/or facets");if(s&2)return s;r.status[t]=4;let n=r.computeSlot(r,r.config.dynamicSlots[t]);return r.status[t]=2|n}function ml(r,e){return e&1?r.config.staticValues[e>>1]:r.values[e>>1]}var ES=ct.define(),pf=ct.define({combine:r=>r.some(e=>e),static:!0}),wS=ct.define({combine:r=>r.length?r[0]:void 0,static:!0}),CS=ct.define(),kS=ct.define(),AS=ct.define(),PS=ct.define({combine:r=>r.length?r[0]:!1}),Mr=class{constructor(e,t){this.type=e,this.value=t}static define(){return new hf}},hf=class{of(e){return new Mr(this,e)}},df=class{constructor(e){this.map=e}of(e){return new Ct(this,e)}},Ct=class r{constructor(e,t){this.type=e,this.value=t}map(e){let t=this.type.map(this.value,e);return t===void 0?void 0:t==this.value?this:new r(this.type,t)}is(e){return this.type==e}static define(e={}){return new df(e.map||(t=>t))}static mapEffects(e,t){if(!e.length)return e;let s=[];for(let n of e){let i=n.map(t);i&&s.push(i)}return s}};Ct.reconfigure=Ct.define();Ct.appendConfig=Ct.define();var lr=class r{constructor(e,t,s,n,i,a){this.startState=e,this.changes=t,this.selection=s,this.effects=n,this.annotations=i,this.scrollIntoView=a,this._doc=null,this._state=null,s&&SS(s,t.newLength),i.some(l=>l.type==r.time)||(this.annotations=i.concat(r.time.of(Date.now())))}static create(e,t,s,n,i,a){return new r(e,t,s,n,i,a)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(e){for(let t of this.annotations)if(t.type==e)return t.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(e){let t=this.annotation(r.userEvent);return!!(t&&(t==e||t.length>e.length&&t.slice(0,e.length)==e&&t[e.length]=="."))}};lr.time=Mr.define();lr.userEvent=Mr.define();lr.addToHistory=Mr.define();lr.remote=Mr.define();function SM(r,e){let t=[];for(let s=0,n=0;;){let i,a;if(s=r[s]))i=r[s++],a=r[s++];else if(n=0;n--){let i=s[n](r);i instanceof lr?r=i:Array.isArray(i)&&i.length==1&&i[0]instanceof lr?r=i[0]:r=DS(e,Li(i),!1)}return r}function wM(r){let e=r.startState,t=e.facet(AS),s=r;for(let n=t.length-1;n>=0;n--){let i=t[n](r);i&&Object.keys(i).length&&(s=TS(s,mf(e,i,r.changes.newLength),!0))}return s==r?r:lr.create(e,r.changes,r.selection,s.effects,s.annotations,s.scrollIntoView)}var CM=[];function Li(r){return r==null?CM:Array.isArray(r)?r:[r]}var Wt=function(r){return r[r.Word=0]="Word",r[r.Space=1]="Space",r[r.Other=2]="Other",r}(Wt||(Wt={})),kM=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/,gf;try{gf=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}function AM(r){if(gf)return gf.test(r);for(let e=0;e"\x80"&&(t.toUpperCase()!=t.toLowerCase()||kM.test(t)))return!0}return!1}function PM(r){return e=>{if(!/\S/.test(e))return Wt.Space;if(AM(e))return Wt.Word;for(let t=0;t-1)return Wt.Word;return Wt.Other}}var Ut=class r{constructor(e,t,s,n,i,a){this.config=e,this.doc=t,this.selection=s,this.values=n,this.status=e.statusTemplate.slice(),this.computeSlot=i,a&&(a._state=this);for(let l=0;ln.set(u,o)),t=null),n.set(l.value.compartment,l.value.extension)):l.is(Ct.reconfigure)?(t=null,s=l.value):l.is(Ct.appendConfig)&&(t=null,s=Li(s).concat(l.value));let i;t?i=e.startState.values.slice():(t=dl.resolve(s,n,this),i=new r(t,this.doc,this.selection,t.dynamicSlots.map(()=>null),(o,u)=>u.reconfigure(o,this),null).values);let a=e.startState.facet(pf)?e.newSelection:e.newSelection.asSingle();new r(t,e.newDoc,a,i,(l,o)=>o.update(l,e),e)}replaceSelection(e){return typeof e=="string"&&(e=this.toText(e)),this.changeByRange(t=>({changes:{from:t.from,to:t.to,insert:e},range:ze.cursor(t.from+e.length)}))}changeByRange(e){let t=this.selection,s=e(t.ranges[0]),n=this.changes(s.changes),i=[s.range],a=Li(s.effects);for(let l=1;la.spec.fromJSON(l,o)))}}return r.create({doc:e.doc,selection:ze.fromJSON(e.selection),extensions:t.extensions?n.concat([t.extensions]):n})}static create(e={}){let t=dl.resolve(e.extensions||[],new Map),s=e.doc instanceof Rt?e.doc:Rt.of((e.doc||"").split(t.staticFacet(r.lineSeparator)||lf)),n=e.selection?e.selection instanceof ze?e.selection:ze.single(e.selection.anchor,e.selection.head):ze.single(0);return SS(n,s.length),t.staticFacet(pf)||(n=n.asSingle()),new r(t,s,n,t.dynamicSlots.map(()=>null),(i,a)=>a.create(i),null)}get tabSize(){return this.facet(r.tabSize)}get lineBreak(){return this.facet(r.lineSeparator)||` +`}get readOnly(){return this.facet(PS)}phrase(e,...t){for(let s of this.facet(r.phrases))if(Object.prototype.hasOwnProperty.call(s,e)){e=s[e];break}return t.length&&(e=e.replace(/\$(\$|\d*)/g,(s,n)=>{if(n=="$")return"$";let i=+(n||1);return!i||i>t.length?s:t[i-1]})),e}languageDataAt(e,t,s=-1){let n=[];for(let i of this.facet(ES))for(let a of i(this,t,s))Object.prototype.hasOwnProperty.call(a,e)&&n.push(a[e]);return n}charCategorizer(e){return PM(this.languageDataAt("wordChars",e).join(""))}wordAt(e){let{text:t,from:s,length:n}=this.doc.lineAt(e),i=this.charCategorizer(e),a=e-s,l=e-s;for(;a>0;){let o=ur(t,a,!1);if(i(t.slice(o,a))!=Wt.Word)break;a=o}for(;lr.length?r[0]:4});Ut.lineSeparator=wS;Ut.readOnly=PS;Ut.phrases=ct.define({compare(r,e){let t=Object.keys(r),s=Object.keys(e);return t.length==s.length&&t.every(n=>r[n]==e[n])}});Ut.languageData=ES;Ut.changeFilter=CS;Ut.transactionFilter=kS;Ut.transactionExtender=AS;hl.reconfigure=Ct.define();function kr(r,e,t={}){let s={};for(let n of r)for(let i of Object.keys(n)){let a=n[i],l=s[i];if(l===void 0)s[i]=a;else if(!(l===a||a===void 0))if(Object.hasOwnProperty.call(t,i))s[i]=t[i](l,a);else throw new Error("Config merge conflict for field "+i)}for(let n in e)s[n]===void 0&&(s[n]=e[n]);return s}var yn=class{eq(e){return this==e}range(e,t=e){return Wa.create(e,t,this)}};yn.prototype.startSide=yn.prototype.endSide=0;yn.prototype.point=!1;yn.prototype.mapMode=fr.TrackDel;var Wa=class r{constructor(e,t,s){this.from=e,this.to=t,this.value=s}static create(e,t,s){return new r(e,t,s)}};function yf(r,e){return r.from-e.from||r.value.startSide-e.value.startSide}var bf=class r{constructor(e,t,s,n){this.from=e,this.to=t,this.value=s,this.maxPoint=n}get length(){return this.to[this.to.length-1]}findIndex(e,t,s,n=0){let i=s?this.to:this.from;for(let a=n,l=i.length;;){if(a==l)return a;let o=a+l>>1,u=i[o]-e||(s?this.value[o].endSide:this.value[o].startSide)-t;if(o==a)return u>=0?a:l;u>=0?l=o:a=o+1}}between(e,t,s,n){for(let i=this.findIndex(t,-1e9,!0),a=this.findIndex(s,1e9,!1,i);if||h==f&&u.startSide>0&&u.endSide<=0)continue;(f-h||u.endSide-u.startSide)<0||(a<0&&(a=h),u.point&&(l=Math.max(l,f-h)),s.push(u),n.push(h-a),i.push(f-a))}return{mapped:s.length?new r(n,i,s,l):null,pos:a}}},Mt=class r{constructor(e,t,s,n){this.chunkPos=e,this.chunk=t,this.nextLayer=s,this.maxPoint=n}static create(e,t,s,n){return new r(e,t,s,n)}get length(){let e=this.chunk.length-1;return e<0?0:Math.max(this.chunkEnd(e),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let e=this.nextLayer.size;for(let t of this.chunk)e+=t.value.length;return e}chunkEnd(e){return this.chunkPos[e]+this.chunk[e].length}update(e){let{add:t=[],sort:s=!1,filterFrom:n=0,filterTo:i=this.length}=e,a=e.filter;if(t.length==0&&!a)return this;if(s&&(t=t.slice().sort(yf)),this.isEmpty)return t.length?r.of(t):this;let l=new gl(this,null,-1).goto(0),o=0,u=[],c=new In;for(;l.value||o=0){let p=t[o++];c.addInner(p.from,p.to,p.value)||u.push(p)}else l.rangeIndex==1&&l.chunkIndexthis.chunkEnd(l.chunkIndex)||il.to||i=i&&e<=i+a.length&&a.between(i,e-i,t-i,s)===!1)return}this.nextLayer.between(e,t,s)}}iter(e=0){return za.from([this]).goto(e)}get isEmpty(){return this.nextLayer==this}static iter(e,t=0){return za.from(e).goto(t)}static compare(e,t,s,n,i=-1){let a=e.filter(p=>p.maxPoint>0||!p.isEmpty&&p.maxPoint>=i),l=t.filter(p=>p.maxPoint>0||!p.isEmpty&&p.maxPoint>=i),o=mS(a,l,s),u=new Ys(a,o,i),c=new Ys(l,o,i);s.iterGaps((p,h,f)=>gS(u,p,c,h,f,n)),s.empty&&s.length==0&&gS(u,0,c,0,0,n)}static eq(e,t,s=0,n){n==null&&(n=999999999);let i=e.filter(c=>!c.isEmpty&&t.indexOf(c)<0),a=t.filter(c=>!c.isEmpty&&e.indexOf(c)<0);if(i.length!=a.length)return!1;if(!i.length)return!0;let l=mS(i,a),o=new Ys(i,l,0).goto(s),u=new Ys(a,l,0).goto(s);for(;;){if(o.to!=u.to||!vf(o.active,u.active)||o.point&&(!u.point||!o.point.eq(u.point)))return!1;if(o.to>n)return!0;o.next(),u.next()}}static spans(e,t,s,n,i=-1){let a=new Ys(e,null,i).goto(t),l=t,o=a.openStart;for(;;){let u=Math.min(a.to,s);if(a.point){let c=a.activeForPoint(a.to),p=a.pointFroml&&(n.span(l,u,a.active,o),o=a.openEnd(u));if(a.to>s)return o+(a.point&&a.to>s?1:0);l=a.to,a.next()}}static of(e,t=!1){let s=new In;for(let n of e instanceof Wa?[e]:t?TM(e):e)s.add(n.from,n.to,n.value);return s.finish()}static join(e){if(!e.length)return r.empty;let t=e[e.length-1];for(let s=e.length-2;s>=0;s--)for(let n=e[s];n!=r.empty;n=n.nextLayer)t=new r(n.chunkPos,n.chunk,t,Math.max(n.maxPoint,t.maxPoint));return t}};Mt.empty=new Mt([],[],null,-1);function TM(r){if(r.length>1)for(let e=r[0],t=1;t0)return r.slice().sort(yf);e=s}return r}Mt.empty.nextLayer=Mt.empty;var In=class r{finishChunk(e){this.chunks.push(new bf(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,e&&(this.from=[],this.to=[],this.value=[])}constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}add(e,t,s){this.addInner(e,t,s)||(this.nextLayer||(this.nextLayer=new r)).add(e,t,s)}addInner(e,t,s){let n=e-this.lastTo||s.startSide-this.last.endSide;if(n<=0&&(e-this.lastFrom||s.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return n<0?!1:(this.from.length==250&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=e),this.from.push(e-this.chunkStart),this.to.push(t-this.chunkStart),this.last=s,this.lastFrom=e,this.lastTo=t,this.value.push(s),s.point&&(this.maxPoint=Math.max(this.maxPoint,t-e)),!0)}addChunk(e,t){if((e-this.lastTo||t.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,t.maxPoint),this.chunks.push(t),this.chunkPos.push(e);let s=t.value.length-1;return this.last=t.value[s],this.lastFrom=t.from[s]+e,this.lastTo=t.to[s]+e,!0}finish(){return this.finishInner(Mt.empty)}finishInner(e){if(this.from.length&&this.finishChunk(!1),this.chunks.length==0)return e;let t=Mt.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(e):e,this.setMaxPoint);return this.from=null,t}};function mS(r,e,t){let s=new Map;for(let i of r)for(let a=0;a=this.minPoint)break}}setRangeIndex(e){if(e==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex=s&&n.push(new gl(a,t,s,i));return n.length==1?n[0]:new r(n)}get startSide(){return this.value?this.value.startSide:0}goto(e,t=-1e9){for(let s of this.heap)s.goto(e,t);for(let s=this.heap.length>>1;s>=0;s--)af(this.heap,s);return this.next(),this}forward(e,t){for(let s of this.heap)s.forward(e,t);for(let s=this.heap.length>>1;s>=0;s--)af(this.heap,s);(this.to-e||this.value.endSide-t)<0&&this.next()}next(){if(this.heap.length==0)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let e=this.heap[0];this.from=e.from,this.to=e.to,this.value=e.value,this.rank=e.rank,e.value&&e.next(),af(this.heap,0)}}};function af(r,e){for(let t=r[e];;){let s=(e<<1)+1;if(s>=r.length)break;let n=r[s];if(s+1=0&&(n=r[s+1],s++),t.compare(n)<0)break;r[s]=t,r[e]=n,e=s}}var Ys=class{constructor(e,t,s){this.minPoint=s,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=za.from(e,t,s)}goto(e,t=-1e9){return this.cursor.goto(e,t),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=e,this.endSide=t,this.openStart=-1,this.next(),this}forward(e,t){for(;this.minActive>-1&&(this.activeTo[this.minActive]-e||this.active[this.minActive].endSide-t)<0;)this.removeActive(this.minActive);this.cursor.forward(e,t)}removeActive(e){ol(this.active,e),ol(this.activeTo,e),ol(this.activeRank,e),this.minActive=yS(this.active,this.activeTo)}addActive(e){let t=0,{value:s,to:n,rank:i}=this.cursor;for(;t0;)t++;ll(this.active,t,s),ll(this.activeTo,t,n),ll(this.activeRank,t,i),e&&ll(e,t,this.cursor.from),this.minActive=yS(this.active,this.activeTo)}next(){let e=this.to,t=this.point;this.point=null;let s=this.openStart<0?[]:null;for(;;){let n=this.minActive;if(n>-1&&(this.activeTo[n]-this.cursor.from||this.active[n].endSide-this.cursor.startSide)<0){if(this.activeTo[n]>e){this.to=this.activeTo[n],this.endSide=this.active[n].endSide;break}this.removeActive(n),s&&ol(s,n)}else if(this.cursor.value)if(this.cursor.from>e){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}else{let i=this.cursor.value;if(!i.point)this.addActive(s),this.cursor.next();else if(t&&this.cursor.to==this.to&&this.cursor.from=0&&s[n]=0&&!(this.activeRank[s]e||this.activeTo[s]==e&&this.active[s].endSide>=this.point.endSide)&&t.push(this.active[s]);return t.reverse()}openEnd(e){let t=0;for(let s=this.activeTo.length-1;s>=0&&this.activeTo[s]>e;s--)t++;return t}};function gS(r,e,t,s,n,i){r.goto(e),t.goto(s);let a=s+n,l=s,o=s-e;for(;;){let u=r.to+o-t.to||r.endSide-t.endSide,c=u<0?r.to+o:t.to,p=Math.min(c,a);if(r.point||t.point?r.point&&t.point&&(r.point==t.point||r.point.eq(t.point))&&vf(r.activeForPoint(r.to),t.activeForPoint(t.to))||i.comparePoint(l,p,r.point,t.point):p>l&&!vf(r.active,t.active)&&i.compareRange(l,p,r.active,t.active),c>a)break;l=c,u<=0&&r.next(),u>=0&&t.next()}}function vf(r,e){if(r.length!=e.length)return!1;for(let t=0;t=e;s--)r[s+1]=r[s];r[e]=t}function yS(r,e){let t=-1,s=1e9;for(let n=0;n=e)return n;if(n==r.length)break;i+=r.charCodeAt(n)==9?t-i%t:1,n=ur(r,n)}return s===!0?-1:r.length}var Sf="\u037C",_S=typeof Symbol>"u"?"__"+Sf:Symbol.for(Sf),Ef=typeof Symbol>"u"?"__styleSet"+Math.floor(Math.random()*1e8):Symbol("styleSet"),IS=typeof globalThis<"u"?globalThis:typeof window<"u"?window:{},nn=class{constructor(e,t){this.rules=[];let{finish:s}=t||{};function n(a){return/^@/.test(a)?[a]:a.split(/,\s*/)}function i(a,l,o,u){let c=[],p=/^@(\w+)\b/.exec(a[0]),h=p&&p[1]=="keyframes";if(p&&l==null)return o.push(a[0]+";");for(let f in l){let d=l[f];if(/&/.test(f))i(f.split(/,\s*/).map(m=>a.map(g=>m.replace(/&/,g))).reduce((m,g)=>m.concat(g)),d,o);else if(d&&typeof d=="object"){if(!p)throw new RangeError("The value of a property ("+f+") should be a primitive value.");i(n(f),d,c,h)}else d!=null&&c.push(f.replace(/_.*/,"").replace(/[A-Z]/g,m=>"-"+m.toLowerCase())+": "+d+";")}(c.length||h)&&o.push((s&&!p&&!u?a.map(s):a).join(", ")+" {"+c.join(" ")+"}")}for(let a in e)i(n(a),e[a],this.rules)}getRules(){return this.rules.join(` +`)}static newName(){let e=IS[_S]||1;return IS[_S]=e+1,Sf+e.toString(36)}static mount(e,t,s){let n=e[Ef],i=s&&s.nonce;n?i&&n.setNonce(i):n=new wf(e,i),n.mount(Array.isArray(t)?t:[t],e)}},RS=new Map,wf=class{constructor(e,t){let s=e.ownerDocument||e,n=s.defaultView;if(!e.head&&e.adoptedStyleSheets&&n.CSSStyleSheet){let i=RS.get(s);if(i)return e[Ef]=i;this.sheet=new n.CSSStyleSheet,RS.set(s,this)}else this.styleTag=s.createElement("style"),t&&this.styleTag.setAttribute("nonce",t);this.modules=[],e[Ef]=this}mount(e,t){let s=this.sheet,n=0,i=0;for(let a=0;a-1&&(this.modules.splice(o,1),i--,o=-1),o==-1){if(this.modules.splice(i++,0,l),s)for(let u=0;u",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},DM=typeof navigator<"u"&&/Mac/.test(navigator.platform),_M=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(cr=0;cr<10;cr++)is[48+cr]=is[96+cr]=String(cr);var cr;for(cr=1;cr<=24;cr++)is[cr+111]="F"+cr;var cr;for(cr=65;cr<=90;cr++)is[cr]=String.fromCharCode(cr+32),Mi[cr]=String.fromCharCode(cr);var cr;for(bl in is)Mi.hasOwnProperty(bl)||(Mi[bl]=is[bl]);var bl;function FS(r){var e=DM&&r.metaKey&&r.shiftKey&&!r.ctrlKey&&!r.altKey||_M&&r.shiftKey&&r.key&&r.key.length==1||r.key=="Unidentified",t=!e&&r.key||(r.shiftKey?Mi:is)[r.keyCode]||r.key||"Unidentified";return t=="Esc"&&(t="Escape"),t=="Del"&&(t="Delete"),t=="Left"&&(t="ArrowLeft"),t=="Up"&&(t="ArrowUp"),t=="Right"&&(t="ArrowRight"),t=="Down"&&(t="ArrowDown"),t}function Fl(r){let e;return r.nodeType==11?e=r.getSelection?r:r.ownerDocument:e=r,e.getSelection()}function If(r,e){return e?r==e||r.contains(e.nodeType!=1?e.parentNode:e):!1}function IM(r){let e=r.activeElement;for(;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;return e}function Pl(r,e){if(!e.anchorNode)return!1;try{return If(r,e.anchorNode)}catch{return!1}}function oo(r){return r.nodeType==3?ei(r,0,r.nodeValue.length).getClientRects():r.nodeType==1?r.getClientRects():[]}function eo(r,e,t,s){return t?BS(r,e,t,s,-1)||BS(r,e,t,s,1):!1}function Js(r){for(var e=0;;e++)if(r=r.previousSibling,!r)return e}function Bl(r){return r.nodeType==1&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(r.nodeName)}function BS(r,e,t,s,n){for(;;){if(r==t&&e==s)return!0;if(e==(n<0?0:as(r))){if(r.nodeName=="DIV")return!1;let i=r.parentNode;if(!i||i.nodeType!=1)return!1;e=Js(r)+(n<0?0:1),r=i}else if(r.nodeType==1){if(r=r.childNodes[e+(n<0?-1:0)],r.nodeType==1&&r.contentEditable=="false")return!1;e=n<0?as(r):0}else return!1}}function as(r){return r.nodeType==3?r.nodeValue.length:r.childNodes.length}function vp(r,e){let t=e?r.left:r.right;return{left:t,right:t,top:r.top,bottom:r.bottom}}function RM(r){let e=r.visualViewport;return e?{left:0,right:e.width,top:0,bottom:e.height}:{left:0,right:r.innerWidth,top:0,bottom:r.innerHeight}}function OE(r,e){let t=e.width/r.offsetWidth,s=e.height/r.offsetHeight;return(t>.995&&t<1.005||!isFinite(t)||Math.abs(e.width-r.offsetWidth)<1)&&(t=1),(s>.995&&s<1.005||!isFinite(s)||Math.abs(e.height-r.offsetHeight)<1)&&(s=1),{scaleX:t,scaleY:s}}function FM(r,e,t,s,n,i,a,l){let o=r.ownerDocument,u=o.defaultView||window;for(let c=r,p=!1;c&&!p;)if(c.nodeType==1){let h,f=c==o.body,d=1,m=1;if(f)h=RM(u);else{if(/^(fixed|sticky)$/.test(getComputedStyle(c).position)&&(p=!0),c.scrollHeight<=c.clientHeight&&c.scrollWidth<=c.clientWidth){c=c.assignedSlot||c.parentNode;continue}let v=c.getBoundingClientRect();({scaleX:d,scaleY:m}=OE(c,v)),h={left:v.left,right:v.left+c.clientWidth*d,top:v.top,bottom:v.top+c.clientHeight*m}}let g=0,y=0;if(n=="nearest")e.top0&&e.bottom>h.bottom+y&&(y=e.bottom-h.bottom+y+a)):e.bottom>h.bottom&&(y=e.bottom-h.bottom+a,t<0&&e.top-y0&&e.right>h.right+g&&(g=e.right-h.right+g+i)):e.right>h.right&&(g=e.right-h.right+i,t<0&&e.leftt.clientHeight||t.scrollWidth>t.clientWidth)return t;t=t.assignedSlot||t.parentNode}else if(t.nodeType==11)t=t.host;else break;return null}var Rf=class{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(e){return this.anchorNode==e.anchorNode&&this.anchorOffset==e.anchorOffset&&this.focusNode==e.focusNode&&this.focusOffset==e.focusOffset}setRange(e){let{anchorNode:t,focusNode:s}=e;this.set(t,Math.min(e.anchorOffset,t?as(t):0),s,Math.min(e.focusOffset,s?as(s):0))}set(e,t,s,n){this.anchorNode=e,this.anchorOffset=t,this.focusNode=s,this.focusOffset=n}},ji=null;function SE(r){if(r.setActive)return r.setActive();if(ji)return r.focus(ji);let e=[];for(let t=r;t&&(e.push(t,t.scrollTop,t.scrollLeft),t!=t.ownerDocument);t=t.parentNode);if(r.focus(ji==null?{get preventScroll(){return ji={preventScroll:!0},!0}}:void 0),!ji){ji=!1;for(let t=0;tMath.max(1,r.scrollHeight-r.clientHeight-4)}function CE(r,e){for(let t=r,s=e;;){if(t.nodeType==3&&s>0)return{node:t,offset:s};if(t.nodeType==1&&s>0){if(t.contentEditable=="false")return null;t=t.childNodes[s-1],s=as(t)}else if(t.parentNode&&!Bl(t))s=Js(t),t=t.parentNode;else return null}}function kE(r,e){for(let t=r,s=e;;){if(t.nodeType==3&&st)return p.domBoundsAround(e,t,u);if(h>=e&&n==-1&&(n=o,i=u),u>t&&p.dom.parentNode==this.dom){a=o,l=c;break}c=h,u=h+p.breakAfter}return{from:i,to:l<0?s+this.length:l,startDOM:(n?this.children[n-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:a=0?this.children[a].dom:null}}markDirty(e=!1){this.flags|=2,this.markParentsDirty(e)}markParentsDirty(e){for(let t=this.parent;t;t=t.parent){if(e&&(t.flags|=2),t.flags&1)return;t.flags|=1,e=!1}}setParent(e){this.parent!=e&&(this.parent=e,this.flags&7&&this.markParentsDirty(!0))}setDOM(e){this.dom!=e&&(this.dom&&(this.dom.cmView=null),this.dom=e,e.cmView=this)}get rootView(){for(let e=this;;){let t=e.parent;if(!t)return e;e=t}}replaceChildren(e,t,s=xp){this.markDirty();for(let n=e;nthis.pos||e==this.pos&&(t>0||this.i==0||this.children[this.i-1].breakAfter))return this.off=e-this.pos,this;let s=this.children[--this.i];this.pos-=s.length+s.breakAfter}}};function AE(r,e,t,s,n,i,a,l,o){let{children:u}=r,c=u.length?u[e]:null,p=i.length?i[i.length-1]:null,h=p?p.breakAfter:a;if(!(e==s&&c&&!a&&!h&&i.length<2&&c.merge(t,n,i.length?p:null,t==0,l,o))){if(s0&&(!a&&i.length&&c.merge(t,c.length,i[0],!1,l,0)?c.breakAfter=i.shift().breakAfter:(t2),ft={mac:jS||/Mac/.test(Zr.platform),windows:/Win/.test(Zr.platform),linux:/Linux|X11/.test(Zr.platform),ie:Xl,ie_version:TE?Ff.documentMode||6:Nf?+Nf[1]:Bf?+Bf[1]:0,gecko:$S,gecko_version:$S?+(/Firefox\/(\d+)/.exec(Zr.userAgent)||[0,0])[1]:0,chrome:!!Cf,chrome_version:Cf?+Cf[1]:0,ios:jS,android:/Android\b/.test(Zr.userAgent),webkit:MS,safari:DE,webkit_version:MS?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0,tabSize:Ff.documentElement.style.tabSize!=null?"tab-size":"-moz-tab-size"},$M=256,Ln=class r extends Xt{constructor(e){super(),this.text=e}get length(){return this.text.length}createDOM(e){this.setDOM(e||document.createTextNode(this.text))}sync(e,t){this.dom||this.createDOM(),this.dom.nodeValue!=this.text&&(t&&t.node==this.dom&&(t.written=!0),this.dom.nodeValue=this.text)}reuseDOM(e){e.nodeType==3&&this.createDOM(e)}merge(e,t,s){return this.flags&8||s&&(!(s instanceof r)||this.length-(t-e)+s.length>$M||s.flags&8)?!1:(this.text=this.text.slice(0,e)+(s?s.text:"")+this.text.slice(t),this.markDirty(),!0)}split(e){let t=new r(this.text.slice(e));return this.text=this.text.slice(0,e),this.markDirty(),t.flags|=this.flags&8,t}localPosFromDOM(e,t){return e==this.dom?t:t?this.text.length:0}domAtPos(e){return new _r(this.dom,e)}domBoundsAround(e,t,s){return{from:s,to:s+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}coordsAt(e,t){return MM(this.dom,e,t)}},ws=class r extends Xt{constructor(e,t=[],s=0){super(),this.mark=e,this.children=t,this.length=s;for(let n of t)n.setParent(this)}setAttrs(e){if(EE(e),this.mark.class&&(e.className=this.mark.class),this.mark.attrs)for(let t in this.mark.attrs)e.setAttribute(t,this.mark.attrs[t]);return e}canReuseDOM(e){return super.canReuseDOM(e)&&!((this.flags|e.flags)&8)}reuseDOM(e){e.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(e),this.flags|=6)}sync(e,t){this.dom?this.flags&4&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),super.sync(e,t)}merge(e,t,s,n,i,a){return s&&(!(s instanceof r&&s.mark.eq(this.mark))||e&&i<=0||te&&t.push(s=e&&(n=i),s=o,i++}let a=this.length-e;return this.length=e,n>-1&&(this.children.length=n,this.markDirty()),new r(this.mark,t,a)}domAtPos(e){return _E(this,e)}coordsAt(e,t){return RE(this,e,t)}};function MM(r,e,t){let s=r.nodeValue.length;e>s&&(e=s);let n=e,i=e,a=0;e==0&&t<0||e==s&&t>=0?ft.chrome||ft.gecko||(e?(n--,a=1):i=0)?0:l.length-1];return ft.safari&&!a&&o.width==0&&(o=Array.prototype.find.call(l,u=>u.width)||o),a?vp(o,a<0):o||null}var lo=class r extends Xt{static create(e,t,s){return new r(e,t,s)}constructor(e,t,s){super(),this.widget=e,this.length=t,this.side=s,this.prevWidget=null}split(e){let t=r.create(this.widget,this.length-e,this.side);return this.length-=e,t}sync(e){(!this.dom||!this.widget.updateDOM(this.dom,e))&&(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(e)),this.widget.editable||(this.dom.contentEditable="false"))}getSide(){return this.side}merge(e,t,s,n,i,a){return s&&(!(s instanceof r)||!this.widget.compare(s.widget)||e>0&&i<=0||t0)?_r.before(this.dom):_r.after(this.dom,e==this.length)}domBoundsAround(){return null}coordsAt(e,t){let s=this.widget.coordsAt(this.dom,e,t);if(s)return s;let n=this.dom.getClientRects(),i=null;if(!n.length)return null;let a=this.side?this.side<0:e>0;for(let l=a?n.length-1:0;i=n[l],!(e>0?l==0:l==n.length-1||i.top0?_r.before(this.dom):_r.after(this.dom)}localPosFromDOM(){return 0}domBoundsAround(){return null}coordsAt(e){return this.dom.getBoundingClientRect()}get overrideDOMText(){return Rt.empty}get isHidden(){return!0}};Ln.prototype.children=lo.prototype.children=uo.prototype.children=xp;function _E(r,e){let t=r.dom,{children:s}=r,n=0;for(let i=0;ni&&e0;i--){let a=s[i-1];if(a.dom.parentNode==t)return a.domAtPos(a.length)}for(let i=n;i0&&e instanceof ws&&n.length&&(s=n[n.length-1])instanceof ws&&s.mark.eq(e.mark)?IE(s,e.children[0],t-1):(n.push(e),e.setParent(r)),r.length+=e.length}function RE(r,e,t){let s=null,n=-1,i=null,a=-1;function l(u,c){for(let p=0,h=0;p=c&&(f.children.length?l(f,c-h):(!i||i.isHidden&&t>0)&&(d>c||h==d&&f.getSide()>0)?(i=f,a=c-h):(h-1?1:0)!=n.length-(t&&n.indexOf(t)>-1?1:0))return!1;for(let i of s)if(i!=t&&(n.indexOf(i)==-1||r[i]!==e[i]))return!1;return!0}function $f(r,e,t){let s=!1;if(e)for(let n in e)t&&n in t||(s=!0,n=="style"?r.style.cssText="":r.removeAttribute(n));if(t)for(let n in t)e&&e[n]==t[n]||(s=!0,n=="style"?r.style.cssText=t[n]:r.setAttribute(n,t[n]));return s}function qM(r){let e=Object.create(null);for(let t=0;t0&&this.children[s-1].length==0;)this.children[--s].destroy();return this.children.length=s,this.markDirty(),this.length=e,t}transferDOM(e){this.dom&&(this.markDirty(),e.setDOM(this.dom),e.prevAttrs=this.prevAttrs===void 0?this.attrs:this.prevAttrs,this.prevAttrs=void 0,this.dom=null)}setDeco(e){Op(this.attrs,e)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=e)}append(e,t){IE(this,e,t)}addLineDeco(e){let t=e.spec.attributes,s=e.spec.class;t&&(this.attrs=Lf(t,this.attrs||{})),s&&(this.attrs=Lf({class:s},this.attrs||{}))}domAtPos(e){return _E(this,e)}reuseDOM(e){e.nodeName=="DIV"&&(this.setDOM(e),this.flags|=6)}sync(e,t){var s;this.dom?this.flags&4&&(EE(this.dom),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0):(this.setDOM(document.createElement("div")),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0),this.prevAttrs!==void 0&&($f(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add("cm-line"),this.prevAttrs=void 0),super.sync(e,t);let n=this.dom.lastChild;for(;n&&Xt.get(n)instanceof ws;)n=n.lastChild;if(!n||!this.length||n.nodeName!="BR"&&((s=Xt.get(n))===null||s===void 0?void 0:s.isEditable)==!1&&(!ft.ios||!this.children.some(i=>i instanceof Ln))){let i=document.createElement("BR");i.cmIgnore=!0,this.dom.appendChild(i)}}measureTextSize(){if(this.children.length==0||this.length>20)return null;let e=0,t;for(let s of this.children){if(!(s instanceof Ln)||/[^ -~]/.test(s.text))return null;let n=oo(s.dom);if(n.length!=1)return null;e+=n[0].width,t=n[0].height}return e?{lineHeight:this.dom.getBoundingClientRect().height,charWidth:e/this.length,textHeight:t}:null}coordsAt(e,t){let s=RE(this,e,t);if(!this.children.length&&s&&this.parent){let{heightOracle:n}=this.parent.view.viewState,i=s.bottom-s.top;if(Math.abs(i-n.lineHeight)<2&&n.textHeight=t){if(i instanceof r)return i;if(a>t)break}n=a+i.breakAfter}return null}},Wi=class r extends Xt{constructor(e,t,s){super(),this.widget=e,this.length=t,this.deco=s,this.breakAfter=0,this.prevWidget=null}merge(e,t,s,n,i,a){return s&&(!(s instanceof r)||!this.widget.compare(s.widget)||e>0&&i<=0||t0}},an=class{eq(e){return!1}updateDOM(e,t){return!1}compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}get estimatedHeight(){return-1}get lineBreaks(){return 0}ignoreEvent(e){return!0}coordsAt(e,t,s){return null}get isHidden(){return!1}get editable(){return!1}destroy(e){}},Ir=function(r){return r[r.Text=0]="Text",r[r.WidgetBefore=1]="WidgetBefore",r[r.WidgetAfter=2]="WidgetAfter",r[r.WidgetRange=3]="WidgetRange",r}(Ir||(Ir={})),yt=class extends yn{constructor(e,t,s,n){super(),this.startSide=e,this.endSide=t,this.widget=s,this.spec=n}get heightRelevant(){return!1}static mark(e){return new co(e)}static widget(e){let t=Math.max(-1e4,Math.min(1e4,e.side||0)),s=!!e.block;return t+=s&&!e.inlineOrder?t>0?3e8:-4e8:t>0?1e8:-1e8,new Cs(e,t,t,s,e.widget||null,!1)}static replace(e){let t=!!e.block,s,n;if(e.isBlockGap)s=-5e8,n=4e8;else{let{start:i,end:a}=FE(e,t);s=(i?t?-3e8:-1:5e8)-1,n=(a?t?2e8:1:-6e8)+1}return new Cs(e,s,n,t,e.widget||null,!0)}static line(e){return new fo(e)}static set(e,t=!1){return Mt.of(e,t)}hasHeight(){return this.widget?this.widget.estimatedHeight>-1:!1}};yt.none=Mt.empty;var co=class r extends yt{constructor(e){let{start:t,end:s}=FE(e);super(t?-1:5e8,s?1:-6e8,null,e),this.tagName=e.tagName||"span",this.class=e.class||"",this.attrs=e.attributes||null}eq(e){var t,s;return this==e||e instanceof r&&this.tagName==e.tagName&&(this.class||((t=this.attrs)===null||t===void 0?void 0:t.class))==(e.class||((s=e.attrs)===null||s===void 0?void 0:s.class))&&Op(this.attrs,e.attrs,"class")}range(e,t=e){if(e>=t)throw new RangeError("Mark decorations may not be empty");return super.range(e,t)}};co.prototype.point=!1;var fo=class r extends yt{constructor(e){super(-2e8,-2e8,null,e)}eq(e){return e instanceof r&&this.spec.class==e.spec.class&&Op(this.spec.attributes,e.spec.attributes)}range(e,t=e){if(t!=e)throw new RangeError("Line decoration ranges must be zero-length");return super.range(e,t)}};fo.prototype.mapMode=fr.TrackBefore;fo.prototype.point=!0;var Cs=class r extends yt{constructor(e,t,s,n,i,a){super(t,s,i,e),this.block=n,this.isReplace=a,this.mapMode=n?t<=0?fr.TrackBefore:fr.TrackAfter:fr.TrackDel}get type(){return this.startSide!=this.endSide?Ir.WidgetRange:this.startSide<=0?Ir.WidgetBefore:Ir.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(e){return e instanceof r&&QM(this.widget,e.widget)&&this.block==e.block&&this.startSide==e.startSide&&this.endSide==e.endSide}range(e,t=e){if(this.isReplace&&(e>t||e==t&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&t!=e)throw new RangeError("Widget decorations can only have zero-length ranges");return super.range(e,t)}};Cs.prototype.point=!0;function FE(r,e=!1){let{inclusiveStart:t,inclusiveEnd:s}=r;return t==null&&(t=r.inclusive),s==null&&(s=r.inclusive),{start:t??e,end:s??e}}function QM(r,e){return r==e||!!(r&&e&&r.compare(e))}function Mf(r,e,t,s=0){let n=t.length-1;n>=0&&t[n]+s>=r?t[n]=Math.max(t[n],e):t.push(r,e)}var to=class r{constructor(e,t,s,n){this.doc=e,this.pos=t,this.end=s,this.disallowBlockEffectsFor=n,this.content=[],this.curLine=null,this.breakAtStart=0,this.pendingBuffer=0,this.bufferMarks=[],this.atCursorPos=!0,this.openStart=-1,this.openEnd=-1,this.text="",this.textOff=0,this.cursor=e.iter(),this.skip=t}posCovered(){if(this.content.length==0)return!this.breakAtStart&&this.doc.lineAt(this.pos).from!=this.pos;let e=this.content[this.content.length-1];return!(e.breakAfter||e instanceof Wi&&e.deco.endSide<0)}getLine(){return this.curLine||(this.content.push(this.curLine=new Or),this.atCursorPos=!0),this.curLine}flushBuffer(e=this.bufferMarks){this.pendingBuffer&&(this.curLine.append(vl(new uo(-1),e),e.length),this.pendingBuffer=0)}addBlockWidget(e){this.flushBuffer(),this.curLine=null,this.content.push(e)}finish(e){this.pendingBuffer&&e<=this.bufferMarks.length?this.flushBuffer():this.pendingBuffer=0,!this.posCovered()&&!(e&&this.content.length&&this.content[this.content.length-1]instanceof Wi)&&this.getLine()}buildText(e,t,s){for(;e>0;){if(this.textOff==this.text.length){let{value:i,lineBreak:a,done:l}=this.cursor.next(this.skip);if(this.skip=0,l)throw new Error("Ran out of text content when drawing inline views");if(a){this.posCovered()||this.getLine(),this.content.length?this.content[this.content.length-1].breakAfter=1:this.breakAtStart=1,this.flushBuffer(),this.curLine=null,this.atCursorPos=!0,e--;continue}else this.text=i,this.textOff=0}let n=Math.min(this.text.length-this.textOff,e,512);this.flushBuffer(t.slice(t.length-s)),this.getLine().append(vl(new Ln(this.text.slice(this.textOff,this.textOff+n)),t),s),this.atCursorPos=!0,this.textOff+=n,e-=n,s=0}}span(e,t,s,n){this.buildText(t-e,s,n),this.pos=t,this.openStart<0&&(this.openStart=n)}point(e,t,s,n,i,a){if(this.disallowBlockEffectsFor[a]&&s instanceof Cs){if(s.block)throw new RangeError("Block decorations may not be specified via plugins");if(t>this.doc.lineAt(this.pos).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}let l=t-e;if(s instanceof Cs)if(s.block)s.startSide>0&&!this.posCovered()&&this.getLine(),this.addBlockWidget(new Wi(s.widget||ks.block,l,s));else{let o=lo.create(s.widget||ks.inline,l,l?0:s.startSide),u=this.atCursorPos&&!o.isEditable&&i<=n.length&&(e0),c=!o.isEditable&&(en.length||s.startSide<=0),p=this.getLine();this.pendingBuffer==2&&!u&&!o.isEditable&&(this.pendingBuffer=0),this.flushBuffer(n),u&&(p.append(vl(new uo(1),n),i),i=n.length+Math.max(0,i-n.length)),p.append(vl(o,n),i),this.atCursorPos=c,this.pendingBuffer=c?en.length?1:2:0,this.pendingBuffer&&(this.bufferMarks=n.slice())}else this.doc.lineAt(this.pos).from==this.pos&&this.getLine().addLineDeco(s);l&&(this.textOff+l<=this.text.length?this.textOff+=l:(this.skip+=l-(this.text.length-this.textOff),this.text="",this.textOff=0),this.pos=t),this.openStart<0&&(this.openStart=i)}static build(e,t,s,n,i){let a=new r(e,t,s,i);return a.openEnd=Mt.spans(n,t,s,a),a.openStart<0&&(a.openStart=a.openEnd),a.finish(a.openEnd),a}};function vl(r,e){for(let t of e)r=new ws(t,[r],r.length);return r}var ks=class extends an{constructor(e){super(),this.tag=e}eq(e){return e.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(e){return e.nodeName.toLowerCase()==this.tag}get isHidden(){return!0}};ks.inline=new ks("span");ks.block=new ks("div");var zt=function(r){return r[r.LTR=0]="LTR",r[r.RTL=1]="RTL",r}(zt||(zt={})),ti=zt.LTR,Sp=zt.RTL;function BE(r){let e=[];for(let t=0;t=t){if(l.level==s)return a;(i<0||(n!=0?n<0?l.fromt:e[i].level>l.level))&&(i=a)}}if(i<0)throw new RangeError("Index out of range");return i}};function LE(r,e){if(r.length!=e.length)return!1;for(let t=0;t=0;m-=3)if(Rn[m+1]==-f){let g=Rn[m+2],y=g&2?n:g&4?g&1?i:n:0;y&&(Gt[p]=Gt[Rn[m]]=y),l=m;break}}else{if(Rn.length==189)break;Rn[l++]=p,Rn[l++]=h,Rn[l++]=o}else if((d=Gt[p])==2||d==1){let m=d==n;o=m?0:1;for(let g=l-3;g>=0;g-=3){let y=Rn[g+2];if(y&2)break;if(m)Rn[g+2]|=2;else{if(y&4)break;Rn[g+2]|=4}}}}}function GM(r,e,t,s){for(let n=0,i=s;n<=t.length;n++){let a=n?t[n-1].to:r,l=no;)d==g&&(d=t[--m].from,g=m?t[m-1].to:r),Gt[--d]=f;o=c}else i=u,o++}}}function qf(r,e,t,s,n,i,a){let l=s%2?2:1;if(s%2==n%2)for(let o=e,u=0;oo&&a.push(new Bn(o,m.from,f));let g=m.direction==ti!=!(f%2);Qf(r,g?s+1:s,n,m.inner,m.from,m.to,a),o=m.to}d=m.to}else{if(d==t||(c?Gt[d]!=l:Gt[d]==l))break;d++}h?qf(r,o,d,s+1,n,h,a):oe;){let c=!0,p=!1;if(!u||o>i[u-1].to){let m=Gt[o-1];m!=l&&(c=!1,p=m==16)}let h=!c&&l==1?[]:null,f=c?s:s+1,d=o;e:for(;;)if(u&&d==i[u-1].to){if(p)break e;let m=i[--u];if(!c)for(let g=m.from,y=u;;){if(g==e)break e;if(y&&i[y-1].to==g)g=i[--y].from;else{if(Gt[g-1]==l)break e;break}}if(h)h.push(m);else{m.toGt.length;)Gt[Gt.length]=256;let s=[],n=e==ti?0:1;return Qf(r,n,n,t,0,r.length,s),s}function $E(r){return[new Bn(0,r,0)]}var ME="";function YM(r,e,t,s,n){var i;let a=s.head-r.from,l=Bn.find(e,a,(i=s.bidiLevel)!==null&&i!==void 0?i:-1,s.assoc),o=e[l],u=o.side(n,t);if(a==u){let h=l+=n?1:-1;if(h<0||h>=e.length)return null;o=e[l=h],a=o.side(!n,t),u=o.side(n,t)}let c=ur(r.text,a,o.forward(n,t));(co.to)&&(c=u),ME=r.text.slice(Math.min(a,c),Math.max(a,c));let p=l==(n?e.length-1:0)?null:e[l+(n?1:-1)];return p&&c==u&&p.level+(n?0:1)r.some(e=>e)}),ZE=ct.define({combine:r=>r.some(e=>e)}),GE=ct.define(),ro=class r{constructor(e,t="nearest",s="nearest",n=5,i=5,a=!1){this.range=e,this.y=t,this.x=s,this.yMargin=n,this.xMargin=i,this.isSnapshot=a}map(e){return e.empty?this:new r(this.range.map(e),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}clip(e){return this.range.to<=e.doc.length?this:new r(ze.cursor(e.doc.length),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}},xl=Ct.define({map:(r,e)=>r.map(e)});function yr(r,e,t){let s=r.facet(UE);s.length?s[0](e):window.onerror?window.onerror(String(e),t,void 0,void 0,e):t?console.error(t+":",e):console.error(e)}var Yl=ct.define({combine:r=>r.length?r[0]:!0}),KM=0,Xa=ct.define(),rr=class r{constructor(e,t,s,n,i){this.id=e,this.create=t,this.domEventHandlers=s,this.domEventObservers=n,this.extension=i(this)}static define(e,t){let{eventHandlers:s,eventObservers:n,provide:i,decorations:a}=t||{};return new r(KM++,e,s,n,l=>{let o=[Xa.of(l)];return a&&o.push(po.of(u=>{let c=u.plugin(l);return c?a(c):yt.none})),i&&o.push(i(l)),o})}static fromClass(e,t){return r.define(s=>new e(s),t)}},no=class{constructor(e){this.spec=e,this.mustUpdate=null,this.value=null}update(e){if(this.value){if(this.mustUpdate){let t=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(t)}catch(s){if(yr(t.state,s,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch{}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.create(e)}catch(t){yr(e.state,t,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(e){var t;if(!((t=this.value)===null||t===void 0)&&t.destroy)try{this.value.destroy()}catch(s){yr(e.state,s,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}},XE=ct.define(),Ep=ct.define(),po=ct.define(),YE=ct.define(),wp=ct.define(),HE=ct.define();function QS(r,e){let t=r.state.facet(HE);if(!t.length)return t;let s=t.map(i=>i instanceof Function?i(r):i),n=[];return Mt.spans(s,e.from,e.to,{point(){},span(i,a,l,o){let u=i-e.from,c=a-e.from,p=n;for(let h=l.length-1;h>=0;h--,o--){let f=l[h].spec.bidiIsolate,d;if(f==null&&(f=HM(e.text,u,c)),o>0&&p.length&&(d=p[p.length-1]).to==u&&d.direction==f)d.to=c,p=d.inner;else{let m={from:u,to:c,direction:f,inner:[]};p.push(m),p=m.inner}}}}),n}var KE=ct.define();function JE(r){let e=0,t=0,s=0,n=0;for(let i of r.state.facet(KE)){let a=i(r);a&&(a.left!=null&&(e=Math.max(e,a.left)),a.right!=null&&(t=Math.max(t,a.right)),a.top!=null&&(s=Math.max(s,a.top)),a.bottom!=null&&(n=Math.max(n,a.bottom)))}return{left:e,right:t,top:s,bottom:n}}var Ya=ct.define(),Nn=class r{constructor(e,t,s,n){this.fromA=e,this.toA=t,this.fromB=s,this.toB=n}join(e){return new r(Math.min(this.fromA,e.fromA),Math.max(this.toA,e.toA),Math.min(this.fromB,e.fromB),Math.max(this.toB,e.toB))}addToSet(e){let t=e.length,s=this;for(;t>0;t--){let n=e[t-1];if(!(n.fromA>s.toA)){if(n.toAc)break;i+=2}if(!o)return s;new r(o.fromA,o.toA,o.fromB,o.toB).addToSet(s),a=o.toA,l=o.toB}}},Ll=class r{constructor(e,t,s){this.view=e,this.state=t,this.transactions=s,this.flags=0,this.startState=e.state,this.changes=Dr.empty(this.startState.doc.length);for(let i of s)this.changes=this.changes.compose(i.changes);let n=[];this.changes.iterChangedRanges((i,a,l,o)=>n.push(new Nn(i,a,l,o))),this.changedRanges=n}static create(e,t,s){return new r(e,t,s)}get viewportChanged(){return(this.flags&4)>0}get heightChanged(){return(this.flags&2)>0}get geometryChanged(){return this.docChanged||(this.flags&10)>0}get focusChanged(){return(this.flags&1)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some(e=>e.selection)}get empty(){return this.flags==0&&this.transactions.length==0}},$l=class extends Xt{get length(){return this.view.state.doc.length}constructor(e){super(),this.view=e,this.decorations=[],this.dynamicDecorationMap=[],this.domChanged=null,this.hasComposition=null,this.markedForComposition=new Set,this.lastCompositionAfterCursor=!1,this.minWidth=0,this.minWidthFrom=0,this.minWidthTo=0,this.impreciseAnchor=null,this.impreciseHead=null,this.forceSelection=!1,this.lastUpdate=Date.now(),this.setDOM(e.contentDOM),this.children=[new Or],this.children[0].setParent(this),this.updateDeco(),this.updateInner([new Nn(0,0,0,e.state.doc.length)],0,null)}update(e){var t;let s=e.changedRanges;this.minWidth>0&&s.length&&(s.every(({fromA:u,toA:c})=>cthis.minWidthTo)?(this.minWidthFrom=e.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=e.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0);let n=-1;this.view.inputState.composing>=0&&(!((t=this.domChanged)===null||t===void 0)&&t.newSel?n=this.domChanged.newSel.head:!i3(e.changes,this.hasComposition)&&!e.selectionSet&&(n=e.state.selection.main.head));let i=n>-1?e3(this.view,e.changes,n):null;if(this.domChanged=null,this.hasComposition){this.markedForComposition.clear();let{from:u,to:c}=this.hasComposition;s=new Nn(u,c,e.changes.mapPos(u,-1),e.changes.mapPos(c,1)).addToSet(s.slice())}this.hasComposition=i?{from:i.range.fromB,to:i.range.toB}:null,(ft.ie||ft.chrome)&&!i&&e&&e.state.doc.lines!=e.startState.doc.lines&&(this.forceSelection=!0);let a=this.decorations,l=this.updateDeco(),o=n3(a,l,e.changes);return s=Nn.extendWithRanges(s,o),!(this.flags&7)&&s.length==0?!1:(this.updateInner(s,e.startState.doc.length,i),e.transactions.length&&(this.lastUpdate=Date.now()),!0)}updateInner(e,t,s){this.view.viewState.mustMeasureContent=!0,this.updateChildren(e,t,s);let{observer:n}=this.view;n.ignore(()=>{this.dom.style.height=this.view.viewState.contentHeight/this.view.scaleY+"px",this.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let a=ft.chrome||ft.ios?{node:n.selectionRange.focusNode,written:!1}:void 0;this.sync(this.view,a),this.flags&=-8,a&&(a.written||n.selectionRange.focusNode!=a.node)&&(this.forceSelection=!0),this.dom.style.height=""}),this.markedForComposition.forEach(a=>a.flags&=-9);let i=[];if(this.view.viewport.from||this.view.viewport.to=0?n[a]:null;if(!l)break;let{fromA:o,toA:u,fromB:c,toB:p}=l,h,f,d,m;if(s&&s.range.fromBc){let S=to.build(this.view.state.doc,c,s.range.fromB,this.decorations,this.dynamicDecorationMap),w=to.build(this.view.state.doc,s.range.toB,p,this.decorations,this.dynamicDecorationMap);f=S.breakAtStart,d=S.openStart,m=w.openEnd;let O=this.compositionView(s);w.breakAtStart?O.breakAfter=1:w.content.length&&O.merge(O.length,O.length,w.content[0],!1,w.openStart,0)&&(O.breakAfter=w.content[0].breakAfter,w.content.shift()),S.content.length&&O.merge(0,0,S.content[S.content.length-1],!0,0,S.openEnd)&&S.content.pop(),h=S.content.concat(O).concat(w.content)}else({content:h,breakAtStart:f,openStart:d,openEnd:m}=to.build(this.view.state.doc,c,p,this.decorations,this.dynamicDecorationMap));let{i:g,off:y}=i.findPos(u,1),{i:v,off:x}=i.findPos(o,-1);AE(this,v,x,g,y,h,f,d,m)}s&&this.fixCompositionDOM(s)}compositionView(e){let t=new Ln(e.text.nodeValue);t.flags|=8;for(let{deco:n}of e.marks)t=new ws(n,[t],t.length);let s=new Or;return s.append(t,0),s}fixCompositionDOM(e){let t=(i,a)=>{a.flags|=8|(a.children.some(o=>o.flags&7)?1:0),this.markedForComposition.add(a);let l=Xt.get(i);l&&l!=a&&(l.dom=null),a.setDOM(i)},s=this.childPos(e.range.fromB,1),n=this.children[s.i];t(e.line,n);for(let i=e.marks.length-1;i>=-1;i--)s=n.childPos(s.off,1),n=n.children[s.i],t(i>=0?e.marks[i].node:e.text,n)}updateSelection(e=!1,t=!1){(e||!this.view.observer.selectionRange.focusNode)&&this.view.observer.readSelectionRange();let s=this.view.root.activeElement,n=s==this.dom,i=!n&&Pl(this.dom,this.view.observer.selectionRange)&&!(s&&this.dom.contains(s));if(!(n||t||i))return;let a=this.forceSelection;this.forceSelection=!1;let l=this.view.state.selection.main,o=this.moveToLine(this.domAtPos(l.anchor)),u=l.empty?o:this.moveToLine(this.domAtPos(l.head));if(ft.gecko&&l.empty&&!this.hasComposition&&JM(o)){let p=document.createTextNode("");this.view.observer.ignore(()=>o.node.insertBefore(p,o.node.childNodes[o.offset]||null)),o=u=new _r(p,0),a=!0}let c=this.view.observer.selectionRange;(a||!c.focusNode||(!eo(o.node,o.offset,c.anchorNode,c.anchorOffset)||!eo(u.node,u.offset,c.focusNode,c.focusOffset))&&!this.suppressWidgetCursorChange(c,l))&&(this.view.observer.ignore(()=>{ft.android&&ft.chrome&&this.dom.contains(c.focusNode)&&s3(c.focusNode,this.dom)&&(this.dom.blur(),this.dom.focus({preventScroll:!0}));let p=Fl(this.view.root);if(p)if(l.empty){if(ft.gecko){let h=t3(o.node,o.offset);if(h&&h!=3){let f=(h==1?CE:kE)(o.node,o.offset);f&&(o=new _r(f.node,f.offset))}}p.collapse(o.node,o.offset),l.bidiLevel!=null&&p.caretBidiLevel!==void 0&&(p.caretBidiLevel=l.bidiLevel)}else if(p.extend){p.collapse(o.node,o.offset);try{p.extend(u.node,u.offset)}catch{}}else{let h=document.createRange();l.anchor>l.head&&([o,u]=[u,o]),h.setEnd(u.node,u.offset),h.setStart(o.node,o.offset),p.removeAllRanges(),p.addRange(h)}i&&this.view.root.activeElement==this.dom&&(this.dom.blur(),s&&s.focus())}),this.view.observer.setSelectionRange(o,u)),this.impreciseAnchor=o.precise?null:new _r(c.anchorNode,c.anchorOffset),this.impreciseHead=u.precise?null:new _r(c.focusNode,c.focusOffset)}suppressWidgetCursorChange(e,t){return this.hasComposition&&t.empty&&eo(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)&&this.posFromDOM(e.focusNode,e.focusOffset)==t.head}enforceCursorAssoc(){if(this.hasComposition)return;let{view:e}=this,t=e.state.selection.main,s=Fl(e.root),{anchorNode:n,anchorOffset:i}=e.observer.selectionRange;if(!s||!t.empty||!t.assoc||!s.modify)return;let a=Or.find(this,t.head);if(!a)return;let l=a.posAtStart;if(t.head==l||t.head==l+a.length)return;let o=this.coordsAt(t.head,-1),u=this.coordsAt(t.head,1);if(!o||!u||o.bottom>u.top)return;let c=this.domAtPos(t.head+t.assoc);s.collapse(c.node,c.offset),s.modify("move",t.assoc<0?"forward":"backward","lineboundary"),e.observer.readSelectionRange();let p=e.observer.selectionRange;e.docView.posFromDOM(p.anchorNode,p.anchorOffset)!=t.from&&s.collapse(n,i)}moveToLine(e){let t=this.dom,s;if(e.node!=t)return e;for(let n=e.offset;!s&&n=0;n--){let i=Xt.get(t.childNodes[n]);i instanceof Or&&(s=i.domAtPos(i.length))}return s?new _r(s.node,s.offset,!0):e}nearest(e){for(let t=e;t;){let s=Xt.get(t);if(s&&s.rootView==this)return s;t=t.parentNode}return null}posFromDOM(e,t){let s=this.nearest(e);if(!s)throw new RangeError("Trying to find position for a DOM position outside of the document");return s.localPosFromDOM(e,t)+s.posAtStart}domAtPos(e){let{i:t,off:s}=this.childCursor().findPos(e,-1);for(;t=0;a--){let l=this.children[a],o=i-l.breakAfter,u=o-l.length;if(oe||l.covers(1))&&(!s||l instanceof Or&&!(s instanceof Or&&t>=0))&&(s=l,n=u),i=u}return s?s.coordsAt(e-n,t):null}coordsForChar(e){let{i:t,off:s}=this.childPos(e,1),n=this.children[t];if(!(n instanceof Or))return null;for(;n.children.length;){let{i:l,off:o}=n.childPos(s,1);for(;;l++){if(l==n.children.length)return null;if((n=n.children[l]).length)break}s=o}if(!(n instanceof Ln))return null;let i=ur(n.text,s);if(i==s)return null;let a=ei(n.dom,s,i).getClientRects();for(let l=0;lMath.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,l=-1,o=this.view.textDirection==zt.LTR;for(let u=0,c=0;cn)break;if(u>=s){let f=p.dom.getBoundingClientRect();if(t.push(f.height),a){let d=p.dom.lastChild,m=d?oo(d):[];if(m.length){let g=m[m.length-1],y=o?g.right-f.left:f.right-g.left;y>l&&(l=y,this.minWidth=i,this.minWidthFrom=u,this.minWidthTo=h)}}}u=h+p.breakAfter}return t}textDirectionAt(e){let{i:t}=this.childPos(e,1);return getComputedStyle(this.children[t].dom).direction=="rtl"?zt.RTL:zt.LTR}measureTextSize(){for(let i of this.children)if(i instanceof Or){let a=i.measureTextSize();if(a)return a}let e=document.createElement("div"),t,s,n;return e.className="cm-line",e.style.width="99999px",e.style.position="absolute",e.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore(()=>{this.dom.appendChild(e);let i=oo(e.firstChild)[0];t=e.getBoundingClientRect().height,s=i?i.width/27:7,n=i?i.height:t,e.remove()}),{lineHeight:t,charWidth:s,textHeight:n}}childCursor(e=this.length){let t=this.children.length;return t&&(e-=this.children[--t].length),new Nl(this.children,e,t)}computeBlockGapDeco(){let e=[],t=this.view.viewState;for(let s=0,n=0;;n++){let i=n==t.viewports.length?null:t.viewports[n],a=i?i.from-1:this.length;if(a>s){let l=(t.lineBlockAt(a).bottom-t.lineBlockAt(s).top)/this.view.scaleY;e.push(yt.replace({widget:new Ml(l),block:!0,inclusive:!0,isBlockGap:!0}).range(s,a))}if(!i)break;s=i.to+1}return yt.set(e)}updateDeco(){let e=0,t=this.view.state.facet(po).map(i=>(this.dynamicDecorationMap[e++]=typeof i=="function")?i(this.view):i),s=!1,n=this.view.state.facet(YE).map((i,a)=>{let l=typeof i=="function";return l&&(s=!0),l?i(this.view):i});for(n.length&&(this.dynamicDecorationMap[e++]=s,t.push(Mt.join(n))),this.decorations=[...t,this.computeBlockGapDeco(),this.view.viewState.lineGapDeco];et.anchor?-1:1),n;if(!s)return;!t.empty&&(n=this.coordsAt(t.anchor,t.anchor>t.head?-1:1))&&(s={left:Math.min(s.left,n.left),top:Math.min(s.top,n.top),right:Math.max(s.right,n.right),bottom:Math.max(s.bottom,n.bottom)});let i=JE(this.view),a={left:s.left-i.left,top:s.top-i.top,right:s.right+i.right,bottom:s.bottom+i.bottom},{offsetWidth:l,offsetHeight:o}=this.view.scrollDOM;FM(this.view.scrollDOM,a,t.head{se.from&&(t=!0)}),t}function a3(r,e,t=1){let s=r.charCategorizer(e),n=r.doc.lineAt(e),i=e-n.from;if(n.length==0)return ze.cursor(e);i==0?t=1:i==n.length&&(t=-1);let a=i,l=i;t<0?a=ur(n.text,i,!1):l=ur(n.text,i);let o=s(n.text.slice(a,l));for(;a>0;){let u=ur(n.text,a,!1);if(s(n.text.slice(u,a))!=o)break;a=u}for(;lr?e.left-r:Math.max(0,r-e.right)}function l3(r,e){return e.top>r?e.top-r:Math.max(0,r-e.bottom)}function kf(r,e){return r.tope.top+1}function US(r,e){return er.bottom?{top:r.top,left:r.left,right:r.right,bottom:e}:r}function Vf(r,e,t){let s,n,i,a,l=!1,o,u,c,p;for(let d=r.firstChild;d;d=d.nextSibling){let m=oo(d);for(let g=0;gx||a==x&&i>v){s=d,n=y,i=v,a=x;let S=x?t0?g0)}v==0?t>y.bottom&&(!c||c.bottomy.top)&&(u=d,p=y):c&&kf(c,y)?c=VS(c,y.bottom):p&&kf(p,y)&&(p=US(p,y.top))}}if(c&&c.bottom>=t?(s=o,n=c):p&&p.top<=t&&(s=u,n=p),!s)return{node:r,offset:0};let h=Math.max(n.left,Math.min(n.right,e));if(s.nodeType==3)return WS(s,h,t);if(l&&s.contentEditable!="false")return Vf(s,h,t);let f=Array.prototype.indexOf.call(r.childNodes,s)+(e>=(n.left+n.right)/2?1:0);return{node:r,offset:f}}function WS(r,e,t){let s=r.nodeValue.length,n=-1,i=1e9,a=0;for(let l=0;lt?c.top-t:t-c.bottom)-1;if(c.left-1<=e&&c.right+1>=e&&p=(c.left+c.right)/2,f=h;if((ft.chrome||ft.gecko)&&ei(r,l).getBoundingClientRect().left==c.right&&(f=!h),p<=0)return{node:r,offset:l+(f?1:0)};n=l+(f?1:0),i=p}}}return{node:r,offset:n>-1?n:a>0?r.nodeValue.length:0}}function tw(r,e,t,s=-1){var n,i;let a=r.contentDOM.getBoundingClientRect(),l=a.top+r.viewState.paddingTop,o,{docHeight:u}=r.viewState,{x:c,y:p}=e,h=p-l;if(h<0)return 0;if(h>u)return r.state.doc.length;for(let S=r.viewState.heightOracle.textHeight/2,w=!1;o=r.elementAtHeight(h),o.type!=Ir.Text;)for(;h=s>0?o.bottom+S:o.top-S,!(h>=0&&h<=u);){if(w)return t?null:0;w=!0,s=-s}p=l+h;let f=o.from;if(fr.viewport.to)return r.viewport.to==r.state.doc.length?r.state.doc.length:t?null:zS(r,a,o,c,p);let d=r.dom.ownerDocument,m=r.root.elementFromPoint?r.root:d,g=m.elementFromPoint(c,p);g&&!r.contentDOM.contains(g)&&(g=null),g||(c=Math.max(a.left+1,Math.min(a.right-1,c)),g=m.elementFromPoint(c,p),g&&!r.contentDOM.contains(g)&&(g=null));let y,v=-1;if(g&&((n=r.docView.nearest(g))===null||n===void 0?void 0:n.isEditable)!=!1){if(d.caretPositionFromPoint){let S=d.caretPositionFromPoint(c,p);S&&({offsetNode:y,offset:v}=S)}else if(d.caretRangeFromPoint){let S=d.caretRangeFromPoint(c,p);S&&({startContainer:y,startOffset:v}=S,(!r.contentDOM.contains(y)||ft.safari&&u3(y,v,c)||ft.chrome&&c3(y,v,c))&&(y=void 0))}}if(!y||!r.docView.dom.contains(y)){let S=Or.find(r.docView,f);if(!S)return h>o.top+o.height/2?o.to:o.from;({node:y,offset:v}=Vf(S.dom,c,p))}let x=r.docView.nearest(y);if(!x)return null;if(x.isWidget&&((i=x.dom)===null||i===void 0?void 0:i.nodeType)==1){let S=x.dom.getBoundingClientRect();return e.yr.defaultLineHeight*1.5){let l=r.viewState.heightOracle.textHeight,o=Math.floor((n-t.top-(r.defaultLineHeight-l)*.5)/l);i+=o*r.viewState.heightOracle.lineLength}let a=r.state.sliceDoc(t.from,t.to);return t.from+yl(a,i,r.state.tabSize)}function u3(r,e,t){let s;if(r.nodeType!=3||e!=(s=r.nodeValue.length))return!1;for(let n=r.nextSibling;n;n=n.nextSibling)if(n.nodeType!=1||n.nodeName!="BR")return!1;return ei(r,s-1,s).getBoundingClientRect().left>t}function c3(r,e,t){if(e!=0)return!1;for(let n=r;;){let i=n.parentNode;if(!i||i.nodeType!=1||i.firstChild!=n)return!1;if(i.classList.contains("cm-line"))break;n=i}let s=r.nodeType==1?r.getBoundingClientRect():ei(r,0,Math.max(r.nodeValue.length,1)).getBoundingClientRect();return t-s.left>5}function Wf(r,e){let t=r.lineBlockAt(e);if(Array.isArray(t.type)){for(let s of t.type)if(s.to>e||s.to==e&&(s.to==t.to||s.type==Ir.Text))return s}return t}function f3(r,e,t,s){let n=Wf(r,e.head),i=!s||n.type!=Ir.Text||!(r.lineWrapping||n.widgetLineBreaks)?null:r.coordsAtPos(e.assoc<0&&e.head>n.from?e.head-1:e.head);if(i){let a=r.dom.getBoundingClientRect(),l=r.textDirectionAt(n.from),o=r.posAtCoords({x:t==(l==zt.LTR)?a.right-1:a.left+1,y:(i.top+i.bottom)/2});if(o!=null)return ze.cursor(o,t?-1:1)}return ze.cursor(t?n.to:n.from,t?-1:1)}function ZS(r,e,t,s){let n=r.state.doc.lineAt(e.head),i=r.bidiSpans(n),a=r.textDirectionAt(n.from);for(let l=e,o=null;;){let u=YM(n,i,a,l,t),c=ME;if(!u){if(n.number==(t?r.state.doc.lines:1))return l;c=` +`,n=r.state.doc.line(n.number+(t?1:-1)),i=r.bidiSpans(n),u=r.visualLineSide(n,!t)}if(o){if(!o(c))return l}else{if(!s)return u;o=s(c)}l=u}}function p3(r,e,t){let s=r.state.charCategorizer(e),n=s(t);return i=>{let a=s(i);return n==Wt.Space&&(n=a),n==a}}function h3(r,e,t,s){let n=e.head,i=t?1:-1;if(n==(t?r.state.doc.length:0))return ze.cursor(n,e.assoc);let a=e.goalColumn,l,o=r.contentDOM.getBoundingClientRect(),u=r.coordsAtPos(n,e.assoc||-1),c=r.documentTop;if(u)a==null&&(a=u.left-o.left),l=i<0?u.top:u.bottom;else{let f=r.viewState.lineBlockAt(n);a==null&&(a=Math.min(o.right-o.left,r.defaultCharacterWidth*(n-f.from))),l=(i<0?f.top:f.bottom)+c}let p=o.left+a,h=s??r.viewState.heightOracle.textHeight>>1;for(let f=0;;f+=10){let d=l+(h+f)*i,m=tw(r,{x:p,y:d},!1,i);if(do.bottom||(i<0?mn)){let g=r.docView.coordsForChar(m),y=!g||d{if(e>i&&en(r)),t.from,e.head>t.from?-1:1);return s==t.from?t:ze.cursor(s,snull),ft.gecko&&P3(e.contentDOM.ownerDocument)}handleEvent(e){!x3(this.view,e)||this.ignoreDuringComposition(e)||e.type=="keydown"&&this.keydown(e)||this.runHandlers(e.type,e)}runHandlers(e,t){let s=this.handlers[e];if(s){for(let n of s.observers)n(this.view,t);for(let n of s.handlers){if(t.defaultPrevented)break;if(n(this.view,t)){t.preventDefault();break}}}}ensureHandlers(e){let t=d3(e),s=this.handlers,n=this.view.contentDOM;for(let i in t)if(i!="scroll"){let a=!t[i].handlers.length,l=s[i];l&&a!=!l.handlers.length&&(n.removeEventListener(i,this.handleEvent),l=null),l||n.addEventListener(i,this.handleEvent,{passive:a})}for(let i in s)i!="scroll"&&!t[i]&&n.removeEventListener(i,this.handleEvent);this.handlers=t}keydown(e){if(this.lastKeyCode=e.keyCode,this.lastKeyTime=Date.now(),e.keyCode==9&&Date.now()s.keyCode==e.keyCode))&&!e.ctrlKey||m3.indexOf(e.key)>-1&&e.ctrlKey&&!e.shiftKey)?(this.pendingIOSKey=t||e,setTimeout(()=>this.flushIOSKey(),250),!0):(e.keyCode!=229&&this.view.observer.forceFlush(),!1)}flushIOSKey(e){let t=this.pendingIOSKey;return!t||t.key=="Enter"&&e&&e.from0?!0:ft.safari&&!ft.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100?(this.compositionPendingKey=!1,!0):!1:!1}startMouseSelection(e){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=e}update(e){this.mouseSelection&&this.mouseSelection.update(e),this.draggedContent&&e.docChanged&&(this.draggedContent=this.draggedContent.map(e.changes)),e.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}};function GS(r,e){return(t,s)=>{try{return e.call(r,s,t)}catch(n){yr(t.state,n)}}}function d3(r){let e=Object.create(null);function t(s){return e[s]||(e[s]={observers:[],handlers:[]})}for(let s of r){let n=s.spec;if(n&&n.domEventHandlers)for(let i in n.domEventHandlers){let a=n.domEventHandlers[i];a&&t(i).handlers.push(GS(s.value,a))}if(n&&n.domEventObservers)for(let i in n.domEventObservers){let a=n.domEventObservers[i];a&&t(i).observers.push(GS(s.value,a))}}for(let s in bn)t(s).handlers.push(bn[s]);for(let s in on)t(s).observers.push(on[s]);return e}var rw=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],m3="dthko",nw=[16,17,18,20,91,92,224,225],Ol=6;function Sl(r){return Math.max(0,r)*.7+8}function g3(r,e){return Math.max(Math.abs(r.clientX-e.clientX),Math.abs(r.clientY-e.clientY))}var Zf=class{constructor(e,t,s,n){this.view=e,this.startEvent=t,this.style=s,this.mustSelect=n,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=t,this.scrollParent=BM(e.contentDOM),this.atoms=e.state.facet(wp).map(a=>a(e));let i=e.contentDOM.ownerDocument;i.addEventListener("mousemove",this.move=this.move.bind(this)),i.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=t.shiftKey,this.multiple=e.state.facet(Ut.allowMultipleSelections)&&y3(e,t),this.dragging=v3(e,t)&&ow(t)==1?null:!1}start(e){this.dragging===!1&&this.select(e)}move(e){var t;if(e.buttons==0)return this.destroy();if(this.dragging||this.dragging==null&&g3(this.startEvent,e)<10)return;this.select(this.lastEvent=e);let s=0,n=0,i=((t=this.scrollParent)===null||t===void 0?void 0:t.getBoundingClientRect())||{left:0,top:0,right:this.view.win.innerWidth,bottom:this.view.win.innerHeight},a=JE(this.view);e.clientX-a.left<=i.left+Ol?s=-Sl(i.left-e.clientX):e.clientX+a.right>=i.right-Ol&&(s=Sl(e.clientX-i.right)),e.clientY-a.top<=i.top+Ol?n=-Sl(i.top-e.clientY):e.clientY+a.bottom>=i.bottom-Ol&&(n=Sl(e.clientY-i.bottom)),this.setScrollSpeed(s,n)}up(e){this.dragging==null&&this.select(this.lastEvent),this.dragging||e.preventDefault(),this.destroy()}destroy(){this.setScrollSpeed(0,0);let e=this.view.contentDOM.ownerDocument;e.removeEventListener("mousemove",this.move),e.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=this.view.inputState.draggedContent=null}setScrollSpeed(e,t){this.scrollSpeed={x:e,y:t},e||t?this.scrolling<0&&(this.scrolling=setInterval(()=>this.scroll(),50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}scroll(){this.scrollParent?(this.scrollParent.scrollLeft+=this.scrollSpeed.x,this.scrollParent.scrollTop+=this.scrollSpeed.y):this.view.win.scrollBy(this.scrollSpeed.x,this.scrollSpeed.y),this.dragging===!1&&this.select(this.lastEvent)}skipAtoms(e){let t=null;for(let s=0;sthis.select(this.lastEvent),20)}};function y3(r,e){let t=r.state.facet(jE);return t.length?t[0](e):ft.mac?e.metaKey:e.ctrlKey}function b3(r,e){let t=r.state.facet(qE);return t.length?t[0](e):ft.mac?!e.altKey:!e.ctrlKey}function v3(r,e){let{main:t}=r.state.selection;if(t.empty)return!1;let s=Fl(r.root);if(!s||s.rangeCount==0)return!0;let n=s.getRangeAt(0).getClientRects();for(let i=0;i=e.clientX&&a.top<=e.clientY&&a.bottom>=e.clientY)return!0}return!1}function x3(r,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let t=e.target,s;t!=r.contentDOM;t=t.parentNode)if(!t||t.nodeType==11||(s=Xt.get(t))&&s.ignoreEvent(e))return!1;return!0}var bn=Object.create(null),on=Object.create(null),sw=ft.ie&&ft.ie_version<15||ft.ios&&ft.webkit_version<604;function O3(r){let e=r.dom.parentNode;if(!e)return;let t=e.appendChild(document.createElement("textarea"));t.style.cssText="position: fixed; left: -10000px; top: 10px",t.focus(),setTimeout(()=>{r.focus(),t.remove(),iw(r,t.value)},50)}function iw(r,e){let{state:t}=r,s,n=1,i=t.toText(e),a=i.lines==t.selection.ranges.length;if(Gf!=null&&t.selection.ranges.every(o=>o.empty)&&Gf==i.toString()){let o=-1;s=t.changeByRange(u=>{let c=t.doc.lineAt(u.from);if(c.from==o)return{range:u};o=c.from;let p=t.toText((a?i.line(n++).text:e)+t.lineBreak);return{changes:{from:c.from,insert:p},range:ze.cursor(u.from+p.length)}})}else a?s=t.changeByRange(o=>{let u=i.line(n++);return{changes:{from:o.from,to:o.to,insert:u.text},range:ze.cursor(o.from+u.length)}}):s=t.replaceSelection(i);r.dispatch(s,{userEvent:"input.paste",scrollIntoView:!0})}on.scroll=r=>{r.inputState.lastScrollTop=r.scrollDOM.scrollTop,r.inputState.lastScrollLeft=r.scrollDOM.scrollLeft};bn.keydown=(r,e)=>(r.inputState.setSelectionOrigin("select"),e.keyCode==27&&(r.inputState.lastEscPress=Date.now()),!1);on.touchstart=(r,e)=>{r.inputState.lastTouchTime=Date.now(),r.inputState.setSelectionOrigin("select.pointer")};on.touchmove=r=>{r.inputState.setSelectionOrigin("select.pointer")};bn.mousedown=(r,e)=>{if(r.observer.flush(),r.inputState.lastTouchTime>Date.now()-2e3)return!1;let t=null;for(let s of r.state.facet(QE))if(t=s(r,e),t)break;if(!t&&e.button==0&&(t=w3(r,e)),t){let s=!r.hasFocus;r.inputState.startMouseSelection(new Zf(r,e,t,s)),s&&r.observer.ignore(()=>SE(r.contentDOM));let n=r.inputState.mouseSelection;if(n)return n.start(e),n.dragging===!1}return!1};function XS(r,e,t,s){if(s==1)return ze.cursor(e,t);if(s==2)return a3(r.state,e,t);{let n=Or.find(r.docView,e),i=r.state.doc.lineAt(n?n.posAtEnd:e),a=n?n.posAtStart:i.from,l=n?n.posAtEnd:i.to;return lr>=e.top&&r<=e.bottom,YS=(r,e,t)=>aw(e,t)&&r>=t.left&&r<=t.right;function S3(r,e,t,s){let n=Or.find(r.docView,e);if(!n)return 1;let i=e-n.posAtStart;if(i==0)return 1;if(i==n.length)return-1;let a=n.coordsAt(i,-1);if(a&&YS(t,s,a))return-1;let l=n.coordsAt(i,1);return l&&YS(t,s,l)?1:a&&aw(s,a)?-1:1}function HS(r,e){let t=r.posAtCoords({x:e.clientX,y:e.clientY},!1);return{pos:t,bias:S3(r,t,e.clientX,e.clientY)}}var E3=ft.ie&&ft.ie_version<=11,KS=null,JS=0,eE=0;function ow(r){if(!E3)return r.detail;let e=KS,t=eE;return KS=r,eE=Date.now(),JS=!e||t>Date.now()-400&&Math.abs(e.clientX-r.clientX)<2&&Math.abs(e.clientY-r.clientY)<2?(JS+1)%3:1}function w3(r,e){let t=HS(r,e),s=ow(e),n=r.state.selection;return{update(i){i.docChanged&&(t.pos=i.changes.mapPos(t.pos),n=n.map(i.changes))},get(i,a,l){let o=HS(r,i),u,c=XS(r,o.pos,o.bias,s);if(t.pos!=o.pos&&!a){let p=XS(r,t.pos,t.bias,s),h=Math.min(p.from,c.from),f=Math.max(p.to,c.to);c=h1&&(u=C3(n,o.pos))?u:l?n.addRange(c):ze.create([c])}}}function C3(r,e){for(let t=0;t=e)return ze.create(r.ranges.slice(0,t).concat(r.ranges.slice(t+1)),r.mainIndex==t?0:r.mainIndex-(r.mainIndex>t?1:0))}return null}bn.dragstart=(r,e)=>{let{selection:{main:t}}=r.state;if(e.target.draggable){let n=r.docView.nearest(e.target);if(n&&n.isWidget){let i=n.posAtStart,a=i+n.length;(i>=t.to||a<=t.from)&&(t=ze.range(i,a))}}let{inputState:s}=r;return s.mouseSelection&&(s.mouseSelection.dragging=!0),s.draggedContent=t,e.dataTransfer&&(e.dataTransfer.setData("Text",r.state.sliceDoc(t.from,t.to)),e.dataTransfer.effectAllowed="copyMove"),!1};bn.dragend=r=>(r.inputState.draggedContent=null,!1);function tE(r,e,t,s){if(!t)return;let n=r.posAtCoords({x:e.clientX,y:e.clientY},!1),{draggedContent:i}=r.inputState,a=s&&i&&b3(r,e)?{from:i.from,to:i.to}:null,l={from:n,insert:t},o=r.state.changes(a?[a,l]:l);r.focus(),r.dispatch({changes:o,selection:{anchor:o.mapPos(n,-1),head:o.mapPos(n,1)},userEvent:a?"move.drop":"input.drop"}),r.inputState.draggedContent=null}bn.drop=(r,e)=>{if(!e.dataTransfer)return!1;if(r.state.readOnly)return!0;let t=e.dataTransfer.files;if(t&&t.length){let s=Array(t.length),n=0,i=()=>{++n==t.length&&tE(r,e,s.filter(a=>a!=null).join(r.state.lineBreak),!1)};for(let a=0;a{/[\x00-\x08\x0e-\x1f]{2}/.test(l.result)||(s[a]=l.result),i()},l.readAsText(t[a])}return!0}else{let s=e.dataTransfer.getData("Text");if(s)return tE(r,e,s,!0),!0}return!1};bn.paste=(r,e)=>{if(r.state.readOnly)return!0;r.observer.flush();let t=sw?null:e.clipboardData;return t?(iw(r,t.getData("text/plain")||t.getData("text/uri-list")),!0):(O3(r),!1)};function k3(r,e){let t=r.dom.parentNode;if(!t)return;let s=t.appendChild(document.createElement("textarea"));s.style.cssText="position: fixed; left: -10000px; top: 10px",s.value=e,s.focus(),s.selectionEnd=e.length,s.selectionStart=0,setTimeout(()=>{s.remove(),r.focus()},50)}function A3(r){let e=[],t=[],s=!1;for(let n of r.selection.ranges)n.empty||(e.push(r.sliceDoc(n.from,n.to)),t.push(n));if(!e.length){let n=-1;for(let{from:i}of r.selection.ranges){let a=r.doc.lineAt(i);a.number>n&&(e.push(a.text),t.push({from:a.from,to:Math.min(r.doc.length,a.to+1)})),n=a.number}s=!0}return{text:e.join(r.lineBreak),ranges:t,linewise:s}}var Gf=null;bn.copy=bn.cut=(r,e)=>{let{text:t,ranges:s,linewise:n}=A3(r.state);if(!t&&!n)return!1;Gf=n?t:null,e.type=="cut"&&!r.state.readOnly&&r.dispatch({changes:s,scrollIntoView:!0,userEvent:"delete.cut"});let i=sw?null:e.clipboardData;return i?(i.clearData(),i.setData("text/plain",t),!0):(k3(r,t),!1)};var lw=Mr.define();function uw(r,e){let t=[];for(let s of r.facet(WE)){let n=s(r,e);n&&t.push(n)}return t?r.update({effects:t,annotations:lw.of(!0)}):null}function cw(r){setTimeout(()=>{let e=r.hasFocus;if(e!=r.inputState.notifiedFocused){let t=uw(r.state,e);t?r.dispatch(t):r.update([])}},10)}on.focus=r=>{r.inputState.lastFocusTime=Date.now(),!r.scrollDOM.scrollTop&&(r.inputState.lastScrollTop||r.inputState.lastScrollLeft)&&(r.scrollDOM.scrollTop=r.inputState.lastScrollTop,r.scrollDOM.scrollLeft=r.inputState.lastScrollLeft),cw(r)};on.blur=r=>{r.observer.clearSelectionRange(),cw(r)};on.compositionstart=on.compositionupdate=r=>{r.inputState.compositionFirstChange==null&&(r.inputState.compositionFirstChange=!0),r.inputState.composing<0&&(r.inputState.composing=0)};on.compositionend=r=>{r.inputState.composing=-1,r.inputState.compositionEndedAt=Date.now(),r.inputState.compositionPendingKey=!0,r.inputState.compositionPendingChange=r.observer.pendingRecords().length>0,r.inputState.compositionFirstChange=null,ft.chrome&&ft.android?r.observer.flushSoon():r.inputState.compositionPendingChange?Promise.resolve().then(()=>r.observer.flush()):setTimeout(()=>{r.inputState.composing<0&&r.docView.hasComposition&&r.update([])},50)};on.contextmenu=r=>{r.inputState.lastContextMenu=Date.now()};bn.beforeinput=(r,e)=>{var t;let s;if(ft.chrome&&ft.android&&(s=rw.find(n=>n.inputType==e.inputType))&&(r.observer.delayAndroidKey(s.key,s.keyCode),s.key=="Backspace"||s.key=="Delete")){let n=((t=window.visualViewport)===null||t===void 0?void 0:t.height)||0;setTimeout(()=>{var i;(((i=window.visualViewport)===null||i===void 0?void 0:i.height)||0)>n+10&&r.hasFocus&&(r.contentDOM.blur(),r.focus())},100)}return ft.ios&&e.inputType=="deleteContentForward"&&r.observer.flushSoon(),ft.safari&&e.inputType=="insertText"&&r.inputState.composing>=0&&setTimeout(()=>on.compositionend(r,e),20),!1};var rE=new Set;function P3(r){rE.has(r)||(rE.add(r),r.addEventListener("copy",()=>{}),r.addEventListener("cut",()=>{}))}var nE=["pre-wrap","normal","pre-line","break-spaces"],Xf=class{constructor(e){this.lineWrapping=e,this.doc=Rt.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.textHeight=14,this.lineLength=30,this.heightChanged=!1}heightForGap(e,t){let s=this.doc.lineAt(t).number-this.doc.lineAt(e).number+1;return this.lineWrapping&&(s+=Math.max(0,Math.ceil((t-e-s*this.lineLength*.5)/this.lineLength))),this.lineHeight*s}heightForLine(e){return this.lineWrapping?(1+Math.max(0,Math.ceil((e-this.lineLength)/(this.lineLength-5))))*this.lineHeight:this.lineHeight}setDoc(e){return this.doc=e,this}mustRefreshForWrapping(e){return nE.indexOf(e)>-1!=this.lineWrapping}mustRefreshForHeights(e){let t=!1;for(let s=0;s-1,o=Math.round(t)!=Math.round(this.lineHeight)||this.lineWrapping!=l;if(this.lineWrapping=l,this.lineHeight=t,this.charWidth=s,this.textHeight=n,this.lineLength=i,o){this.heightSamples={};for(let u=0;u0}set outdated(e){this.flags=(e?2:0)|this.flags&-3}setHeight(e,t){this.height!=t&&(Math.abs(this.height-t)>Dl&&(e.heightChanged=!0),this.height=t)}replace(e,t,s){return r.of(s)}decomposeLeft(e,t){t.push(this)}decomposeRight(e,t){t.push(this)}applyChanges(e,t,s,n){let i=this,a=s.doc;for(let l=n.length-1;l>=0;l--){let{fromA:o,toA:u,fromB:c,toB:p}=n[l],h=i.lineAt(o,Ht.ByPosNoHeight,s.setDoc(t),0,0),f=h.to>=u?h:i.lineAt(u,Ht.ByPosNoHeight,s,0,0);for(p+=f.to-u,u=f.to;l>0&&h.from<=n[l-1].toA;)o=n[l-1].fromA,c=n[l-1].fromB,l--,oi*2){let l=e[t-1];l.break?e.splice(--t,1,l.left,null,l.right):e.splice(--t,1,l.left,l.right),s+=1+l.break,n-=l.size}else if(i>n*2){let l=e[s];l.break?e.splice(s,1,l.left,null,l.right):e.splice(s,1,l.left,l.right),s+=2+l.break,i-=l.size}else break;else if(n=i&&a(this.blockAt(0,s,n,i))}updateHeight(e,t=0,s=!1,n){return n&&n.from<=t&&n.more&&this.setHeight(e,n.heights[n.index++]),this.outdated=!1,this}toString(){return`block(${this.length})`}},sn=class r extends jl{constructor(e,t){super(e,t,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0}blockAt(e,t,s,n){return new Fn(n,this.length,s,this.height,this.breaks)}replace(e,t,s){let n=s[0];return s.length==1&&(n instanceof r||n instanceof Es&&n.flags&4)&&Math.abs(this.length-n.length)<10?(n instanceof Es?n=new r(n.length,this.height):n.height=this.height,this.outdated||(n.outdated=!1),n):Gr.of(s)}updateHeight(e,t=0,s=!1,n){return n&&n.from<=t&&n.more?this.setHeight(e,n.heights[n.index++]):(s||this.outdated)&&this.setHeight(e,Math.max(this.widgetHeight,e.heightForLine(this.length-this.collapsed))+this.breaks*e.lineHeight),this.outdated=!1,this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}},Es=class r extends Gr{constructor(e){super(e,0)}heightMetrics(e,t){let s=e.doc.lineAt(t).number,n=e.doc.lineAt(t+this.length).number,i=n-s+1,a,l=0;if(e.lineWrapping){let o=Math.min(this.height,e.lineHeight*i);a=o/i,this.length>i+1&&(l=(this.height-o)/(this.length-i-1))}else a=this.height/i;return{firstLine:s,lastLine:n,perLine:a,perChar:l}}blockAt(e,t,s,n){let{firstLine:i,lastLine:a,perLine:l,perChar:o}=this.heightMetrics(t,n);if(t.lineWrapping){let u=n+(e0){let i=s[s.length-1];i instanceof r?s[s.length-1]=new r(i.length+n):s.push(null,new r(n-1))}if(e>0){let i=s[0];i instanceof r?s[0]=new r(e+i.length):s.unshift(new r(e-1),null)}return Gr.of(s)}decomposeLeft(e,t){t.push(new r(e-1),null)}decomposeRight(e,t){t.push(null,new r(this.length-e-1))}updateHeight(e,t=0,s=!1,n){let i=t+this.length;if(n&&n.from<=t+this.length&&n.more){let a=[],l=Math.max(t,n.from),o=-1;for(n.from>t&&a.push(new r(n.from-t-1).updateHeight(e,t));l<=i&&n.more;){let c=e.doc.lineAt(l).length;a.length&&a.push(null);let p=n.heights[n.index++];o==-1?o=p:Math.abs(p-o)>=Dl&&(o=-2);let h=new sn(c,p);h.outdated=!1,a.push(h),l+=c+1}l<=i&&a.push(null,new r(i-l).updateHeight(e,l));let u=Gr.of(a);return(o<0||Math.abs(u.height-this.height)>=Dl||Math.abs(o-this.heightMetrics(e,t).perLine)>=Dl)&&(e.heightChanged=!0),u}else(s||this.outdated)&&(this.setHeight(e,e.heightForGap(t,t+this.length)),this.outdated=!1);return this}toString(){return`gap(${this.length})`}},Hf=class extends Gr{constructor(e,t,s){super(e.length+t+s.length,e.height+s.height,t|(e.outdated||s.outdated?2:0)),this.left=e,this.right=s,this.size=e.size+s.size}get break(){return this.flags&1}blockAt(e,t,s,n){let i=s+this.left.height;return el))return u;let c=t==Ht.ByPosNoHeight?Ht.ByPosNoHeight:Ht.ByPos;return o?u.join(this.right.lineAt(l,c,s,a,l)):this.left.lineAt(l,c,s,n,i).join(u)}forEachLine(e,t,s,n,i,a){let l=n+this.left.height,o=i+this.left.length+this.break;if(this.break)e=o&&this.right.forEachLine(e,t,s,l,o,a);else{let u=this.lineAt(o,Ht.ByPos,s,n,i);e=e&&u.from<=t&&a(u),t>u.to&&this.right.forEachLine(u.to+1,t,s,l,o,a)}}replace(e,t,s){let n=this.left.length+this.break;if(tthis.left.length)return this.balanced(this.left,this.right.replace(e-n,t-n,s));let i=[];e>0&&this.decomposeLeft(e,i);let a=i.length;for(let l of s)i.push(l);if(e>0&&sE(i,a-1),t=s&&t.push(null)),e>s&&this.right.decomposeLeft(e-s,t)}decomposeRight(e,t){let s=this.left.length,n=s+this.break;if(e>=n)return this.right.decomposeRight(e-n,t);e2*t.size||t.size>2*e.size?Gr.of(this.break?[e,null,t]:[e,t]):(this.left=e,this.right=t,this.height=e.height+t.height,this.outdated=e.outdated||t.outdated,this.size=e.size+t.size,this.length=e.length+this.break+t.length,this)}updateHeight(e,t=0,s=!1,n){let{left:i,right:a}=this,l=t+i.length+this.break,o=null;return n&&n.from<=t+i.length&&n.more?o=i=i.updateHeight(e,t,s,n):i.updateHeight(e,t,s),n&&n.from<=l+a.length&&n.more?o=a=a.updateHeight(e,l,s,n):a.updateHeight(e,l,s),o?this.balanced(i,a):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}};function sE(r,e){let t,s;r[e]==null&&(t=r[e-1])instanceof Es&&(s=r[e+1])instanceof Es&&r.splice(e-1,3,new Es(t.length+1+s.length))}var T3=5,Kf=class r{constructor(e,t){this.pos=e,this.oracle=t,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=e}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(e,t){if(this.lineStart>-1){let s=Math.min(t,this.lineEnd),n=this.nodes[this.nodes.length-1];n instanceof sn?n.length+=s-this.pos:(s>this.pos||!this.isCovered)&&this.nodes.push(new sn(s-this.pos,-1)),this.writtenTo=s,t>s&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=t}point(e,t,s){if(e=T3)&&this.addLineDeco(n,i,a)}else t>e&&this.span(e,t);this.lineEnd>-1&&this.lineEnd-1)return;let{from:e,to:t}=this.oracle.doc.lineAt(this.pos);this.lineStart=e,this.lineEnd=t,this.writtenToe&&this.nodes.push(new sn(this.pos-e,-1)),this.writtenTo=this.pos}blankContent(e,t){let s=new Es(t-e);return this.oracle.doc.lineAt(e).to==t&&(s.flags|=4),s}ensureLine(){this.enterLine();let e=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(e instanceof sn)return e;let t=new sn(0,-1);return this.nodes.push(t),t}addBlock(e){this.enterLine();let t=e.deco;t&&t.startSide>0&&!this.isCovered&&this.ensureLine(),this.nodes.push(e),this.writtenTo=this.pos=this.pos+e.length,t&&t.endSide>0&&(this.covering=e)}addLineDeco(e,t,s){let n=this.ensureLine();n.length+=s,n.collapsed+=s,n.widgetHeight=Math.max(n.widgetHeight,e),n.breaks+=t,this.writtenTo=this.pos=this.pos+s}finish(e){let t=this.nodes.length==0?null:this.nodes[this.nodes.length-1];this.lineStart>-1&&!(t instanceof sn)&&!this.isCovered?this.nodes.push(new sn(0,-1)):(this.writtenToc.clientHeight||c.scrollWidth>c.clientWidth)&&p.overflow!="visible"){let h=c.getBoundingClientRect();i=Math.max(i,h.left),a=Math.min(a,h.right),l=Math.max(l,h.top),o=u==r.parentNode?h.bottom:Math.min(o,h.bottom)}u=p.position=="absolute"||p.position=="fixed"?c.offsetParent:c.parentNode}else if(u.nodeType==11)u=u.host;else break;return{left:i-t.left,right:Math.max(i,a)-t.left,top:l-(t.top+e),bottom:Math.max(l,o)-(t.top+e)}}function I3(r,e){let t=r.getBoundingClientRect();return{left:0,right:t.right-t.left,top:e,bottom:t.bottom-(t.top+e)}}var so=class{constructor(e,t,s){this.from=e,this.to=t,this.size=s}static same(e,t){if(e.length!=t.length)return!1;for(let s=0;stypeof s!="function"&&s.class=="cm-lineWrapping");this.heightOracle=new Xf(t),this.stateDeco=e.facet(po).filter(s=>typeof s!="function"),this.heightMap=Gr.empty().applyChanges(this.stateDeco,Rt.empty,this.heightOracle.setDoc(e.doc),[new Nn(0,0,0,e.doc.length)]),this.viewport=this.getViewport(0,null),this.updateViewportLines(),this.updateForViewport(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=yt.set(this.lineGaps.map(s=>s.draw(this,!1))),this.computeVisibleRanges()}updateForViewport(){let e=[this.viewport],{main:t}=this.state.selection;for(let s=0;s<=1;s++){let n=s?t.head:t.anchor;if(!e.some(({from:i,to:a})=>n>=i&&n<=a)){let{from:i,to:a}=this.lineBlockAt(n);e.push(new qi(i,a))}}this.viewports=e.sort((s,n)=>s.from-n.from),this.scaler=this.heightMap.height<=7e6?iE:new tp(this.heightOracle,this.heightMap,this.viewports)}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,e=>{this.viewportLines.push(this.scaler.scale==1?e:Ha(e,this.scaler))})}update(e,t=null){this.state=e.state;let s=this.stateDeco;this.stateDeco=this.state.facet(po).filter(c=>typeof c!="function");let n=e.changedRanges,i=Nn.extendWithRanges(n,D3(s,this.stateDeco,e?e.changes:Dr.empty(this.state.doc.length))),a=this.heightMap.height,l=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollTop);this.heightMap=this.heightMap.applyChanges(this.stateDeco,e.startState.doc,this.heightOracle.setDoc(this.state.doc),i),this.heightMap.height!=a&&(e.flags|=2),l?(this.scrollAnchorPos=e.changes.mapPos(l.from,-1),this.scrollAnchorHeight=l.top):(this.scrollAnchorPos=-1,this.scrollAnchorHeight=this.heightMap.height);let o=i.length?this.mapViewport(this.viewport,e.changes):this.viewport;(t&&(t.range.heado.to)||!this.viewportIsAppropriate(o))&&(o=this.getViewport(0,t));let u=!e.changes.empty||e.flags&2||o.from!=this.viewport.from||o.to!=this.viewport.to;this.viewport=o,this.updateForViewport(),u&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,e.changes))),e.flags|=this.computeVisibleRanges(),t&&(this.scrollTarget=t),!this.mustEnforceCursorAssoc&&e.selectionSet&&e.view.lineWrapping&&e.state.selection.main.empty&&e.state.selection.main.assoc&&!e.state.facet(ZE)&&(this.mustEnforceCursorAssoc=!0)}measure(e){let t=e.contentDOM,s=window.getComputedStyle(t),n=this.heightOracle,i=s.whiteSpace;this.defaultTextDirection=s.direction=="rtl"?zt.RTL:zt.LTR;let a=this.heightOracle.mustRefreshForWrapping(i),l=t.getBoundingClientRect(),o=a||this.mustMeasureContent||this.contentDOMHeight!=l.height;this.contentDOMHeight=l.height,this.mustMeasureContent=!1;let u=0,c=0;if(l.width&&l.height){let{scaleX:S,scaleY:w}=OE(t,l);(S>.005&&Math.abs(this.scaleX-S)>.005||w>.005&&Math.abs(this.scaleY-w)>.005)&&(this.scaleX=S,this.scaleY=w,u|=8,a=o=!0)}let p=(parseInt(s.paddingTop)||0)*this.scaleY,h=(parseInt(s.paddingBottom)||0)*this.scaleY;(this.paddingTop!=p||this.paddingBottom!=h)&&(this.paddingTop=p,this.paddingBottom=h,u|=10),this.editorWidth!=e.scrollDOM.clientWidth&&(n.lineWrapping&&(o=!0),this.editorWidth=e.scrollDOM.clientWidth,u|=8);let f=e.scrollDOM.scrollTop*this.scaleY;this.scrollTop!=f&&(this.scrollAnchorHeight=-1,this.scrollTop=f),this.scrolledToBottom=wE(e.scrollDOM);let d=(this.printing?I3:_3)(t,this.paddingTop),m=d.top-this.pixelViewport.top,g=d.bottom-this.pixelViewport.bottom;this.pixelViewport=d;let y=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(y!=this.inView&&(this.inView=y,y&&(o=!0)),!this.inView&&!this.scrollTarget)return 0;let v=l.width;if((this.contentDOMWidth!=v||this.editorHeight!=e.scrollDOM.clientHeight)&&(this.contentDOMWidth=l.width,this.editorHeight=e.scrollDOM.clientHeight,u|=8),o){let S=e.docView.measureVisibleLineHeights(this.viewport);if(n.mustRefreshForHeights(S)&&(a=!0),a||n.lineWrapping&&Math.abs(v-this.contentDOMWidth)>n.charWidth){let{lineHeight:w,charWidth:O,textHeight:C}=e.docView.measureTextSize();a=w>0&&n.refresh(i,w,O,C,v/O,S),a&&(e.docView.minWidth=0,u|=8)}m>0&&g>0?c=Math.max(m,g):m<0&&g<0&&(c=Math.min(m,g)),n.heightChanged=!1;for(let w of this.viewports){let O=w.from==this.viewport.from?S:e.docView.measureVisibleLineHeights(w);this.heightMap=(a?Gr.empty().applyChanges(this.stateDeco,Rt.empty,this.heightOracle,[new Nn(0,0,0,e.state.doc.length)]):this.heightMap).updateHeight(n,0,a,new Yf(w.from,O))}n.heightChanged&&(u|=2)}let x=!this.viewportIsAppropriate(this.viewport,c)||this.scrollTarget&&(this.scrollTarget.range.headthis.viewport.to);return x&&(this.viewport=this.getViewport(c,this.scrollTarget)),this.updateForViewport(),(u&2||x)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(a?[]:this.lineGaps,e)),u|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,e.docView.enforceCursorAssoc()),u}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(e,t){let s=.5-Math.max(-.5,Math.min(.5,e/1e3/2)),n=this.heightMap,i=this.heightOracle,{visibleTop:a,visibleBottom:l}=this,o=new qi(n.lineAt(a-s*1e3,Ht.ByHeight,i,0,0).from,n.lineAt(l+(1-s)*1e3,Ht.ByHeight,i,0,0).to);if(t){let{head:u}=t.range;if(uo.to){let c=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),p=n.lineAt(u,Ht.ByPos,i,0,0),h;t.y=="center"?h=(p.top+p.bottom)/2-c/2:t.y=="start"||t.y=="nearest"&&u=l+Math.max(10,Math.min(s,250)))&&n>a-2*1e3&&i>1,a=n<<1;if(this.defaultTextDirection!=zt.LTR&&!s)return[];let l=[],o=(u,c,p,h)=>{if(c-uu&&gg.from>=p.from&&g.to<=p.to&&Math.abs(g.from-u)g.fromy));if(!m){if(cg.from<=c&&g.to>=c)){let g=t.moveToLineBoundary(ze.cursor(c),!1,!0).head;g>u&&(c=g)}m=new so(u,c,this.gapSize(p,u,c,h))}l.push(m)};for(let u of this.viewportLines){if(u.lengthu.from&&o(u.from,h,u,c),ft.draw(this,this.heightOracle.lineWrapping))))}computeVisibleRanges(){let e=this.stateDeco;this.lineGaps.length&&(e=e.concat(this.lineGapDeco));let t=[];Mt.spans(e,this.viewport.from,this.viewport.to,{span(n,i){t.push({from:n,to:i})},point(){}},20);let s=t.length!=this.visibleRanges.length||this.visibleRanges.some((n,i)=>n.from!=t[i].from||n.to!=t[i].to);return this.visibleRanges=t,s?4:0}lineBlockAt(e){return e>=this.viewport.from&&e<=this.viewport.to&&this.viewportLines.find(t=>t.from<=e&&t.to>=e)||Ha(this.heightMap.lineAt(e,Ht.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(e){return Ha(this.heightMap.lineAt(this.scaler.fromDOM(e),Ht.ByHeight,this.heightOracle,0,0),this.scaler)}scrollAnchorAt(e){let t=this.lineBlockAtHeight(e+8);return t.from>=this.viewport.from||this.viewportLines[0].top-e>200?t:this.viewportLines[0]}elementAtHeight(e){return Ha(this.heightMap.blockAt(this.scaler.fromDOM(e),this.heightOracle,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}},qi=class{constructor(e,t){this.from=e,this.to=t}};function R3(r,e,t){let s=[],n=r,i=0;return Mt.spans(t,r,e,{span(){},point(a,l){a>n&&(s.push({from:n,to:a}),i+=a-n),n=l}},20),n=1)return e[e.length-1].to;let s=Math.floor(r*t);for(let n=0;;n++){let{from:i,to:a}=e[n],l=a-i;if(s<=l)return i+s;s-=l}}function wl(r,e){let t=0;for(let{from:s,to:n}of r.ranges){if(e<=n){t+=e-s;break}t+=n-s}return t/r.total}function F3(r,e){for(let t of r)if(e(t))return t}var iE={toDOM(r){return r},fromDOM(r){return r},scale:1},tp=class{constructor(e,t,s){let n=0,i=0,a=0;this.viewports=s.map(({from:l,to:o})=>{let u=t.lineAt(l,Ht.ByPos,e,0,0).top,c=t.lineAt(o,Ht.ByPos,e,0,0).bottom;return n+=c-u,{from:l,to:o,top:u,bottom:c,domTop:0,domBottom:0}}),this.scale=(7e6-n)/(t.height-n);for(let l of this.viewports)l.domTop=a+(l.top-i)*this.scale,a=l.domBottom=l.domTop+(l.bottom-l.top),i=l.bottom}toDOM(e){for(let t=0,s=0,n=0;;t++){let i=tHa(n,e)):r._content)}var Cl=ct.define({combine:r=>r.join(" ")}),rp=ct.define({combine:r=>r.indexOf(!0)>-1}),np=nn.newName(),fw=nn.newName(),pw=nn.newName(),hw={"&light":"."+fw,"&dark":"."+pw};function sp(r,e,t){return new nn(e,{finish(s){return/&/.test(s)?s.replace(/&\w*/,n=>{if(n=="&")return r;if(!t||!t[n])throw new RangeError(`Unsupported selector: ${n}`);return t[n]}):r+" "+s}})}var B3=sp("."+np,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",minHeight:"100%",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{position:"absolute",left:0,top:0,contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused > .cm-scroller > .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#444"},".cm-dropCursor":{position:"absolute"},"&.cm-focused > .cm-scroller > .cm-cursorLayer .cm-cursor":{display:"block"},".cm-iso":{unicodeBidi:"isolate"},".cm-announced":{position:"fixed",top:"-10000px"},"@media print":{".cm-announced":{display:"none"}},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",insetInlineStart:0,zIndex:200},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",borderRight:"1px solid #ddd"},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top"},".cm-highlightSpace:before":{content:"attr(data-display)",position:"absolute",pointerEvents:"none",color:"#888"},".cm-highlightTab":{backgroundImage:`url('data:image/svg+xml,')`,backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},hw),Ka="\uFFFF",ip=class{constructor(e,t){this.points=e,this.text="",this.lineSeparator=t.facet(Ut.lineSeparator)}append(e){this.text+=e}lineBreak(){this.text+=Ka}readRange(e,t){if(!e)return this;let s=e.parentNode;for(let n=e;;){this.findPointBefore(s,n);let i=this.text.length;this.readNode(n);let a=n.nextSibling;if(a==t)break;let l=Xt.get(n),o=Xt.get(a);(l&&o?l.breakAfter:(l?l.breakAfter:Bl(n))||Bl(a)&&(n.nodeName!="BR"||n.cmIgnore)&&this.text.length>i)&&this.lineBreak(),n=a}return this.findPointBefore(s,t),this}readTextNode(e){let t=e.nodeValue;for(let s of this.points)s.node==e&&(s.pos=this.text.length+Math.min(s.offset,t.length));for(let s=0,n=this.lineSeparator?null:/\r\n?|\n/g;;){let i=-1,a=1,l;if(this.lineSeparator?(i=t.indexOf(this.lineSeparator,s),a=this.lineSeparator.length):(l=n.exec(t))&&(i=l.index,a=l[0].length),this.append(t.slice(s,i<0?t.length:i)),i<0)break;if(this.lineBreak(),a>1)for(let o of this.points)o.node==e&&o.pos>this.text.length&&(o.pos-=a-1);s=i+a}}readNode(e){if(e.cmIgnore)return;let t=Xt.get(e),s=t&&t.overrideDOMText;if(s!=null){this.findPointInside(e,s.length);for(let n=s.iter();!n.next().done;)n.lineBreak?this.lineBreak():this.append(n.value)}else e.nodeType==3?this.readTextNode(e):e.nodeName=="BR"?e.nextSibling&&this.lineBreak():e.nodeType==1&&this.readRange(e.firstChild,null)}findPointBefore(e,t){for(let s of this.points)s.node==e&&e.childNodes[s.offset]==t&&(s.pos=this.text.length)}findPointInside(e,t){for(let s of this.points)(e.nodeType==3?s.node==e:e.contains(s.node))&&(s.pos=this.text.length+(N3(e,s.node,s.offset)?t:0))}};function N3(r,e,t){for(;;){if(!e||t-1)this.newSel=null;else if(t>-1&&(this.bounds=e.docView.domBoundsAround(t,s,0))){let l=i||a?[]:M3(e),o=new ip(l,e.state);o.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=o.text,this.newSel=j3(l,this.bounds.from)}else{let l=e.observer.selectionRange,o=i&&i.node==l.focusNode&&i.offset==l.focusOffset||!If(e.contentDOM,l.focusNode)?e.state.selection.main.head:e.docView.posFromDOM(l.focusNode,l.focusOffset),u=a&&a.node==l.anchorNode&&a.offset==l.anchorOffset||!If(e.contentDOM,l.anchorNode)?e.state.selection.main.anchor:e.docView.posFromDOM(l.anchorNode,l.anchorOffset),c=e.viewport;if((ft.ios||ft.chrome)&&e.state.selection.main.empty&&o!=u&&(c.from>0||c.toDate.now()-100?r.inputState.lastKeyCode:-1;if(e.bounds){let{from:a,to:l}=e.bounds,o=n.from,u=null;(i===8||ft.android&&e.text.length=n.from&&t.to<=n.to&&(t.from!=n.from||t.to!=n.to)&&n.to-n.from-(t.to-t.from)<=4?t={from:n.from,to:n.to,insert:r.state.doc.slice(n.from,t.from).append(t.insert).append(r.state.doc.slice(t.to,n.to))}:(ft.mac||ft.android)&&t&&t.from==t.to&&t.from==n.head-1&&/^\. ?$/.test(t.insert.toString())&&r.contentDOM.getAttribute("autocorrect")=="off"?(s&&t.insert.length==2&&(s=ze.single(s.main.anchor-1,s.main.head-1)),t={from:n.from,to:n.to,insert:Rt.of([" "])}):ft.chrome&&t&&t.from==t.to&&t.from==n.head&&t.insert.toString()==` + `&&r.lineWrapping&&(s&&(s=ze.single(s.main.anchor-1,s.main.head-1)),t={from:n.from,to:n.to,insert:Rt.of([" "])}),t){if(ft.ios&&r.inputState.flushIOSKey(t)||ft.android&&(t.to==n.to&&(t.from==n.from||t.from==n.from-1&&r.state.sliceDoc(t.from,n.from)==" ")&&t.insert.length==1&&t.insert.lines==2&&Vi(r.contentDOM,"Enter",13)||(t.from==n.from-1&&t.to==n.to&&t.insert.length==0||i==8&&t.insert.lengthn.head)&&Vi(r.contentDOM,"Backspace",8)||t.from==n.from&&t.to==n.to+1&&t.insert.length==0&&Vi(r.contentDOM,"Delete",46)))return!0;let a=t.insert.toString();r.inputState.composing>=0&&r.inputState.composing++;let l,o=()=>l||(l=L3(r,t,s));return r.state.facet(VE).some(u=>u(r,t.from,t.to,a,o))||r.dispatch(o()),!0}else if(s&&!s.main.eq(n)){let a=!1,l="select";return r.inputState.lastSelectionTime>Date.now()-50&&(r.inputState.lastSelectionOrigin=="select"&&(a=!0),l=r.inputState.lastSelectionOrigin),r.dispatch({selection:s,scrollIntoView:a,userEvent:l}),!0}else return!1}function L3(r,e,t){let s,n=r.state,i=n.selection.main;if(e.from>=i.from&&e.to<=i.to&&e.to-e.from>=(i.to-i.from)/3&&(!t||t.main.empty&&t.main.from==e.from+e.insert.length)&&r.inputState.composing<0){let l=i.frome.to?n.sliceDoc(e.to,i.to):"";s=n.replaceSelection(r.state.toText(l+e.insert.sliceString(0,void 0,r.state.lineBreak)+o))}else{let l=n.changes(e),o=t&&t.main.to<=l.newLength?t.main:void 0;if(n.selection.ranges.length>1&&r.inputState.composing>=0&&e.to<=i.to&&e.to>=i.to-10){let u=r.state.sliceDoc(e.from,e.to),c,p=t&&ew(r,t.main.head);if(p){let d=e.insert.length-(e.to-e.from);c={from:p.from,to:p.to-d}}else c=r.state.doc.lineAt(i.head);let h=i.to-e.to,f=i.to-i.from;s=n.changeByRange(d=>{if(d.from==i.from&&d.to==i.to)return{changes:l,range:o||d.map(l)};let m=d.to-h,g=m-u.length;if(d.to-d.from!=f||r.state.sliceDoc(g,m)!=u||d.to>=c.from&&d.from<=c.to)return{range:d};let y=n.changes({from:g,to:m,insert:e.insert}),v=d.to-i.to;return{changes:y,range:o?ze.range(Math.max(0,o.anchor+v),Math.max(0,o.head+v)):d.map(y)}})}else s={changes:l,selection:o&&n.selection.replaceRange(o)}}let a="input.type";return(r.composing||r.inputState.compositionPendingChange&&r.inputState.compositionEndedAt>Date.now()-50)&&(r.inputState.compositionPendingChange=!1,a+=".compose",r.inputState.compositionFirstChange&&(a+=".start",r.inputState.compositionFirstChange=!1)),n.update(s,{userEvent:a,scrollIntoView:!0})}function $3(r,e,t,s){let n=Math.min(r.length,e.length),i=0;for(;i0&&l>0&&r.charCodeAt(a-1)==e.charCodeAt(l-1);)a--,l--;if(s=="end"){let o=Math.max(0,i-Math.min(a,l));t-=a+o-i}if(a=a?i-t:0;i-=o,l=i+(l-a),a=i}else if(l=l?i-t:0;i-=o,a=i+(a-l),l=i}return{from:i,toA:a,toB:l}}function M3(r){let e=[];if(r.root.activeElement!=r.contentDOM)return e;let{anchorNode:t,anchorOffset:s,focusNode:n,focusOffset:i}=r.observer.selectionRange;return t&&(e.push(new Ql(t,s)),(n!=t||i!=s)&&e.push(new Ql(n,i))),e}function j3(r,e){if(r.length==0)return null;let t=r[0].pos,s=r.length==2?r[1].pos:t;return t>-1&&s>-1?ze.single(t+e,s+e):null}var q3={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},Pf=ft.ie&&ft.ie_version<=11,op=class{constructor(e){this.view=e,this.active=!1,this.selectionRange=new Rf,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.printQuery=null,this.parentCheck=-1,this.dom=e.contentDOM,this.observer=new MutationObserver(t=>{for(let s of t)this.queue.push(s);(ft.ie&&ft.ie_version<=11||ft.ios&&e.composing)&&t.some(s=>s.type=="childList"&&s.removedNodes.length||s.type=="characterData"&&s.oldValue.length>s.target.nodeValue.length)?this.flushSoon():this.flush()}),Pf&&(this.onCharData=t=>{this.queue.push({target:t.target,type:"characterData",oldValue:t.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),window.matchMedia&&(this.printQuery=window.matchMedia("print")),typeof ResizeObserver=="function"&&(this.resizeScroll=new ResizeObserver(()=>{var t;((t=this.view.docView)===null||t===void 0?void 0:t.lastUpdate){this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),t.length>0&&t[t.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent("Event")))},{threshold:[0,.001]}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver(t=>{t.length>0&&t[t.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))},{})),this.listenForScroll(),this.readSelectionRange()}onScrollChanged(e){this.view.inputState.runHandlers("scroll",e),this.intersecting&&this.view.measure()}onScroll(e){this.intersecting&&this.flush(!1),this.onScrollChanged(e)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout(()=>{this.resizeTimeout=-1,this.view.requestMeasure()},50))}onPrint(e){e.type=="change"&&!e.matches||(this.view.viewState.printing=!0,this.view.measure(),setTimeout(()=>{this.view.viewState.printing=!1,this.view.requestMeasure()},500))}updateGaps(e){if(this.gapIntersection&&(e.length!=this.gaps.length||this.gaps.some((t,s)=>t!=e[s]))){this.gapIntersection.disconnect();for(let t of e)this.gapIntersection.observe(t);this.gaps=e}}onSelectionChange(e){let t=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:s}=this,n=this.selectionRange;if(s.state.facet(Yl)?s.root.activeElement!=this.dom:!Pl(s.dom,n))return;let i=n.anchorNode&&s.docView.nearest(n.anchorNode);if(i&&i.ignoreEvent(e)){t||(this.selectionChanged=!1);return}(ft.ie&&ft.ie_version<=11||ft.android&&ft.chrome)&&!s.state.selection.main.empty&&n.focusNode&&eo(n.focusNode,n.focusOffset,n.anchorNode,n.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:e}=this,t=Fl(e.root);if(!t)return!1;let s=ft.safari&&e.root.nodeType==11&&IM(this.dom.ownerDocument)==this.dom&&Q3(this.view,t)||t;if(!s||this.selectionRange.eq(s))return!1;let n=Pl(this.dom,s);return n&&!this.selectionChanged&&e.inputState.lastFocusTime>Date.now()-200&&e.inputState.lastTouchTime{let i=this.delayedAndroidKey;i&&(this.clearDelayedAndroidKey(),this.view.inputState.lastKeyCode=i.keyCode,this.view.inputState.lastKeyTime=Date.now(),!this.flush()&&i.force&&Vi(this.dom,i.key,i.keyCode))};this.flushingAndroidKey=this.view.win.requestAnimationFrame(n)}(!this.delayedAndroidKey||e=="Enter")&&(this.delayedAndroidKey={key:e,keyCode:t,force:this.lastChange{this.delayedFlush=-1,this.flush()}))}forceFlush(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}pendingRecords(){for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}processRecords(){let e=this.pendingRecords();e.length&&(this.queue=[]);let t=-1,s=-1,n=!1;for(let i of e){let a=this.readMutation(i);a&&(a.typeOver&&(n=!0),t==-1?{from:t,to:s}=a:(t=Math.min(a.from,t),s=Math.max(a.to,s)))}return{from:t,to:s,typeOver:n}}readChange(){let{from:e,to:t,typeOver:s}=this.processRecords(),n=this.selectionChanged&&Pl(this.dom,this.selectionRange);if(e<0&&!n)return null;e>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1;let i=new ap(this.view,e,t,s);return this.view.docView.domChanged={newSel:i.newSel?i.newSel.main:null},i}flush(e=!0){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;e&&this.readSelectionRange();let t=this.readChange();if(!t)return this.view.requestMeasure(),!1;let s=this.view.state,n=dw(this.view,t);return this.view.state==s&&this.view.update([]),n}readMutation(e){let t=this.view.docView.nearest(e.target);if(!t||t.ignoreMutation(e))return null;if(t.markDirty(e.type=="attributes"),e.type=="attributes"&&(t.flags|=4),e.type=="childList"){let s=aE(t,e.previousSibling||e.target.previousSibling,-1),n=aE(t,e.nextSibling||e.target.nextSibling,1);return{from:s?t.posAfter(s):t.posAtStart,to:n?t.posBefore(n):t.posAtEnd,typeOver:!1}}else return e.type=="characterData"?{from:t.posAtStart,to:t.posAtEnd,typeOver:e.target.nodeValue==e.oldValue}:null}setWindow(e){e!=this.win&&(this.removeWindowListeners(this.win),this.win=e,this.addWindowListeners(this.win))}addWindowListeners(e){e.addEventListener("resize",this.onResize),this.printQuery?this.printQuery.addEventListener("change",this.onPrint):e.addEventListener("beforeprint",this.onPrint),e.addEventListener("scroll",this.onScroll),e.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(e){e.removeEventListener("scroll",this.onScroll),e.removeEventListener("resize",this.onResize),this.printQuery?this.printQuery.removeEventListener("change",this.onPrint):e.removeEventListener("beforeprint",this.onPrint),e.document.removeEventListener("selectionchange",this.onSelectionChange)}destroy(){var e,t,s;this.stop(),(e=this.intersection)===null||e===void 0||e.disconnect(),(t=this.gapIntersection)===null||t===void 0||t.disconnect(),(s=this.resizeScroll)===null||s===void 0||s.disconnect();for(let n of this.scrollTargets)n.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey)}};function aE(r,e,t){for(;e;){let s=Xt.get(e);if(s&&s.parent==r)return s;let n=e.parentNode;e=n!=r.dom?n:t>0?e.nextSibling:e.previousSibling}return null}function oE(r,e){let t=e.startContainer,s=e.startOffset,n=e.endContainer,i=e.endOffset,a=r.docView.domAtPos(r.state.selection.main.anchor);return eo(a.node,a.offset,n,i)&&([t,s,n,i]=[n,i,t,s]),{anchorNode:t,anchorOffset:s,focusNode:n,focusOffset:i}}function Q3(r,e){if(e.getComposedRanges){let n=e.getComposedRanges(r.root)[0];if(n)return oE(r,n)}let t=null;function s(n){n.preventDefault(),n.stopImmediatePropagation(),t=n.getTargetRanges()[0]}return r.contentDOM.addEventListener("beforeinput",s,!0),r.dom.ownerDocument.execCommand("indent"),r.contentDOM.removeEventListener("beforeinput",s,!0),t?oE(r,t):null}var at=class r{get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return this.inputState.composing>0}get compositionStarted(){return this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}constructor(e={}){this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.className="cm-announced",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM),e.parent&&e.parent.appendChild(this.dom);let{dispatch:t}=e;this.dispatchTransactions=e.dispatchTransactions||t&&(s=>s.forEach(n=>t(n,this)))||(s=>this.update(s)),this.dispatch=this.dispatch.bind(this),this._root=e.root||NM(e.parent)||document,this.viewState=new ql(e.state||Ut.create(e)),e.scrollTo&&e.scrollTo.is(xl)&&(this.viewState.scrollTarget=e.scrollTo.value.clip(this.viewState.state)),this.plugins=this.state.facet(Xa).map(s=>new no(s));for(let s of this.plugins)s.update(this);this.observer=new op(this),this.inputState=new zf(this),this.inputState.ensureHandlers(this.plugins),this.docView=new $l(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure()}dispatch(...e){let t=e.length==1&&e[0]instanceof lr?e:e.length==1&&Array.isArray(e[0])?e[0]:[this.state.update(...e)];this.dispatchTransactions(t,this)}update(e){if(this.updateState!=0)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");let t=!1,s=!1,n,i=this.state;for(let h of e){if(h.startState!=i)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");i=h.state}if(this.destroyed){this.viewState.state=i;return}let a=this.hasFocus,l=0,o=null;e.some(h=>h.annotation(lw))?(this.inputState.notifiedFocused=a,l=1):a!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=a,o=uw(i,a),o||(l=1));let u=this.observer.delayedAndroidKey,c=null;if(u?(this.observer.clearDelayedAndroidKey(),c=this.observer.readChange(),(c&&!this.state.doc.eq(i.doc)||!this.state.selection.eq(i.selection))&&(c=null)):this.observer.clear(),i.facet(Ut.phrases)!=this.state.facet(Ut.phrases))return this.setState(i);n=Ll.create(this,i,e),n.flags|=l;let p=this.viewState.scrollTarget;try{this.updateState=2;for(let h of e){if(p&&(p=p.map(h.changes)),h.scrollIntoView){let{main:f}=h.state.selection;p=new ro(f.empty?f:ze.cursor(f.head,f.head>f.anchor?-1:1))}for(let f of h.effects)f.is(xl)&&(p=f.value.clip(this.state))}this.viewState.update(n,p),this.bidiCache=Ul.update(this.bidiCache,n.changes),n.empty||(this.updatePlugins(n),this.inputState.update(n)),t=this.docView.update(n),this.state.facet(Ya)!=this.styleModules&&this.mountStyles(),s=this.updateAttrs(),this.showAnnouncements(e),this.docView.updateSelection(t,e.some(h=>h.isUserEvent("select.pointer")))}finally{this.updateState=0}if(n.startState.facet(Cl)!=n.state.facet(Cl)&&(this.viewState.mustMeasureContent=!0),(t||s||p||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),t&&this.docViewUpdate(),!n.empty)for(let h of this.state.facet(Uf))try{h(n)}catch(f){yr(this.state,f,"update listener")}(o||c)&&Promise.resolve().then(()=>{o&&this.state==o.startState&&this.dispatch(o),c&&!dw(this,c)&&u.force&&Vi(this.contentDOM,u.key,u.keyCode)})}setState(e){if(this.updateState!=0)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed){this.viewState.state=e;return}this.updateState=2;let t=this.hasFocus;try{for(let s of this.plugins)s.destroy(this);this.viewState=new ql(e),this.plugins=e.facet(Xa).map(s=>new no(s)),this.pluginMap.clear();for(let s of this.plugins)s.update(this);this.docView.destroy(),this.docView=new $l(this),this.inputState.ensureHandlers(this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}t&&this.focus(),this.requestMeasure()}updatePlugins(e){let t=e.startState.facet(Xa),s=e.state.facet(Xa);if(t!=s){let n=[];for(let i of s){let a=t.indexOf(i);if(a<0)n.push(new no(i));else{let l=this.plugins[a];l.mustUpdate=e,n.push(l)}}for(let i of this.plugins)i.mustUpdate!=e&&i.destroy(this);this.plugins=n,this.pluginMap.clear()}else for(let n of this.plugins)n.mustUpdate=e;for(let n=0;n-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.observer.delayedAndroidKey){this.measureScheduled=-1,this.requestMeasure();return}this.measureScheduled=0,e&&this.observer.forceFlush();let t=null,s=this.scrollDOM,n=s.scrollTop*this.scaleY,{scrollAnchorPos:i,scrollAnchorHeight:a}=this.viewState;Math.abs(n-this.viewState.scrollTop)>1&&(a=-1),this.viewState.scrollAnchorHeight=-1;try{for(let l=0;;l++){if(a<0)if(wE(s))i=-1,a=this.viewState.heightMap.height;else{let f=this.viewState.scrollAnchorAt(n);i=f.from,a=f.top}this.updateState=1;let o=this.viewState.measure(this);if(!o&&!this.measureRequests.length&&this.viewState.scrollTarget==null)break;if(l>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let u=[];o&4||([this.measureRequests,u]=[u,this.measureRequests]);let c=u.map(f=>{try{return f.read(this)}catch(d){return yr(this.state,d),lE}}),p=Ll.create(this,this.state,[]),h=!1;p.flags|=o,t?t.flags|=o:t=p,this.updateState=2,p.empty||(this.updatePlugins(p),this.inputState.update(p),this.updateAttrs(),h=this.docView.update(p),h&&this.docViewUpdate());for(let f=0;f1||d<-1){n=n+d,s.scrollTop=n/this.scaleY,a=-1;continue}}break}}}finally{this.updateState=0,this.measureScheduled=-1}if(t&&!t.empty)for(let l of this.state.facet(Uf))l(t)}get themeClasses(){return np+" "+(this.state.facet(rp)?pw:fw)+" "+this.state.facet(Cl)}updateAttrs(){let e=uE(this,XE,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),t={spellcheck:"false",autocorrect:"off",autocapitalize:"off",translate:"no",contenteditable:this.state.facet(Yl)?"true":"false",class:"cm-content",style:`${ft.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(t["aria-readonly"]="true"),uE(this,Ep,t);let s=this.observer.ignore(()=>{let n=$f(this.contentDOM,this.contentAttrs,t),i=$f(this.dom,this.editorAttrs,e);return n||i});return this.editorAttrs=e,this.contentAttrs=t,s}showAnnouncements(e){let t=!0;for(let s of e)for(let n of s.effects)if(n.is(r.announce)){t&&(this.announceDOM.textContent=""),t=!1;let i=this.announceDOM.appendChild(document.createElement("div"));i.textContent=n.value}}mountStyles(){this.styleModules=this.state.facet(Ya);let e=this.state.facet(r.cspNonce);nn.mount(this.root,this.styleModules.concat(B3).reverse(),e?{nonce:e}:void 0)}readMeasured(){if(this.updateState==2)throw new Error("Reading the editor layout isn't allowed during an update");this.updateState==0&&this.measureScheduled>-1&&this.measure(!1)}requestMeasure(e){if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame(()=>this.measure())),e){if(this.measureRequests.indexOf(e)>-1)return;if(e.key!=null){for(let t=0;ts.spec==e)||null),t&&t.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}get scaleX(){return this.viewState.scaleX}get scaleY(){return this.viewState.scaleY}elementAtHeight(e){return this.readMeasured(),this.viewState.elementAtHeight(e)}lineBlockAtHeight(e){return this.readMeasured(),this.viewState.lineBlockAtHeight(e)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(e){return this.viewState.lineBlockAt(e)}get contentHeight(){return this.viewState.contentHeight}moveByChar(e,t,s){return Af(this,e,ZS(this,e,t,s))}moveByGroup(e,t){return Af(this,e,ZS(this,e,t,s=>p3(this,e.head,s)))}visualLineSide(e,t){let s=this.bidiSpans(e),n=this.textDirectionAt(e.from),i=s[t?s.length-1:0];return ze.cursor(i.side(t,n)+e.from,i.forward(!t,n)?1:-1)}moveToLineBoundary(e,t,s=!0){return f3(this,e,t,s)}moveVertically(e,t,s){return Af(this,e,h3(this,e,t,s))}domAtPos(e){return this.docView.domAtPos(e)}posAtDOM(e,t=0){return this.docView.posFromDOM(e,t)}posAtCoords(e,t=!0){return this.readMeasured(),tw(this,e,t)}coordsAtPos(e,t=1){this.readMeasured();let s=this.docView.coordsAt(e,t);if(!s||s.left==s.right)return s;let n=this.state.doc.lineAt(e),i=this.bidiSpans(n),a=i[Bn.find(i,e-n.from,-1,t)];return vp(s,a.dir==zt.LTR==t>0)}coordsForChar(e){return this.readMeasured(),this.docView.coordsForChar(e)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(e){return!this.state.facet(zE)||ethis.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(e))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(e){if(e.length>U3)return $E(e.length);let t=this.textDirectionAt(e.from),s;for(let i of this.bidiCache)if(i.from==e.from&&i.dir==t&&(i.fresh||LE(i.isolates,s=QS(this,e))))return i.order;s||(s=QS(this,e));let n=XM(e.text,t,s);return this.bidiCache.push(new Ul(e.from,e.to,t,s,!0,n)),n}get hasFocus(){var e;return(this.dom.ownerDocument.hasFocus()||ft.safari&&((e=this.inputState)===null||e===void 0?void 0:e.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore(()=>{SE(this.contentDOM),this.docView.updateSelection()})}setRoot(e){this._root!=e&&(this._root=e,this.observer.setWindow((e.nodeType==9?e:e.ownerDocument).defaultView||window),this.mountStyles())}destroy(){for(let e of this.plugins)e.destroy(this);this.plugins=[],this.inputState.destroy(),this.docView.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(e,t={}){return xl.of(new ro(typeof e=="number"?ze.cursor(e):e,t.y,t.x,t.yMargin,t.xMargin))}scrollSnapshot(){let{scrollTop:e,scrollLeft:t}=this.scrollDOM,s=this.viewState.scrollAnchorAt(e);return xl.of(new ro(ze.cursor(s.from),"start","start",s.top-e,t,!0))}static domEventHandlers(e){return rr.define(()=>({}),{eventHandlers:e})}static domEventObservers(e){return rr.define(()=>({}),{eventObservers:e})}static theme(e,t){let s=nn.newName(),n=[Cl.of(s),Ya.of(sp(`.${s}`,e))];return t&&t.dark&&n.push(rp.of(!0)),n}static baseTheme(e){return rn.lowest(Ya.of(sp("."+np,e,hw)))}static findFromDOM(e){var t;let s=e.querySelector(".cm-content"),n=s&&Xt.get(s)||Xt.get(e);return((t=n?.rootView)===null||t===void 0?void 0:t.view)||null}};at.styleModule=Ya;at.inputHandler=VE;at.scrollHandler=GE;at.focusChangeEffect=WE;at.perLineTextDirection=zE;at.exceptionSink=UE;at.updateListener=Uf;at.editable=Yl;at.mouseSelectionStyle=QE;at.dragMovesSelection=qE;at.clickAddsSelectionRange=jE;at.decorations=po;at.outerDecorations=YE;at.atomicRanges=wp;at.bidiIsolatedRanges=HE;at.scrollMargins=KE;at.darkTheme=rp;at.cspNonce=ct.define({combine:r=>r.length?r[0]:""});at.contentAttributes=Ep;at.editorAttributes=XE;at.lineWrapping=at.contentAttributes.of({class:"cm-lineWrapping"});at.announce=Ct.define();var U3=4096,lE={},Ul=class r{constructor(e,t,s,n,i,a){this.from=e,this.to=t,this.dir=s,this.isolates=n,this.fresh=i,this.order=a}static update(e,t){if(t.empty&&!e.some(i=>i.fresh))return e;let s=[],n=e.length?e[e.length-1].dir:zt.LTR;for(let i=Math.max(0,e.length-10);i=0;n--){let i=s[n],a=typeof i=="function"?i(r):i;a&&Lf(a,t)}return t}var V3=ft.mac?"mac":ft.windows?"win":ft.linux?"linux":"key";function W3(r,e){let t=r.split(/-(?!$)/),s=t[t.length-1];s=="Space"&&(s=" ");let n,i,a,l;for(let o=0;os.concat(n),[]))),t}function gw(r,e,t){return yw(mw(r.state),e,r,t)}var Ss=null,Z3=4e3;function G3(r,e=V3){let t=Object.create(null),s=Object.create(null),n=(a,l)=>{let o=s[a];if(o==null)s[a]=l;else if(o!=l)throw new Error("Key binding "+a+" is used both as a regular binding and as a multi-stroke prefix")},i=(a,l,o,u,c)=>{var p,h;let f=t[a]||(t[a]=Object.create(null)),d=l.split(/ (?!$)/).map(y=>W3(y,e));for(let y=1;y{let S=Ss={view:x,prefix:v,scope:a};return setTimeout(()=>{Ss==S&&(Ss=null)},Z3),!0}]})}let m=d.join(" ");n(m,!1);let g=f[m]||(f[m]={preventDefault:!1,stopPropagation:!1,run:((h=(p=f._any)===null||p===void 0?void 0:p.run)===null||h===void 0?void 0:h.slice())||[]});o&&g.run.push(o),u&&(g.preventDefault=!0),c&&(g.stopPropagation=!0)};for(let a of r){let l=a.scope?a.scope.split(" "):["editor"];if(a.any)for(let u of l){let c=t[u]||(t[u]=Object.create(null));c._any||(c._any={preventDefault:!1,stopPropagation:!1,run:[]});for(let p in c)c[p].run.push(a.any)}let o=a[e]||a.key;if(o)for(let u of l)i(u,o,a.run,a.preventDefault,a.stopPropagation),a.shift&&i(u,"Shift-"+o,a.shift,a.preventDefault,a.stopPropagation)}return t}function yw(r,e,t,s){let n=FS(e),i=gr(n,0),a=$r(i)==n.length&&n!=" ",l="",o=!1,u=!1,c=!1;Ss&&Ss.view==t&&Ss.scope==s&&(l=Ss.prefix+" ",nw.indexOf(e.keyCode)<0&&(u=!0,Ss=null));let p=new Set,h=g=>{if(g){for(let y of g.run)if(!p.has(y)&&(p.add(y),y(t,e)))return g.stopPropagation&&(c=!0),!0;g.preventDefault&&(g.stopPropagation&&(c=!0),u=!0)}return!1},f=r[s],d,m;return f&&(h(f[l+kl(n,e,!a)])?o=!0:a&&(e.altKey||e.metaKey||e.ctrlKey)&&!(ft.windows&&e.ctrlKey&&e.altKey)&&(d=is[e.keyCode])&&d!=n?(h(f[l+kl(d,e,!0)])||e.shiftKey&&(m=Mi[e.keyCode])!=n&&m!=d&&h(f[l+kl(m,e,!1)]))&&(o=!0):a&&e.shiftKey&&h(f[l+kl(n,e,!0)])&&(o=!0),!o&&h(f._any)&&(o=!0)),u&&(o=!0),o&&c&&e.stopPropagation(),o}var ho=class r{constructor(e,t,s,n,i){this.className=e,this.left=t,this.top=s,this.width=n,this.height=i}draw(){let e=document.createElement("div");return e.className=this.className,this.adjust(e),e}update(e,t){return t.className!=this.className?!1:(this.adjust(e),!0)}adjust(e){e.style.left=this.left+"px",e.style.top=this.top+"px",this.width!=null&&(e.style.width=this.width+"px"),e.style.height=this.height+"px"}eq(e){return this.left==e.left&&this.top==e.top&&this.width==e.width&&this.height==e.height&&this.className==e.className}static forRange(e,t,s){if(s.empty){let n=e.coordsAtPos(s.head,s.assoc||1);if(!n)return[];let i=bw(e);return[new r(t,n.left-i.left,n.top-i.top,null,n.bottom-n.top)]}else return X3(e,t,s)}};function bw(r){let e=r.scrollDOM.getBoundingClientRect();return{left:(r.textDirection==zt.LTR?e.left:e.right-r.scrollDOM.clientWidth*r.scaleX)-r.scrollDOM.scrollLeft*r.scaleX,top:e.top-r.scrollDOM.scrollTop*r.scaleY}}function fE(r,e,t){let s=ze.cursor(e);return{from:Math.max(t.from,r.moveToLineBoundary(s,!1,!0).from),to:Math.min(t.to,r.moveToLineBoundary(s,!0,!0).from),type:Ir.Text}}function X3(r,e,t){if(t.to<=r.viewport.from||t.from>=r.viewport.to)return[];let s=Math.max(t.from,r.viewport.from),n=Math.min(t.to,r.viewport.to),i=r.textDirection==zt.LTR,a=r.contentDOM,l=a.getBoundingClientRect(),o=bw(r),u=a.querySelector(".cm-line"),c=u&&window.getComputedStyle(u),p=l.left+(c?parseInt(c.paddingLeft)+Math.min(0,parseInt(c.textIndent)):0),h=l.right-(c?parseInt(c.paddingRight):0),f=Wf(r,s),d=Wf(r,n),m=f.type==Ir.Text?f:null,g=d.type==Ir.Text?d:null;if(m&&(r.lineWrapping||f.widgetLineBreaks)&&(m=fE(r,s,m)),g&&(r.lineWrapping||d.widgetLineBreaks)&&(g=fE(r,n,g)),m&&g&&m.from==g.from)return v(x(t.from,t.to,m));{let w=m?x(t.from,null,m):S(f,!1),O=g?x(null,t.to,g):S(d,!0),C=[];return(m||f).to<(g||d).from-(m&&g?1:0)||f.widgetLineBreaks>1&&w.bottom+r.defaultLineHeight/2_&&T.from=j)break;F>R&&D(Math.max(N,R),w==null&&N<=_,Math.min(F,j),O==null&&F>=B,I.dir)}if(R=Q.to+1,R>=j)break}return A.length==0&&D(_,w==null,B,O==null,r.textDirection),{top:E,bottom:k,horizontal:A}}function S(w,O){let C=l.top+(O?w.top:w.bottom);return{top:C,bottom:C,horizontal:[]}}}function Y3(r,e){return r.constructor==e.constructor&&r.eq(e)}var lp=class{constructor(e,t){this.view=e,this.layer=t,this.drawn=[],this.scaleX=1,this.scaleY=1,this.measureReq={read:this.measure.bind(this),write:this.draw.bind(this)},this.dom=e.scrollDOM.appendChild(document.createElement("div")),this.dom.classList.add("cm-layer"),t.above&&this.dom.classList.add("cm-layer-above"),t.class&&this.dom.classList.add(t.class),this.scale(),this.dom.setAttribute("aria-hidden","true"),this.setOrder(e.state),e.requestMeasure(this.measureReq),t.mount&&t.mount(this.dom,e)}update(e){e.startState.facet(_l)!=e.state.facet(_l)&&this.setOrder(e.state),(this.layer.update(e,this.dom)||e.geometryChanged)&&(this.scale(),e.view.requestMeasure(this.measureReq))}docViewUpdate(e){this.layer.updateOnDocViewUpdate!==!1&&e.requestMeasure(this.measureReq)}setOrder(e){let t=0,s=e.facet(_l);for(;t!Y3(t,this.drawn[s]))){let t=this.dom.firstChild,s=0;for(let n of e)n.update&&t&&n.constructor&&this.drawn[s].constructor&&n.update(t,this.drawn[s])?(t=t.nextSibling,s++):this.dom.insertBefore(n.draw(),t);for(;t;){let n=t.nextSibling;t.remove(),t=n}this.drawn=e}}destroy(){this.layer.destroy&&this.layer.destroy(this.dom,this.view),this.dom.remove()}},_l=ct.define();function vw(r){return[rr.define(e=>new lp(e,r)),_l.of(r)]}var xw=!ft.ios,mo=ct.define({combine(r){return kr(r,{cursorBlinkRate:1200,drawRangeCursor:!0},{cursorBlinkRate:(e,t)=>Math.min(e,t),drawRangeCursor:(e,t)=>e||t})}});function Ow(r={}){return[mo.of(r),H3,K3,J3,ZE.of(!0)]}function Sw(r){return r.startState.facet(mo)!=r.state.facet(mo)}var H3=vw({above:!0,markers(r){let{state:e}=r,t=e.facet(mo),s=[];for(let n of e.selection.ranges){let i=n==e.selection.main;if(n.empty?!i||xw:t.drawRangeCursor){let a=i?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary",l=n.empty?n:ze.cursor(n.head,n.head>n.anchor?-1:1);for(let o of ho.forRange(r,a,l))s.push(o)}}return s},update(r,e){r.transactions.some(s=>s.selection)&&(e.style.animationName=e.style.animationName=="cm-blink"?"cm-blink2":"cm-blink");let t=Sw(r);return t&&pE(r.state,e),r.docChanged||r.selectionSet||t},mount(r,e){pE(e.state,r)},class:"cm-cursorLayer"});function pE(r,e){e.style.animationDuration=r.facet(mo).cursorBlinkRate+"ms"}var K3=vw({above:!1,markers(r){return r.state.selection.ranges.map(e=>e.empty?[]:ho.forRange(r,"cm-selectionBackground",e)).reduce((e,t)=>e.concat(t))},update(r,e){return r.docChanged||r.selectionSet||r.viewportChanged||Sw(r)},class:"cm-selectionLayer"}),up={".cm-line":{"& ::selection":{backgroundColor:"transparent !important"},"&::selection":{backgroundColor:"transparent !important"}}};xw&&(up[".cm-line"].caretColor="transparent !important",up[".cm-content"]={caretColor:"transparent !important"});var J3=rn.highest(at.theme(up)),Ew=Ct.define({map(r,e){return r==null?null:e.mapPos(r)}}),Ja=Yt.define({create(){return null},update(r,e){return r!=null&&(r=e.changes.mapPos(r)),e.effects.reduce((t,s)=>s.is(Ew)?s.value:t,r)}}),ej=rr.fromClass(class{constructor(r){this.view=r,this.cursor=null,this.measureReq={read:this.readPos.bind(this),write:this.drawCursor.bind(this)}}update(r){var e;let t=r.state.field(Ja);t==null?this.cursor!=null&&((e=this.cursor)===null||e===void 0||e.remove(),this.cursor=null):(this.cursor||(this.cursor=this.view.scrollDOM.appendChild(document.createElement("div")),this.cursor.className="cm-dropCursor"),(r.startState.field(Ja)!=t||r.docChanged||r.geometryChanged)&&this.view.requestMeasure(this.measureReq))}readPos(){let{view:r}=this,e=r.state.field(Ja),t=e!=null&&r.coordsAtPos(e);if(!t)return null;let s=r.scrollDOM.getBoundingClientRect();return{left:t.left-s.left+r.scrollDOM.scrollLeft*r.scaleX,top:t.top-s.top+r.scrollDOM.scrollTop*r.scaleY,height:t.bottom-t.top}}drawCursor(r){if(this.cursor){let{scaleX:e,scaleY:t}=this.view;r?(this.cursor.style.left=r.left/e+"px",this.cursor.style.top=r.top/t+"px",this.cursor.style.height=r.height/t+"px"):this.cursor.style.left="-100000px"}}destroy(){this.cursor&&this.cursor.remove()}setDropPos(r){this.view.state.field(Ja)!=r&&this.view.dispatch({effects:Ew.of(r)})}},{eventObservers:{dragover(r){this.setDropPos(this.view.posAtCoords({x:r.clientX,y:r.clientY}))},dragleave(r){(r.target==this.view.contentDOM||!this.view.contentDOM.contains(r.relatedTarget))&&this.setDropPos(null)},dragend(){this.setDropPos(null)},drop(){this.setDropPos(null)}}});function ww(){return[Ja,ej]}function hE(r,e,t,s,n){e.lastIndex=0;for(let i=r.iterRange(t,s),a=t,l;!i.next().done;a+=i.value.length)if(!i.lineBreak)for(;l=e.exec(i.value);)n(a+l.index,l)}function tj(r,e){let t=r.visibleRanges;if(t.length==1&&t[0].from==r.viewport.from&&t[0].to==r.viewport.to)return t;let s=[];for(let{from:n,to:i}of t)n=Math.max(r.state.doc.lineAt(n).from,n-e),i=Math.min(r.state.doc.lineAt(i).to,i+e),s.length&&s[s.length-1].to>=n?s[s.length-1].to=i:s.push({from:n,to:i});return s}var cp=class{constructor(e){let{regexp:t,decoration:s,decorate:n,boundary:i,maxLength:a=1e3}=e;if(!t.global)throw new RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");if(this.regexp=t,n)this.addMatch=(l,o,u,c)=>n(c,u,u+l[0].length,l,o);else if(typeof s=="function")this.addMatch=(l,o,u,c)=>{let p=s(l,o,u);p&&c(u,u+l[0].length,p)};else if(s)this.addMatch=(l,o,u,c)=>c(u,u+l[0].length,s);else throw new RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");this.boundary=i,this.maxLength=a}createDeco(e){let t=new In,s=t.add.bind(t);for(let{from:n,to:i}of tj(e,this.maxLength))hE(e.state.doc,this.regexp,n,i,(a,l)=>this.addMatch(l,e,a,s));return t.finish()}updateDeco(e,t){let s=1e9,n=-1;return e.docChanged&&e.changes.iterChanges((i,a,l,o)=>{o>e.view.viewport.from&&l1e3?this.createDeco(e.view):n>-1?this.updateRange(e.view,t.map(e.changes),s,n):t}updateRange(e,t,s,n){for(let i of e.visibleRanges){let a=Math.max(i.from,s),l=Math.min(i.to,n);if(l>a){let o=e.state.doc.lineAt(a),u=o.too.from;a--)if(this.boundary.test(o.text[a-1-o.from])){c=a;break}for(;lh.push(y.range(m,g));if(o==u)for(this.regexp.lastIndex=c-o.from;(f=this.regexp.exec(o.text))&&f.indexthis.addMatch(g,e,m,d));t=t.update({filterFrom:c,filterTo:p,filter:(m,g)=>mp,add:h})}}return t}},fp=/x/.unicode!=null?"gu":"g",rj=new RegExp(`[\0-\b +-\x7F-\x9F\xAD\u061C\u200B\u200E\u200F\u2028\u2029\u202D\u202E\u2066\u2067\u2069\uFEFF\uFFF9-\uFFFC]`,fp),nj={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"},Tf=null;function sj(){var r;if(Tf==null&&typeof document<"u"&&document.body){let e=document.body.style;Tf=((r=e.tabSize)!==null&&r!==void 0?r:e.MozTabSize)!=null}return Tf||!1}var Il=ct.define({combine(r){let e=kr(r,{render:null,specialChars:rj,addSpecialChars:null});return(e.replaceTabs=!sj())&&(e.specialChars=new RegExp(" |"+e.specialChars.source,fp)),e.addSpecialChars&&(e.specialChars=new RegExp(e.specialChars.source+"|"+e.addSpecialChars.source,fp)),e}});function Cw(r={}){return[Il.of(r),ij()]}var dE=null;function ij(){return dE||(dE=rr.fromClass(class{constructor(r){this.view=r,this.decorations=yt.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(r.state.facet(Il)),this.decorations=this.decorator.createDeco(r)}makeDecorator(r){return new cp({regexp:r.specialChars,decoration:(e,t,s)=>{let{doc:n}=t.state,i=gr(e[0],0);if(i==9){let a=n.lineAt(s),l=t.state.tabSize,o=ss(a.text,l,s-a.from);return yt.replace({widget:new hp((l-o%l)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[i]||(this.decorationCache[i]=yt.replace({widget:new pp(r,i)}))},boundary:r.replaceTabs?void 0:/[^]/})}update(r){let e=r.state.facet(Il);r.startState.facet(Il)!=e?(this.decorator=this.makeDecorator(e),this.decorations=this.decorator.createDeco(r.view)):this.decorations=this.decorator.updateDeco(r,this.decorations)}},{decorations:r=>r.decorations}))}var aj="\u2022";function oj(r){return r>=32?aj:r==10?"\u2424":String.fromCharCode(9216+r)}var pp=class extends an{constructor(e,t){super(),this.options=e,this.code=t}eq(e){return e.code==this.code}toDOM(e){let t=oj(this.code),s=e.state.phrase("Control character")+" "+(nj[this.code]||"0x"+this.code.toString(16)),n=this.options.render&&this.options.render(this.code,s,t);if(n)return n;let i=document.createElement("span");return i.textContent=t,i.title=s,i.setAttribute("aria-label",s),i.className="cm-specialChar",i}ignoreEvent(){return!1}},hp=class extends an{constructor(e){super(),this.width=e}eq(e){return e.width==this.width}toDOM(){let e=document.createElement("span");return e.textContent=" ",e.className="cm-tab",e.style.width=this.width+"px",e}ignoreEvent(){return!1}};function kw(){return uj}var lj=yt.line({class:"cm-activeLine"}),uj=rr.fromClass(class{constructor(r){this.decorations=this.getDeco(r)}update(r){(r.docChanged||r.selectionSet)&&(this.decorations=this.getDeco(r.view))}getDeco(r){let e=-1,t=[];for(let s of r.state.selection.ranges){let n=r.lineBlockAt(s.head);n.from>e&&(t.push(lj.range(n.from)),e=n.from)}return yt.set(t)}},{decorations:r=>r.decorations});var dp=2e3;function cj(r,e,t){let s=Math.min(e.line,t.line),n=Math.max(e.line,t.line),i=[];if(e.off>dp||t.off>dp||e.col<0||t.col<0){let a=Math.min(e.off,t.off),l=Math.max(e.off,t.off);for(let o=s;o<=n;o++){let u=r.doc.line(o);u.length<=l&&i.push(ze.range(u.from+a,u.to+l))}}else{let a=Math.min(e.col,t.col),l=Math.max(e.col,t.col);for(let o=s;o<=n;o++){let u=r.doc.line(o),c=yl(u.text,a,r.tabSize,!0);if(c<0)i.push(ze.cursor(u.to));else{let p=yl(u.text,l,r.tabSize);i.push(ze.range(u.from+c,u.from+p))}}}return i}function fj(r,e){let t=r.coordsAtPos(r.viewport.from);return t?Math.round(Math.abs((t.left-e)/r.defaultCharacterWidth)):-1}function mE(r,e){let t=r.posAtCoords({x:e.clientX,y:e.clientY},!1),s=r.state.doc.lineAt(t),n=t-s.from,i=n>dp?-1:n==s.length?fj(r,e.clientX):ss(s.text,r.state.tabSize,t-s.from);return{line:s.number,col:i,off:n}}function pj(r,e){let t=mE(r,e),s=r.state.selection;return t?{update(n){if(n.docChanged){let i=n.changes.mapPos(n.startState.doc.line(t.line).from),a=n.state.doc.lineAt(i);t={line:a.number,col:t.col,off:Math.min(t.off,a.length)},s=s.map(n.changes)}},get(n,i,a){let l=mE(r,n);if(!l)return s;let o=cj(r.state,t,l);return o.length?a?ze.create(o.concat(s.ranges)):ze.create(o):s}}:null}function Aw(r){let e=r?.eventFilter||(t=>t.altKey&&t.button==0);return at.mouseSelectionStyle.of((t,s)=>e(s)?pj(t,s):null)}var hj={Alt:[18,r=>!!r.altKey],Control:[17,r=>!!r.ctrlKey],Shift:[16,r=>!!r.shiftKey],Meta:[91,r=>!!r.metaKey]},dj={style:"cursor: crosshair"};function Pw(r={}){let[e,t]=hj[r.key||"Alt"],s=rr.fromClass(class{constructor(n){this.view=n,this.isDown=!1}set(n){this.isDown!=n&&(this.isDown=n,this.view.update([]))}},{eventObservers:{keydown(n){this.set(n.keyCode==e||t(n))},keyup(n){(n.keyCode==e||!t(n))&&this.set(!1)},mousemove(n){this.set(t(n))}}});return[s,at.contentAttributes.of(n=>{var i;return!((i=n.plugin(s))===null||i===void 0)&&i.isDown?dj:null})]}var Ga="-10000px",Vl=class{constructor(e,t,s,n){this.facet=t,this.createTooltipView=s,this.removeTooltipView=n,this.input=e.state.facet(t),this.tooltips=this.input.filter(a=>a);let i=null;this.tooltipViews=this.tooltips.map(a=>i=s(a,i))}update(e,t){var s;let n=e.state.facet(this.facet),i=n.filter(o=>o);if(n===this.input){for(let o of this.tooltipViews)o.update&&o.update(e);return!1}let a=[],l=t?[]:null;for(let o=0;ot[u]=o),t.length=l.length),this.input=n,this.tooltips=i,this.tooltipViews=a,!0}};function mj(r){let{win:e}=r;return{top:0,left:0,bottom:e.innerHeight,right:e.innerWidth}}var Df=ct.define({combine:r=>{var e,t,s;return{position:ft.ios?"absolute":((e=r.find(n=>n.position))===null||e===void 0?void 0:e.position)||"fixed",parent:((t=r.find(n=>n.parent))===null||t===void 0?void 0:t.parent)||null,tooltipSpace:((s=r.find(n=>n.tooltipSpace))===null||s===void 0?void 0:s.tooltipSpace)||mj}}}),gE=new WeakMap,Cp=rr.fromClass(class{constructor(r){this.view=r,this.above=[],this.inView=!0,this.madeAbsolute=!1,this.lastTransaction=0,this.measureTimeout=-1;let e=r.state.facet(Df);this.position=e.position,this.parent=e.parent,this.classes=r.themeClasses,this.createContainer(),this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this},this.resizeObserver=typeof ResizeObserver=="function"?new ResizeObserver(()=>this.measureSoon()):null,this.manager=new Vl(r,zi,(t,s)=>this.createTooltip(t,s),t=>{this.resizeObserver&&this.resizeObserver.unobserve(t.dom),t.dom.remove()}),this.above=this.manager.tooltips.map(t=>!!t.above),this.intersectionObserver=typeof IntersectionObserver=="function"?new IntersectionObserver(t=>{Date.now()>this.lastTransaction-50&&t.length>0&&t[t.length-1].intersectionRatio<1&&this.measureSoon()},{threshold:[1]}):null,this.observeIntersection(),r.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}createContainer(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}observeIntersection(){if(this.intersectionObserver){this.intersectionObserver.disconnect();for(let r of this.manager.tooltipViews)this.intersectionObserver.observe(r.dom)}}measureSoon(){this.measureTimeout<0&&(this.measureTimeout=setTimeout(()=>{this.measureTimeout=-1,this.maybeMeasure()},50))}update(r){r.transactions.length&&(this.lastTransaction=Date.now());let e=this.manager.update(r,this.above);e&&this.observeIntersection();let t=e||r.geometryChanged,s=r.state.facet(Df);if(s.position!=this.position&&!this.madeAbsolute){this.position=s.position;for(let n of this.manager.tooltipViews)n.dom.style.position=this.position;t=!0}if(s.parent!=this.parent){this.parent&&this.container.remove(),this.parent=s.parent,this.createContainer();for(let n of this.manager.tooltipViews)this.container.appendChild(n.dom);t=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);t&&this.maybeMeasure()}createTooltip(r,e){let t=r.create(this.view),s=e?e.dom:null;if(t.dom.classList.add("cm-tooltip"),r.arrow&&!t.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){let n=document.createElement("div");n.className="cm-tooltip-arrow",t.dom.appendChild(n)}return t.dom.style.position=this.position,t.dom.style.top=Ga,t.dom.style.left="0px",this.container.insertBefore(t.dom,s),t.mount&&t.mount(this.view),this.resizeObserver&&this.resizeObserver.observe(t.dom),t}destroy(){var r,e,t;this.view.win.removeEventListener("resize",this.measureSoon);for(let s of this.manager.tooltipViews)s.dom.remove(),(r=s.destroy)===null||r===void 0||r.call(s);this.parent&&this.container.remove(),(e=this.resizeObserver)===null||e===void 0||e.disconnect(),(t=this.intersectionObserver)===null||t===void 0||t.disconnect(),clearTimeout(this.measureTimeout)}readMeasure(){let r=this.view.dom.getBoundingClientRect(),e=1,t=1,s=!1;if(this.position=="fixed"&&this.manager.tooltipViews.length){let{dom:n}=this.manager.tooltipViews[0];if(ft.gecko)s=n.offsetParent!=this.container.ownerDocument.body;else if(n.style.top==Ga&&n.style.left=="0px"){let i=n.getBoundingClientRect();s=Math.abs(i.top+1e4)>1||Math.abs(i.left)>1}}if(s||this.position=="absolute")if(this.parent){let n=this.parent.getBoundingClientRect();n.width&&n.height&&(e=n.width/this.parent.offsetWidth,t=n.height/this.parent.offsetHeight)}else({scaleX:e,scaleY:t}=this.view.viewState);return{editor:r,parent:this.parent?this.container.getBoundingClientRect():r,pos:this.manager.tooltips.map((n,i)=>{let a=this.manager.tooltipViews[i];return a.getCoords?a.getCoords(n.pos):this.view.coordsAtPos(n.pos)}),size:this.manager.tooltipViews.map(({dom:n})=>n.getBoundingClientRect()),space:this.view.state.facet(Df).tooltipSpace(this.view),scaleX:e,scaleY:t,makeAbsolute:s}}writeMeasure(r){var e;if(r.makeAbsolute){this.madeAbsolute=!0,this.position="absolute";for(let l of this.manager.tooltipViews)l.dom.style.position="absolute"}let{editor:t,space:s,scaleX:n,scaleY:i}=r,a=[];for(let l=0;l=Math.min(t.bottom,s.bottom)||p.rightMath.min(t.right,s.right)+.1){c.style.top=Ga;continue}let f=o.arrow?u.dom.querySelector(".cm-tooltip-arrow"):null,d=f?7:0,m=h.right-h.left,g=(e=gE.get(u))!==null&&e!==void 0?e:h.bottom-h.top,y=u.offset||yj,v=this.view.textDirection==zt.LTR,x=h.width>s.right-s.left?v?s.left:s.right-h.width:v?Math.min(p.left-(f?14:0)+y.x,s.right-m):Math.max(s.left,p.left-m+(f?14:0)-y.x),S=this.above[l];!o.strictSide&&(S?p.top-(h.bottom-h.top)-y.ys.bottom)&&S==s.bottom-p.bottom>p.top-s.top&&(S=this.above[l]=!S);let w=(S?p.top-s.top:s.bottom-p.bottom)-d;if(wx&&E.topO&&(O=S?E.top-g-2-d:E.bottom+d+2);if(this.position=="absolute"?(c.style.top=(O-r.parent.top)/i+"px",c.style.left=(x-r.parent.left)/n+"px"):(c.style.top=O/i+"px",c.style.left=x/n+"px"),f){let E=p.left+(v?y.x:-y.x)-(x+14-7);f.style.left=E/n+"px"}u.overlap!==!0&&a.push({left:x,top:O,right:C,bottom:O+g}),c.classList.toggle("cm-tooltip-above",S),c.classList.toggle("cm-tooltip-below",!S),u.positioned&&u.positioned(r.space)}}maybeMeasure(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView&&(this.inView=this.view.inView,!this.inView)))for(let r of this.manager.tooltipViews)r.dom.style.top=Ga}},{eventObservers:{scroll(){this.maybeMeasure()}}}),gj=at.baseTheme({".cm-tooltip":{zIndex:100,boxSizing:"border-box"},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:"7px",width:`${7*2}px`,position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:"7px solid transparent",borderRight:"7px solid transparent"},".cm-tooltip-above &":{bottom:"-7px","&:before":{borderTop:"7px solid #bbb"},"&:after":{borderTop:"7px solid #f5f5f5",bottom:"1px"}},".cm-tooltip-below &":{top:"-7px","&:before":{borderBottom:"7px solid #bbb"},"&:after":{borderBottom:"7px solid #f5f5f5",top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}}),yj={x:0,y:0},zi=ct.define({enables:[Cp,gj]}),Wl=ct.define({combine:r=>r.reduce((e,t)=>e.concat(t),[])}),zl=class r{static create(e){return new r(e)}constructor(e){this.view=e,this.mounted=!1,this.dom=document.createElement("div"),this.dom.classList.add("cm-tooltip-hover"),this.manager=new Vl(e,Wl,(t,s)=>this.createHostedView(t,s),t=>t.dom.remove())}createHostedView(e,t){let s=e.create(this.view);return s.dom.classList.add("cm-tooltip-section"),this.dom.insertBefore(s.dom,t?t.dom.nextSibling:this.dom.firstChild),this.mounted&&s.mount&&s.mount(this.view),s}mount(e){for(let t of this.manager.tooltipViews)t.mount&&t.mount(e);this.mounted=!0}positioned(e){for(let t of this.manager.tooltipViews)t.positioned&&t.positioned(e)}update(e){this.manager.update(e)}destroy(){var e;for(let t of this.manager.tooltipViews)(e=t.destroy)===null||e===void 0||e.call(t)}passProp(e){let t;for(let s of this.manager.tooltipViews){let n=s[e];if(n!==void 0){if(t===void 0)t=n;else if(t!==n)return}}return t}get offset(){return this.passProp("offset")}get getCoords(){return this.passProp("getCoords")}get overlap(){return this.passProp("overlap")}get resize(){return this.passProp("resize")}},bj=zi.compute([Wl],r=>{let e=r.facet(Wl);return e.length===0?null:{pos:Math.min(...e.map(t=>t.pos)),end:Math.max(...e.map(t=>{var s;return(s=t.end)!==null&&s!==void 0?s:t.pos})),create:zl.create,above:e[0].above,arrow:e.some(t=>t.arrow)}}),mp=class{constructor(e,t,s,n,i){this.view=e,this.source=t,this.field=s,this.setHover=n,this.hoverTime=i,this.hoverTimeout=-1,this.restartTimeout=-1,this.pending=null,this.lastMove={x:0,y:0,target:e.dom,time:0},this.checkHover=this.checkHover.bind(this),e.dom.addEventListener("mouseleave",this.mouseleave=this.mouseleave.bind(this)),e.dom.addEventListener("mousemove",this.mousemove=this.mousemove.bind(this))}update(){this.pending&&(this.pending=null,clearTimeout(this.restartTimeout),this.restartTimeout=setTimeout(()=>this.startHover(),20))}get active(){return this.view.state.field(this.field)}checkHover(){if(this.hoverTimeout=-1,this.active.length)return;let e=Date.now()-this.lastMove.time;el.bottom||t.xl.right+e.defaultCharacterWidth)return;let o=e.bidiSpans(e.state.doc.lineAt(n)).find(c=>c.from<=n&&c.to>=n),u=o&&o.dir==zt.RTL?-1:1;i=t.x{this.pending==l&&(this.pending=null,o&&!(Array.isArray(o)&&!o.length)&&e.dispatch({effects:this.setHover.of(Array.isArray(o)?o:[o])}))},o=>yr(e.state,o,"hover tooltip"))}else a&&!(Array.isArray(a)&&!a.length)&&e.dispatch({effects:this.setHover.of(Array.isArray(a)?a:[a])})}get tooltip(){let e=this.view.plugin(Cp),t=e?e.manager.tooltips.findIndex(s=>s.create==zl.create):-1;return t>-1?e.manager.tooltipViews[t]:null}mousemove(e){var t,s;this.lastMove={x:e.clientX,y:e.clientY,target:e.target,time:Date.now()},this.hoverTimeout<0&&(this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime));let{active:n,tooltip:i}=this;if(n.length&&i&&!vj(i.dom,e)||this.pending){let{pos:a}=n[0]||this.pending,l=(s=(t=n[0])===null||t===void 0?void 0:t.end)!==null&&s!==void 0?s:a;(a==l?this.view.posAtCoords(this.lastMove)!=a:!xj(this.view,a,l,e.clientX,e.clientY))&&(this.view.dispatch({effects:this.setHover.of([])}),this.pending=null)}}mouseleave(e){clearTimeout(this.hoverTimeout),this.hoverTimeout=-1;let{active:t}=this;if(t.length){let{tooltip:s}=this;s&&s.dom.contains(e.relatedTarget)?this.watchTooltipLeave(s.dom):this.view.dispatch({effects:this.setHover.of([])})}}watchTooltipLeave(e){let t=s=>{e.removeEventListener("mouseleave",t),this.active.length&&!this.view.dom.contains(s.relatedTarget)&&this.view.dispatch({effects:this.setHover.of([])})};e.addEventListener("mouseleave",t)}destroy(){clearTimeout(this.hoverTimeout),this.view.dom.removeEventListener("mouseleave",this.mouseleave),this.view.dom.removeEventListener("mousemove",this.mousemove)}},Al=4;function vj(r,e){let t=r.getBoundingClientRect();return e.clientX>=t.left-Al&&e.clientX<=t.right+Al&&e.clientY>=t.top-Al&&e.clientY<=t.bottom+Al}function xj(r,e,t,s,n,i){let a=r.scrollDOM.getBoundingClientRect(),l=r.documentTop+r.documentPadding.top+r.contentHeight;if(a.left>s||a.rightn||Math.min(a.bottom,l)=e&&o<=t}function Tw(r,e={}){let t=Ct.define(),s=Yt.define({create(){return[]},update(n,i){if(n.length&&(e.hideOnChange&&(i.docChanged||i.selection)?n=[]:e.hideOn&&(n=n.filter(a=>!e.hideOn(i,a))),i.docChanged)){let a=[];for(let l of n){let o=i.changes.mapPos(l.pos,-1,fr.TrackDel);if(o!=null){let u=Object.assign(Object.create(null),l);u.pos=o,u.end!=null&&(u.end=i.changes.mapPos(u.end)),a.push(u)}}n=a}for(let a of i.effects)a.is(t)&&(n=a.value),a.is(Oj)&&(n=[]);return n},provide:n=>Wl.from(n)});return[s,rr.define(n=>new mp(n,r,s,t,e.hoverTime||300)),bj]}function kp(r,e){let t=r.plugin(Cp);if(!t)return null;let s=t.manager.tooltips.indexOf(e);return s<0?null:t.manager.tooltipViews[s]}var Oj=Ct.define();var yE=ct.define({combine(r){let e,t;for(let s of r)e=e||s.topContainer,t=t||s.bottomContainer;return{topContainer:e,bottomContainer:t}}});function Zi(r,e){let t=r.plugin(Dw),s=t?t.specs.indexOf(e):-1;return s>-1?t.panels[s]:null}var Dw=rr.fromClass(class{constructor(r){this.input=r.state.facet(ri),this.specs=this.input.filter(t=>t),this.panels=this.specs.map(t=>t(r));let e=r.state.facet(yE);this.top=new Qi(r,!0,e.topContainer),this.bottom=new Qi(r,!1,e.bottomContainer),this.top.sync(this.panels.filter(t=>t.top)),this.bottom.sync(this.panels.filter(t=>!t.top));for(let t of this.panels)t.dom.classList.add("cm-panel"),t.mount&&t.mount()}update(r){let e=r.state.facet(yE);this.top.container!=e.topContainer&&(this.top.sync([]),this.top=new Qi(r.view,!0,e.topContainer)),this.bottom.container!=e.bottomContainer&&(this.bottom.sync([]),this.bottom=new Qi(r.view,!1,e.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();let t=r.state.facet(ri);if(t!=this.input){let s=t.filter(o=>o),n=[],i=[],a=[],l=[];for(let o of s){let u=this.specs.indexOf(o),c;u<0?(c=o(r.view),l.push(c)):(c=this.panels[u],c.update&&c.update(r)),n.push(c),(c.top?i:a).push(c)}this.specs=s,this.panels=n,this.top.sync(i),this.bottom.sync(a);for(let o of l)o.dom.classList.add("cm-panel"),o.mount&&o.mount()}else for(let s of this.panels)s.update&&s.update(r)}destroy(){this.top.sync([]),this.bottom.sync([])}},{provide:r=>at.scrollMargins.of(e=>{let t=e.plugin(r);return t&&{top:t.top.scrollMargin(),bottom:t.bottom.scrollMargin()}})}),Qi=class{constructor(e,t,s){this.view=e,this.top=t,this.container=s,this.dom=void 0,this.classes="",this.panels=[],this.syncClasses()}sync(e){for(let t of this.panels)t.destroy&&e.indexOf(t)<0&&t.destroy();this.panels=e,this.syncDOM()}syncDOM(){if(this.panels.length==0){this.dom&&(this.dom.remove(),this.dom=void 0);return}if(!this.dom){this.dom=document.createElement("div"),this.dom.className=this.top?"cm-panels cm-panels-top":"cm-panels cm-panels-bottom",this.dom.style[this.top?"top":"bottom"]="0";let t=this.container||this.view.dom;t.insertBefore(this.dom,this.top?t.firstChild:null)}let e=this.dom.firstChild;for(let t of this.panels)if(t.dom.parentNode==this.dom){for(;e!=t.dom;)e=bE(e);e=e.nextSibling}else this.dom.insertBefore(t.dom,e);for(;e;)e=bE(e)}scrollMargin(){return!this.dom||this.container?0:Math.max(0,this.top?this.dom.getBoundingClientRect().bottom-Math.max(0,this.view.scrollDOM.getBoundingClientRect().top):Math.min(innerHeight,this.view.scrollDOM.getBoundingClientRect().bottom)-this.dom.getBoundingClientRect().top)}syncClasses(){if(!(!this.container||this.classes==this.view.themeClasses)){for(let e of this.classes.split(" "))e&&this.container.classList.remove(e);for(let e of(this.classes=this.view.themeClasses).split(" "))e&&this.container.classList.add(e)}}};function bE(r){let e=r.nextSibling;return r.remove(),e}var ri=ct.define({enables:Dw}),Xr=class extends yn{compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}eq(e){return!1}destroy(e){}};Xr.prototype.elementClass="";Xr.prototype.toDOM=void 0;Xr.prototype.mapMode=fr.TrackBefore;Xr.prototype.startSide=Xr.prototype.endSide=-1;Xr.prototype.point=!0;var Rl=ct.define(),Sj={class:"",renderEmptyElements:!1,elementStyle:"",markers:()=>Mt.empty,lineMarker:()=>null,widgetMarker:()=>null,lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{}},io=ct.define();function Ap(r){return[_w(),io.of(Object.assign(Object.assign({},Sj),r))]}var gp=ct.define({combine:r=>r.some(e=>e)});function _w(r){let e=[Ej];return r&&r.fixed===!1&&e.push(gp.of(!0)),e}var Ej=rr.fromClass(class{constructor(r){this.view=r,this.prevViewport=r.viewport,this.dom=document.createElement("div"),this.dom.className="cm-gutters",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.gutters=r.state.facet(io).map(e=>new Zl(r,e));for(let e of this.gutters)this.dom.appendChild(e.dom);this.fixed=!r.state.facet(gp),this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),r.scrollDOM.insertBefore(this.dom,r.contentDOM)}update(r){if(this.updateGutters(r)){let e=this.prevViewport,t=r.view.viewport,s=Math.min(e.to,t.to)-Math.max(e.from,t.from);this.syncGutters(s<(t.to-t.from)*.8)}r.geometryChanged&&(this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px"),this.view.state.facet(gp)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":""),this.prevViewport=r.view.viewport}syncGutters(r){let e=this.dom.nextSibling;r&&this.dom.remove();let t=Mt.iter(this.view.state.facet(Rl),this.view.viewport.from),s=[],n=this.gutters.map(i=>new bp(i,this.view.viewport,-this.view.documentPadding.top));for(let i of this.view.viewportLineBlocks)if(s.length&&(s=[]),Array.isArray(i.type)){let a=!0;for(let l of i.type)if(l.type==Ir.Text&&a){yp(t,s,l.from);for(let o of n)o.line(this.view,l,s);a=!1}else if(l.widget)for(let o of n)o.widget(this.view,l)}else if(i.type==Ir.Text){yp(t,s,i.from);for(let a of n)a.line(this.view,i,s)}else if(i.widget)for(let a of n)a.widget(this.view,i);for(let i of n)i.finish();r&&this.view.scrollDOM.insertBefore(this.dom,e)}updateGutters(r){let e=r.startState.facet(io),t=r.state.facet(io),s=r.docChanged||r.heightChanged||r.viewportChanged||!Mt.eq(r.startState.facet(Rl),r.state.facet(Rl),r.view.viewport.from,r.view.viewport.to);if(e==t)for(let n of this.gutters)n.update(r)&&(s=!0);else{s=!0;let n=[];for(let i of t){let a=e.indexOf(i);a<0?n.push(new Zl(this.view,i)):(this.gutters[a].update(r),n.push(this.gutters[a]))}for(let i of this.gutters)i.dom.remove(),n.indexOf(i)<0&&i.destroy();for(let i of n)this.dom.appendChild(i.dom);this.gutters=n}return s}destroy(){for(let r of this.gutters)r.destroy();this.dom.remove()}},{provide:r=>at.scrollMargins.of(e=>{let t=e.plugin(r);return!t||t.gutters.length==0||!t.fixed?null:e.textDirection==zt.LTR?{left:t.dom.offsetWidth*e.scaleX}:{right:t.dom.offsetWidth*e.scaleX}})});function vE(r){return Array.isArray(r)?r:[r]}function yp(r,e,t){for(;r.value&&r.from<=t;)r.from==t&&e.push(r.value),r.next()}var bp=class{constructor(e,t,s){this.gutter=e,this.height=s,this.i=0,this.cursor=Mt.iter(e.markers,t.from)}addElement(e,t,s){let{gutter:n}=this,i=(t.top-this.height)/e.scaleY,a=t.height/e.scaleY;if(this.i==n.elements.length){let l=new Gl(e,a,i,s);n.elements.push(l),n.dom.appendChild(l.dom)}else n.elements[this.i].update(e,a,i,s);this.height=t.bottom,this.i++}line(e,t,s){let n=[];yp(this.cursor,n,t.from),s.length&&(n=n.concat(s));let i=this.gutter.config.lineMarker(e,t,n);i&&n.unshift(i);let a=this.gutter;n.length==0&&!a.config.renderEmptyElements||this.addElement(e,t,n)}widget(e,t){let s=this.gutter.config.widgetMarker(e,t.widget,t);s&&this.addElement(e,t,[s])}finish(){let e=this.gutter;for(;e.elements.length>this.i;){let t=e.elements.pop();e.dom.removeChild(t.dom),t.destroy()}}},Zl=class{constructor(e,t){this.view=e,this.config=t,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");for(let s in t.domEventHandlers)this.dom.addEventListener(s,n=>{let i=n.target,a;if(i!=this.dom&&this.dom.contains(i)){for(;i.parentNode!=this.dom;)i=i.parentNode;let o=i.getBoundingClientRect();a=(o.top+o.bottom)/2}else a=n.clientY;let l=e.lineBlockAtHeight(a-e.documentTop);t.domEventHandlers[s](e,l,n)&&n.preventDefault()});this.markers=vE(t.markers(e)),t.initialSpacer&&(this.spacer=new Gl(e,0,0,[t.initialSpacer(e)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}update(e){let t=this.markers;if(this.markers=vE(this.config.markers(e.view)),this.spacer&&this.config.updateSpacer){let n=this.config.updateSpacer(this.spacer.markers[0],e);n!=this.spacer.markers[0]&&this.spacer.update(e.view,0,0,[n])}let s=e.view.viewport;return!Mt.eq(this.markers,t,s.from,s.to)||(this.config.lineMarkerChange?this.config.lineMarkerChange(e):!1)}destroy(){for(let e of this.elements)e.destroy()}},Gl=class{constructor(e,t,s,n){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(e,t,s,n)}update(e,t,s,n){this.height!=t&&(this.height=t,this.dom.style.height=t+"px"),this.above!=s&&(this.dom.style.marginTop=(this.above=s)?s+"px":""),wj(this.markers,n)||this.setMarkers(e,n)}setMarkers(e,t){let s="cm-gutterElement",n=this.dom.firstChild;for(let i=0,a=0;;){let l=a,o=ii(l,o,u)||a(l,o,u):a}return s}})}}),ao=class extends Xr{constructor(e){super(),this.number=e}eq(e){return this.number==e.number}toDOM(){return document.createTextNode(this.number)}};function _f(r,e){return r.state.facet(Ui).formatNumber(e,r.state)}var kj=io.compute([Ui],r=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers(e){return e.state.facet(Cj)},lineMarker(e,t,s){return s.some(n=>n.toDOM)?null:new ao(_f(e,e.state.doc.lineAt(t.from).number))},widgetMarker:()=>null,lineMarkerChange:e=>e.startState.facet(Ui)!=e.state.facet(Ui),initialSpacer(e){return new ao(_f(e,xE(e.state.doc.lines)))},updateSpacer(e,t){let s=_f(t.view,xE(t.view.state.doc.lines));return s==e.number?e:new ao(s)},domEventHandlers:r.facet(Ui).domEventHandlers}));function Iw(r={}){return[Ui.of(r),_w(),kj]}function xE(r){let e=9;for(;e{let e=[],t=-1;for(let s of r.selection.ranges){let n=r.doc.lineAt(s.head).from;n>t&&(t=n,e.push(Aj.range(n)))}return Mt.of(e)});function Rw(){return Pj}var Tj=0,go=class{constructor(e,t){this.from=e,this.to=t}},kt=class{constructor(e={}){this.id=Tj++,this.perNode=!!e.perNode,this.deserialize=e.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")})}add(e){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return typeof e!="function"&&(e=Ar.match(e)),t=>{let s=e(t);return s===void 0?null:[this,s]}}};kt.closedBy=new kt({deserialize:r=>r.split(" ")});kt.openedBy=new kt({deserialize:r=>r.split(" ")});kt.group=new kt({deserialize:r=>r.split(" ")});kt.isolate=new kt({deserialize:r=>{if(r&&r!="rtl"&&r!="ltr"&&r!="auto")throw new RangeError("Invalid value for isolate: "+r);return r||"auto"}});kt.contextHash=new kt({perNode:!0});kt.lookAhead=new kt({perNode:!0});kt.mounted=new kt({perNode:!0});var Gi=class{constructor(e,t,s){this.tree=e,this.overlay=t,this.parser=s}static get(e){return e&&e.props&&e.props[kt.mounted.id]}},Dj=Object.create(null),Ar=class r{constructor(e,t,s,n=0){this.name=e,this.props=t,this.id=s,this.flags=n}static define(e){let t=e.props&&e.props.length?Object.create(null):Dj,s=(e.top?1:0)|(e.skipped?2:0)|(e.error?4:0)|(e.name==null?8:0),n=new r(e.name||"",t,e.id,s);if(e.props){for(let i of e.props)if(Array.isArray(i)||(i=i(n)),i){if(i[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");t[i[0].id]=i[1]}}return n}prop(e){return this.props[e.id]}get isTop(){return(this.flags&1)>0}get isSkipped(){return(this.flags&2)>0}get isError(){return(this.flags&4)>0}get isAnonymous(){return(this.flags&8)>0}is(e){if(typeof e=="string"){if(this.name==e)return!0;let t=this.prop(kt.group);return t?t.indexOf(e)>-1:!1}return this.id==e}static match(e){let t=Object.create(null);for(let s in e)for(let n of s.split(" "))t[n]=e[s];return s=>{for(let n=s.prop(kt.group),i=-1;i<(n?n.length:0);i++){let a=t[i<0?s.name:n[i]];if(a)return a}}}};Ar.none=new Ar("",Object.create(null),0,8);var yo=class r{constructor(e){this.types=e;for(let t=0;t0;for(let o=this.cursor(a|nr.IncludeAnonymous);;){let u=!1;if(o.from<=i&&o.to>=n&&(!l&&o.type.isAnonymous||t(o)!==!1)){if(o.firstChild())continue;u=!0}for(;u&&s&&(l||!o.type.isAnonymous)&&s(o),!o.nextSibling();){if(!o.parent())return;u=!0}}}prop(e){return e.perNode?this.props?this.props[e.id]:void 0:this.type.prop(e)}get propValues(){let e=[];if(this.props)for(let t in this.props)e.push([+t,this.props[t]]);return e}balance(e={}){return this.children.length<=8?this:Fp(Ar.none,this.children,this.positions,0,this.children.length,0,this.length,(t,s,n)=>new r(this.type,t,s,n,this.propValues),e.makeTree||((t,s,n)=>new r(Ar.none,t,s,n)))}static build(e){return Ij(e)}};or.empty=new or(Ar.none,[],[],0);var Pp=class r{constructor(e,t){this.buffer=e,this.index=t}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new r(this.buffer,this.index)}},Ps=class r{constructor(e,t,s){this.buffer=e,this.length=t,this.set=s}get type(){return Ar.none}toString(){let e=[];for(let t=0;t0));o=a[o+3]);return l}slice(e,t,s){let n=this.buffer,i=new Uint16Array(t-e),a=0;for(let l=e,o=0;l=e&&te;case 1:return t<=e&&s>e;case 2:return s>e;case 4:return!0}}function bo(r,e,t,s){for(var n;r.from==r.to||(t<1?r.from>=e:r.from>e)||(t>-1?r.to<=e:r.to0?l.length:-1;e!=u;e+=t){let c=l[e],p=o[e]+a.from;if(Lw(n,s,p,p+c.length)){if(c instanceof Ps){if(i&nr.ExcludeBuffers)continue;let h=c.findChild(0,c.buffer.length,t,s-p,n);if(h>-1)return new ni(new Dp(a,c,e,p),null,h)}else if(i&nr.IncludeAnonymous||!c.type.isAnonymous||Rp(c)){let h;if(!(i&nr.IgnoreMounts)&&(h=Gi.get(c))&&!h.overlay)return new r(h.tree,p,e,a);let f=new r(c,p,e,a);return i&nr.IncludeAnonymous||!f.type.isAnonymous?f:f.nextChild(t<0?c.children.length-1:0,t,s,n)}}}if(i&nr.IncludeAnonymous||!a.type.isAnonymous||(a.index>=0?e=a.index+t:e=t<0?-1:a._parent._tree.children.length,a=a._parent,!a))return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(e){return this.nextChild(0,1,e,2)}childBefore(e){return this.nextChild(this._tree.children.length-1,-1,e,-2)}enter(e,t,s=0){let n;if(!(s&nr.IgnoreOverlays)&&(n=Gi.get(this._tree))&&n.overlay){let i=e-this.from;for(let{from:a,to:l}of n.overlay)if((t>0?a<=i:a=i:l>i))return new r(n.tree,n.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,e,t,s)}nextSignificantParent(){let e=this;for(;e.type.isAnonymous&&e._parent;)e=e._parent;return e}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}};function Bw(r,e,t,s){let n=r.cursor(),i=[];if(!n.firstChild())return i;if(t!=null){for(let a=!1;!a;)if(a=n.type.is(t),!n.nextSibling())return i}for(;;){if(s!=null&&n.type.is(s))return i;if(n.type.is(e)&&i.push(n.node),!n.nextSibling())return s==null?i:[]}}function Tp(r,e,t=e.length-1){for(let s=r.parent;t>=0;s=s.parent){if(!s)return!1;if(!s.type.isAnonymous){if(e[t]&&e[t]!=s.name)return!1;t--}}return!0}var Dp=class{constructor(e,t,s,n){this.parent=e,this.buffer=t,this.index=s,this.start=n}},ni=class r extends Jl{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(e,t,s){super(),this.context=e,this._parent=t,this.index=s,this.type=e.buffer.set.types[e.buffer.buffer[s]]}child(e,t,s){let{buffer:n}=this.context,i=n.findChild(this.index+4,n.buffer[this.index+3],e,t-this.context.start,s);return i<0?null:new r(this.context,this,i)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(e){return this.child(1,e,2)}childBefore(e){return this.child(-1,e,-2)}enter(e,t,s=0){if(s&nr.ExcludeBuffers)return null;let{buffer:n}=this.context,i=n.findChild(this.index+4,n.buffer[this.index+3],t>0?1:-1,e-this.context.start,t);return i<0?null:new r(this.context,this,i)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(e){return this._parent?null:this.context.parent.nextChild(this.context.index+e,e,0,4)}get nextSibling(){let{buffer:e}=this.context,t=e.buffer[this.index+3];return t<(this._parent?e.buffer[this._parent.index+3]:e.buffer.length)?new r(this.context,this._parent,t):this.externalSibling(1)}get prevSibling(){let{buffer:e}=this.context,t=this._parent?this._parent.index+4:0;return this.index==t?this.externalSibling(-1):new r(this.context,this._parent,e.findChild(t,this.index,-1,0,4))}get tree(){return null}toTree(){let e=[],t=[],{buffer:s}=this.context,n=this.index+4,i=s.buffer[this.index+3];if(i>n){let a=s.buffer[this.index+1];e.push(s.slice(n,i,a)),t.push(0)}return new or(this.type,e,t,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}};function $w(r){if(!r.length)return null;let e=0,t=r[0];for(let i=1;it.from||a.to=e){let l=new ln(a.tree,a.overlay[0].from+i.from,-1,i);(n||(n=[s])).push(bo(l,e,t,!1))}}return n?$w(n):s}var vo=class{get name(){return this.type.name}constructor(e,t=0){if(this.mode=t,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,e instanceof ln)this.yieldNode(e);else{this._tree=e.context.parent,this.buffer=e.context;for(let s=e._parent;s;s=s._parent)this.stack.unshift(s.index);this.bufferNode=e,this.yieldBuf(e.index)}}yieldNode(e){return e?(this._tree=e,this.type=e.type,this.from=e.from,this.to=e.to,!0):!1}yieldBuf(e,t){this.index=e;let{start:s,buffer:n}=this.buffer;return this.type=t||n.set.types[n.buffer[e]],this.from=s+n.buffer[e+1],this.to=s+n.buffer[e+2],!0}yield(e){return e?e instanceof ln?(this.buffer=null,this.yieldNode(e)):(this.buffer=e.context,this.yieldBuf(e.index,e.type)):!1}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(e,t,s){if(!this.buffer)return this.yield(this._tree.nextChild(e<0?this._tree._tree.children.length-1:0,e,t,s,this.mode));let{buffer:n}=this.buffer,i=n.findChild(this.index+4,n.buffer[this.index+3],e,t-this.buffer.start,s);return i<0?!1:(this.stack.push(this.index),this.yieldBuf(i))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(e){return this.enterChild(1,e,2)}childBefore(e){return this.enterChild(-1,e,-2)}enter(e,t,s=this.mode){return this.buffer?s&nr.ExcludeBuffers?!1:this.enterChild(1,e,t):this.yield(this._tree.enter(e,t,s))}parent(){if(!this.buffer)return this.yieldNode(this.mode&nr.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let e=this.mode&nr.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(e)}sibling(e){if(!this.buffer)return this._tree._parent?this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+e,e,0,4,this.mode)):!1;let{buffer:t}=this.buffer,s=this.stack.length-1;if(e<0){let n=s<0?0:this.stack[s]+4;if(this.index!=n)return this.yieldBuf(t.findChild(n,this.index,-1,0,4))}else{let n=t.buffer[this.index+3];if(n<(s<0?t.buffer.length:t.buffer[this.stack[s]+3]))return this.yieldBuf(n)}return s<0?this.yield(this.buffer.parent.nextChild(this.buffer.index+e,e,0,4,this.mode)):!1}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(e){let t,s,{buffer:n}=this;if(n){if(e>0){if(this.index-1)for(let i=t+e,a=e<0?-1:s._tree.children.length;i!=a;i+=e){let l=s._tree.children[i];if(this.mode&nr.IncludeAnonymous||l instanceof Ps||!l.type.isAnonymous||Rp(l))return!1}return!0}move(e,t){if(t&&this.enterChild(e,0,4))return!0;for(;;){if(this.sibling(e))return!0;if(this.atLastNode(e)||!this.parent())return!1}}next(e=!0){return this.move(1,e)}prev(e=!0){return this.move(-1,e)}moveTo(e,t=0){for(;(this.from==this.to||(t<1?this.from>=e:this.from>e)||(t>-1?this.to<=e:this.to=0;){for(let a=e;a;a=a._parent)if(a.index==n){if(n==this.index)return a;t=a,s=i+1;break e}n=this.stack[--i]}for(let n=s;n=0;i--){if(i<0)return Tp(this.node,e,n);let a=s[t.buffer[this.stack[i]]];if(!a.isAnonymous){if(e[n]&&e[n]!=a.name)return!1;n--}}return!0}};function Rp(r){return r.children.some(e=>e instanceof Ps||!e.type.isAnonymous||Rp(e))}function Ij(r){var e;let{buffer:t,nodeSet:s,maxBufferLength:n=1024,reused:i=[],minRepeatType:a=s.types.length}=r,l=Array.isArray(t)?new Pp(t,t.length):t,o=s.types,u=0,c=0;function p(w,O,C,E,k,A){let{id:D,start:_,end:B,size:T}=l,R=c;for(;T<0;)if(l.next(),T==-1){let F=i[D];C.push(F),E.push(_-w);return}else if(T==-3){u=D;return}else if(T==-4){c=D;return}else throw new RangeError(`Unrecognized record size: ${T}`);let j=o[D],Q,I,N=_-w;if(B-_<=n&&(I=g(l.pos-O,k))){let F=new Uint16Array(I.size-I.skip),U=l.pos-I.size,V=F.length;for(;l.pos>U;)V=y(I.start,F,V);Q=new Ps(F,B-I.start,s),N=I.start-w}else{let F=l.pos-T;l.next();let U=[],V=[],ae=D>=a?D:-1,se=0,xe=B;for(;l.pos>F;)ae>=0&&l.id==ae&&l.size>=0?(l.end<=xe-n&&(d(U,V,_,se,l.end,xe,ae,R),se=U.length,xe=l.end),l.next()):A>2500?h(_,F,U,V):p(_,F,U,V,ae,A+1);if(ae>=0&&se>0&&se-1&&se>0){let H=f(j);Q=Fp(j,U,V,0,U.length,0,B-_,H,H)}else Q=m(j,U,V,B-_,R-B)}C.push(Q),E.push(N)}function h(w,O,C,E){let k=[],A=0,D=-1;for(;l.pos>O;){let{id:_,start:B,end:T,size:R}=l;if(R>4)l.next();else{if(D>-1&&B=0;T-=3)_[R++]=k[T],_[R++]=k[T+1]-B,_[R++]=k[T+2]-B,_[R++]=R;C.push(new Ps(_,k[2]-B,s)),E.push(B-w)}}function f(w){return(O,C,E)=>{let k=0,A=O.length-1,D,_;if(A>=0&&(D=O[A])instanceof or){if(!A&&D.type==w&&D.length==E)return D;(_=D.prop(kt.lookAhead))&&(k=C[A]+D.length+_)}return m(w,O,C,E,k)}}function d(w,O,C,E,k,A,D,_){let B=[],T=[];for(;w.length>E;)B.push(w.pop()),T.push(O.pop()+C-k);w.push(m(s.types[D],B,T,A-k,_-A)),O.push(k-C)}function m(w,O,C,E,k=0,A){if(u){let D=[kt.contextHash,u];A=A?[D].concat(A):[D]}if(k>25){let D=[kt.lookAhead,k];A=A?[D].concat(A):[D]}return new or(w,O,C,E,A)}function g(w,O){let C=l.fork(),E=0,k=0,A=0,D=C.end-n,_={size:0,start:0,skip:0};e:for(let B=C.pos-w;C.pos>B;){let T=C.size;if(C.id==O&&T>=0){_.size=E,_.start=k,_.skip=A,A+=4,E+=4,C.next();continue}let R=C.pos-T;if(T<0||R=a?4:0,Q=C.start;for(C.next();C.pos>R;){if(C.size<0)if(C.size==-3)j+=4;else break e;else C.id>=a&&(j+=4);C.next()}k=Q,E+=T,A+=j}return(O<0||E==w)&&(_.size=E,_.start=k,_.skip=A),_.size>4?_:void 0}function y(w,O,C){let{id:E,start:k,end:A,size:D}=l;if(l.next(),D>=0&&E4){let B=l.pos-(D-4);for(;l.pos>B;)C=y(w,O,C)}O[--C]=_,O[--C]=A-w,O[--C]=k-w,O[--C]=E}else D==-3?u=E:D==-4&&(c=E);return C}let v=[],x=[];for(;l.pos>0;)p(r.start||0,r.bufferStart||0,v,x,-1,0);let S=(e=r.length)!==null&&e!==void 0?e:v.length?x[0]+v[0].length:0;return new or(o[r.topID],v.reverse(),x.reverse(),S)}var Nw=new WeakMap;function Kl(r,e){if(!r.isAnonymous||e instanceof Ps||e.type!=r)return 1;let t=Nw.get(e);if(t==null){t=1;for(let s of e.children){if(s.type!=r||!(s instanceof or)){t=1;break}t+=Kl(r,s)}Nw.set(e,t)}return t}function Fp(r,e,t,s,n,i,a,l,o){let u=0;for(let d=s;d=c)break;O+=C}if(x==S+1){if(O>c){let C=d[S];f(C.children,C.positions,0,C.children.length,m[S]+v);continue}p.push(d[S])}else{let C=m[x-1]+d[x-1].length-w;p.push(Fp(r,d,m,S,x,w,C,null,o))}h.push(w+v-i)}}return f(e,t,s,n,0),(l||o)(p,h,a)}var eu=class{constructor(){this.map=new WeakMap}setBuffer(e,t,s){let n=this.map.get(e);n||this.map.set(e,n=new Map),n.set(t,s)}getBuffer(e,t){let s=this.map.get(e);return s&&s.get(t)}set(e,t){e instanceof ni?this.setBuffer(e.context.buffer,e.index,t):e instanceof ln&&this.map.set(e.tree,t)}get(e){return e instanceof ni?this.getBuffer(e.context.buffer,e.index):e instanceof ln?this.map.get(e.tree):void 0}cursorSet(e,t){e.buffer?this.setBuffer(e.buffer.buffer,e.index,t):this.map.set(e.tree,t)}cursorGet(e){return e.buffer?this.getBuffer(e.buffer.buffer,e.index):this.map.get(e.tree)}},si=class r{constructor(e,t,s,n,i=!1,a=!1){this.from=e,this.to=t,this.tree=s,this.offset=n,this.open=(i?1:0)|(a?2:0)}get openStart(){return(this.open&1)>0}get openEnd(){return(this.open&2)>0}static addTree(e,t=[],s=!1){let n=[new r(0,e.length,e,0,!1,s)];for(let i of t)i.to>e.length&&n.push(i);return n}static applyChanges(e,t,s=128){if(!t.length)return e;let n=[],i=1,a=e.length?e[0]:null;for(let l=0,o=0,u=0;;l++){let c=l=s)for(;a&&a.from=h.from||p<=h.to||u){let f=Math.max(h.from,o)-u,d=Math.min(h.to,p)-u;h=f>=d?null:new r(f,d,h.tree,h.offset+u,l>0,!!c)}if(h&&n.push(h),a.to>p)break;a=inew go(n.from,n.to)):[new go(0,0)]:[new go(0,e.length)],this.createParse(e,t||[],s)}parse(e,t,s){let n=this.startParse(e,t,s);for(;;){let i=n.advance();if(i)return i}}},Ip=class{constructor(e){this.string=e}get length(){return this.string.length}chunk(e){return this.string.slice(e)}get lineChunks(){return!1}read(e,t){return this.string.slice(e,t)}};var IX=new kt({perNode:!0});var Rj=0,qn=class r{constructor(e,t,s){this.set=e,this.base=t,this.modified=s,this.id=Rj++}static define(e){if(e?.base)throw new Error("Can not derive from a modified tag");let t=new r([],null,[]);if(t.set.push(t),e)for(let s of e.set)t.set.push(s);return t}static defineModifier(){let e=new su;return t=>t.modified.indexOf(e)>-1?t:su.get(t.base||t,t.modified.concat(e).sort((s,n)=>s.id-n.id))}},Fj=0,su=class r{constructor(){this.instances=[],this.id=Fj++}static get(e,t){if(!t.length)return e;let s=t[0].instances.find(l=>l.base==e&&Bj(t,l.modified));if(s)return s;let n=[],i=new qn(n,e,t);for(let l of t)l.instances.push(i);let a=Nj(t);for(let l of e.set)if(!l.modified.length)for(let o of a)n.push(r.get(l,o));return i}};function Bj(r,e){return r.length==e.length&&r.every((t,s)=>t==e[s])}function Nj(r){let e=[[]];for(let t=0;ts.length-t.length)}function iu(r){let e=Object.create(null);for(let t in r){let s=r[t];Array.isArray(s)||(s=[s]);for(let n of t.split(" "))if(n){let i=[],a=2,l=n;for(let p=0;;){if(l=="..."&&p>0&&p+3==n.length){a=1;break}let h=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(l);if(!h)throw new RangeError("Invalid path: "+n);if(i.push(h[0]=="*"?"":h[0][0]=='"'?JSON.parse(h[0]):h[0]),p+=h[0].length,p==n.length)break;let f=n[p++];if(p==n.length&&f=="!"){a=0;break}if(f!="/")throw new RangeError("Invalid path: "+n);l=n.slice(p)}let o=i.length-1,u=i[o];if(!u)throw new RangeError("Invalid path: "+n);let c=new Yi(s,a,o>0?i.slice(0,o):null);e[u]=c.sort(e[u])}}return qw.add(e)}var qw=new kt,Yi=class{constructor(e,t,s,n){this.tags=e,this.mode=t,this.context=s,this.next=n}get opaque(){return this.mode==0}get inherit(){return this.mode==1}sort(e){return!e||e.depth{let a=n;for(let l of i)for(let o of l.set){let u=t[o.id];if(u){a=a?a+" "+u:u;break}}return a},scope:s}}function Lj(r,e){let t=null;for(let s of r){let n=s.style(e);n&&(t=t?t+" "+n:n)}return t}function Qw(r,e,t,s=0,n=r.length){let i=new Np(s,Array.isArray(e)?e:[e],t);i.highlightRange(r.cursor(),s,n,"",i.highlighters),i.flush(n)}var Np=class{constructor(e,t,s){this.at=e,this.highlighters=t,this.span=s,this.class=""}startSpan(e,t){t!=this.class&&(this.flush(e),e>this.at&&(this.at=e),this.class=t)}flush(e){e>this.at&&this.class&&this.span(this.at,e,this.class)}highlightRange(e,t,s,n,i){let{type:a,from:l,to:o}=e;if(l>=s||o<=t)return;a.isTop&&(i=this.highlighters.filter(f=>!f.scope||f.scope(a)));let u=n,c=$j(e)||Yi.empty,p=Lj(i,c.tags);if(p&&(u&&(u+=" "),u+=p,c.mode==1&&(n+=(n?" ":"")+p)),this.startSpan(Math.max(t,l),u),c.opaque)return;let h=e.tree&&e.tree.prop(kt.mounted);if(h&&h.overlay){let f=e.node.enter(h.overlay[0].from+l,1),d=this.highlighters.filter(g=>!g.scope||g.scope(h.tree.type)),m=e.firstChild();for(let g=0,y=l;;g++){let v=g=x||!e.nextSibling())););if(!v||x>s)break;y=v.to+l,y>t&&(this.highlightRange(f.cursor(),Math.max(t,v.from+l),Math.min(s,y),"",d),this.startSpan(Math.min(s,y),u))}m&&e.parent()}else if(e.firstChild()){h&&(n="");do if(!(e.to<=t)){if(e.from>=s)break;this.highlightRange(e,t,s,n,i),this.startSpan(Math.min(s,e.to),u)}while(e.nextSibling());e.parent()}}};function $j(r){let e=r.type.prop(qw);for(;e&&e.context&&!r.matchContext(e.context);)e=e.next;return e||null}var lt=qn.define,tu=lt(),Ts=lt(),Mw=lt(Ts),jw=lt(Ts),Ds=lt(),ru=lt(Ds),Bp=lt(Ds),jn=lt(),ii=lt(jn),$n=lt(),Mn=lt(),Lp=lt(),xo=lt(Lp),nu=lt(),ke={comment:tu,lineComment:lt(tu),blockComment:lt(tu),docComment:lt(tu),name:Ts,variableName:lt(Ts),typeName:Mw,tagName:lt(Mw),propertyName:jw,attributeName:lt(jw),className:lt(Ts),labelName:lt(Ts),namespace:lt(Ts),macroName:lt(Ts),literal:Ds,string:ru,docString:lt(ru),character:lt(ru),attributeValue:lt(ru),number:Bp,integer:lt(Bp),float:lt(Bp),bool:lt(Ds),regexp:lt(Ds),escape:lt(Ds),color:lt(Ds),url:lt(Ds),keyword:$n,self:lt($n),null:lt($n),atom:lt($n),unit:lt($n),modifier:lt($n),operatorKeyword:lt($n),controlKeyword:lt($n),definitionKeyword:lt($n),moduleKeyword:lt($n),operator:Mn,derefOperator:lt(Mn),arithmeticOperator:lt(Mn),logicOperator:lt(Mn),bitwiseOperator:lt(Mn),compareOperator:lt(Mn),updateOperator:lt(Mn),definitionOperator:lt(Mn),typeOperator:lt(Mn),controlOperator:lt(Mn),punctuation:Lp,separator:lt(Lp),bracket:xo,angleBracket:lt(xo),squareBracket:lt(xo),paren:lt(xo),brace:lt(xo),content:jn,heading:ii,heading1:lt(ii),heading2:lt(ii),heading3:lt(ii),heading4:lt(ii),heading5:lt(ii),heading6:lt(ii),contentSeparator:lt(jn),list:lt(jn),quote:lt(jn),emphasis:lt(jn),strong:lt(jn),link:lt(jn),monospace:lt(jn),strikethrough:lt(jn),inserted:lt(),deleted:lt(),changed:lt(),invalid:lt(),meta:nu,documentMeta:lt(nu),annotation:lt(nu),processingInstruction:lt(nu),definition:qn.defineModifier(),constant:qn.defineModifier(),function:qn.defineModifier(),standard:qn.defineModifier(),local:qn.defineModifier(),special:qn.defineModifier()},BX=$p([{tag:ke.link,class:"tok-link"},{tag:ke.heading,class:"tok-heading"},{tag:ke.emphasis,class:"tok-emphasis"},{tag:ke.strong,class:"tok-strong"},{tag:ke.keyword,class:"tok-keyword"},{tag:ke.atom,class:"tok-atom"},{tag:ke.bool,class:"tok-bool"},{tag:ke.url,class:"tok-url"},{tag:ke.labelName,class:"tok-labelName"},{tag:ke.inserted,class:"tok-inserted"},{tag:ke.deleted,class:"tok-deleted"},{tag:ke.literal,class:"tok-literal"},{tag:ke.string,class:"tok-string"},{tag:ke.number,class:"tok-number"},{tag:[ke.regexp,ke.escape,ke.special(ke.string)],class:"tok-string2"},{tag:ke.variableName,class:"tok-variableName"},{tag:ke.local(ke.variableName),class:"tok-variableName tok-local"},{tag:ke.definition(ke.variableName),class:"tok-variableName tok-definition"},{tag:ke.special(ke.variableName),class:"tok-variableName2"},{tag:ke.definition(ke.propertyName),class:"tok-propertyName tok-definition"},{tag:ke.typeName,class:"tok-typeName"},{tag:ke.namespace,class:"tok-namespace"},{tag:ke.className,class:"tok-className"},{tag:ke.macroName,class:"tok-macroName"},{tag:ke.propertyName,class:"tok-propertyName"},{tag:ke.operator,class:"tok-operator"},{tag:ke.comment,class:"tok-comment"},{tag:ke.meta,class:"tok-meta"},{tag:ke.invalid,class:"tok-invalid"},{tag:ke.punctuation,class:"tok-punctuation"}]);var Mp,Hi=new kt;function Yp(r){return ct.define({combine:r?e=>e.concat(r):void 0})}var lu=new kt,Yr=class{constructor(e,t,s=[],n=""){this.data=e,this.name=n,Ut.prototype.hasOwnProperty("tree")||Object.defineProperty(Ut.prototype,"tree",{get(){return pr(this)}}),this.parser=t,this.extension=[Ki.of(this),Ut.languageData.of((i,a,l)=>{let o=Uw(i,a,l),u=o.type.prop(Hi);if(!u)return[];let c=i.facet(u),p=o.type.prop(lu);if(p){let h=o.resolve(a-o.from,l);for(let f of p)if(f.test(h,i)){let d=i.facet(f.facet);return f.type=="replace"?d:d.concat(c)}}return c})].concat(s)}isActiveAt(e,t,s=-1){return Uw(e,t,s).type.prop(Hi)==this.data}findRegions(e){let t=e.facet(Ki);if(t?.data==this.data)return[{from:0,to:e.doc.length}];if(!t||!t.allowsNesting)return[];let s=[],n=(i,a)=>{if(i.prop(Hi)==this.data){s.push({from:a,to:a+i.length});return}let l=i.prop(kt.mounted);if(l){if(l.tree.prop(Hi)==this.data){if(l.overlay)for(let o of l.overlay)s.push({from:o.from+a,to:o.to+a});else s.push({from:a,to:a+i.length});return}else if(l.overlay){let o=s.length;if(n(l.tree,l.overlay[0].from+a),s.length>o)return}}for(let o=0;os.isTop?t:void 0)]}),e.name)}configure(e,t){return new r(this.data,this.parser.configure(e),t||this.name)}get allowsNesting(){return this.parser.hasWrappers()}};function pr(r){let e=r.field(Yr.state,!1);return e?e.tree:or.empty}var Up=class{constructor(e){this.doc=e,this.cursorPos=0,this.string="",this.cursor=e.iter()}get length(){return this.doc.length}syncTo(e){return this.string=this.cursor.next(e-this.cursorPos).value,this.cursorPos=e+this.string.length,this.cursorPos-this.string.length}chunk(e){return this.syncTo(e),this.string}get lineChunks(){return!0}read(e,t){let s=this.cursorPos-this.string.length;return e=this.cursorPos?this.doc.sliceString(e,t):this.string.slice(e-s,t-s)}},Oo=null,Vp=class r{constructor(e,t,s=[],n,i,a,l,o){this.parser=e,this.state=t,this.fragments=s,this.tree=n,this.treeLen=i,this.viewport=a,this.skipped=l,this.scheduleOn=o,this.parse=null,this.tempSkipped=[]}static create(e,t,s){return new r(e,t,[],or.empty,0,s,[],null)}startParse(){return this.parser.startParse(new Up(this.state.doc),this.fragments)}work(e,t){return t!=null&&t>=this.state.doc.length&&(t=void 0),this.tree!=or.empty&&this.isDone(t??this.state.doc.length)?(this.takeTree(),!0):this.withContext(()=>{var s;if(typeof e=="number"){let n=Date.now()+e;e=()=>Date.now()>n}for(this.parse||(this.parse=this.startParse()),t!=null&&(this.parse.stoppedAt==null||this.parse.stoppedAt>t)&&t=this.treeLen&&((this.parse.stoppedAt==null||this.parse.stoppedAt>e)&&this.parse.stopAt(e),this.withContext(()=>{for(;!(t=this.parse.advance()););}),this.treeLen=e,this.tree=t,this.fragments=this.withoutTempSkipped(si.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(e){let t=Oo;Oo=this;try{return e()}finally{Oo=t}}withoutTempSkipped(e){for(let t;t=this.tempSkipped.pop();)e=Vw(e,t.from,t.to);return e}changes(e,t){let{fragments:s,tree:n,treeLen:i,viewport:a,skipped:l}=this;if(this.takeTree(),!e.empty){let o=[];if(e.iterChangedRanges((u,c,p,h)=>o.push({fromA:u,toA:c,fromB:p,toB:h})),s=si.applyChanges(s,o),n=or.empty,i=0,a={from:e.mapPos(a.from,-1),to:e.mapPos(a.to,1)},this.skipped.length){l=[];for(let u of this.skipped){let c=e.mapPos(u.from,1),p=e.mapPos(u.to,-1);ce.from&&(this.fragments=Vw(this.fragments,n,i),this.skipped.splice(s--,1))}return this.skipped.length>=t?!1:(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(e,t){this.skipped.push({from:e,to:t})}static getSkippingParser(e){return new class extends Xi{createParse(t,s,n){let i=n[0].from,a=n[n.length-1].to;return{parsedPos:i,advance(){let o=Oo;if(o){for(let u of n)o.tempSkipped.push(u);e&&(o.scheduleOn=o.scheduleOn?Promise.all([o.scheduleOn,e]):e)}return this.parsedPos=a,new or(Ar.none,[],[],a-i)},stoppedAt:null,stopAt(){}}}}}isDone(e){e=Math.min(e,this.state.doc.length);let t=this.fragments;return this.treeLen>=e&&t.length&&t[0].from==0&&t[0].to>=e}static get(){return Oo}};function Vw(r,e,t){return si.applyChanges(r,[{fromA:e,toA:t,fromB:e,toB:t}])}var So=class r{constructor(e){this.context=e,this.tree=e.tree}apply(e){if(!e.docChanged&&this.tree==this.context.tree)return this;let t=this.context.changes(e.changes,e.state),s=this.context.treeLen==e.startState.doc.length?void 0:Math.max(e.changes.mapPos(this.context.treeLen),t.viewport.to);return t.work(20,s)||t.takeTree(),new r(t)}static init(e){let t=Math.min(3e3,e.doc.length),s=Vp.create(e.facet(Ki).parser,e,{from:0,to:t});return s.work(20,t)||s.takeTree(),new r(s)}};Yr.state=Yt.define({create:So.init,update(r,e){for(let t of e.effects)if(t.is(Yr.setState))return t.value;return e.startState.facet(Ki)!=e.state.facet(Ki)?So.init(e.state):r.apply(e)}});var Gw=r=>{let e=setTimeout(()=>r(),500);return()=>clearTimeout(e)};typeof requestIdleCallback<"u"&&(Gw=r=>{let e=-1,t=setTimeout(()=>{e=requestIdleCallback(r,{timeout:400})},100);return()=>e<0?clearTimeout(t):cancelIdleCallback(e)});var jp=typeof navigator<"u"&&(!((Mp=navigator.scheduling)===null||Mp===void 0)&&Mp.isInputPending)?()=>navigator.scheduling.isInputPending():null,Mj=rr.fromClass(class{constructor(e){this.view=e,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(e){let t=this.view.state.field(Yr.state).context;(t.updateViewport(e.view.viewport)||this.view.viewport.to>t.treeLen)&&this.scheduleWork(),(e.docChanged||e.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(t)}scheduleWork(){if(this.working)return;let{state:e}=this.view,t=e.field(Yr.state);(t.tree!=t.context.tree||!t.context.isDone(e.doc.length))&&(this.working=Gw(this.work))}work(e){this.working=null;let t=Date.now();if(this.chunkEndn+1e3,o=i.context.work(()=>jp&&jp()||Date.now()>a,n+(l?0:1e5));this.chunkBudget-=Date.now()-t,(o||this.chunkBudget<=0)&&(i.context.takeTree(),this.view.dispatch({effects:Yr.setState.of(new So(i.context))})),this.chunkBudget>0&&!(o&&!l)&&this.scheduleWork(),this.checkAsyncSchedule(i.context)}checkAsyncSchedule(e){e.scheduleOn&&(this.workScheduled++,e.scheduleOn.then(()=>this.scheduleWork()).catch(t=>yr(this.view.state,t)).then(()=>this.workScheduled--),e.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),Ki=ct.define({combine(r){return r.length?r[0]:null},enables:r=>[Yr.state,Mj,at.contentAttributes.compute([r],e=>{let t=e.facet(r);return t&&t.name?{"data-language":t.name}:{}})]}),ou=class{constructor(e,t=[]){this.language=e,this.support=t,this.extension=[e,t]}};var jj=ct.define(),ea=ct.define({combine:r=>{if(!r.length)return" ";let e=r[0];if(!e||/\S/.test(e)||Array.from(e).some(t=>t!=e[0]))throw new Error("Invalid indent unit: "+JSON.stringify(r[0]));return e}});function Eo(r){let e=r.facet(ea);return e.charCodeAt(0)==9?r.tabSize*e.length:e.length}function ta(r,e){let t="",s=r.tabSize,n=r.facet(ea)[0];if(n==" "){for(;e>=s;)t+=" ",e-=s;n=" "}for(let i=0;i=e?qj(r,t,e):null}var ai=class{constructor(e,t={}){this.state=e,this.options=t,this.unit=Eo(e)}lineAt(e,t=1){let s=this.state.doc.lineAt(e),{simulateBreak:n,simulateDoubleBreak:i}=this.options;return n!=null&&n>=s.from&&n<=s.to?i&&n==e?{text:"",from:e}:(t<0?n-1&&(i+=a-this.countColumn(s,s.search(/\S|$/))),i}countColumn(e,t=e.length){return ss(e,this.state.tabSize,t)}lineIndent(e,t=1){let{text:s,from:n}=this.lineAt(e,t),i=this.options.overrideIndentation;if(i){let a=i(n);if(a>-1)return a}return this.countColumn(s,s.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}},Hp=new kt;function qj(r,e,t){let s=e.resolveStack(t),n=s.node.enterUnfinishedNodesBefore(t);if(n!=s.node){let i=[];for(let a=n;a!=s.node;a=a.parent)i.push(a);for(let a=i.length-1;a>=0;a--)s={node:i[a],next:s}}return Xw(s,r,t)}function Xw(r,e,t){for(let s=r;s;s=s.next){let n=Uj(s.node);if(n)return n(Wp.create(e,t,s))}return 0}function Qj(r){return r.pos==r.options.simulateBreak&&r.options.simulateDoubleBreak}function Uj(r){let e=r.type.prop(Hp);if(e)return e;let t=r.firstChild,s;if(t&&(s=t.type.prop(kt.closedBy))){let n=r.lastChild,i=n&&s.indexOf(n.name)>-1;return a=>Hw(a,!0,1,void 0,i&&!Qj(a)?n.from:void 0)}return r.parent==null?Vj:null}function Vj(){return 0}var Wp=class r extends ai{constructor(e,t,s){super(e.state,e.options),this.base=e,this.pos=t,this.context=s}get node(){return this.context.node}static create(e,t,s){return new r(e,t,s)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(e){let t=this.state.doc.lineAt(e.from);for(;;){let s=e.resolve(t.from);for(;s.parent&&s.parent.from==s.from;)s=s.parent;if(Wj(s,e))break;t=this.state.doc.lineAt(s.from)}return this.lineIndent(t.from)}continue(){return Xw(this.context.next,this.base,this.pos)}};function Wj(r,e){for(let t=e;t;t=t.parent)if(r==t)return!0;return!1}function zj(r){let e=r.node,t=e.childAfter(e.from),s=e.lastChild;if(!t)return null;let n=r.options.simulateBreak,i=r.state.doc.lineAt(t.from),a=n==null||n<=i.from?i.to:Math.min(i.to,n);for(let l=t.to;;){let o=e.childAfter(l);if(!o||o==s)return null;if(!o.type.isSkipped)return o.fromHw(s,e,t,r)}function Hw(r,e,t,s,n){let i=r.textAfter,a=i.match(/^\s*/)[0].length,l=s&&i.slice(a,a+s.length)==s||n==r.pos+a,o=e?zj(r):null;return o?l?r.column(o.from):r.column(o.to):r.baseIndent+(l?0:r.unit*t)}var Kw=r=>r.baseIndent;function cu({except:r,units:e=1}={}){return t=>{let s=r&&r.test(t.textAfter);return t.baseIndent+(s?0:e*t.unit)}}var Zj=200;function Jw(){return Ut.transactionFilter.of(r=>{if(!r.docChanged||!r.isUserEvent("input.type")&&!r.isUserEvent("input.complete"))return r;let e=r.startState.languageDataAt("indentOnInput",r.startState.selection.main.head);if(!e.length)return r;let t=r.newDoc,{head:s}=r.newSelection.main,n=t.lineAt(s);if(s>n.from+Zj)return r;let i=t.sliceString(n.from,s);if(!e.some(u=>u.test(i)))return r;let{state:a}=r,l=-1,o=[];for(let{head:u}of a.selection.ranges){let c=a.doc.lineAt(u);if(c.from==l)continue;l=c.from;let p=uu(a,c.from);if(p==null)continue;let h=/^\s*/.exec(c.text)[0],f=ta(a,p);h!=f&&o.push({from:c.from,to:c.from+h.length,insert:f})}return o.length?[r,{changes:o,sequential:!0}]:r})}var eC=new kt;function tC(r){let e=r.firstChild,t=r.lastChild;return e&&e.tol.prop(Hi)==a.data:a?l=>l==a:void 0,this.style=$p(e.map(l=>({tag:l.tag,class:l.class||n(Object.assign({},l,{tag:null}))})),{all:i}).style,this.module=s?new nn(s):null,this.themeType=t.themeType}static define(e,t){return new r(e,t||{})}},zp=ct.define(),rC=ct.define({combine(r){return r.length?[r[0]]:null}});function qp(r){let e=r.facet(zp);return e.length?e:r.facet(rC)}function fu(r,e){let t=[Gj],s;return r instanceof Ji&&(r.module&&t.push(at.styleModule.of(r.module)),s=r.themeType),e?.fallback?t.push(rC.of(r)):s?t.push(zp.computeN([at.darkTheme],n=>n.facet(at.darkTheme)==(s=="dark")?[r]:[])):t.push(zp.of(r)),t}var Zp=class{constructor(e){this.markCache=Object.create(null),this.tree=pr(e.state),this.decorations=this.buildDeco(e,qp(e.state)),this.decoratedTo=e.viewport.to}update(e){let t=pr(e.state),s=qp(e.state),n=s!=qp(e.startState),{viewport:i}=e.view,a=e.changes.mapPos(this.decoratedTo,1);t.length=i.to?(this.decorations=this.decorations.map(e.changes),this.decoratedTo=a):(t!=this.tree||e.viewportChanged||n)&&(this.tree=t,this.decorations=this.buildDeco(e.view,s),this.decoratedTo=i.to)}buildDeco(e,t){if(!t||!this.tree.length)return yt.none;let s=new In;for(let{from:n,to:i}of e.visibleRanges)Qw(this.tree,t,(a,l,o)=>{s.add(a,l,this.markCache[o]||(this.markCache[o]=yt.mark({class:o})))},n,i);return s.finish()}},Gj=rn.high(rr.fromClass(Zp,{decorations:r=>r.decorations})),nC=Ji.define([{tag:ke.meta,color:"#404740"},{tag:ke.link,textDecoration:"underline"},{tag:ke.heading,textDecoration:"underline",fontWeight:"bold"},{tag:ke.emphasis,fontStyle:"italic"},{tag:ke.strong,fontWeight:"bold"},{tag:ke.strikethrough,textDecoration:"line-through"},{tag:ke.keyword,color:"#708"},{tag:[ke.atom,ke.bool,ke.url,ke.contentSeparator,ke.labelName],color:"#219"},{tag:[ke.literal,ke.inserted],color:"#164"},{tag:[ke.string,ke.deleted],color:"#a11"},{tag:[ke.regexp,ke.escape,ke.special(ke.string)],color:"#e40"},{tag:ke.definition(ke.variableName),color:"#00f"},{tag:ke.local(ke.variableName),color:"#30a"},{tag:[ke.typeName,ke.namespace],color:"#085"},{tag:ke.className,color:"#167"},{tag:[ke.special(ke.variableName),ke.macroName],color:"#256"},{tag:ke.definition(ke.propertyName),color:"#00c"},{tag:ke.comment,color:"#940"},{tag:ke.invalid,color:"#f00"}]),Xj=at.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),sC=1e4,iC="()[]{}",aC=ct.define({combine(r){return kr(r,{afterCursor:!0,brackets:iC,maxScanDistance:sC,renderMatch:Kj})}}),Yj=yt.mark({class:"cm-matchingBracket"}),Hj=yt.mark({class:"cm-nonmatchingBracket"});function Kj(r){let e=[],t=r.matched?Yj:Hj;return e.push(t.range(r.start.from,r.start.to)),r.end&&e.push(t.range(r.end.from,r.end.to)),e}var Jj=Yt.define({create(){return yt.none},update(r,e){if(!e.docChanged&&!e.selection)return r;let t=[],s=e.state.facet(aC);for(let n of e.state.selection.ranges){if(!n.empty)continue;let i=vn(e.state,n.head,-1,s)||n.head>0&&vn(e.state,n.head-1,1,s)||s.afterCursor&&(vn(e.state,n.head,1,s)||n.headat.decorations.from(r)}),eq=[Jj,Xj];function oC(r={}){return[aC.of(r),eq]}var tq=new kt;function Gp(r,e,t){let s=r.prop(e<0?kt.openedBy:kt.closedBy);if(s)return s;if(r.name.length==1){let n=t.indexOf(r.name);if(n>-1&&n%2==(e<0?1:0))return[t[n+e]]}return null}function Xp(r){let e=r.type.prop(tq);return e?e(r.node):r}function vn(r,e,t,s={}){let n=s.maxScanDistance||sC,i=s.brackets||iC,a=pr(r),l=a.resolveInner(e,t);for(let o=l;o;o=o.parent){let u=Gp(o.type,t,i);if(u&&o.from0?e>=c.from&&ec.from&&e<=c.to))return rq(r,e,t,o,c,u,i)}}return nq(r,e,t,a,l.type,n,i)}function rq(r,e,t,s,n,i,a){let l=s.parent,o={from:n.from,to:n.to},u=0,c=l?.cursor();if(c&&(t<0?c.childBefore(s.from):c.childAfter(s.to)))do if(t<0?c.to<=s.from:c.from>=s.to){if(u==0&&i.indexOf(c.type.name)>-1&&c.from0)return null;let u={from:t<0?e-1:e,to:t>0?e+1:e},c=r.doc.iterRange(e,t>0?r.doc.length:0),p=0;for(let h=0;!c.next().done&&h<=i;){let f=c.value;t<0&&(h+=f.length);let d=e+h*t;for(let m=t>0?0:f.length-1,g=t>0?f.length:-1;m!=g;m+=t){let y=a.indexOf(f[m]);if(!(y<0||s.resolveInner(d+m,1).type!=n))if(y%2==0==t>0)p++;else{if(p==1)return{start:u,end:{from:d+m,to:d+m+1},matched:y>>1==o>>1};p--}}t>0&&(h+=f.length)}return c.done?{start:u,matched:!1}:null}var sq=Object.create(null),Ww=[Ar.none];var zw=[],Zw=Object.create(null),iq=Object.create(null);for(let[r,e]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])iq[r]=aq(sq,e);function Qp(r,e){zw.indexOf(r)>-1||(zw.push(r),console.warn(e))}function aq(r,e){let t=[];for(let l of e.split(" ")){let o=[];for(let u of l.split(".")){let c=r[u]||ke[u];c?typeof c=="function"?o.length?o=o.map(c):Qp(u,`Modifier ${u} used at start of tag`):o.length?Qp(u,`Tag ${u} used as modifier`):o=Array.isArray(c)?c:[c]:Qp(u,`Unknown highlighting tag ${u}`)}for(let u of o)t.push(u)}if(!t.length)return 0;let s=e.replace(/ /g,"_"),n=s+" "+t.map(l=>l.id),i=Zw[n];if(i)return i.id;let a=Zw[n]=Ar.define({id:Ww.length,name:s,props:[iu({[s]:t})]});return Ww.push(a),a.id}var UX={rtl:yt.mark({class:"cm-iso",inclusive:!0,attributes:{dir:"rtl"},bidiIsolate:zt.RTL}),ltr:yt.mark({class:"cm-iso",inclusive:!0,attributes:{dir:"ltr"},bidiIsolate:zt.LTR}),auto:yt.mark({class:"cm-iso",inclusive:!0,attributes:{dir:"auto"},bidiIsolate:null})};var rh=r=>{let{state:e}=r,t=e.doc.lineAt(e.selection.main.from),s=sh(r.state,t.from);return s.line?oq(r):s.block?uq(r):!1};function nh(r,e){return({state:t,dispatch:s})=>{if(t.readOnly)return!1;let n=r(e,t);return n?(s(t.update(n)),!0):!1}}var oq=nh(pq,0);var lq=nh(mC,0);var uq=nh((r,e)=>mC(r,e,fq(e)),0);function sh(r,e){let t=r.languageDataAt("commentTokens",e);return t.length?t[0]:{}}var wo=50;function cq(r,{open:e,close:t},s,n){let i=r.sliceDoc(s-wo,s),a=r.sliceDoc(n,n+wo),l=/\s*$/.exec(i)[0].length,o=/^\s*/.exec(a)[0].length,u=i.length-l;if(i.slice(u-e.length,u)==e&&a.slice(o,o+t.length)==t)return{open:{pos:s-l,margin:l&&1},close:{pos:n+o,margin:o&&1}};let c,p;n-s<=2*wo?c=p=r.sliceDoc(s,n):(c=r.sliceDoc(s,s+wo),p=r.sliceDoc(n-wo,n));let h=/^\s*/.exec(c)[0].length,f=/\s*$/.exec(p)[0].length,d=p.length-f-t.length;return c.slice(h,h+e.length)==e&&p.slice(d,d+t.length)==t?{open:{pos:s+h+e.length,margin:/\s/.test(c.charAt(h+e.length))?1:0},close:{pos:n-f-t.length,margin:/\s/.test(p.charAt(d-1))?1:0}}:null}function fq(r){let e=[];for(let t of r.selection.ranges){let s=r.doc.lineAt(t.from),n=t.to<=s.to?s:r.doc.lineAt(t.to),i=e.length-1;i>=0&&e[i].to>s.from?e[i].to=n.to:e.push({from:s.from+/^\s*/.exec(s.text)[0].length,to:n.to})}return e}function mC(r,e,t=e.selection.ranges){let s=t.map(i=>sh(e,i.from).block);if(!s.every(i=>i))return null;let n=t.map((i,a)=>cq(e,s[a],i.from,i.to));if(r!=2&&!n.every(i=>i))return{changes:e.changes(t.map((i,a)=>n[a]?[]:[{from:i.from,insert:s[a].open+" "},{from:i.to,insert:" "+s[a].close}]))};if(r!=1&&n.some(i=>i)){let i=[];for(let a=0,l;an&&(i==a||a>p.from)){n=p.from;let h=/^\s*/.exec(p.text)[0].length,f=h==p.length,d=p.text.slice(h,h+u.length)==u?h:-1;hi.comment<0&&(!i.empty||i.single))){let i=[];for(let{line:l,token:o,indent:u,empty:c,single:p}of s)(p||!c)&&i.push({from:l.from+u,insert:o+" "});let a=e.changes(i);return{changes:a,selection:e.selection.map(a,1)}}else if(r!=1&&s.some(i=>i.comment>=0)){let i=[];for(let{line:a,comment:l,token:o}of s)if(l>=0){let u=a.from+l,c=u+o.length;a.text[c-a.from]==" "&&c++,i.push({from:u,to:c})}return{changes:i}}return null}var Jp=Mr.define(),hq=Mr.define(),dq=ct.define(),gC=ct.define({combine(r){return kr(r,{minDepth:100,newGroupDelay:500,joinToEvent:(e,t)=>t},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(e,t)=>(s,n)=>e(s,n)||t(s,n)})}}),yC=Yt.define({create(){return oi.empty},update(r,e){let t=e.state.facet(gC),s=e.annotation(Jp);if(s){let o=xn.fromTransaction(e,s.selection),u=s.side,c=u==0?r.undone:r.done;return o?c=hu(c,c.length,t.minDepth,o):c=xC(c,e.startState.selection),new oi(u==0?s.rest:c,u==0?c:s.rest)}let n=e.annotation(hq);if((n=="full"||n=="before")&&(r=r.isolate()),e.annotation(lr.addToHistory)===!1)return e.changes.empty?r:r.addMapping(e.changes.desc);let i=xn.fromTransaction(e),a=e.annotation(lr.time),l=e.annotation(lr.userEvent);return i?r=r.addChanges(i,a,l,t,e):e.selection&&(r=r.addSelection(e.startState.selection,a,l,t.newGroupDelay)),(n=="full"||n=="after")&&(r=r.isolate()),r},toJSON(r){return{done:r.done.map(e=>e.toJSON()),undone:r.undone.map(e=>e.toJSON())}},fromJSON(r){return new oi(r.done.map(xn.fromJSON),r.undone.map(xn.fromJSON))}});function bC(r={}){return[yC,gC.of(r),at.domEventHandlers({beforeinput(e,t){let s=e.inputType=="historyUndo"?mu:e.inputType=="historyRedo"?Co:null;return s?(e.preventDefault(),s(t)):!1}})]}function du(r,e){return function({state:t,dispatch:s}){if(!e&&t.readOnly)return!1;let n=t.field(yC,!1);if(!n)return!1;let i=n.pop(r,t,e);return i?(s(i),!0):!1}}var mu=du(0,!1),Co=du(1,!1),mq=du(0,!0),gq=du(1,!0);var xn=class r{constructor(e,t,s,n,i){this.changes=e,this.effects=t,this.mapped=s,this.startSelection=n,this.selectionsAfter=i}setSelAfter(e){return new r(this.changes,this.effects,this.mapped,this.startSelection,e)}toJSON(){var e,t,s;return{changes:(e=this.changes)===null||e===void 0?void 0:e.toJSON(),mapped:(t=this.mapped)===null||t===void 0?void 0:t.toJSON(),startSelection:(s=this.startSelection)===null||s===void 0?void 0:s.toJSON(),selectionsAfter:this.selectionsAfter.map(n=>n.toJSON())}}static fromJSON(e){return new r(e.changes&&Dr.fromJSON(e.changes),[],e.mapped&&ns.fromJSON(e.mapped),e.startSelection&&ze.fromJSON(e.startSelection),e.selectionsAfter.map(ze.fromJSON))}static fromTransaction(e,t){let s=un;for(let n of e.startState.facet(dq)){let i=n(e);i.length&&(s=s.concat(i))}return!s.length&&e.changes.empty?null:new r(e.changes.invert(e.startState.doc),s,void 0,t||e.startState.selection,un)}static selection(e){return new r(void 0,un,void 0,void 0,e)}};function hu(r,e,t,s){let n=e+1>t+20?e-t-1:0,i=r.slice(n,e);return i.push(s),i}function yq(r,e){let t=[],s=!1;return r.iterChangedRanges((n,i)=>t.push(n,i)),e.iterChangedRanges((n,i,a,l)=>{for(let o=0;o=u&&a<=c&&(s=!0)}}),s}function bq(r,e){return r.ranges.length==e.ranges.length&&r.ranges.filter((t,s)=>t.empty!=e.ranges[s].empty).length===0}function vC(r,e){return r.length?e.length?r.concat(e):r:e}var un=[],vq=200;function xC(r,e){if(r.length){let t=r[r.length-1],s=t.selectionsAfter.slice(Math.max(0,t.selectionsAfter.length-vq));return s.length&&s[s.length-1].eq(e)?r:(s.push(e),hu(r,r.length-1,1e9,t.setSelAfter(s)))}else return[xn.selection([e])]}function xq(r){let e=r[r.length-1],t=r.slice();return t[r.length-1]=e.setSelAfter(e.selectionsAfter.slice(0,e.selectionsAfter.length-1)),t}function Kp(r,e){if(!r.length)return r;let t=r.length,s=un;for(;t;){let n=Oq(r[t-1],e,s);if(n.changes&&!n.changes.empty||n.effects.length){let i=r.slice(0,t);return i[t-1]=n,i}else e=n.mapped,t--,s=n.selectionsAfter}return s.length?[xn.selection(s)]:un}function Oq(r,e,t){let s=vC(r.selectionsAfter.length?r.selectionsAfter.map(l=>l.map(e)):un,t);if(!r.changes)return xn.selection(s);let n=r.changes.map(e),i=e.mapDesc(r.changes,!0),a=r.mapped?r.mapped.composeDesc(i):i;return new xn(n,Ct.mapEffects(r.effects,e),a,r.startSelection.map(i),s)}var Sq=/^(input\.type|delete)($|\.)/,oi=class r{constructor(e,t,s=0,n=void 0){this.done=e,this.undone=t,this.prevTime=s,this.prevUserEvent=n}isolate(){return this.prevTime?new r(this.done,this.undone):this}addChanges(e,t,s,n,i){let a=this.done,l=a[a.length-1];return l&&l.changes&&!l.changes.empty&&e.changes&&(!s||Sq.test(s))&&(!l.selectionsAfter.length&&t-this.prevTime0&&t-this.prevTimet.empty?r.moveByChar(t,e):gu(t,e))}function Pr(r){return r.textDirectionAt(r.state.selection.main.head)==zt.LTR}var EC=r=>SC(r,!Pr(r)),wC=r=>SC(r,Pr(r));function CC(r,e){return On(r,t=>t.empty?r.moveByGroup(t,e):gu(t,e))}var Eq=r=>CC(r,!Pr(r)),wq=r=>CC(r,Pr(r));var YX=typeof Intl<"u"&&Intl.Segmenter?new Intl.Segmenter(void 0,{granularity:"word"}):null;function Cq(r,e,t){if(e.type.prop(t))return!0;let s=e.to-e.from;return s&&(s>2||/[^\s,.;:]/.test(r.sliceDoc(e.from,e.to)))||e.firstChild}function yu(r,e,t){let s=pr(r).resolveInner(e.head),n=t?kt.closedBy:kt.openedBy;for(let o=e.head;;){let u=t?s.childAfter(o):s.childBefore(o);if(!u)break;Cq(r,u,n)?s=u:o=t?u.to:u.from}let i=s.type.prop(n),a,l;return i&&(a=t?vn(r,s.from,1):vn(r,s.to,-1))&&a.matched?l=t?a.end.to:a.end.from:l=t?s.to:s.from,ze.cursor(l,t?-1:1)}var kq=r=>On(r,e=>yu(r.state,e,!Pr(r))),Aq=r=>On(r,e=>yu(r.state,e,Pr(r)));function kC(r,e){return On(r,t=>{if(!t.empty)return gu(t,e);let s=r.moveVertically(t,e);return s.head!=t.head?s:r.moveToLineBoundary(t,e)})}var AC=r=>kC(r,!1),PC=r=>kC(r,!0);function TC(r){let e=r.scrollDOM.clientHeighta.empty?r.moveVertically(a,e,t.height):gu(a,e));if(n.eq(s.selection))return!1;let i;if(t.selfScroll){let a=r.coordsAtPos(s.selection.main.head),l=r.scrollDOM.getBoundingClientRect(),o=l.top+t.marginTop,u=l.bottom-t.marginBottom;a&&a.top>o&&a.bottomDC(r,!1),eh=r=>DC(r,!0);function _s(r,e,t){let s=r.lineBlockAt(e.head),n=r.moveToLineBoundary(e,t);if(n.head==e.head&&n.head!=(t?s.to:s.from)&&(n=r.moveToLineBoundary(e,t,!1)),!t&&n.head==s.from&&s.length){let i=/^\s*/.exec(r.state.sliceDoc(s.from,Math.min(s.from+100,s.to)))[0].length;i&&e.head!=s.from+i&&(n=ze.cursor(s.from+i))}return n}var Pq=r=>On(r,e=>_s(r,e,!0)),Tq=r=>On(r,e=>_s(r,e,!1)),Dq=r=>On(r,e=>_s(r,e,!Pr(r))),_q=r=>On(r,e=>_s(r,e,Pr(r))),Iq=r=>On(r,e=>ze.cursor(r.lineBlockAt(e.head).from,1)),Rq=r=>On(r,e=>ze.cursor(r.lineBlockAt(e.head).to,-1));function Fq(r,e,t){let s=!1,n=ra(r.selection,i=>{let a=vn(r,i.head,-1)||vn(r,i.head,1)||i.head>0&&vn(r,i.head-1,1)||i.headFq(r,e,!1);function cn(r,e){let t=ra(r.state.selection,s=>{let n=e(s);return ze.range(s.anchor,n.head,n.goalColumn,n.bidiLevel||void 0)});return t.eq(r.state.selection)?!1:(r.dispatch(Qn(r.state,t)),!0)}function _C(r,e){return cn(r,t=>r.moveByChar(t,e))}var IC=r=>_C(r,!Pr(r)),RC=r=>_C(r,Pr(r));function FC(r,e){return cn(r,t=>r.moveByGroup(t,e))}var Nq=r=>FC(r,!Pr(r)),Lq=r=>FC(r,Pr(r));var $q=r=>cn(r,e=>yu(r.state,e,!Pr(r))),Mq=r=>cn(r,e=>yu(r.state,e,Pr(r)));function BC(r,e){return cn(r,t=>r.moveVertically(t,e))}var NC=r=>BC(r,!1),LC=r=>BC(r,!0);function $C(r,e){return cn(r,t=>r.moveVertically(t,e,TC(r).height))}var uC=r=>$C(r,!1),cC=r=>$C(r,!0),jq=r=>cn(r,e=>_s(r,e,!0)),qq=r=>cn(r,e=>_s(r,e,!1)),Qq=r=>cn(r,e=>_s(r,e,!Pr(r))),Uq=r=>cn(r,e=>_s(r,e,Pr(r))),Vq=r=>cn(r,e=>ze.cursor(r.lineBlockAt(e.head).from)),Wq=r=>cn(r,e=>ze.cursor(r.lineBlockAt(e.head).to)),fC=({state:r,dispatch:e})=>(e(Qn(r,{anchor:0})),!0),pC=({state:r,dispatch:e})=>(e(Qn(r,{anchor:r.doc.length})),!0),hC=({state:r,dispatch:e})=>(e(Qn(r,{anchor:r.selection.main.anchor,head:0})),!0),dC=({state:r,dispatch:e})=>(e(Qn(r,{anchor:r.selection.main.anchor,head:r.doc.length})),!0),zq=({state:r,dispatch:e})=>(e(r.update({selection:{anchor:0,head:r.doc.length},userEvent:"select"})),!0),Zq=({state:r,dispatch:e})=>{let t=bu(r).map(({from:s,to:n})=>ze.range(s,Math.min(n+1,r.doc.length)));return e(r.update({selection:ze.create(t),userEvent:"select"})),!0},Gq=({state:r,dispatch:e})=>{let t=ra(r.selection,s=>{var n;let i=pr(r).resolveStack(s.from,1);for(let a=i;a;a=a.next){let{node:l}=a;if((l.from=s.to||l.to>s.to&&l.from<=s.from)&&(!((n=l.parent)===null||n===void 0)&&n.parent))return ze.range(l.to,l.from)}return s});return e(Qn(r,t)),!0},Xq=({state:r,dispatch:e})=>{let t=r.selection,s=null;return t.ranges.length>1?s=ze.create([t.main]):t.main.empty||(s=ze.create([ze.cursor(t.main.head)])),s?(e(Qn(r,s)),!0):!1};function ko(r,e){if(r.state.readOnly)return!1;let t="delete.selection",{state:s}=r,n=s.changeByRange(i=>{let{from:a,to:l}=i;if(a==l){let o=e(i);oa&&(t="delete.forward",o=pu(r,o,!0)),a=Math.min(a,o),l=Math.max(l,o)}else a=pu(r,a,!1),l=pu(r,l,!0);return a==l?{range:i}:{changes:{from:a,to:l},range:ze.cursor(a,an(r)))s.between(e,e,(n,i)=>{ne&&(e=t?i:n)});return e}var MC=(r,e,t)=>ko(r,s=>{let n=s.from,{state:i}=r,a=i.doc.lineAt(n),l,o;if(t&&!e&&n>a.from&&nMC(r,!1,!0);var jC=r=>MC(r,!0,!1),qC=(r,e)=>ko(r,t=>{let s=t.head,{state:n}=r,i=n.doc.lineAt(s),a=n.charCategorizer(s);for(let l=null;;){if(s==(e?i.to:i.from)){s==t.head&&i.number!=(e?n.doc.lines:1)&&(s+=e?1:-1);break}let o=ur(i.text,s-i.from,e)+i.from,u=i.text.slice(Math.min(s,o)-i.from,Math.max(s,o)-i.from),c=a(u);if(l!=null&&c!=l)break;(u!=" "||s!=t.head)&&(l=c),s=o}return s}),QC=r=>qC(r,!1),Yq=r=>qC(r,!0),Hq=r=>ko(r,e=>{let t=r.lineBlockAt(e.head).to;return e.headko(r,e=>{let t=r.moveToLineBoundary(e,!1).head;return e.head>t?t:Math.max(0,e.head-1)}),Jq=r=>ko(r,e=>{let t=r.moveToLineBoundary(e,!0).head;return e.head{if(r.readOnly)return!1;let t=r.changeByRange(s=>({changes:{from:s.from,to:s.to,insert:Rt.of(["",""])},range:ze.cursor(s.from)}));return e(r.update(t,{scrollIntoView:!0,userEvent:"input"})),!0},t5=({state:r,dispatch:e})=>{if(r.readOnly)return!1;let t=r.changeByRange(s=>{if(!s.empty||s.from==0||s.from==r.doc.length)return{range:s};let n=s.from,i=r.doc.lineAt(n),a=n==i.from?n-1:ur(i.text,n-i.from,!1)+i.from,l=n==i.to?n+1:ur(i.text,n-i.from,!0)+i.from;return{changes:{from:a,to:l,insert:r.doc.slice(n,l).append(r.doc.slice(a,n))},range:ze.cursor(l)}});return t.changes.empty?!1:(e(r.update(t,{scrollIntoView:!0,userEvent:"move.character"})),!0)};function bu(r){let e=[],t=-1;for(let s of r.selection.ranges){let n=r.doc.lineAt(s.from),i=r.doc.lineAt(s.to);if(!s.empty&&s.to==i.from&&(i=r.doc.lineAt(s.to-1)),t>=n.number){let a=e[e.length-1];a.to=i.to,a.ranges.push(s)}else e.push({from:n.from,to:i.to,ranges:[s]});t=i.number+1}return e}function UC(r,e,t){if(r.readOnly)return!1;let s=[],n=[];for(let i of bu(r)){if(t?i.to==r.doc.length:i.from==0)continue;let a=r.doc.lineAt(t?i.to+1:i.from-1),l=a.length+1;if(t){s.push({from:i.to,to:a.to},{from:i.from,insert:a.text+r.lineBreak});for(let o of i.ranges)n.push(ze.range(Math.min(r.doc.length,o.anchor+l),Math.min(r.doc.length,o.head+l)))}else{s.push({from:a.from,to:i.from},{from:i.to,insert:r.lineBreak+a.text});for(let o of i.ranges)n.push(ze.range(o.anchor-l,o.head-l))}}return s.length?(e(r.update({changes:s,scrollIntoView:!0,selection:ze.create(n,r.selection.mainIndex),userEvent:"move.line"})),!0):!1}var r5=({state:r,dispatch:e})=>UC(r,e,!1),n5=({state:r,dispatch:e})=>UC(r,e,!0);function VC(r,e,t){if(r.readOnly)return!1;let s=[];for(let n of bu(r))t?s.push({from:n.from,insert:r.doc.slice(n.from,n.to)+r.lineBreak}):s.push({from:n.to,insert:r.lineBreak+r.doc.slice(n.from,n.to)});return e(r.update({changes:s,scrollIntoView:!0,userEvent:"input.copyline"})),!0}var s5=({state:r,dispatch:e})=>VC(r,e,!1),i5=({state:r,dispatch:e})=>VC(r,e,!0),a5=r=>{if(r.state.readOnly)return!1;let{state:e}=r,t=e.changes(bu(e).map(({from:n,to:i})=>(n>0?n--:i{let i;if(r.lineWrapping){let a=r.lineBlockAt(n.head),l=r.coordsAtPos(n.head,n.assoc||1);l&&(i=a.bottom+r.documentTop-l.bottom+r.defaultLineHeight/2)}return r.moveVertically(n,!0,i)}).map(t);return r.dispatch({changes:t,selection:s,scrollIntoView:!0,userEvent:"delete.line"}),!0};function o5(r,e){if(/\(\)|\[\]|\{\}/.test(r.sliceDoc(e-1,e+1)))return{from:e,to:e};let t=pr(r).resolveInner(e),s=t.childBefore(e),n=t.childAfter(e),i;return s&&n&&s.to<=e&&n.from>=e&&(i=s.type.prop(kt.closedBy))&&i.indexOf(n.name)>-1&&r.doc.lineAt(s.to).from==r.doc.lineAt(n.from).from&&!/\S/.test(r.sliceDoc(s.to,n.from))?{from:s.to,to:n.from}:null}var l5=WC(!1),u5=WC(!0);function WC(r){return({state:e,dispatch:t})=>{if(e.readOnly)return!1;let s=e.changeByRange(n=>{let{from:i,to:a}=n,l=e.doc.lineAt(i),o=!r&&i==a&&o5(e,i);r&&(i=a=(a<=l.to?l:e.doc.lineAt(a)).to);let u=new ai(e,{simulateBreak:i,simulateDoubleBreak:!!o}),c=uu(u,i);for(c==null&&(c=ss(/^\s*/.exec(e.doc.lineAt(i).text)[0],e.tabSize));al.from&&i{let n=[];for(let a=s.from;a<=s.to;){let l=r.doc.lineAt(a);l.number>t&&(s.empty||s.to>l.from)&&(e(l,n,s),t=l.number),a=l.to+1}let i=r.changes(n);return{changes:n,range:ze.range(i.mapPos(s.anchor,1),i.mapPos(s.head,1))}})}var c5=({state:r,dispatch:e})=>{if(r.readOnly)return!1;let t=Object.create(null),s=new ai(r,{overrideIndentation:i=>{let a=t[i];return a??-1}}),n=ih(r,(i,a,l)=>{let o=uu(s,i.from);if(o==null)return;/\S/.test(i.text)||(o=0);let u=/^\s*/.exec(i.text)[0],c=ta(r,o);(u!=c||l.fromr.readOnly?!1:(e(r.update(ih(r,(t,s)=>{s.push({from:t.from,insert:r.facet(ea)})}),{userEvent:"input.indent"})),!0),zC=({state:r,dispatch:e})=>r.readOnly?!1:(e(r.update(ih(r,(t,s)=>{let n=/^\s*/.exec(t.text)[0];if(!n)return;let i=ss(n,r.tabSize),a=0,l=ta(r,Math.max(0,i-Eo(r)));for(;a({mac:r.key,run:r.run,shift:r.shift}))),ZC=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:kq,shift:$q},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:Aq,shift:Mq},{key:"Alt-ArrowUp",run:r5},{key:"Shift-Alt-ArrowUp",run:s5},{key:"Alt-ArrowDown",run:n5},{key:"Shift-Alt-ArrowDown",run:i5},{key:"Escape",run:Xq},{key:"Mod-Enter",run:u5},{key:"Alt-l",mac:"Ctrl-l",run:Zq},{key:"Mod-i",run:Gq,preventDefault:!0},{key:"Mod-[",run:zC},{key:"Mod-]",run:vu},{key:"Mod-Alt-\\",run:c5},{key:"Shift-Mod-k",run:a5},{key:"Shift-Mod-\\",run:Bq},{key:"Mod-/",run:rh},{key:"Alt-A",run:lq}].concat(p5),GC={key:"Tab",run:vu,shift:zC};function Vt(){var r=arguments[0];typeof r=="string"&&(r=document.createElement(r));var e=1,t=arguments[1];if(t&&typeof t=="object"&&t.nodeType==null&&!Array.isArray(t)){for(var s in t)if(Object.prototype.hasOwnProperty.call(t,s)){var n=t[s];typeof n=="string"?r.setAttribute(s,n):n!=null&&(r[s]=n)}e++}for(;er.normalize("NFKD"):r=>r,Rs=class{constructor(e,t,s=0,n=e.length,i,a){this.test=a,this.value={from:0,to:0},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=e.iterRange(s,n),this.bufferStart=s,this.normalize=i?l=>i(YC(l)):YC,this.query=this.normalize(t)}peek(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return-1;this.bufferPos=0,this.buffer=this.iter.value}return gr(this.buffer,this.bufferPos)}next(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}nextOverlapping(){for(;;){let e=this.peek();if(e<0)return this.done=!0,this;let t=Za(e),s=this.bufferStart+this.bufferPos;this.bufferPos+=$r(e);let n=this.normalize(t);for(let i=0,a=s;;i++){let l=n.charCodeAt(i),o=this.match(l,a,this.bufferPos+this.bufferStart);if(i==n.length-1){if(o)return this.value=o,this;break}a==s&&ithis.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}nextLine(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}next(){for(let e=this.matchPos-this.curLineStart;;){this.re.lastIndex=e;let t=this.matchPos<=this.to&&this.re.exec(this.curLine);if(t){let s=this.curLineStart+t.index,n=s+t[0].length;if(this.matchPos=Cu(this.text,n+(s==n?1:0)),s==this.curLineStart+this.curLine.length&&this.nextLine(),(sthis.value.to)&&(!this.test||this.test(s,n,t)))return this.value={from:s,to:n,match:t},this;e=this.matchPos-this.curLineStart}else if(this.curLineStart+this.curLine.length=s||n.to<=t){let l=new r(t,e.sliceString(t,s));return ah.set(e,l),l}if(n.from==t&&n.to==s)return n;let{text:i,from:a}=n;return a>t&&(i=e.sliceString(t,a)+i,a=t),n.to=this.to?this.to:this.text.lineAt(e).to}next(){for(;;){let e=this.re.lastIndex=this.matchPos-this.flat.from,t=this.re.exec(this.flat.text);if(t&&!t[0]&&t.index==e&&(this.re.lastIndex=e+1,t=this.re.exec(this.flat.text)),t){let s=this.flat.from+t.index,n=s+t[0].length;if((this.flat.to>=this.to||t.index+t[0].length<=this.flat.text.length-10)&&(!this.test||this.test(s,n,t)))return this.value={from:s,to:n,match:t},this.matchPos=Cu(this.text,n+(s==n?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=Eu.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+this.flat.text.length*2))}}};typeof Symbol<"u"&&(Su.prototype[Symbol.iterator]=wu.prototype[Symbol.iterator]=function(){return this});function h5(r){try{return new RegExp(r,ph),!0}catch{return!1}}function Cu(r,e){if(e>=r.length)return e;let t=r.lineAt(e),s;for(;e=56320&&s<57344;)e++;return e}function oh(r){let e=String(r.state.doc.lineAt(r.state.selection.main.head).number),t=Vt("input",{class:"cm-textfield",name:"line",value:e}),s=Vt("form",{class:"cm-gotoLine",onkeydown:i=>{i.keyCode==27?(i.preventDefault(),r.dispatch({effects:ku.of(!1)}),r.focus()):i.keyCode==13&&(i.preventDefault(),n())},onsubmit:i=>{i.preventDefault(),n()}},Vt("label",r.state.phrase("Go to line"),": ",t)," ",Vt("button",{class:"cm-button",type:"submit"},r.state.phrase("go")));function n(){let i=/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(t.value);if(!i)return;let{state:a}=r,l=a.doc.lineAt(a.selection.main.head),[,o,u,c,p]=i,h=c?+c.slice(1):0,f=u?+u:l.number;if(u&&p){let g=f/100;o&&(g=g*(o=="-"?-1:1)+l.number/a.doc.lines),f=Math.round(a.doc.lines*g)}else u&&o&&(f=f*(o=="-"?-1:1)+l.number);let d=a.doc.line(Math.max(1,Math.min(a.doc.lines,f))),m=ze.cursor(d.from+Math.max(0,Math.min(h,d.length)));r.dispatch({effects:[ku.of(!1),at.scrollIntoView(m.from,{y:"center"})],selection:m}),r.focus()}return{dom:s}}var ku=Ct.define(),HC=Yt.define({create(){return!0},update(r,e){for(let t of e.effects)t.is(ku)&&(r=t.value);return r},provide:r=>ri.from(r,e=>e?oh:null)}),d5=r=>{let e=Zi(r,oh);if(!e){let t=[ku.of(!0)];r.state.field(HC,!1)==null&&t.push(Ct.appendConfig.of([HC,m5])),r.dispatch({effects:t}),e=Zi(r,oh)}return e&&e.dom.querySelector("input").select(),!0},m5=at.baseTheme({".cm-panel.cm-gotoLine":{padding:"2px 6px 4px","& label":{fontSize:"80%"}}}),g5={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},tk=ct.define({combine(r){return kr(r,g5,{highlightWordAroundCursor:(e,t)=>e||t,minSelectionLength:Math.min,maxMatches:Math.min})}});function rk(r){let e=[O5,x5];return r&&e.push(tk.of(r)),e}var y5=yt.mark({class:"cm-selectionMatch"}),b5=yt.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function KC(r,e,t,s){return(t==0||r(e.sliceDoc(t-1,t))!=Wt.Word)&&(s==e.doc.length||r(e.sliceDoc(s,s+1))!=Wt.Word)}function v5(r,e,t,s){return r(e.sliceDoc(t,t+1))==Wt.Word&&r(e.sliceDoc(s-1,s))==Wt.Word}var x5=rr.fromClass(class{constructor(r){this.decorations=this.getDeco(r)}update(r){(r.selectionSet||r.docChanged||r.viewportChanged)&&(this.decorations=this.getDeco(r.view))}getDeco(r){let e=r.state.facet(tk),{state:t}=r,s=t.selection;if(s.ranges.length>1)return yt.none;let n=s.main,i,a=null;if(n.empty){if(!e.highlightWordAroundCursor)return yt.none;let o=t.wordAt(n.head);if(!o)return yt.none;a=t.charCategorizer(n.head),i=t.sliceDoc(o.from,o.to)}else{let o=n.to-n.from;if(o200)return yt.none;if(e.wholeWords){if(i=t.sliceDoc(n.from,n.to),a=t.charCategorizer(n.head),!(KC(a,t,n.from,n.to)&&v5(a,t,n.from,n.to)))return yt.none}else if(i=t.sliceDoc(n.from,n.to),!i)return yt.none}let l=[];for(let o of r.visibleRanges){let u=new Rs(t.doc,i,o.from,o.to);for(;!u.next().done;){let{from:c,to:p}=u.value;if((!a||KC(a,t,c,p))&&(n.empty&&c<=n.from&&p>=n.to?l.push(b5.range(c,p)):(c>=n.to||p<=n.from)&&l.push(y5.range(c,p)),l.length>e.maxMatches))return yt.none}}return yt.set(l)}},{decorations:r=>r.decorations}),O5=at.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}}),S5=({state:r,dispatch:e})=>{let{selection:t}=r,s=ze.create(t.ranges.map(n=>r.wordAt(n.head)||ze.cursor(n.head)),t.mainIndex);return s.eq(t)?!1:(e(r.update({selection:s})),!0)};function E5(r,e){let{main:t,ranges:s}=r.selection,n=r.wordAt(t.head),i=n&&n.from==t.from&&n.to==t.to;for(let a=!1,l=new Rs(r.doc,e,s[s.length-1].to);;)if(l.next(),l.done){if(a)return null;l=new Rs(r.doc,e,0,Math.max(0,s[s.length-1].from-1)),a=!0}else{if(a&&s.some(o=>o.from==l.value.from))continue;if(i){let o=r.wordAt(l.value.from);if(!o||o.from!=l.value.from||o.to!=l.value.to)continue}return l.value}}var w5=({state:r,dispatch:e})=>{let{ranges:t}=r.selection;if(t.some(i=>i.from===i.to))return S5({state:r,dispatch:e});let s=r.sliceDoc(t[0].from,t[0].to);if(r.selection.ranges.some(i=>r.sliceDoc(i.from,i.to)!=s))return!1;let n=E5(r,s);return n?(e(r.update({selection:r.selection.addRange(ze.range(n.from,n.to),!1),effects:at.scrollIntoView(n.to)})),!0):!1},ia=ct.define({combine(r){return kr(r,{top:!1,caseSensitive:!1,literal:!1,regexp:!1,wholeWord:!1,createPanel:e=>new fh(e),scrollToMatch:e=>at.scrollIntoView(e)})}});var Au=class{constructor(e){this.search=e.search,this.caseSensitive=!!e.caseSensitive,this.literal=!!e.literal,this.regexp=!!e.regexp,this.replace=e.replace||"",this.valid=!!this.search&&(!this.regexp||h5(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!e.wholeWord}unquote(e){return this.literal?e:e.replace(/\\([nrt\\])/g,(t,s)=>s=="n"?` +`:s=="r"?"\r":s=="t"?" ":"\\")}eq(e){return this.search==e.search&&this.replace==e.replace&&this.caseSensitive==e.caseSensitive&&this.regexp==e.regexp&&this.wholeWord==e.wholeWord}create(){return this.regexp?new uh(this):new lh(this)}getCursor(e,t=0,s){let n=e.doc?e:Ut.create({doc:e});return s==null&&(s=n.doc.length),this.regexp?sa(this,n,t,s):na(this,n,t,s)}},Pu=class{constructor(e){this.spec=e}};function na(r,e,t,s){return new Rs(e.doc,r.unquoted,t,s,r.caseSensitive?void 0:n=>n.toLowerCase(),r.wholeWord?C5(e.doc,e.charCategorizer(e.selection.main.head)):void 0)}function C5(r,e){return(t,s,n,i)=>((i>t||i+n.length=t)return null;n.push(s.value)}return n}highlight(e,t,s,n){let i=na(this.spec,e,Math.max(0,t-this.spec.unquoted.length),Math.min(s+this.spec.unquoted.length,e.doc.length));for(;!i.next().done;)n(i.value.from,i.value.to)}};function sa(r,e,t,s){return new Su(e.doc,r.search,{ignoreCase:!r.caseSensitive,test:r.wholeWord?k5(e.charCategorizer(e.selection.main.head)):void 0},t,s)}function Tu(r,e){return r.slice(ur(r,e,!1),e)}function Du(r,e){return r.slice(e,ur(r,e))}function k5(r){return(e,t,s)=>!s[0].length||(r(Tu(s.input,s.index))!=Wt.Word||r(Du(s.input,s.index))!=Wt.Word)&&(r(Du(s.input,s.index+s[0].length))!=Wt.Word||r(Tu(s.input,s.index+s[0].length))!=Wt.Word)}var uh=class extends Pu{nextMatch(e,t,s){let n=sa(this.spec,e,s,e.doc.length).next();return n.done&&(n=sa(this.spec,e,0,t).next()),n.done?null:n.value}prevMatchInRange(e,t,s){for(let n=1;;n++){let i=Math.max(t,s-n*1e4),a=sa(this.spec,e,i,s),l=null;for(;!a.next().done;)l=a.value;if(l&&(i==t||l.from>i+10))return l;if(i==t)return null}}prevMatch(e,t,s){return this.prevMatchInRange(e,0,t)||this.prevMatchInRange(e,s,e.doc.length)}getReplacement(e){return this.spec.unquote(this.spec.replace).replace(/\$([$&\d+])/g,(t,s)=>s=="$"?"$":s=="&"?e.match[0]:s!="0"&&+s=t)return null;n.push(s.value)}return n}highlight(e,t,s,n){let i=sa(this.spec,e,Math.max(0,t-250),Math.min(s+250,e.doc.length));for(;!i.next().done;)n(i.value.from,i.value.to)}},Po=Ct.define(),hh=Ct.define(),Is=Yt.define({create(r){return new Ao(ch(r).create(),null)},update(r,e){for(let t of e.effects)t.is(Po)?r=new Ao(t.value.create(),r.panel):t.is(hh)&&(r=new Ao(r.query,t.value?dh:null));return r},provide:r=>ri.from(r,e=>e.panel)});var Ao=class{constructor(e,t){this.query=e,this.panel=t}},A5=yt.mark({class:"cm-searchMatch"}),P5=yt.mark({class:"cm-searchMatch cm-searchMatch-selected"}),T5=rr.fromClass(class{constructor(r){this.view=r,this.decorations=this.highlight(r.state.field(Is))}update(r){let e=r.state.field(Is);(e!=r.startState.field(Is)||r.docChanged||r.selectionSet||r.viewportChanged)&&(this.decorations=this.highlight(e))}highlight({query:r,panel:e}){if(!e||!r.spec.valid)return yt.none;let{view:t}=this,s=new In;for(let n=0,i=t.visibleRanges,a=i.length;ni[n+1].from-2*250;)o=i[++n].to;r.highlight(t.state,l,o,(u,c)=>{let p=t.state.selection.ranges.some(h=>h.from==u&&h.to==c);s.add(u,c,p?P5:A5)})}return s.finish()}},{decorations:r=>r.decorations});function To(r){return e=>{let t=e.state.field(Is,!1);return t&&t.query.spec.valid?r(e,t):ik(e)}}var _u=To((r,{query:e})=>{let{to:t}=r.state.selection.main,s=e.nextMatch(r.state,t,t);if(!s)return!1;let n=ze.single(s.from,s.to),i=r.state.facet(ia);return r.dispatch({selection:n,effects:[mh(r,s),i.scrollToMatch(n.main,r)],userEvent:"select.search"}),sk(r),!0}),Iu=To((r,{query:e})=>{let{state:t}=r,{from:s}=t.selection.main,n=e.prevMatch(t,s,s);if(!n)return!1;let i=ze.single(n.from,n.to),a=r.state.facet(ia);return r.dispatch({selection:i,effects:[mh(r,n),a.scrollToMatch(i.main,r)],userEvent:"select.search"}),sk(r),!0}),D5=To((r,{query:e})=>{let t=e.matchAll(r.state,1e3);return!t||!t.length?!1:(r.dispatch({selection:ze.create(t.map(s=>ze.range(s.from,s.to))),userEvent:"select.search.matches"}),!0)}),_5=({state:r,dispatch:e})=>{let t=r.selection;if(t.ranges.length>1||t.main.empty)return!1;let{from:s,to:n}=t.main,i=[],a=0;for(let l=new Rs(r.doc,r.sliceDoc(s,n));!l.next().done;){if(i.length>1e3)return!1;l.value.from==s&&(a=i.length),i.push(ze.range(l.value.from,l.value.to))}return e(r.update({selection:ze.create(i,a),userEvent:"select.search.matches"})),!0},JC=To((r,{query:e})=>{let{state:t}=r,{from:s,to:n}=t.selection.main;if(t.readOnly)return!1;let i=e.nextMatch(t,s,s);if(!i)return!1;let a=[],l,o,u=[];if(i.from==s&&i.to==n&&(o=t.toText(e.getReplacement(i)),a.push({from:i.from,to:i.to,insert:o}),i=e.nextMatch(t,i.from,i.to),u.push(at.announce.of(t.phrase("replaced match on line $",t.doc.lineAt(s).number)+"."))),i){let c=a.length==0||a[0].from>=i.to?0:i.to-i.from-o.length;l=ze.single(i.from-c,i.to-c),u.push(mh(r,i)),u.push(t.facet(ia).scrollToMatch(l.main,r))}return r.dispatch({changes:a,selection:l,effects:u,userEvent:"input.replace"}),!0}),I5=To((r,{query:e})=>{if(r.state.readOnly)return!1;let t=e.matchAll(r.state,1e9).map(n=>{let{from:i,to:a}=n;return{from:i,to:a,insert:e.getReplacement(n)}});if(!t.length)return!1;let s=r.state.phrase("replaced $ matches",t.length)+".";return r.dispatch({changes:t,effects:at.announce.of(s),userEvent:"input.replace.all"}),!0});function dh(r){return r.state.facet(ia).createPanel(r)}function ch(r,e){var t,s,n,i,a;let l=r.selection.main,o=l.empty||l.to>l.from+100?"":r.sliceDoc(l.from,l.to);if(e&&!o)return e;let u=r.facet(ia);return new Au({search:((t=e?.literal)!==null&&t!==void 0?t:u.literal)?o:o.replace(/\n/g,"\\n"),caseSensitive:(s=e?.caseSensitive)!==null&&s!==void 0?s:u.caseSensitive,literal:(n=e?.literal)!==null&&n!==void 0?n:u.literal,regexp:(i=e?.regexp)!==null&&i!==void 0?i:u.regexp,wholeWord:(a=e?.wholeWord)!==null&&a!==void 0?a:u.wholeWord})}function nk(r){let e=Zi(r,dh);return e&&e.dom.querySelector("[main-field]")}function sk(r){let e=nk(r);e&&e==r.root.activeElement&&e.select()}var ik=r=>{let e=r.state.field(Is,!1);if(e&&e.panel){let t=nk(r);if(t&&t!=r.root.activeElement){let s=ch(r.state,e.query.spec);s.valid&&r.dispatch({effects:Po.of(s)}),t.focus(),t.select()}}else r.dispatch({effects:[hh.of(!0),e?Po.of(ch(r.state,e.query.spec)):Ct.appendConfig.of(F5)]});return!0},ak=r=>{let e=r.state.field(Is,!1);if(!e||!e.panel)return!1;let t=Zi(r,dh);return t&&t.dom.contains(r.root.activeElement)&&r.focus(),r.dispatch({effects:hh.of(!1)}),!0},ok=[{key:"Mod-f",run:ik,scope:"editor search-panel"},{key:"F3",run:_u,shift:Iu,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:_u,shift:Iu,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:ak,scope:"editor search-panel"},{key:"Mod-Shift-l",run:_5},{key:"Mod-Alt-g",run:d5},{key:"Mod-d",run:w5,preventDefault:!0}],fh=class{constructor(e){this.view=e;let t=this.query=e.state.field(Is).query.spec;this.commit=this.commit.bind(this),this.searchField=Vt("input",{value:t.search,placeholder:Hr(e,"Find"),"aria-label":Hr(e,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=Vt("input",{value:t.replace,placeholder:Hr(e,"Replace"),"aria-label":Hr(e,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=Vt("input",{type:"checkbox",name:"case",form:"",checked:t.caseSensitive,onchange:this.commit}),this.reField=Vt("input",{type:"checkbox",name:"re",form:"",checked:t.regexp,onchange:this.commit}),this.wordField=Vt("input",{type:"checkbox",name:"word",form:"",checked:t.wholeWord,onchange:this.commit});function s(n,i,a){return Vt("button",{class:"cm-button",name:n,onclick:i,type:"button"},a)}this.dom=Vt("div",{onkeydown:n=>this.keydown(n),class:"cm-search"},[this.searchField,s("next",()=>_u(e),[Hr(e,"next")]),s("prev",()=>Iu(e),[Hr(e,"previous")]),s("select",()=>D5(e),[Hr(e,"all")]),Vt("label",null,[this.caseField,Hr(e,"match case")]),Vt("label",null,[this.reField,Hr(e,"regexp")]),Vt("label",null,[this.wordField,Hr(e,"by word")]),...e.state.readOnly?[]:[Vt("br"),this.replaceField,s("replace",()=>JC(e),[Hr(e,"replace")]),s("replaceAll",()=>I5(e),[Hr(e,"replace all")])],Vt("button",{name:"close",onclick:()=>ak(e),"aria-label":Hr(e,"close"),type:"button"},["\xD7"])])}commit(){let e=new Au({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});e.eq(this.query)||(this.query=e,this.view.dispatch({effects:Po.of(e)}))}keydown(e){gw(this.view,e,"search-panel")?e.preventDefault():e.keyCode==13&&e.target==this.searchField?(e.preventDefault(),(e.shiftKey?Iu:_u)(this.view)):e.keyCode==13&&e.target==this.replaceField&&(e.preventDefault(),JC(this.view))}update(e){for(let t of e.transactions)for(let s of t.effects)s.is(Po)&&!s.value.eq(this.query)&&this.setQuery(s.value)}setQuery(e){this.query=e,this.searchField.value=e.search,this.replaceField.value=e.replace,this.caseField.checked=e.caseSensitive,this.reField.checked=e.regexp,this.wordField.checked=e.wholeWord}mount(){this.searchField.select()}get pos(){return 80}get top(){return this.view.state.facet(ia).top}};function Hr(r,e){return r.state.phrase(e)}var xu=30,Ou=/[\s\.,:;?!]/;function mh(r,{from:e,to:t}){let s=r.state.doc.lineAt(e),n=r.state.doc.lineAt(t).to,i=Math.max(s.from,e-xu),a=Math.min(n,t+xu),l=r.state.sliceDoc(i,a);if(i!=s.from){for(let o=0;ol.length-xu;o--)if(!Ou.test(l[o-1])&&Ou.test(l[o])){l=l.slice(0,o);break}}return at.announce.of(`${r.state.phrase("current match")}. ${l} ${r.state.phrase("on line")} ${s.number}.`)}var R5=at.baseTheme({".cm-panel.cm-search":{padding:"2px 6px 4px",position:"relative","& [name=close]":{position:"absolute",top:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:0,margin:0},"& input, & button, & label":{margin:".2em .6em .2em 0"},"& input[type=checkbox]":{marginRight:".2em"},"& label":{fontSize:"80%",whiteSpace:"pre"}},"&light .cm-searchMatch":{backgroundColor:"#ffff0054"},"&dark .cm-searchMatch":{backgroundColor:"#00ffff8a"},"&light .cm-searchMatch-selected":{backgroundColor:"#ff6a0054"},"&dark .cm-searchMatch-selected":{backgroundColor:"#ff00ff8a"}}),F5=[Is,rn.low(T5),R5];var Fu=class{constructor(e,t,s){this.state=e,this.pos=t,this.explicit=s,this.abortListeners=[]}tokenBefore(e){let t=pr(this.state).resolveInner(this.pos,-1);for(;t&&e.indexOf(t.name)<0;)t=t.parent;return t?{from:t.from,to:this.pos,text:this.state.sliceDoc(t.from,this.pos),type:t.type}:null}matchBefore(e){let t=this.state.doc.lineAt(this.pos),s=Math.max(t.from,this.pos-250),n=t.text.slice(s-t.from,this.pos-t.from),i=n.search(yk(e,!1));return i<0?null:{from:s+i,to:this.pos,text:n.slice(i)}}get aborted(){return this.abortListeners==null}addEventListener(e,t){e=="abort"&&this.abortListeners&&this.abortListeners.push(t)}};function lk(r){let e=Object.keys(r).join(""),t=/\w/.test(e);return t&&(e=e.replace(/\w/g,"")),`[${t?"\\w":""}${e.replace(/[^\w\s]/g,"\\$&")}]`}function B5(r){let e=Object.create(null),t=Object.create(null);for(let{label:n}of r){e[n[0]]=!0;for(let i=1;itypeof n=="string"?{label:n}:n),[t,s]=e.every(n=>/^\w+$/.test(n.label))?[/\w*$/,/\w+$/]:B5(e);return n=>{let i=n.matchBefore(s);return i||n.explicit?{from:i?i.from:n.pos,options:e,validFor:t}:null}}function gk(r,e){return t=>{for(let s=pr(t.state).resolveInner(t.pos,-1);s;s=s.parent){if(r.indexOf(s.name)>-1)return null;if(s.type.isTop)break}return e(t)}}var Bu=class{constructor(e,t,s,n){this.completion=e,this.source=t,this.match=s,this.score=n}};function Fs(r){return r.selection.main.from}function yk(r,e){var t;let{source:s}=r,n=e&&s[0]!="^",i=s[s.length-1]!="$";return!n&&!i?r:new RegExp(`${n?"^":""}(?:${s})${i?"$":""}`,(t=r.flags)!==null&&t!==void 0?t:r.ignoreCase?"i":"")}var Th=Mr.define();function N5(r,e,t,s){let{main:n}=r.selection,i=t-n.from,a=s-n.from;return Object.assign(Object.assign({},r.changeByRange(l=>l!=n&&t!=s&&r.sliceDoc(l.from+i,l.from+a)!=r.sliceDoc(t,s)?{range:l}:{changes:{from:l.from+i,to:s==n.from?l.to:l.from+a,insert:e},range:ze.cursor(l.from+i+e.length)})),{scrollIntoView:!0,userEvent:"input.complete"})}var uk=new WeakMap;function L5(r){if(!Array.isArray(r))return r;let e=uk.get(r);return e||uk.set(r,e=Ph(r)),e}var Nu=Ct.define(),Do=Ct.define(),bh=class{constructor(e){this.pattern=e,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[],this.score=0,this.matched=[];for(let t=0;t=48&&w<=57||w>=97&&w<=122?2:w>=65&&w<=90?1:0:(O=Za(w))!=O.toLowerCase()?1:O!=O.toUpperCase()?2:0;(!v||C==1&&g||S==0&&C!=0)&&(t[p]==w||s[p]==w&&(h=!0)?a[p++]=v:a.length&&(y=!1)),S=C,v+=$r(w)}return p==o&&a[0]==0&&y?this.result(-100+(h?-200:0),a,e):f==o&&d==0?this.ret(-200-e.length+(m==e.length?0:-100),[0,m]):l>-1?this.ret(-700-e.length,[l,l+this.pattern.length]):f==o?this.ret(-900-e.length,[d,m]):p==o?this.result(-100+(h?-200:0)+-700+(y?0:-1100),a,e):t.length==2?null:this.result((n[0]?-700:0)+-200+-1100,n,e)}result(e,t,s){let n=[],i=0;for(let a of t){let l=a+(this.astral?$r(gr(s,a)):1);i&&n[i-1]==a?n[i-1]=l:(n[i++]=a,n[i++]=l)}return this.ret(e-s.length,n)}},vh=class{constructor(e){this.pattern=e,this.matched=[],this.score=0,this.folded=e.toLowerCase()}match(e){if(e.length!1,activateOnTypingDelay:100,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,tooltipClass:()=>"",optionClass:()=>"",aboveCursor:!1,icons:!0,addToOptions:[],positionInfo:$5,filterStrict:!1,compareCompletions:(e,t)=>e.label.localeCompare(t.label),interactionDelay:75,updateSyncTime:100},{defaultKeymap:(e,t)=>e&&t,closeOnBlur:(e,t)=>e&&t,icons:(e,t)=>e&&t,tooltipClass:(e,t)=>s=>ck(e(s),t(s)),optionClass:(e,t)=>s=>ck(e(s),t(s)),addToOptions:(e,t)=>e.concat(t),filterStrict:(e,t)=>e||t})}});function ck(r,e){return r?e?r+" "+e:r:e}function $5(r,e,t,s,n,i){let a=r.textDirection==zt.RTL,l=a,o=!1,u="top",c,p,h=e.left-n.left,f=n.right-e.right,d=s.right-s.left,m=s.bottom-s.top;if(l&&h=m||v>e.top?c=t.bottom-e.top:(u="bottom",c=e.bottom-t.top)}let g=(e.bottom-e.top)/i.offsetHeight,y=(e.right-e.left)/i.offsetWidth;return{style:`${u}: ${c/g}px; max-width: ${p/y}px`,class:"cm-completionInfo-"+(o?a?"left-narrow":"right-narrow":l?"left":"right")}}function M5(r){let e=r.addToOptions.slice();return r.icons&&e.push({render(t){let s=document.createElement("div");return s.classList.add("cm-completionIcon"),t.type&&s.classList.add(...t.type.split(/\s+/g).map(n=>"cm-completionIcon-"+n)),s.setAttribute("aria-hidden","true"),s},position:20}),e.push({render(t,s,n,i){let a=document.createElement("span");a.className="cm-completionLabel";let l=t.displayLabel||t.label,o=0;for(let u=0;uo&&a.appendChild(document.createTextNode(l.slice(o,c)));let h=a.appendChild(document.createElement("span"));h.appendChild(document.createTextNode(l.slice(c,p))),h.className="cm-completionMatchedText",o=p}return ot.position-s.position).map(t=>t.render)}function gh(r,e,t){if(r<=t)return{from:0,to:r};if(e<0&&(e=0),e<=r>>1){let n=Math.floor(e/t);return{from:n*t,to:(n+1)*t}}let s=Math.floor((r-e)/t);return{from:r-(s+1)*t,to:r-s*t}}var xh=class{constructor(e,t,s){this.view=e,this.stateField=t,this.applyCompletion=s,this.info=null,this.infoDestroy=null,this.placeInfoReq={read:()=>this.measureInfo(),write:o=>this.placeInfo(o),key:this},this.space=null,this.currentClass="";let n=e.state.field(t),{options:i,selected:a}=n.open,l=e.state.facet(Sr);this.optionContent=M5(l),this.optionClass=l.optionClass,this.tooltipClass=l.tooltipClass,this.range=gh(i.length,a,l.maxRenderedOptions),this.dom=document.createElement("div"),this.dom.className="cm-tooltip-autocomplete",this.updateTooltipClass(e.state),this.dom.addEventListener("mousedown",o=>{let{options:u}=e.state.field(t).open;for(let c=o.target,p;c&&c!=this.dom;c=c.parentNode)if(c.nodeName=="LI"&&(p=/-(\d+)$/.exec(c.id))&&+p[1]{let u=e.state.field(this.stateField,!1);u&&u.tooltip&&e.state.facet(Sr).closeOnBlur&&o.relatedTarget!=e.contentDOM&&e.dispatch({effects:Do.of(null)})}),this.showOptions(i,n.id)}mount(){this.updateSel()}showOptions(e,t){this.list&&this.list.remove(),this.list=this.dom.appendChild(this.createListBox(e,t,this.range)),this.list.addEventListener("scroll",()=>{this.info&&this.view.requestMeasure(this.placeInfoReq)})}update(e){var t;let s=e.state.field(this.stateField),n=e.startState.field(this.stateField);if(this.updateTooltipClass(e.state),s!=n){let{options:i,selected:a,disabled:l}=s.open;(!n.open||n.open.options!=i)&&(this.range=gh(i.length,a,e.state.facet(Sr).maxRenderedOptions),this.showOptions(i,s.id)),this.updateSel(),l!=((t=n.open)===null||t===void 0?void 0:t.disabled)&&this.dom.classList.toggle("cm-tooltip-autocomplete-disabled",!!l)}}updateTooltipClass(e){let t=this.tooltipClass(e);if(t!=this.currentClass){for(let s of this.currentClass.split(" "))s&&this.dom.classList.remove(s);for(let s of t.split(" "))s&&this.dom.classList.add(s);this.currentClass=t}}positioned(e){this.space=e,this.info&&this.view.requestMeasure(this.placeInfoReq)}updateSel(){let e=this.view.state.field(this.stateField),t=e.open;if((t.selected>-1&&t.selected=this.range.to)&&(this.range=gh(t.options.length,t.selected,this.view.state.facet(Sr).maxRenderedOptions),this.showOptions(t.options,e.id)),this.updateSelectedOption(t.selected)){this.destroyInfo();let{completion:s}=t.options[t.selected],{info:n}=s;if(!n)return;let i=typeof n=="string"?document.createTextNode(n):n(s);if(!i)return;"then"in i?i.then(a=>{a&&this.view.state.field(this.stateField,!1)==e&&this.addInfoPane(a,s)}).catch(a=>yr(this.view.state,a,"completion info")):this.addInfoPane(i,s)}}addInfoPane(e,t){this.destroyInfo();let s=this.info=document.createElement("div");if(s.className="cm-tooltip cm-completionInfo",e.nodeType!=null)s.appendChild(e),this.infoDestroy=null;else{let{dom:n,destroy:i}=e;s.appendChild(n),this.infoDestroy=i||null}this.dom.appendChild(s),this.view.requestMeasure(this.placeInfoReq)}updateSelectedOption(e){let t=null;for(let s=this.list.firstChild,n=this.range.from;s;s=s.nextSibling,n++)s.nodeName!="LI"||!s.id?n--:n==e?s.hasAttribute("aria-selected")||(s.setAttribute("aria-selected","true"),t=s):s.hasAttribute("aria-selected")&&s.removeAttribute("aria-selected");return t&&q5(this.list,t),t}measureInfo(){let e=this.dom.querySelector("[aria-selected]");if(!e||!this.info)return null;let t=this.dom.getBoundingClientRect(),s=this.info.getBoundingClientRect(),n=e.getBoundingClientRect(),i=this.space;if(!i){let a=this.dom.ownerDocument.defaultView||window;i={left:0,top:0,right:a.innerWidth,bottom:a.innerHeight}}return n.top>Math.min(i.bottom,t.bottom)-10||n.bottoms.from||s.from==0))if(i=h,typeof u!="string"&&u.header)n.appendChild(u.header(u));else{let f=n.appendChild(document.createElement("completion-section"));f.textContent=h}}let c=n.appendChild(document.createElement("li"));c.id=t+"-"+a,c.setAttribute("role","option");let p=this.optionClass(l);p&&(c.className=p);for(let h of this.optionContent){let f=h(l,this.view.state,this.view,o);f&&c.appendChild(f)}}return s.from&&n.classList.add("cm-completionListIncompleteTop"),s.tonew xh(t,r,e)}function q5(r,e){let t=r.getBoundingClientRect(),s=e.getBoundingClientRect(),n=t.height/r.offsetHeight;s.topt.bottom&&(r.scrollTop+=(s.bottom-t.bottom)/n)}function fk(r){return(r.boost||0)*100+(r.apply?10:0)+(r.info?5:0)+(r.type?1:0)}function Q5(r,e){let t=[],s=null,n=u=>{t.push(u);let{section:c}=u.completion;if(c){s||(s=[]);let p=typeof c=="string"?c:c.name;s.some(h=>h.name==p)||s.push(typeof c=="string"?{name:p}:c)}},i=e.facet(Sr);for(let u of r)if(u.hasResult()){let c=u.result.getMatch;if(u.result.filter===!1)for(let p of u.result.options)n(new Bu(p,u.source,c?c(p):[],1e9-t.length));else{let p=e.sliceDoc(u.from,u.to),h,f=i.filterStrict?new vh(p):new bh(p);for(let d of u.result.options)if(h=f.match(d.label)){let m=d.displayLabel?c?c(d,h.matched):[]:h.matched;n(new Bu(d,u.source,m,h.score+(d.boost||0)))}}}if(s){let u=Object.create(null),c=0,p=(h,f)=>{var d,m;return((d=h.rank)!==null&&d!==void 0?d:1e9)-((m=f.rank)!==null&&m!==void 0?m:1e9)||(h.namep.score-c.score||o(c.completion,p.completion))){let c=u.completion;!l||l.label!=c.label||l.detail!=c.detail||l.type!=null&&c.type!=null&&l.type!=c.type||l.apply!=c.apply||l.boost!=c.boost?a.push(u):fk(u.completion)>fk(l)&&(a[a.length-1]=u),l=u.completion}return a}var Oh=class r{constructor(e,t,s,n,i,a){this.options=e,this.attrs=t,this.tooltip=s,this.timestamp=n,this.selected=i,this.disabled=a}setSelected(e,t){return e==this.selected||e>=this.options.length?this:new r(this.options,pk(t,e),this.tooltip,this.timestamp,e,this.disabled)}static build(e,t,s,n,i){let a=Q5(e,t);if(!a.length)return n&&e.some(o=>o.state==1)?new r(n.options,n.attrs,n.tooltip,n.timestamp,n.selected,!0):null;let l=t.facet(Sr).selectOnOpen?0:-1;if(n&&n.selected!=l&&n.selected!=-1){let o=n.options[n.selected].completion;for(let u=0;uu.hasResult()?Math.min(o,u.from):o,1e8),create:Z5,above:i.aboveCursor},n?n.timestamp:Date.now(),l,!1)}map(e){return new r(this.options,this.attrs,Object.assign(Object.assign({},this.tooltip),{pos:e.mapPos(this.tooltip.pos)}),this.timestamp,this.selected,this.disabled)}},Sh=class r{constructor(e,t,s){this.active=e,this.id=t,this.open=s}static start(){return new r(W5,"cm-ac-"+Math.floor(Math.random()*2e6).toString(36),null)}update(e){let{state:t}=e,s=t.facet(Sr),i=(s.override||t.languageDataAt("autocomplete",Fs(t)).map(L5)).map(l=>(this.active.find(u=>u.source==l)||new Un(l,this.active.some(u=>u.state!=0)?1:0)).update(e,s));i.length==this.active.length&&i.every((l,o)=>l==this.active[o])&&(i=this.active);let a=this.open;a&&e.docChanged&&(a=a.map(e.changes)),e.selection||i.some(l=>l.hasResult()&&e.changes.touchesRange(l.from,l.to))||!U5(i,this.active)?a=Oh.build(i,t,this.id,a,s):a&&a.disabled&&!i.some(l=>l.state==1)&&(a=null),!a&&i.every(l=>l.state!=1)&&i.some(l=>l.hasResult())&&(i=i.map(l=>l.hasResult()?new Un(l.source,0):l));for(let l of e.effects)l.is(vk)&&(a=a&&a.setSelected(l.value,this.id));return i==this.active&&a==this.open?this:new r(i,this.id,a)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:V5}};function U5(r,e){if(r==e)return!0;for(let t=0,s=0;;){for(;t-1&&(t["aria-activedescendant"]=r+"-"+e),t}var W5=[];function Eh(r,e){if(r.isUserEvent("input.complete")){let t=r.annotation(Th);if(t&&e.activateOnCompletion(t))return"input"}return r.isUserEvent("input.type")?"input":r.isUserEvent("delete.backward")?"delete":null}var Un=class r{constructor(e,t,s=-1){this.source=e,this.state=t,this.explicitPos=s}hasResult(){return!1}update(e,t){let s=Eh(e,t),n=this;s?n=n.handleUserEvent(e,s,t):e.docChanged?n=n.handleChange(e):e.selection&&n.state!=0&&(n=new r(n.source,0));for(let i of e.effects)if(i.is(Nu))n=new r(n.source,1,i.value?Fs(e.state):-1);else if(i.is(Do))n=new r(n.source,0);else if(i.is(bk))for(let a of i.value)a.source==n.source&&(n=a);return n}handleUserEvent(e,t,s){return t=="delete"||!s.activateOnTyping?this.map(e.changes):new r(this.source,1)}handleChange(e){return e.changes.touchesRange(Fs(e.startState))?new r(this.source,0):this.map(e.changes)}map(e){return e.empty||this.explicitPos<0?this:new r(this.source,this.state,e.mapPos(this.explicitPos))}},Lu=class r extends Un{constructor(e,t,s,n,i){super(e,2,t),this.result=s,this.from=n,this.to=i}hasResult(){return!0}handleUserEvent(e,t,s){var n;let i=this.result;i.map&&!e.changes.empty&&(i=i.map(i,e.changes));let a=e.changes.mapPos(this.from),l=e.changes.mapPos(this.to,1),o=Fs(e.state);if((this.explicitPos<0?o<=a:ol||!i||t=="delete"&&Fs(e.startState)==this.from)return new Un(this.source,t=="input"&&s.activateOnTyping?1:0);let u=this.explicitPos<0?-1:e.changes.mapPos(this.explicitPos);return z5(i.validFor,e.state,a,l)?new r(this.source,u,i,a,l):i.update&&(i=i.update(i,a,l,new Fu(e.state,o,u>=0)))?new r(this.source,u,i,i.from,(n=i.to)!==null&&n!==void 0?n:Fs(e.state)):new Un(this.source,1,u)}handleChange(e){return e.changes.touchesRange(this.from,this.to)?new Un(this.source,0):this.map(e.changes)}map(e){return e.empty?this:(this.result.map?this.result.map(this.result,e):this.result)?new r(this.source,this.explicitPos<0?-1:e.mapPos(this.explicitPos),this.result,e.mapPos(this.from),e.mapPos(this.to,1)):new Un(this.source,0)}};function z5(r,e,t,s){if(!r)return!1;let n=e.sliceDoc(t,s);return typeof r=="function"?r(n,t,s,e):yk(r,!0).test(n)}var bk=Ct.define({map(r,e){return r.map(t=>t.map(e))}}),vk=Ct.define(),jr=Yt.define({create(){return Sh.start()},update(r,e){return r.update(e)},provide:r=>[zi.from(r,e=>e.tooltip),at.contentAttributes.from(r,e=>e.attrs)]});function Dh(r,e){let t=e.completion.apply||e.completion.label,s=r.state.field(jr).active.find(n=>n.source==e.source);return s instanceof Lu?(typeof t=="string"?r.dispatch(Object.assign(Object.assign({},N5(r.state,t,s.from,s.to)),{annotations:Th.of(e.completion)})):t(r,e.completion,s.from,s.to),!0):!1}var Z5=j5(jr,Dh);function Ru(r,e="option"){return t=>{let s=t.state.field(jr,!1);if(!s||!s.open||s.open.disabled||Date.now()-s.open.timestamp-1?s.open.selected+n*(r?1:-1):r?0:a-1;return l<0?l=e=="page"?0:a-1:l>=a&&(l=e=="page"?a-1:0),t.dispatch({effects:vk.of(l)}),!0}}var G5=r=>{let e=r.state.field(jr,!1);return r.state.readOnly||!e||!e.open||e.open.selected<0||e.open.disabled||Date.now()-e.open.timestampr.state.field(jr,!1)?(r.dispatch({effects:Nu.of(!0)}),!0):!1,Y5=r=>{let e=r.state.field(jr,!1);return!e||!e.active.some(t=>t.state!=0)?!1:(r.dispatch({effects:Do.of(null)}),!0)},wh=class{constructor(e,t){this.active=e,this.context=t,this.time=Date.now(),this.updates=[],this.done=void 0}},H5=50,K5=1e3,J5=rr.fromClass(class{constructor(r){this.view=r,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.pendingStart=!1,this.composing=0;for(let e of r.state.field(jr).active)e.state==1&&this.startQuery(e)}update(r){let e=r.state.field(jr),t=r.state.facet(Sr);if(!r.selectionSet&&!r.docChanged&&r.startState.field(jr)==e)return;let s=r.transactions.some(i=>(i.selection||i.docChanged)&&!Eh(i,t));for(let i=0;iH5&&Date.now()-a.time>K5){for(let l of a.context.abortListeners)try{l()}catch(o){yr(this.view.state,o)}a.context.abortListeners=null,this.running.splice(i--,1)}else a.updates.push(...r.transactions)}this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),r.transactions.some(i=>i.effects.some(a=>a.is(Nu)))&&(this.pendingStart=!0);let n=this.pendingStart?50:t.activateOnTypingDelay;if(this.debounceUpdate=e.active.some(i=>i.state==1&&!this.running.some(a=>a.active.source==i.source))?setTimeout(()=>this.startUpdate(),n):-1,this.composing!=0)for(let i of r.transactions)Eh(i,t)=="input"?this.composing=2:this.composing==2&&i.selection&&(this.composing=3)}startUpdate(){this.debounceUpdate=-1,this.pendingStart=!1;let{state:r}=this.view,e=r.field(jr);for(let t of e.active)t.state==1&&!this.running.some(s=>s.active.source==t.source)&&this.startQuery(t)}startQuery(r){let{state:e}=this.view,t=Fs(e),s=new Fu(e,t,r.explicitPos==t),n=new wh(r,s);this.running.push(n),Promise.resolve(r.source(s)).then(i=>{n.context.aborted||(n.done=i||null,this.scheduleAccept())},i=>{this.view.dispatch({effects:Do.of(null)}),yr(this.view.state,i)})}scheduleAccept(){this.running.every(r=>r.done!==void 0)?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(Sr).updateSyncTime))}accept(){var r;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let e=[],t=this.view.state.facet(Sr);for(let s=0;sa.source==n.active.source);if(i&&i.state==1)if(n.done==null){let a=new Un(n.active.source,0);for(let l of n.updates)a=a.update(l,t);a.state!=1&&e.push(a)}else this.startQuery(i)}e.length&&this.view.dispatch({effects:bk.of(e)})}},{eventHandlers:{blur(r){let e=this.view.state.field(jr,!1);if(e&&e.tooltip&&this.view.state.facet(Sr).closeOnBlur){let t=e.open&&kp(this.view,e.open.tooltip);(!t||!t.dom.contains(r.relatedTarget))&&setTimeout(()=>this.view.dispatch({effects:Do.of(null)}),10)}},compositionstart(){this.composing=1},compositionend(){this.composing==3&&setTimeout(()=>this.view.dispatch({effects:Nu.of(!1)}),20),this.composing=0}}}),eQ=typeof navigator=="object"&&/Win/.test(navigator.platform),tQ=rn.highest(at.domEventHandlers({keydown(r,e){let t=e.state.field(jr,!1);if(!t||!t.open||t.open.disabled||t.open.selected<0||r.key.length>1||r.ctrlKey&&!(eQ&&r.altKey)||r.metaKey)return!1;let s=t.open.options[t.open.selected],n=t.active.find(a=>a.source==s.source),i=s.completion.commitCharacters||n.result.commitCharacters;return i&&i.indexOf(r.key)>-1&&Dh(e,s),!1}})),xk=at.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",height:"100%",listStyle:"none",margin:0,padding:0,"& > li, & > completion-section":{padding:"1px 3px",lineHeight:1.2},"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer"},"& > completion-section":{display:"list-item",borderBottom:"1px solid silver",paddingLeft:"0.5em",opacity:.7}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#777"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#444"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"\xB7\xB7\xB7"',opacity:.5,display:"block",textAlign:"center"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"400px",boxSizing:"border-box"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},".cm-completionInfo.cm-completionInfo-left-narrow":{right:"30px"},".cm-completionInfo.cm-completionInfo-right-narrow":{left:"30px"},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",display:"inline-block",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6",boxSizing:"content-box"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'\u0192'"}},".cm-completionIcon-class":{"&:after":{content:"'\u25CB'"}},".cm-completionIcon-interface":{"&:after":{content:"'\u25CC'"}},".cm-completionIcon-variable":{"&:after":{content:"'\u{1D465}'"}},".cm-completionIcon-constant":{"&:after":{content:"'\u{1D436}'"}},".cm-completionIcon-type":{"&:after":{content:"'\u{1D461}'"}},".cm-completionIcon-enum":{"&:after":{content:"'\u222A'"}},".cm-completionIcon-property":{"&:after":{content:"'\u25A1'"}},".cm-completionIcon-keyword":{"&:after":{content:"'\u{1F511}\uFE0E'"}},".cm-completionIcon-namespace":{"&:after":{content:"'\u25A2'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}}),Ch=class{constructor(e,t,s,n){this.field=e,this.line=t,this.from=s,this.to=n}},kh=class r{constructor(e,t,s){this.field=e,this.from=t,this.to=s}map(e){let t=e.mapPos(this.from,-1,fr.TrackDel),s=e.mapPos(this.to,1,fr.TrackDel);return t==null||s==null?null:new r(this.field,t,s)}},Ah=class r{constructor(e,t){this.lines=e,this.fieldPositions=t}instantiate(e,t){let s=[],n=[t],i=e.doc.lineAt(t),a=/^\s*/.exec(i.text)[0];for(let o of this.lines){if(s.length){let u=a,c=/^\t*/.exec(o)[0].length;for(let p=0;pnew kh(o.field,n[o.line]+o.from,n[o.line]+o.to));return{text:s,ranges:l}}static parse(e){let t=[],s=[],n=[],i;for(let a of e.split(/\r\n?|\n/)){for(;i=/[#$]\{(?:(\d+)(?::([^}]*))?|([^}]*))\}/.exec(a);){let l=i[1]?+i[1]:null,o=i[2]||i[3]||"",u=-1;for(let c=0;c=u&&p.field++}n.push(new Ch(u,s.length,i.index,i.index+o.length)),a=a.slice(0,i.index)+o+a.slice(i.index+i[0].length)}for(let l;l=/\\([{}])/.exec(a);){a=a.slice(0,l.index)+l[1]+a.slice(l.index+l[0].length);for(let o of n)o.line==s.length&&o.from>l.index&&(o.from--,o.to--)}s.push(a)}return new r(s,n)}},rQ=yt.widget({widget:new class extends an{toDOM(){let r=document.createElement("span");return r.className="cm-snippetFieldPosition",r}ignoreEvent(){return!1}}}),nQ=yt.mark({class:"cm-snippetField"}),aa=class r{constructor(e,t){this.ranges=e,this.active=t,this.deco=yt.set(e.map(s=>(s.from==s.to?rQ:nQ).range(s.from,s.to)))}map(e){let t=[];for(let s of this.ranges){let n=s.map(e);if(!n)return null;t.push(n)}return new r(t,this.active)}selectionInsideField(e){return e.ranges.every(t=>this.ranges.some(s=>s.field==this.active&&s.from<=t.from&&s.to>=t.to))}},Io=Ct.define({map(r,e){return r&&r.map(e)}}),sQ=Ct.define(),_o=Yt.define({create(){return null},update(r,e){for(let t of e.effects){if(t.is(Io))return t.value;if(t.is(sQ)&&r)return new aa(r.ranges,t.value)}return r&&e.docChanged&&(r=r.map(e.changes)),r&&e.selection&&!r.selectionInsideField(e.selection)&&(r=null),r},provide:r=>at.decorations.from(r,e=>e?e.deco:yt.none)});function _h(r,e){return ze.create(r.filter(t=>t.field==e).map(t=>ze.range(t.from,t.to)))}function iQ(r){let e=Ah.parse(r);return(t,s,n,i)=>{let{text:a,ranges:l}=e.instantiate(t.state,n),o={changes:{from:n,to:i,insert:Rt.of(a)},scrollIntoView:!0,annotations:s?[Th.of(s),lr.userEvent.of("input.complete")]:void 0};if(l.length&&(o.selection=_h(l,0)),l.some(u=>u.field>0)){let u=new aa(l,0),c=o.effects=[Io.of(u)];t.state.field(_o,!1)===void 0&&c.push(Ct.appendConfig.of([_o,cQ,fQ,xk]))}t.dispatch(t.state.update(o))}}function Ok(r){return({state:e,dispatch:t})=>{let s=e.field(_o,!1);if(!s||r<0&&s.active==0)return!1;let n=s.active+r,i=r>0&&!s.ranges.some(a=>a.field==n+r);return t(e.update({selection:_h(s.ranges,n),effects:Io.of(i?null:new aa(s.ranges,n)),scrollIntoView:!0})),!0}}var aQ=({state:r,dispatch:e})=>r.field(_o,!1)?(e(r.update({effects:Io.of(null)})),!0):!1,oQ=Ok(1),lQ=Ok(-1);var uQ=[{key:"Tab",run:oQ,shift:lQ},{key:"Escape",run:aQ}],hk=ct.define({combine(r){return r.length?r[0]:uQ}}),cQ=rn.highest(As.compute([hk],r=>r.facet(hk)));function Rr(r,e){return Object.assign(Object.assign({},e),{apply:iQ(r)})}var fQ=at.domEventHandlers({mousedown(r,e){let t=e.state.field(_o,!1),s;if(!t||(s=e.posAtCoords({x:r.clientX,y:r.clientY}))==null)return!1;let n=t.ranges.find(i=>i.from<=s&&i.to>=s);return!n||n.field==t.active?!1:(e.dispatch({selection:_h(t.ranges,n.field),effects:Io.of(t.ranges.some(i=>i.field>n.field)?new aa(t.ranges,n.field):null),scrollIntoView:!0}),!0)}});var $u={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},li=Ct.define({map(r,e){let t=e.mapPos(r,-1,fr.TrackAfter);return t??void 0}}),Ih=new class extends yn{};Ih.startSide=1;Ih.endSide=-1;var Sk=Yt.define({create(){return Mt.empty},update(r,e){if(r=r.map(e.changes),e.selection){let t=e.state.doc.lineAt(e.selection.main.head);r=r.update({filter:s=>s>=t.from&&s<=t.to})}for(let t of e.effects)t.is(li)&&(r=r.update({add:[Ih.range(t.value,t.value+1)]}));return r}});function Ek(){return[mQ,Sk]}var yh="()[]{}<>";function pQ(r){for(let e=0;e{if((dQ?r.composing:r.compositionStarted)||r.state.readOnly)return!1;let n=r.state.selection.main;if(s.length>2||s.length==2&&$r(gr(s,0))==1||e!=n.from||t!=n.to)return!1;let i=gQ(r.state,s);return i?(r.dispatch(i),!0):!1});function gQ(r,e){let t=hQ(r,r.selection.main.head),s=t.brackets||$u.brackets;for(let n of s){let i=pQ(gr(n,0));if(e==n)return i==n?vQ(r,n,s.indexOf(n+n+n)>-1,t):yQ(r,n,i,t.before||$u.before);if(e==i&&wk(r,r.selection.main.from))return bQ(r,n,i)}return null}function wk(r,e){let t=!1;return r.field(Sk).between(0,r.doc.length,s=>{s==e&&(t=!0)}),t}function Rh(r,e){let t=r.sliceString(e,e+2);return t.slice(0,$r(gr(t,0)))}function yQ(r,e,t,s){let n=null,i=r.changeByRange(a=>{if(!a.empty)return{changes:[{insert:e,from:a.from},{insert:t,from:a.to}],effects:li.of(a.to+e.length),range:ze.range(a.anchor+e.length,a.head+e.length)};let l=Rh(r.doc,a.head);return!l||/\s/.test(l)||s.indexOf(l)>-1?{changes:{insert:e+t,from:a.head},effects:li.of(a.head+e.length),range:ze.cursor(a.head+e.length)}:{range:n=a}});return n?null:r.update(i,{scrollIntoView:!0,userEvent:"input.type"})}function bQ(r,e,t){let s=null,n=r.changeByRange(i=>i.empty&&Rh(r.doc,i.head)==t?{changes:{from:i.head,to:i.head+t.length,insert:t},range:ze.cursor(i.head+t.length)}:s={range:i});return s?null:r.update(n,{scrollIntoView:!0,userEvent:"input.type"})}function vQ(r,e,t,s){let n=s.stringPrefixes||$u.stringPrefixes,i=null,a=r.changeByRange(l=>{if(!l.empty)return{changes:[{insert:e,from:l.from},{insert:e,from:l.to}],effects:li.of(l.to+e.length),range:ze.range(l.anchor+e.length,l.head+e.length)};let o=l.head,u=Rh(r.doc,o),c;if(u==e){if(dk(r,o))return{changes:{insert:e+e,from:o},effects:li.of(o+e.length),range:ze.cursor(o+e.length)};if(wk(r,o)){let h=t&&r.sliceDoc(o,o+e.length*3)==e+e+e?e+e+e:e;return{changes:{from:o,to:o+h.length,insert:h},range:ze.cursor(o+h.length)}}}else{if(t&&r.sliceDoc(o-2*e.length,o)==e+e&&(c=mk(r,o-2*e.length,n))>-1&&dk(r,c))return{changes:{insert:e+e+e+e,from:o},effects:li.of(o+e.length),range:ze.cursor(o+e.length)};if(r.charCategorizer(o)(u)!=Wt.Word&&mk(r,o,n)>-1&&!xQ(r,o,e,n))return{changes:{insert:e+e,from:o},effects:li.of(o+e.length),range:ze.cursor(o+e.length)}}return{range:i=l}});return i?null:r.update(a,{scrollIntoView:!0,userEvent:"input.type"})}function dk(r,e){let t=pr(r).resolveInner(e+1);return t.parent&&t.from==e}function xQ(r,e,t,s){let n=pr(r).resolveInner(e,-1),i=s.reduce((a,l)=>Math.max(a,l.length),0);for(let a=0;a<5;a++){let l=r.sliceDoc(n.from,Math.min(n.to,n.from+t.length+i)),o=l.indexOf(t);if(!o||o>-1&&s.indexOf(l.slice(0,o))>-1){let c=n.firstChild;for(;c&&c.from==n.from&&c.to-c.from>t.length+o;){if(r.sliceDoc(c.to-t.length,c.to)==t)return!1;c=c.firstChild}return!0}let u=n.to==e&&n.parent;if(!u)break;n=u}return!1}function mk(r,e,t){let s=r.charCategorizer(e);if(s(r.sliceDoc(e-1,e))!=Wt.Word)return e;for(let n of t){let i=e-n.length;if(r.sliceDoc(i,e)==n&&s(r.sliceDoc(i-1,i))!=Wt.Word)return i}return-1}function Ck(r={}){return[tQ,jr,Sr.of(r),J5,SQ,xk]}var OQ=[{key:"Ctrl-Space",run:X5},{key:"Escape",run:Y5},{key:"ArrowDown",run:Ru(!0)},{key:"ArrowUp",run:Ru(!1)},{key:"PageDown",run:Ru(!0,"page")},{key:"PageUp",run:Ru(!1,"page")},{key:"Enter",run:G5}],SQ=rn.highest(As.computeN([Sr],r=>r.facet(Sr).defaultKeymap?[OQ]:[]));var Fh=class{constructor(e,t,s){this.from=e,this.to=t,this.diagnostic=s}},ui=class r{constructor(e,t,s){this.diagnostics=e,this.panel=t,this.selected=s}static init(e,t,s){let n=e,i=s.facet(Bs).markerFilter;i&&(n=i(n,s));let a=yt.set(n.map(l=>l.from==l.to||l.from==l.to-1&&s.doc.lineAt(l.from).to==l.from?yt.widget({widget:new Bh(l),diagnostic:l}).range(l.from):yt.mark({attributes:{class:"cm-lintRange cm-lintRange-"+l.severity+(l.markClass?" "+l.markClass:"")},diagnostic:l,inclusive:!0}).range(l.from,l.to)),!0);return new r(a,t,oa(a))}};function oa(r,e=null,t=0){let s=null;return r.between(t,1e9,(n,i,{spec:a})=>{if(!(e&&a.diagnostic!=e))return s=new Fh(n,i,a.diagnostic),!1}),s}function Pk(r,e){let t=e.pos,s=e.end||t,n=r.state.facet(Bs).hideOn(r,t,s);if(n!=null)return n;let i=r.startState.doc.lineAt(e.pos);return!!(r.effects.some(a=>a.is(Qu))||r.changes.touchesRange(i.from,Math.max(i.to,s)))}function EQ(r,e){return r.field(Sn,!1)?e:e.concat(Ct.appendConfig.of(Lk))}function wQ(r,e){return{effects:EQ(r,[Qu.of(e)])}}var Qu=Ct.define(),Tk=Ct.define(),Dk=Ct.define(),Sn=Yt.define({create(){return new ui(yt.none,null,null)},update(r,e){if(e.docChanged){let t=r.diagnostics.map(e.changes),s=null;if(r.selected){let n=e.changes.mapPos(r.selected.from,1);s=oa(t,r.selected.diagnostic,n)||oa(t,null,n)}r=new ui(t,r.panel,s)}for(let t of e.effects)t.is(Qu)?r=ui.init(t.value,r.panel,e.state):t.is(Tk)?r=new ui(r.diagnostics,t.value?Nh.open:null,r.selected):t.is(Dk)&&(r=new ui(r.diagnostics,r.panel,t.value));return r},provide:r=>[ri.from(r,e=>e.panel),at.decorations.from(r,e=>e.diagnostics)]});var CQ=yt.mark({class:"cm-lintRange cm-lintRange-active",inclusive:!0});function kQ(r,e,t){let{diagnostics:s}=r.state.field(Sn),n=[],i=2e8,a=0;s.between(e-(t<0?1:0),e+(t>0?1:0),(o,u,{spec:c})=>{e>=o&&e<=u&&(o==u||(e>o||t>0)&&(eFk(r,t,!1)))}var kk=r=>{let e=r.state.field(Sn,!1);return!e||!e.panel?!1:(r.dispatch({effects:Tk.of(!1)}),!0)};var AQ=rr.fromClass(class{constructor(r){this.view=r,this.timeout=-1,this.set=!0;let{delay:e}=r.state.facet(Bs);this.lintTime=Date.now()+e,this.run=this.run.bind(this),this.timeout=setTimeout(this.run,e)}run(){let r=Date.now();if(rPromise.resolve(s(this.view)))).then(s=>{let n=s.reduce((i,a)=>i.concat(a));this.view.state.doc==e.doc&&this.view.dispatch(wQ(this.view.state,n))},s=>{yr(this.view.state,s)})}}update(r){let e=r.state.facet(Bs);(r.docChanged||e!=r.startState.facet(Bs)||e.needsRefresh&&e.needsRefresh(r))&&(this.lintTime=Date.now()+e.delay,this.set||(this.set=!0,this.timeout=setTimeout(this.run,e.delay)))}force(){this.set&&(this.lintTime=Date.now(),this.run())}destroy(){clearTimeout(this.timeout)}}),Bs=ct.define({combine(r){return Object.assign({sources:r.map(e=>e.source).filter(e=>e!=null)},kr(r.map(e=>e.config),{delay:750,markerFilter:null,tooltipFilter:null,needsRefresh:null,hideOn:()=>null},{needsRefresh:(e,t)=>e?t?s=>e(s)||t(s):e:t}))}});function Ik(r,e={}){return[Bs.of({source:r,config:e}),AQ,Lk]}function Rk(r){let e=[];if(r)e:for(let{name:t}of r){for(let s=0;si.toLowerCase()==n.toLowerCase())){e.push(n);continue e}}e.push("")}return e}function Fk(r,e,t){var s;let n=t?Rk(e.actions):[];return Vt("li",{class:"cm-diagnostic cm-diagnostic-"+e.severity},Vt("span",{class:"cm-diagnosticText"},e.renderMessage?e.renderMessage(r):e.message),(s=e.actions)===null||s===void 0?void 0:s.map((i,a)=>{let l=!1,o=h=>{if(h.preventDefault(),l)return;l=!0;let f=oa(r.state.field(Sn).diagnostics,e);f&&i.apply(r,f.from,f.to)},{name:u}=i,c=n[a]?u.indexOf(n[a]):-1,p=c<0?u:[u.slice(0,c),Vt("u",u.slice(c,c+1)),u.slice(c+1)];return Vt("button",{type:"button",class:"cm-diagnosticAction",onclick:o,onmousedown:o,"aria-label":` Action: ${u}${c<0?"":` (access key "${n[a]})"`}.`},p)}),e.source&&Vt("div",{class:"cm-diagnosticSource"},e.source))}var Bh=class extends an{constructor(e){super(),this.diagnostic=e}eq(e){return e.diagnostic==this.diagnostic}toDOM(){return Vt("span",{class:"cm-lintPoint cm-lintPoint-"+this.diagnostic.severity})}},qu=class{constructor(e,t){this.diagnostic=t,this.id="item_"+Math.floor(Math.random()*4294967295).toString(16),this.dom=Fk(e,t,!0),this.dom.id=this.id,this.dom.setAttribute("role","option")}},Nh=class r{constructor(e){this.view=e,this.items=[];let t=n=>{if(n.keyCode==27)kk(this.view),this.view.focus();else if(n.keyCode==38||n.keyCode==33)this.moveSelection((this.selectedIndex-1+this.items.length)%this.items.length);else if(n.keyCode==40||n.keyCode==34)this.moveSelection((this.selectedIndex+1)%this.items.length);else if(n.keyCode==36)this.moveSelection(0);else if(n.keyCode==35)this.moveSelection(this.items.length-1);else if(n.keyCode==13)this.view.focus();else if(n.keyCode>=65&&n.keyCode<=90&&this.selectedIndex>=0){let{diagnostic:i}=this.items[this.selectedIndex],a=Rk(i.actions);for(let l=0;l{for(let i=0;ikk(this.view)},"\xD7")),this.update()}get selectedIndex(){let e=this.view.state.field(Sn).selected;if(!e)return-1;for(let t=0;t{let u=-1,c;for(let p=s;ps&&(this.items.splice(s,u-s),n=!0)),t&&c.diagnostic==t.diagnostic?c.dom.hasAttribute("aria-selected")||(c.dom.setAttribute("aria-selected","true"),i=c):c.dom.hasAttribute("aria-selected")&&c.dom.removeAttribute("aria-selected"),s++});s({sel:i.dom.getBoundingClientRect(),panel:this.list.getBoundingClientRect()}),write:({sel:a,panel:l})=>{let o=l.height/this.list.offsetHeight;a.topl.bottom&&(this.list.scrollTop+=(a.bottom-l.bottom)/o)}})):this.selectedIndex<0&&this.list.removeAttribute("aria-activedescendant"),n&&this.sync()}sync(){let e=this.list.firstChild;function t(){let s=e;e=s.nextSibling,s.remove()}for(let s of this.items)if(s.dom.parentNode==this.list){for(;e!=s.dom;)t();e=s.dom.nextSibling}else this.list.insertBefore(s.dom,e);for(;e;)t()}moveSelection(e){if(this.selectedIndex<0)return;let t=this.view.state.field(Sn),s=oa(t.diagnostics,this.items[e].diagnostic);s&&this.view.dispatch({selection:{anchor:s.from,head:s.to},scrollIntoView:!0,effects:Dk.of(s)})}static open(e){return new r(e)}};function ju(r,e='viewBox="0 0 40 40"'){return`url('data:image/svg+xml,${encodeURIComponent(r)}')`}function Mu(r){return ju(``,'width="6" height="3"')}var PQ=at.baseTheme({".cm-diagnostic":{padding:"3px 6px 3px 8px",marginLeft:"-1px",display:"block",whiteSpace:"pre-wrap"},".cm-diagnostic-error":{borderLeft:"5px solid #d11"},".cm-diagnostic-warning":{borderLeft:"5px solid orange"},".cm-diagnostic-info":{borderLeft:"5px solid #999"},".cm-diagnostic-hint":{borderLeft:"5px solid #66d"},".cm-diagnosticAction":{font:"inherit",border:"none",padding:"2px 4px",backgroundColor:"#444",color:"white",borderRadius:"3px",marginLeft:"8px",cursor:"pointer"},".cm-diagnosticSource":{fontSize:"70%",opacity:.7},".cm-lintRange":{backgroundPosition:"left bottom",backgroundRepeat:"repeat-x",paddingBottom:"0.7px"},".cm-lintRange-error":{backgroundImage:Mu("#d11")},".cm-lintRange-warning":{backgroundImage:Mu("orange")},".cm-lintRange-info":{backgroundImage:Mu("#999")},".cm-lintRange-hint":{backgroundImage:Mu("#66d")},".cm-lintRange-active":{backgroundColor:"#ffdd9980"},".cm-tooltip-lint":{padding:0,margin:0},".cm-lintPoint":{position:"relative","&:after":{content:'""',position:"absolute",bottom:0,left:"-2px",borderLeft:"3px solid transparent",borderRight:"3px solid transparent",borderBottom:"4px solid #d11"}},".cm-lintPoint-warning":{"&:after":{borderBottomColor:"orange"}},".cm-lintPoint-info":{"&:after":{borderBottomColor:"#999"}},".cm-lintPoint-hint":{"&:after":{borderBottomColor:"#66d"}},".cm-panel.cm-panel-lint":{position:"relative","& ul":{maxHeight:"100px",overflowY:"auto","& [aria-selected]":{backgroundColor:"#ddd","& u":{textDecoration:"underline"}},"&:focus [aria-selected]":{background_fallback:"#bdf",backgroundColor:"Highlight",color_fallback:"white",color:"HighlightText"},"& u":{textDecoration:"none"},padding:0,margin:0},"& [name=close]":{position:"absolute",top:"0",right:"2px",background:"inherit",border:"none",font:"inherit",padding:0,margin:0}}});function Ak(r){return r=="error"?4:r=="warning"?3:r=="info"?2:1}var Lh=class extends Xr{constructor(e){super(),this.diagnostics=e,this.severity=e.reduce((t,s)=>Ak(t)DQ(e,t,s)),t}};function TQ(r,e){let t=s=>{let n=e.getBoundingClientRect();if(!(s.clientX>n.left-10&&s.clientXn.top-10&&s.clientYe.getBoundingClientRect()}}})}),e.onmouseout=e.onmousemove=null,TQ(r,e)}let{hoverTime:n}=r.state.facet(Uu),i=setTimeout(s,n);e.onmouseout=()=>{clearTimeout(i),e.onmouseout=e.onmousemove=null},e.onmousemove=()=>{clearTimeout(i),i=setTimeout(s,n)}}function _Q(r,e){let t=Object.create(null);for(let n of e){let i=r.lineAt(n.from);(t[i.from]||(t[i.from]=[])).push(n)}let s=[];for(let n in t)s.push(new Lh(t[n]).range(+n));return Mt.of(s,!0)}var IQ=Ap({class:"cm-gutter-lint",markers:r=>r.state.field(Bk)}),Bk=Yt.define({create(){return Mt.empty},update(r,e){r=r.map(e.changes);let t=e.state.facet(Uu).markerFilter;for(let s of e.effects)if(s.is(Qu)){let n=s.value;t&&(n=t(n||[],e.state)),r=_Q(e.state.doc,n.slice(0))}return r}}),$h=Ct.define(),Nk=Yt.define({create(){return null},update(r,e){return r&&e.docChanged&&(r=Pk(e,r)?null:Object.assign(Object.assign({},r),{pos:e.changes.mapPos(r.pos)})),e.effects.reduce((t,s)=>s.is($h)?s.value:t,r)},provide:r=>zi.from(r)}),RQ=at.baseTheme({".cm-gutter-lint":{width:"1.4em","& .cm-gutterElement":{padding:".2em"}},".cm-lint-marker":{width:"1em",height:"1em"},".cm-lint-marker-info":{content:ju('')},".cm-lint-marker-warning":{content:ju('')},".cm-lint-marker-error":{content:ju('')}}),Lk=[Sn,at.decorations.compute([Sn],r=>{let{selected:e,panel:t}=r.field(Sn);return!e||!t||e.from==e.to?yt.none:yt.set([CQ.range(e.from,e.to)])}),Tw(kQ,{hideOn:Pk}),PQ],Uu=ct.define({combine(r){return kr(r,{hoverTime:300,markerFilter:null,tooltipFilter:null})}});function $k(r={}){return[Uu.of(r),Bk,IQ,RQ,Nk]}var qh=class r{constructor(e,t,s,n,i,a,l,o,u,c=0,p){this.p=e,this.stack=t,this.state=s,this.reducePos=n,this.pos=i,this.score=a,this.buffer=l,this.bufferBase=o,this.curContext=u,this.lookAhead=c,this.parent=p}toString(){return`[${this.stack.filter((e,t)=>t%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(e,t,s=0){let n=e.parser.context;return new r(e,[],t,s,s,0,[],0,n?new Vu(n,n.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(e,t){this.stack.push(this.state,t,this.bufferBase+this.buffer.length),this.state=e}reduce(e){var t;let s=e>>19,n=e&65535,{parser:i}=this.p,a=i.dynamicPrecedence(n);if(a&&(this.score+=a),s==0){this.pushState(i.getGoto(this.state,n,!0),this.reducePos),n=2e3&&!(!((t=this.p.parser.nodeSet.types[n])===null||t===void 0)&&t.isAnonymous)&&(o==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=u):this.p.lastBigReductionSizel;)this.stack.pop();this.reduceContext(n,o)}storeNode(e,t,s,n=4,i=!1){if(e==0&&(!this.stack.length||this.stack[this.stack.length-1]0&&a.buffer[l-4]==0&&a.buffer[l-1]>-1){if(t==s)return;if(a.buffer[l-2]>=t){a.buffer[l-2]=s;return}}}if(!i||this.pos==s)this.buffer.push(e,t,s,n);else{let a=this.buffer.length;if(a>0&&this.buffer[a-4]!=0)for(;a>0&&this.buffer[a-2]>s;)this.buffer[a]=this.buffer[a-4],this.buffer[a+1]=this.buffer[a-3],this.buffer[a+2]=this.buffer[a-2],this.buffer[a+3]=this.buffer[a-1],a-=4,n>4&&(n-=4);this.buffer[a]=e,this.buffer[a+1]=t,this.buffer[a+2]=s,this.buffer[a+3]=n}}shift(e,t,s,n){if(e&131072)this.pushState(e&65535,this.pos);else if(e&262144)this.pos=n,this.shiftContext(t,s),t<=this.p.parser.maxNode&&this.buffer.push(t,s,n,4);else{let i=e,{parser:a}=this.p;(n>this.pos||t<=a.maxNode)&&(this.pos=n,a.stateFlag(i,1)||(this.reducePos=n)),this.pushState(i,s),this.shiftContext(t,s),t<=a.maxNode&&this.buffer.push(t,s,n,4)}}apply(e,t,s,n){e&65536?this.reduce(e):this.shift(e,t,s,n)}useNode(e,t){let s=this.p.reused.length-1;(s<0||this.p.reused[s]!=e)&&(this.p.reused.push(e),s++);let n=this.pos;this.reducePos=this.pos=n+e.length,this.pushState(t,n),this.buffer.push(s,n,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,e,this,this.p.stream.reset(this.pos-e.length)))}split(){let e=this,t=e.buffer.length;for(;t>0&&e.buffer[t-2]>e.reducePos;)t-=4;let s=e.buffer.slice(t),n=e.bufferBase+t;for(;e&&n==e.bufferBase;)e=e.parent;return new r(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,s,n,this.curContext,this.lookAhead,e)}recoverByDelete(e,t){let s=e<=this.p.parser.maxNode;s&&this.storeNode(e,this.pos,t,4),this.storeNode(0,this.pos,t,s?8:4),this.pos=this.reducePos=t,this.score-=190}canShift(e){for(let t=new Qh(this);;){let s=this.p.parser.stateSlot(t.state,4)||this.p.parser.hasAction(t.state,e);if(s==0)return!1;if(!(s&65536))return!0;t.reduce(s)}}recoverByInsert(e){if(this.stack.length>=300)return[];let t=this.p.parser.nextStates(this.state);if(t.length>8||this.stack.length>=120){let n=[];for(let i=0,a;io&1&&l==a)||n.push(t[i],a)}t=n}let s=[];for(let n=0;n>19,n=t&65535,i=this.stack.length-s*3;if(i<0||e.getGoto(this.stack[i],n,!1)<0){let a=this.findForcedReduction();if(a==null)return!1;t=a}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(t),!0}findForcedReduction(){let{parser:e}=this.p,t=[],s=(n,i)=>{if(!t.includes(n))return t.push(n),e.allActions(n,a=>{if(!(a&393216))if(a&65536){let l=(a>>19)-i;if(l>1){let o=a&65535,u=this.stack.length-l*3;if(u>=0&&e.getGoto(this.stack[u],o,!1)>=0)return l<<19|65536|o}}else{let l=s(a,i+1);if(l!=null)return l}})};return s(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(this.stack.length!=3)return!1;let{parser:e}=this.p;return e.data[e.stateSlot(this.state,1)]==65535&&!e.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(e){if(this.state!=e.state||this.stack.length!=e.stack.length)return!1;for(let t=0;tthis.lookAhead&&(this.emitLookAhead(),this.lookAhead=e)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}},Vu=class{constructor(e,t){this.tracker=e,this.context=t,this.hash=e.strict?e.hash(t):0}},Qh=class{constructor(e){this.start=e,this.state=e.state,this.stack=e.stack,this.base=this.stack.length}reduce(e){let t=e&65535,s=e>>19;s==0?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=(s-1)*3;let n=this.start.p.parser.getGoto(this.stack[this.base-3],t,!0);this.state=n}},Uh=class r{constructor(e,t,s){this.stack=e,this.pos=t,this.index=s,this.buffer=e.buffer,this.index==0&&this.maybeNext()}static create(e,t=e.bufferBase+e.buffer.length){return new r(e,t,t-e.bufferBase)}maybeNext(){let e=this.stack.parent;e!=null&&(this.index=this.stack.bufferBase-e.bufferBase,this.stack=e,this.buffer=e.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,this.index==0&&this.maybeNext()}fork(){return new r(this.stack,this.pos,this.index)}};function Ro(r,e=Uint16Array){if(typeof r!="string")return r;let t=null;for(let s=0,n=0;s=92&&a--,a>=34&&a--;let o=a-32;if(o>=46&&(o-=46,l=!0),i+=o,l)break;i*=46}t?t[n++]=i:t=new e(i)}return t}var la=class{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}},Mk=new la,Vh=class{constructor(e,t){this.input=e,this.ranges=t,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=Mk,this.rangeIndex=0,this.pos=this.chunkPos=t[0].from,this.range=t[0],this.end=t[t.length-1].to,this.readNext()}resolveOffset(e,t){let s=this.range,n=this.rangeIndex,i=this.pos+e;for(;is.to:i>=s.to;){if(n==this.ranges.length-1)return null;let a=this.ranges[++n];i+=a.from-s.to,s=a}return i}clipPos(e){if(e>=this.range.from&&ee)return Math.max(e,t.from);return this.end}peek(e){let t=this.chunkOff+e,s,n;if(t>=0&&t=this.chunk2Pos&&sl.to&&(this.chunk2=this.chunk2.slice(0,l.to-s)),n=this.chunk2.charCodeAt(0)}}return s>=this.token.lookAhead&&(this.token.lookAhead=s+1),n}acceptToken(e,t=0){let s=t?this.resolveOffset(t,-1):this.pos;if(s==null||s=this.chunk2Pos&&this.posthis.range.to?e.slice(0,this.range.to-this.pos):e,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(e=1){for(this.chunkOff+=e;this.pos+e>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();e-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=e,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(e,t){if(t?(this.token=t,t.start=e,t.lookAhead=e+1,t.value=t.extended=-1):this.token=Mk,this.pos!=e){if(this.pos=e,e==this.end)return this.setDone(),this;for(;e=this.range.to;)this.range=this.ranges[++this.rangeIndex];e>=this.chunkPos&&e=this.chunkPos&&t<=this.chunkPos+this.chunk.length)return this.chunk.slice(e-this.chunkPos,t-this.chunkPos);if(e>=this.chunk2Pos&&t<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(e-this.chunk2Pos,t-this.chunk2Pos);if(e>=this.range.from&&t<=this.range.to)return this.input.read(e,t);let s="";for(let n of this.ranges){if(n.from>=t)break;n.to>e&&(s+=this.input.read(Math.max(n.from,e),Math.min(n.to,t)))}return s}},Ns=class{constructor(e,t){this.data=e,this.id=t}token(e,t){let{parser:s}=t.p;Vk(this.data,e,t,this.id,s.data,s.tokenPrecTable)}};Ns.prototype.contextual=Ns.prototype.fallback=Ns.prototype.extend=!1;var ua=class{constructor(e,t,s){this.precTable=t,this.elseToken=s,this.data=typeof e=="string"?Ro(e):e}token(e,t){let s=e.pos,n=0;for(;;){let i=e.next<0,a=e.resolveOffset(1,1);if(Vk(this.data,e,t,0,this.data,this.precTable),e.token.value>-1)break;if(this.elseToken==null)return;if(i||n++,a==null)break;e.reset(a,e.token)}n&&(e.reset(s,e.token),e.acceptToken(this.elseToken,n))}};ua.prototype.contextual=Ns.prototype.fallback=Ns.prototype.extend=!1;var ci=class{constructor(e,t={}){this.token=e,this.contextual=!!t.contextual,this.fallback=!!t.fallback,this.extend=!!t.extend}};function Vk(r,e,t,s,n,i){let a=0,l=1<0){let d=r[f];if(o.allows(d)&&(e.token.value==-1||e.token.value==d||BQ(d,e.token.value,n,i))){e.acceptToken(d);break}}let c=e.next,p=0,h=r[a+2];if(e.next<0&&h>p&&r[u+h*3-3]==65535){a=r[u+h*3-1];continue e}for(;p>1,d=u+f+(f<<1),m=r[d],g=r[d+1]||65536;if(c=g)p=f+1;else{a=r[d+2],e.advance();continue e}}break}}function jk(r,e,t){for(let s=e,n;(n=r[s])!=65535;s++)if(n==t)return s-e;return-1}function BQ(r,e,t,s){let n=jk(t,s,e);return n<0||jk(t,s,r)e)&&!s.type.isError)return t<0?Math.max(0,Math.min(s.to-1,e-25)):Math.min(r.length,Math.max(s.from+1,e+25));if(t<0?s.prevSibling():s.nextSibling())break;if(!s.parent())return t<0?0:r.length}}var Wh=class{constructor(e,t){this.fragments=e,this.nodeSet=t,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let e=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(e){for(this.safeFrom=e.openStart?qk(e.tree,e.from+e.offset,1)-e.offset:e.from,this.safeTo=e.openEnd?qk(e.tree,e.to+e.offset,-1)-e.offset:e.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(e.tree),this.start.push(-e.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(e){if(ee)return this.nextStart=a,null;if(i instanceof or){if(a==e){if(a=Math.max(this.safeFrom,e)&&(this.trees.push(i),this.start.push(a),this.index.push(0))}else this.index[t]++,this.nextStart=a+i.length}}},zh=class{constructor(e,t){this.stream=t,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=e.tokenizers.map(s=>new la)}getActions(e){let t=0,s=null,{parser:n}=e.p,{tokenizers:i}=n,a=n.stateSlot(e.state,3),l=e.curContext?e.curContext.hash:0,o=0;for(let u=0;up.end+25&&(o=Math.max(p.lookAhead,o)),p.value!=0)){let h=t;if(p.extended>-1&&(t=this.addActions(e,p.extended,p.end,t)),t=this.addActions(e,p.value,p.end,t),!c.extend&&(s=p,t>h))break}}for(;this.actions.length>t;)this.actions.pop();return o&&e.setLookAhead(o),!s&&e.pos==this.stream.end&&(s=new la,s.value=e.p.parser.eofTerm,s.start=s.end=e.pos,t=this.addActions(e,s.value,s.end,t)),this.mainToken=s,this.actions}getMainToken(e){if(this.mainToken)return this.mainToken;let t=new la,{pos:s,p:n}=e;return t.start=s,t.end=Math.min(s+1,n.stream.end),t.value=s==n.stream.end?n.parser.eofTerm:0,t}updateCachedToken(e,t,s){let n=this.stream.clipPos(s.pos);if(t.token(this.stream.reset(n,e),s),e.value>-1){let{parser:i}=s.p;for(let a=0;a=0&&s.p.parser.dialect.allows(l>>1)){l&1?e.extended=l>>1:e.value=l>>1;break}}}else e.value=0,e.end=this.stream.clipPos(n+1)}putAction(e,t,s,n){for(let i=0;ie.bufferLength*4?new Wh(s,e.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let e=this.stacks,t=this.minStackPos,s=this.stacks=[],n,i;if(this.bigReductionCount>300&&e.length==1){let[a]=e;for(;a.forceReduce()&&a.stack.length&&a.stack[a.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let a=0;at)s.push(l);else{if(this.advanceStack(l,s,e))continue;{n||(n=[],i=[]),n.push(l);let o=this.tokens.getMainToken(l);i.push(o.value,o.end)}}break}}if(!s.length){let a=n&&NQ(n);if(a)return Kr&&console.log("Finish with "+this.stackID(a)),this.stackToTree(a);if(this.parser.strict)throw Kr&&n&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+t);this.recovering||(this.recovering=5)}if(this.recovering&&n){let a=this.stoppedAt!=null&&n[0].pos>this.stoppedAt?n[0]:this.runRecovery(n,i,s);if(a)return Kr&&console.log("Force-finish "+this.stackID(a)),this.stackToTree(a.forceAll())}if(this.recovering){let a=this.recovering==1?1:this.recovering*3;if(s.length>a)for(s.sort((l,o)=>o.score-l.score);s.length>a;)s.pop();s.some(l=>l.reducePos>t)&&this.recovering--}else if(s.length>1){e:for(let a=0;a500&&u.buffer.length>500)if((l.score-u.score||l.buffer.length-u.buffer.length)>0)s.splice(o--,1);else{s.splice(a--,1);continue e}}}s.length>12&&s.splice(12,s.length-12)}this.minStackPos=s[0].pos;for(let a=1;a ":"";if(this.stoppedAt!=null&&n>this.stoppedAt)return e.forceReduce()?e:null;if(this.fragments){let u=e.curContext&&e.curContext.tracker.strict,c=u?e.curContext.hash:0;for(let p=this.fragments.nodeAt(n);p;){let h=this.parser.nodeSet.types[p.type.id]==p.type?i.getGoto(e.state,p.type.id):-1;if(h>-1&&p.length&&(!u||(p.prop(kt.contextHash)||0)==c))return e.useNode(p,h),Kr&&console.log(a+this.stackID(e)+` (via reuse of ${i.getName(p.type.id)})`),!0;if(!(p instanceof or)||p.children.length==0||p.positions[0]>0)break;let f=p.children[0];if(f instanceof or&&p.positions[0]==0)p=f;else break}}let l=i.stateSlot(e.state,4);if(l>0)return e.reduce(l),Kr&&console.log(a+this.stackID(e)+` (via always-reduce ${i.getName(l&65535)})`),!0;if(e.stack.length>=8400)for(;e.stack.length>6e3&&e.forceReduce(););let o=this.tokens.getActions(e);for(let u=0;un?t.push(d):s.push(d)}return!1}advanceFully(e,t){let s=e.pos;for(;;){if(!this.advanceStack(e,null,null))return!1;if(e.pos>s)return Qk(e,t),!0}}runRecovery(e,t,s){let n=null,i=!1;for(let a=0;a ":"";if(l.deadEnd&&(i||(i=!0,l.restart(),Kr&&console.log(c+this.stackID(l)+" (restarted)"),this.advanceFully(l,s))))continue;let p=l.split(),h=c;for(let f=0;p.forceReduce()&&f<10&&(Kr&&console.log(h+this.stackID(p)+" (via force-reduce)"),!this.advanceFully(p,s));f++)Kr&&(h=this.stackID(p)+" -> ");for(let f of l.recoverByInsert(o))Kr&&console.log(c+this.stackID(f)+" (via recover-insert)"),this.advanceFully(f,s);this.stream.end>l.pos?(u==l.pos&&(u++,o=0),l.recoverByDelete(o,u),Kr&&console.log(c+this.stackID(l)+` (via recover-delete ${this.parser.getName(o)})`),Qk(l,s)):(!n||n.scorer,Wu=class{constructor(e){this.start=e.start,this.shift=e.shift||jh,this.reduce=e.reduce||jh,this.reuse=e.reuse||jh,this.hash=e.hash||(()=>0),this.strict=e.strict!==!1}},zu=class r extends Xi{constructor(e){if(super(),this.wrappers=[],e.version!=14)throw new RangeError(`Parser version (${e.version}) doesn't match runtime version (14)`);let t=e.nodeNames.split(" ");this.minRepeatTerm=t.length;for(let l=0;le.topRules[l][1]),n=[];for(let l=0;l=0)i(c,o,l[u++]);else{let p=l[u+-c];for(let h=-c;h>0;h--)i(l[u++],o,p);u++}}}this.nodeSet=new yo(t.map((l,o)=>Ar.define({name:o>=this.minRepeatTerm?void 0:l,id:o,props:n[o],top:s.indexOf(o)>-1,error:o==0,skipped:e.skippedNodes&&e.skippedNodes.indexOf(o)>-1}))),e.propSources&&(this.nodeSet=this.nodeSet.extend(...e.propSources)),this.strict=!1,this.bufferLength=1024;let a=Ro(e.tokenData);this.context=e.context,this.specializerSpecs=e.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let l=0;ltypeof l=="number"?new Ns(a,l):l),this.topRules=e.topRules,this.dialects=e.dialects||{},this.dynamicPrecedences=e.dynamicPrecedences||null,this.tokenPrecTable=e.tokenPrec,this.termNames=e.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(e,t,s){let n=new Zh(this,e,t,s);for(let i of this.wrappers)n=i(n,e,t,s);return n}getGoto(e,t,s=!1){let n=this.goto;if(t>=n[0])return-1;for(let i=n[t+1];;){let a=n[i++],l=a&1,o=n[i++];if(l&&s)return o;for(let u=i+(a>>1);i0}validAction(e,t){return!!this.allActions(e,s=>s==t?!0:null)}allActions(e,t){let s=this.stateSlot(e,4),n=s?t(s):void 0;for(let i=this.stateSlot(e,1);n==null;i+=3){if(this.data[i]==65535)if(this.data[i+1]==1)i=os(this.data,i+2);else break;n=t(os(this.data,i+1))}return n}nextStates(e){let t=[];for(let s=this.stateSlot(e,1);;s+=3){if(this.data[s]==65535)if(this.data[s+1]==1)s=os(this.data,s+2);else break;if(!(this.data[s+2]&1)){let n=this.data[s+1];t.some((i,a)=>a&1&&i==n)||t.push(this.data[s],n)}}return t}configure(e){let t=Object.assign(Object.create(r.prototype),this);if(e.props&&(t.nodeSet=this.nodeSet.extend(...e.props)),e.top){let s=this.topRules[e.top];if(!s)throw new RangeError(`Invalid top rule name ${e.top}`);t.top=s}return e.tokenizers&&(t.tokenizers=this.tokenizers.map(s=>{let n=e.tokenizers.find(i=>i.from==s);return n?n.to:s})),e.specializers&&(t.specializers=this.specializers.slice(),t.specializerSpecs=this.specializerSpecs.map((s,n)=>{let i=e.specializers.find(l=>l.from==s.external);if(!i)return s;let a=Object.assign(Object.assign({},s),{external:i.to});return t.specializers[n]=Uk(a),a})),e.contextTracker&&(t.context=e.contextTracker),e.dialect&&(t.dialect=this.parseDialect(e.dialect)),e.strict!=null&&(t.strict=e.strict),e.wrap&&(t.wrappers=t.wrappers.concat(e.wrap)),e.bufferLength!=null&&(t.bufferLength=e.bufferLength),t}hasWrappers(){return this.wrappers.length>0}getName(e){return this.termNames?this.termNames[e]:String(e<=this.maxNode&&this.nodeSet.types[e].name||e)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(e){let t=this.dynamicPrecedences;return t==null?0:t[e]||0}parseDialect(e){let t=Object.keys(this.dialects),s=t.map(()=>!1);if(e)for(let i of e.split(" ")){let a=t.indexOf(i);a>=0&&(s[a]=!0)}let n=null;for(let i=0;is)&&t.p.parser.stateFlag(t.state,2)&&(!e||e.scorer.external(t,s)<<1|e}return r.get}var LQ=312,Wk=1,$Q=2,MQ=3,jQ=4,qQ=313,QQ=315,UQ=316,VQ=5,WQ=6,zQ=0,Yh=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],zk=125,ZQ=59,Hh=47,GQ=42,XQ=43,YQ=45,HQ=60,KQ=44,JQ=63,e8=46,t8=new Wu({start:!1,shift(r,e){return e==VQ||e==WQ||e==QQ?r:e==UQ},strict:!1}),r8=new ci((r,e)=>{let{next:t}=r;(t==zk||t==-1||e.context)&&r.acceptToken(qQ)},{contextual:!0,fallback:!0}),n8=new ci((r,e)=>{let{next:t}=r,s;Yh.indexOf(t)>-1||t==Hh&&((s=r.peek(1))==Hh||s==GQ)||t!=zk&&t!=ZQ&&t!=-1&&!e.context&&r.acceptToken(LQ)},{contextual:!0}),s8=new ci((r,e)=>{let{next:t}=r;if(t==XQ||t==YQ){if(r.advance(),t==r.next){r.advance();let s=!e.context&&e.canShift(Wk);r.acceptToken(s?Wk:$Q)}}else t==JQ&&r.peek(1)==e8&&(r.advance(),r.advance(),(r.next<48||r.next>57)&&r.acceptToken(MQ))},{contextual:!0});function Xh(r,e){return r>=65&&r<=90||r>=97&&r<=122||r==95||r>=192||!e&&r>=48&&r<=57}var i8=new ci((r,e)=>{if(r.next!=HQ||!e.dialectEnabled(zQ)||(r.advance(),r.next==Hh))return;let t=0;for(;Yh.indexOf(r.next)>-1;)r.advance(),t++;if(Xh(r.next,!0)){for(r.advance(),t++;Xh(r.next,!1);)r.advance(),t++;for(;Yh.indexOf(r.next)>-1;)r.advance(),t++;if(r.next==KQ)return;for(let s=0;;s++){if(s==7){if(!Xh(r.next,!0))return;break}if(r.next!="extends".charCodeAt(s))break;r.advance(),t++}}r.acceptToken(jQ,-t)}),a8=iu({"get set async static":ke.modifier,"for while do if else switch try catch finally return throw break continue default case":ke.controlKeyword,"in of await yield void typeof delete instanceof":ke.operatorKeyword,"let var const using function class extends":ke.definitionKeyword,"import export from":ke.moduleKeyword,"with debugger as new":ke.keyword,TemplateString:ke.special(ke.string),super:ke.atom,BooleanLiteral:ke.bool,this:ke.self,null:ke.null,Star:ke.modifier,VariableName:ke.variableName,"CallExpression/VariableName TaggedTemplateExpression/VariableName":ke.function(ke.variableName),VariableDefinition:ke.definition(ke.variableName),Label:ke.labelName,PropertyName:ke.propertyName,PrivatePropertyName:ke.special(ke.propertyName),"CallExpression/MemberExpression/PropertyName":ke.function(ke.propertyName),"FunctionDeclaration/VariableDefinition":ke.function(ke.definition(ke.variableName)),"ClassDeclaration/VariableDefinition":ke.definition(ke.className),PropertyDefinition:ke.definition(ke.propertyName),PrivatePropertyDefinition:ke.definition(ke.special(ke.propertyName)),UpdateOp:ke.updateOperator,"LineComment Hashbang":ke.lineComment,BlockComment:ke.blockComment,Number:ke.number,String:ke.string,Escape:ke.escape,ArithOp:ke.arithmeticOperator,LogicOp:ke.logicOperator,BitOp:ke.bitwiseOperator,CompareOp:ke.compareOperator,RegExp:ke.regexp,Equals:ke.definitionOperator,Arrow:ke.function(ke.punctuation),": Spread":ke.punctuation,"( )":ke.paren,"[ ]":ke.squareBracket,"{ }":ke.brace,"InterpolationStart InterpolationEnd":ke.special(ke.brace),".":ke.derefOperator,", ;":ke.separator,"@":ke.meta,TypeName:ke.typeName,TypeDefinition:ke.definition(ke.typeName),"type enum interface implements namespace module declare":ke.definitionKeyword,"abstract global Privacy readonly override":ke.modifier,"is keyof unique infer":ke.operatorKeyword,JSXAttributeValue:ke.attributeValue,JSXText:ke.content,"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":ke.angleBracket,"JSXIdentifier JSXNameSpacedName":ke.tagName,"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":ke.attributeName,"JSXBuiltin/JSXIdentifier":ke.standard(ke.tagName)}),o8={__proto__:null,export:20,as:25,from:33,default:36,async:41,function:42,extends:54,this:58,true:66,false:66,null:78,void:82,typeof:86,super:102,new:136,delete:148,yield:157,await:161,class:166,public:229,private:229,protected:229,readonly:231,instanceof:250,satisfies:253,in:254,const:256,import:290,keyof:345,unique:349,infer:355,is:391,abstract:411,implements:413,type:415,let:418,var:420,using:423,interface:429,enum:433,namespace:439,module:441,declare:445,global:449,for:468,of:477,while:480,with:484,do:488,if:492,else:494,switch:498,case:504,try:510,catch:514,finally:518,return:522,throw:526,break:530,continue:534,debugger:538},l8={__proto__:null,async:123,get:125,set:127,declare:189,public:191,private:191,protected:191,static:193,abstract:195,override:197,readonly:203,accessor:205,new:395},u8={__proto__:null,"<":187},Zk=zu.deserialize({version:14,states:"$=dO%TQ^OOO%[Q^OOO'_Q`OOP(lOWOOO*zQ?NdO'#CiO+RO!bO'#CjO+aO#tO'#CjO+oO!0LbO'#D^O.QQ^O'#DdO.bQ^O'#DoO%[Q^O'#DwO0fQ^O'#EPOOQ?Mr'#EX'#EXO1PQWO'#EUOOQO'#Em'#EmOOQO'#Ih'#IhO1XQWO'#GpO1dQWO'#ElO1iQWO'#ElO3hQ?NdO'#JmO6[Q?NdO'#JnO6uQWO'#F[O6zQ&jO'#FsOOQ?Mr'#Fe'#FeO7VO,YO'#FeO7eQ7[O'#FzO9RQWO'#FyOOQ?Mr'#Jn'#JnOOQ?Mp'#Jm'#JmO9WQWO'#GtOOQU'#KZ'#KZO9cQWO'#IUO9hQ?MxO'#IVOOQU'#JZ'#JZOOQU'#IZ'#IZQ`Q^OOO`Q^OOO9pQMnO'#DsO9wQ^O'#D{O:OQ^O'#D}O9^QWO'#GpO:VQ7[O'#CoO:eQWO'#EkO:pQWO'#EvO:uQ7[O'#FdO;dQWO'#GpOOQO'#K['#K[O;iQWO'#K[O;wQWO'#GxO;wQWO'#GyO;wQWO'#G{O9^QWO'#HOOVQWO'#CeO>gQWO'#H_O>oQWO'#HeO>oQWO'#HgO`Q^O'#HiO>oQWO'#HkO>oQWO'#HnO>tQWO'#HtO>yQ?MyO'#HzO%[Q^O'#H|O?UQ?MyO'#IOO?aQ?MyO'#IQO9hQ?MxO'#ISO?lQ?NdO'#CiO@nQ`O'#DiQOQWOOO%[Q^O'#D}OAUQWO'#EQO:VQ7[O'#EkOAaQWO'#EkOAlQpO'#FdOOQU'#Cg'#CgOOQ?Mp'#Dn'#DnOOQ?Mp'#Jq'#JqO%[Q^O'#JqOOQO'#Jt'#JtOOQO'#Id'#IdOBlQ`O'#EdOOQ?Mp'#Ec'#EcOOQ?Mp'#Jx'#JxOChQ?NQO'#EdOCrQ`O'#ETOOQO'#Js'#JsODWQ`O'#JtOEeQ`O'#ETOCrQ`O'#EdPErO#@ItO'#CbPOOO)CDx)CDxOOOO'#I['#I[OE}O!bO,59UOOQ?Mr,59U,59UOOOO'#I]'#I]OF]O#tO,59UO%[Q^O'#D`OOOO'#I_'#I_OFkO!0LbO,59xOOQ?Mr,59x,59xOFyQ^O'#I`OG^QWO'#JoOI]QrO'#JoO+}Q^O'#JoOIdQWO,5:OOIzQWO'#EmOJXQWO'#KOOJdQWO'#J}OJdQWO'#J}OJlQWO,5;ZOJqQWO'#J|OOQ?Mv,5:Z,5:ZOJxQ^O,5:ZOLvQ?NdO,5:cOMgQWO,5:kONQQ?MxO'#J{ONXQWO'#JzO9WQWO'#JzONmQWO'#JzONuQWO,5;YONzQWO'#JzO!#PQrO'#JnOOQ?Mr'#Ci'#CiO%[Q^O'#EPO!#oQrO,5:pOOQQ'#Ju'#JuOOQO-EpOOQU'#Jc'#JcOOQU,5>q,5>qOOQU-EtQWO'#HTO9^QWO'#HVO!DgQWO'#HVO:VQ7[O'#HXO!DlQWO'#HXOOQU,5=m,5=mO!DqQWO'#HYO!ESQWO'#CoO!EXQWO,59PO!EcQWO,59PO!GhQ^O,59POOQU,59P,59PO!GxQ?MxO,59PO%[Q^O,59PO!JTQ^O'#HaOOQU'#Hb'#HbOOQU'#Hc'#HcO`Q^O,5=yO!JkQWO,5=yO`Q^O,5>PO`Q^O,5>RO!JpQWO,5>TO`Q^O,5>VO!JuQWO,5>YO!JzQ^O,5>`OOQU,5>f,5>fO%[Q^O,5>fO9hQ?MxO,5>hOOQU,5>j,5>jO# UQWO,5>jOOQU,5>l,5>lO# UQWO,5>lOOQU,5>n,5>nO# rQ`O'#D[O%[Q^O'#JqO# |Q`O'#JqO#!kQ`O'#DjO#!|Q`O'#DjO#%_Q^O'#DjO#%fQWO'#JpO#%nQWO,5:TO#%sQWO'#EqO#&RQWO'#KPO#&ZQWO,5;[O#&`Q`O'#DjO#&mQ`O'#ESOOQ?Mr,5:l,5:lO%[Q^O,5:lO#&tQWO,5:lO>tQWO,5;VO!A}Q`O,5;VO!BVQ7[O,5;VO:VQ7[O,5;VO#&|QWO,5@]O#'RQ(CYO,5:pOOQO-EzO+}Q^O,5>zOOQO,5?Q,5?QO#*ZQ^O'#I`OOQO-E<^-E<^O#*hQWO,5@ZO#*pQrO,5@ZO#*wQWO,5@iOOQ?Mr1G/j1G/jO%[Q^O,5@jO#+PQWO'#IfOOQO-EoQWO1G3oO$4tQ^O1G3qO$8xQ^O'#HpOOQU1G3t1G3tO$9VQWO'#HvO>tQWO'#HxOOQU1G3z1G3zO$9_Q^O1G3zO9hQ?MxO1G4QOOQU1G4S1G4SOOQ?Mp'#G]'#G]O9hQ?MxO1G4UO9hQ?MxO1G4WO$=fQWO,5@]O!(oQ^O,5;]O9WQWO,5;]O>tQWO,5:UO!(oQ^O,5:UO!A}Q`O,5:UO$=kQ07bO,5:UOOQO,5;],5;]O$=uQ`O'#IaO$>]QWO,5@[OOQ?Mr1G/o1G/oO$>eQ`O'#IgO$>oQWO,5@kOOQ?Mp1G0v1G0vO#!|Q`O,5:UOOQO'#Ic'#IcO$>wQ`O,5:nOOQ?Mv,5:n,5:nO#&wQWO1G0WOOQ?Mr1G0W1G0WO%[Q^O1G0WOOQ?Mr1G0q1G0qO>tQWO1G0qO!A}Q`O1G0qO!BVQ7[O1G0qOOQ?Mp1G5w1G5wO!ArQ?MxO1G0ZOOQO1G0j1G0jO%[Q^O1G0jO$?OQ?MxO1G0jO$?ZQ?MxO1G0jO!A}Q`O1G0ZOCrQ`O1G0ZO$?iQ?MxO1G0jOOQO1G0Z1G0ZO$?}Q?NdO1G0jPOOO-EzO$@kQWO1G5uO$@sQWO1G6TO$@{QrO1G6UO9WQWO,5?QO$AVQ?NdO1G6RO%[Q^O1G6RO$AgQ?MxO1G6RO$AxQWO1G6QO$AxQWO1G6QO9WQWO1G6QO$BQQWO,5?TO9WQWO,5?TOOQO,5?T,5?TO$BfQWO,5?TO$)nQWO,5?TOOQO-E[OOQU,5>[,5>[O%[Q^O'#HqO%:PQWO'#HsOOQU,5>b,5>bO9WQWO,5>bOOQU,5>d,5>dOOQU7+)f7+)fOOQU7+)l7+)lOOQU7+)p7+)pOOQU7+)r7+)rO%:UQ`O1G5wO%:jQ07bO1G0wO%:tQWO1G0wOOQO1G/p1G/pO%;PQ07bO1G/pO>tQWO1G/pO!(oQ^O'#DjOOQO,5>{,5>{OOQO-E<_-E<_OOQO,5?R,5?ROOQO-EtQWO7+&]O!A}Q`O7+&]OOQO7+%u7+%uO$?}Q?NdO7+&UOOQO7+&U7+&UO%[Q^O7+&UO%;ZQ?MxO7+&UO!ArQ?MxO7+%uO!A}Q`O7+%uO%;fQ?MxO7+&UO%;tQ?NdO7++mO%[Q^O7++mO%|O%[Q^O,5>|OOQO-E<`-E<`O%HZQWO1G5xOOQ?Mr<]OOQU,5>_,5>_O&;mQWO1G3|O9WQWO7+&cO!(oQ^O7+&cOOQO7+%[7+%[O&;rQ07bO1G6UO>tQWO7+%[OOQ?Mr<tQWO<tQWO7+)hO'){QWO<{AN>{O%[Q^OAN?[OOQO<]Q7[OG27QOOQO<mQ07bO7+*jOOQUG27iG27iO&:OQWOG27iO!&_Q7[OG27iOOQUG27kG27kO9hQ?MxOG27kOOQUG27sG27sO'>wQ07bOG25TOOQOLD*bLD*bOOQU!$(!Y!$(!YO#&wQWO!$(!YO!&_Q7[O!$(!YO'?RQ?NdOG27QOOQ?MpG26uG26uOOQULD-TLD-TO&:OQWOLD-TOOQULD-VLD-VOOQU!)9Et!)9EtO#&wQWO!)9EtOOQU!$(!o!$(!oOOQU!.K;`!.K;`O'AaQ07bOG27QO!(oQ^O'#DwO1PQWO'#EUO'CSQrO'#JmO'CZQMnO'#DsO'CbQ^O'#D{O'CiQrO'#CiO'FPQrO'#CiO!(oQ^O'#D}O'FaQ^O,5;WO!(oQ^O,5;bO!(oQ^O,5;bO!(oQ^O,5;bO!(oQ^O,5;bO!(oQ^O,5;bO!(oQ^O,5;bO!(oQ^O,5;bO!(oQ^O,5;bO!(oQ^O,5;bO!(oQ^O,5;bO!(oQ^O,5;bO!(oQ^O'#IlO'HdQWO,5kOh%WOk+aO![']O%f+`O~O!d+cOa(WX![(WX'u(WX!Y(WX~Oa%lO![XO'u%lO~Oh%WO!i%cO~Oh%WO!i%cO(O%eO~O!d#vO#h(tO~Ob+nO%g+oO(O+kO(QTO(TUO!Z)TP~O!Y+pO`)SX~O[+tO~O`+uO~O![%}O(O%eO(P!lO`)SP~Oh%WO#]+zO~Oh%WOk+}O![$}O~O![,PO~O},RO![XO~O%k%tO~O!u,WO~Oe,]O~Ob,^O(O#nO(QTO(TUO!Z)RP~Oe%{O~O%g!QO(O&WO~P=RO[,cO`,bO~OPYOQYOSfOdzOeyOmkOoYOpkOqkOwkOyYO{YO!PWO!TkO!UkO!fuO!iZO!lYO!mYO!nYO!pvO!uxO!y]O%e}O(QTO(TUO([VO(j[O(yiO~O![!eO!r!gO$V!kO(O!dO~P!EkO`,bOa%lO'u%lO~OPYOQYOSfOd!jOe!iOmkOoYOpkOqkOwkOyYO{YO!PWO!TkO!UkO![!eO!fuO!iZO!lYO!mYO!nYO!pvO!u!hO$V!kO(O!dO(QTO(TUO([VO(j[O(yiO~Oa,hO!rwO#t!OO%i!OO%j!OO%k!OO~P!HTO!i&lO~O&Y,nO~O![,pO~O&k,rO&m,sOP&haQ&haS&haY&haa&had&hae&ham&hao&hap&haq&haw&hay&ha{&ha!P&ha!T&ha!U&ha![&ha!f&ha!i&ha!l&ha!m&ha!n&ha!p&ha!r&ha!u&ha!y&ha#t&ha$V&ha%e&ha%g&ha%i&ha%j&ha%k&ha%n&ha%p&ha%s&ha%t&ha%v&ha&S&ha&Y&ha&[&ha&^&ha&`&ha&c&ha&i&ha&o&ha&q&ha&s&ha&u&ha&w&ha's&ha(O&ha(Q&ha(T&ha([&ha(j&ha(y&ha!Z&ha&a&hab&ha&f&ha~O(O,xO~Oh!bX!Y!OX!Z!OX!d!OX!d!bX!i!bX#]!OX~O!Y!bX!Z!bX~P# ZO!d,}O#],|Oh(eX!Y#eX!Y(eX!Z#eX!Z(eX!d(eX!i(eX~Oh%WO!d-PO!i%cO!Y!^X!Z!^X~Op!nO!P!oO(QTO(TUO(`!mO~OP:kOQ:kOSfOdkOg'XX!Y'XX~P!+hO!Y.wOg(ka~OSfO![3uO$c3vO~O!Z3zO~Os3{O~P#.aOa$lq!Y$lq'u$lq's$lq!V$lq!h$lqs$lq![$lq%f$lq!d$lq~P!9mO!V3|O~P#.aO}){O!P)|O(u%QOk'ea(t'ea!Y'ea#]'ea~Og'ea#}'ea~P%+]O}){O!P)|Ok'ga(t'ga(u'ga!Y'ga#]'ga~Og'ga#}'ga~P%,OO(m$ZO~P#.aO!VfX!V$xX!YfX!Y$xX!d%PX#]fX~P!/gO(O;lO~P!1_OmkO(O4OO~P.iO!P%fO!X4QO![%gO(O%eO!Y'aX!h'aX~O!Y/hO!h(za~O!Y/hO!d#vO!h(za~O!Y/hO!d#vO(m'mO!h(za~Og$zi!Y$zi#]$zi#}$zi~P!0pO!X4YO!V'cX!Y'cX~P!3^O!Y/pO!V({a~O!Y/pO!V({a~P#.aO!d#vO#s4bO~Oo4eO!d#vO(m'mO~O(t%OOk%^i}%^i!P%^i(u%^i!Y%^i#]%^i~Og%^i#}%^i~P%0^O(u%QOk%`i}%`i!P%`i(t%`i!Y%`i#]%`i~Og%`i#}%`i~P%1POg(Yi!Y(Yi~P!0pO#]4lOg(Yi!Y(Yi~P!0pO!h4oO~Oa$mq!Y$mq'u$mq's$mq!V$mq!h$mqs$mq![$mq%f$mq!d$mq~P!9mO!V4sO~O!Y4tO![(|X~P#.aOa$xX![$xX%Z]X'u$xX!Y$xX~P!/gO%Z4wOalXklX}lX!PlX![lX'ulX(tlX(ulX!YlX~O%Z4wO~Ob4}O%g5OO(O+kO(QTO(TUO!Y'pX!Z'pX~O!Y0wO!Z)Ta~O[5SO~O`5TO~Oa%lO'u%lO~P#.aO![$}O~P#.aO!Y5]O#]5_O!Z)QX~O!Z5`O~Op!nO!P5aO!_!yO!`!vO!a!vO!y:lO#Q!pO#R!pO#S!pO#T!pO#U!pO#X5fO#Y!zO(P!lO(QTO(TUO(`!mO(j!sO~O!Z5eO~P%6ZOk5kO![1aO%f5jO~Oh%WOk5kO![1aO%f5jO~Ob5rO(O#nO(QTO(TUO!Y'oX!Z'oX~O!Y1lO!Z)Ra~O(QTO(TUO(`5tO~O`5xO~O#s5{O&W5|O~PMlO!h5}O~P%[Oa6PO~Oa6PO~P%[Ob2SO!Z6UO&f2RO~P`O!d6WO~O!d6YOh(ei!Y(ei!Z(ei!d(ei!i(ei~O!Y#ei!Z#ei~P#D_O#]6ZO!Y#ei!Z#ei~O!Y!^i!Z!^i~P#D_Oa%lO#]6dO'u%lO~Oa%lO!d#vO#]6dO'u%lO~O!Y(oq!h(oqa(oq'u(oq~P!9mO!Y(fO!h(nq~O!P%fO![%gO#g6kO(O%eO~O![']O%f6nO~Ok6rO![']O%f6nO~O#h'eaP'eaR'ea['eaa'eao'ea!i'ea!m'ea#O'ea#k'ea#l'ea#m'ea#n'ea#o'ea#p'ea#q'ea#r'ea#s'ea#u'ea#w'ea#y'ea#z'ea'u'ea(['ea(m'ea!h'ea!V'ea's'eas'ea!['ea%f'ea!d'ea~P%+]O#h'gaP'gaR'ga['gaa'gao'ga!i'ga!m'ga#O'ga#k'ga#l'ga#m'ga#n'ga#o'ga#p'ga#q'ga#r'ga#s'ga#u'ga#w'ga#y'ga#z'ga'u'ga(['ga(m'ga!h'ga!V'ga's'gas'ga!['ga%f'ga!d'ga~P%,OO#h$ziP$ziR$zi[$zia$zio$zi!Y$zi!i$zi!m$zi#O$zi#k$zi#l$zi#m$zi#n$zi#o$zi#p$zi#q$zi#r$zi#s$zi#u$zi#w$zi#y$zi#z$zi'u$zi([$zi(m$zi!h$zi!V$zi's$zi#]$zis$zi![$zi%f$zi!d$zi~P#.aO#h%^iP%^iR%^i[%^ia%^io%^i!i%^i!m%^i#O%^i#k%^i#l%^i#m%^i#n%^i#o%^i#p%^i#q%^i#r%^i#s%^i#u%^i#w%^i#y%^i#z%^i'u%^i([%^i(m%^i!h%^i!V%^i's%^is%^i![%^i%f%^i!d%^i~P%0^O#h%`iP%`iR%`i[%`ia%`io%`i!i%`i!m%`i#O%`i#k%`i#l%`i#m%`i#n%`i#o%`i#p%`i#q%`i#r%`i#s%`i#u%`i#w%`i#y%`i#z%`i'u%`i([%`i(m%`i!h%`i!V%`i's%`is%`i![%`i%f%`i!d%`i~P%1PO!Y'Ua!h'Ua~P!9mO!Y.lO!h(fi~O#}#`i!Y#`i!Z#`i~P#D_OP$]OR#zO}#yO!P#{O!i#xO!m$]O([VO[#jio#ji#O#ji#l#ji#m#ji#n#ji#o#ji#p#ji#q#ji#r#ji#s#ji#u#ji#w#ji#y#ji#z#ji#}#ji(m#ji(t#ji(u#ji!Y#ji!Z#ji~O#k#ji~P%HpO#k:tO~P%HpOP$]OR#zO}#yO!P#{O!i#xO!m$]O#k:tO#l:uO#m:uO#n:uO([VO[#ji#O#ji#o#ji#p#ji#q#ji#r#ji#s#ji#u#ji#w#ji#y#ji#z#ji#}#ji(m#ji(t#ji(u#ji!Y#ji!Z#ji~Oo#ji~P%JxOo:vO~P%JxOP$]OR#zOo:vO}#yO!P#{O!i#xO!m$]O#k:tO#l:uO#m:uO#n:uO#o:wO([VO#u#ji#w#ji#y#ji#z#ji#}#ji(m#ji(t#ji(u#ji!Y#ji!Z#ji~O[#ji#O#ji#p#ji#q#ji#r#ji#s#ji~P%MQO[;SO#O:xO#p:xO#q:xO#r;RO#s:xO~P%MQOP$]OR#zO[;SOo:vO}#yO!P#{O!i#xO!m$]O#O:xO#k:tO#l:uO#m:uO#n:uO#o:wO#p:xO#q:xO#r;RO#s:xO#u:yO([VO(u#}O#y#ji#z#ji#}#ji(m#ji(t#ji!Y#ji!Z#ji~O#w:{O~P& iO#w#ji~P& iOP$]OR#zO[;SOo:vO}#yO!P#{O!i#xO!m$]O#O:xO#k:tO#l:uO#m:uO#n:uO#o:wO#p:xO#q:xO#r;RO#s:xO#u:yO([VO#y#ji#z#ji#}#ji(m#ji!Y#ji!Z#ji~O#w#ji(t#ji(u#ji~P&#qO#w:{O(t#|O(u#}O~P&#qOP$]OR#zO[;SOo:vO}#yO!P#{O!i#xO!m$]O#O:xO#k:tO#l:uO#m:uO#n:uO#o:wO#p:xO#q:xO#r;RO#s:xO#u:yO#w:{O#y:}O([VO(t#|O(u#}O~O#z#ji#}#ji(m#ji!Y#ji!Z#ji~P&&POa#{y!Y#{y'u#{y's#{y!V#{y!h#{ys#{y![#{y%f#{y!d#{y~P!9mOk < TypeParamList TypeDefinition extends ThisType this LiteralType ArithOp Number BooleanLiteral TemplateType InterpolationEnd Interpolation InterpolationStart NullType null VoidType void TypeofType typeof MemberExpression . PropertyName [ TemplateString Escape Interpolation super RegExp ] ArrayExpression Spread , } { ObjectExpression Property async get set PropertyDefinition Block : NewTarget new NewExpression ) ( ArgList UnaryExpression delete LogicOp BitOp YieldExpression yield AwaitExpression await ParenthesizedExpression ClassExpression class ClassBody MethodDeclaration Decorator @ MemberExpression PrivatePropertyName CallExpression TypeArgList CompareOp < declare Privacy static abstract override PrivatePropertyDefinition PropertyDeclaration readonly accessor Optional TypeAnnotation Equals StaticBlock FunctionExpression ArrowFunction ParamList ParamList ArrayPattern ObjectPattern PatternProperty Privacy readonly Arrow MemberExpression BinaryExpression ArithOp ArithOp ArithOp ArithOp BitOp CompareOp instanceof satisfies in const CompareOp BitOp BitOp BitOp LogicOp LogicOp ConditionalExpression LogicOp LogicOp AssignmentExpression UpdateOp PostfixExpression CallExpression InstantiationExpression TaggedTemplateExpression DynamicImport import ImportMeta JSXElement JSXSelfCloseEndTag JSXSelfClosingTag JSXIdentifier JSXBuiltin JSXIdentifier JSXNamespacedName JSXMemberExpression JSXSpreadAttribute JSXAttribute JSXAttributeValue JSXEscape JSXEndTag JSXOpenTag JSXFragmentTag JSXText JSXEscape JSXStartCloseTag JSXCloseTag PrefixCast ArrowFunction TypeParamList SequenceExpression InstantiationExpression KeyofType keyof UniqueType unique ImportType InferredType infer TypeName ParenthesizedType FunctionSignature ParamList NewSignature IndexedType TupleType Label ArrayType ReadonlyType ObjectType MethodType PropertyType IndexSignature PropertyDefinition CallSignature TypePredicate is NewSignature new UnionType LogicOp IntersectionType LogicOp ConditionalType ParameterizedType ClassDeclaration abstract implements type VariableDeclaration let var using TypeAliasDeclaration InterfaceDeclaration interface EnumDeclaration enum EnumBody NamespaceDeclaration namespace module AmbientDeclaration declare GlobalDeclaration global ClassDeclaration ClassBody AmbientFunctionDeclaration ExportGroup VariableName VariableName ImportDeclaration ImportGroup ForStatement for ForSpec ForInSpec ForOfSpec of WhileStatement while WithStatement with DoStatement do IfStatement if else SwitchStatement switch SwitchBody CaseLabel case DefaultLabel TryStatement try CatchClause catch FinallyClause finally ReturnStatement return ThrowStatement throw BreakStatement break ContinueStatement continue DebuggerStatement debugger LabeledStatement ExpressionStatement SingleExpression SingleClassItem",maxTerm:376,context:t8,nodeProps:[["isolate",-8,5,6,14,34,36,48,50,52,""],["group",-26,9,17,19,65,204,208,212,213,215,218,221,231,233,239,241,243,245,248,254,260,262,264,266,268,270,271,"Statement",-34,13,14,29,32,33,39,48,51,52,54,59,67,69,73,77,79,81,82,107,108,117,118,135,138,140,141,142,143,144,146,147,166,167,169,"Expression",-23,28,30,34,38,40,42,171,173,175,176,178,179,180,182,183,184,186,187,188,198,200,202,203,"Type",-3,85,100,106,"ClassItem"],["openedBy",23,"<",35,"InterpolationStart",53,"[",57,"{",70,"(",159,"JSXStartCloseTag"],["closedBy",24,">",37,"InterpolationEnd",47,"]",58,"}",71,")",164,"JSXEndTag"]],propSources:[a8],skippedNodes:[0,5,6,274],repeatNodeCount:37,tokenData:"$Fq07[R!bOX%ZXY+gYZ-yZ[+g[]%Z]^.c^p%Zpq+gqr/mrs3cst:_tuEruvJSvwLkwx! Yxy!'iyz!(sz{!)}{|!,q|}!.O}!O!,q!O!P!/Y!P!Q!9j!Q!R#:O!R![#<_![!]#I_!]!^#Jk!^!_#Ku!_!`$![!`!a$$v!a!b$*T!b!c$,r!c!}Er!}#O$-|#O#P$/W#P#Q$4o#Q#R$5y#R#SEr#S#T$7W#T#o$8b#o#p$x#r#s$@U#s$f%Z$f$g+g$g#BYEr#BY#BZ$A`#BZ$ISEr$IS$I_$A`$I_$I|Er$I|$I}$Dk$I}$JO$Dk$JO$JTEr$JT$JU$A`$JU$KVEr$KV$KW$A`$KW&FUEr&FU&FV$A`&FV;'SEr;'S;=`I|<%l?HTEr?HT?HU$A`?HUOEr(n%d_$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z&j&hT$h&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c&j&zP;=`<%l&c'|'U]$h&j(U!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!b(SU(U!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}!b(iP;=`<%l'}'|(oP;=`<%l&}'[(y]$h&j(RpOY(rYZ&cZr(rrs&cs!^(r!^!_)r!_#O(r#O#P&c#P#o(r#o#p)r#p;'S(r;'S;=`*a<%lO(rp)wU(RpOY)rZr)rs#O)r#P;'S)r;'S;=`*Z<%lO)rp*^P;=`<%l)r'[*dP;=`<%l(r#S*nX(Rp(U!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g#S+^P;=`<%l*g(n+dP;=`<%l%Z07[+rq$h&j(Rp(U!b'w0/lOX%ZXY+gYZ&cZ[+g[p%Zpq+gqr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p$f%Z$f$g+g$g#BY%Z#BY#BZ+g#BZ$IS%Z$IS$I_+g$I_$JT%Z$JT$JU+g$JU$KV%Z$KV$KW+g$KW&FU%Z&FU&FV+g&FV;'S%Z;'S;=`+a<%l?HT%Z?HT?HU+g?HUO%Z07[.ST(S#S$h&j'x0/lO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c07[.n_$h&j(Rp(U!b'x0/lOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z)3p/x`$h&j!m),Q(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`0z!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW1V`#u(Ch$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`2X!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW2d_#u(Ch$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'At3l_(Q':f$h&j(U!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k(^4r_$h&j(U!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k&z5vX$h&jOr5qrs6cs!^5q!^!_6y!_#o5q#o#p6y#p;'S5q;'S;=`7h<%lO5q&z6jT$c`$h&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c`6|TOr6yrs7]s;'S6y;'S;=`7b<%lO6y`7bO$c``7eP;=`<%l6y&z7kP;=`<%l5q(^7w]$c`$h&j(U!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!r8uZ(U!bOY8pYZ6yZr8prs9hsw8pwx6yx#O8p#O#P6y#P;'S8p;'S;=`:R<%lO8p!r9oU$c`(U!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}!r:UP;=`<%l8p(^:[P;=`<%l4k%9[:hh$h&j(Rp(U!bOY%ZYZ&cZq%Zqr`#P#o`x!^=^!^!_?q!_#O=^#O#P>`#P#o=^#o#p?q#p;'S=^;'S;=`@h<%lO=^&n>gXWS$h&jOY>`YZ&cZ!^>`!^!_?S!_#o>`#o#p?S#p;'S>`;'S;=`?k<%lO>`S?XSWSOY?SZ;'S?S;'S;=`?e<%lO?SS?hP;=`<%l?S&n?nP;=`<%l>`!f?xWWS(U!bOY?qZw?qwx?Sx#O?q#O#P?S#P;'S?q;'S;=`@b<%lO?q!f@eP;=`<%l?q(Q@kP;=`<%l=^'`@w]WS$h&j(RpOY@nYZ&cZr@nrs>`s!^@n!^!_Ap!_#O@n#O#P>`#P#o@n#o#pAp#p;'S@n;'S;=`Bg<%lO@ntAwWWS(RpOYApZrAprs?Ss#OAp#O#P?S#P;'SAp;'S;=`Ba<%lOAptBdP;=`<%lAp'`BjP;=`<%l@n#WBvYWS(Rp(U!bOYBmZrBmrs?qswBmwxApx#OBm#O#P?S#P;'SBm;'S;=`Cf<%lOBm#WCiP;=`<%lBm(rCoP;=`<%l^!Q^$h&j!U7`OY!=yYZ&cZ!P!=y!P!Q!>|!Q!^!=y!^!_!@c!_!}!=y!}#O!CW#O#P!Dy#P#o!=y#o#p!@c#p;'S!=y;'S;=`!Ek<%lO!=y|#X#Z&c#Z#[!>|#[#]&c#]#^!>|#^#a&c#a#b!>|#b#g&c#g#h!>|#h#i&c#i#j!>|#j#k!>|#k#m&c#m#n!>|#n#o&c#p;'S&c;'S;=`&w<%lO&c7`!@hX!U7`OY!@cZ!P!@c!P!Q!AT!Q!}!@c!}#O!Ar#O#P!Bq#P;'S!@c;'S;=`!CQ<%lO!@c7`!AYW!U7`#W#X!AT#Z#[!AT#]#^!AT#a#b!AT#g#h!AT#i#j!AT#j#k!AT#m#n!AT7`!AuVOY!ArZ#O!Ar#O#P!B[#P#Q!@c#Q;'S!Ar;'S;=`!Bk<%lO!Ar7`!B_SOY!ArZ;'S!Ar;'S;=`!Bk<%lO!Ar7`!BnP;=`<%l!Ar7`!BtSOY!@cZ;'S!@c;'S;=`!CQ<%lO!@c7`!CTP;=`<%l!@c^!Ezl$h&j(U!b!U7`OY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#W&}#W#X!Eq#X#Z&}#Z#[!Eq#[#]&}#]#^!Eq#^#a&}#a#b!Eq#b#g&}#g#h!Eq#h#i&}#i#j!Eq#j#k!Eq#k#m&}#m#n!Eq#n#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}8r!GyZ(U!b!U7`OY!GrZw!Grwx!@cx!P!Gr!P!Q!Hl!Q!}!Gr!}#O!JU#O#P!Bq#P;'S!Gr;'S;=`!J|<%lO!Gr8r!Hse(U!b!U7`OY'}Zw'}x#O'}#P#W'}#W#X!Hl#X#Z'}#Z#[!Hl#[#]'}#]#^!Hl#^#a'}#a#b!Hl#b#g'}#g#h!Hl#h#i'}#i#j!Hl#j#k!Hl#k#m'}#m#n!Hl#n;'S'};'S;=`(f<%lO'}8r!JZX(U!bOY!JUZw!JUwx!Arx#O!JU#O#P!B[#P#Q!Gr#Q;'S!JU;'S;=`!Jv<%lO!JU8r!JyP;=`<%l!JU8r!KPP;=`<%l!Gr>^!KZ^$h&j(U!bOY!KSYZ&cZw!KSwx!CWx!^!KS!^!_!JU!_#O!KS#O#P!DR#P#Q!^!LYP;=`<%l!KS>^!L`P;=`<%l!_#c#d#Bq#d#l%Z#l#m#Es#m#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#_#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#>j_$h&j(Rp(U!bp'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#?rd$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#AQ!R!S#AQ!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#AQ#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#A]f$h&j(Rp(U!bp'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#AQ!R!S#AQ!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#AQ#S#b%Z#b#c#>_#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#Bzc$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!Y#DV!Y!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#DV#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#Dbe$h&j(Rp(U!bp'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!Y#DV!Y!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#DV#S#b%Z#b#c#>_#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#E|g$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![#Ge![!^%Z!^!_*g!_!c%Z!c!i#Ge!i#O%Z#O#P&c#P#R%Z#R#S#Ge#S#T%Z#T#Z#Ge#Z#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#Gpi$h&j(Rp(U!bp'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![#Ge![!^%Z!^!_*g!_!c%Z!c!i#Ge!i#O%Z#O#P&c#P#R%Z#R#S#Ge#S#T%Z#T#Z#Ge#Z#b%Z#b#c#>_#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z*)x#Il_!d$b$h&j#})Lv(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z)[#Jv_al$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z04f#LS^h#)`#O-o8[r]||-1},{term:338,get:r=>l8[r]||-1},{term:92,get:r=>u8[r]||-1}],tokenPrec:14793});var Kk=[Rr("function ${name}(${params}) {\n ${}\n}",{label:"function",detail:"definition",type:"keyword"}),Rr("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n ${}\n}",{label:"for",detail:"loop",type:"keyword"}),Rr("for (let ${name} of ${collection}) {\n ${}\n}",{label:"for",detail:"of loop",type:"keyword"}),Rr("do {\n ${}\n} while (${})",{label:"do",detail:"loop",type:"keyword"}),Rr("while (${}) {\n ${}\n}",{label:"while",detail:"loop",type:"keyword"}),Rr(`try { \${} } catch (\${error}) { \${} -}`,{label:"try",detail:"/ catch block",type:"keyword"}),Fr("if (${}) {\n ${}\n}",{label:"if",detail:"block",type:"keyword"}),Fr(`if (\${}) { +}`,{label:"try",detail:"/ catch block",type:"keyword"}),Rr("if (${}) {\n ${}\n}",{label:"if",detail:"block",type:"keyword"}),Rr(`if (\${}) { \${} } else { \${} -}`,{label:"if",detail:"/ else block",type:"keyword"}),Fr(`class \${name} { +}`,{label:"if",detail:"/ else block",type:"keyword"}),Rr(`class \${name} { constructor(\${params}) { \${} } -}`,{label:"class",detail:"definition",type:"keyword"}),Fr('import {${names}} from "${module}"\n${}',{label:"import",detail:"named",type:"keyword"}),Fr('import ${name} from "${module}"\n${}',{label:"import",detail:"default",type:"keyword"})],u6=Jk.concat([Fr("interface ${name} {\n ${}\n}",{label:"interface",detail:"definition",type:"keyword"}),Fr("type ${name} = ${type}",{label:"type",detail:"definition",type:"keyword"}),Fr("enum ${name} {\n ${}\n}",{label:"enum",detail:"definition",type:"keyword"})]),Gk=new eu,eA=new Set(["Script","Block","FunctionExpression","FunctionDeclaration","ArrowFunction","MethodDeclaration","ForStatement"]);function Ro(r){return(e,t)=>{let s=e.node.getChild("VariableDefinition");return s&&t(s,r),!0}}var c6=["FunctionDeclaration"],f6={FunctionDeclaration:Ro("function"),ClassDeclaration:Ro("class"),ClassExpression:()=>!0,EnumDeclaration:Ro("constant"),TypeAliasDeclaration:Ro("type"),NamespaceDeclaration:Ro("namespace"),VariableDefinition(r,e){r.matchContext(c6)||e(r,"variable")},TypeDefinition(r,e){e(r,"type")},__proto__:null};function tA(r,e){let t=Gk.get(e);if(t)return t;let s=[],n=!0;function i(a,l){let o=r.sliceString(a.from,a.to);s.push({label:o,type:l})}return e.cursor(nr.IncludeAnonymous).iterate(a=>{if(n)n=!1;else if(a.name){let l=f6[a.name];if(l&&l(a,i)||eA.has(a.name))return!1}else if(a.to-a.from>8192){for(let l of tA(r,a.node))s.push(l);return!1}}),Gk.set(e,s),s}var Yk=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,rA=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName",".","?."];function p6(r){let e=pr(r.state).resolveInner(r.pos,-1);if(rA.indexOf(e.name)>-1)return null;let t=e.name=="VariableName"||e.to-e.from<20&&Yk.test(r.state.sliceDoc(e.from,e.to));if(!t&&!r.explicit)return null;let s=[];for(let n=e;n;n=n.parent)eA.has(n.name)&&(s=s.concat(tA(r.state.doc,n)));return{options:s,from:t?e.from:r.pos,validFor:Yk}}var Vn=au.define({name:"javascript",parser:Xk.configure({props:[Hp.add({IfStatement:cu({except:/^\s*({|else\b)/}),TryStatement:cu({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:JC,SwitchBody:r=>{let e=r.textAfter,t=/^\s*\}/.test(e),s=/^\s*(case|default)\b/.test(e);return r.baseIndent+(t?0:s?1:2)*r.unit},Block:HC({closing:"}"}),ArrowFunction:r=>r.baseIndent+r.unit,"TemplateString BlockComment":()=>null,"Statement Property":cu({except:/^{/}),JSXElement(r){let e=/^\s*<\//.test(r.textAfter);return r.lineIndent(r.node.from)+(e?0:r.unit)},JSXEscape(r){let e=/\s*\}/.test(r.textAfter);return r.lineIndent(r.node.from)+(e?0:r.unit)},"JSXOpenTag JSXSelfClosingTag"(r){return r.column(r.node.from)+r.unit}}),tw.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":rw,BlockComment(r){return{from:r.from+2,to:r.to-2}}})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),nA={test:r=>/^JSX/.test(r.name),facet:Yp({commentTokens:{block:{open:"{/*",close:"*/}"}}})},h6=Vn.configure({dialect:"ts"},"typescript"),d6=Vn.configure({dialect:"jsx",props:[lu.add(r=>r.isTop?[nA]:void 0)]}),m6=Vn.configure({dialect:"jsx ts",props:[lu.add(r=>r.isTop?[nA]:void 0)]},"typescript"),sA=r=>({label:r,type:"keyword"}),iA="break case const continue default delete export extends false finally in instanceof let new return static super switch this throw true typeof var yield".split(" ").map(sA),g6=iA.concat(["declare","implements","private","protected","public"].map(sA));function aA(r={}){let e=r.jsx?r.typescript?m6:d6:r.typescript?h6:Vn,t=r.typescript?u6.concat(g6):Jk.concat(iA);return new ou(e,[Vn.data.of({autocomplete:yk(rA,Ph(t))}),Vn.data.of({autocomplete:p6}),r.jsx?b6:[]])}function y6(r){for(;;){if(r.name=="JSXOpenTag"||r.name=="JSXSelfClosingTag"||r.name=="JSXFragmentTag")return r;if(r.name=="JSXEscape"||!r.parent)return null;r=r.parent}}function Hk(r,e,t=r.length){for(let s=e?.firstChild;s;s=s.nextSibling)if(s.name=="JSXIdentifier"||s.name=="JSXBuiltin"||s.name=="JSXNamespacedName"||s.name=="JSXMemberExpression")return r.sliceString(s.from,Math.min(s.to,t));return""}var x6=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),b6=at.inputHandler.of((r,e,t,s,n)=>{if((x6?r.composing:r.compositionStarted)||r.state.readOnly||e!=t||s!=">"&&s!="/"||!Vn.isActiveAt(r.state,e,-1))return!1;let i=n(),{state:a}=i,l=a.changeByRange(o=>{var u;let{head:c}=o,p=pr(a).resolveInner(c-1,-1),h;if(p.name=="JSXStartTag"&&(p=p.parent),!(a.doc.sliceString(c-1,c)!=s||p.name=="JSXAttributeValue"&&p.to>c)){if(s==">"&&p.name=="JSXFragmentTag")return{range:o,changes:{from:c,insert:""}};if(s=="/"&&p.name=="JSXStartCloseTag"){let f=p.parent,d=f.parent;if(d&&f.from==c-2&&((h=Hk(a.doc,d.firstChild,c))||((u=d.firstChild)===null||u===void 0?void 0:u.name)=="JSXFragmentTag")){let m=`${h}>`;return{range:Ze.cursor(c+m.length,-1),changes:{from:c,insert:m}}}}else if(s==">"){let f=y6(p);if(f&&f.name=="JSXOpenTag"&&!/^\/?>|^<\//.test(a.doc.sliceString(c,c+2))&&(h=Hk(a.doc,f,c)))return{range:o,changes:{from:c,insert:``}}}}return{range:o}});return l.changes.empty?!1:(r.dispatch([i,a.update(l,{userEvent:"input.complete",scrollIntoView:!0})]),!0)});function oA(r,e){return e||(e={parserOptions:{ecmaVersion:2019,sourceType:"module"},env:{browser:!0,node:!0,es6:!0,es2015:!0,es2017:!0,es2020:!0},rules:{}},r.getRules().forEach((t,s)=>{t.meta.docs.recommended&&(e.rules[s]=2)})),t=>{let{state:s}=t,n=[];for(let{from:i,to:a}of Vn.findRegions(s)){let l=s.doc.lineAt(i),o={line:l.number-1,col:i-l.from,pos:i};for(let u of r.verify(s.sliceDoc(i,a),e))n.push(v6(u,s.doc,o))}return n}}function Kk(r,e,t,s){return t.line(r+s.line).from+e+(r==1?s.col-1:-1)}function v6(r,e,t){let s=Kk(r.line,r.column,e,t),n={from:s,to:r.endLine!=null&&r.endColumn!=1?Kk(r.endLine,r.endColumn,e,t):s,message:r.message,source:r.ruleId?"eslint:"+r.ruleId:"eslint",severity:r.severity==1?"warning":"error"};if(r.fix){let{range:i,text:a}=r.fix,l=i[0]+t.pos-s,o=i[1]+t.pos-s;n.actions=[{name:"fix",apply(u,c){u.dispatch({changes:{from:c+l,to:c+o,insert:a},scrollIntoView:!0})}}]}return n}var O6="#e5c07b",lA="#e06c75",S6="#56b6c2",E6="#ffffff",zu="#abb2bf",Jh="#7d8799",C6="#61afef",w6="#98c379",uA="#d19a66",k6="#c678dd",A6="#21252b",cA="#2c313a",fA="#282c34",Kh="#353a42",P6="#3E4451",pA="#528bff";var T6=at.theme({"&":{color:zu,backgroundColor:fA},".cm-content":{caretColor:pA},".cm-cursor, .cm-dropCursor":{borderLeftColor:pA},"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:P6},".cm-panels":{backgroundColor:A6,color:zu},".cm-panels.cm-panels-top":{borderBottom:"2px solid black"},".cm-panels.cm-panels-bottom":{borderTop:"2px solid black"},".cm-searchMatch":{backgroundColor:"#72a1ff59",outline:"1px solid #457dff"},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:"#6199ff2f"},".cm-activeLine":{backgroundColor:"#6699ff0b"},".cm-selectionMatch":{backgroundColor:"#aafe661a"},"&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bad0f847"},".cm-gutters":{backgroundColor:fA,color:Jh,border:"none"},".cm-activeLineGutter":{backgroundColor:cA},".cm-foldPlaceholder":{backgroundColor:"transparent",border:"none",color:"#ddd"},".cm-tooltip":{border:"none",backgroundColor:Kh},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:Kh,borderBottomColor:Kh},".cm-tooltip-autocomplete":{"& > ul > li[aria-selected]":{backgroundColor:cA,color:zu}}},{dark:!0}),D6=Ji.define([{tag:ke.keyword,color:k6},{tag:[ke.name,ke.deleted,ke.character,ke.propertyName,ke.macroName],color:lA},{tag:[ke.function(ke.variableName),ke.labelName],color:C6},{tag:[ke.color,ke.constant(ke.name),ke.standard(ke.name)],color:uA},{tag:[ke.definition(ke.name),ke.separator],color:zu},{tag:[ke.typeName,ke.className,ke.number,ke.changed,ke.annotation,ke.modifier,ke.self,ke.namespace],color:O6},{tag:[ke.operator,ke.operatorKeyword,ke.url,ke.escape,ke.regexp,ke.link,ke.special(ke.string)],color:S6},{tag:[ke.meta,ke.comment],color:Jh},{tag:ke.strong,fontWeight:"bold"},{tag:ke.emphasis,fontStyle:"italic"},{tag:ke.strikethrough,textDecoration:"line-through"},{tag:ke.link,color:Jh,textDecoration:"underline"},{tag:ke.heading,fontWeight:"bold",color:lA},{tag:[ke.atom,ke.bool,ke.special(ke.variableName)],color:uA},{tag:[ke.processingInstruction,ke.string,ke.inserted],color:w6},{tag:ke.invalid,color:E6}]),hA=[T6,fu(D6)];nc||(nc=globalThis||window);var nc;function cc(r){return r&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var _6={},Jr=typeof nc<"u"?nc:typeof self<"u"?self:typeof window<"u"?window:{};function VR(){throw new Error("setTimeout has not been defined")}function WR(){throw new Error("clearTimeout has not been defined")}var Ls=VR,$s=WR;typeof Jr.setTimeout=="function"&&(Ls=setTimeout);typeof Jr.clearTimeout=="function"&&($s=clearTimeout);function ZR(r){if(Ls===setTimeout)return setTimeout(r,0);if((Ls===VR||!Ls)&&setTimeout)return Ls=setTimeout,setTimeout(r,0);try{return Ls(r,0)}catch{try{return Ls.call(null,r,0)}catch{return Ls.call(this,r,0)}}}function I6(r){if($s===clearTimeout)return clearTimeout(r);if(($s===WR||!$s)&&clearTimeout)return $s=clearTimeout,clearTimeout(r);try{return $s(r)}catch{try{return $s.call(null,r)}catch{return $s.call(this,r)}}}var us=[],ma=!1,hi,rc=-1;function F6(){!ma||!hi||(ma=!1,hi.length?us=hi.concat(us):rc=-1,us.length&&zR())}function zR(){if(!ma){var r=ZR(F6);ma=!0;for(var e=us.length;e;){for(hi=us,us=[];++rc1)for(var t=1;t=0;s--){var n=r[s];n==="."?r.splice(s,1):n===".."?(r.splice(s,1),t++):t&&(r.splice(s,1),t--)}if(e)for(;t--;t)r.unshift("..");return r}var iQ=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,nO=function(r){return iQ.exec(r).slice(1)};function sc(){for(var r="",e=!1,t=arguments.length-1;t>=-1&&!e;t--){var s=t>=0?arguments[t]:"/";if(typeof s!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!s)continue;r=s+"/"+r,e=s.charAt(0)==="/"}return r=GR(aO(r.split("/"),function(n){return!!n}),!e).join("/"),(e?"/":"")+r||"."}function sO(r){var e=iO(r),t=oQ(r,-1)==="/";return r=GR(aO(r.split("/"),function(s){return!!s}),!e).join("/"),!r&&!e&&(r="."),r&&t&&(r+="/"),(e?"/":"")+r}function iO(r){return r.charAt(0)==="/"}function YR(){var r=Array.prototype.slice.call(arguments,0);return sO(aO(r,function(e,t){if(typeof e!="string")throw new TypeError("Arguments to path.join must be strings");return e}).join("/"))}function HR(r,e){r=sc(r).substr(1),e=sc(e).substr(1);function t(u){for(var c=0;c=0&&u[p]==="";p--);return c>p?[]:u.slice(c,p-c+1)}for(var s=t(r.split("/")),n=t(e.split("/")),i=Math.min(s.length,n.length),a=i,l=0;l0)throw new Error("Invalid string. Length must be a multiple of 4");i=r[l-2]==="="?2:r[l-1]==="="?1:0,a=new uQ(l*3/4-i),s=i>0?l-4:l;var o=0;for(e=0,t=0;e>16&255,a[o++]=n>>8&255,a[o++]=n&255;return i===2?(n=pn[r.charCodeAt(e)]<<2|pn[r.charCodeAt(e+1)]>>4,a[o++]=n&255):i===1&&(n=pn[r.charCodeAt(e)]<<10|pn[r.charCodeAt(e+1)]<<4|pn[r.charCodeAt(e+2)]>>2,a[o++]=n>>8&255,a[o++]=n&255),a}function fQ(r){return Wn[r>>18&63]+Wn[r>>12&63]+Wn[r>>6&63]+Wn[r&63]}function pQ(r,e,t){for(var s,n=[],i=e;io?o:l+a));return s===1?(e=r[t-1],n+=Wn[e>>2],n+=Wn[e<<4&63],n+="=="):s===2&&(e=(r[t-2]<<8)+r[t-1],n+=Wn[e>>10],n+=Wn[e>>4&63],n+=Wn[e<<2&63],n+="="),i.push(n),i.join("")}function pc(r,e,t,s,n){var i,a,l=n*8-s-1,o=(1<>1,c=-7,p=t?n-1:0,h=t?-1:1,f=r[e+p];for(p+=h,i=f&(1<<-c)-1,f>>=-c,c+=l;c>0;i=i*256+r[e+p],p+=h,c-=8);for(a=i&(1<<-c)-1,i>>=-c,c+=s;c>0;a=a*256+r[e+p],p+=h,c-=8);if(i===0)i=1-u;else{if(i===o)return a?NaN:(f?-1:1)*(1/0);a=a+Math.pow(2,s),i=i-u}return(f?-1:1)*a*Math.pow(2,i-s)}function sB(r,e,t,s,n,i){var a,l,o,u=i*8-n-1,c=(1<>1,h=n===23?Math.pow(2,-24)-Math.pow(2,-77):0,f=s?0:i-1,d=s?1:-1,m=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(l=isNaN(e)?1:0,a=c):(a=Math.floor(Math.log(e)/Math.LN2),e*(o=Math.pow(2,-a))<1&&(a--,o*=2),a+p>=1?e+=h/o:e+=h*Math.pow(2,1-p),e*o>=2&&(a++,o/=2),a+p>=c?(l=0,a=c):a+p>=1?(l=(e*o-1)*Math.pow(2,n),a=a+p):(l=e*Math.pow(2,p-1)*Math.pow(2,n),a=0));n>=8;r[t+f]=l&255,f+=d,l/=256,n-=8);for(a=a<0;r[t+f]=a&255,f+=d,a/=256,u-=8);r[t+f-d]|=m*128}var hQ={}.toString,iB=Array.isArray||function(r){return hQ.call(r)=="[object Array]"};var dQ=50;Xe.TYPED_ARRAY_SUPPORT=Jr.TYPED_ARRAY_SUPPORT!==void 0?Jr.TYPED_ARRAY_SUPPORT:!0;ic();function ic(){return Xe.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function cs(r,e){if(ic()=ic())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+ic().toString(16)+" bytes");return r|0}Xe.isBuffer=da;function zn(r){return!!(r!=null&&r._isBuffer)}Xe.compare=function(e,t){if(!zn(e)||!zn(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var s=e.length,n=t.length,i=0,a=Math.min(s,n);i>>1;case"base64":return mB(r).length;default:if(s)return ac(r).length;e=(""+e).toLowerCase(),s=!0}}Xe.byteLength=lB;function bQ(r,e,t){var s=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((t===void 0||t>this.length)&&(t=this.length),t<=0)||(t>>>=0,e>>>=0,t<=e))return"";for(r||(r="utf8");;)switch(r){case"hex":return TQ(this,e,t);case"utf8":case"utf-8":return fB(this,e,t);case"ascii":return AQ(this,e,t);case"latin1":case"binary":return PQ(this,e,t);case"base64":return wQ(this,e,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return DQ(this,e,t);default:if(s)throw new TypeError("Unknown encoding: "+r);r=(r+"").toLowerCase(),s=!0}}Xe.prototype._isBuffer=!0;function di(r,e,t){var s=r[e];r[e]=r[t],r[t]=s}Xe.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t0&&(e=this.toString("hex",0,t).match(/.{2}/g).join(" "),this.length>t&&(e+=" ... ")),""};Xe.prototype.compare=function(e,t,s,n,i){if(!zn(e))throw new TypeError("Argument must be a Buffer");if(t===void 0&&(t=0),s===void 0&&(s=e?e.length:0),n===void 0&&(n=0),i===void 0&&(i=this.length),t<0||s>e.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=s)return 0;if(n>=i)return-1;if(t>=s)return 1;if(t>>>=0,s>>>=0,n>>>=0,i>>>=0,this===e)return 0;for(var a=i-n,l=s-t,o=Math.min(a,l),u=this.slice(n,i),c=e.slice(t,s),p=0;p2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,isNaN(t)&&(t=n?0:r.length-1),t<0&&(t=r.length+t),t>=r.length){if(n)return-1;t=r.length-1}else if(t<0)if(n)t=0;else return-1;if(typeof e=="string"&&(e=Xe.from(e,s)),zn(e))return e.length===0?-1:mA(r,e,t,s,n);if(typeof e=="number")return e=e&255,Xe.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?n?Uint8Array.prototype.indexOf.call(r,e,t):Uint8Array.prototype.lastIndexOf.call(r,e,t):mA(r,[e],t,s,n);throw new TypeError("val must be string, number or Buffer")}function mA(r,e,t,s,n){var i=1,a=r.length,l=e.length;if(s!==void 0&&(s=String(s).toLowerCase(),s==="ucs2"||s==="ucs-2"||s==="utf16le"||s==="utf-16le")){if(r.length<2||e.length<2)return-1;i=2,a/=2,l/=2,t/=2}function o(f,d){return i===1?f[d]:f.readUInt16BE(d*i)}var u;if(n){var c=-1;for(u=t;ua&&(t=a-l),u=t;u>=0;u--){for(var p=!0,h=0;hn&&(s=n)):s=n;var i=e.length;if(i%2!==0)throw new TypeError("Invalid hex string");s>i/2&&(s=i/2);for(var a=0;ai)&&(s=i),e.length>0&&(s<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var a=!1;;)switch(n){case"hex":return vQ(this,e,t,s);case"utf8":case"utf-8":return OQ(this,e,t,s);case"ascii":return cB(this,e,t,s);case"latin1":case"binary":return SQ(this,e,t,s);case"base64":return EQ(this,e,t,s);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return CQ(this,e,t,s);default:if(a)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),a=!0}};Xe.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function wQ(r,e,t){return e===0&&t===r.length?dA(r):dA(r.slice(e,t))}function fB(r,e,t){t=Math.min(r.length,t);for(var s=[],n=e;n239?4:i>223?3:i>191?2:1;if(n+l<=t){var o,u,c,p;switch(l){case 1:i<128&&(a=i);break;case 2:o=r[n+1],(o&192)===128&&(p=(i&31)<<6|o&63,p>127&&(a=p));break;case 3:o=r[n+1],u=r[n+2],(o&192)===128&&(u&192)===128&&(p=(i&15)<<12|(o&63)<<6|u&63,p>2047&&(p<55296||p>57343)&&(a=p));break;case 4:o=r[n+1],u=r[n+2],c=r[n+3],(o&192)===128&&(u&192)===128&&(c&192)===128&&(p=(i&15)<<18|(o&63)<<12|(u&63)<<6|c&63,p>65535&&p<1114112&&(a=p))}}a===null?(a=65533,l=1):a>65535&&(a-=65536,s.push(a>>>10&1023|55296),a=56320|a&1023),s.push(a),n+=l}return kQ(s)}var gA=4096;function kQ(r){var e=r.length;if(e<=gA)return String.fromCharCode.apply(String,r);for(var t="",s=0;ss)&&(t=s);for(var n="",i=e;is&&(e=s),t<0?(t+=s,t<0&&(t=0)):t>s&&(t=s),tt)throw new RangeError("Trying to access beyond buffer length")}Xe.prototype.readUIntLE=function(e,t,s){e=e|0,t=t|0,s||xr(e,t,this.length);for(var n=this[e],i=1,a=0;++a0&&(i*=256);)n+=this[e+--t]*i;return n};Xe.prototype.readUInt8=function(e,t){return t||xr(e,1,this.length),this[e]};Xe.prototype.readUInt16LE=function(e,t){return t||xr(e,2,this.length),this[e]|this[e+1]<<8};Xe.prototype.readUInt16BE=function(e,t){return t||xr(e,2,this.length),this[e]<<8|this[e+1]};Xe.prototype.readUInt32LE=function(e,t){return t||xr(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216};Xe.prototype.readUInt32BE=function(e,t){return t||xr(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])};Xe.prototype.readIntLE=function(e,t,s){e=e|0,t=t|0,s||xr(e,t,this.length);for(var n=this[e],i=1,a=0;++a=i&&(n-=Math.pow(2,8*t)),n};Xe.prototype.readIntBE=function(e,t,s){e=e|0,t=t|0,s||xr(e,t,this.length);for(var n=t,i=1,a=this[e+--n];n>0&&(i*=256);)a+=this[e+--n]*i;return i*=128,a>=i&&(a-=Math.pow(2,8*t)),a};Xe.prototype.readInt8=function(e,t){return t||xr(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]};Xe.prototype.readInt16LE=function(e,t){t||xr(e,2,this.length);var s=this[e]|this[e+1]<<8;return s&32768?s|4294901760:s};Xe.prototype.readInt16BE=function(e,t){t||xr(e,2,this.length);var s=this[e+1]|this[e]<<8;return s&32768?s|4294901760:s};Xe.prototype.readInt32LE=function(e,t){return t||xr(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};Xe.prototype.readInt32BE=function(e,t){return t||xr(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};Xe.prototype.readFloatLE=function(e,t){return t||xr(e,4,this.length),pc(this,e,!0,23,4)};Xe.prototype.readFloatBE=function(e,t){return t||xr(e,4,this.length),pc(this,e,!1,23,4)};Xe.prototype.readDoubleLE=function(e,t){return t||xr(e,8,this.length),pc(this,e,!0,52,8)};Xe.prototype.readDoubleBE=function(e,t){return t||xr(e,8,this.length),pc(this,e,!1,52,8)};function qr(r,e,t,s,n,i){if(!zn(r))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>n||er.length)throw new RangeError("Index out of range")}Xe.prototype.writeUIntLE=function(e,t,s,n){if(e=+e,t=t|0,s=s|0,!n){var i=Math.pow(2,8*s)-1;qr(this,e,t,s,i,0)}var a=1,l=0;for(this[t]=e&255;++l=0&&(l*=256);)this[t+a]=e/l&255;return t+s};Xe.prototype.writeUInt8=function(e,t,s){return e=+e,t=t|0,s||qr(this,e,t,1,255,0),Xe.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=e&255,t+1};function hc(r,e,t,s){e<0&&(e=65535+e+1);for(var n=0,i=Math.min(r.length-t,2);n>>(s?n:1-n)*8}Xe.prototype.writeUInt16LE=function(e,t,s){return e=+e,t=t|0,s||qr(this,e,t,2,65535,0),Xe.TYPED_ARRAY_SUPPORT?(this[t]=e&255,this[t+1]=e>>>8):hc(this,e,t,!0),t+2};Xe.prototype.writeUInt16BE=function(e,t,s){return e=+e,t=t|0,s||qr(this,e,t,2,65535,0),Xe.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=e&255):hc(this,e,t,!1),t+2};function dc(r,e,t,s){e<0&&(e=4294967295+e+1);for(var n=0,i=Math.min(r.length-t,4);n>>(s?n:3-n)*8&255}Xe.prototype.writeUInt32LE=function(e,t,s){return e=+e,t=t|0,s||qr(this,e,t,4,4294967295,0),Xe.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=e&255):dc(this,e,t,!0),t+4};Xe.prototype.writeUInt32BE=function(e,t,s){return e=+e,t=t|0,s||qr(this,e,t,4,4294967295,0),Xe.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255):dc(this,e,t,!1),t+4};Xe.prototype.writeIntLE=function(e,t,s,n){if(e=+e,t=t|0,!n){var i=Math.pow(2,8*s-1);qr(this,e,t,s,i-1,-i)}var a=0,l=1,o=0;for(this[t]=e&255;++a>0)-o&255;return t+s};Xe.prototype.writeIntBE=function(e,t,s,n){if(e=+e,t=t|0,!n){var i=Math.pow(2,8*s-1);qr(this,e,t,s,i-1,-i)}var a=s-1,l=1,o=0;for(this[t+a]=e&255;--a>=0&&(l*=256);)e<0&&o===0&&this[t+a+1]!==0&&(o=1),this[t+a]=(e/l>>0)-o&255;return t+s};Xe.prototype.writeInt8=function(e,t,s){return e=+e,t=t|0,s||qr(this,e,t,1,127,-128),Xe.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=e&255,t+1};Xe.prototype.writeInt16LE=function(e,t,s){return e=+e,t=t|0,s||qr(this,e,t,2,32767,-32768),Xe.TYPED_ARRAY_SUPPORT?(this[t]=e&255,this[t+1]=e>>>8):hc(this,e,t,!0),t+2};Xe.prototype.writeInt16BE=function(e,t,s){return e=+e,t=t|0,s||qr(this,e,t,2,32767,-32768),Xe.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=e&255):hc(this,e,t,!1),t+2};Xe.prototype.writeInt32LE=function(e,t,s){return e=+e,t=t|0,s||qr(this,e,t,4,2147483647,-2147483648),Xe.TYPED_ARRAY_SUPPORT?(this[t]=e&255,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):dc(this,e,t,!0),t+4};Xe.prototype.writeInt32BE=function(e,t,s){return e=+e,t=t|0,s||qr(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),Xe.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255):dc(this,e,t,!1),t+4};function pB(r,e,t,s,n,i){if(t+s>r.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function hB(r,e,t,s,n){return n||pB(r,e,t,4),sB(r,e,t,s,23,4),t+4}Xe.prototype.writeFloatLE=function(e,t,s){return hB(this,e,t,!0,s)};Xe.prototype.writeFloatBE=function(e,t,s){return hB(this,e,t,!1,s)};function dB(r,e,t,s,n){return n||pB(r,e,t,8),sB(r,e,t,s,52,8),t+8}Xe.prototype.writeDoubleLE=function(e,t,s){return dB(this,e,t,!0,s)};Xe.prototype.writeDoubleBE=function(e,t,s){return dB(this,e,t,!1,s)};Xe.prototype.copy=function(e,t,s,n){if(s||(s=0),!n&&n!==0&&(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t=0;--a)e[a+t]=this[a+s];else if(i<1e3||!Xe.TYPED_ARRAY_SUPPORT)for(a=0;a>>0,s=s===void 0?this.length:s>>>0,e||(e=0);var a;if(typeof e=="number")for(a=t;a55295&&t<57344){if(!n){if(t>56319){(e-=3)>-1&&i.push(239,191,189);continue}else if(a+1===s){(e-=3)>-1&&i.push(239,191,189);continue}n=t;continue}if(t<56320){(e-=3)>-1&&i.push(239,191,189),n=t;continue}t=(n-55296<<10|t-56320)+65536}else n&&(e-=3)>-1&&i.push(239,191,189);if(n=null,t<128){if((e-=1)<0)break;i.push(t)}else if(t<2048){if((e-=2)<0)break;i.push(t>>6|192,t&63|128)}else if(t<65536){if((e-=3)<0)break;i.push(t>>12|224,t>>6&63|128,t&63|128)}else if(t<1114112){if((e-=4)<0)break;i.push(t>>18|240,t>>12&63|128,t>>6&63|128,t&63|128)}else throw new Error("Invalid code point")}return i}function BQ(r){for(var e=[],t=0;t>8,n=t%256,i.push(n),i.push(s);return i}function mB(r){return cQ(IQ(r))}function mc(r,e,t,s){for(var n=0;n=e.length||n>=r.length);++n)e[n+t]=r[n];return n}function LQ(r){return r!==r}function da(r){return r!=null&&(!!r._isBuffer||gB(r)||$Q(r))}function gB(r){return!!r.constructor&&typeof r.constructor.isBuffer=="function"&&r.constructor.isBuffer(r)}function $Q(r){return typeof r.readFloatLE=="function"&&typeof r.slice=="function"&&gB(r.slice(0,0))}var Kv;typeof Object.create=="function"?Kv=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:Kv=function(e,t){e.super_=t;var s=function(){};s.prototype=t.prototype,e.prototype=new s,e.prototype.constructor=e};var cO=Kv,yB=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),s={},n=0;n=n)return l;switch(l){case"%s":return String(s[t++]);case"%d":return Number(s[t++]);case"%j":try{return JSON.stringify(s[t++])}catch{return"[Circular]"}default:return l}}),a=s[t];t=3&&(t.depth=arguments[2]),arguments.length>=4&&(t.colors=arguments[3]),yc(e)?t.showHidden=e:e&&mO(t,e),Zn(t.showHidden)&&(t.showHidden=!1),Zn(t.depth)&&(t.depth=2),Zn(t.colors)&&(t.colors=!1),Zn(t.customInspect)&&(t.customInspect=!0),t.colors&&(t.stylize=jQ),oc(t,r,t.depth)}wn.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]};wn.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function jQ(r,e){var t=wn.styles[e];return t?"\x1B["+wn.colors[t][0]+"m"+r+"\x1B["+wn.colors[t][1]+"m":r}function qQ(r,e){return r}function QQ(r){var e={};return r.forEach(function(t,s){e[t]=!0}),e}function oc(r,e,t){if(r.customInspect&&e&&gi(e.inspect)&&e.inspect!==wn&&!(e.constructor&&e.constructor.prototype===e)){var s=e.inspect(t,r);return Uo(s)||(s=oc(r,s,t)),s}var n=UQ(r,e);if(n)return n;var i=Object.keys(e),a=QQ(i);if(r.showHidden&&(i=Object.getOwnPropertyNames(e)),ga(e)&&(i.indexOf("message")>=0||i.indexOf("description")>=0))return td(e);if(i.length===0){if(gi(e)){var l=e.name?": "+e.name:"";return r.stylize("[Function"+l+"]","special")}if(mi(e))return r.stylize(RegExp.prototype.toString.call(e),"regexp");if(ya(e))return r.stylize(Date.prototype.toString.call(e),"date");if(ga(e))return td(e)}var o="",u=!1,c=["{","}"];if(pO(e)&&(u=!0,c=["[","]"]),gi(e)){var p=e.name?": "+e.name:"";o=" [Function"+p+"]"}if(mi(e)&&(o=" "+RegExp.prototype.toString.call(e)),ya(e)&&(o=" "+Date.prototype.toUTCString.call(e)),ga(e)&&(o=" "+td(e)),i.length===0&&(!u||e.length==0))return c[0]+o+c[1];if(t<0)return mi(e)?r.stylize(RegExp.prototype.toString.call(e),"regexp"):r.stylize("[Object]","special");r.seen.push(e);var h;return u?h=VQ(r,e,t,a,i):h=i.map(function(f){return Jv(r,e,t,a,f,u)}),r.seen.pop(),WQ(h,o,c)}function UQ(r,e){if(Zn(e))return r.stylize("undefined","undefined");if(Uo(e)){var t="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return r.stylize(t,"string")}if(hO(e))return r.stylize(""+e,"number");if(yc(e))return r.stylize(""+e,"boolean");if(Qo(e))return r.stylize("null","null")}function td(r){return"["+Error.prototype.toString.call(r)+"]"}function VQ(r,e,t,s,n){for(var i=[],a=0,l=e.length;a{let s=e.node.getChild("VariableDefinition");return s&&t(s,r),!0}}var f8=["FunctionDeclaration"],p8={FunctionDeclaration:Fo("function"),ClassDeclaration:Fo("class"),ClassExpression:()=>!0,EnumDeclaration:Fo("constant"),TypeAliasDeclaration:Fo("type"),NamespaceDeclaration:Fo("namespace"),VariableDefinition(r,e){r.matchContext(f8)||e(r,"variable")},TypeDefinition(r,e){e(r,"type")},__proto__:null};function eA(r,e){let t=Gk.get(e);if(t)return t;let s=[],n=!0;function i(a,l){let o=r.sliceString(a.from,a.to);s.push({label:o,type:l})}return e.cursor(nr.IncludeAnonymous).iterate(a=>{if(n)n=!1;else if(a.name){let l=p8[a.name];if(l&&l(a,i)||Jk.has(a.name))return!1}else if(a.to-a.from>8192){for(let l of eA(r,a.node))s.push(l);return!1}}),Gk.set(e,s),s}var Xk=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,tA=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName",".","?."];function h8(r){let e=pr(r.state).resolveInner(r.pos,-1);if(tA.indexOf(e.name)>-1)return null;let t=e.name=="VariableName"||e.to-e.from<20&&Xk.test(r.state.sliceDoc(e.from,e.to));if(!t&&!r.explicit)return null;let s=[];for(let n=e;n;n=n.parent)Jk.has(n.name)&&(s=s.concat(eA(r.state.doc,n)));return{options:s,from:t?e.from:r.pos,validFor:Xk}}var Vn=au.define({name:"javascript",parser:Zk.configure({props:[Hp.add({IfStatement:cu({except:/^\s*({|else\b)/}),TryStatement:cu({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:Kw,SwitchBody:r=>{let e=r.textAfter,t=/^\s*\}/.test(e),s=/^\s*(case|default)\b/.test(e);return r.baseIndent+(t?0:s?1:2)*r.unit},Block:Yw({closing:"}"}),ArrowFunction:r=>r.baseIndent+r.unit,"TemplateString BlockComment":()=>null,"Statement Property":cu({except:/^{/}),JSXElement(r){let e=/^\s*<\//.test(r.textAfter);return r.lineIndent(r.node.from)+(e?0:r.unit)},JSXEscape(r){let e=/\s*\}/.test(r.textAfter);return r.lineIndent(r.node.from)+(e?0:r.unit)},"JSXOpenTag JSXSelfClosingTag"(r){return r.column(r.node.from)+r.unit}}),eC.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":tC,BlockComment(r){return{from:r.from+2,to:r.to-2}}})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),rA={test:r=>/^JSX/.test(r.name),facet:Yp({commentTokens:{block:{open:"{/*",close:"*/}"}}})},d8=Vn.configure({dialect:"ts"},"typescript"),m8=Vn.configure({dialect:"jsx",props:[lu.add(r=>r.isTop?[rA]:void 0)]}),g8=Vn.configure({dialect:"jsx ts",props:[lu.add(r=>r.isTop?[rA]:void 0)]},"typescript"),nA=r=>({label:r,type:"keyword"}),sA="break case const continue default delete export extends false finally in instanceof let new return static super switch this throw true typeof var yield".split(" ").map(nA),y8=sA.concat(["declare","implements","private","protected","public"].map(nA));function iA(r={}){let e=r.jsx?r.typescript?g8:m8:r.typescript?d8:Vn,t=r.typescript?c8.concat(y8):Kk.concat(sA);return new ou(e,[Vn.data.of({autocomplete:gk(tA,Ph(t))}),Vn.data.of({autocomplete:h8}),r.jsx?x8:[]])}function b8(r){for(;;){if(r.name=="JSXOpenTag"||r.name=="JSXSelfClosingTag"||r.name=="JSXFragmentTag")return r;if(r.name=="JSXEscape"||!r.parent)return null;r=r.parent}}function Yk(r,e,t=r.length){for(let s=e?.firstChild;s;s=s.nextSibling)if(s.name=="JSXIdentifier"||s.name=="JSXBuiltin"||s.name=="JSXNamespacedName"||s.name=="JSXMemberExpression")return r.sliceString(s.from,Math.min(s.to,t));return""}var v8=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),x8=at.inputHandler.of((r,e,t,s,n)=>{if((v8?r.composing:r.compositionStarted)||r.state.readOnly||e!=t||s!=">"&&s!="/"||!Vn.isActiveAt(r.state,e,-1))return!1;let i=n(),{state:a}=i,l=a.changeByRange(o=>{var u;let{head:c}=o,p=pr(a).resolveInner(c-1,-1),h;if(p.name=="JSXStartTag"&&(p=p.parent),!(a.doc.sliceString(c-1,c)!=s||p.name=="JSXAttributeValue"&&p.to>c)){if(s==">"&&p.name=="JSXFragmentTag")return{range:o,changes:{from:c,insert:""}};if(s=="/"&&p.name=="JSXStartCloseTag"){let f=p.parent,d=f.parent;if(d&&f.from==c-2&&((h=Yk(a.doc,d.firstChild,c))||((u=d.firstChild)===null||u===void 0?void 0:u.name)=="JSXFragmentTag")){let m=`${h}>`;return{range:ze.cursor(c+m.length,-1),changes:{from:c,insert:m}}}}else if(s==">"){let f=b8(p);if(f&&f.name=="JSXOpenTag"&&!/^\/?>|^<\//.test(a.doc.sliceString(c,c+2))&&(h=Yk(a.doc,f,c)))return{range:o,changes:{from:c,insert:``}}}}return{range:o}});return l.changes.empty?!1:(r.dispatch([i,a.update(l,{userEvent:"input.complete",scrollIntoView:!0})]),!0)});function aA(r,e){return e||(e={parserOptions:{ecmaVersion:2019,sourceType:"module"},env:{browser:!0,node:!0,es6:!0,es2015:!0,es2017:!0,es2020:!0},rules:{}},r.getRules().forEach((t,s)=>{t.meta.docs.recommended&&(e.rules[s]=2)})),t=>{let{state:s}=t,n=[];for(let{from:i,to:a}of Vn.findRegions(s)){let l=s.doc.lineAt(i),o={line:l.number-1,col:i-l.from,pos:i};for(let u of r.verify(s.sliceDoc(i,a),e))n.push(O8(u,s.doc,o))}return n}}function Hk(r,e,t,s){return t.line(r+s.line).from+e+(r==1?s.col-1:-1)}function O8(r,e,t){let s=Hk(r.line,r.column,e,t),n={from:s,to:r.endLine!=null&&r.endColumn!=1?Hk(r.endLine,r.endColumn,e,t):s,message:r.message,source:r.ruleId?"eslint:"+r.ruleId:"eslint",severity:r.severity==1?"warning":"error"};if(r.fix){let{range:i,text:a}=r.fix,l=i[0]+t.pos-s,o=i[1]+t.pos-s;n.actions=[{name:"fix",apply(u,c){u.dispatch({changes:{from:c+l,to:c+o,insert:a},scrollIntoView:!0})}}]}return n}var S8="#e5c07b",oA="#e06c75",E8="#56b6c2",w8="#ffffff",Zu="#abb2bf",Jh="#7d8799",C8="#61afef",k8="#98c379",lA="#d19a66",A8="#c678dd",P8="#21252b",uA="#2c313a",cA="#282c34",Kh="#353a42",T8="#3E4451",fA="#528bff";var D8=at.theme({"&":{color:Zu,backgroundColor:cA},".cm-content":{caretColor:fA},".cm-cursor, .cm-dropCursor":{borderLeftColor:fA},"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:T8},".cm-panels":{backgroundColor:P8,color:Zu},".cm-panels.cm-panels-top":{borderBottom:"2px solid black"},".cm-panels.cm-panels-bottom":{borderTop:"2px solid black"},".cm-searchMatch":{backgroundColor:"#72a1ff59",outline:"1px solid #457dff"},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:"#6199ff2f"},".cm-activeLine":{backgroundColor:"#6699ff0b"},".cm-selectionMatch":{backgroundColor:"#aafe661a"},"&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bad0f847"},".cm-gutters":{backgroundColor:cA,color:Jh,border:"none"},".cm-activeLineGutter":{backgroundColor:uA},".cm-foldPlaceholder":{backgroundColor:"transparent",border:"none",color:"#ddd"},".cm-tooltip":{border:"none",backgroundColor:Kh},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:Kh,borderBottomColor:Kh},".cm-tooltip-autocomplete":{"& > ul > li[aria-selected]":{backgroundColor:uA,color:Zu}}},{dark:!0}),_8=Ji.define([{tag:ke.keyword,color:A8},{tag:[ke.name,ke.deleted,ke.character,ke.propertyName,ke.macroName],color:oA},{tag:[ke.function(ke.variableName),ke.labelName],color:C8},{tag:[ke.color,ke.constant(ke.name),ke.standard(ke.name)],color:lA},{tag:[ke.definition(ke.name),ke.separator],color:Zu},{tag:[ke.typeName,ke.className,ke.number,ke.changed,ke.annotation,ke.modifier,ke.self,ke.namespace],color:S8},{tag:[ke.operator,ke.operatorKeyword,ke.url,ke.escape,ke.regexp,ke.link,ke.special(ke.string)],color:E8},{tag:[ke.meta,ke.comment],color:Jh},{tag:ke.strong,fontWeight:"bold"},{tag:ke.emphasis,fontStyle:"italic"},{tag:ke.strikethrough,textDecoration:"line-through"},{tag:ke.link,color:Jh,textDecoration:"underline"},{tag:ke.heading,fontWeight:"bold",color:oA},{tag:[ke.atom,ke.bool,ke.special(ke.variableName)],color:lA},{tag:[ke.processingInstruction,ke.string,ke.inserted],color:k8},{tag:ke.invalid,color:w8}]),pA=[D8,fu(_8)];nc||(nc=globalThis||window);var nc;function cc(r){return r&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var I8={},Jr=typeof nc<"u"?nc:typeof self<"u"?self:typeof window<"u"?window:{};function QF(){throw new Error("setTimeout has not been defined")}function UF(){throw new Error("clearTimeout has not been defined")}var Ls=QF,$s=UF;typeof Jr.setTimeout=="function"&&(Ls=setTimeout);typeof Jr.clearTimeout=="function"&&($s=clearTimeout);function VF(r){if(Ls===setTimeout)return setTimeout(r,0);if((Ls===QF||!Ls)&&setTimeout)return Ls=setTimeout,setTimeout(r,0);try{return Ls(r,0)}catch{try{return Ls.call(null,r,0)}catch{return Ls.call(this,r,0)}}}function R8(r){if($s===clearTimeout)return clearTimeout(r);if(($s===UF||!$s)&&clearTimeout)return $s=clearTimeout,clearTimeout(r);try{return $s(r)}catch{try{return $s.call(null,r)}catch{return $s.call(this,r)}}}var us=[],ma=!1,hi,rc=-1;function F8(){!ma||!hi||(ma=!1,hi.length?us=hi.concat(us):rc=-1,us.length&&WF())}function WF(){if(!ma){var r=VF(F8);ma=!0;for(var e=us.length;e;){for(hi=us,us=[];++rc1)for(var t=1;t=0;s--){var n=r[s];n==="."?r.splice(s,1):n===".."?(r.splice(s,1),t++):t&&(r.splice(s,1),t--)}if(e)for(;t--;t)r.unshift("..");return r}var aU=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,rO=function(r){return aU.exec(r).slice(1)};function sc(){for(var r="",e=!1,t=arguments.length-1;t>=-1&&!e;t--){var s=t>=0?arguments[t]:"/";if(typeof s!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!s)continue;r=s+"/"+r,e=s.charAt(0)==="/"}return r=ZF(iO(r.split("/"),function(n){return!!n}),!e).join("/"),(e?"/":"")+r||"."}function nO(r){var e=sO(r),t=lU(r,-1)==="/";return r=ZF(iO(r.split("/"),function(s){return!!s}),!e).join("/"),!r&&!e&&(r="."),r&&t&&(r+="/"),(e?"/":"")+r}function sO(r){return r.charAt(0)==="/"}function GF(){var r=Array.prototype.slice.call(arguments,0);return nO(iO(r,function(e,t){if(typeof e!="string")throw new TypeError("Arguments to path.join must be strings");return e}).join("/"))}function XF(r,e){r=sc(r).substr(1),e=sc(e).substr(1);function t(u){for(var c=0;c=0&&u[p]==="";p--);return c>p?[]:u.slice(c,p-c+1)}for(var s=t(r.split("/")),n=t(e.split("/")),i=Math.min(s.length,n.length),a=i,l=0;l0)throw new Error("Invalid string. Length must be a multiple of 4");i=r[l-2]==="="?2:r[l-1]==="="?1:0,a=new cU(l*3/4-i),s=i>0?l-4:l;var o=0;for(e=0,t=0;e>16&255,a[o++]=n>>8&255,a[o++]=n&255;return i===2?(n=pn[r.charCodeAt(e)]<<2|pn[r.charCodeAt(e+1)]>>4,a[o++]=n&255):i===1&&(n=pn[r.charCodeAt(e)]<<10|pn[r.charCodeAt(e+1)]<<4|pn[r.charCodeAt(e+2)]>>2,a[o++]=n>>8&255,a[o++]=n&255),a}function pU(r){return Wn[r>>18&63]+Wn[r>>12&63]+Wn[r>>6&63]+Wn[r&63]}function hU(r,e,t){for(var s,n=[],i=e;io?o:l+a));return s===1?(e=r[t-1],n+=Wn[e>>2],n+=Wn[e<<4&63],n+="=="):s===2&&(e=(r[t-2]<<8)+r[t-1],n+=Wn[e>>10],n+=Wn[e>>4&63],n+=Wn[e<<2&63],n+="="),i.push(n),i.join("")}function pc(r,e,t,s,n){var i,a,l=n*8-s-1,o=(1<>1,c=-7,p=t?n-1:0,h=t?-1:1,f=r[e+p];for(p+=h,i=f&(1<<-c)-1,f>>=-c,c+=l;c>0;i=i*256+r[e+p],p+=h,c-=8);for(a=i&(1<<-c)-1,i>>=-c,c+=s;c>0;a=a*256+r[e+p],p+=h,c-=8);if(i===0)i=1-u;else{if(i===o)return a?NaN:(f?-1:1)*(1/0);a=a+Math.pow(2,s),i=i-u}return(f?-1:1)*a*Math.pow(2,i-s)}function rB(r,e,t,s,n,i){var a,l,o,u=i*8-n-1,c=(1<>1,h=n===23?Math.pow(2,-24)-Math.pow(2,-77):0,f=s?0:i-1,d=s?1:-1,m=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(l=isNaN(e)?1:0,a=c):(a=Math.floor(Math.log(e)/Math.LN2),e*(o=Math.pow(2,-a))<1&&(a--,o*=2),a+p>=1?e+=h/o:e+=h*Math.pow(2,1-p),e*o>=2&&(a++,o/=2),a+p>=c?(l=0,a=c):a+p>=1?(l=(e*o-1)*Math.pow(2,n),a=a+p):(l=e*Math.pow(2,p-1)*Math.pow(2,n),a=0));n>=8;r[t+f]=l&255,f+=d,l/=256,n-=8);for(a=a<0;r[t+f]=a&255,f+=d,a/=256,u-=8);r[t+f-d]|=m*128}var dU={}.toString,nB=Array.isArray||function(r){return dU.call(r)=="[object Array]"};var mU=50;Ge.TYPED_ARRAY_SUPPORT=Jr.TYPED_ARRAY_SUPPORT!==void 0?Jr.TYPED_ARRAY_SUPPORT:!0;ic();function ic(){return Ge.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function cs(r,e){if(ic()=ic())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+ic().toString(16)+" bytes");return r|0}Ge.isBuffer=da;function Zn(r){return!!(r!=null&&r._isBuffer)}Ge.compare=function(e,t){if(!Zn(e)||!Zn(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var s=e.length,n=t.length,i=0,a=Math.min(s,n);i>>1;case"base64":return hB(r).length;default:if(s)return ac(r).length;e=(""+e).toLowerCase(),s=!0}}Ge.byteLength=aB;function xU(r,e,t){var s=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((t===void 0||t>this.length)&&(t=this.length),t<=0)||(t>>>=0,e>>>=0,t<=e))return"";for(r||(r="utf8");;)switch(r){case"hex":return DU(this,e,t);case"utf8":case"utf-8":return uB(this,e,t);case"ascii":return PU(this,e,t);case"latin1":case"binary":return TU(this,e,t);case"base64":return kU(this,e,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _U(this,e,t);default:if(s)throw new TypeError("Unknown encoding: "+r);r=(r+"").toLowerCase(),s=!0}}Ge.prototype._isBuffer=!0;function di(r,e,t){var s=r[e];r[e]=r[t],r[t]=s}Ge.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t0&&(e=this.toString("hex",0,t).match(/.{2}/g).join(" "),this.length>t&&(e+=" ... ")),""};Ge.prototype.compare=function(e,t,s,n,i){if(!Zn(e))throw new TypeError("Argument must be a Buffer");if(t===void 0&&(t=0),s===void 0&&(s=e?e.length:0),n===void 0&&(n=0),i===void 0&&(i=this.length),t<0||s>e.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=s)return 0;if(n>=i)return-1;if(t>=s)return 1;if(t>>>=0,s>>>=0,n>>>=0,i>>>=0,this===e)return 0;for(var a=i-n,l=s-t,o=Math.min(a,l),u=this.slice(n,i),c=e.slice(t,s),p=0;p2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,isNaN(t)&&(t=n?0:r.length-1),t<0&&(t=r.length+t),t>=r.length){if(n)return-1;t=r.length-1}else if(t<0)if(n)t=0;else return-1;if(typeof e=="string"&&(e=Ge.from(e,s)),Zn(e))return e.length===0?-1:dA(r,e,t,s,n);if(typeof e=="number")return e=e&255,Ge.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?n?Uint8Array.prototype.indexOf.call(r,e,t):Uint8Array.prototype.lastIndexOf.call(r,e,t):dA(r,[e],t,s,n);throw new TypeError("val must be string, number or Buffer")}function dA(r,e,t,s,n){var i=1,a=r.length,l=e.length;if(s!==void 0&&(s=String(s).toLowerCase(),s==="ucs2"||s==="ucs-2"||s==="utf16le"||s==="utf-16le")){if(r.length<2||e.length<2)return-1;i=2,a/=2,l/=2,t/=2}function o(f,d){return i===1?f[d]:f.readUInt16BE(d*i)}var u;if(n){var c=-1;for(u=t;ua&&(t=a-l),u=t;u>=0;u--){for(var p=!0,h=0;hn&&(s=n)):s=n;var i=e.length;if(i%2!==0)throw new TypeError("Invalid hex string");s>i/2&&(s=i/2);for(var a=0;ai)&&(s=i),e.length>0&&(s<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var a=!1;;)switch(n){case"hex":return OU(this,e,t,s);case"utf8":case"utf-8":return SU(this,e,t,s);case"ascii":return lB(this,e,t,s);case"latin1":case"binary":return EU(this,e,t,s);case"base64":return wU(this,e,t,s);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return CU(this,e,t,s);default:if(a)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),a=!0}};Ge.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function kU(r,e,t){return e===0&&t===r.length?hA(r):hA(r.slice(e,t))}function uB(r,e,t){t=Math.min(r.length,t);for(var s=[],n=e;n239?4:i>223?3:i>191?2:1;if(n+l<=t){var o,u,c,p;switch(l){case 1:i<128&&(a=i);break;case 2:o=r[n+1],(o&192)===128&&(p=(i&31)<<6|o&63,p>127&&(a=p));break;case 3:o=r[n+1],u=r[n+2],(o&192)===128&&(u&192)===128&&(p=(i&15)<<12|(o&63)<<6|u&63,p>2047&&(p<55296||p>57343)&&(a=p));break;case 4:o=r[n+1],u=r[n+2],c=r[n+3],(o&192)===128&&(u&192)===128&&(c&192)===128&&(p=(i&15)<<18|(o&63)<<12|(u&63)<<6|c&63,p>65535&&p<1114112&&(a=p))}}a===null?(a=65533,l=1):a>65535&&(a-=65536,s.push(a>>>10&1023|55296),a=56320|a&1023),s.push(a),n+=l}return AU(s)}var mA=4096;function AU(r){var e=r.length;if(e<=mA)return String.fromCharCode.apply(String,r);for(var t="",s=0;ss)&&(t=s);for(var n="",i=e;is&&(e=s),t<0?(t+=s,t<0&&(t=0)):t>s&&(t=s),tt)throw new RangeError("Trying to access beyond buffer length")}Ge.prototype.readUIntLE=function(e,t,s){e=e|0,t=t|0,s||br(e,t,this.length);for(var n=this[e],i=1,a=0;++a0&&(i*=256);)n+=this[e+--t]*i;return n};Ge.prototype.readUInt8=function(e,t){return t||br(e,1,this.length),this[e]};Ge.prototype.readUInt16LE=function(e,t){return t||br(e,2,this.length),this[e]|this[e+1]<<8};Ge.prototype.readUInt16BE=function(e,t){return t||br(e,2,this.length),this[e]<<8|this[e+1]};Ge.prototype.readUInt32LE=function(e,t){return t||br(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216};Ge.prototype.readUInt32BE=function(e,t){return t||br(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])};Ge.prototype.readIntLE=function(e,t,s){e=e|0,t=t|0,s||br(e,t,this.length);for(var n=this[e],i=1,a=0;++a=i&&(n-=Math.pow(2,8*t)),n};Ge.prototype.readIntBE=function(e,t,s){e=e|0,t=t|0,s||br(e,t,this.length);for(var n=t,i=1,a=this[e+--n];n>0&&(i*=256);)a+=this[e+--n]*i;return i*=128,a>=i&&(a-=Math.pow(2,8*t)),a};Ge.prototype.readInt8=function(e,t){return t||br(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]};Ge.prototype.readInt16LE=function(e,t){t||br(e,2,this.length);var s=this[e]|this[e+1]<<8;return s&32768?s|4294901760:s};Ge.prototype.readInt16BE=function(e,t){t||br(e,2,this.length);var s=this[e+1]|this[e]<<8;return s&32768?s|4294901760:s};Ge.prototype.readInt32LE=function(e,t){return t||br(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};Ge.prototype.readInt32BE=function(e,t){return t||br(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};Ge.prototype.readFloatLE=function(e,t){return t||br(e,4,this.length),pc(this,e,!0,23,4)};Ge.prototype.readFloatBE=function(e,t){return t||br(e,4,this.length),pc(this,e,!1,23,4)};Ge.prototype.readDoubleLE=function(e,t){return t||br(e,8,this.length),pc(this,e,!0,52,8)};Ge.prototype.readDoubleBE=function(e,t){return t||br(e,8,this.length),pc(this,e,!1,52,8)};function qr(r,e,t,s,n,i){if(!Zn(r))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>n||er.length)throw new RangeError("Index out of range")}Ge.prototype.writeUIntLE=function(e,t,s,n){if(e=+e,t=t|0,s=s|0,!n){var i=Math.pow(2,8*s)-1;qr(this,e,t,s,i,0)}var a=1,l=0;for(this[t]=e&255;++l=0&&(l*=256);)this[t+a]=e/l&255;return t+s};Ge.prototype.writeUInt8=function(e,t,s){return e=+e,t=t|0,s||qr(this,e,t,1,255,0),Ge.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=e&255,t+1};function hc(r,e,t,s){e<0&&(e=65535+e+1);for(var n=0,i=Math.min(r.length-t,2);n>>(s?n:1-n)*8}Ge.prototype.writeUInt16LE=function(e,t,s){return e=+e,t=t|0,s||qr(this,e,t,2,65535,0),Ge.TYPED_ARRAY_SUPPORT?(this[t]=e&255,this[t+1]=e>>>8):hc(this,e,t,!0),t+2};Ge.prototype.writeUInt16BE=function(e,t,s){return e=+e,t=t|0,s||qr(this,e,t,2,65535,0),Ge.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=e&255):hc(this,e,t,!1),t+2};function dc(r,e,t,s){e<0&&(e=4294967295+e+1);for(var n=0,i=Math.min(r.length-t,4);n>>(s?n:3-n)*8&255}Ge.prototype.writeUInt32LE=function(e,t,s){return e=+e,t=t|0,s||qr(this,e,t,4,4294967295,0),Ge.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=e&255):dc(this,e,t,!0),t+4};Ge.prototype.writeUInt32BE=function(e,t,s){return e=+e,t=t|0,s||qr(this,e,t,4,4294967295,0),Ge.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255):dc(this,e,t,!1),t+4};Ge.prototype.writeIntLE=function(e,t,s,n){if(e=+e,t=t|0,!n){var i=Math.pow(2,8*s-1);qr(this,e,t,s,i-1,-i)}var a=0,l=1,o=0;for(this[t]=e&255;++a>0)-o&255;return t+s};Ge.prototype.writeIntBE=function(e,t,s,n){if(e=+e,t=t|0,!n){var i=Math.pow(2,8*s-1);qr(this,e,t,s,i-1,-i)}var a=s-1,l=1,o=0;for(this[t+a]=e&255;--a>=0&&(l*=256);)e<0&&o===0&&this[t+a+1]!==0&&(o=1),this[t+a]=(e/l>>0)-o&255;return t+s};Ge.prototype.writeInt8=function(e,t,s){return e=+e,t=t|0,s||qr(this,e,t,1,127,-128),Ge.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=e&255,t+1};Ge.prototype.writeInt16LE=function(e,t,s){return e=+e,t=t|0,s||qr(this,e,t,2,32767,-32768),Ge.TYPED_ARRAY_SUPPORT?(this[t]=e&255,this[t+1]=e>>>8):hc(this,e,t,!0),t+2};Ge.prototype.writeInt16BE=function(e,t,s){return e=+e,t=t|0,s||qr(this,e,t,2,32767,-32768),Ge.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=e&255):hc(this,e,t,!1),t+2};Ge.prototype.writeInt32LE=function(e,t,s){return e=+e,t=t|0,s||qr(this,e,t,4,2147483647,-2147483648),Ge.TYPED_ARRAY_SUPPORT?(this[t]=e&255,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):dc(this,e,t,!0),t+4};Ge.prototype.writeInt32BE=function(e,t,s){return e=+e,t=t|0,s||qr(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),Ge.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255):dc(this,e,t,!1),t+4};function cB(r,e,t,s,n,i){if(t+s>r.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function fB(r,e,t,s,n){return n||cB(r,e,t,4),rB(r,e,t,s,23,4),t+4}Ge.prototype.writeFloatLE=function(e,t,s){return fB(this,e,t,!0,s)};Ge.prototype.writeFloatBE=function(e,t,s){return fB(this,e,t,!1,s)};function pB(r,e,t,s,n){return n||cB(r,e,t,8),rB(r,e,t,s,52,8),t+8}Ge.prototype.writeDoubleLE=function(e,t,s){return pB(this,e,t,!0,s)};Ge.prototype.writeDoubleBE=function(e,t,s){return pB(this,e,t,!1,s)};Ge.prototype.copy=function(e,t,s,n){if(s||(s=0),!n&&n!==0&&(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t=0;--a)e[a+t]=this[a+s];else if(i<1e3||!Ge.TYPED_ARRAY_SUPPORT)for(a=0;a>>0,s=s===void 0?this.length:s>>>0,e||(e=0);var a;if(typeof e=="number")for(a=t;a55295&&t<57344){if(!n){if(t>56319){(e-=3)>-1&&i.push(239,191,189);continue}else if(a+1===s){(e-=3)>-1&&i.push(239,191,189);continue}n=t;continue}if(t<56320){(e-=3)>-1&&i.push(239,191,189),n=t;continue}t=(n-55296<<10|t-56320)+65536}else n&&(e-=3)>-1&&i.push(239,191,189);if(n=null,t<128){if((e-=1)<0)break;i.push(t)}else if(t<2048){if((e-=2)<0)break;i.push(t>>6|192,t&63|128)}else if(t<65536){if((e-=3)<0)break;i.push(t>>12|224,t>>6&63|128,t&63|128)}else if(t<1114112){if((e-=4)<0)break;i.push(t>>18|240,t>>12&63|128,t>>6&63|128,t&63|128)}else throw new Error("Invalid code point")}return i}function NU(r){for(var e=[],t=0;t>8,n=t%256,i.push(n),i.push(s);return i}function hB(r){return fU(RU(r))}function mc(r,e,t,s){for(var n=0;n=e.length||n>=r.length);++n)e[n+t]=r[n];return n}function $U(r){return r!==r}function da(r){return r!=null&&(!!r._isBuffer||dB(r)||MU(r))}function dB(r){return!!r.constructor&&typeof r.constructor.isBuffer=="function"&&r.constructor.isBuffer(r)}function MU(r){return typeof r.readFloatLE=="function"&&typeof r.slice=="function"&&dB(r.slice(0,0))}var Hx;typeof Object.create=="function"?Hx=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:Hx=function(e,t){e.super_=t;var s=function(){};s.prototype=t.prototype,e.prototype=new s,e.prototype.constructor=e};var uO=Hx,mB=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),s={},n=0;n=n)return l;switch(l){case"%s":return String(s[t++]);case"%d":return Number(s[t++]);case"%j":try{return JSON.stringify(s[t++])}catch{return"[Circular]"}default:return l}}),a=s[t];t=3&&(t.depth=arguments[2]),arguments.length>=4&&(t.colors=arguments[3]),yc(e)?t.showHidden=e:e&&dO(t,e),zn(t.showHidden)&&(t.showHidden=!1),zn(t.depth)&&(t.depth=2),zn(t.colors)&&(t.colors=!1),zn(t.customInspect)&&(t.customInspect=!0),t.colors&&(t.stylize=qU),oc(t,r,t.depth)}Cn.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]};Cn.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function qU(r,e){var t=Cn.styles[e];return t?"\x1B["+Cn.colors[t][0]+"m"+r+"\x1B["+Cn.colors[t][1]+"m":r}function QU(r,e){return r}function UU(r){var e={};return r.forEach(function(t,s){e[t]=!0}),e}function oc(r,e,t){if(r.customInspect&&e&&gi(e.inspect)&&e.inspect!==Cn&&!(e.constructor&&e.constructor.prototype===e)){var s=e.inspect(t,r);return Uo(s)||(s=oc(r,s,t)),s}var n=VU(r,e);if(n)return n;var i=Object.keys(e),a=UU(i);if(r.showHidden&&(i=Object.getOwnPropertyNames(e)),ga(e)&&(i.indexOf("message")>=0||i.indexOf("description")>=0))return td(e);if(i.length===0){if(gi(e)){var l=e.name?": "+e.name:"";return r.stylize("[Function"+l+"]","special")}if(mi(e))return r.stylize(RegExp.prototype.toString.call(e),"regexp");if(ya(e))return r.stylize(Date.prototype.toString.call(e),"date");if(ga(e))return td(e)}var o="",u=!1,c=["{","}"];if(fO(e)&&(u=!0,c=["[","]"]),gi(e)){var p=e.name?": "+e.name:"";o=" [Function"+p+"]"}if(mi(e)&&(o=" "+RegExp.prototype.toString.call(e)),ya(e)&&(o=" "+Date.prototype.toUTCString.call(e)),ga(e)&&(o=" "+td(e)),i.length===0&&(!u||e.length==0))return c[0]+o+c[1];if(t<0)return mi(e)?r.stylize(RegExp.prototype.toString.call(e),"regexp"):r.stylize("[Object]","special");r.seen.push(e);var h;return u?h=WU(r,e,t,a,i):h=i.map(function(f){return Kx(r,e,t,a,f,u)}),r.seen.pop(),zU(h,o,c)}function VU(r,e){if(zn(e))return r.stylize("undefined","undefined");if(Uo(e)){var t="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return r.stylize(t,"string")}if(pO(e))return r.stylize(""+e,"number");if(yc(e))return r.stylize(""+e,"boolean");if(Qo(e))return r.stylize("null","null")}function td(r){return"["+Error.prototype.toString.call(r)+"]"}function WU(r,e,t,s,n){for(var i=[],a=0,l=e.length;a-1&&(i?l=l.split(` `).map(function(u){return" "+u}).join(` `).substr(2):l=` `+l.split(` `).map(function(u){return" "+u}).join(` -`))):l=r.stylize("[Circular]","special")),Zn(a)){if(i&&n.match(/^\d+$/))return l;a=JSON.stringify(""+n),a.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=r.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=r.stylize(a,"string"))}return a+": "+l}function WQ(r,e,t){var s=r.reduce(function(n,i){return i.indexOf(` +`))):l=r.stylize("[Circular]","special")),zn(a)){if(i&&n.match(/^\d+$/))return l;a=JSON.stringify(""+n),a.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=r.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=r.stylize(a,"string"))}return a+": "+l}function zU(r,e,t){var s=r.reduce(function(n,i){return i.indexOf(` `)>=0,n+i.replace(/\u001b\[\d\d?m/g,"").length+1},0);return s>60?t[0]+(e===""?"":e+` `)+" "+r.join(`, - `)+" "+t[1]:t[0]+e+" "+r.join(", ")+" "+t[1]}function pO(r){return Array.isArray(r)}function yc(r){return typeof r=="boolean"}function Qo(r){return r===null}function bB(r){return r==null}function hO(r){return typeof r=="number"}function Uo(r){return typeof r=="string"}function vB(r){return typeof r=="symbol"}function Zn(r){return r===void 0}function mi(r){return xi(r)&&dO(r)==="[object RegExp]"}function xi(r){return typeof r=="object"&&r!==null}function ya(r){return xi(r)&&dO(r)==="[object Date]"}function ga(r){return xi(r)&&(dO(r)==="[object Error]"||r instanceof Error)}function gi(r){return typeof r=="function"}function lc(r){return r===null||typeof r=="boolean"||typeof r=="number"||typeof r=="string"||typeof r=="symbol"||typeof r>"u"}function OB(r){return Xe.isBuffer(r)}function dO(r){return Object.prototype.toString.call(r)}function rd(r){return r<10?"0"+r.toString(10):r.toString(10)}var ZQ=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function zQ(){var r=new Date,e=[rd(r.getHours()),rd(r.getMinutes()),rd(r.getSeconds())].join(":");return[r.getDate(),ZQ[r.getMonth()],e].join(" ")}function SB(){console.log("%s - %s",zQ(),gc.apply(null,arguments))}function mO(r,e){if(!e||!xi(e))return r;for(var t=Object.keys(e),s=t.length;s--;)r[t[s]]=e[t[s]];return r}function EB(r,e){return Object.prototype.hasOwnProperty.call(r,e)}var fi=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;function gO(r){if(typeof r!="function")throw new TypeError('The "original" argument must be of type Function');if(fi&&r[fi]){var e=r[fi];if(typeof e!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(e,fi,{value:e,enumerable:!1,writable:!1,configurable:!0}),e}function e(){for(var t,s,n=new Promise(function(l,o){t=l,s=o}),i=[],a=0;a"u"}function vB(r){return Ge.isBuffer(r)}function hO(r){return Object.prototype.toString.call(r)}function rd(r){return r<10?"0"+r.toString(10):r.toString(10)}var ZU=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function GU(){var r=new Date,e=[rd(r.getHours()),rd(r.getMinutes()),rd(r.getSeconds())].join(":");return[r.getDate(),ZU[r.getMonth()],e].join(" ")}function xB(){console.log("%s - %s",GU(),gc.apply(null,arguments))}function dO(r,e){if(!e||!bi(e))return r;for(var t=Object.keys(e),s=t.length;s--;)r[t[s]]=e[t[s]];return r}function OB(r,e){return Object.prototype.hasOwnProperty.call(r,e)}var fi=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;function mO(r){if(typeof r!="function")throw new TypeError('The "original" argument must be of type Function');if(fi&&r[fi]){var e=r[fi];if(typeof e!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(e,fi,{value:e,enumerable:!1,writable:!1,configurable:!0}),e}function e(){for(var t,s,n=new Promise(function(l,o){t=l,s=o}),i=[],a=0;a=0){var a=s.indexOf(` -`,i+1);s=s.substring(a+1)}this.stack=s}}}cO(xc,Error);function SA(r,e){return typeof r=="string"?r.length=0;u--)if(a[u]!==l[u])return!1;for(u=a.length-1;u>=0;u--)if(o=a[u],!xa(r[o],e[o],t,s))return!1;return!0}Br.notDeepEqual=OO;function OO(r,e,t){xa(r,e,!1)&&Rr(r,e,t,"notDeepEqual",OO)}Br.notDeepStrictEqual=SO;function SO(r,e,t){xa(r,e,!0)&&Rr(r,e,t,"notDeepStrictEqual",SO)}Br.strictEqual=EO;function EO(r,e,t){r!==e&&Rr(r,e,t,"===",EO)}Br.notStrictEqual=CO;function CO(r,e,t){r===e&&Rr(r,e,t,"!==",CO)}function wA(r,e){if(!r||!e)return!1;if(Object.prototype.toString.call(e)=="[object RegExp]")return e.test(r);try{if(r instanceof e)return!0}catch{}return Error.isPrototypeOf(e)?!1:e.call({},r)===!0}function t9(r){var e;try{r()}catch(t){e=t}return e}function AB(r,e,t,s){var n;if(typeof e!="function")throw new TypeError('"block" argument must be a function');typeof t=="string"&&(s=t,t=null),n=t9(e),s=(t&&t.name?" ("+t.name+").":".")+(s?" "+s:"."),r&&!n&&Rr(n,t,"Missing expected exception"+s);var i=typeof s=="string",a=!r&&ga(n),l=!r&&n&&!t;if((a&&i&&wA(n,t)||l)&&Rr(n,t,"Got unwanted exception"+s),r&&n&&t&&!wA(n,t)||!r&&n)throw n}Br.throws=PB;function PB(r,e,t){AB(!0,r,e,t)}Br.doesNotThrow=TB;function TB(r,e,t){AB(!1,r,e,t)}Br.ifError=DB;function DB(r){if(r)throw r}var r9=Object.freeze({__proto__:null,AssertionError:xc,assert:jo,deepEqual:bO,deepStrictEqual:vO,default:Br,doesNotThrow:TB,equal:yO,fail:Rr,ifError:DB,notDeepEqual:OO,notDeepStrictEqual:SO,notEqual:xO,notStrictEqual:CO,ok:jo,strictEqual:EO,throws:PB}),Vo=cc(r9),sd={},kA;function _B(){return kA||(kA=1,function(r){(function e(t){var s,n,i,a,l,o;function u(C){var O={},w,E;for(w in C)C.hasOwnProperty(w)&&(E=C[w],typeof E=="object"&&E!==null?O[w]=u(E):O[w]=E);return O}function c(C,O){var w,E,k,A;for(E=C.length,k=0;E;)w=E>>>1,A=k+w,O(C[A])?E=w:(k=A+1,E-=w+1);return k}s={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ChainExpression:"ChainExpression",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ComprehensionBlock:"ComprehensionBlock",ComprehensionExpression:"ComprehensionExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DebuggerStatement:"DebuggerStatement",DirectiveStatement:"DirectiveStatement",DoWhileStatement:"DoWhileStatement",EmptyStatement:"EmptyStatement",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForInStatement:"ForInStatement",ForOfStatement:"ForOfStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",GeneratorExpression:"GeneratorExpression",Identifier:"Identifier",IfStatement:"IfStatement",ImportExpression:"ImportExpression",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",ModuleSpecifier:"ModuleSpecifier",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",PrivateIdentifier:"PrivateIdentifier",Program:"Program",Property:"Property",PropertyDefinition:"PropertyDefinition",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchStatement:"SwitchStatement",SwitchCase:"SwitchCase",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"},i={AssignmentExpression:["left","right"],AssignmentPattern:["left","right"],ArrayExpression:["elements"],ArrayPattern:["elements"],ArrowFunctionExpression:["params","body"],AwaitExpression:["argument"],BlockStatement:["body"],BinaryExpression:["left","right"],BreakStatement:["label"],CallExpression:["callee","arguments"],CatchClause:["param","body"],ChainExpression:["expression"],ClassBody:["body"],ClassDeclaration:["id","superClass","body"],ClassExpression:["id","superClass","body"],ComprehensionBlock:["left","right"],ComprehensionExpression:["blocks","filter","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DirectiveStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExportAllDeclaration:["source"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source"],ExportSpecifier:["exported","local"],ExpressionStatement:["expression"],ForStatement:["init","test","update","body"],ForInStatement:["left","right","body"],ForOfStatement:["left","right","body"],FunctionDeclaration:["id","params","body"],FunctionExpression:["id","params","body"],GeneratorExpression:["blocks","filter","body"],Identifier:[],IfStatement:["test","consequent","alternate"],ImportExpression:["source"],ImportDeclaration:["specifiers","source"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],Literal:[],LabeledStatement:["label","body"],LogicalExpression:["left","right"],MemberExpression:["object","property"],MetaProperty:["meta","property"],MethodDefinition:["key","value"],ModuleSpecifier:[],NewExpression:["callee","arguments"],ObjectExpression:["properties"],ObjectPattern:["properties"],PrivateIdentifier:[],Program:["body"],Property:["key","value"],PropertyDefinition:["key","value"],RestElement:["argument"],ReturnStatement:["argument"],SequenceExpression:["expressions"],SpreadElement:["argument"],Super:[],SwitchStatement:["discriminant","cases"],SwitchCase:["test","consequent"],TaggedTemplateExpression:["tag","quasi"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],YieldExpression:["argument"]},a={},l={},o={},n={Break:a,Skip:l,Remove:o};function p(C,O){this.parent=C,this.key=O}p.prototype.replace=function(O){this.parent[this.key]=O},p.prototype.remove=function(){return Array.isArray(this.parent)?(this.parent.splice(this.key,1),!0):(this.replace(null),!1)};function h(C,O,w,E){this.node=C,this.path=O,this.wrap=w,this.ref=E}function f(){}f.prototype.path=function(){var O,w,E,k,A,D;function _(B,T){if(Array.isArray(T))for(E=0,k=T.length;E=0;--w)if(C[w].node===O)return!0;return!1}f.prototype.traverse=function(O,w){var E,k,A,D,_,B,T,F,j,Q,I,N;for(this.__initialize(O,w),N={},E=this.__worklist,k=this.__leavelist,E.push(new h(O,null,null,null)),k.push(new h(null,null,null,null));E.length;){if(A=E.pop(),A===N){if(A=k.pop(),B=this.__execute(w.leave,A),this.__state===a||B===a)return;continue}if(A.node){if(B=this.__execute(w.enter,A),this.__state===a||B===a)return;if(E.push(N),k.push(A),this.__state===l||B===l)continue;if(D=A.node,_=D.type||A.wrap,Q=this.__keys[_],!Q)if(this.__fallback)Q=this.__fallback(D);else throw new Error("Unknown node type "+_+".");for(F=Q.length;(F-=1)>=0;)if(T=Q[F],I=D[T],!!I){if(Array.isArray(I)){for(j=I.length;(j-=1)>=0;)if(I[j]&&!g(k,I[j])){if(m(_,Q[F]))A=new h(I[j],[T,j],"Property",null);else if(d(I[j]))A=new h(I[j],[T,j],null,null);else continue;E.push(A)}}else if(d(I)){if(g(k,I))continue;E.push(new h(I,T,null,null))}}}}},f.prototype.replace=function(O,w){var E,k,A,D,_,B,T,F,j,Q,I,N,R;function U(V){var ae,se,ve,H;if(V.ref.remove()){for(se=V.ref.key,H=V.ref.parent,ae=E.length;ae--;)if(ve=E[ae],ve.ref&&ve.ref.parent===H){if(ve.ref.key=0;)if(R=j[T],Q=A[R],!!Q)if(Array.isArray(Q)){for(F=Q.length;(F-=1)>=0;)if(Q[F]){if(m(D,j[T]))B=new h(Q[F],[R,F],"Property",new p(Q,F));else if(d(Q[F]))B=new h(Q[F],[R,F],null,new p(Q,F));else continue;E.push(B)}}else d(Q)&&E.push(new h(Q,R,null,new p(A,R)))}}return N.root};function y(C,O){var w=new f;return w.traverse(C,O)}function b(C,O){var w=new f;return w.replace(C,O)}function v(C,O){var w;return w=c(O,function(k){return k.range[0]>C.range[0]}),C.extendedRange=[C.range[0],C.range[1]],w!==O.length&&(C.extendedRange[1]=O[w].range[0]),w-=1,w>=0&&(C.extendedRange[0]=O[w].range[1]),C}function S(C,O,w){var E=[],k,A,D,_;if(!C.range)throw new Error("attachComments needs range information");if(!w.length){if(O.length){for(D=0,A=O.length;DB.range[0]));)T.extendedRange[1]===B.range[0]?(B.leadingComments||(B.leadingComments=[]),B.leadingComments.push(T),E.splice(_,1)):_+=1;if(_===E.length)return n.Break;if(E[_].extendedRange[0]>B.range[1])return n.Skip}}),_=0,y(C,{leave:function(B){for(var T;_B.range[1])return n.Skip}}),C}return t.Syntax=s,t.traverse=y,t.replace=b,t.attachComments=S,t.VisitorKeys=i,t.VisitorOption=n,t.Controller=f,t.cloneEnvironment=function(){return e({})},t})(r)}(sd)),sd}var Bo={},n9="esrecurse",s9="ECMAScript AST recursive visitor",i9="https://github.com/estools/esrecurse",a9="esrecurse.js",o9="4.3.0",l9={node:">=4.0"},u9=[{name:"Yusuke Suzuki",email:"utatane.tea@gmail.com",web:"https://github.com/Constellation"}],c9={type:"git",url:"https://github.com/estools/esrecurse.git"},f9={estraverse:"^5.2.0"},p9={"babel-cli":"^6.24.1","babel-eslint":"^7.2.3","babel-preset-es2015":"^6.24.1","babel-register":"^6.24.1",chai:"^4.0.2",esprima:"^4.0.0",gulp:"^3.9.0","gulp-bump":"^2.7.0","gulp-eslint":"^4.0.0","gulp-filter":"^5.0.0","gulp-git":"^2.4.1","gulp-mocha":"^4.3.1","gulp-tag-version":"^1.2.1",jsdoc:"^3.3.0-alpha10",minimist:"^1.1.0"},h9="BSD-2-Clause",d9={test:"gulp travis","unit-test":"gulp test",lint:"gulp lint"},m9={presets:["es2015"]},g9={name:n9,description:s9,homepage:i9,main:a9,version:o9,engines:l9,maintainers:u9,repository:c9,dependencies:f9,devDependencies:p9,license:h9,scripts:d9,babel:m9},AA;function y9(){return AA||(AA=1,function(){var r=_B();function e(n){return n==null?!1:typeof n=="object"&&typeof n.type=="string"}function t(n,i){return(n===r.Syntax.ObjectExpression||n===r.Syntax.ObjectPattern)&&i==="properties"}function s(n,i){i=i||{},this.__visitor=n||this,this.__childVisitorKeys=i.childVisitorKeys?Object.assign({},r.VisitorKeys,i.childVisitorKeys):r.VisitorKeys,i.fallback==="iteration"?this.__fallback=Object.keys:typeof i.fallback=="function"&&(this.__fallback=i.fallback)}s.prototype.visitChildren=function(n){var i,a,l,o,u,c,p;if(n!=null){if(i=n.type||r.Syntax.Property,a=this.__childVisitorKeys[i],!a)if(this.__fallback)a=this.__fallback(n);else throw new Error("Unknown node type "+i+".");for(l=0,o=a.length;l0&&le.every(y)}__staticCloseRef($){this.__resolve($)||this.__delegateToUpperScope($)}__dynamicCloseRef($){let pe=this;do pe.through.push($),pe=pe.upper;while(pe)}__globalCloseRef($){this.__shouldStaticallyCloseForGlobal($)?this.__staticCloseRef($):this.__dynamicCloseRef($)}__close($){let pe;this.__shouldStaticallyClose($)?pe=this.__staticCloseRef:this.type!=="global"?pe=this.__dynamicCloseRef:pe=this.__globalCloseRef;for(let K=0,le=this.__left.length;Kle.name.range[0]>=K))}}class D extends b{constructor($,pe,K){super($,"for",pe,K,!1)}}class _ extends b{constructor($,pe,K){super($,"class",pe,K,!1)}}class B extends b{constructor($,pe,K){super($,"class-field-initializer",pe,K,!0)}}class T extends b{constructor($,pe,K){super($,"class-static-block",pe,K,!0)}}class F{constructor($){this.scopes=[],this.globalScope=null,this.__nodeToScope=new WeakMap,this.__currentScope=null,this.__options=$,this.__declaredVariables=new WeakMap}__isOptimistic(){return this.__options.optimistic}__ignoreEval(){return this.__options.ignoreEval}isGlobalReturn(){return this.__options.nodejsScope||this.__options.sourceType==="commonjs"}isModule(){return this.__options.sourceType==="module"}isImpliedStrict(){return this.__options.impliedStrict}isStrictModeSupported(){return this.__options.ecmaVersion>=5}__get($){return this.__nodeToScope.get($)}getDeclaredVariables($){return this.__declaredVariables.get($)||[]}acquire($,pe){function K(xe){return!(xe.type==="function"&&xe.functionExpressionScope)}let le=this.__get($);if(!le||le.length===0)return null;if(le.length===1)return le[0];if(pe)for(let xe=le.length-1;xe>=0;--xe){let Le=le[xe];if(K(Le))return Le}else for(let xe=0,Le=le.length;xe=6}}let{Syntax:j}=i.default;function Q(he){return he[he.length-1]||null}class I extends a.default.Visitor{static isPattern($){let pe=$.type;return pe===j.Identifier||pe===j.ObjectPattern||pe===j.ArrayPattern||pe===j.SpreadElement||pe===j.RestElement||pe===j.AssignmentPattern}constructor($,pe,K){super(null,$),this.rootPattern=pe,this.callback=K,this.assignments=[],this.rightHandNodes=[],this.restElements=[]}Identifier($){let pe=Q(this.restElements);this.callback($,{topLevel:$===this.rootPattern,rest:pe!=null&&pe.argument===$,assignments:this.assignments})}Property($){$.computed&&this.rightHandNodes.push($.key),this.visit($.value)}ArrayPattern($){for(let pe=0,K=$.elements.length;pe{this.rightHandNodes.push(pe)}),this.visit($.callee)}}let{Syntax:N}=i.default;function R(he,$,pe,K){let le=new I(he,$,K);le.visit($),pe!=null&&le.rightHandNodes.forEach(pe.visit,pe)}class U extends a.default.Visitor{constructor($,pe){super(null,pe.options),this.declaration=$,this.referencer=pe}visitImport($,pe){this.referencer.visitPattern($,K=>{this.referencer.currentScope().__define(K,new h(p.ImportBinding,K,pe,this.declaration,null,null))})}ImportNamespaceSpecifier($){let pe=$.local||$.id;pe&&this.visitImport(pe,$)}ImportDefaultSpecifier($){let pe=$.local||$.id;this.visitImport(pe,$)}ImportSpecifier($){let pe=$.local||$.id;$.name?this.visitImport($.name,$):this.visitImport(pe,$)}}class V extends a.default.Visitor{constructor($,pe){super(null,$),this.options=$,this.scopeManager=pe,this.parent=null,this.isInnerMethodDefinition=!1}currentScope(){return this.scopeManager.__currentScope}close($){for(;this.currentScope()&&$===this.currentScope().block;)this.scopeManager.__currentScope=this.currentScope().__close(this.scopeManager)}pushInnerMethodDefinition($){let pe=this.isInnerMethodDefinition;return this.isInnerMethodDefinition=$,pe}popInnerMethodDefinition($){this.isInnerMethodDefinition=$}referencingDefaultValue($,pe,K,le){let xe=this.currentScope();pe.forEach(Le=>{xe.__referencing($,c.WRITE,Le.right,K,$!==Le.left,le)})}visitPattern($,pe,K){let le=pe,xe=K;typeof pe=="function"&&(xe=pe,le={processRightHandNodes:!1}),R(this.options,$,le.processRightHandNodes?this:null,xe)}visitFunction($){let pe,K;$.type===N.FunctionDeclaration&&this.currentScope().__define($.id,new h(p.FunctionName,$.id,$,null,null,null)),$.type===N.FunctionExpression&&$.id&&this.scopeManager.__nestFunctionExpressionNameScope($),this.scopeManager.__nestFunctionScope($,this.isInnerMethodDefinition);let le=this;function xe(Le,qe){le.currentScope().__define(Le,new f(Le,$,pe,qe.rest)),le.referencingDefaultValue(Le,qe.assignments,null,!0)}for(pe=0,K=$.params.length;pe{this.currentScope().__define(Le,new f(Le,$,$.params.length,!0))}),$.body&&($.body.type===N.BlockStatement?this.visitChildren($.body):this.visit($.body)),this.close($)}visitClass($){$.type===N.ClassDeclaration&&this.currentScope().__define($.id,new h(p.ClassName,$.id,$,null,null,null)),this.scopeManager.__nestClassScope($),$.id&&this.currentScope().__define($.id,new h(p.ClassName,$.id,$)),this.visit($.superClass),this.visit($.body),this.close($)}visitProperty($){let pe;$.computed&&this.visit($.key);let K=$.type===N.MethodDefinition;K&&(pe=this.pushInnerMethodDefinition(!0)),this.visit($.value),K&&this.popInnerMethodDefinition(pe)}visitForIn($){$.left.type===N.VariableDeclaration&&$.left.kind!=="var"&&this.scopeManager.__nestForScope($),$.left.type===N.VariableDeclaration?(this.visit($.left),this.visitPattern($.left.declarations[0].id,pe=>{this.currentScope().__referencing(pe,c.WRITE,$.right,null,!0,!0)})):this.visitPattern($.left,{processRightHandNodes:!0},(pe,K)=>{let le=null;this.currentScope().isStrict||(le={pattern:pe,node:$}),this.referencingDefaultValue(pe,K.assignments,le,!1),this.currentScope().__referencing(pe,c.WRITE,$.right,le,!0,!1)}),this.visit($.right),this.visit($.body),this.close($)}visitVariableDeclaration($,pe,K,le){let xe=K.declarations[le],Le=xe.init;this.visitPattern(xe.id,{processRightHandNodes:!0},(qe,rt)=>{$.__define(qe,new h(pe,qe,xe,K,le,K.kind)),this.referencingDefaultValue(qe,rt.assignments,null,!0),Le&&this.currentScope().__referencing(qe,c.WRITE,Le,null,!rt.topLevel,!0)})}AssignmentExpression($){I.isPattern($.left)?$.operator==="="?this.visitPattern($.left,{processRightHandNodes:!0},(pe,K)=>{let le=null;this.currentScope().isStrict||(le={pattern:pe,node:$}),this.referencingDefaultValue(pe,K.assignments,le,!1),this.currentScope().__referencing(pe,c.WRITE,$.right,le,!K.topLevel,!1)}):this.currentScope().__referencing($.left,c.RW,$.right):this.visit($.left),this.visit($.right)}CatchClause($){this.scopeManager.__nestCatchScope($),this.visitPattern($.param,{processRightHandNodes:!0},(pe,K)=>{this.currentScope().__define(pe,new h(p.CatchClause,$.param,$,null,null,null)),this.referencingDefaultValue(pe,K.assignments,null,!0)}),this.visit($.body),this.close($)}Program($){this.scopeManager.__nestGlobalScope($),this.scopeManager.isGlobalReturn()&&(this.currentScope().isStrict=!1,this.scopeManager.__nestFunctionScope($,!1)),this.scopeManager.__isES6()&&this.scopeManager.isModule()&&this.scopeManager.__nestModuleScope($),this.scopeManager.isStrictModeSupported()&&this.scopeManager.isImpliedStrict()&&(this.currentScope().isStrict=!0),this.visitChildren($),this.close($)}Identifier($){this.currentScope().__referencing($)}PrivateIdentifier(){}UpdateExpression($){I.isPattern($.argument)?this.currentScope().__referencing($.argument,c.RW,null):this.visitChildren($)}MemberExpression($){this.visit($.object),$.computed&&this.visit($.property)}Property($){this.visitProperty($)}PropertyDefinition($){let{computed:pe,key:K,value:le}=$;pe&&this.visit(K),le&&(this.scopeManager.__nestClassFieldInitializerScope(le),this.visit(le),this.close(le))}StaticBlock($){this.scopeManager.__nestClassStaticBlockScope($),this.visitChildren($),this.close($)}MethodDefinition($){this.visitProperty($)}BreakStatement(){}ContinueStatement(){}LabeledStatement($){this.visit($.body)}ForStatement($){$.init&&$.init.type===N.VariableDeclaration&&$.init.kind!=="var"&&this.scopeManager.__nestForScope($),this.visitChildren($),this.close($)}ClassExpression($){this.visitClass($)}ClassDeclaration($){this.visitClass($)}CallExpression($){!this.scopeManager.__ignoreEval()&&$.callee.type===N.Identifier&&$.callee.name==="eval"&&this.currentScope().variableScope.__detectEval(),this.visitChildren($)}BlockStatement($){this.scopeManager.__isES6()&&this.scopeManager.__nestBlockScope($),this.visitChildren($),this.close($)}ThisExpression(){this.currentScope().variableScope.__detectThis()}WithStatement($){this.visit($.object),this.scopeManager.__nestWithScope($),this.visit($.body),this.close($)}VariableDeclaration($){let pe=$.kind==="var"?this.currentScope().variableScope:this.currentScope();for(let K=0,le=$.declarations.length;Kx)return!1;if(q+=P[z+1],q>=x)return!0}return!1}function d(x,P){return x<65?x===36:x<91?!0:x<97?x===95:x<123?!0:x<=65535?x>=170&&p.test(String.fromCharCode(x)):P===!1?!1:f(x,n)}function m(x,P){return x<48?x===36:x<58?!0:x<65?!1:x<91?!0:x<97?x===95:x<123?!0:x<=65535?x>=170&&h.test(String.fromCharCode(x)):P===!1?!1:f(x,n)||f(x,s)}var g=function(P,q){q===void 0&&(q={}),this.label=P,this.keyword=q.keyword,this.beforeExpr=!!q.beforeExpr,this.startsExpr=!!q.startsExpr,this.isLoop=!!q.isLoop,this.isAssign=!!q.isAssign,this.prefix=!!q.prefix,this.postfix=!!q.postfix,this.binop=q.binop||null,this.updateContext=null};function y(x,P){return new g(x,{beforeExpr:!0,binop:P})}var b={beforeExpr:!0},v={startsExpr:!0},S={};function C(x,P){return P===void 0&&(P={}),P.keyword=x,S[x]=new g(x,P)}var O={num:new g("num",v),regexp:new g("regexp",v),string:new g("string",v),name:new g("name",v),privateId:new g("privateId",v),eof:new g("eof"),bracketL:new g("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new g("]"),braceL:new g("{",{beforeExpr:!0,startsExpr:!0}),braceR:new g("}"),parenL:new g("(",{beforeExpr:!0,startsExpr:!0}),parenR:new g(")"),comma:new g(",",b),semi:new g(";",b),colon:new g(":",b),dot:new g("."),question:new g("?",b),questionDot:new g("?."),arrow:new g("=>",b),template:new g("template"),invalidTemplate:new g("invalidTemplate"),ellipsis:new g("...",b),backQuote:new g("`",v),dollarBraceL:new g("${",{beforeExpr:!0,startsExpr:!0}),eq:new g("=",{beforeExpr:!0,isAssign:!0}),assign:new g("_=",{beforeExpr:!0,isAssign:!0}),incDec:new g("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new g("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:y("||",1),logicalAND:y("&&",2),bitwiseOR:y("|",3),bitwiseXOR:y("^",4),bitwiseAND:y("&",5),equality:y("==/!=/===/!==",6),relational:y("/<=/>=",7),bitShift:y("<>/>>>",8),plusMin:new g("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:y("%",10),star:y("*",10),slash:y("/",10),starstar:new g("**",{beforeExpr:!0}),coalesce:y("??",1),_break:C("break"),_case:C("case",b),_catch:C("catch"),_continue:C("continue"),_debugger:C("debugger"),_default:C("default",b),_do:C("do",{isLoop:!0,beforeExpr:!0}),_else:C("else",b),_finally:C("finally"),_for:C("for",{isLoop:!0}),_function:C("function",v),_if:C("if"),_return:C("return",b),_switch:C("switch"),_throw:C("throw",b),_try:C("try"),_var:C("var"),_const:C("const"),_while:C("while",{isLoop:!0}),_with:C("with"),_new:C("new",{beforeExpr:!0,startsExpr:!0}),_this:C("this",v),_super:C("super",v),_class:C("class",v),_extends:C("extends",b),_export:C("export"),_import:C("import",v),_null:C("null",v),_true:C("true",v),_false:C("false",v),_in:C("in",{beforeExpr:!0,binop:7}),_instanceof:C("instanceof",{beforeExpr:!0,binop:7}),_typeof:C("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:C("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:C("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},w=/\r\n?|\n|\u2028|\u2029/,E=new RegExp(w.source,"g");function k(x){return x===10||x===13||x===8232||x===8233}function A(x,P,q){q===void 0&&(q=x.length);for(var z=P;z>10)+55296,(x&1023)+56320))}var U=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,V=function(P,q){this.line=P,this.column=q};V.prototype.offset=function(P){return new V(this.line,this.column+P)};var ae=function(P,q,z){this.start=q,this.end=z,P.sourceFile!==null&&(this.source=P.sourceFile)};function se(x,P){for(var q=1,z=0;;){var ge=A(x,z,P);if(ge<0)return new V(q,P-z);++q,z=ge}}var ve={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},H=!1;function he(x){var P={};for(var q in ve)P[q]=x&&j(x,q)?x[q]:ve[q];if(P.ecmaVersion==="latest"?P.ecmaVersion=1e8:P.ecmaVersion==null?(!H&&typeof console=="object"&&console.warn&&(H=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required. -Defaulting to 2020, but this will stop working in the future.`)),P.ecmaVersion=11):P.ecmaVersion>=2015&&(P.ecmaVersion-=2009),P.allowReserved==null&&(P.allowReserved=P.ecmaVersion<5),(!x||x.allowHashBang==null)&&(P.allowHashBang=P.ecmaVersion>=14),Q(P.onToken)){var z=P.onToken;P.onToken=function(ge){return z.push(ge)}}return Q(P.onComment)&&(P.onComment=$(P,P.onComment)),P}function $(x,P){return function(q,z,ge,Fe,Ne,He){var Je={type:q?"Block":"Line",value:z,start:ge,end:Fe};x.locations&&(Je.loc=new ae(this,Ne,He)),x.ranges&&(Je.range=[ge,Fe]),P.push(Je)}}var pe=1,K=2,le=4,xe=8,Le=16,qe=32,rt=64,ht=128,pt=256,Et=pe|K|pt;function X(x,P){return K|(x?le:0)|(P?xe:0)}var we=0,Ve=1,et=2,it=3,st=4,Ct=5,bt=function(P,q,z){this.options=P=he(P),this.sourceFile=P.sourceFile,this.keywords=N(u[P.ecmaVersion>=6?6:P.sourceType==="module"?"5module":5]);var ge="";P.allowReserved!==!0&&(ge=l[P.ecmaVersion>=6?6:P.ecmaVersion===5?5:3],P.sourceType==="module"&&(ge+=" await")),this.reservedWords=N(ge);var Fe=(ge?ge+" ":"")+l.strict;this.reservedWordsStrict=N(Fe),this.reservedWordsStrictBind=N(Fe+" "+l.strictBind),this.input=String(q),this.containsEsc=!1,z?(this.pos=z,this.lineStart=this.input.lastIndexOf(` -`,z-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(w).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=O.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule=P.sourceType==="module",this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),this.pos===0&&P.allowHashBang&&this.input.slice(0,2)==="#!"&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(pe),this.regexpState=null,this.privateNameStack=[]},Dt={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},inClassStaticBlock:{configurable:!0}};bt.prototype.parse=function(){var P=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(P)},Dt.inFunction.get=function(){return(this.currentVarScope().flags&K)>0},Dt.inGenerator.get=function(){return(this.currentVarScope().flags&xe)>0&&!this.currentVarScope().inClassFieldInit},Dt.inAsync.get=function(){return(this.currentVarScope().flags&le)>0&&!this.currentVarScope().inClassFieldInit},Dt.canAwait.get=function(){for(var x=this.scopeStack.length-1;x>=0;x--){var P=this.scopeStack[x];if(P.inClassFieldInit||P.flags&pt)return!1;if(P.flags&K)return(P.flags&le)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},Dt.allowSuper.get=function(){var x=this.currentThisScope(),P=x.flags,q=x.inClassFieldInit;return(P&rt)>0||q||this.options.allowSuperOutsideMethod},Dt.allowDirectSuper.get=function(){return(this.currentThisScope().flags&ht)>0},Dt.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},Dt.allowNewDotTarget.get=function(){var x=this.currentThisScope(),P=x.flags,q=x.inClassFieldInit;return(P&(K|pt))>0||q},Dt.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&pt)>0},bt.extend=function(){for(var P=[],q=arguments.length;q--;)P[q]=arguments[q];for(var z=this,ge=0;ge=,?^&]/.test(ge)||ge==="!"&&this.input.charAt(z+1)==="=")}x+=P[0].length,_.lastIndex=x,x+=_.exec(this.input)[0].length,this.input[x]===";"&&x++}},_t.eat=function(x){return this.type===x?(this.next(),!0):!1},_t.isContextual=function(x){return this.type===O.name&&this.value===x&&!this.containsEsc},_t.eatContextual=function(x){return this.isContextual(x)?(this.next(),!0):!1},_t.expectContextual=function(x){this.eatContextual(x)||this.unexpected()},_t.canInsertSemicolon=function(){return this.type===O.eof||this.type===O.braceR||w.test(this.input.slice(this.lastTokEnd,this.start))},_t.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},_t.semicolon=function(){!this.eat(O.semi)&&!this.insertSemicolon()&&this.unexpected()},_t.afterTrailingComma=function(x,P){if(this.type===x)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),P||this.next(),!0},_t.expect=function(x){this.eat(x)||this.unexpected()},_t.unexpected=function(x){this.raise(x??this.start,"Unexpected token")};var vt=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};_t.checkPatternErrors=function(x,P){if(x){x.trailingComma>-1&&this.raiseRecoverable(x.trailingComma,"Comma is not permitted after the rest element");var q=P?x.parenthesizedAssign:x.parenthesizedBind;q>-1&&this.raiseRecoverable(q,P?"Assigning to rvalue":"Parenthesized pattern")}},_t.checkExpressionErrors=function(x,P){if(!x)return!1;var q=x.shorthandAssign,z=x.doubleProto;if(!P)return q>=0||z>=0;q>=0&&this.raise(q,"Shorthand property assignments are valid only in destructuring patterns"),z>=0&&this.raiseRecoverable(z,"Redefinition of __proto__ property")},_t.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos55295&&z<56320)return!0;if(d(z,!0)){for(var ge=q+1;m(z=this.input.charCodeAt(ge),!0);)++ge;if(z===92||z>55295&&z<56320)return!0;var Fe=this.input.slice(q,ge);if(!c.test(Fe))return!0}return!1},Ye.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;_.lastIndex=this.pos;var x=_.exec(this.input),P=this.pos+x[0].length,q;return!w.test(this.input.slice(this.pos,P))&&this.input.slice(P,P+8)==="function"&&(P+8===this.input.length||!(m(q=this.input.charCodeAt(P+8))||q>55295&&q<56320))},Ye.parseStatement=function(x,P,q){var z=this.type,ge=this.startNode(),Fe;switch(this.isLet(x)&&(z=O._var,Fe="let"),z){case O._break:case O._continue:return this.parseBreakContinueStatement(ge,z.keyword);case O._debugger:return this.parseDebuggerStatement(ge);case O._do:return this.parseDoStatement(ge);case O._for:return this.parseForStatement(ge);case O._function:return x&&(this.strict||x!=="if"&&x!=="label")&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(ge,!1,!x);case O._class:return x&&this.unexpected(),this.parseClass(ge,!0);case O._if:return this.parseIfStatement(ge);case O._return:return this.parseReturnStatement(ge);case O._switch:return this.parseSwitchStatement(ge);case O._throw:return this.parseThrowStatement(ge);case O._try:return this.parseTryStatement(ge);case O._const:case O._var:return Fe=Fe||this.value,x&&Fe!=="var"&&this.unexpected(),this.parseVarStatement(ge,Fe);case O._while:return this.parseWhileStatement(ge);case O._with:return this.parseWithStatement(ge);case O.braceL:return this.parseBlock(!0,ge);case O.semi:return this.parseEmptyStatement(ge);case O._export:case O._import:if(this.options.ecmaVersion>10&&z===O._import){_.lastIndex=this.pos;var Ne=_.exec(this.input),He=this.pos+Ne[0].length,Je=this.input.charCodeAt(He);if(Je===40||Je===46)return this.parseExpressionStatement(ge,this.parseExpression())}return this.options.allowImportExportEverywhere||(P||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),z===O._import?this.parseImport(ge):this.parseExport(ge,q);default:if(this.isAsyncFunction())return x&&this.unexpected(),this.next(),this.parseFunctionStatement(ge,!0,!x);var St=this.value,At=this.parseExpression();return z===O.name&&At.type==="Identifier"&&this.eat(O.colon)?this.parseLabeledStatement(ge,St,At,x):this.parseExpressionStatement(ge,At)}},Ye.parseBreakContinueStatement=function(x,P){var q=P==="break";this.next(),this.eat(O.semi)||this.insertSemicolon()?x.label=null:this.type!==O.name?this.unexpected():(x.label=this.parseIdent(),this.semicolon());for(var z=0;z=6?this.eat(O.semi):this.semicolon(),this.finishNode(x,"DoWhileStatement")},Ye.parseForStatement=function(x){this.next();var P=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(Kt),this.enterScope(0),this.expect(O.parenL),this.type===O.semi)return P>-1&&this.unexpected(P),this.parseFor(x,null);var q=this.isLet();if(this.type===O._var||this.type===O._const||q){var z=this.startNode(),ge=q?"let":this.value;return this.next(),this.parseVar(z,!0,ge),this.finishNode(z,"VariableDeclaration"),(this.type===O._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&z.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===O._in?P>-1&&this.unexpected(P):x.await=P>-1),this.parseForIn(x,z)):(P>-1&&this.unexpected(P),this.parseFor(x,z))}var Fe=this.isContextual("let"),Ne=!1,He=new vt,Je=this.parseExpression(P>-1?"await":!0,He);return this.type===O._in||(Ne=this.options.ecmaVersion>=6&&this.isContextual("of"))?(this.options.ecmaVersion>=9&&(this.type===O._in?P>-1&&this.unexpected(P):x.await=P>-1),Fe&&Ne&&this.raise(Je.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(Je,!1,He),this.checkLValPattern(Je),this.parseForIn(x,Je)):(this.checkExpressionErrors(He,!0),P>-1&&this.unexpected(P),this.parseFor(x,Je))},Ye.parseFunctionStatement=function(x,P,q){return this.next(),this.parseFunction(x,ne|(q?0:ee),!1,P)},Ye.parseIfStatement=function(x){return this.next(),x.test=this.parseParenExpression(),x.consequent=this.parseStatement("if"),x.alternate=this.eat(O._else)?this.parseStatement("if"):null,this.finishNode(x,"IfStatement")},Ye.parseReturnStatement=function(x){return!this.inFunction&&!this.options.allowReturnOutsideFunction&&this.raise(this.start,"'return' outside of function"),this.next(),this.eat(O.semi)||this.insertSemicolon()?x.argument=null:(x.argument=this.parseExpression(),this.semicolon()),this.finishNode(x,"ReturnStatement")},Ye.parseSwitchStatement=function(x){this.next(),x.discriminant=this.parseParenExpression(),x.cases=[],this.expect(O.braceL),this.labels.push(De),this.enterScope(0);for(var P,q=!1;this.type!==O.braceR;)if(this.type===O._case||this.type===O._default){var z=this.type===O._case;P&&this.finishNode(P,"SwitchCase"),x.cases.push(P=this.startNode()),P.consequent=[],this.next(),z?P.test=this.parseExpression():(q&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),q=!0,P.test=null),this.expect(O.colon)}else P||this.unexpected(),P.consequent.push(this.parseStatement(null));return this.exitScope(),P&&this.finishNode(P,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(x,"SwitchStatement")},Ye.parseThrowStatement=function(x){return this.next(),w.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),x.argument=this.parseExpression(),this.semicolon(),this.finishNode(x,"ThrowStatement")};var G=[];Ye.parseCatchClauseParam=function(){var x=this.parseBindingAtom(),P=x.type==="Identifier";return this.enterScope(P?qe:0),this.checkLValPattern(x,P?st:et),this.expect(O.parenR),x},Ye.parseTryStatement=function(x){if(this.next(),x.block=this.parseBlock(),x.handler=null,this.type===O._catch){var P=this.startNode();this.next(),this.eat(O.parenL)?P.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),P.param=null,this.enterScope(0)),P.body=this.parseBlock(!1),this.exitScope(),x.handler=this.finishNode(P,"CatchClause")}return x.finalizer=this.eat(O._finally)?this.parseBlock():null,!x.handler&&!x.finalizer&&this.raise(x.start,"Missing catch or finally clause"),this.finishNode(x,"TryStatement")},Ye.parseVarStatement=function(x,P,q){return this.next(),this.parseVar(x,!1,P,q),this.semicolon(),this.finishNode(x,"VariableDeclaration")},Ye.parseWhileStatement=function(x){return this.next(),x.test=this.parseParenExpression(),this.labels.push(Kt),x.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(x,"WhileStatement")},Ye.parseWithStatement=function(x){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),x.object=this.parseParenExpression(),x.body=this.parseStatement("with"),this.finishNode(x,"WithStatement")},Ye.parseEmptyStatement=function(x){return this.next(),this.finishNode(x,"EmptyStatement")},Ye.parseLabeledStatement=function(x,P,q,z){for(var ge=0,Fe=this.labels;ge=0;Je--){var St=this.labels[Je];if(St.statementStart===x.start)St.statementStart=this.start,St.kind=He;else break}return this.labels.push({name:P,kind:He,statementStart:this.start}),x.body=this.parseStatement(z?z.indexOf("label")===-1?z+"label":z:"label"),this.labels.pop(),x.label=q,this.finishNode(x,"LabeledStatement")},Ye.parseExpressionStatement=function(x,P){return x.expression=P,this.semicolon(),this.finishNode(x,"ExpressionStatement")},Ye.parseBlock=function(x,P,q){for(x===void 0&&(x=!0),P===void 0&&(P=this.startNode()),P.body=[],this.expect(O.braceL),x&&this.enterScope(0);this.type!==O.braceR;){var z=this.parseStatement(null);P.body.push(z)}return q&&(this.strict=!1),this.next(),x&&this.exitScope(),this.finishNode(P,"BlockStatement")},Ye.parseFor=function(x,P){return x.init=P,this.expect(O.semi),x.test=this.type===O.semi?null:this.parseExpression(),this.expect(O.semi),x.update=this.type===O.parenR?null:this.parseExpression(),this.expect(O.parenR),x.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(x,"ForStatement")},Ye.parseForIn=function(x,P){var q=this.type===O._in;return this.next(),P.type==="VariableDeclaration"&&P.declarations[0].init!=null&&(!q||this.options.ecmaVersion<8||this.strict||P.kind!=="var"||P.declarations[0].id.type!=="Identifier")&&this.raise(P.start,(q?"for-in":"for-of")+" loop variable declaration may not have an initializer"),x.left=P,x.right=q?this.parseExpression():this.parseMaybeAssign(),this.expect(O.parenR),x.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(x,q?"ForInStatement":"ForOfStatement")},Ye.parseVar=function(x,P,q,z){for(x.declarations=[],x.kind=q;;){var ge=this.startNode();if(this.parseVarId(ge,q),this.eat(O.eq)?ge.init=this.parseMaybeAssign(P):!z&&q==="const"&&!(this.type===O._in||this.options.ecmaVersion>=6&&this.isContextual("of"))?this.unexpected():!z&&ge.id.type!=="Identifier"&&!(P&&(this.type===O._in||this.isContextual("of")))?this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):ge.init=null,x.declarations.push(this.finishNode(ge,"VariableDeclarator")),!this.eat(O.comma))break}return x},Ye.parseVarId=function(x,P){x.id=this.parseBindingAtom(),this.checkLValPattern(x.id,P==="var"?Ve:et,!1)};var ne=1,ee=2,oe=4;Ye.parseFunction=function(x,P,q,z,ge){this.initFunction(x),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!z)&&(this.type===O.star&&P&ee&&this.unexpected(),x.generator=this.eat(O.star)),this.options.ecmaVersion>=8&&(x.async=!!z),P&ne&&(x.id=P&oe&&this.type!==O.name?null:this.parseIdent(),x.id&&!(P&ee)&&this.checkLValSimple(x.id,this.strict||x.generator||x.async?this.treatFunctionsAsVar?Ve:et:it));var Fe=this.yieldPos,Ne=this.awaitPos,He=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(X(x.async,x.generator)),P&ne||(x.id=this.type===O.name?this.parseIdent():null),this.parseFunctionParams(x),this.parseFunctionBody(x,q,!1,ge),this.yieldPos=Fe,this.awaitPos=Ne,this.awaitIdentPos=He,this.finishNode(x,P&ne?"FunctionDeclaration":"FunctionExpression")},Ye.parseFunctionParams=function(x){this.expect(O.parenL),x.params=this.parseBindingList(O.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},Ye.parseClass=function(x,P){this.next();var q=this.strict;this.strict=!0,this.parseClassId(x,P),this.parseClassSuper(x);var z=this.enterClassBody(),ge=this.startNode(),Fe=!1;for(ge.body=[],this.expect(O.braceL);this.type!==O.braceR;){var Ne=this.parseClassElement(x.superClass!==null);Ne&&(ge.body.push(Ne),Ne.type==="MethodDefinition"&&Ne.kind==="constructor"?(Fe&&this.raiseRecoverable(Ne.start,"Duplicate constructor in the same class"),Fe=!0):Ne.key&&Ne.key.type==="PrivateIdentifier"&&ce(z,Ne)&&this.raiseRecoverable(Ne.key.start,"Identifier '#"+Ne.key.name+"' has already been declared"))}return this.strict=q,this.next(),x.body=this.finishNode(ge,"ClassBody"),this.exitClassBody(),this.finishNode(x,P?"ClassDeclaration":"ClassExpression")},Ye.parseClassElement=function(x){if(this.eat(O.semi))return null;var P=this.options.ecmaVersion,q=this.startNode(),z="",ge=!1,Fe=!1,Ne="method",He=!1;if(this.eatContextual("static")){if(P>=13&&this.eat(O.braceL))return this.parseClassStaticBlock(q),q;this.isClassElementNameStart()||this.type===O.star?He=!0:z="static"}if(q.static=He,!z&&P>=8&&this.eatContextual("async")&&((this.isClassElementNameStart()||this.type===O.star)&&!this.canInsertSemicolon()?Fe=!0:z="async"),!z&&(P>=9||!Fe)&&this.eat(O.star)&&(ge=!0),!z&&!Fe&&!ge){var Je=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?Ne=Je:z=Je)}if(z?(q.computed=!1,q.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),q.key.name=z,this.finishNode(q.key,"Identifier")):this.parseClassElementName(q),P<13||this.type===O.parenL||Ne!=="method"||ge||Fe){var St=!q.static&&Z(q,"constructor"),At=St&&x;St&&Ne!=="method"&&this.raise(q.key.start,"Constructor can't have get/set modifier"),q.kind=St?"constructor":Ne,this.parseClassMethod(q,ge,Fe,At)}else this.parseClassField(q);return q},Ye.isClassElementNameStart=function(){return this.type===O.name||this.type===O.privateId||this.type===O.num||this.type===O.string||this.type===O.bracketL||this.type.keyword},Ye.parseClassElementName=function(x){this.type===O.privateId?(this.value==="constructor"&&this.raise(this.start,"Classes can't have an element named '#constructor'"),x.computed=!1,x.key=this.parsePrivateIdent()):this.parsePropertyName(x)},Ye.parseClassMethod=function(x,P,q,z){var ge=x.key;x.kind==="constructor"?(P&&this.raise(ge.start,"Constructor can't be a generator"),q&&this.raise(ge.start,"Constructor can't be an async method")):x.static&&Z(x,"prototype")&&this.raise(ge.start,"Classes may not have a static property named prototype");var Fe=x.value=this.parseMethod(P,q,z);return x.kind==="get"&&Fe.params.length!==0&&this.raiseRecoverable(Fe.start,"getter should have no params"),x.kind==="set"&&Fe.params.length!==1&&this.raiseRecoverable(Fe.start,"setter should have exactly one param"),x.kind==="set"&&Fe.params[0].type==="RestElement"&&this.raiseRecoverable(Fe.params[0].start,"Setter cannot use rest params"),this.finishNode(x,"MethodDefinition")},Ye.parseClassField=function(x){if(Z(x,"constructor")?this.raise(x.key.start,"Classes can't have a field named 'constructor'"):x.static&&Z(x,"prototype")&&this.raise(x.key.start,"Classes can't have a static field named 'prototype'"),this.eat(O.eq)){var P=this.currentThisScope(),q=P.inClassFieldInit;P.inClassFieldInit=!0,x.value=this.parseMaybeAssign(),P.inClassFieldInit=q}else x.value=null;return this.semicolon(),this.finishNode(x,"PropertyDefinition")},Ye.parseClassStaticBlock=function(x){x.body=[];var P=this.labels;for(this.labels=[],this.enterScope(pt|rt);this.type!==O.braceR;){var q=this.parseStatement(null);x.body.push(q)}return this.next(),this.exitScope(),this.labels=P,this.finishNode(x,"StaticBlock")},Ye.parseClassId=function(x,P){this.type===O.name?(x.id=this.parseIdent(),P&&this.checkLValSimple(x.id,et,!1)):(P===!0&&this.unexpected(),x.id=null)},Ye.parseClassSuper=function(x){x.superClass=this.eat(O._extends)?this.parseExprSubscripts(null,!1):null},Ye.enterClassBody=function(){var x={declared:Object.create(null),used:[]};return this.privateNameStack.push(x),x.declared},Ye.exitClassBody=function(){var x=this.privateNameStack.pop(),P=x.declared,q=x.used;if(this.options.checkPrivateFields)for(var z=this.privateNameStack.length,ge=z===0?null:this.privateNameStack[z-1],Fe=0;Fe=11&&(this.eatContextual("as")?(x.exported=this.parseModuleExportName(),this.checkExport(P,x.exported,this.lastTokStart)):x.exported=null),this.expectContextual("from"),this.type!==O.string&&this.unexpected(),x.source=this.parseExprAtom(),this.semicolon(),this.finishNode(x,"ExportAllDeclaration")},Ye.parseExport=function(x,P){if(this.next(),this.eat(O.star))return this.parseExportAllDeclaration(x,P);if(this.eat(O._default))return this.checkExport(P,"default",this.lastTokStart),x.declaration=this.parseExportDefaultDeclaration(),this.finishNode(x,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())x.declaration=this.parseExportDeclaration(x),x.declaration.type==="VariableDeclaration"?this.checkVariableExport(P,x.declaration.declarations):this.checkExport(P,x.declaration.id,x.declaration.id.start),x.specifiers=[],x.source=null;else{if(x.declaration=null,x.specifiers=this.parseExportSpecifiers(P),this.eatContextual("from"))this.type!==O.string&&this.unexpected(),x.source=this.parseExprAtom();else{for(var q=0,z=x.specifiers;q=13&&this.type===O.string){var x=this.parseLiteral(this.value);return U.test(x.value)&&this.raise(x.start,"An export name cannot include a lone surrogate."),x}return this.parseIdent(!0)},Ye.adaptDirectivePrologue=function(x){for(var P=0;P=5&&x.type==="ExpressionStatement"&&x.expression.type==="Literal"&&typeof x.expression.value=="string"&&(this.input[x.start]==='"'||this.input[x.start]==="'")};var J=bt.prototype;J.toAssignable=function(x,P,q){if(this.options.ecmaVersion>=6&&x)switch(x.type){case"Identifier":this.inAsync&&x.name==="await"&&this.raise(x.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":x.type="ObjectPattern",q&&this.checkPatternErrors(q,!0);for(var z=0,ge=x.properties;z=8&&!He&&Je.name==="async"&&!this.canInsertSemicolon()&&this.eat(O._function))return this.overrideContext(de.f_expr),this.parseFunction(this.startNodeAt(Fe,Ne),0,!1,!0,P);if(ge&&!this.canInsertSemicolon()){if(this.eat(O.arrow))return this.parseArrowExpression(this.startNodeAt(Fe,Ne),[Je],!1,P);if(this.options.ecmaVersion>=8&&Je.name==="async"&&this.type===O.name&&!He&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc))return Je=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(O.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(Fe,Ne),[Je],!0,P)}return Je;case O.regexp:var St=this.value;return z=this.parseLiteral(St.value),z.regex={pattern:St.pattern,flags:St.flags},z;case O.num:case O.string:return this.parseLiteral(this.value);case O._null:case O._true:case O._false:return z=this.startNode(),z.value=this.type===O._null?null:this.type===O._true,z.raw=this.type.keyword,this.next(),this.finishNode(z,"Literal");case O.parenL:var At=this.start,ar=this.parseParenAndDistinguishExpression(ge,P);return x&&(x.parenthesizedAssign<0&&!this.isSimpleAssignTarget(ar)&&(x.parenthesizedAssign=At),x.parenthesizedBind<0&&(x.parenthesizedBind=At)),ar;case O.bracketL:return z=this.startNode(),this.next(),z.elements=this.parseExprList(O.bracketR,!0,!0,x),this.finishNode(z,"ArrayExpression");case O.braceL:return this.overrideContext(de.b_expr),this.parseObj(!1,x);case O._function:return z=this.startNode(),this.next(),this.parseFunction(z,0);case O._class:return this.parseClass(this.startNode(),!1);case O._new:return this.parseNew();case O.backQuote:return this.parseTemplate();case O._import:return this.options.ecmaVersion>=11?this.parseExprImport(q):this.unexpected();default:return this.parseExprAtomDefault()}},L.parseExprAtomDefault=function(){this.unexpected()},L.parseExprImport=function(x){var P=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===O.parenL&&!x)return this.parseDynamicImport(P);if(this.type===O.dot){var q=this.startNodeAt(P.start,P.loc&&P.loc.start);return q.name="import",P.meta=this.finishNode(q,"Identifier"),this.parseImportMeta(P)}else this.unexpected()},L.parseDynamicImport=function(x){if(this.next(),x.source=this.parseMaybeAssign(),!this.eat(O.parenR)){var P=this.start;this.eat(O.comma)&&this.eat(O.parenR)?this.raiseRecoverable(P,"Trailing comma is not allowed in import()"):this.unexpected(P)}return this.finishNode(x,"ImportExpression")},L.parseImportMeta=function(x){this.next();var P=this.containsEsc;return x.property=this.parseIdent(!0),x.property.name!=="meta"&&this.raiseRecoverable(x.property.start,"The only valid meta property for import is 'import.meta'"),P&&this.raiseRecoverable(x.start,"'import.meta' must not contain escaped characters"),this.options.sourceType!=="module"&&!this.options.allowImportExportEverywhere&&this.raiseRecoverable(x.start,"Cannot use 'import.meta' outside a module"),this.finishNode(x,"MetaProperty")},L.parseLiteral=function(x){var P=this.startNode();return P.value=x,P.raw=this.input.slice(this.start,this.end),P.raw.charCodeAt(P.raw.length-1)===110&&(P.bigint=P.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(P,"Literal")},L.parseParenExpression=function(){this.expect(O.parenL);var x=this.parseExpression();return this.expect(O.parenR),x},L.shouldParseArrow=function(x){return!this.canInsertSemicolon()},L.parseParenAndDistinguishExpression=function(x,P){var q=this.start,z=this.startLoc,ge,Fe=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var Ne=this.start,He=this.startLoc,Je=[],St=!0,At=!1,ar=new vt,An=this.yieldPos,js=this.awaitPos,Kn;for(this.yieldPos=0,this.awaitPos=0;this.type!==O.parenR;)if(St?St=!1:this.expect(O.comma),Fe&&this.afterTrailingComma(O.parenR,!0)){At=!0;break}else if(this.type===O.ellipsis){Kn=this.start,Je.push(this.parseParenItem(this.parseRestBinding())),this.type===O.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}else Je.push(this.parseMaybeAssign(!1,ar,this.parseParenItem));var Ci=this.lastTokEnd,ms=this.lastTokEndLoc;if(this.expect(O.parenR),x&&this.shouldParseArrow(Je)&&this.eat(O.arrow))return this.checkPatternErrors(ar,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=An,this.awaitPos=js,this.parseParenArrowList(q,z,Je,P);(!Je.length||At)&&this.unexpected(this.lastTokStart),Kn&&this.unexpected(Kn),this.checkExpressionErrors(ar,!0),this.yieldPos=An||this.yieldPos,this.awaitPos=js||this.awaitPos,Je.length>1?(ge=this.startNodeAt(Ne,He),ge.expressions=Je,this.finishNodeAt(ge,"SequenceExpression",Ci,ms)):ge=Je[0]}else ge=this.parseParenExpression();if(this.options.preserveParens){var Jn=this.startNodeAt(q,z);return Jn.expression=ge,this.finishNode(Jn,"ParenthesizedExpression")}else return ge},L.parseParenItem=function(x){return x},L.parseParenArrowList=function(x,P,q,z){return this.parseArrowExpression(this.startNodeAt(x,P),q,!1,z)};var Te=[];L.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var x=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===O.dot){var P=this.startNodeAt(x.start,x.loc&&x.loc.start);P.name="new",x.meta=this.finishNode(P,"Identifier"),this.next();var q=this.containsEsc;return x.property=this.parseIdent(!0),x.property.name!=="target"&&this.raiseRecoverable(x.property.start,"The only valid meta property for new is 'new.target'"),q&&this.raiseRecoverable(x.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(x.start,"'new.target' can only be used in functions and class static block"),this.finishNode(x,"MetaProperty")}var z=this.start,ge=this.startLoc;return x.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),z,ge,!0,!1),this.eat(O.parenL)?x.arguments=this.parseExprList(O.parenR,this.options.ecmaVersion>=8,!1):x.arguments=Te,this.finishNode(x,"NewExpression")},L.parseTemplateElement=function(x){var P=x.isTagged,q=this.startNode();return this.type===O.invalidTemplate?(P||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),q.value={raw:this.value,cooked:null}):q.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,` -`),cooked:this.value},this.next(),q.tail=this.type===O.backQuote,this.finishNode(q,"TemplateElement")},L.parseTemplate=function(x){x===void 0&&(x={});var P=x.isTagged;P===void 0&&(P=!1);var q=this.startNode();this.next(),q.expressions=[];var z=this.parseTemplateElement({isTagged:P});for(q.quasis=[z];!z.tail;)this.type===O.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(O.dollarBraceL),q.expressions.push(this.parseExpression()),this.expect(O.braceR),q.quasis.push(z=this.parseTemplateElement({isTagged:P}));return this.next(),this.finishNode(q,"TemplateLiteral")},L.isAsyncProp=function(x){return!x.computed&&x.key.type==="Identifier"&&x.key.name==="async"&&(this.type===O.name||this.type===O.num||this.type===O.string||this.type===O.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===O.star)&&!w.test(this.input.slice(this.lastTokEnd,this.start))},L.parseObj=function(x,P){var q=this.startNode(),z=!0,ge={};for(q.properties=[],this.next();!this.eat(O.braceR);){if(z)z=!1;else if(this.expect(O.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(O.braceR))break;var Fe=this.parseProperty(x,P);x||this.checkPropClash(Fe,ge,P),q.properties.push(Fe)}return this.finishNode(q,x?"ObjectPattern":"ObjectExpression")},L.parseProperty=function(x,P){var q=this.startNode(),z,ge,Fe,Ne;if(this.options.ecmaVersion>=9&&this.eat(O.ellipsis))return x?(q.argument=this.parseIdent(!1),this.type===O.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(q,"RestElement")):(q.argument=this.parseMaybeAssign(!1,P),this.type===O.comma&&P&&P.trailingComma<0&&(P.trailingComma=this.start),this.finishNode(q,"SpreadElement"));this.options.ecmaVersion>=6&&(q.method=!1,q.shorthand=!1,(x||P)&&(Fe=this.start,Ne=this.startLoc),x||(z=this.eat(O.star)));var He=this.containsEsc;return this.parsePropertyName(q),!x&&!He&&this.options.ecmaVersion>=8&&!z&&this.isAsyncProp(q)?(ge=!0,z=this.options.ecmaVersion>=9&&this.eat(O.star),this.parsePropertyName(q)):ge=!1,this.parsePropertyValue(q,x,z,ge,Fe,Ne,P,He),this.finishNode(q,"Property")},L.parseGetterSetter=function(x){x.kind=x.key.name,this.parsePropertyName(x),x.value=this.parseMethod(!1);var P=x.kind==="get"?0:1;if(x.value.params.length!==P){var q=x.value.start;x.kind==="get"?this.raiseRecoverable(q,"getter should have no params"):this.raiseRecoverable(q,"setter should have exactly one param")}else x.kind==="set"&&x.value.params[0].type==="RestElement"&&this.raiseRecoverable(x.value.params[0].start,"Setter cannot use rest params")},L.parsePropertyValue=function(x,P,q,z,ge,Fe,Ne,He){(q||z)&&this.type===O.colon&&this.unexpected(),this.eat(O.colon)?(x.value=P?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,Ne),x.kind="init"):this.options.ecmaVersion>=6&&this.type===O.parenL?(P&&this.unexpected(),x.kind="init",x.method=!0,x.value=this.parseMethod(q,z)):!P&&!He&&this.options.ecmaVersion>=5&&!x.computed&&x.key.type==="Identifier"&&(x.key.name==="get"||x.key.name==="set")&&this.type!==O.comma&&this.type!==O.braceR&&this.type!==O.eq?((q||z)&&this.unexpected(),this.parseGetterSetter(x)):this.options.ecmaVersion>=6&&!x.computed&&x.key.type==="Identifier"?((q||z)&&this.unexpected(),this.checkUnreserved(x.key),x.key.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=ge),x.kind="init",P?x.value=this.parseMaybeDefault(ge,Fe,this.copyNode(x.key)):this.type===O.eq&&Ne?(Ne.shorthandAssign<0&&(Ne.shorthandAssign=this.start),x.value=this.parseMaybeDefault(ge,Fe,this.copyNode(x.key))):x.value=this.copyNode(x.key),x.shorthand=!0):this.unexpected()},L.parsePropertyName=function(x){if(this.options.ecmaVersion>=6){if(this.eat(O.bracketL))return x.computed=!0,x.key=this.parseMaybeAssign(),this.expect(O.bracketR),x.key;x.computed=!1}return x.key=this.type===O.num||this.type===O.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")},L.initFunction=function(x){x.id=null,this.options.ecmaVersion>=6&&(x.generator=x.expression=!1),this.options.ecmaVersion>=8&&(x.async=!1)},L.parseMethod=function(x,P,q){var z=this.startNode(),ge=this.yieldPos,Fe=this.awaitPos,Ne=this.awaitIdentPos;return this.initFunction(z),this.options.ecmaVersion>=6&&(z.generator=x),this.options.ecmaVersion>=8&&(z.async=!!P),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(X(P,z.generator)|rt|(q?ht:0)),this.expect(O.parenL),z.params=this.parseBindingList(O.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(z,!1,!0,!1),this.yieldPos=ge,this.awaitPos=Fe,this.awaitIdentPos=Ne,this.finishNode(z,"FunctionExpression")},L.parseArrowExpression=function(x,P,q,z){var ge=this.yieldPos,Fe=this.awaitPos,Ne=this.awaitIdentPos;return this.enterScope(X(q,!1)|Le),this.initFunction(x),this.options.ecmaVersion>=8&&(x.async=!!q),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,x.params=this.toAssignableList(P,!0),this.parseFunctionBody(x,!0,!1,z),this.yieldPos=ge,this.awaitPos=Fe,this.awaitIdentPos=Ne,this.finishNode(x,"ArrowFunctionExpression")},L.parseFunctionBody=function(x,P,q,z){var ge=P&&this.type!==O.braceL,Fe=this.strict,Ne=!1;if(ge)x.body=this.parseMaybeAssign(z),x.expression=!0,this.checkParams(x,!1);else{var He=this.options.ecmaVersion>=7&&!this.isSimpleParamList(x.params);(!Fe||He)&&(Ne=this.strictDirective(this.end),Ne&&He&&this.raiseRecoverable(x.start,"Illegal 'use strict' directive in function with non-simple parameter list"));var Je=this.labels;this.labels=[],Ne&&(this.strict=!0),this.checkParams(x,!Fe&&!Ne&&!P&&!q&&this.isSimpleParamList(x.params)),this.strict&&x.id&&this.checkLValSimple(x.id,Ct),x.body=this.parseBlock(!1,void 0,Ne&&!Fe),x.expression=!1,this.adaptDirectivePrologue(x.body.body),this.labels=Je}this.exitScope()},L.isSimpleParamList=function(x){for(var P=0,q=x;P-1||ge.functions.indexOf(x)>-1||ge.var.indexOf(x)>-1,ge.lexical.push(x),this.inModule&&ge.flags&pe&&delete this.undefinedExports[x]}else if(P===st){var Fe=this.currentScope();Fe.lexical.push(x)}else if(P===it){var Ne=this.currentScope();this.treatFunctionsAsVar?z=Ne.lexical.indexOf(x)>-1:z=Ne.lexical.indexOf(x)>-1||Ne.var.indexOf(x)>-1,Ne.functions.push(x)}else for(var He=this.scopeStack.length-1;He>=0;--He){var Je=this.scopeStack[He];if(Je.lexical.indexOf(x)>-1&&!(Je.flags&qe&&Je.lexical[0]===x)||!this.treatFunctionsAsVarInScope(Je)&&Je.functions.indexOf(x)>-1){z=!0;break}if(Je.var.push(x),this.inModule&&Je.flags&pe&&delete this.undefinedExports[x],Je.flags&Et)break}z&&this.raiseRecoverable(q,"Identifier '"+x+"' has already been declared")},$e.checkLocalExport=function(x){this.scopeStack[0].lexical.indexOf(x.name)===-1&&this.scopeStack[0].var.indexOf(x.name)===-1&&(this.undefinedExports[x.name]=x)},$e.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},$e.currentVarScope=function(){for(var x=this.scopeStack.length-1;;x--){var P=this.scopeStack[x];if(P.flags&Et)return P}},$e.currentThisScope=function(){for(var x=this.scopeStack.length-1;;x--){var P=this.scopeStack[x];if(P.flags&Et&&!(P.flags&Le))return P}};var Oe=function(P,q,z){this.type="",this.start=q,this.end=0,P.options.locations&&(this.loc=new ae(P,z)),P.options.directSourceFile&&(this.sourceFile=P.options.directSourceFile),P.options.ranges&&(this.range=[q,0])},Ie=bt.prototype;Ie.startNode=function(){return new Oe(this,this.start,this.startLoc)},Ie.startNodeAt=function(x,P){return new Oe(this,x,P)};function We(x,P,q,z){return x.type=P,x.end=q,this.options.locations&&(x.loc.end=z),this.options.ranges&&(x.range[1]=q),x}Ie.finishNode=function(x,P){return We.call(this,x,P,this.lastTokEnd,this.lastTokEndLoc)},Ie.finishNodeAt=function(x,P,q,z){return We.call(this,x,P,q,z)},Ie.copyNode=function(x){var P=new Oe(this,x.start,this.startLoc);for(var q in x)P[q]=x[q];return P};var be="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",re=be+" Extended_Pictographic",Y=re,fe=Y+" EBase EComp EMod EPres ExtPict",Se=fe,Ee=Se,ze={9:be,10:re,11:Y,12:fe,13:Se,14:Ee},Ke="Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji",mt={9:"",10:"",11:"",12:"",13:"",14:Ke},Ot="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",Pt="Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",xt=Pt+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",Ue=xt+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",nt=Ue+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",Ge=nt+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",Qe=Ge+" Hrkt Katakana_Or_Hiragana Kawi Nag_Mundari Nagm Unknown Zzzz",ut={9:Pt,10:xt,11:Ue,12:nt,13:Ge,14:Qe},dt={};function qt(x){var P=dt[x]={binary:N(ze[x]+" "+Ot),binaryOfStrings:N(mt[x]),nonBinary:{General_Category:N(Ot),Script:N(ut[x])}};P.nonBinary.Script_Extensions=P.nonBinary.Script,P.nonBinary.gc=P.nonBinary.General_Category,P.nonBinary.sc=P.nonBinary.Script,P.nonBinary.scx=P.nonBinary.Script_Extensions}for(var Qt=0,jt=[9,10,11,12,13,14];Qt=6?"uy":"")+(P.options.ecmaVersion>=9?"s":"")+(P.options.ecmaVersion>=13?"d":"")+(P.options.ecmaVersion>=15?"v":""),this.unicodeProperties=dt[P.options.ecmaVersion>=14?14:P.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchV=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=[],this.backReferenceNames=[]};Nt.prototype.reset=function(P,q,z){var ge=z.indexOf("v")!==-1,Fe=z.indexOf("u")!==-1;this.start=P|0,this.source=q+"",this.flags=z,ge&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=Fe&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=Fe&&this.parser.options.ecmaVersion>=9)},Nt.prototype.raise=function(P){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+P)},Nt.prototype.at=function(P,q){q===void 0&&(q=!1);var z=this.source,ge=z.length;if(P>=ge)return-1;var Fe=z.charCodeAt(P);if(!(q||this.switchU)||Fe<=55295||Fe>=57344||P+1>=ge)return Fe;var Ne=z.charCodeAt(P+1);return Ne>=56320&&Ne<=57343?(Fe<<10)+Ne-56613888:Fe},Nt.prototype.nextIndex=function(P,q){q===void 0&&(q=!1);var z=this.source,ge=z.length;if(P>=ge)return ge;var Fe=z.charCodeAt(P),Ne;return!(q||this.switchU)||Fe<=55295||Fe>=57344||P+1>=ge||(Ne=z.charCodeAt(P+1))<56320||Ne>57343?P+1:P+2},Nt.prototype.current=function(P){return P===void 0&&(P=!1),this.at(this.pos,P)},Nt.prototype.lookahead=function(P){return P===void 0&&(P=!1),this.at(this.nextIndex(this.pos,P),P)},Nt.prototype.advance=function(P){P===void 0&&(P=!1),this.pos=this.nextIndex(this.pos,P)},Nt.prototype.eat=function(P,q){return q===void 0&&(q=!1),this.current(q)===P?(this.advance(q),!0):!1},Nt.prototype.eatChars=function(P,q){q===void 0&&(q=!1);for(var z=this.pos,ge=0,Fe=P;ge-1&&this.raise(x.start,"Duplicate regular expression flag"),Ne==="u"&&(z=!0),Ne==="v"&&(ge=!0)}this.options.ecmaVersion>=15&&z&&ge&&this.raise(x.start,"Invalid regular expression flag")},ot.validateRegExpPattern=function(x){this.regexp_pattern(x),!x.switchN&&this.options.ecmaVersion>=9&&x.groupNames.length>0&&(x.switchN=!0,this.regexp_pattern(x))},ot.regexp_pattern=function(x){x.pos=0,x.lastIntValue=0,x.lastStringValue="",x.lastAssertionIsQuantifiable=!1,x.numCapturingParens=0,x.maxBackReference=0,x.groupNames.length=0,x.backReferenceNames.length=0,this.regexp_disjunction(x),x.pos!==x.source.length&&(x.eat(41)&&x.raise("Unmatched ')'"),(x.eat(93)||x.eat(125))&&x.raise("Lone quantifier brackets")),x.maxBackReference>x.numCapturingParens&&x.raise("Invalid escape");for(var P=0,q=x.backReferenceNames;P=9&&(q=x.eat(60)),x.eat(61)||x.eat(33))return this.regexp_disjunction(x),x.eat(41)||x.raise("Unterminated group"),x.lastAssertionIsQuantifiable=!q,!0}return x.pos=P,!1},ot.regexp_eatQuantifier=function(x,P){return P===void 0&&(P=!1),this.regexp_eatQuantifierPrefix(x,P)?(x.eat(63),!0):!1},ot.regexp_eatQuantifierPrefix=function(x,P){return x.eat(42)||x.eat(43)||x.eat(63)||this.regexp_eatBracedQuantifier(x,P)},ot.regexp_eatBracedQuantifier=function(x,P){var q=x.pos;if(x.eat(123)){var z=0,ge=-1;if(this.regexp_eatDecimalDigits(x)&&(z=x.lastIntValue,x.eat(44)&&this.regexp_eatDecimalDigits(x)&&(ge=x.lastIntValue),x.eat(125)))return ge!==-1&&ge=9?this.regexp_groupSpecifier(x):x.current()===63&&x.raise("Invalid group"),this.regexp_disjunction(x),x.eat(41))return x.numCapturingParens+=1,!0;x.raise("Unterminated group")}return!1},ot.regexp_eatExtendedAtom=function(x){return x.eat(46)||this.regexp_eatReverseSolidusAtomEscape(x)||this.regexp_eatCharacterClass(x)||this.regexp_eatUncapturingGroup(x)||this.regexp_eatCapturingGroup(x)||this.regexp_eatInvalidBracedQuantifier(x)||this.regexp_eatExtendedPatternCharacter(x)},ot.regexp_eatInvalidBracedQuantifier=function(x){return this.regexp_eatBracedQuantifier(x,!0)&&x.raise("Nothing to repeat"),!1},ot.regexp_eatSyntaxCharacter=function(x){var P=x.current();return br(P)?(x.lastIntValue=P,x.advance(),!0):!1};function br(x){return x===36||x>=40&&x<=43||x===46||x===63||x>=91&&x<=94||x>=123&&x<=125}ot.regexp_eatPatternCharacters=function(x){for(var P=x.pos,q=0;(q=x.current())!==-1&&!br(q);)x.advance();return x.pos!==P},ot.regexp_eatExtendedPatternCharacter=function(x){var P=x.current();return P!==-1&&P!==36&&!(P>=40&&P<=43)&&P!==46&&P!==63&&P!==91&&P!==94&&P!==124?(x.advance(),!0):!1},ot.regexp_groupSpecifier=function(x){if(x.eat(63)){if(this.regexp_eatGroupName(x)){x.groupNames.indexOf(x.lastStringValue)!==-1&&x.raise("Duplicate capture group name"),x.groupNames.push(x.lastStringValue);return}x.raise("Invalid group")}},ot.regexp_eatGroupName=function(x){if(x.lastStringValue="",x.eat(60)){if(this.regexp_eatRegExpIdentifierName(x)&&x.eat(62))return!0;x.raise("Invalid capture group name")}return!1},ot.regexp_eatRegExpIdentifierName=function(x){if(x.lastStringValue="",this.regexp_eatRegExpIdentifierStart(x)){for(x.lastStringValue+=R(x.lastIntValue);this.regexp_eatRegExpIdentifierPart(x);)x.lastStringValue+=R(x.lastIntValue);return!0}return!1},ot.regexp_eatRegExpIdentifierStart=function(x){var P=x.pos,q=this.options.ecmaVersion>=11,z=x.current(q);return x.advance(q),z===92&&this.regexp_eatRegExpUnicodeEscapeSequence(x,q)&&(z=x.lastIntValue),Nr(z)?(x.lastIntValue=z,!0):(x.pos=P,!1)};function Nr(x){return d(x,!0)||x===36||x===95}ot.regexp_eatRegExpIdentifierPart=function(x){var P=x.pos,q=this.options.ecmaVersion>=11,z=x.current(q);return x.advance(q),z===92&&this.regexp_eatRegExpUnicodeEscapeSequence(x,q)&&(z=x.lastIntValue),Cr(z)?(x.lastIntValue=z,!0):(x.pos=P,!1)};function Cr(x){return m(x,!0)||x===36||x===95||x===8204||x===8205}ot.regexp_eatAtomEscape=function(x){return this.regexp_eatBackReference(x)||this.regexp_eatCharacterClassEscape(x)||this.regexp_eatCharacterEscape(x)||x.switchN&&this.regexp_eatKGroupName(x)?!0:(x.switchU&&(x.current()===99&&x.raise("Invalid unicode escape"),x.raise("Invalid escape")),!1)},ot.regexp_eatBackReference=function(x){var P=x.pos;if(this.regexp_eatDecimalEscape(x)){var q=x.lastIntValue;if(x.switchU)return q>x.maxBackReference&&(x.maxBackReference=q),!0;if(q<=x.numCapturingParens)return!0;x.pos=P}return!1},ot.regexp_eatKGroupName=function(x){if(x.eat(107)){if(this.regexp_eatGroupName(x))return x.backReferenceNames.push(x.lastStringValue),!0;x.raise("Invalid named reference")}return!1},ot.regexp_eatCharacterEscape=function(x){return this.regexp_eatControlEscape(x)||this.regexp_eatCControlLetter(x)||this.regexp_eatZero(x)||this.regexp_eatHexEscapeSequence(x)||this.regexp_eatRegExpUnicodeEscapeSequence(x,!1)||!x.switchU&&this.regexp_eatLegacyOctalEscapeSequence(x)||this.regexp_eatIdentityEscape(x)},ot.regexp_eatCControlLetter=function(x){var P=x.pos;if(x.eat(99)){if(this.regexp_eatControlLetter(x))return!0;x.pos=P}return!1},ot.regexp_eatZero=function(x){return x.current()===48&&!mn(x.lookahead())?(x.lastIntValue=0,x.advance(),!0):!1},ot.regexp_eatControlEscape=function(x){var P=x.current();return P===116?(x.lastIntValue=9,x.advance(),!0):P===110?(x.lastIntValue=10,x.advance(),!0):P===118?(x.lastIntValue=11,x.advance(),!0):P===102?(x.lastIntValue=12,x.advance(),!0):P===114?(x.lastIntValue=13,x.advance(),!0):!1},ot.regexp_eatControlLetter=function(x){var P=x.current();return Qr(P)?(x.lastIntValue=P%32,x.advance(),!0):!1};function Qr(x){return x>=65&&x<=90||x>=97&&x<=122}ot.regexp_eatRegExpUnicodeEscapeSequence=function(x,P){P===void 0&&(P=!1);var q=x.pos,z=P||x.switchU;if(x.eat(117)){if(this.regexp_eatFixedHexDigits(x,4)){var ge=x.lastIntValue;if(z&&ge>=55296&&ge<=56319){var Fe=x.pos;if(x.eat(92)&&x.eat(117)&&this.regexp_eatFixedHexDigits(x,4)){var Ne=x.lastIntValue;if(Ne>=56320&&Ne<=57343)return x.lastIntValue=(ge-55296)*1024+(Ne-56320)+65536,!0}x.pos=Fe,x.lastIntValue=ge}return!0}if(z&&x.eat(123)&&this.regexp_eatHexDigits(x)&&x.eat(125)&&fs(x.lastIntValue))return!0;z&&x.raise("Invalid unicode escape"),x.pos=q}return!1};function fs(x){return x>=0&&x<=1114111}ot.regexp_eatIdentityEscape=function(x){if(x.switchU)return this.regexp_eatSyntaxCharacter(x)?!0:x.eat(47)?(x.lastIntValue=47,!0):!1;var P=x.current();return P!==99&&(!x.switchN||P!==107)?(x.lastIntValue=P,x.advance(),!0):!1},ot.regexp_eatDecimalEscape=function(x){x.lastIntValue=0;var P=x.current();if(P>=49&&P<=57){do x.lastIntValue=10*x.lastIntValue+(P-48),x.advance();while((P=x.current())>=48&&P<=57);return!0}return!1};var Yn=0,dr=1,ir=2;ot.regexp_eatCharacterClassEscape=function(x){var P=x.current();if(hn(P))return x.lastIntValue=-1,x.advance(),dr;var q=!1;if(x.switchU&&this.options.ecmaVersion>=9&&((q=P===80)||P===112)){x.lastIntValue=-1,x.advance();var z;if(x.eat(123)&&(z=this.regexp_eatUnicodePropertyValueExpression(x))&&x.eat(125))return q&&z===ir&&x.raise("Invalid property name"),z;x.raise("Invalid property name")}return Yn};function hn(x){return x===100||x===68||x===115||x===83||x===119||x===87}ot.regexp_eatUnicodePropertyValueExpression=function(x){var P=x.pos;if(this.regexp_eatUnicodePropertyName(x)&&x.eat(61)){var q=x.lastStringValue;if(this.regexp_eatUnicodePropertyValue(x)){var z=x.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(x,q,z),dr}}if(x.pos=P,this.regexp_eatLoneUnicodePropertyNameOrValue(x)){var ge=x.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(x,ge)}return Yn},ot.regexp_validateUnicodePropertyNameAndValue=function(x,P,q){j(x.unicodeProperties.nonBinary,P)||x.raise("Invalid property name"),x.unicodeProperties.nonBinary[P].test(q)||x.raise("Invalid property value")},ot.regexp_validateUnicodePropertyNameOrValue=function(x,P){if(x.unicodeProperties.binary.test(P))return dr;if(x.switchV&&x.unicodeProperties.binaryOfStrings.test(P))return ir;x.raise("Invalid property name")},ot.regexp_eatUnicodePropertyName=function(x){var P=0;for(x.lastStringValue="";Hn(P=x.current());)x.lastStringValue+=R(P),x.advance();return x.lastStringValue!==""};function Hn(x){return Qr(x)||x===95}ot.regexp_eatUnicodePropertyValue=function(x){var P=0;for(x.lastStringValue="";kn(P=x.current());)x.lastStringValue+=R(P),x.advance();return x.lastStringValue!==""};function kn(x){return Hn(x)||mn(x)}ot.regexp_eatLoneUnicodePropertyNameOrValue=function(x){return this.regexp_eatUnicodePropertyValue(x)},ot.regexp_eatCharacterClass=function(x){if(x.eat(91)){var P=x.eat(94),q=this.regexp_classContents(x);return x.eat(93)||x.raise("Unterminated character class"),P&&q===ir&&x.raise("Negated character class may contain strings"),!0}return!1},ot.regexp_classContents=function(x){return x.current()===93?dr:x.switchV?this.regexp_classSetExpression(x):(this.regexp_nonEmptyClassRanges(x),dr)},ot.regexp_nonEmptyClassRanges=function(x){for(;this.regexp_eatClassAtom(x);){var P=x.lastIntValue;if(x.eat(45)&&this.regexp_eatClassAtom(x)){var q=x.lastIntValue;x.switchU&&(P===-1||q===-1)&&x.raise("Invalid character class"),P!==-1&&q!==-1&&P>q&&x.raise("Range out of order in character class")}}},ot.regexp_eatClassAtom=function(x){var P=x.pos;if(x.eat(92)){if(this.regexp_eatClassEscape(x))return!0;if(x.switchU){var q=x.current();(q===99||Si(q))&&x.raise("Invalid class escape"),x.raise("Invalid escape")}x.pos=P}var z=x.current();return z!==93?(x.lastIntValue=z,x.advance(),!0):!1},ot.regexp_eatClassEscape=function(x){var P=x.pos;if(x.eat(98))return x.lastIntValue=8,!0;if(x.switchU&&x.eat(45))return x.lastIntValue=45,!0;if(!x.switchU&&x.eat(99)){if(this.regexp_eatClassControlLetter(x))return!0;x.pos=P}return this.regexp_eatCharacterClassEscape(x)||this.regexp_eatCharacterEscape(x)},ot.regexp_classSetExpression=function(x){var P=dr,q;if(!this.regexp_eatClassSetRange(x))if(q=this.regexp_eatClassSetOperand(x)){q===ir&&(P=ir);for(var z=x.pos;x.eatChars([38,38]);){if(x.current()!==38&&(q=this.regexp_eatClassSetOperand(x))){q!==ir&&(P=dr);continue}x.raise("Invalid character in character class")}if(z!==x.pos)return P;for(;x.eatChars([45,45]);)this.regexp_eatClassSetOperand(x)||x.raise("Invalid character in character class");if(z!==x.pos)return P}else x.raise("Invalid character in character class");for(;;)if(!this.regexp_eatClassSetRange(x)){if(q=this.regexp_eatClassSetOperand(x),!q)return P;q===ir&&(P=ir)}},ot.regexp_eatClassSetRange=function(x){var P=x.pos;if(this.regexp_eatClassSetCharacter(x)){var q=x.lastIntValue;if(x.eat(45)&&this.regexp_eatClassSetCharacter(x)){var z=x.lastIntValue;return q!==-1&&z!==-1&&q>z&&x.raise("Range out of order in character class"),!0}x.pos=P}return!1},ot.regexp_eatClassSetOperand=function(x){return this.regexp_eatClassSetCharacter(x)?dr:this.regexp_eatClassStringDisjunction(x)||this.regexp_eatNestedClass(x)},ot.regexp_eatNestedClass=function(x){var P=x.pos;if(x.eat(91)){var q=x.eat(94),z=this.regexp_classContents(x);if(x.eat(93))return q&&z===ir&&x.raise("Negated character class may contain strings"),z;x.pos=P}if(x.eat(92)){var ge=this.regexp_eatCharacterClassEscape(x);if(ge)return ge;x.pos=P}return null},ot.regexp_eatClassStringDisjunction=function(x){var P=x.pos;if(x.eatChars([92,113])){if(x.eat(123)){var q=this.regexp_classStringDisjunctionContents(x);if(x.eat(125))return q}else x.raise("Invalid escape");x.pos=P}return null},ot.regexp_classStringDisjunctionContents=function(x){for(var P=this.regexp_classString(x);x.eat(124);)this.regexp_classString(x)===ir&&(P=ir);return P},ot.regexp_classString=function(x){for(var P=0;this.regexp_eatClassSetCharacter(x);)P++;return P===1?dr:ir},ot.regexp_eatClassSetCharacter=function(x){var P=x.pos;if(x.eat(92))return this.regexp_eatCharacterEscape(x)||this.regexp_eatClassSetReservedPunctuator(x)?!0:x.eat(98)?(x.lastIntValue=8,!0):(x.pos=P,!1);var q=x.current();return q<0||q===x.lookahead()&&dn(q)||ps(q)?!1:(x.advance(),x.lastIntValue=q,!0)};function dn(x){return x===33||x>=35&&x<=38||x>=42&&x<=44||x===46||x>=58&&x<=64||x===94||x===96||x===126}function ps(x){return x===40||x===41||x===45||x===47||x>=91&&x<=93||x>=123&&x<=125}ot.regexp_eatClassSetReservedPunctuator=function(x){var P=x.current();return Ms(P)?(x.lastIntValue=P,x.advance(),!0):!1};function Ms(x){return x===33||x===35||x===37||x===38||x===44||x===45||x>=58&&x<=62||x===64||x===96||x===126}ot.regexp_eatClassControlLetter=function(x){var P=x.current();return mn(P)||P===95?(x.lastIntValue=P%32,x.advance(),!0):!1},ot.regexp_eatHexEscapeSequence=function(x){var P=x.pos;if(x.eat(120)){if(this.regexp_eatFixedHexDigits(x,2))return!0;x.switchU&&x.raise("Invalid escape"),x.pos=P}return!1},ot.regexp_eatDecimalDigits=function(x){var P=x.pos,q=0;for(x.lastIntValue=0;mn(q=x.current());)x.lastIntValue=10*x.lastIntValue+(q-48),x.advance();return x.pos!==P};function mn(x){return x>=48&&x<=57}ot.regexp_eatHexDigits=function(x){var P=x.pos,q=0;for(x.lastIntValue=0;Oi(q=x.current());)x.lastIntValue=16*x.lastIntValue+hs(q),x.advance();return x.pos!==P};function Oi(x){return x>=48&&x<=57||x>=65&&x<=70||x>=97&&x<=102}function hs(x){return x>=65&&x<=70?10+(x-65):x>=97&&x<=102?10+(x-97):x-48}ot.regexp_eatLegacyOctalEscapeSequence=function(x){if(this.regexp_eatOctalDigit(x)){var P=x.lastIntValue;if(this.regexp_eatOctalDigit(x)){var q=x.lastIntValue;P<=3&&this.regexp_eatOctalDigit(x)?x.lastIntValue=P*64+q*8+x.lastIntValue:x.lastIntValue=P*8+q}else x.lastIntValue=P;return!0}return!1},ot.regexp_eatOctalDigit=function(x){var P=x.current();return Si(P)?(x.lastIntValue=P-48,x.advance(),!0):(x.lastIntValue=0,!1)};function Si(x){return x>=48&&x<=55}ot.regexp_eatFixedHexDigits=function(x,P){var q=x.pos;x.lastIntValue=0;for(var z=0;z=this.input.length)return this.finishToken(O.eof);if(x.override)return x.override(this);this.readToken(this.fullCharCodeAtPos())},Tt.readToken=function(x){return d(x,this.options.ecmaVersion>=6)||x===92?this.readWord():this.getTokenFromCode(x)},Tt.fullCharCodeAtPos=function(){var x=this.input.charCodeAt(this.pos);if(x<=55295||x>=56320)return x;var P=this.input.charCodeAt(this.pos+1);return P<=56319||P>=57344?x:(x<<10)+P-56613888},Tt.skipBlockComment=function(){var x=this.options.onComment&&this.curPosition(),P=this.pos,q=this.input.indexOf("*/",this.pos+=2);if(q===-1&&this.raise(this.pos-2,"Unterminated comment"),this.pos=q+2,this.options.locations)for(var z=void 0,ge=P;(z=A(this.input,ge,this.pos))>-1;)++this.curLine,ge=this.lineStart=z;this.options.onComment&&this.options.onComment(!0,this.input.slice(P+2,q),P,this.pos,x,this.curPosition())},Tt.skipLineComment=function(x){for(var P=this.pos,q=this.options.onComment&&this.curPosition(),z=this.input.charCodeAt(this.pos+=x);this.pos8&&x<14||x>=5760&&D.test(String.fromCharCode(x)))++this.pos;else break e}}},Tt.finishToken=function(x,P){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var q=this.type;this.type=x,this.value=P,this.updateContext(q)},Tt.readToken_dot=function(){var x=this.input.charCodeAt(this.pos+1);if(x>=48&&x<=57)return this.readNumber(!0);var P=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&x===46&&P===46?(this.pos+=3,this.finishToken(O.ellipsis)):(++this.pos,this.finishToken(O.dot))},Tt.readToken_slash=function(){var x=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):x===61?this.finishOp(O.assign,2):this.finishOp(O.slash,1)},Tt.readToken_mult_modulo_exp=function(x){var P=this.input.charCodeAt(this.pos+1),q=1,z=x===42?O.star:O.modulo;return this.options.ecmaVersion>=7&&x===42&&P===42&&(++q,z=O.starstar,P=this.input.charCodeAt(this.pos+2)),P===61?this.finishOp(O.assign,q+1):this.finishOp(z,q)},Tt.readToken_pipe_amp=function(x){var P=this.input.charCodeAt(this.pos+1);if(P===x){if(this.options.ecmaVersion>=12){var q=this.input.charCodeAt(this.pos+2);if(q===61)return this.finishOp(O.assign,3)}return this.finishOp(x===124?O.logicalOR:O.logicalAND,2)}return P===61?this.finishOp(O.assign,2):this.finishOp(x===124?O.bitwiseOR:O.bitwiseAND,1)},Tt.readToken_caret=function(){var x=this.input.charCodeAt(this.pos+1);return x===61?this.finishOp(O.assign,2):this.finishOp(O.bitwiseXOR,1)},Tt.readToken_plus_min=function(x){var P=this.input.charCodeAt(this.pos+1);return P===x?P===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||w.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(O.incDec,2):P===61?this.finishOp(O.assign,2):this.finishOp(O.plusMin,1)},Tt.readToken_lt_gt=function(x){var P=this.input.charCodeAt(this.pos+1),q=1;return P===x?(q=x===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+q)===61?this.finishOp(O.assign,q+1):this.finishOp(O.bitShift,q)):P===33&&x===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45?(this.skipLineComment(4),this.skipSpace(),this.nextToken()):(P===61&&(q=2),this.finishOp(O.relational,q))},Tt.readToken_eq_excl=function(x){var P=this.input.charCodeAt(this.pos+1);return P===61?this.finishOp(O.equality,this.input.charCodeAt(this.pos+2)===61?3:2):x===61&&P===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(O.arrow)):this.finishOp(x===61?O.eq:O.prefix,1)},Tt.readToken_question=function(){var x=this.options.ecmaVersion;if(x>=11){var P=this.input.charCodeAt(this.pos+1);if(P===46){var q=this.input.charCodeAt(this.pos+2);if(q<48||q>57)return this.finishOp(O.questionDot,2)}if(P===63){if(x>=12){var z=this.input.charCodeAt(this.pos+2);if(z===61)return this.finishOp(O.assign,3)}return this.finishOp(O.coalesce,2)}}return this.finishOp(O.question,1)},Tt.readToken_numberSign=function(){var x=this.options.ecmaVersion,P=35;if(x>=13&&(++this.pos,P=this.fullCharCodeAtPos(),d(P,!0)||P===92))return this.finishToken(O.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+R(P)+"'")},Tt.getTokenFromCode=function(x){switch(x){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(O.parenL);case 41:return++this.pos,this.finishToken(O.parenR);case 59:return++this.pos,this.finishToken(O.semi);case 44:return++this.pos,this.finishToken(O.comma);case 91:return++this.pos,this.finishToken(O.bracketL);case 93:return++this.pos,this.finishToken(O.bracketR);case 123:return++this.pos,this.finishToken(O.braceL);case 125:return++this.pos,this.finishToken(O.braceR);case 58:return++this.pos,this.finishToken(O.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(O.backQuote);case 48:var P=this.input.charCodeAt(this.pos+1);if(P===120||P===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(P===111||P===79)return this.readRadixNumber(8);if(P===98||P===66)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(x);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(x);case 124:case 38:return this.readToken_pipe_amp(x);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(x);case 60:case 62:return this.readToken_lt_gt(x);case 61:case 33:return this.readToken_eq_excl(x);case 63:return this.readToken_question();case 126:return this.finishOp(O.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+R(x)+"'")},Tt.finishOp=function(x,P){var q=this.input.slice(this.pos,this.pos+P);return this.pos+=P,this.finishToken(x,q)},Tt.readRegexp=function(){for(var x,P,q=this.pos;;){this.pos>=this.input.length&&this.raise(q,"Unterminated regular expression");var z=this.input.charAt(this.pos);if(w.test(z)&&this.raise(q,"Unterminated regular expression"),x)x=!1;else{if(z==="[")P=!0;else if(z==="]"&&P)P=!1;else if(z==="/"&&!P)break;x=z==="\\"}++this.pos}var ge=this.input.slice(q,this.pos);++this.pos;var Fe=this.pos,Ne=this.readWord1();this.containsEsc&&this.unexpected(Fe);var He=this.regexpState||(this.regexpState=new Nt(this));He.reset(q,ge,Ne),this.validateRegExpFlags(He),this.validateRegExpPattern(He);var Je=null;try{Je=new RegExp(ge,Ne)}catch{}return this.finishToken(O.regexp,{pattern:ge,flags:Ne,value:Je})},Tt.readInt=function(x,P,q){for(var z=this.options.ecmaVersion>=12&&P===void 0,ge=q&&this.input.charCodeAt(this.pos)===48,Fe=this.pos,Ne=0,He=0,Je=0,St=P??1/0;Je=97?ar=At-97+10:At>=65?ar=At-65+10:At>=48&&At<=57?ar=At-48:ar=1/0,ar>=x)break;He=At,Ne=Ne*x+ar}return z&&He===95&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===Fe||P!=null&&this.pos-Fe!==P?null:Ne};function Ei(x,P){return P?parseInt(x,8):parseFloat(x.replace(/_/g,""))}function je(x){return typeof BigInt!="function"?null:BigInt(x.replace(/_/g,""))}Tt.readRadixNumber=function(x){var P=this.pos;this.pos+=2;var q=this.readInt(x);return q==null&&this.raise(this.start+2,"Expected number in radix "+x),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(q=je(this.input.slice(P,this.pos)),++this.pos):d(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(O.num,q)},Tt.readNumber=function(x){var P=this.pos;!x&&this.readInt(10,void 0,!0)===null&&this.raise(P,"Invalid number");var q=this.pos-P>=2&&this.input.charCodeAt(P)===48;q&&this.strict&&this.raise(P,"Invalid number");var z=this.input.charCodeAt(this.pos);if(!q&&!x&&this.options.ecmaVersion>=11&&z===110){var ge=je(this.input.slice(P,this.pos));return++this.pos,d(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(O.num,ge)}q&&/[89]/.test(this.input.slice(P,this.pos))&&(q=!1),z===46&&!q&&(++this.pos,this.readInt(10),z=this.input.charCodeAt(this.pos)),(z===69||z===101)&&!q&&(z=this.input.charCodeAt(++this.pos),(z===43||z===45)&&++this.pos,this.readInt(10)===null&&this.raise(P,"Invalid number")),d(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var Fe=Ei(this.input.slice(P,this.pos),q);return this.finishToken(O.num,Fe)},Tt.readCodePoint=function(){var x=this.input.charCodeAt(this.pos),P;if(x===123){this.options.ecmaVersion<6&&this.unexpected();var q=++this.pos;P=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,P>1114111&&this.invalidStringToken(q,"Code point out of bounds")}else P=this.readHexChar(4);return P},Tt.readString=function(x){for(var P="",q=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var z=this.input.charCodeAt(this.pos);if(z===x)break;z===92?(P+=this.input.slice(q,this.pos),P+=this.readEscapedChar(!1),q=this.pos):z===8232||z===8233?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(k(z)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return P+=this.input.slice(q,this.pos++),this.finishToken(O.string,P)};var M={};Tt.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(x){if(x===M)this.readInvalidTemplateToken();else throw x}this.inTemplateElement=!1},Tt.invalidStringToken=function(x,P){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw M;this.raise(x,P)},Tt.readTmplToken=function(){for(var x="",P=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var q=this.input.charCodeAt(this.pos);if(q===96||q===36&&this.input.charCodeAt(this.pos+1)===123)return this.pos===this.start&&(this.type===O.template||this.type===O.invalidTemplate)?q===36?(this.pos+=2,this.finishToken(O.dollarBraceL)):(++this.pos,this.finishToken(O.backQuote)):(x+=this.input.slice(P,this.pos),this.finishToken(O.template,x));if(q===92)x+=this.input.slice(P,this.pos),x+=this.readEscapedChar(!0),P=this.pos;else if(k(q)){switch(x+=this.input.slice(P,this.pos),++this.pos,q){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:x+=` -`;break;default:x+=String.fromCharCode(q);break}this.options.locations&&(++this.curLine,this.lineStart=this.pos),P=this.pos}else++this.pos}},Tt.readInvalidTemplateToken=function(){for(;this.pos=48&&P<=55){var z=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],ge=parseInt(z,8);return ge>255&&(z=z.slice(0,-1),ge=parseInt(z,8)),this.pos+=z.length-1,P=this.input.charCodeAt(this.pos),(z!=="0"||P===56||P===57)&&(this.strict||x)&&this.invalidStringToken(this.pos-1-z.length,x?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(ge)}return k(P)?"":String.fromCharCode(P)}},Tt.readHexChar=function(x){var P=this.pos,q=this.readInt(16,x);return q===null&&this.invalidStringToken(P,"Bad character escape sequence"),q},Tt.readWord1=function(){this.containsEsc=!1;for(var x="",P=!0,q=this.pos,z=this.options.ecmaVersion>=6;this.pos",nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",frac34:"\xBE",iquest:"\xBF",Agrave:"\xC0",Aacute:"\xC1",Acirc:"\xC2",Atilde:"\xC3",Auml:"\xC4",Aring:"\xC5",AElig:"\xC6",Ccedil:"\xC7",Egrave:"\xC8",Eacute:"\xC9",Ecirc:"\xCA",Euml:"\xCB",Igrave:"\xCC",Iacute:"\xCD",Icirc:"\xCE",Iuml:"\xCF",ETH:"\xD0",Ntilde:"\xD1",Ograve:"\xD2",Oacute:"\xD3",Ocirc:"\xD4",Otilde:"\xD5",Ouml:"\xD6",times:"\xD7",Oslash:"\xD8",Ugrave:"\xD9",Uacute:"\xDA",Ucirc:"\xDB",Uuml:"\xDC",Yacute:"\xDD",THORN:"\xDE",szlig:"\xDF",agrave:"\xE0",aacute:"\xE1",acirc:"\xE2",atilde:"\xE3",auml:"\xE4",aring:"\xE5",aelig:"\xE6",ccedil:"\xE7",egrave:"\xE8",eacute:"\xE9",ecirc:"\xEA",euml:"\xEB",igrave:"\xEC",iacute:"\xED",icirc:"\xEE",iuml:"\xEF",eth:"\xF0",ntilde:"\xF1",ograve:"\xF2",oacute:"\xF3",ocirc:"\xF4",otilde:"\xF5",ouml:"\xF6",divide:"\xF7",oslash:"\xF8",ugrave:"\xF9",uacute:"\xFA",ucirc:"\xFB",uuml:"\xFC",yacute:"\xFD",thorn:"\xFE",yuml:"\xFF",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",fnof:"\u0192",circ:"\u02C6",tilde:"\u02DC",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039A",Lambda:"\u039B",Mu:"\u039C",Nu:"\u039D",Xi:"\u039E",Omicron:"\u039F",Pi:"\u03A0",Rho:"\u03A1",Sigma:"\u03A3",Tau:"\u03A4",Upsilon:"\u03A5",Phi:"\u03A6",Chi:"\u03A7",Psi:"\u03A8",Omega:"\u03A9",alpha:"\u03B1",beta:"\u03B2",gamma:"\u03B3",delta:"\u03B4",epsilon:"\u03B5",zeta:"\u03B6",eta:"\u03B7",theta:"\u03B8",iota:"\u03B9",kappa:"\u03BA",lambda:"\u03BB",mu:"\u03BC",nu:"\u03BD",xi:"\u03BE",omicron:"\u03BF",pi:"\u03C0",rho:"\u03C1",sigmaf:"\u03C2",sigma:"\u03C3",tau:"\u03C4",upsilon:"\u03C5",phi:"\u03C6",chi:"\u03C7",psi:"\u03C8",omega:"\u03C9",thetasym:"\u03D1",upsih:"\u03D2",piv:"\u03D6",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200C",zwj:"\u200D",lrm:"\u200E",rlm:"\u200F",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201A",ldquo:"\u201C",rdquo:"\u201D",bdquo:"\u201E",dagger:"\u2020",Dagger:"\u2021",bull:"\u2022",hellip:"\u2026",permil:"\u2030",prime:"\u2032",Prime:"\u2033",lsaquo:"\u2039",rsaquo:"\u203A",oline:"\u203E",frasl:"\u2044",euro:"\u20AC",image:"\u2111",weierp:"\u2118",real:"\u211C",trade:"\u2122",alefsym:"\u2135",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21B5",lArr:"\u21D0",uArr:"\u21D1",rArr:"\u21D2",dArr:"\u21D3",hArr:"\u21D4",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220B",prod:"\u220F",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221A",prop:"\u221D",infin:"\u221E",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222A",int:"\u222B",there4:"\u2234",sim:"\u223C",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22A5",sdot:"\u22C5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230A",rfloor:"\u230B",lang:"\u2329",rang:"\u232A",loz:"\u25CA",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666"}),ad}var IA;function b9(){return IA||(IA=1,function(r){let e=x9(),t=/^[\da-fA-F]+$/,s=/^\d+$/,n=new WeakMap;function i(o){o=o.Parser.acorn||o;let u=n.get(o);if(!u){let c=o.tokTypes,p=o.TokContext,h=o.TokenType,f=new p("...",!0,!0),g={tc_oTag:f,tc_cTag:d,tc_expr:m},y={jsxName:new h("jsxName"),jsxText:new h("jsxText",{beforeExpr:!0}),jsxTagStart:new h("jsxTagStart",{startsExpr:!0}),jsxTagEnd:new h("jsxTagEnd")};y.jsxTagStart.updateContext=function(){this.context.push(m),this.context.push(f),this.exprAllowed=!1},y.jsxTagEnd.updateContext=function(b){let v=this.context.pop();v===f&&b===c.slash||v===d?(this.context.pop(),this.exprAllowed=this.curContext()===m):this.exprAllowed=!0},u={tokContexts:g,tokTypes:y},n.set(o,u)}return u}function a(o){if(!o)return o;if(o.type==="JSXIdentifier")return o.name;if(o.type==="JSXNamespacedName")return o.namespace.name+":"+o.name.name;if(o.type==="JSXMemberExpression")return a(o.object)+"."+a(o.property)}r.exports=function(o){return o=o||{},function(u){return l({allowNamespaces:o.allowNamespaces!==!1,allowNamespacedObjects:!!o.allowNamespacedObjects},u)}},Object.defineProperty(r.exports,"tokTypes",{get:function(){return i(eO()).tokTypes},configurable:!0,enumerable:!0});function l(o,u){let c=u.acorn||eO(),p=i(c),h=c.tokTypes,f=p.tokTypes,d=c.tokContexts,m=p.tokContexts.tc_oTag,g=p.tokContexts.tc_cTag,y=p.tokContexts.tc_expr,b=c.isNewLine,v=c.isIdentifierStart,S=c.isIdentifierChar;return class extends u{static get acornJsx(){return p}jsx_readToken(){let C="",O=this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated JSX contents");let w=this.input.charCodeAt(this.pos);switch(w){case 60:case 123:return this.pos===this.start?w===60&&this.exprAllowed?(++this.pos,this.finishToken(f.jsxTagStart)):this.getTokenFromCode(w):(C+=this.input.slice(O,this.pos),this.finishToken(f.jsxText,C));case 38:C+=this.input.slice(O,this.pos),C+=this.jsx_readEntity(),O=this.pos;break;case 62:case 125:this.raise(this.pos,"Unexpected token `"+this.input[this.pos]+"`. Did you mean `"+(w===62?">":"}")+'` or `{"'+this.input[this.pos]+'"}`?');default:b(w)?(C+=this.input.slice(O,this.pos),C+=this.jsx_readNewLine(!0),O=this.pos):++this.pos}}}jsx_readNewLine(C){let O=this.input.charCodeAt(this.pos),w;return++this.pos,O===13&&this.input.charCodeAt(this.pos)===10?(++this.pos,w=C?` +`,i+1);s=s.substring(a+1)}this.stack=s}}}uO(bc,Error);function OA(r,e){return typeof r=="string"?r.length=0;u--)if(a[u]!==l[u])return!1;for(u=a.length-1;u>=0;u--)if(o=a[u],!ba(r[o],e[o],t,s))return!1;return!0}Br.notDeepEqual=xO;function xO(r,e,t){ba(r,e,!1)&&Fr(r,e,t,"notDeepEqual",xO)}Br.notDeepStrictEqual=OO;function OO(r,e,t){ba(r,e,!0)&&Fr(r,e,t,"notDeepStrictEqual",OO)}Br.strictEqual=SO;function SO(r,e,t){r!==e&&Fr(r,e,t,"===",SO)}Br.notStrictEqual=EO;function EO(r,e,t){r===e&&Fr(r,e,t,"!==",EO)}function wA(r,e){if(!r||!e)return!1;if(Object.prototype.toString.call(e)=="[object RegExp]")return e.test(r);try{if(r instanceof e)return!0}catch{}return Error.isPrototypeOf(e)?!1:e.call({},r)===!0}function r6(r){var e;try{r()}catch(t){e=t}return e}function CB(r,e,t,s){var n;if(typeof e!="function")throw new TypeError('"block" argument must be a function');typeof t=="string"&&(s=t,t=null),n=r6(e),s=(t&&t.name?" ("+t.name+").":".")+(s?" "+s:"."),r&&!n&&Fr(n,t,"Missing expected exception"+s);var i=typeof s=="string",a=!r&&ga(n),l=!r&&n&&!t;if((a&&i&&wA(n,t)||l)&&Fr(n,t,"Got unwanted exception"+s),r&&n&&t&&!wA(n,t)||!r&&n)throw n}Br.throws=kB;function kB(r,e,t){CB(!0,r,e,t)}Br.doesNotThrow=AB;function AB(r,e,t){CB(!1,r,e,t)}Br.ifError=PB;function PB(r){if(r)throw r}var n6=Object.freeze({__proto__:null,AssertionError:bc,assert:jo,deepEqual:bO,deepStrictEqual:vO,default:Br,doesNotThrow:AB,equal:gO,fail:Fr,ifError:PB,notDeepEqual:xO,notDeepStrictEqual:OO,notEqual:yO,notStrictEqual:EO,ok:jo,strictEqual:SO,throws:kB}),Vo=cc(n6),sd={},CA;function TB(){return CA||(CA=1,function(r){(function e(t){var s,n,i,a,l,o;function u(w){var O={},C,E;for(C in w)w.hasOwnProperty(C)&&(E=w[C],typeof E=="object"&&E!==null?O[C]=u(E):O[C]=E);return O}function c(w,O){var C,E,k,A;for(E=w.length,k=0;E;)C=E>>>1,A=k+C,O(w[A])?E=C:(k=A+1,E-=C+1);return k}s={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ChainExpression:"ChainExpression",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ComprehensionBlock:"ComprehensionBlock",ComprehensionExpression:"ComprehensionExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DebuggerStatement:"DebuggerStatement",DirectiveStatement:"DirectiveStatement",DoWhileStatement:"DoWhileStatement",EmptyStatement:"EmptyStatement",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForInStatement:"ForInStatement",ForOfStatement:"ForOfStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",GeneratorExpression:"GeneratorExpression",Identifier:"Identifier",IfStatement:"IfStatement",ImportExpression:"ImportExpression",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",ModuleSpecifier:"ModuleSpecifier",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",PrivateIdentifier:"PrivateIdentifier",Program:"Program",Property:"Property",PropertyDefinition:"PropertyDefinition",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchStatement:"SwitchStatement",SwitchCase:"SwitchCase",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"},i={AssignmentExpression:["left","right"],AssignmentPattern:["left","right"],ArrayExpression:["elements"],ArrayPattern:["elements"],ArrowFunctionExpression:["params","body"],AwaitExpression:["argument"],BlockStatement:["body"],BinaryExpression:["left","right"],BreakStatement:["label"],CallExpression:["callee","arguments"],CatchClause:["param","body"],ChainExpression:["expression"],ClassBody:["body"],ClassDeclaration:["id","superClass","body"],ClassExpression:["id","superClass","body"],ComprehensionBlock:["left","right"],ComprehensionExpression:["blocks","filter","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DirectiveStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExportAllDeclaration:["source"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source"],ExportSpecifier:["exported","local"],ExpressionStatement:["expression"],ForStatement:["init","test","update","body"],ForInStatement:["left","right","body"],ForOfStatement:["left","right","body"],FunctionDeclaration:["id","params","body"],FunctionExpression:["id","params","body"],GeneratorExpression:["blocks","filter","body"],Identifier:[],IfStatement:["test","consequent","alternate"],ImportExpression:["source"],ImportDeclaration:["specifiers","source"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],Literal:[],LabeledStatement:["label","body"],LogicalExpression:["left","right"],MemberExpression:["object","property"],MetaProperty:["meta","property"],MethodDefinition:["key","value"],ModuleSpecifier:[],NewExpression:["callee","arguments"],ObjectExpression:["properties"],ObjectPattern:["properties"],PrivateIdentifier:[],Program:["body"],Property:["key","value"],PropertyDefinition:["key","value"],RestElement:["argument"],ReturnStatement:["argument"],SequenceExpression:["expressions"],SpreadElement:["argument"],Super:[],SwitchStatement:["discriminant","cases"],SwitchCase:["test","consequent"],TaggedTemplateExpression:["tag","quasi"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],YieldExpression:["argument"]},a={},l={},o={},n={Break:a,Skip:l,Remove:o};function p(w,O){this.parent=w,this.key=O}p.prototype.replace=function(O){this.parent[this.key]=O},p.prototype.remove=function(){return Array.isArray(this.parent)?(this.parent.splice(this.key,1),!0):(this.replace(null),!1)};function h(w,O,C,E){this.node=w,this.path=O,this.wrap=C,this.ref=E}function f(){}f.prototype.path=function(){var O,C,E,k,A,D;function _(B,T){if(Array.isArray(T))for(E=0,k=T.length;E=0;--C)if(w[C].node===O)return!0;return!1}f.prototype.traverse=function(O,C){var E,k,A,D,_,B,T,R,j,Q,I,N;for(this.__initialize(O,C),N={},E=this.__worklist,k=this.__leavelist,E.push(new h(O,null,null,null)),k.push(new h(null,null,null,null));E.length;){if(A=E.pop(),A===N){if(A=k.pop(),B=this.__execute(C.leave,A),this.__state===a||B===a)return;continue}if(A.node){if(B=this.__execute(C.enter,A),this.__state===a||B===a)return;if(E.push(N),k.push(A),this.__state===l||B===l)continue;if(D=A.node,_=D.type||A.wrap,Q=this.__keys[_],!Q)if(this.__fallback)Q=this.__fallback(D);else throw new Error("Unknown node type "+_+".");for(R=Q.length;(R-=1)>=0;)if(T=Q[R],I=D[T],!!I){if(Array.isArray(I)){for(j=I.length;(j-=1)>=0;)if(I[j]&&!g(k,I[j])){if(m(_,Q[R]))A=new h(I[j],[T,j],"Property",null);else if(d(I[j]))A=new h(I[j],[T,j],null,null);else continue;E.push(A)}}else if(d(I)){if(g(k,I))continue;E.push(new h(I,T,null,null))}}}}},f.prototype.replace=function(O,C){var E,k,A,D,_,B,T,R,j,Q,I,N,F;function U(V){var ae,se,xe,H;if(V.ref.remove()){for(se=V.ref.key,H=V.ref.parent,ae=E.length;ae--;)if(xe=E[ae],xe.ref&&xe.ref.parent===H){if(xe.ref.key=0;)if(F=j[T],Q=A[F],!!Q)if(Array.isArray(Q)){for(R=Q.length;(R-=1)>=0;)if(Q[R]){if(m(D,j[T]))B=new h(Q[R],[F,R],"Property",new p(Q,R));else if(d(Q[R]))B=new h(Q[R],[F,R],null,new p(Q,R));else continue;E.push(B)}}else d(Q)&&E.push(new h(Q,F,null,new p(A,F)))}}return N.root};function y(w,O){var C=new f;return C.traverse(w,O)}function v(w,O){var C=new f;return C.replace(w,O)}function x(w,O){var C;return C=c(O,function(k){return k.range[0]>w.range[0]}),w.extendedRange=[w.range[0],w.range[1]],C!==O.length&&(w.extendedRange[1]=O[C].range[0]),C-=1,C>=0&&(w.extendedRange[0]=O[C].range[1]),w}function S(w,O,C){var E=[],k,A,D,_;if(!w.range)throw new Error("attachComments needs range information");if(!C.length){if(O.length){for(D=0,A=O.length;DB.range[0]));)T.extendedRange[1]===B.range[0]?(B.leadingComments||(B.leadingComments=[]),B.leadingComments.push(T),E.splice(_,1)):_+=1;if(_===E.length)return n.Break;if(E[_].extendedRange[0]>B.range[1])return n.Skip}}),_=0,y(w,{leave:function(B){for(var T;_B.range[1])return n.Skip}}),w}return t.Syntax=s,t.traverse=y,t.replace=v,t.attachComments=S,t.VisitorKeys=i,t.VisitorOption=n,t.Controller=f,t.cloneEnvironment=function(){return e({})},t})(r)}(sd)),sd}var Bo={},s6="esrecurse",i6="ECMAScript AST recursive visitor",a6="https://github.com/estools/esrecurse",o6="esrecurse.js",l6="4.3.0",u6={node:">=4.0"},c6=[{name:"Yusuke Suzuki",email:"utatane.tea@gmail.com",web:"https://github.com/Constellation"}],f6={type:"git",url:"https://github.com/estools/esrecurse.git"},p6={estraverse:"^5.2.0"},h6={"babel-cli":"^6.24.1","babel-eslint":"^7.2.3","babel-preset-es2015":"^6.24.1","babel-register":"^6.24.1",chai:"^4.0.2",esprima:"^4.0.0",gulp:"^3.9.0","gulp-bump":"^2.7.0","gulp-eslint":"^4.0.0","gulp-filter":"^5.0.0","gulp-git":"^2.4.1","gulp-mocha":"^4.3.1","gulp-tag-version":"^1.2.1",jsdoc:"^3.3.0-alpha10",minimist:"^1.1.0"},d6="BSD-2-Clause",m6={test:"gulp travis","unit-test":"gulp test",lint:"gulp lint"},g6={presets:["es2015"]},y6={name:s6,description:i6,homepage:a6,main:o6,version:l6,engines:u6,maintainers:c6,repository:f6,dependencies:p6,devDependencies:h6,license:d6,scripts:m6,babel:g6},kA;function b6(){return kA||(kA=1,function(){var r=TB();function e(n){return n==null?!1:typeof n=="object"&&typeof n.type=="string"}function t(n,i){return(n===r.Syntax.ObjectExpression||n===r.Syntax.ObjectPattern)&&i==="properties"}function s(n,i){i=i||{},this.__visitor=n||this,this.__childVisitorKeys=i.childVisitorKeys?Object.assign({},r.VisitorKeys,i.childVisitorKeys):r.VisitorKeys,i.fallback==="iteration"?this.__fallback=Object.keys:typeof i.fallback=="function"&&(this.__fallback=i.fallback)}s.prototype.visitChildren=function(n){var i,a,l,o,u,c,p;if(n!=null){if(i=n.type||r.Syntax.Property,a=this.__childVisitorKeys[i],!a)if(this.__fallback)a=this.__fallback(n);else throw new Error("Unknown node type "+i+".");for(l=0,o=a.length;l0&&le.every(y)}__staticCloseRef($){this.__resolve($)||this.__delegateToUpperScope($)}__dynamicCloseRef($){let pe=this;do pe.through.push($),pe=pe.upper;while(pe)}__globalCloseRef($){this.__shouldStaticallyCloseForGlobal($)?this.__staticCloseRef($):this.__dynamicCloseRef($)}__close($){let pe;this.__shouldStaticallyClose($)?pe=this.__staticCloseRef:this.type!=="global"?pe=this.__dynamicCloseRef:pe=this.__globalCloseRef;for(let K=0,le=this.__left.length;Kle.name.range[0]>=K))}}class D extends v{constructor($,pe,K){super($,"for",pe,K,!1)}}class _ extends v{constructor($,pe,K){super($,"class",pe,K,!1)}}class B extends v{constructor($,pe,K){super($,"class-field-initializer",pe,K,!0)}}class T extends v{constructor($,pe,K){super($,"class-static-block",pe,K,!0)}}class R{constructor($){this.scopes=[],this.globalScope=null,this.__nodeToScope=new WeakMap,this.__currentScope=null,this.__options=$,this.__declaredVariables=new WeakMap}__isOptimistic(){return this.__options.optimistic}__ignoreEval(){return this.__options.ignoreEval}isGlobalReturn(){return this.__options.nodejsScope||this.__options.sourceType==="commonjs"}isModule(){return this.__options.sourceType==="module"}isImpliedStrict(){return this.__options.impliedStrict}isStrictModeSupported(){return this.__options.ecmaVersion>=5}__get($){return this.__nodeToScope.get($)}getDeclaredVariables($){return this.__declaredVariables.get($)||[]}acquire($,pe){function K(be){return!(be.type==="function"&&be.functionExpressionScope)}let le=this.__get($);if(!le||le.length===0)return null;if(le.length===1)return le[0];if(pe)for(let be=le.length-1;be>=0;--be){let Le=le[be];if(K(Le))return Le}else for(let be=0,Le=le.length;be=6}}let{Syntax:j}=i.default;function Q(he){return he[he.length-1]||null}class I extends a.default.Visitor{static isPattern($){let pe=$.type;return pe===j.Identifier||pe===j.ObjectPattern||pe===j.ArrayPattern||pe===j.SpreadElement||pe===j.RestElement||pe===j.AssignmentPattern}constructor($,pe,K){super(null,$),this.rootPattern=pe,this.callback=K,this.assignments=[],this.rightHandNodes=[],this.restElements=[]}Identifier($){let pe=Q(this.restElements);this.callback($,{topLevel:$===this.rootPattern,rest:pe!=null&&pe.argument===$,assignments:this.assignments})}Property($){$.computed&&this.rightHandNodes.push($.key),this.visit($.value)}ArrayPattern($){for(let pe=0,K=$.elements.length;pe{this.rightHandNodes.push(pe)}),this.visit($.callee)}}let{Syntax:N}=i.default;function F(he,$,pe,K){let le=new I(he,$,K);le.visit($),pe!=null&&le.rightHandNodes.forEach(pe.visit,pe)}class U extends a.default.Visitor{constructor($,pe){super(null,pe.options),this.declaration=$,this.referencer=pe}visitImport($,pe){this.referencer.visitPattern($,K=>{this.referencer.currentScope().__define(K,new h(p.ImportBinding,K,pe,this.declaration,null,null))})}ImportNamespaceSpecifier($){let pe=$.local||$.id;pe&&this.visitImport(pe,$)}ImportDefaultSpecifier($){let pe=$.local||$.id;this.visitImport(pe,$)}ImportSpecifier($){let pe=$.local||$.id;$.name?this.visitImport($.name,$):this.visitImport(pe,$)}}class V extends a.default.Visitor{constructor($,pe){super(null,$),this.options=$,this.scopeManager=pe,this.parent=null,this.isInnerMethodDefinition=!1}currentScope(){return this.scopeManager.__currentScope}close($){for(;this.currentScope()&&$===this.currentScope().block;)this.scopeManager.__currentScope=this.currentScope().__close(this.scopeManager)}pushInnerMethodDefinition($){let pe=this.isInnerMethodDefinition;return this.isInnerMethodDefinition=$,pe}popInnerMethodDefinition($){this.isInnerMethodDefinition=$}referencingDefaultValue($,pe,K,le){let be=this.currentScope();pe.forEach(Le=>{be.__referencing($,c.WRITE,Le.right,K,$!==Le.left,le)})}visitPattern($,pe,K){let le=pe,be=K;typeof pe=="function"&&(be=pe,le={processRightHandNodes:!1}),F(this.options,$,le.processRightHandNodes?this:null,be)}visitFunction($){let pe,K;$.type===N.FunctionDeclaration&&this.currentScope().__define($.id,new h(p.FunctionName,$.id,$,null,null,null)),$.type===N.FunctionExpression&&$.id&&this.scopeManager.__nestFunctionExpressionNameScope($),this.scopeManager.__nestFunctionScope($,this.isInnerMethodDefinition);let le=this;function be(Le,qe){le.currentScope().__define(Le,new f(Le,$,pe,qe.rest)),le.referencingDefaultValue(Le,qe.assignments,null,!0)}for(pe=0,K=$.params.length;pe{this.currentScope().__define(Le,new f(Le,$,$.params.length,!0))}),$.body&&($.body.type===N.BlockStatement?this.visitChildren($.body):this.visit($.body)),this.close($)}visitClass($){$.type===N.ClassDeclaration&&this.currentScope().__define($.id,new h(p.ClassName,$.id,$,null,null,null)),this.scopeManager.__nestClassScope($),$.id&&this.currentScope().__define($.id,new h(p.ClassName,$.id,$)),this.visit($.superClass),this.visit($.body),this.close($)}visitProperty($){let pe;$.computed&&this.visit($.key);let K=$.type===N.MethodDefinition;K&&(pe=this.pushInnerMethodDefinition(!0)),this.visit($.value),K&&this.popInnerMethodDefinition(pe)}visitForIn($){$.left.type===N.VariableDeclaration&&$.left.kind!=="var"&&this.scopeManager.__nestForScope($),$.left.type===N.VariableDeclaration?(this.visit($.left),this.visitPattern($.left.declarations[0].id,pe=>{this.currentScope().__referencing(pe,c.WRITE,$.right,null,!0,!0)})):this.visitPattern($.left,{processRightHandNodes:!0},(pe,K)=>{let le=null;this.currentScope().isStrict||(le={pattern:pe,node:$}),this.referencingDefaultValue(pe,K.assignments,le,!1),this.currentScope().__referencing(pe,c.WRITE,$.right,le,!0,!1)}),this.visit($.right),this.visit($.body),this.close($)}visitVariableDeclaration($,pe,K,le){let be=K.declarations[le],Le=be.init;this.visitPattern(be.id,{processRightHandNodes:!0},(qe,rt)=>{$.__define(qe,new h(pe,qe,be,K,le,K.kind)),this.referencingDefaultValue(qe,rt.assignments,null,!0),Le&&this.currentScope().__referencing(qe,c.WRITE,Le,null,!rt.topLevel,!0)})}AssignmentExpression($){I.isPattern($.left)?$.operator==="="?this.visitPattern($.left,{processRightHandNodes:!0},(pe,K)=>{let le=null;this.currentScope().isStrict||(le={pattern:pe,node:$}),this.referencingDefaultValue(pe,K.assignments,le,!1),this.currentScope().__referencing(pe,c.WRITE,$.right,le,!K.topLevel,!1)}):this.currentScope().__referencing($.left,c.RW,$.right):this.visit($.left),this.visit($.right)}CatchClause($){this.scopeManager.__nestCatchScope($),this.visitPattern($.param,{processRightHandNodes:!0},(pe,K)=>{this.currentScope().__define(pe,new h(p.CatchClause,$.param,$,null,null,null)),this.referencingDefaultValue(pe,K.assignments,null,!0)}),this.visit($.body),this.close($)}Program($){this.scopeManager.__nestGlobalScope($),this.scopeManager.isGlobalReturn()&&(this.currentScope().isStrict=!1,this.scopeManager.__nestFunctionScope($,!1)),this.scopeManager.__isES6()&&this.scopeManager.isModule()&&this.scopeManager.__nestModuleScope($),this.scopeManager.isStrictModeSupported()&&this.scopeManager.isImpliedStrict()&&(this.currentScope().isStrict=!0),this.visitChildren($),this.close($)}Identifier($){this.currentScope().__referencing($)}PrivateIdentifier(){}UpdateExpression($){I.isPattern($.argument)?this.currentScope().__referencing($.argument,c.RW,null):this.visitChildren($)}MemberExpression($){this.visit($.object),$.computed&&this.visit($.property)}Property($){this.visitProperty($)}PropertyDefinition($){let{computed:pe,key:K,value:le}=$;pe&&this.visit(K),le&&(this.scopeManager.__nestClassFieldInitializerScope(le),this.visit(le),this.close(le))}StaticBlock($){this.scopeManager.__nestClassStaticBlockScope($),this.visitChildren($),this.close($)}MethodDefinition($){this.visitProperty($)}BreakStatement(){}ContinueStatement(){}LabeledStatement($){this.visit($.body)}ForStatement($){$.init&&$.init.type===N.VariableDeclaration&&$.init.kind!=="var"&&this.scopeManager.__nestForScope($),this.visitChildren($),this.close($)}ClassExpression($){this.visitClass($)}ClassDeclaration($){this.visitClass($)}CallExpression($){!this.scopeManager.__ignoreEval()&&$.callee.type===N.Identifier&&$.callee.name==="eval"&&this.currentScope().variableScope.__detectEval(),this.visitChildren($)}BlockStatement($){this.scopeManager.__isES6()&&this.scopeManager.__nestBlockScope($),this.visitChildren($),this.close($)}ThisExpression(){this.currentScope().variableScope.__detectThis()}WithStatement($){this.visit($.object),this.scopeManager.__nestWithScope($),this.visit($.body),this.close($)}VariableDeclaration($){let pe=$.kind==="var"?this.currentScope().variableScope:this.currentScope();for(let K=0,le=$.declarations.length;Kb)return!1;if(q+=P[Z+1],q>=b)return!0}return!1}function d(b,P){return b<65?b===36:b<91?!0:b<97?b===95:b<123?!0:b<=65535?b>=170&&p.test(String.fromCharCode(b)):P===!1?!1:f(b,n)}function m(b,P){return b<48?b===36:b<58?!0:b<65?!1:b<91?!0:b<97?b===95:b<123?!0:b<=65535?b>=170&&h.test(String.fromCharCode(b)):P===!1?!1:f(b,n)||f(b,s)}var g=function(P,q){q===void 0&&(q={}),this.label=P,this.keyword=q.keyword,this.beforeExpr=!!q.beforeExpr,this.startsExpr=!!q.startsExpr,this.isLoop=!!q.isLoop,this.isAssign=!!q.isAssign,this.prefix=!!q.prefix,this.postfix=!!q.postfix,this.binop=q.binop||null,this.updateContext=null};function y(b,P){return new g(b,{beforeExpr:!0,binop:P})}var v={beforeExpr:!0},x={startsExpr:!0},S={};function w(b,P){return P===void 0&&(P={}),P.keyword=b,S[b]=new g(b,P)}var O={num:new g("num",x),regexp:new g("regexp",x),string:new g("string",x),name:new g("name",x),privateId:new g("privateId",x),eof:new g("eof"),bracketL:new g("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new g("]"),braceL:new g("{",{beforeExpr:!0,startsExpr:!0}),braceR:new g("}"),parenL:new g("(",{beforeExpr:!0,startsExpr:!0}),parenR:new g(")"),comma:new g(",",v),semi:new g(";",v),colon:new g(":",v),dot:new g("."),question:new g("?",v),questionDot:new g("?."),arrow:new g("=>",v),template:new g("template"),invalidTemplate:new g("invalidTemplate"),ellipsis:new g("...",v),backQuote:new g("`",x),dollarBraceL:new g("${",{beforeExpr:!0,startsExpr:!0}),eq:new g("=",{beforeExpr:!0,isAssign:!0}),assign:new g("_=",{beforeExpr:!0,isAssign:!0}),incDec:new g("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new g("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:y("||",1),logicalAND:y("&&",2),bitwiseOR:y("|",3),bitwiseXOR:y("^",4),bitwiseAND:y("&",5),equality:y("==/!=/===/!==",6),relational:y("/<=/>=",7),bitShift:y("<>/>>>",8),plusMin:new g("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:y("%",10),star:y("*",10),slash:y("/",10),starstar:new g("**",{beforeExpr:!0}),coalesce:y("??",1),_break:w("break"),_case:w("case",v),_catch:w("catch"),_continue:w("continue"),_debugger:w("debugger"),_default:w("default",v),_do:w("do",{isLoop:!0,beforeExpr:!0}),_else:w("else",v),_finally:w("finally"),_for:w("for",{isLoop:!0}),_function:w("function",x),_if:w("if"),_return:w("return",v),_switch:w("switch"),_throw:w("throw",v),_try:w("try"),_var:w("var"),_const:w("const"),_while:w("while",{isLoop:!0}),_with:w("with"),_new:w("new",{beforeExpr:!0,startsExpr:!0}),_this:w("this",x),_super:w("super",x),_class:w("class",x),_extends:w("extends",v),_export:w("export"),_import:w("import",x),_null:w("null",x),_true:w("true",x),_false:w("false",x),_in:w("in",{beforeExpr:!0,binop:7}),_instanceof:w("instanceof",{beforeExpr:!0,binop:7}),_typeof:w("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:w("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:w("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},C=/\r\n?|\n|\u2028|\u2029/,E=new RegExp(C.source,"g");function k(b){return b===10||b===13||b===8232||b===8233}function A(b,P,q){q===void 0&&(q=b.length);for(var Z=P;Z>10)+55296,(b&1023)+56320))}var U=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,V=function(P,q){this.line=P,this.column=q};V.prototype.offset=function(P){return new V(this.line,this.column+P)};var ae=function(P,q,Z){this.start=q,this.end=Z,P.sourceFile!==null&&(this.source=P.sourceFile)};function se(b,P){for(var q=1,Z=0;;){var ge=A(b,Z,P);if(ge<0)return new V(q,P-Z);++q,Z=ge}}var xe={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},H=!1;function he(b){var P={};for(var q in xe)P[q]=b&&j(b,q)?b[q]:xe[q];if(P.ecmaVersion==="latest"?P.ecmaVersion=1e8:P.ecmaVersion==null?(!H&&typeof console=="object"&&console.warn&&(H=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required. +Defaulting to 2020, but this will stop working in the future.`)),P.ecmaVersion=11):P.ecmaVersion>=2015&&(P.ecmaVersion-=2009),P.allowReserved==null&&(P.allowReserved=P.ecmaVersion<5),(!b||b.allowHashBang==null)&&(P.allowHashBang=P.ecmaVersion>=14),Q(P.onToken)){var Z=P.onToken;P.onToken=function(ge){return Z.push(ge)}}return Q(P.onComment)&&(P.onComment=$(P,P.onComment)),P}function $(b,P){return function(q,Z,ge,Re,Ne,He){var Je={type:q?"Block":"Line",value:Z,start:ge,end:Re};b.locations&&(Je.loc=new ae(this,Ne,He)),b.ranges&&(Je.range=[ge,Re]),P.push(Je)}}var pe=1,K=2,le=4,be=8,Le=16,qe=32,rt=64,ht=128,pt=256,Et=pe|K|pt;function G(b,P){return K|(b?le:0)|(P?be:0)}var Ce=0,Ve=1,et=2,it=3,st=4,wt=5,vt=function(P,q,Z){this.options=P=he(P),this.sourceFile=P.sourceFile,this.keywords=N(u[P.ecmaVersion>=6?6:P.sourceType==="module"?"5module":5]);var ge="";P.allowReserved!==!0&&(ge=l[P.ecmaVersion>=6?6:P.ecmaVersion===5?5:3],P.sourceType==="module"&&(ge+=" await")),this.reservedWords=N(ge);var Re=(ge?ge+" ":"")+l.strict;this.reservedWordsStrict=N(Re),this.reservedWordsStrictBind=N(Re+" "+l.strictBind),this.input=String(q),this.containsEsc=!1,Z?(this.pos=Z,this.lineStart=this.input.lastIndexOf(` +`,Z-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(C).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=O.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule=P.sourceType==="module",this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),this.pos===0&&P.allowHashBang&&this.input.slice(0,2)==="#!"&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(pe),this.regexpState=null,this.privateNameStack=[]},Dt={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},inClassStaticBlock:{configurable:!0}};vt.prototype.parse=function(){var P=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(P)},Dt.inFunction.get=function(){return(this.currentVarScope().flags&K)>0},Dt.inGenerator.get=function(){return(this.currentVarScope().flags&be)>0&&!this.currentVarScope().inClassFieldInit},Dt.inAsync.get=function(){return(this.currentVarScope().flags&le)>0&&!this.currentVarScope().inClassFieldInit},Dt.canAwait.get=function(){for(var b=this.scopeStack.length-1;b>=0;b--){var P=this.scopeStack[b];if(P.inClassFieldInit||P.flags&pt)return!1;if(P.flags&K)return(P.flags&le)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},Dt.allowSuper.get=function(){var b=this.currentThisScope(),P=b.flags,q=b.inClassFieldInit;return(P&rt)>0||q||this.options.allowSuperOutsideMethod},Dt.allowDirectSuper.get=function(){return(this.currentThisScope().flags&ht)>0},Dt.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},Dt.allowNewDotTarget.get=function(){var b=this.currentThisScope(),P=b.flags,q=b.inClassFieldInit;return(P&(K|pt))>0||q},Dt.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&pt)>0},vt.extend=function(){for(var P=[],q=arguments.length;q--;)P[q]=arguments[q];for(var Z=this,ge=0;ge=,?^&]/.test(ge)||ge==="!"&&this.input.charAt(Z+1)==="=")}b+=P[0].length,_.lastIndex=b,b+=_.exec(this.input)[0].length,this.input[b]===";"&&b++}},_t.eat=function(b){return this.type===b?(this.next(),!0):!1},_t.isContextual=function(b){return this.type===O.name&&this.value===b&&!this.containsEsc},_t.eatContextual=function(b){return this.isContextual(b)?(this.next(),!0):!1},_t.expectContextual=function(b){this.eatContextual(b)||this.unexpected()},_t.canInsertSemicolon=function(){return this.type===O.eof||this.type===O.braceR||C.test(this.input.slice(this.lastTokEnd,this.start))},_t.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},_t.semicolon=function(){!this.eat(O.semi)&&!this.insertSemicolon()&&this.unexpected()},_t.afterTrailingComma=function(b,P){if(this.type===b)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),P||this.next(),!0},_t.expect=function(b){this.eat(b)||this.unexpected()},_t.unexpected=function(b){this.raise(b??this.start,"Unexpected token")};var xt=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};_t.checkPatternErrors=function(b,P){if(b){b.trailingComma>-1&&this.raiseRecoverable(b.trailingComma,"Comma is not permitted after the rest element");var q=P?b.parenthesizedAssign:b.parenthesizedBind;q>-1&&this.raiseRecoverable(q,P?"Assigning to rvalue":"Parenthesized pattern")}},_t.checkExpressionErrors=function(b,P){if(!b)return!1;var q=b.shorthandAssign,Z=b.doubleProto;if(!P)return q>=0||Z>=0;q>=0&&this.raise(q,"Shorthand property assignments are valid only in destructuring patterns"),Z>=0&&this.raiseRecoverable(Z,"Redefinition of __proto__ property")},_t.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos55295&&Z<56320)return!0;if(d(Z,!0)){for(var ge=q+1;m(Z=this.input.charCodeAt(ge),!0);)++ge;if(Z===92||Z>55295&&Z<56320)return!0;var Re=this.input.slice(q,ge);if(!c.test(Re))return!0}return!1},Ye.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;_.lastIndex=this.pos;var b=_.exec(this.input),P=this.pos+b[0].length,q;return!C.test(this.input.slice(this.pos,P))&&this.input.slice(P,P+8)==="function"&&(P+8===this.input.length||!(m(q=this.input.charCodeAt(P+8))||q>55295&&q<56320))},Ye.parseStatement=function(b,P,q){var Z=this.type,ge=this.startNode(),Re;switch(this.isLet(b)&&(Z=O._var,Re="let"),Z){case O._break:case O._continue:return this.parseBreakContinueStatement(ge,Z.keyword);case O._debugger:return this.parseDebuggerStatement(ge);case O._do:return this.parseDoStatement(ge);case O._for:return this.parseForStatement(ge);case O._function:return b&&(this.strict||b!=="if"&&b!=="label")&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(ge,!1,!b);case O._class:return b&&this.unexpected(),this.parseClass(ge,!0);case O._if:return this.parseIfStatement(ge);case O._return:return this.parseReturnStatement(ge);case O._switch:return this.parseSwitchStatement(ge);case O._throw:return this.parseThrowStatement(ge);case O._try:return this.parseTryStatement(ge);case O._const:case O._var:return Re=Re||this.value,b&&Re!=="var"&&this.unexpected(),this.parseVarStatement(ge,Re);case O._while:return this.parseWhileStatement(ge);case O._with:return this.parseWithStatement(ge);case O.braceL:return this.parseBlock(!0,ge);case O.semi:return this.parseEmptyStatement(ge);case O._export:case O._import:if(this.options.ecmaVersion>10&&Z===O._import){_.lastIndex=this.pos;var Ne=_.exec(this.input),He=this.pos+Ne[0].length,Je=this.input.charCodeAt(He);if(Je===40||Je===46)return this.parseExpressionStatement(ge,this.parseExpression())}return this.options.allowImportExportEverywhere||(P||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),Z===O._import?this.parseImport(ge):this.parseExport(ge,q);default:if(this.isAsyncFunction())return b&&this.unexpected(),this.next(),this.parseFunctionStatement(ge,!0,!b);var St=this.value,At=this.parseExpression();return Z===O.name&&At.type==="Identifier"&&this.eat(O.colon)?this.parseLabeledStatement(ge,St,At,b):this.parseExpressionStatement(ge,At)}},Ye.parseBreakContinueStatement=function(b,P){var q=P==="break";this.next(),this.eat(O.semi)||this.insertSemicolon()?b.label=null:this.type!==O.name?this.unexpected():(b.label=this.parseIdent(),this.semicolon());for(var Z=0;Z=6?this.eat(O.semi):this.semicolon(),this.finishNode(b,"DoWhileStatement")},Ye.parseForStatement=function(b){this.next();var P=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(Kt),this.enterScope(0),this.expect(O.parenL),this.type===O.semi)return P>-1&&this.unexpected(P),this.parseFor(b,null);var q=this.isLet();if(this.type===O._var||this.type===O._const||q){var Z=this.startNode(),ge=q?"let":this.value;return this.next(),this.parseVar(Z,!0,ge),this.finishNode(Z,"VariableDeclaration"),(this.type===O._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&Z.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===O._in?P>-1&&this.unexpected(P):b.await=P>-1),this.parseForIn(b,Z)):(P>-1&&this.unexpected(P),this.parseFor(b,Z))}var Re=this.isContextual("let"),Ne=!1,He=new xt,Je=this.parseExpression(P>-1?"await":!0,He);return this.type===O._in||(Ne=this.options.ecmaVersion>=6&&this.isContextual("of"))?(this.options.ecmaVersion>=9&&(this.type===O._in?P>-1&&this.unexpected(P):b.await=P>-1),Re&&Ne&&this.raise(Je.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(Je,!1,He),this.checkLValPattern(Je),this.parseForIn(b,Je)):(this.checkExpressionErrors(He,!0),P>-1&&this.unexpected(P),this.parseFor(b,Je))},Ye.parseFunctionStatement=function(b,P,q){return this.next(),this.parseFunction(b,ne|(q?0:ee),!1,P)},Ye.parseIfStatement=function(b){return this.next(),b.test=this.parseParenExpression(),b.consequent=this.parseStatement("if"),b.alternate=this.eat(O._else)?this.parseStatement("if"):null,this.finishNode(b,"IfStatement")},Ye.parseReturnStatement=function(b){return!this.inFunction&&!this.options.allowReturnOutsideFunction&&this.raise(this.start,"'return' outside of function"),this.next(),this.eat(O.semi)||this.insertSemicolon()?b.argument=null:(b.argument=this.parseExpression(),this.semicolon()),this.finishNode(b,"ReturnStatement")},Ye.parseSwitchStatement=function(b){this.next(),b.discriminant=this.parseParenExpression(),b.cases=[],this.expect(O.braceL),this.labels.push(De),this.enterScope(0);for(var P,q=!1;this.type!==O.braceR;)if(this.type===O._case||this.type===O._default){var Z=this.type===O._case;P&&this.finishNode(P,"SwitchCase"),b.cases.push(P=this.startNode()),P.consequent=[],this.next(),Z?P.test=this.parseExpression():(q&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),q=!0,P.test=null),this.expect(O.colon)}else P||this.unexpected(),P.consequent.push(this.parseStatement(null));return this.exitScope(),P&&this.finishNode(P,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(b,"SwitchStatement")},Ye.parseThrowStatement=function(b){return this.next(),C.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),b.argument=this.parseExpression(),this.semicolon(),this.finishNode(b,"ThrowStatement")};var X=[];Ye.parseCatchClauseParam=function(){var b=this.parseBindingAtom(),P=b.type==="Identifier";return this.enterScope(P?qe:0),this.checkLValPattern(b,P?st:et),this.expect(O.parenR),b},Ye.parseTryStatement=function(b){if(this.next(),b.block=this.parseBlock(),b.handler=null,this.type===O._catch){var P=this.startNode();this.next(),this.eat(O.parenL)?P.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),P.param=null,this.enterScope(0)),P.body=this.parseBlock(!1),this.exitScope(),b.handler=this.finishNode(P,"CatchClause")}return b.finalizer=this.eat(O._finally)?this.parseBlock():null,!b.handler&&!b.finalizer&&this.raise(b.start,"Missing catch or finally clause"),this.finishNode(b,"TryStatement")},Ye.parseVarStatement=function(b,P,q){return this.next(),this.parseVar(b,!1,P,q),this.semicolon(),this.finishNode(b,"VariableDeclaration")},Ye.parseWhileStatement=function(b){return this.next(),b.test=this.parseParenExpression(),this.labels.push(Kt),b.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(b,"WhileStatement")},Ye.parseWithStatement=function(b){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),b.object=this.parseParenExpression(),b.body=this.parseStatement("with"),this.finishNode(b,"WithStatement")},Ye.parseEmptyStatement=function(b){return this.next(),this.finishNode(b,"EmptyStatement")},Ye.parseLabeledStatement=function(b,P,q,Z){for(var ge=0,Re=this.labels;ge=0;Je--){var St=this.labels[Je];if(St.statementStart===b.start)St.statementStart=this.start,St.kind=He;else break}return this.labels.push({name:P,kind:He,statementStart:this.start}),b.body=this.parseStatement(Z?Z.indexOf("label")===-1?Z+"label":Z:"label"),this.labels.pop(),b.label=q,this.finishNode(b,"LabeledStatement")},Ye.parseExpressionStatement=function(b,P){return b.expression=P,this.semicolon(),this.finishNode(b,"ExpressionStatement")},Ye.parseBlock=function(b,P,q){for(b===void 0&&(b=!0),P===void 0&&(P=this.startNode()),P.body=[],this.expect(O.braceL),b&&this.enterScope(0);this.type!==O.braceR;){var Z=this.parseStatement(null);P.body.push(Z)}return q&&(this.strict=!1),this.next(),b&&this.exitScope(),this.finishNode(P,"BlockStatement")},Ye.parseFor=function(b,P){return b.init=P,this.expect(O.semi),b.test=this.type===O.semi?null:this.parseExpression(),this.expect(O.semi),b.update=this.type===O.parenR?null:this.parseExpression(),this.expect(O.parenR),b.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(b,"ForStatement")},Ye.parseForIn=function(b,P){var q=this.type===O._in;return this.next(),P.type==="VariableDeclaration"&&P.declarations[0].init!=null&&(!q||this.options.ecmaVersion<8||this.strict||P.kind!=="var"||P.declarations[0].id.type!=="Identifier")&&this.raise(P.start,(q?"for-in":"for-of")+" loop variable declaration may not have an initializer"),b.left=P,b.right=q?this.parseExpression():this.parseMaybeAssign(),this.expect(O.parenR),b.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(b,q?"ForInStatement":"ForOfStatement")},Ye.parseVar=function(b,P,q,Z){for(b.declarations=[],b.kind=q;;){var ge=this.startNode();if(this.parseVarId(ge,q),this.eat(O.eq)?ge.init=this.parseMaybeAssign(P):!Z&&q==="const"&&!(this.type===O._in||this.options.ecmaVersion>=6&&this.isContextual("of"))?this.unexpected():!Z&&ge.id.type!=="Identifier"&&!(P&&(this.type===O._in||this.isContextual("of")))?this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):ge.init=null,b.declarations.push(this.finishNode(ge,"VariableDeclarator")),!this.eat(O.comma))break}return b},Ye.parseVarId=function(b,P){b.id=this.parseBindingAtom(),this.checkLValPattern(b.id,P==="var"?Ve:et,!1)};var ne=1,ee=2,oe=4;Ye.parseFunction=function(b,P,q,Z,ge){this.initFunction(b),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!Z)&&(this.type===O.star&&P&ee&&this.unexpected(),b.generator=this.eat(O.star)),this.options.ecmaVersion>=8&&(b.async=!!Z),P&ne&&(b.id=P&oe&&this.type!==O.name?null:this.parseIdent(),b.id&&!(P&ee)&&this.checkLValSimple(b.id,this.strict||b.generator||b.async?this.treatFunctionsAsVar?Ve:et:it));var Re=this.yieldPos,Ne=this.awaitPos,He=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(G(b.async,b.generator)),P&ne||(b.id=this.type===O.name?this.parseIdent():null),this.parseFunctionParams(b),this.parseFunctionBody(b,q,!1,ge),this.yieldPos=Re,this.awaitPos=Ne,this.awaitIdentPos=He,this.finishNode(b,P&ne?"FunctionDeclaration":"FunctionExpression")},Ye.parseFunctionParams=function(b){this.expect(O.parenL),b.params=this.parseBindingList(O.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},Ye.parseClass=function(b,P){this.next();var q=this.strict;this.strict=!0,this.parseClassId(b,P),this.parseClassSuper(b);var Z=this.enterClassBody(),ge=this.startNode(),Re=!1;for(ge.body=[],this.expect(O.braceL);this.type!==O.braceR;){var Ne=this.parseClassElement(b.superClass!==null);Ne&&(ge.body.push(Ne),Ne.type==="MethodDefinition"&&Ne.kind==="constructor"?(Re&&this.raiseRecoverable(Ne.start,"Duplicate constructor in the same class"),Re=!0):Ne.key&&Ne.key.type==="PrivateIdentifier"&&ce(Z,Ne)&&this.raiseRecoverable(Ne.key.start,"Identifier '#"+Ne.key.name+"' has already been declared"))}return this.strict=q,this.next(),b.body=this.finishNode(ge,"ClassBody"),this.exitClassBody(),this.finishNode(b,P?"ClassDeclaration":"ClassExpression")},Ye.parseClassElement=function(b){if(this.eat(O.semi))return null;var P=this.options.ecmaVersion,q=this.startNode(),Z="",ge=!1,Re=!1,Ne="method",He=!1;if(this.eatContextual("static")){if(P>=13&&this.eat(O.braceL))return this.parseClassStaticBlock(q),q;this.isClassElementNameStart()||this.type===O.star?He=!0:Z="static"}if(q.static=He,!Z&&P>=8&&this.eatContextual("async")&&((this.isClassElementNameStart()||this.type===O.star)&&!this.canInsertSemicolon()?Re=!0:Z="async"),!Z&&(P>=9||!Re)&&this.eat(O.star)&&(ge=!0),!Z&&!Re&&!ge){var Je=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?Ne=Je:Z=Je)}if(Z?(q.computed=!1,q.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),q.key.name=Z,this.finishNode(q.key,"Identifier")):this.parseClassElementName(q),P<13||this.type===O.parenL||Ne!=="method"||ge||Re){var St=!q.static&&z(q,"constructor"),At=St&&b;St&&Ne!=="method"&&this.raise(q.key.start,"Constructor can't have get/set modifier"),q.kind=St?"constructor":Ne,this.parseClassMethod(q,ge,Re,At)}else this.parseClassField(q);return q},Ye.isClassElementNameStart=function(){return this.type===O.name||this.type===O.privateId||this.type===O.num||this.type===O.string||this.type===O.bracketL||this.type.keyword},Ye.parseClassElementName=function(b){this.type===O.privateId?(this.value==="constructor"&&this.raise(this.start,"Classes can't have an element named '#constructor'"),b.computed=!1,b.key=this.parsePrivateIdent()):this.parsePropertyName(b)},Ye.parseClassMethod=function(b,P,q,Z){var ge=b.key;b.kind==="constructor"?(P&&this.raise(ge.start,"Constructor can't be a generator"),q&&this.raise(ge.start,"Constructor can't be an async method")):b.static&&z(b,"prototype")&&this.raise(ge.start,"Classes may not have a static property named prototype");var Re=b.value=this.parseMethod(P,q,Z);return b.kind==="get"&&Re.params.length!==0&&this.raiseRecoverable(Re.start,"getter should have no params"),b.kind==="set"&&Re.params.length!==1&&this.raiseRecoverable(Re.start,"setter should have exactly one param"),b.kind==="set"&&Re.params[0].type==="RestElement"&&this.raiseRecoverable(Re.params[0].start,"Setter cannot use rest params"),this.finishNode(b,"MethodDefinition")},Ye.parseClassField=function(b){if(z(b,"constructor")?this.raise(b.key.start,"Classes can't have a field named 'constructor'"):b.static&&z(b,"prototype")&&this.raise(b.key.start,"Classes can't have a static field named 'prototype'"),this.eat(O.eq)){var P=this.currentThisScope(),q=P.inClassFieldInit;P.inClassFieldInit=!0,b.value=this.parseMaybeAssign(),P.inClassFieldInit=q}else b.value=null;return this.semicolon(),this.finishNode(b,"PropertyDefinition")},Ye.parseClassStaticBlock=function(b){b.body=[];var P=this.labels;for(this.labels=[],this.enterScope(pt|rt);this.type!==O.braceR;){var q=this.parseStatement(null);b.body.push(q)}return this.next(),this.exitScope(),this.labels=P,this.finishNode(b,"StaticBlock")},Ye.parseClassId=function(b,P){this.type===O.name?(b.id=this.parseIdent(),P&&this.checkLValSimple(b.id,et,!1)):(P===!0&&this.unexpected(),b.id=null)},Ye.parseClassSuper=function(b){b.superClass=this.eat(O._extends)?this.parseExprSubscripts(null,!1):null},Ye.enterClassBody=function(){var b={declared:Object.create(null),used:[]};return this.privateNameStack.push(b),b.declared},Ye.exitClassBody=function(){var b=this.privateNameStack.pop(),P=b.declared,q=b.used;if(this.options.checkPrivateFields)for(var Z=this.privateNameStack.length,ge=Z===0?null:this.privateNameStack[Z-1],Re=0;Re=11&&(this.eatContextual("as")?(b.exported=this.parseModuleExportName(),this.checkExport(P,b.exported,this.lastTokStart)):b.exported=null),this.expectContextual("from"),this.type!==O.string&&this.unexpected(),b.source=this.parseExprAtom(),this.semicolon(),this.finishNode(b,"ExportAllDeclaration")},Ye.parseExport=function(b,P){if(this.next(),this.eat(O.star))return this.parseExportAllDeclaration(b,P);if(this.eat(O._default))return this.checkExport(P,"default",this.lastTokStart),b.declaration=this.parseExportDefaultDeclaration(),this.finishNode(b,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())b.declaration=this.parseExportDeclaration(b),b.declaration.type==="VariableDeclaration"?this.checkVariableExport(P,b.declaration.declarations):this.checkExport(P,b.declaration.id,b.declaration.id.start),b.specifiers=[],b.source=null;else{if(b.declaration=null,b.specifiers=this.parseExportSpecifiers(P),this.eatContextual("from"))this.type!==O.string&&this.unexpected(),b.source=this.parseExprAtom();else{for(var q=0,Z=b.specifiers;q=13&&this.type===O.string){var b=this.parseLiteral(this.value);return U.test(b.value)&&this.raise(b.start,"An export name cannot include a lone surrogate."),b}return this.parseIdent(!0)},Ye.adaptDirectivePrologue=function(b){for(var P=0;P=5&&b.type==="ExpressionStatement"&&b.expression.type==="Literal"&&typeof b.expression.value=="string"&&(this.input[b.start]==='"'||this.input[b.start]==="'")};var J=vt.prototype;J.toAssignable=function(b,P,q){if(this.options.ecmaVersion>=6&&b)switch(b.type){case"Identifier":this.inAsync&&b.name==="await"&&this.raise(b.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":b.type="ObjectPattern",q&&this.checkPatternErrors(q,!0);for(var Z=0,ge=b.properties;Z=8&&!He&&Je.name==="async"&&!this.canInsertSemicolon()&&this.eat(O._function))return this.overrideContext(de.f_expr),this.parseFunction(this.startNodeAt(Re,Ne),0,!1,!0,P);if(ge&&!this.canInsertSemicolon()){if(this.eat(O.arrow))return this.parseArrowExpression(this.startNodeAt(Re,Ne),[Je],!1,P);if(this.options.ecmaVersion>=8&&Je.name==="async"&&this.type===O.name&&!He&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc))return Je=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(O.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(Re,Ne),[Je],!0,P)}return Je;case O.regexp:var St=this.value;return Z=this.parseLiteral(St.value),Z.regex={pattern:St.pattern,flags:St.flags},Z;case O.num:case O.string:return this.parseLiteral(this.value);case O._null:case O._true:case O._false:return Z=this.startNode(),Z.value=this.type===O._null?null:this.type===O._true,Z.raw=this.type.keyword,this.next(),this.finishNode(Z,"Literal");case O.parenL:var At=this.start,ar=this.parseParenAndDistinguishExpression(ge,P);return b&&(b.parenthesizedAssign<0&&!this.isSimpleAssignTarget(ar)&&(b.parenthesizedAssign=At),b.parenthesizedBind<0&&(b.parenthesizedBind=At)),ar;case O.bracketL:return Z=this.startNode(),this.next(),Z.elements=this.parseExprList(O.bracketR,!0,!0,b),this.finishNode(Z,"ArrayExpression");case O.braceL:return this.overrideContext(de.b_expr),this.parseObj(!1,b);case O._function:return Z=this.startNode(),this.next(),this.parseFunction(Z,0);case O._class:return this.parseClass(this.startNode(),!1);case O._new:return this.parseNew();case O.backQuote:return this.parseTemplate();case O._import:return this.options.ecmaVersion>=11?this.parseExprImport(q):this.unexpected();default:return this.parseExprAtomDefault()}},L.parseExprAtomDefault=function(){this.unexpected()},L.parseExprImport=function(b){var P=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===O.parenL&&!b)return this.parseDynamicImport(P);if(this.type===O.dot){var q=this.startNodeAt(P.start,P.loc&&P.loc.start);return q.name="import",P.meta=this.finishNode(q,"Identifier"),this.parseImportMeta(P)}else this.unexpected()},L.parseDynamicImport=function(b){if(this.next(),b.source=this.parseMaybeAssign(),!this.eat(O.parenR)){var P=this.start;this.eat(O.comma)&&this.eat(O.parenR)?this.raiseRecoverable(P,"Trailing comma is not allowed in import()"):this.unexpected(P)}return this.finishNode(b,"ImportExpression")},L.parseImportMeta=function(b){this.next();var P=this.containsEsc;return b.property=this.parseIdent(!0),b.property.name!=="meta"&&this.raiseRecoverable(b.property.start,"The only valid meta property for import is 'import.meta'"),P&&this.raiseRecoverable(b.start,"'import.meta' must not contain escaped characters"),this.options.sourceType!=="module"&&!this.options.allowImportExportEverywhere&&this.raiseRecoverable(b.start,"Cannot use 'import.meta' outside a module"),this.finishNode(b,"MetaProperty")},L.parseLiteral=function(b){var P=this.startNode();return P.value=b,P.raw=this.input.slice(this.start,this.end),P.raw.charCodeAt(P.raw.length-1)===110&&(P.bigint=P.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(P,"Literal")},L.parseParenExpression=function(){this.expect(O.parenL);var b=this.parseExpression();return this.expect(O.parenR),b},L.shouldParseArrow=function(b){return!this.canInsertSemicolon()},L.parseParenAndDistinguishExpression=function(b,P){var q=this.start,Z=this.startLoc,ge,Re=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var Ne=this.start,He=this.startLoc,Je=[],St=!0,At=!1,ar=new xt,An=this.yieldPos,js=this.awaitPos,Kn;for(this.yieldPos=0,this.awaitPos=0;this.type!==O.parenR;)if(St?St=!1:this.expect(O.comma),Re&&this.afterTrailingComma(O.parenR,!0)){At=!0;break}else if(this.type===O.ellipsis){Kn=this.start,Je.push(this.parseParenItem(this.parseRestBinding())),this.type===O.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}else Je.push(this.parseMaybeAssign(!1,ar,this.parseParenItem));var wi=this.lastTokEnd,ms=this.lastTokEndLoc;if(this.expect(O.parenR),b&&this.shouldParseArrow(Je)&&this.eat(O.arrow))return this.checkPatternErrors(ar,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=An,this.awaitPos=js,this.parseParenArrowList(q,Z,Je,P);(!Je.length||At)&&this.unexpected(this.lastTokStart),Kn&&this.unexpected(Kn),this.checkExpressionErrors(ar,!0),this.yieldPos=An||this.yieldPos,this.awaitPos=js||this.awaitPos,Je.length>1?(ge=this.startNodeAt(Ne,He),ge.expressions=Je,this.finishNodeAt(ge,"SequenceExpression",wi,ms)):ge=Je[0]}else ge=this.parseParenExpression();if(this.options.preserveParens){var Jn=this.startNodeAt(q,Z);return Jn.expression=ge,this.finishNode(Jn,"ParenthesizedExpression")}else return ge},L.parseParenItem=function(b){return b},L.parseParenArrowList=function(b,P,q,Z){return this.parseArrowExpression(this.startNodeAt(b,P),q,!1,Z)};var Te=[];L.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var b=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===O.dot){var P=this.startNodeAt(b.start,b.loc&&b.loc.start);P.name="new",b.meta=this.finishNode(P,"Identifier"),this.next();var q=this.containsEsc;return b.property=this.parseIdent(!0),b.property.name!=="target"&&this.raiseRecoverable(b.property.start,"The only valid meta property for new is 'new.target'"),q&&this.raiseRecoverable(b.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(b.start,"'new.target' can only be used in functions and class static block"),this.finishNode(b,"MetaProperty")}var Z=this.start,ge=this.startLoc;return b.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),Z,ge,!0,!1),this.eat(O.parenL)?b.arguments=this.parseExprList(O.parenR,this.options.ecmaVersion>=8,!1):b.arguments=Te,this.finishNode(b,"NewExpression")},L.parseTemplateElement=function(b){var P=b.isTagged,q=this.startNode();return this.type===O.invalidTemplate?(P||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),q.value={raw:this.value,cooked:null}):q.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,` +`),cooked:this.value},this.next(),q.tail=this.type===O.backQuote,this.finishNode(q,"TemplateElement")},L.parseTemplate=function(b){b===void 0&&(b={});var P=b.isTagged;P===void 0&&(P=!1);var q=this.startNode();this.next(),q.expressions=[];var Z=this.parseTemplateElement({isTagged:P});for(q.quasis=[Z];!Z.tail;)this.type===O.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(O.dollarBraceL),q.expressions.push(this.parseExpression()),this.expect(O.braceR),q.quasis.push(Z=this.parseTemplateElement({isTagged:P}));return this.next(),this.finishNode(q,"TemplateLiteral")},L.isAsyncProp=function(b){return!b.computed&&b.key.type==="Identifier"&&b.key.name==="async"&&(this.type===O.name||this.type===O.num||this.type===O.string||this.type===O.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===O.star)&&!C.test(this.input.slice(this.lastTokEnd,this.start))},L.parseObj=function(b,P){var q=this.startNode(),Z=!0,ge={};for(q.properties=[],this.next();!this.eat(O.braceR);){if(Z)Z=!1;else if(this.expect(O.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(O.braceR))break;var Re=this.parseProperty(b,P);b||this.checkPropClash(Re,ge,P),q.properties.push(Re)}return this.finishNode(q,b?"ObjectPattern":"ObjectExpression")},L.parseProperty=function(b,P){var q=this.startNode(),Z,ge,Re,Ne;if(this.options.ecmaVersion>=9&&this.eat(O.ellipsis))return b?(q.argument=this.parseIdent(!1),this.type===O.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(q,"RestElement")):(q.argument=this.parseMaybeAssign(!1,P),this.type===O.comma&&P&&P.trailingComma<0&&(P.trailingComma=this.start),this.finishNode(q,"SpreadElement"));this.options.ecmaVersion>=6&&(q.method=!1,q.shorthand=!1,(b||P)&&(Re=this.start,Ne=this.startLoc),b||(Z=this.eat(O.star)));var He=this.containsEsc;return this.parsePropertyName(q),!b&&!He&&this.options.ecmaVersion>=8&&!Z&&this.isAsyncProp(q)?(ge=!0,Z=this.options.ecmaVersion>=9&&this.eat(O.star),this.parsePropertyName(q)):ge=!1,this.parsePropertyValue(q,b,Z,ge,Re,Ne,P,He),this.finishNode(q,"Property")},L.parseGetterSetter=function(b){b.kind=b.key.name,this.parsePropertyName(b),b.value=this.parseMethod(!1);var P=b.kind==="get"?0:1;if(b.value.params.length!==P){var q=b.value.start;b.kind==="get"?this.raiseRecoverable(q,"getter should have no params"):this.raiseRecoverable(q,"setter should have exactly one param")}else b.kind==="set"&&b.value.params[0].type==="RestElement"&&this.raiseRecoverable(b.value.params[0].start,"Setter cannot use rest params")},L.parsePropertyValue=function(b,P,q,Z,ge,Re,Ne,He){(q||Z)&&this.type===O.colon&&this.unexpected(),this.eat(O.colon)?(b.value=P?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,Ne),b.kind="init"):this.options.ecmaVersion>=6&&this.type===O.parenL?(P&&this.unexpected(),b.kind="init",b.method=!0,b.value=this.parseMethod(q,Z)):!P&&!He&&this.options.ecmaVersion>=5&&!b.computed&&b.key.type==="Identifier"&&(b.key.name==="get"||b.key.name==="set")&&this.type!==O.comma&&this.type!==O.braceR&&this.type!==O.eq?((q||Z)&&this.unexpected(),this.parseGetterSetter(b)):this.options.ecmaVersion>=6&&!b.computed&&b.key.type==="Identifier"?((q||Z)&&this.unexpected(),this.checkUnreserved(b.key),b.key.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=ge),b.kind="init",P?b.value=this.parseMaybeDefault(ge,Re,this.copyNode(b.key)):this.type===O.eq&&Ne?(Ne.shorthandAssign<0&&(Ne.shorthandAssign=this.start),b.value=this.parseMaybeDefault(ge,Re,this.copyNode(b.key))):b.value=this.copyNode(b.key),b.shorthand=!0):this.unexpected()},L.parsePropertyName=function(b){if(this.options.ecmaVersion>=6){if(this.eat(O.bracketL))return b.computed=!0,b.key=this.parseMaybeAssign(),this.expect(O.bracketR),b.key;b.computed=!1}return b.key=this.type===O.num||this.type===O.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")},L.initFunction=function(b){b.id=null,this.options.ecmaVersion>=6&&(b.generator=b.expression=!1),this.options.ecmaVersion>=8&&(b.async=!1)},L.parseMethod=function(b,P,q){var Z=this.startNode(),ge=this.yieldPos,Re=this.awaitPos,Ne=this.awaitIdentPos;return this.initFunction(Z),this.options.ecmaVersion>=6&&(Z.generator=b),this.options.ecmaVersion>=8&&(Z.async=!!P),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(G(P,Z.generator)|rt|(q?ht:0)),this.expect(O.parenL),Z.params=this.parseBindingList(O.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(Z,!1,!0,!1),this.yieldPos=ge,this.awaitPos=Re,this.awaitIdentPos=Ne,this.finishNode(Z,"FunctionExpression")},L.parseArrowExpression=function(b,P,q,Z){var ge=this.yieldPos,Re=this.awaitPos,Ne=this.awaitIdentPos;return this.enterScope(G(q,!1)|Le),this.initFunction(b),this.options.ecmaVersion>=8&&(b.async=!!q),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,b.params=this.toAssignableList(P,!0),this.parseFunctionBody(b,!0,!1,Z),this.yieldPos=ge,this.awaitPos=Re,this.awaitIdentPos=Ne,this.finishNode(b,"ArrowFunctionExpression")},L.parseFunctionBody=function(b,P,q,Z){var ge=P&&this.type!==O.braceL,Re=this.strict,Ne=!1;if(ge)b.body=this.parseMaybeAssign(Z),b.expression=!0,this.checkParams(b,!1);else{var He=this.options.ecmaVersion>=7&&!this.isSimpleParamList(b.params);(!Re||He)&&(Ne=this.strictDirective(this.end),Ne&&He&&this.raiseRecoverable(b.start,"Illegal 'use strict' directive in function with non-simple parameter list"));var Je=this.labels;this.labels=[],Ne&&(this.strict=!0),this.checkParams(b,!Re&&!Ne&&!P&&!q&&this.isSimpleParamList(b.params)),this.strict&&b.id&&this.checkLValSimple(b.id,wt),b.body=this.parseBlock(!1,void 0,Ne&&!Re),b.expression=!1,this.adaptDirectivePrologue(b.body.body),this.labels=Je}this.exitScope()},L.isSimpleParamList=function(b){for(var P=0,q=b;P-1||ge.functions.indexOf(b)>-1||ge.var.indexOf(b)>-1,ge.lexical.push(b),this.inModule&&ge.flags&pe&&delete this.undefinedExports[b]}else if(P===st){var Re=this.currentScope();Re.lexical.push(b)}else if(P===it){var Ne=this.currentScope();this.treatFunctionsAsVar?Z=Ne.lexical.indexOf(b)>-1:Z=Ne.lexical.indexOf(b)>-1||Ne.var.indexOf(b)>-1,Ne.functions.push(b)}else for(var He=this.scopeStack.length-1;He>=0;--He){var Je=this.scopeStack[He];if(Je.lexical.indexOf(b)>-1&&!(Je.flags&qe&&Je.lexical[0]===b)||!this.treatFunctionsAsVarInScope(Je)&&Je.functions.indexOf(b)>-1){Z=!0;break}if(Je.var.push(b),this.inModule&&Je.flags&pe&&delete this.undefinedExports[b],Je.flags&Et)break}Z&&this.raiseRecoverable(q,"Identifier '"+b+"' has already been declared")},$e.checkLocalExport=function(b){this.scopeStack[0].lexical.indexOf(b.name)===-1&&this.scopeStack[0].var.indexOf(b.name)===-1&&(this.undefinedExports[b.name]=b)},$e.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},$e.currentVarScope=function(){for(var b=this.scopeStack.length-1;;b--){var P=this.scopeStack[b];if(P.flags&Et)return P}},$e.currentThisScope=function(){for(var b=this.scopeStack.length-1;;b--){var P=this.scopeStack[b];if(P.flags&Et&&!(P.flags&Le))return P}};var Oe=function(P,q,Z){this.type="",this.start=q,this.end=0,P.options.locations&&(this.loc=new ae(P,Z)),P.options.directSourceFile&&(this.sourceFile=P.options.directSourceFile),P.options.ranges&&(this.range=[q,0])},Ie=vt.prototype;Ie.startNode=function(){return new Oe(this,this.start,this.startLoc)},Ie.startNodeAt=function(b,P){return new Oe(this,b,P)};function We(b,P,q,Z){return b.type=P,b.end=q,this.options.locations&&(b.loc.end=Z),this.options.ranges&&(b.range[1]=q),b}Ie.finishNode=function(b,P){return We.call(this,b,P,this.lastTokEnd,this.lastTokEndLoc)},Ie.finishNodeAt=function(b,P,q,Z){return We.call(this,b,P,q,Z)},Ie.copyNode=function(b){var P=new Oe(this,b.start,this.startLoc);for(var q in b)P[q]=b[q];return P};var ve="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",re=ve+" Extended_Pictographic",Y=re,fe=Y+" EBase EComp EMod EPres ExtPict",Se=fe,Ee=Se,Ze={9:ve,10:re,11:Y,12:fe,13:Se,14:Ee},Ke="Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji",mt={9:"",10:"",11:"",12:"",13:"",14:Ke},Ot="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",Pt="Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",bt=Pt+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",Ue=bt+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",nt=Ue+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",Xe=nt+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",Qe=Xe+" Hrkt Katakana_Or_Hiragana Kawi Nag_Mundari Nagm Unknown Zzzz",ut={9:Pt,10:bt,11:Ue,12:nt,13:Xe,14:Qe},dt={};function qt(b){var P=dt[b]={binary:N(Ze[b]+" "+Ot),binaryOfStrings:N(mt[b]),nonBinary:{General_Category:N(Ot),Script:N(ut[b])}};P.nonBinary.Script_Extensions=P.nonBinary.Script,P.nonBinary.gc=P.nonBinary.General_Category,P.nonBinary.sc=P.nonBinary.Script,P.nonBinary.scx=P.nonBinary.Script_Extensions}for(var Qt=0,jt=[9,10,11,12,13,14];Qt=6?"uy":"")+(P.options.ecmaVersion>=9?"s":"")+(P.options.ecmaVersion>=13?"d":"")+(P.options.ecmaVersion>=15?"v":""),this.unicodeProperties=dt[P.options.ecmaVersion>=14?14:P.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchV=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=[],this.backReferenceNames=[]};Nt.prototype.reset=function(P,q,Z){var ge=Z.indexOf("v")!==-1,Re=Z.indexOf("u")!==-1;this.start=P|0,this.source=q+"",this.flags=Z,ge&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=Re&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=Re&&this.parser.options.ecmaVersion>=9)},Nt.prototype.raise=function(P){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+P)},Nt.prototype.at=function(P,q){q===void 0&&(q=!1);var Z=this.source,ge=Z.length;if(P>=ge)return-1;var Re=Z.charCodeAt(P);if(!(q||this.switchU)||Re<=55295||Re>=57344||P+1>=ge)return Re;var Ne=Z.charCodeAt(P+1);return Ne>=56320&&Ne<=57343?(Re<<10)+Ne-56613888:Re},Nt.prototype.nextIndex=function(P,q){q===void 0&&(q=!1);var Z=this.source,ge=Z.length;if(P>=ge)return ge;var Re=Z.charCodeAt(P),Ne;return!(q||this.switchU)||Re<=55295||Re>=57344||P+1>=ge||(Ne=Z.charCodeAt(P+1))<56320||Ne>57343?P+1:P+2},Nt.prototype.current=function(P){return P===void 0&&(P=!1),this.at(this.pos,P)},Nt.prototype.lookahead=function(P){return P===void 0&&(P=!1),this.at(this.nextIndex(this.pos,P),P)},Nt.prototype.advance=function(P){P===void 0&&(P=!1),this.pos=this.nextIndex(this.pos,P)},Nt.prototype.eat=function(P,q){return q===void 0&&(q=!1),this.current(q)===P?(this.advance(q),!0):!1},Nt.prototype.eatChars=function(P,q){q===void 0&&(q=!1);for(var Z=this.pos,ge=0,Re=P;ge-1&&this.raise(b.start,"Duplicate regular expression flag"),Ne==="u"&&(Z=!0),Ne==="v"&&(ge=!0)}this.options.ecmaVersion>=15&&Z&&ge&&this.raise(b.start,"Invalid regular expression flag")},ot.validateRegExpPattern=function(b){this.regexp_pattern(b),!b.switchN&&this.options.ecmaVersion>=9&&b.groupNames.length>0&&(b.switchN=!0,this.regexp_pattern(b))},ot.regexp_pattern=function(b){b.pos=0,b.lastIntValue=0,b.lastStringValue="",b.lastAssertionIsQuantifiable=!1,b.numCapturingParens=0,b.maxBackReference=0,b.groupNames.length=0,b.backReferenceNames.length=0,this.regexp_disjunction(b),b.pos!==b.source.length&&(b.eat(41)&&b.raise("Unmatched ')'"),(b.eat(93)||b.eat(125))&&b.raise("Lone quantifier brackets")),b.maxBackReference>b.numCapturingParens&&b.raise("Invalid escape");for(var P=0,q=b.backReferenceNames;P=9&&(q=b.eat(60)),b.eat(61)||b.eat(33))return this.regexp_disjunction(b),b.eat(41)||b.raise("Unterminated group"),b.lastAssertionIsQuantifiable=!q,!0}return b.pos=P,!1},ot.regexp_eatQuantifier=function(b,P){return P===void 0&&(P=!1),this.regexp_eatQuantifierPrefix(b,P)?(b.eat(63),!0):!1},ot.regexp_eatQuantifierPrefix=function(b,P){return b.eat(42)||b.eat(43)||b.eat(63)||this.regexp_eatBracedQuantifier(b,P)},ot.regexp_eatBracedQuantifier=function(b,P){var q=b.pos;if(b.eat(123)){var Z=0,ge=-1;if(this.regexp_eatDecimalDigits(b)&&(Z=b.lastIntValue,b.eat(44)&&this.regexp_eatDecimalDigits(b)&&(ge=b.lastIntValue),b.eat(125)))return ge!==-1&&ge=9?this.regexp_groupSpecifier(b):b.current()===63&&b.raise("Invalid group"),this.regexp_disjunction(b),b.eat(41))return b.numCapturingParens+=1,!0;b.raise("Unterminated group")}return!1},ot.regexp_eatExtendedAtom=function(b){return b.eat(46)||this.regexp_eatReverseSolidusAtomEscape(b)||this.regexp_eatCharacterClass(b)||this.regexp_eatUncapturingGroup(b)||this.regexp_eatCapturingGroup(b)||this.regexp_eatInvalidBracedQuantifier(b)||this.regexp_eatExtendedPatternCharacter(b)},ot.regexp_eatInvalidBracedQuantifier=function(b){return this.regexp_eatBracedQuantifier(b,!0)&&b.raise("Nothing to repeat"),!1},ot.regexp_eatSyntaxCharacter=function(b){var P=b.current();return vr(P)?(b.lastIntValue=P,b.advance(),!0):!1};function vr(b){return b===36||b>=40&&b<=43||b===46||b===63||b>=91&&b<=94||b>=123&&b<=125}ot.regexp_eatPatternCharacters=function(b){for(var P=b.pos,q=0;(q=b.current())!==-1&&!vr(q);)b.advance();return b.pos!==P},ot.regexp_eatExtendedPatternCharacter=function(b){var P=b.current();return P!==-1&&P!==36&&!(P>=40&&P<=43)&&P!==46&&P!==63&&P!==91&&P!==94&&P!==124?(b.advance(),!0):!1},ot.regexp_groupSpecifier=function(b){if(b.eat(63)){if(this.regexp_eatGroupName(b)){b.groupNames.indexOf(b.lastStringValue)!==-1&&b.raise("Duplicate capture group name"),b.groupNames.push(b.lastStringValue);return}b.raise("Invalid group")}},ot.regexp_eatGroupName=function(b){if(b.lastStringValue="",b.eat(60)){if(this.regexp_eatRegExpIdentifierName(b)&&b.eat(62))return!0;b.raise("Invalid capture group name")}return!1},ot.regexp_eatRegExpIdentifierName=function(b){if(b.lastStringValue="",this.regexp_eatRegExpIdentifierStart(b)){for(b.lastStringValue+=F(b.lastIntValue);this.regexp_eatRegExpIdentifierPart(b);)b.lastStringValue+=F(b.lastIntValue);return!0}return!1},ot.regexp_eatRegExpIdentifierStart=function(b){var P=b.pos,q=this.options.ecmaVersion>=11,Z=b.current(q);return b.advance(q),Z===92&&this.regexp_eatRegExpUnicodeEscapeSequence(b,q)&&(Z=b.lastIntValue),Nr(Z)?(b.lastIntValue=Z,!0):(b.pos=P,!1)};function Nr(b){return d(b,!0)||b===36||b===95}ot.regexp_eatRegExpIdentifierPart=function(b){var P=b.pos,q=this.options.ecmaVersion>=11,Z=b.current(q);return b.advance(q),Z===92&&this.regexp_eatRegExpUnicodeEscapeSequence(b,q)&&(Z=b.lastIntValue),wr(Z)?(b.lastIntValue=Z,!0):(b.pos=P,!1)};function wr(b){return m(b,!0)||b===36||b===95||b===8204||b===8205}ot.regexp_eatAtomEscape=function(b){return this.regexp_eatBackReference(b)||this.regexp_eatCharacterClassEscape(b)||this.regexp_eatCharacterEscape(b)||b.switchN&&this.regexp_eatKGroupName(b)?!0:(b.switchU&&(b.current()===99&&b.raise("Invalid unicode escape"),b.raise("Invalid escape")),!1)},ot.regexp_eatBackReference=function(b){var P=b.pos;if(this.regexp_eatDecimalEscape(b)){var q=b.lastIntValue;if(b.switchU)return q>b.maxBackReference&&(b.maxBackReference=q),!0;if(q<=b.numCapturingParens)return!0;b.pos=P}return!1},ot.regexp_eatKGroupName=function(b){if(b.eat(107)){if(this.regexp_eatGroupName(b))return b.backReferenceNames.push(b.lastStringValue),!0;b.raise("Invalid named reference")}return!1},ot.regexp_eatCharacterEscape=function(b){return this.regexp_eatControlEscape(b)||this.regexp_eatCControlLetter(b)||this.regexp_eatZero(b)||this.regexp_eatHexEscapeSequence(b)||this.regexp_eatRegExpUnicodeEscapeSequence(b,!1)||!b.switchU&&this.regexp_eatLegacyOctalEscapeSequence(b)||this.regexp_eatIdentityEscape(b)},ot.regexp_eatCControlLetter=function(b){var P=b.pos;if(b.eat(99)){if(this.regexp_eatControlLetter(b))return!0;b.pos=P}return!1},ot.regexp_eatZero=function(b){return b.current()===48&&!mn(b.lookahead())?(b.lastIntValue=0,b.advance(),!0):!1},ot.regexp_eatControlEscape=function(b){var P=b.current();return P===116?(b.lastIntValue=9,b.advance(),!0):P===110?(b.lastIntValue=10,b.advance(),!0):P===118?(b.lastIntValue=11,b.advance(),!0):P===102?(b.lastIntValue=12,b.advance(),!0):P===114?(b.lastIntValue=13,b.advance(),!0):!1},ot.regexp_eatControlLetter=function(b){var P=b.current();return Qr(P)?(b.lastIntValue=P%32,b.advance(),!0):!1};function Qr(b){return b>=65&&b<=90||b>=97&&b<=122}ot.regexp_eatRegExpUnicodeEscapeSequence=function(b,P){P===void 0&&(P=!1);var q=b.pos,Z=P||b.switchU;if(b.eat(117)){if(this.regexp_eatFixedHexDigits(b,4)){var ge=b.lastIntValue;if(Z&&ge>=55296&&ge<=56319){var Re=b.pos;if(b.eat(92)&&b.eat(117)&&this.regexp_eatFixedHexDigits(b,4)){var Ne=b.lastIntValue;if(Ne>=56320&&Ne<=57343)return b.lastIntValue=(ge-55296)*1024+(Ne-56320)+65536,!0}b.pos=Re,b.lastIntValue=ge}return!0}if(Z&&b.eat(123)&&this.regexp_eatHexDigits(b)&&b.eat(125)&&fs(b.lastIntValue))return!0;Z&&b.raise("Invalid unicode escape"),b.pos=q}return!1};function fs(b){return b>=0&&b<=1114111}ot.regexp_eatIdentityEscape=function(b){if(b.switchU)return this.regexp_eatSyntaxCharacter(b)?!0:b.eat(47)?(b.lastIntValue=47,!0):!1;var P=b.current();return P!==99&&(!b.switchN||P!==107)?(b.lastIntValue=P,b.advance(),!0):!1},ot.regexp_eatDecimalEscape=function(b){b.lastIntValue=0;var P=b.current();if(P>=49&&P<=57){do b.lastIntValue=10*b.lastIntValue+(P-48),b.advance();while((P=b.current())>=48&&P<=57);return!0}return!1};var Yn=0,dr=1,ir=2;ot.regexp_eatCharacterClassEscape=function(b){var P=b.current();if(hn(P))return b.lastIntValue=-1,b.advance(),dr;var q=!1;if(b.switchU&&this.options.ecmaVersion>=9&&((q=P===80)||P===112)){b.lastIntValue=-1,b.advance();var Z;if(b.eat(123)&&(Z=this.regexp_eatUnicodePropertyValueExpression(b))&&b.eat(125))return q&&Z===ir&&b.raise("Invalid property name"),Z;b.raise("Invalid property name")}return Yn};function hn(b){return b===100||b===68||b===115||b===83||b===119||b===87}ot.regexp_eatUnicodePropertyValueExpression=function(b){var P=b.pos;if(this.regexp_eatUnicodePropertyName(b)&&b.eat(61)){var q=b.lastStringValue;if(this.regexp_eatUnicodePropertyValue(b)){var Z=b.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(b,q,Z),dr}}if(b.pos=P,this.regexp_eatLoneUnicodePropertyNameOrValue(b)){var ge=b.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(b,ge)}return Yn},ot.regexp_validateUnicodePropertyNameAndValue=function(b,P,q){j(b.unicodeProperties.nonBinary,P)||b.raise("Invalid property name"),b.unicodeProperties.nonBinary[P].test(q)||b.raise("Invalid property value")},ot.regexp_validateUnicodePropertyNameOrValue=function(b,P){if(b.unicodeProperties.binary.test(P))return dr;if(b.switchV&&b.unicodeProperties.binaryOfStrings.test(P))return ir;b.raise("Invalid property name")},ot.regexp_eatUnicodePropertyName=function(b){var P=0;for(b.lastStringValue="";Hn(P=b.current());)b.lastStringValue+=F(P),b.advance();return b.lastStringValue!==""};function Hn(b){return Qr(b)||b===95}ot.regexp_eatUnicodePropertyValue=function(b){var P=0;for(b.lastStringValue="";kn(P=b.current());)b.lastStringValue+=F(P),b.advance();return b.lastStringValue!==""};function kn(b){return Hn(b)||mn(b)}ot.regexp_eatLoneUnicodePropertyNameOrValue=function(b){return this.regexp_eatUnicodePropertyValue(b)},ot.regexp_eatCharacterClass=function(b){if(b.eat(91)){var P=b.eat(94),q=this.regexp_classContents(b);return b.eat(93)||b.raise("Unterminated character class"),P&&q===ir&&b.raise("Negated character class may contain strings"),!0}return!1},ot.regexp_classContents=function(b){return b.current()===93?dr:b.switchV?this.regexp_classSetExpression(b):(this.regexp_nonEmptyClassRanges(b),dr)},ot.regexp_nonEmptyClassRanges=function(b){for(;this.regexp_eatClassAtom(b);){var P=b.lastIntValue;if(b.eat(45)&&this.regexp_eatClassAtom(b)){var q=b.lastIntValue;b.switchU&&(P===-1||q===-1)&&b.raise("Invalid character class"),P!==-1&&q!==-1&&P>q&&b.raise("Range out of order in character class")}}},ot.regexp_eatClassAtom=function(b){var P=b.pos;if(b.eat(92)){if(this.regexp_eatClassEscape(b))return!0;if(b.switchU){var q=b.current();(q===99||Si(q))&&b.raise("Invalid class escape"),b.raise("Invalid escape")}b.pos=P}var Z=b.current();return Z!==93?(b.lastIntValue=Z,b.advance(),!0):!1},ot.regexp_eatClassEscape=function(b){var P=b.pos;if(b.eat(98))return b.lastIntValue=8,!0;if(b.switchU&&b.eat(45))return b.lastIntValue=45,!0;if(!b.switchU&&b.eat(99)){if(this.regexp_eatClassControlLetter(b))return!0;b.pos=P}return this.regexp_eatCharacterClassEscape(b)||this.regexp_eatCharacterEscape(b)},ot.regexp_classSetExpression=function(b){var P=dr,q;if(!this.regexp_eatClassSetRange(b))if(q=this.regexp_eatClassSetOperand(b)){q===ir&&(P=ir);for(var Z=b.pos;b.eatChars([38,38]);){if(b.current()!==38&&(q=this.regexp_eatClassSetOperand(b))){q!==ir&&(P=dr);continue}b.raise("Invalid character in character class")}if(Z!==b.pos)return P;for(;b.eatChars([45,45]);)this.regexp_eatClassSetOperand(b)||b.raise("Invalid character in character class");if(Z!==b.pos)return P}else b.raise("Invalid character in character class");for(;;)if(!this.regexp_eatClassSetRange(b)){if(q=this.regexp_eatClassSetOperand(b),!q)return P;q===ir&&(P=ir)}},ot.regexp_eatClassSetRange=function(b){var P=b.pos;if(this.regexp_eatClassSetCharacter(b)){var q=b.lastIntValue;if(b.eat(45)&&this.regexp_eatClassSetCharacter(b)){var Z=b.lastIntValue;return q!==-1&&Z!==-1&&q>Z&&b.raise("Range out of order in character class"),!0}b.pos=P}return!1},ot.regexp_eatClassSetOperand=function(b){return this.regexp_eatClassSetCharacter(b)?dr:this.regexp_eatClassStringDisjunction(b)||this.regexp_eatNestedClass(b)},ot.regexp_eatNestedClass=function(b){var P=b.pos;if(b.eat(91)){var q=b.eat(94),Z=this.regexp_classContents(b);if(b.eat(93))return q&&Z===ir&&b.raise("Negated character class may contain strings"),Z;b.pos=P}if(b.eat(92)){var ge=this.regexp_eatCharacterClassEscape(b);if(ge)return ge;b.pos=P}return null},ot.regexp_eatClassStringDisjunction=function(b){var P=b.pos;if(b.eatChars([92,113])){if(b.eat(123)){var q=this.regexp_classStringDisjunctionContents(b);if(b.eat(125))return q}else b.raise("Invalid escape");b.pos=P}return null},ot.regexp_classStringDisjunctionContents=function(b){for(var P=this.regexp_classString(b);b.eat(124);)this.regexp_classString(b)===ir&&(P=ir);return P},ot.regexp_classString=function(b){for(var P=0;this.regexp_eatClassSetCharacter(b);)P++;return P===1?dr:ir},ot.regexp_eatClassSetCharacter=function(b){var P=b.pos;if(b.eat(92))return this.regexp_eatCharacterEscape(b)||this.regexp_eatClassSetReservedPunctuator(b)?!0:b.eat(98)?(b.lastIntValue=8,!0):(b.pos=P,!1);var q=b.current();return q<0||q===b.lookahead()&&dn(q)||ps(q)?!1:(b.advance(),b.lastIntValue=q,!0)};function dn(b){return b===33||b>=35&&b<=38||b>=42&&b<=44||b===46||b>=58&&b<=64||b===94||b===96||b===126}function ps(b){return b===40||b===41||b===45||b===47||b>=91&&b<=93||b>=123&&b<=125}ot.regexp_eatClassSetReservedPunctuator=function(b){var P=b.current();return Ms(P)?(b.lastIntValue=P,b.advance(),!0):!1};function Ms(b){return b===33||b===35||b===37||b===38||b===44||b===45||b>=58&&b<=62||b===64||b===96||b===126}ot.regexp_eatClassControlLetter=function(b){var P=b.current();return mn(P)||P===95?(b.lastIntValue=P%32,b.advance(),!0):!1},ot.regexp_eatHexEscapeSequence=function(b){var P=b.pos;if(b.eat(120)){if(this.regexp_eatFixedHexDigits(b,2))return!0;b.switchU&&b.raise("Invalid escape"),b.pos=P}return!1},ot.regexp_eatDecimalDigits=function(b){var P=b.pos,q=0;for(b.lastIntValue=0;mn(q=b.current());)b.lastIntValue=10*b.lastIntValue+(q-48),b.advance();return b.pos!==P};function mn(b){return b>=48&&b<=57}ot.regexp_eatHexDigits=function(b){var P=b.pos,q=0;for(b.lastIntValue=0;Oi(q=b.current());)b.lastIntValue=16*b.lastIntValue+hs(q),b.advance();return b.pos!==P};function Oi(b){return b>=48&&b<=57||b>=65&&b<=70||b>=97&&b<=102}function hs(b){return b>=65&&b<=70?10+(b-65):b>=97&&b<=102?10+(b-97):b-48}ot.regexp_eatLegacyOctalEscapeSequence=function(b){if(this.regexp_eatOctalDigit(b)){var P=b.lastIntValue;if(this.regexp_eatOctalDigit(b)){var q=b.lastIntValue;P<=3&&this.regexp_eatOctalDigit(b)?b.lastIntValue=P*64+q*8+b.lastIntValue:b.lastIntValue=P*8+q}else b.lastIntValue=P;return!0}return!1},ot.regexp_eatOctalDigit=function(b){var P=b.current();return Si(P)?(b.lastIntValue=P-48,b.advance(),!0):(b.lastIntValue=0,!1)};function Si(b){return b>=48&&b<=55}ot.regexp_eatFixedHexDigits=function(b,P){var q=b.pos;b.lastIntValue=0;for(var Z=0;Z=this.input.length)return this.finishToken(O.eof);if(b.override)return b.override(this);this.readToken(this.fullCharCodeAtPos())},Tt.readToken=function(b){return d(b,this.options.ecmaVersion>=6)||b===92?this.readWord():this.getTokenFromCode(b)},Tt.fullCharCodeAtPos=function(){var b=this.input.charCodeAt(this.pos);if(b<=55295||b>=56320)return b;var P=this.input.charCodeAt(this.pos+1);return P<=56319||P>=57344?b:(b<<10)+P-56613888},Tt.skipBlockComment=function(){var b=this.options.onComment&&this.curPosition(),P=this.pos,q=this.input.indexOf("*/",this.pos+=2);if(q===-1&&this.raise(this.pos-2,"Unterminated comment"),this.pos=q+2,this.options.locations)for(var Z=void 0,ge=P;(Z=A(this.input,ge,this.pos))>-1;)++this.curLine,ge=this.lineStart=Z;this.options.onComment&&this.options.onComment(!0,this.input.slice(P+2,q),P,this.pos,b,this.curPosition())},Tt.skipLineComment=function(b){for(var P=this.pos,q=this.options.onComment&&this.curPosition(),Z=this.input.charCodeAt(this.pos+=b);this.pos8&&b<14||b>=5760&&D.test(String.fromCharCode(b)))++this.pos;else break e}}},Tt.finishToken=function(b,P){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var q=this.type;this.type=b,this.value=P,this.updateContext(q)},Tt.readToken_dot=function(){var b=this.input.charCodeAt(this.pos+1);if(b>=48&&b<=57)return this.readNumber(!0);var P=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&b===46&&P===46?(this.pos+=3,this.finishToken(O.ellipsis)):(++this.pos,this.finishToken(O.dot))},Tt.readToken_slash=function(){var b=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):b===61?this.finishOp(O.assign,2):this.finishOp(O.slash,1)},Tt.readToken_mult_modulo_exp=function(b){var P=this.input.charCodeAt(this.pos+1),q=1,Z=b===42?O.star:O.modulo;return this.options.ecmaVersion>=7&&b===42&&P===42&&(++q,Z=O.starstar,P=this.input.charCodeAt(this.pos+2)),P===61?this.finishOp(O.assign,q+1):this.finishOp(Z,q)},Tt.readToken_pipe_amp=function(b){var P=this.input.charCodeAt(this.pos+1);if(P===b){if(this.options.ecmaVersion>=12){var q=this.input.charCodeAt(this.pos+2);if(q===61)return this.finishOp(O.assign,3)}return this.finishOp(b===124?O.logicalOR:O.logicalAND,2)}return P===61?this.finishOp(O.assign,2):this.finishOp(b===124?O.bitwiseOR:O.bitwiseAND,1)},Tt.readToken_caret=function(){var b=this.input.charCodeAt(this.pos+1);return b===61?this.finishOp(O.assign,2):this.finishOp(O.bitwiseXOR,1)},Tt.readToken_plus_min=function(b){var P=this.input.charCodeAt(this.pos+1);return P===b?P===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||C.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(O.incDec,2):P===61?this.finishOp(O.assign,2):this.finishOp(O.plusMin,1)},Tt.readToken_lt_gt=function(b){var P=this.input.charCodeAt(this.pos+1),q=1;return P===b?(q=b===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+q)===61?this.finishOp(O.assign,q+1):this.finishOp(O.bitShift,q)):P===33&&b===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45?(this.skipLineComment(4),this.skipSpace(),this.nextToken()):(P===61&&(q=2),this.finishOp(O.relational,q))},Tt.readToken_eq_excl=function(b){var P=this.input.charCodeAt(this.pos+1);return P===61?this.finishOp(O.equality,this.input.charCodeAt(this.pos+2)===61?3:2):b===61&&P===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(O.arrow)):this.finishOp(b===61?O.eq:O.prefix,1)},Tt.readToken_question=function(){var b=this.options.ecmaVersion;if(b>=11){var P=this.input.charCodeAt(this.pos+1);if(P===46){var q=this.input.charCodeAt(this.pos+2);if(q<48||q>57)return this.finishOp(O.questionDot,2)}if(P===63){if(b>=12){var Z=this.input.charCodeAt(this.pos+2);if(Z===61)return this.finishOp(O.assign,3)}return this.finishOp(O.coalesce,2)}}return this.finishOp(O.question,1)},Tt.readToken_numberSign=function(){var b=this.options.ecmaVersion,P=35;if(b>=13&&(++this.pos,P=this.fullCharCodeAtPos(),d(P,!0)||P===92))return this.finishToken(O.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+F(P)+"'")},Tt.getTokenFromCode=function(b){switch(b){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(O.parenL);case 41:return++this.pos,this.finishToken(O.parenR);case 59:return++this.pos,this.finishToken(O.semi);case 44:return++this.pos,this.finishToken(O.comma);case 91:return++this.pos,this.finishToken(O.bracketL);case 93:return++this.pos,this.finishToken(O.bracketR);case 123:return++this.pos,this.finishToken(O.braceL);case 125:return++this.pos,this.finishToken(O.braceR);case 58:return++this.pos,this.finishToken(O.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(O.backQuote);case 48:var P=this.input.charCodeAt(this.pos+1);if(P===120||P===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(P===111||P===79)return this.readRadixNumber(8);if(P===98||P===66)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(b);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(b);case 124:case 38:return this.readToken_pipe_amp(b);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(b);case 60:case 62:return this.readToken_lt_gt(b);case 61:case 33:return this.readToken_eq_excl(b);case 63:return this.readToken_question();case 126:return this.finishOp(O.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+F(b)+"'")},Tt.finishOp=function(b,P){var q=this.input.slice(this.pos,this.pos+P);return this.pos+=P,this.finishToken(b,q)},Tt.readRegexp=function(){for(var b,P,q=this.pos;;){this.pos>=this.input.length&&this.raise(q,"Unterminated regular expression");var Z=this.input.charAt(this.pos);if(C.test(Z)&&this.raise(q,"Unterminated regular expression"),b)b=!1;else{if(Z==="[")P=!0;else if(Z==="]"&&P)P=!1;else if(Z==="/"&&!P)break;b=Z==="\\"}++this.pos}var ge=this.input.slice(q,this.pos);++this.pos;var Re=this.pos,Ne=this.readWord1();this.containsEsc&&this.unexpected(Re);var He=this.regexpState||(this.regexpState=new Nt(this));He.reset(q,ge,Ne),this.validateRegExpFlags(He),this.validateRegExpPattern(He);var Je=null;try{Je=new RegExp(ge,Ne)}catch{}return this.finishToken(O.regexp,{pattern:ge,flags:Ne,value:Je})},Tt.readInt=function(b,P,q){for(var Z=this.options.ecmaVersion>=12&&P===void 0,ge=q&&this.input.charCodeAt(this.pos)===48,Re=this.pos,Ne=0,He=0,Je=0,St=P??1/0;Je=97?ar=At-97+10:At>=65?ar=At-65+10:At>=48&&At<=57?ar=At-48:ar=1/0,ar>=b)break;He=At,Ne=Ne*b+ar}return Z&&He===95&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===Re||P!=null&&this.pos-Re!==P?null:Ne};function Ei(b,P){return P?parseInt(b,8):parseFloat(b.replace(/_/g,""))}function je(b){return typeof BigInt!="function"?null:BigInt(b.replace(/_/g,""))}Tt.readRadixNumber=function(b){var P=this.pos;this.pos+=2;var q=this.readInt(b);return q==null&&this.raise(this.start+2,"Expected number in radix "+b),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(q=je(this.input.slice(P,this.pos)),++this.pos):d(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(O.num,q)},Tt.readNumber=function(b){var P=this.pos;!b&&this.readInt(10,void 0,!0)===null&&this.raise(P,"Invalid number");var q=this.pos-P>=2&&this.input.charCodeAt(P)===48;q&&this.strict&&this.raise(P,"Invalid number");var Z=this.input.charCodeAt(this.pos);if(!q&&!b&&this.options.ecmaVersion>=11&&Z===110){var ge=je(this.input.slice(P,this.pos));return++this.pos,d(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(O.num,ge)}q&&/[89]/.test(this.input.slice(P,this.pos))&&(q=!1),Z===46&&!q&&(++this.pos,this.readInt(10),Z=this.input.charCodeAt(this.pos)),(Z===69||Z===101)&&!q&&(Z=this.input.charCodeAt(++this.pos),(Z===43||Z===45)&&++this.pos,this.readInt(10)===null&&this.raise(P,"Invalid number")),d(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var Re=Ei(this.input.slice(P,this.pos),q);return this.finishToken(O.num,Re)},Tt.readCodePoint=function(){var b=this.input.charCodeAt(this.pos),P;if(b===123){this.options.ecmaVersion<6&&this.unexpected();var q=++this.pos;P=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,P>1114111&&this.invalidStringToken(q,"Code point out of bounds")}else P=this.readHexChar(4);return P},Tt.readString=function(b){for(var P="",q=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var Z=this.input.charCodeAt(this.pos);if(Z===b)break;Z===92?(P+=this.input.slice(q,this.pos),P+=this.readEscapedChar(!1),q=this.pos):Z===8232||Z===8233?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(k(Z)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return P+=this.input.slice(q,this.pos++),this.finishToken(O.string,P)};var M={};Tt.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(b){if(b===M)this.readInvalidTemplateToken();else throw b}this.inTemplateElement=!1},Tt.invalidStringToken=function(b,P){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw M;this.raise(b,P)},Tt.readTmplToken=function(){for(var b="",P=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var q=this.input.charCodeAt(this.pos);if(q===96||q===36&&this.input.charCodeAt(this.pos+1)===123)return this.pos===this.start&&(this.type===O.template||this.type===O.invalidTemplate)?q===36?(this.pos+=2,this.finishToken(O.dollarBraceL)):(++this.pos,this.finishToken(O.backQuote)):(b+=this.input.slice(P,this.pos),this.finishToken(O.template,b));if(q===92)b+=this.input.slice(P,this.pos),b+=this.readEscapedChar(!0),P=this.pos;else if(k(q)){switch(b+=this.input.slice(P,this.pos),++this.pos,q){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:b+=` +`;break;default:b+=String.fromCharCode(q);break}this.options.locations&&(++this.curLine,this.lineStart=this.pos),P=this.pos}else++this.pos}},Tt.readInvalidTemplateToken=function(){for(;this.pos=48&&P<=55){var Z=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],ge=parseInt(Z,8);return ge>255&&(Z=Z.slice(0,-1),ge=parseInt(Z,8)),this.pos+=Z.length-1,P=this.input.charCodeAt(this.pos),(Z!=="0"||P===56||P===57)&&(this.strict||b)&&this.invalidStringToken(this.pos-1-Z.length,b?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(ge)}return k(P)?"":String.fromCharCode(P)}},Tt.readHexChar=function(b){var P=this.pos,q=this.readInt(16,b);return q===null&&this.invalidStringToken(P,"Bad character escape sequence"),q},Tt.readWord1=function(){this.containsEsc=!1;for(var b="",P=!0,q=this.pos,Z=this.options.ecmaVersion>=6;this.pos",nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",frac34:"\xBE",iquest:"\xBF",Agrave:"\xC0",Aacute:"\xC1",Acirc:"\xC2",Atilde:"\xC3",Auml:"\xC4",Aring:"\xC5",AElig:"\xC6",Ccedil:"\xC7",Egrave:"\xC8",Eacute:"\xC9",Ecirc:"\xCA",Euml:"\xCB",Igrave:"\xCC",Iacute:"\xCD",Icirc:"\xCE",Iuml:"\xCF",ETH:"\xD0",Ntilde:"\xD1",Ograve:"\xD2",Oacute:"\xD3",Ocirc:"\xD4",Otilde:"\xD5",Ouml:"\xD6",times:"\xD7",Oslash:"\xD8",Ugrave:"\xD9",Uacute:"\xDA",Ucirc:"\xDB",Uuml:"\xDC",Yacute:"\xDD",THORN:"\xDE",szlig:"\xDF",agrave:"\xE0",aacute:"\xE1",acirc:"\xE2",atilde:"\xE3",auml:"\xE4",aring:"\xE5",aelig:"\xE6",ccedil:"\xE7",egrave:"\xE8",eacute:"\xE9",ecirc:"\xEA",euml:"\xEB",igrave:"\xEC",iacute:"\xED",icirc:"\xEE",iuml:"\xEF",eth:"\xF0",ntilde:"\xF1",ograve:"\xF2",oacute:"\xF3",ocirc:"\xF4",otilde:"\xF5",ouml:"\xF6",divide:"\xF7",oslash:"\xF8",ugrave:"\xF9",uacute:"\xFA",ucirc:"\xFB",uuml:"\xFC",yacute:"\xFD",thorn:"\xFE",yuml:"\xFF",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",fnof:"\u0192",circ:"\u02C6",tilde:"\u02DC",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039A",Lambda:"\u039B",Mu:"\u039C",Nu:"\u039D",Xi:"\u039E",Omicron:"\u039F",Pi:"\u03A0",Rho:"\u03A1",Sigma:"\u03A3",Tau:"\u03A4",Upsilon:"\u03A5",Phi:"\u03A6",Chi:"\u03A7",Psi:"\u03A8",Omega:"\u03A9",alpha:"\u03B1",beta:"\u03B2",gamma:"\u03B3",delta:"\u03B4",epsilon:"\u03B5",zeta:"\u03B6",eta:"\u03B7",theta:"\u03B8",iota:"\u03B9",kappa:"\u03BA",lambda:"\u03BB",mu:"\u03BC",nu:"\u03BD",xi:"\u03BE",omicron:"\u03BF",pi:"\u03C0",rho:"\u03C1",sigmaf:"\u03C2",sigma:"\u03C3",tau:"\u03C4",upsilon:"\u03C5",phi:"\u03C6",chi:"\u03C7",psi:"\u03C8",omega:"\u03C9",thetasym:"\u03D1",upsih:"\u03D2",piv:"\u03D6",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200C",zwj:"\u200D",lrm:"\u200E",rlm:"\u200F",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201A",ldquo:"\u201C",rdquo:"\u201D",bdquo:"\u201E",dagger:"\u2020",Dagger:"\u2021",bull:"\u2022",hellip:"\u2026",permil:"\u2030",prime:"\u2032",Prime:"\u2033",lsaquo:"\u2039",rsaquo:"\u203A",oline:"\u203E",frasl:"\u2044",euro:"\u20AC",image:"\u2111",weierp:"\u2118",real:"\u211C",trade:"\u2122",alefsym:"\u2135",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21B5",lArr:"\u21D0",uArr:"\u21D1",rArr:"\u21D2",dArr:"\u21D3",hArr:"\u21D4",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220B",prod:"\u220F",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221A",prop:"\u221D",infin:"\u221E",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222A",int:"\u222B",there4:"\u2234",sim:"\u223C",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22A5",sdot:"\u22C5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230A",rfloor:"\u230B",lang:"\u2329",rang:"\u232A",loz:"\u25CA",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666"}),ad}var _A;function x6(){return _A||(_A=1,function(r){let e=v6(),t=/^[\da-fA-F]+$/,s=/^\d+$/,n=new WeakMap;function i(o){o=o.Parser.acorn||o;let u=n.get(o);if(!u){let c=o.tokTypes,p=o.TokContext,h=o.TokenType,f=new p("...",!0,!0),g={tc_oTag:f,tc_cTag:d,tc_expr:m},y={jsxName:new h("jsxName"),jsxText:new h("jsxText",{beforeExpr:!0}),jsxTagStart:new h("jsxTagStart",{startsExpr:!0}),jsxTagEnd:new h("jsxTagEnd")};y.jsxTagStart.updateContext=function(){this.context.push(m),this.context.push(f),this.exprAllowed=!1},y.jsxTagEnd.updateContext=function(v){let x=this.context.pop();x===f&&v===c.slash||x===d?(this.context.pop(),this.exprAllowed=this.curContext()===m):this.exprAllowed=!0},u={tokContexts:g,tokTypes:y},n.set(o,u)}return u}function a(o){if(!o)return o;if(o.type==="JSXIdentifier")return o.name;if(o.type==="JSXNamespacedName")return o.namespace.name+":"+o.name.name;if(o.type==="JSXMemberExpression")return a(o.object)+"."+a(o.property)}r.exports=function(o){return o=o||{},function(u){return l({allowNamespaces:o.allowNamespaces!==!1,allowNamespacedObjects:!!o.allowNamespacedObjects},u)}},Object.defineProperty(r.exports,"tokTypes",{get:function(){return i(Jx()).tokTypes},configurable:!0,enumerable:!0});function l(o,u){let c=u.acorn||Jx(),p=i(c),h=c.tokTypes,f=p.tokTypes,d=c.tokContexts,m=p.tokContexts.tc_oTag,g=p.tokContexts.tc_cTag,y=p.tokContexts.tc_expr,v=c.isNewLine,x=c.isIdentifierStart,S=c.isIdentifierChar;return class extends u{static get acornJsx(){return p}jsx_readToken(){let w="",O=this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated JSX contents");let C=this.input.charCodeAt(this.pos);switch(C){case 60:case 123:return this.pos===this.start?C===60&&this.exprAllowed?(++this.pos,this.finishToken(f.jsxTagStart)):this.getTokenFromCode(C):(w+=this.input.slice(O,this.pos),this.finishToken(f.jsxText,w));case 38:w+=this.input.slice(O,this.pos),w+=this.jsx_readEntity(),O=this.pos;break;case 62:case 125:this.raise(this.pos,"Unexpected token `"+this.input[this.pos]+"`. Did you mean `"+(C===62?">":"}")+'` or `{"'+this.input[this.pos]+'"}`?');default:v(C)?(w+=this.input.slice(O,this.pos),w+=this.jsx_readNewLine(!0),O=this.pos):++this.pos}}}jsx_readNewLine(w){let O=this.input.charCodeAt(this.pos),C;return++this.pos,O===13&&this.input.charCodeAt(this.pos)===10?(++this.pos,C=w?` `:`\r -`):w=String.fromCharCode(O),this.options.locations&&(++this.curLine,this.lineStart=this.pos),w}jsx_readString(C){let O="",w=++this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");let E=this.input.charCodeAt(this.pos);if(E===C)break;E===38?(O+=this.input.slice(w,this.pos),O+=this.jsx_readEntity(),w=this.pos):b(E)?(O+=this.input.slice(w,this.pos),O+=this.jsx_readNewLine(!1),w=this.pos):++this.pos}return O+=this.input.slice(w,this.pos++),this.finishToken(h.string,O)}jsx_readEntity(){let C="",O=0,w,E=this.input[this.pos];E!=="&"&&this.raise(this.pos,"Entity must start with an ampersand");let k=++this.pos;for(;this.pos")}let D=k.name?"Element":"Fragment";return w["opening"+D]=k,w["closing"+D]=A,w.children=E,this.type===h.relational&&this.value==="<"&&this.raise(this.start,"Adjacent JSX elements must be wrapped in an enclosing tag"),this.finishNode(w,"JSX"+D)}jsx_parseText(){let C=this.parseLiteral(this.value);return C.type="JSXText",C}jsx_parseElement(){let C=this.start,O=this.startLoc;return this.next(),this.jsx_parseElementAt(C,O)}parseExprAtom(C){return this.type===f.jsxText?this.jsx_parseText():this.type===f.jsxTagStart?this.jsx_parseElement():super.parseExprAtom(C)}readToken(C){let O=this.curContext();if(O===y)return this.jsx_readToken();if(O===m||O===g){if(v(C))return this.jsx_readWord();if(C==62)return++this.pos,this.finishToken(f.jsxTagEnd);if((C===34||C===39)&&O==m)return this.jsx_readString(C)}return C===60&&this.exprAllowed&&this.input.charCodeAt(this.pos+1)!==33?(++this.pos,this.finishToken(f.jsxTagStart)):super.readToken(C)}updateContext(C){if(this.type==h.braceL){var O=this.curContext();O==m?this.context.push(d.b_expr):O==y?this.context.push(d.b_tmpl):super.updateContext(C),this.exprAllowed=!0}else if(this.type===h.slash&&C===f.jsxTagStart)this.context.length-=2,this.context.push(g),this.exprAllowed=!1;else return super.updateContext(C)}}}}(id)),id.exports}var fa={},FA;function v9(){if(FA)return fa;FA=1,Object.defineProperty(fa,"__esModule",{value:!0});let r={ArrayExpression:["elements"],ArrayPattern:["elements"],ArrowFunctionExpression:["params","body"],AssignmentExpression:["left","right"],AssignmentPattern:["left","right"],AwaitExpression:["argument"],BinaryExpression:["left","right"],BlockStatement:["body"],BreakStatement:["label"],CallExpression:["callee","arguments"],CatchClause:["param","body"],ChainExpression:["expression"],ClassBody:["body"],ClassDeclaration:["id","superClass","body"],ClassExpression:["id","superClass","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExperimentalRestProperty:["argument"],ExperimentalSpreadProperty:["argument"],ExportAllDeclaration:["exported","source"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source"],ExportSpecifier:["exported","local"],ExpressionStatement:["expression"],ForInStatement:["left","right","body"],ForOfStatement:["left","right","body"],ForStatement:["init","test","update","body"],FunctionDeclaration:["id","params","body"],FunctionExpression:["id","params","body"],Identifier:[],IfStatement:["test","consequent","alternate"],ImportDeclaration:["specifiers","source"],ImportDefaultSpecifier:["local"],ImportExpression:["source"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXClosingFragment:[],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:[],JSXExpressionContainer:["expression"],JSXFragment:["openingFragment","children","closingFragment"],JSXIdentifier:[],JSXMemberExpression:["object","property"],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","attributes"],JSXOpeningFragment:[],JSXSpreadAttribute:["argument"],JSXSpreadChild:["expression"],JSXText:[],LabeledStatement:["label","body"],Literal:[],LogicalExpression:["left","right"],MemberExpression:["object","property"],MetaProperty:["meta","property"],MethodDefinition:["key","value"],NewExpression:["callee","arguments"],ObjectExpression:["properties"],ObjectPattern:["properties"],PrivateIdentifier:[],Program:["body"],Property:["key","value"],PropertyDefinition:["key","value"],RestElement:["argument"],ReturnStatement:["argument"],SequenceExpression:["expressions"],SpreadElement:["argument"],StaticBlock:["body"],Super:[],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],TaggedTemplateExpression:["tag","quasi"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],YieldExpression:["argument"]},e=Object.keys(r);for(let a of e)Object.freeze(r[a]);Object.freeze(r);let t=new Set(["parent","leadingComments","trailingComments"]);function s(a){return!t.has(a)&&a[0]!=="_"}function n(a){return Object.keys(a).filter(s)}function i(a){let l=Object.assign({},r);for(let o of Object.keys(a))if(Object.prototype.hasOwnProperty.call(l,o)){let u=new Set(a[o]);for(let c of l[o])u.add(c);l[o]=Object.freeze(Array.from(u))}else l[o]=Object.freeze(Array.from(a[o]));return Object.freeze(l)}return fa.KEYS=r,fa.getKeys=n,fa.unionWith=i,fa}var RA;function bc(){if(RA)return En;RA=1,Object.defineProperty(En,"__esModule",{value:!0});var r=eO(),e=b9(),t=v9();function s(F){return F&&typeof F=="object"&&"default"in F?F:{default:F}}function n(F){if(F&&F.__esModule)return F;var j=Object.create(null);return F&&Object.keys(F).forEach(function(Q){if(Q!=="default"){var I=Object.getOwnPropertyDescriptor(F,Q);Object.defineProperty(j,Q,I.get?I:{enumerable:!0,get:function(){return F[Q]}})}}),j.default=F,Object.freeze(j)}var i=n(r),a=s(e),l=n(t);let o={Boolean:"Boolean",EOF:"",Identifier:"Identifier",PrivateIdentifier:"PrivateIdentifier",Keyword:"Keyword",Null:"Null",Numeric:"Numeric",Punctuator:"Punctuator",String:"String",RegularExpression:"RegularExpression",Template:"Template",JSXIdentifier:"JSXIdentifier",JSXText:"JSXText"};function u(F,j){let Q=F[0],I=F[F.length-1],N={type:o.Template,value:j.slice(Q.start,I.end)};return Q.loc&&(N.loc={start:Q.loc.start,end:I.loc.end}),Q.range&&(N.start=Q.range[0],N.end=I.range[1],N.range=[N.start,N.end]),N}function c(F,j){this._acornTokTypes=F,this._tokens=[],this._curlyBrace=null,this._code=j}c.prototype={constructor:c,translate(F,j){let Q=F.type,I=this._acornTokTypes;if(Q===I.name)F.type=o.Identifier,F.value==="static"&&(F.type=o.Keyword),j.ecmaVersion>5&&(F.value==="yield"||F.value==="let")&&(F.type=o.Keyword);else if(Q===I.privateId)F.type=o.PrivateIdentifier;else if(Q===I.semi||Q===I.comma||Q===I.parenL||Q===I.parenR||Q===I.braceL||Q===I.braceR||Q===I.dot||Q===I.bracketL||Q===I.colon||Q===I.question||Q===I.bracketR||Q===I.ellipsis||Q===I.arrow||Q===I.jsxTagStart||Q===I.incDec||Q===I.starstar||Q===I.jsxTagEnd||Q===I.prefix||Q===I.questionDot||Q.binop&&!Q.keyword||Q.isAssign)F.type=o.Punctuator,F.value=this._code.slice(F.start,F.end);else if(Q===I.jsxName)F.type=o.JSXIdentifier;else if(Q.label==="jsxText"||Q===I.jsxAttrValueToken)F.type=o.JSXText;else if(Q.keyword)Q.keyword==="true"||Q.keyword==="false"?F.type=o.Boolean:Q.keyword==="null"?F.type=o.Null:F.type=o.Keyword;else if(Q===I.num)F.type=o.Numeric,F.value=this._code.slice(F.start,F.end);else if(Q===I.string)j.jsxAttrValueToken?(j.jsxAttrValueToken=!1,F.type=o.JSXText):F.type=o.String,F.value=this._code.slice(F.start,F.end);else if(Q===I.regexp){F.type=o.RegularExpression;let N=F.value;F.regex={flags:N.flags,pattern:N.pattern},F.value=`/${N.pattern}/${N.flags}`}return F},onToken(F,j){let Q=this._acornTokTypes,I=j.tokens,N=this._tokens,R=()=>{I.push(u(this._tokens,this._code)),this._tokens=[]};if(F.type===Q.eof){this._curlyBrace&&I.push(this.translate(this._curlyBrace,j));return}if(F.type===Q.backQuote){this._curlyBrace&&(I.push(this.translate(this._curlyBrace,j)),this._curlyBrace=null),N.push(F),N.length>1&&R();return}if(F.type===Q.dollarBraceL){N.push(F),R();return}if(F.type===Q.braceR){this._curlyBrace&&I.push(this.translate(this._curlyBrace,j)),this._curlyBrace=F;return}if(F.type===Q.template||F.type===Q.invalidTemplate){this._curlyBrace&&(N.push(this._curlyBrace),this._curlyBrace=null),N.push(F);return}this._curlyBrace&&(I.push(this.translate(this._curlyBrace,j)),this._curlyBrace=null),I.push(this.translate(F,j))}};let p=[3,5,6,7,8,9,10,11,12,13,14,15];function h(){return p[p.length-1]}function f(){return[...p]}function d(F=5){let j=F==="latest"?h():F;if(typeof j!="number")throw new Error(`ecmaVersion must be a number or "latest". Received value of type ${typeof F} instead.`);if(j>=2015&&(j-=2009),!p.includes(j))throw new Error("Invalid ecmaVersion.");return j}function m(F="script"){if(F==="script"||F==="module")return F;if(F==="commonjs")return"script";throw new Error("Invalid sourceType.")}function g(F){let j=d(F.ecmaVersion),Q=m(F.sourceType),I=F.range===!0,N=F.loc===!0;if(j!==3&&F.allowReserved)throw new Error("`allowReserved` is only supported when ecmaVersion is 3");if(typeof F.allowReserved<"u"&&typeof F.allowReserved!="boolean")throw new Error("`allowReserved`, when present, must be `true` or `false`");let R=j===3?F.allowReserved||"never":!1,U=F.ecmaFeatures||{},V=F.sourceType==="commonjs"||!!U.globalReturn;if(Q==="module"&&j<6)throw new Error("sourceType 'module' is not supported when ecmaVersion < 2015. Consider adding `{ ecmaVersion: 2015 }` to the parser options.");return Object.assign({},F,{ecmaVersion:j,sourceType:Q,ranges:I,locations:N,allowReserved:R,allowReturnOutsideFunction:V})}let y=Symbol("espree's internal state"),b=Symbol("espree's esprimaFinishNode");function v(F,j,Q,I,N,R,U){let V;F?V="Block":U.slice(Q,Q+2)==="#!"?V="Hashbang":V="Line";let ae={type:V,value:j};return typeof Q=="number"&&(ae.start=Q,ae.end=I,ae.range=[Q,I]),typeof N=="object"&&(ae.loc={start:N,end:R}),ae}var S=()=>F=>{let j=Object.assign({},F.acorn.tokTypes);return F.acornJsx&&Object.assign(j,F.acornJsx.tokTypes),class extends F{constructor(I,N){(typeof I!="object"||I===null)&&(I={}),typeof N!="string"&&!(N instanceof String)&&(N=String(N));let R=I.sourceType,U=g(I),V=U.ecmaFeatures||{},ae=U.tokens===!0?new c(j,N):null,se={originalSourceType:R||U.sourceType,tokens:ae?[]:null,comments:U.comment===!0?[]:null,impliedStrict:V.impliedStrict===!0&&U.ecmaVersion>=5,ecmaVersion:U.ecmaVersion,jsxAttrValueToken:!1,lastToken:null,templateElements:[]};super({ecmaVersion:U.ecmaVersion,sourceType:U.sourceType,ranges:U.ranges,locations:U.locations,allowReserved:U.allowReserved,allowReturnOutsideFunction:U.allowReturnOutsideFunction,onToken(ve){ae&&ae.onToken(ve,se),ve.type!==j.eof&&(se.lastToken=ve)},onComment(ve,H,he,$,pe,K){if(se.comments){let le=v(ve,H,he,$,pe,K,N);se.comments.push(le)}}},N),this[y]=se}tokenize(){do this.next();while(this.type!==j.eof);this.next();let I=this[y],N=I.tokens;return I.comments&&(N.comments=I.comments),N}finishNode(...I){let N=super.finishNode(...I);return this[b](N)}finishNodeAt(...I){let N=super.finishNodeAt(...I);return this[b](N)}parse(){let I=this[y],N=super.parse();if(N.sourceType=I.originalSourceType,I.comments&&(N.comments=I.comments),I.tokens&&(N.tokens=I.tokens),N.body.length){let[R]=N.body;N.range&&(N.range[0]=R.range[0]),N.loc&&(N.loc.start=R.loc.start),N.start=R.start}return I.lastToken&&(N.range&&(N.range[1]=I.lastToken.range[1]),N.loc&&(N.loc.end=I.lastToken.loc.end),N.end=I.lastToken.end),this[y].templateElements.forEach(R=>{let V=R.tail?1:2;R.start+=-1,R.end+=V,R.range&&(R.range[0]+=-1,R.range[1]+=V),R.loc&&(R.loc.start.column+=-1,R.loc.end.column+=V)}),N}parseTopLevel(I){return this[y].impliedStrict&&(this.strict=!0),super.parseTopLevel(I)}raise(I,N){let R=F.acorn.getLineInfo(this.input,I),U=new SyntaxError(N);throw U.index=I,U.lineNumber=R.line,U.column=R.column+1,U}raiseRecoverable(I,N){this.raise(I,N)}unexpected(I){let N="Unexpected token";if(I!=null){if(this.pos=I,this.options.locations)for(;this.posthis.start&&(N+=` ${this.input.slice(this.start,this.end)}`),this.raise(this.start,N)}jsx_readString(I){let N=super.jsx_readString(I);return this.type===j.string&&(this[y].jsxAttrValueToken=!0),N}[b](I){return I.type==="TemplateElement"&&this[y].templateElements.push(I),I.type.includes("Function")&&!I.generator&&(I.generator=!1),I}}};let C="10.0.1",O={_regular:null,_jsx:null,get regular(){return this._regular===null&&(this._regular=i.Parser.extend(S())),this._regular},get jsx(){return this._jsx===null&&(this._jsx=i.Parser.extend(a.default(),S())),this._jsx},get(F){return!!(F&&F.ecmaFeatures&&F.ecmaFeatures.jsx)?this.jsx:this.regular}};function w(F,j){let Q=O.get(j);return(!j||j.tokens!==!0)&&(j=Object.assign({},j,{tokens:!0})),new Q(j,F).tokenize()}function E(F,j){let Q=O.get(j);return new Q(j,F).parse()}let k=C,A="espree",D=function(){return l.KEYS}(),_=function(){let F,j={};typeof Object.create=="function"&&(j=Object.create(null));for(F in D)Object.hasOwnProperty.call(D,F)&&(j[F]=F);return typeof Object.freeze=="function"&&Object.freeze(j),j}(),B=h(),T=f();return En.Syntax=_,En.VisitorKeys=D,En.latestEcmaVersion=B,En.name=A,En.parse=E,En.supportedEcmaVersions=T,En.tokenize=w,En.version=k,En}var Mo={exports:{}};Mo.exports;var BA;function O9(){return BA||(BA=1,function(r,e){var t=200,s="__lodash_hash_undefined__",n=800,i=16,a=9007199254740991,l="[object Arguments]",o="[object Array]",u="[object AsyncFunction]",c="[object Boolean]",p="[object Date]",h="[object Error]",f="[object Function]",d="[object GeneratorFunction]",m="[object Map]",g="[object Number]",y="[object Null]",b="[object Object]",v="[object Proxy]",S="[object RegExp]",C="[object Set]",O="[object String]",w="[object Undefined]",E="[object WeakMap]",k="[object ArrayBuffer]",A="[object DataView]",D="[object Float32Array]",_="[object Float64Array]",B="[object Int8Array]",T="[object Int16Array]",F="[object Int32Array]",j="[object Uint8Array]",Q="[object Uint8ClampedArray]",I="[object Uint16Array]",N="[object Uint32Array]",R=/[\\^$.*+?()[\]{}|]/g,U=/^\[object .+?Constructor\]$/,V=/^(?:0|[1-9]\d*)$/,ae={};ae[D]=ae[_]=ae[B]=ae[T]=ae[F]=ae[j]=ae[Q]=ae[I]=ae[N]=!0,ae[l]=ae[o]=ae[k]=ae[c]=ae[A]=ae[p]=ae[h]=ae[f]=ae[m]=ae[g]=ae[b]=ae[S]=ae[C]=ae[O]=ae[E]=!1;var se=typeof Jr=="object"&&Jr&&Jr.Object===Object&&Jr,ve=typeof self=="object"&&self&&self.Object===Object&&self,H=se||ve||Function("return this")(),he=e&&!e.nodeType&&e,$=he&&!0&&r&&!r.nodeType&&r,pe=$&&$.exports===he,K=pe&&se.process,le=function(){try{var ye=$&&$.require&&$.require("util").types;return ye||K&&K.binding&&K.binding("util")}catch{}}(),xe=le&&le.isTypedArray;function Le(ye,Ae,Me){switch(Me.length){case 0:return ye.call(Ae);case 1:return ye.call(Ae,Me[0]);case 2:return ye.call(Ae,Me[0],Me[1]);case 3:return ye.call(Ae,Me[0],Me[1],Me[2])}return ye.apply(Ae,Me)}function qe(ye,Ae){for(var Me=-1,gt=Array(ye);++Me-1}function re(ye,Ae){var Me=this.__data__,gt=dt(Me,ye);return gt<0?(++this.size,Me.push([ye,Ae])):Me[gt][1]=Ae,this}Re.prototype.clear=Oe,Re.prototype.delete=Ie,Re.prototype.get=We,Re.prototype.has=be,Re.prototype.set=re;function Y(ye){var Ae=-1,Me=ye==null?0:ye.length;for(this.clear();++Ae1?Me[Rt-1]:void 0,Jt=Rt>2?Me[2]:void 0;for(zt=ye.length>3&&typeof zt=="function"?(Rt--,zt):void 0,Jt&&Si(Me[0],Me[1],Jt)&&(zt=Rt<3?void 0:zt,Rt=1),Ae=Object(Ae);++gt-1&&ye%1==0&&ye0){if(++Ae>=n)return arguments[0]}else Ae=0;return ye.apply(void 0,arguments)}}function x(ye){if(ye!=null){try{return et.call(ye)}catch{}try{return ye+""}catch{}}return""}function P(ye,Ae){return ye===Ae||ye!==ye&&Ae!==Ae}var q=sr(function(){return arguments}())?sr:function(ye){return At(ye)&&it.call(ye,"callee")&&!De.call(ye,"callee")},z=Array.isArray;function ge(ye){return ye!=null&&Je(ye.length)&&!He(ye)}function Fe(ye){return At(ye)&&ge(ye)}var Ne=oe||SN;function He(ye){if(!St(ye))return!1;var Ae=jt(ye);return Ae==f||Ae==d||Ae==u||Ae==v}function Je(ye){return typeof ye=="number"&&ye>-1&&ye%1==0&&ye<=a}function St(ye){var Ae=typeof ye;return ye!=null&&(Ae=="object"||Ae=="function")}function At(ye){return ye!=null&&typeof ye=="object"}function ar(ye){if(!At(ye)||jt(ye)!=b)return!1;var Ae=Ye(ye);if(Ae===null)return!0;var Me=it.call(Ae,"constructor")&&Ae.constructor;return typeof Me=="function"&&Me instanceof Me&&et.call(Me)==bt}var An=xe?rt(xe):Nt;function js(ye){return Hn(ye,Kn(ye))}function Kn(ye){return ge(ye)?Ge(ye):br(ye)}var Ci=kn(function(ye,Ae,Me){Nr(ye,Ae,Me)});function ms(ye){return function(){return ye}}function Jn(ye){return ye}function SN(){return!1}r.exports=Ci}(Mo,Mo.exports)),Mo.exports}var S9="eslint",E9="9.1.1",C9="Nicholas C. Zakas ",w9="An AST-based pattern checker for JavaScript.",k9={eslint:"./bin/eslint.js"},A9="./lib/api.js",P9={"./package.json":"./package.json",".":"./lib/api.js","./use-at-your-own-risk":"./lib/unsupported-api.js"},T9={"build:docs:update-links":"node tools/fetch-docs-links.js","build:site":"node Makefile.js gensite","build:webpack":"node Makefile.js webpack","build:readme":"node tools/update-readme.js","build:rules-index":"node Makefile.js generateRuleIndexPage",lint:"node Makefile.js lint","lint:docs:js":"node Makefile.js lintDocsJS","lint:docs:rule-examples":"node Makefile.js checkRuleExamples","lint:fix":"node Makefile.js lint -- fix","lint:fix:docs:js":"node Makefile.js lintDocsJS -- fix","lint:unused":"knip","release:generate:alpha":"node Makefile.js generatePrerelease -- alpha","release:generate:beta":"node Makefile.js generatePrerelease -- beta","release:generate:latest":"node Makefile.js generateRelease","release:generate:rc":"node Makefile.js generatePrerelease -- rc","release:publish":"node Makefile.js publishRelease",test:"node Makefile.js test","test:browser":"node Makefile.js wdio","test:cli":"mocha","test:fuzz":"node Makefile.js fuzz","test:performance":"node Makefile.js perf","test:emfile":"node tools/check-emfile-handling.js"},D9={"pre-commit":"lint-staged"},_9=["LICENSE","README.md","bin","conf","lib","messages"],I9="eslint/eslint",F9="https://opencollective.com/eslint",R9="https://eslint.org",B9="https://github.com/eslint/eslint/issues/",N9={"@eslint-community/eslint-utils":"^4.2.0","@eslint-community/regexpp":"^4.6.1","@eslint/eslintrc":"^3.0.2","@eslint/js":"9.1.1","@humanwhocodes/config-array":"^0.13.0","@humanwhocodes/module-importer":"^1.0.1","@humanwhocodes/retry":"^0.2.3","@nodelib/fs.walk":"^1.2.8",ajv:"^6.12.4",chalk:"^4.0.0","cross-spawn":"^7.0.2",debug:"^4.3.2","escape-string-regexp":"^4.0.0","eslint-scope":"^8.0.1","eslint-visitor-keys":"^4.0.0",espree:"^10.0.1",esquery:"^1.4.2",esutils:"^2.0.2","fast-deep-equal":"^3.1.3","file-entry-cache":"^8.0.0","find-up":"^5.0.0","glob-parent":"^6.0.2",ignore:"^5.2.0",imurmurhash:"^0.1.4","is-glob":"^4.0.0","is-path-inside":"^3.0.3","json-stable-stringify-without-jsonify":"^1.0.1",levn:"^0.4.1","lodash.merge":"^4.6.2",minimatch:"^3.1.2","natural-compare":"^1.4.0",optionator:"^0.9.3","strip-ansi":"^6.0.1","text-table":"^0.2.0"},L9={"@babel/core":"^7.4.3","@babel/preset-env":"^7.4.3","@types/estree":"^1.0.5","@types/node":"^20.11.5","@wdio/browser-runner":"^8.14.6","@wdio/cli":"^8.14.6","@wdio/concise-reporter":"^8.14.0","@wdio/globals":"^8.14.6","@wdio/mocha-framework":"^8.14.0","babel-loader":"^8.0.5",c8:"^7.12.0",chai:"^4.0.1",cheerio:"^0.22.0","common-tags":"^1.8.0","core-js":"^3.1.3",ejs:"^3.0.2",eslint:"file:.","eslint-config-eslint":"file:packages/eslint-config-eslint","eslint-plugin-eslint-comments":"^3.2.0","eslint-plugin-eslint-plugin":"^6.0.0","eslint-plugin-internal-rules":"file:tools/internal-rules","eslint-plugin-jsdoc":"^46.9.0","eslint-plugin-n":"^16.6.0","eslint-plugin-unicorn":"^49.0.0","eslint-release":"^3.2.2",eslump:"^3.0.0",esprima:"^4.0.1","fast-glob":"^3.2.11","fs-teardown":"^0.1.3",glob:"^10.0.0",globals:"^15.0.0",got:"^11.8.3","gray-matter":"^4.0.3","js-yaml":"^4.1.0",knip:"^5.8.0","lint-staged":"^11.0.0","load-perf":"^0.2.0","markdown-it":"^12.2.0","markdown-it-container":"^3.0.0",markdownlint:"^0.34.0","markdownlint-cli":"^0.39.0",marked:"^4.0.8",metascraper:"^5.25.7","metascraper-description":"^5.25.7","metascraper-image":"^5.29.3","metascraper-logo":"^5.25.7","metascraper-logo-favicon":"^5.25.7","metascraper-title":"^5.25.7",mocha:"^8.3.2","node-polyfill-webpack-plugin":"^1.0.3","npm-license":"^0.3.3",pirates:"^4.0.5",progress:"^2.0.3",proxyquire:"^2.0.1",recast:"^0.23.0","regenerator-runtime":"^0.14.0","rollup-plugin-node-polyfills":"^0.2.1",semver:"^7.5.3",shelljs:"^0.8.5",sinon:"^11.0.0",typescript:"^5.3.3","vite-plugin-commonjs":"^0.10.0",webpack:"^5.23.0","webpack-cli":"^4.5.0",yorkie:"^2.0.0"},$9=["ast","lint","javascript","ecmascript","espree"],M9="MIT",j9={node:"^18.18.0 || ^20.9.0 || >=21.1.0"},q9={name:S9,version:E9,author:C9,description:w9,bin:k9,main:A9,exports:P9,scripts:T9,gitHooks:D9,"lint-staged":{"*.js":"eslint --fix","*.md":"markdownlint --fix","lib/rules/*.js":["node tools/update-eslint-all.js","git add packages/js/src/configs/eslint-all.js"],"docs/src/rules/*.md":["node tools/check-rule-examples.js","node tools/fetch-docs-links.js","git add docs/src/_data/further_reading_links.json"],"docs/**/*.svg":"npx -y svgo -r --multipass"},files:_9,repository:I9,funding:F9,homepage:R9,bugs:B9,dependencies:N9,devDependencies:L9,keywords:$9,license:M9,engines:j9},od,NA;function vc(){if(NA)return od;NA=1;let r=/^(?:(?:Do)?While|For(?:In|Of)?|Switch)Statement$/u,e=/\r\n|[\r\n\u2028\u2029]/u,t=/^#!([^\r\n]+)/u;function s(){return new RegExp(e.source,"gu")}return od={breakableTypePattern:r,lineBreakPattern:e,createGlobalLinebreakMatcher:s,shebangPattern:t},od}var ld,LA;function Oc(){return LA||(LA=1,ld={directivesPattern:/^(eslint(?:-env|-enable|-disable(?:(?:-next)?-line)?)?|exported|globals?)(?:\s|$)/u}),ld}var Yu={},FB=cc(YQ),Hu={exports:{}};var $A;function Q9(){return $A||($A=1,function(r,e){(function(t,s){s(e)})(this,function(t){function s(){for(var re=arguments.length,Y=Array(re),fe=0;fe1){Y[0]=Y[0].slice(0,-1);for(var Se=Y.length-1,Ee=1;Ee= 0x80 (not a basic code point)","invalid-input":"Invalid input"},D=m-g,_=Math.floor,B=String.fromCharCode;function T(re){throw new RangeError(A[re])}function F(re,Y){for(var fe=[],Se=re.length;Se--;)fe[Se]=Y(re[Se]);return fe}function j(re,Y){var fe=re.split("@"),Se="";fe.length>1&&(Se=fe[0]+"@",re=fe[1]),re=re.replace(k,".");var Ee=re.split("."),ze=F(Ee,Y).join(".");return Se+ze}function Q(re){for(var Y=[],fe=0,Se=re.length;fe=55296&&Ee<=56319&&fe>1,Y+=_(Y/fe);Y>D*y>>1;Ee+=m)Y=_(Y/D);return _(Ee+(D+1)*Y/(Y+b))},V=function(Y){var fe=[],Se=Y.length,Ee=0,ze=C,Ke=S,mt=Y.lastIndexOf(O);mt<0&&(mt=0);for(var Ot=0;Ot=128&&T("not-basic"),fe.push(Y.charCodeAt(Ot));for(var Pt=mt>0?mt+1:0;Pt=Se&&T("invalid-input");var Ge=N(Y.charCodeAt(Pt++));(Ge>=m||Ge>_((d-Ee)/Ue))&&T("overflow"),Ee+=Ge*Ue;var Qe=nt<=Ke?g:nt>=Ke+y?y:nt-Ke;if(Ge_(d/ut)&&T("overflow"),Ue*=ut}var dt=fe.length+1;Ke=U(Ee-xt,dt,xt==0),_(Ee/dt)>d-ze&&T("overflow"),ze+=_(Ee/dt),Ee%=dt,fe.splice(Ee++,0,ze)}return String.fromCodePoint.apply(String,fe)},ae=function(Y){var fe=[];Y=Q(Y);var Se=Y.length,Ee=C,ze=0,Ke=S,mt=!0,Ot=!1,Pt=void 0;try{for(var xt=Y[Symbol.iterator](),Ue;!(mt=(Ue=xt.next()).done);mt=!0){var nt=Ue.value;nt<128&&fe.push(B(nt))}}catch(dn){Ot=!0,Pt=dn}finally{try{!mt&&xt.return&&xt.return()}finally{if(Ot)throw Pt}}var Ge=fe.length,Qe=Ge;for(Ge&&fe.push(O);Qe=Ee&&ot_((d-ze)/Nt)&&T("overflow"),ze+=(ut-Ee)*Nt,Ee=ut;var br=!0,Nr=!1,Cr=void 0;try{for(var Qr=Y[Symbol.iterator](),fs;!(br=(fs=Qr.next()).done);br=!0){var Yn=fs.value;if(Ynd&&T("overflow"),Yn==Ee){for(var dr=ze,ir=m;;ir+=m){var hn=ir<=Ke?g:ir>=Ke+y?y:ir-Ke;if(dr>6|192).toString(16).toUpperCase()+"%"+(Y&63|128).toString(16).toUpperCase():fe="%"+(Y>>12|224).toString(16).toUpperCase()+"%"+(Y>>6&63|128).toString(16).toUpperCase()+"%"+(Y&63|128).toString(16).toUpperCase(),fe}function pe(re){for(var Y="",fe=0,Se=re.length;fe=194&&Ee<224){if(Se-fe>=6){var ze=parseInt(re.substr(fe+4,2),16);Y+=String.fromCharCode((Ee&31)<<6|ze&63)}else Y+=re.substr(fe,6);fe+=6}else if(Ee>=224){if(Se-fe>=9){var Ke=parseInt(re.substr(fe+4,2),16),mt=parseInt(re.substr(fe+7,2),16);Y+=String.fromCharCode((Ee&15)<<12|(Ke&63)<<6|mt&63)}else Y+=re.substr(fe,9);fe+=9}else Y+=re.substr(fe,3),fe+=3}return Y}function K(re,Y){function fe(Se){var Ee=pe(Se);return Ee.match(Y.UNRESERVED)?Ee:Se}return re.scheme&&(re.scheme=String(re.scheme).replace(Y.PCT_ENCODED,fe).toLowerCase().replace(Y.NOT_SCHEME,"")),re.userinfo!==void 0&&(re.userinfo=String(re.userinfo).replace(Y.PCT_ENCODED,fe).replace(Y.NOT_USERINFO,$).replace(Y.PCT_ENCODED,a)),re.host!==void 0&&(re.host=String(re.host).replace(Y.PCT_ENCODED,fe).toLowerCase().replace(Y.NOT_HOST,$).replace(Y.PCT_ENCODED,a)),re.path!==void 0&&(re.path=String(re.path).replace(Y.PCT_ENCODED,fe).replace(re.scheme?Y.NOT_PATH:Y.NOT_PATH_NOSCHEME,$).replace(Y.PCT_ENCODED,a)),re.query!==void 0&&(re.query=String(re.query).replace(Y.PCT_ENCODED,fe).replace(Y.NOT_QUERY,$).replace(Y.PCT_ENCODED,a)),re.fragment!==void 0&&(re.fragment=String(re.fragment).replace(Y.PCT_ENCODED,fe).replace(Y.NOT_FRAGMENT,$).replace(Y.PCT_ENCODED,a)),re}function le(re){return re.replace(/^0*(.*)/,"$1")||"0"}function xe(re,Y){var fe=re.match(Y.IPV4ADDRESS)||[],Se=h(fe,2),Ee=Se[1];return Ee?Ee.split(".").map(le).join("."):re}function Le(re,Y){var fe=re.match(Y.IPV6ADDRESS)||[],Se=h(fe,3),Ee=Se[1],ze=Se[2];if(Ee){for(var Ke=Ee.toLowerCase().split("::").reverse(),mt=h(Ke,2),Ot=mt[0],Pt=mt[1],xt=Pt?Pt.split(":").map(le):[],Ue=Ot.split(":").map(le),nt=Y.IPV4ADDRESS.test(Ue[Ue.length-1]),Ge=nt?7:8,Qe=Ue.length-Ge,ut=Array(Ge),dt=0;dt1){var sr=ut.slice(0,Qt.index),ot=ut.slice(Qt.index+Qt.length);jt=sr.join(":")+"::"+ot.join(":")}else jt=ut.join(":");return ze&&(jt+="%"+ze),jt}else return re}var qe=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,rt="".match(/(){0}/)[1]===void 0;function ht(re){var Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},fe={},Se=Y.iri!==!1?p:c;Y.reference==="suffix"&&(re=(Y.scheme?Y.scheme+":":"")+"//"+re);var Ee=re.match(qe);if(Ee){rt?(fe.scheme=Ee[1],fe.userinfo=Ee[3],fe.host=Ee[4],fe.port=parseInt(Ee[5],10),fe.path=Ee[6]||"",fe.query=Ee[7],fe.fragment=Ee[8],isNaN(fe.port)&&(fe.port=Ee[5])):(fe.scheme=Ee[1]||void 0,fe.userinfo=re.indexOf("@")!==-1?Ee[3]:void 0,fe.host=re.indexOf("//")!==-1?Ee[4]:void 0,fe.port=parseInt(Ee[5],10),fe.path=Ee[6]||"",fe.query=re.indexOf("?")!==-1?Ee[7]:void 0,fe.fragment=re.indexOf("#")!==-1?Ee[8]:void 0,isNaN(fe.port)&&(fe.port=re.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?Ee[4]:void 0)),fe.host&&(fe.host=Le(xe(fe.host,Se),Se)),fe.scheme===void 0&&fe.userinfo===void 0&&fe.host===void 0&&fe.port===void 0&&!fe.path&&fe.query===void 0?fe.reference="same-document":fe.scheme===void 0?fe.reference="relative":fe.fragment===void 0?fe.reference="absolute":fe.reference="uri",Y.reference&&Y.reference!=="suffix"&&Y.reference!==fe.reference&&(fe.error=fe.error||"URI is not a "+Y.reference+" reference.");var ze=he[(Y.scheme||fe.scheme||"").toLowerCase()];if(!Y.unicodeSupport&&(!ze||!ze.unicodeSupport)){if(fe.host&&(Y.domainHost||ze&&ze.domainHost))try{fe.host=H.toASCII(fe.host.replace(Se.PCT_ENCODED,pe).toLowerCase())}catch(Ke){fe.error=fe.error||"Host's domain name can not be converted to ASCII via punycode: "+Ke}K(fe,c)}else K(fe,Se);ze&&ze.parse&&ze.parse(fe,Y)}else fe.error=fe.error||"URI can not be parsed.";return fe}function pt(re,Y){var fe=Y.iri!==!1?p:c,Se=[];return re.userinfo!==void 0&&(Se.push(re.userinfo),Se.push("@")),re.host!==void 0&&Se.push(Le(xe(String(re.host),fe),fe).replace(fe.IPV6ADDRESS,function(Ee,ze,Ke){return"["+ze+(Ke?"%25"+Ke:"")+"]"})),(typeof re.port=="number"||typeof re.port=="string")&&(Se.push(":"),Se.push(String(re.port))),Se.length?Se.join(""):void 0}var Et=/^\.\.?\//,X=/^\/\.(\/|$)/,we=/^\/\.\.(\/|$)/,Ve=/^\/?(?:.|\n)*?(?=\/|$)/;function et(re){for(var Y=[];re.length;)if(re.match(Et))re=re.replace(Et,"");else if(re.match(X))re=re.replace(X,"/");else if(re.match(we))re=re.replace(we,"/"),Y.pop();else if(re==="."||re==="..")re="";else{var fe=re.match(Ve);if(fe){var Se=fe[0];re=re.slice(Se.length),Y.push(Se)}else throw new Error("Unexpected dot segment condition")}return Y.join("")}function it(re){var Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},fe=Y.iri?p:c,Se=[],Ee=he[(Y.scheme||re.scheme||"").toLowerCase()];if(Ee&&Ee.serialize&&Ee.serialize(re,Y),re.host&&!fe.IPV6ADDRESS.test(re.host)){if(Y.domainHost||Ee&&Ee.domainHost)try{re.host=Y.iri?H.toUnicode(re.host):H.toASCII(re.host.replace(fe.PCT_ENCODED,pe).toLowerCase())}catch(mt){re.error=re.error||"Host's domain name can not be converted to "+(Y.iri?"Unicode":"ASCII")+" via punycode: "+mt}}K(re,fe),Y.reference!=="suffix"&&re.scheme&&(Se.push(re.scheme),Se.push(":"));var ze=pt(re,Y);if(ze!==void 0&&(Y.reference!=="suffix"&&Se.push("//"),Se.push(ze),re.path&&re.path.charAt(0)!=="/"&&Se.push("/")),re.path!==void 0){var Ke=re.path;!Y.absolutePath&&(!Ee||!Ee.absolutePath)&&(Ke=et(Ke)),ze===void 0&&(Ke=Ke.replace(/^\/\//,"/%2F")),Se.push(Ke)}return re.query!==void 0&&(Se.push("?"),Se.push(re.query)),re.fragment!==void 0&&(Se.push("#"),Se.push(re.fragment)),Se.join("")}function st(re,Y){var fe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Se=arguments[3],Ee={};return Se||(re=ht(it(re,fe),fe),Y=ht(it(Y,fe),fe)),fe=fe||{},!fe.tolerant&&Y.scheme?(Ee.scheme=Y.scheme,Ee.userinfo=Y.userinfo,Ee.host=Y.host,Ee.port=Y.port,Ee.path=et(Y.path||""),Ee.query=Y.query):(Y.userinfo!==void 0||Y.host!==void 0||Y.port!==void 0?(Ee.userinfo=Y.userinfo,Ee.host=Y.host,Ee.port=Y.port,Ee.path=et(Y.path||""),Ee.query=Y.query):(Y.path?(Y.path.charAt(0)==="/"?Ee.path=et(Y.path):((re.userinfo!==void 0||re.host!==void 0||re.port!==void 0)&&!re.path?Ee.path="/"+Y.path:re.path?Ee.path=re.path.slice(0,re.path.lastIndexOf("/")+1)+Y.path:Ee.path=Y.path,Ee.path=et(Ee.path)),Ee.query=Y.query):(Ee.path=re.path,Y.query!==void 0?Ee.query=Y.query:Ee.query=re.query),Ee.userinfo=re.userinfo,Ee.host=re.host,Ee.port=re.port),Ee.scheme=re.scheme),Ee.fragment=Y.fragment,Ee}function Ct(re,Y,fe){var Se=o({scheme:"null"},fe);return it(st(ht(re,Se),ht(Y,Se),Se,!0),Se)}function bt(re,Y){return typeof re=="string"?re=it(ht(re,Y),Y):i(re)==="object"&&(re=ht(it(re,Y),Y)),re}function Dt(re,Y,fe){return typeof re=="string"?re=it(ht(re,fe),fe):i(re)==="object"&&(re=it(re,fe)),typeof Y=="string"?Y=it(ht(Y,fe),fe):i(Y)==="object"&&(Y=it(Y,fe)),re===Y}function _t(re,Y){return re&&re.toString().replace(!Y||!Y.iri?c.ESCAPE:p.ESCAPE,$)}function W(re,Y){return re&&re.toString().replace(!Y||!Y.iri?c.PCT_ENCODED:p.PCT_ENCODED,pe)}var vt={scheme:"http",domainHost:!0,parse:function(Y,fe){return Y.host||(Y.error=Y.error||"HTTP URIs must have a host."),Y},serialize:function(Y,fe){var Se=String(Y.scheme).toLowerCase()==="https";return(Y.port===(Se?443:80)||Y.port==="")&&(Y.port=void 0),Y.path||(Y.path="/"),Y}},Ye={scheme:"https",domainHost:vt.domainHost,parse:vt.parse,serialize:vt.serialize};function Kt(re){return typeof re.secure=="boolean"?re.secure:String(re.scheme).toLowerCase()==="wss"}var De={scheme:"ws",domainHost:!0,parse:function(Y,fe){var Se=Y;return Se.secure=Kt(Se),Se.resourceName=(Se.path||"/")+(Se.query?"?"+Se.query:""),Se.path=void 0,Se.query=void 0,Se},serialize:function(Y,fe){if((Y.port===(Kt(Y)?443:80)||Y.port==="")&&(Y.port=void 0),typeof Y.secure=="boolean"&&(Y.scheme=Y.secure?"wss":"ws",Y.secure=void 0),Y.resourceName){var Se=Y.resourceName.split("?"),Ee=h(Se,2),ze=Ee[0],Ke=Ee[1];Y.path=ze&&ze!=="/"?ze:void 0,Y.query=Ke,Y.resourceName=void 0}return Y.fragment=void 0,Y}},G={scheme:"wss",domainHost:De.domainHost,parse:De.parse,serialize:De.serialize},ne={},ee="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",oe="[0-9A-Fa-f]",ce=n(n("%[EFef]"+oe+"%"+oe+oe+"%"+oe+oe)+"|"+n("%[89A-Fa-f]"+oe+"%"+oe+oe)+"|"+n("%"+oe+oe)),Z="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",J="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",ie=s(J,'[\\"\\\\]'),de="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",Ce=new RegExp(ee,"g"),L=new RegExp(ce,"g"),ue=new RegExp(s("[^]",Z,"[\\.]",'[\\"]',ie),"g"),Te=new RegExp(s("[^]",ee,de),"g"),Be=Te;function $e(re){var Y=pe(re);return Y.match(Ce)?Y:re}var Re={scheme:"mailto",parse:function(Y,fe){var Se=Y,Ee=Se.to=Se.path?Se.path.split(","):[];if(Se.path=void 0,Se.query){for(var ze=!1,Ke={},mt=Se.query.split("&"),Ot=0,Pt=mt.length;Ot=55296&&i<=56319&&n=D)throw new Error("Cannot access property/index "+B+" levels up, current level is "+D);return _[D-B]}if(B>D)throw new Error("Cannot access data "+B+" levels up, current level is "+D);if(F="data"+(D-B||""),!T)return F}for(var Q=F,I=T.split("/"),N=0;N=0?{index:S,compiling:!0}:(S=this._compilations.length,this._compilations[S]={schema:y,root:b,baseId:v},{index:S,compiling:!1})}function c(y,b,v){var S=p.call(this,y,b,v);S>=0&&this._compilations.splice(S,1)}function p(y,b,v){for(var S=0;S%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,o=/^(?:(?:http[s\u017F]?|ftp):\/\/)(?:(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+(?::(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?@)?(?:(?!10(?:\.[0-9]{1,3}){3})(?!127(?:\.[0-9]{1,3}){3})(?!169\.254(?:\.[0-9]{1,3}){2})(?!192\.168(?:\.[0-9]{1,3}){2})(?!172\.(?:1[6-9]|2[0-9]|3[01])(?:\.[0-9]{1,3}){2})(?:[1-9][0-9]?|1[0-9][0-9]|2[01][0-9]|22[0-3])(?:\.(?:1?[0-9]{1,2}|2[0-4][0-9]|25[0-5])){2}(?:\.(?:[1-9][0-9]?|1[0-9][0-9]|2[0-4][0-9]|25[0-4]))|(?:(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)(?:\.(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)*(?:\.(?:(?:[a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]){2,})))(?::[0-9]{2,5})?(?:\/(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?$/i,u=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,c=/^(?:\/(?:[^~/]|~0|~1)*)*$/,p=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,h=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;vd=f;function f(w){return w=w=="full"?"full":"fast",r.copy(f[w])}f.fast={date:/^\d\d\d\d-[0-1]\d-[0-3]\d$/,time:/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,"date-time":/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,"uri-template":l,url:o,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i,hostname:n,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:O,uuid:u,"json-pointer":c,"json-pointer-uri-fragment":p,"relative-json-pointer":h},f.full={date:m,time:g,"date-time":b,uri:S,"uri-reference":a,"uri-template":l,url:o,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:n,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:O,uuid:u,"json-pointer":c,"json-pointer-uri-fragment":p,"relative-json-pointer":h};function d(w){return w%4===0&&(w%100!==0||w%400===0)}function m(w){var E=w.match(e);if(!E)return!1;var k=+E[1],A=+E[2],D=+E[3];return A>=1&&A<=12&&D>=1&&D<=(A==2&&d(k)?29:t[A])}function g(w,E){var k=w.match(s);if(!k)return!1;var A=k[1],D=k[2],_=k[3],B=k[5];return(A<=23&&D<=59&&_<=59||A==23&&D==59&&_==60)&&(!E||B)}var y=/t|\s/i;function b(w){var E=w.split(y);return E.length==2&&m(E[0])&&g(E[1],!0)}var v=/\/|:/;function S(w){return v.test(w)&&i.test(w)}var C=/[^\\]\\Z/;function O(w){if(C.test(w))return!1;try{return new RegExp(w),!0}catch{return!1}}return vd}var Od,HA;function X9(){return HA||(HA=1,Od=function(e,t,s){var n=" ",i=e.level,a=e.dataLevel,l=e.schema[t],o=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,c="data"+(a||""),p="valid"+i,h,f;if(l=="#"||l=="#/")e.isRoot?(h=e.async,f="validate"):(h=e.root.schema.$async===!0,f="root.refVal[0]");else{var d=e.resolveRef(e.baseId,l,e.isRoot);if(d===void 0){var m=e.MissingRefError.message(e.baseId,l);if(e.opts.missingRefs=="fail"){e.logger.error(m);var g=g||[];g.push(n),n="",e.createErrors!==!1?(n+=" { keyword: '$ref' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(o)+" , params: { ref: '"+e.util.escapeQuotes(l)+"' } ",e.opts.messages!==!1&&(n+=" , message: 'can\\'t resolve reference "+e.util.escapeQuotes(l)+"' "),e.opts.verbose&&(n+=" , schema: "+e.util.toQuotedString(l)+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),n+=" } "):n+=" {} ";var y=n;n=g.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+y+"]); ":n+=" validate.errors = ["+y+"]; return false; ":n+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",u&&(n+=" if (false) { ")}else if(e.opts.missingRefs=="ignore")e.logger.warn(m),u&&(n+=" if (true) { ");else throw new e.MissingRefError(e.baseId,l,m)}else if(d.inline){var b=e.util.copy(e);b.level++;var v="valid"+b.level;b.schema=d.schema,b.schemaPath="",b.errSchemaPath=l;var S=e.validate(b).replace(/validate\.schema/g,d.code);n+=" "+S+" ",u&&(n+=" if ("+v+") { ")}else h=d.$async===!0||e.async&&d.$async!==!1,f=d.code}if(f){var g=g||[];g.push(n),n="",e.opts.passContext?n+=" "+f+".call(this, ":n+=" "+f+"( ",n+=" "+c+", (dataPath || '')",e.errorPath!='""'&&(n+=" + "+e.errorPath);var C=a?"data"+(a-1||""):"parentData",O=a?e.dataPathArr[a]:"parentDataProperty";n+=" , "+C+" , "+O+", rootData) ";var w=n;if(n=g.pop(),h){if(!e.async)throw new Error("async schema referenced by sync schema");u&&(n+=" var "+p+"; "),n+=" try { await "+w+"; ",u&&(n+=" "+p+" = true; "),n+=" } catch (e) { if (!(e instanceof ValidationError)) throw e; if (vErrors === null) vErrors = e.errors; else vErrors = vErrors.concat(e.errors); errors = vErrors.length; ",u&&(n+=" "+p+" = false; "),n+=" } ",u&&(n+=" if ("+p+") { ")}else n+=" if (!"+w+") { if (vErrors === null) vErrors = "+f+".errors; else vErrors = vErrors.concat("+f+".errors); errors = vErrors.length; } ",u&&(n+=" else { ")}return n}),Od}var Sd,KA;function G9(){return KA||(KA=1,Sd=function(e,t,s){var n=" ",i=e.schema[t],a=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,o=!e.opts.allErrors,u=e.util.copy(e),c="";u.level++;var p="valid"+u.level,h=u.baseId,f=!0,d=i;if(d)for(var m,g=-1,y=d.length-1;g0||m===!1:e.util.schemaHasRules(m,e.RULES.all))&&(f=!1,u.schema=m,u.schemaPath=a+"["+g+"]",u.errSchemaPath=l+"/"+g,n+=" "+e.validate(u)+" ",u.baseId=h,o&&(n+=" if ("+p+") { ",c+="}"));return o&&(f?n+=" if (true) { ":n+=" "+c.slice(0,-1)+" "),n}),Sd}var Ed,JA;function Y9(){return JA||(JA=1,Ed=function(e,t,s){var n=" ",i=e.level,a=e.dataLevel,l=e.schema[t],o=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,p="data"+(a||""),h="valid"+i,f="errs__"+i,d=e.util.copy(e),m="";d.level++;var g="valid"+d.level,y=l.every(function(E){return e.opts.strictKeywords?typeof E=="object"&&Object.keys(E).length>0||E===!1:e.util.schemaHasRules(E,e.RULES.all)});if(y){var b=d.baseId;n+=" var "+f+" = errors; var "+h+" = false; ";var v=e.compositeRule;e.compositeRule=d.compositeRule=!0;var S=l;if(S)for(var C,O=-1,w=S.length-1;O0||l===!1:e.util.schemaHasRules(l,e.RULES.all);if(n+="var "+f+" = errors;var "+h+";",C){var O=e.compositeRule;e.compositeRule=d.compositeRule=!0,d.schema=l,d.schemaPath=o,d.errSchemaPath=u,n+=" var "+g+" = false; for (var "+y+" = 0; "+y+" < "+p+".length; "+y+"++) { ",d.errorPath=e.util.getPathExpr(e.errorPath,y,e.opts.jsonPointers,!0);var w=p+"["+y+"]";d.dataPathArr[b]=y;var E=e.validate(d);d.baseId=S,e.util.varOccurences(E,v)<2?n+=" "+e.util.varReplace(E,v,w)+" ":n+=" var "+v+" = "+w+"; "+E+" ",n+=" if ("+g+") break; } ",e.compositeRule=d.compositeRule=O,n+=" "+m+" if (!"+g+") {"}else n+=" if ("+p+".length == 0) {";var k=k||[];k.push(n),n="",e.createErrors!==!1?(n+=" { keyword: 'contains' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: {} ",e.opts.messages!==!1&&(n+=" , message: 'should contain a valid item' "),e.opts.verbose&&(n+=" , schema: validate.schema"+o+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var A=n;return n=k.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+A+"]); ":n+=" validate.errors = ["+A+"]; return false; ":n+=" var err = "+A+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } else { ",C&&(n+=" errors = "+f+"; if (vErrors !== null) { if ("+f+") vErrors.length = "+f+"; else vErrors = null; } "),e.opts.allErrors&&(n+=" } "),n}),kd}var Ad,nP;function eU(){return nP||(nP=1,Ad=function(e,t,s){var n=" ",i=e.level,a=e.dataLevel,l=e.schema[t],o=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,p="data"+(a||""),h="errs__"+i,f=e.util.copy(e),d="";f.level++;var m="valid"+f.level,g={},y={},b=e.opts.ownProperties;for(O in l)if(O!="__proto__"){var v=l[O],S=Array.isArray(v)?y:g;S[O]=v}n+="var "+h+" = errors;";var C=e.errorPath;n+="var missing"+i+";";for(var O in y)if(S=y[O],S.length){if(n+=" if ( "+p+e.util.getProperty(O)+" !== undefined ",b&&(n+=" && Object.prototype.hasOwnProperty.call("+p+", '"+e.util.escapeQuotes(O)+"') "),c){n+=" && ( ";var w=S;if(w)for(var E,k=-1,A=w.length-1;k0||v===!1:e.util.schemaHasRules(v,e.RULES.all))&&(n+=" "+m+" = true; if ( "+p+e.util.getProperty(O)+" !== undefined ",b&&(n+=" && Object.prototype.hasOwnProperty.call("+p+", '"+e.util.escapeQuotes(O)+"') "),n+=") { ",f.schema=v,f.schemaPath=o+e.util.getProperty(O),f.errSchemaPath=u+"/"+e.util.escapeFragment(O),n+=" "+e.validate(f)+" ",f.baseId=R,n+=" } ",c&&(n+=" if ("+m+") { ",d+="}"))}return c&&(n+=" "+d+" if ("+h+" == errors) {"),n}),Ad}var Pd,sP;function tU(){return sP||(sP=1,Pd=function(e,t,s){var n=" ",i=e.level,a=e.dataLevel,l=e.schema[t],o=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,p="data"+(a||""),h="valid"+i,f=e.opts.$data&&l&&l.$data;f&&(n+=" var schema"+i+" = "+e.util.getData(l.$data,a,e.dataPathArr)+"; ");var d="i"+i,m="schema"+i;f||(n+=" var "+m+" = validate.schema"+o+";"),n+="var "+h+";",f&&(n+=" if (schema"+i+" === undefined) "+h+" = true; else if (!Array.isArray(schema"+i+")) "+h+" = false; else {"),n+=""+h+" = false;for (var "+d+"=0; "+d+"<"+m+".length; "+d+"++) if (equal("+p+", "+m+"["+d+"])) { "+h+" = true; break; }",f&&(n+=" } "),n+=" if (!"+h+") { ";var g=g||[];g.push(n),n="",e.createErrors!==!1?(n+=" { keyword: 'enum' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { allowedValues: schema"+i+" } ",e.opts.messages!==!1&&(n+=" , message: 'should be equal to one of the allowed values' "),e.opts.verbose&&(n+=" , schema: validate.schema"+o+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var y=n;return n=g.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+y+"]); ":n+=" validate.errors = ["+y+"]; return false; ":n+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" }",c&&(n+=" else { "),n}),Pd}var Td,iP;function rU(){return iP||(iP=1,Td=function(e,t,s){var n=" ",i=e.level,a=e.dataLevel,l=e.schema[t],o=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,p="data"+(a||"");if(e.opts.format===!1)return c&&(n+=" if (true) { "),n;var h=e.opts.$data&&l&&l.$data,f;h?(n+=" var schema"+i+" = "+e.util.getData(l.$data,a,e.dataPathArr)+"; ",f="schema"+i):f=l;var d=e.opts.unknownFormats,m=Array.isArray(d);if(h){var g="format"+i,y="isObject"+i,b="formatType"+i;n+=" var "+g+" = formats["+f+"]; var "+y+" = typeof "+g+" == 'object' && !("+g+" instanceof RegExp) && "+g+".validate; var "+b+" = "+y+" && "+g+".type || 'string'; if ("+y+") { ",e.async&&(n+=" var async"+i+" = "+g+".async; "),n+=" "+g+" = "+g+".validate; } if ( ",h&&(n+=" ("+f+" !== undefined && typeof "+f+" != 'string') || "),n+=" (",d!="ignore"&&(n+=" ("+f+" && !"+g+" ",m&&(n+=" && self._opts.unknownFormats.indexOf("+f+") == -1 "),n+=") || "),n+=" ("+g+" && "+b+" == '"+s+"' && !(typeof "+g+" == 'function' ? ",e.async?n+=" (async"+i+" ? await "+g+"("+p+") : "+g+"("+p+")) ":n+=" "+g+"("+p+") ",n+=" : "+g+".test("+p+"))))) {"}else{var g=e.formats[l];if(!g){if(d=="ignore")return e.logger.warn('unknown format "'+l+'" ignored in schema at path "'+e.errSchemaPath+'"'),c&&(n+=" if (true) { "),n;if(m&&d.indexOf(l)>=0)return c&&(n+=" if (true) { "),n;throw new Error('unknown format "'+l+'" is used in schema at path "'+e.errSchemaPath+'"')}var y=typeof g=="object"&&!(g instanceof RegExp)&&g.validate,b=y&&g.type||"string";if(y){var v=g.async===!0;g=g.validate}if(b!=s)return c&&(n+=" if (true) { "),n;if(v){if(!e.async)throw new Error("async format in sync schema");var S="formats"+e.util.getProperty(l)+".validate";n+=" if (!(await "+S+"("+p+"))) { "}else{n+=" if (! ";var S="formats"+e.util.getProperty(l);y&&(S+=".validate"),typeof g=="function"?n+=" "+S+"("+p+") ":n+=" "+S+".test("+p+") ",n+=") { "}}var C=C||[];C.push(n),n="",e.createErrors!==!1?(n+=" { keyword: 'format' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { format: ",h?n+=""+f:n+=""+e.util.toQuotedString(l),n+=" } ",e.opts.messages!==!1&&(n+=` , message: 'should match format "`,h?n+="' + "+f+" + '":n+=""+e.util.escapeQuotes(l),n+=`"' `),e.opts.verbose&&(n+=" , schema: ",h?n+="validate.schema"+o:n+=""+e.util.toQuotedString(l),n+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var O=n;return n=C.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+O+"]); ":n+=" validate.errors = ["+O+"]; return false; ":n+=" var err = "+O+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } ",c&&(n+=" else { "),n}),Td}var Dd,aP;function nU(){return aP||(aP=1,Dd=function(e,t,s){var n=" ",i=e.level,a=e.dataLevel,l=e.schema[t],o=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,p="data"+(a||""),h="valid"+i,f="errs__"+i,d=e.util.copy(e);d.level++;var m="valid"+d.level,g=e.schema.then,y=e.schema.else,b=g!==void 0&&(e.opts.strictKeywords?typeof g=="object"&&Object.keys(g).length>0||g===!1:e.util.schemaHasRules(g,e.RULES.all)),v=y!==void 0&&(e.opts.strictKeywords?typeof y=="object"&&Object.keys(y).length>0||y===!1:e.util.schemaHasRules(y,e.RULES.all)),S=d.baseId;if(b||v){var C;d.createErrors=!1,d.schema=l,d.schemaPath=o,d.errSchemaPath=u,n+=" var "+f+" = errors; var "+h+" = true; ";var O=e.compositeRule;e.compositeRule=d.compositeRule=!0,n+=" "+e.validate(d)+" ",d.baseId=S,d.createErrors=!0,n+=" errors = "+f+"; if (vErrors !== null) { if ("+f+") vErrors.length = "+f+"; else vErrors = null; } ",e.compositeRule=d.compositeRule=O,b?(n+=" if ("+m+") { ",d.schema=e.schema.then,d.schemaPath=e.schemaPath+".then",d.errSchemaPath=e.errSchemaPath+"/then",n+=" "+e.validate(d)+" ",d.baseId=S,n+=" "+h+" = "+m+"; ",b&&v?(C="ifClause"+i,n+=" var "+C+" = 'then'; "):C="'then'",n+=" } ",v&&(n+=" else { ")):n+=" if (!"+m+") { ",v&&(d.schema=e.schema.else,d.schemaPath=e.schemaPath+".else",d.errSchemaPath=e.errSchemaPath+"/else",n+=" "+e.validate(d)+" ",d.baseId=S,n+=" "+h+" = "+m+"; ",b&&v?(C="ifClause"+i,n+=" var "+C+" = 'else'; "):C="'else'",n+=" } "),n+=" if (!"+h+") { var err = ",e.createErrors!==!1?(n+=" { keyword: 'if' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { failingKeyword: "+C+" } ",e.opts.messages!==!1&&(n+=` , message: 'should match "' + `+C+` + '" schema' `),e.opts.verbose&&(n+=" , schema: validate.schema"+o+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&c&&(e.async?n+=" throw new ValidationError(vErrors); ":n+=" validate.errors = vErrors; return false; "),n+=" } ",c&&(n+=" else { ")}else c&&(n+=" if (true) { ");return n}),Dd}var _d,oP;function sU(){return oP||(oP=1,_d=function(e,t,s){var n=" ",i=e.level,a=e.dataLevel,l=e.schema[t],o=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,p="data"+(a||""),h="valid"+i,f="errs__"+i,d=e.util.copy(e),m="";d.level++;var g="valid"+d.level,y="i"+i,b=d.dataLevel=e.dataLevel+1,v="data"+b,S=e.baseId;if(n+="var "+f+" = errors;var "+h+";",Array.isArray(l)){var C=e.schema.additionalItems;if(C===!1){n+=" "+h+" = "+p+".length <= "+l.length+"; ";var O=u;u=e.errSchemaPath+"/additionalItems",n+=" if (!"+h+") { ";var w=w||[];w.push(n),n="",e.createErrors!==!1?(n+=" { keyword: 'additionalItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { limit: "+l.length+" } ",e.opts.messages!==!1&&(n+=" , message: 'should NOT have more than "+l.length+" items' "),e.opts.verbose&&(n+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var E=n;n=w.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+E+"]); ":n+=" validate.errors = ["+E+"]; return false; ":n+=" var err = "+E+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } ",u=O,c&&(m+="}",n+=" else { ")}var k=l;if(k){for(var A,D=-1,_=k.length-1;D<_;)if(A=k[D+=1],e.opts.strictKeywords?typeof A=="object"&&Object.keys(A).length>0||A===!1:e.util.schemaHasRules(A,e.RULES.all)){n+=" "+g+" = true; if ("+p+".length > "+D+") { ";var B=p+"["+D+"]";d.schema=A,d.schemaPath=o+"["+D+"]",d.errSchemaPath=u+"/"+D,d.errorPath=e.util.getPathExpr(e.errorPath,D,e.opts.jsonPointers,!0),d.dataPathArr[b]=D;var T=e.validate(d);d.baseId=S,e.util.varOccurences(T,v)<2?n+=" "+e.util.varReplace(T,v,B)+" ":n+=" var "+v+" = "+B+"; "+T+" ",n+=" } ",c&&(n+=" if ("+g+") { ",m+="}")}}if(typeof C=="object"&&(e.opts.strictKeywords?typeof C=="object"&&Object.keys(C).length>0||C===!1:e.util.schemaHasRules(C,e.RULES.all))){d.schema=C,d.schemaPath=e.schemaPath+".additionalItems",d.errSchemaPath=e.errSchemaPath+"/additionalItems",n+=" "+g+" = true; if ("+p+".length > "+l.length+") { for (var "+y+" = "+l.length+"; "+y+" < "+p+".length; "+y+"++) { ",d.errorPath=e.util.getPathExpr(e.errorPath,y,e.opts.jsonPointers,!0);var B=p+"["+y+"]";d.dataPathArr[b]=y;var T=e.validate(d);d.baseId=S,e.util.varOccurences(T,v)<2?n+=" "+e.util.varReplace(T,v,B)+" ":n+=" var "+v+" = "+B+"; "+T+" ",c&&(n+=" if (!"+g+") break; "),n+=" } } ",c&&(n+=" if ("+g+") { ",m+="}")}}else if(e.opts.strictKeywords?typeof l=="object"&&Object.keys(l).length>0||l===!1:e.util.schemaHasRules(l,e.RULES.all)){d.schema=l,d.schemaPath=o,d.errSchemaPath=u,n+=" for (var "+y+" = 0; "+y+" < "+p+".length; "+y+"++) { ",d.errorPath=e.util.getPathExpr(e.errorPath,y,e.opts.jsonPointers,!0);var B=p+"["+y+"]";d.dataPathArr[b]=y;var T=e.validate(d);d.baseId=S,e.util.varOccurences(T,v)<2?n+=" "+e.util.varReplace(T,v,B)+" ":n+=" var "+v+" = "+B+"; "+T+" ",c&&(n+=" if (!"+g+") break; "),n+=" }"}return c&&(n+=" "+m+" if ("+f+" == errors) {"),n}),_d}var Id,lP;function uP(){return lP||(lP=1,Id=function(e,t,s){var n=" ",i=e.level,a=e.dataLevel,l=e.schema[t],o=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,S,p="data"+(a||""),h=e.opts.$data&&l&&l.$data,f;h?(n+=" var schema"+i+" = "+e.util.getData(l.$data,a,e.dataPathArr)+"; ",f="schema"+i):f=l;var d=t=="maximum",m=d?"exclusiveMaximum":"exclusiveMinimum",g=e.schema[m],y=e.opts.$data&&g&&g.$data,b=d?"<":">",v=d?">":"<",S=void 0;if(!(h||typeof l=="number"||l===void 0))throw new Error(t+" must be number");if(!(y||g===void 0||typeof g=="number"||typeof g=="boolean"))throw new Error(m+" must be number or boolean");if(y){var C=e.util.getData(g.$data,a,e.dataPathArr),O="exclusive"+i,w="exclType"+i,E="exclIsNumber"+i,k="op"+i,A="' + "+k+" + '";n+=" var schemaExcl"+i+" = "+C+"; ",C="schemaExcl"+i,n+=" var "+O+"; var "+w+" = typeof "+C+"; if ("+w+" != 'boolean' && "+w+" != 'undefined' && "+w+" != 'number') { ";var S=m,D=D||[];D.push(n),n="",e.createErrors!==!1?(n+=" { keyword: '"+(S||"_exclusiveLimit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: {} ",e.opts.messages!==!1&&(n+=" , message: '"+m+" should be boolean' "),e.opts.verbose&&(n+=" , schema: validate.schema"+o+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var _=n;n=D.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+_+"]); ":n+=" validate.errors = ["+_+"]; return false; ":n+=" var err = "+_+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } else if ( ",h&&(n+=" ("+f+" !== undefined && typeof "+f+" != 'number') || "),n+=" "+w+" == 'number' ? ( ("+O+" = "+f+" === undefined || "+C+" "+b+"= "+f+") ? "+p+" "+v+"= "+C+" : "+p+" "+v+" "+f+" ) : ( ("+O+" = "+C+" === true) ? "+p+" "+v+"= "+f+" : "+p+" "+v+" "+f+" ) || "+p+" !== "+p+") { var op"+i+" = "+O+" ? '"+b+"' : '"+b+"='; ",l===void 0&&(S=m,u=e.errSchemaPath+"/"+m,f=C,h=y)}else{var E=typeof g=="number",A=b;if(E&&h){var k="'"+A+"'";n+=" if ( ",h&&(n+=" ("+f+" !== undefined && typeof "+f+" != 'number') || "),n+=" ( "+f+" === undefined || "+g+" "+b+"= "+f+" ? "+p+" "+v+"= "+g+" : "+p+" "+v+" "+f+" ) || "+p+" !== "+p+") { "}else{E&&l===void 0?(O=!0,S=m,u=e.errSchemaPath+"/"+m,f=g,v+="="):(E&&(f=Math[d?"min":"max"](g,l)),g===(E?f:!0)?(O=!0,S=m,u=e.errSchemaPath+"/"+m,v+="="):(O=!1,A+="="));var k="'"+A+"'";n+=" if ( ",h&&(n+=" ("+f+" !== undefined && typeof "+f+" != 'number') || "),n+=" "+p+" "+v+" "+f+" || "+p+" !== "+p+") { "}}S=S||t;var D=D||[];D.push(n),n="",e.createErrors!==!1?(n+=" { keyword: '"+(S||"_limit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { comparison: "+k+", limit: "+f+", exclusive: "+O+" } ",e.opts.messages!==!1&&(n+=" , message: 'should be "+A+" ",h?n+="' + "+f:n+=""+f+"'"),e.opts.verbose&&(n+=" , schema: ",h?n+="validate.schema"+o:n+=""+l,n+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var _=n;return n=D.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+_+"]); ":n+=" validate.errors = ["+_+"]; return false; ":n+=" var err = "+_+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } ",c&&(n+=" else { "),n}),Id}var Fd,cP;function fP(){return cP||(cP=1,Fd=function(e,t,s){var n=" ",i=e.level,a=e.dataLevel,l=e.schema[t],o=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,m,p="data"+(a||""),h=e.opts.$data&&l&&l.$data,f;if(h?(n+=" var schema"+i+" = "+e.util.getData(l.$data,a,e.dataPathArr)+"; ",f="schema"+i):f=l,!(h||typeof l=="number"))throw new Error(t+" must be number");var d=t=="maxItems"?">":"<";n+="if ( ",h&&(n+=" ("+f+" !== undefined && typeof "+f+" != 'number') || "),n+=" "+p+".length "+d+" "+f+") { ";var m=t,g=g||[];g.push(n),n="",e.createErrors!==!1?(n+=" { keyword: '"+(m||"_limitItems")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { limit: "+f+" } ",e.opts.messages!==!1&&(n+=" , message: 'should NOT have ",t=="maxItems"?n+="more":n+="fewer",n+=" than ",h?n+="' + "+f+" + '":n+=""+l,n+=" items' "),e.opts.verbose&&(n+=" , schema: ",h?n+="validate.schema"+o:n+=""+l,n+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var y=n;return n=g.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+y+"]); ":n+=" validate.errors = ["+y+"]; return false; ":n+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+="} ",c&&(n+=" else { "),n}),Fd}var Rd,pP;function hP(){return pP||(pP=1,Rd=function(e,t,s){var n=" ",i=e.level,a=e.dataLevel,l=e.schema[t],o=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,m,p="data"+(a||""),h=e.opts.$data&&l&&l.$data,f;if(h?(n+=" var schema"+i+" = "+e.util.getData(l.$data,a,e.dataPathArr)+"; ",f="schema"+i):f=l,!(h||typeof l=="number"))throw new Error(t+" must be number");var d=t=="maxLength"?">":"<";n+="if ( ",h&&(n+=" ("+f+" !== undefined && typeof "+f+" != 'number') || "),e.opts.unicode===!1?n+=" "+p+".length ":n+=" ucs2length("+p+") ",n+=" "+d+" "+f+") { ";var m=t,g=g||[];g.push(n),n="",e.createErrors!==!1?(n+=" { keyword: '"+(m||"_limitLength")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { limit: "+f+" } ",e.opts.messages!==!1&&(n+=" , message: 'should NOT be ",t=="maxLength"?n+="longer":n+="shorter",n+=" than ",h?n+="' + "+f+" + '":n+=""+l,n+=" characters' "),e.opts.verbose&&(n+=" , schema: ",h?n+="validate.schema"+o:n+=""+l,n+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var y=n;return n=g.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+y+"]); ":n+=" validate.errors = ["+y+"]; return false; ":n+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+="} ",c&&(n+=" else { "),n}),Rd}var Bd,dP;function mP(){return dP||(dP=1,Bd=function(e,t,s){var n=" ",i=e.level,a=e.dataLevel,l=e.schema[t],o=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,m,p="data"+(a||""),h=e.opts.$data&&l&&l.$data,f;if(h?(n+=" var schema"+i+" = "+e.util.getData(l.$data,a,e.dataPathArr)+"; ",f="schema"+i):f=l,!(h||typeof l=="number"))throw new Error(t+" must be number");var d=t=="maxProperties"?">":"<";n+="if ( ",h&&(n+=" ("+f+" !== undefined && typeof "+f+" != 'number') || "),n+=" Object.keys("+p+").length "+d+" "+f+") { ";var m=t,g=g||[];g.push(n),n="",e.createErrors!==!1?(n+=" { keyword: '"+(m||"_limitProperties")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { limit: "+f+" } ",e.opts.messages!==!1&&(n+=" , message: 'should NOT have ",t=="maxProperties"?n+="more":n+="fewer",n+=" than ",h?n+="' + "+f+" + '":n+=""+l,n+=" properties' "),e.opts.verbose&&(n+=" , schema: ",h?n+="validate.schema"+o:n+=""+l,n+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var y=n;return n=g.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+y+"]); ":n+=" validate.errors = ["+y+"]; return false; ":n+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+="} ",c&&(n+=" else { "),n}),Bd}var Nd,gP;function iU(){return gP||(gP=1,Nd=function(e,t,s){var n=" ",i=e.level,a=e.dataLevel,l=e.schema[t],o=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,p="data"+(a||""),h=e.opts.$data&&l&&l.$data,f;if(h?(n+=" var schema"+i+" = "+e.util.getData(l.$data,a,e.dataPathArr)+"; ",f="schema"+i):f=l,!(h||typeof l=="number"))throw new Error(t+" must be number");n+="var division"+i+";if (",h&&(n+=" "+f+" !== undefined && ( typeof "+f+" != 'number' || "),n+=" (division"+i+" = "+p+" / "+f+", ",e.opts.multipleOfPrecision?n+=" Math.abs(Math.round(division"+i+") - division"+i+") > 1e-"+e.opts.multipleOfPrecision+" ":n+=" division"+i+" !== parseInt(division"+i+") ",n+=" ) ",h&&(n+=" ) "),n+=" ) { ";var d=d||[];d.push(n),n="",e.createErrors!==!1?(n+=" { keyword: 'multipleOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { multipleOf: "+f+" } ",e.opts.messages!==!1&&(n+=" , message: 'should be multiple of ",h?n+="' + "+f:n+=""+f+"'"),e.opts.verbose&&(n+=" , schema: ",h?n+="validate.schema"+o:n+=""+l,n+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var m=n;return n=d.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+m+"]); ":n+=" validate.errors = ["+m+"]; return false; ":n+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+="} ",c&&(n+=" else { "),n}),Nd}var Ld,yP;function aU(){return yP||(yP=1,Ld=function(e,t,s){var n=" ",i=e.level,a=e.dataLevel,l=e.schema[t],o=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,p="data"+(a||""),h="errs__"+i,f=e.util.copy(e);f.level++;var d="valid"+f.level;if(e.opts.strictKeywords?typeof l=="object"&&Object.keys(l).length>0||l===!1:e.util.schemaHasRules(l,e.RULES.all)){f.schema=l,f.schemaPath=o,f.errSchemaPath=u,n+=" var "+h+" = errors; ";var m=e.compositeRule;e.compositeRule=f.compositeRule=!0,f.createErrors=!1;var g;f.opts.allErrors&&(g=f.opts.allErrors,f.opts.allErrors=!1),n+=" "+e.validate(f)+" ",f.createErrors=!0,g&&(f.opts.allErrors=g),e.compositeRule=f.compositeRule=m,n+=" if ("+d+") { ";var y=y||[];y.push(n),n="",e.createErrors!==!1?(n+=" { keyword: 'not' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: {} ",e.opts.messages!==!1&&(n+=" , message: 'should NOT be valid' "),e.opts.verbose&&(n+=" , schema: validate.schema"+o+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var b=n;n=y.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+b+"]); ":n+=" validate.errors = ["+b+"]; return false; ":n+=" var err = "+b+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } else { errors = "+h+"; if (vErrors !== null) { if ("+h+") vErrors.length = "+h+"; else vErrors = null; } ",e.opts.allErrors&&(n+=" } ")}else n+=" var err = ",e.createErrors!==!1?(n+=" { keyword: 'not' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: {} ",e.opts.messages!==!1&&(n+=" , message: 'should NOT be valid' "),e.opts.verbose&&(n+=" , schema: validate.schema"+o+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",c&&(n+=" if (false) { ");return n}),Ld}var $d,xP;function oU(){return xP||(xP=1,$d=function(e,t,s){var n=" ",i=e.level,a=e.dataLevel,l=e.schema[t],o=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,p="data"+(a||""),h="valid"+i,f="errs__"+i,d=e.util.copy(e),m="";d.level++;var g="valid"+d.level,y=d.baseId,b="prevValid"+i,v="passingSchemas"+i;n+="var "+f+" = errors , "+b+" = false , "+h+" = false , "+v+" = null; ";var S=e.compositeRule;e.compositeRule=d.compositeRule=!0;var C=l;if(C)for(var O,w=-1,E=C.length-1;w0||O===!1:e.util.schemaHasRules(O,e.RULES.all))?(d.schema=O,d.schemaPath=o+"["+w+"]",d.errSchemaPath=u+"/"+w,n+=" "+e.validate(d)+" ",d.baseId=y):n+=" var "+g+" = true; ",w&&(n+=" if ("+g+" && "+b+") { "+h+" = false; "+v+" = ["+v+", "+w+"]; } else { ",m+="}"),n+=" if ("+g+") { "+h+" = "+b+" = true; "+v+" = "+w+"; }";return e.compositeRule=d.compositeRule=S,n+=""+m+"if (!"+h+") { var err = ",e.createErrors!==!1?(n+=" { keyword: 'oneOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { passingSchemas: "+v+" } ",e.opts.messages!==!1&&(n+=" , message: 'should match exactly one schema in oneOf' "),e.opts.verbose&&(n+=" , schema: validate.schema"+o+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&c&&(e.async?n+=" throw new ValidationError(vErrors); ":n+=" validate.errors = vErrors; return false; "),n+="} else { errors = "+f+"; if (vErrors !== null) { if ("+f+") vErrors.length = "+f+"; else vErrors = null; }",e.opts.allErrors&&(n+=" } "),n}),$d}var Md,bP;function lU(){return bP||(bP=1,Md=function(e,t,s){var n=" ",i=e.level,a=e.dataLevel,l=e.schema[t],o=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,p="data"+(a||""),h=e.opts.$data&&l&&l.$data,f;h?(n+=" var schema"+i+" = "+e.util.getData(l.$data,a,e.dataPathArr)+"; ",f="schema"+i):f=l;var d=h?"(new RegExp("+f+"))":e.usePattern(l);n+="if ( ",h&&(n+=" ("+f+" !== undefined && typeof "+f+" != 'string') || "),n+=" !"+d+".test("+p+") ) { ";var m=m||[];m.push(n),n="",e.createErrors!==!1?(n+=" { keyword: 'pattern' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { pattern: ",h?n+=""+f:n+=""+e.util.toQuotedString(l),n+=" } ",e.opts.messages!==!1&&(n+=` , message: 'should match pattern "`,h?n+="' + "+f+" + '":n+=""+e.util.escapeQuotes(l),n+=`"' `),e.opts.verbose&&(n+=" , schema: ",h?n+="validate.schema"+o:n+=""+e.util.toQuotedString(l),n+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var g=n;return n=m.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+g+"]); ":n+=" validate.errors = ["+g+"]; return false; ":n+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+="} ",c&&(n+=" else { "),n}),Md}var jd,vP;function uU(){return vP||(vP=1,jd=function(e,t,s){var n=" ",i=e.level,a=e.dataLevel,l=e.schema[t],o=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,p="data"+(a||""),h="errs__"+i,f=e.util.copy(e),d="";f.level++;var m="valid"+f.level,g="key"+i,y="idx"+i,b=f.dataLevel=e.dataLevel+1,v="data"+b,S="dataProperties"+i,C=Object.keys(l||{}).filter(I),O=e.schema.patternProperties||{},w=Object.keys(O).filter(I),E=e.schema.additionalProperties,k=C.length||w.length,A=E===!1,D=typeof E=="object"&&Object.keys(E).length,_=e.opts.removeAdditional,B=A||D||_,T=e.opts.ownProperties,F=e.baseId,j=e.schema.required;if(j&&!(e.opts.$data&&j.$data)&&j.length8)n+=" || validate.schema"+o+".hasOwnProperty("+g+") ";else{var N=C;if(N)for(var R,U=-1,V=N.length-1;U0||X===!1:e.util.schemaHasRules(X,e.RULES.all)){var we=e.util.getProperty(R),Le=p+we,Ve=rt&&X.default!==void 0;f.schema=X,f.schemaPath=o+we,f.errSchemaPath=u+"/"+e.util.escapeFragment(R),f.errorPath=e.util.getPath(e.errorPath,R,e.opts.jsonPointers),f.dataPathArr[b]=e.util.toQuotedString(R);var qe=e.validate(f);if(f.baseId=F,e.util.varOccurences(qe,v)<2){qe=e.util.varReplace(qe,v,Le);var et=Le}else{var et=v;n+=" var "+v+" = "+Le+"; "}if(Ve)n+=" "+qe+" ";else{if(Q&&Q[R]){n+=" if ( "+et+" === undefined ",T&&(n+=" || ! Object.prototype.hasOwnProperty.call("+p+", '"+e.util.escapeQuotes(R)+"') "),n+=") { "+m+" = false; ";var he=e.errorPath,pe=u,it=e.util.escapeQuotes(R);e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(he,R,e.opts.jsonPointers)),u=e.errSchemaPath+"/required";var K=K||[];K.push(n),n="",e.createErrors!==!1?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { missingProperty: '"+it+"' } ",e.opts.messages!==!1&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+it+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+o+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var le=n;n=K.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+le+"]); ":n+=" validate.errors = ["+le+"]; return false; ":n+=" var err = "+le+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",u=pe,e.errorPath=he,n+=" } else { "}else c?(n+=" if ( "+et+" === undefined ",T&&(n+=" || ! Object.prototype.hasOwnProperty.call("+p+", '"+e.util.escapeQuotes(R)+"') "),n+=") { "+m+" = true; } else { "):(n+=" if ("+et+" !== undefined ",T&&(n+=" && Object.prototype.hasOwnProperty.call("+p+", '"+e.util.escapeQuotes(R)+"') "),n+=" ) { ");n+=" "+qe+" } "}}c&&(n+=" if ("+m+") { ",d+="}")}}if(w.length){var st=w;if(st)for(var se,Ct=-1,bt=st.length-1;Ct0||X===!1:e.util.schemaHasRules(X,e.RULES.all)){f.schema=X,f.schemaPath=e.schemaPath+".patternProperties"+e.util.getProperty(se),f.errSchemaPath=e.errSchemaPath+"/patternProperties/"+e.util.escapeFragment(se),T?n+=" "+S+" = "+S+" || Object.keys("+p+"); for (var "+y+"=0; "+y+"<"+S+".length; "+y+"++) { var "+g+" = "+S+"["+y+"]; ":n+=" for (var "+g+" in "+p+") { ",n+=" if ("+e.usePattern(se)+".test("+g+")) { ",f.errorPath=e.util.getPathExpr(e.errorPath,g,e.opts.jsonPointers);var Le=p+"["+g+"]";f.dataPathArr[b]=g;var qe=e.validate(f);f.baseId=F,e.util.varOccurences(qe,v)<2?n+=" "+e.util.varReplace(qe,v,Le)+" ":n+=" var "+v+" = "+Le+"; "+qe+" ",c&&(n+=" if (!"+m+") break; "),n+=" } ",c&&(n+=" else "+m+" = true; "),n+=" } ",c&&(n+=" if ("+m+") { ",d+="}")}}}return c&&(n+=" "+d+" if ("+h+" == errors) {"),n}),jd}var qd,OP;function cU(){return OP||(OP=1,qd=function(e,t,s){var n=" ",i=e.level,a=e.dataLevel,l=e.schema[t],o=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,p="data"+(a||""),h="errs__"+i,f=e.util.copy(e),d="";f.level++;var m="valid"+f.level;if(n+="var "+h+" = errors;",e.opts.strictKeywords?typeof l=="object"&&Object.keys(l).length>0||l===!1:e.util.schemaHasRules(l,e.RULES.all)){f.schema=l,f.schemaPath=o,f.errSchemaPath=u;var g="key"+i,y="idx"+i,b="i"+i,v="' + "+g+" + '",S=f.dataLevel=e.dataLevel+1,C="data"+S,O="dataProperties"+i,w=e.opts.ownProperties,E=e.baseId;w&&(n+=" var "+O+" = undefined; "),w?n+=" "+O+" = "+O+" || Object.keys("+p+"); for (var "+y+"=0; "+y+"<"+O+".length; "+y+"++) { var "+g+" = "+O+"["+y+"]; ":n+=" for (var "+g+" in "+p+") { ",n+=" var startErrs"+i+" = errors; ";var k=g,A=e.compositeRule;e.compositeRule=f.compositeRule=!0;var D=e.validate(f);f.baseId=E,e.util.varOccurences(D,C)<2?n+=" "+e.util.varReplace(D,C,k)+" ":n+=" var "+C+" = "+k+"; "+D+" ",e.compositeRule=f.compositeRule=A,n+=" if (!"+m+") { for (var "+b+"=startErrs"+i+"; "+b+"0||S===!1:e.util.schemaHasRules(S,e.RULES.all))||(m[m.length]=y)}}else var m=l;if(f||m.length){var C=e.errorPath,O=f||m.length>=e.opts.loopRequired,w=e.opts.ownProperties;if(c)if(n+=" var missing"+i+"; ",O){f||(n+=" var "+d+" = validate.schema"+o+"; ");var E="i"+i,k="schema"+i+"["+E+"]",A="' + "+k+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(C,k,e.opts.jsonPointers)),n+=" var "+h+" = true; ",f&&(n+=" if (schema"+i+" === undefined) "+h+" = true; else if (!Array.isArray(schema"+i+")) "+h+" = false; else {"),n+=" for (var "+E+" = 0; "+E+" < "+d+".length; "+E+"++) { "+h+" = "+p+"["+d+"["+E+"]] !== undefined ",w&&(n+=" && Object.prototype.hasOwnProperty.call("+p+", "+d+"["+E+"]) "),n+="; if (!"+h+") break; } ",f&&(n+=" } "),n+=" if (!"+h+") { ";var D=D||[];D.push(n),n="",e.createErrors!==!1?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { missingProperty: '"+A+"' } ",e.opts.messages!==!1&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+A+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+o+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var _=n;n=D.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+_+"]); ":n+=" validate.errors = ["+_+"]; return false; ":n+=" var err = "+_+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } else { "}else{n+=" if ( ";var B=m;if(B)for(var T,E=-1,F=B.length-1;E 1) { ";var m=e.schema.items&&e.schema.items.type,g=Array.isArray(m);if(!m||m=="object"||m=="array"||g&&(m.indexOf("object")>=0||m.indexOf("array")>=0))n+=" outer: for (;i--;) { for (j = i; j--;) { if (equal("+p+"[i], "+p+"[j])) { "+h+" = false; break outer; } } } ";else{n+=" var itemIndices = {}, item; for (;i--;) { var item = "+p+"[i]; ";var y="checkDataType"+(g?"s":"");n+=" if ("+e.util[y](m,"item",e.opts.strictNumbers,!0)+") continue; ",g&&(n+=` if (typeof item == 'string') item = '"' + item; `),n+=" if (typeof itemIndices[item] == 'number') { "+h+" = false; j = itemIndices[item]; break; } itemIndices[item] = i; } "}n+=" } ",f&&(n+=" } "),n+=" if (!"+h+") { ";var b=b||[];b.push(n),n="",e.createErrors!==!1?(n+=" { keyword: 'uniqueItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { i: i, j: j } ",e.opts.messages!==!1&&(n+=" , message: 'should NOT have duplicate items (items ## ' + j + ' and ' + i + ' are identical)' "),e.opts.verbose&&(n+=" , schema: ",f?n+="validate.schema"+o:n+=""+l,n+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var v=n;n=b.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+v+"]); ":n+=" validate.errors = ["+v+"]; return false; ":n+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } ",c&&(n+=" else { ")}else c&&(n+=" if (true) { ");return n}),Ud}var Vd,CP;function hU(){return CP||(CP=1,Vd={$ref:X9(),allOf:G9(),anyOf:Y9(),$comment:H9(),const:K9(),contains:J9(),dependencies:eU(),enum:tU(),format:rU(),if:nU(),items:sU(),maximum:uP(),minimum:uP(),maxItems:fP(),minItems:fP(),maxLength:hP(),minLength:hP(),maxProperties:mP(),minProperties:mP(),multipleOf:iU(),not:aU(),oneOf:oU(),pattern:lU(),properties:uU(),propertyNames:cU(),required:fU(),uniqueItems:pU(),validate:NB()}),Vd}var Wd,wP;function dU(){if(wP)return Wd;wP=1;var r=hU(),e=ba().toHash;return Wd=function(){var s=[{type:"number",rules:[{maximum:["exclusiveMaximum"]},{minimum:["exclusiveMinimum"]},"multipleOf","format"]},{type:"string",rules:["maxLength","minLength","pattern","format"]},{type:"array",rules:["maxItems","minItems","items","contains","uniqueItems"]},{type:"object",rules:["maxProperties","minProperties","required","dependencies","propertyNames",{properties:["additionalProperties","patternProperties"]}]},{rules:["$ref","const","enum","not","anyOf","oneOf","allOf","if"]}],n=["type","$comment"],i=["$schema","$id","id","$data","$async","title","description","default","definitions","examples","readOnly","writeOnly","contentMediaType","contentEncoding","additionalItems","then","else"],a=["number","integer","string","array","object","boolean","null"];return s.all=e(n),s.types=e(a),s.forEach(function(l){l.rules=l.rules.map(function(o){var u;if(typeof o=="object"){var c=Object.keys(o)[0];u=o[c],o=c,u.forEach(function(h){n.push(h),s.all[h]=!0})}n.push(o);var p=s.all[o]={keyword:o,code:r[o],implements:u};return p}),s.all.$comment={keyword:"$comment",code:r.$comment},l.type&&(s.types[l.type]=l)}),s.keywords=e(n.concat(i)),s.custom={},s},Wd}var Zd,kP;function mU(){if(kP)return Zd;kP=1;var r=["multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum","maxLength","minLength","pattern","additionalItems","maxItems","minItems","uniqueItems","maxProperties","minProperties","required","additionalProperties","enum","format","const"];return Zd=function(e,t){for(var s=0;s(K[le]=xe,K),{}),p=[0,1,2,"off","warn","error"];function h(K){let le=Array.isArray(K)?K[0]:K;return le===0||le===1||le===2?le:typeof le=="string"&&c[le.toLowerCase()]||0}function f(K){K.rules&&Object.keys(K.rules).forEach(le=>{let xe=K.rules[le];typeof xe=="number"?K.rules[le]=u[xe]||u[0]:Array.isArray(xe)&&typeof xe[0]=="number"&&(xe[0]=u[xe[0]]||u[0])})}function d(K){return h(K)===2}function m(K){let le=Array.isArray(K)?K[0]:K;return typeof le=="string"&&(le=le.toLowerCase()),p.indexOf(le)!==-1}function g(K){return Object.keys(K).every(le=>m(K[le]))}function y(K){switch(K){case"off":return"off";case!0:case"true":case"writeable":case"writable":return"writable";case null:case!1:case"false":case"readable":case"readonly":return"readonly";default:throw new Error(`'${K}' is not a valid configuration for a global (use 'readonly', 'writable', or 'off')`)}}var b={__proto__:null,getRuleSeverity:h,normalizeToStrings:f,isErrorSeverity:d,isValidSeverity:m,isEverySeverityValid:g,normalizeConfigGlobal:y};let v={ESLINT_LEGACY_ECMAFEATURES:"The 'ecmaFeatures' config file property is deprecated and has no effect.",ESLINT_PERSONAL_CONFIG_LOAD:"'~/.eslintrc.*' config files have been deprecated. Please use a config file per project or the '--config' option.",ESLINT_PERSONAL_CONFIG_SUPPRESS:"'~/.eslintrc.*' config files have been deprecated. Please remove it or add 'root:true' to the config files in your projects in order to avoid loading '~/.eslintrc.*' accidentally."},S=new Set;function C(K,le){let xe=JSON.stringify({source:K,errorCode:le});if(S.has(xe))return;S.add(xe);let Le=a.default.relative(process.cwd(),K),qe=v[le];process.emitWarning(`${qe} (found in "${Le}")`,"DeprecationWarning",le)}let O={id:"http://json-schema.org/draft-04/schema#",$schema:"http://json-schema.org/draft-04/schema#",description:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},positiveInteger:{type:"integer",minimum:0},positiveIntegerDefault0:{allOf:[{$ref:"#/definitions/positiveInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0}},type:"object",properties:{id:{type:"string"},$schema:{type:"string"},title:{type:"string"},description:{type:"string"},default:{},multipleOf:{type:"number",minimum:0,exclusiveMinimum:!0},maximum:{type:"number"},exclusiveMaximum:{type:"boolean",default:!1},minimum:{type:"number"},exclusiveMinimum:{type:"boolean",default:!1},maxLength:{$ref:"#/definitions/positiveInteger"},minLength:{$ref:"#/definitions/positiveIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{anyOf:[{type:"boolean"},{$ref:"#"}],default:{}},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:{}},maxItems:{$ref:"#/definitions/positiveInteger"},minItems:{$ref:"#/definitions/positiveIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},maxProperties:{$ref:"#/definitions/positiveInteger"},minProperties:{$ref:"#/definitions/positiveIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{anyOf:[{type:"boolean"},{$ref:"#"}],default:{}},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},enum:{type:"array",minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},dependencies:{exclusiveMaximum:["maximum"],exclusiveMinimum:["minimum"]},default:{}};var w=(K={})=>{let le=new l.default({meta:!1,useDefaults:!0,validateSchema:!1,missingRefs:"ignore",verbose:!0,schemaId:"auto",...K});return le.addMetaSchema(O),le._opts.defaultMeta=O.id,le};let E={$schema:{type:"string"},env:{type:"object"},extends:{$ref:"#/definitions/stringOrStrings"},globals:{type:"object"},overrides:{type:"array",items:{$ref:"#/definitions/overrideConfig"},additionalItems:!1},parser:{type:["string","null"]},parserOptions:{type:"object"},plugins:{type:"array"},processor:{type:"string"},rules:{type:"object"},settings:{type:"object"},noInlineConfig:{type:"boolean"},reportUnusedDisableDirectives:{type:"boolean"},ecmaFeatures:{type:"object"}},k={definitions:{stringOrStrings:{oneOf:[{type:"string"},{type:"array",items:{type:"string"},additionalItems:!1}]},stringOrStringsRequired:{oneOf:[{type:"string"},{type:"array",items:{type:"string"},additionalItems:!1,minItems:1}]},objectConfig:{type:"object",properties:{root:{type:"boolean"},ignorePatterns:{$ref:"#/definitions/stringOrStrings"},...E},additionalProperties:!1},overrideConfig:{type:"object",properties:{excludedFiles:{$ref:"#/definitions/stringOrStrings"},files:{$ref:"#/definitions/stringOrStringsRequired"},...E},required:["files"],additionalProperties:!1}},$ref:"#/definitions/objectConfig"};function A(K,le){let xe={};for(let[Le,qe]of Object.entries(K))Object.hasOwnProperty.call(le,Le)||(xe[Le]=qe);return xe}let D=A(o.default.es2015,o.default.es5),_={Atomics:!1,SharedArrayBuffer:!1},B={BigInt:!1,BigInt64Array:!1,BigUint64Array:!1,globalThis:!1},T={AggregateError:!1,FinalizationRegistry:!1,WeakRef:!1};var F=new Map(Object.entries({builtin:{globals:o.default.es5},es6:{globals:D,parserOptions:{ecmaVersion:6}},es2015:{globals:D,parserOptions:{ecmaVersion:6}},es2016:{globals:D,parserOptions:{ecmaVersion:7}},es2017:{globals:{...D,..._},parserOptions:{ecmaVersion:8}},es2018:{globals:{...D,..._},parserOptions:{ecmaVersion:9}},es2019:{globals:{...D,..._},parserOptions:{ecmaVersion:10}},es2020:{globals:{...D,..._,...B},parserOptions:{ecmaVersion:11}},es2021:{globals:{...D,..._,...B,...T},parserOptions:{ecmaVersion:12}},es2022:{globals:{...D,..._,...B,...T},parserOptions:{ecmaVersion:13}},es2023:{globals:{...D,..._,...B,...T},parserOptions:{ecmaVersion:14}},es2024:{globals:{...D,..._,...B,...T},parserOptions:{ecmaVersion:15}},browser:{globals:o.default.browser},node:{globals:o.default.node,parserOptions:{ecmaFeatures:{globalReturn:!0}}},"shared-node-browser":{globals:o.default["shared-node-browser"]},worker:{globals:o.default.worker},serviceworker:{globals:o.default.serviceworker},commonjs:{globals:o.default.commonjs,parserOptions:{ecmaFeatures:{globalReturn:!0}}},amd:{globals:o.default.amd},mocha:{globals:o.default.mocha},jasmine:{globals:o.default.jasmine},jest:{globals:o.default.jest},phantomjs:{globals:o.default.phantomjs},jquery:{globals:o.default.jquery},qunit:{globals:o.default.qunit},prototypejs:{globals:o.default.prototypejs},shelljs:{globals:o.default.shelljs},meteor:{globals:o.default.meteor},mongo:{globals:o.default.mongo},protractor:{globals:o.default.protractor},applescript:{globals:o.default.applescript},nashorn:{globals:o.default.nashorn},atomtest:{globals:o.default.atomtest},embertest:{globals:o.default.embertest},webextensions:{globals:o.default.webextensions},greasemonkey:{globals:o.default.greasemonkey}}));let j=w(),Q=new WeakMap,I=Function.prototype,N,R={error:2,warn:1,off:0},U=new WeakSet,V=Object.freeze({type:"array",minItems:0,maxItems:0});class ae{constructor({builtInRules:le=new Map}={}){this.builtInRules=le}getRuleOptionsSchema(le){if(!le)return null;if(!le.meta)return{...V};let xe=le.meta.schema;if(typeof xe>"u")return{...V};if(xe===!1)return null;if(typeof xe!="object"||xe===null)throw new TypeError("Rule's `meta.schema` must be an array or object");return Array.isArray(xe)?xe.length?{type:"array",items:xe,minItems:0,maxItems:xe.length}:{...V}:xe}validateRuleSeverity(le){let xe=Array.isArray(le)?le[0]:le,Le=typeof xe=="string"?R[xe.toLowerCase()]:xe;if(Le===0||Le===1||Le===2)return Le;throw new Error(` Severity should be one of the following: 0 = off, 1 = warn, 2 = error (you passed '${i.default.inspect(xe).replace(/'/gu,'"').replace(/\n/gu,"")}'). -`)}validateRuleSchema(le,xe){if(!Q.has(le))try{let qe=this.getRuleOptionsSchema(le);qe&&Q.set(le,j.compile(qe))}catch(qe){let rt=new Error(qe.message,{cause:qe});throw rt.code="ESLINT_INVALID_RULE_OPTIONS_SCHEMA",rt}let Le=Q.get(le);if(Le&&(Le(xe),Le.errors))throw new Error(Le.errors.map(qe=>` Value ${JSON.stringify(qe.data)} ${qe.message}. -`).join(""))}validateRuleOptions(le,xe,Le,qe=null){try{this.validateRuleSeverity(Le)!==0&&this.validateRuleSchema(le,Array.isArray(Le)?Le.slice(1):[])}catch(rt){let ht=rt.code==="ESLINT_INVALID_RULE_OPTIONS_SCHEMA"?`Error while processing options validation schema of rule '${xe}': ${rt.message}`:`Configuration for rule "${xe}" is invalid: +`):C=String.fromCharCode(O),this.options.locations&&(++this.curLine,this.lineStart=this.pos),C}jsx_readString(w){let O="",C=++this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");let E=this.input.charCodeAt(this.pos);if(E===w)break;E===38?(O+=this.input.slice(C,this.pos),O+=this.jsx_readEntity(),C=this.pos):v(E)?(O+=this.input.slice(C,this.pos),O+=this.jsx_readNewLine(!1),C=this.pos):++this.pos}return O+=this.input.slice(C,this.pos++),this.finishToken(h.string,O)}jsx_readEntity(){let w="",O=0,C,E=this.input[this.pos];E!=="&"&&this.raise(this.pos,"Entity must start with an ampersand");let k=++this.pos;for(;this.pos")}let D=k.name?"Element":"Fragment";return C["opening"+D]=k,C["closing"+D]=A,C.children=E,this.type===h.relational&&this.value==="<"&&this.raise(this.start,"Adjacent JSX elements must be wrapped in an enclosing tag"),this.finishNode(C,"JSX"+D)}jsx_parseText(){let w=this.parseLiteral(this.value);return w.type="JSXText",w}jsx_parseElement(){let w=this.start,O=this.startLoc;return this.next(),this.jsx_parseElementAt(w,O)}parseExprAtom(w){return this.type===f.jsxText?this.jsx_parseText():this.type===f.jsxTagStart?this.jsx_parseElement():super.parseExprAtom(w)}readToken(w){let O=this.curContext();if(O===y)return this.jsx_readToken();if(O===m||O===g){if(x(w))return this.jsx_readWord();if(w==62)return++this.pos,this.finishToken(f.jsxTagEnd);if((w===34||w===39)&&O==m)return this.jsx_readString(w)}return w===60&&this.exprAllowed&&this.input.charCodeAt(this.pos+1)!==33?(++this.pos,this.finishToken(f.jsxTagStart)):super.readToken(w)}updateContext(w){if(this.type==h.braceL){var O=this.curContext();O==m?this.context.push(d.b_expr):O==y?this.context.push(d.b_tmpl):super.updateContext(w),this.exprAllowed=!0}else if(this.type===h.slash&&w===f.jsxTagStart)this.context.length-=2,this.context.push(g),this.exprAllowed=!1;else return super.updateContext(w)}}}}(id)),id.exports}var fa={},IA;function O6(){if(IA)return fa;IA=1,Object.defineProperty(fa,"__esModule",{value:!0});let r={ArrayExpression:["elements"],ArrayPattern:["elements"],ArrowFunctionExpression:["params","body"],AssignmentExpression:["left","right"],AssignmentPattern:["left","right"],AwaitExpression:["argument"],BinaryExpression:["left","right"],BlockStatement:["body"],BreakStatement:["label"],CallExpression:["callee","arguments"],CatchClause:["param","body"],ChainExpression:["expression"],ClassBody:["body"],ClassDeclaration:["id","superClass","body"],ClassExpression:["id","superClass","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExperimentalRestProperty:["argument"],ExperimentalSpreadProperty:["argument"],ExportAllDeclaration:["exported","source"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source"],ExportSpecifier:["exported","local"],ExpressionStatement:["expression"],ForInStatement:["left","right","body"],ForOfStatement:["left","right","body"],ForStatement:["init","test","update","body"],FunctionDeclaration:["id","params","body"],FunctionExpression:["id","params","body"],Identifier:[],IfStatement:["test","consequent","alternate"],ImportDeclaration:["specifiers","source"],ImportDefaultSpecifier:["local"],ImportExpression:["source"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXClosingFragment:[],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:[],JSXExpressionContainer:["expression"],JSXFragment:["openingFragment","children","closingFragment"],JSXIdentifier:[],JSXMemberExpression:["object","property"],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","attributes"],JSXOpeningFragment:[],JSXSpreadAttribute:["argument"],JSXSpreadChild:["expression"],JSXText:[],LabeledStatement:["label","body"],Literal:[],LogicalExpression:["left","right"],MemberExpression:["object","property"],MetaProperty:["meta","property"],MethodDefinition:["key","value"],NewExpression:["callee","arguments"],ObjectExpression:["properties"],ObjectPattern:["properties"],PrivateIdentifier:[],Program:["body"],Property:["key","value"],PropertyDefinition:["key","value"],RestElement:["argument"],ReturnStatement:["argument"],SequenceExpression:["expressions"],SpreadElement:["argument"],StaticBlock:["body"],Super:[],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],TaggedTemplateExpression:["tag","quasi"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],YieldExpression:["argument"]},e=Object.keys(r);for(let a of e)Object.freeze(r[a]);Object.freeze(r);let t=new Set(["parent","leadingComments","trailingComments"]);function s(a){return!t.has(a)&&a[0]!=="_"}function n(a){return Object.keys(a).filter(s)}function i(a){let l=Object.assign({},r);for(let o of Object.keys(a))if(Object.prototype.hasOwnProperty.call(l,o)){let u=new Set(a[o]);for(let c of l[o])u.add(c);l[o]=Object.freeze(Array.from(u))}else l[o]=Object.freeze(Array.from(a[o]));return Object.freeze(l)}return fa.KEYS=r,fa.getKeys=n,fa.unionWith=i,fa}var RA;function vc(){if(RA)return En;RA=1,Object.defineProperty(En,"__esModule",{value:!0});var r=Jx(),e=x6(),t=O6();function s(R){return R&&typeof R=="object"&&"default"in R?R:{default:R}}function n(R){if(R&&R.__esModule)return R;var j=Object.create(null);return R&&Object.keys(R).forEach(function(Q){if(Q!=="default"){var I=Object.getOwnPropertyDescriptor(R,Q);Object.defineProperty(j,Q,I.get?I:{enumerable:!0,get:function(){return R[Q]}})}}),j.default=R,Object.freeze(j)}var i=n(r),a=s(e),l=n(t);let o={Boolean:"Boolean",EOF:"",Identifier:"Identifier",PrivateIdentifier:"PrivateIdentifier",Keyword:"Keyword",Null:"Null",Numeric:"Numeric",Punctuator:"Punctuator",String:"String",RegularExpression:"RegularExpression",Template:"Template",JSXIdentifier:"JSXIdentifier",JSXText:"JSXText"};function u(R,j){let Q=R[0],I=R[R.length-1],N={type:o.Template,value:j.slice(Q.start,I.end)};return Q.loc&&(N.loc={start:Q.loc.start,end:I.loc.end}),Q.range&&(N.start=Q.range[0],N.end=I.range[1],N.range=[N.start,N.end]),N}function c(R,j){this._acornTokTypes=R,this._tokens=[],this._curlyBrace=null,this._code=j}c.prototype={constructor:c,translate(R,j){let Q=R.type,I=this._acornTokTypes;if(Q===I.name)R.type=o.Identifier,R.value==="static"&&(R.type=o.Keyword),j.ecmaVersion>5&&(R.value==="yield"||R.value==="let")&&(R.type=o.Keyword);else if(Q===I.privateId)R.type=o.PrivateIdentifier;else if(Q===I.semi||Q===I.comma||Q===I.parenL||Q===I.parenR||Q===I.braceL||Q===I.braceR||Q===I.dot||Q===I.bracketL||Q===I.colon||Q===I.question||Q===I.bracketR||Q===I.ellipsis||Q===I.arrow||Q===I.jsxTagStart||Q===I.incDec||Q===I.starstar||Q===I.jsxTagEnd||Q===I.prefix||Q===I.questionDot||Q.binop&&!Q.keyword||Q.isAssign)R.type=o.Punctuator,R.value=this._code.slice(R.start,R.end);else if(Q===I.jsxName)R.type=o.JSXIdentifier;else if(Q.label==="jsxText"||Q===I.jsxAttrValueToken)R.type=o.JSXText;else if(Q.keyword)Q.keyword==="true"||Q.keyword==="false"?R.type=o.Boolean:Q.keyword==="null"?R.type=o.Null:R.type=o.Keyword;else if(Q===I.num)R.type=o.Numeric,R.value=this._code.slice(R.start,R.end);else if(Q===I.string)j.jsxAttrValueToken?(j.jsxAttrValueToken=!1,R.type=o.JSXText):R.type=o.String,R.value=this._code.slice(R.start,R.end);else if(Q===I.regexp){R.type=o.RegularExpression;let N=R.value;R.regex={flags:N.flags,pattern:N.pattern},R.value=`/${N.pattern}/${N.flags}`}return R},onToken(R,j){let Q=this._acornTokTypes,I=j.tokens,N=this._tokens,F=()=>{I.push(u(this._tokens,this._code)),this._tokens=[]};if(R.type===Q.eof){this._curlyBrace&&I.push(this.translate(this._curlyBrace,j));return}if(R.type===Q.backQuote){this._curlyBrace&&(I.push(this.translate(this._curlyBrace,j)),this._curlyBrace=null),N.push(R),N.length>1&&F();return}if(R.type===Q.dollarBraceL){N.push(R),F();return}if(R.type===Q.braceR){this._curlyBrace&&I.push(this.translate(this._curlyBrace,j)),this._curlyBrace=R;return}if(R.type===Q.template||R.type===Q.invalidTemplate){this._curlyBrace&&(N.push(this._curlyBrace),this._curlyBrace=null),N.push(R);return}this._curlyBrace&&(I.push(this.translate(this._curlyBrace,j)),this._curlyBrace=null),I.push(this.translate(R,j))}};let p=[3,5,6,7,8,9,10,11,12,13,14,15];function h(){return p[p.length-1]}function f(){return[...p]}function d(R=5){let j=R==="latest"?h():R;if(typeof j!="number")throw new Error(`ecmaVersion must be a number or "latest". Received value of type ${typeof R} instead.`);if(j>=2015&&(j-=2009),!p.includes(j))throw new Error("Invalid ecmaVersion.");return j}function m(R="script"){if(R==="script"||R==="module")return R;if(R==="commonjs")return"script";throw new Error("Invalid sourceType.")}function g(R){let j=d(R.ecmaVersion),Q=m(R.sourceType),I=R.range===!0,N=R.loc===!0;if(j!==3&&R.allowReserved)throw new Error("`allowReserved` is only supported when ecmaVersion is 3");if(typeof R.allowReserved<"u"&&typeof R.allowReserved!="boolean")throw new Error("`allowReserved`, when present, must be `true` or `false`");let F=j===3?R.allowReserved||"never":!1,U=R.ecmaFeatures||{},V=R.sourceType==="commonjs"||!!U.globalReturn;if(Q==="module"&&j<6)throw new Error("sourceType 'module' is not supported when ecmaVersion < 2015. Consider adding `{ ecmaVersion: 2015 }` to the parser options.");return Object.assign({},R,{ecmaVersion:j,sourceType:Q,ranges:I,locations:N,allowReserved:F,allowReturnOutsideFunction:V})}let y=Symbol("espree's internal state"),v=Symbol("espree's esprimaFinishNode");function x(R,j,Q,I,N,F,U){let V;R?V="Block":U.slice(Q,Q+2)==="#!"?V="Hashbang":V="Line";let ae={type:V,value:j};return typeof Q=="number"&&(ae.start=Q,ae.end=I,ae.range=[Q,I]),typeof N=="object"&&(ae.loc={start:N,end:F}),ae}var S=()=>R=>{let j=Object.assign({},R.acorn.tokTypes);return R.acornJsx&&Object.assign(j,R.acornJsx.tokTypes),class extends R{constructor(I,N){(typeof I!="object"||I===null)&&(I={}),typeof N!="string"&&!(N instanceof String)&&(N=String(N));let F=I.sourceType,U=g(I),V=U.ecmaFeatures||{},ae=U.tokens===!0?new c(j,N):null,se={originalSourceType:F||U.sourceType,tokens:ae?[]:null,comments:U.comment===!0?[]:null,impliedStrict:V.impliedStrict===!0&&U.ecmaVersion>=5,ecmaVersion:U.ecmaVersion,jsxAttrValueToken:!1,lastToken:null,templateElements:[]};super({ecmaVersion:U.ecmaVersion,sourceType:U.sourceType,ranges:U.ranges,locations:U.locations,allowReserved:U.allowReserved,allowReturnOutsideFunction:U.allowReturnOutsideFunction,onToken(xe){ae&&ae.onToken(xe,se),xe.type!==j.eof&&(se.lastToken=xe)},onComment(xe,H,he,$,pe,K){if(se.comments){let le=x(xe,H,he,$,pe,K,N);se.comments.push(le)}}},N),this[y]=se}tokenize(){do this.next();while(this.type!==j.eof);this.next();let I=this[y],N=I.tokens;return I.comments&&(N.comments=I.comments),N}finishNode(...I){let N=super.finishNode(...I);return this[v](N)}finishNodeAt(...I){let N=super.finishNodeAt(...I);return this[v](N)}parse(){let I=this[y],N=super.parse();if(N.sourceType=I.originalSourceType,I.comments&&(N.comments=I.comments),I.tokens&&(N.tokens=I.tokens),N.body.length){let[F]=N.body;N.range&&(N.range[0]=F.range[0]),N.loc&&(N.loc.start=F.loc.start),N.start=F.start}return I.lastToken&&(N.range&&(N.range[1]=I.lastToken.range[1]),N.loc&&(N.loc.end=I.lastToken.loc.end),N.end=I.lastToken.end),this[y].templateElements.forEach(F=>{let V=F.tail?1:2;F.start+=-1,F.end+=V,F.range&&(F.range[0]+=-1,F.range[1]+=V),F.loc&&(F.loc.start.column+=-1,F.loc.end.column+=V)}),N}parseTopLevel(I){return this[y].impliedStrict&&(this.strict=!0),super.parseTopLevel(I)}raise(I,N){let F=R.acorn.getLineInfo(this.input,I),U=new SyntaxError(N);throw U.index=I,U.lineNumber=F.line,U.column=F.column+1,U}raiseRecoverable(I,N){this.raise(I,N)}unexpected(I){let N="Unexpected token";if(I!=null){if(this.pos=I,this.options.locations)for(;this.posthis.start&&(N+=` ${this.input.slice(this.start,this.end)}`),this.raise(this.start,N)}jsx_readString(I){let N=super.jsx_readString(I);return this.type===j.string&&(this[y].jsxAttrValueToken=!0),N}[v](I){return I.type==="TemplateElement"&&this[y].templateElements.push(I),I.type.includes("Function")&&!I.generator&&(I.generator=!1),I}}};let w="10.0.1",O={_regular:null,_jsx:null,get regular(){return this._regular===null&&(this._regular=i.Parser.extend(S())),this._regular},get jsx(){return this._jsx===null&&(this._jsx=i.Parser.extend(a.default(),S())),this._jsx},get(R){return!!(R&&R.ecmaFeatures&&R.ecmaFeatures.jsx)?this.jsx:this.regular}};function C(R,j){let Q=O.get(j);return(!j||j.tokens!==!0)&&(j=Object.assign({},j,{tokens:!0})),new Q(j,R).tokenize()}function E(R,j){let Q=O.get(j);return new Q(j,R).parse()}let k=w,A="espree",D=function(){return l.KEYS}(),_=function(){let R,j={};typeof Object.create=="function"&&(j=Object.create(null));for(R in D)Object.hasOwnProperty.call(D,R)&&(j[R]=R);return typeof Object.freeze=="function"&&Object.freeze(j),j}(),B=h(),T=f();return En.Syntax=_,En.VisitorKeys=D,En.latestEcmaVersion=B,En.name=A,En.parse=E,En.supportedEcmaVersions=T,En.tokenize=C,En.version=k,En}var Mo={exports:{}};Mo.exports;var FA;function S6(){return FA||(FA=1,function(r,e){var t=200,s="__lodash_hash_undefined__",n=800,i=16,a=9007199254740991,l="[object Arguments]",o="[object Array]",u="[object AsyncFunction]",c="[object Boolean]",p="[object Date]",h="[object Error]",f="[object Function]",d="[object GeneratorFunction]",m="[object Map]",g="[object Number]",y="[object Null]",v="[object Object]",x="[object Proxy]",S="[object RegExp]",w="[object Set]",O="[object String]",C="[object Undefined]",E="[object WeakMap]",k="[object ArrayBuffer]",A="[object DataView]",D="[object Float32Array]",_="[object Float64Array]",B="[object Int8Array]",T="[object Int16Array]",R="[object Int32Array]",j="[object Uint8Array]",Q="[object Uint8ClampedArray]",I="[object Uint16Array]",N="[object Uint32Array]",F=/[\\^$.*+?()[\]{}|]/g,U=/^\[object .+?Constructor\]$/,V=/^(?:0|[1-9]\d*)$/,ae={};ae[D]=ae[_]=ae[B]=ae[T]=ae[R]=ae[j]=ae[Q]=ae[I]=ae[N]=!0,ae[l]=ae[o]=ae[k]=ae[c]=ae[A]=ae[p]=ae[h]=ae[f]=ae[m]=ae[g]=ae[v]=ae[S]=ae[w]=ae[O]=ae[E]=!1;var se=typeof Jr=="object"&&Jr&&Jr.Object===Object&&Jr,xe=typeof self=="object"&&self&&self.Object===Object&&self,H=se||xe||Function("return this")(),he=e&&!e.nodeType&&e,$=he&&!0&&r&&!r.nodeType&&r,pe=$&&$.exports===he,K=pe&&se.process,le=function(){try{var ye=$&&$.require&&$.require("util").types;return ye||K&&K.binding&&K.binding("util")}catch{}}(),be=le&&le.isTypedArray;function Le(ye,Ae,Me){switch(Me.length){case 0:return ye.call(Ae);case 1:return ye.call(Ae,Me[0]);case 2:return ye.call(Ae,Me[0],Me[1]);case 3:return ye.call(Ae,Me[0],Me[1],Me[2])}return ye.apply(Ae,Me)}function qe(ye,Ae){for(var Me=-1,gt=Array(ye);++Me-1}function re(ye,Ae){var Me=this.__data__,gt=dt(Me,ye);return gt<0?(++this.size,Me.push([ye,Ae])):Me[gt][1]=Ae,this}Fe.prototype.clear=Oe,Fe.prototype.delete=Ie,Fe.prototype.get=We,Fe.prototype.has=ve,Fe.prototype.set=re;function Y(ye){var Ae=-1,Me=ye==null?0:ye.length;for(this.clear();++Ae1?Me[Ft-1]:void 0,Jt=Ft>2?Me[2]:void 0;for(Zt=ye.length>3&&typeof Zt=="function"?(Ft--,Zt):void 0,Jt&&Si(Me[0],Me[1],Jt)&&(Zt=Ft<3?void 0:Zt,Ft=1),Ae=Object(Ae);++gt-1&&ye%1==0&&ye0){if(++Ae>=n)return arguments[0]}else Ae=0;return ye.apply(void 0,arguments)}}function b(ye){if(ye!=null){try{return et.call(ye)}catch{}try{return ye+""}catch{}}return""}function P(ye,Ae){return ye===Ae||ye!==ye&&Ae!==Ae}var q=sr(function(){return arguments}())?sr:function(ye){return At(ye)&&it.call(ye,"callee")&&!De.call(ye,"callee")},Z=Array.isArray;function ge(ye){return ye!=null&&Je(ye.length)&&!He(ye)}function Re(ye){return At(ye)&&ge(ye)}var Ne=oe||xN;function He(ye){if(!St(ye))return!1;var Ae=jt(ye);return Ae==f||Ae==d||Ae==u||Ae==x}function Je(ye){return typeof ye=="number"&&ye>-1&&ye%1==0&&ye<=a}function St(ye){var Ae=typeof ye;return ye!=null&&(Ae=="object"||Ae=="function")}function At(ye){return ye!=null&&typeof ye=="object"}function ar(ye){if(!At(ye)||jt(ye)!=v)return!1;var Ae=Ye(ye);if(Ae===null)return!0;var Me=it.call(Ae,"constructor")&&Ae.constructor;return typeof Me=="function"&&Me instanceof Me&&et.call(Me)==vt}var An=be?rt(be):Nt;function js(ye){return Hn(ye,Kn(ye))}function Kn(ye){return ge(ye)?Xe(ye):vr(ye)}var wi=kn(function(ye,Ae,Me){Nr(ye,Ae,Me)});function ms(ye){return function(){return ye}}function Jn(ye){return ye}function xN(){return!1}r.exports=wi}(Mo,Mo.exports)),Mo.exports}var E6="eslint",w6="9.2.0",C6="Nicholas C. Zakas ",k6="An AST-based pattern checker for JavaScript.",A6={eslint:"./bin/eslint.js"},P6="./lib/api.js",T6={"./package.json":"./package.json",".":"./lib/api.js","./use-at-your-own-risk":"./lib/unsupported-api.js"},D6={"build:docs:update-links":"node tools/fetch-docs-links.js","build:site":"node Makefile.js gensite","build:webpack":"node Makefile.js webpack","build:readme":"node tools/update-readme.js","build:rules-index":"node Makefile.js generateRuleIndexPage",lint:"node Makefile.js lint","lint:docs:js":"node Makefile.js lintDocsJS","lint:docs:rule-examples":"node Makefile.js checkRuleExamples","lint:fix":"node Makefile.js lint -- fix","lint:fix:docs:js":"node Makefile.js lintDocsJS -- fix","lint:unused":"knip","release:generate:alpha":"node Makefile.js generatePrerelease -- alpha","release:generate:beta":"node Makefile.js generatePrerelease -- beta","release:generate:latest":"node Makefile.js generateRelease","release:generate:rc":"node Makefile.js generatePrerelease -- rc","release:publish":"node Makefile.js publishRelease",test:"node Makefile.js test","test:browser":"node Makefile.js wdio","test:cli":"mocha","test:fuzz":"node Makefile.js fuzz","test:performance":"node Makefile.js perf","test:emfile":"node tools/check-emfile-handling.js"},_6={"pre-commit":"lint-staged"},I6=["LICENSE","README.md","bin","conf","lib","messages"],R6="eslint/eslint",F6="https://opencollective.com/eslint",B6="https://eslint.org",N6="https://github.com/eslint/eslint/issues/",L6={"@eslint-community/eslint-utils":"^4.2.0","@eslint-community/regexpp":"^4.6.1","@eslint/eslintrc":"^3.0.2","@eslint/js":"9.2.0","@humanwhocodes/config-array":"^0.13.0","@humanwhocodes/module-importer":"^1.0.1","@humanwhocodes/retry":"^0.2.3","@nodelib/fs.walk":"^1.2.8",ajv:"^6.12.4",chalk:"^4.0.0","cross-spawn":"^7.0.2",debug:"^4.3.2","escape-string-regexp":"^4.0.0","eslint-scope":"^8.0.1","eslint-visitor-keys":"^4.0.0",espree:"^10.0.1",esquery:"^1.4.2",esutils:"^2.0.2","fast-deep-equal":"^3.1.3","file-entry-cache":"^8.0.0","find-up":"^5.0.0","glob-parent":"^6.0.2",ignore:"^5.2.0",imurmurhash:"^0.1.4","is-glob":"^4.0.0","is-path-inside":"^3.0.3","json-stable-stringify-without-jsonify":"^1.0.1",levn:"^0.4.1","lodash.merge":"^4.6.2",minimatch:"^3.1.2","natural-compare":"^1.4.0",optionator:"^0.9.3","strip-ansi":"^6.0.1","text-table":"^0.2.0"},$6={"@babel/core":"^7.4.3","@babel/preset-env":"^7.4.3","@eslint-community/eslint-plugin-eslint-comments":"^4.3.0","@types/estree":"^1.0.5","@types/node":"^20.11.5","@wdio/browser-runner":"^8.14.6","@wdio/cli":"^8.14.6","@wdio/concise-reporter":"^8.14.0","@wdio/globals":"^8.14.6","@wdio/mocha-framework":"^8.14.0","babel-loader":"^8.0.5",c8:"^7.12.0",chai:"^4.0.1",cheerio:"^0.22.0","common-tags":"^1.8.0","core-js":"^3.1.3",ejs:"^3.0.2",eslint:"file:.","eslint-config-eslint":"file:packages/eslint-config-eslint","eslint-plugin-eslint-plugin":"^6.0.0","eslint-plugin-internal-rules":"file:tools/internal-rules","eslint-plugin-jsdoc":"^48.2.3","eslint-plugin-n":"^17.2.0","eslint-plugin-unicorn":"^52.0.0","eslint-release":"^3.2.2",eslump:"^3.0.0",esprima:"^4.0.1","fast-glob":"^3.2.11","fs-teardown":"^0.1.3",glob:"^10.0.0",globals:"^15.0.0",got:"^11.8.3","gray-matter":"^4.0.3","js-yaml":"^4.1.0",knip:"^5.8.0","lint-staged":"^11.0.0","load-perf":"^0.2.0","markdown-it":"^12.2.0","markdown-it-container":"^3.0.0",markdownlint:"^0.34.0","markdownlint-cli":"^0.39.0",marked:"^4.0.8",metascraper:"^5.25.7","metascraper-description":"^5.25.7","metascraper-image":"^5.29.3","metascraper-logo":"^5.25.7","metascraper-logo-favicon":"^5.25.7","metascraper-title":"^5.25.7",mocha:"^8.3.2","node-polyfill-webpack-plugin":"^1.0.3","npm-license":"^0.3.3",pirates:"^4.0.5",progress:"^2.0.3",proxyquire:"^2.0.1",recast:"^0.23.0","regenerator-runtime":"^0.14.0","rollup-plugin-node-polyfills":"^0.2.1",semver:"^7.5.3",shelljs:"^0.8.5",sinon:"^11.0.0",typescript:"^5.3.3","vite-plugin-commonjs":"^0.10.0",webpack:"^5.23.0","webpack-cli":"^4.5.0",yorkie:"^2.0.0"},M6=["ast","lint","javascript","ecmascript","espree"],j6="MIT",q6={node:"^18.18.0 || ^20.9.0 || >=21.1.0"},Q6={name:E6,version:w6,author:C6,description:k6,bin:A6,main:P6,exports:T6,scripts:D6,gitHooks:_6,"lint-staged":{"*.js":"eslint --fix","*.md":"markdownlint --fix","lib/rules/*.js":["node tools/update-eslint-all.js","git add packages/js/src/configs/eslint-all.js"],"docs/src/rules/*.md":["node tools/check-rule-examples.js","node tools/fetch-docs-links.js","git add docs/src/_data/further_reading_links.json"],"docs/**/*.svg":"npx -y svgo -r --multipass"},files:I6,repository:R6,funding:F6,homepage:B6,bugs:N6,dependencies:L6,devDependencies:$6,keywords:M6,license:j6,engines:q6},od,BA;function xc(){if(BA)return od;BA=1;let r=/^(?:(?:Do)?While|For(?:In|Of)?|Switch)Statement$/u,e=/\r\n|[\r\n\u2028\u2029]/u,t=/^#!([^\r\n]+)/u;function s(){return new RegExp(e.source,"gu")}return od={breakableTypePattern:r,lineBreakPattern:e,createGlobalLinebreakMatcher:s,shebangPattern:t},od}var ld,NA;function Oc(){return NA||(NA=1,ld={directivesPattern:/^(eslint(?:-env|-enable|-disable(?:(?:-next)?-line)?)?|exported|globals?)(?:\s|$)/u}),ld}var Yu={},_B=cc(HU),Hu={exports:{}};var LA;function U6(){return LA||(LA=1,function(r,e){(function(t,s){s(e)})(this,function(t){function s(){for(var re=arguments.length,Y=Array(re),fe=0;fe1){Y[0]=Y[0].slice(0,-1);for(var Se=Y.length-1,Ee=1;Ee= 0x80 (not a basic code point)","invalid-input":"Invalid input"},D=m-g,_=Math.floor,B=String.fromCharCode;function T(re){throw new RangeError(A[re])}function R(re,Y){for(var fe=[],Se=re.length;Se--;)fe[Se]=Y(re[Se]);return fe}function j(re,Y){var fe=re.split("@"),Se="";fe.length>1&&(Se=fe[0]+"@",re=fe[1]),re=re.replace(k,".");var Ee=re.split("."),Ze=R(Ee,Y).join(".");return Se+Ze}function Q(re){for(var Y=[],fe=0,Se=re.length;fe=55296&&Ee<=56319&&fe>1,Y+=_(Y/fe);Y>D*y>>1;Ee+=m)Y=_(Y/D);return _(Ee+(D+1)*Y/(Y+v))},V=function(Y){var fe=[],Se=Y.length,Ee=0,Ze=w,Ke=S,mt=Y.lastIndexOf(O);mt<0&&(mt=0);for(var Ot=0;Ot=128&&T("not-basic"),fe.push(Y.charCodeAt(Ot));for(var Pt=mt>0?mt+1:0;Pt=Se&&T("invalid-input");var Xe=N(Y.charCodeAt(Pt++));(Xe>=m||Xe>_((d-Ee)/Ue))&&T("overflow"),Ee+=Xe*Ue;var Qe=nt<=Ke?g:nt>=Ke+y?y:nt-Ke;if(Xe_(d/ut)&&T("overflow"),Ue*=ut}var dt=fe.length+1;Ke=U(Ee-bt,dt,bt==0),_(Ee/dt)>d-Ze&&T("overflow"),Ze+=_(Ee/dt),Ee%=dt,fe.splice(Ee++,0,Ze)}return String.fromCodePoint.apply(String,fe)},ae=function(Y){var fe=[];Y=Q(Y);var Se=Y.length,Ee=w,Ze=0,Ke=S,mt=!0,Ot=!1,Pt=void 0;try{for(var bt=Y[Symbol.iterator](),Ue;!(mt=(Ue=bt.next()).done);mt=!0){var nt=Ue.value;nt<128&&fe.push(B(nt))}}catch(dn){Ot=!0,Pt=dn}finally{try{!mt&&bt.return&&bt.return()}finally{if(Ot)throw Pt}}var Xe=fe.length,Qe=Xe;for(Xe&&fe.push(O);Qe=Ee&&ot_((d-Ze)/Nt)&&T("overflow"),Ze+=(ut-Ee)*Nt,Ee=ut;var vr=!0,Nr=!1,wr=void 0;try{for(var Qr=Y[Symbol.iterator](),fs;!(vr=(fs=Qr.next()).done);vr=!0){var Yn=fs.value;if(Ynd&&T("overflow"),Yn==Ee){for(var dr=Ze,ir=m;;ir+=m){var hn=ir<=Ke?g:ir>=Ke+y?y:ir-Ke;if(dr>6|192).toString(16).toUpperCase()+"%"+(Y&63|128).toString(16).toUpperCase():fe="%"+(Y>>12|224).toString(16).toUpperCase()+"%"+(Y>>6&63|128).toString(16).toUpperCase()+"%"+(Y&63|128).toString(16).toUpperCase(),fe}function pe(re){for(var Y="",fe=0,Se=re.length;fe=194&&Ee<224){if(Se-fe>=6){var Ze=parseInt(re.substr(fe+4,2),16);Y+=String.fromCharCode((Ee&31)<<6|Ze&63)}else Y+=re.substr(fe,6);fe+=6}else if(Ee>=224){if(Se-fe>=9){var Ke=parseInt(re.substr(fe+4,2),16),mt=parseInt(re.substr(fe+7,2),16);Y+=String.fromCharCode((Ee&15)<<12|(Ke&63)<<6|mt&63)}else Y+=re.substr(fe,9);fe+=9}else Y+=re.substr(fe,3),fe+=3}return Y}function K(re,Y){function fe(Se){var Ee=pe(Se);return Ee.match(Y.UNRESERVED)?Ee:Se}return re.scheme&&(re.scheme=String(re.scheme).replace(Y.PCT_ENCODED,fe).toLowerCase().replace(Y.NOT_SCHEME,"")),re.userinfo!==void 0&&(re.userinfo=String(re.userinfo).replace(Y.PCT_ENCODED,fe).replace(Y.NOT_USERINFO,$).replace(Y.PCT_ENCODED,a)),re.host!==void 0&&(re.host=String(re.host).replace(Y.PCT_ENCODED,fe).toLowerCase().replace(Y.NOT_HOST,$).replace(Y.PCT_ENCODED,a)),re.path!==void 0&&(re.path=String(re.path).replace(Y.PCT_ENCODED,fe).replace(re.scheme?Y.NOT_PATH:Y.NOT_PATH_NOSCHEME,$).replace(Y.PCT_ENCODED,a)),re.query!==void 0&&(re.query=String(re.query).replace(Y.PCT_ENCODED,fe).replace(Y.NOT_QUERY,$).replace(Y.PCT_ENCODED,a)),re.fragment!==void 0&&(re.fragment=String(re.fragment).replace(Y.PCT_ENCODED,fe).replace(Y.NOT_FRAGMENT,$).replace(Y.PCT_ENCODED,a)),re}function le(re){return re.replace(/^0*(.*)/,"$1")||"0"}function be(re,Y){var fe=re.match(Y.IPV4ADDRESS)||[],Se=h(fe,2),Ee=Se[1];return Ee?Ee.split(".").map(le).join("."):re}function Le(re,Y){var fe=re.match(Y.IPV6ADDRESS)||[],Se=h(fe,3),Ee=Se[1],Ze=Se[2];if(Ee){for(var Ke=Ee.toLowerCase().split("::").reverse(),mt=h(Ke,2),Ot=mt[0],Pt=mt[1],bt=Pt?Pt.split(":").map(le):[],Ue=Ot.split(":").map(le),nt=Y.IPV4ADDRESS.test(Ue[Ue.length-1]),Xe=nt?7:8,Qe=Ue.length-Xe,ut=Array(Xe),dt=0;dt1){var sr=ut.slice(0,Qt.index),ot=ut.slice(Qt.index+Qt.length);jt=sr.join(":")+"::"+ot.join(":")}else jt=ut.join(":");return Ze&&(jt+="%"+Ze),jt}else return re}var qe=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,rt="".match(/(){0}/)[1]===void 0;function ht(re){var Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},fe={},Se=Y.iri!==!1?p:c;Y.reference==="suffix"&&(re=(Y.scheme?Y.scheme+":":"")+"//"+re);var Ee=re.match(qe);if(Ee){rt?(fe.scheme=Ee[1],fe.userinfo=Ee[3],fe.host=Ee[4],fe.port=parseInt(Ee[5],10),fe.path=Ee[6]||"",fe.query=Ee[7],fe.fragment=Ee[8],isNaN(fe.port)&&(fe.port=Ee[5])):(fe.scheme=Ee[1]||void 0,fe.userinfo=re.indexOf("@")!==-1?Ee[3]:void 0,fe.host=re.indexOf("//")!==-1?Ee[4]:void 0,fe.port=parseInt(Ee[5],10),fe.path=Ee[6]||"",fe.query=re.indexOf("?")!==-1?Ee[7]:void 0,fe.fragment=re.indexOf("#")!==-1?Ee[8]:void 0,isNaN(fe.port)&&(fe.port=re.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?Ee[4]:void 0)),fe.host&&(fe.host=Le(be(fe.host,Se),Se)),fe.scheme===void 0&&fe.userinfo===void 0&&fe.host===void 0&&fe.port===void 0&&!fe.path&&fe.query===void 0?fe.reference="same-document":fe.scheme===void 0?fe.reference="relative":fe.fragment===void 0?fe.reference="absolute":fe.reference="uri",Y.reference&&Y.reference!=="suffix"&&Y.reference!==fe.reference&&(fe.error=fe.error||"URI is not a "+Y.reference+" reference.");var Ze=he[(Y.scheme||fe.scheme||"").toLowerCase()];if(!Y.unicodeSupport&&(!Ze||!Ze.unicodeSupport)){if(fe.host&&(Y.domainHost||Ze&&Ze.domainHost))try{fe.host=H.toASCII(fe.host.replace(Se.PCT_ENCODED,pe).toLowerCase())}catch(Ke){fe.error=fe.error||"Host's domain name can not be converted to ASCII via punycode: "+Ke}K(fe,c)}else K(fe,Se);Ze&&Ze.parse&&Ze.parse(fe,Y)}else fe.error=fe.error||"URI can not be parsed.";return fe}function pt(re,Y){var fe=Y.iri!==!1?p:c,Se=[];return re.userinfo!==void 0&&(Se.push(re.userinfo),Se.push("@")),re.host!==void 0&&Se.push(Le(be(String(re.host),fe),fe).replace(fe.IPV6ADDRESS,function(Ee,Ze,Ke){return"["+Ze+(Ke?"%25"+Ke:"")+"]"})),(typeof re.port=="number"||typeof re.port=="string")&&(Se.push(":"),Se.push(String(re.port))),Se.length?Se.join(""):void 0}var Et=/^\.\.?\//,G=/^\/\.(\/|$)/,Ce=/^\/\.\.(\/|$)/,Ve=/^\/?(?:.|\n)*?(?=\/|$)/;function et(re){for(var Y=[];re.length;)if(re.match(Et))re=re.replace(Et,"");else if(re.match(G))re=re.replace(G,"/");else if(re.match(Ce))re=re.replace(Ce,"/"),Y.pop();else if(re==="."||re==="..")re="";else{var fe=re.match(Ve);if(fe){var Se=fe[0];re=re.slice(Se.length),Y.push(Se)}else throw new Error("Unexpected dot segment condition")}return Y.join("")}function it(re){var Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},fe=Y.iri?p:c,Se=[],Ee=he[(Y.scheme||re.scheme||"").toLowerCase()];if(Ee&&Ee.serialize&&Ee.serialize(re,Y),re.host&&!fe.IPV6ADDRESS.test(re.host)){if(Y.domainHost||Ee&&Ee.domainHost)try{re.host=Y.iri?H.toUnicode(re.host):H.toASCII(re.host.replace(fe.PCT_ENCODED,pe).toLowerCase())}catch(mt){re.error=re.error||"Host's domain name can not be converted to "+(Y.iri?"Unicode":"ASCII")+" via punycode: "+mt}}K(re,fe),Y.reference!=="suffix"&&re.scheme&&(Se.push(re.scheme),Se.push(":"));var Ze=pt(re,Y);if(Ze!==void 0&&(Y.reference!=="suffix"&&Se.push("//"),Se.push(Ze),re.path&&re.path.charAt(0)!=="/"&&Se.push("/")),re.path!==void 0){var Ke=re.path;!Y.absolutePath&&(!Ee||!Ee.absolutePath)&&(Ke=et(Ke)),Ze===void 0&&(Ke=Ke.replace(/^\/\//,"/%2F")),Se.push(Ke)}return re.query!==void 0&&(Se.push("?"),Se.push(re.query)),re.fragment!==void 0&&(Se.push("#"),Se.push(re.fragment)),Se.join("")}function st(re,Y){var fe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Se=arguments[3],Ee={};return Se||(re=ht(it(re,fe),fe),Y=ht(it(Y,fe),fe)),fe=fe||{},!fe.tolerant&&Y.scheme?(Ee.scheme=Y.scheme,Ee.userinfo=Y.userinfo,Ee.host=Y.host,Ee.port=Y.port,Ee.path=et(Y.path||""),Ee.query=Y.query):(Y.userinfo!==void 0||Y.host!==void 0||Y.port!==void 0?(Ee.userinfo=Y.userinfo,Ee.host=Y.host,Ee.port=Y.port,Ee.path=et(Y.path||""),Ee.query=Y.query):(Y.path?(Y.path.charAt(0)==="/"?Ee.path=et(Y.path):((re.userinfo!==void 0||re.host!==void 0||re.port!==void 0)&&!re.path?Ee.path="/"+Y.path:re.path?Ee.path=re.path.slice(0,re.path.lastIndexOf("/")+1)+Y.path:Ee.path=Y.path,Ee.path=et(Ee.path)),Ee.query=Y.query):(Ee.path=re.path,Y.query!==void 0?Ee.query=Y.query:Ee.query=re.query),Ee.userinfo=re.userinfo,Ee.host=re.host,Ee.port=re.port),Ee.scheme=re.scheme),Ee.fragment=Y.fragment,Ee}function wt(re,Y,fe){var Se=o({scheme:"null"},fe);return it(st(ht(re,Se),ht(Y,Se),Se,!0),Se)}function vt(re,Y){return typeof re=="string"?re=it(ht(re,Y),Y):i(re)==="object"&&(re=ht(it(re,Y),Y)),re}function Dt(re,Y,fe){return typeof re=="string"?re=it(ht(re,fe),fe):i(re)==="object"&&(re=it(re,fe)),typeof Y=="string"?Y=it(ht(Y,fe),fe):i(Y)==="object"&&(Y=it(Y,fe)),re===Y}function _t(re,Y){return re&&re.toString().replace(!Y||!Y.iri?c.ESCAPE:p.ESCAPE,$)}function W(re,Y){return re&&re.toString().replace(!Y||!Y.iri?c.PCT_ENCODED:p.PCT_ENCODED,pe)}var xt={scheme:"http",domainHost:!0,parse:function(Y,fe){return Y.host||(Y.error=Y.error||"HTTP URIs must have a host."),Y},serialize:function(Y,fe){var Se=String(Y.scheme).toLowerCase()==="https";return(Y.port===(Se?443:80)||Y.port==="")&&(Y.port=void 0),Y.path||(Y.path="/"),Y}},Ye={scheme:"https",domainHost:xt.domainHost,parse:xt.parse,serialize:xt.serialize};function Kt(re){return typeof re.secure=="boolean"?re.secure:String(re.scheme).toLowerCase()==="wss"}var De={scheme:"ws",domainHost:!0,parse:function(Y,fe){var Se=Y;return Se.secure=Kt(Se),Se.resourceName=(Se.path||"/")+(Se.query?"?"+Se.query:""),Se.path=void 0,Se.query=void 0,Se},serialize:function(Y,fe){if((Y.port===(Kt(Y)?443:80)||Y.port==="")&&(Y.port=void 0),typeof Y.secure=="boolean"&&(Y.scheme=Y.secure?"wss":"ws",Y.secure=void 0),Y.resourceName){var Se=Y.resourceName.split("?"),Ee=h(Se,2),Ze=Ee[0],Ke=Ee[1];Y.path=Ze&&Ze!=="/"?Ze:void 0,Y.query=Ke,Y.resourceName=void 0}return Y.fragment=void 0,Y}},X={scheme:"wss",domainHost:De.domainHost,parse:De.parse,serialize:De.serialize},ne={},ee="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",oe="[0-9A-Fa-f]",ce=n(n("%[EFef]"+oe+"%"+oe+oe+"%"+oe+oe)+"|"+n("%[89A-Fa-f]"+oe+"%"+oe+oe)+"|"+n("%"+oe+oe)),z="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",J="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",ie=s(J,'[\\"\\\\]'),de="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",we=new RegExp(ee,"g"),L=new RegExp(ce,"g"),ue=new RegExp(s("[^]",z,"[\\.]",'[\\"]',ie),"g"),Te=new RegExp(s("[^]",ee,de),"g"),Be=Te;function $e(re){var Y=pe(re);return Y.match(we)?Y:re}var Fe={scheme:"mailto",parse:function(Y,fe){var Se=Y,Ee=Se.to=Se.path?Se.path.split(","):[];if(Se.path=void 0,Se.query){for(var Ze=!1,Ke={},mt=Se.query.split("&"),Ot=0,Pt=mt.length;Ot=55296&&i<=56319&&n=D)throw new Error("Cannot access property/index "+B+" levels up, current level is "+D);return _[D-B]}if(B>D)throw new Error("Cannot access data "+B+" levels up, current level is "+D);if(R="data"+(D-B||""),!T)return R}for(var Q=R,I=T.split("/"),N=0;N=0?{index:S,compiling:!0}:(S=this._compilations.length,this._compilations[S]={schema:y,root:v,baseId:x},{index:S,compiling:!1})}function c(y,v,x){var S=p.call(this,y,v,x);S>=0&&this._compilations.splice(S,1)}function p(y,v,x){for(var S=0;S%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,o=/^(?:(?:http[s\u017F]?|ftp):\/\/)(?:(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+(?::(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?@)?(?:(?!10(?:\.[0-9]{1,3}){3})(?!127(?:\.[0-9]{1,3}){3})(?!169\.254(?:\.[0-9]{1,3}){2})(?!192\.168(?:\.[0-9]{1,3}){2})(?!172\.(?:1[6-9]|2[0-9]|3[01])(?:\.[0-9]{1,3}){2})(?:[1-9][0-9]?|1[0-9][0-9]|2[01][0-9]|22[0-3])(?:\.(?:1?[0-9]{1,2}|2[0-4][0-9]|25[0-5])){2}(?:\.(?:[1-9][0-9]?|1[0-9][0-9]|2[0-4][0-9]|25[0-4]))|(?:(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)(?:\.(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)*(?:\.(?:(?:[a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]){2,})))(?::[0-9]{2,5})?(?:\/(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?$/i,u=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,c=/^(?:\/(?:[^~/]|~0|~1)*)*$/,p=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,h=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;xd=f;function f(C){return C=C=="full"?"full":"fast",r.copy(f[C])}f.fast={date:/^\d\d\d\d-[0-1]\d-[0-3]\d$/,time:/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,"date-time":/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,"uri-template":l,url:o,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i,hostname:n,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:O,uuid:u,"json-pointer":c,"json-pointer-uri-fragment":p,"relative-json-pointer":h},f.full={date:m,time:g,"date-time":v,uri:S,"uri-reference":a,"uri-template":l,url:o,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:n,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:O,uuid:u,"json-pointer":c,"json-pointer-uri-fragment":p,"relative-json-pointer":h};function d(C){return C%4===0&&(C%100!==0||C%400===0)}function m(C){var E=C.match(e);if(!E)return!1;var k=+E[1],A=+E[2],D=+E[3];return A>=1&&A<=12&&D>=1&&D<=(A==2&&d(k)?29:t[A])}function g(C,E){var k=C.match(s);if(!k)return!1;var A=k[1],D=k[2],_=k[3],B=k[5];return(A<=23&&D<=59&&_<=59||A==23&&D==59&&_==60)&&(!E||B)}var y=/t|\s/i;function v(C){var E=C.split(y);return E.length==2&&m(E[0])&&g(E[1],!0)}var x=/\/|:/;function S(C){return x.test(C)&&i.test(C)}var w=/[^\\]\\Z/;function O(C){if(w.test(C))return!1;try{return new RegExp(C),!0}catch{return!1}}return xd}var Od,YA;function X6(){return YA||(YA=1,Od=function(e,t,s){var n=" ",i=e.level,a=e.dataLevel,l=e.schema[t],o=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,c="data"+(a||""),p="valid"+i,h,f;if(l=="#"||l=="#/")e.isRoot?(h=e.async,f="validate"):(h=e.root.schema.$async===!0,f="root.refVal[0]");else{var d=e.resolveRef(e.baseId,l,e.isRoot);if(d===void 0){var m=e.MissingRefError.message(e.baseId,l);if(e.opts.missingRefs=="fail"){e.logger.error(m);var g=g||[];g.push(n),n="",e.createErrors!==!1?(n+=" { keyword: '$ref' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(o)+" , params: { ref: '"+e.util.escapeQuotes(l)+"' } ",e.opts.messages!==!1&&(n+=" , message: 'can\\'t resolve reference "+e.util.escapeQuotes(l)+"' "),e.opts.verbose&&(n+=" , schema: "+e.util.toQuotedString(l)+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),n+=" } "):n+=" {} ";var y=n;n=g.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+y+"]); ":n+=" validate.errors = ["+y+"]; return false; ":n+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",u&&(n+=" if (false) { ")}else if(e.opts.missingRefs=="ignore")e.logger.warn(m),u&&(n+=" if (true) { ");else throw new e.MissingRefError(e.baseId,l,m)}else if(d.inline){var v=e.util.copy(e);v.level++;var x="valid"+v.level;v.schema=d.schema,v.schemaPath="",v.errSchemaPath=l;var S=e.validate(v).replace(/validate\.schema/g,d.code);n+=" "+S+" ",u&&(n+=" if ("+x+") { ")}else h=d.$async===!0||e.async&&d.$async!==!1,f=d.code}if(f){var g=g||[];g.push(n),n="",e.opts.passContext?n+=" "+f+".call(this, ":n+=" "+f+"( ",n+=" "+c+", (dataPath || '')",e.errorPath!='""'&&(n+=" + "+e.errorPath);var w=a?"data"+(a-1||""):"parentData",O=a?e.dataPathArr[a]:"parentDataProperty";n+=" , "+w+" , "+O+", rootData) ";var C=n;if(n=g.pop(),h){if(!e.async)throw new Error("async schema referenced by sync schema");u&&(n+=" var "+p+"; "),n+=" try { await "+C+"; ",u&&(n+=" "+p+" = true; "),n+=" } catch (e) { if (!(e instanceof ValidationError)) throw e; if (vErrors === null) vErrors = e.errors; else vErrors = vErrors.concat(e.errors); errors = vErrors.length; ",u&&(n+=" "+p+" = false; "),n+=" } ",u&&(n+=" if ("+p+") { ")}else n+=" if (!"+C+") { if (vErrors === null) vErrors = "+f+".errors; else vErrors = vErrors.concat("+f+".errors); errors = vErrors.length; } ",u&&(n+=" else { ")}return n}),Od}var Sd,HA;function Y6(){return HA||(HA=1,Sd=function(e,t,s){var n=" ",i=e.schema[t],a=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,o=!e.opts.allErrors,u=e.util.copy(e),c="";u.level++;var p="valid"+u.level,h=u.baseId,f=!0,d=i;if(d)for(var m,g=-1,y=d.length-1;g0||m===!1:e.util.schemaHasRules(m,e.RULES.all))&&(f=!1,u.schema=m,u.schemaPath=a+"["+g+"]",u.errSchemaPath=l+"/"+g,n+=" "+e.validate(u)+" ",u.baseId=h,o&&(n+=" if ("+p+") { ",c+="}"));return o&&(f?n+=" if (true) { ":n+=" "+c.slice(0,-1)+" "),n}),Sd}var Ed,KA;function H6(){return KA||(KA=1,Ed=function(e,t,s){var n=" ",i=e.level,a=e.dataLevel,l=e.schema[t],o=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,p="data"+(a||""),h="valid"+i,f="errs__"+i,d=e.util.copy(e),m="";d.level++;var g="valid"+d.level,y=l.every(function(E){return e.opts.strictKeywords?typeof E=="object"&&Object.keys(E).length>0||E===!1:e.util.schemaHasRules(E,e.RULES.all)});if(y){var v=d.baseId;n+=" var "+f+" = errors; var "+h+" = false; ";var x=e.compositeRule;e.compositeRule=d.compositeRule=!0;var S=l;if(S)for(var w,O=-1,C=S.length-1;O0||l===!1:e.util.schemaHasRules(l,e.RULES.all);if(n+="var "+f+" = errors;var "+h+";",w){var O=e.compositeRule;e.compositeRule=d.compositeRule=!0,d.schema=l,d.schemaPath=o,d.errSchemaPath=u,n+=" var "+g+" = false; for (var "+y+" = 0; "+y+" < "+p+".length; "+y+"++) { ",d.errorPath=e.util.getPathExpr(e.errorPath,y,e.opts.jsonPointers,!0);var C=p+"["+y+"]";d.dataPathArr[v]=y;var E=e.validate(d);d.baseId=S,e.util.varOccurences(E,x)<2?n+=" "+e.util.varReplace(E,x,C)+" ":n+=" var "+x+" = "+C+"; "+E+" ",n+=" if ("+g+") break; } ",e.compositeRule=d.compositeRule=O,n+=" "+m+" if (!"+g+") {"}else n+=" if ("+p+".length == 0) {";var k=k||[];k.push(n),n="",e.createErrors!==!1?(n+=" { keyword: 'contains' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: {} ",e.opts.messages!==!1&&(n+=" , message: 'should contain a valid item' "),e.opts.verbose&&(n+=" , schema: validate.schema"+o+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var A=n;return n=k.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+A+"]); ":n+=" validate.errors = ["+A+"]; return false; ":n+=" var err = "+A+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } else { ",w&&(n+=" errors = "+f+"; if (vErrors !== null) { if ("+f+") vErrors.length = "+f+"; else vErrors = null; } "),e.opts.allErrors&&(n+=" } "),n}),kd}var Ad,rP;function t9(){return rP||(rP=1,Ad=function(e,t,s){var n=" ",i=e.level,a=e.dataLevel,l=e.schema[t],o=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,p="data"+(a||""),h="errs__"+i,f=e.util.copy(e),d="";f.level++;var m="valid"+f.level,g={},y={},v=e.opts.ownProperties;for(O in l)if(O!="__proto__"){var x=l[O],S=Array.isArray(x)?y:g;S[O]=x}n+="var "+h+" = errors;";var w=e.errorPath;n+="var missing"+i+";";for(var O in y)if(S=y[O],S.length){if(n+=" if ( "+p+e.util.getProperty(O)+" !== undefined ",v&&(n+=" && Object.prototype.hasOwnProperty.call("+p+", '"+e.util.escapeQuotes(O)+"') "),c){n+=" && ( ";var C=S;if(C)for(var E,k=-1,A=C.length-1;k0||x===!1:e.util.schemaHasRules(x,e.RULES.all))&&(n+=" "+m+" = true; if ( "+p+e.util.getProperty(O)+" !== undefined ",v&&(n+=" && Object.prototype.hasOwnProperty.call("+p+", '"+e.util.escapeQuotes(O)+"') "),n+=") { ",f.schema=x,f.schemaPath=o+e.util.getProperty(O),f.errSchemaPath=u+"/"+e.util.escapeFragment(O),n+=" "+e.validate(f)+" ",f.baseId=F,n+=" } ",c&&(n+=" if ("+m+") { ",d+="}"))}return c&&(n+=" "+d+" if ("+h+" == errors) {"),n}),Ad}var Pd,nP;function r9(){return nP||(nP=1,Pd=function(e,t,s){var n=" ",i=e.level,a=e.dataLevel,l=e.schema[t],o=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,p="data"+(a||""),h="valid"+i,f=e.opts.$data&&l&&l.$data;f&&(n+=" var schema"+i+" = "+e.util.getData(l.$data,a,e.dataPathArr)+"; ");var d="i"+i,m="schema"+i;f||(n+=" var "+m+" = validate.schema"+o+";"),n+="var "+h+";",f&&(n+=" if (schema"+i+" === undefined) "+h+" = true; else if (!Array.isArray(schema"+i+")) "+h+" = false; else {"),n+=""+h+" = false;for (var "+d+"=0; "+d+"<"+m+".length; "+d+"++) if (equal("+p+", "+m+"["+d+"])) { "+h+" = true; break; }",f&&(n+=" } "),n+=" if (!"+h+") { ";var g=g||[];g.push(n),n="",e.createErrors!==!1?(n+=" { keyword: 'enum' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { allowedValues: schema"+i+" } ",e.opts.messages!==!1&&(n+=" , message: 'should be equal to one of the allowed values' "),e.opts.verbose&&(n+=" , schema: validate.schema"+o+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var y=n;return n=g.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+y+"]); ":n+=" validate.errors = ["+y+"]; return false; ":n+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" }",c&&(n+=" else { "),n}),Pd}var Td,sP;function n9(){return sP||(sP=1,Td=function(e,t,s){var n=" ",i=e.level,a=e.dataLevel,l=e.schema[t],o=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,p="data"+(a||"");if(e.opts.format===!1)return c&&(n+=" if (true) { "),n;var h=e.opts.$data&&l&&l.$data,f;h?(n+=" var schema"+i+" = "+e.util.getData(l.$data,a,e.dataPathArr)+"; ",f="schema"+i):f=l;var d=e.opts.unknownFormats,m=Array.isArray(d);if(h){var g="format"+i,y="isObject"+i,v="formatType"+i;n+=" var "+g+" = formats["+f+"]; var "+y+" = typeof "+g+" == 'object' && !("+g+" instanceof RegExp) && "+g+".validate; var "+v+" = "+y+" && "+g+".type || 'string'; if ("+y+") { ",e.async&&(n+=" var async"+i+" = "+g+".async; "),n+=" "+g+" = "+g+".validate; } if ( ",h&&(n+=" ("+f+" !== undefined && typeof "+f+" != 'string') || "),n+=" (",d!="ignore"&&(n+=" ("+f+" && !"+g+" ",m&&(n+=" && self._opts.unknownFormats.indexOf("+f+") == -1 "),n+=") || "),n+=" ("+g+" && "+v+" == '"+s+"' && !(typeof "+g+" == 'function' ? ",e.async?n+=" (async"+i+" ? await "+g+"("+p+") : "+g+"("+p+")) ":n+=" "+g+"("+p+") ",n+=" : "+g+".test("+p+"))))) {"}else{var g=e.formats[l];if(!g){if(d=="ignore")return e.logger.warn('unknown format "'+l+'" ignored in schema at path "'+e.errSchemaPath+'"'),c&&(n+=" if (true) { "),n;if(m&&d.indexOf(l)>=0)return c&&(n+=" if (true) { "),n;throw new Error('unknown format "'+l+'" is used in schema at path "'+e.errSchemaPath+'"')}var y=typeof g=="object"&&!(g instanceof RegExp)&&g.validate,v=y&&g.type||"string";if(y){var x=g.async===!0;g=g.validate}if(v!=s)return c&&(n+=" if (true) { "),n;if(x){if(!e.async)throw new Error("async format in sync schema");var S="formats"+e.util.getProperty(l)+".validate";n+=" if (!(await "+S+"("+p+"))) { "}else{n+=" if (! ";var S="formats"+e.util.getProperty(l);y&&(S+=".validate"),typeof g=="function"?n+=" "+S+"("+p+") ":n+=" "+S+".test("+p+") ",n+=") { "}}var w=w||[];w.push(n),n="",e.createErrors!==!1?(n+=" { keyword: 'format' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { format: ",h?n+=""+f:n+=""+e.util.toQuotedString(l),n+=" } ",e.opts.messages!==!1&&(n+=` , message: 'should match format "`,h?n+="' + "+f+" + '":n+=""+e.util.escapeQuotes(l),n+=`"' `),e.opts.verbose&&(n+=" , schema: ",h?n+="validate.schema"+o:n+=""+e.util.toQuotedString(l),n+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var O=n;return n=w.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+O+"]); ":n+=" validate.errors = ["+O+"]; return false; ":n+=" var err = "+O+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } ",c&&(n+=" else { "),n}),Td}var Dd,iP;function s9(){return iP||(iP=1,Dd=function(e,t,s){var n=" ",i=e.level,a=e.dataLevel,l=e.schema[t],o=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,p="data"+(a||""),h="valid"+i,f="errs__"+i,d=e.util.copy(e);d.level++;var m="valid"+d.level,g=e.schema.then,y=e.schema.else,v=g!==void 0&&(e.opts.strictKeywords?typeof g=="object"&&Object.keys(g).length>0||g===!1:e.util.schemaHasRules(g,e.RULES.all)),x=y!==void 0&&(e.opts.strictKeywords?typeof y=="object"&&Object.keys(y).length>0||y===!1:e.util.schemaHasRules(y,e.RULES.all)),S=d.baseId;if(v||x){var w;d.createErrors=!1,d.schema=l,d.schemaPath=o,d.errSchemaPath=u,n+=" var "+f+" = errors; var "+h+" = true; ";var O=e.compositeRule;e.compositeRule=d.compositeRule=!0,n+=" "+e.validate(d)+" ",d.baseId=S,d.createErrors=!0,n+=" errors = "+f+"; if (vErrors !== null) { if ("+f+") vErrors.length = "+f+"; else vErrors = null; } ",e.compositeRule=d.compositeRule=O,v?(n+=" if ("+m+") { ",d.schema=e.schema.then,d.schemaPath=e.schemaPath+".then",d.errSchemaPath=e.errSchemaPath+"/then",n+=" "+e.validate(d)+" ",d.baseId=S,n+=" "+h+" = "+m+"; ",v&&x?(w="ifClause"+i,n+=" var "+w+" = 'then'; "):w="'then'",n+=" } ",x&&(n+=" else { ")):n+=" if (!"+m+") { ",x&&(d.schema=e.schema.else,d.schemaPath=e.schemaPath+".else",d.errSchemaPath=e.errSchemaPath+"/else",n+=" "+e.validate(d)+" ",d.baseId=S,n+=" "+h+" = "+m+"; ",v&&x?(w="ifClause"+i,n+=" var "+w+" = 'else'; "):w="'else'",n+=" } "),n+=" if (!"+h+") { var err = ",e.createErrors!==!1?(n+=" { keyword: 'if' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { failingKeyword: "+w+" } ",e.opts.messages!==!1&&(n+=` , message: 'should match "' + `+w+` + '" schema' `),e.opts.verbose&&(n+=" , schema: validate.schema"+o+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&c&&(e.async?n+=" throw new ValidationError(vErrors); ":n+=" validate.errors = vErrors; return false; "),n+=" } ",c&&(n+=" else { ")}else c&&(n+=" if (true) { ");return n}),Dd}var _d,aP;function i9(){return aP||(aP=1,_d=function(e,t,s){var n=" ",i=e.level,a=e.dataLevel,l=e.schema[t],o=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,p="data"+(a||""),h="valid"+i,f="errs__"+i,d=e.util.copy(e),m="";d.level++;var g="valid"+d.level,y="i"+i,v=d.dataLevel=e.dataLevel+1,x="data"+v,S=e.baseId;if(n+="var "+f+" = errors;var "+h+";",Array.isArray(l)){var w=e.schema.additionalItems;if(w===!1){n+=" "+h+" = "+p+".length <= "+l.length+"; ";var O=u;u=e.errSchemaPath+"/additionalItems",n+=" if (!"+h+") { ";var C=C||[];C.push(n),n="",e.createErrors!==!1?(n+=" { keyword: 'additionalItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { limit: "+l.length+" } ",e.opts.messages!==!1&&(n+=" , message: 'should NOT have more than "+l.length+" items' "),e.opts.verbose&&(n+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var E=n;n=C.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+E+"]); ":n+=" validate.errors = ["+E+"]; return false; ":n+=" var err = "+E+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } ",u=O,c&&(m+="}",n+=" else { ")}var k=l;if(k){for(var A,D=-1,_=k.length-1;D<_;)if(A=k[D+=1],e.opts.strictKeywords?typeof A=="object"&&Object.keys(A).length>0||A===!1:e.util.schemaHasRules(A,e.RULES.all)){n+=" "+g+" = true; if ("+p+".length > "+D+") { ";var B=p+"["+D+"]";d.schema=A,d.schemaPath=o+"["+D+"]",d.errSchemaPath=u+"/"+D,d.errorPath=e.util.getPathExpr(e.errorPath,D,e.opts.jsonPointers,!0),d.dataPathArr[v]=D;var T=e.validate(d);d.baseId=S,e.util.varOccurences(T,x)<2?n+=" "+e.util.varReplace(T,x,B)+" ":n+=" var "+x+" = "+B+"; "+T+" ",n+=" } ",c&&(n+=" if ("+g+") { ",m+="}")}}if(typeof w=="object"&&(e.opts.strictKeywords?typeof w=="object"&&Object.keys(w).length>0||w===!1:e.util.schemaHasRules(w,e.RULES.all))){d.schema=w,d.schemaPath=e.schemaPath+".additionalItems",d.errSchemaPath=e.errSchemaPath+"/additionalItems",n+=" "+g+" = true; if ("+p+".length > "+l.length+") { for (var "+y+" = "+l.length+"; "+y+" < "+p+".length; "+y+"++) { ",d.errorPath=e.util.getPathExpr(e.errorPath,y,e.opts.jsonPointers,!0);var B=p+"["+y+"]";d.dataPathArr[v]=y;var T=e.validate(d);d.baseId=S,e.util.varOccurences(T,x)<2?n+=" "+e.util.varReplace(T,x,B)+" ":n+=" var "+x+" = "+B+"; "+T+" ",c&&(n+=" if (!"+g+") break; "),n+=" } } ",c&&(n+=" if ("+g+") { ",m+="}")}}else if(e.opts.strictKeywords?typeof l=="object"&&Object.keys(l).length>0||l===!1:e.util.schemaHasRules(l,e.RULES.all)){d.schema=l,d.schemaPath=o,d.errSchemaPath=u,n+=" for (var "+y+" = 0; "+y+" < "+p+".length; "+y+"++) { ",d.errorPath=e.util.getPathExpr(e.errorPath,y,e.opts.jsonPointers,!0);var B=p+"["+y+"]";d.dataPathArr[v]=y;var T=e.validate(d);d.baseId=S,e.util.varOccurences(T,x)<2?n+=" "+e.util.varReplace(T,x,B)+" ":n+=" var "+x+" = "+B+"; "+T+" ",c&&(n+=" if (!"+g+") break; "),n+=" }"}return c&&(n+=" "+m+" if ("+f+" == errors) {"),n}),_d}var Id,oP;function lP(){return oP||(oP=1,Id=function(e,t,s){var n=" ",i=e.level,a=e.dataLevel,l=e.schema[t],o=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,S,p="data"+(a||""),h=e.opts.$data&&l&&l.$data,f;h?(n+=" var schema"+i+" = "+e.util.getData(l.$data,a,e.dataPathArr)+"; ",f="schema"+i):f=l;var d=t=="maximum",m=d?"exclusiveMaximum":"exclusiveMinimum",g=e.schema[m],y=e.opts.$data&&g&&g.$data,v=d?"<":">",x=d?">":"<",S=void 0;if(!(h||typeof l=="number"||l===void 0))throw new Error(t+" must be number");if(!(y||g===void 0||typeof g=="number"||typeof g=="boolean"))throw new Error(m+" must be number or boolean");if(y){var w=e.util.getData(g.$data,a,e.dataPathArr),O="exclusive"+i,C="exclType"+i,E="exclIsNumber"+i,k="op"+i,A="' + "+k+" + '";n+=" var schemaExcl"+i+" = "+w+"; ",w="schemaExcl"+i,n+=" var "+O+"; var "+C+" = typeof "+w+"; if ("+C+" != 'boolean' && "+C+" != 'undefined' && "+C+" != 'number') { ";var S=m,D=D||[];D.push(n),n="",e.createErrors!==!1?(n+=" { keyword: '"+(S||"_exclusiveLimit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: {} ",e.opts.messages!==!1&&(n+=" , message: '"+m+" should be boolean' "),e.opts.verbose&&(n+=" , schema: validate.schema"+o+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var _=n;n=D.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+_+"]); ":n+=" validate.errors = ["+_+"]; return false; ":n+=" var err = "+_+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } else if ( ",h&&(n+=" ("+f+" !== undefined && typeof "+f+" != 'number') || "),n+=" "+C+" == 'number' ? ( ("+O+" = "+f+" === undefined || "+w+" "+v+"= "+f+") ? "+p+" "+x+"= "+w+" : "+p+" "+x+" "+f+" ) : ( ("+O+" = "+w+" === true) ? "+p+" "+x+"= "+f+" : "+p+" "+x+" "+f+" ) || "+p+" !== "+p+") { var op"+i+" = "+O+" ? '"+v+"' : '"+v+"='; ",l===void 0&&(S=m,u=e.errSchemaPath+"/"+m,f=w,h=y)}else{var E=typeof g=="number",A=v;if(E&&h){var k="'"+A+"'";n+=" if ( ",h&&(n+=" ("+f+" !== undefined && typeof "+f+" != 'number') || "),n+=" ( "+f+" === undefined || "+g+" "+v+"= "+f+" ? "+p+" "+x+"= "+g+" : "+p+" "+x+" "+f+" ) || "+p+" !== "+p+") { "}else{E&&l===void 0?(O=!0,S=m,u=e.errSchemaPath+"/"+m,f=g,x+="="):(E&&(f=Math[d?"min":"max"](g,l)),g===(E?f:!0)?(O=!0,S=m,u=e.errSchemaPath+"/"+m,x+="="):(O=!1,A+="="));var k="'"+A+"'";n+=" if ( ",h&&(n+=" ("+f+" !== undefined && typeof "+f+" != 'number') || "),n+=" "+p+" "+x+" "+f+" || "+p+" !== "+p+") { "}}S=S||t;var D=D||[];D.push(n),n="",e.createErrors!==!1?(n+=" { keyword: '"+(S||"_limit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { comparison: "+k+", limit: "+f+", exclusive: "+O+" } ",e.opts.messages!==!1&&(n+=" , message: 'should be "+A+" ",h?n+="' + "+f:n+=""+f+"'"),e.opts.verbose&&(n+=" , schema: ",h?n+="validate.schema"+o:n+=""+l,n+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var _=n;return n=D.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+_+"]); ":n+=" validate.errors = ["+_+"]; return false; ":n+=" var err = "+_+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } ",c&&(n+=" else { "),n}),Id}var Rd,uP;function cP(){return uP||(uP=1,Rd=function(e,t,s){var n=" ",i=e.level,a=e.dataLevel,l=e.schema[t],o=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,m,p="data"+(a||""),h=e.opts.$data&&l&&l.$data,f;if(h?(n+=" var schema"+i+" = "+e.util.getData(l.$data,a,e.dataPathArr)+"; ",f="schema"+i):f=l,!(h||typeof l=="number"))throw new Error(t+" must be number");var d=t=="maxItems"?">":"<";n+="if ( ",h&&(n+=" ("+f+" !== undefined && typeof "+f+" != 'number') || "),n+=" "+p+".length "+d+" "+f+") { ";var m=t,g=g||[];g.push(n),n="",e.createErrors!==!1?(n+=" { keyword: '"+(m||"_limitItems")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { limit: "+f+" } ",e.opts.messages!==!1&&(n+=" , message: 'should NOT have ",t=="maxItems"?n+="more":n+="fewer",n+=" than ",h?n+="' + "+f+" + '":n+=""+l,n+=" items' "),e.opts.verbose&&(n+=" , schema: ",h?n+="validate.schema"+o:n+=""+l,n+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var y=n;return n=g.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+y+"]); ":n+=" validate.errors = ["+y+"]; return false; ":n+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+="} ",c&&(n+=" else { "),n}),Rd}var Fd,fP;function pP(){return fP||(fP=1,Fd=function(e,t,s){var n=" ",i=e.level,a=e.dataLevel,l=e.schema[t],o=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,m,p="data"+(a||""),h=e.opts.$data&&l&&l.$data,f;if(h?(n+=" var schema"+i+" = "+e.util.getData(l.$data,a,e.dataPathArr)+"; ",f="schema"+i):f=l,!(h||typeof l=="number"))throw new Error(t+" must be number");var d=t=="maxLength"?">":"<";n+="if ( ",h&&(n+=" ("+f+" !== undefined && typeof "+f+" != 'number') || "),e.opts.unicode===!1?n+=" "+p+".length ":n+=" ucs2length("+p+") ",n+=" "+d+" "+f+") { ";var m=t,g=g||[];g.push(n),n="",e.createErrors!==!1?(n+=" { keyword: '"+(m||"_limitLength")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { limit: "+f+" } ",e.opts.messages!==!1&&(n+=" , message: 'should NOT be ",t=="maxLength"?n+="longer":n+="shorter",n+=" than ",h?n+="' + "+f+" + '":n+=""+l,n+=" characters' "),e.opts.verbose&&(n+=" , schema: ",h?n+="validate.schema"+o:n+=""+l,n+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var y=n;return n=g.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+y+"]); ":n+=" validate.errors = ["+y+"]; return false; ":n+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+="} ",c&&(n+=" else { "),n}),Fd}var Bd,hP;function dP(){return hP||(hP=1,Bd=function(e,t,s){var n=" ",i=e.level,a=e.dataLevel,l=e.schema[t],o=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,m,p="data"+(a||""),h=e.opts.$data&&l&&l.$data,f;if(h?(n+=" var schema"+i+" = "+e.util.getData(l.$data,a,e.dataPathArr)+"; ",f="schema"+i):f=l,!(h||typeof l=="number"))throw new Error(t+" must be number");var d=t=="maxProperties"?">":"<";n+="if ( ",h&&(n+=" ("+f+" !== undefined && typeof "+f+" != 'number') || "),n+=" Object.keys("+p+").length "+d+" "+f+") { ";var m=t,g=g||[];g.push(n),n="",e.createErrors!==!1?(n+=" { keyword: '"+(m||"_limitProperties")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { limit: "+f+" } ",e.opts.messages!==!1&&(n+=" , message: 'should NOT have ",t=="maxProperties"?n+="more":n+="fewer",n+=" than ",h?n+="' + "+f+" + '":n+=""+l,n+=" properties' "),e.opts.verbose&&(n+=" , schema: ",h?n+="validate.schema"+o:n+=""+l,n+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var y=n;return n=g.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+y+"]); ":n+=" validate.errors = ["+y+"]; return false; ":n+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+="} ",c&&(n+=" else { "),n}),Bd}var Nd,mP;function a9(){return mP||(mP=1,Nd=function(e,t,s){var n=" ",i=e.level,a=e.dataLevel,l=e.schema[t],o=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,p="data"+(a||""),h=e.opts.$data&&l&&l.$data,f;if(h?(n+=" var schema"+i+" = "+e.util.getData(l.$data,a,e.dataPathArr)+"; ",f="schema"+i):f=l,!(h||typeof l=="number"))throw new Error(t+" must be number");n+="var division"+i+";if (",h&&(n+=" "+f+" !== undefined && ( typeof "+f+" != 'number' || "),n+=" (division"+i+" = "+p+" / "+f+", ",e.opts.multipleOfPrecision?n+=" Math.abs(Math.round(division"+i+") - division"+i+") > 1e-"+e.opts.multipleOfPrecision+" ":n+=" division"+i+" !== parseInt(division"+i+") ",n+=" ) ",h&&(n+=" ) "),n+=" ) { ";var d=d||[];d.push(n),n="",e.createErrors!==!1?(n+=" { keyword: 'multipleOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { multipleOf: "+f+" } ",e.opts.messages!==!1&&(n+=" , message: 'should be multiple of ",h?n+="' + "+f:n+=""+f+"'"),e.opts.verbose&&(n+=" , schema: ",h?n+="validate.schema"+o:n+=""+l,n+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var m=n;return n=d.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+m+"]); ":n+=" validate.errors = ["+m+"]; return false; ":n+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+="} ",c&&(n+=" else { "),n}),Nd}var Ld,gP;function o9(){return gP||(gP=1,Ld=function(e,t,s){var n=" ",i=e.level,a=e.dataLevel,l=e.schema[t],o=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,p="data"+(a||""),h="errs__"+i,f=e.util.copy(e);f.level++;var d="valid"+f.level;if(e.opts.strictKeywords?typeof l=="object"&&Object.keys(l).length>0||l===!1:e.util.schemaHasRules(l,e.RULES.all)){f.schema=l,f.schemaPath=o,f.errSchemaPath=u,n+=" var "+h+" = errors; ";var m=e.compositeRule;e.compositeRule=f.compositeRule=!0,f.createErrors=!1;var g;f.opts.allErrors&&(g=f.opts.allErrors,f.opts.allErrors=!1),n+=" "+e.validate(f)+" ",f.createErrors=!0,g&&(f.opts.allErrors=g),e.compositeRule=f.compositeRule=m,n+=" if ("+d+") { ";var y=y||[];y.push(n),n="",e.createErrors!==!1?(n+=" { keyword: 'not' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: {} ",e.opts.messages!==!1&&(n+=" , message: 'should NOT be valid' "),e.opts.verbose&&(n+=" , schema: validate.schema"+o+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var v=n;n=y.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+v+"]); ":n+=" validate.errors = ["+v+"]; return false; ":n+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } else { errors = "+h+"; if (vErrors !== null) { if ("+h+") vErrors.length = "+h+"; else vErrors = null; } ",e.opts.allErrors&&(n+=" } ")}else n+=" var err = ",e.createErrors!==!1?(n+=" { keyword: 'not' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: {} ",e.opts.messages!==!1&&(n+=" , message: 'should NOT be valid' "),e.opts.verbose&&(n+=" , schema: validate.schema"+o+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",c&&(n+=" if (false) { ");return n}),Ld}var $d,yP;function l9(){return yP||(yP=1,$d=function(e,t,s){var n=" ",i=e.level,a=e.dataLevel,l=e.schema[t],o=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,p="data"+(a||""),h="valid"+i,f="errs__"+i,d=e.util.copy(e),m="";d.level++;var g="valid"+d.level,y=d.baseId,v="prevValid"+i,x="passingSchemas"+i;n+="var "+f+" = errors , "+v+" = false , "+h+" = false , "+x+" = null; ";var S=e.compositeRule;e.compositeRule=d.compositeRule=!0;var w=l;if(w)for(var O,C=-1,E=w.length-1;C0||O===!1:e.util.schemaHasRules(O,e.RULES.all))?(d.schema=O,d.schemaPath=o+"["+C+"]",d.errSchemaPath=u+"/"+C,n+=" "+e.validate(d)+" ",d.baseId=y):n+=" var "+g+" = true; ",C&&(n+=" if ("+g+" && "+v+") { "+h+" = false; "+x+" = ["+x+", "+C+"]; } else { ",m+="}"),n+=" if ("+g+") { "+h+" = "+v+" = true; "+x+" = "+C+"; }";return e.compositeRule=d.compositeRule=S,n+=""+m+"if (!"+h+") { var err = ",e.createErrors!==!1?(n+=" { keyword: 'oneOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { passingSchemas: "+x+" } ",e.opts.messages!==!1&&(n+=" , message: 'should match exactly one schema in oneOf' "),e.opts.verbose&&(n+=" , schema: validate.schema"+o+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&c&&(e.async?n+=" throw new ValidationError(vErrors); ":n+=" validate.errors = vErrors; return false; "),n+="} else { errors = "+f+"; if (vErrors !== null) { if ("+f+") vErrors.length = "+f+"; else vErrors = null; }",e.opts.allErrors&&(n+=" } "),n}),$d}var Md,bP;function u9(){return bP||(bP=1,Md=function(e,t,s){var n=" ",i=e.level,a=e.dataLevel,l=e.schema[t],o=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,p="data"+(a||""),h=e.opts.$data&&l&&l.$data,f;h?(n+=" var schema"+i+" = "+e.util.getData(l.$data,a,e.dataPathArr)+"; ",f="schema"+i):f=l;var d=h?"(new RegExp("+f+"))":e.usePattern(l);n+="if ( ",h&&(n+=" ("+f+" !== undefined && typeof "+f+" != 'string') || "),n+=" !"+d+".test("+p+") ) { ";var m=m||[];m.push(n),n="",e.createErrors!==!1?(n+=" { keyword: 'pattern' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { pattern: ",h?n+=""+f:n+=""+e.util.toQuotedString(l),n+=" } ",e.opts.messages!==!1&&(n+=` , message: 'should match pattern "`,h?n+="' + "+f+" + '":n+=""+e.util.escapeQuotes(l),n+=`"' `),e.opts.verbose&&(n+=" , schema: ",h?n+="validate.schema"+o:n+=""+e.util.toQuotedString(l),n+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var g=n;return n=m.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+g+"]); ":n+=" validate.errors = ["+g+"]; return false; ":n+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+="} ",c&&(n+=" else { "),n}),Md}var jd,vP;function c9(){return vP||(vP=1,jd=function(e,t,s){var n=" ",i=e.level,a=e.dataLevel,l=e.schema[t],o=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,p="data"+(a||""),h="errs__"+i,f=e.util.copy(e),d="";f.level++;var m="valid"+f.level,g="key"+i,y="idx"+i,v=f.dataLevel=e.dataLevel+1,x="data"+v,S="dataProperties"+i,w=Object.keys(l||{}).filter(I),O=e.schema.patternProperties||{},C=Object.keys(O).filter(I),E=e.schema.additionalProperties,k=w.length||C.length,A=E===!1,D=typeof E=="object"&&Object.keys(E).length,_=e.opts.removeAdditional,B=A||D||_,T=e.opts.ownProperties,R=e.baseId,j=e.schema.required;if(j&&!(e.opts.$data&&j.$data)&&j.length8)n+=" || validate.schema"+o+".hasOwnProperty("+g+") ";else{var N=w;if(N)for(var F,U=-1,V=N.length-1;U0||G===!1:e.util.schemaHasRules(G,e.RULES.all)){var Ce=e.util.getProperty(F),Le=p+Ce,Ve=rt&&G.default!==void 0;f.schema=G,f.schemaPath=o+Ce,f.errSchemaPath=u+"/"+e.util.escapeFragment(F),f.errorPath=e.util.getPath(e.errorPath,F,e.opts.jsonPointers),f.dataPathArr[v]=e.util.toQuotedString(F);var qe=e.validate(f);if(f.baseId=R,e.util.varOccurences(qe,x)<2){qe=e.util.varReplace(qe,x,Le);var et=Le}else{var et=x;n+=" var "+x+" = "+Le+"; "}if(Ve)n+=" "+qe+" ";else{if(Q&&Q[F]){n+=" if ( "+et+" === undefined ",T&&(n+=" || ! Object.prototype.hasOwnProperty.call("+p+", '"+e.util.escapeQuotes(F)+"') "),n+=") { "+m+" = false; ";var he=e.errorPath,pe=u,it=e.util.escapeQuotes(F);e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(he,F,e.opts.jsonPointers)),u=e.errSchemaPath+"/required";var K=K||[];K.push(n),n="",e.createErrors!==!1?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { missingProperty: '"+it+"' } ",e.opts.messages!==!1&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+it+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+o+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var le=n;n=K.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+le+"]); ":n+=" validate.errors = ["+le+"]; return false; ":n+=" var err = "+le+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",u=pe,e.errorPath=he,n+=" } else { "}else c?(n+=" if ( "+et+" === undefined ",T&&(n+=" || ! Object.prototype.hasOwnProperty.call("+p+", '"+e.util.escapeQuotes(F)+"') "),n+=") { "+m+" = true; } else { "):(n+=" if ("+et+" !== undefined ",T&&(n+=" && Object.prototype.hasOwnProperty.call("+p+", '"+e.util.escapeQuotes(F)+"') "),n+=" ) { ");n+=" "+qe+" } "}}c&&(n+=" if ("+m+") { ",d+="}")}}if(C.length){var st=C;if(st)for(var se,wt=-1,vt=st.length-1;wt0||G===!1:e.util.schemaHasRules(G,e.RULES.all)){f.schema=G,f.schemaPath=e.schemaPath+".patternProperties"+e.util.getProperty(se),f.errSchemaPath=e.errSchemaPath+"/patternProperties/"+e.util.escapeFragment(se),T?n+=" "+S+" = "+S+" || Object.keys("+p+"); for (var "+y+"=0; "+y+"<"+S+".length; "+y+"++) { var "+g+" = "+S+"["+y+"]; ":n+=" for (var "+g+" in "+p+") { ",n+=" if ("+e.usePattern(se)+".test("+g+")) { ",f.errorPath=e.util.getPathExpr(e.errorPath,g,e.opts.jsonPointers);var Le=p+"["+g+"]";f.dataPathArr[v]=g;var qe=e.validate(f);f.baseId=R,e.util.varOccurences(qe,x)<2?n+=" "+e.util.varReplace(qe,x,Le)+" ":n+=" var "+x+" = "+Le+"; "+qe+" ",c&&(n+=" if (!"+m+") break; "),n+=" } ",c&&(n+=" else "+m+" = true; "),n+=" } ",c&&(n+=" if ("+m+") { ",d+="}")}}}return c&&(n+=" "+d+" if ("+h+" == errors) {"),n}),jd}var qd,xP;function f9(){return xP||(xP=1,qd=function(e,t,s){var n=" ",i=e.level,a=e.dataLevel,l=e.schema[t],o=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,p="data"+(a||""),h="errs__"+i,f=e.util.copy(e),d="";f.level++;var m="valid"+f.level;if(n+="var "+h+" = errors;",e.opts.strictKeywords?typeof l=="object"&&Object.keys(l).length>0||l===!1:e.util.schemaHasRules(l,e.RULES.all)){f.schema=l,f.schemaPath=o,f.errSchemaPath=u;var g="key"+i,y="idx"+i,v="i"+i,x="' + "+g+" + '",S=f.dataLevel=e.dataLevel+1,w="data"+S,O="dataProperties"+i,C=e.opts.ownProperties,E=e.baseId;C&&(n+=" var "+O+" = undefined; "),C?n+=" "+O+" = "+O+" || Object.keys("+p+"); for (var "+y+"=0; "+y+"<"+O+".length; "+y+"++) { var "+g+" = "+O+"["+y+"]; ":n+=" for (var "+g+" in "+p+") { ",n+=" var startErrs"+i+" = errors; ";var k=g,A=e.compositeRule;e.compositeRule=f.compositeRule=!0;var D=e.validate(f);f.baseId=E,e.util.varOccurences(D,w)<2?n+=" "+e.util.varReplace(D,w,k)+" ":n+=" var "+w+" = "+k+"; "+D+" ",e.compositeRule=f.compositeRule=A,n+=" if (!"+m+") { for (var "+v+"=startErrs"+i+"; "+v+"0||S===!1:e.util.schemaHasRules(S,e.RULES.all))||(m[m.length]=y)}}else var m=l;if(f||m.length){var w=e.errorPath,O=f||m.length>=e.opts.loopRequired,C=e.opts.ownProperties;if(c)if(n+=" var missing"+i+"; ",O){f||(n+=" var "+d+" = validate.schema"+o+"; ");var E="i"+i,k="schema"+i+"["+E+"]",A="' + "+k+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(w,k,e.opts.jsonPointers)),n+=" var "+h+" = true; ",f&&(n+=" if (schema"+i+" === undefined) "+h+" = true; else if (!Array.isArray(schema"+i+")) "+h+" = false; else {"),n+=" for (var "+E+" = 0; "+E+" < "+d+".length; "+E+"++) { "+h+" = "+p+"["+d+"["+E+"]] !== undefined ",C&&(n+=" && Object.prototype.hasOwnProperty.call("+p+", "+d+"["+E+"]) "),n+="; if (!"+h+") break; } ",f&&(n+=" } "),n+=" if (!"+h+") { ";var D=D||[];D.push(n),n="",e.createErrors!==!1?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { missingProperty: '"+A+"' } ",e.opts.messages!==!1&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+A+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+o+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var _=n;n=D.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+_+"]); ":n+=" validate.errors = ["+_+"]; return false; ":n+=" var err = "+_+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } else { "}else{n+=" if ( ";var B=m;if(B)for(var T,E=-1,R=B.length-1;E 1) { ";var m=e.schema.items&&e.schema.items.type,g=Array.isArray(m);if(!m||m=="object"||m=="array"||g&&(m.indexOf("object")>=0||m.indexOf("array")>=0))n+=" outer: for (;i--;) { for (j = i; j--;) { if (equal("+p+"[i], "+p+"[j])) { "+h+" = false; break outer; } } } ";else{n+=" var itemIndices = {}, item; for (;i--;) { var item = "+p+"[i]; ";var y="checkDataType"+(g?"s":"");n+=" if ("+e.util[y](m,"item",e.opts.strictNumbers,!0)+") continue; ",g&&(n+=` if (typeof item == 'string') item = '"' + item; `),n+=" if (typeof itemIndices[item] == 'number') { "+h+" = false; j = itemIndices[item]; break; } itemIndices[item] = i; } "}n+=" } ",f&&(n+=" } "),n+=" if (!"+h+") { ";var v=v||[];v.push(n),n="",e.createErrors!==!1?(n+=" { keyword: 'uniqueItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { i: i, j: j } ",e.opts.messages!==!1&&(n+=" , message: 'should NOT have duplicate items (items ## ' + j + ' and ' + i + ' are identical)' "),e.opts.verbose&&(n+=" , schema: ",f?n+="validate.schema"+o:n+=""+l,n+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var x=n;n=v.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+x+"]); ":n+=" validate.errors = ["+x+"]; return false; ":n+=" var err = "+x+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } ",c&&(n+=" else { ")}else c&&(n+=" if (true) { ");return n}),Ud}var Vd,EP;function d9(){return EP||(EP=1,Vd={$ref:X6(),allOf:Y6(),anyOf:H6(),$comment:K6(),const:J6(),contains:e9(),dependencies:t9(),enum:r9(),format:n9(),if:s9(),items:i9(),maximum:lP(),minimum:lP(),maxItems:cP(),minItems:cP(),maxLength:pP(),minLength:pP(),maxProperties:dP(),minProperties:dP(),multipleOf:a9(),not:o9(),oneOf:l9(),pattern:u9(),properties:c9(),propertyNames:f9(),required:p9(),uniqueItems:h9(),validate:FB()}),Vd}var Wd,wP;function m9(){if(wP)return Wd;wP=1;var r=d9(),e=va().toHash;return Wd=function(){var s=[{type:"number",rules:[{maximum:["exclusiveMaximum"]},{minimum:["exclusiveMinimum"]},"multipleOf","format"]},{type:"string",rules:["maxLength","minLength","pattern","format"]},{type:"array",rules:["maxItems","minItems","items","contains","uniqueItems"]},{type:"object",rules:["maxProperties","minProperties","required","dependencies","propertyNames",{properties:["additionalProperties","patternProperties"]}]},{rules:["$ref","const","enum","not","anyOf","oneOf","allOf","if"]}],n=["type","$comment"],i=["$schema","$id","id","$data","$async","title","description","default","definitions","examples","readOnly","writeOnly","contentMediaType","contentEncoding","additionalItems","then","else"],a=["number","integer","string","array","object","boolean","null"];return s.all=e(n),s.types=e(a),s.forEach(function(l){l.rules=l.rules.map(function(o){var u;if(typeof o=="object"){var c=Object.keys(o)[0];u=o[c],o=c,u.forEach(function(h){n.push(h),s.all[h]=!0})}n.push(o);var p=s.all[o]={keyword:o,code:r[o],implements:u};return p}),s.all.$comment={keyword:"$comment",code:r.$comment},l.type&&(s.types[l.type]=l)}),s.keywords=e(n.concat(i)),s.custom={},s},Wd}var zd,CP;function g9(){if(CP)return zd;CP=1;var r=["multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum","maxLength","minLength","pattern","additionalItems","maxItems","minItems","uniqueItems","maxProperties","minProperties","required","additionalProperties","enum","format","const"];return zd=function(e,t){for(var s=0;s(K[le]=be,K),{}),p=[0,1,2,"off","warn","error"];function h(K){let le=Array.isArray(K)?K[0]:K;return le===0||le===1||le===2?le:typeof le=="string"&&c[le.toLowerCase()]||0}function f(K){K.rules&&Object.keys(K.rules).forEach(le=>{let be=K.rules[le];typeof be=="number"?K.rules[le]=u[be]||u[0]:Array.isArray(be)&&typeof be[0]=="number"&&(be[0]=u[be[0]]||u[0])})}function d(K){return h(K)===2}function m(K){let le=Array.isArray(K)?K[0]:K;return typeof le=="string"&&(le=le.toLowerCase()),p.indexOf(le)!==-1}function g(K){return Object.keys(K).every(le=>m(K[le]))}function y(K){switch(K){case"off":return"off";case!0:case"true":case"writeable":case"writable":return"writable";case null:case!1:case"false":case"readable":case"readonly":return"readonly";default:throw new Error(`'${K}' is not a valid configuration for a global (use 'readonly', 'writable', or 'off')`)}}var v={__proto__:null,getRuleSeverity:h,normalizeToStrings:f,isErrorSeverity:d,isValidSeverity:m,isEverySeverityValid:g,normalizeConfigGlobal:y};let x={ESLINT_LEGACY_ECMAFEATURES:"The 'ecmaFeatures' config file property is deprecated and has no effect.",ESLINT_PERSONAL_CONFIG_LOAD:"'~/.eslintrc.*' config files have been deprecated. Please use a config file per project or the '--config' option.",ESLINT_PERSONAL_CONFIG_SUPPRESS:"'~/.eslintrc.*' config files have been deprecated. Please remove it or add 'root:true' to the config files in your projects in order to avoid loading '~/.eslintrc.*' accidentally."},S=new Set;function w(K,le){let be=JSON.stringify({source:K,errorCode:le});if(S.has(be))return;S.add(be);let Le=a.default.relative(process.cwd(),K),qe=x[le];process.emitWarning(`${qe} (found in "${Le}")`,"DeprecationWarning",le)}let O={id:"http://json-schema.org/draft-04/schema#",$schema:"http://json-schema.org/draft-04/schema#",description:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},positiveInteger:{type:"integer",minimum:0},positiveIntegerDefault0:{allOf:[{$ref:"#/definitions/positiveInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0}},type:"object",properties:{id:{type:"string"},$schema:{type:"string"},title:{type:"string"},description:{type:"string"},default:{},multipleOf:{type:"number",minimum:0,exclusiveMinimum:!0},maximum:{type:"number"},exclusiveMaximum:{type:"boolean",default:!1},minimum:{type:"number"},exclusiveMinimum:{type:"boolean",default:!1},maxLength:{$ref:"#/definitions/positiveInteger"},minLength:{$ref:"#/definitions/positiveIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{anyOf:[{type:"boolean"},{$ref:"#"}],default:{}},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:{}},maxItems:{$ref:"#/definitions/positiveInteger"},minItems:{$ref:"#/definitions/positiveIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},maxProperties:{$ref:"#/definitions/positiveInteger"},minProperties:{$ref:"#/definitions/positiveIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{anyOf:[{type:"boolean"},{$ref:"#"}],default:{}},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},enum:{type:"array",minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},dependencies:{exclusiveMaximum:["maximum"],exclusiveMinimum:["minimum"]},default:{}};var C=(K={})=>{let le=new l.default({meta:!1,useDefaults:!0,validateSchema:!1,missingRefs:"ignore",verbose:!0,schemaId:"auto",...K});return le.addMetaSchema(O),le._opts.defaultMeta=O.id,le};let E={$schema:{type:"string"},env:{type:"object"},extends:{$ref:"#/definitions/stringOrStrings"},globals:{type:"object"},overrides:{type:"array",items:{$ref:"#/definitions/overrideConfig"},additionalItems:!1},parser:{type:["string","null"]},parserOptions:{type:"object"},plugins:{type:"array"},processor:{type:"string"},rules:{type:"object"},settings:{type:"object"},noInlineConfig:{type:"boolean"},reportUnusedDisableDirectives:{type:"boolean"},ecmaFeatures:{type:"object"}},k={definitions:{stringOrStrings:{oneOf:[{type:"string"},{type:"array",items:{type:"string"},additionalItems:!1}]},stringOrStringsRequired:{oneOf:[{type:"string"},{type:"array",items:{type:"string"},additionalItems:!1,minItems:1}]},objectConfig:{type:"object",properties:{root:{type:"boolean"},ignorePatterns:{$ref:"#/definitions/stringOrStrings"},...E},additionalProperties:!1},overrideConfig:{type:"object",properties:{excludedFiles:{$ref:"#/definitions/stringOrStrings"},files:{$ref:"#/definitions/stringOrStringsRequired"},...E},required:["files"],additionalProperties:!1}},$ref:"#/definitions/objectConfig"};function A(K,le){let be={};for(let[Le,qe]of Object.entries(K))Object.hasOwnProperty.call(le,Le)||(be[Le]=qe);return be}let D=A(o.default.es2015,o.default.es5),_={Atomics:!1,SharedArrayBuffer:!1},B={BigInt:!1,BigInt64Array:!1,BigUint64Array:!1,globalThis:!1},T={AggregateError:!1,FinalizationRegistry:!1,WeakRef:!1};var R=new Map(Object.entries({builtin:{globals:o.default.es5},es6:{globals:D,parserOptions:{ecmaVersion:6}},es2015:{globals:D,parserOptions:{ecmaVersion:6}},es2016:{globals:D,parserOptions:{ecmaVersion:7}},es2017:{globals:{...D,..._},parserOptions:{ecmaVersion:8}},es2018:{globals:{...D,..._},parserOptions:{ecmaVersion:9}},es2019:{globals:{...D,..._},parserOptions:{ecmaVersion:10}},es2020:{globals:{...D,..._,...B},parserOptions:{ecmaVersion:11}},es2021:{globals:{...D,..._,...B,...T},parserOptions:{ecmaVersion:12}},es2022:{globals:{...D,..._,...B,...T},parserOptions:{ecmaVersion:13}},es2023:{globals:{...D,..._,...B,...T},parserOptions:{ecmaVersion:14}},es2024:{globals:{...D,..._,...B,...T},parserOptions:{ecmaVersion:15}},browser:{globals:o.default.browser},node:{globals:o.default.node,parserOptions:{ecmaFeatures:{globalReturn:!0}}},"shared-node-browser":{globals:o.default["shared-node-browser"]},worker:{globals:o.default.worker},serviceworker:{globals:o.default.serviceworker},commonjs:{globals:o.default.commonjs,parserOptions:{ecmaFeatures:{globalReturn:!0}}},amd:{globals:o.default.amd},mocha:{globals:o.default.mocha},jasmine:{globals:o.default.jasmine},jest:{globals:o.default.jest},phantomjs:{globals:o.default.phantomjs},jquery:{globals:o.default.jquery},qunit:{globals:o.default.qunit},prototypejs:{globals:o.default.prototypejs},shelljs:{globals:o.default.shelljs},meteor:{globals:o.default.meteor},mongo:{globals:o.default.mongo},protractor:{globals:o.default.protractor},applescript:{globals:o.default.applescript},nashorn:{globals:o.default.nashorn},atomtest:{globals:o.default.atomtest},embertest:{globals:o.default.embertest},webextensions:{globals:o.default.webextensions},greasemonkey:{globals:o.default.greasemonkey}}));let j=C(),Q=new WeakMap,I=Function.prototype,N,F={error:2,warn:1,off:0},U=new WeakSet,V=Object.freeze({type:"array",minItems:0,maxItems:0});class ae{constructor({builtInRules:le=new Map}={}){this.builtInRules=le}getRuleOptionsSchema(le){if(!le)return null;if(!le.meta)return{...V};let be=le.meta.schema;if(typeof be>"u")return{...V};if(be===!1)return null;if(typeof be!="object"||be===null)throw new TypeError("Rule's `meta.schema` must be an array or object");return Array.isArray(be)?be.length?{type:"array",items:be,minItems:0,maxItems:be.length}:{...V}:be}validateRuleSeverity(le){let be=Array.isArray(le)?le[0]:le,Le=typeof be=="string"?F[be.toLowerCase()]:be;if(Le===0||Le===1||Le===2)return Le;throw new Error(` Severity should be one of the following: 0 = off, 1 = warn, 2 = error (you passed '${i.default.inspect(be).replace(/'/gu,'"').replace(/\n/gu,"")}'). +`)}validateRuleSchema(le,be){if(!Q.has(le))try{let qe=this.getRuleOptionsSchema(le);qe&&Q.set(le,j.compile(qe))}catch(qe){let rt=new Error(qe.message,{cause:qe});throw rt.code="ESLINT_INVALID_RULE_OPTIONS_SCHEMA",rt}let Le=Q.get(le);if(Le&&(Le(be),Le.errors))throw new Error(Le.errors.map(qe=>` Value ${JSON.stringify(qe.data)} ${qe.message}. +`).join(""))}validateRuleOptions(le,be,Le,qe=null){try{this.validateRuleSeverity(Le)!==0&&this.validateRuleSchema(le,Array.isArray(Le)?Le.slice(1):[])}catch(rt){let ht=rt.code==="ESLINT_INVALID_RULE_OPTIONS_SCHEMA"?`Error while processing options validation schema of rule '${be}': ${rt.message}`:`Configuration for rule "${be}" is invalid: ${rt.message}`;typeof qe=="string"&&(ht=`${qe}: - ${ht}`);let pt=new Error(ht,{cause:rt});throw rt.code&&(pt.code=rt.code),pt}}validateEnvironment(le,xe,Le=I){le&&Object.keys(le).forEach(qe=>{if(!(Le(qe)||F.get(qe)||null)){let ht=`${xe}: + ${ht}`);let pt=new Error(ht,{cause:rt});throw rt.code&&(pt.code=rt.code),pt}}validateEnvironment(le,be,Le=I){le&&Object.keys(le).forEach(qe=>{if(!(Le(qe)||R.get(qe)||null)){let ht=`${be}: Environment key "${qe}" is unknown -`;throw new Error(ht)}})}validateRules(le,xe,Le=I){le&&Object.keys(le).forEach(qe=>{let rt=Le(qe)||this.builtInRules.get(qe)||null;this.validateRuleOptions(rt,qe,le[qe],xe)})}validateGlobals(le,xe=null){le&&Object.entries(le).forEach(([Le,qe])=>{try{y(qe)}catch(rt){throw new Error(`ESLint configuration of global '${Le}' in ${xe} is invalid: -${rt.message}`)}})}validateProcessor(le,xe,Le){if(le&&!Le(le))throw new Error(`ESLint configuration of processor in '${xe}' is invalid: '${le}' was not found.`)}formatErrors(le){return le.map(xe=>{if(xe.keyword==="additionalProperties")return`Unexpected top-level property "${xe.dataPath.length?`${xe.dataPath.slice(1)}.${xe.params.additionalProperty}`:xe.params.additionalProperty}"`;if(xe.keyword==="type"){let qe=xe.dataPath.slice(1),rt=Array.isArray(xe.schema)?xe.schema.join("/"):xe.schema,ht=JSON.stringify(xe.data);return`Property "${qe}" is the wrong type (expected ${rt} but got \`${ht}\`)`}return`"${xe.dataPath[0]==="."?xe.dataPath.slice(1):xe.dataPath}" ${xe.message}. Value: ${JSON.stringify(xe.data)}`}).map(xe=>` - ${xe}. -`).join("")}validateConfigSchema(le,xe=null){if(N=N||j.compile(k),!N(le))throw new Error(`ESLint configuration in ${xe} is invalid: -${this.formatErrors(N.errors)}`);Object.hasOwnProperty.call(le,"ecmaFeatures")&&C(xe,"ESLINT_LEGACY_ECMAFEATURES")}validate(le,xe,Le,qe){this.validateConfigSchema(le,xe),this.validateRules(le.rules,xe,Le),this.validateEnvironment(le.env,xe,qe),this.validateGlobals(le.globals,xe);for(let rt of le.overrides||[])this.validateRules(rt.rules,xe,Le),this.validateEnvironment(rt.env,xe,qe),this.validateGlobals(le.globals,xe)}validateConfigArray(le){let xe=Map.prototype.get.bind(le.pluginEnvironments),Le=Map.prototype.get.bind(le.pluginProcessors),qe=Map.prototype.get.bind(le.pluginRules);for(let rt of le)U.has(rt)||(U.add(rt),this.validateEnvironment(rt.env,rt.name,xe),this.validateGlobals(rt.globals,rt.name),this.validateProcessor(rt.processor,rt.name,Le),this.validateRules(rt.rules,rt.name,qe))}}let se=/^@.*\//iu;function ve(K,le){let xe=K;if(xe.includes("\\")&&(xe=xe.replace(/\\/gu,"/")),xe.charAt(0)==="@"){let Le=new RegExp(`^(@[^/]+)(?:/(?:${le})?)?$`,"u"),qe=new RegExp(`^${le}(-|$)`,"u");Le.test(xe)?xe=xe.replace(Le,`$1/${le}`):qe.test(xe.split("/")[1])||(xe=xe.replace(/^@([^/]+)\/(.*)$/u,`@$1/${le}-$2`))}else xe.startsWith(`${le}-`)||(xe=`${le}-${xe}`);return xe}function H(K,le){if(K[0]==="@"){let xe=new RegExp(`^(@[^/]+)/${le}$`,"u").exec(K);if(xe)return xe[1];if(xe=new RegExp(`^(@[^/]+)/${le}-(.+)$`,"u").exec(K),xe)return`${xe[1]}/${xe[2]}`}else if(K.startsWith(`${le}-`))return K.slice(le.length+1);return K}function he(K){let le=K.match(se);return le?le[0]:""}var $={__proto__:null,normalizePackageName:ve,getShorthandName:H,getNamespaceFromTerm:he};let pe={environments:F,ConfigOps:b,ConfigValidator:ae,naming:$};return Yu.Legacy=pe,Yu}var Ku={exports:{}},Ju={exports:{}},Jd,RP;function y4(){if(RP)return Jd;RP=1;var r=1e3,e=r*60,t=e*60,s=t*24,n=s*7,i=s*365.25;Jd=function(c,p){p=p||{};var h=typeof c;if(h==="string"&&c.length>0)return a(c);if(h==="number"&&isFinite(c))return p.long?o(c):l(c);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(c))};function a(c){if(c=String(c),!(c.length>100)){var p=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(c);if(p){var h=parseFloat(p[1]),f=(p[2]||"ms").toLowerCase();switch(f){case"years":case"year":case"yrs":case"yr":case"y":return h*i;case"weeks":case"week":case"w":return h*n;case"days":case"day":case"d":return h*s;case"hours":case"hour":case"hrs":case"hr":case"h":return h*t;case"minutes":case"minute":case"mins":case"min":case"m":return h*e;case"seconds":case"second":case"secs":case"sec":case"s":return h*r;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return h;default:return}}}}function l(c){var p=Math.abs(c);return p>=s?Math.round(c/s)+"d":p>=t?Math.round(c/t)+"h":p>=e?Math.round(c/e)+"m":p>=r?Math.round(c/r)+"s":c+"ms"}function o(c){var p=Math.abs(c);return p>=s?u(c,p,s,"day"):p>=t?u(c,p,t,"hour"):p>=e?u(c,p,e,"minute"):p>=r?u(c,p,r,"second"):c+" ms"}function u(c,p,h,f){var d=p>=h*1.5;return Math.round(c/h)+" "+f+(d?"s":"")}return Jd}var em,BP;function MB(){if(BP)return em;BP=1;function r(e){s.debug=s,s.default=s,s.coerce=u,s.disable=a,s.enable=i,s.enabled=l,s.humanize=y4(),s.destroy=c,Object.keys(e).forEach(p=>{s[p]=e[p]}),s.names=[],s.skips=[],s.formatters={};function t(p){let h=0;for(let f=0;f{if(w==="%%")return"%";C++;let k=s.formatters[E];if(typeof k=="function"){let A=y[C];w=k.call(b,A),y.splice(C,1),C--}return w}),s.formatArgs.call(b,y),(b.log||s.log).apply(b,y)}return g.namespace=p,g.useColors=s.useColors(),g.color=s.selectColor(p),g.extend=n,g.destroy=s.destroy,Object.defineProperty(g,"enabled",{enumerable:!0,configurable:!1,get:()=>f!==null?f:(d!==s.namespaces&&(d=s.namespaces,m=s.enabled(p)),m),set:y=>{f=y}}),typeof s.init=="function"&&s.init(g),g}function n(p,h){let f=s(this.namespace+(typeof h>"u"?":":h)+p);return f.log=this.log,f}function i(p){s.save(p),s.namespaces=p,s.names=[],s.skips=[];let h,f=(typeof p=="string"?p:"").split(/[\s,]+/),d=f.length;for(h=0;h"-"+h)].join(",");return s.enable(""),p}function l(p){if(p[p.length-1]==="*")return!0;let h,f;for(h=0,f=s.skips.length;h{let o=!1;return()=>{o||(o=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),e.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function t(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function s(o){if(o[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+o[0]+(this.useColors?"%c ":" ")+"+"+r.exports.humanize(this.diff),!this.useColors)return;let u="color: "+this.color;o.splice(1,0,u,"color: inherit");let c=0,p=0;o[0].replace(/%[a-zA-Z%]/g,h=>{h!=="%%"&&(c++,h==="%c"&&(p=c))}),o.splice(p,0,u)}e.log=console.debug||console.log||(()=>{});function n(o){try{o?e.storage.setItem("debug",o):e.storage.removeItem("debug")}catch{}}function i(){let o;try{o=e.storage.getItem("debug")}catch{}return!o&&typeof Bt<"u"&&"env"in Bt&&(o=Bt.env.DEBUG),o}function a(){try{return localStorage}catch{}}r.exports=MB()(e);let{formatters:l}=r.exports;l.j=function(o){try{return JSON.stringify(o)}catch(u){return"[UnexpectedJSONParseError]: "+u.message}}}(Ju,Ju.exports)),Ju.exports}var ec={exports:{}};function jB(){return!1}function qB(){throw new Error("tty.ReadStream is not implemented")}function QB(){throw new Error("tty.ReadStream is not implemented")}var b4={isatty:jB,ReadStream:qB,WriteStream:QB},v4=Object.freeze({__proto__:null,ReadStream:qB,WriteStream:QB,default:b4,isatty:jB}),O4=cc(v4),LP;function S4(){return LP||(LP=1,function(r,e){let t=O4,s=FB;e.init=c,e.log=l,e.formatArgs=i,e.save=o,e.load=u,e.useColors=n,e.destroy=s.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),e.colors=[6,2,3,4,5,1];try{let h=EN("supports-color");h&&(h.stderr||h).level>=2&&(e.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}e.inspectOpts=Object.keys(Bt.env).filter(h=>/^debug_/i.test(h)).reduce((h,f)=>{let d=f.substring(6).toLowerCase().replace(/_([a-z])/g,(g,y)=>y.toUpperCase()),m=Bt.env[f];return/^(yes|on|true|enabled)$/i.test(m)?m=!0:/^(no|off|false|disabled)$/i.test(m)?m=!1:m==="null"?m=null:m=Number(m),h[d]=m,h},{});function n(){return"colors"in e.inspectOpts?!!e.inspectOpts.colors:t.isatty(Bt.stderr.fd)}function i(h){let{namespace:f,useColors:d}=this;if(d){let m=this.color,g="\x1B[3"+(m<8?m:"8;5;"+m),y=` ${g};1m${f} \x1B[0m`;h[0]=y+h[0].split(` +`;throw new Error(ht)}})}validateRules(le,be,Le=I){le&&Object.keys(le).forEach(qe=>{let rt=Le(qe)||this.builtInRules.get(qe)||null;this.validateRuleOptions(rt,qe,le[qe],be)})}validateGlobals(le,be=null){le&&Object.entries(le).forEach(([Le,qe])=>{try{y(qe)}catch(rt){throw new Error(`ESLint configuration of global '${Le}' in ${be} is invalid: +${rt.message}`)}})}validateProcessor(le,be,Le){if(le&&!Le(le))throw new Error(`ESLint configuration of processor in '${be}' is invalid: '${le}' was not found.`)}formatErrors(le){return le.map(be=>{if(be.keyword==="additionalProperties")return`Unexpected top-level property "${be.dataPath.length?`${be.dataPath.slice(1)}.${be.params.additionalProperty}`:be.params.additionalProperty}"`;if(be.keyword==="type"){let qe=be.dataPath.slice(1),rt=Array.isArray(be.schema)?be.schema.join("/"):be.schema,ht=JSON.stringify(be.data);return`Property "${qe}" is the wrong type (expected ${rt} but got \`${ht}\`)`}return`"${be.dataPath[0]==="."?be.dataPath.slice(1):be.dataPath}" ${be.message}. Value: ${JSON.stringify(be.data)}`}).map(be=>` - ${be}. +`).join("")}validateConfigSchema(le,be=null){if(N=N||j.compile(k),!N(le))throw new Error(`ESLint configuration in ${be} is invalid: +${this.formatErrors(N.errors)}`);Object.hasOwnProperty.call(le,"ecmaFeatures")&&w(be,"ESLINT_LEGACY_ECMAFEATURES")}validate(le,be,Le,qe){this.validateConfigSchema(le,be),this.validateRules(le.rules,be,Le),this.validateEnvironment(le.env,be,qe),this.validateGlobals(le.globals,be);for(let rt of le.overrides||[])this.validateRules(rt.rules,be,Le),this.validateEnvironment(rt.env,be,qe),this.validateGlobals(le.globals,be)}validateConfigArray(le){let be=Map.prototype.get.bind(le.pluginEnvironments),Le=Map.prototype.get.bind(le.pluginProcessors),qe=Map.prototype.get.bind(le.pluginRules);for(let rt of le)U.has(rt)||(U.add(rt),this.validateEnvironment(rt.env,rt.name,be),this.validateGlobals(rt.globals,rt.name),this.validateProcessor(rt.processor,rt.name,Le),this.validateRules(rt.rules,rt.name,qe))}}let se=/^@.*\//iu;function xe(K,le){let be=K;if(be.includes("\\")&&(be=be.replace(/\\/gu,"/")),be.charAt(0)==="@"){let Le=new RegExp(`^(@[^/]+)(?:/(?:${le})?)?$`,"u"),qe=new RegExp(`^${le}(-|$)`,"u");Le.test(be)?be=be.replace(Le,`$1/${le}`):qe.test(be.split("/")[1])||(be=be.replace(/^@([^/]+)\/(.*)$/u,`@$1/${le}-$2`))}else be.startsWith(`${le}-`)||(be=`${le}-${be}`);return be}function H(K,le){if(K[0]==="@"){let be=new RegExp(`^(@[^/]+)/${le}$`,"u").exec(K);if(be)return be[1];if(be=new RegExp(`^(@[^/]+)/${le}-(.+)$`,"u").exec(K),be)return`${be[1]}/${be[2]}`}else if(K.startsWith(`${le}-`))return K.slice(le.length+1);return K}function he(K){let le=K.match(se);return le?le[0]:""}var $={__proto__:null,normalizePackageName:xe,getShorthandName:H,getNamespaceFromTerm:he};let pe={environments:R,ConfigOps:v,ConfigValidator:ae,naming:$};return Yu.Legacy=pe,Yu}var Ku={exports:{}},Ju={exports:{}},Jd,RP;function b4(){if(RP)return Jd;RP=1;var r=1e3,e=r*60,t=e*60,s=t*24,n=s*7,i=s*365.25;Jd=function(c,p){p=p||{};var h=typeof c;if(h==="string"&&c.length>0)return a(c);if(h==="number"&&isFinite(c))return p.long?o(c):l(c);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(c))};function a(c){if(c=String(c),!(c.length>100)){var p=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(c);if(p){var h=parseFloat(p[1]),f=(p[2]||"ms").toLowerCase();switch(f){case"years":case"year":case"yrs":case"yr":case"y":return h*i;case"weeks":case"week":case"w":return h*n;case"days":case"day":case"d":return h*s;case"hours":case"hour":case"hrs":case"hr":case"h":return h*t;case"minutes":case"minute":case"mins":case"min":case"m":return h*e;case"seconds":case"second":case"secs":case"sec":case"s":return h*r;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return h;default:return}}}}function l(c){var p=Math.abs(c);return p>=s?Math.round(c/s)+"d":p>=t?Math.round(c/t)+"h":p>=e?Math.round(c/e)+"m":p>=r?Math.round(c/r)+"s":c+"ms"}function o(c){var p=Math.abs(c);return p>=s?u(c,p,s,"day"):p>=t?u(c,p,t,"hour"):p>=e?u(c,p,e,"minute"):p>=r?u(c,p,r,"second"):c+" ms"}function u(c,p,h,f){var d=p>=h*1.5;return Math.round(c/h)+" "+f+(d?"s":"")}return Jd}var em,FP;function LB(){if(FP)return em;FP=1;function r(e){s.debug=s,s.default=s,s.coerce=u,s.disable=a,s.enable=i,s.enabled=l,s.humanize=b4(),s.destroy=c,Object.keys(e).forEach(p=>{s[p]=e[p]}),s.names=[],s.skips=[],s.formatters={};function t(p){let h=0;for(let f=0;f{if(C==="%%")return"%";w++;let k=s.formatters[E];if(typeof k=="function"){let A=y[w];C=k.call(v,A),y.splice(w,1),w--}return C}),s.formatArgs.call(v,y),(v.log||s.log).apply(v,y)}return g.namespace=p,g.useColors=s.useColors(),g.color=s.selectColor(p),g.extend=n,g.destroy=s.destroy,Object.defineProperty(g,"enabled",{enumerable:!0,configurable:!1,get:()=>f!==null?f:(d!==s.namespaces&&(d=s.namespaces,m=s.enabled(p)),m),set:y=>{f=y}}),typeof s.init=="function"&&s.init(g),g}function n(p,h){let f=s(this.namespace+(typeof h>"u"?":":h)+p);return f.log=this.log,f}function i(p){s.save(p),s.namespaces=p,s.names=[],s.skips=[];let h,f=(typeof p=="string"?p:"").split(/[\s,]+/),d=f.length;for(h=0;h"-"+h)].join(",");return s.enable(""),p}function l(p){if(p[p.length-1]==="*")return!0;let h,f;for(h=0,f=s.skips.length;h{let o=!1;return()=>{o||(o=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),e.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function t(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function s(o){if(o[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+o[0]+(this.useColors?"%c ":" ")+"+"+r.exports.humanize(this.diff),!this.useColors)return;let u="color: "+this.color;o.splice(1,0,u,"color: inherit");let c=0,p=0;o[0].replace(/%[a-zA-Z%]/g,h=>{h!=="%%"&&(c++,h==="%c"&&(p=c))}),o.splice(p,0,u)}e.log=console.debug||console.log||(()=>{});function n(o){try{o?e.storage.setItem("debug",o):e.storage.removeItem("debug")}catch{}}function i(){let o;try{o=e.storage.getItem("debug")}catch{}return!o&&typeof Bt<"u"&&"env"in Bt&&(o=Bt.env.DEBUG),o}function a(){try{return localStorage}catch{}}r.exports=LB()(e);let{formatters:l}=r.exports;l.j=function(o){try{return JSON.stringify(o)}catch(u){return"[UnexpectedJSONParseError]: "+u.message}}}(Ju,Ju.exports)),Ju.exports}var ec={exports:{}};function $B(){return!1}function MB(){throw new Error("tty.ReadStream is not implemented")}function jB(){throw new Error("tty.ReadStream is not implemented")}var x4={isatty:$B,ReadStream:MB,WriteStream:jB},O4=Object.freeze({__proto__:null,ReadStream:MB,WriteStream:jB,default:x4,isatty:$B}),S4=cc(O4),NP;function E4(){return NP||(NP=1,function(r,e){let t=S4,s=_B;e.init=c,e.log=l,e.formatArgs=i,e.save=o,e.load=u,e.useColors=n,e.destroy=s.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),e.colors=[6,2,3,4,5,1];try{let h=ON("supports-color");h&&(h.stderr||h).level>=2&&(e.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}e.inspectOpts=Object.keys(Bt.env).filter(h=>/^debug_/i.test(h)).reduce((h,f)=>{let d=f.substring(6).toLowerCase().replace(/_([a-z])/g,(g,y)=>y.toUpperCase()),m=Bt.env[f];return/^(yes|on|true|enabled)$/i.test(m)?m=!0:/^(no|off|false|disabled)$/i.test(m)?m=!1:m==="null"?m=null:m=Number(m),h[d]=m,h},{});function n(){return"colors"in e.inspectOpts?!!e.inspectOpts.colors:t.isatty(Bt.stderr.fd)}function i(h){let{namespace:f,useColors:d}=this;if(d){let m=this.color,g="\x1B[3"+(m<8?m:"8;5;"+m),y=` ${g};1m${f} \x1B[0m`;h[0]=y+h[0].split(` `).join(` `+y),h.push(g+"m+"+r.exports.humanize(this.diff)+"\x1B[0m")}else h[0]=a()+f+" "+h[0]}function a(){return e.inspectOpts.hideDate?"":new Date().toISOString()+" "}function l(...h){return Bt.stderr.write(s.format(...h)+` -`)}function o(h){h?Bt.env.DEBUG=h:delete Bt.env.DEBUG}function u(){return Bt.env.DEBUG}function c(h){h.inspectOpts={};let f=Object.keys(e.inspectOpts);for(let d=0;df.trim()).join(" ")},p.O=function(h){return this.inspectOpts.colors=this.useColors,s.inspect(h,this.inspectOpts)}}(ec,ec.exports)),ec.exports}var $P;function bi(){return $P||($P=1,typeof Bt>"u"||Bt.type==="renderer"||Bt.browser===!0||Bt.__nwjs?Ku.exports=x4():Ku.exports=S4()),Ku.exports}var tm,MP;function DO(){if(MP)return tm;MP=1;let r=wO(),e=bi()("eslint:traverser");function t(){}function s(a){return a!==null&&typeof a=="object"&&typeof a.type=="string"}function n(a,l){let o=a[l.type];return o||(o=r.getKeys(l),e('Unknown node type "%s": Estimated visitor keys %j',l.type,o)),o}class i{constructor(){this._current=null,this._parents=[],this._skipped=!1,this._broken=!1,this._visitorKeys=null,this._enter=null,this._leave=null}current(){return this._current}parents(){return this._parents.slice(0)}break(){this._broken=!0}skip(){this._skipped=!0}traverse(l,o){this._current=null,this._parents=[],this._skipped=!1,this._broken=!1,this._visitorKeys=o.visitorKeys||r.KEYS,this._enter=o.enter||t,this._leave=o.leave||t,this._traverse(l,null)}_traverse(l,o){if(s(l)){if(this._current=l,this._skipped=!1,this._enter(l,o),!this._skipped&&!this._broken){let u=n(this._visitorKeys,l);if(u.length>=1){this._parents.push(l);for(let c=0;c")}function o(G){return a(G,",")}function u(G){return a(G,";")}function c(G){return a(G,":")}function p(G){return a(G,"(")}function h(G){return a(G,")")}function f(G){return a(G,"[")}function d(G){return a(G,"]")}function m(G){return a(G,"{")}function g(G){return a(G,"}")}function y(G){return["Block","Line","Shebang"].includes(G.type)}let b=i(l),v=i(o),S=i(u),C=i(c),O=i(p),w=i(h),E=i(f),k=i(d),A=i(m),D=i(g),_=i(y);function B(G,ne){return G.id?ne.getTokenAfter(G.id,p):ne.getFirstToken(G,p)}function T(G,ne){let ee=G.parent,oe=null,ce=null;if(G.type==="ArrowFunctionExpression"){let Z=ne.getTokenBefore(G.body,l);oe=Z.loc.start,ce=Z.loc.end}else ee.type==="Property"||ee.type==="MethodDefinition"||ee.type==="PropertyDefinition"?(oe=ee.loc.start,ce=B(G,ne).loc.start):(oe=G.loc.start,ce=B(G,ne).loc.start);return{start:{...oe},end:{...ce}}}let F=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof Jr<"u"?Jr:{},j=Object.freeze(new Set(["Array","ArrayBuffer","BigInt","BigInt64Array","BigUint64Array","Boolean","DataView","Date","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","Float32Array","Float64Array","Function","Infinity","Int16Array","Int32Array","Int8Array","isFinite","isNaN","isPrototypeOf","JSON","Map","Math","NaN","Number","Object","parseFloat","parseInt","Promise","Proxy","Reflect","RegExp","Set","String","Symbol","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray","undefined","unescape","WeakMap","WeakSet"])),Q=new Set([Array.isArray,typeof BigInt=="function"?BigInt:void 0,Boolean,Date,Date.parse,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,escape,isFinite,isNaN,isPrototypeOf,...Object.getOwnPropertyNames(Math).map(G=>Math[G]).filter(G=>typeof G=="function"),Number,Number.isFinite,Number.isNaN,Number.parseFloat,Number.parseInt,Object,Object.entries,Object.is,Object.isExtensible,Object.isFrozen,Object.isSealed,Object.keys,Object.values,parseFloat,parseInt,RegExp,String,String.fromCharCode,String.fromCodePoint,String.raw,Symbol.for,Symbol.keyFor,unescape].filter(G=>typeof G=="function")),I=new Set([Object.freeze,Object.preventExtensions,Object.seal]);function N(G,ne){let ee=G;for(;(typeof ee=="object"||typeof ee=="function")&&ee!==null;){let oe=Object.getOwnPropertyDescriptor(ee,ne);if(oe)return oe;ee=Object.getPrototypeOf(ee)}return null}function R(G,ne){let ee=N(G,ne);return ee!=null&&ee.get!=null}function U(G,ne){let ee=[];for(let oe=0;oe":return{value:ee.value>oe.value};case">=":return{value:ee.value>=oe.value};case"<<":return{value:ee.value<>":return{value:ee.value>>oe.value};case">>>":return{value:ee.value>>>oe.value};case"+":return{value:ee.value+oe.value};case"-":return{value:ee.value-oe.value};case"*":return{value:ee.value*oe.value};case"/":return{value:ee.value/oe.value};case"%":return{value:ee.value%oe.value};case"**":return{value:ee.value**oe.value};case"|":return{value:ee.value|oe.value};case"^":return{value:ee.value^oe.value};case"&":return{value:ee.value&oe.value}}return null},CallExpression(G,ne){let ee=G.callee,oe=U(G.arguments,ne);if(oe!=null)if(ee.type==="MemberExpression"){if(ee.property.type==="PrivateIdentifier")return null;let ce=ae(ee.object,ne);if(ce!=null){if(ce.value==null&&(ce.optional||G.optional))return{value:void 0,optional:!0};let Z=se(ee,ne);if(Z!=null){let J=ce.value,ie=Z.value;if(Q.has(J[ie]))return{value:J[ie](...oe)};if(I.has(J[ie]))return{value:oe[0]}}}}else{let ce=ae(ee,ne);if(ce!=null){if(ce.value==null&&G.optional)return{value:void 0,optional:!0};let Z=ce.value;if(Q.has(Z))return{value:Z(...oe)};if(I.has(Z))return{value:oe[0]}}}return null},ConditionalExpression(G,ne){let ee=ae(G.test,ne);return ee!=null?ee.value?ae(G.consequent,ne):ae(G.alternate,ne):null},ExpressionStatement(G,ne){return ae(G.expression,ne)},Identifier(G,ne){if(ne!=null){let ee=s(ne,G);if(ee!=null&&ee.defs.length===0&&j.has(ee.name)&&ee.name in F)return{value:F[ee.name]};if(ee!=null&&ee.defs.length===1){let oe=ee.defs[0];if(oe.parent&&oe.parent.kind==="const"&&oe.node.id.type==="Identifier")return ae(oe.node.init,ne)}}return null},Literal(G){return(G.regex!=null||G.bigint!=null)&&G.value==null?null:{value:G.value}},LogicalExpression(G,ne){let ee=ae(G.left,ne);if(ee!=null){if(G.operator==="||"&&ee.value||G.operator==="&&"&&!ee.value||G.operator==="??"&&ee.value!=null)return ee;let oe=ae(G.right,ne);if(oe!=null)return oe}return null},MemberExpression(G,ne){if(G.property.type==="PrivateIdentifier")return null;let ee=ae(G.object,ne);if(ee!=null){if(ee.value==null&&(ee.optional||G.optional))return{value:void 0,optional:!0};let oe=se(G,ne);if(oe!=null&&!R(ee.value,oe.value))return{value:ee.value[oe.value]}}return null},ChainExpression(G,ne){let ee=ae(G.expression,ne);return ee!=null?{value:ee.value}:null},NewExpression(G,ne){let ee=ae(G.callee,ne),oe=U(G.arguments,ne);if(ee!=null&&oe!=null){let ce=ee.value;if(Q.has(ce))return{value:new ce(...oe)}}return null},ObjectExpression(G,ne){let ee={};for(let oe of G.properties)if(oe.type==="Property"){if(oe.kind!=="init")return null;let ce=se(oe,ne),Z=ae(oe.value,ne);if(ce==null||Z==null)return null;ee[ce.value]=Z.value}else if(oe.type==="SpreadElement"||oe.type==="ExperimentalSpreadProperty"){let ce=ae(oe.argument,ne);if(ce==null)return null;Object.assign(ee,ce.value)}else return null;return{value:ee}},SequenceExpression(G,ne){let ee=G.expressions[G.expressions.length-1];return ae(ee,ne)},TaggedTemplateExpression(G,ne){let ee=ae(G.tag,ne),oe=U(G.quasi.expressions,ne);if(ee!=null&&oe!=null){let ce=ee.value,Z=G.quasi.quasis.map(J=>J.value.cooked);if(Z.raw=G.quasi.quasis.map(J=>J.value.raw),ce===String.raw)return{value:ce(Z,...oe)}}return null},TemplateLiteral(G,ne){let ee=U(G.expressions,ne);if(ee!=null){let oe=G.quasis[0].value.cooked;for(let ce=0;ce",">=","<<",">>",">>>","+","-","*","/","%","|","^","&","in"])),K=Object.freeze(new Set(["-","+","!","~"]));function le(G){return G!==null&&typeof G=="object"&&typeof G.type=="string"}let xe=Object.freeze(Object.assign(Object.create(null),{$visit(G,ne,ee){let{type:oe}=G;return typeof this[oe]=="function"?this[oe](G,ne,ee):this.$visitChildren(G,ne,ee)},$visitChildren(G,ne,ee){let{type:oe}=G;for(let ce of ee[oe]||e.getKeys(G)){let Z=G[ce];if(Array.isArray(Z)){for(let J of Z)if(le(J)&&this.$visit(J,ne,ee))return!0}else if(le(Z)&&this.$visit(Z,ne,ee))return!0}return!1},ArrowFunctionExpression(){return!1},AssignmentExpression(){return!0},AwaitExpression(){return!0},BinaryExpression(G,ne,ee){return ne.considerImplicitTypeConversion&&pe.has(G.operator)&&(G.left.type!=="Literal"||G.right.type!=="Literal")?!0:this.$visitChildren(G,ne,ee)},CallExpression(){return!0},FunctionExpression(){return!1},ImportExpression(){return!0},MemberExpression(G,ne,ee){return ne.considerGetters||ne.considerImplicitTypeConversion&&G.computed&&G.property.type!=="Literal"?!0:this.$visitChildren(G,ne,ee)},MethodDefinition(G,ne,ee){return ne.considerImplicitTypeConversion&&G.computed&&G.key.type!=="Literal"?!0:this.$visitChildren(G,ne,ee)},NewExpression(){return!0},Property(G,ne,ee){return ne.considerImplicitTypeConversion&&G.computed&&G.key.type!=="Literal"?!0:this.$visitChildren(G,ne,ee)},PropertyDefinition(G,ne,ee){return ne.considerImplicitTypeConversion&&G.computed&&G.key.type!=="Literal"?!0:this.$visitChildren(G,ne,ee)},UnaryExpression(G,ne,ee){return G.operator==="delete"||ne.considerImplicitTypeConversion&&K.has(G.operator)&&G.argument.type!=="Literal"?!0:this.$visitChildren(G,ne,ee)},UpdateExpression(){return!0},YieldExpression(){return!0}}));function Le(G,ne,{considerGetters:ee=!1,considerImplicitTypeConversion:oe=!1}={}){return xe.$visit(G,{considerGetters:ee,considerImplicitTypeConversion:oe},ne.visitorKeys||e.KEYS)}function qe(G,ne){let ee=G.parent;switch(ee.type){case"CallExpression":case"NewExpression":return ee.arguments.length===1&&ee.arguments[0]===G?ne.getTokenAfter(ee.callee,p):null;case"DoWhileStatement":return ee.test===G?ne.getTokenAfter(ee.body,p):null;case"IfStatement":case"WhileStatement":return ee.test===G?ne.getFirstToken(ee,1):null;case"ImportExpression":return ee.source===G?ne.getFirstToken(ee,1):null;case"SwitchStatement":return ee.discriminant===G?ne.getFirstToken(ee,1):null;case"WithStatement":return ee.object===G?ne.getFirstToken(ee,1):null;default:return null}}function rt(G,ne,ee){let oe,ce,Z,J,ie;if(typeof G=="number"){if(oe=G|0,ce=ne,Z=ee,!(oe>=1))throw new TypeError("'times' should be a positive integer.")}else oe=1,ce=G,Z=ne;if(ce==null||ce.parent==null||ce.parent.type==="CatchClause"&&ce.parent.param===ce)return!1;J=ie=ce;do J=Z.getTokenBefore(J),ie=Z.getTokenAfter(ie);while(J!=null&&ie!=null&&p(J)&&h(ie)&&J!==qe(ce,Z)&&--oe>0);return oe===0}let ht=/\$(?:[$&`']|[1-9][0-9]?)/gu,pt=new WeakMap;function Et(G,ne){let ee=!1;for(let oe=ne-1;oe>=0&&G.charCodeAt(oe)===92;--oe)ee=!ee;return ee}function X(G,ne,ee){let oe=[],ce=0,Z=null;function J(ie){switch(ie){case"$$":return"$";case"$&":return Z[0];case"$`":return ne.slice(0,Z.index);case"$'":return ne.slice(Z.index+Z[0].length);default:{let de=ie.slice(1);return de in Z?Z[de]:ie}}}for(Z of G.execAll(ne))oe.push(ne.slice(ce,Z.index)),oe.push(ee.replace(ht,J)),ce=Z.index+Z[0].length;return oe.push(ne.slice(ce)),oe.join("")}function we(G,ne,ee){let oe=[],ce=0;for(let Z of G.execAll(ne))oe.push(ne.slice(ce,Z.index)),oe.push(String(ee(...Z,Z.index,Z.input))),ce=Z.index+Z[0].length;return oe.push(ne.slice(ce)),oe.join("")}class Ve{constructor(ne,{escaped:ee=!1}={}){if(!(ne instanceof RegExp))throw new TypeError("'pattern' should be a RegExp instance.");if(!ne.flags.includes("g"))throw new Error("'pattern' should contains 'g' flag.");pt.set(this,{pattern:new RegExp(ne.source,ne.flags),escaped:!!ee})}*execAll(ne){let{pattern:ee,escaped:oe}=pt.get(this),ce=null,Z=0;for(ee.lastIndex=0;(ce=ee.exec(ne))!=null;)(oe||!Et(ne,ce.index))&&(Z=ee.lastIndex,yield ce,ee.lastIndex=Z)}test(ne){return!this.execAll(ne).next().done}[Symbol.replace](ne,ee){return typeof ee=="function"?we(this,String(ne),ee):X(this,String(ne),String(ee))}}let et=/^(?:Import|Export(?:All|Default|Named))Declaration$/u,it=Function.call.bind(Object.hasOwnProperty),st=Symbol("read"),Ct=Symbol("call"),bt=Symbol("construct"),Dt=Symbol("esm"),_t={require:{[Ct]:!0}};function W(G){return G==null||G.defs.length!==0||G.references.some(ne=>ne.isWrite())}function vt(G){let ne=G.parent;switch(ne&&ne.type){case"ConditionalExpression":return ne.consequent===G||ne.alternate===G;case"LogicalExpression":return!0;case"SequenceExpression":return ne.expressions[ne.expressions.length-1]===G;case"ChainExpression":return!0;default:return!1}}class Ye{constructor(ne,{mode:ee="strict",globalObjectNames:oe=["global","globalThis","self","window"]}={}){this.variableStack=[],this.globalScope=ne,this.mode=ee,this.globalObjectNames=oe.slice(0)}*iterateGlobalReferences(ne){for(let ee of Object.keys(ne)){let oe=ne[ee],ce=[ee],Z=this.globalScope.set.get(ee);W(Z)||(yield*this._iterateVariableReferences(Z,ce,oe,!0))}for(let ee of this.globalObjectNames){let oe=[],ce=this.globalScope.set.get(ee);W(ce)||(yield*this._iterateVariableReferences(ce,oe,ne,!1))}}*iterateCjsReferences(ne){for(let{node:ee}of this.iterateGlobalReferences(_t)){let oe=H(ee.arguments[0]);if(oe==null||!it(ne,oe))continue;let ce=ne[oe],Z=[oe];ce[st]&&(yield{node:ee,path:Z,type:st,info:ce[st]}),yield*this._iteratePropertyReferences(ee,Z,ce)}}*iterateEsmReferences(ne){let ee=this.globalScope.block;for(let oe of ee.body){if(!et.test(oe.type)||oe.source==null)continue;let ce=oe.source.value;if(!it(ne,ce))continue;let Z=ne[ce],J=[ce];if(Z[st]&&(yield{node:oe,path:J,type:st,info:Z[st]}),oe.type==="ExportAllDeclaration")for(let ie of Object.keys(Z)){let de=Z[ie];de[st]&&(yield{node:oe,path:J.concat(ie),type:st,info:de[st]})}else for(let ie of oe.specifiers){let de=it(Z,Dt),Ce=this._iterateImportReferences(ie,J,de?Z:this.mode==="legacy"?{default:Z,...Z}:{default:Z});if(de)yield*Ce;else for(let L of Ce)L.path=L.path.filter(Kt),(L.path.length>=2||L.type!==st)&&(yield L)}}}*_iterateVariableReferences(ne,ee,oe,ce){if(!this.variableStack.includes(ne)){this.variableStack.push(ne);try{for(let Z of ne.references){if(!Z.isRead())continue;let J=Z.identifier;ce&&oe[st]&&(yield{node:J,path:ee,type:st,info:oe[st]}),yield*this._iteratePropertyReferences(J,ee,oe)}}finally{this.variableStack.pop()}}}*_iteratePropertyReferences(ne,ee,oe){let ce=ne;for(;vt(ce);)ce=ce.parent;let Z=ce.parent;if(Z.type==="MemberExpression"){if(Z.object===ce){let J=he(Z);if(J==null||!it(oe,J))return;ee=ee.concat(J);let ie=oe[J];ie[st]&&(yield{node:Z,path:ee,type:st,info:ie[st]}),yield*this._iteratePropertyReferences(Z,ee,ie)}return}if(Z.type==="CallExpression"){Z.callee===ce&&oe[Ct]&&(yield{node:Z,path:ee,type:Ct,info:oe[Ct]});return}if(Z.type==="NewExpression"){Z.callee===ce&&oe[bt]&&(yield{node:Z,path:ee,type:bt,info:oe[bt]});return}if(Z.type==="AssignmentExpression"){Z.right===ce&&(yield*this._iterateLhsReferences(Z.left,ee,oe),yield*this._iteratePropertyReferences(Z,ee,oe));return}if(Z.type==="AssignmentPattern"){Z.right===ce&&(yield*this._iterateLhsReferences(Z.left,ee,oe));return}Z.type==="VariableDeclarator"&&Z.init===ce&&(yield*this._iterateLhsReferences(Z.id,ee,oe))}*_iterateLhsReferences(ne,ee,oe){if(ne.type==="Identifier"){let ce=s(this.globalScope,ne);ce!=null&&(yield*this._iterateVariableReferences(ce,ee,oe,!1));return}if(ne.type==="ObjectPattern"){for(let ce of ne.properties){let Z=he(ce);if(Z==null||!it(oe,Z))continue;let J=ee.concat(Z),ie=oe[Z];ie[st]&&(yield{node:ce,path:J,type:st,info:ie[st]}),yield*this._iterateLhsReferences(ce.value,J,ie)}return}ne.type==="AssignmentPattern"&&(yield*this._iterateLhsReferences(ne.left,ee,oe))}*_iterateImportReferences(ne,ee,oe){let ce=ne.type;if(ce==="ImportSpecifier"||ce==="ImportDefaultSpecifier"){let Z=ce==="ImportDefaultSpecifier"?"default":ne.imported.name;if(!it(oe,Z))return;ee=ee.concat(Z);let J=oe[Z];J[st]&&(yield{node:ne,path:ee,type:st,info:J[st]}),yield*this._iterateVariableReferences(s(this.globalScope,ne.local),ee,J,!1);return}if(ce==="ImportNamespaceSpecifier"){yield*this._iterateVariableReferences(s(this.globalScope,ne.local),ee,oe,!1);return}if(ce==="ExportSpecifier"){let Z=ne.local.name;if(!it(oe,Z))return;ee=ee.concat(Z);let J=oe[Z];J[st]&&(yield{node:ne,path:ee,type:st,info:J[st]})}}}Ye.READ=st,Ye.CALL=Ct,Ye.CONSTRUCT=bt,Ye.ESM=Dt;function Kt(G,ne){return!(ne===1&&G==="default")}var De={CALL:Ct,CONSTRUCT:bt,ESM:Dt,findVariable:s,getFunctionHeadLocation:T,getFunctionNameWithKind:$,getInnermostScope:t,getPropertyName:he,getStaticValue:ve,getStringIfConstant:H,hasSideEffect:Le,isArrowToken:l,isClosingBraceToken:g,isClosingBracketToken:d,isClosingParenToken:h,isColonToken:c,isCommaToken:o,isCommentToken:y,isNotArrowToken:b,isNotClosingBraceToken:D,isNotClosingBracketToken:k,isNotClosingParenToken:w,isNotColonToken:C,isNotCommaToken:v,isNotCommentToken:_,isNotOpeningBraceToken:A,isNotOpeningBracketToken:E,isNotOpeningParenToken:O,isNotSemicolonToken:S,isOpeningBraceToken:m,isOpeningBracketToken:f,isOpeningParenToken:p,isParenthesized:rt,isSemicolonToken:u,PatternMatcher:Ve,READ:st,ReferenceTracker:Ye};r.CALL=Ct,r.CONSTRUCT=bt,r.ESM=Dt,r.PatternMatcher=Ve,r.READ=st,r.ReferenceTracker=Ye,r.default=De,r.findVariable=s,r.getFunctionHeadLocation=T,r.getFunctionNameWithKind=$,r.getInnermostScope=t,r.getPropertyName=he,r.getStaticValue=ve,r.getStringIfConstant=H,r.hasSideEffect=Le,r.isArrowToken=l,r.isClosingBraceToken=g,r.isClosingBracketToken=d,r.isClosingParenToken=h,r.isColonToken=c,r.isCommaToken=o,r.isCommentToken=y,r.isNotArrowToken=b,r.isNotClosingBraceToken=D,r.isNotClosingBracketToken=k,r.isNotClosingParenToken=w,r.isNotColonToken=C,r.isNotCommaToken=v,r.isNotCommentToken=_,r.isNotOpeningBraceToken=A,r.isNotOpeningBracketToken=E,r.isNotOpeningParenToken=O,r.isNotSemicolonToken=S,r.isOpeningBraceToken=m,r.isOpeningBracketToken=f,r.isOpeningParenToken=p,r.isParenthesized=rt,r.isSemicolonToken=u}(rm)),rm}var nm,QP;function Wo(){return QP||(QP=1,nm=class{constructor(){this.current=null}getOneToken(){return this.moveNext()?this.current:null}getAllTokens(){let e=[];for(;this.moveNext();)e.push(this.current);return e}moveNext(){throw new Error("Not implemented.")}}),nm}var No={},UP;function Zo(){return UP||(UP=1,No.search=function(e,t){for(let s=0,n=e.length-1;s<=n;){let i=(s+n)/2|0,l=e[i].range[0];if(t<=l){if(i===s)return i;n=i}else s=i+1}return e.length},No.getFirstIndex=function(e,t,s){if(s in t)return t[s];if(s-1 in t){let n=t[s-1],i=e[n];return i?i.range[0]>=s?n:n+1:e.length}return 0},No.getLastIndex=function(e,t,s){if(s in t)return t[s]-1;if(s-1 in t){let n=t[s-1],i=e[n];return i?i.range[1]>s?n-1:n:e.length-1}return e.length-1}),No}var sm,VP;function C4(){if(VP)return sm;VP=1;let r=Wo(),e=Zo();return sm=class extends r{constructor(s,n,i,a,l){super(),this.tokens=s,this.comments=n,this.tokenIndex=e.getLastIndex(s,i,l),this.commentIndex=e.search(n,l)-1,this.border=a}moveNext(){let s=this.tokenIndex>=0?this.tokens[this.tokenIndex]:null,n=this.commentIndex>=0?this.comments[this.commentIndex]:null;return s&&(!n||s.range[1]>n.range[1])?(this.current=s,this.tokenIndex-=1):n?(this.current=n,this.commentIndex-=1):this.current=null,!!this.current&&(this.border===-1||this.current.range[0]>=this.border)}},sm}var im,WP;function w4(){if(WP)return im;WP=1;let r=Wo(),{getLastIndex:e,getFirstIndex:t}=Zo();return im=class extends r{constructor(n,i,a,l,o){super(),this.tokens=n,this.index=e(n,a,o),this.indexEnd=t(n,a,l)}moveNext(){return this.index>=this.indexEnd?(this.current=this.tokens[this.index],this.index-=1,!0):!1}getOneToken(){return this.index>=this.indexEnd?this.tokens[this.index]:null}},im}var am,ZP;function _O(){if(ZP)return am;ZP=1;let r=Wo();return am=class extends r{constructor(t){super(),this.cursor=t}moveNext(){let t=this.cursor.moveNext();return this.current=this.cursor.current,t}},am}var om,zP;function k4(){if(zP)return om;zP=1;let r=_O();return om=class extends r{constructor(t,s){super(t),this.predicate=s}moveNext(){let t=this.predicate;for(;super.moveNext();)if(t(this.current))return!0;return!1}},om}var lm,XP;function A4(){if(XP)return lm;XP=1;let r=Wo(),{getFirstIndex:e,search:t}=Zo();return lm=class extends r{constructor(n,i,a,l,o){super(),this.tokens=n,this.comments=i,this.tokenIndex=e(n,a,l),this.commentIndex=t(i,l),this.border=o}moveNext(){let n=this.tokenIndex0?(this.count-=1,super.moveNext()):!1}},cm}var fm,HP;function T4(){if(HP)return fm;HP=1;let r=_O();return fm=class extends r{constructor(t,s){super(t),this.count=s}moveNext(){for(;this.count>0;)if(this.count-=1,!super.moveNext())return!1;return super.moveNext()}},fm}var pm,KP;function D4(){if(KP)return pm;KP=1;let r=C4(),e=w4(),t=k4(),s=A4(),n=IO(),i=P4(),a=T4();class l{constructor(u,c){this.TokenCursor=u,this.TokenCommentCursor=c}createBaseCursor(u,c,p,h,f,d){let m=d?this.TokenCommentCursor:this.TokenCursor;return new m(u,c,p,h,f)}createCursor(u,c,p,h,f,d,m,g,y){let b=this.createBaseCursor(u,c,p,h,f,d);return m&&(b=new t(b,m)),g>=1&&(b=new a(b,g)),y>=0&&(b=new i(b,y)),b}}return pm={forward:new l(n,s),backward:new l(e,r)},pm}var hm,JP;function _4(){if(JP)return hm;JP=1;let r=IO();return hm=class extends r{constructor(t,s,n,i,a,l,o){super(t,s,n,i,a),this.index=Math.max(0,this.index-l),this.indexEnd=Math.min(t.length-1,this.indexEnd+o)}},hm}var dm,eT;function I4(){if(eT)return dm;eT=1;let r=Vo,{isCommentToken:e}=hr(),t=D4(),s=IO(),n=_4(),i=Zo(),a=Symbol("tokens"),l=Symbol("comments"),o=Symbol("indexMap");function u(d,m){let g=Object.create(null),y=0,b=0,v,S;for(;y=0,"options.skip should be zero or a positive integer."),r(!w||typeof w=="function","options.filter should be a function."),d.createCursor(m,g,y,b,v,C,w,O,-1)}function p(d,m,g,y,b,v,S){let C=!1,O=0,w=!1,E=null;return typeof S=="number"?(O=S|0,w=!0):typeof S=="function"?E=S:S&&(C=!!S.includeComments,O=S.count|0,w=typeof S.count=="number",E=S.filter||null),r(O>=0,"options.count should be zero or a positive integer."),r(!E||typeof E=="function","options.filter should be a function."),d.createCursor(m,g,y,b,v,C,E,0,w?O:-1)}function h(d,m,g,y,b,v,S){return typeof v>"u"&&typeof S>"u"?new s(d,m,g,y,b):typeof v=="number"||typeof v>"u"?new n(d,m,g,y,b,v|0,S|0):p(t.forward,d,m,g,y,b,v)}function f(d){let m=[],g=d.getOneToken();for(;g&&e(g);)m.push(g),g=d.getOneToken();return m}return dm=class{constructor(m,g){this[a]=m,this[l]=g,this[o]=u(m,g)}getTokenByRangeStart(m,g){let y=g&&g.includeComments,b=t.forward.createBaseCursor(this[a],this[l],this[o],m,-1,y).getOneToken();return b&&b.range[0]===m?b:null}getFirstToken(m,g){return c(t.forward,this[a],this[l],this[o],m.range[0],m.range[1],g).getOneToken()}getLastToken(m,g){return c(t.backward,this[a],this[l],this[o],m.range[0],m.range[1],g).getOneToken()}getTokenBefore(m,g){return c(t.backward,this[a],this[l],this[o],-1,m.range[0],g).getOneToken()}getTokenAfter(m,g){return c(t.forward,this[a],this[l],this[o],m.range[1],-1,g).getOneToken()}getFirstTokenBetween(m,g,y){return c(t.forward,this[a],this[l],this[o],m.range[1],g.range[0],y).getOneToken()}getLastTokenBetween(m,g,y){return c(t.backward,this[a],this[l],this[o],m.range[1],g.range[0],y).getOneToken()}getTokenOrCommentBefore(m,g){return this.getTokenBefore(m,{includeComments:!0,skip:g})}getTokenOrCommentAfter(m,g){return this.getTokenAfter(m,{includeComments:!0,skip:g})}getFirstTokens(m,g){return p(t.forward,this[a],this[l],this[o],m.range[0],m.range[1],g).getAllTokens()}getLastTokens(m,g){return p(t.backward,this[a],this[l],this[o],m.range[0],m.range[1],g).getAllTokens().reverse()}getTokensBefore(m,g){return p(t.backward,this[a],this[l],this[o],-1,m.range[0],g).getAllTokens().reverse()}getTokensAfter(m,g){return p(t.forward,this[a],this[l],this[o],m.range[1],-1,g).getAllTokens()}getFirstTokensBetween(m,g,y){return p(t.forward,this[a],this[l],this[o],m.range[1],g.range[0],y).getAllTokens()}getLastTokensBetween(m,g,y){return p(t.backward,this[a],this[l],this[o],m.range[1],g.range[0],y).getAllTokens().reverse()}getTokens(m,g,y){return h(this[a],this[l],this[o],m.range[0],m.range[1],g,y).getAllTokens()}getTokensBetween(m,g,y){return h(this[a],this[l],this[o],m.range[1],g.range[0],y,y).getAllTokens()}commentsExistBetween(m,g){let y=i.search(this[l],m.range[1]);return y=0&&l.nodes[o]===t(s,"enter")?l.nodes[o]=t(s,void 0):l.nodes.push(t(s,"exit"))}else l.nodes.push(t(s,"enter"))}r([`${n.currentSegments.map(e).join(",")})`,`${s.type}${i?":exit":""}`].join(" "))}:r,dumpDot:r.enabled?function(s){let n=` +`)}function o(h){h?Bt.env.DEBUG=h:delete Bt.env.DEBUG}function u(){return Bt.env.DEBUG}function c(h){h.inspectOpts={};let f=Object.keys(e.inspectOpts);for(let d=0;df.trim()).join(" ")},p.O=function(h){return this.inspectOpts.colors=this.useColors,s.inspect(h,this.inspectOpts)}}(ec,ec.exports)),ec.exports}var LP;function vi(){return LP||(LP=1,typeof Bt>"u"||Bt.type==="renderer"||Bt.browser===!0||Bt.__nwjs?Ku.exports=v4():Ku.exports=E4()),Ku.exports}var tm,$P;function TO(){if($P)return tm;$P=1;let r=wO(),e=vi()("eslint:traverser");function t(){}function s(a){return a!==null&&typeof a=="object"&&typeof a.type=="string"}function n(a,l){let o=a[l.type];return o||(o=r.getKeys(l),e('Unknown node type "%s": Estimated visitor keys %j',l.type,o)),o}class i{constructor(){this._current=null,this._parents=[],this._skipped=!1,this._broken=!1,this._visitorKeys=null,this._enter=null,this._leave=null}current(){return this._current}parents(){return this._parents.slice(0)}break(){this._broken=!0}skip(){this._skipped=!0}traverse(l,o){this._current=null,this._parents=[],this._skipped=!1,this._broken=!1,this._visitorKeys=o.visitorKeys||r.KEYS,this._enter=o.enter||t,this._leave=o.leave||t,this._traverse(l,null)}_traverse(l,o){if(s(l)){if(this._current=l,this._skipped=!1,this._enter(l,o),!this._skipped&&!this._broken){let u=n(this._visitorKeys,l);if(u.length>=1){this._parents.push(l);for(let c=0;c")}function o(X){return a(X,",")}function u(X){return a(X,";")}function c(X){return a(X,":")}function p(X){return a(X,"(")}function h(X){return a(X,")")}function f(X){return a(X,"[")}function d(X){return a(X,"]")}function m(X){return a(X,"{")}function g(X){return a(X,"}")}function y(X){return["Block","Line","Shebang"].includes(X.type)}let v=i(l),x=i(o),S=i(u),w=i(c),O=i(p),C=i(h),E=i(f),k=i(d),A=i(m),D=i(g),_=i(y);function B(X,ne){return X.id?ne.getTokenAfter(X.id,p):ne.getFirstToken(X,p)}function T(X,ne){let ee=X.parent,oe=null,ce=null;if(X.type==="ArrowFunctionExpression"){let z=ne.getTokenBefore(X.body,l);oe=z.loc.start,ce=z.loc.end}else ee.type==="Property"||ee.type==="MethodDefinition"||ee.type==="PropertyDefinition"?(oe=ee.loc.start,ce=B(X,ne).loc.start):(oe=X.loc.start,ce=B(X,ne).loc.start);return{start:{...oe},end:{...ce}}}let R=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof Jr<"u"?Jr:{},j=Object.freeze(new Set(["Array","ArrayBuffer","BigInt","BigInt64Array","BigUint64Array","Boolean","DataView","Date","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","Float32Array","Float64Array","Function","Infinity","Int16Array","Int32Array","Int8Array","isFinite","isNaN","isPrototypeOf","JSON","Map","Math","NaN","Number","Object","parseFloat","parseInt","Promise","Proxy","Reflect","RegExp","Set","String","Symbol","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray","undefined","unescape","WeakMap","WeakSet"])),Q=new Set([Array.isArray,typeof BigInt=="function"?BigInt:void 0,Boolean,Date,Date.parse,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,escape,isFinite,isNaN,isPrototypeOf,...Object.getOwnPropertyNames(Math).map(X=>Math[X]).filter(X=>typeof X=="function"),Number,Number.isFinite,Number.isNaN,Number.parseFloat,Number.parseInt,Object,Object.entries,Object.is,Object.isExtensible,Object.isFrozen,Object.isSealed,Object.keys,Object.values,parseFloat,parseInt,RegExp,String,String.fromCharCode,String.fromCodePoint,String.raw,Symbol.for,Symbol.keyFor,unescape].filter(X=>typeof X=="function")),I=new Set([Object.freeze,Object.preventExtensions,Object.seal]);function N(X,ne){let ee=X;for(;(typeof ee=="object"||typeof ee=="function")&&ee!==null;){let oe=Object.getOwnPropertyDescriptor(ee,ne);if(oe)return oe;ee=Object.getPrototypeOf(ee)}return null}function F(X,ne){let ee=N(X,ne);return ee!=null&&ee.get!=null}function U(X,ne){let ee=[];for(let oe=0;oe":return{value:ee.value>oe.value};case">=":return{value:ee.value>=oe.value};case"<<":return{value:ee.value<>":return{value:ee.value>>oe.value};case">>>":return{value:ee.value>>>oe.value};case"+":return{value:ee.value+oe.value};case"-":return{value:ee.value-oe.value};case"*":return{value:ee.value*oe.value};case"/":return{value:ee.value/oe.value};case"%":return{value:ee.value%oe.value};case"**":return{value:ee.value**oe.value};case"|":return{value:ee.value|oe.value};case"^":return{value:ee.value^oe.value};case"&":return{value:ee.value&oe.value}}return null},CallExpression(X,ne){let ee=X.callee,oe=U(X.arguments,ne);if(oe!=null)if(ee.type==="MemberExpression"){if(ee.property.type==="PrivateIdentifier")return null;let ce=ae(ee.object,ne);if(ce!=null){if(ce.value==null&&(ce.optional||X.optional))return{value:void 0,optional:!0};let z=se(ee,ne);if(z!=null){let J=ce.value,ie=z.value;if(Q.has(J[ie]))return{value:J[ie](...oe)};if(I.has(J[ie]))return{value:oe[0]}}}}else{let ce=ae(ee,ne);if(ce!=null){if(ce.value==null&&X.optional)return{value:void 0,optional:!0};let z=ce.value;if(Q.has(z))return{value:z(...oe)};if(I.has(z))return{value:oe[0]}}}return null},ConditionalExpression(X,ne){let ee=ae(X.test,ne);return ee!=null?ee.value?ae(X.consequent,ne):ae(X.alternate,ne):null},ExpressionStatement(X,ne){return ae(X.expression,ne)},Identifier(X,ne){if(ne!=null){let ee=s(ne,X);if(ee!=null&&ee.defs.length===0&&j.has(ee.name)&&ee.name in R)return{value:R[ee.name]};if(ee!=null&&ee.defs.length===1){let oe=ee.defs[0];if(oe.parent&&oe.parent.kind==="const"&&oe.node.id.type==="Identifier")return ae(oe.node.init,ne)}}return null},Literal(X){return(X.regex!=null||X.bigint!=null)&&X.value==null?null:{value:X.value}},LogicalExpression(X,ne){let ee=ae(X.left,ne);if(ee!=null){if(X.operator==="||"&&ee.value||X.operator==="&&"&&!ee.value||X.operator==="??"&&ee.value!=null)return ee;let oe=ae(X.right,ne);if(oe!=null)return oe}return null},MemberExpression(X,ne){if(X.property.type==="PrivateIdentifier")return null;let ee=ae(X.object,ne);if(ee!=null){if(ee.value==null&&(ee.optional||X.optional))return{value:void 0,optional:!0};let oe=se(X,ne);if(oe!=null&&!F(ee.value,oe.value))return{value:ee.value[oe.value]}}return null},ChainExpression(X,ne){let ee=ae(X.expression,ne);return ee!=null?{value:ee.value}:null},NewExpression(X,ne){let ee=ae(X.callee,ne),oe=U(X.arguments,ne);if(ee!=null&&oe!=null){let ce=ee.value;if(Q.has(ce))return{value:new ce(...oe)}}return null},ObjectExpression(X,ne){let ee={};for(let oe of X.properties)if(oe.type==="Property"){if(oe.kind!=="init")return null;let ce=se(oe,ne),z=ae(oe.value,ne);if(ce==null||z==null)return null;ee[ce.value]=z.value}else if(oe.type==="SpreadElement"||oe.type==="ExperimentalSpreadProperty"){let ce=ae(oe.argument,ne);if(ce==null)return null;Object.assign(ee,ce.value)}else return null;return{value:ee}},SequenceExpression(X,ne){let ee=X.expressions[X.expressions.length-1];return ae(ee,ne)},TaggedTemplateExpression(X,ne){let ee=ae(X.tag,ne),oe=U(X.quasi.expressions,ne);if(ee!=null&&oe!=null){let ce=ee.value,z=X.quasi.quasis.map(J=>J.value.cooked);if(z.raw=X.quasi.quasis.map(J=>J.value.raw),ce===String.raw)return{value:ce(z,...oe)}}return null},TemplateLiteral(X,ne){let ee=U(X.expressions,ne);if(ee!=null){let oe=X.quasis[0].value.cooked;for(let ce=0;ce",">=","<<",">>",">>>","+","-","*","/","%","|","^","&","in"])),K=Object.freeze(new Set(["-","+","!","~"]));function le(X){return X!==null&&typeof X=="object"&&typeof X.type=="string"}let be=Object.freeze(Object.assign(Object.create(null),{$visit(X,ne,ee){let{type:oe}=X;return typeof this[oe]=="function"?this[oe](X,ne,ee):this.$visitChildren(X,ne,ee)},$visitChildren(X,ne,ee){let{type:oe}=X;for(let ce of ee[oe]||e.getKeys(X)){let z=X[ce];if(Array.isArray(z)){for(let J of z)if(le(J)&&this.$visit(J,ne,ee))return!0}else if(le(z)&&this.$visit(z,ne,ee))return!0}return!1},ArrowFunctionExpression(){return!1},AssignmentExpression(){return!0},AwaitExpression(){return!0},BinaryExpression(X,ne,ee){return ne.considerImplicitTypeConversion&&pe.has(X.operator)&&(X.left.type!=="Literal"||X.right.type!=="Literal")?!0:this.$visitChildren(X,ne,ee)},CallExpression(){return!0},FunctionExpression(){return!1},ImportExpression(){return!0},MemberExpression(X,ne,ee){return ne.considerGetters||ne.considerImplicitTypeConversion&&X.computed&&X.property.type!=="Literal"?!0:this.$visitChildren(X,ne,ee)},MethodDefinition(X,ne,ee){return ne.considerImplicitTypeConversion&&X.computed&&X.key.type!=="Literal"?!0:this.$visitChildren(X,ne,ee)},NewExpression(){return!0},Property(X,ne,ee){return ne.considerImplicitTypeConversion&&X.computed&&X.key.type!=="Literal"?!0:this.$visitChildren(X,ne,ee)},PropertyDefinition(X,ne,ee){return ne.considerImplicitTypeConversion&&X.computed&&X.key.type!=="Literal"?!0:this.$visitChildren(X,ne,ee)},UnaryExpression(X,ne,ee){return X.operator==="delete"||ne.considerImplicitTypeConversion&&K.has(X.operator)&&X.argument.type!=="Literal"?!0:this.$visitChildren(X,ne,ee)},UpdateExpression(){return!0},YieldExpression(){return!0}}));function Le(X,ne,{considerGetters:ee=!1,considerImplicitTypeConversion:oe=!1}={}){return be.$visit(X,{considerGetters:ee,considerImplicitTypeConversion:oe},ne.visitorKeys||e.KEYS)}function qe(X,ne){let ee=X.parent;switch(ee.type){case"CallExpression":case"NewExpression":return ee.arguments.length===1&&ee.arguments[0]===X?ne.getTokenAfter(ee.callee,p):null;case"DoWhileStatement":return ee.test===X?ne.getTokenAfter(ee.body,p):null;case"IfStatement":case"WhileStatement":return ee.test===X?ne.getFirstToken(ee,1):null;case"ImportExpression":return ee.source===X?ne.getFirstToken(ee,1):null;case"SwitchStatement":return ee.discriminant===X?ne.getFirstToken(ee,1):null;case"WithStatement":return ee.object===X?ne.getFirstToken(ee,1):null;default:return null}}function rt(X,ne,ee){let oe,ce,z,J,ie;if(typeof X=="number"){if(oe=X|0,ce=ne,z=ee,!(oe>=1))throw new TypeError("'times' should be a positive integer.")}else oe=1,ce=X,z=ne;if(ce==null||ce.parent==null||ce.parent.type==="CatchClause"&&ce.parent.param===ce)return!1;J=ie=ce;do J=z.getTokenBefore(J),ie=z.getTokenAfter(ie);while(J!=null&&ie!=null&&p(J)&&h(ie)&&J!==qe(ce,z)&&--oe>0);return oe===0}let ht=/\$(?:[$&`']|[1-9][0-9]?)/gu,pt=new WeakMap;function Et(X,ne){let ee=!1;for(let oe=ne-1;oe>=0&&X.charCodeAt(oe)===92;--oe)ee=!ee;return ee}function G(X,ne,ee){let oe=[],ce=0,z=null;function J(ie){switch(ie){case"$$":return"$";case"$&":return z[0];case"$`":return ne.slice(0,z.index);case"$'":return ne.slice(z.index+z[0].length);default:{let de=ie.slice(1);return de in z?z[de]:ie}}}for(z of X.execAll(ne))oe.push(ne.slice(ce,z.index)),oe.push(ee.replace(ht,J)),ce=z.index+z[0].length;return oe.push(ne.slice(ce)),oe.join("")}function Ce(X,ne,ee){let oe=[],ce=0;for(let z of X.execAll(ne))oe.push(ne.slice(ce,z.index)),oe.push(String(ee(...z,z.index,z.input))),ce=z.index+z[0].length;return oe.push(ne.slice(ce)),oe.join("")}class Ve{constructor(ne,{escaped:ee=!1}={}){if(!(ne instanceof RegExp))throw new TypeError("'pattern' should be a RegExp instance.");if(!ne.flags.includes("g"))throw new Error("'pattern' should contains 'g' flag.");pt.set(this,{pattern:new RegExp(ne.source,ne.flags),escaped:!!ee})}*execAll(ne){let{pattern:ee,escaped:oe}=pt.get(this),ce=null,z=0;for(ee.lastIndex=0;(ce=ee.exec(ne))!=null;)(oe||!Et(ne,ce.index))&&(z=ee.lastIndex,yield ce,ee.lastIndex=z)}test(ne){return!this.execAll(ne).next().done}[Symbol.replace](ne,ee){return typeof ee=="function"?Ce(this,String(ne),ee):G(this,String(ne),String(ee))}}let et=/^(?:Import|Export(?:All|Default|Named))Declaration$/u,it=Function.call.bind(Object.hasOwnProperty),st=Symbol("read"),wt=Symbol("call"),vt=Symbol("construct"),Dt=Symbol("esm"),_t={require:{[wt]:!0}};function W(X){return X==null||X.defs.length!==0||X.references.some(ne=>ne.isWrite())}function xt(X){let ne=X.parent;switch(ne&&ne.type){case"ConditionalExpression":return ne.consequent===X||ne.alternate===X;case"LogicalExpression":return!0;case"SequenceExpression":return ne.expressions[ne.expressions.length-1]===X;case"ChainExpression":return!0;default:return!1}}class Ye{constructor(ne,{mode:ee="strict",globalObjectNames:oe=["global","globalThis","self","window"]}={}){this.variableStack=[],this.globalScope=ne,this.mode=ee,this.globalObjectNames=oe.slice(0)}*iterateGlobalReferences(ne){for(let ee of Object.keys(ne)){let oe=ne[ee],ce=[ee],z=this.globalScope.set.get(ee);W(z)||(yield*this._iterateVariableReferences(z,ce,oe,!0))}for(let ee of this.globalObjectNames){let oe=[],ce=this.globalScope.set.get(ee);W(ce)||(yield*this._iterateVariableReferences(ce,oe,ne,!1))}}*iterateCjsReferences(ne){for(let{node:ee}of this.iterateGlobalReferences(_t)){let oe=H(ee.arguments[0]);if(oe==null||!it(ne,oe))continue;let ce=ne[oe],z=[oe];ce[st]&&(yield{node:ee,path:z,type:st,info:ce[st]}),yield*this._iteratePropertyReferences(ee,z,ce)}}*iterateEsmReferences(ne){let ee=this.globalScope.block;for(let oe of ee.body){if(!et.test(oe.type)||oe.source==null)continue;let ce=oe.source.value;if(!it(ne,ce))continue;let z=ne[ce],J=[ce];if(z[st]&&(yield{node:oe,path:J,type:st,info:z[st]}),oe.type==="ExportAllDeclaration")for(let ie of Object.keys(z)){let de=z[ie];de[st]&&(yield{node:oe,path:J.concat(ie),type:st,info:de[st]})}else for(let ie of oe.specifiers){let de=it(z,Dt),we=this._iterateImportReferences(ie,J,de?z:this.mode==="legacy"?{default:z,...z}:{default:z});if(de)yield*we;else for(let L of we)L.path=L.path.filter(Kt),(L.path.length>=2||L.type!==st)&&(yield L)}}}*_iterateVariableReferences(ne,ee,oe,ce){if(!this.variableStack.includes(ne)){this.variableStack.push(ne);try{for(let z of ne.references){if(!z.isRead())continue;let J=z.identifier;ce&&oe[st]&&(yield{node:J,path:ee,type:st,info:oe[st]}),yield*this._iteratePropertyReferences(J,ee,oe)}}finally{this.variableStack.pop()}}}*_iteratePropertyReferences(ne,ee,oe){let ce=ne;for(;xt(ce);)ce=ce.parent;let z=ce.parent;if(z.type==="MemberExpression"){if(z.object===ce){let J=he(z);if(J==null||!it(oe,J))return;ee=ee.concat(J);let ie=oe[J];ie[st]&&(yield{node:z,path:ee,type:st,info:ie[st]}),yield*this._iteratePropertyReferences(z,ee,ie)}return}if(z.type==="CallExpression"){z.callee===ce&&oe[wt]&&(yield{node:z,path:ee,type:wt,info:oe[wt]});return}if(z.type==="NewExpression"){z.callee===ce&&oe[vt]&&(yield{node:z,path:ee,type:vt,info:oe[vt]});return}if(z.type==="AssignmentExpression"){z.right===ce&&(yield*this._iterateLhsReferences(z.left,ee,oe),yield*this._iteratePropertyReferences(z,ee,oe));return}if(z.type==="AssignmentPattern"){z.right===ce&&(yield*this._iterateLhsReferences(z.left,ee,oe));return}z.type==="VariableDeclarator"&&z.init===ce&&(yield*this._iterateLhsReferences(z.id,ee,oe))}*_iterateLhsReferences(ne,ee,oe){if(ne.type==="Identifier"){let ce=s(this.globalScope,ne);ce!=null&&(yield*this._iterateVariableReferences(ce,ee,oe,!1));return}if(ne.type==="ObjectPattern"){for(let ce of ne.properties){let z=he(ce);if(z==null||!it(oe,z))continue;let J=ee.concat(z),ie=oe[z];ie[st]&&(yield{node:ce,path:J,type:st,info:ie[st]}),yield*this._iterateLhsReferences(ce.value,J,ie)}return}ne.type==="AssignmentPattern"&&(yield*this._iterateLhsReferences(ne.left,ee,oe))}*_iterateImportReferences(ne,ee,oe){let ce=ne.type;if(ce==="ImportSpecifier"||ce==="ImportDefaultSpecifier"){let z=ce==="ImportDefaultSpecifier"?"default":ne.imported.name;if(!it(oe,z))return;ee=ee.concat(z);let J=oe[z];J[st]&&(yield{node:ne,path:ee,type:st,info:J[st]}),yield*this._iterateVariableReferences(s(this.globalScope,ne.local),ee,J,!1);return}if(ce==="ImportNamespaceSpecifier"){yield*this._iterateVariableReferences(s(this.globalScope,ne.local),ee,oe,!1);return}if(ce==="ExportSpecifier"){let z=ne.local.name;if(!it(oe,z))return;ee=ee.concat(z);let J=oe[z];J[st]&&(yield{node:ne,path:ee,type:st,info:J[st]})}}}Ye.READ=st,Ye.CALL=wt,Ye.CONSTRUCT=vt,Ye.ESM=Dt;function Kt(X,ne){return!(ne===1&&X==="default")}var De={CALL:wt,CONSTRUCT:vt,ESM:Dt,findVariable:s,getFunctionHeadLocation:T,getFunctionNameWithKind:$,getInnermostScope:t,getPropertyName:he,getStaticValue:xe,getStringIfConstant:H,hasSideEffect:Le,isArrowToken:l,isClosingBraceToken:g,isClosingBracketToken:d,isClosingParenToken:h,isColonToken:c,isCommaToken:o,isCommentToken:y,isNotArrowToken:v,isNotClosingBraceToken:D,isNotClosingBracketToken:k,isNotClosingParenToken:C,isNotColonToken:w,isNotCommaToken:x,isNotCommentToken:_,isNotOpeningBraceToken:A,isNotOpeningBracketToken:E,isNotOpeningParenToken:O,isNotSemicolonToken:S,isOpeningBraceToken:m,isOpeningBracketToken:f,isOpeningParenToken:p,isParenthesized:rt,isSemicolonToken:u,PatternMatcher:Ve,READ:st,ReferenceTracker:Ye};r.CALL=wt,r.CONSTRUCT=vt,r.ESM=Dt,r.PatternMatcher=Ve,r.READ=st,r.ReferenceTracker=Ye,r.default=De,r.findVariable=s,r.getFunctionHeadLocation=T,r.getFunctionNameWithKind=$,r.getInnermostScope=t,r.getPropertyName=he,r.getStaticValue=xe,r.getStringIfConstant=H,r.hasSideEffect=Le,r.isArrowToken=l,r.isClosingBraceToken=g,r.isClosingBracketToken=d,r.isClosingParenToken=h,r.isColonToken=c,r.isCommaToken=o,r.isCommentToken=y,r.isNotArrowToken=v,r.isNotClosingBraceToken=D,r.isNotClosingBracketToken=k,r.isNotClosingParenToken=C,r.isNotColonToken=w,r.isNotCommaToken=x,r.isNotCommentToken=_,r.isNotOpeningBraceToken=A,r.isNotOpeningBracketToken=E,r.isNotOpeningParenToken=O,r.isNotSemicolonToken=S,r.isOpeningBraceToken=m,r.isOpeningBracketToken=f,r.isOpeningParenToken=p,r.isParenthesized=rt,r.isSemicolonToken=u}(rm)),rm}var nm,qP;function Wo(){return qP||(qP=1,nm=class{constructor(){this.current=null}getOneToken(){return this.moveNext()?this.current:null}getAllTokens(){let e=[];for(;this.moveNext();)e.push(this.current);return e}moveNext(){throw new Error("Not implemented.")}}),nm}var No={},QP;function zo(){return QP||(QP=1,No.search=function(e,t){for(let s=0,n=e.length-1;s<=n;){let i=(s+n)/2|0,l=e[i].range[0];if(t<=l){if(i===s)return i;n=i}else s=i+1}return e.length},No.getFirstIndex=function(e,t,s){if(s in t)return t[s];if(s-1 in t){let n=t[s-1],i=e[n];return i?i.range[0]>=s?n:n+1:e.length}return 0},No.getLastIndex=function(e,t,s){if(s in t)return t[s]-1;if(s-1 in t){let n=t[s-1],i=e[n];return i?i.range[1]>s?n-1:n:e.length-1}return e.length-1}),No}var sm,UP;function C4(){if(UP)return sm;UP=1;let r=Wo(),e=zo();return sm=class extends r{constructor(s,n,i,a,l){super(),this.tokens=s,this.comments=n,this.tokenIndex=e.getLastIndex(s,i,l),this.commentIndex=e.search(n,l)-1,this.border=a}moveNext(){let s=this.tokenIndex>=0?this.tokens[this.tokenIndex]:null,n=this.commentIndex>=0?this.comments[this.commentIndex]:null;return s&&(!n||s.range[1]>n.range[1])?(this.current=s,this.tokenIndex-=1):n?(this.current=n,this.commentIndex-=1):this.current=null,!!this.current&&(this.border===-1||this.current.range[0]>=this.border)}},sm}var im,VP;function k4(){if(VP)return im;VP=1;let r=Wo(),{getLastIndex:e,getFirstIndex:t}=zo();return im=class extends r{constructor(n,i,a,l,o){super(),this.tokens=n,this.index=e(n,a,o),this.indexEnd=t(n,a,l)}moveNext(){return this.index>=this.indexEnd?(this.current=this.tokens[this.index],this.index-=1,!0):!1}getOneToken(){return this.index>=this.indexEnd?this.tokens[this.index]:null}},im}var am,WP;function DO(){if(WP)return am;WP=1;let r=Wo();return am=class extends r{constructor(t){super(),this.cursor=t}moveNext(){let t=this.cursor.moveNext();return this.current=this.cursor.current,t}},am}var om,zP;function A4(){if(zP)return om;zP=1;let r=DO();return om=class extends r{constructor(t,s){super(t),this.predicate=s}moveNext(){let t=this.predicate;for(;super.moveNext();)if(t(this.current))return!0;return!1}},om}var lm,ZP;function P4(){if(ZP)return lm;ZP=1;let r=Wo(),{getFirstIndex:e,search:t}=zo();return lm=class extends r{constructor(n,i,a,l,o){super(),this.tokens=n,this.comments=i,this.tokenIndex=e(n,a,l),this.commentIndex=t(i,l),this.border=o}moveNext(){let n=this.tokenIndex0?(this.count-=1,super.moveNext()):!1}},cm}var fm,YP;function D4(){if(YP)return fm;YP=1;let r=DO();return fm=class extends r{constructor(t,s){super(t),this.count=s}moveNext(){for(;this.count>0;)if(this.count-=1,!super.moveNext())return!1;return super.moveNext()}},fm}var pm,HP;function _4(){if(HP)return pm;HP=1;let r=C4(),e=k4(),t=A4(),s=P4(),n=_O(),i=T4(),a=D4();class l{constructor(u,c){this.TokenCursor=u,this.TokenCommentCursor=c}createBaseCursor(u,c,p,h,f,d){let m=d?this.TokenCommentCursor:this.TokenCursor;return new m(u,c,p,h,f)}createCursor(u,c,p,h,f,d,m,g,y){let v=this.createBaseCursor(u,c,p,h,f,d);return m&&(v=new t(v,m)),g>=1&&(v=new a(v,g)),y>=0&&(v=new i(v,y)),v}}return pm={forward:new l(n,s),backward:new l(e,r)},pm}var hm,KP;function I4(){if(KP)return hm;KP=1;let r=_O();return hm=class extends r{constructor(t,s,n,i,a,l,o){super(t,s,n,i,a),this.index=Math.max(0,this.index-l),this.indexEnd=Math.min(t.length-1,this.indexEnd+o)}},hm}var dm,JP;function R4(){if(JP)return dm;JP=1;let r=Vo,{isCommentToken:e}=hr(),t=_4(),s=_O(),n=I4(),i=zo(),a=Symbol("tokens"),l=Symbol("comments"),o=Symbol("indexMap");function u(d,m){let g=Object.create(null),y=0,v=0,x,S;for(;y=0,"options.skip should be zero or a positive integer."),r(!C||typeof C=="function","options.filter should be a function."),d.createCursor(m,g,y,v,x,w,C,O,-1)}function p(d,m,g,y,v,x,S){let w=!1,O=0,C=!1,E=null;return typeof S=="number"?(O=S|0,C=!0):typeof S=="function"?E=S:S&&(w=!!S.includeComments,O=S.count|0,C=typeof S.count=="number",E=S.filter||null),r(O>=0,"options.count should be zero or a positive integer."),r(!E||typeof E=="function","options.filter should be a function."),d.createCursor(m,g,y,v,x,w,E,0,C?O:-1)}function h(d,m,g,y,v,x,S){return typeof x>"u"&&typeof S>"u"?new s(d,m,g,y,v):typeof x=="number"||typeof x>"u"?new n(d,m,g,y,v,x|0,S|0):p(t.forward,d,m,g,y,v,x)}function f(d){let m=[],g=d.getOneToken();for(;g&&e(g);)m.push(g),g=d.getOneToken();return m}return dm=class{constructor(m,g){this[a]=m,this[l]=g,this[o]=u(m,g)}getTokenByRangeStart(m,g){let y=g&&g.includeComments,v=t.forward.createBaseCursor(this[a],this[l],this[o],m,-1,y).getOneToken();return v&&v.range[0]===m?v:null}getFirstToken(m,g){return c(t.forward,this[a],this[l],this[o],m.range[0],m.range[1],g).getOneToken()}getLastToken(m,g){return c(t.backward,this[a],this[l],this[o],m.range[0],m.range[1],g).getOneToken()}getTokenBefore(m,g){return c(t.backward,this[a],this[l],this[o],-1,m.range[0],g).getOneToken()}getTokenAfter(m,g){return c(t.forward,this[a],this[l],this[o],m.range[1],-1,g).getOneToken()}getFirstTokenBetween(m,g,y){return c(t.forward,this[a],this[l],this[o],m.range[1],g.range[0],y).getOneToken()}getLastTokenBetween(m,g,y){return c(t.backward,this[a],this[l],this[o],m.range[1],g.range[0],y).getOneToken()}getTokenOrCommentBefore(m,g){return this.getTokenBefore(m,{includeComments:!0,skip:g})}getTokenOrCommentAfter(m,g){return this.getTokenAfter(m,{includeComments:!0,skip:g})}getFirstTokens(m,g){return p(t.forward,this[a],this[l],this[o],m.range[0],m.range[1],g).getAllTokens()}getLastTokens(m,g){return p(t.backward,this[a],this[l],this[o],m.range[0],m.range[1],g).getAllTokens().reverse()}getTokensBefore(m,g){return p(t.backward,this[a],this[l],this[o],-1,m.range[0],g).getAllTokens().reverse()}getTokensAfter(m,g){return p(t.forward,this[a],this[l],this[o],m.range[1],-1,g).getAllTokens()}getFirstTokensBetween(m,g,y){return p(t.forward,this[a],this[l],this[o],m.range[1],g.range[0],y).getAllTokens()}getLastTokensBetween(m,g,y){return p(t.backward,this[a],this[l],this[o],m.range[1],g.range[0],y).getAllTokens().reverse()}getTokens(m,g,y){return h(this[a],this[l],this[o],m.range[0],m.range[1],g,y).getAllTokens()}getTokensBetween(m,g,y){return h(this[a],this[l],this[o],m.range[1],g.range[0],y,y).getAllTokens()}commentsExistBetween(m,g){let y=i.search(this[l],m.range[1]);return y=0&&l.nodes[o]===t(s,"enter")?l.nodes[o]=t(s,void 0):l.nodes.push(t(s,"exit"))}else l.nodes.push(t(s,"enter"))}r([`${n.currentSegments.map(e).join(",")})`,`${s.type}${i?":exit":""}`].join(" "))}:r,dumpDot:r.enabled?function(s){let n=` digraph { node[shape=box,style="rounded,filled",fillcolor=white]; initial[label="",shape=circle,style=filled,fillcolor=black,width=0.25,height=0.25]; @@ -64,92 +64,92 @@ initial[label="",shape=circle,style=filled,fillcolor=black,width=0.25,height=0.2 `,n+="}",r("DOT",n)}:r,makeDotArrows(s,n){let i=[[s.initialSegment,0]],a=n||Object.create(null),l=s.initialSegment.id,o=`initial->${s.initialSegment.id}`;for(;i.length>0;){let u=i.pop(),c=u[0],p=u[1];if(a[c.id]&&p===0)continue;a[c.id]=c;let h=c.allNextSegments[p];h&&(l===c.id?o+=`->${h.id}`:o+=`; ${c.id}->${h.id}`,l=h.id,i.unshift([c,1+p]),i.push([h,0]))}return s.returnedSegments.forEach(u=>{l===u.id?o+="->final":o+=`; ${u.id}->final`,l=null}),s.thrownSegments.forEach(u=>{l===u.id?o+="->thrown":o+=`; -${u.id}->thrown`,l=null}),`${o};`}},gm}var ym,nT;function FO(){if(nT)return ym;nT=1;let r=VB();function e(s){return s.reachable}class t{constructor(n,i,a){this.id=n,this.nextSegments=[],this.prevSegments=i.filter(e),this.allNextSegments=[],this.allPrevSegments=i,this.reachable=a,Object.defineProperty(this,"internal",{value:{used:!1,loopedPrevSegments:[]}}),r.enabled&&(this.internal.nodes=[])}isLoopedPrevSegment(n){return this.internal.loopedPrevSegments.includes(n)}static newRoot(n){return new t(n,[],!0)}static newNext(n,i){return new t(n,t.flattenUnusedSegments(i),i.some(e))}static newUnreachable(n,i){let a=new t(n,t.flattenUnusedSegments(i),!1);return t.markUsed(a),a}static newDisconnected(n,i){return new t(n,[],i.some(e))}static markUsed(n){if(n.internal.used)return;n.internal.used=!0;let i;if(n.reachable)for(i=0;i=0?l:c.length+l,h=o>=0?o:c.length+o,f=[];for(let d=0;da.count;){let u=[];for(let c=0,p=Math.floor(o.length/2);c0&&l.some(t)}makeNext(l,o){return s(this,l,o,e.newNext)}makeUnreachable(l,o){return s(this,l,o,e.newUnreachable)}makeDisconnected(l,o){return s(this,l,o,e.newDisconnected)}add(l){r(l.length>=this.count,`${l.length} >= ${this.count}`),this.segmentsList.push(n(this,l))}replaceHead(l){r(l.length>=this.count,`${l.length} >= ${this.count}`),this.segmentsList.splice(-1,1,n(this,l))}addAll(l){r(l.count===this.count),this.segmentsList.push(...l.segmentsList)}clear(){this.segmentsList=[]}static newRoot(l){let o=new i(l,null,1);return o.add([e.newRoot(l.next())]),o}static newEmpty(l,o){return new i(l.idGenerator,l,(o?2:1)*l.count)}}return xm=i,xm}var bm,iT;function R4(){if(iT)return bm;iT=1;let r=FO(),e=F4();class t{constructor(E,k,A,D){this.upper=E,this.breakable=k,this.label=A,this.brokenForkContext=e.newEmpty(D)}}class s{constructor(E){this.upper=E,this.choiceContextCount=0}}class n{constructor(E,k,A,D){this.upper=E,this.kind=k,this.isForkingAsResult=A,this.trueForkContext=e.newEmpty(D),this.falseForkContext=e.newEmpty(D),this.nullishForkContext=e.newEmpty(D),this.processed=!1}}class i{constructor(E,k,A,D){this.upper=E,this.type=k,this.label=A,this.brokenForkContext=D.brokenForkContext}}class a extends i{constructor(E,k,A){super(E,"WhileStatement",k,A),this.test=void 0,this.continueDestSegments=null}}class l extends i{constructor(E,k,A,D){super(E,"DoWhileStatement",k,A),this.test=void 0,this.entrySegments=null,this.continueForkContext=e.newEmpty(D)}}class o extends i{constructor(E,k,A){super(E,"ForStatement",k,A),this.test=void 0,this.endOfInitSegments=null,this.testSegments=null,this.endOfTestSegments=null,this.updateSegments=null,this.endOfUpdateSegments=null,this.continueDestSegments=null}}class u extends i{constructor(E,k,A){super(E,"ForInStatement",k,A),this.prevSegments=null,this.leftSegments=null,this.endOfLeftSegments=null,this.continueDestSegments=null}}class c extends i{constructor(E,k,A){super(E,"ForOfStatement",k,A),this.prevSegments=null,this.leftSegments=null,this.endOfLeftSegments=null,this.continueDestSegments=null}}class p{constructor(E,k){this.upper=E,this.hasCase=k,this.defaultSegments=null,this.defaultBodySegments=null,this.foundEmptyDefault=!1,this.lastIsDefault=!1,this.forkCount=0}}class h{constructor(E,k,A){this.upper=E,this.hasFinalizer=k,this.position="try",this.returnedForkContext=k?e.newEmpty(A):null,this.thrownForkContext=e.newEmpty(A),this.lastOfTryIsReachable=!1,this.lastOfCatchIsReachable=!1}}function f(w,E,k,A){for(let D=0;D=2&&r.markPrevSegmentAsLooped(F,T),w.notifyLooped(T,F)}}function C(w,E,k){E.processed||(E.trueForkContext.add(k),E.falseForkContext.add(k),E.nullishForkContext.add(k)),w.test!==!0&&w.brokenForkContext.addAll(E.falseForkContext),w.endOfTestSegments=E.trueForkContext.makeNext(0,-1)}class O{constructor(E,k){this.idGenerator=E,this.notifyLooped=k,this.forkContext=e.newRoot(E),this.choiceContext=null,this.switchContext=null,this.tryContext=null,this.loopContext=null,this.breakContext=null,this.chainContext=null,this.currentSegments=[],this.initialSegment=this.forkContext.head[0],this.finalSegments=[],this.returnedForkContext=[],this.thrownForkContext=[];let A=this.finalSegments,D=this.returnedForkContext,_=this.thrownForkContext;D.add=f.bind(null,D,_,A),_.add=f.bind(null,_,D,A)}get headSegments(){return this.forkContext.head}get parentForkContext(){let E=this.forkContext;return E&&E.upper}pushForkContext(E){return this.forkContext=e.newEmpty(this.forkContext,E),this.forkContext}popForkContext(){let E=this.forkContext;return this.forkContext=E.upper,this.forkContext.replaceHead(E.makeNext(0,-1)),E}forkPath(){this.forkContext.add(this.parentForkContext.makeNext(-1,-1))}forkBypassPath(){this.forkContext.add(this.parentForkContext.head)}pushChoiceContext(E,k){this.choiceContext=new n(this.choiceContext,E,k,this.forkContext)}popChoiceContext(){let E=this.choiceContext,k=this.forkContext,A=k.head;switch(this.choiceContext=E.upper,E.kind){case"&&":case"||":case"??":if(E.processed||(E.trueForkContext.add(A),E.falseForkContext.add(A),E.nullishForkContext.add(A)),E.isForkingAsResult){let _=this.choiceContext;return _.trueForkContext.addAll(E.trueForkContext),_.falseForkContext.addAll(E.falseForkContext),_.nullishForkContext.addAll(E.nullishForkContext),_.processed=!0,E}break;case"test":E.processed?(E.falseForkContext.clear(),E.falseForkContext.add(A)):(E.trueForkContext.clear(),E.trueForkContext.add(A));break;case"loop":return E;default:throw new Error("unreachable")}let D=E.trueForkContext;return D.addAll(E.falseForkContext),k.replaceHead(D.makeNext(0,-1)),E}makeLogicalRight(){let E=this.choiceContext,k=this.forkContext;if(E.processed){let A;switch(E.kind){case"&&":A=E.trueForkContext;break;case"||":A=E.falseForkContext;break;case"??":A=E.nullishForkContext;break;default:throw new Error("unreachable")}k.replaceHead(A.makeNext(0,-1)),A.clear(),E.processed=!1}else{switch(E.kind){case"&&":E.falseForkContext.add(k.head),E.nullishForkContext.add(k.head);break;case"||":E.trueForkContext.add(k.head);break;case"??":E.trueForkContext.add(k.head),E.falseForkContext.add(k.head);break;default:throw new Error("unreachable")}k.replaceHead(k.makeNext(-1,-1))}}makeIfConsequent(){let E=this.choiceContext,k=this.forkContext;E.processed||(E.trueForkContext.add(k.head),E.falseForkContext.add(k.head),E.nullishForkContext.add(k.head)),E.processed=!1,k.replaceHead(E.trueForkContext.makeNext(0,-1))}makeIfAlternate(){let E=this.choiceContext,k=this.forkContext;E.trueForkContext.clear(),E.trueForkContext.add(k.head),E.processed=!0,k.replaceHead(E.falseForkContext.makeNext(0,-1))}pushChainContext(){this.chainContext=new s(this.chainContext)}popChainContext(){let E=this.chainContext;this.chainContext=E.upper;for(let k=E.choiceContextCount;k>0;--k)this.popChoiceContext()}makeOptionalNode(){this.chainContext&&(this.chainContext.choiceContextCount+=1,this.pushChoiceContext("??",!1))}makeOptionalRight(){this.chainContext&&this.makeLogicalRight()}pushSwitchContext(E,k){this.switchContext=new p(this.switchContext,E),this.pushBreakContext(!0,k)}popSwitchContext(){let E=this.switchContext;this.switchContext=E.upper;let k=this.forkContext,A=this.popBreakContext().brokenForkContext;if(E.forkCount===0){A.empty||(A.add(k.makeNext(-1,-1)),k.replaceHead(A.makeNext(0,-1)));return}let D=k.head;this.forkBypassPath();let _=k.head;A.add(D),E.lastIsDefault||(E.defaultBodySegments?(v(E.defaultSegments,E.defaultBodySegments),S(this,_,E.defaultBodySegments)):A.add(_));for(let B=0;B0&&E[0].reachable&&this.returnedForkContext.add(E)}}return bm=O,bm}var vm,aT;function WB(){if(aT)return vm;aT=1;class r{constructor(t){this.prefix=String(t),this.n=0}next(){return this.n=1+this.n|0,this.n<0&&(this.n=1),this.prefix+this.n}}return vm=r,vm}var Om,oT;function B4(){if(oT)return Om;oT=1;let r=R4(),e=WB();class t{constructor({id:n,origin:i,upper:a,onLooped:l}){this.id=n,this.origin=i,this.upper=a,this.childCodePaths=[],Object.defineProperty(this,"internal",{value:new r(new e(`${n}_`),l)}),a&&a.childCodePaths.push(this)}static getState(n){return n.internal}get initialSegment(){return this.internal.initialSegment}get finalSegments(){return this.internal.finalSegments}get returnedSegments(){return this.internal.returnedForkContext}get thrownSegments(){return this.internal.thrownForkContext}traverseSegments(n,i){let a,l;typeof n=="function"?(l=n,a={}):(a=n||{},l=i);let o=a.first||this.internal.initialSegment,u=a.last,c,p,h,f=null,d=new Set,m=[[o,0]],g=new Set,y=!1,b={skip(){g.add(f)},break(){y=!0}};function v(C){return d.has(C)||f.isLoopedPrevSegment(C)}function S(C){return g.has(C)||f.isLoopedPrevSegment(C)}for(;m.length>0;){if(c=m.at(-1),f=c[0],p=c[1],p===0){if(d.has(f)){m.pop();continue}if(f!==o&&f.prevSegments.length>0&&!f.prevSegments.every(v)){m.pop();continue}if(d.add(f),g.size>0&&f.prevSegments.length>0&&f.prevSegments.every(S))g.add(f);else if(l.call(this,f,b),f===u&&b.skip(),y)break}h=f.nextSegments.length-1,p=1&&k.arguments[0]===O&&E.makeOptionalRight();break;case"MemberExpression":k.optional===!0&&k.property===O&&E.makeOptionalRight();break;case"LogicalExpression":k.right===O&&o(k.operator)&&E.makeLogicalRight();break;case"AssignmentExpression":k.right===O&&u(k.operator)&&E.makeLogicalRight();break;case"ConditionalExpression":case"IfStatement":k.consequent===O?E.makeIfConsequent():k.alternate===O&&E.makeIfAlternate();break;case"SwitchCase":k.consequent[0]===O&&E.makeSwitchCaseBody(!1,!k.test);break;case"TryStatement":k.handler===O?E.makeCatchBlock():k.finalizer===O&&E.makeFinallyBlock();break;case"WhileStatement":k.test===O?E.makeWhileTest(h(O)):(r(k.body===O),E.makeWhileBody());break;case"DoWhileStatement":k.body===O?E.makeDoWhileBody():(r(k.test===O),E.makeDoWhileTest(h(O)));break;case"ForStatement":k.test===O?E.makeForTest(h(O)):k.update===O?E.makeForUpdate():k.body===O&&E.makeForBody();break;case"ForInStatement":case"ForOfStatement":k.left===O?E.makeForInOfLeft():k.right===O?E.makeForInOfRight():(r(k.body===O),E.makeForInOfBody());break;case"AssignmentPattern":k.right===O&&(E.pushForkContext(),E.forkBypassPath(),E.forkPath());break}}function y(C,O){let w=C.codePath,E=w&&t.getState(w),k=O.parent;function A(D){w&&(d(C,O),i.dumpState(O,E,!1)),w=C.codePath=new t({id:C.idGenerator.next(),origin:D,upper:w,onLooped:C.onLooped}),E=t.getState(w),i.dump(`onCodePathStart ${w.id}`),C.emitter.emit("onCodePathStart",w,O)}switch(l(O)&&A("class-field-initializer"),O.type){case"Program":A("program");break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":A("function");break;case"StaticBlock":A("class-static-block");break;case"ChainExpression":E.pushChainContext();break;case"CallExpression":O.optional===!0&&E.makeOptionalNode();break;case"MemberExpression":O.optional===!0&&E.makeOptionalNode();break;case"LogicalExpression":o(O.operator)&&E.pushChoiceContext(O.operator,p(O));break;case"AssignmentExpression":u(O.operator)&&E.pushChoiceContext(O.operator.slice(0,-1),p(O));break;case"ConditionalExpression":case"IfStatement":E.pushChoiceContext("test",!1);break;case"SwitchStatement":E.pushSwitchContext(O.cases.some(a),c(O));break;case"TryStatement":E.pushTryContext(!!O.finalizer);break;case"SwitchCase":k.discriminant!==O&&k.cases[0]!==O&&E.forkPath();break;case"WhileStatement":case"DoWhileStatement":case"ForStatement":case"ForInStatement":case"ForOfStatement":E.pushLoopContext(O.type,c(O));break;case"LabeledStatement":e.test(O.body.type)||E.pushBreakContext(!1,O.label.name);break}d(C,O),i.dumpState(O,E,!1)}function b(C,O){let w=C.codePath,E=t.getState(w),k=!1;switch(O.type){case"ChainExpression":E.popChainContext();break;case"IfStatement":case"ConditionalExpression":E.popChoiceContext();break;case"LogicalExpression":o(O.operator)&&E.popChoiceContext();break;case"AssignmentExpression":u(O.operator)&&E.popChoiceContext();break;case"SwitchStatement":E.popSwitchContext();break;case"SwitchCase":O.consequent.length===0&&E.makeSwitchCaseBody(!0,!O.test),E.forkContext.reachable&&(k=!0);break;case"TryStatement":E.popTryContext();break;case"BreakStatement":d(C,O),E.makeBreak(O.label&&O.label.name),k=!0;break;case"ContinueStatement":d(C,O),E.makeContinue(O.label&&O.label.name),k=!0;break;case"ReturnStatement":d(C,O),E.makeReturn(),k=!0;break;case"ThrowStatement":d(C,O),E.makeThrow(),k=!0;break;case"Identifier":f(O)&&(E.makeFirstThrowablePathInTryBlock(),k=!0);break;case"CallExpression":case"ImportExpression":case"MemberExpression":case"NewExpression":case"YieldExpression":E.makeFirstThrowablePathInTryBlock();break;case"WhileStatement":case"DoWhileStatement":case"ForStatement":case"ForInStatement":case"ForOfStatement":E.popLoopContext();break;case"AssignmentPattern":E.popForkContext();break;case"LabeledStatement":e.test(O.body.type)||E.popBreakContext();break}k||d(C,O),i.dumpState(O,E,!0)}function v(C,O){function w(){let E=C.codePath;t.getState(E).makeFinal(),m(C,O),i.dump(`onCodePathEnd ${E.id}`),C.emitter.emit("onCodePathEnd",E,O),i.dumpDot(E),E=C.codePath=C.codePath.upper,E&&i.dumpState(O,t.getState(E),!0)}switch(O.type){case"Program":case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"StaticBlock":{w();break}case"CallExpression":O.optional===!0&&O.arguments.length===0&&t.getState(C.codePath).makeOptionalRight();break}l(O)&&w()}class S{constructor(O){this.original=O,this.emitter=O.emitter,this.codePath=null,this.idGenerator=new n("s"),this.currentNode=null,this.onLooped=this.onLooped.bind(this)}enterNode(O){this.currentNode=O,O.parent&&g(this,O),y(this,O),this.original.enterNode(O),this.currentNode=null}leaveNode(O){this.currentNode=O,b(this,O),this.original.leaveNode(O),v(this,O),this.currentNode=null}onLooped(O,w){O.reachable&&w.reachable&&(i.dump(`onCodePathSegmentLoop ${O.id} -> ${w.id}`),this.emitter.emit("onCodePathSegmentLoop",O,w,this.currentNode))}}return Sm=S,Sm}var Em,uT;function ZB(){return uT||(uT=1,Em=()=>{let r=Object.create(null);return Object.freeze({on(e,t){e in r?r[e].push(t):r[e]=[t]},emit(e,...t){e in r&&r[e].forEach(s=>s(...t))},eventNames(){return Object.keys(r)}})}),Em}var Cm={exports:{}},wm={exports:{}},km,cT;function L4(){if(cT)return km;cT=1;var r,e,t,s,n,i,a={}.toString;r=l(function(o,u){return o.apply(null,u)}),e=function(o){return l(o)},t=l(function(o,u,c){return o(c,u)}),s=function(o){return function(u){return function(){return o(u(u)).apply(null,arguments)}}(function(u){return function(){return o(u(u)).apply(null,arguments)}})},n=l(function(o,u,c,p){return o(u(c),u(p))}),i=function(o){var u;return u={},function(){var c,p,h,f,d,m;for(p=[],h=0,f=arguments.length;h1?function(){var f=h?h.concat():[];return c=this,f.push.apply(f,arguments)=0;--de)Ce=ie[de],J=Z(Ce,J);return J}),O=ne(function(Z,J){return C(Z,J[J.length-1],J.slice(0,-1))}),w=ne(function(Z,J){var ie,de,Ce;for(ie=[],de=J;(Ce=Z(de))!=null;)ie.push(Ce[0]),de=Ce[1];return ie}),E=function(Z){return[].concat.apply([],Z)},k=ne(function(Z,J){var ie;return[].concat.apply([],function(){var de,Ce,L,ue=[];for(de=0,L=(Ce=J).length;deie?1:JZ(de)?1:Z(ie)J&&(J=L);return J},$=function(Z){var J,ie,de,Ce,L;for(J=Z[0],ie=0,Ce=(de=Z.slice(1)).length;ieZ(ie)&&(ie=ue);return ie}),K=ne(function(Z,J){var ie,de,Ce,L,ue;for(ie=J[0],de=0,L=(Ce=J.slice(1)).length;de1?function(){var L=Ce?Ce.concat():[];return ie=this,L.push.apply(L,arguments)>>0;++ie1?function(){var S=v?v.concat():[];return y=this,S.push.apply(S,arguments)thrown`,l=null}),`${o};`}},gm}var ym,rT;function IO(){if(rT)return ym;rT=1;let r=QB();function e(s){return s.reachable}class t{constructor(n,i,a){this.id=n,this.nextSegments=[],this.prevSegments=i.filter(e),this.allNextSegments=[],this.allPrevSegments=i,this.reachable=a,Object.defineProperty(this,"internal",{value:{used:!1,loopedPrevSegments:[]}}),r.enabled&&(this.internal.nodes=[])}isLoopedPrevSegment(n){return this.internal.loopedPrevSegments.includes(n)}static newRoot(n){return new t(n,[],!0)}static newNext(n,i){return new t(n,t.flattenUnusedSegments(i),i.some(e))}static newUnreachable(n,i){let a=new t(n,t.flattenUnusedSegments(i),!1);return t.markUsed(a),a}static newDisconnected(n,i){return new t(n,[],i.some(e))}static markUsed(n){if(n.internal.used)return;n.internal.used=!0;let i;if(n.reachable)for(i=0;i=0?l:c.length+l,h=o>=0?o:c.length+o,f=[];for(let d=0;da.count;){let u=[];for(let c=0,p=Math.floor(o.length/2);c0&&l.some(t)}makeNext(l,o){return s(this,l,o,e.newNext)}makeUnreachable(l,o){return s(this,l,o,e.newUnreachable)}makeDisconnected(l,o){return s(this,l,o,e.newDisconnected)}add(l){r(l.length>=this.count,`${l.length} >= ${this.count}`),this.segmentsList.push(n(this,l))}replaceHead(l){r(l.length>=this.count,`${l.length} >= ${this.count}`),this.segmentsList.splice(-1,1,n(this,l))}addAll(l){r(l.count===this.count),this.segmentsList.push(...l.segmentsList)}clear(){this.segmentsList=[]}static newRoot(l){let o=new i(l,null,1);return o.add([e.newRoot(l.next())]),o}static newEmpty(l,o){return new i(l.idGenerator,l,(o?2:1)*l.count)}}return bm=i,bm}var vm,sT;function B4(){if(sT)return vm;sT=1;let r=IO(),e=F4();class t{constructor(E,k,A,D){this.upper=E,this.breakable=k,this.label=A,this.brokenForkContext=e.newEmpty(D)}}class s{constructor(E){this.upper=E,this.choiceContextCount=0}}class n{constructor(E,k,A,D){this.upper=E,this.kind=k,this.isForkingAsResult=A,this.trueForkContext=e.newEmpty(D),this.falseForkContext=e.newEmpty(D),this.nullishForkContext=e.newEmpty(D),this.processed=!1}}class i{constructor(E,k,A,D){this.upper=E,this.type=k,this.label=A,this.brokenForkContext=D.brokenForkContext}}class a extends i{constructor(E,k,A){super(E,"WhileStatement",k,A),this.test=void 0,this.continueDestSegments=null}}class l extends i{constructor(E,k,A,D){super(E,"DoWhileStatement",k,A),this.test=void 0,this.entrySegments=null,this.continueForkContext=e.newEmpty(D)}}class o extends i{constructor(E,k,A){super(E,"ForStatement",k,A),this.test=void 0,this.endOfInitSegments=null,this.testSegments=null,this.endOfTestSegments=null,this.updateSegments=null,this.endOfUpdateSegments=null,this.continueDestSegments=null}}class u extends i{constructor(E,k,A){super(E,"ForInStatement",k,A),this.prevSegments=null,this.leftSegments=null,this.endOfLeftSegments=null,this.continueDestSegments=null}}class c extends i{constructor(E,k,A){super(E,"ForOfStatement",k,A),this.prevSegments=null,this.leftSegments=null,this.endOfLeftSegments=null,this.continueDestSegments=null}}class p{constructor(E,k){this.upper=E,this.hasCase=k,this.defaultSegments=null,this.defaultBodySegments=null,this.foundEmptyDefault=!1,this.lastIsDefault=!1,this.forkCount=0}}class h{constructor(E,k,A){this.upper=E,this.hasFinalizer=k,this.position="try",this.returnedForkContext=k?e.newEmpty(A):null,this.thrownForkContext=e.newEmpty(A),this.lastOfTryIsReachable=!1,this.lastOfCatchIsReachable=!1}}function f(C,E,k,A){for(let D=0;D=2&&r.markPrevSegmentAsLooped(R,T),C.notifyLooped(T,R)}}function w(C,E,k){E.processed||(E.trueForkContext.add(k),E.falseForkContext.add(k),E.nullishForkContext.add(k)),C.test!==!0&&C.brokenForkContext.addAll(E.falseForkContext),C.endOfTestSegments=E.trueForkContext.makeNext(0,-1)}class O{constructor(E,k){this.idGenerator=E,this.notifyLooped=k,this.forkContext=e.newRoot(E),this.choiceContext=null,this.switchContext=null,this.tryContext=null,this.loopContext=null,this.breakContext=null,this.chainContext=null,this.currentSegments=[],this.initialSegment=this.forkContext.head[0],this.finalSegments=[],this.returnedForkContext=[],this.thrownForkContext=[];let A=this.finalSegments,D=this.returnedForkContext,_=this.thrownForkContext;D.add=f.bind(null,D,_,A),_.add=f.bind(null,_,D,A)}get headSegments(){return this.forkContext.head}get parentForkContext(){let E=this.forkContext;return E&&E.upper}pushForkContext(E){return this.forkContext=e.newEmpty(this.forkContext,E),this.forkContext}popForkContext(){let E=this.forkContext;return this.forkContext=E.upper,this.forkContext.replaceHead(E.makeNext(0,-1)),E}forkPath(){this.forkContext.add(this.parentForkContext.makeNext(-1,-1))}forkBypassPath(){this.forkContext.add(this.parentForkContext.head)}pushChoiceContext(E,k){this.choiceContext=new n(this.choiceContext,E,k,this.forkContext)}popChoiceContext(){let E=this.choiceContext,k=this.forkContext,A=k.head;switch(this.choiceContext=E.upper,E.kind){case"&&":case"||":case"??":if(E.processed||(E.trueForkContext.add(A),E.falseForkContext.add(A),E.nullishForkContext.add(A)),E.isForkingAsResult){let _=this.choiceContext;return _.trueForkContext.addAll(E.trueForkContext),_.falseForkContext.addAll(E.falseForkContext),_.nullishForkContext.addAll(E.nullishForkContext),_.processed=!0,E}break;case"test":E.processed?(E.falseForkContext.clear(),E.falseForkContext.add(A)):(E.trueForkContext.clear(),E.trueForkContext.add(A));break;case"loop":return E;default:throw new Error("unreachable")}let D=E.trueForkContext;return D.addAll(E.falseForkContext),k.replaceHead(D.makeNext(0,-1)),E}makeLogicalRight(){let E=this.choiceContext,k=this.forkContext;if(E.processed){let A;switch(E.kind){case"&&":A=E.trueForkContext;break;case"||":A=E.falseForkContext;break;case"??":A=E.nullishForkContext;break;default:throw new Error("unreachable")}k.replaceHead(A.makeNext(0,-1)),A.clear(),E.processed=!1}else{switch(E.kind){case"&&":E.falseForkContext.add(k.head),E.nullishForkContext.add(k.head);break;case"||":E.trueForkContext.add(k.head);break;case"??":E.trueForkContext.add(k.head),E.falseForkContext.add(k.head);break;default:throw new Error("unreachable")}k.replaceHead(k.makeNext(-1,-1))}}makeIfConsequent(){let E=this.choiceContext,k=this.forkContext;E.processed||(E.trueForkContext.add(k.head),E.falseForkContext.add(k.head),E.nullishForkContext.add(k.head)),E.processed=!1,k.replaceHead(E.trueForkContext.makeNext(0,-1))}makeIfAlternate(){let E=this.choiceContext,k=this.forkContext;E.trueForkContext.clear(),E.trueForkContext.add(k.head),E.processed=!0,k.replaceHead(E.falseForkContext.makeNext(0,-1))}pushChainContext(){this.chainContext=new s(this.chainContext)}popChainContext(){let E=this.chainContext;this.chainContext=E.upper;for(let k=E.choiceContextCount;k>0;--k)this.popChoiceContext()}makeOptionalNode(){this.chainContext&&(this.chainContext.choiceContextCount+=1,this.pushChoiceContext("??",!1))}makeOptionalRight(){this.chainContext&&this.makeLogicalRight()}pushSwitchContext(E,k){this.switchContext=new p(this.switchContext,E),this.pushBreakContext(!0,k)}popSwitchContext(){let E=this.switchContext;this.switchContext=E.upper;let k=this.forkContext,A=this.popBreakContext().brokenForkContext;if(E.forkCount===0){A.empty||(A.add(k.makeNext(-1,-1)),k.replaceHead(A.makeNext(0,-1)));return}let D=k.head;this.forkBypassPath();let _=k.head;A.add(D),E.lastIsDefault||(E.defaultBodySegments?(x(E.defaultSegments,E.defaultBodySegments),S(this,_,E.defaultBodySegments)):A.add(_));for(let B=0;B0&&E[0].reachable&&this.returnedForkContext.add(E)}}return vm=O,vm}var xm,iT;function UB(){if(iT)return xm;iT=1;class r{constructor(t){this.prefix=String(t),this.n=0}next(){return this.n=1+this.n|0,this.n<0&&(this.n=1),this.prefix+this.n}}return xm=r,xm}var Om,aT;function N4(){if(aT)return Om;aT=1;let r=B4(),e=UB();class t{constructor({id:n,origin:i,upper:a,onLooped:l}){this.id=n,this.origin=i,this.upper=a,this.childCodePaths=[],Object.defineProperty(this,"internal",{value:new r(new e(`${n}_`),l)}),a&&a.childCodePaths.push(this)}static getState(n){return n.internal}get initialSegment(){return this.internal.initialSegment}get finalSegments(){return this.internal.finalSegments}get returnedSegments(){return this.internal.returnedForkContext}get thrownSegments(){return this.internal.thrownForkContext}traverseSegments(n,i){let a,l;typeof n=="function"?(l=n,a={}):(a=n||{},l=i);let o=a.first||this.internal.initialSegment,u=a.last,c,p,h,f=null,d=new Set,m=[[o,0]],g=new Set,y=!1,v={skip(){g.add(f)},break(){y=!0}};function x(w){return d.has(w)||f.isLoopedPrevSegment(w)}function S(w){return g.has(w)||f.isLoopedPrevSegment(w)}for(;m.length>0;){if(c=m.at(-1),f=c[0],p=c[1],p===0){if(d.has(f)){m.pop();continue}if(f!==o&&f.prevSegments.length>0&&!f.prevSegments.every(x)){m.pop();continue}if(d.add(f),g.size>0&&f.prevSegments.length>0&&f.prevSegments.every(S))g.add(f);else if(l.call(this,f,v),f===u&&v.skip(),y)break}h=f.nextSegments.length-1,p=1&&k.arguments[0]===O&&E.makeOptionalRight();break;case"MemberExpression":k.optional===!0&&k.property===O&&E.makeOptionalRight();break;case"LogicalExpression":k.right===O&&o(k.operator)&&E.makeLogicalRight();break;case"AssignmentExpression":k.right===O&&u(k.operator)&&E.makeLogicalRight();break;case"ConditionalExpression":case"IfStatement":k.consequent===O?E.makeIfConsequent():k.alternate===O&&E.makeIfAlternate();break;case"SwitchCase":k.consequent[0]===O&&E.makeSwitchCaseBody(!1,!k.test);break;case"TryStatement":k.handler===O?E.makeCatchBlock():k.finalizer===O&&E.makeFinallyBlock();break;case"WhileStatement":k.test===O?E.makeWhileTest(h(O)):(r(k.body===O),E.makeWhileBody());break;case"DoWhileStatement":k.body===O?E.makeDoWhileBody():(r(k.test===O),E.makeDoWhileTest(h(O)));break;case"ForStatement":k.test===O?E.makeForTest(h(O)):k.update===O?E.makeForUpdate():k.body===O&&E.makeForBody();break;case"ForInStatement":case"ForOfStatement":k.left===O?E.makeForInOfLeft():k.right===O?E.makeForInOfRight():(r(k.body===O),E.makeForInOfBody());break;case"AssignmentPattern":k.right===O&&(E.pushForkContext(),E.forkBypassPath(),E.forkPath());break}}function y(w,O){let C=w.codePath,E=C&&t.getState(C),k=O.parent;function A(D){C&&(d(w,O),i.dumpState(O,E,!1)),C=w.codePath=new t({id:w.idGenerator.next(),origin:D,upper:C,onLooped:w.onLooped}),E=t.getState(C),i.dump(`onCodePathStart ${C.id}`),w.emitter.emit("onCodePathStart",C,O)}switch(l(O)&&A("class-field-initializer"),O.type){case"Program":A("program");break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":A("function");break;case"StaticBlock":A("class-static-block");break;case"ChainExpression":E.pushChainContext();break;case"CallExpression":O.optional===!0&&E.makeOptionalNode();break;case"MemberExpression":O.optional===!0&&E.makeOptionalNode();break;case"LogicalExpression":o(O.operator)&&E.pushChoiceContext(O.operator,p(O));break;case"AssignmentExpression":u(O.operator)&&E.pushChoiceContext(O.operator.slice(0,-1),p(O));break;case"ConditionalExpression":case"IfStatement":E.pushChoiceContext("test",!1);break;case"SwitchStatement":E.pushSwitchContext(O.cases.some(a),c(O));break;case"TryStatement":E.pushTryContext(!!O.finalizer);break;case"SwitchCase":k.discriminant!==O&&k.cases[0]!==O&&E.forkPath();break;case"WhileStatement":case"DoWhileStatement":case"ForStatement":case"ForInStatement":case"ForOfStatement":E.pushLoopContext(O.type,c(O));break;case"LabeledStatement":e.test(O.body.type)||E.pushBreakContext(!1,O.label.name);break}d(w,O),i.dumpState(O,E,!1)}function v(w,O){let C=w.codePath,E=t.getState(C),k=!1;switch(O.type){case"ChainExpression":E.popChainContext();break;case"IfStatement":case"ConditionalExpression":E.popChoiceContext();break;case"LogicalExpression":o(O.operator)&&E.popChoiceContext();break;case"AssignmentExpression":u(O.operator)&&E.popChoiceContext();break;case"SwitchStatement":E.popSwitchContext();break;case"SwitchCase":O.consequent.length===0&&E.makeSwitchCaseBody(!0,!O.test),E.forkContext.reachable&&(k=!0);break;case"TryStatement":E.popTryContext();break;case"BreakStatement":d(w,O),E.makeBreak(O.label&&O.label.name),k=!0;break;case"ContinueStatement":d(w,O),E.makeContinue(O.label&&O.label.name),k=!0;break;case"ReturnStatement":d(w,O),E.makeReturn(),k=!0;break;case"ThrowStatement":d(w,O),E.makeThrow(),k=!0;break;case"Identifier":f(O)&&(E.makeFirstThrowablePathInTryBlock(),k=!0);break;case"CallExpression":case"ImportExpression":case"MemberExpression":case"NewExpression":case"YieldExpression":E.makeFirstThrowablePathInTryBlock();break;case"WhileStatement":case"DoWhileStatement":case"ForStatement":case"ForInStatement":case"ForOfStatement":E.popLoopContext();break;case"AssignmentPattern":E.popForkContext();break;case"LabeledStatement":e.test(O.body.type)||E.popBreakContext();break}k||d(w,O),i.dumpState(O,E,!0)}function x(w,O){function C(){let E=w.codePath;t.getState(E).makeFinal(),m(w,O),i.dump(`onCodePathEnd ${E.id}`),w.emitter.emit("onCodePathEnd",E,O),i.dumpDot(E),E=w.codePath=w.codePath.upper,E&&i.dumpState(O,t.getState(E),!0)}switch(O.type){case"Program":case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"StaticBlock":{C();break}case"CallExpression":O.optional===!0&&O.arguments.length===0&&t.getState(w.codePath).makeOptionalRight();break}l(O)&&C()}class S{constructor(O){this.original=O,this.emitter=O.emitter,this.codePath=null,this.idGenerator=new n("s"),this.currentNode=null,this.onLooped=this.onLooped.bind(this)}enterNode(O){this.currentNode=O,O.parent&&g(this,O),y(this,O),this.original.enterNode(O),this.currentNode=null}leaveNode(O){this.currentNode=O,v(this,O),this.original.leaveNode(O),x(this,O),this.currentNode=null}onLooped(O,C){O.reachable&&C.reachable&&(i.dump(`onCodePathSegmentLoop ${O.id} -> ${C.id}`),this.emitter.emit("onCodePathSegmentLoop",O,C,this.currentNode))}}return Sm=S,Sm}var Em,lT;function VB(){return lT||(lT=1,Em=()=>{let r=Object.create(null);return Object.freeze({on(e,t){e in r?r[e].push(t):r[e]=[t]},emit(e,...t){e in r&&r[e].forEach(s=>s(...t))},eventNames(){return Object.keys(r)}})}),Em}var wm={exports:{}},Cm={exports:{}},km,uT;function $4(){if(uT)return km;uT=1;var r,e,t,s,n,i,a={}.toString;r=l(function(o,u){return o.apply(null,u)}),e=function(o){return l(o)},t=l(function(o,u,c){return o(c,u)}),s=function(o){return function(u){return function(){return o(u(u)).apply(null,arguments)}}(function(u){return function(){return o(u(u)).apply(null,arguments)}})},n=l(function(o,u,c,p){return o(u(c),u(p))}),i=function(o){var u;return u={},function(){var c,p,h,f,d,m;for(p=[],h=0,f=arguments.length;h1?function(){var f=h?h.concat():[];return c=this,f.push.apply(f,arguments)=0;--de)we=ie[de],J=z(we,J);return J}),O=ne(function(z,J){return w(z,J[J.length-1],J.slice(0,-1))}),C=ne(function(z,J){var ie,de,we;for(ie=[],de=J;(we=z(de))!=null;)ie.push(we[0]),de=we[1];return ie}),E=function(z){return[].concat.apply([],z)},k=ne(function(z,J){var ie;return[].concat.apply([],function(){var de,we,L,ue=[];for(de=0,L=(we=J).length;deie?1:Jz(de)?1:z(ie)J&&(J=L);return J},$=function(z){var J,ie,de,we,L;for(J=z[0],ie=0,we=(de=z.slice(1)).length;iez(ie)&&(ie=ue);return ie}),K=ne(function(z,J){var ie,de,we,L,ue;for(ie=J[0],de=0,L=(we=J.slice(1)).length;de1?function(){var L=we?we.concat():[];return ie=this,L.push.apply(L,arguments)>>0;++ie1?function(){var S=x?x.concat():[];return y=this,S.push.apply(S,arguments)1?y:y.toLowerCase())}).replace(/^([A-Z]+)/,function(m,g){return g.length>1?g+"-":g.toLowerCase()})},Tm={split:r,join:e,lines:t,unlines:s,words:n,unwords:i,chars:a,unchars:l,reverse:o,repeat:u,capitalize:c,camelize:p,dasherize:h};function f(d,m){var g,y=function(b){return d.length>1?function(){var v=b?b.concat():[];return g=this,v.push.apply(v,arguments)I?Q:I}),e=j(function(Q,I){return Q0?1:0},i=j(function(Q,I){return~~(Q/I)}),a=j(function(Q,I){return Q%I}),l=j(function(Q,I){return Math.floor(Q/I)}),o=j(function(Q,I){var N;return(Q%(N=I)+N)%N}),u=function(Q){return 1/Q},c=Math.PI,p=c*2,h=Math.exp,f=Math.sqrt,d=Math.log,m=j(function(Q,I){return Math.pow(Q,I)}),g=Math.sin,y=Math.tan,b=Math.cos,v=Math.asin,S=Math.acos,C=Math.atan,O=j(function(Q,I){return Math.atan2(Q,I)}),w=function(Q){return~~Q},E=Math.round,k=Math.ceil,A=Math.floor,D=function(Q){return Q!==Q},_=function(Q){return Q%2===0},B=function(Q){return Q%2!==0},T=j(function(Q,I){var N;for(Q=Math.abs(Q),I=Math.abs(I);I!==0;)N=Q%I,Q=I,I=N;return Q}),F=j(function(Q,I){return Math.abs(Math.floor(Q/T(Q,I)*I))}),Dm={max:r,min:e,negate:t,abs:s,signum:n,quot:i,rem:a,div:l,mod:o,recip:u,pi:c,tau:p,exp:h,sqrt:f,ln:d,pow:m,sin:g,tan:y,cos:b,acos:S,asin:v,atan:C,atan2:O,truncate:w,round:E,ceiling:k,floor:A,isItNaN:D,even:_,odd:B,gcd:T,lcm:F};function j(Q,I){var N,R=function(U){return Q.length>1?function(){var V=U?U.concat():[];return N=this,V.push.apply(V,arguments)1?function(){var g=m?m.concat():[];return f=this,g.push.apply(g,arguments)|"+r.source+"|\\S","g"),Rm.exports=function(d){var m,g;if(!d.length)throw new Error("No type specified.");if(m=d.match(e)||[],f("->",m))throw new Error("Function types are not supported. To validate that something is a function, you may use 'Function'.");try{return h(m)}catch(y){throw g=y,new Error(g.message+" - Remaining tokens: "+JSON.stringify(m)+" - Initial input: '"+d+"'")}};function f(d,m){for(var g=-1,y=m.length>>>0;++g{if(!u)return;let[c,p=null]=u.split(":");l[c]={value:p,comment:a}}),l}parseJsonConfig(i,a){s("Parsing JSON config");try{let o=r.parse("Object",i)||{};if(e.isEverySeverityValid(o))return{success:!0,config:o}}catch{s("Levn parsing failed; falling back to manual parsing.")}let l=i.replace(/([-a-zA-Z0-9/]+):/gu,'"$1":').replace(/(\]|[0-9])\s+(?=")/u,"$1,");try{return{success:!0,config:JSON.parse(`{${l}}`)}}catch(o){return s("Manual parsing failed."),{success:!1,error:{ruleId:null,fatal:!0,severity:2,message:`Failed to parse JSON from '${l}': ${o.message}`,line:a.start.line,column:a.start.column+1,nodeType:null}}}}parseListConfig(i){s("Parsing list config");let a={};return i.split(",").forEach(l=>{let o=l.trim().replace(/^(?['"]?)(?.*)\k$/us,"$");o&&(a[o]=!0)}),a}extractDirectiveComment(i){let a=/\s-{2,}\s/u.exec(i);if(!a)return{directivePart:i.trim(),justificationPart:""};let l=i.slice(0,a.index).trim(),o=i.slice(a.index+a[0].length).trim();return{directivePart:l,justificationPart:o}}parseDirective(i){let{directivePart:a}=this.extractDirectiveComment(i.value),l=t.exec(a),o=l[1],u=a.slice(l.index+o.length);return{directiveText:o,directiveValue:u}}},Nm}var Lm,ET;function z4(){if(ET)return Lm;ET=1;let{isCommentToken:r}=hr(),e=I4(),t=vc(),s=DO(),n=UB(),{directivesPattern:i}=Oc(),a=N4(),l=ZB(),o=GB(),u=IB(),c=new o,p=["onCodePathStart","onCodePathEnd","onCodePathSegmentStart","onCodePathSegmentEnd","onCodePathSegmentLoop","onUnreachableCodePathSegmentStart","onUnreachableCodePathSegmentEnd"];function h(A){if(!A.tokens)throw new Error("AST is missing the tokens array.");if(!A.comments)throw new Error("AST is missing the comments array.");if(!A.loc)throw new Error("AST is missing location information.");if(!A.range)throw new Error("AST is missing range information")}function f(A){switch(A){case 3:return n.es3;case 5:return n.es5;default:return A<2015?n[`es${A+2009}`]:n[`es${A}`]}}function d(A){return A.type==="ExportDefaultDeclaration"||A.type==="ExportNamedDeclaration"||A.type==="ExportAllDeclaration"||A.type==="ExportSpecifier"}function m(A,D){let _=[],B=0,T=0;for(;B=D.length||B=D.range[0]||D.range[0]<=A.range[0]&&D.range[1]>=A.range[0]}function b(A,D,_,B){if(y(D,_))return!1;let[T,F]=D.range[1]<=_.range[0]?[D,_]:[_,D],j=A.getLastToken(T)||T,Q=A.getFirstToken(F)||F,I=j;for(;I!==Q;){let N=A.getTokenAfter(I,{includeComments:!0});if(I.range[1]!==N.range[0]||B&&N!==Q&&N.type==="JSXText"&&/\s/u.test(N.value))return!0;I=N}return!1}function v(A,D={},_={}){for(let B of new Set([...Object.keys(D),...Object.keys(_)])){let T=D[B]===void 0?void 0:g(D[B]),j=_[B]&&_[B].value||T,Q=_[B]&&_[B].comments;if(j==="off")continue;let I=A.set.get(B);I||(I=new u.Variable(B,A),A.variables.push(I),A.set.set(B,I)),I.eslintImplicitGlobalSetting=T,I.eslintExplicitGlobal=Q!==void 0,I.eslintExplicitGlobalComments=Q,I.writeable=j==="writable"}A.through=A.through.filter(B=>{let T=B.identifier.name,F=A.set.get(T);return F?(B.resolved=F,F.references.push(B),!1):!0})}function S(A,D){Object.keys(D).forEach(_=>{let B=A.set.get(_);B&&(B.eslintUsed=!0,B.eslintExported=!0)})}let C={visit:1,call:2};class O{type;kind;target;phase;args;constructor({type:D,target:_,phase:B,args:T}){this.type=D,this.kind=C[D],this.target=_,this.phase=B,this.args=T}}class w{type;node;value;justification;constructor({type:D,node:_,value:B,justification:T}){this.type=D,this.node=_,this.value=B,this.justification=T}}let E=Symbol("caches");class k extends e{#e;constructor(D,_){let B,T,F,j,Q;typeof D=="string"?(B=D,T=_):typeof D=="object"&&D!==null&&(B=D.text,T=D.ast,F=D.parserServices,j=D.scopeManager,Q=D.visitorKeys),h(T),super(T.tokens,T.comments),this[E]=new Map([["scopes",new WeakMap],["vars",new Map],["configNodes",void 0]]),this.hasBOM=B.charCodeAt(0)===65279,this.text=this.hasBOM?B.slice(1):B,this.ast=T,this.parserServices=F||{},this.scopeManager=j||null,this.visitorKeys=Q||s.DEFAULT_VISITOR_KEYS;let I=this.text.match(t.shebangPattern);I&&T.comments.length&&T.comments[0].value===I[1]&&(T.comments[0].type="Shebang"),this.tokensAndComments=m(T.tokens,T.comments),this.lines=[],this.lineStartIndices=[0];let R=t.createGlobalLinebreakMatcher(),U;for(;U=R.exec(this.text);)this.lines.push(this.text.slice(this.lineStartIndices.at(-1),U.index)),this.lineStartIndices.push(U.index+U[0].length);this.lines.push(this.text.slice(this.lineStartIndices.at(-1))),Object.freeze(this),Object.freeze(this.lines)}static splitLines(D){return D.split(t.createGlobalLinebreakMatcher())}getText(D,_,B){return D?this.text.slice(Math.max(D.range[0]-(_||0),0),D.range[1]+(B||0)):this.text}getLines(){return this.lines}getAllComments(){return this.ast.comments}getJSDocComment(D){let _=T=>{let F=this.getTokenBefore(T,{includeComments:!0});return F&&r(F)&&F.type==="Block"&&F.value.charAt(0)==="*"&&T.loc.start.line-F.loc.end.line<=1?F:null},B=D.parent;switch(D.type){case"ClassDeclaration":case"FunctionDeclaration":return _(d(B)?B:D);case"ClassExpression":return _(B.parent);case"ArrowFunctionExpression":case"FunctionExpression":if(B.type!=="CallExpression"&&B.type!=="NewExpression"){for(;!this.getCommentsBefore(B).length&&!/Function/u.test(B.type)&&B.type!=="MethodDefinition"&&B.type!=="Property"&&(B=B.parent,!!B););if(B&&B.type!=="FunctionDeclaration"&&B.type!=="Program")return _(B)}return _(D);default:return null}}getNodeByRangeIndex(D){let _=null;return s.traverse(this.ast,{visitorKeys:this.visitorKeys,enter(B){B.range[0]<=D&&Dthis.text.length)throw new RangeError(`Index out of range (requested index ${D}, but source text has length ${this.text.length}).`);if(D===this.text.length)return{line:this.lines.length,column:this.lines.at(-1).length};let _=D>=this.lineStartIndices.at(-1)?this.lineStartIndices.length:this.lineStartIndices.findIndex(B=>Dthis.lineStartIndices.length)throw new RangeError(`Line number out of range (line ${D.line} requested, but only ${this.lineStartIndices.length} lines present).`);let _=this.lineStartIndices[D.line-1],B=D.line===this.lineStartIndices.length?this.text.length:this.lineStartIndices[D.line],T=_+D.column;if(D.line===this.lineStartIndices.length&&T>B||D.line=B)throw new RangeError(`Column number out of range (column ${D.column} requested, but the length of line ${D.line} is ${B-_}).`);return T}getScope(D){if(!D)throw new TypeError("Missing required argument: node.");let _=this[E].get("scopes"),B=_.get(D);if(B)return B;let T=D.type!=="Program";for(let F=D;F;F=F.parent){let j=this.scopeManager.acquire(F,T);if(j)return j.type==="function-expression-name"?(_.set(D,j.childScopes[0]),j.childScopes[0]):(_.set(D,j),j)}return _.set(D,this.scopeManager.scopes[0]),this.scopeManager.scopes[0]}getDeclaredVariables(D){return this.scopeManager.getDeclaredVariables(D)}getAncestors(D){if(!D)throw new TypeError("Missing required argument: node.");let _=[];for(let B=D.parent;B;B=B.parent)_.push(B);return _.reverse()}markVariableAsUsed(D,_=this.ast){let B=this.getScope(_),T=B;B.type==="global"&&B.childScopes.length>0&&B.childScopes[0].block===this.ast&&(T=B.childScopes[0]);for(let F=T;F;F=F.upper){let j=F.variables.find(Q=>Q.name===D);if(j)return j.eslintUsed=!0,!0}return!1}getInlineConfigNodes(){let D=this[E].get("configNodes");return D||(D=this.ast.comments.filter(_=>{if(_.type==="Shebang")return!1;let{directivePart:B}=c.extractDirectiveComment(_.value),T=i.exec(B);return T?_.type!=="Line"||!!/^eslint-disable-(next-)?line$/u.test(T[1]):!1}),this[E].set("configNodes",D),D)}getDisableDirectives(){let D=this[E].get("disableDirectives");if(D)return D;let _=[],B=[];this.getInlineConfigNodes().forEach(F=>{let{directivePart:j,justificationPart:Q}=c.extractDirectiveComment(F.value),I=i.exec(j);if(!I)return;let N=I[1],R=/^eslint-disable-(next-)?line$/u.test(N);if(F.type==="Line"&&!R)return;if(N==="eslint-disable-line"&&F.loc.start.line!==F.loc.end.line){let V=`${N} comment should not span multiple lines.`;_.push({ruleId:null,message:V,loc:F.loc});return}let U=j.slice(I.index+N.length);switch(N){case"eslint-disable":case"eslint-enable":case"eslint-disable-next-line":case"eslint-disable-line":{let V=N.slice(7);B.push(new w({type:V,node:F,value:U,justification:Q}))}}});let T={problems:_,directives:B};return this[E].set("disableDirectives",T),T}applyLanguageOptions(D){let _=Object.assign({},f(D.ecmaVersion),D.sourceType==="commonjs"?n.commonjs:void 0,D.globals);this[E].get("vars").set("configGlobals",_)}applyInlineConfig(){let D=[],_=[],B={},T=Object.create(null);this.getInlineConfigNodes().forEach(j=>{let{directiveText:Q,directiveValue:I}=c.parseDirective(j);switch(Q){case"exported":Object.assign(B,c.parseListConfig(I,j));break;case"globals":case"global":for(let[N,{value:R}]of Object.entries(c.parseStringConfig(I,j))){let U;try{U=g(R)}catch(V){D.push({ruleId:null,loc:j.loc,message:V.message});continue}T[N]?(T[N].comments.push(j),T[N].value=U):T[N]={comments:[j],value:U}}break;case"eslint":{let N=c.parseJsonConfig(I,j.loc);N.success?_.push({config:{rules:N.config},node:j}):D.push(N.error);break}}});let F=this[E].get("vars");return F.set("inlineGlobals",T),F.set("exportedVariables",B),{configs:_,problems:D}}finalize(){let D=this[E].get("vars"),_=this.scopeManager.scopes[0],B=D.get("configGlobals"),T=D.get("inlineGlobals"),F=D.get("exportedVariables");v(_,B,T),F&&S(_,F)}traverse(){if(this.#e)return this.#e;let D=this.#e=[],_=l(),B={enterNode(F){D.push(new O({type:"visit",target:F,phase:1,args:[F,F.parent]}))},leaveNode(F){D.push(new O({type:"visit",target:F,phase:2,args:[F,F.parent]}))},emitter:_};return this.ast.type==="Program"&&(B=new a(B),p.forEach(F=>{_.on(F,(...j)=>{D.push(new O({type:"call",target:F,args:j}))})})),s.traverse(this.ast,{enter(F,j){F.parent=j,B.enterNode(F)},leave(F){B.leaveNode(F)},visitorKeys:this.visitorKeys}),D}}return Lm=k,Lm}var $m,CT;function X4(){return CT||(CT=1,$m={SourceCode:z4()}),$m}var Mm,wT;function Sc(){return wT||(wT=1,Mm=r=>{if(typeof r!="string")throw new TypeError("Expected a string");return r.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}),Mm}var jm,kT;function G4(){if(kT)return jm;kT=1;let r=Sc(),{Legacy:{ConfigOps:e}}=TO();function t(u,c){return u.line-c.line||u.column-c.column}function s(u){let c=new Map;for(let p of u){let{unprocessedDirective:{parentDirective:h}}=p;c.has(h)?c.get(h).push(p):c.set(h,[p])}return[...c.values()]}function n(u,c){let p=c.range[0]+2,h=/^\s*\S+\s+/u.exec(c.value)[0].length,f=c.value.slice(h).split(/\s-{2,}\s/u)[0].trimEnd();return u.map(d=>{let{ruleId:m}=d,y=new RegExp(String.raw`(?:^|\s*,\s*)(?['"]?)${r(m)}\k(?:\s*,\s*|$)`,"u").exec(f),b=y[0],v=h+y.index,S=v+b.length,C=b.indexOf(","),O=b.lastIndexOf(","),w,E;return C!==O?(w=v+C,E=v+O):(w=v,E=S),{description:`'${m}'`,fix:{range:[p+w,p+E],text:""},unprocessedDirective:d.unprocessedDirective}})}function i(u,c){let{range:p}=c,h=u.filter(f=>f.ruleId).map(f=>`'${f.ruleId}'`);return{description:h.length<=2?h.join(" or "):`${h.slice(0,h.length-1).join(", ")}, or ${h.at(-1)}`,fix:{range:p,text:" "},unprocessedDirective:u[0].unprocessedDirective}}function a(u){return s(u).flatMap(p=>{let{parentDirective:h}=p[0].unprocessedDirective,f=new Set(h.ruleIds);for(let d of p)f.delete(d.ruleId);return f.size?n(p,h.node):[i(p,h.node)]})}function l(u){let c=new Map,p=new Set;for(let h=u.length-1;h>=0;h--){let f=u[h];if(f.type==="disable"){if(c.size===0)continue;if(f.ruleId===null){for(let d of c.values())p.add(d);c.clear()}else{let d=c.get(f.ruleId);if(d)p.add(d);else{let m=c.get(null);m&&p.add(m)}}}else f.type==="enable"&&(f.ruleId===null?(c.clear(),c.set(null,f)):c.set(f.ruleId,f))}return p}function o(u){let c=[],p=new Set;for(let g of u.problems){let y=[],b=0;for(;b0){let v=y.map(S=>({kind:"directive",justification:S.unprocessedDirective.justification}));g.suppressions?g.suppressions=g.suppressions.concat(v):(g.suppressions=v,p.add(y.at(-1)))}c.push(g)}let h=u.directives.filter(g=>g.type==="disable"&&!p.has(g)&&!u.rulesToIgnore.has(g.ruleId)),f=new Set(u.directives.filter(g=>g.unprocessedDirective.type==="enable"&&!u.rulesToIgnore.has(g.ruleId)));if(f.size>0)for(let g of l(u.directives))f.delete(g);let m=a(h).concat(a(f)).map(({description:g,fix:y,unprocessedDirective:b})=>{let{parentDirective:v,type:S,line:C,column:O}=b,w;return S==="enable"?w=g?`Unused eslint-enable directive (no matching eslint-disable directives were found for ${g}).`:"Unused eslint-enable directive (no matching eslint-disable directives were found).":w=g?`Unused eslint-disable directive (no problems were reported from ${g}).`:"Unused eslint-disable directive (no problems were reported).",{ruleId:null,message:w,line:S==="disable-next-line"?v.node.loc.start.line:C,column:S==="disable-next-line"?v.node.loc.start.column+1:O,severity:u.reportUnusedDisableDirectives==="warn"?1:2,nodeType:null,...u.disableFixes?{}:{fix:y}}});return{problems:c,unusedDirectives:m}}return jm=({directives:u,disableFixes:c,problems:p,configuredRules:h,ruleFilter:f,reportUnusedDisableDirectives:d="off"})=>{let m=u.filter(S=>S.type==="disable"||S.type==="enable").map(S=>Object.assign({},S,{unprocessedDirective:S})).sort(t),g=u.flatMap(S=>{switch(S.type){case"disable":case"enable":return[];case"disable-line":return[{type:"disable",line:S.line,column:1,ruleId:S.ruleId,unprocessedDirective:S},{type:"enable",line:S.line+1,column:0,ruleId:S.ruleId,unprocessedDirective:S}];case"disable-next-line":return[{type:"disable",line:S.line+1,column:1,ruleId:S.ruleId,unprocessedDirective:S},{type:"enable",line:S.line+2,column:0,ruleId:S.ruleId,unprocessedDirective:S}];default:throw new TypeError(`Unrecognized directive type '${S.type}'`)}}).sort(t),y=h&&f?new Set(Object.keys(h).filter(S=>{let C=e.getRuleSeverity(h[S]);return C===0?!1:!f({severity:C,ruleId:S})})):new Set;y.size>0&&y.add(null);let b=o({problems:p,directives:m,disableFixes:c,reportUnusedDisableDirectives:d,rulesToIgnore:y}),v=o({problems:b.problems,directives:g,disableFixes:c,reportUnusedDisableDirectives:d,rulesToIgnore:y});return d!=="off"?v.problems.concat(b.unusedDirectives).concat(v.unusedDirectives).sort(t):v.problems},jm}function qo(r){return(qo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(r)}function RO(r,e){return function(t){if(Array.isArray(t))return t}(r)||function(t,s){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var i,a,l,o,u=[],c=!0,p=!1;try{if(l=(n=n.call(t)).next,s!==0)for(;!(c=(i=l.call(n)).done)&&(u.push(i.value),u.length!==s);c=!0);}catch(h){p=!0,a=h}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(p)throw a}}return u}}(r,e)||YB(r,e)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Y4(r){return function(e){if(Array.isArray(e))return tO(e)}(r)||function(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}(r)||YB(r)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function YB(r,e){if(r){if(typeof r=="string")return tO(r,e);var t=Object.prototype.toString.call(r).slice(8,-1);return t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set"?Array.from(r):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?tO(r,e):void 0}}function tO(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,s=new Array(e);t=0;--C)if(v[C].node===S)return!0;return!1}function y(v,S){return new f().traverse(v,S)}function b(v,S){var C;return C=function(O,w){var E,k,A,D;for(k=O.length,A=0;k;)w(O[D=A+(E=k>>>1)])?k=E:(A=D+1,k-=E+1);return A}(S,function(O){return O.range[0]>v.range[0]}),v.extendedRange=[v.range[0],v.range[1]],C!==S.length&&(v.extendedRange[1]=S[C].range[0]),(C-=1)>=0&&(v.extendedRange[0]=S[C].range[1]),v}return n={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ChainExpression:"ChainExpression",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ComprehensionBlock:"ComprehensionBlock",ComprehensionExpression:"ComprehensionExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DebuggerStatement:"DebuggerStatement",DirectiveStatement:"DirectiveStatement",DoWhileStatement:"DoWhileStatement",EmptyStatement:"EmptyStatement",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForInStatement:"ForInStatement",ForOfStatement:"ForOfStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",GeneratorExpression:"GeneratorExpression",Identifier:"Identifier",IfStatement:"IfStatement",ImportExpression:"ImportExpression",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",ModuleSpecifier:"ModuleSpecifier",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",PrivateIdentifier:"PrivateIdentifier",Program:"Program",Property:"Property",PropertyDefinition:"PropertyDefinition",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchStatement:"SwitchStatement",SwitchCase:"SwitchCase",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"},a={AssignmentExpression:["left","right"],AssignmentPattern:["left","right"],ArrayExpression:["elements"],ArrayPattern:["elements"],ArrowFunctionExpression:["params","body"],AwaitExpression:["argument"],BlockStatement:["body"],BinaryExpression:["left","right"],BreakStatement:["label"],CallExpression:["callee","arguments"],CatchClause:["param","body"],ChainExpression:["expression"],ClassBody:["body"],ClassDeclaration:["id","superClass","body"],ClassExpression:["id","superClass","body"],ComprehensionBlock:["left","right"],ComprehensionExpression:["blocks","filter","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DirectiveStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExportAllDeclaration:["source"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source"],ExportSpecifier:["exported","local"],ExpressionStatement:["expression"],ForStatement:["init","test","update","body"],ForInStatement:["left","right","body"],ForOfStatement:["left","right","body"],FunctionDeclaration:["id","params","body"],FunctionExpression:["id","params","body"],GeneratorExpression:["blocks","filter","body"],Identifier:[],IfStatement:["test","consequent","alternate"],ImportExpression:["source"],ImportDeclaration:["specifiers","source"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],Literal:[],LabeledStatement:["label","body"],LogicalExpression:["left","right"],MemberExpression:["object","property"],MetaProperty:["meta","property"],MethodDefinition:["key","value"],ModuleSpecifier:[],NewExpression:["callee","arguments"],ObjectExpression:["properties"],ObjectPattern:["properties"],PrivateIdentifier:[],Program:["body"],Property:["key","value"],PropertyDefinition:["key","value"],RestElement:["argument"],ReturnStatement:["argument"],SequenceExpression:["expressions"],SpreadElement:["argument"],Super:[],SwitchStatement:["discriminant","cases"],SwitchCase:["test","consequent"],TaggedTemplateExpression:["tag","quasi"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],YieldExpression:["argument"]},i={Break:l={},Skip:o={},Remove:u={}},p.prototype.replace=function(v){this.parent[this.key]=v},p.prototype.remove=function(){return Array.isArray(this.parent)?(this.parent.splice(this.key,1),!0):(this.replace(null),!1)},f.prototype.path=function(){var v,S,C,O,w;function E(k,A){if(Array.isArray(A))for(C=0,O=A.length;C=0;)if(F=E[D=T[_]]){if(Array.isArray(F)){for(B=F.length;(B-=1)>=0;)if(F[B]&&!g(O,F[B])){if(m(k,T[_]))w=new h(F[B],[D,B],"Property",null);else{if(!d(F[B]))continue;w=new h(F[B],[D,B],null,null)}C.push(w)}}else if(d(F)){if(g(O,F))continue;C.push(new h(F,D,null,null))}}}}else if(w=O.pop(),A=this.__execute(S.leave,w),this.__state===l||A===l)return},f.prototype.replace=function(v,S){var C,O,w,E,k,A,D,_,B,T,F,j,Q;function I(N){var R,U,V,ae;if(N.ref.remove()){for(U=N.ref.key,ae=N.ref.parent,R=C.length;R--;)if((V=C[R]).ref&&V.ref.parent===ae){if(V.ref.key=0;)if(T=w[Q=B[D]])if(Array.isArray(T)){for(_=T.length;(_-=1)>=0;)if(T[_]){if(m(E,B[D]))A=new h(T[_],[Q,_],"Property",new p(T,_));else{if(!d(T[_]))continue;A=new h(T[_],[Q,_],null,new p(T,_))}C.push(A)}}else d(T)&&C.push(new h(T,Q,null,new p(w,Q)))}}else if(A=O.pop(),(k=this.__execute(S.leave,A))!==void 0&&k!==l&&k!==o&&k!==u&&A.ref.replace(k),this.__state!==u&&k!==u||I(A),this.__state===l||k===l)return j.root;return j.root},s.Syntax=n,s.traverse=y,s.replace=function(v,S){return new f().replace(v,S)},s.attachComments=function(v,S,C){var O,w,E,k,A=[];if(!v.range)throw new Error("attachComments needs range information");if(!C.length){if(S.length){for(E=0,w=S.length;ED.range[0]);)_.extendedRange[1]===D.range[0]?(D.leadingComments||(D.leadingComments=[]),D.leadingComments.push(_),A.splice(k,1)):k+=1;return k===A.length?i.Break:A[k].extendedRange[0]>D.range[1]?i.Skip:void 0}}),k=0,y(v,{leave:function(D){for(var _;kD.range[1]?i.Skip:void 0}}),v},s.VisitorKeys=a,s.VisitorOption=i,s.Controller=f,s.cloneEnvironment=function(){return t({})},s})(e)}),H4=HB(function(r){r.exports&&(r.exports=function(){function e(t,s,n,i){this.message=t,this.expected=s,this.found=n,this.location=i,this.name="SyntaxError",typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,e)}return function(t,s){function n(){this.constructor=t}n.prototype=s.prototype,t.prototype=new n}(e,Error),e.buildMessage=function(t,s){var n={literal:function(o){return'"'+a(o.text)+'"'},class:function(o){var u,c="";for(u=0;u0){for(u=1,c=1;u<~+.]/,f=ne([" ","[","]",",","(",")",":","#","!","=",">","<","~","+","."],!0,!1),d=G(">",!1),m=G("~",!1),g=G("+",!1),y=G(",",!1),b=G("!",!1),v=G("*",!1),S=G("#",!1),C=G("[",!1),O=G("]",!1),w=/^[>","<","!"],!1,!1),k=G("=",!1),A=function(Oe){return(Oe||"")+"="},D=/^[><]/,_=ne([">","<"],!1,!1),B=G(".",!1),T=function(Oe,Ie,We){return{type:"attribute",name:Oe,operator:Ie,value:We}},F=G('"',!1),j=/^[^\\"]/,Q=ne(["\\",'"'],!0,!1),I=G("\\",!1),N={type:"any"},R=function(Oe,Ie){return Oe+Ie},U=function(Oe){return{type:"literal",value:(Ie=Oe.join(""),Ie.replace(/\\(.)/g,function(We,be){switch(be){case"b":return"\b";case"f":return"\f";case"n":return` -`;case"r":return"\r";case"t":return" ";case"v":return"\v";default:return be}}))};var Ie},V=G("'",!1),ae=/^[^\\']/,se=ne(["\\","'"],!0,!1),ve=/^[0-9]/,H=ne([["0","9"]],!1,!1),he=G("type(",!1),$=/^[^ )]/,pe=ne([" ",")"],!0,!1),K=G(")",!1),le=/^[imsu]/,xe=ne(["i","m","s","u"],!1,!1),Le=G("/",!1),qe=/^[^\/]/,rt=ne(["/"],!0,!1),ht=G(":not(",!1),pt=G(":matches(",!1),Et=G(":has(",!1),X=G(":first-child",!1),we=G(":last-child",!1),Ve=G(":nth-child(",!1),et=G(":nth-last-child(",!1),it=G(":",!1),st=G("statement",!0),Ct=G("expression",!0),bt=G("declaration",!0),Dt=G("function",!0),_t=G("pattern",!0),W=0,vt=[{line:1,column:1}],Ye=0,Kt=[],De={};if("startRule"in s){if(!(s.startRule in u))throw new Error(`Can't start parsing from rule "`+s.startRule+'".');c=u[s.startRule]}function G(Oe,Ie){return{type:"literal",text:Oe,ignoreCase:Ie}}function ne(Oe,Ie,We){return{type:"class",parts:Oe,inverted:Ie,ignoreCase:We}}function ee(Oe){var Ie,We=vt[Oe];if(We)return We;for(Ie=Oe-1;!vt[Ie];)Ie--;for(We={line:(We=vt[Ie]).line,column:We.column};IeYe&&(Ye=W,Kt=[]),Kt.push(Oe))}function Z(){var Oe,Ie,We,be,re=30*W+0,Y=De[re];return Y?(W=Y.nextPos,Y.result):(Oe=W,(Ie=J())!==o&&(We=Ce())!==o&&J()!==o?Oe=Ie=(be=We).length===1?be[0]:{type:"matches",selectors:be}:(W=Oe,Oe=o),Oe===o&&(Oe=W,(Ie=J())!==o&&(Ie=void 0),Oe=Ie),De[re]={nextPos:W,result:Oe},Oe)}function J(){var Oe,Ie,We=30*W+1,be=De[We];if(be)return W=be.nextPos,be.result;for(Oe=[],t.charCodeAt(W)===32?(Ie=" ",W++):(Ie=o,ce(p));Ie!==o;)Oe.push(Ie),t.charCodeAt(W)===32?(Ie=" ",W++):(Ie=o,ce(p));return De[We]={nextPos:W,result:Oe},Oe}function ie(){var Oe,Ie,We,be=30*W+2,re=De[be];if(re)return W=re.nextPos,re.result;if(Ie=[],h.test(t.charAt(W))?(We=t.charAt(W),W++):(We=o,ce(f)),We!==o)for(;We!==o;)Ie.push(We),h.test(t.charAt(W))?(We=t.charAt(W),W++):(We=o,ce(f));else Ie=o;return Ie!==o&&(Ie=Ie.join("")),Oe=Ie,De[be]={nextPos:W,result:Oe},Oe}function de(){var Oe,Ie,We,be=30*W+3,re=De[be];return re?(W=re.nextPos,re.result):(Oe=W,(Ie=J())!==o?(t.charCodeAt(W)===62?(We=">",W++):(We=o,ce(d)),We!==o&&J()!==o?Oe=Ie="child":(W=Oe,Oe=o)):(W=Oe,Oe=o),Oe===o&&(Oe=W,(Ie=J())!==o?(t.charCodeAt(W)===126?(We="~",W++):(We=o,ce(m)),We!==o&&J()!==o?Oe=Ie="sibling":(W=Oe,Oe=o)):(W=Oe,Oe=o),Oe===o&&(Oe=W,(Ie=J())!==o?(t.charCodeAt(W)===43?(We="+",W++):(We=o,ce(g)),We!==o&&J()!==o?Oe=Ie="adjacent":(W=Oe,Oe=o)):(W=Oe,Oe=o),Oe===o&&(Oe=W,t.charCodeAt(W)===32?(Ie=" ",W++):(Ie=o,ce(p)),Ie!==o&&(We=J())!==o?Oe=Ie="descendant":(W=Oe,Oe=o)))),De[be]={nextPos:W,result:Oe},Oe)}function Ce(){var Oe,Ie,We,be,re,Y,fe,Se,Ee=30*W+4,ze=De[Ee];if(ze)return W=ze.nextPos,ze.result;if(Oe=W,(Ie=L())!==o){for(We=[],be=W,(re=J())!==o?(t.charCodeAt(W)===44?(Y=",",W++):(Y=o,ce(y)),Y!==o&&(fe=J())!==o&&(Se=L())!==o?be=re=[re,Y,fe,Se]:(W=be,be=o)):(W=be,be=o);be!==o;)We.push(be),be=W,(re=J())!==o?(t.charCodeAt(W)===44?(Y=",",W++):(Y=o,ce(y)),Y!==o&&(fe=J())!==o&&(Se=L())!==o?be=re=[re,Y,fe,Se]:(W=be,be=o)):(W=be,be=o);We!==o?Oe=Ie=[Ie].concat(We.map(function(Ke){return Ke[3]})):(W=Oe,Oe=o)}else W=Oe,Oe=o;return De[Ee]={nextPos:W,result:Oe},Oe}function L(){var Oe,Ie,We,be,re,Y,fe,Se=30*W+5,Ee=De[Se];if(Ee)return W=Ee.nextPos,Ee.result;if(Oe=W,(Ie=ue())!==o){for(We=[],be=W,(re=de())!==o&&(Y=ue())!==o?be=re=[re,Y]:(W=be,be=o);be!==o;)We.push(be),be=W,(re=de())!==o&&(Y=ue())!==o?be=re=[re,Y]:(W=be,be=o);We!==o?(fe=Ie,Oe=Ie=We.reduce(function(ze,Ke){return{type:Ke[0],left:ze,right:Ke[1]}},fe)):(W=Oe,Oe=o)}else W=Oe,Oe=o;return De[Se]={nextPos:W,result:Oe},Oe}function ue(){var Oe,Ie,We,be,re,Y,fe,Se=30*W+6,Ee=De[Se];if(Ee)return W=Ee.nextPos,Ee.result;if(Oe=W,t.charCodeAt(W)===33?(Ie="!",W++):(Ie=o,ce(b)),Ie===o&&(Ie=null),Ie!==o){if(We=[],(be=Te())!==o)for(;be!==o;)We.push(be),be=Te();else We=o;We!==o?(re=Ie,fe=(Y=We).length===1?Y[0]:{type:"compound",selectors:Y},re&&(fe.subject=!0),Oe=Ie=fe):(W=Oe,Oe=o)}else W=Oe,Oe=o;return De[Se]={nextPos:W,result:Oe},Oe}function Te(){var Oe,Ie=30*W+7,We=De[Ie];return We?(W=We.nextPos,We.result):((Oe=function(){var be,re,Y=30*W+8,fe=De[Y];return fe?(W=fe.nextPos,fe.result):(t.charCodeAt(W)===42?(re="*",W++):(re=o,ce(v)),re!==o&&(re={type:"wildcard",value:re}),be=re,De[Y]={nextPos:W,result:be},be)}())===o&&(Oe=function(){var be,re,Y,fe=30*W+9,Se=De[fe];return Se?(W=Se.nextPos,Se.result):(be=W,t.charCodeAt(W)===35?(re="#",W++):(re=o,ce(S)),re===o&&(re=null),re!==o&&(Y=ie())!==o?be=re={type:"identifier",value:Y}:(W=be,be=o),De[fe]={nextPos:W,result:be},be)}())===o&&(Oe=function(){var be,re,Y,fe,Se=30*W+10,Ee=De[Se];return Ee?(W=Ee.nextPos,Ee.result):(be=W,t.charCodeAt(W)===91?(re="[",W++):(re=o,ce(C)),re!==o&&J()!==o&&(Y=function(){var ze,Ke,mt,Ot,Pt=30*W+14,xt=De[Pt];return xt?(W=xt.nextPos,xt.result):(ze=W,(Ke=Be())!==o&&J()!==o&&(mt=function(){var Ue,nt,Ge,Qe=30*W+12,ut=De[Qe];return ut?(W=ut.nextPos,ut.result):(Ue=W,t.charCodeAt(W)===33?(nt="!",W++):(nt=o,ce(b)),nt===o&&(nt=null),nt!==o?(t.charCodeAt(W)===61?(Ge="=",W++):(Ge=o,ce(k)),Ge!==o?(nt=A(nt),Ue=nt):(W=Ue,Ue=o)):(W=Ue,Ue=o),De[Qe]={nextPos:W,result:Ue},Ue)}())!==o&&J()!==o?((Ot=function(){var Ue,nt,Ge,Qe,ut,dt=30*W+18,qt=De[dt];if(qt)return W=qt.nextPos,qt.result;if(Ue=W,t.substr(W,5)==="type("?(nt="type(",W+=5):(nt=o,ce(he)),nt!==o)if(J()!==o){if(Ge=[],$.test(t.charAt(W))?(Qe=t.charAt(W),W++):(Qe=o,ce(pe)),Qe!==o)for(;Qe!==o;)Ge.push(Qe),$.test(t.charAt(W))?(Qe=t.charAt(W),W++):(Qe=o,ce(pe));else Ge=o;Ge!==o&&(Qe=J())!==o?(t.charCodeAt(W)===41?(ut=")",W++):(ut=o,ce(K)),ut!==o?(nt={type:"type",value:Ge.join("")},Ue=nt):(W=Ue,Ue=o)):(W=Ue,Ue=o)}else W=Ue,Ue=o;else W=Ue,Ue=o;return De[dt]={nextPos:W,result:Ue},Ue}())===o&&(Ot=function(){var Ue,nt,Ge,Qe,ut,dt,qt=30*W+20,Qt=De[qt];if(Qt)return W=Qt.nextPos,Qt.result;if(Ue=W,t.charCodeAt(W)===47?(nt="/",W++):(nt=o,ce(Le)),nt!==o){if(Ge=[],qe.test(t.charAt(W))?(Qe=t.charAt(W),W++):(Qe=o,ce(rt)),Qe!==o)for(;Qe!==o;)Ge.push(Qe),qe.test(t.charAt(W))?(Qe=t.charAt(W),W++):(Qe=o,ce(rt));else Ge=o;Ge!==o?(t.charCodeAt(W)===47?(Qe="/",W++):(Qe=o,ce(Le)),Qe!==o?((ut=function(){var jt,sr,ot=30*W+19,Nt=De[ot];if(Nt)return W=Nt.nextPos,Nt.result;if(jt=[],le.test(t.charAt(W))?(sr=t.charAt(W),W++):(sr=o,ce(xe)),sr!==o)for(;sr!==o;)jt.push(sr),le.test(t.charAt(W))?(sr=t.charAt(W),W++):(sr=o,ce(xe));else jt=o;return De[ot]={nextPos:W,result:jt},jt}())===o&&(ut=null),ut!==o?(dt=ut,nt={type:"regexp",value:new RegExp(Ge.join(""),dt?dt.join(""):"")},Ue=nt):(W=Ue,Ue=o)):(W=Ue,Ue=o)):(W=Ue,Ue=o)}else W=Ue,Ue=o;return De[qt]={nextPos:W,result:Ue},Ue}()),Ot!==o?(Ke=T(Ke,mt,Ot),ze=Ke):(W=ze,ze=o)):(W=ze,ze=o),ze===o&&(ze=W,(Ke=Be())!==o&&J()!==o&&(mt=function(){var Ue,nt,Ge,Qe=30*W+11,ut=De[Qe];return ut?(W=ut.nextPos,ut.result):(Ue=W,w.test(t.charAt(W))?(nt=t.charAt(W),W++):(nt=o,ce(E)),nt===o&&(nt=null),nt!==o?(t.charCodeAt(W)===61?(Ge="=",W++):(Ge=o,ce(k)),Ge!==o?(nt=A(nt),Ue=nt):(W=Ue,Ue=o)):(W=Ue,Ue=o),Ue===o&&(D.test(t.charAt(W))?(Ue=t.charAt(W),W++):(Ue=o,ce(_))),De[Qe]={nextPos:W,result:Ue},Ue)}())!==o&&J()!==o?((Ot=function(){var Ue,nt,Ge,Qe,ut,dt,qt=30*W+15,Qt=De[qt];if(Qt)return W=Qt.nextPos,Qt.result;if(Ue=W,t.charCodeAt(W)===34?(nt='"',W++):(nt=o,ce(F)),nt!==o){for(Ge=[],j.test(t.charAt(W))?(Qe=t.charAt(W),W++):(Qe=o,ce(Q)),Qe===o&&(Qe=W,t.charCodeAt(W)===92?(ut="\\",W++):(ut=o,ce(I)),ut!==o?(t.length>W?(dt=t.charAt(W),W++):(dt=o,ce(N)),dt!==o?(ut=R(ut,dt),Qe=ut):(W=Qe,Qe=o)):(W=Qe,Qe=o));Qe!==o;)Ge.push(Qe),j.test(t.charAt(W))?(Qe=t.charAt(W),W++):(Qe=o,ce(Q)),Qe===o&&(Qe=W,t.charCodeAt(W)===92?(ut="\\",W++):(ut=o,ce(I)),ut!==o?(t.length>W?(dt=t.charAt(W),W++):(dt=o,ce(N)),dt!==o?(ut=R(ut,dt),Qe=ut):(W=Qe,Qe=o)):(W=Qe,Qe=o));Ge!==o?(t.charCodeAt(W)===34?(Qe='"',W++):(Qe=o,ce(F)),Qe!==o?(nt=U(Ge),Ue=nt):(W=Ue,Ue=o)):(W=Ue,Ue=o)}else W=Ue,Ue=o;if(Ue===o)if(Ue=W,t.charCodeAt(W)===39?(nt="'",W++):(nt=o,ce(V)),nt!==o){for(Ge=[],ae.test(t.charAt(W))?(Qe=t.charAt(W),W++):(Qe=o,ce(se)),Qe===o&&(Qe=W,t.charCodeAt(W)===92?(ut="\\",W++):(ut=o,ce(I)),ut!==o?(t.length>W?(dt=t.charAt(W),W++):(dt=o,ce(N)),dt!==o?(ut=R(ut,dt),Qe=ut):(W=Qe,Qe=o)):(W=Qe,Qe=o));Qe!==o;)Ge.push(Qe),ae.test(t.charAt(W))?(Qe=t.charAt(W),W++):(Qe=o,ce(se)),Qe===o&&(Qe=W,t.charCodeAt(W)===92?(ut="\\",W++):(ut=o,ce(I)),ut!==o?(t.length>W?(dt=t.charAt(W),W++):(dt=o,ce(N)),dt!==o?(ut=R(ut,dt),Qe=ut):(W=Qe,Qe=o)):(W=Qe,Qe=o));Ge!==o?(t.charCodeAt(W)===39?(Qe="'",W++):(Qe=o,ce(V)),Qe!==o?(nt=U(Ge),Ue=nt):(W=Ue,Ue=o)):(W=Ue,Ue=o)}else W=Ue,Ue=o;return De[qt]={nextPos:W,result:Ue},Ue}())===o&&(Ot=function(){var Ue,nt,Ge,Qe,ut,dt,qt,Qt=30*W+16,jt=De[Qt];if(jt)return W=jt.nextPos,jt.result;for(Ue=W,nt=W,Ge=[],ve.test(t.charAt(W))?(Qe=t.charAt(W),W++):(Qe=o,ce(H));Qe!==o;)Ge.push(Qe),ve.test(t.charAt(W))?(Qe=t.charAt(W),W++):(Qe=o,ce(H));if(Ge!==o?(t.charCodeAt(W)===46?(Qe=".",W++):(Qe=o,ce(B)),Qe!==o?nt=Ge=[Ge,Qe]:(W=nt,nt=o)):(W=nt,nt=o),nt===o&&(nt=null),nt!==o){if(Ge=[],ve.test(t.charAt(W))?(Qe=t.charAt(W),W++):(Qe=o,ce(H)),Qe!==o)for(;Qe!==o;)Ge.push(Qe),ve.test(t.charAt(W))?(Qe=t.charAt(W),W++):(Qe=o,ce(H));else Ge=o;Ge!==o?(dt=Ge,qt=(ut=nt)?[].concat.apply([],ut).join(""):"",nt={type:"literal",value:parseFloat(qt+dt.join(""))},Ue=nt):(W=Ue,Ue=o)}else W=Ue,Ue=o;return De[Qt]={nextPos:W,result:Ue},Ue}())===o&&(Ot=function(){var Ue,nt,Ge=30*W+17,Qe=De[Ge];return Qe?(W=Qe.nextPos,Qe.result):((nt=ie())!==o&&(nt={type:"literal",value:nt}),Ue=nt,De[Ge]={nextPos:W,result:Ue},Ue)}()),Ot!==o?(Ke=T(Ke,mt,Ot),ze=Ke):(W=ze,ze=o)):(W=ze,ze=o),ze===o&&(ze=W,(Ke=Be())!==o&&(Ke={type:"attribute",name:Ke}),ze=Ke)),De[Pt]={nextPos:W,result:ze},ze)}())!==o&&J()!==o?(t.charCodeAt(W)===93?(fe="]",W++):(fe=o,ce(O)),fe!==o?be=re=Y:(W=be,be=o)):(W=be,be=o),De[Se]={nextPos:W,result:be},be)}())===o&&(Oe=function(){var be,re,Y,fe,Se,Ee,ze,Ke,mt=30*W+21,Ot=De[mt];if(Ot)return W=Ot.nextPos,Ot.result;if(be=W,t.charCodeAt(W)===46?(re=".",W++):(re=o,ce(B)),re!==o)if((Y=ie())!==o){for(fe=[],Se=W,t.charCodeAt(W)===46?(Ee=".",W++):(Ee=o,ce(B)),Ee!==o&&(ze=ie())!==o?Se=Ee=[Ee,ze]:(W=Se,Se=o);Se!==o;)fe.push(Se),Se=W,t.charCodeAt(W)===46?(Ee=".",W++):(Ee=o,ce(B)),Ee!==o&&(ze=ie())!==o?Se=Ee=[Ee,ze]:(W=Se,Se=o);fe!==o?(Ke=Y,re={type:"field",name:fe.reduce(function(Pt,xt){return Pt+xt[0]+xt[1]},Ke)},be=re):(W=be,be=o)}else W=be,be=o;else W=be,be=o;return De[mt]={nextPos:W,result:be},be}())===o&&(Oe=function(){var be,re,Y,fe,Se=30*W+22,Ee=De[Se];return Ee?(W=Ee.nextPos,Ee.result):(be=W,t.substr(W,5)===":not("?(re=":not(",W+=5):(re=o,ce(ht)),re!==o&&J()!==o&&(Y=Ce())!==o&&J()!==o?(t.charCodeAt(W)===41?(fe=")",W++):(fe=o,ce(K)),fe!==o?be=re={type:"not",selectors:Y}:(W=be,be=o)):(W=be,be=o),De[Se]={nextPos:W,result:be},be)}())===o&&(Oe=function(){var be,re,Y,fe,Se=30*W+23,Ee=De[Se];return Ee?(W=Ee.nextPos,Ee.result):(be=W,t.substr(W,9)===":matches("?(re=":matches(",W+=9):(re=o,ce(pt)),re!==o&&J()!==o&&(Y=Ce())!==o&&J()!==o?(t.charCodeAt(W)===41?(fe=")",W++):(fe=o,ce(K)),fe!==o?be=re={type:"matches",selectors:Y}:(W=be,be=o)):(W=be,be=o),De[Se]={nextPos:W,result:be},be)}())===o&&(Oe=function(){var be,re,Y,fe,Se=30*W+24,Ee=De[Se];return Ee?(W=Ee.nextPos,Ee.result):(be=W,t.substr(W,5)===":has("?(re=":has(",W+=5):(re=o,ce(Et)),re!==o&&J()!==o&&(Y=Ce())!==o&&J()!==o?(t.charCodeAt(W)===41?(fe=")",W++):(fe=o,ce(K)),fe!==o?be=re={type:"has",selectors:Y}:(W=be,be=o)):(W=be,be=o),De[Se]={nextPos:W,result:be},be)}())===o&&(Oe=function(){var be,re,Y=30*W+25,fe=De[Y];return fe?(W=fe.nextPos,fe.result):(t.substr(W,12)===":first-child"?(re=":first-child",W+=12):(re=o,ce(X)),re!==o&&(re=$e(1)),be=re,De[Y]={nextPos:W,result:be},be)}())===o&&(Oe=function(){var be,re,Y=30*W+26,fe=De[Y];return fe?(W=fe.nextPos,fe.result):(t.substr(W,11)===":last-child"?(re=":last-child",W+=11):(re=o,ce(we)),re!==o&&(re=Re(1)),be=re,De[Y]={nextPos:W,result:be},be)}())===o&&(Oe=function(){var be,re,Y,fe,Se,Ee=30*W+27,ze=De[Ee];if(ze)return W=ze.nextPos,ze.result;if(be=W,t.substr(W,11)===":nth-child("?(re=":nth-child(",W+=11):(re=o,ce(Ve)),re!==o)if(J()!==o){if(Y=[],ve.test(t.charAt(W))?(fe=t.charAt(W),W++):(fe=o,ce(H)),fe!==o)for(;fe!==o;)Y.push(fe),ve.test(t.charAt(W))?(fe=t.charAt(W),W++):(fe=o,ce(H));else Y=o;Y!==o&&(fe=J())!==o?(t.charCodeAt(W)===41?(Se=")",W++):(Se=o,ce(K)),Se!==o?(re=$e(parseInt(Y.join(""),10)),be=re):(W=be,be=o)):(W=be,be=o)}else W=be,be=o;else W=be,be=o;return De[Ee]={nextPos:W,result:be},be}())===o&&(Oe=function(){var be,re,Y,fe,Se,Ee=30*W+28,ze=De[Ee];if(ze)return W=ze.nextPos,ze.result;if(be=W,t.substr(W,16)===":nth-last-child("?(re=":nth-last-child(",W+=16):(re=o,ce(et)),re!==o)if(J()!==o){if(Y=[],ve.test(t.charAt(W))?(fe=t.charAt(W),W++):(fe=o,ce(H)),fe!==o)for(;fe!==o;)Y.push(fe),ve.test(t.charAt(W))?(fe=t.charAt(W),W++):(fe=o,ce(H));else Y=o;Y!==o&&(fe=J())!==o?(t.charCodeAt(W)===41?(Se=")",W++):(Se=o,ce(K)),Se!==o?(re=Re(parseInt(Y.join(""),10)),be=re):(W=be,be=o)):(W=be,be=o)}else W=be,be=o;else W=be,be=o;return De[Ee]={nextPos:W,result:be},be}())===o&&(Oe=function(){var be,re,Y,fe=30*W+29,Se=De[fe];return Se?(W=Se.nextPos,Se.result):(be=W,t.charCodeAt(W)===58?(re=":",W++):(re=o,ce(it)),re!==o?(t.substr(W,9).toLowerCase()==="statement"?(Y=t.substr(W,9),W+=9):(Y=o,ce(st)),Y===o&&(t.substr(W,10).toLowerCase()==="expression"?(Y=t.substr(W,10),W+=10):(Y=o,ce(Ct)),Y===o&&(t.substr(W,11).toLowerCase()==="declaration"?(Y=t.substr(W,11),W+=11):(Y=o,ce(bt)),Y===o&&(t.substr(W,8).toLowerCase()==="function"?(Y=t.substr(W,8),W+=8):(Y=o,ce(Dt)),Y===o&&(t.substr(W,7).toLowerCase()==="pattern"?(Y=t.substr(W,7),W+=7):(Y=o,ce(_t)))))),Y!==o?be=re={type:"class",name:Y}:(W=be,be=o)):(W=be,be=o),De[fe]={nextPos:W,result:be},be)}()),De[Ie]={nextPos:W,result:Oe},Oe)}function Be(){var Oe,Ie,We,be,re,Y,fe,Se,Ee=30*W+13,ze=De[Ee];if(ze)return W=ze.nextPos,ze.result;if(Oe=W,(Ie=ie())!==o){for(We=[],be=W,t.charCodeAt(W)===46?(re=".",W++):(re=o,ce(B)),re!==o&&(Y=ie())!==o?be=re=[re,Y]:(W=be,be=o);be!==o;)We.push(be),be=W,t.charCodeAt(W)===46?(re=".",W++):(re=o,ce(B)),re!==o&&(Y=ie())!==o?be=re=[re,Y]:(W=be,be=o);We!==o?(fe=Ie,Se=We,Oe=Ie=[].concat.apply([fe],Se).join("")):(W=Oe,Oe=o)}else W=Oe,Oe=o;return De[Ee]={nextPos:W,result:Oe},Oe}function $e(Oe){return{type:"nth-child",index:{type:"literal",value:Oe}}}function Re(Oe){return{type:"nth-last-child",index:{type:"literal",value:Oe}}}if((n=c())!==o&&W===t.length)return n;throw n!==o&&W0&&o(w,E,k))&&l(E[0],E.slice(1),k)};case"descendant":var u=Er(r.left),c=Er(r.right);return function(w,E,k){if(c(w,E,k)){for(var A=0,D=E.length;A":return function(w){return Cn(w,p)>r.value.value};case">=":return function(w){return Cn(w,p)>=r.value.value}}throw new Error("Unknown operator: ".concat(r.operator));case"sibling":var d=Er(r.left),m=Er(r.right);return function(w,E,k){return m(w,E,k)&&PT(w,d,E,"LEFT_SIDE",k)||r.left.subject&&d(w,E,k)&&PT(w,m,E,"RIGHT_SIDE",k)};case"adjacent":var g=Er(r.left),y=Er(r.right);return function(w,E,k){return y(w,E,k)&&TT(w,g,E,"LEFT_SIDE",k)||r.right.subject&&g(w,E,k)&&TT(w,y,E,"RIGHT_SIDE",k)};case"nth-child":var b=r.index.value,v=Er(r.right);return function(w,E,k){return v(w,E,k)&&DT(w,E,b,k)};case"nth-last-child":var S=-r.index.value,C=Er(r.right);return function(w,E,k){return C(w,E,k)&&DT(w,E,S,k)};case"class":var O=r.name.toLowerCase();return function(w,E){switch(O){case"statement":if(w.type.slice(-9)==="Statement")return!0;case"declaration":return w.type.slice(-11)==="Declaration";case"pattern":if(w.type.slice(-7)==="Pattern")return!0;case"expression":return w.type.slice(-10)==="Expression"||w.type.slice(-7)==="Literal"||w.type==="Identifier"&&(E.length===0||E[0].type!=="MetaProperty")||w.type==="MetaProperty";case"function":return w.type==="FunctionDeclaration"||w.type==="FunctionExpression"||w.type==="ArrowFunctionExpression"}throw new Error("Unknown class name: ".concat(r.name))}}throw new Error("Unknown selector type: ".concat(r.type))}function BO(r,e){var t=r.type;return e&&e.visitorKeys&&e.visitorKeys[t]?e.visitorKeys[t]:uc.VisitorKeys[t]?uc.VisitorKeys[t]:e&&typeof e.fallback=="function"?e.fallback(r):Object.keys(r).filter(function(s){return s!=="type"})}function rO(r){return r!==null&&qo(r)==="object"&&typeof r.type=="string"}function PT(r,e,t,s,n){var i=RO(t,1)[0];if(!i)return!1;for(var a=BO(i,n),l=0;l0&&rO(o[u-1])&&e(o[u-1],t,n)||s==="RIGHT_SIDE"&&u=0&&of.includes(d));return h}function s(p){switch(p.type){case"identifier":return[p.value];case"matches":{let h=p.selectors.map(s);return h.every(Boolean)?e(...h):null}case"compound":{let h=p.selectors.map(s).filter(f=>f);return h.length?t(...h):null}case"child":case"descendant":case"sibling":case"adjacent":return s(p.right);case"class":return p.name==="function"?["FunctionDeclaration","FunctionExpression","ArrowFunctionExpression"]:null;default:return null}}function n(p){switch(p.type){case"child":case"descendant":case"sibling":case"adjacent":return n(p.left)+n(p.right);case"compound":case"not":case"matches":return p.selectors.reduce((h,f)=>h+n(f),0);case"attribute":case"field":case"nth-child":case"nth-last-child":return 1;default:return 0}}function i(p){switch(p.type){case"child":case"descendant":case"sibling":case"adjacent":return i(p.left)+i(p.right);case"compound":case"not":case"matches":return p.selectors.reduce((h,f)=>h+i(f),0);case"identifier":return 1;default:return 0}}function a(p,h){return p.attributeCount-h.attributeCount||p.identifierCount-h.identifierCount||(p.rawSelector<=h.rawSelector?-1:1)}function l(p){try{return r.parse(p.replace(/:exit$/u,""))}catch(h){throw h.location&&h.location.start&&typeof h.location.start.offset=="number"?new SyntaxError(`Syntax error in selector "${p}" at position ${h.location.start.offset}: ${h.message}`):h}}let o=new Map;function u(p){if(o.has(p))return o.get(p);let h=l(p),f={rawSelector:p,isExit:p.endsWith(":exit"),parsedSelector:h,listenerTypes:s(h),attributeCount:n(h),identifierCount:i(h)};return o.set(p,f),f}class c{constructor(h,f){this.emitter=h,this.esqueryOptions=f,this.currentAncestry=[],this.enterSelectorsByNodeType=new Map,this.exitSelectorsByNodeType=new Map,this.anyTypeEnterSelectors=[],this.anyTypeExitSelectors=[],h.eventNames().forEach(d=>{let m=u(d);if(m.listenerTypes){let y=m.isExit?this.exitSelectorsByNodeType:this.enterSelectorsByNodeType;m.listenerTypes.forEach(b=>{y.has(b)||y.set(b,[]),y.get(b).push(m)});return}(m.isExit?this.anyTypeExitSelectors:this.anyTypeEnterSelectors).push(m)}),this.anyTypeEnterSelectors.sort(a),this.anyTypeExitSelectors.sort(a),this.enterSelectorsByNodeType.forEach(d=>d.sort(a)),this.exitSelectorsByNodeType.forEach(d=>d.sort(a))}applySelector(h,f){r.matches(h,f.parsedSelector,this.currentAncestry,this.esqueryOptions)&&this.emitter.emit(f.rawSelector,h)}applySelectors(h,f){let d=(f?this.exitSelectorsByNodeType:this.enterSelectorsByNodeType).get(h.type)||[],m=f?this.anyTypeExitSelectors:this.anyTypeEnterSelectors,g=0,y=0;for(;g=d.length||y{let l=a.trim();return l in s?s[l]:i})}return Vm={getPlaceholderMatcher:r,interpolate:e},Vm}var Wm,RT;function t7(){if(RT)return Wm;RT=1;let r=Vo,e=J4(),{interpolate:t}=e7();function s(...d){return d.length===1?Object.assign({},d[0]):typeof d[1]=="string"?{node:d[0],message:d[1],data:d[2],fix:d[3]}:{node:d[0],loc:d[1],message:d[2],data:d[3],fix:d[4]}}function n(d){d.node?r(typeof d.node=="object","Node must be an object"):r(d.loc,"Node must be provided when reporting error if location is not provided")}function i(d){return d.loc?d.loc.start?d.loc:{start:d.loc,end:null}:d.node.loc}function a(d){return d?{range:[d.range[0],d.range[1]],text:d.text}:null}function l(d){d&&r(d.range&&typeof d.range[0]=="number"&&typeof d.range[1]=="number",`Fix has invalid range: ${JSON.stringify(d,null,2)}`)}function o(d,m){return d.range[0]-m.range[0]||d.range[1]-m.range[1]}function u(d,m){for(let C of d)l(C);if(d.length===0)return null;if(d.length===1)return a(d[0]);d.sort(o);let g=m.text,y=d[0].range[0],b=d.at(-1).range[1],v="",S=Number.MIN_SAFE_INTEGER;for(let C of d)r(C.range[0]>=S,"Fix objects must not be overlapped in a report."),C.range[0]>=0&&(v+=g.slice(Math.max(0,y,S),C.range[0])),v+=C.text,S=C.range[1];return v+=g.slice(Math.max(0,y,S),b),{range:[y,b],text:v}}function c(d,m){if(typeof d.fix!="function")return null;let g=d.fix(e);return g&&Symbol.iterator in g?u(Array.from(g),m):(l(g),a(g))}function p(d,m,g){return!d.suggest||!Array.isArray(d.suggest)?[]:d.suggest.map(y=>{let b=y.desc||g[y.messageId];return{...y,desc:t(b,y.data),fix:c(y,m)}}).filter(({fix:y})=>y)}function h(d){let m={ruleId:d.ruleId,severity:d.severity,message:d.message,line:d.loc.start.line,column:d.loc.start.column+1,nodeType:d.node&&d.node.type||null};return d.messageId&&(m.messageId=d.messageId),d.loc.end&&(m.endLine=d.loc.end.line,m.endColumn=d.loc.end.column+1),d.fix&&(m.fix=d.fix),d.suggestions&&d.suggestions.length>0&&(m.suggestions=d.suggestions),m}function f(d,m){d&&Array.isArray(d)&&d.forEach(g=>{if(g.messageId){let{messageId:y}=g;if(!m)throw new TypeError(`context.report() called with a suggest option with a messageId '${y}', but no messages were present in the rule metadata.`);if(!m[y])throw new TypeError(`context.report() called with a suggest option with a messageId '${y}' which is not present in the 'messages' config: ${JSON.stringify(m,null,2)}`);if(g.desc)throw new TypeError("context.report() called with a suggest option that defines both a 'messageId' and an 'desc'. Please only pass one.")}else if(!g.desc)throw new TypeError("context.report() called with a suggest option that doesn't have either a `desc` or `messageId`");if(typeof g.fix!="function")throw new TypeError(`context.report() called with a suggest option without a fix function. See: ${g}`)})}return Wm=function(m){return(...g)=>{let y=s(...g),b=m.messageIds;n(y);let v;if(y.messageId){if(!b)throw new TypeError("context.report() called with a messageId, but no messages were present in the rule metadata.");let S=y.messageId;if(y.message)throw new TypeError("context.report() called with a message and a messageId. Please only pass one.");if(!b||!Object.hasOwn(b,S))throw new TypeError(`context.report() called with a messageId of '${S}' which is not present in the 'messages' config: ${JSON.stringify(b,null,2)}`);v=b[S]}else if(y.message)v=y.message;else throw new TypeError("Missing `message` property in report() call; add a message that describes the linting problem.");return f(y.suggest,b),h({ruleId:m.ruleId,severity:m.severity,node:y.node,message:t(v,y.data),messageId:y.messageId,loc:i(y),fix:m.disableFixes?null:c(y,m.sourceCode),suggestions:m.disableFixes?[]:p(y,m.sourceCode,b)})}},Wm}function r7(r){throw new Error('Could not dynamically require "'+r+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Zm,BT;function n7(){if(BT)return Zm;BT=1;let r=bi()("eslint:rules");class e extends Map{constructor(s){let n=s.length;super(r.enabled?s.map(([i,a])=>{let l=null;return[i,()=>(l||(r("Loading rule %o (remaining=%d)",i,--n),l=a()),l)]}):s),Object.defineProperty(e.prototype,"set",{configurable:!0,value:void 0})}get(s){let n=super.get(s);return n&&n()}*values(){for(let s of super.values())yield s()}*entries(){for(let[s,n]of super.entries())yield[s,n()]}forEach(s,n){for(let[i,a]of super.entries())s.call(n,a(),i,this)}}return Object.defineProperties(e.prototype,{clear:{configurable:!0,value:void 0},delete:{configurable:!0,value:void 0},[Symbol.iterator]:{configurable:!0,writable:!0,value:e.prototype.entries}}),Zm={LazyLoadingRuleMap:e},Zm}var zm={exports:{}},Lo={},Xm={exports:{}},NT;function s7(){return NT||(NT=1,function(){function r(a){if(a==null)return!1;switch(a.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"CallExpression":case"ConditionalExpression":case"FunctionExpression":case"Identifier":case"Literal":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"ObjectExpression":case"SequenceExpression":case"ThisExpression":case"UnaryExpression":case"UpdateExpression":return!0}return!1}function e(a){if(a==null)return!1;switch(a.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":return!0}return!1}function t(a){if(a==null)return!1;switch(a.type){case"BlockStatement":case"BreakStatement":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"ForInStatement":case"ForStatement":case"IfStatement":case"LabeledStatement":case"ReturnStatement":case"SwitchStatement":case"ThrowStatement":case"TryStatement":case"VariableDeclaration":case"WhileStatement":case"WithStatement":return!0}return!1}function s(a){return t(a)||a!=null&&a.type==="FunctionDeclaration"}function n(a){switch(a.type){case"IfStatement":return a.alternate!=null?a.alternate:a.consequent;case"LabeledStatement":case"ForStatement":case"ForInStatement":case"WhileStatement":case"WithStatement":return a.body}return null}function i(a){var l;if(a.type!=="IfStatement"||a.alternate==null)return!1;l=a.consequent;do{if(l.type==="IfStatement"&&l.alternate==null)return!0;l=n(l)}while(l);return!1}Xm.exports={isExpression:r,isStatement:t,isIterationStatement:e,isSourceElement:s,isProblematicIfStatement:i,trailingStatement:n}}()),Xm.exports}var Gm={exports:{}},LT;function tN(){return LT||(LT=1,function(){var r,e,t,s,n,i;e={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,NonAsciiIdentifierPart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/},r={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/};function a(g){return 48<=g&&g<=57}function l(g){return 48<=g&&g<=57||97<=g&&g<=102||65<=g&&g<=70}function o(g){return g>=48&&g<=55}t=[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279];function u(g){return g===32||g===9||g===11||g===12||g===160||g>=5760&&t.indexOf(g)>=0}function c(g){return g===10||g===13||g===8232||g===8233}function p(g){if(g<=65535)return String.fromCharCode(g);var y=String.fromCharCode(Math.floor((g-65536)/1024)+55296),b=String.fromCharCode((g-65536)%1024+56320);return y+b}for(s=new Array(128),i=0;i<128;++i)s[i]=i>=97&&i<=122||i>=65&&i<=90||i===36||i===95;for(n=new Array(128),i=0;i<128;++i)n[i]=i>=97&&i<=122||i>=65&&i<=90||i>=48&&i<=57||i===36||i===95;function h(g){return g<128?s[g]:e.NonAsciiIdentifierStart.test(p(g))}function f(g){return g<128?n[g]:e.NonAsciiIdentifierPart.test(p(g))}function d(g){return g<128?s[g]:r.NonAsciiIdentifierStart.test(p(g))}function m(g){return g<128?n[g]:r.NonAsciiIdentifierPart.test(p(g))}Gm.exports={isDecimalDigit:a,isHexDigit:l,isOctalDigit:o,isWhiteSpace:u,isLineTerminator:c,isIdentifierStartES5:h,isIdentifierPartES5:f,isIdentifierStartES6:d,isIdentifierPartES6:m}}()),Gm.exports}var Ym={exports:{}},$T;function i7(){return $T||($T=1,function(){var r=tN();function e(h){switch(h){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"let":return!0;default:return!1}}function t(h,f){return!f&&h==="yield"?!1:s(h,f)}function s(h,f){if(f&&e(h))return!0;switch(h.length){case 2:return h==="if"||h==="in"||h==="do";case 3:return h==="var"||h==="for"||h==="new"||h==="try";case 4:return h==="this"||h==="else"||h==="case"||h==="void"||h==="with"||h==="enum";case 5:return h==="while"||h==="break"||h==="catch"||h==="throw"||h==="const"||h==="yield"||h==="class"||h==="super";case 6:return h==="return"||h==="typeof"||h==="delete"||h==="switch"||h==="export"||h==="import";case 7:return h==="default"||h==="finally"||h==="extends";case 8:return h==="function"||h==="continue"||h==="debugger";case 10:return h==="instanceof";default:return!1}}function n(h,f){return h==="null"||h==="true"||h==="false"||t(h,f)}function i(h,f){return h==="null"||h==="true"||h==="false"||s(h,f)}function a(h){return h==="eval"||h==="arguments"}function l(h){var f,d,m;if(h.length===0||(m=h.charCodeAt(0),!r.isIdentifierStartES5(m)))return!1;for(f=1,d=h.length;f=d||(g=h.charCodeAt(f),!(56320<=g&&g<=57343)))return!1;m=o(m,g)}if(!y(m))return!1;y=r.isIdentifierPartES6}return!0}function c(h,f){return l(h)&&!n(h,f)}function p(h,f){return u(h)&&!i(h,f)}Ym.exports={isKeywordES5:t,isKeywordES6:s,isReservedWordES5:n,isReservedWordES6:i,isRestrictedWord:a,isIdentifierNameES5:l,isIdentifierNameES6:u,isIdentifierES5:c,isIdentifierES6:p}}()),Ym.exports}var MT;function rN(){return MT||(MT=1,function(){Lo.ast=s7(),Lo.code=tN(),Lo.keyword=i7()}()),Lo}var Hm,jT;function nN(){return jT||(jT=1,Hm={LATEST_ECMA_VERSION:2024}),Hm}var qT;function Pe(){return qT||(qT=1,function(r){let{KEYS:e}=wO(),t=rN(),s=bc(),n=Sc(),{breakableTypePattern:i,createGlobalLinebreakMatcher:a,lineBreakPattern:l,shebangPattern:o}=vc(),u=UB(),{LATEST_ECMA_VERSION:c}=nN(),p=/^(?:Function(?:Declaration|Expression)|ArrowFunctionExpression)$/u,h=/^(?:DoWhile|For|ForIn|ForOf|While)Statement$/u,f=/^(?:every|filter|find(?:Last)?(?:Index)?|flatMap|forEach|map|some)$/u,d=/Array$/u,m=/^(?:bind|call|apply)$/u,g=/^[\s*]*@this/mu,y=/^\s*(?:eslint|jshint\s+|jslint\s+|istanbul\s+|globals?\s+|exported\s+|jscs)/u,b=/^(?:eslint[- ]|(?:globals?|exported) )/u,v=new Set([`\r +`)},n=function(d){return d.length?d.split(/[ ]+/):[]},i=function(d){return d.join(" ")},a=function(d){return d.split("")},l=function(d){return d.join("")},o=function(d){return d.split("").reverse().join("")},u=f(function(d,m){var g,y;for(g="",y=0;y1?y:y.toLowerCase())}).replace(/^([A-Z]+)/,function(m,g){return g.length>1?g+"-":g.toLowerCase()})},Tm={split:r,join:e,lines:t,unlines:s,words:n,unwords:i,chars:a,unchars:l,reverse:o,repeat:u,capitalize:c,camelize:p,dasherize:h};function f(d,m){var g,y=function(v){return d.length>1?function(){var x=v?v.concat():[];return g=this,x.push.apply(x,arguments)I?Q:I}),e=j(function(Q,I){return Q0?1:0},i=j(function(Q,I){return~~(Q/I)}),a=j(function(Q,I){return Q%I}),l=j(function(Q,I){return Math.floor(Q/I)}),o=j(function(Q,I){var N;return(Q%(N=I)+N)%N}),u=function(Q){return 1/Q},c=Math.PI,p=c*2,h=Math.exp,f=Math.sqrt,d=Math.log,m=j(function(Q,I){return Math.pow(Q,I)}),g=Math.sin,y=Math.tan,v=Math.cos,x=Math.asin,S=Math.acos,w=Math.atan,O=j(function(Q,I){return Math.atan2(Q,I)}),C=function(Q){return~~Q},E=Math.round,k=Math.ceil,A=Math.floor,D=function(Q){return Q!==Q},_=function(Q){return Q%2===0},B=function(Q){return Q%2!==0},T=j(function(Q,I){var N;for(Q=Math.abs(Q),I=Math.abs(I);I!==0;)N=Q%I,Q=I,I=N;return Q}),R=j(function(Q,I){return Math.abs(Math.floor(Q/T(Q,I)*I))}),Dm={max:r,min:e,negate:t,abs:s,signum:n,quot:i,rem:a,div:l,mod:o,recip:u,pi:c,tau:p,exp:h,sqrt:f,ln:d,pow:m,sin:g,tan:y,cos:v,acos:S,asin:x,atan:w,atan2:O,truncate:C,round:E,ceiling:k,floor:A,isItNaN:D,even:_,odd:B,gcd:T,lcm:R};function j(Q,I){var N,F=function(U){return Q.length>1?function(){var V=U?U.concat():[];return N=this,V.push.apply(V,arguments)1?function(){var g=m?m.concat():[];return f=this,g.push.apply(g,arguments)|"+r.source+"|\\S","g"),Fm.exports=function(d){var m,g;if(!d.length)throw new Error("No type specified.");if(m=d.match(e)||[],f("->",m))throw new Error("Function types are not supported. To validate that something is a function, you may use 'Function'.");try{return h(m)}catch(y){throw g=y,new Error(g.message+" - Remaining tokens: "+JSON.stringify(m)+" - Initial input: '"+d+"'")}};function f(d,m){for(var g=-1,y=m.length>>>0;++g{if(!u)return;let[c,p=null]=u.split(":");l[c]={value:p,comment:a}}),l}parseJsonConfig(i,a){s("Parsing JSON config");try{let o=r.parse("Object",i)||{};if(e.isEverySeverityValid(o))return{success:!0,config:o}}catch{s("Levn parsing failed; falling back to manual parsing.")}let l=i.replace(/([-a-zA-Z0-9/]+):/gu,'"$1":').replace(/(\]|[0-9])\s+(?=")/u,"$1,");try{return{success:!0,config:JSON.parse(`{${l}}`)}}catch(o){return s("Manual parsing failed."),{success:!1,error:{ruleId:null,fatal:!0,severity:2,message:`Failed to parse JSON from '${l}': ${o.message}`,line:a.start.line,column:a.start.column+1,nodeType:null}}}}parseListConfig(i){s("Parsing list config");let a={};return i.split(",").forEach(l=>{let o=l.trim().replace(/^(?['"]?)(?.*)\k$/us,"$");o&&(a[o]=!0)}),a}extractDirectiveComment(i){let a=/\s-{2,}\s/u.exec(i);if(!a)return{directivePart:i.trim(),justificationPart:""};let l=i.slice(0,a.index).trim(),o=i.slice(a.index+a[0].length).trim();return{directivePart:l,justificationPart:o}}parseDirective(i){let{directivePart:a}=this.extractDirectiveComment(i.value),l=t.exec(a),o=l[1],u=a.slice(l.index+o.length);return{directiveText:o,directiveValue:u}}},Nm}var Lm,ST;function G4(){if(ST)return Lm;ST=1;let{isCommentToken:r}=hr(),e=R4(),t=xc(),s=TO(),n=qB(),{directivesPattern:i}=Oc(),a=L4(),l=VB(),o=ZB(),u=DB(),c=new o,p=["onCodePathStart","onCodePathEnd","onCodePathSegmentStart","onCodePathSegmentEnd","onCodePathSegmentLoop","onUnreachableCodePathSegmentStart","onUnreachableCodePathSegmentEnd"];function h(A){if(!A.tokens)throw new Error("AST is missing the tokens array.");if(!A.comments)throw new Error("AST is missing the comments array.");if(!A.loc)throw new Error("AST is missing location information.");if(!A.range)throw new Error("AST is missing range information")}function f(A){switch(A){case 3:return n.es3;case 5:return n.es5;default:return A<2015?n[`es${A+2009}`]:n[`es${A}`]}}function d(A){return A.type==="ExportDefaultDeclaration"||A.type==="ExportNamedDeclaration"||A.type==="ExportAllDeclaration"||A.type==="ExportSpecifier"}function m(A,D){let _=[],B=0,T=0;for(;B=D.length||B=D.range[0]||D.range[0]<=A.range[0]&&D.range[1]>=A.range[0]}function v(A,D,_,B){if(y(D,_))return!1;let[T,R]=D.range[1]<=_.range[0]?[D,_]:[_,D],j=A.getLastToken(T)||T,Q=A.getFirstToken(R)||R,I=j;for(;I!==Q;){let N=A.getTokenAfter(I,{includeComments:!0});if(I.range[1]!==N.range[0]||B&&N!==Q&&N.type==="JSXText"&&/\s/u.test(N.value))return!0;I=N}return!1}function x(A,D={},_={}){for(let B of new Set([...Object.keys(D),...Object.keys(_)])){let T=D[B]===void 0?void 0:g(D[B]),j=_[B]&&_[B].value||T,Q=_[B]&&_[B].comments;if(j==="off")continue;let I=A.set.get(B);I||(I=new u.Variable(B,A),A.variables.push(I),A.set.set(B,I)),I.eslintImplicitGlobalSetting=T,I.eslintExplicitGlobal=Q!==void 0,I.eslintExplicitGlobalComments=Q,I.writeable=j==="writable"}A.through=A.through.filter(B=>{let T=B.identifier.name,R=A.set.get(T);return R?(B.resolved=R,R.references.push(B),!1):!0})}function S(A,D){Object.keys(D).forEach(_=>{let B=A.set.get(_);B&&(B.eslintUsed=!0,B.eslintExported=!0)})}let w={visit:1,call:2};class O{type;kind;target;phase;args;constructor({type:D,target:_,phase:B,args:T}){this.type=D,this.kind=w[D],this.target=_,this.phase=B,this.args=T}}class C{type;node;value;justification;constructor({type:D,node:_,value:B,justification:T}){this.type=D,this.node=_,this.value=B,this.justification=T}}let E=Symbol("caches");class k extends e{#e;constructor(D,_){let B,T,R,j,Q;typeof D=="string"?(B=D,T=_):typeof D=="object"&&D!==null&&(B=D.text,T=D.ast,R=D.parserServices,j=D.scopeManager,Q=D.visitorKeys),h(T),super(T.tokens,T.comments),this[E]=new Map([["scopes",new WeakMap],["vars",new Map],["configNodes",void 0]]),this.hasBOM=B.charCodeAt(0)===65279,this.text=this.hasBOM?B.slice(1):B,this.ast=T,this.parserServices=R||{},this.scopeManager=j||null,this.visitorKeys=Q||s.DEFAULT_VISITOR_KEYS;let I=this.text.match(t.shebangPattern);I&&T.comments.length&&T.comments[0].value===I[1]&&(T.comments[0].type="Shebang"),this.tokensAndComments=m(T.tokens,T.comments),this.lines=[],this.lineStartIndices=[0];let F=t.createGlobalLinebreakMatcher(),U;for(;U=F.exec(this.text);)this.lines.push(this.text.slice(this.lineStartIndices.at(-1),U.index)),this.lineStartIndices.push(U.index+U[0].length);this.lines.push(this.text.slice(this.lineStartIndices.at(-1))),Object.freeze(this),Object.freeze(this.lines)}static splitLines(D){return D.split(t.createGlobalLinebreakMatcher())}getText(D,_,B){return D?this.text.slice(Math.max(D.range[0]-(_||0),0),D.range[1]+(B||0)):this.text}getLines(){return this.lines}getAllComments(){return this.ast.comments}getJSDocComment(D){let _=T=>{let R=this.getTokenBefore(T,{includeComments:!0});return R&&r(R)&&R.type==="Block"&&R.value.charAt(0)==="*"&&T.loc.start.line-R.loc.end.line<=1?R:null},B=D.parent;switch(D.type){case"ClassDeclaration":case"FunctionDeclaration":return _(d(B)?B:D);case"ClassExpression":return _(B.parent);case"ArrowFunctionExpression":case"FunctionExpression":if(B.type!=="CallExpression"&&B.type!=="NewExpression"){for(;!this.getCommentsBefore(B).length&&!/Function/u.test(B.type)&&B.type!=="MethodDefinition"&&B.type!=="Property"&&(B=B.parent,!!B););if(B&&B.type!=="FunctionDeclaration"&&B.type!=="Program")return _(B)}return _(D);default:return null}}getNodeByRangeIndex(D){let _=null;return s.traverse(this.ast,{visitorKeys:this.visitorKeys,enter(B){B.range[0]<=D&&Dthis.text.length)throw new RangeError(`Index out of range (requested index ${D}, but source text has length ${this.text.length}).`);if(D===this.text.length)return{line:this.lines.length,column:this.lines.at(-1).length};let _=D>=this.lineStartIndices.at(-1)?this.lineStartIndices.length:this.lineStartIndices.findIndex(B=>Dthis.lineStartIndices.length)throw new RangeError(`Line number out of range (line ${D.line} requested, but only ${this.lineStartIndices.length} lines present).`);let _=this.lineStartIndices[D.line-1],B=D.line===this.lineStartIndices.length?this.text.length:this.lineStartIndices[D.line],T=_+D.column;if(D.line===this.lineStartIndices.length&&T>B||D.line=B)throw new RangeError(`Column number out of range (column ${D.column} requested, but the length of line ${D.line} is ${B-_}).`);return T}getScope(D){if(!D)throw new TypeError("Missing required argument: node.");let _=this[E].get("scopes"),B=_.get(D);if(B)return B;let T=D.type!=="Program";for(let R=D;R;R=R.parent){let j=this.scopeManager.acquire(R,T);if(j)return j.type==="function-expression-name"?(_.set(D,j.childScopes[0]),j.childScopes[0]):(_.set(D,j),j)}return _.set(D,this.scopeManager.scopes[0]),this.scopeManager.scopes[0]}getDeclaredVariables(D){return this.scopeManager.getDeclaredVariables(D)}getAncestors(D){if(!D)throw new TypeError("Missing required argument: node.");let _=[];for(let B=D.parent;B;B=B.parent)_.push(B);return _.reverse()}markVariableAsUsed(D,_=this.ast){let B=this.getScope(_),T=B;B.type==="global"&&B.childScopes.length>0&&B.childScopes[0].block===this.ast&&(T=B.childScopes[0]);for(let R=T;R;R=R.upper){let j=R.variables.find(Q=>Q.name===D);if(j)return j.eslintUsed=!0,!0}return!1}getInlineConfigNodes(){let D=this[E].get("configNodes");return D||(D=this.ast.comments.filter(_=>{if(_.type==="Shebang")return!1;let{directivePart:B}=c.extractDirectiveComment(_.value),T=i.exec(B);return T?_.type!=="Line"||!!/^eslint-disable-(next-)?line$/u.test(T[1]):!1}),this[E].set("configNodes",D),D)}getDisableDirectives(){let D=this[E].get("disableDirectives");if(D)return D;let _=[],B=[];this.getInlineConfigNodes().forEach(R=>{let{directivePart:j,justificationPart:Q}=c.extractDirectiveComment(R.value),I=i.exec(j);if(!I)return;let N=I[1],F=/^eslint-disable-(next-)?line$/u.test(N);if(R.type==="Line"&&!F)return;if(N==="eslint-disable-line"&&R.loc.start.line!==R.loc.end.line){let V=`${N} comment should not span multiple lines.`;_.push({ruleId:null,message:V,loc:R.loc});return}let U=j.slice(I.index+N.length);switch(N){case"eslint-disable":case"eslint-enable":case"eslint-disable-next-line":case"eslint-disable-line":{let V=N.slice(7);B.push(new C({type:V,node:R,value:U,justification:Q}))}}});let T={problems:_,directives:B};return this[E].set("disableDirectives",T),T}applyLanguageOptions(D){let _=Object.assign(Object.create(null),f(D.ecmaVersion),D.sourceType==="commonjs"?n.commonjs:void 0,D.globals);this[E].get("vars").set("configGlobals",_)}applyInlineConfig(){let D=[],_=[],B={},T=Object.create(null);this.getInlineConfigNodes().forEach(j=>{let{directiveText:Q,directiveValue:I}=c.parseDirective(j);switch(Q){case"exported":Object.assign(B,c.parseListConfig(I,j));break;case"globals":case"global":for(let[N,{value:F}]of Object.entries(c.parseStringConfig(I,j))){let U;try{U=g(F)}catch(V){D.push({ruleId:null,loc:j.loc,message:V.message});continue}T[N]?(T[N].comments.push(j),T[N].value=U):T[N]={comments:[j],value:U}}break;case"eslint":{let N=c.parseJsonConfig(I,j.loc);N.success?_.push({config:{rules:N.config},node:j}):D.push(N.error);break}}});let R=this[E].get("vars");return R.set("inlineGlobals",T),R.set("exportedVariables",B),{configs:_,problems:D}}finalize(){let D=this[E].get("vars"),_=this.scopeManager.scopes[0],B=D.get("configGlobals"),T=D.get("inlineGlobals"),R=D.get("exportedVariables");x(_,B,T),R&&S(_,R)}traverse(){if(this.#e)return this.#e;let D=this.#e=[],_=l(),B={enterNode(R){D.push(new O({type:"visit",target:R,phase:1,args:[R,R.parent]}))},leaveNode(R){D.push(new O({type:"visit",target:R,phase:2,args:[R,R.parent]}))},emitter:_};return this.ast.type==="Program"&&(B=new a(B),p.forEach(R=>{_.on(R,(...j)=>{D.push(new O({type:"call",target:R,args:j}))})})),s.traverse(this.ast,{enter(R,j){R.parent=j,B.enterNode(R)},leave(R){B.leaveNode(R)},visitorKeys:this.visitorKeys}),D}}return Lm=k,Lm}var $m,ET;function X4(){return ET||(ET=1,$m={SourceCode:G4()}),$m}var Mm,wT;function Sc(){return wT||(wT=1,Mm=r=>{if(typeof r!="string")throw new TypeError("Expected a string");return r.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}),Mm}var jm,CT;function Y4(){if(CT)return jm;CT=1;let r=Sc(),{Legacy:{ConfigOps:e}}=PO();function t(u,c){return u.line-c.line||u.column-c.column}function s(u){let c=new Map;for(let p of u){let{unprocessedDirective:{parentDirective:h}}=p;c.has(h)?c.get(h).push(p):c.set(h,[p])}return[...c.values()]}function n(u,c){let p=c.range[0]+2,h=/^\s*\S+\s+/u.exec(c.value)[0].length,f=c.value.slice(h).split(/\s-{2,}\s/u)[0].trimEnd();return u.map(d=>{let{ruleId:m}=d,y=new RegExp(String.raw`(?:^|\s*,\s*)(?['"]?)${r(m)}\k(?:\s*,\s*|$)`,"u").exec(f),v=y[0],x=h+y.index,S=x+v.length,w=v.indexOf(","),O=v.lastIndexOf(","),C,E;return w!==O?(C=x+w,E=x+O):(C=x,E=S),{description:`'${m}'`,fix:{range:[p+C,p+E],text:""},unprocessedDirective:d.unprocessedDirective}})}function i(u,c){let{range:p}=c,h=u.filter(f=>f.ruleId).map(f=>`'${f.ruleId}'`);return{description:h.length<=2?h.join(" or "):`${h.slice(0,h.length-1).join(", ")}, or ${h.at(-1)}`,fix:{range:p,text:" "},unprocessedDirective:u[0].unprocessedDirective}}function a(u){return s(u).flatMap(p=>{let{parentDirective:h}=p[0].unprocessedDirective,f=new Set(h.ruleIds);for(let d of p)f.delete(d.ruleId);return f.size?n(p,h.node):[i(p,h.node)]})}function l(u){let c=new Map,p=new Set;for(let h=u.length-1;h>=0;h--){let f=u[h];if(f.type==="disable"){if(c.size===0)continue;if(f.ruleId===null){for(let d of c.values())p.add(d);c.clear()}else{let d=c.get(f.ruleId);if(d)p.add(d);else{let m=c.get(null);m&&p.add(m)}}}else f.type==="enable"&&(f.ruleId===null?(c.clear(),c.set(null,f)):c.set(f.ruleId,f))}return p}function o(u){let c=[],p=new Set;for(let g of u.problems){let y=[],v=0;for(;v0){let x=y.map(S=>({kind:"directive",justification:S.unprocessedDirective.justification}));g.suppressions?g.suppressions=g.suppressions.concat(x):(g.suppressions=x,p.add(y.at(-1)))}c.push(g)}let h=u.directives.filter(g=>g.type==="disable"&&!p.has(g)&&!u.rulesToIgnore.has(g.ruleId)),f=new Set(u.directives.filter(g=>g.unprocessedDirective.type==="enable"&&!u.rulesToIgnore.has(g.ruleId)));if(f.size>0)for(let g of l(u.directives))f.delete(g);let m=a(h).concat(a(f)).map(({description:g,fix:y,unprocessedDirective:v})=>{let{parentDirective:x,type:S,line:w,column:O}=v,C;return S==="enable"?C=g?`Unused eslint-enable directive (no matching eslint-disable directives were found for ${g}).`:"Unused eslint-enable directive (no matching eslint-disable directives were found).":C=g?`Unused eslint-disable directive (no problems were reported from ${g}).`:"Unused eslint-disable directive (no problems were reported).",{ruleId:null,message:C,line:S==="disable-next-line"?x.node.loc.start.line:w,column:S==="disable-next-line"?x.node.loc.start.column+1:O,severity:u.reportUnusedDisableDirectives==="warn"?1:2,nodeType:null,...u.disableFixes?{}:{fix:y}}});return{problems:c,unusedDirectives:m}}return jm=({directives:u,disableFixes:c,problems:p,configuredRules:h,ruleFilter:f,reportUnusedDisableDirectives:d="off"})=>{let m=u.filter(S=>S.type==="disable"||S.type==="enable").map(S=>Object.assign({},S,{unprocessedDirective:S})).sort(t),g=u.flatMap(S=>{switch(S.type){case"disable":case"enable":return[];case"disable-line":return[{type:"disable",line:S.line,column:1,ruleId:S.ruleId,unprocessedDirective:S},{type:"enable",line:S.line+1,column:0,ruleId:S.ruleId,unprocessedDirective:S}];case"disable-next-line":return[{type:"disable",line:S.line+1,column:1,ruleId:S.ruleId,unprocessedDirective:S},{type:"enable",line:S.line+2,column:0,ruleId:S.ruleId,unprocessedDirective:S}];default:throw new TypeError(`Unrecognized directive type '${S.type}'`)}}).sort(t),y=h&&f?new Set(Object.keys(h).filter(S=>{let w=e.getRuleSeverity(h[S]);return w===0?!1:!f({severity:w,ruleId:S})})):new Set;y.size>0&&y.add(null);let v=o({problems:p,directives:m,disableFixes:c,reportUnusedDisableDirectives:d,rulesToIgnore:y}),x=o({problems:v.problems,directives:g,disableFixes:c,reportUnusedDisableDirectives:d,rulesToIgnore:y});return d!=="off"?x.problems.concat(v.unusedDirectives).concat(x.unusedDirectives).sort(t):x.problems},jm}function qo(r){return(qo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(r)}function RO(r,e){return function(t){if(Array.isArray(t))return t}(r)||function(t,s){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var i,a,l,o,u=[],c=!0,p=!1;try{if(l=(n=n.call(t)).next,s!==0)for(;!(c=(i=l.call(n)).done)&&(u.push(i.value),u.length!==s);c=!0);}catch(h){p=!0,a=h}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(p)throw a}}return u}}(r,e)||GB(r,e)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function H4(r){return function(e){if(Array.isArray(e))return eO(e)}(r)||function(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}(r)||GB(r)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function GB(r,e){if(r){if(typeof r=="string")return eO(r,e);var t=Object.prototype.toString.call(r).slice(8,-1);return t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set"?Array.from(r):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?eO(r,e):void 0}}function eO(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,s=new Array(e);t=0;--w)if(x[w].node===S)return!0;return!1}function y(x,S){return new f().traverse(x,S)}function v(x,S){var w;return w=function(O,C){var E,k,A,D;for(k=O.length,A=0;k;)C(O[D=A+(E=k>>>1)])?k=E:(A=D+1,k-=E+1);return A}(S,function(O){return O.range[0]>x.range[0]}),x.extendedRange=[x.range[0],x.range[1]],w!==S.length&&(x.extendedRange[1]=S[w].range[0]),(w-=1)>=0&&(x.extendedRange[0]=S[w].range[1]),x}return n={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ChainExpression:"ChainExpression",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ComprehensionBlock:"ComprehensionBlock",ComprehensionExpression:"ComprehensionExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DebuggerStatement:"DebuggerStatement",DirectiveStatement:"DirectiveStatement",DoWhileStatement:"DoWhileStatement",EmptyStatement:"EmptyStatement",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForInStatement:"ForInStatement",ForOfStatement:"ForOfStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",GeneratorExpression:"GeneratorExpression",Identifier:"Identifier",IfStatement:"IfStatement",ImportExpression:"ImportExpression",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",ModuleSpecifier:"ModuleSpecifier",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",PrivateIdentifier:"PrivateIdentifier",Program:"Program",Property:"Property",PropertyDefinition:"PropertyDefinition",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchStatement:"SwitchStatement",SwitchCase:"SwitchCase",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"},a={AssignmentExpression:["left","right"],AssignmentPattern:["left","right"],ArrayExpression:["elements"],ArrayPattern:["elements"],ArrowFunctionExpression:["params","body"],AwaitExpression:["argument"],BlockStatement:["body"],BinaryExpression:["left","right"],BreakStatement:["label"],CallExpression:["callee","arguments"],CatchClause:["param","body"],ChainExpression:["expression"],ClassBody:["body"],ClassDeclaration:["id","superClass","body"],ClassExpression:["id","superClass","body"],ComprehensionBlock:["left","right"],ComprehensionExpression:["blocks","filter","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DirectiveStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExportAllDeclaration:["source"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source"],ExportSpecifier:["exported","local"],ExpressionStatement:["expression"],ForStatement:["init","test","update","body"],ForInStatement:["left","right","body"],ForOfStatement:["left","right","body"],FunctionDeclaration:["id","params","body"],FunctionExpression:["id","params","body"],GeneratorExpression:["blocks","filter","body"],Identifier:[],IfStatement:["test","consequent","alternate"],ImportExpression:["source"],ImportDeclaration:["specifiers","source"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],Literal:[],LabeledStatement:["label","body"],LogicalExpression:["left","right"],MemberExpression:["object","property"],MetaProperty:["meta","property"],MethodDefinition:["key","value"],ModuleSpecifier:[],NewExpression:["callee","arguments"],ObjectExpression:["properties"],ObjectPattern:["properties"],PrivateIdentifier:[],Program:["body"],Property:["key","value"],PropertyDefinition:["key","value"],RestElement:["argument"],ReturnStatement:["argument"],SequenceExpression:["expressions"],SpreadElement:["argument"],Super:[],SwitchStatement:["discriminant","cases"],SwitchCase:["test","consequent"],TaggedTemplateExpression:["tag","quasi"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],YieldExpression:["argument"]},i={Break:l={},Skip:o={},Remove:u={}},p.prototype.replace=function(x){this.parent[this.key]=x},p.prototype.remove=function(){return Array.isArray(this.parent)?(this.parent.splice(this.key,1),!0):(this.replace(null),!1)},f.prototype.path=function(){var x,S,w,O,C;function E(k,A){if(Array.isArray(A))for(w=0,O=A.length;w=0;)if(R=E[D=T[_]]){if(Array.isArray(R)){for(B=R.length;(B-=1)>=0;)if(R[B]&&!g(O,R[B])){if(m(k,T[_]))C=new h(R[B],[D,B],"Property",null);else{if(!d(R[B]))continue;C=new h(R[B],[D,B],null,null)}w.push(C)}}else if(d(R)){if(g(O,R))continue;w.push(new h(R,D,null,null))}}}}else if(C=O.pop(),A=this.__execute(S.leave,C),this.__state===l||A===l)return},f.prototype.replace=function(x,S){var w,O,C,E,k,A,D,_,B,T,R,j,Q;function I(N){var F,U,V,ae;if(N.ref.remove()){for(U=N.ref.key,ae=N.ref.parent,F=w.length;F--;)if((V=w[F]).ref&&V.ref.parent===ae){if(V.ref.key=0;)if(T=C[Q=B[D]])if(Array.isArray(T)){for(_=T.length;(_-=1)>=0;)if(T[_]){if(m(E,B[D]))A=new h(T[_],[Q,_],"Property",new p(T,_));else{if(!d(T[_]))continue;A=new h(T[_],[Q,_],null,new p(T,_))}w.push(A)}}else d(T)&&w.push(new h(T,Q,null,new p(C,Q)))}}else if(A=O.pop(),(k=this.__execute(S.leave,A))!==void 0&&k!==l&&k!==o&&k!==u&&A.ref.replace(k),this.__state!==u&&k!==u||I(A),this.__state===l||k===l)return j.root;return j.root},s.Syntax=n,s.traverse=y,s.replace=function(x,S){return new f().replace(x,S)},s.attachComments=function(x,S,w){var O,C,E,k,A=[];if(!x.range)throw new Error("attachComments needs range information");if(!w.length){if(S.length){for(E=0,C=S.length;ED.range[0]);)_.extendedRange[1]===D.range[0]?(D.leadingComments||(D.leadingComments=[]),D.leadingComments.push(_),A.splice(k,1)):k+=1;return k===A.length?i.Break:A[k].extendedRange[0]>D.range[1]?i.Skip:void 0}}),k=0,y(x,{leave:function(D){for(var _;kD.range[1]?i.Skip:void 0}}),x},s.VisitorKeys=a,s.VisitorOption=i,s.Controller=f,s.cloneEnvironment=function(){return t({})},s})(e)}),K4=XB(function(r){r.exports&&(r.exports=function(){function e(t,s,n,i){this.message=t,this.expected=s,this.found=n,this.location=i,this.name="SyntaxError",typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,e)}return function(t,s){function n(){this.constructor=t}n.prototype=s.prototype,t.prototype=new n}(e,Error),e.buildMessage=function(t,s){var n={literal:function(o){return'"'+a(o.text)+'"'},class:function(o){var u,c="";for(u=0;u0){for(u=1,c=1;u<~+.]/,f=ne([" ","[","]",",","(",")",":","#","!","=",">","<","~","+","."],!0,!1),d=X(">",!1),m=X("~",!1),g=X("+",!1),y=X(",",!1),v=X("!",!1),x=X("*",!1),S=X("#",!1),w=X("[",!1),O=X("]",!1),C=/^[>","<","!"],!1,!1),k=X("=",!1),A=function(Oe){return(Oe||"")+"="},D=/^[><]/,_=ne([">","<"],!1,!1),B=X(".",!1),T=function(Oe,Ie,We){return{type:"attribute",name:Oe,operator:Ie,value:We}},R=X('"',!1),j=/^[^\\"]/,Q=ne(["\\",'"'],!0,!1),I=X("\\",!1),N={type:"any"},F=function(Oe,Ie){return Oe+Ie},U=function(Oe){return{type:"literal",value:(Ie=Oe.join(""),Ie.replace(/\\(.)/g,function(We,ve){switch(ve){case"b":return"\b";case"f":return"\f";case"n":return` +`;case"r":return"\r";case"t":return" ";case"v":return"\v";default:return ve}}))};var Ie},V=X("'",!1),ae=/^[^\\']/,se=ne(["\\","'"],!0,!1),xe=/^[0-9]/,H=ne([["0","9"]],!1,!1),he=X("type(",!1),$=/^[^ )]/,pe=ne([" ",")"],!0,!1),K=X(")",!1),le=/^[imsu]/,be=ne(["i","m","s","u"],!1,!1),Le=X("/",!1),qe=/^[^\/]/,rt=ne(["/"],!0,!1),ht=X(":not(",!1),pt=X(":matches(",!1),Et=X(":has(",!1),G=X(":first-child",!1),Ce=X(":last-child",!1),Ve=X(":nth-child(",!1),et=X(":nth-last-child(",!1),it=X(":",!1),st=X("statement",!0),wt=X("expression",!0),vt=X("declaration",!0),Dt=X("function",!0),_t=X("pattern",!0),W=0,xt=[{line:1,column:1}],Ye=0,Kt=[],De={};if("startRule"in s){if(!(s.startRule in u))throw new Error(`Can't start parsing from rule "`+s.startRule+'".');c=u[s.startRule]}function X(Oe,Ie){return{type:"literal",text:Oe,ignoreCase:Ie}}function ne(Oe,Ie,We){return{type:"class",parts:Oe,inverted:Ie,ignoreCase:We}}function ee(Oe){var Ie,We=xt[Oe];if(We)return We;for(Ie=Oe-1;!xt[Ie];)Ie--;for(We={line:(We=xt[Ie]).line,column:We.column};IeYe&&(Ye=W,Kt=[]),Kt.push(Oe))}function z(){var Oe,Ie,We,ve,re=30*W+0,Y=De[re];return Y?(W=Y.nextPos,Y.result):(Oe=W,(Ie=J())!==o&&(We=we())!==o&&J()!==o?Oe=Ie=(ve=We).length===1?ve[0]:{type:"matches",selectors:ve}:(W=Oe,Oe=o),Oe===o&&(Oe=W,(Ie=J())!==o&&(Ie=void 0),Oe=Ie),De[re]={nextPos:W,result:Oe},Oe)}function J(){var Oe,Ie,We=30*W+1,ve=De[We];if(ve)return W=ve.nextPos,ve.result;for(Oe=[],t.charCodeAt(W)===32?(Ie=" ",W++):(Ie=o,ce(p));Ie!==o;)Oe.push(Ie),t.charCodeAt(W)===32?(Ie=" ",W++):(Ie=o,ce(p));return De[We]={nextPos:W,result:Oe},Oe}function ie(){var Oe,Ie,We,ve=30*W+2,re=De[ve];if(re)return W=re.nextPos,re.result;if(Ie=[],h.test(t.charAt(W))?(We=t.charAt(W),W++):(We=o,ce(f)),We!==o)for(;We!==o;)Ie.push(We),h.test(t.charAt(W))?(We=t.charAt(W),W++):(We=o,ce(f));else Ie=o;return Ie!==o&&(Ie=Ie.join("")),Oe=Ie,De[ve]={nextPos:W,result:Oe},Oe}function de(){var Oe,Ie,We,ve=30*W+3,re=De[ve];return re?(W=re.nextPos,re.result):(Oe=W,(Ie=J())!==o?(t.charCodeAt(W)===62?(We=">",W++):(We=o,ce(d)),We!==o&&J()!==o?Oe=Ie="child":(W=Oe,Oe=o)):(W=Oe,Oe=o),Oe===o&&(Oe=W,(Ie=J())!==o?(t.charCodeAt(W)===126?(We="~",W++):(We=o,ce(m)),We!==o&&J()!==o?Oe=Ie="sibling":(W=Oe,Oe=o)):(W=Oe,Oe=o),Oe===o&&(Oe=W,(Ie=J())!==o?(t.charCodeAt(W)===43?(We="+",W++):(We=o,ce(g)),We!==o&&J()!==o?Oe=Ie="adjacent":(W=Oe,Oe=o)):(W=Oe,Oe=o),Oe===o&&(Oe=W,t.charCodeAt(W)===32?(Ie=" ",W++):(Ie=o,ce(p)),Ie!==o&&(We=J())!==o?Oe=Ie="descendant":(W=Oe,Oe=o)))),De[ve]={nextPos:W,result:Oe},Oe)}function we(){var Oe,Ie,We,ve,re,Y,fe,Se,Ee=30*W+4,Ze=De[Ee];if(Ze)return W=Ze.nextPos,Ze.result;if(Oe=W,(Ie=L())!==o){for(We=[],ve=W,(re=J())!==o?(t.charCodeAt(W)===44?(Y=",",W++):(Y=o,ce(y)),Y!==o&&(fe=J())!==o&&(Se=L())!==o?ve=re=[re,Y,fe,Se]:(W=ve,ve=o)):(W=ve,ve=o);ve!==o;)We.push(ve),ve=W,(re=J())!==o?(t.charCodeAt(W)===44?(Y=",",W++):(Y=o,ce(y)),Y!==o&&(fe=J())!==o&&(Se=L())!==o?ve=re=[re,Y,fe,Se]:(W=ve,ve=o)):(W=ve,ve=o);We!==o?Oe=Ie=[Ie].concat(We.map(function(Ke){return Ke[3]})):(W=Oe,Oe=o)}else W=Oe,Oe=o;return De[Ee]={nextPos:W,result:Oe},Oe}function L(){var Oe,Ie,We,ve,re,Y,fe,Se=30*W+5,Ee=De[Se];if(Ee)return W=Ee.nextPos,Ee.result;if(Oe=W,(Ie=ue())!==o){for(We=[],ve=W,(re=de())!==o&&(Y=ue())!==o?ve=re=[re,Y]:(W=ve,ve=o);ve!==o;)We.push(ve),ve=W,(re=de())!==o&&(Y=ue())!==o?ve=re=[re,Y]:(W=ve,ve=o);We!==o?(fe=Ie,Oe=Ie=We.reduce(function(Ze,Ke){return{type:Ke[0],left:Ze,right:Ke[1]}},fe)):(W=Oe,Oe=o)}else W=Oe,Oe=o;return De[Se]={nextPos:W,result:Oe},Oe}function ue(){var Oe,Ie,We,ve,re,Y,fe,Se=30*W+6,Ee=De[Se];if(Ee)return W=Ee.nextPos,Ee.result;if(Oe=W,t.charCodeAt(W)===33?(Ie="!",W++):(Ie=o,ce(v)),Ie===o&&(Ie=null),Ie!==o){if(We=[],(ve=Te())!==o)for(;ve!==o;)We.push(ve),ve=Te();else We=o;We!==o?(re=Ie,fe=(Y=We).length===1?Y[0]:{type:"compound",selectors:Y},re&&(fe.subject=!0),Oe=Ie=fe):(W=Oe,Oe=o)}else W=Oe,Oe=o;return De[Se]={nextPos:W,result:Oe},Oe}function Te(){var Oe,Ie=30*W+7,We=De[Ie];return We?(W=We.nextPos,We.result):((Oe=function(){var ve,re,Y=30*W+8,fe=De[Y];return fe?(W=fe.nextPos,fe.result):(t.charCodeAt(W)===42?(re="*",W++):(re=o,ce(x)),re!==o&&(re={type:"wildcard",value:re}),ve=re,De[Y]={nextPos:W,result:ve},ve)}())===o&&(Oe=function(){var ve,re,Y,fe=30*W+9,Se=De[fe];return Se?(W=Se.nextPos,Se.result):(ve=W,t.charCodeAt(W)===35?(re="#",W++):(re=o,ce(S)),re===o&&(re=null),re!==o&&(Y=ie())!==o?ve=re={type:"identifier",value:Y}:(W=ve,ve=o),De[fe]={nextPos:W,result:ve},ve)}())===o&&(Oe=function(){var ve,re,Y,fe,Se=30*W+10,Ee=De[Se];return Ee?(W=Ee.nextPos,Ee.result):(ve=W,t.charCodeAt(W)===91?(re="[",W++):(re=o,ce(w)),re!==o&&J()!==o&&(Y=function(){var Ze,Ke,mt,Ot,Pt=30*W+14,bt=De[Pt];return bt?(W=bt.nextPos,bt.result):(Ze=W,(Ke=Be())!==o&&J()!==o&&(mt=function(){var Ue,nt,Xe,Qe=30*W+12,ut=De[Qe];return ut?(W=ut.nextPos,ut.result):(Ue=W,t.charCodeAt(W)===33?(nt="!",W++):(nt=o,ce(v)),nt===o&&(nt=null),nt!==o?(t.charCodeAt(W)===61?(Xe="=",W++):(Xe=o,ce(k)),Xe!==o?(nt=A(nt),Ue=nt):(W=Ue,Ue=o)):(W=Ue,Ue=o),De[Qe]={nextPos:W,result:Ue},Ue)}())!==o&&J()!==o?((Ot=function(){var Ue,nt,Xe,Qe,ut,dt=30*W+18,qt=De[dt];if(qt)return W=qt.nextPos,qt.result;if(Ue=W,t.substr(W,5)==="type("?(nt="type(",W+=5):(nt=o,ce(he)),nt!==o)if(J()!==o){if(Xe=[],$.test(t.charAt(W))?(Qe=t.charAt(W),W++):(Qe=o,ce(pe)),Qe!==o)for(;Qe!==o;)Xe.push(Qe),$.test(t.charAt(W))?(Qe=t.charAt(W),W++):(Qe=o,ce(pe));else Xe=o;Xe!==o&&(Qe=J())!==o?(t.charCodeAt(W)===41?(ut=")",W++):(ut=o,ce(K)),ut!==o?(nt={type:"type",value:Xe.join("")},Ue=nt):(W=Ue,Ue=o)):(W=Ue,Ue=o)}else W=Ue,Ue=o;else W=Ue,Ue=o;return De[dt]={nextPos:W,result:Ue},Ue}())===o&&(Ot=function(){var Ue,nt,Xe,Qe,ut,dt,qt=30*W+20,Qt=De[qt];if(Qt)return W=Qt.nextPos,Qt.result;if(Ue=W,t.charCodeAt(W)===47?(nt="/",W++):(nt=o,ce(Le)),nt!==o){if(Xe=[],qe.test(t.charAt(W))?(Qe=t.charAt(W),W++):(Qe=o,ce(rt)),Qe!==o)for(;Qe!==o;)Xe.push(Qe),qe.test(t.charAt(W))?(Qe=t.charAt(W),W++):(Qe=o,ce(rt));else Xe=o;Xe!==o?(t.charCodeAt(W)===47?(Qe="/",W++):(Qe=o,ce(Le)),Qe!==o?((ut=function(){var jt,sr,ot=30*W+19,Nt=De[ot];if(Nt)return W=Nt.nextPos,Nt.result;if(jt=[],le.test(t.charAt(W))?(sr=t.charAt(W),W++):(sr=o,ce(be)),sr!==o)for(;sr!==o;)jt.push(sr),le.test(t.charAt(W))?(sr=t.charAt(W),W++):(sr=o,ce(be));else jt=o;return De[ot]={nextPos:W,result:jt},jt}())===o&&(ut=null),ut!==o?(dt=ut,nt={type:"regexp",value:new RegExp(Xe.join(""),dt?dt.join(""):"")},Ue=nt):(W=Ue,Ue=o)):(W=Ue,Ue=o)):(W=Ue,Ue=o)}else W=Ue,Ue=o;return De[qt]={nextPos:W,result:Ue},Ue}()),Ot!==o?(Ke=T(Ke,mt,Ot),Ze=Ke):(W=Ze,Ze=o)):(W=Ze,Ze=o),Ze===o&&(Ze=W,(Ke=Be())!==o&&J()!==o&&(mt=function(){var Ue,nt,Xe,Qe=30*W+11,ut=De[Qe];return ut?(W=ut.nextPos,ut.result):(Ue=W,C.test(t.charAt(W))?(nt=t.charAt(W),W++):(nt=o,ce(E)),nt===o&&(nt=null),nt!==o?(t.charCodeAt(W)===61?(Xe="=",W++):(Xe=o,ce(k)),Xe!==o?(nt=A(nt),Ue=nt):(W=Ue,Ue=o)):(W=Ue,Ue=o),Ue===o&&(D.test(t.charAt(W))?(Ue=t.charAt(W),W++):(Ue=o,ce(_))),De[Qe]={nextPos:W,result:Ue},Ue)}())!==o&&J()!==o?((Ot=function(){var Ue,nt,Xe,Qe,ut,dt,qt=30*W+15,Qt=De[qt];if(Qt)return W=Qt.nextPos,Qt.result;if(Ue=W,t.charCodeAt(W)===34?(nt='"',W++):(nt=o,ce(R)),nt!==o){for(Xe=[],j.test(t.charAt(W))?(Qe=t.charAt(W),W++):(Qe=o,ce(Q)),Qe===o&&(Qe=W,t.charCodeAt(W)===92?(ut="\\",W++):(ut=o,ce(I)),ut!==o?(t.length>W?(dt=t.charAt(W),W++):(dt=o,ce(N)),dt!==o?(ut=F(ut,dt),Qe=ut):(W=Qe,Qe=o)):(W=Qe,Qe=o));Qe!==o;)Xe.push(Qe),j.test(t.charAt(W))?(Qe=t.charAt(W),W++):(Qe=o,ce(Q)),Qe===o&&(Qe=W,t.charCodeAt(W)===92?(ut="\\",W++):(ut=o,ce(I)),ut!==o?(t.length>W?(dt=t.charAt(W),W++):(dt=o,ce(N)),dt!==o?(ut=F(ut,dt),Qe=ut):(W=Qe,Qe=o)):(W=Qe,Qe=o));Xe!==o?(t.charCodeAt(W)===34?(Qe='"',W++):(Qe=o,ce(R)),Qe!==o?(nt=U(Xe),Ue=nt):(W=Ue,Ue=o)):(W=Ue,Ue=o)}else W=Ue,Ue=o;if(Ue===o)if(Ue=W,t.charCodeAt(W)===39?(nt="'",W++):(nt=o,ce(V)),nt!==o){for(Xe=[],ae.test(t.charAt(W))?(Qe=t.charAt(W),W++):(Qe=o,ce(se)),Qe===o&&(Qe=W,t.charCodeAt(W)===92?(ut="\\",W++):(ut=o,ce(I)),ut!==o?(t.length>W?(dt=t.charAt(W),W++):(dt=o,ce(N)),dt!==o?(ut=F(ut,dt),Qe=ut):(W=Qe,Qe=o)):(W=Qe,Qe=o));Qe!==o;)Xe.push(Qe),ae.test(t.charAt(W))?(Qe=t.charAt(W),W++):(Qe=o,ce(se)),Qe===o&&(Qe=W,t.charCodeAt(W)===92?(ut="\\",W++):(ut=o,ce(I)),ut!==o?(t.length>W?(dt=t.charAt(W),W++):(dt=o,ce(N)),dt!==o?(ut=F(ut,dt),Qe=ut):(W=Qe,Qe=o)):(W=Qe,Qe=o));Xe!==o?(t.charCodeAt(W)===39?(Qe="'",W++):(Qe=o,ce(V)),Qe!==o?(nt=U(Xe),Ue=nt):(W=Ue,Ue=o)):(W=Ue,Ue=o)}else W=Ue,Ue=o;return De[qt]={nextPos:W,result:Ue},Ue}())===o&&(Ot=function(){var Ue,nt,Xe,Qe,ut,dt,qt,Qt=30*W+16,jt=De[Qt];if(jt)return W=jt.nextPos,jt.result;for(Ue=W,nt=W,Xe=[],xe.test(t.charAt(W))?(Qe=t.charAt(W),W++):(Qe=o,ce(H));Qe!==o;)Xe.push(Qe),xe.test(t.charAt(W))?(Qe=t.charAt(W),W++):(Qe=o,ce(H));if(Xe!==o?(t.charCodeAt(W)===46?(Qe=".",W++):(Qe=o,ce(B)),Qe!==o?nt=Xe=[Xe,Qe]:(W=nt,nt=o)):(W=nt,nt=o),nt===o&&(nt=null),nt!==o){if(Xe=[],xe.test(t.charAt(W))?(Qe=t.charAt(W),W++):(Qe=o,ce(H)),Qe!==o)for(;Qe!==o;)Xe.push(Qe),xe.test(t.charAt(W))?(Qe=t.charAt(W),W++):(Qe=o,ce(H));else Xe=o;Xe!==o?(dt=Xe,qt=(ut=nt)?[].concat.apply([],ut).join(""):"",nt={type:"literal",value:parseFloat(qt+dt.join(""))},Ue=nt):(W=Ue,Ue=o)}else W=Ue,Ue=o;return De[Qt]={nextPos:W,result:Ue},Ue}())===o&&(Ot=function(){var Ue,nt,Xe=30*W+17,Qe=De[Xe];return Qe?(W=Qe.nextPos,Qe.result):((nt=ie())!==o&&(nt={type:"literal",value:nt}),Ue=nt,De[Xe]={nextPos:W,result:Ue},Ue)}()),Ot!==o?(Ke=T(Ke,mt,Ot),Ze=Ke):(W=Ze,Ze=o)):(W=Ze,Ze=o),Ze===o&&(Ze=W,(Ke=Be())!==o&&(Ke={type:"attribute",name:Ke}),Ze=Ke)),De[Pt]={nextPos:W,result:Ze},Ze)}())!==o&&J()!==o?(t.charCodeAt(W)===93?(fe="]",W++):(fe=o,ce(O)),fe!==o?ve=re=Y:(W=ve,ve=o)):(W=ve,ve=o),De[Se]={nextPos:W,result:ve},ve)}())===o&&(Oe=function(){var ve,re,Y,fe,Se,Ee,Ze,Ke,mt=30*W+21,Ot=De[mt];if(Ot)return W=Ot.nextPos,Ot.result;if(ve=W,t.charCodeAt(W)===46?(re=".",W++):(re=o,ce(B)),re!==o)if((Y=ie())!==o){for(fe=[],Se=W,t.charCodeAt(W)===46?(Ee=".",W++):(Ee=o,ce(B)),Ee!==o&&(Ze=ie())!==o?Se=Ee=[Ee,Ze]:(W=Se,Se=o);Se!==o;)fe.push(Se),Se=W,t.charCodeAt(W)===46?(Ee=".",W++):(Ee=o,ce(B)),Ee!==o&&(Ze=ie())!==o?Se=Ee=[Ee,Ze]:(W=Se,Se=o);fe!==o?(Ke=Y,re={type:"field",name:fe.reduce(function(Pt,bt){return Pt+bt[0]+bt[1]},Ke)},ve=re):(W=ve,ve=o)}else W=ve,ve=o;else W=ve,ve=o;return De[mt]={nextPos:W,result:ve},ve}())===o&&(Oe=function(){var ve,re,Y,fe,Se=30*W+22,Ee=De[Se];return Ee?(W=Ee.nextPos,Ee.result):(ve=W,t.substr(W,5)===":not("?(re=":not(",W+=5):(re=o,ce(ht)),re!==o&&J()!==o&&(Y=we())!==o&&J()!==o?(t.charCodeAt(W)===41?(fe=")",W++):(fe=o,ce(K)),fe!==o?ve=re={type:"not",selectors:Y}:(W=ve,ve=o)):(W=ve,ve=o),De[Se]={nextPos:W,result:ve},ve)}())===o&&(Oe=function(){var ve,re,Y,fe,Se=30*W+23,Ee=De[Se];return Ee?(W=Ee.nextPos,Ee.result):(ve=W,t.substr(W,9)===":matches("?(re=":matches(",W+=9):(re=o,ce(pt)),re!==o&&J()!==o&&(Y=we())!==o&&J()!==o?(t.charCodeAt(W)===41?(fe=")",W++):(fe=o,ce(K)),fe!==o?ve=re={type:"matches",selectors:Y}:(W=ve,ve=o)):(W=ve,ve=o),De[Se]={nextPos:W,result:ve},ve)}())===o&&(Oe=function(){var ve,re,Y,fe,Se=30*W+24,Ee=De[Se];return Ee?(W=Ee.nextPos,Ee.result):(ve=W,t.substr(W,5)===":has("?(re=":has(",W+=5):(re=o,ce(Et)),re!==o&&J()!==o&&(Y=we())!==o&&J()!==o?(t.charCodeAt(W)===41?(fe=")",W++):(fe=o,ce(K)),fe!==o?ve=re={type:"has",selectors:Y}:(W=ve,ve=o)):(W=ve,ve=o),De[Se]={nextPos:W,result:ve},ve)}())===o&&(Oe=function(){var ve,re,Y=30*W+25,fe=De[Y];return fe?(W=fe.nextPos,fe.result):(t.substr(W,12)===":first-child"?(re=":first-child",W+=12):(re=o,ce(G)),re!==o&&(re=$e(1)),ve=re,De[Y]={nextPos:W,result:ve},ve)}())===o&&(Oe=function(){var ve,re,Y=30*W+26,fe=De[Y];return fe?(W=fe.nextPos,fe.result):(t.substr(W,11)===":last-child"?(re=":last-child",W+=11):(re=o,ce(Ce)),re!==o&&(re=Fe(1)),ve=re,De[Y]={nextPos:W,result:ve},ve)}())===o&&(Oe=function(){var ve,re,Y,fe,Se,Ee=30*W+27,Ze=De[Ee];if(Ze)return W=Ze.nextPos,Ze.result;if(ve=W,t.substr(W,11)===":nth-child("?(re=":nth-child(",W+=11):(re=o,ce(Ve)),re!==o)if(J()!==o){if(Y=[],xe.test(t.charAt(W))?(fe=t.charAt(W),W++):(fe=o,ce(H)),fe!==o)for(;fe!==o;)Y.push(fe),xe.test(t.charAt(W))?(fe=t.charAt(W),W++):(fe=o,ce(H));else Y=o;Y!==o&&(fe=J())!==o?(t.charCodeAt(W)===41?(Se=")",W++):(Se=o,ce(K)),Se!==o?(re=$e(parseInt(Y.join(""),10)),ve=re):(W=ve,ve=o)):(W=ve,ve=o)}else W=ve,ve=o;else W=ve,ve=o;return De[Ee]={nextPos:W,result:ve},ve}())===o&&(Oe=function(){var ve,re,Y,fe,Se,Ee=30*W+28,Ze=De[Ee];if(Ze)return W=Ze.nextPos,Ze.result;if(ve=W,t.substr(W,16)===":nth-last-child("?(re=":nth-last-child(",W+=16):(re=o,ce(et)),re!==o)if(J()!==o){if(Y=[],xe.test(t.charAt(W))?(fe=t.charAt(W),W++):(fe=o,ce(H)),fe!==o)for(;fe!==o;)Y.push(fe),xe.test(t.charAt(W))?(fe=t.charAt(W),W++):(fe=o,ce(H));else Y=o;Y!==o&&(fe=J())!==o?(t.charCodeAt(W)===41?(Se=")",W++):(Se=o,ce(K)),Se!==o?(re=Fe(parseInt(Y.join(""),10)),ve=re):(W=ve,ve=o)):(W=ve,ve=o)}else W=ve,ve=o;else W=ve,ve=o;return De[Ee]={nextPos:W,result:ve},ve}())===o&&(Oe=function(){var ve,re,Y,fe=30*W+29,Se=De[fe];return Se?(W=Se.nextPos,Se.result):(ve=W,t.charCodeAt(W)===58?(re=":",W++):(re=o,ce(it)),re!==o?(t.substr(W,9).toLowerCase()==="statement"?(Y=t.substr(W,9),W+=9):(Y=o,ce(st)),Y===o&&(t.substr(W,10).toLowerCase()==="expression"?(Y=t.substr(W,10),W+=10):(Y=o,ce(wt)),Y===o&&(t.substr(W,11).toLowerCase()==="declaration"?(Y=t.substr(W,11),W+=11):(Y=o,ce(vt)),Y===o&&(t.substr(W,8).toLowerCase()==="function"?(Y=t.substr(W,8),W+=8):(Y=o,ce(Dt)),Y===o&&(t.substr(W,7).toLowerCase()==="pattern"?(Y=t.substr(W,7),W+=7):(Y=o,ce(_t)))))),Y!==o?ve=re={type:"class",name:Y}:(W=ve,ve=o)):(W=ve,ve=o),De[fe]={nextPos:W,result:ve},ve)}()),De[Ie]={nextPos:W,result:Oe},Oe)}function Be(){var Oe,Ie,We,ve,re,Y,fe,Se,Ee=30*W+13,Ze=De[Ee];if(Ze)return W=Ze.nextPos,Ze.result;if(Oe=W,(Ie=ie())!==o){for(We=[],ve=W,t.charCodeAt(W)===46?(re=".",W++):(re=o,ce(B)),re!==o&&(Y=ie())!==o?ve=re=[re,Y]:(W=ve,ve=o);ve!==o;)We.push(ve),ve=W,t.charCodeAt(W)===46?(re=".",W++):(re=o,ce(B)),re!==o&&(Y=ie())!==o?ve=re=[re,Y]:(W=ve,ve=o);We!==o?(fe=Ie,Se=We,Oe=Ie=[].concat.apply([fe],Se).join("")):(W=Oe,Oe=o)}else W=Oe,Oe=o;return De[Ee]={nextPos:W,result:Oe},Oe}function $e(Oe){return{type:"nth-child",index:{type:"literal",value:Oe}}}function Fe(Oe){return{type:"nth-last-child",index:{type:"literal",value:Oe}}}if((n=c())!==o&&W===t.length)return n;throw n!==o&&W0&&o(C,E,k))&&l(E[0],E.slice(1),k)};case"descendant":var u=Er(r.left),c=Er(r.right);return function(C,E,k){if(c(C,E,k)){for(var A=0,D=E.length;A":return function(C){return wn(C,p)>r.value.value};case">=":return function(C){return wn(C,p)>=r.value.value}}throw new Error("Unknown operator: ".concat(r.operator));case"sibling":var d=Er(r.left),m=Er(r.right);return function(C,E,k){return m(C,E,k)&&AT(C,d,E,"LEFT_SIDE",k)||r.left.subject&&d(C,E,k)&&AT(C,m,E,"RIGHT_SIDE",k)};case"adjacent":var g=Er(r.left),y=Er(r.right);return function(C,E,k){return y(C,E,k)&&PT(C,g,E,"LEFT_SIDE",k)||r.right.subject&&g(C,E,k)&&PT(C,y,E,"RIGHT_SIDE",k)};case"nth-child":var v=r.index.value,x=Er(r.right);return function(C,E,k){return x(C,E,k)&&TT(C,E,v,k)};case"nth-last-child":var S=-r.index.value,w=Er(r.right);return function(C,E,k){return w(C,E,k)&&TT(C,E,S,k)};case"class":var O=r.name.toLowerCase();return function(C,E){switch(O){case"statement":if(C.type.slice(-9)==="Statement")return!0;case"declaration":return C.type.slice(-11)==="Declaration";case"pattern":if(C.type.slice(-7)==="Pattern")return!0;case"expression":return C.type.slice(-10)==="Expression"||C.type.slice(-7)==="Literal"||C.type==="Identifier"&&(E.length===0||E[0].type!=="MetaProperty")||C.type==="MetaProperty";case"function":return C.type==="FunctionDeclaration"||C.type==="FunctionExpression"||C.type==="ArrowFunctionExpression"}throw new Error("Unknown class name: ".concat(r.name))}}throw new Error("Unknown selector type: ".concat(r.type))}function FO(r,e){var t=r.type;return e&&e.visitorKeys&&e.visitorKeys[t]?e.visitorKeys[t]:uc.VisitorKeys[t]?uc.VisitorKeys[t]:e&&typeof e.fallback=="function"?e.fallback(r):Object.keys(r).filter(function(s){return s!=="type"})}function tO(r){return r!==null&&qo(r)==="object"&&typeof r.type=="string"}function AT(r,e,t,s,n){var i=RO(t,1)[0];if(!i)return!1;for(var a=FO(i,n),l=0;l0&&tO(o[u-1])&&e(o[u-1],t,n)||s==="RIGHT_SIDE"&&u=0&&of.includes(d));return h}function s(p){switch(p.type){case"identifier":return[p.value];case"matches":{let h=p.selectors.map(s);return h.every(Boolean)?e(...h):null}case"compound":{let h=p.selectors.map(s).filter(f=>f);return h.length?t(...h):null}case"child":case"descendant":case"sibling":case"adjacent":return s(p.right);case"class":return p.name==="function"?["FunctionDeclaration","FunctionExpression","ArrowFunctionExpression"]:null;default:return null}}function n(p){switch(p.type){case"child":case"descendant":case"sibling":case"adjacent":return n(p.left)+n(p.right);case"compound":case"not":case"matches":return p.selectors.reduce((h,f)=>h+n(f),0);case"attribute":case"field":case"nth-child":case"nth-last-child":return 1;default:return 0}}function i(p){switch(p.type){case"child":case"descendant":case"sibling":case"adjacent":return i(p.left)+i(p.right);case"compound":case"not":case"matches":return p.selectors.reduce((h,f)=>h+i(f),0);case"identifier":return 1;default:return 0}}function a(p,h){return p.attributeCount-h.attributeCount||p.identifierCount-h.identifierCount||(p.rawSelector<=h.rawSelector?-1:1)}function l(p){try{return r.parse(p.replace(/:exit$/u,""))}catch(h){throw h.location&&h.location.start&&typeof h.location.start.offset=="number"?new SyntaxError(`Syntax error in selector "${p}" at position ${h.location.start.offset}: ${h.message}`):h}}let o=new Map;function u(p){if(o.has(p))return o.get(p);let h=l(p),f={rawSelector:p,isExit:p.endsWith(":exit"),parsedSelector:h,listenerTypes:s(h),attributeCount:n(h),identifierCount:i(h)};return o.set(p,f),f}class c{constructor(h,f){this.emitter=h,this.esqueryOptions=f,this.currentAncestry=[],this.enterSelectorsByNodeType=new Map,this.exitSelectorsByNodeType=new Map,this.anyTypeEnterSelectors=[],this.anyTypeExitSelectors=[],h.eventNames().forEach(d=>{let m=u(d);if(m.listenerTypes){let y=m.isExit?this.exitSelectorsByNodeType:this.enterSelectorsByNodeType;m.listenerTypes.forEach(v=>{y.has(v)||y.set(v,[]),y.get(v).push(m)});return}(m.isExit?this.anyTypeExitSelectors:this.anyTypeEnterSelectors).push(m)}),this.anyTypeEnterSelectors.sort(a),this.anyTypeExitSelectors.sort(a),this.enterSelectorsByNodeType.forEach(d=>d.sort(a)),this.exitSelectorsByNodeType.forEach(d=>d.sort(a))}applySelector(h,f){r.matches(h,f.parsedSelector,this.currentAncestry,this.esqueryOptions)&&this.emitter.emit(f.rawSelector,h)}applySelectors(h,f){let d=(f?this.exitSelectorsByNodeType:this.enterSelectorsByNodeType).get(h.type)||[],m=f?this.anyTypeExitSelectors:this.anyTypeEnterSelectors,g=0,y=0;for(;g=d.length||y{let l=a.trim();return l in s?s[l]:i})}return Vm={getPlaceholderMatcher:r,interpolate:e},Vm}var Wm,RT;function rV(){if(RT)return Wm;RT=1;let r=Vo,e=eV(),{interpolate:t}=tV();function s(...d){return d.length===1?Object.assign({},d[0]):typeof d[1]=="string"?{node:d[0],message:d[1],data:d[2],fix:d[3]}:{node:d[0],loc:d[1],message:d[2],data:d[3],fix:d[4]}}function n(d){d.node?r(typeof d.node=="object","Node must be an object"):r(d.loc,"Node must be provided when reporting error if location is not provided")}function i(d){return d.loc?d.loc.start?d.loc:{start:d.loc,end:null}:d.node.loc}function a(d){return d?{range:[d.range[0],d.range[1]],text:d.text}:null}function l(d){d&&r(d.range&&typeof d.range[0]=="number"&&typeof d.range[1]=="number",`Fix has invalid range: ${JSON.stringify(d,null,2)}`)}function o(d,m){return d.range[0]-m.range[0]||d.range[1]-m.range[1]}function u(d,m){for(let w of d)l(w);if(d.length===0)return null;if(d.length===1)return a(d[0]);d.sort(o);let g=m.text,y=d[0].range[0],v=d.at(-1).range[1],x="",S=Number.MIN_SAFE_INTEGER;for(let w of d)r(w.range[0]>=S,"Fix objects must not be overlapped in a report."),w.range[0]>=0&&(x+=g.slice(Math.max(0,y,S),w.range[0])),x+=w.text,S=w.range[1];return x+=g.slice(Math.max(0,y,S),v),{range:[y,v],text:x}}function c(d,m){if(typeof d.fix!="function")return null;let g=d.fix(e);return g&&Symbol.iterator in g?u(Array.from(g),m):(l(g),a(g))}function p(d,m,g){return!d.suggest||!Array.isArray(d.suggest)?[]:d.suggest.map(y=>{let v=y.desc||g[y.messageId];return{...y,desc:t(v,y.data),fix:c(y,m)}}).filter(({fix:y})=>y)}function h(d){let m={ruleId:d.ruleId,severity:d.severity,message:d.message,line:d.loc.start.line,column:d.loc.start.column+1,nodeType:d.node&&d.node.type||null};return d.messageId&&(m.messageId=d.messageId),d.loc.end&&(m.endLine=d.loc.end.line,m.endColumn=d.loc.end.column+1),d.fix&&(m.fix=d.fix),d.suggestions&&d.suggestions.length>0&&(m.suggestions=d.suggestions),m}function f(d,m){d&&Array.isArray(d)&&d.forEach(g=>{if(g.messageId){let{messageId:y}=g;if(!m)throw new TypeError(`context.report() called with a suggest option with a messageId '${y}', but no messages were present in the rule metadata.`);if(!m[y])throw new TypeError(`context.report() called with a suggest option with a messageId '${y}' which is not present in the 'messages' config: ${JSON.stringify(m,null,2)}`);if(g.desc)throw new TypeError("context.report() called with a suggest option that defines both a 'messageId' and an 'desc'. Please only pass one.")}else if(!g.desc)throw new TypeError("context.report() called with a suggest option that doesn't have either a `desc` or `messageId`");if(typeof g.fix!="function")throw new TypeError(`context.report() called with a suggest option without a fix function. See: ${g}`)})}return Wm=function(m){return(...g)=>{let y=s(...g),v=m.messageIds;n(y);let x;if(y.messageId){if(!v)throw new TypeError("context.report() called with a messageId, but no messages were present in the rule metadata.");let S=y.messageId;if(y.message)throw new TypeError("context.report() called with a message and a messageId. Please only pass one.");if(!v||!Object.hasOwn(v,S))throw new TypeError(`context.report() called with a messageId of '${S}' which is not present in the 'messages' config: ${JSON.stringify(v,null,2)}`);x=v[S]}else if(y.message)x=y.message;else throw new TypeError("Missing `message` property in report() call; add a message that describes the linting problem.");return f(y.suggest,v),h({ruleId:m.ruleId,severity:m.severity,node:y.node,message:t(x,y.data),messageId:y.messageId,loc:i(y),fix:m.disableFixes?null:c(y,m.sourceCode),suggestions:m.disableFixes?[]:p(y,m.sourceCode,v)})}},Wm}function nV(r){throw new Error('Could not dynamically require "'+r+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var zm,FT;function sV(){if(FT)return zm;FT=1;let r=vi()("eslint:rules");class e extends Map{constructor(s){let n=s.length;super(r.enabled?s.map(([i,a])=>{let l=null;return[i,()=>(l||(r("Loading rule %o (remaining=%d)",i,--n),l=a()),l)]}):s),Object.defineProperty(e.prototype,"set",{configurable:!0,value:void 0})}get(s){let n=super.get(s);return n&&n()}*values(){for(let s of super.values())yield s()}*entries(){for(let[s,n]of super.entries())yield[s,n()]}forEach(s,n){for(let[i,a]of super.entries())s.call(n,a(),i,this)}}return Object.defineProperties(e.prototype,{clear:{configurable:!0,value:void 0},delete:{configurable:!0,value:void 0},[Symbol.iterator]:{configurable:!0,writable:!0,value:e.prototype.entries}}),zm={LazyLoadingRuleMap:e},zm}var Zm={exports:{}},Lo={},Gm={exports:{}},BT;function iV(){return BT||(BT=1,function(){function r(a){if(a==null)return!1;switch(a.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"CallExpression":case"ConditionalExpression":case"FunctionExpression":case"Identifier":case"Literal":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"ObjectExpression":case"SequenceExpression":case"ThisExpression":case"UnaryExpression":case"UpdateExpression":return!0}return!1}function e(a){if(a==null)return!1;switch(a.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":return!0}return!1}function t(a){if(a==null)return!1;switch(a.type){case"BlockStatement":case"BreakStatement":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"ForInStatement":case"ForStatement":case"IfStatement":case"LabeledStatement":case"ReturnStatement":case"SwitchStatement":case"ThrowStatement":case"TryStatement":case"VariableDeclaration":case"WhileStatement":case"WithStatement":return!0}return!1}function s(a){return t(a)||a!=null&&a.type==="FunctionDeclaration"}function n(a){switch(a.type){case"IfStatement":return a.alternate!=null?a.alternate:a.consequent;case"LabeledStatement":case"ForStatement":case"ForInStatement":case"WhileStatement":case"WithStatement":return a.body}return null}function i(a){var l;if(a.type!=="IfStatement"||a.alternate==null)return!1;l=a.consequent;do{if(l.type==="IfStatement"&&l.alternate==null)return!0;l=n(l)}while(l);return!1}Gm.exports={isExpression:r,isStatement:t,isIterationStatement:e,isSourceElement:s,isProblematicIfStatement:i,trailingStatement:n}}()),Gm.exports}var Xm={exports:{}},NT;function JB(){return NT||(NT=1,function(){var r,e,t,s,n,i;e={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,NonAsciiIdentifierPart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/},r={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/};function a(g){return 48<=g&&g<=57}function l(g){return 48<=g&&g<=57||97<=g&&g<=102||65<=g&&g<=70}function o(g){return g>=48&&g<=55}t=[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279];function u(g){return g===32||g===9||g===11||g===12||g===160||g>=5760&&t.indexOf(g)>=0}function c(g){return g===10||g===13||g===8232||g===8233}function p(g){if(g<=65535)return String.fromCharCode(g);var y=String.fromCharCode(Math.floor((g-65536)/1024)+55296),v=String.fromCharCode((g-65536)%1024+56320);return y+v}for(s=new Array(128),i=0;i<128;++i)s[i]=i>=97&&i<=122||i>=65&&i<=90||i===36||i===95;for(n=new Array(128),i=0;i<128;++i)n[i]=i>=97&&i<=122||i>=65&&i<=90||i>=48&&i<=57||i===36||i===95;function h(g){return g<128?s[g]:e.NonAsciiIdentifierStart.test(p(g))}function f(g){return g<128?n[g]:e.NonAsciiIdentifierPart.test(p(g))}function d(g){return g<128?s[g]:r.NonAsciiIdentifierStart.test(p(g))}function m(g){return g<128?n[g]:r.NonAsciiIdentifierPart.test(p(g))}Xm.exports={isDecimalDigit:a,isHexDigit:l,isOctalDigit:o,isWhiteSpace:u,isLineTerminator:c,isIdentifierStartES5:h,isIdentifierPartES5:f,isIdentifierStartES6:d,isIdentifierPartES6:m}}()),Xm.exports}var Ym={exports:{}},LT;function aV(){return LT||(LT=1,function(){var r=JB();function e(h){switch(h){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"let":return!0;default:return!1}}function t(h,f){return!f&&h==="yield"?!1:s(h,f)}function s(h,f){if(f&&e(h))return!0;switch(h.length){case 2:return h==="if"||h==="in"||h==="do";case 3:return h==="var"||h==="for"||h==="new"||h==="try";case 4:return h==="this"||h==="else"||h==="case"||h==="void"||h==="with"||h==="enum";case 5:return h==="while"||h==="break"||h==="catch"||h==="throw"||h==="const"||h==="yield"||h==="class"||h==="super";case 6:return h==="return"||h==="typeof"||h==="delete"||h==="switch"||h==="export"||h==="import";case 7:return h==="default"||h==="finally"||h==="extends";case 8:return h==="function"||h==="continue"||h==="debugger";case 10:return h==="instanceof";default:return!1}}function n(h,f){return h==="null"||h==="true"||h==="false"||t(h,f)}function i(h,f){return h==="null"||h==="true"||h==="false"||s(h,f)}function a(h){return h==="eval"||h==="arguments"}function l(h){var f,d,m;if(h.length===0||(m=h.charCodeAt(0),!r.isIdentifierStartES5(m)))return!1;for(f=1,d=h.length;f=d||(g=h.charCodeAt(f),!(56320<=g&&g<=57343)))return!1;m=o(m,g)}if(!y(m))return!1;y=r.isIdentifierPartES6}return!0}function c(h,f){return l(h)&&!n(h,f)}function p(h,f){return u(h)&&!i(h,f)}Ym.exports={isKeywordES5:t,isKeywordES6:s,isReservedWordES5:n,isReservedWordES6:i,isRestrictedWord:a,isIdentifierNameES5:l,isIdentifierNameES6:u,isIdentifierES5:c,isIdentifierES6:p}}()),Ym.exports}var $T;function eN(){return $T||($T=1,function(){Lo.ast=iV(),Lo.code=JB(),Lo.keyword=aV()}()),Lo}var Hm,MT;function tN(){return MT||(MT=1,Hm={LATEST_ECMA_VERSION:2024}),Hm}var jT;function Pe(){return jT||(jT=1,function(r){let{KEYS:e}=wO(),t=eN(),s=vc(),n=Sc(),{breakableTypePattern:i,createGlobalLinebreakMatcher:a,lineBreakPattern:l,shebangPattern:o}=xc(),u=qB(),{LATEST_ECMA_VERSION:c}=tN(),p=/^(?:Function(?:Declaration|Expression)|ArrowFunctionExpression)$/u,h=/^(?:DoWhile|For|ForIn|ForOf|While)Statement$/u,f=/^(?:every|filter|find(?:Last)?(?:Index)?|flatMap|forEach|map|some)$/u,d=/Array$/u,m=/^(?:bind|call|apply)$/u,g=/^[\s*]*@this/mu,y=/^\s*(?:eslint|jshint\s+|jslint\s+|istanbul\s+|globals?\s+|exported\s+|jscs)/u,v=/^(?:eslint[- ]|(?:globals?|exported) )/u,x=new Set([`\r `,"\r",` -`,"\u2028","\u2029"]),S=new Set(["Program","BlockStatement","StaticBlock","SwitchCase"]),C=/^(?:0|0[0-7]*[89]\d*|[1-9](?:_?\d)*)$/u,O=/^(?:[^\\]|\\.)*\\(?:[1-9]|0[0-9])/su,w=new Set(["&&=","||=","??="]),E=u[`es${c}`];function k(L,ue,Te){let Be=L.identifier,$e=ue===0||Te[ue-1].identifier!==Be;return Be&&L.init===!1&&L.isWrite()&&$e}function A(L){return L[0]!==L[0].toLocaleLowerCase()}function D(L){return L.id&&A(L.id.name)}function _(L){for(let ue=L;ue;ue=ue.parent)if(p.test(ue.type))return ue;return null}function B(L){return!!(L&&p.test(L.type))}function T(L){return!!(L&&h.test(L.type))}function F(L){for(let ue=L;ue&&!B(ue);ue=ue.parent)if(T(ue))return!0;return!1}function j(L){return L.type==="Literal"&&L.value===null&&!L.regex&&!L.bigint}function Q(L){return j(L)||L.type==="Identifier"&&L.name==="undefined"||L.type==="UnaryExpression"&&L.operator==="void"}function I(L){return L.parent.type==="CallExpression"&&L.parent.callee===L}function N(L){switch(L.type){case"Literal":if(L.value===null){if(j(L))return String(L.value);if(L.regex)return`/${L.regex.pattern}/${L.regex.flags}`;if(L.bigint)return L.bigint}else return String(L.value);break;case"TemplateLiteral":if(L.expressions.length===0&&L.quasis.length===1)return L.quasis[0].value.cooked;break}return null}function R(L){let ue;switch(L&&L.type){case"ChainExpression":return R(L.expression);case"Property":case"PropertyDefinition":case"MethodDefinition":ue=L.key;break;case"MemberExpression":ue=L.property;break}return ue?ue.type==="Identifier"&&!L.computed?ue.name:N(ue):null}function U(L){return L&&L.type==="ChainExpression"?L.expression:L}function V(L,ue){return typeof ue=="string"?L===ue:ue.test(L)}function ae(L,ue){return L.type==="Identifier"&&V(L.name,ue)}function se(L,ue,Te){let Be=U(L);if(Be.type!=="MemberExpression"||ue&&!ae(Be.object,ue))return!1;if(Te){let $e=R(Be);if(typeof $e!="string"||!V($e,Te))return!1}return!0}function ve(L,ue){return L.regex||ue.regex?!!(L.regex&&ue.regex&&L.regex.pattern===ue.regex.pattern&&L.regex.flags===ue.regex.flags):L.bigint||ue.bigint?L.bigint===ue.bigint:L.value===ue.value}function H(L,ue,Te=!1){if(L.type!==ue.type)return L.type==="ChainExpression"?H(L.expression,ue,Te):ue.type==="ChainExpression"?H(L,ue.expression,Te):!1;switch(L.type){case"Super":case"ThisExpression":return!0;case"Identifier":case"PrivateIdentifier":return L.name===ue.name;case"Literal":return ve(L,ue);case"ChainExpression":return H(L.expression,ue.expression,Te);case"MemberExpression":{if(!Te){let Be=R(L);if(Be!==null)return H(L.object,ue.object,Te)&&Be===R(ue)}return L.computed===ue.computed&&H(L.object,ue.object,Te)&&H(L.property,ue.property,Te)}default:return!1}}function he(L){return se(L,"Reflect","apply")}function $(L){return se(L,d,"from")}function pe(L){return se(L,null,f)}function K(L){return ue=>!L(ue)}function le(L,ue){let Te=ue.getJSDocComment(L);return Te&&g.test(Te.value)?!0:ue.getCommentsBefore(L).some(Be=>g.test(Be.value))}function xe(L,ue){let Te=L.getTokenBefore(ue),Be=L.getTokenAfter(ue);return!!(Te&&Be)&&Te.value==="("&&Te.range[1]<=ue.range[0]&&Be.value===")"&&Be.range[0]>=ue.range[1]}function Le(L){return L.value==="="&&L.type==="Punctuator"}function qe(L){return L.value==="=>"&&L.type==="Punctuator"}function rt(L){return L.value===","&&L.type==="Punctuator"}function ht(L){return L.value==="."&&L.type==="Punctuator"}function pt(L){return L.value==="?."&&L.type==="Punctuator"}function Et(L){return L.value===";"&&L.type==="Punctuator"}function X(L){return L.value===":"&&L.type==="Punctuator"}function we(L){return L.value==="("&&L.type==="Punctuator"}function Ve(L){return L.value===")"&&L.type==="Punctuator"}function et(L){return L.value==="["&&L.type==="Punctuator"}function it(L){return L.value==="]"&&L.type==="Punctuator"}function st(L){return L.value==="{"&&L.type==="Punctuator"}function Ct(L){return L.value==="}"&&L.type==="Punctuator"}function bt(L){return L.type==="Line"||L.type==="Block"||L.type==="Shebang"}function Dt(L){return L.type==="Keyword"}function _t(L,ue){if(L.type==="ArrowFunctionExpression"&&L.params.length===1){let Te=ue.getFirstToken(L.params[0]),Be=ue.getTokenBefore(Te);return we(Be)?Be:Te}return L.id?ue.getTokenAfter(L.id,we):ue.getFirstToken(L,we)}function W(L,ue,Te){let Be=Te.getTokens(L),$e=Te.getTokens(ue);if(Be.length!==$e.length)return!1;for(let Re=0;ReBe.identifier===ue);return!!(Te&&Te.resolved&&Te.resolved.scope.type==="global"&&Te.resolved.defs.length===0)}function Z(L,ue,Te){if(!ue)return!0;switch(ue.type){case"Literal":case"ArrowFunctionExpression":case"FunctionExpression":return!0;case"ClassExpression":case"ObjectExpression":return!0;case"TemplateLiteral":return Te&&ue.quasis.some(Be=>Be.value.cooked.length)||ue.expressions.every(Be=>Z(L,Be,!1));case"ArrayExpression":return Te?!0:ue.elements.every(Be=>Z(L,Be,!1));case"UnaryExpression":return ue.operator==="void"||ue.operator==="typeof"&&Te?!0:ue.operator==="!"?Z(L,ue.argument,!0):Z(L,ue.argument,!1);case"BinaryExpression":return Z(L,ue.left,!1)&&Z(L,ue.right,!1)&&ue.operator!=="in";case"LogicalExpression":{let Be=Z(L,ue.left,Te),$e=Z(L,ue.right,Te),Re=Be&&oe(ue.left,ue.operator),Oe=Te&&$e&&oe(ue.right,ue.operator);return Be&&$e||Re||Oe}case"NewExpression":return Te;case"AssignmentExpression":return ue.operator==="="?Z(L,ue.right,Te):["||=","&&="].includes(ue.operator)&&Te?oe(ue.right,ue.operator.slice(0,-1)):!1;case"SequenceExpression":return Z(L,ue.expressions.at(-1),Te);case"SpreadElement":return Z(L,ue.argument,Te);case"CallExpression":return ue.callee.type==="Identifier"&&ue.callee.name==="Boolean"&&(ue.arguments.length===0||Z(L,ue.arguments[0],!0))?ce(L,ue.callee):!1;case"Identifier":return ue.name==="undefined"&&ce(L,ue)}return!1}function J(L){if(L.type!=="ExpressionStatement")return!1;let ue=L.parent;return ue.type==="Program"||ue.type==="BlockStatement"&&B(ue.parent)}function ie(L){return L.type==="ExpressionStatement"&&typeof L.directive=="string"}function de(L){let ue=L.range[0],Te=L;for(;(Te=Te.parent)&&Te.range[0]===ue;)if(Te.type==="ExpressionStatement")return!0;return!1}let Ce;{let L=new Set(["BreakStatement","ContinueStatement"]),ue=new Set(["ExportAllDeclaration","ExportNamedDeclaration","ImportDeclaration"]),Te=new Set(["Identifier","Keyword"]),Be={__proto__:null,break:"BreakStatement",continue:"ContinueStatement",debugger:"DebuggerStatement",do:"DoWhileStatement",else:"IfStatement",return:"ReturnStatement",yield:"YieldExpression"},$e=new Set([":",";","{","=>","++","--"]),Re=new Set(["DoWhileStatement","ForInStatement","ForOfStatement","ForStatement","IfStatement","WhileStatement","WithStatement"]);Ce=function(Oe,Ie){let We=Oe.getTokenBefore(Ie);if(!We||We.type==="Punctuator"&&$e.has(We.value))return!1;let be=Oe.getNodeByRangeIndex(We.range[0]);if(Ve(We))return!Re.has(be.type);if(Ct(We))return be.type==="BlockStatement"&&be.parent.type==="FunctionExpression"||be.type==="ClassBody"&&be.parent.type==="ClassExpression"||be.type==="ObjectExpression";if(Te.has(We.type)){if(L.has(be.parent.type))return!1;let re=We.value,Y=Be[re];return be.type!==Y}return We.type==="String"?!ue.has(be.parent.type):!0}}r.exports={COMMENTS_IGNORE_PATTERN:y,LINEBREAKS:v,LINEBREAK_MATCHER:l,SHEBANG_MATCHER:o,STATEMENT_LIST_PARENTS:S,ECMASCRIPT_GLOBALS:E,isTokenOnSameLine(L,ue){return L.loc.end.line===ue.loc.start.line},isNullOrUndefined:Q,isCallee:I,isES5Constructor:D,getUpperFunction:_,isFunction:B,isLoop:T,isInLoop:F,isArrayFromMethod:$,isParenthesised:xe,createGlobalLinebreakMatcher:a,equalTokens:W,isArrowToken:qe,isClosingBraceToken:Ct,isClosingBracketToken:it,isClosingParenToken:Ve,isColonToken:X,isCommaToken:rt,isCommentToken:bt,isDotToken:ht,isQuestionDotToken:pt,isKeywordToken:Dt,isNotClosingBraceToken:K(Ct),isNotClosingBracketToken:K(it),isNotClosingParenToken:K(Ve),isNotColonToken:K(X),isNotCommaToken:K(rt),isNotDotToken:K(ht),isNotQuestionDotToken:K(pt),isNotOpeningBraceToken:K(st),isNotOpeningBracketToken:K(et),isNotOpeningParenToken:K(we),isNotSemicolonToken:K(Et),isOpeningBraceToken:st,isOpeningBracketToken:et,isOpeningParenToken:we,isSemicolonToken:Et,isEqToken:Le,isStringLiteral(L){return L.type==="Literal"&&typeof L.value=="string"||L.type==="TemplateLiteral"},isBreakableStatement(L){return i.test(L.type)},getModifyingReferences(L){return L.filter(k)},isSurroundedBy(L,ue){return L[0]===ue&&L.at(-1)===ue},isDirectiveComment(L){let ue=L.value.trim();return L.type==="Line"&&ue.startsWith("eslint-")||L.type==="Block"&&b.test(ue)},getTrailingStatement:t.ast.trailingStatement,getVariableByName(L,ue){let Te=L;for(;Te;){let Be=Te.set.get(ue);if(Be)return Be;Te=Te.upper}return null},isDefaultThisBinding(L,ue,{capIsConstructor:Te=!0}={}){if(L.parent.type==="PropertyDefinition"&&L.parent.value===L||L.type==="StaticBlock"||Te&&D(L)||le(L,ue))return!1;let Be=L.id===null,$e=L;for(;$e;){let Re=$e.parent;switch(Re.type){case"LogicalExpression":case"ConditionalExpression":case"ChainExpression":$e=Re;break;case"ReturnStatement":{let Oe=_(Re);if(Oe===null||!I(Oe))return!0;$e=Oe.parent;break}case"ArrowFunctionExpression":if($e!==Re.body||!I(Re))return!0;$e=Re.parent;break;case"Property":case"PropertyDefinition":case"MethodDefinition":return Re.value!==$e;case"AssignmentExpression":case"AssignmentPattern":return!(Re.left.type==="MemberExpression"||Te&&Be&&Re.left.type==="Identifier"&&A(Re.left.name));case"VariableDeclarator":return!(Te&&Be&&Re.init===$e&&Re.id.type==="Identifier"&&A(Re.id.name));case"MemberExpression":if(Re.object===$e&&se(Re,null,m)){let Oe=Re.parent.type==="ChainExpression"?Re.parent:Re;return!(I(Oe)&&Oe.parent.arguments.length>=1&&!Q(Oe.parent.arguments[0]))}return!0;case"CallExpression":return he(Re.callee)?Re.arguments.length!==3||Re.arguments[0]!==$e||Q(Re.arguments[1]):$(Re.callee)?Re.arguments.length!==3||Re.arguments[1]!==$e||Q(Re.arguments[2]):pe(Re.callee)?Re.arguments.length!==2||Re.arguments[0]!==$e||Q(Re.arguments[1]):!0;default:return!0}}return!0},getPrecedence(L){switch(L.type){case"SequenceExpression":return 0;case"AssignmentExpression":case"ArrowFunctionExpression":case"YieldExpression":return 1;case"ConditionalExpression":return 3;case"LogicalExpression":switch(L.operator){case"||":case"??":return 4;case"&&":return 5}case"BinaryExpression":switch(L.operator){case"|":return 6;case"^":return 7;case"&":return 8;case"==":case"!=":case"===":case"!==":return 9;case"<":case"<=":case">":case">=":case"in":case"instanceof":return 10;case"<<":case">>":case">>>":return 11;case"+":case"-":return 12;case"*":case"/":case"%":return 13;case"**":return 15}case"UnaryExpression":case"AwaitExpression":return 16;case"UpdateExpression":return 17;case"CallExpression":case"ChainExpression":case"ImportExpression":return 18;case"NewExpression":return 19;default:return L.type in e?20:-1}},isEmptyBlock(L){return!!(L&&L.type==="BlockStatement"&&L.body.length===0)},isEmptyFunction(L){return B(L)&&r.exports.isEmptyBlock(L.body)},getDirectivePrologue(L){let ue=[];if(L.type==="Program"||L.type==="FunctionDeclaration"||L.type==="FunctionExpression"||L.type==="ArrowFunctionExpression"&&L.body.type==="BlockStatement"){let Te=L.type==="Program"?L.body:L.body.body;for(let Be of Te)if(Be.type==="ExpressionStatement"&&Be.expression.type==="Literal")ue.push(Be);else break}return ue},isDecimalInteger(L){return L.type==="Literal"&&typeof L.value=="number"&&C.test(L.raw)},isDecimalIntegerNumericToken(L){return L.type==="Numeric"&&C.test(L.value)},getFunctionNameWithKind(L){let ue=L.parent,Te=[];if((ue.type==="MethodDefinition"||ue.type==="PropertyDefinition")&&(ue.static&&Te.push("static"),!ue.computed&&ue.key.type==="PrivateIdentifier"&&Te.push("private")),L.async&&Te.push("async"),L.generator&&Te.push("generator"),ue.type==="Property"||ue.type==="MethodDefinition"){if(ue.kind==="constructor")return"constructor";ue.kind==="get"?Te.push("getter"):ue.kind==="set"?Te.push("setter"):Te.push("method")}else ue.type==="PropertyDefinition"?Te.push("method"):(L.type==="ArrowFunctionExpression"&&Te.push("arrow"),Te.push("function"));if(ue.type==="Property"||ue.type==="MethodDefinition"||ue.type==="PropertyDefinition")if(!ue.computed&&ue.key.type==="PrivateIdentifier")Te.push(`#${ue.key.name}`);else{let Be=R(ue);Be!==null?Te.push(`'${Be}'`):L.id&&Te.push(`'${L.id.name}'`)}else L.id&&Te.push(`'${L.id.name}'`);return Te.join(" ")},getFunctionHeadLoc(L,ue){let Te=L.parent,Be,$e;if(Te.type==="Property"||Te.type==="MethodDefinition"||Te.type==="PropertyDefinition")Be=Te.loc.start,$e=_t(L,ue).loc.start;else if(L.type==="ArrowFunctionExpression"){let Re=ue.getTokenBefore(L.body,qe);Be=Re.loc.start,$e=Re.loc.end}else Be=L.loc.start,$e=_t(L,ue).loc.start;return{start:Object.assign({},Be),end:Object.assign({},$e)}},getNextLocation(L,{line:ue,column:Te}){return TeBe.range[0])&&(Be=Ie)}}else Be=L;if(Be.type==="Shebang"||Be.type==="Hashbang")return!1;let $e;if(typeof ue=="string"){let Re;try{Re=s.tokenize(ue,Te)}catch{return!1}let Oe=Re.comments;if($e=Re[0],Oe.length){let Ie=Oe[0];(!$e||Ie.range[0]<$e.range[0])&&($e=Ie)}}else $e=ue;if(Be.type==="Punctuator"||$e.type==="Punctuator"){if(Be.type==="Punctuator"&&$e.type==="Punctuator"){let Re=new Set(["+","++"]),Oe=new Set(["-","--"]);return!(Re.has(Be.value)&&Re.has($e.value)||Oe.has(Be.value)&&Oe.has($e.value))}return Be.type==="Punctuator"&&Be.value==="/"?!["Block","Line","RegularExpression"].includes($e.type):!0}return!!(Be.type==="String"||$e.type==="String"||Be.type==="Template"||$e.type==="Template"||Be.type!=="Numeric"&&$e.type==="Numeric"&&$e.value.startsWith(".")||Be.type==="Block"||$e.type==="Block"||$e.type==="Line"||$e.type==="PrivateIdentifier")},getNameLocationInGlobalDirectiveComment(L,ue,Te){let Be=new RegExp(`[\\s,]${n(Te)}(?:$|[\\s,:])`,"gu");Be.lastIndex=ue.value.indexOf("global")+6;let $e=Be.exec(ue.value),Re=L.getLocFromIndex(ue.range[0]+2+($e?$e.index+1:0)),Oe={line:Re.line,column:Re.column+($e?Te.length:1)};return{start:Re,end:Oe}},hasOctalOrNonOctalDecimalEscapeSequence(L){return O.test(L)},isStaticTemplateLiteral(L){return L.type==="TemplateLiteral"&&L.expressions.length===0},isReferenceToGlobalVariable:ce,isLogicalExpression:vt,isCoalesceExpression:Ye,isMixedLogicalAndCoalesceExpressions:Kt,isNullLiteral:j,getStaticStringValue:N,getStaticPropertyName:R,skipChainExpression:U,isSpecificId:ae,isSpecificMemberAccess:se,equalLiteralValue:ve,isSameReference:H,isLogicalAssignmentOperator:De,getSwitchCaseColonToken:G,getModuleExportName:ne,isConstant:Z,isTopLevelExpressionStatement:J,isDirective:ie,isStartOfExpressionStatement:de,needsPrecedingSemicolon:Ce}}(zm)),zm.exports}var Km,QT;function a7(){if(QT)return Km;QT=1;let r=Pe();function e(a,l){if(a.length!==l.length)return!1;for(let o=0;oC.type==="Property"))}function g(S){let C=new Set(S.properties.filter(E=>E.type==="Property"&&E.kind==="init"&&!E.computed).map(({key:E})=>E.name)),O=C.has("get"),w=C.has("set");u&&w&&!O&&h(S,"missingGetter"),o&&O&&!w&&h(S,"missingSetter")}function y(S){m(S),i(S)&&g(S)}function b(S){let C=S.body.filter(O=>O.type==="MethodDefinition");d(C.filter(O=>O.static)),d(C.filter(O=>!O.static))}let v={};return(u||o)&&(v.ObjectExpression=y,c&&(v.ClassBody=b)),v}},Km}var Jm,UT;function o7(){if(UT)return Jm;UT=1;let r=Pe();return Jm={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Enforce linebreaks after opening and before closing array brackets",recommended:!1,url:"https://eslint.org/docs/latest/rules/array-bracket-newline"},fixable:"whitespace",schema:[{oneOf:[{enum:["always","never","consistent"]},{type:"object",properties:{multiline:{type:"boolean"},minItems:{type:["integer","null"],minimum:0}},additionalProperties:!1}]}],messages:{unexpectedOpeningLinebreak:"There should be no linebreak after '['.",unexpectedClosingLinebreak:"There should be no linebreak before ']'.",missingOpeningLinebreak:"A linebreak is required after '['.",missingClosingLinebreak:"A linebreak is required before ']'."}},create(e){let t=e.sourceCode;function s(c){let p=!1,h=!1,f;return c?c==="consistent"?(p=!0,f=Number.POSITIVE_INFINITY):c==="always"||c.minItems===0?f=0:c==="never"?f=Number.POSITIVE_INFINITY:(h=!!c.multiline,f=c.minItems||Number.POSITIVE_INFINITY):(p=!1,h=!0,f=Number.POSITIVE_INFINITY),{consistent:p,multiline:h,minItems:f}}function n(c){let p=s(c);return{ArrayExpression:p,ArrayPattern:p}}function i(c,p){e.report({node:c,loc:p.loc,messageId:"unexpectedOpeningLinebreak",fix(h){let f=t.getTokenAfter(p,{includeComments:!0});return r.isCommentToken(f)?null:h.removeRange([p.range[1],f.range[0]])}})}function a(c,p){e.report({node:c,loc:p.loc,messageId:"unexpectedClosingLinebreak",fix(h){let f=t.getTokenBefore(p,{includeComments:!0});return r.isCommentToken(f)?null:h.removeRange([f.range[1],p.range[0]])}})}function l(c,p){e.report({node:c,loc:p.loc,messageId:"missingOpeningLinebreak",fix(h){return h.insertTextAfter(p,` +`,"\u2028","\u2029"]),S=new Set(["Program","BlockStatement","StaticBlock","SwitchCase"]),w=/^(?:0|0[0-7]*[89]\d*|[1-9](?:_?\d)*)$/u,O=/^(?:[^\\]|\\.)*\\(?:[1-9]|0[0-9])/su,C=new Set(["&&=","||=","??="]),E=u[`es${c}`];function k(L,ue,Te){let Be=L.identifier,$e=ue===0||Te[ue-1].identifier!==Be;return Be&&L.init===!1&&L.isWrite()&&$e}function A(L){return L[0]!==L[0].toLocaleLowerCase()}function D(L){return L.id&&A(L.id.name)}function _(L){for(let ue=L;ue;ue=ue.parent)if(p.test(ue.type))return ue;return null}function B(L){return!!(L&&p.test(L.type))}function T(L){return!!(L&&h.test(L.type))}function R(L){for(let ue=L;ue&&!B(ue);ue=ue.parent)if(T(ue))return!0;return!1}function j(L){return L.type==="Literal"&&L.value===null&&!L.regex&&!L.bigint}function Q(L){return j(L)||L.type==="Identifier"&&L.name==="undefined"||L.type==="UnaryExpression"&&L.operator==="void"}function I(L){return L.parent.type==="CallExpression"&&L.parent.callee===L}function N(L){switch(L.type){case"Literal":if(L.value===null){if(j(L))return String(L.value);if(L.regex)return`/${L.regex.pattern}/${L.regex.flags}`;if(L.bigint)return L.bigint}else return String(L.value);break;case"TemplateLiteral":if(L.expressions.length===0&&L.quasis.length===1)return L.quasis[0].value.cooked;break}return null}function F(L){let ue;switch(L&&L.type){case"ChainExpression":return F(L.expression);case"Property":case"PropertyDefinition":case"MethodDefinition":ue=L.key;break;case"MemberExpression":ue=L.property;break}return ue?ue.type==="Identifier"&&!L.computed?ue.name:N(ue):null}function U(L){return L&&L.type==="ChainExpression"?L.expression:L}function V(L,ue){return typeof ue=="string"?L===ue:ue.test(L)}function ae(L,ue){return L.type==="Identifier"&&V(L.name,ue)}function se(L,ue,Te){let Be=U(L);if(Be.type!=="MemberExpression"||ue&&!ae(Be.object,ue))return!1;if(Te){let $e=F(Be);if(typeof $e!="string"||!V($e,Te))return!1}return!0}function xe(L,ue){return L.regex||ue.regex?!!(L.regex&&ue.regex&&L.regex.pattern===ue.regex.pattern&&L.regex.flags===ue.regex.flags):L.bigint||ue.bigint?L.bigint===ue.bigint:L.value===ue.value}function H(L,ue,Te=!1){if(L.type!==ue.type)return L.type==="ChainExpression"?H(L.expression,ue,Te):ue.type==="ChainExpression"?H(L,ue.expression,Te):!1;switch(L.type){case"Super":case"ThisExpression":return!0;case"Identifier":case"PrivateIdentifier":return L.name===ue.name;case"Literal":return xe(L,ue);case"ChainExpression":return H(L.expression,ue.expression,Te);case"MemberExpression":{if(!Te){let Be=F(L);if(Be!==null)return H(L.object,ue.object,Te)&&Be===F(ue)}return L.computed===ue.computed&&H(L.object,ue.object,Te)&&H(L.property,ue.property,Te)}default:return!1}}function he(L){return se(L,"Reflect","apply")}function $(L){return se(L,d,"from")}function pe(L){return se(L,null,f)}function K(L){return ue=>!L(ue)}function le(L,ue){let Te=ue.getJSDocComment(L);return Te&&g.test(Te.value)?!0:ue.getCommentsBefore(L).some(Be=>g.test(Be.value))}function be(L,ue){let Te=L.getTokenBefore(ue),Be=L.getTokenAfter(ue);return!!(Te&&Be)&&Te.value==="("&&Te.range[1]<=ue.range[0]&&Be.value===")"&&Be.range[0]>=ue.range[1]}function Le(L){return L.value==="="&&L.type==="Punctuator"}function qe(L){return L.value==="=>"&&L.type==="Punctuator"}function rt(L){return L.value===","&&L.type==="Punctuator"}function ht(L){return L.value==="."&&L.type==="Punctuator"}function pt(L){return L.value==="?."&&L.type==="Punctuator"}function Et(L){return L.value===";"&&L.type==="Punctuator"}function G(L){return L.value===":"&&L.type==="Punctuator"}function Ce(L){return L.value==="("&&L.type==="Punctuator"}function Ve(L){return L.value===")"&&L.type==="Punctuator"}function et(L){return L.value==="["&&L.type==="Punctuator"}function it(L){return L.value==="]"&&L.type==="Punctuator"}function st(L){return L.value==="{"&&L.type==="Punctuator"}function wt(L){return L.value==="}"&&L.type==="Punctuator"}function vt(L){return L.type==="Line"||L.type==="Block"||L.type==="Shebang"}function Dt(L){return L.type==="Keyword"}function _t(L,ue){if(L.type==="ArrowFunctionExpression"&&L.params.length===1){let Te=ue.getFirstToken(L.params[0]),Be=ue.getTokenBefore(Te);return Ce(Be)?Be:Te}return L.id?ue.getTokenAfter(L.id,Ce):ue.getFirstToken(L,Ce)}function W(L,ue,Te){let Be=Te.getTokens(L),$e=Te.getTokens(ue);if(Be.length!==$e.length)return!1;for(let Fe=0;FeBe.identifier===ue);return!!(Te&&Te.resolved&&Te.resolved.scope.type==="global"&&Te.resolved.defs.length===0)}function z(L,ue,Te){if(!ue)return!0;switch(ue.type){case"Literal":case"ArrowFunctionExpression":case"FunctionExpression":return!0;case"ClassExpression":case"ObjectExpression":return!0;case"TemplateLiteral":return Te&&ue.quasis.some(Be=>Be.value.cooked.length)||ue.expressions.every(Be=>z(L,Be,!1));case"ArrayExpression":return Te?!0:ue.elements.every(Be=>z(L,Be,!1));case"UnaryExpression":return ue.operator==="void"||ue.operator==="typeof"&&Te?!0:ue.operator==="!"?z(L,ue.argument,!0):z(L,ue.argument,!1);case"BinaryExpression":return z(L,ue.left,!1)&&z(L,ue.right,!1)&&ue.operator!=="in";case"LogicalExpression":{let Be=z(L,ue.left,Te),$e=z(L,ue.right,Te),Fe=Be&&oe(ue.left,ue.operator),Oe=Te&&$e&&oe(ue.right,ue.operator);return Be&&$e||Fe||Oe}case"NewExpression":return Te;case"AssignmentExpression":return ue.operator==="="?z(L,ue.right,Te):["||=","&&="].includes(ue.operator)&&Te?oe(ue.right,ue.operator.slice(0,-1)):!1;case"SequenceExpression":return z(L,ue.expressions.at(-1),Te);case"SpreadElement":return z(L,ue.argument,Te);case"CallExpression":return ue.callee.type==="Identifier"&&ue.callee.name==="Boolean"&&(ue.arguments.length===0||z(L,ue.arguments[0],!0))?ce(L,ue.callee):!1;case"Identifier":return ue.name==="undefined"&&ce(L,ue)}return!1}function J(L){if(L.type!=="ExpressionStatement")return!1;let ue=L.parent;return ue.type==="Program"||ue.type==="BlockStatement"&&B(ue.parent)}function ie(L){return L.type==="ExpressionStatement"&&typeof L.directive=="string"}function de(L){let ue=L.range[0],Te=L;for(;(Te=Te.parent)&&Te.range[0]===ue;)if(Te.type==="ExpressionStatement")return!0;return!1}let we;{let L=new Set(["BreakStatement","ContinueStatement"]),ue=new Set(["ExportAllDeclaration","ExportNamedDeclaration","ImportDeclaration"]),Te=new Set(["Identifier","Keyword"]),Be={__proto__:null,break:"BreakStatement",continue:"ContinueStatement",debugger:"DebuggerStatement",do:"DoWhileStatement",else:"IfStatement",return:"ReturnStatement",yield:"YieldExpression"},$e=new Set([":",";","{","=>","++","--"]),Fe=new Set(["DoWhileStatement","ForInStatement","ForOfStatement","ForStatement","IfStatement","WhileStatement","WithStatement"]);we=function(Oe,Ie){let We=Oe.getTokenBefore(Ie);if(!We||We.type==="Punctuator"&&$e.has(We.value))return!1;let ve=Oe.getNodeByRangeIndex(We.range[0]);if(Ve(We))return!Fe.has(ve.type);if(wt(We))return ve.type==="BlockStatement"&&ve.parent.type==="FunctionExpression"||ve.type==="ClassBody"&&ve.parent.type==="ClassExpression"||ve.type==="ObjectExpression";if(Te.has(We.type)){if(L.has(ve.parent.type))return!1;let re=We.value,Y=Be[re];return ve.type!==Y}return We.type==="String"?!ue.has(ve.parent.type):!0}}r.exports={COMMENTS_IGNORE_PATTERN:y,LINEBREAKS:x,LINEBREAK_MATCHER:l,SHEBANG_MATCHER:o,STATEMENT_LIST_PARENTS:S,ECMASCRIPT_GLOBALS:E,isTokenOnSameLine(L,ue){return L.loc.end.line===ue.loc.start.line},isNullOrUndefined:Q,isCallee:I,isES5Constructor:D,getUpperFunction:_,isFunction:B,isLoop:T,isInLoop:R,isArrayFromMethod:$,isParenthesised:be,createGlobalLinebreakMatcher:a,equalTokens:W,isArrowToken:qe,isClosingBraceToken:wt,isClosingBracketToken:it,isClosingParenToken:Ve,isColonToken:G,isCommaToken:rt,isCommentToken:vt,isDotToken:ht,isQuestionDotToken:pt,isKeywordToken:Dt,isNotClosingBraceToken:K(wt),isNotClosingBracketToken:K(it),isNotClosingParenToken:K(Ve),isNotColonToken:K(G),isNotCommaToken:K(rt),isNotDotToken:K(ht),isNotQuestionDotToken:K(pt),isNotOpeningBraceToken:K(st),isNotOpeningBracketToken:K(et),isNotOpeningParenToken:K(Ce),isNotSemicolonToken:K(Et),isOpeningBraceToken:st,isOpeningBracketToken:et,isOpeningParenToken:Ce,isSemicolonToken:Et,isEqToken:Le,isStringLiteral(L){return L.type==="Literal"&&typeof L.value=="string"||L.type==="TemplateLiteral"},isBreakableStatement(L){return i.test(L.type)},getModifyingReferences(L){return L.filter(k)},isSurroundedBy(L,ue){return L[0]===ue&&L.at(-1)===ue},isDirectiveComment(L){let ue=L.value.trim();return L.type==="Line"&&ue.startsWith("eslint-")||L.type==="Block"&&v.test(ue)},getTrailingStatement:t.ast.trailingStatement,getVariableByName(L,ue){let Te=L;for(;Te;){let Be=Te.set.get(ue);if(Be)return Be;Te=Te.upper}return null},isDefaultThisBinding(L,ue,{capIsConstructor:Te=!0}={}){if(L.parent.type==="PropertyDefinition"&&L.parent.value===L||L.type==="StaticBlock"||Te&&D(L)||le(L,ue))return!1;let Be=L.id===null,$e=L;for(;$e;){let Fe=$e.parent;switch(Fe.type){case"LogicalExpression":case"ConditionalExpression":case"ChainExpression":$e=Fe;break;case"ReturnStatement":{let Oe=_(Fe);if(Oe===null||!I(Oe))return!0;$e=Oe.parent;break}case"ArrowFunctionExpression":if($e!==Fe.body||!I(Fe))return!0;$e=Fe.parent;break;case"Property":case"PropertyDefinition":case"MethodDefinition":return Fe.value!==$e;case"AssignmentExpression":case"AssignmentPattern":return!(Fe.left.type==="MemberExpression"||Te&&Be&&Fe.left.type==="Identifier"&&A(Fe.left.name));case"VariableDeclarator":return!(Te&&Be&&Fe.init===$e&&Fe.id.type==="Identifier"&&A(Fe.id.name));case"MemberExpression":if(Fe.object===$e&&se(Fe,null,m)){let Oe=Fe.parent.type==="ChainExpression"?Fe.parent:Fe;return!(I(Oe)&&Oe.parent.arguments.length>=1&&!Q(Oe.parent.arguments[0]))}return!0;case"CallExpression":return he(Fe.callee)?Fe.arguments.length!==3||Fe.arguments[0]!==$e||Q(Fe.arguments[1]):$(Fe.callee)?Fe.arguments.length!==3||Fe.arguments[1]!==$e||Q(Fe.arguments[2]):pe(Fe.callee)?Fe.arguments.length!==2||Fe.arguments[0]!==$e||Q(Fe.arguments[1]):!0;default:return!0}}return!0},getPrecedence(L){switch(L.type){case"SequenceExpression":return 0;case"AssignmentExpression":case"ArrowFunctionExpression":case"YieldExpression":return 1;case"ConditionalExpression":return 3;case"LogicalExpression":switch(L.operator){case"||":case"??":return 4;case"&&":return 5}case"BinaryExpression":switch(L.operator){case"|":return 6;case"^":return 7;case"&":return 8;case"==":case"!=":case"===":case"!==":return 9;case"<":case"<=":case">":case">=":case"in":case"instanceof":return 10;case"<<":case">>":case">>>":return 11;case"+":case"-":return 12;case"*":case"/":case"%":return 13;case"**":return 15}case"UnaryExpression":case"AwaitExpression":return 16;case"UpdateExpression":return 17;case"CallExpression":case"ChainExpression":case"ImportExpression":return 18;case"NewExpression":return 19;default:return L.type in e?20:-1}},isEmptyBlock(L){return!!(L&&L.type==="BlockStatement"&&L.body.length===0)},isEmptyFunction(L){return B(L)&&r.exports.isEmptyBlock(L.body)},getDirectivePrologue(L){let ue=[];if(L.type==="Program"||L.type==="FunctionDeclaration"||L.type==="FunctionExpression"||L.type==="ArrowFunctionExpression"&&L.body.type==="BlockStatement"){let Te=L.type==="Program"?L.body:L.body.body;for(let Be of Te)if(Be.type==="ExpressionStatement"&&Be.expression.type==="Literal")ue.push(Be);else break}return ue},isDecimalInteger(L){return L.type==="Literal"&&typeof L.value=="number"&&w.test(L.raw)},isDecimalIntegerNumericToken(L){return L.type==="Numeric"&&w.test(L.value)},getFunctionNameWithKind(L){let ue=L.parent,Te=[];if((ue.type==="MethodDefinition"||ue.type==="PropertyDefinition")&&(ue.static&&Te.push("static"),!ue.computed&&ue.key.type==="PrivateIdentifier"&&Te.push("private")),L.async&&Te.push("async"),L.generator&&Te.push("generator"),ue.type==="Property"||ue.type==="MethodDefinition"){if(ue.kind==="constructor")return"constructor";ue.kind==="get"?Te.push("getter"):ue.kind==="set"?Te.push("setter"):Te.push("method")}else ue.type==="PropertyDefinition"?Te.push("method"):(L.type==="ArrowFunctionExpression"&&Te.push("arrow"),Te.push("function"));if(ue.type==="Property"||ue.type==="MethodDefinition"||ue.type==="PropertyDefinition")if(!ue.computed&&ue.key.type==="PrivateIdentifier")Te.push(`#${ue.key.name}`);else{let Be=F(ue);Be!==null?Te.push(`'${Be}'`):L.id&&Te.push(`'${L.id.name}'`)}else L.id&&Te.push(`'${L.id.name}'`);return Te.join(" ")},getFunctionHeadLoc(L,ue){let Te=L.parent,Be,$e;if(Te.type==="Property"||Te.type==="MethodDefinition"||Te.type==="PropertyDefinition")Be=Te.loc.start,$e=_t(L,ue).loc.start;else if(L.type==="ArrowFunctionExpression"){let Fe=ue.getTokenBefore(L.body,qe);Be=Fe.loc.start,$e=Fe.loc.end}else Be=L.loc.start,$e=_t(L,ue).loc.start;return{start:Object.assign({},Be),end:Object.assign({},$e)}},getNextLocation(L,{line:ue,column:Te}){return TeBe.range[0])&&(Be=Ie)}}else Be=L;if(Be.type==="Shebang"||Be.type==="Hashbang")return!1;let $e;if(typeof ue=="string"){let Fe;try{Fe=s.tokenize(ue,Te)}catch{return!1}let Oe=Fe.comments;if($e=Fe[0],Oe.length){let Ie=Oe[0];(!$e||Ie.range[0]<$e.range[0])&&($e=Ie)}}else $e=ue;if(Be.type==="Punctuator"||$e.type==="Punctuator"){if(Be.type==="Punctuator"&&$e.type==="Punctuator"){let Fe=new Set(["+","++"]),Oe=new Set(["-","--"]);return!(Fe.has(Be.value)&&Fe.has($e.value)||Oe.has(Be.value)&&Oe.has($e.value))}return Be.type==="Punctuator"&&Be.value==="/"?!["Block","Line","RegularExpression"].includes($e.type):!0}return!!(Be.type==="String"||$e.type==="String"||Be.type==="Template"||$e.type==="Template"||Be.type!=="Numeric"&&$e.type==="Numeric"&&$e.value.startsWith(".")||Be.type==="Block"||$e.type==="Block"||$e.type==="Line"||$e.type==="PrivateIdentifier")},getNameLocationInGlobalDirectiveComment(L,ue,Te){let Be=new RegExp(`[\\s,]${n(Te)}(?:$|[\\s,:])`,"gu");Be.lastIndex=ue.value.indexOf("global")+6;let $e=Be.exec(ue.value),Fe=L.getLocFromIndex(ue.range[0]+2+($e?$e.index+1:0)),Oe={line:Fe.line,column:Fe.column+($e?Te.length:1)};return{start:Fe,end:Oe}},hasOctalOrNonOctalDecimalEscapeSequence(L){return O.test(L)},isStaticTemplateLiteral(L){return L.type==="TemplateLiteral"&&L.expressions.length===0},isReferenceToGlobalVariable:ce,isLogicalExpression:xt,isCoalesceExpression:Ye,isMixedLogicalAndCoalesceExpressions:Kt,isNullLiteral:j,getStaticStringValue:N,getStaticPropertyName:F,skipChainExpression:U,isSpecificId:ae,isSpecificMemberAccess:se,equalLiteralValue:xe,isSameReference:H,isLogicalAssignmentOperator:De,getSwitchCaseColonToken:X,getModuleExportName:ne,isConstant:z,isTopLevelExpressionStatement:J,isDirective:ie,isStartOfExpressionStatement:de,needsPrecedingSemicolon:we}}(Zm)),Zm.exports}var Km,qT;function oV(){if(qT)return Km;qT=1;let r=Pe();function e(a,l){if(a.length!==l.length)return!1;for(let o=0;ow.type==="Property"))}function g(S){let w=new Set(S.properties.filter(E=>E.type==="Property"&&E.kind==="init"&&!E.computed).map(({key:E})=>E.name)),O=w.has("get"),C=w.has("set");u&&C&&!O&&h(S,"missingGetter"),o&&O&&!C&&h(S,"missingSetter")}function y(S){m(S),i(S)&&g(S)}function v(S){let w=S.body.filter(O=>O.type==="MethodDefinition");d(w.filter(O=>O.static)),d(w.filter(O=>!O.static))}let x={};return(u||o)&&(x.ObjectExpression=y,c&&(x.ClassBody=v)),x}},Km}var Jm,QT;function lV(){if(QT)return Jm;QT=1;let r=Pe();return Jm={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Enforce linebreaks after opening and before closing array brackets",recommended:!1,url:"https://eslint.org/docs/latest/rules/array-bracket-newline"},fixable:"whitespace",schema:[{oneOf:[{enum:["always","never","consistent"]},{type:"object",properties:{multiline:{type:"boolean"},minItems:{type:["integer","null"],minimum:0}},additionalProperties:!1}]}],messages:{unexpectedOpeningLinebreak:"There should be no linebreak after '['.",unexpectedClosingLinebreak:"There should be no linebreak before ']'.",missingOpeningLinebreak:"A linebreak is required after '['.",missingClosingLinebreak:"A linebreak is required before ']'."}},create(e){let t=e.sourceCode;function s(c){let p=!1,h=!1,f;return c?c==="consistent"?(p=!0,f=Number.POSITIVE_INFINITY):c==="always"||c.minItems===0?f=0:c==="never"?f=Number.POSITIVE_INFINITY:(h=!!c.multiline,f=c.minItems||Number.POSITIVE_INFINITY):(p=!1,h=!0,f=Number.POSITIVE_INFINITY),{consistent:p,multiline:h,minItems:f}}function n(c){let p=s(c);return{ArrayExpression:p,ArrayPattern:p}}function i(c,p){e.report({node:c,loc:p.loc,messageId:"unexpectedOpeningLinebreak",fix(h){let f=t.getTokenAfter(p,{includeComments:!0});return r.isCommentToken(f)?null:h.removeRange([p.range[1],f.range[0]])}})}function a(c,p){e.report({node:c,loc:p.loc,messageId:"unexpectedClosingLinebreak",fix(h){let f=t.getTokenBefore(p,{includeComments:!0});return r.isCommentToken(f)?null:h.removeRange([f.range[1],p.range[0]])}})}function l(c,p){e.report({node:c,loc:p.loc,messageId:"missingOpeningLinebreak",fix(h){return h.insertTextAfter(p,` `)}})}function o(c,p){e.report({node:c,loc:p.loc,messageId:"missingClosingLinebreak",fix(h){return h.insertTextBefore(p,` -`)}})}function u(c){let p=c.elements,f=n(e.options[0])[c.type],d=t.getFirstToken(c),m=t.getLastToken(c),g=t.getTokenAfter(d,{includeComments:!0}),y=t.getTokenBefore(m,{includeComments:!0}),b=t.getTokenAfter(d),v=t.getTokenBefore(m);p.length>=f.minItems||f.multiline&&p.length>0&&g.loc.start.line!==y.loc.end.line||p.length===0&&g.type==="Block"&&g.loc.start.line!==y.loc.end.line&&g===y||f.consistent&&d.loc.end.line!==b.loc.start.line?(r.isTokenOnSameLine(d,b)&&l(c,d),r.isTokenOnSameLine(v,m)&&o(c,m)):(r.isTokenOnSameLine(d,b)||i(c,d),r.isTokenOnSameLine(v,m)||a(c,m))}return{ArrayPattern:u,ArrayExpression:u}}},Jm}var eg,VT;function l7(){if(VT)return eg;VT=1;let r=Pe();return eg={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Enforce consistent spacing inside array brackets",recommended:!1,url:"https://eslint.org/docs/latest/rules/array-bracket-spacing"},fixable:"whitespace",schema:[{enum:["always","never"]},{type:"object",properties:{singleValue:{type:"boolean"},objectsInArrays:{type:"boolean"},arraysInArrays:{type:"boolean"}},additionalProperties:!1}],messages:{unexpectedSpaceAfter:"There should be no space after '{{tokenValue}}'.",unexpectedSpaceBefore:"There should be no space before '{{tokenValue}}'.",missingSpaceAfter:"A space is required after '{{tokenValue}}'.",missingSpaceBefore:"A space is required before '{{tokenValue}}'."}},create(e){let t=e.options[0]==="always",s=e.sourceCode;function n(f){return e.options[1]?e.options[1][f]===!t:!1}let i={spaced:t,singleElementException:n("singleValue"),objectsInArraysException:n("objectsInArrays"),arraysInArraysException:n("arraysInArrays")};function a(f,d){let m=s.getTokenAfter(d);e.report({node:f,loc:{start:d.loc.end,end:m.loc.start},messageId:"unexpectedSpaceAfter",data:{tokenValue:d.value},fix(g){return g.removeRange([d.range[1],m.range[0]])}})}function l(f,d){let m=s.getTokenBefore(d);e.report({node:f,loc:{start:m.loc.end,end:d.loc.start},messageId:"unexpectedSpaceBefore",data:{tokenValue:d.value},fix(g){return g.removeRange([m.range[1],d.range[0]])}})}function o(f,d){e.report({node:f,loc:d.loc,messageId:"missingSpaceAfter",data:{tokenValue:d.value},fix(m){return m.insertTextAfter(d," ")}})}function u(f,d){e.report({node:f,loc:d.loc,messageId:"missingSpaceBefore",data:{tokenValue:d.value},fix(m){return m.insertTextBefore(d," ")}})}function c(f){return f&&(f.type==="ObjectExpression"||f.type==="ObjectPattern")}function p(f){return f&&(f.type==="ArrayExpression"||f.type==="ArrayPattern")}function h(f){if(i.spaced&&f.elements.length===0)return;let d=s.getFirstToken(f),m=s.getFirstToken(f,1),g=f.typeAnnotation?s.getTokenBefore(f.typeAnnotation):s.getLastToken(f),y=s.getTokenBefore(g),b=f.elements[0],v=f.elements.at(-1),S=i.objectsInArraysException&&c(b)||i.arraysInArraysException&&p(b)||i.singleElementException&&f.elements.length===1?!i.spaced:i.spaced,C=i.objectsInArraysException&&c(v)||i.arraysInArraysException&&p(v)||i.singleElementException&&f.elements.length===1?!i.spaced:i.spaced;r.isTokenOnSameLine(d,m)&&(S&&!s.isSpaceBetweenTokens(d,m)&&o(f,d),!S&&s.isSpaceBetweenTokens(d,m)&&a(f,d)),d!==y&&r.isTokenOnSameLine(y,g)&&(C&&!s.isSpaceBetweenTokens(y,g)&&u(f,g),!C&&s.isSpaceBetweenTokens(y,g)&&l(f,g))}return{ArrayPattern:h,ArrayExpression:h}}},eg}var tg,WT;function u7(){if(WT)return tg;WT=1;let r=Pe(),e=/^(?:Arrow)?FunctionExpression$/u,t=/^(?:every|filter|find(?:Last)?(?:Index)?|flatMap|forEach|map|reduce(?:Right)?|some|sort|toSorted)$/u;function s(c){return r.isSpecificMemberAccess(c,null,t)}function n(c){for(let p of c)if(p.reachable)return!0;return!1}function i(c){return["from","of","isArray"].includes(c)?"Array.".concat(c):"Array.prototype.".concat(c)}function a(c){let p=c;for(;p;){let h=p.parent;switch(h.type){case"LogicalExpression":case"ConditionalExpression":case"ChainExpression":p=h;break;case"ReturnStatement":{let f=r.getUpperFunction(h);if(f===null||!r.isCallee(f))return null;p=f.parent;break}case"CallExpression":return r.isArrayFromMethod(h.callee)&&h.arguments.length>=2&&h.arguments[1]===p?"from":s(h.callee)&&h.arguments.length>=1&&h.arguments[0]===p?r.getStaticPropertyName(h.callee):null;default:return null}}return null}function l(c){return c.type==="UnaryExpression"&&c.operator==="void"}function o(c,p,h){let f=r.getPrecedence(p)y.type==="Keyword"&&y.value==="return"),m=c.getTokenAfter(d),g=d.value==="return"&&d.range[1]===m.range[0];return[h.insertTextBefore(m,`${g?" ":""}void ${f?"(":""}`),h.insertTextAfter(p,f?")":"")]}function u(c,p,h){let f=c.getTokenBefore(p.body,r.isArrowToken),d=c.getTokenAfter(f),m=c.getLastToken(p);return[h.insertTextBefore(d,"{"),h.insertTextAfter(m,"}")]}return tg={meta:{type:"problem",docs:{description:"Enforce `return` statements in callbacks of array methods",recommended:!1,url:"https://eslint.org/docs/latest/rules/array-callback-return"},hasSuggestions:!0,schema:[{type:"object",properties:{allowImplicit:{type:"boolean",default:!1},checkForEach:{type:"boolean",default:!1},allowVoid:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{expectedAtEnd:"{{arrayMethodName}}() expects a value to be returned at the end of {{name}}.",expectedInside:"{{arrayMethodName}}() expects a return value from {{name}}.",expectedReturnValue:"{{arrayMethodName}}() expects a return value from {{name}}.",expectedNoReturnValue:"{{arrayMethodName}}() expects no useless return value from {{name}}.",wrapBraces:"Wrap the expression in `{}`.",prependVoid:"Prepend `void` to the expression."}},create(c){let p=c.options[0]||{allowImplicit:!1,checkForEach:!1,allowVoid:!1},h=c.sourceCode,f={arrayMethodName:null,upper:null,codePath:null,hasReturn:!1,shouldCheck:!1,node:null};function d(m){if(!f.shouldCheck)return;let g={messageId:"",suggest:[]};if(f.arrayMethodName==="forEach"){if(p.checkForEach&&m.type==="ArrowFunctionExpression"&&m.expression)if(p.allowVoid){if(l(m.body))return;g.messageId="expectedNoReturnValue",g.suggest=[{messageId:"wrapBraces",fix(y){return u(h,m,y)}},{messageId:"prependVoid",fix(y){return o(h,m.body,y)}}]}else g.messageId="expectedNoReturnValue",g.suggest=[{messageId:"wrapBraces",fix(y){return u(h,m,y)}}]}else m.body.type==="BlockStatement"&&n(f.currentSegments)&&(g.messageId=f.hasReturn?"expectedAtEnd":"expectedInside");if(g.messageId){let y=r.getFunctionNameWithKind(m);c.report({node:m,loc:r.getFunctionHeadLoc(m,h),messageId:g.messageId,data:{name:y,arrayMethodName:i(f.arrayMethodName)},suggest:g.suggest.length!==0?g.suggest:null})}}return{onCodePathStart(m,g){let y=null;e.test(g.type)&&(y=a(g)),f={arrayMethodName:y,upper:f,codePath:m,hasReturn:!1,shouldCheck:y&&!g.async&&!g.generator,node:g,currentSegments:new Set}},onCodePathEnd(){f=f.upper},onUnreachableCodePathSegmentStart(m){f.currentSegments.add(m)},onUnreachableCodePathSegmentEnd(m){f.currentSegments.delete(m)},onCodePathSegmentStart(m){f.currentSegments.add(m)},onCodePathSegmentEnd(m){f.currentSegments.delete(m)},ReturnStatement(m){if(!f.shouldCheck)return;f.hasReturn=!0;let g={messageId:"",suggest:[]};if(f.arrayMethodName==="forEach"){if(p.checkForEach&&m.argument)if(p.allowVoid){if(l(m.argument))return;g.messageId="expectedNoReturnValue",g.suggest=[{messageId:"prependVoid",fix(y){return o(h,m.argument,y)}}]}else g.messageId="expectedNoReturnValue"}else!p.allowImplicit&&!m.argument&&(g.messageId="expectedReturnValue");g.messageId&&c.report({node:m,messageId:g.messageId,data:{name:r.getFunctionNameWithKind(f.node),arrayMethodName:i(f.arrayMethodName)},suggest:g.suggest.length!==0?g.suggest:null})},"FunctionExpression:exit":d,"ArrowFunctionExpression:exit":d}}},tg}var rg,ZT;function c7(){if(ZT)return rg;ZT=1;let r=Pe();return rg={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Enforce line breaks after each array element",recommended:!1,url:"https://eslint.org/docs/latest/rules/array-element-newline"},fixable:"whitespace",schema:{definitions:{basicConfig:{oneOf:[{enum:["always","never","consistent"]},{type:"object",properties:{multiline:{type:"boolean"},minItems:{type:["integer","null"],minimum:0}},additionalProperties:!1}]}},type:"array",items:[{oneOf:[{$ref:"#/definitions/basicConfig"},{type:"object",properties:{ArrayExpression:{$ref:"#/definitions/basicConfig"},ArrayPattern:{$ref:"#/definitions/basicConfig"}},additionalProperties:!1,minProperties:1}]}]},messages:{unexpectedLineBreak:"There should be no linebreak here.",missingLineBreak:"There should be a linebreak after this element."}},create(e){let t=e.sourceCode;function s(o){let u=!1,c=!1,p,h=o||"always";return!h||h==="always"||h.minItems===0?p=0:h==="never"?p=Number.POSITIVE_INFINITY:h==="consistent"?(u=!0,p=Number.POSITIVE_INFINITY):(c=!!h.multiline,p=h.minItems||Number.POSITIVE_INFINITY),{consistent:u,multiline:c,minItems:p}}function n(o){if(o&&(o.ArrayExpression||o.ArrayPattern)){let c,p;return o.ArrayExpression&&(c=s(o.ArrayExpression)),o.ArrayPattern&&(p=s(o.ArrayPattern)),{ArrayExpression:c,ArrayPattern:p}}let u=s(o);return{ArrayExpression:u,ArrayPattern:u}}function i(o){let u=t.getTokenBefore(o,{includeComments:!0});e.report({loc:{start:u.loc.end,end:o.loc.start},messageId:"unexpectedLineBreak",fix(c){if(r.isCommentToken(u))return null;if(!r.isTokenOnSameLine(u,o))return c.replaceTextRange([u.range[1],o.range[0]]," ");let p=t.getTokenBefore(u,{includeComments:!0});return r.isCommentToken(p)?null:c.replaceTextRange([p.range[1],u.range[0]],"")}})}function a(o){let u=t.getTokenBefore(o,{includeComments:!0});e.report({loc:{start:u.loc.end,end:o.loc.start},messageId:"missingLineBreak",fix(c){return c.replaceTextRange([u.range[1],o.range[0]],` -`)}})}function l(o){let u=o.elements,p=n(e.options[0])[o.type];if(!p)return;let h=!1;p.multiline&&(h=u.filter(m=>m!==null).some(m=>m.loc.start.line!==m.loc.end.line));let f=0;for(let m=0;m=p.minItems||p.multiline&&h||p.consistent&&f>0&&f{let y=u[g-1];if(g===0||m===null||y===null)return;let b=t.getFirstTokenBetween(y,m,r.isCommaToken),v=t.getTokenBefore(b),S=t.getTokenAfter(b);d?r.isTokenOnSameLine(v,S)&&a(S):r.isTokenOnSameLine(v,S)||i(S)})}return{ArrayPattern:l,ArrayExpression:l}}},rg}var ng,zT;function f7(){if(zT)return ng;zT=1;let r=Pe();return ng={meta:{type:"suggestion",docs:{description:"Require braces around arrow function bodies",recommended:!1,url:"https://eslint.org/docs/latest/rules/arrow-body-style"},schema:{anyOf:[{type:"array",items:[{enum:["always","never"]}],minItems:0,maxItems:1},{type:"array",items:[{enum:["as-needed"]},{type:"object",properties:{requireReturnForObjectLiteral:{type:"boolean"}},additionalProperties:!1}],minItems:0,maxItems:2}]},fixable:"code",messages:{unexpectedOtherBlock:"Unexpected block statement surrounding arrow body.",unexpectedEmptyBlock:"Unexpected block statement surrounding arrow body; put a value of `undefined` immediately after the `=>`.",unexpectedObjectBlock:"Unexpected block statement surrounding arrow body; parenthesize the returned value and move it immediately after the `=>`.",unexpectedSingleBlock:"Unexpected block statement surrounding arrow body; move the returned value immediately after the `=>`.",expectedBlock:"Expected block statement surrounding arrow body."}},create(e){let t=e.options,s=t[0]==="always",n=!t[0]||t[0]==="as-needed",i=t[0]==="never",a=t[1]&&t[1].requireReturnForObjectLiteral,l=e.sourceCode,o=null;function u(f){return f&&f.type==="Punctuator"&&/^[([/`+-]/u.test(f.value)}function c(f){let d=f;for(;!r.isParenthesised(l,d);)d=d.parent;return l.getTokenAfter(d)}function p(f){return f&&f.parent?f.parent.type==="ForStatement"&&f.parent.init===f?!0:p(f.parent):!1}function h(f){let d=f.body;if(d.type==="BlockStatement"){let m=d.body;if(m.length!==1&&!i||n&&a&&m[0].type==="ReturnStatement"&&m[0].argument&&m[0].argument.type==="ObjectExpression")return;if(i||n&&m[0].type==="ReturnStatement"){let g;m.length===0?g="unexpectedEmptyBlock":m.length>1?g="unexpectedOtherBlock":m[0].argument===null?g="unexpectedSingleBlock":r.isOpeningBraceToken(l.getFirstToken(m[0],{skip:1}))?g="unexpectedObjectBlock":g="unexpectedSingleBlock",e.report({node:f,loc:d.loc,messageId:g,fix(y){let b=[];if(m.length!==1||m[0].type!=="ReturnStatement"||!m[0].argument||u(l.getTokenAfter(d)))return b;let v=l.getFirstToken(d),S=l.getLastToken(d),C=l.getFirstToken(m[0],1),O=l.getLastToken(m[0]);return l.commentsExistBetween(v,C)||l.commentsExistBetween(O,S)?b.push(y.remove(v),y.remove(S),y.remove(l.getTokenAfter(v))):b.push(y.removeRange([v.range[0],C.range[0]]),y.removeRange([O.range[1],S.range[1]])),(r.isOpeningBraceToken(C)||m[0].argument.type==="SequenceExpression"||o.hasInOperator&&p(f))&&(r.isParenthesised(l,m[0].argument)||b.push(y.insertTextBefore(C,"("),y.insertTextAfter(O,")"))),r.isSemicolonToken(O)&&b.push(y.remove(O)),b}})}}else(s||n&&a&&d.type==="ObjectExpression")&&e.report({node:f,loc:d.loc,messageId:"expectedBlock",fix(m){let g=[],y=l.getTokenBefore(d,r.isArrowToken),[b,v]=l.getTokensAfter(y,{count:2}),S=l.getLastToken(f),C=null;if(r.isOpeningParenToken(b)&&r.isOpeningBraceToken(v)){let O=l.getNodeByRangeIndex(v.range[0]);O.type==="ObjectExpression"&&(C=O)}if(C){let O=b,w=v;r.isTokenOnSameLine(O,w)?g.push(m.replaceText(O,"{return ")):g.push(m.replaceText(O,"{"),m.insertTextBefore(w,"return ")),g.push(m.remove(c(C))),g.push(m.insertTextAfter(S,"}"))}else g.push(m.insertTextBefore(b,"{return ")),g.push(m.insertTextAfter(S,"}"));return g}})}return{"BinaryExpression[operator='in']"(){let f=o;for(;f;)f.hasInOperator=!0,f=f.upper},ArrowFunctionExpression(){o={upper:o,hasInOperator:!1}},"ArrowFunctionExpression:exit"(f){h(f),o=o.upper}}}},ng}var sg,XT;function p7(){if(XT)return sg;XT=1;let r=Pe();function e(t){return t.body.type==="BlockStatement"}return sg={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Require parentheses around arrow function arguments",recommended:!1,url:"https://eslint.org/docs/latest/rules/arrow-parens"},fixable:"code",schema:[{enum:["always","as-needed"]},{type:"object",properties:{requireForBlockBody:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{unexpectedParens:"Unexpected parentheses around single function argument.",expectedParens:"Expected parentheses around arrow function argument.",unexpectedParensInline:"Unexpected parentheses around single function argument having a body with no curly braces.",expectedParensBlock:"Expected parentheses around arrow function argument having a body with curly braces."}},create(t){let s=t.options[0]==="as-needed",n=s&&t.options[1]&&t.options[1].requireForBlockBody===!0,i=t.sourceCode;function a(c){let p=i.getTokenBefore(c.params[0]);return p&&r.isOpeningParenToken(p)&&c.range[0]<=p.range[0]?p:null}function l(c){return i.getTokenAfter(c.params[0],r.isClosingParenToken)}function o(c,p){return i.commentsExistBetween(p,l(c))}function u(c,p){let h=c.async?1:0;return i.getFirstToken(c,{skip:h})!==p}return{"ArrowFunctionExpression[params.length=1]"(c){let p=!s||n&&e(c),h=a(c),f=h!==null,[d]=c.params;p&&!f&&t.report({node:c,messageId:n?"expectedParensBlock":"expectedParens",loc:d.loc,*fix(m){yield m.insertTextBefore(d,"("),yield m.insertTextAfter(d,")")}}),!p&&f&&d.type==="Identifier"&&!d.typeAnnotation&&!c.returnType&&!o(c,h)&&!u(c,h)&&t.report({node:c,messageId:n?"unexpectedParensInline":"unexpectedParens",loc:d.loc,*fix(m){let g=i.getTokenBefore(h),y=l(c);g&&g.range[1]===h.range[0]&&!r.canTokensBeAdjacent(g,i.getFirstToken(d))&&(yield m.insertTextBefore(h," ")),yield m.removeRange([h.range[0],d.range[0]]),yield m.removeRange([d.range[1],y.range[1]])}})}}}},sg}var ig,GT;function h7(){if(GT)return ig;GT=1;let r=Pe();return ig={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Enforce consistent spacing before and after the arrow in arrow functions",recommended:!1,url:"https://eslint.org/docs/latest/rules/arrow-spacing"},fixable:"whitespace",schema:[{type:"object",properties:{before:{type:"boolean",default:!0},after:{type:"boolean",default:!0}},additionalProperties:!1}],messages:{expectedBefore:"Missing space before =>.",unexpectedBefore:"Unexpected space before =>.",expectedAfter:"Missing space after =>.",unexpectedAfter:"Unexpected space after =>."}},create(e){let t=Object.assign({},e.options[0]);t.before=t.before!==!1,t.after=t.after!==!1;let s=e.sourceCode;function n(l){let o=s.getTokenBefore(l.body,r.isArrowToken);return{before:s.getTokenBefore(o),arrow:o,after:s.getTokenAfter(o)}}function i(l){let o=l.arrow.range[0]-l.before.range[1],u=l.after.range[0]-l.arrow.range[1];return{before:o,after:u}}function a(l){let o=n(l),u=i(o);t.before?u.before===0&&e.report({node:o.before,messageId:"expectedBefore",fix(c){return c.insertTextBefore(o.arrow," ")}}):u.before>0&&e.report({node:o.before,messageId:"unexpectedBefore",fix(c){return c.removeRange([o.before.range[1],o.arrow.range[0]])}}),t.after?u.after===0&&e.report({node:o.after,messageId:"expectedAfter",fix(c){return c.insertTextAfter(o.arrow," ")}}):u.after>0&&e.report({node:o.after,messageId:"unexpectedAfter",fix(c){return c.removeRange([o.arrow.range[1],o.after.range[0]])}})}return{ArrowFunctionExpression:a}}},ig}var ag,YT;function d7(){return YT||(YT=1,ag={meta:{type:"suggestion",docs:{description:"Enforce the use of variables within the scope they are defined",recommended:!1,url:"https://eslint.org/docs/latest/rules/block-scoped-var"},schema:[],messages:{outOfScope:"'{{name}}' declared on line {{definitionLine}} column {{definitionColumn}} is used outside of binding context."}},create(r){let e=[],t=r.sourceCode;function s(l){e.push(l.range)}function n(){e.pop()}function i(l,o){let u=l.identifier,c=o.name.loc.start;r.report({node:u,messageId:"outOfScope",data:{name:u.name,definitionLine:c.line,definitionColumn:c.column+1}})}function a(l){if(l.kind!=="var")return;let o=e.at(-1);function u(p){let h=p.identifier.range;return h[0]o[1]}let c=t.getDeclaredVariables(l);for(let p=0;pi(h,c[p].defs.find(f=>f.parent===l)))}return{Program(l){e=[l.range]},BlockStatement:s,"BlockStatement:exit":n,ForStatement:s,"ForStatement:exit":n,ForInStatement:s,"ForInStatement:exit":n,ForOfStatement:s,"ForOfStatement:exit":n,SwitchStatement:s,"SwitchStatement:exit":n,CatchClause:s,"CatchClause:exit":n,StaticBlock:s,"StaticBlock:exit":n,VariableDeclaration:a}}}),ag}var og,HT;function m7(){if(HT)return og;HT=1;let r=Pe();return og={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Disallow or enforce spaces inside of blocks after opening block and before closing block",recommended:!1,url:"https://eslint.org/docs/latest/rules/block-spacing"},fixable:"whitespace",schema:[{enum:["always","never"]}],messages:{missing:"Requires a space {{location}} '{{token}}'.",extra:"Unexpected space(s) {{location}} '{{token}}'."}},create(e){let t=e.options[0]!=="never",s=t?"missing":"extra",n=e.sourceCode;function i(o){return o.type==="SwitchStatement"?o.cases.length>0?n.getTokenBefore(o.cases[0]):n.getLastToken(o,1):o.type==="StaticBlock"?n.getFirstToken(o,{skip:1}):n.getFirstToken(o)}function a(o,u){return!r.isTokenOnSameLine(o,u)||n.isSpaceBetweenTokens(o,u)===t}function l(o){let u=i(o),c=n.getLastToken(o),p=n.getTokenAfter(u,{includeComments:!0}),h=n.getTokenBefore(c,{includeComments:!0});if(!(u.type!=="Punctuator"||u.value!=="{"||c.type!=="Punctuator"||c.value!=="}"||p===c)&&!(!t&&p.type==="Line")){if(!a(u,p)){let f=u.loc;s==="extra"&&(f={start:u.loc.end,end:p.loc.start}),e.report({node:o,loc:f,messageId:s,data:{location:"after",token:u.value},fix(d){return t?d.insertTextBefore(p," "):d.removeRange([u.range[1],p.range[0]])}})}if(!a(h,c)){let f=c.loc;s==="extra"&&(f={start:h.loc.end,end:c.loc.start}),e.report({node:o,loc:f,messageId:s,data:{location:"before",token:c.value},fix(d){return t?d.insertTextAfter(h," "):d.removeRange([h.range[1],c.range[0]])}})}}}return{BlockStatement:l,StaticBlock:l,SwitchStatement:l}}},og}var lg,KT;function g7(){if(KT)return lg;KT=1;let r=Pe();return lg={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Enforce consistent brace style for blocks",recommended:!1,url:"https://eslint.org/docs/latest/rules/brace-style"},schema:[{enum:["1tbs","stroustrup","allman"]},{type:"object",properties:{allowSingleLine:{type:"boolean",default:!1}},additionalProperties:!1}],fixable:"whitespace",messages:{nextLineOpen:"Opening curly brace does not appear on the same line as controlling statement.",sameLineOpen:"Opening curly brace appears on the same line as controlling statement.",blockSameLine:"Statement inside of curly braces should be on next line.",nextLineClose:"Closing curly brace does not appear on the same line as the subsequent block.",singleLineClose:"Closing curly brace should be on the same line as opening curly brace or on the line after the previous block.",sameLineClose:"Closing curly brace appears on the same line as the subsequent block."}},create(e){let t=e.options[0]||"1tbs",s=e.options[1]||{},n=e.sourceCode;function i(o,u){let c=[o.range[1],u.range[0]];return n.text.slice(c[0],c[1]).trim()?null:h=>h.replaceTextRange(c," ")}function a(o,u){let c=n.getTokenBefore(o),p=n.getTokenAfter(o),h=n.getTokenBefore(u),f=s.allowSingleLine&&r.isTokenOnSameLine(o,u);t!=="allman"&&!r.isTokenOnSameLine(c,o)&&e.report({node:o,messageId:"nextLineOpen",fix:i(c,o)}),t==="allman"&&r.isTokenOnSameLine(c,o)&&!f&&e.report({node:o,messageId:"sameLineOpen",fix:d=>d.insertTextBefore(o,` +`)}})}function u(c){let p=c.elements,f=n(e.options[0])[c.type],d=t.getFirstToken(c),m=t.getLastToken(c),g=t.getTokenAfter(d,{includeComments:!0}),y=t.getTokenBefore(m,{includeComments:!0}),v=t.getTokenAfter(d),x=t.getTokenBefore(m);p.length>=f.minItems||f.multiline&&p.length>0&&g.loc.start.line!==y.loc.end.line||p.length===0&&g.type==="Block"&&g.loc.start.line!==y.loc.end.line&&g===y||f.consistent&&d.loc.end.line!==v.loc.start.line?(r.isTokenOnSameLine(d,v)&&l(c,d),r.isTokenOnSameLine(x,m)&&o(c,m)):(r.isTokenOnSameLine(d,v)||i(c,d),r.isTokenOnSameLine(x,m)||a(c,m))}return{ArrayPattern:u,ArrayExpression:u}}},Jm}var eg,UT;function uV(){if(UT)return eg;UT=1;let r=Pe();return eg={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Enforce consistent spacing inside array brackets",recommended:!1,url:"https://eslint.org/docs/latest/rules/array-bracket-spacing"},fixable:"whitespace",schema:[{enum:["always","never"]},{type:"object",properties:{singleValue:{type:"boolean"},objectsInArrays:{type:"boolean"},arraysInArrays:{type:"boolean"}},additionalProperties:!1}],messages:{unexpectedSpaceAfter:"There should be no space after '{{tokenValue}}'.",unexpectedSpaceBefore:"There should be no space before '{{tokenValue}}'.",missingSpaceAfter:"A space is required after '{{tokenValue}}'.",missingSpaceBefore:"A space is required before '{{tokenValue}}'."}},create(e){let t=e.options[0]==="always",s=e.sourceCode;function n(f){return e.options[1]?e.options[1][f]===!t:!1}let i={spaced:t,singleElementException:n("singleValue"),objectsInArraysException:n("objectsInArrays"),arraysInArraysException:n("arraysInArrays")};function a(f,d){let m=s.getTokenAfter(d);e.report({node:f,loc:{start:d.loc.end,end:m.loc.start},messageId:"unexpectedSpaceAfter",data:{tokenValue:d.value},fix(g){return g.removeRange([d.range[1],m.range[0]])}})}function l(f,d){let m=s.getTokenBefore(d);e.report({node:f,loc:{start:m.loc.end,end:d.loc.start},messageId:"unexpectedSpaceBefore",data:{tokenValue:d.value},fix(g){return g.removeRange([m.range[1],d.range[0]])}})}function o(f,d){e.report({node:f,loc:d.loc,messageId:"missingSpaceAfter",data:{tokenValue:d.value},fix(m){return m.insertTextAfter(d," ")}})}function u(f,d){e.report({node:f,loc:d.loc,messageId:"missingSpaceBefore",data:{tokenValue:d.value},fix(m){return m.insertTextBefore(d," ")}})}function c(f){return f&&(f.type==="ObjectExpression"||f.type==="ObjectPattern")}function p(f){return f&&(f.type==="ArrayExpression"||f.type==="ArrayPattern")}function h(f){if(i.spaced&&f.elements.length===0)return;let d=s.getFirstToken(f),m=s.getFirstToken(f,1),g=f.typeAnnotation?s.getTokenBefore(f.typeAnnotation):s.getLastToken(f),y=s.getTokenBefore(g),v=f.elements[0],x=f.elements.at(-1),S=i.objectsInArraysException&&c(v)||i.arraysInArraysException&&p(v)||i.singleElementException&&f.elements.length===1?!i.spaced:i.spaced,w=i.objectsInArraysException&&c(x)||i.arraysInArraysException&&p(x)||i.singleElementException&&f.elements.length===1?!i.spaced:i.spaced;r.isTokenOnSameLine(d,m)&&(S&&!s.isSpaceBetweenTokens(d,m)&&o(f,d),!S&&s.isSpaceBetweenTokens(d,m)&&a(f,d)),d!==y&&r.isTokenOnSameLine(y,g)&&(w&&!s.isSpaceBetweenTokens(y,g)&&u(f,g),!w&&s.isSpaceBetweenTokens(y,g)&&l(f,g))}return{ArrayPattern:h,ArrayExpression:h}}},eg}var tg,VT;function cV(){if(VT)return tg;VT=1;let r=Pe(),e=/^(?:Arrow)?FunctionExpression$/u,t=/^(?:every|filter|find(?:Last)?(?:Index)?|flatMap|forEach|map|reduce(?:Right)?|some|sort|toSorted)$/u;function s(c){return r.isSpecificMemberAccess(c,null,t)}function n(c){for(let p of c)if(p.reachable)return!0;return!1}function i(c){return["from","of","isArray"].includes(c)?"Array.".concat(c):"Array.prototype.".concat(c)}function a(c){let p=c;for(;p;){let h=p.parent;switch(h.type){case"LogicalExpression":case"ConditionalExpression":case"ChainExpression":p=h;break;case"ReturnStatement":{let f=r.getUpperFunction(h);if(f===null||!r.isCallee(f))return null;p=f.parent;break}case"CallExpression":return r.isArrayFromMethod(h.callee)&&h.arguments.length>=2&&h.arguments[1]===p?"from":s(h.callee)&&h.arguments.length>=1&&h.arguments[0]===p?r.getStaticPropertyName(h.callee):null;default:return null}}return null}function l(c){return c.type==="UnaryExpression"&&c.operator==="void"}function o(c,p,h){let f=r.getPrecedence(p)y.type==="Keyword"&&y.value==="return"),m=c.getTokenAfter(d),g=d.value==="return"&&d.range[1]===m.range[0];return[h.insertTextBefore(m,`${g?" ":""}void ${f?"(":""}`),h.insertTextAfter(p,f?")":"")]}function u(c,p,h){let f=c.getTokenBefore(p.body,r.isArrowToken),d=c.getTokenAfter(f),m=c.getLastToken(p);return[h.insertTextBefore(d,"{"),h.insertTextAfter(m,"}")]}return tg={meta:{type:"problem",docs:{description:"Enforce `return` statements in callbacks of array methods",recommended:!1,url:"https://eslint.org/docs/latest/rules/array-callback-return"},hasSuggestions:!0,schema:[{type:"object",properties:{allowImplicit:{type:"boolean",default:!1},checkForEach:{type:"boolean",default:!1},allowVoid:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{expectedAtEnd:"{{arrayMethodName}}() expects a value to be returned at the end of {{name}}.",expectedInside:"{{arrayMethodName}}() expects a return value from {{name}}.",expectedReturnValue:"{{arrayMethodName}}() expects a return value from {{name}}.",expectedNoReturnValue:"{{arrayMethodName}}() expects no useless return value from {{name}}.",wrapBraces:"Wrap the expression in `{}`.",prependVoid:"Prepend `void` to the expression."}},create(c){let p=c.options[0]||{allowImplicit:!1,checkForEach:!1,allowVoid:!1},h=c.sourceCode,f={arrayMethodName:null,upper:null,codePath:null,hasReturn:!1,shouldCheck:!1,node:null};function d(m){if(!f.shouldCheck)return;let g={messageId:"",suggest:[]};if(f.arrayMethodName==="forEach"){if(p.checkForEach&&m.type==="ArrowFunctionExpression"&&m.expression)if(p.allowVoid){if(l(m.body))return;g.messageId="expectedNoReturnValue",g.suggest=[{messageId:"wrapBraces",fix(y){return u(h,m,y)}},{messageId:"prependVoid",fix(y){return o(h,m.body,y)}}]}else g.messageId="expectedNoReturnValue",g.suggest=[{messageId:"wrapBraces",fix(y){return u(h,m,y)}}]}else m.body.type==="BlockStatement"&&n(f.currentSegments)&&(g.messageId=f.hasReturn?"expectedAtEnd":"expectedInside");if(g.messageId){let y=r.getFunctionNameWithKind(m);c.report({node:m,loc:r.getFunctionHeadLoc(m,h),messageId:g.messageId,data:{name:y,arrayMethodName:i(f.arrayMethodName)},suggest:g.suggest.length!==0?g.suggest:null})}}return{onCodePathStart(m,g){let y=null;e.test(g.type)&&(y=a(g)),f={arrayMethodName:y,upper:f,codePath:m,hasReturn:!1,shouldCheck:y&&!g.async&&!g.generator,node:g,currentSegments:new Set}},onCodePathEnd(){f=f.upper},onUnreachableCodePathSegmentStart(m){f.currentSegments.add(m)},onUnreachableCodePathSegmentEnd(m){f.currentSegments.delete(m)},onCodePathSegmentStart(m){f.currentSegments.add(m)},onCodePathSegmentEnd(m){f.currentSegments.delete(m)},ReturnStatement(m){if(!f.shouldCheck)return;f.hasReturn=!0;let g={messageId:"",suggest:[]};if(f.arrayMethodName==="forEach"){if(p.checkForEach&&m.argument)if(p.allowVoid){if(l(m.argument))return;g.messageId="expectedNoReturnValue",g.suggest=[{messageId:"prependVoid",fix(y){return o(h,m.argument,y)}}]}else g.messageId="expectedNoReturnValue"}else!p.allowImplicit&&!m.argument&&(g.messageId="expectedReturnValue");g.messageId&&c.report({node:m,messageId:g.messageId,data:{name:r.getFunctionNameWithKind(f.node),arrayMethodName:i(f.arrayMethodName)},suggest:g.suggest.length!==0?g.suggest:null})},"FunctionExpression:exit":d,"ArrowFunctionExpression:exit":d}}},tg}var rg,WT;function fV(){if(WT)return rg;WT=1;let r=Pe();return rg={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Enforce line breaks after each array element",recommended:!1,url:"https://eslint.org/docs/latest/rules/array-element-newline"},fixable:"whitespace",schema:{definitions:{basicConfig:{oneOf:[{enum:["always","never","consistent"]},{type:"object",properties:{multiline:{type:"boolean"},minItems:{type:["integer","null"],minimum:0}},additionalProperties:!1}]}},type:"array",items:[{oneOf:[{$ref:"#/definitions/basicConfig"},{type:"object",properties:{ArrayExpression:{$ref:"#/definitions/basicConfig"},ArrayPattern:{$ref:"#/definitions/basicConfig"}},additionalProperties:!1,minProperties:1}]}]},messages:{unexpectedLineBreak:"There should be no linebreak here.",missingLineBreak:"There should be a linebreak after this element."}},create(e){let t=e.sourceCode;function s(o){let u=!1,c=!1,p,h=o||"always";return!h||h==="always"||h.minItems===0?p=0:h==="never"?p=Number.POSITIVE_INFINITY:h==="consistent"?(u=!0,p=Number.POSITIVE_INFINITY):(c=!!h.multiline,p=h.minItems||Number.POSITIVE_INFINITY),{consistent:u,multiline:c,minItems:p}}function n(o){if(o&&(o.ArrayExpression||o.ArrayPattern)){let c,p;return o.ArrayExpression&&(c=s(o.ArrayExpression)),o.ArrayPattern&&(p=s(o.ArrayPattern)),{ArrayExpression:c,ArrayPattern:p}}let u=s(o);return{ArrayExpression:u,ArrayPattern:u}}function i(o){let u=t.getTokenBefore(o,{includeComments:!0});e.report({loc:{start:u.loc.end,end:o.loc.start},messageId:"unexpectedLineBreak",fix(c){if(r.isCommentToken(u))return null;if(!r.isTokenOnSameLine(u,o))return c.replaceTextRange([u.range[1],o.range[0]]," ");let p=t.getTokenBefore(u,{includeComments:!0});return r.isCommentToken(p)?null:c.replaceTextRange([p.range[1],u.range[0]],"")}})}function a(o){let u=t.getTokenBefore(o,{includeComments:!0});e.report({loc:{start:u.loc.end,end:o.loc.start},messageId:"missingLineBreak",fix(c){return c.replaceTextRange([u.range[1],o.range[0]],` +`)}})}function l(o){let u=o.elements,p=n(e.options[0])[o.type];if(!p)return;let h=!1;p.multiline&&(h=u.filter(m=>m!==null).some(m=>m.loc.start.line!==m.loc.end.line));let f=0;for(let m=0;m=p.minItems||p.multiline&&h||p.consistent&&f>0&&f{let y=u[g-1];if(g===0||m===null||y===null)return;let v=t.getFirstTokenBetween(y,m,r.isCommaToken),x=t.getTokenBefore(v),S=t.getTokenAfter(v);d?r.isTokenOnSameLine(x,S)&&a(S):r.isTokenOnSameLine(x,S)||i(S)})}return{ArrayPattern:l,ArrayExpression:l}}},rg}var ng,zT;function pV(){if(zT)return ng;zT=1;let r=Pe();return ng={meta:{type:"suggestion",docs:{description:"Require braces around arrow function bodies",recommended:!1,url:"https://eslint.org/docs/latest/rules/arrow-body-style"},schema:{anyOf:[{type:"array",items:[{enum:["always","never"]}],minItems:0,maxItems:1},{type:"array",items:[{enum:["as-needed"]},{type:"object",properties:{requireReturnForObjectLiteral:{type:"boolean"}},additionalProperties:!1}],minItems:0,maxItems:2}]},fixable:"code",messages:{unexpectedOtherBlock:"Unexpected block statement surrounding arrow body.",unexpectedEmptyBlock:"Unexpected block statement surrounding arrow body; put a value of `undefined` immediately after the `=>`.",unexpectedObjectBlock:"Unexpected block statement surrounding arrow body; parenthesize the returned value and move it immediately after the `=>`.",unexpectedSingleBlock:"Unexpected block statement surrounding arrow body; move the returned value immediately after the `=>`.",expectedBlock:"Expected block statement surrounding arrow body."}},create(e){let t=e.options,s=t[0]==="always",n=!t[0]||t[0]==="as-needed",i=t[0]==="never",a=t[1]&&t[1].requireReturnForObjectLiteral,l=e.sourceCode,o=null;function u(f){return f&&f.type==="Punctuator"&&/^[([/`+-]/u.test(f.value)}function c(f){let d=f;for(;!r.isParenthesised(l,d);)d=d.parent;return l.getTokenAfter(d)}function p(f){return f&&f.parent?f.parent.type==="ForStatement"&&f.parent.init===f?!0:p(f.parent):!1}function h(f){let d=f.body;if(d.type==="BlockStatement"){let m=d.body;if(m.length!==1&&!i||n&&a&&m[0].type==="ReturnStatement"&&m[0].argument&&m[0].argument.type==="ObjectExpression")return;if(i||n&&m[0].type==="ReturnStatement"){let g;m.length===0?g="unexpectedEmptyBlock":m.length>1?g="unexpectedOtherBlock":m[0].argument===null?g="unexpectedSingleBlock":r.isOpeningBraceToken(l.getFirstToken(m[0],{skip:1}))?g="unexpectedObjectBlock":g="unexpectedSingleBlock",e.report({node:f,loc:d.loc,messageId:g,fix(y){let v=[];if(m.length!==1||m[0].type!=="ReturnStatement"||!m[0].argument||u(l.getTokenAfter(d)))return v;let x=l.getFirstToken(d),S=l.getLastToken(d),w=l.getFirstToken(m[0],1),O=l.getLastToken(m[0]);return l.commentsExistBetween(x,w)||l.commentsExistBetween(O,S)?v.push(y.remove(x),y.remove(S),y.remove(l.getTokenAfter(x))):v.push(y.removeRange([x.range[0],w.range[0]]),y.removeRange([O.range[1],S.range[1]])),(r.isOpeningBraceToken(w)||m[0].argument.type==="SequenceExpression"||o.hasInOperator&&p(f))&&(r.isParenthesised(l,m[0].argument)||v.push(y.insertTextBefore(w,"("),y.insertTextAfter(O,")"))),r.isSemicolonToken(O)&&v.push(y.remove(O)),v}})}}else(s||n&&a&&d.type==="ObjectExpression")&&e.report({node:f,loc:d.loc,messageId:"expectedBlock",fix(m){let g=[],y=l.getTokenBefore(d,r.isArrowToken),[v,x]=l.getTokensAfter(y,{count:2}),S=l.getLastToken(f),w=null;if(r.isOpeningParenToken(v)&&r.isOpeningBraceToken(x)){let O=l.getNodeByRangeIndex(x.range[0]);O.type==="ObjectExpression"&&(w=O)}if(w){let O=v,C=x;r.isTokenOnSameLine(O,C)?g.push(m.replaceText(O,"{return ")):g.push(m.replaceText(O,"{"),m.insertTextBefore(C,"return ")),g.push(m.remove(c(w))),g.push(m.insertTextAfter(S,"}"))}else g.push(m.insertTextBefore(v,"{return ")),g.push(m.insertTextAfter(S,"}"));return g}})}return{"BinaryExpression[operator='in']"(){let f=o;for(;f;)f.hasInOperator=!0,f=f.upper},ArrowFunctionExpression(){o={upper:o,hasInOperator:!1}},"ArrowFunctionExpression:exit"(f){h(f),o=o.upper}}}},ng}var sg,ZT;function hV(){if(ZT)return sg;ZT=1;let r=Pe();function e(t){return t.body.type==="BlockStatement"}return sg={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Require parentheses around arrow function arguments",recommended:!1,url:"https://eslint.org/docs/latest/rules/arrow-parens"},fixable:"code",schema:[{enum:["always","as-needed"]},{type:"object",properties:{requireForBlockBody:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{unexpectedParens:"Unexpected parentheses around single function argument.",expectedParens:"Expected parentheses around arrow function argument.",unexpectedParensInline:"Unexpected parentheses around single function argument having a body with no curly braces.",expectedParensBlock:"Expected parentheses around arrow function argument having a body with curly braces."}},create(t){let s=t.options[0]==="as-needed",n=s&&t.options[1]&&t.options[1].requireForBlockBody===!0,i=t.sourceCode;function a(c){let p=i.getTokenBefore(c.params[0]);return p&&r.isOpeningParenToken(p)&&c.range[0]<=p.range[0]?p:null}function l(c){return i.getTokenAfter(c.params[0],r.isClosingParenToken)}function o(c,p){return i.commentsExistBetween(p,l(c))}function u(c,p){let h=c.async?1:0;return i.getFirstToken(c,{skip:h})!==p}return{"ArrowFunctionExpression[params.length=1]"(c){let p=!s||n&&e(c),h=a(c),f=h!==null,[d]=c.params;p&&!f&&t.report({node:c,messageId:n?"expectedParensBlock":"expectedParens",loc:d.loc,*fix(m){yield m.insertTextBefore(d,"("),yield m.insertTextAfter(d,")")}}),!p&&f&&d.type==="Identifier"&&!d.typeAnnotation&&!c.returnType&&!o(c,h)&&!u(c,h)&&t.report({node:c,messageId:n?"unexpectedParensInline":"unexpectedParens",loc:d.loc,*fix(m){let g=i.getTokenBefore(h),y=l(c);g&&g.range[1]===h.range[0]&&!r.canTokensBeAdjacent(g,i.getFirstToken(d))&&(yield m.insertTextBefore(h," ")),yield m.removeRange([h.range[0],d.range[0]]),yield m.removeRange([d.range[1],y.range[1]])}})}}}},sg}var ig,GT;function dV(){if(GT)return ig;GT=1;let r=Pe();return ig={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Enforce consistent spacing before and after the arrow in arrow functions",recommended:!1,url:"https://eslint.org/docs/latest/rules/arrow-spacing"},fixable:"whitespace",schema:[{type:"object",properties:{before:{type:"boolean",default:!0},after:{type:"boolean",default:!0}},additionalProperties:!1}],messages:{expectedBefore:"Missing space before =>.",unexpectedBefore:"Unexpected space before =>.",expectedAfter:"Missing space after =>.",unexpectedAfter:"Unexpected space after =>."}},create(e){let t=Object.assign({},e.options[0]);t.before=t.before!==!1,t.after=t.after!==!1;let s=e.sourceCode;function n(l){let o=s.getTokenBefore(l.body,r.isArrowToken);return{before:s.getTokenBefore(o),arrow:o,after:s.getTokenAfter(o)}}function i(l){let o=l.arrow.range[0]-l.before.range[1],u=l.after.range[0]-l.arrow.range[1];return{before:o,after:u}}function a(l){let o=n(l),u=i(o);t.before?u.before===0&&e.report({node:o.before,messageId:"expectedBefore",fix(c){return c.insertTextBefore(o.arrow," ")}}):u.before>0&&e.report({node:o.before,messageId:"unexpectedBefore",fix(c){return c.removeRange([o.before.range[1],o.arrow.range[0]])}}),t.after?u.after===0&&e.report({node:o.after,messageId:"expectedAfter",fix(c){return c.insertTextAfter(o.arrow," ")}}):u.after>0&&e.report({node:o.after,messageId:"unexpectedAfter",fix(c){return c.removeRange([o.arrow.range[1],o.after.range[0]])}})}return{ArrowFunctionExpression:a}}},ig}var ag,XT;function mV(){return XT||(XT=1,ag={meta:{type:"suggestion",docs:{description:"Enforce the use of variables within the scope they are defined",recommended:!1,url:"https://eslint.org/docs/latest/rules/block-scoped-var"},schema:[],messages:{outOfScope:"'{{name}}' declared on line {{definitionLine}} column {{definitionColumn}} is used outside of binding context."}},create(r){let e=[],t=r.sourceCode;function s(l){e.push(l.range)}function n(){e.pop()}function i(l,o){let u=l.identifier,c=o.name.loc.start;r.report({node:u,messageId:"outOfScope",data:{name:u.name,definitionLine:c.line,definitionColumn:c.column+1}})}function a(l){if(l.kind!=="var")return;let o=e.at(-1);function u(p){let h=p.identifier.range;return h[0]o[1]}let c=t.getDeclaredVariables(l);for(let p=0;pi(h,c[p].defs.find(f=>f.parent===l)))}return{Program(l){e=[l.range]},BlockStatement:s,"BlockStatement:exit":n,ForStatement:s,"ForStatement:exit":n,ForInStatement:s,"ForInStatement:exit":n,ForOfStatement:s,"ForOfStatement:exit":n,SwitchStatement:s,"SwitchStatement:exit":n,CatchClause:s,"CatchClause:exit":n,StaticBlock:s,"StaticBlock:exit":n,VariableDeclaration:a}}}),ag}var og,YT;function gV(){if(YT)return og;YT=1;let r=Pe();return og={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Disallow or enforce spaces inside of blocks after opening block and before closing block",recommended:!1,url:"https://eslint.org/docs/latest/rules/block-spacing"},fixable:"whitespace",schema:[{enum:["always","never"]}],messages:{missing:"Requires a space {{location}} '{{token}}'.",extra:"Unexpected space(s) {{location}} '{{token}}'."}},create(e){let t=e.options[0]!=="never",s=t?"missing":"extra",n=e.sourceCode;function i(o){return o.type==="SwitchStatement"?o.cases.length>0?n.getTokenBefore(o.cases[0]):n.getLastToken(o,1):o.type==="StaticBlock"?n.getFirstToken(o,{skip:1}):n.getFirstToken(o)}function a(o,u){return!r.isTokenOnSameLine(o,u)||n.isSpaceBetweenTokens(o,u)===t}function l(o){let u=i(o),c=n.getLastToken(o),p=n.getTokenAfter(u,{includeComments:!0}),h=n.getTokenBefore(c,{includeComments:!0});if(!(u.type!=="Punctuator"||u.value!=="{"||c.type!=="Punctuator"||c.value!=="}"||p===c)&&!(!t&&p.type==="Line")){if(!a(u,p)){let f=u.loc;s==="extra"&&(f={start:u.loc.end,end:p.loc.start}),e.report({node:o,loc:f,messageId:s,data:{location:"after",token:u.value},fix(d){return t?d.insertTextBefore(p," "):d.removeRange([u.range[1],p.range[0]])}})}if(!a(h,c)){let f=c.loc;s==="extra"&&(f={start:h.loc.end,end:c.loc.start}),e.report({node:o,loc:f,messageId:s,data:{location:"before",token:c.value},fix(d){return t?d.insertTextAfter(h," "):d.removeRange([h.range[1],c.range[0]])}})}}}return{BlockStatement:l,StaticBlock:l,SwitchStatement:l}}},og}var lg,HT;function yV(){if(HT)return lg;HT=1;let r=Pe();return lg={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Enforce consistent brace style for blocks",recommended:!1,url:"https://eslint.org/docs/latest/rules/brace-style"},schema:[{enum:["1tbs","stroustrup","allman"]},{type:"object",properties:{allowSingleLine:{type:"boolean",default:!1}},additionalProperties:!1}],fixable:"whitespace",messages:{nextLineOpen:"Opening curly brace does not appear on the same line as controlling statement.",sameLineOpen:"Opening curly brace appears on the same line as controlling statement.",blockSameLine:"Statement inside of curly braces should be on next line.",nextLineClose:"Closing curly brace does not appear on the same line as the subsequent block.",singleLineClose:"Closing curly brace should be on the same line as opening curly brace or on the line after the previous block.",sameLineClose:"Closing curly brace appears on the same line as the subsequent block."}},create(e){let t=e.options[0]||"1tbs",s=e.options[1]||{},n=e.sourceCode;function i(o,u){let c=[o.range[1],u.range[0]];return n.text.slice(c[0],c[1]).trim()?null:h=>h.replaceTextRange(c," ")}function a(o,u){let c=n.getTokenBefore(o),p=n.getTokenAfter(o),h=n.getTokenBefore(u),f=s.allowSingleLine&&r.isTokenOnSameLine(o,u);t!=="allman"&&!r.isTokenOnSameLine(c,o)&&e.report({node:o,messageId:"nextLineOpen",fix:i(c,o)}),t==="allman"&&r.isTokenOnSameLine(c,o)&&!f&&e.report({node:o,messageId:"sameLineOpen",fix:d=>d.insertTextBefore(o,` `)}),r.isTokenOnSameLine(o,p)&&p!==u&&!f&&e.report({node:o,messageId:"blockSameLine",fix:d=>d.insertTextAfter(o,` `)}),h!==o&&!f&&r.isTokenOnSameLine(h,u)&&e.report({node:u,messageId:"singleLineClose",fix:d=>d.insertTextBefore(u,` `)})}function l(o){let u=n.getTokenAfter(o);t==="1tbs"&&!r.isTokenOnSameLine(o,u)&&e.report({node:o,messageId:"nextLineClose",fix:i(o,u)}),t!=="1tbs"&&r.isTokenOnSameLine(o,u)&&e.report({node:o,messageId:"sameLineClose",fix:c=>c.insertTextAfter(o,` -`)})}return{BlockStatement(o){r.STATEMENT_LIST_PARENTS.has(o.parent.type)||a(n.getFirstToken(o),n.getLastToken(o))},StaticBlock(o){a(n.getFirstToken(o,{skip:1}),n.getLastToken(o))},ClassBody(o){a(n.getFirstToken(o),n.getLastToken(o))},SwitchStatement(o){let u=n.getLastToken(o),c=n.getTokenBefore(o.cases.length?o.cases[0]:u);a(c,u)},IfStatement(o){o.consequent.type==="BlockStatement"&&o.alternate&&l(n.getLastToken(o.consequent))},TryStatement(o){l(n.getLastToken(o.block)),o.handler&&o.finalizer&&l(n.getLastToken(o.handler.body))}}}},lg}var ug,JT;function y7(){return JT||(JT=1,ug={meta:{deprecated:!0,replacedBy:[],type:"suggestion",docs:{description:"Require `return` statements after callbacks",recommended:!1,url:"https://eslint.org/docs/latest/rules/callback-return"},schema:[{type:"array",items:{type:"string"}}],messages:{missingReturn:"Expected return with your callback function."}},create(r){let e=r.options[0]||["callback","cb","next"],t=r.sourceCode;function s(l,o){return l.parent?o.includes(l.parent.type)?l.parent:s(l.parent,o):null}function n(l){if(l.type==="Identifier")return!0;if(l.type==="MemberExpression"){if(l.object.type==="Identifier")return!0;if(l.object.type==="MemberExpression")return n(l.object)}return!1}function i(l){return n(l.callee)&&e.includes(t.getText(l.callee))}function a(l,o){return!o||o.type!=="ExpressionStatement"?!1:o.expression===l||(o.expression.type==="BinaryExpression"||o.expression.type==="LogicalExpression")&&o.expression.right===l}return{CallExpression(l){if(!i(l))return;let o=s(l,["BlockStatement","ReturnStatement","ArrowFunctionExpression"])||{};if(o.type!=="ReturnStatement"&&o.type!=="ArrowFunctionExpression"){if(o.type==="BlockStatement"){let u=o.body.at(-1);if(a(l,u)){let c=o.parent.type;if(c==="FunctionExpression"||c==="FunctionDeclaration"||c==="ArrowFunctionExpression")return}if(u.type==="ReturnStatement"&&a(l,o.body.at(-2)))return}s(l,["FunctionDeclaration","FunctionExpression","ArrowFunctionExpression"])&&r.report({node:l,messageId:"missingReturn"})}}}}}),ug}var cg,eD;function x7(){if(eD)return cg;eD=1;let r=Pe();return cg={meta:{type:"suggestion",docs:{description:"Enforce camelcase naming convention",recommended:!1,url:"https://eslint.org/docs/latest/rules/camelcase"},schema:[{type:"object",properties:{ignoreDestructuring:{type:"boolean",default:!1},ignoreImports:{type:"boolean",default:!1},ignoreGlobals:{type:"boolean",default:!1},properties:{enum:["always","never"]},allow:{type:"array",items:{type:"string"},minItems:0,uniqueItems:!0}},additionalProperties:!1}],messages:{notCamelCase:"Identifier '{{name}}' is not in camel case.",notCamelCasePrivate:"#{{name}} is not in camel case."}},create(e){let t=e.options[0]||{},s=t.properties==="never"?"never":"always",n=t.ignoreDestructuring,i=t.ignoreImports,a=t.ignoreGlobals,l=t.allow||[],o=e.sourceCode,u=new Set;function c(y){let b=y.replace(/^_+|_+$/gu,"");return b.includes("_")&&b!==b.toUpperCase()}function p(y){return l.some(b=>y===b||y.match(new RegExp(b,"u")))}function h(y){return!c(y)||p(y)}function f(y){let b=y.parent;switch(b.type){case"AssignmentExpression":case"AssignmentPattern":return b.left===y;case"Property":return b.parent.type==="ObjectPattern"&&b.value===y;case"ArrayPattern":case"RestElement":return!0;default:return!1}}function d(y){let b=y.name,v=y.parent.type==="AssignmentPattern"?y.parent:y,S=v.parent;switch(S.type){case"Property":return(S.parent.type==="ObjectPattern"||S.parent.type==="ObjectExpression")&&S.value===v&&!S.computed&&S.key.type==="Identifier"&&S.key.name===b;case"ImportSpecifier":return S.local===y&&r.getModuleExportName(S.imported)===b;default:return!1}}function m(y){u.has(y.range[0])||(u.add(y.range[0]),e.report({node:y,messageId:y.type==="PrivateIdentifier"?"notCamelCasePrivate":"notCamelCase",data:{name:y.name}}))}function g(y){y.parent.type==="CallExpression"||y.parent.type==="NewExpression"||y.parent.type==="AssignmentPattern"&&y.parent.right===y||n&&d(y)||m(y)}return{Program(y){let b=o.getScope(y);if(!a){for(let v of b.variables)if(!(v.identifiers.length>0||h(v.name)))for(let S of v.references)g(S.identifier)}for(let v of b.through){let S=v.identifier;h(S.name)||g(S)}},[["VariableDeclaration","FunctionDeclaration","FunctionExpression","ArrowFunctionExpression","ClassDeclaration","ClassExpression","CatchClause"]](y){for(let b of o.getDeclaredVariables(y)){if(h(b.name))continue;let v=b.identifiers[0];n&&d(v)||m(v);for(let S of b.references)S.init||g(S.identifier)}},[["ObjectExpression > Property[computed!=true] > Identifier.key","MethodDefinition[computed!=true] > Identifier.key","PropertyDefinition[computed!=true] > Identifier.key","MethodDefinition > PrivateIdentifier.key","PropertyDefinition > PrivateIdentifier.key"]](y){s==="never"||h(y.name)||m(y)},"MemberExpression[computed!=true] > Identifier.property"(y){s==="never"||!f(y.parent)||h(y.name)||m(y)},ImportDeclaration(y){for(let b of o.getDeclaredVariables(y)){if(h(b.name))continue;let v=b.identifiers[0];i&&d(v)||m(v);for(let S of b.references)g(S.identifier)}},[["ExportAllDeclaration > Identifier.exported","ExportSpecifier > Identifier.exported"]](y){h(y.name)||m(y)},[["LabeledStatement > Identifier.label","BreakStatement > Identifier.label","ContinueStatement > Identifier.label"]](y){h(y.name)||m(y)}}}},cg}var fg,tD;function b7(){return tD||(tD=1,fg=/[A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B2\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA7AD\uA7B0\uA7B1\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB5F\uAB64\uAB65\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDE00-\uDE11\uDE13-\uDE2B\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF5D-\uDF61]|\uD805[\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDE00-\uDE2F\uDE44\uDE80-\uDEAA]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF98]|[\uD80C\uD840-\uD868\uD86A-\uD86C][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D]|\uD87E[\uDC00-\uDE1D]/u),fg}var pg,rD;function v7(){if(rD)return pg;rD=1;let r=b7(),t=Pe().COMMENTS_IGNORE_PATTERN,s=/\s/gu,n=/^\s*[^:/?#\s]+:\/\/[^?#]/u,i={type:"object",properties:{ignorePattern:{type:"string"},ignoreInlineComments:{type:"boolean"},ignoreConsecutiveComments:{type:"boolean"}},additionalProperties:!1},a={ignorePattern:"",ignoreInlineComments:!1,ignoreConsecutiveComments:!1};function l(c,p){return Object.assign({},a,c[p]||c)}function o(c={}){return{Line:l(c,"line"),Block:l(c,"block")}}function u(c){Object.keys(c).forEach(p=>{let h=c[p].ignorePattern;if(h){let f=RegExp(`^\\s*(?:${h})`,"u");c[p].ignorePatternRegExp=f}})}return pg={meta:{type:"suggestion",docs:{description:"Enforce or disallow capitalization of the first letter of a comment",recommended:!1,url:"https://eslint.org/docs/latest/rules/capitalized-comments"},fixable:"code",schema:[{enum:["always","never"]},{oneOf:[i,{type:"object",properties:{line:i,block:i},additionalProperties:!1}]}],messages:{unexpectedLowercaseComment:"Comments should not begin with a lowercase character.",unexpectedUppercaseComment:"Comments should not begin with an uppercase character."}},create(c){let p=c.options[0]||"always",h=o(c.options[1]),f=c.sourceCode;u(h);function d(b){let v=f.getTokenBefore(b,{includeComments:!0}),S=f.getTokenAfter(b,{includeComments:!0});return!!(v&&S&&b.loc.start.line===v.loc.end.line&&b.loc.end.line===S.loc.start.line)}function m(b){let v=f.getTokenBefore(b,{includeComments:!0});return!!(v&&["Block","Line"].includes(v.type))}function g(b,v){if(t.test(b.value))return!0;let S=b.value.replace(/\*/gu,"");if(v.ignorePatternRegExp&&v.ignorePatternRegExp.test(S)||v.ignoreInlineComments&&d(b)||v.ignoreConsecutiveComments&&m(b)||n.test(S))return!0;let C=S.replace(s,"");if(C.length===0)return!0;let O=C[0];if(!r.test(O))return!0;let w=O!==O.toLocaleLowerCase(),E=O!==O.toLocaleUpperCase();return!(p==="always"&&E||p==="never"&&w)}function y(b){let v=h[b.type];if(!g(b,v)){let C=p==="always"?"unexpectedLowercaseComment":"unexpectedUppercaseComment";c.report({node:null,loc:b.loc,messageId:C,fix(O){let w=b.value.match(r);return O.replaceTextRange([b.range[0]+w.index+2,b.range[0]+w.index+3],p==="always"?w[0].toLocaleUpperCase():w[0].toLocaleLowerCase())}})}}return{Program(){f.getAllComments().filter(v=>v.type!=="Shebang").forEach(y)}}}},pg}var hg,nD;function O7(){if(nD)return hg;nD=1;let r=Pe();return hg={meta:{type:"suggestion",docs:{description:"Enforce that class methods utilize `this`",recommended:!1,url:"https://eslint.org/docs/latest/rules/class-methods-use-this"},schema:[{type:"object",properties:{exceptMethods:{type:"array",items:{type:"string"}},enforceForClassFields:{type:"boolean",default:!0}},additionalProperties:!1}],messages:{missingThis:"Expected 'this' to be used by class {{name}}."}},create(e){let t=Object.assign({},e.options[0]),s=t.enforceForClassFields!==!1,n=new Set(t.exceptMethods||[]),i=[];function a(){i.push(!1)}function l(){return i.pop()}function o(){a()}function u(f){switch(f.type){case"MethodDefinition":return!f.static&&f.kind!=="constructor";case"PropertyDefinition":return!f.static&&s;default:return!1}}function c(f){if(u(f)){if(f.computed)return!0;let d=f.key.type==="PrivateIdentifier"?"#":"",m=f.key.type==="Literal"?r.getStaticStringValue(f.key):f.key.name||"";return!n.has(d+m)}return!1}function p(f){let d=l();c(f.parent)&&!d&&e.report({node:f,loc:r.getFunctionHeadLoc(f,e.sourceCode),messageId:"missingThis",data:{name:r.getFunctionNameWithKind(f)}})}function h(){i.length&&(i[i.length-1]=!0)}return{FunctionDeclaration:o,"FunctionDeclaration:exit":p,FunctionExpression:o,"FunctionExpression:exit":p,"PropertyDefinition > *.key:exit":a,"PropertyDefinition:exit":l,StaticBlock:a,"StaticBlock:exit":l,ThisExpression:h,Super:h,...s&&{"PropertyDefinition > ArrowFunctionExpression.value":o,"PropertyDefinition > ArrowFunctionExpression.value:exit":p}}}},hg}var dg,sD;function S7(){if(sD)return dg;sD=1;let r=Pe(),e=Object.freeze({arrays:"never",objects:"never",imports:"never",exports:"never",functions:"never"});function t(n){return!(n.type==="RestElement"||n.type==="RestProperty"||n.type==="ExperimentalRestProperty")}function s(n,i){return typeof n=="string"?{arrays:n,objects:n,imports:n,exports:n,functions:i<2017?"ignore":n}:typeof n=="object"&&n!==null?{arrays:n.arrays||e.arrays,objects:n.objects||e.objects,imports:n.imports||e.imports,exports:n.exports||e.exports,functions:n.functions||e.functions}:e}return dg={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Require or disallow trailing commas",recommended:!1,url:"https://eslint.org/docs/latest/rules/comma-dangle"},fixable:"code",schema:{definitions:{value:{enum:["always-multiline","always","never","only-multiline"]},valueWithIgnore:{enum:["always-multiline","always","ignore","never","only-multiline"]}},type:"array",items:[{oneOf:[{$ref:"#/definitions/value"},{type:"object",properties:{arrays:{$ref:"#/definitions/valueWithIgnore"},objects:{$ref:"#/definitions/valueWithIgnore"},imports:{$ref:"#/definitions/valueWithIgnore"},exports:{$ref:"#/definitions/valueWithIgnore"},functions:{$ref:"#/definitions/valueWithIgnore"}},additionalProperties:!1}]}],additionalItems:!1},messages:{unexpected:"Unexpected trailing comma.",missing:"Missing trailing comma."}},create(n){let i=s(n.options[0],n.languageOptions.ecmaVersion),a=n.sourceCode;function l(m){function g(y){return y.at(-1)}switch(m.type){case"ObjectExpression":case"ObjectPattern":return g(m.properties);case"ArrayExpression":case"ArrayPattern":return g(m.elements);case"ImportDeclaration":case"ExportNamedDeclaration":return g(m.specifiers);case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":return g(m.params);case"CallExpression":case"NewExpression":return g(m.arguments);default:return null}}function o(m,g){switch(m.type){case"ObjectExpression":case"ArrayExpression":case"CallExpression":case"NewExpression":return a.getLastToken(m,1);default:{let y=a.getTokenAfter(g);return r.isCommaToken(y)?y:a.getLastToken(g)}}}function u(m){let g=l(m);if(!g)return!1;let y=o(m,g);return a.getTokenAfter(y).loc.end.line!==y.loc.end.line}function c(m){let g=l(m);if(!g||m.type==="ImportDeclaration"&&g.type!=="ImportSpecifier")return;let y=o(m,g);r.isCommaToken(y)&&n.report({node:g,loc:y.loc,messageId:"unexpected",*fix(b){yield b.remove(y),yield b.insertTextBefore(a.getTokenBefore(y),""),yield b.insertTextAfter(a.getTokenAfter(y),"")}})}function p(m){let g=l(m);if(!g||m.type==="ImportDeclaration"&&g.type!=="ImportSpecifier")return;if(!t(g)){c(m);return}let y=o(m,g);y.value!==","&&n.report({node:g,loc:{start:y.loc.end,end:r.getNextLocation(a,y.loc.end)},messageId:"missing",*fix(b){yield b.insertTextAfter(y,","),yield b.insertTextBefore(y,""),yield b.insertTextAfter(a.getTokenAfter(y),"")}})}function h(m){u(m)?p(m):c(m)}function f(m){u(m)||c(m)}let d={always:p,"always-multiline":h,"only-multiline":f,never:c,ignore(){}};return{ObjectExpression:d[i.objects],ObjectPattern:d[i.objects],ArrayExpression:d[i.arrays],ArrayPattern:d[i.arrays],ImportDeclaration:d[i.imports],ExportNamedDeclaration:d[i.exports],FunctionDeclaration:d[i.functions],FunctionExpression:d[i.functions],ArrowFunctionExpression:d[i.functions],CallExpression:d[i.functions],NewExpression:d[i.functions]}}},dg}var mg,iD;function E7(){if(iD)return mg;iD=1;let r=Pe();return mg={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Enforce consistent spacing before and after commas",recommended:!1,url:"https://eslint.org/docs/latest/rules/comma-spacing"},fixable:"whitespace",schema:[{type:"object",properties:{before:{type:"boolean",default:!1},after:{type:"boolean",default:!0}},additionalProperties:!1}],messages:{missing:"A space is required {{loc}} ','.",unexpected:"There should be no space {{loc}} ','."}},create(e){let t=e.sourceCode,s=t.tokensAndComments,n={before:e.options[0]?e.options[0].before:!1,after:e.options[0]?e.options[0].after:!0},i=[];function a(o,u,c){e.report({node:o,fix(p){if(n[u])return u==="before"?p.insertTextBefore(o," "):p.insertTextAfter(o," ");let h,f,d="";return u==="before"?(h=c.range[1],f=o.range[0]):(h=o.range[1],f=c.range[0]),p.replaceTextRange([h,f],d)},messageId:n[u]?"missing":"unexpected",data:{loc:u}})}function l(o){let u=t.getFirstToken(o);o.elements.forEach(c=>{let p;c===null?(p=t.getTokenAfter(u),r.isCommaToken(p)&&i.push(p)):p=t.getTokenAfter(c),u=p})}return{"Program:exit"(){s.forEach((o,u)=>{if(!r.isCommaToken(o))return;let c=s[u-1],p=s[u+1];c&&!r.isCommaToken(c)&&!i.includes(o)&&r.isTokenOnSameLine(c,o)&&n.before!==t.isSpaceBetweenTokens(c,o)&&a(o,"before",c),p&&!r.isCommaToken(p)&&!r.isClosingParenToken(p)&&!r.isClosingBracketToken(p)&&!r.isClosingBraceToken(p)&&!(!n.after&&p.type==="Line")&&r.isTokenOnSameLine(o,p)&&n.after!==t.isSpaceBetweenTokens(o,p)&&a(o,"after",p)})},ArrayExpression:l,ArrayPattern:l}}},mg}var gg,aD;function C7(){if(aD)return gg;aD=1;let r=Pe();return gg={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Enforce consistent comma style",recommended:!1,url:"https://eslint.org/docs/latest/rules/comma-style"},fixable:"code",schema:[{enum:["first","last"]},{type:"object",properties:{exceptions:{type:"object",additionalProperties:{type:"boolean"}}},additionalProperties:!1}],messages:{unexpectedLineBeforeAndAfterComma:"Bad line breaking before and after ','.",expectedCommaFirst:"',' should be placed first.",expectedCommaLast:"',' should be placed last."}},create(e){let t=e.options[0]||"last",s=e.sourceCode,n={ArrayPattern:!0,ArrowFunctionExpression:!0,CallExpression:!0,FunctionDeclaration:!0,FunctionExpression:!0,ImportDeclaration:!0,ObjectPattern:!0,NewExpression:!0};if(e.options.length===2&&Object.hasOwn(e.options[1],"exceptions")){let c=Object.keys(e.options[1].exceptions);for(let p=0;p1||f){let d=s.getFirstToken(c);if(h.forEach(m=>{let g=m?s.getTokenBefore(m):d,y=m?s.getFirstToken(m):s.getTokenAfter(g),b=m||y;if(r.isCommaToken(g)&&l(d,g,y,b),m){let v=s.getTokenAfter(m,r.isNotClosingParenToken);d=v?s.getTokenBefore(v):s.ast.tokens.at(-1)}else d=y}),f){let m=s.getLastToken(c),g=s.getTokenBefore(m);r.isCommaToken(g)&&l(s.getTokenBefore(g),g,m,m)}}}let u={};return n.VariableDeclaration||(u.VariableDeclaration=function(c){o(c,"declarations")}),n.ObjectExpression||(u.ObjectExpression=function(c){o(c,"properties")}),n.ObjectPattern||(u.ObjectPattern=function(c){o(c,"properties")}),n.ArrayExpression||(u.ArrayExpression=function(c){o(c,"elements")}),n.ArrayPattern||(u.ArrayPattern=function(c){o(c,"elements")}),n.FunctionDeclaration||(u.FunctionDeclaration=function(c){o(c,"params")}),n.FunctionExpression||(u.FunctionExpression=function(c){o(c,"params")}),n.ArrowFunctionExpression||(u.ArrowFunctionExpression=function(c){o(c,"params")}),n.CallExpression||(u.CallExpression=function(c){o(c,"arguments")}),n.ImportDeclaration||(u.ImportDeclaration=function(c){o(c,"specifiers")}),n.NewExpression||(u.NewExpression=function(c){o(c,"arguments")}),u}},gg}var yg,oD;function vi(){if(oD)return yg;oD=1;let r=/^[\u0000-\u007f]*$/u,e;function t(n){return n.length<=1?n.toUpperCase():n[0].toUpperCase()+n.slice(1)}function s(n){if(r.test(n))return n.length;e??=new Intl.Segmenter("en-US");let i=0;for(let a of e.segment(n))i++;return i}return yg={upperCaseFirst:t,getGraphemeCount:s},yg}var xg,lD;function w7(){if(lD)return xg;lD=1;let r=Pe(),{upperCaseFirst:e}=vi();return xg={meta:{type:"suggestion",docs:{description:"Enforce a maximum cyclomatic complexity allowed in a program",recommended:!1,url:"https://eslint.org/docs/latest/rules/complexity"},schema:[{oneOf:[{type:"integer",minimum:0},{type:"object",properties:{maximum:{type:"integer",minimum:0},max:{type:"integer",minimum:0}},additionalProperties:!1}]}],messages:{complex:"{{name}} has a complexity of {{complexity}}. Maximum allowed is {{max}}."}},create(t){let s=t.options[0],n=20;typeof s=="object"&&(Object.hasOwn(s,"maximum")||Object.hasOwn(s,"max"))?n=s.maximum||s.max:typeof s=="number"&&(n=s);let i=[];function a(){i[i.length-1]++}return{onCodePathStart(){i.push(1)},CatchClause:a,ConditionalExpression:a,LogicalExpression:a,ForStatement:a,ForInStatement:a,ForOfStatement:a,IfStatement:a,WhileStatement:a,DoWhileStatement:a,AssignmentPattern:a,"SwitchCase[test]":a,AssignmentExpression(l){r.isLogicalAssignmentOperator(l.operator)&&a()},MemberExpression(l){l.optional===!0&&a()},CallExpression(l){l.optional===!0&&a()},onCodePathEnd(l,o){let u=i.pop();if(!(l.origin!=="function"&&l.origin!=="class-field-initializer"&&l.origin!=="class-static-block")&&u>n){let c;l.origin==="class-field-initializer"?c="class field initializer":l.origin==="class-static-block"?c="class static block":c=r.getFunctionNameWithKind(o),t.report({node:o,messageId:"complex",data:{name:e(c),complexity:u,max:n}})}}}}},xg}var bg,uD;function k7(){if(uD)return bg;uD=1;let r=Pe();return bg={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Enforce consistent spacing inside computed property brackets",recommended:!1,url:"https://eslint.org/docs/latest/rules/computed-property-spacing"},fixable:"whitespace",schema:[{enum:["always","never"]},{type:"object",properties:{enforceForClassMembers:{type:"boolean",default:!0}},additionalProperties:!1}],messages:{unexpectedSpaceBefore:"There should be no space before '{{tokenValue}}'.",unexpectedSpaceAfter:"There should be no space after '{{tokenValue}}'.",missingSpaceBefore:"A space is required before '{{tokenValue}}'.",missingSpaceAfter:"A space is required after '{{tokenValue}}'."}},create(e){let t=e.sourceCode,s=e.options[0]==="always",n=!e.options[1]||e.options[1].enforceForClassMembers;function i(p,h,f){e.report({node:p,loc:{start:h.loc.end,end:f.loc.start},messageId:"unexpectedSpaceAfter",data:{tokenValue:h.value},fix(d){return d.removeRange([h.range[1],f.range[0]])}})}function a(p,h,f){e.report({node:p,loc:{start:f.loc.end,end:h.loc.start},messageId:"unexpectedSpaceBefore",data:{tokenValue:h.value},fix(d){return d.removeRange([f.range[1],h.range[0]])}})}function l(p,h){e.report({node:p,loc:h.loc,messageId:"missingSpaceAfter",data:{tokenValue:h.value},fix(f){return f.insertTextAfter(h," ")}})}function o(p,h){e.report({node:p,loc:h.loc,messageId:"missingSpaceBefore",data:{tokenValue:h.value},fix(f){return f.insertTextBefore(h," ")}})}function u(p){return function(h){if(!h.computed)return;let f=h[p],d=t.getTokenBefore(f,r.isOpeningBracketToken),m=t.getTokenAfter(d,{includeComments:!0}),g=t.getTokenAfter(f,r.isClosingBracketToken),y=t.getTokenBefore(g,{includeComments:!0});r.isTokenOnSameLine(d,m)&&(s?!t.isSpaceBetweenTokens(d,m)&&r.isTokenOnSameLine(d,m)&&l(h,d):t.isSpaceBetweenTokens(d,m)&&i(h,d,m)),r.isTokenOnSameLine(y,g)&&(s?!t.isSpaceBetweenTokens(y,g)&&r.isTokenOnSameLine(y,g)&&o(h,g):t.isSpaceBetweenTokens(y,g)&&a(h,g,y))}}let c={Property:u("key"),MemberExpression:u("property")};return n&&(c.MethodDefinition=c.PropertyDefinition=c.Property),c}},bg}var vg,cD;function A7(){if(cD)return vg;cD=1;let r=Pe(),{upperCaseFirst:e}=vi();function t(n){for(let i of n)if(i.reachable)return!1;return!0}function s(n){return n.type==="FunctionExpression"&&n.parent&&n.parent.type==="MethodDefinition"&&n.parent.kind==="constructor"}return vg={meta:{type:"suggestion",docs:{description:"Require `return` statements to either always or never specify values",recommended:!1,url:"https://eslint.org/docs/latest/rules/consistent-return"},schema:[{type:"object",properties:{treatUndefinedAsUnspecified:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{missingReturn:"Expected to return a value at the end of {{name}}.",missingReturnValue:"{{name}} expected a return value.",unexpectedReturnValue:"{{name}} expected no return value."}},create(n){let a=(n.options[0]||{}).treatUndefinedAsUnspecified===!0,l=null;function o(u){let c,p;!l.hasReturnValue||t(l.currentSegments)||r.isES5Constructor(u)||s(u)||(u.type==="Program"?(c={line:1,column:0},p="program"):u.type==="ArrowFunctionExpression"?c=n.sourceCode.getTokenBefore(u.body,r.isArrowToken).loc:u.parent.type==="MethodDefinition"||u.parent.type==="Property"&&u.parent.method?c=u.parent.key.loc:c=(u.id||n.sourceCode.getFirstToken(u)).loc,p||(p=r.getFunctionNameWithKind(u)),n.report({node:u,loc:c,messageId:"missingReturn",data:{name:p}}))}return{onCodePathStart(u,c){l={upper:l,codePath:u,hasReturn:!1,hasReturnValue:!1,messageId:"",node:c,currentSegments:new Set}},onCodePathEnd(){l=l.upper},onUnreachableCodePathSegmentStart(u){l.currentSegments.add(u)},onUnreachableCodePathSegmentEnd(u){l.currentSegments.delete(u)},onCodePathSegmentStart(u){l.currentSegments.add(u)},onCodePathSegmentEnd(u){l.currentSegments.delete(u)},ReturnStatement(u){let c=u.argument,p=!!c;a&&p&&(p=!r.isSpecificId(c,"undefined")&&c.operator!=="void"),l.hasReturn?l.hasReturnValue!==p&&n.report({node:u,messageId:l.messageId,data:l.data}):(l.hasReturn=!0,l.hasReturnValue=p,l.messageId=p?"missingReturnValue":"unexpectedReturnValue",l.data={name:l.node.type==="Program"?"Program":e(r.getFunctionNameWithKind(l.node))})},"Program:exit":o,"FunctionDeclaration:exit":o,"FunctionExpression:exit":o,"ArrowFunctionExpression:exit":o}}},vg}var Og,fD;function P7(){return fD||(fD=1,Og={meta:{type:"suggestion",docs:{description:"Enforce consistent naming when capturing the current execution context",recommended:!1,url:"https://eslint.org/docs/latest/rules/consistent-this"},schema:{type:"array",items:{type:"string",minLength:1},uniqueItems:!0},messages:{aliasNotAssignedToThis:"Designated alias '{{name}}' is not assigned to 'this'.",unexpectedAlias:"Unexpected alias '{{name}}' for 'this'."}},create(r){let e=[],t=r.sourceCode;r.options.length===0?e.push("that"):e=r.options;function s(l,o){r.report({node:l,messageId:"aliasNotAssignedToThis",data:{name:o}})}function n(l,o,u){let c=u.type==="ThisExpression";e.includes(o)?(!c||l.operator&&l.operator!=="=")&&s(l,o):c&&r.report({node:l,messageId:"unexpectedAlias",data:{name:o}})}function i(l,o){let u=o.set.get(l);u&&(u.defs.some(c=>c.node.type==="VariableDeclarator"&&c.node.init!==null)||u.references.some(c=>{let p=c.writeExpr;return c.from===o&&p&&p.type==="ThisExpression"&&p.parent.operator==="="})||u.defs.map(c=>c.node).forEach(c=>{s(c,l)}))}function a(l){let o=t.getScope(l);e.forEach(u=>{i(u,o)})}return{"Program:exit":a,"FunctionExpression:exit":a,"FunctionDeclaration:exit":a,VariableDeclarator(l){let o=l.id,u=o.type==="ArrayPattern"||o.type==="ObjectPattern";l.init!==null&&!u&&n(l,o.name,l.init)},AssignmentExpression(l){l.left.type==="Identifier"&&n(l,l.left.name,l.right)}}}}),Og}var Sg,pD;function T7(){if(pD)return Sg;pD=1;function r(s){return s.type==="FunctionExpression"&&s.parent.type==="MethodDefinition"&&s.parent.kind==="constructor"}function e(s){if(!s)return!1;switch(s.type){case"ClassExpression":case"FunctionExpression":case"ThisExpression":case"MemberExpression":case"CallExpression":case"NewExpression":case"ChainExpression":case"YieldExpression":case"TaggedTemplateExpression":case"MetaProperty":return!0;case"Identifier":return s.name!=="undefined";case"AssignmentExpression":return["=","&&="].includes(s.operator)?e(s.right):["||=","??="].includes(s.operator)?e(s.left)||e(s.right):!1;case"LogicalExpression":return s.operator==="&&"?e(s.right):e(s.left)||e(s.right);case"ConditionalExpression":return e(s.alternate)||e(s.consequent);case"SequenceExpression":{let n=s.expressions.at(-1);return e(n)}default:return!1}}class t{calledInEveryPaths=!1;calledInSomePaths=!1;validNodes=[]}return Sg={meta:{type:"problem",docs:{description:"Require `super()` calls in constructors",recommended:!0,url:"https://eslint.org/docs/latest/rules/constructor-super"},schema:[],messages:{missingSome:"Lacked a call of 'super()' in some code paths.",missingAll:"Expected to call 'super()'.",duplicate:"Unexpected duplicate 'super()'.",badSuper:"Unexpected 'super()' because 'super' is not a constructor."}},create(s){let n=null,i=Object.create(null);function a(u){return u.reachable&&i[u.id].calledInSomePaths}function l(u){return!!i[u.id]}function o(u){return u.reachable&&i[u.id].calledInEveryPaths}return{onCodePathStart(u,c){if(r(c)){let h=c.parent.parent.parent.superClass;n={upper:n,isConstructor:!0,hasExtends:!!h,superIsConstructor:e(h),codePath:u,currentSegments:new Set}}else n={upper:n,isConstructor:!1,hasExtends:!1,superIsConstructor:!1,codePath:u,currentSegments:new Set}},onCodePathEnd(u,c){let p=n.hasExtends;if(n=n.upper,!p)return;let h=u.returnedSegments,f=h.every(o),d=h.some(a);f||s.report({messageId:d?"missingSome":"missingAll",node:c.parent})},onCodePathSegmentStart(u,c){if(n.currentSegments.add(u),!(n.isConstructor&&n.hasExtends))return;let p=i[u.id]=new t,h=u.prevSegments.filter(l);h.length>0&&(p.calledInSomePaths=h.some(a),p.calledInEveryPaths=h.every(o)),c.parent&&c.parent.type==="ForStatement"&&c.parent.update===c&&(p.calledInEveryPaths=!0)},onUnreachableCodePathSegmentStart(u){n.currentSegments.add(u)},onUnreachableCodePathSegmentEnd(u){n.currentSegments.delete(u)},onCodePathSegmentEnd(u){n.currentSegments.delete(u)},onCodePathSegmentLoop(u,c){n.isConstructor&&n.hasExtends&&n.codePath.traverseSegments({first:c,last:u},(p,h)=>{let f=i[p.id];if(!f){h.skip();return}let d=p.prevSegments.filter(l),m=d.some(a),g=d.every(o);if(f.calledInSomePaths||=m,f.calledInEveryPaths||=g,m){let y=f.validNodes;f.validNodes=[];for(let b=0;b0}else O=!o(b);else O=!0;return{actual:C,expected:O,check(){this.expected!==null&&this.expected!==this.actual&&(this.expected?e.report({node:y,loc:b.loc,messageId:S&&S.condition?"missingCurlyAfterCondition":"missingCurlyAfter",data:{name:v},fix:w=>w.replaceText(b,`{${a.getText(b)}}`)}):e.report({node:y,loc:b.loc,messageId:S&&S.condition?"unexpectedCurlyAfterCondition":"unexpectedCurlyAfter",data:{name:v},fix(w){let E=y.type==="DoWhileStatement"&&a.getTokenBefore(b).range[1]===b.range[0]&&!r.canTokensBeAdjacent("do",a.getFirstToken(b,{skip:1})),k=a.getFirstToken(b),A=a.getLastToken(b),D=a.getTokenBefore(A);if(h(A))return null;let _=a.getText().slice(k.range[1],D.range[0])+a.getText(D)+a.getText().slice(D.range[1],A.range[0]);return w.replaceText(b,(E?" ":"")+_)}}))}}}function g(y){let b=[];for(let v=y;v;v=v.alternate)if(b.push(m(v,v.consequent,"if",{condition:!0})),v.alternate&&v.alternate.type!=="IfStatement"){b.push(m(v,v.alternate,"else"));break}if(i){let v=b.some(S=>S.expected!==null?S.expected:S.actual);b.forEach(S=>{S.expected=v})}return b}return{IfStatement(y){let b=y.parent;b.type==="IfStatement"&&b.alternate===y||g(y).forEach(S=>{S.check()})},WhileStatement(y){m(y,y.body,"while",{condition:!0}).check()},DoWhileStatement(y){m(y,y.body,"do").check()},ForStatement(y){m(y,y.body,"for",{condition:!0}).check()},ForInStatement(y){m(y,y.body,"for-in").check()},ForOfStatement(y){m(y,y.body,"for-of").check()}}}},Eg}var Cg,dD;function _7(){if(dD)return Cg;dD=1;let r=/^no default$/iu;return Cg={meta:{type:"suggestion",docs:{description:"Require `default` cases in `switch` statements",recommended:!1,url:"https://eslint.org/docs/latest/rules/default-case"},schema:[{type:"object",properties:{commentPattern:{type:"string"}},additionalProperties:!1}],messages:{missingDefaultCase:"Expected a default case."}},create(e){let t=e.options[0]||{},s=t.commentPattern?new RegExp(t.commentPattern,"u"):r,n=e.sourceCode;function i(a){return a.at(-1)}return{SwitchStatement(a){if(!a.cases.length)return;if(!a.cases.some(o=>o.test===null)){let o,u=i(a.cases),c=n.getCommentsAfter(u);c.length&&(o=i(c)),(!o||!s.test(o.value.trim()))&&e.report({node:a,messageId:"missingDefaultCase"})}}}}},Cg}var wg,mD;function I7(){return mD||(mD=1,wg={meta:{type:"suggestion",docs:{description:"Enforce default clauses in switch statements to be last",recommended:!1,url:"https://eslint.org/docs/latest/rules/default-case-last"},schema:[],messages:{notLast:"Default clause should be the last clause."}},create(r){return{SwitchStatement(e){let t=e.cases,s=t.findIndex(n=>n.test===null);if(s!==-1&&s!==t.length-1){let n=t[s];r.report({node:n,messageId:"notLast"})}}}}}),wg}var kg,gD;function F7(){return gD||(gD=1,kg={meta:{type:"suggestion",docs:{description:"Enforce default parameters to be last",recommended:!1,url:"https://eslint.org/docs/latest/rules/default-param-last"},schema:[],messages:{shouldBeLast:"Default parameters should be last."}},create(r){function e(t){let s=!1;for(let n=t.params.length-1;n>=0;n-=1){let i=t.params[n];if(i.type!=="AssignmentPattern"&&i.type!=="RestElement"){s=!0;continue}s&&i.type==="AssignmentPattern"&&r.report({node:i,messageId:"shouldBeLast"})}}return{FunctionDeclaration:e,FunctionExpression:e,ArrowFunctionExpression:e}}}),kg}var Ag,yD;function R7(){if(yD)return Ag;yD=1;let r=Pe();return Ag={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Enforce consistent newlines before and after dots",recommended:!1,url:"https://eslint.org/docs/latest/rules/dot-location"},schema:[{enum:["object","property"]}],fixable:"code",messages:{expectedDotAfterObject:"Expected dot to be on same line as object.",expectedDotBeforeProperty:"Expected dot to be on same line as property."}},create(e){let t=e.options[0],s=t==="object"||!t,n=e.sourceCode;function i(l){let o=l.property,u=n.getTokenBefore(o);if(s){let c=n.getTokenBefore(u);r.isTokenOnSameLine(c,u)||e.report({node:l,loc:u.loc,messageId:"expectedDotAfterObject",*fix(p){u.value.startsWith(".")&&r.isDecimalIntegerNumericToken(c)?yield p.insertTextAfter(c,` ${u.value}`):yield p.insertTextAfter(c,u.value),yield p.remove(u)}})}else r.isTokenOnSameLine(u,o)||e.report({node:l,loc:u.loc,messageId:"expectedDotBeforeProperty",*fix(c){yield c.remove(u),yield c.insertTextBefore(o,u.value)}})}function a(l){l.computed||i(l)}return{MemberExpression:a}}},Ag}var Pg,xD;function NO(){return xD||(xD=1,Pg=["abstract","boolean","break","byte","case","catch","char","class","const","continue","debugger","default","delete","do","double","else","enum","export","extends","false","final","finally","float","for","function","goto","if","implements","import","in","instanceof","int","interface","long","native","new","null","package","private","protected","public","return","short","static","super","switch","synchronized","this","throw","throws","transient","true","try","typeof","var","void","volatile","while","with"]),Pg}var Tg,bD;function B7(){if(bD)return Tg;bD=1;let r=Pe(),e=NO(),t=/^[a-zA-Z_$][a-zA-Z0-9_$]*$/u,s=new Set(["string","boolean"]);return Tg={meta:{type:"suggestion",docs:{description:"Enforce dot notation whenever possible",recommended:!1,url:"https://eslint.org/docs/latest/rules/dot-notation"},schema:[{type:"object",properties:{allowKeywords:{type:"boolean",default:!0},allowPattern:{type:"string",default:""}},additionalProperties:!1}],fixable:"code",messages:{useDot:"[{{key}}] is better written in dot notation.",useBrackets:".{{key}} is a syntax error."}},create(n){let i=n.options[0]||{},a=i.allowKeywords===void 0||i.allowKeywords,l=n.sourceCode,o;i.allowPattern&&(o=new RegExp(i.allowPattern,"u"));function u(c,p){if(t.test(p)&&(a||!e.includes(String(p)))&&!(o&&o.test(p))){let h=c.property.type==="Literal"?JSON.stringify(p):`\`${p}\``;n.report({node:c.property,messageId:"useDot",data:{key:h},*fix(f){let d=l.getTokenAfter(c.object,r.isOpeningBracketToken),m=l.getLastToken(c),g=l.getTokenAfter(c);l.commentsExistBetween(d,m)||(c.optional||(yield f.insertTextBefore(d,r.isDecimalInteger(c.object)?" .":".")),yield f.replaceTextRange([d.range[0],m.range[1]],p),g&&m.range[1]===g.range[0]&&!r.canTokensBeAdjacent(String(p),g)&&(yield f.insertTextAfter(c," ")))}})}}return{MemberExpression(c){c.computed&&c.property.type==="Literal"&&(s.has(typeof c.property.value)||r.isNullLiteral(c.property))&&u(c,c.property.value),c.computed&&r.isStaticTemplateLiteral(c.property)&&u(c,c.property.quasis[0].value.cooked),!a&&!c.computed&&c.property.type==="Identifier"&&e.includes(String(c.property.name))&&n.report({node:c.property,messageId:"useBrackets",data:{key:c.property.name},*fix(p){let h=l.getTokenBefore(c.property);c.object.type==="Identifier"&&c.object.name==="let"&&!c.optional||l.commentsExistBetween(h,c.property)||(c.optional||(yield p.remove(h)),yield p.replaceText(c.property,`["${c.property.name}"]`))}})}}}},Tg}var Dg,vD;function N7(){return vD||(vD=1,Dg={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Require or disallow newline at the end of files",recommended:!1,url:"https://eslint.org/docs/latest/rules/eol-last"},fixable:"whitespace",schema:[{enum:["always","never","unix","windows"]}],messages:{missing:"Newline required at end of file but not found.",unexpected:"Newline not allowed at end of file."}},create(r){return{Program:function(t){let s=r.sourceCode,n=s.getText(),i=s.lines.at(-1),a={column:i.length,line:s.lines.length},l=` -`,o=`\r${l}`,u=n.endsWith(l);if(!n.length)return;let c=r.options[0]||"always",p=!1;if(c==="unix"&&(c="always"),c==="windows"&&(c="always",p=!0),c==="always"&&!u)r.report({node:t,loc:a,messageId:"missing",fix(h){return h.insertTextAfterRange([0,n.length],p?o:l)}});else if(c==="never"&&u){let h=s.lines.at(-2);r.report({node:t,loc:{start:{line:s.lines.length-1,column:h.length},end:{line:s.lines.length,column:0}},messageId:"unexpected",fix(f){let d=/(?:\r?\n)+$/u,m=d.exec(s.text),g=m.index,y=s.text.length;return f.replaceTextRange([g,y],"")}})}}}}}),Dg}var _g,OD;function L7(){if(OD)return _g;OD=1;let r=Pe();return _g={meta:{type:"suggestion",docs:{description:"Require the use of `===` and `!==`",recommended:!1,url:"https://eslint.org/docs/latest/rules/eqeqeq"},schema:{anyOf:[{type:"array",items:[{enum:["always"]},{type:"object",properties:{null:{enum:["always","never","ignore"]}},additionalProperties:!1}],additionalItems:!1},{type:"array",items:[{enum:["smart","allow-null"]}],additionalItems:!1}]},fixable:"code",messages:{unexpected:"Expected '{{expectedOperator}}' and instead saw '{{actualOperator}}'."}},create(e){let t=e.options[0]||"always",s=e.options[1]||{},n=e.sourceCode,i=t==="always"?s.null||"always":"ignore",a=i==="always",l=i==="never";function o(f){return f.type==="UnaryExpression"&&f.operator==="typeof"}function u(f){return o(f.left)||o(f.right)}function c(f){return f.left.type==="Literal"&&f.right.type==="Literal"&&typeof f.left.value==typeof f.right.value}function p(f){return r.isNullLiteral(f.right)||r.isNullLiteral(f.left)}function h(f,d){let m=n.getFirstTokenBetween(f.left,f.right,g=>g.value===f.operator);e.report({node:f,loc:m.loc,messageId:"unexpected",data:{expectedOperator:d,actualOperator:f.operator},fix(g){return u(f)||c(f)?g.replaceText(m,d):null}})}return{BinaryExpression(f){let d=p(f);if(f.operator!=="=="&&f.operator!=="!="){l&&d&&h(f,f.operator.slice(0,-1));return}t==="smart"&&(u(f)||c(f)||d)||!a&&d||h(f,`${f.operator}=`)}}}},_g}var Ig,SD;function $7(){if(SD)return Ig;SD=1;let{getStaticValue:r}=hr();return Ig={meta:{type:"problem",docs:{description:'Enforce "for" loop update clause moving the counter in the right direction',recommended:!0,url:"https://eslint.org/docs/latest/rules/for-direction"},fixable:null,schema:[],messages:{incorrectDirection:"The update clause in this loop moves the variable in the wrong direction."}},create(e){let{sourceCode:t}=e;function s(l){e.report({node:l,messageId:"incorrectDirection"})}function n(l,o){let u=r(l.right,t.getScope(l));if(u&&["bigint","boolean","number"].includes(typeof u.value)){let c=Math.sign(Number(u.value))||0;return o*c}return 0}function i(l,o){if(l.argument.type==="Identifier"&&l.argument.name===o){if(l.operator==="++")return 1;if(l.operator==="--")return-1}return 0}function a(l,o){if(l.left.name===o){if(l.operator==="+=")return n(l,1);if(l.operator==="-=")return n(l,-1)}return 0}return{ForStatement(l){if(l.test&&l.test.type==="BinaryExpression"&&l.update)for(let o of["left","right"]){if(l.test[o].type!=="Identifier")continue;let u=l.test[o].name,c=l.test.operator,p=l.update,h;if(c==="<"||c==="<=")h=o==="left"?-1:1;else if(c===">"||c===">=")h=o==="left"?1:-1;else return;p.type==="UpdateExpression"?i(p,u)===h&&s(l):p.type==="AssignmentExpression"&&a(p,u)===h&&s(l)}}}}},Ig}var Fg,ED;function M7(){if(ED)return Fg;ED=1;let r=Pe();return Fg={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Require or disallow spacing between function identifiers and their invocations",recommended:!1,url:"https://eslint.org/docs/latest/rules/func-call-spacing"},fixable:"whitespace",schema:{anyOf:[{type:"array",items:[{enum:["never"]}],minItems:0,maxItems:1},{type:"array",items:[{enum:["always"]},{type:"object",properties:{allowNewlines:{type:"boolean"}},additionalProperties:!1}],minItems:0,maxItems:2}]},messages:{unexpectedWhitespace:"Unexpected whitespace between function name and paren.",unexpectedNewline:"Unexpected newline between function name and paren.",missing:"Missing space between function name and paren."}},create(e){let t=e.options[0]!=="always",s=!t&&e.options[1]&&e.options[1].allowNewlines,n=e.sourceCode,i=n.getText();function a(l,o,u){let c=i.slice(o.range[1],u.range[0]).replace(/\/\*.*?\*\//gu,""),p=/\s/u.test(c),h=p&&r.LINEBREAK_MATCHER.test(c);t&&p?e.report({node:l,loc:{start:o.loc.end,end:{line:u.loc.start.line,column:u.loc.start.column-1}},messageId:"unexpectedWhitespace",fix(f){return n.commentsExistBetween(o,u)?null:l.optional?f.replaceTextRange([o.range[1],u.range[0]],"?."):h?null:f.removeRange([o.range[1],u.range[0]])}}):!t&&!p?e.report({node:l,loc:{start:{line:o.loc.end.line,column:o.loc.end.column-1},end:u.loc.start},messageId:"missing",fix(f){return l.optional?null:f.insertTextBefore(u," ")}}):!t&&!s&&h&&e.report({node:l,loc:{start:o.loc.end,end:u.loc.start},messageId:"unexpectedNewline",fix(f){if(!l.optional||n.commentsExistBetween(o,u))return null;let d=[o.range[1],u.range[0]],m=n.getTokenAfter(o);return m.range[0]===o.range[1]?f.replaceTextRange(d,"?. "):m.range[1]===u.range[0]?f.replaceTextRange(d," ?."):f.replaceTextRange(d," ?. ")}})}return{"CallExpression, NewExpression"(l){let o=n.getLastToken(l),u=n.getLastToken(l.callee),c=n.getFirstTokenBetween(u,o,r.isOpeningParenToken),p=c&&n.getTokenBefore(c,r.isNotQuestionDotToken);c&&c.range[1]=2015?e.keyword.isIdentifierES6(a):e.keyword.isIdentifierES5(a)}let n={enum:["always","never"]},i={type:"object",properties:{considerPropertyDescriptor:{type:"boolean"},includeCommonJSModuleExports:{type:"boolean"}},additionalProperties:!1};return Rg={meta:{type:"suggestion",docs:{description:"Require function names to match the name of the variable or property to which they are assigned",recommended:!1,url:"https://eslint.org/docs/latest/rules/func-name-matching"},schema:{anyOf:[{type:"array",additionalItems:!1,items:[n,i]},{type:"array",additionalItems:!1,items:[i]}]},messages:{matchProperty:"Function name `{{funcName}}` should match property name `{{name}}`.",matchVariable:"Function name `{{funcName}}` should match variable name `{{name}}`.",notMatchProperty:"Function name `{{funcName}}` should not match property name `{{name}}`.",notMatchVariable:"Function name `{{funcName}}` should not match variable name `{{name}}`."}},create(a){let l=(typeof a.options[0]=="object"?a.options[0]:a.options[1])||{},o=typeof a.options[0]=="string"?a.options[0]:"always",u=l.considerPropertyDescriptor,c=l.includeCommonJSModuleExports,p=a.languageOptions.ecmaVersion;function h(g,y,b){return b?b.type==="CallExpression"&&r.isSpecificMemberAccess(b.callee,g,y):!1}function f(g,y){return o==="always"&&g!==y||o==="never"&&g===y}function d(g,y,b,v){let S;o==="always"&&v?S="matchProperty":o==="always"?S="matchVariable":v?S="notMatchProperty":S="notMatchVariable",a.report({node:g,messageId:S,data:{name:y,funcName:b}})}function m(g){return g.type==="Literal"&&typeof g.value=="string"}return{VariableDeclarator(g){!g.init||g.init.type!=="FunctionExpression"||g.id.type!=="Identifier"||g.init.id&&f(g.id.name,g.init.id.name)&&d(g,g.id.name,g.init.id.name,!1)},AssignmentExpression(g){if(g.right.type!=="FunctionExpression"||g.left.computed&&g.left.property.type!=="Literal"||!c&&t(g.left)||g.left.type!=="Identifier"&&g.left.type!=="MemberExpression")return;let y=g.left.type==="MemberExpression",b=y?r.getStaticPropertyName(g.left):g.left.name;g.right.id&&b&&s(b)&&f(b,g.right.id.name)&&d(g,b,g.right.id.name,y)},"Property, PropertyDefinition[value]"(g){if(g.value.type==="FunctionExpression"&&g.value.id){if(g.key.type==="Identifier"&&!g.computed){let y=g.value.id.name,b=g.key.name;if(u&&b==="value"&&g.parent.type==="ObjectExpression")if(h("Object","defineProperty",g.parent.parent)||h("Reflect","defineProperty",g.parent.parent)){let v=g.parent.parent.arguments[1];m(v)&&f(v.value,y)&&d(g,v.value,y,!0)}else h("Object","defineProperties",g.parent.parent.parent.parent)||h("Object","create",g.parent.parent.parent.parent)?(b=g.parent.parent.key.name,!g.parent.parent.computed&&f(b,y)&&d(g,b,y,!0)):f(b,y)&&d(g,b,y,!0);else f(b,y)&&d(g,b,y,!0);return}m(g.key)&&s(g.key.value,p)&&f(g.key.value,g.value.id.name)&&d(g,g.key.value,g.value.id.name,!0)}}}}},Rg}var Bg,wD;function q7(){if(wD)return Bg;wD=1;let r=Pe();function e(t){return t&&t.defs[0].type==="FunctionName"}return Bg={meta:{type:"suggestion",docs:{description:"Require or disallow named `function` expressions",recommended:!1,url:"https://eslint.org/docs/latest/rules/func-names"},schema:{definitions:{value:{enum:["always","as-needed","never"]}},items:[{$ref:"#/definitions/value"},{type:"object",properties:{generators:{$ref:"#/definitions/value"}},additionalProperties:!1}]},messages:{unnamed:"Unexpected unnamed {{name}}.",named:"Unexpected named {{name}}."}},create(t){let s=t.sourceCode;function n(c){return c.generator&&t.options.length>1&&t.options[1].generators?t.options[1].generators:t.options[0]||"always"}function i(c){let p=c.parent;return p.type==="MethodDefinition"||p.type==="Property"&&(p.method||p.kind==="get"||p.kind==="set")}function a(c){let p=c.parent;return i(c)||p.type==="VariableDeclarator"&&p.id.type==="Identifier"&&p.init===c||p.type==="Property"&&p.value===c||p.type==="PropertyDefinition"&&p.value===c||p.type==="AssignmentExpression"&&p.left.type==="Identifier"&&p.right===c||p.type==="AssignmentPattern"&&p.left.type==="Identifier"&&p.right===c}function l(c){t.report({node:c,messageId:"unnamed",loc:r.getFunctionHeadLoc(c,s),data:{name:r.getFunctionNameWithKind(c)}})}function o(c){t.report({node:c,messageId:"named",loc:r.getFunctionHeadLoc(c,s),data:{name:r.getFunctionNameWithKind(c)}})}function u(c){let p=s.getDeclaredVariables(c)[0];if(e(p)&&p.references.length>0)return;let h=!!(c.id&&c.id.name),f=n(c);f==="never"?h&&c.type!=="FunctionDeclaration"&&o(c):f==="as-needed"?!h&&!a(c)&&l(c):!h&&!i(c)&&l(c)}return{"FunctionExpression:exit":u,"ExportDefaultDeclaration > FunctionDeclaration":u}}},Bg}var Ng,kD;function Q7(){return kD||(kD=1,Ng={meta:{type:"suggestion",docs:{description:"Enforce the consistent use of either `function` declarations or expressions",recommended:!1,url:"https://eslint.org/docs/latest/rules/func-style"},schema:[{enum:["declaration","expression"]},{type:"object",properties:{allowArrowFunctions:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{expression:"Expected a function expression.",declaration:"Expected a function declaration."}},create(r){let e=r.options[0],t=r.options[1]&&r.options[1].allowArrowFunctions,s=e==="declaration",n=[],i={FunctionDeclaration(a){n.push(!1),!s&&a.parent.type!=="ExportDefaultDeclaration"&&r.report({node:a,messageId:"expression"})},"FunctionDeclaration:exit"(){n.pop()},FunctionExpression(a){n.push(!1),s&&a.parent.type==="VariableDeclarator"&&r.report({node:a.parent,messageId:"declaration"})},"FunctionExpression:exit"(){n.pop()},ThisExpression(){n.length>0&&(n[n.length-1]=!0)}};return t||(i.ArrowFunctionExpression=function(){n.push(!1)},i["ArrowFunctionExpression:exit"]=function(a){let l=n.pop();s&&!l&&a.parent.type==="VariableDeclarator"&&r.report({node:a.parent,messageId:"declaration"})}),i}}),Ng}var Lg,AD;function U7(){return AD||(AD=1,Lg={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Enforce line breaks between arguments of a function call",recommended:!1,url:"https://eslint.org/docs/latest/rules/function-call-argument-newline"},fixable:"whitespace",schema:[{enum:["always","never","consistent"]}],messages:{unexpectedLineBreak:"There should be no line break here.",missingLineBreak:"There should be a line break after this argument."}},create(r){let e=r.sourceCode,t={unexpected:{messageId:"unexpectedLineBreak",check:(i,a)=>i.loc.end.line!==a.loc.start.line,createFix:(i,a)=>l=>l.replaceTextRange([a.range[1],i.range[0]]," ")},missing:{messageId:"missingLineBreak",check:(i,a)=>i.loc.end.line===a.loc.start.line,createFix:(i,a)=>l=>l.replaceTextRange([a.range[1],i.range[0]],` -`)}};function s(i,a){for(let l=1;lm!==h.length-1&&d.loc.end.line!==h[m+1].loc.start.line):a?f:h.length>=l}function u(h,f){let d=h.leftParen,m=h.rightParen,g=t.getTokenAfter(d),y=t.getTokenBefore(m),b=!r.isTokenOnSameLine(d,g),v=!r.isTokenOnSameLine(y,m),S=o(f,b);b&&!S?e.report({node:d,messageId:"unexpectedAfter",fix(C){return t.getText().slice(d.range[1],g.range[0]).trim()?null:C.removeRange([d.range[1],g.range[0]])}}):!b&&S&&e.report({node:d,messageId:"expectedAfter",fix:C=>C.insertTextAfter(d,` -`)}),v&&!S?e.report({node:m,messageId:"unexpectedBefore",fix(C){return t.getText().slice(y.range[1],m.range[0]).trim()?null:C.removeRange([y.range[1],m.range[0]])}}):!v&&S&&e.report({node:m,messageId:"expectedBefore",fix:C=>C.insertTextBefore(m,` -`)})}function c(h,f){let d=h.leftParen,m=t.getTokenAfter(d),g=!r.isTokenOnSameLine(d,m),y=o(f,g);for(let b=0;b<=f.length-2;b++){let v=f[b],S=f[b+1];!(v.loc.end.line!==S.loc.start.line)&&y&&e.report({node:v,messageId:"expectedBetween",fix:O=>O.insertTextBefore(S,` -`)})}}function p(h){switch(h.type){case"NewExpression":if(!h.arguments.length&&!(r.isOpeningParenToken(t.getLastToken(h,{skip:1}))&&r.isClosingParenToken(t.getLastToken(h))&&h.callee.range[1]a.identifier.range[0]===n.range[0]&&a.identifier.range[1]===n.range[1]);return i.length===1?i[0]:null}function t(s,n){let i=e(s,n);return i&&i.resolved&&i.resolved.defs.length>0}return qg={meta:{deprecated:!0,replacedBy:[],type:"suggestion",docs:{description:"Require `require()` calls to be placed at top-level module scope",recommended:!1,url:"https://eslint.org/docs/latest/rules/global-require"},schema:[],messages:{unexpected:"Unexpected require()."}},create(s){let n=s.sourceCode;return{CallExpression(i){let a=n.getScope(i);i.callee.name==="require"&&!t(a,i.callee)&&(n.getAncestors(i).every(o=>r.has(o.type))||s.report({node:i,messageId:"unexpected"}))}}}},qg}var Qg,ID;function X7(){if(ID)return Qg;ID=1;let r=Pe();function e(n,i){if(n.length!==i.length)return!1;for(let a=0;a1?l("notGrouped",v,S):(i==="getBeforeSet"&&y>b||i==="setBeforeGet"&&yc.type==="Property")},ClassBody(u){o(u.body,c=>c.type==="MethodDefinition"&&!c.static),o(u.body,c=>c.type==="MethodDefinition"&&c.static)}}}},Qg}var Ug,FD;function G7(){return FD||(FD=1,Ug={meta:{type:"suggestion",docs:{description:"Require `for-in` loops to include an `if` statement",recommended:!1,url:"https://eslint.org/docs/latest/rules/guard-for-in"},schema:[],messages:{wrap:"The body of a for-in should be wrapped in an if statement to filter unwanted properties from the prototype."}},create(r){return{ForInStatement(e){let t=e.body;if(t.type!=="EmptyStatement"&&t.type!=="IfStatement"&&!(t.type==="BlockStatement"&&t.body.length===0)&&!(t.type==="BlockStatement"&&t.body.length===1&&t.body[0].type==="IfStatement")){if(t.type==="BlockStatement"&&t.body.length>=1&&t.body[0].type==="IfStatement"){let s=t.body[0];if(s.consequent.type==="ContinueStatement"||s.consequent.type==="BlockStatement"&&s.consequent.body.length===1&&s.consequent.body[0].type==="ContinueStatement")return}r.report({node:e,messageId:"wrap"})}}}}}),Ug}var Vg,RD;function Y7(){return RD||(RD=1,Vg={meta:{deprecated:!0,replacedBy:[],type:"suggestion",docs:{description:"Require error handling in callbacks",recommended:!1,url:"https://eslint.org/docs/latest/rules/handle-callback-err"},schema:[{type:"string"}],messages:{expected:"Expected error to be handled."}},create(r){let e=r.options[0]||"err",t=r.sourceCode;function s(l){return l[0]==="^"}function n(l){return s(e)?new RegExp(e,"u").test(l):l===e}function i(l){return l.variables.filter(o=>o.defs[0]&&o.defs[0].type==="Parameter")}function a(l){let o=t.getScope(l),u=i(o),c=u[0];c&&n(c.name)&&c.references.length===0&&r.report({node:l,messageId:"expected"})}return{FunctionDeclaration:a,FunctionExpression:a,ArrowFunctionExpression:a}}}),Vg}var Wg,BD;function H7(){if(BD)return Wg;BD=1;function r(n){let i=n.parent;return i.type==="AssignmentExpression"&&i.left===n||i.type==="ArrayPattern"||i.type==="RestElement"||i.type==="Property"&&i.value===n&&i.parent.type==="ObjectPattern"||i.type==="AssignmentPattern"&&i.left===n}function e(n){let i=n.parent;return i.type==="ImportSpecifier"&&i.imported!==i.local&&i.imported===n||i.type==="ExportSpecifier"&&i.parent.source&&i.local!==i.exported&&i.local===n}function t(n){let i=n.parent;return!i.computed&&i.type==="Property"&&i.parent.type==="ObjectPattern"&&i.value!==n&&i.key===n}function s(n){let i=n.parent;return i.type==="Property"&&i.parent.type==="ObjectExpression"&&i.shorthand}return Wg={meta:{deprecated:!0,replacedBy:["id-denylist"],type:"suggestion",docs:{description:"Disallow specified identifiers",recommended:!1,url:"https://eslint.org/docs/latest/rules/id-blacklist"},schema:{type:"array",items:{type:"string"},uniqueItems:!0},messages:{restricted:"Identifier '{{name}}' is restricted."}},create(n){let i=new Set(n.options),a=new Set,l=n.sourceCode,o;function u(f){return i.has(f)}function c(f){let d=o.set.get(f.name);return d&&d.defs.length===0&&d.references.some(m=>m.identifier===f)}function p(f){let d=f.parent;return d.type==="MemberExpression"&&d.property===f&&!d.computed?r(d):d.type!=="CallExpression"&&d.type!=="NewExpression"&&!e(f)&&!t(f)&&!(c(f)&&!s(f))}function h(f){a.has(f.range.toString())||(n.report({node:f,messageId:"restricted",data:{name:f.name}}),a.add(f.range.toString()))}return{Program(f){o=l.getScope(f)},Identifier(f){u(f.name)&&p(f)&&h(f)}}}},Wg}var Zg,ND;function K7(){if(ND)return Zg;ND=1;function r(s){let n=s.parent;return n.type==="AssignmentExpression"&&n.left===s||n.type==="ArrayPattern"||n.type==="RestElement"||n.type==="Property"&&n.value===s&&n.parent.type==="ObjectPattern"||n.type==="AssignmentPattern"&&n.left===s}function e(s){let n=s.parent;return n.type==="ImportSpecifier"&&n.imported!==n.local&&n.imported===s||n.type==="ExportSpecifier"&&n.parent.source&&n.local!==n.exported&&n.local===s}function t(s){let n=s.parent;return!n.computed&&n.type==="Property"&&n.parent.type==="ObjectPattern"&&n.key===s}return Zg={meta:{type:"suggestion",docs:{description:"Disallow specified identifiers",recommended:!1,url:"https://eslint.org/docs/latest/rules/id-denylist"},schema:{type:"array",items:{type:"string"},uniqueItems:!0},messages:{restricted:"Identifier '{{name}}' is restricted.",restrictedPrivate:"Identifier '#{{name}}' is restricted."}},create(s){let n=new Set(s.options),i=new Set,a=s.sourceCode,l;function o(h){return n.has(h)}function u(h){let f=l.set.get(h.name);return f&&f.defs.length===0&&f.references.some(d=>d.identifier===h)}function c(h){let f=h.parent;return f.type==="MemberExpression"&&f.property===h&&!f.computed?r(f):f.type!=="CallExpression"&&f.type!=="NewExpression"&&!e(h)&&!t(h)&&!u(h)}function p(h){if(!i.has(h.range.toString())){let f=h.type==="PrivateIdentifier";s.report({node:h,messageId:f?"restrictedPrivate":"restricted",data:{name:h.name}}),i.add(h.range.toString())}}return{Program(h){l=a.getScope(h)},[["Identifier","PrivateIdentifier"]](h){o(h.name)&&c(h)&&p(h)}}}},Zg}var zg,LD;function J7(){if(LD)return zg;LD=1;let{getGraphemeCount:r}=vi();return zg={meta:{type:"suggestion",docs:{description:"Enforce minimum and maximum identifier lengths",recommended:!1,url:"https://eslint.org/docs/latest/rules/id-length"},schema:[{type:"object",properties:{min:{type:"integer",default:2},max:{type:"integer"},exceptions:{type:"array",uniqueItems:!0,items:{type:"string"}},exceptionPatterns:{type:"array",uniqueItems:!0,items:{type:"string"}},properties:{enum:["always","never"]}},additionalProperties:!1}],messages:{tooShort:"Identifier name '{{name}}' is too short (< {{min}}).",tooShortPrivate:"Identifier name '#{{name}}' is too short (< {{min}}).",tooLong:"Identifier name '{{name}}' is too long (> {{max}}).",tooLongPrivate:"Identifier name #'{{name}}' is too long (> {{max}})."}},create(e){let t=e.options[0]||{},s=typeof t.min<"u"?t.min:2,n=typeof t.max<"u"?t.max:1/0,i=t.properties!=="never",a=new Set(t.exceptions),l=(t.exceptionPatterns||[]).map(p=>new RegExp(p,"u")),o=new Set;function u(p){return l.some(h=>h.test(p))}let c={MemberExpression:i&&function(p){return!p.computed&&(p.parent.left===p&&p.parent.type==="AssignmentExpression"||p.parent.type==="Property"&&p.parent.value===p&&p.parent.parent.type==="ObjectPattern"&&p.parent.parent.parent.left===p.parent.parent)},AssignmentPattern(p,h){return p.left===h},VariableDeclarator(p,h){return p.id===h},Property(p,h){if(p.parent.type==="ObjectPattern"){let f=p.value.name===p.key.name;return!f&&p.value===h||f&&p.key===h&&i}return i&&!p.computed&&p.key.name===h.name},ImportDefaultSpecifier:!0,RestElement:!0,FunctionExpression:!0,ArrowFunctionExpression:!0,ClassDeclaration:!0,FunctionDeclaration:!0,MethodDefinition:!0,PropertyDefinition:!0,CatchClause:!0,ArrayPattern:!0};return{[["Identifier","PrivateIdentifier"]](p){let h=p.name,f=p.parent,d=r(h),m=dn;if(!(m||g)||a.has(h)||u(h))return;let y=c[f.type];if(y&&!o.has(p.range.toString())&&(y===!0||y(f,p))){o.add(p.range.toString());let b=m?"tooShort":"tooLong";p.type==="PrivateIdentifier"&&(b+="Private"),e.report({node:p,messageId:b,data:{name:h,min:s,max:n}})}}}}},zg}var Xg,$D;function eV(){return $D||($D=1,Xg={meta:{type:"suggestion",docs:{description:"Require identifiers to match a specified regular expression",recommended:!1,url:"https://eslint.org/docs/latest/rules/id-match"},schema:[{type:"string"},{type:"object",properties:{properties:{type:"boolean",default:!1},classFields:{type:"boolean",default:!1},onlyDeclarations:{type:"boolean",default:!1},ignoreDestructuring:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{notMatch:"Identifier '{{name}}' does not match the pattern '{{pattern}}'.",notMatchPrivate:"Identifier '#{{name}}' does not match the pattern '{{pattern}}'."}},create(r){let e=r.options[0]||"^.+$",t=new RegExp(e,"u"),s=r.options[1]||{},n=!!s.properties,i=!!s.classFields,a=!!s.onlyDeclarations,l=!!s.ignoreDestructuring,o=r.sourceCode,u,c=new Set,p=new Set(["CallExpression","NewExpression"]),h=new Set(["FunctionDeclaration","VariableDeclarator"]),f=new Set(["ImportSpecifier","ImportNamespaceSpecifier","ImportDefaultSpecifier"]);function d(v){let S=u.set.get(v.name);return S&&S.defs.length===0&&S.references.some(C=>C.identifier===v)}function m(v){return!t.test(v)}function g(v){let{parent:S}=v;for(;S;){if(S.type==="ObjectPattern")return!0;S=S.parent}return!1}function y(v,S){return(!a||h.has(v.type))&&!p.has(v.type)&&m(S)}function b(v){if(!c.has(v.range.toString())){let S=v.type==="PrivateIdentifier"?"notMatchPrivate":"notMatch";r.report({node:v,messageId:S,data:{name:v.name,pattern:e}}),c.add(v.range.toString())}}return{Program(v){u=o.getScope(v)},Identifier(v){let S=v.name,C=v.parent,O=C.type==="MemberExpression"?C.parent:C;if(!d(v))if(C.type==="MemberExpression"){if(!n)return;C.object.type==="Identifier"&&C.object.name===S||O.type==="AssignmentExpression"&&O.left.type==="MemberExpression"&&O.left.property.name===v.name?m(S)&&b(v):O.type==="AssignmentExpression"&&O.right.type!=="MemberExpression"&&m(S)&&b(v)}else if(C.type==="Property"&&C.parent.type==="ObjectExpression"&&C.key===v&&!C.computed)n&&m(S)&&b(v);else if(C.type==="Property"||C.type==="AssignmentPattern"){if(C.parent&&C.parent.type==="ObjectPattern"){!l&&C.shorthand&&C.value.left&&m(S)&&b(v);let w=C.key.name===C.value.name;if(!w&&C.key===v)return;C.value.name&&m(S)&&!(w&&l)&&b(v)}if(!n&&!C.computed||l&&g(v))return;C.right!==v&&y(O,S)&&b(v)}else f.has(C.type)?C.local&&C.local.name===v.name&&m(S)&&b(v):C.type==="PropertyDefinition"?i&&m(S)&&b(v):y(O,S)&&b(v)},PrivateIdentifier(v){v.parent.type==="PropertyDefinition"&&!i||m(v.name)&&b(v)}}}}),Xg}var Gg,MD;function tV(){if(MD)return Gg;MD=1;let{isCommentToken:r,isNotOpeningParenToken:e}=Pe();return Gg={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Enforce the location of arrow function bodies",recommended:!1,url:"https://eslint.org/docs/latest/rules/implicit-arrow-linebreak"},fixable:"whitespace",schema:[{enum:["beside","below"]}],messages:{expected:"Expected a linebreak before this expression.",unexpected:"Expected no linebreak before this expression."}},create(t){let s=t.sourceCode,n=t.options[0]||"beside";function i(a){if(a.body.type==="BlockStatement")return;let l=s.getTokenBefore(a.body,e),o=s.getTokenAfter(l);l.loc.end.line===o.loc.start.line&&n==="below"?t.report({node:o,messageId:"expected",fix:u=>u.insertTextBefore(o,` -`)}):l.loc.end.line!==o.loc.start.line&&n==="beside"&&t.report({node:o,messageId:"unexpected",fix(u){return s.getFirstTokenBetween(l,o,{includeComments:!0,filter:r})?null:u.replaceTextRange([l.range[1],o.range[0]]," ")}})}return{ArrowFunctionExpression:a=>i(a)}}},Gg}var Yg,jD;function rV(){if(jD)return Yg;jD=1;let r=Pe(),e=new Set(["AssignmentExpression","AssignmentPattern","ArrayExpression","ArrayPattern","ArrowFunctionExpression","AwaitExpression","BlockStatement","BinaryExpression","BreakStatement","CallExpression","CatchClause","ChainExpression","ClassBody","ClassDeclaration","ClassExpression","ConditionalExpression","ContinueStatement","DoWhileStatement","DebuggerStatement","EmptyStatement","ExperimentalRestProperty","ExperimentalSpreadProperty","ExpressionStatement","ForStatement","ForInStatement","ForOfStatement","FunctionDeclaration","FunctionExpression","Identifier","IfStatement","Literal","LabeledStatement","LogicalExpression","MemberExpression","MetaProperty","MethodDefinition","NewExpression","ObjectExpression","ObjectPattern","PrivateIdentifier","Program","Property","PropertyDefinition","RestElement","ReturnStatement","SequenceExpression","SpreadElement","StaticBlock","Super","SwitchCase","SwitchStatement","TaggedTemplateExpression","TemplateElement","TemplateLiteral","ThisExpression","ThrowStatement","TryStatement","UnaryExpression","UpdateExpression","VariableDeclaration","VariableDeclarator","WhileStatement","WithStatement","YieldExpression","JSXFragment","JSXOpeningFragment","JSXClosingFragment","JSXIdentifier","JSXNamespacedName","JSXMemberExpression","JSXEmptyExpression","JSXExpressionContainer","JSXElement","JSXClosingElement","JSXOpeningElement","JSXAttribute","JSXSpreadAttribute","JSXText","ExportDefaultDeclaration","ExportNamedDeclaration","ExportAllDeclaration","ExportSpecifier","ImportDeclaration","ImportSpecifier","ImportDefaultSpecifier","ImportNamespaceSpecifier","ImportExpression"]);class t{constructor(l){this._values=Array(l+1)}insert(l,o){this._values[l]=o}findLastNotAfter(l){let o=this._values;for(let u=l;u>=0;u--){let c=o[u];if(c)return c}}deleteRange(l,o){this._values.fill(void 0,l,o)}}class s{constructor(l){this.sourceCode=l,this.firstTokensByLineNumber=new Map;let o=l.tokensAndComments;for(let u=0;u=l[0]&&o.range[1]<=l[1],d=f&&this._getOffsetDescriptor(o);this._indexMap.deleteRange(l[0]+1,l[1]),this._indexMap.insert(l[0],p),f&&(this._indexMap.insert(o.range[0],d),this._indexMap.insert(o.range[1],p)),this._indexMap.insert(l[1],h)}getDesiredIndent(l){if(!this._desiredIndentCache.has(l))if(this._ignoredTokens.has(l))this._desiredIndentCache.set(l,this._tokenInfo.getTokenIndent(l));else if(this._lockedFirstTokens.has(l)){let o=this._lockedFirstTokens.get(l);this._desiredIndentCache.set(l,this.getDesiredIndent(this._tokenInfo.getFirstTokenOfLine(o))+this._indentType.repeat(o.loc.start.column-this._tokenInfo.getFirstTokenOfLine(o).loc.start.column))}else{let o=this._getOffsetDescriptor(l),u=o.from&&o.from.loc.start.line===l.loc.start.line&&!/^\s*?\n/u.test(l.value)&&!o.force?0:o.offset*this._indentSize;this._desiredIndentCache.set(l,(o.from?this.getDesiredIndent(o.from):"")+this._indentType.repeat(u))}return this._desiredIndentCache.get(l)}ignoreToken(l){this._tokenInfo.isFirstTokenOfLine(l)&&this._ignoredTokens.add(l)}getFirstDependency(l){return this._getOffsetDescriptor(l).from}}let i={oneOf:[{type:"integer",minimum:0},{enum:["first","off"]}]};return Yg={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Enforce consistent indentation",recommended:!1,url:"https://eslint.org/docs/latest/rules/indent"},fixable:"whitespace",schema:[{oneOf:[{enum:["tab"]},{type:"integer",minimum:0}]},{type:"object",properties:{SwitchCase:{type:"integer",minimum:0,default:0},VariableDeclarator:{oneOf:[i,{type:"object",properties:{var:i,let:i,const:i},additionalProperties:!1}]},outerIIFEBody:{oneOf:[{type:"integer",minimum:0},{enum:["off"]}]},MemberExpression:{oneOf:[{type:"integer",minimum:0},{enum:["off"]}]},FunctionDeclaration:{type:"object",properties:{parameters:i,body:{type:"integer",minimum:0}},additionalProperties:!1},FunctionExpression:{type:"object",properties:{parameters:i,body:{type:"integer",minimum:0}},additionalProperties:!1},StaticBlock:{type:"object",properties:{body:{type:"integer",minimum:0}},additionalProperties:!1},CallExpression:{type:"object",properties:{arguments:i},additionalProperties:!1},ArrayExpression:i,ObjectExpression:i,ImportDeclaration:i,flatTernaryExpressions:{type:"boolean",default:!1},offsetTernaryExpressions:{type:"boolean",default:!1},ignoredNodes:{type:"array",items:{type:"string",not:{pattern:":exit$"}}},ignoreComments:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{wrongIndentation:"Expected indentation of {{expected}} but found {{actual}}."}},create(a){let c="space",p=4,h={SwitchCase:0,VariableDeclarator:{var:1,let:1,const:1},outerIIFEBody:1,FunctionDeclaration:{parameters:1,body:1},FunctionExpression:{parameters:1,body:1},StaticBlock:{body:1},CallExpression:{arguments:1},MemberExpression:1,ArrayExpression:1,ObjectExpression:1,ImportDeclaration:1,flatTernaryExpressions:!1,ignoredNodes:[],ignoreComments:!1};a.options.length&&(a.options[0]==="tab"?(p=1,c="tab"):(p=a.options[0],c="space"),a.options[1]&&(Object.assign(h,a.options[1]),(typeof h.VariableDeclarator=="number"||h.VariableDeclarator==="first")&&(h.VariableDeclarator={var:h.VariableDeclarator,let:h.VariableDeclarator,const:h.VariableDeclarator})));let f=a.sourceCode,d=new s(f),m=new n(d,p,c==="space"?" ":" ",f.text.length),g=new WeakSet;function y(R,U,V){let ae=`${R} ${c}${R===1?"":"s"}`,se=`space${U===1?"":"s"}`,ve=`tab${V===1?"":"s"}`,H;return U>0?H=c==="space"?U:`${U} ${se}`:V>0?H=c==="tab"?V:`${V} ${ve}`:H="0",{expected:ae,actual:H}}function b(R,U){let V=Array.from(d.getTokenIndent(R)),ae=V.filter(ve=>ve===" ").length,se=V.filter(ve=>ve===" ").length;a.report({node:R,messageId:"wrongIndentation",data:y(U.length,ae,se),loc:{start:{line:R.loc.start.line,column:0},end:{line:R.loc.start.line,column:R.loc.start.column}},fix(ve){let H=[R.range[0]-R.loc.start.column,R.range[0]],he=U;return ve.replaceTextRange(H,he)}})}function v(R,U){let V=d.getTokenIndent(R);return V===U||V.includes(" ")&&V.includes(" ")}function S(R){if(!R.parent||R.parent.type!=="CallExpression"||R.parent.callee!==R)return!1;let U=R.parent&&R.parent.parent;for(;U.type==="UnaryExpression"&&["!","~","+","-"].includes(U.operator)||U.type==="AssignmentExpression"||U.type==="LogicalExpression"||U.type==="SequenceExpression"||U.type==="VariableDeclarator";)U=U.parent;return(U.type==="ExpressionStatement"||U.type==="VariableDeclaration")&&U.parent.type==="Program"}function C(R){let V=R.match(/\s*$/u)[0].match(r.createGlobalLinebreakMatcher());return V===null?0:V.length}function O(R,U,V,ae){function se(ve){let H=f.getTokenBefore(ve);for(;r.isOpeningParenToken(H)&&H!==U;)H=f.getTokenBefore(H);return f.getTokenAfter(H)}m.setDesiredOffsets([U.range[1],V.range[0]],U,typeof ae=="number"?ae:1),m.setDesiredOffset(V,U,0),!(ae==="first"&&R.length&&!R[0])&&R.forEach((ve,H)=>{if(ve&&(ae==="off"&&m.ignoreToken(se(ve)),H!==0))if(ae==="first"&&d.isFirstTokenOfLine(se(ve)))m.matchOffsetOf(se(R[0]),se(ve));else{let he=R[H-1],$=he&&se(he),pe=he&&f.getLastToken(he);he&&pe.loc.end.line-C(pe.value)>U.loc.end.line&&m.setDesiredOffsets([he.range[1],ve.range[1]],$,0)}})}function w(R){if(R.type!=="BlockStatement"){let U=f.getTokenBefore(R,r.isNotOpeningParenToken),V=f.getFirstToken(R),ae=f.getLastToken(R);for(;r.isOpeningParenToken(f.getTokenBefore(V))&&r.isClosingParenToken(f.getTokenAfter(ae));)V=f.getTokenBefore(V),ae=f.getTokenAfter(ae);m.setDesiredOffsets([V.range[0],ae.range[1]],U,1)}}function E(R){let U;R.arguments.length?U=f.getFirstTokenBetween(R.callee,R.arguments[0],r.isOpeningParenToken):U=f.getLastToken(R,1);let V=f.getLastToken(R);if(g.add(U),g.add(V),R.optional){let ve=f.getTokenAfter(R.callee,r.isQuestionDotToken),H=f.getTokensBetween(R.callee,ve,{filter:r.isClosingParenToken}).length,he=H?f.getTokenBefore(R.callee,{skip:H-1}):f.getFirstToken(R.callee),$=f.getTokenBefore(ve),pe=$.loc.end.line===U.loc.start.line?$:he;m.setDesiredOffset(ve,pe,1)}let ae=R.callee.type==="TaggedTemplateExpression"?f.getFirstToken(R.callee.quasi):U,se=f.getTokenBefore(ae);m.setDesiredOffset(U,se,0),O(R.arguments,U,V,h.CallExpression.arguments)}function k(R){let U=[],V=[];for(let ae=0;ae=0;ae--){let se=V[ae].left,ve=V[ae].right;if(!g.has(se)&&!g.has(ve)){let H=new Set(f.getTokensBetween(se,ve));H.forEach(he=>{H.has(m.getFirstDependency(he))||m.setDesiredOffset(he,se,1)})}m.setDesiredOffset(ve,se,0)}}function A(R){let U=new Set(f.getTokens(R,{includeComments:!0}));U.forEach(V=>{if(!U.has(m.getFirstDependency(V))){let ae=d.getFirstTokenOfLine(V);V===ae?m.ignoreToken(V):m.setDesiredOffset(V,ae,0)}})}function D(R,U){let V=U;for(;V.parent&&!V.parent.type.endsWith("Statement")&&!V.parent.type.endsWith("Declaration");)V=V.parent;return V=V.parent,!V||V.loc.start.line===R.loc.start.line}function _(R,U){let V=R.loc.end.line,ae=U.loc.start.line;if(V===ae||V===ae-1)return!1;for(let se=V+1;seae)||U,r.isClosingBracketToken);O(R.elements,U,V,h.ArrayExpression)},"ObjectExpression, ObjectPattern"(R){let U=f.getFirstToken(R),V=f.getTokenAfter(R.properties.length?R.properties.at(-1):U,r.isClosingBraceToken);O(R.properties,U,V,h.ObjectExpression)},ArrowFunctionExpression(R){let U=f.getFirstToken(R,{skip:R.async?1:0});if(r.isOpeningParenToken(U)){let V=U,ae=f.getTokenBefore(R.body,r.isClosingParenToken);g.add(V),g.add(ae),O(R.params,V,ae,h.FunctionExpression.parameters)}w(R.body)},AssignmentExpression(R){let U=f.getFirstTokenBetween(R.left,R.right,V=>V.value===R.operator);m.setDesiredOffsets([U.range[0],R.range[1]],f.getLastToken(R.left),1),m.ignoreToken(U),m.ignoreToken(f.getTokenAfter(U))},"BinaryExpression, LogicalExpression"(R){let U=f.getFirstTokenBetween(R.left,R.right,ae=>ae.value===R.operator),V=f.getTokenAfter(U);m.ignoreToken(U),m.ignoreToken(V),m.setDesiredOffset(V,U,0)},"BlockStatement, ClassBody"(R){let U;R.parent&&S(R.parent)?U=h.outerIIFEBody:R.parent&&(R.parent.type==="FunctionExpression"||R.parent.type==="ArrowFunctionExpression")?U=h.FunctionExpression.body:R.parent&&R.parent.type==="FunctionDeclaration"?U=h.FunctionDeclaration.body:U=1,r.STATEMENT_LIST_PARENTS.has(R.parent.type)||m.setDesiredOffset(f.getFirstToken(R),f.getFirstToken(R.parent),0),O(R.body,f.getFirstToken(R),f.getLastToken(R),U)},CallExpression:E,"ClassDeclaration[superClass], ClassExpression[superClass]"(R){let U=f.getFirstToken(R),V=f.getTokenBefore(R.superClass,r.isNotOpeningParenToken);m.setDesiredOffsets([V.range[0],R.body.range[0]],U,1)},ConditionalExpression(R){let U=f.getFirstToken(R);if(!h.flatTernaryExpressions||!r.isTokenOnSameLine(R.test,R.consequent)||D(U,R)){let V=f.getFirstTokenBetween(R.test,R.consequent,he=>he.type==="Punctuator"&&he.value==="?"),ae=f.getFirstTokenBetween(R.consequent,R.alternate,he=>he.type==="Punctuator"&&he.value===":"),se=f.getTokenAfter(V),ve=f.getTokenBefore(ae),H=f.getTokenAfter(ae);m.setDesiredOffset(V,U,1),m.setDesiredOffset(ae,U,1),m.setDesiredOffset(se,U,se.type==="Punctuator"&&h.offsetTernaryExpressions?2:1),ve.loc.end.line===H.loc.start.line?m.setDesiredOffset(H,se,0):m.setDesiredOffset(H,U,H.type==="Punctuator"&&h.offsetTernaryExpressions?2:1)}},"DoWhileStatement, WhileStatement, ForInStatement, ForOfStatement, WithStatement":R=>w(R.body),ExportNamedDeclaration(R){if(R.declaration===null){let U=f.getLastToken(R,r.isClosingBraceToken);O(R.specifiers,f.getFirstToken(R,{skip:1}),U,1),R.source&&m.setDesiredOffsets([U.range[1],R.range[1]],f.getFirstToken(R),1)}},ForStatement(R){let U=f.getFirstToken(R,1);R.init&&m.setDesiredOffsets(R.init.range,U,1),R.test&&m.setDesiredOffsets(R.test.range,U,1),R.update&&m.setDesiredOffsets(R.update.range,U,1),w(R.body)},"FunctionDeclaration, FunctionExpression"(R){let U=f.getTokenBefore(R.body),V=f.getTokenBefore(R.params.length?R.params[0]:U);g.add(V),g.add(U),O(R.params,V,U,h[R.type].parameters)},IfStatement(R){w(R.consequent),R.alternate&&w(R.alternate)},":matches(DoWhileStatement, ForStatement, ForInStatement, ForOfStatement, IfStatement, WhileStatement, WithStatement):exit"(R){let U;R.type==="IfStatement"?(U=[R.consequent],R.alternate&&U.push(R.alternate)):U=[R.body];for(let V of U){let ae=f.getLastToken(V);if(r.isSemicolonToken(ae)){let se=f.getTokenBefore(ae),ve=f.getTokenAfter(ae);!r.isTokenOnSameLine(se,ae)&&ve&&r.isTokenOnSameLine(ae,ve)&&m.setDesiredOffset(ae,f.getFirstToken(R),0)}}},ImportDeclaration(R){if(R.specifiers.some(se=>se.type==="ImportSpecifier")){let se=f.getFirstToken(R,r.isOpeningBraceToken),ve=f.getLastToken(R,r.isClosingBraceToken);O(R.specifiers.filter(H=>H.type==="ImportSpecifier"),se,ve,h.ImportDeclaration)}let U=f.getLastToken(R,se=>se.type==="Identifier"&&se.value==="from"),V=f.getLastToken(R,se=>se.type==="String"),ae=f.getLastToken(R,se=>se.type==="Punctuator"&&se.value===";");if(U){let se=ae&&ae.range[1]===V.range[1]?R.range[1]:V.range[1];m.setDesiredOffsets([U.range[0],se],f.getFirstToken(R),1)}},ImportExpression(R){let U=f.getFirstToken(R,1),V=f.getLastToken(R);g.add(U),g.add(V),m.setDesiredOffset(U,f.getTokenBefore(U),0),O([R.source],U,V,h.CallExpression.arguments)},"MemberExpression, JSXMemberExpression, MetaProperty"(R){let U=R.type==="MetaProperty"?R.meta:R.object,V=f.getFirstTokenBetween(U,R.property,r.isNotClosingParenToken),ae=f.getTokenAfter(V),se=f.getTokensBetween(U,R.property,{filter:r.isClosingParenToken}).length,ve=se?f.getTokenBefore(U,{skip:se-1}):f.getFirstToken(U),H=f.getTokenBefore(V),he=R.computed?V:ae;R.computed&&(m.setDesiredOffset(f.getLastToken(R),V,0),m.setDesiredOffsets(R.property.range,V,1));let $=H.loc.end.line===he.loc.start.line?H:ve;typeof h.MemberExpression=="number"?(m.setDesiredOffset(V,$,h.MemberExpression),m.setDesiredOffset(ae,R.computed?V:$,h.MemberExpression)):(m.ignoreToken(V),m.ignoreToken(ae),m.setDesiredOffset(V,$,0),m.setDesiredOffset(ae,V,0))},NewExpression(R){(R.arguments.length>0||r.isClosingParenToken(f.getLastToken(R))&&r.isOpeningParenToken(f.getLastToken(R,1)))&&E(R)},Property(R){if(!R.shorthand&&!R.method&&R.kind==="init"){let U=f.getFirstTokenBetween(R.key,R.value,r.isColonToken);m.ignoreToken(f.getTokenAfter(U))}},PropertyDefinition(R){let U=f.getFirstToken(R),V=f.getLastToken(R),ae;if(R.computed){let se=f.getTokenBefore(R.key,r.isOpeningBracketToken),ve=ae=f.getTokenAfter(R.key,r.isClosingBracketToken),H=[se.range[1],ve.range[0]];se!==U&&m.setDesiredOffset(se,U,0),m.setDesiredOffsets(H,se,1),m.setDesiredOffset(ve,se,0)}else{let se=ae=f.getFirstToken(R.key);se!==U&&m.setDesiredOffset(se,U,1)}if(R.value){let se=f.getTokenBefore(R.value,r.isEqToken),ve=f.getTokenAfter(se);m.setDesiredOffset(se,ae,1),m.setDesiredOffset(ve,se,1),r.isSemicolonToken(V)&&m.setDesiredOffset(V,se,1)}else r.isSemicolonToken(V)&&m.setDesiredOffset(V,ae,1)},StaticBlock(R){let U=f.getFirstToken(R,{skip:1}),V=f.getLastToken(R);O(R.body,U,V,h.StaticBlock.body)},SwitchStatement(R){let U=f.getTokenAfter(R.discriminant,r.isOpeningBraceToken),V=f.getLastToken(R);m.setDesiredOffsets([U.range[1],V.range[0]],U,h.SwitchCase),R.cases.length&&f.getTokensBetween(R.cases.at(-1),V,{includeComments:!0,filter:r.isCommentToken}).forEach(ae=>m.ignoreToken(ae))},SwitchCase(R){if(!(R.consequent.length===1&&R.consequent[0].type==="BlockStatement")){let U=f.getFirstToken(R),V=f.getTokenAfter(R);m.setDesiredOffsets([U.range[1],V.range[0]],U,1)}},TemplateLiteral(R){R.expressions.forEach((U,V)=>{let ae=R.quasis[V],se=R.quasis[V+1],ve=ae.loc.start.line===ae.loc.end.line?f.getFirstToken(ae):null;m.setDesiredOffsets([ae.range[1],se.range[0]],ve,1),m.setDesiredOffset(f.getFirstToken(se),ve,0)})},VariableDeclaration(R){let U=Object.hasOwn(h.VariableDeclarator,R.kind)?h.VariableDeclarator[R.kind]:1,V=f.getFirstToken(R),ae=f.getLastToken(R);if(h.VariableDeclarator[R.kind]==="first"){if(R.declarations.length>1){O(R.declarations,V,ae,"first");return}U=1}R.declarations.at(-1).loc.start.line>R.loc.start.line?m.setDesiredOffsets(R.range,V,U,!0):m.setDesiredOffsets(R.range,V,U),r.isSemicolonToken(ae)&&m.ignoreToken(ae)},VariableDeclarator(R){if(R.init){let U=f.getTokenBefore(R.init,r.isNotOpeningParenToken),V=f.getTokenAfter(U);m.ignoreToken(U),m.ignoreToken(V),m.setDesiredOffsets([V.range[0],R.range[1]],U,1),m.setDesiredOffset(U,f.getLastToken(R.id),0)}},"JSXAttribute[value]"(R){let U=f.getFirstTokenBetween(R.name,R.value,V=>V.type==="Punctuator"&&V.value==="=");m.setDesiredOffsets([U.range[0],R.value.range[1]],f.getFirstToken(R.name),1)},JSXElement(R){R.closingElement&&O(R.children,f.getFirstToken(R.openingElement),f.getFirstToken(R.closingElement),1)},JSXOpeningElement(R){let U=f.getFirstToken(R),V;R.selfClosing?(V=f.getLastToken(R,{skip:1}),m.setDesiredOffset(f.getLastToken(R),V,0)):V=f.getLastToken(R),m.setDesiredOffsets(R.name.range,f.getFirstToken(R)),O(R.attributes,U,V,1)},JSXClosingElement(R){let U=f.getFirstToken(R);m.setDesiredOffsets(R.name.range,U,1)},JSXFragment(R){let U=f.getFirstToken(R.openingFragment),V=f.getFirstToken(R.closingFragment);O(R.children,U,V,1)},JSXOpeningFragment(R){let U=f.getFirstToken(R),V=f.getLastToken(R);m.setDesiredOffsets(R.range,U,1),m.matchOffsetOf(U,V)},JSXClosingFragment(R){let U=f.getFirstToken(R),V=f.getLastToken(R,{skip:1}),ae=f.getLastToken(R),se=r.isTokenOnSameLine(V,ae)?V:ae;m.setDesiredOffsets(R.range,U,1),m.matchOffsetOf(U,se)},JSXExpressionContainer(R){let U=f.getFirstToken(R),V=f.getLastToken(R);m.setDesiredOffsets([U.range[1],V.range[0]],U,1)},JSXSpreadAttribute(R){let U=f.getFirstToken(R),V=f.getLastToken(R);m.setDesiredOffsets([U.range[1],V.range[0]],U,1)},"*"(R){let U=f.getFirstToken(R);U&&!B.has(U)&&m.setDesiredOffsets(R.range,U,0)}},F=[],j={};for(let[R,U]of Object.entries(T))j[R]=V=>F.push({listener:U,node:V});let Q=new Set;function I(R){Q.add(R),B.add(f.getFirstToken(R))}let N=h.ignoredNodes.reduce((R,U)=>Object.assign(R,{[U]:I}),{});return Object.assign(j,N,{"*:exit"(R){e.has(R.type)||I(R)},"Program:exit"(){h.ignoreComments&&f.getAllComments().forEach(U=>m.ignoreToken(U));for(let U=0;U0&&R>0?se=`${N} ${V} and ${R} ${ae}`:N>0?se=i==="space"?N:`${N} ${V}`:R>0?se=i==="tab"?R:`${R} ${ae}`:se="0",{expected:U,actual:se}}function p(I,N,R,U,V,ae){if(R&&U)return;let se=(i==="space"?" ":" ").repeat(N),ve=ae?[I.range[1]-I.loc.end.column,I.range[1]-I.loc.end.column+R+U]:[I.range[0]-I.loc.start.column,I.range[0]-I.loc.start.column+R+U];e.report({node:I,loc:V,messageId:"expected",data:c(N,R,U),fix:H=>H.replaceTextRange(ve,se)})}function h(I,N){let R=N?o.getLastToken(I):o.getFirstToken(I),U=o.getText(R,R.loc.start.column).split(""),V=U.slice(0,U.findIndex(ve=>ve!==" "&&ve!==" ")),ae=V.filter(ve=>ve===" ").length,se=V.filter(ve=>ve===" ").length;return{space:ae,tab:se,goodChar:i==="space"?ae:se,badChar:i==="space"?se:ae}}function f(I,N){let R=N===!0?o.getLastToken(I,1):o.getTokenBefore(I),U=N===!0?I.loc.end.line:I.loc.start.line,V=R?R.loc.end.line:-1;return U!==V}function d(I,N){let R=h(I,!1);if(I.type!=="ArrayExpression"&&I.type!=="ObjectExpression"&&(R.goodChar!==N||R.badChar!==0)&&f(I)&&p(I,N,R.space,R.tab),I.type==="IfStatement"&&I.alternate){let U=o.getTokenBefore(I.alternate);d(U,N),f(I.alternate)||d(I.alternate,N)}if(I.type==="TryStatement"&&I.handler){let U=o.getFirstToken(I.handler);d(U,N)}if(I.type==="TryStatement"&&I.finalizer){let U=o.getTokenBefore(I.finalizer);d(U,N)}if(I.type==="DoWhileStatement"){let U=o.getTokenAfter(I.body);d(U,N)}}function m(I,N){I.forEach(R=>d(R,N))}function g(I,N){let R=o.getLastToken(I),U=h(R,!0);(U.goodChar!==N||U.badChar!==0)&&f(I,!0)&&p(I,N,U.space,U.tab,{line:R.loc.start.line,column:R.loc.start.column},!0)}function y(I,N){let R=o.getLastToken(I,r.isClosingParenToken);if(o.getText(R,R.loc.start.column).slice(0,-1).trim())return;let V=h(R,!0);V.goodChar!==N&&p(I,N,V.space,V.tab,{line:R.loc.start.line,column:R.loc.start.column},!0)}function b(I,N){let R=h(I,!1);(R.goodChar!==N||R.badChar!==0)&&f(I)&&p(I,N,R.space,R.tab,{line:I.loc.start.line,column:I.loc.start.column})}function v(I,N,R){let U=I.parent,V=new Set(R||["Program"]);for(;U.type!==N&&!V.has(U.type)&&U.type!=="Program";)U=U.parent;return U.type===N?U:null}function S(I){return v(I,"VariableDeclarator")}function C(I,N){return N&&N.parent.loc.start.line===I.loc.start.line&&N.parent.declarations.length>1}function O(I){let N=I.parent;return N.arguments.length>=2&&N.arguments[1]===I?N.arguments[0].loc.end.line>N.arguments[0].loc.start.line:!1}function w(I){let N=I.parent,R=N.parent;if(N.type!=="CallExpression"||N.callee!==I)return!1;for(;R.type==="UnaryExpression"&&(R.operator==="!"||R.operator==="~"||R.operator==="+"||R.operator==="-")||R.type==="AssignmentExpression"||R.type==="LogicalExpression"||R.type==="SequenceExpression"||R.type==="VariableDeclarator";)R=R.parent;return(R.type==="ExpressionStatement"||R.type==="VariableDeclaration")&&R.parent&&R.parent.type==="Program"}function E(I){let N=I.parent,R;if(N.parent&&(N.parent.type==="Property"||N.parent.type==="ArrayExpression")?R=h(N,!1).goodChar:R=h(N).goodChar,N.parent.type==="CallExpression"){let ae=N.parent;N.type!=="FunctionExpression"&&N.type!=="ArrowFunctionExpression"?ae&&ae.loc.start.line0&&m(I.body,R),g(I,R-U)}function k(I){let N=o.getLastToken(I),R=I.loc.start.line,U=N.loc.end.line;return R===U}function A(I){if(k(I))return;let N=I.type==="ArrayExpression"?I.elements:I.properties;N=N.filter(ae=>ae!==null);let R,U,V=S(I);if(f(I)){let ae=I.parent;if(R=h(ae).goodChar,(!V||V.loc.start.line!==I.loc.start.line)&&(ae.type!=="VariableDeclarator"||V===V.parent.declarations[0]))if(ae.type==="VariableDeclarator"&&V.loc.start.line===ae.loc.start.line)R+=a*l.VariableDeclarator[V.parent.kind];else if(ae.type==="ObjectExpression"||ae.type==="ArrayExpression"){let se=I.parent.type==="ObjectExpression"?I.parent.properties:I.parent.elements;se[0]&&se[0].loc.start.line===ae.loc.start.line&&se[0].loc.end.line!==ae.loc.start.line||(typeof l[ae.type]=="number"?R+=l[ae.type]*a:R=se[0].loc.start.column)}else ae.type==="CallExpression"||ae.type==="NewExpression"?typeof l.CallExpression.arguments=="number"?R+=l.CallExpression.arguments*a:l.CallExpression.arguments==="first"?ae.arguments.includes(I)&&(R=ae.arguments[0].loc.start.column):R+=a:(ae.type==="LogicalExpression"||ae.type==="ArrowFunctionExpression")&&(R+=a);b(I,R)}else R=h(I).goodChar;l[I.type]==="first"?U=N.length?N[0].loc.start.column:0:U=R+a*l[I.type],C(I,V)&&(U+=a*l.VariableDeclarator[V.parent.kind]),m(N,U),!(N.length>0&&N.at(-1).loc.end.line===I.loc.end.line)&&g(I,R+(C(I,V)?l.VariableDeclarator[V.parent.kind]*a:0))}function D(I){return I.type==="BlockStatement"||I.type==="ClassBody"||I.body&&I.body.type==="BlockStatement"||I.consequent&&I.consequent.type==="BlockStatement"}function _(I){if(k(I))return;if(I.parent&&(I.parent.type==="FunctionExpression"||I.parent.type==="FunctionDeclaration"||I.parent.type==="ArrowFunctionExpression")){E(I);return}let N,R,U=["IfStatement","WhileStatement","ForStatement","ForInStatement","ForOfStatement","DoWhileStatement","ClassDeclaration","TryStatement"];I.parent&&U.includes(I.parent.type)&&D(I)?N=h(I.parent).goodChar:I.parent&&I.parent.type==="CatchClause"?N=h(I.parent.parent).goodChar:N=h(I).goodChar,I.type==="IfStatement"&&I.consequent.type!=="BlockStatement"?R=[I.consequent]:Array.isArray(I.body)?R=I.body:R=[I.body],R.length>0&&m(R,N+a),I.type==="BlockStatement"&&g(I,N)}function B(I){return I.declarations.reduce((N,R)=>{let U=N.at(-1);return(R.loc.start.line!==I.loc.start.line&&!U||U&&U.loc.start.line!==R.loc.start.line)&&N.push(R),N},[])}function T(I){let N=B(I),R=h(I).goodChar,U=N.at(-1),V=R+a*l.VariableDeclarator[I.kind];if(m(N,V),o.getLastToken(I).loc.end.line<=U.loc.end.line)return;let ae=o.getTokenBefore(U);ae.value===","?g(I,h(ae).goodChar):g(I,V-a)}function F(I){I.body.type!=="BlockStatement"&&_(I)}function j(I,N){let R=I.type==="SwitchStatement"?I:I.parent,U=typeof N>"u"?h(R).goodChar:N,V;return u[R.loc.start.line]?u[R.loc.start.line]:(R.cases.length>0&&l.SwitchCase===0?V=U:V=U+a*l.SwitchCase,u[R.loc.start.line]=V,V)}function Q(I){let N=/^return\s*?\(\s*?\);*?/u,R=o.getText(I).replace(o.getText(I.argument),"");return N.test(R)}return{Program(I){I.body.length>0&&m(I.body,h(I).goodChar)},ClassBody:_,BlockStatement:_,WhileStatement:F,ForStatement:F,ForInStatement:F,ForOfStatement:F,DoWhileStatement:F,IfStatement(I){I.consequent.type!=="BlockStatement"&&I.consequent.loc.start.line>I.loc.start.line&&_(I)},VariableDeclaration(I){I.declarations.at(-1).loc.start.line>I.declarations[0].loc.start.line&&T(I)},ObjectExpression(I){A(I)},ArrayExpression(I){A(I)},MemberExpression(I){if(typeof l.MemberExpression>"u"||k(I)||v(I,"VariableDeclarator",["FunctionExpression","ArrowFunctionExpression"])||v(I,"AssignmentExpression",["FunctionExpression"]))return;let N=h(I).goodChar+a*l.MemberExpression,R=[I.property],U=o.getTokenBefore(I.property);U.type==="Punctuator"&&U.value==="."&&R.push(U),m(R,N)},SwitchStatement(I){let N=h(I).goodChar,R=j(I,N);m(I.cases,R),g(I,N)},SwitchCase(I){if(k(I))return;let N=j(I);m(I.consequent,N+a)},FunctionDeclaration(I){k(I)||(l.FunctionDeclaration.parameters==="first"&&I.params.length?m(I.params.slice(1),I.params[0].loc.start.column):l.FunctionDeclaration.parameters!==null&&m(I.params,h(I).goodChar+a*l.FunctionDeclaration.parameters))},FunctionExpression(I){k(I)||(l.FunctionExpression.parameters==="first"&&I.params.length?m(I.params.slice(1),I.params[0].loc.start.column):l.FunctionExpression.parameters!==null&&m(I.params,h(I).goodChar+a*l.FunctionExpression.parameters))},ReturnStatement(I){if(k(I))return;let N=h(I).goodChar;Q(I)?y(I,N):d(I,N)},CallExpression(I){k(I)||(l.CallExpression.arguments==="first"&&I.arguments.length?m(I.arguments.slice(1),I.arguments[0].loc.start.column):l.CallExpression.arguments!==null&&m(I.arguments,h(I).goodChar+a*l.CallExpression.arguments))}}}},Hg}var Kg,QD;function sV(){if(QD)return Kg;QD=1;function r(t){return t.type==="ForInStatement"||t.type==="ForOfStatement"||t.type==="ForStatement"}function e(t){let s=t.parent,n=s.parent;return r(n)?n.type==="ForStatement"?n.init===s:n.left===s:!!t.init}return Kg={meta:{type:"suggestion",docs:{description:"Require or disallow initialization in variable declarations",recommended:!1,url:"https://eslint.org/docs/latest/rules/init-declarations"},schema:{anyOf:[{type:"array",items:[{enum:["always"]}],minItems:0,maxItems:1},{type:"array",items:[{enum:["never"]},{type:"object",properties:{ignoreForLoopInit:{type:"boolean"}},additionalProperties:!1}],minItems:0,maxItems:2}]},messages:{initialized:"Variable '{{idName}}' should be initialized on declaration.",notInitialized:"Variable '{{idName}}' should not be initialized on declaration."}},create(t){let s="always",n="never",i=t.options[0]||s,a=t.options[1]||{};return{"VariableDeclaration:exit"(l){let o=l.kind,u=l.declarations;for(let c=0;c1)return!1;return!0}return!1}function S(B){let T=B.key;return B.computed?d.getText().slice(T.range[0],T.range[1]):r.getStaticPropertyName(B)}function C(B,T,F,j,Q){let I=F.length-j;if((I&&Q==="strict"||I<0&&Q==="minimum"||I>0&&!j&&Q==="minimum")&&!(j&&t(F))){let N=g(B.key),R=d.getTokenBefore(N,{includeComments:!0}),U=d.getTokenAfter(N,{includeComments:!0}),V=T==="key",ae=I>0,se=Math.abs(I),ve=Array(se+1).join(" "),H=V?R.loc.end:N.loc.start,he=V?N.loc.start:U.loc.start,$=V?R.loc:U.loc,pe=ae?{start:H,end:he}:$,K;if(ae){let xe;V?xe=[R.range[1],R.range[1]+se]:xe=[U.range[0]-se,U.range[0]],K=function(Le){return Le.removeRange(xe)}}else V?K=function(xe){return xe.insertTextAfter(R,ve)}:K=function(xe){return xe.insertTextBefore(U,ve)};let le;ae?le=T==="key"?"extraKey":"extraValue":le=T==="key"?"missingKey":"missingValue",o.report({node:B[T],loc:pe,messageId:le,data:{computed:B.computed?"computed ":"",key:S(B)},fix:K})}}function O(B){let T=d.getFirstToken(B),F=y(B.key);return e(d.getText().slice(T.range[0],F.range[1]))}function w(B){let T=/(\s*):(\s*)/u.exec(d.getText().slice(B.key.range[1],B.value.range[0]));return T?{beforeColon:T[1],afterColon:T[2]}:null}function E(B){return B.properties.length===1?[B.properties]:B.properties.reduce((T,F)=>{let j=s(T),Q=s(j);return!Q||v(Q,F)?j.push(F):T.push([F]),T},[[]])}function k(B){let T=B.length,F=B.map(O),j=f.on,Q=Math.max(...F),I,N,R;f&&T>1?(I=f.beforeColon,N=f.afterColon,R=f.mode):(I=p.beforeColon,N=p.afterColon,R=f.mode),Q+=j==="colon"?I:N;for(let U=0;U{let F=T.filter(m);F.length>0&&i(F)?D(F,p):k(F)})}return f?{ObjectExpression(B){n(B)?D(B.properties.filter(m),h):_(B)}}:{Property(B){A(B,n(B.parent)?h:p)}}}},e0}var t0,WD;function oV(){if(WD)return t0;WD=1;let r=Pe(),e=NO(),t=/^[)\]}>]$/u,s=/^(?:[([{<~!]|\+\+?|--?)$/u,n=/^[)\]}>*]$/u,i=/^[{*]$/u,a=/\$\{$/u,l=/^\}/u,o=/^(?:JSXElement|RegularExpression|String|Template|PrivateIdentifier)$/u,u=e.concat(["as","async","await","from","get","let","of","set","yield"]);(function(){u.sort();for(let h=1;h(h[f]={type:"object",properties:{before:{type:"boolean"},after:{type:"boolean"}},additionalProperties:!1},h),{}),additionalProperties:!1}},additionalProperties:!1}],messages:{expectedBefore:'Expected space(s) before "{{value}}".',expectedAfter:'Expected space(s) after "{{value}}".',unexpectedBefore:'Unexpected space(s) before "{{value}}".',unexpectedAfter:'Unexpected space(s) after "{{value}}".'}},create(h){let f=h.sourceCode,d=new WeakSet;function m(se,ve){let H=f.getTokenBefore(se);H&&(o.test(H.type)||ve.test(H.value))&&!c(H)&&!d.has(H)&&r.isTokenOnSameLine(H,se)&&!f.isSpaceBetweenTokens(H,se)&&h.report({loc:se.loc,messageId:"expectedBefore",data:se,fix(he){return he.insertTextBefore(se," ")}})}function g(se,ve){let H=f.getTokenBefore(se);H&&(o.test(H.type)||ve.test(H.value))&&!c(H)&&!d.has(H)&&r.isTokenOnSameLine(H,se)&&f.isSpaceBetweenTokens(H,se)&&h.report({loc:{start:H.loc.end,end:se.loc.start},messageId:"unexpectedBefore",data:se,fix(he){return he.removeRange([H.range[1],se.range[0]])}})}function y(se,ve){let H=f.getTokenAfter(se);H&&(o.test(H.type)||ve.test(H.value))&&!p(H)&&!d.has(H)&&r.isTokenOnSameLine(se,H)&&!f.isSpaceBetweenTokens(se,H)&&h.report({loc:se.loc,messageId:"expectedAfter",data:se,fix(he){return he.insertTextAfter(se," ")}})}function b(se,ve){let H=f.getTokenAfter(se);H&&(o.test(H.type)||ve.test(H.value))&&!p(H)&&!d.has(H)&&r.isTokenOnSameLine(se,H)&&f.isSpaceBetweenTokens(se,H)&&h.report({loc:{start:se.loc.end,end:H.loc.start},messageId:"unexpectedAfter",data:se,fix(he){return he.removeRange([se.range[1],H.range[0]])}})}function v(se={}){let ve=se.before!==!1,H=se.after!==!1,he={before:ve?m:g,after:H?y:b},$=se&&se.overrides||{},pe=Object.create(null);for(let K=0;K{switch(H.value){case"get":case"set":case"async":return!0;default:return!1}});if(!ve)throw new Error("Failed to find token get, set, or async beside method name");w(ve)}}function ae(se){C(f.getFirstToken(se))}return{DebuggerStatement:E,WithStatement:E,BreakStatement:E,ContinueStatement:E,ReturnStatement:E,ThrowStatement:E,TryStatement:T,IfStatement:B,SwitchStatement:E,SwitchCase:E,DoWhileStatement:F,ForInStatement:j,ForOfStatement:Q,ForStatement:E,WhileStatement:E,ClassDeclaration:_,ExportNamedDeclaration:I,ExportDefaultDeclaration:I,ExportAllDeclaration:I,FunctionDeclaration:D,ImportDeclaration:I,VariableDeclaration:E,ArrowFunctionExpression:D,AwaitExpression:ae,ClassExpression:_,FunctionExpression:D,NewExpression:k,Super:k,ThisExpression:k,UnaryExpression:k,YieldExpression:k,ImportSpecifier:N,ExportSpecifier:R,ImportNamespaceSpecifier:U,MethodDefinition:V,PropertyDefinition:V,StaticBlock:E,Property:V,"BinaryExpression[operator='>']"(se){let ve=f.getTokenBefore(se.right,r.isNotOpeningParenToken);d.add(ve)}}}},t0}var r0,ZD;function lV(){if(ZD)return r0;ZD=1;let r=Pe();return r0={meta:{type:"layout",docs:{description:"Enforce position of line comments",recommended:!1,url:"https://eslint.org/docs/latest/rules/line-comment-position"},schema:[{oneOf:[{enum:["above","beside"]},{type:"object",properties:{position:{enum:["above","beside"]},ignorePattern:{type:"string"},applyDefaultPatterns:{type:"boolean"},applyDefaultIgnorePatterns:{type:"boolean"}},additionalProperties:!1}]}],messages:{above:"Expected comment to be above code.",beside:"Expected comment to be beside code."}},create(e){let t=e.options[0],s,n,i=!0;!t||typeof t=="string"?s=!t||t==="above":(s=!t.position||t.position==="above",n=t.ignorePattern,Object.hasOwn(t,"applyDefaultIgnorePatterns")?i=t.applyDefaultIgnorePatterns:i=t.applyDefaultPatterns!==!1);let a=r.COMMENTS_IGNORE_PATTERN,l=/^\s*falls?\s?through/u,o=new RegExp(n,"u"),u=e.sourceCode;return{Program(){u.getAllComments().filter(p=>p.type==="Line").forEach(p=>{if(i&&(a.test(p.value)||l.test(p.value))||n&&o.test(p.value))return;let h=u.getTokenBefore(p,{includeComments:!0}),f=h&&h.loc.end.line===p.loc.start.line;s?f&&e.report({node:p,messageId:"above"}):f||e.report({node:p,messageId:"beside"})})}}}},r0}var n0,zD;function uV(){if(zD)return n0;zD=1;let r=Pe();return n0={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Enforce consistent linebreak style",recommended:!1,url:"https://eslint.org/docs/latest/rules/linebreak-style"},fixable:"whitespace",schema:[{enum:["unix","windows"]}],messages:{expectedLF:"Expected linebreaks to be 'LF' but found 'CRLF'.",expectedCRLF:"Expected linebreaks to be 'CRLF' but found 'LF'."}},create(e){let t=e.sourceCode;function s(n,i){return function(a){return a.replaceTextRange(n,i)}}return{Program:function(i){let a=e.options[0]||"unix",l=a==="unix",o=l?` +`)})}return{BlockStatement(o){r.STATEMENT_LIST_PARENTS.has(o.parent.type)||a(n.getFirstToken(o),n.getLastToken(o))},StaticBlock(o){a(n.getFirstToken(o,{skip:1}),n.getLastToken(o))},ClassBody(o){a(n.getFirstToken(o),n.getLastToken(o))},SwitchStatement(o){let u=n.getLastToken(o),c=n.getTokenBefore(o.cases.length?o.cases[0]:u);a(c,u)},IfStatement(o){o.consequent.type==="BlockStatement"&&o.alternate&&l(n.getLastToken(o.consequent))},TryStatement(o){l(n.getLastToken(o.block)),o.handler&&o.finalizer&&l(n.getLastToken(o.handler.body))}}}},lg}var ug,KT;function bV(){return KT||(KT=1,ug={meta:{deprecated:!0,replacedBy:[],type:"suggestion",docs:{description:"Require `return` statements after callbacks",recommended:!1,url:"https://eslint.org/docs/latest/rules/callback-return"},schema:[{type:"array",items:{type:"string"}}],messages:{missingReturn:"Expected return with your callback function."}},create(r){let e=r.options[0]||["callback","cb","next"],t=r.sourceCode;function s(l,o){return l.parent?o.includes(l.parent.type)?l.parent:s(l.parent,o):null}function n(l){if(l.type==="Identifier")return!0;if(l.type==="MemberExpression"){if(l.object.type==="Identifier")return!0;if(l.object.type==="MemberExpression")return n(l.object)}return!1}function i(l){return n(l.callee)&&e.includes(t.getText(l.callee))}function a(l,o){return!o||o.type!=="ExpressionStatement"?!1:o.expression===l||(o.expression.type==="BinaryExpression"||o.expression.type==="LogicalExpression")&&o.expression.right===l}return{CallExpression(l){if(!i(l))return;let o=s(l,["BlockStatement","ReturnStatement","ArrowFunctionExpression"])||{};if(o.type!=="ReturnStatement"&&o.type!=="ArrowFunctionExpression"){if(o.type==="BlockStatement"){let u=o.body.at(-1);if(a(l,u)){let c=o.parent.type;if(c==="FunctionExpression"||c==="FunctionDeclaration"||c==="ArrowFunctionExpression")return}if(u.type==="ReturnStatement"&&a(l,o.body.at(-2)))return}s(l,["FunctionDeclaration","FunctionExpression","ArrowFunctionExpression"])&&r.report({node:l,messageId:"missingReturn"})}}}}}),ug}var cg,JT;function vV(){if(JT)return cg;JT=1;let r=Pe();return cg={meta:{type:"suggestion",docs:{description:"Enforce camelcase naming convention",recommended:!1,url:"https://eslint.org/docs/latest/rules/camelcase"},schema:[{type:"object",properties:{ignoreDestructuring:{type:"boolean",default:!1},ignoreImports:{type:"boolean",default:!1},ignoreGlobals:{type:"boolean",default:!1},properties:{enum:["always","never"]},allow:{type:"array",items:{type:"string"},minItems:0,uniqueItems:!0}},additionalProperties:!1}],messages:{notCamelCase:"Identifier '{{name}}' is not in camel case.",notCamelCasePrivate:"#{{name}} is not in camel case."}},create(e){let t=e.options[0]||{},s=t.properties==="never"?"never":"always",n=t.ignoreDestructuring,i=t.ignoreImports,a=t.ignoreGlobals,l=t.allow||[],o=e.sourceCode,u=new Set;function c(y){let v=y.replace(/^_+|_+$/gu,"");return v.includes("_")&&v!==v.toUpperCase()}function p(y){return l.some(v=>y===v||y.match(new RegExp(v,"u")))}function h(y){return!c(y)||p(y)}function f(y){let v=y.parent;switch(v.type){case"AssignmentExpression":case"AssignmentPattern":return v.left===y;case"Property":return v.parent.type==="ObjectPattern"&&v.value===y;case"ArrayPattern":case"RestElement":return!0;default:return!1}}function d(y){let v=y.name,x=y.parent.type==="AssignmentPattern"?y.parent:y,S=x.parent;switch(S.type){case"Property":return(S.parent.type==="ObjectPattern"||S.parent.type==="ObjectExpression")&&S.value===x&&!S.computed&&S.key.type==="Identifier"&&S.key.name===v;case"ImportSpecifier":return S.local===y&&r.getModuleExportName(S.imported)===v;default:return!1}}function m(y){u.has(y.range[0])||(u.add(y.range[0]),e.report({node:y,messageId:y.type==="PrivateIdentifier"?"notCamelCasePrivate":"notCamelCase",data:{name:y.name}}))}function g(y){y.parent.type==="CallExpression"||y.parent.type==="NewExpression"||y.parent.type==="AssignmentPattern"&&y.parent.right===y||n&&d(y)||m(y)}return{Program(y){let v=o.getScope(y);if(!a){for(let x of v.variables)if(!(x.identifiers.length>0||h(x.name)))for(let S of x.references)g(S.identifier)}for(let x of v.through){let S=x.identifier;h(S.name)||g(S)}},[["VariableDeclaration","FunctionDeclaration","FunctionExpression","ArrowFunctionExpression","ClassDeclaration","ClassExpression","CatchClause"]](y){for(let v of o.getDeclaredVariables(y)){if(h(v.name))continue;let x=v.identifiers[0];n&&d(x)||m(x);for(let S of v.references)S.init||g(S.identifier)}},[["ObjectExpression > Property[computed!=true] > Identifier.key","MethodDefinition[computed!=true] > Identifier.key","PropertyDefinition[computed!=true] > Identifier.key","MethodDefinition > PrivateIdentifier.key","PropertyDefinition > PrivateIdentifier.key"]](y){s==="never"||h(y.name)||m(y)},"MemberExpression[computed!=true] > Identifier.property"(y){s==="never"||!f(y.parent)||h(y.name)||m(y)},ImportDeclaration(y){for(let v of o.getDeclaredVariables(y)){if(h(v.name))continue;let x=v.identifiers[0];i&&d(x)||m(x);for(let S of v.references)g(S.identifier)}},[["ExportAllDeclaration > Identifier.exported","ExportSpecifier > Identifier.exported"]](y){h(y.name)||m(y)},[["LabeledStatement > Identifier.label","BreakStatement > Identifier.label","ContinueStatement > Identifier.label"]](y){h(y.name)||m(y)}}}},cg}var fg,eD;function xV(){if(eD)return fg;eD=1;let e=Pe().COMMENTS_IGNORE_PATTERN,t=/\s/gu,s=/^\s*[^:/?#\s]+:\/\/[^?#]/u,n=/\p{L}/u,i={type:"object",properties:{ignorePattern:{type:"string"},ignoreInlineComments:{type:"boolean"},ignoreConsecutiveComments:{type:"boolean"}},additionalProperties:!1},a={ignorePattern:"",ignoreInlineComments:!1,ignoreConsecutiveComments:!1};function l(c,p){return Object.assign({},a,c[p]||c)}function o(c={}){return{Line:l(c,"line"),Block:l(c,"block")}}function u(c){Object.keys(c).forEach(p=>{let h=c[p].ignorePattern;if(h){let f=RegExp(`^\\s*(?:${h})`,"u");c[p].ignorePatternRegExp=f}})}return fg={meta:{type:"suggestion",docs:{description:"Enforce or disallow capitalization of the first letter of a comment",recommended:!1,url:"https://eslint.org/docs/latest/rules/capitalized-comments"},fixable:"code",schema:[{enum:["always","never"]},{oneOf:[i,{type:"object",properties:{line:i,block:i},additionalProperties:!1}]}],messages:{unexpectedLowercaseComment:"Comments should not begin with a lowercase character.",unexpectedUppercaseComment:"Comments should not begin with an uppercase character."}},create(c){let p=c.options[0]||"always",h=o(c.options[1]),f=c.sourceCode;u(h);function d(v){let x=f.getTokenBefore(v,{includeComments:!0}),S=f.getTokenAfter(v,{includeComments:!0});return!!(x&&S&&v.loc.start.line===x.loc.end.line&&v.loc.end.line===S.loc.start.line)}function m(v){let x=f.getTokenBefore(v,{includeComments:!0});return!!(x&&["Block","Line"].includes(x.type))}function g(v,x){if(e.test(v.value))return!0;let S=v.value.replace(/\*/gu,"");if(x.ignorePatternRegExp&&x.ignorePatternRegExp.test(S)||x.ignoreInlineComments&&d(v)||x.ignoreConsecutiveComments&&m(v)||s.test(S))return!0;let w=S.replace(t,"");if(w.length===0)return!0;let[O]=w;if(!n.test(O))return!0;let C=O!==O.toLocaleLowerCase(),E=O!==O.toLocaleUpperCase();return!(p==="always"&&E||p==="never"&&C)}function y(v){let x=h[v.type];if(!g(v,x)){let w=p==="always"?"unexpectedLowercaseComment":"unexpectedUppercaseComment";c.report({node:null,loc:v.loc,messageId:w,fix(O){let C=v.value.match(n),E=C[0],k=v.range[0]+C.index+2;return O.replaceTextRange([k,k+E.length],p==="always"?E.toLocaleUpperCase():E.toLocaleLowerCase())}})}}return{Program(){f.getAllComments().filter(x=>x.type!=="Shebang").forEach(y)}}}},fg}var pg,tD;function OV(){if(tD)return pg;tD=1;let r=Pe();return pg={meta:{type:"suggestion",docs:{description:"Enforce that class methods utilize `this`",recommended:!1,url:"https://eslint.org/docs/latest/rules/class-methods-use-this"},schema:[{type:"object",properties:{exceptMethods:{type:"array",items:{type:"string"}},enforceForClassFields:{type:"boolean",default:!0}},additionalProperties:!1}],messages:{missingThis:"Expected 'this' to be used by class {{name}}."}},create(e){let t=Object.assign({},e.options[0]),s=t.enforceForClassFields!==!1,n=new Set(t.exceptMethods||[]),i=[];function a(){i.push(!1)}function l(){return i.pop()}function o(){a()}function u(f){switch(f.type){case"MethodDefinition":return!f.static&&f.kind!=="constructor";case"PropertyDefinition":return!f.static&&s;default:return!1}}function c(f){if(u(f)){if(f.computed)return!0;let d=f.key.type==="PrivateIdentifier"?"#":"",m=f.key.type==="Literal"?r.getStaticStringValue(f.key):f.key.name||"";return!n.has(d+m)}return!1}function p(f){let d=l();c(f.parent)&&!d&&e.report({node:f,loc:r.getFunctionHeadLoc(f,e.sourceCode),messageId:"missingThis",data:{name:r.getFunctionNameWithKind(f)}})}function h(){i.length&&(i[i.length-1]=!0)}return{FunctionDeclaration:o,"FunctionDeclaration:exit":p,FunctionExpression:o,"FunctionExpression:exit":p,"PropertyDefinition > *.key:exit":a,"PropertyDefinition:exit":l,StaticBlock:a,"StaticBlock:exit":l,ThisExpression:h,Super:h,...s&&{"PropertyDefinition > ArrowFunctionExpression.value":o,"PropertyDefinition > ArrowFunctionExpression.value:exit":p}}}},pg}var hg,rD;function SV(){if(rD)return hg;rD=1;let r=Pe(),e=Object.freeze({arrays:"never",objects:"never",imports:"never",exports:"never",functions:"never"});function t(n){return!(n.type==="RestElement"||n.type==="RestProperty"||n.type==="ExperimentalRestProperty")}function s(n,i){return typeof n=="string"?{arrays:n,objects:n,imports:n,exports:n,functions:i<2017?"ignore":n}:typeof n=="object"&&n!==null?{arrays:n.arrays||e.arrays,objects:n.objects||e.objects,imports:n.imports||e.imports,exports:n.exports||e.exports,functions:n.functions||e.functions}:e}return hg={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Require or disallow trailing commas",recommended:!1,url:"https://eslint.org/docs/latest/rules/comma-dangle"},fixable:"code",schema:{definitions:{value:{enum:["always-multiline","always","never","only-multiline"]},valueWithIgnore:{enum:["always-multiline","always","ignore","never","only-multiline"]}},type:"array",items:[{oneOf:[{$ref:"#/definitions/value"},{type:"object",properties:{arrays:{$ref:"#/definitions/valueWithIgnore"},objects:{$ref:"#/definitions/valueWithIgnore"},imports:{$ref:"#/definitions/valueWithIgnore"},exports:{$ref:"#/definitions/valueWithIgnore"},functions:{$ref:"#/definitions/valueWithIgnore"}},additionalProperties:!1}]}],additionalItems:!1},messages:{unexpected:"Unexpected trailing comma.",missing:"Missing trailing comma."}},create(n){let i=s(n.options[0],n.languageOptions.ecmaVersion),a=n.sourceCode;function l(m){function g(y){return y.at(-1)}switch(m.type){case"ObjectExpression":case"ObjectPattern":return g(m.properties);case"ArrayExpression":case"ArrayPattern":return g(m.elements);case"ImportDeclaration":case"ExportNamedDeclaration":return g(m.specifiers);case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":return g(m.params);case"CallExpression":case"NewExpression":return g(m.arguments);default:return null}}function o(m,g){switch(m.type){case"ObjectExpression":case"ArrayExpression":case"CallExpression":case"NewExpression":return a.getLastToken(m,1);default:{let y=a.getTokenAfter(g);return r.isCommaToken(y)?y:a.getLastToken(g)}}}function u(m){let g=l(m);if(!g)return!1;let y=o(m,g);return a.getTokenAfter(y).loc.end.line!==y.loc.end.line}function c(m){let g=l(m);if(!g||m.type==="ImportDeclaration"&&g.type!=="ImportSpecifier")return;let y=o(m,g);r.isCommaToken(y)&&n.report({node:g,loc:y.loc,messageId:"unexpected",*fix(v){yield v.remove(y),yield v.insertTextBefore(a.getTokenBefore(y),""),yield v.insertTextAfter(a.getTokenAfter(y),"")}})}function p(m){let g=l(m);if(!g||m.type==="ImportDeclaration"&&g.type!=="ImportSpecifier")return;if(!t(g)){c(m);return}let y=o(m,g);y.value!==","&&n.report({node:g,loc:{start:y.loc.end,end:r.getNextLocation(a,y.loc.end)},messageId:"missing",*fix(v){yield v.insertTextAfter(y,","),yield v.insertTextBefore(y,""),yield v.insertTextAfter(a.getTokenAfter(y),"")}})}function h(m){u(m)?p(m):c(m)}function f(m){u(m)||c(m)}let d={always:p,"always-multiline":h,"only-multiline":f,never:c,ignore(){}};return{ObjectExpression:d[i.objects],ObjectPattern:d[i.objects],ArrayExpression:d[i.arrays],ArrayPattern:d[i.arrays],ImportDeclaration:d[i.imports],ExportNamedDeclaration:d[i.exports],FunctionDeclaration:d[i.functions],FunctionExpression:d[i.functions],ArrowFunctionExpression:d[i.functions],CallExpression:d[i.functions],NewExpression:d[i.functions]}}},hg}var dg,nD;function EV(){if(nD)return dg;nD=1;let r=Pe();return dg={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Enforce consistent spacing before and after commas",recommended:!1,url:"https://eslint.org/docs/latest/rules/comma-spacing"},fixable:"whitespace",schema:[{type:"object",properties:{before:{type:"boolean",default:!1},after:{type:"boolean",default:!0}},additionalProperties:!1}],messages:{missing:"A space is required {{loc}} ','.",unexpected:"There should be no space {{loc}} ','."}},create(e){let t=e.sourceCode,s=t.tokensAndComments,n={before:e.options[0]?e.options[0].before:!1,after:e.options[0]?e.options[0].after:!0},i=[];function a(o,u,c){e.report({node:o,fix(p){if(n[u])return u==="before"?p.insertTextBefore(o," "):p.insertTextAfter(o," ");let h,f,d="";return u==="before"?(h=c.range[1],f=o.range[0]):(h=o.range[1],f=c.range[0]),p.replaceTextRange([h,f],d)},messageId:n[u]?"missing":"unexpected",data:{loc:u}})}function l(o){let u=t.getFirstToken(o);o.elements.forEach(c=>{let p;c===null?(p=t.getTokenAfter(u),r.isCommaToken(p)&&i.push(p)):p=t.getTokenAfter(c),u=p})}return{"Program:exit"(){s.forEach((o,u)=>{if(!r.isCommaToken(o))return;let c=s[u-1],p=s[u+1];c&&!r.isCommaToken(c)&&!i.includes(o)&&r.isTokenOnSameLine(c,o)&&n.before!==t.isSpaceBetweenTokens(c,o)&&a(o,"before",c),p&&!r.isCommaToken(p)&&!r.isClosingParenToken(p)&&!r.isClosingBracketToken(p)&&!r.isClosingBraceToken(p)&&!(!n.after&&p.type==="Line")&&r.isTokenOnSameLine(o,p)&&n.after!==t.isSpaceBetweenTokens(o,p)&&a(o,"after",p)})},ArrayExpression:l,ArrayPattern:l}}},dg}var mg,sD;function wV(){if(sD)return mg;sD=1;let r=Pe();return mg={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Enforce consistent comma style",recommended:!1,url:"https://eslint.org/docs/latest/rules/comma-style"},fixable:"code",schema:[{enum:["first","last"]},{type:"object",properties:{exceptions:{type:"object",additionalProperties:{type:"boolean"}}},additionalProperties:!1}],messages:{unexpectedLineBeforeAndAfterComma:"Bad line breaking before and after ','.",expectedCommaFirst:"',' should be placed first.",expectedCommaLast:"',' should be placed last."}},create(e){let t=e.options[0]||"last",s=e.sourceCode,n={ArrayPattern:!0,ArrowFunctionExpression:!0,CallExpression:!0,FunctionDeclaration:!0,FunctionExpression:!0,ImportDeclaration:!0,ObjectPattern:!0,NewExpression:!0};if(e.options.length===2&&Object.hasOwn(e.options[1],"exceptions")){let c=Object.keys(e.options[1].exceptions);for(let p=0;p1||f){let d=s.getFirstToken(c);if(h.forEach(m=>{let g=m?s.getTokenBefore(m):d,y=m?s.getFirstToken(m):s.getTokenAfter(g),v=m||y;if(r.isCommaToken(g)&&l(d,g,y,v),m){let x=s.getTokenAfter(m,r.isNotClosingParenToken);d=x?s.getTokenBefore(x):s.ast.tokens.at(-1)}else d=y}),f){let m=s.getLastToken(c),g=s.getTokenBefore(m);r.isCommaToken(g)&&l(s.getTokenBefore(g),g,m,m)}}}let u={};return n.VariableDeclaration||(u.VariableDeclaration=function(c){o(c,"declarations")}),n.ObjectExpression||(u.ObjectExpression=function(c){o(c,"properties")}),n.ObjectPattern||(u.ObjectPattern=function(c){o(c,"properties")}),n.ArrayExpression||(u.ArrayExpression=function(c){o(c,"elements")}),n.ArrayPattern||(u.ArrayPattern=function(c){o(c,"elements")}),n.FunctionDeclaration||(u.FunctionDeclaration=function(c){o(c,"params")}),n.FunctionExpression||(u.FunctionExpression=function(c){o(c,"params")}),n.ArrowFunctionExpression||(u.ArrowFunctionExpression=function(c){o(c,"params")}),n.CallExpression||(u.CallExpression=function(c){o(c,"arguments")}),n.ImportDeclaration||(u.ImportDeclaration=function(c){o(c,"specifiers")}),n.NewExpression||(u.NewExpression=function(c){o(c,"arguments")}),u}},mg}var gg,iD;function xi(){if(iD)return gg;iD=1;let r=/^[\u0000-\u007f]*$/u,e;function t(n){return n.length<=1?n.toUpperCase():n[0].toUpperCase()+n.slice(1)}function s(n){if(r.test(n))return n.length;e??=new Intl.Segmenter("en-US");let i=0;for(let a of e.segment(n))i++;return i}return gg={upperCaseFirst:t,getGraphemeCount:s},gg}var yg,aD;function CV(){if(aD)return yg;aD=1;let r=Pe(),{upperCaseFirst:e}=xi();return yg={meta:{type:"suggestion",docs:{description:"Enforce a maximum cyclomatic complexity allowed in a program",recommended:!1,url:"https://eslint.org/docs/latest/rules/complexity"},schema:[{oneOf:[{type:"integer",minimum:0},{type:"object",properties:{maximum:{type:"integer",minimum:0},max:{type:"integer",minimum:0}},additionalProperties:!1}]}],messages:{complex:"{{name}} has a complexity of {{complexity}}. Maximum allowed is {{max}}."}},create(t){let s=t.options[0],n=20;typeof s=="object"&&(Object.hasOwn(s,"maximum")||Object.hasOwn(s,"max"))?n=s.maximum||s.max:typeof s=="number"&&(n=s);let i=[];function a(){i[i.length-1]++}return{onCodePathStart(){i.push(1)},CatchClause:a,ConditionalExpression:a,LogicalExpression:a,ForStatement:a,ForInStatement:a,ForOfStatement:a,IfStatement:a,WhileStatement:a,DoWhileStatement:a,AssignmentPattern:a,"SwitchCase[test]":a,AssignmentExpression(l){r.isLogicalAssignmentOperator(l.operator)&&a()},MemberExpression(l){l.optional===!0&&a()},CallExpression(l){l.optional===!0&&a()},onCodePathEnd(l,o){let u=i.pop();if(!(l.origin!=="function"&&l.origin!=="class-field-initializer"&&l.origin!=="class-static-block")&&u>n){let c;l.origin==="class-field-initializer"?c="class field initializer":l.origin==="class-static-block"?c="class static block":c=r.getFunctionNameWithKind(o),t.report({node:o,messageId:"complex",data:{name:e(c),complexity:u,max:n}})}}}}},yg}var bg,oD;function kV(){if(oD)return bg;oD=1;let r=Pe();return bg={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Enforce consistent spacing inside computed property brackets",recommended:!1,url:"https://eslint.org/docs/latest/rules/computed-property-spacing"},fixable:"whitespace",schema:[{enum:["always","never"]},{type:"object",properties:{enforceForClassMembers:{type:"boolean",default:!0}},additionalProperties:!1}],messages:{unexpectedSpaceBefore:"There should be no space before '{{tokenValue}}'.",unexpectedSpaceAfter:"There should be no space after '{{tokenValue}}'.",missingSpaceBefore:"A space is required before '{{tokenValue}}'.",missingSpaceAfter:"A space is required after '{{tokenValue}}'."}},create(e){let t=e.sourceCode,s=e.options[0]==="always",n=!e.options[1]||e.options[1].enforceForClassMembers;function i(p,h,f){e.report({node:p,loc:{start:h.loc.end,end:f.loc.start},messageId:"unexpectedSpaceAfter",data:{tokenValue:h.value},fix(d){return d.removeRange([h.range[1],f.range[0]])}})}function a(p,h,f){e.report({node:p,loc:{start:f.loc.end,end:h.loc.start},messageId:"unexpectedSpaceBefore",data:{tokenValue:h.value},fix(d){return d.removeRange([f.range[1],h.range[0]])}})}function l(p,h){e.report({node:p,loc:h.loc,messageId:"missingSpaceAfter",data:{tokenValue:h.value},fix(f){return f.insertTextAfter(h," ")}})}function o(p,h){e.report({node:p,loc:h.loc,messageId:"missingSpaceBefore",data:{tokenValue:h.value},fix(f){return f.insertTextBefore(h," ")}})}function u(p){return function(h){if(!h.computed)return;let f=h[p],d=t.getTokenBefore(f,r.isOpeningBracketToken),m=t.getTokenAfter(d,{includeComments:!0}),g=t.getTokenAfter(f,r.isClosingBracketToken),y=t.getTokenBefore(g,{includeComments:!0});r.isTokenOnSameLine(d,m)&&(s?!t.isSpaceBetweenTokens(d,m)&&r.isTokenOnSameLine(d,m)&&l(h,d):t.isSpaceBetweenTokens(d,m)&&i(h,d,m)),r.isTokenOnSameLine(y,g)&&(s?!t.isSpaceBetweenTokens(y,g)&&r.isTokenOnSameLine(y,g)&&o(h,g):t.isSpaceBetweenTokens(y,g)&&a(h,g,y))}}let c={Property:u("key"),MemberExpression:u("property")};return n&&(c.MethodDefinition=c.PropertyDefinition=c.Property),c}},bg}var vg,lD;function AV(){if(lD)return vg;lD=1;let r=Pe(),{upperCaseFirst:e}=xi();function t(n){for(let i of n)if(i.reachable)return!1;return!0}function s(n){return n.type==="FunctionExpression"&&n.parent&&n.parent.type==="MethodDefinition"&&n.parent.kind==="constructor"}return vg={meta:{type:"suggestion",docs:{description:"Require `return` statements to either always or never specify values",recommended:!1,url:"https://eslint.org/docs/latest/rules/consistent-return"},schema:[{type:"object",properties:{treatUndefinedAsUnspecified:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{missingReturn:"Expected to return a value at the end of {{name}}.",missingReturnValue:"{{name}} expected a return value.",unexpectedReturnValue:"{{name}} expected no return value."}},create(n){let a=(n.options[0]||{}).treatUndefinedAsUnspecified===!0,l=null;function o(u){let c,p;!l.hasReturnValue||t(l.currentSegments)||r.isES5Constructor(u)||s(u)||(u.type==="Program"?(c={line:1,column:0},p="program"):u.type==="ArrowFunctionExpression"?c=n.sourceCode.getTokenBefore(u.body,r.isArrowToken).loc:u.parent.type==="MethodDefinition"||u.parent.type==="Property"&&u.parent.method?c=u.parent.key.loc:c=(u.id||n.sourceCode.getFirstToken(u)).loc,p||(p=r.getFunctionNameWithKind(u)),n.report({node:u,loc:c,messageId:"missingReturn",data:{name:p}}))}return{onCodePathStart(u,c){l={upper:l,codePath:u,hasReturn:!1,hasReturnValue:!1,messageId:"",node:c,currentSegments:new Set}},onCodePathEnd(){l=l.upper},onUnreachableCodePathSegmentStart(u){l.currentSegments.add(u)},onUnreachableCodePathSegmentEnd(u){l.currentSegments.delete(u)},onCodePathSegmentStart(u){l.currentSegments.add(u)},onCodePathSegmentEnd(u){l.currentSegments.delete(u)},ReturnStatement(u){let c=u.argument,p=!!c;a&&p&&(p=!r.isSpecificId(c,"undefined")&&c.operator!=="void"),l.hasReturn?l.hasReturnValue!==p&&n.report({node:u,messageId:l.messageId,data:l.data}):(l.hasReturn=!0,l.hasReturnValue=p,l.messageId=p?"missingReturnValue":"unexpectedReturnValue",l.data={name:l.node.type==="Program"?"Program":e(r.getFunctionNameWithKind(l.node))})},"Program:exit":o,"FunctionDeclaration:exit":o,"FunctionExpression:exit":o,"ArrowFunctionExpression:exit":o}}},vg}var xg,uD;function PV(){return uD||(uD=1,xg={meta:{type:"suggestion",docs:{description:"Enforce consistent naming when capturing the current execution context",recommended:!1,url:"https://eslint.org/docs/latest/rules/consistent-this"},schema:{type:"array",items:{type:"string",minLength:1},uniqueItems:!0},messages:{aliasNotAssignedToThis:"Designated alias '{{name}}' is not assigned to 'this'.",unexpectedAlias:"Unexpected alias '{{name}}' for 'this'."}},create(r){let e=[],t=r.sourceCode;r.options.length===0?e.push("that"):e=r.options;function s(l,o){r.report({node:l,messageId:"aliasNotAssignedToThis",data:{name:o}})}function n(l,o,u){let c=u.type==="ThisExpression";e.includes(o)?(!c||l.operator&&l.operator!=="=")&&s(l,o):c&&r.report({node:l,messageId:"unexpectedAlias",data:{name:o}})}function i(l,o){let u=o.set.get(l);u&&(u.defs.some(c=>c.node.type==="VariableDeclarator"&&c.node.init!==null)||u.references.some(c=>{let p=c.writeExpr;return c.from===o&&p&&p.type==="ThisExpression"&&p.parent.operator==="="})||u.defs.map(c=>c.node).forEach(c=>{s(c,l)}))}function a(l){let o=t.getScope(l);e.forEach(u=>{i(u,o)})}return{"Program:exit":a,"FunctionExpression:exit":a,"FunctionDeclaration:exit":a,VariableDeclarator(l){let o=l.id,u=o.type==="ArrayPattern"||o.type==="ObjectPattern";l.init!==null&&!u&&n(l,o.name,l.init)},AssignmentExpression(l){l.left.type==="Identifier"&&n(l,l.left.name,l.right)}}}}),xg}var Og,cD;function TV(){if(cD)return Og;cD=1;function r(s){return s.type==="FunctionExpression"&&s.parent.type==="MethodDefinition"&&s.parent.kind==="constructor"}function e(s){if(!s)return!1;switch(s.type){case"ClassExpression":case"FunctionExpression":case"ThisExpression":case"MemberExpression":case"CallExpression":case"NewExpression":case"ChainExpression":case"YieldExpression":case"TaggedTemplateExpression":case"MetaProperty":return!0;case"Identifier":return s.name!=="undefined";case"AssignmentExpression":return["=","&&="].includes(s.operator)?e(s.right):["||=","??="].includes(s.operator)?e(s.left)||e(s.right):!1;case"LogicalExpression":return s.operator==="&&"?e(s.right):e(s.left)||e(s.right);case"ConditionalExpression":return e(s.alternate)||e(s.consequent);case"SequenceExpression":{let n=s.expressions.at(-1);return e(n)}default:return!1}}class t{calledInEveryPaths=!1;calledInSomePaths=!1;validNodes=[]}return Og={meta:{type:"problem",docs:{description:"Require `super()` calls in constructors",recommended:!0,url:"https://eslint.org/docs/latest/rules/constructor-super"},schema:[],messages:{missingSome:"Lacked a call of 'super()' in some code paths.",missingAll:"Expected to call 'super()'.",duplicate:"Unexpected duplicate 'super()'.",badSuper:"Unexpected 'super()' because 'super' is not a constructor."}},create(s){let n=null,i=Object.create(null);function a(u){return u.reachable&&i[u.id].calledInSomePaths}function l(u){return!!i[u.id]}function o(u){return u.reachable&&i[u.id].calledInEveryPaths}return{onCodePathStart(u,c){if(r(c)){let h=c.parent.parent.parent.superClass;n={upper:n,isConstructor:!0,hasExtends:!!h,superIsConstructor:e(h),codePath:u,currentSegments:new Set}}else n={upper:n,isConstructor:!1,hasExtends:!1,superIsConstructor:!1,codePath:u,currentSegments:new Set}},onCodePathEnd(u,c){let p=n.hasExtends;if(n=n.upper,!p)return;let h=u.returnedSegments,f=h.every(o),d=h.some(a);f||s.report({messageId:d?"missingSome":"missingAll",node:c.parent})},onCodePathSegmentStart(u,c){if(n.currentSegments.add(u),!(n.isConstructor&&n.hasExtends))return;let p=i[u.id]=new t,h=u.prevSegments.filter(l);h.length>0&&(p.calledInSomePaths=h.some(a),p.calledInEveryPaths=h.every(o)),c.parent&&c.parent.type==="ForStatement"&&c.parent.update===c&&(p.calledInEveryPaths=!0)},onUnreachableCodePathSegmentStart(u){n.currentSegments.add(u)},onUnreachableCodePathSegmentEnd(u){n.currentSegments.delete(u)},onCodePathSegmentEnd(u){n.currentSegments.delete(u)},onCodePathSegmentLoop(u,c){n.isConstructor&&n.hasExtends&&n.codePath.traverseSegments({first:c,last:u},(p,h)=>{let f=i[p.id];if(!f){h.skip();return}let d=p.prevSegments.filter(l),m=d.some(a),g=d.every(o);if(f.calledInSomePaths||=m,f.calledInEveryPaths||=g,m){let y=f.validNodes;f.validNodes=[];for(let v=0;v0}else O=!o(v);else O=!0;return{actual:w,expected:O,check(){this.expected!==null&&this.expected!==this.actual&&(this.expected?e.report({node:y,loc:v.loc,messageId:S&&S.condition?"missingCurlyAfterCondition":"missingCurlyAfter",data:{name:x},fix:C=>C.replaceText(v,`{${a.getText(v)}}`)}):e.report({node:y,loc:v.loc,messageId:S&&S.condition?"unexpectedCurlyAfterCondition":"unexpectedCurlyAfter",data:{name:x},fix(C){let E=y.type==="DoWhileStatement"&&a.getTokenBefore(v).range[1]===v.range[0]&&!r.canTokensBeAdjacent("do",a.getFirstToken(v,{skip:1})),k=a.getFirstToken(v),A=a.getLastToken(v),D=a.getTokenBefore(A);if(h(A))return null;let _=a.getText().slice(k.range[1],D.range[0])+a.getText(D)+a.getText().slice(D.range[1],A.range[0]);return C.replaceText(v,(E?" ":"")+_)}}))}}}function g(y){let v=[];for(let x=y;x;x=x.alternate)if(v.push(m(x,x.consequent,"if",{condition:!0})),x.alternate&&x.alternate.type!=="IfStatement"){v.push(m(x,x.alternate,"else"));break}if(i){let x=v.some(S=>S.expected!==null?S.expected:S.actual);v.forEach(S=>{S.expected=x})}return v}return{IfStatement(y){let v=y.parent;v.type==="IfStatement"&&v.alternate===y||g(y).forEach(S=>{S.check()})},WhileStatement(y){m(y,y.body,"while",{condition:!0}).check()},DoWhileStatement(y){m(y,y.body,"do").check()},ForStatement(y){m(y,y.body,"for",{condition:!0}).check()},ForInStatement(y){m(y,y.body,"for-in").check()},ForOfStatement(y){m(y,y.body,"for-of").check()}}}},Sg}var Eg,pD;function _V(){if(pD)return Eg;pD=1;let r=/^no default$/iu;return Eg={meta:{type:"suggestion",docs:{description:"Require `default` cases in `switch` statements",recommended:!1,url:"https://eslint.org/docs/latest/rules/default-case"},schema:[{type:"object",properties:{commentPattern:{type:"string"}},additionalProperties:!1}],messages:{missingDefaultCase:"Expected a default case."}},create(e){let t=e.options[0]||{},s=t.commentPattern?new RegExp(t.commentPattern,"u"):r,n=e.sourceCode;function i(a){return a.at(-1)}return{SwitchStatement(a){if(!a.cases.length)return;if(!a.cases.some(o=>o.test===null)){let o,u=i(a.cases),c=n.getCommentsAfter(u);c.length&&(o=i(c)),(!o||!s.test(o.value.trim()))&&e.report({node:a,messageId:"missingDefaultCase"})}}}}},Eg}var wg,hD;function IV(){return hD||(hD=1,wg={meta:{type:"suggestion",docs:{description:"Enforce default clauses in switch statements to be last",recommended:!1,url:"https://eslint.org/docs/latest/rules/default-case-last"},schema:[],messages:{notLast:"Default clause should be the last clause."}},create(r){return{SwitchStatement(e){let t=e.cases,s=t.findIndex(n=>n.test===null);if(s!==-1&&s!==t.length-1){let n=t[s];r.report({node:n,messageId:"notLast"})}}}}}),wg}var Cg,dD;function RV(){return dD||(dD=1,Cg={meta:{type:"suggestion",docs:{description:"Enforce default parameters to be last",recommended:!1,url:"https://eslint.org/docs/latest/rules/default-param-last"},schema:[],messages:{shouldBeLast:"Default parameters should be last."}},create(r){function e(t){let s=!1;for(let n=t.params.length-1;n>=0;n-=1){let i=t.params[n];if(i.type!=="AssignmentPattern"&&i.type!=="RestElement"){s=!0;continue}s&&i.type==="AssignmentPattern"&&r.report({node:i,messageId:"shouldBeLast"})}}return{FunctionDeclaration:e,FunctionExpression:e,ArrowFunctionExpression:e}}}),Cg}var kg,mD;function FV(){if(mD)return kg;mD=1;let r=Pe();return kg={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Enforce consistent newlines before and after dots",recommended:!1,url:"https://eslint.org/docs/latest/rules/dot-location"},schema:[{enum:["object","property"]}],fixable:"code",messages:{expectedDotAfterObject:"Expected dot to be on same line as object.",expectedDotBeforeProperty:"Expected dot to be on same line as property."}},create(e){let t=e.options[0],s=t==="object"||!t,n=e.sourceCode;function i(l){let o=l.property,u=n.getTokenBefore(o);if(s){let c=n.getTokenBefore(u);r.isTokenOnSameLine(c,u)||e.report({node:l,loc:u.loc,messageId:"expectedDotAfterObject",*fix(p){u.value.startsWith(".")&&r.isDecimalIntegerNumericToken(c)?yield p.insertTextAfter(c,` ${u.value}`):yield p.insertTextAfter(c,u.value),yield p.remove(u)}})}else r.isTokenOnSameLine(u,o)||e.report({node:l,loc:u.loc,messageId:"expectedDotBeforeProperty",*fix(c){yield c.remove(u),yield c.insertTextBefore(o,u.value)}})}function a(l){l.computed||i(l)}return{MemberExpression:a}}},kg}var Ag,gD;function BO(){return gD||(gD=1,Ag=["abstract","boolean","break","byte","case","catch","char","class","const","continue","debugger","default","delete","do","double","else","enum","export","extends","false","final","finally","float","for","function","goto","if","implements","import","in","instanceof","int","interface","long","native","new","null","package","private","protected","public","return","short","static","super","switch","synchronized","this","throw","throws","transient","true","try","typeof","var","void","volatile","while","with"]),Ag}var Pg,yD;function BV(){if(yD)return Pg;yD=1;let r=Pe(),e=BO(),t=/^[a-zA-Z_$][a-zA-Z0-9_$]*$/u,s=new Set(["string","boolean"]);return Pg={meta:{type:"suggestion",docs:{description:"Enforce dot notation whenever possible",recommended:!1,url:"https://eslint.org/docs/latest/rules/dot-notation"},schema:[{type:"object",properties:{allowKeywords:{type:"boolean",default:!0},allowPattern:{type:"string",default:""}},additionalProperties:!1}],fixable:"code",messages:{useDot:"[{{key}}] is better written in dot notation.",useBrackets:".{{key}} is a syntax error."}},create(n){let i=n.options[0]||{},a=i.allowKeywords===void 0||i.allowKeywords,l=n.sourceCode,o;i.allowPattern&&(o=new RegExp(i.allowPattern,"u"));function u(c,p){if(t.test(p)&&(a||!e.includes(String(p)))&&!(o&&o.test(p))){let h=c.property.type==="Literal"?JSON.stringify(p):`\`${p}\``;n.report({node:c.property,messageId:"useDot",data:{key:h},*fix(f){let d=l.getTokenAfter(c.object,r.isOpeningBracketToken),m=l.getLastToken(c),g=l.getTokenAfter(c);l.commentsExistBetween(d,m)||(c.optional||(yield f.insertTextBefore(d,r.isDecimalInteger(c.object)?" .":".")),yield f.replaceTextRange([d.range[0],m.range[1]],p),g&&m.range[1]===g.range[0]&&!r.canTokensBeAdjacent(String(p),g)&&(yield f.insertTextAfter(c," ")))}})}}return{MemberExpression(c){c.computed&&c.property.type==="Literal"&&(s.has(typeof c.property.value)||r.isNullLiteral(c.property))&&u(c,c.property.value),c.computed&&r.isStaticTemplateLiteral(c.property)&&u(c,c.property.quasis[0].value.cooked),!a&&!c.computed&&c.property.type==="Identifier"&&e.includes(String(c.property.name))&&n.report({node:c.property,messageId:"useBrackets",data:{key:c.property.name},*fix(p){let h=l.getTokenBefore(c.property);c.object.type==="Identifier"&&c.object.name==="let"&&!c.optional||l.commentsExistBetween(h,c.property)||(c.optional||(yield p.remove(h)),yield p.replaceText(c.property,`["${c.property.name}"]`))}})}}}},Pg}var Tg,bD;function NV(){return bD||(bD=1,Tg={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Require or disallow newline at the end of files",recommended:!1,url:"https://eslint.org/docs/latest/rules/eol-last"},fixable:"whitespace",schema:[{enum:["always","never","unix","windows"]}],messages:{missing:"Newline required at end of file but not found.",unexpected:"Newline not allowed at end of file."}},create(r){return{Program:function(t){let s=r.sourceCode,n=s.getText(),i=s.lines.at(-1),a={column:i.length,line:s.lines.length},l=` +`,o=`\r${l}`,u=n.endsWith(l);if(!n.length)return;let c=r.options[0]||"always",p=!1;if(c==="unix"&&(c="always"),c==="windows"&&(c="always",p=!0),c==="always"&&!u)r.report({node:t,loc:a,messageId:"missing",fix(h){return h.insertTextAfterRange([0,n.length],p?o:l)}});else if(c==="never"&&u){let h=s.lines.at(-2);r.report({node:t,loc:{start:{line:s.lines.length-1,column:h.length},end:{line:s.lines.length,column:0}},messageId:"unexpected",fix(f){let d=/(?:\r?\n)+$/u,m=d.exec(s.text),g=m.index,y=s.text.length;return f.replaceTextRange([g,y],"")}})}}}}}),Tg}var Dg,vD;function LV(){if(vD)return Dg;vD=1;let r=Pe();return Dg={meta:{type:"suggestion",docs:{description:"Require the use of `===` and `!==`",recommended:!1,url:"https://eslint.org/docs/latest/rules/eqeqeq"},schema:{anyOf:[{type:"array",items:[{enum:["always"]},{type:"object",properties:{null:{enum:["always","never","ignore"]}},additionalProperties:!1}],additionalItems:!1},{type:"array",items:[{enum:["smart","allow-null"]}],additionalItems:!1}]},fixable:"code",messages:{unexpected:"Expected '{{expectedOperator}}' and instead saw '{{actualOperator}}'."}},create(e){let t=e.options[0]||"always",s=e.options[1]||{},n=e.sourceCode,i=t==="always"?s.null||"always":"ignore",a=i==="always",l=i==="never";function o(f){return f.type==="UnaryExpression"&&f.operator==="typeof"}function u(f){return o(f.left)||o(f.right)}function c(f){return f.left.type==="Literal"&&f.right.type==="Literal"&&typeof f.left.value==typeof f.right.value}function p(f){return r.isNullLiteral(f.right)||r.isNullLiteral(f.left)}function h(f,d){let m=n.getFirstTokenBetween(f.left,f.right,g=>g.value===f.operator);e.report({node:f,loc:m.loc,messageId:"unexpected",data:{expectedOperator:d,actualOperator:f.operator},fix(g){return u(f)||c(f)?g.replaceText(m,d):null}})}return{BinaryExpression(f){let d=p(f);if(f.operator!=="=="&&f.operator!=="!="){l&&d&&h(f,f.operator.slice(0,-1));return}t==="smart"&&(u(f)||c(f)||d)||!a&&d||h(f,`${f.operator}=`)}}}},Dg}var _g,xD;function $V(){if(xD)return _g;xD=1;let{getStaticValue:r}=hr();return _g={meta:{type:"problem",docs:{description:'Enforce "for" loop update clause moving the counter in the right direction',recommended:!0,url:"https://eslint.org/docs/latest/rules/for-direction"},fixable:null,schema:[],messages:{incorrectDirection:"The update clause in this loop moves the variable in the wrong direction."}},create(e){let{sourceCode:t}=e;function s(l){e.report({node:l,messageId:"incorrectDirection"})}function n(l,o){let u=r(l.right,t.getScope(l));if(u&&["bigint","boolean","number"].includes(typeof u.value)){let c=Math.sign(Number(u.value))||0;return o*c}return 0}function i(l,o){if(l.argument.type==="Identifier"&&l.argument.name===o){if(l.operator==="++")return 1;if(l.operator==="--")return-1}return 0}function a(l,o){if(l.left.name===o){if(l.operator==="+=")return n(l,1);if(l.operator==="-=")return n(l,-1)}return 0}return{ForStatement(l){if(l.test&&l.test.type==="BinaryExpression"&&l.update)for(let o of["left","right"]){if(l.test[o].type!=="Identifier")continue;let u=l.test[o].name,c=l.test.operator,p=l.update,h;if(c==="<"||c==="<=")h=o==="left"?-1:1;else if(c===">"||c===">=")h=o==="left"?1:-1;else return;p.type==="UpdateExpression"?i(p,u)===h&&s(l):p.type==="AssignmentExpression"&&a(p,u)===h&&s(l)}}}}},_g}var Ig,OD;function MV(){if(OD)return Ig;OD=1;let r=Pe();return Ig={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Require or disallow spacing between function identifiers and their invocations",recommended:!1,url:"https://eslint.org/docs/latest/rules/func-call-spacing"},fixable:"whitespace",schema:{anyOf:[{type:"array",items:[{enum:["never"]}],minItems:0,maxItems:1},{type:"array",items:[{enum:["always"]},{type:"object",properties:{allowNewlines:{type:"boolean"}},additionalProperties:!1}],minItems:0,maxItems:2}]},messages:{unexpectedWhitespace:"Unexpected whitespace between function name and paren.",unexpectedNewline:"Unexpected newline between function name and paren.",missing:"Missing space between function name and paren."}},create(e){let t=e.options[0]!=="always",s=!t&&e.options[1]&&e.options[1].allowNewlines,n=e.sourceCode,i=n.getText();function a(l,o,u){let c=i.slice(o.range[1],u.range[0]).replace(/\/\*.*?\*\//gu,""),p=/\s/u.test(c),h=p&&r.LINEBREAK_MATCHER.test(c);t&&p?e.report({node:l,loc:{start:o.loc.end,end:{line:u.loc.start.line,column:u.loc.start.column-1}},messageId:"unexpectedWhitespace",fix(f){return n.commentsExistBetween(o,u)?null:l.optional?f.replaceTextRange([o.range[1],u.range[0]],"?."):h?null:f.removeRange([o.range[1],u.range[0]])}}):!t&&!p?e.report({node:l,loc:{start:{line:o.loc.end.line,column:o.loc.end.column-1},end:u.loc.start},messageId:"missing",fix(f){return l.optional?null:f.insertTextBefore(u," ")}}):!t&&!s&&h&&e.report({node:l,loc:{start:o.loc.end,end:u.loc.start},messageId:"unexpectedNewline",fix(f){if(!l.optional||n.commentsExistBetween(o,u))return null;let d=[o.range[1],u.range[0]],m=n.getTokenAfter(o);return m.range[0]===o.range[1]?f.replaceTextRange(d,"?. "):m.range[1]===u.range[0]?f.replaceTextRange(d," ?."):f.replaceTextRange(d," ?. ")}})}return{"CallExpression, NewExpression"(l){let o=n.getLastToken(l),u=n.getLastToken(l.callee),c=n.getFirstTokenBetween(u,o,r.isOpeningParenToken),p=c&&n.getTokenBefore(c,r.isNotQuestionDotToken);c&&c.range[1]=2015?e.keyword.isIdentifierES6(a):e.keyword.isIdentifierES5(a)}let n={enum:["always","never"]},i={type:"object",properties:{considerPropertyDescriptor:{type:"boolean"},includeCommonJSModuleExports:{type:"boolean"}},additionalProperties:!1};return Rg={meta:{type:"suggestion",docs:{description:"Require function names to match the name of the variable or property to which they are assigned",recommended:!1,url:"https://eslint.org/docs/latest/rules/func-name-matching"},schema:{anyOf:[{type:"array",additionalItems:!1,items:[n,i]},{type:"array",additionalItems:!1,items:[i]}]},messages:{matchProperty:"Function name `{{funcName}}` should match property name `{{name}}`.",matchVariable:"Function name `{{funcName}}` should match variable name `{{name}}`.",notMatchProperty:"Function name `{{funcName}}` should not match property name `{{name}}`.",notMatchVariable:"Function name `{{funcName}}` should not match variable name `{{name}}`."}},create(a){let l=(typeof a.options[0]=="object"?a.options[0]:a.options[1])||{},o=typeof a.options[0]=="string"?a.options[0]:"always",u=l.considerPropertyDescriptor,c=l.includeCommonJSModuleExports,p=a.languageOptions.ecmaVersion;function h(g,y,v){return v?v.type==="CallExpression"&&r.isSpecificMemberAccess(v.callee,g,y):!1}function f(g,y){return o==="always"&&g!==y||o==="never"&&g===y}function d(g,y,v,x){let S;o==="always"&&x?S="matchProperty":o==="always"?S="matchVariable":x?S="notMatchProperty":S="notMatchVariable",a.report({node:g,messageId:S,data:{name:y,funcName:v}})}function m(g){return g.type==="Literal"&&typeof g.value=="string"}return{VariableDeclarator(g){!g.init||g.init.type!=="FunctionExpression"||g.id.type!=="Identifier"||g.init.id&&f(g.id.name,g.init.id.name)&&d(g,g.id.name,g.init.id.name,!1)},AssignmentExpression(g){if(g.right.type!=="FunctionExpression"||g.left.computed&&g.left.property.type!=="Literal"||!c&&t(g.left)||g.left.type!=="Identifier"&&g.left.type!=="MemberExpression")return;let y=g.left.type==="MemberExpression",v=y?r.getStaticPropertyName(g.left):g.left.name;g.right.id&&v&&s(v)&&f(v,g.right.id.name)&&d(g,v,g.right.id.name,y)},"Property, PropertyDefinition[value]"(g){if(g.value.type==="FunctionExpression"&&g.value.id){if(g.key.type==="Identifier"&&!g.computed){let y=g.value.id.name,v=g.key.name;if(u&&v==="value"&&g.parent.type==="ObjectExpression")if(h("Object","defineProperty",g.parent.parent)||h("Reflect","defineProperty",g.parent.parent)){let x=g.parent.parent.arguments[1];m(x)&&f(x.value,y)&&d(g,x.value,y,!0)}else h("Object","defineProperties",g.parent.parent.parent.parent)||h("Object","create",g.parent.parent.parent.parent)?(v=g.parent.parent.key.name,!g.parent.parent.computed&&f(v,y)&&d(g,v,y,!0)):f(v,y)&&d(g,v,y,!0);else f(v,y)&&d(g,v,y,!0);return}m(g.key)&&s(g.key.value,p)&&f(g.key.value,g.value.id.name)&&d(g,g.key.value,g.value.id.name,!0)}}}}},Rg}var Fg,ED;function qV(){if(ED)return Fg;ED=1;let r=Pe();function e(t){return t&&t.defs[0].type==="FunctionName"}return Fg={meta:{type:"suggestion",docs:{description:"Require or disallow named `function` expressions",recommended:!1,url:"https://eslint.org/docs/latest/rules/func-names"},schema:{definitions:{value:{enum:["always","as-needed","never"]}},items:[{$ref:"#/definitions/value"},{type:"object",properties:{generators:{$ref:"#/definitions/value"}},additionalProperties:!1}]},messages:{unnamed:"Unexpected unnamed {{name}}.",named:"Unexpected named {{name}}."}},create(t){let s=t.sourceCode;function n(c){return c.generator&&t.options.length>1&&t.options[1].generators?t.options[1].generators:t.options[0]||"always"}function i(c){let p=c.parent;return p.type==="MethodDefinition"||p.type==="Property"&&(p.method||p.kind==="get"||p.kind==="set")}function a(c){let p=c.parent;return i(c)||p.type==="VariableDeclarator"&&p.id.type==="Identifier"&&p.init===c||p.type==="Property"&&p.value===c||p.type==="PropertyDefinition"&&p.value===c||p.type==="AssignmentExpression"&&p.left.type==="Identifier"&&p.right===c||p.type==="AssignmentPattern"&&p.left.type==="Identifier"&&p.right===c}function l(c){t.report({node:c,messageId:"unnamed",loc:r.getFunctionHeadLoc(c,s),data:{name:r.getFunctionNameWithKind(c)}})}function o(c){t.report({node:c,messageId:"named",loc:r.getFunctionHeadLoc(c,s),data:{name:r.getFunctionNameWithKind(c)}})}function u(c){let p=s.getDeclaredVariables(c)[0];if(e(p)&&p.references.length>0)return;let h=!!(c.id&&c.id.name),f=n(c);f==="never"?h&&c.type!=="FunctionDeclaration"&&o(c):f==="as-needed"?!h&&!a(c)&&l(c):!h&&!i(c)&&l(c)}return{"FunctionExpression:exit":u,"ExportDefaultDeclaration > FunctionDeclaration":u}}},Fg}var Bg,wD;function QV(){return wD||(wD=1,Bg={meta:{type:"suggestion",docs:{description:"Enforce the consistent use of either `function` declarations or expressions",recommended:!1,url:"https://eslint.org/docs/latest/rules/func-style"},schema:[{enum:["declaration","expression"]},{type:"object",properties:{allowArrowFunctions:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{expression:"Expected a function expression.",declaration:"Expected a function declaration."}},create(r){let e=r.options[0],t=r.options[1]&&r.options[1].allowArrowFunctions,s=e==="declaration",n=[],i={FunctionDeclaration(a){n.push(!1),!s&&a.parent.type!=="ExportDefaultDeclaration"&&r.report({node:a,messageId:"expression"})},"FunctionDeclaration:exit"(){n.pop()},FunctionExpression(a){n.push(!1),s&&a.parent.type==="VariableDeclarator"&&r.report({node:a.parent,messageId:"declaration"})},"FunctionExpression:exit"(){n.pop()},ThisExpression(){n.length>0&&(n[n.length-1]=!0)}};return t||(i.ArrowFunctionExpression=function(){n.push(!1)},i["ArrowFunctionExpression:exit"]=function(a){let l=n.pop();s&&!l&&a.parent.type==="VariableDeclarator"&&r.report({node:a.parent,messageId:"declaration"})}),i}}),Bg}var Ng,CD;function UV(){return CD||(CD=1,Ng={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Enforce line breaks between arguments of a function call",recommended:!1,url:"https://eslint.org/docs/latest/rules/function-call-argument-newline"},fixable:"whitespace",schema:[{enum:["always","never","consistent"]}],messages:{unexpectedLineBreak:"There should be no line break here.",missingLineBreak:"There should be a line break after this argument."}},create(r){let e=r.sourceCode,t={unexpected:{messageId:"unexpectedLineBreak",check:(i,a)=>i.loc.end.line!==a.loc.start.line,createFix:(i,a)=>l=>l.replaceTextRange([a.range[1],i.range[0]]," ")},missing:{messageId:"missingLineBreak",check:(i,a)=>i.loc.end.line===a.loc.start.line,createFix:(i,a)=>l=>l.replaceTextRange([a.range[1],i.range[0]],` +`)}};function s(i,a){for(let l=1;lm!==h.length-1&&d.loc.end.line!==h[m+1].loc.start.line):a?f:h.length>=l}function u(h,f){let d=h.leftParen,m=h.rightParen,g=t.getTokenAfter(d),y=t.getTokenBefore(m),v=!r.isTokenOnSameLine(d,g),x=!r.isTokenOnSameLine(y,m),S=o(f,v);v&&!S?e.report({node:d,messageId:"unexpectedAfter",fix(w){return t.getText().slice(d.range[1],g.range[0]).trim()?null:w.removeRange([d.range[1],g.range[0]])}}):!v&&S&&e.report({node:d,messageId:"expectedAfter",fix:w=>w.insertTextAfter(d,` +`)}),x&&!S?e.report({node:m,messageId:"unexpectedBefore",fix(w){return t.getText().slice(y.range[1],m.range[0]).trim()?null:w.removeRange([y.range[1],m.range[0]])}}):!x&&S&&e.report({node:m,messageId:"expectedBefore",fix:w=>w.insertTextBefore(m,` +`)})}function c(h,f){let d=h.leftParen,m=t.getTokenAfter(d),g=!r.isTokenOnSameLine(d,m),y=o(f,g);for(let v=0;v<=f.length-2;v++){let x=f[v],S=f[v+1];!(x.loc.end.line!==S.loc.start.line)&&y&&e.report({node:x,messageId:"expectedBetween",fix:O=>O.insertTextBefore(S,` +`)})}}function p(h){switch(h.type){case"NewExpression":if(!h.arguments.length&&!(r.isOpeningParenToken(t.getLastToken(h,{skip:1}))&&r.isClosingParenToken(t.getLastToken(h))&&h.callee.range[1]a.identifier.range[0]===n.range[0]&&a.identifier.range[1]===n.range[1]);return i.length===1?i[0]:null}function t(s,n){let i=e(s,n);return i&&i.resolved&&i.resolved.defs.length>0}return jg={meta:{deprecated:!0,replacedBy:[],type:"suggestion",docs:{description:"Require `require()` calls to be placed at top-level module scope",recommended:!1,url:"https://eslint.org/docs/latest/rules/global-require"},schema:[],messages:{unexpected:"Unexpected require()."}},create(s){let n=s.sourceCode;return{CallExpression(i){let a=n.getScope(i);i.callee.name==="require"&&!t(a,i.callee)&&(n.getAncestors(i).every(o=>r.has(o.type))||s.report({node:i,messageId:"unexpected"}))}}}},jg}var qg,DD;function GV(){if(DD)return qg;DD=1;let r=Pe();function e(n,i){if(n.length!==i.length)return!1;for(let a=0;a1?l("notGrouped",x,S):(i==="getBeforeSet"&&y>v||i==="setBeforeGet"&&yc.type==="Property")},ClassBody(u){o(u.body,c=>c.type==="MethodDefinition"&&!c.static),o(u.body,c=>c.type==="MethodDefinition"&&c.static)}}}},qg}var Qg,_D;function XV(){return _D||(_D=1,Qg={meta:{type:"suggestion",docs:{description:"Require `for-in` loops to include an `if` statement",recommended:!1,url:"https://eslint.org/docs/latest/rules/guard-for-in"},schema:[],messages:{wrap:"The body of a for-in should be wrapped in an if statement to filter unwanted properties from the prototype."}},create(r){return{ForInStatement(e){let t=e.body;if(t.type!=="EmptyStatement"&&t.type!=="IfStatement"&&!(t.type==="BlockStatement"&&t.body.length===0)&&!(t.type==="BlockStatement"&&t.body.length===1&&t.body[0].type==="IfStatement")){if(t.type==="BlockStatement"&&t.body.length>=1&&t.body[0].type==="IfStatement"){let s=t.body[0];if(s.consequent.type==="ContinueStatement"||s.consequent.type==="BlockStatement"&&s.consequent.body.length===1&&s.consequent.body[0].type==="ContinueStatement")return}r.report({node:e,messageId:"wrap"})}}}}}),Qg}var Ug,ID;function YV(){return ID||(ID=1,Ug={meta:{deprecated:!0,replacedBy:[],type:"suggestion",docs:{description:"Require error handling in callbacks",recommended:!1,url:"https://eslint.org/docs/latest/rules/handle-callback-err"},schema:[{type:"string"}],messages:{expected:"Expected error to be handled."}},create(r){let e=r.options[0]||"err",t=r.sourceCode;function s(l){return l[0]==="^"}function n(l){return s(e)?new RegExp(e,"u").test(l):l===e}function i(l){return l.variables.filter(o=>o.defs[0]&&o.defs[0].type==="Parameter")}function a(l){let o=t.getScope(l),u=i(o),c=u[0];c&&n(c.name)&&c.references.length===0&&r.report({node:l,messageId:"expected"})}return{FunctionDeclaration:a,FunctionExpression:a,ArrowFunctionExpression:a}}}),Ug}var Vg,RD;function HV(){if(RD)return Vg;RD=1;function r(n){let i=n.parent;return i.type==="AssignmentExpression"&&i.left===n||i.type==="ArrayPattern"||i.type==="RestElement"||i.type==="Property"&&i.value===n&&i.parent.type==="ObjectPattern"||i.type==="AssignmentPattern"&&i.left===n}function e(n){let i=n.parent;return i.type==="ImportSpecifier"&&i.imported!==i.local&&i.imported===n||i.type==="ExportSpecifier"&&i.parent.source&&i.local!==i.exported&&i.local===n}function t(n){let i=n.parent;return!i.computed&&i.type==="Property"&&i.parent.type==="ObjectPattern"&&i.value!==n&&i.key===n}function s(n){let i=n.parent;return i.type==="Property"&&i.parent.type==="ObjectExpression"&&i.shorthand}return Vg={meta:{deprecated:!0,replacedBy:["id-denylist"],type:"suggestion",docs:{description:"Disallow specified identifiers",recommended:!1,url:"https://eslint.org/docs/latest/rules/id-blacklist"},schema:{type:"array",items:{type:"string"},uniqueItems:!0},messages:{restricted:"Identifier '{{name}}' is restricted."}},create(n){let i=new Set(n.options),a=new Set,l=n.sourceCode,o;function u(f){return i.has(f)}function c(f){let d=o.set.get(f.name);return d&&d.defs.length===0&&d.references.some(m=>m.identifier===f)}function p(f){let d=f.parent;return d.type==="MemberExpression"&&d.property===f&&!d.computed?r(d):d.type!=="CallExpression"&&d.type!=="NewExpression"&&!e(f)&&!t(f)&&!(c(f)&&!s(f))}function h(f){a.has(f.range.toString())||(n.report({node:f,messageId:"restricted",data:{name:f.name}}),a.add(f.range.toString()))}return{Program(f){o=l.getScope(f)},Identifier(f){u(f.name)&&p(f)&&h(f)}}}},Vg}var Wg,FD;function KV(){if(FD)return Wg;FD=1;function r(s){let n=s.parent;return n.type==="AssignmentExpression"&&n.left===s||n.type==="ArrayPattern"||n.type==="RestElement"||n.type==="Property"&&n.value===s&&n.parent.type==="ObjectPattern"||n.type==="AssignmentPattern"&&n.left===s}function e(s){let n=s.parent;return n.type==="ImportSpecifier"&&n.imported!==n.local&&n.imported===s||n.type==="ExportSpecifier"&&n.parent.source&&n.local!==n.exported&&n.local===s}function t(s){let n=s.parent;return!n.computed&&n.type==="Property"&&n.parent.type==="ObjectPattern"&&n.key===s}return Wg={meta:{type:"suggestion",docs:{description:"Disallow specified identifiers",recommended:!1,url:"https://eslint.org/docs/latest/rules/id-denylist"},schema:{type:"array",items:{type:"string"},uniqueItems:!0},messages:{restricted:"Identifier '{{name}}' is restricted.",restrictedPrivate:"Identifier '#{{name}}' is restricted."}},create(s){let n=new Set(s.options),i=new Set,a=s.sourceCode,l;function o(h){return n.has(h)}function u(h){let f=l.set.get(h.name);return f&&f.defs.length===0&&f.references.some(d=>d.identifier===h)}function c(h){let f=h.parent;return f.type==="MemberExpression"&&f.property===h&&!f.computed?r(f):f.type!=="CallExpression"&&f.type!=="NewExpression"&&!e(h)&&!t(h)&&!u(h)}function p(h){if(!i.has(h.range.toString())){let f=h.type==="PrivateIdentifier";s.report({node:h,messageId:f?"restrictedPrivate":"restricted",data:{name:h.name}}),i.add(h.range.toString())}}return{Program(h){l=a.getScope(h)},[["Identifier","PrivateIdentifier"]](h){o(h.name)&&c(h)&&p(h)}}}},Wg}var zg,BD;function JV(){if(BD)return zg;BD=1;let{getGraphemeCount:r}=xi();return zg={meta:{type:"suggestion",docs:{description:"Enforce minimum and maximum identifier lengths",recommended:!1,url:"https://eslint.org/docs/latest/rules/id-length"},schema:[{type:"object",properties:{min:{type:"integer",default:2},max:{type:"integer"},exceptions:{type:"array",uniqueItems:!0,items:{type:"string"}},exceptionPatterns:{type:"array",uniqueItems:!0,items:{type:"string"}},properties:{enum:["always","never"]}},additionalProperties:!1}],messages:{tooShort:"Identifier name '{{name}}' is too short (< {{min}}).",tooShortPrivate:"Identifier name '#{{name}}' is too short (< {{min}}).",tooLong:"Identifier name '{{name}}' is too long (> {{max}}).",tooLongPrivate:"Identifier name #'{{name}}' is too long (> {{max}})."}},create(e){let t=e.options[0]||{},s=typeof t.min<"u"?t.min:2,n=typeof t.max<"u"?t.max:1/0,i=t.properties!=="never",a=new Set(t.exceptions),l=(t.exceptionPatterns||[]).map(p=>new RegExp(p,"u")),o=new Set;function u(p){return l.some(h=>h.test(p))}let c={MemberExpression:i&&function(p){return!p.computed&&(p.parent.left===p&&p.parent.type==="AssignmentExpression"||p.parent.type==="Property"&&p.parent.value===p&&p.parent.parent.type==="ObjectPattern"&&p.parent.parent.parent.left===p.parent.parent)},AssignmentPattern(p,h){return p.left===h},VariableDeclarator(p,h){return p.id===h},Property(p,h){if(p.parent.type==="ObjectPattern"){let f=p.value.name===p.key.name;return!f&&p.value===h||f&&p.key===h&&i}return i&&!p.computed&&p.key.name===h.name},ImportDefaultSpecifier:!0,RestElement:!0,FunctionExpression:!0,ArrowFunctionExpression:!0,ClassDeclaration:!0,FunctionDeclaration:!0,MethodDefinition:!0,PropertyDefinition:!0,CatchClause:!0,ArrayPattern:!0};return{[["Identifier","PrivateIdentifier"]](p){let h=p.name,f=p.parent,d=r(h),m=dn;if(!(m||g)||a.has(h)||u(h))return;let y=c[f.type];if(y&&!o.has(p.range.toString())&&(y===!0||y(f,p))){o.add(p.range.toString());let v=m?"tooShort":"tooLong";p.type==="PrivateIdentifier"&&(v+="Private"),e.report({node:p,messageId:v,data:{name:h,min:s,max:n}})}}}}},zg}var Zg,ND;function e7(){return ND||(ND=1,Zg={meta:{type:"suggestion",docs:{description:"Require identifiers to match a specified regular expression",recommended:!1,url:"https://eslint.org/docs/latest/rules/id-match"},schema:[{type:"string"},{type:"object",properties:{properties:{type:"boolean",default:!1},classFields:{type:"boolean",default:!1},onlyDeclarations:{type:"boolean",default:!1},ignoreDestructuring:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{notMatch:"Identifier '{{name}}' does not match the pattern '{{pattern}}'.",notMatchPrivate:"Identifier '#{{name}}' does not match the pattern '{{pattern}}'."}},create(r){let e=r.options[0]||"^.+$",t=new RegExp(e,"u"),s=r.options[1]||{},n=!!s.properties,i=!!s.classFields,a=!!s.onlyDeclarations,l=!!s.ignoreDestructuring,o=r.sourceCode,u,c=new Set,p=new Set(["CallExpression","NewExpression"]),h=new Set(["FunctionDeclaration","VariableDeclarator"]),f=new Set(["ImportSpecifier","ImportNamespaceSpecifier","ImportDefaultSpecifier"]);function d(x){let S=u.set.get(x.name);return S&&S.defs.length===0&&S.references.some(w=>w.identifier===x)}function m(x){return!t.test(x)}function g(x){let{parent:S}=x;for(;S;){if(S.type==="ObjectPattern")return!0;S=S.parent}return!1}function y(x,S){return(!a||h.has(x.type))&&!p.has(x.type)&&m(S)}function v(x){if(!c.has(x.range.toString())){let S=x.type==="PrivateIdentifier"?"notMatchPrivate":"notMatch";r.report({node:x,messageId:S,data:{name:x.name,pattern:e}}),c.add(x.range.toString())}}return{Program(x){u=o.getScope(x)},Identifier(x){let S=x.name,w=x.parent,O=w.type==="MemberExpression"?w.parent:w;if(!d(x))if(w.type==="MemberExpression"){if(!n)return;w.object.type==="Identifier"&&w.object.name===S||O.type==="AssignmentExpression"&&O.left.type==="MemberExpression"&&O.left.property.name===x.name?m(S)&&v(x):O.type==="AssignmentExpression"&&O.right.type!=="MemberExpression"&&m(S)&&v(x)}else if(w.type==="Property"&&w.parent.type==="ObjectExpression"&&w.key===x&&!w.computed)n&&m(S)&&v(x);else if(w.type==="Property"||w.type==="AssignmentPattern"){if(w.parent&&w.parent.type==="ObjectPattern"){!l&&w.shorthand&&w.value.left&&m(S)&&v(x);let C=w.key.name===w.value.name;if(!C&&w.key===x)return;w.value.name&&m(S)&&!(C&&l)&&v(x)}if(!n&&!w.computed||l&&g(x))return;w.right!==x&&y(O,S)&&v(x)}else f.has(w.type)?w.local&&w.local.name===x.name&&m(S)&&v(x):w.type==="PropertyDefinition"?i&&m(S)&&v(x):y(O,S)&&v(x)},PrivateIdentifier(x){x.parent.type==="PropertyDefinition"&&!i||m(x.name)&&v(x)}}}}),Zg}var Gg,LD;function t7(){if(LD)return Gg;LD=1;let{isCommentToken:r,isNotOpeningParenToken:e}=Pe();return Gg={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Enforce the location of arrow function bodies",recommended:!1,url:"https://eslint.org/docs/latest/rules/implicit-arrow-linebreak"},fixable:"whitespace",schema:[{enum:["beside","below"]}],messages:{expected:"Expected a linebreak before this expression.",unexpected:"Expected no linebreak before this expression."}},create(t){let s=t.sourceCode,n=t.options[0]||"beside";function i(a){if(a.body.type==="BlockStatement")return;let l=s.getTokenBefore(a.body,e),o=s.getTokenAfter(l);l.loc.end.line===o.loc.start.line&&n==="below"?t.report({node:o,messageId:"expected",fix:u=>u.insertTextBefore(o,` +`)}):l.loc.end.line!==o.loc.start.line&&n==="beside"&&t.report({node:o,messageId:"unexpected",fix(u){return s.getFirstTokenBetween(l,o,{includeComments:!0,filter:r})?null:u.replaceTextRange([l.range[1],o.range[0]]," ")}})}return{ArrowFunctionExpression:a=>i(a)}}},Gg}var Xg,$D;function r7(){if($D)return Xg;$D=1;let r=Pe(),e=new Set(["AssignmentExpression","AssignmentPattern","ArrayExpression","ArrayPattern","ArrowFunctionExpression","AwaitExpression","BlockStatement","BinaryExpression","BreakStatement","CallExpression","CatchClause","ChainExpression","ClassBody","ClassDeclaration","ClassExpression","ConditionalExpression","ContinueStatement","DoWhileStatement","DebuggerStatement","EmptyStatement","ExperimentalRestProperty","ExperimentalSpreadProperty","ExpressionStatement","ForStatement","ForInStatement","ForOfStatement","FunctionDeclaration","FunctionExpression","Identifier","IfStatement","Literal","LabeledStatement","LogicalExpression","MemberExpression","MetaProperty","MethodDefinition","NewExpression","ObjectExpression","ObjectPattern","PrivateIdentifier","Program","Property","PropertyDefinition","RestElement","ReturnStatement","SequenceExpression","SpreadElement","StaticBlock","Super","SwitchCase","SwitchStatement","TaggedTemplateExpression","TemplateElement","TemplateLiteral","ThisExpression","ThrowStatement","TryStatement","UnaryExpression","UpdateExpression","VariableDeclaration","VariableDeclarator","WhileStatement","WithStatement","YieldExpression","JSXFragment","JSXOpeningFragment","JSXClosingFragment","JSXIdentifier","JSXNamespacedName","JSXMemberExpression","JSXEmptyExpression","JSXExpressionContainer","JSXElement","JSXClosingElement","JSXOpeningElement","JSXAttribute","JSXSpreadAttribute","JSXText","ExportDefaultDeclaration","ExportNamedDeclaration","ExportAllDeclaration","ExportSpecifier","ImportDeclaration","ImportSpecifier","ImportDefaultSpecifier","ImportNamespaceSpecifier","ImportExpression"]);class t{constructor(l){this._values=Array(l+1)}insert(l,o){this._values[l]=o}findLastNotAfter(l){let o=this._values;for(let u=l;u>=0;u--){let c=o[u];if(c)return c}}deleteRange(l,o){this._values.fill(void 0,l,o)}}class s{constructor(l){this.sourceCode=l,this.firstTokensByLineNumber=new Map;let o=l.tokensAndComments;for(let u=0;u=l[0]&&o.range[1]<=l[1],d=f&&this._getOffsetDescriptor(o);this._indexMap.deleteRange(l[0]+1,l[1]),this._indexMap.insert(l[0],p),f&&(this._indexMap.insert(o.range[0],d),this._indexMap.insert(o.range[1],p)),this._indexMap.insert(l[1],h)}getDesiredIndent(l){if(!this._desiredIndentCache.has(l))if(this._ignoredTokens.has(l))this._desiredIndentCache.set(l,this._tokenInfo.getTokenIndent(l));else if(this._lockedFirstTokens.has(l)){let o=this._lockedFirstTokens.get(l);this._desiredIndentCache.set(l,this.getDesiredIndent(this._tokenInfo.getFirstTokenOfLine(o))+this._indentType.repeat(o.loc.start.column-this._tokenInfo.getFirstTokenOfLine(o).loc.start.column))}else{let o=this._getOffsetDescriptor(l),u=o.from&&o.from.loc.start.line===l.loc.start.line&&!/^\s*?\n/u.test(l.value)&&!o.force?0:o.offset*this._indentSize;this._desiredIndentCache.set(l,(o.from?this.getDesiredIndent(o.from):"")+this._indentType.repeat(u))}return this._desiredIndentCache.get(l)}ignoreToken(l){this._tokenInfo.isFirstTokenOfLine(l)&&this._ignoredTokens.add(l)}getFirstDependency(l){return this._getOffsetDescriptor(l).from}}let i={oneOf:[{type:"integer",minimum:0},{enum:["first","off"]}]};return Xg={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Enforce consistent indentation",recommended:!1,url:"https://eslint.org/docs/latest/rules/indent"},fixable:"whitespace",schema:[{oneOf:[{enum:["tab"]},{type:"integer",minimum:0}]},{type:"object",properties:{SwitchCase:{type:"integer",minimum:0,default:0},VariableDeclarator:{oneOf:[i,{type:"object",properties:{var:i,let:i,const:i},additionalProperties:!1}]},outerIIFEBody:{oneOf:[{type:"integer",minimum:0},{enum:["off"]}]},MemberExpression:{oneOf:[{type:"integer",minimum:0},{enum:["off"]}]},FunctionDeclaration:{type:"object",properties:{parameters:i,body:{type:"integer",minimum:0}},additionalProperties:!1},FunctionExpression:{type:"object",properties:{parameters:i,body:{type:"integer",minimum:0}},additionalProperties:!1},StaticBlock:{type:"object",properties:{body:{type:"integer",minimum:0}},additionalProperties:!1},CallExpression:{type:"object",properties:{arguments:i},additionalProperties:!1},ArrayExpression:i,ObjectExpression:i,ImportDeclaration:i,flatTernaryExpressions:{type:"boolean",default:!1},offsetTernaryExpressions:{type:"boolean",default:!1},ignoredNodes:{type:"array",items:{type:"string",not:{pattern:":exit$"}}},ignoreComments:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{wrongIndentation:"Expected indentation of {{expected}} but found {{actual}}."}},create(a){let c="space",p=4,h={SwitchCase:0,VariableDeclarator:{var:1,let:1,const:1},outerIIFEBody:1,FunctionDeclaration:{parameters:1,body:1},FunctionExpression:{parameters:1,body:1},StaticBlock:{body:1},CallExpression:{arguments:1},MemberExpression:1,ArrayExpression:1,ObjectExpression:1,ImportDeclaration:1,flatTernaryExpressions:!1,ignoredNodes:[],ignoreComments:!1};a.options.length&&(a.options[0]==="tab"?(p=1,c="tab"):(p=a.options[0],c="space"),a.options[1]&&(Object.assign(h,a.options[1]),(typeof h.VariableDeclarator=="number"||h.VariableDeclarator==="first")&&(h.VariableDeclarator={var:h.VariableDeclarator,let:h.VariableDeclarator,const:h.VariableDeclarator})));let f=a.sourceCode,d=new s(f),m=new n(d,p,c==="space"?" ":" ",f.text.length),g=new WeakSet;function y(F,U,V){let ae=`${F} ${c}${F===1?"":"s"}`,se=`space${U===1?"":"s"}`,xe=`tab${V===1?"":"s"}`,H;return U>0?H=c==="space"?U:`${U} ${se}`:V>0?H=c==="tab"?V:`${V} ${xe}`:H="0",{expected:ae,actual:H}}function v(F,U){let V=Array.from(d.getTokenIndent(F)),ae=V.filter(xe=>xe===" ").length,se=V.filter(xe=>xe===" ").length;a.report({node:F,messageId:"wrongIndentation",data:y(U.length,ae,se),loc:{start:{line:F.loc.start.line,column:0},end:{line:F.loc.start.line,column:F.loc.start.column}},fix(xe){let H=[F.range[0]-F.loc.start.column,F.range[0]],he=U;return xe.replaceTextRange(H,he)}})}function x(F,U){let V=d.getTokenIndent(F);return V===U||V.includes(" ")&&V.includes(" ")}function S(F){if(!F.parent||F.parent.type!=="CallExpression"||F.parent.callee!==F)return!1;let U=F.parent&&F.parent.parent;for(;U.type==="UnaryExpression"&&["!","~","+","-"].includes(U.operator)||U.type==="AssignmentExpression"||U.type==="LogicalExpression"||U.type==="SequenceExpression"||U.type==="VariableDeclarator";)U=U.parent;return(U.type==="ExpressionStatement"||U.type==="VariableDeclaration")&&U.parent.type==="Program"}function w(F){let V=F.match(/\s*$/u)[0].match(r.createGlobalLinebreakMatcher());return V===null?0:V.length}function O(F,U,V,ae){function se(xe){let H=f.getTokenBefore(xe);for(;r.isOpeningParenToken(H)&&H!==U;)H=f.getTokenBefore(H);return f.getTokenAfter(H)}m.setDesiredOffsets([U.range[1],V.range[0]],U,typeof ae=="number"?ae:1),m.setDesiredOffset(V,U,0),!(ae==="first"&&F.length&&!F[0])&&F.forEach((xe,H)=>{if(xe&&(ae==="off"&&m.ignoreToken(se(xe)),H!==0))if(ae==="first"&&d.isFirstTokenOfLine(se(xe)))m.matchOffsetOf(se(F[0]),se(xe));else{let he=F[H-1],$=he&&se(he),pe=he&&f.getLastToken(he);he&&pe.loc.end.line-w(pe.value)>U.loc.end.line&&m.setDesiredOffsets([he.range[1],xe.range[1]],$,0)}})}function C(F){if(F.type!=="BlockStatement"){let U=f.getTokenBefore(F,r.isNotOpeningParenToken),V=f.getFirstToken(F),ae=f.getLastToken(F);for(;r.isOpeningParenToken(f.getTokenBefore(V))&&r.isClosingParenToken(f.getTokenAfter(ae));)V=f.getTokenBefore(V),ae=f.getTokenAfter(ae);m.setDesiredOffsets([V.range[0],ae.range[1]],U,1)}}function E(F){let U;F.arguments.length?U=f.getFirstTokenBetween(F.callee,F.arguments[0],r.isOpeningParenToken):U=f.getLastToken(F,1);let V=f.getLastToken(F);if(g.add(U),g.add(V),F.optional){let xe=f.getTokenAfter(F.callee,r.isQuestionDotToken),H=f.getTokensBetween(F.callee,xe,{filter:r.isClosingParenToken}).length,he=H?f.getTokenBefore(F.callee,{skip:H-1}):f.getFirstToken(F.callee),$=f.getTokenBefore(xe),pe=$.loc.end.line===U.loc.start.line?$:he;m.setDesiredOffset(xe,pe,1)}let ae=F.callee.type==="TaggedTemplateExpression"?f.getFirstToken(F.callee.quasi):U,se=f.getTokenBefore(ae);m.setDesiredOffset(U,se,0),O(F.arguments,U,V,h.CallExpression.arguments)}function k(F){let U=[],V=[];for(let ae=0;ae=0;ae--){let se=V[ae].left,xe=V[ae].right;if(!g.has(se)&&!g.has(xe)){let H=new Set(f.getTokensBetween(se,xe));H.forEach(he=>{H.has(m.getFirstDependency(he))||m.setDesiredOffset(he,se,1)})}m.setDesiredOffset(xe,se,0)}}function A(F){let U=new Set(f.getTokens(F,{includeComments:!0}));U.forEach(V=>{if(!U.has(m.getFirstDependency(V))){let ae=d.getFirstTokenOfLine(V);V===ae?m.ignoreToken(V):m.setDesiredOffset(V,ae,0)}})}function D(F,U){let V=U;for(;V.parent&&!V.parent.type.endsWith("Statement")&&!V.parent.type.endsWith("Declaration");)V=V.parent;return V=V.parent,!V||V.loc.start.line===F.loc.start.line}function _(F,U){let V=F.loc.end.line,ae=U.loc.start.line;if(V===ae||V===ae-1)return!1;for(let se=V+1;seae)||U,r.isClosingBracketToken);O(F.elements,U,V,h.ArrayExpression)},"ObjectExpression, ObjectPattern"(F){let U=f.getFirstToken(F),V=f.getTokenAfter(F.properties.length?F.properties.at(-1):U,r.isClosingBraceToken);O(F.properties,U,V,h.ObjectExpression)},ArrowFunctionExpression(F){let U=f.getFirstToken(F,{skip:F.async?1:0});if(r.isOpeningParenToken(U)){let V=U,ae=f.getTokenBefore(F.body,r.isClosingParenToken);g.add(V),g.add(ae),O(F.params,V,ae,h.FunctionExpression.parameters)}C(F.body)},AssignmentExpression(F){let U=f.getFirstTokenBetween(F.left,F.right,V=>V.value===F.operator);m.setDesiredOffsets([U.range[0],F.range[1]],f.getLastToken(F.left),1),m.ignoreToken(U),m.ignoreToken(f.getTokenAfter(U))},"BinaryExpression, LogicalExpression"(F){let U=f.getFirstTokenBetween(F.left,F.right,ae=>ae.value===F.operator),V=f.getTokenAfter(U);m.ignoreToken(U),m.ignoreToken(V),m.setDesiredOffset(V,U,0)},"BlockStatement, ClassBody"(F){let U;F.parent&&S(F.parent)?U=h.outerIIFEBody:F.parent&&(F.parent.type==="FunctionExpression"||F.parent.type==="ArrowFunctionExpression")?U=h.FunctionExpression.body:F.parent&&F.parent.type==="FunctionDeclaration"?U=h.FunctionDeclaration.body:U=1,r.STATEMENT_LIST_PARENTS.has(F.parent.type)||m.setDesiredOffset(f.getFirstToken(F),f.getFirstToken(F.parent),0),O(F.body,f.getFirstToken(F),f.getLastToken(F),U)},CallExpression:E,"ClassDeclaration[superClass], ClassExpression[superClass]"(F){let U=f.getFirstToken(F),V=f.getTokenBefore(F.superClass,r.isNotOpeningParenToken);m.setDesiredOffsets([V.range[0],F.body.range[0]],U,1)},ConditionalExpression(F){let U=f.getFirstToken(F);if(!h.flatTernaryExpressions||!r.isTokenOnSameLine(F.test,F.consequent)||D(U,F)){let V=f.getFirstTokenBetween(F.test,F.consequent,he=>he.type==="Punctuator"&&he.value==="?"),ae=f.getFirstTokenBetween(F.consequent,F.alternate,he=>he.type==="Punctuator"&&he.value===":"),se=f.getTokenAfter(V),xe=f.getTokenBefore(ae),H=f.getTokenAfter(ae);m.setDesiredOffset(V,U,1),m.setDesiredOffset(ae,U,1),m.setDesiredOffset(se,U,se.type==="Punctuator"&&h.offsetTernaryExpressions?2:1),xe.loc.end.line===H.loc.start.line?m.setDesiredOffset(H,se,0):m.setDesiredOffset(H,U,H.type==="Punctuator"&&h.offsetTernaryExpressions?2:1)}},"DoWhileStatement, WhileStatement, ForInStatement, ForOfStatement, WithStatement":F=>C(F.body),ExportNamedDeclaration(F){if(F.declaration===null){let U=f.getLastToken(F,r.isClosingBraceToken);O(F.specifiers,f.getFirstToken(F,{skip:1}),U,1),F.source&&m.setDesiredOffsets([U.range[1],F.range[1]],f.getFirstToken(F),1)}},ForStatement(F){let U=f.getFirstToken(F,1);F.init&&m.setDesiredOffsets(F.init.range,U,1),F.test&&m.setDesiredOffsets(F.test.range,U,1),F.update&&m.setDesiredOffsets(F.update.range,U,1),C(F.body)},"FunctionDeclaration, FunctionExpression"(F){let U=f.getTokenBefore(F.body),V=f.getTokenBefore(F.params.length?F.params[0]:U);g.add(V),g.add(U),O(F.params,V,U,h[F.type].parameters)},IfStatement(F){C(F.consequent),F.alternate&&C(F.alternate)},":matches(DoWhileStatement, ForStatement, ForInStatement, ForOfStatement, IfStatement, WhileStatement, WithStatement):exit"(F){let U;F.type==="IfStatement"?(U=[F.consequent],F.alternate&&U.push(F.alternate)):U=[F.body];for(let V of U){let ae=f.getLastToken(V);if(r.isSemicolonToken(ae)){let se=f.getTokenBefore(ae),xe=f.getTokenAfter(ae);!r.isTokenOnSameLine(se,ae)&&xe&&r.isTokenOnSameLine(ae,xe)&&m.setDesiredOffset(ae,f.getFirstToken(F),0)}}},ImportDeclaration(F){if(F.specifiers.some(se=>se.type==="ImportSpecifier")){let se=f.getFirstToken(F,r.isOpeningBraceToken),xe=f.getLastToken(F,r.isClosingBraceToken);O(F.specifiers.filter(H=>H.type==="ImportSpecifier"),se,xe,h.ImportDeclaration)}let U=f.getLastToken(F,se=>se.type==="Identifier"&&se.value==="from"),V=f.getLastToken(F,se=>se.type==="String"),ae=f.getLastToken(F,se=>se.type==="Punctuator"&&se.value===";");if(U){let se=ae&&ae.range[1]===V.range[1]?F.range[1]:V.range[1];m.setDesiredOffsets([U.range[0],se],f.getFirstToken(F),1)}},ImportExpression(F){let U=f.getFirstToken(F,1),V=f.getLastToken(F);g.add(U),g.add(V),m.setDesiredOffset(U,f.getTokenBefore(U),0),O([F.source],U,V,h.CallExpression.arguments)},"MemberExpression, JSXMemberExpression, MetaProperty"(F){let U=F.type==="MetaProperty"?F.meta:F.object,V=f.getFirstTokenBetween(U,F.property,r.isNotClosingParenToken),ae=f.getTokenAfter(V),se=f.getTokensBetween(U,F.property,{filter:r.isClosingParenToken}).length,xe=se?f.getTokenBefore(U,{skip:se-1}):f.getFirstToken(U),H=f.getTokenBefore(V),he=F.computed?V:ae;F.computed&&(m.setDesiredOffset(f.getLastToken(F),V,0),m.setDesiredOffsets(F.property.range,V,1));let $=H.loc.end.line===he.loc.start.line?H:xe;typeof h.MemberExpression=="number"?(m.setDesiredOffset(V,$,h.MemberExpression),m.setDesiredOffset(ae,F.computed?V:$,h.MemberExpression)):(m.ignoreToken(V),m.ignoreToken(ae),m.setDesiredOffset(V,$,0),m.setDesiredOffset(ae,V,0))},NewExpression(F){(F.arguments.length>0||r.isClosingParenToken(f.getLastToken(F))&&r.isOpeningParenToken(f.getLastToken(F,1)))&&E(F)},Property(F){if(!F.shorthand&&!F.method&&F.kind==="init"){let U=f.getFirstTokenBetween(F.key,F.value,r.isColonToken);m.ignoreToken(f.getTokenAfter(U))}},PropertyDefinition(F){let U=f.getFirstToken(F),V=f.getLastToken(F),ae;if(F.computed){let se=f.getTokenBefore(F.key,r.isOpeningBracketToken),xe=ae=f.getTokenAfter(F.key,r.isClosingBracketToken),H=[se.range[1],xe.range[0]];se!==U&&m.setDesiredOffset(se,U,0),m.setDesiredOffsets(H,se,1),m.setDesiredOffset(xe,se,0)}else{let se=ae=f.getFirstToken(F.key);se!==U&&m.setDesiredOffset(se,U,1)}if(F.value){let se=f.getTokenBefore(F.value,r.isEqToken),xe=f.getTokenAfter(se);m.setDesiredOffset(se,ae,1),m.setDesiredOffset(xe,se,1),r.isSemicolonToken(V)&&m.setDesiredOffset(V,se,1)}else r.isSemicolonToken(V)&&m.setDesiredOffset(V,ae,1)},StaticBlock(F){let U=f.getFirstToken(F,{skip:1}),V=f.getLastToken(F);O(F.body,U,V,h.StaticBlock.body)},SwitchStatement(F){let U=f.getTokenAfter(F.discriminant,r.isOpeningBraceToken),V=f.getLastToken(F);m.setDesiredOffsets([U.range[1],V.range[0]],U,h.SwitchCase),F.cases.length&&f.getTokensBetween(F.cases.at(-1),V,{includeComments:!0,filter:r.isCommentToken}).forEach(ae=>m.ignoreToken(ae))},SwitchCase(F){if(!(F.consequent.length===1&&F.consequent[0].type==="BlockStatement")){let U=f.getFirstToken(F),V=f.getTokenAfter(F);m.setDesiredOffsets([U.range[1],V.range[0]],U,1)}},TemplateLiteral(F){F.expressions.forEach((U,V)=>{let ae=F.quasis[V],se=F.quasis[V+1],xe=ae.loc.start.line===ae.loc.end.line?f.getFirstToken(ae):null;m.setDesiredOffsets([ae.range[1],se.range[0]],xe,1),m.setDesiredOffset(f.getFirstToken(se),xe,0)})},VariableDeclaration(F){let U=Object.hasOwn(h.VariableDeclarator,F.kind)?h.VariableDeclarator[F.kind]:1,V=f.getFirstToken(F),ae=f.getLastToken(F);if(h.VariableDeclarator[F.kind]==="first"){if(F.declarations.length>1){O(F.declarations,V,ae,"first");return}U=1}F.declarations.at(-1).loc.start.line>F.loc.start.line?m.setDesiredOffsets(F.range,V,U,!0):m.setDesiredOffsets(F.range,V,U),r.isSemicolonToken(ae)&&m.ignoreToken(ae)},VariableDeclarator(F){if(F.init){let U=f.getTokenBefore(F.init,r.isNotOpeningParenToken),V=f.getTokenAfter(U);m.ignoreToken(U),m.ignoreToken(V),m.setDesiredOffsets([V.range[0],F.range[1]],U,1),m.setDesiredOffset(U,f.getLastToken(F.id),0)}},"JSXAttribute[value]"(F){let U=f.getFirstTokenBetween(F.name,F.value,V=>V.type==="Punctuator"&&V.value==="=");m.setDesiredOffsets([U.range[0],F.value.range[1]],f.getFirstToken(F.name),1)},JSXElement(F){F.closingElement&&O(F.children,f.getFirstToken(F.openingElement),f.getFirstToken(F.closingElement),1)},JSXOpeningElement(F){let U=f.getFirstToken(F),V;F.selfClosing?(V=f.getLastToken(F,{skip:1}),m.setDesiredOffset(f.getLastToken(F),V,0)):V=f.getLastToken(F),m.setDesiredOffsets(F.name.range,f.getFirstToken(F)),O(F.attributes,U,V,1)},JSXClosingElement(F){let U=f.getFirstToken(F);m.setDesiredOffsets(F.name.range,U,1)},JSXFragment(F){let U=f.getFirstToken(F.openingFragment),V=f.getFirstToken(F.closingFragment);O(F.children,U,V,1)},JSXOpeningFragment(F){let U=f.getFirstToken(F),V=f.getLastToken(F);m.setDesiredOffsets(F.range,U,1),m.matchOffsetOf(U,V)},JSXClosingFragment(F){let U=f.getFirstToken(F),V=f.getLastToken(F,{skip:1}),ae=f.getLastToken(F),se=r.isTokenOnSameLine(V,ae)?V:ae;m.setDesiredOffsets(F.range,U,1),m.matchOffsetOf(U,se)},JSXExpressionContainer(F){let U=f.getFirstToken(F),V=f.getLastToken(F);m.setDesiredOffsets([U.range[1],V.range[0]],U,1)},JSXSpreadAttribute(F){let U=f.getFirstToken(F),V=f.getLastToken(F);m.setDesiredOffsets([U.range[1],V.range[0]],U,1)},"*"(F){let U=f.getFirstToken(F);U&&!B.has(U)&&m.setDesiredOffsets(F.range,U,0)}},R=[],j={};for(let[F,U]of Object.entries(T))j[F]=V=>R.push({listener:U,node:V});let Q=new Set;function I(F){Q.add(F),B.add(f.getFirstToken(F))}let N=h.ignoredNodes.reduce((F,U)=>Object.assign(F,{[U]:I}),{});return Object.assign(j,N,{"*:exit"(F){e.has(F.type)||I(F)},"Program:exit"(){h.ignoreComments&&f.getAllComments().forEach(U=>m.ignoreToken(U));for(let U=0;U0&&F>0?se=`${N} ${V} and ${F} ${ae}`:N>0?se=i==="space"?N:`${N} ${V}`:F>0?se=i==="tab"?F:`${F} ${ae}`:se="0",{expected:U,actual:se}}function p(I,N,F,U,V,ae){if(F&&U)return;let se=(i==="space"?" ":" ").repeat(N),xe=ae?[I.range[1]-I.loc.end.column,I.range[1]-I.loc.end.column+F+U]:[I.range[0]-I.loc.start.column,I.range[0]-I.loc.start.column+F+U];e.report({node:I,loc:V,messageId:"expected",data:c(N,F,U),fix:H=>H.replaceTextRange(xe,se)})}function h(I,N){let F=N?o.getLastToken(I):o.getFirstToken(I),U=o.getText(F,F.loc.start.column).split(""),V=U.slice(0,U.findIndex(xe=>xe!==" "&&xe!==" ")),ae=V.filter(xe=>xe===" ").length,se=V.filter(xe=>xe===" ").length;return{space:ae,tab:se,goodChar:i==="space"?ae:se,badChar:i==="space"?se:ae}}function f(I,N){let F=N===!0?o.getLastToken(I,1):o.getTokenBefore(I),U=N===!0?I.loc.end.line:I.loc.start.line,V=F?F.loc.end.line:-1;return U!==V}function d(I,N){let F=h(I,!1);if(I.type!=="ArrayExpression"&&I.type!=="ObjectExpression"&&(F.goodChar!==N||F.badChar!==0)&&f(I)&&p(I,N,F.space,F.tab),I.type==="IfStatement"&&I.alternate){let U=o.getTokenBefore(I.alternate);d(U,N),f(I.alternate)||d(I.alternate,N)}if(I.type==="TryStatement"&&I.handler){let U=o.getFirstToken(I.handler);d(U,N)}if(I.type==="TryStatement"&&I.finalizer){let U=o.getTokenBefore(I.finalizer);d(U,N)}if(I.type==="DoWhileStatement"){let U=o.getTokenAfter(I.body);d(U,N)}}function m(I,N){I.forEach(F=>d(F,N))}function g(I,N){let F=o.getLastToken(I),U=h(F,!0);(U.goodChar!==N||U.badChar!==0)&&f(I,!0)&&p(I,N,U.space,U.tab,{line:F.loc.start.line,column:F.loc.start.column},!0)}function y(I,N){let F=o.getLastToken(I,r.isClosingParenToken);if(o.getText(F,F.loc.start.column).slice(0,-1).trim())return;let V=h(F,!0);V.goodChar!==N&&p(I,N,V.space,V.tab,{line:F.loc.start.line,column:F.loc.start.column},!0)}function v(I,N){let F=h(I,!1);(F.goodChar!==N||F.badChar!==0)&&f(I)&&p(I,N,F.space,F.tab,{line:I.loc.start.line,column:I.loc.start.column})}function x(I,N,F){let U=I.parent,V=new Set(F||["Program"]);for(;U.type!==N&&!V.has(U.type)&&U.type!=="Program";)U=U.parent;return U.type===N?U:null}function S(I){return x(I,"VariableDeclarator")}function w(I,N){return N&&N.parent.loc.start.line===I.loc.start.line&&N.parent.declarations.length>1}function O(I){let N=I.parent;return N.arguments.length>=2&&N.arguments[1]===I?N.arguments[0].loc.end.line>N.arguments[0].loc.start.line:!1}function C(I){let N=I.parent,F=N.parent;if(N.type!=="CallExpression"||N.callee!==I)return!1;for(;F.type==="UnaryExpression"&&(F.operator==="!"||F.operator==="~"||F.operator==="+"||F.operator==="-")||F.type==="AssignmentExpression"||F.type==="LogicalExpression"||F.type==="SequenceExpression"||F.type==="VariableDeclarator";)F=F.parent;return(F.type==="ExpressionStatement"||F.type==="VariableDeclaration")&&F.parent&&F.parent.type==="Program"}function E(I){let N=I.parent,F;if(N.parent&&(N.parent.type==="Property"||N.parent.type==="ArrayExpression")?F=h(N,!1).goodChar:F=h(N).goodChar,N.parent.type==="CallExpression"){let ae=N.parent;N.type!=="FunctionExpression"&&N.type!=="ArrowFunctionExpression"?ae&&ae.loc.start.line0&&m(I.body,F),g(I,F-U)}function k(I){let N=o.getLastToken(I),F=I.loc.start.line,U=N.loc.end.line;return F===U}function A(I){if(k(I))return;let N=I.type==="ArrayExpression"?I.elements:I.properties;N=N.filter(ae=>ae!==null);let F,U,V=S(I);if(f(I)){let ae=I.parent;if(F=h(ae).goodChar,(!V||V.loc.start.line!==I.loc.start.line)&&(ae.type!=="VariableDeclarator"||V===V.parent.declarations[0]))if(ae.type==="VariableDeclarator"&&V.loc.start.line===ae.loc.start.line)F+=a*l.VariableDeclarator[V.parent.kind];else if(ae.type==="ObjectExpression"||ae.type==="ArrayExpression"){let se=I.parent.type==="ObjectExpression"?I.parent.properties:I.parent.elements;se[0]&&se[0].loc.start.line===ae.loc.start.line&&se[0].loc.end.line!==ae.loc.start.line||(typeof l[ae.type]=="number"?F+=l[ae.type]*a:F=se[0].loc.start.column)}else ae.type==="CallExpression"||ae.type==="NewExpression"?typeof l.CallExpression.arguments=="number"?F+=l.CallExpression.arguments*a:l.CallExpression.arguments==="first"?ae.arguments.includes(I)&&(F=ae.arguments[0].loc.start.column):F+=a:(ae.type==="LogicalExpression"||ae.type==="ArrowFunctionExpression")&&(F+=a);v(I,F)}else F=h(I).goodChar;l[I.type]==="first"?U=N.length?N[0].loc.start.column:0:U=F+a*l[I.type],w(I,V)&&(U+=a*l.VariableDeclarator[V.parent.kind]),m(N,U),!(N.length>0&&N.at(-1).loc.end.line===I.loc.end.line)&&g(I,F+(w(I,V)?l.VariableDeclarator[V.parent.kind]*a:0))}function D(I){return I.type==="BlockStatement"||I.type==="ClassBody"||I.body&&I.body.type==="BlockStatement"||I.consequent&&I.consequent.type==="BlockStatement"}function _(I){if(k(I))return;if(I.parent&&(I.parent.type==="FunctionExpression"||I.parent.type==="FunctionDeclaration"||I.parent.type==="ArrowFunctionExpression")){E(I);return}let N,F,U=["IfStatement","WhileStatement","ForStatement","ForInStatement","ForOfStatement","DoWhileStatement","ClassDeclaration","TryStatement"];I.parent&&U.includes(I.parent.type)&&D(I)?N=h(I.parent).goodChar:I.parent&&I.parent.type==="CatchClause"?N=h(I.parent.parent).goodChar:N=h(I).goodChar,I.type==="IfStatement"&&I.consequent.type!=="BlockStatement"?F=[I.consequent]:Array.isArray(I.body)?F=I.body:F=[I.body],F.length>0&&m(F,N+a),I.type==="BlockStatement"&&g(I,N)}function B(I){return I.declarations.reduce((N,F)=>{let U=N.at(-1);return(F.loc.start.line!==I.loc.start.line&&!U||U&&U.loc.start.line!==F.loc.start.line)&&N.push(F),N},[])}function T(I){let N=B(I),F=h(I).goodChar,U=N.at(-1),V=F+a*l.VariableDeclarator[I.kind];if(m(N,V),o.getLastToken(I).loc.end.line<=U.loc.end.line)return;let ae=o.getTokenBefore(U);ae.value===","?g(I,h(ae).goodChar):g(I,V-a)}function R(I){I.body.type!=="BlockStatement"&&_(I)}function j(I,N){let F=I.type==="SwitchStatement"?I:I.parent,U=typeof N>"u"?h(F).goodChar:N,V;return u[F.loc.start.line]?u[F.loc.start.line]:(F.cases.length>0&&l.SwitchCase===0?V=U:V=U+a*l.SwitchCase,u[F.loc.start.line]=V,V)}function Q(I){let N=/^return\s*?\(\s*?\);*?/u,F=o.getText(I).replace(o.getText(I.argument),"");return N.test(F)}return{Program(I){I.body.length>0&&m(I.body,h(I).goodChar)},ClassBody:_,BlockStatement:_,WhileStatement:R,ForStatement:R,ForInStatement:R,ForOfStatement:R,DoWhileStatement:R,IfStatement(I){I.consequent.type!=="BlockStatement"&&I.consequent.loc.start.line>I.loc.start.line&&_(I)},VariableDeclaration(I){I.declarations.at(-1).loc.start.line>I.declarations[0].loc.start.line&&T(I)},ObjectExpression(I){A(I)},ArrayExpression(I){A(I)},MemberExpression(I){if(typeof l.MemberExpression>"u"||k(I)||x(I,"VariableDeclarator",["FunctionExpression","ArrowFunctionExpression"])||x(I,"AssignmentExpression",["FunctionExpression"]))return;let N=h(I).goodChar+a*l.MemberExpression,F=[I.property],U=o.getTokenBefore(I.property);U.type==="Punctuator"&&U.value==="."&&F.push(U),m(F,N)},SwitchStatement(I){let N=h(I).goodChar,F=j(I,N);m(I.cases,F),g(I,N)},SwitchCase(I){if(k(I))return;let N=j(I);m(I.consequent,N+a)},FunctionDeclaration(I){k(I)||(l.FunctionDeclaration.parameters==="first"&&I.params.length?m(I.params.slice(1),I.params[0].loc.start.column):l.FunctionDeclaration.parameters!==null&&m(I.params,h(I).goodChar+a*l.FunctionDeclaration.parameters))},FunctionExpression(I){k(I)||(l.FunctionExpression.parameters==="first"&&I.params.length?m(I.params.slice(1),I.params[0].loc.start.column):l.FunctionExpression.parameters!==null&&m(I.params,h(I).goodChar+a*l.FunctionExpression.parameters))},ReturnStatement(I){if(k(I))return;let N=h(I).goodChar;Q(I)?y(I,N):d(I,N)},CallExpression(I){k(I)||(l.CallExpression.arguments==="first"&&I.arguments.length?m(I.arguments.slice(1),I.arguments[0].loc.start.column):l.CallExpression.arguments!==null&&m(I.arguments,h(I).goodChar+a*l.CallExpression.arguments))}}}},Yg}var Hg,jD;function s7(){if(jD)return Hg;jD=1;function r(t){return t.type==="ForInStatement"||t.type==="ForOfStatement"||t.type==="ForStatement"}function e(t){let s=t.parent,n=s.parent;return r(n)?n.type==="ForStatement"?n.init===s:n.left===s:!!t.init}return Hg={meta:{type:"suggestion",docs:{description:"Require or disallow initialization in variable declarations",recommended:!1,url:"https://eslint.org/docs/latest/rules/init-declarations"},schema:{anyOf:[{type:"array",items:[{enum:["always"]}],minItems:0,maxItems:1},{type:"array",items:[{enum:["never"]},{type:"object",properties:{ignoreForLoopInit:{type:"boolean"}},additionalProperties:!1}],minItems:0,maxItems:2}]},messages:{initialized:"Variable '{{idName}}' should be initialized on declaration.",notInitialized:"Variable '{{idName}}' should not be initialized on declaration."}},create(t){let s="always",n="never",i=t.options[0]||s,a=t.options[1]||{};return{"VariableDeclaration:exit"(l){let o=l.kind,u=l.declarations;for(let c=0;c1)return!1;return!0}return!1}function S(B){let T=B.key;return B.computed?d.getText().slice(T.range[0],T.range[1]):r.getStaticPropertyName(B)}function w(B,T,R,j,Q){let I=R.length-j;if((I&&Q==="strict"||I<0&&Q==="minimum"||I>0&&!j&&Q==="minimum")&&!(j&&t(R))){let N=g(B.key),F=d.getTokenBefore(N,{includeComments:!0}),U=d.getTokenAfter(N,{includeComments:!0}),V=T==="key",ae=I>0,se=Math.abs(I),xe=Array(se+1).join(" "),H=V?F.loc.end:N.loc.start,he=V?N.loc.start:U.loc.start,$=V?F.loc:U.loc,pe=ae?{start:H,end:he}:$,K;if(ae){let be;V?be=[F.range[1],F.range[1]+se]:be=[U.range[0]-se,U.range[0]],K=function(Le){return Le.removeRange(be)}}else V?K=function(be){return be.insertTextAfter(F,xe)}:K=function(be){return be.insertTextBefore(U,xe)};let le;ae?le=T==="key"?"extraKey":"extraValue":le=T==="key"?"missingKey":"missingValue",o.report({node:B[T],loc:pe,messageId:le,data:{computed:B.computed?"computed ":"",key:S(B)},fix:K})}}function O(B){let T=d.getFirstToken(B),R=y(B.key);return e(d.getText().slice(T.range[0],R.range[1]))}function C(B){let T=/(\s*):(\s*)/u.exec(d.getText().slice(B.key.range[1],B.value.range[0]));return T?{beforeColon:T[1],afterColon:T[2]}:null}function E(B){return B.properties.length===1?[B.properties]:B.properties.reduce((T,R)=>{let j=s(T),Q=s(j);return!Q||x(Q,R)?j.push(R):T.push([R]),T},[[]])}function k(B){let T=B.length,R=B.map(O),j=f.on,Q=Math.max(...R),I,N,F;f&&T>1?(I=f.beforeColon,N=f.afterColon,F=f.mode):(I=p.beforeColon,N=p.afterColon,F=f.mode),Q+=j==="colon"?I:N;for(let U=0;U{let R=T.filter(m);R.length>0&&i(R)?D(R,p):k(R)})}return f?{ObjectExpression(B){n(B)?D(B.properties.filter(m),h):_(B)}}:{Property(B){A(B,n(B.parent)?h:p)}}}},Jg}var e0,UD;function o7(){if(UD)return e0;UD=1;let r=Pe(),e=BO(),t=/^[)\]}>]$/u,s=/^(?:[([{<~!]|\+\+?|--?)$/u,n=/^[)\]}>*]$/u,i=/^[{*]$/u,a=/\$\{$/u,l=/^\}/u,o=/^(?:JSXElement|RegularExpression|String|Template|PrivateIdentifier)$/u,u=e.concat(["as","async","await","from","get","let","of","set","yield"]);(function(){u.sort();for(let h=1;h(h[f]={type:"object",properties:{before:{type:"boolean"},after:{type:"boolean"}},additionalProperties:!1},h),{}),additionalProperties:!1}},additionalProperties:!1}],messages:{expectedBefore:'Expected space(s) before "{{value}}".',expectedAfter:'Expected space(s) after "{{value}}".',unexpectedBefore:'Unexpected space(s) before "{{value}}".',unexpectedAfter:'Unexpected space(s) after "{{value}}".'}},create(h){let f=h.sourceCode,d=new WeakSet;function m(se,xe){let H=f.getTokenBefore(se);H&&(o.test(H.type)||xe.test(H.value))&&!c(H)&&!d.has(H)&&r.isTokenOnSameLine(H,se)&&!f.isSpaceBetweenTokens(H,se)&&h.report({loc:se.loc,messageId:"expectedBefore",data:se,fix(he){return he.insertTextBefore(se," ")}})}function g(se,xe){let H=f.getTokenBefore(se);H&&(o.test(H.type)||xe.test(H.value))&&!c(H)&&!d.has(H)&&r.isTokenOnSameLine(H,se)&&f.isSpaceBetweenTokens(H,se)&&h.report({loc:{start:H.loc.end,end:se.loc.start},messageId:"unexpectedBefore",data:se,fix(he){return he.removeRange([H.range[1],se.range[0]])}})}function y(se,xe){let H=f.getTokenAfter(se);H&&(o.test(H.type)||xe.test(H.value))&&!p(H)&&!d.has(H)&&r.isTokenOnSameLine(se,H)&&!f.isSpaceBetweenTokens(se,H)&&h.report({loc:se.loc,messageId:"expectedAfter",data:se,fix(he){return he.insertTextAfter(se," ")}})}function v(se,xe){let H=f.getTokenAfter(se);H&&(o.test(H.type)||xe.test(H.value))&&!p(H)&&!d.has(H)&&r.isTokenOnSameLine(se,H)&&f.isSpaceBetweenTokens(se,H)&&h.report({loc:{start:se.loc.end,end:H.loc.start},messageId:"unexpectedAfter",data:se,fix(he){return he.removeRange([se.range[1],H.range[0]])}})}function x(se={}){let xe=se.before!==!1,H=se.after!==!1,he={before:xe?m:g,after:H?y:v},$=se&&se.overrides||{},pe=Object.create(null);for(let K=0;K{switch(H.value){case"get":case"set":case"async":return!0;default:return!1}});if(!xe)throw new Error("Failed to find token get, set, or async beside method name");C(xe)}}function ae(se){w(f.getFirstToken(se))}return{DebuggerStatement:E,WithStatement:E,BreakStatement:E,ContinueStatement:E,ReturnStatement:E,ThrowStatement:E,TryStatement:T,IfStatement:B,SwitchStatement:E,SwitchCase:E,DoWhileStatement:R,ForInStatement:j,ForOfStatement:Q,ForStatement:E,WhileStatement:E,ClassDeclaration:_,ExportNamedDeclaration:I,ExportDefaultDeclaration:I,ExportAllDeclaration:I,FunctionDeclaration:D,ImportDeclaration:I,VariableDeclaration:E,ArrowFunctionExpression:D,AwaitExpression:ae,ClassExpression:_,FunctionExpression:D,NewExpression:k,Super:k,ThisExpression:k,UnaryExpression:k,YieldExpression:k,ImportSpecifier:N,ExportSpecifier:F,ImportNamespaceSpecifier:U,MethodDefinition:V,PropertyDefinition:V,StaticBlock:E,Property:V,"BinaryExpression[operator='>']"(se){let xe=f.getTokenBefore(se.right,r.isNotOpeningParenToken);d.add(xe)}}}},e0}var t0,VD;function l7(){if(VD)return t0;VD=1;let r=Pe();return t0={meta:{type:"layout",docs:{description:"Enforce position of line comments",recommended:!1,url:"https://eslint.org/docs/latest/rules/line-comment-position"},schema:[{oneOf:[{enum:["above","beside"]},{type:"object",properties:{position:{enum:["above","beside"]},ignorePattern:{type:"string"},applyDefaultPatterns:{type:"boolean"},applyDefaultIgnorePatterns:{type:"boolean"}},additionalProperties:!1}]}],messages:{above:"Expected comment to be above code.",beside:"Expected comment to be beside code."}},create(e){let t=e.options[0],s,n,i=!0;!t||typeof t=="string"?s=!t||t==="above":(s=!t.position||t.position==="above",n=t.ignorePattern,Object.hasOwn(t,"applyDefaultIgnorePatterns")?i=t.applyDefaultIgnorePatterns:i=t.applyDefaultPatterns!==!1);let a=r.COMMENTS_IGNORE_PATTERN,l=/^\s*falls?\s?through/u,o=new RegExp(n,"u"),u=e.sourceCode;return{Program(){u.getAllComments().filter(p=>p.type==="Line").forEach(p=>{if(i&&(a.test(p.value)||l.test(p.value))||n&&o.test(p.value))return;let h=u.getTokenBefore(p,{includeComments:!0}),f=h&&h.loc.end.line===p.loc.start.line;s?f&&e.report({node:p,messageId:"above"}):f||e.report({node:p,messageId:"beside"})})}}}},t0}var r0,WD;function u7(){if(WD)return r0;WD=1;let r=Pe();return r0={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Enforce consistent linebreak style",recommended:!1,url:"https://eslint.org/docs/latest/rules/linebreak-style"},fixable:"whitespace",schema:[{enum:["unix","windows"]}],messages:{expectedLF:"Expected linebreaks to be 'LF' but found 'CRLF'.",expectedCRLF:"Expected linebreaks to be 'CRLF' but found 'LF'."}},create(e){let t=e.sourceCode;function s(n,i){return function(a){return a.replaceTextRange(n,i)}}return{Program:function(i){let a=e.options[0]||"unix",l=a==="unix",o=l?` `:`\r -`,u=t.getText(),c=r.createGlobalLinebreakMatcher(),p,h=0;for(;(p=c.exec(u))!==null;){if(h++,p[0]===o)continue;let f=p.index,d=[f,f+p[0].length];e.report({node:i,loc:{start:{line:h,column:t.lines[h-1].length},end:{line:h+1,column:0}},messageId:l?"expectedLF":"expectedCRLF",fix:s(d,o)})}}}}},n0}var s0,XD;function cV(){if(XD)return s0;XD=1;let r=Pe();function e(s){return s.map((i,a)=>({code:i.trim(),num:a+1})).filter(i=>!i.code).map(i=>i.num)}function t(s){let n=[];return s.forEach(i=>{let a=i.loc.start.line,l=i.loc.end.line;n.push(a,l)}),n}return s0={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Require empty lines around comments",recommended:!1,url:"https://eslint.org/docs/latest/rules/lines-around-comment"},fixable:"whitespace",schema:[{type:"object",properties:{beforeBlockComment:{type:"boolean",default:!0},afterBlockComment:{type:"boolean",default:!1},beforeLineComment:{type:"boolean",default:!1},afterLineComment:{type:"boolean",default:!1},allowBlockStart:{type:"boolean",default:!1},allowBlockEnd:{type:"boolean",default:!1},allowClassStart:{type:"boolean"},allowClassEnd:{type:"boolean"},allowObjectStart:{type:"boolean"},allowObjectEnd:{type:"boolean"},allowArrayStart:{type:"boolean"},allowArrayEnd:{type:"boolean"},ignorePattern:{type:"string"},applyDefaultIgnorePatterns:{type:"boolean"},afterHashbangComment:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{after:"Expected line after comment.",before:"Expected line before comment."}},create(s){let n=Object.assign({},s.options[0]),i=n.ignorePattern,a=r.COMMENTS_IGNORE_PATTERN,l=new RegExp(i,"u"),o=n.applyDefaultIgnorePatterns!==!1;n.beforeBlockComment=typeof n.beforeBlockComment<"u"?n.beforeBlockComment:!0;let u=s.sourceCode,c=u.lines,p=c.length+1,h=u.getAllComments(),f=t(h),d=e(c),m=new Set(f.concat(d));function g(T){let F=T;do F=u.getTokenBefore(F,{includeComments:!0});while(F&&r.isCommentToken(F));if(F&&r.isTokenOnSameLine(F,T))return!0;F=T;do F=u.getTokenAfter(F,{includeComments:!0});while(F&&r.isCommentToken(F));return!!(F&&r.isTokenOnSameLine(T,F))}function y(T,F){return T.type===F||T.body&&T.body.type===F||T.consequent&&T.consequent.type===F}function b(T){let F=u.getNodeByRangeIndex(T.range[0]);if(F&&F.type==="StaticBlock"){let j=u.getFirstToken(F,{skip:1});return T.range[0]>=j.range[0]?F:null}return F}function v(T,F){let j=b(T);if(j&&y(j,F)){let Q=j;return j.type==="StaticBlock"?Q=u.getFirstToken(j,{skip:1}):j.type==="SwitchStatement"&&(Q=u.getTokenAfter(j.discriminant,{filter:r.isOpeningBraceToken})),T.loc.start.line-Q.loc.start.line===1}return!1}function S(T,F){let j=b(T);return!!j&&y(j,F)&&j.loc.end.line-T.loc.end.line===1}function C(T){return v(T,"ClassBody")||v(T,"BlockStatement")||v(T,"StaticBlock")||v(T,"SwitchCase")||v(T,"SwitchStatement")}function O(T){return S(T,"ClassBody")||S(T,"BlockStatement")||S(T,"StaticBlock")||S(T,"SwitchCase")||S(T,"SwitchStatement")}function w(T){return v(T,"ClassBody")}function E(T){return S(T,"ClassBody")}function k(T){return v(T,"ObjectExpression")||v(T,"ObjectPattern")}function A(T){return S(T,"ObjectExpression")||S(T,"ObjectPattern")}function D(T){return v(T,"ArrayExpression")||v(T,"ArrayPattern")}function _(T){return S(T,"ArrayExpression")||S(T,"ArrayPattern")}function B(T,F){if(o&&a.test(T.value)||i&&l.test(T.value))return;let j=F.after,Q=F.before,I=T.loc.start.line-1,N=T.loc.end.line+1,R=g(T),U=n.allowBlockStart&&C(T)&&!(n.allowClassStart===!1&&w(T)),V=n.allowBlockEnd&&O(T)&&!(n.allowClassEnd===!1&&E(T)),ae=n.allowClassStart&&w(T),se=n.allowClassEnd&&E(T),ve=n.allowObjectStart&&k(T),H=n.allowObjectEnd&&A(T),he=n.allowArrayStart&&D(T),$=n.allowArrayEnd&&_(T),pe=U||ae||ve||he,K=V||se||H||$;if(I<1&&(Q=!1),N>=p&&(j=!1),R)return;let le=u.getTokenBefore(T,{includeComments:!0}),xe=u.getTokenAfter(T,{includeComments:!0});if(!pe&&Q&&!m.has(I)&&!(r.isCommentToken(le)&&r.isTokenOnSameLine(le,T))){let Le=T.range[0]-T.loc.start.column,qe=[Le,Le];s.report({node:T,messageId:"before",fix(rt){return rt.insertTextBeforeRange(qe,` -`)}})}!K&&j&&!m.has(N)&&!(r.isCommentToken(xe)&&r.isTokenOnSameLine(T,xe))&&s.report({node:T,messageId:"after",fix(Le){return Le.insertTextAfter(T,` -`)}})}return{Program(){h.forEach(T=>{T.type==="Line"?(n.beforeLineComment||n.afterLineComment)&&B(T,{after:n.afterLineComment,before:n.beforeLineComment}):T.type==="Block"?(n.beforeBlockComment||n.afterBlockComment)&&B(T,{after:n.afterBlockComment,before:n.beforeBlockComment}):T.type==="Shebang"&&n.afterHashbangComment&&B(T,{after:n.afterHashbangComment,before:!1})})}}}},s0}var i0,GD;function fV(){if(GD)return i0;GD=1;let r=Pe();return i0={meta:{type:"layout",docs:{description:"Require or disallow newlines around directives",recommended:!1,url:"https://eslint.org/docs/latest/rules/lines-around-directive"},schema:[{oneOf:[{enum:["always","never"]},{type:"object",properties:{before:{enum:["always","never"]},after:{enum:["always","never"]}},additionalProperties:!1,minProperties:2}]}],fixable:"whitespace",messages:{expected:'Expected newline {{location}} "{{value}}" directive.',unexpected:'Unexpected newline {{location}} "{{value}}" directive.'},deprecated:!0,replacedBy:["padding-line-between-statements"]},create(e){let t=e.sourceCode,s=e.options[0]||"always",n=typeof s=="string"?s:s.before,i=typeof s=="string"?s:s.after;function a(p){let h=t.getTokenBefore(p,{includeComments:!0}),f=h?h.loc.end.line:0;return p.loc.start.line-f>=2}function l(p){let h=t.getLastToken(p),f=t.getTokenBefore(h);return r.isSemicolonToken(h)&&h.loc.start.line>f.loc.end.line?f:h}function o(p){let h=l(p);return t.getTokenAfter(h,{includeComments:!0}).loc.start.line-h.loc.end.line>=2}function u(p,h,f){e.report({node:p,messageId:f?"expected":"unexpected",data:{value:p.expression.value,location:h},fix(d){let m=l(p);return f?h==="before"?d.insertTextBefore(p,` +`,u=t.getText(),c=r.createGlobalLinebreakMatcher(),p,h=0;for(;(p=c.exec(u))!==null;){if(h++,p[0]===o)continue;let f=p.index,d=[f,f+p[0].length];e.report({node:i,loc:{start:{line:h,column:t.lines[h-1].length},end:{line:h+1,column:0}},messageId:l?"expectedLF":"expectedCRLF",fix:s(d,o)})}}}}},r0}var n0,zD;function c7(){if(zD)return n0;zD=1;let r=Pe();function e(s){return s.map((i,a)=>({code:i.trim(),num:a+1})).filter(i=>!i.code).map(i=>i.num)}function t(s){let n=[];return s.forEach(i=>{let a=i.loc.start.line,l=i.loc.end.line;n.push(a,l)}),n}return n0={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Require empty lines around comments",recommended:!1,url:"https://eslint.org/docs/latest/rules/lines-around-comment"},fixable:"whitespace",schema:[{type:"object",properties:{beforeBlockComment:{type:"boolean",default:!0},afterBlockComment:{type:"boolean",default:!1},beforeLineComment:{type:"boolean",default:!1},afterLineComment:{type:"boolean",default:!1},allowBlockStart:{type:"boolean",default:!1},allowBlockEnd:{type:"boolean",default:!1},allowClassStart:{type:"boolean"},allowClassEnd:{type:"boolean"},allowObjectStart:{type:"boolean"},allowObjectEnd:{type:"boolean"},allowArrayStart:{type:"boolean"},allowArrayEnd:{type:"boolean"},ignorePattern:{type:"string"},applyDefaultIgnorePatterns:{type:"boolean"},afterHashbangComment:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{after:"Expected line after comment.",before:"Expected line before comment."}},create(s){let n=Object.assign({},s.options[0]),i=n.ignorePattern,a=r.COMMENTS_IGNORE_PATTERN,l=new RegExp(i,"u"),o=n.applyDefaultIgnorePatterns!==!1;n.beforeBlockComment=typeof n.beforeBlockComment<"u"?n.beforeBlockComment:!0;let u=s.sourceCode,c=u.lines,p=c.length+1,h=u.getAllComments(),f=t(h),d=e(c),m=new Set(f.concat(d));function g(T){let R=T;do R=u.getTokenBefore(R,{includeComments:!0});while(R&&r.isCommentToken(R));if(R&&r.isTokenOnSameLine(R,T))return!0;R=T;do R=u.getTokenAfter(R,{includeComments:!0});while(R&&r.isCommentToken(R));return!!(R&&r.isTokenOnSameLine(T,R))}function y(T,R){return T.type===R||T.body&&T.body.type===R||T.consequent&&T.consequent.type===R}function v(T){let R=u.getNodeByRangeIndex(T.range[0]);if(R&&R.type==="StaticBlock"){let j=u.getFirstToken(R,{skip:1});return T.range[0]>=j.range[0]?R:null}return R}function x(T,R){let j=v(T);if(j&&y(j,R)){let Q=j;return j.type==="StaticBlock"?Q=u.getFirstToken(j,{skip:1}):j.type==="SwitchStatement"&&(Q=u.getTokenAfter(j.discriminant,{filter:r.isOpeningBraceToken})),T.loc.start.line-Q.loc.start.line===1}return!1}function S(T,R){let j=v(T);return!!j&&y(j,R)&&j.loc.end.line-T.loc.end.line===1}function w(T){return x(T,"ClassBody")||x(T,"BlockStatement")||x(T,"StaticBlock")||x(T,"SwitchCase")||x(T,"SwitchStatement")}function O(T){return S(T,"ClassBody")||S(T,"BlockStatement")||S(T,"StaticBlock")||S(T,"SwitchCase")||S(T,"SwitchStatement")}function C(T){return x(T,"ClassBody")}function E(T){return S(T,"ClassBody")}function k(T){return x(T,"ObjectExpression")||x(T,"ObjectPattern")}function A(T){return S(T,"ObjectExpression")||S(T,"ObjectPattern")}function D(T){return x(T,"ArrayExpression")||x(T,"ArrayPattern")}function _(T){return S(T,"ArrayExpression")||S(T,"ArrayPattern")}function B(T,R){if(o&&a.test(T.value)||i&&l.test(T.value))return;let j=R.after,Q=R.before,I=T.loc.start.line-1,N=T.loc.end.line+1,F=g(T),U=n.allowBlockStart&&w(T)&&!(n.allowClassStart===!1&&C(T)),V=n.allowBlockEnd&&O(T)&&!(n.allowClassEnd===!1&&E(T)),ae=n.allowClassStart&&C(T),se=n.allowClassEnd&&E(T),xe=n.allowObjectStart&&k(T),H=n.allowObjectEnd&&A(T),he=n.allowArrayStart&&D(T),$=n.allowArrayEnd&&_(T),pe=U||ae||xe||he,K=V||se||H||$;if(I<1&&(Q=!1),N>=p&&(j=!1),F)return;let le=u.getTokenBefore(T,{includeComments:!0}),be=u.getTokenAfter(T,{includeComments:!0});if(!pe&&Q&&!m.has(I)&&!(r.isCommentToken(le)&&r.isTokenOnSameLine(le,T))){let Le=T.range[0]-T.loc.start.column,qe=[Le,Le];s.report({node:T,messageId:"before",fix(rt){return rt.insertTextBeforeRange(qe,` +`)}})}!K&&j&&!m.has(N)&&!(r.isCommentToken(be)&&r.isTokenOnSameLine(T,be))&&s.report({node:T,messageId:"after",fix(Le){return Le.insertTextAfter(T,` +`)}})}return{Program(){h.forEach(T=>{T.type==="Line"?(n.beforeLineComment||n.afterLineComment)&&B(T,{after:n.afterLineComment,before:n.beforeLineComment}):T.type==="Block"?(n.beforeBlockComment||n.afterBlockComment)&&B(T,{after:n.afterBlockComment,before:n.beforeBlockComment}):T.type==="Shebang"&&n.afterHashbangComment&&B(T,{after:n.afterHashbangComment,before:!1})})}}}},n0}var s0,ZD;function f7(){if(ZD)return s0;ZD=1;let r=Pe();return s0={meta:{type:"layout",docs:{description:"Require or disallow newlines around directives",recommended:!1,url:"https://eslint.org/docs/latest/rules/lines-around-directive"},schema:[{oneOf:[{enum:["always","never"]},{type:"object",properties:{before:{enum:["always","never"]},after:{enum:["always","never"]}},additionalProperties:!1,minProperties:2}]}],fixable:"whitespace",messages:{expected:'Expected newline {{location}} "{{value}}" directive.',unexpected:'Unexpected newline {{location}} "{{value}}" directive.'},deprecated:!0,replacedBy:["padding-line-between-statements"]},create(e){let t=e.sourceCode,s=e.options[0]||"always",n=typeof s=="string"?s:s.before,i=typeof s=="string"?s:s.after;function a(p){let h=t.getTokenBefore(p,{includeComments:!0}),f=h?h.loc.end.line:0;return p.loc.start.line-f>=2}function l(p){let h=t.getLastToken(p),f=t.getTokenBefore(h);return r.isSemicolonToken(h)&&h.loc.start.line>f.loc.end.line?f:h}function o(p){let h=l(p);return t.getTokenAfter(h,{includeComments:!0}).loc.start.line-h.loc.end.line>=2}function u(p,h,f){e.report({node:p,messageId:f?"expected":"unexpected",data:{value:p.expression.value,location:h},fix(d){let m=l(p);return f?h==="before"?d.insertTextBefore(p,` `):d.insertTextAfter(m,` -`):d.removeRange(h==="before"?[p.range[0]-1,p.range[0]]:[m.range[1],m.range[1]+1])}})}function c(p){let h=r.getDirectivePrologue(p);if(!h.length)return;let f=h[0],d=t.getCommentsBefore(f);d.length?(n==="always"&&!a(f)&&u(f,"before",!0),n==="never"&&a(f)&&u(f,"before",!1)):p.type==="Program"&&n==="never"&&!d.length&&a(f)&&u(f,"before",!1);let m=h.at(-1),g=p.type==="Program"?p.body:p.body.body;m===g.at(-1)&&!m.trailingComments||(i==="always"&&!o(m)&&u(m,"after",!0),i==="never"&&o(m)&&u(m,"after",!1))}return{Program:c,FunctionDeclaration:c,FunctionExpression:c,ArrowFunctionExpression:c}}},i0}var a0,YD;function pV(){if(YD)return a0;YD=1;let r=Pe(),e={"*":{test:()=>!0},field:{test:t=>t.type==="PropertyDefinition"},method:{test:t=>t.type==="MethodDefinition"}};return a0={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Require or disallow an empty line between class members",recommended:!1,url:"https://eslint.org/docs/latest/rules/lines-between-class-members"},fixable:"whitespace",schema:[{anyOf:[{type:"object",properties:{enforce:{type:"array",items:{type:"object",properties:{blankLine:{enum:["always","never"]},prev:{enum:["method","field","*"]},next:{enum:["method","field","*"]}},additionalProperties:!1,required:["blankLine","prev","next"]},minItems:1}},additionalProperties:!1,required:["enforce"]},{enum:["always","never"]}]},{type:"object",properties:{exceptAfterSingleLine:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{never:"Unexpected blank line between class members.",always:"Expected blank line between class members."}},create(t){let s=[];s[0]=t.options[0]||"always",s[1]=t.options[1]||{exceptAfterSingleLine:!1};let n=typeof s[0]=="object"?s[0].enforce:[{blankLine:s[0],prev:"*",next:"*"}],i=t.sourceCode;function a(h,f){let d=i.getLastToken(h),m=i.getTokenBefore(d),g=i.getFirstToken(f);return r.isSemicolonToken(d)&&!r.isTokenOnSameLine(m,d)&&r.isTokenOnSameLine(d,g)?{curLast:m,nextFirst:d}:{curLast:d,nextFirst:g}}function l(h,f,d){let m=i.getTokenAfter(h,{includeComments:!0});return m!==f&&m.loc.start.line-h.loc.end.line<=d?l(m,f,d):h}function o(h,f,d){let m=i.getTokenBefore(h,{includeComments:!0});return m!==f&&h.loc.start.line-m.loc.end.line<=d?o(m,f,d):h}function u(h,f){return i.getTokensBetween(h,f,{includeComments:!0}).length!==0}function c(h,f){return e[f].test(h)}function p(h,f){for(let d=n.length-1;d>=0;--d){let m=n[d];if(c(h,m.prev)&&c(f,m.next))return m.blankLine}return null}return{ClassBody(h){let f=h.body;for(let d=0;d1,w=u(S,C),E=l(g,y,0),k=p(f[d],f[d+1]);k==="never"&&O?t.report({node:f[d+1],messageId:"never",fix(A){return w?null:A.replaceTextRange([S.range[1],C.range[0]],` -`)}}):k==="always"&&!v&&!O&&t.report({node:f[d+1],messageId:"always",fix(A){return w?null:A.insertTextAfter(E,` -`)}})}}}}},a0}var o0,HD;function hV(){if(HD)return o0;HD=1;let r=Pe(),e=new Set(["Identifier","Super","ThisExpression"]);function t(p,h){return p.type==="Identifier"&&p.name==="undefined"?r.isReferenceToGlobalVariable(h,p):p.type==="UnaryExpression"&&p.operator==="void"&&p.argument.type==="Literal"&&p.argument.value===0}function s(p){return p.type==="Identifier"&&p.name!=="undefined"||p.type==="MemberExpression"}function n(p,h){if(p.type!=="BinaryExpression"||p.operator!=="==")return!1;let f=s(p.left)?"left":"right",d=f==="left"?"right":"left";return s(p[f])&&(r.isNullLiteral(p[d])||t(p[d],h))}function i(p){return p.type==="LogicalExpression"&&p.operator==="||"&&p.left.type==="BinaryExpression"&&p.left.operator==="==="&&p.right.type==="BinaryExpression"&&p.right.operator==="==="}function a(p,h){if(!i(p))return!1;let f=s(p.left.left)?"left":"right",d=f==="left"?"right":"left",m=s(p.right.left)?"left":"right",g=m==="left"?"right":"left";return r.isSameReference(p.left[f],p.right[m])&&(r.isNullLiteral(p.left[d])&&t(p.right[g],h)||t(p.left[d],h)&&r.isNullLiteral(p.right[g]))}function l(p,h){return p.type==="CallExpression"&&p.callee.name==="Boolean"&&p.arguments.length===1&&r.isReferenceToGlobalVariable(h,p.callee)}function o(p,h){let f=p.type==="UnaryExpression"&&p.operator==="!",d=f?p.argument:p;switch(!0){case s(d):return{reference:d,operator:f?"||":"&&"};case(d.type==="UnaryExpression"&&d.operator==="!"&&s(d.argument)):return{reference:d.argument,operator:"&&"};case(l(d,h)&&s(d.arguments[0])):return{reference:d.arguments[0],operator:f?"||":"&&"};case n(p,h):return{reference:s(p.left)?p.left:p.right,operator:"??"};case a(p,h):return{reference:s(p.left.left)?p.left.left:p.left.right,operator:"??"};default:return null}}function u(p){return p.type==="Program"?!1:p.parent.type==="WithStatement"&&p.parent.body===p?!0:u(p.parent)}function c(p,h){let f=h.left;for(;f.type==="LogicalExpression"&&f.operator===h.operator;){if(r.isParenthesised(p,f))return f;f=f.left}return f}return o0={meta:{type:"suggestion",docs:{description:"Require or disallow logical assignment operator shorthand",recommended:!1,url:"https://eslint.org/docs/latest/rules/logical-assignment-operators"},schema:{type:"array",oneOf:[{items:[{const:"always"},{type:"object",properties:{enforceForIfStatements:{type:"boolean"}},additionalProperties:!1}],minItems:0,maxItems:2},{items:[{const:"never"}],minItems:1,maxItems:1}]},fixable:"code",hasSuggestions:!0,messages:{assignment:"Assignment (=) can be replaced with operator assignment ({{operator}}).",useLogicalOperator:"Convert this assignment to use the operator {{ operator }}.",logical:"Logical expression can be replaced with an assignment ({{ operator }}).",convertLogical:"Replace this logical expression with an assignment with the operator {{ operator }}.",if:"'if' statement can be replaced with a logical operator assignment with operator {{ operator }}.",convertIf:"Replace this 'if' statement with a logical assignment with operator {{ operator }}.",unexpected:"Unexpected logical operator assignment ({{operator}}) shorthand.",separate:"Separate the logical assignment into an assignment with a logical operator."}},create(p){let h=p.options[0]==="never"?"never":"always",f=h==="always"&&p.options.length>1&&p.options[1].enforceForIfStatements,d=p.sourceCode,m=d.getScope(d.ast).isStrict;function g(S){return S.type==="Identifier"&&(m||!u(S))}function y(S){return!m&&u(S)?S.type==="Identifier":S.type==="MemberExpression"&&e.has(S.object.type)&&(!S.computed||S.property.type!=="MemberExpression"&&S.property.type!=="ChainExpression")}function b(S,C,O){return O?{...S,fix:C.fix}:{...S,suggest:[C]}}function v(S){return d.getFirstTokenBetween(S.left,S.right,C=>C.value===S.operator)}return h==="never"?{AssignmentExpression(S){if(!r.isLogicalAssignmentOperator(S.operator))return;let C={messageId:"unexpected",node:S,data:{operator:S.operator}},O={messageId:"separate",*fix(w){if(d.getCommentsInside(S).length>0)return;let E=v(S);yield w.replaceText(E,"=");let k=d.getText(S.left),A=S.operator.slice(0,-1);yield w.insertTextAfter(E,` ${k} ${A}`);let D=r.getPrecedence(S.right)<=r.getPrecedence({type:"LogicalExpression",operator:A}),_=S.operator==="??="&&r.isLogicalExpression(S.right);!r.isParenthesised(d,S.right)&&(D||_)&&(yield w.insertTextBefore(S.right,"("),yield w.insertTextAfter(S.right,")"))}};p.report(b(C,O,g(S.left)))}}:{"AssignmentExpression[operator='='][right.type='LogicalExpression']"(S){let C=c(d,S.right);if(!r.isSameReference(S.left,C))return;let O={messageId:"assignment",node:S,data:{operator:`${S.right.operator}=`}},w={messageId:"useLogicalOperator",data:{operator:`${S.right.operator}=`},*fix(E){if(d.getCommentsInside(S).length>0)return;let k=v(S);yield E.insertTextBefore(k,S.right.operator);let A=v(C.parent),D=d.getTokenAfter(A);yield E.removeRange([C.parent.range[0],D.range[0]])}};p.report(b(O,w,g(S.left)))},'LogicalExpression[right.type="AssignmentExpression"][right.operator="="]'(S){if(s(S.left)&&r.isSameReference(S.left,S.right.left)){let C={messageId:"logical",node:S,data:{operator:`${S.operator}=`}},O={messageId:"convertLogical",data:{operator:`${S.operator}=`},*fix(E){if(d.getCommentsInside(S).length>0)return;let k=r.getPrecedence(S.parent),A=S.parent.type!=="ExpressionStatement"&&(k===-1||r.getPrecedence({type:"AssignmentExpression"})0)return;let B=d.getFirstToken(O),T=d.getTokenBefore(S);if(T!==null&&T.value!==";"&&T.value!=="{"&&B.type!=="Identifier"&&B.type!=="Keyword")return;let F=v(O.expression);yield _.insertTextBefore(F,E.operator),yield _.removeRange([S.range[0],O.range[0]]),yield _.removeRange([O.range[1],S.range[1]]);let j=d.getTokenAfter(O.expression);C&&j!==null&&j.value!==";"&&(yield _.insertTextAfter(S,";"))}},D=g(E.reference)||S.test.type!=="LogicalExpression"&&y(E.reference);p.report(b(k,A,D))}}}}},o0}var l0,KD;function dV(){return KD||(KD=1,l0={meta:{type:"suggestion",docs:{description:"Enforce a maximum number of classes per file",recommended:!1,url:"https://eslint.org/docs/latest/rules/max-classes-per-file"},schema:[{oneOf:[{type:"integer",minimum:1},{type:"object",properties:{ignoreExpressions:{type:"boolean"},max:{type:"integer",minimum:1}},additionalProperties:!1}]}],messages:{maximumExceeded:"File has too many classes ({{ classCount }}). Maximum allowed is {{ max }}."}},create(r){let[e={}]=r.options,[t,s]=typeof e=="number"?[!1,e||1]:[e.ignoreExpressions,e.max||1],n=0;return{Program(){n=0},"Program:exit"(i){n>s&&r.report({node:i,messageId:"maximumExceeded",data:{classCount:n,max:s}})},ClassDeclaration(){n++},ClassExpression(){t||n++}}}}),l0}var u0,JD;function mV(){return JD||(JD=1,u0={meta:{type:"suggestion",docs:{description:"Enforce a maximum depth that blocks can be nested",recommended:!1,url:"https://eslint.org/docs/latest/rules/max-depth"},schema:[{oneOf:[{type:"integer",minimum:0},{type:"object",properties:{maximum:{type:"integer",minimum:0},max:{type:"integer",minimum:0}},additionalProperties:!1}]}],messages:{tooDeeply:"Blocks are nested too deeply ({{depth}}). Maximum allowed is {{maxDepth}}."}},create(r){let e=[],t=r.options[0],s=4;typeof t=="object"&&(Object.hasOwn(t,"maximum")||Object.hasOwn(t,"max"))&&(s=t.maximum||t.max),typeof t=="number"&&(s=t);function n(){e.push(0)}function i(){e.pop()}function a(o){let u=++e[e.length-1];u>s&&r.report({node:o,messageId:"tooDeeply",data:{depth:u,maxDepth:s}})}function l(){e[e.length-1]--}return{Program:n,FunctionDeclaration:n,FunctionExpression:n,ArrowFunctionExpression:n,StaticBlock:n,IfStatement(o){o.parent.type!=="IfStatement"&&a(o)},SwitchStatement:a,TryStatement:a,DoWhileStatement:a,WhileStatement:a,WithStatement:a,ForStatement:a,ForInStatement:a,ForOfStatement:a,"IfStatement:exit":l,"SwitchStatement:exit":l,"TryStatement:exit":l,"DoWhileStatement:exit":l,"WhileStatement:exit":l,"WithStatement:exit":l,"ForStatement:exit":l,"ForInStatement:exit":l,"ForOfStatement:exit":l,"FunctionDeclaration:exit":i,"FunctionExpression:exit":i,"ArrowFunctionExpression:exit":i,"StaticBlock:exit":i,"Program:exit":i}}}),u0}var c0,e_;function gV(){if(e_)return c0;e_=1;let r={type:"object",properties:{code:{type:"integer",minimum:0},comments:{type:"integer",minimum:0},tabWidth:{type:"integer",minimum:0},ignorePattern:{type:"string"},ignoreComments:{type:"boolean"},ignoreStrings:{type:"boolean"},ignoreUrls:{type:"boolean"},ignoreTemplateLiterals:{type:"boolean"},ignoreRegExpLiterals:{type:"boolean"},ignoreTrailingComments:{type:"boolean"}},additionalProperties:!1},e={anyOf:[r,{type:"integer",minimum:0}]};return c0={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Enforce a maximum line length",recommended:!1,url:"https://eslint.org/docs/latest/rules/max-len"},schema:[e,e,r],messages:{max:"This line has a length of {{lineLength}}. Maximum allowed is {{maxLength}}.",maxComment:"This line has a comment length of {{lineLength}}. Maximum allowed is {{maxCommentLength}}."}},create(t){let s=/[^:/?#]:\/\/[^?#]/u,n=t.sourceCode;function i(_,B){let T=0;return _.replace(/\t/gu,(F,j)=>{let Q=j+T,I=B?Q%B:0,N=B-I;T+=N-1}),Array.from(_).length+T}let a=Object.assign({},t.options.at(-1));typeof t.options[0]=="number"&&(a.code=t.options[0]),typeof t.options[1]=="number"&&(a.tabWidth=t.options[1]);let l=typeof a.code=="number"?a.code:80,o=typeof a.tabWidth=="number"?a.tabWidth:4,u=!!a.ignoreComments,c=!!a.ignoreStrings,p=!!a.ignoreTemplateLiterals,h=!!a.ignoreRegExpLiterals,f=!!a.ignoreTrailingComments||!!a.ignoreComments,d=!!a.ignoreUrls,m=a.comments,g=a.ignorePattern||null;g&&(g=new RegExp(g,"u"));function y(_,B,T){return T&&T.loc.start.line===B&&B<=T.loc.end.line&&(T.loc.end.line>B||T.loc.end.column===_.length)}function b(_,B,T){let F=T.loc.start,j=T.loc.end,Q=!_.slice(0,T.loc.start.column).trim();return T&&(F.lineB||j.line===B&&j.column===_.length)}function v(_){if(!_||!_.parent||_.type!=="JSXEmptyExpression"||_.parent.type!=="JSXExpressionContainer")return!1;let B=_.parent;return B.loc.start.line===B.loc.end.line}function S(_,B){return _.slice(0,B.loc.start.column).replace(/\s+$/u,"")}function C(_,B,T){Array.isArray(_[B])||(_[B]=[]),_[B].push(T)}function O(){return n.ast.tokens.filter(_=>_.type==="String"||_.type==="JSXText"&&n.getNodeByRangeIndex(_.range[0]-1).type==="JSXAttribute")}function w(){return n.ast.tokens.filter(_=>_.type==="Template")}function E(){return n.ast.tokens.filter(_=>_.type==="RegularExpression")}function k(_){let B={};for(let T=0;T<_.length;T++){let F=_[T];for(let j=F.loc.start.line;j<=F.loc.end.line;++j)C(B,j,F)}return B}function A(){let _=[];return n.getAllComments().forEach(B=>{let T=n.getNodeByRangeIndex(B.range[0]);v(T)?_.at(-1)!==T.parent&&_.push(T.parent):_.push(B)}),_}function D(_){let B=n.lines,T=u||m||f?A():[],F=0,j=O(),Q=k(j),I=w(),N=k(I),R=E(),U=k(R);B.forEach((V,ae)=>{let se=ae+1,ve=!1,H;if(Fm&&t.report({node:_,loc:pe,messageId:"maxComment",data:{lineLength:he,maxCommentLength:m}}):he>l&&t.report({node:_,loc:pe,messageId:"max",data:{lineLength:he,maxLength:l}})})}return{Program:D}}},c0}var f0,t_;function yV(){if(t_)return f0;t_=1;let r=Pe();function e(t,s){return[...Array(s-t).keys()].map(n=>n+t)}return f0={meta:{type:"suggestion",docs:{description:"Enforce a maximum number of lines per file",recommended:!1,url:"https://eslint.org/docs/latest/rules/max-lines"},schema:[{oneOf:[{type:"integer",minimum:0},{type:"object",properties:{max:{type:"integer",minimum:0},skipComments:{type:"boolean"},skipBlankLines:{type:"boolean"}},additionalProperties:!1}]}],messages:{exceed:"File has too many lines ({{actual}}). Maximum allowed is {{max}}."}},create(t){let s=t.options[0],n=300;typeof s=="object"&&Object.hasOwn(s,"max")?n=s.max:typeof s=="number"&&(n=s);let i=s&&s.skipComments,a=s&&s.skipBlankLines,l=t.sourceCode;function o(c){return c&&(c.type==="Block"||c.type==="Line")}function u(c){let p=c.loc.start.line,h=c.loc.end.line,f;f=c;do f=l.getTokenBefore(f,{includeComments:!0});while(o(f));f&&r.isTokenOnSameLine(f,c)&&(p+=1),f=c;do f=l.getTokenAfter(f,{includeComments:!0});while(o(f));return f&&r.isTokenOnSameLine(c,f)&&(h-=1),p<=h?e(p,h+1):[]}return{"Program:exit"(){let c=l.lines.map((p,h)=>({lineNumber:h+1,text:p}));if(c.length>1&&c.at(-1).text===""&&c.pop(),a&&(c=c.filter(p=>p.text.trim()!=="")),i){let p=l.getAllComments(),h=new Set(p.flatMap(u));c=c.filter(f=>!h.has(f.lineNumber))}if(c.length>n){let p={start:{line:c[n].lineNumber,column:0},end:{line:l.lines.length,column:l.lines.at(-1).length}};t.report({loc:p,messageId:"exceed",data:{max:n,actual:c.length}})}}}}},f0}var p0,r_;function xV(){if(r_)return p0;r_=1;let r=Pe(),{upperCaseFirst:e}=vi(),s={oneOf:[{type:"object",properties:{max:{type:"integer",minimum:0},skipComments:{type:"boolean"},skipBlankLines:{type:"boolean"},IIFEs:{type:"boolean"}},additionalProperties:!1},{type:"integer",minimum:1}]};function n(i){let a=new Map;return i.forEach(l=>{for(let o=l.loc.start.line;o<=l.loc.end.line;o++)a.set(o,l)}),a}return p0={meta:{type:"suggestion",docs:{description:"Enforce a maximum number of lines of code in a function",recommended:!1,url:"https://eslint.org/docs/latest/rules/max-lines-per-function"},schema:[s],messages:{exceed:"{{name}} has too many lines ({{lineCount}}). Maximum allowed is {{maxLines}}."}},create(i){let a=i.sourceCode,l=a.lines,o=i.options[0],u=50,c=!1,p=!1,h=!1;typeof o=="object"?(u=typeof o.max=="number"?o.max:50,c=!!o.skipComments,p=!!o.skipBlankLines,h=!!o.IIFEs):typeof o=="number"&&(u=o);let f=n(a.getAllComments());function d(b,v,S){let C=S.loc.start,O=S.loc.end,w=C.line===v&&!b.slice(0,C.column).trim(),E=O.line===v&&!b.slice(O.column).trim();return S&&(C.linev||E)}function m(b){return(b.type==="FunctionExpression"||b.type==="ArrowFunctionExpression")&&b.parent&&b.parent.type==="CallExpression"&&b.parent.callee===b}function g(b){return!b.parent||b!==b.parent.value?!1:b.parent.type==="MethodDefinition"?!0:b.parent.type==="Property"?b.parent.method===!0||b.parent.kind==="get"||b.parent.kind==="set":!1}function y(b){let v=g(b)?b.parent:b;if(!h&&m(v))return;let S=0;for(let C=v.loc.start.line-1;Cu){let C=e(r.getFunctionNameWithKind(b));i.report({node:v,messageId:"exceed",data:{name:C,lineCount:S,maxLines:u}})}}return{FunctionDeclaration:y,FunctionExpression:y,ArrowFunctionExpression:y}}},p0}var h0,n_;function bV(){return n_||(n_=1,h0={meta:{type:"suggestion",docs:{description:"Enforce a maximum depth that callbacks can be nested",recommended:!1,url:"https://eslint.org/docs/latest/rules/max-nested-callbacks"},schema:[{oneOf:[{type:"integer",minimum:0},{type:"object",properties:{maximum:{type:"integer",minimum:0},max:{type:"integer",minimum:0}},additionalProperties:!1}]}],messages:{exceed:"Too many nested callbacks ({{num}}). Maximum allowed is {{max}}."}},create(r){let e=r.options[0],t=10;typeof e=="object"&&(Object.hasOwn(e,"maximum")||Object.hasOwn(e,"max"))?t=e.maximum||e.max:typeof e=="number"&&(t=e);let s=[];function n(a){if(a.parent.type==="CallExpression"&&s.push(a),s.length>t){let o={num:s.length,max:t};r.report({node:a,messageId:"exceed",data:o})}}function i(){s.pop()}return{ArrowFunctionExpression:n,"ArrowFunctionExpression:exit":i,FunctionExpression:n,"FunctionExpression:exit":i}}}),h0}var d0,s_;function vV(){if(s_)return d0;s_=1;let r=Pe(),{upperCaseFirst:e}=vi();return d0={meta:{type:"suggestion",docs:{description:"Enforce a maximum number of parameters in function definitions",recommended:!1,url:"https://eslint.org/docs/latest/rules/max-params"},schema:[{oneOf:[{type:"integer",minimum:0},{type:"object",properties:{maximum:{type:"integer",minimum:0},max:{type:"integer",minimum:0}},additionalProperties:!1}]}],messages:{exceed:"{{name}} has too many parameters ({{count}}). Maximum allowed is {{max}}."}},create(t){let s=t.sourceCode,n=t.options[0],i=3;typeof n=="object"&&(Object.hasOwn(n,"maximum")||Object.hasOwn(n,"max"))&&(i=n.maximum||n.max),typeof n=="number"&&(i=n);function a(l){l.params.length>i&&t.report({loc:r.getFunctionHeadLoc(l,s),node:l,messageId:"exceed",data:{name:e(r.getFunctionNameWithKind(l)),count:l.params.length,max:i}})}return{FunctionDeclaration:a,ArrowFunctionExpression:a,FunctionExpression:a}}},d0}var m0,i_;function OV(){if(i_)return m0;i_=1;let r=Pe(),{upperCaseFirst:e}=vi();return m0={meta:{type:"suggestion",docs:{description:"Enforce a maximum number of statements allowed in function blocks",recommended:!1,url:"https://eslint.org/docs/latest/rules/max-statements"},schema:[{oneOf:[{type:"integer",minimum:0},{type:"object",properties:{maximum:{type:"integer",minimum:0},max:{type:"integer",minimum:0}},additionalProperties:!1}]},{type:"object",properties:{ignoreTopLevelFunctions:{type:"boolean"}},additionalProperties:!1}],messages:{exceed:"{{name}} has too many statements ({{count}}). Maximum allowed is {{max}}."}},create(t){let s=[],n=t.options[0],i=t.options[1]&&t.options[1].ignoreTopLevelFunctions||!1,a=[],l=10;typeof n=="object"&&(Object.hasOwn(n,"maximum")||Object.hasOwn(n,"max"))?l=n.maximum||n.max:typeof n=="number"&&(l=n);function o(h,f,d){if(f>d){let m=e(r.getFunctionNameWithKind(h));t.report({node:h,messageId:"exceed",data:{name:m,count:f,max:d}})}}function u(){s.push(0)}function c(h){let f=s.pop();h.type!=="StaticBlock"&&(i&&s.length===0?a.push({node:h,count:f}):o(h,f,l))}function p(h){s[s.length-1]+=h.body.length}return{FunctionDeclaration:u,FunctionExpression:u,ArrowFunctionExpression:u,StaticBlock:u,BlockStatement:p,"FunctionDeclaration:exit":c,"FunctionExpression:exit":c,"ArrowFunctionExpression:exit":c,"StaticBlock:exit":c,"Program:exit"(){a.length!==1&&a.forEach(h=>{let f=h.count,d=h.node;o(d,f,l)})}}}},m0}var g0,a_;function SV(){if(a_)return g0;a_=1;let r=Pe();return g0={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Enforce a maximum number of statements allowed per line",recommended:!1,url:"https://eslint.org/docs/latest/rules/max-statements-per-line"},schema:[{type:"object",properties:{max:{type:"integer",minimum:1,default:1}},additionalProperties:!1}],messages:{exceed:"This line has {{numberOfStatementsOnThisLine}} {{statements}}. Maximum allowed is {{maxStatementsPerLine}}."}},create(e){let t=e.sourceCode,s=e.options[0]||{},n=typeof s.max<"u"?s.max:1,i=0,a=0,l,o=/^(?:(?:DoWhile|For|ForIn|ForOf|If|Labeled|While)Statement|Export(?:Default|Named)Declaration)$/u;function u(){l&&e.report({node:l,messageId:"exceed",data:{numberOfStatementsOnThisLine:a,maxStatementsPerLine:n,statements:a===1?"statement":"statements"}}),l=null}function c(f){return t.getLastToken(f,r.isNotSemicolonToken)}function p(f){let d=f.loc.start.line;o.test(f.parent.type)&&f.parent.alternate!==f||(d===i?a+=1:(u(),a=1,i=d),a===n+1&&(l=l||f))}function h(f){let d=c(f).loc.end.line;d!==i&&(u(),a=1,i=d)}return{BreakStatement:p,ClassDeclaration:p,ContinueStatement:p,DebuggerStatement:p,DoWhileStatement:p,ExpressionStatement:p,ForInStatement:p,ForOfStatement:p,ForStatement:p,FunctionDeclaration:p,IfStatement:p,ImportDeclaration:p,LabeledStatement:p,ReturnStatement:p,SwitchStatement:p,ThrowStatement:p,TryStatement:p,VariableDeclaration:p,WhileStatement:p,WithStatement:p,ExportNamedDeclaration:p,ExportDefaultDeclaration:p,ExportAllDeclaration:p,"BreakStatement:exit":h,"ClassDeclaration:exit":h,"ContinueStatement:exit":h,"DebuggerStatement:exit":h,"DoWhileStatement:exit":h,"ExpressionStatement:exit":h,"ForInStatement:exit":h,"ForOfStatement:exit":h,"ForStatement:exit":h,"FunctionDeclaration:exit":h,"IfStatement:exit":h,"ImportDeclaration:exit":h,"LabeledStatement:exit":h,"ReturnStatement:exit":h,"SwitchStatement:exit":h,"ThrowStatement:exit":h,"TryStatement:exit":h,"VariableDeclaration:exit":h,"WhileStatement:exit":h,"WithStatement:exit":h,"ExportNamedDeclaration:exit":h,"ExportDefaultDeclaration:exit":h,"ExportAllDeclaration:exit":h,"Program:exit":u}}},g0}var y0,o_;function EV(){if(o_)return y0;o_=1;let r=Pe();return y0={meta:{type:"suggestion",docs:{description:"Enforce a particular style for multiline comments",recommended:!1,url:"https://eslint.org/docs/latest/rules/multiline-comment-style"},fixable:"whitespace",schema:{anyOf:[{type:"array",items:[{enum:["starred-block","bare-block"]}],additionalItems:!1},{type:"array",items:[{enum:["separate-lines"]},{type:"object",properties:{checkJSDoc:{type:"boolean"}},additionalProperties:!1}],additionalItems:!1}]},messages:{expectedBlock:"Expected a block comment instead of consecutive line comments.",expectedBareBlock:"Expected a block comment without padding stars.",startNewline:"Expected a linebreak after '/*'.",endNewline:"Expected a linebreak before '*/'.",missingStar:"Expected a '*' at the start of this line.",alignment:"Expected this line to be aligned with the start of the comment.",expectedLines:"Expected multiple line comments instead of a block comment."}},create(e){let t=e.sourceCode,s=e.options[0]||"starred-block",i=!!(e.options[1]||{}).checkJSDoc;function a(b){return/^\s*\*/u.test(b)}function l([b]){if(b.type!=="Block")return!1;let v=b.value.split(r.LINEBREAK_MATCHER);return v.length>0&&v.every((S,C)=>(C===0||C===v.length-1?/^\s*$/u:/^\s*\*/u).test(S))}function o([b]){if(b.type!=="Block")return!1;let v=b.value.split(r.LINEBREAK_MATCHER);return/^\*\s*$/u.test(v[0])&&v.slice(1,-1).every(S=>/^\s* /u.test(S))&&/^\s*$/u.test(v.at(-1))}function u(b){let v=b.map(({value:S})=>S).filter(S=>S.trim().length).every(S=>S.startsWith(" "));return b.map(({value:S})=>v?S.replace(/^ /u,""):S)}function c(b){let v=b.value.split(r.LINEBREAK_MATCHER).filter((C,O,w)=>!(O===0||O===w.length-1)).map(C=>C.replace(/^\s*$/u,"")),S=v.map(C=>C.replace(/\s*\*/u,"")).filter(C=>C.trim().length).every(C=>C.startsWith(" "));return v.map(C=>C.replace(S?/\s*\* ?/u:/\s*\*/u,""))}function p(b){let v=b.value.split(r.LINEBREAK_MATCHER).map(O=>O.replace(/^\s*$/u,"")),S=`${t.text.slice(b.range[0]-b.loc.start.column,b.range[0])} `,C="";for(let[O,w]of v.entries()){if(!w.trim().length||O===0)continue;let[,E]=w.match(/^(\s*\*?\s*)/u);if(E.lengthC.length&&(C=k)}}return v.map(O=>{let w=O.match(/^(\s*\*?\s*)(.*)/u),[,E,k]=w;return E.length>S.length?`${E.slice(S.length-(C.length+E.length))}${k}`:E.length`${S} * ${C}`).join(` +`):d.removeRange(h==="before"?[p.range[0]-1,p.range[0]]:[m.range[1],m.range[1]+1])}})}function c(p){let h=r.getDirectivePrologue(p);if(!h.length)return;let f=h[0],d=t.getCommentsBefore(f);d.length?(n==="always"&&!a(f)&&u(f,"before",!0),n==="never"&&a(f)&&u(f,"before",!1)):p.type==="Program"&&n==="never"&&!d.length&&a(f)&&u(f,"before",!1);let m=h.at(-1),g=p.type==="Program"?p.body:p.body.body;m===g.at(-1)&&!m.trailingComments||(i==="always"&&!o(m)&&u(m,"after",!0),i==="never"&&o(m)&&u(m,"after",!1))}return{Program:c,FunctionDeclaration:c,FunctionExpression:c,ArrowFunctionExpression:c}}},s0}var i0,GD;function p7(){if(GD)return i0;GD=1;let r=Pe(),e={"*":{test:()=>!0},field:{test:t=>t.type==="PropertyDefinition"},method:{test:t=>t.type==="MethodDefinition"}};return i0={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Require or disallow an empty line between class members",recommended:!1,url:"https://eslint.org/docs/latest/rules/lines-between-class-members"},fixable:"whitespace",schema:[{anyOf:[{type:"object",properties:{enforce:{type:"array",items:{type:"object",properties:{blankLine:{enum:["always","never"]},prev:{enum:["method","field","*"]},next:{enum:["method","field","*"]}},additionalProperties:!1,required:["blankLine","prev","next"]},minItems:1}},additionalProperties:!1,required:["enforce"]},{enum:["always","never"]}]},{type:"object",properties:{exceptAfterSingleLine:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{never:"Unexpected blank line between class members.",always:"Expected blank line between class members."}},create(t){let s=[];s[0]=t.options[0]||"always",s[1]=t.options[1]||{exceptAfterSingleLine:!1};let n=typeof s[0]=="object"?s[0].enforce:[{blankLine:s[0],prev:"*",next:"*"}],i=t.sourceCode;function a(h,f){let d=i.getLastToken(h),m=i.getTokenBefore(d),g=i.getFirstToken(f);return r.isSemicolonToken(d)&&!r.isTokenOnSameLine(m,d)&&r.isTokenOnSameLine(d,g)?{curLast:m,nextFirst:d}:{curLast:d,nextFirst:g}}function l(h,f,d){let m=i.getTokenAfter(h,{includeComments:!0});return m!==f&&m.loc.start.line-h.loc.end.line<=d?l(m,f,d):h}function o(h,f,d){let m=i.getTokenBefore(h,{includeComments:!0});return m!==f&&h.loc.start.line-m.loc.end.line<=d?o(m,f,d):h}function u(h,f){return i.getTokensBetween(h,f,{includeComments:!0}).length!==0}function c(h,f){return e[f].test(h)}function p(h,f){for(let d=n.length-1;d>=0;--d){let m=n[d];if(c(h,m.prev)&&c(f,m.next))return m.blankLine}return null}return{ClassBody(h){let f=h.body;for(let d=0;d1,C=u(S,w),E=l(g,y,0),k=p(f[d],f[d+1]);k==="never"&&O?t.report({node:f[d+1],messageId:"never",fix(A){return C?null:A.replaceTextRange([S.range[1],w.range[0]],` +`)}}):k==="always"&&!x&&!O&&t.report({node:f[d+1],messageId:"always",fix(A){return C?null:A.insertTextAfter(E,` +`)}})}}}}},i0}var a0,XD;function h7(){if(XD)return a0;XD=1;let r=Pe(),e=new Set(["Identifier","Super","ThisExpression"]);function t(p,h){return p.type==="Identifier"&&p.name==="undefined"?r.isReferenceToGlobalVariable(h,p):p.type==="UnaryExpression"&&p.operator==="void"&&p.argument.type==="Literal"&&p.argument.value===0}function s(p){return p.type==="Identifier"&&p.name!=="undefined"||p.type==="MemberExpression"}function n(p,h){if(p.type!=="BinaryExpression"||p.operator!=="==")return!1;let f=s(p.left)?"left":"right",d=f==="left"?"right":"left";return s(p[f])&&(r.isNullLiteral(p[d])||t(p[d],h))}function i(p){return p.type==="LogicalExpression"&&p.operator==="||"&&p.left.type==="BinaryExpression"&&p.left.operator==="==="&&p.right.type==="BinaryExpression"&&p.right.operator==="==="}function a(p,h){if(!i(p))return!1;let f=s(p.left.left)?"left":"right",d=f==="left"?"right":"left",m=s(p.right.left)?"left":"right",g=m==="left"?"right":"left";return r.isSameReference(p.left[f],p.right[m])&&(r.isNullLiteral(p.left[d])&&t(p.right[g],h)||t(p.left[d],h)&&r.isNullLiteral(p.right[g]))}function l(p,h){return p.type==="CallExpression"&&p.callee.name==="Boolean"&&p.arguments.length===1&&r.isReferenceToGlobalVariable(h,p.callee)}function o(p,h){let f=p.type==="UnaryExpression"&&p.operator==="!",d=f?p.argument:p;switch(!0){case s(d):return{reference:d,operator:f?"||":"&&"};case(d.type==="UnaryExpression"&&d.operator==="!"&&s(d.argument)):return{reference:d.argument,operator:"&&"};case(l(d,h)&&s(d.arguments[0])):return{reference:d.arguments[0],operator:f?"||":"&&"};case n(p,h):return{reference:s(p.left)?p.left:p.right,operator:"??"};case a(p,h):return{reference:s(p.left.left)?p.left.left:p.left.right,operator:"??"};default:return null}}function u(p){return p.type==="Program"?!1:p.parent.type==="WithStatement"&&p.parent.body===p?!0:u(p.parent)}function c(p,h){let f=h.left;for(;f.type==="LogicalExpression"&&f.operator===h.operator;){if(r.isParenthesised(p,f))return f;f=f.left}return f}return a0={meta:{type:"suggestion",docs:{description:"Require or disallow logical assignment operator shorthand",recommended:!1,url:"https://eslint.org/docs/latest/rules/logical-assignment-operators"},schema:{type:"array",oneOf:[{items:[{const:"always"},{type:"object",properties:{enforceForIfStatements:{type:"boolean"}},additionalProperties:!1}],minItems:0,maxItems:2},{items:[{const:"never"}],minItems:1,maxItems:1}]},fixable:"code",hasSuggestions:!0,messages:{assignment:"Assignment (=) can be replaced with operator assignment ({{operator}}).",useLogicalOperator:"Convert this assignment to use the operator {{ operator }}.",logical:"Logical expression can be replaced with an assignment ({{ operator }}).",convertLogical:"Replace this logical expression with an assignment with the operator {{ operator }}.",if:"'if' statement can be replaced with a logical operator assignment with operator {{ operator }}.",convertIf:"Replace this 'if' statement with a logical assignment with operator {{ operator }}.",unexpected:"Unexpected logical operator assignment ({{operator}}) shorthand.",separate:"Separate the logical assignment into an assignment with a logical operator."}},create(p){let h=p.options[0]==="never"?"never":"always",f=h==="always"&&p.options.length>1&&p.options[1].enforceForIfStatements,d=p.sourceCode,m=d.getScope(d.ast).isStrict;function g(S){return S.type==="Identifier"&&(m||!u(S))}function y(S){return!m&&u(S)?S.type==="Identifier":S.type==="MemberExpression"&&e.has(S.object.type)&&(!S.computed||S.property.type!=="MemberExpression"&&S.property.type!=="ChainExpression")}function v(S,w,O){return O?{...S,fix:w.fix}:{...S,suggest:[w]}}function x(S){return d.getFirstTokenBetween(S.left,S.right,w=>w.value===S.operator)}return h==="never"?{AssignmentExpression(S){if(!r.isLogicalAssignmentOperator(S.operator))return;let w={messageId:"unexpected",node:S,data:{operator:S.operator}},O={messageId:"separate",*fix(C){if(d.getCommentsInside(S).length>0)return;let E=x(S);yield C.replaceText(E,"=");let k=d.getText(S.left),A=S.operator.slice(0,-1);yield C.insertTextAfter(E,` ${k} ${A}`);let D=r.getPrecedence(S.right)<=r.getPrecedence({type:"LogicalExpression",operator:A}),_=S.operator==="??="&&r.isLogicalExpression(S.right);!r.isParenthesised(d,S.right)&&(D||_)&&(yield C.insertTextBefore(S.right,"("),yield C.insertTextAfter(S.right,")"))}};p.report(v(w,O,g(S.left)))}}:{"AssignmentExpression[operator='='][right.type='LogicalExpression']"(S){let w=c(d,S.right);if(!r.isSameReference(S.left,w))return;let O={messageId:"assignment",node:S,data:{operator:`${S.right.operator}=`}},C={messageId:"useLogicalOperator",data:{operator:`${S.right.operator}=`},*fix(E){if(d.getCommentsInside(S).length>0)return;let k=x(S);yield E.insertTextBefore(k,S.right.operator);let A=x(w.parent),D=d.getTokenAfter(A);yield E.removeRange([w.parent.range[0],D.range[0]])}};p.report(v(O,C,g(S.left)))},'LogicalExpression[right.type="AssignmentExpression"][right.operator="="]'(S){if(s(S.left)&&r.isSameReference(S.left,S.right.left)){let w={messageId:"logical",node:S,data:{operator:`${S.operator}=`}},O={messageId:"convertLogical",data:{operator:`${S.operator}=`},*fix(E){if(d.getCommentsInside(S).length>0)return;let k=r.getPrecedence(S.parent),A=S.parent.type!=="ExpressionStatement"&&(k===-1||r.getPrecedence({type:"AssignmentExpression"})0)return;let B=d.getFirstToken(O),T=d.getTokenBefore(S);if(T!==null&&T.value!==";"&&T.value!=="{"&&B.type!=="Identifier"&&B.type!=="Keyword")return;let R=x(O.expression);yield _.insertTextBefore(R,E.operator),yield _.removeRange([S.range[0],O.range[0]]),yield _.removeRange([O.range[1],S.range[1]]);let j=d.getTokenAfter(O.expression);w&&j!==null&&j.value!==";"&&(yield _.insertTextAfter(S,";"))}},D=g(E.reference)||S.test.type!=="LogicalExpression"&&y(E.reference);p.report(v(k,A,D))}}}}},a0}var o0,YD;function d7(){return YD||(YD=1,o0={meta:{type:"suggestion",docs:{description:"Enforce a maximum number of classes per file",recommended:!1,url:"https://eslint.org/docs/latest/rules/max-classes-per-file"},schema:[{oneOf:[{type:"integer",minimum:1},{type:"object",properties:{ignoreExpressions:{type:"boolean"},max:{type:"integer",minimum:1}},additionalProperties:!1}]}],messages:{maximumExceeded:"File has too many classes ({{ classCount }}). Maximum allowed is {{ max }}."}},create(r){let[e={}]=r.options,[t,s]=typeof e=="number"?[!1,e||1]:[e.ignoreExpressions,e.max||1],n=0;return{Program(){n=0},"Program:exit"(i){n>s&&r.report({node:i,messageId:"maximumExceeded",data:{classCount:n,max:s}})},ClassDeclaration(){n++},ClassExpression(){t||n++}}}}),o0}var l0,HD;function m7(){return HD||(HD=1,l0={meta:{type:"suggestion",docs:{description:"Enforce a maximum depth that blocks can be nested",recommended:!1,url:"https://eslint.org/docs/latest/rules/max-depth"},schema:[{oneOf:[{type:"integer",minimum:0},{type:"object",properties:{maximum:{type:"integer",minimum:0},max:{type:"integer",minimum:0}},additionalProperties:!1}]}],messages:{tooDeeply:"Blocks are nested too deeply ({{depth}}). Maximum allowed is {{maxDepth}}."}},create(r){let e=[],t=r.options[0],s=4;typeof t=="object"&&(Object.hasOwn(t,"maximum")||Object.hasOwn(t,"max"))&&(s=t.maximum||t.max),typeof t=="number"&&(s=t);function n(){e.push(0)}function i(){e.pop()}function a(o){let u=++e[e.length-1];u>s&&r.report({node:o,messageId:"tooDeeply",data:{depth:u,maxDepth:s}})}function l(){e[e.length-1]--}return{Program:n,FunctionDeclaration:n,FunctionExpression:n,ArrowFunctionExpression:n,StaticBlock:n,IfStatement(o){o.parent.type!=="IfStatement"&&a(o)},SwitchStatement:a,TryStatement:a,DoWhileStatement:a,WhileStatement:a,WithStatement:a,ForStatement:a,ForInStatement:a,ForOfStatement:a,"IfStatement:exit":l,"SwitchStatement:exit":l,"TryStatement:exit":l,"DoWhileStatement:exit":l,"WhileStatement:exit":l,"WithStatement:exit":l,"ForStatement:exit":l,"ForInStatement:exit":l,"ForOfStatement:exit":l,"FunctionDeclaration:exit":i,"FunctionExpression:exit":i,"ArrowFunctionExpression:exit":i,"StaticBlock:exit":i,"Program:exit":i}}}),l0}var u0,KD;function g7(){if(KD)return u0;KD=1;let r={type:"object",properties:{code:{type:"integer",minimum:0},comments:{type:"integer",minimum:0},tabWidth:{type:"integer",minimum:0},ignorePattern:{type:"string"},ignoreComments:{type:"boolean"},ignoreStrings:{type:"boolean"},ignoreUrls:{type:"boolean"},ignoreTemplateLiterals:{type:"boolean"},ignoreRegExpLiterals:{type:"boolean"},ignoreTrailingComments:{type:"boolean"}},additionalProperties:!1},e={anyOf:[r,{type:"integer",minimum:0}]};return u0={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Enforce a maximum line length",recommended:!1,url:"https://eslint.org/docs/latest/rules/max-len"},schema:[e,e,r],messages:{max:"This line has a length of {{lineLength}}. Maximum allowed is {{maxLength}}.",maxComment:"This line has a comment length of {{lineLength}}. Maximum allowed is {{maxCommentLength}}."}},create(t){let s=/[^:/?#]:\/\/[^?#]/u,n=t.sourceCode;function i(_,B){let T=0;return _.replace(/\t/gu,(R,j)=>{let Q=j+T,I=B?Q%B:0,N=B-I;T+=N-1}),Array.from(_).length+T}let a=Object.assign({},t.options.at(-1));typeof t.options[0]=="number"&&(a.code=t.options[0]),typeof t.options[1]=="number"&&(a.tabWidth=t.options[1]);let l=typeof a.code=="number"?a.code:80,o=typeof a.tabWidth=="number"?a.tabWidth:4,u=!!a.ignoreComments,c=!!a.ignoreStrings,p=!!a.ignoreTemplateLiterals,h=!!a.ignoreRegExpLiterals,f=!!a.ignoreTrailingComments||!!a.ignoreComments,d=!!a.ignoreUrls,m=a.comments,g=a.ignorePattern||null;g&&(g=new RegExp(g,"u"));function y(_,B,T){return T&&T.loc.start.line===B&&B<=T.loc.end.line&&(T.loc.end.line>B||T.loc.end.column===_.length)}function v(_,B,T){let R=T.loc.start,j=T.loc.end,Q=!_.slice(0,T.loc.start.column).trim();return T&&(R.lineB||j.line===B&&j.column===_.length)}function x(_){if(!_||!_.parent||_.type!=="JSXEmptyExpression"||_.parent.type!=="JSXExpressionContainer")return!1;let B=_.parent;return B.loc.start.line===B.loc.end.line}function S(_,B){return _.slice(0,B.loc.start.column).replace(/\s+$/u,"")}function w(_,B,T){Array.isArray(_[B])||(_[B]=[]),_[B].push(T)}function O(){return n.ast.tokens.filter(_=>_.type==="String"||_.type==="JSXText"&&n.getNodeByRangeIndex(_.range[0]-1).type==="JSXAttribute")}function C(){return n.ast.tokens.filter(_=>_.type==="Template")}function E(){return n.ast.tokens.filter(_=>_.type==="RegularExpression")}function k(_){let B={};for(let T=0;T<_.length;T++){let R=_[T];for(let j=R.loc.start.line;j<=R.loc.end.line;++j)w(B,j,R)}return B}function A(){let _=[];return n.getAllComments().forEach(B=>{let T=n.getNodeByRangeIndex(B.range[0]);x(T)?_.at(-1)!==T.parent&&_.push(T.parent):_.push(B)}),_}function D(_){let B=n.lines,T=u||m||f?A():[],R=0,j=O(),Q=k(j),I=C(),N=k(I),F=E(),U=k(F);B.forEach((V,ae)=>{let se=ae+1,xe=!1,H;if(Rm&&t.report({node:_,loc:pe,messageId:"maxComment",data:{lineLength:he,maxCommentLength:m}}):he>l&&t.report({node:_,loc:pe,messageId:"max",data:{lineLength:he,maxLength:l}})})}return{Program:D}}},u0}var c0,JD;function y7(){if(JD)return c0;JD=1;let r=Pe();function e(t,s){return[...Array(s-t).keys()].map(n=>n+t)}return c0={meta:{type:"suggestion",docs:{description:"Enforce a maximum number of lines per file",recommended:!1,url:"https://eslint.org/docs/latest/rules/max-lines"},schema:[{oneOf:[{type:"integer",minimum:0},{type:"object",properties:{max:{type:"integer",minimum:0},skipComments:{type:"boolean"},skipBlankLines:{type:"boolean"}},additionalProperties:!1}]}],messages:{exceed:"File has too many lines ({{actual}}). Maximum allowed is {{max}}."}},create(t){let s=t.options[0],n=300;typeof s=="object"&&Object.hasOwn(s,"max")?n=s.max:typeof s=="number"&&(n=s);let i=s&&s.skipComments,a=s&&s.skipBlankLines,l=t.sourceCode;function o(c){return c&&(c.type==="Block"||c.type==="Line")}function u(c){let p=c.loc.start.line,h=c.loc.end.line,f;f=c;do f=l.getTokenBefore(f,{includeComments:!0});while(o(f));f&&r.isTokenOnSameLine(f,c)&&(p+=1),f=c;do f=l.getTokenAfter(f,{includeComments:!0});while(o(f));return f&&r.isTokenOnSameLine(c,f)&&(h-=1),p<=h?e(p,h+1):[]}return{"Program:exit"(){let c=l.lines.map((p,h)=>({lineNumber:h+1,text:p}));if(c.length>1&&c.at(-1).text===""&&c.pop(),a&&(c=c.filter(p=>p.text.trim()!=="")),i){let p=l.getAllComments(),h=new Set(p.flatMap(u));c=c.filter(f=>!h.has(f.lineNumber))}if(c.length>n){let p={start:{line:c[n].lineNumber,column:0},end:{line:l.lines.length,column:l.lines.at(-1).length}};t.report({loc:p,messageId:"exceed",data:{max:n,actual:c.length}})}}}}},c0}var f0,e_;function b7(){if(e_)return f0;e_=1;let r=Pe(),{upperCaseFirst:e}=xi(),s={oneOf:[{type:"object",properties:{max:{type:"integer",minimum:0},skipComments:{type:"boolean"},skipBlankLines:{type:"boolean"},IIFEs:{type:"boolean"}},additionalProperties:!1},{type:"integer",minimum:1}]};function n(i){let a=new Map;return i.forEach(l=>{for(let o=l.loc.start.line;o<=l.loc.end.line;o++)a.set(o,l)}),a}return f0={meta:{type:"suggestion",docs:{description:"Enforce a maximum number of lines of code in a function",recommended:!1,url:"https://eslint.org/docs/latest/rules/max-lines-per-function"},schema:[s],messages:{exceed:"{{name}} has too many lines ({{lineCount}}). Maximum allowed is {{maxLines}}."}},create(i){let a=i.sourceCode,l=a.lines,o=i.options[0],u=50,c=!1,p=!1,h=!1;typeof o=="object"?(u=typeof o.max=="number"?o.max:50,c=!!o.skipComments,p=!!o.skipBlankLines,h=!!o.IIFEs):typeof o=="number"&&(u=o);let f=n(a.getAllComments());function d(v,x,S){let w=S.loc.start,O=S.loc.end,C=w.line===x&&!v.slice(0,w.column).trim(),E=O.line===x&&!v.slice(O.column).trim();return S&&(w.linex||E)}function m(v){return(v.type==="FunctionExpression"||v.type==="ArrowFunctionExpression")&&v.parent&&v.parent.type==="CallExpression"&&v.parent.callee===v}function g(v){return!v.parent||v!==v.parent.value?!1:v.parent.type==="MethodDefinition"?!0:v.parent.type==="Property"?v.parent.method===!0||v.parent.kind==="get"||v.parent.kind==="set":!1}function y(v){let x=g(v)?v.parent:v;if(!h&&m(x))return;let S=0;for(let w=x.loc.start.line-1;wu){let w=e(r.getFunctionNameWithKind(v));i.report({node:x,messageId:"exceed",data:{name:w,lineCount:S,maxLines:u}})}}return{FunctionDeclaration:y,FunctionExpression:y,ArrowFunctionExpression:y}}},f0}var p0,t_;function v7(){return t_||(t_=1,p0={meta:{type:"suggestion",docs:{description:"Enforce a maximum depth that callbacks can be nested",recommended:!1,url:"https://eslint.org/docs/latest/rules/max-nested-callbacks"},schema:[{oneOf:[{type:"integer",minimum:0},{type:"object",properties:{maximum:{type:"integer",minimum:0},max:{type:"integer",minimum:0}},additionalProperties:!1}]}],messages:{exceed:"Too many nested callbacks ({{num}}). Maximum allowed is {{max}}."}},create(r){let e=r.options[0],t=10;typeof e=="object"&&(Object.hasOwn(e,"maximum")||Object.hasOwn(e,"max"))?t=e.maximum||e.max:typeof e=="number"&&(t=e);let s=[];function n(a){if(a.parent.type==="CallExpression"&&s.push(a),s.length>t){let o={num:s.length,max:t};r.report({node:a,messageId:"exceed",data:o})}}function i(){s.pop()}return{ArrowFunctionExpression:n,"ArrowFunctionExpression:exit":i,FunctionExpression:n,"FunctionExpression:exit":i}}}),p0}var h0,r_;function x7(){if(r_)return h0;r_=1;let r=Pe(),{upperCaseFirst:e}=xi();return h0={meta:{type:"suggestion",docs:{description:"Enforce a maximum number of parameters in function definitions",recommended:!1,url:"https://eslint.org/docs/latest/rules/max-params"},schema:[{oneOf:[{type:"integer",minimum:0},{type:"object",properties:{maximum:{type:"integer",minimum:0},max:{type:"integer",minimum:0}},additionalProperties:!1}]}],messages:{exceed:"{{name}} has too many parameters ({{count}}). Maximum allowed is {{max}}."}},create(t){let s=t.sourceCode,n=t.options[0],i=3;typeof n=="object"&&(Object.hasOwn(n,"maximum")||Object.hasOwn(n,"max"))&&(i=n.maximum||n.max),typeof n=="number"&&(i=n);function a(l){l.params.length>i&&t.report({loc:r.getFunctionHeadLoc(l,s),node:l,messageId:"exceed",data:{name:e(r.getFunctionNameWithKind(l)),count:l.params.length,max:i}})}return{FunctionDeclaration:a,ArrowFunctionExpression:a,FunctionExpression:a}}},h0}var d0,n_;function O7(){if(n_)return d0;n_=1;let r=Pe(),{upperCaseFirst:e}=xi();return d0={meta:{type:"suggestion",docs:{description:"Enforce a maximum number of statements allowed in function blocks",recommended:!1,url:"https://eslint.org/docs/latest/rules/max-statements"},schema:[{oneOf:[{type:"integer",minimum:0},{type:"object",properties:{maximum:{type:"integer",minimum:0},max:{type:"integer",minimum:0}},additionalProperties:!1}]},{type:"object",properties:{ignoreTopLevelFunctions:{type:"boolean"}},additionalProperties:!1}],messages:{exceed:"{{name}} has too many statements ({{count}}). Maximum allowed is {{max}}."}},create(t){let s=[],n=t.options[0],i=t.options[1]&&t.options[1].ignoreTopLevelFunctions||!1,a=[],l=10;typeof n=="object"&&(Object.hasOwn(n,"maximum")||Object.hasOwn(n,"max"))?l=n.maximum||n.max:typeof n=="number"&&(l=n);function o(h,f,d){if(f>d){let m=e(r.getFunctionNameWithKind(h));t.report({node:h,messageId:"exceed",data:{name:m,count:f,max:d}})}}function u(){s.push(0)}function c(h){let f=s.pop();h.type!=="StaticBlock"&&(i&&s.length===0?a.push({node:h,count:f}):o(h,f,l))}function p(h){s[s.length-1]+=h.body.length}return{FunctionDeclaration:u,FunctionExpression:u,ArrowFunctionExpression:u,StaticBlock:u,BlockStatement:p,"FunctionDeclaration:exit":c,"FunctionExpression:exit":c,"ArrowFunctionExpression:exit":c,"StaticBlock:exit":c,"Program:exit"(){a.length!==1&&a.forEach(h=>{let f=h.count,d=h.node;o(d,f,l)})}}}},d0}var m0,s_;function S7(){if(s_)return m0;s_=1;let r=Pe();return m0={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Enforce a maximum number of statements allowed per line",recommended:!1,url:"https://eslint.org/docs/latest/rules/max-statements-per-line"},schema:[{type:"object",properties:{max:{type:"integer",minimum:1,default:1}},additionalProperties:!1}],messages:{exceed:"This line has {{numberOfStatementsOnThisLine}} {{statements}}. Maximum allowed is {{maxStatementsPerLine}}."}},create(e){let t=e.sourceCode,s=e.options[0]||{},n=typeof s.max<"u"?s.max:1,i=0,a=0,l,o=/^(?:(?:DoWhile|For|ForIn|ForOf|If|Labeled|While)Statement|Export(?:Default|Named)Declaration)$/u;function u(){l&&e.report({node:l,messageId:"exceed",data:{numberOfStatementsOnThisLine:a,maxStatementsPerLine:n,statements:a===1?"statement":"statements"}}),l=null}function c(f){return t.getLastToken(f,r.isNotSemicolonToken)}function p(f){let d=f.loc.start.line;o.test(f.parent.type)&&f.parent.alternate!==f||(d===i?a+=1:(u(),a=1,i=d),a===n+1&&(l=l||f))}function h(f){let d=c(f).loc.end.line;d!==i&&(u(),a=1,i=d)}return{BreakStatement:p,ClassDeclaration:p,ContinueStatement:p,DebuggerStatement:p,DoWhileStatement:p,ExpressionStatement:p,ForInStatement:p,ForOfStatement:p,ForStatement:p,FunctionDeclaration:p,IfStatement:p,ImportDeclaration:p,LabeledStatement:p,ReturnStatement:p,SwitchStatement:p,ThrowStatement:p,TryStatement:p,VariableDeclaration:p,WhileStatement:p,WithStatement:p,ExportNamedDeclaration:p,ExportDefaultDeclaration:p,ExportAllDeclaration:p,"BreakStatement:exit":h,"ClassDeclaration:exit":h,"ContinueStatement:exit":h,"DebuggerStatement:exit":h,"DoWhileStatement:exit":h,"ExpressionStatement:exit":h,"ForInStatement:exit":h,"ForOfStatement:exit":h,"ForStatement:exit":h,"FunctionDeclaration:exit":h,"IfStatement:exit":h,"ImportDeclaration:exit":h,"LabeledStatement:exit":h,"ReturnStatement:exit":h,"SwitchStatement:exit":h,"ThrowStatement:exit":h,"TryStatement:exit":h,"VariableDeclaration:exit":h,"WhileStatement:exit":h,"WithStatement:exit":h,"ExportNamedDeclaration:exit":h,"ExportDefaultDeclaration:exit":h,"ExportAllDeclaration:exit":h,"Program:exit":u}}},m0}var g0,i_;function E7(){if(i_)return g0;i_=1;let r=Pe();return g0={meta:{type:"suggestion",docs:{description:"Enforce a particular style for multiline comments",recommended:!1,url:"https://eslint.org/docs/latest/rules/multiline-comment-style"},fixable:"whitespace",schema:{anyOf:[{type:"array",items:[{enum:["starred-block","bare-block"]}],additionalItems:!1},{type:"array",items:[{enum:["separate-lines"]},{type:"object",properties:{checkJSDoc:{type:"boolean"}},additionalProperties:!1}],additionalItems:!1}]},messages:{expectedBlock:"Expected a block comment instead of consecutive line comments.",expectedBareBlock:"Expected a block comment without padding stars.",startNewline:"Expected a linebreak after '/*'.",endNewline:"Expected a linebreak before '*/'.",missingStar:"Expected a '*' at the start of this line.",alignment:"Expected this line to be aligned with the start of the comment.",expectedLines:"Expected multiple line comments instead of a block comment."}},create(e){let t=e.sourceCode,s=e.options[0]||"starred-block",i=!!(e.options[1]||{}).checkJSDoc;function a(v){return/^\s*\*/u.test(v)}function l([v]){if(v.type!=="Block")return!1;let x=v.value.split(r.LINEBREAK_MATCHER);return x.length>0&&x.every((S,w)=>(w===0||w===x.length-1?/^\s*$/u:/^\s*\*/u).test(S))}function o([v]){if(v.type!=="Block")return!1;let x=v.value.split(r.LINEBREAK_MATCHER);return/^\*\s*$/u.test(x[0])&&x.slice(1,-1).every(S=>/^\s* /u.test(S))&&/^\s*$/u.test(x.at(-1))}function u(v){let x=v.map(({value:S})=>S).filter(S=>S.trim().length).every(S=>S.startsWith(" "));return v.map(({value:S})=>x?S.replace(/^ /u,""):S)}function c(v){let x=v.value.split(r.LINEBREAK_MATCHER).filter((w,O,C)=>!(O===0||O===C.length-1)).map(w=>w.replace(/^\s*$/u,"")),S=x.map(w=>w.replace(/\s*\*/u,"")).filter(w=>w.trim().length).every(w=>w.startsWith(" "));return x.map(w=>w.replace(S?/\s*\* ?/u:/\s*\*/u,""))}function p(v){let x=v.value.split(r.LINEBREAK_MATCHER).map(O=>O.replace(/^\s*$/u,"")),S=`${t.text.slice(v.range[0]-v.loc.start.column,v.range[0])} `,w="";for(let[O,C]of x.entries()){if(!C.trim().length||O===0)continue;let[,E]=C.match(/^(\s*\*?\s*)/u);if(E.lengthw.length&&(w=k)}}return x.map(O=>{let C=O.match(/^(\s*\*?\s*)(.*)/u),[,E,k]=C;return E.length>S.length?`${E.slice(S.length-(w.length+E.length))}${k}`:E.length`${S} * ${w}`).join(` `)} -${S} */`}function m(b,v){return v.map(S=>`// ${S}`).join(` -${f(b)}`)}function g(b,v){return`/* ${v.join(` -${f(b)} `)} */`}let y={"starred-block"(b){let[v]=b,S=h(b);if(!S.some(C=>C.includes("*/")))if(b.length>1)e.report({loc:{start:v.loc.start,end:b.at(-1).loc.end},messageId:"expectedBlock",fix(C){let O=[v.range[0],b.at(-1).range[1]];return S.some(w=>w.startsWith("/"))?null:C.replaceTextRange(O,d(v,S))}});else{let C=v.value.split(r.LINEBREAK_MATCHER),w=`${f(v)} *`;if(!/^\*?\s*$/u.test(C[0])){let E=v.value.startsWith("*")?v.range[0]+1:v.range[0];e.report({loc:{start:v.loc.start,end:{line:v.loc.start.line,column:v.loc.start.column+2}},messageId:"startNewline",fix:k=>k.insertTextAfterRange([E,E+2],` -${w}`)})}/^\s*$/u.test(C.at(-1))||e.report({loc:{start:{line:v.loc.end.line,column:v.loc.end.column-2},end:v.loc.end},messageId:"endNewline",fix:E=>E.replaceTextRange([v.range[1]-2,v.range[1]],` -${w}/`)});for(let E=v.loc.start.line+1;E<=v.loc.end.line;E++){let k=t.lines[E-1],A=a(k)?"alignment":"missingStar";k.startsWith(w)||e.report({loc:{start:{line:E,column:0},end:{line:E,column:k.length}},messageId:A,fix(D){let _=t.getIndexFromLoc({line:E,column:0});if(A==="alignment"){let[,j=""]=k.match(/^(\s*\*)/u)||[],Q=_+j.length;return D.replaceTextRange([_,Q],w)}let[,B=""]=k.match(/^(\s*)/u)||[],T=_+B.length,F;for(let[j,Q]of C.entries()){if(!/\S+/u.test(Q))continue;let I=t.lines[v.loc.start.line-1+j],[,N="",R=""]=I.match(/^(\s*(?:\/?\*)?(\s*))/u)||[];F=`${B.slice(N.length)}${R}`,/^\s*\//u.test(k)&&F.length===0&&(F+=" ");break}return D.replaceTextRange([_,T],`${w}${F}`)}})}}},"separate-lines"(b){let[v]=b,S=o(b);if(v.type!=="Block"||!i&&S)return;let C=h(b);S&&(C=C.slice(1,C.length-1));let O=t.getTokenAfter(v,{includeComments:!0});O&&v.loc.end.line===O.loc.start.line||e.report({loc:{start:v.loc.start,end:{line:v.loc.start.line,column:v.loc.start.column+2}},messageId:"expectedLines",fix(w){return w.replaceText(v,m(v,C))}})},"bare-block"(b){if(o(b))return;let[v]=b,S=h(b);v.type==="Line"&&S.length>1&&!S.some(C=>C.includes("*/"))&&e.report({loc:{start:v.loc.start,end:b.at(-1).loc.end},messageId:"expectedBlock",fix(C){return C.replaceTextRange([v.range[0],b.at(-1).range[1]],g(v,S))}}),l(b)&&e.report({loc:{start:v.loc.start,end:{line:v.loc.start.line,column:v.loc.start.column+2}},messageId:"expectedBareBlock",fix(C){return C.replaceText(v,g(v,S))}})}};return{Program(){return t.getAllComments().filter(b=>b.type!=="Shebang").filter(b=>!r.COMMENTS_IGNORE_PATTERN.test(b.value)).filter(b=>{let v=t.getTokenBefore(b,{includeComments:!0});return!v||v.loc.end.line{let O=t.getTokenBefore(v,{includeComments:!0});return v.type==="Line"&&S&&C[S-1].type==="Line"&&O&&O.loc.end.line===v.loc.start.line-1&&O===C[S-1]?b.at(-1).push(v):b.push([v]),b},[]).filter(b=>!(b.length===1&&b[0].loc.start.line===b[0].loc.end.line)).forEach(y[s])}}}},y0}var x0,l_;function CV(){if(l_)return x0;l_=1;let r=Pe();return x0={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Enforce newlines between operands of ternary expressions",recommended:!1,url:"https://eslint.org/docs/latest/rules/multiline-ternary"},schema:[{enum:["always","always-multiline","never"]}],messages:{expectedTestCons:"Expected newline between test and consequent of ternary expression.",expectedConsAlt:"Expected newline between consequent and alternate of ternary expression.",unexpectedTestCons:"Unexpected newline between test and consequent of ternary expression.",unexpectedConsAlt:"Unexpected newline between consequent and alternate of ternary expression."},fixable:"whitespace"},create(e){let t=e.sourceCode,s=e.options[0],n=s!=="never",i=s==="always-multiline";return{ConditionalExpression(a){let l=t.getTokenAfter(a.test,r.isNotClosingParenToken),o=t.getTokenAfter(a.consequent,r.isNotClosingParenToken),u=t.getFirstToken(a),c=t.getTokenBefore(l),p=t.getTokenAfter(l),h=t.getTokenBefore(o),f=t.getTokenAfter(o),d=r.isTokenOnSameLine(c,p),m=r.isTokenOnSameLine(h,f),g=!!t.getCommentsInside(a).length;if(!n)d||e.report({node:a.test,loc:{start:u.loc.start,end:c.loc.end},messageId:"unexpectedTestCons",fix(y){if(g)return null;let b=[],v=r.isTokenOnSameLine(c,l),S=r.isTokenOnSameLine(l,p);return v||b.push(y.removeRange([c.range[1],l.range[0]])),S||b.push(y.removeRange([l.range[1],p.range[0]])),b}}),m||e.report({node:a.consequent,loc:{start:p.loc.start,end:h.loc.end},messageId:"unexpectedConsAlt",fix(y){if(g)return null;let b=[],v=r.isTokenOnSameLine(h,o),S=r.isTokenOnSameLine(o,f);return v||b.push(y.removeRange([h.range[1],o.range[0]])),S||b.push(y.removeRange([o.range[1],f.range[0]])),b}});else{if(i&&a.loc.start.line===a.loc.end.line)return;d&&e.report({node:a.test,loc:{start:u.loc.start,end:c.loc.end},messageId:"expectedTestCons",fix:y=>g?null:y.replaceTextRange([c.range[1],l.range[0]],` +${S} */`}function m(v,x){return x.map(S=>`// ${S}`).join(` +${f(v)}`)}function g(v,x){return`/* ${x.join(` +${f(v)} `)} */`}let y={"starred-block"(v){let[x]=v,S=h(v);if(!S.some(w=>w.includes("*/")))if(v.length>1)e.report({loc:{start:x.loc.start,end:v.at(-1).loc.end},messageId:"expectedBlock",fix(w){let O=[x.range[0],v.at(-1).range[1]];return S.some(C=>C.startsWith("/"))?null:w.replaceTextRange(O,d(x,S))}});else{let w=x.value.split(r.LINEBREAK_MATCHER),C=`${f(x)} *`;if(!/^\*?\s*$/u.test(w[0])){let E=x.value.startsWith("*")?x.range[0]+1:x.range[0];e.report({loc:{start:x.loc.start,end:{line:x.loc.start.line,column:x.loc.start.column+2}},messageId:"startNewline",fix:k=>k.insertTextAfterRange([E,E+2],` +${C}`)})}/^\s*$/u.test(w.at(-1))||e.report({loc:{start:{line:x.loc.end.line,column:x.loc.end.column-2},end:x.loc.end},messageId:"endNewline",fix:E=>E.replaceTextRange([x.range[1]-2,x.range[1]],` +${C}/`)});for(let E=x.loc.start.line+1;E<=x.loc.end.line;E++){let k=t.lines[E-1],A=a(k)?"alignment":"missingStar";k.startsWith(C)||e.report({loc:{start:{line:E,column:0},end:{line:E,column:k.length}},messageId:A,fix(D){let _=t.getIndexFromLoc({line:E,column:0});if(A==="alignment"){let[,j=""]=k.match(/^(\s*\*)/u)||[],Q=_+j.length;return D.replaceTextRange([_,Q],C)}let[,B=""]=k.match(/^(\s*)/u)||[],T=_+B.length,R;for(let[j,Q]of w.entries()){if(!/\S+/u.test(Q))continue;let I=t.lines[x.loc.start.line-1+j],[,N="",F=""]=I.match(/^(\s*(?:\/?\*)?(\s*))/u)||[];R=`${B.slice(N.length)}${F}`,/^\s*\//u.test(k)&&R.length===0&&(R+=" ");break}return D.replaceTextRange([_,T],`${C}${R}`)}})}}},"separate-lines"(v){let[x]=v,S=o(v);if(x.type!=="Block"||!i&&S)return;let w=h(v);S&&(w=w.slice(1,w.length-1));let O=t.getTokenAfter(x,{includeComments:!0});O&&x.loc.end.line===O.loc.start.line||e.report({loc:{start:x.loc.start,end:{line:x.loc.start.line,column:x.loc.start.column+2}},messageId:"expectedLines",fix(C){return C.replaceText(x,m(x,w))}})},"bare-block"(v){if(o(v))return;let[x]=v,S=h(v);x.type==="Line"&&S.length>1&&!S.some(w=>w.includes("*/"))&&e.report({loc:{start:x.loc.start,end:v.at(-1).loc.end},messageId:"expectedBlock",fix(w){return w.replaceTextRange([x.range[0],v.at(-1).range[1]],g(x,S))}}),l(v)&&e.report({loc:{start:x.loc.start,end:{line:x.loc.start.line,column:x.loc.start.column+2}},messageId:"expectedBareBlock",fix(w){return w.replaceText(x,g(x,S))}})}};return{Program(){return t.getAllComments().filter(v=>v.type!=="Shebang").filter(v=>!r.COMMENTS_IGNORE_PATTERN.test(v.value)).filter(v=>{let x=t.getTokenBefore(v,{includeComments:!0});return!x||x.loc.end.line{let O=t.getTokenBefore(x,{includeComments:!0});return x.type==="Line"&&S&&w[S-1].type==="Line"&&O&&O.loc.end.line===x.loc.start.line-1&&O===w[S-1]?v.at(-1).push(x):v.push([x]),v},[]).filter(v=>!(v.length===1&&v[0].loc.start.line===v[0].loc.end.line)).forEach(y[s])}}}},g0}var y0,a_;function w7(){if(a_)return y0;a_=1;let r=Pe();return y0={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Enforce newlines between operands of ternary expressions",recommended:!1,url:"https://eslint.org/docs/latest/rules/multiline-ternary"},schema:[{enum:["always","always-multiline","never"]}],messages:{expectedTestCons:"Expected newline between test and consequent of ternary expression.",expectedConsAlt:"Expected newline between consequent and alternate of ternary expression.",unexpectedTestCons:"Unexpected newline between test and consequent of ternary expression.",unexpectedConsAlt:"Unexpected newline between consequent and alternate of ternary expression."},fixable:"whitespace"},create(e){let t=e.sourceCode,s=e.options[0],n=s!=="never",i=s==="always-multiline";return{ConditionalExpression(a){let l=t.getTokenAfter(a.test,r.isNotClosingParenToken),o=t.getTokenAfter(a.consequent,r.isNotClosingParenToken),u=t.getFirstToken(a),c=t.getTokenBefore(l),p=t.getTokenAfter(l),h=t.getTokenBefore(o),f=t.getTokenAfter(o),d=r.isTokenOnSameLine(c,p),m=r.isTokenOnSameLine(h,f),g=!!t.getCommentsInside(a).length;if(!n)d||e.report({node:a.test,loc:{start:u.loc.start,end:c.loc.end},messageId:"unexpectedTestCons",fix(y){if(g)return null;let v=[],x=r.isTokenOnSameLine(c,l),S=r.isTokenOnSameLine(l,p);return x||v.push(y.removeRange([c.range[1],l.range[0]])),S||v.push(y.removeRange([l.range[1],p.range[0]])),v}}),m||e.report({node:a.consequent,loc:{start:p.loc.start,end:h.loc.end},messageId:"unexpectedConsAlt",fix(y){if(g)return null;let v=[],x=r.isTokenOnSameLine(h,o),S=r.isTokenOnSameLine(o,f);return x||v.push(y.removeRange([h.range[1],o.range[0]])),S||v.push(y.removeRange([o.range[1],f.range[0]])),v}});else{if(i&&a.loc.start.line===a.loc.end.line)return;d&&e.report({node:a.test,loc:{start:u.loc.start,end:c.loc.end},messageId:"expectedTestCons",fix:y=>g?null:y.replaceTextRange([c.range[1],l.range[0]],` `)}),m&&e.report({node:a.consequent,loc:{start:p.loc.start,end:h.loc.end},messageId:"expectedConsAlt",fix:y=>g?null:y.replaceTextRange([h.range[1],o.range[0]],` -`)})}}}}},x0}var b0,u_;function wV(){if(u_)return b0;u_=1;let r=Pe(),e=["Array","Boolean","Date","Error","Function","Number","Object","RegExp","String","Symbol","BigInt"];function t(i,a,l){if(Object.hasOwn(i,a)&&!Array.isArray(i[a]))throw new TypeError(`${a}, if provided, must be an Array`);return i[a]||l}function s(i,a){return i[a]=!0,i}function n(i){let a=t(i,"capIsNewExceptions",e);return a!==e&&(a=a.concat(e)),a.reduce(s,{})}return b0={meta:{type:"suggestion",docs:{description:"Require constructor names to begin with a capital letter",recommended:!1,url:"https://eslint.org/docs/latest/rules/new-cap"},schema:[{type:"object",properties:{newIsCap:{type:"boolean",default:!0},capIsNew:{type:"boolean",default:!0},newIsCapExceptions:{type:"array",items:{type:"string"}},newIsCapExceptionPattern:{type:"string"},capIsNewExceptions:{type:"array",items:{type:"string"}},capIsNewExceptionPattern:{type:"string"},properties:{type:"boolean",default:!0}},additionalProperties:!1}],messages:{upper:"A function with a name starting with an uppercase letter should only be used as a constructor.",lower:"A constructor name should not start with a lowercase letter."}},create(i){let a=Object.assign({},i.options[0]);a.newIsCap=a.newIsCap!==!1,a.capIsNew=a.capIsNew!==!1;let l=a.properties===!1,o=t(a,"newIsCapExceptions",[]).reduce(s,{}),u=a.newIsCapExceptionPattern?new RegExp(a.newIsCapExceptionPattern,"u"):null,c=n(a),p=a.capIsNewExceptionPattern?new RegExp(a.capIsNewExceptionPattern,"u"):null,h={},f=i.sourceCode;function d(b){return b.callee.type==="Identifier"?b.callee.name:r.getStaticPropertyName(b.callee)||""}function m(b){let v=b.charAt(0),S=v.toLowerCase(),C=v.toUpperCase();return S===C?"non-alpha":v===S?"lower":"upper"}function g(b,v,S,C){let O=f.getText(v.callee);if(b[S]||b[O]||C&&C.test(O))return!0;let w=r.skipChainExpression(v.callee);return S==="UTC"&&w.type==="MemberExpression"?w.object.type==="Identifier"&&w.object.name==="Date":l&&w.type==="MemberExpression"}function y(b,v){let S=r.skipChainExpression(b.callee);S.type==="MemberExpression"&&(S=S.property),i.report({node:b,loc:S.loc,messageId:v})}return a.newIsCap&&(h.NewExpression=function(b){let v=d(b);v&&(m(v)!=="lower"||g(o,b,v,u)||y(b,"lower"))}),a.capIsNew&&(h.CallExpression=function(b){let v=d(b);v&&(m(v)!=="upper"||g(c,b,v,p)||y(b,"upper"))}),h}},b0}var v0,c_;function kV(){if(c_)return v0;c_=1;let r=Pe();return v0={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Enforce or disallow parentheses when invoking a constructor with no arguments",recommended:!1,url:"https://eslint.org/docs/latest/rules/new-parens"},fixable:"code",schema:[{enum:["always","never"]}],messages:{missing:"Missing '()' invoking a constructor.",unnecessary:"Unnecessary '()' invoking a constructor with no arguments."}},create(e){let s=e.options[0]!=="never",n=e.sourceCode;return{NewExpression(i){if(i.arguments.length!==0)return;let a=n.getLastToken(i),o=a&&r.isClosingParenToken(a)&&r.isOpeningParenToken(n.getTokenBefore(a))&&i.callee.range[1]u.insertTextAfter(i,"()")}):o&&e.report({node:i,messageId:"unnecessary",fix:u=>[u.remove(n.getTokenBefore(a)),u.remove(a),u.insertTextBefore(i,"("),u.insertTextAfter(i,")")]})}}}},v0}var O0,f_;function AV(){if(f_)return O0;f_=1;let r=Pe();return O0={meta:{type:"layout",docs:{description:"Require or disallow an empty line after variable declarations",recommended:!1,url:"https://eslint.org/docs/latest/rules/newline-after-var"},schema:[{enum:["never","always"]}],fixable:"whitespace",messages:{expected:"Expected blank line after variable declarations.",unexpected:"Unexpected blank line after variable declarations."},deprecated:!0,replacedBy:["padding-line-between-statements"]},create(e){let t=e.sourceCode,s=e.options[0]==="never"?"never":"always",n=t.getAllComments().reduce((f,d)=>(f[d.loc.start.line]=d.loc.end.line,f),{});function i(f){let d=t.getLastToken(f);if(d.type==="Punctuator"&&d.value===";"){let m=t.getTokenBefore(d);if(m.loc.end.line!==d.loc.start.line)return m}return d}function a(f){return f==="var"||f==="let"||f==="const"}function l(f){return f==="ForStatement"||f==="ForInStatement"||f==="ForOfStatement"}function o(f){return f==="ExportNamedDeclaration"||f==="ExportSpecifier"||f==="ExportDefaultDeclaration"||f==="ExportAllDeclaration"}function u(f){let d=t.getTokenAfter(f);return!d||d.type==="Punctuator"&&d.value==="}"}function c(f){let d=n[f];return n[d+1]?c(d+1):d}function p(f,d){return f.loc.start.line>c(d)+1}function h(f){let d=i(f),m=d===t.getLastToken(f)?t.getTokenAfter(f):t.getLastToken(f),g=d.loc.end.line+1;if(!m||l(f.parent.type)||o(f.parent.type)||m.type==="Keyword"&&a(m.value)||u(f))return;let y=m.loc.start.line>g,b=typeof n[g]<"u";s==="never"&&y&&!b&&e.report({node:f,messageId:"unexpected",fix(v){let S=t.getText().slice(d.range[1],m.range[0]).split(r.LINEBREAK_MATCHER);return v.replaceTextRange([d.range[1],m.range[0]],`${S.slice(0,-1).join("")} -${S.at(-1)}`)}}),s==="always"&&(!y||b&&!p(m,g))&&e.report({node:f,messageId:"expected",fix(v){return(y?c(g):d.loc.end.line)===m.loc.start.line?v.insertTextBefore(m,` +`)})}}}}},y0}var b0,o_;function C7(){if(o_)return b0;o_=1;let r=Pe(),e=["Array","Boolean","Date","Error","Function","Number","Object","RegExp","String","Symbol","BigInt"];function t(i,a,l){if(Object.hasOwn(i,a)&&!Array.isArray(i[a]))throw new TypeError(`${a}, if provided, must be an Array`);return i[a]||l}function s(i,a){return i[a]=!0,i}function n(i){let a=t(i,"capIsNewExceptions",e);return a!==e&&(a=a.concat(e)),a.reduce(s,{})}return b0={meta:{type:"suggestion",docs:{description:"Require constructor names to begin with a capital letter",recommended:!1,url:"https://eslint.org/docs/latest/rules/new-cap"},schema:[{type:"object",properties:{newIsCap:{type:"boolean",default:!0},capIsNew:{type:"boolean",default:!0},newIsCapExceptions:{type:"array",items:{type:"string"}},newIsCapExceptionPattern:{type:"string"},capIsNewExceptions:{type:"array",items:{type:"string"}},capIsNewExceptionPattern:{type:"string"},properties:{type:"boolean",default:!0}},additionalProperties:!1}],messages:{upper:"A function with a name starting with an uppercase letter should only be used as a constructor.",lower:"A constructor name should not start with a lowercase letter."}},create(i){let a=Object.assign({},i.options[0]);a.newIsCap=a.newIsCap!==!1,a.capIsNew=a.capIsNew!==!1;let l=a.properties===!1,o=t(a,"newIsCapExceptions",[]).reduce(s,{}),u=a.newIsCapExceptionPattern?new RegExp(a.newIsCapExceptionPattern,"u"):null,c=n(a),p=a.capIsNewExceptionPattern?new RegExp(a.capIsNewExceptionPattern,"u"):null,h={},f=i.sourceCode;function d(v){return v.callee.type==="Identifier"?v.callee.name:r.getStaticPropertyName(v.callee)||""}function m(v){let x=v.charAt(0),S=x.toLowerCase(),w=x.toUpperCase();return S===w?"non-alpha":x===S?"lower":"upper"}function g(v,x,S,w){let O=f.getText(x.callee);if(v[S]||v[O]||w&&w.test(O))return!0;let C=r.skipChainExpression(x.callee);return S==="UTC"&&C.type==="MemberExpression"?C.object.type==="Identifier"&&C.object.name==="Date":l&&C.type==="MemberExpression"}function y(v,x){let S=r.skipChainExpression(v.callee);S.type==="MemberExpression"&&(S=S.property),i.report({node:v,loc:S.loc,messageId:x})}return a.newIsCap&&(h.NewExpression=function(v){let x=d(v);x&&(m(x)!=="lower"||g(o,v,x,u)||y(v,"lower"))}),a.capIsNew&&(h.CallExpression=function(v){let x=d(v);x&&(m(x)!=="upper"||g(c,v,x,p)||y(v,"upper"))}),h}},b0}var v0,l_;function k7(){if(l_)return v0;l_=1;let r=Pe();return v0={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Enforce or disallow parentheses when invoking a constructor with no arguments",recommended:!1,url:"https://eslint.org/docs/latest/rules/new-parens"},fixable:"code",schema:[{enum:["always","never"]}],messages:{missing:"Missing '()' invoking a constructor.",unnecessary:"Unnecessary '()' invoking a constructor with no arguments."}},create(e){let s=e.options[0]!=="never",n=e.sourceCode;return{NewExpression(i){if(i.arguments.length!==0)return;let a=n.getLastToken(i),o=a&&r.isClosingParenToken(a)&&r.isOpeningParenToken(n.getTokenBefore(a))&&i.callee.range[1]u.insertTextAfter(i,"()")}):o&&e.report({node:i,messageId:"unnecessary",fix:u=>[u.remove(n.getTokenBefore(a)),u.remove(a),u.insertTextBefore(i,"("),u.insertTextAfter(i,")")]})}}}},v0}var x0,u_;function A7(){if(u_)return x0;u_=1;let r=Pe();return x0={meta:{type:"layout",docs:{description:"Require or disallow an empty line after variable declarations",recommended:!1,url:"https://eslint.org/docs/latest/rules/newline-after-var"},schema:[{enum:["never","always"]}],fixable:"whitespace",messages:{expected:"Expected blank line after variable declarations.",unexpected:"Unexpected blank line after variable declarations."},deprecated:!0,replacedBy:["padding-line-between-statements"]},create(e){let t=e.sourceCode,s=e.options[0]==="never"?"never":"always",n=t.getAllComments().reduce((f,d)=>(f[d.loc.start.line]=d.loc.end.line,f),{});function i(f){let d=t.getLastToken(f);if(d.type==="Punctuator"&&d.value===";"){let m=t.getTokenBefore(d);if(m.loc.end.line!==d.loc.start.line)return m}return d}function a(f){return f==="var"||f==="let"||f==="const"}function l(f){return f==="ForStatement"||f==="ForInStatement"||f==="ForOfStatement"}function o(f){return f==="ExportNamedDeclaration"||f==="ExportSpecifier"||f==="ExportDefaultDeclaration"||f==="ExportAllDeclaration"}function u(f){let d=t.getTokenAfter(f);return!d||d.type==="Punctuator"&&d.value==="}"}function c(f){let d=n[f];return n[d+1]?c(d+1):d}function p(f,d){return f.loc.start.line>c(d)+1}function h(f){let d=i(f),m=d===t.getLastToken(f)?t.getTokenAfter(f):t.getLastToken(f),g=d.loc.end.line+1;if(!m||l(f.parent.type)||o(f.parent.type)||m.type==="Keyword"&&a(m.value)||u(f))return;let y=m.loc.start.line>g,v=typeof n[g]<"u";s==="never"&&y&&!v&&e.report({node:f,messageId:"unexpected",fix(x){let S=t.getText().slice(d.range[1],m.range[0]).split(r.LINEBREAK_MATCHER);return x.replaceTextRange([d.range[1],m.range[0]],`${S.slice(0,-1).join("")} +${S.at(-1)}`)}}),s==="always"&&(!y||v&&!p(m,g))&&e.report({node:f,messageId:"expected",fix(x){return(y?c(g):d.loc.end.line)===m.loc.start.line?x.insertTextBefore(m,` -`):v.insertTextBeforeRange([m.range[0]-m.loc.start.column,m.range[1]],` -`)}})}return{VariableDeclaration:h}}},O0}var S0,p_;function PV(){return p_||(p_=1,S0={meta:{type:"layout",docs:{description:"Require an empty line before `return` statements",recommended:!1,url:"https://eslint.org/docs/latest/rules/newline-before-return"},fixable:"whitespace",schema:[],messages:{expected:"Expected newline before return statement."},deprecated:!0,replacedBy:["padding-line-between-statements"]},create(r){let e=r.sourceCode;function t(o,u){let c=e.getTokenBefore(o);return u.includes(c.value)}function s(o){let u=o.parent.type;return o.parent.body?Array.isArray(o.parent.body)?o.parent.body[0]===o:o.parent.body===o:u==="IfStatement"?t(o,["else",")"]):u==="DoWhileStatement"?t(o,["do"]):u==="SwitchCase"?t(o,[":"]):t(o,[")"])}function n(o,u){let c=e.getCommentsBefore(o),p=0;return c.length&&c.forEach(h=>{p++,h.type==="Block"&&(p+=h.loc.end.line-h.loc.start.line),h.loc.start.line===u&&p--,h.loc.end.line===o.loc.start.line&&p--}),p}function i(o){let u=e.getTokenBefore(o),c;return u?c=u.loc.end.line:c=0,c}function a(o){let u=o.loc.start.line,c=i(o),p=n(o,c);return u-c-p>1}function l(o){let u=e.getCommentsBefore(o),c=u.at(-1),p=e.getTokenBefore(o);return u.length===0||c.loc.end.line===p.loc.end.line&&c.loc.end.line!==o.loc.start.line}return{ReturnStatement(o){!s(o)&&!a(o)&&r.report({node:o,messageId:"expected",fix(u){if(l(o)){let c=e.getTokenBefore(o),p=o.loc.start.line===c.loc.end.line?` +`):x.insertTextBeforeRange([m.range[0]-m.loc.start.column,m.range[1]],` +`)}})}return{VariableDeclaration:h}}},x0}var O0,c_;function P7(){return c_||(c_=1,O0={meta:{type:"layout",docs:{description:"Require an empty line before `return` statements",recommended:!1,url:"https://eslint.org/docs/latest/rules/newline-before-return"},fixable:"whitespace",schema:[],messages:{expected:"Expected newline before return statement."},deprecated:!0,replacedBy:["padding-line-between-statements"]},create(r){let e=r.sourceCode;function t(o,u){let c=e.getTokenBefore(o);return u.includes(c.value)}function s(o){let u=o.parent.type;return o.parent.body?Array.isArray(o.parent.body)?o.parent.body[0]===o:o.parent.body===o:u==="IfStatement"?t(o,["else",")"]):u==="DoWhileStatement"?t(o,["do"]):u==="SwitchCase"?t(o,[":"]):t(o,[")"])}function n(o,u){let c=e.getCommentsBefore(o),p=0;return c.length&&c.forEach(h=>{p++,h.type==="Block"&&(p+=h.loc.end.line-h.loc.start.line),h.loc.start.line===u&&p--,h.loc.end.line===o.loc.start.line&&p--}),p}function i(o){let u=e.getTokenBefore(o),c;return u?c=u.loc.end.line:c=0,c}function a(o){let u=o.loc.start.line,c=i(o),p=n(o,c);return u-c-p>1}function l(o){let u=e.getCommentsBefore(o),c=u.at(-1),p=e.getTokenBefore(o);return u.length===0||c.loc.end.line===p.loc.end.line&&c.loc.end.line!==o.loc.start.line}return{ReturnStatement(o){!s(o)&&!a(o)&&r.report({node:o,messageId:"expected",fix(u){if(l(o)){let c=e.getTokenBefore(o),p=o.loc.start.line===c.loc.end.line?` `:` -`;return u.insertTextBefore(o,p)}return null}})}}}}),S0}var E0,h_;function TV(){if(h_)return E0;h_=1;let r=Pe();return E0={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Require a newline after each call in a method chain",recommended:!1,url:"https://eslint.org/docs/latest/rules/newline-per-chained-call"},fixable:"whitespace",schema:[{type:"object",properties:{ignoreChainWithDepth:{type:"integer",minimum:1,maximum:10,default:2}},additionalProperties:!1}],messages:{expected:"Expected line break before `{{callee}}`."}},create(e){let t=e.options[0]||{},s=t.ignoreChainWithDepth||2,n=e.sourceCode;function i(l){return l.computed?l.optional?"?.[":"[":l.optional?"?.":"."}function a(l){let o=i(l),u=n.getText(l.property).split(r.LINEBREAK_MATCHER),c=l.computed&&u.length===1?"]":"";return o+u[0]+c}return{"CallExpression:exit"(l){let o=r.skipChainExpression(l.callee);if(o.type!=="MemberExpression")return;let u=r.skipChainExpression(o.object),c=1;for(;u&&u.callee;)c+=1,u=r.skipChainExpression(r.skipChainExpression(u.callee).object);if(c>s&&r.isTokenOnSameLine(o.object,o.property)){let p=n.getTokenAfter(o.object,r.isNotClosingParenToken);e.report({node:o.property,loc:{start:p.loc.start,end:o.loc.end},messageId:"expected",data:{callee:a(o)},fix(h){return h.insertTextBefore(p,` -`)}})}}}}},E0}var C0,d_;function DV(){if(d_)return C0;d_=1;let{getStaticPropertyName:r,getVariableByName:e,skipChainExpression:t}=Pe();function s(l){return/^(alert|confirm|prompt)$/u.test(l)}function n(l,o){let u=l.references.filter(c=>c.identifier.range[0]===o.range[0]&&c.identifier.range[1]===o.range[1]);return u.length===1?u[0]:null}function i(l,o){let u=n(l,o);return u&&u.resolved&&u.resolved.defs.length>0}function a(l,o){return l.type==="global"&&o.type==="ThisExpression"?!0:o.type==="Identifier"&&(o.name==="window"||o.name==="globalThis"&&e(l,"globalThis"))?!i(l,o):!1}return C0={meta:{type:"suggestion",docs:{description:"Disallow the use of `alert`, `confirm`, and `prompt`",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-alert"},schema:[],messages:{unexpected:"Unexpected {{name}}."}},create(l){let o=l.sourceCode;return{CallExpression(u){let c=t(u.callee),p=o.getScope(u);if(c.type==="Identifier"){let h=c.name;!i(p,c)&&s(c.name)&&l.report({node:u,messageId:"unexpected",data:{name:h}})}else if(c.type==="MemberExpression"&&a(p,c.object)){let h=r(c);s(h)&&l.report({node:u,messageId:"unexpected",data:{name:h}})}}}}},C0}var w0,m_;function _V(){if(m_)return w0;m_=1;let{getVariableByName:r,isClosingParenToken:e,isOpeningParenToken:t,isStartOfExpressionStatement:s,needsPrecedingSemicolon:n}=Pe();return w0={meta:{type:"suggestion",docs:{description:"Disallow `Array` constructors",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-array-constructor"},hasSuggestions:!0,schema:[],messages:{preferLiteral:"The array literal notation [] is preferable.",useLiteral:"Replace with an array literal.",useLiteralAfterSemicolon:"Replace with an array literal, add preceding semicolon."}},create(i){let a=i.sourceCode;function l(u){let c=a.getLastToken(u);if(!e(c))return"";let p=u.callee;do if(p=a.getTokenAfter(p),!p||p===c)return"";while(!t(p));return a.text.slice(p.range[1],c.range[0])}function o(u){if(u.callee.type!=="Identifier"||u.callee.name!=="Array"||u.arguments.length===1&&u.arguments[0].type!=="SpreadElement")return;let c=r(a.getScope(u),"Array");if(c&&c.identifiers.length===0){let p=l(u),h,f;s(u)&&n(a,u)?(h=`;[${p}]`,f="useLiteralAfterSemicolon"):(h=`[${p}]`,f="useLiteral"),i.report({node:u,messageId:"preferLiteral",suggest:[{messageId:f,fix:d=>d.replaceText(u,h)}]})}}return{CallExpression:o,NewExpression:o}}},w0}var k0,g_;function IV(){return g_||(g_=1,k0={meta:{type:"problem",docs:{description:"Disallow using an async function as a Promise executor",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-async-promise-executor"},fixable:null,schema:[],messages:{async:"Promise executor functions should not be async."}},create(r){return{"NewExpression[callee.name='Promise'][arguments.0.async=true]"(e){r.report({node:r.sourceCode.getFirstToken(e.arguments[0],t=>t.value==="async"),messageId:"async"})}}}}),k0}var A0,y_;function FV(){if(y_)return A0;y_=1;function r(t){let s=t.type;return s==="FunctionDeclaration"||s==="FunctionExpression"||s==="ArrowFunctionExpression"||s==="ForOfStatement"&&t.await===!0}function e(t,s){switch(s.type){case"ForStatement":return t===s.test||t===s.update||t===s.body;case"ForOfStatement":case"ForInStatement":return t===s.body;case"WhileStatement":case"DoWhileStatement":return t===s.test||t===s.body;default:return!1}}return A0={meta:{type:"problem",docs:{description:"Disallow `await` inside of loops",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-await-in-loop"},schema:[],messages:{unexpectedAwait:"Unexpected `await` inside a loop."}},create(t){function s(n){if(n.type==="ForOfStatement"&&!n.await)return;let i=n,a=i.parent;for(;a&&!r(a);){if(e(i,a)){t.report({node:n,messageId:"unexpectedAwait"});return}i=a,a=a.parent}}return{AwaitExpression:s,ForOfStatement:s}}},A0}var P0,x_;function RV(){if(x_)return P0;x_=1;let r=["^","|","&","<<",">>",">>>","^=","|=","&=","<<=",">>=",">>>=","~"];return P0={meta:{type:"suggestion",docs:{description:"Disallow bitwise operators",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-bitwise"},schema:[{type:"object",properties:{allow:{type:"array",items:{enum:r},uniqueItems:!0},int32Hint:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{unexpected:"Unexpected use of '{{operator}}'."}},create(e){let t=e.options[0]||{},s=t.allow||[],n=t.int32Hint===!0;function i(c){e.report({node:c,messageId:"unexpected",data:{operator:c.operator}})}function a(c){return r.includes(c.operator)}function l(c){return s.includes(c.operator)}function o(c){return n&&c.operator==="|"&&c.right&&c.right.type==="Literal"&&c.right.value===0}function u(c){a(c)&&!l(c)&&!o(c)&&i(c)}return{AssignmentExpression:u,BinaryExpression:u,UnaryExpression:u}}},P0}var T0,b_;function BV(){return b_||(b_=1,T0={meta:{deprecated:!0,replacedBy:[],type:"problem",docs:{description:"Disallow use of the `Buffer()` constructor",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-buffer-constructor"},schema:[],messages:{deprecated:"{{expr}} is deprecated. Use Buffer.from(), Buffer.alloc(), or Buffer.allocUnsafe() instead."}},create(r){return{"CallExpression[callee.name='Buffer'], NewExpression[callee.name='Buffer']"(e){r.report({node:e,messageId:"deprecated",data:{expr:e.type==="CallExpression"?"Buffer()":"new Buffer()"}})}}}}),T0}var D0,v_;function NV(){return v_||(v_=1,D0={meta:{type:"suggestion",docs:{description:"Disallow the use of `arguments.caller` or `arguments.callee`",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-caller"},schema:[],messages:{unexpected:"Avoid arguments.{{prop}}."}},create(r){return{MemberExpression(e){let t=e.object.name,s=e.property.name;t==="arguments"&&!e.computed&&s&&s.match(/^calle[er]$/u)&&r.report({node:e,messageId:"unexpected",data:{prop:s}})}}}}),D0}var _0,O_;function LV(){return O_||(O_=1,_0={meta:{type:"suggestion",docs:{description:"Disallow lexical declarations in case clauses",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-case-declarations"},schema:[],messages:{unexpected:"Unexpected lexical declaration in case block."}},create(r){function e(t){switch(t.type){case"FunctionDeclaration":case"ClassDeclaration":return!0;case"VariableDeclaration":return t.kind!=="var";default:return!1}}return{SwitchCase(t){for(let s=0;s{e.report({node:a.identifier,messageId:"class",data:{name:a.identifier.name}})})}function n(i){t.getDeclaredVariables(i).forEach(s)}return{ClassDeclaration:n,ClassExpression:n}}},F0}var R0,C_;function jV(){return C_||(C_=1,R0={meta:{type:"problem",docs:{description:"Disallow comparing against -0",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-compare-neg-zero"},fixable:null,schema:[],messages:{unexpected:"Do not use the '{{operator}}' operator to compare against -0."}},create(r){function e(s){return s.type==="UnaryExpression"&&s.operator==="-"&&s.argument.type==="Literal"&&s.argument.value===0}let t=new Set([">",">=","<","<=","==","===","!=","!=="]);return{BinaryExpression(s){t.has(s.operator)&&(e(s.left)||e(s.right))&&r.report({node:s,messageId:"unexpected",data:{operator:s.operator}})}}}}),R0}var B0,w_;function qV(){if(w_)return B0;w_=1;let r=Pe(),e=new Set(["IfStatement","WhileStatement","DoWhileStatement","ForStatement","ConditionalExpression"]),t={DoWhileStatement:"a 'do...while' statement",ForStatement:"a 'for' statement",IfStatement:"an 'if' statement",WhileStatement:"a 'while' statement"};return B0={meta:{type:"problem",docs:{description:"Disallow assignment operators in conditional expressions",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-cond-assign"},schema:[{enum:["except-parens","always"]}],messages:{unexpected:"Unexpected assignment within {{type}}.",missing:"Expected a conditional expression and instead saw an assignment."}},create(s){let n=s.options[0]||"except-parens",i=s.sourceCode;function a(p){return p.parent&&e.has(p.parent.type)&&p===p.parent.test}function l(p){let h=p;do if(a(h))return h.parent;while((h=h.parent)&&!r.isFunction(h));return null}function o(p){let h=i.getTokenBefore(p,1),f=i.getTokenAfter(p,1);return r.isParenthesised(i,p)&&h&&r.isOpeningParenToken(h)&&h.range[1]<=p.range[0]&&r.isClosingParenToken(f)&&f.range[0]>=p.range[1]}function u(p){p.test&&p.test.type==="AssignmentExpression"&&(p.type==="ForStatement"?!r.isParenthesised(i,p.test):!o(p.test))&&s.report({node:p.test,messageId:"missing"})}function c(p){let h=l(p);h&&s.report({node:p,messageId:"unexpected",data:{type:t[h.type]||h.type}})}return n==="always"?{AssignmentExpression:c}:{DoWhileStatement:u,ForStatement:u,IfStatement:u,WhileStatement:u,ConditionalExpression:u}}},B0}var N0,k_;function QV(){if(k_)return N0;k_=1;let r=Pe();function e(t){return t&&t.type==="ConditionalExpression"}return N0={meta:{deprecated:!0,replacedBy:[],type:"suggestion",docs:{description:"Disallow arrow functions where they could be confused with comparisons",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-confusing-arrow"},fixable:"code",schema:[{type:"object",properties:{allowParens:{type:"boolean",default:!0},onlyOneSimpleParam:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{confusing:"Arrow function used ambiguously with a conditional expression."}},create(t){let s=t.options[0]||{},n=s.allowParens||s.allowParens===void 0,i=s.onlyOneSimpleParam,a=t.sourceCode;function l(o){let u=o.body;e(u)&&!(n&&r.isParenthesised(a,u))&&!(i&&!(o.params.length===1&&o.params[0].type==="Identifier"))&&t.report({node:o,messageId:"confusing",fix(c){return n&&c.replaceText(o.body,`(${a.getText(o.body)})`)}})}return{ArrowFunctionExpression:l}}},N0}var L0,A_;function UV(){if(A_)return L0;A_=1;let r=Pe();return L0={meta:{type:"suggestion",docs:{description:"Disallow the use of `console`",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-console"},schema:[{type:"object",properties:{allow:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0}},additionalProperties:!1}],hasSuggestions:!0,messages:{unexpected:"Unexpected console statement.",removeConsole:"Remove the console.{{ propertyName }}()."}},create(e){let s=(e.options[0]||{}).allow||[],n=e.sourceCode;function i(p){let h=p.identifier;return h&&h.name==="console"}function a(p){let h=r.getStaticPropertyName(p);return h&&s.includes(h)}function l(p){let h=p.identifier,f=h.parent;return f.type==="MemberExpression"&&f.object===h&&!a(f)}function o(p){let h=/^[:;{]$/u,f=/^[-[(/+`]/u,d=n.getTokenBefore(p),m=n.getTokenAfter(p);return!!m&&f.test(m.value)&&m.value!=="++"&&m.value!=="--"&&!!d&&!h.test(d.value)}function u(p){return p.parent.type==="CallExpression"&&p.parent.callee===p&&p.parent.parent.type==="ExpressionStatement"&&r.STATEMENT_LIST_PARENTS.has(p.parent.parent.parent.type)&&!o(p.parent.parent)}function c(p){let h=p.identifier.parent,f=r.getStaticPropertyName(h);e.report({node:h,loc:h.loc,messageId:"unexpected",suggest:u(h)?[{messageId:"removeConsole",data:{propertyName:f},fix(d){return d.remove(h.parent.parent)}}]:[]})}return{"Program:exit"(p){let h=n.getScope(p),f=r.getVariableByName(h,"console"),d=f&&f.defs.length>0,m=f?f.references:h.through.filter(i);d||m.filter(l).forEach(c)}}}},L0}var $0,P_;function VV(){if(P_)return $0;P_=1;let r=Pe();return $0={meta:{type:"problem",docs:{description:"Disallow reassigning `const` variables",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-const-assign"},schema:[],messages:{const:"'{{name}}' is constant."}},create(e){let t=e.sourceCode;function s(n){r.getModifyingReferences(n.references).forEach(i=>{e.report({node:i.identifier,messageId:"const",data:{name:i.identifier.name}})})}return{VariableDeclaration(n){n.kind==="const"&&t.getDeclaredVariables(n).forEach(s)}}}},$0}var M0,T_;function WV(){if(T_)return M0;T_=1;let{isNullLiteral:r,isConstant:e,isReferenceToGlobalVariable:t,isLogicalAssignmentOperator:s,ECMASCRIPT_GLOBALS:n}=Pe(),i=new Set(["+","-","*","/","%","|","^","&","**","<<",">>",">>>"]);function a(f,d){return r(d)||d.type==="Identifier"&&d.name==="undefined"&&t(f,d)||d.type==="UnaryExpression"&&d.operator==="void"}function l(f,d,m){if(m&&a(f,d))return!1;switch(d.type){case"ObjectExpression":case"ArrayExpression":case"ArrowFunctionExpression":case"FunctionExpression":case"ClassExpression":case"NewExpression":case"Literal":case"TemplateLiteral":case"UpdateExpression":case"BinaryExpression":return!0;case"CallExpression":{if(d.callee.type!=="Identifier")return!1;let g=d.callee.name;return(g==="Boolean"||g==="String"||g==="Number")&&t(f,d.callee)}case"LogicalExpression":return d.operator==="??"&&l(f,d.right,!0);case"AssignmentExpression":return d.operator==="="?l(f,d.right,m):!s(d.operator);case"UnaryExpression":return!0;case"SequenceExpression":{let g=d.expressions.at(-1);return l(f,g,m)}case"Identifier":return d.name==="undefined"&&t(f,d);case"JSXElement":case"JSXFragment":return!1;default:return!1}}function o(f,d){switch(d.type){case"Literal":return typeof d.value=="boolean";case"CallExpression":return d.callee.type==="Identifier"&&d.callee.name==="Boolean"&&t(f,d.callee)&&(d.arguments.length===0||e(f,d.arguments[0],!0));case"UnaryExpression":return d.operator==="!"&&e(f,d.argument,!0);default:return!1}}function u(f,d){switch(d.type){case"ObjectExpression":case"ClassExpression":return!0;case"ArrayExpression":{let m=d.elements.filter(g=>g!==null&&g.type!=="SpreadElement");return d.elements.length===0||m.length>1}case"ArrowFunctionExpression":case"FunctionExpression":return!0;case"UnaryExpression":return d.operator==="void"||d.operator==="typeof"?!0:d.operator==="!"?e(f,d.argument,!0):!1;case"NewExpression":return!1;case"CallExpression":return d.callee.type==="Identifier"&&d.callee.name==="Boolean"&&t(f,d.callee)?d.arguments.length===0||e(f,d.arguments[0],!0):!1;case"Literal":return!0;case"Identifier":return d.name==="undefined"&&t(f,d);case"TemplateLiteral":return d.expressions.length===0;case"AssignmentExpression":return d.operator==="="?u(f,d.right):!1;case"SequenceExpression":{let m=d.expressions.at(-1);return u(f,m)}case"JSXElement":case"JSXFragment":return!1;default:return!1}}function c(f,d){switch(d.type){case"ObjectExpression":case"ArrayExpression":case"ArrowFunctionExpression":case"FunctionExpression":case"ClassExpression":case"NewExpression":case"TemplateLiteral":case"Literal":case"UpdateExpression":return!0;case"BinaryExpression":return i.has(d.operator);case"UnaryExpression":return d.operator==="delete"?!1:d.operator==="!"?e(f,d.argument,!0):!0;case"SequenceExpression":{let m=d.expressions.at(-1);return c(f,m)}case"Identifier":return d.name==="undefined"&&t(f,d);case"AssignmentExpression":return d.operator==="="?c(f,d.right):!s(d.operator);case"CallExpression":{if(d.callee.type!=="Identifier")return!1;let m=d.callee.name;return(m==="String"||m==="Number")&&t(f,d.callee)?!0:m==="Boolean"&&t(f,d.callee)?d.arguments.length===0||e(f,d.arguments[0],!0):!1}case"JSXElement":case"JSXFragment":return!1;default:return!1}}function p(f,d){switch(d.type){case"ObjectExpression":case"ArrayExpression":case"ArrowFunctionExpression":case"FunctionExpression":case"ClassExpression":return!0;case"NewExpression":return d.callee.type!=="Identifier"?!1:Object.hasOwn(n,d.callee.name)&&t(f,d.callee);case"Literal":return typeof d.regex=="object";case"SequenceExpression":{let m=d.expressions.at(-1);return p(f,m)}case"AssignmentExpression":return d.operator==="="?p(f,d.right):!1;case"ConditionalExpression":return p(f,d.consequent)&&p(f,d.alternate);case"JSXElement":case"JSXFragment":return!1;default:return!1}}function h(f,d,m,g){if(g==="=="||g==="!="){if(a(f,d)&&l(f,m,!1)||o(f,d)&&u(f,m))return m}else if((g==="==="||g==="!==")&&(a(f,d)&&l(f,m,!1)||o(f,d)&&c(f,m)))return m;return null}return M0={meta:{type:"problem",docs:{description:"Disallow expressions where the operation doesn't affect the value",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-constant-binary-expression"},schema:[],messages:{constantBinaryOperand:"Unexpected constant binary expression. Compares constantly with the {{otherSide}}-hand side of the `{{operator}}`.",constantShortCircuit:"Unexpected constant {{property}} on the left-hand side of a `{{operator}}` expression.",alwaysNew:"Unexpected comparison to newly constructed object. These two values can never be equal.",bothAlwaysNew:"Unexpected comparison of two newly constructed objects. These two values can never be equal."}},create(f){let d=f.sourceCode;return{LogicalExpression(m){let{operator:g,left:y}=m,b=d.getScope(m);(g==="&&"||g==="||")&&e(b,y,!0)?f.report({node:y,messageId:"constantShortCircuit",data:{property:"truthiness",operator:g}}):g==="??"&&l(b,y,!1)&&f.report({node:y,messageId:"constantShortCircuit",data:{property:"nullishness",operator:g}})},BinaryExpression(m){let g=d.getScope(m),{right:y,left:b,operator:v}=m,S=h(g,b,y,v),C=h(g,y,b,v);S?f.report({node:S,messageId:"constantBinaryOperand",data:{operator:v,otherSide:"left"}}):C?f.report({node:C,messageId:"constantBinaryOperand",data:{operator:v,otherSide:"right"}}):v==="==="||v==="!=="?p(g,b)?f.report({node:b,messageId:"alwaysNew"}):p(g,y)&&f.report({node:y,messageId:"alwaysNew"}):(v==="=="||v==="!=")&&p(g,b)&&p(g,y)&&f.report({node:b,messageId:"bothAlwaysNew"})}}}},M0}var j0,D_;function ZV(){if(D_)return j0;D_=1;let{isConstant:r}=Pe();return j0={meta:{type:"problem",docs:{description:"Disallow constant expressions in conditions",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-constant-condition"},schema:[{type:"object",properties:{checkLoops:{enum:["all","allExceptWhileTrue","none",!0,!1]}},additionalProperties:!1}],messages:{unexpected:"Unexpected constant condition."}},create(e){let t=e.options[0]||{},s=t.checkLoops??"allExceptWhileTrue",n=[],i=e.sourceCode;t.checkLoops===!0?s="all":t.checkLoops===!1&&(s="none");let a=new Set;function l(f){f.test&&r(i.getScope(f),f.test,!0)&&a.add(f)}function o(f){a.has(f)&&(a.delete(f),e.report({node:f.test,messageId:"unexpected"}))}function u(f){f.test&&r(i.getScope(f),f.test,!0)&&e.report({node:f.test,messageId:"unexpected"})}function c(){n.push(a),a=new Set}function p(){a=n.pop()}function h(f){(s==="all"||s==="allExceptWhileTrue")&&l(f)}return{ConditionalExpression:u,IfStatement:u,WhileStatement(f){f.test.type==="Literal"&&f.test.value===!0&&s==="allExceptWhileTrue"||h(f)},"WhileStatement:exit":o,DoWhileStatement:h,"DoWhileStatement:exit":o,ForStatement:h,"ForStatement > .test":f=>h(f.parent),"ForStatement:exit":o,FunctionDeclaration:c,"FunctionDeclaration:exit":p,FunctionExpression:c,"FunctionExpression:exit":p,YieldExpression:()=>a.clear()}}},j0}var q0,__;function zV(){return __||(__=1,q0={meta:{type:"problem",docs:{description:"Disallow returning value from constructor",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-constructor-return"},schema:[],fixable:null,messages:{unexpected:"Unexpected return statement in constructor."}},create(r){let e=[];return{onCodePathStart(t,s){e.push(s)},onCodePathEnd(){e.pop()},ReturnStatement(t){let s=e.at(-1);s.parent&&s.parent.type==="MethodDefinition"&&s.parent.kind==="constructor"&&(t.parent.parent===s||t.argument)&&r.report({node:t,messageId:"unexpected"})}}}}),q0}var Q0,I_;function XV(){return I_||(I_=1,Q0={meta:{type:"suggestion",docs:{description:"Disallow `continue` statements",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-continue"},schema:[],messages:{unexpected:"Unexpected use of continue statement."}},create(r){return{ContinueStatement(e){r.report({node:e,messageId:"unexpected"})}}}}),Q0}var ls={},F_;function Xn(){if(F_)return ls;F_=1,Object.defineProperty(ls,"__esModule",{value:!0});var r=Object.freeze({__proto__:null});let e=2024,t,s;function n(je){return je<65?!1:je<91?!0:je<97?!1:je<123?!0:a(je)}function i(je){return je<48?!1:je<58?!0:je<65?!1:je<91||je===95?!0:je<97?!1:je<123?!0:a(je)||l(je)}function a(je){return c(je,t??(t=o()))}function l(je){return c(je,s??(s=u()))}function o(){return p("4q 0 b 0 5 0 6 m 2 u 2 cp 5 b f 4 8 0 2 0 3m 4 2 1 3 3 2 0 7 0 2 2 2 0 2 j 2 2a 2 3u 9 4l 2 11 3 0 7 14 20 q 5 3 1a 16 10 1 2 2q 2 0 g 1 8 1 b 2 3 0 h 0 2 t u 2g c 0 p w a 1 5 0 6 l 5 0 a 0 4 0 o o 8 a 6 n 2 5 i 15 1n 1h 4 0 j 0 8 9 g f 5 7 3 1 3 l 2 6 2 0 4 3 4 0 h 0 e 1 2 2 f 1 b 0 9 5 5 1 3 l 2 6 2 1 2 1 2 1 w 3 2 0 k 2 h 8 2 2 2 l 2 6 2 1 2 4 4 0 j 0 g 1 o 0 c 7 3 1 3 l 2 6 2 1 2 4 4 0 v 1 2 2 g 0 i 0 2 5 4 2 2 3 4 1 2 0 2 1 4 1 4 2 4 b n 0 1h 7 2 2 2 m 2 f 4 0 r 2 3 0 3 1 v 0 5 7 2 2 2 m 2 9 2 4 4 0 w 1 2 1 g 1 i 8 2 2 2 14 3 0 h 0 6 2 9 2 p 5 6 h 4 n 2 8 2 0 3 6 1n 1b 2 1 d 6 1n 1 2 0 2 4 2 n 2 0 2 9 2 1 a 0 3 4 2 0 m 3 x 0 1s 7 2 z s 4 38 16 l 0 h 5 5 3 4 0 4 1 8 2 5 c d 0 i 11 2 0 6 0 3 16 2 98 2 3 3 6 2 0 2 3 3 14 2 3 3 w 2 3 3 6 2 0 2 3 3 e 2 1k 2 3 3 1u 12 f h 2d 3 5 4 h7 3 g 2 p 6 22 4 a 8 h e i f h f c 2 2 g 1f 10 0 5 0 1w 2g 8 14 2 0 6 1x b u 1e t 3 4 c 17 5 p 1j m a 1g 2b 0 2m 1a i 7 1j t e 1 b 17 r z 16 2 b z 3 8 8 16 3 2 16 3 2 5 2 1 4 0 6 5b 1t 7p 3 5 3 11 3 5 3 7 2 0 2 0 2 0 2 u 3 1g 2 6 2 0 4 2 2 6 4 3 3 5 5 c 6 2 2 6 39 0 e 0 h c 2u 0 5 0 3 9 2 0 3 5 7 0 2 0 2 0 2 f 3 3 6 4 5 0 i 14 22g 6c 7 3 4 1 d 11 2 0 6 0 3 1j 8 0 h m a 6 2 6 2 6 2 6 2 6 2 6 2 6 2 6 fb 2 q 8 8 4 3 4 5 2d 5 4 2 2h 2 3 6 16 2 2l i v 1d f e9 533 1t h3g 1w 19 3 7g 4 f b 1 l 1a h u 3 27 14 8 3 2u 3 1r 6 1 2 0 2 4 p f 2 2 2 3 2 m u 1f f 1d 1r 5 4 0 2 1 c r b m q s 8 1a t 0 h 4 2 9 b 4 2 14 o 2 2 7 l m 4 0 4 1d 2 0 4 1 3 4 3 0 2 0 p 2 3 a 8 2 d 5 3 5 3 5 a 6 2 6 2 16 2 d 7 36 u 8mb d m 5 1c 6it a5 3 2x 13 6 d 4 6 0 2 9 2 c 2 4 2 0 2 1 2 1 2 2z y a2 j 1r 3 1h 15 b 39 4 2 3q 11 p 7 p c 2g 4 5 3 5 3 5 3 2 10 b 2 p 2 i 2 1 2 e 3 d z 3e 1y 1g 7g s 4 1c 1c v e t 6 11 b t 3 z 5 7 2 4 17 4d j z 5 z 5 13 9 1f d a 2 e 2 6 2 1 2 a 2 e 2 6 2 1 1w 8m a l b 7 p 5 2 15 2 8 1y 5 3 0 2 17 2 1 4 0 3 m b m a u 1u i 2 1 b l b p 1z 1j 7 1 1t 0 g 3 2 2 2 s 17 s 4 s 10 7 2 r s 1h b l b i e h 33 20 1k 1e e 1e e z 9p 15 7 1 27 s b 0 9 l 17 h 1b k s m d 1g 1m 1 3 0 e 18 x o r z u 0 3 0 9 y 4 0 d 1b f 3 m 0 2 0 10 h 2 o k 1 1s 6 2 0 2 3 2 e 2 9 8 1a 13 7 3 1 3 l 2 6 2 1 2 4 4 0 j 0 d 4 4f 1g j 3 l 2 v 1b l 1 2 0 55 1a 16 3 11 1b l 0 1o 16 e 0 20 q 12 6 56 17 39 1r w 7 3 0 3 7 2 1 2 n g 0 2 0 2n 7 3 12 h 0 2 0 t 0 b 13 8 0 m 0 c 19 k 0 j 20 7c 8 2 10 i 0 1e t 35 6 2 1 2 11 m 0 q 5 2 1 2 v f 0 94 i g 0 2 c 2 x 3h 0 28 pl 2v 32 i 5f 219 2o g tr i 5 33u g6 6nu fs 8 u i 26 i t j 1b h 3 w k 6 i j5 1r 3l 22 6 0 1v c 1t 1 2 0 t 4qf 9 yd 17 8 6w8 3 2 6 2 1 2 82 g 0 u 2 3 0 f 3 9 az 1s5 2y 6 c 4 8 8 9 4mf 2c 2 1y 2 1 3 0 3 1 3 3 2 b 2 0 2 6 2 1s 2 3 3 7 2 6 2 r 2 3 2 4 2 0 4 6 2 9f 3 o 2 o 2 u 2 o 2 u 2 o 2 u 2 o 2 u 2 o 2 7 1f9 u 7 5 7a 1p 43 18 b 6 h 0 8y t j 17 dh r l1 6 2 3 2 1 2 e 2 5g 1o 1v 8 0 xh 3 2 q 2 1 2 0 3 0 2 9 2 3 2 0 2 0 7 0 5 0 2 0 2 0 2 2 2 1 2 0 3 0 2 0 2 0 2 0 2 0 2 1 2 0 3 3 2 6 2 3 2 3 2 0 2 9 2 g 6 2 2 4 2 g 3et wyn x 37d 7 65 3 4g1 f 5rk 2e8 f1 15v 3t6 6 38f")}function u(){return p("53 0 g9 33 o 0 70 4 7e 18 2 0 2 1 2 1 2 0 21 a 1d u 7 0 2u 6 3 5 3 1 2 3 3 9 o 0 v q 2k a g 9 y 8 a 0 p 3 2 8 2 2 2 4 18 2 1p 7 17 n 2 w 1j 2 2 h 2 6 b 1 3 9 i 2 1l 0 2 6 3 1 3 2 a 0 b 1 3 9 f 0 3 2 1l 0 2 4 5 1 3 2 4 0 l b 4 0 c 2 1l 0 2 7 2 2 2 2 l 1 3 9 b 5 2 2 1l 0 2 6 3 1 3 2 8 2 b 1 3 9 j 0 1o 4 4 2 2 3 a 0 f 9 h 4 1k 0 2 6 2 2 2 3 8 1 c 1 3 9 i 2 1l 0 2 6 2 2 2 3 8 1 c 1 3 9 4 0 d 3 1k 1 2 6 2 2 2 3 a 0 b 1 3 9 i 2 1z 0 5 5 2 0 2 7 7 9 3 1 1q 0 3 6 d 7 2 9 2g 0 3 8 c 6 2 9 1r 1 7 9 c 0 2 0 2 0 5 1 1e j 2 1 6 a 2 z a 0 2t j 2 9 d 3 5 2 2 2 3 6 4 3 e b 2 e jk 2 a 8 pt 3 t 2 u 1 v 1 1t v a 0 3 9 y 2 2 a 40 0 3b b 5 b b 9 3l a 1p 4 1m 9 2 s 3 a 7 9 n d 2 f 1e 4 1c g c 9 i 8 d 2 v c 3 9 19 d 1d j 9 9 7 9 3b 2 2 k 5 0 7 0 3 2 5j 1r g0 1 k 0 3g c 5 0 4 b 2db 2 3y 0 2p v ff 5 2y 1 n7q 9 1y 0 5 9 x 1 29 1 7l 0 4 0 5 0 o 4 5 0 2c 1 1f h b 9 7 h e a t 7 q c 19 3 1c d g 9 c 0 b 9 1c d d 0 9 1 3 9 y 2 1f 0 2 2 3 1 6 1 2 0 16 4 6 1 6l 7 2 1 3 9 fmt 0 ki f h f 4 1 p 2 5d 9 12 0 ji 0 6b 0 46 4 86 9 120 2 2 1 6 3 15 2 5 0 4m 1 fy 3 9 9 aa 1 29 2 1z a 1e 3 3f 2 1i e w a 3 1 b 3 1a a 8 0 1a 9 7 2 11 d 2 9 6 1 19 0 d 2 1d d 9 3 2 b 2b b 7 0 3 0 4e b 6 9 7 3 1k 1 2 6 3 1 3 2 a 0 b 1 3 6 4 4 5d h a 9 5 0 2a j d 9 5y 6 3 8 s 1 2b g g 9 2a c 9 9 2c e 5 9 6r e 4m 9 1z 5 2 1 3 3 2 0 2 1 d 9 3c 6 3 6 4 0 t 9 15 6 2 3 9 0 a a 1b f ba 7 2 7 h 9 1l l 2 d 3f 5 4 0 2 1 2 6 2 0 9 9 1d 4 2 1 2 4 9 9 96 3 a 1 2 0 1d 6 4 4 e 9 44n 0 7 e aob 9 2f 9 13 4 1o 6 q 9 s6 0 2 1i 8 3 2a 0 c 1 f58 1 3mq 19 3 m f3 4 4 5 9 7 3 6 v 3 45 2 13e 1d e9 1i 5 1d 9 0 f 0 n 4 2 e 11t 6 2 g 3 6 2 1 2 4 2t 0 4h 6 a 9 9x 0 1q d dv d rb 6 32 6 6 9 3o7 9 gvt3 6n")}function c(je,M){let te=0,me=M.length/2|0,_e=0,tt=0,x=0;for(;tex)te=_e+1;else return!0;return!1}function p(je){let M=0;return je.split(" ").map(te=>M+=parseInt(te,36)|0)}class h{constructor(M,te,me,_e,tt,x,P){this._raw2018=M,this._raw2019=te,this._raw2020=me,this._raw2021=_e,this._raw2022=tt,this._raw2023=x,this._raw2024=P}get es2018(){var M;return(M=this._set2018)!==null&&M!==void 0?M:this._set2018=new Set(this._raw2018.split(" "))}get es2019(){var M;return(M=this._set2019)!==null&&M!==void 0?M:this._set2019=new Set(this._raw2019.split(" "))}get es2020(){var M;return(M=this._set2020)!==null&&M!==void 0?M:this._set2020=new Set(this._raw2020.split(" "))}get es2021(){var M;return(M=this._set2021)!==null&&M!==void 0?M:this._set2021=new Set(this._raw2021.split(" "))}get es2022(){var M;return(M=this._set2022)!==null&&M!==void 0?M:this._set2022=new Set(this._raw2022.split(" "))}get es2023(){var M;return(M=this._set2023)!==null&&M!==void 0?M:this._set2023=new Set(this._raw2023.split(" "))}get es2024(){var M;return(M=this._set2024)!==null&&M!==void 0?M:this._set2024=new Set(this._raw2024.split(" "))}}let f=new Set(["General_Category","gc"]),d=new Set(["Script","Script_Extensions","sc","scx"]),m=new h("C Cased_Letter Cc Cf Close_Punctuation Cn Co Combining_Mark Connector_Punctuation Control Cs Currency_Symbol Dash_Punctuation Decimal_Number Enclosing_Mark Final_Punctuation Format Initial_Punctuation L LC Letter Letter_Number Line_Separator Ll Lm Lo Lowercase_Letter Lt Lu M Mark Math_Symbol Mc Me Mn Modifier_Letter Modifier_Symbol N Nd Nl No Nonspacing_Mark Number Open_Punctuation Other Other_Letter Other_Number Other_Punctuation Other_Symbol P Paragraph_Separator Pc Pd Pe Pf Pi Po Private_Use Ps Punctuation S Sc Separator Sk Sm So Space_Separator Spacing_Mark Surrogate Symbol Titlecase_Letter Unassigned Uppercase_Letter Z Zl Zp Zs cntrl digit punct","","","","","",""),g=new h("Adlam Adlm Aghb Ahom Anatolian_Hieroglyphs Arab Arabic Armenian Armi Armn Avestan Avst Bali Balinese Bamu Bamum Bass Bassa_Vah Batak Batk Beng Bengali Bhaiksuki Bhks Bopo Bopomofo Brah Brahmi Brai Braille Bugi Buginese Buhd Buhid Cakm Canadian_Aboriginal Cans Cari Carian Caucasian_Albanian Chakma Cham Cher Cherokee Common Copt Coptic Cprt Cuneiform Cypriot Cyrillic Cyrl Deseret Deva Devanagari Dsrt Dupl Duployan Egyp Egyptian_Hieroglyphs Elba Elbasan Ethi Ethiopic Geor Georgian Glag Glagolitic Gonm Goth Gothic Gran Grantha Greek Grek Gujarati Gujr Gurmukhi Guru Han Hang Hangul Hani Hano Hanunoo Hatr Hatran Hebr Hebrew Hira Hiragana Hluw Hmng Hung Imperial_Aramaic Inherited Inscriptional_Pahlavi Inscriptional_Parthian Ital Java Javanese Kaithi Kali Kana Kannada Katakana Kayah_Li Khar Kharoshthi Khmer Khmr Khoj Khojki Khudawadi Knda Kthi Lana Lao Laoo Latin Latn Lepc Lepcha Limb Limbu Lina Linb Linear_A Linear_B Lisu Lyci Lycian Lydi Lydian Mahajani Mahj Malayalam Mand Mandaic Mani Manichaean Marc Marchen Masaram_Gondi Meetei_Mayek Mend Mende_Kikakui Merc Mero Meroitic_Cursive Meroitic_Hieroglyphs Miao Mlym Modi Mong Mongolian Mro Mroo Mtei Mult Multani Myanmar Mymr Nabataean Narb Nbat New_Tai_Lue Newa Nko Nkoo Nshu Nushu Ogam Ogham Ol_Chiki Olck Old_Hungarian Old_Italic Old_North_Arabian Old_Permic Old_Persian Old_South_Arabian Old_Turkic Oriya Orkh Orya Osage Osge Osma Osmanya Pahawh_Hmong Palm Palmyrene Pau_Cin_Hau Pauc Perm Phag Phags_Pa Phli Phlp Phnx Phoenician Plrd Prti Psalter_Pahlavi Qaac Qaai Rejang Rjng Runic Runr Samaritan Samr Sarb Saur Saurashtra Sgnw Sharada Shavian Shaw Shrd Sidd Siddham SignWriting Sind Sinh Sinhala Sora Sora_Sompeng Soyo Soyombo Sund Sundanese Sylo Syloti_Nagri Syrc Syriac Tagalog Tagb Tagbanwa Tai_Le Tai_Tham Tai_Viet Takr Takri Tale Talu Tamil Taml Tang Tangut Tavt Telu Telugu Tfng Tglg Thaa Thaana Thai Tibetan Tibt Tifinagh Tirh Tirhuta Ugar Ugaritic Vai Vaii Wara Warang_Citi Xpeo Xsux Yi Yiii Zanabazar_Square Zanb Zinh Zyyy","Dogr Dogra Gong Gunjala_Gondi Hanifi_Rohingya Maka Makasar Medefaidrin Medf Old_Sogdian Rohg Sogd Sogdian Sogo","Elym Elymaic Hmnp Nand Nandinagari Nyiakeng_Puachue_Hmong Wancho Wcho","Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi","Cpmn Cypro_Minoan Old_Uyghur Ougr Tangsa Tnsa Toto Vith Vithkuqi","Hrkt Katakana_Or_Hiragana Kawi Nag_Mundari Nagm Unknown Zzzz",""),y=new h("AHex ASCII ASCII_Hex_Digit Alpha Alphabetic Any Assigned Bidi_C Bidi_Control Bidi_M Bidi_Mirrored CI CWCF CWCM CWKCF CWL CWT CWU Case_Ignorable Cased Changes_When_Casefolded Changes_When_Casemapped Changes_When_Lowercased Changes_When_NFKC_Casefolded Changes_When_Titlecased Changes_When_Uppercased DI Dash Default_Ignorable_Code_Point Dep Deprecated Dia Diacritic Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Ext Extender Gr_Base Gr_Ext Grapheme_Base Grapheme_Extend Hex Hex_Digit IDC IDS IDSB IDST IDS_Binary_Operator IDS_Trinary_Operator ID_Continue ID_Start Ideo Ideographic Join_C Join_Control LOE Logical_Order_Exception Lower Lowercase Math NChar Noncharacter_Code_Point Pat_Syn Pat_WS Pattern_Syntax Pattern_White_Space QMark Quotation_Mark RI Radical Regional_Indicator SD STerm Sentence_Terminal Soft_Dotted Term Terminal_Punctuation UIdeo Unified_Ideograph Upper Uppercase VS Variation_Selector White_Space XIDC XIDS XID_Continue XID_Start space","Extended_Pictographic","","EBase EComp EMod EPres ExtPict","","","");function b(je,M,te){return f.has(M)?je>=2018&&m.es2018.has(te):d.has(M)?je>=2018&&g.es2018.has(te)||je>=2019&&g.es2019.has(te)||je>=2020&&g.es2020.has(te)||je>=2021&&g.es2021.has(te)||je>=2022&&g.es2022.has(te)||je>=2023&&g.es2023.has(te):!1}function v(je,M){return je>=2018&&y.es2018.has(M)||je>=2019&&y.es2019.has(M)||je>=2021&&y.es2021.has(M)}let S=8,C=9,O=10,w=11,E=12,k=13,A=33,D=35,_=36,B=37,T=38,F=40,j=41,Q=42,I=43,N=44,R=45,U=46,V=47,ae=48,se=49,ve=55,H=57,he=58,$=59,pe=60,K=61,le=62,xe=63,Le=64,qe=65,rt=66,ht=68,pt=70,Et=80,X=83,we=87,Ve=90,et=95,it=97,st=98,Ct=99,bt=100,Dt=102,_t=103,W=105,vt=107,Ye=109,Kt=110,De=112,G=113,ne=114,ee=115,oe=116,ce=117,Z=118,J=119,ie=120,de=121,Ce=122,L=91,ue=92,Te=93,Be=94,$e=96,Re=123,Oe=124,Ie=125,We=126,be=8204,re=8205,Y=8232,fe=8233,Se=0,Ee=1114111;function ze(je){return je>=qe&&je<=Ve||je>=it&&je<=Ce}function Ke(je){return je>=ae&&je<=H}function mt(je){return je>=ae&&je<=ve}function Ot(je){return je>=ae&&je<=H||je>=qe&&je<=pt||je>=it&&je<=Dt}function Pt(je){return je===O||je===k||je===Y||je===fe}function xt(je){return je>=Se&&je<=Ee}function Ue(je){return je>=it&&je<=Dt?je-it+10:je>=qe&&je<=pt?je-qe+10:je-ae}function nt(je){return je>=55296&&je<=56319}function Ge(je){return je>=56320&&je<=57343}function Qe(je,M){return(je-55296)*1024+(M-56320)+65536}let ut={at(je,M,te){return te65535?2:1}};class qt{constructor(){this._impl=ut,this._s="",this._i=0,this._end=0,this._cp1=-1,this._w1=1,this._cp2=-1,this._w2=1,this._cp3=-1,this._w3=1,this._cp4=-1}get source(){return this._s}get index(){return this._i}get currentCodePoint(){return this._cp1}get nextCodePoint(){return this._cp2}get nextCodePoint2(){return this._cp3}get nextCodePoint3(){return this._cp4}reset(M,te,me,_e){this._impl=_e?dt:ut,this._s=M,this._end=me,this.rewind(te)}rewind(M){let te=this._impl;this._i=M,this._cp1=te.at(this._s,this._end,M),this._w1=te.width(this._cp1),this._cp2=te.at(this._s,this._end,M+this._w1),this._w2=te.width(this._cp2),this._cp3=te.at(this._s,this._end,M+this._w1+this._w2),this._w3=te.width(this._cp3),this._cp4=te.at(this._s,this._end,M+this._w1+this._w2+this._w3)}advance(){if(this._cp1!==-1){let M=this._impl;this._i+=this._w1,this._cp1=this._cp2,this._w1=this._w2,this._cp2=this._cp3,this._w2=M.width(this._cp2),this._cp3=this._cp4,this._w3=M.width(this._cp3),this._cp4=M.at(this._s,this._end,this._i+this._w1+this._w2+this._w3)}}eat(M){return this._cp1===M?(this.advance(),!0):!1}eat2(M,te){return this._cp1===M&&this._cp2===te?(this.advance(),this.advance(),!0):!1}eat3(M,te,me){return this._cp1===M&&this._cp2===te&&this._cp3===me?(this.advance(),this.advance(),this.advance(),!0):!1}}class Qt extends SyntaxError{constructor(M,te,me,_e){let tt="";if(M.kind==="literal"){let x=M.source.slice(M.start,M.end);x&&(tt=`: ${x}`)}else if(M.kind==="pattern"){let x=M.source.slice(M.start,M.end),P=`${te.unicode?"u":""}${te.unicodeSets?"v":""}`;tt=`: /${x}/${P}`}super(`Invalid regular expression${tt}: ${_e}`),this.index=me}}let jt=new Set(["Basic_Emoji","Emoji_Keycap_Sequence","RGI_Emoji_Modifier_Sequence","RGI_Emoji_Flag_Sequence","RGI_Emoji_Tag_Sequence","RGI_Emoji_ZWJ_Sequence","RGI_Emoji"]);function sr(je,M){return je>=2024&&jt.has(M)}let ot=new Set([Be,_,ue,U,Q,I,xe,F,j,L,Te,Re,Ie,Oe]),Nt=new Set([T,A,D,_,B,Q,I,N,U,he,$,pe,K,le,xe,Le,Be,$e,We]),br=new Set([F,j,L,Te,Re,Ie,V,R,ue,Oe]),Nr=new Set([T,R,A,D,B,N,he,$,pe,K,le,Le,$e,We]);function Cr(je){return ot.has(je)}function Qr(je){return Nt.has(je)}function fs(je){return br.has(je)}function Yn(je){return Nr.has(je)}function dr(je){return n(je)||je===_||je===et}function ir(je){return i(je)||je===_||je===be||je===re}function hn(je){return ze(je)||je===et}function Hn(je){return hn(je)||Ke(je)}class kn{constructor(M){this._reader=new qt,this._unicodeMode=!1,this._unicodeSetsMode=!1,this._nFlag=!1,this._lastIntValue=0,this._lastRange={min:0,max:Number.POSITIVE_INFINITY},this._lastStrValue="",this._lastAssertionIsQuantifiable=!1,this._numCapturingParens=0,this._groupNames=new Set,this._backreferenceNames=new Set,this._srcCtx=null,this._options=M??{}}validateLiteral(M,te=0,me=M.length){if(this._srcCtx={source:M,start:te,end:me,kind:"literal"},this._unicodeSetsMode=this._unicodeMode=this._nFlag=!1,this.reset(M,te,me),this.onLiteralEnter(te),this.eat(V)&&this.eatRegExpBody()&&this.eat(V)){let _e=this.index,tt=M.includes("u",_e),x=M.includes("v",_e);this.validateFlagsInternal(M,_e,me),this.validatePatternInternal(M,te+1,_e-1,{unicode:tt,unicodeSets:x})}else if(te>=me)this.raise("Empty");else{let _e=String.fromCodePoint(this.currentCodePoint);this.raise(`Unexpected character '${_e}'`)}this.onLiteralLeave(te,me)}validateFlags(M,te=0,me=M.length){this._srcCtx={source:M,start:te,end:me,kind:"flags"},this.validateFlagsInternal(M,te,me)}validatePattern(M,te=0,me=M.length,_e=void 0){this._srcCtx={source:M,start:te,end:me,kind:"pattern"},this.validatePatternInternal(M,te,me,_e)}validatePatternInternal(M,te=0,me=M.length,_e=void 0){let tt=this._parseFlagsOptionToMode(_e,me);this._unicodeMode=tt.unicodeMode,this._nFlag=tt.nFlag,this._unicodeSetsMode=tt.unicodeSetsMode,this.reset(M,te,me),this.consumePattern(),!this._nFlag&&this.ecmaVersion>=2018&&this._groupNames.size>0&&(this._nFlag=!0,this.rewind(te),this.consumePattern())}validateFlagsInternal(M,te,me){let _e=new Set,tt=!1,x=!1,P=!1,q=!1,z=!1,ge=!1,Fe=!1,Ne=!1;for(let He=te;He=2015?z=!0:Je===de&&this.ecmaVersion>=2015?q=!0:Je===ee&&this.ecmaVersion>=2018?ge=!0:Je===bt&&this.ecmaVersion>=2022?Fe=!0:Je===Z&&this.ecmaVersion>=2024?Ne=!0:this.raise(`Invalid flag '${M[He]}'`,{index:te})}this.onRegExpFlags(te,me,{global:tt,ignoreCase:x,multiline:P,unicode:z,sticky:q,dotAll:ge,hasIndices:Fe,unicodeSets:Ne})}_parseFlagsOptionToMode(M,te){let me=!1,_e=!1;M&&this.ecmaVersion>=2015&&(typeof M=="object"?(me=!!M.unicode,this.ecmaVersion>=2024&&(_e=!!M.unicodeSets)):me=M),me&&_e&&this.raise("Invalid regular expression flags",{index:te+1,unicode:me,unicodeSets:_e});let tt=me||_e,x=me&&this.ecmaVersion>=2018||_e||!!(this._options.strict&&this.ecmaVersion>=2023);return{unicodeMode:tt,nFlag:x,unicodeSetsMode:_e}}get strict(){return!!this._options.strict||this._unicodeMode}get ecmaVersion(){var M;return(M=this._options.ecmaVersion)!==null&&M!==void 0?M:e}onLiteralEnter(M){this._options.onLiteralEnter&&this._options.onLiteralEnter(M)}onLiteralLeave(M,te){this._options.onLiteralLeave&&this._options.onLiteralLeave(M,te)}onRegExpFlags(M,te,me){this._options.onRegExpFlags&&this._options.onRegExpFlags(M,te,me),this._options.onFlags&&this._options.onFlags(M,te,me.global,me.ignoreCase,me.multiline,me.unicode,me.sticky,me.dotAll,me.hasIndices)}onPatternEnter(M){this._options.onPatternEnter&&this._options.onPatternEnter(M)}onPatternLeave(M,te){this._options.onPatternLeave&&this._options.onPatternLeave(M,te)}onDisjunctionEnter(M){this._options.onDisjunctionEnter&&this._options.onDisjunctionEnter(M)}onDisjunctionLeave(M,te){this._options.onDisjunctionLeave&&this._options.onDisjunctionLeave(M,te)}onAlternativeEnter(M,te){this._options.onAlternativeEnter&&this._options.onAlternativeEnter(M,te)}onAlternativeLeave(M,te,me){this._options.onAlternativeLeave&&this._options.onAlternativeLeave(M,te,me)}onGroupEnter(M){this._options.onGroupEnter&&this._options.onGroupEnter(M)}onGroupLeave(M,te){this._options.onGroupLeave&&this._options.onGroupLeave(M,te)}onCapturingGroupEnter(M,te){this._options.onCapturingGroupEnter&&this._options.onCapturingGroupEnter(M,te)}onCapturingGroupLeave(M,te,me){this._options.onCapturingGroupLeave&&this._options.onCapturingGroupLeave(M,te,me)}onQuantifier(M,te,me,_e,tt){this._options.onQuantifier&&this._options.onQuantifier(M,te,me,_e,tt)}onLookaroundAssertionEnter(M,te,me){this._options.onLookaroundAssertionEnter&&this._options.onLookaroundAssertionEnter(M,te,me)}onLookaroundAssertionLeave(M,te,me,_e){this._options.onLookaroundAssertionLeave&&this._options.onLookaroundAssertionLeave(M,te,me,_e)}onEdgeAssertion(M,te,me){this._options.onEdgeAssertion&&this._options.onEdgeAssertion(M,te,me)}onWordBoundaryAssertion(M,te,me,_e){this._options.onWordBoundaryAssertion&&this._options.onWordBoundaryAssertion(M,te,me,_e)}onAnyCharacterSet(M,te,me){this._options.onAnyCharacterSet&&this._options.onAnyCharacterSet(M,te,me)}onEscapeCharacterSet(M,te,me,_e){this._options.onEscapeCharacterSet&&this._options.onEscapeCharacterSet(M,te,me,_e)}onUnicodePropertyCharacterSet(M,te,me,_e,tt,x,P){this._options.onUnicodePropertyCharacterSet&&this._options.onUnicodePropertyCharacterSet(M,te,me,_e,tt,x,P)}onCharacter(M,te,me){this._options.onCharacter&&this._options.onCharacter(M,te,me)}onBackreference(M,te,me){this._options.onBackreference&&this._options.onBackreference(M,te,me)}onCharacterClassEnter(M,te,me){this._options.onCharacterClassEnter&&this._options.onCharacterClassEnter(M,te,me)}onCharacterClassLeave(M,te,me){this._options.onCharacterClassLeave&&this._options.onCharacterClassLeave(M,te,me)}onCharacterClassRange(M,te,me,_e){this._options.onCharacterClassRange&&this._options.onCharacterClassRange(M,te,me,_e)}onClassIntersection(M,te){this._options.onClassIntersection&&this._options.onClassIntersection(M,te)}onClassSubtraction(M,te){this._options.onClassSubtraction&&this._options.onClassSubtraction(M,te)}onClassStringDisjunctionEnter(M){this._options.onClassStringDisjunctionEnter&&this._options.onClassStringDisjunctionEnter(M)}onClassStringDisjunctionLeave(M,te){this._options.onClassStringDisjunctionLeave&&this._options.onClassStringDisjunctionLeave(M,te)}onStringAlternativeEnter(M,te){this._options.onStringAlternativeEnter&&this._options.onStringAlternativeEnter(M,te)}onStringAlternativeLeave(M,te,me){this._options.onStringAlternativeLeave&&this._options.onStringAlternativeLeave(M,te,me)}get index(){return this._reader.index}get currentCodePoint(){return this._reader.currentCodePoint}get nextCodePoint(){return this._reader.nextCodePoint}get nextCodePoint2(){return this._reader.nextCodePoint2}get nextCodePoint3(){return this._reader.nextCodePoint3}reset(M,te,me){this._reader.reset(M,te,me,this._unicodeMode)}rewind(M){this._reader.rewind(M)}advance(){this._reader.advance()}eat(M){return this._reader.eat(M)}eat2(M,te){return this._reader.eat2(M,te)}eat3(M,te,me){return this._reader.eat3(M,te,me)}raise(M,te){var me,_e,tt;throw new Qt(this._srcCtx,{unicode:(me=te?.unicode)!==null&&me!==void 0?me:this._unicodeMode&&!this._unicodeSetsMode,unicodeSets:(_e=te?.unicodeSets)!==null&&_e!==void 0?_e:this._unicodeSetsMode},(tt=te?.index)!==null&&tt!==void 0?tt:this.index,M)}eatRegExpBody(){let M=this.index,te=!1,me=!1;for(;;){let _e=this.currentCodePoint;if(_e===-1||Pt(_e)){let tt=te?"character class":"regular expression";this.raise(`Unterminated ${tt}`)}if(me)me=!1;else if(_e===ue)me=!0;else if(_e===L)te=!0;else if(_e===Te)te=!1;else if(_e===V&&!te||_e===Q&&this.index===M)break;this.advance()}return this.index!==M}consumePattern(){let M=this.index;this._numCapturingParens=this.countCapturingParens(),this._groupNames.clear(),this._backreferenceNames.clear(),this.onPatternEnter(M),this.consumeDisjunction();let te=this.currentCodePoint;if(this.currentCodePoint!==-1){te===j&&this.raise("Unmatched ')'"),te===ue&&this.raise("\\ at end of pattern"),(te===Te||te===Ie)&&this.raise("Lone quantifier brackets");let me=String.fromCodePoint(te);this.raise(`Unexpected character '${me}'`)}for(let me of this._backreferenceNames)this._groupNames.has(me)||this.raise("Invalid named capture referenced");this.onPatternLeave(M,this.index)}countCapturingParens(){let M=this.index,te=!1,me=!1,_e=0,tt=0;for(;(tt=this.currentCodePoint)!==-1;)me?me=!1:tt===ue?me=!0:tt===L?te=!0:tt===Te?te=!1:tt===F&&!te&&(this.nextCodePoint!==xe||this.nextCodePoint2===pe&&this.nextCodePoint3!==K&&this.nextCodePoint3!==A)&&(_e+=1),this.advance();return this.rewind(M),_e}consumeDisjunction(){let M=this.index,te=0;this.onDisjunctionEnter(M);do this.consumeAlternative(te++);while(this.eat(Oe));this.consumeQuantifier(!0)&&this.raise("Nothing to repeat"),this.eat(Re)&&this.raise("Lone quantifier brackets"),this.onDisjunctionLeave(M,this.index)}consumeAlternative(M){let te=this.index;for(this.onAlternativeEnter(te,M);this.currentCodePoint!==-1&&this.consumeTerm(););this.onAlternativeLeave(te,this.index,M)}consumeTerm(){return this._unicodeMode||this.strict?this.consumeAssertion()||this.consumeAtom()&&this.consumeOptionalQuantifier():this.consumeAssertion()&&(!this._lastAssertionIsQuantifiable||this.consumeOptionalQuantifier())||this.consumeExtendedAtom()&&this.consumeOptionalQuantifier()}consumeOptionalQuantifier(){return this.consumeQuantifier(),!0}consumeAssertion(){let M=this.index;if(this._lastAssertionIsQuantifiable=!1,this.eat(Be))return this.onEdgeAssertion(M,this.index,"start"),!0;if(this.eat(_))return this.onEdgeAssertion(M,this.index,"end"),!0;if(this.eat2(ue,rt))return this.onWordBoundaryAssertion(M,this.index,"word",!0),!0;if(this.eat2(ue,st))return this.onWordBoundaryAssertion(M,this.index,"word",!1),!0;if(this.eat2(F,xe)){let te=this.ecmaVersion>=2018&&this.eat(pe),me=!1;if(this.eat(K)||(me=this.eat(A))){let _e=te?"lookbehind":"lookahead";return this.onLookaroundAssertionEnter(M,_e,me),this.consumeDisjunction(),this.eat(j)||this.raise("Unterminated group"),this._lastAssertionIsQuantifiable=!te&&!this.strict,this.onLookaroundAssertionLeave(M,this.index,_e,me),!0}this.rewind(M)}return!1}consumeQuantifier(M=!1){let te=this.index,me=0,_e=0,tt=!1;if(this.eat(Q))me=0,_e=Number.POSITIVE_INFINITY;else if(this.eat(I))me=1,_e=Number.POSITIVE_INFINITY;else if(this.eat(xe))me=0,_e=1;else if(this.eatBracedQuantifier(M))({min:me,max:_e}=this._lastRange);else return!1;return tt=!this.eat(xe),M||this.onQuantifier(te,this.index,me,_e,tt),!0}eatBracedQuantifier(M){let te=this.index;if(this.eat(Re)){if(this.eatDecimalDigits()){let me=this._lastIntValue,_e=me;if(this.eat(N)&&(_e=this.eatDecimalDigits()?this._lastIntValue:Number.POSITIVE_INFINITY),this.eat(Ie))return!M&&_e=2018?this.consumeGroupSpecifier()&&(te=this._lastStrValue):this.currentCodePoint===xe&&this.raise("Invalid group"),this.onCapturingGroupEnter(M,te),this.consumeDisjunction(),this.eat(j)||this.raise("Unterminated group"),this.onCapturingGroupLeave(M,this.index,te),!0}return!1}consumeExtendedAtom(){return this.consumeDot()||this.consumeReverseSolidusAtomEscape()||this.consumeReverseSolidusFollowedByC()||!!this.consumeCharacterClass()||this.consumeUncapturingGroup()||this.consumeCapturingGroup()||this.consumeInvalidBracedQuantifier()||this.consumeExtendedPatternCharacter()}consumeReverseSolidusFollowedByC(){let M=this.index;return this.currentCodePoint===ue&&this.nextCodePoint===Ct?(this._lastIntValue=this.currentCodePoint,this.advance(),this.onCharacter(M,this.index,ue),!0):!1}consumeInvalidBracedQuantifier(){return this.eatBracedQuantifier(!0)&&this.raise("Nothing to repeat"),!1}consumePatternCharacter(){let M=this.index,te=this.currentCodePoint;return te!==-1&&!Cr(te)?(this.advance(),this.onCharacter(M,this.index,te),!0):!1}consumeExtendedPatternCharacter(){let M=this.index,te=this.currentCodePoint;return te!==-1&&te!==Be&&te!==_&&te!==ue&&te!==U&&te!==Q&&te!==I&&te!==xe&&te!==F&&te!==j&&te!==L&&te!==Oe?(this.advance(),this.onCharacter(M,this.index,te),!0):!1}consumeGroupSpecifier(){if(this.eat(xe)){if(this.eatGroupName()){if(!this._groupNames.has(this._lastStrValue))return this._groupNames.add(this._lastStrValue),!0;this.raise("Duplicate capture group name")}this.raise("Invalid group")}return!1}consumeAtomEscape(){return this.consumeBackreference()||this.consumeCharacterClassEscape()||this.consumeCharacterEscape()||this._nFlag&&this.consumeKGroupName()?!0:((this.strict||this._unicodeMode)&&this.raise("Invalid escape"),!1)}consumeBackreference(){let M=this.index;if(this.eatDecimalEscape()){let te=this._lastIntValue;if(te<=this._numCapturingParens)return this.onBackreference(M-1,this.index,te),!0;(this.strict||this._unicodeMode)&&this.raise("Invalid escape"),this.rewind(M)}return!1}consumeCharacterClassEscape(){var M;let te=this.index;if(this.eat(bt))return this._lastIntValue=-1,this.onEscapeCharacterSet(te-1,this.index,"digit",!1),{};if(this.eat(ht))return this._lastIntValue=-1,this.onEscapeCharacterSet(te-1,this.index,"digit",!0),{};if(this.eat(ee))return this._lastIntValue=-1,this.onEscapeCharacterSet(te-1,this.index,"space",!1),{};if(this.eat(X))return this._lastIntValue=-1,this.onEscapeCharacterSet(te-1,this.index,"space",!0),{};if(this.eat(J))return this._lastIntValue=-1,this.onEscapeCharacterSet(te-1,this.index,"word",!1),{};if(this.eat(we))return this._lastIntValue=-1,this.onEscapeCharacterSet(te-1,this.index,"word",!0),{};let me=!1;if(this._unicodeMode&&this.ecmaVersion>=2018&&(this.eat(De)||(me=this.eat(Et)))){this._lastIntValue=-1;let _e=null;if(this.eat(Re)&&(_e=this.eatUnicodePropertyValueExpression())&&this.eat(Ie))return me&&_e.strings&&this.raise("Invalid property name"),this.onUnicodePropertyCharacterSet(te-1,this.index,"property",_e.key,_e.value,me,(M=_e.strings)!==null&&M!==void 0?M:!1),{mayContainStrings:_e.strings};this.raise("Invalid property name")}return null}consumeCharacterEscape(){let M=this.index;return this.eatControlEscape()||this.eatCControlLetter()||this.eatZero()||this.eatHexEscapeSequence()||this.eatRegExpUnicodeEscapeSequence()||!this.strict&&!this._unicodeMode&&this.eatLegacyOctalEscapeSequence()||this.eatIdentityEscape()?(this.onCharacter(M-1,this.index,this._lastIntValue),!0):!1}consumeKGroupName(){let M=this.index;if(this.eat(vt)){if(this.eatGroupName()){let te=this._lastStrValue;return this._backreferenceNames.add(te),this.onBackreference(M-1,this.index,te),!0}this.raise("Invalid named reference")}return!1}consumeCharacterClass(){let M=this.index;if(this.eat(L)){let te=this.eat(Be);this.onCharacterClassEnter(M,te,this._unicodeSetsMode);let me=this.consumeClassContents();return this.eat(Te)||(this.currentCodePoint===-1&&this.raise("Unterminated character class"),this.raise("Invalid character in character class")),te&&me.mayContainStrings&&this.raise("Negated character class may contain strings"),this.onCharacterClassLeave(M,this.index,te),me}return null}consumeClassContents(){if(this._unicodeSetsMode)return this.currentCodePoint===Te?{}:this.consumeClassSetExpression();let M=this.strict||this._unicodeMode;for(;;){let te=this.index;if(!this.consumeClassAtom())break;let me=this._lastIntValue;if(!this.eat(R))continue;if(this.onCharacter(this.index-1,this.index,R),!this.consumeClassAtom())break;let _e=this._lastIntValue;if(me===-1||_e===-1){M&&this.raise("Invalid character class");continue}me>_e&&this.raise("Range out of order in character class"),this.onCharacterClassRange(te,this.index,me,_e)}return{}}consumeClassAtom(){let M=this.index,te=this.currentCodePoint;if(te!==-1&&te!==ue&&te!==Te)return this.advance(),this._lastIntValue=te,this.onCharacter(M,this.index,this._lastIntValue),!0;if(this.eat(ue)){if(this.consumeClassEscape())return!0;if(!this.strict&&this.currentCodePoint===Ct)return this._lastIntValue=ue,this.onCharacter(M,this.index,this._lastIntValue),!0;(this.strict||this._unicodeMode)&&this.raise("Invalid escape"),this.rewind(M)}return!1}consumeClassEscape(){let M=this.index;if(this.eat(st))return this._lastIntValue=S,this.onCharacter(M-1,this.index,this._lastIntValue),!0;if(this._unicodeMode&&this.eat(R))return this._lastIntValue=R,this.onCharacter(M-1,this.index,this._lastIntValue),!0;let te=0;return!this.strict&&!this._unicodeMode&&this.currentCodePoint===Ct&&(Ke(te=this.nextCodePoint)||te===et)?(this.advance(),this.advance(),this._lastIntValue=te%32,this.onCharacter(M-1,this.index,this._lastIntValue),!0):!!this.consumeCharacterClassEscape()||this.consumeCharacterEscape()}consumeClassSetExpression(){let M=this.index,te=!1,me=null;if(this.consumeClassSetCharacter()){if(this.consumeClassSetRangeFromOperator(M))return this.consumeClassUnionRight({}),{};te=!1}else if(me=this.consumeClassSetOperand())te=me.mayContainStrings;else{let _e=this.currentCodePoint;_e===ue&&(this.advance(),this.raise("Invalid escape")),_e===this.nextCodePoint&&Qr(_e)&&this.raise("Invalid set operation in character class"),this.raise("Invalid character in character class")}if(this.eat2(T,T)){for(;this.currentCodePoint!==T&&(me=this.consumeClassSetOperand());)if(this.onClassIntersection(M,this.index),me.mayContainStrings||(te=!1),!this.eat2(T,T))return{mayContainStrings:te};this.raise("Invalid character in character class")}if(this.eat2(R,R)){for(;this.consumeClassSetOperand();)if(this.onClassSubtraction(M,this.index),!this.eat2(R,R))return{mayContainStrings:te};this.raise("Invalid character in character class")}return this.consumeClassUnionRight({mayContainStrings:te})}consumeClassUnionRight(M){let te=M.mayContainStrings;for(;;){let me=this.index;if(this.consumeClassSetCharacter()){this.consumeClassSetRangeFromOperator(me);continue}let _e=this.consumeClassSetOperand();if(_e){_e.mayContainStrings&&(te=!0);continue}break}return{mayContainStrings:te}}consumeClassSetRangeFromOperator(M){let te=this.index,me=this._lastIntValue;if(this.eat(R)){if(this.consumeClassSetCharacter()){let _e=this._lastIntValue;return(me===-1||_e===-1)&&this.raise("Invalid character class"),me>_e&&this.raise("Range out of order in character class"),this.onCharacterClassRange(M,this.index,me,_e),!0}this.rewind(te)}return!1}consumeClassSetOperand(){let M=null;return(M=this.consumeNestedClass())||(M=this.consumeClassStringDisjunction())?M:this.consumeClassSetCharacter()?{}:null}consumeNestedClass(){let M=this.index;if(this.eat(L)){let te=this.eat(Be);this.onCharacterClassEnter(M,te,!0);let me=this.consumeClassContents();return this.eat(Te)||this.raise("Unterminated character class"),te&&me.mayContainStrings&&this.raise("Negated character class may contain strings"),this.onCharacterClassLeave(M,this.index,te),me}if(this.eat(ue)){let te=this.consumeCharacterClassEscape();if(te)return te;this.rewind(M)}return null}consumeClassStringDisjunction(){let M=this.index;if(this.eat3(ue,G,Re)){this.onClassStringDisjunctionEnter(M);let te=0,me=!1;do this.consumeClassString(te++).mayContainStrings&&(me=!0);while(this.eat(Oe));if(this.eat(Ie))return this.onClassStringDisjunctionLeave(M,this.index),{mayContainStrings:me};this.raise("Unterminated class string disjunction")}return null}consumeClassString(M){let te=this.index,me=0;for(this.onStringAlternativeEnter(te,M);this.currentCodePoint!==-1&&this.consumeClassSetCharacter();)me++;return this.onStringAlternativeLeave(te,this.index,M),{mayContainStrings:me!==1}}consumeClassSetCharacter(){let M=this.index,te=this.currentCodePoint;if((te!==this.nextCodePoint||!Qr(te))&&te!==-1&&!fs(te))return this._lastIntValue=te,this.advance(),this.onCharacter(M,this.index,this._lastIntValue),!0;if(this.eat(ue)){if(this.consumeCharacterEscape())return!0;if(Yn(this.currentCodePoint))return this._lastIntValue=this.currentCodePoint,this.advance(),this.onCharacter(M,this.index,this._lastIntValue),!0;if(this.eat(st))return this._lastIntValue=S,this.onCharacter(M,this.index,this._lastIntValue),!0;this.rewind(M)}return!1}eatGroupName(){if(this.eat(pe)){if(this.eatRegExpIdentifierName()&&this.eat(le))return!0;this.raise("Invalid capture group name")}return!1}eatRegExpIdentifierName(){if(this.eatRegExpIdentifierStart()){for(this._lastStrValue=String.fromCodePoint(this._lastIntValue);this.eatRegExpIdentifierPart();)this._lastStrValue+=String.fromCodePoint(this._lastIntValue);return!0}return!1}eatRegExpIdentifierStart(){let M=this.index,te=!this._unicodeMode&&this.ecmaVersion>=2020,me=this.currentCodePoint;return this.advance(),me===ue&&this.eatRegExpUnicodeEscapeSequence(te)?me=this._lastIntValue:te&&nt(me)&&Ge(this.currentCodePoint)&&(me=Qe(me,this.currentCodePoint),this.advance()),dr(me)?(this._lastIntValue=me,!0):(this.index!==M&&this.rewind(M),!1)}eatRegExpIdentifierPart(){let M=this.index,te=!this._unicodeMode&&this.ecmaVersion>=2020,me=this.currentCodePoint;return this.advance(),me===ue&&this.eatRegExpUnicodeEscapeSequence(te)?me=this._lastIntValue:te&&nt(me)&&Ge(this.currentCodePoint)&&(me=Qe(me,this.currentCodePoint),this.advance()),ir(me)?(this._lastIntValue=me,!0):(this.index!==M&&this.rewind(M),!1)}eatCControlLetter(){let M=this.index;if(this.eat(Ct)){if(this.eatControlLetter())return!0;this.rewind(M)}return!1}eatZero(){return this.currentCodePoint===ae&&!Ke(this.nextCodePoint)?(this._lastIntValue=0,this.advance(),!0):!1}eatControlEscape(){return this.eat(Dt)?(this._lastIntValue=E,!0):this.eat(Kt)?(this._lastIntValue=O,!0):this.eat(ne)?(this._lastIntValue=k,!0):this.eat(oe)?(this._lastIntValue=C,!0):this.eat(Z)?(this._lastIntValue=w,!0):!1}eatControlLetter(){let M=this.currentCodePoint;return ze(M)?(this.advance(),this._lastIntValue=M%32,!0):!1}eatRegExpUnicodeEscapeSequence(M=!1){let te=this.index,me=M||this._unicodeMode;if(this.eat(ce)){if(me&&this.eatRegExpUnicodeSurrogatePairEscape()||this.eatFixedHexDigits(4)||me&&this.eatRegExpUnicodeCodePointEscape())return!0;(this.strict||me)&&this.raise("Invalid unicode escape"),this.rewind(te)}return!1}eatRegExpUnicodeSurrogatePairEscape(){let M=this.index;if(this.eatFixedHexDigits(4)){let te=this._lastIntValue;if(nt(te)&&this.eat(ue)&&this.eat(ce)&&this.eatFixedHexDigits(4)){let me=this._lastIntValue;if(Ge(me))return this._lastIntValue=Qe(te,me),!0}this.rewind(M)}return!1}eatRegExpUnicodeCodePointEscape(){let M=this.index;return this.eat(Re)&&this.eatHexDigits()&&this.eat(Ie)&&xt(this._lastIntValue)?!0:(this.rewind(M),!1)}eatIdentityEscape(){let M=this.currentCodePoint;return this.isValidIdentityEscape(M)?(this._lastIntValue=M,this.advance(),!0):!1}isValidIdentityEscape(M){return M===-1?!1:this._unicodeMode?Cr(M)||M===V:this.strict?!i(M):this._nFlag?!(M===Ct||M===vt):M!==Ct}eatDecimalEscape(){this._lastIntValue=0;let M=this.currentCodePoint;if(M>=se&&M<=H){do this._lastIntValue=10*this._lastIntValue+(M-ae),this.advance();while((M=this.currentCodePoint)>=ae&&M<=H);return!0}return!1}eatUnicodePropertyValueExpression(){let M=this.index;if(this.eatUnicodePropertyName()&&this.eat(K)){let te=this._lastStrValue;if(this.eatUnicodePropertyValue()){let me=this._lastStrValue;if(b(this.ecmaVersion,te,me))return{key:te,value:me||null};this.raise("Invalid property name")}}if(this.rewind(M),this.eatLoneUnicodePropertyNameOrValue()){let te=this._lastStrValue;if(b(this.ecmaVersion,"General_Category",te))return{key:"General_Category",value:te||null};if(v(this.ecmaVersion,te))return{key:te,value:null};if(this._unicodeSetsMode&&sr(this.ecmaVersion,te))return{key:te,value:null,strings:!0};this.raise("Invalid property name")}return null}eatUnicodePropertyName(){for(this._lastStrValue="";hn(this.currentCodePoint);)this._lastStrValue+=String.fromCodePoint(this.currentCodePoint),this.advance();return this._lastStrValue!==""}eatUnicodePropertyValue(){for(this._lastStrValue="";Hn(this.currentCodePoint);)this._lastStrValue+=String.fromCodePoint(this.currentCodePoint),this.advance();return this._lastStrValue!==""}eatLoneUnicodePropertyNameOrValue(){return this.eatUnicodePropertyValue()}eatHexEscapeSequence(){let M=this.index;if(this.eat(ie)){if(this.eatFixedHexDigits(2))return!0;(this._unicodeMode||this.strict)&&this.raise("Invalid escape"),this.rewind(M)}return!1}eatDecimalDigits(){let M=this.index;for(this._lastIntValue=0;Ke(this.currentCodePoint);)this._lastIntValue=10*this._lastIntValue+Ue(this.currentCodePoint),this.advance();return this.index!==M}eatHexDigits(){let M=this.index;for(this._lastIntValue=0;Ot(this.currentCodePoint);)this._lastIntValue=16*this._lastIntValue+Ue(this.currentCodePoint),this.advance();return this.index!==M}eatLegacyOctalEscapeSequence(){if(this.eatOctalDigit()){let M=this._lastIntValue;if(this.eatOctalDigit()){let te=this._lastIntValue;M<=3&&this.eatOctalDigit()?this._lastIntValue=M*64+te*8+this._lastIntValue:this._lastIntValue=M*8+te}else this._lastIntValue=M;return!0}return!1}eatOctalDigit(){let M=this.currentCodePoint;return mt(M)?(this.advance(),this._lastIntValue=M-ae,!0):(this._lastIntValue=0,!1)}eatFixedHexDigits(M){let te=this.index;this._lastIntValue=0;for(let me=0;mex.name===_e);me.resolved=tt,tt.references.push(me)}}onAlternativeEnter(M){let te=this._node;if(te.type!=="Assertion"&&te.type!=="CapturingGroup"&&te.type!=="Group"&&te.type!=="Pattern")throw new Error("UnknownError");this._node={type:"Alternative",parent:te,start:M,end:M,raw:"",elements:[]},te.alternatives.push(this._node)}onAlternativeLeave(M,te){let me=this._node;if(me.type!=="Alternative")throw new Error("UnknownError");me.end=te,me.raw=this.source.slice(M,te),this._node=me.parent}onGroupEnter(M){let te=this._node;if(te.type!=="Alternative")throw new Error("UnknownError");this._node={type:"Group",parent:te,start:M,end:M,raw:"",alternatives:[]},te.elements.push(this._node)}onGroupLeave(M,te){let me=this._node;if(me.type!=="Group"||me.parent.type!=="Alternative")throw new Error("UnknownError");me.end=te,me.raw=this.source.slice(M,te),this._node=me.parent}onCapturingGroupEnter(M,te){let me=this._node;if(me.type!=="Alternative")throw new Error("UnknownError");this._node={type:"CapturingGroup",parent:me,start:M,end:M,raw:"",name:te,alternatives:[],references:[]},me.elements.push(this._node),this._capturingGroups.push(this._node)}onCapturingGroupLeave(M,te){let me=this._node;if(me.type!=="CapturingGroup"||me.parent.type!=="Alternative")throw new Error("UnknownError");me.end=te,me.raw=this.source.slice(M,te),this._node=me.parent}onQuantifier(M,te,me,_e,tt){let x=this._node;if(x.type!=="Alternative")throw new Error("UnknownError");let P=x.elements.pop();if(P==null||P.type==="Quantifier"||P.type==="Assertion"&&P.kind!=="lookahead")throw new Error("UnknownError");let q={type:"Quantifier",parent:x,start:P.start,end:te,raw:this.source.slice(P.start,te),min:me,max:_e,greedy:tt,element:P};x.elements.push(q),P.parent=q}onLookaroundAssertionEnter(M,te,me){let _e=this._node;if(_e.type!=="Alternative")throw new Error("UnknownError");let tt=this._node={type:"Assertion",parent:_e,start:M,end:M,raw:"",kind:te,negate:me,alternatives:[]};_e.elements.push(tt)}onLookaroundAssertionLeave(M,te){let me=this._node;if(me.type!=="Assertion"||me.parent.type!=="Alternative")throw new Error("UnknownError");me.end=te,me.raw=this.source.slice(M,te),this._node=me.parent}onEdgeAssertion(M,te,me){let _e=this._node;if(_e.type!=="Alternative")throw new Error("UnknownError");_e.elements.push({type:"Assertion",parent:_e,start:M,end:te,raw:this.source.slice(M,te),kind:me})}onWordBoundaryAssertion(M,te,me,_e){let tt=this._node;if(tt.type!=="Alternative")throw new Error("UnknownError");tt.elements.push({type:"Assertion",parent:tt,start:M,end:te,raw:this.source.slice(M,te),kind:me,negate:_e})}onAnyCharacterSet(M,te,me){let _e=this._node;if(_e.type!=="Alternative")throw new Error("UnknownError");_e.elements.push({type:"CharacterSet",parent:_e,start:M,end:te,raw:this.source.slice(M,te),kind:me})}onEscapeCharacterSet(M,te,me,_e){let tt=this._node;if(tt.type!=="Alternative"&&tt.type!=="CharacterClass")throw new Error("UnknownError");tt.elements.push({type:"CharacterSet",parent:tt,start:M,end:te,raw:this.source.slice(M,te),kind:me,negate:_e})}onUnicodePropertyCharacterSet(M,te,me,_e,tt,x,P){let q=this._node;if(q.type!=="Alternative"&&q.type!=="CharacterClass"||P&&(x||tt))throw new Error("UnknownError");let z={type:"CharacterSet",parent:q,start:M,end:te,raw:this.source.slice(M,te),kind:me,strings:P,key:_e},ge=P?Object.assign(Object.assign({},z),{value:null,negate:!1,strings:!0}):Object.assign(Object.assign({},z),{value:tt,negate:x,strings:!1});q.elements.push(ge)}onCharacter(M,te,me){let _e=this._node;if(_e.type!=="Alternative"&&_e.type!=="CharacterClass"&&_e.type!=="StringAlternative")throw new Error("UnknownError");_e.elements.push({type:"Character",parent:_e,start:M,end:te,raw:this.source.slice(M,te),value:me})}onBackreference(M,te,me){let _e=this._node;if(_e.type!=="Alternative")throw new Error("UnknownError");let tt={type:"Backreference",parent:_e,start:M,end:te,raw:this.source.slice(M,te),ref:me,resolved:Ms};_e.elements.push(tt),this._backreferences.push(tt)}onCharacterClassEnter(M,te,me){let _e=this._node,tt={type:"CharacterClass",parent:_e,start:M,end:M,raw:"",unicodeSets:me,negate:te,elements:[]};if(_e.type==="Alternative"){let x=Object.assign(Object.assign({},tt),{parent:_e});this._node=x,_e.elements.push(x)}else if(_e.type==="CharacterClass"&&_e.unicodeSets&&me){let x=Object.assign(Object.assign({},tt),{parent:_e,unicodeSets:me});this._node=x,_e.elements.push(x)}else throw new Error("UnknownError")}onCharacterClassLeave(M,te){let me=this._node;if(me.type!=="CharacterClass"||me.parent.type!=="Alternative"&&me.parent.type!=="CharacterClass"||this._expressionBuffer&&me.elements.length>0)throw new Error("UnknownError");let _e=me.parent;me.end=te,me.raw=this.source.slice(M,te),this._node=_e;let tt=this._expressionBuffer;if(this._expressionBuffer=null,!tt)return;let x={type:"ExpressionCharacterClass",parent:_e,start:me.start,end:me.end,raw:me.raw,negate:me.negate,expression:tt};if(tt.parent=x,me!==_e.elements.pop())throw new Error("UnknownError");_e.elements.push(x)}onCharacterClassRange(M,te){let me=this._node;if(me.type!=="CharacterClass")throw new Error("UnknownError");let _e=me.elements,tt=_e.pop();if(!tt||tt.type!=="Character")throw new Error("UnknownError");if(!me.unicodeSets){let q=_e.pop();if(!q||q.type!=="Character"||q.value!==R)throw new Error("UnknownError")}let x=_e.pop();if(!x||x.type!=="Character")throw new Error("UnknownError");let P={type:"CharacterClassRange",parent:me,start:M,end:te,raw:this.source.slice(M,te),min:x,max:tt};x.parent=P,tt.parent=P,_e.push(P)}onClassIntersection(M,te){var me;let _e=this._node;if(_e.type!=="CharacterClass"||!_e.unicodeSets)throw new Error("UnknownError");let tt=_e.elements.pop(),x=(me=this._expressionBuffer)!==null&&me!==void 0?me:_e.elements.pop();if(!x||!tt||x.type==="ClassSubtraction"||x.type!=="ClassIntersection"&&!mn(x)||!mn(tt))throw new Error("UnknownError");let P={type:"ClassIntersection",parent:_e,start:M,end:te,raw:this.source.slice(M,te),left:x,right:tt};x.parent=P,tt.parent=P,this._expressionBuffer=P}onClassSubtraction(M,te){var me;let _e=this._node;if(_e.type!=="CharacterClass"||!_e.unicodeSets)throw new Error("UnknownError");let tt=_e.elements.pop(),x=(me=this._expressionBuffer)!==null&&me!==void 0?me:_e.elements.pop();if(!x||!tt||x.type==="ClassIntersection"||x.type!=="ClassSubtraction"&&!mn(x)||!mn(tt))throw new Error("UnknownError");let P={type:"ClassSubtraction",parent:_e,start:M,end:te,raw:this.source.slice(M,te),left:x,right:tt};x.parent=P,tt.parent=P,this._expressionBuffer=P}onClassStringDisjunctionEnter(M){let te=this._node;if(te.type!=="CharacterClass"||!te.unicodeSets)throw new Error("UnknownError");this._node={type:"ClassStringDisjunction",parent:te,start:M,end:M,raw:"",alternatives:[]},te.elements.push(this._node)}onClassStringDisjunctionLeave(M,te){let me=this._node;if(me.type!=="ClassStringDisjunction"||me.parent.type!=="CharacterClass")throw new Error("UnknownError");me.end=te,me.raw=this.source.slice(M,te),this._node=me.parent}onStringAlternativeEnter(M){let te=this._node;if(te.type!=="ClassStringDisjunction")throw new Error("UnknownError");this._node={type:"StringAlternative",parent:te,start:M,end:M,raw:"",elements:[]},te.alternatives.push(this._node)}onStringAlternativeLeave(M,te){let me=this._node;if(me.type!=="StringAlternative")throw new Error("UnknownError");me.end=te,me.raw=this.source.slice(M,te),this._node=me.parent}}class hs{constructor(M){this._state=new Oi(M),this._validator=new kn(this._state)}parseLiteral(M,te=0,me=M.length){this._state.source=M,this._validator.validateLiteral(M,te,me);let _e=this._state.pattern,tt=this._state.flags,x={type:"RegExpLiteral",parent:null,start:te,end:me,raw:M,pattern:_e,flags:tt};return _e.parent=x,tt.parent=x,x}parseFlags(M,te=0,me=M.length){return this._state.source=M,this._validator.validateFlags(M,te,me),this._state.flags}parsePattern(M,te=0,me=M.length,_e=void 0){return this._state.source=M,this._validator.validatePattern(M,te,me,_e),this._state.pattern}}class Si{constructor(M){this._handlers=M}visit(M){switch(M.type){case"Alternative":this.visitAlternative(M);break;case"Assertion":this.visitAssertion(M);break;case"Backreference":this.visitBackreference(M);break;case"CapturingGroup":this.visitCapturingGroup(M);break;case"Character":this.visitCharacter(M);break;case"CharacterClass":this.visitCharacterClass(M);break;case"CharacterClassRange":this.visitCharacterClassRange(M);break;case"CharacterSet":this.visitCharacterSet(M);break;case"ClassIntersection":this.visitClassIntersection(M);break;case"ClassStringDisjunction":this.visitClassStringDisjunction(M);break;case"ClassSubtraction":this.visitClassSubtraction(M);break;case"ExpressionCharacterClass":this.visitExpressionCharacterClass(M);break;case"Flags":this.visitFlags(M);break;case"Group":this.visitGroup(M);break;case"Pattern":this.visitPattern(M);break;case"Quantifier":this.visitQuantifier(M);break;case"RegExpLiteral":this.visitRegExpLiteral(M);break;case"StringAlternative":this.visitStringAlternative(M);break;default:throw new Error(`Unknown type: ${M.type}`)}}visitAlternative(M){this._handlers.onAlternativeEnter&&this._handlers.onAlternativeEnter(M),M.elements.forEach(this.visit,this),this._handlers.onAlternativeLeave&&this._handlers.onAlternativeLeave(M)}visitAssertion(M){this._handlers.onAssertionEnter&&this._handlers.onAssertionEnter(M),(M.kind==="lookahead"||M.kind==="lookbehind")&&M.alternatives.forEach(this.visit,this),this._handlers.onAssertionLeave&&this._handlers.onAssertionLeave(M)}visitBackreference(M){this._handlers.onBackreferenceEnter&&this._handlers.onBackreferenceEnter(M),this._handlers.onBackreferenceLeave&&this._handlers.onBackreferenceLeave(M)}visitCapturingGroup(M){this._handlers.onCapturingGroupEnter&&this._handlers.onCapturingGroupEnter(M),M.alternatives.forEach(this.visit,this),this._handlers.onCapturingGroupLeave&&this._handlers.onCapturingGroupLeave(M)}visitCharacter(M){this._handlers.onCharacterEnter&&this._handlers.onCharacterEnter(M),this._handlers.onCharacterLeave&&this._handlers.onCharacterLeave(M)}visitCharacterClass(M){this._handlers.onCharacterClassEnter&&this._handlers.onCharacterClassEnter(M),M.elements.forEach(this.visit,this),this._handlers.onCharacterClassLeave&&this._handlers.onCharacterClassLeave(M)}visitCharacterClassRange(M){this._handlers.onCharacterClassRangeEnter&&this._handlers.onCharacterClassRangeEnter(M),this.visitCharacter(M.min),this.visitCharacter(M.max),this._handlers.onCharacterClassRangeLeave&&this._handlers.onCharacterClassRangeLeave(M)}visitCharacterSet(M){this._handlers.onCharacterSetEnter&&this._handlers.onCharacterSetEnter(M),this._handlers.onCharacterSetLeave&&this._handlers.onCharacterSetLeave(M)}visitClassIntersection(M){this._handlers.onClassIntersectionEnter&&this._handlers.onClassIntersectionEnter(M),this.visit(M.left),this.visit(M.right),this._handlers.onClassIntersectionLeave&&this._handlers.onClassIntersectionLeave(M)}visitClassStringDisjunction(M){this._handlers.onClassStringDisjunctionEnter&&this._handlers.onClassStringDisjunctionEnter(M),M.alternatives.forEach(this.visit,this),this._handlers.onClassStringDisjunctionLeave&&this._handlers.onClassStringDisjunctionLeave(M)}visitClassSubtraction(M){this._handlers.onClassSubtractionEnter&&this._handlers.onClassSubtractionEnter(M),this.visit(M.left),this.visit(M.right),this._handlers.onClassSubtractionLeave&&this._handlers.onClassSubtractionLeave(M)}visitExpressionCharacterClass(M){this._handlers.onExpressionCharacterClassEnter&&this._handlers.onExpressionCharacterClassEnter(M),this.visit(M.expression),this._handlers.onExpressionCharacterClassLeave&&this._handlers.onExpressionCharacterClassLeave(M)}visitFlags(M){this._handlers.onFlagsEnter&&this._handlers.onFlagsEnter(M),this._handlers.onFlagsLeave&&this._handlers.onFlagsLeave(M)}visitGroup(M){this._handlers.onGroupEnter&&this._handlers.onGroupEnter(M),M.alternatives.forEach(this.visit,this),this._handlers.onGroupLeave&&this._handlers.onGroupLeave(M)}visitPattern(M){this._handlers.onPatternEnter&&this._handlers.onPatternEnter(M),M.alternatives.forEach(this.visit,this),this._handlers.onPatternLeave&&this._handlers.onPatternLeave(M)}visitQuantifier(M){this._handlers.onQuantifierEnter&&this._handlers.onQuantifierEnter(M),this.visit(M.element),this._handlers.onQuantifierLeave&&this._handlers.onQuantifierLeave(M)}visitRegExpLiteral(M){this._handlers.onRegExpLiteralEnter&&this._handlers.onRegExpLiteralEnter(M),this.visitPattern(M.pattern),this.visitFlags(M.flags),this._handlers.onRegExpLiteralLeave&&this._handlers.onRegExpLiteralLeave(M)}visitStringAlternative(M){this._handlers.onStringAlternativeEnter&&this._handlers.onStringAlternativeEnter(M),M.elements.forEach(this.visit,this),this._handlers.onStringAlternativeLeave&&this._handlers.onStringAlternativeLeave(M)}}function ds(je,M){return new hs(M).parseLiteral(String(je))}function Tt(je,M){new kn(M).validateLiteral(je)}function Ei(je,M){new Si(M).visit(je)}return ls.AST=r,ls.RegExpParser=hs,ls.RegExpValidator=kn,ls.parseRegExpLiteral=ds,ls.validateRegExpLiteral=Tt,ls.visitRegExpAST=Ei,ls}var U0,R_;function GV(){if(R_)return U0;R_=1;let r=Xn().RegExpValidator,e=new class{constructor(){this._source="",this._controlChars=[],this._validator=new r(this)}onPatternEnter(){this._controlChars=[]}onCharacter(t,s,n){n>=0&&n<=31&&(this._source.codePointAt(t)===n||this._source.slice(t,s).startsWith("\\x")||this._source.slice(t,s).startsWith("\\u"))&&this._controlChars.push(`\\x${`0${n.toString(16)}`.slice(-2)}`)}collectControlChars(t,s){let n=typeof s=="string"&&s.includes("u"),i=typeof s=="string"&&s.includes("v");this._controlChars=[],this._source=t;try{this._validator.validatePattern(t,void 0,void 0,{unicode:n,unicodeSets:i})}catch{}return this._controlChars}};return U0={meta:{type:"problem",docs:{description:"Disallow control characters in regular expressions",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-control-regex"},schema:[],messages:{unexpected:"Unexpected control character(s) in regular expression: {{controlChars}}."}},create(t){function s(n){if(n.regex)return n.regex;if(typeof n.value=="string"&&(n.parent.type==="NewExpression"||n.parent.type==="CallExpression")&&n.parent.callee.type==="Identifier"&&n.parent.callee.name==="RegExp"&&n.parent.arguments[0]===n){let i=n.value,a=n.parent.arguments.length>1&&n.parent.arguments[1].type==="Literal"&&typeof n.parent.arguments[1].value=="string"?n.parent.arguments[1].value:null;return{pattern:i,flags:a}}return null}return{Literal(n){let i=s(n);if(i){let{pattern:a,flags:l}=i,o=e.collectControlChars(a,l);o.length>0&&t.report({node:n,messageId:"unexpected",data:{controlChars:o.join(", ")}})}}}}},U0}var V0,B_;function YV(){return B_||(B_=1,V0={meta:{type:"problem",docs:{description:"Disallow the use of `debugger`",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-debugger"},fixable:null,schema:[],messages:{unexpected:"Unexpected 'debugger' statement."}},create(r){return{DebuggerStatement(e){r.report({node:e,messageId:"unexpected"})}}}}),V0}var W0,N_;function HV(){return N_||(N_=1,W0={meta:{type:"suggestion",docs:{description:"Disallow deleting variables",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-delete-var"},schema:[],messages:{unexpected:"Variables should not be deleted."}},create(r){return{UnaryExpression(e){e.operator==="delete"&&e.argument.type==="Identifier"&&r.report({node:e,messageId:"unexpected"})}}}}),W0}var Z0,L_;function KV(){return L_||(L_=1,Z0={meta:{type:"suggestion",docs:{description:"Disallow equal signs explicitly at the beginning of regular expressions",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-div-regex"},fixable:"code",schema:[],messages:{unexpected:"A regular expression literal can be confused with '/='."}},create(r){let e=r.sourceCode;return{Literal(t){let s=e.getFirstToken(t);s.type==="RegularExpression"&&s.value[1]==="="&&r.report({node:t,messageId:"unexpected",fix(n){return n.replaceTextRange([s.range[0]+1,s.range[0]+2],"[=]")}})}}}}),Z0}var z0,$_;function JV(){return $_||($_=1,z0={meta:{type:"problem",docs:{description:"Disallow duplicate arguments in `function` definitions",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-dupe-args"},schema:[],messages:{unexpected:"Duplicate param '{{name}}'."}},create(r){let e=r.sourceCode;function t(n){return n.type==="Parameter"}function s(n){let i=e.getDeclaredVariables(n);for(let a=0;a=2&&r.report({node:n,messageId:"unexpected",data:{name:l.name}})}}return{FunctionDeclaration:s,FunctionExpression:s}}}),z0}var X0,M_;function eW(){if(M_)return X0;M_=1;let r=Pe();return X0={meta:{type:"problem",docs:{description:"Disallow duplicate class members",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-dupe-class-members"},schema:[],messages:{unexpected:"Duplicate name '{{name}}'."}},create(e){let t=[];function s(n,i){let a=t.at(-1),l=`$${n}`;return a[l]||(a[l]={nonStatic:{init:!1,get:!1,set:!1},static:{init:!1,get:!1,set:!1}}),a[l][i?"static":"nonStatic"]}return{Program(){t=[]},ClassBody(){t.push(Object.create(null))},"ClassBody:exit"(){t.pop()},"MethodDefinition, PropertyDefinition"(n){let i=r.getStaticPropertyName(n),a=n.type==="MethodDefinition"?n.kind:"field";if(i===null||a==="constructor")return;let l=s(i,n.static),o;a==="get"?(o=l.init||l.get,l.get=!0):a==="set"?(o=l.init||l.set,l.set=!0):(o=l.init||l.get||l.set,l.init=!0),o&&e.report({node:n,messageId:"unexpected",data:{name:i}})}}}},X0}var G0,j_;function tW(){if(j_)return G0;j_=1;let r=Pe();function e(i,a,l){return a.every(o=>l.some(u=>i(o,u)))}function t(i,a){return a.type==="LogicalExpression"&&a.operator===i?[...t(i,a.left),...t(i,a.right)]:[a]}let s=t.bind(null,"||"),n=t.bind(null,"&&");return G0={meta:{type:"problem",docs:{description:"Disallow duplicate conditions in if-else-if chains",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-dupe-else-if"},schema:[],messages:{unexpected:"This branch can never execute. Its condition is a duplicate or covered by previous conditions in the if-else-if chain."}},create(i){let a=i.sourceCode;function l(u,c){return u.type!==c.type?!1:u.type==="LogicalExpression"&&(u.operator==="||"||u.operator==="&&")&&u.operator===c.operator?l(u.left,c.left)&&l(u.right,c.right)||l(u.left,c.right)&&l(u.right,c.left):r.equalTokens(u,c,a)}let o=e.bind(null,l);return{IfStatement(u){let c=u.test,p=c.type==="LogicalExpression"&&c.operator==="&&"?[c,...n(c)]:[c],h=u,f=p.map(d=>s(d).map(n));for(;h.parent&&h.parent.type==="IfStatement"&&h.parent.alternate===h;){h=h.parent;let d=s(h.test).map(n);if(f=f.map(m=>m.filter(g=>!d.some(y=>o(y,g)))),f.some(m=>m.length===0)){i.report({node:c,messageId:"unexpected"});break}}}}}},G0}var Y0,q_;function rW(){if(q_)return Y0;q_=1;let r=Pe(),e=/^(?:init|get)$/u,t=/^(?:init|set)$/u;class s{constructor(i,a){this.upper=i,this.node=a,this.properties=new Map}getPropertyInfo(i){let a=r.getStaticPropertyName(i);return this.properties.has(a)||this.properties.set(a,{get:!1,set:!1}),this.properties.get(a)}isPropertyDefined(i){let a=this.getPropertyInfo(i);return e.test(i.kind)&&a.get||t.test(i.kind)&&a.set}defineProperty(i){let a=this.getPropertyInfo(i);e.test(i.kind)&&(a.get=!0),t.test(i.kind)&&(a.set=!0)}}return Y0={meta:{type:"problem",docs:{description:"Disallow duplicate keys in object literals",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-dupe-keys"},schema:[],messages:{unexpected:"Duplicate key '{{name}}'."}},create(n){let i=null;return{ObjectExpression(a){i=new s(i,a)},"ObjectExpression:exit"(){i=i.upper},Property(a){let l=r.getStaticPropertyName(a);a.parent.type==="ObjectExpression"&&l!==null&&(i.isPropertyDefined(a)&&n.report({node:i.node,loc:a.key.loc,messageId:"unexpected",data:{name:l}}),i.defineProperty(a))}}}},Y0}var H0,Q_;function nW(){if(Q_)return H0;Q_=1;let r=Pe();return H0={meta:{type:"problem",docs:{description:"Disallow duplicate case labels",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-duplicate-case"},schema:[],messages:{unexpected:"Duplicate case label."}},create(e){let t=e.sourceCode;function s(n,i){return n.type!==i.type?!1:r.equalTokens(n,i,t)}return{SwitchStatement(n){let i=[];for(let a of n.cases)if(a.test){let l=a.test;i.some(o=>s(o,l))?e.report({node:a,messageId:"unexpected"}):i.push(l)}}}}},H0}var K0,U_;function sW(){if(U_)return K0;U_=1;let r=["ImportSpecifier","ExportSpecifier"],e=["ImportNamespaceSpecifier","ExportNamespaceSpecifier"];function t(c,p){return(p==="named"?r:e).includes(c)}function s(c){if(c.specifiers&&c.specifiers.length>0){let p=c.specifiers,h=p.findIndex(({type:d})=>t(d,"named")||t(d,"namespace")),f=h>-1?h:0;return p[f].type}return c.type==="ExportAllDeclaration"?c.exported?"ExportNamespaceSpecifier":"ExportAll":"SideEffectImport"}function n(c,p){let h=s(c),f=s(p);return!(h==="ExportAll"&&f!=="ExportAll"&&f!=="SideEffectImport"||h!=="ExportAll"&&h!=="SideEffectImport"&&f==="ExportAll"||t(h,"namespace")&&t(f,"named")||t(f,"namespace")&&t(h,"named"))}function i(c,p){let h=0;for(;hh===p).map(({node:h})=>h)}function l(c){return c&&c.source&&c.source.value?c.source.value.trim():""}function o(c,p,h,f,d){let m=l(p);if(h.has(m)){let g=h.get(m),y=[],b=a(g,"import"),v;d&&(v=a(g,"export")),f==="import"?(i(p,b)&&y.push("import"),d&&i(p,v)&&y.push("importAs")):f==="export"&&(i(p,v)&&y.push("export"),i(p,b)&&y.push("exportAs")),y.forEach(S=>c.report({node:p,messageId:S,data:{module:m}}))}}function u(c,p,h,f){return function(d){let m=l(d);if(m){o(c,d,p,h,f);let g={node:d,declarationType:h},y=[g];p.has(m)&&(y=[...p.get(m),g]),p.set(m,y)}}}return K0={meta:{type:"problem",docs:{description:"Disallow duplicate module imports",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-duplicate-imports"},schema:[{type:"object",properties:{includeExports:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{import:"'{{module}}' import is duplicated.",importAs:"'{{module}}' import is duplicated as export.",export:"'{{module}}' export is duplicated.",exportAs:"'{{module}}' export is duplicated as import."}},create(c){let p=(c.options[0]||{}).includeExports,h=new Map,f={ImportDeclaration:u(c,h,"import",p)};return p&&(f.ExportNamedDeclaration=u(c,h,"export",p),f.ExportAllDeclaration=u(c,h,"export",p)),f}},K0}var J0,V_;function zo(){if(V_)return J0;V_=1;let r=Pe();class e{constructor(s,n){this.fixer=s,this.sourceCode=n,this.retainedRange=null}retainRange(s){return this.retainedRange=s,this}retainEnclosingFunction(s){let n=r.getUpperFunction(s);return this.retainRange(n?n.range:this.sourceCode.ast.range)}retainSurroundingTokens(s){let n=this.sourceCode.getTokenBefore(s)||s,i=this.sourceCode.getTokenAfter(s)||s;return this.retainRange([n.range[0],i.range[1]])}replaceTextRange(s,n){let i;return this.retainedRange?i=[Math.min(this.retainedRange[0],s[0]),Math.max(this.retainedRange[1],s[1])]:i=s,this.fixer.replaceTextRange(i,this.sourceCode.text.slice(i[0],s[0])+n+this.sourceCode.text.slice(s[1],i[1]))}remove(s){return this.replaceTextRange(s.range,"")}}return J0=e,J0}var ey,W_;function iW(){if(W_)return ey;W_=1;let r=Pe(),e=zo();return ey={meta:{type:"suggestion",docs:{description:"Disallow `else` blocks after `return` statements in `if` statements",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-else-return"},schema:[{type:"object",properties:{allowElseIf:{type:"boolean",default:!0}},additionalProperties:!1}],fixable:"code",messages:{unexpected:"Unnecessary 'else' after 'return'."}},create(t){let s=t.sourceCode;function n(g,y){if(g.length===0)return!0;let b=y.variableScope;if(y.variables.filter(({defs:C})=>C.length>0).some(({name:C})=>g.includes(C))||y!==b&&y.upper.type==="catch"&&y.upper.variables.some(({name:C})=>g.includes(C))||y.variables.filter(({defs:C,references:O})=>C.length===0&&O.length>0).some(({name:C})=>g.includes(C))||y.through.some(C=>g.includes(C.identifier.name)))return!1;if(y!==b){let C=y.block.range;if(b.variables.filter(({name:w})=>g.includes(w)).some(w=>w.defs.some(({node:{range:E}})=>C[0]<=E[0]&&E[1]<=C[1])))return!1}return!0}function i(g,y){if(g.type==="FunctionDeclaration")return!1;if(g.type!=="BlockStatement")return!0;let b=y.childScopes.find(({block:S})=>S===g);if(!b)return!0;let v=b.variables.map(({name:S})=>S);return n(v,y)}function a(g){let y=s.getScope(g.parent);t.report({node:g,messageId:"unexpected",fix(b){if(!i(g,y))return null;let v=s.getFirstToken(g),S=s.getTokenBefore(v),C=s.getText(g),O=s.getTokenBefore(S),w,E;v.type==="Punctuator"&&v.value==="{"?E=s.getTokenAfter(v):E=v;let k=g.parent.consequent.type!=="BlockStatement"&&O.value!==";",A=/^[([/+`-]/u.test(E.value);if(k&&A)return null;let D=s.getLastToken(g),_=s.getTokenBefore(D);if(_.value!==";"){let B=s.getTokenAfter(D),T=B&&/^[([/+`-]/u.test(B.value),F=B&&B.loc.start.line===_.loc.start.line;if(T||F&&B.value!=="}")return null}return v.type==="Punctuator"&&v.value==="{"?w=C.slice(1,-1):w=C,new e(b,s).retainEnclosingFunction(g).replaceTextRange([S.range[0],g.range[1]],w)}})}function l(g){return g.type==="ReturnStatement"}function o(g){if(g.type==="BlockStatement"){let y=g.body,b=y.at(-1);return b&&l(b)}return l(g)}function u(g){return g.alternate&&g.consequent}function c(g){return g.type==="IfStatement"&&u(g)&&o(g.alternate)&&o(g.consequent)}function p(g){return l(g)||c(g)}function h(g){return g.type==="BlockStatement"?g.body.some(p):p(g)}function f(g){let y=g.parent;if(!r.STATEMENT_LIST_PARENTS.has(y.type))return;let b=[],v;for(let S=g;S.type==="IfStatement";S=S.alternate){if(!S.alternate)return;b.push(S.consequent),v=S.alternate}b.every(h)&&a(v)}function d(g){let y=g.parent;if(!r.STATEMENT_LIST_PARENTS.has(y.type))return;let b=g.alternate;b&&h(g.consequent)&&a(b)}return{"IfStatement:exit":!(t.options[0]&&t.options[0].allowElseIf===!1)?f:d}}},ey}var ty,Z_;function aW(){if(Z_)return ty;Z_=1;let r=Pe();return ty={meta:{hasSuggestions:!0,type:"suggestion",docs:{description:"Disallow empty block statements",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-empty"},schema:[{type:"object",properties:{allowEmptyCatch:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{unexpected:"Empty {{type}} statement.",suggestComment:"Add comment inside empty {{type}} statement."}},create(e){let t=e.options[0]||{},s=t.allowEmptyCatch||!1,n=e.sourceCode;return{BlockStatement(i){i.body.length===0&&(r.isFunction(i.parent)||s&&i.parent.type==="CatchClause"||n.getCommentsInside(i).length>0||e.report({node:i,messageId:"unexpected",data:{type:"block"},suggest:[{messageId:"suggestComment",data:{type:"block"},fix(a){let l=[i.range[0]+1,i.range[1]-1];return a.replaceTextRange(l," /* empty */ ")}}]}))},SwitchStatement(i){(typeof i.cases>"u"||i.cases.length===0)&&e.report({node:i,messageId:"unexpected",data:{type:"switch"}})}}}},ty}var ry,z_;function oW(){if(z_)return ry;z_=1;let{RegExpParser:r,visitRegExpAST:e}=Xn(),t=new r,s=/\[\]/u;return ry={meta:{type:"problem",docs:{description:"Disallow empty character classes in regular expressions",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-empty-character-class"},schema:[],messages:{unexpected:"Empty class."}},create(n){return{"Literal[regex]"(i){let{pattern:a,flags:l}=i.regex;if(!s.test(a))return;let o;try{o=t.parsePattern(a,0,a.length,{unicode:l.includes("u"),unicodeSets:l.includes("v")})}catch{return}e(o,{onCharacterClassEnter(u){!u.negate&&u.elements.length===0&&n.report({node:i,messageId:"unexpected"})}})}}}},ry}var ny,X_;function lW(){if(X_)return ny;X_=1;let r=Pe(),e=Object.freeze(["functions","arrowFunctions","generatorFunctions","methods","generatorMethods","getters","setters","constructors","asyncFunctions","asyncMethods"]);function t(s){let n=s.parent,i;if(s.type==="ArrowFunctionExpression")return"arrowFunctions";if(n.type==="Property"){if(n.kind==="get")return"getters";if(n.kind==="set")return"setters";i=n.method?"methods":"functions"}else if(n.type==="MethodDefinition"){if(n.kind==="get")return"getters";if(n.kind==="set")return"setters";if(n.kind==="constructor")return"constructors";i="methods"}else i="functions";let a;if(s.generator)a="generator";else if(s.async)a="async";else return i;return a+i[0].toUpperCase()+i.slice(1)}return ny={meta:{type:"suggestion",docs:{description:"Disallow empty functions",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-empty-function"},schema:[{type:"object",properties:{allow:{type:"array",items:{enum:e},uniqueItems:!0}},additionalProperties:!1}],messages:{unexpected:"Unexpected empty {{name}}."}},create(s){let i=(s.options[0]||{}).allow||[],a=s.sourceCode;function l(o){let u=t(o),c=r.getFunctionNameWithKind(o),p=a.getTokens(o.body,{includeComments:!0,filter:r.isCommentToken});!i.includes(u)&&o.body.type==="BlockStatement"&&o.body.body.length===0&&p.length===0&&s.report({node:o,loc:o.body.loc,messageId:"unexpected",data:{name:c}})}return{ArrowFunctionExpression:l,FunctionDeclaration:l,FunctionExpression:l}}},ny}var sy,G_;function uW(){if(G_)return sy;G_=1;let r=Pe();return sy={meta:{type:"problem",docs:{description:"Disallow empty destructuring patterns",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-empty-pattern"},schema:[{type:"object",properties:{allowObjectPatternsAsParameters:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{unexpected:"Unexpected empty {{type}} pattern."}},create(e){let t=e.options[0]||{},s=t.allowObjectPatternsAsParameters||!1;return{ObjectPattern(n){n.properties.length>0||s&&(r.isFunction(n.parent)||n.parent.type==="AssignmentPattern"&&r.isFunction(n.parent.parent)&&n.parent.right.type==="ObjectExpression"&&n.parent.right.properties.length===0)||e.report({node:n,messageId:"unexpected",data:{type:"object"}})},ArrayPattern(n){n.elements.length===0&&e.report({node:n,messageId:"unexpected",data:{type:"array"}})}}}},sy}var iy,Y_;function cW(){return Y_||(Y_=1,iy={meta:{type:"suggestion",docs:{description:"Disallow empty static blocks",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-empty-static-block"},schema:[],messages:{unexpected:"Unexpected empty static block."}},create(r){let e=r.sourceCode;return{StaticBlock(t){if(t.body.length===0){let s=e.getLastToken(t);e.getCommentsBefore(s).length===0&&r.report({node:t,messageId:"unexpected"})}}}}}),iy}var ay,H_;function fW(){return H_||(H_=1,ay={meta:{type:"suggestion",docs:{description:"Disallow `null` comparisons without type-checking operators",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-eq-null"},schema:[],messages:{unexpected:"Use '===' to compare with null."}},create(r){return{BinaryExpression(e){let t=e.operator==="=="||e.operator==="!=";(e.right.type==="Literal"&&e.right.raw==="null"&&t||e.left.type==="Literal"&&e.left.raw==="null"&&t)&&r.report({node:e,messageId:"unexpected"})}}}}),ay}var oy,K_;function pW(){if(K_)return oy;K_=1;let r=Pe(),e=Object.freeze(["global","window","globalThis"]);function t(s,n){return r.isSpecificMemberAccess(s,null,n)}return oy={meta:{type:"suggestion",docs:{description:"Disallow the use of `eval()`",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-eval"},schema:[{type:"object",properties:{allowIndirect:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{unexpected:"eval can be harmful."}},create(s){let n=!!(s.options[0]&&s.options[0].allowIndirect),i=s.sourceCode,a=null;function l(h){let f=i.getScope(h).isStrict;a={upper:a,node:h,strict:f,isTopLevelOfScript:!1,defaultThis:!1,initialized:f}}function o(){a=a.upper}function u(h){let f=h.parent,d=h.type==="MemberExpression"?h.property:h,m=f.type==="CallExpression"&&f.callee===h?f:h;s.report({node:m,loc:d.loc,messageId:"unexpected"})}function c(h){for(let f=0;f *.value":l,"PropertyDefinition > *.value:exit":o,StaticBlock:l,"StaticBlock:exit":o,ThisExpression(h){t(h.parent,"eval")&&(a.initialized||(a.initialized=!0,a.defaultThis=r.isDefaultThisBinding(a.node,i)),(a.isTopLevelOfScript||!a.strict&&a.defaultThis)&&u(h.parent))}}}},oy}var ly,J_;function hW(){if(J_)return ly;J_=1;let r=Pe();return ly={meta:{type:"problem",docs:{description:"Disallow reassigning exceptions in `catch` clauses",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-ex-assign"},schema:[],messages:{unexpected:"Do not assign to the exception parameter."}},create(e){let t=e.sourceCode;function s(n){r.getModifyingReferences(n.references).forEach(i=>{e.report({node:i.identifier,messageId:"unexpected"})})}return{CatchClause(n){t.getDeclaredVariables(n).forEach(s)}}}},ly}var uy,e2;function dW(){if(e2)return uy;e2=1;let r=Pe();return uy={meta:{type:"suggestion",docs:{description:"Disallow extending native types",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-extend-native"},schema:[{type:"object",properties:{exceptions:{type:"array",items:{type:"string"},uniqueItems:!0}},additionalProperties:!1}],messages:{unexpected:"{{builtin}} prototype is read only, properties should not be added."}},create(e){let t=e.options[0]||{},s=e.sourceCode,n=new Set(t.exceptions||[]),i=new Set(Object.keys(r.ECMASCRIPT_GLOBALS).filter(p=>p[0].toUpperCase()===p[0]).filter(p=>!n.has(p)));function a(p,h){e.report({node:p,messageId:"unexpected",data:{builtin:h}})}function l(p){return!!(p&&p.parent&&p.parent.type==="MemberExpression"&&p.parent.object===p&&r.getStaticPropertyName(p.parent)==="prototype")}function o(p){return p.parent.type==="MemberExpression"&&p.parent.object===p&&p.parent.parent.type==="AssignmentExpression"&&p.parent.parent.left===p.parent}function u(p){return p.parent.type==="CallExpression"&&p.parent.arguments[0]===p&&r.isSpecificMemberAccess(p.parent.callee,"Object",/^definePropert(?:y|ies)$/u)}function c(p){if(!l(p))return;let h=p.parent.parent.type==="ChainExpression"?p.parent.parent:p.parent;o(h)?a(h.parent.parent,p.name):u(h)&&a(h.parent,p.name)}return{"Program:exit"(p){let h=s.getScope(p);i.forEach(f=>{let d=h.set.get(f);d&&d.references&&d.references.map(m=>m.identifier).forEach(c)})}}}},uy}var cy,t2;function mW(){if(t2)return cy;t2=1;let r=Pe(),e=new Set(["Literal","Identifier","ThisExpression","FunctionExpression"]);return cy={meta:{type:"suggestion",docs:{description:"Disallow unnecessary calls to `.bind()`",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-extra-bind"},schema:[],fixable:"code",messages:{unexpected:"The function binding is unnecessary."}},create(t){let s=t.sourceCode,n=null;function i(h){return e.has(h.type)}function a(h){let f=h.parent,d=f.parent.type==="ChainExpression"?f.parent.parent:f.parent;t.report({node:d,messageId:"unexpected",loc:f.property.loc,fix(m){if(!i(d.arguments[0]))return null;let g=[[s.getTokenAfter(f.object,r.isNotClosingParenToken),s.getLastToken(f)],[s.getTokenAfter(f,r.isNotClosingParenToken),s.getLastToken(d)]],y=g[0][0],b=g[1][1];return s.commentsExistBetween(y,b)?null:g.map(([v,S])=>m.removeRange([v.range[0],S.range[1]]))}})}function l(h){if(!r.isSpecificMemberAccess(h.parent,null,"bind"))return!1;let f=h.parent.parent.type==="ChainExpression"?h.parent.parent:h.parent;return f.parent.type==="CallExpression"&&f.parent.callee===f&&f.parent.arguments.length===1&&f.parent.arguments[0].type!=="SpreadElement"}function o(h){n={isBound:l(h),thisFound:!1,upper:n}}function u(h){n.isBound&&!n.thisFound&&a(h),n=n.upper}function c(h){l(h)&&a(h)}function p(){n&&(n.thisFound=!0)}return{"ArrowFunctionExpression:exit":c,FunctionDeclaration:o,"FunctionDeclaration:exit":u,FunctionExpression:o,"FunctionExpression:exit":u,ThisExpression:p}}},cy}var fy,r2;function gW(){if(r2)return fy;r2=1;let r=Pe(),e=hr(),t=r.getPrecedence;return fy={meta:{type:"suggestion",docs:{description:"Disallow unnecessary boolean casts",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-extra-boolean-cast"},schema:[{type:"object",properties:{enforceForLogicalOperands:{type:"boolean",default:!1}},additionalProperties:!1}],fixable:"code",messages:{unexpectedCall:"Redundant Boolean call.",unexpectedNegation:"Redundant double negation."}},create(s){let n=s.sourceCode,i=new Set(["IfStatement","DoWhileStatement","WhileStatement","ConditionalExpression","ForStatement"]);function a(f){return(f.type==="CallExpression"||f.type==="NewExpression")&&f.callee.type==="Identifier"&&f.callee.name==="Boolean"}function l(f){return f.type==="LogicalExpression"&&(f.operator==="||"||f.operator==="&&")&&s.options.length&&s.options[0].enforceForLogicalOperands===!0}function o(f){return a(f.parent)&&f===f.parent.arguments[0]||i.has(f.parent.type)&&f===f.parent.test||f.parent.type==="UnaryExpression"&&f.parent.operator==="!"}function u(f){return f.parent.type==="ChainExpression"?u(f.parent):o(f)||l(f.parent)&&u(f.parent)}function c(f){return!!n.getCommentsInside(f).length}function p(f){return e.isParenthesized(1,f,n)}function h(f,d){if(f.parent.type==="ChainExpression")return h(f.parent,d);if(p(f))return!1;let m=f.parent;switch(m.type){case"CallExpression":case"NewExpression":return d.type==="SequenceExpression";case"IfStatement":case"DoWhileStatement":case"WhileStatement":case"ForStatement":return!1;case"ConditionalExpression":return t(d)<=t(m);case"UnaryExpression":return t(d)=we||w(X)))}function D(X){return l&&X.test.type==="AssignmentExpression"}function _(X){for(let we=X;we;we=we.parent)if(we.type==="ReturnStatement"||we.type==="ArrowFunctionExpression"&&we.body.type!=="BlockStatement")return!0;return!1}function B(X){let we=s.getLastToken(X),Ve=s.getTokenBefore(we);return X.arguments.length>0||e.isOpeningParenToken(Ve)&&e.isClosingParenToken(we)&&X.callee.range[1]0&&Ct.test(it[st-1].value))return}}function et(){t.report({node:X,loc:we.loc,messageId:"unexpected",fix:U(X)?it=>{let st=s.text.slice(we.range[1],Ve.range[0]);return it.replaceTextRange([we.range[0],Ve.range[1]],(Q(X)?" ":"")+st+(I(X)?" ":""))}:null})}if(v){v.reports.push({node:X,finishReport:et});return}et()}function ae(X){A(X.argument,i(X))&&V(X.argument)}function se(X){let we=X.object,Ve=X.object.type;for(;Ve==="MemberExpression";)we=we.object,Ve=we.type;return Ve==="CallExpression"}function ve(X){let we=X.callee;A(we,i(X))&&(k(we)||!(N(X)||we.type==="NewExpression"&&!B(we)&&!(X.type==="NewExpression"&&!B(X))||X.type==="NewExpression"&&we.type==="MemberExpression"&&se(we)||!X.optional&&we.type==="ChainExpression"))&&V(X.callee),X.arguments.filter(Ve=>A(Ve,y)).forEach(V)}function H(X){let we=i(X),Ve=i(X.left),et=i(X.right),it=X.operator==="**",st=u&&(X.left.type==="BinaryExpression"||X.left.type==="LogicalExpression"),Ct=u&&(X.right.type==="BinaryExpression"||X.right.type==="LogicalExpression");!st&&E(X.left)&&(!(["AwaitExpression","UnaryExpression"].includes(X.left.type)&&it)&&!e.isMixedLogicalAndCoalesceExpressions(X.left,X)&&(Ve>we||Ve===we&&!it)||w(X.left))&&V(X.left),!Ct&&E(X.right)&&(!e.isMixedLogicalAndCoalesceExpressions(X.right,X)&&(et>we||et===we&&it)||w(X.right))&&V(X.right)}function he(X){if(!X.superClass)return;(i(X.superClass)>b?E(X.superClass):k(X.superClass))&&V(X.superClass)}function $(X){A(X.argument,y)&&V(X.argument)}function pe(X){let we=O(X)?s.getTokenBefore(X):s.getFirstToken(X),Ve=s.getTokenAfter(we,e.isNotOpeningParenToken),et=Ve?s.getTokenAfter(Ve):null,it=Ve?s.getTokenAfter(Ve,e.isNotClosingParenToken):null;e.isOpeningParenToken(we)&&(e.isOpeningBraceToken(Ve)||Ve.type==="Keyword"&&(Ve.value==="function"||Ve.value==="class"||Ve.value==="let"&&it&&(e.isOpeningBracketToken(it)||it.type==="Identifier"))||Ve&&Ve.type==="Identifier"&&Ve.value==="async"&&et&&et.type==="Keyword"&&et.value==="function")&&n.add(Ve),(X.parent.type==="ExportDefaultDeclaration"?A(X,y):E(X))&&V(X)}function K(X,we){let Ve=[X],et=X;for(;et!==we;){if(et=et.parent,et===null)throw new Error("Nodes are not in the ancestor-descendant relationship.");Ve.push(et)}return Ve}function le(X,we){return K(we,X).reverse()}function xe(X,we){switch(X.type){case"ArrayExpression":case"ArrayPattern":case"BlockStatement":case"ObjectExpression":case"ObjectPattern":case"TemplateLiteral":return!0;case"ArrowFunctionExpression":case"FunctionExpression":return X.params.includes(we);case"CallExpression":case"NewExpression":return X.arguments.includes(we);case"MemberExpression":return X.computed&&X.property===we;case"ConditionalExpression":return X.consequent===we;default:return!1}}function Le(){v={upper:v,inExpressionNodes:[],reports:[]}}function qe(){let{upper:X,inExpressionNodes:we,reports:Ve}=v;X?(X.inExpressionNodes.push(...we),X.reports.push(...Ve)):Ve.forEach(({finishReport:et})=>et()),v=X}function rt(X){return v.reports.some(we=>we.node===X)}function ht(X){v.reports=v.reports.filter(we=>we.node!==X)}function pt(X){return X.type==="MemberExpression"?X.parent.type==="NewExpression"&&X.parent.callee===X?!0:X.parent.object===X&&pt(X.parent):!1}function Et({left:X,operator:we,right:Ve}){if(X.type==="Identifier"&&["=","&&=","||=","??="].includes(we)){let et=Ve.type;if(et==="ArrowFunctionExpression"||(et==="FunctionExpression"||et==="ClassExpression")&&!Ve.id)return!0}return!1}return{ArrayExpression(X){X.elements.filter(we=>we&&A(we,y)).forEach(V)},ArrayPattern(X){X.elements.filter(we=>R(we)&&E(we)).forEach(V)},ArrowFunctionExpression(X){if(!F(X)&&!(X.body.type==="ConditionalExpression"&&h)&&X.body.type!=="BlockStatement"){let we=s.getFirstToken(X.body,e.isNotOpeningParenToken),Ve=s.getTokenBefore(we);e.isOpeningParenToken(Ve)&&e.isOpeningBraceToken(we)&&n.add(we),A(X.body,y)&&V(X.body)}},AssignmentExpression(X){R(X.left)&&E(X.left)&&(!Et(X)||w(X.left))&&V(X.left),!F(X)&&A(X.right,i(X))&&V(X.right)},BinaryExpression(X){v&&X.operator==="in"&&v.inExpressionNodes.push(X),H(X)},CallExpression:ve,ConditionalExpression(X){if(F(X))return;let we=new Set(["BinaryExpression","LogicalExpression"]);!(o&&we.has(X.test.type))&&!D(X)&&A(X.test,i({type:"LogicalExpression",operator:"||"}))&&V(X.test),!(o&&we.has(X.consequent.type))&&A(X.consequent,y)&&V(X.consequent),!(o&&we.has(X.alternate.type))&&A(X.alternate,y)&&V(X.alternate)},DoWhileStatement(X){E(X.test)&&!D(X)&&V(X.test)},ExportDefaultDeclaration:X=>pe(X.declaration),ExpressionStatement:X=>pe(X.expression),ForInStatement(X){if(X.left.type!=="VariableDeclaration"){let we=s.getFirstToken(X.left,e.isNotOpeningParenToken);we.value==="let"&&e.isOpeningBracketToken(s.getTokenAfter(we,e.isNotClosingParenToken))&&n.add(we)}E(X.left)&&V(X.left),E(X.right)&&V(X.right)},ForOfStatement(X){if(X.left.type!=="VariableDeclaration"){let we=s.getFirstToken(X.left,e.isNotOpeningParenToken);we.value==="let"&&n.add(we)}E(X.left)&&V(X.left),A(X.right,y)&&V(X.right)},ForStatement(X){if(X.test&&E(X.test)&&!D(X)&&V(X.test),X.update&&E(X.update)&&V(X.update),X.init){if(X.init.type!=="VariableDeclaration"){let we=s.getFirstToken(X.init,e.isNotOpeningParenToken);we.value==="let"&&e.isOpeningBracketToken(s.getTokenAfter(we,e.isNotClosingParenToken))&&n.add(we)}Le(),E(X.init)&&V(X.init)}},"ForStatement > *.init:exit"(X){v.reports.length&&v.inExpressionNodes.forEach(we=>{let Ve=le(X,we),et;for(let it=0;it=i(X)&&(X.computed||!(e.isDecimalInteger(X.object)||X.object.type==="Literal"&&X.object.regex))&&V(X.object),Ve&&X.object.type==="CallExpression"&&V(X.object),Ve&&!d&&X.object.type==="NewExpression"&&B(X.object)&&V(X.object),Ve&&X.optional&&X.object.type==="ChainExpression"&&V(X.object),X.computed&&E(X.property)&&V(X.property)},"MethodDefinition[computed=true]"(X){A(X.key,y)&&V(X.key)},NewExpression:ve,ObjectExpression(X){X.properties.filter(we=>we.value&&A(we.value,y)).forEach(we=>V(we.value))},ObjectPattern(X){X.properties.filter(we=>{let Ve=we.value;return R(Ve)&&E(Ve)}).forEach(we=>V(we.value))},Property(X){if(X.computed){let{key:we}=X;we&&A(we,y)&&V(we)}},PropertyDefinition(X){X.computed&&A(X.key,y)&&V(X.key),X.value&&A(X.value,y)&&V(X.value)},RestElement(X){let we=X.argument;R(we)&&E(we)&&V(we)},ReturnStatement(X){let we=s.getFirstToken(X);F(X)||X.argument&&j(we,X.argument)&&!(X.argument.type==="Literal"&&X.argument.regex)&&V(X.argument)},SequenceExpression(X){let we=i(X);X.expressions.filter(Ve=>A(Ve,we)).forEach(V)},SwitchCase(X){X.test&&E(X.test)&&V(X.test)},SwitchStatement(X){E(X.discriminant)&&V(X.discriminant)},ThrowStatement(X){let we=s.getFirstToken(X);j(we,X.argument)&&V(X.argument)},UnaryExpression:ae,UpdateExpression(X){if(X.prefix)ae(X);else{let{argument:we}=X,Ve=s.getLastToken(X);we.loc.end.line===Ve.loc.start.line?ae(X):k(we)&&V(we)}},AwaitExpression:ae,VariableDeclarator(X){X.init&&A(X.init,y)&&!(X.init.type==="Literal"&&X.init.regex)&&V(X.init)},WhileStatement(X){E(X.test)&&!D(X)&&V(X.test)},WithStatement(X){E(X.object)&&V(X.object)},YieldExpression(X){if(X.argument){let we=s.getFirstToken(X);(i(X.argument)>=i(X)&&j(we,X.argument)||k(X.argument))&&V(X.argument)}},ClassDeclaration:he,ClassExpression:he,SpreadElement:$,SpreadProperty:$,ExperimentalSpreadProperty:$,TemplateLiteral(X){X.expressions.filter(we=>we&&E(we)).forEach(V)},AssignmentPattern(X){let{left:we,right:Ve}=X;R(we)&&E(we)&&V(we),Ve&&A(Ve,y)&&V(Ve)}}}},hy}var dy,i2;function bW(){if(i2)return dy;i2=1;let r=zo(),e=Pe();return dy={meta:{deprecated:!0,replacedBy:[],type:"suggestion",docs:{description:"Disallow unnecessary semicolons",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-extra-semi"},fixable:"code",schema:[],messages:{unexpected:"Unnecessary semicolon."}},create(t){let s=t.sourceCode;function n(l){let o=s.getTokenAfter(l);if(!o||o.type!=="String")return!0;let u=s.getNodeByRangeIndex(o.range[0]);return!e.isTopLevelExpressionStatement(u.parent)}function i(l){t.report({node:l,messageId:"unexpected",fix:n(l)?o=>new r(o,t.sourceCode).retainSurroundingTokens(l).remove(l):null})}function a(l){for(let o=l;o.type==="Punctuator"&&!e.isClosingBraceToken(o);o=s.getTokenAfter(o))e.isSemicolonToken(o)&&i(o)}return{EmptyStatement(l){let o=l.parent;["ForStatement","ForInStatement","ForOfStatement","WhileStatement","DoWhileStatement","IfStatement","LabeledStatement","WithStatement"].includes(o.type)||i(l)},ClassBody(l){a(s.getFirstToken(l,1))},"MethodDefinition, PropertyDefinition, StaticBlock"(l){a(s.getTokenAfter(l))}}}},dy}var my,a2;function vW(){if(a2)return my;a2=1;let{directivesPattern:r}=Oc(),e=/falls?\s?through/iu;function t(a){for(let l of a)if(l.reachable)return!0;return!1}function s(a,l){return l.test(a)&&!r.test(a.trim())}function n(a,l,o,u){let c=o.sourceCode;if(a.consequent.length===1&&a.consequent[0].type==="BlockStatement"){let h=c.getLastToken(a.consequent[0]),f=c.getCommentsBefore(h).pop();if(f&&s(f.value,u))return f}let p=c.getCommentsBefore(l).pop();return p&&s(p.value,u)?p:null}function i(a,l){return l.loc.start.line>a.loc.end.line+1}return my={meta:{type:"problem",docs:{description:"Disallow fallthrough of `case` statements",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-fallthrough"},schema:[{type:"object",properties:{commentPattern:{type:"string",default:""},allowEmptyCase:{type:"boolean",default:!1},reportUnusedFallthroughComment:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{unusedFallthroughComment:"Found a comment that would permit fallthrough, but case cannot fall through.",case:"Expected a 'break' statement before 'case'.",default:"Expected a 'break' statement before 'default'."}},create(a){let l=a.options[0]||{},o=[],u=new Set,c=a.sourceCode,p=l.allowEmptyCase||!1,h=l.reportUnusedFallthroughComment||!1,f=null,d=null;return l.commentPattern?d=new RegExp(l.commentPattern,"u"):d=e,{onCodePathStart(){o.push(u),u=new Set},onCodePathEnd(){u=o.pop()},onUnreachableCodePathSegmentStart(m){u.add(m)},onUnreachableCodePathSegmentEnd(m){u.delete(m)},onCodePathSegmentStart(m){u.add(m)},onCodePathSegmentEnd(m){u.delete(m)},SwitchCase(m){if(f&&f.node.parent===m.parent){let g=n(f.node,m,a,d);f.isFallthrough&&!g?a.report({messageId:m.test?"case":"default",node:m}):h&&!f.isSwitchExitReachable&&g&&a.report({messageId:"unusedFallthroughComment",node:g})}f=null},"SwitchCase:exit"(m){let g=c.getTokenAfter(m),y=t(u),b=y&&(m.consequent.length>0||!p&&i(m,g))&&m.parent.cases.at(-1)!==m;f={node:m,isSwitchExitReachable:y,isFallthrough:b}}}}},my}var gy,o2;function OW(){if(o2)return gy;o2=1;let r=Pe();return gy={meta:{deprecated:!0,replacedBy:[],type:"suggestion",docs:{description:"Disallow leading or trailing decimal points in numeric literals",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-floating-decimal"},schema:[],fixable:"code",messages:{leading:"A leading decimal point can be confused with a dot.",trailing:"A trailing decimal point can be confused with a dot."}},create(e){let t=e.sourceCode;return{Literal(s){typeof s.value=="number"&&(s.raw.startsWith(".")&&e.report({node:s,messageId:"leading",fix(n){let i=t.getTokenBefore(s),a=i&&i.range[1]===s.range[0]&&!r.canTokensBeAdjacent(i,`0${s.raw}`);return n.insertTextBefore(s,a?" 0":"0")}}),s.raw.indexOf(".")===s.raw.length-1&&e.report({node:s,messageId:"trailing",fix:n=>n.insertTextAfter(s,"0")}))}}}},gy}var yy,l2;function SW(){if(l2)return yy;l2=1;let r=Pe();return yy={meta:{type:"problem",docs:{description:"Disallow reassigning `function` declarations",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-func-assign"},schema:[],messages:{isAFunction:"'{{name}}' is a function."}},create(e){let t=e.sourceCode;function s(a){r.getModifyingReferences(a).forEach(l=>{e.report({node:l.identifier,messageId:"isAFunction",data:{name:l.identifier.name}})})}function n(a){a.defs[0].type==="FunctionName"&&s(a.references)}function i(a){t.getDeclaredVariables(a).forEach(n)}return{FunctionDeclaration:i,FunctionExpression:i}}},yy}var xy,u2;function EW(){return u2||(u2=1,xy={meta:{type:"suggestion",docs:{description:"Disallow assignments to native objects or read-only global variables",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-global-assign"},schema:[{type:"object",properties:{exceptions:{type:"array",items:{type:"string"},uniqueItems:!0}},additionalProperties:!1}],messages:{globalShouldNotBeModified:"Read-only global '{{name}}' should not be modified."}},create(r){let e=r.options[0],t=r.sourceCode,s=e&&e.exceptions||[];function n(a,l,o){let u=a.identifier;a.init===!1&&a.isWrite()&&(l===0||o[l-1].identifier!==u)&&r.report({node:u,messageId:"globalShouldNotBeModified",data:{name:u.name}})}function i(a){a.writeable===!1&&!s.includes(a.name)&&a.references.forEach(n)}return{Program(a){t.getScope(a).variables.forEach(i)}}}}),xy}var by,c2;function CW(){if(c2)return by;c2=1;let r=Pe(),e=/^(?:i|lastI)ndexOf$/u,t=["~","!!","+","- -","-","*"];function s(m){return{boolean:"boolean"in m?m.boolean:!0,number:"number"in m?m.number:!0,string:"string"in m?m.string:!0,disallowTemplateShorthand:"disallowTemplateShorthand"in m?m.disallowTemplateShorthand:!1,allow:m.allow||[]}}function n(m){return m.operator==="!"&&m.argument.type==="UnaryExpression"&&m.argument.operator==="!"}function i(m){if(m.operator!=="~")return!1;let g=r.skipChainExpression(m.argument);return g.type==="CallExpression"&&r.isSpecificMemberAccess(g.callee,null,e)}function a(m){return m.operator==="*"&&(m.left.type==="Literal"&&m.left.value===1||m.right.type==="Literal"&&m.right.value===1)}function l(m,g){return m.type==="BinaryExpression"&&m.operator==="*"&&m.right.type==="Literal"&&m.right.value===1&&m.parent.type==="BinaryExpression"&&m.parent.operator==="/"&&m.parent.left===m&&!r.isParenthesised(g,m)}function o(m){return m.type==="Literal"&&typeof m.value=="number"||m.type==="CallExpression"&&(m.callee.name==="Number"||m.callee.name==="parseInt"||m.callee.name==="parseFloat")}function u(m){let g=m.left,y=m.right;return y.type!=="BinaryExpression"&&!o(y)?y:g.type!=="BinaryExpression"&&!o(g)?g:null}function c(m){return r.isStringLiteral(m)||m.type==="CallExpression"&&m.callee.type==="Identifier"&&m.callee.name==="String"}function p(m){return r.isStringLiteral(m)&&(m.value===""||m.type==="TemplateLiteral"&&m.quasis.length===1&&m.quasis[0].value.cooked==="")}function h(m){return m.operator==="+"&&(p(m.left)&&!c(m.right)||p(m.right)&&!c(m.left))}function f(m){return m.operator==="+="&&p(m.right)}function d(m){return p(m.left)?m.right:m.left}return by={meta:{hasSuggestions:!0,type:"suggestion",docs:{description:"Disallow shorthand type conversions",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-implicit-coercion"},fixable:"code",schema:[{type:"object",properties:{boolean:{type:"boolean",default:!0},number:{type:"boolean",default:!0},string:{type:"boolean",default:!0},disallowTemplateShorthand:{type:"boolean",default:!1},allow:{type:"array",items:{enum:t},uniqueItems:!0}},additionalProperties:!1}],messages:{implicitCoercion:"Unexpected implicit coercion encountered. Use `{{recommendation}}` instead.",useRecommendation:"Use `{{recommendation}}` instead."}},create(m){let g=s(m.options[0]||{}),y=m.sourceCode;function b(v,S,C,O){function w(E){let k=y.getTokenBefore(v);return k?.range[1]===v.range[0]&&!r.canTokensBeAdjacent(k,S)?E.replaceText(v,` ${S}`):E.replaceText(v,S)}m.report({node:v,messageId:"implicitCoercion",data:{recommendation:S},fix(E){return O?w(E):null},suggest:[{messageId:"useRecommendation",data:{recommendation:S},fix(E){return O||!C?null:w(E)}}]})}return{UnaryExpression(v){let S;if(S=g.allow.includes("!!"),!S&&g.boolean&&n(v)){let C=`Boolean(${y.getText(v.argument.argument)})`,w=r.getVariableByName(y.getScope(v),"Boolean")?.identifiers.length===0;b(v,C,!0,w)}if(S=g.allow.includes("~"),!S&&g.boolean&&i(v)){let C=v.argument.type==="ChainExpression"?">= 0":"!== -1",O=`${y.getText(v.argument)} ${C}`;b(v,O,!1,!1)}if(S=g.allow.includes("+"),!S&&g.number&&v.operator==="+"&&!o(v.argument)){let C=`Number(${y.getText(v.argument)})`;b(v,C,!0,!1)}if(S=g.allow.includes("- -"),!S&&g.number&&v.operator==="-"&&v.argument.type==="UnaryExpression"&&v.argument.operator==="-"&&!o(v.argument.argument)){let C=`Number(${y.getText(v.argument.argument)})`;b(v,C,!0,!1)}},"BinaryExpression:exit"(v){let S;S=g.allow.includes("*");let C=!S&&g.number&&a(v)&&!l(v,y)&&u(v);if(C){let O=`Number(${y.getText(C)})`;b(v,O,!0,!1)}if(S=g.allow.includes("-"),!S&&g.number&&v.operator==="-"&&v.right.type==="Literal"&&v.right.value===0&&!o(v.left)){let O=`Number(${y.getText(v.left)})`;b(v,O,!0,!1)}if(S=g.allow.includes("+"),!S&&g.string&&h(v)){let O=`String(${y.getText(d(v))})`;b(v,O,!0,!1)}},AssignmentExpression(v){if(!g.allow.includes("+")&&g.string&&f(v)){let C=y.getText(d(v)),O=`${C} = String(${C})`;b(v,O,!0,!1)}},TemplateLiteral(v){if(!g.disallowTemplateShorthand||v.parent.type==="TaggedTemplateExpression"||v.expressions.length!==1||v.quasis[0].value.cooked!==""||v.quasis[1].value.cooked!==""||c(v.expressions[0]))return;let C=`String(${y.getText(v.expressions[0])})`;b(v,C,!0,!1)}}}},by}var vy,f2;function wW(){return f2||(f2=1,vy={meta:{type:"suggestion",docs:{description:"Disallow declarations in the global scope",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-implicit-globals"},schema:[{type:"object",properties:{lexicalBindings:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{globalNonLexicalBinding:"Unexpected {{kind}} declaration in the global scope, wrap in an IIFE for a local variable, assign as global property for a global variable.",globalLexicalBinding:"Unexpected {{kind}} declaration in the global scope, wrap in a block or in an IIFE.",globalVariableLeak:"Global variable leak, declare the variable if it is intended to be local.",assignmentToReadonlyGlobal:"Unexpected assignment to read-only global variable.",redeclarationOfReadonlyGlobal:"Unexpected redeclaration of read-only global variable."}},create(r){let e=r.options[0]&&r.options[0].lexicalBindings===!0,t=r.sourceCode;function s(n,i,a){r.report({node:n,messageId:i,data:{kind:a}})}return{Program(n){let i=t.getScope(n);i.variables.forEach(a=>{let l=a.writeable===!1;a.writeable!==!0&&(a.eslintExported||a.defs.forEach(u=>{let c=u.node;(u.type==="FunctionName"||u.type==="Variable"&&u.parent.kind==="var")&&(l?s(c,"redeclarationOfReadonlyGlobal"):s(c,"globalNonLexicalBinding",u.type==="FunctionName"?"function":`'${u.parent.kind}'`)),e&&(u.type==="ClassName"||u.type==="Variable"&&(u.parent.kind==="let"||u.parent.kind==="const"))&&(l?s(c,"redeclarationOfReadonlyGlobal"):s(c,"globalLexicalBinding",u.type==="ClassName"?"class":`'${u.parent.kind}'`))}))}),i.implicit.variables.forEach(a=>{let l=i.set.get(a.name),o;if(l){if(l.writeable)return;o="assignmentToReadonlyGlobal"}else o="globalVariableLeak";a.defs.forEach(u=>{s(u.node,o)})})}}}}),vy}var Oy,p2;function kW(){if(p2)return Oy;p2=1;let r=Pe(),{getStaticValue:e}=hr();return Oy={meta:{type:"suggestion",docs:{description:"Disallow the use of `eval()`-like methods",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-implied-eval"},schema:[],messages:{impliedEval:"Implied eval. Consider passing a function instead of a string."}},create(t){let s=Object.freeze(["global","window","globalThis"]),n=/^(?:set(?:Interval|Timeout)|execScript)$/u,i=t.sourceCode;function a(u){return u.type==="Literal"&&typeof u.value=="string"||u.type==="TemplateLiteral"?!0:u.type==="BinaryExpression"&&u.operator==="+"?a(u.left)||a(u.right):!1}function l(u){let[c]=u.arguments;if(c){let p=e(c,i.getScope(u));(p&&typeof p.value=="string"||a(c))&&t.report({node:u,messageId:"impliedEval"})}}function o(u){let{references:c,name:p}=u;c.forEach(h=>{let d=h.identifier.parent;for(;r.isSpecificMemberAccess(d,null,p);)d=d.parent;if(r.isSpecificMemberAccess(d,null,n)){let m=d.parent.type==="ChainExpression"?d.parent:d,g=m.parent;g.type==="CallExpression"&&g.callee===m&&l(g)}})}return{CallExpression(u){r.isSpecificId(u.callee,n)&&l(u)},"Program:exit"(u){let c=i.getScope(u);s.map(p=>r.getVariableByName(c,p)).filter(p=>!!p&&p.defs.length===0).forEach(o)}}}},Oy}var Sy,h2;function AW(){if(h2)return Sy;h2=1;let{findVariable:r}=hr(),e=Pe(),t={Object:/^(?:assign|definePropert(?:y|ies)|freeze|setPrototypeOf)$/u,Reflect:/^(?:(?:define|delete)Property|set(?:PrototypeOf)?)$/u};function s(u){let{parent:c}=u;return c.type==="AssignmentExpression"&&c.left===u||c.type==="ArrayPattern"||c.type==="Property"&&c.value===u&&c.parent.type==="ObjectPattern"||c.type==="RestElement"||c.type==="AssignmentPattern"&&c.left===u}function n(u){let c=u.parent.type==="ChainExpression"?u.parent:u,{parent:p}=c;return p.type==="UpdateExpression"&&p.argument===c||p.type==="UnaryExpression"&&p.operator==="delete"&&p.argument===c}function i(u){let{parent:c}=u;return c.type==="ForInStatement"&&c.left===u||c.type==="ForOfStatement"&&c.left===u}function a(u,c){let{parent:p}=u;if(p.type!=="CallExpression"||p.arguments[0]!==u)return!1;let h=e.skipChainExpression(p.callee);if(!e.isSpecificMemberAccess(h,"Object",t.Object)&&!e.isSpecificMemberAccess(h,"Reflect",t.Reflect))return!1;let f=r(c,h.object);return f!==null&&f.scope.type==="global"}function l(u,c){let{parent:p}=u;return p.type==="MemberExpression"&&p.object===u&&(s(p)||n(p)||i(p))||a(u,c)}function o(u){let c=u.parent;for(;c&&c.type!=="AssignmentExpression"&&c.type!=="UpdateExpression"&&c.type!=="UnaryExpression"&&c.type!=="CallExpression"&&c.type!=="ForInStatement"&&c.type!=="ForOfStatement";)c=c.parent;return c||u}return Sy={meta:{type:"problem",docs:{description:"Disallow assigning to imported bindings",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-import-assign"},schema:[],messages:{readonly:"'{{name}}' is read-only.",readonlyMember:"The members of '{{name}}' are read-only."}},create(u){let c=u.sourceCode;return{ImportDeclaration(p){let h=c.getScope(p);for(let f of c.getDeclaredVariables(p)){let d=f.defs.some(g=>g.node.type==="ImportNamespaceSpecifier"),m=null;for(let g of f.references){let y=g.identifier;y!==m&&(m=y,g.isWrite()?u.report({node:o(y),messageId:"readonly",data:{name:y.name}}):d&&l(y,h)&&u.report({node:o(y),messageId:"readonlyMember",data:{name:y.name}}))}}}}}},Sy}var Ey,d2;function PW(){if(d2)return Ey;d2=1;let r=Pe();return Ey={meta:{type:"suggestion",docs:{description:"Disallow inline comments after code",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-inline-comments"},schema:[{type:"object",properties:{ignorePattern:{type:"string"}},additionalProperties:!1}],messages:{unexpectedInlineComment:"Unexpected comment inline with code."}},create(e){let t=e.sourceCode,s=e.options[0],n;s&&s.ignorePattern&&(n=new RegExp(s.ignorePattern,"u"));function i(a){let l=String(t.lines[a.loc.start.line-1]),o=String(t.lines[a.loc.end.line-1]),u=l.slice(0,a.loc.start.column).trim(),c=o.slice(a.loc.end.column).trim(),p=!u,h=!c;if(!(p&&h)&&!(n&&n.test(a.value))){if((p||u==="{")&&(h||c==="}")){let f=t.getNodeByRangeIndex(a.range[0]);if(f&&f.type==="JSXEmptyExpression")return}r.isDirectiveComment(a)||e.report({node:a,messageId:"unexpectedInlineComment"})}}return{Program(){t.getAllComments().filter(a=>a.type!=="Shebang").forEach(i)}}}},Ey}var Cy,m2;function TW(){if(m2)return Cy;m2=1;let r=Pe(),e=new Set(["Program","StaticBlock","ExportNamedDeclaration","ExportDefaultDeclaration"]),t=new Set(["FunctionDeclaration","FunctionExpression","ArrowFunctionExpression"]);function s(n){let{parent:i}=n;for(;i;){if(i.type==="StaticBlock")return"class static block body";if(r.isFunction(i))return"function body";({parent:i}=i)}return"program"}return Cy={meta:{type:"problem",docs:{description:"Disallow variable or `function` declarations in nested blocks",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-inner-declarations"},schema:[{enum:["functions","both"]},{type:"object",properties:{blockScopedFunctions:{enum:["allow","disallow"]}},additionalProperties:!1}],messages:{moveDeclToRoot:"Move {{type}} declaration to {{body}} root."}},create(n){let i=n.sourceCode,a=n.languageOptions.ecmaVersion,l=n.options[1]?.blockScopedFunctions??"allow";function o(u){let c=u.parent;c.type==="BlockStatement"&&t.has(c.parent.type)||e.has(c.type)||n.report({node:u,messageId:"moveDeclToRoot",data:{type:u.type==="FunctionDeclaration"?"function":"variable",body:s(u)}})}return{FunctionDeclaration(u){let c=i.getScope(u).upper.isStrict;l==="allow"&&a>=2015&&c||o(u)},VariableDeclaration(u){n.options[0]==="both"&&u.kind==="var"&&o(u)}}}},Cy}var wy,g2;function DW(){if(g2)return wy;g2=1;let r=Xn().RegExpValidator,e=new r,t=/[dgimsuvy]/gu,s=void 0;return wy={meta:{type:"problem",docs:{description:"Disallow invalid regular expression strings in `RegExp` constructors",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-invalid-regexp"},schema:[{type:"object",properties:{allowConstructorFlags:{type:"array",items:{type:"string"}}},additionalProperties:!1}],messages:{regexMessage:"{{message}}."}},create(n){let i=n.options[0],a=null;if(i&&i.allowConstructorFlags){let h=i.allowConstructorFlags.join("").replace(t,"");h&&(a=new RegExp(`[${h}]`,"gu"))}function l(h,f){n.report({node:h,messageId:"regexMessage",data:{message:f}})}function o(h){return h&&h.type==="Literal"&&typeof h.value=="string"}function u(h){return h.arguments.length<2?"":o(h.arguments[1])?h.arguments[1].value:null}function c(h,f){try{return e.validatePattern(h,s,s,f),null}catch(d){return d.message}}function p(h){if(!h)return null;try{e.validateFlags(h)}catch{return`Invalid flags supplied to RegExp constructor '${h}'`}return h.includes("u")&&h.includes("v")?"Regex 'u' and 'v' flags cannot be used together":null}return{"CallExpression, NewExpression"(h){if(h.callee.type!=="Identifier"||h.callee.name!=="RegExp")return;let f=u(h);f&&a&&(f=f.replace(a,""));let d=p(f);if(d){l(h,d);return}if(!o(h.arguments[0]))return;let m=h.arguments[0].value;d=f===null?c(m,{unicode:!0,unicodeSets:!1})&&c(m,{unicode:!1,unicodeSets:!0})&&c(m,{unicode:!1,unicodeSets:!1}):c(m,{unicode:f.includes("u"),unicodeSets:f.includes("v")}),d&&l(h,d)}}}},wy}var ky,y2;function _W(){if(y2)return ky;y2=1;let r=Pe();function e(t,s){return t.origin==="function"&&s.type==="ArrowFunctionExpression"}return ky={meta:{type:"suggestion",docs:{description:"Disallow use of `this` in contexts where the value of `this` is `undefined`",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-invalid-this"},schema:[{type:"object",properties:{capIsConstructor:{type:"boolean",default:!0}},additionalProperties:!1}],messages:{unexpectedThis:"Unexpected 'this'."}},create(t){let n=(t.options[0]||{}).capIsConstructor!==!1,i=[],a=t.sourceCode;return i.getCurrent=function(){let l=this.at(-1);return l.init||(l.init=!0,l.valid=!r.isDefaultThisBinding(l.node,a,{capIsConstructor:n})),l},{onCodePathStart(l,o){if(!e(l,o)){if(l.origin==="program"){let u=a.getScope(o),c=t.languageOptions.parserOptions.ecmaFeatures||{};i.push({init:!0,node:o,valid:!(o.sourceType==="module"||c.globalReturn&&u.childScopes[0].isStrict)});return}i.push({init:!a.getScope(o).isStrict,node:o,valid:!0})}},onCodePathEnd(l,o){e(l,o)||i.pop()},ThisExpression(l){let o=i.getCurrent();o&&!o.valid&&t.report({node:l,messageId:"unexpectedThis"})}}}},ky}var Ay,x2;function IW(){if(x2)return Ay;x2=1;let r=Pe(),e=/[\f\v\u0085\ufeff\u00a0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u200b\u202f\u205f\u3000\u2028\u2029]/u,t=/[\f\v\u0085\ufeff\u00a0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u200b\u202f\u205f\u3000]+/mgu,s=/[\u2028\u2029]/mgu,n=r.createGlobalLinebreakMatcher();return Ay={meta:{type:"problem",docs:{description:"Disallow irregular whitespace",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-irregular-whitespace"},schema:[{type:"object",properties:{skipComments:{type:"boolean",default:!1},skipStrings:{type:"boolean",default:!0},skipTemplates:{type:"boolean",default:!1},skipRegExps:{type:"boolean",default:!1},skipJSXText:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{noIrregularWhitespace:"Irregular whitespace not allowed."}},create(i){let a=[],l=i.options[0]||{},o=!!l.skipComments,u=l.skipStrings!==!1,c=!!l.skipRegExps,p=!!l.skipTemplates,h=!!l.skipJSXText,f=i.sourceCode,d=f.getAllComments();function m(E){let k=E.loc.start,A=E.loc.end;a=a.filter(({loc:{start:D}})=>D.line=A.column||D.line>A.line)}function g(E){let k=u&&typeof E.value=="string",A=c&&!!E.regex;(k||A)&&e.test(E.raw)&&m(E)}function y(E){typeof E.value.raw=="string"&&e.test(E.value.raw)&&m(E)}function b(E){e.test(E.value)&&m(E)}function v(E){e.test(E.raw)&&m(E)}function S(E){f.lines.forEach((A,D)=>{let _=D+1,B;for(;(B=t.exec(A))!==null;)a.push({node:E,messageId:"noIrregularWhitespace",loc:{start:{line:_,column:B.index},end:{line:_,column:B.index+B[0].length}}})})}function C(E){let k=f.getText(),A=f.lines,D=k.match(n),_=-1,B;for(;(B=s.exec(k))!==null;){let T=D.indexOf(B[0],_+1)||0;a.push({node:E,messageId:"noIrregularWhitespace",loc:{start:{line:T+1,column:A[T].length},end:{line:T+2,column:0}}}),_=T}}function O(){}let w={};return e.test(f.getText())?(w.Program=function(E){S(E),C(E)},w.Literal=g,w.TemplateElement=p?y:O,w.JSXText=h?v:O,w["Program:exit"]=function(){o&&d.forEach(b),a.forEach(E=>i.report(E))}):w.Program=O,w}},Ay}var Py,b2;function FW(){if(b2)return Py;b2=1;let{getStaticPropertyName:r}=Pe();return Py={meta:{type:"suggestion",docs:{description:"Disallow the use of the `__iterator__` property",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-iterator"},schema:[],messages:{noIterator:"Reserved name '__iterator__'."}},create(e){return{MemberExpression(t){r(t)==="__iterator__"&&e.report({node:t,messageId:"noIterator"})}}}},Py}var Ty,v2;function RW(){if(v2)return Ty;v2=1;let r=Pe();return Ty={meta:{type:"suggestion",docs:{description:"Disallow labels that share a name with a variable",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-label-var"},schema:[],messages:{identifierClashWithLabel:"Found identifier with same name as label."}},create(e){let t=e.sourceCode;function s(n,i){return r.getVariableByName(n,i)!==null}return{LabeledStatement(n){let i=t.getScope(n);s(i,n.label.name)&&e.report({node:n,messageId:"identifierClashWithLabel"})}}}},Ty}var Dy,O2;function BW(){if(O2)return Dy;O2=1;let r=Pe();return Dy={meta:{type:"suggestion",docs:{description:"Disallow labeled statements",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-labels"},schema:[{type:"object",properties:{allowLoop:{type:"boolean",default:!1},allowSwitch:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{unexpectedLabel:"Unexpected labeled statement.",unexpectedLabelInBreak:"Unexpected label in break statement.",unexpectedLabelInContinue:"Unexpected label in continue statement."}},create(e){let t=e.options[0],s=t&&t.allowLoop,n=t&&t.allowSwitch,i=null;function a(u){return r.isLoop(u)?"loop":u.type==="SwitchStatement"?"switch":"other"}function l(u){switch(u){case"loop":return s;case"switch":return n;default:return!1}}function o(u){let c=i;for(;c;){if(c.label===u)return c.kind;c=c.upper}return"other"}return{LabeledStatement(u){i={label:u.label.name,kind:a(u.body),upper:i}},"LabeledStatement:exit"(u){l(i.kind)||e.report({node:u,messageId:"unexpectedLabel"}),i=i.upper},BreakStatement(u){u.label&&!l(o(u.label.name))&&e.report({node:u,messageId:"unexpectedLabelInBreak"})},ContinueStatement(u){u.label&&!l(o(u.label.name))&&e.report({node:u,messageId:"unexpectedLabelInContinue"})}}}},Dy}var _y,S2;function NW(){return S2||(S2=1,_y={meta:{type:"suggestion",docs:{description:"Disallow unnecessary nested blocks",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-lone-blocks"},schema:[],messages:{redundantBlock:"Block is redundant.",redundantNestedBlock:"Nested block is redundant."}},create(r){let e=[],t,s=r.sourceCode;function n(l){let o=l.parent.type==="BlockStatement"||l.parent.type==="StaticBlock"?"redundantNestedBlock":"redundantBlock";r.report({node:l,messageId:o})}function i(l){return l.parent.type==="BlockStatement"||l.parent.type==="StaticBlock"||l.parent.type==="Program"||l.parent.type==="SwitchCase"&&!(l.parent.consequent[0]===l&&l.parent.consequent.length===1)}function a(l){if(e.length===0)return;let o=l.parent;e.at(-1)===o&&e.pop()}return t={BlockStatement(l){i(l)&&n(l)}},r.languageOptions.ecmaVersion>=2015&&(t={BlockStatement(l){i(l)&&e.push(l)},"BlockStatement:exit"(l){e.length>0&&e.at(-1)===l?(e.pop(),n(l)):(l.parent.type==="BlockStatement"||l.parent.type==="StaticBlock")&&l.parent.body.length===1&&n(l)}},t.VariableDeclaration=function(l){l.kind!=="var"&&a(l)},t.FunctionDeclaration=function(l){s.getScope(l).isStrict&&a(l)},t.ClassDeclaration=a),t}}),_y}var Iy,E2;function LW(){return E2||(E2=1,Iy={meta:{type:"suggestion",docs:{description:"Disallow `if` statements as the only statement in `else` blocks",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-lonely-if"},schema:[],fixable:"code",messages:{unexpectedLonelyIf:"Unexpected if as the only statement in an else block."}},create(r){let e=r.sourceCode;return{IfStatement(t){let s=t.parent,n=s.parent;s&&s.type==="BlockStatement"&&s.body.length===1&&n&&n.type==="IfStatement"&&s===n.alternate&&r.report({node:t,messageId:"unexpectedLonelyIf",fix(i){let a=e.getFirstToken(s),l=e.getLastToken(s),o=e.getTokenBefore(a),u=e.getTokenAfter(l),c=e.getLastToken(t.consequent),p=e.getText();return p.slice(a.range[1],t.range[0]).trim()||p.slice(t.range[1],l.range[0]).trim()||t.consequent.type!=="BlockStatement"&&c.value!==";"&&u&&(t.consequent.loc.end.line===u.loc.start.line||/^[([/+`-]/u.test(u.value)||c.value==="++"||c.value==="--")?null:i.replaceTextRange([a.range[0],l.range[1]],(o.range[1]===a.range[0]?" ":"")+e.getText(t))}})}}}}),Iy}var Fy,C2;function $W(){if(C2)return Fy;C2=1;function r(s){for(let n=s;n.parent;n=n.parent){let i=n.parent;switch(i.type){case"WhileStatement":case"DoWhileStatement":return i;case"ForStatement":if(i.init!==n)return i;break;case"ForInStatement":case"ForOfStatement":if(i.right!==n)return i;break;case"ArrowFunctionExpression":case"FunctionExpression":case"FunctionDeclaration":return null}}return null}function e(s,n){let i=n?n.range[1]:0,a=s,l=s;for(;l&&l.range[0]>=i;)a=l,l=r(l);return a}function t(s,n){let i=n.resolved,a=i&&i.defs[0],l=a&&a.parent,o=l&&l.type==="VariableDeclaration"?l.kind:"";if(o==="const"||o==="let"&&l.range[0]>s.range[0]&&l.range[1]c.resolved&&!t(l,c)).map(c=>c.identifier.name);u.length>0&&s.report({node:a,messageId:"unsafeRefs",data:{varNames:`'${u.join("', '")}'`}})}return{ArrowFunctionExpression:i,FunctionExpression:i,FunctionDeclaration:i}}},Fy}var Ry,w2;function MW(){return w2||(w2=1,Ry={meta:{type:"problem",docs:{description:"Disallow literal numbers that lose precision",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-loss-of-precision"},schema:[],messages:{noLossOfPrecision:"This number literal will lose precision at runtime."}},create(r){function e(f){return typeof f.value=="number"}function t(f){return f.raw.replace(/_/gu,"")}function s(f){return["0x","0X","0b","0B","0o","0O"].every(m=>!f.raw.startsWith(m))&&!/^0[0-7]+$/u.test(f.raw)}function n(f){let d=t(f).toUpperCase(),m;return d.startsWith("0B")?m=2:d.startsWith("0X")?m=16:m=8,!d.endsWith(f.value.toString(m).toUpperCase())}function i(f){return`${f[0]}.${f.slice(1)}`}function a(f){for(let d=0;d=0;d--)if(f[d]!=="0")return f.slice(0,d+1);return f}function o(f){let d=l(a(f));return{magnitude:f.startsWith("0")?f.length-2:f.length-1,coefficient:i(d)}}function u(f){let d=a(f);if(d.startsWith(".")){let m=d.slice(1),g=a(m);return{magnitude:g.length-m.length-1,coefficient:i(g)}}return{magnitude:d.indexOf(".")-1,coefficient:i(d.replace(".",""))}}function c(f){let d=f.replace("E","e").split("e"),m=d[0],g=f.includes(".")?u(m):o(m),y=g.coefficient,b=d.length>1?parseInt(d[1],10)+g.magnitude:g.magnitude;return`${y}e${b}`}function p(f){let d=c(t(f)),m=d.split("e")[0].replace(".","").length;if(m>100)return!0;let g=f.value.toPrecision(m),y=c(g);return d!==y}function h(f){return s(f)?p(f):n(f)}return{Literal(f){f.value&&e(f)&&h(f)&&r.report({messageId:"noLossOfPrecision",node:f})}}}}),Ry}var By,k2;function jW(){if(k2)return By;k2=1;let r=Pe(),e=2**32-1;function t(s){return typeof s=="string"?BigInt(s.slice(0,-1)):s}return By={meta:{type:"suggestion",docs:{description:"Disallow magic numbers",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-magic-numbers"},schema:[{type:"object",properties:{detectObjects:{type:"boolean",default:!1},enforceConst:{type:"boolean",default:!1},ignore:{type:"array",items:{anyOf:[{type:"number"},{type:"string",pattern:"^[+-]?(?:0|[1-9][0-9]*)n$"}]},uniqueItems:!0},ignoreArrayIndexes:{type:"boolean",default:!1},ignoreDefaultValues:{type:"boolean",default:!1},ignoreClassFieldInitialValues:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{useConst:"Number constants declarations must use 'const'.",noMagic:"No magic number: {{raw}}."}},create(s){let n=s.options[0]||{},i=!!n.detectObjects,a=!!n.enforceConst,l=new Set((n.ignore||[]).map(t)),o=!!n.ignoreArrayIndexes,u=!!n.ignoreDefaultValues,c=!!n.ignoreClassFieldInitialValues,p=i?[]:["ObjectExpression","Property","AssignmentExpression"];function h(b){return l.has(b)}function f(b){let v=b.parent;return v.type==="AssignmentPattern"&&v.right===b}function d(b){let v=b.parent;return v.type==="PropertyDefinition"&&v.value===b}function m(b){let v=b.parent;return v.type==="CallExpression"&&b===v.arguments[1]&&(r.isSpecificId(v.callee,"parseInt")||r.isSpecificMemberAccess(v.callee,"Number","parseInt"))}function g(b){return b.parent.type.indexOf("JSX")===0}function y(b,v){let S=b.parent;return S.type==="MemberExpression"&&S.property===b&&(Number.isInteger(v)||typeof v=="bigint")&&v>=0&&v=127995&&e<=127999}),Ly}var $y,T2;function UW(){return T2||(T2=1,$y=function(e){return e>=127462&&e<=127487}),$y}var My,D2;function VW(){return D2||(D2=1,My=function(e,t){return e>=55296&&e<56320&&t>=56320&&t<57344}),My}var jy,_2;function WW(){if(_2)return jy;_2=1;let r=qW(),e=QW(),t=UW(),s=VW();return jy={isCombiningCharacter:r,isEmojiModifier:e,isRegionalIndicatorSymbol:t,isSurrogatePair:s},jy}var qy,I2;function LO(){if(I2)return qy;I2=1;let{RegExpValidator:r}=Xn(),e=2024;function t(s,n){if(s<=5)return!1;let i=new r({ecmaVersion:Math.min(s,e)});try{i.validatePattern(n,void 0,void 0,{unicode:!0})}catch{return!1}return!0}return qy={isValidWithUnicodeFlag:t,REGEXPP_LATEST_ECMA_VERSION:e},qy}var Qy,F2;function ZW(){if(F2)return Qy;F2=1;class r{constructor(p,h){this.start=p,this.source=h}get end(){return this.start+this.length}get length(){return this.source.length}}class e{constructor(p){this.source=p,this.pos=0}advance(p){this.pos+=p}read(p=0,h=1){let f=p+this.pos;return this.source.slice(f,f+h)}}let t={__proto__:null,b:"\b",f:"\f",n:` +`;return u.insertTextBefore(o,p)}return null}})}}}}),O0}var S0,f_;function T7(){if(f_)return S0;f_=1;let r=Pe();return S0={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Require a newline after each call in a method chain",recommended:!1,url:"https://eslint.org/docs/latest/rules/newline-per-chained-call"},fixable:"whitespace",schema:[{type:"object",properties:{ignoreChainWithDepth:{type:"integer",minimum:1,maximum:10,default:2}},additionalProperties:!1}],messages:{expected:"Expected line break before `{{callee}}`."}},create(e){let t=e.options[0]||{},s=t.ignoreChainWithDepth||2,n=e.sourceCode;function i(l){return l.computed?l.optional?"?.[":"[":l.optional?"?.":"."}function a(l){let o=i(l),u=n.getText(l.property).split(r.LINEBREAK_MATCHER),c=l.computed&&u.length===1?"]":"";return o+u[0]+c}return{"CallExpression:exit"(l){let o=r.skipChainExpression(l.callee);if(o.type!=="MemberExpression")return;let u=r.skipChainExpression(o.object),c=1;for(;u&&u.callee;)c+=1,u=r.skipChainExpression(r.skipChainExpression(u.callee).object);if(c>s&&r.isTokenOnSameLine(o.object,o.property)){let p=n.getTokenAfter(o.object,r.isNotClosingParenToken);e.report({node:o.property,loc:{start:p.loc.start,end:o.loc.end},messageId:"expected",data:{callee:a(o)},fix(h){return h.insertTextBefore(p,` +`)}})}}}}},S0}var E0,p_;function D7(){if(p_)return E0;p_=1;let{getStaticPropertyName:r,getVariableByName:e,skipChainExpression:t}=Pe();function s(l){return/^(alert|confirm|prompt)$/u.test(l)}function n(l,o){let u=l.references.filter(c=>c.identifier.range[0]===o.range[0]&&c.identifier.range[1]===o.range[1]);return u.length===1?u[0]:null}function i(l,o){let u=n(l,o);return u&&u.resolved&&u.resolved.defs.length>0}function a(l,o){return l.type==="global"&&o.type==="ThisExpression"?!0:o.type==="Identifier"&&(o.name==="window"||o.name==="globalThis"&&e(l,"globalThis"))?!i(l,o):!1}return E0={meta:{type:"suggestion",docs:{description:"Disallow the use of `alert`, `confirm`, and `prompt`",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-alert"},schema:[],messages:{unexpected:"Unexpected {{name}}."}},create(l){let o=l.sourceCode;return{CallExpression(u){let c=t(u.callee),p=o.getScope(u);if(c.type==="Identifier"){let h=c.name;!i(p,c)&&s(c.name)&&l.report({node:u,messageId:"unexpected",data:{name:h}})}else if(c.type==="MemberExpression"&&a(p,c.object)){let h=r(c);s(h)&&l.report({node:u,messageId:"unexpected",data:{name:h}})}}}}},E0}var w0,h_;function _7(){if(h_)return w0;h_=1;let{getVariableByName:r,isClosingParenToken:e,isOpeningParenToken:t,isStartOfExpressionStatement:s,needsPrecedingSemicolon:n}=Pe();return w0={meta:{type:"suggestion",docs:{description:"Disallow `Array` constructors",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-array-constructor"},hasSuggestions:!0,schema:[],messages:{preferLiteral:"The array literal notation [] is preferable.",useLiteral:"Replace with an array literal.",useLiteralAfterSemicolon:"Replace with an array literal, add preceding semicolon."}},create(i){let a=i.sourceCode;function l(u){let c=a.getLastToken(u);if(!e(c))return"";let p=u.callee;do if(p=a.getTokenAfter(p),!p||p===c)return"";while(!t(p));return a.text.slice(p.range[1],c.range[0])}function o(u){if(u.callee.type!=="Identifier"||u.callee.name!=="Array"||u.arguments.length===1&&u.arguments[0].type!=="SpreadElement")return;let c=r(a.getScope(u),"Array");if(c&&c.identifiers.length===0){let p=l(u),h,f;s(u)&&n(a,u)?(h=`;[${p}]`,f="useLiteralAfterSemicolon"):(h=`[${p}]`,f="useLiteral"),i.report({node:u,messageId:"preferLiteral",suggest:[{messageId:f,fix:d=>d.replaceText(u,h)}]})}}return{CallExpression:o,NewExpression:o}}},w0}var C0,d_;function I7(){return d_||(d_=1,C0={meta:{type:"problem",docs:{description:"Disallow using an async function as a Promise executor",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-async-promise-executor"},fixable:null,schema:[],messages:{async:"Promise executor functions should not be async."}},create(r){return{"NewExpression[callee.name='Promise'][arguments.0.async=true]"(e){r.report({node:r.sourceCode.getFirstToken(e.arguments[0],t=>t.value==="async"),messageId:"async"})}}}}),C0}var k0,m_;function R7(){if(m_)return k0;m_=1;function r(t){let s=t.type;return s==="FunctionDeclaration"||s==="FunctionExpression"||s==="ArrowFunctionExpression"||s==="ForOfStatement"&&t.await===!0}function e(t,s){switch(s.type){case"ForStatement":return t===s.test||t===s.update||t===s.body;case"ForOfStatement":case"ForInStatement":return t===s.body;case"WhileStatement":case"DoWhileStatement":return t===s.test||t===s.body;default:return!1}}return k0={meta:{type:"problem",docs:{description:"Disallow `await` inside of loops",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-await-in-loop"},schema:[],messages:{unexpectedAwait:"Unexpected `await` inside a loop."}},create(t){function s(n){if(n.type==="ForOfStatement"&&!n.await)return;let i=n,a=i.parent;for(;a&&!r(a);){if(e(i,a)){t.report({node:n,messageId:"unexpectedAwait"});return}i=a,a=a.parent}}return{AwaitExpression:s,ForOfStatement:s}}},k0}var A0,g_;function F7(){if(g_)return A0;g_=1;let r=["^","|","&","<<",">>",">>>","^=","|=","&=","<<=",">>=",">>>=","~"];return A0={meta:{type:"suggestion",docs:{description:"Disallow bitwise operators",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-bitwise"},schema:[{type:"object",properties:{allow:{type:"array",items:{enum:r},uniqueItems:!0},int32Hint:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{unexpected:"Unexpected use of '{{operator}}'."}},create(e){let t=e.options[0]||{},s=t.allow||[],n=t.int32Hint===!0;function i(c){e.report({node:c,messageId:"unexpected",data:{operator:c.operator}})}function a(c){return r.includes(c.operator)}function l(c){return s.includes(c.operator)}function o(c){return n&&c.operator==="|"&&c.right&&c.right.type==="Literal"&&c.right.value===0}function u(c){a(c)&&!l(c)&&!o(c)&&i(c)}return{AssignmentExpression:u,BinaryExpression:u,UnaryExpression:u}}},A0}var P0,y_;function B7(){return y_||(y_=1,P0={meta:{deprecated:!0,replacedBy:[],type:"problem",docs:{description:"Disallow use of the `Buffer()` constructor",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-buffer-constructor"},schema:[],messages:{deprecated:"{{expr}} is deprecated. Use Buffer.from(), Buffer.alloc(), or Buffer.allocUnsafe() instead."}},create(r){return{"CallExpression[callee.name='Buffer'], NewExpression[callee.name='Buffer']"(e){r.report({node:e,messageId:"deprecated",data:{expr:e.type==="CallExpression"?"Buffer()":"new Buffer()"}})}}}}),P0}var T0,b_;function N7(){return b_||(b_=1,T0={meta:{type:"suggestion",docs:{description:"Disallow the use of `arguments.caller` or `arguments.callee`",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-caller"},schema:[],messages:{unexpected:"Avoid arguments.{{prop}}."}},create(r){return{MemberExpression(e){let t=e.object.name,s=e.property.name;t==="arguments"&&!e.computed&&s&&s.match(/^calle[er]$/u)&&r.report({node:e,messageId:"unexpected",data:{prop:s}})}}}}),T0}var D0,v_;function L7(){return v_||(v_=1,D0={meta:{type:"suggestion",docs:{description:"Disallow lexical declarations in case clauses",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-case-declarations"},hasSuggestions:!0,schema:[],messages:{addBrackets:"Add {} brackets around the case block.",unexpected:"Unexpected lexical declaration in case block."}},create(r){function e(t){switch(t.type){case"FunctionDeclaration":case"ClassDeclaration":return!0;case"VariableDeclaration":return t.kind!=="var";default:return!1}}return{SwitchCase(t){for(let s=0;s[i.insertTextBefore(t.consequent[0],"{ "),i.insertTextAfter(t.consequent.at(-1)," }")]}]})}}}}}),D0}var _0,x_;function $7(){if(x_)return _0;x_=1;let r=Pe();return _0={meta:{type:"suggestion",docs:{description:"Disallow `catch` clause parameters from shadowing variables in the outer scope",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-catch-shadow"},replacedBy:["no-shadow"],deprecated:!0,schema:[],messages:{mutable:"Value of '{{name}}' may be overwritten in IE 8 and earlier."}},create(e){let t=e.sourceCode;function s(n,i){return r.getVariableByName(n,i)!==null}return{"CatchClause[param!=null]"(n){let i=t.getScope(n);i.block===n&&(i=i.upper),s(i,n.param.name)&&e.report({node:n,messageId:"mutable",data:{name:n.param.name}})}}}},_0}var I0,O_;function M7(){if(O_)return I0;O_=1;let r=Pe();return I0={meta:{type:"problem",docs:{description:"Disallow reassigning class members",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-class-assign"},schema:[],messages:{class:"'{{name}}' is a class."}},create(e){let t=e.sourceCode;function s(i){r.getModifyingReferences(i.references).forEach(a=>{e.report({node:a.identifier,messageId:"class",data:{name:a.identifier.name}})})}function n(i){t.getDeclaredVariables(i).forEach(s)}return{ClassDeclaration:n,ClassExpression:n}}},I0}var R0,S_;function j7(){return S_||(S_=1,R0={meta:{type:"problem",docs:{description:"Disallow comparing against -0",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-compare-neg-zero"},fixable:null,schema:[],messages:{unexpected:"Do not use the '{{operator}}' operator to compare against -0."}},create(r){function e(s){return s.type==="UnaryExpression"&&s.operator==="-"&&s.argument.type==="Literal"&&s.argument.value===0}let t=new Set([">",">=","<","<=","==","===","!=","!=="]);return{BinaryExpression(s){t.has(s.operator)&&(e(s.left)||e(s.right))&&r.report({node:s,messageId:"unexpected",data:{operator:s.operator}})}}}}),R0}var F0,E_;function q7(){if(E_)return F0;E_=1;let r=Pe(),e=new Set(["IfStatement","WhileStatement","DoWhileStatement","ForStatement","ConditionalExpression"]),t={DoWhileStatement:"a 'do...while' statement",ForStatement:"a 'for' statement",IfStatement:"an 'if' statement",WhileStatement:"a 'while' statement"};return F0={meta:{type:"problem",docs:{description:"Disallow assignment operators in conditional expressions",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-cond-assign"},schema:[{enum:["except-parens","always"]}],messages:{unexpected:"Unexpected assignment within {{type}}.",missing:"Expected a conditional expression and instead saw an assignment."}},create(s){let n=s.options[0]||"except-parens",i=s.sourceCode;function a(p){return p.parent&&e.has(p.parent.type)&&p===p.parent.test}function l(p){let h=p;do if(a(h))return h.parent;while((h=h.parent)&&!r.isFunction(h));return null}function o(p){let h=i.getTokenBefore(p,1),f=i.getTokenAfter(p,1);return r.isParenthesised(i,p)&&h&&r.isOpeningParenToken(h)&&h.range[1]<=p.range[0]&&r.isClosingParenToken(f)&&f.range[0]>=p.range[1]}function u(p){p.test&&p.test.type==="AssignmentExpression"&&(p.type==="ForStatement"?!r.isParenthesised(i,p.test):!o(p.test))&&s.report({node:p.test,messageId:"missing"})}function c(p){let h=l(p);h&&s.report({node:p,messageId:"unexpected",data:{type:t[h.type]||h.type}})}return n==="always"?{AssignmentExpression:c}:{DoWhileStatement:u,ForStatement:u,IfStatement:u,WhileStatement:u,ConditionalExpression:u}}},F0}var B0,w_;function Q7(){if(w_)return B0;w_=1;let r=Pe();function e(t){return t&&t.type==="ConditionalExpression"}return B0={meta:{deprecated:!0,replacedBy:[],type:"suggestion",docs:{description:"Disallow arrow functions where they could be confused with comparisons",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-confusing-arrow"},fixable:"code",schema:[{type:"object",properties:{allowParens:{type:"boolean",default:!0},onlyOneSimpleParam:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{confusing:"Arrow function used ambiguously with a conditional expression."}},create(t){let s=t.options[0]||{},n=s.allowParens||s.allowParens===void 0,i=s.onlyOneSimpleParam,a=t.sourceCode;function l(o){let u=o.body;e(u)&&!(n&&r.isParenthesised(a,u))&&!(i&&!(o.params.length===1&&o.params[0].type==="Identifier"))&&t.report({node:o,messageId:"confusing",fix(c){return n&&c.replaceText(o.body,`(${a.getText(o.body)})`)}})}return{ArrowFunctionExpression:l}}},B0}var N0,C_;function U7(){if(C_)return N0;C_=1;let r=Pe();return N0={meta:{type:"suggestion",docs:{description:"Disallow the use of `console`",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-console"},schema:[{type:"object",properties:{allow:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0}},additionalProperties:!1}],hasSuggestions:!0,messages:{unexpected:"Unexpected console statement.",removeConsole:"Remove the console.{{ propertyName }}()."}},create(e){let s=(e.options[0]||{}).allow||[],n=e.sourceCode;function i(p){let h=p.identifier;return h&&h.name==="console"}function a(p){let h=r.getStaticPropertyName(p);return h&&s.includes(h)}function l(p){let h=p.identifier,f=h.parent;return f.type==="MemberExpression"&&f.object===h&&!a(f)}function o(p){let h=/^[:;{]$/u,f=/^[-[(/+`]/u,d=n.getTokenBefore(p),m=n.getTokenAfter(p);return!!m&&f.test(m.value)&&m.value!=="++"&&m.value!=="--"&&!!d&&!h.test(d.value)}function u(p){return p.parent.type==="CallExpression"&&p.parent.callee===p&&p.parent.parent.type==="ExpressionStatement"&&r.STATEMENT_LIST_PARENTS.has(p.parent.parent.parent.type)&&!o(p.parent.parent)}function c(p){let h=p.identifier.parent,f=r.getStaticPropertyName(h);e.report({node:h,loc:h.loc,messageId:"unexpected",suggest:u(h)?[{messageId:"removeConsole",data:{propertyName:f},fix(d){return d.remove(h.parent.parent)}}]:[]})}return{"Program:exit"(p){let h=n.getScope(p),f=r.getVariableByName(h,"console"),d=f&&f.defs.length>0,m=f?f.references:h.through.filter(i);d||m.filter(l).forEach(c)}}}},N0}var L0,k_;function V7(){if(k_)return L0;k_=1;let r=Pe();return L0={meta:{type:"problem",docs:{description:"Disallow reassigning `const` variables",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-const-assign"},schema:[],messages:{const:"'{{name}}' is constant."}},create(e){let t=e.sourceCode;function s(n){r.getModifyingReferences(n.references).forEach(i=>{e.report({node:i.identifier,messageId:"const",data:{name:i.identifier.name}})})}return{VariableDeclaration(n){n.kind==="const"&&t.getDeclaredVariables(n).forEach(s)}}}},L0}var $0,A_;function W7(){if(A_)return $0;A_=1;let{isNullLiteral:r,isConstant:e,isReferenceToGlobalVariable:t,isLogicalAssignmentOperator:s,ECMASCRIPT_GLOBALS:n}=Pe(),i=new Set(["+","-","*","/","%","|","^","&","**","<<",">>",">>>"]);function a(f,d){return r(d)||d.type==="Identifier"&&d.name==="undefined"&&t(f,d)||d.type==="UnaryExpression"&&d.operator==="void"}function l(f,d,m){if(m&&a(f,d))return!1;switch(d.type){case"ObjectExpression":case"ArrayExpression":case"ArrowFunctionExpression":case"FunctionExpression":case"ClassExpression":case"NewExpression":case"Literal":case"TemplateLiteral":case"UpdateExpression":case"BinaryExpression":return!0;case"CallExpression":{if(d.callee.type!=="Identifier")return!1;let g=d.callee.name;return(g==="Boolean"||g==="String"||g==="Number")&&t(f,d.callee)}case"LogicalExpression":return d.operator==="??"&&l(f,d.right,!0);case"AssignmentExpression":return d.operator==="="?l(f,d.right,m):!s(d.operator);case"UnaryExpression":return!0;case"SequenceExpression":{let g=d.expressions.at(-1);return l(f,g,m)}case"Identifier":return d.name==="undefined"&&t(f,d);case"JSXElement":case"JSXFragment":return!1;default:return!1}}function o(f,d){switch(d.type){case"Literal":return typeof d.value=="boolean";case"CallExpression":return d.callee.type==="Identifier"&&d.callee.name==="Boolean"&&t(f,d.callee)&&(d.arguments.length===0||e(f,d.arguments[0],!0));case"UnaryExpression":return d.operator==="!"&&e(f,d.argument,!0);default:return!1}}function u(f,d){switch(d.type){case"ObjectExpression":case"ClassExpression":return!0;case"ArrayExpression":{let m=d.elements.filter(g=>g!==null&&g.type!=="SpreadElement");return d.elements.length===0||m.length>1}case"ArrowFunctionExpression":case"FunctionExpression":return!0;case"UnaryExpression":return d.operator==="void"||d.operator==="typeof"?!0:d.operator==="!"?e(f,d.argument,!0):!1;case"NewExpression":return!1;case"CallExpression":return d.callee.type==="Identifier"&&d.callee.name==="Boolean"&&t(f,d.callee)?d.arguments.length===0||e(f,d.arguments[0],!0):!1;case"Literal":return!0;case"Identifier":return d.name==="undefined"&&t(f,d);case"TemplateLiteral":return d.expressions.length===0;case"AssignmentExpression":return d.operator==="="?u(f,d.right):!1;case"SequenceExpression":{let m=d.expressions.at(-1);return u(f,m)}case"JSXElement":case"JSXFragment":return!1;default:return!1}}function c(f,d){switch(d.type){case"ObjectExpression":case"ArrayExpression":case"ArrowFunctionExpression":case"FunctionExpression":case"ClassExpression":case"NewExpression":case"TemplateLiteral":case"Literal":case"UpdateExpression":return!0;case"BinaryExpression":return i.has(d.operator);case"UnaryExpression":return d.operator==="delete"?!1:d.operator==="!"?e(f,d.argument,!0):!0;case"SequenceExpression":{let m=d.expressions.at(-1);return c(f,m)}case"Identifier":return d.name==="undefined"&&t(f,d);case"AssignmentExpression":return d.operator==="="?c(f,d.right):!s(d.operator);case"CallExpression":{if(d.callee.type!=="Identifier")return!1;let m=d.callee.name;return(m==="String"||m==="Number")&&t(f,d.callee)?!0:m==="Boolean"&&t(f,d.callee)?d.arguments.length===0||e(f,d.arguments[0],!0):!1}case"JSXElement":case"JSXFragment":return!1;default:return!1}}function p(f,d){switch(d.type){case"ObjectExpression":case"ArrayExpression":case"ArrowFunctionExpression":case"FunctionExpression":case"ClassExpression":return!0;case"NewExpression":return d.callee.type!=="Identifier"?!1:Object.hasOwn(n,d.callee.name)&&t(f,d.callee);case"Literal":return typeof d.regex=="object";case"SequenceExpression":{let m=d.expressions.at(-1);return p(f,m)}case"AssignmentExpression":return d.operator==="="?p(f,d.right):!1;case"ConditionalExpression":return p(f,d.consequent)&&p(f,d.alternate);case"JSXElement":case"JSXFragment":return!1;default:return!1}}function h(f,d,m,g){if(g==="=="||g==="!="){if(a(f,d)&&l(f,m,!1)||o(f,d)&&u(f,m))return m}else if((g==="==="||g==="!==")&&(a(f,d)&&l(f,m,!1)||o(f,d)&&c(f,m)))return m;return null}return $0={meta:{type:"problem",docs:{description:"Disallow expressions where the operation doesn't affect the value",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-constant-binary-expression"},schema:[],messages:{constantBinaryOperand:"Unexpected constant binary expression. Compares constantly with the {{otherSide}}-hand side of the `{{operator}}`.",constantShortCircuit:"Unexpected constant {{property}} on the left-hand side of a `{{operator}}` expression.",alwaysNew:"Unexpected comparison to newly constructed object. These two values can never be equal.",bothAlwaysNew:"Unexpected comparison of two newly constructed objects. These two values can never be equal."}},create(f){let d=f.sourceCode;return{LogicalExpression(m){let{operator:g,left:y}=m,v=d.getScope(m);(g==="&&"||g==="||")&&e(v,y,!0)?f.report({node:y,messageId:"constantShortCircuit",data:{property:"truthiness",operator:g}}):g==="??"&&l(v,y,!1)&&f.report({node:y,messageId:"constantShortCircuit",data:{property:"nullishness",operator:g}})},BinaryExpression(m){let g=d.getScope(m),{right:y,left:v,operator:x}=m,S=h(g,v,y,x),w=h(g,y,v,x);S?f.report({node:S,messageId:"constantBinaryOperand",data:{operator:x,otherSide:"left"}}):w?f.report({node:w,messageId:"constantBinaryOperand",data:{operator:x,otherSide:"right"}}):x==="==="||x==="!=="?p(g,v)?f.report({node:v,messageId:"alwaysNew"}):p(g,y)&&f.report({node:y,messageId:"alwaysNew"}):(x==="=="||x==="!=")&&p(g,v)&&p(g,y)&&f.report({node:v,messageId:"bothAlwaysNew"})}}}},$0}var M0,P_;function z7(){if(P_)return M0;P_=1;let{isConstant:r}=Pe();return M0={meta:{type:"problem",docs:{description:"Disallow constant expressions in conditions",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-constant-condition"},schema:[{type:"object",properties:{checkLoops:{enum:["all","allExceptWhileTrue","none",!0,!1]}},additionalProperties:!1}],messages:{unexpected:"Unexpected constant condition."}},create(e){let t=e.options[0]||{},s=t.checkLoops??"allExceptWhileTrue",n=[],i=e.sourceCode;t.checkLoops===!0?s="all":t.checkLoops===!1&&(s="none");let a=new Set;function l(f){f.test&&r(i.getScope(f),f.test,!0)&&a.add(f)}function o(f){a.has(f)&&(a.delete(f),e.report({node:f.test,messageId:"unexpected"}))}function u(f){f.test&&r(i.getScope(f),f.test,!0)&&e.report({node:f.test,messageId:"unexpected"})}function c(){n.push(a),a=new Set}function p(){a=n.pop()}function h(f){(s==="all"||s==="allExceptWhileTrue")&&l(f)}return{ConditionalExpression:u,IfStatement:u,WhileStatement(f){f.test.type==="Literal"&&f.test.value===!0&&s==="allExceptWhileTrue"||h(f)},"WhileStatement:exit":o,DoWhileStatement:h,"DoWhileStatement:exit":o,ForStatement:h,"ForStatement > .test":f=>h(f.parent),"ForStatement:exit":o,FunctionDeclaration:c,"FunctionDeclaration:exit":p,FunctionExpression:c,"FunctionExpression:exit":p,YieldExpression:()=>a.clear()}}},M0}var j0,T_;function Z7(){return T_||(T_=1,j0={meta:{type:"problem",docs:{description:"Disallow returning value from constructor",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-constructor-return"},schema:[],fixable:null,messages:{unexpected:"Unexpected return statement in constructor."}},create(r){let e=[];return{onCodePathStart(t,s){e.push(s)},onCodePathEnd(){e.pop()},ReturnStatement(t){let s=e.at(-1);s.parent&&s.parent.type==="MethodDefinition"&&s.parent.kind==="constructor"&&(t.parent.parent===s||t.argument)&&r.report({node:t,messageId:"unexpected"})}}}}),j0}var q0,D_;function G7(){return D_||(D_=1,q0={meta:{type:"suggestion",docs:{description:"Disallow `continue` statements",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-continue"},schema:[],messages:{unexpected:"Unexpected use of continue statement."}},create(r){return{ContinueStatement(e){r.report({node:e,messageId:"unexpected"})}}}}),q0}var ls={},__;function Gn(){if(__)return ls;__=1,Object.defineProperty(ls,"__esModule",{value:!0});var r=Object.freeze({__proto__:null});let e=2024,t,s;function n(je){return je<65?!1:je<91?!0:je<97?!1:je<123?!0:a(je)}function i(je){return je<48?!1:je<58?!0:je<65?!1:je<91||je===95?!0:je<97?!1:je<123?!0:a(je)||l(je)}function a(je){return c(je,t??(t=o()))}function l(je){return c(je,s??(s=u()))}function o(){return p("4q 0 b 0 5 0 6 m 2 u 2 cp 5 b f 4 8 0 2 0 3m 4 2 1 3 3 2 0 7 0 2 2 2 0 2 j 2 2a 2 3u 9 4l 2 11 3 0 7 14 20 q 5 3 1a 16 10 1 2 2q 2 0 g 1 8 1 b 2 3 0 h 0 2 t u 2g c 0 p w a 1 5 0 6 l 5 0 a 0 4 0 o o 8 a 6 n 2 5 i 15 1n 1h 4 0 j 0 8 9 g f 5 7 3 1 3 l 2 6 2 0 4 3 4 0 h 0 e 1 2 2 f 1 b 0 9 5 5 1 3 l 2 6 2 1 2 1 2 1 w 3 2 0 k 2 h 8 2 2 2 l 2 6 2 1 2 4 4 0 j 0 g 1 o 0 c 7 3 1 3 l 2 6 2 1 2 4 4 0 v 1 2 2 g 0 i 0 2 5 4 2 2 3 4 1 2 0 2 1 4 1 4 2 4 b n 0 1h 7 2 2 2 m 2 f 4 0 r 2 3 0 3 1 v 0 5 7 2 2 2 m 2 9 2 4 4 0 w 1 2 1 g 1 i 8 2 2 2 14 3 0 h 0 6 2 9 2 p 5 6 h 4 n 2 8 2 0 3 6 1n 1b 2 1 d 6 1n 1 2 0 2 4 2 n 2 0 2 9 2 1 a 0 3 4 2 0 m 3 x 0 1s 7 2 z s 4 38 16 l 0 h 5 5 3 4 0 4 1 8 2 5 c d 0 i 11 2 0 6 0 3 16 2 98 2 3 3 6 2 0 2 3 3 14 2 3 3 w 2 3 3 6 2 0 2 3 3 e 2 1k 2 3 3 1u 12 f h 2d 3 5 4 h7 3 g 2 p 6 22 4 a 8 h e i f h f c 2 2 g 1f 10 0 5 0 1w 2g 8 14 2 0 6 1x b u 1e t 3 4 c 17 5 p 1j m a 1g 2b 0 2m 1a i 7 1j t e 1 b 17 r z 16 2 b z 3 8 8 16 3 2 16 3 2 5 2 1 4 0 6 5b 1t 7p 3 5 3 11 3 5 3 7 2 0 2 0 2 0 2 u 3 1g 2 6 2 0 4 2 2 6 4 3 3 5 5 c 6 2 2 6 39 0 e 0 h c 2u 0 5 0 3 9 2 0 3 5 7 0 2 0 2 0 2 f 3 3 6 4 5 0 i 14 22g 6c 7 3 4 1 d 11 2 0 6 0 3 1j 8 0 h m a 6 2 6 2 6 2 6 2 6 2 6 2 6 2 6 fb 2 q 8 8 4 3 4 5 2d 5 4 2 2h 2 3 6 16 2 2l i v 1d f e9 533 1t h3g 1w 19 3 7g 4 f b 1 l 1a h u 3 27 14 8 3 2u 3 1r 6 1 2 0 2 4 p f 2 2 2 3 2 m u 1f f 1d 1r 5 4 0 2 1 c r b m q s 8 1a t 0 h 4 2 9 b 4 2 14 o 2 2 7 l m 4 0 4 1d 2 0 4 1 3 4 3 0 2 0 p 2 3 a 8 2 d 5 3 5 3 5 a 6 2 6 2 16 2 d 7 36 u 8mb d m 5 1c 6it a5 3 2x 13 6 d 4 6 0 2 9 2 c 2 4 2 0 2 1 2 1 2 2z y a2 j 1r 3 1h 15 b 39 4 2 3q 11 p 7 p c 2g 4 5 3 5 3 5 3 2 10 b 2 p 2 i 2 1 2 e 3 d z 3e 1y 1g 7g s 4 1c 1c v e t 6 11 b t 3 z 5 7 2 4 17 4d j z 5 z 5 13 9 1f d a 2 e 2 6 2 1 2 a 2 e 2 6 2 1 1w 8m a l b 7 p 5 2 15 2 8 1y 5 3 0 2 17 2 1 4 0 3 m b m a u 1u i 2 1 b l b p 1z 1j 7 1 1t 0 g 3 2 2 2 s 17 s 4 s 10 7 2 r s 1h b l b i e h 33 20 1k 1e e 1e e z 9p 15 7 1 27 s b 0 9 l 17 h 1b k s m d 1g 1m 1 3 0 e 18 x o r z u 0 3 0 9 y 4 0 d 1b f 3 m 0 2 0 10 h 2 o k 1 1s 6 2 0 2 3 2 e 2 9 8 1a 13 7 3 1 3 l 2 6 2 1 2 4 4 0 j 0 d 4 4f 1g j 3 l 2 v 1b l 1 2 0 55 1a 16 3 11 1b l 0 1o 16 e 0 20 q 12 6 56 17 39 1r w 7 3 0 3 7 2 1 2 n g 0 2 0 2n 7 3 12 h 0 2 0 t 0 b 13 8 0 m 0 c 19 k 0 j 20 7c 8 2 10 i 0 1e t 35 6 2 1 2 11 m 0 q 5 2 1 2 v f 0 94 i g 0 2 c 2 x 3h 0 28 pl 2v 32 i 5f 219 2o g tr i 5 33u g6 6nu fs 8 u i 26 i t j 1b h 3 w k 6 i j5 1r 3l 22 6 0 1v c 1t 1 2 0 t 4qf 9 yd 17 8 6w8 3 2 6 2 1 2 82 g 0 u 2 3 0 f 3 9 az 1s5 2y 6 c 4 8 8 9 4mf 2c 2 1y 2 1 3 0 3 1 3 3 2 b 2 0 2 6 2 1s 2 3 3 7 2 6 2 r 2 3 2 4 2 0 4 6 2 9f 3 o 2 o 2 u 2 o 2 u 2 o 2 u 2 o 2 u 2 o 2 7 1f9 u 7 5 7a 1p 43 18 b 6 h 0 8y t j 17 dh r l1 6 2 3 2 1 2 e 2 5g 1o 1v 8 0 xh 3 2 q 2 1 2 0 3 0 2 9 2 3 2 0 2 0 7 0 5 0 2 0 2 0 2 2 2 1 2 0 3 0 2 0 2 0 2 0 2 0 2 1 2 0 3 3 2 6 2 3 2 3 2 0 2 9 2 g 6 2 2 4 2 g 3et wyn x 37d 7 65 3 4g1 f 5rk 2e8 f1 15v 3t6 6 38f")}function u(){return p("53 0 g9 33 o 0 70 4 7e 18 2 0 2 1 2 1 2 0 21 a 1d u 7 0 2u 6 3 5 3 1 2 3 3 9 o 0 v q 2k a g 9 y 8 a 0 p 3 2 8 2 2 2 4 18 2 1p 7 17 n 2 w 1j 2 2 h 2 6 b 1 3 9 i 2 1l 0 2 6 3 1 3 2 a 0 b 1 3 9 f 0 3 2 1l 0 2 4 5 1 3 2 4 0 l b 4 0 c 2 1l 0 2 7 2 2 2 2 l 1 3 9 b 5 2 2 1l 0 2 6 3 1 3 2 8 2 b 1 3 9 j 0 1o 4 4 2 2 3 a 0 f 9 h 4 1k 0 2 6 2 2 2 3 8 1 c 1 3 9 i 2 1l 0 2 6 2 2 2 3 8 1 c 1 3 9 4 0 d 3 1k 1 2 6 2 2 2 3 a 0 b 1 3 9 i 2 1z 0 5 5 2 0 2 7 7 9 3 1 1q 0 3 6 d 7 2 9 2g 0 3 8 c 6 2 9 1r 1 7 9 c 0 2 0 2 0 5 1 1e j 2 1 6 a 2 z a 0 2t j 2 9 d 3 5 2 2 2 3 6 4 3 e b 2 e jk 2 a 8 pt 3 t 2 u 1 v 1 1t v a 0 3 9 y 2 2 a 40 0 3b b 5 b b 9 3l a 1p 4 1m 9 2 s 3 a 7 9 n d 2 f 1e 4 1c g c 9 i 8 d 2 v c 3 9 19 d 1d j 9 9 7 9 3b 2 2 k 5 0 7 0 3 2 5j 1r g0 1 k 0 3g c 5 0 4 b 2db 2 3y 0 2p v ff 5 2y 1 n7q 9 1y 0 5 9 x 1 29 1 7l 0 4 0 5 0 o 4 5 0 2c 1 1f h b 9 7 h e a t 7 q c 19 3 1c d g 9 c 0 b 9 1c d d 0 9 1 3 9 y 2 1f 0 2 2 3 1 6 1 2 0 16 4 6 1 6l 7 2 1 3 9 fmt 0 ki f h f 4 1 p 2 5d 9 12 0 ji 0 6b 0 46 4 86 9 120 2 2 1 6 3 15 2 5 0 4m 1 fy 3 9 9 aa 1 29 2 1z a 1e 3 3f 2 1i e w a 3 1 b 3 1a a 8 0 1a 9 7 2 11 d 2 9 6 1 19 0 d 2 1d d 9 3 2 b 2b b 7 0 3 0 4e b 6 9 7 3 1k 1 2 6 3 1 3 2 a 0 b 1 3 6 4 4 5d h a 9 5 0 2a j d 9 5y 6 3 8 s 1 2b g g 9 2a c 9 9 2c e 5 9 6r e 4m 9 1z 5 2 1 3 3 2 0 2 1 d 9 3c 6 3 6 4 0 t 9 15 6 2 3 9 0 a a 1b f ba 7 2 7 h 9 1l l 2 d 3f 5 4 0 2 1 2 6 2 0 9 9 1d 4 2 1 2 4 9 9 96 3 a 1 2 0 1d 6 4 4 e 9 44n 0 7 e aob 9 2f 9 13 4 1o 6 q 9 s6 0 2 1i 8 3 2a 0 c 1 f58 1 3mq 19 3 m f3 4 4 5 9 7 3 6 v 3 45 2 13e 1d e9 1i 5 1d 9 0 f 0 n 4 2 e 11t 6 2 g 3 6 2 1 2 4 2t 0 4h 6 a 9 9x 0 1q d dv d rb 6 32 6 6 9 3o7 9 gvt3 6n")}function c(je,M){let te=0,me=M.length/2|0,_e=0,tt=0,b=0;for(;teb)te=_e+1;else return!0;return!1}function p(je){let M=0;return je.split(" ").map(te=>M+=parseInt(te,36)|0)}class h{constructor(M,te,me,_e,tt,b,P){this._raw2018=M,this._raw2019=te,this._raw2020=me,this._raw2021=_e,this._raw2022=tt,this._raw2023=b,this._raw2024=P}get es2018(){var M;return(M=this._set2018)!==null&&M!==void 0?M:this._set2018=new Set(this._raw2018.split(" "))}get es2019(){var M;return(M=this._set2019)!==null&&M!==void 0?M:this._set2019=new Set(this._raw2019.split(" "))}get es2020(){var M;return(M=this._set2020)!==null&&M!==void 0?M:this._set2020=new Set(this._raw2020.split(" "))}get es2021(){var M;return(M=this._set2021)!==null&&M!==void 0?M:this._set2021=new Set(this._raw2021.split(" "))}get es2022(){var M;return(M=this._set2022)!==null&&M!==void 0?M:this._set2022=new Set(this._raw2022.split(" "))}get es2023(){var M;return(M=this._set2023)!==null&&M!==void 0?M:this._set2023=new Set(this._raw2023.split(" "))}get es2024(){var M;return(M=this._set2024)!==null&&M!==void 0?M:this._set2024=new Set(this._raw2024.split(" "))}}let f=new Set(["General_Category","gc"]),d=new Set(["Script","Script_Extensions","sc","scx"]),m=new h("C Cased_Letter Cc Cf Close_Punctuation Cn Co Combining_Mark Connector_Punctuation Control Cs Currency_Symbol Dash_Punctuation Decimal_Number Enclosing_Mark Final_Punctuation Format Initial_Punctuation L LC Letter Letter_Number Line_Separator Ll Lm Lo Lowercase_Letter Lt Lu M Mark Math_Symbol Mc Me Mn Modifier_Letter Modifier_Symbol N Nd Nl No Nonspacing_Mark Number Open_Punctuation Other Other_Letter Other_Number Other_Punctuation Other_Symbol P Paragraph_Separator Pc Pd Pe Pf Pi Po Private_Use Ps Punctuation S Sc Separator Sk Sm So Space_Separator Spacing_Mark Surrogate Symbol Titlecase_Letter Unassigned Uppercase_Letter Z Zl Zp Zs cntrl digit punct","","","","","",""),g=new h("Adlam Adlm Aghb Ahom Anatolian_Hieroglyphs Arab Arabic Armenian Armi Armn Avestan Avst Bali Balinese Bamu Bamum Bass Bassa_Vah Batak Batk Beng Bengali Bhaiksuki Bhks Bopo Bopomofo Brah Brahmi Brai Braille Bugi Buginese Buhd Buhid Cakm Canadian_Aboriginal Cans Cari Carian Caucasian_Albanian Chakma Cham Cher Cherokee Common Copt Coptic Cprt Cuneiform Cypriot Cyrillic Cyrl Deseret Deva Devanagari Dsrt Dupl Duployan Egyp Egyptian_Hieroglyphs Elba Elbasan Ethi Ethiopic Geor Georgian Glag Glagolitic Gonm Goth Gothic Gran Grantha Greek Grek Gujarati Gujr Gurmukhi Guru Han Hang Hangul Hani Hano Hanunoo Hatr Hatran Hebr Hebrew Hira Hiragana Hluw Hmng Hung Imperial_Aramaic Inherited Inscriptional_Pahlavi Inscriptional_Parthian Ital Java Javanese Kaithi Kali Kana Kannada Katakana Kayah_Li Khar Kharoshthi Khmer Khmr Khoj Khojki Khudawadi Knda Kthi Lana Lao Laoo Latin Latn Lepc Lepcha Limb Limbu Lina Linb Linear_A Linear_B Lisu Lyci Lycian Lydi Lydian Mahajani Mahj Malayalam Mand Mandaic Mani Manichaean Marc Marchen Masaram_Gondi Meetei_Mayek Mend Mende_Kikakui Merc Mero Meroitic_Cursive Meroitic_Hieroglyphs Miao Mlym Modi Mong Mongolian Mro Mroo Mtei Mult Multani Myanmar Mymr Nabataean Narb Nbat New_Tai_Lue Newa Nko Nkoo Nshu Nushu Ogam Ogham Ol_Chiki Olck Old_Hungarian Old_Italic Old_North_Arabian Old_Permic Old_Persian Old_South_Arabian Old_Turkic Oriya Orkh Orya Osage Osge Osma Osmanya Pahawh_Hmong Palm Palmyrene Pau_Cin_Hau Pauc Perm Phag Phags_Pa Phli Phlp Phnx Phoenician Plrd Prti Psalter_Pahlavi Qaac Qaai Rejang Rjng Runic Runr Samaritan Samr Sarb Saur Saurashtra Sgnw Sharada Shavian Shaw Shrd Sidd Siddham SignWriting Sind Sinh Sinhala Sora Sora_Sompeng Soyo Soyombo Sund Sundanese Sylo Syloti_Nagri Syrc Syriac Tagalog Tagb Tagbanwa Tai_Le Tai_Tham Tai_Viet Takr Takri Tale Talu Tamil Taml Tang Tangut Tavt Telu Telugu Tfng Tglg Thaa Thaana Thai Tibetan Tibt Tifinagh Tirh Tirhuta Ugar Ugaritic Vai Vaii Wara Warang_Citi Xpeo Xsux Yi Yiii Zanabazar_Square Zanb Zinh Zyyy","Dogr Dogra Gong Gunjala_Gondi Hanifi_Rohingya Maka Makasar Medefaidrin Medf Old_Sogdian Rohg Sogd Sogdian Sogo","Elym Elymaic Hmnp Nand Nandinagari Nyiakeng_Puachue_Hmong Wancho Wcho","Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi","Cpmn Cypro_Minoan Old_Uyghur Ougr Tangsa Tnsa Toto Vith Vithkuqi","Hrkt Katakana_Or_Hiragana Kawi Nag_Mundari Nagm Unknown Zzzz",""),y=new h("AHex ASCII ASCII_Hex_Digit Alpha Alphabetic Any Assigned Bidi_C Bidi_Control Bidi_M Bidi_Mirrored CI CWCF CWCM CWKCF CWL CWT CWU Case_Ignorable Cased Changes_When_Casefolded Changes_When_Casemapped Changes_When_Lowercased Changes_When_NFKC_Casefolded Changes_When_Titlecased Changes_When_Uppercased DI Dash Default_Ignorable_Code_Point Dep Deprecated Dia Diacritic Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Ext Extender Gr_Base Gr_Ext Grapheme_Base Grapheme_Extend Hex Hex_Digit IDC IDS IDSB IDST IDS_Binary_Operator IDS_Trinary_Operator ID_Continue ID_Start Ideo Ideographic Join_C Join_Control LOE Logical_Order_Exception Lower Lowercase Math NChar Noncharacter_Code_Point Pat_Syn Pat_WS Pattern_Syntax Pattern_White_Space QMark Quotation_Mark RI Radical Regional_Indicator SD STerm Sentence_Terminal Soft_Dotted Term Terminal_Punctuation UIdeo Unified_Ideograph Upper Uppercase VS Variation_Selector White_Space XIDC XIDS XID_Continue XID_Start space","Extended_Pictographic","","EBase EComp EMod EPres ExtPict","","","");function v(je,M,te){return f.has(M)?je>=2018&&m.es2018.has(te):d.has(M)?je>=2018&&g.es2018.has(te)||je>=2019&&g.es2019.has(te)||je>=2020&&g.es2020.has(te)||je>=2021&&g.es2021.has(te)||je>=2022&&g.es2022.has(te)||je>=2023&&g.es2023.has(te):!1}function x(je,M){return je>=2018&&y.es2018.has(M)||je>=2019&&y.es2019.has(M)||je>=2021&&y.es2021.has(M)}let S=8,w=9,O=10,C=11,E=12,k=13,A=33,D=35,_=36,B=37,T=38,R=40,j=41,Q=42,I=43,N=44,F=45,U=46,V=47,ae=48,se=49,xe=55,H=57,he=58,$=59,pe=60,K=61,le=62,be=63,Le=64,qe=65,rt=66,ht=68,pt=70,Et=80,G=83,Ce=87,Ve=90,et=95,it=97,st=98,wt=99,vt=100,Dt=102,_t=103,W=105,xt=107,Ye=109,Kt=110,De=112,X=113,ne=114,ee=115,oe=116,ce=117,z=118,J=119,ie=120,de=121,we=122,L=91,ue=92,Te=93,Be=94,$e=96,Fe=123,Oe=124,Ie=125,We=126,ve=8204,re=8205,Y=8232,fe=8233,Se=0,Ee=1114111;function Ze(je){return je>=qe&&je<=Ve||je>=it&&je<=we}function Ke(je){return je>=ae&&je<=H}function mt(je){return je>=ae&&je<=xe}function Ot(je){return je>=ae&&je<=H||je>=qe&&je<=pt||je>=it&&je<=Dt}function Pt(je){return je===O||je===k||je===Y||je===fe}function bt(je){return je>=Se&&je<=Ee}function Ue(je){return je>=it&&je<=Dt?je-it+10:je>=qe&&je<=pt?je-qe+10:je-ae}function nt(je){return je>=55296&&je<=56319}function Xe(je){return je>=56320&&je<=57343}function Qe(je,M){return(je-55296)*1024+(M-56320)+65536}let ut={at(je,M,te){return te65535?2:1}};class qt{constructor(){this._impl=ut,this._s="",this._i=0,this._end=0,this._cp1=-1,this._w1=1,this._cp2=-1,this._w2=1,this._cp3=-1,this._w3=1,this._cp4=-1}get source(){return this._s}get index(){return this._i}get currentCodePoint(){return this._cp1}get nextCodePoint(){return this._cp2}get nextCodePoint2(){return this._cp3}get nextCodePoint3(){return this._cp4}reset(M,te,me,_e){this._impl=_e?dt:ut,this._s=M,this._end=me,this.rewind(te)}rewind(M){let te=this._impl;this._i=M,this._cp1=te.at(this._s,this._end,M),this._w1=te.width(this._cp1),this._cp2=te.at(this._s,this._end,M+this._w1),this._w2=te.width(this._cp2),this._cp3=te.at(this._s,this._end,M+this._w1+this._w2),this._w3=te.width(this._cp3),this._cp4=te.at(this._s,this._end,M+this._w1+this._w2+this._w3)}advance(){if(this._cp1!==-1){let M=this._impl;this._i+=this._w1,this._cp1=this._cp2,this._w1=this._w2,this._cp2=this._cp3,this._w2=M.width(this._cp2),this._cp3=this._cp4,this._w3=M.width(this._cp3),this._cp4=M.at(this._s,this._end,this._i+this._w1+this._w2+this._w3)}}eat(M){return this._cp1===M?(this.advance(),!0):!1}eat2(M,te){return this._cp1===M&&this._cp2===te?(this.advance(),this.advance(),!0):!1}eat3(M,te,me){return this._cp1===M&&this._cp2===te&&this._cp3===me?(this.advance(),this.advance(),this.advance(),!0):!1}}class Qt extends SyntaxError{constructor(M,te,me,_e){let tt="";if(M.kind==="literal"){let b=M.source.slice(M.start,M.end);b&&(tt=`: ${b}`)}else if(M.kind==="pattern"){let b=M.source.slice(M.start,M.end),P=`${te.unicode?"u":""}${te.unicodeSets?"v":""}`;tt=`: /${b}/${P}`}super(`Invalid regular expression${tt}: ${_e}`),this.index=me}}let jt=new Set(["Basic_Emoji","Emoji_Keycap_Sequence","RGI_Emoji_Modifier_Sequence","RGI_Emoji_Flag_Sequence","RGI_Emoji_Tag_Sequence","RGI_Emoji_ZWJ_Sequence","RGI_Emoji"]);function sr(je,M){return je>=2024&&jt.has(M)}let ot=new Set([Be,_,ue,U,Q,I,be,R,j,L,Te,Fe,Ie,Oe]),Nt=new Set([T,A,D,_,B,Q,I,N,U,he,$,pe,K,le,be,Le,Be,$e,We]),vr=new Set([R,j,L,Te,Fe,Ie,V,F,ue,Oe]),Nr=new Set([T,F,A,D,B,N,he,$,pe,K,le,Le,$e,We]);function wr(je){return ot.has(je)}function Qr(je){return Nt.has(je)}function fs(je){return vr.has(je)}function Yn(je){return Nr.has(je)}function dr(je){return n(je)||je===_||je===et}function ir(je){return i(je)||je===_||je===ve||je===re}function hn(je){return Ze(je)||je===et}function Hn(je){return hn(je)||Ke(je)}class kn{constructor(M){this._reader=new qt,this._unicodeMode=!1,this._unicodeSetsMode=!1,this._nFlag=!1,this._lastIntValue=0,this._lastRange={min:0,max:Number.POSITIVE_INFINITY},this._lastStrValue="",this._lastAssertionIsQuantifiable=!1,this._numCapturingParens=0,this._groupNames=new Set,this._backreferenceNames=new Set,this._srcCtx=null,this._options=M??{}}validateLiteral(M,te=0,me=M.length){if(this._srcCtx={source:M,start:te,end:me,kind:"literal"},this._unicodeSetsMode=this._unicodeMode=this._nFlag=!1,this.reset(M,te,me),this.onLiteralEnter(te),this.eat(V)&&this.eatRegExpBody()&&this.eat(V)){let _e=this.index,tt=M.includes("u",_e),b=M.includes("v",_e);this.validateFlagsInternal(M,_e,me),this.validatePatternInternal(M,te+1,_e-1,{unicode:tt,unicodeSets:b})}else if(te>=me)this.raise("Empty");else{let _e=String.fromCodePoint(this.currentCodePoint);this.raise(`Unexpected character '${_e}'`)}this.onLiteralLeave(te,me)}validateFlags(M,te=0,me=M.length){this._srcCtx={source:M,start:te,end:me,kind:"flags"},this.validateFlagsInternal(M,te,me)}validatePattern(M,te=0,me=M.length,_e=void 0){this._srcCtx={source:M,start:te,end:me,kind:"pattern"},this.validatePatternInternal(M,te,me,_e)}validatePatternInternal(M,te=0,me=M.length,_e=void 0){let tt=this._parseFlagsOptionToMode(_e,me);this._unicodeMode=tt.unicodeMode,this._nFlag=tt.nFlag,this._unicodeSetsMode=tt.unicodeSetsMode,this.reset(M,te,me),this.consumePattern(),!this._nFlag&&this.ecmaVersion>=2018&&this._groupNames.size>0&&(this._nFlag=!0,this.rewind(te),this.consumePattern())}validateFlagsInternal(M,te,me){let _e=new Set,tt=!1,b=!1,P=!1,q=!1,Z=!1,ge=!1,Re=!1,Ne=!1;for(let He=te;He=2015?Z=!0:Je===de&&this.ecmaVersion>=2015?q=!0:Je===ee&&this.ecmaVersion>=2018?ge=!0:Je===vt&&this.ecmaVersion>=2022?Re=!0:Je===z&&this.ecmaVersion>=2024?Ne=!0:this.raise(`Invalid flag '${M[He]}'`,{index:te})}this.onRegExpFlags(te,me,{global:tt,ignoreCase:b,multiline:P,unicode:Z,sticky:q,dotAll:ge,hasIndices:Re,unicodeSets:Ne})}_parseFlagsOptionToMode(M,te){let me=!1,_e=!1;M&&this.ecmaVersion>=2015&&(typeof M=="object"?(me=!!M.unicode,this.ecmaVersion>=2024&&(_e=!!M.unicodeSets)):me=M),me&&_e&&this.raise("Invalid regular expression flags",{index:te+1,unicode:me,unicodeSets:_e});let tt=me||_e,b=me&&this.ecmaVersion>=2018||_e||!!(this._options.strict&&this.ecmaVersion>=2023);return{unicodeMode:tt,nFlag:b,unicodeSetsMode:_e}}get strict(){return!!this._options.strict||this._unicodeMode}get ecmaVersion(){var M;return(M=this._options.ecmaVersion)!==null&&M!==void 0?M:e}onLiteralEnter(M){this._options.onLiteralEnter&&this._options.onLiteralEnter(M)}onLiteralLeave(M,te){this._options.onLiteralLeave&&this._options.onLiteralLeave(M,te)}onRegExpFlags(M,te,me){this._options.onRegExpFlags&&this._options.onRegExpFlags(M,te,me),this._options.onFlags&&this._options.onFlags(M,te,me.global,me.ignoreCase,me.multiline,me.unicode,me.sticky,me.dotAll,me.hasIndices)}onPatternEnter(M){this._options.onPatternEnter&&this._options.onPatternEnter(M)}onPatternLeave(M,te){this._options.onPatternLeave&&this._options.onPatternLeave(M,te)}onDisjunctionEnter(M){this._options.onDisjunctionEnter&&this._options.onDisjunctionEnter(M)}onDisjunctionLeave(M,te){this._options.onDisjunctionLeave&&this._options.onDisjunctionLeave(M,te)}onAlternativeEnter(M,te){this._options.onAlternativeEnter&&this._options.onAlternativeEnter(M,te)}onAlternativeLeave(M,te,me){this._options.onAlternativeLeave&&this._options.onAlternativeLeave(M,te,me)}onGroupEnter(M){this._options.onGroupEnter&&this._options.onGroupEnter(M)}onGroupLeave(M,te){this._options.onGroupLeave&&this._options.onGroupLeave(M,te)}onCapturingGroupEnter(M,te){this._options.onCapturingGroupEnter&&this._options.onCapturingGroupEnter(M,te)}onCapturingGroupLeave(M,te,me){this._options.onCapturingGroupLeave&&this._options.onCapturingGroupLeave(M,te,me)}onQuantifier(M,te,me,_e,tt){this._options.onQuantifier&&this._options.onQuantifier(M,te,me,_e,tt)}onLookaroundAssertionEnter(M,te,me){this._options.onLookaroundAssertionEnter&&this._options.onLookaroundAssertionEnter(M,te,me)}onLookaroundAssertionLeave(M,te,me,_e){this._options.onLookaroundAssertionLeave&&this._options.onLookaroundAssertionLeave(M,te,me,_e)}onEdgeAssertion(M,te,me){this._options.onEdgeAssertion&&this._options.onEdgeAssertion(M,te,me)}onWordBoundaryAssertion(M,te,me,_e){this._options.onWordBoundaryAssertion&&this._options.onWordBoundaryAssertion(M,te,me,_e)}onAnyCharacterSet(M,te,me){this._options.onAnyCharacterSet&&this._options.onAnyCharacterSet(M,te,me)}onEscapeCharacterSet(M,te,me,_e){this._options.onEscapeCharacterSet&&this._options.onEscapeCharacterSet(M,te,me,_e)}onUnicodePropertyCharacterSet(M,te,me,_e,tt,b,P){this._options.onUnicodePropertyCharacterSet&&this._options.onUnicodePropertyCharacterSet(M,te,me,_e,tt,b,P)}onCharacter(M,te,me){this._options.onCharacter&&this._options.onCharacter(M,te,me)}onBackreference(M,te,me){this._options.onBackreference&&this._options.onBackreference(M,te,me)}onCharacterClassEnter(M,te,me){this._options.onCharacterClassEnter&&this._options.onCharacterClassEnter(M,te,me)}onCharacterClassLeave(M,te,me){this._options.onCharacterClassLeave&&this._options.onCharacterClassLeave(M,te,me)}onCharacterClassRange(M,te,me,_e){this._options.onCharacterClassRange&&this._options.onCharacterClassRange(M,te,me,_e)}onClassIntersection(M,te){this._options.onClassIntersection&&this._options.onClassIntersection(M,te)}onClassSubtraction(M,te){this._options.onClassSubtraction&&this._options.onClassSubtraction(M,te)}onClassStringDisjunctionEnter(M){this._options.onClassStringDisjunctionEnter&&this._options.onClassStringDisjunctionEnter(M)}onClassStringDisjunctionLeave(M,te){this._options.onClassStringDisjunctionLeave&&this._options.onClassStringDisjunctionLeave(M,te)}onStringAlternativeEnter(M,te){this._options.onStringAlternativeEnter&&this._options.onStringAlternativeEnter(M,te)}onStringAlternativeLeave(M,te,me){this._options.onStringAlternativeLeave&&this._options.onStringAlternativeLeave(M,te,me)}get index(){return this._reader.index}get currentCodePoint(){return this._reader.currentCodePoint}get nextCodePoint(){return this._reader.nextCodePoint}get nextCodePoint2(){return this._reader.nextCodePoint2}get nextCodePoint3(){return this._reader.nextCodePoint3}reset(M,te,me){this._reader.reset(M,te,me,this._unicodeMode)}rewind(M){this._reader.rewind(M)}advance(){this._reader.advance()}eat(M){return this._reader.eat(M)}eat2(M,te){return this._reader.eat2(M,te)}eat3(M,te,me){return this._reader.eat3(M,te,me)}raise(M,te){var me,_e,tt;throw new Qt(this._srcCtx,{unicode:(me=te?.unicode)!==null&&me!==void 0?me:this._unicodeMode&&!this._unicodeSetsMode,unicodeSets:(_e=te?.unicodeSets)!==null&&_e!==void 0?_e:this._unicodeSetsMode},(tt=te?.index)!==null&&tt!==void 0?tt:this.index,M)}eatRegExpBody(){let M=this.index,te=!1,me=!1;for(;;){let _e=this.currentCodePoint;if(_e===-1||Pt(_e)){let tt=te?"character class":"regular expression";this.raise(`Unterminated ${tt}`)}if(me)me=!1;else if(_e===ue)me=!0;else if(_e===L)te=!0;else if(_e===Te)te=!1;else if(_e===V&&!te||_e===Q&&this.index===M)break;this.advance()}return this.index!==M}consumePattern(){let M=this.index;this._numCapturingParens=this.countCapturingParens(),this._groupNames.clear(),this._backreferenceNames.clear(),this.onPatternEnter(M),this.consumeDisjunction();let te=this.currentCodePoint;if(this.currentCodePoint!==-1){te===j&&this.raise("Unmatched ')'"),te===ue&&this.raise("\\ at end of pattern"),(te===Te||te===Ie)&&this.raise("Lone quantifier brackets");let me=String.fromCodePoint(te);this.raise(`Unexpected character '${me}'`)}for(let me of this._backreferenceNames)this._groupNames.has(me)||this.raise("Invalid named capture referenced");this.onPatternLeave(M,this.index)}countCapturingParens(){let M=this.index,te=!1,me=!1,_e=0,tt=0;for(;(tt=this.currentCodePoint)!==-1;)me?me=!1:tt===ue?me=!0:tt===L?te=!0:tt===Te?te=!1:tt===R&&!te&&(this.nextCodePoint!==be||this.nextCodePoint2===pe&&this.nextCodePoint3!==K&&this.nextCodePoint3!==A)&&(_e+=1),this.advance();return this.rewind(M),_e}consumeDisjunction(){let M=this.index,te=0;this.onDisjunctionEnter(M);do this.consumeAlternative(te++);while(this.eat(Oe));this.consumeQuantifier(!0)&&this.raise("Nothing to repeat"),this.eat(Fe)&&this.raise("Lone quantifier brackets"),this.onDisjunctionLeave(M,this.index)}consumeAlternative(M){let te=this.index;for(this.onAlternativeEnter(te,M);this.currentCodePoint!==-1&&this.consumeTerm(););this.onAlternativeLeave(te,this.index,M)}consumeTerm(){return this._unicodeMode||this.strict?this.consumeAssertion()||this.consumeAtom()&&this.consumeOptionalQuantifier():this.consumeAssertion()&&(!this._lastAssertionIsQuantifiable||this.consumeOptionalQuantifier())||this.consumeExtendedAtom()&&this.consumeOptionalQuantifier()}consumeOptionalQuantifier(){return this.consumeQuantifier(),!0}consumeAssertion(){let M=this.index;if(this._lastAssertionIsQuantifiable=!1,this.eat(Be))return this.onEdgeAssertion(M,this.index,"start"),!0;if(this.eat(_))return this.onEdgeAssertion(M,this.index,"end"),!0;if(this.eat2(ue,rt))return this.onWordBoundaryAssertion(M,this.index,"word",!0),!0;if(this.eat2(ue,st))return this.onWordBoundaryAssertion(M,this.index,"word",!1),!0;if(this.eat2(R,be)){let te=this.ecmaVersion>=2018&&this.eat(pe),me=!1;if(this.eat(K)||(me=this.eat(A))){let _e=te?"lookbehind":"lookahead";return this.onLookaroundAssertionEnter(M,_e,me),this.consumeDisjunction(),this.eat(j)||this.raise("Unterminated group"),this._lastAssertionIsQuantifiable=!te&&!this.strict,this.onLookaroundAssertionLeave(M,this.index,_e,me),!0}this.rewind(M)}return!1}consumeQuantifier(M=!1){let te=this.index,me=0,_e=0,tt=!1;if(this.eat(Q))me=0,_e=Number.POSITIVE_INFINITY;else if(this.eat(I))me=1,_e=Number.POSITIVE_INFINITY;else if(this.eat(be))me=0,_e=1;else if(this.eatBracedQuantifier(M))({min:me,max:_e}=this._lastRange);else return!1;return tt=!this.eat(be),M||this.onQuantifier(te,this.index,me,_e,tt),!0}eatBracedQuantifier(M){let te=this.index;if(this.eat(Fe)){if(this.eatDecimalDigits()){let me=this._lastIntValue,_e=me;if(this.eat(N)&&(_e=this.eatDecimalDigits()?this._lastIntValue:Number.POSITIVE_INFINITY),this.eat(Ie))return!M&&_e=2018?this.consumeGroupSpecifier()&&(te=this._lastStrValue):this.currentCodePoint===be&&this.raise("Invalid group"),this.onCapturingGroupEnter(M,te),this.consumeDisjunction(),this.eat(j)||this.raise("Unterminated group"),this.onCapturingGroupLeave(M,this.index,te),!0}return!1}consumeExtendedAtom(){return this.consumeDot()||this.consumeReverseSolidusAtomEscape()||this.consumeReverseSolidusFollowedByC()||!!this.consumeCharacterClass()||this.consumeUncapturingGroup()||this.consumeCapturingGroup()||this.consumeInvalidBracedQuantifier()||this.consumeExtendedPatternCharacter()}consumeReverseSolidusFollowedByC(){let M=this.index;return this.currentCodePoint===ue&&this.nextCodePoint===wt?(this._lastIntValue=this.currentCodePoint,this.advance(),this.onCharacter(M,this.index,ue),!0):!1}consumeInvalidBracedQuantifier(){return this.eatBracedQuantifier(!0)&&this.raise("Nothing to repeat"),!1}consumePatternCharacter(){let M=this.index,te=this.currentCodePoint;return te!==-1&&!wr(te)?(this.advance(),this.onCharacter(M,this.index,te),!0):!1}consumeExtendedPatternCharacter(){let M=this.index,te=this.currentCodePoint;return te!==-1&&te!==Be&&te!==_&&te!==ue&&te!==U&&te!==Q&&te!==I&&te!==be&&te!==R&&te!==j&&te!==L&&te!==Oe?(this.advance(),this.onCharacter(M,this.index,te),!0):!1}consumeGroupSpecifier(){if(this.eat(be)){if(this.eatGroupName()){if(!this._groupNames.has(this._lastStrValue))return this._groupNames.add(this._lastStrValue),!0;this.raise("Duplicate capture group name")}this.raise("Invalid group")}return!1}consumeAtomEscape(){return this.consumeBackreference()||this.consumeCharacterClassEscape()||this.consumeCharacterEscape()||this._nFlag&&this.consumeKGroupName()?!0:((this.strict||this._unicodeMode)&&this.raise("Invalid escape"),!1)}consumeBackreference(){let M=this.index;if(this.eatDecimalEscape()){let te=this._lastIntValue;if(te<=this._numCapturingParens)return this.onBackreference(M-1,this.index,te),!0;(this.strict||this._unicodeMode)&&this.raise("Invalid escape"),this.rewind(M)}return!1}consumeCharacterClassEscape(){var M;let te=this.index;if(this.eat(vt))return this._lastIntValue=-1,this.onEscapeCharacterSet(te-1,this.index,"digit",!1),{};if(this.eat(ht))return this._lastIntValue=-1,this.onEscapeCharacterSet(te-1,this.index,"digit",!0),{};if(this.eat(ee))return this._lastIntValue=-1,this.onEscapeCharacterSet(te-1,this.index,"space",!1),{};if(this.eat(G))return this._lastIntValue=-1,this.onEscapeCharacterSet(te-1,this.index,"space",!0),{};if(this.eat(J))return this._lastIntValue=-1,this.onEscapeCharacterSet(te-1,this.index,"word",!1),{};if(this.eat(Ce))return this._lastIntValue=-1,this.onEscapeCharacterSet(te-1,this.index,"word",!0),{};let me=!1;if(this._unicodeMode&&this.ecmaVersion>=2018&&(this.eat(De)||(me=this.eat(Et)))){this._lastIntValue=-1;let _e=null;if(this.eat(Fe)&&(_e=this.eatUnicodePropertyValueExpression())&&this.eat(Ie))return me&&_e.strings&&this.raise("Invalid property name"),this.onUnicodePropertyCharacterSet(te-1,this.index,"property",_e.key,_e.value,me,(M=_e.strings)!==null&&M!==void 0?M:!1),{mayContainStrings:_e.strings};this.raise("Invalid property name")}return null}consumeCharacterEscape(){let M=this.index;return this.eatControlEscape()||this.eatCControlLetter()||this.eatZero()||this.eatHexEscapeSequence()||this.eatRegExpUnicodeEscapeSequence()||!this.strict&&!this._unicodeMode&&this.eatLegacyOctalEscapeSequence()||this.eatIdentityEscape()?(this.onCharacter(M-1,this.index,this._lastIntValue),!0):!1}consumeKGroupName(){let M=this.index;if(this.eat(xt)){if(this.eatGroupName()){let te=this._lastStrValue;return this._backreferenceNames.add(te),this.onBackreference(M-1,this.index,te),!0}this.raise("Invalid named reference")}return!1}consumeCharacterClass(){let M=this.index;if(this.eat(L)){let te=this.eat(Be);this.onCharacterClassEnter(M,te,this._unicodeSetsMode);let me=this.consumeClassContents();return this.eat(Te)||(this.currentCodePoint===-1&&this.raise("Unterminated character class"),this.raise("Invalid character in character class")),te&&me.mayContainStrings&&this.raise("Negated character class may contain strings"),this.onCharacterClassLeave(M,this.index,te),me}return null}consumeClassContents(){if(this._unicodeSetsMode)return this.currentCodePoint===Te?{}:this.consumeClassSetExpression();let M=this.strict||this._unicodeMode;for(;;){let te=this.index;if(!this.consumeClassAtom())break;let me=this._lastIntValue;if(!this.eat(F))continue;if(this.onCharacter(this.index-1,this.index,F),!this.consumeClassAtom())break;let _e=this._lastIntValue;if(me===-1||_e===-1){M&&this.raise("Invalid character class");continue}me>_e&&this.raise("Range out of order in character class"),this.onCharacterClassRange(te,this.index,me,_e)}return{}}consumeClassAtom(){let M=this.index,te=this.currentCodePoint;if(te!==-1&&te!==ue&&te!==Te)return this.advance(),this._lastIntValue=te,this.onCharacter(M,this.index,this._lastIntValue),!0;if(this.eat(ue)){if(this.consumeClassEscape())return!0;if(!this.strict&&this.currentCodePoint===wt)return this._lastIntValue=ue,this.onCharacter(M,this.index,this._lastIntValue),!0;(this.strict||this._unicodeMode)&&this.raise("Invalid escape"),this.rewind(M)}return!1}consumeClassEscape(){let M=this.index;if(this.eat(st))return this._lastIntValue=S,this.onCharacter(M-1,this.index,this._lastIntValue),!0;if(this._unicodeMode&&this.eat(F))return this._lastIntValue=F,this.onCharacter(M-1,this.index,this._lastIntValue),!0;let te=0;return!this.strict&&!this._unicodeMode&&this.currentCodePoint===wt&&(Ke(te=this.nextCodePoint)||te===et)?(this.advance(),this.advance(),this._lastIntValue=te%32,this.onCharacter(M-1,this.index,this._lastIntValue),!0):!!this.consumeCharacterClassEscape()||this.consumeCharacterEscape()}consumeClassSetExpression(){let M=this.index,te=!1,me=null;if(this.consumeClassSetCharacter()){if(this.consumeClassSetRangeFromOperator(M))return this.consumeClassUnionRight({}),{};te=!1}else if(me=this.consumeClassSetOperand())te=me.mayContainStrings;else{let _e=this.currentCodePoint;_e===ue&&(this.advance(),this.raise("Invalid escape")),_e===this.nextCodePoint&&Qr(_e)&&this.raise("Invalid set operation in character class"),this.raise("Invalid character in character class")}if(this.eat2(T,T)){for(;this.currentCodePoint!==T&&(me=this.consumeClassSetOperand());)if(this.onClassIntersection(M,this.index),me.mayContainStrings||(te=!1),!this.eat2(T,T))return{mayContainStrings:te};this.raise("Invalid character in character class")}if(this.eat2(F,F)){for(;this.consumeClassSetOperand();)if(this.onClassSubtraction(M,this.index),!this.eat2(F,F))return{mayContainStrings:te};this.raise("Invalid character in character class")}return this.consumeClassUnionRight({mayContainStrings:te})}consumeClassUnionRight(M){let te=M.mayContainStrings;for(;;){let me=this.index;if(this.consumeClassSetCharacter()){this.consumeClassSetRangeFromOperator(me);continue}let _e=this.consumeClassSetOperand();if(_e){_e.mayContainStrings&&(te=!0);continue}break}return{mayContainStrings:te}}consumeClassSetRangeFromOperator(M){let te=this.index,me=this._lastIntValue;if(this.eat(F)){if(this.consumeClassSetCharacter()){let _e=this._lastIntValue;return(me===-1||_e===-1)&&this.raise("Invalid character class"),me>_e&&this.raise("Range out of order in character class"),this.onCharacterClassRange(M,this.index,me,_e),!0}this.rewind(te)}return!1}consumeClassSetOperand(){let M=null;return(M=this.consumeNestedClass())||(M=this.consumeClassStringDisjunction())?M:this.consumeClassSetCharacter()?{}:null}consumeNestedClass(){let M=this.index;if(this.eat(L)){let te=this.eat(Be);this.onCharacterClassEnter(M,te,!0);let me=this.consumeClassContents();return this.eat(Te)||this.raise("Unterminated character class"),te&&me.mayContainStrings&&this.raise("Negated character class may contain strings"),this.onCharacterClassLeave(M,this.index,te),me}if(this.eat(ue)){let te=this.consumeCharacterClassEscape();if(te)return te;this.rewind(M)}return null}consumeClassStringDisjunction(){let M=this.index;if(this.eat3(ue,X,Fe)){this.onClassStringDisjunctionEnter(M);let te=0,me=!1;do this.consumeClassString(te++).mayContainStrings&&(me=!0);while(this.eat(Oe));if(this.eat(Ie))return this.onClassStringDisjunctionLeave(M,this.index),{mayContainStrings:me};this.raise("Unterminated class string disjunction")}return null}consumeClassString(M){let te=this.index,me=0;for(this.onStringAlternativeEnter(te,M);this.currentCodePoint!==-1&&this.consumeClassSetCharacter();)me++;return this.onStringAlternativeLeave(te,this.index,M),{mayContainStrings:me!==1}}consumeClassSetCharacter(){let M=this.index,te=this.currentCodePoint;if((te!==this.nextCodePoint||!Qr(te))&&te!==-1&&!fs(te))return this._lastIntValue=te,this.advance(),this.onCharacter(M,this.index,this._lastIntValue),!0;if(this.eat(ue)){if(this.consumeCharacterEscape())return!0;if(Yn(this.currentCodePoint))return this._lastIntValue=this.currentCodePoint,this.advance(),this.onCharacter(M,this.index,this._lastIntValue),!0;if(this.eat(st))return this._lastIntValue=S,this.onCharacter(M,this.index,this._lastIntValue),!0;this.rewind(M)}return!1}eatGroupName(){if(this.eat(pe)){if(this.eatRegExpIdentifierName()&&this.eat(le))return!0;this.raise("Invalid capture group name")}return!1}eatRegExpIdentifierName(){if(this.eatRegExpIdentifierStart()){for(this._lastStrValue=String.fromCodePoint(this._lastIntValue);this.eatRegExpIdentifierPart();)this._lastStrValue+=String.fromCodePoint(this._lastIntValue);return!0}return!1}eatRegExpIdentifierStart(){let M=this.index,te=!this._unicodeMode&&this.ecmaVersion>=2020,me=this.currentCodePoint;return this.advance(),me===ue&&this.eatRegExpUnicodeEscapeSequence(te)?me=this._lastIntValue:te&&nt(me)&&Xe(this.currentCodePoint)&&(me=Qe(me,this.currentCodePoint),this.advance()),dr(me)?(this._lastIntValue=me,!0):(this.index!==M&&this.rewind(M),!1)}eatRegExpIdentifierPart(){let M=this.index,te=!this._unicodeMode&&this.ecmaVersion>=2020,me=this.currentCodePoint;return this.advance(),me===ue&&this.eatRegExpUnicodeEscapeSequence(te)?me=this._lastIntValue:te&&nt(me)&&Xe(this.currentCodePoint)&&(me=Qe(me,this.currentCodePoint),this.advance()),ir(me)?(this._lastIntValue=me,!0):(this.index!==M&&this.rewind(M),!1)}eatCControlLetter(){let M=this.index;if(this.eat(wt)){if(this.eatControlLetter())return!0;this.rewind(M)}return!1}eatZero(){return this.currentCodePoint===ae&&!Ke(this.nextCodePoint)?(this._lastIntValue=0,this.advance(),!0):!1}eatControlEscape(){return this.eat(Dt)?(this._lastIntValue=E,!0):this.eat(Kt)?(this._lastIntValue=O,!0):this.eat(ne)?(this._lastIntValue=k,!0):this.eat(oe)?(this._lastIntValue=w,!0):this.eat(z)?(this._lastIntValue=C,!0):!1}eatControlLetter(){let M=this.currentCodePoint;return Ze(M)?(this.advance(),this._lastIntValue=M%32,!0):!1}eatRegExpUnicodeEscapeSequence(M=!1){let te=this.index,me=M||this._unicodeMode;if(this.eat(ce)){if(me&&this.eatRegExpUnicodeSurrogatePairEscape()||this.eatFixedHexDigits(4)||me&&this.eatRegExpUnicodeCodePointEscape())return!0;(this.strict||me)&&this.raise("Invalid unicode escape"),this.rewind(te)}return!1}eatRegExpUnicodeSurrogatePairEscape(){let M=this.index;if(this.eatFixedHexDigits(4)){let te=this._lastIntValue;if(nt(te)&&this.eat(ue)&&this.eat(ce)&&this.eatFixedHexDigits(4)){let me=this._lastIntValue;if(Xe(me))return this._lastIntValue=Qe(te,me),!0}this.rewind(M)}return!1}eatRegExpUnicodeCodePointEscape(){let M=this.index;return this.eat(Fe)&&this.eatHexDigits()&&this.eat(Ie)&&bt(this._lastIntValue)?!0:(this.rewind(M),!1)}eatIdentityEscape(){let M=this.currentCodePoint;return this.isValidIdentityEscape(M)?(this._lastIntValue=M,this.advance(),!0):!1}isValidIdentityEscape(M){return M===-1?!1:this._unicodeMode?wr(M)||M===V:this.strict?!i(M):this._nFlag?!(M===wt||M===xt):M!==wt}eatDecimalEscape(){this._lastIntValue=0;let M=this.currentCodePoint;if(M>=se&&M<=H){do this._lastIntValue=10*this._lastIntValue+(M-ae),this.advance();while((M=this.currentCodePoint)>=ae&&M<=H);return!0}return!1}eatUnicodePropertyValueExpression(){let M=this.index;if(this.eatUnicodePropertyName()&&this.eat(K)){let te=this._lastStrValue;if(this.eatUnicodePropertyValue()){let me=this._lastStrValue;if(v(this.ecmaVersion,te,me))return{key:te,value:me||null};this.raise("Invalid property name")}}if(this.rewind(M),this.eatLoneUnicodePropertyNameOrValue()){let te=this._lastStrValue;if(v(this.ecmaVersion,"General_Category",te))return{key:"General_Category",value:te||null};if(x(this.ecmaVersion,te))return{key:te,value:null};if(this._unicodeSetsMode&&sr(this.ecmaVersion,te))return{key:te,value:null,strings:!0};this.raise("Invalid property name")}return null}eatUnicodePropertyName(){for(this._lastStrValue="";hn(this.currentCodePoint);)this._lastStrValue+=String.fromCodePoint(this.currentCodePoint),this.advance();return this._lastStrValue!==""}eatUnicodePropertyValue(){for(this._lastStrValue="";Hn(this.currentCodePoint);)this._lastStrValue+=String.fromCodePoint(this.currentCodePoint),this.advance();return this._lastStrValue!==""}eatLoneUnicodePropertyNameOrValue(){return this.eatUnicodePropertyValue()}eatHexEscapeSequence(){let M=this.index;if(this.eat(ie)){if(this.eatFixedHexDigits(2))return!0;(this._unicodeMode||this.strict)&&this.raise("Invalid escape"),this.rewind(M)}return!1}eatDecimalDigits(){let M=this.index;for(this._lastIntValue=0;Ke(this.currentCodePoint);)this._lastIntValue=10*this._lastIntValue+Ue(this.currentCodePoint),this.advance();return this.index!==M}eatHexDigits(){let M=this.index;for(this._lastIntValue=0;Ot(this.currentCodePoint);)this._lastIntValue=16*this._lastIntValue+Ue(this.currentCodePoint),this.advance();return this.index!==M}eatLegacyOctalEscapeSequence(){if(this.eatOctalDigit()){let M=this._lastIntValue;if(this.eatOctalDigit()){let te=this._lastIntValue;M<=3&&this.eatOctalDigit()?this._lastIntValue=M*64+te*8+this._lastIntValue:this._lastIntValue=M*8+te}else this._lastIntValue=M;return!0}return!1}eatOctalDigit(){let M=this.currentCodePoint;return mt(M)?(this.advance(),this._lastIntValue=M-ae,!0):(this._lastIntValue=0,!1)}eatFixedHexDigits(M){let te=this.index;this._lastIntValue=0;for(let me=0;meb.name===_e);me.resolved=tt,tt.references.push(me)}}onAlternativeEnter(M){let te=this._node;if(te.type!=="Assertion"&&te.type!=="CapturingGroup"&&te.type!=="Group"&&te.type!=="Pattern")throw new Error("UnknownError");this._node={type:"Alternative",parent:te,start:M,end:M,raw:"",elements:[]},te.alternatives.push(this._node)}onAlternativeLeave(M,te){let me=this._node;if(me.type!=="Alternative")throw new Error("UnknownError");me.end=te,me.raw=this.source.slice(M,te),this._node=me.parent}onGroupEnter(M){let te=this._node;if(te.type!=="Alternative")throw new Error("UnknownError");this._node={type:"Group",parent:te,start:M,end:M,raw:"",alternatives:[]},te.elements.push(this._node)}onGroupLeave(M,te){let me=this._node;if(me.type!=="Group"||me.parent.type!=="Alternative")throw new Error("UnknownError");me.end=te,me.raw=this.source.slice(M,te),this._node=me.parent}onCapturingGroupEnter(M,te){let me=this._node;if(me.type!=="Alternative")throw new Error("UnknownError");this._node={type:"CapturingGroup",parent:me,start:M,end:M,raw:"",name:te,alternatives:[],references:[]},me.elements.push(this._node),this._capturingGroups.push(this._node)}onCapturingGroupLeave(M,te){let me=this._node;if(me.type!=="CapturingGroup"||me.parent.type!=="Alternative")throw new Error("UnknownError");me.end=te,me.raw=this.source.slice(M,te),this._node=me.parent}onQuantifier(M,te,me,_e,tt){let b=this._node;if(b.type!=="Alternative")throw new Error("UnknownError");let P=b.elements.pop();if(P==null||P.type==="Quantifier"||P.type==="Assertion"&&P.kind!=="lookahead")throw new Error("UnknownError");let q={type:"Quantifier",parent:b,start:P.start,end:te,raw:this.source.slice(P.start,te),min:me,max:_e,greedy:tt,element:P};b.elements.push(q),P.parent=q}onLookaroundAssertionEnter(M,te,me){let _e=this._node;if(_e.type!=="Alternative")throw new Error("UnknownError");let tt=this._node={type:"Assertion",parent:_e,start:M,end:M,raw:"",kind:te,negate:me,alternatives:[]};_e.elements.push(tt)}onLookaroundAssertionLeave(M,te){let me=this._node;if(me.type!=="Assertion"||me.parent.type!=="Alternative")throw new Error("UnknownError");me.end=te,me.raw=this.source.slice(M,te),this._node=me.parent}onEdgeAssertion(M,te,me){let _e=this._node;if(_e.type!=="Alternative")throw new Error("UnknownError");_e.elements.push({type:"Assertion",parent:_e,start:M,end:te,raw:this.source.slice(M,te),kind:me})}onWordBoundaryAssertion(M,te,me,_e){let tt=this._node;if(tt.type!=="Alternative")throw new Error("UnknownError");tt.elements.push({type:"Assertion",parent:tt,start:M,end:te,raw:this.source.slice(M,te),kind:me,negate:_e})}onAnyCharacterSet(M,te,me){let _e=this._node;if(_e.type!=="Alternative")throw new Error("UnknownError");_e.elements.push({type:"CharacterSet",parent:_e,start:M,end:te,raw:this.source.slice(M,te),kind:me})}onEscapeCharacterSet(M,te,me,_e){let tt=this._node;if(tt.type!=="Alternative"&&tt.type!=="CharacterClass")throw new Error("UnknownError");tt.elements.push({type:"CharacterSet",parent:tt,start:M,end:te,raw:this.source.slice(M,te),kind:me,negate:_e})}onUnicodePropertyCharacterSet(M,te,me,_e,tt,b,P){let q=this._node;if(q.type!=="Alternative"&&q.type!=="CharacterClass"||P&&(b||tt))throw new Error("UnknownError");let Z={type:"CharacterSet",parent:q,start:M,end:te,raw:this.source.slice(M,te),kind:me,strings:P,key:_e},ge=P?Object.assign(Object.assign({},Z),{value:null,negate:!1,strings:!0}):Object.assign(Object.assign({},Z),{value:tt,negate:b,strings:!1});q.elements.push(ge)}onCharacter(M,te,me){let _e=this._node;if(_e.type!=="Alternative"&&_e.type!=="CharacterClass"&&_e.type!=="StringAlternative")throw new Error("UnknownError");_e.elements.push({type:"Character",parent:_e,start:M,end:te,raw:this.source.slice(M,te),value:me})}onBackreference(M,te,me){let _e=this._node;if(_e.type!=="Alternative")throw new Error("UnknownError");let tt={type:"Backreference",parent:_e,start:M,end:te,raw:this.source.slice(M,te),ref:me,resolved:Ms};_e.elements.push(tt),this._backreferences.push(tt)}onCharacterClassEnter(M,te,me){let _e=this._node,tt={type:"CharacterClass",parent:_e,start:M,end:M,raw:"",unicodeSets:me,negate:te,elements:[]};if(_e.type==="Alternative"){let b=Object.assign(Object.assign({},tt),{parent:_e});this._node=b,_e.elements.push(b)}else if(_e.type==="CharacterClass"&&_e.unicodeSets&&me){let b=Object.assign(Object.assign({},tt),{parent:_e,unicodeSets:me});this._node=b,_e.elements.push(b)}else throw new Error("UnknownError")}onCharacterClassLeave(M,te){let me=this._node;if(me.type!=="CharacterClass"||me.parent.type!=="Alternative"&&me.parent.type!=="CharacterClass"||this._expressionBuffer&&me.elements.length>0)throw new Error("UnknownError");let _e=me.parent;me.end=te,me.raw=this.source.slice(M,te),this._node=_e;let tt=this._expressionBuffer;if(this._expressionBuffer=null,!tt)return;let b={type:"ExpressionCharacterClass",parent:_e,start:me.start,end:me.end,raw:me.raw,negate:me.negate,expression:tt};if(tt.parent=b,me!==_e.elements.pop())throw new Error("UnknownError");_e.elements.push(b)}onCharacterClassRange(M,te){let me=this._node;if(me.type!=="CharacterClass")throw new Error("UnknownError");let _e=me.elements,tt=_e.pop();if(!tt||tt.type!=="Character")throw new Error("UnknownError");if(!me.unicodeSets){let q=_e.pop();if(!q||q.type!=="Character"||q.value!==F)throw new Error("UnknownError")}let b=_e.pop();if(!b||b.type!=="Character")throw new Error("UnknownError");let P={type:"CharacterClassRange",parent:me,start:M,end:te,raw:this.source.slice(M,te),min:b,max:tt};b.parent=P,tt.parent=P,_e.push(P)}onClassIntersection(M,te){var me;let _e=this._node;if(_e.type!=="CharacterClass"||!_e.unicodeSets)throw new Error("UnknownError");let tt=_e.elements.pop(),b=(me=this._expressionBuffer)!==null&&me!==void 0?me:_e.elements.pop();if(!b||!tt||b.type==="ClassSubtraction"||b.type!=="ClassIntersection"&&!mn(b)||!mn(tt))throw new Error("UnknownError");let P={type:"ClassIntersection",parent:_e,start:M,end:te,raw:this.source.slice(M,te),left:b,right:tt};b.parent=P,tt.parent=P,this._expressionBuffer=P}onClassSubtraction(M,te){var me;let _e=this._node;if(_e.type!=="CharacterClass"||!_e.unicodeSets)throw new Error("UnknownError");let tt=_e.elements.pop(),b=(me=this._expressionBuffer)!==null&&me!==void 0?me:_e.elements.pop();if(!b||!tt||b.type==="ClassIntersection"||b.type!=="ClassSubtraction"&&!mn(b)||!mn(tt))throw new Error("UnknownError");let P={type:"ClassSubtraction",parent:_e,start:M,end:te,raw:this.source.slice(M,te),left:b,right:tt};b.parent=P,tt.parent=P,this._expressionBuffer=P}onClassStringDisjunctionEnter(M){let te=this._node;if(te.type!=="CharacterClass"||!te.unicodeSets)throw new Error("UnknownError");this._node={type:"ClassStringDisjunction",parent:te,start:M,end:M,raw:"",alternatives:[]},te.elements.push(this._node)}onClassStringDisjunctionLeave(M,te){let me=this._node;if(me.type!=="ClassStringDisjunction"||me.parent.type!=="CharacterClass")throw new Error("UnknownError");me.end=te,me.raw=this.source.slice(M,te),this._node=me.parent}onStringAlternativeEnter(M){let te=this._node;if(te.type!=="ClassStringDisjunction")throw new Error("UnknownError");this._node={type:"StringAlternative",parent:te,start:M,end:M,raw:"",elements:[]},te.alternatives.push(this._node)}onStringAlternativeLeave(M,te){let me=this._node;if(me.type!=="StringAlternative")throw new Error("UnknownError");me.end=te,me.raw=this.source.slice(M,te),this._node=me.parent}}class hs{constructor(M){this._state=new Oi(M),this._validator=new kn(this._state)}parseLiteral(M,te=0,me=M.length){this._state.source=M,this._validator.validateLiteral(M,te,me);let _e=this._state.pattern,tt=this._state.flags,b={type:"RegExpLiteral",parent:null,start:te,end:me,raw:M,pattern:_e,flags:tt};return _e.parent=b,tt.parent=b,b}parseFlags(M,te=0,me=M.length){return this._state.source=M,this._validator.validateFlags(M,te,me),this._state.flags}parsePattern(M,te=0,me=M.length,_e=void 0){return this._state.source=M,this._validator.validatePattern(M,te,me,_e),this._state.pattern}}class Si{constructor(M){this._handlers=M}visit(M){switch(M.type){case"Alternative":this.visitAlternative(M);break;case"Assertion":this.visitAssertion(M);break;case"Backreference":this.visitBackreference(M);break;case"CapturingGroup":this.visitCapturingGroup(M);break;case"Character":this.visitCharacter(M);break;case"CharacterClass":this.visitCharacterClass(M);break;case"CharacterClassRange":this.visitCharacterClassRange(M);break;case"CharacterSet":this.visitCharacterSet(M);break;case"ClassIntersection":this.visitClassIntersection(M);break;case"ClassStringDisjunction":this.visitClassStringDisjunction(M);break;case"ClassSubtraction":this.visitClassSubtraction(M);break;case"ExpressionCharacterClass":this.visitExpressionCharacterClass(M);break;case"Flags":this.visitFlags(M);break;case"Group":this.visitGroup(M);break;case"Pattern":this.visitPattern(M);break;case"Quantifier":this.visitQuantifier(M);break;case"RegExpLiteral":this.visitRegExpLiteral(M);break;case"StringAlternative":this.visitStringAlternative(M);break;default:throw new Error(`Unknown type: ${M.type}`)}}visitAlternative(M){this._handlers.onAlternativeEnter&&this._handlers.onAlternativeEnter(M),M.elements.forEach(this.visit,this),this._handlers.onAlternativeLeave&&this._handlers.onAlternativeLeave(M)}visitAssertion(M){this._handlers.onAssertionEnter&&this._handlers.onAssertionEnter(M),(M.kind==="lookahead"||M.kind==="lookbehind")&&M.alternatives.forEach(this.visit,this),this._handlers.onAssertionLeave&&this._handlers.onAssertionLeave(M)}visitBackreference(M){this._handlers.onBackreferenceEnter&&this._handlers.onBackreferenceEnter(M),this._handlers.onBackreferenceLeave&&this._handlers.onBackreferenceLeave(M)}visitCapturingGroup(M){this._handlers.onCapturingGroupEnter&&this._handlers.onCapturingGroupEnter(M),M.alternatives.forEach(this.visit,this),this._handlers.onCapturingGroupLeave&&this._handlers.onCapturingGroupLeave(M)}visitCharacter(M){this._handlers.onCharacterEnter&&this._handlers.onCharacterEnter(M),this._handlers.onCharacterLeave&&this._handlers.onCharacterLeave(M)}visitCharacterClass(M){this._handlers.onCharacterClassEnter&&this._handlers.onCharacterClassEnter(M),M.elements.forEach(this.visit,this),this._handlers.onCharacterClassLeave&&this._handlers.onCharacterClassLeave(M)}visitCharacterClassRange(M){this._handlers.onCharacterClassRangeEnter&&this._handlers.onCharacterClassRangeEnter(M),this.visitCharacter(M.min),this.visitCharacter(M.max),this._handlers.onCharacterClassRangeLeave&&this._handlers.onCharacterClassRangeLeave(M)}visitCharacterSet(M){this._handlers.onCharacterSetEnter&&this._handlers.onCharacterSetEnter(M),this._handlers.onCharacterSetLeave&&this._handlers.onCharacterSetLeave(M)}visitClassIntersection(M){this._handlers.onClassIntersectionEnter&&this._handlers.onClassIntersectionEnter(M),this.visit(M.left),this.visit(M.right),this._handlers.onClassIntersectionLeave&&this._handlers.onClassIntersectionLeave(M)}visitClassStringDisjunction(M){this._handlers.onClassStringDisjunctionEnter&&this._handlers.onClassStringDisjunctionEnter(M),M.alternatives.forEach(this.visit,this),this._handlers.onClassStringDisjunctionLeave&&this._handlers.onClassStringDisjunctionLeave(M)}visitClassSubtraction(M){this._handlers.onClassSubtractionEnter&&this._handlers.onClassSubtractionEnter(M),this.visit(M.left),this.visit(M.right),this._handlers.onClassSubtractionLeave&&this._handlers.onClassSubtractionLeave(M)}visitExpressionCharacterClass(M){this._handlers.onExpressionCharacterClassEnter&&this._handlers.onExpressionCharacterClassEnter(M),this.visit(M.expression),this._handlers.onExpressionCharacterClassLeave&&this._handlers.onExpressionCharacterClassLeave(M)}visitFlags(M){this._handlers.onFlagsEnter&&this._handlers.onFlagsEnter(M),this._handlers.onFlagsLeave&&this._handlers.onFlagsLeave(M)}visitGroup(M){this._handlers.onGroupEnter&&this._handlers.onGroupEnter(M),M.alternatives.forEach(this.visit,this),this._handlers.onGroupLeave&&this._handlers.onGroupLeave(M)}visitPattern(M){this._handlers.onPatternEnter&&this._handlers.onPatternEnter(M),M.alternatives.forEach(this.visit,this),this._handlers.onPatternLeave&&this._handlers.onPatternLeave(M)}visitQuantifier(M){this._handlers.onQuantifierEnter&&this._handlers.onQuantifierEnter(M),this.visit(M.element),this._handlers.onQuantifierLeave&&this._handlers.onQuantifierLeave(M)}visitRegExpLiteral(M){this._handlers.onRegExpLiteralEnter&&this._handlers.onRegExpLiteralEnter(M),this.visitPattern(M.pattern),this.visitFlags(M.flags),this._handlers.onRegExpLiteralLeave&&this._handlers.onRegExpLiteralLeave(M)}visitStringAlternative(M){this._handlers.onStringAlternativeEnter&&this._handlers.onStringAlternativeEnter(M),M.elements.forEach(this.visit,this),this._handlers.onStringAlternativeLeave&&this._handlers.onStringAlternativeLeave(M)}}function ds(je,M){return new hs(M).parseLiteral(String(je))}function Tt(je,M){new kn(M).validateLiteral(je)}function Ei(je,M){new Si(M).visit(je)}return ls.AST=r,ls.RegExpParser=hs,ls.RegExpValidator=kn,ls.parseRegExpLiteral=ds,ls.validateRegExpLiteral=Tt,ls.visitRegExpAST=Ei,ls}var Q0,I_;function X7(){if(I_)return Q0;I_=1;let r=Gn().RegExpValidator,e=new class{constructor(){this._source="",this._controlChars=[],this._validator=new r(this)}onPatternEnter(){this._controlChars=[]}onCharacter(t,s,n){n>=0&&n<=31&&(this._source.codePointAt(t)===n||this._source.slice(t,s).startsWith("\\x")||this._source.slice(t,s).startsWith("\\u"))&&this._controlChars.push(`\\x${`0${n.toString(16)}`.slice(-2)}`)}collectControlChars(t,s){let n=typeof s=="string"&&s.includes("u"),i=typeof s=="string"&&s.includes("v");this._controlChars=[],this._source=t;try{this._validator.validatePattern(t,void 0,void 0,{unicode:n,unicodeSets:i})}catch{}return this._controlChars}};return Q0={meta:{type:"problem",docs:{description:"Disallow control characters in regular expressions",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-control-regex"},schema:[],messages:{unexpected:"Unexpected control character(s) in regular expression: {{controlChars}}."}},create(t){function s(n){if(n.regex)return n.regex;if(typeof n.value=="string"&&(n.parent.type==="NewExpression"||n.parent.type==="CallExpression")&&n.parent.callee.type==="Identifier"&&n.parent.callee.name==="RegExp"&&n.parent.arguments[0]===n){let i=n.value,a=n.parent.arguments.length>1&&n.parent.arguments[1].type==="Literal"&&typeof n.parent.arguments[1].value=="string"?n.parent.arguments[1].value:null;return{pattern:i,flags:a}}return null}return{Literal(n){let i=s(n);if(i){let{pattern:a,flags:l}=i,o=e.collectControlChars(a,l);o.length>0&&t.report({node:n,messageId:"unexpected",data:{controlChars:o.join(", ")}})}}}}},Q0}var U0,R_;function Y7(){return R_||(R_=1,U0={meta:{type:"problem",docs:{description:"Disallow the use of `debugger`",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-debugger"},fixable:null,schema:[],messages:{unexpected:"Unexpected 'debugger' statement."}},create(r){return{DebuggerStatement(e){r.report({node:e,messageId:"unexpected"})}}}}),U0}var V0,F_;function H7(){return F_||(F_=1,V0={meta:{type:"suggestion",docs:{description:"Disallow deleting variables",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-delete-var"},schema:[],messages:{unexpected:"Variables should not be deleted."}},create(r){return{UnaryExpression(e){e.operator==="delete"&&e.argument.type==="Identifier"&&r.report({node:e,messageId:"unexpected"})}}}}),V0}var W0,B_;function K7(){return B_||(B_=1,W0={meta:{type:"suggestion",docs:{description:"Disallow equal signs explicitly at the beginning of regular expressions",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-div-regex"},fixable:"code",schema:[],messages:{unexpected:"A regular expression literal can be confused with '/='."}},create(r){let e=r.sourceCode;return{Literal(t){let s=e.getFirstToken(t);s.type==="RegularExpression"&&s.value[1]==="="&&r.report({node:t,messageId:"unexpected",fix(n){return n.replaceTextRange([s.range[0]+1,s.range[0]+2],"[=]")}})}}}}),W0}var z0,N_;function J7(){return N_||(N_=1,z0={meta:{type:"problem",docs:{description:"Disallow duplicate arguments in `function` definitions",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-dupe-args"},schema:[],messages:{unexpected:"Duplicate param '{{name}}'."}},create(r){let e=r.sourceCode;function t(n){return n.type==="Parameter"}function s(n){let i=e.getDeclaredVariables(n);for(let a=0;a=2&&r.report({node:n,messageId:"unexpected",data:{name:l.name}})}}return{FunctionDeclaration:s,FunctionExpression:s}}}),z0}var Z0,L_;function eW(){if(L_)return Z0;L_=1;let r=Pe();return Z0={meta:{type:"problem",docs:{description:"Disallow duplicate class members",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-dupe-class-members"},schema:[],messages:{unexpected:"Duplicate name '{{name}}'."}},create(e){let t=[];function s(n,i){let a=t.at(-1),l=`$${n}`;return a[l]||(a[l]={nonStatic:{init:!1,get:!1,set:!1},static:{init:!1,get:!1,set:!1}}),a[l][i?"static":"nonStatic"]}return{Program(){t=[]},ClassBody(){t.push(Object.create(null))},"ClassBody:exit"(){t.pop()},"MethodDefinition, PropertyDefinition"(n){let i=r.getStaticPropertyName(n),a=n.type==="MethodDefinition"?n.kind:"field";if(i===null||a==="constructor")return;let l=s(i,n.static),o;a==="get"?(o=l.init||l.get,l.get=!0):a==="set"?(o=l.init||l.set,l.set=!0):(o=l.init||l.get||l.set,l.init=!0),o&&e.report({node:n,messageId:"unexpected",data:{name:i}})}}}},Z0}var G0,$_;function tW(){if($_)return G0;$_=1;let r=Pe();function e(i,a,l){return a.every(o=>l.some(u=>i(o,u)))}function t(i,a){return a.type==="LogicalExpression"&&a.operator===i?[...t(i,a.left),...t(i,a.right)]:[a]}let s=t.bind(null,"||"),n=t.bind(null,"&&");return G0={meta:{type:"problem",docs:{description:"Disallow duplicate conditions in if-else-if chains",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-dupe-else-if"},schema:[],messages:{unexpected:"This branch can never execute. Its condition is a duplicate or covered by previous conditions in the if-else-if chain."}},create(i){let a=i.sourceCode;function l(u,c){return u.type!==c.type?!1:u.type==="LogicalExpression"&&(u.operator==="||"||u.operator==="&&")&&u.operator===c.operator?l(u.left,c.left)&&l(u.right,c.right)||l(u.left,c.right)&&l(u.right,c.left):r.equalTokens(u,c,a)}let o=e.bind(null,l);return{IfStatement(u){let c=u.test,p=c.type==="LogicalExpression"&&c.operator==="&&"?[c,...n(c)]:[c],h=u,f=p.map(d=>s(d).map(n));for(;h.parent&&h.parent.type==="IfStatement"&&h.parent.alternate===h;){h=h.parent;let d=s(h.test).map(n);if(f=f.map(m=>m.filter(g=>!d.some(y=>o(y,g)))),f.some(m=>m.length===0)){i.report({node:c,messageId:"unexpected"});break}}}}}},G0}var X0,M_;function rW(){if(M_)return X0;M_=1;let r=Pe(),e=/^(?:init|get)$/u,t=/^(?:init|set)$/u;class s{constructor(i,a){this.upper=i,this.node=a,this.properties=new Map}getPropertyInfo(i){let a=r.getStaticPropertyName(i);return this.properties.has(a)||this.properties.set(a,{get:!1,set:!1}),this.properties.get(a)}isPropertyDefined(i){let a=this.getPropertyInfo(i);return e.test(i.kind)&&a.get||t.test(i.kind)&&a.set}defineProperty(i){let a=this.getPropertyInfo(i);e.test(i.kind)&&(a.get=!0),t.test(i.kind)&&(a.set=!0)}}return X0={meta:{type:"problem",docs:{description:"Disallow duplicate keys in object literals",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-dupe-keys"},schema:[],messages:{unexpected:"Duplicate key '{{name}}'."}},create(n){let i=null;return{ObjectExpression(a){i=new s(i,a)},"ObjectExpression:exit"(){i=i.upper},Property(a){let l=r.getStaticPropertyName(a);a.parent.type==="ObjectExpression"&&l!==null&&(i.isPropertyDefined(a)&&n.report({node:i.node,loc:a.key.loc,messageId:"unexpected",data:{name:l}}),i.defineProperty(a))}}}},X0}var Y0,j_;function nW(){if(j_)return Y0;j_=1;let r=Pe();return Y0={meta:{type:"problem",docs:{description:"Disallow duplicate case labels",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-duplicate-case"},schema:[],messages:{unexpected:"Duplicate case label."}},create(e){let t=e.sourceCode;function s(n,i){return n.type!==i.type?!1:r.equalTokens(n,i,t)}return{SwitchStatement(n){let i=[];for(let a of n.cases)if(a.test){let l=a.test;i.some(o=>s(o,l))?e.report({node:a,messageId:"unexpected"}):i.push(l)}}}}},Y0}var H0,q_;function sW(){if(q_)return H0;q_=1;let r=["ImportSpecifier","ExportSpecifier"],e=["ImportNamespaceSpecifier","ExportNamespaceSpecifier"];function t(c,p){return(p==="named"?r:e).includes(c)}function s(c){if(c.specifiers&&c.specifiers.length>0){let p=c.specifiers,h=p.findIndex(({type:d})=>t(d,"named")||t(d,"namespace")),f=h>-1?h:0;return p[f].type}return c.type==="ExportAllDeclaration"?c.exported?"ExportNamespaceSpecifier":"ExportAll":"SideEffectImport"}function n(c,p){let h=s(c),f=s(p);return!(h==="ExportAll"&&f!=="ExportAll"&&f!=="SideEffectImport"||h!=="ExportAll"&&h!=="SideEffectImport"&&f==="ExportAll"||t(h,"namespace")&&t(f,"named")||t(f,"namespace")&&t(h,"named"))}function i(c,p){let h=0;for(;hh===p).map(({node:h})=>h)}function l(c){return c&&c.source&&c.source.value?c.source.value.trim():""}function o(c,p,h,f,d){let m=l(p);if(h.has(m)){let g=h.get(m),y=[],v=a(g,"import"),x;d&&(x=a(g,"export")),f==="import"?(i(p,v)&&y.push("import"),d&&i(p,x)&&y.push("importAs")):f==="export"&&(i(p,x)&&y.push("export"),i(p,v)&&y.push("exportAs")),y.forEach(S=>c.report({node:p,messageId:S,data:{module:m}}))}}function u(c,p,h,f){return function(d){let m=l(d);if(m){o(c,d,p,h,f);let g={node:d,declarationType:h},y=[g];p.has(m)&&(y=[...p.get(m),g]),p.set(m,y)}}}return H0={meta:{type:"problem",docs:{description:"Disallow duplicate module imports",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-duplicate-imports"},schema:[{type:"object",properties:{includeExports:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{import:"'{{module}}' import is duplicated.",importAs:"'{{module}}' import is duplicated as export.",export:"'{{module}}' export is duplicated.",exportAs:"'{{module}}' export is duplicated as import."}},create(c){let p=(c.options[0]||{}).includeExports,h=new Map,f={ImportDeclaration:u(c,h,"import",p)};return p&&(f.ExportNamedDeclaration=u(c,h,"export",p),f.ExportAllDeclaration=u(c,h,"export",p)),f}},H0}var K0,Q_;function Zo(){if(Q_)return K0;Q_=1;let r=Pe();class e{constructor(s,n){this.fixer=s,this.sourceCode=n,this.retainedRange=null}retainRange(s){return this.retainedRange=s,this}retainEnclosingFunction(s){let n=r.getUpperFunction(s);return this.retainRange(n?n.range:this.sourceCode.ast.range)}retainSurroundingTokens(s){let n=this.sourceCode.getTokenBefore(s)||s,i=this.sourceCode.getTokenAfter(s)||s;return this.retainRange([n.range[0],i.range[1]])}replaceTextRange(s,n){let i;return this.retainedRange?i=[Math.min(this.retainedRange[0],s[0]),Math.max(this.retainedRange[1],s[1])]:i=s,this.fixer.replaceTextRange(i,this.sourceCode.text.slice(i[0],s[0])+n+this.sourceCode.text.slice(s[1],i[1]))}remove(s){return this.replaceTextRange(s.range,"")}}return K0=e,K0}var J0,U_;function iW(){if(U_)return J0;U_=1;let r=Pe(),e=Zo();return J0={meta:{type:"suggestion",docs:{description:"Disallow `else` blocks after `return` statements in `if` statements",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-else-return"},schema:[{type:"object",properties:{allowElseIf:{type:"boolean",default:!0}},additionalProperties:!1}],fixable:"code",messages:{unexpected:"Unnecessary 'else' after 'return'."}},create(t){let s=t.sourceCode;function n(g,y){if(g.length===0)return!0;let v=y.variableScope;if(y.variables.filter(({defs:w})=>w.length>0).some(({name:w})=>g.includes(w))||y!==v&&y.upper.type==="catch"&&y.upper.variables.some(({name:w})=>g.includes(w))||y.variables.filter(({defs:w,references:O})=>w.length===0&&O.length>0).some(({name:w})=>g.includes(w))||y.through.some(w=>g.includes(w.identifier.name)))return!1;if(y!==v){let w=y.block.range;if(v.variables.filter(({name:C})=>g.includes(C)).some(C=>C.defs.some(({node:{range:E}})=>w[0]<=E[0]&&E[1]<=w[1])))return!1}return!0}function i(g,y){if(g.type==="FunctionDeclaration")return!1;if(g.type!=="BlockStatement")return!0;let v=y.childScopes.find(({block:S})=>S===g);if(!v)return!0;let x=v.variables.map(({name:S})=>S);return n(x,y)}function a(g){let y=s.getScope(g.parent);t.report({node:g,messageId:"unexpected",fix(v){if(!i(g,y))return null;let x=s.getFirstToken(g),S=s.getTokenBefore(x),w=s.getText(g),O=s.getTokenBefore(S),C,E;x.type==="Punctuator"&&x.value==="{"?E=s.getTokenAfter(x):E=x;let k=g.parent.consequent.type!=="BlockStatement"&&O.value!==";",A=/^[([/+`-]/u.test(E.value);if(k&&A)return null;let D=s.getLastToken(g),_=s.getTokenBefore(D);if(_.value!==";"){let B=s.getTokenAfter(D),T=B&&/^[([/+`-]/u.test(B.value),R=B&&B.loc.start.line===_.loc.start.line;if(T||R&&B.value!=="}")return null}return x.type==="Punctuator"&&x.value==="{"?C=w.slice(1,-1):C=w,new e(v,s).retainEnclosingFunction(g).replaceTextRange([S.range[0],g.range[1]],C)}})}function l(g){return g.type==="ReturnStatement"}function o(g){if(g.type==="BlockStatement"){let y=g.body,v=y.at(-1);return v&&l(v)}return l(g)}function u(g){return g.alternate&&g.consequent}function c(g){return g.type==="IfStatement"&&u(g)&&o(g.alternate)&&o(g.consequent)}function p(g){return l(g)||c(g)}function h(g){return g.type==="BlockStatement"?g.body.some(p):p(g)}function f(g){let y=g.parent;if(!r.STATEMENT_LIST_PARENTS.has(y.type))return;let v=[],x;for(let S=g;S.type==="IfStatement";S=S.alternate){if(!S.alternate)return;v.push(S.consequent),x=S.alternate}v.every(h)&&a(x)}function d(g){let y=g.parent;if(!r.STATEMENT_LIST_PARENTS.has(y.type))return;let v=g.alternate;v&&h(g.consequent)&&a(v)}return{"IfStatement:exit":!(t.options[0]&&t.options[0].allowElseIf===!1)?f:d}}},J0}var ey,V_;function aW(){if(V_)return ey;V_=1;let r=Pe();return ey={meta:{hasSuggestions:!0,type:"suggestion",docs:{description:"Disallow empty block statements",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-empty"},schema:[{type:"object",properties:{allowEmptyCatch:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{unexpected:"Empty {{type}} statement.",suggestComment:"Add comment inside empty {{type}} statement."}},create(e){let t=e.options[0]||{},s=t.allowEmptyCatch||!1,n=e.sourceCode;return{BlockStatement(i){i.body.length===0&&(r.isFunction(i.parent)||s&&i.parent.type==="CatchClause"||n.getCommentsInside(i).length>0||e.report({node:i,messageId:"unexpected",data:{type:"block"},suggest:[{messageId:"suggestComment",data:{type:"block"},fix(a){let l=[i.range[0]+1,i.range[1]-1];return a.replaceTextRange(l," /* empty */ ")}}]}))},SwitchStatement(i){(typeof i.cases>"u"||i.cases.length===0)&&e.report({node:i,messageId:"unexpected",data:{type:"switch"}})}}}},ey}var ty,W_;function oW(){if(W_)return ty;W_=1;let{RegExpParser:r,visitRegExpAST:e}=Gn(),t=new r,s=/\[\]/u;return ty={meta:{type:"problem",docs:{description:"Disallow empty character classes in regular expressions",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-empty-character-class"},schema:[],messages:{unexpected:"Empty class."}},create(n){return{"Literal[regex]"(i){let{pattern:a,flags:l}=i.regex;if(!s.test(a))return;let o;try{o=t.parsePattern(a,0,a.length,{unicode:l.includes("u"),unicodeSets:l.includes("v")})}catch{return}e(o,{onCharacterClassEnter(u){!u.negate&&u.elements.length===0&&n.report({node:i,messageId:"unexpected"})}})}}}},ty}var ry,z_;function lW(){if(z_)return ry;z_=1;let r=Pe(),e=Object.freeze(["functions","arrowFunctions","generatorFunctions","methods","generatorMethods","getters","setters","constructors","asyncFunctions","asyncMethods"]);function t(s){let n=s.parent,i;if(s.type==="ArrowFunctionExpression")return"arrowFunctions";if(n.type==="Property"){if(n.kind==="get")return"getters";if(n.kind==="set")return"setters";i=n.method?"methods":"functions"}else if(n.type==="MethodDefinition"){if(n.kind==="get")return"getters";if(n.kind==="set")return"setters";if(n.kind==="constructor")return"constructors";i="methods"}else i="functions";let a;if(s.generator)a="generator";else if(s.async)a="async";else return i;return a+i[0].toUpperCase()+i.slice(1)}return ry={meta:{type:"suggestion",docs:{description:"Disallow empty functions",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-empty-function"},schema:[{type:"object",properties:{allow:{type:"array",items:{enum:e},uniqueItems:!0}},additionalProperties:!1}],messages:{unexpected:"Unexpected empty {{name}}."}},create(s){let i=(s.options[0]||{}).allow||[],a=s.sourceCode;function l(o){let u=t(o),c=r.getFunctionNameWithKind(o),p=a.getTokens(o.body,{includeComments:!0,filter:r.isCommentToken});!i.includes(u)&&o.body.type==="BlockStatement"&&o.body.body.length===0&&p.length===0&&s.report({node:o,loc:o.body.loc,messageId:"unexpected",data:{name:c}})}return{ArrowFunctionExpression:l,FunctionDeclaration:l,FunctionExpression:l}}},ry}var ny,Z_;function uW(){if(Z_)return ny;Z_=1;let r=Pe();return ny={meta:{type:"problem",docs:{description:"Disallow empty destructuring patterns",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-empty-pattern"},schema:[{type:"object",properties:{allowObjectPatternsAsParameters:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{unexpected:"Unexpected empty {{type}} pattern."}},create(e){let t=e.options[0]||{},s=t.allowObjectPatternsAsParameters||!1;return{ObjectPattern(n){n.properties.length>0||s&&(r.isFunction(n.parent)||n.parent.type==="AssignmentPattern"&&r.isFunction(n.parent.parent)&&n.parent.right.type==="ObjectExpression"&&n.parent.right.properties.length===0)||e.report({node:n,messageId:"unexpected",data:{type:"object"}})},ArrayPattern(n){n.elements.length===0&&e.report({node:n,messageId:"unexpected",data:{type:"array"}})}}}},ny}var sy,G_;function cW(){return G_||(G_=1,sy={meta:{type:"suggestion",docs:{description:"Disallow empty static blocks",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-empty-static-block"},schema:[],messages:{unexpected:"Unexpected empty static block."}},create(r){let e=r.sourceCode;return{StaticBlock(t){if(t.body.length===0){let s=e.getLastToken(t);e.getCommentsBefore(s).length===0&&r.report({node:t,messageId:"unexpected"})}}}}}),sy}var iy,X_;function fW(){return X_||(X_=1,iy={meta:{type:"suggestion",docs:{description:"Disallow `null` comparisons without type-checking operators",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-eq-null"},schema:[],messages:{unexpected:"Use '===' to compare with null."}},create(r){return{BinaryExpression(e){let t=e.operator==="=="||e.operator==="!=";(e.right.type==="Literal"&&e.right.raw==="null"&&t||e.left.type==="Literal"&&e.left.raw==="null"&&t)&&r.report({node:e,messageId:"unexpected"})}}}}),iy}var ay,Y_;function pW(){if(Y_)return ay;Y_=1;let r=Pe(),e=Object.freeze(["global","window","globalThis"]);function t(s,n){return r.isSpecificMemberAccess(s,null,n)}return ay={meta:{type:"suggestion",docs:{description:"Disallow the use of `eval()`",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-eval"},schema:[{type:"object",properties:{allowIndirect:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{unexpected:"eval can be harmful."}},create(s){let n=!!(s.options[0]&&s.options[0].allowIndirect),i=s.sourceCode,a=null;function l(h){let f=i.getScope(h).isStrict;a={upper:a,node:h,strict:f,isTopLevelOfScript:!1,defaultThis:!1,initialized:f}}function o(){a=a.upper}function u(h){let f=h.parent,d=h.type==="MemberExpression"?h.property:h,m=f.type==="CallExpression"&&f.callee===h?f:h;s.report({node:m,loc:d.loc,messageId:"unexpected"})}function c(h){for(let f=0;f *.value":l,"PropertyDefinition > *.value:exit":o,StaticBlock:l,"StaticBlock:exit":o,ThisExpression(h){t(h.parent,"eval")&&(a.initialized||(a.initialized=!0,a.defaultThis=r.isDefaultThisBinding(a.node,i)),(a.isTopLevelOfScript||!a.strict&&a.defaultThis)&&u(h.parent))}}}},ay}var oy,H_;function hW(){if(H_)return oy;H_=1;let r=Pe();return oy={meta:{type:"problem",docs:{description:"Disallow reassigning exceptions in `catch` clauses",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-ex-assign"},schema:[],messages:{unexpected:"Do not assign to the exception parameter."}},create(e){let t=e.sourceCode;function s(n){r.getModifyingReferences(n.references).forEach(i=>{e.report({node:i.identifier,messageId:"unexpected"})})}return{CatchClause(n){t.getDeclaredVariables(n).forEach(s)}}}},oy}var ly,K_;function dW(){if(K_)return ly;K_=1;let r=Pe();return ly={meta:{type:"suggestion",docs:{description:"Disallow extending native types",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-extend-native"},schema:[{type:"object",properties:{exceptions:{type:"array",items:{type:"string"},uniqueItems:!0}},additionalProperties:!1}],messages:{unexpected:"{{builtin}} prototype is read only, properties should not be added."}},create(e){let t=e.options[0]||{},s=e.sourceCode,n=new Set(t.exceptions||[]),i=new Set(Object.keys(r.ECMASCRIPT_GLOBALS).filter(p=>p[0].toUpperCase()===p[0]).filter(p=>!n.has(p)));function a(p,h){e.report({node:p,messageId:"unexpected",data:{builtin:h}})}function l(p){return!!(p&&p.parent&&p.parent.type==="MemberExpression"&&p.parent.object===p&&r.getStaticPropertyName(p.parent)==="prototype")}function o(p){return p.parent.type==="MemberExpression"&&p.parent.object===p&&p.parent.parent.type==="AssignmentExpression"&&p.parent.parent.left===p.parent}function u(p){return p.parent.type==="CallExpression"&&p.parent.arguments[0]===p&&r.isSpecificMemberAccess(p.parent.callee,"Object",/^definePropert(?:y|ies)$/u)}function c(p){if(!l(p))return;let h=p.parent.parent.type==="ChainExpression"?p.parent.parent:p.parent;o(h)?a(h.parent.parent,p.name):u(h)&&a(h.parent,p.name)}return{"Program:exit"(p){let h=s.getScope(p);i.forEach(f=>{let d=h.set.get(f);d&&d.references&&d.references.map(m=>m.identifier).forEach(c)})}}}},ly}var uy,J_;function mW(){if(J_)return uy;J_=1;let r=Pe(),e=new Set(["Literal","Identifier","ThisExpression","FunctionExpression"]);return uy={meta:{type:"suggestion",docs:{description:"Disallow unnecessary calls to `.bind()`",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-extra-bind"},schema:[],fixable:"code",messages:{unexpected:"The function binding is unnecessary."}},create(t){let s=t.sourceCode,n=null;function i(h){return e.has(h.type)}function a(h){let f=h.parent,d=f.parent.type==="ChainExpression"?f.parent.parent:f.parent;t.report({node:d,messageId:"unexpected",loc:f.property.loc,fix(m){if(!i(d.arguments[0]))return null;let g=[[s.getTokenAfter(f.object,r.isNotClosingParenToken),s.getLastToken(f)],[s.getTokenAfter(f,r.isNotClosingParenToken),s.getLastToken(d)]],y=g[0][0],v=g[1][1];return s.commentsExistBetween(y,v)?null:g.map(([x,S])=>m.removeRange([x.range[0],S.range[1]]))}})}function l(h){if(!r.isSpecificMemberAccess(h.parent,null,"bind"))return!1;let f=h.parent.parent.type==="ChainExpression"?h.parent.parent:h.parent;return f.parent.type==="CallExpression"&&f.parent.callee===f&&f.parent.arguments.length===1&&f.parent.arguments[0].type!=="SpreadElement"}function o(h){n={isBound:l(h),thisFound:!1,upper:n}}function u(h){n.isBound&&!n.thisFound&&a(h),n=n.upper}function c(h){l(h)&&a(h)}function p(){n&&(n.thisFound=!0)}return{"ArrowFunctionExpression:exit":c,FunctionDeclaration:o,"FunctionDeclaration:exit":u,FunctionExpression:o,"FunctionExpression:exit":u,ThisExpression:p}}},uy}var cy,eI;function gW(){if(eI)return cy;eI=1;let r=Pe(),e=hr(),t=r.getPrecedence;return cy={meta:{type:"suggestion",docs:{description:"Disallow unnecessary boolean casts",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-extra-boolean-cast"},schema:[{type:"object",properties:{enforceForLogicalOperands:{type:"boolean",default:!1}},additionalProperties:!1}],fixable:"code",messages:{unexpectedCall:"Redundant Boolean call.",unexpectedNegation:"Redundant double negation."}},create(s){let n=s.sourceCode,i=new Set(["IfStatement","DoWhileStatement","WhileStatement","ConditionalExpression","ForStatement"]);function a(f){return(f.type==="CallExpression"||f.type==="NewExpression")&&f.callee.type==="Identifier"&&f.callee.name==="Boolean"}function l(f){return f.type==="LogicalExpression"&&(f.operator==="||"||f.operator==="&&")&&s.options.length&&s.options[0].enforceForLogicalOperands===!0}function o(f){return a(f.parent)&&f===f.parent.arguments[0]||i.has(f.parent.type)&&f===f.parent.test||f.parent.type==="UnaryExpression"&&f.parent.operator==="!"}function u(f){return f.parent.type==="ChainExpression"?u(f.parent):o(f)||l(f.parent)&&u(f.parent)}function c(f){return!!n.getCommentsInside(f).length}function p(f){return e.isParenthesized(1,f,n)}function h(f,d){if(f.parent.type==="ChainExpression")return h(f.parent,d);if(p(f))return!1;let m=f.parent;switch(m.type){case"CallExpression":case"NewExpression":return d.type==="SequenceExpression";case"IfStatement":case"DoWhileStatement":case"WhileStatement":case"ForStatement":return!1;case"ConditionalExpression":return t(d)<=t(m);case"UnaryExpression":return t(d)=Ce||C(G)))}function D(G){return l&&G.test.type==="AssignmentExpression"}function _(G){for(let Ce=G;Ce;Ce=Ce.parent)if(Ce.type==="ReturnStatement"||Ce.type==="ArrowFunctionExpression"&&Ce.body.type!=="BlockStatement")return!0;return!1}function B(G){let Ce=s.getLastToken(G),Ve=s.getTokenBefore(Ce);return G.arguments.length>0||e.isOpeningParenToken(Ve)&&e.isClosingParenToken(Ce)&&G.callee.range[1]0&&wt.test(it[st-1].value))return}}function et(){t.report({node:G,loc:Ce.loc,messageId:"unexpected",fix:U(G)?it=>{let st=s.text.slice(Ce.range[1],Ve.range[0]);return it.replaceTextRange([Ce.range[0],Ve.range[1]],(Q(G)?" ":"")+st+(I(G)?" ":""))}:null})}if(x){x.reports.push({node:G,finishReport:et});return}et()}function ae(G){A(G.argument,i(G))&&V(G.argument)}function se(G){let Ce=G.object,Ve=G.object.type;for(;Ve==="MemberExpression";)Ce=Ce.object,Ve=Ce.type;return Ve==="CallExpression"}function xe(G){let Ce=G.callee;A(Ce,i(G))&&(k(Ce)||!(N(G)||Ce.type==="NewExpression"&&!B(Ce)&&!(G.type==="NewExpression"&&!B(G))||G.type==="NewExpression"&&Ce.type==="MemberExpression"&&se(Ce)||!G.optional&&Ce.type==="ChainExpression"))&&V(G.callee),G.arguments.filter(Ve=>A(Ve,y)).forEach(V)}function H(G){let Ce=i(G),Ve=i(G.left),et=i(G.right),it=G.operator==="**",st=u&&(G.left.type==="BinaryExpression"||G.left.type==="LogicalExpression"),wt=u&&(G.right.type==="BinaryExpression"||G.right.type==="LogicalExpression");!st&&E(G.left)&&(!(["AwaitExpression","UnaryExpression"].includes(G.left.type)&&it)&&!e.isMixedLogicalAndCoalesceExpressions(G.left,G)&&(Ve>Ce||Ve===Ce&&!it)||C(G.left))&&V(G.left),!wt&&E(G.right)&&(!e.isMixedLogicalAndCoalesceExpressions(G.right,G)&&(et>Ce||et===Ce&&it)||C(G.right))&&V(G.right)}function he(G){if(!G.superClass)return;(i(G.superClass)>v?E(G.superClass):k(G.superClass))&&V(G.superClass)}function $(G){A(G.argument,y)&&V(G.argument)}function pe(G){let Ce=O(G)?s.getTokenBefore(G):s.getFirstToken(G),Ve=s.getTokenAfter(Ce,e.isNotOpeningParenToken),et=Ve?s.getTokenAfter(Ve):null,it=Ve?s.getTokenAfter(Ve,e.isNotClosingParenToken):null;e.isOpeningParenToken(Ce)&&(e.isOpeningBraceToken(Ve)||Ve.type==="Keyword"&&(Ve.value==="function"||Ve.value==="class"||Ve.value==="let"&&it&&(e.isOpeningBracketToken(it)||it.type==="Identifier"))||Ve&&Ve.type==="Identifier"&&Ve.value==="async"&&et&&et.type==="Keyword"&&et.value==="function")&&n.add(Ve),(G.parent.type==="ExportDefaultDeclaration"?A(G,y):E(G))&&V(G)}function K(G,Ce){let Ve=[G],et=G;for(;et!==Ce;){if(et=et.parent,et===null)throw new Error("Nodes are not in the ancestor-descendant relationship.");Ve.push(et)}return Ve}function le(G,Ce){return K(Ce,G).reverse()}function be(G,Ce){switch(G.type){case"ArrayExpression":case"ArrayPattern":case"BlockStatement":case"ObjectExpression":case"ObjectPattern":case"TemplateLiteral":return!0;case"ArrowFunctionExpression":case"FunctionExpression":return G.params.includes(Ce);case"CallExpression":case"NewExpression":return G.arguments.includes(Ce);case"MemberExpression":return G.computed&&G.property===Ce;case"ConditionalExpression":return G.consequent===Ce;default:return!1}}function Le(){x={upper:x,inExpressionNodes:[],reports:[]}}function qe(){let{upper:G,inExpressionNodes:Ce,reports:Ve}=x;G?(G.inExpressionNodes.push(...Ce),G.reports.push(...Ve)):Ve.forEach(({finishReport:et})=>et()),x=G}function rt(G){return x.reports.some(Ce=>Ce.node===G)}function ht(G){x.reports=x.reports.filter(Ce=>Ce.node!==G)}function pt(G){return G.type==="MemberExpression"?G.parent.type==="NewExpression"&&G.parent.callee===G?!0:G.parent.object===G&&pt(G.parent):!1}function Et({left:G,operator:Ce,right:Ve}){if(G.type==="Identifier"&&["=","&&=","||=","??="].includes(Ce)){let et=Ve.type;if(et==="ArrowFunctionExpression"||(et==="FunctionExpression"||et==="ClassExpression")&&!Ve.id)return!0}return!1}return{ArrayExpression(G){G.elements.filter(Ce=>Ce&&A(Ce,y)).forEach(V)},ArrayPattern(G){G.elements.filter(Ce=>F(Ce)&&E(Ce)).forEach(V)},ArrowFunctionExpression(G){if(!R(G)&&!(G.body.type==="ConditionalExpression"&&h)&&G.body.type!=="BlockStatement"){let Ce=s.getFirstToken(G.body,e.isNotOpeningParenToken),Ve=s.getTokenBefore(Ce);e.isOpeningParenToken(Ve)&&e.isOpeningBraceToken(Ce)&&n.add(Ce),A(G.body,y)&&V(G.body)}},AssignmentExpression(G){F(G.left)&&E(G.left)&&(!Et(G)||C(G.left))&&V(G.left),!R(G)&&A(G.right,i(G))&&V(G.right)},BinaryExpression(G){x&&G.operator==="in"&&x.inExpressionNodes.push(G),H(G)},CallExpression:xe,ConditionalExpression(G){if(R(G))return;let Ce=new Set(["BinaryExpression","LogicalExpression"]);!(o&&Ce.has(G.test.type))&&!D(G)&&A(G.test,i({type:"LogicalExpression",operator:"||"}))&&V(G.test),!(o&&Ce.has(G.consequent.type))&&A(G.consequent,y)&&V(G.consequent),!(o&&Ce.has(G.alternate.type))&&A(G.alternate,y)&&V(G.alternate)},DoWhileStatement(G){E(G.test)&&!D(G)&&V(G.test)},ExportDefaultDeclaration:G=>pe(G.declaration),ExpressionStatement:G=>pe(G.expression),ForInStatement(G){if(G.left.type!=="VariableDeclaration"){let Ce=s.getFirstToken(G.left,e.isNotOpeningParenToken);Ce.value==="let"&&e.isOpeningBracketToken(s.getTokenAfter(Ce,e.isNotClosingParenToken))&&n.add(Ce)}E(G.left)&&V(G.left),E(G.right)&&V(G.right)},ForOfStatement(G){if(G.left.type!=="VariableDeclaration"){let Ce=s.getFirstToken(G.left,e.isNotOpeningParenToken);Ce.value==="let"&&n.add(Ce)}E(G.left)&&V(G.left),A(G.right,y)&&V(G.right)},ForStatement(G){if(G.test&&E(G.test)&&!D(G)&&V(G.test),G.update&&E(G.update)&&V(G.update),G.init){if(G.init.type!=="VariableDeclaration"){let Ce=s.getFirstToken(G.init,e.isNotOpeningParenToken);Ce.value==="let"&&e.isOpeningBracketToken(s.getTokenAfter(Ce,e.isNotClosingParenToken))&&n.add(Ce)}Le(),E(G.init)&&V(G.init)}},"ForStatement > *.init:exit"(G){x.reports.length&&x.inExpressionNodes.forEach(Ce=>{let Ve=le(G,Ce),et;for(let it=0;it=i(G)&&(G.computed||!(e.isDecimalInteger(G.object)||G.object.type==="Literal"&&G.object.regex))&&V(G.object),Ve&&G.object.type==="CallExpression"&&V(G.object),Ve&&!d&&G.object.type==="NewExpression"&&B(G.object)&&V(G.object),Ve&&G.optional&&G.object.type==="ChainExpression"&&V(G.object),G.computed&&E(G.property)&&V(G.property)},"MethodDefinition[computed=true]"(G){A(G.key,y)&&V(G.key)},NewExpression:xe,ObjectExpression(G){G.properties.filter(Ce=>Ce.value&&A(Ce.value,y)).forEach(Ce=>V(Ce.value))},ObjectPattern(G){G.properties.filter(Ce=>{let Ve=Ce.value;return F(Ve)&&E(Ve)}).forEach(Ce=>V(Ce.value))},Property(G){if(G.computed){let{key:Ce}=G;Ce&&A(Ce,y)&&V(Ce)}},PropertyDefinition(G){G.computed&&A(G.key,y)&&V(G.key),G.value&&A(G.value,y)&&V(G.value)},RestElement(G){let Ce=G.argument;F(Ce)&&E(Ce)&&V(Ce)},ReturnStatement(G){let Ce=s.getFirstToken(G);R(G)||G.argument&&j(Ce,G.argument)&&!(G.argument.type==="Literal"&&G.argument.regex)&&V(G.argument)},SequenceExpression(G){let Ce=i(G);G.expressions.filter(Ve=>A(Ve,Ce)).forEach(V)},SwitchCase(G){G.test&&E(G.test)&&V(G.test)},SwitchStatement(G){E(G.discriminant)&&V(G.discriminant)},ThrowStatement(G){let Ce=s.getFirstToken(G);j(Ce,G.argument)&&V(G.argument)},UnaryExpression:ae,UpdateExpression(G){if(G.prefix)ae(G);else{let{argument:Ce}=G,Ve=s.getLastToken(G);Ce.loc.end.line===Ve.loc.start.line?ae(G):k(Ce)&&V(Ce)}},AwaitExpression:ae,VariableDeclarator(G){G.init&&A(G.init,y)&&!(G.init.type==="Literal"&&G.init.regex)&&V(G.init)},WhileStatement(G){E(G.test)&&!D(G)&&V(G.test)},WithStatement(G){E(G.object)&&V(G.object)},YieldExpression(G){if(G.argument){let Ce=s.getFirstToken(G);(i(G.argument)>=i(G)&&j(Ce,G.argument)||k(G.argument))&&V(G.argument)}},ClassDeclaration:he,ClassExpression:he,SpreadElement:$,SpreadProperty:$,ExperimentalSpreadProperty:$,TemplateLiteral(G){G.expressions.filter(Ce=>Ce&&E(Ce)).forEach(V)},AssignmentPattern(G){let{left:Ce,right:Ve}=G;F(Ce)&&E(Ce)&&V(Ce),Ve&&A(Ve,y)&&V(Ve)}}}},py}var hy,nI;function vW(){if(nI)return hy;nI=1;let r=Zo(),e=Pe();return hy={meta:{deprecated:!0,replacedBy:[],type:"suggestion",docs:{description:"Disallow unnecessary semicolons",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-extra-semi"},fixable:"code",schema:[],messages:{unexpected:"Unnecessary semicolon."}},create(t){let s=t.sourceCode;function n(l){let o=s.getTokenAfter(l);if(!o||o.type!=="String")return!0;let u=s.getNodeByRangeIndex(o.range[0]);return!e.isTopLevelExpressionStatement(u.parent)}function i(l){t.report({node:l,messageId:"unexpected",fix:n(l)?o=>new r(o,t.sourceCode).retainSurroundingTokens(l).remove(l):null})}function a(l){for(let o=l;o.type==="Punctuator"&&!e.isClosingBraceToken(o);o=s.getTokenAfter(o))e.isSemicolonToken(o)&&i(o)}return{EmptyStatement(l){let o=l.parent;["ForStatement","ForInStatement","ForOfStatement","WhileStatement","DoWhileStatement","IfStatement","LabeledStatement","WithStatement"].includes(o.type)||i(l)},ClassBody(l){a(s.getFirstToken(l,1))},"MethodDefinition, PropertyDefinition, StaticBlock"(l){a(s.getTokenAfter(l))}}}},hy}var dy,sI;function xW(){if(sI)return dy;sI=1;let{directivesPattern:r}=Oc(),e=/falls?\s?through/iu;function t(a){for(let l of a)if(l.reachable)return!0;return!1}function s(a,l){return l.test(a)&&!r.test(a.trim())}function n(a,l,o,u){let c=o.sourceCode;if(a.consequent.length===1&&a.consequent[0].type==="BlockStatement"){let h=c.getLastToken(a.consequent[0]),f=c.getCommentsBefore(h).pop();if(f&&s(f.value,u))return f}let p=c.getCommentsBefore(l).pop();return p&&s(p.value,u)?p:null}function i(a,l){return l.loc.start.line>a.loc.end.line+1}return dy={meta:{type:"problem",docs:{description:"Disallow fallthrough of `case` statements",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-fallthrough"},schema:[{type:"object",properties:{commentPattern:{type:"string",default:""},allowEmptyCase:{type:"boolean",default:!1},reportUnusedFallthroughComment:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{unusedFallthroughComment:"Found a comment that would permit fallthrough, but case cannot fall through.",case:"Expected a 'break' statement before 'case'.",default:"Expected a 'break' statement before 'default'."}},create(a){let l=a.options[0]||{},o=[],u=new Set,c=a.sourceCode,p=l.allowEmptyCase||!1,h=l.reportUnusedFallthroughComment||!1,f=null,d=null;return l.commentPattern?d=new RegExp(l.commentPattern,"u"):d=e,{onCodePathStart(){o.push(u),u=new Set},onCodePathEnd(){u=o.pop()},onUnreachableCodePathSegmentStart(m){u.add(m)},onUnreachableCodePathSegmentEnd(m){u.delete(m)},onCodePathSegmentStart(m){u.add(m)},onCodePathSegmentEnd(m){u.delete(m)},SwitchCase(m){if(f&&f.node.parent===m.parent){let g=n(f.node,m,a,d);f.isFallthrough&&!g?a.report({messageId:m.test?"case":"default",node:m}):h&&!f.isSwitchExitReachable&&g&&a.report({messageId:"unusedFallthroughComment",node:g})}f=null},"SwitchCase:exit"(m){let g=c.getTokenAfter(m),y=t(u),v=y&&(m.consequent.length>0||!p&&i(m,g))&&m.parent.cases.at(-1)!==m;f={node:m,isSwitchExitReachable:y,isFallthrough:v}}}}},dy}var my,iI;function OW(){if(iI)return my;iI=1;let r=Pe();return my={meta:{deprecated:!0,replacedBy:[],type:"suggestion",docs:{description:"Disallow leading or trailing decimal points in numeric literals",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-floating-decimal"},schema:[],fixable:"code",messages:{leading:"A leading decimal point can be confused with a dot.",trailing:"A trailing decimal point can be confused with a dot."}},create(e){let t=e.sourceCode;return{Literal(s){typeof s.value=="number"&&(s.raw.startsWith(".")&&e.report({node:s,messageId:"leading",fix(n){let i=t.getTokenBefore(s),a=i&&i.range[1]===s.range[0]&&!r.canTokensBeAdjacent(i,`0${s.raw}`);return n.insertTextBefore(s,a?" 0":"0")}}),s.raw.indexOf(".")===s.raw.length-1&&e.report({node:s,messageId:"trailing",fix:n=>n.insertTextAfter(s,"0")}))}}}},my}var gy,aI;function SW(){if(aI)return gy;aI=1;let r=Pe();return gy={meta:{type:"problem",docs:{description:"Disallow reassigning `function` declarations",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-func-assign"},schema:[],messages:{isAFunction:"'{{name}}' is a function."}},create(e){let t=e.sourceCode;function s(a){r.getModifyingReferences(a).forEach(l=>{e.report({node:l.identifier,messageId:"isAFunction",data:{name:l.identifier.name}})})}function n(a){a.defs[0].type==="FunctionName"&&s(a.references)}function i(a){t.getDeclaredVariables(a).forEach(n)}return{FunctionDeclaration:i,FunctionExpression:i}}},gy}var yy,oI;function EW(){return oI||(oI=1,yy={meta:{type:"suggestion",docs:{description:"Disallow assignments to native objects or read-only global variables",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-global-assign"},schema:[{type:"object",properties:{exceptions:{type:"array",items:{type:"string"},uniqueItems:!0}},additionalProperties:!1}],messages:{globalShouldNotBeModified:"Read-only global '{{name}}' should not be modified."}},create(r){let e=r.options[0],t=r.sourceCode,s=e&&e.exceptions||[];function n(a,l,o){let u=a.identifier;a.init===!1&&a.isWrite()&&(l===0||o[l-1].identifier!==u)&&r.report({node:u,messageId:"globalShouldNotBeModified",data:{name:u.name}})}function i(a){a.writeable===!1&&!s.includes(a.name)&&a.references.forEach(n)}return{Program(a){t.getScope(a).variables.forEach(i)}}}}),yy}var by,lI;function wW(){if(lI)return by;lI=1;let r=Pe(),e=/^(?:i|lastI)ndexOf$/u,t=["~","!!","+","- -","-","*"];function s(m){return{boolean:"boolean"in m?m.boolean:!0,number:"number"in m?m.number:!0,string:"string"in m?m.string:!0,disallowTemplateShorthand:"disallowTemplateShorthand"in m?m.disallowTemplateShorthand:!1,allow:m.allow||[]}}function n(m){return m.operator==="!"&&m.argument.type==="UnaryExpression"&&m.argument.operator==="!"}function i(m){if(m.operator!=="~")return!1;let g=r.skipChainExpression(m.argument);return g.type==="CallExpression"&&r.isSpecificMemberAccess(g.callee,null,e)}function a(m){return m.operator==="*"&&(m.left.type==="Literal"&&m.left.value===1||m.right.type==="Literal"&&m.right.value===1)}function l(m,g){return m.type==="BinaryExpression"&&m.operator==="*"&&m.right.type==="Literal"&&m.right.value===1&&m.parent.type==="BinaryExpression"&&m.parent.operator==="/"&&m.parent.left===m&&!r.isParenthesised(g,m)}function o(m){return m.type==="Literal"&&typeof m.value=="number"||m.type==="CallExpression"&&(m.callee.name==="Number"||m.callee.name==="parseInt"||m.callee.name==="parseFloat")}function u(m){let g=m.left,y=m.right;return y.type!=="BinaryExpression"&&!o(y)?y:g.type!=="BinaryExpression"&&!o(g)?g:null}function c(m){return r.isStringLiteral(m)||m.type==="CallExpression"&&m.callee.type==="Identifier"&&m.callee.name==="String"}function p(m){return r.isStringLiteral(m)&&(m.value===""||m.type==="TemplateLiteral"&&m.quasis.length===1&&m.quasis[0].value.cooked==="")}function h(m){return m.operator==="+"&&(p(m.left)&&!c(m.right)||p(m.right)&&!c(m.left))}function f(m){return m.operator==="+="&&p(m.right)}function d(m){return p(m.left)?m.right:m.left}return by={meta:{hasSuggestions:!0,type:"suggestion",docs:{description:"Disallow shorthand type conversions",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-implicit-coercion"},fixable:"code",schema:[{type:"object",properties:{boolean:{type:"boolean",default:!0},number:{type:"boolean",default:!0},string:{type:"boolean",default:!0},disallowTemplateShorthand:{type:"boolean",default:!1},allow:{type:"array",items:{enum:t},uniqueItems:!0}},additionalProperties:!1}],messages:{implicitCoercion:"Unexpected implicit coercion encountered. Use `{{recommendation}}` instead.",useRecommendation:"Use `{{recommendation}}` instead."}},create(m){let g=s(m.options[0]||{}),y=m.sourceCode;function v(x,S,w,O){function C(E){let k=y.getTokenBefore(x);return k?.range[1]===x.range[0]&&!r.canTokensBeAdjacent(k,S)?E.replaceText(x,` ${S}`):E.replaceText(x,S)}m.report({node:x,messageId:"implicitCoercion",data:{recommendation:S},fix(E){return O?C(E):null},suggest:[{messageId:"useRecommendation",data:{recommendation:S},fix(E){return O||!w?null:C(E)}}]})}return{UnaryExpression(x){let S;if(S=g.allow.includes("!!"),!S&&g.boolean&&n(x)){let w=`Boolean(${y.getText(x.argument.argument)})`,C=r.getVariableByName(y.getScope(x),"Boolean")?.identifiers.length===0;v(x,w,!0,C)}if(S=g.allow.includes("~"),!S&&g.boolean&&i(x)){let w=x.argument.type==="ChainExpression"?">= 0":"!== -1",O=`${y.getText(x.argument)} ${w}`;v(x,O,!1,!1)}if(S=g.allow.includes("+"),!S&&g.number&&x.operator==="+"&&!o(x.argument)){let w=`Number(${y.getText(x.argument)})`;v(x,w,!0,!1)}if(S=g.allow.includes("- -"),!S&&g.number&&x.operator==="-"&&x.argument.type==="UnaryExpression"&&x.argument.operator==="-"&&!o(x.argument.argument)){let w=`Number(${y.getText(x.argument.argument)})`;v(x,w,!0,!1)}},"BinaryExpression:exit"(x){let S;S=g.allow.includes("*");let w=!S&&g.number&&a(x)&&!l(x,y)&&u(x);if(w){let O=`Number(${y.getText(w)})`;v(x,O,!0,!1)}if(S=g.allow.includes("-"),!S&&g.number&&x.operator==="-"&&x.right.type==="Literal"&&x.right.value===0&&!o(x.left)){let O=`Number(${y.getText(x.left)})`;v(x,O,!0,!1)}if(S=g.allow.includes("+"),!S&&g.string&&h(x)){let O=`String(${y.getText(d(x))})`;v(x,O,!0,!1)}},AssignmentExpression(x){if(!g.allow.includes("+")&&g.string&&f(x)){let w=y.getText(d(x)),O=`${w} = String(${w})`;v(x,O,!0,!1)}},TemplateLiteral(x){if(!g.disallowTemplateShorthand||x.parent.type==="TaggedTemplateExpression"||x.expressions.length!==1||x.quasis[0].value.cooked!==""||x.quasis[1].value.cooked!==""||c(x.expressions[0]))return;let w=`String(${y.getText(x.expressions[0])})`;v(x,w,!0,!1)}}}},by}var vy,uI;function CW(){return uI||(uI=1,vy={meta:{type:"suggestion",docs:{description:"Disallow declarations in the global scope",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-implicit-globals"},schema:[{type:"object",properties:{lexicalBindings:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{globalNonLexicalBinding:"Unexpected {{kind}} declaration in the global scope, wrap in an IIFE for a local variable, assign as global property for a global variable.",globalLexicalBinding:"Unexpected {{kind}} declaration in the global scope, wrap in a block or in an IIFE.",globalVariableLeak:"Global variable leak, declare the variable if it is intended to be local.",assignmentToReadonlyGlobal:"Unexpected assignment to read-only global variable.",redeclarationOfReadonlyGlobal:"Unexpected redeclaration of read-only global variable."}},create(r){let e=r.options[0]&&r.options[0].lexicalBindings===!0,t=r.sourceCode;function s(n,i,a){r.report({node:n,messageId:i,data:{kind:a}})}return{Program(n){let i=t.getScope(n);i.variables.forEach(a=>{let l=a.writeable===!1;a.writeable!==!0&&(a.eslintExported||a.defs.forEach(u=>{let c=u.node;(u.type==="FunctionName"||u.type==="Variable"&&u.parent.kind==="var")&&(l?s(c,"redeclarationOfReadonlyGlobal"):s(c,"globalNonLexicalBinding",u.type==="FunctionName"?"function":`'${u.parent.kind}'`)),e&&(u.type==="ClassName"||u.type==="Variable"&&(u.parent.kind==="let"||u.parent.kind==="const"))&&(l?s(c,"redeclarationOfReadonlyGlobal"):s(c,"globalLexicalBinding",u.type==="ClassName"?"class":`'${u.parent.kind}'`))}))}),i.implicit.variables.forEach(a=>{let l=i.set.get(a.name),o;if(l){if(l.writeable)return;o="assignmentToReadonlyGlobal"}else o="globalVariableLeak";a.defs.forEach(u=>{s(u.node,o)})})}}}}),vy}var xy,cI;function kW(){if(cI)return xy;cI=1;let r=Pe(),{getStaticValue:e}=hr();return xy={meta:{type:"suggestion",docs:{description:"Disallow the use of `eval()`-like methods",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-implied-eval"},schema:[],messages:{impliedEval:"Implied eval. Consider passing a function instead of a string."}},create(t){let s=Object.freeze(["global","window","globalThis"]),n=/^(?:set(?:Interval|Timeout)|execScript)$/u,i=t.sourceCode;function a(u){return u.type==="Literal"&&typeof u.value=="string"||u.type==="TemplateLiteral"?!0:u.type==="BinaryExpression"&&u.operator==="+"?a(u.left)||a(u.right):!1}function l(u){let[c]=u.arguments;if(c){let p=e(c,i.getScope(u));(p&&typeof p.value=="string"||a(c))&&t.report({node:u,messageId:"impliedEval"})}}function o(u){let{references:c,name:p}=u;c.forEach(h=>{let d=h.identifier.parent;for(;r.isSpecificMemberAccess(d,null,p);)d=d.parent;if(r.isSpecificMemberAccess(d,null,n)){let m=d.parent.type==="ChainExpression"?d.parent:d,g=m.parent;g.type==="CallExpression"&&g.callee===m&&l(g)}})}return{CallExpression(u){r.isSpecificId(u.callee,n)&&l(u)},"Program:exit"(u){let c=i.getScope(u);s.map(p=>r.getVariableByName(c,p)).filter(p=>!!p&&p.defs.length===0).forEach(o)}}}},xy}var Oy,fI;function AW(){if(fI)return Oy;fI=1;let{findVariable:r}=hr(),e=Pe(),t={Object:/^(?:assign|definePropert(?:y|ies)|freeze|setPrototypeOf)$/u,Reflect:/^(?:(?:define|delete)Property|set(?:PrototypeOf)?)$/u};function s(u){let{parent:c}=u;return c.type==="AssignmentExpression"&&c.left===u||c.type==="ArrayPattern"||c.type==="Property"&&c.value===u&&c.parent.type==="ObjectPattern"||c.type==="RestElement"||c.type==="AssignmentPattern"&&c.left===u}function n(u){let c=u.parent.type==="ChainExpression"?u.parent:u,{parent:p}=c;return p.type==="UpdateExpression"&&p.argument===c||p.type==="UnaryExpression"&&p.operator==="delete"&&p.argument===c}function i(u){let{parent:c}=u;return c.type==="ForInStatement"&&c.left===u||c.type==="ForOfStatement"&&c.left===u}function a(u,c){let{parent:p}=u;if(p.type!=="CallExpression"||p.arguments[0]!==u)return!1;let h=e.skipChainExpression(p.callee);if(!e.isSpecificMemberAccess(h,"Object",t.Object)&&!e.isSpecificMemberAccess(h,"Reflect",t.Reflect))return!1;let f=r(c,h.object);return f!==null&&f.scope.type==="global"}function l(u,c){let{parent:p}=u;return p.type==="MemberExpression"&&p.object===u&&(s(p)||n(p)||i(p))||a(u,c)}function o(u){let c=u.parent;for(;c&&c.type!=="AssignmentExpression"&&c.type!=="UpdateExpression"&&c.type!=="UnaryExpression"&&c.type!=="CallExpression"&&c.type!=="ForInStatement"&&c.type!=="ForOfStatement";)c=c.parent;return c||u}return Oy={meta:{type:"problem",docs:{description:"Disallow assigning to imported bindings",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-import-assign"},schema:[],messages:{readonly:"'{{name}}' is read-only.",readonlyMember:"The members of '{{name}}' are read-only."}},create(u){let c=u.sourceCode;return{ImportDeclaration(p){let h=c.getScope(p);for(let f of c.getDeclaredVariables(p)){let d=f.defs.some(g=>g.node.type==="ImportNamespaceSpecifier"),m=null;for(let g of f.references){let y=g.identifier;y!==m&&(m=y,g.isWrite()?u.report({node:o(y),messageId:"readonly",data:{name:y.name}}):d&&l(y,h)&&u.report({node:o(y),messageId:"readonlyMember",data:{name:y.name}}))}}}}}},Oy}var Sy,pI;function PW(){if(pI)return Sy;pI=1;let r=Pe();return Sy={meta:{type:"suggestion",docs:{description:"Disallow inline comments after code",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-inline-comments"},schema:[{type:"object",properties:{ignorePattern:{type:"string"}},additionalProperties:!1}],messages:{unexpectedInlineComment:"Unexpected comment inline with code."}},create(e){let t=e.sourceCode,s=e.options[0],n;s&&s.ignorePattern&&(n=new RegExp(s.ignorePattern,"u"));function i(a){let l=String(t.lines[a.loc.start.line-1]),o=String(t.lines[a.loc.end.line-1]),u=l.slice(0,a.loc.start.column).trim(),c=o.slice(a.loc.end.column).trim(),p=!u,h=!c;if(!(p&&h)&&!(n&&n.test(a.value))){if((p||u==="{")&&(h||c==="}")){let f=t.getNodeByRangeIndex(a.range[0]);if(f&&f.type==="JSXEmptyExpression")return}r.isDirectiveComment(a)||e.report({node:a,messageId:"unexpectedInlineComment"})}}return{Program(){t.getAllComments().filter(a=>a.type!=="Shebang").forEach(i)}}}},Sy}var Ey,hI;function TW(){if(hI)return Ey;hI=1;let r=Pe(),e=new Set(["Program","StaticBlock","ExportNamedDeclaration","ExportDefaultDeclaration"]),t=new Set(["FunctionDeclaration","FunctionExpression","ArrowFunctionExpression"]);function s(n){let{parent:i}=n;for(;i;){if(i.type==="StaticBlock")return"class static block body";if(r.isFunction(i))return"function body";({parent:i}=i)}return"program"}return Ey={meta:{type:"problem",docs:{description:"Disallow variable or `function` declarations in nested blocks",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-inner-declarations"},schema:[{enum:["functions","both"]},{type:"object",properties:{blockScopedFunctions:{enum:["allow","disallow"]}},additionalProperties:!1}],messages:{moveDeclToRoot:"Move {{type}} declaration to {{body}} root."}},create(n){let i=n.sourceCode,a=n.languageOptions.ecmaVersion,l=n.options[1]?.blockScopedFunctions??"allow";function o(u){let c=u.parent;c.type==="BlockStatement"&&t.has(c.parent.type)||e.has(c.type)||n.report({node:u,messageId:"moveDeclToRoot",data:{type:u.type==="FunctionDeclaration"?"function":"variable",body:s(u)}})}return{FunctionDeclaration(u){let c=i.getScope(u).upper.isStrict;l==="allow"&&a>=2015&&c||o(u)},VariableDeclaration(u){n.options[0]==="both"&&u.kind==="var"&&o(u)}}}},Ey}var wy,dI;function DW(){if(dI)return wy;dI=1;let r=Gn().RegExpValidator,e=new r,t=/[dgimsuvy]/gu,s=void 0;return wy={meta:{type:"problem",docs:{description:"Disallow invalid regular expression strings in `RegExp` constructors",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-invalid-regexp"},schema:[{type:"object",properties:{allowConstructorFlags:{type:"array",items:{type:"string"}}},additionalProperties:!1}],messages:{regexMessage:"{{message}}."}},create(n){let i=n.options[0],a=null;if(i&&i.allowConstructorFlags){let h=i.allowConstructorFlags.join("").replace(t,"");h&&(a=new RegExp(`[${h}]`,"gu"))}function l(h,f){n.report({node:h,messageId:"regexMessage",data:{message:f}})}function o(h){return h&&h.type==="Literal"&&typeof h.value=="string"}function u(h){return h.arguments.length<2?"":o(h.arguments[1])?h.arguments[1].value:null}function c(h,f){try{return e.validatePattern(h,s,s,f),null}catch(d){return d.message}}function p(h){if(!h)return null;try{e.validateFlags(h)}catch{return`Invalid flags supplied to RegExp constructor '${h}'`}return h.includes("u")&&h.includes("v")?"Regex 'u' and 'v' flags cannot be used together":null}return{"CallExpression, NewExpression"(h){if(h.callee.type!=="Identifier"||h.callee.name!=="RegExp")return;let f=u(h);f&&a&&(f=f.replace(a,""));let d=p(f);if(d){l(h,d);return}if(!o(h.arguments[0]))return;let m=h.arguments[0].value;d=f===null?c(m,{unicode:!0,unicodeSets:!1})&&c(m,{unicode:!1,unicodeSets:!0})&&c(m,{unicode:!1,unicodeSets:!1}):c(m,{unicode:f.includes("u"),unicodeSets:f.includes("v")}),d&&l(h,d)}}}},wy}var Cy,mI;function _W(){if(mI)return Cy;mI=1;let r=Pe();function e(t,s){return t.origin==="function"&&s.type==="ArrowFunctionExpression"}return Cy={meta:{type:"suggestion",docs:{description:"Disallow use of `this` in contexts where the value of `this` is `undefined`",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-invalid-this"},schema:[{type:"object",properties:{capIsConstructor:{type:"boolean",default:!0}},additionalProperties:!1}],messages:{unexpectedThis:"Unexpected 'this'."}},create(t){let n=(t.options[0]||{}).capIsConstructor!==!1,i=[],a=t.sourceCode;return i.getCurrent=function(){let l=this.at(-1);return l.init||(l.init=!0,l.valid=!r.isDefaultThisBinding(l.node,a,{capIsConstructor:n})),l},{onCodePathStart(l,o){if(!e(l,o)){if(l.origin==="program"){let u=a.getScope(o),c=t.languageOptions.parserOptions.ecmaFeatures||{};i.push({init:!0,node:o,valid:!(o.sourceType==="module"||c.globalReturn&&u.childScopes[0].isStrict)});return}i.push({init:!a.getScope(o).isStrict,node:o,valid:!0})}},onCodePathEnd(l,o){e(l,o)||i.pop()},ThisExpression(l){let o=i.getCurrent();o&&!o.valid&&t.report({node:l,messageId:"unexpectedThis"})}}}},Cy}var ky,gI;function IW(){if(gI)return ky;gI=1;let r=Pe(),e=/[\f\v\u0085\ufeff\u00a0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u200b\u202f\u205f\u3000\u2028\u2029]/u,t=/[\f\v\u0085\ufeff\u00a0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u200b\u202f\u205f\u3000]+/mgu,s=/[\u2028\u2029]/mgu,n=r.createGlobalLinebreakMatcher();return ky={meta:{type:"problem",docs:{description:"Disallow irregular whitespace",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-irregular-whitespace"},schema:[{type:"object",properties:{skipComments:{type:"boolean",default:!1},skipStrings:{type:"boolean",default:!0},skipTemplates:{type:"boolean",default:!1},skipRegExps:{type:"boolean",default:!1},skipJSXText:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{noIrregularWhitespace:"Irregular whitespace not allowed."}},create(i){let a=[],l=i.options[0]||{},o=!!l.skipComments,u=l.skipStrings!==!1,c=!!l.skipRegExps,p=!!l.skipTemplates,h=!!l.skipJSXText,f=i.sourceCode,d=f.getAllComments();function m(E){let k=E.loc.start,A=E.loc.end;a=a.filter(({loc:{start:D}})=>D.line=A.column||D.line>A.line)}function g(E){let k=u&&typeof E.value=="string",A=c&&!!E.regex;(k||A)&&e.test(E.raw)&&m(E)}function y(E){typeof E.value.raw=="string"&&e.test(E.value.raw)&&m(E)}function v(E){e.test(E.value)&&m(E)}function x(E){e.test(E.raw)&&m(E)}function S(E){f.lines.forEach((A,D)=>{let _=D+1,B;for(;(B=t.exec(A))!==null;)a.push({node:E,messageId:"noIrregularWhitespace",loc:{start:{line:_,column:B.index},end:{line:_,column:B.index+B[0].length}}})})}function w(E){let k=f.getText(),A=f.lines,D=k.match(n),_=-1,B;for(;(B=s.exec(k))!==null;){let T=D.indexOf(B[0],_+1)||0;a.push({node:E,messageId:"noIrregularWhitespace",loc:{start:{line:T+1,column:A[T].length},end:{line:T+2,column:0}}}),_=T}}function O(){}let C={};return e.test(f.getText())?(C.Program=function(E){S(E),w(E)},C.Literal=g,C.TemplateElement=p?y:O,C.JSXText=h?x:O,C["Program:exit"]=function(){o&&d.forEach(v),a.forEach(E=>i.report(E))}):C.Program=O,C}},ky}var Ay,yI;function RW(){if(yI)return Ay;yI=1;let{getStaticPropertyName:r}=Pe();return Ay={meta:{type:"suggestion",docs:{description:"Disallow the use of the `__iterator__` property",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-iterator"},schema:[],messages:{noIterator:"Reserved name '__iterator__'."}},create(e){return{MemberExpression(t){r(t)==="__iterator__"&&e.report({node:t,messageId:"noIterator"})}}}},Ay}var Py,bI;function FW(){if(bI)return Py;bI=1;let r=Pe();return Py={meta:{type:"suggestion",docs:{description:"Disallow labels that share a name with a variable",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-label-var"},schema:[],messages:{identifierClashWithLabel:"Found identifier with same name as label."}},create(e){let t=e.sourceCode;function s(n,i){return r.getVariableByName(n,i)!==null}return{LabeledStatement(n){let i=t.getScope(n);s(i,n.label.name)&&e.report({node:n,messageId:"identifierClashWithLabel"})}}}},Py}var Ty,vI;function BW(){if(vI)return Ty;vI=1;let r=Pe();return Ty={meta:{type:"suggestion",docs:{description:"Disallow labeled statements",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-labels"},schema:[{type:"object",properties:{allowLoop:{type:"boolean",default:!1},allowSwitch:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{unexpectedLabel:"Unexpected labeled statement.",unexpectedLabelInBreak:"Unexpected label in break statement.",unexpectedLabelInContinue:"Unexpected label in continue statement."}},create(e){let t=e.options[0],s=t&&t.allowLoop,n=t&&t.allowSwitch,i=null;function a(u){return r.isLoop(u)?"loop":u.type==="SwitchStatement"?"switch":"other"}function l(u){switch(u){case"loop":return s;case"switch":return n;default:return!1}}function o(u){let c=i;for(;c;){if(c.label===u)return c.kind;c=c.upper}return"other"}return{LabeledStatement(u){i={label:u.label.name,kind:a(u.body),upper:i}},"LabeledStatement:exit"(u){l(i.kind)||e.report({node:u,messageId:"unexpectedLabel"}),i=i.upper},BreakStatement(u){u.label&&!l(o(u.label.name))&&e.report({node:u,messageId:"unexpectedLabelInBreak"})},ContinueStatement(u){u.label&&!l(o(u.label.name))&&e.report({node:u,messageId:"unexpectedLabelInContinue"})}}}},Ty}var Dy,xI;function NW(){return xI||(xI=1,Dy={meta:{type:"suggestion",docs:{description:"Disallow unnecessary nested blocks",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-lone-blocks"},schema:[],messages:{redundantBlock:"Block is redundant.",redundantNestedBlock:"Nested block is redundant."}},create(r){let e=[],t,s=r.sourceCode;function n(l){let o=l.parent.type==="BlockStatement"||l.parent.type==="StaticBlock"?"redundantNestedBlock":"redundantBlock";r.report({node:l,messageId:o})}function i(l){return l.parent.type==="BlockStatement"||l.parent.type==="StaticBlock"||l.parent.type==="Program"||l.parent.type==="SwitchCase"&&!(l.parent.consequent[0]===l&&l.parent.consequent.length===1)}function a(l){if(e.length===0)return;let o=l.parent;e.at(-1)===o&&e.pop()}return t={BlockStatement(l){i(l)&&n(l)}},r.languageOptions.ecmaVersion>=2015&&(t={BlockStatement(l){i(l)&&e.push(l)},"BlockStatement:exit"(l){e.length>0&&e.at(-1)===l?(e.pop(),n(l)):(l.parent.type==="BlockStatement"||l.parent.type==="StaticBlock")&&l.parent.body.length===1&&n(l)}},t.VariableDeclaration=function(l){l.kind!=="var"&&a(l)},t.FunctionDeclaration=function(l){s.getScope(l).isStrict&&a(l)},t.ClassDeclaration=a),t}}),Dy}var _y,OI;function LW(){return OI||(OI=1,_y={meta:{type:"suggestion",docs:{description:"Disallow `if` statements as the only statement in `else` blocks",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-lonely-if"},schema:[],fixable:"code",messages:{unexpectedLonelyIf:"Unexpected if as the only statement in an else block."}},create(r){let e=r.sourceCode;return{IfStatement(t){let s=t.parent,n=s.parent;s&&s.type==="BlockStatement"&&s.body.length===1&&n&&n.type==="IfStatement"&&s===n.alternate&&r.report({node:t,messageId:"unexpectedLonelyIf",fix(i){let a=e.getFirstToken(s),l=e.getLastToken(s),o=e.getTokenBefore(a),u=e.getTokenAfter(l),c=e.getLastToken(t.consequent),p=e.getText();return p.slice(a.range[1],t.range[0]).trim()||p.slice(t.range[1],l.range[0]).trim()||t.consequent.type!=="BlockStatement"&&c.value!==";"&&u&&(t.consequent.loc.end.line===u.loc.start.line||/^[([/+`-]/u.test(u.value)||c.value==="++"||c.value==="--")?null:i.replaceTextRange([a.range[0],l.range[1]],(o.range[1]===a.range[0]?" ":"")+e.getText(t))}})}}}}),_y}var Iy,SI;function $W(){if(SI)return Iy;SI=1;function r(s){for(let n=s;n.parent;n=n.parent){let i=n.parent;switch(i.type){case"WhileStatement":case"DoWhileStatement":return i;case"ForStatement":if(i.init!==n)return i;break;case"ForInStatement":case"ForOfStatement":if(i.right!==n)return i;break;case"ArrowFunctionExpression":case"FunctionExpression":case"FunctionDeclaration":return null}}return null}function e(s,n){let i=n?n.range[1]:0,a=s,l=s;for(;l&&l.range[0]>=i;)a=l,l=r(l);return a}function t(s,n){let i=n.resolved,a=i&&i.defs[0],l=a&&a.parent,o=l&&l.type==="VariableDeclaration"?l.kind:"";if(o==="const"||o==="let"&&l.range[0]>s.range[0]&&l.range[1]c.resolved&&!t(l,c)).map(c=>c.identifier.name);u.length>0&&s.report({node:a,messageId:"unsafeRefs",data:{varNames:`'${u.join("', '")}'`}})}return{ArrowFunctionExpression:i,FunctionExpression:i,FunctionDeclaration:i}}},Iy}var Ry,EI;function MW(){return EI||(EI=1,Ry={meta:{type:"problem",docs:{description:"Disallow literal numbers that lose precision",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-loss-of-precision"},schema:[],messages:{noLossOfPrecision:"This number literal will lose precision at runtime."}},create(r){function e(f){return typeof f.value=="number"}function t(f){return f.raw.replace(/_/gu,"")}function s(f){return["0x","0X","0b","0B","0o","0O"].every(m=>!f.raw.startsWith(m))&&!/^0[0-7]+$/u.test(f.raw)}function n(f){let d=t(f).toUpperCase(),m;return d.startsWith("0B")?m=2:d.startsWith("0X")?m=16:m=8,!d.endsWith(f.value.toString(m).toUpperCase())}function i(f){return`${f[0]}.${f.slice(1)}`}function a(f){for(let d=0;d=0;d--)if(f[d]!=="0")return f.slice(0,d+1);return f}function o(f){let d=l(a(f));return{magnitude:f.startsWith("0")?f.length-2:f.length-1,coefficient:i(d)}}function u(f){let d=a(f);if(d.startsWith(".")){let m=d.slice(1),g=a(m);return{magnitude:g.length-m.length-1,coefficient:i(g)}}return{magnitude:d.indexOf(".")-1,coefficient:i(d.replace(".",""))}}function c(f){let d=f.replace("E","e").split("e"),m=d[0],g=f.includes(".")?u(m):o(m),y=g.coefficient,v=d.length>1?parseInt(d[1],10)+g.magnitude:g.magnitude;return`${y}e${v}`}function p(f){let d=c(t(f)),m=d.split("e")[0].replace(".","").length;if(m>100)return!0;let g=f.value.toPrecision(m),y=c(g);return d!==y}function h(f){return s(f)?p(f):n(f)}return{Literal(f){f.value&&e(f)&&h(f)&&r.report({messageId:"noLossOfPrecision",node:f})}}}}),Ry}var Fy,wI;function jW(){if(wI)return Fy;wI=1;let r=Pe(),e=2**32-1;function t(s){return typeof s=="string"?BigInt(s.slice(0,-1)):s}return Fy={meta:{type:"suggestion",docs:{description:"Disallow magic numbers",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-magic-numbers"},schema:[{type:"object",properties:{detectObjects:{type:"boolean",default:!1},enforceConst:{type:"boolean",default:!1},ignore:{type:"array",items:{anyOf:[{type:"number"},{type:"string",pattern:"^[+-]?(?:0|[1-9][0-9]*)n$"}]},uniqueItems:!0},ignoreArrayIndexes:{type:"boolean",default:!1},ignoreDefaultValues:{type:"boolean",default:!1},ignoreClassFieldInitialValues:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{useConst:"Number constants declarations must use 'const'.",noMagic:"No magic number: {{raw}}."}},create(s){let n=s.options[0]||{},i=!!n.detectObjects,a=!!n.enforceConst,l=new Set((n.ignore||[]).map(t)),o=!!n.ignoreArrayIndexes,u=!!n.ignoreDefaultValues,c=!!n.ignoreClassFieldInitialValues,p=i?[]:["ObjectExpression","Property","AssignmentExpression"];function h(v){return l.has(v)}function f(v){let x=v.parent;return x.type==="AssignmentPattern"&&x.right===v}function d(v){let x=v.parent;return x.type==="PropertyDefinition"&&x.value===v}function m(v){let x=v.parent;return x.type==="CallExpression"&&v===x.arguments[1]&&(r.isSpecificId(x.callee,"parseInt")||r.isSpecificMemberAccess(x.callee,"Number","parseInt"))}function g(v){return v.parent.type.indexOf("JSX")===0}function y(v,x){let S=v.parent;return S.type==="MemberExpression"&&S.property===v&&(Number.isInteger(x)||typeof x=="bigint")&&x>=0&&x=127995&&e<=127999}),Ny}var Ly,AI;function UW(){return AI||(AI=1,Ly=function(e){return e>=127462&&e<=127487}),Ly}var $y,PI;function VW(){return PI||(PI=1,$y=function(e,t){return e>=55296&&e<56320&&t>=56320&&t<57344}),$y}var My,TI;function WW(){if(TI)return My;TI=1;let r=qW(),e=QW(),t=UW(),s=VW();return My={isCombiningCharacter:r,isEmojiModifier:e,isRegionalIndicatorSymbol:t,isSurrogatePair:s},My}var jy,DI;function NO(){if(DI)return jy;DI=1;let{RegExpValidator:r}=Gn(),e=2024;function t(s,n){if(s<=5)return!1;let i=new r({ecmaVersion:Math.min(s,e)});try{i.validatePattern(n,void 0,void 0,{unicode:!0})}catch{return!1}return!0}return jy={isValidWithUnicodeFlag:t,REGEXPP_LATEST_ECMA_VERSION:e},jy}var qy,_I;function zW(){if(_I)return qy;_I=1;class r{constructor(p,h){this.start=p,this.source=h}get end(){return this.start+this.length}get length(){return this.source.length}}class e{constructor(p){this.source=p,this.pos=0}advance(p){this.pos+=p}read(p=0,h=1){let f=p+this.pos;return this.source.slice(f,f+h)}}let t={__proto__:null,b:"\b",f:"\f",n:` `,r:"\r",t:" ",v:"\v"};function s(c,p){let h=c.read(0,p),f=parseInt(h,16);return c.advance(p),String.fromCharCode(f)}function n(c){let p=/\{(?[\dA-Fa-f]+)\}/uy;p.lastIndex=c.pos;let h=p.exec(c.source);if(h){let f=parseInt(h.groups.hexDigits,16);return c.pos=p.lastIndex,String.fromCodePoint(f)}return s(c,4)}function i(c,p){let[h]=c.read(-1,p).match(/^[0-7]+/u);c.advance(h.length-1);let f=parseInt(h,8);return String.fromCharCode(f)}function a(c){let p=c.read(1);c.advance(2);let h=t[p];if(h)return h;switch(p){case"x":return s(c,2);case"u":return n(c);case"\r":c.read()===` `&&c.advance(1);case` `:case"\u2028":case"\u2029":return"";case"0":case"1":case"2":case"3":return i(c,3);case"4":case"5":case"6":case"7":return i(c,2);default:return p}}function*l(c){let p=c.pos,h=a(c),f=c.pos,d=c.source.slice(p,f);switch(h.length){case 0:break;case 1:yield new r(p,d);break;default:yield new r(p,d),yield new r(p,d);break}}function o(c){let p=new e(c),h=p.read();p.advance(1);let f=[];for(;;){let d=p.read();if(d===h)break;d==="\\"?f.push(...l(p)):(f.push(new r(p.pos,d)),p.advance(1))}return f}function u(c){let p=new e(c);p.advance(1);let h=[];for(;;){let f=p.read();if(f==="`"||f==="$"&&p.read(1)==="{")break;if(f==="\\")h.push(...l(p));else{let d;f==="\r"&&p.read(1)===` `?d=`\r -`:d=f,h.push(new r(p.pos,d)),p.advance(d.length)}}return h}return Qy={parseStringLiteral:o,parseTemplateToken:u},Qy}var Uy,R2;function zW(){if(R2)return Uy;R2=1;let{CALL:r,CONSTRUCT:e,ReferenceTracker:t,getStaticValue:s,getStringIfConstant:n}=hr(),{RegExpParser:i,visitRegExpAST:a}=Xn(),{isCombiningCharacter:l,isEmojiModifier:o,isRegionalIndicatorSymbol:u,isSurrogatePair:c}=WW(),p=Pe(),{isValidWithUnicodeFlag:h}=LO(),{parseStringLiteral:f,parseTemplateToken:d}=ZW();function*m(S){let C=[];for(let O of S)switch(O.type){case"Character":C.push(O);break;case"CharacterClassRange":C.push(O.min),yield C,C=[O.max];break;case"CharacterSet":case"CharacterClass":case"ClassStringDisjunction":case"ExpressionCharacterClass":C.length>0&&(yield C,C=[]);break}C.length>0&&(yield C)}function g(S){return/^\\u\{[\da-f]+\}$/iu.test(S.raw)}let y={*surrogatePairWithoutUFlag(S){for(let[C,O]of S.entries()){if(C===0)continue;let w=S[C-1];c(w.value,O.value)&&!g(w)&&!g(O)&&(yield[w,O])}},*surrogatePair(S){for(let[C,O]of S.entries()){if(C===0)continue;let w=S[C-1];c(w.value,O.value)&&(g(w)||g(O))&&(yield[w,O])}},*combiningClass(S){for(let[C,O]of S.entries()){if(C===0)continue;let w=S[C-1];l(O.value)&&!l(w.value)&&(yield[w,O])}},*emojiModifier(S){for(let[C,O]of S.entries()){if(C===0)continue;let w=S[C-1];o(O.value)&&!o(w.value)&&(yield[w,O])}},*regionalIndicatorSymbol(S){for(let[C,O]of S.entries()){if(C===0)continue;let w=S[C-1];u(O.value)&&u(w.value)&&(yield[w,O])}},*zwj(S){let C=null;for(let[O,w]of S.entries())O===0||O===S.length-1||w.value===8205&&S[O-1].value!==8205&&S[O+1].value!==8205&&(C?C.at(-1)===S[O-1]?C.push(w,S[O+1]):(yield C,C=S.slice(O-1,O+2)):C=S.slice(O-1,O+2));C&&(yield C)}},b=Object.keys(y);function v(S,C){if(!S)return null;if(S.type==="Literal"&&S.regex)return{regex:S.regex};let O=s(S,C);return O?.value instanceof RegExp?null:O}return Uy={meta:{type:"problem",docs:{description:"Disallow characters which are made with multiple code points in character class syntax",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-misleading-character-class"},hasSuggestions:!0,schema:[],messages:{surrogatePairWithoutUFlag:"Unexpected surrogate pair in character class. Use 'u' flag.",surrogatePair:"Unexpected surrogate pair in character class.",combiningClass:"Unexpected combined character in character class.",emojiModifier:"Unexpected modified Emoji in character class.",regionalIndicatorSymbol:"Unexpected national flag in character class.",zwj:"Unexpected joined character sequence in character class.",suggestUnicodeFlag:"Add unicode 'u' flag to regex."}},create(S){let C=S.sourceCode,O=new i,w=new Set;function E(k,A,D,_){let B;try{B=O.parsePattern(A,0,A.length,{unicode:D.includes("u"),unicodeSets:D.includes("v")})}catch{return}let T=new Map;a(B,{onCharacterClassEnter(Q){for(let I of m(Q.elements))for(let N of b)T.has(N)?T.get(N).push(...y[N](I)):T.set(N,[...y[N](I)])}});let F=null;function j(Q){return!p.isStaticTemplateLiteral(k)&&k.type!=="Literal"?Q.length?[k.loc]:[]:Q.map(I=>{let N=I[0].start,R=I.at(-1).end-1,U,V;if(k.type==="TemplateLiteral"){let ae=C.getText(k),se=k.range[0];F??=d(ae),U=se+F[N].start,V=se+F[R].end}else if(typeof k.value=="string"){let ae=k.raw,se=k.range[0];F??=f(ae),U=se+F[N].start,V=se+F[R].end}else{let ae=k.range[0]+1;U=ae+N,V=ae+R+1}return{start:C.getLocFromIndex(U),end:C.getLocFromIndex(V)}})}for(let[Q,I]of T){let N;Q==="surrogatePairWithoutUFlag"&&(N=[{messageId:"suggestUnicodeFlag",fix:_}]);let R=j(I);for(let U of R)S.report({node:k,loc:U,messageId:Q,suggest:N})}}return{"Literal[regex]"(k){w.has(k)||E(k,k.regex.pattern,k.regex.flags,A=>h(S.languageOptions.ecmaVersion,k.regex.pattern)?A.insertTextAfter(k,"u"):null)},Program(k){let A=C.getScope(k),D=new t(A);for(let{node:_}of D.iterateGlobalReferences({RegExp:{[r]:!0,[e]:!0}})){let B,T,[F,j]=_.arguments,Q=v(F,A);if(Q){if(j)Q.regex?(B=Q.regex.pattern,w.add(F)):B=String(Q.value),T=n(j,A);else{if(Q.regex)continue;B=String(Q.value),T=""}typeof T=="string"&&E(F,B,T,I=>{if(!h(S.languageOptions.ecmaVersion,B))return null;if(_.arguments.length===1){let N=C.getLastToken(_,{skip:1});return I.insertTextAfter(N,p.isCommaToken(N)?' "u",':', "u"')}if(j.type==="Literal"&&typeof j.value=="string"||j.type==="TemplateLiteral"){let N=[j.range[0],j.range[1]-1];return I.insertTextAfterRange(N,"u")}return null})}}}}}},Uy}var Vy,B2;function XW(){if(B2)return Vy;B2=1;let r=Pe(),e=["+","-","*","/","%","**"],t=["&","|","^","~","<<",">>",">>>"],s=["==","!=","===","!==",">",">=","<","<="],n=["&&","||"],i=["in","instanceof"],a=["?:"],l=["??"],o=[].concat(e,t,s,n,i,a,l),u=[e,t,s,n,i],c=/^(?:Binary|Logical|Conditional)Expression$/u;function p(d={}){let g=d.groups&&d.groups.length>0?d.groups:u,y=d.allowSamePrecedence!==!1;return{groups:g,allowSamePrecedence:y}}function h(d,m,g){return d.some(y=>y.includes(m)&&y.includes(g))}function f(d){return d.type==="ConditionalExpression"?d.test:d.left}return Vy={meta:{deprecated:!0,replacedBy:[],type:"suggestion",docs:{description:"Disallow mixed binary operators",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-mixed-operators"},schema:[{type:"object",properties:{groups:{type:"array",items:{type:"array",items:{enum:o},minItems:2,uniqueItems:!0},uniqueItems:!0},allowSamePrecedence:{type:"boolean",default:!0}},additionalProperties:!1}],messages:{unexpectedMixedOperator:"Unexpected mix of '{{leftOperator}}' and '{{rightOperator}}'. Use parentheses to clarify the intended order of operations."}},create(d){let m=d.sourceCode,g=p(d.options[0]);function y(O){let w=O,E=O.parent;return!h(g.groups,w.operator,E.type==="ConditionalExpression"?"?:":E.operator)||g.allowSamePrecedence&&r.getPrecedence(w)===r.getPrecedence(E)}function b(O){return O.operator!==O.parent.operator&&!r.isParenthesised(m,O)}function v(O){return m.getTokenAfter(f(O),r.isNotClosingParenToken)}function S(O){let w=O.parent,E=f(w)===O?O:w,k=f(w)!==O?O:w,A={leftOperator:E.operator||"?:",rightOperator:k.operator||"?:"};d.report({node:E,loc:v(E).loc,messageId:"unexpectedMixedOperator",data:A}),d.report({node:k,loc:v(k).loc,messageId:"unexpectedMixedOperator",data:A})}function C(O){c.test(O.parent.type)&&b(O)&&!y(O)&&S(O)}return{BinaryExpression:C,LogicalExpression:C}}},Vy}var Wy,N2;function GW(){return N2||(N2=1,Wy={meta:{deprecated:!0,replacedBy:[],type:"suggestion",docs:{description:"Disallow `require` calls to be mixed with regular variable declarations",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-mixed-requires"},schema:[{oneOf:[{type:"boolean"},{type:"object",properties:{grouping:{type:"boolean"},allowCall:{type:"boolean"}},additionalProperties:!1}]}],messages:{noMixRequire:"Do not mix 'require' and other declarations.",noMixCoreModuleFileComputed:"Do not mix core, module, file and computed requires."}},create(r){let e=r.options[0],t=!1,s=!1;typeof e=="object"?(t=e.grouping,s=e.allowCall):t=!!e;function n(){return["assert","buffer","child_process","cluster","crypto","dgram","dns","domain","events","fs","http","https","net","os","path","punycode","querystring","readline","repl","smalloc","stream","string_decoder","tls","tty","url","util","v8","vm","zlib"]}let i=n(),a="require",l="uninitialized",o="other",u="core",c="file",p="module",h="computed";function f(y){return y?y.type==="CallExpression"&&y.callee.type==="Identifier"&&y.callee.name==="require"?a:s&&y.type==="CallExpression"&&y.callee.type==="CallExpression"?f(y.callee):y.type==="MemberExpression"?f(y.object):o:l}function d(y){if(y.type==="MemberExpression")return d(y.object);if(y.arguments.length===0)return h;let b=y.arguments[0];return b.type!=="Literal"||typeof b.value!="string"?h:i.includes(b.value)?u:/^\.{0,2}\//u.test(b.value)?c:p}function m(y){let b={};return y.forEach(v=>{let S=f(v.init);b[S]=!0}),!!(b[a]&&(b[l]||b[o]))}function g(y){let b={};return y.forEach(v=>{f(v.init)===a&&(b[d(v.init)]=!0)}),Object.keys(b).length<=1}return{VariableDeclaration(y){m(y.declarations)?r.report({node:y,messageId:"noMixRequire"}):t&&!g(y.declarations)&&r.report({node:y,messageId:"noMixCoreModuleFileComputed"})}}}}),Wy}var Zy,L2;function YW(){return L2||(L2=1,Zy={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Disallow mixed spaces and tabs for indentation",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-mixed-spaces-and-tabs"},schema:[{enum:["smart-tabs",!0,!1]}],messages:{mixedSpacesAndTabs:"Mixed spaces and tabs."}},create(r){let e=r.sourceCode,t;switch(r.options[0]){case!0:case"smart-tabs":t=!0;break;default:t=!1}return{"Program:exit"(s){let n=e.lines,i=e.getAllComments(),a=new Set;i.forEach(o=>{for(let u=o.loc.start.line+1;u<=o.loc.end.line;u++)a.add(u)});let l=/^(?=( +|\t+))\1(?:\t| )/u;t&&(l=/^(?=(\t*))\1(?=( +))\2\t/u),n.forEach((o,u)=>{let c=l.exec(o);if(c){let p=u+1,h={start:{line:p,column:c[0].length-2},end:{line:p,column:c[0].length}};if(!a.has(p)){let f=e.getNodeByRangeIndex(e.getIndexFromLoc(h.start));f&&["Literal","TemplateElement"].includes(f.type)||r.report({node:s,loc:h,messageId:"mixedSpacesAndTabs"})}}})}}}}),Zy}var zy,$2;function HW(){return $2||($2=1,zy={meta:{type:"suggestion",docs:{description:"Disallow use of chained assignment expressions",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-multi-assign"},schema:[{type:"object",properties:{ignoreNonDeclaration:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{unexpectedChain:"Unexpected chained assignment."}},create(r){let e=r.options[0]||{ignoreNonDeclaration:!1},t=["VariableDeclarator > AssignmentExpression.init","PropertyDefinition > AssignmentExpression.value"];return e.ignoreNonDeclaration||t.push("AssignmentExpression > AssignmentExpression.right"),{[t](s){r.report({node:s,messageId:"unexpectedChain"})}}}}),zy}var Xy,M2;function KW(){if(M2)return Xy;M2=1;let r=Pe();return Xy={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Disallow multiple spaces",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-multi-spaces"},fixable:"whitespace",schema:[{type:"object",properties:{exceptions:{type:"object",patternProperties:{"^([A-Z][a-z]*)+$":{type:"boolean"}},additionalProperties:!1},ignoreEOLComments:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{multipleSpaces:"Multiple spaces found before '{{displayValue}}'."}},create(e){let t=e.sourceCode,s=e.options[0]||{},n=s.ignoreEOLComments,i=Object.assign({Property:!0},s.exceptions),a=Object.keys(i).some(o=>i[o]);function l(o){let u=o.value.split(` -`),c=u[0],p=`${c.slice(0,12)}...`;return u.length===1&&c.length<=12?c:p}return{Program(){t.tokensAndComments.forEach((o,u,c)=>{if(u===c.length-1)return;let p=c[u+1];if(!t.text.slice(o.range[1],p.range[0]).includes(" ")||o.loc.end.linef.replaceTextRange([o.range[1],p.range[0]]," ")})})}}}},Xy}var Gy,j2;function JW(){if(j2)return Gy;j2=1;let r=Pe();return Gy={meta:{type:"suggestion",docs:{description:"Disallow multiline strings",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-multi-str"},schema:[],messages:{multilineString:"Multiline support is limited to browsers supporting ES5 only."}},create(e){function t(s){return s.type.indexOf("JSX")===0}return{Literal(s){r.LINEBREAK_MATCHER.test(s.raw)&&!t(s.parent)&&e.report({node:s,messageId:"multilineString"})}}}},Gy}var Yy,q2;function eZ(){return q2||(q2=1,Yy={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Disallow multiple empty lines",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-multiple-empty-lines"},fixable:"whitespace",schema:[{type:"object",properties:{max:{type:"integer",minimum:0},maxEOF:{type:"integer",minimum:0},maxBOF:{type:"integer",minimum:0}},required:["max"],additionalProperties:!1}],messages:{blankBeginningOfFile:"Too many blank lines at the beginning of file. Max of {{max}} allowed.",blankEndOfFile:"Too many blank lines at the end of file. Max of {{max}} allowed.",consecutiveBlank:"More than {{max}} blank {{pluralizedLines}} not allowed."}},create(r){let e=2,t=e,s=e;r.options.length&&(e=r.options[0].max,t=typeof r.options[0].maxEOF<"u"?r.options[0].maxEOF:e,s=typeof r.options[0].maxBOF<"u"?r.options[0].maxBOF:e);let n=r.sourceCode,i=n.lines.at(-1)===""?n.lines.slice(0,-1):n.lines,a=new Set;return{TemplateLiteral(l){l.quasis.forEach(o=>{for(let u=o.loc.start.line;u((u.trim()||a.has(c+1))&&o.push(c+1),o),[]).concat(i.length+1).reduce((o,u)=>{let c,p;return o===0?(c="blankBeginningOfFile",p=s):u===i.length+1?(c="blankEndOfFile",p=t):(c="consecutiveBlank",p=e),u-o-1>p&&r.report({node:l,loc:{start:{line:o+p+1,column:0},end:{line:u,column:0}},messageId:c,data:{max:p,pluralizedLines:p===1?"line":"lines"},fix(h){let f=n.getIndexFromLoc({line:o+1,column:0}),d=u-p,m=d<=i.length?n.getIndexFromLoc({line:d,column:0}):n.text.length;return h.removeRange([f,m])}}),u},0)}}}}),Yy}var Hy,Q2;function tZ(){return Q2||(Q2=1,Hy={meta:{type:"suggestion",docs:{description:"Disallow assignments to native objects or read-only global variables",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-native-reassign"},deprecated:!0,replacedBy:["no-global-assign"],schema:[{type:"object",properties:{exceptions:{type:"array",items:{type:"string"},uniqueItems:!0}},additionalProperties:!1}],messages:{nativeReassign:"Read-only global '{{name}}' should not be modified."}},create(r){let e=r.options[0],t=e&&e.exceptions||[],s=r.sourceCode;function n(a,l,o){let u=a.identifier;a.init===!1&&a.isWrite()&&(l===0||o[l-1].identifier!==u)&&r.report({node:u,messageId:"nativeReassign",data:u})}function i(a){a.writeable===!1&&!t.includes(a.name)&&a.references.forEach(n)}return{Program(a){s.getScope(a).variables.forEach(i)}}}}),Hy}var Ky,U2;function rZ(){return U2||(U2=1,Ky={meta:{type:"suggestion",docs:{description:"Disallow negated conditions",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-negated-condition"},schema:[],messages:{unexpectedNegated:"Unexpected negated condition."}},create(r){function e(i){return i.alternate&&i.alternate.type!=="IfStatement"}function t(i){return i.type==="UnaryExpression"&&i.operator==="!"}function s(i){return i.type==="BinaryExpression"&&(i.operator==="!="||i.operator==="!==")}function n(i){return t(i.test)||s(i.test)}return{IfStatement(i){e(i)&&n(i)&&r.report({node:i,messageId:"unexpectedNegated"})},ConditionalExpression(i){n(i)&&r.report({node:i,messageId:"unexpectedNegated"})}}}}),Ky}var Jy,V2;function nZ(){return V2||(V2=1,Jy={meta:{type:"problem",docs:{description:"Disallow negating the left operand in `in` expressions",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-negated-in-lhs"},replacedBy:["no-unsafe-negation"],deprecated:!0,schema:[],messages:{negatedLHS:"The 'in' expression's left operand is negated."}},create(r){return{BinaryExpression(e){e.operator==="in"&&e.left.type==="UnaryExpression"&&e.left.operator==="!"&&r.report({node:e,messageId:"negatedLHS"})}}}}),Jy}var ex,W2;function sZ(){return W2||(W2=1,ex={meta:{type:"suggestion",docs:{description:"Disallow nested ternary expressions",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-nested-ternary"},schema:[],messages:{noNestedTernary:"Do not nest ternary expressions."}},create(r){return{ConditionalExpression(e){(e.alternate.type==="ConditionalExpression"||e.consequent.type==="ConditionalExpression")&&r.report({node:e,messageId:"noNestedTernary"})}}}}),ex}var tx,Z2;function iZ(){return Z2||(Z2=1,tx={meta:{type:"suggestion",docs:{description:"Disallow `new` operators outside of assignments or comparisons",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-new"},schema:[],messages:{noNewStatement:"Do not use 'new' for side effects."}},create(r){return{"ExpressionStatement > NewExpression"(e){r.report({node:e.parent,messageId:"noNewStatement"})}}}}),tx}var rx,z2;function aZ(){if(z2)return rx;z2=1;let r=Pe(),e=new Set(["apply","bind","call"]);return rx={meta:{type:"suggestion",docs:{description:"Disallow `new` operators with the `Function` object",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-new-func"},schema:[],messages:{noFunctionConstructor:"The Function constructor is eval."}},create(t){let s=t.sourceCode;return{"Program:exit"(n){let a=s.getScope(n).set.get("Function");a&&a.defs.length===0&&a.references.forEach(l=>{let o=l.identifier,{parent:u}=o,c;if(u){if(o===u.callee&&(u.type==="NewExpression"||u.type==="CallExpression"))c=u;else if(u.type==="MemberExpression"&&o===u.object&&e.has(r.getStaticPropertyName(u))){let p=u.parent.type==="ChainExpression"?u.parent:u;p.parent.type==="CallExpression"&&p.parent.callee===p&&(c=p.parent)}}c&&t.report({node:c,messageId:"noFunctionConstructor"})})}}}},rx}var nx,X2;function oZ(){if(X2)return nx;X2=1;let r=["Symbol","BigInt"];return nx={meta:{type:"problem",docs:{description:"Disallow `new` operators with global non-constructor functions",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-new-native-nonconstructor"},schema:[],messages:{noNewNonconstructor:"`{{name}}` cannot be called as a constructor."}},create(e){let t=e.sourceCode;return{"Program:exit"(s){let n=t.getScope(s);for(let i of r){let a=n.set.get(i);a&&a.defs.length===0&&a.references.forEach(l=>{let o=l.identifier,u=o.parent;u&&u.type==="NewExpression"&&u.callee===o&&e.report({node:o,messageId:"noNewNonconstructor",data:{name:i}})})}}}}},nx}var sx,G2;function lZ(){if(G2)return sx;G2=1;let r=Pe();return sx={meta:{type:"suggestion",docs:{description:"Disallow `Object` constructors",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-new-object"},deprecated:!0,replacedBy:["no-object-constructor"],schema:[],messages:{preferLiteral:"The object literal notation {} is preferable."}},create(e){let t=e.sourceCode;return{NewExpression(s){let n=r.getVariableByName(t.getScope(s),s.callee.name);n&&n.identifiers.length>0||s.callee.name==="Object"&&e.report({node:s,messageId:"preferLiteral"})}}}},sx}var ix,Y2;function uZ(){return Y2||(Y2=1,ix={meta:{deprecated:!0,replacedBy:[],type:"suggestion",docs:{description:"Disallow `new` operators with calls to `require`",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-new-require"},schema:[],messages:{noNewRequire:"Unexpected use of new with require."}},create(r){return{NewExpression(e){e.callee.type==="Identifier"&&e.callee.name==="require"&&r.report({node:e,messageId:"noNewRequire"})}}}}),ix}var ax,H2;function cZ(){return H2||(H2=1,ax={meta:{type:"problem",docs:{description:"Disallow `new` operators with the `Symbol` object",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-new-symbol"},deprecated:!0,replacedBy:["no-new-native-nonconstructor"],schema:[],messages:{noNewSymbol:"`Symbol` cannot be called as a constructor."}},create(r){let e=r.sourceCode;return{"Program:exit"(t){let n=e.getScope(t).set.get("Symbol");n&&n.defs.length===0&&n.references.forEach(i=>{let a=i.identifier,l=a.parent;l&&l.type==="NewExpression"&&l.callee===a&&r.report({node:a,messageId:"noNewSymbol"})})}}}}),ax}var ox,K2;function fZ(){if(K2)return ox;K2=1;let{getVariableByName:r}=Pe();return ox={meta:{type:"suggestion",docs:{description:"Disallow `new` operators with the `String`, `Number`, and `Boolean` objects",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-new-wrappers"},schema:[],messages:{noConstructor:"Do not use {{fn}} as a constructor."}},create(e){let{sourceCode:t}=e;return{NewExpression(s){let n=["String","Number","Boolean"],{name:i}=s.callee;if(n.includes(i)){let a=r(t.getScope(s),i);a&&a.identifiers.length===0&&e.report({node:s,messageId:"noConstructor",data:{fn:i}})}}}}},ox}var lx,J2;function pZ(){if(J2)return lx;J2=1;let r=/\\[89]/u;function e(t){return`\\u${t.charCodeAt(0).toString(16).padStart(4,"0")}`}return lx={meta:{type:"suggestion",docs:{description:"Disallow `\\8` and `\\9` escape sequences in string literals",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-nonoctal-decimal-escape"},hasSuggestions:!0,schema:[],messages:{decimalEscape:"Don't use '{{decimalEscape}}' escape sequence.",refactor:"Replace '{{original}}' with '{{replacement}}'. This maintains the current functionality.",escapeBackslash:"Replace '{{original}}' with '{{replacement}}' to include the actual backslash character."}},create(t){let s=t.sourceCode;function n(i,a,l){return{messageId:i,data:{original:s.getText().slice(...a),replacement:l},fix(o){return o.replaceTextRange(a,l)}}}return{Literal(i){if(typeof i.value!="string"||!r.test(i.raw))return;let a=/(?:[^\\]|(?\\.))*?(?\\[89])/suy,l;for(;l=a.exec(i.raw);){let{previousEscape:o,decimalEscape:u}=l.groups,c=i.range[0]+l.index+l[0].length,p=c-u.length,h=[p,c],f=[];o==="\\0"?f.push(n("refactor",[p-o.length,c],`${e("\0")}${u[1]}`),n("refactor",h,e(u[1]))):f.push(n("refactor",h,u[1])),f.push(n("escapeBackslash",h,`\\${u}`)),t.report({node:i,loc:{start:s.getLocFromIndex(p),end:s.getLocFromIndex(c)},messageId:"decimalEscape",data:{decimalEscape:u},suggest:f})}}}}},lx}var ux,eI;function hZ(){if(eI)return ux;eI=1;let{CALL:r,CONSTRUCT:e,ReferenceTracker:t}=hr(),s=Pe().getStaticPropertyName,n=["Atomics","JSON","Math","Reflect","Intl"];function i(a){return a.type==="ChainExpression"?i(a.expression):a.type==="MemberExpression"?s(a):a.name}return ux={meta:{type:"problem",docs:{description:"Disallow calling global object properties as functions",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-obj-calls"},schema:[],messages:{unexpectedCall:"'{{name}}' is not a function.",unexpectedRefCall:"'{{name}}' is reference to '{{ref}}', which is not a function."}},create(a){let l=a.sourceCode;return{Program(o){let u=l.getScope(o),c=new t(u),p={};for(let h of n)p[h]={[r]:!0,[e]:!0};for(let{node:h,path:f}of c.iterateGlobalReferences(p)){let d=i(h.callee),m=f[0],g=d===m?"unexpectedCall":"unexpectedRefCall";a.report({node:h,messageId:g,data:{name:d,ref:m}})}}}}},ux}var cx,tI;function dZ(){if(tI)return cx;tI=1;let{getVariableByName:r,isArrowToken:e,isStartOfExpressionStatement:t,needsPrecedingSemicolon:s}=Pe();return cx={meta:{type:"suggestion",docs:{description:"Disallow calls to the `Object` constructor without an argument",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-object-constructor"},hasSuggestions:!0,schema:[],messages:{preferLiteral:"The object literal notation {} is preferable.",useLiteral:"Replace with '{{replacement}}'.",useLiteralAfterSemicolon:"Replace with '{{replacement}}', add preceding semicolon."}},create(n){let i=n.sourceCode;function a(o){if(t(o))return!0;let u=i.getTokenBefore(o);return!!(u&&e(u))}function l(o){if(o.callee.type!=="Identifier"||o.callee.name!=="Object"||o.arguments.length)return;let u=r(i.getScope(o),"Object");if(u&&u.identifiers.length===0){let c,p,h="useLiteral";a(o)?(c="({})",s(i,o)?(p=";({})",h="useLiteralAfterSemicolon"):p="({})"):c=p="{}",n.report({node:o,messageId:"preferLiteral",suggest:[{messageId:h,data:{replacement:c},fix:f=>f.replaceText(o,p)}]})}}return{CallExpression:l,NewExpression:l}}},cx}var fx,rI;function mZ(){return rI||(rI=1,fx={meta:{type:"suggestion",docs:{description:"Disallow octal literals",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-octal"},schema:[],messages:{noOctal:"Octal literals should not be used."}},create(r){return{Literal(e){typeof e.value=="number"&&/^0[0-9]/u.test(e.raw)&&r.report({node:e,messageId:"noOctal"})}}}}),fx}var px,nI;function gZ(){return nI||(nI=1,px={meta:{type:"suggestion",docs:{description:"Disallow octal escape sequences in string literals",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-octal-escape"},schema:[],messages:{octalEscapeSequence:"Don't use octal: '\\{{sequence}}'. Use '\\u....' instead."}},create(r){return{Literal(e){if(typeof e.value!="string")return;let t=e.raw.match(/^(?:[^\\]|\\.)*?\\([0-3][0-7]{1,2}|[4-7][0-7]|0(?=[89])|[1-7])/su);t&&r.report({node:e,messageId:"octalEscapeSequence",data:{sequence:t[1]}})}}}}),px}var hx,sI;function yZ(){if(sI)return hx;sI=1;let r=/(?:Statement|Declaration|Function(?:Expression)?|Program)$/u;return hx={meta:{type:"suggestion",docs:{description:"Disallow reassigning `function` parameters",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-param-reassign"},schema:[{oneOf:[{type:"object",properties:{props:{enum:[!1]}},additionalProperties:!1},{type:"object",properties:{props:{enum:[!0]},ignorePropertyModificationsFor:{type:"array",items:{type:"string"},uniqueItems:!0},ignorePropertyModificationsForRegex:{type:"array",items:{type:"string"},uniqueItems:!0}},additionalProperties:!1}]}],messages:{assignmentToFunctionParam:"Assignment to function parameter '{{name}}'.",assignmentToFunctionParamProp:"Assignment to property of function parameter '{{name}}'."}},create(e){let t=e.options[0]&&e.options[0].props,s=e.options[0]&&e.options[0].ignorePropertyModificationsFor||[],n=e.options[0]&&e.options[0].ignorePropertyModificationsForRegex||[],i=e.sourceCode;function a(p){let h=p.identifier,f=h.parent;for(;f&&(!r.test(f.type)||f.type==="ForInStatement"||f.type==="ForOfStatement");){switch(f.type){case"AssignmentExpression":return f.left===h;case"UpdateExpression":return!0;case"UnaryExpression":if(f.operator==="delete")return!0;break;case"ForInStatement":case"ForOfStatement":return f.left===h;case"CallExpression":if(f.callee!==h)return!1;break;case"MemberExpression":if(f.property===h)return!1;break;case"Property":if(f.key===h)return!1;break;case"ConditionalExpression":if(f.test===h)return!1;break}h=f,f=h.parent}return!1}function l(p){return s.includes(p)||n.some(h=>new RegExp(h,"u").test(p))}function o(p,h,f){let d=p.identifier;d&&!p.init&&(h===0||f[h-1].identifier!==d)&&(p.isWrite()?e.report({node:d,messageId:"assignmentToFunctionParam",data:{name:d.name}}):t&&a(p)&&!l(d.name)&&e.report({node:d,messageId:"assignmentToFunctionParamProp",data:{name:d.name}}))}function u(p){p.defs[0].type==="Parameter"&&p.references.forEach(o)}function c(p){i.getDeclaredVariables(p).forEach(u)}return{"FunctionDeclaration:exit":c,"FunctionExpression:exit":c,"ArrowFunctionExpression:exit":c}}},hx}var dx,iI;function xZ(){return iI||(iI=1,dx={meta:{deprecated:!0,replacedBy:[],type:"suggestion",docs:{description:"Disallow string concatenation with `__dirname` and `__filename`",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-path-concat"},schema:[],messages:{usePathFunctions:"Use path.join() or path.resolve() instead of + to create paths."}},create(r){let e=/^__(?:dir|file)name$/u;return{BinaryExpression(t){let s=t.left,n=t.right;t.operator==="+"&&(s.type==="Identifier"&&e.test(s.name)||n.type==="Identifier"&&e.test(n.name))&&r.report({node:t,messageId:"usePathFunctions"})}}}}),dx}var mx,aI;function bZ(){if(aI)return mx;aI=1;function r(t){let s=t.parent;return s.type==="ForStatement"&&s.update===t}function e(t){let s=t.parent;return s.type==="SequenceExpression"?e(s):r(t)}return mx={meta:{type:"suggestion",docs:{description:"Disallow the unary operators `++` and `--`",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-plusplus"},schema:[{type:"object",properties:{allowForLoopAfterthoughts:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{unexpectedUnaryOp:"Unary operator '{{operator}}' used."}},create(t){let s=t.options[0],n=!1;return typeof s=="object"&&(n=s.allowForLoopAfterthoughts===!0),{UpdateExpression(i){n&&e(i)||t.report({node:i,messageId:"unexpectedUnaryOp",data:{operator:i.operator}})}}}},mx}var gx,oI;function vZ(){return oI||(oI=1,gx={meta:{deprecated:!0,replacedBy:[],type:"suggestion",docs:{description:"Disallow the use of `process.env`",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-process-env"},schema:[],messages:{unexpectedProcessEnv:"Unexpected use of process.env."}},create(r){return{MemberExpression(e){let t=e.object.name,s=e.property.name;t==="process"&&!e.computed&&s&&s==="env"&&r.report({node:e,messageId:"unexpectedProcessEnv"})}}}}),gx}var yx,lI;function OZ(){return lI||(lI=1,yx={meta:{deprecated:!0,replacedBy:[],type:"suggestion",docs:{description:"Disallow the use of `process.exit()`",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-process-exit"},schema:[],messages:{noProcessExit:"Don't use process.exit(); throw an error instead."}},create(r){return{"CallExpression > MemberExpression.callee[object.name = 'process'][property.name = 'exit']"(e){r.report({node:e.parent,messageId:"noProcessExit"})}}}}),yx}var xx,uI;function SZ(){if(uI)return xx;uI=1;let{findVariable:r}=hr(),e=Pe(),t=new Set(["ArrowFunctionExpression","FunctionExpression"]);function s(u,c){let p=r(c,u);return p!==null&&p.scope.type==="global"&&p.defs.length===0}function n(u){let c=u.upper;return c.type==="function-expression-name"?c.upper:c}function i(u,c){let p=u.parent;return p.type==="NewExpression"&&p.arguments[0]===u&&p.callee.type==="Identifier"&&p.callee.name==="Promise"&&s(p.callee,n(c))}function a(u){return u.type==="UnaryExpression"&&u.operator==="void"}function l(u,c,p){let h=e.getPrecedence(c)g.type==="Keyword"&&g.value==="return"),d=u.getTokenAfter(f),m=f.value==="return"&&f.range[1]===d.range[0];return[p.insertTextBefore(d,`${m?" ":""}void ${h?"(":""}`),p.insertTextAfter(c,h?")":"")]}function o(u,c,p){let h=u.getTokenBefore(c.body,e.isArrowToken),f=u.getTokenAfter(h),d=u.getLastToken(c);return[p.insertTextBefore(f,"{"),p.insertTextAfter(d,"}")]}return xx={meta:{type:"problem",docs:{description:"Disallow returning values from Promise executor functions",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-promise-executor-return"},hasSuggestions:!0,schema:[{type:"object",properties:{allowVoid:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{returnsValue:"Return values from promise executor functions cannot be read.",prependVoid:"Prepend `void` to the expression.",wrapBraces:"Wrap the expression in `{}`."}},create(u){let c=null,p=u.sourceCode,{allowVoid:h=!1}=u.options[0]||{};return{onCodePathStart(f,d){if(c={upper:c,shouldCheck:t.has(d.type)&&i(d,p.getScope(d))},c.shouldCheck&&d.type==="ArrowFunctionExpression"&&d.expression&&!(h&&a(d.body))){let m=[];h&&m.push({messageId:"prependVoid",fix(g){return l(p,d.body,g)}}),d.body.type==="FunctionExpression"&&!d.body.id||m.push({messageId:"wrapBraces",fix(g){return o(p,d,g)}}),u.report({node:d.body,messageId:"returnsValue",suggest:m})}},onCodePathEnd(){c=c.upper},ReturnStatement(f){if(c.shouldCheck&&f.argument){if(!h){u.report({node:f,messageId:"returnsValue"});return}a(f.argument)||u.report({node:f,messageId:"returnsValue",suggest:[{messageId:"prependVoid",fix(d){return l(p,f.argument,d)}}]})}}}}},xx}var bx,cI;function EZ(){if(cI)return bx;cI=1;let{getStaticPropertyName:r}=Pe();return bx={meta:{type:"suggestion",docs:{description:"Disallow the use of the `__proto__` property",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-proto"},schema:[],messages:{unexpectedProto:"The '__proto__' property is deprecated."}},create(e){return{MemberExpression(t){r(t)==="__proto__"&&e.report({node:t,messageId:"unexpectedProto"})}}}},bx}var vx,fI;function CZ(){if(fI)return vx;fI=1;let r=Pe();function e(t){let s;if(t.type==="MemberExpression")s=t.object;else if(t.type==="CallExpression")s=t.callee;else return!1;return t.optional?!0:e(s)}return vx={meta:{type:"problem",docs:{description:"Disallow calling some `Object.prototype` methods directly on objects",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-prototype-builtins"},hasSuggestions:!0,schema:[],messages:{prototypeBuildIn:"Do not access Object.prototype method '{{prop}}' from target object.",callObjectPrototype:"Call Object.prototype.{{prop}} explicitly."}},create(t){let s=new Set(["hasOwnProperty","isPrototypeOf","propertyIsEnumerable"]);function n(i){let a=r.skipChainExpression(i.callee);if(a.type!=="MemberExpression")return;let l=r.getStaticPropertyName(a);l!==null&&s.has(l)&&t.report({messageId:"prototypeBuildIn",loc:a.property.loc,data:{prop:l},node:i,suggest:[{messageId:"callObjectPrototype",data:{prop:l},fix(o){let u=t.sourceCode;if(e(i)||i.callee.type==="ChainExpression")return null;let c=r.getVariableByName(u.getScope(i),"Object");if(!c||c.scope.type!=="global"||c.defs.length>0)return null;let p=u.getText(a.object);r.getPrecedence(a.object)<=r.getPrecedence({type:"SequenceExpression"})&&(p=`(${p})`);let h=u.getTokenAfter(i.callee,r.isOpeningParenToken),d=i.arguments.length===0?"":", ";return[o.replaceText(a,`Object.prototype.${l}.call`),o.insertTextAfter(h,p+d)]}}]})}return{CallExpression:n}}},vx}var Ox,pI;function wZ(){if(pI)return Ox;pI=1;let r=Pe();return Ox={meta:{type:"suggestion",docs:{description:"Disallow variable redeclaration",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-redeclare"},messages:{redeclared:"'{{id}}' is already defined.",redeclaredAsBuiltin:"'{{id}}' is already defined as a built-in global variable.",redeclaredBySyntax:"'{{id}}' is already defined by a variable declaration."},schema:[{type:"object",properties:{builtinGlobals:{type:"boolean",default:!0}},additionalProperties:!1}]},create(e){let t={builtinGlobals:!!(e.options.length===0||e.options[0].builtinGlobals)},s=e.sourceCode;function*n(l){t.builtinGlobals&&(l.eslintImplicitGlobalSetting==="readonly"||l.eslintImplicitGlobalSetting==="writable")&&(yield{type:"builtin"});for(let o of l.identifiers)yield{type:"syntax",node:o,loc:o.loc};if(l.eslintExplicitGlobalComments)for(let o of l.eslintExplicitGlobalComments)yield{type:"comment",node:o,loc:r.getNameLocationInGlobalDirectiveComment(s,o,l.name)}}function i(l){for(let o of l.variables){let[u,...c]=n(o);if(c.length===0)continue;let p=u.type==="builtin"?"redeclaredAsBuiltin":"redeclaredBySyntax",h={id:o.name};for(let{type:f,node:d,loc:m}of c){let g=f===u.type?"redeclared":p;e.report({node:d,loc:m,messageId:g,data:h})}}}function a(l){let o=s.getScope(l);o.block===l&&i(o)}return{Program(l){let o=s.getScope(l);i(o),o.type==="global"&&o.childScopes[0]&&o.block===o.childScopes[0].block&&i(o.childScopes[0])},FunctionDeclaration:a,FunctionExpression:a,ArrowFunctionExpression:a,StaticBlock:a,BlockStatement:a,ForStatement:a,ForInStatement:a,ForOfStatement:a,SwitchStatement:a}}},Ox}var Sx,hI;function kZ(){if(hI)return Sx;hI=1;let r=Pe(),e=Xn(),t=new e.RegExpParser,s=/ {2}/u;function n(i){return i&&i.type==="Literal"&&typeof i.value=="string"}return Sx={meta:{type:"suggestion",docs:{description:"Disallow multiple spaces in regular expressions",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-regex-spaces"},schema:[],fixable:"code",messages:{multipleSpaces:"Spaces are hard to count. Use {{{length}}}."}},create(i){let a=i.sourceCode;function l(c,p,h,f,d){if(!s.test(h))return;let m=[],g;try{g=t.parsePattern(p,0,p.length,{unicode:d.includes("u"),unicodeSets:d.includes("v")})}catch{return}e.visitRegExpAST(g,{onCharacterClassEnter(v){m.push(v)}});let y=/( {2,})(?: [+*{?]|[^+*{?]|$)/gu,b;for(;b=y.exec(p);){let{1:{length:v},index:S}=b;if(m.every(({start:C,end:O})=>S0,d=c.arguments[0];if(c.callee.type==="Identifier"&&c.callee.name==="RegExp"&&n(d)&&!f){let m=d.value,g=d.raw.slice(1,-1),y=d.range[0]+1,b;if(c.arguments.length<2)b="";else{let v=c.arguments[1];if(n(v))b=v.value;else return}l(c,m,g,y,b)}}return{Literal:o,CallExpression:u,NewExpression:u}}},Sx}var Ex,dI;function AZ(){if(dI)return Ex;dI=1;let r=Pe();return Ex={meta:{type:"suggestion",docs:{description:"Disallow specified names in exports",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-restricted-exports"},schema:[{anyOf:[{type:"object",properties:{restrictedNamedExports:{type:"array",items:{type:"string"},uniqueItems:!0}},additionalProperties:!1},{type:"object",properties:{restrictedNamedExports:{type:"array",items:{type:"string",pattern:"^(?!default$)"},uniqueItems:!0},restrictDefaultExports:{type:"object",properties:{direct:{type:"boolean"},named:{type:"boolean"},defaultFrom:{type:"boolean"},namedFrom:{type:"boolean"},namespaceFrom:{type:"boolean"}},additionalProperties:!1}},additionalProperties:!1}]}],messages:{restrictedNamed:"'{{name}}' is restricted from being used as an exported name.",restrictedDefault:"Exporting 'default' is restricted."}},create(e){let t=new Set(e.options[0]&&e.options[0].restrictedNamedExports),s=e.options[0]&&e.options[0].restrictDefaultExports,n=e.sourceCode;function i(a){let l=r.getModuleExportName(a);if(t.has(l)){e.report({node:a,messageId:"restrictedNamed",data:{name:l}});return}if(l==="default")if(a.parent.type==="ExportAllDeclaration")s&&s.namespaceFrom&&e.report({node:a,messageId:"restrictedDefault"});else{let o=!!a.parent.parent.source,u=r.getModuleExportName(a.parent.local);if(!o&&s&&s.named){e.report({node:a,messageId:"restrictedDefault"});return}o&&s&&(u==="default"&&s.defaultFrom||u!=="default"&&s.namedFrom)&&e.report({node:a,messageId:"restrictedDefault"})}}return{ExportAllDeclaration(a){a.exported&&i(a.exported)},ExportDefaultDeclaration(a){s&&s.direct&&e.report({node:a,messageId:"restrictedDefault"})},ExportNamedDeclaration(a){let l=a.declaration;l?l.type==="FunctionDeclaration"||l.type==="ClassDeclaration"?i(l.id):l.type==="VariableDeclaration"&&n.getDeclaredVariables(l).map(o=>o.defs.find(u=>u.parent===l)).map(o=>o.name).forEach(i):a.specifiers.map(o=>o.exported).forEach(i)}}}},Ex}var Cx,mI;function PZ(){return mI||(mI=1,Cx={meta:{type:"suggestion",docs:{description:"Disallow specified global variables",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-restricted-globals"},schema:{type:"array",items:{oneOf:[{type:"string"},{type:"object",properties:{name:{type:"string"},message:{type:"string"}},required:["name"],additionalProperties:!1}]},uniqueItems:!0,minItems:0},messages:{defaultMessage:"Unexpected use of '{{name}}'.",customMessage:"Unexpected use of '{{name}}'. {{customMessage}}"}},create(r){let e=r.sourceCode;if(r.options.length===0)return{};let t=r.options.reduce((i,a)=>(typeof a=="string"?i[a]=null:i[a.name]=a.message,i),{});function s(i){let a=i.identifier.name,l=t[a],o=l?"customMessage":"defaultMessage";r.report({node:i.identifier,messageId:o,data:{name:a,customMessage:l}})}function n(i){return Object.hasOwn(t,i)}return{Program(i){let a=e.getScope(i);a.variables.forEach(l=>{!l.defs.length&&n(l.name)&&l.references.forEach(s)}),a.through.forEach(l=>{n(l.identifier.name)&&s(l)})}}}}),Cx}var wx,gI;function sN(){if(gI)return wx;gI=1;function r(j){return Array.isArray(j)?j:[j]}let e="",t=" ",s="\\",n=/^\s+$/,i=/(?:[^\\]|^)\\$/,a=/^\\!/,l=/^\\#/,o=/\r?\n/g,u=/^\.*\/|^\.+$/,c="/",p="node-ignore";typeof Symbol<"u"&&(p=Symbol.for("node-ignore"));let h=p,f=(j,Q,I)=>Object.defineProperty(j,Q,{value:I}),d=/([0-z])-([0-z])/g,m=()=>!1,g=j=>j.replace(d,(Q,I,N)=>I.charCodeAt(0)<=N.charCodeAt(0)?Q:e),y=j=>{let{length:Q}=j;return j.slice(0,Q-Q%2)},b=[[/^\uFEFF/,()=>e],[/\\?\s+$/,j=>j.indexOf("\\")===0?t:e],[/\\\s/g,()=>t],[/[\\$.|*+(){^]/g,j=>`\\${j}`],[/(?!\\)\?/g,()=>"[^/]"],[/^\//,()=>"^"],[/\//g,()=>"\\/"],[/^\^*\\\*\\\*\\\//,()=>"^(?:.*\\/)?"],[/^(?=[^^])/,function(){return/\/(?!$)/.test(this)?"^":"(?:^|\\/)"}],[/\\\/\\\*\\\*(?=\\\/|$)/g,(j,Q,I)=>Q+6{let N=I.replace(/\\\*/g,"[^\\/]*");return Q+N}],[/\\\\\\(?=[$.|*+(){^])/g,()=>s],[/\\\\/g,()=>s],[/(\\)?\[([^\]/]*?)(\\*)($|\])/g,(j,Q,I,N,R)=>Q===s?`\\[${I}${y(N)}${R}`:R==="]"&&N.length%2===0?`[${g(I)}${N}]`:"[]"],[/(?:[^*])$/,j=>/\/$/.test(j)?`${j}$`:`${j}(?=$|\\/$)`],[/(\^|\\\/)?\\\*$/,(j,Q)=>`${Q?`${Q}[^/]+`:"[^/]*"}(?=$|\\/$)`]],v=Object.create(null),S=(j,Q)=>{let I=v[j];return I||(I=b.reduce((N,R)=>N.replace(R[0],R[1].bind(j)),j),v[j]=I),Q?new RegExp(I,"i"):new RegExp(I)},C=j=>typeof j=="string",O=j=>j&&C(j)&&!n.test(j)&&!i.test(j)&&j.indexOf("#")!==0,w=j=>j.split(o);class E{constructor(Q,I,N,R){this.origin=Q,this.pattern=I,this.negative=N,this.regex=R}}let k=(j,Q)=>{let I=j,N=!1;j.indexOf("!")===0&&(N=!0,j=j.substr(1)),j=j.replace(a,"!").replace(l,"#");let R=S(j,Q);return new E(I,j,N,R)},A=(j,Q)=>{throw new Q(j)},D=(j,Q,I)=>C(j)?j?D.isNotRelative(j)?I(`path should be a \`path.relative()\`d string, but got "${Q}"`,RangeError):!0:I("path must not be empty",TypeError):I(`path must be a string, but got \`${Q}\``,TypeError),_=j=>u.test(j);D.isNotRelative=_,D.convert=j=>j;class B{constructor({ignorecase:Q=!0,ignoreCase:I=Q,allowRelativePaths:N=!1}={}){f(this,h,!0),this._rules=[],this._ignoreCase=I,this._allowRelativePaths=N,this._initCache()}_initCache(){this._ignoreCache=Object.create(null),this._testCache=Object.create(null)}_addPattern(Q){if(Q&&Q[h]){this._rules=this._rules.concat(Q._rules),this._added=!0;return}if(O(Q)){let I=k(Q,this._ignoreCase);this._added=!0,this._rules.push(I)}}add(Q){return this._added=!1,r(C(Q)?w(Q):Q).forEach(this._addPattern,this),this._added&&this._initCache(),this}addPattern(Q){return this.add(Q)}_testOne(Q,I){let N=!1,R=!1;return this._rules.forEach(U=>{let{negative:V}=U;if(R===V&&N!==R||V&&!N&&!R&&!I)return;U.regex.test(Q)&&(N=!V,R=V)}),{ignored:N,unignored:R}}_test(Q,I,N,R){let U=Q&&D.convert(Q);return D(U,Q,this._allowRelativePaths?m:A),this._t(U,I,N,R)}_t(Q,I,N,R){if(Q in I)return I[Q];if(R||(R=Q.split(c)),R.pop(),!R.length)return I[Q]=this._testOne(Q,N);let U=this._t(R.join(c)+c,I,N,R);return I[Q]=U.ignored?U:this._testOne(Q,N)}ignores(Q){return this._test(Q,this._ignoreCache,!1).ignored}createFilter(){return Q=>!this.ignores(Q)}filter(Q){return r(Q).filter(this.createFilter())}test(Q){return this._test(Q,this._testCache,!0)}}let T=j=>new B(j),F=j=>D(j&&D.convert(j),j,m);if(T.isPathValid=F,T.default=T,wx=T,typeof Bt<"u"&&(Bt.env&&Bt.env.IGNORE_TEST_WIN32||Bt.platform==="win32")){let j=I=>/^\\\\\?\\/.test(I)||/["<>|\u0000-\u001F]+/u.test(I)?I:I.replace(/\\/g,"/");D.convert=j;let Q=/^[a-z]:\//i;D.isNotRelative=I=>Q.test(I)||_(I)}return wx}var kx,yI;function TZ(){if(yI)return kx;yI=1;let r=Pe(),e=sN(),t={type:"array",items:{anyOf:[{type:"string"},{type:"object",properties:{name:{type:"string"},message:{type:"string",minLength:1},importNames:{type:"array",items:{type:"string"}},allowImportNames:{type:"array",items:{type:"string"}}},additionalProperties:!1,required:["name"],not:{required:["importNames","allowImportNames"]}}]},uniqueItems:!0};return kx={meta:{type:"suggestion",docs:{description:"Disallow specified modules when loaded by `import`",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-restricted-imports"},messages:{path:"'{{importSource}}' import is restricted from being used.",pathWithCustomMessage:"'{{importSource}}' import is restricted from being used. {{customMessage}}",patterns:"'{{importSource}}' import is restricted from being used by a pattern.",patternWithCustomMessage:"'{{importSource}}' import is restricted from being used by a pattern. {{customMessage}}",patternAndImportName:"'{{importName}}' import from '{{importSource}}' is restricted from being used by a pattern.",patternAndImportNameWithCustomMessage:"'{{importName}}' import from '{{importSource}}' is restricted from being used by a pattern. {{customMessage}}",patternAndEverything:"* import is invalid because '{{importNames}}' from '{{importSource}}' is restricted from being used by a pattern.",patternAndEverythingWithRegexImportName:"* import is invalid because import name matching '{{importNames}}' pattern from '{{importSource}}' is restricted from being used.",patternAndEverythingWithCustomMessage:"* import is invalid because '{{importNames}}' from '{{importSource}}' is restricted from being used by a pattern. {{customMessage}}",patternAndEverythingWithRegexImportNameAndCustomMessage:"* import is invalid because import name matching '{{importNames}}' pattern from '{{importSource}}' is restricted from being used. {{customMessage}}",everything:"* import is invalid because '{{importNames}}' from '{{importSource}}' is restricted.",everythingWithCustomMessage:"* import is invalid because '{{importNames}}' from '{{importSource}}' is restricted. {{customMessage}}",importName:"'{{importName}}' import from '{{importSource}}' is restricted.",importNameWithCustomMessage:"'{{importName}}' import from '{{importSource}}' is restricted. {{customMessage}}",allowedImportName:"'{{importName}}' import from '{{importSource}}' is restricted because only '{{allowedImportNames}}' import(s) is/are allowed.",allowedImportNameWithCustomMessage:"'{{importName}}' import from '{{importSource}}' is restricted because only '{{allowedImportNames}}' import(s) is/are allowed. {{customMessage}}",everythingWithAllowImportNames:"* import is invalid because only '{{allowedImportNames}}' from '{{importSource}}' is/are allowed.",everythingWithAllowImportNamesAndCustomMessage:"* import is invalid because only '{{allowedImportNames}}' from '{{importSource}}' is/are allowed. {{customMessage}}",allowedImportNamePattern:"'{{importName}}' import from '{{importSource}}' is restricted because only imports that match the pattern '{{allowedImportNamePattern}}' are allowed from '{{importSource}}'.",allowedImportNamePatternWithCustomMessage:"'{{importName}}' import from '{{importSource}}' is restricted because only imports that match the pattern '{{allowedImportNamePattern}}' are allowed from '{{importSource}}'. {{customMessage}}",everythingWithAllowedImportNamePattern:"* import is invalid because only imports that match the pattern '{{allowedImportNamePattern}}' from '{{importSource}}' are allowed.",everythingWithAllowedImportNamePatternWithCustomMessage:"* import is invalid because only imports that match the pattern '{{allowedImportNamePattern}}' from '{{importSource}}' are allowed. {{customMessage}}"},schema:{anyOf:[t,{type:"array",items:[{type:"object",properties:{paths:t,patterns:{anyOf:[{type:"array",items:{type:"string"},uniqueItems:!0},{type:"array",items:{type:"object",properties:{importNames:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0},allowImportNames:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0},group:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0},importNamePattern:{type:"string"},allowImportNamePattern:{type:"string"},message:{type:"string",minLength:1},caseSensitive:{type:"boolean"}},additionalProperties:!1,required:["group"],not:{anyOf:[{required:["importNames","allowImportNames"]},{required:["importNamePattern","allowImportNamePattern"]},{required:["importNames","allowImportNamePattern"]},{required:["importNamePattern","allowImportNames"]},{required:["allowImportNames","allowImportNamePattern"]}]}},uniqueItems:!0}]}},additionalProperties:!1}],additionalItems:!1}]}},create(n){let i=n.sourceCode,a=Array.isArray(n.options)?n.options:[],l=typeof a[0]=="object"&&(Object.hasOwn(a[0],"paths")||Object.hasOwn(a[0],"patterns")),o=(l?a[0].paths:n.options)||[],u=o.reduce((g,y)=>{let b=typeof y=="string"?y:y.name;return g[b]||(g[b]=[]),typeof y=="string"?g[b].push({}):g[b].push({message:y.message,importNames:y.importNames,allowImportNames:y.allowImportNames}),g},Object.create(null)),c=(l?a[0].patterns:[])||[];c.length>0&&typeof c[0]=="string"&&(c=[{group:c}]);let p=c.map(({group:g,message:y,caseSensitive:b,importNames:v,importNamePattern:S,allowImportNames:C,allowImportNamePattern:O})=>({matcher:e({allowRelativePaths:!0,ignorecase:!b}).add(g),customMessage:y,importNames:v,importNamePattern:S,allowImportNames:C,allowImportNamePattern:O}));if(Object.keys(o).length===0&&p.length===0)return{};function h(g,y,b){Object.hasOwn(u,g)&&u[g].forEach(v=>{let S=v.message,C=v.importNames,O=v.allowImportNames;if(!C&&!O){n.report({node:b,messageId:S?"pathWithCustomMessage":"path",data:{importSource:g,customMessage:S}});return}y.forEach((w,E)=>{if(E==="*"){let[k]=w;C?n.report({node:b,messageId:S?"everythingWithCustomMessage":"everything",loc:k.loc,data:{importSource:g,importNames:C,customMessage:S}}):O&&n.report({node:b,messageId:S?"everythingWithAllowImportNamesAndCustomMessage":"everythingWithAllowImportNames",loc:k.loc,data:{importSource:g,allowedImportNames:O,customMessage:S}});return}C&&C.includes(E)&&w.forEach(k=>{n.report({node:b,messageId:S?"importNameWithCustomMessage":"importName",loc:k.loc,data:{importSource:g,customMessage:S,importName:E}})}),O&&!O.includes(E)&&w.forEach(k=>{n.report({node:b,loc:k.loc,messageId:S?"allowedImportNameWithCustomMessage":"allowedImportName",data:{importSource:g,customMessage:S,importName:E,allowedImportNames:O}})})})})}function f(g,y,b){let v=g.source.value.trim(),S=y.customMessage,C=y.importNames,O=y.importNamePattern?new RegExp(y.importNamePattern,"u"):null,w=y.allowImportNames,E=y.allowImportNamePattern?new RegExp(y.allowImportNamePattern,"u"):null;if(!C&&!w&&!O&&!E){n.report({node:g,messageId:S?"patternWithCustomMessage":"patterns",data:{importSource:v,customMessage:S}});return}b.forEach((k,A)=>{if(A==="*"){let[D]=k;C?n.report({node:g,messageId:S?"patternAndEverythingWithCustomMessage":"patternAndEverything",loc:D.loc,data:{importSource:v,importNames:C,customMessage:S}}):w?n.report({node:g,messageId:S?"everythingWithAllowImportNamesAndCustomMessage":"everythingWithAllowImportNames",loc:D.loc,data:{importSource:v,allowedImportNames:w,customMessage:S}}):E?n.report({node:g,messageId:S?"everythingWithAllowedImportNamePatternWithCustomMessage":"everythingWithAllowedImportNamePattern",loc:D.loc,data:{importSource:v,allowedImportNamePattern:E,customMessage:S}}):n.report({node:g,messageId:S?"patternAndEverythingWithRegexImportNameAndCustomMessage":"patternAndEverythingWithRegexImportName",loc:D.loc,data:{importSource:v,importNames:O,customMessage:S}});return}(C&&C.includes(A)||O&&O.test(A))&&k.forEach(D=>{n.report({node:g,messageId:S?"patternAndImportNameWithCustomMessage":"patternAndImportName",loc:D.loc,data:{importSource:v,customMessage:S,importName:A}})}),w&&!w.includes(A)?k.forEach(D=>{n.report({node:g,messageId:S?"allowedImportNameWithCustomMessage":"allowedImportName",loc:D.loc,data:{importSource:v,customMessage:S,importName:A,allowedImportNames:w}})}):E&&!E.test(A)&&k.forEach(D=>{n.report({node:g,messageId:S?"allowedImportNamePatternWithCustomMessage":"allowedImportNamePattern",loc:D.loc,data:{importSource:v,customMessage:S,importName:A,allowedImportNamePattern:E}})})})}function d(g,y){return y.matcher.ignores(g)}function m(g){let y=g.source.value.trim(),b=new Map;if(g.type==="ExportAllDeclaration"){let v=i.getFirstToken(g,1);b.set("*",[{loc:v.loc}])}else if(g.specifiers)for(let v of g.specifiers){let S,C={loc:v.loc};v.type==="ImportDefaultSpecifier"?S="default":v.type==="ImportNamespaceSpecifier"?S="*":v.imported?S=r.getModuleExportName(v.imported):v.local&&(S=r.getModuleExportName(v.local)),typeof S=="string"&&(b.has(S)?b.get(S).push(C):b.set(S,[C]))}h(y,b,g),p.forEach(v=>{d(y,v)&&f(g,v,b)})}return{ImportDeclaration:m,ExportNamedDeclaration(g){g.source&&m(g)},ExportAllDeclaration:m}}},kx}var Ax,xI;function DZ(){if(xI)return Ax;xI=1;let r=Pe(),e=sN(),t={type:"array",items:{type:"string"},uniqueItems:!0},s={type:"array",items:{anyOf:[{type:"string"},{type:"object",properties:{name:{type:"string"},message:{type:"string",minLength:1}},additionalProperties:!1,required:["name"]}]},uniqueItems:!0};return Ax={meta:{deprecated:!0,replacedBy:[],type:"suggestion",docs:{description:"Disallow specified modules when loaded by `require`",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-restricted-modules"},schema:{anyOf:[s,{type:"array",items:{type:"object",properties:{paths:s,patterns:t},additionalProperties:!1},additionalItems:!1}]},messages:{defaultMessage:"'{{name}}' module is restricted from being used.",customMessage:"'{{name}}' module is restricted from being used. {{customMessage}}",patternMessage:"'{{name}}' module is restricted from being used by a pattern."}},create(n){let i=Array.isArray(n.options)?n.options:[],a=typeof i[0]=="object"&&(Object.hasOwn(i[0],"paths")||Object.hasOwn(i[0],"patterns")),l=(a?i[0].paths:n.options)||[],o=(a?i[0].patterns:[])||[],u=l.reduce((g,y)=>(typeof y=="string"?g[y]=null:g[y.name]=y.message,g),{});if(Object.keys(l).length===0&&o.length===0)return{};let c=e({allowRelativePaths:!0}).add(o);function p(g){return g&&g.type==="Literal"&&typeof g.value=="string"}function h(g){return g.callee.type==="Identifier"&&g.callee.name==="require"}function f(g){return p(g)?g.value.trim():r.isStaticTemplateLiteral(g)?g.quasis[0].value.cooked.trim():null}function d(g,y){let b=u[y],v=b?"customMessage":"defaultMessage";n.report({node:g,messageId:v,data:{name:y,customMessage:b}})}function m(g){return Object.hasOwn(u,g)}return{CallExpression(g){if(h(g)&&g.arguments.length){let y=f(g.arguments[0]);y&&(m(y)&&d(g,y),o.length>0&&c.ignores(y)&&n.report({node:g,messageId:"patternMessage",data:{name:y}}))}}}}},Ax}var Px,bI;function _Z(){if(bI)return Px;bI=1;let r=Pe();return Px={meta:{type:"suggestion",docs:{description:"Disallow certain properties on certain objects",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-restricted-properties"},schema:{type:"array",items:{anyOf:[{type:"object",properties:{object:{type:"string"},property:{type:"string"},message:{type:"string"}},additionalProperties:!1,required:["object"]},{type:"object",properties:{object:{type:"string"},property:{type:"string"},message:{type:"string"}},additionalProperties:!1,required:["property"]}]},uniqueItems:!0},messages:{restrictedObjectProperty:"'{{objectName}}.{{propertyName}}' is restricted from being used.{{message}}",restrictedProperty:"'{{propertyName}}' is restricted from being used.{{message}}"}},create(e){let t=e.options;if(t.length===0)return{};let s=new Map,n=new Map,i=new Map;t.forEach(l=>{let o=l.object,u=l.property;typeof o>"u"?i.set(u,{message:l.message}):typeof u>"u"?n.set(o,{message:l.message}):(s.has(o)||s.set(o,new Map),s.get(o).set(u,{message:l.message}))});function a(l,o,u){if(u===null)return;let c=s.get(o),p=c?c.get(u):n.get(o),h=i.get(u);if(p){let f=p.message?` ${p.message}`:"";e.report({node:l,messageId:"restrictedObjectProperty",data:{objectName:o,propertyName:u,message:f}})}else if(h){let f=h.message?` ${h.message}`:"";e.report({node:l,messageId:"restrictedProperty",data:{propertyName:u,message:f}})}}return{MemberExpression(l){a(l,l.object&&l.object.name,r.getStaticPropertyName(l))},ObjectPattern(l){let o=null;l.parent.type==="VariableDeclarator"?l.parent.init&&l.parent.init.type==="Identifier"&&(o=l.parent.init.name):(l.parent.type==="AssignmentExpression"||l.parent.type==="AssignmentPattern")&&l.parent.right.type==="Identifier"&&(o=l.parent.right.name),l.properties.forEach(u=>{a(l,o,r.getStaticPropertyName(u))})}}}},Px}var Tx,vI;function IZ(){return vI||(vI=1,Tx={meta:{type:"suggestion",docs:{description:"Disallow specified syntax",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-restricted-syntax"},schema:{type:"array",items:{oneOf:[{type:"string"},{type:"object",properties:{selector:{type:"string"},message:{type:"string"}},required:["selector"],additionalProperties:!1}]},uniqueItems:!0,minItems:0},messages:{restrictedSyntax:"{{message}}"}},create(r){return r.options.reduce((e,t)=>{let s=typeof t=="string",n=!s&&!!t.message,i=s?t:t.selector,a=n?t.message:`Using '${i}' is not allowed.`;return Object.assign(e,{[i](l){r.report({node:l,messageId:"restrictedSyntax",data:{message:a}})}})},{})}}),Tx}var Dx,OI;function FZ(){if(OI)return Dx;OI=1;let r=Pe(),e=/^(?:[a-zA-Z]+?Statement|ArrowFunctionExpression|FunctionExpression|ClassExpression)$/u;return Dx={meta:{type:"suggestion",docs:{description:"Disallow assignment operators in `return` statements",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-return-assign"},schema:[{enum:["except-parens","always"]}],messages:{returnAssignment:"Return statement should not contain assignment.",arrowAssignment:"Arrow function should not return assignment."}},create(t){let s=(t.options[0]||"except-parens")!=="except-parens",n=t.sourceCode;return{AssignmentExpression(i){if(!s&&r.isParenthesised(n,i))return;let a=i,l=a.parent;for(;l&&!e.test(l.type);)a=l,l=l.parent;l&&l.type==="ReturnStatement"?t.report({node:l,messageId:"returnAssignment"}):l&&l.type==="ArrowFunctionExpression"&&l.body===a&&t.report({node:l,messageId:"arrowAssignment"})}}}},Dx}var _x,SI;function RZ(){if(SI)return _x;SI=1;let r=Pe();return _x={meta:{hasSuggestions:!0,type:"suggestion",docs:{description:"Disallow unnecessary `return await`",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-return-await"},fixable:null,deprecated:!0,replacedBy:[],schema:[],messages:{removeAwait:"Remove redundant `await`.",redundantUseOfAwait:"Redundant use of `await` on a return value."}},create(e){function t(i){e.report({node:e.sourceCode.getFirstToken(i),loc:i.loc,messageId:"redundantUseOfAwait",suggest:[{messageId:"removeAwait",fix(a){let l=e.sourceCode,[o,u]=l.getFirstTokens(i,2);if(!(o.loc.start.line===u.loc.start.line))return null;let[p,h]=o.range,d=l.text[h]===" "?1:0,m=[p,h+d];return a.removeRange(m)}}]})}function s(i){let a=i;for(;!r.isFunction(a)&&a.type!=="Program";){if(a.parent.type==="TryStatement"&&(a===a.parent.block||a===a.parent.handler&&a.parent.finalizer))return!0;a=a.parent}return!1}function n(i){return i.parent.type==="ArrowFunctionExpression"?!0:i.parent.type==="ReturnStatement"?!s(i.parent):i.parent.type==="ConditionalExpression"&&(i===i.parent.consequent||i===i.parent.alternate)||i.parent.type==="LogicalExpression"&&i===i.parent.right||i.parent.type==="SequenceExpression"&&i===i.parent.expressions.at(-1)?n(i.parent):!1}return{AwaitExpression(i){n(i)&&!s(i)&&t(i)}}}},_x}var Ix,EI;function BZ(){if(EI)return Ix;EI=1;let r=Pe();return Ix={meta:{type:"suggestion",docs:{description:"Disallow `javascript:` urls",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-script-url"},schema:[],messages:{unexpectedScriptURL:"Script URL is a form of eval."}},create(e){function t(s){let n=r.getStaticStringValue(s);typeof n=="string"&&n.toLowerCase().indexOf("javascript:")===0&&e.report({node:s,messageId:"unexpectedScriptURL"})}return{Literal(s){s.value&&typeof s.value=="string"&&t(s)},TemplateLiteral(s){s.parent&&s.parent.type==="TaggedTemplateExpression"||t(s)}}}},Ix}var Fx,CI;function NZ(){if(CI)return Fx;CI=1;let r=Pe(),e=/\s+/gu;function t(s,n,i,a){if(!(!s||!n))if(s.type==="Identifier"&&n.type==="Identifier"&&s.name===n.name)a(n);else if(s.type==="ArrayPattern"&&n.type==="ArrayExpression"){let l=Math.min(s.elements.length,n.elements.length);for(let o=0;o=1){let l=0;for(let o=n.properties.length-1;o>=0;--o){let u=n.properties[o].type;if(u==="SpreadElement"||u==="ExperimentalSpreadProperty"){l=o+1;break}}for(let o=0;ol.type===a[o].type&&l.value===a[o].value)}return{BinaryExpression(s){new Set(["===","==","!==","!=",">","<",">=","<="]).has(s.operator)&&t(s.left,s.right)&&r.report({node:s,messageId:"comparingToSelf"})}}}}),Rx}var Bx,kI;function $Z(){if(kI)return Bx;kI=1;let r=Pe(),e={allowInParentheses:!0};return Bx={meta:{type:"suggestion",docs:{description:"Disallow comma operators",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-sequences"},schema:[{type:"object",properties:{allowInParentheses:{type:"boolean",default:!0}},additionalProperties:!1}],messages:{unexpectedCommaExpression:"Unexpected use of comma operator."}},create(t){let s=Object.assign({},e,t.options[0]),n=t.sourceCode,i={DoWhileStatement:"test",IfStatement:"test",SwitchStatement:"discriminant",WhileStatement:"test",WithStatement:"object",ArrowFunctionExpression:"body"};function a(u){return u.parent&&i[u.parent.type]&&u===u.parent[i[u.parent.type]]}function l(u){return r.isParenthesised(n,u)}function o(u){let c=n.getTokenBefore(u,1),p=n.getTokenAfter(u,1);return l(u)&&c&&p&&r.isOpeningParenToken(c)&&c.range[1]<=u.range[0]&&r.isClosingParenToken(p)&&p.range[0]>=u.range[1]}return{SequenceExpression(u){if(u.parent.type==="ForStatement"&&(u===u.parent.init||u===u.parent.update))return;if(s.allowInParentheses){if(a(u)){if(o(u))return}else if(l(u))return}let c=n.getTokenAfter(u.expressions[0],r.isCommaToken);t.report({node:u,loc:c.loc,messageId:"unexpectedCommaExpression"})}}}},Bx}var Nx,AI;function MZ(){if(AI)return Nx;AI=1;let r=Pe(),{findVariable:e}=hr();function t(l,o){let u=e(o,l);return u!==null&&u.scope.type==="global"&&u.defs.length===0}function s(l,o,u,c,p){let h=l.parent;return h.type==="CallExpression"&&h.arguments[p]===l&&r.isSpecificMemberAccess(h.callee,u,c)&&t(r.skipChainExpression(h.callee).object,o)}function n(l,o){if(s(l,o,"Object","defineProperty",2)||s(l,o,"Reflect","defineProperty",2))return!0;let u=l.parent;if(u.type==="Property"&&u.value===l){let c=u.parent;if(c.type==="ObjectExpression"&&(s(c,o,"Object","create",1)||s(c,o,"Object","defineProperties",1)))return!0}return!1}function i(l,o){let u=l.parent;return!!((u.type==="Property"||u.type==="MethodDefinition")&&u.kind==="set"&&u.value===l||u.type==="Property"&&u.value===l&&r.getStaticPropertyName(u)==="set"&&u.parent.type==="ObjectExpression"&&n(u.parent,o))}function a(l){let o=l.upper;return o.type==="function-expression-name"?o.upper:o}return Nx={meta:{type:"problem",docs:{description:"Disallow returning values from setters",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-setter-return"},schema:[],messages:{returnsValue:"Setter cannot return a value."}},create(l){let o=null,u=l.sourceCode;function c(f){let d=a(u.getScope(f));o={upper:o,isSetter:i(f,d)}}function p(){o=o.upper}function h(f){l.report({node:f,messageId:"returnsValue"})}return{FunctionDeclaration:c,FunctionExpression:c,ArrowFunctionExpression(f){c(f),o.isSetter&&f.expression&&h(f.body)},"FunctionDeclaration:exit":p,"FunctionExpression:exit":p,"ArrowFunctionExpression:exit":p,ReturnStatement(f){o&&o.isSetter&&f.argument&&h(f)}}}},Nx}var Lx,PI;function jZ(){if(PI)return Lx;PI=1;let r=Pe(),e=new Set(["ArrowFunctionExpression","FunctionExpression"]),t=new Set(["CallExpression"]),s=/^For(?:In|Of)Statement$/u,n=/^(?:(?:Function|Class)(?:Declaration|Expression)|ArrowFunctionExpression|CatchClause|ImportDeclaration|ExportNamedDeclaration)$/u;return Lx={meta:{type:"suggestion",docs:{description:"Disallow variable declarations from shadowing variables declared in the outer scope",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-shadow"},schema:[{type:"object",properties:{builtinGlobals:{type:"boolean",default:!1},hoist:{enum:["all","functions","never"],default:"functions"},allow:{type:"array",items:{type:"string"}},ignoreOnInitialization:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{noShadow:"'{{name}}' is already declared in the upper scope on line {{shadowedLine}} column {{shadowedColumn}}.",noShadowGlobal:"'{{name}}' is already a global variable."}},create(i){let a={builtinGlobals:i.options[0]&&i.options[0].builtinGlobals,hoist:i.options[0]&&i.options[0].hoist||"functions",allow:i.options[0]&&i.options[0].allow||[],ignoreOnInitialization:i.options[0]&&i.options[0].ignoreOnInitialization},l=i.sourceCode;function o(v,S){return v&&v.range[0]<=S&&S<=v.range[1]}function u(v,S){let C=v;for(;C&&!S(C);)C=C.parent;return C}function c(v){let S=v.upper;return S.type==="function-expression-name"?S.upper:S}function p(v,S){let C=S.defs[0];if(!C)return!1;let{variableScope:O}=v.scope;if(!(e.has(O.block.type)&&c(O)===S.scope))return!1;let w=O.block,{parent:E}=w,k=u(E,_=>t.has(_.type));if(!k)return!1;let A=C.name,D=k.range[1];for(;A;){if(A.type==="VariableDeclarator"){if(o(A.init,D)||s.test(A.parent.parent.type)&&o(A.parent.parent.right,D))return!0;break}else if(A.type==="AssignmentPattern"){if(o(A.right,D))return!0}else if(n.test(A.type))break;A=A.parent}return!1}function h(v){return a.allow.includes(v.name)}function f(v){let S=v.scope.block;return S.type==="ClassDeclaration"&&S.id===v.identifiers[0]}function d(v,S){let C=S.scope,O=S.defs[0],w=O&&O.parent&&O.parent.range,E=v.scope,k=v.defs[0],A=k&&k.name.range;return w&&A&&w[0]0||a.builtinGlobals&&"writeable"in w)&&!d(O,w)&&!(a.ignoreOnInitialization&&p(O,w))&&!(a.hoist!=="all"&&y(O,w))){let E=g(w),k=E.global?"noShadowGlobal":"noShadow",A={name:O.name};E.global||(A.shadowedLine=E.line,A.shadowedColumn=E.column),i.report({node:O.identifiers[0],messageId:k,data:A})}}}return{"Program:exit"(v){let C=l.getScope(v).childScopes.slice();for(;C.length;){let O=C.pop();C.push(...O.childScopes),b(O)}}}}},Lx}var $x,TI;function qZ(){if(TI)return $x;TI=1;function r(e){return e.name==="undefined"&&e.references.every(t=>!t.isWrite())&&e.defs.every(t=>t.node.type==="VariableDeclarator"&&t.node.init===null)}return $x={meta:{type:"suggestion",docs:{description:"Disallow identifiers from shadowing restricted names",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-shadow-restricted-names"},schema:[],messages:{shadowingRestrictedName:"Shadowing of global property '{{name}}'."}},create(e){let t=new Set(["undefined","NaN","Infinity","arguments","eval"]),s=e.sourceCode;return{"VariableDeclaration, :function, CatchClause"(n){for(let i of s.getDeclaredVariables(n))i.defs.length>0&&t.has(i.name)&&!r(i)&&e.report({node:i.defs[0].name,messageId:"shadowingRestrictedName",data:{name:i.name}})}}}},$x}var Mx,DI;function QZ(){return DI||(DI=1,Mx={meta:{type:"layout",docs:{description:"Disallow spacing between function identifiers and their applications (deprecated)",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-spaced-func"},deprecated:!0,replacedBy:["func-call-spacing"],fixable:"whitespace",schema:[],messages:{noSpacedFunction:"Unexpected space between function name and paren."}},create(r){let e=r.sourceCode;function t(s){let n=e.getLastToken(s.callee),i=n,a=e.getTokenAfter(n);for(;a&&a.range[1]{let o;for(;(o=r.exec(a))!==null;)n&&!e.test(a.slice(0,o.index))||t.report({node:i,loc:{start:{line:l+1,column:o.index},end:{line:l+1,column:o.index+o[0].length}},messageId:"unexpectedTab"})})}}}},Qx}var Ux,RI;function ZZ(){return RI||(RI=1,Ux={meta:{type:"problem",docs:{description:"Disallow template literal placeholder syntax in regular strings",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-template-curly-in-string"},schema:[],messages:{unexpectedTemplateExpression:"Unexpected template string expression."}},create(r){let e=/\$\{[^}]+\}/u;return{Literal(t){typeof t.value=="string"&&e.test(t.value)&&r.report({node:t,messageId:"unexpectedTemplateExpression"})}}}}),Ux}var Vx,BI;function zZ(){return BI||(BI=1,Vx={meta:{type:"suggestion",docs:{description:"Disallow ternary operators",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-ternary"},schema:[],messages:{noTernaryOperator:"Ternary operator used."}},create(r){return{ConditionalExpression(e){r.report({node:e,messageId:"noTernaryOperator"})}}}}),Vx}var Wx,NI;function XZ(){if(NI)return Wx;NI=1;let r=Pe();function e(s){return s.type==="FunctionExpression"&&s.parent.type==="MethodDefinition"&&s.parent.kind==="constructor"}class t{superCalled=!1;invalidNodes=[]}return Wx={meta:{type:"problem",docs:{description:"Disallow `this`/`super` before calling `super()` in constructors",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-this-before-super"},schema:[],messages:{noBeforeSuper:"'{{kind}}' is not allowed before 'super()'."}},create(s){let n=null,i=Object.create(null);function a(h){return!h.reachable||i[h.id]?.superCalled}function l(){return!!(n&&n.isConstructor&&n.hasExtends)}function o(h){for(let f of h)if(!a(f))return!1;return!0}function u(){return l()&&!o(n.currentSegments)}function c(h){let f=n.currentSegments;for(let d of f)d.reachable&&i[d.id].invalidNodes.push(h)}function p(){let h=n.currentSegments;for(let f of h)f.reachable&&(i[f.id].superCalled=!0)}return{onCodePathStart(h,f){if(e(f)){let d=f.parent.parent.parent;n={upper:n,isConstructor:!0,hasExtends:!!(d.superClass&&!r.isNullOrUndefined(d.superClass)),codePath:h,currentSegments:new Set}}else n={upper:n,isConstructor:!1,hasExtends:!1,codePath:h,currentSegments:new Set}},onCodePathEnd(h){let f=n.hasExtends;if(n=n.upper,!f)return;let d=new Set;h.traverseSegments((m,g)=>{let y=i[m.id],b=y.invalidNodes.filter(v=>!d.has(v));for(let v of b)d.add(v),s.report({messageId:"noBeforeSuper",node:v,data:{kind:v.type==="Super"?"super":"this"}});y.superCalled&&g.skip()})},onCodePathSegmentStart(h){n.currentSegments.add(h),l()&&(i[h.id]={superCalled:h.prevSegments.length>0&&h.prevSegments.every(a),invalidNodes:[]})},onUnreachableCodePathSegmentStart(h){n.currentSegments.add(h)},onUnreachableCodePathSegmentEnd(h){n.currentSegments.delete(h)},onCodePathSegmentEnd(h){n.currentSegments.delete(h)},onCodePathSegmentLoop(h,f){l()&&n.codePath.traverseSegments({first:f,last:h},(d,m)=>{let g=i[d.id]??new t;g.superCalled?m.skip():d.prevSegments.length>0&&d.prevSegments.every(a)&&(g.superCalled=!0),i[d.id]=g})},ThisExpression(h){u()&&c(h)},Super(h){!r.isCallee(h)&&u()&&c(h)},"CallExpression:exit"(h){h.callee.type==="Super"&&u()&&p()},"Program:exit"(){i=Object.create(null)}}}},Wx}var Zx,LI;function GZ(){if(LI)return Zx;LI=1;let r=Pe();return Zx={meta:{type:"suggestion",docs:{description:"Disallow throwing literals as exceptions",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-throw-literal"},schema:[],messages:{object:"Expected an error object to be thrown.",undef:"Do not throw undefined."}},create(e){return{ThrowStatement(t){r.couldBeError(t.argument)?t.argument.type==="Identifier"&&t.argument.name==="undefined"&&e.report({node:t,messageId:"undef"}):e.report({node:t,messageId:"object"})}}}},Zx}var zx,$I;function YZ(){if($I)return zx;$I=1;let r=Pe();return zx={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Disallow trailing whitespace at the end of lines",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-trailing-spaces"},fixable:"whitespace",schema:[{type:"object",properties:{skipBlankLines:{type:"boolean",default:!1},ignoreComments:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{trailingSpace:"Trailing spaces not allowed."}},create(e){let t=e.sourceCode,s="[ \xA0\u2000-\u200B\u3000]",n=`^${s}*$`,i=`${s}+$`,a=e.options[0]||{},l=a.skipBlankLines||!1,o=a.ignoreComments||!1;function u(p,h,f){e.report({node:p,loc:h,messageId:"trailingSpace",fix(d){return d.removeRange(f)}})}function c(p){let h=new Set;return p.forEach(f=>{let d=f.type==="Block"?f.loc.end.line-1:f.loc.end.line;for(let m=f.loc.start.line;m<=d;m++)h.add(m)}),h}return{Program:function(h){let f=new RegExp(i,"u"),d=new RegExp(n,"u"),m=t.lines,g=t.getText().match(r.createGlobalLinebreakMatcher()),y=t.getAllComments(),b=c(y),v=0;for(let S=0,C=m.length;SB.parent.range[0]&&_{let o=l.identifier;!s&&r(o)||e.report({node:o,messageId:"undef",data:o})})}}}},Xx}var Gx,jI;function KZ(){if(jI)return Gx;jI=1;let r=Pe();return Gx={meta:{type:"suggestion",docs:{description:"Disallow initializing variables to `undefined`",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-undef-init"},schema:[],fixable:"code",messages:{unnecessaryUndefinedInit:"It's not necessary to initialize '{{name}}' to undefined."}},create(e){let t=e.sourceCode;return{VariableDeclarator(s){let n=t.getText(s.id),i=s.init&&s.init.name,a=t.getScope(s),l=r.getVariableByName(a,"undefined"),o=l&&l.defs.length>0,u=t.getLastToken(s);i==="undefined"&&s.parent.kind!=="const"&&!o&&e.report({node:s,messageId:"unnecessaryUndefinedInit",data:{name:n},fix(c){return s.parent.kind==="var"||s.id.type==="ArrayPattern"||s.id.type==="ObjectPattern"||t.commentsExistBetween(s.id,u)?null:c.removeRange([s.id.range[1],s.range[1]])}})}}}},Gx}var Yx,qI;function JZ(){return qI||(qI=1,Yx={meta:{type:"suggestion",docs:{description:"Disallow the use of `undefined` as an identifier",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-undefined"},schema:[],messages:{unexpectedUndefined:"Unexpected use of undefined."}},create(r){let e=r.sourceCode;function t(n){r.report({node:n,messageId:"unexpectedUndefined"})}function s(n){let i=n.set.get("undefined");if(!i)return;let a=i.references,l=i.defs;a.filter(o=>!o.init).forEach(o=>t(o.identifier)),l.forEach(o=>t(o.name))}return{"Program:exit"(n){let a=[e.getScope(n)];for(;a.length;){let l=a.pop();a.push(...l.childScopes),s(l)}}}}}),Yx}var Hx,QI;function ez(){return QI||(QI=1,Hx={meta:{type:"suggestion",docs:{description:"Disallow dangling underscores in identifiers",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-underscore-dangle"},schema:[{type:"object",properties:{allow:{type:"array",items:{type:"string"}},allowAfterThis:{type:"boolean",default:!1},allowAfterSuper:{type:"boolean",default:!1},allowAfterThisConstructor:{type:"boolean",default:!1},enforceInMethodNames:{type:"boolean",default:!1},allowFunctionParams:{type:"boolean",default:!0},enforceInClassFields:{type:"boolean",default:!1},allowInArrayDestructuring:{type:"boolean",default:!0},allowInObjectDestructuring:{type:"boolean",default:!0}},additionalProperties:!1}],messages:{unexpectedUnderscore:"Unexpected dangling '_' in '{{identifier}}'."}},create(r){let e=r.options[0]||{},t=e.allow?e.allow:[],s=typeof e.allowAfterThis<"u"?e.allowAfterThis:!1,n=typeof e.allowAfterSuper<"u"?e.allowAfterSuper:!1,i=typeof e.allowAfterThisConstructor<"u"?e.allowAfterThisConstructor:!1,a=typeof e.enforceInMethodNames<"u"?e.enforceInMethodNames:!1,l=typeof e.enforceInClassFields<"u"?e.enforceInClassFields:!1,o=typeof e.allowFunctionParams<"u"?e.allowFunctionParams:!0,u=typeof e.allowInArrayDestructuring<"u"?e.allowInArrayDestructuring:!0,c=typeof e.allowInObjectDestructuring<"u"?e.allowInObjectDestructuring:!0,p=r.sourceCode;function h(w){return t.includes(w)}function f(w){let E=w.length;return w!=="_"&&(w[0]==="_"||w[E-1]==="_")}function d(w){return w==="__proto__"}function m(w){return w==="_"}function g(w){return w.object.type==="MemberExpression"&&w.object.property.name==="constructor"&&w.object.object.type==="ThisExpression"}function y(w){o||w.params.forEach(E=>{let{type:k}=E,A;if(k==="RestElement"?A=E.argument:k==="AssignmentPattern"?A=E.left:A=E,A.type==="Identifier"){let D=A.name;f(D)&&!h(D)&&r.report({node:E,messageId:"unexpectedUnderscore",data:{identifier:D}})}})}function b(w){if(w.type==="FunctionDeclaration"&&w.id){let E=w.id.name;typeof E<"u"&&f(E)&&!h(E)&&r.report({node:w,messageId:"unexpectedUnderscore",data:{identifier:E}})}y(w)}function v(w){p.getDeclaredVariables(w).forEach(E=>{let A=E.defs.find(B=>B.node===w).name,D=A.name,_=A.parent;for(;!["VariableDeclarator","ArrayPattern","ObjectPattern"].includes(_.type);)_=_.parent;f(D)&&!m(D)&&!h(D)&&!(u&&_.type==="ArrayPattern")&&!(c&&_.type==="ObjectPattern")&&r.report({node:w,messageId:"unexpectedUnderscore",data:{identifier:D}})})}function S(w){let E=w.property.name,k=w.object.type==="ThisExpression",A=w.object.type==="Super",D=g(w);typeof E<"u"&&f(E)&&!(k&&s)&&!(A&&n)&&!(D&&i)&&!d(E)&&!h(E)&&r.report({node:w,messageId:"unexpectedUnderscore",data:{identifier:E}})}function C(w){let E=w.key.name,k=w.type==="MethodDefinition"||w.type==="Property"&&w.method;typeof E<"u"&&a&&k&&f(E)&&!h(E)&&r.report({node:w,messageId:"unexpectedUnderscore",data:{identifier:w.key.type==="PrivateIdentifier"?`#${E}`:E}})}function O(w){let E=w.key.name;typeof E<"u"&&f(E)&&l&&!h(E)&&r.report({node:w,messageId:"unexpectedUnderscore",data:{identifier:w.key.type==="PrivateIdentifier"?`#${E}`:E}})}return{FunctionDeclaration:b,VariableDeclarator:v,MemberExpression:S,MethodDefinition:C,PropertyDefinition:O,Property:C,FunctionExpression:b,ArrowFunctionExpression:b}}}),Hx}var Kx,UI;function tz(){if(UI)return Kx;UI=1;let r=Pe();return Kx={meta:{type:"problem",docs:{description:"Disallow confusing multiline expressions",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-unexpected-multiline"},schema:[],messages:{function:"Unexpected newline between function and ( of function call.",property:"Unexpected newline between object and [ of property access.",taggedTemplate:"Unexpected newline between template tag and template literal.",division:"Unexpected newline between numerator and division operator."}},create(e){let t=/^[gimsuy]+$/u,s=e.sourceCode;function n(i,a){let l=s.getTokenAfter(i,r.isNotClosingParenToken),o=s.getTokenBefore(l);l.loc.start.line!==o.loc.end.line&&e.report({node:i,loc:l.loc,messageId:a})}return{MemberExpression(i){!i.computed||i.optional||n(i.object,"property")},TaggedTemplateExpression(i){let{quasi:a}=i;s.getTokenBefore(a).loc.end.line!==a.loc.start.line&&e.report({node:i,loc:{start:a.loc.start,end:{line:a.loc.start.line,column:a.loc.start.column+1}},messageId:"taggedTemplate"})},CallExpression(i){i.arguments.length===0||i.optional||n(i.callee,"function")},"BinaryExpression[operator='/'] > BinaryExpression[operator='/'].left"(i){let a=s.getTokenAfter(i,o=>o.value==="/"),l=s.getTokenAfter(a);l.type==="Identifier"&&t.test(l.value)&&a.range[1]===l.range[0]&&n(i.left,"division")}}}},Kx}var Jx,VI;function rz(){if(VI)return Jx;VI=1;let r=DO(),e=Pe(),t=/(?:(?:Call|Class|Function|Member|New|Yield)Expression|Statement|Declaration)$/u,s=/^(?:DoWhile|For|While)Statement$/u,n=/^(?:BinaryExpression|ConditionalExpression)$/u,i=/^(?:ArrowFunction|Class|Function)Expression$/u,a=/^(?:Call|Member|New|TaggedTemplate|Yield)Expression$/u;function l(d){if(d.init){let m=d.resolved&&d.resolved.defs[0];if(!m||m.type!=="Variable"||m.parent.kind!=="var")return!1}return d.isWrite()}function o(d){return!d.modified}function u(d){return!(d.modified||d.group)}function c(d,m){let g=d.range,y=m.identifier.range;return g[0]<=y[0]&&y[1]<=g[1]}let p={WhileStatement:c,DoWhileStatement:c,ForStatement(d,m){return c(d,m)&&!(d.init&&c(d.init,m))}};function h(d){let m=d.identifier;for(;m;){if(m.type==="FunctionDeclaration")return m.id?m:null;m=m.parent}return null}function f(d,m){for(let g=0;g0&&f(E,k),E.filter(u).forEach(y)}return{"Program:exit"(w){let E=[m.getScope(w)];g=new Map;let k;for(;k=E.pop();)E.push(...k.childScopes),k.variables.forEach(O);g.forEach(v),g=null}}}},Jx}var eb,WI;function nz(){if(WI)return eb;WI=1;let r=Pe(),e=new Set(["==","===","!=","!==",">",">=","<","<=","in","instanceof"]),t={"==":"!=","!=":"==","===":"!==","!==":"==="},s=r.getPrecedence({type:"LogicalExpression",operator:"||"});return eb={meta:{type:"suggestion",docs:{description:"Disallow ternary operators when simpler alternatives exist",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-unneeded-ternary"},schema:[{type:"object",properties:{defaultAssignment:{type:"boolean",default:!0}},additionalProperties:!1}],fixable:"code",messages:{unnecessaryConditionalExpression:"Unnecessary use of boolean literals in conditional expression.",unnecessaryConditionalAssignment:"Unnecessary use of conditional expression for default assignment."}},create(n){let a=(n.options[0]||{}).defaultAssignment!==!1,l=n.sourceCode;function o(h){return h.type==="Literal"&&typeof h.value=="boolean"}function u(h){if(h.type==="BinaryExpression"&&Object.hasOwn(t,h.operator)){let f=l.getFirstTokenBetween(h.left,h.right,m=>m.value===h.operator),d=l.getText();return d.slice(h.range[0],f.range[0])+t[h.operator]+d.slice(f.range[1],h.range[1])}return r.getPrecedence(h)=this.startNode.range[0]&&n.range[1]<=this.endNode.range[1]}isConsecutive(n){return this.contains(this.sourceCode.getTokenBefore(n))}merge(n){this.endNode=n}reset(n){this.startNode=this.endNode=n}}return tb={meta:{type:"problem",docs:{description:"Disallow unreachable code after `return`, `throw`, `continue`, and `break` statements",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-unreachable"},schema:[],messages:{unreachableCode:"Unreachable code."}},create(s){let n=null,i=new t(s.sourceCode),a=[],l=new Set;function o(u){let c=null;if(u&&(u.type==="PropertyDefinition"||e(l))){if(i.isEmpty){i.reset(u);return}if(i.contains(u))return;if(i.isConsecutive(u)){i.merge(u);return}c=u}i.isEmpty||s.report({messageId:"unreachableCode",loc:i.location,node:i.startNode}),i.reset(c)}return{onCodePathStart(){a.push(l),l=new Set},onCodePathEnd(){l=a.pop()},onUnreachableCodePathSegmentStart(u){l.add(u)},onUnreachableCodePathSegmentEnd(u){l.delete(u)},onCodePathSegmentEnd(u){l.delete(u)},onCodePathSegmentStart(u){l.add(u)},BlockStatement:o,BreakStatement:o,ClassDeclaration:o,ContinueStatement:o,DebuggerStatement:o,DoWhileStatement:o,ExpressionStatement:o,ForInStatement:o,ForOfStatement:o,ForStatement:o,IfStatement:o,ImportDeclaration:o,LabeledStatement:o,ReturnStatement:o,SwitchStatement:o,ThrowStatement:o,TryStatement:o,VariableDeclaration(u){(u.kind!=="var"||u.declarations.some(r))&&o(u)},WhileStatement:o,WithStatement:o,ExportNamedDeclaration:o,ExportDefaultDeclaration:o,ExportAllDeclaration:o,"Program:exit"(){o()},"MethodDefinition[kind='constructor']"(){n={upper:n,hasSuperCall:!1}},"MethodDefinition[kind='constructor']:exit"(u){let{hasSuperCall:c}=n;if(n=n.upper,!u.value.body)return;let p=u.parent.parent;if(p.superClass&&!c)for(let h of p.body.body)h.type==="PropertyDefinition"&&!h.static&&o(h)},"CallExpression > Super.callee"(){n&&(n.hasSuperCall=!0)}}}},tb}var rb,zI;function iz(){if(zI)return rb;zI=1;let r=["WhileStatement","DoWhileStatement","ForStatement","ForInStatement","ForOfStatement"];function e(n){for(let i of n)if(i.reachable)return!0;return!1}function t(n){let i=n.parent;if(i)switch(i.type){case"WhileStatement":return n===i.test;case"DoWhileStatement":return n===i.body;case"ForStatement":return n===(i.update||i.test||i.body);case"ForInStatement":case"ForOfStatement":return n===i.left}return!1}function s(n,i){return n.filter(a=>!i.includes(a))}return rb={meta:{type:"problem",docs:{description:"Disallow loops with a body that allows only one iteration",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-unreachable-loop"},schema:[{type:"object",properties:{ignore:{type:"array",items:{enum:r},uniqueItems:!0}},additionalProperties:!1}],messages:{invalid:"Invalid loop. Its body allows only one iteration."}},create(n){let i=n.options[0]&&n.options[0].ignore||[],a=s(r,i),l=a.join(","),o=new Map,u=new Set,c=[],p=new Set;return{onCodePathStart(){c.push(p),p=new Set},onCodePathEnd(){p=c.pop()},onUnreachableCodePathSegmentStart(h){p.add(h)},onUnreachableCodePathSegmentEnd(h){p.delete(h)},onCodePathSegmentEnd(h){p.delete(h)},onCodePathSegmentStart(h,f){if(p.add(h),t(f)){let d=f.parent;o.set(h,d)}},onCodePathSegmentLoop(h,f,d){let m=o.get(f);(d===m||d.type==="ContinueStatement")&&u.delete(m)},[l](h){e(p)&&u.add(h)},"Program:exit"(){u.forEach(h=>n.report({node:h,messageId:"invalid"}))}}}},rb}var nb,XI;function az(){if(XI)return nb;XI=1;let r=/^(?:Program|(?:Function|Class)(?:Declaration|Expression)|ArrowFunctionExpression)$/u,e=/^(?:Program|(?:Function|Class)(?:Declaration|Expression)|ArrowFunctionExpression|DoWhileStatement|WhileStatement|ForOfStatement|ForInStatement|ForStatement|SwitchStatement)$/u,t=/^(?:Program|(?:Function|Class)(?:Declaration|Expression)|ArrowFunctionExpression|DoWhileStatement|WhileStatement|ForOfStatement|ForInStatement|ForStatement)$/u;return nb={meta:{type:"problem",docs:{description:"Disallow control flow statements in `finally` blocks",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-unsafe-finally"},schema:[],messages:{unsafeUsage:"Unsafe usage of {{nodeType}}."}},create(s){function n(l){return l.parent.type==="TryStatement"&&l.parent.finalizer===l}function i(l,o){let u=!1,c;l.type==="BreakStatement"&&!l.label?c=e:l.type==="ContinueStatement"?c=t:c=r;for(let p=l;p&&!c.test(p.type);p=p.parent)if(p.parent.label&&o&&p.parent.label.name===o.name&&(u=!0),n(p))return!(o&&u);return!1}function a(l){i(l,l.label)&&s.report({messageId:"unsafeUsage",data:{nodeType:l.type},node:l,line:l.loc.line,column:l.loc.column})}return{ReturnStatement:a,ThrowStatement:a,BreakStatement:a,ContinueStatement:a}}},nb}var sb,GI;function oz(){if(GI)return sb;GI=1;let r=Pe();function e(n){return n==="in"||n==="instanceof"}function t(n){return n==="<"||n===">"||n===">="||n==="<="}function s(n){return n.type==="UnaryExpression"&&n.operator==="!"}return sb={meta:{type:"problem",docs:{description:"Disallow negating the left operand of relational operators",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-unsafe-negation"},hasSuggestions:!0,schema:[{type:"object",properties:{enforceForOrderingRelations:{type:"boolean",default:!1}},additionalProperties:!1}],fixable:null,messages:{unexpected:"Unexpected negating the left operand of '{{operator}}' operator.",suggestNegatedExpression:"Negate '{{operator}}' expression instead of its left operand. This changes the current behavior.",suggestParenthesisedNegation:"Wrap negation in '()' to make the intention explicit. This preserves the current behavior."}},create(n){let i=n.sourceCode,l=(n.options[0]||{}).enforceForOrderingRelations===!0;return{BinaryExpression(o){let u=o.operator,c=l&&t(u);(e(u)||c)&&s(o.left)&&!r.isParenthesised(i,o.left)&&n.report({node:o,loc:o.left.loc,messageId:"unexpected",data:{operator:u},suggest:[{messageId:"suggestNegatedExpression",data:{operator:u},fix(p){let f=[i.getFirstToken(o.left).range[1],o.range[1]],d=i.text.slice(f[0],f[1]);return p.replaceTextRange(f,`(${d})`)}},{messageId:"suggestParenthesisedNegation",fix(p){return p.replaceText(o.left,`(${i.getText(o.left)})`)}}]})}}}},sb}var ib,YI;function lz(){if(YI)return ib;YI=1;let r=new Set(["+","-","/","*","%","**"]),e=new Set(["+=","-=","/=","*=","%=","**="]),t=new Set(["in","instanceof"]);function s(n){return n.type==="ObjectPattern"||n.type==="ArrayPattern"}return ib={meta:{type:"problem",docs:{description:"Disallow use of optional chaining in contexts where the `undefined` value is not allowed",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-unsafe-optional-chaining"},schema:[{type:"object",properties:{disallowArithmeticOperators:{type:"boolean",default:!1}},additionalProperties:!1}],fixable:null,messages:{unsafeOptionalChain:"Unsafe usage of optional chaining. If it short-circuits with 'undefined' the evaluation will throw TypeError.",unsafeArithmetic:"Unsafe arithmetic operation on optional chaining. It can result in NaN."}},create(n){let a=(n.options[0]||{}).disallowArithmeticOperators||!1;function l(h){n.report({messageId:"unsafeOptionalChain",node:h})}function o(h){n.report({messageId:"unsafeArithmetic",node:h})}function u(h,f){if(h)switch(h.type){case"LogicalExpression":h.operator==="||"||h.operator==="??"?u(h.right,f):h.operator==="&&"&&(u(h.left,f),u(h.right,f));break;case"SequenceExpression":u(h.expressions.at(-1),f);break;case"ConditionalExpression":u(h.consequent,f),u(h.alternate,f);break;case"AwaitExpression":u(h.argument,f);break;case"ChainExpression":f(h);break}}function c(h){u(h,l)}function p(h){u(h,o)}return{"AssignmentExpression, AssignmentPattern"(h){s(h.left)&&c(h.right)},"ClassDeclaration, ClassExpression"(h){c(h.superClass)},CallExpression(h){h.optional||c(h.callee)},NewExpression(h){c(h.callee)},VariableDeclarator(h){s(h.id)&&c(h.init)},MemberExpression(h){h.optional||c(h.object)},TaggedTemplateExpression(h){c(h.tag)},ForOfStatement(h){c(h.right)},SpreadElement(h){h.parent&&h.parent.type!=="ObjectExpression"&&c(h.argument)},BinaryExpression(h){t.has(h.operator)&&c(h.right),a&&r.has(h.operator)&&(p(h.right),p(h.left))},WithStatement(h){c(h.object)},UnaryExpression(h){a&&r.has(h.operator)&&p(h.argument)},AssignmentExpression(h){a&&e.has(h.operator)&&p(h.right)}}}},ib}var ab,HI;function uz(){if(HI)return ab;HI=1;let r=Pe();function e(){return!0}function t(){return!1}return ab={meta:{type:"suggestion",docs:{description:"Disallow unused expressions",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-unused-expressions"},schema:[{type:"object",properties:{allowShortCircuit:{type:"boolean",default:!1},allowTernary:{type:"boolean",default:!1},allowTaggedTemplates:{type:"boolean",default:!1},enforceForJSX:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{unusedExpression:"Expected an assignment or function call and instead saw an expression."}},create(s){let n=s.options[0]||{},i=n.allowShortCircuit||!1,a=n.allowTernary||!1,l=n.allowTaggedTemplates||!1,o=n.enforceForJSX||!1;function u(d){return d.type==="ExpressionStatement"&&d.expression.type==="Literal"&&typeof d.expression.value=="string"}function c(d,m){for(let g=0;gu.removeRange([o.range[0],o.body.range[0]]):null}),s=s.upper}function l(o){if(!o.label)return;let u=o.label.name,c=s;for(;c;){if(c.label===u){c.used=!0;break}c=c.upper}}return{LabeledStatement:n,"LabeledStatement:exit":a,BreakStatement:l,ContinueStatement:l}}},ob}var lb,JI;function fz(){return JI||(JI=1,lb={meta:{type:"problem",docs:{description:"Disallow unused private class members",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-unused-private-class-members"},schema:[],messages:{unusedPrivateClassMember:"'{{classMemberName}}' is defined but never used."}},create(r){let e=[];function t(s){let n=s.parent.parent,i=n.type==="AssignmentExpression";return!i&&n.type!=="ForInStatement"&&n.type!=="ForOfStatement"&&n.type!=="AssignmentPattern"||n.left!==s.parent?!1:i&&n.operator!=="="?n.parent.type==="ExpressionStatement":!0}return{ClassBody(s){let n=new Map;e.unshift(n);for(let i of s.body)(i.type==="PropertyDefinition"||i.type==="MethodDefinition")&&i.key.type==="PrivateIdentifier"&&n.set(i.key.name,{declaredNode:i,isAccessor:i.type==="MethodDefinition"&&(i.kind==="set"||i.kind==="get")})},PrivateIdentifier(s){let n=e.find(o=>o.has(s.name));if(!n)return;let i=n.get(s.name);if(i.isUsed||s.parent.type==="PropertyDefinition"||s.parent.type==="MethodDefinition")return;if(i.isAccessor){i.isUsed=!0;return}if(t(s))return;let a=s.parent.parent.type,l=s.parent.parent.parent.type;a==="UpdateExpression"&&l==="ExpressionStatement"||a==="Property"&&l==="ObjectPattern"&&s.parent.parent.value===s.parent||a!=="RestElement"&&a!=="ArrayPattern"&&(i.isUsed=!0)},"ClassBody:exit"(){let s=e.shift();for(let[n,{declaredNode:i,isUsed:a}]of s.entries())a||r.report({node:i,loc:i.key.loc,messageId:"unusedPrivateClassMember",data:{classMemberName:`#${n}`}})}}}}),lb}var ub,eF;function pz(){if(eF)return ub;eF=1;let r=Pe();return ub={meta:{type:"problem",docs:{description:"Disallow unused variables",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-unused-vars"},schema:[{oneOf:[{enum:["all","local"]},{type:"object",properties:{vars:{enum:["all","local"]},varsIgnorePattern:{type:"string"},args:{enum:["all","after-used","none"]},ignoreRestSiblings:{type:"boolean"},argsIgnorePattern:{type:"string"},caughtErrors:{enum:["all","none"]},caughtErrorsIgnorePattern:{type:"string"},destructuredArrayIgnorePattern:{type:"string"},ignoreClassWithStaticInitBlock:{type:"boolean"},reportUsedIgnorePattern:{type:"boolean"}},additionalProperties:!1}]}],messages:{unusedVar:"'{{varName}}' is {{action}} but never used{{additional}}.",usedIgnoredVar:"'{{varName}}' is marked as ignored but is used{{additional}}."}},create(e){let t=e.sourceCode,s=/^(?:RestElement|(?:Experimental)?RestProperty)$/u,n={vars:"all",args:"after-used",ignoreRestSiblings:!1,caughtErrors:"all",ignoreClassWithStaticInitBlock:!1,reportUsedIgnorePattern:!1},i=e.options[0];i&&(typeof i=="string"?n.vars=i:(n.vars=i.vars||n.vars,n.args=i.args||n.args,n.ignoreRestSiblings=i.ignoreRestSiblings||n.ignoreRestSiblings,n.caughtErrors=i.caughtErrors||n.caughtErrors,n.ignoreClassWithStaticInitBlock=i.ignoreClassWithStaticInitBlock||n.ignoreClassWithStaticInitBlock,n.reportUsedIgnorePattern=i.reportUsedIgnorePattern||n.reportUsedIgnorePattern,i.varsIgnorePattern&&(n.varsIgnorePattern=new RegExp(i.varsIgnorePattern,"u")),i.argsIgnorePattern&&(n.argsIgnorePattern=new RegExp(i.argsIgnorePattern,"u")),i.caughtErrorsIgnorePattern&&(n.caughtErrorsIgnorePattern=new RegExp(i.caughtErrorsIgnorePattern,"u")),i.destructuredArrayIgnorePattern&&(n.destructuredArrayIgnorePattern=new RegExp(i.destructuredArrayIgnorePattern,"u"))));function a(D){let _,B;switch(D){case"array-destructure":_=n.destructuredArrayIgnorePattern,B="elements of array destructuring";break;case"catch-clause":_=n.caughtErrorsIgnorePattern,B="args";break;case"parameter":_=n.argsIgnorePattern,B="args";break;case"variable":_=n.varsIgnorePattern,B="vars";break;default:throw new Error(`Unexpected variable type: ${D}`)}return _&&(_=_.toString()),[B,_]}function l(D){let _=D.defs&&D.defs[0],B="";if(_){let T,F;switch(_.type){case"CatchClause":n.caughtErrorsIgnorePattern&&([F,T]=a("catch-clause"));break;case"Parameter":n.argsIgnorePattern&&([F,T]=a("parameter"));break;default:n.varsIgnorePattern&&([F,T]=a("variable"));break}T&&F&&(B=`. Allowed unused ${F} must match ${T}`)}return{varName:D.name,action:"defined",additional:B}}function o(D){let _=D.defs&&D.defs[0],B="";if(_){let T,F;_.name.parent.type==="ArrayPattern"&&n.destructuredArrayIgnorePattern?[F,T]=a("array-destructure"):n.varsIgnorePattern&&([F,T]=a("variable")),T&&F&&(B=`. Allowed unused ${F} must match ${T}`)}return{varName:D.name,action:"assigned a value",additional:B}}function u(D,_){let[B,T]=a(_),F="";return T&&B&&(F=`. Used ${B} must not match ${T}`),{varName:D.name,additional:F}}let c=/(?:Statement|Declaration)$/u;function p(D){let _=D.defs[0];if(_){let B=_.node;if(B.type==="VariableDeclarator")B=B.parent;else if(_.type==="Parameter")return!1;return B.parent.type.indexOf("Export")===0}return!1}function h(D){return D.type==="Property"&&D.parent.type==="ObjectPattern"&&s.test(D.parent.properties.at(-1).type)}function f(D){if(n.ignoreRestSiblings){let _=D.defs.some(T=>h(T.name.parent)),B=D.references.some(T=>h(T.identifier.parent));return _||B}return!1}function d(D){return D.isRead()}function m(D,_){let B=D.from;for(;B;){if(_.includes(B.block))return!0;B=B.upper}return!1}function g(D){let _=[];return D.defs.forEach(B=>{let{type:T,node:F}=B;T==="FunctionName"&&_.push(F),T==="Variable"&&F.init&&(F.init.type==="FunctionExpression"||F.init.type==="ArrowFunctionExpression")&&_.push(F.init)}),_}function y(D,_){return D.range[0]>=_.range[0]&&D.range[1]<=_.range[1]}function b(D){let _=D.parent;return _.type==="ExpressionStatement"?!0:_.type==="SequenceExpression"?_.expressions.at(-1)===D?b(_):!0:!1}function v(D,_){let B=D.identifier,T=B.parent,F=D.from.variableScope,j=D.resolved.scope.variableScope,Q=F!==j||r.isInLoop(B);return _&&y(B,_)?_:T.type==="AssignmentExpression"&&b(T)&&B===T.left&&!Q?T.right:null}function S(D,_){let B=D,T=D.parent;for(;T&&y(T,_);){switch(T.type){case"SequenceExpression":if(T.expressions.at(-1)!==B)return!1;break;case"CallExpression":case"NewExpression":return T.callee!==B;case"AssignmentExpression":case"TaggedTemplateExpression":case"YieldExpression":return!0;default:if(c.test(T.type))return!0}B=T,T=T.parent}return!1}function C(D,_){let B=r.getUpperFunction(D);return B&&y(B,_)&&S(B,_)}function O(D,_){let B=D.identifier,T=B.parent;return D.isRead()&&(T.type==="AssignmentExpression"&&T.left===B&&b(T)&&!r.isLogicalAssignmentOperator(T.operator)||T.type==="UpdateExpression"&&b(T)||_&&y(B,_)&&!C(B,_))}function w(D){let _=D.identifier.parent;return _.type==="VariableDeclarator"&&(_=_.parent.parent),_.type!=="ForInStatement"&&_.type!=="ForOfStatement"||(_.body.type==="BlockStatement"?_=_.body.body[0]:_=_.body,!_)?!1:_.type==="ReturnStatement"}function E(D){if(D.eslintUsed)return!0;let _=g(D),B=_.length>0,T=null;return D.references.some(F=>{if(w(F))return!0;let j=O(F,T);return T=v(F,T),d(F)&&!j&&!(B&&m(F,_))})}function k(D){let _=D.defs[0],B=t.getDeclaredVariables(_.node);return!B.slice(B.indexOf(D)+1).some(F=>F.references.length>0||F.eslintUsed)}function A(D,_){let B=D.variables,T=D.childScopes,F,j;if(D.type!=="global"||n.vars==="all")for(F=0,j=B.length;FU.identifier.parent.type==="ArrayPattern");if((I.name.parent.type==="ArrayPattern"||R)&&n.destructuredArrayIgnorePattern&&n.destructuredArrayIgnorePattern.test(I.name.name)){n.reportUsedIgnorePattern&&E(Q)&&e.report({node:I.name,messageId:"usedIgnoredVar",data:u(Q,"array-destructure")});continue}if(N==="ClassName"){let U=I.node.body.body.some(V=>V.type==="StaticBlock");if(n.ignoreClassWithStaticInitBlock&&U)continue}if(N==="CatchClause"){if(n.caughtErrors==="none")continue;if(n.caughtErrorsIgnorePattern&&n.caughtErrorsIgnorePattern.test(I.name.name)){n.reportUsedIgnorePattern&&E(Q)&&e.report({node:I.name,messageId:"usedIgnoredVar",data:u(Q,"catch-clause")});continue}}else if(N==="Parameter"){if((I.node.parent.type==="Property"||I.node.parent.type==="MethodDefinition")&&I.node.parent.kind==="set"||n.args==="none")continue;if(n.argsIgnorePattern&&n.argsIgnorePattern.test(I.name.name)){n.reportUsedIgnorePattern&&E(Q)&&e.report({node:I.name,messageId:"usedIgnoredVar",data:u(Q,"parameter")});continue}if(n.args==="after-used"&&r.isFunction(I.name.parent)&&!k(Q))continue}else if(n.varsIgnorePattern&&n.varsIgnorePattern.test(I.name.name)){n.reportUsedIgnorePattern&&E(Q)&&e.report({node:I.name,messageId:"usedIgnoredVar",data:u(Q,"variable")});continue}}!E(Q)&&!p(Q)&&!f(Q)&&_.push(Q)}for(F=0,j=T.length;F0){let j=F.references.filter(I=>I.isWrite()&&I.from.variableScope===F.scope.variableScope),Q;j.length>0&&(Q=j.at(-1)),e.report({node:Q?Q.identifier:F.identifiers[0],messageId:"unusedVar",data:F.references.some(I=>I.isWrite())?o(F):l(F)})}else if(F.eslintExplicitGlobalComments){let j=F.eslintExplicitGlobalComments[0];e.report({node:D,loc:r.getNameLocationInGlobalDirectiveComment(t,j,F.name),messageId:"unusedVar",data:l(F)})}}}}}},ub}var cb,tF;function hz(){if(tF)return cb;tF=1;let r=/^(?:(?:Function|Class)(?:Declaration|Expression)|ArrowFunctionExpression|CatchClause|ImportDeclaration|ExportNamedDeclaration)$/u,e=/^For(?:In|Of)Statement$/u;function t(o){let u=!0,c=!0,p=!0,h=!1;return typeof o=="string"?u=o!=="nofunc":typeof o=="object"&&o!==null&&(u=o.functions!==!1,c=o.classes!==!1,p=o.variables!==!1,h=!!o.allowNamedExports),{functions:u,classes:c,variables:p,allowNamedExports:h}}function s(o,u){return o&&o.range[0]<=u&&u<=o.range[1]}function n(o,u){return o.body.some(c=>c.type==="StaticBlock"&&s(c,u)||c.type==="PropertyDefinition"&&c.static&&c.value&&s(c.value,u))}function i(o){return o.type==="class-static-block"?!0:o.type==="class-field-initializer"?o.block.parent.static:!1}function a(o){let u=o.resolved,c=o.from;for(;u.scope.variableScope!==c.variableScope;)if(i(c.variableScope))c=c.variableScope.upper;else return!0;return!1}function l(o){if(a(o))return!1;let u=o.identifier.range[1],c=o.resolved.defs[0];if(c.type==="ClassName"){let h=c.node;return s(h,u)&&!n(h.body,u)}let p=c.name.parent;for(;p;){if(p.type==="VariableDeclarator"){if(s(p.init,u)||e.test(p.parent.parent.type)&&s(p.parent.parent.right,u))return!0;break}else if(p.type==="AssignmentPattern"){if(s(p.right,u))return!0}else if(r.test(p.type))break;p=p.parent}return!1}return cb={meta:{type:"problem",docs:{description:"Disallow the use of variables before they are defined",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-use-before-define"},schema:[{oneOf:[{enum:["nofunc"]},{type:"object",properties:{functions:{type:"boolean"},classes:{type:"boolean"},variables:{type:"boolean"},allowNamedExports:{type:"boolean"}},additionalProperties:!1}]}],messages:{usedBeforeDefined:"'{{name}}' was used before it was defined."}},create(o){let u=t(o.options[0]),c=o.sourceCode;function p(f){if(f.init)return!1;let{identifier:d}=f;if(u.allowNamedExports&&d.parent.type==="ExportSpecifier"&&d.parent.local===d)return!1;let m=f.resolved;if(!m||m.defs.length===0)return!1;let g=m.defs[0].type;return!(!u.functions&&g==="FunctionName"||(!u.variables&&g==="Variable"||!u.classes&&g==="ClassName")&&a(f))}function h(f){f.references.filter(p).forEach(d=>{let g=d.resolved.defs[0].name;(d.identifier.range[1]v.nextSegments)};function*g(){for(yield*m.results;m.queueSegments.length>0;){let v=m.queueSegments.shift();if(m.subsequentSegments.has(v))continue;m.subsequentSegments.add(v);let S=d.find(O=>O.segments.includes(v)&&!s(O,f.identifier));S||m.queueSegments.push(...v.nextSegments);let C={segment:v,assignment:S};m.results.push(C),yield C}}let y=f.variable.references.filter(v=>v.isRead());if(!y.length)return;let b=d.find(v=>v===f||v.segments.length&&v.segments.every(S=>!f.segments.includes(S))?!1:!!(t(f,v.identifier)||v.expression&&v.expression.range[0]<=f.identifier.range[0]&&f.identifier.range[1]<=v.expression.range[1]));for(let v of y){if(c.scope!==o(v.from))return;if(t(f,v.identifier)&&(s(f,v.identifier)||f.segments.some(S=>p(S,v.identifier)))){if(b&&t(b,v.identifier))continue;return}if(!b){for(let S of g())if(p(S.segment,v.identifier)){if(S.assignment&&t(S.assignment,v.identifier))continue;return}}}n.report({node:f.identifier,messageId:"unnecessaryAssignment"})}for(let f of c.assignments.values()){f.sort((d,m)=>d.identifier.range[0]-m.identifier.range[0]);for(let d of f)h(d,f)}}return{onCodePathStart(c,p){let h=i.getScope(p);a={upper:a,codePath:c,scope:h,segments:Object.create(null),currentSegments:new Set,assignments:new Map},l.add(a.scope)},onCodePathEnd(){u(a),a=a.upper},onCodePathSegmentStart(c){let p={segment:c,first:null,last:null};a.segments[c.id]=p,a.currentSegments.add(c)},onCodePathSegmentEnd(c){a.currentSegments.delete(c)},Identifier(c){for(let p of a.currentSegments){let h=a.segments[p.id];h.first||(h.first=c),h.last=c}},":matches(VariableDeclarator[init!=null], AssignmentExpression, UpdateExpression):exit"(c){if(a.currentSegments.size===0)return;let p=a.assignments,h,f=null;c.type==="VariableDeclarator"?(h=c.id,f=c.init):c.type==="AssignmentExpression"?(h=c.left,f=c.right):h=c.argument;for(let d of e(h)){let m=i.getScope(d),g=r(m,d);if(!g||g.scope.type==="global"&&g.defs.length===0||a.scope!==o(g.scope)||g.eslintUsed||g.scope.type==="module"&&(g.defs.some(b=>b.type==="Variable"&&b.parent.parent.type==="ExportNamedDeclaration"||b.type==="FunctionName"&&(b.node.parent.type==="ExportNamedDeclaration"||b.node.parent.type==="ExportDefaultDeclaration")||b.type==="ClassName"&&(b.node.parent.type==="ExportNamedDeclaration"||b.node.parent.type==="ExportDefaultDeclaration"))||g.references.some(b=>b.identifier.parent.type==="ExportSpecifier")))continue;let y=p.get(g);y||(y=[],p.set(g,y)),y.push({variable:g,identifier:d,node:c,expression:f,segments:[...a.currentSegments]})}}}}},fb}var pb,nF;function mz(){if(nF)return pb;nF=1;let{CALL:r,CONSTRUCT:e,ReferenceTracker:t,getStringIfConstant:s}=hr(),{RegExpParser:n,visitRegExpAST:i}=Xn(),a=new n;function l(c){let p=[],h=c;do p.push(h),h=h.parent;while(h);return p}function o(c){return c.type==="Assertion"&&(c.kind==="lookahead"||c.kind==="lookbehind")}function u(c){return o(c)&&c.negate}return pb={meta:{type:"problem",docs:{description:"Disallow useless backreferences in regular expressions",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-useless-backreference"},schema:[],messages:{nested:"Backreference '{{ bref }}' will be ignored. It references group '{{ group }}' from within that group.",forward:"Backreference '{{ bref }}' will be ignored. It references group '{{ group }}' which appears later in the pattern.",backward:"Backreference '{{ bref }}' will be ignored. It references group '{{ group }}' which appears before in the same lookbehind.",disjunctive:"Backreference '{{ bref }}' will be ignored. It references group '{{ group }}' which is in another alternative.",intoNegativeLookaround:"Backreference '{{ bref }}' will be ignored. It references group '{{ group }}' which is in a negative lookaround."}},create(c){let p=c.sourceCode;function h(f,d,m){let g;try{g=a.parsePattern(d,0,d.length,{unicode:m.includes("u"),unicodeSets:m.includes("v")})}catch{return}i(g,{onBackreferenceEnter(y){let b=y.resolved,v=l(y),S=l(b),C=null;if(v.includes(b))C="nested";else{let O=v.length-1,w=S.length-1;do O--,w--;while(v[O]===S[w]);let E=w+1,k=S.slice(0,E),A=S.slice(E),D=A.find(o),_=D&&D.kind==="lookbehind";!_&&y.end<=b.start?C="forward":_&&b.end<=y.start?C="backward":k.at(-1).type==="Alternative"?C="disjunctive":k.some(u)&&(C="intoNegativeLookaround")}C&&c.report({node:f,messageId:C,data:{bref:y.raw,group:b.raw}})}})}return{"Literal[regex]"(f){let{pattern:d,flags:m}=f.regex;h(f,d,m)},Program(f){let d=p.getScope(f),m=new t(d),g={RegExp:{[r]:!0,[e]:!0}};for(let{node:y}of m.iterateGlobalReferences(g)){let[b,v]=y.arguments,S=s(b,d),C=s(v,d);typeof S=="string"&&h(y,S,C||"")}}}}},pb}var hb,sF;function gz(){if(sF)return hb;sF=1;let r=Pe();function e(s){let n=r.skipChainExpression(s.callee);return n.type==="MemberExpression"&&n.property.type==="Identifier"&&n.computed===!1&&(n.property.name==="call"&&s.arguments.length>=1||n.property.name==="apply"&&s.arguments.length===2&&s.arguments[1].type==="ArrayExpression")}function t(s,n,i){return s?r.equalTokens(s,n,i):r.isNullOrUndefined(n)}return hb={meta:{type:"suggestion",docs:{description:"Disallow unnecessary calls to `.call()` and `.apply()`",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-useless-call"},schema:[],messages:{unnecessaryCall:"Unnecessary '.{{name}}()'."}},create(s){let n=s.sourceCode;return{CallExpression(i){if(!e(i))return;let a=r.skipChainExpression(i.callee),l=r.skipChainExpression(a.object),o=l.type==="MemberExpression"?l.object:null,u=i.arguments[0];t(o,u,n)&&s.report({node:i,messageId:"unnecessaryCall",data:{name:a.property.name}})}}}},hb}var db,iF;function yz(){return iF||(iF=1,db={meta:{type:"suggestion",docs:{description:"Disallow unnecessary `catch` clauses",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-useless-catch"},schema:[],messages:{unnecessaryCatchClause:"Unnecessary catch clause.",unnecessaryCatch:"Unnecessary try/catch wrapper."}},create(r){return{CatchClause(e){e.param&&e.param.type==="Identifier"&&e.body.body.length&&e.body.body[0].type==="ThrowStatement"&&e.body.body[0].argument.type==="Identifier"&&e.body.body[0].argument.name===e.param.name&&(e.parent.finalizer?r.report({node:e,messageId:"unnecessaryCatchClause"}):r.report({node:e.parent,messageId:"unnecessaryCatch"}))}}}}),db}var mb,aF;function xz(){if(aF)return mb;aF=1;let r=Pe();function e(t){if(!t.computed)return!1;let{key:s}=t;if(s.type!=="Literal")return!1;let{value:n}=s;if(typeof n!="number"&&typeof n!="string")return!1;switch(t.type){case"Property":return n!=="__proto__";case"PropertyDefinition":return t.static?n!=="constructor"&&n!=="prototype":n!=="constructor";case"MethodDefinition":return t.static?n!=="prototype":n!=="constructor";default:throw new Error(`Unexpected node type: ${t.type}`)}}return mb={meta:{type:"suggestion",docs:{description:"Disallow unnecessary computed property keys in objects and classes",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-useless-computed-key"},schema:[{type:"object",properties:{enforceForClassMembers:{type:"boolean",default:!0}},additionalProperties:!1}],fixable:"code",messages:{unnecessarilyComputedProperty:"Unnecessarily computed property [{{property}}] found."}},create(t){let s=t.sourceCode,n=t.options[0]?.enforceForClassMembers??!0;function i(l){if(e(l)){let{key:o}=l;t.report({node:l,messageId:"unnecessarilyComputedProperty",data:{property:s.getText(o)},fix(u){let c=s.getTokenBefore(o,r.isOpeningBracketToken),p=s.getTokenAfter(o,r.isClosingBracketToken);if(s.commentsExistBetween(c,p))return null;let h=s.getTokenBefore(c),d=(h.range[1]===c.range[0]&&!r.canTokensBeAdjacent(h,s.getFirstToken(o))?" ":"")+o.raw;return u.replaceTextRange([c.range[0],p.range[1]],d)}})}}function a(){}return{Property:i,MethodDefinition:n?i:a,PropertyDefinition:n?i:a}}},mb}var gb,oF;function bz(){if(oF)return gb;oF=1;let r=Pe();function e(i){return i.type==="BinaryExpression"&&i.operator==="+"}function t(i){return i.value==="+"&&i.type==="Punctuator"}function s(i){let a=i.left;for(;e(a);)a=a.right;return a}function n(i){let a=i.right;for(;e(a);)a=a.left;return a}return gb={meta:{type:"suggestion",docs:{description:"Disallow unnecessary concatenation of literals or template literals",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-useless-concat"},schema:[],messages:{unexpectedConcat:"Unexpected string concatenation of literals."}},create(i){let a=i.sourceCode;return{BinaryExpression(l){if(l.operator!=="+")return;let o=s(l),u=n(l);if(r.isStringLiteral(o)&&r.isStringLiteral(u)&&r.isTokenOnSameLine(o,u)){let c=a.getFirstTokenBetween(o,u,t);i.report({node:l,loc:c.loc,messageId:"unexpectedConcat"})}}}}},gb}var yb,lF;function vz(){if(lF)return yb;lF=1;function r(o){return o.length===1&&o[0].type==="ExpressionStatement"&&o[0].expression.type==="CallExpression"&&o[0].expression.callee.type==="Super"}function e(o){return o.type==="Identifier"||o.type==="RestElement"}function t(o){return o.length===1&&o[0].type==="SpreadElement"&&o[0].argument.type==="Identifier"&&o[0].argument.name==="arguments"}function s(o,u){return o.type==="Identifier"&&u.type==="Identifier"&&o.name===u.name}function n(o,u){return o.type==="RestElement"&&u.type==="SpreadElement"&&s(o.argument,u.argument)}function i(o,u){return s(o,u)||n(o,u)}function a(o,u){if(o.length!==u.length)return!1;for(let c=0;c?@^`~");return xb={meta:{type:"suggestion",docs:{description:"Disallow unnecessary escape characters",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-useless-escape"},hasSuggestions:!0,messages:{unnecessaryEscape:"Unnecessary escape character: \\{{character}}.",removeEscape:"Remove the `\\`. This maintains the current functionality.",removeEscapeDoNotKeepSemantics:"Remove the `\\` if it was inserted by mistake.",escapeBackslash:"Replace the `\\` with `\\\\` to include the actual backslash character."},schema:[]},create(u){let c=u.sourceCode,p=new e;function h(g,y,b,v){let S=g.range[0]+y,C=[S,S+1],O=c.getLocFromIndex(S);u.report({node:g,loc:{start:O,end:{line:O.line,column:O.column+1}},messageId:"unnecessaryEscape",data:{character:b},suggest:[{messageId:r.isDirective(g.parent)?"removeEscapeDoNotKeepSemantics":"removeEscape",fix(w){return w.removeRange(C)}},...v?[]:[{messageId:"escapeBackslash",fix(w){return w.insertTextBeforeRange(C,"\\")}}]]})}function f(g,y){let b=g.type==="TemplateElement",v=y[0][1],S=!n.has(v),C;b?(C=v==="`",v==="$"?S=y.input[y.index+2]!=="{":v==="{"&&(S=y.input[y.index-1]!=="$")):C=v===g.raw[0],S&&!C&&h(g,y.index,y[0].slice(1))}function d(g){let{pattern:y,flags:b}=g.regex,v,S=b.includes("u"),C=b.includes("v");try{v=p.parsePattern(y,0,y.length,{unicode:S,unicodeSets:C})}catch{return}let O=[];t(v,{onCharacterClassEnter:w=>O.unshift(w),onCharacterClassLeave:()=>O.shift(),onExpressionCharacterClassEnter:w=>O.unshift(w),onExpressionCharacterClassLeave:()=>O.shift(),onCharacterEnter(w){if(!w.raw.startsWith("\\"))return;let E=w.raw.slice(1);if(E!==String.fromCodePoint(w.value))return;let k;if(O.length?k=C?l:i:k=a,k.has(E))return;let A=w.start+1,D=!1;if(O.length){let _=O[0];if(E==="^"&&_.start+1===w.start)return;if(C){if(o.has(E)&&(y[w.end]===E||y[w.start-1]===E&&(E!=="^"||!_.negate||_.start+1t.getCommentsInside(g).length||g.type==="AssignmentPattern"&&r.isParenthesised(t,g.left)?null:m.replaceText(p,t.getText(g))}})}function o(p){if(!n)for(let h of p.properties){if(h.type!=="Property"||h.shorthand||h.computed)continue;let f=h.key.type==="Identifier"&&h.key.name||h.key.type==="Literal"&&h.key.value,d=h.value.type==="AssignmentPattern"?h.value.left.name:h.value.name;f===d&&l(h,h.key,"Destructuring assignment")}}function u(p){i||p.imported.range[0]!==p.local.range[0]&&r.getModuleExportName(p.imported)===p.local.name&&l(p,p.imported,"Import")}function c(p){a||p.local.range[0]!==p.exported.range[0]&&r.getModuleExportName(p.local)===r.getModuleExportName(p.exported)&&l(p,p.local,"Export")}return{ObjectPattern:o,ImportSpecifier:u,ExportSpecifier:c}}},bb}var vb,fF;function Ez(){if(fF)return vb;fF=1;let r=Pe(),e=zo();function t(a,l){let o=a.indexOf(l);o!==-1&&a.splice(o,1)}function s(a){return r.STATEMENT_LIST_PARENTS.has(a.parent.type)}function n(a){for(let l=a;l&&l.parent&&!r.isFunction(l);l=l.parent)if(l.parent.type==="TryStatement"&&l.parent.finalizer===l)return!0;return!1}function i(a){for(let l of a)if(l.reachable)return!0;return!1}return vb={meta:{type:"suggestion",docs:{description:"Disallow redundant return statements",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-useless-return"},fixable:"code",schema:[],messages:{unnecessaryReturn:"Unnecessary return statement."}},create(a){let l=new WeakMap,o=a.sourceCode,u=null;function c(d){let m=l.get(d);return!m||m.returned}function p(d,m,g){let y=g||new WeakSet;for(let b of m){if(!b.reachable){y.has(b)||(y.add(b),p(d,b.allPrevSegments.filter(c),y));continue}l.has(b)&&d.push(...l.get(b).uselessReturns)}return d}function h(d,m){if(!d.reachable){m.add(d),d.allPrevSegments.filter(c).filter(y=>!m.has(y)).forEach(y=>h(y,m));return}let g=l.get(d);g&&(g.uselessReturns=g.uselessReturns.filter(y=>{if(u.traversedTryBlockStatements&&u.traversedTryBlockStatements.length>0){let b=y.range[0],v=y.range[1];if(u.traversedTryBlockStatements.some(C=>{let O=C.range[0],w=C.range[1];return b>=O&&v<=w}))return!0}return t(u.uselessReturns,y),!1}))}function f(){u.currentSegments.forEach(d=>h(d,new Set))}return{onCodePathStart(d){u={upper:u,uselessReturns:[],traversedTryBlockStatements:[],codePath:d,currentSegments:new Set}},onCodePathEnd(){for(let d of u.uselessReturns)a.report({node:d,loc:d.loc,messageId:"unnecessaryReturn",fix(m){return s(d)&&!o.getCommentsInside(d).length?new e(m,o).retainEnclosingFunction(d).remove(d):null}});u=u.upper},onCodePathSegmentStart(d){u.currentSegments.add(d);let m={uselessReturns:p([],d.allPrevSegments),returned:!1};l.set(d,m)},onUnreachableCodePathSegmentStart(d){u.currentSegments.add(d)},onUnreachableCodePathSegmentEnd(d){u.currentSegments.delete(d)},onCodePathSegmentEnd(d){u.currentSegments.delete(d)},ReturnStatement(d){if(d.argument&&f(),!(d.argument||r.isInLoop(d)||n(d)||!i(u.currentSegments))){for(let m of u.currentSegments){let g=l.get(m);g&&(g.uselessReturns.push(d),g.returned=!0)}u.uselessReturns.push(d)}},"TryStatement > BlockStatement.block:exit"(d){u.traversedTryBlockStatements.push(d)},"TryStatement:exit"(){u.traversedTryBlockStatements.pop()},ClassDeclaration:f,ContinueStatement:f,DebuggerStatement:f,DoWhileStatement:f,EmptyStatement:f,ExpressionStatement:f,ForInStatement:f,ForOfStatement:f,ForStatement:f,IfStatement:f,ImportDeclaration:f,LabeledStatement:f,SwitchStatement:f,ThrowStatement:f,TryStatement:f,VariableDeclaration:f,WhileStatement:f,WithStatement:f,ExportNamedDeclaration:f,ExportDefaultDeclaration:f,ExportAllDeclaration:f}}},vb}var Ob,pF;function Cz(){if(pF)return Ob;pF=1;let r=Pe();function e(h){return!!h.scope&&h.scope.type==="global"}function t(h){let f=h;for(;f.type!=="function"&&f.type!=="global";)f=f.upper;return f}function s(h){let f=t(h.scope);return h.references.some(d=>t(d.from)!==f)}function n(h){return(h.parent.type==="ForOfStatement"||h.parent.type==="ForInStatement")&&h===h.parent.left}function i(h){return h.declarations.every(f=>f.init!==null)}let a=/^(?:Program|BlockStatement|SwitchStatement|ForStatement|ForInStatement|ForOfStatement)$/u;function l(h){for(let f=h;f;f=f.parent)if(a.test(f.type))return f;return null}function o(h){return h.defs.length>=2}function u(h){function f(d){let m=h.range,g=d.identifier.range;return g[0]m[1]}return function(d){return d.references.some(f)}}function c(h){let f=h.range[0],d=h.range[1];return m=>{let g=m.defs[0].name,y=g.range[0],b=g.parent.type==="AssignmentPattern"?g.parent.right:null,v=b&&b.range[0],S=b&&b.range[1];return m.references.some(C=>{let O=C.identifier.range[0],w=C.identifier.range[1];return!C.init&&(O=v&&w<=S||!r.isFunction(h)&&O>=f&&w<=d)})}}function p(h){return h.name==="let"}return Ob={meta:{type:"suggestion",docs:{description:"Require `let` or `const` instead of `var`",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-var"},schema:[],fixable:"code",messages:{unexpectedVar:"Unexpected var, use let or const instead."}},create(h){let f=h.sourceCode;function d(y){return y.init?f.getDeclaredVariables(y).some(c(y.init)):!1}function m(y){let b=f.getDeclaredVariables(y),v=l(y);return!(y.parent.type==="SwitchCase"||y.declarations.some(d)||b.some(e)||b.some(o)||b.some(u(v))||b.some(p)||r.isInLoop(y)&&(b.some(s)||!n(y)&&!i(y))||!n(y)&&!(y.parent.type==="ForStatement"&&y.parent.init===y)&&!r.STATEMENT_LIST_PARENTS.has(y.parent.type))}function g(y){h.report({node:y,messageId:"unexpectedVar",fix(b){let v=f.getFirstToken(y,{filter:S=>S.value==="var"});return m(y)?b.replaceText(v,"let"):null}})}return{"VariableDeclaration:exit"(y){y.kind==="var"&&g(y)}}}},Ob}var Sb,hF;function wz(){return hF||(hF=1,Sb={meta:{type:"suggestion",docs:{description:"Disallow `void` operators",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-void"},messages:{noVoid:"Expected 'undefined' and instead saw 'void'."},schema:[{type:"object",properties:{allowAsStatement:{type:"boolean",default:!1}},additionalProperties:!1}]},create(r){let e=r.options[0]&&r.options[0].allowAsStatement;return{'UnaryExpression[operator="void"]'(t){e&&t.parent&&t.parent.type==="ExpressionStatement"||r.report({node:t,messageId:"noVoid"})}}}}),Sb}var Eb,dF;function kz(){if(dF)return Eb;dF=1;let r=Sc(),e=Pe(),t=40;return Eb={meta:{type:"suggestion",docs:{description:"Disallow specified warning terms in comments",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-warning-comments"},schema:[{type:"object",properties:{terms:{type:"array",items:{type:"string"}},location:{enum:["start","anywhere"]},decoration:{type:"array",items:{type:"string",pattern:"^\\S$"},minItems:1,uniqueItems:!0}},additionalProperties:!1}],messages:{unexpectedComment:"Unexpected '{{matchedTerm}}' comment: '{{comment}}'."}},create(s){let n=s.sourceCode,i=s.options[0]||{},a=i.terms||["todo","fixme","xxx"],l=i.location||"start",o=[...i.decoration||[]].join(""),u=/\bno-warning-comments\b/u;function c(d){let m=r(d),g=r(o),y="\\b",b="";l==="start"?b=`^[\\s${g}]*`:/^\w/u.test(d)&&(b=y);let v=/\w$/u.test(d)?y:"",S="iu";return new RegExp(`${b}${m}${v}`,S)}let p=a.map(c);function h(d){let m=[];return p.forEach((g,y)=>{g.test(d)&&m.push(a[y])}),m}function f(d){let m=d.value;if(e.isDirectiveComment(d)&&u.test(m))return;h(m).forEach(y=>{let b="",v=!1;for(let S of m.trim().split(/\s+/u)){let C=b?`${b} ${S}`:S;if(C.length<=t)b=C;else{v=!0;break}}s.report({node:d,messageId:"unexpectedComment",data:{matchedTerm:y,comment:`${b}${v?"...":""}`}})})}return{Program(){n.getAllComments().filter(m=>m.type!=="Shebang").forEach(f)}}}},Eb}var Cb,mF;function Az(){if(mF)return Cb;mF=1;let r=Pe();return Cb={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Disallow whitespace before properties",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-whitespace-before-property"},fixable:"whitespace",schema:[],messages:{unexpectedWhitespace:"Unexpected whitespace before property {{propName}}."}},create(e){let t=e.sourceCode;function s(n,i,a){e.report({node:n,messageId:"unexpectedWhitespace",data:{propName:t.getText(n.property)},fix(l){let o="";return!n.computed&&!n.optional&&r.isDecimalInteger(n.object)||t.commentsExistBetween(i,a)?null:(n.optional?o="?.":n.computed||(o="."),l.replaceTextRange([i.range[1],a.range[0]],o))}})}return{MemberExpression(n){let i,a;r.isTokenOnSameLine(n.object,n.property)&&(n.computed?(i=t.getTokenBefore(n.property,r.isOpeningBracketToken),a=t.getTokenBefore(i,n.optional?1:0)):(i=t.getFirstToken(n.property),a=t.getTokenBefore(i,1)),t.isSpaceBetweenTokens(a,i)&&s(n,a,i))}}}},Cb}var wb,gF;function Pz(){return gF||(gF=1,wb={meta:{type:"suggestion",docs:{description:"Disallow `with` statements",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-with"},schema:[],messages:{unexpectedWith:"Unexpected use of 'with' statement."}},create(r){return{WithStatement(e){r.report({node:e,messageId:"unexpectedWith"})}}}}),wb}var kb,yF;function Tz(){if(yF)return kb;yF=1;let r={enum:["beside","below","any"]};return kb={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Enforce the location of single-line statements",recommended:!1,url:"https://eslint.org/docs/latest/rules/nonblock-statement-body-position"},fixable:"whitespace",schema:[r,{properties:{overrides:{properties:{if:r,else:r,while:r,do:r,for:r},additionalProperties:!1}},additionalProperties:!1}],messages:{expectNoLinebreak:"Expected no linebreak before this statement.",expectLinebreak:"Expected a linebreak before this statement."}},create(e){let t=e.sourceCode;function s(i){return e.options[1]&&e.options[1].overrides&&e.options[1].overrides[i]||e.options[0]||"beside"}function n(i,a){let l=s(a);if(i.type==="BlockStatement"||l==="any")return;let o=t.getTokenBefore(i);o.loc.end.line===i.loc.start.line&&l==="below"?e.report({node:i,messageId:"expectLinebreak",fix:u=>u.insertTextBefore(i,` -`)}):o.loc.end.line!==i.loc.start.line&&l==="beside"&&e.report({node:i,messageId:"expectNoLinebreak",fix(u){return t.getText().slice(o.range[1],i.range[0]).trim()?null:u.replaceTextRange([o.range[1],i.range[0]]," ")}})}return{IfStatement(i){n(i.consequent,"if"),i.alternate&&i.alternate.type!=="IfStatement"&&n(i.alternate,"else")},WhileStatement:i=>n(i.body,"while"),DoWhileStatement:i=>n(i.body,"do"),ForStatement:i=>n(i.body,"for"),ForInStatement:i=>n(i.body,"for"),ForOfStatement:i=>n(i.body,"for")}}},kb}var Ab,xF;function Dz(){if(xF)return Ab;xF=1;let r=Pe(),e={oneOf:[{enum:["always","never"]},{type:"object",properties:{multiline:{type:"boolean"},minProperties:{type:"integer",minimum:0},consistent:{type:"boolean"}},additionalProperties:!1,minProperties:1}]};function t(l){let o=!1,u=Number.POSITIVE_INFINITY,c=!1;return l?l==="always"?u=0:l==="never"?u=Number.POSITIVE_INFINITY:(o=!!l.multiline,u=l.minProperties||Number.POSITIVE_INFINITY,c=!!l.consistent):c=!0,{multiline:o,minProperties:u,consistent:c}}function s(l){return typeof l=="object"&&l!==null}function n(l){return s(l)||typeof l=="string"}function i(l){if(s(l)&&Object.values(l).some(n))return{ObjectExpression:t(l.ObjectExpression),ObjectPattern:t(l.ObjectPattern),ImportDeclaration:t(l.ImportDeclaration),ExportNamedDeclaration:t(l.ExportDeclaration)};let o=t(l);return{ObjectExpression:o,ObjectPattern:o,ImportDeclaration:o,ExportNamedDeclaration:o}}function a(l,o,u,c){let p;return l.type==="ObjectExpression"||l.type==="ObjectPattern"?p=l.properties:p=l.specifiers.filter(h=>h.type==="ImportSpecifier"||h.type==="ExportSpecifier"),p.length>=o.minProperties||o.multiline&&p.length>0&&u.loc.start.line!==c.loc.end.line}return Ab={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Enforce consistent line breaks after opening and before closing braces",recommended:!1,url:"https://eslint.org/docs/latest/rules/object-curly-newline"},fixable:"whitespace",schema:[{oneOf:[e,{type:"object",properties:{ObjectExpression:e,ObjectPattern:e,ImportDeclaration:e,ExportDeclaration:e},additionalProperties:!1,minProperties:1}]}],messages:{unexpectedLinebreakBeforeClosingBrace:"Unexpected line break before this closing brace.",unexpectedLinebreakAfterOpeningBrace:"Unexpected line break after this opening brace.",expectedLinebreakBeforeClosingBrace:"Expected a line break before this closing brace.",expectedLinebreakAfterOpeningBrace:"Expected a line break after this opening brace."}},create(l){let o=l.sourceCode,u=i(l.options[0]);function c(p){let h=u[p.type];if(p.type==="ImportDeclaration"&&!p.specifiers.some(S=>S.type==="ImportSpecifier")||p.type==="ExportNamedDeclaration"&&!p.specifiers.some(S=>S.type==="ExportSpecifier"))return;let f=o.getFirstToken(p,S=>S.value==="{"),d;p.typeAnnotation?d=o.getTokenBefore(p.typeAnnotation):d=o.getLastToken(p,S=>S.value==="}");let m=o.getTokenAfter(f,{includeComments:!0}),g=o.getTokenBefore(d,{includeComments:!0}),y=a(p,h,m,g),b=r.isCommentToken(m),v=r.isCommentToken(g);if(m=o.getTokenAfter(f),g=o.getTokenBefore(d),y)r.isTokenOnSameLine(f,m)&&l.report({messageId:"expectedLinebreakAfterOpeningBrace",node:p,loc:f.loc,fix(S){return b?null:S.insertTextAfter(f,` -`)}}),r.isTokenOnSameLine(g,d)&&l.report({messageId:"expectedLinebreakBeforeClosingBrace",node:p,loc:d.loc,fix(S){return v?null:S.insertTextBefore(d,` -`)}});else{let S=h.consistent,C=!r.isTokenOnSameLine(f,m),O=!r.isTokenOnSameLine(g,d);(!S&&C||S&&C&&!O)&&l.report({messageId:"unexpectedLinebreakAfterOpeningBrace",node:p,loc:f.loc,fix(w){return b?null:w.removeRange([f.range[1],m.range[0]])}}),(!S&&O||S&&!C&&O)&&l.report({messageId:"unexpectedLinebreakBeforeClosingBrace",node:p,loc:d.loc,fix(w){return v?null:w.removeRange([g.range[1],d.range[0]])}})}}return{ObjectExpression:c,ObjectPattern:c,ImportDeclaration:c,ExportNamedDeclaration:c}}},Ab}var Pb,bF;function _z(){if(bF)return Pb;bF=1;let r=Pe();return Pb={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Enforce consistent spacing inside braces",recommended:!1,url:"https://eslint.org/docs/latest/rules/object-curly-spacing"},fixable:"whitespace",schema:[{enum:["always","never"]},{type:"object",properties:{arraysInObjects:{type:"boolean"},objectsInObjects:{type:"boolean"}},additionalProperties:!1}],messages:{requireSpaceBefore:"A space is required before '{{token}}'.",requireSpaceAfter:"A space is required after '{{token}}'.",unexpectedSpaceBefore:"There should be no space before '{{token}}'.",unexpectedSpaceAfter:"There should be no space after '{{token}}'."}},create(e){let t=e.options[0]==="always",s=e.sourceCode;function n(m){return e.options[1]?e.options[1][m]===!t:!1}let i={spaced:t,arraysInObjectsException:n("arraysInObjects"),objectsInObjectsException:n("objectsInObjects")};function a(m,g){let y=e.sourceCode.getTokenAfter(g,{includeComments:!0});e.report({node:m,loc:{start:g.loc.end,end:y.loc.start},messageId:"unexpectedSpaceAfter",data:{token:g.value},fix(b){return b.removeRange([g.range[1],y.range[0]])}})}function l(m,g){let y=e.sourceCode.getTokenBefore(g,{includeComments:!0});e.report({node:m,loc:{start:y.loc.end,end:g.loc.start},messageId:"unexpectedSpaceBefore",data:{token:g.value},fix(b){return b.removeRange([y.range[1],g.range[0]])}})}function o(m,g){e.report({node:m,loc:g.loc,messageId:"requireSpaceAfter",data:{token:g.value},fix(y){return y.insertTextAfter(g," ")}})}function u(m,g){e.report({node:m,loc:g.loc,messageId:"requireSpaceBefore",data:{token:g.value},fix(y){return y.insertTextBefore(g," ")}})}function c(m,g,y,b,v){if(r.isTokenOnSameLine(g,y)){let S=s.isSpaceBetweenTokens(g,y);i.spaced&&!S&&o(m,g),!i.spaced&&S&&y.type!=="Line"&&a(m,g)}if(r.isTokenOnSameLine(b,v)){let C=(i.arraysInObjectsException&&r.isClosingBracketToken(b)||i.objectsInObjectsException&&r.isClosingBraceToken(b))&&s.getNodeByRangeIndex(b.range[0]).type,O=i.arraysInObjectsException&&C==="ArrayExpression"||i.objectsInObjectsException&&(C==="ObjectExpression"||C==="ObjectPattern")?!i.spaced:i.spaced,w=s.isSpaceBetweenTokens(b,v);O&&!w&&u(m,v),!O&&w&&l(m,v)}}function p(m){let g=m.properties.at(-1);return s.getTokenAfter(g,r.isClosingBraceToken)}function h(m){if(m.properties.length===0)return;let g=s.getFirstToken(m),y=p(m),b=s.getTokenAfter(g,{includeComments:!0}),v=s.getTokenBefore(y,{includeComments:!0});c(m,g,b,v,y)}function f(m){if(m.specifiers.length===0)return;let g=m.specifiers[0],y=m.specifiers.at(-1);if(y.type!=="ImportSpecifier")return;g.type!=="ImportSpecifier"&&(g=m.specifiers[1]);let b=s.getTokenBefore(g),v=s.getTokenAfter(y,r.isNotCommaToken),S=s.getTokenAfter(b,{includeComments:!0}),C=s.getTokenBefore(v,{includeComments:!0});c(m,b,S,C,v)}function d(m){if(m.specifiers.length===0)return;let g=m.specifiers[0],y=m.specifiers.at(-1),b=s.getTokenBefore(g),v=s.getTokenAfter(y,r.isNotCommaToken),S=s.getTokenAfter(b,{includeComments:!0}),C=s.getTokenBefore(v,{includeComments:!0});c(m,b,S,C,v)}return{ObjectPattern:h,ObjectExpression:h,ImportDeclaration:f,ExportNamedDeclaration:d}}},Pb}var Tb,vF;function Iz(){return vF||(vF=1,Tb={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Enforce placing object properties on separate lines",recommended:!1,url:"https://eslint.org/docs/latest/rules/object-property-newline"},schema:[{type:"object",properties:{allowAllPropertiesOnSameLine:{type:"boolean",default:!1},allowMultiplePropertiesPerLine:{type:"boolean",default:!1}},additionalProperties:!1}],fixable:"whitespace",messages:{propertiesOnNewlineAll:"Object properties must go on a new line if they aren't all on the same line.",propertiesOnNewline:"Object properties must go on a new line."}},create(r){let e=r.options[0]&&(r.options[0].allowAllPropertiesOnSameLine||r.options[0].allowMultiplePropertiesPerLine),t=e?"propertiesOnNewlineAll":"propertiesOnNewline",s=r.sourceCode;return{ObjectExpression(n){if(e&&n.properties.length>1){let i=s.getFirstToken(n.properties[0]),a=s.getLastToken(n.properties.at(-1));if(i.loc.end.line===a.loc.start.line)return}for(let i=1;i0){let Q=j.filter(v);Q.length!==j.length&&(Q.length>0?t.report({node:T,messageId:"unexpectedMix"}):F&&j.every(S)&&t.report({node:T,messageId:"expectedAllPropertiesShorthanded"}))}}function O(T,F){let j=F.computed?d.getFirstToken(F,e.isOpeningBracketToken):d.getFirstToken(F.key),Q=F.computed?d.getFirstTokenBetween(F.key,F.value,e.isClosingBracketToken):d.getLastToken(F.key),I=d.text.slice(j.range[0],Q.range[1]),N="";if(d.commentsExistBetween(Q,F.value))return null;F.value.async&&(N+="async "),F.value.generator&&(N+="*");let R=[j.range[0],F.range[1]],U=N+I;if(F.value.type==="FunctionExpression"){let K=d.getTokens(F.value).find(xe=>xe.type==="Keyword"&&xe.value==="function"),le=F.value.generator?d.getTokenAfter(K):K;return T.replaceTextRange(R,U+d.text.slice(le.range[1],F.value.range[1]))}let V=d.getTokenBefore(F.value.body,e.isArrowToken),ae=d.text.slice(V.range[1],F.value.range[1]),se=!1,ve;if(F.value.params.length===0?ve=d.getFirstToken(F.value,e.isOpeningParenToken):ve=d.getTokenBefore(F.value.params[0]),F.value.params.length===1){let K=e.isOpeningParenToken(ve),le=ve.range[0]R.value==="["):d.getFirstToken(F.key),Q=F.computed?d.getTokensBetween(F.key,F.value).find(R=>R.value==="]"):d.getLastToken(F.key),I=d.text.slice(j.range[0],Q.range[1]),N="function";return F.value.async&&(N=`async ${N}`),F.value.generator&&(N=`${N}*`),T.replaceTextRange([F.range[0],Q.range[1]],`${I}: ${N}`)}let E=[],k=new WeakSet,A=new WeakSet;function D(T){E.unshift(new Set),d.getScope(T).variables.filter(F=>F.name==="arguments").forEach(F=>{F.references.map(j=>j.identifier).forEach(j=>A.add(j))})}function _(){E.shift()}function B(){E[0].forEach(T=>k.add(T))}return{Program:D,FunctionDeclaration:D,FunctionExpression:D,"Program:exit":_,"FunctionDeclaration:exit":_,"FunctionExpression:exit":_,ArrowFunctionExpression(T){E[0].add(T)},"ArrowFunctionExpression:exit"(T){E[0].delete(T)},ThisExpression:B,Super:B,MetaProperty(T){T.meta.name==="new"&&T.property.name==="target"&&B()},Identifier(T){A.has(T)&&B()},ObjectExpression(T){l?C(T,!1):o&&C(T,!0)},"Property:exit"(T){let F=T.method||T.shorthand;if(T.parent.type!=="ObjectPattern"&&!(T.kind==="get"||T.kind==="set")&&!(T.computed&&T.value.type!=="FunctionExpression"&&T.value.type!=="ArrowFunctionExpression")){if(F)if(T.method&&(a||h&&b(T.key))){let j=a?"expectedMethodLongform":"expectedLiteralMethodLongform";t.report({node:T,messageId:j,fix:Q=>w(Q,T)})}else a&&t.report({node:T,messageId:"expectedPropertyLongform",fix:j=>j.insertTextAfter(T.key,`: ${T.key.name}`)});else if(n&&!T.value.id&&(T.value.type==="FunctionExpression"||T.value.type==="ArrowFunctionExpression")){if(c&&T.key.type==="Identifier"&&g(T.key.name))return;if(p){let j=e.getStaticPropertyName(T);if(j!==null&&p.test(j))return}if(h&&b(T.key))return;(T.value.type==="FunctionExpression"||T.value.type==="ArrowFunctionExpression"&&T.value.body.type==="BlockStatement"&&f&&!k.has(T.value))&&t.report({node:T,messageId:"expectedMethodShorthand",fix:j=>O(j,T)})}else if(T.value.type==="Identifier"&&T.key.name===T.value.name&&i)t.report({node:T,messageId:"expectedPropertyShorthand",fix(j){return j.replaceText(T,T.value.name)}});else if(T.value.type==="Identifier"&&T.key.type==="Literal"&&T.key.value===T.value.name&&i){if(h)return;t.report({node:T,messageId:"expectedPropertyShorthand",fix(j){return j.replaceText(T,T.value.name)}})}}}}}},Db}var _b,SF;function Rz(){if(SF)return _b;SF=1;let r=Pe();function e(t){return r.STATEMENT_LIST_PARENTS.has(t.parent.type)}return _b={meta:{type:"suggestion",docs:{description:"Enforce variables to be declared either together or separately in functions",recommended:!1,url:"https://eslint.org/docs/latest/rules/one-var"},fixable:"code",schema:[{oneOf:[{enum:["always","never","consecutive"]},{type:"object",properties:{separateRequires:{type:"boolean"},var:{enum:["always","never","consecutive"]},let:{enum:["always","never","consecutive"]},const:{enum:["always","never","consecutive"]}},additionalProperties:!1},{type:"object",properties:{initialized:{enum:["always","never","consecutive"]},uninitialized:{enum:["always","never","consecutive"]}},additionalProperties:!1}]}],messages:{combineUninitialized:"Combine this with the previous '{{type}}' statement with uninitialized variables.",combineInitialized:"Combine this with the previous '{{type}}' statement with initialized variables.",splitUninitialized:"Split uninitialized '{{type}}' declarations into multiple statements.",splitInitialized:"Split initialized '{{type}}' declarations into multiple statements.",splitRequires:"Split requires to be separated into a single block.",combine:"Combine this with the previous '{{type}}' statement.",split:"Split '{{type}}' declarations into multiple statements."}},create(t){let s="always",n="never",i="consecutive",a=t.options[0]||s,l={};typeof a=="string"?(l.var={uninitialized:a,initialized:a},l.let={uninitialized:a,initialized:a},l.const={uninitialized:a,initialized:a}):typeof a=="object"&&(l.separateRequires=!!a.separateRequires,l.var={uninitialized:a.var,initialized:a.var},l.let={uninitialized:a.let,initialized:a.let},l.const={uninitialized:a.const,initialized:a.const},Object.hasOwn(a,"uninitialized")&&(l.var.uninitialized=a.uninitialized,l.let.uninitialized=a.uninitialized,l.const.uninitialized=a.uninitialized),Object.hasOwn(a,"initialized")&&(l.var.initialized=a.initialized,l.let.initialized=a.initialized,l.const.initialized=a.initialized));let o=t.sourceCode,u=[],c=[];function p(){c.push({let:{initialized:!1,uninitialized:!1},const:{initialized:!1,uninitialized:!1}})}function h(){u.push({initialized:!1,uninitialized:!1}),p()}function f(){c.pop()}function d(){u.pop(),f()}function m(w){return w.init&&w.init.type==="CallExpression"&&w.init.callee.name==="require"}function g(w,E,k){for(let A=0;A0&&A.uninitialized===s&&D.uninitialized||k.initialized>0&&A.initialized===s&&D.initialized&&!_||D.required&&_?!1:(g(w,E,D),!0)}function S(w){let E=w[0],k=Array.isArray(E.parent.parent.body)?E.parent.parent.body:[],A=k.findIndex(_=>_.range[0]===E.parent.range[0]),D=k[A-1];return _=>{let B=o.getTokenBefore(E),T=o.getTokenBefore(B),F=[];return D&&D.kind===o.getText(B)&&(T.value===";"?F.push(_.replaceText(T,",")):F.push(_.insertTextAfter(T,",")),F.push(_.replaceText(B,""))),F}}function C(w){let{parent:E}=w;return e(E.type==="ExportNamedDeclaration"?E:w)?k=>w.declarations.map(A=>{let D=o.getTokenAfter(A);if(D===null)return null;let _=o.getTokenAfter(D,{includeComments:!0});if(D.value!==",")return null;let B=w.parent.type==="ExportNamedDeclaration"?"export ":"";if(_.range[0]===D.range[1])return k.replaceText(D,`; ${B}${w.kind} `);if(_.loc.start.line>D.loc.end.line||_.type==="Line"||_.type==="Block"){let T=_;for(;T.type==="Line"||T.type==="Block";)T=o.getTokenAfter(T,{includeComments:!0});return k.replaceTextRange([D.range[0],T.range[0]],`;${o.text.slice(D.range[1],T.range[0])}${B}${w.kind} `)}return k.replaceText(D,`; ${B}${w.kind}`)}).filter(A=>A):null}function O(w){let E=w.parent,k=w.kind;if(!l[k])return;let A=w.declarations,D=b(A),_=A.some(m)&&!A.every(m);l[k].initialized===s&&l.separateRequires&&_&&t.report({node:w,messageId:"splitRequires"});let B=E.body&&E.body.length>0&&E.body.indexOf(w)||0;if(B>0){let T=E.body[B-1],F=T.type==="VariableDeclaration",j=A.concat(T.declarations||[]);if(F&&T.kind===k&&!(j.some(m)&&!j.every(m))){let Q=b(T.declarations);l[k].initialized===i&&l[k].uninitialized===i?t.report({node:w,messageId:"combine",data:{type:k},fix:S(A)}):l[k].initialized===i&&D.initialized>0&&Q.initialized>0?t.report({node:w,messageId:"combineInitialized",data:{type:k},fix:S(A)}):l[k].uninitialized===i&&D.uninitialized>0&&Q.uninitialized>0&&t.report({node:w,messageId:"combineUninitialized",data:{type:k},fix:S(A)})}}if(!v(k,A)){if(l[k].initialized===s&&l[k].uninitialized===s)t.report({node:w,messageId:"combine",data:{type:k},fix:S(A)});else if(l[k].initialized===s&&D.initialized>0&&t.report({node:w,messageId:"combineInitialized",data:{type:k},fix:S(A)}),l[k].uninitialized===s&&D.uninitialized>0){if(w.parent.left===w&&(w.parent.type==="ForInStatement"||w.parent.type==="ForOfStatement"))return;t.report({node:w,messageId:"combineUninitialized",data:{type:k},fix:S(A)})}}(E.type!=="ForStatement"||E.init!==w)&&D.uninitialized+D.initialized>1&&(l[k].initialized===n&&l[k].uninitialized===n?t.report({node:w,messageId:"split",data:{type:k},fix:C(w)}):l[k].initialized===n&&D.initialized>0?t.report({node:w,messageId:"splitInitialized",data:{type:k},fix:C(w)}):l[k].uninitialized===n&&D.uninitialized>0&&t.report({node:w,messageId:"splitUninitialized",data:{type:k},fix:C(w)}))}return{Program:h,FunctionDeclaration:h,FunctionExpression:h,ArrowFunctionExpression:h,StaticBlock:h,BlockStatement:p,ForStatement:p,ForInStatement:p,ForOfStatement:p,SwitchStatement:p,VariableDeclaration:O,"ForStatement:exit":f,"ForOfStatement:exit":f,"ForInStatement:exit":f,"SwitchStatement:exit":f,"BlockStatement:exit":f,"Program:exit":d,"FunctionDeclaration:exit":d,"FunctionExpression:exit":d,"ArrowFunctionExpression:exit":d,"StaticBlock:exit":d}}},_b}var Ib,EF;function Bz(){return EF||(EF=1,Ib={meta:{deprecated:!0,replacedBy:[],type:"suggestion",docs:{description:"Require or disallow newlines around variable declarations",recommended:!1,url:"https://eslint.org/docs/latest/rules/one-var-declaration-per-line"},schema:[{enum:["always","initializations"]}],fixable:"whitespace",messages:{expectVarOnNewline:"Expected variable declaration to be on a new line."}},create(r){let e=r.options[0]==="always";function t(n){return n==="ForStatement"||n==="ForInStatement"||n==="ForOfStatement"}function s(n){if(t(n.parent.type))return;let i=n.declarations,a;i.forEach(l=>{a&&a.loc.end.line===l.loc.start.line&&(e||a.init||l.init)&&r.report({node:n,messageId:"expectVarOnNewline",loc:l.loc,fix:o=>o.insertTextBefore(l,` -`)}),a=l})}return{VariableDeclaration:s}}}),Ib}var Fb,CF;function Nz(){if(CF)return Fb;CF=1;let r=Pe();function e(n){return["*","&","^","|"].includes(n)}function t(n){return["+","-","/","%","<<",">>",">>>","**"].includes(n)}function s(n){return n.type==="Identifier"||n.type==="MemberExpression"&&(n.object.type==="Identifier"||n.object.type==="ThisExpression")&&(!n.computed||n.property.type==="Literal")}return Fb={meta:{type:"suggestion",docs:{description:"Require or disallow assignment operator shorthand where possible",recommended:!1,url:"https://eslint.org/docs/latest/rules/operator-assignment"},schema:[{enum:["always","never"]}],fixable:"code",messages:{replaced:"Assignment (=) can be replaced with operator assignment ({{operator}}).",unexpected:"Unexpected operator assignment ({{operator}}) shorthand."}},create(n){let i=n.sourceCode;function a(u){return i.getFirstTokenBetween(u.left,u.right,c=>c.value===u.operator)}function l(u){if(u.operator!=="="||u.right.type!=="BinaryExpression")return;let c=u.left,p=u.right,h=p.operator;if(e(h)||t(h)){let f=`${h}=`;r.isSameReference(c,p.left,!0)?n.report({node:u,messageId:"replaced",data:{operator:f},fix(d){if(s(c)&&s(p.left)){let m=a(u),g=a(p),y=i.getText().slice(u.range[0],m.range[0]),b=i.getText().slice(g.range[1],u.right.range[1]);return i.commentsExistBetween(m,g)?null:d.replaceText(u,`${y}${f}${b}`)}return null}}):r.isSameReference(c,p.right,!0)&&e(h)&&n.report({node:u,messageId:"replaced",data:{operator:f}})}}function o(u){u.operator!=="="&&!r.isLogicalAssignmentOperator(u.operator)&&n.report({node:u,messageId:"unexpected",data:{operator:u.operator},fix(c){if(s(u.left)){let p=i.getFirstToken(u),h=a(u),f=i.getText().slice(u.range[0],h.range[0]),d=u.operator.slice(0,-1),m;if(i.commentsExistBetween(p,h))return null;if(r.getPrecedence(u.right)<=r.getPrecedence({type:"BinaryExpression",operator:d})&&!r.isParenthesised(i,u.right))m=`${i.text.slice(h.range[1],u.right.range[0])}(${i.getText(u.right)})`;else{let g=i.getTokenAfter(h,{includeComments:!0}),y="";h.range[1]===g.range[0]&&!r.canTokensBeAdjacent({type:"Punctuator",value:d},g)&&(y=" "),m=`${y}${i.text.slice(h.range[1],u.range[1])}`}return c.replaceText(u,`${f}= ${f}${d}${m}`)}return null}})}return{AssignmentExpression:n.options[0]!=="never"?l:o}}},Fb}var Rb,wF;function Lz(){if(wF)return Rb;wF=1;let r=Pe();return Rb={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Enforce consistent linebreak style for operators",recommended:!1,url:"https://eslint.org/docs/latest/rules/operator-linebreak"},schema:[{enum:["after","before","none",null]},{type:"object",properties:{overrides:{type:"object",additionalProperties:{enum:["after","before","none","ignore"]}}},additionalProperties:!1}],fixable:"code",messages:{operatorAtBeginning:"'{{operator}}' should be placed at the beginning of the line.",operatorAtEnd:"'{{operator}}' should be placed at the end of the line.",badLinebreak:"Bad line breaking before and after '{{operator}}'.",noLinebreak:"There should be no line break before or after '{{operator}}'."}},create(e){let t=!e.options[0],s=e.options[0]||"after",n=e.options[1]||{},i=n.overrides?Object.assign({},n.overrides):{};t&&!i["?"]&&(i["?"]="before"),t&&!i[":"]&&(i[":"]="before");let a=e.sourceCode;function l(c,p){return h=>{let f=a.getTokenBefore(c),d=a.getTokenAfter(c),m=a.text.slice(f.range[1],c.range[0]),g=a.text.slice(c.range[1],d.range[0]),y=!r.isTokenOnSameLine(f,c),b=!r.isTokenOnSameLine(c,d),v,S;if(y!==b&&p!=="none"){if(a.getTokenBefore(c,{includeComments:!0})!==f&&a.getTokenAfter(c,{includeComments:!0})!==d)return null;v=g,S=m}else{let C=r.createGlobalLinebreakMatcher();if(v=p==="before"||m.trim()?m:m.replace(C,""),S=p==="after"||g.trim()?g:g.replace(C,""),v===m&&S===g)return null}return S===""&&d.type==="Punctuator"&&"+-".includes(c.value)&&d.value===c.value&&(S+=" "),h.replaceTextRange([f.range[1],d.range[0]],v+c.value+S)}}function o(c,p,h){let f=a.getTokenBefore(p,v=>v.value===h),d=a.getTokenBefore(f),m=a.getTokenAfter(f),g=i[h],y=g||s,b=l(f,y);r.isTokenOnSameLine(d,f)&&r.isTokenOnSameLine(f,m)||(g!=="ignore"&&!r.isTokenOnSameLine(d,f)&&!r.isTokenOnSameLine(f,m)?e.report({node:c,loc:f.loc,messageId:"badLinebreak",data:{operator:h},fix:b}):y==="before"&&r.isTokenOnSameLine(d,f)?e.report({node:c,loc:f.loc,messageId:"operatorAtBeginning",data:{operator:h},fix:b}):y==="after"&&r.isTokenOnSameLine(f,m)?e.report({node:c,loc:f.loc,messageId:"operatorAtEnd",data:{operator:h},fix:b}):y==="none"&&e.report({node:c,loc:f.loc,messageId:"noLinebreak",data:{operator:h},fix:b}))}function u(c){o(c,c.right,c.operator)}return{BinaryExpression:u,LogicalExpression:u,AssignmentExpression:u,VariableDeclarator(c){c.init&&o(c,c.init,"=")},PropertyDefinition(c){c.value&&o(c,c.value,"=")},ConditionalExpression(c){o(c,c.consequent,"?"),o(c,c.alternate,":")}}}},Rb}var Bb,kF;function $z(){if(kF)return Bb;kF=1;let r=Pe();return Bb={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Require or disallow padding within blocks",recommended:!1,url:"https://eslint.org/docs/latest/rules/padded-blocks"},fixable:"whitespace",schema:[{oneOf:[{enum:["always","never"]},{type:"object",properties:{blocks:{enum:["always","never"]},switches:{enum:["always","never"]},classes:{enum:["always","never"]}},additionalProperties:!1,minProperties:1}]},{type:"object",properties:{allowSingleLineBlocks:{type:"boolean"}},additionalProperties:!1}],messages:{alwaysPadBlock:"Block must be padded by blank lines.",neverPadBlock:"Block must not be padded by blank lines."}},create(e){let t={},s=e.options[0]||"always",n=e.options[1]||{};if(typeof s=="string"){let d=s==="always";t.blocks=d,t.switches=d,t.classes=d}else Object.hasOwn(s,"blocks")&&(t.blocks=s.blocks==="always"),Object.hasOwn(s,"switches")&&(t.switches=s.switches==="always"),Object.hasOwn(s,"classes")&&(t.classes=s.classes==="always");Object.hasOwn(n,"allowSingleLineBlocks")&&(t.allowSingleLineBlocks=n.allowSingleLineBlocks===!0);let i=e.sourceCode;function a(d){return d.type==="SwitchStatement"?i.getTokenBefore(d.cases[0]):d.type==="StaticBlock"?i.getFirstToken(d,{skip:1}):i.getFirstToken(d)}function l(d){return d.type==="Line"||d.type==="Block"}function o(d,m){return m.loc.start.line-d.loc.end.line>=2}function u(d){let m,g=d;do m=g,g=i.getTokenAfter(g,{includeComments:!0});while(l(g)&&g.loc.start.line===m.loc.end.line);return g}function c(d){let m=d,g;do g=m,m=i.getTokenBefore(m,{includeComments:!0});while(l(m)&&m.loc.end.line===g.loc.start.line);return m}function p(d){switch(d.type){case"BlockStatement":case"StaticBlock":return t.blocks;case"SwitchStatement":return t.switches;case"ClassBody":return t.classes;default:throw new Error("unreachable")}}function h(d){let m=a(d),g=u(m),y=i.getTokenBefore(g,{includeComments:!0}),b=i.getLastToken(d),v=c(b),S=i.getTokenAfter(v,{includeComments:!0}),C=o(y,g),O=o(v,S);t.allowSingleLineBlocks&&r.isTokenOnSameLine(y,S)||(p(d)?(C||e.report({node:d,loc:{start:y.loc.start,end:g.loc.start},fix(w){return w.insertTextAfter(y,` -`)},messageId:"alwaysPadBlock"}),O||e.report({node:d,loc:{end:S.loc.start,start:v.loc.end},fix(w){return w.insertTextBefore(S,` -`)},messageId:"alwaysPadBlock"})):(C&&e.report({node:d,loc:{start:y.loc.start,end:g.loc.start},fix(w){return w.replaceTextRange([y.range[1],g.range[0]-g.loc.start.column],` -`)},messageId:"neverPadBlock"}),O&&e.report({node:d,loc:{end:S.loc.start,start:v.loc.end},messageId:"neverPadBlock",fix(w){return w.replaceTextRange([v.range[1],S.range[0]-S.loc.start.column],` -`)}})))}let f={};return Object.hasOwn(t,"switches")&&(f.SwitchStatement=function(d){d.cases.length!==0&&h(d)}),Object.hasOwn(t,"blocks")&&(f.BlockStatement=function(d){d.body.length!==0&&h(d)},f.StaticBlock=f.BlockStatement),Object.hasOwn(t,"classes")&&(f.ClassBody=function(d){d.body.length!==0&&h(d)}),f}},Bb}var Nb,AF;function Mz(){if(AF)return Nb;AF=1;let r=Pe(),e=`[${Array.from(r.LINEBREAKS).join("")}]`,t=new RegExp(String.raw`^(\s*?${e})\s*${e}(\s*;?)$`,"u"),s=/^(?:module\s*\.\s*)?exports(?:\s*\.|\s*\[|$)/u,n=/^require\(/u;function i(b){return{test:(v,S)=>S.getFirstToken(v).value===b}}function a(b){return{test:(v,S)=>v.loc.start.line===v.loc.end.line&&S.getFirstToken(v).value===b}}function l(b){return{test:(v,S)=>v.loc.start.line!==v.loc.end.line&&S.getFirstToken(v).value===b}}function o(b){return{test:v=>v.type===b}}function u(b){if(b.type==="ExpressionStatement"){let v=r.skipChainExpression(b.expression);return v.type==="UnaryExpression"&&(v=r.skipChainExpression(v.argument)),v.type==="CallExpression"&&r.isFunction(v.callee)}return!1}function c(b,v){if(v.type==="DoWhileStatement"&&v.body.type==="BlockStatement"||u(v))return!0;let S=b.getLastToken(v,r.isNotSemicolonToken),C=S&&r.isClosingBraceToken(S)?b.getNodeByRangeIndex(S.range[0]):null;return!!C&&(C.type==="BlockStatement"||C.type==="SwitchStatement")}function p(b,v){let S=b.getLastToken(v),C=b.getTokenBefore(S),O=b.getTokenAfter(S);return!!(C&&O&&C.range[0]>=v.range[0]&&r.isSemicolonToken(S)&&S.loc.start.line!==C.loc.end.line&&S.loc.end.line===O.loc.start.line)?C:S}function h(b,v,S){return v+S}function f(){}function d(b,v,S,C){C.length!==0&&b.report({node:S,messageId:"unexpectedBlankLine",fix(O){if(C.length>=2)return null;let w=C[0][0],E=C[0][1],k=w.range[1],A=E.range[0],D=b.sourceCode.text.slice(k,A).replace(t,h);return O.replaceTextRange([k,A],D)}})}function m(b,v,S,C){C.length>0||b.report({node:S,messageId:"expectedBlankLine",fix(O){let w=b.sourceCode,E=p(w,v),k=w.getFirstTokenBetween(E,S,{includeComments:!0,filter(D){return r.isTokenOnSameLine(E,D)?(E=D,!1):!0}})||S,A=r.isTokenOnSameLine(E,k)?` +`:d=f,h.push(new r(p.pos,d)),p.advance(d.length)}}return h}return qy={parseStringLiteral:o,parseTemplateToken:u},qy}var Qy,II;function ZW(){if(II)return Qy;II=1;let{CALL:r,CONSTRUCT:e,ReferenceTracker:t,getStaticValue:s,getStringIfConstant:n}=hr(),{RegExpParser:i,visitRegExpAST:a}=Gn(),{isCombiningCharacter:l,isEmojiModifier:o,isRegionalIndicatorSymbol:u,isSurrogatePair:c}=WW(),p=Pe(),{isValidWithUnicodeFlag:h}=NO(),{parseStringLiteral:f,parseTemplateToken:d}=zW();function*m(S){let w=[];for(let O of S)switch(O.type){case"Character":w.push(O);break;case"CharacterClassRange":w.push(O.min),yield w,w=[O.max];break;case"CharacterSet":case"CharacterClass":case"ClassStringDisjunction":case"ExpressionCharacterClass":w.length>0&&(yield w,w=[]);break}w.length>0&&(yield w)}function g(S){return/^\\u\{[\da-f]+\}$/iu.test(S.raw)}let y={*surrogatePairWithoutUFlag(S){for(let[w,O]of S.entries()){if(w===0)continue;let C=S[w-1];c(C.value,O.value)&&!g(C)&&!g(O)&&(yield[C,O])}},*surrogatePair(S){for(let[w,O]of S.entries()){if(w===0)continue;let C=S[w-1];c(C.value,O.value)&&(g(C)||g(O))&&(yield[C,O])}},*combiningClass(S){for(let[w,O]of S.entries()){if(w===0)continue;let C=S[w-1];l(O.value)&&!l(C.value)&&(yield[C,O])}},*emojiModifier(S){for(let[w,O]of S.entries()){if(w===0)continue;let C=S[w-1];o(O.value)&&!o(C.value)&&(yield[C,O])}},*regionalIndicatorSymbol(S){for(let[w,O]of S.entries()){if(w===0)continue;let C=S[w-1];u(O.value)&&u(C.value)&&(yield[C,O])}},*zwj(S){let w=null;for(let[O,C]of S.entries())O===0||O===S.length-1||C.value===8205&&S[O-1].value!==8205&&S[O+1].value!==8205&&(w?w.at(-1)===S[O-1]?w.push(C,S[O+1]):(yield w,w=S.slice(O-1,O+2)):w=S.slice(O-1,O+2));w&&(yield w)}},v=Object.keys(y);function x(S,w){if(!S)return null;if(S.type==="Literal"&&S.regex)return{regex:S.regex};let O=s(S,w);return O?.value instanceof RegExp?null:O}return Qy={meta:{type:"problem",docs:{description:"Disallow characters which are made with multiple code points in character class syntax",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-misleading-character-class"},hasSuggestions:!0,schema:[],messages:{surrogatePairWithoutUFlag:"Unexpected surrogate pair in character class. Use 'u' flag.",surrogatePair:"Unexpected surrogate pair in character class.",combiningClass:"Unexpected combined character in character class.",emojiModifier:"Unexpected modified Emoji in character class.",regionalIndicatorSymbol:"Unexpected national flag in character class.",zwj:"Unexpected joined character sequence in character class.",suggestUnicodeFlag:"Add unicode 'u' flag to regex."}},create(S){let w=S.sourceCode,O=new i,C=new Set;function E(k,A,D,_){let B;try{B=O.parsePattern(A,0,A.length,{unicode:D.includes("u"),unicodeSets:D.includes("v")})}catch{return}let T=new Map;a(B,{onCharacterClassEnter(Q){for(let I of m(Q.elements))for(let N of v)T.has(N)?T.get(N).push(...y[N](I)):T.set(N,[...y[N](I)])}});let R=null;function j(Q){return!p.isStaticTemplateLiteral(k)&&k.type!=="Literal"?Q.length?[k.loc]:[]:Q.map(I=>{let N=I[0].start,F=I.at(-1).end-1,U,V;if(k.type==="TemplateLiteral"){let ae=w.getText(k),se=k.range[0];R??=d(ae),U=se+R[N].start,V=se+R[F].end}else if(typeof k.value=="string"){let ae=k.raw,se=k.range[0];R??=f(ae),U=se+R[N].start,V=se+R[F].end}else{let ae=k.range[0]+1;U=ae+N,V=ae+F+1}return{start:w.getLocFromIndex(U),end:w.getLocFromIndex(V)}})}for(let[Q,I]of T){let N;Q==="surrogatePairWithoutUFlag"&&(N=[{messageId:"suggestUnicodeFlag",fix:_}]);let F=j(I);for(let U of F)S.report({node:k,loc:U,messageId:Q,suggest:N})}}return{"Literal[regex]"(k){C.has(k)||E(k,k.regex.pattern,k.regex.flags,A=>h(S.languageOptions.ecmaVersion,k.regex.pattern)?A.insertTextAfter(k,"u"):null)},Program(k){let A=w.getScope(k),D=new t(A);for(let{node:_}of D.iterateGlobalReferences({RegExp:{[r]:!0,[e]:!0}})){let B,T,[R,j]=_.arguments,Q=x(R,A);if(Q){if(j)Q.regex?(B=Q.regex.pattern,C.add(R)):B=String(Q.value),T=n(j,A);else{if(Q.regex)continue;B=String(Q.value),T=""}typeof T=="string"&&E(R,B,T,I=>{if(!h(S.languageOptions.ecmaVersion,B))return null;if(_.arguments.length===1){let N=w.getLastToken(_,{skip:1});return I.insertTextAfter(N,p.isCommaToken(N)?' "u",':', "u"')}if(j.type==="Literal"&&typeof j.value=="string"||j.type==="TemplateLiteral"){let N=[j.range[0],j.range[1]-1];return I.insertTextAfterRange(N,"u")}return null})}}}}}},Qy}var Uy,RI;function GW(){if(RI)return Uy;RI=1;let r=Pe(),e=["+","-","*","/","%","**"],t=["&","|","^","~","<<",">>",">>>"],s=["==","!=","===","!==",">",">=","<","<="],n=["&&","||"],i=["in","instanceof"],a=["?:"],l=["??"],o=[].concat(e,t,s,n,i,a,l),u=[e,t,s,n,i],c=/^(?:Binary|Logical|Conditional)Expression$/u;function p(d={}){let g=d.groups&&d.groups.length>0?d.groups:u,y=d.allowSamePrecedence!==!1;return{groups:g,allowSamePrecedence:y}}function h(d,m,g){return d.some(y=>y.includes(m)&&y.includes(g))}function f(d){return d.type==="ConditionalExpression"?d.test:d.left}return Uy={meta:{deprecated:!0,replacedBy:[],type:"suggestion",docs:{description:"Disallow mixed binary operators",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-mixed-operators"},schema:[{type:"object",properties:{groups:{type:"array",items:{type:"array",items:{enum:o},minItems:2,uniqueItems:!0},uniqueItems:!0},allowSamePrecedence:{type:"boolean",default:!0}},additionalProperties:!1}],messages:{unexpectedMixedOperator:"Unexpected mix of '{{leftOperator}}' and '{{rightOperator}}'. Use parentheses to clarify the intended order of operations."}},create(d){let m=d.sourceCode,g=p(d.options[0]);function y(O){let C=O,E=O.parent;return!h(g.groups,C.operator,E.type==="ConditionalExpression"?"?:":E.operator)||g.allowSamePrecedence&&r.getPrecedence(C)===r.getPrecedence(E)}function v(O){return O.operator!==O.parent.operator&&!r.isParenthesised(m,O)}function x(O){return m.getTokenAfter(f(O),r.isNotClosingParenToken)}function S(O){let C=O.parent,E=f(C)===O?O:C,k=f(C)!==O?O:C,A={leftOperator:E.operator||"?:",rightOperator:k.operator||"?:"};d.report({node:E,loc:x(E).loc,messageId:"unexpectedMixedOperator",data:A}),d.report({node:k,loc:x(k).loc,messageId:"unexpectedMixedOperator",data:A})}function w(O){c.test(O.parent.type)&&v(O)&&!y(O)&&S(O)}return{BinaryExpression:w,LogicalExpression:w}}},Uy}var Vy,FI;function XW(){return FI||(FI=1,Vy={meta:{deprecated:!0,replacedBy:[],type:"suggestion",docs:{description:"Disallow `require` calls to be mixed with regular variable declarations",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-mixed-requires"},schema:[{oneOf:[{type:"boolean"},{type:"object",properties:{grouping:{type:"boolean"},allowCall:{type:"boolean"}},additionalProperties:!1}]}],messages:{noMixRequire:"Do not mix 'require' and other declarations.",noMixCoreModuleFileComputed:"Do not mix core, module, file and computed requires."}},create(r){let e=r.options[0],t=!1,s=!1;typeof e=="object"?(t=e.grouping,s=e.allowCall):t=!!e;function n(){return["assert","buffer","child_process","cluster","crypto","dgram","dns","domain","events","fs","http","https","net","os","path","punycode","querystring","readline","repl","smalloc","stream","string_decoder","tls","tty","url","util","v8","vm","zlib"]}let i=n(),a="require",l="uninitialized",o="other",u="core",c="file",p="module",h="computed";function f(y){return y?y.type==="CallExpression"&&y.callee.type==="Identifier"&&y.callee.name==="require"?a:s&&y.type==="CallExpression"&&y.callee.type==="CallExpression"?f(y.callee):y.type==="MemberExpression"?f(y.object):o:l}function d(y){if(y.type==="MemberExpression")return d(y.object);if(y.arguments.length===0)return h;let v=y.arguments[0];return v.type!=="Literal"||typeof v.value!="string"?h:i.includes(v.value)?u:/^\.{0,2}\//u.test(v.value)?c:p}function m(y){let v={};return y.forEach(x=>{let S=f(x.init);v[S]=!0}),!!(v[a]&&(v[l]||v[o]))}function g(y){let v={};return y.forEach(x=>{f(x.init)===a&&(v[d(x.init)]=!0)}),Object.keys(v).length<=1}return{VariableDeclaration(y){m(y.declarations)?r.report({node:y,messageId:"noMixRequire"}):t&&!g(y.declarations)&&r.report({node:y,messageId:"noMixCoreModuleFileComputed"})}}}}),Vy}var Wy,BI;function YW(){return BI||(BI=1,Wy={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Disallow mixed spaces and tabs for indentation",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-mixed-spaces-and-tabs"},schema:[{enum:["smart-tabs",!0,!1]}],messages:{mixedSpacesAndTabs:"Mixed spaces and tabs."}},create(r){let e=r.sourceCode,t;switch(r.options[0]){case!0:case"smart-tabs":t=!0;break;default:t=!1}return{"Program:exit"(s){let n=e.lines,i=e.getAllComments(),a=new Set;i.forEach(o=>{for(let u=o.loc.start.line+1;u<=o.loc.end.line;u++)a.add(u)});let l=/^(?=( +|\t+))\1(?:\t| )/u;t&&(l=/^(?=(\t*))\1(?=( +))\2\t/u),n.forEach((o,u)=>{let c=l.exec(o);if(c){let p=u+1,h={start:{line:p,column:c[0].length-2},end:{line:p,column:c[0].length}};if(!a.has(p)){let f=e.getNodeByRangeIndex(e.getIndexFromLoc(h.start));f&&["Literal","TemplateElement"].includes(f.type)||r.report({node:s,loc:h,messageId:"mixedSpacesAndTabs"})}}})}}}}),Wy}var zy,NI;function HW(){return NI||(NI=1,zy={meta:{type:"suggestion",docs:{description:"Disallow use of chained assignment expressions",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-multi-assign"},schema:[{type:"object",properties:{ignoreNonDeclaration:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{unexpectedChain:"Unexpected chained assignment."}},create(r){let e=r.options[0]||{ignoreNonDeclaration:!1},t=["VariableDeclarator > AssignmentExpression.init","PropertyDefinition > AssignmentExpression.value"];return e.ignoreNonDeclaration||t.push("AssignmentExpression > AssignmentExpression.right"),{[t](s){r.report({node:s,messageId:"unexpectedChain"})}}}}),zy}var Zy,LI;function KW(){if(LI)return Zy;LI=1;let r=Pe();return Zy={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Disallow multiple spaces",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-multi-spaces"},fixable:"whitespace",schema:[{type:"object",properties:{exceptions:{type:"object",patternProperties:{"^([A-Z][a-z]*)+$":{type:"boolean"}},additionalProperties:!1},ignoreEOLComments:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{multipleSpaces:"Multiple spaces found before '{{displayValue}}'."}},create(e){let t=e.sourceCode,s=e.options[0]||{},n=s.ignoreEOLComments,i=Object.assign({Property:!0},s.exceptions),a=Object.keys(i).some(o=>i[o]);function l(o){let u=o.value.split(` +`),c=u[0],p=`${c.slice(0,12)}...`;return u.length===1&&c.length<=12?c:p}return{Program(){t.tokensAndComments.forEach((o,u,c)=>{if(u===c.length-1)return;let p=c[u+1];if(!t.text.slice(o.range[1],p.range[0]).includes(" ")||o.loc.end.linef.replaceTextRange([o.range[1],p.range[0]]," ")})})}}}},Zy}var Gy,$I;function JW(){if($I)return Gy;$I=1;let r=Pe();return Gy={meta:{type:"suggestion",docs:{description:"Disallow multiline strings",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-multi-str"},schema:[],messages:{multilineString:"Multiline support is limited to browsers supporting ES5 only."}},create(e){function t(s){return s.type.indexOf("JSX")===0}return{Literal(s){r.LINEBREAK_MATCHER.test(s.raw)&&!t(s.parent)&&e.report({node:s,messageId:"multilineString"})}}}},Gy}var Xy,MI;function ez(){return MI||(MI=1,Xy={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Disallow multiple empty lines",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-multiple-empty-lines"},fixable:"whitespace",schema:[{type:"object",properties:{max:{type:"integer",minimum:0},maxEOF:{type:"integer",minimum:0},maxBOF:{type:"integer",minimum:0}},required:["max"],additionalProperties:!1}],messages:{blankBeginningOfFile:"Too many blank lines at the beginning of file. Max of {{max}} allowed.",blankEndOfFile:"Too many blank lines at the end of file. Max of {{max}} allowed.",consecutiveBlank:"More than {{max}} blank {{pluralizedLines}} not allowed."}},create(r){let e=2,t=e,s=e;r.options.length&&(e=r.options[0].max,t=typeof r.options[0].maxEOF<"u"?r.options[0].maxEOF:e,s=typeof r.options[0].maxBOF<"u"?r.options[0].maxBOF:e);let n=r.sourceCode,i=n.lines.at(-1)===""?n.lines.slice(0,-1):n.lines,a=new Set;return{TemplateLiteral(l){l.quasis.forEach(o=>{for(let u=o.loc.start.line;u((u.trim()||a.has(c+1))&&o.push(c+1),o),[]).concat(i.length+1).reduce((o,u)=>{let c,p;return o===0?(c="blankBeginningOfFile",p=s):u===i.length+1?(c="blankEndOfFile",p=t):(c="consecutiveBlank",p=e),u-o-1>p&&r.report({node:l,loc:{start:{line:o+p+1,column:0},end:{line:u,column:0}},messageId:c,data:{max:p,pluralizedLines:p===1?"line":"lines"},fix(h){let f=n.getIndexFromLoc({line:o+1,column:0}),d=u-p,m=d<=i.length?n.getIndexFromLoc({line:d,column:0}):n.text.length;return h.removeRange([f,m])}}),u},0)}}}}),Xy}var Yy,jI;function tz(){return jI||(jI=1,Yy={meta:{type:"suggestion",docs:{description:"Disallow assignments to native objects or read-only global variables",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-native-reassign"},deprecated:!0,replacedBy:["no-global-assign"],schema:[{type:"object",properties:{exceptions:{type:"array",items:{type:"string"},uniqueItems:!0}},additionalProperties:!1}],messages:{nativeReassign:"Read-only global '{{name}}' should not be modified."}},create(r){let e=r.options[0],t=e&&e.exceptions||[],s=r.sourceCode;function n(a,l,o){let u=a.identifier;a.init===!1&&a.isWrite()&&(l===0||o[l-1].identifier!==u)&&r.report({node:u,messageId:"nativeReassign",data:u})}function i(a){a.writeable===!1&&!t.includes(a.name)&&a.references.forEach(n)}return{Program(a){s.getScope(a).variables.forEach(i)}}}}),Yy}var Hy,qI;function rz(){return qI||(qI=1,Hy={meta:{type:"suggestion",docs:{description:"Disallow negated conditions",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-negated-condition"},schema:[],messages:{unexpectedNegated:"Unexpected negated condition."}},create(r){function e(i){return i.alternate&&i.alternate.type!=="IfStatement"}function t(i){return i.type==="UnaryExpression"&&i.operator==="!"}function s(i){return i.type==="BinaryExpression"&&(i.operator==="!="||i.operator==="!==")}function n(i){return t(i.test)||s(i.test)}return{IfStatement(i){e(i)&&n(i)&&r.report({node:i,messageId:"unexpectedNegated"})},ConditionalExpression(i){n(i)&&r.report({node:i,messageId:"unexpectedNegated"})}}}}),Hy}var Ky,QI;function nz(){return QI||(QI=1,Ky={meta:{type:"problem",docs:{description:"Disallow negating the left operand in `in` expressions",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-negated-in-lhs"},replacedBy:["no-unsafe-negation"],deprecated:!0,schema:[],messages:{negatedLHS:"The 'in' expression's left operand is negated."}},create(r){return{BinaryExpression(e){e.operator==="in"&&e.left.type==="UnaryExpression"&&e.left.operator==="!"&&r.report({node:e,messageId:"negatedLHS"})}}}}),Ky}var Jy,UI;function sz(){return UI||(UI=1,Jy={meta:{type:"suggestion",docs:{description:"Disallow nested ternary expressions",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-nested-ternary"},schema:[],messages:{noNestedTernary:"Do not nest ternary expressions."}},create(r){return{ConditionalExpression(e){(e.alternate.type==="ConditionalExpression"||e.consequent.type==="ConditionalExpression")&&r.report({node:e,messageId:"noNestedTernary"})}}}}),Jy}var eb,VI;function iz(){return VI||(VI=1,eb={meta:{type:"suggestion",docs:{description:"Disallow `new` operators outside of assignments or comparisons",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-new"},schema:[],messages:{noNewStatement:"Do not use 'new' for side effects."}},create(r){return{"ExpressionStatement > NewExpression"(e){r.report({node:e.parent,messageId:"noNewStatement"})}}}}),eb}var tb,WI;function az(){if(WI)return tb;WI=1;let r=Pe(),e=new Set(["apply","bind","call"]);return tb={meta:{type:"suggestion",docs:{description:"Disallow `new` operators with the `Function` object",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-new-func"},schema:[],messages:{noFunctionConstructor:"The Function constructor is eval."}},create(t){let s=t.sourceCode;return{"Program:exit"(n){let a=s.getScope(n).set.get("Function");a&&a.defs.length===0&&a.references.forEach(l=>{let o=l.identifier,{parent:u}=o,c;if(u){if(o===u.callee&&(u.type==="NewExpression"||u.type==="CallExpression"))c=u;else if(u.type==="MemberExpression"&&o===u.object&&e.has(r.getStaticPropertyName(u))){let p=u.parent.type==="ChainExpression"?u.parent:u;p.parent.type==="CallExpression"&&p.parent.callee===p&&(c=p.parent)}}c&&t.report({node:c,messageId:"noFunctionConstructor"})})}}}},tb}var rb,zI;function oz(){if(zI)return rb;zI=1;let r=["Symbol","BigInt"];return rb={meta:{type:"problem",docs:{description:"Disallow `new` operators with global non-constructor functions",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-new-native-nonconstructor"},schema:[],messages:{noNewNonconstructor:"`{{name}}` cannot be called as a constructor."}},create(e){let t=e.sourceCode;return{"Program:exit"(s){let n=t.getScope(s);for(let i of r){let a=n.set.get(i);a&&a.defs.length===0&&a.references.forEach(l=>{let o=l.identifier,u=o.parent;u&&u.type==="NewExpression"&&u.callee===o&&e.report({node:o,messageId:"noNewNonconstructor",data:{name:i}})})}}}}},rb}var nb,ZI;function lz(){if(ZI)return nb;ZI=1;let r=Pe();return nb={meta:{type:"suggestion",docs:{description:"Disallow `Object` constructors",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-new-object"},deprecated:!0,replacedBy:["no-object-constructor"],schema:[],messages:{preferLiteral:"The object literal notation {} is preferable."}},create(e){let t=e.sourceCode;return{NewExpression(s){let n=r.getVariableByName(t.getScope(s),s.callee.name);n&&n.identifiers.length>0||s.callee.name==="Object"&&e.report({node:s,messageId:"preferLiteral"})}}}},nb}var sb,GI;function uz(){return GI||(GI=1,sb={meta:{deprecated:!0,replacedBy:[],type:"suggestion",docs:{description:"Disallow `new` operators with calls to `require`",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-new-require"},schema:[],messages:{noNewRequire:"Unexpected use of new with require."}},create(r){return{NewExpression(e){e.callee.type==="Identifier"&&e.callee.name==="require"&&r.report({node:e,messageId:"noNewRequire"})}}}}),sb}var ib,XI;function cz(){return XI||(XI=1,ib={meta:{type:"problem",docs:{description:"Disallow `new` operators with the `Symbol` object",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-new-symbol"},deprecated:!0,replacedBy:["no-new-native-nonconstructor"],schema:[],messages:{noNewSymbol:"`Symbol` cannot be called as a constructor."}},create(r){let e=r.sourceCode;return{"Program:exit"(t){let n=e.getScope(t).set.get("Symbol");n&&n.defs.length===0&&n.references.forEach(i=>{let a=i.identifier,l=a.parent;l&&l.type==="NewExpression"&&l.callee===a&&r.report({node:a,messageId:"noNewSymbol"})})}}}}),ib}var ab,YI;function fz(){if(YI)return ab;YI=1;let{getVariableByName:r}=Pe();return ab={meta:{type:"suggestion",docs:{description:"Disallow `new` operators with the `String`, `Number`, and `Boolean` objects",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-new-wrappers"},schema:[],messages:{noConstructor:"Do not use {{fn}} as a constructor."}},create(e){let{sourceCode:t}=e;return{NewExpression(s){let n=["String","Number","Boolean"],{name:i}=s.callee;if(n.includes(i)){let a=r(t.getScope(s),i);a&&a.identifiers.length===0&&e.report({node:s,messageId:"noConstructor",data:{fn:i}})}}}}},ab}var ob,HI;function pz(){if(HI)return ob;HI=1;let r=/\\[89]/u;function e(t){return`\\u${t.charCodeAt(0).toString(16).padStart(4,"0")}`}return ob={meta:{type:"suggestion",docs:{description:"Disallow `\\8` and `\\9` escape sequences in string literals",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-nonoctal-decimal-escape"},hasSuggestions:!0,schema:[],messages:{decimalEscape:"Don't use '{{decimalEscape}}' escape sequence.",refactor:"Replace '{{original}}' with '{{replacement}}'. This maintains the current functionality.",escapeBackslash:"Replace '{{original}}' with '{{replacement}}' to include the actual backslash character."}},create(t){let s=t.sourceCode;function n(i,a,l){return{messageId:i,data:{original:s.getText().slice(...a),replacement:l},fix(o){return o.replaceTextRange(a,l)}}}return{Literal(i){if(typeof i.value!="string"||!r.test(i.raw))return;let a=/(?:[^\\]|(?\\.))*?(?\\[89])/suy,l;for(;l=a.exec(i.raw);){let{previousEscape:o,decimalEscape:u}=l.groups,c=i.range[0]+l.index+l[0].length,p=c-u.length,h=[p,c],f=[];o==="\\0"?f.push(n("refactor",[p-o.length,c],`${e("\0")}${u[1]}`),n("refactor",h,e(u[1]))):f.push(n("refactor",h,u[1])),f.push(n("escapeBackslash",h,`\\${u}`)),t.report({node:i,loc:{start:s.getLocFromIndex(p),end:s.getLocFromIndex(c)},messageId:"decimalEscape",data:{decimalEscape:u},suggest:f})}}}}},ob}var lb,KI;function hz(){if(KI)return lb;KI=1;let{CALL:r,CONSTRUCT:e,ReferenceTracker:t}=hr(),s=Pe().getStaticPropertyName,n=["Atomics","JSON","Math","Reflect","Intl"];function i(a){return a.type==="ChainExpression"?i(a.expression):a.type==="MemberExpression"?s(a):a.name}return lb={meta:{type:"problem",docs:{description:"Disallow calling global object properties as functions",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-obj-calls"},schema:[],messages:{unexpectedCall:"'{{name}}' is not a function.",unexpectedRefCall:"'{{name}}' is reference to '{{ref}}', which is not a function."}},create(a){let l=a.sourceCode;return{Program(o){let u=l.getScope(o),c=new t(u),p={};for(let h of n)p[h]={[r]:!0,[e]:!0};for(let{node:h,path:f}of c.iterateGlobalReferences(p)){let d=i(h.callee),m=f[0],g=d===m?"unexpectedCall":"unexpectedRefCall";a.report({node:h,messageId:g,data:{name:d,ref:m}})}}}}},lb}var ub,JI;function dz(){if(JI)return ub;JI=1;let{getVariableByName:r,isArrowToken:e,isStartOfExpressionStatement:t,needsPrecedingSemicolon:s}=Pe();return ub={meta:{type:"suggestion",docs:{description:"Disallow calls to the `Object` constructor without an argument",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-object-constructor"},hasSuggestions:!0,schema:[],messages:{preferLiteral:"The object literal notation {} is preferable.",useLiteral:"Replace with '{{replacement}}'.",useLiteralAfterSemicolon:"Replace with '{{replacement}}', add preceding semicolon."}},create(n){let i=n.sourceCode;function a(o){if(t(o))return!0;let u=i.getTokenBefore(o);return!!(u&&e(u))}function l(o){if(o.callee.type!=="Identifier"||o.callee.name!=="Object"||o.arguments.length)return;let u=r(i.getScope(o),"Object");if(u&&u.identifiers.length===0){let c,p,h="useLiteral";a(o)?(c="({})",s(i,o)?(p=";({})",h="useLiteralAfterSemicolon"):p="({})"):c=p="{}",n.report({node:o,messageId:"preferLiteral",suggest:[{messageId:h,data:{replacement:c},fix:f=>f.replaceText(o,p)}]})}}return{CallExpression:l,NewExpression:l}}},ub}var cb,e2;function mz(){return e2||(e2=1,cb={meta:{type:"suggestion",docs:{description:"Disallow octal literals",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-octal"},schema:[],messages:{noOctal:"Octal literals should not be used."}},create(r){return{Literal(e){typeof e.value=="number"&&/^0[0-9]/u.test(e.raw)&&r.report({node:e,messageId:"noOctal"})}}}}),cb}var fb,t2;function gz(){return t2||(t2=1,fb={meta:{type:"suggestion",docs:{description:"Disallow octal escape sequences in string literals",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-octal-escape"},schema:[],messages:{octalEscapeSequence:"Don't use octal: '\\{{sequence}}'. Use '\\u....' instead."}},create(r){return{Literal(e){if(typeof e.value!="string")return;let t=e.raw.match(/^(?:[^\\]|\\.)*?\\([0-3][0-7]{1,2}|[4-7][0-7]|0(?=[89])|[1-7])/su);t&&r.report({node:e,messageId:"octalEscapeSequence",data:{sequence:t[1]}})}}}}),fb}var pb,r2;function yz(){if(r2)return pb;r2=1;let r=/(?:Statement|Declaration|Function(?:Expression)?|Program)$/u;return pb={meta:{type:"suggestion",docs:{description:"Disallow reassigning `function` parameters",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-param-reassign"},schema:[{oneOf:[{type:"object",properties:{props:{enum:[!1]}},additionalProperties:!1},{type:"object",properties:{props:{enum:[!0]},ignorePropertyModificationsFor:{type:"array",items:{type:"string"},uniqueItems:!0},ignorePropertyModificationsForRegex:{type:"array",items:{type:"string"},uniqueItems:!0}},additionalProperties:!1}]}],messages:{assignmentToFunctionParam:"Assignment to function parameter '{{name}}'.",assignmentToFunctionParamProp:"Assignment to property of function parameter '{{name}}'."}},create(e){let t=e.options[0]&&e.options[0].props,s=e.options[0]&&e.options[0].ignorePropertyModificationsFor||[],n=e.options[0]&&e.options[0].ignorePropertyModificationsForRegex||[],i=e.sourceCode;function a(p){let h=p.identifier,f=h.parent;for(;f&&(!r.test(f.type)||f.type==="ForInStatement"||f.type==="ForOfStatement");){switch(f.type){case"AssignmentExpression":return f.left===h;case"UpdateExpression":return!0;case"UnaryExpression":if(f.operator==="delete")return!0;break;case"ForInStatement":case"ForOfStatement":return f.left===h;case"CallExpression":if(f.callee!==h)return!1;break;case"MemberExpression":if(f.property===h)return!1;break;case"Property":if(f.key===h)return!1;break;case"ConditionalExpression":if(f.test===h)return!1;break}h=f,f=h.parent}return!1}function l(p){return s.includes(p)||n.some(h=>new RegExp(h,"u").test(p))}function o(p,h,f){let d=p.identifier;d&&!p.init&&(h===0||f[h-1].identifier!==d)&&(p.isWrite()?e.report({node:d,messageId:"assignmentToFunctionParam",data:{name:d.name}}):t&&a(p)&&!l(d.name)&&e.report({node:d,messageId:"assignmentToFunctionParamProp",data:{name:d.name}}))}function u(p){p.defs[0].type==="Parameter"&&p.references.forEach(o)}function c(p){i.getDeclaredVariables(p).forEach(u)}return{"FunctionDeclaration:exit":c,"FunctionExpression:exit":c,"ArrowFunctionExpression:exit":c}}},pb}var hb,n2;function bz(){return n2||(n2=1,hb={meta:{deprecated:!0,replacedBy:[],type:"suggestion",docs:{description:"Disallow string concatenation with `__dirname` and `__filename`",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-path-concat"},schema:[],messages:{usePathFunctions:"Use path.join() or path.resolve() instead of + to create paths."}},create(r){let e=/^__(?:dir|file)name$/u;return{BinaryExpression(t){let s=t.left,n=t.right;t.operator==="+"&&(s.type==="Identifier"&&e.test(s.name)||n.type==="Identifier"&&e.test(n.name))&&r.report({node:t,messageId:"usePathFunctions"})}}}}),hb}var db,s2;function vz(){if(s2)return db;s2=1;function r(t){let s=t.parent;return s.type==="ForStatement"&&s.update===t}function e(t){let s=t.parent;return s.type==="SequenceExpression"?e(s):r(t)}return db={meta:{type:"suggestion",docs:{description:"Disallow the unary operators `++` and `--`",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-plusplus"},schema:[{type:"object",properties:{allowForLoopAfterthoughts:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{unexpectedUnaryOp:"Unary operator '{{operator}}' used."}},create(t){let s=t.options[0],n=!1;return typeof s=="object"&&(n=s.allowForLoopAfterthoughts===!0),{UpdateExpression(i){n&&e(i)||t.report({node:i,messageId:"unexpectedUnaryOp",data:{operator:i.operator}})}}}},db}var mb,i2;function xz(){return i2||(i2=1,mb={meta:{deprecated:!0,replacedBy:[],type:"suggestion",docs:{description:"Disallow the use of `process.env`",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-process-env"},schema:[],messages:{unexpectedProcessEnv:"Unexpected use of process.env."}},create(r){return{MemberExpression(e){let t=e.object.name,s=e.property.name;t==="process"&&!e.computed&&s&&s==="env"&&r.report({node:e,messageId:"unexpectedProcessEnv"})}}}}),mb}var gb,a2;function Oz(){return a2||(a2=1,gb={meta:{deprecated:!0,replacedBy:[],type:"suggestion",docs:{description:"Disallow the use of `process.exit()`",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-process-exit"},schema:[],messages:{noProcessExit:"Don't use process.exit(); throw an error instead."}},create(r){return{"CallExpression > MemberExpression.callee[object.name = 'process'][property.name = 'exit']"(e){r.report({node:e.parent,messageId:"noProcessExit"})}}}}),gb}var yb,o2;function Sz(){if(o2)return yb;o2=1;let{findVariable:r}=hr(),e=Pe(),t=new Set(["ArrowFunctionExpression","FunctionExpression"]);function s(u,c){let p=r(c,u);return p!==null&&p.scope.type==="global"&&p.defs.length===0}function n(u){let c=u.upper;return c.type==="function-expression-name"?c.upper:c}function i(u,c){let p=u.parent;return p.type==="NewExpression"&&p.arguments[0]===u&&p.callee.type==="Identifier"&&p.callee.name==="Promise"&&s(p.callee,n(c))}function a(u){return u.type==="UnaryExpression"&&u.operator==="void"}function l(u,c,p){let h=e.getPrecedence(c)g.type==="Keyword"&&g.value==="return"),d=u.getTokenAfter(f),m=f.value==="return"&&f.range[1]===d.range[0];return[p.insertTextBefore(d,`${m?" ":""}void ${h?"(":""}`),p.insertTextAfter(c,h?")":"")]}function o(u,c,p){let h=u.getTokenBefore(c.body,e.isArrowToken),f=u.getTokenAfter(h),d=u.getLastToken(c);return[p.insertTextBefore(f,"{"),p.insertTextAfter(d,"}")]}return yb={meta:{type:"problem",docs:{description:"Disallow returning values from Promise executor functions",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-promise-executor-return"},hasSuggestions:!0,schema:[{type:"object",properties:{allowVoid:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{returnsValue:"Return values from promise executor functions cannot be read.",prependVoid:"Prepend `void` to the expression.",wrapBraces:"Wrap the expression in `{}`."}},create(u){let c=null,p=u.sourceCode,{allowVoid:h=!1}=u.options[0]||{};return{onCodePathStart(f,d){if(c={upper:c,shouldCheck:t.has(d.type)&&i(d,p.getScope(d))},c.shouldCheck&&d.type==="ArrowFunctionExpression"&&d.expression&&!(h&&a(d.body))){let m=[];h&&m.push({messageId:"prependVoid",fix(g){return l(p,d.body,g)}}),d.body.type==="FunctionExpression"&&!d.body.id||m.push({messageId:"wrapBraces",fix(g){return o(p,d,g)}}),u.report({node:d.body,messageId:"returnsValue",suggest:m})}},onCodePathEnd(){c=c.upper},ReturnStatement(f){if(c.shouldCheck&&f.argument){if(!h){u.report({node:f,messageId:"returnsValue"});return}a(f.argument)||u.report({node:f,messageId:"returnsValue",suggest:[{messageId:"prependVoid",fix(d){return l(p,f.argument,d)}}]})}}}}},yb}var bb,l2;function Ez(){if(l2)return bb;l2=1;let{getStaticPropertyName:r}=Pe();return bb={meta:{type:"suggestion",docs:{description:"Disallow the use of the `__proto__` property",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-proto"},schema:[],messages:{unexpectedProto:"The '__proto__' property is deprecated."}},create(e){return{MemberExpression(t){r(t)==="__proto__"&&e.report({node:t,messageId:"unexpectedProto"})}}}},bb}var vb,u2;function wz(){if(u2)return vb;u2=1;let r=Pe();function e(t){let s;if(t.type==="MemberExpression")s=t.object;else if(t.type==="CallExpression")s=t.callee;else return!1;return t.optional?!0:e(s)}return vb={meta:{type:"problem",docs:{description:"Disallow calling some `Object.prototype` methods directly on objects",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-prototype-builtins"},hasSuggestions:!0,schema:[],messages:{prototypeBuildIn:"Do not access Object.prototype method '{{prop}}' from target object.",callObjectPrototype:"Call Object.prototype.{{prop}} explicitly."}},create(t){let s=new Set(["hasOwnProperty","isPrototypeOf","propertyIsEnumerable"]);function n(i){let a=r.skipChainExpression(i.callee);if(a.type!=="MemberExpression")return;let l=r.getStaticPropertyName(a);l!==null&&s.has(l)&&t.report({messageId:"prototypeBuildIn",loc:a.property.loc,data:{prop:l},node:i,suggest:[{messageId:"callObjectPrototype",data:{prop:l},fix(o){let u=t.sourceCode;if(e(i)||i.callee.type==="ChainExpression")return null;let c=r.getVariableByName(u.getScope(i),"Object");if(!c||c.scope.type!=="global"||c.defs.length>0)return null;let p=u.getText(a.object);r.getPrecedence(a.object)<=r.getPrecedence({type:"SequenceExpression"})&&(p=`(${p})`);let h=u.getTokenAfter(i.callee,r.isOpeningParenToken),d=i.arguments.length===0?"":", ";return[o.replaceText(a,`Object.prototype.${l}.call`),o.insertTextAfter(h,p+d)]}}]})}return{CallExpression:n}}},vb}var xb,c2;function Cz(){if(c2)return xb;c2=1;let r=Pe();return xb={meta:{type:"suggestion",docs:{description:"Disallow variable redeclaration",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-redeclare"},messages:{redeclared:"'{{id}}' is already defined.",redeclaredAsBuiltin:"'{{id}}' is already defined as a built-in global variable.",redeclaredBySyntax:"'{{id}}' is already defined by a variable declaration."},schema:[{type:"object",properties:{builtinGlobals:{type:"boolean",default:!0}},additionalProperties:!1}]},create(e){let t={builtinGlobals:!!(e.options.length===0||e.options[0].builtinGlobals)},s=e.sourceCode;function*n(l){t.builtinGlobals&&(l.eslintImplicitGlobalSetting==="readonly"||l.eslintImplicitGlobalSetting==="writable")&&(yield{type:"builtin"});for(let o of l.identifiers)yield{type:"syntax",node:o,loc:o.loc};if(l.eslintExplicitGlobalComments)for(let o of l.eslintExplicitGlobalComments)yield{type:"comment",node:o,loc:r.getNameLocationInGlobalDirectiveComment(s,o,l.name)}}function i(l){for(let o of l.variables){let[u,...c]=n(o);if(c.length===0)continue;let p=u.type==="builtin"?"redeclaredAsBuiltin":"redeclaredBySyntax",h={id:o.name};for(let{type:f,node:d,loc:m}of c){let g=f===u.type?"redeclared":p;e.report({node:d,loc:m,messageId:g,data:h})}}}function a(l){let o=s.getScope(l);o.block===l&&i(o)}return{Program(l){let o=s.getScope(l);i(o),o.type==="global"&&o.childScopes[0]&&o.block===o.childScopes[0].block&&i(o.childScopes[0])},FunctionDeclaration:a,FunctionExpression:a,ArrowFunctionExpression:a,StaticBlock:a,BlockStatement:a,ForStatement:a,ForInStatement:a,ForOfStatement:a,SwitchStatement:a}}},xb}var Ob,f2;function kz(){if(f2)return Ob;f2=1;let r=Pe(),e=Gn(),t=new e.RegExpParser,s=/ {2}/u;function n(i){return i&&i.type==="Literal"&&typeof i.value=="string"}return Ob={meta:{type:"suggestion",docs:{description:"Disallow multiple spaces in regular expressions",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-regex-spaces"},schema:[],fixable:"code",messages:{multipleSpaces:"Spaces are hard to count. Use {{{length}}}."}},create(i){let a=i.sourceCode;function l(c,p,h,f,d){if(!s.test(h))return;let m=[],g;try{g=t.parsePattern(p,0,p.length,{unicode:d.includes("u"),unicodeSets:d.includes("v")})}catch{return}e.visitRegExpAST(g,{onCharacterClassEnter(x){m.push(x)}});let y=/( {2,})(?: [+*{?]|[^+*{?]|$)/gu,v;for(;v=y.exec(p);){let{1:{length:x},index:S}=v;if(m.every(({start:w,end:O})=>S0,d=c.arguments[0];if(c.callee.type==="Identifier"&&c.callee.name==="RegExp"&&n(d)&&!f){let m=d.value,g=d.raw.slice(1,-1),y=d.range[0]+1,v;if(c.arguments.length<2)v="";else{let x=c.arguments[1];if(n(x))v=x.value;else return}l(c,m,g,y,v)}}return{Literal:o,CallExpression:u,NewExpression:u}}},Ob}var Sb,p2;function Az(){if(p2)return Sb;p2=1;let r=Pe();return Sb={meta:{type:"suggestion",docs:{description:"Disallow specified names in exports",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-restricted-exports"},schema:[{anyOf:[{type:"object",properties:{restrictedNamedExports:{type:"array",items:{type:"string"},uniqueItems:!0}},additionalProperties:!1},{type:"object",properties:{restrictedNamedExports:{type:"array",items:{type:"string",pattern:"^(?!default$)"},uniqueItems:!0},restrictDefaultExports:{type:"object",properties:{direct:{type:"boolean"},named:{type:"boolean"},defaultFrom:{type:"boolean"},namedFrom:{type:"boolean"},namespaceFrom:{type:"boolean"}},additionalProperties:!1}},additionalProperties:!1}]}],messages:{restrictedNamed:"'{{name}}' is restricted from being used as an exported name.",restrictedDefault:"Exporting 'default' is restricted."}},create(e){let t=new Set(e.options[0]&&e.options[0].restrictedNamedExports),s=e.options[0]&&e.options[0].restrictDefaultExports,n=e.sourceCode;function i(a){let l=r.getModuleExportName(a);if(t.has(l)){e.report({node:a,messageId:"restrictedNamed",data:{name:l}});return}if(l==="default")if(a.parent.type==="ExportAllDeclaration")s&&s.namespaceFrom&&e.report({node:a,messageId:"restrictedDefault"});else{let o=!!a.parent.parent.source,u=r.getModuleExportName(a.parent.local);if(!o&&s&&s.named){e.report({node:a,messageId:"restrictedDefault"});return}o&&s&&(u==="default"&&s.defaultFrom||u!=="default"&&s.namedFrom)&&e.report({node:a,messageId:"restrictedDefault"})}}return{ExportAllDeclaration(a){a.exported&&i(a.exported)},ExportDefaultDeclaration(a){s&&s.direct&&e.report({node:a,messageId:"restrictedDefault"})},ExportNamedDeclaration(a){let l=a.declaration;l?l.type==="FunctionDeclaration"||l.type==="ClassDeclaration"?i(l.id):l.type==="VariableDeclaration"&&n.getDeclaredVariables(l).map(o=>o.defs.find(u=>u.parent===l)).map(o=>o.name).forEach(i):a.specifiers.map(o=>o.exported).forEach(i)}}}},Sb}var Eb,h2;function Pz(){return h2||(h2=1,Eb={meta:{type:"suggestion",docs:{description:"Disallow specified global variables",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-restricted-globals"},schema:{type:"array",items:{oneOf:[{type:"string"},{type:"object",properties:{name:{type:"string"},message:{type:"string"}},required:["name"],additionalProperties:!1}]},uniqueItems:!0,minItems:0},messages:{defaultMessage:"Unexpected use of '{{name}}'.",customMessage:"Unexpected use of '{{name}}'. {{customMessage}}"}},create(r){let e=r.sourceCode;if(r.options.length===0)return{};let t=r.options.reduce((i,a)=>(typeof a=="string"?i[a]=null:i[a.name]=a.message,i),{});function s(i){let a=i.identifier.name,l=t[a],o=l?"customMessage":"defaultMessage";r.report({node:i.identifier,messageId:o,data:{name:a,customMessage:l}})}function n(i){return Object.hasOwn(t,i)}return{Program(i){let a=e.getScope(i);a.variables.forEach(l=>{!l.defs.length&&n(l.name)&&l.references.forEach(s)}),a.through.forEach(l=>{n(l.identifier.name)&&s(l)})}}}}),Eb}var wb,d2;function rN(){if(d2)return wb;d2=1;function r(j){return Array.isArray(j)?j:[j]}let e="",t=" ",s="\\",n=/^\s+$/,i=/(?:[^\\]|^)\\$/,a=/^\\!/,l=/^\\#/,o=/\r?\n/g,u=/^\.*\/|^\.+$/,c="/",p="node-ignore";typeof Symbol<"u"&&(p=Symbol.for("node-ignore"));let h=p,f=(j,Q,I)=>Object.defineProperty(j,Q,{value:I}),d=/([0-z])-([0-z])/g,m=()=>!1,g=j=>j.replace(d,(Q,I,N)=>I.charCodeAt(0)<=N.charCodeAt(0)?Q:e),y=j=>{let{length:Q}=j;return j.slice(0,Q-Q%2)},v=[[/^\uFEFF/,()=>e],[/\\?\s+$/,j=>j.indexOf("\\")===0?t:e],[/\\\s/g,()=>t],[/[\\$.|*+(){^]/g,j=>`\\${j}`],[/(?!\\)\?/g,()=>"[^/]"],[/^\//,()=>"^"],[/\//g,()=>"\\/"],[/^\^*\\\*\\\*\\\//,()=>"^(?:.*\\/)?"],[/^(?=[^^])/,function(){return/\/(?!$)/.test(this)?"^":"(?:^|\\/)"}],[/\\\/\\\*\\\*(?=\\\/|$)/g,(j,Q,I)=>Q+6{let N=I.replace(/\\\*/g,"[^\\/]*");return Q+N}],[/\\\\\\(?=[$.|*+(){^])/g,()=>s],[/\\\\/g,()=>s],[/(\\)?\[([^\]/]*?)(\\*)($|\])/g,(j,Q,I,N,F)=>Q===s?`\\[${I}${y(N)}${F}`:F==="]"&&N.length%2===0?`[${g(I)}${N}]`:"[]"],[/(?:[^*])$/,j=>/\/$/.test(j)?`${j}$`:`${j}(?=$|\\/$)`],[/(\^|\\\/)?\\\*$/,(j,Q)=>`${Q?`${Q}[^/]+`:"[^/]*"}(?=$|\\/$)`]],x=Object.create(null),S=(j,Q)=>{let I=x[j];return I||(I=v.reduce((N,F)=>N.replace(F[0],F[1].bind(j)),j),x[j]=I),Q?new RegExp(I,"i"):new RegExp(I)},w=j=>typeof j=="string",O=j=>j&&w(j)&&!n.test(j)&&!i.test(j)&&j.indexOf("#")!==0,C=j=>j.split(o);class E{constructor(Q,I,N,F){this.origin=Q,this.pattern=I,this.negative=N,this.regex=F}}let k=(j,Q)=>{let I=j,N=!1;j.indexOf("!")===0&&(N=!0,j=j.substr(1)),j=j.replace(a,"!").replace(l,"#");let F=S(j,Q);return new E(I,j,N,F)},A=(j,Q)=>{throw new Q(j)},D=(j,Q,I)=>w(j)?j?D.isNotRelative(j)?I(`path should be a \`path.relative()\`d string, but got "${Q}"`,RangeError):!0:I("path must not be empty",TypeError):I(`path must be a string, but got \`${Q}\``,TypeError),_=j=>u.test(j);D.isNotRelative=_,D.convert=j=>j;class B{constructor({ignorecase:Q=!0,ignoreCase:I=Q,allowRelativePaths:N=!1}={}){f(this,h,!0),this._rules=[],this._ignoreCase=I,this._allowRelativePaths=N,this._initCache()}_initCache(){this._ignoreCache=Object.create(null),this._testCache=Object.create(null)}_addPattern(Q){if(Q&&Q[h]){this._rules=this._rules.concat(Q._rules),this._added=!0;return}if(O(Q)){let I=k(Q,this._ignoreCase);this._added=!0,this._rules.push(I)}}add(Q){return this._added=!1,r(w(Q)?C(Q):Q).forEach(this._addPattern,this),this._added&&this._initCache(),this}addPattern(Q){return this.add(Q)}_testOne(Q,I){let N=!1,F=!1;return this._rules.forEach(U=>{let{negative:V}=U;if(F===V&&N!==F||V&&!N&&!F&&!I)return;U.regex.test(Q)&&(N=!V,F=V)}),{ignored:N,unignored:F}}_test(Q,I,N,F){let U=Q&&D.convert(Q);return D(U,Q,this._allowRelativePaths?m:A),this._t(U,I,N,F)}_t(Q,I,N,F){if(Q in I)return I[Q];if(F||(F=Q.split(c)),F.pop(),!F.length)return I[Q]=this._testOne(Q,N);let U=this._t(F.join(c)+c,I,N,F);return I[Q]=U.ignored?U:this._testOne(Q,N)}ignores(Q){return this._test(Q,this._ignoreCache,!1).ignored}createFilter(){return Q=>!this.ignores(Q)}filter(Q){return r(Q).filter(this.createFilter())}test(Q){return this._test(Q,this._testCache,!0)}}let T=j=>new B(j),R=j=>D(j&&D.convert(j),j,m);if(T.isPathValid=R,T.default=T,wb=T,typeof Bt<"u"&&(Bt.env&&Bt.env.IGNORE_TEST_WIN32||Bt.platform==="win32")){let j=I=>/^\\\\\?\\/.test(I)||/["<>|\u0000-\u001F]+/u.test(I)?I:I.replace(/\\/g,"/");D.convert=j;let Q=/^[a-z]:\//i;D.isNotRelative=I=>Q.test(I)||_(I)}return wb}var Cb,m2;function Tz(){if(m2)return Cb;m2=1;let r=Pe(),e=rN(),t={type:"array",items:{anyOf:[{type:"string"},{type:"object",properties:{name:{type:"string"},message:{type:"string",minLength:1},importNames:{type:"array",items:{type:"string"}},allowImportNames:{type:"array",items:{type:"string"}}},additionalProperties:!1,required:["name"],not:{required:["importNames","allowImportNames"]}}]},uniqueItems:!0};return Cb={meta:{type:"suggestion",docs:{description:"Disallow specified modules when loaded by `import`",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-restricted-imports"},messages:{path:"'{{importSource}}' import is restricted from being used.",pathWithCustomMessage:"'{{importSource}}' import is restricted from being used. {{customMessage}}",patterns:"'{{importSource}}' import is restricted from being used by a pattern.",patternWithCustomMessage:"'{{importSource}}' import is restricted from being used by a pattern. {{customMessage}}",patternAndImportName:"'{{importName}}' import from '{{importSource}}' is restricted from being used by a pattern.",patternAndImportNameWithCustomMessage:"'{{importName}}' import from '{{importSource}}' is restricted from being used by a pattern. {{customMessage}}",patternAndEverything:"* import is invalid because '{{importNames}}' from '{{importSource}}' is restricted from being used by a pattern.",patternAndEverythingWithRegexImportName:"* import is invalid because import name matching '{{importNames}}' pattern from '{{importSource}}' is restricted from being used.",patternAndEverythingWithCustomMessage:"* import is invalid because '{{importNames}}' from '{{importSource}}' is restricted from being used by a pattern. {{customMessage}}",patternAndEverythingWithRegexImportNameAndCustomMessage:"* import is invalid because import name matching '{{importNames}}' pattern from '{{importSource}}' is restricted from being used. {{customMessage}}",everything:"* import is invalid because '{{importNames}}' from '{{importSource}}' is restricted.",everythingWithCustomMessage:"* import is invalid because '{{importNames}}' from '{{importSource}}' is restricted. {{customMessage}}",importName:"'{{importName}}' import from '{{importSource}}' is restricted.",importNameWithCustomMessage:"'{{importName}}' import from '{{importSource}}' is restricted. {{customMessage}}",allowedImportName:"'{{importName}}' import from '{{importSource}}' is restricted because only '{{allowedImportNames}}' import(s) is/are allowed.",allowedImportNameWithCustomMessage:"'{{importName}}' import from '{{importSource}}' is restricted because only '{{allowedImportNames}}' import(s) is/are allowed. {{customMessage}}",everythingWithAllowImportNames:"* import is invalid because only '{{allowedImportNames}}' from '{{importSource}}' is/are allowed.",everythingWithAllowImportNamesAndCustomMessage:"* import is invalid because only '{{allowedImportNames}}' from '{{importSource}}' is/are allowed. {{customMessage}}",allowedImportNamePattern:"'{{importName}}' import from '{{importSource}}' is restricted because only imports that match the pattern '{{allowedImportNamePattern}}' are allowed from '{{importSource}}'.",allowedImportNamePatternWithCustomMessage:"'{{importName}}' import from '{{importSource}}' is restricted because only imports that match the pattern '{{allowedImportNamePattern}}' are allowed from '{{importSource}}'. {{customMessage}}",everythingWithAllowedImportNamePattern:"* import is invalid because only imports that match the pattern '{{allowedImportNamePattern}}' from '{{importSource}}' are allowed.",everythingWithAllowedImportNamePatternWithCustomMessage:"* import is invalid because only imports that match the pattern '{{allowedImportNamePattern}}' from '{{importSource}}' are allowed. {{customMessage}}"},schema:{anyOf:[t,{type:"array",items:[{type:"object",properties:{paths:t,patterns:{anyOf:[{type:"array",items:{type:"string"},uniqueItems:!0},{type:"array",items:{type:"object",properties:{importNames:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0},allowImportNames:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0},group:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0},importNamePattern:{type:"string"},allowImportNamePattern:{type:"string"},message:{type:"string",minLength:1},caseSensitive:{type:"boolean"}},additionalProperties:!1,required:["group"],not:{anyOf:[{required:["importNames","allowImportNames"]},{required:["importNamePattern","allowImportNamePattern"]},{required:["importNames","allowImportNamePattern"]},{required:["importNamePattern","allowImportNames"]},{required:["allowImportNames","allowImportNamePattern"]}]}},uniqueItems:!0}]}},additionalProperties:!1}],additionalItems:!1}]}},create(n){let i=n.sourceCode,a=Array.isArray(n.options)?n.options:[],l=typeof a[0]=="object"&&(Object.hasOwn(a[0],"paths")||Object.hasOwn(a[0],"patterns")),o=(l?a[0].paths:n.options)||[],u=o.reduce((g,y)=>{let v=typeof y=="string"?y:y.name;return g[v]||(g[v]=[]),typeof y=="string"?g[v].push({}):g[v].push({message:y.message,importNames:y.importNames,allowImportNames:y.allowImportNames}),g},Object.create(null)),c=(l?a[0].patterns:[])||[];c.length>0&&typeof c[0]=="string"&&(c=[{group:c}]);let p=c.map(({group:g,message:y,caseSensitive:v,importNames:x,importNamePattern:S,allowImportNames:w,allowImportNamePattern:O})=>({matcher:e({allowRelativePaths:!0,ignorecase:!v}).add(g),customMessage:y,importNames:x,importNamePattern:S,allowImportNames:w,allowImportNamePattern:O}));if(Object.keys(o).length===0&&p.length===0)return{};function h(g,y,v){Object.hasOwn(u,g)&&u[g].forEach(x=>{let S=x.message,w=x.importNames,O=x.allowImportNames;if(!w&&!O){n.report({node:v,messageId:S?"pathWithCustomMessage":"path",data:{importSource:g,customMessage:S}});return}y.forEach((C,E)=>{if(E==="*"){let[k]=C;w?n.report({node:v,messageId:S?"everythingWithCustomMessage":"everything",loc:k.loc,data:{importSource:g,importNames:w,customMessage:S}}):O&&n.report({node:v,messageId:S?"everythingWithAllowImportNamesAndCustomMessage":"everythingWithAllowImportNames",loc:k.loc,data:{importSource:g,allowedImportNames:O,customMessage:S}});return}w&&w.includes(E)&&C.forEach(k=>{n.report({node:v,messageId:S?"importNameWithCustomMessage":"importName",loc:k.loc,data:{importSource:g,customMessage:S,importName:E}})}),O&&!O.includes(E)&&C.forEach(k=>{n.report({node:v,loc:k.loc,messageId:S?"allowedImportNameWithCustomMessage":"allowedImportName",data:{importSource:g,customMessage:S,importName:E,allowedImportNames:O}})})})})}function f(g,y,v){let x=g.source.value.trim(),S=y.customMessage,w=y.importNames,O=y.importNamePattern?new RegExp(y.importNamePattern,"u"):null,C=y.allowImportNames,E=y.allowImportNamePattern?new RegExp(y.allowImportNamePattern,"u"):null;if(!w&&!C&&!O&&!E){n.report({node:g,messageId:S?"patternWithCustomMessage":"patterns",data:{importSource:x,customMessage:S}});return}v.forEach((k,A)=>{if(A==="*"){let[D]=k;w?n.report({node:g,messageId:S?"patternAndEverythingWithCustomMessage":"patternAndEverything",loc:D.loc,data:{importSource:x,importNames:w,customMessage:S}}):C?n.report({node:g,messageId:S?"everythingWithAllowImportNamesAndCustomMessage":"everythingWithAllowImportNames",loc:D.loc,data:{importSource:x,allowedImportNames:C,customMessage:S}}):E?n.report({node:g,messageId:S?"everythingWithAllowedImportNamePatternWithCustomMessage":"everythingWithAllowedImportNamePattern",loc:D.loc,data:{importSource:x,allowedImportNamePattern:E,customMessage:S}}):n.report({node:g,messageId:S?"patternAndEverythingWithRegexImportNameAndCustomMessage":"patternAndEverythingWithRegexImportName",loc:D.loc,data:{importSource:x,importNames:O,customMessage:S}});return}(w&&w.includes(A)||O&&O.test(A))&&k.forEach(D=>{n.report({node:g,messageId:S?"patternAndImportNameWithCustomMessage":"patternAndImportName",loc:D.loc,data:{importSource:x,customMessage:S,importName:A}})}),C&&!C.includes(A)?k.forEach(D=>{n.report({node:g,messageId:S?"allowedImportNameWithCustomMessage":"allowedImportName",loc:D.loc,data:{importSource:x,customMessage:S,importName:A,allowedImportNames:C}})}):E&&!E.test(A)&&k.forEach(D=>{n.report({node:g,messageId:S?"allowedImportNamePatternWithCustomMessage":"allowedImportNamePattern",loc:D.loc,data:{importSource:x,customMessage:S,importName:A,allowedImportNamePattern:E}})})})}function d(g,y){return y.matcher.ignores(g)}function m(g){let y=g.source.value.trim(),v=new Map;if(g.type==="ExportAllDeclaration"){let x=i.getFirstToken(g,1);v.set("*",[{loc:x.loc}])}else if(g.specifiers)for(let x of g.specifiers){let S,w={loc:x.loc};x.type==="ImportDefaultSpecifier"?S="default":x.type==="ImportNamespaceSpecifier"?S="*":x.imported?S=r.getModuleExportName(x.imported):x.local&&(S=r.getModuleExportName(x.local)),typeof S=="string"&&(v.has(S)?v.get(S).push(w):v.set(S,[w]))}h(y,v,g),p.forEach(x=>{d(y,x)&&f(g,x,v)})}return{ImportDeclaration:m,ExportNamedDeclaration(g){g.source&&m(g)},ExportAllDeclaration:m}}},Cb}var kb,g2;function Dz(){if(g2)return kb;g2=1;let r=Pe(),e=rN(),t={type:"array",items:{type:"string"},uniqueItems:!0},s={type:"array",items:{anyOf:[{type:"string"},{type:"object",properties:{name:{type:"string"},message:{type:"string",minLength:1}},additionalProperties:!1,required:["name"]}]},uniqueItems:!0};return kb={meta:{deprecated:!0,replacedBy:[],type:"suggestion",docs:{description:"Disallow specified modules when loaded by `require`",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-restricted-modules"},schema:{anyOf:[s,{type:"array",items:{type:"object",properties:{paths:s,patterns:t},additionalProperties:!1},additionalItems:!1}]},messages:{defaultMessage:"'{{name}}' module is restricted from being used.",customMessage:"'{{name}}' module is restricted from being used. {{customMessage}}",patternMessage:"'{{name}}' module is restricted from being used by a pattern."}},create(n){let i=Array.isArray(n.options)?n.options:[],a=typeof i[0]=="object"&&(Object.hasOwn(i[0],"paths")||Object.hasOwn(i[0],"patterns")),l=(a?i[0].paths:n.options)||[],o=(a?i[0].patterns:[])||[],u=l.reduce((g,y)=>(typeof y=="string"?g[y]=null:g[y.name]=y.message,g),{});if(Object.keys(l).length===0&&o.length===0)return{};let c=e({allowRelativePaths:!0}).add(o);function p(g){return g&&g.type==="Literal"&&typeof g.value=="string"}function h(g){return g.callee.type==="Identifier"&&g.callee.name==="require"}function f(g){return p(g)?g.value.trim():r.isStaticTemplateLiteral(g)?g.quasis[0].value.cooked.trim():null}function d(g,y){let v=u[y],x=v?"customMessage":"defaultMessage";n.report({node:g,messageId:x,data:{name:y,customMessage:v}})}function m(g){return Object.hasOwn(u,g)}return{CallExpression(g){if(h(g)&&g.arguments.length){let y=f(g.arguments[0]);y&&(m(y)&&d(g,y),o.length>0&&c.ignores(y)&&n.report({node:g,messageId:"patternMessage",data:{name:y}}))}}}}},kb}var Ab,y2;function _z(){if(y2)return Ab;y2=1;let r=Pe();return Ab={meta:{type:"suggestion",docs:{description:"Disallow certain properties on certain objects",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-restricted-properties"},schema:{type:"array",items:{anyOf:[{type:"object",properties:{object:{type:"string"},property:{type:"string"},message:{type:"string"}},additionalProperties:!1,required:["object"]},{type:"object",properties:{object:{type:"string"},property:{type:"string"},message:{type:"string"}},additionalProperties:!1,required:["property"]}]},uniqueItems:!0},messages:{restrictedObjectProperty:"'{{objectName}}.{{propertyName}}' is restricted from being used.{{message}}",restrictedProperty:"'{{propertyName}}' is restricted from being used.{{message}}"}},create(e){let t=e.options;if(t.length===0)return{};let s=new Map,n=new Map,i=new Map;t.forEach(l=>{let o=l.object,u=l.property;typeof o>"u"?i.set(u,{message:l.message}):typeof u>"u"?n.set(o,{message:l.message}):(s.has(o)||s.set(o,new Map),s.get(o).set(u,{message:l.message}))});function a(l,o,u){if(u===null)return;let c=s.get(o),p=c?c.get(u):n.get(o),h=i.get(u);if(p){let f=p.message?` ${p.message}`:"";e.report({node:l,messageId:"restrictedObjectProperty",data:{objectName:o,propertyName:u,message:f}})}else if(h){let f=h.message?` ${h.message}`:"";e.report({node:l,messageId:"restrictedProperty",data:{propertyName:u,message:f}})}}return{MemberExpression(l){a(l,l.object&&l.object.name,r.getStaticPropertyName(l))},ObjectPattern(l){let o=null;l.parent.type==="VariableDeclarator"?l.parent.init&&l.parent.init.type==="Identifier"&&(o=l.parent.init.name):(l.parent.type==="AssignmentExpression"||l.parent.type==="AssignmentPattern")&&l.parent.right.type==="Identifier"&&(o=l.parent.right.name),l.properties.forEach(u=>{a(l,o,r.getStaticPropertyName(u))})}}}},Ab}var Pb,b2;function Iz(){return b2||(b2=1,Pb={meta:{type:"suggestion",docs:{description:"Disallow specified syntax",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-restricted-syntax"},schema:{type:"array",items:{oneOf:[{type:"string"},{type:"object",properties:{selector:{type:"string"},message:{type:"string"}},required:["selector"],additionalProperties:!1}]},uniqueItems:!0,minItems:0},messages:{restrictedSyntax:"{{message}}"}},create(r){return r.options.reduce((e,t)=>{let s=typeof t=="string",n=!s&&!!t.message,i=s?t:t.selector,a=n?t.message:`Using '${i}' is not allowed.`;return Object.assign(e,{[i](l){r.report({node:l,messageId:"restrictedSyntax",data:{message:a}})}})},{})}}),Pb}var Tb,v2;function Rz(){if(v2)return Tb;v2=1;let r=Pe(),e=/^(?:[a-zA-Z]+?Statement|ArrowFunctionExpression|FunctionExpression|ClassExpression)$/u;return Tb={meta:{type:"suggestion",docs:{description:"Disallow assignment operators in `return` statements",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-return-assign"},schema:[{enum:["except-parens","always"]}],messages:{returnAssignment:"Return statement should not contain assignment.",arrowAssignment:"Arrow function should not return assignment."}},create(t){let s=(t.options[0]||"except-parens")!=="except-parens",n=t.sourceCode;return{AssignmentExpression(i){if(!s&&r.isParenthesised(n,i))return;let a=i,l=a.parent;for(;l&&!e.test(l.type);)a=l,l=l.parent;l&&l.type==="ReturnStatement"?t.report({node:l,messageId:"returnAssignment"}):l&&l.type==="ArrowFunctionExpression"&&l.body===a&&t.report({node:l,messageId:"arrowAssignment"})}}}},Tb}var Db,x2;function Fz(){if(x2)return Db;x2=1;let r=Pe();return Db={meta:{hasSuggestions:!0,type:"suggestion",docs:{description:"Disallow unnecessary `return await`",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-return-await"},fixable:null,deprecated:!0,replacedBy:[],schema:[],messages:{removeAwait:"Remove redundant `await`.",redundantUseOfAwait:"Redundant use of `await` on a return value."}},create(e){function t(i){e.report({node:e.sourceCode.getFirstToken(i),loc:i.loc,messageId:"redundantUseOfAwait",suggest:[{messageId:"removeAwait",fix(a){let l=e.sourceCode,[o,u]=l.getFirstTokens(i,2);if(!(o.loc.start.line===u.loc.start.line))return null;let[p,h]=o.range,d=l.text[h]===" "?1:0,m=[p,h+d];return a.removeRange(m)}}]})}function s(i){let a=i;for(;!r.isFunction(a)&&a.type!=="Program";){if(a.parent.type==="TryStatement"&&(a===a.parent.block||a===a.parent.handler&&a.parent.finalizer))return!0;a=a.parent}return!1}function n(i){return i.parent.type==="ArrowFunctionExpression"?!0:i.parent.type==="ReturnStatement"?!s(i.parent):i.parent.type==="ConditionalExpression"&&(i===i.parent.consequent||i===i.parent.alternate)||i.parent.type==="LogicalExpression"&&i===i.parent.right||i.parent.type==="SequenceExpression"&&i===i.parent.expressions.at(-1)?n(i.parent):!1}return{AwaitExpression(i){n(i)&&!s(i)&&t(i)}}}},Db}var _b,O2;function Bz(){if(O2)return _b;O2=1;let r=Pe();return _b={meta:{type:"suggestion",docs:{description:"Disallow `javascript:` urls",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-script-url"},schema:[],messages:{unexpectedScriptURL:"Script URL is a form of eval."}},create(e){function t(s){let n=r.getStaticStringValue(s);typeof n=="string"&&n.toLowerCase().indexOf("javascript:")===0&&e.report({node:s,messageId:"unexpectedScriptURL"})}return{Literal(s){s.value&&typeof s.value=="string"&&t(s)},TemplateLiteral(s){s.parent&&s.parent.type==="TaggedTemplateExpression"||t(s)}}}},_b}var Ib,S2;function Nz(){if(S2)return Ib;S2=1;let r=Pe(),e=/\s+/gu;function t(s,n,i,a){if(!(!s||!n))if(s.type==="Identifier"&&n.type==="Identifier"&&s.name===n.name)a(n);else if(s.type==="ArrayPattern"&&n.type==="ArrayExpression"){let l=Math.min(s.elements.length,n.elements.length);for(let o=0;o=1){let l=0;for(let o=n.properties.length-1;o>=0;--o){let u=n.properties[o].type;if(u==="SpreadElement"||u==="ExperimentalSpreadProperty"){l=o+1;break}}for(let o=0;ol.type===a[o].type&&l.value===a[o].value)}return{BinaryExpression(s){new Set(["===","==","!==","!=",">","<",">=","<="]).has(s.operator)&&t(s.left,s.right)&&r.report({node:s,messageId:"comparingToSelf"})}}}}),Rb}var Fb,w2;function $z(){if(w2)return Fb;w2=1;let r=Pe(),e={allowInParentheses:!0};return Fb={meta:{type:"suggestion",docs:{description:"Disallow comma operators",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-sequences"},schema:[{type:"object",properties:{allowInParentheses:{type:"boolean",default:!0}},additionalProperties:!1}],messages:{unexpectedCommaExpression:"Unexpected use of comma operator."}},create(t){let s=Object.assign({},e,t.options[0]),n=t.sourceCode,i={DoWhileStatement:"test",IfStatement:"test",SwitchStatement:"discriminant",WhileStatement:"test",WithStatement:"object",ArrowFunctionExpression:"body"};function a(u){return u.parent&&i[u.parent.type]&&u===u.parent[i[u.parent.type]]}function l(u){return r.isParenthesised(n,u)}function o(u){let c=n.getTokenBefore(u,1),p=n.getTokenAfter(u,1);return l(u)&&c&&p&&r.isOpeningParenToken(c)&&c.range[1]<=u.range[0]&&r.isClosingParenToken(p)&&p.range[0]>=u.range[1]}return{SequenceExpression(u){if(u.parent.type==="ForStatement"&&(u===u.parent.init||u===u.parent.update))return;if(s.allowInParentheses){if(a(u)){if(o(u))return}else if(l(u))return}let c=n.getTokenAfter(u.expressions[0],r.isCommaToken);t.report({node:u,loc:c.loc,messageId:"unexpectedCommaExpression"})}}}},Fb}var Bb,C2;function Mz(){if(C2)return Bb;C2=1;let r=Pe(),{findVariable:e}=hr();function t(l,o){let u=e(o,l);return u!==null&&u.scope.type==="global"&&u.defs.length===0}function s(l,o,u,c,p){let h=l.parent;return h.type==="CallExpression"&&h.arguments[p]===l&&r.isSpecificMemberAccess(h.callee,u,c)&&t(r.skipChainExpression(h.callee).object,o)}function n(l,o){if(s(l,o,"Object","defineProperty",2)||s(l,o,"Reflect","defineProperty",2))return!0;let u=l.parent;if(u.type==="Property"&&u.value===l){let c=u.parent;if(c.type==="ObjectExpression"&&(s(c,o,"Object","create",1)||s(c,o,"Object","defineProperties",1)))return!0}return!1}function i(l,o){let u=l.parent;return!!((u.type==="Property"||u.type==="MethodDefinition")&&u.kind==="set"&&u.value===l||u.type==="Property"&&u.value===l&&r.getStaticPropertyName(u)==="set"&&u.parent.type==="ObjectExpression"&&n(u.parent,o))}function a(l){let o=l.upper;return o.type==="function-expression-name"?o.upper:o}return Bb={meta:{type:"problem",docs:{description:"Disallow returning values from setters",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-setter-return"},schema:[],messages:{returnsValue:"Setter cannot return a value."}},create(l){let o=null,u=l.sourceCode;function c(f){let d=a(u.getScope(f));o={upper:o,isSetter:i(f,d)}}function p(){o=o.upper}function h(f){l.report({node:f,messageId:"returnsValue"})}return{FunctionDeclaration:c,FunctionExpression:c,ArrowFunctionExpression(f){c(f),o.isSetter&&f.expression&&h(f.body)},"FunctionDeclaration:exit":p,"FunctionExpression:exit":p,"ArrowFunctionExpression:exit":p,ReturnStatement(f){o&&o.isSetter&&f.argument&&h(f)}}}},Bb}var Nb,k2;function jz(){if(k2)return Nb;k2=1;let r=Pe(),e=new Set(["ArrowFunctionExpression","FunctionExpression"]),t=new Set(["CallExpression"]),s=/^For(?:In|Of)Statement$/u,n=/^(?:(?:Function|Class)(?:Declaration|Expression)|ArrowFunctionExpression|CatchClause|ImportDeclaration|ExportNamedDeclaration)$/u;return Nb={meta:{type:"suggestion",docs:{description:"Disallow variable declarations from shadowing variables declared in the outer scope",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-shadow"},schema:[{type:"object",properties:{builtinGlobals:{type:"boolean",default:!1},hoist:{enum:["all","functions","never"],default:"functions"},allow:{type:"array",items:{type:"string"}},ignoreOnInitialization:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{noShadow:"'{{name}}' is already declared in the upper scope on line {{shadowedLine}} column {{shadowedColumn}}.",noShadowGlobal:"'{{name}}' is already a global variable."}},create(i){let a={builtinGlobals:i.options[0]&&i.options[0].builtinGlobals,hoist:i.options[0]&&i.options[0].hoist||"functions",allow:i.options[0]&&i.options[0].allow||[],ignoreOnInitialization:i.options[0]&&i.options[0].ignoreOnInitialization},l=i.sourceCode;function o(x,S){return x&&x.range[0]<=S&&S<=x.range[1]}function u(x,S){let w=x;for(;w&&!S(w);)w=w.parent;return w}function c(x){let S=x.upper;return S.type==="function-expression-name"?S.upper:S}function p(x,S){let w=S.defs[0];if(!w)return!1;let{variableScope:O}=x.scope;if(!(e.has(O.block.type)&&c(O)===S.scope))return!1;let C=O.block,{parent:E}=C,k=u(E,_=>t.has(_.type));if(!k)return!1;let A=w.name,D=k.range[1];for(;A;){if(A.type==="VariableDeclarator"){if(o(A.init,D)||s.test(A.parent.parent.type)&&o(A.parent.parent.right,D))return!0;break}else if(A.type==="AssignmentPattern"){if(o(A.right,D))return!0}else if(n.test(A.type))break;A=A.parent}return!1}function h(x){return a.allow.includes(x.name)}function f(x){let S=x.scope.block;return S.type==="ClassDeclaration"&&S.id===x.identifiers[0]}function d(x,S){let w=S.scope,O=S.defs[0],C=O&&O.parent&&O.parent.range,E=x.scope,k=x.defs[0],A=k&&k.name.range;return C&&A&&C[0]0||a.builtinGlobals&&"writeable"in C)&&!d(O,C)&&!(a.ignoreOnInitialization&&p(O,C))&&!(a.hoist!=="all"&&y(O,C))){let E=g(C),k=E.global?"noShadowGlobal":"noShadow",A={name:O.name};E.global||(A.shadowedLine=E.line,A.shadowedColumn=E.column),i.report({node:O.identifiers[0],messageId:k,data:A})}}}return{"Program:exit"(x){let w=l.getScope(x).childScopes.slice();for(;w.length;){let O=w.pop();w.push(...O.childScopes),v(O)}}}}},Nb}var Lb,A2;function qz(){if(A2)return Lb;A2=1;function r(e){return e.name==="undefined"&&e.references.every(t=>!t.isWrite())&&e.defs.every(t=>t.node.type==="VariableDeclarator"&&t.node.init===null)}return Lb={meta:{type:"suggestion",docs:{description:"Disallow identifiers from shadowing restricted names",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-shadow-restricted-names"},schema:[],messages:{shadowingRestrictedName:"Shadowing of global property '{{name}}'."}},create(e){let t=new Set(["undefined","NaN","Infinity","arguments","eval"]),s=e.sourceCode;return{"VariableDeclaration, :function, CatchClause"(n){for(let i of s.getDeclaredVariables(n))i.defs.length>0&&t.has(i.name)&&!r(i)&&e.report({node:i.defs[0].name,messageId:"shadowingRestrictedName",data:{name:i.name}})}}}},Lb}var $b,P2;function Qz(){return P2||(P2=1,$b={meta:{type:"layout",docs:{description:"Disallow spacing between function identifiers and their applications (deprecated)",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-spaced-func"},deprecated:!0,replacedBy:["func-call-spacing"],fixable:"whitespace",schema:[],messages:{noSpacedFunction:"Unexpected space between function name and paren."}},create(r){let e=r.sourceCode;function t(s){let n=e.getLastToken(s.callee),i=n,a=e.getTokenAfter(n);for(;a&&a.range[1]{let o;for(;(o=r.exec(a))!==null;)n&&!e.test(a.slice(0,o.index))||t.report({node:i,loc:{start:{line:l+1,column:o.index},end:{line:l+1,column:o.index+o[0].length}},messageId:"unexpectedTab"})})}}}},qb}var Qb,I2;function zz(){return I2||(I2=1,Qb={meta:{type:"problem",docs:{description:"Disallow template literal placeholder syntax in regular strings",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-template-curly-in-string"},schema:[],messages:{unexpectedTemplateExpression:"Unexpected template string expression."}},create(r){let e=/\$\{[^}]+\}/u;return{Literal(t){typeof t.value=="string"&&e.test(t.value)&&r.report({node:t,messageId:"unexpectedTemplateExpression"})}}}}),Qb}var Ub,R2;function Zz(){return R2||(R2=1,Ub={meta:{type:"suggestion",docs:{description:"Disallow ternary operators",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-ternary"},schema:[],messages:{noTernaryOperator:"Ternary operator used."}},create(r){return{ConditionalExpression(e){r.report({node:e,messageId:"noTernaryOperator"})}}}}),Ub}var Vb,F2;function Gz(){if(F2)return Vb;F2=1;let r=Pe();function e(s){return s.type==="FunctionExpression"&&s.parent.type==="MethodDefinition"&&s.parent.kind==="constructor"}class t{superCalled=!1;invalidNodes=[]}return Vb={meta:{type:"problem",docs:{description:"Disallow `this`/`super` before calling `super()` in constructors",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-this-before-super"},schema:[],messages:{noBeforeSuper:"'{{kind}}' is not allowed before 'super()'."}},create(s){let n=null,i=Object.create(null);function a(h){return!h.reachable||i[h.id]?.superCalled}function l(){return!!(n&&n.isConstructor&&n.hasExtends)}function o(h){for(let f of h)if(!a(f))return!1;return!0}function u(){return l()&&!o(n.currentSegments)}function c(h){let f=n.currentSegments;for(let d of f)d.reachable&&i[d.id].invalidNodes.push(h)}function p(){let h=n.currentSegments;for(let f of h)f.reachable&&(i[f.id].superCalled=!0)}return{onCodePathStart(h,f){if(e(f)){let d=f.parent.parent.parent;n={upper:n,isConstructor:!0,hasExtends:!!(d.superClass&&!r.isNullOrUndefined(d.superClass)),codePath:h,currentSegments:new Set}}else n={upper:n,isConstructor:!1,hasExtends:!1,codePath:h,currentSegments:new Set}},onCodePathEnd(h){let f=n.hasExtends;if(n=n.upper,!f)return;let d=new Set;h.traverseSegments((m,g)=>{let y=i[m.id],v=y.invalidNodes.filter(x=>!d.has(x));for(let x of v)d.add(x),s.report({messageId:"noBeforeSuper",node:x,data:{kind:x.type==="Super"?"super":"this"}});y.superCalled&&g.skip()})},onCodePathSegmentStart(h){n.currentSegments.add(h),l()&&(i[h.id]={superCalled:h.prevSegments.length>0&&h.prevSegments.every(a),invalidNodes:[]})},onUnreachableCodePathSegmentStart(h){n.currentSegments.add(h)},onUnreachableCodePathSegmentEnd(h){n.currentSegments.delete(h)},onCodePathSegmentEnd(h){n.currentSegments.delete(h)},onCodePathSegmentLoop(h,f){l()&&n.codePath.traverseSegments({first:f,last:h},(d,m)=>{let g=i[d.id]??new t;g.superCalled?m.skip():d.prevSegments.length>0&&d.prevSegments.every(a)&&(g.superCalled=!0),i[d.id]=g})},ThisExpression(h){u()&&c(h)},Super(h){!r.isCallee(h)&&u()&&c(h)},"CallExpression:exit"(h){h.callee.type==="Super"&&u()&&p()},"Program:exit"(){i=Object.create(null)}}}},Vb}var Wb,B2;function Xz(){if(B2)return Wb;B2=1;let r=Pe();return Wb={meta:{type:"suggestion",docs:{description:"Disallow throwing literals as exceptions",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-throw-literal"},schema:[],messages:{object:"Expected an error object to be thrown.",undef:"Do not throw undefined."}},create(e){return{ThrowStatement(t){r.couldBeError(t.argument)?t.argument.type==="Identifier"&&t.argument.name==="undefined"&&e.report({node:t,messageId:"undef"}):e.report({node:t,messageId:"object"})}}}},Wb}var zb,N2;function Yz(){if(N2)return zb;N2=1;let r=Pe();return zb={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Disallow trailing whitespace at the end of lines",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-trailing-spaces"},fixable:"whitespace",schema:[{type:"object",properties:{skipBlankLines:{type:"boolean",default:!1},ignoreComments:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{trailingSpace:"Trailing spaces not allowed."}},create(e){let t=e.sourceCode,s="[ \xA0\u2000-\u200B\u3000]",n=`^${s}*$`,i=`${s}+$`,a=e.options[0]||{},l=a.skipBlankLines||!1,o=a.ignoreComments||!1;function u(p,h,f){e.report({node:p,loc:h,messageId:"trailingSpace",fix(d){return d.removeRange(f)}})}function c(p){let h=new Set;return p.forEach(f=>{let d=f.type==="Block"?f.loc.end.line-1:f.loc.end.line;for(let m=f.loc.start.line;m<=d;m++)h.add(m)}),h}return{Program:function(h){let f=new RegExp(i,"u"),d=new RegExp(n,"u"),m=t.lines,g=t.getText().match(r.createGlobalLinebreakMatcher()),y=t.getAllComments(),v=c(y),x=0;for(let S=0,w=m.length;SB.parent.range[0]&&_{let o=l.identifier;!s&&r(o)||e.report({node:o,messageId:"undef",data:o})})}}}},Zb}var Gb,$2;function Kz(){if($2)return Gb;$2=1;let r=Pe();return Gb={meta:{type:"suggestion",docs:{description:"Disallow initializing variables to `undefined`",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-undef-init"},schema:[],fixable:"code",messages:{unnecessaryUndefinedInit:"It's not necessary to initialize '{{name}}' to undefined."}},create(e){let t=e.sourceCode;return{VariableDeclarator(s){let n=t.getText(s.id),i=s.init&&s.init.name,a=t.getScope(s),l=r.getVariableByName(a,"undefined"),o=l&&l.defs.length>0,u=t.getLastToken(s);i==="undefined"&&s.parent.kind!=="const"&&!o&&e.report({node:s,messageId:"unnecessaryUndefinedInit",data:{name:n},fix(c){return s.parent.kind==="var"||s.id.type==="ArrayPattern"||s.id.type==="ObjectPattern"||t.commentsExistBetween(s.id,u)?null:c.removeRange([s.id.range[1],s.range[1]])}})}}}},Gb}var Xb,M2;function Jz(){return M2||(M2=1,Xb={meta:{type:"suggestion",docs:{description:"Disallow the use of `undefined` as an identifier",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-undefined"},schema:[],messages:{unexpectedUndefined:"Unexpected use of undefined."}},create(r){let e=r.sourceCode;function t(n){r.report({node:n,messageId:"unexpectedUndefined"})}function s(n){let i=n.set.get("undefined");if(!i)return;let a=i.references,l=i.defs;a.filter(o=>!o.init).forEach(o=>t(o.identifier)),l.forEach(o=>t(o.name))}return{"Program:exit"(n){let a=[e.getScope(n)];for(;a.length;){let l=a.pop();a.push(...l.childScopes),s(l)}}}}}),Xb}var Yb,j2;function eZ(){return j2||(j2=1,Yb={meta:{type:"suggestion",docs:{description:"Disallow dangling underscores in identifiers",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-underscore-dangle"},schema:[{type:"object",properties:{allow:{type:"array",items:{type:"string"}},allowAfterThis:{type:"boolean",default:!1},allowAfterSuper:{type:"boolean",default:!1},allowAfterThisConstructor:{type:"boolean",default:!1},enforceInMethodNames:{type:"boolean",default:!1},allowFunctionParams:{type:"boolean",default:!0},enforceInClassFields:{type:"boolean",default:!1},allowInArrayDestructuring:{type:"boolean",default:!0},allowInObjectDestructuring:{type:"boolean",default:!0}},additionalProperties:!1}],messages:{unexpectedUnderscore:"Unexpected dangling '_' in '{{identifier}}'."}},create(r){let e=r.options[0]||{},t=e.allow?e.allow:[],s=typeof e.allowAfterThis<"u"?e.allowAfterThis:!1,n=typeof e.allowAfterSuper<"u"?e.allowAfterSuper:!1,i=typeof e.allowAfterThisConstructor<"u"?e.allowAfterThisConstructor:!1,a=typeof e.enforceInMethodNames<"u"?e.enforceInMethodNames:!1,l=typeof e.enforceInClassFields<"u"?e.enforceInClassFields:!1,o=typeof e.allowFunctionParams<"u"?e.allowFunctionParams:!0,u=typeof e.allowInArrayDestructuring<"u"?e.allowInArrayDestructuring:!0,c=typeof e.allowInObjectDestructuring<"u"?e.allowInObjectDestructuring:!0,p=r.sourceCode;function h(C){return t.includes(C)}function f(C){let E=C.length;return C!=="_"&&(C[0]==="_"||C[E-1]==="_")}function d(C){return C==="__proto__"}function m(C){return C==="_"}function g(C){return C.object.type==="MemberExpression"&&C.object.property.name==="constructor"&&C.object.object.type==="ThisExpression"}function y(C){o||C.params.forEach(E=>{let{type:k}=E,A;if(k==="RestElement"?A=E.argument:k==="AssignmentPattern"?A=E.left:A=E,A.type==="Identifier"){let D=A.name;f(D)&&!h(D)&&r.report({node:E,messageId:"unexpectedUnderscore",data:{identifier:D}})}})}function v(C){if(C.type==="FunctionDeclaration"&&C.id){let E=C.id.name;typeof E<"u"&&f(E)&&!h(E)&&r.report({node:C,messageId:"unexpectedUnderscore",data:{identifier:E}})}y(C)}function x(C){p.getDeclaredVariables(C).forEach(E=>{let A=E.defs.find(B=>B.node===C).name,D=A.name,_=A.parent;for(;!["VariableDeclarator","ArrayPattern","ObjectPattern"].includes(_.type);)_=_.parent;f(D)&&!m(D)&&!h(D)&&!(u&&_.type==="ArrayPattern")&&!(c&&_.type==="ObjectPattern")&&r.report({node:C,messageId:"unexpectedUnderscore",data:{identifier:D}})})}function S(C){let E=C.property.name,k=C.object.type==="ThisExpression",A=C.object.type==="Super",D=g(C);typeof E<"u"&&f(E)&&!(k&&s)&&!(A&&n)&&!(D&&i)&&!d(E)&&!h(E)&&r.report({node:C,messageId:"unexpectedUnderscore",data:{identifier:E}})}function w(C){let E=C.key.name,k=C.type==="MethodDefinition"||C.type==="Property"&&C.method;typeof E<"u"&&a&&k&&f(E)&&!h(E)&&r.report({node:C,messageId:"unexpectedUnderscore",data:{identifier:C.key.type==="PrivateIdentifier"?`#${E}`:E}})}function O(C){let E=C.key.name;typeof E<"u"&&f(E)&&l&&!h(E)&&r.report({node:C,messageId:"unexpectedUnderscore",data:{identifier:C.key.type==="PrivateIdentifier"?`#${E}`:E}})}return{FunctionDeclaration:v,VariableDeclarator:x,MemberExpression:S,MethodDefinition:w,PropertyDefinition:O,Property:w,FunctionExpression:v,ArrowFunctionExpression:v}}}),Yb}var Hb,q2;function tZ(){if(q2)return Hb;q2=1;let r=Pe();return Hb={meta:{type:"problem",docs:{description:"Disallow confusing multiline expressions",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-unexpected-multiline"},schema:[],messages:{function:"Unexpected newline between function and ( of function call.",property:"Unexpected newline between object and [ of property access.",taggedTemplate:"Unexpected newline between template tag and template literal.",division:"Unexpected newline between numerator and division operator."}},create(e){let t=/^[gimsuy]+$/u,s=e.sourceCode;function n(i,a){let l=s.getTokenAfter(i,r.isNotClosingParenToken),o=s.getTokenBefore(l);l.loc.start.line!==o.loc.end.line&&e.report({node:i,loc:l.loc,messageId:a})}return{MemberExpression(i){!i.computed||i.optional||n(i.object,"property")},TaggedTemplateExpression(i){let{quasi:a}=i;s.getTokenBefore(a).loc.end.line!==a.loc.start.line&&e.report({node:i,loc:{start:a.loc.start,end:{line:a.loc.start.line,column:a.loc.start.column+1}},messageId:"taggedTemplate"})},CallExpression(i){i.arguments.length===0||i.optional||n(i.callee,"function")},"BinaryExpression[operator='/'] > BinaryExpression[operator='/'].left"(i){let a=s.getTokenAfter(i,o=>o.value==="/"),l=s.getTokenAfter(a);l.type==="Identifier"&&t.test(l.value)&&a.range[1]===l.range[0]&&n(i.left,"division")}}}},Hb}var Kb,Q2;function rZ(){if(Q2)return Kb;Q2=1;let r=TO(),e=Pe(),t=/(?:(?:Call|Class|Function|Member|New|Yield)Expression|Statement|Declaration)$/u,s=/^(?:DoWhile|For|While)Statement$/u,n=/^(?:BinaryExpression|ConditionalExpression)$/u,i=/^(?:ArrowFunction|Class|Function)Expression$/u,a=/^(?:Call|Member|New|TaggedTemplate|Yield)Expression$/u;function l(d){if(d.init){let m=d.resolved&&d.resolved.defs[0];if(!m||m.type!=="Variable"||m.parent.kind!=="var")return!1}return d.isWrite()}function o(d){return!d.modified}function u(d){return!(d.modified||d.group)}function c(d,m){let g=d.range,y=m.identifier.range;return g[0]<=y[0]&&y[1]<=g[1]}let p={WhileStatement:c,DoWhileStatement:c,ForStatement(d,m){return c(d,m)&&!(d.init&&c(d.init,m))}};function h(d){let m=d.identifier;for(;m;){if(m.type==="FunctionDeclaration")return m.id?m:null;m=m.parent}return null}function f(d,m){for(let g=0;g0&&f(E,k),E.filter(u).forEach(y)}return{"Program:exit"(C){let E=[m.getScope(C)];g=new Map;let k;for(;k=E.pop();)E.push(...k.childScopes),k.variables.forEach(O);g.forEach(x),g=null}}}},Kb}var Jb,U2;function nZ(){if(U2)return Jb;U2=1;let r=Pe(),e=new Set(["==","===","!=","!==",">",">=","<","<=","in","instanceof"]),t={"==":"!=","!=":"==","===":"!==","!==":"==="},s=r.getPrecedence({type:"LogicalExpression",operator:"||"});return Jb={meta:{type:"suggestion",docs:{description:"Disallow ternary operators when simpler alternatives exist",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-unneeded-ternary"},schema:[{type:"object",properties:{defaultAssignment:{type:"boolean",default:!0}},additionalProperties:!1}],fixable:"code",messages:{unnecessaryConditionalExpression:"Unnecessary use of boolean literals in conditional expression.",unnecessaryConditionalAssignment:"Unnecessary use of conditional expression for default assignment."}},create(n){let a=(n.options[0]||{}).defaultAssignment!==!1,l=n.sourceCode;function o(h){return h.type==="Literal"&&typeof h.value=="boolean"}function u(h){if(h.type==="BinaryExpression"&&Object.hasOwn(t,h.operator)){let f=l.getFirstTokenBetween(h.left,h.right,m=>m.value===h.operator),d=l.getText();return d.slice(h.range[0],f.range[0])+t[h.operator]+d.slice(f.range[1],h.range[1])}return r.getPrecedence(h)=this.startNode.range[0]&&n.range[1]<=this.endNode.range[1]}isConsecutive(n){return this.contains(this.sourceCode.getTokenBefore(n))}merge(n){this.endNode=n}reset(n){this.startNode=this.endNode=n}}return ev={meta:{type:"problem",docs:{description:"Disallow unreachable code after `return`, `throw`, `continue`, and `break` statements",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-unreachable"},schema:[],messages:{unreachableCode:"Unreachable code."}},create(s){let n=null,i=new t(s.sourceCode),a=[],l=new Set;function o(u){let c=null;if(u&&(u.type==="PropertyDefinition"||e(l))){if(i.isEmpty){i.reset(u);return}if(i.contains(u))return;if(i.isConsecutive(u)){i.merge(u);return}c=u}i.isEmpty||s.report({messageId:"unreachableCode",loc:i.location,node:i.startNode}),i.reset(c)}return{onCodePathStart(){a.push(l),l=new Set},onCodePathEnd(){l=a.pop()},onUnreachableCodePathSegmentStart(u){l.add(u)},onUnreachableCodePathSegmentEnd(u){l.delete(u)},onCodePathSegmentEnd(u){l.delete(u)},onCodePathSegmentStart(u){l.add(u)},BlockStatement:o,BreakStatement:o,ClassDeclaration:o,ContinueStatement:o,DebuggerStatement:o,DoWhileStatement:o,ExpressionStatement:o,ForInStatement:o,ForOfStatement:o,ForStatement:o,IfStatement:o,ImportDeclaration:o,LabeledStatement:o,ReturnStatement:o,SwitchStatement:o,ThrowStatement:o,TryStatement:o,VariableDeclaration(u){(u.kind!=="var"||u.declarations.some(r))&&o(u)},WhileStatement:o,WithStatement:o,ExportNamedDeclaration:o,ExportDefaultDeclaration:o,ExportAllDeclaration:o,"Program:exit"(){o()},"MethodDefinition[kind='constructor']"(){n={upper:n,hasSuperCall:!1}},"MethodDefinition[kind='constructor']:exit"(u){let{hasSuperCall:c}=n;if(n=n.upper,!u.value.body)return;let p=u.parent.parent;if(p.superClass&&!c)for(let h of p.body.body)h.type==="PropertyDefinition"&&!h.static&&o(h)},"CallExpression > Super.callee"(){n&&(n.hasSuperCall=!0)}}}},ev}var tv,W2;function iZ(){if(W2)return tv;W2=1;let r=["WhileStatement","DoWhileStatement","ForStatement","ForInStatement","ForOfStatement"];function e(n){for(let i of n)if(i.reachable)return!0;return!1}function t(n){let i=n.parent;if(i)switch(i.type){case"WhileStatement":return n===i.test;case"DoWhileStatement":return n===i.body;case"ForStatement":return n===(i.update||i.test||i.body);case"ForInStatement":case"ForOfStatement":return n===i.left}return!1}function s(n,i){return n.filter(a=>!i.includes(a))}return tv={meta:{type:"problem",docs:{description:"Disallow loops with a body that allows only one iteration",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-unreachable-loop"},schema:[{type:"object",properties:{ignore:{type:"array",items:{enum:r},uniqueItems:!0}},additionalProperties:!1}],messages:{invalid:"Invalid loop. Its body allows only one iteration."}},create(n){let i=n.options[0]&&n.options[0].ignore||[],a=s(r,i),l=a.join(","),o=new Map,u=new Set,c=[],p=new Set;return{onCodePathStart(){c.push(p),p=new Set},onCodePathEnd(){p=c.pop()},onUnreachableCodePathSegmentStart(h){p.add(h)},onUnreachableCodePathSegmentEnd(h){p.delete(h)},onCodePathSegmentEnd(h){p.delete(h)},onCodePathSegmentStart(h,f){if(p.add(h),t(f)){let d=f.parent;o.set(h,d)}},onCodePathSegmentLoop(h,f,d){let m=o.get(f);(d===m||d.type==="ContinueStatement")&&u.delete(m)},[l](h){e(p)&&u.add(h)},"Program:exit"(){u.forEach(h=>n.report({node:h,messageId:"invalid"}))}}}},tv}var rv,z2;function aZ(){if(z2)return rv;z2=1;let r=/^(?:Program|(?:Function|Class)(?:Declaration|Expression)|ArrowFunctionExpression)$/u,e=/^(?:Program|(?:Function|Class)(?:Declaration|Expression)|ArrowFunctionExpression|DoWhileStatement|WhileStatement|ForOfStatement|ForInStatement|ForStatement|SwitchStatement)$/u,t=/^(?:Program|(?:Function|Class)(?:Declaration|Expression)|ArrowFunctionExpression|DoWhileStatement|WhileStatement|ForOfStatement|ForInStatement|ForStatement)$/u;return rv={meta:{type:"problem",docs:{description:"Disallow control flow statements in `finally` blocks",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-unsafe-finally"},schema:[],messages:{unsafeUsage:"Unsafe usage of {{nodeType}}."}},create(s){function n(l){return l.parent.type==="TryStatement"&&l.parent.finalizer===l}function i(l,o){let u=!1,c;l.type==="BreakStatement"&&!l.label?c=e:l.type==="ContinueStatement"?c=t:c=r;for(let p=l;p&&!c.test(p.type);p=p.parent)if(p.parent.label&&o&&p.parent.label.name===o.name&&(u=!0),n(p))return!(o&&u);return!1}function a(l){i(l,l.label)&&s.report({messageId:"unsafeUsage",data:{nodeType:l.type},node:l,line:l.loc.line,column:l.loc.column})}return{ReturnStatement:a,ThrowStatement:a,BreakStatement:a,ContinueStatement:a}}},rv}var nv,Z2;function oZ(){if(Z2)return nv;Z2=1;let r=Pe();function e(n){return n==="in"||n==="instanceof"}function t(n){return n==="<"||n===">"||n===">="||n==="<="}function s(n){return n.type==="UnaryExpression"&&n.operator==="!"}return nv={meta:{type:"problem",docs:{description:"Disallow negating the left operand of relational operators",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-unsafe-negation"},hasSuggestions:!0,schema:[{type:"object",properties:{enforceForOrderingRelations:{type:"boolean",default:!1}},additionalProperties:!1}],fixable:null,messages:{unexpected:"Unexpected negating the left operand of '{{operator}}' operator.",suggestNegatedExpression:"Negate '{{operator}}' expression instead of its left operand. This changes the current behavior.",suggestParenthesisedNegation:"Wrap negation in '()' to make the intention explicit. This preserves the current behavior."}},create(n){let i=n.sourceCode,l=(n.options[0]||{}).enforceForOrderingRelations===!0;return{BinaryExpression(o){let u=o.operator,c=l&&t(u);(e(u)||c)&&s(o.left)&&!r.isParenthesised(i,o.left)&&n.report({node:o,loc:o.left.loc,messageId:"unexpected",data:{operator:u},suggest:[{messageId:"suggestNegatedExpression",data:{operator:u},fix(p){let f=[i.getFirstToken(o.left).range[1],o.range[1]],d=i.text.slice(f[0],f[1]);return p.replaceTextRange(f,`(${d})`)}},{messageId:"suggestParenthesisedNegation",fix(p){return p.replaceText(o.left,`(${i.getText(o.left)})`)}}]})}}}},nv}var sv,G2;function lZ(){if(G2)return sv;G2=1;let r=new Set(["+","-","/","*","%","**"]),e=new Set(["+=","-=","/=","*=","%=","**="]),t=new Set(["in","instanceof"]);function s(n){return n.type==="ObjectPattern"||n.type==="ArrayPattern"}return sv={meta:{type:"problem",docs:{description:"Disallow use of optional chaining in contexts where the `undefined` value is not allowed",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-unsafe-optional-chaining"},schema:[{type:"object",properties:{disallowArithmeticOperators:{type:"boolean",default:!1}},additionalProperties:!1}],fixable:null,messages:{unsafeOptionalChain:"Unsafe usage of optional chaining. If it short-circuits with 'undefined' the evaluation will throw TypeError.",unsafeArithmetic:"Unsafe arithmetic operation on optional chaining. It can result in NaN."}},create(n){let a=(n.options[0]||{}).disallowArithmeticOperators||!1;function l(h){n.report({messageId:"unsafeOptionalChain",node:h})}function o(h){n.report({messageId:"unsafeArithmetic",node:h})}function u(h,f){if(h)switch(h.type){case"LogicalExpression":h.operator==="||"||h.operator==="??"?u(h.right,f):h.operator==="&&"&&(u(h.left,f),u(h.right,f));break;case"SequenceExpression":u(h.expressions.at(-1),f);break;case"ConditionalExpression":u(h.consequent,f),u(h.alternate,f);break;case"AwaitExpression":u(h.argument,f);break;case"ChainExpression":f(h);break}}function c(h){u(h,l)}function p(h){u(h,o)}return{"AssignmentExpression, AssignmentPattern"(h){s(h.left)&&c(h.right)},"ClassDeclaration, ClassExpression"(h){c(h.superClass)},CallExpression(h){h.optional||c(h.callee)},NewExpression(h){c(h.callee)},VariableDeclarator(h){s(h.id)&&c(h.init)},MemberExpression(h){h.optional||c(h.object)},TaggedTemplateExpression(h){c(h.tag)},ForOfStatement(h){c(h.right)},SpreadElement(h){h.parent&&h.parent.type!=="ObjectExpression"&&c(h.argument)},BinaryExpression(h){t.has(h.operator)&&c(h.right),a&&r.has(h.operator)&&(p(h.right),p(h.left))},WithStatement(h){c(h.object)},UnaryExpression(h){a&&r.has(h.operator)&&p(h.argument)},AssignmentExpression(h){a&&e.has(h.operator)&&p(h.right)}}}},sv}var iv,X2;function uZ(){if(X2)return iv;X2=1;let r=Pe();function e(){return!0}function t(){return!1}return iv={meta:{type:"suggestion",docs:{description:"Disallow unused expressions",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-unused-expressions"},schema:[{type:"object",properties:{allowShortCircuit:{type:"boolean",default:!1},allowTernary:{type:"boolean",default:!1},allowTaggedTemplates:{type:"boolean",default:!1},enforceForJSX:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{unusedExpression:"Expected an assignment or function call and instead saw an expression."}},create(s){let n=s.options[0]||{},i=n.allowShortCircuit||!1,a=n.allowTernary||!1,l=n.allowTaggedTemplates||!1,o=n.enforceForJSX||!1;function u(d){return d.type==="ExpressionStatement"&&d.expression.type==="Literal"&&typeof d.expression.value=="string"}function c(d,m){for(let g=0;gu.removeRange([o.range[0],o.body.range[0]]):null}),s=s.upper}function l(o){if(!o.label)return;let u=o.label.name,c=s;for(;c;){if(c.label===u){c.used=!0;break}c=c.upper}}return{LabeledStatement:n,"LabeledStatement:exit":a,BreakStatement:l,ContinueStatement:l}}},av}var ov,H2;function fZ(){return H2||(H2=1,ov={meta:{type:"problem",docs:{description:"Disallow unused private class members",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-unused-private-class-members"},schema:[],messages:{unusedPrivateClassMember:"'{{classMemberName}}' is defined but never used."}},create(r){let e=[];function t(s){let n=s.parent.parent,i=n.type==="AssignmentExpression";return!i&&n.type!=="ForInStatement"&&n.type!=="ForOfStatement"&&n.type!=="AssignmentPattern"||n.left!==s.parent?!1:i&&n.operator!=="="?n.parent.type==="ExpressionStatement":!0}return{ClassBody(s){let n=new Map;e.unshift(n);for(let i of s.body)(i.type==="PropertyDefinition"||i.type==="MethodDefinition")&&i.key.type==="PrivateIdentifier"&&n.set(i.key.name,{declaredNode:i,isAccessor:i.type==="MethodDefinition"&&(i.kind==="set"||i.kind==="get")})},PrivateIdentifier(s){let n=e.find(o=>o.has(s.name));if(!n)return;let i=n.get(s.name);if(i.isUsed||s.parent.type==="PropertyDefinition"||s.parent.type==="MethodDefinition")return;if(i.isAccessor){i.isUsed=!0;return}if(t(s))return;let a=s.parent.parent.type,l=s.parent.parent.parent.type;a==="UpdateExpression"&&l==="ExpressionStatement"||a==="Property"&&l==="ObjectPattern"&&s.parent.parent.value===s.parent||a!=="RestElement"&&a!=="ArrayPattern"&&(i.isUsed=!0)},"ClassBody:exit"(){let s=e.shift();for(let[n,{declaredNode:i,isUsed:a}]of s.entries())a||r.report({node:i,loc:i.key.loc,messageId:"unusedPrivateClassMember",data:{classMemberName:`#${n}`}})}}}}),ov}var lv,K2;function pZ(){if(K2)return lv;K2=1;let r=Pe();return lv={meta:{type:"problem",docs:{description:"Disallow unused variables",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-unused-vars"},schema:[{oneOf:[{enum:["all","local"]},{type:"object",properties:{vars:{enum:["all","local"]},varsIgnorePattern:{type:"string"},args:{enum:["all","after-used","none"]},ignoreRestSiblings:{type:"boolean"},argsIgnorePattern:{type:"string"},caughtErrors:{enum:["all","none"]},caughtErrorsIgnorePattern:{type:"string"},destructuredArrayIgnorePattern:{type:"string"},ignoreClassWithStaticInitBlock:{type:"boolean"},reportUsedIgnorePattern:{type:"boolean"}},additionalProperties:!1}]}],messages:{unusedVar:"'{{varName}}' is {{action}} but never used{{additional}}.",usedIgnoredVar:"'{{varName}}' is marked as ignored but is used{{additional}}."}},create(e){let t=e.sourceCode,s=/^(?:RestElement|(?:Experimental)?RestProperty)$/u,n={vars:"all",args:"after-used",ignoreRestSiblings:!1,caughtErrors:"all",ignoreClassWithStaticInitBlock:!1,reportUsedIgnorePattern:!1},i=e.options[0];i&&(typeof i=="string"?n.vars=i:(n.vars=i.vars||n.vars,n.args=i.args||n.args,n.ignoreRestSiblings=i.ignoreRestSiblings||n.ignoreRestSiblings,n.caughtErrors=i.caughtErrors||n.caughtErrors,n.ignoreClassWithStaticInitBlock=i.ignoreClassWithStaticInitBlock||n.ignoreClassWithStaticInitBlock,n.reportUsedIgnorePattern=i.reportUsedIgnorePattern||n.reportUsedIgnorePattern,i.varsIgnorePattern&&(n.varsIgnorePattern=new RegExp(i.varsIgnorePattern,"u")),i.argsIgnorePattern&&(n.argsIgnorePattern=new RegExp(i.argsIgnorePattern,"u")),i.caughtErrorsIgnorePattern&&(n.caughtErrorsIgnorePattern=new RegExp(i.caughtErrorsIgnorePattern,"u")),i.destructuredArrayIgnorePattern&&(n.destructuredArrayIgnorePattern=new RegExp(i.destructuredArrayIgnorePattern,"u"))));function a(D){let _,B;switch(D){case"array-destructure":_=n.destructuredArrayIgnorePattern,B="elements of array destructuring";break;case"catch-clause":_=n.caughtErrorsIgnorePattern,B="args";break;case"parameter":_=n.argsIgnorePattern,B="args";break;case"variable":_=n.varsIgnorePattern,B="vars";break;default:throw new Error(`Unexpected variable type: ${D}`)}return _&&(_=_.toString()),[B,_]}function l(D){let _=D.defs&&D.defs[0],B="";if(_){let T,R;switch(_.type){case"CatchClause":n.caughtErrorsIgnorePattern&&([R,T]=a("catch-clause"));break;case"Parameter":n.argsIgnorePattern&&([R,T]=a("parameter"));break;default:n.varsIgnorePattern&&([R,T]=a("variable"));break}T&&R&&(B=`. Allowed unused ${R} must match ${T}`)}return{varName:D.name,action:"defined",additional:B}}function o(D){let _=D.defs&&D.defs[0],B="";if(_){let T,R;_.name.parent.type==="ArrayPattern"&&n.destructuredArrayIgnorePattern?[R,T]=a("array-destructure"):n.varsIgnorePattern&&([R,T]=a("variable")),T&&R&&(B=`. Allowed unused ${R} must match ${T}`)}return{varName:D.name,action:"assigned a value",additional:B}}function u(D,_){let[B,T]=a(_),R="";return T&&B&&(R=`. Used ${B} must not match ${T}`),{varName:D.name,additional:R}}let c=/(?:Statement|Declaration)$/u;function p(D){let _=D.defs[0];if(_){let B=_.node;if(B.type==="VariableDeclarator")B=B.parent;else if(_.type==="Parameter")return!1;return B.parent.type.indexOf("Export")===0}return!1}function h(D){return D.type==="Property"&&D.parent.type==="ObjectPattern"&&s.test(D.parent.properties.at(-1).type)}function f(D){if(n.ignoreRestSiblings){let _=D.defs.some(T=>h(T.name.parent)),B=D.references.some(T=>h(T.identifier.parent));return _||B}return!1}function d(D){return D.isRead()}function m(D,_){let B=D.from;for(;B;){if(_.includes(B.block))return!0;B=B.upper}return!1}function g(D){let _=[];return D.defs.forEach(B=>{let{type:T,node:R}=B;T==="FunctionName"&&_.push(R),T==="Variable"&&R.init&&(R.init.type==="FunctionExpression"||R.init.type==="ArrowFunctionExpression")&&_.push(R.init)}),_}function y(D,_){return D.range[0]>=_.range[0]&&D.range[1]<=_.range[1]}function v(D){let _=D.parent;return _.type==="ExpressionStatement"?!0:_.type==="SequenceExpression"?_.expressions.at(-1)===D?v(_):!0:!1}function x(D,_){let B=D.identifier,T=B.parent,R=D.from.variableScope,j=D.resolved.scope.variableScope,Q=R!==j||r.isInLoop(B);return _&&y(B,_)?_:T.type==="AssignmentExpression"&&v(T)&&B===T.left&&!Q?T.right:null}function S(D,_){let B=D,T=D.parent;for(;T&&y(T,_);){switch(T.type){case"SequenceExpression":if(T.expressions.at(-1)!==B)return!1;break;case"CallExpression":case"NewExpression":return T.callee!==B;case"AssignmentExpression":case"TaggedTemplateExpression":case"YieldExpression":return!0;default:if(c.test(T.type))return!0}B=T,T=T.parent}return!1}function w(D,_){let B=r.getUpperFunction(D);return B&&y(B,_)&&S(B,_)}function O(D,_){let B=D.identifier,T=B.parent;return D.isRead()&&(T.type==="AssignmentExpression"&&T.left===B&&v(T)&&!r.isLogicalAssignmentOperator(T.operator)||T.type==="UpdateExpression"&&v(T)||_&&y(B,_)&&!w(B,_))}function C(D){let _=D.identifier.parent;return _.type==="VariableDeclarator"&&(_=_.parent.parent),_.type!=="ForInStatement"&&_.type!=="ForOfStatement"||(_.body.type==="BlockStatement"?_=_.body.body[0]:_=_.body,!_)?!1:_.type==="ReturnStatement"}function E(D){if(D.eslintUsed)return!0;let _=g(D),B=_.length>0,T=null;return D.references.some(R=>{if(C(R))return!0;let j=O(R,T);return T=x(R,T),d(R)&&!j&&!(B&&m(R,_))})}function k(D){let _=D.defs[0],B=t.getDeclaredVariables(_.node);return!B.slice(B.indexOf(D)+1).some(R=>R.references.length>0||R.eslintUsed)}function A(D,_){let B=D.variables,T=D.childScopes,R,j;if(D.type!=="global"||n.vars==="all")for(R=0,j=B.length;RU.identifier.parent.type==="ArrayPattern");if((I.name.parent.type==="ArrayPattern"||F)&&n.destructuredArrayIgnorePattern&&n.destructuredArrayIgnorePattern.test(I.name.name)){n.reportUsedIgnorePattern&&E(Q)&&e.report({node:I.name,messageId:"usedIgnoredVar",data:u(Q,"array-destructure")});continue}if(N==="ClassName"){let U=I.node.body.body.some(V=>V.type==="StaticBlock");if(n.ignoreClassWithStaticInitBlock&&U)continue}if(N==="CatchClause"){if(n.caughtErrors==="none")continue;if(n.caughtErrorsIgnorePattern&&n.caughtErrorsIgnorePattern.test(I.name.name)){n.reportUsedIgnorePattern&&E(Q)&&e.report({node:I.name,messageId:"usedIgnoredVar",data:u(Q,"catch-clause")});continue}}else if(N==="Parameter"){if((I.node.parent.type==="Property"||I.node.parent.type==="MethodDefinition")&&I.node.parent.kind==="set"||n.args==="none")continue;if(n.argsIgnorePattern&&n.argsIgnorePattern.test(I.name.name)){n.reportUsedIgnorePattern&&E(Q)&&e.report({node:I.name,messageId:"usedIgnoredVar",data:u(Q,"parameter")});continue}if(n.args==="after-used"&&r.isFunction(I.name.parent)&&!k(Q))continue}else if(n.varsIgnorePattern&&n.varsIgnorePattern.test(I.name.name)){n.reportUsedIgnorePattern&&E(Q)&&e.report({node:I.name,messageId:"usedIgnoredVar",data:u(Q,"variable")});continue}}!E(Q)&&!p(Q)&&!f(Q)&&_.push(Q)}for(R=0,j=T.length;R0){let j=R.references.filter(I=>I.isWrite()&&I.from.variableScope===R.scope.variableScope),Q;j.length>0&&(Q=j.at(-1)),e.report({node:Q?Q.identifier:R.identifiers[0],messageId:"unusedVar",data:R.references.some(I=>I.isWrite())?o(R):l(R)})}else if(R.eslintExplicitGlobalComments){let j=R.eslintExplicitGlobalComments[0];e.report({node:D,loc:r.getNameLocationInGlobalDirectiveComment(t,j,R.name),messageId:"unusedVar",data:l(R)})}}}}}},lv}var uv,J2;function hZ(){if(J2)return uv;J2=1;let r=/^(?:(?:Function|Class)(?:Declaration|Expression)|ArrowFunctionExpression|CatchClause|ImportDeclaration|ExportNamedDeclaration)$/u,e=/^For(?:In|Of)Statement$/u;function t(o){let u=!0,c=!0,p=!0,h=!1;return typeof o=="string"?u=o!=="nofunc":typeof o=="object"&&o!==null&&(u=o.functions!==!1,c=o.classes!==!1,p=o.variables!==!1,h=!!o.allowNamedExports),{functions:u,classes:c,variables:p,allowNamedExports:h}}function s(o,u){return o&&o.range[0]<=u&&u<=o.range[1]}function n(o,u){return o.body.some(c=>c.type==="StaticBlock"&&s(c,u)||c.type==="PropertyDefinition"&&c.static&&c.value&&s(c.value,u))}function i(o){return o.type==="class-static-block"?!0:o.type==="class-field-initializer"?o.block.parent.static:!1}function a(o){let u=o.resolved,c=o.from;for(;u.scope.variableScope!==c.variableScope;)if(i(c.variableScope))c=c.variableScope.upper;else return!0;return!1}function l(o){if(a(o))return!1;let u=o.identifier.range[1],c=o.resolved.defs[0];if(c.type==="ClassName"){let h=c.node;return s(h,u)&&!n(h.body,u)}let p=c.name.parent;for(;p;){if(p.type==="VariableDeclarator"){if(s(p.init,u)||e.test(p.parent.parent.type)&&s(p.parent.parent.right,u))return!0;break}else if(p.type==="AssignmentPattern"){if(s(p.right,u))return!0}else if(r.test(p.type))break;p=p.parent}return!1}return uv={meta:{type:"problem",docs:{description:"Disallow the use of variables before they are defined",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-use-before-define"},schema:[{oneOf:[{enum:["nofunc"]},{type:"object",properties:{functions:{type:"boolean"},classes:{type:"boolean"},variables:{type:"boolean"},allowNamedExports:{type:"boolean"}},additionalProperties:!1}]}],messages:{usedBeforeDefined:"'{{name}}' was used before it was defined."}},create(o){let u=t(o.options[0]),c=o.sourceCode;function p(f){if(f.init)return!1;let{identifier:d}=f;if(u.allowNamedExports&&d.parent.type==="ExportSpecifier"&&d.parent.local===d)return!1;let m=f.resolved;if(!m||m.defs.length===0)return!1;let g=m.defs[0].type;return!(!u.functions&&g==="FunctionName"||(!u.variables&&g==="Variable"||!u.classes&&g==="ClassName")&&a(f))}function h(f){f.references.filter(p).forEach(d=>{let g=d.resolved.defs[0].name;(d.identifier.range[1]x.nextSegments)};function*g(){for(yield*m.results;m.queueSegments.length>0;){let x=m.queueSegments.shift();if(m.subsequentSegments.has(x))continue;m.subsequentSegments.add(x);let S=d.find(O=>O.segments.includes(x)&&!s(O,f.identifier));S||m.queueSegments.push(...x.nextSegments);let w={segment:x,assignment:S};m.results.push(w),yield w}}let y=f.variable.references.filter(x=>x.isRead());if(!y.length)return;let v=d.find(x=>x===f||x.segments.length&&x.segments.every(S=>!f.segments.includes(S))?!1:!!(t(f,x.identifier)||x.expression&&x.expression.range[0]<=f.identifier.range[0]&&f.identifier.range[1]<=x.expression.range[1]));for(let x of y){if(c.scope!==o(x.from))return;if(t(f,x.identifier)&&(s(f,x.identifier)||f.segments.some(S=>p(S,x.identifier)))){if(v&&t(v,x.identifier))continue;return}if(!v){for(let S of g())if(p(S.segment,x.identifier)){if(S.assignment&&t(S.assignment,x.identifier))continue;return}}}n.report({node:f.identifier,messageId:"unnecessaryAssignment"})}for(let f of c.assignments.values()){f.sort((d,m)=>d.identifier.range[0]-m.identifier.range[0]);for(let d of f)h(d,f)}}return{onCodePathStart(c,p){let h=i.getScope(p);a={upper:a,codePath:c,scope:h,segments:Object.create(null),currentSegments:new Set,assignments:new Map},l.add(a.scope)},onCodePathEnd(){u(a),a=a.upper},onCodePathSegmentStart(c){let p={segment:c,first:null,last:null};a.segments[c.id]=p,a.currentSegments.add(c)},onCodePathSegmentEnd(c){a.currentSegments.delete(c)},Identifier(c){for(let p of a.currentSegments){let h=a.segments[p.id];h.first||(h.first=c),h.last=c}},":matches(VariableDeclarator[init!=null], AssignmentExpression, UpdateExpression):exit"(c){if(a.currentSegments.size===0)return;let p=a.assignments,h,f=null;c.type==="VariableDeclarator"?(h=c.id,f=c.init):c.type==="AssignmentExpression"?(h=c.left,f=c.right):h=c.argument;for(let d of e(h)){let m=i.getScope(d),g=r(m,d);if(!g||g.scope.type==="global"&&g.defs.length===0||a.scope!==o(g.scope)||g.eslintUsed||g.scope.type==="module"&&(g.defs.some(v=>v.type==="Variable"&&v.parent.parent.type==="ExportNamedDeclaration"||v.type==="FunctionName"&&(v.node.parent.type==="ExportNamedDeclaration"||v.node.parent.type==="ExportDefaultDeclaration")||v.type==="ClassName"&&(v.node.parent.type==="ExportNamedDeclaration"||v.node.parent.type==="ExportDefaultDeclaration"))||g.references.some(v=>v.identifier.parent.type==="ExportSpecifier")))continue;let y=p.get(g);y||(y=[],p.set(g,y)),y.push({variable:g,identifier:d,node:c,expression:f,segments:[...a.currentSegments]})}}}}},cv}var fv,tR;function mZ(){if(tR)return fv;tR=1;let{CALL:r,CONSTRUCT:e,ReferenceTracker:t,getStringIfConstant:s}=hr(),{RegExpParser:n,visitRegExpAST:i}=Gn(),a=new n;function l(c){let p=[],h=c;do p.push(h),h=h.parent;while(h);return p}function o(c){return c.type==="Assertion"&&(c.kind==="lookahead"||c.kind==="lookbehind")}function u(c){return o(c)&&c.negate}return fv={meta:{type:"problem",docs:{description:"Disallow useless backreferences in regular expressions",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-useless-backreference"},schema:[],messages:{nested:"Backreference '{{ bref }}' will be ignored. It references group '{{ group }}' from within that group.",forward:"Backreference '{{ bref }}' will be ignored. It references group '{{ group }}' which appears later in the pattern.",backward:"Backreference '{{ bref }}' will be ignored. It references group '{{ group }}' which appears before in the same lookbehind.",disjunctive:"Backreference '{{ bref }}' will be ignored. It references group '{{ group }}' which is in another alternative.",intoNegativeLookaround:"Backreference '{{ bref }}' will be ignored. It references group '{{ group }}' which is in a negative lookaround."}},create(c){let p=c.sourceCode;function h(f,d,m){let g;try{g=a.parsePattern(d,0,d.length,{unicode:m.includes("u"),unicodeSets:m.includes("v")})}catch{return}i(g,{onBackreferenceEnter(y){let v=y.resolved,x=l(y),S=l(v),w=null;if(x.includes(v))w="nested";else{let O=x.length-1,C=S.length-1;do O--,C--;while(x[O]===S[C]);let E=C+1,k=S.slice(0,E),A=S.slice(E),D=A.find(o),_=D&&D.kind==="lookbehind";!_&&y.end<=v.start?w="forward":_&&v.end<=y.start?w="backward":k.at(-1).type==="Alternative"?w="disjunctive":k.some(u)&&(w="intoNegativeLookaround")}w&&c.report({node:f,messageId:w,data:{bref:y.raw,group:v.raw}})}})}return{"Literal[regex]"(f){let{pattern:d,flags:m}=f.regex;h(f,d,m)},Program(f){let d=p.getScope(f),m=new t(d),g={RegExp:{[r]:!0,[e]:!0}};for(let{node:y}of m.iterateGlobalReferences(g)){let[v,x]=y.arguments,S=s(v,d),w=s(x,d);typeof S=="string"&&h(y,S,w||"")}}}}},fv}var pv,rR;function gZ(){if(rR)return pv;rR=1;let r=Pe();function e(s){let n=r.skipChainExpression(s.callee);return n.type==="MemberExpression"&&n.property.type==="Identifier"&&n.computed===!1&&(n.property.name==="call"&&s.arguments.length>=1||n.property.name==="apply"&&s.arguments.length===2&&s.arguments[1].type==="ArrayExpression")}function t(s,n,i){return s?r.equalTokens(s,n,i):r.isNullOrUndefined(n)}return pv={meta:{type:"suggestion",docs:{description:"Disallow unnecessary calls to `.call()` and `.apply()`",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-useless-call"},schema:[],messages:{unnecessaryCall:"Unnecessary '.{{name}}()'."}},create(s){let n=s.sourceCode;return{CallExpression(i){if(!e(i))return;let a=r.skipChainExpression(i.callee),l=r.skipChainExpression(a.object),o=l.type==="MemberExpression"?l.object:null,u=i.arguments[0];t(o,u,n)&&s.report({node:i,messageId:"unnecessaryCall",data:{name:a.property.name}})}}}},pv}var hv,nR;function yZ(){return nR||(nR=1,hv={meta:{type:"suggestion",docs:{description:"Disallow unnecessary `catch` clauses",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-useless-catch"},schema:[],messages:{unnecessaryCatchClause:"Unnecessary catch clause.",unnecessaryCatch:"Unnecessary try/catch wrapper."}},create(r){return{CatchClause(e){e.param&&e.param.type==="Identifier"&&e.body.body.length&&e.body.body[0].type==="ThrowStatement"&&e.body.body[0].argument.type==="Identifier"&&e.body.body[0].argument.name===e.param.name&&(e.parent.finalizer?r.report({node:e,messageId:"unnecessaryCatchClause"}):r.report({node:e.parent,messageId:"unnecessaryCatch"}))}}}}),hv}var dv,sR;function bZ(){if(sR)return dv;sR=1;let r=Pe();function e(t){if(!t.computed)return!1;let{key:s}=t;if(s.type!=="Literal")return!1;let{value:n}=s;if(typeof n!="number"&&typeof n!="string")return!1;switch(t.type){case"Property":return n!=="__proto__";case"PropertyDefinition":return t.static?n!=="constructor"&&n!=="prototype":n!=="constructor";case"MethodDefinition":return t.static?n!=="prototype":n!=="constructor";default:throw new Error(`Unexpected node type: ${t.type}`)}}return dv={meta:{type:"suggestion",docs:{description:"Disallow unnecessary computed property keys in objects and classes",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-useless-computed-key"},schema:[{type:"object",properties:{enforceForClassMembers:{type:"boolean",default:!0}},additionalProperties:!1}],fixable:"code",messages:{unnecessarilyComputedProperty:"Unnecessarily computed property [{{property}}] found."}},create(t){let s=t.sourceCode,n=t.options[0]?.enforceForClassMembers??!0;function i(l){if(e(l)){let{key:o}=l;t.report({node:l,messageId:"unnecessarilyComputedProperty",data:{property:s.getText(o)},fix(u){let c=s.getTokenBefore(o,r.isOpeningBracketToken),p=s.getTokenAfter(o,r.isClosingBracketToken);if(s.commentsExistBetween(c,p))return null;let h=s.getTokenBefore(c),d=(h.range[1]===c.range[0]&&!r.canTokensBeAdjacent(h,s.getFirstToken(o))?" ":"")+o.raw;return u.replaceTextRange([c.range[0],p.range[1]],d)}})}}function a(){}return{Property:i,MethodDefinition:n?i:a,PropertyDefinition:n?i:a}}},dv}var mv,iR;function vZ(){if(iR)return mv;iR=1;let r=Pe();function e(i){return i.type==="BinaryExpression"&&i.operator==="+"}function t(i){return i.value==="+"&&i.type==="Punctuator"}function s(i){let a=i.left;for(;e(a);)a=a.right;return a}function n(i){let a=i.right;for(;e(a);)a=a.left;return a}return mv={meta:{type:"suggestion",docs:{description:"Disallow unnecessary concatenation of literals or template literals",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-useless-concat"},schema:[],messages:{unexpectedConcat:"Unexpected string concatenation of literals."}},create(i){let a=i.sourceCode;return{BinaryExpression(l){if(l.operator!=="+")return;let o=s(l),u=n(l);if(r.isStringLiteral(o)&&r.isStringLiteral(u)&&r.isTokenOnSameLine(o,u)){let c=a.getFirstTokenBetween(o,u,t);i.report({node:l,loc:c.loc,messageId:"unexpectedConcat"})}}}}},mv}var gv,aR;function xZ(){if(aR)return gv;aR=1;function r(o){return o.length===1&&o[0].type==="ExpressionStatement"&&o[0].expression.type==="CallExpression"&&o[0].expression.callee.type==="Super"}function e(o){return o.type==="Identifier"||o.type==="RestElement"}function t(o){return o.length===1&&o[0].type==="SpreadElement"&&o[0].argument.type==="Identifier"&&o[0].argument.name==="arguments"}function s(o,u){return o.type==="Identifier"&&u.type==="Identifier"&&o.name===u.name}function n(o,u){return o.type==="RestElement"&&u.type==="SpreadElement"&&s(o.argument,u.argument)}function i(o,u){return s(o,u)||n(o,u)}function a(o,u){if(o.length!==u.length)return!1;for(let c=0;c?@^`~");return yv={meta:{type:"suggestion",docs:{description:"Disallow unnecessary escape characters",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-useless-escape"},hasSuggestions:!0,messages:{unnecessaryEscape:"Unnecessary escape character: \\{{character}}.",removeEscape:"Remove the `\\`. This maintains the current functionality.",removeEscapeDoNotKeepSemantics:"Remove the `\\` if it was inserted by mistake.",escapeBackslash:"Replace the `\\` with `\\\\` to include the actual backslash character."},schema:[]},create(u){let c=u.sourceCode,p=new e;function h(g,y,v,x){let S=g.range[0]+y,w=[S,S+1],O=c.getLocFromIndex(S);u.report({node:g,loc:{start:O,end:{line:O.line,column:O.column+1}},messageId:"unnecessaryEscape",data:{character:v},suggest:[{messageId:r.isDirective(g.parent)?"removeEscapeDoNotKeepSemantics":"removeEscape",fix(C){return C.removeRange(w)}},...x?[]:[{messageId:"escapeBackslash",fix(C){return C.insertTextBeforeRange(w,"\\")}}]]})}function f(g,y){let v=g.type==="TemplateElement",x=y[0][1],S=!n.has(x),w;v?(w=x==="`",x==="$"?S=y.input[y.index+2]!=="{":x==="{"&&(S=y.input[y.index-1]!=="$")):w=x===g.raw[0],S&&!w&&h(g,y.index,y[0].slice(1))}function d(g){let{pattern:y,flags:v}=g.regex,x,S=v.includes("u"),w=v.includes("v");try{x=p.parsePattern(y,0,y.length,{unicode:S,unicodeSets:w})}catch{return}let O=[];t(x,{onCharacterClassEnter:C=>O.unshift(C),onCharacterClassLeave:()=>O.shift(),onExpressionCharacterClassEnter:C=>O.unshift(C),onExpressionCharacterClassLeave:()=>O.shift(),onCharacterEnter(C){if(!C.raw.startsWith("\\"))return;let E=C.raw.slice(1);if(E!==String.fromCodePoint(C.value))return;let k;if(O.length?k=w?l:i:k=a,k.has(E))return;let A=C.start+1,D=!1;if(O.length){let _=O[0];if(E==="^"&&_.start+1===C.start)return;if(w){if(o.has(E)&&(y[C.end]===E||y[C.start-1]===E&&(E!=="^"||!_.negate||_.start+1t.getCommentsInside(g).length||g.type==="AssignmentPattern"&&r.isParenthesised(t,g.left)?null:m.replaceText(p,t.getText(g))}})}function o(p){if(!n)for(let h of p.properties){if(h.type!=="Property"||h.shorthand||h.computed)continue;let f=h.key.type==="Identifier"&&h.key.name||h.key.type==="Literal"&&h.key.value,d=h.value.type==="AssignmentPattern"?h.value.left.name:h.value.name;f===d&&l(h,h.key,"Destructuring assignment")}}function u(p){i||p.imported.range[0]!==p.local.range[0]&&r.getModuleExportName(p.imported)===p.local.name&&l(p,p.imported,"Import")}function c(p){a||p.local.range[0]!==p.exported.range[0]&&r.getModuleExportName(p.local)===r.getModuleExportName(p.exported)&&l(p,p.local,"Export")}return{ObjectPattern:o,ImportSpecifier:u,ExportSpecifier:c}}},bv}var vv,uR;function EZ(){if(uR)return vv;uR=1;let r=Pe(),e=Zo();function t(a,l){let o=a.indexOf(l);o!==-1&&a.splice(o,1)}function s(a){return r.STATEMENT_LIST_PARENTS.has(a.parent.type)}function n(a){for(let l=a;l&&l.parent&&!r.isFunction(l);l=l.parent)if(l.parent.type==="TryStatement"&&l.parent.finalizer===l)return!0;return!1}function i(a){for(let l of a)if(l.reachable)return!0;return!1}return vv={meta:{type:"suggestion",docs:{description:"Disallow redundant return statements",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-useless-return"},fixable:"code",schema:[],messages:{unnecessaryReturn:"Unnecessary return statement."}},create(a){let l=new WeakMap,o=a.sourceCode,u=null;function c(d){let m=l.get(d);return!m||m.returned}function p(d,m,g){let y=g||new WeakSet;for(let v of m){if(!v.reachable){y.has(v)||(y.add(v),p(d,v.allPrevSegments.filter(c),y));continue}l.has(v)&&d.push(...l.get(v).uselessReturns)}return d}function h(d,m){if(!d.reachable){m.add(d),d.allPrevSegments.filter(c).filter(y=>!m.has(y)).forEach(y=>h(y,m));return}let g=l.get(d);g&&(g.uselessReturns=g.uselessReturns.filter(y=>{if(u.traversedTryBlockStatements&&u.traversedTryBlockStatements.length>0){let v=y.range[0],x=y.range[1];if(u.traversedTryBlockStatements.some(w=>{let O=w.range[0],C=w.range[1];return v>=O&&x<=C}))return!0}return t(u.uselessReturns,y),!1}))}function f(){u.currentSegments.forEach(d=>h(d,new Set))}return{onCodePathStart(d){u={upper:u,uselessReturns:[],traversedTryBlockStatements:[],codePath:d,currentSegments:new Set}},onCodePathEnd(){for(let d of u.uselessReturns)a.report({node:d,loc:d.loc,messageId:"unnecessaryReturn",fix(m){return s(d)&&!o.getCommentsInside(d).length?new e(m,o).retainEnclosingFunction(d).remove(d):null}});u=u.upper},onCodePathSegmentStart(d){u.currentSegments.add(d);let m={uselessReturns:p([],d.allPrevSegments),returned:!1};l.set(d,m)},onUnreachableCodePathSegmentStart(d){u.currentSegments.add(d)},onUnreachableCodePathSegmentEnd(d){u.currentSegments.delete(d)},onCodePathSegmentEnd(d){u.currentSegments.delete(d)},ReturnStatement(d){if(d.argument&&f(),!(d.argument||r.isInLoop(d)||n(d)||!i(u.currentSegments))){for(let m of u.currentSegments){let g=l.get(m);g&&(g.uselessReturns.push(d),g.returned=!0)}u.uselessReturns.push(d)}},"TryStatement > BlockStatement.block:exit"(d){u.traversedTryBlockStatements.push(d)},"TryStatement:exit"(){u.traversedTryBlockStatements.pop()},ClassDeclaration:f,ContinueStatement:f,DebuggerStatement:f,DoWhileStatement:f,EmptyStatement:f,ExpressionStatement:f,ForInStatement:f,ForOfStatement:f,ForStatement:f,IfStatement:f,ImportDeclaration:f,LabeledStatement:f,SwitchStatement:f,ThrowStatement:f,TryStatement:f,VariableDeclaration:f,WhileStatement:f,WithStatement:f,ExportNamedDeclaration:f,ExportDefaultDeclaration:f,ExportAllDeclaration:f}}},vv}var xv,cR;function wZ(){if(cR)return xv;cR=1;let r=Pe();function e(h){return!!h.scope&&h.scope.type==="global"}function t(h){let f=h;for(;f.type!=="function"&&f.type!=="global";)f=f.upper;return f}function s(h){let f=t(h.scope);return h.references.some(d=>t(d.from)!==f)}function n(h){return(h.parent.type==="ForOfStatement"||h.parent.type==="ForInStatement")&&h===h.parent.left}function i(h){return h.declarations.every(f=>f.init!==null)}let a=/^(?:Program|BlockStatement|SwitchStatement|ForStatement|ForInStatement|ForOfStatement)$/u;function l(h){for(let f=h;f;f=f.parent)if(a.test(f.type))return f;return null}function o(h){return h.defs.length>=2}function u(h){function f(d){let m=h.range,g=d.identifier.range;return g[0]m[1]}return function(d){return d.references.some(f)}}function c(h){let f=h.range[0],d=h.range[1];return m=>{let g=m.defs[0].name,y=g.range[0],v=g.parent.type==="AssignmentPattern"?g.parent.right:null,x=v&&v.range[0],S=v&&v.range[1];return m.references.some(w=>{let O=w.identifier.range[0],C=w.identifier.range[1];return!w.init&&(O=x&&C<=S||!r.isFunction(h)&&O>=f&&C<=d)})}}function p(h){return h.name==="let"}return xv={meta:{type:"suggestion",docs:{description:"Require `let` or `const` instead of `var`",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-var"},schema:[],fixable:"code",messages:{unexpectedVar:"Unexpected var, use let or const instead."}},create(h){let f=h.sourceCode;function d(y){return y.init?f.getDeclaredVariables(y).some(c(y.init)):!1}function m(y){let v=f.getDeclaredVariables(y),x=l(y);return!(y.parent.type==="SwitchCase"||y.declarations.some(d)||v.some(e)||v.some(o)||v.some(u(x))||v.some(p)||r.isInLoop(y)&&(v.some(s)||!n(y)&&!i(y))||!n(y)&&!(y.parent.type==="ForStatement"&&y.parent.init===y)&&!r.STATEMENT_LIST_PARENTS.has(y.parent.type))}function g(y){h.report({node:y,messageId:"unexpectedVar",fix(v){let x=f.getFirstToken(y,{filter:S=>S.value==="var"});return m(y)?v.replaceText(x,"let"):null}})}return{"VariableDeclaration:exit"(y){y.kind==="var"&&g(y)}}}},xv}var Ov,fR;function CZ(){return fR||(fR=1,Ov={meta:{type:"suggestion",docs:{description:"Disallow `void` operators",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-void"},messages:{noVoid:"Expected 'undefined' and instead saw 'void'."},schema:[{type:"object",properties:{allowAsStatement:{type:"boolean",default:!1}},additionalProperties:!1}]},create(r){let e=r.options[0]&&r.options[0].allowAsStatement;return{'UnaryExpression[operator="void"]'(t){e&&t.parent&&t.parent.type==="ExpressionStatement"||r.report({node:t,messageId:"noVoid"})}}}}),Ov}var Sv,pR;function kZ(){if(pR)return Sv;pR=1;let r=Sc(),e=Pe(),t=40;return Sv={meta:{type:"suggestion",docs:{description:"Disallow specified warning terms in comments",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-warning-comments"},schema:[{type:"object",properties:{terms:{type:"array",items:{type:"string"}},location:{enum:["start","anywhere"]},decoration:{type:"array",items:{type:"string",pattern:"^\\S$"},minItems:1,uniqueItems:!0}},additionalProperties:!1}],messages:{unexpectedComment:"Unexpected '{{matchedTerm}}' comment: '{{comment}}'."}},create(s){let n=s.sourceCode,i=s.options[0]||{},a=i.terms||["todo","fixme","xxx"],l=i.location||"start",o=[...i.decoration||[]].join(""),u=/\bno-warning-comments\b/u;function c(d){let m=r(d),g=r(o),y="\\b",v="";l==="start"?v=`^[\\s${g}]*`:/^\w/u.test(d)&&(v=y);let x=/\w$/u.test(d)?y:"",S="iu";return new RegExp(`${v}${m}${x}`,S)}let p=a.map(c);function h(d){let m=[];return p.forEach((g,y)=>{g.test(d)&&m.push(a[y])}),m}function f(d){let m=d.value;if(e.isDirectiveComment(d)&&u.test(m))return;h(m).forEach(y=>{let v="",x=!1;for(let S of m.trim().split(/\s+/u)){let w=v?`${v} ${S}`:S;if(w.length<=t)v=w;else{x=!0;break}}s.report({node:d,messageId:"unexpectedComment",data:{matchedTerm:y,comment:`${v}${x?"...":""}`}})})}return{Program(){n.getAllComments().filter(m=>m.type!=="Shebang").forEach(f)}}}},Sv}var Ev,hR;function AZ(){if(hR)return Ev;hR=1;let r=Pe();return Ev={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Disallow whitespace before properties",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-whitespace-before-property"},fixable:"whitespace",schema:[],messages:{unexpectedWhitespace:"Unexpected whitespace before property {{propName}}."}},create(e){let t=e.sourceCode;function s(n,i,a){e.report({node:n,messageId:"unexpectedWhitespace",data:{propName:t.getText(n.property)},fix(l){let o="";return!n.computed&&!n.optional&&r.isDecimalInteger(n.object)||t.commentsExistBetween(i,a)?null:(n.optional?o="?.":n.computed||(o="."),l.replaceTextRange([i.range[1],a.range[0]],o))}})}return{MemberExpression(n){let i,a;r.isTokenOnSameLine(n.object,n.property)&&(n.computed?(i=t.getTokenBefore(n.property,r.isOpeningBracketToken),a=t.getTokenBefore(i,n.optional?1:0)):(i=t.getFirstToken(n.property),a=t.getTokenBefore(i,1)),t.isSpaceBetweenTokens(a,i)&&s(n,a,i))}}}},Ev}var wv,dR;function PZ(){return dR||(dR=1,wv={meta:{type:"suggestion",docs:{description:"Disallow `with` statements",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-with"},schema:[],messages:{unexpectedWith:"Unexpected use of 'with' statement."}},create(r){return{WithStatement(e){r.report({node:e,messageId:"unexpectedWith"})}}}}),wv}var Cv,mR;function TZ(){if(mR)return Cv;mR=1;let r={enum:["beside","below","any"]};return Cv={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Enforce the location of single-line statements",recommended:!1,url:"https://eslint.org/docs/latest/rules/nonblock-statement-body-position"},fixable:"whitespace",schema:[r,{properties:{overrides:{properties:{if:r,else:r,while:r,do:r,for:r},additionalProperties:!1}},additionalProperties:!1}],messages:{expectNoLinebreak:"Expected no linebreak before this statement.",expectLinebreak:"Expected a linebreak before this statement."}},create(e){let t=e.sourceCode;function s(i){return e.options[1]&&e.options[1].overrides&&e.options[1].overrides[i]||e.options[0]||"beside"}function n(i,a){let l=s(a);if(i.type==="BlockStatement"||l==="any")return;let o=t.getTokenBefore(i);o.loc.end.line===i.loc.start.line&&l==="below"?e.report({node:i,messageId:"expectLinebreak",fix:u=>u.insertTextBefore(i,` +`)}):o.loc.end.line!==i.loc.start.line&&l==="beside"&&e.report({node:i,messageId:"expectNoLinebreak",fix(u){return t.getText().slice(o.range[1],i.range[0]).trim()?null:u.replaceTextRange([o.range[1],i.range[0]]," ")}})}return{IfStatement(i){n(i.consequent,"if"),i.alternate&&i.alternate.type!=="IfStatement"&&n(i.alternate,"else")},WhileStatement:i=>n(i.body,"while"),DoWhileStatement:i=>n(i.body,"do"),ForStatement:i=>n(i.body,"for"),ForInStatement:i=>n(i.body,"for"),ForOfStatement:i=>n(i.body,"for")}}},Cv}var kv,gR;function DZ(){if(gR)return kv;gR=1;let r=Pe(),e={oneOf:[{enum:["always","never"]},{type:"object",properties:{multiline:{type:"boolean"},minProperties:{type:"integer",minimum:0},consistent:{type:"boolean"}},additionalProperties:!1,minProperties:1}]};function t(l){let o=!1,u=Number.POSITIVE_INFINITY,c=!1;return l?l==="always"?u=0:l==="never"?u=Number.POSITIVE_INFINITY:(o=!!l.multiline,u=l.minProperties||Number.POSITIVE_INFINITY,c=!!l.consistent):c=!0,{multiline:o,minProperties:u,consistent:c}}function s(l){return typeof l=="object"&&l!==null}function n(l){return s(l)||typeof l=="string"}function i(l){if(s(l)&&Object.values(l).some(n))return{ObjectExpression:t(l.ObjectExpression),ObjectPattern:t(l.ObjectPattern),ImportDeclaration:t(l.ImportDeclaration),ExportNamedDeclaration:t(l.ExportDeclaration)};let o=t(l);return{ObjectExpression:o,ObjectPattern:o,ImportDeclaration:o,ExportNamedDeclaration:o}}function a(l,o,u,c){let p;return l.type==="ObjectExpression"||l.type==="ObjectPattern"?p=l.properties:p=l.specifiers.filter(h=>h.type==="ImportSpecifier"||h.type==="ExportSpecifier"),p.length>=o.minProperties||o.multiline&&p.length>0&&u.loc.start.line!==c.loc.end.line}return kv={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Enforce consistent line breaks after opening and before closing braces",recommended:!1,url:"https://eslint.org/docs/latest/rules/object-curly-newline"},fixable:"whitespace",schema:[{oneOf:[e,{type:"object",properties:{ObjectExpression:e,ObjectPattern:e,ImportDeclaration:e,ExportDeclaration:e},additionalProperties:!1,minProperties:1}]}],messages:{unexpectedLinebreakBeforeClosingBrace:"Unexpected line break before this closing brace.",unexpectedLinebreakAfterOpeningBrace:"Unexpected line break after this opening brace.",expectedLinebreakBeforeClosingBrace:"Expected a line break before this closing brace.",expectedLinebreakAfterOpeningBrace:"Expected a line break after this opening brace."}},create(l){let o=l.sourceCode,u=i(l.options[0]);function c(p){let h=u[p.type];if(p.type==="ImportDeclaration"&&!p.specifiers.some(S=>S.type==="ImportSpecifier")||p.type==="ExportNamedDeclaration"&&!p.specifiers.some(S=>S.type==="ExportSpecifier"))return;let f=o.getFirstToken(p,S=>S.value==="{"),d;p.typeAnnotation?d=o.getTokenBefore(p.typeAnnotation):d=o.getLastToken(p,S=>S.value==="}");let m=o.getTokenAfter(f,{includeComments:!0}),g=o.getTokenBefore(d,{includeComments:!0}),y=a(p,h,m,g),v=r.isCommentToken(m),x=r.isCommentToken(g);if(m=o.getTokenAfter(f),g=o.getTokenBefore(d),y)r.isTokenOnSameLine(f,m)&&l.report({messageId:"expectedLinebreakAfterOpeningBrace",node:p,loc:f.loc,fix(S){return v?null:S.insertTextAfter(f,` +`)}}),r.isTokenOnSameLine(g,d)&&l.report({messageId:"expectedLinebreakBeforeClosingBrace",node:p,loc:d.loc,fix(S){return x?null:S.insertTextBefore(d,` +`)}});else{let S=h.consistent,w=!r.isTokenOnSameLine(f,m),O=!r.isTokenOnSameLine(g,d);(!S&&w||S&&w&&!O)&&l.report({messageId:"unexpectedLinebreakAfterOpeningBrace",node:p,loc:f.loc,fix(C){return v?null:C.removeRange([f.range[1],m.range[0]])}}),(!S&&O||S&&!w&&O)&&l.report({messageId:"unexpectedLinebreakBeforeClosingBrace",node:p,loc:d.loc,fix(C){return x?null:C.removeRange([g.range[1],d.range[0]])}})}}return{ObjectExpression:c,ObjectPattern:c,ImportDeclaration:c,ExportNamedDeclaration:c}}},kv}var Av,yR;function _Z(){if(yR)return Av;yR=1;let r=Pe();return Av={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Enforce consistent spacing inside braces",recommended:!1,url:"https://eslint.org/docs/latest/rules/object-curly-spacing"},fixable:"whitespace",schema:[{enum:["always","never"]},{type:"object",properties:{arraysInObjects:{type:"boolean"},objectsInObjects:{type:"boolean"}},additionalProperties:!1}],messages:{requireSpaceBefore:"A space is required before '{{token}}'.",requireSpaceAfter:"A space is required after '{{token}}'.",unexpectedSpaceBefore:"There should be no space before '{{token}}'.",unexpectedSpaceAfter:"There should be no space after '{{token}}'."}},create(e){let t=e.options[0]==="always",s=e.sourceCode;function n(m){return e.options[1]?e.options[1][m]===!t:!1}let i={spaced:t,arraysInObjectsException:n("arraysInObjects"),objectsInObjectsException:n("objectsInObjects")};function a(m,g){let y=e.sourceCode.getTokenAfter(g,{includeComments:!0});e.report({node:m,loc:{start:g.loc.end,end:y.loc.start},messageId:"unexpectedSpaceAfter",data:{token:g.value},fix(v){return v.removeRange([g.range[1],y.range[0]])}})}function l(m,g){let y=e.sourceCode.getTokenBefore(g,{includeComments:!0});e.report({node:m,loc:{start:y.loc.end,end:g.loc.start},messageId:"unexpectedSpaceBefore",data:{token:g.value},fix(v){return v.removeRange([y.range[1],g.range[0]])}})}function o(m,g){e.report({node:m,loc:g.loc,messageId:"requireSpaceAfter",data:{token:g.value},fix(y){return y.insertTextAfter(g," ")}})}function u(m,g){e.report({node:m,loc:g.loc,messageId:"requireSpaceBefore",data:{token:g.value},fix(y){return y.insertTextBefore(g," ")}})}function c(m,g,y,v,x){if(r.isTokenOnSameLine(g,y)){let S=s.isSpaceBetweenTokens(g,y);i.spaced&&!S&&o(m,g),!i.spaced&&S&&y.type!=="Line"&&a(m,g)}if(r.isTokenOnSameLine(v,x)){let w=(i.arraysInObjectsException&&r.isClosingBracketToken(v)||i.objectsInObjectsException&&r.isClosingBraceToken(v))&&s.getNodeByRangeIndex(v.range[0]).type,O=i.arraysInObjectsException&&w==="ArrayExpression"||i.objectsInObjectsException&&(w==="ObjectExpression"||w==="ObjectPattern")?!i.spaced:i.spaced,C=s.isSpaceBetweenTokens(v,x);O&&!C&&u(m,x),!O&&C&&l(m,x)}}function p(m){let g=m.properties.at(-1);return s.getTokenAfter(g,r.isClosingBraceToken)}function h(m){if(m.properties.length===0)return;let g=s.getFirstToken(m),y=p(m),v=s.getTokenAfter(g,{includeComments:!0}),x=s.getTokenBefore(y,{includeComments:!0});c(m,g,v,x,y)}function f(m){if(m.specifiers.length===0)return;let g=m.specifiers[0],y=m.specifiers.at(-1);if(y.type!=="ImportSpecifier")return;g.type!=="ImportSpecifier"&&(g=m.specifiers[1]);let v=s.getTokenBefore(g),x=s.getTokenAfter(y,r.isNotCommaToken),S=s.getTokenAfter(v,{includeComments:!0}),w=s.getTokenBefore(x,{includeComments:!0});c(m,v,S,w,x)}function d(m){if(m.specifiers.length===0)return;let g=m.specifiers[0],y=m.specifiers.at(-1),v=s.getTokenBefore(g),x=s.getTokenAfter(y,r.isNotCommaToken),S=s.getTokenAfter(v,{includeComments:!0}),w=s.getTokenBefore(x,{includeComments:!0});c(m,v,S,w,x)}return{ObjectPattern:h,ObjectExpression:h,ImportDeclaration:f,ExportNamedDeclaration:d}}},Av}var Pv,bR;function IZ(){return bR||(bR=1,Pv={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Enforce placing object properties on separate lines",recommended:!1,url:"https://eslint.org/docs/latest/rules/object-property-newline"},schema:[{type:"object",properties:{allowAllPropertiesOnSameLine:{type:"boolean",default:!1},allowMultiplePropertiesPerLine:{type:"boolean",default:!1}},additionalProperties:!1}],fixable:"whitespace",messages:{propertiesOnNewlineAll:"Object properties must go on a new line if they aren't all on the same line.",propertiesOnNewline:"Object properties must go on a new line."}},create(r){let e=r.options[0]&&(r.options[0].allowAllPropertiesOnSameLine||r.options[0].allowMultiplePropertiesPerLine),t=e?"propertiesOnNewlineAll":"propertiesOnNewline",s=r.sourceCode;return{ObjectExpression(n){if(e&&n.properties.length>1){let i=s.getFirstToken(n.properties[0]),a=s.getLastToken(n.properties.at(-1));if(i.loc.end.line===a.loc.start.line)return}for(let i=1;i0){let Q=j.filter(x);Q.length!==j.length&&(Q.length>0?t.report({node:T,messageId:"unexpectedMix"}):R&&j.every(S)&&t.report({node:T,messageId:"expectedAllPropertiesShorthanded"}))}}function O(T,R){let j=R.computed?d.getFirstToken(R,e.isOpeningBracketToken):d.getFirstToken(R.key),Q=R.computed?d.getFirstTokenBetween(R.key,R.value,e.isClosingBracketToken):d.getLastToken(R.key),I=d.text.slice(j.range[0],Q.range[1]),N="";if(d.commentsExistBetween(Q,R.value))return null;R.value.async&&(N+="async "),R.value.generator&&(N+="*");let F=[j.range[0],R.range[1]],U=N+I;if(R.value.type==="FunctionExpression"){let K=d.getTokens(R.value).find(be=>be.type==="Keyword"&&be.value==="function"),le=R.value.generator?d.getTokenAfter(K):K;return T.replaceTextRange(F,U+d.text.slice(le.range[1],R.value.range[1]))}let V=d.getTokenBefore(R.value.body,e.isArrowToken),ae=d.text.slice(V.range[1],R.value.range[1]),se=!1,xe;if(R.value.params.length===0?xe=d.getFirstToken(R.value,e.isOpeningParenToken):xe=d.getTokenBefore(R.value.params[0]),R.value.params.length===1){let K=e.isOpeningParenToken(xe),le=xe.range[0]F.value==="["):d.getFirstToken(R.key),Q=R.computed?d.getTokensBetween(R.key,R.value).find(F=>F.value==="]"):d.getLastToken(R.key),I=d.text.slice(j.range[0],Q.range[1]),N="function";return R.value.async&&(N=`async ${N}`),R.value.generator&&(N=`${N}*`),T.replaceTextRange([R.range[0],Q.range[1]],`${I}: ${N}`)}let E=[],k=new WeakSet,A=new WeakSet;function D(T){E.unshift(new Set),d.getScope(T).variables.filter(R=>R.name==="arguments").forEach(R=>{R.references.map(j=>j.identifier).forEach(j=>A.add(j))})}function _(){E.shift()}function B(){E[0].forEach(T=>k.add(T))}return{Program:D,FunctionDeclaration:D,FunctionExpression:D,"Program:exit":_,"FunctionDeclaration:exit":_,"FunctionExpression:exit":_,ArrowFunctionExpression(T){E[0].add(T)},"ArrowFunctionExpression:exit"(T){E[0].delete(T)},ThisExpression:B,Super:B,MetaProperty(T){T.meta.name==="new"&&T.property.name==="target"&&B()},Identifier(T){A.has(T)&&B()},ObjectExpression(T){l?w(T,!1):o&&w(T,!0)},"Property:exit"(T){let R=T.method||T.shorthand;if(T.parent.type!=="ObjectPattern"&&!(T.kind==="get"||T.kind==="set")&&!(T.computed&&T.value.type!=="FunctionExpression"&&T.value.type!=="ArrowFunctionExpression")){if(R)if(T.method&&(a||h&&v(T.key))){let j=a?"expectedMethodLongform":"expectedLiteralMethodLongform";t.report({node:T,messageId:j,fix:Q=>C(Q,T)})}else a&&t.report({node:T,messageId:"expectedPropertyLongform",fix:j=>j.insertTextAfter(T.key,`: ${T.key.name}`)});else if(n&&!T.value.id&&(T.value.type==="FunctionExpression"||T.value.type==="ArrowFunctionExpression")){if(c&&T.key.type==="Identifier"&&g(T.key.name))return;if(p){let j=e.getStaticPropertyName(T);if(j!==null&&p.test(j))return}if(h&&v(T.key))return;(T.value.type==="FunctionExpression"||T.value.type==="ArrowFunctionExpression"&&T.value.body.type==="BlockStatement"&&f&&!k.has(T.value))&&t.report({node:T,messageId:"expectedMethodShorthand",fix:j=>O(j,T)})}else if(T.value.type==="Identifier"&&T.key.name===T.value.name&&i)t.report({node:T,messageId:"expectedPropertyShorthand",fix(j){return j.replaceText(T,T.value.name)}});else if(T.value.type==="Identifier"&&T.key.type==="Literal"&&T.key.value===T.value.name&&i){if(h)return;t.report({node:T,messageId:"expectedPropertyShorthand",fix(j){return j.replaceText(T,T.value.name)}})}}}}}},Tv}var Dv,xR;function FZ(){if(xR)return Dv;xR=1;let r=Pe();function e(t){return r.STATEMENT_LIST_PARENTS.has(t.parent.type)}return Dv={meta:{type:"suggestion",docs:{description:"Enforce variables to be declared either together or separately in functions",recommended:!1,url:"https://eslint.org/docs/latest/rules/one-var"},fixable:"code",schema:[{oneOf:[{enum:["always","never","consecutive"]},{type:"object",properties:{separateRequires:{type:"boolean"},var:{enum:["always","never","consecutive"]},let:{enum:["always","never","consecutive"]},const:{enum:["always","never","consecutive"]}},additionalProperties:!1},{type:"object",properties:{initialized:{enum:["always","never","consecutive"]},uninitialized:{enum:["always","never","consecutive"]}},additionalProperties:!1}]}],messages:{combineUninitialized:"Combine this with the previous '{{type}}' statement with uninitialized variables.",combineInitialized:"Combine this with the previous '{{type}}' statement with initialized variables.",splitUninitialized:"Split uninitialized '{{type}}' declarations into multiple statements.",splitInitialized:"Split initialized '{{type}}' declarations into multiple statements.",splitRequires:"Split requires to be separated into a single block.",combine:"Combine this with the previous '{{type}}' statement.",split:"Split '{{type}}' declarations into multiple statements."}},create(t){let s="always",n="never",i="consecutive",a=t.options[0]||s,l={};typeof a=="string"?(l.var={uninitialized:a,initialized:a},l.let={uninitialized:a,initialized:a},l.const={uninitialized:a,initialized:a}):typeof a=="object"&&(l.separateRequires=!!a.separateRequires,l.var={uninitialized:a.var,initialized:a.var},l.let={uninitialized:a.let,initialized:a.let},l.const={uninitialized:a.const,initialized:a.const},Object.hasOwn(a,"uninitialized")&&(l.var.uninitialized=a.uninitialized,l.let.uninitialized=a.uninitialized,l.const.uninitialized=a.uninitialized),Object.hasOwn(a,"initialized")&&(l.var.initialized=a.initialized,l.let.initialized=a.initialized,l.const.initialized=a.initialized));let o=t.sourceCode,u=[],c=[];function p(){c.push({let:{initialized:!1,uninitialized:!1},const:{initialized:!1,uninitialized:!1}})}function h(){u.push({initialized:!1,uninitialized:!1}),p()}function f(){c.pop()}function d(){u.pop(),f()}function m(C){return C.init&&C.init.type==="CallExpression"&&C.init.callee.name==="require"}function g(C,E,k){for(let A=0;A0&&A.uninitialized===s&&D.uninitialized||k.initialized>0&&A.initialized===s&&D.initialized&&!_||D.required&&_?!1:(g(C,E,D),!0)}function S(C){let E=C[0],k=Array.isArray(E.parent.parent.body)?E.parent.parent.body:[],A=k.findIndex(_=>_.range[0]===E.parent.range[0]),D=k[A-1];return _=>{let B=o.getTokenBefore(E),T=o.getTokenBefore(B),R=[];return D&&D.kind===o.getText(B)&&(T.value===";"?R.push(_.replaceText(T,",")):R.push(_.insertTextAfter(T,",")),R.push(_.replaceText(B,""))),R}}function w(C){let{parent:E}=C;return e(E.type==="ExportNamedDeclaration"?E:C)?k=>C.declarations.map(A=>{let D=o.getTokenAfter(A);if(D===null)return null;let _=o.getTokenAfter(D,{includeComments:!0});if(D.value!==",")return null;let B=C.parent.type==="ExportNamedDeclaration"?"export ":"";if(_.range[0]===D.range[1])return k.replaceText(D,`; ${B}${C.kind} `);if(_.loc.start.line>D.loc.end.line||_.type==="Line"||_.type==="Block"){let T=_;for(;T.type==="Line"||T.type==="Block";)T=o.getTokenAfter(T,{includeComments:!0});return k.replaceTextRange([D.range[0],T.range[0]],`;${o.text.slice(D.range[1],T.range[0])}${B}${C.kind} `)}return k.replaceText(D,`; ${B}${C.kind}`)}).filter(A=>A):null}function O(C){let E=C.parent,k=C.kind;if(!l[k])return;let A=C.declarations,D=v(A),_=A.some(m)&&!A.every(m);l[k].initialized===s&&l.separateRequires&&_&&t.report({node:C,messageId:"splitRequires"});let B=E.body&&E.body.length>0&&E.body.indexOf(C)||0;if(B>0){let T=E.body[B-1],R=T.type==="VariableDeclaration",j=A.concat(T.declarations||[]);if(R&&T.kind===k&&!(j.some(m)&&!j.every(m))){let Q=v(T.declarations);l[k].initialized===i&&l[k].uninitialized===i?t.report({node:C,messageId:"combine",data:{type:k},fix:S(A)}):l[k].initialized===i&&D.initialized>0&&Q.initialized>0?t.report({node:C,messageId:"combineInitialized",data:{type:k},fix:S(A)}):l[k].uninitialized===i&&D.uninitialized>0&&Q.uninitialized>0&&t.report({node:C,messageId:"combineUninitialized",data:{type:k},fix:S(A)})}}if(!x(k,A)){if(l[k].initialized===s&&l[k].uninitialized===s)t.report({node:C,messageId:"combine",data:{type:k},fix:S(A)});else if(l[k].initialized===s&&D.initialized>0&&t.report({node:C,messageId:"combineInitialized",data:{type:k},fix:S(A)}),l[k].uninitialized===s&&D.uninitialized>0){if(C.parent.left===C&&(C.parent.type==="ForInStatement"||C.parent.type==="ForOfStatement"))return;t.report({node:C,messageId:"combineUninitialized",data:{type:k},fix:S(A)})}}(E.type!=="ForStatement"||E.init!==C)&&D.uninitialized+D.initialized>1&&(l[k].initialized===n&&l[k].uninitialized===n?t.report({node:C,messageId:"split",data:{type:k},fix:w(C)}):l[k].initialized===n&&D.initialized>0?t.report({node:C,messageId:"splitInitialized",data:{type:k},fix:w(C)}):l[k].uninitialized===n&&D.uninitialized>0&&t.report({node:C,messageId:"splitUninitialized",data:{type:k},fix:w(C)}))}return{Program:h,FunctionDeclaration:h,FunctionExpression:h,ArrowFunctionExpression:h,StaticBlock:h,BlockStatement:p,ForStatement:p,ForInStatement:p,ForOfStatement:p,SwitchStatement:p,VariableDeclaration:O,"ForStatement:exit":f,"ForOfStatement:exit":f,"ForInStatement:exit":f,"SwitchStatement:exit":f,"BlockStatement:exit":f,"Program:exit":d,"FunctionDeclaration:exit":d,"FunctionExpression:exit":d,"ArrowFunctionExpression:exit":d,"StaticBlock:exit":d}}},Dv}var _v,OR;function BZ(){return OR||(OR=1,_v={meta:{deprecated:!0,replacedBy:[],type:"suggestion",docs:{description:"Require or disallow newlines around variable declarations",recommended:!1,url:"https://eslint.org/docs/latest/rules/one-var-declaration-per-line"},schema:[{enum:["always","initializations"]}],fixable:"whitespace",messages:{expectVarOnNewline:"Expected variable declaration to be on a new line."}},create(r){let e=r.options[0]==="always";function t(n){return n==="ForStatement"||n==="ForInStatement"||n==="ForOfStatement"}function s(n){if(t(n.parent.type))return;let i=n.declarations,a;i.forEach(l=>{a&&a.loc.end.line===l.loc.start.line&&(e||a.init||l.init)&&r.report({node:n,messageId:"expectVarOnNewline",loc:l.loc,fix:o=>o.insertTextBefore(l,` +`)}),a=l})}return{VariableDeclaration:s}}}),_v}var Iv,SR;function NZ(){if(SR)return Iv;SR=1;let r=Pe();function e(n){return["*","&","^","|"].includes(n)}function t(n){return["+","-","/","%","<<",">>",">>>","**"].includes(n)}function s(n){return n.type==="Identifier"||n.type==="MemberExpression"&&(n.object.type==="Identifier"||n.object.type==="ThisExpression")&&(!n.computed||n.property.type==="Literal")}return Iv={meta:{type:"suggestion",docs:{description:"Require or disallow assignment operator shorthand where possible",recommended:!1,url:"https://eslint.org/docs/latest/rules/operator-assignment"},schema:[{enum:["always","never"]}],fixable:"code",messages:{replaced:"Assignment (=) can be replaced with operator assignment ({{operator}}).",unexpected:"Unexpected operator assignment ({{operator}}) shorthand."}},create(n){let i=n.sourceCode;function a(u){return i.getFirstTokenBetween(u.left,u.right,c=>c.value===u.operator)}function l(u){if(u.operator!=="="||u.right.type!=="BinaryExpression")return;let c=u.left,p=u.right,h=p.operator;if(e(h)||t(h)){let f=`${h}=`;r.isSameReference(c,p.left,!0)?n.report({node:u,messageId:"replaced",data:{operator:f},fix(d){if(s(c)&&s(p.left)){let m=a(u),g=a(p),y=i.getText().slice(u.range[0],m.range[0]),v=i.getText().slice(g.range[1],u.right.range[1]);return i.commentsExistBetween(m,g)?null:d.replaceText(u,`${y}${f}${v}`)}return null}}):r.isSameReference(c,p.right,!0)&&e(h)&&n.report({node:u,messageId:"replaced",data:{operator:f}})}}function o(u){u.operator!=="="&&!r.isLogicalAssignmentOperator(u.operator)&&n.report({node:u,messageId:"unexpected",data:{operator:u.operator},fix(c){if(s(u.left)){let p=i.getFirstToken(u),h=a(u),f=i.getText().slice(u.range[0],h.range[0]),d=u.operator.slice(0,-1),m;if(i.commentsExistBetween(p,h))return null;if(r.getPrecedence(u.right)<=r.getPrecedence({type:"BinaryExpression",operator:d})&&!r.isParenthesised(i,u.right))m=`${i.text.slice(h.range[1],u.right.range[0])}(${i.getText(u.right)})`;else{let g=i.getTokenAfter(h,{includeComments:!0}),y="";h.range[1]===g.range[0]&&!r.canTokensBeAdjacent({type:"Punctuator",value:d},g)&&(y=" "),m=`${y}${i.text.slice(h.range[1],u.range[1])}`}return c.replaceText(u,`${f}= ${f}${d}${m}`)}return null}})}return{AssignmentExpression:n.options[0]!=="never"?l:o}}},Iv}var Rv,ER;function LZ(){if(ER)return Rv;ER=1;let r=Pe();return Rv={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Enforce consistent linebreak style for operators",recommended:!1,url:"https://eslint.org/docs/latest/rules/operator-linebreak"},schema:[{enum:["after","before","none",null]},{type:"object",properties:{overrides:{type:"object",additionalProperties:{enum:["after","before","none","ignore"]}}},additionalProperties:!1}],fixable:"code",messages:{operatorAtBeginning:"'{{operator}}' should be placed at the beginning of the line.",operatorAtEnd:"'{{operator}}' should be placed at the end of the line.",badLinebreak:"Bad line breaking before and after '{{operator}}'.",noLinebreak:"There should be no line break before or after '{{operator}}'."}},create(e){let t=!e.options[0],s=e.options[0]||"after",n=e.options[1]||{},i=n.overrides?Object.assign({},n.overrides):{};t&&!i["?"]&&(i["?"]="before"),t&&!i[":"]&&(i[":"]="before");let a=e.sourceCode;function l(c,p){return h=>{let f=a.getTokenBefore(c),d=a.getTokenAfter(c),m=a.text.slice(f.range[1],c.range[0]),g=a.text.slice(c.range[1],d.range[0]),y=!r.isTokenOnSameLine(f,c),v=!r.isTokenOnSameLine(c,d),x,S;if(y!==v&&p!=="none"){if(a.getTokenBefore(c,{includeComments:!0})!==f&&a.getTokenAfter(c,{includeComments:!0})!==d)return null;x=g,S=m}else{let w=r.createGlobalLinebreakMatcher();if(x=p==="before"||m.trim()?m:m.replace(w,""),S=p==="after"||g.trim()?g:g.replace(w,""),x===m&&S===g)return null}return S===""&&d.type==="Punctuator"&&"+-".includes(c.value)&&d.value===c.value&&(S+=" "),h.replaceTextRange([f.range[1],d.range[0]],x+c.value+S)}}function o(c,p,h){let f=a.getTokenBefore(p,x=>x.value===h),d=a.getTokenBefore(f),m=a.getTokenAfter(f),g=i[h],y=g||s,v=l(f,y);r.isTokenOnSameLine(d,f)&&r.isTokenOnSameLine(f,m)||(g!=="ignore"&&!r.isTokenOnSameLine(d,f)&&!r.isTokenOnSameLine(f,m)?e.report({node:c,loc:f.loc,messageId:"badLinebreak",data:{operator:h},fix:v}):y==="before"&&r.isTokenOnSameLine(d,f)?e.report({node:c,loc:f.loc,messageId:"operatorAtBeginning",data:{operator:h},fix:v}):y==="after"&&r.isTokenOnSameLine(f,m)?e.report({node:c,loc:f.loc,messageId:"operatorAtEnd",data:{operator:h},fix:v}):y==="none"&&e.report({node:c,loc:f.loc,messageId:"noLinebreak",data:{operator:h},fix:v}))}function u(c){o(c,c.right,c.operator)}return{BinaryExpression:u,LogicalExpression:u,AssignmentExpression:u,VariableDeclarator(c){c.init&&o(c,c.init,"=")},PropertyDefinition(c){c.value&&o(c,c.value,"=")},ConditionalExpression(c){o(c,c.consequent,"?"),o(c,c.alternate,":")}}}},Rv}var Fv,wR;function $Z(){if(wR)return Fv;wR=1;let r=Pe();return Fv={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Require or disallow padding within blocks",recommended:!1,url:"https://eslint.org/docs/latest/rules/padded-blocks"},fixable:"whitespace",schema:[{oneOf:[{enum:["always","never"]},{type:"object",properties:{blocks:{enum:["always","never"]},switches:{enum:["always","never"]},classes:{enum:["always","never"]}},additionalProperties:!1,minProperties:1}]},{type:"object",properties:{allowSingleLineBlocks:{type:"boolean"}},additionalProperties:!1}],messages:{alwaysPadBlock:"Block must be padded by blank lines.",neverPadBlock:"Block must not be padded by blank lines."}},create(e){let t={},s=e.options[0]||"always",n=e.options[1]||{};if(typeof s=="string"){let d=s==="always";t.blocks=d,t.switches=d,t.classes=d}else Object.hasOwn(s,"blocks")&&(t.blocks=s.blocks==="always"),Object.hasOwn(s,"switches")&&(t.switches=s.switches==="always"),Object.hasOwn(s,"classes")&&(t.classes=s.classes==="always");Object.hasOwn(n,"allowSingleLineBlocks")&&(t.allowSingleLineBlocks=n.allowSingleLineBlocks===!0);let i=e.sourceCode;function a(d){return d.type==="SwitchStatement"?i.getTokenBefore(d.cases[0]):d.type==="StaticBlock"?i.getFirstToken(d,{skip:1}):i.getFirstToken(d)}function l(d){return d.type==="Line"||d.type==="Block"}function o(d,m){return m.loc.start.line-d.loc.end.line>=2}function u(d){let m,g=d;do m=g,g=i.getTokenAfter(g,{includeComments:!0});while(l(g)&&g.loc.start.line===m.loc.end.line);return g}function c(d){let m=d,g;do g=m,m=i.getTokenBefore(m,{includeComments:!0});while(l(m)&&m.loc.end.line===g.loc.start.line);return m}function p(d){switch(d.type){case"BlockStatement":case"StaticBlock":return t.blocks;case"SwitchStatement":return t.switches;case"ClassBody":return t.classes;default:throw new Error("unreachable")}}function h(d){let m=a(d),g=u(m),y=i.getTokenBefore(g,{includeComments:!0}),v=i.getLastToken(d),x=c(v),S=i.getTokenAfter(x,{includeComments:!0}),w=o(y,g),O=o(x,S);t.allowSingleLineBlocks&&r.isTokenOnSameLine(y,S)||(p(d)?(w||e.report({node:d,loc:{start:y.loc.start,end:g.loc.start},fix(C){return C.insertTextAfter(y,` +`)},messageId:"alwaysPadBlock"}),O||e.report({node:d,loc:{end:S.loc.start,start:x.loc.end},fix(C){return C.insertTextBefore(S,` +`)},messageId:"alwaysPadBlock"})):(w&&e.report({node:d,loc:{start:y.loc.start,end:g.loc.start},fix(C){return C.replaceTextRange([y.range[1],g.range[0]-g.loc.start.column],` +`)},messageId:"neverPadBlock"}),O&&e.report({node:d,loc:{end:S.loc.start,start:x.loc.end},messageId:"neverPadBlock",fix(C){return C.replaceTextRange([x.range[1],S.range[0]-S.loc.start.column],` +`)}})))}let f={};return Object.hasOwn(t,"switches")&&(f.SwitchStatement=function(d){d.cases.length!==0&&h(d)}),Object.hasOwn(t,"blocks")&&(f.BlockStatement=function(d){d.body.length!==0&&h(d)},f.StaticBlock=f.BlockStatement),Object.hasOwn(t,"classes")&&(f.ClassBody=function(d){d.body.length!==0&&h(d)}),f}},Fv}var Bv,CR;function MZ(){if(CR)return Bv;CR=1;let r=Pe(),e=`[${Array.from(r.LINEBREAKS).join("")}]`,t=new RegExp(String.raw`^(\s*?${e})\s*${e}(\s*;?)$`,"u"),s=/^(?:module\s*\.\s*)?exports(?:\s*\.|\s*\[|$)/u,n=/^require\(/u;function i(v){return{test:(x,S)=>S.getFirstToken(x).value===v}}function a(v){return{test:(x,S)=>x.loc.start.line===x.loc.end.line&&S.getFirstToken(x).value===v}}function l(v){return{test:(x,S)=>x.loc.start.line!==x.loc.end.line&&S.getFirstToken(x).value===v}}function o(v){return{test:x=>x.type===v}}function u(v){if(v.type==="ExpressionStatement"){let x=r.skipChainExpression(v.expression);return x.type==="UnaryExpression"&&(x=r.skipChainExpression(x.argument)),x.type==="CallExpression"&&r.isFunction(x.callee)}return!1}function c(v,x){if(x.type==="DoWhileStatement"&&x.body.type==="BlockStatement"||u(x))return!0;let S=v.getLastToken(x,r.isNotSemicolonToken),w=S&&r.isClosingBraceToken(S)?v.getNodeByRangeIndex(S.range[0]):null;return!!w&&(w.type==="BlockStatement"||w.type==="SwitchStatement")}function p(v,x){let S=v.getLastToken(x),w=v.getTokenBefore(S),O=v.getTokenAfter(S);return!!(w&&O&&w.range[0]>=x.range[0]&&r.isSemicolonToken(S)&&S.loc.start.line!==w.loc.end.line&&S.loc.end.line===O.loc.start.line)?w:S}function h(v,x,S){return x+S}function f(){}function d(v,x,S,w){w.length!==0&&v.report({node:S,messageId:"unexpectedBlankLine",fix(O){if(w.length>=2)return null;let C=w[0][0],E=w[0][1],k=C.range[1],A=E.range[0],D=v.sourceCode.text.slice(k,A).replace(t,h);return O.replaceTextRange([k,A],D)}})}function m(v,x,S,w){w.length>0||v.report({node:S,messageId:"expectedBlankLine",fix(O){let C=v.sourceCode,E=p(C,x),k=C.getFirstTokenBetween(E,S,{includeComments:!0,filter(D){return r.isTokenOnSameLine(E,D)?(E=D,!1):!0}})||S,A=r.isTokenOnSameLine(E,k)?` `:` -`;return O.insertTextAfter(E,A)}})}let g={any:{verify:f},never:{verify:d},always:{verify:m}},y={"*":{test:()=>!0},"block-like":{test:(b,v)=>c(v,b)},"cjs-export":{test:(b,v)=>b.type==="ExpressionStatement"&&b.expression.type==="AssignmentExpression"&&s.test(v.getText(b.expression.left))},"cjs-import":{test:(b,v)=>b.type==="VariableDeclaration"&&b.declarations.length>0&&!!b.declarations[0].init&&n.test(v.getText(b.declarations[0].init))},directive:{test:r.isDirective},expression:{test:b=>b.type==="ExpressionStatement"&&!r.isDirective(b)},iife:{test:u},"multiline-block-like":{test:(b,v)=>b.loc.start.line!==b.loc.end.line&&c(v,b)},"multiline-expression":{test:b=>b.loc.start.line!==b.loc.end.line&&b.type==="ExpressionStatement"&&!r.isDirective(b)},"multiline-const":l("const"),"multiline-let":l("let"),"multiline-var":l("var"),"singleline-const":a("const"),"singleline-let":a("let"),"singleline-var":a("var"),block:o("BlockStatement"),empty:o("EmptyStatement"),function:o("FunctionDeclaration"),break:i("break"),case:i("case"),class:i("class"),const:i("const"),continue:i("continue"),debugger:i("debugger"),default:i("default"),do:i("do"),export:i("export"),for:i("for"),if:i("if"),import:i("import"),let:i("let"),return:i("return"),switch:i("switch"),throw:i("throw"),try:i("try"),var:i("var"),while:i("while"),with:i("with")};return Nb={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Require or disallow padding lines between statements",recommended:!1,url:"https://eslint.org/docs/latest/rules/padding-line-between-statements"},fixable:"whitespace",schema:{definitions:{paddingType:{enum:Object.keys(g)},statementType:{anyOf:[{enum:Object.keys(y)},{type:"array",items:{enum:Object.keys(y)},minItems:1,uniqueItems:!0}]}},type:"array",items:{type:"object",properties:{blankLine:{$ref:"#/definitions/paddingType"},prev:{$ref:"#/definitions/statementType"},next:{$ref:"#/definitions/statementType"}},additionalProperties:!1,required:["blankLine","prev","next"]}},messages:{unexpectedBlankLine:"Unexpected blank line before this statement.",expectedBlankLine:"Expected blank line before this statement."}},create(b){let v=b.sourceCode,S=b.options||[],C=null;function O(){C={upper:C,prevNode:null}}function w(){C=C.upper}function E(B,T){let F=B;for(;F.type==="LabeledStatement";)F=F.body;return Array.isArray(T)?T.some(E.bind(null,F)):y[T].test(F,v)}function k(B,T){for(let F=S.length-1;F>=0;--F){let j=S[F];if(E(B,j.prev)&&E(T,j.next))return g[j.blankLine]}return g.any}function A(B,T){let F=[],j=p(v,B);if(T.loc.start.line-j.loc.end.line>=2)do{let Q=v.getTokenAfter(j,{includeComments:!0});Q.loc.start.line-j.loc.end.line>=2&&F.push([j,Q]),j=Q}while(j.range[0]l.type==="Identifier")&&a.length!==new Set(a.map(l=>l.name)).size}return Lb={meta:{type:"suggestion",docs:{description:"Require using arrow functions for callbacks",recommended:!1,url:"https://eslint.org/docs/latest/rules/prefer-arrow-callback"},schema:[{type:"object",properties:{allowNamedFunctions:{type:"boolean",default:!1},allowUnboundThis:{type:"boolean",default:!0}},additionalProperties:!1}],fixable:"code",messages:{preferArrowCallback:"Unexpected function expression."}},create(a){let l=a.options[0]||{},o=l.allowUnboundThis!==!1,u=l.allowNamedFunctions,c=a.sourceCode,p=[];function h(){p.push({this:!1,super:!1,meta:!1})}function f(){return p.pop()}return{Program(){p=[]},ThisExpression(){let d=p.at(-1);d&&(d.this=!0)},Super(){let d=p.at(-1);d&&(d.super=!0)},MetaProperty(d){let m=p.at(-1);m&&t(d,"new","target")&&(m.meta=!0)},FunctionDeclaration:h,"FunctionDeclaration:exit":f,FunctionExpression:h,"FunctionExpression:exit"(d){let m=f();if(u&&d.id&&d.id.name||d.generator)return;let g=c.getDeclaredVariables(d)[0];if(e(g)&&g.references.length>0)return;let y=s(c.getScope(d));if(y&&y.references.length>0)return;let b=n(d);b.isCallback&&(!o||!m.this||b.isLexicalThis)&&!m.super&&!m.meta&&a.report({node:d,messageId:"preferArrowCallback",*fix(v){if(!b.isLexicalThis&&m.this||i(d.params))return;if(b.isLexicalThis){let E=d.parent;if(E.type!=="MemberExpression")return;let k=E.parent,A=c.getTokenAfter(E.object,r.isNotClosingParenToken),D=c.getLastToken(k);if(r.isParenthesised(c,E)||c.commentsExistBetween(A,D))return;yield v.removeRange([A.range[0],D.range[1]])}let S=c.getFirstToken(d,d.async?1:0),C=c.getTokenAfter(S,r.isOpeningParenToken),O=c.getTokenBefore(d.body);c.commentsExistBetween(S,C)?(yield v.remove(S),d.id&&(yield v.remove(d.id))):yield v.removeRange([S.range[0],C.range[0]]),yield v.insertTextAfter(O," =>");let w=b.isLexicalThis?d.parent.parent:d;w.type==="ChainExpression"&&(w=w.parent),w.parent.type!=="CallExpression"&&w.parent.type!=="ConditionalExpression"&&!r.isParenthesised(c,w)&&!r.isParenthesised(c,d)&&(yield v.insertTextBefore(w,"("),yield v.insertTextAfter(w,")"))}})}}}},Lb}var $b,TF;function qz(){if(TF)return $b;TF=1;let r=zo(),e=Pe(),t=/^(?:.+?Pattern|RestElement|SpreadProperty|ExperimentalRestProperty|Property)$/u,s=/^(?:Program|BlockStatement|StaticBlock|SwitchCase)$/u,n=/^(?:VariableDeclarator|AssignmentExpression)$/u;function i(f){return f.parent.type==="ForStatement"&&f.parent.init===f}function a(f){let d=f.parent;for(;t.test(d.type);)d=d.parent;return d.type==="VariableDeclarator"||d.type==="AssignmentExpression"&&d.parent.type==="ExpressionStatement"&&s.test(d.parent.parent.type)}function l(f,d){if(d.through.some(g=>g.resolved&&g.resolved.name===f))return!0;let m=e.getVariableByName(d,f);return m!==null?m.defs.some(g=>g.type==="Parameter"):!1}function o(f){if(!f.isWrite())return null;let d=f.identifier.parent;for(;t.test(d.type);)d=d.parent;return n.test(d.type)?d:null}function u(f){switch(f.type){case"ObjectPattern":return f.properties.some(d=>d?u(d.argument||d.value):!1);case"ArrayPattern":return f.elements.some(d=>d?u(d):!1);case"AssignmentPattern":return u(f.left);case"MemberExpression":return!0}return!1}function c(f,d){if(f.eslintUsed&&f.scope.type==="global")return null;let m=null,g=!1,y=f.references;for(let v=0;vD.value).map(D=>D.value.name).some(D=>l(D,f.scope)),k=u(w)):w.type==="ArrayPattern"&&(E=w.elements.map(D=>D&&D.name).some(D=>l(D,f.scope)),k=u(w)),E||k)return null}m=S}else if(S.isRead()&&m===null){if(d)return null;g=!0}}return m!==null&&m.from===f.scope&&a(m.identifier)?g?f.defs[0].name:m.identifier:null}function p(f,d){let m=new Map;for(let g=0;g_.type.endsWith("Statement")),A=k===null;if(!A&&k.declarations.length>0){let _=k.declarations[0];if(_.init){let B=_.init.parent;B.type==="VariableDeclarator"&&(B.id.name!==C&&(C=B.id.name,v=0),B.id.type==="ObjectPattern"&&B.init.name!==C&&(C=B.init.name,v=0),B.id!==S&&(S=B.id,v=0))}}let D=k&&(k.parent.type==="ForInStatement"||k.parent.type==="ForOfStatement"||k.declarations.every(_=>_.init))&&E.length===w.length;if(!A&&k.declarations&&k.declarations.length!==1&&k&&k.declarations&&k.declarations.length>=1){v+=E.length;let _=0;k.declarations.forEach(B=>{B.id.type==="ObjectPattern"?_+=B.id.properties.length:B.id.type==="ArrayPattern"?_+=B.id.elements.length:_+=1}),D=D&&v===_}E.forEach(_=>{f.report({node:_,messageId:"useConst",data:_,fix:D?B=>{let T=m.getFirstToken(k,F=>F.value===k.kind);return new r(B,m).retainRange(k.range).replaceTextRange(T.range,"const")}:null})})}}return{"Program:exit"(){p(b,y).forEach(O)},VariableDeclaration(w){w.kind==="let"&&!i(w)&&b.push(...m.getDeclaredVariables(w))}}}},$b}var Mb,DF;function Qz(){if(DF)return Mb;DF=1;let r=Pe(),e=r.getPrecedence({type:"AssignmentExpression"});return Mb={meta:{type:"suggestion",docs:{description:"Require destructuring from arrays and/or objects",recommended:!1,url:"https://eslint.org/docs/latest/rules/prefer-destructuring"},fixable:"code",schema:[{oneOf:[{type:"object",properties:{VariableDeclarator:{type:"object",properties:{array:{type:"boolean"},object:{type:"boolean"}},additionalProperties:!1},AssignmentExpression:{type:"object",properties:{array:{type:"boolean"},object:{type:"boolean"}},additionalProperties:!1}},additionalProperties:!1},{type:"object",properties:{array:{type:"boolean"},object:{type:"boolean"}},additionalProperties:!1}]},{type:"object",properties:{enforceForRenamedProperties:{type:"boolean"}},additionalProperties:!1}],messages:{preferDestructuring:"Use {{type}} destructuring."}},create(t){let s=t.options[0],n=t.options[1]&&t.options[1].enforceForRenamedProperties,i={VariableDeclarator:{array:!0,object:!0},AssignmentExpression:{array:!0,object:!0}};s&&(i=typeof s.array<"u"||typeof s.object<"u"?{VariableDeclarator:s,AssignmentExpression:s}:s);function a(d,m){return i&&i[d]&&i[d][m]}function l(d){return Number.isInteger(d.property.value)}function o(d,m,g){t.report({node:d,messageId:"preferDestructuring",data:{type:m},fix:g})}function u(d){return d.type==="VariableDeclarator"&&d.id.type==="Identifier"&&d.init.type==="MemberExpression"&&!d.init.computed&&d.init.property.type==="Identifier"&&d.id.name===d.init.property.name}function c(d,m){let g=m.init,y=t.sourceCode;if(y.getCommentsInside(m).length>y.getCommentsInside(g.object).length)return null;let b=y.getText(g.object);return r.getPrecedence(g.object)c(b,g):null;if(a(g.type,"object")&&n){o(g,"object",y);return}if(a(g.type,"object")){let b=m.property;(b.type==="Literal"&&d.name===b.value||b.type==="Identifier"&&d.name===b.name&&!m.computed)&&o(g,"object",y)}}function h(d){d.init&&d.init.type==="MemberExpression"&&p(d.id,d.init,d)}function f(d){d.operator==="="&&p(d.left,d.right,d)}return{VariableDeclarator:h,AssignmentExpression:f}}},Mb}var jb,_F;function Uz(){if(_F)return jb;_F=1;let r=Pe(),{CALL:e,ReferenceTracker:t}=hr(),s=r.getPrecedence({type:"BinaryExpression",operator:"**"});function n(o){return r.getPrecedence(o)<=s||o.type==="AwaitExpression"||o.type==="UnaryExpression"}function i(o){return r.getPrecedence(o)=s)&&!(c.type==="BinaryExpression"&&c.operator==="**"&&c.right===o)&&!((c.type==="CallExpression"||c.type==="NewExpression")&&c.arguments.includes(o))&&!(c.type==="MemberExpression"&&c.computed&&c.property===o)&&c.type!=="ArrayExpression")&&!r.isParenthesised(u,o)}function l(o,u){return u?`(${o})`:o}return jb={meta:{type:"suggestion",docs:{description:"Disallow the use of `Math.pow` in favor of the `**` operator",recommended:!1,url:"https://eslint.org/docs/latest/rules/prefer-exponentiation-operator"},schema:[],fixable:"code",messages:{useExponentiation:"Use the '**' operator instead of 'Math.pow'."}},create(o){let u=o.sourceCode;function c(p){o.report({node:p,messageId:"useExponentiation",fix(h){if(p.arguments.length!==2||p.arguments.some(k=>k.type==="SpreadElement")||u.getCommentsInside(p).length>0)return null;let f=p.arguments[0],d=p.arguments[1],m=u.getText(f),g=u.getText(d),y=n(f),b=i(d),v=a(p,u),S="",C="";if(!v){if(!y){let k=u.getFirstToken(f),A=u.getTokenBefore(p);A&&A.range[1]===p.range[0]&&!r.canTokensBeAdjacent(A,k)&&(S=" ")}if(!b){let k=u.getLastToken(d),A=u.getTokenAfter(p);A&&p.range[1]===A.range[0]&&!r.canTokensBeAdjacent(k,A)&&(C=" ")}}let O=l(m,y),w=l(g,b),E=l(`${O}**${w}`,v);return h.replaceText(p,`${S}${E}${C}`)}})}return{Program(p){let h=u.getScope(p),f=new t(h),d={Math:{pow:{[e]:!0}}};for(let{node:m}of f.iterateGlobalReferences(d))c(m)}}}},jb}var qb,IF;function Vz(){if(IF)return qb;IF=1;let{CALL:r,CONSTRUCT:e,ReferenceTracker:t,getStringIfConstant:s}=hr(),n=Xn(),i=new n.RegExpParser;function a(l,o,u,c){switch(c.type){case"Literal":if(typeof c.value=="string"&&u.includes("\\"))return null;break;case"TemplateLiteral":if(c.expressions.length||u.slice(1,-1)!==o)return null;break;default:return null}let p=c.range[0]+l+2;return[{fix(h){let d=(o.match(/temp\d+/gu)||[]).reduce((m,g)=>Math.max(m,Number(g.slice(4))),0);return h.insertTextBeforeRange([p,p],`?`)},messageId:"addGroupName"},{fix(h){return h.insertTextBeforeRange([p,p],"?:")},messageId:"addNonCapture"}]}return qb={meta:{type:"suggestion",docs:{description:"Enforce using named capture group in regular expression",recommended:!1,url:"https://eslint.org/docs/latest/rules/prefer-named-capture-group"},hasSuggestions:!0,schema:[],messages:{addGroupName:"Add name to capture group.",addNonCapture:"Convert group to non-capturing.",required:"Capture group '{{group}}' should be converted to a named or non-capturing group."}},create(l){let o=l.sourceCode;function u(c,p,h,f){let d;try{d=i.parsePattern(c,0,c.length,{unicode:!!(f&&f.includes("u")),unicodeSets:!!(f&&f.includes("v"))})}catch{return}n.visitRegExpAST(d,{onCapturingGroupEnter(m){if(!m.name){let g=o.getText(h),y=a(m.start,c,g,h);l.report({node:p,messageId:"required",data:{group:m.raw},suggest:y})}}})}return{Literal(c){c.regex&&u(c.regex.pattern,c,c,c.regex.flags)},Program(c){let p=o.getScope(c),h=new t(p),f={RegExp:{[r]:!0,[e]:!0}};for(let{node:d}of h.iterateGlobalReferences(f)){let m=s(d.arguments[0]),g=s(d.arguments[1]);m&&u(m,d,d.arguments[0],g)}}}}},qb}var Qb,FF;function Wz(){if(FF)return Qb;FF=1;let r=Pe(),e=new Map([[2,{system:"binary",literalPrefix:"0b"}],[8,{system:"octal",literalPrefix:"0o"}],[16,{system:"hexadecimal",literalPrefix:"0x"}]]);function t(s){return r.isSpecificId(s,"parseInt")||r.isSpecificMemberAccess(s,"Number","parseInt")}return Qb={meta:{type:"suggestion",docs:{description:"Disallow `parseInt()` and `Number.parseInt()` in favor of binary, octal, and hexadecimal literals",recommended:!1,url:"https://eslint.org/docs/latest/rules/prefer-numeric-literals"},schema:[],messages:{useLiteral:"Use {{system}} literals instead of {{functionName}}()."},fixable:"code"},create(s){let n=s.sourceCode;return{"CallExpression[arguments.length=2]"(i){let[a,l]=i.arguments,o=r.getStaticStringValue(a),u=l.value;if(o!==null&&r.isStringLiteral(a)&&l.type==="Literal"&&typeof u=="number"&&e.has(u)&&t(i.callee)){let{system:c,literalPrefix:p}=e.get(u);s.report({node:i,messageId:"useLiteral",data:{system:c,functionName:n.getText(i.callee)},fix(h){if(n.getCommentsInside(i).length)return null;let f=`${p}${o}`;if(+f!==parseInt(o,u))return null;let d=n.getTokenBefore(i),m=n.getTokenAfter(i),g="",y="";return d&&d.range[1]===i.range[0]&&!r.canTokensBeAdjacent(d,f)&&(g=" "),m&&i.range[1]===m.range[0]&&!r.canTokensBeAdjacent(f,m)&&(y=" "),h.replaceText(i,`${g}${f}${y}`)}})}}}}},Qb}var Ub,RF;function Zz(){if(RF)return Ub;RF=1;let r=Pe();function e(t){if(t.object.type==="ObjectExpression"&&t.object.properties.length===0)return!0;let s=t.object.type==="MemberExpression"&&r.getStaticPropertyName(t.object)==="prototype"?t.object.object:t.object;return s.type==="Identifier"&&s.name==="Object"}return Ub={meta:{type:"suggestion",docs:{description:"Disallow use of `Object.prototype.hasOwnProperty.call()` and prefer use of `Object.hasOwn()`",recommended:!1,url:"https://eslint.org/docs/latest/rules/prefer-object-has-own"},schema:[],messages:{useHasOwn:"Use 'Object.hasOwn()' instead of 'Object.prototype.hasOwnProperty.call()'."},fixable:"code"},create(t){let s=t.sourceCode;return{CallExpression(n){if(!(n.callee.type==="MemberExpression"&&n.callee.object.type==="MemberExpression"))return;let i=r.getStaticPropertyName(n.callee),a=r.getStaticPropertyName(n.callee.object),l=e(n.callee.object),o=s.getScope(n),u=r.getVariableByName(o,"Object");i==="call"&&a==="hasOwnProperty"&&l&&u&&u.scope.type==="global"&&t.report({node:n,messageId:"useHasOwn",fix(c){if(s.getCommentsInside(n.callee).length>0)return null;let p=s.getTokenBefore(n.callee,{includeComments:!0});return p&&p.range[1]===n.callee.range[0]&&!r.canTokensBeAdjacent(p,"Object.hasOwn")?c.replaceText(n.callee," Object.hasOwn"):c.replaceText(n.callee,"Object.hasOwn")}})}}}},Ub}var Vb,BF;function zz(){if(BF)return Vb;BF=1;let{CALL:r,ReferenceTracker:e}=hr(),{isCommaToken:t,isOpeningParenToken:s,isClosingParenToken:n,isParenthesised:i}=Pe(),a=/\s/u;function l(y){return y.arguments.some(b=>b.type==="SpreadElement")}function o(y){return y.type==="Property"&&(y.kind==="get"||y.kind==="set")}function u(y){return y.properties.some(o)}function c(y){return y.arguments.filter(b=>b.type==="ObjectExpression").some(u)}function p(y,b){let v=y.parent;switch(v.type){case"VariableDeclarator":case"ArrayExpression":case"ReturnStatement":case"CallExpression":case"Property":return!1;case"AssignmentExpression":return v.left===y&&!i(b,y);default:return!i(b,y)}}function h(y,b){switch(y.type){case"AssignmentExpression":case"ArrowFunctionExpression":case"ConditionalExpression":return!i(b,y);default:return!1}}function f(y,b,v){let S=[v.getFirstToken(y),v.getLastToken(y)],C=v.getTokenBefore(y),O=v.getTokenAfter(y);for(;C&&O&&C.range[0]>b.range[0]&&s(C)&&n(O);)S.push(C,O),C=v.getTokenBefore(C),O=v.getTokenAfter(O);return S.sort((w,E)=>w.range[0]-E.range[0])}function d(y,b){let v=b.text,S=y.range[0];{let C=b.getTokenBefore(y,{includeComments:!0});if(C&&C.type==="Line")return S}for(;a.test(v[S-1]||"");)S-=1;return S}function m(y,b){let v=b.text,S=y.range[1];for(;a.test(v[S]||"");)S+=1;return S}function g(y,b){return function*(v){let S=b.getTokenAfter(y.callee,s),C=b.getLastToken(y);yield v.removeRange([y.range[0],S.range[0]]),p(y,b)?(yield v.replaceText(S,"({"),yield v.replaceText(C,"})")):(yield v.replaceText(S,"{"),yield v.replaceText(C,"}"));for(let O of y.arguments){let w=f(O,S,b),E=w.shift(),k=w.pop();if(O.type==="ObjectExpression"){let A=b.getLastToken(O,1),D=b.getTokenAfter(k);for(let T of w)yield v.remove(T);let _=[E.range[0],m(E,b)],B=[Math.max(d(k,b),_[1]),k.range[1]];yield v.removeRange(_),yield v.removeRange(B),(O.properties.length===0||t(A))&&t(D)&&(yield v.remove(D))}else h(O,b)?(yield v.insertTextBefore(E,"...("),yield v.insertTextAfter(k,")")):yield v.insertTextBefore(E,"...")}}}return Vb={meta:{type:"suggestion",docs:{description:"Disallow using Object.assign with an object literal as the first argument and prefer the use of object spread instead",recommended:!1,url:"https://eslint.org/docs/latest/rules/prefer-object-spread"},schema:[],fixable:"code",messages:{useSpreadMessage:"Use an object spread instead of `Object.assign` eg: `{ ...foo }`.",useLiteralMessage:"Use an object literal instead of `Object.assign`. eg: `{ foo: bar }`."}},create(y){let b=y.sourceCode;return{Program(v){let S=b.getScope(v),C=new e(S),O={Object:{assign:{[r]:!0}}};for(let{node:w}of C.iterateGlobalReferences(O))if(w.arguments.length>=1&&w.arguments[0].type==="ObjectExpression"&&!l(w)&&!(w.arguments.length>1&&c(w))){let E=w.arguments.length===1?"useLiteralMessage":"useSpreadMessage",k=g(w,b);y.report({node:w,messageId:E,fix:k})}}}}},Vb}var Wb,NF;function Xz(){if(NF)return Wb;NF=1;let r=Pe();return Wb={meta:{type:"suggestion",docs:{description:"Require using Error objects as Promise rejection reasons",recommended:!1,url:"https://eslint.org/docs/latest/rules/prefer-promise-reject-errors"},fixable:null,schema:[{type:"object",properties:{allowEmptyReject:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{rejectAnError:"Expected the Promise rejection reason to be an Error."}},create(e){let t=e.options.length&&e.options[0].allowEmptyReject,s=e.sourceCode;function n(a){!a.arguments.length&&t||(!a.arguments.length||!r.couldBeError(a.arguments[0])||a.arguments[0].type==="Identifier"&&a.arguments[0].name==="undefined")&&e.report({node:a,messageId:"rejectAnError"})}function i(a){return r.isSpecificMemberAccess(a.callee,"Promise","reject")}return{CallExpression(a){i(a)&&n(a)},"NewExpression:exit"(a){a.callee.type==="Identifier"&&a.callee.name==="Promise"&&a.arguments.length&&r.isFunction(a.arguments[0])&&a.arguments[0].params.length>1&&a.arguments[0].params[1].type==="Identifier"&&s.getDeclaredVariables(a.arguments[0]).find(l=>l.name===a.arguments[0].params[1].name).references.filter(l=>l.isRead()).filter(l=>l.identifier.parent.type==="CallExpression"&&l.identifier===l.identifier.parent.callee).forEach(l=>n(l.identifier.parent))}}}},Wb}var Zb,LF;function Gz(){return LF||(LF=1,Zb={meta:{type:"suggestion",docs:{description:"Require `Reflect` methods where applicable",recommended:!1,url:"https://eslint.org/docs/latest/rules/prefer-reflect"},deprecated:!0,replacedBy:[],schema:[{type:"object",properties:{exceptions:{type:"array",items:{enum:["apply","call","delete","defineProperty","getOwnPropertyDescriptor","getPrototypeOf","setPrototypeOf","isExtensible","getOwnPropertyNames","preventExtensions"]},uniqueItems:!0}},additionalProperties:!1}],messages:{preferReflect:"Avoid using {{existing}}, instead use {{substitute}}."}},create(r){let e={apply:"Function.prototype.apply",call:"Function.prototype.call",defineProperty:"Object.defineProperty",getOwnPropertyDescriptor:"Object.getOwnPropertyDescriptor",getPrototypeOf:"Object.getPrototypeOf",setPrototypeOf:"Object.setPrototypeOf",isExtensible:"Object.isExtensible",getOwnPropertyNames:"Object.getOwnPropertyNames",preventExtensions:"Object.preventExtensions"},t={apply:"Reflect.apply",call:"Reflect.apply",defineProperty:"Reflect.defineProperty",getOwnPropertyDescriptor:"Reflect.getOwnPropertyDescriptor",getPrototypeOf:"Reflect.getPrototypeOf",setPrototypeOf:"Reflect.setPrototypeOf",isExtensible:"Reflect.isExtensible",getOwnPropertyNames:"Reflect.getOwnPropertyNames",preventExtensions:"Reflect.preventExtensions"},s=(r.options[0]||{}).exceptions||[];function n(i,a,l){r.report({node:i,messageId:"preferReflect",data:{existing:a,substitute:l}})}return{CallExpression(i){let a=(i.callee.property||{}).name,l=(i.callee.object||{}).name==="Reflect",o=Object.hasOwn(t,a),u=s.includes(a);o&&!l&&!u&&n(i,e[a],t[a])},UnaryExpression(i){let a=i.operator==="delete",l=i.argument.type==="Identifier",o=s.includes("delete");a&&!l&&!o&&n(i,"the delete keyword","Reflect.deleteProperty")}}}}),Zb}var zb,$F;function Yz(){if($F)return zb;$F=1;let r=Pe(),{CALL:e,CONSTRUCT:t,ReferenceTracker:s,findVariable:n}=hr(),{RegExpValidator:i,visitRegExpAST:a,RegExpParser:l}=Xn(),{canTokensBeAdjacent:o}=Pe(),{REGEXPP_LATEST_ECMA_VERSION:u}=LO();function c(f){return f.type==="Literal"&&typeof f.value=="string"}function p(f){return f.type==="Literal"&&Object.hasOwn(f,"regex")}let h=new Set(["(",";","[",",","=","+","*","-","?","~","%","**","!","typeof","instanceof","&&","||","??","return","...","delete","void","in","<",">","<=",">=","==","===","!=","!==","<<",">>",">>>","&","|","^",":","{","=>","*=","<<=",">>=",">>>=","^=","|=","&=","??=","||=","&&=","**=","+=","-=","/=","%=","/","do","break","continue","debugger","case","throw"]);return zb={meta:{type:"suggestion",docs:{description:"Disallow use of the `RegExp` constructor in favor of regular expression literals",recommended:!1,url:"https://eslint.org/docs/latest/rules/prefer-regex-literals"},hasSuggestions:!0,schema:[{type:"object",properties:{disallowRedundantWrapping:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{unexpectedRegExp:"Use a regular expression literal instead of the 'RegExp' constructor.",replaceWithLiteral:"Replace with an equivalent regular expression literal.",replaceWithLiteralAndFlags:"Replace with an equivalent regular expression literal with flags '{{ flags }}'.",replaceWithIntendedLiteralAndFlags:"Replace with a regular expression literal with flags '{{ flags }}'.",unexpectedRedundantRegExp:"Regular expression literal is unnecessarily wrapped within a 'RegExp' constructor.",unexpectedRedundantRegExpWithFlags:"Use regular expression literal with flags instead of the 'RegExp' constructor."}},create(f){let[{disallowRedundantWrapping:d=!1}={}]=f.options,m=f.sourceCode;function g(T){let F=m.getScope(T),j=n(F,T);return j!==null&&j.scope.type==="global"&&j.defs.length===0}function y(T){return T.type==="TaggedTemplateExpression"&&r.isSpecificMemberAccess(T.tag,"String","raw")&&g(r.skipChainExpression(T.tag).object)&&r.isStaticTemplateLiteral(T.quasi)}function b(T){return c(T)?T.value:r.isStaticTemplateLiteral(T)?T.quasis[0].value.cooked:y(T)?T.quasi.quasis[0].value.raw:null}function v(T){return c(T)||r.isStaticTemplateLiteral(T)||y(T)}function S(T){let F=T.arguments;return!!((F.length===1||F.length===2)&&F.every(v))}function C(T){let F=T.arguments;return!!(F.length===1&&p(F[0])||F.length===2&&p(F[0])&&v(F[1]))}function O(T){return T<=5?5:Math.min(T,u)}let w=O(f.languageOptions.ecmaVersion);function E(T){switch(T){case` +`;return O.insertTextAfter(E,A)}})}let g={any:{verify:f},never:{verify:d},always:{verify:m}},y={"*":{test:()=>!0},"block-like":{test:(v,x)=>c(x,v)},"cjs-export":{test:(v,x)=>v.type==="ExpressionStatement"&&v.expression.type==="AssignmentExpression"&&s.test(x.getText(v.expression.left))},"cjs-import":{test:(v,x)=>v.type==="VariableDeclaration"&&v.declarations.length>0&&!!v.declarations[0].init&&n.test(x.getText(v.declarations[0].init))},directive:{test:r.isDirective},expression:{test:v=>v.type==="ExpressionStatement"&&!r.isDirective(v)},iife:{test:u},"multiline-block-like":{test:(v,x)=>v.loc.start.line!==v.loc.end.line&&c(x,v)},"multiline-expression":{test:v=>v.loc.start.line!==v.loc.end.line&&v.type==="ExpressionStatement"&&!r.isDirective(v)},"multiline-const":l("const"),"multiline-let":l("let"),"multiline-var":l("var"),"singleline-const":a("const"),"singleline-let":a("let"),"singleline-var":a("var"),block:o("BlockStatement"),empty:o("EmptyStatement"),function:o("FunctionDeclaration"),break:i("break"),case:i("case"),class:i("class"),const:i("const"),continue:i("continue"),debugger:i("debugger"),default:i("default"),do:i("do"),export:i("export"),for:i("for"),if:i("if"),import:i("import"),let:i("let"),return:i("return"),switch:i("switch"),throw:i("throw"),try:i("try"),var:i("var"),while:i("while"),with:i("with")};return Bv={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Require or disallow padding lines between statements",recommended:!1,url:"https://eslint.org/docs/latest/rules/padding-line-between-statements"},fixable:"whitespace",schema:{definitions:{paddingType:{enum:Object.keys(g)},statementType:{anyOf:[{enum:Object.keys(y)},{type:"array",items:{enum:Object.keys(y)},minItems:1,uniqueItems:!0}]}},type:"array",items:{type:"object",properties:{blankLine:{$ref:"#/definitions/paddingType"},prev:{$ref:"#/definitions/statementType"},next:{$ref:"#/definitions/statementType"}},additionalProperties:!1,required:["blankLine","prev","next"]}},messages:{unexpectedBlankLine:"Unexpected blank line before this statement.",expectedBlankLine:"Expected blank line before this statement."}},create(v){let x=v.sourceCode,S=v.options||[],w=null;function O(){w={upper:w,prevNode:null}}function C(){w=w.upper}function E(B,T){let R=B;for(;R.type==="LabeledStatement";)R=R.body;return Array.isArray(T)?T.some(E.bind(null,R)):y[T].test(R,x)}function k(B,T){for(let R=S.length-1;R>=0;--R){let j=S[R];if(E(B,j.prev)&&E(T,j.next))return g[j.blankLine]}return g.any}function A(B,T){let R=[],j=p(x,B);if(T.loc.start.line-j.loc.end.line>=2)do{let Q=x.getTokenAfter(j,{includeComments:!0});Q.loc.start.line-j.loc.end.line>=2&&R.push([j,Q]),j=Q}while(j.range[0]l.type==="Identifier")&&a.length!==new Set(a.map(l=>l.name)).size}return Nv={meta:{type:"suggestion",docs:{description:"Require using arrow functions for callbacks",recommended:!1,url:"https://eslint.org/docs/latest/rules/prefer-arrow-callback"},schema:[{type:"object",properties:{allowNamedFunctions:{type:"boolean",default:!1},allowUnboundThis:{type:"boolean",default:!0}},additionalProperties:!1}],fixable:"code",messages:{preferArrowCallback:"Unexpected function expression."}},create(a){let l=a.options[0]||{},o=l.allowUnboundThis!==!1,u=l.allowNamedFunctions,c=a.sourceCode,p=[];function h(){p.push({this:!1,super:!1,meta:!1})}function f(){return p.pop()}return{Program(){p=[]},ThisExpression(){let d=p.at(-1);d&&(d.this=!0)},Super(){let d=p.at(-1);d&&(d.super=!0)},MetaProperty(d){let m=p.at(-1);m&&t(d,"new","target")&&(m.meta=!0)},FunctionDeclaration:h,"FunctionDeclaration:exit":f,FunctionExpression:h,"FunctionExpression:exit"(d){let m=f();if(u&&d.id&&d.id.name||d.generator)return;let g=c.getDeclaredVariables(d)[0];if(e(g)&&g.references.length>0)return;let y=s(c.getScope(d));if(y&&y.references.length>0)return;let v=n(d);v.isCallback&&(!o||!m.this||v.isLexicalThis)&&!m.super&&!m.meta&&a.report({node:d,messageId:"preferArrowCallback",*fix(x){if(!v.isLexicalThis&&m.this||i(d.params))return;if(v.isLexicalThis){let E=d.parent;if(E.type!=="MemberExpression")return;let k=E.parent,A=c.getTokenAfter(E.object,r.isNotClosingParenToken),D=c.getLastToken(k);if(r.isParenthesised(c,E)||c.commentsExistBetween(A,D))return;yield x.removeRange([A.range[0],D.range[1]])}let S=c.getFirstToken(d,d.async?1:0),w=c.getTokenAfter(S,r.isOpeningParenToken),O=c.getTokenBefore(d.body);c.commentsExistBetween(S,w)?(yield x.remove(S),d.id&&(yield x.remove(d.id))):yield x.removeRange([S.range[0],w.range[0]]),yield x.insertTextAfter(O," =>");let C=v.isLexicalThis?d.parent.parent:d;C.type==="ChainExpression"&&(C=C.parent),C.parent.type!=="CallExpression"&&C.parent.type!=="ConditionalExpression"&&!r.isParenthesised(c,C)&&!r.isParenthesised(c,d)&&(yield x.insertTextBefore(C,"("),yield x.insertTextAfter(C,")"))}})}}}},Nv}var Lv,AR;function qZ(){if(AR)return Lv;AR=1;let r=Zo(),e=Pe(),t=/^(?:.+?Pattern|RestElement|SpreadProperty|ExperimentalRestProperty|Property)$/u,s=/^(?:Program|BlockStatement|StaticBlock|SwitchCase)$/u,n=/^(?:VariableDeclarator|AssignmentExpression)$/u;function i(f){return f.parent.type==="ForStatement"&&f.parent.init===f}function a(f){let d=f.parent;for(;t.test(d.type);)d=d.parent;return d.type==="VariableDeclarator"||d.type==="AssignmentExpression"&&d.parent.type==="ExpressionStatement"&&s.test(d.parent.parent.type)}function l(f,d){if(d.through.some(g=>g.resolved&&g.resolved.name===f))return!0;let m=e.getVariableByName(d,f);return m!==null?m.defs.some(g=>g.type==="Parameter"):!1}function o(f){if(!f.isWrite())return null;let d=f.identifier.parent;for(;t.test(d.type);)d=d.parent;return n.test(d.type)?d:null}function u(f){switch(f.type){case"ObjectPattern":return f.properties.some(d=>d?u(d.argument||d.value):!1);case"ArrayPattern":return f.elements.some(d=>d?u(d):!1);case"AssignmentPattern":return u(f.left);case"MemberExpression":return!0}return!1}function c(f,d){if(f.eslintUsed&&f.scope.type==="global")return null;let m=null,g=!1,y=f.references;for(let x=0;xD.value).map(D=>D.value.name).some(D=>l(D,f.scope)),k=u(C)):C.type==="ArrayPattern"&&(E=C.elements.map(D=>D&&D.name).some(D=>l(D,f.scope)),k=u(C)),E||k)return null}m=S}else if(S.isRead()&&m===null){if(d)return null;g=!0}}return m!==null&&m.from===f.scope&&a(m.identifier)?g?f.defs[0].name:m.identifier:null}function p(f,d){let m=new Map;for(let g=0;g_.type.endsWith("Statement")),A=k===null;if(!A&&k.declarations.length>0){let _=k.declarations[0];if(_.init){let B=_.init.parent;B.type==="VariableDeclarator"&&(B.id.name!==w&&(w=B.id.name,x=0),B.id.type==="ObjectPattern"&&B.init.name!==w&&(w=B.init.name,x=0),B.id!==S&&(S=B.id,x=0))}}let D=k&&(k.parent.type==="ForInStatement"||k.parent.type==="ForOfStatement"||k.declarations.every(_=>_.init))&&E.length===C.length;if(!A&&k.declarations&&k.declarations.length!==1&&k&&k.declarations&&k.declarations.length>=1){x+=E.length;let _=0;k.declarations.forEach(B=>{B.id.type==="ObjectPattern"?_+=B.id.properties.length:B.id.type==="ArrayPattern"?_+=B.id.elements.length:_+=1}),D=D&&x===_}E.forEach(_=>{f.report({node:_,messageId:"useConst",data:_,fix:D?B=>{let T=m.getFirstToken(k,R=>R.value===k.kind);return new r(B,m).retainRange(k.range).replaceTextRange(T.range,"const")}:null})})}}return{"Program:exit"(){p(v,y).forEach(O)},VariableDeclaration(C){C.kind==="let"&&!i(C)&&v.push(...m.getDeclaredVariables(C))}}}},Lv}var $v,PR;function QZ(){if(PR)return $v;PR=1;let r=Pe(),e=r.getPrecedence({type:"AssignmentExpression"});return $v={meta:{type:"suggestion",docs:{description:"Require destructuring from arrays and/or objects",recommended:!1,url:"https://eslint.org/docs/latest/rules/prefer-destructuring"},fixable:"code",schema:[{oneOf:[{type:"object",properties:{VariableDeclarator:{type:"object",properties:{array:{type:"boolean"},object:{type:"boolean"}},additionalProperties:!1},AssignmentExpression:{type:"object",properties:{array:{type:"boolean"},object:{type:"boolean"}},additionalProperties:!1}},additionalProperties:!1},{type:"object",properties:{array:{type:"boolean"},object:{type:"boolean"}},additionalProperties:!1}]},{type:"object",properties:{enforceForRenamedProperties:{type:"boolean"}},additionalProperties:!1}],messages:{preferDestructuring:"Use {{type}} destructuring."}},create(t){let s=t.options[0],n=t.options[1]&&t.options[1].enforceForRenamedProperties,i={VariableDeclarator:{array:!0,object:!0},AssignmentExpression:{array:!0,object:!0}};s&&(i=typeof s.array<"u"||typeof s.object<"u"?{VariableDeclarator:s,AssignmentExpression:s}:s);function a(d,m){return i&&i[d]&&i[d][m]}function l(d){return Number.isInteger(d.property.value)}function o(d,m,g){t.report({node:d,messageId:"preferDestructuring",data:{type:m},fix:g})}function u(d){return d.type==="VariableDeclarator"&&d.id.type==="Identifier"&&d.init.type==="MemberExpression"&&!d.init.computed&&d.init.property.type==="Identifier"&&d.id.name===d.init.property.name}function c(d,m){let g=m.init,y=t.sourceCode;if(y.getCommentsInside(m).length>y.getCommentsInside(g.object).length)return null;let v=y.getText(g.object);return r.getPrecedence(g.object)c(v,g):null;if(a(g.type,"object")&&n){o(g,"object",y);return}if(a(g.type,"object")){let v=m.property;(v.type==="Literal"&&d.name===v.value||v.type==="Identifier"&&d.name===v.name&&!m.computed)&&o(g,"object",y)}}function h(d){d.init&&d.init.type==="MemberExpression"&&p(d.id,d.init,d)}function f(d){d.operator==="="&&p(d.left,d.right,d)}return{VariableDeclarator:h,AssignmentExpression:f}}},$v}var Mv,TR;function UZ(){if(TR)return Mv;TR=1;let r=Pe(),{CALL:e,ReferenceTracker:t}=hr(),s=r.getPrecedence({type:"BinaryExpression",operator:"**"});function n(o){return r.getPrecedence(o)<=s||o.type==="AwaitExpression"||o.type==="UnaryExpression"}function i(o){return r.getPrecedence(o)=s)&&!(c.type==="BinaryExpression"&&c.operator==="**"&&c.right===o)&&!((c.type==="CallExpression"||c.type==="NewExpression")&&c.arguments.includes(o))&&!(c.type==="MemberExpression"&&c.computed&&c.property===o)&&c.type!=="ArrayExpression")&&!r.isParenthesised(u,o)}function l(o,u){return u?`(${o})`:o}return Mv={meta:{type:"suggestion",docs:{description:"Disallow the use of `Math.pow` in favor of the `**` operator",recommended:!1,url:"https://eslint.org/docs/latest/rules/prefer-exponentiation-operator"},schema:[],fixable:"code",messages:{useExponentiation:"Use the '**' operator instead of 'Math.pow'."}},create(o){let u=o.sourceCode;function c(p){o.report({node:p,messageId:"useExponentiation",fix(h){if(p.arguments.length!==2||p.arguments.some(k=>k.type==="SpreadElement")||u.getCommentsInside(p).length>0)return null;let f=p.arguments[0],d=p.arguments[1],m=u.getText(f),g=u.getText(d),y=n(f),v=i(d),x=a(p,u),S="",w="";if(!x){if(!y){let k=u.getFirstToken(f),A=u.getTokenBefore(p);A&&A.range[1]===p.range[0]&&!r.canTokensBeAdjacent(A,k)&&(S=" ")}if(!v){let k=u.getLastToken(d),A=u.getTokenAfter(p);A&&p.range[1]===A.range[0]&&!r.canTokensBeAdjacent(k,A)&&(w=" ")}}let O=l(m,y),C=l(g,v),E=l(`${O}**${C}`,x);return h.replaceText(p,`${S}${E}${w}`)}})}return{Program(p){let h=u.getScope(p),f=new t(h),d={Math:{pow:{[e]:!0}}};for(let{node:m}of f.iterateGlobalReferences(d))c(m)}}}},Mv}var jv,DR;function VZ(){if(DR)return jv;DR=1;let{CALL:r,CONSTRUCT:e,ReferenceTracker:t,getStringIfConstant:s}=hr(),n=Gn(),i=new n.RegExpParser;function a(l,o,u,c){switch(c.type){case"Literal":if(typeof c.value=="string"&&u.includes("\\"))return null;break;case"TemplateLiteral":if(c.expressions.length||u.slice(1,-1)!==o)return null;break;default:return null}let p=c.range[0]+l+2;return[{fix(h){let d=(o.match(/temp\d+/gu)||[]).reduce((m,g)=>Math.max(m,Number(g.slice(4))),0);return h.insertTextBeforeRange([p,p],`?`)},messageId:"addGroupName"},{fix(h){return h.insertTextBeforeRange([p,p],"?:")},messageId:"addNonCapture"}]}return jv={meta:{type:"suggestion",docs:{description:"Enforce using named capture group in regular expression",recommended:!1,url:"https://eslint.org/docs/latest/rules/prefer-named-capture-group"},hasSuggestions:!0,schema:[],messages:{addGroupName:"Add name to capture group.",addNonCapture:"Convert group to non-capturing.",required:"Capture group '{{group}}' should be converted to a named or non-capturing group."}},create(l){let o=l.sourceCode;function u(c,p,h,f){let d;try{d=i.parsePattern(c,0,c.length,{unicode:!!(f&&f.includes("u")),unicodeSets:!!(f&&f.includes("v"))})}catch{return}n.visitRegExpAST(d,{onCapturingGroupEnter(m){if(!m.name){let g=o.getText(h),y=a(m.start,c,g,h);l.report({node:p,messageId:"required",data:{group:m.raw},suggest:y})}}})}return{Literal(c){c.regex&&u(c.regex.pattern,c,c,c.regex.flags)},Program(c){let p=o.getScope(c),h=new t(p),f={RegExp:{[r]:!0,[e]:!0}};for(let{node:d}of h.iterateGlobalReferences(f)){let m=s(d.arguments[0]),g=s(d.arguments[1]);m&&u(m,d,d.arguments[0],g)}}}}},jv}var qv,_R;function WZ(){if(_R)return qv;_R=1;let r=Pe(),e=new Map([[2,{system:"binary",literalPrefix:"0b"}],[8,{system:"octal",literalPrefix:"0o"}],[16,{system:"hexadecimal",literalPrefix:"0x"}]]);function t(s){return r.isSpecificId(s,"parseInt")||r.isSpecificMemberAccess(s,"Number","parseInt")}return qv={meta:{type:"suggestion",docs:{description:"Disallow `parseInt()` and `Number.parseInt()` in favor of binary, octal, and hexadecimal literals",recommended:!1,url:"https://eslint.org/docs/latest/rules/prefer-numeric-literals"},schema:[],messages:{useLiteral:"Use {{system}} literals instead of {{functionName}}()."},fixable:"code"},create(s){let n=s.sourceCode;return{"CallExpression[arguments.length=2]"(i){let[a,l]=i.arguments,o=r.getStaticStringValue(a),u=l.value;if(o!==null&&r.isStringLiteral(a)&&l.type==="Literal"&&typeof u=="number"&&e.has(u)&&t(i.callee)){let{system:c,literalPrefix:p}=e.get(u);s.report({node:i,messageId:"useLiteral",data:{system:c,functionName:n.getText(i.callee)},fix(h){if(n.getCommentsInside(i).length)return null;let f=`${p}${o}`;if(+f!==parseInt(o,u))return null;let d=n.getTokenBefore(i),m=n.getTokenAfter(i),g="",y="";return d&&d.range[1]===i.range[0]&&!r.canTokensBeAdjacent(d,f)&&(g=" "),m&&i.range[1]===m.range[0]&&!r.canTokensBeAdjacent(f,m)&&(y=" "),h.replaceText(i,`${g}${f}${y}`)}})}}}}},qv}var Qv,IR;function zZ(){if(IR)return Qv;IR=1;let r=Pe();function e(t){if(t.object.type==="ObjectExpression"&&t.object.properties.length===0)return!0;let s=t.object.type==="MemberExpression"&&r.getStaticPropertyName(t.object)==="prototype"?t.object.object:t.object;return s.type==="Identifier"&&s.name==="Object"}return Qv={meta:{type:"suggestion",docs:{description:"Disallow use of `Object.prototype.hasOwnProperty.call()` and prefer use of `Object.hasOwn()`",recommended:!1,url:"https://eslint.org/docs/latest/rules/prefer-object-has-own"},schema:[],messages:{useHasOwn:"Use 'Object.hasOwn()' instead of 'Object.prototype.hasOwnProperty.call()'."},fixable:"code"},create(t){let s=t.sourceCode;return{CallExpression(n){if(!(n.callee.type==="MemberExpression"&&n.callee.object.type==="MemberExpression"))return;let i=r.getStaticPropertyName(n.callee),a=r.getStaticPropertyName(n.callee.object),l=e(n.callee.object),o=s.getScope(n),u=r.getVariableByName(o,"Object");i==="call"&&a==="hasOwnProperty"&&l&&u&&u.scope.type==="global"&&t.report({node:n,messageId:"useHasOwn",fix(c){if(s.getCommentsInside(n.callee).length>0)return null;let p=s.getTokenBefore(n.callee,{includeComments:!0});return p&&p.range[1]===n.callee.range[0]&&!r.canTokensBeAdjacent(p,"Object.hasOwn")?c.replaceText(n.callee," Object.hasOwn"):c.replaceText(n.callee,"Object.hasOwn")}})}}}},Qv}var Uv,RR;function ZZ(){if(RR)return Uv;RR=1;let{CALL:r,ReferenceTracker:e}=hr(),{isCommaToken:t,isOpeningParenToken:s,isClosingParenToken:n,isParenthesised:i}=Pe(),a=/\s/u;function l(y){return y.arguments.some(v=>v.type==="SpreadElement")}function o(y){return y.type==="Property"&&(y.kind==="get"||y.kind==="set")}function u(y){return y.properties.some(o)}function c(y){return y.arguments.filter(v=>v.type==="ObjectExpression").some(u)}function p(y,v){let x=y.parent;switch(x.type){case"VariableDeclarator":case"ArrayExpression":case"ReturnStatement":case"CallExpression":case"Property":return!1;case"AssignmentExpression":return x.left===y&&!i(v,y);default:return!i(v,y)}}function h(y,v){switch(y.type){case"AssignmentExpression":case"ArrowFunctionExpression":case"ConditionalExpression":return!i(v,y);default:return!1}}function f(y,v,x){let S=[x.getFirstToken(y),x.getLastToken(y)],w=x.getTokenBefore(y),O=x.getTokenAfter(y);for(;w&&O&&w.range[0]>v.range[0]&&s(w)&&n(O);)S.push(w,O),w=x.getTokenBefore(w),O=x.getTokenAfter(O);return S.sort((C,E)=>C.range[0]-E.range[0])}function d(y,v){let x=v.text,S=y.range[0];{let w=v.getTokenBefore(y,{includeComments:!0});if(w&&w.type==="Line")return S}for(;a.test(x[S-1]||"");)S-=1;return S}function m(y,v){let x=v.text,S=y.range[1];for(;a.test(x[S]||"");)S+=1;return S}function g(y,v){return function*(x){let S=v.getTokenAfter(y.callee,s),w=v.getLastToken(y);yield x.removeRange([y.range[0],S.range[0]]),p(y,v)?(yield x.replaceText(S,"({"),yield x.replaceText(w,"})")):(yield x.replaceText(S,"{"),yield x.replaceText(w,"}"));for(let O of y.arguments){let C=f(O,S,v),E=C.shift(),k=C.pop();if(O.type==="ObjectExpression"){let A=v.getLastToken(O,1),D=v.getTokenAfter(k);for(let T of C)yield x.remove(T);let _=[E.range[0],m(E,v)],B=[Math.max(d(k,v),_[1]),k.range[1]];yield x.removeRange(_),yield x.removeRange(B),(O.properties.length===0||t(A))&&t(D)&&(yield x.remove(D))}else h(O,v)?(yield x.insertTextBefore(E,"...("),yield x.insertTextAfter(k,")")):yield x.insertTextBefore(E,"...")}}}return Uv={meta:{type:"suggestion",docs:{description:"Disallow using Object.assign with an object literal as the first argument and prefer the use of object spread instead",recommended:!1,url:"https://eslint.org/docs/latest/rules/prefer-object-spread"},schema:[],fixable:"code",messages:{useSpreadMessage:"Use an object spread instead of `Object.assign` eg: `{ ...foo }`.",useLiteralMessage:"Use an object literal instead of `Object.assign`. eg: `{ foo: bar }`."}},create(y){let v=y.sourceCode;return{Program(x){let S=v.getScope(x),w=new e(S),O={Object:{assign:{[r]:!0}}};for(let{node:C}of w.iterateGlobalReferences(O))if(C.arguments.length>=1&&C.arguments[0].type==="ObjectExpression"&&!l(C)&&!(C.arguments.length>1&&c(C))){let E=C.arguments.length===1?"useLiteralMessage":"useSpreadMessage",k=g(C,v);y.report({node:C,messageId:E,fix:k})}}}}},Uv}var Vv,FR;function GZ(){if(FR)return Vv;FR=1;let r=Pe();return Vv={meta:{type:"suggestion",docs:{description:"Require using Error objects as Promise rejection reasons",recommended:!1,url:"https://eslint.org/docs/latest/rules/prefer-promise-reject-errors"},fixable:null,schema:[{type:"object",properties:{allowEmptyReject:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{rejectAnError:"Expected the Promise rejection reason to be an Error."}},create(e){let t=e.options.length&&e.options[0].allowEmptyReject,s=e.sourceCode;function n(a){!a.arguments.length&&t||(!a.arguments.length||!r.couldBeError(a.arguments[0])||a.arguments[0].type==="Identifier"&&a.arguments[0].name==="undefined")&&e.report({node:a,messageId:"rejectAnError"})}function i(a){return r.isSpecificMemberAccess(a.callee,"Promise","reject")}return{CallExpression(a){i(a)&&n(a)},"NewExpression:exit"(a){a.callee.type==="Identifier"&&a.callee.name==="Promise"&&a.arguments.length&&r.isFunction(a.arguments[0])&&a.arguments[0].params.length>1&&a.arguments[0].params[1].type==="Identifier"&&s.getDeclaredVariables(a.arguments[0]).find(l=>l.name===a.arguments[0].params[1].name).references.filter(l=>l.isRead()).filter(l=>l.identifier.parent.type==="CallExpression"&&l.identifier===l.identifier.parent.callee).forEach(l=>n(l.identifier.parent))}}}},Vv}var Wv,BR;function XZ(){return BR||(BR=1,Wv={meta:{type:"suggestion",docs:{description:"Require `Reflect` methods where applicable",recommended:!1,url:"https://eslint.org/docs/latest/rules/prefer-reflect"},deprecated:!0,replacedBy:[],schema:[{type:"object",properties:{exceptions:{type:"array",items:{enum:["apply","call","delete","defineProperty","getOwnPropertyDescriptor","getPrototypeOf","setPrototypeOf","isExtensible","getOwnPropertyNames","preventExtensions"]},uniqueItems:!0}},additionalProperties:!1}],messages:{preferReflect:"Avoid using {{existing}}, instead use {{substitute}}."}},create(r){let e={apply:"Function.prototype.apply",call:"Function.prototype.call",defineProperty:"Object.defineProperty",getOwnPropertyDescriptor:"Object.getOwnPropertyDescriptor",getPrototypeOf:"Object.getPrototypeOf",setPrototypeOf:"Object.setPrototypeOf",isExtensible:"Object.isExtensible",getOwnPropertyNames:"Object.getOwnPropertyNames",preventExtensions:"Object.preventExtensions"},t={apply:"Reflect.apply",call:"Reflect.apply",defineProperty:"Reflect.defineProperty",getOwnPropertyDescriptor:"Reflect.getOwnPropertyDescriptor",getPrototypeOf:"Reflect.getPrototypeOf",setPrototypeOf:"Reflect.setPrototypeOf",isExtensible:"Reflect.isExtensible",getOwnPropertyNames:"Reflect.getOwnPropertyNames",preventExtensions:"Reflect.preventExtensions"},s=(r.options[0]||{}).exceptions||[];function n(i,a,l){r.report({node:i,messageId:"preferReflect",data:{existing:a,substitute:l}})}return{CallExpression(i){let a=(i.callee.property||{}).name,l=(i.callee.object||{}).name==="Reflect",o=Object.hasOwn(t,a),u=s.includes(a);o&&!l&&!u&&n(i,e[a],t[a])},UnaryExpression(i){let a=i.operator==="delete",l=i.argument.type==="Identifier",o=s.includes("delete");a&&!l&&!o&&n(i,"the delete keyword","Reflect.deleteProperty")}}}}),Wv}var zv,NR;function YZ(){if(NR)return zv;NR=1;let r=Pe(),{CALL:e,CONSTRUCT:t,ReferenceTracker:s,findVariable:n}=hr(),{RegExpValidator:i,visitRegExpAST:a,RegExpParser:l}=Gn(),{canTokensBeAdjacent:o}=Pe(),{REGEXPP_LATEST_ECMA_VERSION:u}=NO();function c(f){return f.type==="Literal"&&typeof f.value=="string"}function p(f){return f.type==="Literal"&&Object.hasOwn(f,"regex")}let h=new Set(["(",";","[",",","=","+","*","-","?","~","%","**","!","typeof","instanceof","&&","||","??","return","...","delete","void","in","<",">","<=",">=","==","===","!=","!==","<<",">>",">>>","&","|","^",":","{","=>","*=","<<=",">>=",">>>=","^=","|=","&=","??=","||=","&&=","**=","+=","-=","/=","%=","/","do","break","continue","debugger","case","throw"]);return zv={meta:{type:"suggestion",docs:{description:"Disallow use of the `RegExp` constructor in favor of regular expression literals",recommended:!1,url:"https://eslint.org/docs/latest/rules/prefer-regex-literals"},hasSuggestions:!0,schema:[{type:"object",properties:{disallowRedundantWrapping:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{unexpectedRegExp:"Use a regular expression literal instead of the 'RegExp' constructor.",replaceWithLiteral:"Replace with an equivalent regular expression literal.",replaceWithLiteralAndFlags:"Replace with an equivalent regular expression literal with flags '{{ flags }}'.",replaceWithIntendedLiteralAndFlags:"Replace with a regular expression literal with flags '{{ flags }}'.",unexpectedRedundantRegExp:"Regular expression literal is unnecessarily wrapped within a 'RegExp' constructor.",unexpectedRedundantRegExpWithFlags:"Use regular expression literal with flags instead of the 'RegExp' constructor."}},create(f){let[{disallowRedundantWrapping:d=!1}={}]=f.options,m=f.sourceCode;function g(T){let R=m.getScope(T),j=n(R,T);return j!==null&&j.scope.type==="global"&&j.defs.length===0}function y(T){return T.type==="TaggedTemplateExpression"&&r.isSpecificMemberAccess(T.tag,"String","raw")&&g(r.skipChainExpression(T.tag).object)&&r.isStaticTemplateLiteral(T.quasi)}function v(T){return c(T)?T.value:r.isStaticTemplateLiteral(T)?T.quasis[0].value.cooked:y(T)?T.quasi.quasis[0].value.raw:null}function x(T){return c(T)||r.isStaticTemplateLiteral(T)||y(T)}function S(T){let R=T.arguments;return!!((R.length===1||R.length===2)&&R.every(x))}function w(T){let R=T.arguments;return!!(R.length===1&&p(R[0])||R.length===2&&p(R[0])&&x(R[1]))}function O(T){return T<=5?5:Math.min(T,u)}let C=O(f.languageOptions.ecmaVersion);function E(T){switch(T){case` `:case`\\ -`:return"\\n";case"\r":case"\\\r":return"\\r";case" ":case"\\ ":return"\\t";case"\v":case"\\\v":return"\\v";case"\f":case"\\\f":return"\\f";case"/":return"\\/";default:return null}}function k(T,F){let j=new i({ecmaVersion:w});try{return j.validatePattern(T,0,T.length,{unicode:F?F.includes("u"):!1,unicodeSets:F?F.includes("v"):!1}),F&&j.validateFlags(F),!0}catch{return!1}}function A(T,F){return[...T].sort().join("")===[...F].sort().join("")}function D(T,F){return[...new Set([...T,...F])].join("")}function _(T,F,j){let Q=m.getTokenBefore(T);return m.getCommentsInside(T).length===0&&(!Q||h.has(Q.value))&&k(F,j)}function B(T,F){let j=m.getTokenBefore(T),Q=m.getTokenAfter(T);return(j&&!o(j,F)&&j.range[1]===T.range[0]?" ":"")+F+(Q&&!o(F,Q)&&T.range[1]===Q.range[0]?" ":"")}return{Program(T){let F=m.getScope(T),j=new s(F),Q={RegExp:{[e]:!0,[t]:!0}};for(let{node:I}of j.iterateGlobalReferences(Q))if(d&&C(I)){let N=I.arguments[0];if(I.arguments.length===2){let R=[],U=b(I.arguments[1])||"";_(I,N.regex.pattern,U)&&R.push({messageId:"replaceWithLiteralAndFlags",pattern:N.regex.pattern,flags:U});let V=N.regex.flags||"",ae=D(V,U);!A(ae,U)&&_(I,N.regex.pattern,ae)&&R.push({messageId:"replaceWithIntendedLiteralAndFlags",pattern:N.regex.pattern,flags:ae}),f.report({node:I,messageId:"unexpectedRedundantRegExpWithFlags",suggest:R.map(({flags:se,pattern:ve,messageId:H})=>({messageId:H,data:{flags:se},fix(he){return he.replaceText(I,B(I,`/${ve}/${se}`))}}))})}else{let R=[];_(I,N.regex.pattern,N.regex.flags)&&R.push(m.getText(N)),f.report({node:I,messageId:"unexpectedRedundantRegExp",suggest:R.map(U=>({messageId:"replaceWithLiteral",fix(V){return V.replaceText(I,B(I,U))}}))})}}else if(S(I)){let N=b(I.arguments[0]),R=!1,U;if(I.arguments[1]&&(U=b(I.arguments[1])),_(I,N,U)||(R=!0),/^[-a-zA-Z0-9\\[\](){} \t\r\n\v\f!@#$%^&*+^_=/~`.>v+b.slice(S.range[1],y[C+1].range[0]),"")}function h(m,g,y){if(m.type==="Literal"&&typeof m.value=="string")return`\`${m.raw.slice(1,-1).replace(/\\*(\$\{|`)/gu,b=>b.lastIndexOf("\\")%2?`\\${b}`:b).replace(new RegExp(`\\\\${m.raw[0]}`,"gu"),m.raw[0])}\``;if(m.type==="TemplateLiteral")return u.getText(m);if(e(m)&&n(m)){let b=u.getFirstTokenBetween(m.left,m.right,w=>w.value==="+"),v=p(m.left,b),S=p(b,m.right),C=l(m.left),O=a(m.right);return C?h(m.left,g,v+S).slice(0,-1)+h(m.right,null,y).slice(1):O?h(m.left,g,null).slice(0,-1)+h(m.right,v+S,y).slice(1):`${h(m.left,g,null)}${v}+${S}${h(m.right,y,null)}`}return`\`\${${g||""}${u.getText(m)}${y||""}}\``}function f(m,g){let y=t(g.parent);return s(y)?null:m.replaceText(y,h(y,null,null))}function d(m){if(!r.isStringLiteral(m)||!e(m.parent))return;let g=t(m.parent);c[g.range[0]]||(c[g.range[0]]=!0,i(g)&&o.report({node:g,messageId:"unexpectedStringConcatenation",fix:y=>f(y,m)}))}return{Program(){c=Object.create(null)},Literal:d,TemplateLiteral:d}}},Yb}var Hb,QF;function eX(){if(QF)return Hb;QF=1;let r=bc(),e=Pe(),t=NO();return Hb={meta:{deprecated:!0,replacedBy:[],type:"suggestion",docs:{description:"Require quotes around object literal property names",recommended:!1,url:"https://eslint.org/docs/latest/rules/quote-props"},schema:{anyOf:[{type:"array",items:[{enum:["always","as-needed","consistent","consistent-as-needed"]}],minItems:0,maxItems:1},{type:"array",items:[{enum:["always","as-needed","consistent","consistent-as-needed"]},{type:"object",properties:{keywords:{type:"boolean"},unnecessary:{type:"boolean"},numbers:{type:"boolean"}},additionalProperties:!1}],minItems:0,maxItems:2}]},fixable:"code",messages:{requireQuotesDueToReservedWord:"Properties should be quoted as '{{property}}' is a reserved word.",inconsistentlyQuotedProperty:"Inconsistently quoted property '{{key}}' found.",unnecessarilyQuotedProperty:"Unnecessarily quoted property '{{property}}' found.",unquotedReservedProperty:"Unquoted reserved word '{{property}}' used as key.",unquotedNumericProperty:"Unquoted number literal '{{property}}' used as key.",unquotedPropertyFound:"Unquoted property '{{property}}' found.",redundantQuoting:"Properties shouldn't be quoted as all quotes are redundant."}},create(s){let n=s.options[0],i=s.options[1]&&s.options[1].keywords,a=!s.options[1]||s.options[1].unnecessary!==!1,l=s.options[1]&&s.options[1].numbers,o=s.sourceCode;function u(g){return t.includes(g)}function c(g,y,b){return y.length===1&&y[0].start===0&&y[0].end===g.length&&(["Identifier","Keyword","Null","Boolean"].includes(y[0].type)||y[0].type==="Numeric"&&!b&&String(+y[0].value)===y[0].value)}function p(g){return g.type==="Identifier"?g.name:g.value}function h(g){return g.type==="Literal"&&typeof g.value=="string"?o.getText(g):`"${g.type==="Identifier"?g.name:g.value}"`}function f(g){let y=g.key;if(!(g.method||g.computed||g.shorthand))if(y.type==="Literal"&&typeof y.value=="string"){let b;try{b=r.tokenize(y.value)}catch{return}if(b.length!==1||u(b[0].value)&&i)return;a&&c(y.value,b,l)&&s.report({node:g,messageId:"unnecessarilyQuotedProperty",data:{property:y.value},fix:S=>S.replaceText(y,p(y))})}else i&&y.type==="Identifier"&&u(y.name)?s.report({node:g,messageId:"unquotedReservedProperty",data:{property:y.name},fix:b=>b.replaceText(y,h(y))}):l&&y.type==="Literal"&&e.isNumericLiteral(y)&&s.report({node:g,messageId:"unquotedNumericProperty",data:{property:y.value},fix:b=>b.replaceText(y,h(y))})}function d(g){let y=g.key;!g.method&&!g.computed&&!g.shorthand&&!(y.type==="Literal"&&typeof y.value=="string")&&s.report({node:g,messageId:"unquotedPropertyFound",data:{property:y.name||y.value},fix:b=>b.replaceText(y,h(y))})}function m(g,y){let b=[],v=[],S=null,C=!1;g.properties.forEach(O=>{let w=O.key;if(!(!w||O.method||O.computed||O.shorthand))if(w.type==="Literal"&&typeof w.value=="string"){if(b.push(O),y){let E;try{E=r.tokenize(w.value)}catch{C=!0;return}C=C||!c(w.value,E)||i&&u(E[0].value)}}else i&&y&&w.type==="Identifier"&&u(w.name)?(v.push(O),C=!0,S=w.name):v.push(O)}),y&&b.length&&!C?b.forEach(O=>{s.report({node:O,messageId:"redundantQuoting",fix:w=>w.replaceText(O.key,p(O.key))})}):v.length&&S?v.forEach(O=>{s.report({node:O,messageId:"requireQuotesDueToReservedWord",data:{property:S},fix:w=>w.replaceText(O.key,h(O.key))})}):b.length&&v.length&&v.forEach(O=>{s.report({node:O,messageId:"inconsistentlyQuotedProperty",data:{key:O.key.name||O.key.value},fix:w=>w.replaceText(O.key,h(O.key))})})}return{Property(g){(n==="always"||!n)&&d(g),n==="as-needed"&&f(g)},ObjectExpression(g){n==="consistent"&&m(g,!1),n==="consistent-as-needed"&&m(g,!0)}}}},Hb}var Kb,UF;function tX(){if(UF)return Kb;UF=1;let r=Pe(),e={double:{quote:'"',alternateQuote:"'",description:"doublequote"},single:{quote:"'",alternateQuote:'"',description:"singlequote"},backtick:{quote:"`",alternateQuote:'"',description:"backtick"}},t=new RegExp(String.raw`(^|[^\\])(\\\\)*[${Array.from(r.LINEBREAKS).join("")}]`,"u");e.double.convert=e.single.convert=e.backtick.convert=function(n){let i=this.quote,a=n[0];return i===a?n:i+n.slice(1,-1).replace(/\\(\$\{|\r\n?|\n|.)|["'`]|\$\{|(\r\n?|\n)/gu,(l,o,u)=>o===a||a==="`"&&o==="${"?o:l===i||i==="`"&&l==="${"?`\\${l}`:u&&a==="`"?"\\n":l)+i};let s="avoid-escape";return Kb={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Enforce the consistent use of either backticks, double, or single quotes",recommended:!1,url:"https://eslint.org/docs/latest/rules/quotes"},fixable:"code",schema:[{enum:["single","double","backtick"]},{anyOf:[{enum:["avoid-escape"]},{type:"object",properties:{avoidEscape:{type:"boolean"},allowTemplateLiterals:{type:"boolean"}},additionalProperties:!1}]}],messages:{wrongQuotes:"Strings must use {{description}}."}},create(n){let i=n.options[0],a=e[i||"double"],l=n.options[1],o=l&&l.allowTemplateLiterals===!0,u=n.sourceCode,c=l&&l.avoidEscape===!0;l===s&&(c=!0);function p(g){return g.parent.type==="JSXAttribute"||g.parent.type==="JSXElement"||g.parent.type==="JSXFragment"}function h(g){return g.type==="ExpressionStatement"&&g.expression.type==="Literal"&&typeof g.expression.value=="string"&&!r.isParenthesised(u,g.expression)}function f(g){if(!r.isTopLevelExpressionStatement(g.parent))return!1;let y=g.parent.parent;for(let b=0;b0||g.quasis.length>=1&&t.test(g.quasis[0].value.raw))}return{Literal(g){let y=g.value,b=g.raw;if(a&&typeof y=="string"){let v=i==="backtick"&&d(g)||p(g)||r.isSurroundedBy(b,a.quote);!v&&c&&(v=r.isSurroundedBy(b,a.alternateQuote)&&b.includes(a.quote)),v||n.report({node:g,messageId:"wrongQuotes",data:{description:a.description},fix(S){return i==="backtick"&&r.hasOctalOrNonOctalDecimalEscapeSequence(b)?null:S.replaceText(g,a.convert(g.raw))}})}},TemplateLiteral(g){o||i==="backtick"||m(g)||n.report({node:g,messageId:"wrongQuotes",data:{description:a.description},fix(y){return r.isTopLevelExpressionStatement(g.parent)&&!r.isParenthesised(u,g)?null:y.replaceText(g,a.convert(u.getText(g)))}})}}}},Kb}var Jb,VF;function rX(){if(VF)return Jb;VF=1;let r=Pe(),e="always",t="as-needed",s=new Set(Array.from({length:35},(o,u)=>u+2));function n(o){return o.defs.length>=1}function i(o){return o.type==="MemberExpression"&&!o.computed&&o.property.type==="Identifier"&&o.property.name==="parseInt"}function a(o){return!(o.type==="Literal"&&!s.has(o.value)||o.type==="Identifier"&&o.name==="undefined")}function l(o){return o.type==="Literal"&&o.value===10}return Jb={meta:{type:"suggestion",docs:{description:"Enforce the consistent use of the radix argument when using `parseInt()`",recommended:!1,url:"https://eslint.org/docs/latest/rules/radix"},hasSuggestions:!0,schema:[{enum:["always","as-needed"]}],messages:{missingParameters:"Missing parameters.",redundantRadix:"Redundant radix parameter.",missingRadix:"Missing radix parameter.",invalidRadix:"Invalid radix parameter, must be an integer between 2 and 36.",addRadixParameter10:"Add radix parameter `10` for parsing decimal numbers."}},create(o){let u=o.options[0]||e,c=o.sourceCode;function p(h){let f=h.arguments;switch(f.length){case 0:o.report({node:h,messageId:"missingParameters"});break;case 1:u===e&&o.report({node:h,messageId:"missingRadix",suggest:[{messageId:"addRadixParameter10",fix(d){let m=c.getTokens(h),g=m.at(-1),y=m.at(-2),b=y.type==="Punctuator"&&y.value===",";return d.insertTextBefore(g,b?" 10,":", 10")}}]});break;default:u===t&&l(f[1])?o.report({node:h,messageId:"redundantRadix"}):a(f[1])||o.report({node:h,messageId:"invalidRadix"});break}}return{"Program:exit"(h){let f=c.getScope(h),d;d=r.getVariableByName(f,"parseInt"),d&&!n(d)&&d.references.forEach(m=>{let g=m.identifier;r.isCallee(g)&&p(g.parent)}),d=r.getVariableByName(f,"Number"),d&&!n(d)&&d.references.forEach(m=>{let g=m.identifier.parent,y=g.parent.type==="ChainExpression"?g.parent:g;i(g)&&r.isCallee(y)&&p(y.parent)})}}}},Jb}var ev,WF;function nX(){if(WF)return ev;WF=1;function r(n,i=new Map){for(let a of n.references)a.resolved!==null&&i.set(a.identifier,a);for(let a of n.childScopes)a.type!=="function"&&r(a,i);return i}function e(n){if(n.writeExpr)return n.writeExpr;let i=n.identifier;for(;i;){let a=i.parent.type;if(a==="AssignmentExpression"&&i.parent.left===i)return i.parent.right;if(a==="MemberExpression"&&i.parent.object===i){i=i.parent;continue}break}return null}function t(n,i){if(!n||i&&n.defs.some(l=>l.type==="Parameter"))return!1;let a=n.scope.variableScope;return n.references.every(l=>l.from.variableScope===a)}class s{constructor(){this.info=new WeakMap}initialize(i){let a=new Set,l=new Set;for(let o of i.prevSegments){let u=this.info.get(o);u&&(u.outdatedReadVariables.forEach(Set.prototype.add,a),u.freshReadVariables.forEach(Set.prototype.add,l))}this.info.set(i,{outdatedReadVariables:a,freshReadVariables:l})}markAsRead(i,a){for(let l of i){let o=this.info.get(l);o&&(o.freshReadVariables.add(a),o.outdatedReadVariables.delete(a))}}makeOutdated(i){for(let a of i){let l=this.info.get(a);l&&(l.freshReadVariables.forEach(Set.prototype.add,l.outdatedReadVariables),l.freshReadVariables.clear())}}isOutdated(i,a){for(let l of i){let o=this.info.get(l);if(o&&o.outdatedReadVariables.has(a))return!0}return!1}}return ev={meta:{type:"problem",docs:{description:"Disallow assignments that can lead to race conditions due to usage of `await` or `yield`",recommended:!1,url:"https://eslint.org/docs/latest/rules/require-atomic-updates"},fixable:null,schema:[{type:"object",properties:{allowProperties:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{nonAtomicUpdate:"Possible race condition: `{{value}}` might be reassigned based on an outdated value of `{{value}}`.",nonAtomicObjectUpdate:"Possible race condition: `{{value}}` might be assigned based on an outdated state of `{{object}}`."}},create(n){let i=!!n.options[0]&&n.options[0].allowProperties,a=n.sourceCode,l=new Map,o=new s,u=null;return{onCodePathStart(c,p){let h=a.getScope(p),f=h.type==="function"&&(h.block.async||h.block.generator);u={upper:u,codePath:c,referenceMap:f?r(h):null,currentSegments:new Set}},onCodePathEnd(){u=u.upper},onCodePathSegmentStart(c){o.initialize(c),u.currentSegments.add(c)},onUnreachableCodePathSegmentStart(c){u.currentSegments.add(c)},onUnreachableCodePathSegmentEnd(c){u.currentSegments.delete(c)},onCodePathSegmentEnd(c){u.currentSegments.delete(c)},Identifier(c){let{referenceMap:p}=u,h=p&&p.get(c);if(!h)return;let f=h.resolved,d=e(h),m=h.identifier.parent.type==="MemberExpression";if(h.isRead()&&!(d&&d.parent.operator==="=")&&o.markAsRead(u.currentSegments,f),d&&d.parent.right===d&&!t(f,m)){let g=l.get(d);g||(g=[],l.set(d,g)),g.push(h)}},":expression:exit"(c){if(!u.referenceMap)return;(c.type==="AwaitExpression"||c.type==="YieldExpression")&&o.makeOutdated(u.currentSegments);let p=l.get(c);if(p){l.delete(c);for(let h of p){let f=h.resolved;o.isOutdated(u.currentSegments,f)&&(c.parent.left===h.identifier?n.report({node:c.parent,messageId:"nonAtomicUpdate",data:{value:f.name}}):i||n.report({node:c.parent,messageId:"nonAtomicObjectUpdate",data:{value:a.getText(c.parent.left),object:f.name}}))}}}}}},ev}var tv,ZF;function sX(){if(ZF)return tv;ZF=1;let r=Pe();function e(t){return t[0].toUpperCase()+t.slice(1)}return tv={meta:{type:"suggestion",docs:{description:"Disallow async functions which have no `await` expression",recommended:!1,url:"https://eslint.org/docs/latest/rules/require-await"},schema:[],messages:{missingAwait:"{{name}} has no 'await' expression."}},create(t){let s=t.sourceCode,n=null;function i(){n={upper:n,hasAwait:!1}}function a(l){!l.generator&&l.async&&!n.hasAwait&&!r.isEmptyFunction(l)&&t.report({node:l,loc:r.getFunctionHeadLoc(l,s),messageId:"missingAwait",data:{name:e(r.getFunctionNameWithKind(l))}}),n=n.upper}return{FunctionDeclaration:i,FunctionExpression:i,ArrowFunctionExpression:i,"FunctionDeclaration:exit":a,"FunctionExpression:exit":a,"ArrowFunctionExpression:exit":a,AwaitExpression(){n&&(n.hasAwait=!0)},ForOfStatement(l){n&&l.await&&(n.hasAwait=!0)}}}},tv}var rv,zF;function iX(){if(zF)return rv;zF=1;let{CALL:r,CONSTRUCT:e,ReferenceTracker:t,getStringIfConstant:s}=hr(),n=Pe(),{isValidWithUnicodeFlag:i}=LO();return rv={meta:{type:"suggestion",docs:{description:"Enforce the use of `u` or `v` flag on RegExp",recommended:!1,url:"https://eslint.org/docs/latest/rules/require-unicode-regexp"},hasSuggestions:!0,messages:{addUFlag:"Add the 'u' flag.",requireUFlag:"Use the 'u' flag."},schema:[]},create(a){let l=a.sourceCode;return{"Literal[regex]"(o){let u=o.regex.flags||"";!u.includes("u")&&!u.includes("v")&&a.report({messageId:"requireUFlag",node:o,suggest:i(a.languageOptions.ecmaVersion,o.regex.pattern)?[{fix(c){return c.insertTextAfter(o,"u")},messageId:"addUFlag"}]:null})},Program(o){let u=l.getScope(o),c=new t(u),p={RegExp:{[r]:!0,[e]:!0}};for(let{node:h}of c.iterateGlobalReferences(p)){let[f,d]=h.arguments;if(f&&f.type==="SpreadElement")continue;let m=s(f,u),g=s(d,u);(!d||typeof g=="string"&&!g.includes("u")&&!g.includes("v"))&&a.report({messageId:"requireUFlag",node:h,suggest:typeof m=="string"&&i(a.languageOptions.ecmaVersion,m)?[{fix(y){if(d){if(d.type==="Literal"&&typeof d.value=="string"||d.type==="TemplateLiteral"){let v=l.getText(d);return y.replaceText(d,[v.slice(0,v.length-1),v.slice(v.length-1)].join("u"))}return null}let b=l.getLastToken(h,{skip:1});return y.insertTextAfter(b,n.isCommaToken(b)?' "u",':', "u"')},messageId:"addUFlag"}]:null})}}}}},rv}var nv,XF;function aX(){return XF||(XF=1,nv={meta:{type:"suggestion",docs:{description:"Require generator functions to contain `yield`",recommended:!0,url:"https://eslint.org/docs/latest/rules/require-yield"},schema:[],messages:{missingYield:"This generator function does not have 'yield'."}},create(r){let e=[];function t(n){n.generator&&e.push(0)}function s(n){if(!n.generator)return;e.pop()===0&&n.body.body.length>0&&r.report({node:n,messageId:"missingYield"})}return{FunctionDeclaration:t,"FunctionDeclaration:exit":s,FunctionExpression:t,"FunctionExpression:exit":s,YieldExpression(){e.length>0&&(e[e.length-1]+=1)}}}}),nv}var sv,GF;function oX(){return GF||(GF=1,sv={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Enforce spacing between rest and spread operators and their expressions",recommended:!1,url:"https://eslint.org/docs/latest/rules/rest-spread-spacing"},fixable:"whitespace",schema:[{enum:["always","never"]}],messages:{unexpectedWhitespace:"Unexpected whitespace after {{type}} operator.",expectedWhitespace:"Expected whitespace after {{type}} operator."}},create(r){let e=r.sourceCode,t=r.options[0]==="always";function s(n){let i=e.getFirstToken(n),a=e.getTokenAfter(i),l=e.isSpaceBetweenTokens(i,a),o;switch(n.type){case"SpreadElement":o="spread",n.parent.type==="ObjectExpression"&&(o+=" property");break;case"RestElement":o="rest",n.parent.type==="ObjectPattern"&&(o+=" property");break;case"ExperimentalSpreadProperty":o="spread property";break;case"ExperimentalRestProperty":o="rest property";break;default:return}t&&!l?r.report({node:n,loc:i.loc,messageId:"expectedWhitespace",data:{type:o},fix(u){return u.replaceTextRange([i.range[1],a.range[0]]," ")}}):!t&&l&&r.report({node:n,loc:{start:i.loc.end,end:a.loc.start},messageId:"unexpectedWhitespace",data:{type:o},fix(u){return u.removeRange([i.range[1],a.range[0]])}})}return{SpreadElement:s,RestElement:s,ExperimentalSpreadProperty:s,ExperimentalRestProperty:s}}}),sv}var iv,YF;function lX(){if(YF)return iv;YF=1;let r=zo(),e=Pe();return iv={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Require or disallow semicolons instead of ASI",recommended:!1,url:"https://eslint.org/docs/latest/rules/semi"},fixable:"code",schema:{anyOf:[{type:"array",items:[{enum:["never"]},{type:"object",properties:{beforeStatementContinuationChars:{enum:["always","any","never"]}},additionalProperties:!1}],minItems:0,maxItems:2},{type:"array",items:[{enum:["always"]},{type:"object",properties:{omitLastInOneLineBlock:{type:"boolean"},omitLastInOneLineClassBody:{type:"boolean"}},additionalProperties:!1}],minItems:0,maxItems:2}]},messages:{missingSemi:"Missing semicolon.",extraSemi:"Extra semicolon."}},create(t){let s=/^[-[(/+`]/u,n=new Set(["get","set","static"]),i=new Set(["*","in","instanceof"]),a=t.options[1],l=t.options[0]==="never",o=!!(a&&a.omitLastInOneLineBlock),u=!!(a&&a.omitLastInOneLineClassBody),c=a&&a.beforeStatementContinuationChars||"any",p=t.sourceCode;function h(E,k){let A=p.getLastToken(E),D,_,B;k?(D="extraSemi",B=A.loc,_=function(T){return new r(T,p).retainSurroundingTokens(A).remove(A)}):(D="missingSemi",B={start:A.loc.end,end:e.getNextLocation(p,A.loc.end)},_=function(T){return T.insertTextAfter(A,";")}),t.report({node:E,loc:B,messageId:D,fix:_})}function f(E){let k=p.getTokenAfter(E);return!k||e.isClosingBraceToken(k)||e.isSemicolonToken(k)}function d(E){if(!e.isClosingBraceToken(E))return!1;let k=p.getNodeByRangeIndex(E.range[0]);return k.type==="BlockStatement"&&k.parent.type==="ArrowFunctionExpression"}function m(E){if(E.type!=="PropertyDefinition")return!1;if(!E.computed&&E.key.type==="Identifier"&&n.has(E.key.name)&&!(E.static&&E.key.name==="static")&&!E.value)return!0;let A=p.getTokenAfter(E);return i.has(A.value)}function g(E){let k=p.getLastToken(E,1),A=p.getTokenAfter(E);return!!A&&e.isTokenOnSameLine(k,A)}function y(E){let k=E.type;return k==="DoWhileStatement"||k==="BreakStatement"||k==="ContinueStatement"||k==="DebuggerStatement"||k==="ImportDeclaration"||k==="ExportAllDeclaration"?!1:k==="ReturnStatement"?!!E.argument:k==="ExportNamedDeclaration"?!!E.declaration:!d(p.getLastToken(E,1))}function b(E){return!!E&&s.test(E.value)&&E.value!=="++"&&E.value!=="--"}function v(E){return f(p.getLastToken(E))?!0:m(E)||g(E)?!1:E.type!=="PropertyDefinition"&&c==="never"&&!y(E)||!b(p.getTokenAfter(E))}function S(E){let k=E.parent,A=p.getTokenAfter(E);return!A||A.value!=="}"?!1:k.type==="BlockStatement"?k.loc.start.line===k.loc.end.line:k.type==="StaticBlock"?p.getFirstToken(k,{skip:1}).loc.start.line===k.loc.end.line:!1}function C(E){let k=E.parent,A=p.getTokenAfter(E);return!A||A.value!=="}"?!1:k.type==="ClassBody"?k.loc.start.line===k.loc.end.line:!1}function O(E){let k=e.isSemicolonToken(p.getLastToken(E));if(l)k&&v(E)?h(E,!0):!k&&c==="always"&&E.type!=="PropertyDefinition"&&b(p.getTokenAfter(E))&&h(E);else{let A=o&&S(E),D=u&&C(E),_=A||D;k&&_?h(E,!0):!k&&!_&&h(E)}}function w(E){let k=E.parent;(k.type!=="ForStatement"||k.init!==E)&&(!/^For(?:In|Of)Statement/u.test(k.type)||k.left!==E)&&O(E)}return{VariableDeclaration:w,ExpressionStatement:O,ReturnStatement:O,ThrowStatement:O,DoWhileStatement:O,DebuggerStatement:O,BreakStatement:O,ContinueStatement:O,ImportDeclaration:O,ExportAllDeclaration:O,ExportNamedDeclaration(E){E.declaration||O(E)},ExportDefaultDeclaration(E){/(?:Class|Function)Declaration/u.test(E.declaration.type)||O(E)},PropertyDefinition:O}}},iv}var av,HF;function uX(){if(HF)return av;HF=1;let r=Pe();return av={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Enforce consistent spacing before and after semicolons",recommended:!1,url:"https://eslint.org/docs/latest/rules/semi-spacing"},fixable:"whitespace",schema:[{type:"object",properties:{before:{type:"boolean",default:!1},after:{type:"boolean",default:!0}},additionalProperties:!1}],messages:{unexpectedWhitespaceBefore:"Unexpected whitespace before semicolon.",unexpectedWhitespaceAfter:"Unexpected whitespace after semicolon.",missingWhitespaceBefore:"Missing whitespace before semicolon.",missingWhitespaceAfter:"Missing whitespace after semicolon."}},create(e){let t=e.options[0],s=e.sourceCode,n=!1,i=!0;typeof t=="object"&&(n=t.before,i=t.after);function a(f){let d=s.getTokenBefore(f);return d&&r.isTokenOnSameLine(d,f)&&s.isSpaceBetweenTokens(d,f)}function l(f){let d=s.getTokenAfter(f);return d&&r.isTokenOnSameLine(f,d)&&s.isSpaceBetweenTokens(f,d)}function o(f){let d=s.getTokenAfter(f);return!(d&&r.isTokenOnSameLine(f,d))}function u(f){let d=s.getTokenBefore(f);return!(d&&r.isTokenOnSameLine(f,d))}function c(f){let d=s.getTokenAfter(f);return d&&r.isClosingBraceToken(d)||r.isClosingParenToken(d)}function p(f,d){if(r.isSemicolonToken(f)){if(a(f)){if(!n){let m=s.getTokenBefore(f),g={start:m.loc.end,end:f.loc.start};e.report({node:d,loc:g,messageId:"unexpectedWhitespaceBefore",fix(y){return y.removeRange([m.range[1],f.range[0]])}})}}else if(n){let m=f.loc;e.report({node:d,loc:m,messageId:"missingWhitespaceBefore",fix(g){return g.insertTextBefore(f," ")}})}if(!u(f)&&!o(f)&&!c(f)){if(l(f)){if(!i){let m=s.getTokenAfter(f),g={start:f.loc.end,end:m.loc.start};e.report({node:d,loc:g,messageId:"unexpectedWhitespaceAfter",fix(y){return y.removeRange([f.range[1],m.range[0]])}})}}else if(i){let m=f.loc;e.report({node:d,loc:m,messageId:"missingWhitespaceAfter",fix(g){return g.insertTextAfter(f," ")}})}}}}function h(f){let d=s.getLastToken(f);p(d,f)}return{VariableDeclaration:h,ExpressionStatement:h,BreakStatement:h,ContinueStatement:h,DebuggerStatement:h,DoWhileStatement:h,ReturnStatement:h,ThrowStatement:h,ImportDeclaration:h,ExportNamedDeclaration:h,ExportAllDeclaration:h,ExportDefaultDeclaration:h,ForStatement(f){f.init&&p(s.getTokenAfter(f.init),f),f.test&&p(s.getTokenAfter(f.test),f)},PropertyDefinition:h}}},av}var ov,KF;function cX(){if(KF)return ov;KF=1;let r=Pe(),e=["BreakStatement","ContinueStatement","DebuggerStatement","DoWhileStatement","ExportAllDeclaration","ExportDefaultDeclaration","ExportNamedDeclaration","ExpressionStatement","ImportDeclaration","ReturnStatement","ThrowStatement","VariableDeclaration","PropertyDefinition"].join(",");function t(n){let i=n.type;return i==="BlockStatement"||i==="StaticBlock"||i==="Program"||i==="ClassBody"?n.body:i==="SwitchCase"?n.consequent:null}function s(n){let i=n.parent.type;if(i==="IfStatement"&&n.parent.consequent===n&&n.parent.alternate||i==="DoWhileStatement")return!0;let a=t(n.parent);return a!==null&&a.at(-1)===n}return ov={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Enforce location of semicolons",recommended:!1,url:"https://eslint.org/docs/latest/rules/semi-style"},schema:[{enum:["last","first"]}],fixable:"whitespace",messages:{expectedSemiColon:"Expected this semicolon to be at {{pos}}."}},create(n){let i=n.sourceCode,a=n.options[0]||"last";function l(o,u){let c=i.getTokenBefore(o),p=i.getTokenAfter(o),h=!c||r.isTokenOnSameLine(c,o),f=!p||r.isTokenOnSameLine(o,p);(u==="last"&&!h||u==="first"&&!f)&&n.report({loc:o.loc,messageId:"expectedSemiColon",data:{pos:u==="last"?"the end of the previous line":"the beginning of the next line"},fix(d){if(c&&p&&i.commentsExistBetween(c,p))return null;let m=c?c.range[1]:o.range[0],g=p?p.range[0]:o.range[1],y=u==="last"?`; +`:return"\\n";case"\r":case"\\\r":return"\\r";case" ":case"\\ ":return"\\t";case"\v":case"\\\v":return"\\v";case"\f":case"\\\f":return"\\f";case"/":return"\\/";default:return null}}function k(T,R){let j=new i({ecmaVersion:C});try{return j.validatePattern(T,0,T.length,{unicode:R?R.includes("u"):!1,unicodeSets:R?R.includes("v"):!1}),R&&j.validateFlags(R),!0}catch{return!1}}function A(T,R){return[...T].sort().join("")===[...R].sort().join("")}function D(T,R){return[...new Set([...T,...R])].join("")}function _(T,R,j){let Q=m.getTokenBefore(T);return m.getCommentsInside(T).length===0&&(!Q||h.has(Q.value))&&k(R,j)}function B(T,R){let j=m.getTokenBefore(T),Q=m.getTokenAfter(T);return(j&&!o(j,R)&&j.range[1]===T.range[0]?" ":"")+R+(Q&&!o(R,Q)&&T.range[1]===Q.range[0]?" ":"")}return{Program(T){let R=m.getScope(T),j=new s(R),Q={RegExp:{[e]:!0,[t]:!0}};for(let{node:I}of j.iterateGlobalReferences(Q))if(d&&w(I)){let N=I.arguments[0];if(I.arguments.length===2){let F=[],U=v(I.arguments[1])||"";_(I,N.regex.pattern,U)&&F.push({messageId:"replaceWithLiteralAndFlags",pattern:N.regex.pattern,flags:U});let V=N.regex.flags||"",ae=D(V,U);!A(ae,U)&&_(I,N.regex.pattern,ae)&&F.push({messageId:"replaceWithIntendedLiteralAndFlags",pattern:N.regex.pattern,flags:ae}),f.report({node:I,messageId:"unexpectedRedundantRegExpWithFlags",suggest:F.map(({flags:se,pattern:xe,messageId:H})=>({messageId:H,data:{flags:se},fix(he){return he.replaceText(I,B(I,`/${xe}/${se}`))}}))})}else{let F=[];_(I,N.regex.pattern,N.regex.flags)&&F.push(m.getText(N)),f.report({node:I,messageId:"unexpectedRedundantRegExp",suggest:F.map(U=>({messageId:"replaceWithLiteral",fix(V){return V.replaceText(I,B(I,U))}}))})}}else if(S(I)){let N=v(I.arguments[0]),F=!1,U;if(I.arguments[1]&&(U=v(I.arguments[1])),_(I,N,U)||(F=!0),/^[-a-zA-Z0-9\\[\](){} \t\r\n\v\f!@#$%^&*+^_=/~`.>x+v.slice(S.range[1],y[w+1].range[0]),"")}function h(m,g,y){if(m.type==="Literal"&&typeof m.value=="string")return`\`${m.raw.slice(1,-1).replace(/\\*(\$\{|`)/gu,v=>v.lastIndexOf("\\")%2?`\\${v}`:v).replace(new RegExp(`\\\\${m.raw[0]}`,"gu"),m.raw[0])}\``;if(m.type==="TemplateLiteral")return u.getText(m);if(e(m)&&n(m)){let v=u.getFirstTokenBetween(m.left,m.right,C=>C.value==="+"),x=p(m.left,v),S=p(v,m.right),w=l(m.left),O=a(m.right);return w?h(m.left,g,x+S).slice(0,-1)+h(m.right,null,y).slice(1):O?h(m.left,g,null).slice(0,-1)+h(m.right,x+S,y).slice(1):`${h(m.left,g,null)}${x}+${S}${h(m.right,y,null)}`}return`\`\${${g||""}${u.getText(m)}${y||""}}\``}function f(m,g){let y=t(g.parent);return s(y)?null:m.replaceText(y,h(y,null,null))}function d(m){if(!r.isStringLiteral(m)||!e(m.parent))return;let g=t(m.parent);c[g.range[0]]||(c[g.range[0]]=!0,i(g)&&o.report({node:g,messageId:"unexpectedStringConcatenation",fix:y=>f(y,m)}))}return{Program(){c=Object.create(null)},Literal:d,TemplateLiteral:d}}},Xv}var Yv,jR;function eG(){if(jR)return Yv;jR=1;let r=vc(),e=Pe(),t=BO();return Yv={meta:{deprecated:!0,replacedBy:[],type:"suggestion",docs:{description:"Require quotes around object literal property names",recommended:!1,url:"https://eslint.org/docs/latest/rules/quote-props"},schema:{anyOf:[{type:"array",items:[{enum:["always","as-needed","consistent","consistent-as-needed"]}],minItems:0,maxItems:1},{type:"array",items:[{enum:["always","as-needed","consistent","consistent-as-needed"]},{type:"object",properties:{keywords:{type:"boolean"},unnecessary:{type:"boolean"},numbers:{type:"boolean"}},additionalProperties:!1}],minItems:0,maxItems:2}]},fixable:"code",messages:{requireQuotesDueToReservedWord:"Properties should be quoted as '{{property}}' is a reserved word.",inconsistentlyQuotedProperty:"Inconsistently quoted property '{{key}}' found.",unnecessarilyQuotedProperty:"Unnecessarily quoted property '{{property}}' found.",unquotedReservedProperty:"Unquoted reserved word '{{property}}' used as key.",unquotedNumericProperty:"Unquoted number literal '{{property}}' used as key.",unquotedPropertyFound:"Unquoted property '{{property}}' found.",redundantQuoting:"Properties shouldn't be quoted as all quotes are redundant."}},create(s){let n=s.options[0],i=s.options[1]&&s.options[1].keywords,a=!s.options[1]||s.options[1].unnecessary!==!1,l=s.options[1]&&s.options[1].numbers,o=s.sourceCode;function u(g){return t.includes(g)}function c(g,y,v){return y.length===1&&y[0].start===0&&y[0].end===g.length&&(["Identifier","Keyword","Null","Boolean"].includes(y[0].type)||y[0].type==="Numeric"&&!v&&String(+y[0].value)===y[0].value)}function p(g){return g.type==="Identifier"?g.name:g.value}function h(g){return g.type==="Literal"&&typeof g.value=="string"?o.getText(g):`"${g.type==="Identifier"?g.name:g.value}"`}function f(g){let y=g.key;if(!(g.method||g.computed||g.shorthand))if(y.type==="Literal"&&typeof y.value=="string"){let v;try{v=r.tokenize(y.value)}catch{return}if(v.length!==1||u(v[0].value)&&i)return;a&&c(y.value,v,l)&&s.report({node:g,messageId:"unnecessarilyQuotedProperty",data:{property:y.value},fix:S=>S.replaceText(y,p(y))})}else i&&y.type==="Identifier"&&u(y.name)?s.report({node:g,messageId:"unquotedReservedProperty",data:{property:y.name},fix:v=>v.replaceText(y,h(y))}):l&&y.type==="Literal"&&e.isNumericLiteral(y)&&s.report({node:g,messageId:"unquotedNumericProperty",data:{property:y.value},fix:v=>v.replaceText(y,h(y))})}function d(g){let y=g.key;!g.method&&!g.computed&&!g.shorthand&&!(y.type==="Literal"&&typeof y.value=="string")&&s.report({node:g,messageId:"unquotedPropertyFound",data:{property:y.name||y.value},fix:v=>v.replaceText(y,h(y))})}function m(g,y){let v=[],x=[],S=null,w=!1;g.properties.forEach(O=>{let C=O.key;if(!(!C||O.method||O.computed||O.shorthand))if(C.type==="Literal"&&typeof C.value=="string"){if(v.push(O),y){let E;try{E=r.tokenize(C.value)}catch{w=!0;return}w=w||!c(C.value,E)||i&&u(E[0].value)}}else i&&y&&C.type==="Identifier"&&u(C.name)?(x.push(O),w=!0,S=C.name):x.push(O)}),y&&v.length&&!w?v.forEach(O=>{s.report({node:O,messageId:"redundantQuoting",fix:C=>C.replaceText(O.key,p(O.key))})}):x.length&&S?x.forEach(O=>{s.report({node:O,messageId:"requireQuotesDueToReservedWord",data:{property:S},fix:C=>C.replaceText(O.key,h(O.key))})}):v.length&&x.length&&x.forEach(O=>{s.report({node:O,messageId:"inconsistentlyQuotedProperty",data:{key:O.key.name||O.key.value},fix:C=>C.replaceText(O.key,h(O.key))})})}return{Property(g){(n==="always"||!n)&&d(g),n==="as-needed"&&f(g)},ObjectExpression(g){n==="consistent"&&m(g,!1),n==="consistent-as-needed"&&m(g,!0)}}}},Yv}var Hv,qR;function tG(){if(qR)return Hv;qR=1;let r=Pe(),e={double:{quote:'"',alternateQuote:"'",description:"doublequote"},single:{quote:"'",alternateQuote:'"',description:"singlequote"},backtick:{quote:"`",alternateQuote:'"',description:"backtick"}},t=new RegExp(String.raw`(^|[^\\])(\\\\)*[${Array.from(r.LINEBREAKS).join("")}]`,"u");e.double.convert=e.single.convert=e.backtick.convert=function(n){let i=this.quote,a=n[0];return i===a?n:i+n.slice(1,-1).replace(/\\(\$\{|\r\n?|\n|.)|["'`]|\$\{|(\r\n?|\n)/gu,(l,o,u)=>o===a||a==="`"&&o==="${"?o:l===i||i==="`"&&l==="${"?`\\${l}`:u&&a==="`"?"\\n":l)+i};let s="avoid-escape";return Hv={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Enforce the consistent use of either backticks, double, or single quotes",recommended:!1,url:"https://eslint.org/docs/latest/rules/quotes"},fixable:"code",schema:[{enum:["single","double","backtick"]},{anyOf:[{enum:["avoid-escape"]},{type:"object",properties:{avoidEscape:{type:"boolean"},allowTemplateLiterals:{type:"boolean"}},additionalProperties:!1}]}],messages:{wrongQuotes:"Strings must use {{description}}."}},create(n){let i=n.options[0],a=e[i||"double"],l=n.options[1],o=l&&l.allowTemplateLiterals===!0,u=n.sourceCode,c=l&&l.avoidEscape===!0;l===s&&(c=!0);function p(g){return g.parent.type==="JSXAttribute"||g.parent.type==="JSXElement"||g.parent.type==="JSXFragment"}function h(g){return g.type==="ExpressionStatement"&&g.expression.type==="Literal"&&typeof g.expression.value=="string"&&!r.isParenthesised(u,g.expression)}function f(g){if(!r.isTopLevelExpressionStatement(g.parent))return!1;let y=g.parent.parent;for(let v=0;v0||g.quasis.length>=1&&t.test(g.quasis[0].value.raw))}return{Literal(g){let y=g.value,v=g.raw;if(a&&typeof y=="string"){let x=i==="backtick"&&d(g)||p(g)||r.isSurroundedBy(v,a.quote);!x&&c&&(x=r.isSurroundedBy(v,a.alternateQuote)&&v.includes(a.quote)),x||n.report({node:g,messageId:"wrongQuotes",data:{description:a.description},fix(S){return i==="backtick"&&r.hasOctalOrNonOctalDecimalEscapeSequence(v)?null:S.replaceText(g,a.convert(g.raw))}})}},TemplateLiteral(g){o||i==="backtick"||m(g)||n.report({node:g,messageId:"wrongQuotes",data:{description:a.description},fix(y){return r.isTopLevelExpressionStatement(g.parent)&&!r.isParenthesised(u,g)?null:y.replaceText(g,a.convert(u.getText(g)))}})}}}},Hv}var Kv,QR;function rG(){if(QR)return Kv;QR=1;let r=Pe(),e="always",t="as-needed",s=new Set(Array.from({length:35},(o,u)=>u+2));function n(o){return o.defs.length>=1}function i(o){return o.type==="MemberExpression"&&!o.computed&&o.property.type==="Identifier"&&o.property.name==="parseInt"}function a(o){return!(o.type==="Literal"&&!s.has(o.value)||o.type==="Identifier"&&o.name==="undefined")}function l(o){return o.type==="Literal"&&o.value===10}return Kv={meta:{type:"suggestion",docs:{description:"Enforce the consistent use of the radix argument when using `parseInt()`",recommended:!1,url:"https://eslint.org/docs/latest/rules/radix"},hasSuggestions:!0,schema:[{enum:["always","as-needed"]}],messages:{missingParameters:"Missing parameters.",redundantRadix:"Redundant radix parameter.",missingRadix:"Missing radix parameter.",invalidRadix:"Invalid radix parameter, must be an integer between 2 and 36.",addRadixParameter10:"Add radix parameter `10` for parsing decimal numbers."}},create(o){let u=o.options[0]||e,c=o.sourceCode;function p(h){let f=h.arguments;switch(f.length){case 0:o.report({node:h,messageId:"missingParameters"});break;case 1:u===e&&o.report({node:h,messageId:"missingRadix",suggest:[{messageId:"addRadixParameter10",fix(d){let m=c.getTokens(h),g=m.at(-1),y=m.at(-2),v=y.type==="Punctuator"&&y.value===",";return d.insertTextBefore(g,v?" 10,":", 10")}}]});break;default:u===t&&l(f[1])?o.report({node:h,messageId:"redundantRadix"}):a(f[1])||o.report({node:h,messageId:"invalidRadix"});break}}return{"Program:exit"(h){let f=c.getScope(h),d;d=r.getVariableByName(f,"parseInt"),d&&!n(d)&&d.references.forEach(m=>{let g=m.identifier;r.isCallee(g)&&p(g.parent)}),d=r.getVariableByName(f,"Number"),d&&!n(d)&&d.references.forEach(m=>{let g=m.identifier.parent,y=g.parent.type==="ChainExpression"?g.parent:g;i(g)&&r.isCallee(y)&&p(y.parent)})}}}},Kv}var Jv,UR;function nG(){if(UR)return Jv;UR=1;function r(n,i=new Map){for(let a of n.references)a.resolved!==null&&i.set(a.identifier,a);for(let a of n.childScopes)a.type!=="function"&&r(a,i);return i}function e(n){if(n.writeExpr)return n.writeExpr;let i=n.identifier;for(;i;){let a=i.parent.type;if(a==="AssignmentExpression"&&i.parent.left===i)return i.parent.right;if(a==="MemberExpression"&&i.parent.object===i){i=i.parent;continue}break}return null}function t(n,i){if(!n||i&&n.defs.some(l=>l.type==="Parameter"))return!1;let a=n.scope.variableScope;return n.references.every(l=>l.from.variableScope===a)}class s{constructor(){this.info=new WeakMap}initialize(i){let a=new Set,l=new Set;for(let o of i.prevSegments){let u=this.info.get(o);u&&(u.outdatedReadVariables.forEach(Set.prototype.add,a),u.freshReadVariables.forEach(Set.prototype.add,l))}this.info.set(i,{outdatedReadVariables:a,freshReadVariables:l})}markAsRead(i,a){for(let l of i){let o=this.info.get(l);o&&(o.freshReadVariables.add(a),o.outdatedReadVariables.delete(a))}}makeOutdated(i){for(let a of i){let l=this.info.get(a);l&&(l.freshReadVariables.forEach(Set.prototype.add,l.outdatedReadVariables),l.freshReadVariables.clear())}}isOutdated(i,a){for(let l of i){let o=this.info.get(l);if(o&&o.outdatedReadVariables.has(a))return!0}return!1}}return Jv={meta:{type:"problem",docs:{description:"Disallow assignments that can lead to race conditions due to usage of `await` or `yield`",recommended:!1,url:"https://eslint.org/docs/latest/rules/require-atomic-updates"},fixable:null,schema:[{type:"object",properties:{allowProperties:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{nonAtomicUpdate:"Possible race condition: `{{value}}` might be reassigned based on an outdated value of `{{value}}`.",nonAtomicObjectUpdate:"Possible race condition: `{{value}}` might be assigned based on an outdated state of `{{object}}`."}},create(n){let i=!!n.options[0]&&n.options[0].allowProperties,a=n.sourceCode,l=new Map,o=new s,u=null;return{onCodePathStart(c,p){let h=a.getScope(p),f=h.type==="function"&&(h.block.async||h.block.generator);u={upper:u,codePath:c,referenceMap:f?r(h):null,currentSegments:new Set}},onCodePathEnd(){u=u.upper},onCodePathSegmentStart(c){o.initialize(c),u.currentSegments.add(c)},onUnreachableCodePathSegmentStart(c){u.currentSegments.add(c)},onUnreachableCodePathSegmentEnd(c){u.currentSegments.delete(c)},onCodePathSegmentEnd(c){u.currentSegments.delete(c)},Identifier(c){let{referenceMap:p}=u,h=p&&p.get(c);if(!h)return;let f=h.resolved,d=e(h),m=h.identifier.parent.type==="MemberExpression";if(h.isRead()&&!(d&&d.parent.operator==="=")&&o.markAsRead(u.currentSegments,f),d&&d.parent.right===d&&!t(f,m)){let g=l.get(d);g||(g=[],l.set(d,g)),g.push(h)}},":expression:exit"(c){if(!u.referenceMap)return;(c.type==="AwaitExpression"||c.type==="YieldExpression")&&o.makeOutdated(u.currentSegments);let p=l.get(c);if(p){l.delete(c);for(let h of p){let f=h.resolved;o.isOutdated(u.currentSegments,f)&&(c.parent.left===h.identifier?n.report({node:c.parent,messageId:"nonAtomicUpdate",data:{value:f.name}}):i||n.report({node:c.parent,messageId:"nonAtomicObjectUpdate",data:{value:a.getText(c.parent.left),object:f.name}}))}}}}}},Jv}var ex,VR;function sG(){if(VR)return ex;VR=1;let r=Pe();function e(t){return t[0].toUpperCase()+t.slice(1)}return ex={meta:{type:"suggestion",docs:{description:"Disallow async functions which have no `await` expression",recommended:!1,url:"https://eslint.org/docs/latest/rules/require-await"},schema:[],messages:{missingAwait:"{{name}} has no 'await' expression."}},create(t){let s=t.sourceCode,n=null;function i(){n={upper:n,hasAwait:!1}}function a(l){!l.generator&&l.async&&!n.hasAwait&&!r.isEmptyFunction(l)&&t.report({node:l,loc:r.getFunctionHeadLoc(l,s),messageId:"missingAwait",data:{name:e(r.getFunctionNameWithKind(l))}}),n=n.upper}return{FunctionDeclaration:i,FunctionExpression:i,ArrowFunctionExpression:i,"FunctionDeclaration:exit":a,"FunctionExpression:exit":a,"ArrowFunctionExpression:exit":a,AwaitExpression(){n&&(n.hasAwait=!0)},ForOfStatement(l){n&&l.await&&(n.hasAwait=!0)}}}},ex}var tx,WR;function iG(){if(WR)return tx;WR=1;let{CALL:r,CONSTRUCT:e,ReferenceTracker:t,getStringIfConstant:s}=hr(),n=Pe(),{isValidWithUnicodeFlag:i}=NO();return tx={meta:{type:"suggestion",docs:{description:"Enforce the use of `u` or `v` flag on RegExp",recommended:!1,url:"https://eslint.org/docs/latest/rules/require-unicode-regexp"},hasSuggestions:!0,messages:{addUFlag:"Add the 'u' flag.",requireUFlag:"Use the 'u' flag."},schema:[]},create(a){let l=a.sourceCode;return{"Literal[regex]"(o){let u=o.regex.flags||"";!u.includes("u")&&!u.includes("v")&&a.report({messageId:"requireUFlag",node:o,suggest:i(a.languageOptions.ecmaVersion,o.regex.pattern)?[{fix(c){return c.insertTextAfter(o,"u")},messageId:"addUFlag"}]:null})},Program(o){let u=l.getScope(o),c=new t(u),p={RegExp:{[r]:!0,[e]:!0}};for(let{node:h}of c.iterateGlobalReferences(p)){let[f,d]=h.arguments;if(f&&f.type==="SpreadElement")continue;let m=s(f,u),g=s(d,u);(!d||typeof g=="string"&&!g.includes("u")&&!g.includes("v"))&&a.report({messageId:"requireUFlag",node:h,suggest:typeof m=="string"&&i(a.languageOptions.ecmaVersion,m)?[{fix(y){if(d){if(d.type==="Literal"&&typeof d.value=="string"||d.type==="TemplateLiteral"){let x=l.getText(d);return y.replaceText(d,[x.slice(0,x.length-1),x.slice(x.length-1)].join("u"))}return null}let v=l.getLastToken(h,{skip:1});return y.insertTextAfter(v,n.isCommaToken(v)?' "u",':', "u"')},messageId:"addUFlag"}]:null})}}}}},tx}var rx,zR;function aG(){return zR||(zR=1,rx={meta:{type:"suggestion",docs:{description:"Require generator functions to contain `yield`",recommended:!0,url:"https://eslint.org/docs/latest/rules/require-yield"},schema:[],messages:{missingYield:"This generator function does not have 'yield'."}},create(r){let e=[];function t(n){n.generator&&e.push(0)}function s(n){if(!n.generator)return;e.pop()===0&&n.body.body.length>0&&r.report({node:n,messageId:"missingYield"})}return{FunctionDeclaration:t,"FunctionDeclaration:exit":s,FunctionExpression:t,"FunctionExpression:exit":s,YieldExpression(){e.length>0&&(e[e.length-1]+=1)}}}}),rx}var nx,ZR;function oG(){return ZR||(ZR=1,nx={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Enforce spacing between rest and spread operators and their expressions",recommended:!1,url:"https://eslint.org/docs/latest/rules/rest-spread-spacing"},fixable:"whitespace",schema:[{enum:["always","never"]}],messages:{unexpectedWhitespace:"Unexpected whitespace after {{type}} operator.",expectedWhitespace:"Expected whitespace after {{type}} operator."}},create(r){let e=r.sourceCode,t=r.options[0]==="always";function s(n){let i=e.getFirstToken(n),a=e.getTokenAfter(i),l=e.isSpaceBetweenTokens(i,a),o;switch(n.type){case"SpreadElement":o="spread",n.parent.type==="ObjectExpression"&&(o+=" property");break;case"RestElement":o="rest",n.parent.type==="ObjectPattern"&&(o+=" property");break;case"ExperimentalSpreadProperty":o="spread property";break;case"ExperimentalRestProperty":o="rest property";break;default:return}t&&!l?r.report({node:n,loc:i.loc,messageId:"expectedWhitespace",data:{type:o},fix(u){return u.replaceTextRange([i.range[1],a.range[0]]," ")}}):!t&&l&&r.report({node:n,loc:{start:i.loc.end,end:a.loc.start},messageId:"unexpectedWhitespace",data:{type:o},fix(u){return u.removeRange([i.range[1],a.range[0]])}})}return{SpreadElement:s,RestElement:s,ExperimentalSpreadProperty:s,ExperimentalRestProperty:s}}}),nx}var sx,GR;function lG(){if(GR)return sx;GR=1;let r=Zo(),e=Pe();return sx={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Require or disallow semicolons instead of ASI",recommended:!1,url:"https://eslint.org/docs/latest/rules/semi"},fixable:"code",schema:{anyOf:[{type:"array",items:[{enum:["never"]},{type:"object",properties:{beforeStatementContinuationChars:{enum:["always","any","never"]}},additionalProperties:!1}],minItems:0,maxItems:2},{type:"array",items:[{enum:["always"]},{type:"object",properties:{omitLastInOneLineBlock:{type:"boolean"},omitLastInOneLineClassBody:{type:"boolean"}},additionalProperties:!1}],minItems:0,maxItems:2}]},messages:{missingSemi:"Missing semicolon.",extraSemi:"Extra semicolon."}},create(t){let s=/^[-[(/+`]/u,n=new Set(["get","set","static"]),i=new Set(["*","in","instanceof"]),a=t.options[1],l=t.options[0]==="never",o=!!(a&&a.omitLastInOneLineBlock),u=!!(a&&a.omitLastInOneLineClassBody),c=a&&a.beforeStatementContinuationChars||"any",p=t.sourceCode;function h(E,k){let A=p.getLastToken(E),D,_,B;k?(D="extraSemi",B=A.loc,_=function(T){return new r(T,p).retainSurroundingTokens(A).remove(A)}):(D="missingSemi",B={start:A.loc.end,end:e.getNextLocation(p,A.loc.end)},_=function(T){return T.insertTextAfter(A,";")}),t.report({node:E,loc:B,messageId:D,fix:_})}function f(E){let k=p.getTokenAfter(E);return!k||e.isClosingBraceToken(k)||e.isSemicolonToken(k)}function d(E){if(!e.isClosingBraceToken(E))return!1;let k=p.getNodeByRangeIndex(E.range[0]);return k.type==="BlockStatement"&&k.parent.type==="ArrowFunctionExpression"}function m(E){if(E.type!=="PropertyDefinition")return!1;if(!E.computed&&E.key.type==="Identifier"&&n.has(E.key.name)&&!(E.static&&E.key.name==="static")&&!E.value)return!0;let A=p.getTokenAfter(E);return i.has(A.value)}function g(E){let k=p.getLastToken(E,1),A=p.getTokenAfter(E);return!!A&&e.isTokenOnSameLine(k,A)}function y(E){let k=E.type;return k==="DoWhileStatement"||k==="BreakStatement"||k==="ContinueStatement"||k==="DebuggerStatement"||k==="ImportDeclaration"||k==="ExportAllDeclaration"?!1:k==="ReturnStatement"?!!E.argument:k==="ExportNamedDeclaration"?!!E.declaration:!d(p.getLastToken(E,1))}function v(E){return!!E&&s.test(E.value)&&E.value!=="++"&&E.value!=="--"}function x(E){return f(p.getLastToken(E))?!0:m(E)||g(E)?!1:E.type!=="PropertyDefinition"&&c==="never"&&!y(E)||!v(p.getTokenAfter(E))}function S(E){let k=E.parent,A=p.getTokenAfter(E);return!A||A.value!=="}"?!1:k.type==="BlockStatement"?k.loc.start.line===k.loc.end.line:k.type==="StaticBlock"?p.getFirstToken(k,{skip:1}).loc.start.line===k.loc.end.line:!1}function w(E){let k=E.parent,A=p.getTokenAfter(E);return!A||A.value!=="}"?!1:k.type==="ClassBody"?k.loc.start.line===k.loc.end.line:!1}function O(E){let k=e.isSemicolonToken(p.getLastToken(E));if(l)k&&x(E)?h(E,!0):!k&&c==="always"&&E.type!=="PropertyDefinition"&&v(p.getTokenAfter(E))&&h(E);else{let A=o&&S(E),D=u&&w(E),_=A||D;k&&_?h(E,!0):!k&&!_&&h(E)}}function C(E){let k=E.parent;(k.type!=="ForStatement"||k.init!==E)&&(!/^For(?:In|Of)Statement/u.test(k.type)||k.left!==E)&&O(E)}return{VariableDeclaration:C,ExpressionStatement:O,ReturnStatement:O,ThrowStatement:O,DoWhileStatement:O,DebuggerStatement:O,BreakStatement:O,ContinueStatement:O,ImportDeclaration:O,ExportAllDeclaration:O,ExportNamedDeclaration(E){E.declaration||O(E)},ExportDefaultDeclaration(E){/(?:Class|Function)Declaration/u.test(E.declaration.type)||O(E)},PropertyDefinition:O}}},sx}var ix,XR;function uG(){if(XR)return ix;XR=1;let r=Pe();return ix={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Enforce consistent spacing before and after semicolons",recommended:!1,url:"https://eslint.org/docs/latest/rules/semi-spacing"},fixable:"whitespace",schema:[{type:"object",properties:{before:{type:"boolean",default:!1},after:{type:"boolean",default:!0}},additionalProperties:!1}],messages:{unexpectedWhitespaceBefore:"Unexpected whitespace before semicolon.",unexpectedWhitespaceAfter:"Unexpected whitespace after semicolon.",missingWhitespaceBefore:"Missing whitespace before semicolon.",missingWhitespaceAfter:"Missing whitespace after semicolon."}},create(e){let t=e.options[0],s=e.sourceCode,n=!1,i=!0;typeof t=="object"&&(n=t.before,i=t.after);function a(f){let d=s.getTokenBefore(f);return d&&r.isTokenOnSameLine(d,f)&&s.isSpaceBetweenTokens(d,f)}function l(f){let d=s.getTokenAfter(f);return d&&r.isTokenOnSameLine(f,d)&&s.isSpaceBetweenTokens(f,d)}function o(f){let d=s.getTokenAfter(f);return!(d&&r.isTokenOnSameLine(f,d))}function u(f){let d=s.getTokenBefore(f);return!(d&&r.isTokenOnSameLine(f,d))}function c(f){let d=s.getTokenAfter(f);return d&&r.isClosingBraceToken(d)||r.isClosingParenToken(d)}function p(f,d){if(r.isSemicolonToken(f)){if(a(f)){if(!n){let m=s.getTokenBefore(f),g={start:m.loc.end,end:f.loc.start};e.report({node:d,loc:g,messageId:"unexpectedWhitespaceBefore",fix(y){return y.removeRange([m.range[1],f.range[0]])}})}}else if(n){let m=f.loc;e.report({node:d,loc:m,messageId:"missingWhitespaceBefore",fix(g){return g.insertTextBefore(f," ")}})}if(!u(f)&&!o(f)&&!c(f)){if(l(f)){if(!i){let m=s.getTokenAfter(f),g={start:f.loc.end,end:m.loc.start};e.report({node:d,loc:g,messageId:"unexpectedWhitespaceAfter",fix(y){return y.removeRange([f.range[1],m.range[0]])}})}}else if(i){let m=f.loc;e.report({node:d,loc:m,messageId:"missingWhitespaceAfter",fix(g){return g.insertTextAfter(f," ")}})}}}}function h(f){let d=s.getLastToken(f);p(d,f)}return{VariableDeclaration:h,ExpressionStatement:h,BreakStatement:h,ContinueStatement:h,DebuggerStatement:h,DoWhileStatement:h,ReturnStatement:h,ThrowStatement:h,ImportDeclaration:h,ExportNamedDeclaration:h,ExportAllDeclaration:h,ExportDefaultDeclaration:h,ForStatement(f){f.init&&p(s.getTokenAfter(f.init),f),f.test&&p(s.getTokenAfter(f.test),f)},PropertyDefinition:h}}},ix}var ax,YR;function cG(){if(YR)return ax;YR=1;let r=Pe(),e=["BreakStatement","ContinueStatement","DebuggerStatement","DoWhileStatement","ExportAllDeclaration","ExportDefaultDeclaration","ExportNamedDeclaration","ExpressionStatement","ImportDeclaration","ReturnStatement","ThrowStatement","VariableDeclaration","PropertyDefinition"].join(",");function t(n){let i=n.type;return i==="BlockStatement"||i==="StaticBlock"||i==="Program"||i==="ClassBody"?n.body:i==="SwitchCase"?n.consequent:null}function s(n){let i=n.parent.type;if(i==="IfStatement"&&n.parent.consequent===n&&n.parent.alternate||i==="DoWhileStatement")return!0;let a=t(n.parent);return a!==null&&a.at(-1)===n}return ax={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Enforce location of semicolons",recommended:!1,url:"https://eslint.org/docs/latest/rules/semi-style"},schema:[{enum:["last","first"]}],fixable:"whitespace",messages:{expectedSemiColon:"Expected this semicolon to be at {{pos}}."}},create(n){let i=n.sourceCode,a=n.options[0]||"last";function l(o,u){let c=i.getTokenBefore(o),p=i.getTokenAfter(o),h=!c||r.isTokenOnSameLine(c,o),f=!p||r.isTokenOnSameLine(o,p);(u==="last"&&!h||u==="first"&&!f)&&n.report({loc:o.loc,messageId:"expectedSemiColon",data:{pos:u==="last"?"the end of the previous line":"the beginning of the next line"},fix(d){if(c&&p&&i.commentsExistBetween(c,p))return null;let m=c?c.range[1]:o.range[0],g=p?p.range[0]:o.range[1],y=u==="last"?`; `:` -;`;return d.replaceTextRange([m,g],y)}})}return{[e](o){if(a==="first"&&s(o))return;let u=i.getLastToken(o);r.isSemicolonToken(u)&&l(u,a)},ForStatement(o){let u=o.init&&i.getTokenAfter(o.init,r.isSemicolonToken),c=o.test&&i.getTokenAfter(o.test,r.isSemicolonToken);u&&l(u,"last"),c&&l(c,"last")}}}},ov}var lv,JF;function fX(){return JF||(JF=1,lv={meta:{type:"suggestion",docs:{description:"Enforce sorted import declarations within modules",recommended:!1,url:"https://eslint.org/docs/latest/rules/sort-imports"},schema:[{type:"object",properties:{ignoreCase:{type:"boolean",default:!1},memberSyntaxSortOrder:{type:"array",items:{enum:["none","all","multiple","single"]},uniqueItems:!0,minItems:4,maxItems:4},ignoreDeclarationSort:{type:"boolean",default:!1},ignoreMemberSort:{type:"boolean",default:!1},allowSeparatedGroups:{type:"boolean",default:!1}},additionalProperties:!1}],fixable:"code",messages:{sortImportsAlphabetically:"Imports should be sorted alphabetically.",sortMembersAlphabetically:"Member '{{memberName}}' of the import declaration should be sorted alphabetically.",unexpectedSyntaxOrder:"Expected '{{syntaxA}}' syntax before '{{syntaxB}}' syntax."}},create(r){let e=r.options[0]||{},t=e.ignoreCase||!1,s=e.ignoreDeclarationSort||!1,n=e.ignoreMemberSort||!1,i=e.memberSyntaxSortOrder||["none","all","multiple","single"],a=e.allowSeparatedGroups||!1,l=r.sourceCode,o=null;function u(f){return f.specifiers.length===0?"none":f.specifiers[0].type==="ImportNamespaceSpecifier"?"all":f.specifiers.length===1?"single":"multiple"}function c(f){return i.indexOf(u(f))}function p(f){return f.specifiers[0]?f.specifiers[0].local.name:null}function h(f,d){return Math.max(d.loc.start.line-f.loc.end.line-1,0)}return{ImportDeclaration(f){if(!s){if(o&&a&&h(o,f)>0&&(o=null),o){let d=c(f),m=c(o),g=p(f),y=p(o);t&&(y=y&&y.toLowerCase(),g=g&&g.toLowerCase()),d!==m?dy.type==="ImportSpecifier"),m=t?y=>y.local.name.toLowerCase():y=>y.local.name,g=d.map(m).findIndex((y,b,v)=>v[b-1]>y);g!==-1&&r.report({node:d[g],messageId:"sortMembersAlphabetically",data:{memberName:d[g].local.name},fix(y){return d.some(b=>l.getCommentsBefore(b).length||l.getCommentsAfter(b).length)?null:y.replaceTextRange([d[0].range[0],d.at(-1).range[1]],d.slice().sort((b,v)=>{let S=m(b),C=m(v);return S>C?1:-1}).reduce((b,v,S)=>{let C=S===d.length-1?"":l.getText().slice(d[S].range[1],d[S+1].range[0]);return b+l.getText(v)+C},""))}})}}}}}),lv}var uv={exports:{}},eR;function pX(){if(eR)return uv.exports;eR=1;var r=function(e,t){var s,n,i=1,a=0,l=0,o=String.alphabet;function u(c,p,h){if(h){for(s=p;h=u(c,s),h<76&&h>65;)++s;return+c.slice(p-1,s)}return h=o&&o.indexOf(c.charAt(p)),h>-1?h+76:(h=c.charCodeAt(p)||0,h<45||h>127?h:h<46?65:h<48?h-1:h<58?h+18:h<65?h-11:h<91?h+11:h<97?h-37:h<123?h+5:h-63)}if((e+="")!=(t+="")){for(;i;)if(n=u(e,a++),i=u(t,l++),n<76&&i<76&&n>66&&i>66&&(n=u(e,a,a),i=u(t,l,a=s),l=s),n!=i)return n{let O=b[C-1];O&&S.loc.start.line-O.loc.end.line>1&&(v=!0)}),!v&&d.loc.start.line-b.at(-1).loc.end.line>1&&(v=!0),!v&&b[0].loc.start.line-h.prevNode.loc.end.line>1&&(v=!0)),h.prevNode=d,y!==null&&(h.prevName=y),c&&v){h.prevBlankLine=y===null;return}m===null||y===null||gu.id.type==="Identifier"),a=t?u=>u.id.name.toLowerCase():u=>u.id.name,l=i.some(u=>u.init!==null&&u.init.type!=="Literal"),o=!1;i.slice(1).reduce((u,c)=>{let p=a(u);return a(c){let g=a(d),y=a(m);return g>y?1:-1}).reduce((d,m,g)=>{let y=g===i.length-1?"":s.getText().slice(i[g].range[1],i[g+1].range[0]);return d+s.getText(m)+y},""))}}),o=!0,u):c},i[0])}}}}),fv}var pv,nR;function mX(){if(nR)return pv;nR=1;let r=Pe();function e(t){let s=t.parent;return t.type==="BlockStatement"&&r.isFunction(s)&&s.body===t}return pv={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Enforce consistent spacing before blocks",recommended:!1,url:"https://eslint.org/docs/latest/rules/space-before-blocks"},fixable:"whitespace",schema:[{oneOf:[{enum:["always","never"]},{type:"object",properties:{keywords:{enum:["always","never","off"]},functions:{enum:["always","never","off"]},classes:{enum:["always","never","off"]}},additionalProperties:!1}]}],messages:{unexpectedSpace:"Unexpected space before opening brace.",missingSpace:"Missing space before opening brace."}},create(t){let s=t.options[0],n=t.sourceCode,i=!0,a=!0,l=!0,o=!1,u=!1,c=!1;typeof s=="object"?(i=s.functions==="always",a=s.keywords==="always",l=s.classes==="always",o=s.functions==="never",u=s.keywords==="never",c=s.classes==="never"):s==="never"&&(i=!1,a=!1,l=!1,o=!0,u=!0,c=!0);function p(d,m){return r.isArrowToken(d)||r.isKeywordToken(d)&&!e(m)||r.isColonToken(d)&&m.parent&&m.parent.type==="SwitchCase"&&d===r.getSwitchCaseColonToken(m.parent,n)}function h(d){let m=n.getTokenBefore(d);if(m&&!p(m,d)&&r.isTokenOnSameLine(m,d)){let g=n.isSpaceBetweenTokens(m,d),y,b;e(d)?(y=i,b=o):d.type==="ClassBody"?(y=l,b=c):(y=a,b=u),y&&!g?t.report({node:d,messageId:"missingSpace",fix(v){return v.insertTextBefore(d," ")}}):b&&g&&t.report({node:d,messageId:"unexpectedSpace",fix(v){return v.removeRange([m.range[1],d.range[0]])}})}}function f(d){let m=d.cases,g;m.length>0?g=n.getTokenBefore(m[0]):g=n.getLastToken(d,1),h(g)}return{BlockStatement:h,ClassBody:h,SwitchStatement:f}}},pv}var hv,sR;function gX(){if(sR)return hv;sR=1;let r=Pe();return hv={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Enforce consistent spacing before `function` definition opening parenthesis",recommended:!1,url:"https://eslint.org/docs/latest/rules/space-before-function-paren"},fixable:"whitespace",schema:[{oneOf:[{enum:["always","never"]},{type:"object",properties:{anonymous:{enum:["always","never","ignore"]},named:{enum:["always","never","ignore"]},asyncArrow:{enum:["always","never","ignore"]}},additionalProperties:!1}]}],messages:{unexpectedSpace:"Unexpected space before function parentheses.",missingSpace:"Missing space before function parentheses."}},create(e){let t=e.sourceCode,s=typeof e.options[0]=="string"?e.options[0]:"always",n=typeof e.options[0]=="object"?e.options[0]:{};function i(o){if(o.id)return!0;let u=o.parent;return u.type==="MethodDefinition"||u.type==="Property"&&(u.kind==="get"||u.kind==="set"||u.method)}function a(o){if(o.type==="ArrowFunctionExpression"){if(o.async&&r.isOpeningParenToken(t.getFirstToken(o,{skip:1})))return n.asyncArrow||s}else{if(i(o))return n.named||s;if(!o.generator)return n.anonymous||s}return"ignore"}function l(o){let u=a(o);if(u==="ignore")return;let c=t.getFirstToken(o,r.isOpeningParenToken),p=t.getTokenBefore(c),h=t.isSpaceBetweenTokens(p,c);h&&u==="never"?e.report({node:o,loc:{start:p.loc.end,end:c.loc.start},messageId:"unexpectedSpace",fix(f){let d=t.getCommentsBefore(c);return d.some(m=>m.type==="Line")?null:f.replaceTextRange([p.range[1],c.range[0]],d.reduce((m,g)=>m+t.getText(g),""))}}):!h&&u==="always"&&e.report({node:o,loc:c.loc,messageId:"missingSpace",fix:f=>f.insertTextAfter(p," ")})}return{ArrowFunctionExpression:l,FunctionDeclaration:l,FunctionExpression:l}}},hv}var dv,iR;function yX(){if(iR)return dv;iR=1;let r=Pe();return dv={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Enforce consistent spacing inside parentheses",recommended:!1,url:"https://eslint.org/docs/latest/rules/space-in-parens"},fixable:"whitespace",schema:[{enum:["always","never"]},{type:"object",properties:{exceptions:{type:"array",items:{enum:["{}","[]","()","empty"]},uniqueItems:!0}},additionalProperties:!1}],messages:{missingOpeningSpace:"There must be a space after this paren.",missingClosingSpace:"There must be a space before this paren.",rejectedOpeningSpace:"There should be no space after this paren.",rejectedClosingSpace:"There should be no space before this paren."}},create(e){let t=e.options[0]==="always",s=e.options[1]&&e.options[1].exceptions||[],n={},i;s.length&&(n.braceException=s.includes("{}"),n.bracketException=s.includes("[]"),n.parenException=s.includes("()"),n.empty=s.includes("empty"));function a(){let d=[],m=[];return n.braceException&&(d.push("{"),m.push("}")),n.bracketException&&(d.push("["),m.push("]")),n.parenException&&(d.push("("),m.push(")")),n.empty&&(d.push(")"),m.push("(")),{openers:d,closers:m}}let l=e.sourceCode;function o(d){return i.openers.includes(d.value)}function u(d){return i.closers.includes(d.value)}function c(d,m){return l.isSpaceBetweenTokens(d,m)||!n.empty&&r.isClosingParenToken(m)?!1:t?!o(m):o(m)}function p(d,m){return!r.isTokenOnSameLine(d,m)||m.type==="Line"||!l.isSpaceBetweenTokens(d,m)?!1:t?o(m):!o(m)}function h(d,m){return l.isSpaceBetweenTokens(d,m)||!n.empty&&r.isOpeningParenToken(d)?!1:t?!u(d):u(d)}function f(d,m){return!r.isTokenOnSameLine(d,m)||!l.isSpaceBetweenTokens(d,m)?!1:t?u(d):!u(d)}return{Program:function(m){i=a();let g=l.tokensAndComments;g.forEach((y,b)=>{let v=g[b-1],S=g[b+1];!r.isOpeningParenToken(y)&&!r.isClosingParenToken(y)||(y.value==="("&&c(y,S)&&e.report({node:m,loc:y.loc,messageId:"missingOpeningSpace",fix(C){return C.insertTextAfter(y," ")}}),y.value==="("&&p(y,S)&&e.report({node:m,loc:{start:y.loc.end,end:S.loc.start},messageId:"rejectedOpeningSpace",fix(C){return C.removeRange([y.range[1],S.range[0]])}}),y.value===")"&&h(v,y)&&e.report({node:m,loc:y.loc,messageId:"missingClosingSpace",fix(C){return C.insertTextBefore(y," ")}}),y.value===")"&&f(v,y)&&e.report({node:m,loc:{start:v.loc.end,end:y.loc.start},messageId:"rejectedClosingSpace",fix(C){return C.removeRange([v.range[1],y.range[0]])}}))})}}}},dv}var mv,aR;function xX(){if(aR)return mv;aR=1;let{isEqToken:r}=Pe();return mv={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Require spacing around infix operators",recommended:!1,url:"https://eslint.org/docs/latest/rules/space-infix-ops"},fixable:"whitespace",schema:[{type:"object",properties:{int32Hint:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{missingSpace:"Operator '{{operator}}' must be spaced."}},create(e){let t=e.options[0]?e.options[0].int32Hint===!0:!1,s=e.sourceCode;function n(u,c,p){let h=s.getFirstTokenBetween(u,c,m=>m.value===p),f=s.getTokenBefore(h),d=s.getTokenAfter(h);return!s.isSpaceBetweenTokens(f,h)||!s.isSpaceBetweenTokens(h,d)?h:null}function i(u,c){e.report({node:u,loc:c.loc,messageId:"missingSpace",data:{operator:c.value},fix(p){let h=s.getTokenBefore(c),f=s.getTokenAfter(c),d="";return c.range[0]-h.range[1]===0&&(d=" "),d+=c.value,f.range[0]-c.range[1]===0&&(d+=" "),p.replaceText(c,d)}})}function a(u){let c=u.left.typeAnnotation?u.left.typeAnnotation:u.left,p=u.right,h=u.operator||"=",f=n(c,p,h);f&&(t&&s.getText(u).endsWith("|0")||i(u,f))}function l(u){let c=n(u.test,u.consequent,"?"),p=n(u.consequent,u.alternate,":");c&&i(u,c),p&&i(u,p)}function o(u){let c=u.id.typeAnnotation?u.id.typeAnnotation:u.id,p=u.init;if(p){let h=n(c,p,"=");h&&i(u,h)}}return{AssignmentExpression:a,AssignmentPattern:a,BinaryExpression:a,LogicalExpression:a,ConditionalExpression:l,VariableDeclarator:o,PropertyDefinition(u){if(!u.value)return;let c=s.getTokenBefore(u.value,r),p=s.getTokenBefore(c),h=s.getTokenAfter(c);(!s.isSpaceBetweenTokens(p,c)||!s.isSpaceBetweenTokens(c,h))&&i(u,c)}}}},mv}var gv,oR;function bX(){if(oR)return gv;oR=1;let r=Pe();return gv={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Enforce consistent spacing before or after unary operators",recommended:!1,url:"https://eslint.org/docs/latest/rules/space-unary-ops"},fixable:"whitespace",schema:[{type:"object",properties:{words:{type:"boolean",default:!0},nonwords:{type:"boolean",default:!1},overrides:{type:"object",additionalProperties:{type:"boolean"}}},additionalProperties:!1}],messages:{unexpectedBefore:"Unexpected space before unary operator '{{operator}}'.",unexpectedAfter:"Unexpected space after unary operator '{{operator}}'.",unexpectedAfterWord:"Unexpected space after unary word operator '{{word}}'.",wordOperator:"Unary word operator '{{word}}' must be followed by whitespace.",operator:"Unary operator '{{operator}}' must be followed by whitespace.",beforeUnaryExpressions:"Space is required before unary expressions '{{token}}'."}},create(e){let t=e.options[0]||{words:!0,nonwords:!1},s=e.sourceCode;function n(m){return m&&m.type==="UnaryExpression"&&m.argument.operator==="!"&&m.argument&&m.argument.type==="UnaryExpression"&&m.argument.operator==="!"}function i(m){return t.overrides&&Object.hasOwn(t.overrides,m)}function a(m){return t.overrides[m]}function l(m,g,y,b){y.range[0]===g.range[1]&&e.report({node:m,messageId:"wordOperator",data:{word:b},fix(v){return v.insertTextAfter(g," ")}})}function o(m,g,y,b){r.canTokensBeAdjacent(g,y)&&y.range[0]>g.range[1]&&e.report({node:m,messageId:"unexpectedAfterWord",data:{word:b},fix(v){return v.removeRange([g.range[1],y.range[0]])}})}function u(m,g,y,b){i(b)?a(b)?l(m,g,y,b):o(m,g,y,b):t.words?l(m,g,y,b):o(m,g,y,b)}function c(m){let g=s.getFirstTokens(m,3),y="yield";!m.argument||m.delegate||u(m,g[0],g[1],y)}function p(m){let g=s.getFirstTokens(m,3);u(m,g[0],g[1],"await")}function h(m,g,y){if(m.prefix){if(n(m))return;g.range[1]===y.range[0]&&e.report({node:m,messageId:"operator",data:{operator:g.value},fix(b){return b.insertTextAfter(g," ")}})}else g.range[1]===y.range[0]&&e.report({node:m,messageId:"beforeUnaryExpressions",data:{token:y.value},fix(b){return b.insertTextBefore(y," ")}})}function f(m,g,y){m.prefix?y.range[0]>g.range[1]&&e.report({node:m,messageId:"unexpectedAfter",data:{operator:g.value},fix(b){return r.canTokensBeAdjacent(g,y)?b.removeRange([g.range[1],y.range[0]]):null}}):y.range[0]>g.range[1]&&e.report({node:m,messageId:"unexpectedBefore",data:{operator:y.value},fix(b){return b.removeRange([g.range[1],y.range[0]])}})}function d(m){let g=m.type==="UpdateExpression"&&!m.prefix?s.getLastTokens(m,2):s.getFirstTokens(m,2),y=g[0],b=g[1];if((m.type==="NewExpression"||m.prefix)&&y.type==="Keyword"){u(m,y,b,y.value);return}let v=m.prefix?g[0].value:g[1].value;i(v)?a(v)?h(m,y,b):f(m,y,b):t.nonwords?h(m,y,b):f(m,y,b)}return{UnaryExpression:d,UpdateExpression:d,NewExpression:d,YieldExpression:c,AwaitExpression:p}}},gv}var yv,lR;function vX(){if(lR)return yv;lR=1;let r=Sc(),e=Pe();function t(o){return`(?:${r(o)})`}function s(o){return`${t(o)}+`}function n(o){return o.includes("*")?o:o.concat("*")}function i(o){let u="";return o.length===0?u+="\\s":(u+="(?:\\s|",o.length===1?u+=s(o[0]):(u+="(?:",u+=o.map(s).join("|"),u+=")"),u+=`(?:$|[${Array.from(e.LINEBREAKS).join("")}]))`),u}function a(o,u){let c="^";return o.length===1?c+=t(o[0]):(c+="(?:",c+=o.map(t).join("|"),c+=")"),c+="?",c+=i(u),new RegExp(c,"u")}function l(o){let u=`^(${o.map(t).join("|")})?[ ]+`;return new RegExp(u,"u")}return yv={meta:{deprecated:!0,replacedBy:[],type:"suggestion",docs:{description:"Enforce consistent spacing after the `//` or `/*` in a comment",recommended:!1,url:"https://eslint.org/docs/latest/rules/spaced-comment"},fixable:"whitespace",schema:[{enum:["always","never"]},{type:"object",properties:{exceptions:{type:"array",items:{type:"string"}},markers:{type:"array",items:{type:"string"}},line:{type:"object",properties:{exceptions:{type:"array",items:{type:"string"}},markers:{type:"array",items:{type:"string"}}},additionalProperties:!1},block:{type:"object",properties:{exceptions:{type:"array",items:{type:"string"}},markers:{type:"array",items:{type:"string"}},balanced:{type:"boolean",default:!1}},additionalProperties:!1}},additionalProperties:!1}],messages:{unexpectedSpaceAfterMarker:"Unexpected space or tab after marker ({{refChar}}) in comment.",expectedExceptionAfter:"Expected exception block, space or tab after '{{refChar}}' in comment.",unexpectedSpaceBefore:"Unexpected space or tab before '*/' in comment.",unexpectedSpaceAfter:"Unexpected space or tab after '{{refChar}}' in comment.",expectedSpaceBefore:"Expected space or tab before '*/' in comment.",expectedSpaceAfter:"Expected space or tab after '{{refChar}}' in comment."}},create(o){let u=o.sourceCode,c=o.options[0]!=="never",p=o.options[1]||{},h=p.block&&p.block.balanced,f=["block","line"].reduce((y,b)=>{let v=n(p[b]&&p[b].markers||p.markers||[]),S=p[b]&&p[b].exceptions||p.exceptions||[],C="[ ]+$";return y[b]={beginRegex:c?a(v,S):l(v),endRegex:h&&c?new RegExp(`${i(S)}$`,"u"):new RegExp(C,"u"),hasExceptions:S.length>0,captureMarker:new RegExp(`^(${v.map(t).join("|")})`,"u"),markers:new Set(v)},y},{});function d(y,b,v,S){let C=y.type.toLowerCase(),O=C==="block"?"/*":"//";o.report({node:y,fix(w){let E=y.range[0],k=E+2;return c?(v&&(k+=v[0].length),w.insertTextAfterRange([E,k]," ")):(k+=v[0].length,w.replaceTextRange([E,k],O+(v[1]?v[1]:"")))},messageId:b,data:{refChar:S}})}function m(y,b,v){o.report({node:y,fix(S){if(c)return S.insertTextAfterRange([y.range[0],y.range[1]-2]," ");let C=y.range[1]-2,O=C-v[0].length;return S.replaceTextRange([O,C],"")},messageId:b})}function g(y){let b=y.type.toLowerCase(),v=f[b],S=b==="block"?"/*":"//";if(y.value.length===0||v.markers.has(y.value))return;let C=v.beginRegex.exec(y.value),O=v.endRegex.exec(y.value);if(c){if(!C){let w=v.captureMarker.exec(y.value),E=w?S+w[0]:S;v.hasExceptions?d(y,"expectedExceptionAfter",w,E):d(y,"expectedSpaceAfter",w,E)}h&&b==="block"&&!O&&m(y,"expectedSpaceBefore")}else C&&(C[1]?d(y,"unexpectedSpaceAfterMarker",C,C[1]):d(y,"unexpectedSpaceAfter",C,S)),h&&b==="block"&&O&&m(y,"unexpectedSpaceBefore",O)}return{Program(){u.getAllComments().filter(b=>b.type!=="Shebang").forEach(g)}}}},yv}var xv,uR;function OX(){if(uR)return xv;uR=1;let r=Pe();function e(n){let i=[];for(let a=0;av.remove(b)}function p(b,v,S,C,O){b.slice(v,S).forEach(w=>{n.report({node:w,messageId:C,fix:O?c(w):null})})}function h(b,v,S){p(b,0,b.length,v,S)}function f(b,v,S){p(b,1,b.length,v,S)}function d(b,v){let S=l.length>0,C=a.length===0&&l.length===0,O=a.length>0&&a.at(-1),w=v.length>0;w?(s(b.params)?O?n.report({node:v[0],messageId:"unnecessary",fix:c(v[0])}):S&&n.report({node:v[0],messageId:"unnecessaryInClasses",fix:c(v[0])}):n.report({node:v[0],messageId:"nonSimpleParameterList"}),f(v,"multiple",!0)):C&&(s(b.params)?n.report({node:b,messageId:"function"}):n.report({node:b,messageId:"wrap",data:{name:r.getFunctionNameWithKind(b)}})),a.push(O||w)}function m(){a.pop()}function g(b){let v=b.body.type==="BlockStatement",S=v?e(b.body.body):[];o==="function"?d(b,S):S.length>0&&(s(b.params)?h(S,o,u(o)):(n.report({node:S[0],messageId:"nonSimpleParameterList"}),f(S,"multiple",!0)))}let y={Program(b){let v=e(b.body);b.sourceType==="module"&&(o="module"),o==="global"?(b.body.length>0&&v.length===0&&n.report({node:b,messageId:"global"}),f(v,"multiple",!0)):h(v,o,u(o))},FunctionDeclaration:g,FunctionExpression:g,ArrowFunctionExpression:g};return o==="function"&&Object.assign(y,{ClassBody(){l.push(!0)},"ClassBody:exit"(){l.pop()},"FunctionDeclaration:exit":m,"FunctionExpression:exit":m,"ArrowFunctionExpression:exit":m}),y}},xv}var bv,cR;function SX(){if(cR)return bv;cR=1;let r=Pe();return bv={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Enforce spacing around colons of switch statements",recommended:!1,url:"https://eslint.org/docs/latest/rules/switch-colon-spacing"},schema:[{type:"object",properties:{before:{type:"boolean",default:!1},after:{type:"boolean",default:!0}},additionalProperties:!1}],fixable:"whitespace",messages:{expectedBefore:"Expected space(s) before this colon.",expectedAfter:"Expected space(s) after this colon.",unexpectedBefore:"Unexpected space(s) before this colon.",unexpectedAfter:"Unexpected space(s) after this colon."}},create(e){let t=e.sourceCode,s=e.options[0]||{},n=s.before===!0,i=s.after!==!1;function a(u,c,p){return r.isClosingBraceToken(c)||!r.isTokenOnSameLine(u,c)||t.isSpaceBetweenTokens(u,c)===p}function l(u,c){return t.getFirstTokenBetween(u,c,{includeComments:!0,filter:r.isCommentToken})!==null}function o(u,c,p,h){return l(c,p)?null:h?u.insertTextAfter(c," "):u.removeRange([c.range[1],p.range[0]])}return{SwitchCase(u){let c=r.getSwitchCaseColonToken(u,t),p=t.getTokenBefore(c),h=t.getTokenAfter(c);a(p,c,n)||e.report({node:u,loc:c.loc,messageId:n?"expectedBefore":"unexpectedBefore",fix:f=>o(f,p,c,n)}),a(c,h,i)||e.report({node:u,loc:c.loc,messageId:i?"expectedAfter":"unexpectedAfter",fix:f=>o(f,c,h,i)})}}}},bv}var vv,fR;function EX(){if(fR)return vv;fR=1;let r=Pe();return vv={meta:{type:"suggestion",docs:{description:"Require symbol descriptions",recommended:!1,url:"https://eslint.org/docs/latest/rules/symbol-description"},fixable:null,schema:[],messages:{expected:"Expected Symbol to have a description."}},create(e){let t=e.sourceCode;function s(n){n.arguments.length===0&&e.report({node:n,messageId:"expected"})}return{"Program:exit"(n){let i=t.getScope(n),a=r.getVariableByName(i,"Symbol");a&&a.defs.length===0&&a.references.forEach(l=>{let o=l.identifier;r.isCallee(o)&&s(o.parent)})}}}},vv}var Ov,pR;function CX(){if(pR)return Ov;pR=1;let r=Pe();return Ov={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Require or disallow spacing around embedded expressions of template strings",recommended:!1,url:"https://eslint.org/docs/latest/rules/template-curly-spacing"},fixable:"whitespace",schema:[{enum:["always","never"]}],messages:{expectedBefore:"Expected space(s) before '}'.",expectedAfter:"Expected space(s) after '${'.",unexpectedBefore:"Unexpected space(s) before '}'.",unexpectedAfter:"Unexpected space(s) after '${'."}},create(e){let t=e.sourceCode,s=e.options[0]==="always";function n(a){if(!a.value.startsWith("}"))return;let l=t.getTokenBefore(a,{includeComments:!0}),o=t.isSpaceBetween(l,a);r.isTokenOnSameLine(l,a)&&(s&&!o&&e.report({loc:{start:a.loc.start,end:{line:a.loc.start.line,column:a.loc.start.column+1}},messageId:"expectedBefore",fix:u=>u.insertTextBefore(a," ")}),!s&&o&&e.report({loc:{start:l.loc.end,end:a.loc.start},messageId:"unexpectedBefore",fix:u=>u.removeRange([l.range[1],a.range[0]])}))}function i(a){if(!a.value.endsWith("${"))return;let l=t.getTokenAfter(a,{includeComments:!0}),o=t.isSpaceBetween(a,l);r.isTokenOnSameLine(a,l)&&(s&&!o&&e.report({loc:{start:{line:a.loc.end.line,column:a.loc.end.column-2},end:a.loc.end},messageId:"expectedAfter",fix:u=>u.insertTextAfter(a," ")}),!s&&o&&e.report({loc:{start:a.loc.end,end:l.loc.start},messageId:"unexpectedAfter",fix:u=>u.removeRange([a.range[1],l.range[0]])}))}return{TemplateElement(a){let l=t.getFirstToken(a);n(l),i(l)}}}},Ov}var Sv,hR;function wX(){return hR||(hR=1,Sv={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Require or disallow spacing between template tags and their literals",recommended:!1,url:"https://eslint.org/docs/latest/rules/template-tag-spacing"},fixable:"whitespace",schema:[{enum:["always","never"]}],messages:{unexpected:"Unexpected space between template tag and template literal.",missing:"Missing space between template tag and template literal."}},create(r){let e=r.options[0]!=="always",t=r.sourceCode;function s(n){let i=t.getTokenBefore(n.quasi),a=t.getFirstToken(n.quasi),l=t.isSpaceBetweenTokens(i,a);e&&l?r.report({node:n,loc:{start:i.loc.end,end:a.loc.start},messageId:"unexpected",fix(o){let u=t.getCommentsBefore(n.quasi);return u.some(c=>c.type==="Line")?null:o.replaceTextRange([i.range[1],a.range[0]],u.reduce((c,p)=>c+t.getText(p),""))}}):!e&&!l&&r.report({node:n,loc:{start:n.loc.start,end:a.loc.start},messageId:"missing",fix(o){return o.insertTextAfter(i," ")}})}return{TaggedTemplateExpression:s}}}),Sv}var Ev,dR;function kX(){return dR||(dR=1,Ev={meta:{type:"layout",docs:{description:"Require or disallow Unicode byte order mark (BOM)",recommended:!1,url:"https://eslint.org/docs/latest/rules/unicode-bom"},fixable:"whitespace",schema:[{enum:["always","never"]}],messages:{expected:"Expected Unicode BOM (Byte Order Mark).",unexpected:"Unexpected Unicode BOM (Byte Order Mark)."}},create(r){return{Program:function(t){let s=r.sourceCode,n={column:0,line:1},i=r.options[0]||"never";!s.hasBOM&&i==="always"?r.report({node:t,loc:n,messageId:"expected",fix(a){return a.insertTextBeforeRange([0,1],"\uFEFF")}}):s.hasBOM&&i==="never"&&r.report({node:t,loc:n,messageId:"unexpected",fix(a){return a.removeRange([-1,0])}})}}}}),Ev}var Cv,mR;function AX(){if(mR)return Cv;mR=1;let r=Pe();function e(t){if(!t)return!1;let s=t.type==="SequenceExpression"?t.expressions.at(-1):t;return r.isSpecificId(s,"NaN")||r.isSpecificMemberAccess(s,"Number","NaN")}return Cv={meta:{hasSuggestions:!0,type:"problem",docs:{description:"Require calls to `isNaN()` when checking for `NaN`",recommended:!0,url:"https://eslint.org/docs/latest/rules/use-isnan"},schema:[{type:"object",properties:{enforceForSwitchCase:{type:"boolean",default:!0},enforceForIndexOf:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{comparisonWithNaN:"Use the isNaN function to compare with NaN.",switchNaN:"'switch(NaN)' can never match a case clause. Use Number.isNaN instead of the switch.",caseNaN:"'case NaN' can never match. Use Number.isNaN before the switch.",indexOfNaN:"Array prototype method '{{ methodName }}' cannot find NaN.",replaceWithIsNaN:"Replace with Number.isNaN.",replaceWithCastingAndIsNaN:"Replace with Number.isNaN and cast to a Number.",replaceWithFindIndex:"Replace with Array.prototype.{{ methodName }}."}},create(t){let s=!t.options[0]||t.options[0].enforceForSwitchCase,n=t.options[0]&&t.options[0].enforceForIndexOf,i=t.sourceCode,a=new Set(["==","===","!=","!=="]),l=new Set(["==","!="]);function o(f,d){return m=>{let g=e(f.left)?f.right:f.left,y=g.type==="SequenceExpression",v=f.operator[0]==="!"?"!":"",S=i.getText(g);y&&(S=`(${S})`);let C=d(S);return m.replaceText(f,`${v}${C}`)}}function u(f){if(/^(?:[<>]|[!=]=)=?$/u.test(f.operator)&&(e(f.left)||e(f.right))){let d=[],g=(e(f.left)?f.left:f.right).type==="SequenceExpression",y=a.has(f.operator)&&!g,b=l.has(f.operator);y&&(d.push({messageId:"replaceWithIsNaN",fix:o(f,v=>`Number.isNaN(${v})`)}),b&&d.push({messageId:"replaceWithCastingAndIsNaN",fix:o(f,v=>`Number.isNaN(Number(${v}))`)})),t.report({node:f,messageId:"comparisonWithNaN",suggest:d})}}function c(f){e(f.discriminant)&&t.report({node:f,messageId:"switchNaN"});for(let d of f.cases)e(d.test)&&t.report({node:d,messageId:"caseNaN"})}function p(f){let d=r.skipChainExpression(f.callee);if(d.type==="MemberExpression"){let m=r.getStaticPropertyName(d);if((m==="indexOf"||m==="lastIndexOf")&&f.arguments.length<=2&&e(f.arguments[0])){let g=f.arguments[0].type!=="SequenceExpression"&&!f.arguments[1],y=[];if(g){let b=d.computed,v=m==="indexOf"?"findIndex":"findLastIndex",S=b?`"${v}"`:v;y.push({messageId:"replaceWithFindIndex",data:{methodName:v},fix:C=>[C.replaceText(d.property,S),C.replaceText(f.arguments[0],"Number.isNaN")]})}t.report({node:f,messageId:"indexOfNaN",data:{methodName:m},suggest:y})}}}let h={BinaryExpression:u};return s&&(h.SwitchStatement=c),n&&(h.CallExpression=p),h}},Cv}var wv,gR;function PX(){if(gR)return wv;gR=1;let r=Pe();return wv={meta:{type:"problem",docs:{description:"Enforce comparing `typeof` expressions against valid strings",recommended:!0,url:"https://eslint.org/docs/latest/rules/valid-typeof"},hasSuggestions:!0,schema:[{type:"object",properties:{requireStringLiterals:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{invalidValue:"Invalid typeof comparison value.",notString:"Typeof comparisons should be to string literals.",suggestString:'Use `"{{type}}"` instead of `{{type}}`.'}},create(e){let t=new Set(["symbol","undefined","object","boolean","number","string","function","bigint"]),s=new Set(["==","===","!=","!=="]),n=e.sourceCode,i=e.options[0]&&e.options[0].requireStringLiterals,a;function l(u){let c=a.set.get(u.name);return c&&c.defs.length===0&&c.references.some(p=>p.identifier===u)}function o(u){return u.type==="UnaryExpression"&&u.operator==="typeof"}return{Program(u){a=n.getScope(u)},UnaryExpression(u){if(o(u)){let{parent:c}=u;if(c.type==="BinaryExpression"&&s.has(c.operator)){let p=c.left===u?c.right:c.left;if(p.type==="Literal"||r.isStaticTemplateLiteral(p)){let h=p.type==="Literal"?p.value:p.quasis[0].value.cooked;t.has(h)||e.report({node:p,messageId:"invalidValue"})}else p.type==="Identifier"&&p.name==="undefined"&&l(p)?e.report({node:p,messageId:i?"notString":"invalidValue",suggest:[{messageId:"suggestString",data:{type:"undefined"},fix(h){return h.replaceText(p,'"undefined"')}}]}):i&&!o(p)&&e.report({node:p,messageId:"notString"})}}}}}},wv}var kv,yR;function TX(){return yR||(yR=1,kv={meta:{type:"suggestion",docs:{description:"Require `var` declarations be placed at the top of their containing scope",recommended:!1,url:"https://eslint.org/docs/latest/rules/vars-on-top"},schema:[],messages:{top:"All 'var' declarations must be at the top of the function scope."}},create(r){function e(l){return l.type==="ExpressionStatement"&&l.expression.type==="Literal"&&typeof l.expression.value=="string"}function t(l){return l.type==="ImportDeclaration"||l.type==="ImportSpecifier"||l.type==="ImportDefaultSpecifier"||l.type==="ImportNamespaceSpecifier"}function s(l){return l.type==="VariableDeclaration"||l.type==="ExportNamedDeclaration"&&l.declaration&&l.declaration.type==="VariableDeclaration"}function n(l,o){let u=o.length,c=0;if(l.parent.type!=="StaticBlock")for(;co.replaceText(t,`(${e.getText(t)})`)})}}}}}),Pv}var Tv,vR;function IX(){return vR||(vR=1,Tv={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Require or disallow spacing around the `*` in `yield*` expressions",recommended:!1,url:"https://eslint.org/docs/latest/rules/yield-star-spacing"},fixable:"whitespace",schema:[{oneOf:[{enum:["before","after","both","neither"]},{type:"object",properties:{before:{type:"boolean"},after:{type:"boolean"}},additionalProperties:!1}]}],messages:{missingBefore:"Missing space before *.",missingAfter:"Missing space after *.",unexpectedBefore:"Unexpected space before *.",unexpectedAfter:"Unexpected space after *."}},create(r){let e=r.sourceCode,t=function(i){return!i||typeof i=="string"?{before:{before:!0,after:!1},after:{before:!1,after:!0},both:{before:!0,after:!0},neither:{before:!1,after:!1}}[i||"after"]:i}(r.options[0]);function s(i,a,l){if(e.isSpaceBetweenTokens(a,l)!==t[i]){let o=a.value==="*",u=t[i],c=o?a:l,p;u?p=i==="before"?"missingBefore":"missingAfter":p=i==="before"?"unexpectedBefore":"unexpectedAfter",r.report({node:c,messageId:p,fix(h){return u?o?h.insertTextAfter(c," "):h.insertTextBefore(c," "):h.removeRange([a.range[1],l.range[0]])}})}}function n(i){if(!i.delegate)return;let a=e.getFirstTokens(i,3),l=a[0],o=a[1],u=a[2];s("before",l,o),s("after",o,u)}return{YieldExpression:n}}}),Tv}var Dv,OR;function FX(){if(OR)return Dv;OR=1;let r=Pe();function e(l){return/^(==|===|!=|!==|<|>|<=|>=)$/u.test(l)}function t(l){return/^(==|===)$/u.test(l)}function s(l){return["<","<="].includes(l)}function n(l){return l.type==="UnaryExpression"&&l.operator==="-"&&l.prefix&&r.isNumericLiteral(l.argument)}function i(l){return n(l)||r.isStaticTemplateLiteral(l)}function a(l){return l.type==="Literal"?l:n(l)?{type:"Literal",value:-l.argument.value,raw:`-${l.argument.value}`}:r.isStaticTemplateLiteral(l)?{type:"Literal",value:l.quasis[0].value.cooked,raw:l.quasis[0].value.raw}:null}return Dv={meta:{type:"suggestion",docs:{description:'Require or disallow "Yoda" conditions',recommended:!1,url:"https://eslint.org/docs/latest/rules/yoda"},schema:[{enum:["always","never"]},{type:"object",properties:{exceptRange:{type:"boolean",default:!1},onlyEquality:{type:"boolean",default:!1}},additionalProperties:!1}],fixable:"code",messages:{expected:"Expected literal to be on the {{expectedSide}} side of {{operator}}."}},create(l){let o=l.options[0]==="always",u=l.options[1]&&l.options[1].exceptRange,c=l.options[1]&&l.options[1].onlyEquality,p=l.sourceCode;function h(m){let g=m.left,y=m.right;function b(){if(m.operator==="&&"&&r.isSameReference(g.right,y.left)){let C=a(g.left),O=a(y.right);if(C===null&&O===null)return!1;if(O===null||C===null||C.value<=O.value)return!0}return!1}function v(){if(m.operator==="||"&&r.isSameReference(g.left,y.right)){let C=a(g.right),O=a(y.left);if(C===null&&O===null)return!1;if(O===null||C===null||C.value<=O.value)return!0}return!1}function S(){return r.isParenthesised(p,m)}return m.type==="LogicalExpression"&&g.type==="BinaryExpression"&&y.type==="BinaryExpression"&&s(g.operator)&&s(y.operator)&&(b()||v())&&S()}let f={"===":"===","!==":"!==","==":"==","!=":"!=","<":">",">":"<","<=":">=",">=":"<="};function d(m){let g=p.getFirstTokenBetween(m.left,m.right,_=>_.value===m.operator),y=p.getTokenBefore(g),b=p.getTokenAfter(g),v=p.getText(),S=v.slice(m.range[0],y.range[1]),C=v.slice(y.range[1],g.range[0]),O=v.slice(g.range[1],b.range[0]),w=v.slice(b.range[0],m.range[1]),E=p.getTokenBefore(m),k=p.getTokenAfter(m),A="",D="";return E&&E.range[1]===m.range[0]&&!r.canTokensBeAdjacent(E,b)&&(A=" "),k&&m.range[1]===k.range[0]&&!r.canTokensBeAdjacent(y,k)&&(D=" "),A+w+C+f[g.value]+O+S+D}return{BinaryExpression(m){let g=o?m.left:m.right,y=o?m.right:m.left;(y.type==="Literal"||i(y))&&!(g.type==="Literal"||i(g))&&!(!t(m.operator)&&c)&&e(m.operator)&&!(u&&h(m.parent))&&l.report({node:m,messageId:"expected",data:{operator:m.operator,expectedSide:o?"left":"right"},fix:b=>b.replaceText(m,d(m))})}}}},Dv}var _v,SR;function iN(){if(SR)return _v;SR=1;let{LazyLoadingRuleMap:r}=n7();return _v=new r(Object.entries({"accessor-pairs":()=>a7(),"array-bracket-newline":()=>o7(),"array-bracket-spacing":()=>l7(),"array-callback-return":()=>u7(),"array-element-newline":()=>c7(),"arrow-body-style":()=>f7(),"arrow-parens":()=>p7(),"arrow-spacing":()=>h7(),"block-scoped-var":()=>d7(),"block-spacing":()=>m7(),"brace-style":()=>g7(),"callback-return":()=>y7(),camelcase:()=>x7(),"capitalized-comments":()=>v7(),"class-methods-use-this":()=>O7(),"comma-dangle":()=>S7(),"comma-spacing":()=>E7(),"comma-style":()=>C7(),complexity:()=>w7(),"computed-property-spacing":()=>k7(),"consistent-return":()=>A7(),"consistent-this":()=>P7(),"constructor-super":()=>T7(),curly:()=>D7(),"default-case":()=>_7(),"default-case-last":()=>I7(),"default-param-last":()=>F7(),"dot-location":()=>R7(),"dot-notation":()=>B7(),"eol-last":()=>N7(),eqeqeq:()=>L7(),"for-direction":()=>$7(),"func-call-spacing":()=>M7(),"func-name-matching":()=>j7(),"func-names":()=>q7(),"func-style":()=>Q7(),"function-call-argument-newline":()=>U7(),"function-paren-newline":()=>V7(),"generator-star-spacing":()=>W7(),"getter-return":()=>Z7(),"global-require":()=>z7(),"grouped-accessor-pairs":()=>X7(),"guard-for-in":()=>G7(),"handle-callback-err":()=>Y7(),"id-blacklist":()=>H7(),"id-denylist":()=>K7(),"id-length":()=>J7(),"id-match":()=>eV(),"implicit-arrow-linebreak":()=>tV(),indent:()=>rV(),"indent-legacy":()=>nV(),"init-declarations":()=>sV(),"jsx-quotes":()=>iV(),"key-spacing":()=>aV(),"keyword-spacing":()=>oV(),"line-comment-position":()=>lV(),"linebreak-style":()=>uV(),"lines-around-comment":()=>cV(),"lines-around-directive":()=>fV(),"lines-between-class-members":()=>pV(),"logical-assignment-operators":()=>hV(),"max-classes-per-file":()=>dV(),"max-depth":()=>mV(),"max-len":()=>gV(),"max-lines":()=>yV(),"max-lines-per-function":()=>xV(),"max-nested-callbacks":()=>bV(),"max-params":()=>vV(),"max-statements":()=>OV(),"max-statements-per-line":()=>SV(),"multiline-comment-style":()=>EV(),"multiline-ternary":()=>CV(),"new-cap":()=>wV(),"new-parens":()=>kV(),"newline-after-var":()=>AV(),"newline-before-return":()=>PV(),"newline-per-chained-call":()=>TV(),"no-alert":()=>DV(),"no-array-constructor":()=>_V(),"no-async-promise-executor":()=>IV(),"no-await-in-loop":()=>FV(),"no-bitwise":()=>RV(),"no-buffer-constructor":()=>BV(),"no-caller":()=>NV(),"no-case-declarations":()=>LV(),"no-catch-shadow":()=>$V(),"no-class-assign":()=>MV(),"no-compare-neg-zero":()=>jV(),"no-cond-assign":()=>qV(),"no-confusing-arrow":()=>QV(),"no-console":()=>UV(),"no-const-assign":()=>VV(),"no-constant-binary-expression":()=>WV(),"no-constant-condition":()=>ZV(),"no-constructor-return":()=>zV(),"no-continue":()=>XV(),"no-control-regex":()=>GV(),"no-debugger":()=>YV(),"no-delete-var":()=>HV(),"no-div-regex":()=>KV(),"no-dupe-args":()=>JV(),"no-dupe-class-members":()=>eW(),"no-dupe-else-if":()=>tW(),"no-dupe-keys":()=>rW(),"no-duplicate-case":()=>nW(),"no-duplicate-imports":()=>sW(),"no-else-return":()=>iW(),"no-empty":()=>aW(),"no-empty-character-class":()=>oW(),"no-empty-function":()=>lW(),"no-empty-pattern":()=>uW(),"no-empty-static-block":()=>cW(),"no-eq-null":()=>fW(),"no-eval":()=>pW(),"no-ex-assign":()=>hW(),"no-extend-native":()=>dW(),"no-extra-bind":()=>mW(),"no-extra-boolean-cast":()=>gW(),"no-extra-label":()=>yW(),"no-extra-parens":()=>xW(),"no-extra-semi":()=>bW(),"no-fallthrough":()=>vW(),"no-floating-decimal":()=>OW(),"no-func-assign":()=>SW(),"no-global-assign":()=>EW(),"no-implicit-coercion":()=>CW(),"no-implicit-globals":()=>wW(),"no-implied-eval":()=>kW(),"no-import-assign":()=>AW(),"no-inline-comments":()=>PW(),"no-inner-declarations":()=>TW(),"no-invalid-regexp":()=>DW(),"no-invalid-this":()=>_W(),"no-irregular-whitespace":()=>IW(),"no-iterator":()=>FW(),"no-label-var":()=>RW(),"no-labels":()=>BW(),"no-lone-blocks":()=>NW(),"no-lonely-if":()=>LW(),"no-loop-func":()=>$W(),"no-loss-of-precision":()=>MW(),"no-magic-numbers":()=>jW(),"no-misleading-character-class":()=>zW(),"no-mixed-operators":()=>XW(),"no-mixed-requires":()=>GW(),"no-mixed-spaces-and-tabs":()=>YW(),"no-multi-assign":()=>HW(),"no-multi-spaces":()=>KW(),"no-multi-str":()=>JW(),"no-multiple-empty-lines":()=>eZ(),"no-native-reassign":()=>tZ(),"no-negated-condition":()=>rZ(),"no-negated-in-lhs":()=>nZ(),"no-nested-ternary":()=>sZ(),"no-new":()=>iZ(),"no-new-func":()=>aZ(),"no-new-native-nonconstructor":()=>oZ(),"no-new-object":()=>lZ(),"no-new-require":()=>uZ(),"no-new-symbol":()=>cZ(),"no-new-wrappers":()=>fZ(),"no-nonoctal-decimal-escape":()=>pZ(),"no-obj-calls":()=>hZ(),"no-object-constructor":()=>dZ(),"no-octal":()=>mZ(),"no-octal-escape":()=>gZ(),"no-param-reassign":()=>yZ(),"no-path-concat":()=>xZ(),"no-plusplus":()=>bZ(),"no-process-env":()=>vZ(),"no-process-exit":()=>OZ(),"no-promise-executor-return":()=>SZ(),"no-proto":()=>EZ(),"no-prototype-builtins":()=>CZ(),"no-redeclare":()=>wZ(),"no-regex-spaces":()=>kZ(),"no-restricted-exports":()=>AZ(),"no-restricted-globals":()=>PZ(),"no-restricted-imports":()=>TZ(),"no-restricted-modules":()=>DZ(),"no-restricted-properties":()=>_Z(),"no-restricted-syntax":()=>IZ(),"no-return-assign":()=>FZ(),"no-return-await":()=>RZ(),"no-script-url":()=>BZ(),"no-self-assign":()=>NZ(),"no-self-compare":()=>LZ(),"no-sequences":()=>$Z(),"no-setter-return":()=>MZ(),"no-shadow":()=>jZ(),"no-shadow-restricted-names":()=>qZ(),"no-spaced-func":()=>QZ(),"no-sparse-arrays":()=>UZ(),"no-sync":()=>VZ(),"no-tabs":()=>WZ(),"no-template-curly-in-string":()=>ZZ(),"no-ternary":()=>zZ(),"no-this-before-super":()=>XZ(),"no-throw-literal":()=>GZ(),"no-trailing-spaces":()=>YZ(),"no-undef":()=>HZ(),"no-undef-init":()=>KZ(),"no-undefined":()=>JZ(),"no-underscore-dangle":()=>ez(),"no-unexpected-multiline":()=>tz(),"no-unmodified-loop-condition":()=>rz(),"no-unneeded-ternary":()=>nz(),"no-unreachable":()=>sz(),"no-unreachable-loop":()=>iz(),"no-unsafe-finally":()=>az(),"no-unsafe-negation":()=>oz(),"no-unsafe-optional-chaining":()=>lz(),"no-unused-expressions":()=>uz(),"no-unused-labels":()=>cz(),"no-unused-private-class-members":()=>fz(),"no-unused-vars":()=>pz(),"no-use-before-define":()=>hz(),"no-useless-assignment":()=>dz(),"no-useless-backreference":()=>mz(),"no-useless-call":()=>gz(),"no-useless-catch":()=>yz(),"no-useless-computed-key":()=>xz(),"no-useless-concat":()=>bz(),"no-useless-constructor":()=>vz(),"no-useless-escape":()=>Oz(),"no-useless-rename":()=>Sz(),"no-useless-return":()=>Ez(),"no-var":()=>Cz(),"no-void":()=>wz(),"no-warning-comments":()=>kz(),"no-whitespace-before-property":()=>Az(),"no-with":()=>Pz(),"nonblock-statement-body-position":()=>Tz(),"object-curly-newline":()=>Dz(),"object-curly-spacing":()=>_z(),"object-property-newline":()=>Iz(),"object-shorthand":()=>Fz(),"one-var":()=>Rz(),"one-var-declaration-per-line":()=>Bz(),"operator-assignment":()=>Nz(),"operator-linebreak":()=>Lz(),"padded-blocks":()=>$z(),"padding-line-between-statements":()=>Mz(),"prefer-arrow-callback":()=>jz(),"prefer-const":()=>qz(),"prefer-destructuring":()=>Qz(),"prefer-exponentiation-operator":()=>Uz(),"prefer-named-capture-group":()=>Vz(),"prefer-numeric-literals":()=>Wz(),"prefer-object-has-own":()=>Zz(),"prefer-object-spread":()=>zz(),"prefer-promise-reject-errors":()=>Xz(),"prefer-reflect":()=>Gz(),"prefer-regex-literals":()=>Yz(),"prefer-rest-params":()=>Hz(),"prefer-spread":()=>Kz(),"prefer-template":()=>Jz(),"quote-props":()=>eX(),quotes:()=>tX(),radix:()=>rX(),"require-atomic-updates":()=>nX(),"require-await":()=>sX(),"require-unicode-regexp":()=>iX(),"require-yield":()=>aX(),"rest-spread-spacing":()=>oX(),semi:()=>lX(),"semi-spacing":()=>uX(),"semi-style":()=>cX(),"sort-imports":()=>fX(),"sort-keys":()=>hX(),"sort-vars":()=>dX(),"space-before-blocks":()=>mX(),"space-before-function-paren":()=>gX(),"space-in-parens":()=>yX(),"space-infix-ops":()=>xX(),"space-unary-ops":()=>bX(),"spaced-comment":()=>vX(),strict:()=>OX(),"switch-colon-spacing":()=>SX(),"symbol-description":()=>EX(),"template-curly-spacing":()=>CX(),"template-tag-spacing":()=>wX(),"unicode-bom":()=>kX(),"use-isnan":()=>AX(),"valid-typeof":()=>PX(),"vars-on-top":()=>TX(),"wrap-iife":()=>DX(),"wrap-regex":()=>_X(),"yield-star-spacing":()=>IX(),yoda:()=>FX()})),_v}var Iv,ER;function RX(){if(ER)return Iv;ER=1;let r=iN();class e{constructor(){this._rules=Object.create(null)}define(s,n){this._rules[s]=n}get(s){return typeof this._rules[s]=="string"&&this.define(s,r7(this._rules[s])),this._rules[s]?this._rules[s]:r.has(s)?r.get(s):null}*[Symbol.iterator](){yield*r;for(let s of Object.keys(this._rules))yield[s,this.get(s)]}}return Iv=e,Iv}var Fv,CR;function BX(){if(CR)return Fv;CR=1;let r=bi()("eslint:source-code-fixer"),e="\uFEFF";function t(i,a){return i.fix.range[0]-a.fix.range[0]||i.fix.range[1]-a.fix.range[1]}function s(i,a){return i.line-a.line||i.column-a.column}function n(){Object.freeze(this)}return n.applyFixes=function(i,a,l){if(r("Applying fixes"),l===!1)return r("shouldFix parameter was false, not attempting fixes"),{fixed:!1,messages:a,output:i};let o=[],u=[],c=i.startsWith(e)?e:"",p=c?i.slice(1):i,h=Number.NEGATIVE_INFINITY,f=c;function d(m){let g=m.fix,y=g.range[0],b=g.range[1];return h>=y||y>b?(o.push(m),!1):((y<0&&b>=0||y===0&&g.text.startsWith(e))&&(f=""),f+=p.slice(Math.max(0,h),Math.max(0,y)),f+=g.text,h=b,!0)}if(a.forEach(m=>{Object.hasOwn(m,"fix")?u.push(m):o.push(m)}),u.length){r("Found fixes to apply");let m=!1;for(let g of u.sort(t))typeof l!="function"||l(g)?(d(g),m=!0):o.push(g);return f+=p.slice(Math.max(0,h)),{fixed:m,messages:o.sort(s),output:f}}return r("No fixes to apply"),{fixed:!1,messages:a,output:c+p}},Fv=n,Fv}var Rv,wR;function aN(){if(wR)return Rv;wR=1;function r(){return Bt.hrtime()}function e(t){let s=Bt.hrtime(t);return s[0]*1e3+s[1]/1e6}return Rv={startTime:r,endTime:e},Rv}var Bv,kR;function NX(){if(kR)return Bv;kR=1;let{startTime:r,endTime:e}=aN();function t(u,c,p){return u+new Array(c-u.length+1).join(p||" ")}function s(u,c,p){return new Array(c-u.length+1).join(p||" ")+u}let n=!!Bt.env.TIMING,i=["Rule","Time (ms)","Relative"],a=[t,s,s];function l(){if(typeof Bt.env.TIMING!="string")return 10;if(Bt.env.TIMING.toLowerCase()==="all")return Number.POSITIVE_INFINITY;let c=Number.parseInt(Bt.env.TIMING,10);return c>10?c:10}function o(u){let c=0,p=Object.keys(u).map(d=>{let m=u[d];return c+=m,[d,m]}).sort((d,m)=>m[1]-d[1]).slice(0,l());p.forEach(d=>{d.push(`${(d[1]*100/c).toFixed(1)}%`),d[1]=d[1].toFixed(3)}),p.unshift(i);let h=[];p.forEach(d=>{let m=d.length;for(let g=0;gh[g])&&(h[g]=y)}});let f=p.map(d=>d.map((m,g)=>a[g](m,h[g])).join(" | "));f.splice(1,0,h.map((d,m)=>{let g=m!==0&&m!==h.length-1?2:1;return a[m](":",d+g,"-")}).join("|")),console.log(f.join(` -`))}return Bv=function(){let u=Object.create(null);function c(p,h,f){return function(...d){let m=r(),g=h(...d),y=e(m);return n&&(typeof u[p]>"u"&&(u[p]=0),u[p]+=y),f?{result:g,tdiff:y}:g}}return n&&Bt.on("exit",()=>{o(u)}),{time:c,enabled:n,getListSize:l}}(),Bv}var LX={"generator-star":["generator-star-spacing"],"global-strict":["strict"],"no-arrow-condition":["no-confusing-arrow","no-constant-condition"],"no-comma-dangle":["comma-dangle"],"no-empty-class":["no-empty-character-class"],"no-empty-label":["no-labels"],"no-extra-strict":["strict"],"no-reserved-keys":["quote-props"],"no-space-before-semi":["semi-spacing"],"no-wrap-func":["no-extra-parens"],"space-after-function-name":["space-before-function-paren"],"space-after-keywords":["keyword-spacing"],"space-before-function-parentheses":["space-before-function-paren"],"space-before-keywords":["keyword-spacing"],"space-in-brackets":["object-curly-spacing","array-bracket-spacing","computed-property-spacing"],"space-return-throw-case":["keyword-spacing"],"space-unary-word-ops":["space-unary-ops"],"spaced-line-comment":["spaced-comment"]},oN={rules:LX},Nv,AR;function lN(){if(AR)return Nv;AR=1;let r=Object.freeze({type:"array",minItems:0,maxItems:0});function e(n){let i,a;return n.includes("/")?(n.startsWith("@")?i=n.slice(0,n.lastIndexOf("/")):i=n.slice(0,n.indexOf("/")),a=n.slice(i.length+1)):(i="@",a=n),{pluginName:i,ruleName:a}}function t(n,i){let{pluginName:a,ruleName:l}=e(n),o=i.plugins&&i.plugins[a];return o&&o.rules&&o.rules[l]}function s(n){if(!n.meta)return{...r};let i=n.meta.schema;if(typeof i>"u")return{...r};if(i===!1)return null;if(typeof i!="object"||i===null)throw new TypeError("Rule's `meta.schema` must be an array or object");return Array.isArray(i)?i.length?{type:"array",items:i,minItems:0,maxItems:i.length}:{...r}:i}return Nv={parseRuleId:e,getRuleFromConfig:t,getRuleOptionsSchema:s},Nv}var Lv={},tc={},$v,PR;function $X(){if(PR)return $v;PR=1,$v=function(e,t){for(var s=[],n=0;n=0&&h>0){for(a=[],o=i.length;f>=0&&!c;)f==p?(a.push(f),p=i.indexOf(s,f+1)):a.length==1?c=[a.pop(),h]:(l=a.pop(),l=0?p:h;a.length&&(c=[o,u])}return c}return Mv}var jv,DR;function jX(){if(DR)return jv;DR=1;var r=$X(),e=MX();jv=p;var t="\0SLASH"+Math.random()+"\0",s="\0OPEN"+Math.random()+"\0",n="\0CLOSE"+Math.random()+"\0",i="\0COMMA"+Math.random()+"\0",a="\0PERIOD"+Math.random()+"\0";function l(y){return parseInt(y,10)==y?parseInt(y,10):y.charCodeAt(0)}function o(y){return y.split("\\\\").join(t).split("\\{").join(s).split("\\}").join(n).split("\\,").join(i).split("\\.").join(a)}function u(y){return y.split(t).join("\\").split(s).join("{").split(n).join("}").split(i).join(",").split(a).join(".")}function c(y){if(!y)return[""];var b=[],v=e("{","}",y);if(!v)return y.split(",");var S=v.pre,C=v.body,O=v.post,w=S.split(",");w[w.length-1]+="{"+C+"}";var E=c(O);return O.length&&(w[w.length-1]+=E.shift(),w.push.apply(w,E)),b.push.apply(b,w),b}function p(y){return y?(y.substr(0,2)==="{}"&&(y="\\{\\}"+y.substr(2)),g(o(y),!0).map(u)):[]}function h(y){return"{"+y+"}"}function f(y){return/^-?0\d/.test(y)}function d(y,b){return y<=b}function m(y,b){return y>=b}function g(y,b){var v=[],S=e("{","}",y);if(!S||/\$$/.test(S.pre))return[y];var C=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(S.body),O=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(S.body),w=C||O,E=S.body.indexOf(",")>=0;if(!w&&!E)return S.post.match(/,.*\}/)?(y=S.pre+"{"+S.body+n+S.post,g(y)):[y];var k;if(w)k=S.body.split(/\.\./);else if(k=c(S.body),k.length===1&&(k=g(k[0],!1).map(h),k.length===1)){var D=S.post.length?g(S.post,!1):[""];return D.map(function($){return S.pre+k[0]+$})}var A=S.pre,D=S.post.length?g(S.post,!1):[""],_;if(w){var B=l(k[0]),T=l(k[1]),F=Math.max(k[0].length,k[1].length),j=k.length==3?Math.abs(l(k[2])):1,Q=d,I=T0){var ae=new Array(V+1).join("0");R<0?U="-"+ae+U.slice(1):U=ae+U}}_.push(U)}}else _=r(k,function(he){return g(he,!1)});for(var se=0;se<_.length;se++)for(var ve=0;ve"u"?this.pattern:k,v(k),A.nobrace||!/\{(?:(?!\{).)*\}/.test(k)?[k]:t(k)}var b=1024*64,v=function(k){if(typeof k!="string")throw new TypeError("invalid pattern");if(k.length>b)throw new TypeError("pattern is too long")};d.prototype.parse=C;var S={};function C(k,A){v(k);var D=this.options;if(k==="**")if(D.noglobstar)k="*";else return e;if(k==="")return"";var _="",B=!!D.nocase,T=!1,F=[],j=[],Q,I=!1,N=-1,R=-1,U=k.charAt(0)==="."?"":D.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",V=this;function ae(){if(Q){switch(Q){case"*":_+=i,B=!0;break;case"?":_+=n,B=!0;break;default:_+="\\"+Q;break}V.debug("clearStateChar %j %j",Q,_),Q=!1}}for(var se=0,ve=k.length,H;se-1;Le--){var qe=j[Le],rt=_.slice(0,qe.reStart),ht=_.slice(qe.reStart,qe.reEnd-8),pt=_.slice(qe.reEnd-8,qe.reEnd),Et=_.slice(qe.reEnd);pt+=Et;var X=rt.split("(").length-1,we=Et;for(se=0;se"u"&&(D=this.partial),this.debug("match",A,this.pattern),this.comment)return!1;if(this.empty)return A==="";if(A==="/"&&D)return!0;var _=this.options;r.sep!=="/"&&(A=A.split(r.sep).join("/")),A=A.split(c),this.debug(this.pattern,"split",A);var B=this.set;this.debug(this.pattern,"set",B);var T,F;for(F=A.length-1;F>=0&&(T=A[F],!T);F--);for(F=0;F>> no match, partial?`,k,N,A,R),N===F))}var V;if(typeof Q=="string"?(V=I===Q,this.debug("string match",Q,I,V)):(V=I.match(Q),this.debug("pattern match",Q,I,V)),!V)return!1}if(B===F&&T===j)return!0;if(B===F)return D;if(T===j)return B===F-1&&k[B]==="";throw new Error("wtf?")};function w(k){return k.replace(/\\(.)/g,"$1")}function E(k){return k.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}return qv}var $o={},Qv={},Uv={},IR;function uN(){if(IR)return Uv;IR=1;class r{static overwrite(t,s){return s}static replace(t,s){return typeof s<"u"?s:t}static assign(t,s){return Object.assign({},t,s)}}return Uv.MergeStrategy=r,Uv}var Vv={},FR;function cN(){if(FR)return Vv;FR=1;class r{static array(t){if(!Array.isArray(t))throw new TypeError("Expected an array.")}static boolean(t){if(typeof t!="boolean")throw new TypeError("Expected a Boolean.")}static number(t){if(typeof t!="number")throw new TypeError("Expected a number.")}static object(t){if(!t||typeof t!="object")throw new TypeError("Expected an object.")}static"object?"(t){if(typeof t!="object")throw new TypeError("Expected an object or null.")}static string(t){if(typeof t!="string")throw new TypeError("Expected a string.")}static"string!"(t){if(typeof t!="string"||t.length===0)throw new TypeError("Expected a non-empty string.")}}return Vv.ValidationStrategy=r,Vv}var RR;function QX(){if(RR)return Qv;RR=1;let{MergeStrategy:r}=uN(),{ValidationStrategy:e}=cN(),t=Symbol("strategies"),s=Symbol("requiredKeys");function n(c,p){let h=!1;if(p.schema)if(typeof p.schema=="object")h=!0;else throw new TypeError("Schema must be an object.");if(typeof p.merge=="string"){if(!(p.merge in r))throw new TypeError(`Definition for key "${c}" missing valid merge strategy.`)}else if(!h&&typeof p.merge!="function")throw new TypeError(`Definition for key "${c}" must have a merge property.`);if(typeof p.validate=="string"){if(!(p.validate in e))throw new TypeError(`Definition for key "${c}" missing valid validation strategy.`)}else if(!h&&typeof p.validate!="function")throw new TypeError(`Definition for key "${c}" must have a validate() method.`)}class i extends Error{constructor(p){super(`Unexpected key "${p}" found.`)}}class a extends Error{constructor(p){super(`Missing required key "${p}".`)}}class l extends Error{constructor(p,h){super(`Key "${p}" requires keys "${h.join('", "')}".`)}}class o extends Error{constructor(p,h){super(`Key "${p}": ${h.message}`,{cause:h});for(let f of Object.keys(h))f in this||(this[f]=h[f])}}class u{constructor(p){if(!p)throw new Error("Schema definitions missing.");this[t]=new Map,this[s]=new Map;for(let h of Object.keys(p)){if(n(h,p[h]),typeof p[h].schema=="object"){let f=new u(p[h].schema);p[h]={...p[h],merge(d={},m={}){return f.merge(d,m)},validate(d){e.object(d),f.validate(d)}}}typeof p[h].merge=="string"&&(p[h]={...p[h],merge:r[p[h].merge]}),typeof p[h].validate=="string"&&(p[h]={...p[h],validate:e[p[h].validate]}),this[t].set(h,p[h]),p[h].required&&this[s].set(h,p[h])}}hasKey(p){return this[t].has(p)}merge(...p){if(p.length<2)throw new TypeError("merge() requires at least two arguments.");if(p.some(h=>h==null||typeof h!="object"))throw new TypeError("All arguments must be objects.");return p.reduce((h,f)=>{this.validate(f);for(let[d,m]of this[t])try{if(d in h||d in f){let g=m.merge.call(this,h[d],f[d]);g!==void 0&&(h[d]=g)}}catch(g){throw new o(d,g)}return h},{})}validate(p){for(let h of Object.keys(p)){if(!this.hasKey(h))throw new i(h);let f=this[t].get(h);if(Array.isArray(f.requires)&&!f.requires.every(d=>d in p))throw new l(h,f.requires);try{f.validate.call(f,p[h])}catch(d){throw new o(h,d)}}for(let[h]of this[s])if(!(h in p))throw new a(h)}}return Qv.ObjectSchema=u,Qv}var BR;function UX(){return BR||(BR=1,$o.ObjectSchema=QX().ObjectSchema,$o.MergeStrategy=uN().MergeStrategy,$o.ValidationStrategy=cN().ValidationStrategy),$o}var NR;function VX(){if(NR)return tc;NR=1;var r=fc,e=qX(),t=bi(),s=UX();let n={required:!1,merge(){},validate(){}},i=Object.freeze({name:{required:!1,merge(){},validate(I){if(typeof I!="string")throw new TypeError("Property must be a string.")}},files:n,ignores:n});function a(I){if(!Array.isArray(I))throw new TypeError("Expected value to be an array.")}function l(I,N){if(a(I),I.some(R=>typeof R!="string"&&typeof R!="function"))throw new TypeError("Expected array to only contain strings and functions.")}function o(I){if(!Array.isArray(I)||I.length===0)throw new TypeError("Expected value to be a non-empty array.")}let u=Object.freeze({files:{required:!1,merge(){},validate(I){o(I),I.forEach(N=>{if(Array.isArray(N))l(N);else if(typeof N!="string"&&typeof N!="function")throw new TypeError("Items must be a string, a function, or an array of strings and functions.")})}},ignores:{required:!1,merge(){},validate:l}}),c=e.Minimatch,p=new Map,h=new Map,f=t("@hwc/config-array"),d={dot:!0},m=new Set(["array","function"]),g=new Set(["name"]),y=new s.ObjectSchema(u);class b extends Error{constructor(N,R,{cause:U,message:V}){let ae=V||U.message;if(super(`Config ${N}: ${ae}`,{cause:U}),U)for(let se of Object.keys(U))se in this||(this[se]=U[se]);this.name="ConfigError",this.index=R}}function v(I){return I&&typeof I.name=="string"&&I.name?`"${I.name}"`:"(unnamed)"}function S(I,N,R){let U=v(I);throw new b(U,N,R)}function C(I){return typeof I=="string"}function O(I,N){if(I===null)throw new b(v(I),N,{message:"Unexpected null config."});if(I===void 0)throw new b(v(I),N,{message:"Unexpected undefined config."});if(typeof I!="object")throw new b(v(I),N,{message:"Unexpected non-object config."});let R={};"files"in I&&(R.files=I.files),"ignores"in I&&(R.ignores=I.ignores);try{y.validate(R)}catch(U){S(I,N,{cause:U})}}function w(I,N,R={}){let U=p;R.flipNegate&&(U=h);let V=U.get(N);return V||(V=new c(N,Object.assign({},d,R)),U.set(N,V)),V.match(I)}async function E(I,N,R){let U=R.includes("function"),V=R.includes("array");async function*ae(H){for(let he of H){if(typeof he=="function"){if(!U)throw new TypeError("Unexpected function.");he=he(N),he.then&&(he=await he)}if(Array.isArray(he)){if(!V)throw new TypeError("Unexpected array.");yield*ae(he)}else{if(typeof he=="function")throw new TypeError("A config function can only return an object or array.");yield he}}}let se=await ae(I),ve=[];for await(let H of se)ve.push(H);return ve}function k(I,N,R){let U=R.includes("function"),V=R.includes("array");function*ae(se){for(let ve of se){if(typeof ve=="function"){if(!U)throw new TypeError("Unexpected function.");if(ve=ve(N),ve.then)throw new TypeError("Async config functions are not supported.")}if(Array.isArray(ve)){if(!V)throw new TypeError("Unexpected array.");yield*ae(ve)}else{if(typeof ve=="function")throw new TypeError("A config function can only return an object or array.");yield ve}}}return[...ae(I)]}function A(I,N,R){return R.startsWith("..")?!0:I.reduce((U,V)=>U?typeof V=="string"&&V.startsWith("!")?!w(R,V,{flipNegate:!0}):U:typeof V=="function"?V(N):V.startsWith("!")?!1:w(R,V),!1)}function D(I,N,R){let U=r.relative(N,I);return Object.keys(R).filter(V=>!g.has(V)).length>1&&!A(R.ignores,I,U)}function _(I,N,R){let U=r.relative(N,I),V=se=>{if(C(se))return w(U,se);if(typeof se=="function")return se(I);throw new TypeError(`Unexpected matcher type ${se}.`)},ae=R.files.some(se=>Array.isArray(se)?se.every(V):V(se));return ae&&R.ignores&&(ae=!A(R.ignores,I,U)),ae}function B(I){if(!I.isNormalized())throw new Error("ConfigArray must be normalized to perform this operation.")}function T(I){if(I.length>2)throw new TypeError("configTypes must be an array with at most two items.");for(let N of I)if(!m.has(N))throw new TypeError(`Unexpected config type "${N}" found. Expected one of: "object", "array", "function".`)}let F={isNormalized:Symbol("isNormalized"),configCache:Symbol("configCache"),schema:Symbol("schema"),finalizeConfig:Symbol("finalizeConfig"),preprocessConfig:Symbol("preprocessConfig")},j=new WeakMap;class Q extends Array{constructor(N,{basePath:R="",normalized:U=!1,schema:V,extraConfigTypes:ae=[]}={}){super(),this[F.isNormalized]=U,this[F.schema]=new s.ObjectSchema(Object.assign({},V,i)),this.basePath=R,T(ae),this.extraConfigTypes=Object.freeze([...ae]),this[F.configCache]=new Map,j.set(this,{explicitMatches:new Map,directoryMatches:new Map,files:void 0,ignores:void 0}),Array.isArray(N)?this.push(...N):this.push(N)}static get[Symbol.species](){return Array}get files(){B(this);let N=j.get(this);if(N.files)return N.files;let R=[];for(let U of this)U.files&&U.files.forEach(V=>{R.push(V)});return N.files=R,j.set(this,N),R}get ignores(){B(this);let N=j.get(this);if(N.ignores)return N.ignores;let R=[];for(let U of this)U.ignores&&Object.keys(U).filter(V=>!g.has(V)).length===1&&R.push(...U.ignores);return N.ignores=R,j.set(this,N),R}isNormalized(){return this[F.isNormalized]}async normalize(N={}){if(!this.isNormalized()){let R=await E(this,N,this.extraConfigTypes);this.length=0,this.push(...R.map(this[F.preprocessConfig].bind(this))),this.forEach(O),this[F.isNormalized]=!0,Object.freeze(this)}return this}normalizeSync(N={}){if(!this.isNormalized()){let R=k(this,N,this.extraConfigTypes);this.length=0,this.push(...R.map(this[F.preprocessConfig].bind(this))),this.forEach(O),this[F.isNormalized]=!0,Object.freeze(this)}return this}[F.finalizeConfig](N){return N}[F.preprocessConfig](N){return N}isExplicitMatch(N){B(this);let R=j.get(this),U=R.explicitMatches.get(N);if(typeof U=="boolean")return U;let V=r.relative(this.basePath,N);if(A(this.ignores,N,V))return f(`Ignoring ${N}`),R.explicitMatches.set(N,!1),!1;for(let ae of this)if(ae.files&&_(N,this.basePath,ae))return f(`Matching config found for ${N}`),R.explicitMatches.set(N,!0),!0;return!1}getConfig(N){B(this);let R=this[F.configCache];if(R.has(N))return R.get(N);let U;if(this.isDirectoryIgnored(r.dirname(N)))return f(`Ignoring ${N} based on directory pattern`),R.set(N,U),U;let V=r.relative(this.basePath,N);if(A(this.ignores,N,V))return f(`Ignoring ${N} based on file pattern`),R.set(N,U),U;let ae=[],se=!1,ve=/\/\*{1,2}$/;return this.forEach((H,he)=>{if(!H.files){if(!H.ignores){f(`Anonymous universal config found for ${N}`),ae.push(he);return}if(D(N,this.basePath,H)){f(`Matching config found for ${N} (based on ignores: ${H.ignores})`),ae.push(he);return}f(`Skipped config found for ${N} (based on ignores: ${H.ignores})`);return}let $=H.files.filter(pe=>ve.test(pe));if($.length){f("Universal files patterns found. Checking carefully.");let pe=H.files.filter(K=>!ve.test(K));if(pe.length&&_(N,this.basePath,{files:pe,ignores:H.ignores})){f(`Matching config found for ${N}`),ae.push(he),se=!0;return}if($.length&&_(N,this.basePath,{files:$,ignores:H.ignores})){f(`Matching config found for ${N}`),ae.push(he);return}return}if(_(N,this.basePath,H)){f(`Matching config found for ${N}`),ae.push(he),se=!0;return}}),se?(U=R.get(ae.toString()),U?(R.set(N,U),U):(U=ae.reduce((H,he)=>{try{return this[F.schema].merge(H,this[he])}catch($){S(this[he],he,{cause:$})}},{},this),U=this[F.finalizeConfig](U),R.set(N,U),R.set(ae.toString(),U),U)):(f(`No matching configs found for ${N}`),R.set(N,U),U)}isIgnored(N){return this.isFileIgnored(N)}isFileIgnored(N){return this.getConfig(N)===void 0}isDirectoryIgnored(N){B(this);let R=r.relative(this.basePath,N).replace(/\\/g,"/");if(R.startsWith(".."))return!0;let U=j.get(this).directoryMatches;if(U.has(R))return U.get(R);let V=R.split("/"),ae="",se=!1;do ae+=V.shift()+"/",se=A(this.ignores,r.join(this.basePath,ae),ae),U.set(ae,se);while(!se&&V.length);return U.set(R,se),se}}return tc.ConfigArray=Q,tc.ConfigArraySymbol=F,tc}var Wv,LR;function fN(){if(LR)return Wv;LR=1;function r(t){if([2,"2","error"].includes(t))return"error";if([1,"1","warn"].includes(t))return"warn";if([0,"0","off"].includes(t))return"off";throw new Error(`Invalid severity value: ${t}`)}function e(t){if([2,"2","error"].includes(t))return 2;if([1,"1","warn"].includes(t))return 1;if([0,"0","off"].includes(t))return 0;throw new Error(`Invalid severity value: ${t}`)}return Wv={normalizeSeverityToString:r,normalizeSeverityToNumber:e},Wv}var Zv,$R;function pN(){if($R)return Zv;$R=1;let{normalizeSeverityToNumber:r}=fN(),e=new Map([[0,0],["off",0],[1,1],["warn",1],[2,2],["error",2]]),t=new Set([!0,"true","writable","writeable",!1,"false","readonly","readable",null,"off"]);function s(T){return typeof T=="object"&&T!==null}function n(T){return s(T)&&!Array.isArray(T)}function i(T){return typeof T>"u"}function a(T,F,j=new Map){let Q=j.get(T);if(Q){let N=Q.get(F);if(N)return N}else Q=new Map,j.set(T,Q);let I={...T,...F};delete I.__proto__,Q.set(F,I);for(let N of Object.keys(F)){if(N==="__proto__"||!Object.prototype.propertyIsEnumerable.call(T,N))continue;let R=T[N],U=F[N];n(R)&&n(U)?I[N]=a(R,U,j):i(U)&&(I[N]=R)}return I}function l(T){let F=Array.isArray(T)?T.slice(0):[T];return F[0]=e.get(F[0]),structuredClone(F)}class o extends Error{constructor(F,j){super(`Key "${F}": Expected severity of "off", 0, "warn", 1, "error", or 2.`),this.messageTemplate="invalid-rule-options",this.messageData={ruleId:F,value:j}}}function u(T,F){if(typeof F!="string"&&typeof F!="number"&&!Array.isArray(F))throw new o(T,F)}class c extends Error{constructor(F,j){super(`Key "${F}": Expected severity of "off", 0, "warn", 1, "error", or 2.`),this.messageTemplate="invalid-rule-severity",this.messageData={ruleId:F,value:j}}}function p(T,F){if(typeof e.get(F)>"u")throw new c(T,F)}function h(T){if(!/[@a-z0-9-_$]+(?:\/(?:[a-z0-9-_$]+))+$/iu.test(T))throw new TypeError(`Expected string in the form "pluginName/objectName" but found "${T}".`)}function f(T){if(!s(T))throw new TypeError("Expected an object.")}class d extends Error{constructor(F){super("This appears to be in eslintrc format rather than flat config format."),this.messageTemplate="eslintrc-incompat",this.messageData={key:F}}}class m extends Error{constructor(F){super("This appears to be in eslintrc format (array of strings) rather than flat config format (object)."),this.messageTemplate="eslintrc-plugins",this.messageData={plugins:F}}}let g={merge:"replace",validate:"boolean"},y=new Set(["error","warn","off",2,1,0]),b={merge(T,F){let j=F===void 0?T:F;return typeof j=="boolean"?j?"warn":"off":r(j)},validate(T){if(!(y.has(T)||typeof T=="boolean"))throw new TypeError('Expected one of: "error", "warn", "off", 0, 1, 2, or a boolean.')}},v={merge(T={},F={}){return a(T,F)},validate:"object"},S={merge:"assign",validate(T){f(T);for(let F of Object.keys(T))if(F!=="__proto__"){if(F!==F.trim())throw new TypeError(`Global "${F}" has leading or trailing whitespace.`);if(!t.has(T[F]))throw new TypeError(`Key "${F}": Expected "readonly", "writable", or "off".`)}}},C={merge:"replace",validate(T){if(!T||typeof T!="object"||typeof T.parse!="function"&&typeof T.parseForESLint!="function")throw new TypeError("Expected object with parse() or parseForESLint() method.")}},O={merge(T={},F={}){let j=new Set([...Object.keys(T),...Object.keys(F)]),Q={};for(let I of j)if(I!=="__proto__"){if(I in T&&I in F&&T[I]!==F[I])throw new TypeError(`Cannot redefine plugin "${I}".`);Q[I]=F[I]||T[I]}return Q},validate(T){if(T===null||typeof T!="object")throw new TypeError("Expected an object.");if(Array.isArray(T))throw new m(T);for(let F of Object.keys(T))if(F!=="__proto__"&&(T[F]===null||typeof T[F]!="object"))throw new TypeError(`Key "${F}": Expected an object.`)}},w={merge:"replace",validate(T){if(typeof T=="string")h(T);else if(T&&typeof T=="object"){if(typeof T.preprocess!="function"||typeof T.postprocess!="function")throw new TypeError("Object must have a preprocess() and a postprocess() method.")}else throw new TypeError("Expected an object or a string.")}},E={merge(T={},F={}){let j={...T,...F};for(let Q of Object.keys(j))try{if(Q==="__proto__"){delete j.__proto__;continue}if(j[Q]=l(j[Q]),!(Q in T)||!(Q in F))continue;let I=l(T[Q]),N=l(F[Q]);if(N.length===1){j[Q]=[N[0],...I.slice(1)];continue}}catch(I){throw new Error(`Key "${Q}": ${I.message}`,{cause:I})}return j},validate(T){f(T);for(let F of Object.keys(T)){if(F==="__proto__")continue;let j=T[F];u(F,j),Array.isArray(j)?p(F,j[0]):p(F,j)}}},k={merge:"replace",validate(T){if(!(typeof T=="number"||T==="latest"))throw new TypeError('Expected a number or "latest".')}},A={merge:"replace",validate(T){if(typeof T!="string"||!/^(?:script|module|commonjs)$/u.test(T))throw new TypeError('Expected "script", "module", or "commonjs".')}};function D(T){return{merge:"replace",validate(){throw new d(T)}}}return Zv={flatConfigSchema:{...Object.fromEntries(["env","extends","globals","ignorePatterns","noInlineConfig","overrides","parser","parserOptions","reportUnusedDisableDirectives","root"].map(T=>[T,D(T)])),settings:v,linterOptions:{schema:{noInlineConfig:g,reportUnusedDisableDirectives:b}},languageOptions:{schema:{ecmaVersion:k,sourceType:A,globals:S,parser:C,parserOptions:v}},processor:w,plugins:O,rules:E},assertIsRuleSeverity:p},Zv}var zv={},WX="http://json-schema.org/draft-04/schema#",ZX="http://json-schema.org/draft-04/schema#",zX="Core schema meta-schema",XX={schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},positiveInteger:{type:"integer",minimum:0},positiveIntegerDefault0:{allOf:[{$ref:"#/definitions/positiveInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0}},GX="object",YX={id:{type:"string"},$schema:{type:"string"},title:{type:"string"},description:{type:"string"},default:{},multipleOf:{type:"number",minimum:0,exclusiveMinimum:!0},maximum:{type:"number"},exclusiveMaximum:{type:"boolean",default:!1},minimum:{type:"number"},exclusiveMinimum:{type:"boolean",default:!1},maxLength:{$ref:"#/definitions/positiveInteger"},minLength:{$ref:"#/definitions/positiveIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{anyOf:[{type:"boolean"},{$ref:"#"}],default:{}},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:{}},maxItems:{$ref:"#/definitions/positiveInteger"},minItems:{$ref:"#/definitions/positiveIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},maxProperties:{$ref:"#/definitions/positiveInteger"},minProperties:{$ref:"#/definitions/positiveIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{anyOf:[{type:"boolean"},{$ref:"#"}],default:{}},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},enum:{type:"array",minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},HX={exclusiveMaximum:["maximum"],exclusiveMinimum:["minimum"]},KX={id:WX,$schema:ZX,description:zX,definitions:XX,type:GX,properties:YX,dependencies:HX,default:{}},Xv,MR;function JX(){if(MR)return Xv;MR=1;let r=$B(),e=KX;return Xv=(t={})=>{let s=new r({meta:!1,useDefaults:!0,validateSchema:!1,missingRefs:"ignore",verbose:!0,schemaId:"auto",...t});return s.addMetaSchema(e),s._opts.defaultMeta=e.id,s},Xv}var jR;function hN(){if(jR)return zv;jR=1;let e=JX()(),{parseRuleId:t,getRuleFromConfig:s,getRuleOptionsSchema:n}=lN(),i=oN;function a({pluginName:u,ruleName:c},p){let f=`Key "rules": Key "${u==="@"?c:`${u}/${c}`}"`,d=`${f}: Could not find plugin "${u}".`;if(p.plugins&&p.plugins[u]){let m=i.rules[c];if(u==="@"&&m)d=`${f}: Rule "${c}" was removed and replaced by "${m}".`;else{d=`${f}: Could not find "${c}" in plugin "${u}".`;for(let[g,y]of Object.entries(p.plugins))if(y.rules&&y.rules[c]){d+=` Did you mean "${g}/${c}"?`;break}}}throw new TypeError(d)}class l extends Error{constructor(c,p){super(`Error while processing options validation schema of rule '${c}': ${p.message}`,{cause:p}),this.code="ESLINT_INVALID_RULE_OPTIONS_SCHEMA"}}class o{constructor(){this.validators=new WeakMap}validate(c){if(c.rules)for(let[p,h]of Object.entries(c.rules)){if(p==="__proto__"||h[0]===0)continue;let f=s(p,c);if(f||a(t(p),c),!this.validators.has(f))try{let m=n(f);m&&this.validators.set(f,e.compile(m))}catch(m){throw new l(p,m)}let d=this.validators.get(f);if(d&&(d(h.slice(1)),d.errors))throw new Error(`Key "rules": Key "${p}": +;`;return d.replaceTextRange([m,g],y)}})}return{[e](o){if(a==="first"&&s(o))return;let u=i.getLastToken(o);r.isSemicolonToken(u)&&l(u,a)},ForStatement(o){let u=o.init&&i.getTokenAfter(o.init,r.isSemicolonToken),c=o.test&&i.getTokenAfter(o.test,r.isSemicolonToken);u&&l(u,"last"),c&&l(c,"last")}}}},ax}var ox,HR;function fG(){return HR||(HR=1,ox={meta:{type:"suggestion",docs:{description:"Enforce sorted import declarations within modules",recommended:!1,url:"https://eslint.org/docs/latest/rules/sort-imports"},schema:[{type:"object",properties:{ignoreCase:{type:"boolean",default:!1},memberSyntaxSortOrder:{type:"array",items:{enum:["none","all","multiple","single"]},uniqueItems:!0,minItems:4,maxItems:4},ignoreDeclarationSort:{type:"boolean",default:!1},ignoreMemberSort:{type:"boolean",default:!1},allowSeparatedGroups:{type:"boolean",default:!1}},additionalProperties:!1}],fixable:"code",messages:{sortImportsAlphabetically:"Imports should be sorted alphabetically.",sortMembersAlphabetically:"Member '{{memberName}}' of the import declaration should be sorted alphabetically.",unexpectedSyntaxOrder:"Expected '{{syntaxA}}' syntax before '{{syntaxB}}' syntax."}},create(r){let e=r.options[0]||{},t=e.ignoreCase||!1,s=e.ignoreDeclarationSort||!1,n=e.ignoreMemberSort||!1,i=e.memberSyntaxSortOrder||["none","all","multiple","single"],a=e.allowSeparatedGroups||!1,l=r.sourceCode,o=null;function u(f){return f.specifiers.length===0?"none":f.specifiers[0].type==="ImportNamespaceSpecifier"?"all":f.specifiers.length===1?"single":"multiple"}function c(f){return i.indexOf(u(f))}function p(f){return f.specifiers[0]?f.specifiers[0].local.name:null}function h(f,d){return Math.max(d.loc.start.line-f.loc.end.line-1,0)}return{ImportDeclaration(f){if(!s){if(o&&a&&h(o,f)>0&&(o=null),o){let d=c(f),m=c(o),g=p(f),y=p(o);t&&(y=y&&y.toLowerCase(),g=g&&g.toLowerCase()),d!==m?dy.type==="ImportSpecifier"),m=t?y=>y.local.name.toLowerCase():y=>y.local.name,g=d.map(m).findIndex((y,v,x)=>x[v-1]>y);g!==-1&&r.report({node:d[g],messageId:"sortMembersAlphabetically",data:{memberName:d[g].local.name},fix(y){return d.some(v=>l.getCommentsBefore(v).length||l.getCommentsAfter(v).length)?null:y.replaceTextRange([d[0].range[0],d.at(-1).range[1]],d.slice().sort((v,x)=>{let S=m(v),w=m(x);return S>w?1:-1}).reduce((v,x,S)=>{let w=S===d.length-1?"":l.getText().slice(d[S].range[1],d[S+1].range[0]);return v+l.getText(x)+w},""))}})}}}}}),ox}var lx={exports:{}},KR;function pG(){if(KR)return lx.exports;KR=1;var r=function(e,t){var s,n,i=1,a=0,l=0,o=String.alphabet;function u(c,p,h){if(h){for(s=p;h=u(c,s),h<76&&h>65;)++s;return+c.slice(p-1,s)}return h=o&&o.indexOf(c.charAt(p)),h>-1?h+76:(h=c.charCodeAt(p)||0,h<45||h>127?h:h<46?65:h<48?h-1:h<58?h+18:h<65?h-11:h<91?h+11:h<97?h-37:h<123?h+5:h-63)}if((e+="")!=(t+="")){for(;i;)if(n=u(e,a++),i=u(t,l++),n<76&&i<76&&n>66&&i>66&&(n=u(e,a,a),i=u(t,l,a=s),l=s),n!=i)return n{let O=v[w-1];O&&S.loc.start.line-O.loc.end.line>1&&(x=!0)}),!x&&d.loc.start.line-v.at(-1).loc.end.line>1&&(x=!0),!x&&v[0].loc.start.line-h.prevNode.loc.end.line>1&&(x=!0)),h.prevNode=d,y!==null&&(h.prevName=y),c&&x){h.prevBlankLine=y===null;return}m===null||y===null||gu.id.type==="Identifier"),a=t?u=>u.id.name.toLowerCase():u=>u.id.name,l=i.some(u=>u.init!==null&&u.init.type!=="Literal"),o=!1;i.slice(1).reduce((u,c)=>{let p=a(u);return a(c){let g=a(d),y=a(m);return g>y?1:-1}).reduce((d,m,g)=>{let y=g===i.length-1?"":s.getText().slice(i[g].range[1],i[g+1].range[0]);return d+s.getText(m)+y},""))}}),o=!0,u):c},i[0])}}}}),cx}var fx,tF;function mG(){if(tF)return fx;tF=1;let r=Pe();function e(t){let s=t.parent;return t.type==="BlockStatement"&&r.isFunction(s)&&s.body===t}return fx={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Enforce consistent spacing before blocks",recommended:!1,url:"https://eslint.org/docs/latest/rules/space-before-blocks"},fixable:"whitespace",schema:[{oneOf:[{enum:["always","never"]},{type:"object",properties:{keywords:{enum:["always","never","off"]},functions:{enum:["always","never","off"]},classes:{enum:["always","never","off"]}},additionalProperties:!1}]}],messages:{unexpectedSpace:"Unexpected space before opening brace.",missingSpace:"Missing space before opening brace."}},create(t){let s=t.options[0],n=t.sourceCode,i=!0,a=!0,l=!0,o=!1,u=!1,c=!1;typeof s=="object"?(i=s.functions==="always",a=s.keywords==="always",l=s.classes==="always",o=s.functions==="never",u=s.keywords==="never",c=s.classes==="never"):s==="never"&&(i=!1,a=!1,l=!1,o=!0,u=!0,c=!0);function p(d,m){return r.isArrowToken(d)||r.isKeywordToken(d)&&!e(m)||r.isColonToken(d)&&m.parent&&m.parent.type==="SwitchCase"&&d===r.getSwitchCaseColonToken(m.parent,n)}function h(d){let m=n.getTokenBefore(d);if(m&&!p(m,d)&&r.isTokenOnSameLine(m,d)){let g=n.isSpaceBetweenTokens(m,d),y,v;e(d)?(y=i,v=o):d.type==="ClassBody"?(y=l,v=c):(y=a,v=u),y&&!g?t.report({node:d,messageId:"missingSpace",fix(x){return x.insertTextBefore(d," ")}}):v&&g&&t.report({node:d,messageId:"unexpectedSpace",fix(x){return x.removeRange([m.range[1],d.range[0]])}})}}function f(d){let m=d.cases,g;m.length>0?g=n.getTokenBefore(m[0]):g=n.getLastToken(d,1),h(g)}return{BlockStatement:h,ClassBody:h,SwitchStatement:f}}},fx}var px,rF;function gG(){if(rF)return px;rF=1;let r=Pe();return px={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Enforce consistent spacing before `function` definition opening parenthesis",recommended:!1,url:"https://eslint.org/docs/latest/rules/space-before-function-paren"},fixable:"whitespace",schema:[{oneOf:[{enum:["always","never"]},{type:"object",properties:{anonymous:{enum:["always","never","ignore"]},named:{enum:["always","never","ignore"]},asyncArrow:{enum:["always","never","ignore"]}},additionalProperties:!1}]}],messages:{unexpectedSpace:"Unexpected space before function parentheses.",missingSpace:"Missing space before function parentheses."}},create(e){let t=e.sourceCode,s=typeof e.options[0]=="string"?e.options[0]:"always",n=typeof e.options[0]=="object"?e.options[0]:{};function i(o){if(o.id)return!0;let u=o.parent;return u.type==="MethodDefinition"||u.type==="Property"&&(u.kind==="get"||u.kind==="set"||u.method)}function a(o){if(o.type==="ArrowFunctionExpression"){if(o.async&&r.isOpeningParenToken(t.getFirstToken(o,{skip:1})))return n.asyncArrow||s}else{if(i(o))return n.named||s;if(!o.generator)return n.anonymous||s}return"ignore"}function l(o){let u=a(o);if(u==="ignore")return;let c=t.getFirstToken(o,r.isOpeningParenToken),p=t.getTokenBefore(c),h=t.isSpaceBetweenTokens(p,c);h&&u==="never"?e.report({node:o,loc:{start:p.loc.end,end:c.loc.start},messageId:"unexpectedSpace",fix(f){let d=t.getCommentsBefore(c);return d.some(m=>m.type==="Line")?null:f.replaceTextRange([p.range[1],c.range[0]],d.reduce((m,g)=>m+t.getText(g),""))}}):!h&&u==="always"&&e.report({node:o,loc:c.loc,messageId:"missingSpace",fix:f=>f.insertTextAfter(p," ")})}return{ArrowFunctionExpression:l,FunctionDeclaration:l,FunctionExpression:l}}},px}var hx,nF;function yG(){if(nF)return hx;nF=1;let r=Pe();return hx={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Enforce consistent spacing inside parentheses",recommended:!1,url:"https://eslint.org/docs/latest/rules/space-in-parens"},fixable:"whitespace",schema:[{enum:["always","never"]},{type:"object",properties:{exceptions:{type:"array",items:{enum:["{}","[]","()","empty"]},uniqueItems:!0}},additionalProperties:!1}],messages:{missingOpeningSpace:"There must be a space after this paren.",missingClosingSpace:"There must be a space before this paren.",rejectedOpeningSpace:"There should be no space after this paren.",rejectedClosingSpace:"There should be no space before this paren."}},create(e){let t=e.options[0]==="always",s=e.options[1]&&e.options[1].exceptions||[],n={},i;s.length&&(n.braceException=s.includes("{}"),n.bracketException=s.includes("[]"),n.parenException=s.includes("()"),n.empty=s.includes("empty"));function a(){let d=[],m=[];return n.braceException&&(d.push("{"),m.push("}")),n.bracketException&&(d.push("["),m.push("]")),n.parenException&&(d.push("("),m.push(")")),n.empty&&(d.push(")"),m.push("(")),{openers:d,closers:m}}let l=e.sourceCode;function o(d){return i.openers.includes(d.value)}function u(d){return i.closers.includes(d.value)}function c(d,m){return l.isSpaceBetweenTokens(d,m)||!n.empty&&r.isClosingParenToken(m)?!1:t?!o(m):o(m)}function p(d,m){return!r.isTokenOnSameLine(d,m)||m.type==="Line"||!l.isSpaceBetweenTokens(d,m)?!1:t?o(m):!o(m)}function h(d,m){return l.isSpaceBetweenTokens(d,m)||!n.empty&&r.isOpeningParenToken(d)?!1:t?!u(d):u(d)}function f(d,m){return!r.isTokenOnSameLine(d,m)||!l.isSpaceBetweenTokens(d,m)?!1:t?u(d):!u(d)}return{Program:function(m){i=a();let g=l.tokensAndComments;g.forEach((y,v)=>{let x=g[v-1],S=g[v+1];!r.isOpeningParenToken(y)&&!r.isClosingParenToken(y)||(y.value==="("&&c(y,S)&&e.report({node:m,loc:y.loc,messageId:"missingOpeningSpace",fix(w){return w.insertTextAfter(y," ")}}),y.value==="("&&p(y,S)&&e.report({node:m,loc:{start:y.loc.end,end:S.loc.start},messageId:"rejectedOpeningSpace",fix(w){return w.removeRange([y.range[1],S.range[0]])}}),y.value===")"&&h(x,y)&&e.report({node:m,loc:y.loc,messageId:"missingClosingSpace",fix(w){return w.insertTextBefore(y," ")}}),y.value===")"&&f(x,y)&&e.report({node:m,loc:{start:x.loc.end,end:y.loc.start},messageId:"rejectedClosingSpace",fix(w){return w.removeRange([x.range[1],y.range[0]])}}))})}}}},hx}var dx,sF;function bG(){if(sF)return dx;sF=1;let{isEqToken:r}=Pe();return dx={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Require spacing around infix operators",recommended:!1,url:"https://eslint.org/docs/latest/rules/space-infix-ops"},fixable:"whitespace",schema:[{type:"object",properties:{int32Hint:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{missingSpace:"Operator '{{operator}}' must be spaced."}},create(e){let t=e.options[0]?e.options[0].int32Hint===!0:!1,s=e.sourceCode;function n(u,c,p){let h=s.getFirstTokenBetween(u,c,m=>m.value===p),f=s.getTokenBefore(h),d=s.getTokenAfter(h);return!s.isSpaceBetweenTokens(f,h)||!s.isSpaceBetweenTokens(h,d)?h:null}function i(u,c){e.report({node:u,loc:c.loc,messageId:"missingSpace",data:{operator:c.value},fix(p){let h=s.getTokenBefore(c),f=s.getTokenAfter(c),d="";return c.range[0]-h.range[1]===0&&(d=" "),d+=c.value,f.range[0]-c.range[1]===0&&(d+=" "),p.replaceText(c,d)}})}function a(u){let c=u.left.typeAnnotation?u.left.typeAnnotation:u.left,p=u.right,h=u.operator||"=",f=n(c,p,h);f&&(t&&s.getText(u).endsWith("|0")||i(u,f))}function l(u){let c=n(u.test,u.consequent,"?"),p=n(u.consequent,u.alternate,":");c&&i(u,c),p&&i(u,p)}function o(u){let c=u.id.typeAnnotation?u.id.typeAnnotation:u.id,p=u.init;if(p){let h=n(c,p,"=");h&&i(u,h)}}return{AssignmentExpression:a,AssignmentPattern:a,BinaryExpression:a,LogicalExpression:a,ConditionalExpression:l,VariableDeclarator:o,PropertyDefinition(u){if(!u.value)return;let c=s.getTokenBefore(u.value,r),p=s.getTokenBefore(c),h=s.getTokenAfter(c);(!s.isSpaceBetweenTokens(p,c)||!s.isSpaceBetweenTokens(c,h))&&i(u,c)}}}},dx}var mx,iF;function vG(){if(iF)return mx;iF=1;let r=Pe();return mx={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Enforce consistent spacing before or after unary operators",recommended:!1,url:"https://eslint.org/docs/latest/rules/space-unary-ops"},fixable:"whitespace",schema:[{type:"object",properties:{words:{type:"boolean",default:!0},nonwords:{type:"boolean",default:!1},overrides:{type:"object",additionalProperties:{type:"boolean"}}},additionalProperties:!1}],messages:{unexpectedBefore:"Unexpected space before unary operator '{{operator}}'.",unexpectedAfter:"Unexpected space after unary operator '{{operator}}'.",unexpectedAfterWord:"Unexpected space after unary word operator '{{word}}'.",wordOperator:"Unary word operator '{{word}}' must be followed by whitespace.",operator:"Unary operator '{{operator}}' must be followed by whitespace.",beforeUnaryExpressions:"Space is required before unary expressions '{{token}}'."}},create(e){let t=e.options[0]||{words:!0,nonwords:!1},s=e.sourceCode;function n(m){return m&&m.type==="UnaryExpression"&&m.argument.operator==="!"&&m.argument&&m.argument.type==="UnaryExpression"&&m.argument.operator==="!"}function i(m){return t.overrides&&Object.hasOwn(t.overrides,m)}function a(m){return t.overrides[m]}function l(m,g,y,v){y.range[0]===g.range[1]&&e.report({node:m,messageId:"wordOperator",data:{word:v},fix(x){return x.insertTextAfter(g," ")}})}function o(m,g,y,v){r.canTokensBeAdjacent(g,y)&&y.range[0]>g.range[1]&&e.report({node:m,messageId:"unexpectedAfterWord",data:{word:v},fix(x){return x.removeRange([g.range[1],y.range[0]])}})}function u(m,g,y,v){i(v)?a(v)?l(m,g,y,v):o(m,g,y,v):t.words?l(m,g,y,v):o(m,g,y,v)}function c(m){let g=s.getFirstTokens(m,3),y="yield";!m.argument||m.delegate||u(m,g[0],g[1],y)}function p(m){let g=s.getFirstTokens(m,3);u(m,g[0],g[1],"await")}function h(m,g,y){if(m.prefix){if(n(m))return;g.range[1]===y.range[0]&&e.report({node:m,messageId:"operator",data:{operator:g.value},fix(v){return v.insertTextAfter(g," ")}})}else g.range[1]===y.range[0]&&e.report({node:m,messageId:"beforeUnaryExpressions",data:{token:y.value},fix(v){return v.insertTextBefore(y," ")}})}function f(m,g,y){m.prefix?y.range[0]>g.range[1]&&e.report({node:m,messageId:"unexpectedAfter",data:{operator:g.value},fix(v){return r.canTokensBeAdjacent(g,y)?v.removeRange([g.range[1],y.range[0]]):null}}):y.range[0]>g.range[1]&&e.report({node:m,messageId:"unexpectedBefore",data:{operator:y.value},fix(v){return v.removeRange([g.range[1],y.range[0]])}})}function d(m){let g=m.type==="UpdateExpression"&&!m.prefix?s.getLastTokens(m,2):s.getFirstTokens(m,2),y=g[0],v=g[1];if((m.type==="NewExpression"||m.prefix)&&y.type==="Keyword"){u(m,y,v,y.value);return}let x=m.prefix?g[0].value:g[1].value;i(x)?a(x)?h(m,y,v):f(m,y,v):t.nonwords?h(m,y,v):f(m,y,v)}return{UnaryExpression:d,UpdateExpression:d,NewExpression:d,YieldExpression:c,AwaitExpression:p}}},mx}var gx,aF;function xG(){if(aF)return gx;aF=1;let r=Sc(),e=Pe();function t(o){return`(?:${r(o)})`}function s(o){return`${t(o)}+`}function n(o){return o.includes("*")?o:o.concat("*")}function i(o){let u="";return o.length===0?u+="\\s":(u+="(?:\\s|",o.length===1?u+=s(o[0]):(u+="(?:",u+=o.map(s).join("|"),u+=")"),u+=`(?:$|[${Array.from(e.LINEBREAKS).join("")}]))`),u}function a(o,u){let c="^";return o.length===1?c+=t(o[0]):(c+="(?:",c+=o.map(t).join("|"),c+=")"),c+="?",c+=i(u),new RegExp(c,"u")}function l(o){let u=`^(${o.map(t).join("|")})?[ ]+`;return new RegExp(u,"u")}return gx={meta:{deprecated:!0,replacedBy:[],type:"suggestion",docs:{description:"Enforce consistent spacing after the `//` or `/*` in a comment",recommended:!1,url:"https://eslint.org/docs/latest/rules/spaced-comment"},fixable:"whitespace",schema:[{enum:["always","never"]},{type:"object",properties:{exceptions:{type:"array",items:{type:"string"}},markers:{type:"array",items:{type:"string"}},line:{type:"object",properties:{exceptions:{type:"array",items:{type:"string"}},markers:{type:"array",items:{type:"string"}}},additionalProperties:!1},block:{type:"object",properties:{exceptions:{type:"array",items:{type:"string"}},markers:{type:"array",items:{type:"string"}},balanced:{type:"boolean",default:!1}},additionalProperties:!1}},additionalProperties:!1}],messages:{unexpectedSpaceAfterMarker:"Unexpected space or tab after marker ({{refChar}}) in comment.",expectedExceptionAfter:"Expected exception block, space or tab after '{{refChar}}' in comment.",unexpectedSpaceBefore:"Unexpected space or tab before '*/' in comment.",unexpectedSpaceAfter:"Unexpected space or tab after '{{refChar}}' in comment.",expectedSpaceBefore:"Expected space or tab before '*/' in comment.",expectedSpaceAfter:"Expected space or tab after '{{refChar}}' in comment."}},create(o){let u=o.sourceCode,c=o.options[0]!=="never",p=o.options[1]||{},h=p.block&&p.block.balanced,f=["block","line"].reduce((y,v)=>{let x=n(p[v]&&p[v].markers||p.markers||[]),S=p[v]&&p[v].exceptions||p.exceptions||[],w="[ ]+$";return y[v]={beginRegex:c?a(x,S):l(x),endRegex:h&&c?new RegExp(`${i(S)}$`,"u"):new RegExp(w,"u"),hasExceptions:S.length>0,captureMarker:new RegExp(`^(${x.map(t).join("|")})`,"u"),markers:new Set(x)},y},{});function d(y,v,x,S){let w=y.type.toLowerCase(),O=w==="block"?"/*":"//";o.report({node:y,fix(C){let E=y.range[0],k=E+2;return c?(x&&(k+=x[0].length),C.insertTextAfterRange([E,k]," ")):(k+=x[0].length,C.replaceTextRange([E,k],O+(x[1]?x[1]:"")))},messageId:v,data:{refChar:S}})}function m(y,v,x){o.report({node:y,fix(S){if(c)return S.insertTextAfterRange([y.range[0],y.range[1]-2]," ");let w=y.range[1]-2,O=w-x[0].length;return S.replaceTextRange([O,w],"")},messageId:v})}function g(y){let v=y.type.toLowerCase(),x=f[v],S=v==="block"?"/*":"//";if(y.value.length===0||x.markers.has(y.value))return;let w=x.beginRegex.exec(y.value),O=x.endRegex.exec(y.value);if(c){if(!w){let C=x.captureMarker.exec(y.value),E=C?S+C[0]:S;x.hasExceptions?d(y,"expectedExceptionAfter",C,E):d(y,"expectedSpaceAfter",C,E)}h&&v==="block"&&!O&&m(y,"expectedSpaceBefore")}else w&&(w[1]?d(y,"unexpectedSpaceAfterMarker",w,w[1]):d(y,"unexpectedSpaceAfter",w,S)),h&&v==="block"&&O&&m(y,"unexpectedSpaceBefore",O)}return{Program(){u.getAllComments().filter(v=>v.type!=="Shebang").forEach(g)}}}},gx}var yx,oF;function OG(){if(oF)return yx;oF=1;let r=Pe();function e(n){let i=[];for(let a=0;ax.remove(v)}function p(v,x,S,w,O){v.slice(x,S).forEach(C=>{n.report({node:C,messageId:w,fix:O?c(C):null})})}function h(v,x,S){p(v,0,v.length,x,S)}function f(v,x,S){p(v,1,v.length,x,S)}function d(v,x){let S=l.length>0,w=a.length===0&&l.length===0,O=a.length>0&&a.at(-1),C=x.length>0;C?(s(v.params)?O?n.report({node:x[0],messageId:"unnecessary",fix:c(x[0])}):S&&n.report({node:x[0],messageId:"unnecessaryInClasses",fix:c(x[0])}):n.report({node:x[0],messageId:"nonSimpleParameterList"}),f(x,"multiple",!0)):w&&(s(v.params)?n.report({node:v,messageId:"function"}):n.report({node:v,messageId:"wrap",data:{name:r.getFunctionNameWithKind(v)}})),a.push(O||C)}function m(){a.pop()}function g(v){let x=v.body.type==="BlockStatement",S=x?e(v.body.body):[];o==="function"?d(v,S):S.length>0&&(s(v.params)?h(S,o,u(o)):(n.report({node:S[0],messageId:"nonSimpleParameterList"}),f(S,"multiple",!0)))}let y={Program(v){let x=e(v.body);v.sourceType==="module"&&(o="module"),o==="global"?(v.body.length>0&&x.length===0&&n.report({node:v,messageId:"global"}),f(x,"multiple",!0)):h(x,o,u(o))},FunctionDeclaration:g,FunctionExpression:g,ArrowFunctionExpression:g};return o==="function"&&Object.assign(y,{ClassBody(){l.push(!0)},"ClassBody:exit"(){l.pop()},"FunctionDeclaration:exit":m,"FunctionExpression:exit":m,"ArrowFunctionExpression:exit":m}),y}},yx}var bx,lF;function SG(){if(lF)return bx;lF=1;let r=Pe();return bx={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Enforce spacing around colons of switch statements",recommended:!1,url:"https://eslint.org/docs/latest/rules/switch-colon-spacing"},schema:[{type:"object",properties:{before:{type:"boolean",default:!1},after:{type:"boolean",default:!0}},additionalProperties:!1}],fixable:"whitespace",messages:{expectedBefore:"Expected space(s) before this colon.",expectedAfter:"Expected space(s) after this colon.",unexpectedBefore:"Unexpected space(s) before this colon.",unexpectedAfter:"Unexpected space(s) after this colon."}},create(e){let t=e.sourceCode,s=e.options[0]||{},n=s.before===!0,i=s.after!==!1;function a(u,c,p){return r.isClosingBraceToken(c)||!r.isTokenOnSameLine(u,c)||t.isSpaceBetweenTokens(u,c)===p}function l(u,c){return t.getFirstTokenBetween(u,c,{includeComments:!0,filter:r.isCommentToken})!==null}function o(u,c,p,h){return l(c,p)?null:h?u.insertTextAfter(c," "):u.removeRange([c.range[1],p.range[0]])}return{SwitchCase(u){let c=r.getSwitchCaseColonToken(u,t),p=t.getTokenBefore(c),h=t.getTokenAfter(c);a(p,c,n)||e.report({node:u,loc:c.loc,messageId:n?"expectedBefore":"unexpectedBefore",fix:f=>o(f,p,c,n)}),a(c,h,i)||e.report({node:u,loc:c.loc,messageId:i?"expectedAfter":"unexpectedAfter",fix:f=>o(f,c,h,i)})}}}},bx}var vx,uF;function EG(){if(uF)return vx;uF=1;let r=Pe();return vx={meta:{type:"suggestion",docs:{description:"Require symbol descriptions",recommended:!1,url:"https://eslint.org/docs/latest/rules/symbol-description"},fixable:null,schema:[],messages:{expected:"Expected Symbol to have a description."}},create(e){let t=e.sourceCode;function s(n){n.arguments.length===0&&e.report({node:n,messageId:"expected"})}return{"Program:exit"(n){let i=t.getScope(n),a=r.getVariableByName(i,"Symbol");a&&a.defs.length===0&&a.references.forEach(l=>{let o=l.identifier;r.isCallee(o)&&s(o.parent)})}}}},vx}var xx,cF;function wG(){if(cF)return xx;cF=1;let r=Pe();return xx={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Require or disallow spacing around embedded expressions of template strings",recommended:!1,url:"https://eslint.org/docs/latest/rules/template-curly-spacing"},fixable:"whitespace",schema:[{enum:["always","never"]}],messages:{expectedBefore:"Expected space(s) before '}'.",expectedAfter:"Expected space(s) after '${'.",unexpectedBefore:"Unexpected space(s) before '}'.",unexpectedAfter:"Unexpected space(s) after '${'."}},create(e){let t=e.sourceCode,s=e.options[0]==="always";function n(a){if(!a.value.startsWith("}"))return;let l=t.getTokenBefore(a,{includeComments:!0}),o=t.isSpaceBetween(l,a);r.isTokenOnSameLine(l,a)&&(s&&!o&&e.report({loc:{start:a.loc.start,end:{line:a.loc.start.line,column:a.loc.start.column+1}},messageId:"expectedBefore",fix:u=>u.insertTextBefore(a," ")}),!s&&o&&e.report({loc:{start:l.loc.end,end:a.loc.start},messageId:"unexpectedBefore",fix:u=>u.removeRange([l.range[1],a.range[0]])}))}function i(a){if(!a.value.endsWith("${"))return;let l=t.getTokenAfter(a,{includeComments:!0}),o=t.isSpaceBetween(a,l);r.isTokenOnSameLine(a,l)&&(s&&!o&&e.report({loc:{start:{line:a.loc.end.line,column:a.loc.end.column-2},end:a.loc.end},messageId:"expectedAfter",fix:u=>u.insertTextAfter(a," ")}),!s&&o&&e.report({loc:{start:a.loc.end,end:l.loc.start},messageId:"unexpectedAfter",fix:u=>u.removeRange([a.range[1],l.range[0]])}))}return{TemplateElement(a){let l=t.getFirstToken(a);n(l),i(l)}}}},xx}var Ox,fF;function CG(){return fF||(fF=1,Ox={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Require or disallow spacing between template tags and their literals",recommended:!1,url:"https://eslint.org/docs/latest/rules/template-tag-spacing"},fixable:"whitespace",schema:[{enum:["always","never"]}],messages:{unexpected:"Unexpected space between template tag and template literal.",missing:"Missing space between template tag and template literal."}},create(r){let e=r.options[0]!=="always",t=r.sourceCode;function s(n){let i=t.getTokenBefore(n.quasi),a=t.getFirstToken(n.quasi),l=t.isSpaceBetweenTokens(i,a);e&&l?r.report({node:n,loc:{start:i.loc.end,end:a.loc.start},messageId:"unexpected",fix(o){let u=t.getCommentsBefore(n.quasi);return u.some(c=>c.type==="Line")?null:o.replaceTextRange([i.range[1],a.range[0]],u.reduce((c,p)=>c+t.getText(p),""))}}):!e&&!l&&r.report({node:n,loc:{start:n.loc.start,end:a.loc.start},messageId:"missing",fix(o){return o.insertTextAfter(i," ")}})}return{TaggedTemplateExpression:s}}}),Ox}var Sx,pF;function kG(){return pF||(pF=1,Sx={meta:{type:"layout",docs:{description:"Require or disallow Unicode byte order mark (BOM)",recommended:!1,url:"https://eslint.org/docs/latest/rules/unicode-bom"},fixable:"whitespace",schema:[{enum:["always","never"]}],messages:{expected:"Expected Unicode BOM (Byte Order Mark).",unexpected:"Unexpected Unicode BOM (Byte Order Mark)."}},create(r){return{Program:function(t){let s=r.sourceCode,n={column:0,line:1},i=r.options[0]||"never";!s.hasBOM&&i==="always"?r.report({node:t,loc:n,messageId:"expected",fix(a){return a.insertTextBeforeRange([0,1],"\uFEFF")}}):s.hasBOM&&i==="never"&&r.report({node:t,loc:n,messageId:"unexpected",fix(a){return a.removeRange([-1,0])}})}}}}),Sx}var Ex,hF;function AG(){if(hF)return Ex;hF=1;let r=Pe();function e(t){if(!t)return!1;let s=t.type==="SequenceExpression"?t.expressions.at(-1):t;return r.isSpecificId(s,"NaN")||r.isSpecificMemberAccess(s,"Number","NaN")}return Ex={meta:{hasSuggestions:!0,type:"problem",docs:{description:"Require calls to `isNaN()` when checking for `NaN`",recommended:!0,url:"https://eslint.org/docs/latest/rules/use-isnan"},schema:[{type:"object",properties:{enforceForSwitchCase:{type:"boolean",default:!0},enforceForIndexOf:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{comparisonWithNaN:"Use the isNaN function to compare with NaN.",switchNaN:"'switch(NaN)' can never match a case clause. Use Number.isNaN instead of the switch.",caseNaN:"'case NaN' can never match. Use Number.isNaN before the switch.",indexOfNaN:"Array prototype method '{{ methodName }}' cannot find NaN.",replaceWithIsNaN:"Replace with Number.isNaN.",replaceWithCastingAndIsNaN:"Replace with Number.isNaN and cast to a Number.",replaceWithFindIndex:"Replace with Array.prototype.{{ methodName }}."}},create(t){let s=!t.options[0]||t.options[0].enforceForSwitchCase,n=t.options[0]&&t.options[0].enforceForIndexOf,i=t.sourceCode,a=new Set(["==","===","!=","!=="]),l=new Set(["==","!="]);function o(f,d){return m=>{let g=e(f.left)?f.right:f.left,y=g.type==="SequenceExpression",x=f.operator[0]==="!"?"!":"",S=i.getText(g);y&&(S=`(${S})`);let w=d(S);return m.replaceText(f,`${x}${w}`)}}function u(f){if(/^(?:[<>]|[!=]=)=?$/u.test(f.operator)&&(e(f.left)||e(f.right))){let d=[],g=(e(f.left)?f.left:f.right).type==="SequenceExpression",y=a.has(f.operator)&&!g,v=l.has(f.operator);y&&(d.push({messageId:"replaceWithIsNaN",fix:o(f,x=>`Number.isNaN(${x})`)}),v&&d.push({messageId:"replaceWithCastingAndIsNaN",fix:o(f,x=>`Number.isNaN(Number(${x}))`)})),t.report({node:f,messageId:"comparisonWithNaN",suggest:d})}}function c(f){e(f.discriminant)&&t.report({node:f,messageId:"switchNaN"});for(let d of f.cases)e(d.test)&&t.report({node:d,messageId:"caseNaN"})}function p(f){let d=r.skipChainExpression(f.callee);if(d.type==="MemberExpression"){let m=r.getStaticPropertyName(d);if((m==="indexOf"||m==="lastIndexOf")&&f.arguments.length<=2&&e(f.arguments[0])){let g=f.arguments[0].type!=="SequenceExpression"&&!f.arguments[1],y=[];if(g){let v=d.computed,x=m==="indexOf"?"findIndex":"findLastIndex",S=v?`"${x}"`:x;y.push({messageId:"replaceWithFindIndex",data:{methodName:x},fix:w=>[w.replaceText(d.property,S),w.replaceText(f.arguments[0],"Number.isNaN")]})}t.report({node:f,messageId:"indexOfNaN",data:{methodName:m},suggest:y})}}}let h={BinaryExpression:u};return s&&(h.SwitchStatement=c),n&&(h.CallExpression=p),h}},Ex}var wx,dF;function PG(){if(dF)return wx;dF=1;let r=Pe();return wx={meta:{type:"problem",docs:{description:"Enforce comparing `typeof` expressions against valid strings",recommended:!0,url:"https://eslint.org/docs/latest/rules/valid-typeof"},hasSuggestions:!0,schema:[{type:"object",properties:{requireStringLiterals:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{invalidValue:"Invalid typeof comparison value.",notString:"Typeof comparisons should be to string literals.",suggestString:'Use `"{{type}}"` instead of `{{type}}`.'}},create(e){let t=new Set(["symbol","undefined","object","boolean","number","string","function","bigint"]),s=new Set(["==","===","!=","!=="]),n=e.sourceCode,i=e.options[0]&&e.options[0].requireStringLiterals,a;function l(u){let c=a.set.get(u.name);return c&&c.defs.length===0&&c.references.some(p=>p.identifier===u)}function o(u){return u.type==="UnaryExpression"&&u.operator==="typeof"}return{Program(u){a=n.getScope(u)},UnaryExpression(u){if(o(u)){let{parent:c}=u;if(c.type==="BinaryExpression"&&s.has(c.operator)){let p=c.left===u?c.right:c.left;if(p.type==="Literal"||r.isStaticTemplateLiteral(p)){let h=p.type==="Literal"?p.value:p.quasis[0].value.cooked;t.has(h)||e.report({node:p,messageId:"invalidValue"})}else p.type==="Identifier"&&p.name==="undefined"&&l(p)?e.report({node:p,messageId:i?"notString":"invalidValue",suggest:[{messageId:"suggestString",data:{type:"undefined"},fix(h){return h.replaceText(p,'"undefined"')}}]}):i&&!o(p)&&e.report({node:p,messageId:"notString"})}}}}}},wx}var Cx,mF;function TG(){return mF||(mF=1,Cx={meta:{type:"suggestion",docs:{description:"Require `var` declarations be placed at the top of their containing scope",recommended:!1,url:"https://eslint.org/docs/latest/rules/vars-on-top"},schema:[],messages:{top:"All 'var' declarations must be at the top of the function scope."}},create(r){function e(l){return l.type==="ExpressionStatement"&&l.expression.type==="Literal"&&typeof l.expression.value=="string"}function t(l){return l.type==="ImportDeclaration"||l.type==="ImportSpecifier"||l.type==="ImportDefaultSpecifier"||l.type==="ImportNamespaceSpecifier"}function s(l){return l.type==="VariableDeclaration"||l.type==="ExportNamedDeclaration"&&l.declaration&&l.declaration.type==="VariableDeclaration"}function n(l,o){let u=o.length,c=0;if(l.parent.type!=="StaticBlock")for(;co.replaceText(t,`(${e.getText(t)})`)})}}}}}),Ax}var Px,bF;function IG(){return bF||(bF=1,Px={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Require or disallow spacing around the `*` in `yield*` expressions",recommended:!1,url:"https://eslint.org/docs/latest/rules/yield-star-spacing"},fixable:"whitespace",schema:[{oneOf:[{enum:["before","after","both","neither"]},{type:"object",properties:{before:{type:"boolean"},after:{type:"boolean"}},additionalProperties:!1}]}],messages:{missingBefore:"Missing space before *.",missingAfter:"Missing space after *.",unexpectedBefore:"Unexpected space before *.",unexpectedAfter:"Unexpected space after *."}},create(r){let e=r.sourceCode,t=function(i){return!i||typeof i=="string"?{before:{before:!0,after:!1},after:{before:!1,after:!0},both:{before:!0,after:!0},neither:{before:!1,after:!1}}[i||"after"]:i}(r.options[0]);function s(i,a,l){if(e.isSpaceBetweenTokens(a,l)!==t[i]){let o=a.value==="*",u=t[i],c=o?a:l,p;u?p=i==="before"?"missingBefore":"missingAfter":p=i==="before"?"unexpectedBefore":"unexpectedAfter",r.report({node:c,messageId:p,fix(h){return u?o?h.insertTextAfter(c," "):h.insertTextBefore(c," "):h.removeRange([a.range[1],l.range[0]])}})}}function n(i){if(!i.delegate)return;let a=e.getFirstTokens(i,3),l=a[0],o=a[1],u=a[2];s("before",l,o),s("after",o,u)}return{YieldExpression:n}}}),Px}var Tx,vF;function RG(){if(vF)return Tx;vF=1;let r=Pe();function e(l){return/^(==|===|!=|!==|<|>|<=|>=)$/u.test(l)}function t(l){return/^(==|===)$/u.test(l)}function s(l){return["<","<="].includes(l)}function n(l){return l.type==="UnaryExpression"&&l.operator==="-"&&l.prefix&&r.isNumericLiteral(l.argument)}function i(l){return n(l)||r.isStaticTemplateLiteral(l)}function a(l){return l.type==="Literal"?l:n(l)?{type:"Literal",value:-l.argument.value,raw:`-${l.argument.value}`}:r.isStaticTemplateLiteral(l)?{type:"Literal",value:l.quasis[0].value.cooked,raw:l.quasis[0].value.raw}:null}return Tx={meta:{type:"suggestion",docs:{description:'Require or disallow "Yoda" conditions',recommended:!1,url:"https://eslint.org/docs/latest/rules/yoda"},schema:[{enum:["always","never"]},{type:"object",properties:{exceptRange:{type:"boolean",default:!1},onlyEquality:{type:"boolean",default:!1}},additionalProperties:!1}],fixable:"code",messages:{expected:"Expected literal to be on the {{expectedSide}} side of {{operator}}."}},create(l){let o=l.options[0]==="always",u=l.options[1]&&l.options[1].exceptRange,c=l.options[1]&&l.options[1].onlyEquality,p=l.sourceCode;function h(m){let g=m.left,y=m.right;function v(){if(m.operator==="&&"&&r.isSameReference(g.right,y.left)){let w=a(g.left),O=a(y.right);if(w===null&&O===null)return!1;if(O===null||w===null||w.value<=O.value)return!0}return!1}function x(){if(m.operator==="||"&&r.isSameReference(g.left,y.right)){let w=a(g.right),O=a(y.left);if(w===null&&O===null)return!1;if(O===null||w===null||w.value<=O.value)return!0}return!1}function S(){return r.isParenthesised(p,m)}return m.type==="LogicalExpression"&&g.type==="BinaryExpression"&&y.type==="BinaryExpression"&&s(g.operator)&&s(y.operator)&&(v()||x())&&S()}let f={"===":"===","!==":"!==","==":"==","!=":"!=","<":">",">":"<","<=":">=",">=":"<="};function d(m){let g=p.getFirstTokenBetween(m.left,m.right,_=>_.value===m.operator),y=p.getTokenBefore(g),v=p.getTokenAfter(g),x=p.getText(),S=x.slice(m.range[0],y.range[1]),w=x.slice(y.range[1],g.range[0]),O=x.slice(g.range[1],v.range[0]),C=x.slice(v.range[0],m.range[1]),E=p.getTokenBefore(m),k=p.getTokenAfter(m),A="",D="";return E&&E.range[1]===m.range[0]&&!r.canTokensBeAdjacent(E,v)&&(A=" "),k&&m.range[1]===k.range[0]&&!r.canTokensBeAdjacent(y,k)&&(D=" "),A+C+w+f[g.value]+O+S+D}return{BinaryExpression(m){let g=o?m.left:m.right,y=o?m.right:m.left;(y.type==="Literal"||i(y))&&!(g.type==="Literal"||i(g))&&!(!t(m.operator)&&c)&&e(m.operator)&&!(u&&h(m.parent))&&l.report({node:m,messageId:"expected",data:{operator:m.operator,expectedSide:o?"left":"right"},fix:v=>v.replaceText(m,d(m))})}}}},Tx}var Dx,xF;function nN(){if(xF)return Dx;xF=1;let{LazyLoadingRuleMap:r}=sV();return Dx=new r(Object.entries({"accessor-pairs":()=>oV(),"array-bracket-newline":()=>lV(),"array-bracket-spacing":()=>uV(),"array-callback-return":()=>cV(),"array-element-newline":()=>fV(),"arrow-body-style":()=>pV(),"arrow-parens":()=>hV(),"arrow-spacing":()=>dV(),"block-scoped-var":()=>mV(),"block-spacing":()=>gV(),"brace-style":()=>yV(),"callback-return":()=>bV(),camelcase:()=>vV(),"capitalized-comments":()=>xV(),"class-methods-use-this":()=>OV(),"comma-dangle":()=>SV(),"comma-spacing":()=>EV(),"comma-style":()=>wV(),complexity:()=>CV(),"computed-property-spacing":()=>kV(),"consistent-return":()=>AV(),"consistent-this":()=>PV(),"constructor-super":()=>TV(),curly:()=>DV(),"default-case":()=>_V(),"default-case-last":()=>IV(),"default-param-last":()=>RV(),"dot-location":()=>FV(),"dot-notation":()=>BV(),"eol-last":()=>NV(),eqeqeq:()=>LV(),"for-direction":()=>$V(),"func-call-spacing":()=>MV(),"func-name-matching":()=>jV(),"func-names":()=>qV(),"func-style":()=>QV(),"function-call-argument-newline":()=>UV(),"function-paren-newline":()=>VV(),"generator-star-spacing":()=>WV(),"getter-return":()=>zV(),"global-require":()=>ZV(),"grouped-accessor-pairs":()=>GV(),"guard-for-in":()=>XV(),"handle-callback-err":()=>YV(),"id-blacklist":()=>HV(),"id-denylist":()=>KV(),"id-length":()=>JV(),"id-match":()=>e7(),"implicit-arrow-linebreak":()=>t7(),indent:()=>r7(),"indent-legacy":()=>n7(),"init-declarations":()=>s7(),"jsx-quotes":()=>i7(),"key-spacing":()=>a7(),"keyword-spacing":()=>o7(),"line-comment-position":()=>l7(),"linebreak-style":()=>u7(),"lines-around-comment":()=>c7(),"lines-around-directive":()=>f7(),"lines-between-class-members":()=>p7(),"logical-assignment-operators":()=>h7(),"max-classes-per-file":()=>d7(),"max-depth":()=>m7(),"max-len":()=>g7(),"max-lines":()=>y7(),"max-lines-per-function":()=>b7(),"max-nested-callbacks":()=>v7(),"max-params":()=>x7(),"max-statements":()=>O7(),"max-statements-per-line":()=>S7(),"multiline-comment-style":()=>E7(),"multiline-ternary":()=>w7(),"new-cap":()=>C7(),"new-parens":()=>k7(),"newline-after-var":()=>A7(),"newline-before-return":()=>P7(),"newline-per-chained-call":()=>T7(),"no-alert":()=>D7(),"no-array-constructor":()=>_7(),"no-async-promise-executor":()=>I7(),"no-await-in-loop":()=>R7(),"no-bitwise":()=>F7(),"no-buffer-constructor":()=>B7(),"no-caller":()=>N7(),"no-case-declarations":()=>L7(),"no-catch-shadow":()=>$7(),"no-class-assign":()=>M7(),"no-compare-neg-zero":()=>j7(),"no-cond-assign":()=>q7(),"no-confusing-arrow":()=>Q7(),"no-console":()=>U7(),"no-const-assign":()=>V7(),"no-constant-binary-expression":()=>W7(),"no-constant-condition":()=>z7(),"no-constructor-return":()=>Z7(),"no-continue":()=>G7(),"no-control-regex":()=>X7(),"no-debugger":()=>Y7(),"no-delete-var":()=>H7(),"no-div-regex":()=>K7(),"no-dupe-args":()=>J7(),"no-dupe-class-members":()=>eW(),"no-dupe-else-if":()=>tW(),"no-dupe-keys":()=>rW(),"no-duplicate-case":()=>nW(),"no-duplicate-imports":()=>sW(),"no-else-return":()=>iW(),"no-empty":()=>aW(),"no-empty-character-class":()=>oW(),"no-empty-function":()=>lW(),"no-empty-pattern":()=>uW(),"no-empty-static-block":()=>cW(),"no-eq-null":()=>fW(),"no-eval":()=>pW(),"no-ex-assign":()=>hW(),"no-extend-native":()=>dW(),"no-extra-bind":()=>mW(),"no-extra-boolean-cast":()=>gW(),"no-extra-label":()=>yW(),"no-extra-parens":()=>bW(),"no-extra-semi":()=>vW(),"no-fallthrough":()=>xW(),"no-floating-decimal":()=>OW(),"no-func-assign":()=>SW(),"no-global-assign":()=>EW(),"no-implicit-coercion":()=>wW(),"no-implicit-globals":()=>CW(),"no-implied-eval":()=>kW(),"no-import-assign":()=>AW(),"no-inline-comments":()=>PW(),"no-inner-declarations":()=>TW(),"no-invalid-regexp":()=>DW(),"no-invalid-this":()=>_W(),"no-irregular-whitespace":()=>IW(),"no-iterator":()=>RW(),"no-label-var":()=>FW(),"no-labels":()=>BW(),"no-lone-blocks":()=>NW(),"no-lonely-if":()=>LW(),"no-loop-func":()=>$W(),"no-loss-of-precision":()=>MW(),"no-magic-numbers":()=>jW(),"no-misleading-character-class":()=>ZW(),"no-mixed-operators":()=>GW(),"no-mixed-requires":()=>XW(),"no-mixed-spaces-and-tabs":()=>YW(),"no-multi-assign":()=>HW(),"no-multi-spaces":()=>KW(),"no-multi-str":()=>JW(),"no-multiple-empty-lines":()=>ez(),"no-native-reassign":()=>tz(),"no-negated-condition":()=>rz(),"no-negated-in-lhs":()=>nz(),"no-nested-ternary":()=>sz(),"no-new":()=>iz(),"no-new-func":()=>az(),"no-new-native-nonconstructor":()=>oz(),"no-new-object":()=>lz(),"no-new-require":()=>uz(),"no-new-symbol":()=>cz(),"no-new-wrappers":()=>fz(),"no-nonoctal-decimal-escape":()=>pz(),"no-obj-calls":()=>hz(),"no-object-constructor":()=>dz(),"no-octal":()=>mz(),"no-octal-escape":()=>gz(),"no-param-reassign":()=>yz(),"no-path-concat":()=>bz(),"no-plusplus":()=>vz(),"no-process-env":()=>xz(),"no-process-exit":()=>Oz(),"no-promise-executor-return":()=>Sz(),"no-proto":()=>Ez(),"no-prototype-builtins":()=>wz(),"no-redeclare":()=>Cz(),"no-regex-spaces":()=>kz(),"no-restricted-exports":()=>Az(),"no-restricted-globals":()=>Pz(),"no-restricted-imports":()=>Tz(),"no-restricted-modules":()=>Dz(),"no-restricted-properties":()=>_z(),"no-restricted-syntax":()=>Iz(),"no-return-assign":()=>Rz(),"no-return-await":()=>Fz(),"no-script-url":()=>Bz(),"no-self-assign":()=>Nz(),"no-self-compare":()=>Lz(),"no-sequences":()=>$z(),"no-setter-return":()=>Mz(),"no-shadow":()=>jz(),"no-shadow-restricted-names":()=>qz(),"no-spaced-func":()=>Qz(),"no-sparse-arrays":()=>Uz(),"no-sync":()=>Vz(),"no-tabs":()=>Wz(),"no-template-curly-in-string":()=>zz(),"no-ternary":()=>Zz(),"no-this-before-super":()=>Gz(),"no-throw-literal":()=>Xz(),"no-trailing-spaces":()=>Yz(),"no-undef":()=>Hz(),"no-undef-init":()=>Kz(),"no-undefined":()=>Jz(),"no-underscore-dangle":()=>eZ(),"no-unexpected-multiline":()=>tZ(),"no-unmodified-loop-condition":()=>rZ(),"no-unneeded-ternary":()=>nZ(),"no-unreachable":()=>sZ(),"no-unreachable-loop":()=>iZ(),"no-unsafe-finally":()=>aZ(),"no-unsafe-negation":()=>oZ(),"no-unsafe-optional-chaining":()=>lZ(),"no-unused-expressions":()=>uZ(),"no-unused-labels":()=>cZ(),"no-unused-private-class-members":()=>fZ(),"no-unused-vars":()=>pZ(),"no-use-before-define":()=>hZ(),"no-useless-assignment":()=>dZ(),"no-useless-backreference":()=>mZ(),"no-useless-call":()=>gZ(),"no-useless-catch":()=>yZ(),"no-useless-computed-key":()=>bZ(),"no-useless-concat":()=>vZ(),"no-useless-constructor":()=>xZ(),"no-useless-escape":()=>OZ(),"no-useless-rename":()=>SZ(),"no-useless-return":()=>EZ(),"no-var":()=>wZ(),"no-void":()=>CZ(),"no-warning-comments":()=>kZ(),"no-whitespace-before-property":()=>AZ(),"no-with":()=>PZ(),"nonblock-statement-body-position":()=>TZ(),"object-curly-newline":()=>DZ(),"object-curly-spacing":()=>_Z(),"object-property-newline":()=>IZ(),"object-shorthand":()=>RZ(),"one-var":()=>FZ(),"one-var-declaration-per-line":()=>BZ(),"operator-assignment":()=>NZ(),"operator-linebreak":()=>LZ(),"padded-blocks":()=>$Z(),"padding-line-between-statements":()=>MZ(),"prefer-arrow-callback":()=>jZ(),"prefer-const":()=>qZ(),"prefer-destructuring":()=>QZ(),"prefer-exponentiation-operator":()=>UZ(),"prefer-named-capture-group":()=>VZ(),"prefer-numeric-literals":()=>WZ(),"prefer-object-has-own":()=>zZ(),"prefer-object-spread":()=>ZZ(),"prefer-promise-reject-errors":()=>GZ(),"prefer-reflect":()=>XZ(),"prefer-regex-literals":()=>YZ(),"prefer-rest-params":()=>HZ(),"prefer-spread":()=>KZ(),"prefer-template":()=>JZ(),"quote-props":()=>eG(),quotes:()=>tG(),radix:()=>rG(),"require-atomic-updates":()=>nG(),"require-await":()=>sG(),"require-unicode-regexp":()=>iG(),"require-yield":()=>aG(),"rest-spread-spacing":()=>oG(),semi:()=>lG(),"semi-spacing":()=>uG(),"semi-style":()=>cG(),"sort-imports":()=>fG(),"sort-keys":()=>hG(),"sort-vars":()=>dG(),"space-before-blocks":()=>mG(),"space-before-function-paren":()=>gG(),"space-in-parens":()=>yG(),"space-infix-ops":()=>bG(),"space-unary-ops":()=>vG(),"spaced-comment":()=>xG(),strict:()=>OG(),"switch-colon-spacing":()=>SG(),"symbol-description":()=>EG(),"template-curly-spacing":()=>wG(),"template-tag-spacing":()=>CG(),"unicode-bom":()=>kG(),"use-isnan":()=>AG(),"valid-typeof":()=>PG(),"vars-on-top":()=>TG(),"wrap-iife":()=>DG(),"wrap-regex":()=>_G(),"yield-star-spacing":()=>IG(),yoda:()=>RG()})),Dx}var _x,OF;function FG(){if(OF)return _x;OF=1;let r=nN();class e{constructor(){this._rules=Object.create(null)}define(s,n){this._rules[s]=n}get(s){return typeof this._rules[s]=="string"&&this.define(s,nV(this._rules[s])),this._rules[s]?this._rules[s]:r.has(s)?r.get(s):null}*[Symbol.iterator](){yield*r;for(let s of Object.keys(this._rules))yield[s,this.get(s)]}}return _x=e,_x}var Ix,SF;function BG(){if(SF)return Ix;SF=1;let r=vi()("eslint:source-code-fixer"),e="\uFEFF";function t(i,a){return i.fix.range[0]-a.fix.range[0]||i.fix.range[1]-a.fix.range[1]}function s(i,a){return i.line-a.line||i.column-a.column}function n(){Object.freeze(this)}return n.applyFixes=function(i,a,l){if(r("Applying fixes"),l===!1)return r("shouldFix parameter was false, not attempting fixes"),{fixed:!1,messages:a,output:i};let o=[],u=[],c=i.startsWith(e)?e:"",p=c?i.slice(1):i,h=Number.NEGATIVE_INFINITY,f=c;function d(m){let g=m.fix,y=g.range[0],v=g.range[1];return h>=y||y>v?(o.push(m),!1):((y<0&&v>=0||y===0&&g.text.startsWith(e))&&(f=""),f+=p.slice(Math.max(0,h),Math.max(0,y)),f+=g.text,h=v,!0)}if(a.forEach(m=>{Object.hasOwn(m,"fix")?u.push(m):o.push(m)}),u.length){r("Found fixes to apply");let m=!1;for(let g of u.sort(t))typeof l!="function"||l(g)?(d(g),m=!0):o.push(g);return f+=p.slice(Math.max(0,h)),{fixed:m,messages:o.sort(s),output:f}}return r("No fixes to apply"),{fixed:!1,messages:a,output:c+p}},Ix=n,Ix}var Rx,EF;function sN(){if(EF)return Rx;EF=1;function r(){return Bt.hrtime()}function e(t){let s=Bt.hrtime(t);return s[0]*1e3+s[1]/1e6}return Rx={startTime:r,endTime:e},Rx}var Fx,wF;function NG(){if(wF)return Fx;wF=1;let{startTime:r,endTime:e}=sN();function t(u,c,p){return u+new Array(c-u.length+1).join(p||" ")}function s(u,c,p){return new Array(c-u.length+1).join(p||" ")+u}let n=!!Bt.env.TIMING,i=["Rule","Time (ms)","Relative"],a=[t,s,s];function l(){if(typeof Bt.env.TIMING!="string")return 10;if(Bt.env.TIMING.toLowerCase()==="all")return Number.POSITIVE_INFINITY;let c=Number.parseInt(Bt.env.TIMING,10);return c>10?c:10}function o(u){let c=0,p=Object.keys(u).map(d=>{let m=u[d];return c+=m,[d,m]}).sort((d,m)=>m[1]-d[1]).slice(0,l());p.forEach(d=>{d.push(`${(d[1]*100/c).toFixed(1)}%`),d[1]=d[1].toFixed(3)}),p.unshift(i);let h=[];p.forEach(d=>{let m=d.length;for(let g=0;gh[g])&&(h[g]=y)}});let f=p.map(d=>d.map((m,g)=>a[g](m,h[g])).join(" | "));f.splice(1,0,h.map((d,m)=>{let g=m!==0&&m!==h.length-1?2:1;return a[m](":",d+g,"-")}).join("|")),console.log(f.join(` +`))}return Fx=function(){let u=Object.create(null);function c(p,h,f){return function(...d){let m=r(),g=h(...d),y=e(m);return n&&(typeof u[p]>"u"&&(u[p]=0),u[p]+=y),f?{result:g,tdiff:y}:g}}return n&&Bt.on("exit",()=>{o(u)}),{time:c,enabled:n,getListSize:l}}(),Fx}var LG={"generator-star":["generator-star-spacing"],"global-strict":["strict"],"no-arrow-condition":["no-confusing-arrow","no-constant-condition"],"no-comma-dangle":["comma-dangle"],"no-empty-class":["no-empty-character-class"],"no-empty-label":["no-labels"],"no-extra-strict":["strict"],"no-reserved-keys":["quote-props"],"no-space-before-semi":["semi-spacing"],"no-wrap-func":["no-extra-parens"],"space-after-function-name":["space-before-function-paren"],"space-after-keywords":["keyword-spacing"],"space-before-function-parentheses":["space-before-function-paren"],"space-before-keywords":["keyword-spacing"],"space-in-brackets":["object-curly-spacing","array-bracket-spacing","computed-property-spacing"],"space-return-throw-case":["keyword-spacing"],"space-unary-word-ops":["space-unary-ops"],"spaced-line-comment":["spaced-comment"]},iN={rules:LG},Bx,CF;function aN(){if(CF)return Bx;CF=1;let r=Object.freeze({type:"array",minItems:0,maxItems:0});function e(n){let i,a;return n.includes("/")?(n.startsWith("@")?i=n.slice(0,n.lastIndexOf("/")):i=n.slice(0,n.indexOf("/")),a=n.slice(i.length+1)):(i="@",a=n),{pluginName:i,ruleName:a}}function t(n,i){let{pluginName:a,ruleName:l}=e(n),o=i.plugins&&i.plugins[a];return o&&o.rules&&o.rules[l]}function s(n){if(!n.meta)return{...r};let i=n.meta.schema;if(typeof i>"u")return{...r};if(i===!1)return null;if(typeof i!="object"||i===null)throw new TypeError("Rule's `meta.schema` must be an array or object");return Array.isArray(i)?i.length?{type:"array",items:i,minItems:0,maxItems:i.length}:{...r}:i}return Bx={parseRuleId:e,getRuleFromConfig:t,getRuleOptionsSchema:s},Bx}var Nx={},tc={},Lx,kF;function $G(){if(kF)return Lx;kF=1,Lx=function(e,t){for(var s=[],n=0;n=0&&h>0){for(a=[],o=i.length;f>=0&&!c;)f==p?(a.push(f),p=i.indexOf(s,f+1)):a.length==1?c=[a.pop(),h]:(l=a.pop(),l=0?p:h;a.length&&(c=[o,u])}return c}return $x}var Mx,PF;function jG(){if(PF)return Mx;PF=1;var r=$G(),e=MG();Mx=p;var t="\0SLASH"+Math.random()+"\0",s="\0OPEN"+Math.random()+"\0",n="\0CLOSE"+Math.random()+"\0",i="\0COMMA"+Math.random()+"\0",a="\0PERIOD"+Math.random()+"\0";function l(y){return parseInt(y,10)==y?parseInt(y,10):y.charCodeAt(0)}function o(y){return y.split("\\\\").join(t).split("\\{").join(s).split("\\}").join(n).split("\\,").join(i).split("\\.").join(a)}function u(y){return y.split(t).join("\\").split(s).join("{").split(n).join("}").split(i).join(",").split(a).join(".")}function c(y){if(!y)return[""];var v=[],x=e("{","}",y);if(!x)return y.split(",");var S=x.pre,w=x.body,O=x.post,C=S.split(",");C[C.length-1]+="{"+w+"}";var E=c(O);return O.length&&(C[C.length-1]+=E.shift(),C.push.apply(C,E)),v.push.apply(v,C),v}function p(y){return y?(y.substr(0,2)==="{}"&&(y="\\{\\}"+y.substr(2)),g(o(y),!0).map(u)):[]}function h(y){return"{"+y+"}"}function f(y){return/^-?0\d/.test(y)}function d(y,v){return y<=v}function m(y,v){return y>=v}function g(y,v){var x=[],S=e("{","}",y);if(!S||/\$$/.test(S.pre))return[y];var w=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(S.body),O=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(S.body),C=w||O,E=S.body.indexOf(",")>=0;if(!C&&!E)return S.post.match(/,.*\}/)?(y=S.pre+"{"+S.body+n+S.post,g(y)):[y];var k;if(C)k=S.body.split(/\.\./);else if(k=c(S.body),k.length===1&&(k=g(k[0],!1).map(h),k.length===1)){var D=S.post.length?g(S.post,!1):[""];return D.map(function($){return S.pre+k[0]+$})}var A=S.pre,D=S.post.length?g(S.post,!1):[""],_;if(C){var B=l(k[0]),T=l(k[1]),R=Math.max(k[0].length,k[1].length),j=k.length==3?Math.abs(l(k[2])):1,Q=d,I=T0){var ae=new Array(V+1).join("0");F<0?U="-"+ae+U.slice(1):U=ae+U}}_.push(U)}}else _=r(k,function(he){return g(he,!1)});for(var se=0;se<_.length;se++)for(var xe=0;xe"u"?this.pattern:k,x(k),A.nobrace||!/\{(?:(?!\{).)*\}/.test(k)?[k]:t(k)}var v=1024*64,x=function(k){if(typeof k!="string")throw new TypeError("invalid pattern");if(k.length>v)throw new TypeError("pattern is too long")};d.prototype.parse=w;var S={};function w(k,A){x(k);var D=this.options;if(k==="**")if(D.noglobstar)k="*";else return e;if(k==="")return"";var _="",B=!!D.nocase,T=!1,R=[],j=[],Q,I=!1,N=-1,F=-1,U=k.charAt(0)==="."?"":D.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",V=this;function ae(){if(Q){switch(Q){case"*":_+=i,B=!0;break;case"?":_+=n,B=!0;break;default:_+="\\"+Q;break}V.debug("clearStateChar %j %j",Q,_),Q=!1}}for(var se=0,xe=k.length,H;se-1;Le--){var qe=j[Le],rt=_.slice(0,qe.reStart),ht=_.slice(qe.reStart,qe.reEnd-8),pt=_.slice(qe.reEnd-8,qe.reEnd),Et=_.slice(qe.reEnd);pt+=Et;var G=rt.split("(").length-1,Ce=Et;for(se=0;se"u"&&(D=this.partial),this.debug("match",A,this.pattern),this.comment)return!1;if(this.empty)return A==="";if(A==="/"&&D)return!0;var _=this.options;r.sep!=="/"&&(A=A.split(r.sep).join("/")),A=A.split(c),this.debug(this.pattern,"split",A);var B=this.set;this.debug(this.pattern,"set",B);var T,R;for(R=A.length-1;R>=0&&(T=A[R],!T);R--);for(R=0;R>> no match, partial?`,k,N,A,F),N===R))}var V;if(typeof Q=="string"?(V=I===Q,this.debug("string match",Q,I,V)):(V=I.match(Q),this.debug("pattern match",Q,I,V)),!V)return!1}if(B===R&&T===j)return!0;if(B===R)return D;if(T===j)return B===R-1&&k[B]==="";throw new Error("wtf?")};function C(k){return k.replace(/\\(.)/g,"$1")}function E(k){return k.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}return jx}var $o={},qx={},Qx={},DF;function oN(){if(DF)return Qx;DF=1;class r{static overwrite(t,s){return s}static replace(t,s){return typeof s<"u"?s:t}static assign(t,s){return Object.assign({},t,s)}}return Qx.MergeStrategy=r,Qx}var Ux={},_F;function lN(){if(_F)return Ux;_F=1;class r{static array(t){if(!Array.isArray(t))throw new TypeError("Expected an array.")}static boolean(t){if(typeof t!="boolean")throw new TypeError("Expected a Boolean.")}static number(t){if(typeof t!="number")throw new TypeError("Expected a number.")}static object(t){if(!t||typeof t!="object")throw new TypeError("Expected an object.")}static"object?"(t){if(typeof t!="object")throw new TypeError("Expected an object or null.")}static string(t){if(typeof t!="string")throw new TypeError("Expected a string.")}static"string!"(t){if(typeof t!="string"||t.length===0)throw new TypeError("Expected a non-empty string.")}}return Ux.ValidationStrategy=r,Ux}var IF;function QG(){if(IF)return qx;IF=1;let{MergeStrategy:r}=oN(),{ValidationStrategy:e}=lN(),t=Symbol("strategies"),s=Symbol("requiredKeys");function n(c,p){let h=!1;if(p.schema)if(typeof p.schema=="object")h=!0;else throw new TypeError("Schema must be an object.");if(typeof p.merge=="string"){if(!(p.merge in r))throw new TypeError(`Definition for key "${c}" missing valid merge strategy.`)}else if(!h&&typeof p.merge!="function")throw new TypeError(`Definition for key "${c}" must have a merge property.`);if(typeof p.validate=="string"){if(!(p.validate in e))throw new TypeError(`Definition for key "${c}" missing valid validation strategy.`)}else if(!h&&typeof p.validate!="function")throw new TypeError(`Definition for key "${c}" must have a validate() method.`)}class i extends Error{constructor(p){super(`Unexpected key "${p}" found.`)}}class a extends Error{constructor(p){super(`Missing required key "${p}".`)}}class l extends Error{constructor(p,h){super(`Key "${p}" requires keys "${h.join('", "')}".`)}}class o extends Error{constructor(p,h){super(`Key "${p}": ${h.message}`,{cause:h});for(let f of Object.keys(h))f in this||(this[f]=h[f])}}class u{constructor(p){if(!p)throw new Error("Schema definitions missing.");this[t]=new Map,this[s]=new Map;for(let h of Object.keys(p)){if(n(h,p[h]),typeof p[h].schema=="object"){let f=new u(p[h].schema);p[h]={...p[h],merge(d={},m={}){return f.merge(d,m)},validate(d){e.object(d),f.validate(d)}}}typeof p[h].merge=="string"&&(p[h]={...p[h],merge:r[p[h].merge]}),typeof p[h].validate=="string"&&(p[h]={...p[h],validate:e[p[h].validate]}),this[t].set(h,p[h]),p[h].required&&this[s].set(h,p[h])}}hasKey(p){return this[t].has(p)}merge(...p){if(p.length<2)throw new TypeError("merge() requires at least two arguments.");if(p.some(h=>h==null||typeof h!="object"))throw new TypeError("All arguments must be objects.");return p.reduce((h,f)=>{this.validate(f);for(let[d,m]of this[t])try{if(d in h||d in f){let g=m.merge.call(this,h[d],f[d]);g!==void 0&&(h[d]=g)}}catch(g){throw new o(d,g)}return h},{})}validate(p){for(let h of Object.keys(p)){if(!this.hasKey(h))throw new i(h);let f=this[t].get(h);if(Array.isArray(f.requires)&&!f.requires.every(d=>d in p))throw new l(h,f.requires);try{f.validate.call(f,p[h])}catch(d){throw new o(h,d)}}for(let[h]of this[s])if(!(h in p))throw new a(h)}}return qx.ObjectSchema=u,qx}var RF;function UG(){return RF||(RF=1,$o.ObjectSchema=QG().ObjectSchema,$o.MergeStrategy=oN().MergeStrategy,$o.ValidationStrategy=lN().ValidationStrategy),$o}var FF;function VG(){if(FF)return tc;FF=1;var r=fc,e=qG(),t=vi(),s=UG();let n={required:!1,merge(){},validate(){}},i=Object.freeze({name:{required:!1,merge(){},validate(I){if(typeof I!="string")throw new TypeError("Property must be a string.")}},files:n,ignores:n});function a(I){if(!Array.isArray(I))throw new TypeError("Expected value to be an array.")}function l(I,N){if(a(I),I.some(F=>typeof F!="string"&&typeof F!="function"))throw new TypeError("Expected array to only contain strings and functions.")}function o(I){if(!Array.isArray(I)||I.length===0)throw new TypeError("Expected value to be a non-empty array.")}let u=Object.freeze({files:{required:!1,merge(){},validate(I){o(I),I.forEach(N=>{if(Array.isArray(N))l(N);else if(typeof N!="string"&&typeof N!="function")throw new TypeError("Items must be a string, a function, or an array of strings and functions.")})}},ignores:{required:!1,merge(){},validate:l}}),c=e.Minimatch,p=new Map,h=new Map,f=t("@hwc/config-array"),d={dot:!0},m=new Set(["array","function"]),g=new Set(["name"]),y=new s.ObjectSchema(u);class v extends Error{constructor(N,F,{cause:U,message:V}){let ae=V||U.message;if(super(`Config ${N}: ${ae}`,{cause:U}),U)for(let se of Object.keys(U))se in this||(this[se]=U[se]);this.name="ConfigError",this.index=F}}function x(I){return I&&typeof I.name=="string"&&I.name?`"${I.name}"`:"(unnamed)"}function S(I,N,F){let U=x(I);throw new v(U,N,F)}function w(I){return typeof I=="string"}function O(I,N){if(I===null)throw new v(x(I),N,{message:"Unexpected null config."});if(I===void 0)throw new v(x(I),N,{message:"Unexpected undefined config."});if(typeof I!="object")throw new v(x(I),N,{message:"Unexpected non-object config."});let F={};"files"in I&&(F.files=I.files),"ignores"in I&&(F.ignores=I.ignores);try{y.validate(F)}catch(U){S(I,N,{cause:U})}}function C(I,N,F={}){let U=p;F.flipNegate&&(U=h);let V=U.get(N);return V||(V=new c(N,Object.assign({},d,F)),U.set(N,V)),V.match(I)}async function E(I,N,F){let U=F.includes("function"),V=F.includes("array");async function*ae(H){for(let he of H){if(typeof he=="function"){if(!U)throw new TypeError("Unexpected function.");he=he(N),he.then&&(he=await he)}if(Array.isArray(he)){if(!V)throw new TypeError("Unexpected array.");yield*ae(he)}else{if(typeof he=="function")throw new TypeError("A config function can only return an object or array.");yield he}}}let se=await ae(I),xe=[];for await(let H of se)xe.push(H);return xe}function k(I,N,F){let U=F.includes("function"),V=F.includes("array");function*ae(se){for(let xe of se){if(typeof xe=="function"){if(!U)throw new TypeError("Unexpected function.");if(xe=xe(N),xe.then)throw new TypeError("Async config functions are not supported.")}if(Array.isArray(xe)){if(!V)throw new TypeError("Unexpected array.");yield*ae(xe)}else{if(typeof xe=="function")throw new TypeError("A config function can only return an object or array.");yield xe}}}return[...ae(I)]}function A(I,N,F){return F.startsWith("..")?!0:I.reduce((U,V)=>U?typeof V=="string"&&V.startsWith("!")?!C(F,V,{flipNegate:!0}):U:typeof V=="function"?V(N):V.startsWith("!")?!1:C(F,V),!1)}function D(I,N,F){let U=r.relative(N,I);return Object.keys(F).filter(V=>!g.has(V)).length>1&&!A(F.ignores,I,U)}function _(I,N,F){let U=r.relative(N,I),V=se=>{if(w(se))return C(U,se);if(typeof se=="function")return se(I);throw new TypeError(`Unexpected matcher type ${se}.`)},ae=F.files.some(se=>Array.isArray(se)?se.every(V):V(se));return ae&&F.ignores&&(ae=!A(F.ignores,I,U)),ae}function B(I){if(!I.isNormalized())throw new Error("ConfigArray must be normalized to perform this operation.")}function T(I){if(I.length>2)throw new TypeError("configTypes must be an array with at most two items.");for(let N of I)if(!m.has(N))throw new TypeError(`Unexpected config type "${N}" found. Expected one of: "object", "array", "function".`)}let R={isNormalized:Symbol("isNormalized"),configCache:Symbol("configCache"),schema:Symbol("schema"),finalizeConfig:Symbol("finalizeConfig"),preprocessConfig:Symbol("preprocessConfig")},j=new WeakMap;class Q extends Array{constructor(N,{basePath:F="",normalized:U=!1,schema:V,extraConfigTypes:ae=[]}={}){super(),this[R.isNormalized]=U,this[R.schema]=new s.ObjectSchema(Object.assign({},V,i)),this.basePath=F,T(ae),this.extraConfigTypes=Object.freeze([...ae]),this[R.configCache]=new Map,j.set(this,{explicitMatches:new Map,directoryMatches:new Map,files:void 0,ignores:void 0}),Array.isArray(N)?this.push(...N):this.push(N)}static get[Symbol.species](){return Array}get files(){B(this);let N=j.get(this);if(N.files)return N.files;let F=[];for(let U of this)U.files&&U.files.forEach(V=>{F.push(V)});return N.files=F,j.set(this,N),F}get ignores(){B(this);let N=j.get(this);if(N.ignores)return N.ignores;let F=[];for(let U of this)U.ignores&&Object.keys(U).filter(V=>!g.has(V)).length===1&&F.push(...U.ignores);return N.ignores=F,j.set(this,N),F}isNormalized(){return this[R.isNormalized]}async normalize(N={}){if(!this.isNormalized()){let F=await E(this,N,this.extraConfigTypes);this.length=0,this.push(...F.map(this[R.preprocessConfig].bind(this))),this.forEach(O),this[R.isNormalized]=!0,Object.freeze(this)}return this}normalizeSync(N={}){if(!this.isNormalized()){let F=k(this,N,this.extraConfigTypes);this.length=0,this.push(...F.map(this[R.preprocessConfig].bind(this))),this.forEach(O),this[R.isNormalized]=!0,Object.freeze(this)}return this}[R.finalizeConfig](N){return N}[R.preprocessConfig](N){return N}isExplicitMatch(N){B(this);let F=j.get(this),U=F.explicitMatches.get(N);if(typeof U=="boolean")return U;let V=r.relative(this.basePath,N);if(A(this.ignores,N,V))return f(`Ignoring ${N}`),F.explicitMatches.set(N,!1),!1;for(let ae of this)if(ae.files&&_(N,this.basePath,ae))return f(`Matching config found for ${N}`),F.explicitMatches.set(N,!0),!0;return!1}getConfig(N){B(this);let F=this[R.configCache];if(F.has(N))return F.get(N);let U;if(this.isDirectoryIgnored(r.dirname(N)))return f(`Ignoring ${N} based on directory pattern`),F.set(N,U),U;let V=r.relative(this.basePath,N);if(A(this.ignores,N,V))return f(`Ignoring ${N} based on file pattern`),F.set(N,U),U;let ae=[],se=!1,xe=/\/\*{1,2}$/;return this.forEach((H,he)=>{if(!H.files){if(!H.ignores){f(`Anonymous universal config found for ${N}`),ae.push(he);return}if(D(N,this.basePath,H)){f(`Matching config found for ${N} (based on ignores: ${H.ignores})`),ae.push(he);return}f(`Skipped config found for ${N} (based on ignores: ${H.ignores})`);return}let $=H.files.filter(pe=>xe.test(pe));if($.length){f("Universal files patterns found. Checking carefully.");let pe=H.files.filter(K=>!xe.test(K));if(pe.length&&_(N,this.basePath,{files:pe,ignores:H.ignores})){f(`Matching config found for ${N}`),ae.push(he),se=!0;return}if($.length&&_(N,this.basePath,{files:$,ignores:H.ignores})){f(`Matching config found for ${N}`),ae.push(he);return}return}if(_(N,this.basePath,H)){f(`Matching config found for ${N}`),ae.push(he),se=!0;return}}),se?(U=F.get(ae.toString()),U?(F.set(N,U),U):(U=ae.reduce((H,he)=>{try{return this[R.schema].merge(H,this[he])}catch($){S(this[he],he,{cause:$})}},{},this),U=this[R.finalizeConfig](U),F.set(N,U),F.set(ae.toString(),U),U)):(f(`No matching configs found for ${N}`),F.set(N,U),U)}isIgnored(N){return this.isFileIgnored(N)}isFileIgnored(N){return this.getConfig(N)===void 0}isDirectoryIgnored(N){B(this);let F=r.relative(this.basePath,N).replace(/\\/g,"/");if(F.startsWith(".."))return!0;let U=j.get(this).directoryMatches;if(U.has(F))return U.get(F);let V=F.split("/"),ae="",se=!1;do ae+=V.shift()+"/",se=A(this.ignores,r.join(this.basePath,ae),ae),U.set(ae,se);while(!se&&V.length);return U.set(F,se),se}}return tc.ConfigArray=Q,tc.ConfigArraySymbol=R,tc}var Vx,BF;function uN(){if(BF)return Vx;BF=1;function r(t){if([2,"2","error"].includes(t))return"error";if([1,"1","warn"].includes(t))return"warn";if([0,"0","off"].includes(t))return"off";throw new Error(`Invalid severity value: ${t}`)}function e(t){if([2,"2","error"].includes(t))return 2;if([1,"1","warn"].includes(t))return 1;if([0,"0","off"].includes(t))return 0;throw new Error(`Invalid severity value: ${t}`)}return Vx={normalizeSeverityToString:r,normalizeSeverityToNumber:e},Vx}var Wx,NF;function cN(){if(NF)return Wx;NF=1;let{normalizeSeverityToNumber:r}=uN(),e=new Map([[0,0],["off",0],[1,1],["warn",1],[2,2],["error",2]]),t=new Set([!0,"true","writable","writeable",!1,"false","readonly","readable",null,"off"]);function s(T){return typeof T=="object"&&T!==null}function n(T){return s(T)&&!Array.isArray(T)}function i(T){return typeof T>"u"}function a(T,R,j=new Map){let Q=j.get(T);if(Q){let N=Q.get(R);if(N)return N}else Q=new Map,j.set(T,Q);let I={...T,...R};delete I.__proto__,Q.set(R,I);for(let N of Object.keys(R)){if(N==="__proto__"||!Object.prototype.propertyIsEnumerable.call(T,N))continue;let F=T[N],U=R[N];n(F)&&n(U)?I[N]=a(F,U,j):i(U)&&(I[N]=F)}return I}function l(T){let R=Array.isArray(T)?T.slice(0):[T];return R[0]=e.get(R[0]),structuredClone(R)}class o extends Error{constructor(R,j){super(`Key "${R}": Expected severity of "off", 0, "warn", 1, "error", or 2.`),this.messageTemplate="invalid-rule-options",this.messageData={ruleId:R,value:j}}}function u(T,R){if(typeof R!="string"&&typeof R!="number"&&!Array.isArray(R))throw new o(T,R)}class c extends Error{constructor(R,j){super(`Key "${R}": Expected severity of "off", 0, "warn", 1, "error", or 2.`),this.messageTemplate="invalid-rule-severity",this.messageData={ruleId:R,value:j}}}function p(T,R){if(typeof e.get(R)>"u")throw new c(T,R)}function h(T){if(!/[@a-z0-9-_$]+(?:\/(?:[a-z0-9-_$]+))+$/iu.test(T))throw new TypeError(`Expected string in the form "pluginName/objectName" but found "${T}".`)}function f(T){if(!s(T))throw new TypeError("Expected an object.")}class d extends Error{constructor(R){super("This appears to be in eslintrc format rather than flat config format."),this.messageTemplate="eslintrc-incompat",this.messageData={key:R}}}class m extends Error{constructor(R){super("This appears to be in eslintrc format (array of strings) rather than flat config format (object)."),this.messageTemplate="eslintrc-plugins",this.messageData={plugins:R}}}let g={merge:"replace",validate:"boolean"},y=new Set(["error","warn","off",2,1,0]),v={merge(T,R){let j=R===void 0?T:R;return typeof j=="boolean"?j?"warn":"off":r(j)},validate(T){if(!(y.has(T)||typeof T=="boolean"))throw new TypeError('Expected one of: "error", "warn", "off", 0, 1, 2, or a boolean.')}},x={merge(T={},R={}){return a(T,R)},validate:"object"},S={merge:"assign",validate(T){f(T);for(let R of Object.keys(T))if(R!=="__proto__"){if(R!==R.trim())throw new TypeError(`Global "${R}" has leading or trailing whitespace.`);if(!t.has(T[R]))throw new TypeError(`Key "${R}": Expected "readonly", "writable", or "off".`)}}},w={merge:"replace",validate(T){if(!T||typeof T!="object"||typeof T.parse!="function"&&typeof T.parseForESLint!="function")throw new TypeError("Expected object with parse() or parseForESLint() method.")}},O={merge(T={},R={}){let j=new Set([...Object.keys(T),...Object.keys(R)]),Q={};for(let I of j)if(I!=="__proto__"){if(I in T&&I in R&&T[I]!==R[I])throw new TypeError(`Cannot redefine plugin "${I}".`);Q[I]=R[I]||T[I]}return Q},validate(T){if(T===null||typeof T!="object")throw new TypeError("Expected an object.");if(Array.isArray(T))throw new m(T);for(let R of Object.keys(T))if(R!=="__proto__"&&(T[R]===null||typeof T[R]!="object"))throw new TypeError(`Key "${R}": Expected an object.`)}},C={merge:"replace",validate(T){if(typeof T=="string")h(T);else if(T&&typeof T=="object"){if(typeof T.preprocess!="function"||typeof T.postprocess!="function")throw new TypeError("Object must have a preprocess() and a postprocess() method.")}else throw new TypeError("Expected an object or a string.")}},E={merge(T={},R={}){let j={...T,...R};for(let Q of Object.keys(j))try{if(Q==="__proto__"){delete j.__proto__;continue}if(j[Q]=l(j[Q]),!(Q in T)||!(Q in R))continue;let I=l(T[Q]),N=l(R[Q]);if(N.length===1){j[Q]=[N[0],...I.slice(1)];continue}}catch(I){throw new Error(`Key "${Q}": ${I.message}`,{cause:I})}return j},validate(T){f(T);for(let R of Object.keys(T)){if(R==="__proto__")continue;let j=T[R];u(R,j),Array.isArray(j)?p(R,j[0]):p(R,j)}}},k={merge:"replace",validate(T){if(!(typeof T=="number"||T==="latest"))throw new TypeError('Expected a number or "latest".')}},A={merge:"replace",validate(T){if(typeof T!="string"||!/^(?:script|module|commonjs)$/u.test(T))throw new TypeError('Expected "script", "module", or "commonjs".')}};function D(T){return{merge:"replace",validate(){throw new d(T)}}}return Wx={flatConfigSchema:{...Object.fromEntries(["env","extends","globals","ignorePatterns","noInlineConfig","overrides","parser","parserOptions","reportUnusedDisableDirectives","root"].map(T=>[T,D(T)])),settings:x,linterOptions:{schema:{noInlineConfig:g,reportUnusedDisableDirectives:v}},languageOptions:{schema:{ecmaVersion:k,sourceType:A,globals:S,parser:w,parserOptions:x}},processor:C,plugins:O,rules:E},assertIsRuleSeverity:p},Wx}var zx={},WG="http://json-schema.org/draft-04/schema#",zG="http://json-schema.org/draft-04/schema#",ZG="Core schema meta-schema",GG={schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},positiveInteger:{type:"integer",minimum:0},positiveIntegerDefault0:{allOf:[{$ref:"#/definitions/positiveInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0}},XG="object",YG={id:{type:"string"},$schema:{type:"string"},title:{type:"string"},description:{type:"string"},default:{},multipleOf:{type:"number",minimum:0,exclusiveMinimum:!0},maximum:{type:"number"},exclusiveMaximum:{type:"boolean",default:!1},minimum:{type:"number"},exclusiveMinimum:{type:"boolean",default:!1},maxLength:{$ref:"#/definitions/positiveInteger"},minLength:{$ref:"#/definitions/positiveIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{anyOf:[{type:"boolean"},{$ref:"#"}],default:{}},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:{}},maxItems:{$ref:"#/definitions/positiveInteger"},minItems:{$ref:"#/definitions/positiveIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},maxProperties:{$ref:"#/definitions/positiveInteger"},minProperties:{$ref:"#/definitions/positiveIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{anyOf:[{type:"boolean"},{$ref:"#"}],default:{}},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},enum:{type:"array",minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},HG={exclusiveMaximum:["maximum"],exclusiveMinimum:["minimum"]},KG={id:WG,$schema:zG,description:ZG,definitions:GG,type:XG,properties:YG,dependencies:HG,default:{}},Zx,LF;function JG(){if(LF)return Zx;LF=1;let r=NB(),e=KG;return Zx=(t={})=>{let s=new r({meta:!1,useDefaults:!0,validateSchema:!1,missingRefs:"ignore",verbose:!0,schemaId:"auto",...t});return s.addMetaSchema(e),s._opts.defaultMeta=e.id,s},Zx}var $F;function fN(){if($F)return zx;$F=1;let e=JG()(),{parseRuleId:t,getRuleFromConfig:s,getRuleOptionsSchema:n}=aN(),i=iN;function a({pluginName:u,ruleName:c},p){let f=`Key "rules": Key "${u==="@"?c:`${u}/${c}`}"`,d=`${f}: Could not find plugin "${u}".`;if(p.plugins&&p.plugins[u]){let m=i.rules[c];if(u==="@"&&m)d=`${f}: Rule "${c}" was removed and replaced by "${m}".`;else{d=`${f}: Could not find "${c}" in plugin "${u}".`;for(let[g,y]of Object.entries(p.plugins))if(y.rules&&y.rules[c]){d+=` Did you mean "${g}/${c}"?`;break}}}throw new TypeError(d)}class l extends Error{constructor(c,p){super(`Error while processing options validation schema of rule '${c}': ${p.message}`,{cause:p}),this.code="ESLINT_INVALID_RULE_OPTIONS_SCHEMA"}}class o{constructor(){this.validators=new WeakMap}validate(c){if(c.rules)for(let[p,h]of Object.entries(c.rules)){if(p==="__proto__"||h[0]===0)continue;let f=s(p,c);if(f||a(t(p),c),!this.validators.has(f))try{let m=n(f);m&&this.validators.set(f,e.compile(m))}catch(m){throw new l(p,m)}let d=this.validators.get(f);if(d&&(d(h.slice(1)),d.errors))throw new Error(`Key "rules": Key "${p}": ${d.errors.map(m=>{if(m.keyword==="additionalProperties"&&m.schema===!1&&typeof m.parentSchema?.properties=="object"&&typeof m.params?.additionalProperty=="string"){let g=Object.keys(m.parentSchema.properties).map(y=>`"${y}"`);return` Value ${JSON.stringify(m.data)} ${m.message}. Unexpected property "${m.params.additionalProperty}". Expected properties: ${g.join(", ")}. `}return` Value ${JSON.stringify(m.data)} ${m.message}. -`}).join("")}`)}}}return zv.RuleValidator=o,zv}var Gv={},qR;function eG(){if(qR)return Gv;qR=1;let r=iN();return Gv.defaultConfig=[{plugins:{"@":{rules:new Proxy({},{get(e,t){return r.get(t)},has(e,t){return r.has(t)}})}},languageOptions:{sourceType:"module",ecmaVersion:"latest",parser:bc(),parserOptions:{}},linterOptions:{reportUnusedDisableDirectives:1}},{ignores:["**/node_modules/",".git/"]},{files:["**/*.js","**/*.mjs"]},{files:["**/*.cjs"],languageOptions:{sourceType:"commonjs",ecmaVersion:"latest"}}],Gv}var QR;function tG(){if(QR)return Lv;QR=1;let{ConfigArray:r,ConfigArraySymbol:e}=VX(),{flatConfigSchema:t}=pN(),{RuleValidator:s}=hN(),{defaultConfig:n}=eG(),i=new Set(["name"]),a=new s;function l(d){let m=d.split("/");return{objectName:m.pop(),pluginName:m.join("/")}}function o(d){let m=d.name;if(!m&&(!d.meta||(m=d.meta.name,!m)))return null;let g=d.version;return g||(g=d.meta&&d.meta.version),g?`${m}@${g}`:m}function u(d,m,g){let y="user-defined",b=d.index;return d.index{throw g.name==="ConfigError"?u(g,this[p],this[h]):g})}normalizeSync(m){try{return super.normalizeSync(m)}catch(g){throw g.name==="ConfigError"?u(g,this[p],this[h]):g}}[e.preprocessConfig](m){if(!this.shouldIgnore&&!this[c].includes(m)&&m.ignores&&Object.keys(m).filter(g=>!i.has(g)).length===1){let{ignores:g,...y}=m;return y}return m}[e.finalizeConfig](m){let{plugins:g,languageOptions:y,processor:b}=m,v,S,C=!1,O=!1;if(y&&y.parser){let{parser:w}=y;typeof w=="object"?(v=o(w),v||(C=!0)):C=!0}if(b)if(typeof b=="string"){let{pluginName:w,objectName:E}=l(b);if(S=b,!g||!g[w]||!g[w].processors||!g[w].processors[E])throw new TypeError(`Key "processor": Could not find "${E}" in plugin "${w}".`);m.processor=g[w].processors[E]}else typeof b=="object"?(S=o(b),S||(O=!0)):O=!0;return a.validate(m),Object.defineProperty(m,"toJSON",{value:function(){if(C)throw new Error("Could not serialize parser object (missing 'meta' object).");if(O)throw new Error("Could not serialize processor object (missing 'meta' object).");return{...this,plugins:Object.entries(g).map(([w,E])=>{let k=o(E);return k?`${w}:${k}`:w}),languageOptions:{...y,parser:v},processor:S}}}),m}}return Lv.FlatConfigArray=f,Lv}var Yv,UR;function rG(){if(UR)return Yv;UR=1;let r=fc,e=IB(),t=wO(),s=bc(),n=O9(),i=q9,a=vc(),{directivesPattern:l}=Oc(),{Legacy:{ConfigOps:o,ConfigValidator:u,environments:c}}=TO(),p=DO(),{SourceCode:h}=X4(),f=G4(),d=GB(),m=K4(),g=t7(),y=RX(),b=ZB(),v=BX(),S=NX(),C=oN,{getRuleFromConfig:O}=lN(),{FlatConfigArray:w}=tG(),{startTime:E,endTime:k}=aN(),{RuleValidator:A}=hN(),{assertIsRuleSeverity:D}=pN(),{normalizeSeverityToString:_}=fN(),B=bi()("eslint:linter"),T=10,F="espree",j=5,Q=new d,I={start:{line:1,column:0},end:{line:1,column:1}},N=Symbol.for("eslint.RuleTester.parser"),{LATEST_ECMA_VERSION:R}=nN(),U=1,V=2;function ae(De){return De===s||De[N]===s}function se(De,G,{exportedVariables:ne,enabledGlobals:ee}){for(let oe of new Set([...Object.keys(G),...Object.keys(ee)])){let ce=G[oe]===void 0?void 0:o.normalizeConfigGlobal(G[oe]),J=ee[oe]&&ee[oe].value||ce,ie=ee[oe]&&ee[oe].comments;if(J==="off")continue;let de=De.set.get(oe);de||(de=new e.Variable(oe,De),De.variables.push(de),De.set.set(oe,de)),de.eslintImplicitGlobalSetting=ce,de.eslintExplicitGlobal=ie!==void 0,de.eslintExplicitGlobalComments=ie,de.writeable=J==="writable"}Object.keys(ne).forEach(oe=>{let ce=De.set.get(oe);ce&&(ce.eslintUsed=!0,ce.eslintExported=!0)}),De.through=De.through.filter(oe=>{let ce=oe.identifier.name,Z=De.set.get(ce);return Z?(oe.resolved=Z,Z.references.push(oe),!1):!0})}function ve(De){return Object.hasOwn(C.rules,De)?`Rule '${De}' was removed and replaced by: ${C.rules[De].join(", ")}`:`Definition for rule '${De}' was not found.`}function H(De){let{ruleId:G=null,loc:ne=I,message:ee=ve(De.ruleId),severity:oe=2}=De;return{ruleId:G,message:ee,line:ne.start.line,column:ne.start.column+1,endLine:ne.end.line,endColumn:ne.end.column+1,severity:oe,nodeType:null}}function he({type:De,value:G,justification:ne,node:ee},oe){let ce=Object.keys(Q.parseListConfig(G)),Z=ce.length?ce:[null],J={directives:[],directiveProblems:[]},ie={node:ee,ruleIds:ce};for(let de of Z)de===null||oe(de)?De==="disable-next-line"?J.directives.push({parentDirective:ie,type:De,line:ee.loc.end.line,column:ee.loc.end.column+1,ruleId:de,justification:ne}):J.directives.push({parentDirective:ie,type:De,line:ee.loc.start.line,column:ee.loc.start.column+1,ruleId:de,justification:ne}):J.directiveProblems.push(H({ruleId:de,loc:ee.loc}));return J}function $(De,G,ne,ee){let oe={},ce=Object.create(null),Z={},J=[],ie=[],de=new u({builtInRules:y});return De.getInlineConfigNodes().filter(Ce=>Ce.type!=="Shebang").forEach(Ce=>{let{directivePart:L,justificationPart:ue}=Q.extractDirectiveComment(Ce.value),Te=l.exec(L);if(!Te)return;let Be=Te[1],$e=/^eslint-disable-(next-)?line$/u.test(Be);if(Ce.type==="Line"&&!$e)return;if(ne){let Oe=Ce.type==="Block"?`/*${Be}*/`:`//${Be}`;J.push(H({ruleId:null,message:`'${Oe}' has no effect because you have 'noInlineConfig' setting in ${ne}.`,loc:Ce.loc,severity:1}));return}if(Be==="eslint-disable-line"&&Ce.loc.start.line!==Ce.loc.end.line){let Oe=`${Be} comment should not span multiple lines.`;J.push(H({ruleId:null,message:Oe,loc:Ce.loc}));return}let Re=L.slice(Te.index+Be.length);switch(Be){case"eslint-disable":case"eslint-enable":case"eslint-disable-next-line":case"eslint-disable-line":{let Oe=Be.slice(7),{directives:Ie,directiveProblems:We}=he({type:Oe,value:Re,justification:ue,node:Ce},G);ie.push(...Ie),J.push(...We);break}case"exported":Object.assign(Z,Q.parseListConfig(Re,Ce));break;case"globals":case"global":for(let[Oe,{value:Ie}]of Object.entries(Q.parseStringConfig(Re,Ce))){let We;try{We=o.normalizeConfigGlobal(Ie)}catch(be){J.push(H({ruleId:null,loc:Ce.loc,message:be.message}));continue}ce[Oe]?(ce[Oe].comments.push(Ce),ce[Oe].value=We):ce[Oe]={comments:[Ce],value:We}}break;case"eslint":{let Oe=Q.parseJsonConfig(Re,Ce.loc);Oe.success?Object.keys(Oe.config).forEach(Ie=>{let We=G(Ie),be=Oe.config[Ie];if(!We){J.push(H({ruleId:Ie,loc:Ce.loc}));return}if(Object.hasOwn(oe,Ie)){J.push(H({message:`Rule "${Ie}" is already configured by another configuration comment in the preceding code. This configuration is ignored.`,loc:Ce.loc}));return}let re=Array.isArray(be)?be:[be];re.length===1&&ee.rules&&Object.hasOwn(ee.rules,Ie)&&(re=[re[0],...Array.isArray(ee.rules[Ie])?ee.rules[Ie].slice(1):[]]);try{de.validateRuleOptions(We,Ie,re)}catch(Y){if(Y.code==="ESLINT_INVALID_RULE_OPTIONS_SCHEMA")throw Y;J.push(H({ruleId:Ie,message:Y.message,loc:Ce.loc}));return}oe[Ie]=re}):J.push(Oe.error);break}}}),{configuredRules:oe,enabledGlobals:ce,exportedVariables:Z,problems:J,disableDirectives:ie}}function pe(De,G){let ne=[],ee=[],{directives:oe,problems:ce}=De.getDisableDirectives();return ee.push(...ce.map(H)),oe.forEach(Z=>{let{directives:J,directiveProblems:ie}=he(Z,G);ne.push(...J),ee.push(...ie)}),{problems:ee,disableDirectives:ne}}function K(De,G){return ae(De)&&G==="latest"?s.latestEcmaVersion:G>=2015?G-2009:G}function le(De){switch(De){case 3:return 3;case 5:case void 0:return 5;default:if(typeof De=="number")return De>=2015?De:De+2009}return R}let xe=/\/\*\s*eslint-env\s(.+?)(?:\*\/|$)/gsu;function Le(De){let G,ne;for(xe.lastIndex=0;(G=xe.exec(De))!==null;)G[0].endsWith("*/")&&(ne=Object.assign(ne||{},Q.parseListConfig(Q.extractDirectiveComment(G[1]).directivePart)));return ne}function qe(De){let G=De.split(r.sep),ne=G.lastIndexOf("");return ne===-1?De:G.slice(ne).join(r.sep)}function rt(De,G){let ne=G.linterOptions||G,ee=ne.noInlineConfig===!0,oe=De.allowInlineConfig===!1,ce=G.configNameOfNoInlineConfig?` (${G.configNameOfNoInlineConfig})`:"",Z=De.reportUnusedDisableDirectives;typeof Z=="boolean"&&(Z=Z?"error":"off"),typeof Z!="string"&&(typeof ne.reportUnusedDisableDirectives=="boolean"?Z=ne.reportUnusedDisableDirectives?"warn":"off":Z=ne.reportUnusedDisableDirectives===void 0?"off":_(ne.reportUnusedDisableDirectives));let J=De.ruleFilter;return typeof J!="function"&&(J=()=>!0),{filename:qe(De.filename||""),allowInlineConfig:!oe,warnInlineConfig:ee&&!oe?`your config${ce}`:null,reportUnusedDisableDirectives:Z,disableFixes:!!De.disableFixes,stats:De.stats,ruleFilter:J}}function ht(De,G,ne){let ee=ne.filter(Z=>Z.parserOptions).reduce((Z,J)=>n(Z,J.parserOptions),{}),oe=n(ee,G||{});return oe.sourceType==="module"&&(oe.ecmaFeatures=Object.assign({},oe.ecmaFeatures,{globalReturn:!1})),oe.ecmaVersion=K(De,oe.ecmaVersion),oe}function pt({globals:De,parser:G,parserOptions:ne}){let{ecmaVersion:ee,sourceType:oe}=ne;return{globals:De,ecmaVersion:le(ee),sourceType:oe,parser:G,parserOptions:ne}}function Et(De,G){return Object.assign({},...G.filter(ne=>ne.globals).map(ne=>ne.globals),De)}function X(De){return De.charCodeAt(0)===65279?De.slice(1):De}function we(De,G,ne){let{type:ee,key:oe}=G;ne.times||(ne.times={passes:[{}]});let ce=ne.fixPasses;ce>ne.times.passes.length-1&&ne.times.passes.push({}),oe?(ne.times.passes[ce][ee]??={},ne.times.passes[ce][ee][oe]??={total:0},ne.times.passes[ce][ee][oe].total+=De):(ne.times.passes[ce][ee]??={total:0},ne.times.passes[ce][ee].total+=De)}function Ve(De){return Array.isArray(De)?De.slice(1):[]}function et(De,G,ne){let oe=G.parserOptions.ecmaFeatures||{},ce=G.ecmaVersion||j;return e.analyze(De,{ignoreEval:!0,nodejsScope:oe.globalReturn,impliedStrict:oe.impliedStrict,ecmaVersion:typeof ce=="number"?ce:6,sourceType:G.sourceType||"script",childVisitorKeys:ne||t.KEYS,fallback:p.getKeys})}function it(De,G,ne){let ee=X(De).replace(a.shebangPattern,(ie,de)=>`//${de}`),{ecmaVersion:oe,sourceType:ce,parser:Z}=G,J=Object.assign({ecmaVersion:oe,sourceType:ce},G.parserOptions,{loc:!0,range:!0,raw:!0,tokens:!0,comment:!0,eslintVisitorKeys:!0,eslintScopeManager:!0,filePath:ne});try{B("Parsing:",ne);let ie=typeof Z.parseForESLint=="function"?Z.parseForESLint(ee,J):{ast:Z.parse(ee,J)};B("Parsing successful:",ne);let de=ie.ast,Ce=ie.services||{},L=ie.visitorKeys||t.KEYS;B("Scope analysis:",ne);let ue=ie.scopeManager||et(de,G,L);return B("Scope analysis successful:",ne),{success:!0,sourceCode:new h({text:De,ast:de,parserServices:Ce,scopeManager:ue,visitorKeys:L})}}catch(ie){let de=`Parsing error: ${ie.message.replace(/^line \d+:/iu,"").trim()}`;return B(`%s -%s`,de,ie.stack),{success:!1,error:{ruleId:null,fatal:!0,severity:2,message:de,line:ie.lineNumber,column:ie.column,nodeType:null}}}}function st(De,G){if(!De||typeof De!="object"||typeof De.create!="function")throw new TypeError(`Error while loading rule '${G.id}': Rule must be an object with a \`create\` method`);try{return De.create(G)}catch(ne){throw ne.message=`Error while loading rule '${G.id}': ${ne.message}`,ne}}function Ct(De,G,ne,ee,oe,ce,Z,J,ie,de,Ce,L,ue){let Te=b(),Be=De.traverse(),$e=Object.freeze({getCwd:()=>ie,cwd:ie,getFilename:()=>Z,filename:Z,getPhysicalFilename:()=>de||Z,physicalFilename:de||Z,getSourceCode:()=>De,sourceCode:De,parserOptions:{...oe.parserOptions},parserPath:ee,languageOptions:oe,settings:ce}),Re=[];Object.keys(G).forEach(Ie=>{let We=o.getRuleSeverity(G[Ie]);if(We===0||Ce&&!Ce({ruleId:Ie,severity:We}))return;let be=ne(Ie);if(!be){Re.push(H({ruleId:Ie}));return}let re=be.meta&&be.meta.messages,Y=null,fe=Object.freeze(Object.assign(Object.create($e),{id:Ie,options:Ve(G[Ie]),report(...Ke){Y===null&&(Y=g({ruleId:Ie,severity:We,sourceCode:De,messageIds:re,disableFixes:J}));let mt=Y(...Ke);if(mt.fix&&!(be.meta&&be.meta.fixable))throw new Error('Fixable rules must set the `meta.fixable` property to "code" or "whitespace".');if(mt.suggestions&&!(be.meta&&be.meta.hasSuggestions===!0))throw be.meta&&be.meta.docs&&typeof be.meta.docs.suggestion<"u"?new Error("Rules with suggestions must set the `meta.hasSuggestions` property to `true`. `meta.docs.suggestion` is ignored by ESLint."):new Error("Rules with suggestions must set the `meta.hasSuggestions` property to `true`.");Re.push(mt)}})),Se=S.enabled||L?S.time(Ie,st,L)(be,fe):st(be,fe),Ee=L?Se.result:Se;L&&we(Se.tdiff,{type:"rules",key:Ie},ue);function ze(Ke){return function(...Ot){try{let Pt=Ke(...Ot),xt=L?Pt.result:Pt;return L&&we(Pt.tdiff,{type:"rules",key:Ie},ue),xt}catch(Pt){throw Pt.ruleId=Ie,Pt}}}if(typeof Ee>"u"||Ee===null)throw new Error(`The create() function for rule '${Ie}' did not return an object.`);Object.keys(Ee).forEach(Ke=>{let mt=S.enabled||L?S.time(Ie,Ee[Ke],L):Ee[Ke];Te.on(Ke,ze(mt))})});let Oe=new m(Te,{visitorKeys:De.visitorKeys,fallback:p.getKeys});for(let Ie of Be)switch(Ie.kind){case U:{try{Ie.phase===1?Oe.enterNode(Ie.target):Oe.leaveNode(Ie.target)}catch(We){throw We.currentNode=Ie.target,We}break}case V:{Te.emit(Ie.target,...Ie.args);break}default:throw new Error(`Invalid traversal step found: "${Ie.type}".`)}return Re}function bt(De){if(typeof De=="object"){let{hasBOM:G,text:ne}=De;return(G?"\uFEFF":"")+ne}return String(De)}function Dt(De,G){return De.lastConfigArray&&De.lastConfigArray.pluginEnvironments.get(G)||c.get(G)||null}function _t(De,G){return De.lastConfigArray&&De.lastConfigArray.pluginRules.get(G)||De.ruleMap.get(G)}function W(De){if(De)return De;if(typeof Bt=="object")return Bt.cwd()}let vt=new WeakMap;function Ye(De){let{configType:G}=vt.get(De);if(G==="flat")throw new Error("This method cannot be used with flat config. Add your entries directly into the config array.")}class Kt{constructor({cwd:G,configType:ne="flat"}={}){vt.set(this,{cwd:W(G),lastConfigArray:null,lastSourceCode:null,lastSuppressedMessages:[],configType:ne,parserMap:new Map([["espree",s]]),ruleMap:new y}),this.version=i.version}static get version(){return i.version}_verifyWithoutProcessors(G,ne,ee){let oe=vt.get(this),ce=ne||{},Z=rt(ee,ce),J;typeof G=="string"?(oe.lastSourceCode=null,J=G):(oe.lastSourceCode=G,J=G.text);let ie=F,de=s;if(typeof ce.parser=="object"&&ce.parser!==null)ie=ce.parser.filePath,de=ce.parser.definition;else if(typeof ce.parser=="string"){if(!oe.parserMap.has(ce.parser))return[{ruleId:null,fatal:!0,severity:2,message:`Configured parser '${ce.parser}' was not found.`,line:0,column:0,nodeType:null}];ie=ce.parser,de=oe.parserMap.get(ce.parser)}let Ce=Z.allowInlineConfig&&!Z.warnInlineConfig?Le(J):{},L=Object.assign({builtin:!0},ce.env,Ce),ue=Object.keys(L).filter(re=>L[re]).map(re=>Dt(oe,re)).filter(re=>re),Te=ht(de,ce.parserOptions||{},ue),Be=Et(ce.globals||{},ue),$e=ce.settings||{},Re=pt({globals:ce.globals,parser:de,parserOptions:Te});if(oe.lastSourceCode)oe.lastSourceCode.scopeManager||(oe.lastSourceCode=new h({text:oe.lastSourceCode.text,ast:oe.lastSourceCode.ast,parserServices:oe.lastSourceCode.parserServices,visitorKeys:oe.lastSourceCode.visitorKeys,scopeManager:et(oe.lastSourceCode.ast,Re)}));else{let re;Z.stats&&(re=E());let Y=it(J,Re,Z.filename);if(Z.stats){let fe=k(re);we(fe,{type:"parse"},oe)}if(!Y.success)return[Y.error];oe.lastSourceCode=Y.sourceCode}let Oe=oe.lastSourceCode,Ie=Z.allowInlineConfig?$(Oe,re=>_t(oe,re),Z.warnInlineConfig,ce):{configuredRules:{},enabledGlobals:{},exportedVariables:{},problems:[],disableDirectives:[]};se(Oe.scopeManager.scopes[0],Be,{exportedVariables:Ie.exportedVariables,enabledGlobals:Ie.enabledGlobals});let We=Object.assign({},ce.rules,Ie.configuredRules),be;try{be=Ct(Oe,We,re=>_t(oe,re),ie,Re,$e,Z.filename,Z.disableFixes,oe.cwd,ee.physicalFilename,null,Z.stats,oe)}catch(re){if(re.message+=` -Occurred while linting ${Z.filename}`,B("An error occurred while traversing"),B("Filename:",Z.filename),re.currentNode){let{line:Y}=re.currentNode.loc.start;B("Line:",Y),re.message+=`:${Y}`}throw B("Parser Options:",Te),B("Parser Path:",ie),B("Settings:",$e),re.ruleId&&(re.message+=` -Rule: "${re.ruleId}"`),re}return f({directives:Ie.disableDirectives,disableFixes:Z.disableFixes,problems:be.concat(Ie.problems).sort((re,Y)=>re.line-Y.line||re.column-Y.column),reportUnusedDisableDirectives:Z.reportUnusedDisableDirectives})}verify(G,ne,ee){B("Verify");let{configType:oe,cwd:ce}=vt.get(this),Z=typeof ee=="string"?{filename:ee}:ee||{},J=ne??{};if(oe!=="eslintrc"){let ie=J;return(!Array.isArray(J)||typeof J.getConfig!="function")&&(ie=new w(J,{basePath:ce}),ie.normalizeSync()),this._distinguishSuppressedMessages(this._verifyWithFlatConfigArray(G,ie,Z,!0))}return typeof J.extractConfig=="function"?this._distinguishSuppressedMessages(this._verifyWithConfigArray(G,J,Z)):Z.preprocess||Z.postprocess?this._distinguishSuppressedMessages(this._verifyWithProcessor(G,J,Z)):this._distinguishSuppressedMessages(this._verifyWithoutProcessors(G,J,Z))}_verifyWithFlatConfigArrayAndProcessor(G,ne,ee,oe){let ce=ee.filename||"",Z=qe(ce),J=ee.physicalFilename||Z,ie=bt(G),de=ee.preprocess||($e=>[$e]),Ce=ee.postprocess||($e=>$e.flat()),L=ee.filterCodeBlock||($e=>$e.endsWith(".js")),ue=r.extname(ce),Te;try{Te=de(ie,Z)}catch($e){let Re=`Preprocessing error: ${$e.message.replace(/^line \d+:/iu,"").trim()}`;return B(`%s -%s`,Re,$e.stack),[{ruleId:null,fatal:!0,severity:2,message:Re,line:$e.lineNumber,column:$e.column,nodeType:null}]}let Be=Te.map(($e,Re)=>{if(B("A code block was found: %o",$e.filename||"(unnamed)"),typeof $e=="string")return this._verifyWithFlatConfigArrayAndWithoutProcessors($e,ne,ee);let Oe=$e.text,Ie=r.join(ce,`${Re}_${$e.filename}`);return L(Ie,Oe)?oe&&(ie!==Oe||r.extname(Ie)!==ue)?(B("Resolving configuration again because the file content or extension was changed."),this._verifyWithFlatConfigArray(Oe,oe,{...ee,filename:Ie,physicalFilename:J})):this._verifyWithFlatConfigArrayAndWithoutProcessors(Oe,ne,{...ee,filename:Ie,physicalFilename:J}):(B("This code block was skipped."),[])});return Ce(Be,Z)}_verifyWithFlatConfigArrayAndWithoutProcessors(G,ne,ee){let oe=vt.get(this),ce=ne||{},Z=rt(ee,ce),J;typeof G=="string"?(oe.lastSourceCode=null,J=G):(oe.lastSourceCode=G,J=G.text);let ie=ce.languageOptions;if(ie.ecmaVersion=le(ie.ecmaVersion),!ie.parser)throw new TypeError(`No parser specified for ${Z.filename}`);if(ae(ie.parser)){let Re=ie.parserOptions;ie.sourceType&&(Re.sourceType=ie.sourceType,Re.sourceType==="module"&&Re.ecmaFeatures&&Re.ecmaFeatures.globalReturn&&(Re.ecmaFeatures.globalReturn=!1))}let de=ce.settings||{};if(oe.lastSourceCode)oe.lastSourceCode.scopeManager||(oe.lastSourceCode=new h({text:oe.lastSourceCode.text,ast:oe.lastSourceCode.ast,parserServices:oe.lastSourceCode.parserServices,visitorKeys:oe.lastSourceCode.visitorKeys,scopeManager:et(oe.lastSourceCode.ast,ie)}));else{let Re;Z.stats&&(Re=E());let Oe=it(J,ie,Z.filename);if(Z.stats){let Ie=k(Re);we(Ie,{type:"parse"},oe)}if(!Oe.success)return[Oe.error];oe.lastSourceCode=Oe.sourceCode}let Ce=oe.lastSourceCode;Ce.applyLanguageOptions(ie);let L={rules:{}},ue=[];if(Z.allowInlineConfig)if(Z.warnInlineConfig)Ce.getInlineConfigNodes().forEach(Re=>{ue.push(H({ruleId:null,message:`'${Ce.text.slice(Re.range[0],Re.range[1])}' has no effect because you have 'noInlineConfig' setting in ${Z.warnInlineConfig}.`,loc:Re.loc,severity:1}))});else{let Re=Ce.applyInlineConfig();ue.push(...Re.problems.map(H).map(Ie=>(Ie.fatal=!0,Ie)));let Oe=new A;for(let{config:Ie,node:We}of Re.configs)Object.keys(Ie.rules).forEach(be=>{let re=O(be,ce),Y=Ie.rules[be];if(!re){ue.push(H({ruleId:be,loc:We.loc}));return}if(Object.hasOwn(L.rules,be)){ue.push(H({message:`Rule "${be}" is already configured by another configuration comment in the preceding code. This configuration is ignored.`,loc:We.loc}));return}try{let fe=Array.isArray(Y)?Y:[Y];D(be,fe[0]);let Se=!0;fe.length===1&&ce.rules&&Object.hasOwn(ce.rules,be)&&(fe=[fe[0],...ce.rules[be].slice(1)],ce.rules[be][0]>0&&(Se=!1)),Se&&Oe.validate({plugins:ce.plugins,rules:{[be]:fe}}),L.rules[be]=fe}catch(fe){if(fe.code==="ESLINT_INVALID_RULE_OPTIONS_SCHEMA")throw fe;let Se=fe.message.slice(fe.message.startsWith('Key "rules":')?fe.message.indexOf(":",12)+1:fe.message.indexOf(":")+1).trim();fe.messageTemplate&&(Se+=` You passed "${Y}".`),ue.push(H({ruleId:be,message:`Inline configuration for rule "${be}" is invalid: +`}).join("")}`)}}}return zx.RuleValidator=o,zx}var Gx={},MF;function eX(){if(MF)return Gx;MF=1;let r=nN();return Gx.defaultConfig=[{plugins:{"@":{rules:new Proxy({},{get(e,t){return r.get(t)},has(e,t){return r.has(t)}})}},languageOptions:{sourceType:"module",ecmaVersion:"latest",parser:vc(),parserOptions:{}},linterOptions:{reportUnusedDisableDirectives:1}},{ignores:["**/node_modules/",".git/"]},{files:["**/*.js","**/*.mjs"]},{files:["**/*.cjs"],languageOptions:{sourceType:"commonjs",ecmaVersion:"latest"}}],Gx}var jF;function tX(){if(jF)return Nx;jF=1;let{ConfigArray:r,ConfigArraySymbol:e}=VG(),{flatConfigSchema:t}=cN(),{RuleValidator:s}=fN(),{defaultConfig:n}=eX(),i=new Set(["name"]),a=new s;function l(d){let m=d.split("/");return{objectName:m.pop(),pluginName:m.join("/")}}function o(d){let m=d.name;if(!m&&(!d.meta||(m=d.meta.name,!m)))return null;let g=d.version;return g||(g=d.meta&&d.meta.version),g?`${m}@${g}`:m}function u(d,m,g){let y="user-defined",v=d.index;return d.index{throw g.name==="ConfigError"?u(g,this[p],this[h]):g})}normalizeSync(m){try{return super.normalizeSync(m)}catch(g){throw g.name==="ConfigError"?u(g,this[p],this[h]):g}}[e.preprocessConfig](m){if(!this.shouldIgnore&&!this[c].includes(m)&&m.ignores&&Object.keys(m).filter(g=>!i.has(g)).length===1){let{ignores:g,...y}=m;return y}return m}[e.finalizeConfig](m){let{plugins:g,languageOptions:y,processor:v}=m,x,S,w=!1,O=!1;if(y&&y.parser){let{parser:C}=y;typeof C=="object"?(x=o(C),x||(w=!0)):w=!0}if(v)if(typeof v=="string"){let{pluginName:C,objectName:E}=l(v);if(S=v,!g||!g[C]||!g[C].processors||!g[C].processors[E])throw new TypeError(`Key "processor": Could not find "${E}" in plugin "${C}".`);m.processor=g[C].processors[E]}else typeof v=="object"?(S=o(v),S||(O=!0)):O=!0;return a.validate(m),Object.defineProperty(m,"toJSON",{value:function(){if(w)throw new Error("Could not serialize parser object (missing 'meta' object).");if(O)throw new Error("Could not serialize processor object (missing 'meta' object).");return{...this,plugins:Object.entries(g).map(([C,E])=>{let k=o(E);return k?`${C}:${k}`:C}),languageOptions:{...y,parser:x},processor:S}}}),m}}return Nx.FlatConfigArray=f,Nx}var Xx,qF;function rX(){if(qF)return Xx;qF=1;let r=fc,e=DB(),t=wO(),s=vc(),n=S6(),i=Q6,a=xc(),{directivesPattern:l}=Oc(),{Legacy:{ConfigOps:o,ConfigValidator:u,environments:c}}=PO(),p=TO(),{SourceCode:h}=X4(),f=Y4(),d=ZB(),m=J4(),g=rV(),y=FG(),v=VB(),x=BG(),S=NG(),w=iN,{getRuleFromConfig:O}=aN(),{FlatConfigArray:C}=tX(),{startTime:E,endTime:k}=sN(),{RuleValidator:A}=fN(),{assertIsRuleSeverity:D}=cN(),{normalizeSeverityToString:_}=uN(),B=vi()("eslint:linter"),T=10,R="espree",j=5,Q=new d,I={start:{line:1,column:0},end:{line:1,column:1}},N=Symbol.for("eslint.RuleTester.parser"),{LATEST_ECMA_VERSION:F}=tN(),U=1,V=2;function ae(De){return De===s||De[N]===s}function se(De,X,{exportedVariables:ne,enabledGlobals:ee}){for(let oe of new Set([...Object.keys(X),...Object.keys(ee)])){let ce=X[oe]===void 0?void 0:o.normalizeConfigGlobal(X[oe]),J=ee[oe]&&ee[oe].value||ce,ie=ee[oe]&&ee[oe].comments;if(J==="off")continue;let de=De.set.get(oe);de||(de=new e.Variable(oe,De),De.variables.push(de),De.set.set(oe,de)),de.eslintImplicitGlobalSetting=ce,de.eslintExplicitGlobal=ie!==void 0,de.eslintExplicitGlobalComments=ie,de.writeable=J==="writable"}Object.keys(ne).forEach(oe=>{let ce=De.set.get(oe);ce&&(ce.eslintUsed=!0,ce.eslintExported=!0)}),De.through=De.through.filter(oe=>{let ce=oe.identifier.name,z=De.set.get(ce);return z?(oe.resolved=z,z.references.push(oe),!1):!0})}function xe(De){return Object.hasOwn(w.rules,De)?`Rule '${De}' was removed and replaced by: ${w.rules[De].join(", ")}`:`Definition for rule '${De}' was not found.`}function H(De){let{ruleId:X=null,loc:ne=I,message:ee=xe(De.ruleId),severity:oe=2}=De;return{ruleId:X,message:ee,line:ne.start.line,column:ne.start.column+1,endLine:ne.end.line,endColumn:ne.end.column+1,severity:oe,nodeType:null}}function he({type:De,value:X,justification:ne,node:ee},oe){let ce=Object.keys(Q.parseListConfig(X)),z=ce.length?ce:[null],J={directives:[],directiveProblems:[]},ie={node:ee,ruleIds:ce};for(let de of z)de===null||oe(de)?De==="disable-next-line"?J.directives.push({parentDirective:ie,type:De,line:ee.loc.end.line,column:ee.loc.end.column+1,ruleId:de,justification:ne}):J.directives.push({parentDirective:ie,type:De,line:ee.loc.start.line,column:ee.loc.start.column+1,ruleId:de,justification:ne}):J.directiveProblems.push(H({ruleId:de,loc:ee.loc}));return J}function $(De,X,ne,ee){let oe={},ce=Object.create(null),z={},J=[],ie=[],de=new u({builtInRules:y});return De.getInlineConfigNodes().filter(we=>we.type!=="Shebang").forEach(we=>{let{directivePart:L,justificationPart:ue}=Q.extractDirectiveComment(we.value),Te=l.exec(L);if(!Te)return;let Be=Te[1],$e=/^eslint-disable-(next-)?line$/u.test(Be);if(we.type==="Line"&&!$e)return;if(ne){let Oe=we.type==="Block"?`/*${Be}*/`:`//${Be}`;J.push(H({ruleId:null,message:`'${Oe}' has no effect because you have 'noInlineConfig' setting in ${ne}.`,loc:we.loc,severity:1}));return}if(Be==="eslint-disable-line"&&we.loc.start.line!==we.loc.end.line){let Oe=`${Be} comment should not span multiple lines.`;J.push(H({ruleId:null,message:Oe,loc:we.loc}));return}let Fe=L.slice(Te.index+Be.length);switch(Be){case"eslint-disable":case"eslint-enable":case"eslint-disable-next-line":case"eslint-disable-line":{let Oe=Be.slice(7),{directives:Ie,directiveProblems:We}=he({type:Oe,value:Fe,justification:ue,node:we},X);ie.push(...Ie),J.push(...We);break}case"exported":Object.assign(z,Q.parseListConfig(Fe,we));break;case"globals":case"global":for(let[Oe,{value:Ie}]of Object.entries(Q.parseStringConfig(Fe,we))){let We;try{We=o.normalizeConfigGlobal(Ie)}catch(ve){J.push(H({ruleId:null,loc:we.loc,message:ve.message}));continue}ce[Oe]?(ce[Oe].comments.push(we),ce[Oe].value=We):ce[Oe]={comments:[we],value:We}}break;case"eslint":{let Oe=Q.parseJsonConfig(Fe,we.loc);Oe.success?Object.keys(Oe.config).forEach(Ie=>{let We=X(Ie),ve=Oe.config[Ie];if(!We){J.push(H({ruleId:Ie,loc:we.loc}));return}if(Object.hasOwn(oe,Ie)){J.push(H({message:`Rule "${Ie}" is already configured by another configuration comment in the preceding code. This configuration is ignored.`,loc:we.loc}));return}let re=Array.isArray(ve)?ve:[ve];re.length===1&&ee.rules&&Object.hasOwn(ee.rules,Ie)&&(re=[re[0],...Array.isArray(ee.rules[Ie])?ee.rules[Ie].slice(1):[]]);try{de.validateRuleOptions(We,Ie,re)}catch(Y){if(Y.code==="ESLINT_INVALID_RULE_OPTIONS_SCHEMA")throw Y;J.push(H({ruleId:Ie,message:Y.message,loc:we.loc}));return}oe[Ie]=re}):J.push(Oe.error);break}}}),{configuredRules:oe,enabledGlobals:ce,exportedVariables:z,problems:J,disableDirectives:ie}}function pe(De,X){let ne=[],ee=[],{directives:oe,problems:ce}=De.getDisableDirectives();return ee.push(...ce.map(H)),oe.forEach(z=>{let{directives:J,directiveProblems:ie}=he(z,X);ne.push(...J),ee.push(...ie)}),{problems:ee,disableDirectives:ne}}function K(De,X){return ae(De)&&X==="latest"?s.latestEcmaVersion:X>=2015?X-2009:X}function le(De){switch(De){case 3:return 3;case 5:case void 0:return 5;default:if(typeof De=="number")return De>=2015?De:De+2009}return F}let be=/\/\*\s*eslint-env\s(.+?)(?:\*\/|$)/gsu;function Le(De){let X,ne;for(be.lastIndex=0;(X=be.exec(De))!==null;)X[0].endsWith("*/")&&(ne=Object.assign(ne||{},Q.parseListConfig(Q.extractDirectiveComment(X[1]).directivePart)));return ne}function qe(De){let X=De.split(r.sep),ne=X.lastIndexOf("");return ne===-1?De:X.slice(ne).join(r.sep)}function rt(De,X){let ne=X.linterOptions||X,ee=ne.noInlineConfig===!0,oe=De.allowInlineConfig===!1,ce=X.configNameOfNoInlineConfig?` (${X.configNameOfNoInlineConfig})`:"",z=De.reportUnusedDisableDirectives;typeof z=="boolean"&&(z=z?"error":"off"),typeof z!="string"&&(typeof ne.reportUnusedDisableDirectives=="boolean"?z=ne.reportUnusedDisableDirectives?"warn":"off":z=ne.reportUnusedDisableDirectives===void 0?"off":_(ne.reportUnusedDisableDirectives));let J=De.ruleFilter;return typeof J!="function"&&(J=()=>!0),{filename:qe(De.filename||""),allowInlineConfig:!oe,warnInlineConfig:ee&&!oe?`your config${ce}`:null,reportUnusedDisableDirectives:z,disableFixes:!!De.disableFixes,stats:De.stats,ruleFilter:J}}function ht(De,X,ne){let ee=ne.filter(z=>z.parserOptions).reduce((z,J)=>n(z,J.parserOptions),{}),oe=n(ee,X||{});return oe.sourceType==="module"&&(oe.ecmaFeatures=Object.assign({},oe.ecmaFeatures,{globalReturn:!1})),oe.ecmaVersion=K(De,oe.ecmaVersion),oe}function pt({globals:De,parser:X,parserOptions:ne}){let{ecmaVersion:ee,sourceType:oe}=ne;return{globals:De,ecmaVersion:le(ee),sourceType:oe,parser:X,parserOptions:ne}}function Et(De,X){return Object.assign(Object.create(null),...X.filter(ne=>ne.globals).map(ne=>ne.globals),De)}function G(De){return De.charCodeAt(0)===65279?De.slice(1):De}function Ce(De,X,ne){let{type:ee,key:oe}=X;ne.times||(ne.times={passes:[{}]});let ce=ne.fixPasses;ce>ne.times.passes.length-1&&ne.times.passes.push({}),oe?(ne.times.passes[ce][ee]??={},ne.times.passes[ce][ee][oe]??={total:0},ne.times.passes[ce][ee][oe].total+=De):(ne.times.passes[ce][ee]??={total:0},ne.times.passes[ce][ee].total+=De)}function Ve(De){return Array.isArray(De)?De.slice(1):[]}function et(De,X,ne){let oe=X.parserOptions.ecmaFeatures||{},ce=X.ecmaVersion||j;return e.analyze(De,{ignoreEval:!0,nodejsScope:oe.globalReturn,impliedStrict:oe.impliedStrict,ecmaVersion:typeof ce=="number"?ce:6,sourceType:X.sourceType||"script",childVisitorKeys:ne||t.KEYS,fallback:p.getKeys})}function it(De,X,ne){let ee=G(De).replace(a.shebangPattern,(ie,de)=>`//${de}`),{ecmaVersion:oe,sourceType:ce,parser:z}=X,J=Object.assign({ecmaVersion:oe,sourceType:ce},X.parserOptions,{loc:!0,range:!0,raw:!0,tokens:!0,comment:!0,eslintVisitorKeys:!0,eslintScopeManager:!0,filePath:ne});try{B("Parsing:",ne);let ie=typeof z.parseForESLint=="function"?z.parseForESLint(ee,J):{ast:z.parse(ee,J)};B("Parsing successful:",ne);let de=ie.ast,we=ie.services||{},L=ie.visitorKeys||t.KEYS;B("Scope analysis:",ne);let ue=ie.scopeManager||et(de,X,L);return B("Scope analysis successful:",ne),{success:!0,sourceCode:new h({text:De,ast:de,parserServices:we,scopeManager:ue,visitorKeys:L})}}catch(ie){let de=`Parsing error: ${ie.message.replace(/^line \d+:/iu,"").trim()}`;return B(`%s +%s`,de,ie.stack),{success:!1,error:{ruleId:null,fatal:!0,severity:2,message:de,line:ie.lineNumber,column:ie.column,nodeType:null}}}}function st(De,X){if(!De||typeof De!="object"||typeof De.create!="function")throw new TypeError(`Error while loading rule '${X.id}': Rule must be an object with a \`create\` method`);try{return De.create(X)}catch(ne){throw ne.message=`Error while loading rule '${X.id}': ${ne.message}`,ne}}function wt(De,X,ne,ee,oe,ce,z,J,ie,de,we,L,ue){let Te=v(),Be=De.traverse(),$e=Object.freeze({getCwd:()=>ie,cwd:ie,getFilename:()=>z,filename:z,getPhysicalFilename:()=>de||z,physicalFilename:de||z,getSourceCode:()=>De,sourceCode:De,parserOptions:{...oe.parserOptions},parserPath:ee,languageOptions:oe,settings:ce}),Fe=[];Object.keys(X).forEach(Ie=>{let We=o.getRuleSeverity(X[Ie]);if(We===0||we&&!we({ruleId:Ie,severity:We}))return;let ve=ne(Ie);if(!ve){Fe.push(H({ruleId:Ie}));return}let re=ve.meta&&ve.meta.messages,Y=null,fe=Object.freeze(Object.assign(Object.create($e),{id:Ie,options:Ve(X[Ie]),report(...Ke){Y===null&&(Y=g({ruleId:Ie,severity:We,sourceCode:De,messageIds:re,disableFixes:J}));let mt=Y(...Ke);if(mt.fix&&!(ve.meta&&ve.meta.fixable))throw new Error('Fixable rules must set the `meta.fixable` property to "code" or "whitespace".');if(mt.suggestions&&!(ve.meta&&ve.meta.hasSuggestions===!0))throw ve.meta&&ve.meta.docs&&typeof ve.meta.docs.suggestion<"u"?new Error("Rules with suggestions must set the `meta.hasSuggestions` property to `true`. `meta.docs.suggestion` is ignored by ESLint."):new Error("Rules with suggestions must set the `meta.hasSuggestions` property to `true`.");Fe.push(mt)}})),Se=S.enabled||L?S.time(Ie,st,L)(ve,fe):st(ve,fe),Ee=L?Se.result:Se;L&&Ce(Se.tdiff,{type:"rules",key:Ie},ue);function Ze(Ke){return function(...Ot){try{let Pt=Ke(...Ot),bt=L?Pt.result:Pt;return L&&Ce(Pt.tdiff,{type:"rules",key:Ie},ue),bt}catch(Pt){throw Pt.ruleId=Ie,Pt}}}if(typeof Ee>"u"||Ee===null)throw new Error(`The create() function for rule '${Ie}' did not return an object.`);Object.keys(Ee).forEach(Ke=>{let mt=S.enabled||L?S.time(Ie,Ee[Ke],L):Ee[Ke];Te.on(Ke,Ze(mt))})});let Oe=new m(Te,{visitorKeys:De.visitorKeys,fallback:p.getKeys});for(let Ie of Be)switch(Ie.kind){case U:{try{Ie.phase===1?Oe.enterNode(Ie.target):Oe.leaveNode(Ie.target)}catch(We){throw We.currentNode=Ie.target,We}break}case V:{Te.emit(Ie.target,...Ie.args);break}default:throw new Error(`Invalid traversal step found: "${Ie.type}".`)}return Fe}function vt(De){if(typeof De=="object"){let{hasBOM:X,text:ne}=De;return(X?"\uFEFF":"")+ne}return String(De)}function Dt(De,X){return De.lastConfigArray&&De.lastConfigArray.pluginEnvironments.get(X)||c.get(X)||null}function _t(De,X){return De.lastConfigArray&&De.lastConfigArray.pluginRules.get(X)||De.ruleMap.get(X)}function W(De){if(De)return De;if(typeof Bt=="object")return Bt.cwd()}let xt=new WeakMap;function Ye(De){let{configType:X}=xt.get(De);if(X==="flat")throw new Error("This method cannot be used with flat config. Add your entries directly into the config array.")}class Kt{constructor({cwd:X,configType:ne="flat"}={}){xt.set(this,{cwd:W(X),lastConfigArray:null,lastSourceCode:null,lastSuppressedMessages:[],configType:ne,parserMap:new Map([["espree",s]]),ruleMap:new y}),this.version=i.version}static get version(){return i.version}_verifyWithoutProcessors(X,ne,ee){let oe=xt.get(this),ce=ne||{},z=rt(ee,ce),J;typeof X=="string"?(oe.lastSourceCode=null,J=X):(oe.lastSourceCode=X,J=X.text);let ie=R,de=s;if(typeof ce.parser=="object"&&ce.parser!==null)ie=ce.parser.filePath,de=ce.parser.definition;else if(typeof ce.parser=="string"){if(!oe.parserMap.has(ce.parser))return[{ruleId:null,fatal:!0,severity:2,message:`Configured parser '${ce.parser}' was not found.`,line:0,column:0,nodeType:null}];ie=ce.parser,de=oe.parserMap.get(ce.parser)}let we=z.allowInlineConfig&&!z.warnInlineConfig?Le(J):{},L=Object.assign({builtin:!0},ce.env,we),ue=Object.keys(L).filter(re=>L[re]).map(re=>Dt(oe,re)).filter(re=>re),Te=ht(de,ce.parserOptions||{},ue),Be=Et(ce.globals||{},ue),$e=ce.settings||{},Fe=pt({globals:ce.globals,parser:de,parserOptions:Te});if(oe.lastSourceCode)oe.lastSourceCode.scopeManager||(oe.lastSourceCode=new h({text:oe.lastSourceCode.text,ast:oe.lastSourceCode.ast,parserServices:oe.lastSourceCode.parserServices,visitorKeys:oe.lastSourceCode.visitorKeys,scopeManager:et(oe.lastSourceCode.ast,Fe)}));else{let re;z.stats&&(re=E());let Y=it(J,Fe,z.filename);if(z.stats){let fe=k(re);Ce(fe,{type:"parse"},oe)}if(!Y.success)return[Y.error];oe.lastSourceCode=Y.sourceCode}let Oe=oe.lastSourceCode,Ie=z.allowInlineConfig?$(Oe,re=>_t(oe,re),z.warnInlineConfig,ce):{configuredRules:{},enabledGlobals:{},exportedVariables:{},problems:[],disableDirectives:[]};se(Oe.scopeManager.scopes[0],Be,{exportedVariables:Ie.exportedVariables,enabledGlobals:Ie.enabledGlobals});let We=Object.assign({},ce.rules,Ie.configuredRules),ve;try{ve=wt(Oe,We,re=>_t(oe,re),ie,Fe,$e,z.filename,z.disableFixes,oe.cwd,ee.physicalFilename,null,z.stats,oe)}catch(re){if(re.message+=` +Occurred while linting ${z.filename}`,B("An error occurred while traversing"),B("Filename:",z.filename),re.currentNode){let{line:Y}=re.currentNode.loc.start;B("Line:",Y),re.message+=`:${Y}`}throw B("Parser Options:",Te),B("Parser Path:",ie),B("Settings:",$e),re.ruleId&&(re.message+=` +Rule: "${re.ruleId}"`),re}return f({directives:Ie.disableDirectives,disableFixes:z.disableFixes,problems:ve.concat(Ie.problems).sort((re,Y)=>re.line-Y.line||re.column-Y.column),reportUnusedDisableDirectives:z.reportUnusedDisableDirectives})}verify(X,ne,ee){B("Verify");let{configType:oe,cwd:ce}=xt.get(this),z=typeof ee=="string"?{filename:ee}:ee||{},J=ne??{};if(oe!=="eslintrc"){let ie=J;return(!Array.isArray(J)||typeof J.getConfig!="function")&&(ie=new C(J,{basePath:ce}),ie.normalizeSync()),this._distinguishSuppressedMessages(this._verifyWithFlatConfigArray(X,ie,z,!0))}return typeof J.extractConfig=="function"?this._distinguishSuppressedMessages(this._verifyWithConfigArray(X,J,z)):z.preprocess||z.postprocess?this._distinguishSuppressedMessages(this._verifyWithProcessor(X,J,z)):this._distinguishSuppressedMessages(this._verifyWithoutProcessors(X,J,z))}_verifyWithFlatConfigArrayAndProcessor(X,ne,ee,oe){let ce=ee.filename||"",z=qe(ce),J=ee.physicalFilename||z,ie=vt(X),de=ee.preprocess||($e=>[$e]),we=ee.postprocess||($e=>$e.flat()),L=ee.filterCodeBlock||($e=>$e.endsWith(".js")),ue=r.extname(ce),Te;try{Te=de(ie,z)}catch($e){let Fe=`Preprocessing error: ${$e.message.replace(/^line \d+:/iu,"").trim()}`;return B(`%s +%s`,Fe,$e.stack),[{ruleId:null,fatal:!0,severity:2,message:Fe,line:$e.lineNumber,column:$e.column,nodeType:null}]}let Be=Te.map(($e,Fe)=>{if(B("A code block was found: %o",$e.filename||"(unnamed)"),typeof $e=="string")return this._verifyWithFlatConfigArrayAndWithoutProcessors($e,ne,ee);let Oe=$e.text,Ie=r.join(ce,`${Fe}_${$e.filename}`);return L(Ie,Oe)?oe&&(ie!==Oe||r.extname(Ie)!==ue)?(B("Resolving configuration again because the file content or extension was changed."),this._verifyWithFlatConfigArray(Oe,oe,{...ee,filename:Ie,physicalFilename:J})):this._verifyWithFlatConfigArrayAndWithoutProcessors(Oe,ne,{...ee,filename:Ie,physicalFilename:J}):(B("This code block was skipped."),[])});return we(Be,z)}_verifyWithFlatConfigArrayAndWithoutProcessors(X,ne,ee){let oe=xt.get(this),ce=ne||{},z=rt(ee,ce),J;typeof X=="string"?(oe.lastSourceCode=null,J=X):(oe.lastSourceCode=X,J=X.text);let ie=ce.languageOptions;if(ie.ecmaVersion=le(ie.ecmaVersion),!ie.parser)throw new TypeError(`No parser specified for ${z.filename}`);if(ae(ie.parser)){let Fe=ie.parserOptions;ie.sourceType&&(Fe.sourceType=ie.sourceType,Fe.sourceType==="module"&&Fe.ecmaFeatures&&Fe.ecmaFeatures.globalReturn&&(Fe.ecmaFeatures.globalReturn=!1))}let de=ce.settings||{};if(oe.lastSourceCode)oe.lastSourceCode.scopeManager||(oe.lastSourceCode=new h({text:oe.lastSourceCode.text,ast:oe.lastSourceCode.ast,parserServices:oe.lastSourceCode.parserServices,visitorKeys:oe.lastSourceCode.visitorKeys,scopeManager:et(oe.lastSourceCode.ast,ie)}));else{let Fe;z.stats&&(Fe=E());let Oe=it(J,ie,z.filename);if(z.stats){let Ie=k(Fe);Ce(Ie,{type:"parse"},oe)}if(!Oe.success)return[Oe.error];oe.lastSourceCode=Oe.sourceCode}let we=oe.lastSourceCode;we.applyLanguageOptions(ie);let L={rules:{}},ue=[];if(z.allowInlineConfig)if(z.warnInlineConfig)we.getInlineConfigNodes().forEach(Fe=>{ue.push(H({ruleId:null,message:`'${we.text.slice(Fe.range[0],Fe.range[1])}' has no effect because you have 'noInlineConfig' setting in ${z.warnInlineConfig}.`,loc:Fe.loc,severity:1}))});else{let Fe=we.applyInlineConfig();ue.push(...Fe.problems.map(H).map(Ie=>(Ie.fatal=!0,Ie)));let Oe=new A;for(let{config:Ie,node:We}of Fe.configs)Object.keys(Ie.rules).forEach(ve=>{let re=O(ve,ce),Y=Ie.rules[ve];if(!re){ue.push(H({ruleId:ve,loc:We.loc}));return}if(Object.hasOwn(L.rules,ve)){ue.push(H({message:`Rule "${ve}" is already configured by another configuration comment in the preceding code. This configuration is ignored.`,loc:We.loc}));return}try{let fe=Array.isArray(Y)?Y:[Y];D(ve,fe[0]);let Se=!0;fe.length===1&&ce.rules&&Object.hasOwn(ce.rules,ve)&&(fe=[fe[0],...ce.rules[ve].slice(1)],ce.rules[ve][0]>0&&(Se=!1)),Se&&Oe.validate({plugins:ce.plugins,rules:{[ve]:fe}}),L.rules[ve]=fe}catch(fe){if(fe.code==="ESLINT_INVALID_RULE_OPTIONS_SCHEMA")throw fe;let Se=fe.message.slice(fe.message.startsWith('Key "rules":')?fe.message.indexOf(":",12)+1:fe.message.indexOf(":")+1).trim();fe.messageTemplate&&(Se+=` You passed "${Y}".`),ue.push(H({ruleId:ve,message:`Inline configuration for rule "${ve}" is invalid: ${Se} -`,loc:We.loc}))}})}let Te=Z.allowInlineConfig&&!Z.warnInlineConfig?pe(Ce,Re=>O(Re,ce)):{problems:[],disableDirectives:[]},Be=Object.assign({},ce.rules,L.rules),$e;Ce.finalize();try{$e=Ct(Ce,Be,Re=>O(Re,ce),void 0,ie,de,Z.filename,Z.disableFixes,oe.cwd,ee.physicalFilename,Z.ruleFilter,Z.stats,oe)}catch(Re){if(Re.message+=` -Occurred while linting ${Z.filename}`,B("An error occurred while traversing"),B("Filename:",Z.filename),Re.currentNode){let{line:Oe}=Re.currentNode.loc.start;B("Line:",Oe),Re.message+=`:${Oe}`}throw B("Parser Options:",ie.parserOptions),B("Settings:",de),Re.ruleId&&(Re.message+=` -Rule: "${Re.ruleId}"`),Re}return f({directives:Te.disableDirectives,disableFixes:Z.disableFixes,problems:$e.concat(Te.problems).concat(ue).sort((Re,Oe)=>Re.line-Oe.line||Re.column-Oe.column),reportUnusedDisableDirectives:Z.reportUnusedDisableDirectives,ruleFilter:Z.ruleFilter,configuredRules:Be})}_verifyWithConfigArray(G,ne,ee){B("With ConfigArray: %s",ee.filename),vt.get(this).lastConfigArray=ne;let oe=ne.extractConfig(ee.filename),ce=oe.processor&&ne.pluginProcessors.get(oe.processor);if(ce){B("Apply the processor: %o",oe.processor);let{preprocess:Z,postprocess:J,supportsAutofix:ie}=ce,de=ee.disableFixes||!ie;return this._verifyWithProcessor(G,oe,{...ee,disableFixes:de,postprocess:J,preprocess:Z},ne)}return this._verifyWithoutProcessors(G,oe,ee)}_verifyWithFlatConfigArray(G,ne,ee,oe=!1){B("With flat config: %s",ee.filename);let ce=ee.filename||"__placeholder__.js";vt.get(this).lastConfigArray=ne;let Z=ne.getConfig(ce);if(!Z)return[{ruleId:null,severity:1,message:`No matching configuration found for ${ce}.`,line:0,column:0,nodeType:null}];if(Z.processor){B("Apply the processor: %o",Z.processor);let{preprocess:J,postprocess:ie,supportsAutofix:de}=Z.processor,Ce=ee.disableFixes||!de;return this._verifyWithFlatConfigArrayAndProcessor(G,Z,{...ee,filename:ce,disableFixes:Ce,postprocess:ie,preprocess:J},ne)}return oe&&(ee.preprocess||ee.postprocess)?this._verifyWithFlatConfigArrayAndProcessor(G,Z,ee):this._verifyWithFlatConfigArrayAndWithoutProcessors(G,Z,ee)}_verifyWithProcessor(G,ne,ee,oe){let ce=ee.filename||"",Z=qe(ce),J=ee.physicalFilename||Z,ie=bt(G),de=ee.preprocess||($e=>[$e]),Ce=ee.postprocess||($e=>$e.flat()),L=ee.filterCodeBlock||($e=>$e.endsWith(".js")),ue=r.extname(ce),Te;try{Te=de(ie,Z)}catch($e){let Re=`Preprocessing error: ${$e.message.replace(/^line \d+:/iu,"").trim()}`;return B(`%s -%s`,Re,$e.stack),[{ruleId:null,fatal:!0,severity:2,message:Re,line:$e.lineNumber,column:$e.column,nodeType:null}]}let Be=Te.map(($e,Re)=>{if(B("A code block was found: %o",$e.filename||"(unnamed)"),typeof $e=="string")return this._verifyWithoutProcessors($e,ne,ee);let Oe=$e.text,Ie=r.join(ce,`${Re}_${$e.filename}`);return L(Ie,Oe)?oe&&(ie!==Oe||r.extname(Ie)!==ue)?(B("Resolving configuration again because the file content or extension was changed."),this._verifyWithConfigArray(Oe,oe,{...ee,filename:Ie,physicalFilename:J})):this._verifyWithoutProcessors(Oe,ne,{...ee,filename:Ie,physicalFilename:J}):(B("This code block was skipped."),[])});return Ce(Be,Z)}_distinguishSuppressedMessages(G){let ne=[],ee=[],oe=vt.get(this);for(let ce of G)ce.suppressions?ee.push(ce):ne.push(ce);return oe.lastSuppressedMessages=ee,ne}getSourceCode(){return vt.get(this).lastSourceCode}getTimes(){return vt.get(this).times??{passes:[]}}getFixPassCount(){return vt.get(this).fixPasses??0}getSuppressedMessages(){return vt.get(this).lastSuppressedMessages}defineRule(G,ne){Ye(this),vt.get(this).ruleMap.define(G,ne)}defineRules(G){Ye(this),Object.getOwnPropertyNames(G).forEach(ne=>{this.defineRule(ne,G[ne])})}getRules(){Ye(this);let{lastConfigArray:G,ruleMap:ne}=vt.get(this);return new Map(function*(){yield*ne,G&&(yield*G.pluginRules)}())}defineParser(G,ne){Ye(this),vt.get(this).parserMap.set(G,ne)}verifyAndFix(G,ne,ee){let oe,ce,Z=!1,J=0,ie=G,de=ee&&ee.filename||`${G.slice(0,10)}...`,Ce=ee&&typeof ee.fix<"u"?ee.fix:!0,L=ee?.stats,ue=vt.get(this);L&&(delete ue.times,ue.fixPasses=0);do{J++;let Te;L&&(Te=E()),B(`Linting code for ${de} (pass ${J})`),oe=this.verify(ie,ne,ee),B(`Generating fixed text for ${de} (pass ${J})`);let Be;if(L&&(Be=E()),ce=v.applyFixes(ie,oe,Ce),L)if(ce.fixed){let $e=k(Be);we($e,{type:"fix"},ue),ue.fixPasses++}else we(0,{type:"fix"},ue);if(oe.length===1&&oe[0].fatal)break;if(Z=Z||ce.fixed,ie=ce.output,L){Te=k(Te);let $e=ue.times.passes.length-1;ue.times.passes[$e].total=Te}}while(ce.fixed&&J[FC(),RC(),kC(),bw(),SC(),wC(),Ut.allowMultipleSelections.of(!0),ew(),fu(sw,{fallback:!0}),lw(),Ck(),kk(),PC(),TC(),AC(),nk(),As.of([...Xw,...lk,...Sw])];function va(r){r.removeAttribute("hidden")}function Oa(r){r.setAttribute("hidden","")}function Gn(r,e=document){return e.querySelector(r)}var gN=()=>`litecanvas() +`,loc:We.loc}))}})}let Te=z.allowInlineConfig&&!z.warnInlineConfig?pe(we,Fe=>O(Fe,ce)):{problems:[],disableDirectives:[]},Be=Object.assign({},ce.rules,L.rules),$e;we.finalize();try{$e=wt(we,Be,Fe=>O(Fe,ce),void 0,ie,de,z.filename,z.disableFixes,oe.cwd,ee.physicalFilename,z.ruleFilter,z.stats,oe)}catch(Fe){if(Fe.message+=` +Occurred while linting ${z.filename}`,B("An error occurred while traversing"),B("Filename:",z.filename),Fe.currentNode){let{line:Oe}=Fe.currentNode.loc.start;B("Line:",Oe),Fe.message+=`:${Oe}`}throw B("Parser Options:",ie.parserOptions),B("Settings:",de),Fe.ruleId&&(Fe.message+=` +Rule: "${Fe.ruleId}"`),Fe}return f({directives:Te.disableDirectives,disableFixes:z.disableFixes,problems:$e.concat(Te.problems).concat(ue).sort((Fe,Oe)=>Fe.line-Oe.line||Fe.column-Oe.column),reportUnusedDisableDirectives:z.reportUnusedDisableDirectives,ruleFilter:z.ruleFilter,configuredRules:Be})}_verifyWithConfigArray(X,ne,ee){B("With ConfigArray: %s",ee.filename),xt.get(this).lastConfigArray=ne;let oe=ne.extractConfig(ee.filename),ce=oe.processor&&ne.pluginProcessors.get(oe.processor);if(ce){B("Apply the processor: %o",oe.processor);let{preprocess:z,postprocess:J,supportsAutofix:ie}=ce,de=ee.disableFixes||!ie;return this._verifyWithProcessor(X,oe,{...ee,disableFixes:de,postprocess:J,preprocess:z},ne)}return this._verifyWithoutProcessors(X,oe,ee)}_verifyWithFlatConfigArray(X,ne,ee,oe=!1){B("With flat config: %s",ee.filename);let ce=ee.filename||"__placeholder__.js";xt.get(this).lastConfigArray=ne;let z=ne.getConfig(ce);if(!z)return[{ruleId:null,severity:1,message:`No matching configuration found for ${ce}.`,line:0,column:0,nodeType:null}];if(z.processor){B("Apply the processor: %o",z.processor);let{preprocess:J,postprocess:ie,supportsAutofix:de}=z.processor,we=ee.disableFixes||!de;return this._verifyWithFlatConfigArrayAndProcessor(X,z,{...ee,filename:ce,disableFixes:we,postprocess:ie,preprocess:J},ne)}return oe&&(ee.preprocess||ee.postprocess)?this._verifyWithFlatConfigArrayAndProcessor(X,z,ee):this._verifyWithFlatConfigArrayAndWithoutProcessors(X,z,ee)}_verifyWithProcessor(X,ne,ee,oe){let ce=ee.filename||"",z=qe(ce),J=ee.physicalFilename||z,ie=vt(X),de=ee.preprocess||($e=>[$e]),we=ee.postprocess||($e=>$e.flat()),L=ee.filterCodeBlock||($e=>$e.endsWith(".js")),ue=r.extname(ce),Te;try{Te=de(ie,z)}catch($e){let Fe=`Preprocessing error: ${$e.message.replace(/^line \d+:/iu,"").trim()}`;return B(`%s +%s`,Fe,$e.stack),[{ruleId:null,fatal:!0,severity:2,message:Fe,line:$e.lineNumber,column:$e.column,nodeType:null}]}let Be=Te.map(($e,Fe)=>{if(B("A code block was found: %o",$e.filename||"(unnamed)"),typeof $e=="string")return this._verifyWithoutProcessors($e,ne,ee);let Oe=$e.text,Ie=r.join(ce,`${Fe}_${$e.filename}`);return L(Ie,Oe)?oe&&(ie!==Oe||r.extname(Ie)!==ue)?(B("Resolving configuration again because the file content or extension was changed."),this._verifyWithConfigArray(Oe,oe,{...ee,filename:Ie,physicalFilename:J})):this._verifyWithoutProcessors(Oe,ne,{...ee,filename:Ie,physicalFilename:J}):(B("This code block was skipped."),[])});return we(Be,z)}_distinguishSuppressedMessages(X){let ne=[],ee=[],oe=xt.get(this);for(let ce of X)ce.suppressions?ee.push(ce):ne.push(ce);return oe.lastSuppressedMessages=ee,ne}getSourceCode(){return xt.get(this).lastSourceCode}getTimes(){return xt.get(this).times??{passes:[]}}getFixPassCount(){return xt.get(this).fixPasses??0}getSuppressedMessages(){return xt.get(this).lastSuppressedMessages}defineRule(X,ne){Ye(this),xt.get(this).ruleMap.define(X,ne)}defineRules(X){Ye(this),Object.getOwnPropertyNames(X).forEach(ne=>{this.defineRule(ne,X[ne])})}getRules(){Ye(this);let{lastConfigArray:X,ruleMap:ne}=xt.get(this);return new Map(function*(){yield*ne,X&&(yield*X.pluginRules)}())}defineParser(X,ne){Ye(this),xt.get(this).parserMap.set(X,ne)}verifyAndFix(X,ne,ee){let oe,ce,z=!1,J=0,ie=X,de=ee&&ee.filename||`${X.slice(0,10)}...`,we=ee&&typeof ee.fix<"u"?ee.fix:!0,L=ee?.stats,ue=xt.get(this);L&&(delete ue.times,ue.fixPasses=0);do{J++;let Te;L&&(Te=E()),B(`Linting code for ${de} (pass ${J})`),oe=this.verify(ie,ne,ee),B(`Generating fixed text for ${de} (pass ${J})`);let Be;if(L&&(Be=E()),ce=x.applyFixes(ie,oe,we),L)if(ce.fixed){let $e=k(Be);Ce($e,{type:"fix"},ue),ue.fixPasses++}else Ce(0,{type:"fix"},ue);if(oe.length===1&&oe[0].fatal)break;if(z=z||ce.fixed,ie=ce.output,L){Te=k(Te);let $e=ue.times.passes.length-1;ue.times.passes[$e].total=Te}}while(ce.fixed&&J[Iw(),Rw(),Cw(),bC(),Ow(),ww(),Ut.allowMultipleSelections.of(!0),Jw(),fu(nC,{fallback:!0}),oC(),Ek(),Ck(),Aw(),Pw(),kw(),rk(),As.of([...ZC,...ok,...OC])];function xa(r){r.removeAttribute("hidden")}function Oa(r){r.setAttribute("hidden","")}function Xn(r,e=document){return e.querySelector(r)}var dN=()=>`litecanvas() function init () { color = 0 @@ -175,7 +175,7 @@ function draw () { circ(x, y, radius, color) } `.trim()+` -`;function $O(r,e){return` +`;function LO(r,e){return` @@ -224,7 +224,7 @@ function draw () { <\/script>